essor 0.0.7-beta.6 → 0.0.10-beta.21

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