Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit dea9767

Browse files
committed
feat(html-tags and language-codes): Add types HtmlTags and LanguageCodes
1 parent 674f301 commit dea9767

File tree

4 files changed

+602
-303
lines changed

4 files changed

+602
-303
lines changed

src/_internal/utils/html-tags.ts

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
export type HtmlTags =
2+
| 'A'
3+
| 'Abbr'
4+
| 'Address'
5+
| 'Area'
6+
| 'Article'
7+
| 'Aside'
8+
| 'Audio'
9+
| 'B'
10+
| 'Bdi'
11+
| 'Bdo'
12+
| 'Blockquote'
13+
| 'Body'
14+
| 'Br'
15+
| 'Button'
16+
| 'Canvas'
17+
| 'Caption'
18+
| 'Cite'
19+
| 'Code'
20+
| 'Col'
21+
| 'Colgroup'
22+
| 'Data'
23+
| 'Datalist'
24+
| 'Dd'
25+
| 'Del'
26+
| 'Details'
27+
| 'Dfn'
28+
| 'Dialog'
29+
| 'Div'
30+
| 'Dl'
31+
| 'Dt'
32+
| 'Em'
33+
| 'Embed'
34+
| 'Fieldset'
35+
| 'Figcaption'
36+
| 'Figure'
37+
| 'Footer'
38+
| 'Form'
39+
| 'H1'
40+
| 'H2'
41+
| 'H3'
42+
| 'H4'
43+
| 'H5'
44+
| 'H6'
45+
| 'Header'
46+
| 'Hgroup'
47+
| 'Hr'
48+
| 'Html'
49+
| 'I'
50+
| 'Iframe'
51+
| 'Img'
52+
| 'Input'
53+
| 'Ins'
54+
| 'Kbd'
55+
| 'Label'
56+
| 'Legend'
57+
| 'Li'
58+
| 'Main'
59+
| 'Map'
60+
| 'Mark'
61+
| 'Math'
62+
| 'Menu'
63+
| 'Menuitem'
64+
| 'Meter'
65+
| 'Nav'
66+
| 'Noscript'
67+
| 'Object'
68+
| 'Ol'
69+
| 'Optgroup'
70+
| 'Option'
71+
| 'Output'
72+
| 'P'
73+
| 'Param'
74+
| 'Picture'
75+
| 'Pre'
76+
| 'Progress'
77+
| 'Q'
78+
| 'Rb'
79+
| 'Rp'
80+
| 'Rt'
81+
| 'Rtc'
82+
| 'Ruby'
83+
| 'S'
84+
| 'Samp'
85+
| 'Script'
86+
| 'Search'
87+
| 'Section'
88+
| 'Select'
89+
| 'Slot'
90+
| 'Small'
91+
| 'Source'
92+
| 'Span'
93+
| 'Strong'
94+
| 'Sub'
95+
| 'Summary'
96+
| 'Sup'
97+
| 'Svg'
98+
| 'Table'
99+
| 'Tbody'
100+
| 'Td'
101+
| 'Template'
102+
| 'Textarea'
103+
| 'Tfoot'
104+
| 'Th'
105+
| 'Thead'
106+
| 'Time'
107+
| 'Tr'
108+
| 'Track'
109+
| 'U'
110+
| 'Ul'
111+
| 'Var'
112+
| 'Video'
113+
| 'Wbr';
114+
115+
const htmlTags = [
116+
'a',
117+
'abbr',
118+
'address',
119+
'area',
120+
'article',
121+
'aside',
122+
'audio',
123+
'b',
124+
'bdi',
125+
'bdo',
126+
'blockquote',
127+
'body',
128+
'br',
129+
'button',
130+
'canvas',
131+
'caption',
132+
'cite',
133+
'code',
134+
'col',
135+
'colgroup',
136+
'data',
137+
'datalist',
138+
'dd',
139+
'del',
140+
'details',
141+
'dfn',
142+
'dialog',
143+
'div',
144+
'dl',
145+
'dt',
146+
'em',
147+
'embed',
148+
'fieldset',
149+
'figcaption',
150+
'figure',
151+
'footer',
152+
'form',
153+
'h1',
154+
'h2',
155+
'h3',
156+
'h4',
157+
'h5',
158+
'h6',
159+
'header',
160+
'hgroup',
161+
'hr',
162+
'html',
163+
'i',
164+
'iframe',
165+
'img',
166+
'input',
167+
'ins',
168+
'kbd',
169+
'label',
170+
'legend',
171+
'li',
172+
'main',
173+
'map',
174+
'mark',
175+
'math',
176+
'menu',
177+
'menuitem',
178+
'meter',
179+
'nav',
180+
'noscript',
181+
'object',
182+
'ol',
183+
'optgroup',
184+
'option',
185+
'output',
186+
'p',
187+
'param',
188+
'picture',
189+
'pre',
190+
'progress',
191+
'q',
192+
'rb',
193+
'rp',
194+
'rt',
195+
'rtc',
196+
'ruby',
197+
's',
198+
'samp',
199+
'script',
200+
'search',
201+
'section',
202+
'select',
203+
'slot',
204+
'small',
205+
'source',
206+
'span',
207+
'strong',
208+
'sub',
209+
'summary',
210+
'sup',
211+
'svg',
212+
'table',
213+
'tbody',
214+
'td',
215+
'template',
216+
'textarea',
217+
'tfoot',
218+
'th',
219+
'thead',
220+
'time',
221+
'tr',
222+
'track',
223+
'u',
224+
'ul',
225+
'var',
226+
'video',
227+
'wbr',
228+
];
229+
230+
export default htmlTags;

src/_internal/utils/htmltags.ts

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)