@meonode/ui 0.2.14 → 0.2.16
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 +102 -25
- package/dist/components/html.node.d.ts +41 -41
- package/dist/components/styled-renderer.client.js +1 -1
- package/dist/core.node.d.ts +51 -19
- package/dist/core.node.d.ts.map +1 -1
- package/dist/core.node.js +54 -26
- package/dist/helper/node.helper.d.ts +8 -19
- package/dist/helper/node.helper.d.ts.map +1 -1
- package/dist/helper/node.helper.js +18 -18
- package/dist/helper/obj.helper.d.ts +11 -0
- package/dist/helper/obj.helper.d.ts.map +1 -1
- package/dist/helper/obj.helper.js +19 -1
- package/dist/hoc/component.hoc.d.ts +3 -3
- package/dist/hoc/component.hoc.d.ts.map +1 -1
- package/dist/hoc/component.hoc.js +2 -2
- package/dist/node.type.d.ts +22 -15
- package/dist/node.type.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -118,7 +118,7 @@ export declare const Static: (<AdditionalProps extends Record<string, any> = Rec
|
|
|
118
118
|
* @param props Optional properties for the h1 element.
|
|
119
119
|
* @returns An h1 element node.
|
|
120
120
|
*/
|
|
121
|
-
export declare const H1: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
121
|
+
export declare const H1: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h1", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h1">) & {
|
|
122
122
|
element: "h1";
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
@@ -127,7 +127,7 @@ export declare const H1: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
127
127
|
* @param props Optional properties for the h2 element.
|
|
128
128
|
* @returns An h2 element node.
|
|
129
129
|
*/
|
|
130
|
-
export declare const H2: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
130
|
+
export declare const H2: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h2", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h2">) & {
|
|
131
131
|
element: "h2";
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
@@ -136,7 +136,7 @@ export declare const H2: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
136
136
|
* @param props Optional properties for the h3 element.
|
|
137
137
|
* @returns An h3 element node.
|
|
138
138
|
*/
|
|
139
|
-
export declare const H3: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
139
|
+
export declare const H3: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h3", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h3">) & {
|
|
140
140
|
element: "h3";
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
@@ -145,7 +145,7 @@ export declare const H3: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
145
145
|
* @param props Optional properties for the h4 element.
|
|
146
146
|
* @returns An h4 element node.
|
|
147
147
|
*/
|
|
148
|
-
export declare const H4: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
148
|
+
export declare const H4: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h4", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h4">) & {
|
|
149
149
|
element: "h4";
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
@@ -154,7 +154,7 @@ export declare const H4: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
154
154
|
* @param props Optional properties for the h5 element.
|
|
155
155
|
* @returns An h5 element node.
|
|
156
156
|
*/
|
|
157
|
-
export declare const H5: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
157
|
+
export declare const H5: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h5", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h5">) & {
|
|
158
158
|
element: "h5";
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
@@ -163,7 +163,7 @@ export declare const H5: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
163
163
|
* @param props Optional properties for the h6 element.
|
|
164
164
|
* @returns An h6 element node.
|
|
165
165
|
*/
|
|
166
|
-
export declare const H6: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
166
|
+
export declare const H6: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"h6", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"h6">) & {
|
|
167
167
|
element: "h6";
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
@@ -172,7 +172,7 @@ export declare const H6: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
172
172
|
* @param props Optional properties for the strong element.
|
|
173
173
|
* @returns A strong element node.
|
|
174
174
|
*/
|
|
175
|
-
export declare const Strong: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
175
|
+
export declare const Strong: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"strong", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"strong">) & {
|
|
176
176
|
element: "strong";
|
|
177
177
|
};
|
|
178
178
|
/**
|
|
@@ -181,7 +181,7 @@ export declare const Strong: (<AdditionalProps extends Record<string, any> = Rec
|
|
|
181
181
|
* @param props Optional properties for the em element.
|
|
182
182
|
* @returns An em element node.
|
|
183
183
|
*/
|
|
184
|
-
export declare const Em: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
184
|
+
export declare const Em: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"em", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"em">) & {
|
|
185
185
|
element: "em";
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
@@ -190,7 +190,7 @@ export declare const Em: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
190
190
|
* @param props Optional properties for styling and configuring the small element.
|
|
191
191
|
* @returns A small element node that can be rendered in React.
|
|
192
192
|
*/
|
|
193
|
-
export declare const Small: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
193
|
+
export declare const Small: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"small", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"small">) & {
|
|
194
194
|
element: "small";
|
|
195
195
|
};
|
|
196
196
|
/**
|
|
@@ -199,7 +199,7 @@ export declare const Small: (<AdditionalProps extends Record<string, any> = Reco
|
|
|
199
199
|
* @param props Optional properties for the mark element.
|
|
200
200
|
* @returns A mark element node.
|
|
201
201
|
*/
|
|
202
|
-
export declare const Mark: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
202
|
+
export declare const Mark: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"mark", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"mark">) & {
|
|
203
203
|
element: "mark";
|
|
204
204
|
};
|
|
205
205
|
/**
|
|
@@ -208,7 +208,7 @@ export declare const Mark: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
208
208
|
* @param props Optional properties for the span element.
|
|
209
209
|
* @returns A span element node.
|
|
210
210
|
*/
|
|
211
|
-
export declare const Span: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
211
|
+
export declare const Span: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"span", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"span">) & {
|
|
212
212
|
element: "span";
|
|
213
213
|
};
|
|
214
214
|
/**
|
|
@@ -217,7 +217,7 @@ export declare const Span: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
217
217
|
* @param props Optional properties for the p element.
|
|
218
218
|
* @returns A paragraph element node.
|
|
219
219
|
*/
|
|
220
|
-
export declare const P: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
220
|
+
export declare const P: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"p", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"p">) & {
|
|
221
221
|
element: "p";
|
|
222
222
|
};
|
|
223
223
|
/**
|
|
@@ -228,7 +228,7 @@ export declare const P: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
228
228
|
* Text('This is a sample text paragraph.', { fontSize: 'theme.text.base', color: 'theme.text.primary' })
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
|
-
export declare const Text: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
231
|
+
export declare const Text: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"p", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"p">) & {
|
|
232
232
|
element: "p";
|
|
233
233
|
};
|
|
234
234
|
/**
|
|
@@ -237,7 +237,7 @@ export declare const Text: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
237
237
|
* @param props Optional properties for the pre element.
|
|
238
238
|
* @returns A pre element node.
|
|
239
239
|
*/
|
|
240
|
-
export declare const Pre: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
240
|
+
export declare const Pre: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"pre", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"pre">) & {
|
|
241
241
|
element: "pre";
|
|
242
242
|
};
|
|
243
243
|
/**
|
|
@@ -246,7 +246,7 @@ export declare const Pre: (<AdditionalProps extends Record<string, any> = Record
|
|
|
246
246
|
* @param props Optional properties for the code element.
|
|
247
247
|
* @returns A code element node.
|
|
248
248
|
*/
|
|
249
|
-
export declare const Code: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
249
|
+
export declare const Code: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"code", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"code">) & {
|
|
250
250
|
element: "code";
|
|
251
251
|
};
|
|
252
252
|
/**
|
|
@@ -337,7 +337,7 @@ export declare const Input: (<AdditionalProps extends Record<string, any> = Reco
|
|
|
337
337
|
* @param props Optional properties for the button element.
|
|
338
338
|
* @returns A button element node.
|
|
339
339
|
*/
|
|
340
|
-
export declare const Button: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
340
|
+
export declare const Button: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"button", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"button">) & {
|
|
341
341
|
element: "button";
|
|
342
342
|
};
|
|
343
343
|
/**
|
|
@@ -362,7 +362,7 @@ export declare const Select: (<AdditionalProps extends Record<string, any> = Rec
|
|
|
362
362
|
* @param props Optional properties for the option element.
|
|
363
363
|
* @returns An option element node.
|
|
364
364
|
*/
|
|
365
|
-
export declare const Option: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
365
|
+
export declare const Option: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"option", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"option">) & {
|
|
366
366
|
element: "option";
|
|
367
367
|
};
|
|
368
368
|
/**
|
|
@@ -379,7 +379,7 @@ export declare const Fieldset: (<AdditionalProps extends Record<string, any> = R
|
|
|
379
379
|
* @param props Optional properties for the legend element.
|
|
380
380
|
* @returns A legend element node.
|
|
381
381
|
*/
|
|
382
|
-
export declare const Legend: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
382
|
+
export declare const Legend: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"legend", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"legend">) & {
|
|
383
383
|
element: "legend";
|
|
384
384
|
};
|
|
385
385
|
/**
|
|
@@ -453,7 +453,7 @@ export declare const Td: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
453
453
|
* @param props Optional properties for the caption element.
|
|
454
454
|
* @returns A caption element node.
|
|
455
455
|
*/
|
|
456
|
-
export declare const Caption: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
456
|
+
export declare const Caption: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"caption", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"caption">) & {
|
|
457
457
|
element: "caption";
|
|
458
458
|
};
|
|
459
459
|
/**
|
|
@@ -762,7 +762,7 @@ export declare const Figure: (<AdditionalProps extends Record<string, any> = Rec
|
|
|
762
762
|
* @param props Optional properties for the figcaption element.
|
|
763
763
|
* @returns A figcaption element node.
|
|
764
764
|
*/
|
|
765
|
-
export declare const Figcaption: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
765
|
+
export declare const Figcaption: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"figcaption", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"figcaption">) & {
|
|
766
766
|
element: "figcaption";
|
|
767
767
|
};
|
|
768
768
|
/**
|
|
@@ -803,7 +803,7 @@ export declare const Details: (<AdditionalProps extends Record<string, any> = Re
|
|
|
803
803
|
* @param props Optional properties for the summary element.
|
|
804
804
|
* @returns A summary element node.
|
|
805
805
|
*/
|
|
806
|
-
export declare const Summary: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
806
|
+
export declare const Summary: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"summary", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"summary">) & {
|
|
807
807
|
element: "summary";
|
|
808
808
|
};
|
|
809
809
|
// Document head elements
|
|
@@ -861,7 +861,7 @@ export declare const Script: (<AdditionalProps extends Record<string, any> = Rec
|
|
|
861
861
|
* @param props Optional properties for the title element.
|
|
862
862
|
* @returns A title element node.
|
|
863
863
|
*/
|
|
864
|
-
export declare const Title: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
864
|
+
export declare const Title: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"title", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"title">) & {
|
|
865
865
|
element: "title";
|
|
866
866
|
};
|
|
867
867
|
/**
|
|
@@ -879,7 +879,7 @@ export declare const Base: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
879
879
|
* @param props Optional properties for the abbr element.
|
|
880
880
|
* @returns An abbr element node.
|
|
881
881
|
*/
|
|
882
|
-
export declare const Abbr: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
882
|
+
export declare const Abbr: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"abbr", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"abbr">) & {
|
|
883
883
|
element: "abbr";
|
|
884
884
|
};
|
|
885
885
|
/**
|
|
@@ -888,7 +888,7 @@ export declare const Abbr: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
888
888
|
* @param props Optional properties for the b element.
|
|
889
889
|
* @returns A b element node.
|
|
890
890
|
*/
|
|
891
|
-
export declare const B: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
891
|
+
export declare const B: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"b", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"b">) & {
|
|
892
892
|
element: "b";
|
|
893
893
|
};
|
|
894
894
|
/**
|
|
@@ -897,7 +897,7 @@ export declare const B: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
897
897
|
* @param props Optional properties for the bdi element.
|
|
898
898
|
* @returns A bdi element node.
|
|
899
899
|
*/
|
|
900
|
-
export declare const Bdi: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
900
|
+
export declare const Bdi: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"bdi", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"bdi">) & {
|
|
901
901
|
element: "bdi";
|
|
902
902
|
};
|
|
903
903
|
/**
|
|
@@ -906,7 +906,7 @@ export declare const Bdi: (<AdditionalProps extends Record<string, any> = Record
|
|
|
906
906
|
* @param props Optional properties for the bdo element.
|
|
907
907
|
* @returns A bdo element node.
|
|
908
908
|
*/
|
|
909
|
-
export declare const Bdo: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
909
|
+
export declare const Bdo: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"bdo", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"bdo">) & {
|
|
910
910
|
element: "bdo";
|
|
911
911
|
};
|
|
912
912
|
/**
|
|
@@ -915,7 +915,7 @@ export declare const Bdo: (<AdditionalProps extends Record<string, any> = Record
|
|
|
915
915
|
* @param props Optional properties for the cite element.
|
|
916
916
|
* @returns A cite element node.
|
|
917
917
|
*/
|
|
918
|
-
export declare const Cite: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
918
|
+
export declare const Cite: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"cite", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"cite">) & {
|
|
919
919
|
element: "cite";
|
|
920
920
|
};
|
|
921
921
|
/**
|
|
@@ -924,7 +924,7 @@ export declare const Cite: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
924
924
|
* @param props Optional properties for the data element.
|
|
925
925
|
* @returns A data element node.
|
|
926
926
|
*/
|
|
927
|
-
export declare const Data: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
927
|
+
export declare const Data: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"data", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"data">) & {
|
|
928
928
|
element: "data";
|
|
929
929
|
};
|
|
930
930
|
/**
|
|
@@ -933,7 +933,7 @@ export declare const Data: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
933
933
|
* @param props Optional properties for the dfn element.
|
|
934
934
|
* @returns A dfn element node.
|
|
935
935
|
*/
|
|
936
|
-
export declare const Dfn: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
936
|
+
export declare const Dfn: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"dfn", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"dfn">) & {
|
|
937
937
|
element: "dfn";
|
|
938
938
|
};
|
|
939
939
|
/**
|
|
@@ -942,7 +942,7 @@ export declare const Dfn: (<AdditionalProps extends Record<string, any> = Record
|
|
|
942
942
|
* @param props Optional properties for the i element.
|
|
943
943
|
* @returns An i element node.
|
|
944
944
|
*/
|
|
945
|
-
export declare const I: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
945
|
+
export declare const I: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"i", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"i">) & {
|
|
946
946
|
element: "i";
|
|
947
947
|
};
|
|
948
948
|
/**
|
|
@@ -951,7 +951,7 @@ export declare const I: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
951
951
|
* @param props Optional properties for the kbd element.
|
|
952
952
|
* @returns A kbd element node.
|
|
953
953
|
*/
|
|
954
|
-
export declare const Kbd: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
954
|
+
export declare const Kbd: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"kbd", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"kbd">) & {
|
|
955
955
|
element: "kbd";
|
|
956
956
|
};
|
|
957
957
|
/**
|
|
@@ -960,7 +960,7 @@ export declare const Kbd: (<AdditionalProps extends Record<string, any> = Record
|
|
|
960
960
|
* @param props Optional properties for the q element.
|
|
961
961
|
* @returns A q element node.
|
|
962
962
|
*/
|
|
963
|
-
export declare const Q: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
963
|
+
export declare const Q: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"q", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"q">) & {
|
|
964
964
|
element: "q";
|
|
965
965
|
};
|
|
966
966
|
/**
|
|
@@ -969,7 +969,7 @@ export declare const Q: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
969
969
|
* @param props Optional properties for the rp element.
|
|
970
970
|
* @returns An rp element node.
|
|
971
971
|
*/
|
|
972
|
-
export declare const Rp: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
972
|
+
export declare const Rp: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"rp", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"rp">) & {
|
|
973
973
|
element: "rp";
|
|
974
974
|
};
|
|
975
975
|
/**
|
|
@@ -978,7 +978,7 @@ export declare const Rp: (<AdditionalProps extends Record<string, any> = Record<
|
|
|
978
978
|
* @param props Optional properties for the rt element.
|
|
979
979
|
* @returns An rt element node.
|
|
980
980
|
*/
|
|
981
|
-
export declare const Rt: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
981
|
+
export declare const Rt: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"rt", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"rt">) & {
|
|
982
982
|
element: "rt";
|
|
983
983
|
};
|
|
984
984
|
/**
|
|
@@ -995,7 +995,7 @@ export declare const Ruby: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
995
995
|
* @param props Optional properties for the s element.
|
|
996
996
|
* @returns An s element node.
|
|
997
997
|
*/
|
|
998
|
-
export declare const S: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
998
|
+
export declare const S: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"s", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"s">) & {
|
|
999
999
|
element: "s";
|
|
1000
1000
|
};
|
|
1001
1001
|
/**
|
|
@@ -1004,7 +1004,7 @@ export declare const S: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
1004
1004
|
* @param props Optional properties for the samp element.
|
|
1005
1005
|
* @returns A samp element node.
|
|
1006
1006
|
*/
|
|
1007
|
-
export declare const Samp: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1007
|
+
export declare const Samp: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"samp", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"samp">) & {
|
|
1008
1008
|
element: "samp";
|
|
1009
1009
|
};
|
|
1010
1010
|
/**
|
|
@@ -1013,7 +1013,7 @@ export declare const Samp: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
1013
1013
|
* @param props Optional properties for the sub element.
|
|
1014
1014
|
* @returns A sub element node.
|
|
1015
1015
|
*/
|
|
1016
|
-
export declare const Sub: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1016
|
+
export declare const Sub: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"sub", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"sub">) & {
|
|
1017
1017
|
element: "sub";
|
|
1018
1018
|
};
|
|
1019
1019
|
/**
|
|
@@ -1022,7 +1022,7 @@ export declare const Sub: (<AdditionalProps extends Record<string, any> = Record
|
|
|
1022
1022
|
* @param props Optional properties for the sup element.
|
|
1023
1023
|
* @returns A sup element node.
|
|
1024
1024
|
*/
|
|
1025
|
-
export declare const Sup: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1025
|
+
export declare const Sup: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"sup", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"sup">) & {
|
|
1026
1026
|
element: "sup";
|
|
1027
1027
|
};
|
|
1028
1028
|
/**
|
|
@@ -1031,7 +1031,7 @@ export declare const Sup: (<AdditionalProps extends Record<string, any> = Record
|
|
|
1031
1031
|
* @param props Optional properties for the time element.
|
|
1032
1032
|
* @returns A time element node.
|
|
1033
1033
|
*/
|
|
1034
|
-
export declare const Time: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1034
|
+
export declare const Time: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"time", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"time">) & {
|
|
1035
1035
|
element: "time";
|
|
1036
1036
|
};
|
|
1037
1037
|
/**
|
|
@@ -1040,7 +1040,7 @@ export declare const Time: (<AdditionalProps extends Record<string, any> = Recor
|
|
|
1040
1040
|
* @param props Optional properties for the u element.
|
|
1041
1041
|
* @returns A u element node.
|
|
1042
1042
|
*/
|
|
1043
|
-
export declare const U: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1043
|
+
export declare const U: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"u", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"u">) & {
|
|
1044
1044
|
element: "u";
|
|
1045
1045
|
};
|
|
1046
1046
|
/**
|
|
@@ -1049,7 +1049,7 @@ export declare const U: (<AdditionalProps extends Record<string, any> = Record<s
|
|
|
1049
1049
|
* @param props Optional properties for the var element.
|
|
1050
1050
|
* @returns A var element node.
|
|
1051
1051
|
*/
|
|
1052
|
-
export declare const Var: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").
|
|
1052
|
+
export declare const Var: (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: import("../node.type").Children, props?: Omit<import("../node.type").MergedProps<"var", AdditionalProps>, "children"> | undefined) => import("../node.type").NodeInstance<"var">) & {
|
|
1053
1053
|
element: "var";
|
|
1054
1054
|
};
|
|
1055
1055
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";var _excluded=["element","css","children"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}import{jsx}from"@emotion/react";export default function StyledRenderer(a){var b=a.element,c=a.css,d=a.children,e=_objectWithoutProperties(a,_excluded);return jsx(b,_objectSpread(_objectSpread({},e),{},{css:c}),d)}
|
|
1
|
+
"use client";var _excluded=["element","css","children"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}import{jsx}from"@emotion/react";export default function StyledRenderer(a){var b=a.element,c=a.css,d=a.children,e=_objectWithoutProperties(a,_excluded);return jsx(b,_objectSpread(_objectSpread({},e),{},{css:c}),d)}StyledRenderer.displayName="Styled";
|
package/dist/core.node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ElementType, type
|
|
2
|
-
import type {
|
|
1
|
+
import React, { type ElementType, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import type { Children, FinalNodeProps, HasRequiredProps, MergedProps, NodeElement, NodeInstance, NodeProps, PropsOf, RawNodeProps, Theme } from './node.type.js';
|
|
3
3
|
import { type Root as ReactDOMRoot } from 'react-dom/client';
|
|
4
4
|
/**
|
|
5
5
|
* Represents a node in a React component tree with theme and styling capabilities.
|
|
@@ -27,8 +27,20 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
27
27
|
private _childrenHash?;
|
|
28
28
|
/** Cache for normalized children */
|
|
29
29
|
private _normalizedChildren?;
|
|
30
|
-
/**
|
|
31
|
-
private static
|
|
30
|
+
/** Indicates whether the code is running on the server (true) or client (false) */
|
|
31
|
+
private static _isServer;
|
|
32
|
+
/**
|
|
33
|
+
* WeakMap cache for processed children, keyed by object/array identity for GC friendliness.
|
|
34
|
+
* Each entry stores the hash, processed children, and a server-side flag.
|
|
35
|
+
*/
|
|
36
|
+
private static _processedChildrenWeakCache;
|
|
37
|
+
/**
|
|
38
|
+
* Map cache for processed children, keyed by a stable string signature.
|
|
39
|
+
* Used for non-object cases or as a fallback. Each entry stores the processed children and a server-side flag.
|
|
40
|
+
*/
|
|
41
|
+
private static _processedChildrenMapCache;
|
|
42
|
+
/** Maximum number of entries in the Map cache to prevent unbounded growth */
|
|
43
|
+
private static readonly _MAX_PROCESSED_CHILDREN_CACHE = 1000;
|
|
32
44
|
/**
|
|
33
45
|
* Constructs a new BaseNode instance.
|
|
34
46
|
*
|
|
@@ -62,21 +74,42 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
62
74
|
*/
|
|
63
75
|
private _processProps;
|
|
64
76
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
77
|
+
* Deeply clones processed children before returning them from cache so that each parent receives
|
|
78
|
+
* independent `BaseNode` instances (prevents sharing cycles and mutation bugs).
|
|
79
|
+
*
|
|
80
|
+
* - If the input is an array, each child is cloned recursively.
|
|
81
|
+
* - If the input is a `BaseNode`, a new instance is created with the same element and copied rawProps.
|
|
82
|
+
* - For other objects/primitives, the value is returned as-is (they are immutable or safe to reuse).
|
|
83
|
+
*
|
|
84
|
+
* This ensures that cached children are never shared between different parents in the React tree.
|
|
85
|
+
* @param processed The processed child or array of children to clone.
|
|
86
|
+
* @returns A deep clone of the processed children, safe for use in multiple parents.
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
89
|
+
private static _cloneProcessedChildren;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves cached processed children for a given set of `children` and an optional `theme`.
|
|
92
|
+
*
|
|
93
|
+
* - Skips caching entirely when executed on the server (returns `null`).
|
|
94
|
+
* - Uses a **WeakMap** for identity-based caching when `children` is an object or array,
|
|
95
|
+
* ensuring garbage collection safety.
|
|
96
|
+
* - Falls back to a **Map** keyed by a stable hash of `children` and `theme`
|
|
97
|
+
* for value-based caching.
|
|
98
|
+
* - Only returns cached entries that are **not server-side**.
|
|
99
|
+
* @param children The child node(s) to resolve cached results for.
|
|
100
|
+
* @param theme The theme context that may influence child processing.
|
|
101
|
+
* @returns A cloned version of the cached processed children if available, otherwise `null`.
|
|
69
102
|
* @private
|
|
70
103
|
*/
|
|
71
104
|
private _getCachedChildren;
|
|
72
105
|
/**
|
|
73
106
|
* Caches processed children for a given set of children and theme.
|
|
74
|
-
* This method stores the processed
|
|
75
|
-
*
|
|
76
|
-
* No caching is performed on the server to avoid
|
|
107
|
+
* This method stores the processed NodeElement(s) in a Map keyed by a stable hash.
|
|
108
|
+
* The cache is bounded to avoid unbounded memory growth.
|
|
109
|
+
* No caching is performed on the server to avoid RSC issues.
|
|
77
110
|
* @param children The original children to cache.
|
|
78
111
|
* @param theme The theme associated with the children.
|
|
79
|
-
* @param processed The processed
|
|
112
|
+
* @param processed The processed NodeElement(s) to cache.
|
|
80
113
|
* @private
|
|
81
114
|
*/
|
|
82
115
|
private _setCachedChildren;
|
|
@@ -85,7 +118,7 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
85
118
|
* and propagating the provided theme.
|
|
86
119
|
*
|
|
87
120
|
* This method ensures consistent theme handling for all children and optimizes performance
|
|
88
|
-
* using caching strategies: a
|
|
121
|
+
* using caching strategies: a Map for client-side and no caching for server-side.
|
|
89
122
|
*
|
|
90
123
|
* - If `children` is an array, each child is processed individually.
|
|
91
124
|
* - If `children` is a single node, it is processed directly.
|
|
@@ -114,7 +147,7 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
114
147
|
* @private
|
|
115
148
|
* @static
|
|
116
149
|
*/
|
|
117
|
-
static _renderProcessedNode(processedElement: NodeElement, passedTheme: Theme | undefined, passedKey: string | undefined
|
|
150
|
+
static _renderProcessedNode(processedElement: NodeElement, passedTheme: Theme | undefined, passedKey?: string): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
|
|
118
151
|
/**
|
|
119
152
|
* Renders the output of a function-as-a-child, ensuring theme propagation.
|
|
120
153
|
*
|
|
@@ -124,7 +157,6 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
124
157
|
* @param props The properties for the function renderer.
|
|
125
158
|
* @param props.render The function to execute to get the child content.
|
|
126
159
|
* @param props.passedTheme The theme to propagate to the rendered child.
|
|
127
|
-
* @param props.passedKey The React key to assign to the rendered node.
|
|
128
160
|
* @param props.processRawNode A reference to the `_processRawNode` method for recursive processing.
|
|
129
161
|
* @returns The rendered `ReactNode`.
|
|
130
162
|
* @private
|
|
@@ -194,7 +226,7 @@ export declare class BaseNode<E extends NodeElement> implements NodeInstance<E>
|
|
|
194
226
|
* @returns The rendered `ReactElement`.
|
|
195
227
|
* @throws {Error} If the node's `element` is not a valid React element type.
|
|
196
228
|
*/
|
|
197
|
-
render(): ReactElement
|
|
229
|
+
render(): ReactElement<FinalNodeProps>;
|
|
198
230
|
/**
|
|
199
231
|
* Ensures the necessary DOM elements for portal rendering are created and attached.
|
|
200
232
|
*
|
|
@@ -233,7 +265,7 @@ export declare function Node<AdditionalProps extends Record<string, any>, E exte
|
|
|
233
265
|
/**
|
|
234
266
|
* Creates a curried node factory for a given React element or component type.
|
|
235
267
|
*
|
|
236
|
-
* Returns a function that, when called with props, produces a `
|
|
268
|
+
* Returns a function that, when called with props, produces a `NodeInstance<E>`.
|
|
237
269
|
* Useful for creating reusable node factories for specific components or element types.
|
|
238
270
|
* @template AdditionalInitialProps Additional initial props to merge with node props.
|
|
239
271
|
* @template E The React element or component type.
|
|
@@ -268,9 +300,9 @@ export declare function createNode<AdditionalInitialProps extends Record<string,
|
|
|
268
300
|
* const Text = createChildrenFirstNode('p');
|
|
269
301
|
* const myDiv = Text('Hello', { className: 'text-lg' });
|
|
270
302
|
*/
|
|
271
|
-
export declare function createChildrenFirstNode<AdditionalInitialProps extends Record<string, any>, E extends ElementType>(element: E, initialProps?: Omit<NodeProps<E>, keyof AdditionalInitialProps | 'children'> & AdditionalInitialProps): HasRequiredProps<PropsOf<E>> extends true ? (<AdditionalProps extends Record<string, any> = Record<string, any>>(children:
|
|
303
|
+
export declare function createChildrenFirstNode<AdditionalInitialProps extends Record<string, any>, E extends ElementType>(element: E, initialProps?: Omit<NodeProps<E>, keyof AdditionalInitialProps | 'children'> & AdditionalInitialProps): HasRequiredProps<PropsOf<E>> extends true ? (<AdditionalProps extends Record<string, any> = Record<string, any>>(children: Children, props: Omit<MergedProps<E, AdditionalProps>, 'children'>) => NodeInstance<E>) & {
|
|
272
304
|
element: E;
|
|
273
|
-
} : (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?:
|
|
305
|
+
} : (<AdditionalProps extends Record<string, any> = Record<string, any>>(children?: Children, props?: Omit<MergedProps<E, AdditionalProps>, 'children'>) => NodeInstance<E>) & {
|
|
274
306
|
element: E;
|
|
275
307
|
};
|
|
276
308
|
//# sourceMappingURL=core.node.d.ts.map
|
package/dist/core.node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAsC,KAAK,WAAW,EAA4B,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChJ,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EAEd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,OAAO,EACP,YAAY,EACZ,KAAK,EACN,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAc,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAKxE;;;;;;;;GAQG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IACrE,+EAA+E;IACxE,OAAO,EAAE,CAAC,CAAA;IACjB,kFAAkF;IAC3E,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAK;IACrC,0CAA0C;IAC1C,SAAgB,UAAU,UAAO;IAEjC,wFAAwF;IACxF,OAAO,CAAC,MAAM,CAAC,CAAgB;IAC/B,4CAA4C;IAC5C,OAAO,CAAC,iBAAiB,CAA8B;IACvD,+CAA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