vapor-community / HTMLKit

Create and render HTML templates with HTMLKit
MIT License
409 stars 21 forks source link

Revise the component naming #110

Open mattesmohr opened 1 year ago

mattesmohr commented 1 year ago

It should be possible to use the html element from HTMLKit package. Thats why its important to use a different name for the components, but still have some consistency.

mattesmohr commented 1 year ago
Reserved names
Head, Title, Base, Link, Meta, Style, Html, Body, Article, Section, Navigation, Aside, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Header, Footer, Adress, Paragraph, HorizontalRule, PreformattedText, Blockquote, OrderedList, UnorderedList, ListItem, DescriptionList, TermName, TermDefinition, Figure, FigureCaption, Main, Division, Anchor, Emphasize, Strong, Small, Cite, ShortQuote, Definition, Abbreviation, Ruby, RubyText, RubyPronunciation, Data, Time, Code, Variable, SampleOutput, KeyboardInput, Subscript, Superscript, Italic, Bold, Underline, Mark, Bdi, Bdo, Span, LineBreak, WordBreak, InsertedText, DeletedText, Picture, Source, Image, InlineFrame, Embed, Object, Parameter, Video, Audio, Track, Map, Area, Table, Caption, ColumnGroup, Column, TableBody, TableHead, TableFoot, TableRow, DataCell, HeaderCell, Form, Label, Input, Button, DataList, OptionGroup, Option, TextArea, Output, Progress, Meter, Fieldset, Legend, Details, Summary, Dialog, Script, NoScript, Template, Canvas, Vector, Circle, Rectangle, Ellipse, Line, Polygon, Polyline, Path, Use, Select
mattesmohr commented 1 year ago

Layouts

Rename Components SwiftUI Bootstrap Rename 1 Rename 1
HStack HStack HStack HStack
VStack VStack VStack VStack
ZStack ZStack ZStack
StackColumn StackColumn -

Seperators

Rename Components SwiftUI Bootstrap Rename 1 Rename 1
Divider Divider Divider
Spacer

Controls

Rename Components SwiftUI Bootstrap Rename 1 Rename 1
ActionButton ActionButton. Button
SubmitButton SubmitButton -
ResetButton ResetButton -
Slider Slider Slider Range
DatePicker DatePicker DatePicker
CollectionView Collection -
CollectionItem CollectionItem GridItem
FormView Form* Form*  
FieldLabel FieldLabel Label*
TextField TextField TextField
TextEditor TextEditor TextEditor
CheckField CheckField Toggle
RadioSelect RadioSelect  
SelectField SelectField Picker  Select
SecureField SecureField SecureField
SearchField SearchField
ProgressView ProgressView ProgressView ProgressBar
ImageView Image* Image*
ActionLink Link* Link*
ListView List List ListGroup
ListRow ListRow -
Snippet Snippet -
Symbol Symbol Image
Text Text Text
Toggle Toggle Toggle
GroupBox Card
Menu
ColorPicker
ContextMenu
Table*
TableColumn
TableRow*
DisclosureGroup Accordion
NavigationView NavBar
NavigationLink
OutlineGroup
Section*
Stepper.
TabView
ScrollView
Gauge

Helpers

Rename Components SwiftUI Bootstrap Rename 1 Rename 1
? Group* Group*