@meonode/ui 0.4.6 → 0.4.8
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/CHANGELOG.md +57 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/components/html.node.d.ts +139 -139
- package/dist/components/html.node.js +139 -139
- package/dist/components/meonode-unmounter.client.d.ts +6 -3
- package/dist/components/meonode-unmounter.client.d.ts.map +1 -1
- package/dist/components/meonode-unmounter.client.js +4 -2
- package/dist/components/react.node.d.ts +3 -3
- package/dist/components/react.node.js +3 -3
- package/dist/components/registry.client.js +6 -6
- package/dist/components/styled-renderer.client.js +2 -2
- package/dist/components/theme-provider.client.js +2 -2
- package/dist/components/theme-provider.d.ts +1 -1
- package/dist/components/theme-provider.js +1 -1
- package/dist/constants/common.const.js +1 -1
- package/dist/constants/css-properties.const.js +1 -1
- package/dist/core.node.d.ts +10 -10
- package/dist/core.node.d.ts.map +1 -1
- package/dist/core.node.js +39 -37
- package/dist/helper/common.helper.js +9 -9
- package/dist/helper/obj.helper.js +14 -14
- package/dist/helper/react-is.helper.js +21 -21
- package/dist/hoc/component.hoc.js +1 -1
- package/dist/hoc/portal.hoc.js +13 -13
- package/dist/hook/usePortal.js +2 -2
- package/dist/hook/useTheme.js +3 -3
- package/dist/nextjs-registry/index.d.ts +1 -1
- package/dist/nextjs-registry/index.js +1 -1
- package/dist/types/node.type.d.ts +5 -0
- package/dist/types/node.type.d.ts.map +1 -1
- package/dist/util/mount-tracker.util.js +3 -3
- package/dist/util/navigation-cache-manager.util.d.ts +5 -0
- package/dist/util/navigation-cache-manager.util.d.ts.map +1 -1
- package/dist/util/navigation-cache-manager.util.js +7 -7
- package/dist/util/node.util.d.ts +22 -26
- package/dist/util/node.util.d.ts.map +1 -1
- package/dist/util/node.util.js +75 -69
- package/dist/util/theme.util.d.ts +6 -6
- package/dist/util/theme.util.d.ts.map +1 -1
- package/dist/util/theme.util.js +17 -16
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import{createNode,createChildrenFirstNode}from"../core.node.js";// Layout compon
|
|
|
3
3
|
* Represents a div element.
|
|
4
4
|
* @param props Optional properties for the div element.
|
|
5
5
|
* @returns A div element node.
|
|
6
|
-
*/export
|
|
6
|
+
*/export const Div=createNode("div");/**
|
|
7
7
|
* Alias for \`Div(...)\`. Recommended for general-purpose container elements.
|
|
8
8
|
*
|
|
9
9
|
* **Example:**
|
|
@@ -14,7 +14,7 @@ import{createNode,createChildrenFirstNode}from"../core.node.js";// Layout compon
|
|
|
14
14
|
* children: [H2('Welcome'), P('This is a container example.')]
|
|
15
15
|
* })
|
|
16
16
|
* ```
|
|
17
|
-
*/export
|
|
17
|
+
*/export const Container=Div;/**
|
|
18
18
|
* Represents a root div element with full viewport dimensions and column flex layout.
|
|
19
19
|
* By default, applies flex column layout and 100% viewport dimensions.
|
|
20
20
|
* @param props Optional properties for the root div element that merge with defaults.
|
|
@@ -26,607 +26,607 @@ import{createNode,createChildrenFirstNode}from"../core.node.js";// Layout compon
|
|
|
26
26
|
* children: [Header(), Main(), Footer()]
|
|
27
27
|
* })
|
|
28
28
|
* ```
|
|
29
|
-
*/export
|
|
29
|
+
*/export const Root=createNode("div",{display:"flex",flexDirection:"column",minHeight:"100dvh",minWidth:"100dvw"});/**
|
|
30
30
|
* Represents a column layout using flexbox.
|
|
31
31
|
* @param props Optional properties for the column layout.
|
|
32
32
|
* @returns A div element node with flexbox column layout.
|
|
33
|
-
*/export
|
|
33
|
+
*/export const Column=createNode("div",{display:"flex",flexDirection:"column"});/**
|
|
34
34
|
* Represents a row layout using flexbox.
|
|
35
35
|
* @param props Optional properties for the row layout.
|
|
36
36
|
* @returns A div element node with flexbox row layout.
|
|
37
|
-
*/export
|
|
37
|
+
*/export const Row=createNode("div",{display:"flex",flexDirection:"row"});/**
|
|
38
38
|
* Represents a grid layout.
|
|
39
39
|
* @param props Optional properties for the grid layout.
|
|
40
40
|
* @returns A div element node with grid layout.
|
|
41
|
-
*/export
|
|
41
|
+
*/export const Grid=createNode("div",{display:"grid"});/**
|
|
42
42
|
* Represents a centered container with flexbox alignment.
|
|
43
43
|
* By default, centers content both horizontally and vertically.
|
|
44
44
|
* @param props Optional properties for the div element.
|
|
45
45
|
* @returns A div element node configured for centered content.
|
|
46
|
-
*/export
|
|
46
|
+
*/export const Center=createNode("div",{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"});/**
|
|
47
47
|
* Represents a fixed positioned element.
|
|
48
48
|
* @param props Optional properties for the fixed positioned element.
|
|
49
49
|
* @returns A div element node with fixed positioning.
|
|
50
|
-
*/export
|
|
50
|
+
*/export const Fixed=createNode("div",{position:"fixed"});/**
|
|
51
51
|
* Represents a relatively positioned element.
|
|
52
52
|
* @param props Optional properties for the relatively positioned element.
|
|
53
53
|
* @returns A div element node with relative positioning.
|
|
54
|
-
*/export
|
|
54
|
+
*/export const Relative=createNode("div",{position:"relative"});/**
|
|
55
55
|
* Represents an absolutely positioned element.
|
|
56
56
|
* @param props Optional properties for the absolutely positioned element.
|
|
57
57
|
* @returns A div element node with absolute positioning.
|
|
58
|
-
*/export
|
|
58
|
+
*/export const Absolute=createNode("div",{position:"absolute"});/**
|
|
59
59
|
* Represents a sticky positioned element.
|
|
60
60
|
* @param props Optional properties for the sticky positioned element.
|
|
61
61
|
* @returns A div element node with sticky positioning.
|
|
62
|
-
*/export
|
|
62
|
+
*/export const Sticky=createNode("div",{position:"sticky"});/**
|
|
63
63
|
* Represents a statically positioned element.
|
|
64
64
|
* @param props Optional properties for the statically positioned element.
|
|
65
65
|
* @returns A div element node with static positioning.
|
|
66
|
-
*/export
|
|
66
|
+
*/export const Static=createNode("div",{position:"static"});// Typography
|
|
67
67
|
/**
|
|
68
68
|
* Creates an h1 heading element node.
|
|
69
69
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
70
70
|
* @param props Optional properties for the h1 element.
|
|
71
71
|
* @returns An h1 element node.
|
|
72
|
-
*/export
|
|
72
|
+
*/export const H1=createChildrenFirstNode("h1");/**
|
|
73
73
|
* Creates an h2 heading element node.
|
|
74
74
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
75
75
|
* @param props Optional properties for the h2 element.
|
|
76
76
|
* @returns An h2 element node.
|
|
77
|
-
*/export
|
|
77
|
+
*/export const H2=createChildrenFirstNode("h2");/**
|
|
78
78
|
* Creates an h3 heading element node.
|
|
79
79
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
80
80
|
* @param props Optional properties for the h3 element.
|
|
81
81
|
* @returns An h3 element node.
|
|
82
|
-
*/export
|
|
82
|
+
*/export const H3=createChildrenFirstNode("h3");/**
|
|
83
83
|
* Creates an h4 heading element node.
|
|
84
84
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
85
85
|
* @param props Optional properties for the h4 element.
|
|
86
86
|
* @returns An h4 element node.
|
|
87
|
-
*/export
|
|
87
|
+
*/export const H4=createChildrenFirstNode("h4");/**
|
|
88
88
|
* Creates an h5 heading element node.
|
|
89
89
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
90
90
|
* @param props Optional properties for the h5 element.
|
|
91
91
|
* @returns An h5 element node.
|
|
92
|
-
*/export
|
|
92
|
+
*/export const H5=createChildrenFirstNode("h5");/**
|
|
93
93
|
* Creates an h6 heading element node.
|
|
94
94
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
95
95
|
* @param props Optional properties for the h6 element.
|
|
96
96
|
* @returns An h6 element node.
|
|
97
|
-
*/export
|
|
97
|
+
*/export const H6=createChildrenFirstNode("h6");/**
|
|
98
98
|
* Creates a strong element node for important text.
|
|
99
99
|
* @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
|
|
100
100
|
* @param props Optional properties for the strong element.
|
|
101
101
|
* @returns A strong element node.
|
|
102
|
-
*/export
|
|
102
|
+
*/export const Strong=createChildrenFirstNode("strong");/**
|
|
103
103
|
* Creates an em element node for emphasized text.
|
|
104
104
|
* @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
|
|
105
105
|
* @param props Optional properties for the em element.
|
|
106
106
|
* @returns An em element node.
|
|
107
|
-
*/export
|
|
107
|
+
*/export const Em=createChildrenFirstNode("em");/**
|
|
108
108
|
* Creates a small element node for side-comments and small print.
|
|
109
109
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
110
110
|
* @param props Optional properties for styling and configuring the small element.
|
|
111
111
|
* @returns A small element node that can be rendered in React.
|
|
112
|
-
*/export
|
|
112
|
+
*/export const Small=createChildrenFirstNode("small");/**
|
|
113
113
|
* Creates a mark element node for highlighted text.
|
|
114
114
|
* @param children The content to be rendered within the element (text, numbers, components, etc) to highlight.
|
|
115
115
|
* @param props Optional properties for the mark element.
|
|
116
116
|
* @returns A mark element node.
|
|
117
|
-
*/export
|
|
117
|
+
*/export const Mark=createChildrenFirstNode("mark");/**
|
|
118
118
|
* Creates a span element node.
|
|
119
119
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the span.
|
|
120
120
|
* @param props Optional properties for the span element.
|
|
121
121
|
* @returns A span element node.
|
|
122
|
-
*/export
|
|
122
|
+
*/export const Span=createChildrenFirstNode("span");/**
|
|
123
123
|
* Creates a paragraph element node.
|
|
124
124
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the paragraph.
|
|
125
125
|
* @param props Optional properties for the p element.
|
|
126
126
|
* @returns A paragraph element node.
|
|
127
|
-
*/export
|
|
127
|
+
*/export const P=createChildrenFirstNode("p");/**
|
|
128
128
|
* Renders a semantic block of text using a `<p>` element.
|
|
129
129
|
* Alias for `P(...)`, recommended for general-purpose text content.
|
|
130
130
|
* @example
|
|
131
131
|
* ```typescript
|
|
132
132
|
* Text('This is a sample text paragraph.', { fontSize: 'theme.text.base', color: 'theme.text.primary' })
|
|
133
133
|
* ```
|
|
134
|
-
*/export
|
|
134
|
+
*/export const Text=P;/**
|
|
135
135
|
* Creates a preformatted text element node.
|
|
136
136
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the pre element.
|
|
137
137
|
* @param props Optional properties for the pre element.
|
|
138
138
|
* @returns A pre element node.
|
|
139
|
-
*/export
|
|
139
|
+
*/export const Pre=createChildrenFirstNode("pre");/**
|
|
140
140
|
* Creates a code element node for displaying code snippets.
|
|
141
141
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the code.
|
|
142
142
|
* @param props Optional properties for the code element.
|
|
143
143
|
* @returns A code element node.
|
|
144
|
-
*/export
|
|
144
|
+
*/export const Code=createChildrenFirstNode("code");/**
|
|
145
145
|
* Represents a line break element.
|
|
146
146
|
* @param props Optional properties for the br element.
|
|
147
147
|
* @returns A br element node.
|
|
148
|
-
*/export
|
|
148
|
+
*/export const Br=createNode("br");// Lists
|
|
149
149
|
/**
|
|
150
150
|
* Represents an ordered list.
|
|
151
151
|
* @param props Optional properties for the ol element.
|
|
152
152
|
* @returns An ol element node.
|
|
153
|
-
*/export
|
|
153
|
+
*/export const Ol=createNode("ol");/**
|
|
154
154
|
* Represents an unordered list.
|
|
155
155
|
* @param props Optional properties for the ul element.
|
|
156
156
|
* @returns A ul element node.
|
|
157
|
-
*/export
|
|
157
|
+
*/export const Ul=createNode("ul");/**
|
|
158
158
|
* Represents a list item.
|
|
159
159
|
* @param props Optional properties for the li element.
|
|
160
160
|
* @returns An li element node.
|
|
161
|
-
*/export
|
|
161
|
+
*/export const Li=createNode("li");/**
|
|
162
162
|
* Represents a description list.
|
|
163
163
|
* @param props Optional properties for the dl element.
|
|
164
164
|
* @returns A dl element node.
|
|
165
|
-
*/export
|
|
165
|
+
*/export const Dl=createNode("dl");/**
|
|
166
166
|
* Represents a term in a description list.
|
|
167
167
|
* @param props Optional properties for the dt element.
|
|
168
168
|
* @returns A dt element node.
|
|
169
|
-
*/export
|
|
169
|
+
*/export const Dt=createNode("dt");/**
|
|
170
170
|
* Represents a description in a description list.
|
|
171
171
|
* @param props Optional properties for the dd element.
|
|
172
172
|
* @returns A dd element node.
|
|
173
|
-
*/export
|
|
173
|
+
*/export const Dd=createNode("dd");// Forms and inputs
|
|
174
174
|
/**
|
|
175
175
|
* Represents an HTML form.
|
|
176
176
|
* @param props Optional properties for the form element.
|
|
177
177
|
* @returns A form element node.
|
|
178
|
-
*/export
|
|
178
|
+
*/export const Form=createNode("form");/**
|
|
179
179
|
* Represents a label for an input element.
|
|
180
180
|
* @param props Optional properties for the label element.
|
|
181
181
|
* @returns A label element node.
|
|
182
|
-
*/export
|
|
182
|
+
*/export const Label=createNode("label");/**
|
|
183
183
|
* Represents an input element.
|
|
184
184
|
* @param props Optional properties for the input element.
|
|
185
185
|
* @returns An input element node.
|
|
186
|
-
*/export
|
|
186
|
+
*/export const Input=createNode("input");/**
|
|
187
187
|
* Creates a button element node.
|
|
188
188
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the button.
|
|
189
189
|
* @param props Optional properties for the button element.
|
|
190
190
|
* @returns A button element node.
|
|
191
|
-
*/export
|
|
191
|
+
*/export const Button=createChildrenFirstNode("button");/**
|
|
192
192
|
* Represents a textarea element for multiline text input.
|
|
193
193
|
* @param props Optional properties for the textarea element.
|
|
194
194
|
* @returns A textarea element node.
|
|
195
|
-
*/export
|
|
195
|
+
*/export const Textarea=createNode("textarea");/**
|
|
196
196
|
* Represents a select dropdown element.
|
|
197
197
|
* @param props Optional properties for the select element.
|
|
198
198
|
* @returns A select element node.
|
|
199
|
-
*/export
|
|
199
|
+
*/export const Select=createNode("select");/**
|
|
200
200
|
* Represents an option within a select element.
|
|
201
201
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the option.
|
|
202
202
|
* @param props Optional properties for the option element.
|
|
203
203
|
* @returns An option element node.
|
|
204
|
-
*/export
|
|
204
|
+
*/export const Option=createChildrenFirstNode("option");/**
|
|
205
205
|
* Represents a fieldset element for grouping form elements.
|
|
206
206
|
* @param props Optional properties for the fieldset element.
|
|
207
207
|
* @returns A fieldset element node.
|
|
208
|
-
*/export
|
|
208
|
+
*/export const Fieldset=createNode("fieldset");/**
|
|
209
209
|
* Represents a legend for a fieldset.
|
|
210
210
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the legend.
|
|
211
211
|
* @param props Optional properties for the legend element.
|
|
212
212
|
* @returns A legend element node.
|
|
213
|
-
*/export
|
|
213
|
+
*/export const Legend=createChildrenFirstNode("legend");/**
|
|
214
214
|
* Represents an option group within a select element.
|
|
215
215
|
* @param props Optional properties for the optgroup element.
|
|
216
216
|
* @returns An optgroup element node.
|
|
217
|
-
*/export
|
|
217
|
+
*/export const Optgroup=createNode("optgroup");// Tables
|
|
218
218
|
/**
|
|
219
219
|
* Represents a table element.
|
|
220
220
|
* @param props Optional properties for the table element.
|
|
221
221
|
* @returns A table element node.
|
|
222
|
-
*/export
|
|
222
|
+
*/export const Table=createNode("table");/**
|
|
223
223
|
* Represents a table header section.
|
|
224
224
|
* @param props Optional properties for the thead element.
|
|
225
225
|
* @returns A thead element node.
|
|
226
|
-
*/export
|
|
226
|
+
*/export const Thead=createNode("thead");/**
|
|
227
227
|
* Represents a table body section.
|
|
228
228
|
* @param props Optional properties for the tbody element.
|
|
229
229
|
* @returns A tbody element node.
|
|
230
|
-
*/export
|
|
230
|
+
*/export const Tbody=createNode("tbody");/**
|
|
231
231
|
* Represents a table footer section.
|
|
232
232
|
* @param props Optional properties for the tfoot element.
|
|
233
233
|
* @returns A tfoot element node.
|
|
234
|
-
*/export
|
|
234
|
+
*/export const Tfoot=createNode("tfoot");/**
|
|
235
235
|
* Represents a table row.
|
|
236
236
|
* @param props Optional properties for the tr element.
|
|
237
237
|
* @returns A tr element node.
|
|
238
|
-
*/export
|
|
238
|
+
*/export const Tr=createNode("tr");/**
|
|
239
239
|
* Represents a table header cell.
|
|
240
240
|
* @param props Optional properties for the th element.
|
|
241
241
|
* @returns A th element node.
|
|
242
|
-
*/export
|
|
242
|
+
*/export const Th=createNode("th");/**
|
|
243
243
|
* Represents a table data cell.
|
|
244
244
|
* @param props Optional properties for the td element.
|
|
245
245
|
* @returns A td element node.
|
|
246
|
-
*/export
|
|
246
|
+
*/export const Td=createNode("td");/**
|
|
247
247
|
* Represents a table caption.
|
|
248
248
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the caption.
|
|
249
249
|
* @param props Optional properties for the caption element.
|
|
250
250
|
* @returns A caption element node.
|
|
251
|
-
*/export
|
|
251
|
+
*/export const Caption=createChildrenFirstNode("caption");/**
|
|
252
252
|
* Represents a table column group.
|
|
253
253
|
* @param props Optional properties for the colgroup element.
|
|
254
254
|
* @returns A colgroup element node.
|
|
255
|
-
*/export
|
|
255
|
+
*/export const Colgroup=createNode("colgroup");/**
|
|
256
256
|
* Represents a table column.
|
|
257
257
|
* @param props Optional properties for the col element.
|
|
258
258
|
* @returns A col element node.
|
|
259
|
-
*/export
|
|
259
|
+
*/export const Col=createNode("col");// Media elements
|
|
260
260
|
/**
|
|
261
261
|
* Represents an image element.
|
|
262
262
|
* @param props Optional properties for the img element.
|
|
263
263
|
* @returns An img element node.
|
|
264
|
-
*/export
|
|
264
|
+
*/export const Img=createNode("img");/**
|
|
265
265
|
* Represents a video element.
|
|
266
266
|
* @param props Optional properties for the video element.
|
|
267
267
|
* @returns A video element node.
|
|
268
|
-
*/export
|
|
268
|
+
*/export const Video=createNode("video");/**
|
|
269
269
|
* Represents an audio element.
|
|
270
270
|
* @param props Optional properties for the audio element.
|
|
271
271
|
* @returns An audio element node.
|
|
272
|
-
*/export
|
|
272
|
+
*/export const Audio=createNode("audio");/**
|
|
273
273
|
* Represents a picture element.
|
|
274
274
|
* @param props Optional properties for the picture element.
|
|
275
275
|
* @returns A picture element node.
|
|
276
|
-
*/export
|
|
276
|
+
*/export const Picture=createNode("picture");/**
|
|
277
277
|
* Represents a source element.
|
|
278
278
|
* @param props Optional properties for the source element.
|
|
279
279
|
* @returns A source element node.
|
|
280
|
-
*/export
|
|
280
|
+
*/export const Source=createNode("source");/**
|
|
281
281
|
* Represents a text track element.
|
|
282
282
|
* @param props Optional properties for the track element.
|
|
283
283
|
* @returns A track element node.
|
|
284
|
-
*/export
|
|
284
|
+
*/export const Track=createNode("track");/**
|
|
285
285
|
* Represents a canvas element.
|
|
286
286
|
* @param props Optional properties for the canvas element.
|
|
287
287
|
* @returns A canvas element node.
|
|
288
|
-
*/export
|
|
288
|
+
*/export const Canvas=createNode("canvas");/**
|
|
289
289
|
* Represents an iframe element.
|
|
290
290
|
* @param props Optional properties for the iframe element.
|
|
291
291
|
* @returns An iframe element node.
|
|
292
|
-
*/export
|
|
292
|
+
*/export const Iframe=createNode("iframe");// SVG elements
|
|
293
293
|
/**
|
|
294
294
|
* Represents an SVG container element.
|
|
295
295
|
* @param props Optional properties for the svg element.
|
|
296
296
|
* @returns An svg element node.
|
|
297
|
-
*/export
|
|
297
|
+
*/export const Svg=createNode("svg");/**
|
|
298
298
|
* Represents an SVG path element.
|
|
299
299
|
* @param props Optional properties for the path element.
|
|
300
300
|
* @returns A path element node.
|
|
301
|
-
*/export
|
|
301
|
+
*/export const SvgPath=createNode("path");/**
|
|
302
302
|
* Represents an SVG circle element.
|
|
303
303
|
* @param props Optional properties for the circle element.
|
|
304
304
|
* @returns A circle element node.
|
|
305
|
-
*/export
|
|
305
|
+
*/export const SvgCircle=createNode("circle");/**
|
|
306
306
|
* Represents an SVG ellipse element.
|
|
307
307
|
* @param props Optional properties for the ellipse element.
|
|
308
308
|
* @returns An ellipse element node.
|
|
309
|
-
*/export
|
|
309
|
+
*/export const SvgEllipse=createNode("ellipse");/**
|
|
310
310
|
* Represents an SVG line element.
|
|
311
311
|
* @param props Optional properties for the line element.
|
|
312
312
|
* @returns A line element node.
|
|
313
|
-
*/export
|
|
313
|
+
*/export const SvgLine=createNode("line");/**
|
|
314
314
|
* Represents an SVG polyline element.
|
|
315
315
|
* @param props Optional properties for the polyline element.
|
|
316
316
|
* @returns A polyline element node.
|
|
317
|
-
*/export
|
|
317
|
+
*/export const SvgPolyline=createNode("polyline");/**
|
|
318
318
|
* Represents an SVG polygon element.
|
|
319
319
|
* @param props Optional properties for the polygon element.
|
|
320
320
|
* @returns A polygon element node.
|
|
321
|
-
*/export
|
|
321
|
+
*/export const SvgPolygon=createNode("polygon");/**
|
|
322
322
|
* Represents an SVG rectangle element.
|
|
323
323
|
* @param props Optional properties for the rect element.
|
|
324
324
|
* @returns A rect element node.
|
|
325
|
-
*/export
|
|
325
|
+
*/export const SvgRect=createNode("rect");/**
|
|
326
326
|
* Represents an SVG use element.
|
|
327
327
|
* @param props Optional properties for the use element.
|
|
328
328
|
* @returns A use element node.
|
|
329
|
-
*/export
|
|
329
|
+
*/export const SvgUse=createNode("use");/**
|
|
330
330
|
* Represents an SVG definitions element.
|
|
331
331
|
* @param props Optional properties for the defs element.
|
|
332
332
|
* @returns A defs element node.
|
|
333
|
-
*/export
|
|
333
|
+
*/export const SvgDefs=createNode("defs");/**
|
|
334
334
|
* Represents an SVG linear gradient element.
|
|
335
335
|
* @param props Optional properties for the linearGradient element.
|
|
336
336
|
* @returns A linearGradient element node.
|
|
337
|
-
*/export
|
|
337
|
+
*/export const SvgLinearGradient=createNode("linearGradient");/**
|
|
338
338
|
* Represents an SVG radial gradient element.
|
|
339
339
|
* @param props Optional properties for the radialGradient element.
|
|
340
340
|
* @returns A radialGradient element node.
|
|
341
|
-
*/export
|
|
341
|
+
*/export const SvgRadialGradient=createNode("radialGradient");/**
|
|
342
342
|
* Represents an SVG gradient stop element.
|
|
343
343
|
* @param props Optional properties for the stop element.
|
|
344
344
|
* @returns A stop element node.
|
|
345
|
-
*/export
|
|
345
|
+
*/export const SvgStop=createNode("stop");/**
|
|
346
346
|
* Represents an SVG symbol element.
|
|
347
347
|
* @param props Optional properties for the symbol element.
|
|
348
348
|
* @returns A symbol element node.
|
|
349
|
-
*/export
|
|
349
|
+
*/export const SvgSymbol=createNode("symbol");/**
|
|
350
350
|
* Represents an SVG group element.
|
|
351
351
|
* @param props Optional properties for the g element.
|
|
352
352
|
* @returns A g element node.
|
|
353
|
-
*/export
|
|
353
|
+
*/export const SvgG=createNode("g");/**
|
|
354
354
|
* Represents an SVG text element.
|
|
355
355
|
* @param props Optional properties for the text element.
|
|
356
356
|
* @returns A text element node.
|
|
357
|
-
*/export
|
|
357
|
+
*/export const SvgText=createNode("text");/**
|
|
358
358
|
* Represents an SVG text span element.
|
|
359
359
|
* @param props Optional properties for the tspan element.
|
|
360
360
|
* @returns A tspan element node.
|
|
361
|
-
*/export
|
|
361
|
+
*/export const SvgTspan=createNode("tspan");// Navigation and links
|
|
362
362
|
/**
|
|
363
363
|
* Represents an anchor element.
|
|
364
364
|
* @param props Optional properties for the a element.
|
|
365
365
|
* @returns An a element node.
|
|
366
|
-
*/export
|
|
366
|
+
*/export const A=createNode("a");/**
|
|
367
367
|
* Represents a navigation element.
|
|
368
368
|
* @param props Optional properties for the nav element.
|
|
369
369
|
* @returns A nav element node.
|
|
370
|
-
*/export
|
|
370
|
+
*/export const Nav=createNode("nav");// Document structure
|
|
371
371
|
/**
|
|
372
372
|
* Represents the body element of an HTML document.
|
|
373
373
|
* @param props Optional properties for the body element.
|
|
374
374
|
* @returns A body element node.
|
|
375
|
-
*/export
|
|
375
|
+
*/export const Body=createNode("body");/**
|
|
376
376
|
* Represents the main content of a document.
|
|
377
377
|
* @param props Optional properties for the main element.
|
|
378
378
|
* @returns A main element node.
|
|
379
|
-
*/export
|
|
379
|
+
*/export const Main=createNode("main",{display:"flex",flexDirection:"column"});/**
|
|
380
380
|
* Represents a header element.
|
|
381
381
|
* @param props Optional properties for the header element.
|
|
382
382
|
* @returns A header element node.
|
|
383
|
-
*/export
|
|
383
|
+
*/export const Header=createNode("header");/**
|
|
384
384
|
* Represents a footer element.
|
|
385
385
|
* @param props Optional properties for the footer element.
|
|
386
386
|
* @returns A footer element node.
|
|
387
|
-
*/export
|
|
387
|
+
*/export const Footer=createNode("footer");/**
|
|
388
388
|
* Represents an aside element.
|
|
389
389
|
* @param props Optional properties for the aside element.
|
|
390
390
|
* @returns An aside element node.
|
|
391
|
-
*/export
|
|
391
|
+
*/export const Aside=createNode("aside");/**
|
|
392
392
|
* Represents a section element.
|
|
393
393
|
* @param props Optional properties for the section element.
|
|
394
394
|
* @returns A section element node.
|
|
395
|
-
*/export
|
|
395
|
+
*/export const Section=createNode("section");/**
|
|
396
396
|
* Represents an article element.
|
|
397
397
|
* @param props Optional properties for the article element.
|
|
398
398
|
* @returns An article element node.
|
|
399
|
-
*/export
|
|
399
|
+
*/export const Article=createNode("article");/**
|
|
400
400
|
* Represents a figure element.
|
|
401
401
|
* @param props Optional properties for the figure element.
|
|
402
402
|
* @returns A figure element node.
|
|
403
|
-
*/export
|
|
403
|
+
*/export const Figure=createNode("figure");/**
|
|
404
404
|
* Represents a figure caption element.
|
|
405
405
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the figcaption.
|
|
406
406
|
* @param props Optional properties for the figcaption element.
|
|
407
407
|
* @returns A figcaption element node.
|
|
408
|
-
*/export
|
|
408
|
+
*/export const Figcaption=createChildrenFirstNode("figcaption");/**
|
|
409
409
|
* Represents a blockquote element.
|
|
410
410
|
* @param props Optional properties for the blockquote element.
|
|
411
411
|
* @returns A blockquote element node.
|
|
412
|
-
*/export
|
|
412
|
+
*/export const Blockquote=createNode("blockquote");/**
|
|
413
413
|
* Represents an address element.
|
|
414
414
|
* @param props Optional properties for the address element.
|
|
415
415
|
* @returns An address element node.
|
|
416
|
-
*/export
|
|
416
|
+
*/export const Address=createNode("address");/**
|
|
417
417
|
* Represents a dialog element.
|
|
418
418
|
* @param props Optional properties for the dialog element.
|
|
419
419
|
* @returns A dialog element node.
|
|
420
|
-
*/export
|
|
420
|
+
*/export const Dialog=createNode("dialog");/**
|
|
421
421
|
* Represents a details element.
|
|
422
422
|
* @param props Optional properties for the details element.
|
|
423
423
|
* @returns A details element node.
|
|
424
|
-
*/export
|
|
424
|
+
*/export const Details=createNode("details");/**
|
|
425
425
|
* Represents a summary element for a details disclosure box.
|
|
426
426
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the summary.
|
|
427
427
|
* @param props Optional properties for the summary element.
|
|
428
428
|
* @returns A summary element node.
|
|
429
|
-
*/export
|
|
429
|
+
*/export const Summary=createChildrenFirstNode("summary");// Document head elements
|
|
430
430
|
/**
|
|
431
431
|
* Represents a head element.
|
|
432
432
|
* @param props Optional properties for the head element.
|
|
433
433
|
* @returns A head element node.
|
|
434
|
-
*/export
|
|
434
|
+
*/export const Head=createNode("head");/**
|
|
435
435
|
* Represents the root HTML element.
|
|
436
436
|
* @param props Optional properties for the HTML element.
|
|
437
437
|
* @returns An HTML element node.
|
|
438
|
-
*/export
|
|
438
|
+
*/export const Html=createNode("html");/**
|
|
439
439
|
* Represents a meta element.
|
|
440
440
|
* @param props Optional properties for the meta element.
|
|
441
441
|
* @returns A meta element node.
|
|
442
|
-
*/export
|
|
442
|
+
*/export const Meta=createNode("meta");/**
|
|
443
443
|
* Represents a link element.
|
|
444
444
|
* @param props Optional properties for the link element.
|
|
445
445
|
* @returns A link element node.
|
|
446
|
-
*/export
|
|
446
|
+
*/export const Link=createNode("link");/**
|
|
447
447
|
* Represents a style element. Its content should be CSS text.
|
|
448
448
|
* @param props Optional properties for the style element.
|
|
449
449
|
* @returns A style element node.
|
|
450
|
-
*/export
|
|
450
|
+
*/export const Style=createNode("style");/**
|
|
451
451
|
* Represents a script element. For inline scripts, its content should be JavaScript text.
|
|
452
452
|
* @param props Optional properties for the script element (e.g., src, type, async, defer).
|
|
453
453
|
* @returns A script element node.
|
|
454
|
-
*/export
|
|
454
|
+
*/export const Script=createNode("script");/**
|
|
455
455
|
* Creates a title element node for document head title.
|
|
456
456
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the title.
|
|
457
457
|
* @param props Optional properties for the title element.
|
|
458
458
|
* @returns A title element node.
|
|
459
|
-
*/export
|
|
459
|
+
*/export const Title=createChildrenFirstNode("title");/**
|
|
460
460
|
* Represents a base element.
|
|
461
461
|
* @param props Optional properties for the base element.
|
|
462
462
|
* @returns A base element node.
|
|
463
|
-
*/export
|
|
463
|
+
*/export const Base=createNode("base");// --- Additional Text-Level Semantics ---
|
|
464
464
|
/**
|
|
465
465
|
* Represents an abbreviation or acronym.
|
|
466
466
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the abbreviation.
|
|
467
467
|
* @param props Optional properties for the abbr element.
|
|
468
468
|
* @returns An abbr element node.
|
|
469
|
-
*/export
|
|
469
|
+
*/export const Abbr=createChildrenFirstNode("abbr");/**
|
|
470
470
|
* Represents text that should be stylistically offset from normal prose (traditionally bold).
|
|
471
471
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
472
472
|
* @param props Optional properties for the b element.
|
|
473
473
|
* @returns A b element node.
|
|
474
|
-
*/export
|
|
474
|
+
*/export const B=createChildrenFirstNode("b");/**
|
|
475
475
|
* Represents text that is isolated from its surroundings for bidirectional text formatting.
|
|
476
476
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
477
477
|
* @param props Optional properties for the bdi element.
|
|
478
478
|
* @returns A bdi element node.
|
|
479
|
-
*/export
|
|
479
|
+
*/export const Bdi=createChildrenFirstNode("bdi");/**
|
|
480
480
|
* Overrides the current text directionality.
|
|
481
481
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
482
482
|
* @param props Optional properties for the bdo element.
|
|
483
483
|
* @returns A bdo element node.
|
|
484
|
-
*/export
|
|
484
|
+
*/export const Bdo=createChildrenFirstNode("bdo");/**
|
|
485
485
|
* Represents the title of a work (e.g., a book, a song, an essay).
|
|
486
486
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the citation.
|
|
487
487
|
* @param props Optional properties for the cite element.
|
|
488
488
|
* @returns A cite element node.
|
|
489
|
-
*/export
|
|
489
|
+
*/export const Cite=createChildrenFirstNode("cite");/**
|
|
490
490
|
* Links a piece of content with a machine-readable translation.
|
|
491
491
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
492
492
|
* @param props Optional properties for the data element.
|
|
493
493
|
* @returns A data element node.
|
|
494
|
-
*/export
|
|
494
|
+
*/export const Data=createChildrenFirstNode("data");/**
|
|
495
495
|
* Represents a definition of a term.
|
|
496
496
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the definition.
|
|
497
497
|
* @param props Optional properties for the dfn element.
|
|
498
498
|
* @returns A dfn element node.
|
|
499
|
-
*/export
|
|
499
|
+
*/export const Dfn=createChildrenFirstNode("dfn");/**
|
|
500
500
|
* Represents text in an alternate voice or mood (traditionally italic).
|
|
501
501
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
502
502
|
* @param props Optional properties for the i element.
|
|
503
503
|
* @returns An i element node.
|
|
504
|
-
*/export
|
|
504
|
+
*/export const I=createChildrenFirstNode("i");/**
|
|
505
505
|
* Represents user input (typically keyboard input).
|
|
506
506
|
* @param children The content to be rendered within the element (text, numbers, components, etc) representing keyboard input.
|
|
507
507
|
* @param props Optional properties for the kbd element.
|
|
508
508
|
* @returns A kbd element node.
|
|
509
|
-
*/export
|
|
509
|
+
*/export const Kbd=createChildrenFirstNode("kbd");/**
|
|
510
510
|
* Represents an inline quotation.
|
|
511
511
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the quotation.
|
|
512
512
|
* @param props Optional properties for the q element.
|
|
513
513
|
* @returns A q element node.
|
|
514
|
-
*/export
|
|
514
|
+
*/export const Q=createChildrenFirstNode("q");/**
|
|
515
515
|
* Represents fallback parenthesis for ruby annotations.
|
|
516
516
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
517
517
|
* @param props Optional properties for the rp element.
|
|
518
518
|
* @returns An rp element node.
|
|
519
|
-
*/export
|
|
519
|
+
*/export const Rp=createChildrenFirstNode("rp");/**
|
|
520
520
|
* Represents the ruby text component of a ruby annotation.
|
|
521
521
|
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
522
522
|
* @param props Optional properties for the rt element.
|
|
523
523
|
* @returns An rt element node.
|
|
524
|
-
*/export
|
|
524
|
+
*/export const Rt=createChildrenFirstNode("rt");/**
|
|
525
525
|
* Represents a ruby annotation.
|
|
526
526
|
* @param props Optional properties for the ruby element.
|
|
527
527
|
* @returns A ruby element node.
|
|
528
|
-
*/export
|
|
528
|
+
*/export const Ruby=createNode("ruby");/**
|
|
529
529
|
* Represents text that is no longer accurate or relevant (strikethrough).
|
|
530
530
|
* @param children The content to be rendered within the element (text, numbers, components, etc) to be struck through.
|
|
531
531
|
* @param props Optional properties for the s element.
|
|
532
532
|
* @returns An s element node.
|
|
533
|
-
*/export
|
|
533
|
+
*/export const S=createChildrenFirstNode("s");/**
|
|
534
534
|
* Represents sample output from a computer program.
|
|
535
535
|
* @param children The content to be rendered within the element (text, numbers, components, etc) representing sample output.
|
|
536
536
|
* @param props Optional properties for the samp element.
|
|
537
537
|
* @returns A samp element node.
|
|
538
|
-
*/export
|
|
538
|
+
*/export const Samp=createChildrenFirstNode("samp");/**
|
|
539
539
|
* Represents subscript text.
|
|
540
540
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the subscript.
|
|
541
541
|
* @param props Optional properties for the sub element.
|
|
542
542
|
* @returns A sub element node.
|
|
543
|
-
*/export
|
|
543
|
+
*/export const Sub=createChildrenFirstNode("sub");/**
|
|
544
544
|
* Represents superscript text.
|
|
545
545
|
* @param children The content to be rendered within the element (text, numbers, components, etc) for the superscript.
|
|
546
546
|
* @param props Optional properties for the sup element.
|
|
547
547
|
* @returns A sup element node.
|
|
548
|
-
*/export
|
|
548
|
+
*/export const Sup=createChildrenFirstNode("sup");/**
|
|
549
549
|
* Represents a specific period in time or a date.
|
|
550
550
|
* @param children The content to be rendered within the element (text, numbers, components, etc) representing the time/date.
|
|
551
551
|
* @param props Optional properties for the time element.
|
|
552
552
|
* @returns A time element node.
|
|
553
|
-
*/export
|
|
553
|
+
*/export const Time=createChildrenFirstNode("time");/**
|
|
554
554
|
* Represents text that should be rendered with an unarticulated, non-textual annotation (traditionally underline).
|
|
555
555
|
* @param children The content to be rendered within the element (text, numbers, components, etc) to be underlined.
|
|
556
556
|
* @param props Optional properties for the u element.
|
|
557
557
|
* @returns A u element node.
|
|
558
|
-
*/export
|
|
558
|
+
*/export const U=createChildrenFirstNode("u");/**
|
|
559
559
|
* Represents a variable in a mathematical expression or programming context.
|
|
560
560
|
* @param children The content to be rendered within the element (text, numbers, components, etc) representing a variable.
|
|
561
561
|
* @param props Optional properties for the var element.
|
|
562
562
|
* @returns A var element node.
|
|
563
|
-
*/export
|
|
563
|
+
*/export const Var=createChildrenFirstNode("var");/**
|
|
564
564
|
* Represents a word break opportunity. This is a void element.
|
|
565
565
|
* @param props Optional properties for the wbr element.
|
|
566
566
|
* @returns A wbr element node.
|
|
567
|
-
*/export
|
|
567
|
+
*/export const Wbr=createNode("wbr");// --- Additional Grouping Content ---
|
|
568
568
|
/**
|
|
569
569
|
* Represents a thematic break between paragraph-level elements (e.g., a scene change in a story, or a shift of topic). This is a void element.
|
|
570
570
|
* @param props Optional properties for the hr element.
|
|
571
571
|
* @returns An hr element node.
|
|
572
|
-
*/export
|
|
572
|
+
*/export const Hr=createNode("hr");/**
|
|
573
573
|
* Represents a group of commands that a user can perform or activate.
|
|
574
574
|
* @param props Optional properties for the menu element.
|
|
575
575
|
* @returns A menu element node.
|
|
576
|
-
*/export
|
|
576
|
+
*/export const Menu=createNode("menu");/**
|
|
577
577
|
* Represents the parts of a document or application that contain search or filtering controls.
|
|
578
578
|
* @param props Optional properties for the search element.
|
|
579
579
|
* @returns A search element node.
|
|
580
|
-
*/export
|
|
580
|
+
*/export const Search=createNode("search");// --- Additional Embedded Content ---
|
|
581
581
|
/**
|
|
582
582
|
* Represents an integration point for an external application or interactive content (a plug-in). This is a void element.
|
|
583
583
|
* @param props Optional properties for the embed element.
|
|
584
584
|
* @returns An embed element node.
|
|
585
|
-
*/export
|
|
585
|
+
*/export const Embed=createNode("embed");/**
|
|
586
586
|
* Represents an external resource, which can be treated as an image, a nested Browse context, or content to be handled by a plugin.
|
|
587
587
|
* @param props Optional properties for the object element.
|
|
588
588
|
* @returns An object element node.
|
|
589
|
-
*/export
|
|
589
|
+
*/export const ObjectElement=createNode("object");/**
|
|
590
590
|
* Defines parameters for an <object> element. This is a void element.
|
|
591
591
|
* @param props Optional properties for the param element.
|
|
592
592
|
* @returns A param element node.
|
|
593
|
-
*/export
|
|
593
|
+
*/export const Param=createNode("param");/**
|
|
594
594
|
* Represents an image map, with clickable areas.
|
|
595
595
|
* @param props Optional properties for the map element.
|
|
596
596
|
* @returns A map element node.
|
|
597
|
-
*/export
|
|
597
|
+
*/export const MapElement=createNode("map");/**
|
|
598
598
|
* Defines a client-side image map area. This is a void element.
|
|
599
599
|
* @param props Optional properties for the area element.
|
|
600
600
|
* @returns An area element node.
|
|
601
|
-
*/export
|
|
601
|
+
*/export const Area=createNode("area");// --- Additional Forms Elements ---
|
|
602
602
|
/**
|
|
603
603
|
* Contains a set of <option> elements that represent predefined options for other controls.
|
|
604
604
|
* @param props Optional properties for the datalist element.
|
|
605
605
|
* @returns A datalist element node.
|
|
606
|
-
*/export
|
|
606
|
+
*/export const Datalist=createNode("datalist");/**
|
|
607
607
|
* Represents the result of a calculation or user action.
|
|
608
608
|
* @param props Optional properties for the output element.
|
|
609
609
|
* @returns An output element node.
|
|
610
|
-
*/export
|
|
610
|
+
*/export const Output=createNode("output");/**
|
|
611
611
|
* Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
|
|
612
612
|
* @param props Optional properties for the progress element.
|
|
613
613
|
* @returns A progress element node.
|
|
614
|
-
*/export
|
|
614
|
+
*/export const Progress=createNode("progress");/**
|
|
615
615
|
* Represents either a scalar value within a known range or a fractional value.
|
|
616
616
|
* @param props Optional properties for the meter element.
|
|
617
617
|
* @returns A meter element node.
|
|
618
|
-
*/export
|
|
618
|
+
*/export const Meter=createNode("meter");// --- Additional Scripting & Document Elements ---
|
|
619
619
|
/**
|
|
620
620
|
* Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
|
|
621
621
|
* @param props Optional properties for the noscript element.
|
|
622
622
|
* @returns A noscript element node.
|
|
623
|
-
*/export
|
|
623
|
+
*/export const Noscript=createNode("noscript");/**
|
|
624
624
|
* A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
|
|
625
625
|
* @param props Optional properties for the template element.
|
|
626
626
|
* @returns A template element node.
|
|
627
|
-
*/export
|
|
627
|
+
*/export const Template=createNode("template");// --- Additional Sections Elements ---
|
|
628
628
|
/**
|
|
629
629
|
* Represents a heading group. It is used to group a set of <h1>–<h6> elements.
|
|
630
630
|
* @param props Optional properties for the hgroup element.
|
|
631
631
|
* @returns An hgroup element node.
|
|
632
|
-
*/export
|
|
632
|
+
*/export const Hgroup=createNode("hgroup");
|