@base-framework/atoms 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms.js +1 -1
- package/dist/atoms.js.map +4 -4
- package/dist/types/atoms.d.ts +355 -0
- package/package.json +5 -3
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a div element.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props - Properties for the div element.
|
|
5
|
+
* @param {array} children - Children elements of the div.
|
|
6
|
+
* @return {object} - Returns an object representing the div element.
|
|
7
|
+
*/
|
|
8
|
+
export const Div: Function;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a dialog element.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} props - Properties for the div element.
|
|
13
|
+
* @param {array} children - Children elements of the div.
|
|
14
|
+
* @return {object} - Returns an object representing the dialog element.
|
|
15
|
+
*/
|
|
16
|
+
export const Dialog: Function;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a span element.
|
|
19
|
+
*
|
|
20
|
+
* @param {object} props - Properties for the span element.
|
|
21
|
+
* @param {array} children - Children elements of the span.
|
|
22
|
+
* @return {object} - Returns an object representing the span element.
|
|
23
|
+
*/
|
|
24
|
+
export const Span: Function;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a paragraph (p) element.
|
|
27
|
+
*
|
|
28
|
+
* @param {object} props - Properties for the paragraph element.
|
|
29
|
+
* @param {array} children - Children elements of the paragraph.
|
|
30
|
+
* @return {object} - Returns an object representing the paragraph element.
|
|
31
|
+
*/
|
|
32
|
+
export const P: Function;
|
|
33
|
+
/**
|
|
34
|
+
* Creates an anchor (a) element.
|
|
35
|
+
*
|
|
36
|
+
* @param {object} props - Properties for the anchor element.
|
|
37
|
+
* @param {array} children - Children elements of the anchor.
|
|
38
|
+
* @return {object} - Returns an object representing the anchor element.
|
|
39
|
+
*/
|
|
40
|
+
export const A: Function;
|
|
41
|
+
/**
|
|
42
|
+
* Creates a button element.
|
|
43
|
+
*/
|
|
44
|
+
export const Button: Function;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a submit button element.
|
|
47
|
+
*/
|
|
48
|
+
export const SubmitButton: Function;
|
|
49
|
+
/**
|
|
50
|
+
* Creates an unordered list (ul) element.
|
|
51
|
+
*/
|
|
52
|
+
export const Ul: Function;
|
|
53
|
+
/**
|
|
54
|
+
* Creates a list item (li) element.
|
|
55
|
+
*/
|
|
56
|
+
export const Li: Function;
|
|
57
|
+
/**
|
|
58
|
+
* Creates an image (img) element.
|
|
59
|
+
*/
|
|
60
|
+
export const Img: Function;
|
|
61
|
+
/**
|
|
62
|
+
* Create a br element.
|
|
63
|
+
*
|
|
64
|
+
* @param {object} props - Properties for the br element.
|
|
65
|
+
* @return {object} - Returns an object representing the br element.
|
|
66
|
+
*/
|
|
67
|
+
export const Br: Function;
|
|
68
|
+
/**
|
|
69
|
+
* Creates a horizontal rule (hr) element.
|
|
70
|
+
*/
|
|
71
|
+
export const Hr: Function;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a text (text) element.
|
|
74
|
+
*/
|
|
75
|
+
export const Text: Function;
|
|
76
|
+
/**
|
|
77
|
+
* Creates a header 1 (h1) element.
|
|
78
|
+
*/
|
|
79
|
+
export const H1: Function;
|
|
80
|
+
/**
|
|
81
|
+
* Creates a header 2 (h2) element.
|
|
82
|
+
*/
|
|
83
|
+
export const H2: Function;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a header 3 (h3) element.
|
|
86
|
+
*/
|
|
87
|
+
export const H3: Function;
|
|
88
|
+
/**
|
|
89
|
+
* Creates a header 4 (h4) element.
|
|
90
|
+
*/
|
|
91
|
+
export const H4: Function;
|
|
92
|
+
/**
|
|
93
|
+
* Creates a header 5 (h5) element.
|
|
94
|
+
*/
|
|
95
|
+
export const H5: Function;
|
|
96
|
+
/**
|
|
97
|
+
* Creates a header 6 (h6) element.
|
|
98
|
+
*/
|
|
99
|
+
export const H6: Function;
|
|
100
|
+
/**
|
|
101
|
+
* Creates an input element.
|
|
102
|
+
*/
|
|
103
|
+
export const Input: Function;
|
|
104
|
+
/**
|
|
105
|
+
* Creates a label element.
|
|
106
|
+
*/
|
|
107
|
+
export const Label: Function;
|
|
108
|
+
/**
|
|
109
|
+
* Creates a section element.
|
|
110
|
+
*/
|
|
111
|
+
export const Section: Function;
|
|
112
|
+
/**
|
|
113
|
+
* Creates an article element.
|
|
114
|
+
*/
|
|
115
|
+
export const Article: Function;
|
|
116
|
+
/**
|
|
117
|
+
* Creates a header (header) element.
|
|
118
|
+
*/
|
|
119
|
+
export const Header: Function;
|
|
120
|
+
/**
|
|
121
|
+
* Creates a footer element.
|
|
122
|
+
*/
|
|
123
|
+
export const Footer: Function;
|
|
124
|
+
/**
|
|
125
|
+
* Creates a nav element.
|
|
126
|
+
*/
|
|
127
|
+
export const Nav: Function;
|
|
128
|
+
/**
|
|
129
|
+
* Creates an aside element.
|
|
130
|
+
*/
|
|
131
|
+
export const Aside: Function;
|
|
132
|
+
/**
|
|
133
|
+
* Creates a figure element.
|
|
134
|
+
*/
|
|
135
|
+
export const Figure: Function;
|
|
136
|
+
/**
|
|
137
|
+
* Creates a figcaption element.
|
|
138
|
+
*/
|
|
139
|
+
export const Figcaption: Function;
|
|
140
|
+
/**
|
|
141
|
+
* Creates a main element.
|
|
142
|
+
*/
|
|
143
|
+
export const Main: Function;
|
|
144
|
+
/**
|
|
145
|
+
* Creates a video element.
|
|
146
|
+
*/
|
|
147
|
+
export const Video: Function;
|
|
148
|
+
/**
|
|
149
|
+
* Creates an audio element.
|
|
150
|
+
*/
|
|
151
|
+
export const Audio: Function;
|
|
152
|
+
/**
|
|
153
|
+
* Creates a table element.
|
|
154
|
+
*/
|
|
155
|
+
export const Table: Function;
|
|
156
|
+
/**
|
|
157
|
+
* Creates a table row (tr) element.
|
|
158
|
+
*/
|
|
159
|
+
export const Tr: Function;
|
|
160
|
+
/**
|
|
161
|
+
* Creates a table header (th) element.
|
|
162
|
+
*/
|
|
163
|
+
export const Th: Function;
|
|
164
|
+
/**
|
|
165
|
+
* Creates a table data (td) element.
|
|
166
|
+
*/
|
|
167
|
+
export const Td: Function;
|
|
168
|
+
/**
|
|
169
|
+
* Creates a table header group (thead) element.
|
|
170
|
+
*/
|
|
171
|
+
export const Thead: Function;
|
|
172
|
+
/**
|
|
173
|
+
* Creates a table body (tbody) element.
|
|
174
|
+
*/
|
|
175
|
+
export const Tbody: Function;
|
|
176
|
+
/**
|
|
177
|
+
* Creates a table footer (tfoot) element.
|
|
178
|
+
*/
|
|
179
|
+
export const Tfoot: Function;
|
|
180
|
+
/**
|
|
181
|
+
* Creates a form element.
|
|
182
|
+
*/
|
|
183
|
+
export const Form: Function;
|
|
184
|
+
/**
|
|
185
|
+
* Creates a select element.
|
|
186
|
+
*/
|
|
187
|
+
export const Select: Function;
|
|
188
|
+
/**
|
|
189
|
+
* Creates an option element for a select tag.
|
|
190
|
+
*/
|
|
191
|
+
export const Option: Function;
|
|
192
|
+
/**
|
|
193
|
+
* Creates a textarea element.
|
|
194
|
+
*/
|
|
195
|
+
export const Textarea: Function;
|
|
196
|
+
/**
|
|
197
|
+
* Creates a canvas element.
|
|
198
|
+
*/
|
|
199
|
+
export const Canvas: Function;
|
|
200
|
+
/**
|
|
201
|
+
* Creates a progress element.
|
|
202
|
+
*/
|
|
203
|
+
export const Progress: Function;
|
|
204
|
+
/**
|
|
205
|
+
* Creates a blockquote element.
|
|
206
|
+
*/
|
|
207
|
+
export const Blockquote: Function;
|
|
208
|
+
/**
|
|
209
|
+
* Creates a preformatted text (pre) element.
|
|
210
|
+
*/
|
|
211
|
+
export const Pre: Function;
|
|
212
|
+
/**
|
|
213
|
+
* Creates a code element.
|
|
214
|
+
*/
|
|
215
|
+
export const Code: Function;
|
|
216
|
+
/**
|
|
217
|
+
* Creates an ordered list (ol) element.
|
|
218
|
+
*/
|
|
219
|
+
export const Ol: Function;
|
|
220
|
+
/**
|
|
221
|
+
* Creates a definition list (dl) element.
|
|
222
|
+
*/
|
|
223
|
+
export const Dl: Function;
|
|
224
|
+
/**
|
|
225
|
+
* Creates a definition term (dt) element.
|
|
226
|
+
*/
|
|
227
|
+
export const Dt: Function;
|
|
228
|
+
/**
|
|
229
|
+
* Creates a definition description (dd) element.
|
|
230
|
+
*/
|
|
231
|
+
export const Dd: Function;
|
|
232
|
+
/**
|
|
233
|
+
* Creates a fieldset element.
|
|
234
|
+
*/
|
|
235
|
+
export const Fieldset: Function;
|
|
236
|
+
/**
|
|
237
|
+
* Creates a legend element.
|
|
238
|
+
*/
|
|
239
|
+
export const Legend: Function;
|
|
240
|
+
/**
|
|
241
|
+
* Creates a meter element.
|
|
242
|
+
*/
|
|
243
|
+
export const Meter: Function;
|
|
244
|
+
/**
|
|
245
|
+
* Creates an iframe element.
|
|
246
|
+
*/
|
|
247
|
+
export const Iframe: Function;
|
|
248
|
+
/**
|
|
249
|
+
* Creates a details element.
|
|
250
|
+
*/
|
|
251
|
+
export const Details: Function;
|
|
252
|
+
/**
|
|
253
|
+
* Creates a summary element.
|
|
254
|
+
*/
|
|
255
|
+
export const Summary: Function;
|
|
256
|
+
/**
|
|
257
|
+
* Creates an em element.
|
|
258
|
+
*/
|
|
259
|
+
export const Em: Function;
|
|
260
|
+
/**
|
|
261
|
+
* Creates a strong element.
|
|
262
|
+
*/
|
|
263
|
+
export const Strong: Function;
|
|
264
|
+
/**
|
|
265
|
+
* Creates a small element.
|
|
266
|
+
*/
|
|
267
|
+
export const Small: Function;
|
|
268
|
+
/**
|
|
269
|
+
* Creates a s element (strikethrough).
|
|
270
|
+
*/
|
|
271
|
+
export const S: Function;
|
|
272
|
+
/**
|
|
273
|
+
* Creates a cite element.
|
|
274
|
+
*/
|
|
275
|
+
export const Cite: Function;
|
|
276
|
+
/**
|
|
277
|
+
* Creates a q element (inline quotation).
|
|
278
|
+
*/
|
|
279
|
+
export const Q: Function;
|
|
280
|
+
/**
|
|
281
|
+
* Creates a dfn element (definition element).
|
|
282
|
+
*/
|
|
283
|
+
export const Dfn: Function;
|
|
284
|
+
/**
|
|
285
|
+
* Creates an abbr element (abbreviation).
|
|
286
|
+
*/
|
|
287
|
+
export const Abbr: Function;
|
|
288
|
+
/**
|
|
289
|
+
* Creates a data element.
|
|
290
|
+
*/
|
|
291
|
+
export const Data: Function;
|
|
292
|
+
/**
|
|
293
|
+
* Creates a time element.
|
|
294
|
+
*/
|
|
295
|
+
export const Time: Function;
|
|
296
|
+
/**
|
|
297
|
+
* Creates a var element (variable).
|
|
298
|
+
*/
|
|
299
|
+
export const Var: Function;
|
|
300
|
+
/**
|
|
301
|
+
* Creates a samp element (sample output).
|
|
302
|
+
*/
|
|
303
|
+
export const Samp: Function;
|
|
304
|
+
/**
|
|
305
|
+
* Creates a kbd element (keyboard input).
|
|
306
|
+
*/
|
|
307
|
+
export const Kbd: Function;
|
|
308
|
+
/**
|
|
309
|
+
* Creates a sub element (subscript).
|
|
310
|
+
*/
|
|
311
|
+
export const Sub: Function;
|
|
312
|
+
/**
|
|
313
|
+
* Creates a sup element (superscript).
|
|
314
|
+
*/
|
|
315
|
+
export const Sup: Function;
|
|
316
|
+
/**
|
|
317
|
+
* Creates an i element (italic).
|
|
318
|
+
*/
|
|
319
|
+
export const I: Function;
|
|
320
|
+
/**
|
|
321
|
+
* Creates a b element (bold).
|
|
322
|
+
*/
|
|
323
|
+
export const B: Function;
|
|
324
|
+
/**
|
|
325
|
+
* Creates a u element (underline).
|
|
326
|
+
*/
|
|
327
|
+
export const U: Function;
|
|
328
|
+
/**
|
|
329
|
+
* Creates a mark element.
|
|
330
|
+
*/
|
|
331
|
+
export const Mark: Function;
|
|
332
|
+
/**
|
|
333
|
+
* Creates a ruby element (for East Asian typography).
|
|
334
|
+
*/
|
|
335
|
+
export const Ruby: Function;
|
|
336
|
+
/**
|
|
337
|
+
* Creates an rt element (explanation/pronunciation of characters in East Asian typography).
|
|
338
|
+
*/
|
|
339
|
+
export const Rt: Function;
|
|
340
|
+
/**
|
|
341
|
+
* Creates an rp element (for East Asian fallback parenthesis).
|
|
342
|
+
*/
|
|
343
|
+
export const Rp: Function;
|
|
344
|
+
/**
|
|
345
|
+
* Creates a bdi element (Bi-Directional Isolation).
|
|
346
|
+
*/
|
|
347
|
+
export const Bdi: Function;
|
|
348
|
+
/**
|
|
349
|
+
* Creates a bdo element (Bi-Directional Override).
|
|
350
|
+
*/
|
|
351
|
+
export const Bdo: Function;
|
|
352
|
+
/**
|
|
353
|
+
* Creates a wbr element (Word Break Opportunity).
|
|
354
|
+
*/
|
|
355
|
+
export const Wbr: Function;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base-framework/atoms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "This will add default atoms to the base framework.",
|
|
5
5
|
"main": "/dist/atoms.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "node ./esbuild.js",
|
|
7
|
+
"build": "node ./esbuild.js && tsc",
|
|
8
8
|
"prepublishOnly": "node ./esbuild.js"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"url": "https://github.com/chrisdurfee/atoms/issues"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"esbuild": "^0.15.7"
|
|
27
|
+
"esbuild": "^0.15.7",
|
|
28
|
+
"typescript": "^5.4.2"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@base-framework/base": "^3.0.10"
|
|
31
32
|
},
|
|
33
|
+
"types": "dist/types/atoms.d.ts",
|
|
32
34
|
"files": [
|
|
33
35
|
"pacakge.json",
|
|
34
36
|
"readme.md",
|