@vanijs/vani 0.1.0 → 0.2.0
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/DOCS.md +596 -7
- package/dist/lib/index.d.mts +691 -84
- package/dist/lib/index.mjs +1 -1
- package/llms.txt +1 -6
- package/package.json +3 -2
package/dist/lib/index.d.mts
CHANGED
|
@@ -81,18 +81,24 @@ type ComponentMetaProps = {
|
|
|
81
81
|
};
|
|
82
82
|
type VChild = VNode | ComponentInstance<any> | string | number | null | undefined | false;
|
|
83
83
|
type DataAttribute = `data-${string}`;
|
|
84
|
-
type
|
|
84
|
+
type ElementTagName = keyof HTMLElementTagNameMap | keyof SVGElementTagNameMap;
|
|
85
|
+
type ElementByTag<T extends ElementTagName> = T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T extends keyof SVGElementTagNameMap ? SVGElementTagNameMap[T] : Element;
|
|
86
|
+
type SvgProps = {
|
|
87
|
+
[key: string]: string | number | boolean | undefined | null | ((...args: any[]) => any);
|
|
88
|
+
};
|
|
89
|
+
type BaseProps<T extends ElementTagName> = {
|
|
85
90
|
className?: ClassName;
|
|
86
91
|
style?: string;
|
|
87
|
-
ref?: DomRef<
|
|
92
|
+
ref?: DomRef<ElementByTag<T>>;
|
|
88
93
|
} & { [key in DataAttribute]?: string | number | boolean | undefined | null };
|
|
94
|
+
type HtmlProps<T extends ElementTagName> = T extends keyof SVGElementTagNameMap ? BaseProps<T> & SvgProps : BaseProps<T> & Partial<Omit<ElementByTag<T>, 'children' | 'className' | 'style'>>;
|
|
89
95
|
type ClassName = string | undefined | null | {
|
|
90
96
|
[key: string]: boolean | undefined | null;
|
|
91
97
|
} | ClassName[];
|
|
92
98
|
type ComponentRef = {
|
|
93
99
|
current: Handle | null;
|
|
94
100
|
};
|
|
95
|
-
type DomRef<T extends
|
|
101
|
+
type DomRef<T extends Element = Element> = {
|
|
96
102
|
current: T | null;
|
|
97
103
|
};
|
|
98
104
|
type RenderMode = 'dom' | 'ssr';
|
|
@@ -103,7 +109,7 @@ declare function getRenderMode(): RenderMode;
|
|
|
103
109
|
declare function renderToDOM(components: Array<Component<any> | ComponentInstance<any>>, root: HTMLElement): Handle[];
|
|
104
110
|
declare function isComponentInstance(child: VChild): child is ComponentInstance<any>;
|
|
105
111
|
declare function classNames(...classes: ClassName[]): string;
|
|
106
|
-
declare function el<E extends keyof HTMLElementTagNameMap>(tag: E, props?: HtmlProps<E> | VChild | null, ...children: VChild[]): VNode;
|
|
112
|
+
declare function el<E extends keyof HTMLElementTagNameMap | keyof SVGElementTagNameMap>(tag: E, props?: HtmlProps<E> | VChild | null, ...children: VChild[]): VNode;
|
|
107
113
|
declare const fragment: (...children: VChild[]) => {
|
|
108
114
|
type: "fragment";
|
|
109
115
|
children: SSRNode[];
|
|
@@ -153,88 +159,689 @@ declare function hydrateToDOM(components: Array<Component<any> | ComponentInstan
|
|
|
153
159
|
declare function isDevMode(): boolean;
|
|
154
160
|
//#endregion
|
|
155
161
|
//#region src/vani/html.d.ts
|
|
156
|
-
declare const div: (propsOrChild?: VChild |
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
declare const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
declare const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
declare const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
declare const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
declare const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
declare const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
declare const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
declare const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
declare const
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
declare const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
declare const
|
|
234
|
-
|
|
162
|
+
declare const div: (propsOrChild?: VChild | ({
|
|
163
|
+
className?: ClassName;
|
|
164
|
+
style?: string;
|
|
165
|
+
ref?: DomRef<HTMLDivElement> | undefined;
|
|
166
|
+
} & {
|
|
167
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
168
|
+
} & Partial<Omit<HTMLDivElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
169
|
+
declare const span: (propsOrChild?: VChild | ({
|
|
170
|
+
className?: ClassName;
|
|
171
|
+
style?: string;
|
|
172
|
+
ref?: DomRef<HTMLSpanElement> | undefined;
|
|
173
|
+
} & {
|
|
174
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
175
|
+
} & Partial<Omit<HTMLSpanElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
176
|
+
declare const ul: (propsOrChild?: VChild | ({
|
|
177
|
+
className?: ClassName;
|
|
178
|
+
style?: string;
|
|
179
|
+
ref?: DomRef<HTMLUListElement> | undefined;
|
|
180
|
+
} & {
|
|
181
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
182
|
+
} & Partial<Omit<HTMLUListElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
183
|
+
declare const li: (propsOrChild?: VChild | ({
|
|
184
|
+
className?: ClassName;
|
|
185
|
+
style?: string;
|
|
186
|
+
ref?: DomRef<HTMLLIElement> | undefined;
|
|
187
|
+
} & {
|
|
188
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
189
|
+
} & Partial<Omit<HTMLLIElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
190
|
+
declare const ol: (propsOrChild?: VChild | ({
|
|
191
|
+
className?: ClassName;
|
|
192
|
+
style?: string;
|
|
193
|
+
ref?: DomRef<HTMLOListElement> | undefined;
|
|
194
|
+
} & {
|
|
195
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
196
|
+
} & Partial<Omit<HTMLOListElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
197
|
+
declare const dl: (propsOrChild?: VChild | ({
|
|
198
|
+
className?: ClassName;
|
|
199
|
+
style?: string;
|
|
200
|
+
ref?: DomRef<HTMLDListElement> | undefined;
|
|
201
|
+
} & {
|
|
202
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
203
|
+
} & Partial<Omit<HTMLDListElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
204
|
+
declare const dt: (propsOrChild?: VChild | ({
|
|
205
|
+
className?: ClassName;
|
|
206
|
+
style?: string;
|
|
207
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
208
|
+
} & {
|
|
209
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
210
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
211
|
+
declare const dd: (propsOrChild?: VChild | ({
|
|
212
|
+
className?: ClassName;
|
|
213
|
+
style?: string;
|
|
214
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
215
|
+
} & {
|
|
216
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
217
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
218
|
+
declare const main: (propsOrChild?: VChild | ({
|
|
219
|
+
className?: ClassName;
|
|
220
|
+
style?: string;
|
|
221
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
222
|
+
} & {
|
|
223
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
224
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
225
|
+
declare const header: (propsOrChild?: VChild | ({
|
|
226
|
+
className?: ClassName;
|
|
227
|
+
style?: string;
|
|
228
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
229
|
+
} & {
|
|
230
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
231
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
232
|
+
declare const footer: (propsOrChild?: VChild | ({
|
|
233
|
+
className?: ClassName;
|
|
234
|
+
style?: string;
|
|
235
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
238
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
239
|
+
declare const section: (propsOrChild?: VChild | ({
|
|
240
|
+
className?: ClassName;
|
|
241
|
+
style?: string;
|
|
242
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
243
|
+
} & {
|
|
244
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
245
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
246
|
+
declare const article: (propsOrChild?: VChild | ({
|
|
247
|
+
className?: ClassName;
|
|
248
|
+
style?: string;
|
|
249
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
250
|
+
} & {
|
|
251
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
252
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
253
|
+
declare const aside: (propsOrChild?: VChild | ({
|
|
254
|
+
className?: ClassName;
|
|
255
|
+
style?: string;
|
|
256
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
257
|
+
} & {
|
|
258
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
259
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
260
|
+
declare const nav: (propsOrChild?: VChild | ({
|
|
261
|
+
className?: ClassName;
|
|
262
|
+
style?: string;
|
|
263
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
264
|
+
} & {
|
|
265
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
266
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
267
|
+
declare const details: (propsOrChild?: VChild | ({
|
|
268
|
+
className?: ClassName;
|
|
269
|
+
style?: string;
|
|
270
|
+
ref?: DomRef<HTMLDetailsElement> | undefined;
|
|
271
|
+
} & {
|
|
272
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
273
|
+
} & Partial<Omit<HTMLDetailsElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
274
|
+
declare const summary: (propsOrChild?: VChild | ({
|
|
275
|
+
className?: ClassName;
|
|
276
|
+
style?: string;
|
|
277
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
278
|
+
} & {
|
|
279
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
280
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
281
|
+
declare const a: (propsOrChild?: VChild | ({
|
|
282
|
+
className?: ClassName;
|
|
283
|
+
style?: string;
|
|
284
|
+
ref?: DomRef<HTMLAnchorElement> | undefined;
|
|
285
|
+
} & {
|
|
286
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
287
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
288
|
+
declare const button: (propsOrChild?: VChild | ({
|
|
289
|
+
className?: ClassName;
|
|
290
|
+
style?: string;
|
|
291
|
+
ref?: DomRef<HTMLButtonElement> | undefined;
|
|
292
|
+
} & {
|
|
293
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
294
|
+
} & Partial<Omit<HTMLButtonElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
295
|
+
declare const input: (propsOrChild?: VChild | ({
|
|
296
|
+
className?: ClassName;
|
|
297
|
+
style?: string;
|
|
298
|
+
ref?: DomRef<HTMLInputElement> | undefined;
|
|
299
|
+
} & {
|
|
300
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
301
|
+
} & Partial<Omit<HTMLInputElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
302
|
+
declare const output: (propsOrChild?: VChild | ({
|
|
303
|
+
className?: ClassName;
|
|
304
|
+
style?: string;
|
|
305
|
+
ref?: DomRef<HTMLOutputElement> | undefined;
|
|
306
|
+
} & {
|
|
307
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
308
|
+
} & Partial<Omit<HTMLOutputElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
309
|
+
declare const textarea: (propsOrChild?: VChild | ({
|
|
310
|
+
className?: ClassName;
|
|
311
|
+
style?: string;
|
|
312
|
+
ref?: DomRef<HTMLTextAreaElement> | undefined;
|
|
313
|
+
} & {
|
|
314
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
315
|
+
} & Partial<Omit<HTMLTextAreaElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
316
|
+
declare const select: (propsOrChild?: VChild | ({
|
|
317
|
+
className?: ClassName;
|
|
318
|
+
style?: string;
|
|
319
|
+
ref?: DomRef<HTMLSelectElement> | undefined;
|
|
320
|
+
} & {
|
|
321
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
322
|
+
} & Partial<Omit<HTMLSelectElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
323
|
+
declare const option: (propsOrChild?: VChild | ({
|
|
324
|
+
className?: ClassName;
|
|
325
|
+
style?: string;
|
|
326
|
+
ref?: DomRef<HTMLOptionElement> | undefined;
|
|
327
|
+
} & {
|
|
328
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
329
|
+
} & Partial<Omit<HTMLOptionElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
330
|
+
declare const optgroup: (propsOrChild?: VChild | ({
|
|
331
|
+
className?: ClassName;
|
|
332
|
+
style?: string;
|
|
333
|
+
ref?: DomRef<HTMLOptGroupElement> | undefined;
|
|
334
|
+
} & {
|
|
335
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
336
|
+
} & Partial<Omit<HTMLOptGroupElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
337
|
+
declare const label: (propsOrChild?: VChild | ({
|
|
338
|
+
className?: ClassName;
|
|
339
|
+
style?: string;
|
|
340
|
+
ref?: DomRef<HTMLLabelElement> | undefined;
|
|
341
|
+
} & {
|
|
342
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
343
|
+
} & Partial<Omit<HTMLLabelElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
344
|
+
declare const form: (propsOrChild?: VChild | ({
|
|
345
|
+
className?: ClassName;
|
|
346
|
+
style?: string;
|
|
347
|
+
ref?: DomRef<HTMLFormElement> | undefined;
|
|
348
|
+
} & {
|
|
349
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
350
|
+
} & Partial<Omit<HTMLFormElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
351
|
+
declare const progress: (propsOrChild?: VChild | ({
|
|
352
|
+
className?: ClassName;
|
|
353
|
+
style?: string;
|
|
354
|
+
ref?: DomRef<HTMLProgressElement> | undefined;
|
|
355
|
+
} & {
|
|
356
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
357
|
+
} & Partial<Omit<HTMLProgressElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
358
|
+
declare const meter: (propsOrChild?: VChild | ({
|
|
359
|
+
className?: ClassName;
|
|
360
|
+
style?: string;
|
|
361
|
+
ref?: DomRef<HTMLMeterElement> | undefined;
|
|
362
|
+
} & {
|
|
363
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
364
|
+
} & Partial<Omit<HTMLMeterElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
365
|
+
declare const fieldset: (propsOrChild?: VChild | ({
|
|
366
|
+
className?: ClassName;
|
|
367
|
+
style?: string;
|
|
368
|
+
ref?: DomRef<HTMLFieldSetElement> | undefined;
|
|
369
|
+
} & {
|
|
370
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
371
|
+
} & Partial<Omit<HTMLFieldSetElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
372
|
+
declare const legend: (propsOrChild?: VChild | ({
|
|
373
|
+
className?: ClassName;
|
|
374
|
+
style?: string;
|
|
375
|
+
ref?: DomRef<HTMLLegendElement> | undefined;
|
|
376
|
+
} & {
|
|
377
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
378
|
+
} & Partial<Omit<HTMLLegendElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
379
|
+
declare const datalist: (propsOrChild?: VChild | ({
|
|
380
|
+
className?: ClassName;
|
|
381
|
+
style?: string;
|
|
382
|
+
ref?: DomRef<HTMLDataListElement> | undefined;
|
|
383
|
+
} & {
|
|
384
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
385
|
+
} & Partial<Omit<HTMLDataListElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
386
|
+
declare const figure: (propsOrChild?: VChild | ({
|
|
387
|
+
className?: ClassName;
|
|
388
|
+
style?: string;
|
|
389
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
390
|
+
} & {
|
|
391
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
392
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
393
|
+
declare const figcaption: (propsOrChild?: VChild | ({
|
|
394
|
+
className?: ClassName;
|
|
395
|
+
style?: string;
|
|
396
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
397
|
+
} & {
|
|
398
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
399
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
400
|
+
declare const img: (propsOrChild?: VChild | ({
|
|
401
|
+
className?: ClassName;
|
|
402
|
+
style?: string;
|
|
403
|
+
ref?: DomRef<HTMLImageElement> | undefined;
|
|
404
|
+
} & {
|
|
405
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
406
|
+
} & Partial<Omit<HTMLImageElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
407
|
+
declare const picture: (propsOrChild?: VChild | ({
|
|
408
|
+
className?: ClassName;
|
|
409
|
+
style?: string;
|
|
410
|
+
ref?: DomRef<HTMLPictureElement> | undefined;
|
|
411
|
+
} & {
|
|
412
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
413
|
+
} & Partial<Omit<HTMLPictureElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
414
|
+
declare const source: (propsOrChild?: VChild | ({
|
|
415
|
+
className?: ClassName;
|
|
416
|
+
style?: string;
|
|
417
|
+
ref?: DomRef<HTMLSourceElement> | undefined;
|
|
418
|
+
} & {
|
|
419
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
420
|
+
} & Partial<Omit<HTMLSourceElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
421
|
+
declare const video: (propsOrChild?: VChild | ({
|
|
422
|
+
className?: ClassName;
|
|
423
|
+
style?: string;
|
|
424
|
+
ref?: DomRef<HTMLVideoElement> | undefined;
|
|
425
|
+
} & {
|
|
426
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
427
|
+
} & Partial<Omit<HTMLVideoElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
428
|
+
declare const audio: (propsOrChild?: VChild | ({
|
|
429
|
+
className?: ClassName;
|
|
430
|
+
style?: string;
|
|
431
|
+
ref?: DomRef<HTMLAudioElement> | undefined;
|
|
432
|
+
} & {
|
|
433
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
434
|
+
} & Partial<Omit<HTMLAudioElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
435
|
+
declare const iframe: (propsOrChild?: VChild | ({
|
|
436
|
+
className?: ClassName;
|
|
437
|
+
style?: string;
|
|
438
|
+
ref?: DomRef<HTMLIFrameElement> | undefined;
|
|
439
|
+
} & {
|
|
440
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
441
|
+
} & Partial<Omit<HTMLIFrameElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
442
|
+
declare const embed: (propsOrChild?: VChild | ({
|
|
443
|
+
className?: ClassName;
|
|
444
|
+
style?: string;
|
|
445
|
+
ref?: DomRef<HTMLEmbedElement> | undefined;
|
|
446
|
+
} & {
|
|
447
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
448
|
+
} & Partial<Omit<HTMLEmbedElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
449
|
+
declare const time: (propsOrChild?: VChild | ({
|
|
450
|
+
className?: ClassName;
|
|
451
|
+
style?: string;
|
|
452
|
+
ref?: DomRef<HTMLTimeElement> | undefined;
|
|
453
|
+
} & {
|
|
454
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
455
|
+
} & Partial<Omit<HTMLTimeElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
456
|
+
declare const mark: (propsOrChild?: VChild | ({
|
|
457
|
+
className?: ClassName;
|
|
458
|
+
style?: string;
|
|
459
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
460
|
+
} & {
|
|
461
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
462
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
463
|
+
declare const p: (propsOrChild?: VChild | ({
|
|
464
|
+
className?: ClassName;
|
|
465
|
+
style?: string;
|
|
466
|
+
ref?: DomRef<HTMLParagraphElement> | undefined;
|
|
467
|
+
} & {
|
|
468
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
469
|
+
} & Partial<Omit<HTMLParagraphElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
470
|
+
declare const h1: (propsOrChild?: VChild | ({
|
|
471
|
+
className?: ClassName;
|
|
472
|
+
style?: string;
|
|
473
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
474
|
+
} & {
|
|
475
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
476
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
477
|
+
declare const h2: (propsOrChild?: VChild | ({
|
|
478
|
+
className?: ClassName;
|
|
479
|
+
style?: string;
|
|
480
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
481
|
+
} & {
|
|
482
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
483
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
484
|
+
declare const h3: (propsOrChild?: VChild | ({
|
|
485
|
+
className?: ClassName;
|
|
486
|
+
style?: string;
|
|
487
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
488
|
+
} & {
|
|
489
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
490
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
491
|
+
declare const h4: (propsOrChild?: VChild | ({
|
|
492
|
+
className?: ClassName;
|
|
493
|
+
style?: string;
|
|
494
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
495
|
+
} & {
|
|
496
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
497
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
498
|
+
declare const h5: (propsOrChild?: VChild | ({
|
|
499
|
+
className?: ClassName;
|
|
500
|
+
style?: string;
|
|
501
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
502
|
+
} & {
|
|
503
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
504
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
505
|
+
declare const h6: (propsOrChild?: VChild | ({
|
|
506
|
+
className?: ClassName;
|
|
507
|
+
style?: string;
|
|
508
|
+
ref?: DomRef<HTMLHeadingElement> | undefined;
|
|
509
|
+
} & {
|
|
510
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
511
|
+
} & Partial<Omit<HTMLHeadingElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
512
|
+
declare const code: (propsOrChild?: VChild | ({
|
|
513
|
+
className?: ClassName;
|
|
514
|
+
style?: string;
|
|
515
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
516
|
+
} & {
|
|
517
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
518
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
519
|
+
declare const pre: (propsOrChild?: VChild | ({
|
|
520
|
+
className?: ClassName;
|
|
521
|
+
style?: string;
|
|
522
|
+
ref?: DomRef<HTMLPreElement> | undefined;
|
|
523
|
+
} & {
|
|
524
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
525
|
+
} & Partial<Omit<HTMLPreElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
526
|
+
declare const blockquote: (propsOrChild?: VChild | ({
|
|
527
|
+
className?: ClassName;
|
|
528
|
+
style?: string;
|
|
529
|
+
ref?: DomRef<HTMLQuoteElement> | undefined;
|
|
530
|
+
} & {
|
|
531
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
532
|
+
} & Partial<Omit<HTMLQuoteElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
533
|
+
declare const var_: (propsOrChild?: VChild | ({
|
|
534
|
+
className?: ClassName;
|
|
535
|
+
style?: string;
|
|
536
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
537
|
+
} & {
|
|
538
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
539
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
540
|
+
declare const kbd: (propsOrChild?: VChild | ({
|
|
541
|
+
className?: ClassName;
|
|
542
|
+
style?: string;
|
|
543
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
544
|
+
} & {
|
|
545
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
546
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
547
|
+
declare const samp: (propsOrChild?: VChild | ({
|
|
548
|
+
className?: ClassName;
|
|
549
|
+
style?: string;
|
|
550
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
551
|
+
} & {
|
|
552
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
553
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
554
|
+
declare const cite: (propsOrChild?: VChild | ({
|
|
555
|
+
className?: ClassName;
|
|
556
|
+
style?: string;
|
|
557
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
558
|
+
} & {
|
|
559
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
560
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
561
|
+
declare const dfn: (propsOrChild?: VChild | ({
|
|
562
|
+
className?: ClassName;
|
|
563
|
+
style?: string;
|
|
564
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
565
|
+
} & {
|
|
566
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
567
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
568
|
+
declare const abbr: (propsOrChild?: VChild | ({
|
|
569
|
+
className?: ClassName;
|
|
570
|
+
style?: string;
|
|
571
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
572
|
+
} & {
|
|
573
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
574
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
575
|
+
declare const small: (propsOrChild?: VChild | ({
|
|
576
|
+
className?: ClassName;
|
|
577
|
+
style?: string;
|
|
578
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
579
|
+
} & {
|
|
580
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
581
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
582
|
+
declare const strong: (propsOrChild?: VChild | ({
|
|
583
|
+
className?: ClassName;
|
|
584
|
+
style?: string;
|
|
585
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
586
|
+
} & {
|
|
587
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
588
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
589
|
+
declare const em: (propsOrChild?: VChild | ({
|
|
590
|
+
className?: ClassName;
|
|
591
|
+
style?: string;
|
|
592
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
593
|
+
} & {
|
|
594
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
595
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
596
|
+
declare const br: (propsOrChild?: VChild | ({
|
|
597
|
+
className?: ClassName;
|
|
598
|
+
style?: string;
|
|
599
|
+
ref?: DomRef<HTMLBRElement> | undefined;
|
|
600
|
+
} & {
|
|
601
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
602
|
+
} & Partial<Omit<HTMLBRElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
603
|
+
declare const hr: (propsOrChild?: VChild | ({
|
|
604
|
+
className?: ClassName;
|
|
605
|
+
style?: string;
|
|
606
|
+
ref?: DomRef<HTMLHRElement> | undefined;
|
|
607
|
+
} & {
|
|
608
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
609
|
+
} & Partial<Omit<HTMLHRElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
610
|
+
declare const table: (propsOrChild?: VChild | ({
|
|
611
|
+
className?: ClassName;
|
|
612
|
+
style?: string;
|
|
613
|
+
ref?: DomRef<HTMLTableElement> | undefined;
|
|
614
|
+
} & {
|
|
615
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
616
|
+
} & Partial<Omit<HTMLTableElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
617
|
+
declare const caption: (propsOrChild?: VChild | ({
|
|
618
|
+
className?: ClassName;
|
|
619
|
+
style?: string;
|
|
620
|
+
ref?: DomRef<HTMLTableCaptionElement> | undefined;
|
|
621
|
+
} & {
|
|
622
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
623
|
+
} & Partial<Omit<HTMLTableCaptionElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
624
|
+
declare const colgroup: (propsOrChild?: VChild | ({
|
|
625
|
+
className?: ClassName;
|
|
626
|
+
style?: string;
|
|
627
|
+
ref?: DomRef<HTMLTableColElement> | undefined;
|
|
628
|
+
} & {
|
|
629
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
630
|
+
} & Partial<Omit<HTMLTableColElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
631
|
+
declare const col: (propsOrChild?: VChild | ({
|
|
632
|
+
className?: ClassName;
|
|
633
|
+
style?: string;
|
|
634
|
+
ref?: DomRef<HTMLTableColElement> | undefined;
|
|
635
|
+
} & {
|
|
636
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
637
|
+
} & Partial<Omit<HTMLTableColElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
638
|
+
declare const tbody: (propsOrChild?: VChild | ({
|
|
639
|
+
className?: ClassName;
|
|
640
|
+
style?: string;
|
|
641
|
+
ref?: DomRef<HTMLTableSectionElement> | undefined;
|
|
642
|
+
} & {
|
|
643
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
644
|
+
} & Partial<Omit<HTMLTableSectionElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
645
|
+
declare const thead: (propsOrChild?: VChild | ({
|
|
646
|
+
className?: ClassName;
|
|
647
|
+
style?: string;
|
|
648
|
+
ref?: DomRef<HTMLTableSectionElement> | undefined;
|
|
649
|
+
} & {
|
|
650
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
651
|
+
} & Partial<Omit<HTMLTableSectionElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
652
|
+
declare const tfoot: (propsOrChild?: VChild | ({
|
|
653
|
+
className?: ClassName;
|
|
654
|
+
style?: string;
|
|
655
|
+
ref?: DomRef<HTMLTableSectionElement> | undefined;
|
|
656
|
+
} & {
|
|
657
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
658
|
+
} & Partial<Omit<HTMLTableSectionElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
659
|
+
declare const tr: (propsOrChild?: VChild | ({
|
|
660
|
+
className?: ClassName;
|
|
661
|
+
style?: string;
|
|
662
|
+
ref?: DomRef<HTMLTableRowElement> | undefined;
|
|
663
|
+
} & {
|
|
664
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
665
|
+
} & Partial<Omit<HTMLTableRowElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
666
|
+
declare const td: (propsOrChild?: VChild | ({
|
|
667
|
+
className?: ClassName;
|
|
668
|
+
style?: string;
|
|
669
|
+
ref?: DomRef<HTMLTableCellElement> | undefined;
|
|
670
|
+
} & {
|
|
671
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
672
|
+
} & Partial<Omit<HTMLTableCellElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
673
|
+
declare const th: (propsOrChild?: VChild | ({
|
|
674
|
+
className?: ClassName;
|
|
675
|
+
style?: string;
|
|
676
|
+
ref?: DomRef<HTMLTableCellElement> | undefined;
|
|
677
|
+
} & {
|
|
678
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
679
|
+
} & Partial<Omit<HTMLTableCellElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
680
|
+
declare const style: (propsOrChild?: VChild | ({
|
|
681
|
+
className?: ClassName;
|
|
682
|
+
style?: string;
|
|
683
|
+
ref?: DomRef<HTMLStyleElement> | undefined;
|
|
684
|
+
} & {
|
|
685
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
686
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
687
|
+
declare const script: (propsOrChild?: VChild | ({
|
|
688
|
+
className?: ClassName;
|
|
689
|
+
style?: string;
|
|
690
|
+
ref?: DomRef<HTMLScriptElement> | undefined;
|
|
691
|
+
} & {
|
|
692
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
693
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
694
|
+
declare const noscript: (propsOrChild?: VChild | ({
|
|
695
|
+
className?: ClassName;
|
|
696
|
+
style?: string;
|
|
697
|
+
ref?: DomRef<HTMLElement> | undefined;
|
|
698
|
+
} & {
|
|
699
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
700
|
+
} & Partial<Omit<HTMLElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
701
|
+
declare const template: (propsOrChild?: VChild | ({
|
|
702
|
+
className?: ClassName;
|
|
703
|
+
style?: string;
|
|
704
|
+
ref?: DomRef<HTMLTemplateElement> | undefined;
|
|
705
|
+
} & {
|
|
706
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
707
|
+
} & Partial<Omit<HTMLTemplateElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
708
|
+
declare const slot: (propsOrChild?: VChild | ({
|
|
709
|
+
className?: ClassName;
|
|
710
|
+
style?: string;
|
|
711
|
+
ref?: DomRef<HTMLSlotElement> | undefined;
|
|
712
|
+
} & {
|
|
713
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
714
|
+
} & Partial<Omit<HTMLSlotElement, "style" | "children" | "className">>), ...children: VChild[]) => VNode;
|
|
715
|
+
declare const svg: (propsOrChild?: VChild | ({
|
|
716
|
+
className?: ClassName;
|
|
717
|
+
style?: string;
|
|
718
|
+
ref?: DomRef<SVGSVGElement> | undefined;
|
|
719
|
+
} & {
|
|
720
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
721
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
722
|
+
declare const g: (propsOrChild?: VChild | ({
|
|
723
|
+
className?: ClassName;
|
|
724
|
+
style?: string;
|
|
725
|
+
ref?: DomRef<SVGGElement> | undefined;
|
|
726
|
+
} & {
|
|
727
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
728
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
729
|
+
declare const path: (propsOrChild?: VChild | ({
|
|
730
|
+
className?: ClassName;
|
|
731
|
+
style?: string;
|
|
732
|
+
ref?: DomRef<SVGPathElement> | undefined;
|
|
733
|
+
} & {
|
|
734
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
735
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
736
|
+
declare const circle: (propsOrChild?: VChild | ({
|
|
737
|
+
className?: ClassName;
|
|
738
|
+
style?: string;
|
|
739
|
+
ref?: DomRef<SVGCircleElement> | undefined;
|
|
740
|
+
} & {
|
|
741
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
742
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
743
|
+
declare const rect: (propsOrChild?: VChild | ({
|
|
744
|
+
className?: ClassName;
|
|
745
|
+
style?: string;
|
|
746
|
+
ref?: DomRef<SVGRectElement> | undefined;
|
|
747
|
+
} & {
|
|
748
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
749
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
750
|
+
declare const line: (propsOrChild?: VChild | ({
|
|
751
|
+
className?: ClassName;
|
|
752
|
+
style?: string;
|
|
753
|
+
ref?: DomRef<SVGLineElement> | undefined;
|
|
754
|
+
} & {
|
|
755
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
756
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
757
|
+
declare const polyline: (propsOrChild?: VChild | ({
|
|
758
|
+
className?: ClassName;
|
|
759
|
+
style?: string;
|
|
760
|
+
ref?: DomRef<SVGPolylineElement> | undefined;
|
|
761
|
+
} & {
|
|
762
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
763
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
764
|
+
declare const polygon: (propsOrChild?: VChild | ({
|
|
765
|
+
className?: ClassName;
|
|
766
|
+
style?: string;
|
|
767
|
+
ref?: DomRef<SVGPolygonElement> | undefined;
|
|
768
|
+
} & {
|
|
769
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
770
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
771
|
+
declare const ellipse: (propsOrChild?: VChild | ({
|
|
772
|
+
className?: ClassName;
|
|
773
|
+
style?: string;
|
|
774
|
+
ref?: DomRef<SVGEllipseElement> | undefined;
|
|
775
|
+
} & {
|
|
776
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
777
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
778
|
+
declare const defs: (propsOrChild?: VChild | ({
|
|
779
|
+
className?: ClassName;
|
|
780
|
+
style?: string;
|
|
781
|
+
ref?: DomRef<SVGDefsElement> | undefined;
|
|
782
|
+
} & {
|
|
783
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
784
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
785
|
+
declare const clipPath: (propsOrChild?: VChild | ({
|
|
786
|
+
className?: ClassName;
|
|
787
|
+
style?: string;
|
|
788
|
+
ref?: DomRef<SVGClipPathElement> | undefined;
|
|
789
|
+
} & {
|
|
790
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
791
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
792
|
+
declare const mask: (propsOrChild?: VChild | ({
|
|
793
|
+
className?: ClassName;
|
|
794
|
+
style?: string;
|
|
795
|
+
ref?: DomRef<SVGMaskElement> | undefined;
|
|
796
|
+
} & {
|
|
797
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
798
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
799
|
+
declare const pattern: (propsOrChild?: VChild | ({
|
|
800
|
+
className?: ClassName;
|
|
801
|
+
style?: string;
|
|
802
|
+
ref?: DomRef<SVGPatternElement> | undefined;
|
|
803
|
+
} & {
|
|
804
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
805
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
806
|
+
declare const linearGradient: (propsOrChild?: VChild | ({
|
|
807
|
+
className?: ClassName;
|
|
808
|
+
style?: string;
|
|
809
|
+
ref?: DomRef<SVGLinearGradientElement> | undefined;
|
|
810
|
+
} & {
|
|
811
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
812
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
813
|
+
declare const radialGradient: (propsOrChild?: VChild | ({
|
|
814
|
+
className?: ClassName;
|
|
815
|
+
style?: string;
|
|
816
|
+
ref?: DomRef<SVGRadialGradientElement> | undefined;
|
|
817
|
+
} & {
|
|
818
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
819
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
820
|
+
declare const stop: (propsOrChild?: VChild | ({
|
|
821
|
+
className?: ClassName;
|
|
822
|
+
style?: string;
|
|
823
|
+
ref?: DomRef<SVGStopElement> | undefined;
|
|
824
|
+
} & {
|
|
825
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
826
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
827
|
+
declare const use: (propsOrChild?: VChild | ({
|
|
828
|
+
className?: ClassName;
|
|
829
|
+
style?: string;
|
|
830
|
+
ref?: DomRef<SVGUseElement> | undefined;
|
|
831
|
+
} & {
|
|
832
|
+
[x: `data-${string}`]: string | number | boolean | null | undefined;
|
|
833
|
+
} & SvgProps), ...children: VChild[]) => VNode;
|
|
235
834
|
//#endregion
|
|
236
835
|
//#region src/vani/ssr.d.ts
|
|
237
836
|
type Renderable = Component<any> | ComponentInstance<any>;
|
|
238
837
|
declare function renderToString(components: Renderable[]): Promise<string>;
|
|
239
838
|
//#endregion
|
|
240
|
-
|
|
839
|
+
//#region src/vani/svg.d.ts
|
|
840
|
+
type SvgRenderOptions = {
|
|
841
|
+
size?: number;
|
|
842
|
+
className?: string;
|
|
843
|
+
attributes?: SvgProps;
|
|
844
|
+
};
|
|
845
|
+
declare const renderSvgString: (svg: string, options?: SvgRenderOptions) => VNode;
|
|
846
|
+
//#endregion
|
|
847
|
+
export { ClassName, Component, ComponentInput, ComponentInstance, ComponentRef, DataAttribute, DomRef, Handle, HtmlProps, RenderFn, SSRNode, SvgProps, SvgRenderOptions, VChild, VNode, a, abbr, article, aside, audio, blockquote, br, button, caption, circle, cite, classNames, clipPath, code, col, colgroup, component, datalist, dd, defs, details, dfn, div, dl, dt, el, ellipse, em, embed, fieldset, figcaption, figure, footer, form, fragment, g, getRenderMode, h1, h2, h3, h4, h5, h6, header, hr, hydrateToDOM, iframe, img, input, isComponentInstance, isDevMode, kbd, label, legend, li, line, linearGradient, main, mark, mask, meter, mount, nav, noscript, ol, optgroup, option, output, p, path, pattern, picture, polygon, polyline, pre, progress, radialGradient, rect, renderSvgString, renderToDOM, renderToString, samp, script, section, select, slot, small, source, span, startTransition, stop, strong, style, summary, svg, table, tbody, td, template, textarea, tfoot, th, thead, time, tr, ul, use, var_, video, withRenderMode };
|