@estjs/template 0.0.10-beta.22 → 0.0.10

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.
@@ -0,0 +1,2308 @@
1
+ import * as csstype from 'csstype';
2
+ import { Signal as Signal$1 } from '@estjs/signal';
3
+
4
+ interface Output<T> {
5
+ (value: T): void;
6
+ type: 'output';
7
+ }
8
+
9
+ type EssorComponent = (props: Record<string, unknown>) => JSX.Element | TemplateNode;
10
+ type Hook$1 = 'mounted' | 'destroy';
11
+
12
+ interface NodeTrack {
13
+ cleanup: () => void;
14
+ isRoot?: boolean;
15
+ lastNodes?: Map<string, Node | JSX.Element>;
16
+ }
17
+ interface NodeTrack {
18
+ cleanup: () => void;
19
+ isRoot?: boolean;
20
+ lastNodes?: Map<string, Node | JSX.Element>;
21
+ }
22
+
23
+ interface EssorNode<T extends Record<string, any> = Record<string, any>> {
24
+ props: T;
25
+ id?: string;
26
+ template: EssorComponent | HTMLTemplateElement;
27
+
28
+ get firstChild(): Node | null;
29
+ get isConnected(): boolean;
30
+
31
+ addEventListener(event: string, listener: any): void;
32
+ removeEventListener(event: string, listener: any): void;
33
+ inheritNode(node: ComponentNode): void;
34
+ mount(parent: Node, before?: Node | null): Node[];
35
+ unmount(): void;
36
+ }
37
+
38
+ /**
39
+ * Based on JSX types for Surplus and Inferno and adapted for `dom-expressions`.
40
+ *
41
+ * https://github.com/adamhaile/surplus/blob/master/index.d.ts
42
+ * https://github.com/infernojs/inferno/blob/master/packages/inferno/src/core/types.ts
43
+ */
44
+ type DOMElement = Element;
45
+ declare const SERIALIZABLE: unique symbol;
46
+
47
+ declare global {
48
+ export namespace JSX {
49
+ export type Element = EssorNode;
50
+ export type JSXElement = EssorNode;
51
+
52
+ type Children =
53
+ | string
54
+ | number
55
+ | boolean
56
+ | Date
57
+ | Node
58
+ | Element
59
+ | Effect
60
+ | Children[]
61
+ | null
62
+ | undefined;
63
+ type Effect = () => Children;
64
+ interface ArrayElement extends Array<Element> {}
65
+ interface ElementClass {
66
+ // empty, libs can define requirements downstream
67
+ }
68
+ interface ElementAttributesProperty {
69
+ // empty, libs can define requirements downstream
70
+ }
71
+ interface ElementChildrenAttribute {
72
+ children: {};
73
+ }
74
+ interface EventHandler<T, E extends Event> {
75
+ (
76
+ e: E & {
77
+ currentTarget: T;
78
+ target: DOMElement;
79
+ },
80
+ ): void;
81
+ }
82
+ interface BoundEventHandler<T, E extends Event> {
83
+ 0: (
84
+ data: any,
85
+ e: E & {
86
+ currentTarget: T;
87
+ target: DOMElement;
88
+ },
89
+ ) => void;
90
+ 1: any;
91
+ }
92
+ type EventHandlerUnion<T, E extends Event> = EventHandler<T, E> | BoundEventHandler<T, E>;
93
+
94
+ interface InputEventHandler<T, E extends InputEvent> {
95
+ (
96
+ e: E & {
97
+ currentTarget: T;
98
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
99
+ ? T
100
+ : DOMElement;
101
+ },
102
+ ): void;
103
+ }
104
+ interface BoundInputEventHandler<T, E extends InputEvent> {
105
+ 0: (
106
+ data: any,
107
+ e: E & {
108
+ currentTarget: T;
109
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
110
+ ? T
111
+ : DOMElement;
112
+ },
113
+ ) => void;
114
+ 1: any;
115
+ }
116
+ type InputEventHandlerUnion<T, E extends InputEvent> =
117
+ | InputEventHandler<T, E>
118
+ | BoundInputEventHandler<T, E>;
119
+
120
+ interface ChangeEventHandler<T, E extends Event> {
121
+ (
122
+ e: E & {
123
+ currentTarget: T;
124
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
125
+ ? T
126
+ : DOMElement;
127
+ },
128
+ ): void;
129
+ }
130
+ interface BoundChangeEventHandler<T, E extends Event> {
131
+ 0: (
132
+ data: any,
133
+ e: E & {
134
+ currentTarget: T;
135
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
136
+ ? T
137
+ : DOMElement;
138
+ },
139
+ ) => void;
140
+ 1: any;
141
+ }
142
+ type ChangeEventHandlerUnion<T, E extends Event> =
143
+ | ChangeEventHandler<T, E>
144
+ | BoundChangeEventHandler<T, E>;
145
+
146
+ interface FocusEventHandler<T, E extends FocusEvent> {
147
+ (
148
+ e: E & {
149
+ currentTarget: T;
150
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
151
+ ? T
152
+ : DOMElement;
153
+ },
154
+ ): void;
155
+ }
156
+ interface BoundFocusEventHandler<T, E extends FocusEvent> {
157
+ 0: (
158
+ data: any,
159
+ e: E & {
160
+ currentTarget: T;
161
+ target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
162
+ ? T
163
+ : DOMElement;
164
+ },
165
+ ) => void;
166
+ 1: any;
167
+ }
168
+ type FocusEventHandlerUnion<T, E extends FocusEvent> =
169
+ | FocusEventHandler<T, E>
170
+ | BoundFocusEventHandler<T, E>;
171
+
172
+ interface SerializableAttributeValue {
173
+ toString(): string;
174
+ [SERIALIZABLE]: never;
175
+ }
176
+
177
+ interface IntrinsicAttributes {
178
+ ref?: unknown | ((e: unknown) => void);
179
+ }
180
+ interface CustomAttributes<T> {
181
+ ref?: Signal<T> | ((el: T) => void);
182
+ key?: string | number | symbol;
183
+ }
184
+ type Accessor<T> = () => T;
185
+ interface Directives {}
186
+ interface DirectiveFunctions {
187
+ [x: string]: (el: DOMElement, accessor: Accessor<any>) => void;
188
+ }
189
+ interface ExplicitProperties<T> {
190
+ value: Signal<T>;
191
+ updateValue: (value: T) => void;
192
+ }
193
+
194
+ interface ExplicitAttributes {}
195
+ interface CustomEvents {}
196
+ interface CustomCaptureEvents {}
197
+ type OnCaptureAttributes<T> = {
198
+ [Key in keyof CustomCaptureEvents as `oncapture:${Key}`]?: EventHandler<
199
+ T,
200
+ CustomCaptureEvents[Key]
201
+ >;
202
+ };
203
+ type PropAttributes<T> = {
204
+ [Key in keyof ExplicitProperties]?: ExplicitProperties<T>[Key];
205
+ };
206
+ interface DOMAttributes<T>
207
+ extends CustomAttributes<T>,
208
+ PropAttributes<T>,
209
+ OnCaptureAttributes<T>,
210
+ CustomEventHandlersCamelCase<T>,
211
+ CustomEventHandlersLowerCase<T> {
212
+ children?: Children;
213
+ innerHTML?: string;
214
+ innerText?: string | number;
215
+ textContent?: string | number;
216
+ // camel case events
217
+ onCopy?: EventHandlerUnion<T, ClipboardEvent>;
218
+ onCut?: EventHandlerUnion<T, ClipboardEvent>;
219
+ onPaste?: EventHandlerUnion<T, ClipboardEvent>;
220
+ onCompositionEnd?: EventHandlerUnion<T, CompositionEvent>;
221
+ onCompositionStart?: EventHandlerUnion<T, CompositionEvent>;
222
+ onCompositionUpdate?: EventHandlerUnion<T, CompositionEvent>;
223
+ onFocusOut?: FocusEventHandlerUnion<T, FocusEvent>;
224
+ onFocusIn?: FocusEventHandlerUnion<T, FocusEvent>;
225
+ onEncrypted?: EventHandlerUnion<T, Event>;
226
+ onDragExit?: EventHandlerUnion<T, DragEvent>;
227
+ // lower case events
228
+ oncopy?: EventHandlerUnion<T, ClipboardEvent>;
229
+ oncut?: EventHandlerUnion<T, ClipboardEvent>;
230
+ onpaste?: EventHandlerUnion<T, ClipboardEvent>;
231
+ oncompositionend?: EventHandlerUnion<T, CompositionEvent>;
232
+ oncompositionstart?: EventHandlerUnion<T, CompositionEvent>;
233
+ oncompositionupdate?: EventHandlerUnion<T, CompositionEvent>;
234
+ onfocusout?: FocusEventHandlerUnion<T, FocusEvent>;
235
+ onfocusin?: FocusEventHandlerUnion<T, FocusEvent>;
236
+ onencrypted?: EventHandlerUnion<T, Event>;
237
+ ondragexit?: EventHandlerUnion<T, DragEvent>;
238
+ }
239
+ interface CustomEventHandlersCamelCase<T> {
240
+ onAbort?: EventHandlerUnion<T, Event>;
241
+ onAnimationEnd?: EventHandlerUnion<T, AnimationEvent>;
242
+ onAnimationIteration?: EventHandlerUnion<T, AnimationEvent>;
243
+ onAnimationStart?: EventHandlerUnion<T, AnimationEvent>;
244
+ onAuxClick?: EventHandlerUnion<T, MouseEvent>;
245
+ onBeforeInput?: InputEventHandlerUnion<T, InputEvent>;
246
+ onBlur?: FocusEventHandlerUnion<T, FocusEvent>;
247
+ onCanPlay?: EventHandlerUnion<T, Event>;
248
+ onCanPlayThrough?: EventHandlerUnion<T, Event>;
249
+ onChange?: ChangeEventHandlerUnion<T, Event>;
250
+ onClick?: EventHandlerUnion<T, MouseEvent>;
251
+ onContextMenu?: EventHandlerUnion<T, MouseEvent>;
252
+ onDblClick?: EventHandlerUnion<T, MouseEvent>;
253
+ onDrag?: EventHandlerUnion<T, DragEvent>;
254
+ onDragEnd?: EventHandlerUnion<T, DragEvent>;
255
+ onDragEnter?: EventHandlerUnion<T, DragEvent>;
256
+ onDragLeave?: EventHandlerUnion<T, DragEvent>;
257
+ onDragOver?: EventHandlerUnion<T, DragEvent>;
258
+ onDragStart?: EventHandlerUnion<T, DragEvent>;
259
+ onDrop?: EventHandlerUnion<T, DragEvent>;
260
+ onDurationChange?: EventHandlerUnion<T, Event>;
261
+ onEmptied?: EventHandlerUnion<T, Event>;
262
+ onEnded?: EventHandlerUnion<T, Event>;
263
+ onError?: EventHandlerUnion<T, Event>;
264
+ onFocus?: FocusEventHandlerUnion<T, FocusEvent>;
265
+ onGotPointerCapture?: EventHandlerUnion<T, PointerEvent>;
266
+ onInput?: InputEventHandlerUnion<T, InputEvent>;
267
+ onInvalid?: EventHandlerUnion<T, Event>;
268
+ onKeyDown?: EventHandlerUnion<T, KeyboardEvent>;
269
+ onKeyPress?: EventHandlerUnion<T, KeyboardEvent>;
270
+ onKeyUp?: EventHandlerUnion<T, KeyboardEvent>;
271
+ onLoad?: EventHandlerUnion<T, Event>;
272
+ onLoadedData?: EventHandlerUnion<T, Event>;
273
+ onLoadedMetadata?: EventHandlerUnion<T, Event>;
274
+ onLoadStart?: EventHandlerUnion<T, Event>;
275
+ onLostPointerCapture?: EventHandlerUnion<T, PointerEvent>;
276
+ onMouseDown?: EventHandlerUnion<T, MouseEvent>;
277
+ onMouseEnter?: EventHandlerUnion<T, MouseEvent>;
278
+ onMouseLeave?: EventHandlerUnion<T, MouseEvent>;
279
+ onMouseMove?: EventHandlerUnion<T, MouseEvent>;
280
+ onMouseOut?: EventHandlerUnion<T, MouseEvent>;
281
+ onMouseOver?: EventHandlerUnion<T, MouseEvent>;
282
+ onMouseUp?: EventHandlerUnion<T, MouseEvent>;
283
+ onPause?: EventHandlerUnion<T, Event>;
284
+ onPlay?: EventHandlerUnion<T, Event>;
285
+ onPlaying?: EventHandlerUnion<T, Event>;
286
+ onPointerCancel?: EventHandlerUnion<T, PointerEvent>;
287
+ onPointerDown?: EventHandlerUnion<T, PointerEvent>;
288
+ onPointerEnter?: EventHandlerUnion<T, PointerEvent>;
289
+ onPointerLeave?: EventHandlerUnion<T, PointerEvent>;
290
+ onPointerMove?: EventHandlerUnion<T, PointerEvent>;
291
+ onPointerOut?: EventHandlerUnion<T, PointerEvent>;
292
+ onPointerOver?: EventHandlerUnion<T, PointerEvent>;
293
+ onPointerUp?: EventHandlerUnion<T, PointerEvent>;
294
+ onProgress?: EventHandlerUnion<T, Event>;
295
+ onRateChange?: EventHandlerUnion<T, Event>;
296
+ onReset?: EventHandlerUnion<T, Event>;
297
+ onScroll?: EventHandlerUnion<T, Event>;
298
+ onScrollEnd?: EventHandlerUnion<T, Event>;
299
+ onSeeked?: EventHandlerUnion<T, Event>;
300
+ onSeeking?: EventHandlerUnion<T, Event>;
301
+ onSelect?: EventHandlerUnion<T, UIEvent>;
302
+ onStalled?: EventHandlerUnion<T, Event>;
303
+ onSubmit?: EventHandlerUnion<
304
+ T,
305
+ Event & {
306
+ submitter: HTMLElement;
307
+ }
308
+ >;
309
+ onSuspend?: EventHandlerUnion<T, Event>;
310
+ onTimeUpdate?: EventHandlerUnion<T, Event>;
311
+ onTouchCancel?: EventHandlerUnion<T, TouchEvent>;
312
+ onTouchEnd?: EventHandlerUnion<T, TouchEvent>;
313
+ onTouchMove?: EventHandlerUnion<T, TouchEvent>;
314
+ onTouchStart?: EventHandlerUnion<T, TouchEvent>;
315
+ onTransitionStart?: EventHandlerUnion<T, TransitionEvent>;
316
+ onTransitionEnd?: EventHandlerUnion<T, TransitionEvent>;
317
+ onTransitionRun?: EventHandlerUnion<T, TransitionEvent>;
318
+ onTransitionCancel?: EventHandlerUnion<T, TransitionEvent>;
319
+ onVolumeChange?: EventHandlerUnion<T, Event>;
320
+ onWaiting?: EventHandlerUnion<T, Event>;
321
+ onWheel?: EventHandlerUnion<T, WheelEvent>;
322
+ }
323
+ /**
324
+ * @type {GlobalEventHandlers}
325
+ */
326
+ interface CustomEventHandlersLowerCase<T> {
327
+ onabort?: EventHandlerUnion<T, Event>;
328
+ onanimationend?: EventHandlerUnion<T, AnimationEvent>;
329
+ onanimationiteration?: EventHandlerUnion<T, AnimationEvent>;
330
+ onanimationstart?: EventHandlerUnion<T, AnimationEvent>;
331
+ onauxclick?: EventHandlerUnion<T, MouseEvent>;
332
+ onbeforeinput?: InputEventHandlerUnion<T, InputEvent>;
333
+ onblur?: FocusEventHandlerUnion<T, FocusEvent>;
334
+ oncanplay?: EventHandlerUnion<T, Event>;
335
+ oncanplaythrough?: EventHandlerUnion<T, Event>;
336
+ onchange?: ChangeEventHandlerUnion<T, Event>;
337
+ onclick?: EventHandlerUnion<T, MouseEvent>;
338
+ oncontextmenu?: EventHandlerUnion<T, MouseEvent>;
339
+ ondblclick?: EventHandlerUnion<T, MouseEvent>;
340
+ ondrag?: EventHandlerUnion<T, DragEvent>;
341
+ ondragend?: EventHandlerUnion<T, DragEvent>;
342
+ ondragenter?: EventHandlerUnion<T, DragEvent>;
343
+ ondragleave?: EventHandlerUnion<T, DragEvent>;
344
+ ondragover?: EventHandlerUnion<T, DragEvent>;
345
+ ondragstart?: EventHandlerUnion<T, DragEvent>;
346
+ ondrop?: EventHandlerUnion<T, DragEvent>;
347
+ ondurationchange?: EventHandlerUnion<T, Event>;
348
+ onemptied?: EventHandlerUnion<T, Event>;
349
+ onended?: EventHandlerUnion<T, Event>;
350
+ onerror?: EventHandlerUnion<T, Event>;
351
+ onfocus?: FocusEventHandlerUnion<T, FocusEvent>;
352
+ ongotpointercapture?: EventHandlerUnion<T, PointerEvent>;
353
+ oninput?: InputEventHandlerUnion<T, InputEvent>;
354
+ oninvalid?: EventHandlerUnion<T, Event>;
355
+ onkeydown?: EventHandlerUnion<T, KeyboardEvent>;
356
+ onkeypress?: EventHandlerUnion<T, KeyboardEvent>;
357
+ onkeyup?: EventHandlerUnion<T, KeyboardEvent>;
358
+ onload?: EventHandlerUnion<T, Event>;
359
+ onloadeddata?: EventHandlerUnion<T, Event>;
360
+ onloadedmetadata?: EventHandlerUnion<T, Event>;
361
+ onloadstart?: EventHandlerUnion<T, Event>;
362
+ onlostpointercapture?: EventHandlerUnion<T, PointerEvent>;
363
+ onmousedown?: EventHandlerUnion<T, MouseEvent>;
364
+ onmouseenter?: EventHandlerUnion<T, MouseEvent>;
365
+ onmouseleave?: EventHandlerUnion<T, MouseEvent>;
366
+ onmousemove?: EventHandlerUnion<T, MouseEvent>;
367
+ onmouseout?: EventHandlerUnion<T, MouseEvent>;
368
+ onmouseover?: EventHandlerUnion<T, MouseEvent>;
369
+ onmouseup?: EventHandlerUnion<T, MouseEvent>;
370
+ onpause?: EventHandlerUnion<T, Event>;
371
+ onplay?: EventHandlerUnion<T, Event>;
372
+ onplaying?: EventHandlerUnion<T, Event>;
373
+ onpointercancel?: EventHandlerUnion<T, PointerEvent>;
374
+ onpointerdown?: EventHandlerUnion<T, PointerEvent>;
375
+ onpointerenter?: EventHandlerUnion<T, PointerEvent>;
376
+ onpointerleave?: EventHandlerUnion<T, PointerEvent>;
377
+ onpointermove?: EventHandlerUnion<T, PointerEvent>;
378
+ onpointerout?: EventHandlerUnion<T, PointerEvent>;
379
+ onpointerover?: EventHandlerUnion<T, PointerEvent>;
380
+ onpointerup?: EventHandlerUnion<T, PointerEvent>;
381
+ onprogress?: EventHandlerUnion<T, Event>;
382
+ onratechange?: EventHandlerUnion<T, Event>;
383
+ onreset?: EventHandlerUnion<T, Event>;
384
+ onscroll?: EventHandlerUnion<T, Event>;
385
+ onscrollend?: EventHandlerUnion<T, Event>;
386
+ onseeked?: EventHandlerUnion<T, Event>;
387
+ onseeking?: EventHandlerUnion<T, Event>;
388
+ onselect?: EventHandlerUnion<T, UIEvent>;
389
+ onstalled?: EventHandlerUnion<T, Event>;
390
+ onsubmit?: EventHandlerUnion<
391
+ T,
392
+ Event & {
393
+ submitter: HTMLElement;
394
+ }
395
+ >;
396
+ onsuspend?: EventHandlerUnion<T, Event>;
397
+ ontimeupdate?: EventHandlerUnion<T, Event>;
398
+ ontouchcancel?: EventHandlerUnion<T, TouchEvent>;
399
+ ontouchend?: EventHandlerUnion<T, TouchEvent>;
400
+ ontouchmove?: EventHandlerUnion<T, TouchEvent>;
401
+ ontouchstart?: EventHandlerUnion<T, TouchEvent>;
402
+ ontransitionstart?: EventHandlerUnion<T, TransitionEvent>;
403
+ ontransitionend?: EventHandlerUnion<T, TransitionEvent>;
404
+ ontransitionrun?: EventHandlerUnion<T, TransitionEvent>;
405
+ ontransitioncancel?: EventHandlerUnion<T, TransitionEvent>;
406
+ onvolumechange?: EventHandlerUnion<T, Event>;
407
+ onwaiting?: EventHandlerUnion<T, Event>;
408
+ onwheel?: EventHandlerUnion<T, WheelEvent>;
409
+ }
410
+
411
+ interface CSSProperties extends csstype.PropertiesHyphen {
412
+ // Override
413
+ [key: `-${string}`]: string | number | undefined;
414
+ }
415
+
416
+ type HTMLAutocapitalize = 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
417
+ type HTMLDir = 'ltr' | 'rtl' | 'auto';
418
+ type HTMLFormEncType =
419
+ | 'application/x-www-form-urlencoded'
420
+ | 'multipart/form-data'
421
+ | 'text/plain';
422
+ type HTMLFormMethod = 'post' | 'get' | 'dialog';
423
+ type HTMLCrossorigin = 'anonymous' | 'use-credentials' | '';
424
+ type HTMLReferrerPolicy =
425
+ | 'no-referrer'
426
+ | 'no-referrer-when-downgrade'
427
+ | 'origin'
428
+ | 'origin-when-cross-origin'
429
+ | 'same-origin'
430
+ | 'strict-origin'
431
+ | 'strict-origin-when-cross-origin'
432
+ | 'unsafe-url';
433
+ type HTMLIframeSandbox =
434
+ | 'allow-downloads-without-user-activation'
435
+ | 'allow-downloads'
436
+ | 'allow-forms'
437
+ | 'allow-modals'
438
+ | 'allow-orientation-lock'
439
+ | 'allow-pointer-lock'
440
+ | 'allow-popups'
441
+ | 'allow-popups-to-escape-sandbox'
442
+ | 'allow-presentation'
443
+ | 'allow-same-origin'
444
+ | 'allow-scripts'
445
+ | 'allow-storage-access-by-user-activation'
446
+ | 'allow-top-navigation'
447
+ | 'allow-top-navigation-by-user-activation'
448
+ | 'allow-top-navigation-to-custom-protocols';
449
+ type HTMLLinkAs =
450
+ | 'audio'
451
+ | 'document'
452
+ | 'embed'
453
+ | 'fetch'
454
+ | 'font'
455
+ | 'image'
456
+ | 'object'
457
+ | 'script'
458
+ | 'style'
459
+ | 'track'
460
+ | 'video'
461
+ | 'worker';
462
+
463
+ // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
464
+ interface AriaAttributes {
465
+ /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
466
+ 'aria-activedescendant'?: string;
467
+ /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
468
+ 'aria-atomic'?: boolean | 'false' | 'true';
469
+ /**
470
+ * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
471
+ * presented if they are made.
472
+ */
473
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
474
+ /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
475
+ 'aria-busy'?: boolean | 'false' | 'true';
476
+ /**
477
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
478
+ * @see aria-pressed @see aria-selected.
479
+ */
480
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
481
+ /**
482
+ * Defines the total number of columns in a table, grid, or treegrid.
483
+ * @see aria-colindex.
484
+ */
485
+ 'aria-colcount'?: number | string;
486
+ /**
487
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
488
+ * @see aria-colcount @see aria-colspan.
489
+ */
490
+ 'aria-colindex'?: number | string;
491
+ /**
492
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
493
+ * @see aria-colindex @see aria-rowspan.
494
+ */
495
+ 'aria-colspan'?: number | string;
496
+ /**
497
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
498
+ * @see aria-owns.
499
+ */
500
+ 'aria-controls'?: string;
501
+ /** Indicates the element that represents the current item within a container or set of related elements. */
502
+ 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
503
+ /**
504
+ * Identifies the element (or elements) that describes the object.
505
+ * @see aria-labelledby
506
+ */
507
+ 'aria-describedby'?: string;
508
+ /**
509
+ * Identifies the element that provides a detailed, extended description for the object.
510
+ * @see aria-describedby.
511
+ */
512
+ 'aria-details'?: string;
513
+ /**
514
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
515
+ * @see aria-hidden @see aria-readonly.
516
+ */
517
+ 'aria-disabled'?: boolean | 'false' | 'true';
518
+ /**
519
+ * Indicates what functions can be performed when a dragged object is released on the drop target.
520
+ * @deprecated in ARIA 1.1
521
+ */
522
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
523
+ /**
524
+ * Identifies the element that provides an error message for the object.
525
+ * @see aria-invalid @see aria-describedby.
526
+ */
527
+ 'aria-errormessage'?: string;
528
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
529
+ 'aria-expanded'?: boolean | 'false' | 'true';
530
+ /**
531
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
532
+ * allows assistive technology to override the general default of reading in document source order.
533
+ */
534
+ 'aria-flowto'?: string;
535
+ /**
536
+ * Indicates an element's "grabbed" state in a drag-and-drop operation.
537
+ * @deprecated in ARIA 1.1
538
+ */
539
+ 'aria-grabbed'?: boolean | 'false' | 'true';
540
+ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
541
+ 'aria-haspopup'?:
542
+ | boolean
543
+ | 'false'
544
+ | 'true'
545
+ | 'menu'
546
+ | 'listbox'
547
+ | 'tree'
548
+ | 'grid'
549
+ | 'dialog';
550
+ /**
551
+ * Indicates whether the element is exposed to an accessibility API.
552
+ * @see aria-disabled.
553
+ */
554
+ 'aria-hidden'?: boolean | 'false' | 'true';
555
+ /**
556
+ * Indicates the entered value does not conform to the format expected by the application.
557
+ * @see aria-errormessage.
558
+ */
559
+ 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling';
560
+ /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
561
+ 'aria-keyshortcuts'?: string;
562
+ /**
563
+ * Defines a string value that labels the current element.
564
+ * @see aria-labelledby.
565
+ */
566
+ 'aria-label'?: string;
567
+ /**
568
+ * Identifies the element (or elements) that labels the current element.
569
+ * @see aria-describedby.
570
+ */
571
+ 'aria-labelledby'?: string;
572
+ /** Defines the hierarchical level of an element within a structure. */
573
+ 'aria-level'?: number | string;
574
+ /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
575
+ 'aria-live'?: 'off' | 'assertive' | 'polite';
576
+ /** Indicates whether an element is modal when displayed. */
577
+ 'aria-modal'?: boolean | 'false' | 'true';
578
+ /** Indicates whether a text box accepts multiple lines of input or only a single line. */
579
+ 'aria-multiline'?: boolean | 'false' | 'true';
580
+ /** Indicates that the user may select more than one item from the current selectable descendants. */
581
+ 'aria-multiselectable'?: boolean | 'false' | 'true';
582
+ /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
583
+ 'aria-orientation'?: 'horizontal' | 'vertical';
584
+ /**
585
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
586
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
587
+ * @see aria-controls.
588
+ */
589
+ 'aria-owns'?: string;
590
+ /**
591
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
592
+ * A hint could be a sample value or a brief description of the expected format.
593
+ */
594
+ 'aria-placeholder'?: string;
595
+ /**
596
+ * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
597
+ * @see aria-setsize.
598
+ */
599
+ 'aria-posinset'?: number | string;
600
+ /**
601
+ * Indicates the current "pressed" state of toggle buttons.
602
+ * @see aria-checked @see aria-selected.
603
+ */
604
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
605
+ /**
606
+ * Indicates that the element is not editable, but is otherwise operable.
607
+ * @see aria-disabled.
608
+ */
609
+ 'aria-readonly'?: boolean | 'false' | 'true';
610
+ /**
611
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
612
+ * @see aria-atomic.
613
+ */
614
+ 'aria-relevant'?:
615
+ | 'additions'
616
+ | 'additions removals'
617
+ | 'additions text'
618
+ | 'all'
619
+ | 'removals'
620
+ | 'removals additions'
621
+ | 'removals text'
622
+ | 'text'
623
+ | 'text additions'
624
+ | 'text removals';
625
+ /** Indicates that user input is required on the element before a form may be submitted. */
626
+ 'aria-required'?: boolean | 'false' | 'true';
627
+ /** Defines a human-readable, author-localized description for the role of an element. */
628
+ 'aria-roledescription'?: string;
629
+ /**
630
+ * Defines the total number of rows in a table, grid, or treegrid.
631
+ * @see aria-rowindex.
632
+ */
633
+ 'aria-rowcount'?: number | string;
634
+ /**
635
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
636
+ * @see aria-rowcount @see aria-rowspan.
637
+ */
638
+ 'aria-rowindex'?: number | string;
639
+ /**
640
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
641
+ * @see aria-rowindex @see aria-colspan.
642
+ */
643
+ 'aria-rowspan'?: number | string;
644
+ /**
645
+ * Indicates the current "selected" state of various widgets.
646
+ * @see aria-checked @see aria-pressed.
647
+ */
648
+ 'aria-selected'?: boolean | 'false' | 'true';
649
+ /**
650
+ * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
651
+ * @see aria-posinset.
652
+ */
653
+ 'aria-setsize'?: number | string;
654
+ /** Indicates if items in a table or grid are sorted in ascending or descending order. */
655
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
656
+ /** Defines the maximum allowed value for a range widget. */
657
+ 'aria-valuemax'?: number | string;
658
+ /** Defines the minimum allowed value for a range widget. */
659
+ 'aria-valuemin'?: number | string;
660
+ /**
661
+ * Defines the current value for a range widget.
662
+ * @see aria-valuetext.
663
+ */
664
+ 'aria-valuenow'?: number | string;
665
+ /** Defines the human readable text alternative of aria-valuenow for a range widget. */
666
+ 'aria-valuetext'?: string;
667
+ 'role'?:
668
+ | 'alert'
669
+ | 'alertdialog'
670
+ | 'application'
671
+ | 'article'
672
+ | 'banner'
673
+ | 'button'
674
+ | 'cell'
675
+ | 'checkbox'
676
+ | 'columnheader'
677
+ | 'combobox'
678
+ | 'complementary'
679
+ | 'contentinfo'
680
+ | 'definition'
681
+ | 'dialog'
682
+ | 'directory'
683
+ | 'document'
684
+ | 'feed'
685
+ | 'figure'
686
+ | 'form'
687
+ | 'grid'
688
+ | 'gridcell'
689
+ | 'group'
690
+ | 'heading'
691
+ | 'img'
692
+ | 'link'
693
+ | 'list'
694
+ | 'listbox'
695
+ | 'listitem'
696
+ | 'log'
697
+ | 'main'
698
+ | 'marquee'
699
+ | 'math'
700
+ | 'menu'
701
+ | 'menubar'
702
+ | 'menuitem'
703
+ | 'menuitemcheckbox'
704
+ | 'menuitemradio'
705
+ | 'meter'
706
+ | 'navigation'
707
+ | 'none'
708
+ | 'note'
709
+ | 'option'
710
+ | 'presentation'
711
+ | 'progressbar'
712
+ | 'radio'
713
+ | 'radiogroup'
714
+ | 'region'
715
+ | 'row'
716
+ | 'rowgroup'
717
+ | 'rowheader'
718
+ | 'scrollbar'
719
+ | 'search'
720
+ | 'searchbox'
721
+ | 'separator'
722
+ | 'slider'
723
+ | 'spinbutton'
724
+ | 'status'
725
+ | 'switch'
726
+ | 'tab'
727
+ | 'table'
728
+ | 'tablist'
729
+ | 'tabpanel'
730
+ | 'term'
731
+ | 'textbox'
732
+ | 'timer'
733
+ | 'toolbar'
734
+ | 'tooltip'
735
+ | 'tree'
736
+ | 'treegrid'
737
+ | 'treeitem';
738
+ }
739
+
740
+ interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
741
+ accessKey?: string;
742
+ class?: string | undefined;
743
+ contenteditable?: boolean | 'plaintext-only' | 'inherit';
744
+ contextmenu?: string;
745
+ dir?: HTMLDir;
746
+ draggable?: boolean | 'false' | 'true';
747
+ hidden?: boolean | 'hidden' | 'until-found';
748
+ id?: string;
749
+ inert?: boolean;
750
+ lang?: string;
751
+ spellcheck?: boolean;
752
+ style?: CSSProperties | string;
753
+ tabindex?: number | string;
754
+ title?: string;
755
+ translate?: 'yes' | 'no';
756
+ about?: string;
757
+ datatype?: string;
758
+ inlist?: any;
759
+ popover?: boolean | 'manual' | 'auto';
760
+ prefix?: string;
761
+ property?: string;
762
+ resource?: string;
763
+ typeof?: string;
764
+ vocab?: string;
765
+ autocapitalize?: HTMLAutocapitalize;
766
+ slot?: string;
767
+ color?: string;
768
+ itemprop?: string;
769
+ itemscope?: boolean;
770
+ itemtype?: string;
771
+ itemid?: string;
772
+ itemref?: string;
773
+ part?: string;
774
+ exportparts?: string;
775
+ inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
776
+ contentEditable?: boolean | 'plaintext-only' | 'inherit';
777
+ contextMenu?: string;
778
+ tabIndex?: number | string;
779
+ autoCapitalize?: HTMLAutocapitalize;
780
+ itemProp?: string;
781
+ itemScope?: boolean;
782
+ itemType?: string;
783
+ itemId?: string;
784
+ itemRef?: string;
785
+ exportParts?: string;
786
+ inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
787
+ }
788
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
789
+ download?: any;
790
+ href?: string;
791
+ hreflang?: string;
792
+ media?: string;
793
+ ping?: string;
794
+ referrerpolicy?: HTMLReferrerPolicy;
795
+ rel?: string;
796
+ target?: string;
797
+ type?: string;
798
+ referrerPolicy?: HTMLReferrerPolicy;
799
+ }
800
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
801
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
802
+ alt?: string;
803
+ coords?: string;
804
+ download?: any;
805
+ href?: string;
806
+ hreflang?: string;
807
+ ping?: string;
808
+ referrerpolicy?: HTMLReferrerPolicy;
809
+ rel?: string;
810
+ shape?: 'rect' | 'circle' | 'poly' | 'default';
811
+ target?: string;
812
+ referrerPolicy?: HTMLReferrerPolicy;
813
+ }
814
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
815
+ href?: string;
816
+ target?: string;
817
+ }
818
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
819
+ cite?: string;
820
+ }
821
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
822
+ autofocus?: boolean;
823
+ disabled?: boolean;
824
+ form?: string;
825
+ formaction?: string | SerializableAttributeValue;
826
+ formenctype?: HTMLFormEncType;
827
+ formmethod?: HTMLFormMethod;
828
+ formnovalidate?: boolean;
829
+ formtarget?: string;
830
+ popovertarget?: string;
831
+ popovertargetaction?: 'hide' | 'show' | 'toggle';
832
+ name?: string;
833
+ type?: 'submit' | 'reset' | 'button';
834
+ value?: string;
835
+ formAction?: string | SerializableAttributeValue;
836
+ formEnctype?: HTMLFormEncType;
837
+ formMethod?: HTMLFormMethod;
838
+ formNoValidate?: boolean;
839
+ formTarget?: string;
840
+ popoverTarget?: string;
841
+ popoverTargetAction?: 'hide' | 'show' | 'toggle';
842
+ }
843
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
844
+ width?: number | string;
845
+ height?: number | string;
846
+ }
847
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
848
+ span?: number | string;
849
+ width?: number | string;
850
+ }
851
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
852
+ span?: number | string;
853
+ }
854
+ interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
855
+ value?: string | string[] | number;
856
+ }
857
+ interface DetailsHtmlAttributes<T> extends HTMLAttributes<T> {
858
+ open?: boolean;
859
+ onToggle?: EventHandlerUnion<T, Event>;
860
+ ontoggle?: EventHandlerUnion<T, Event>;
861
+ }
862
+ interface DialogHtmlAttributes<T> extends HTMLAttributes<T> {
863
+ open?: boolean;
864
+ onClose?: EventHandlerUnion<T, Event>;
865
+ onCancel?: EventHandlerUnion<T, Event>;
866
+ }
867
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
868
+ height?: number | string;
869
+ src?: string;
870
+ type?: string;
871
+ width?: number | string;
872
+ }
873
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
874
+ disabled?: boolean;
875
+ form?: string;
876
+ name?: string;
877
+ }
878
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
879
+ 'accept-charset'?: string;
880
+ 'action'?: string | SerializableAttributeValue;
881
+ 'autocomplete'?: string;
882
+ 'encoding'?: HTMLFormEncType;
883
+ 'enctype'?: HTMLFormEncType;
884
+ 'method'?: HTMLFormMethod;
885
+ 'name'?: string;
886
+ 'novalidate'?: boolean;
887
+ 'target'?: string;
888
+ 'noValidate'?: boolean;
889
+ }
890
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
891
+ allow?: string;
892
+ allowfullscreen?: boolean;
893
+ height?: number | string;
894
+ loading?: 'eager' | 'lazy';
895
+ name?: string;
896
+ referrerpolicy?: HTMLReferrerPolicy;
897
+ sandbox?: HTMLIframeSandbox | string;
898
+ src?: string;
899
+ srcdoc?: string;
900
+ width?: number | string;
901
+ referrerPolicy?: HTMLReferrerPolicy;
902
+ }
903
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
904
+ alt?: string;
905
+ crossorigin?: HTMLCrossorigin;
906
+ decoding?: 'sync' | 'async' | 'auto';
907
+ height?: number | string;
908
+ ismap?: boolean;
909
+ isMap?: boolean;
910
+ loading?: 'eager' | 'lazy';
911
+ referrerpolicy?: HTMLReferrerPolicy;
912
+ referrerPolicy?: HTMLReferrerPolicy;
913
+ sizes?: string;
914
+ src?: string;
915
+ srcset?: string;
916
+ srcSet?: string;
917
+ usemap?: string;
918
+ useMap?: string;
919
+ width?: number | string;
920
+ crossOrigin?: HTMLCrossorigin;
921
+ elementtiming?: string;
922
+ fetchpriority?: 'high' | 'low' | 'auto';
923
+ }
924
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
925
+ accept?: string;
926
+ alt?: string;
927
+ autocomplete?: string;
928
+ autocorrect?: 'on' | 'off';
929
+ autofocus?: boolean;
930
+ capture?: boolean | string;
931
+ checked?: boolean;
932
+ crossorigin?: HTMLCrossorigin;
933
+ disabled?: boolean;
934
+ enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
935
+ form?: string;
936
+ formaction?: string | SerializableAttributeValue;
937
+ formenctype?: HTMLFormEncType;
938
+ formmethod?: HTMLFormMethod;
939
+ formnovalidate?: boolean;
940
+ formtarget?: string;
941
+ height?: number | string;
942
+ incremental?: boolean;
943
+ list?: string;
944
+ max?: number | string;
945
+ maxlength?: number | string;
946
+ min?: number | string;
947
+ minlength?: number | string;
948
+ multiple?: boolean;
949
+ name?: string;
950
+ pattern?: string;
951
+ placeholder?: string;
952
+ readonly?: boolean;
953
+ results?: number;
954
+ required?: boolean;
955
+ size?: number | string;
956
+ src?: string;
957
+ step?: number | string;
958
+ type?: string;
959
+ value?: string | string[] | number;
960
+ width?: number | string;
961
+ crossOrigin?: HTMLCrossorigin;
962
+ formAction?: string | SerializableAttributeValue;
963
+ formEnctype?: HTMLFormEncType;
964
+ formMethod?: HTMLFormMethod;
965
+ formNoValidate?: boolean;
966
+ formTarget?: string;
967
+ maxLength?: number | string;
968
+ minLength?: number | string;
969
+ readOnly?: boolean;
970
+ }
971
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
972
+ cite?: string;
973
+ dateTime?: string;
974
+ }
975
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
976
+ autofocus?: boolean;
977
+ challenge?: string;
978
+ disabled?: boolean;
979
+ form?: string;
980
+ keytype?: string;
981
+ keyparams?: string;
982
+ name?: string;
983
+ }
984
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
985
+ for?: string;
986
+ form?: string;
987
+ }
988
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
989
+ value?: number | string;
990
+ }
991
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
992
+ as?: HTMLLinkAs;
993
+ crossorigin?: HTMLCrossorigin;
994
+ disabled?: boolean;
995
+ fetchpriority?: 'high' | 'low' | 'auto';
996
+ href?: string;
997
+ hreflang?: string;
998
+ imagesizes?: string;
999
+ imagesrcset?: string;
1000
+ integrity?: string;
1001
+ media?: string;
1002
+ referrerpolicy?: HTMLReferrerPolicy;
1003
+ rel?: string;
1004
+ sizes?: string;
1005
+ type?: string;
1006
+ crossOrigin?: HTMLCrossorigin;
1007
+ referrerPolicy?: HTMLReferrerPolicy;
1008
+ }
1009
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1010
+ name?: string;
1011
+ }
1012
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1013
+ autoplay?: boolean;
1014
+ controls?: boolean;
1015
+ crossorigin?: HTMLCrossorigin;
1016
+ loop?: boolean;
1017
+ mediagroup?: string;
1018
+ muted?: boolean;
1019
+ preload?: 'none' | 'metadata' | 'auto' | '';
1020
+ src?: string;
1021
+ crossOrigin?: HTMLCrossorigin;
1022
+ mediaGroup?: string;
1023
+ }
1024
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1025
+ label?: string;
1026
+ type?: 'context' | 'toolbar';
1027
+ }
1028
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1029
+ 'charset'?: string;
1030
+ 'content'?: string;
1031
+ 'http-equiv'?: string;
1032
+ 'name'?: string;
1033
+ 'media'?: string;
1034
+ }
1035
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1036
+ form?: string;
1037
+ high?: number | string;
1038
+ low?: number | string;
1039
+ max?: number | string;
1040
+ min?: number | string;
1041
+ optimum?: number | string;
1042
+ value?: string | string[] | number;
1043
+ }
1044
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1045
+ cite?: string;
1046
+ }
1047
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1048
+ data?: string;
1049
+ form?: string;
1050
+ height?: number | string;
1051
+ name?: string;
1052
+ type?: string;
1053
+ usemap?: string;
1054
+ width?: number | string;
1055
+ useMap?: string;
1056
+ }
1057
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1058
+ reversed?: boolean;
1059
+ start?: number | string;
1060
+ type?: '1' | 'a' | 'A' | 'i' | 'I';
1061
+ }
1062
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1063
+ disabled?: boolean;
1064
+ label?: string;
1065
+ }
1066
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1067
+ disabled?: boolean;
1068
+ label?: string;
1069
+ selected?: boolean;
1070
+ value?: string | string[] | number;
1071
+ }
1072
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1073
+ form?: string;
1074
+ for?: string;
1075
+ name?: string;
1076
+ }
1077
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1078
+ name?: string;
1079
+ value?: string | string[] | number;
1080
+ }
1081
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1082
+ max?: number | string;
1083
+ value?: string | string[] | number;
1084
+ }
1085
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1086
+ async?: boolean;
1087
+ charset?: string;
1088
+ crossorigin?: HTMLCrossorigin;
1089
+ defer?: boolean;
1090
+ integrity?: string;
1091
+ nomodule?: boolean;
1092
+ nonce?: string;
1093
+ referrerpolicy?: HTMLReferrerPolicy;
1094
+ src?: string;
1095
+ type?: string;
1096
+ crossOrigin?: HTMLCrossorigin;
1097
+ noModule?: boolean;
1098
+ referrerPolicy?: HTMLReferrerPolicy;
1099
+ }
1100
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1101
+ autocomplete?: string;
1102
+ autofocus?: boolean;
1103
+ disabled?: boolean;
1104
+ form?: string;
1105
+ multiple?: boolean;
1106
+ name?: string;
1107
+ required?: boolean;
1108
+ size?: number | string;
1109
+ value?: string | string[] | number;
1110
+ }
1111
+ interface HTMLSlotElementAttributes<T = HTMLSlotElement> extends HTMLAttributes<T> {
1112
+ name?: string;
1113
+ }
1114
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1115
+ media?: string;
1116
+ sizes?: string;
1117
+ src?: string;
1118
+ srcset?: string;
1119
+ type?: string;
1120
+ }
1121
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1122
+ media?: string;
1123
+ nonce?: string;
1124
+ scoped?: boolean;
1125
+ type?: string;
1126
+ }
1127
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1128
+ colspan?: number | string;
1129
+ headers?: string;
1130
+ rowspan?: number | string;
1131
+ colSpan?: number | string;
1132
+ rowSpan?: number | string;
1133
+ }
1134
+ interface TemplateHTMLAttributes<T extends HTMLTemplateElement> extends HTMLAttributes<T> {
1135
+ content?: DocumentFragment;
1136
+ }
1137
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1138
+ autocomplete?: string;
1139
+ autofocus?: boolean;
1140
+ cols?: number | string;
1141
+ dirname?: string;
1142
+ disabled?: boolean;
1143
+ enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
1144
+ form?: string;
1145
+ maxlength?: number | string;
1146
+ minlength?: number | string;
1147
+ name?: string;
1148
+ placeholder?: string;
1149
+ readonly?: boolean;
1150
+ required?: boolean;
1151
+ rows?: number | string;
1152
+ value?: string | string[] | number;
1153
+ wrap?: 'hard' | 'soft' | 'off';
1154
+ maxLength?: number | string;
1155
+ minLength?: number | string;
1156
+ readOnly?: boolean;
1157
+ }
1158
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1159
+ colspan?: number | string;
1160
+ headers?: string;
1161
+ rowspan?: number | string;
1162
+ colSpan?: number | string;
1163
+ rowSpan?: number | string;
1164
+ scope?: 'col' | 'row' | 'rowgroup' | 'colgroup';
1165
+ }
1166
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1167
+ datetime?: string;
1168
+ dateTime?: string;
1169
+ }
1170
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1171
+ default?: boolean;
1172
+ kind?: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
1173
+ label?: string;
1174
+ src?: string;
1175
+ srclang?: string;
1176
+ }
1177
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1178
+ height?: number | string;
1179
+ playsinline?: boolean;
1180
+ poster?: string;
1181
+ width?: number | string;
1182
+ }
1183
+ type SVGPreserveAspectRatio =
1184
+ | 'none'
1185
+ | 'xMinYMin'
1186
+ | 'xMidYMin'
1187
+ | 'xMaxYMin'
1188
+ | 'xMinYMid'
1189
+ | 'xMidYMid'
1190
+ | 'xMaxYMid'
1191
+ | 'xMinYMax'
1192
+ | 'xMidYMax'
1193
+ | 'xMaxYMax'
1194
+ | 'xMinYMin meet'
1195
+ | 'xMidYMin meet'
1196
+ | 'xMaxYMin meet'
1197
+ | 'xMinYMid meet'
1198
+ | 'xMidYMid meet'
1199
+ | 'xMaxYMid meet'
1200
+ | 'xMinYMax meet'
1201
+ | 'xMidYMax meet'
1202
+ | 'xMaxYMax meet'
1203
+ | 'xMinYMin slice'
1204
+ | 'xMidYMin slice'
1205
+ | 'xMaxYMin slice'
1206
+ | 'xMinYMid slice'
1207
+ | 'xMidYMid slice'
1208
+ | 'xMaxYMid slice'
1209
+ | 'xMinYMax slice'
1210
+ | 'xMidYMax slice'
1211
+ | 'xMaxYMax slice';
1212
+ type ImagePreserveAspectRatio =
1213
+ | SVGPreserveAspectRatio
1214
+ | 'defer none'
1215
+ | 'defer xMinYMin'
1216
+ | 'defer xMidYMin'
1217
+ | 'defer xMaxYMin'
1218
+ | 'defer xMinYMid'
1219
+ | 'defer xMidYMid'
1220
+ | 'defer xMaxYMid'
1221
+ | 'defer xMinYMax'
1222
+ | 'defer xMidYMax'
1223
+ | 'defer xMaxYMax'
1224
+ | 'defer xMinYMin meet'
1225
+ | 'defer xMidYMin meet'
1226
+ | 'defer xMaxYMin meet'
1227
+ | 'defer xMinYMid meet'
1228
+ | 'defer xMidYMid meet'
1229
+ | 'defer xMaxYMid meet'
1230
+ | 'defer xMinYMax meet'
1231
+ | 'defer xMidYMax meet'
1232
+ | 'defer xMaxYMax meet'
1233
+ | 'defer xMinYMin slice'
1234
+ | 'defer xMidYMin slice'
1235
+ | 'defer xMaxYMin slice'
1236
+ | 'defer xMinYMid slice'
1237
+ | 'defer xMidYMid slice'
1238
+ | 'defer xMaxYMid slice'
1239
+ | 'defer xMinYMax slice'
1240
+ | 'defer xMidYMax slice'
1241
+ | 'defer xMaxYMax slice';
1242
+ type SVGUnits = 'userSpaceOnUse' | 'objectBoundingBox';
1243
+ interface CoreSVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
1244
+ id?: string;
1245
+ lang?: string;
1246
+ tabIndex?: number | string;
1247
+ tabindex?: number | string;
1248
+ }
1249
+ interface StylableSVGAttributes {
1250
+ class?: string | undefined;
1251
+ style?: CSSProperties | string;
1252
+ }
1253
+ interface TransformableSVGAttributes {
1254
+ transform?: string;
1255
+ }
1256
+ interface ConditionalProcessingSVGAttributes {
1257
+ requiredExtensions?: string;
1258
+ requiredFeatures?: string;
1259
+ systemLanguage?: string;
1260
+ }
1261
+ interface ExternalResourceSVGAttributes {
1262
+ externalResourcesRequired?: 'true' | 'false';
1263
+ }
1264
+ interface AnimationTimingSVGAttributes {
1265
+ begin?: string;
1266
+ dur?: string;
1267
+ end?: string;
1268
+ min?: string;
1269
+ max?: string;
1270
+ restart?: 'always' | 'whenNotActive' | 'never';
1271
+ repeatCount?: number | 'indefinite';
1272
+ repeatDur?: string;
1273
+ fill?: 'freeze' | 'remove';
1274
+ }
1275
+ interface AnimationValueSVGAttributes {
1276
+ calcMode?: 'discrete' | 'linear' | 'paced' | 'spline';
1277
+ values?: string;
1278
+ keyTimes?: string;
1279
+ keySplines?: string;
1280
+ from?: number | string;
1281
+ to?: number | string;
1282
+ by?: number | string;
1283
+ }
1284
+ interface AnimationAdditionSVGAttributes {
1285
+ attributeName?: string;
1286
+ additive?: 'replace' | 'sum';
1287
+ accumulate?: 'none' | 'sum';
1288
+ }
1289
+ interface AnimationAttributeTargetSVGAttributes {
1290
+ attributeName?: string;
1291
+ attributeType?: 'CSS' | 'XML' | 'auto';
1292
+ }
1293
+ interface PresentationSVGAttributes {
1294
+ 'alignment-baseline'?:
1295
+ | 'auto'
1296
+ | 'baseline'
1297
+ | 'before-edge'
1298
+ | 'text-before-edge'
1299
+ | 'middle'
1300
+ | 'central'
1301
+ | 'after-edge'
1302
+ | 'text-after-edge'
1303
+ | 'ideographic'
1304
+ | 'alphabetic'
1305
+ | 'hanging'
1306
+ | 'mathematical'
1307
+ | 'inherit';
1308
+ 'baseline-shift'?: number | string;
1309
+ 'clip'?: string;
1310
+ 'clip-path'?: string;
1311
+ 'clip-rule'?: 'nonzero' | 'evenodd' | 'inherit';
1312
+ 'color'?: string;
1313
+ 'color-interpolation'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
1314
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
1315
+ 'color-profile'?: string;
1316
+ 'color-rendering'?: 'auto' | 'optimizeSpeed' | 'optimizeQuality' | 'inherit';
1317
+ 'cursor'?: string;
1318
+ 'direction'?: 'ltr' | 'rtl' | 'inherit';
1319
+ 'display'?: string;
1320
+ 'dominant-baseline'?:
1321
+ | 'auto'
1322
+ | 'text-bottom'
1323
+ | 'alphabetic'
1324
+ | 'ideographic'
1325
+ | 'middle'
1326
+ | 'central'
1327
+ | 'mathematical'
1328
+ | 'hanging'
1329
+ | 'text-top'
1330
+ | 'inherit';
1331
+ 'enable-background'?: string;
1332
+ 'fill'?: string;
1333
+ 'fill-opacity'?: number | string | 'inherit';
1334
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
1335
+ 'filter'?: string;
1336
+ 'flood-color'?: string;
1337
+ 'flood-opacity'?: number | string | 'inherit';
1338
+ 'font-family'?: string;
1339
+ 'font-size'?: string;
1340
+ 'font-size-adjust'?: number | string;
1341
+ 'font-stretch'?: string;
1342
+ 'font-style'?: 'normal' | 'italic' | 'oblique' | 'inherit';
1343
+ 'font-variant'?: string;
1344
+ 'font-weight'?: number | string;
1345
+ 'glyph-orientation-horizontal'?: string;
1346
+ 'glyph-orientation-vertical'?: string;
1347
+ 'image-rendering'?: 'auto' | 'optimizeQuality' | 'optimizeSpeed' | 'inherit';
1348
+ 'kerning'?: string;
1349
+ 'letter-spacing'?: number | string;
1350
+ 'lighting-color'?: string;
1351
+ 'marker-end'?: string;
1352
+ 'marker-mid'?: string;
1353
+ 'marker-start'?: string;
1354
+ 'mask'?: string;
1355
+ 'opacity'?: number | string | 'inherit';
1356
+ 'overflow'?: 'visible' | 'hidden' | 'scroll' | 'auto' | 'inherit';
1357
+ 'pathLength'?: string | number;
1358
+ 'pointer-events'?:
1359
+ | 'bounding-box'
1360
+ | 'visiblePainted'
1361
+ | 'visibleFill'
1362
+ | 'visibleStroke'
1363
+ | 'visible'
1364
+ | 'painted'
1365
+ | 'color'
1366
+ | 'fill'
1367
+ | 'stroke'
1368
+ | 'all'
1369
+ | 'none'
1370
+ | 'inherit';
1371
+ 'shape-rendering'?:
1372
+ | 'auto'
1373
+ | 'optimizeSpeed'
1374
+ | 'crispEdges'
1375
+ | 'geometricPrecision'
1376
+ | 'inherit';
1377
+ 'stop-color'?: string;
1378
+ 'stop-opacity'?: number | string | 'inherit';
1379
+ 'stroke'?: string;
1380
+ 'stroke-dasharray'?: string;
1381
+ 'stroke-dashoffset'?: number | string;
1382
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
1383
+ 'stroke-linejoin'?: 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round' | 'inherit';
1384
+ 'stroke-miterlimit'?: number | string | 'inherit';
1385
+ 'stroke-opacity'?: number | string | 'inherit';
1386
+ 'stroke-width'?: number | string;
1387
+ 'text-anchor'?: 'start' | 'middle' | 'end' | 'inherit';
1388
+ 'text-decoration'?: 'none' | 'underline' | 'overline' | 'line-through' | 'blink' | 'inherit';
1389
+ 'text-rendering'?:
1390
+ | 'auto'
1391
+ | 'optimizeSpeed'
1392
+ | 'optimizeLegibility'
1393
+ | 'geometricPrecision'
1394
+ | 'inherit';
1395
+ 'unicode-bidi'?: string;
1396
+ 'visibility'?: 'visible' | 'hidden' | 'collapse' | 'inherit';
1397
+ 'word-spacing'?: number | string;
1398
+ 'writing-mode'?: 'lr-tb' | 'rl-tb' | 'tb-rl' | 'lr' | 'rl' | 'tb' | 'inherit';
1399
+ }
1400
+ interface AnimationElementSVGAttributes<T>
1401
+ extends CoreSVGAttributes<T>,
1402
+ ExternalResourceSVGAttributes,
1403
+ ConditionalProcessingSVGAttributes {}
1404
+ interface ContainerElementSVGAttributes<T>
1405
+ extends CoreSVGAttributes<T>,
1406
+ ShapeElementSVGAttributes<T>,
1407
+ Pick<
1408
+ PresentationSVGAttributes,
1409
+ | 'clip-path'
1410
+ | 'mask'
1411
+ | 'cursor'
1412
+ | 'opacity'
1413
+ | 'filter'
1414
+ | 'enable-background'
1415
+ | 'color-interpolation'
1416
+ | 'color-rendering'
1417
+ > {}
1418
+ interface FilterPrimitiveElementSVGAttributes<T>
1419
+ extends CoreSVGAttributes<T>,
1420
+ Pick<PresentationSVGAttributes, 'color-interpolation-filters'> {
1421
+ x?: number | string;
1422
+ y?: number | string;
1423
+ width?: number | string;
1424
+ height?: number | string;
1425
+ result?: string;
1426
+ }
1427
+ interface SingleInputFilterSVGAttributes {
1428
+ in?: string;
1429
+ }
1430
+ interface DoubleInputFilterSVGAttributes {
1431
+ in?: string;
1432
+ in2?: string;
1433
+ }
1434
+ interface FitToViewBoxSVGAttributes {
1435
+ viewBox?: string;
1436
+ preserveAspectRatio?: SVGPreserveAspectRatio;
1437
+ }
1438
+ interface GradientElementSVGAttributes<T>
1439
+ extends CoreSVGAttributes<T>,
1440
+ ExternalResourceSVGAttributes,
1441
+ StylableSVGAttributes {
1442
+ gradientUnits?: SVGUnits;
1443
+ gradientTransform?: string;
1444
+ spreadMethod?: 'pad' | 'reflect' | 'repeat';
1445
+ href?: string;
1446
+ }
1447
+ interface GraphicsElementSVGAttributes<T>
1448
+ extends CoreSVGAttributes<T>,
1449
+ Pick<
1450
+ PresentationSVGAttributes,
1451
+ | 'clip-rule'
1452
+ | 'mask'
1453
+ | 'pointer-events'
1454
+ | 'cursor'
1455
+ | 'opacity'
1456
+ | 'filter'
1457
+ | 'display'
1458
+ | 'visibility'
1459
+ | 'color-interpolation'
1460
+ | 'color-rendering'
1461
+ > {}
1462
+ interface LightSourceElementSVGAttributes<T> extends CoreSVGAttributes<T> {}
1463
+ interface NewViewportSVGAttributes<T>
1464
+ extends CoreSVGAttributes<T>,
1465
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1466
+ viewBox?: string;
1467
+ }
1468
+ interface ShapeElementSVGAttributes<T>
1469
+ extends CoreSVGAttributes<T>,
1470
+ Pick<
1471
+ PresentationSVGAttributes,
1472
+ | 'color'
1473
+ | 'fill'
1474
+ | 'fill-rule'
1475
+ | 'fill-opacity'
1476
+ | 'stroke'
1477
+ | 'stroke-width'
1478
+ | 'stroke-linecap'
1479
+ | 'stroke-linejoin'
1480
+ | 'stroke-miterlimit'
1481
+ | 'stroke-dasharray'
1482
+ | 'stroke-dashoffset'
1483
+ | 'stroke-opacity'
1484
+ | 'shape-rendering'
1485
+ | 'pathLength'
1486
+ > {}
1487
+ interface TextContentElementSVGAttributes<T>
1488
+ extends CoreSVGAttributes<T>,
1489
+ Pick<
1490
+ PresentationSVGAttributes,
1491
+ | 'font-family'
1492
+ | 'font-style'
1493
+ | 'font-variant'
1494
+ | 'font-weight'
1495
+ | 'font-stretch'
1496
+ | 'font-size'
1497
+ | 'font-size-adjust'
1498
+ | 'kerning'
1499
+ | 'letter-spacing'
1500
+ | 'word-spacing'
1501
+ | 'text-decoration'
1502
+ | 'glyph-orientation-horizontal'
1503
+ | 'glyph-orientation-vertical'
1504
+ | 'direction'
1505
+ | 'unicode-bidi'
1506
+ | 'text-anchor'
1507
+ | 'dominant-baseline'
1508
+ | 'color'
1509
+ | 'fill'
1510
+ | 'fill-rule'
1511
+ | 'fill-opacity'
1512
+ | 'stroke'
1513
+ | 'stroke-width'
1514
+ | 'stroke-linecap'
1515
+ | 'stroke-linejoin'
1516
+ | 'stroke-miterlimit'
1517
+ | 'stroke-dasharray'
1518
+ | 'stroke-dashoffset'
1519
+ | 'stroke-opacity'
1520
+ > {}
1521
+ interface ZoomAndPanSVGAttributes {
1522
+ zoomAndPan?: 'disable' | 'magnify';
1523
+ }
1524
+ interface AnimateSVGAttributes<T>
1525
+ extends AnimationElementSVGAttributes<T>,
1526
+ AnimationAttributeTargetSVGAttributes,
1527
+ AnimationTimingSVGAttributes,
1528
+ AnimationValueSVGAttributes,
1529
+ AnimationAdditionSVGAttributes,
1530
+ Pick<PresentationSVGAttributes, 'color-interpolation' | 'color-rendering'> {}
1531
+ interface AnimateMotionSVGAttributes<T>
1532
+ extends AnimationElementSVGAttributes<T>,
1533
+ AnimationTimingSVGAttributes,
1534
+ AnimationValueSVGAttributes,
1535
+ AnimationAdditionSVGAttributes {
1536
+ path?: string;
1537
+ keyPoints?: string;
1538
+ rotate?: number | string | 'auto' | 'auto-reverse';
1539
+ origin?: 'default';
1540
+ }
1541
+ interface AnimateTransformSVGAttributes<T>
1542
+ extends AnimationElementSVGAttributes<T>,
1543
+ AnimationAttributeTargetSVGAttributes,
1544
+ AnimationTimingSVGAttributes,
1545
+ AnimationValueSVGAttributes,
1546
+ AnimationAdditionSVGAttributes {
1547
+ type?: 'translate' | 'scale' | 'rotate' | 'skewX' | 'skewY';
1548
+ }
1549
+ interface CircleSVGAttributes<T>
1550
+ extends GraphicsElementSVGAttributes<T>,
1551
+ ShapeElementSVGAttributes<T>,
1552
+ ConditionalProcessingSVGAttributes,
1553
+ StylableSVGAttributes,
1554
+ TransformableSVGAttributes {
1555
+ cx?: number | string;
1556
+ cy?: number | string;
1557
+ r?: number | string;
1558
+ }
1559
+ interface ClipPathSVGAttributes<T>
1560
+ extends CoreSVGAttributes<T>,
1561
+ ConditionalProcessingSVGAttributes,
1562
+ ExternalResourceSVGAttributes,
1563
+ StylableSVGAttributes,
1564
+ TransformableSVGAttributes,
1565
+ Pick<PresentationSVGAttributes, 'clip-path'> {
1566
+ clipPathUnits?: SVGUnits;
1567
+ }
1568
+ interface DefsSVGAttributes<T>
1569
+ extends ContainerElementSVGAttributes<T>,
1570
+ ConditionalProcessingSVGAttributes,
1571
+ ExternalResourceSVGAttributes,
1572
+ StylableSVGAttributes,
1573
+ TransformableSVGAttributes {}
1574
+ interface DescSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes {}
1575
+ interface EllipseSVGAttributes<T>
1576
+ extends GraphicsElementSVGAttributes<T>,
1577
+ ShapeElementSVGAttributes<T>,
1578
+ ConditionalProcessingSVGAttributes,
1579
+ ExternalResourceSVGAttributes,
1580
+ StylableSVGAttributes,
1581
+ TransformableSVGAttributes {
1582
+ cx?: number | string;
1583
+ cy?: number | string;
1584
+ rx?: number | string;
1585
+ ry?: number | string;
1586
+ }
1587
+ interface FeBlendSVGAttributes<T>
1588
+ extends FilterPrimitiveElementSVGAttributes<T>,
1589
+ DoubleInputFilterSVGAttributes,
1590
+ StylableSVGAttributes {
1591
+ mode?: 'normal' | 'multiply' | 'screen' | 'darken' | 'lighten';
1592
+ }
1593
+ interface FeColorMatrixSVGAttributes<T>
1594
+ extends FilterPrimitiveElementSVGAttributes<T>,
1595
+ SingleInputFilterSVGAttributes,
1596
+ StylableSVGAttributes {
1597
+ type?: 'matrix' | 'saturate' | 'hueRotate' | 'luminanceToAlpha';
1598
+ values?: string;
1599
+ }
1600
+ interface FeComponentTransferSVGAttributes<T>
1601
+ extends FilterPrimitiveElementSVGAttributes<T>,
1602
+ SingleInputFilterSVGAttributes,
1603
+ StylableSVGAttributes {}
1604
+ interface FeCompositeSVGAttributes<T>
1605
+ extends FilterPrimitiveElementSVGAttributes<T>,
1606
+ DoubleInputFilterSVGAttributes,
1607
+ StylableSVGAttributes {
1608
+ operator?: 'over' | 'in' | 'out' | 'atop' | 'xor' | 'arithmetic';
1609
+ k1?: number | string;
1610
+ k2?: number | string;
1611
+ k3?: number | string;
1612
+ k4?: number | string;
1613
+ }
1614
+ interface FeConvolveMatrixSVGAttributes<T>
1615
+ extends FilterPrimitiveElementSVGAttributes<T>,
1616
+ SingleInputFilterSVGAttributes,
1617
+ StylableSVGAttributes {
1618
+ order?: number | string;
1619
+ kernelMatrix?: string;
1620
+ divisor?: number | string;
1621
+ bias?: number | string;
1622
+ targetX?: number | string;
1623
+ targetY?: number | string;
1624
+ edgeMode?: 'duplicate' | 'wrap' | 'none';
1625
+ kernelUnitLength?: number | string;
1626
+ preserveAlpha?: 'true' | 'false';
1627
+ }
1628
+ interface FeDiffuseLightingSVGAttributes<T>
1629
+ extends FilterPrimitiveElementSVGAttributes<T>,
1630
+ SingleInputFilterSVGAttributes,
1631
+ StylableSVGAttributes,
1632
+ Pick<PresentationSVGAttributes, 'color' | 'lighting-color'> {
1633
+ surfaceScale?: number | string;
1634
+ diffuseConstant?: number | string;
1635
+ kernelUnitLength?: number | string;
1636
+ }
1637
+ interface FeDisplacementMapSVGAttributes<T>
1638
+ extends FilterPrimitiveElementSVGAttributes<T>,
1639
+ DoubleInputFilterSVGAttributes,
1640
+ StylableSVGAttributes {
1641
+ scale?: number | string;
1642
+ xChannelSelector?: 'R' | 'G' | 'B' | 'A';
1643
+ yChannelSelector?: 'R' | 'G' | 'B' | 'A';
1644
+ }
1645
+ interface FeDistantLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1646
+ azimuth?: number | string;
1647
+ elevation?: number | string;
1648
+ }
1649
+ interface FeDropShadowSVGAttributes<T>
1650
+ extends CoreSVGAttributes<T>,
1651
+ FilterPrimitiveElementSVGAttributes<T>,
1652
+ StylableSVGAttributes,
1653
+ Pick<PresentationSVGAttributes, 'color' | 'flood-color' | 'flood-opacity'> {
1654
+ dx?: number | string;
1655
+ dy?: number | string;
1656
+ stdDeviation?: number | string;
1657
+ }
1658
+ interface FeFloodSVGAttributes<T>
1659
+ extends FilterPrimitiveElementSVGAttributes<T>,
1660
+ StylableSVGAttributes,
1661
+ Pick<PresentationSVGAttributes, 'color' | 'flood-color' | 'flood-opacity'> {}
1662
+ interface FeFuncSVGAttributes<T> extends CoreSVGAttributes<T> {
1663
+ type?: 'identity' | 'table' | 'discrete' | 'linear' | 'gamma';
1664
+ tableValues?: string;
1665
+ slope?: number | string;
1666
+ intercept?: number | string;
1667
+ amplitude?: number | string;
1668
+ exponent?: number | string;
1669
+ offset?: number | string;
1670
+ }
1671
+ interface FeGaussianBlurSVGAttributes<T>
1672
+ extends FilterPrimitiveElementSVGAttributes<T>,
1673
+ SingleInputFilterSVGAttributes,
1674
+ StylableSVGAttributes {
1675
+ stdDeviation?: number | string;
1676
+ }
1677
+ interface FeImageSVGAttributes<T>
1678
+ extends FilterPrimitiveElementSVGAttributes<T>,
1679
+ ExternalResourceSVGAttributes,
1680
+ StylableSVGAttributes {
1681
+ preserveAspectRatio?: SVGPreserveAspectRatio;
1682
+ href?: string;
1683
+ }
1684
+ interface FeMergeSVGAttributes<T>
1685
+ extends FilterPrimitiveElementSVGAttributes<T>,
1686
+ StylableSVGAttributes {}
1687
+ interface FeMergeNodeSVGAttributes<T>
1688
+ extends CoreSVGAttributes<T>,
1689
+ SingleInputFilterSVGAttributes {}
1690
+ interface FeMorphologySVGAttributes<T>
1691
+ extends FilterPrimitiveElementSVGAttributes<T>,
1692
+ SingleInputFilterSVGAttributes,
1693
+ StylableSVGAttributes {
1694
+ operator?: 'erode' | 'dilate';
1695
+ radius?: number | string;
1696
+ }
1697
+ interface FeOffsetSVGAttributes<T>
1698
+ extends FilterPrimitiveElementSVGAttributes<T>,
1699
+ SingleInputFilterSVGAttributes,
1700
+ StylableSVGAttributes {
1701
+ dx?: number | string;
1702
+ dy?: number | string;
1703
+ }
1704
+ interface FePointLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1705
+ x?: number | string;
1706
+ y?: number | string;
1707
+ z?: number | string;
1708
+ }
1709
+ interface FeSpecularLightingSVGAttributes<T>
1710
+ extends FilterPrimitiveElementSVGAttributes<T>,
1711
+ SingleInputFilterSVGAttributes,
1712
+ StylableSVGAttributes,
1713
+ Pick<PresentationSVGAttributes, 'color' | 'lighting-color'> {
1714
+ surfaceScale?: string;
1715
+ specularConstant?: string;
1716
+ specularExponent?: string;
1717
+ kernelUnitLength?: number | string;
1718
+ }
1719
+ interface FeSpotLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1720
+ x?: number | string;
1721
+ y?: number | string;
1722
+ z?: number | string;
1723
+ pointsAtX?: number | string;
1724
+ pointsAtY?: number | string;
1725
+ pointsAtZ?: number | string;
1726
+ specularExponent?: number | string;
1727
+ limitingConeAngle?: number | string;
1728
+ }
1729
+ interface FeTileSVGAttributes<T>
1730
+ extends FilterPrimitiveElementSVGAttributes<T>,
1731
+ SingleInputFilterSVGAttributes,
1732
+ StylableSVGAttributes {}
1733
+ interface FeTurbulanceSVGAttributes<T>
1734
+ extends FilterPrimitiveElementSVGAttributes<T>,
1735
+ StylableSVGAttributes {
1736
+ baseFrequency?: number | string;
1737
+ numOctaves?: number | string;
1738
+ seed?: number | string;
1739
+ stitchTiles?: 'stitch' | 'noStitch';
1740
+ type?: 'fractalNoise' | 'turbulence';
1741
+ }
1742
+ interface FilterSVGAttributes<T>
1743
+ extends CoreSVGAttributes<T>,
1744
+ ExternalResourceSVGAttributes,
1745
+ StylableSVGAttributes {
1746
+ filterUnits?: SVGUnits;
1747
+ primitiveUnits?: SVGUnits;
1748
+ x?: number | string;
1749
+ y?: number | string;
1750
+ width?: number | string;
1751
+ height?: number | string;
1752
+ filterRes?: number | string;
1753
+ }
1754
+ interface ForeignObjectSVGAttributes<T>
1755
+ extends NewViewportSVGAttributes<T>,
1756
+ ConditionalProcessingSVGAttributes,
1757
+ ExternalResourceSVGAttributes,
1758
+ StylableSVGAttributes,
1759
+ TransformableSVGAttributes,
1760
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {
1761
+ x?: number | string;
1762
+ y?: number | string;
1763
+ width?: number | string;
1764
+ height?: number | string;
1765
+ }
1766
+ interface GSVGAttributes<T>
1767
+ extends ContainerElementSVGAttributes<T>,
1768
+ ConditionalProcessingSVGAttributes,
1769
+ ExternalResourceSVGAttributes,
1770
+ StylableSVGAttributes,
1771
+ TransformableSVGAttributes,
1772
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {}
1773
+ interface ImageSVGAttributes<T>
1774
+ extends NewViewportSVGAttributes<T>,
1775
+ GraphicsElementSVGAttributes<T>,
1776
+ ConditionalProcessingSVGAttributes,
1777
+ StylableSVGAttributes,
1778
+ TransformableSVGAttributes,
1779
+ Pick<PresentationSVGAttributes, 'color-profile' | 'image-rendering'> {
1780
+ x?: number | string;
1781
+ y?: number | string;
1782
+ width?: number | string;
1783
+ height?: number | string;
1784
+ preserveAspectRatio?: ImagePreserveAspectRatio;
1785
+ href?: string;
1786
+ }
1787
+ interface LineSVGAttributes<T>
1788
+ extends GraphicsElementSVGAttributes<T>,
1789
+ ShapeElementSVGAttributes<T>,
1790
+ ConditionalProcessingSVGAttributes,
1791
+ ExternalResourceSVGAttributes,
1792
+ StylableSVGAttributes,
1793
+ TransformableSVGAttributes,
1794
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1795
+ x1?: number | string;
1796
+ y1?: number | string;
1797
+ x2?: number | string;
1798
+ y2?: number | string;
1799
+ }
1800
+ interface LinearGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1801
+ x1?: number | string;
1802
+ x2?: number | string;
1803
+ y1?: number | string;
1804
+ y2?: number | string;
1805
+ }
1806
+ interface MarkerSVGAttributes<T>
1807
+ extends ContainerElementSVGAttributes<T>,
1808
+ ExternalResourceSVGAttributes,
1809
+ StylableSVGAttributes,
1810
+ FitToViewBoxSVGAttributes,
1811
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1812
+ markerUnits?: 'strokeWidth' | 'userSpaceOnUse';
1813
+ refX?: number | string;
1814
+ refY?: number | string;
1815
+ markerWidth?: number | string;
1816
+ markerHeight?: number | string;
1817
+ orient?: string;
1818
+ }
1819
+ interface MaskSVGAttributes<T>
1820
+ extends Omit<ContainerElementSVGAttributes<T>, 'opacity' | 'filter'>,
1821
+ ConditionalProcessingSVGAttributes,
1822
+ ExternalResourceSVGAttributes,
1823
+ StylableSVGAttributes {
1824
+ maskUnits?: SVGUnits;
1825
+ maskContentUnits?: SVGUnits;
1826
+ x?: number | string;
1827
+ y?: number | string;
1828
+ width?: number | string;
1829
+ height?: number | string;
1830
+ }
1831
+ interface MetadataSVGAttributes<T> extends CoreSVGAttributes<T> {}
1832
+ interface MPathSVGAttributes<T> extends CoreSVGAttributes<T> {}
1833
+ interface PathSVGAttributes<T>
1834
+ extends GraphicsElementSVGAttributes<T>,
1835
+ ShapeElementSVGAttributes<T>,
1836
+ ConditionalProcessingSVGAttributes,
1837
+ ExternalResourceSVGAttributes,
1838
+ StylableSVGAttributes,
1839
+ TransformableSVGAttributes,
1840
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1841
+ d?: string;
1842
+ pathLength?: number | string;
1843
+ }
1844
+ interface PatternSVGAttributes<T>
1845
+ extends ContainerElementSVGAttributes<T>,
1846
+ ConditionalProcessingSVGAttributes,
1847
+ ExternalResourceSVGAttributes,
1848
+ StylableSVGAttributes,
1849
+ FitToViewBoxSVGAttributes,
1850
+ Pick<PresentationSVGAttributes, 'overflow' | 'clip'> {
1851
+ x?: number | string;
1852
+ y?: number | string;
1853
+ width?: number | string;
1854
+ height?: number | string;
1855
+ patternUnits?: SVGUnits;
1856
+ patternContentUnits?: SVGUnits;
1857
+ patternTransform?: string;
1858
+ href?: string;
1859
+ }
1860
+ interface PolygonSVGAttributes<T>
1861
+ extends GraphicsElementSVGAttributes<T>,
1862
+ ShapeElementSVGAttributes<T>,
1863
+ ConditionalProcessingSVGAttributes,
1864
+ ExternalResourceSVGAttributes,
1865
+ StylableSVGAttributes,
1866
+ TransformableSVGAttributes,
1867
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1868
+ points?: string;
1869
+ }
1870
+ interface PolylineSVGAttributes<T>
1871
+ extends GraphicsElementSVGAttributes<T>,
1872
+ ShapeElementSVGAttributes<T>,
1873
+ ConditionalProcessingSVGAttributes,
1874
+ ExternalResourceSVGAttributes,
1875
+ StylableSVGAttributes,
1876
+ TransformableSVGAttributes,
1877
+ Pick<PresentationSVGAttributes, 'marker-start' | 'marker-mid' | 'marker-end'> {
1878
+ points?: string;
1879
+ }
1880
+ interface RadialGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1881
+ cx?: number | string;
1882
+ cy?: number | string;
1883
+ r?: number | string;
1884
+ fx?: number | string;
1885
+ fy?: number | string;
1886
+ }
1887
+ interface RectSVGAttributes<T>
1888
+ extends GraphicsElementSVGAttributes<T>,
1889
+ ShapeElementSVGAttributes<T>,
1890
+ ConditionalProcessingSVGAttributes,
1891
+ ExternalResourceSVGAttributes,
1892
+ StylableSVGAttributes,
1893
+ TransformableSVGAttributes {
1894
+ x?: number | string;
1895
+ y?: number | string;
1896
+ width?: number | string;
1897
+ height?: number | string;
1898
+ rx?: number | string;
1899
+ ry?: number | string;
1900
+ }
1901
+ interface SetSVGAttributes<T>
1902
+ extends CoreSVGAttributes<T>,
1903
+ StylableSVGAttributes,
1904
+ AnimationTimingSVGAttributes {}
1905
+ interface StopSVGAttributes<T>
1906
+ extends CoreSVGAttributes<T>,
1907
+ StylableSVGAttributes,
1908
+ Pick<PresentationSVGAttributes, 'color' | 'stop-color' | 'stop-opacity'> {
1909
+ offset?: number | string;
1910
+ }
1911
+ interface SvgSVGAttributes<T>
1912
+ extends ContainerElementSVGAttributes<T>,
1913
+ NewViewportSVGAttributes<T>,
1914
+ ConditionalProcessingSVGAttributes,
1915
+ ExternalResourceSVGAttributes,
1916
+ StylableSVGAttributes,
1917
+ FitToViewBoxSVGAttributes,
1918
+ ZoomAndPanSVGAttributes,
1919
+ PresentationSVGAttributes {
1920
+ version?: string;
1921
+ baseProfile?: string;
1922
+ x?: number | string;
1923
+ y?: number | string;
1924
+ width?: number | string;
1925
+ height?: number | string;
1926
+ contentScriptType?: string;
1927
+ contentStyleType?: string;
1928
+ xmlns?: string;
1929
+ }
1930
+ interface SwitchSVGAttributes<T>
1931
+ extends ContainerElementSVGAttributes<T>,
1932
+ ConditionalProcessingSVGAttributes,
1933
+ ExternalResourceSVGAttributes,
1934
+ StylableSVGAttributes,
1935
+ TransformableSVGAttributes,
1936
+ Pick<PresentationSVGAttributes, 'display' | 'visibility'> {}
1937
+ interface SymbolSVGAttributes<T>
1938
+ extends ContainerElementSVGAttributes<T>,
1939
+ NewViewportSVGAttributes<T>,
1940
+ ExternalResourceSVGAttributes,
1941
+ StylableSVGAttributes,
1942
+ FitToViewBoxSVGAttributes {
1943
+ width?: number | string;
1944
+ height?: number | string;
1945
+ preserveAspectRatio?: SVGPreserveAspectRatio;
1946
+ refX?: number | string;
1947
+ refY?: number | string;
1948
+ viewBox?: string;
1949
+ x?: number | string;
1950
+ y?: number | string;
1951
+ }
1952
+ interface TextSVGAttributes<T>
1953
+ extends TextContentElementSVGAttributes<T>,
1954
+ GraphicsElementSVGAttributes<T>,
1955
+ ConditionalProcessingSVGAttributes,
1956
+ ExternalResourceSVGAttributes,
1957
+ StylableSVGAttributes,
1958
+ TransformableSVGAttributes,
1959
+ Pick<PresentationSVGAttributes, 'writing-mode' | 'text-rendering'> {
1960
+ x?: number | string;
1961
+ y?: number | string;
1962
+ dx?: number | string;
1963
+ dy?: number | string;
1964
+ rotate?: number | string;
1965
+ textLength?: number | string;
1966
+ lengthAdjust?: 'spacing' | 'spacingAndGlyphs';
1967
+ }
1968
+ interface TextPathSVGAttributes<T>
1969
+ extends TextContentElementSVGAttributes<T>,
1970
+ ConditionalProcessingSVGAttributes,
1971
+ ExternalResourceSVGAttributes,
1972
+ StylableSVGAttributes,
1973
+ Pick<
1974
+ PresentationSVGAttributes,
1975
+ 'alignment-baseline' | 'baseline-shift' | 'display' | 'visibility'
1976
+ > {
1977
+ startOffset?: number | string;
1978
+ method?: 'align' | 'stretch';
1979
+ spacing?: 'auto' | 'exact';
1980
+ href?: string;
1981
+ }
1982
+ interface TSpanSVGAttributes<T>
1983
+ extends TextContentElementSVGAttributes<T>,
1984
+ ConditionalProcessingSVGAttributes,
1985
+ ExternalResourceSVGAttributes,
1986
+ StylableSVGAttributes,
1987
+ Pick<
1988
+ PresentationSVGAttributes,
1989
+ 'alignment-baseline' | 'baseline-shift' | 'display' | 'visibility'
1990
+ > {
1991
+ x?: number | string;
1992
+ y?: number | string;
1993
+ dx?: number | string;
1994
+ dy?: number | string;
1995
+ rotate?: number | string;
1996
+ textLength?: number | string;
1997
+ lengthAdjust?: 'spacing' | 'spacingAndGlyphs';
1998
+ }
1999
+ interface UseSVGAttributes<T>
2000
+ extends GraphicsElementSVGAttributes<T>,
2001
+ ConditionalProcessingSVGAttributes,
2002
+ ExternalResourceSVGAttributes,
2003
+ StylableSVGAttributes,
2004
+ TransformableSVGAttributes {
2005
+ x?: number | string;
2006
+ y?: number | string;
2007
+ width?: number | string;
2008
+ height?: number | string;
2009
+ href?: string;
2010
+ }
2011
+ interface ViewSVGAttributes<T>
2012
+ extends CoreSVGAttributes<T>,
2013
+ ExternalResourceSVGAttributes,
2014
+ FitToViewBoxSVGAttributes,
2015
+ ZoomAndPanSVGAttributes {
2016
+ viewTarget?: string;
2017
+ }
2018
+ /**
2019
+ * @type {HTMLElementTagNameMap}
2020
+ */
2021
+ interface HTMLElementTags {
2022
+ a: AnchorHTMLAttributes<HTMLAnchorElement>;
2023
+ abbr: HTMLAttributes<HTMLElement>;
2024
+ address: HTMLAttributes<HTMLElement>;
2025
+ area: AreaHTMLAttributes<HTMLAreaElement>;
2026
+ article: HTMLAttributes<HTMLElement>;
2027
+ aside: HTMLAttributes<HTMLElement>;
2028
+ audio: AudioHTMLAttributes<HTMLAudioElement>;
2029
+ b: HTMLAttributes<HTMLElement>;
2030
+ base: BaseHTMLAttributes<HTMLBaseElement>;
2031
+ bdi: HTMLAttributes<HTMLElement>;
2032
+ bdo: HTMLAttributes<HTMLElement>;
2033
+ blockquote: BlockquoteHTMLAttributes<HTMLElement>;
2034
+ body: HTMLAttributes<HTMLBodyElement>;
2035
+ br: HTMLAttributes<HTMLBRElement>;
2036
+ button: ButtonHTMLAttributes<HTMLButtonElement>;
2037
+ canvas: CanvasHTMLAttributes<HTMLCanvasElement>;
2038
+ caption: HTMLAttributes<HTMLElement>;
2039
+ cite: HTMLAttributes<HTMLElement>;
2040
+ code: HTMLAttributes<HTMLElement>;
2041
+ col: ColHTMLAttributes<HTMLTableColElement>;
2042
+ colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
2043
+ data: DataHTMLAttributes<HTMLElement>;
2044
+ datalist: HTMLAttributes<HTMLDataListElement>;
2045
+ dd: HTMLAttributes<HTMLElement>;
2046
+ del: HTMLAttributes<HTMLElement>;
2047
+ details: DetailsHtmlAttributes<HTMLDetailsElement>;
2048
+ dfn: HTMLAttributes<HTMLElement>;
2049
+ dialog: DialogHtmlAttributes<HTMLDialogElement>;
2050
+ div: HTMLAttributes<HTMLDivElement>;
2051
+ dl: HTMLAttributes<HTMLDListElement>;
2052
+ dt: HTMLAttributes<HTMLElement>;
2053
+ em: HTMLAttributes<HTMLElement>;
2054
+ embed: EmbedHTMLAttributes<HTMLEmbedElement>;
2055
+ fieldset: FieldsetHTMLAttributes<HTMLFieldSetElement>;
2056
+ figcaption: HTMLAttributes<HTMLElement>;
2057
+ figure: HTMLAttributes<HTMLElement>;
2058
+ footer: HTMLAttributes<HTMLElement>;
2059
+ form: FormHTMLAttributes<HTMLFormElement>;
2060
+ h1: HTMLAttributes<HTMLHeadingElement>;
2061
+ h2: HTMLAttributes<HTMLHeadingElement>;
2062
+ h3: HTMLAttributes<HTMLHeadingElement>;
2063
+ h4: HTMLAttributes<HTMLHeadingElement>;
2064
+ h5: HTMLAttributes<HTMLHeadingElement>;
2065
+ h6: HTMLAttributes<HTMLHeadingElement>;
2066
+ head: HTMLAttributes<HTMLHeadElement>;
2067
+ header: HTMLAttributes<HTMLElement>;
2068
+ hgroup: HTMLAttributes<HTMLElement>;
2069
+ hr: HTMLAttributes<HTMLHRElement>;
2070
+ html: HTMLAttributes<HTMLHtmlElement>;
2071
+ i: HTMLAttributes<HTMLElement>;
2072
+ iframe: IframeHTMLAttributes<HTMLIFrameElement>;
2073
+ img: ImgHTMLAttributes<HTMLImageElement>;
2074
+ input: InputHTMLAttributes<HTMLInputElement>;
2075
+ ins: InsHTMLAttributes<HTMLModElement>;
2076
+ kbd: HTMLAttributes<HTMLElement>;
2077
+ label: LabelHTMLAttributes<HTMLLabelElement>;
2078
+ legend: HTMLAttributes<HTMLLegendElement>;
2079
+ li: LiHTMLAttributes<HTMLLIElement>;
2080
+ link: LinkHTMLAttributes<HTMLLinkElement>;
2081
+ main: HTMLAttributes<HTMLElement>;
2082
+ map: MapHTMLAttributes<HTMLMapElement>;
2083
+ mark: HTMLAttributes<HTMLElement>;
2084
+ menu: MenuHTMLAttributes<HTMLElement>;
2085
+ meta: MetaHTMLAttributes<HTMLMetaElement>;
2086
+ meter: MeterHTMLAttributes<HTMLElement>;
2087
+ nav: HTMLAttributes<HTMLElement>;
2088
+ noscript: HTMLAttributes<HTMLElement>;
2089
+ object: ObjectHTMLAttributes<HTMLObjectElement>;
2090
+ ol: OlHTMLAttributes<HTMLOListElement>;
2091
+ optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
2092
+ option: OptionHTMLAttributes<HTMLOptionElement>;
2093
+ output: OutputHTMLAttributes<HTMLElement>;
2094
+ p: HTMLAttributes<HTMLParagraphElement>;
2095
+ picture: HTMLAttributes<HTMLElement>;
2096
+ pre: HTMLAttributes<HTMLPreElement>;
2097
+ progress: ProgressHTMLAttributes<HTMLProgressElement>;
2098
+ q: QuoteHTMLAttributes<HTMLQuoteElement>;
2099
+ rp: HTMLAttributes<HTMLElement>;
2100
+ rt: HTMLAttributes<HTMLElement>;
2101
+ ruby: HTMLAttributes<HTMLElement>;
2102
+ s: HTMLAttributes<HTMLElement>;
2103
+ samp: HTMLAttributes<HTMLElement>;
2104
+ script: ScriptHTMLAttributes<HTMLScriptElement>;
2105
+ search: HTMLAttributes<HTMLElement>;
2106
+ section: HTMLAttributes<HTMLElement>;
2107
+ select: SelectHTMLAttributes<HTMLSelectElement>;
2108
+ slot: HTMLSlotElementAttributes;
2109
+ small: HTMLAttributes<HTMLElement>;
2110
+ source: SourceHTMLAttributes<HTMLSourceElement>;
2111
+ span: HTMLAttributes<HTMLSpanElement>;
2112
+ strong: HTMLAttributes<HTMLElement>;
2113
+ style: StyleHTMLAttributes<HTMLStyleElement>;
2114
+ sub: HTMLAttributes<HTMLElement>;
2115
+ summary: HTMLAttributes<HTMLElement>;
2116
+ sup: HTMLAttributes<HTMLElement>;
2117
+ table: HTMLAttributes<HTMLTableElement>;
2118
+ tbody: HTMLAttributes<HTMLTableSectionElement>;
2119
+ td: TdHTMLAttributes<HTMLTableCellElement>;
2120
+ template: TemplateHTMLAttributes<HTMLTemplateElement>;
2121
+ textarea: TextareaHTMLAttributes<HTMLTextAreaElement>;
2122
+ tfoot: HTMLAttributes<HTMLTableSectionElement>;
2123
+ th: ThHTMLAttributes<HTMLTableCellElement>;
2124
+ thead: HTMLAttributes<HTMLTableSectionElement>;
2125
+ time: TimeHTMLAttributes<HTMLElement>;
2126
+ title: HTMLAttributes<HTMLTitleElement>;
2127
+ tr: HTMLAttributes<HTMLTableRowElement>;
2128
+ track: TrackHTMLAttributes<HTMLTrackElement>;
2129
+ u: HTMLAttributes<HTMLElement>;
2130
+ ul: HTMLAttributes<HTMLUListElement>;
2131
+ var: HTMLAttributes<HTMLElement>;
2132
+ video: VideoHTMLAttributes<HTMLVideoElement>;
2133
+ wbr: HTMLAttributes<HTMLElement>;
2134
+ }
2135
+ /**
2136
+ * @type {HTMLElementDeprecatedTagNameMap}
2137
+ */
2138
+ interface HTMLElementDeprecatedTags {
2139
+ big: HTMLAttributes<HTMLElement>;
2140
+ keygen: KeygenHTMLAttributes<HTMLElement>;
2141
+ menuitem: HTMLAttributes<HTMLElement>;
2142
+ noindex: HTMLAttributes<HTMLElement>;
2143
+ param: ParamHTMLAttributes<HTMLParamElement>;
2144
+ }
2145
+ /**
2146
+ * @type {SVGElementTagNameMap}
2147
+ */
2148
+ interface SVGElementTags {
2149
+ animate: AnimateSVGAttributes<SVGAnimateElement>;
2150
+ animateMotion: AnimateMotionSVGAttributes<SVGAnimateMotionElement>;
2151
+ animateTransform: AnimateTransformSVGAttributes<SVGAnimateTransformElement>;
2152
+ circle: CircleSVGAttributes<SVGCircleElement>;
2153
+ clipPath: ClipPathSVGAttributes<SVGClipPathElement>;
2154
+ defs: DefsSVGAttributes<SVGDefsElement>;
2155
+ desc: DescSVGAttributes<SVGDescElement>;
2156
+ ellipse: EllipseSVGAttributes<SVGEllipseElement>;
2157
+ feBlend: FeBlendSVGAttributes<SVGFEBlendElement>;
2158
+ feColorMatrix: FeColorMatrixSVGAttributes<SVGFEColorMatrixElement>;
2159
+ feComponentTransfer: FeComponentTransferSVGAttributes<SVGFEComponentTransferElement>;
2160
+ feComposite: FeCompositeSVGAttributes<SVGFECompositeElement>;
2161
+ feConvolveMatrix: FeConvolveMatrixSVGAttributes<SVGFEConvolveMatrixElement>;
2162
+ feDiffuseLighting: FeDiffuseLightingSVGAttributes<SVGFEDiffuseLightingElement>;
2163
+ feDisplacementMap: FeDisplacementMapSVGAttributes<SVGFEDisplacementMapElement>;
2164
+ feDistantLight: FeDistantLightSVGAttributes<SVGFEDistantLightElement>;
2165
+ feDropShadow: FeDropShadowSVGAttributes<SVGFEDropShadowElement>;
2166
+ feFlood: FeFloodSVGAttributes<SVGFEFloodElement>;
2167
+ feFuncA: FeFuncSVGAttributes<SVGFEFuncAElement>;
2168
+ feFuncB: FeFuncSVGAttributes<SVGFEFuncBElement>;
2169
+ feFuncG: FeFuncSVGAttributes<SVGFEFuncGElement>;
2170
+ feFuncR: FeFuncSVGAttributes<SVGFEFuncRElement>;
2171
+ feGaussianBlur: FeGaussianBlurSVGAttributes<SVGFEGaussianBlurElement>;
2172
+ feImage: FeImageSVGAttributes<SVGFEImageElement>;
2173
+ feMerge: FeMergeSVGAttributes<SVGFEMergeElement>;
2174
+ feMergeNode: FeMergeNodeSVGAttributes<SVGFEMergeNodeElement>;
2175
+ feMorphology: FeMorphologySVGAttributes<SVGFEMorphologyElement>;
2176
+ feOffset: FeOffsetSVGAttributes<SVGFEOffsetElement>;
2177
+ fePointLight: FePointLightSVGAttributes<SVGFEPointLightElement>;
2178
+ feSpecularLighting: FeSpecularLightingSVGAttributes<SVGFESpecularLightingElement>;
2179
+ feSpotLight: FeSpotLightSVGAttributes<SVGFESpotLightElement>;
2180
+ feTile: FeTileSVGAttributes<SVGFETileElement>;
2181
+ feTurbulence: FeTurbulanceSVGAttributes<SVGFETurbulenceElement>;
2182
+ filter: FilterSVGAttributes<SVGFilterElement>;
2183
+ foreignObject: ForeignObjectSVGAttributes<SVGForeignObjectElement>;
2184
+ g: GSVGAttributes<SVGGElement>;
2185
+ image: ImageSVGAttributes<SVGImageElement>;
2186
+ line: LineSVGAttributes<SVGLineElement>;
2187
+ linearGradient: LinearGradientSVGAttributes<SVGLinearGradientElement>;
2188
+ marker: MarkerSVGAttributes<SVGMarkerElement>;
2189
+ mask: MaskSVGAttributes<SVGMaskElement>;
2190
+ metadata: MetadataSVGAttributes<SVGMetadataElement>;
2191
+ mpath: MPathSVGAttributes<SVGMPathElement>;
2192
+ path: PathSVGAttributes<SVGPathElement>;
2193
+ pattern: PatternSVGAttributes<SVGPatternElement>;
2194
+ polygon: PolygonSVGAttributes<SVGPolygonElement>;
2195
+ polyline: PolylineSVGAttributes<SVGPolylineElement>;
2196
+ radialGradient: RadialGradientSVGAttributes<SVGRadialGradientElement>;
2197
+ rect: RectSVGAttributes<SVGRectElement>;
2198
+ set: SetSVGAttributes<SVGSetElement>;
2199
+ stop: StopSVGAttributes<SVGStopElement>;
2200
+ svg: SvgSVGAttributes<SVGSVGElement>;
2201
+ switch: SwitchSVGAttributes<SVGSwitchElement>;
2202
+ symbol: SymbolSVGAttributes<SVGSymbolElement>;
2203
+ text: TextSVGAttributes<SVGTextElement>;
2204
+ textPath: TextPathSVGAttributes<SVGTextPathElement>;
2205
+ tspan: TSpanSVGAttributes<SVGTSpanElement>;
2206
+ use: UseSVGAttributes<SVGUseElement>;
2207
+ view: ViewSVGAttributes<SVGViewElement>;
2208
+ }
2209
+ interface IntrinsicElements
2210
+ extends HTMLElementTags,
2211
+ HTMLElementDeprecatedTags,
2212
+ SVGElementTags {}
2213
+ }
2214
+ }
2215
+
2216
+ declare class TemplateNode$1 implements JSX.Element {
2217
+ template: HTMLTemplateElement;
2218
+ props: Record<string, unknown>;
2219
+ treeMap: Map<number, Node>;
2220
+ constructor(template: HTMLTemplateElement, props: Record<string, unknown>);
2221
+ mounted: boolean;
2222
+ nodes: Node[];
2223
+ provides: Record<string, unknown>;
2224
+ trackMap: Map<string, NodeTrack>;
2225
+ get firstChild(): Node | null;
2226
+ get isConnected(): boolean;
2227
+ addEventListener(): void;
2228
+ removeEventListener(): void;
2229
+ unmount(): void;
2230
+ parent: Node | null;
2231
+ mount(parent: Node, before?: Node | null): Node[];
2232
+ mapNodeTree(parent: Node, tree: Node): void;
2233
+ patchNodes(props: any): void;
2234
+ getNodeTrack(trackKey: string, trackLastNodes?: boolean, isRoot?: boolean): NodeTrack;
2235
+ inheritNode(node: TemplateNode$1): void;
2236
+ patchNode(key: any, node: any, props: any, isRoot: any): void;
2237
+ }
2238
+
2239
+ type Hook = 'mounted' | 'destroy';
2240
+ declare class ComponentNode$1 implements JSX.Element {
2241
+ template: EssorComponent;
2242
+ props: Record<string, any>;
2243
+ constructor(template: EssorComponent, props: Record<string, any>);
2244
+ addEventListener(): void;
2245
+ removeEventListener(): void;
2246
+ static ref: ComponentNode$1 | null;
2247
+ static context: Record<symbol, Signal$1<any>>;
2248
+ id?: string;
2249
+ private proxyProps;
2250
+ context: Record<symbol | string | number, any>;
2251
+ emitter: Set<Function>;
2252
+ mounted: boolean;
2253
+ rootNode: TemplateNode$1 | null;
2254
+ hooks: Record<Hook, Set<() => void>>;
2255
+ private trackMap;
2256
+ get firstChild(): Node | null;
2257
+ get isConnected(): boolean;
2258
+ addHook(hook: Hook, cb: () => void): void;
2259
+ getContext<T>(context: symbol | string | number): T | undefined;
2260
+ setContext<T>(context: symbol | string | number, value: T): void;
2261
+ inheritNode(node: ComponentNode$1): void;
2262
+ mount(parent: Node, before?: Node | null): Node[];
2263
+ unmount(): void;
2264
+ private getNodeTrack;
2265
+ patchProps(props: Record<string, any>): void;
2266
+ }
2267
+
2268
+ declare function h<K extends keyof HTMLElementTagNameMap>(_template: EssorComponent | HTMLTemplateElement | K | '', props: Record<string, any>): JSX.Element;
2269
+ declare function isJsxElement(node: unknown): node is EssorNode;
2270
+ declare function template(html: string): HTMLTemplateElement;
2271
+ declare function Fragment(props: {
2272
+ children: JSX.Element;
2273
+ }): JSX.Element;
2274
+
2275
+ declare function nextTick(fn?: () => void): Promise<void>;
2276
+
2277
+ declare function onMount(cb: () => void): void;
2278
+ declare function onDestroy(cb: () => void): void;
2279
+ interface InjectionKey<T> extends Symbol {
2280
+ }
2281
+ declare function useProvide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): void;
2282
+ declare function useInject<T, K = InjectionKey<T> | string | number>(key: K, defaultValue?: K extends InjectionKey<infer V> ? V : T): (K extends InjectionKey<infer V> ? V : T) | undefined;
2283
+
2284
+ type Props = Record<string, any>;
2285
+ /**
2286
+ * Renders a template to a string based on provided props.
2287
+ * Handles both function-based and object-based templates.
2288
+ * @param template - The template to render, which can be an array, an object, or a function.
2289
+ * @param props - The properties used for rendering the template.
2290
+ * @returns The rendered template as a string.
2291
+ */
2292
+ declare function renderTemplate(template: string[] | EssorNode | Function, props: Props): string;
2293
+ /**
2294
+ * Renders a component to a string using the given properties.
2295
+ * @param component - The component function to be rendered.
2296
+ * @param props - The properties to be passed to the component.
2297
+ * @returns The rendered component as a string.
2298
+ */
2299
+ declare function renderToString(component: (...args: any[]) => string, props: Props): string;
2300
+ /**
2301
+ * Renders a component to a string and sets it as the innerHTML of the specified root element.
2302
+ * @param component - The component function to be rendered.
2303
+ * @param root - The root element in which to render the component.
2304
+ * @param props - The properties to be passed to the component.
2305
+ */
2306
+ declare function renderSSG(component: any, root: HTMLElement, props?: Props): void;
2307
+
2308
+ export { ComponentNode$1 as ComponentNode, type EssorComponent, type EssorNode, Fragment, type Hook$1 as Hook, type InjectionKey, type NodeTrack, type Output, TemplateNode$1 as TemplateNode, h, isJsxElement, nextTick, onDestroy, onMount, renderSSG, renderTemplate, renderToString, template, useInject, useProvide };