@meonode/ui 0.1.6 → 0.1.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/README.md +15 -15
- package/dist/html.node.d.ts +322 -78
- package/dist/html.node.d.ts.map +1 -1
- package/dist/html.node.js +231 -52
- package/dist/json/css-properties.json +1 -692
- package/package.json +1 -1
package/dist/html.node.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import type { NodeProps } from './node.type.js';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the root HTML element.
|
|
4
|
-
* @param props Optional properties for the HTML element.
|
|
5
|
-
* @returns An HTML element node.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Html: (props?: NodeProps<"html">) => import("./node.type.js").BaseNodeInstance<"html">;
|
|
8
|
-
/**
|
|
9
|
-
* Represents the body element of an HTML document.
|
|
10
|
-
* @param props Optional properties for the body element.
|
|
11
|
-
* @returns A body element node.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Body: (props?: NodeProps<"body">) => import("./node.type.js").BaseNodeInstance<"body">;
|
|
1
|
+
import type { NodeElement, NodeProps } from './node.type.js';
|
|
14
2
|
/**
|
|
15
3
|
* Represents a div element.
|
|
16
4
|
* @param props Optional properties for the div element.
|
|
@@ -35,12 +23,6 @@ export declare const Row: (props?: NodeProps<"div">) => import("./node.type.js")
|
|
|
35
23
|
* @returns A div element node with grid layout.
|
|
36
24
|
*/
|
|
37
25
|
export declare const Grid: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
|
|
38
|
-
/**
|
|
39
|
-
* Represents the main content of a document.
|
|
40
|
-
* @param props Optional properties for the main element.
|
|
41
|
-
* @returns A main element node.
|
|
42
|
-
*/
|
|
43
|
-
export declare const Main: (props?: NodeProps<"main">) => import("./node.type.js").BaseNodeInstance<"main">;
|
|
44
26
|
/**
|
|
45
27
|
* Represents a centered layout using flexbox.
|
|
46
28
|
* @param props Optional properties for the centered layout.
|
|
@@ -73,102 +55,108 @@ export declare const Sticky: (props?: NodeProps<"div">) => import("./node.type.j
|
|
|
73
55
|
export declare const Static: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
|
|
74
56
|
/**
|
|
75
57
|
* Creates an h1 heading element node.
|
|
76
|
-
* @param
|
|
58
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
77
59
|
* @param props Optional properties for the h1 element.
|
|
78
60
|
* @returns An h1 element node.
|
|
79
61
|
*/
|
|
80
|
-
export declare const H1: (
|
|
62
|
+
export declare const H1: (children: NodeElement, props?: Omit<NodeProps<"h1">, "children">) => import("./node.type.js").BaseNodeInstance<"h1">;
|
|
81
63
|
/**
|
|
82
64
|
* Creates an h2 heading element node.
|
|
83
|
-
* @param
|
|
65
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
84
66
|
* @param props Optional properties for the h2 element.
|
|
85
67
|
* @returns An h2 element node.
|
|
86
68
|
*/
|
|
87
|
-
export declare const H2: (
|
|
69
|
+
export declare const H2: (children: NodeElement, props?: Omit<NodeProps<"h2">, "children">) => import("./node.type.js").BaseNodeInstance<"h2">;
|
|
88
70
|
/**
|
|
89
71
|
* Creates an h3 heading element node.
|
|
90
|
-
* @param
|
|
72
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
91
73
|
* @param props Optional properties for the h3 element.
|
|
92
74
|
* @returns An h3 element node.
|
|
93
75
|
*/
|
|
94
|
-
export declare const H3: (
|
|
76
|
+
export declare const H3: (children: NodeElement, props?: Omit<NodeProps<"h3">, "children">) => import("./node.type.js").BaseNodeInstance<"h3">;
|
|
95
77
|
/**
|
|
96
78
|
* Creates an h4 heading element node.
|
|
97
|
-
* @param
|
|
79
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
98
80
|
* @param props Optional properties for the h4 element.
|
|
99
81
|
* @returns An h4 element node.
|
|
100
82
|
*/
|
|
101
|
-
export declare const H4: (
|
|
83
|
+
export declare const H4: (children: NodeElement, props?: Omit<NodeProps<"h4">, "children">) => import("./node.type.js").BaseNodeInstance<"h4">;
|
|
102
84
|
/**
|
|
103
85
|
* Creates an h5 heading element node.
|
|
104
|
-
* @param
|
|
86
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
105
87
|
* @param props Optional properties for the h5 element.
|
|
106
88
|
* @returns An h5 element node.
|
|
107
89
|
*/
|
|
108
|
-
export declare const H5: (
|
|
90
|
+
export declare const H5: (children: NodeElement, props?: Omit<NodeProps<"h5">, "children">) => import("./node.type.js").BaseNodeInstance<"h5">;
|
|
109
91
|
/**
|
|
110
92
|
* Creates an h6 heading element node.
|
|
111
|
-
* @param
|
|
93
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the heading.
|
|
112
94
|
* @param props Optional properties for the h6 element.
|
|
113
95
|
* @returns An h6 element node.
|
|
114
96
|
*/
|
|
115
|
-
export declare const H6: (
|
|
97
|
+
export declare const H6: (children: NodeElement, props?: Omit<NodeProps<"h6">, "children">) => import("./node.type.js").BaseNodeInstance<"h6">;
|
|
116
98
|
/**
|
|
117
99
|
* Creates a strong element node for important text.
|
|
118
|
-
* @param
|
|
100
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
|
|
119
101
|
* @param props Optional properties for the strong element.
|
|
120
102
|
* @returns A strong element node.
|
|
121
103
|
*/
|
|
122
|
-
export declare const Strong: (
|
|
104
|
+
export declare const Strong: (children: NodeElement, props?: Omit<NodeProps<"strong">, "children">) => import("./node.type.js").BaseNodeInstance<"strong">;
|
|
123
105
|
/**
|
|
124
106
|
* Creates an em element node for emphasized text.
|
|
125
|
-
* @param
|
|
107
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) to emphasize.
|
|
126
108
|
* @param props Optional properties for the em element.
|
|
127
109
|
* @returns An em element node.
|
|
128
110
|
*/
|
|
129
|
-
export declare const Em: (
|
|
111
|
+
export declare const Em: (children: NodeElement, props?: Omit<NodeProps<"em">, "children">) => import("./node.type.js").BaseNodeInstance<"em">;
|
|
130
112
|
/**
|
|
131
113
|
* Creates a small element node for side-comments and small print.
|
|
132
|
-
* @param
|
|
133
|
-
* @param props Optional properties for the small element.
|
|
134
|
-
* @returns A small element node.
|
|
114
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
115
|
+
* @param props Optional properties for styling and configuring the small element.
|
|
116
|
+
* @returns A small element node that can be rendered in React.
|
|
135
117
|
*/
|
|
136
|
-
export declare const Small: (
|
|
118
|
+
export declare const Small: (children: NodeElement, props?: Omit<NodeProps<"small">, "children">) => import("./node.type.js").BaseNodeInstance<"small">;
|
|
137
119
|
/**
|
|
138
120
|
* Creates a mark element node for highlighted text.
|
|
139
|
-
* @param
|
|
121
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) to highlight.
|
|
140
122
|
* @param props Optional properties for the mark element.
|
|
141
123
|
* @returns A mark element node.
|
|
142
124
|
*/
|
|
143
|
-
export declare const Mark: (
|
|
125
|
+
export declare const Mark: (children: NodeElement, props?: Omit<NodeProps<"mark">, "children">) => import("./node.type.js").BaseNodeInstance<"mark">;
|
|
144
126
|
/**
|
|
145
127
|
* Creates a span element node.
|
|
146
|
-
* @param
|
|
128
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the span.
|
|
147
129
|
* @param props Optional properties for the span element.
|
|
148
130
|
* @returns A span element node.
|
|
149
131
|
*/
|
|
150
|
-
export declare const Span: (
|
|
132
|
+
export declare const Span: (children: NodeElement, props?: Omit<NodeProps<"span">, "children">) => import("./node.type.js").BaseNodeInstance<"span">;
|
|
151
133
|
/**
|
|
152
134
|
* Creates a paragraph element node.
|
|
153
|
-
* @param
|
|
135
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the paragraph.
|
|
154
136
|
* @param props Optional properties for the p element.
|
|
155
137
|
* @returns A paragraph element node.
|
|
156
138
|
*/
|
|
157
|
-
export declare const P: (
|
|
139
|
+
export declare const P: (children: NodeElement, props?: Omit<NodeProps<"p">, "children">) => import("./node.type.js").BaseNodeInstance<"p">;
|
|
158
140
|
/**
|
|
159
141
|
* Creates a preformatted text element node.
|
|
160
|
-
* @param
|
|
142
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the pre element.
|
|
161
143
|
* @param props Optional properties for the pre element.
|
|
162
144
|
* @returns A pre element node.
|
|
163
145
|
*/
|
|
164
|
-
export declare const Pre: (
|
|
146
|
+
export declare const Pre: (children: NodeElement, props?: Omit<NodeProps<"pre">, "children">) => import("./node.type.js").BaseNodeInstance<"pre">;
|
|
165
147
|
/**
|
|
166
148
|
* Creates a code element node for displaying code snippets.
|
|
167
|
-
* @param
|
|
149
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the code.
|
|
168
150
|
* @param props Optional properties for the code element.
|
|
169
151
|
* @returns A code element node.
|
|
170
152
|
*/
|
|
171
|
-
export declare const Code: (
|
|
153
|
+
export declare const Code: (children: NodeElement, props?: Omit<NodeProps<"code">, "children">) => import("./node.type.js").BaseNodeInstance<"code">;
|
|
154
|
+
/**
|
|
155
|
+
* Represents a line break element.
|
|
156
|
+
* @param props Optional properties for the br element.
|
|
157
|
+
* @returns A br element node.
|
|
158
|
+
*/
|
|
159
|
+
export declare const Br: (props?: Omit<NodeProps<"br">, "children">) => import("./node.type.js").BaseNodeInstance<"br">;
|
|
172
160
|
/**
|
|
173
161
|
* Represents an ordered list.
|
|
174
162
|
* @param props Optional properties for the ol element.
|
|
@@ -222,13 +210,14 @@ export declare const Label: (props?: NodeProps<"label">) => import("./node.type.
|
|
|
222
210
|
* @param props Optional properties for the input element.
|
|
223
211
|
* @returns An input element node.
|
|
224
212
|
*/
|
|
225
|
-
export declare const Input: (props?: NodeProps<"input">) => import("./node.type.js").BaseNodeInstance<"input">;
|
|
213
|
+
export declare const Input: (props?: Omit<NodeProps<"input">, "children">) => import("./node.type.js").BaseNodeInstance<"input">;
|
|
226
214
|
/**
|
|
227
|
-
*
|
|
215
|
+
* Creates a button element node.
|
|
216
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the button.
|
|
228
217
|
* @param props Optional properties for the button element.
|
|
229
218
|
* @returns A button element node.
|
|
230
219
|
*/
|
|
231
|
-
export declare const Button: (props?: NodeProps<"button">) => import("./node.type.js").BaseNodeInstance<"button">;
|
|
220
|
+
export declare const Button: (children: NodeElement, props?: Omit<NodeProps<"button">, "children">) => import("./node.type.js").BaseNodeInstance<"button">;
|
|
232
221
|
/**
|
|
233
222
|
* Represents a textarea element for multiline text input.
|
|
234
223
|
* @param props Optional properties for the textarea element.
|
|
@@ -243,10 +232,11 @@ export declare const Textarea: (props?: NodeProps<"textarea">) => import("./node
|
|
|
243
232
|
export declare const Select: (props?: NodeProps<"select">) => import("./node.type.js").BaseNodeInstance<"select">;
|
|
244
233
|
/**
|
|
245
234
|
* Represents an option within a select element.
|
|
235
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the option.
|
|
246
236
|
* @param props Optional properties for the option element.
|
|
247
237
|
* @returns An option element node.
|
|
248
238
|
*/
|
|
249
|
-
export declare const Option: (props?: NodeProps<"option">) => import("./node.type.js").BaseNodeInstance<"option">;
|
|
239
|
+
export declare const Option: (children: NodeElement, props?: Omit<NodeProps<"option">, "children">) => import("./node.type.js").BaseNodeInstance<"option">;
|
|
250
240
|
/**
|
|
251
241
|
* Represents a fieldset element for grouping form elements.
|
|
252
242
|
* @param props Optional properties for the fieldset element.
|
|
@@ -255,10 +245,11 @@ export declare const Option: (props?: NodeProps<"option">) => import("./node.typ
|
|
|
255
245
|
export declare const Fieldset: (props?: NodeProps<"fieldset">) => import("./node.type.js").BaseNodeInstance<"fieldset">;
|
|
256
246
|
/**
|
|
257
247
|
* Represents a legend for a fieldset.
|
|
248
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the legend.
|
|
258
249
|
* @param props Optional properties for the legend element.
|
|
259
250
|
* @returns A legend element node.
|
|
260
251
|
*/
|
|
261
|
-
export declare const Legend: (props?: NodeProps<"legend">) => import("./node.type.js").BaseNodeInstance<"legend">;
|
|
252
|
+
export declare const Legend: (children: NodeElement, props?: Omit<NodeProps<"legend">, "children">) => import("./node.type.js").BaseNodeInstance<"legend">;
|
|
262
253
|
/**
|
|
263
254
|
* Represents an option group within a select element.
|
|
264
255
|
* @param props Optional properties for the optgroup element.
|
|
@@ -309,10 +300,11 @@ export declare const Th: (props?: NodeProps<"th">) => import("./node.type.js").B
|
|
|
309
300
|
export declare const Td: (props?: NodeProps<"td">) => import("./node.type.js").BaseNodeInstance<"td">;
|
|
310
301
|
/**
|
|
311
302
|
* Represents a table caption.
|
|
303
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the caption.
|
|
312
304
|
* @param props Optional properties for the caption element.
|
|
313
305
|
* @returns A caption element node.
|
|
314
306
|
*/
|
|
315
|
-
export declare const Caption: (props?: NodeProps<"caption">) => import("./node.type.js").BaseNodeInstance<"caption">;
|
|
307
|
+
export declare const Caption: (children: NodeElement, props?: Omit<NodeProps<"caption">, "children">) => import("./node.type.js").BaseNodeInstance<"caption">;
|
|
316
308
|
/**
|
|
317
309
|
* Represents a table column group.
|
|
318
310
|
* @param props Optional properties for the colgroup element.
|
|
@@ -324,19 +316,13 @@ export declare const Colgroup: (props?: NodeProps<"colgroup">) => import("./node
|
|
|
324
316
|
* @param props Optional properties for the col element.
|
|
325
317
|
* @returns A col element node.
|
|
326
318
|
*/
|
|
327
|
-
export declare const Col: (props?: NodeProps<"col">) => import("./node.type.js").BaseNodeInstance<"col">;
|
|
328
|
-
/**
|
|
329
|
-
* Represents an image element (alias for Img).
|
|
330
|
-
* @param props Optional properties for the img element.
|
|
331
|
-
* @returns An img element node.
|
|
332
|
-
*/
|
|
333
|
-
export declare const Image: (props?: NodeProps<"img">) => import("./node.type.js").BaseNodeInstance<"img">;
|
|
319
|
+
export declare const Col: (props?: Omit<NodeProps<"col">, "children">) => import("./node.type.js").BaseNodeInstance<"col">;
|
|
334
320
|
/**
|
|
335
321
|
* Represents an image element.
|
|
336
322
|
* @param props Optional properties for the img element.
|
|
337
323
|
* @returns An img element node.
|
|
338
324
|
*/
|
|
339
|
-
export declare const Img: (props?: NodeProps<"img">) => import("./node.type.js").BaseNodeInstance<"img">;
|
|
325
|
+
export declare const Img: (props?: Omit<NodeProps<"img">, "children">) => import("./node.type.js").BaseNodeInstance<"img">;
|
|
340
326
|
/**
|
|
341
327
|
* Represents a video element.
|
|
342
328
|
* @param props Optional properties for the video element.
|
|
@@ -360,13 +346,13 @@ export declare const Picture: (props?: NodeProps<"picture">) => import("./node.t
|
|
|
360
346
|
* @param props Optional properties for the source element.
|
|
361
347
|
* @returns A source element node.
|
|
362
348
|
*/
|
|
363
|
-
export declare const Source: (props?: NodeProps<"source">) => import("./node.type.js").BaseNodeInstance<"source">;
|
|
349
|
+
export declare const Source: (props?: Omit<NodeProps<"source">, "children">) => import("./node.type.js").BaseNodeInstance<"source">;
|
|
364
350
|
/**
|
|
365
351
|
* Represents a text track element.
|
|
366
352
|
* @param props Optional properties for the track element.
|
|
367
353
|
* @returns A track element node.
|
|
368
354
|
*/
|
|
369
|
-
export declare const Track: (props?: NodeProps<"track">) => import("./node.type.js").BaseNodeInstance<"track">;
|
|
355
|
+
export declare const Track: (props?: Omit<NodeProps<"track">, "children">) => import("./node.type.js").BaseNodeInstance<"track">;
|
|
370
356
|
/**
|
|
371
357
|
* Represents a canvas element.
|
|
372
358
|
* @param props Optional properties for the canvas element.
|
|
@@ -493,6 +479,18 @@ export declare const A: (props?: NodeProps<"a">) => import("./node.type.js").Bas
|
|
|
493
479
|
* @returns A nav element node.
|
|
494
480
|
*/
|
|
495
481
|
export declare const Nav: (props?: NodeProps<"nav">) => import("./node.type.js").BaseNodeInstance<"nav">;
|
|
482
|
+
/**
|
|
483
|
+
* Represents the body element of an HTML document.
|
|
484
|
+
* @param props Optional properties for the body element.
|
|
485
|
+
* @returns A body element node.
|
|
486
|
+
*/
|
|
487
|
+
export declare const Body: (props?: NodeProps<"body">) => import("./node.type.js").BaseNodeInstance<"body">;
|
|
488
|
+
/**
|
|
489
|
+
* Represents the main content of a document.
|
|
490
|
+
* @param props Optional properties for the main element.
|
|
491
|
+
* @returns A main element node.
|
|
492
|
+
*/
|
|
493
|
+
export declare const Main: (props?: NodeProps<"main">) => import("./node.type.js").BaseNodeInstance<"main">;
|
|
496
494
|
/**
|
|
497
495
|
* Represents a header element.
|
|
498
496
|
* @param props Optional properties for the header element.
|
|
@@ -531,10 +529,11 @@ export declare const Article: (props?: NodeProps<"article">) => import("./node.t
|
|
|
531
529
|
export declare const Figure: (props?: NodeProps<"figure">) => import("./node.type.js").BaseNodeInstance<"figure">;
|
|
532
530
|
/**
|
|
533
531
|
* Represents a figure caption element.
|
|
532
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the figcaption.
|
|
534
533
|
* @param props Optional properties for the figcaption element.
|
|
535
534
|
* @returns A figcaption element node.
|
|
536
535
|
*/
|
|
537
|
-
export declare const Figcaption: (props?: NodeProps<"figcaption">) => import("./node.type.js").BaseNodeInstance<"figcaption">;
|
|
536
|
+
export declare const Figcaption: (children: NodeElement, props?: Omit<NodeProps<"figcaption">, "children">) => import("./node.type.js").BaseNodeInstance<"figcaption">;
|
|
538
537
|
/**
|
|
539
538
|
* Represents a blockquote element.
|
|
540
539
|
* @param props Optional properties for the blockquote element.
|
|
@@ -560,51 +559,296 @@ export declare const Dialog: (props?: NodeProps<"dialog">) => import("./node.typ
|
|
|
560
559
|
*/
|
|
561
560
|
export declare const Details: (props?: NodeProps<"details">) => import("./node.type.js").BaseNodeInstance<"details">;
|
|
562
561
|
/**
|
|
563
|
-
* Represents a summary element.
|
|
562
|
+
* Represents a summary element for a details disclosure box.
|
|
563
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the summary.
|
|
564
564
|
* @param props Optional properties for the summary element.
|
|
565
565
|
* @returns A summary element node.
|
|
566
566
|
*/
|
|
567
|
-
export declare const Summary: (props?: NodeProps<"summary">) => import("./node.type.js").BaseNodeInstance<"summary">;
|
|
567
|
+
export declare const Summary: (children: NodeElement, props?: Omit<NodeProps<"summary">, "children">) => import("./node.type.js").BaseNodeInstance<"summary">;
|
|
568
568
|
/**
|
|
569
569
|
* Represents a head element.
|
|
570
570
|
* @param props Optional properties for the head element.
|
|
571
571
|
* @returns A head element node.
|
|
572
572
|
*/
|
|
573
573
|
export declare const Head: (props?: NodeProps<"head">) => import("./node.type.js").BaseNodeInstance<"head">;
|
|
574
|
+
/**
|
|
575
|
+
* Represents the root HTML element.
|
|
576
|
+
* @param props Optional properties for the HTML element.
|
|
577
|
+
* @returns An HTML element node.
|
|
578
|
+
*/
|
|
579
|
+
export declare const Html: (props?: NodeProps<"html">) => import("./node.type.js").BaseNodeInstance<"html">;
|
|
574
580
|
/**
|
|
575
581
|
* Represents a meta element.
|
|
576
582
|
* @param props Optional properties for the meta element.
|
|
577
583
|
* @returns A meta element node.
|
|
578
584
|
*/
|
|
579
|
-
export declare const Meta: (props?: NodeProps<"meta">) => import("./node.type.js").BaseNodeInstance<"meta">;
|
|
585
|
+
export declare const Meta: (props?: Omit<NodeProps<"meta">, "children">) => import("./node.type.js").BaseNodeInstance<"meta">;
|
|
580
586
|
/**
|
|
581
587
|
* Represents a link element.
|
|
582
588
|
* @param props Optional properties for the link element.
|
|
583
589
|
* @returns A link element node.
|
|
584
590
|
*/
|
|
585
|
-
export declare const Link: (props?: NodeProps<"link">) => import("./node.type.js").BaseNodeInstance<"link">;
|
|
591
|
+
export declare const Link: (props?: Omit<NodeProps<"link">, "children">) => import("./node.type.js").BaseNodeInstance<"link">;
|
|
586
592
|
/**
|
|
587
|
-
* Represents a style element.
|
|
593
|
+
* Represents a style element. Its content should be CSS text.
|
|
594
|
+
* @param cssText Optional CSS code as a string.
|
|
588
595
|
* @param props Optional properties for the style element.
|
|
589
596
|
* @returns A style element node.
|
|
590
597
|
*/
|
|
591
|
-
export declare const Style: (props?: NodeProps<"style">) => import("./node.type.js").BaseNodeInstance<"style">;
|
|
598
|
+
export declare const Style: (cssText?: string, props?: Omit<NodeProps<"style">, "children">) => import("./node.type.js").BaseNodeInstance<"style">;
|
|
592
599
|
/**
|
|
593
|
-
* Represents a script element.
|
|
594
|
-
* @param
|
|
600
|
+
* Represents a script element. For inline scripts, its content should be JavaScript text.
|
|
601
|
+
* @param scriptContent Optional JavaScript code as a string for inline scripts.
|
|
602
|
+
* @param props Optional properties for the script element (e.g., src, type, async, defer).
|
|
595
603
|
* @returns A script element node.
|
|
596
604
|
*/
|
|
597
|
-
export declare const Script: (props?: NodeProps<"script">) => import("./node.type.js").BaseNodeInstance<"script">;
|
|
605
|
+
export declare const Script: (scriptContent?: string, props?: Omit<NodeProps<"script">, "children">) => import("./node.type.js").BaseNodeInstance<"script">;
|
|
598
606
|
/**
|
|
599
|
-
*
|
|
607
|
+
* Creates a title element node for document head title.
|
|
608
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the title.
|
|
600
609
|
* @param props Optional properties for the title element.
|
|
601
610
|
* @returns A title element node.
|
|
602
611
|
*/
|
|
603
|
-
export declare const Title: (props?: NodeProps<"title">) => import("./node.type.js").BaseNodeInstance<"title">;
|
|
612
|
+
export declare const Title: (children: NodeElement, props?: Omit<NodeProps<"title">, "children">) => import("./node.type.js").BaseNodeInstance<"title">;
|
|
604
613
|
/**
|
|
605
614
|
* Represents a base element.
|
|
606
615
|
* @param props Optional properties for the base element.
|
|
607
616
|
* @returns A base element node.
|
|
608
617
|
*/
|
|
609
|
-
export declare const Base: (props?: NodeProps<"base">) => import("./node.type.js").BaseNodeInstance<"base">;
|
|
618
|
+
export declare const Base: (props?: Omit<NodeProps<"base">, "children">) => import("./node.type.js").BaseNodeInstance<"base">;
|
|
619
|
+
/**
|
|
620
|
+
* Represents an abbreviation or acronym.
|
|
621
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the abbreviation.
|
|
622
|
+
* @param props Optional properties for the abbr element.
|
|
623
|
+
* @returns An abbr element node.
|
|
624
|
+
*/
|
|
625
|
+
export declare const Abbr: (children: NodeElement, props?: Omit<NodeProps<"abbr">, "children">) => import("./node.type.js").BaseNodeInstance<"abbr">;
|
|
626
|
+
/**
|
|
627
|
+
* Represents text that should be stylistically offset from normal prose (traditionally bold).
|
|
628
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
629
|
+
* @param props Optional properties for the b element.
|
|
630
|
+
* @returns A b element node.
|
|
631
|
+
*/
|
|
632
|
+
export declare const B: (children: NodeElement, props?: Omit<NodeProps<"b">, "children">) => import("./node.type.js").BaseNodeInstance<"b">;
|
|
633
|
+
/**
|
|
634
|
+
* Represents text that is isolated from its surroundings for bidirectional text formatting.
|
|
635
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
636
|
+
* @param props Optional properties for the bdi element.
|
|
637
|
+
* @returns A bdi element node.
|
|
638
|
+
*/
|
|
639
|
+
export declare const Bdi: (children: NodeElement, props?: Omit<NodeProps<"bdi">, "children">) => import("./node.type.js").BaseNodeInstance<"bdi">;
|
|
640
|
+
/**
|
|
641
|
+
* Overrides the current text directionality.
|
|
642
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
643
|
+
* @param props Optional properties for the bdo element.
|
|
644
|
+
* @returns A bdo element node.
|
|
645
|
+
*/
|
|
646
|
+
export declare const Bdo: (children: NodeElement, props?: Omit<NodeProps<"bdo">, "children">) => import("./node.type.js").BaseNodeInstance<"bdo">;
|
|
647
|
+
/**
|
|
648
|
+
* Represents the title of a work (e.g., a book, a song, an essay).
|
|
649
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the citation.
|
|
650
|
+
* @param props Optional properties for the cite element.
|
|
651
|
+
* @returns A cite element node.
|
|
652
|
+
*/
|
|
653
|
+
export declare const Cite: (children: NodeElement, props?: Omit<NodeProps<"cite">, "children">) => import("./node.type.js").BaseNodeInstance<"cite">;
|
|
654
|
+
/**
|
|
655
|
+
* Links a piece of content with a machine-readable translation.
|
|
656
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
657
|
+
* @param props Optional properties for the data element.
|
|
658
|
+
* @returns A data element node.
|
|
659
|
+
*/
|
|
660
|
+
export declare const Data: (children: NodeElement, props?: Omit<NodeProps<"data">, "children">) => import("./node.type.js").BaseNodeInstance<"data">;
|
|
661
|
+
/**
|
|
662
|
+
* Represents a definition of a term.
|
|
663
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the definition.
|
|
664
|
+
* @param props Optional properties for the dfn element.
|
|
665
|
+
* @returns A dfn element node.
|
|
666
|
+
*/
|
|
667
|
+
export declare const Dfn: (children: NodeElement, props?: Omit<NodeProps<"dfn">, "children">) => import("./node.type.js").BaseNodeInstance<"dfn">;
|
|
668
|
+
/**
|
|
669
|
+
* Represents text in an alternate voice or mood (traditionally italic).
|
|
670
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
671
|
+
* @param props Optional properties for the i element.
|
|
672
|
+
* @returns An i element node.
|
|
673
|
+
*/
|
|
674
|
+
export declare const I: (children: NodeElement, props?: Omit<NodeProps<"i">, "children">) => import("./node.type.js").BaseNodeInstance<"i">;
|
|
675
|
+
/**
|
|
676
|
+
* Represents user input (typically keyboard input).
|
|
677
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) representing keyboard input.
|
|
678
|
+
* @param props Optional properties for the kbd element.
|
|
679
|
+
* @returns A kbd element node.
|
|
680
|
+
*/
|
|
681
|
+
export declare const Kbd: (children: NodeElement, props?: Omit<NodeProps<"kbd">, "children">) => import("./node.type.js").BaseNodeInstance<"kbd">;
|
|
682
|
+
/**
|
|
683
|
+
* Represents an inline quotation.
|
|
684
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the quotation.
|
|
685
|
+
* @param props Optional properties for the q element.
|
|
686
|
+
* @returns A q element node.
|
|
687
|
+
*/
|
|
688
|
+
export declare const Q: (children: NodeElement, props?: Omit<NodeProps<"q">, "children">) => import("./node.type.js").BaseNodeInstance<"q">;
|
|
689
|
+
/**
|
|
690
|
+
* Represents fallback parenthesis for ruby annotations.
|
|
691
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
692
|
+
* @param props Optional properties for the rp element.
|
|
693
|
+
* @returns An rp element node.
|
|
694
|
+
*/
|
|
695
|
+
export declare const Rp: (children: NodeElement, props?: Omit<NodeProps<"rp">, "children">) => import("./node.type.js").BaseNodeInstance<"rp">;
|
|
696
|
+
/**
|
|
697
|
+
* Represents the ruby text component of a ruby annotation.
|
|
698
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc).
|
|
699
|
+
* @param props Optional properties for the rt element.
|
|
700
|
+
* @returns An rt element node.
|
|
701
|
+
*/
|
|
702
|
+
export declare const Rt: (children: NodeElement, props?: Omit<NodeProps<"rt">, "children">) => import("./node.type.js").BaseNodeInstance<"rt">;
|
|
703
|
+
/**
|
|
704
|
+
* Represents a ruby annotation.
|
|
705
|
+
* @param props Optional properties for the ruby element.
|
|
706
|
+
* @returns A ruby element node.
|
|
707
|
+
*/
|
|
708
|
+
export declare const Ruby: (props?: NodeProps<"ruby">) => import("./node.type.js").BaseNodeInstance<"ruby">;
|
|
709
|
+
/**
|
|
710
|
+
* Represents text that is no longer accurate or relevant (strikethrough).
|
|
711
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) to be struck through.
|
|
712
|
+
* @param props Optional properties for the s element.
|
|
713
|
+
* @returns An s element node.
|
|
714
|
+
*/
|
|
715
|
+
export declare const S: (children: NodeElement, props?: Omit<NodeProps<"s">, "children">) => import("./node.type.js").BaseNodeInstance<"s">;
|
|
716
|
+
/**
|
|
717
|
+
* Represents sample output from a computer program.
|
|
718
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) representing sample output.
|
|
719
|
+
* @param props Optional properties for the samp element.
|
|
720
|
+
* @returns A samp element node.
|
|
721
|
+
*/
|
|
722
|
+
export declare const Samp: (children: NodeElement, props?: Omit<NodeProps<"samp">, "children">) => import("./node.type.js").BaseNodeInstance<"samp">;
|
|
723
|
+
/**
|
|
724
|
+
* Represents subscript text.
|
|
725
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the subscript.
|
|
726
|
+
* @param props Optional properties for the sub element.
|
|
727
|
+
* @returns A sub element node.
|
|
728
|
+
*/
|
|
729
|
+
export declare const Sub: (children: NodeElement, props?: Omit<NodeProps<"sub">, "children">) => import("./node.type.js").BaseNodeInstance<"sub">;
|
|
730
|
+
/**
|
|
731
|
+
* Represents superscript text.
|
|
732
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) for the superscript.
|
|
733
|
+
* @param props Optional properties for the sup element.
|
|
734
|
+
* @returns A sup element node.
|
|
735
|
+
*/
|
|
736
|
+
export declare const Sup: (children: NodeElement, props?: Omit<NodeProps<"sup">, "children">) => import("./node.type.js").BaseNodeInstance<"sup">;
|
|
737
|
+
/**
|
|
738
|
+
* Represents a specific period in time or a date.
|
|
739
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) representing the time/date.
|
|
740
|
+
* @param props Optional properties for the time element.
|
|
741
|
+
* @returns A time element node.
|
|
742
|
+
*/
|
|
743
|
+
export declare const Time: (children: NodeElement, props?: Omit<NodeProps<"time">, "children">) => import("./node.type.js").BaseNodeInstance<"time">;
|
|
744
|
+
/**
|
|
745
|
+
* Represents text that should be rendered with an unarticulated, non-textual annotation (traditionally underline).
|
|
746
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) to be underlined.
|
|
747
|
+
* @param props Optional properties for the u element.
|
|
748
|
+
* @returns A u element node.
|
|
749
|
+
*/
|
|
750
|
+
export declare const U: (children: NodeElement, props?: Omit<NodeProps<"u">, "children">) => import("./node.type.js").BaseNodeInstance<"u">;
|
|
751
|
+
/**
|
|
752
|
+
* Represents a variable in a mathematical expression or programming context.
|
|
753
|
+
* @param children The content to be rendered within the element (text, numbers, components, etc) representing a variable.
|
|
754
|
+
* @param props Optional properties for the var element.
|
|
755
|
+
* @returns A var element node.
|
|
756
|
+
*/
|
|
757
|
+
export declare const Var: (children: NodeElement, props?: Omit<NodeProps<"var">, "children">) => import("./node.type.js").BaseNodeInstance<"var">;
|
|
758
|
+
/**
|
|
759
|
+
* Represents a word break opportunity. This is a void element.
|
|
760
|
+
* @param props Optional properties for the wbr element.
|
|
761
|
+
* @returns A wbr element node.
|
|
762
|
+
*/
|
|
763
|
+
export declare const Wbr: (props?: Omit<NodeProps<"wbr">, "children">) => import("./node.type.js").BaseNodeInstance<"wbr">;
|
|
764
|
+
/**
|
|
765
|
+
* 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.
|
|
766
|
+
* @param props Optional properties for the hr element.
|
|
767
|
+
* @returns An hr element node.
|
|
768
|
+
*/
|
|
769
|
+
export declare const Hr: (props?: Omit<NodeProps<"hr">, "children">) => import("./node.type.js").BaseNodeInstance<"hr">;
|
|
770
|
+
/**
|
|
771
|
+
* Represents a group of commands that a user can perform or activate.
|
|
772
|
+
* @param props Optional properties for the menu element.
|
|
773
|
+
* @returns A menu element node.
|
|
774
|
+
*/
|
|
775
|
+
export declare const Menu: (props?: NodeProps<"menu">) => import("./node.type.js").BaseNodeInstance<"menu">;
|
|
776
|
+
/**
|
|
777
|
+
* Represents the parts of a document or application that contain search or filtering controls.
|
|
778
|
+
* @param props Optional properties for the search element.
|
|
779
|
+
* @returns A search element node.
|
|
780
|
+
*/
|
|
781
|
+
export declare const Search: (props?: NodeProps<"search">) => import("./node.type.js").BaseNodeInstance<"search">;
|
|
782
|
+
/**
|
|
783
|
+
* Represents an integration point for an external application or interactive content (a plug-in). This is a void element.
|
|
784
|
+
* @param props Optional properties for the embed element.
|
|
785
|
+
* @returns An embed element node.
|
|
786
|
+
*/
|
|
787
|
+
export declare const Embed: (props?: Omit<NodeProps<"embed">, "children">) => import("./node.type.js").BaseNodeInstance<"embed">;
|
|
788
|
+
/**
|
|
789
|
+
* Represents an external resource, which can be treated as an image, a nested browsing context, or content to be handled by a plugin.
|
|
790
|
+
* @param props Optional properties for the object element.
|
|
791
|
+
* @returns An object element node.
|
|
792
|
+
*/
|
|
793
|
+
export declare const ObjectElement: (props?: NodeProps<"object">) => import("./node.type.js").BaseNodeInstance<"object">;
|
|
794
|
+
/**
|
|
795
|
+
* Defines parameters for an <object> element. This is a void element.
|
|
796
|
+
* @param props Optional properties for the param element.
|
|
797
|
+
* @returns A param element node.
|
|
798
|
+
*/
|
|
799
|
+
export declare const Param: (props?: Omit<NodeProps<"param">, "children">) => import("./node.type.js").BaseNodeInstance<"param">;
|
|
800
|
+
/**
|
|
801
|
+
* Represents an image map, with clickable areas.
|
|
802
|
+
* @param props Optional properties for the map element.
|
|
803
|
+
* @returns A map element node.
|
|
804
|
+
*/
|
|
805
|
+
export declare const MapElement: (props?: NodeProps<"map">) => import("./node.type.js").BaseNodeInstance<"map">;
|
|
806
|
+
/**
|
|
807
|
+
* Defines a client-side image map area. This is a void element.
|
|
808
|
+
* @param props Optional properties for the area element.
|
|
809
|
+
* @returns An area element node.
|
|
810
|
+
*/
|
|
811
|
+
export declare const Area: (props?: Omit<NodeProps<"area">, "children">) => import("./node.type.js").BaseNodeInstance<"area">;
|
|
812
|
+
/**
|
|
813
|
+
* Contains a set of <option> elements that represent predefined options for other controls.
|
|
814
|
+
* @param props Optional properties for the datalist element.
|
|
815
|
+
* @returns A datalist element node.
|
|
816
|
+
*/
|
|
817
|
+
export declare const Datalist: (props?: NodeProps<"datalist">) => import("./node.type.js").BaseNodeInstance<"datalist">;
|
|
818
|
+
/**
|
|
819
|
+
* Represents the result of a calculation or user action.
|
|
820
|
+
* @param props Optional properties for the output element.
|
|
821
|
+
* @returns An output element node.
|
|
822
|
+
*/
|
|
823
|
+
export declare const Output: (props?: NodeProps<"output">) => import("./node.type.js").BaseNodeInstance<"output">;
|
|
824
|
+
/**
|
|
825
|
+
* Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
|
|
826
|
+
* @param props Optional properties for the progress element.
|
|
827
|
+
* @returns A progress element node.
|
|
828
|
+
*/
|
|
829
|
+
export declare const Progress: (props?: NodeProps<"progress">) => import("./node.type.js").BaseNodeInstance<"progress">;
|
|
830
|
+
/**
|
|
831
|
+
* Represents either a scalar value within a known range or a fractional value.
|
|
832
|
+
* @param props Optional properties for the meter element.
|
|
833
|
+
* @returns A meter element node.
|
|
834
|
+
*/
|
|
835
|
+
export declare const Meter: (props?: NodeProps<"meter">) => import("./node.type.js").BaseNodeInstance<"meter">;
|
|
836
|
+
/**
|
|
837
|
+
* 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.
|
|
838
|
+
* @param props Optional properties for the noscript element.
|
|
839
|
+
* @returns A noscript element node.
|
|
840
|
+
*/
|
|
841
|
+
export declare const Noscript: (props?: NodeProps<"noscript">) => import("./node.type.js").BaseNodeInstance<"noscript">;
|
|
842
|
+
/**
|
|
843
|
+
* 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.
|
|
844
|
+
* @param props Optional properties for the template element.
|
|
845
|
+
* @returns A template element node.
|
|
846
|
+
*/
|
|
847
|
+
export declare const Template: (props?: NodeProps<"template">) => import("./node.type.js").BaseNodeInstance<"template">;
|
|
848
|
+
/**
|
|
849
|
+
* Represents a heading group. It is used to group a set of <h1>–<h6> elements.
|
|
850
|
+
* @param props Optional properties for the hgroup element.
|
|
851
|
+
* @returns An hgroup element node.
|
|
852
|
+
*/
|
|
853
|
+
export declare const Hgroup: (props?: NodeProps<"hgroup">) => import("./node.type.js").BaseNodeInstance<"hgroup">;
|
|
610
854
|
//# sourceMappingURL=html.node.d.ts.map
|