@vuact/runtime-dom 3.5.28-vuact.2 → 3.5.30-vuact.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,12 @@
1
- import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, SetupContext, RenderFunction, ComponentOptions, App, ComponentCustomElementInterface, ConcreteComponent, CreateAppFunction, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, VNodeRef, RendererOptions, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
1
+ import { RendererOptions, BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, VNodeRef, App, ComponentCustomElementInterface, ConcreteComponent, CreateAppFunction, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, RootHydrateFunction, RootRenderFunction } from '@vue/runtime-core';
2
2
  export * from '@vue/runtime-core';
3
3
  import * as CSS from 'csstype';
4
4
 
5
+ export declare const nodeOps: Omit<RendererOptions<Node, Element>, 'patchProp'>;
6
+
7
+ type DOMRendererOptions = RendererOptions<Node, Element>;
8
+ export declare const patchProp: DOMRendererOptions['patchProp'];
9
+
5
10
  declare const TRANSITION = "transition";
6
11
  declare const ANIMATION = "animation";
7
12
  type AnimationTypes = typeof TRANSITION | typeof ANIMATION;
@@ -46,7 +51,7 @@ interface VShowElement extends HTMLElement {
46
51
  [vShowHidden]: boolean;
47
52
  }
48
53
  export declare const vShow: ObjectDirective<VShowElement> & {
49
- name?: 'show';
54
+ name: 'show';
50
55
  };
51
56
 
52
57
  declare const systemModifiers: readonly ["ctrl", "shift", "alt", "meta"];
@@ -86,103 +91,6 @@ export declare const vModelSelect: ModelDirective<HTMLSelectElement, 'number'>;
86
91
  export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
87
92
  type VModelDirective = typeof vModelText | typeof vModelCheckbox | typeof vModelSelect | typeof vModelRadio | typeof vModelDynamic;
88
93
 
89
- export type VueElementConstructor<P = {}> = {
90
- new (initialProps?: Record<string, any>): VueElement & P;
91
- };
92
- export interface CustomElementOptions {
93
- styles?: string[];
94
- shadowRoot?: boolean;
95
- nonce?: string;
96
- configureApp?: (app: App) => void;
97
- }
98
- export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
99
- props?: (keyof Props)[];
100
- }): VueElementConstructor<Props>;
101
- export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
102
- props?: ComponentObjectPropsOptions<Props>;
103
- }): VueElementConstructor<Props>;
104
- export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
105
- [key in PropsKeys]?: any;
106
- }, ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & {
107
- props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
108
- } & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
109
- InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
110
- export declare function defineCustomElement<T extends {
111
- new (...args: any[]): ComponentPublicInstance<any>;
112
- }>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
113
- /*! #__NO_SIDE_EFFECTS__ */
114
- export declare const defineSSRCustomElement: typeof defineCustomElement;
115
- declare const BaseClass: typeof HTMLElement;
116
- type InnerComponentDef = ConcreteComponent & CustomElementOptions;
117
- export declare class VueElement extends BaseClass implements ComponentCustomElementInterface {
118
- /**
119
- * Component def - note this may be an AsyncWrapper, and this._def will
120
- * be overwritten by the inner component when resolved.
121
- */
122
- private _def;
123
- private _props;
124
- private _createApp;
125
- _isVueCE: boolean;
126
- private _connected;
127
- private _resolved;
128
- private _numberProps;
129
- private _styleChildren;
130
- private _pendingResolve;
131
- private _parent;
132
- /**
133
- * dev only
134
- */
135
- private _styles?;
136
- /**
137
- * dev only
138
- */
139
- private _childStyles?;
140
- private _ob?;
141
- private _slots?;
142
- constructor(
143
- /**
144
- * Component def - note this may be an AsyncWrapper, and this._def will
145
- * be overwritten by the inner component when resolved.
146
- */
147
- _def: InnerComponentDef, _props?: Record<string, any>, _createApp?: CreateAppFunction<Element>);
148
- connectedCallback(): void;
149
- private _setParent;
150
- private _inheritParentContext;
151
- disconnectedCallback(): void;
152
- /**
153
- * resolve inner component definition (handle possible async component)
154
- */
155
- private _resolveDef;
156
- private _mount;
157
- private _resolveProps;
158
- protected _setAttr(key: string): void;
159
- private _update;
160
- private _createVNode;
161
- private _applyStyles;
162
- /**
163
- * Only called when shadowRoot is false
164
- */
165
- private _parseSlots;
166
- /**
167
- * Only called when shadowRoot is false
168
- */
169
- private _renderSlots;
170
- }
171
- export declare function useHost(caller?: string): VueElement | null;
172
- /**
173
- * Retrieve the shadowRoot of the current custom element. Only usable in setup()
174
- * of a `defineCustomElement` component.
175
- */
176
- export declare function useShadowRoot(): ShadowRoot | null;
177
-
178
- export declare function useCssModule(name?: string): Record<string, string>;
179
-
180
- /**
181
- * Runtime helper for SFC's CSS variable injection feature.
182
- * @private
183
- */
184
- export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
185
-
186
94
  export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
187
95
  /**
188
96
  * The index signature was removed to enable closed typing for style
@@ -198,895 +106,922 @@ type Booleanish = boolean | 'true' | 'false';
198
106
  type Numberish = number | string;
199
107
  export interface AriaAttributes {
200
108
  /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
201
- 'aria-activedescendant'?: string;
109
+ 'aria-activedescendant'?: string | undefined;
202
110
  /** 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. */
203
- 'aria-atomic'?: Booleanish;
111
+ 'aria-atomic'?: Booleanish | undefined;
204
112
  /**
205
113
  * 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
206
114
  * presented if they are made.
207
115
  */
208
- 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
116
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
209
117
  /** 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. */
210
- 'aria-busy'?: Booleanish;
118
+ 'aria-busy'?: Booleanish | undefined;
211
119
  /**
212
120
  * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
213
121
  * @see aria-pressed @see aria-selected.
214
122
  */
215
- 'aria-checked'?: Booleanish | 'mixed';
123
+ 'aria-checked'?: Booleanish | 'mixed' | undefined;
216
124
  /**
217
125
  * Defines the total number of columns in a table, grid, or treegrid.
218
126
  * @see aria-colindex.
219
127
  */
220
- 'aria-colcount'?: Numberish;
128
+ 'aria-colcount'?: Numberish | undefined;
221
129
  /**
222
130
  * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
223
131
  * @see aria-colcount @see aria-colspan.
224
132
  */
225
- 'aria-colindex'?: Numberish;
133
+ 'aria-colindex'?: Numberish | undefined;
226
134
  /**
227
135
  * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
228
136
  * @see aria-colindex @see aria-rowspan.
229
137
  */
230
- 'aria-colspan'?: Numberish;
138
+ 'aria-colspan'?: Numberish | undefined;
231
139
  /**
232
140
  * Identifies the element (or elements) whose contents or presence are controlled by the current element.
233
141
  * @see aria-owns.
234
142
  */
235
- 'aria-controls'?: string;
143
+ 'aria-controls'?: string | undefined;
236
144
  /** Indicates the element that represents the current item within a container or set of related elements. */
237
- 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time';
145
+ 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined;
238
146
  /**
239
147
  * Identifies the element (or elements) that describes the object.
240
148
  * @see aria-labelledby
241
149
  */
242
- 'aria-describedby'?: string;
150
+ 'aria-describedby'?: string | undefined;
243
151
  /**
244
152
  * Identifies the element that provides a detailed, extended description for the object.
245
153
  * @see aria-describedby.
246
154
  */
247
- 'aria-details'?: string;
155
+ 'aria-details'?: string | undefined;
248
156
  /**
249
157
  * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
250
158
  * @see aria-hidden @see aria-readonly.
251
159
  */
252
- 'aria-disabled'?: Booleanish;
160
+ 'aria-disabled'?: Booleanish | undefined;
253
161
  /**
254
162
  * Indicates what functions can be performed when a dragged object is released on the drop target.
255
163
  * @deprecated in ARIA 1.1
256
164
  */
257
- 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
165
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined;
258
166
  /**
259
167
  * Identifies the element that provides an error message for the object.
260
168
  * @see aria-invalid @see aria-describedby.
261
169
  */
262
- 'aria-errormessage'?: string;
170
+ 'aria-errormessage'?: string | undefined;
263
171
  /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
264
- 'aria-expanded'?: Booleanish;
172
+ 'aria-expanded'?: Booleanish | undefined;
265
173
  /**
266
174
  * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
267
175
  * allows assistive technology to override the general default of reading in document source order.
268
176
  */
269
- 'aria-flowto'?: string;
177
+ 'aria-flowto'?: string | undefined;
270
178
  /**
271
179
  * Indicates an element's "grabbed" state in a drag-and-drop operation.
272
180
  * @deprecated in ARIA 1.1
273
181
  */
274
- 'aria-grabbed'?: Booleanish;
182
+ 'aria-grabbed'?: Booleanish | undefined;
275
183
  /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
276
- 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
184
+ 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
277
185
  /**
278
186
  * Indicates whether the element is exposed to an accessibility API.
279
187
  * @see aria-disabled.
280
188
  */
281
- 'aria-hidden'?: Booleanish;
189
+ 'aria-hidden'?: Booleanish | undefined;
282
190
  /**
283
191
  * Indicates the entered value does not conform to the format expected by the application.
284
192
  * @see aria-errormessage.
285
193
  */
286
- 'aria-invalid'?: Booleanish | 'grammar' | 'spelling';
194
+ 'aria-invalid'?: Booleanish | 'grammar' | 'spelling' | undefined;
287
195
  /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
288
- 'aria-keyshortcuts'?: string;
196
+ 'aria-keyshortcuts'?: string | undefined;
289
197
  /**
290
198
  * Defines a string value that labels the current element.
291
199
  * @see aria-labelledby.
292
200
  */
293
- 'aria-label'?: string;
201
+ 'aria-label'?: string | undefined;
294
202
  /**
295
203
  * Identifies the element (or elements) that labels the current element.
296
204
  * @see aria-describedby.
297
205
  */
298
- 'aria-labelledby'?: string;
206
+ 'aria-labelledby'?: string | undefined;
299
207
  /** Defines the hierarchical level of an element within a structure. */
300
- 'aria-level'?: Numberish;
208
+ 'aria-level'?: Numberish | undefined;
301
209
  /** 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. */
302
- 'aria-live'?: 'off' | 'assertive' | 'polite';
210
+ 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
303
211
  /** Indicates whether an element is modal when displayed. */
304
- 'aria-modal'?: Booleanish;
212
+ 'aria-modal'?: Booleanish | undefined;
305
213
  /** Indicates whether a text box accepts multiple lines of input or only a single line. */
306
- 'aria-multiline'?: Booleanish;
214
+ 'aria-multiline'?: Booleanish | undefined;
307
215
  /** Indicates that the user may select more than one item from the current selectable descendants. */
308
- 'aria-multiselectable'?: Booleanish;
216
+ 'aria-multiselectable'?: Booleanish | undefined;
309
217
  /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
310
- 'aria-orientation'?: 'horizontal' | 'vertical';
218
+ 'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
311
219
  /**
312
220
  * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
313
221
  * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
314
222
  * @see aria-controls.
315
223
  */
316
- 'aria-owns'?: string;
224
+ 'aria-owns'?: string | undefined;
317
225
  /**
318
226
  * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
319
227
  * A hint could be a sample value or a brief description of the expected format.
320
228
  */
321
- 'aria-placeholder'?: string;
229
+ 'aria-placeholder'?: string | undefined;
322
230
  /**
323
231
  * 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.
324
232
  * @see aria-setsize.
325
233
  */
326
- 'aria-posinset'?: Numberish;
234
+ 'aria-posinset'?: Numberish | undefined;
327
235
  /**
328
236
  * Indicates the current "pressed" state of toggle buttons.
329
237
  * @see aria-checked @see aria-selected.
330
238
  */
331
- 'aria-pressed'?: Booleanish | 'mixed';
239
+ 'aria-pressed'?: Booleanish | 'mixed' | undefined;
332
240
  /**
333
241
  * Indicates that the element is not editable, but is otherwise operable.
334
242
  * @see aria-disabled.
335
243
  */
336
- 'aria-readonly'?: Booleanish;
244
+ 'aria-readonly'?: Booleanish | undefined;
337
245
  /**
338
246
  * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
339
247
  * @see aria-atomic.
340
248
  */
341
- 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
249
+ 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined;
342
250
  /** Indicates that user input is required on the element before a form may be submitted. */
343
- 'aria-required'?: Booleanish;
251
+ 'aria-required'?: Booleanish | undefined;
344
252
  /** Defines a human-readable, author-localized description for the role of an element. */
345
- 'aria-roledescription'?: string;
253
+ 'aria-roledescription'?: string | undefined;
346
254
  /**
347
255
  * Defines the total number of rows in a table, grid, or treegrid.
348
256
  * @see aria-rowindex.
349
257
  */
350
- 'aria-rowcount'?: Numberish;
258
+ 'aria-rowcount'?: Numberish | undefined;
351
259
  /**
352
260
  * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
353
261
  * @see aria-rowcount @see aria-rowspan.
354
262
  */
355
- 'aria-rowindex'?: Numberish;
263
+ 'aria-rowindex'?: Numberish | undefined;
356
264
  /**
357
265
  * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
358
266
  * @see aria-rowindex @see aria-colspan.
359
267
  */
360
- 'aria-rowspan'?: Numberish;
268
+ 'aria-rowspan'?: Numberish | undefined;
361
269
  /**
362
270
  * Indicates the current "selected" state of various widgets.
363
271
  * @see aria-checked @see aria-pressed.
364
272
  */
365
- 'aria-selected'?: Booleanish;
273
+ 'aria-selected'?: Booleanish | undefined;
366
274
  /**
367
275
  * 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.
368
276
  * @see aria-posinset.
369
277
  */
370
- 'aria-setsize'?: Numberish;
278
+ 'aria-setsize'?: Numberish | undefined;
371
279
  /** Indicates if items in a table or grid are sorted in ascending or descending order. */
372
- 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
280
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined;
373
281
  /** Defines the maximum allowed value for a range widget. */
374
- 'aria-valuemax'?: Numberish;
282
+ 'aria-valuemax'?: Numberish | undefined;
375
283
  /** Defines the minimum allowed value for a range widget. */
376
- 'aria-valuemin'?: Numberish;
284
+ 'aria-valuemin'?: Numberish | undefined;
377
285
  /**
378
286
  * Defines the current value for a range widget.
379
287
  * @see aria-valuetext.
380
288
  */
381
- 'aria-valuenow'?: Numberish;
289
+ 'aria-valuenow'?: Numberish | undefined;
382
290
  /** Defines the human readable text alternative of aria-valuenow for a range widget. */
383
- 'aria-valuetext'?: string;
291
+ 'aria-valuetext'?: string | undefined;
384
292
  }
385
293
  export type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
294
+ export type ClassValue = false | null | undefined | string | Record<string, any> | Array<ClassValue>;
386
295
  export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
387
- innerHTML?: string;
388
- class?: any;
389
- style?: StyleValue;
390
- accesskey?: string;
391
- contenteditable?: Booleanish | 'inherit' | 'plaintext-only';
392
- contextmenu?: string;
393
- dir?: string;
394
- draggable?: Booleanish;
395
- hidden?: Booleanish | '' | 'hidden' | 'until-found';
396
- id?: string;
397
- inert?: Booleanish;
398
- lang?: string;
399
- placeholder?: string;
400
- spellcheck?: Booleanish;
401
- tabindex?: Numberish;
402
- title?: string;
403
- translate?: 'yes' | 'no';
404
- radiogroup?: string;
405
- role?: string;
406
- about?: string;
407
- datatype?: string;
296
+ innerHTML?: string | undefined;
297
+ class?: ClassValue | undefined;
298
+ style?: StyleValue | undefined;
299
+ accesskey?: string | undefined;
300
+ contenteditable?: Booleanish | 'inherit' | 'plaintext-only' | undefined;
301
+ contextmenu?: string | undefined;
302
+ dir?: string | undefined;
303
+ draggable?: Booleanish | undefined;
304
+ enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
305
+ /**
306
+ * @deprecated Use `enterkeyhint` instead.
307
+ */
308
+ enterKeyHint?: HTMLAttributes['enterkeyhint'];
309
+ hidden?: Booleanish | '' | 'hidden' | 'until-found' | undefined;
310
+ id?: string | undefined;
311
+ inert?: Booleanish | undefined;
312
+ lang?: string | undefined;
313
+ placeholder?: string | undefined;
314
+ spellcheck?: Booleanish | undefined;
315
+ tabindex?: Numberish | undefined;
316
+ title?: string | undefined;
317
+ translate?: 'yes' | 'no' | undefined;
318
+ radiogroup?: string | undefined;
319
+ role?: string | undefined;
320
+ about?: string | undefined;
321
+ datatype?: string | undefined;
408
322
  inlist?: any;
409
- prefix?: string;
410
- property?: string;
411
- resource?: string;
412
- typeof?: string;
413
- vocab?: string;
414
- autocapitalize?: string;
415
- autocorrect?: string;
416
- autosave?: string;
417
- color?: string;
418
- itemprop?: string;
419
- itemscope?: Booleanish;
420
- itemtype?: string;
421
- itemid?: string;
422
- itemref?: string;
423
- results?: Numberish;
424
- security?: string;
425
- unselectable?: 'on' | 'off';
323
+ prefix?: string | undefined;
324
+ property?: string | undefined;
325
+ resource?: string | undefined;
326
+ typeof?: string | undefined;
327
+ vocab?: string | undefined;
328
+ autocapitalize?: string | undefined;
329
+ autocorrect?: string | undefined;
330
+ autosave?: string | undefined;
331
+ color?: string | undefined;
332
+ itemprop?: string | undefined;
333
+ itemscope?: Booleanish | undefined;
334
+ itemtype?: string | undefined;
335
+ itemid?: string | undefined;
336
+ itemref?: string | undefined;
337
+ results?: Numberish | undefined;
338
+ security?: string | undefined;
339
+ unselectable?: 'on' | 'off' | undefined;
426
340
  /**
427
341
  * Hints at the type of data that might be entered by the user while editing the element or its contents
428
342
  * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
429
343
  */
430
- inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
344
+ inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | undefined;
431
345
  /**
432
346
  * Specify that a standard HTML element should behave like a defined custom built-in element
433
347
  * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
434
348
  */
435
- is?: string;
349
+ is?: string | undefined;
350
+ /**
351
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts
352
+ */
353
+ exportparts?: string;
354
+ /**
355
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part
356
+ */
357
+ part?: string;
436
358
  }
437
359
  type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
438
360
  export interface AnchorHTMLAttributes extends HTMLAttributes {
439
361
  download?: any;
440
- href?: string;
441
- hreflang?: string;
442
- media?: string;
443
- ping?: string;
444
- rel?: string;
445
- target?: string;
446
- type?: string;
447
- referrerpolicy?: HTMLAttributeReferrerPolicy;
362
+ href?: string | undefined;
363
+ hreflang?: string | undefined;
364
+ media?: string | undefined;
365
+ ping?: string | undefined;
366
+ rel?: string | undefined;
367
+ target?: string | undefined;
368
+ type?: string | undefined;
369
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
448
370
  }
449
371
  export interface AreaHTMLAttributes extends HTMLAttributes {
450
- alt?: string;
451
- coords?: string;
372
+ alt?: string | undefined;
373
+ coords?: string | undefined;
452
374
  download?: any;
453
- href?: string;
454
- hreflang?: string;
455
- media?: string;
456
- referrerpolicy?: HTMLAttributeReferrerPolicy;
457
- rel?: string;
458
- shape?: string;
459
- target?: string;
375
+ href?: string | undefined;
376
+ hreflang?: string | undefined;
377
+ media?: string | undefined;
378
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
379
+ rel?: string | undefined;
380
+ shape?: string | undefined;
381
+ target?: string | undefined;
460
382
  }
461
383
  export interface AudioHTMLAttributes extends MediaHTMLAttributes {
462
384
  }
463
385
  export interface BaseHTMLAttributes extends HTMLAttributes {
464
- href?: string;
465
- target?: string;
386
+ href?: string | undefined;
387
+ target?: string | undefined;
466
388
  }
467
389
  export interface BlockquoteHTMLAttributes extends HTMLAttributes {
468
- cite?: string;
390
+ cite?: string | undefined;
469
391
  }
470
392
  export interface ButtonHTMLAttributes extends HTMLAttributes {
471
- autofocus?: Booleanish;
472
- disabled?: Booleanish;
473
- form?: string;
474
- formaction?: string;
475
- formenctype?: string;
476
- formmethod?: string;
477
- formnovalidate?: Booleanish;
478
- formtarget?: string;
479
- name?: string;
480
- type?: 'submit' | 'reset' | 'button';
481
- value?: string | ReadonlyArray<string> | number;
393
+ autofocus?: Booleanish | undefined;
394
+ disabled?: Booleanish | undefined;
395
+ form?: string | undefined;
396
+ formaction?: string | undefined;
397
+ formenctype?: string | undefined;
398
+ formmethod?: string | undefined;
399
+ formnovalidate?: Booleanish | undefined;
400
+ formtarget?: string | undefined;
401
+ name?: string | undefined;
402
+ type?: 'submit' | 'reset' | 'button' | undefined;
403
+ value?: string | ReadonlyArray<string> | number | undefined;
482
404
  }
483
405
  export interface CanvasHTMLAttributes extends HTMLAttributes {
484
- height?: Numberish;
485
- width?: Numberish;
406
+ height?: Numberish | undefined;
407
+ width?: Numberish | undefined;
486
408
  }
487
409
  export interface ColHTMLAttributes extends HTMLAttributes {
488
- span?: Numberish;
489
- width?: Numberish;
410
+ span?: Numberish | undefined;
411
+ width?: Numberish | undefined;
490
412
  }
491
413
  export interface ColgroupHTMLAttributes extends HTMLAttributes {
492
- span?: Numberish;
414
+ span?: Numberish | undefined;
493
415
  }
494
416
  export interface DataHTMLAttributes extends HTMLAttributes {
495
- value?: string | ReadonlyArray<string> | number;
417
+ value?: string | ReadonlyArray<string> | number | undefined;
496
418
  }
497
419
  export interface DetailsHTMLAttributes extends HTMLAttributes {
498
- name?: string;
499
- open?: Booleanish;
500
- onToggle?: (payload: ToggleEvent) => void;
420
+ name?: string | undefined;
421
+ open?: Booleanish | undefined;
501
422
  }
502
423
  export interface DelHTMLAttributes extends HTMLAttributes {
503
- cite?: string;
504
- datetime?: string;
424
+ cite?: string | undefined;
425
+ datetime?: string | undefined;
505
426
  }
506
427
  export interface DialogHTMLAttributes extends HTMLAttributes {
507
- open?: Booleanish;
508
- onClose?: (payload: Event) => void;
428
+ open?: Booleanish | undefined;
429
+ onClose?: ((payload: Event) => void) | undefined;
430
+ onCancel?: ((payload: Event) => void) | undefined;
509
431
  }
510
432
  export interface EmbedHTMLAttributes extends HTMLAttributes {
511
- height?: Numberish;
512
- src?: string;
513
- type?: string;
514
- width?: Numberish;
433
+ height?: Numberish | undefined;
434
+ src?: string | undefined;
435
+ type?: string | undefined;
436
+ width?: Numberish | undefined;
515
437
  }
516
438
  export interface FieldsetHTMLAttributes extends HTMLAttributes {
517
- disabled?: Booleanish;
518
- form?: string;
519
- name?: string;
439
+ disabled?: Booleanish | undefined;
440
+ form?: string | undefined;
441
+ name?: string | undefined;
520
442
  }
521
443
  export interface FormHTMLAttributes extends HTMLAttributes {
522
- acceptcharset?: string;
523
- action?: string;
524
- autocomplete?: string;
525
- enctype?: string;
526
- method?: string;
527
- name?: string;
528
- novalidate?: Booleanish;
529
- target?: string;
444
+ acceptcharset?: string | undefined;
445
+ action?: string | undefined;
446
+ autocomplete?: string | undefined;
447
+ enctype?: string | undefined;
448
+ method?: string | undefined;
449
+ name?: string | undefined;
450
+ novalidate?: Booleanish | undefined;
451
+ target?: string | undefined;
530
452
  }
531
453
  export interface HtmlHTMLAttributes extends HTMLAttributes {
532
- manifest?: string;
454
+ manifest?: string | undefined;
533
455
  }
534
456
  export interface IframeHTMLAttributes extends HTMLAttributes {
535
- allow?: string;
536
- allowfullscreen?: Booleanish;
537
- allowtransparency?: Booleanish;
457
+ allow?: string | undefined;
458
+ allowfullscreen?: Booleanish | undefined;
459
+ allowtransparency?: Booleanish | undefined;
538
460
  /** @deprecated */
539
- frameborder?: Numberish;
540
- height?: Numberish;
541
- loading?: 'eager' | 'lazy';
461
+ frameborder?: Numberish | undefined;
462
+ height?: Numberish | undefined;
463
+ loading?: 'eager' | 'lazy' | undefined;
542
464
  /** @deprecated */
543
- marginheight?: Numberish;
465
+ marginheight?: Numberish | undefined;
544
466
  /** @deprecated */
545
- marginwidth?: Numberish;
546
- name?: string;
547
- referrerpolicy?: HTMLAttributeReferrerPolicy;
548
- sandbox?: string;
467
+ marginwidth?: Numberish | undefined;
468
+ name?: string | undefined;
469
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
470
+ sandbox?: string | undefined;
549
471
  /** @deprecated */
550
- scrolling?: string;
551
- seamless?: Booleanish;
552
- src?: string;
553
- srcdoc?: string;
554
- width?: Numberish;
472
+ scrolling?: string | undefined;
473
+ seamless?: Booleanish | undefined;
474
+ src?: string | undefined;
475
+ srcdoc?: string | undefined;
476
+ width?: Numberish | undefined;
555
477
  }
556
478
  export interface ImgHTMLAttributes extends HTMLAttributes {
557
- alt?: string;
558
- crossorigin?: 'anonymous' | 'use-credentials' | '';
559
- decoding?: 'async' | 'auto' | 'sync';
560
- height?: Numberish;
561
- loading?: 'eager' | 'lazy';
562
- referrerpolicy?: HTMLAttributeReferrerPolicy;
563
- sizes?: string;
564
- src?: string;
565
- srcset?: string;
566
- usemap?: string;
567
- width?: Numberish;
479
+ alt?: string | undefined;
480
+ crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined;
481
+ decoding?: 'async' | 'auto' | 'sync' | undefined;
482
+ fetchpriority?: 'high' | 'low' | 'auto' | undefined;
483
+ height?: Numberish | undefined;
484
+ loading?: 'eager' | 'lazy' | undefined;
485
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
486
+ sizes?: string | undefined;
487
+ src?: string | undefined;
488
+ srcset?: string | undefined;
489
+ usemap?: string | undefined;
490
+ width?: Numberish | undefined;
568
491
  }
569
492
  export interface InsHTMLAttributes extends HTMLAttributes {
570
- cite?: string;
571
- datetime?: string;
493
+ cite?: string | undefined;
494
+ datetime?: string | undefined;
572
495
  }
573
496
  export type InputTypeHTMLAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
497
+ type AutoFillAddressKind = 'billing' | 'shipping';
498
+ type AutoFillBase = '' | 'off' | 'on';
499
+ type AutoFillContactField = 'email' | 'tel' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-local-prefix' | 'tel-local-suffix' | 'tel-national';
500
+ type AutoFillContactKind = 'home' | 'mobile' | 'work';
501
+ type AutoFillCredentialField = 'webauthn';
502
+ type AutoFillNormalField = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday-day' | 'bday-month' | 'bday-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country' | 'country-name' | 'current-password' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'new-password' | 'one-time-code' | 'organization' | 'postal-code' | 'street-address' | 'transaction-amount' | 'transaction-currency' | 'username';
503
+ type OptionalPrefixToken<T extends string> = `${T} ` | '';
504
+ type OptionalPostfixToken<T extends string> = ` ${T}` | '';
505
+ type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
506
+ type AutoFillSection = `section-${string}`;
507
+ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
508
+ export type InputAutoCompleteAttribute = AutoFill | (string & {});
574
509
  export interface InputHTMLAttributes extends HTMLAttributes {
575
- accept?: string;
576
- alt?: string;
577
- autocomplete?: string;
578
- autofocus?: Booleanish;
579
- capture?: boolean | 'user' | 'environment';
580
- checked?: Booleanish | any[] | Set<any>;
581
- crossorigin?: string;
582
- disabled?: Booleanish;
583
- enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
584
- form?: string;
585
- formaction?: string;
586
- formenctype?: string;
587
- formmethod?: string;
588
- formnovalidate?: Booleanish;
589
- formtarget?: string;
590
- height?: Numberish;
591
- indeterminate?: boolean;
592
- list?: string;
593
- max?: Numberish;
594
- maxlength?: Numberish;
595
- min?: Numberish;
596
- minlength?: Numberish;
597
- multiple?: Booleanish;
598
- name?: string;
599
- pattern?: string;
600
- placeholder?: string;
601
- readonly?: Booleanish;
602
- required?: Booleanish;
603
- size?: Numberish;
604
- src?: string;
605
- step?: Numberish;
606
- type?: InputTypeHTMLAttribute;
510
+ accept?: string | undefined;
511
+ alt?: string | undefined;
512
+ autocomplete?: InputAutoCompleteAttribute | undefined;
513
+ autofocus?: Booleanish | undefined;
514
+ capture?: boolean | 'user' | 'environment' | undefined;
515
+ checked?: Booleanish | any[] | Set<any> | undefined;
516
+ crossorigin?: string | undefined;
517
+ disabled?: Booleanish | undefined;
518
+ form?: string | undefined;
519
+ formaction?: string | undefined;
520
+ formenctype?: string | undefined;
521
+ formmethod?: string | undefined;
522
+ formnovalidate?: Booleanish | undefined;
523
+ formtarget?: string | undefined;
524
+ height?: Numberish | undefined;
525
+ indeterminate?: boolean | undefined;
526
+ list?: string | undefined;
527
+ max?: Numberish | undefined;
528
+ maxlength?: Numberish | undefined;
529
+ min?: Numberish | undefined;
530
+ minlength?: Numberish | undefined;
531
+ multiple?: Booleanish | undefined;
532
+ name?: string | undefined;
533
+ pattern?: string | undefined;
534
+ placeholder?: string | undefined;
535
+ readonly?: Booleanish | undefined;
536
+ required?: Booleanish | undefined;
537
+ size?: Numberish | undefined;
538
+ src?: string | undefined;
539
+ step?: Numberish | undefined;
540
+ type?: InputTypeHTMLAttribute | undefined;
607
541
  value?: any;
608
- width?: Numberish;
542
+ width?: Numberish | undefined;
543
+ onCancel?: ((payload: Event) => void) | undefined;
609
544
  }
610
545
  export interface KeygenHTMLAttributes extends HTMLAttributes {
611
- autofocus?: Booleanish;
612
- challenge?: string;
613
- disabled?: Booleanish;
614
- form?: string;
615
- keytype?: string;
616
- keyparams?: string;
617
- name?: string;
546
+ autofocus?: Booleanish | undefined;
547
+ challenge?: string | undefined;
548
+ disabled?: Booleanish | undefined;
549
+ form?: string | undefined;
550
+ keytype?: string | undefined;
551
+ keyparams?: string | undefined;
552
+ name?: string | undefined;
618
553
  }
619
554
  export interface LabelHTMLAttributes extends HTMLAttributes {
620
- for?: string;
621
- form?: string;
555
+ for?: string | undefined;
556
+ form?: string | undefined;
622
557
  }
623
558
  export interface LiHTMLAttributes extends HTMLAttributes {
624
- value?: string | ReadonlyArray<string> | number;
559
+ value?: string | ReadonlyArray<string> | number | undefined;
625
560
  }
626
561
  export interface LinkHTMLAttributes extends HTMLAttributes {
627
- as?: string;
628
- crossorigin?: string;
629
- href?: string;
630
- hreflang?: string;
631
- integrity?: string;
632
- media?: string;
633
- referrerpolicy?: HTMLAttributeReferrerPolicy;
634
- rel?: string;
635
- sizes?: string;
636
- type?: string;
637
- charset?: string;
562
+ as?: string | undefined;
563
+ crossorigin?: string | undefined;
564
+ href?: string | undefined;
565
+ hreflang?: string | undefined;
566
+ integrity?: string | undefined;
567
+ media?: string | undefined;
568
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
569
+ rel?: string | undefined;
570
+ sizes?: string | undefined;
571
+ type?: string | undefined;
572
+ charset?: string | undefined;
638
573
  }
639
574
  export interface MapHTMLAttributes extends HTMLAttributes {
640
- name?: string;
575
+ name?: string | undefined;
641
576
  }
642
577
  export interface MenuHTMLAttributes extends HTMLAttributes {
643
- type?: string;
578
+ type?: string | undefined;
644
579
  }
645
580
  export interface MediaHTMLAttributes extends HTMLAttributes {
646
- autoplay?: Booleanish;
647
- controls?: Booleanish;
648
- controlslist?: string;
649
- crossorigin?: string;
650
- loop?: Booleanish;
651
- mediagroup?: string;
652
- muted?: Booleanish;
653
- playsinline?: Booleanish;
654
- preload?: string;
655
- src?: string;
581
+ autoplay?: Booleanish | undefined;
582
+ controls?: Booleanish | undefined;
583
+ controlslist?: string | undefined;
584
+ crossorigin?: string | undefined;
585
+ loop?: Booleanish | undefined;
586
+ mediagroup?: string | undefined;
587
+ muted?: Booleanish | undefined;
588
+ playsinline?: Booleanish | undefined;
589
+ preload?: string | undefined;
590
+ src?: string | undefined;
656
591
  }
657
592
  export interface MetaHTMLAttributes extends HTMLAttributes {
658
- charset?: string;
659
- content?: string;
660
- httpequiv?: string;
661
- name?: string;
593
+ charset?: string | undefined;
594
+ content?: string | undefined;
595
+ httpequiv?: string | undefined;
596
+ name?: string | undefined;
662
597
  }
663
598
  export interface MeterHTMLAttributes extends HTMLAttributes {
664
- form?: string;
665
- high?: Numberish;
666
- low?: Numberish;
667
- max?: Numberish;
668
- min?: Numberish;
669
- optimum?: Numberish;
670
- value?: string | ReadonlyArray<string> | number;
599
+ form?: string | undefined;
600
+ high?: Numberish | undefined;
601
+ low?: Numberish | undefined;
602
+ max?: Numberish | undefined;
603
+ min?: Numberish | undefined;
604
+ optimum?: Numberish | undefined;
605
+ value?: string | ReadonlyArray<string> | number | undefined;
671
606
  }
672
607
  export interface QuoteHTMLAttributes extends HTMLAttributes {
673
- cite?: string;
608
+ cite?: string | undefined;
674
609
  }
675
610
  export interface ObjectHTMLAttributes extends HTMLAttributes {
676
- classid?: string;
677
- data?: string;
678
- form?: string;
679
- height?: Numberish;
680
- name?: string;
681
- type?: string;
682
- usemap?: string;
683
- width?: Numberish;
684
- wmode?: string;
611
+ classid?: string | undefined;
612
+ data?: string | undefined;
613
+ form?: string | undefined;
614
+ height?: Numberish | undefined;
615
+ name?: string | undefined;
616
+ type?: string | undefined;
617
+ usemap?: string | undefined;
618
+ width?: Numberish | undefined;
619
+ wmode?: string | undefined;
685
620
  }
686
621
  export interface OlHTMLAttributes extends HTMLAttributes {
687
- reversed?: Booleanish;
688
- start?: Numberish;
689
- type?: '1' | 'a' | 'A' | 'i' | 'I';
622
+ reversed?: Booleanish | undefined;
623
+ start?: Numberish | undefined;
624
+ type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined;
690
625
  }
691
626
  export interface OptgroupHTMLAttributes extends HTMLAttributes {
692
- disabled?: Booleanish;
693
- label?: string;
627
+ disabled?: Booleanish | undefined;
628
+ label?: string | undefined;
694
629
  }
695
630
  export interface OptionHTMLAttributes extends HTMLAttributes {
696
- disabled?: Booleanish;
697
- label?: string;
698
- selected?: Booleanish;
631
+ disabled?: Booleanish | undefined;
632
+ label?: string | undefined;
633
+ selected?: Booleanish | undefined;
699
634
  value?: any;
700
635
  }
701
636
  export interface OutputHTMLAttributes extends HTMLAttributes {
702
- for?: string;
703
- form?: string;
704
- name?: string;
637
+ for?: string | undefined;
638
+ form?: string | undefined;
639
+ name?: string | undefined;
705
640
  }
706
641
  export interface ParamHTMLAttributes extends HTMLAttributes {
707
- name?: string;
708
- value?: string | ReadonlyArray<string> | number;
642
+ name?: string | undefined;
643
+ value?: string | ReadonlyArray<string> | number | undefined;
709
644
  }
710
645
  export interface ProgressHTMLAttributes extends HTMLAttributes {
711
- max?: Numberish;
712
- value?: string | ReadonlyArray<string> | number;
646
+ max?: Numberish | undefined;
647
+ value?: string | ReadonlyArray<string> | number | undefined;
713
648
  }
714
649
  export interface ScriptHTMLAttributes extends HTMLAttributes {
715
- async?: Booleanish;
650
+ async?: Booleanish | undefined;
716
651
  /** @deprecated */
717
- charset?: string;
718
- crossorigin?: string;
719
- defer?: Booleanish;
720
- integrity?: string;
721
- nomodule?: Booleanish;
722
- referrerpolicy?: HTMLAttributeReferrerPolicy;
723
- nonce?: string;
724
- src?: string;
725
- type?: string;
652
+ charset?: string | undefined;
653
+ crossorigin?: string | undefined;
654
+ defer?: Booleanish | undefined;
655
+ integrity?: string | undefined;
656
+ nomodule?: Booleanish | undefined;
657
+ referrerpolicy?: HTMLAttributeReferrerPolicy | undefined;
658
+ nonce?: string | undefined;
659
+ src?: string | undefined;
660
+ type?: string | undefined;
726
661
  }
727
662
  export interface SelectHTMLAttributes extends HTMLAttributes {
728
- autocomplete?: string;
729
- autofocus?: Booleanish;
730
- disabled?: Booleanish;
731
- form?: string;
732
- multiple?: Booleanish;
733
- name?: string;
734
- required?: Booleanish;
735
- size?: Numberish;
663
+ autocomplete?: string | undefined;
664
+ autofocus?: Booleanish | undefined;
665
+ disabled?: Booleanish | undefined;
666
+ form?: string | undefined;
667
+ multiple?: Booleanish | undefined;
668
+ name?: string | undefined;
669
+ required?: Booleanish | undefined;
670
+ size?: Numberish | undefined;
736
671
  value?: any;
737
672
  }
738
673
  export interface SourceHTMLAttributes extends HTMLAttributes {
739
- media?: string;
740
- sizes?: string;
741
- src?: string;
742
- srcset?: string;
743
- type?: string;
674
+ media?: string | undefined;
675
+ sizes?: string | undefined;
676
+ src?: string | undefined;
677
+ srcset?: string | undefined;
678
+ type?: string | undefined;
744
679
  }
745
680
  export interface StyleHTMLAttributes extends HTMLAttributes {
746
- media?: string;
747
- nonce?: string;
748
- scoped?: Booleanish;
749
- type?: string;
681
+ media?: string | undefined;
682
+ nonce?: string | undefined;
683
+ scoped?: Booleanish | undefined;
684
+ type?: string | undefined;
750
685
  }
751
686
  export interface TableHTMLAttributes extends HTMLAttributes {
752
- cellpadding?: Numberish;
753
- cellspacing?: Numberish;
754
- summary?: string;
755
- width?: Numberish;
687
+ cellpadding?: Numberish | undefined;
688
+ cellspacing?: Numberish | undefined;
689
+ summary?: string | undefined;
690
+ width?: Numberish | undefined;
756
691
  }
757
692
  export interface TextareaHTMLAttributes extends HTMLAttributes {
758
- autocomplete?: string;
759
- autofocus?: Booleanish;
760
- cols?: Numberish;
761
- dirname?: string;
762
- disabled?: Booleanish;
763
- form?: string;
764
- maxlength?: Numberish;
765
- minlength?: Numberish;
766
- name?: string;
767
- placeholder?: string;
768
- readonly?: Booleanish;
769
- required?: Booleanish;
770
- rows?: Numberish;
771
- value?: string | ReadonlyArray<string> | number | null;
772
- wrap?: string;
693
+ autocomplete?: string | undefined;
694
+ autofocus?: Booleanish | undefined;
695
+ cols?: Numberish | undefined;
696
+ dirname?: string | undefined;
697
+ disabled?: Booleanish | undefined;
698
+ form?: string | undefined;
699
+ maxlength?: Numberish | undefined;
700
+ minlength?: Numberish | undefined;
701
+ name?: string | undefined;
702
+ placeholder?: string | undefined;
703
+ readonly?: Booleanish | undefined;
704
+ required?: Booleanish | undefined;
705
+ rows?: Numberish | undefined;
706
+ value?: string | ReadonlyArray<string> | number | null | undefined;
707
+ wrap?: string | undefined;
773
708
  }
774
709
  export interface TdHTMLAttributes extends HTMLAttributes {
775
- align?: 'left' | 'center' | 'right' | 'justify' | 'char';
776
- colspan?: Numberish;
777
- headers?: string;
778
- rowspan?: Numberish;
779
- scope?: string;
780
- abbr?: string;
781
- height?: Numberish;
782
- width?: Numberish;
783
- valign?: 'top' | 'middle' | 'bottom' | 'baseline';
710
+ align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined;
711
+ colspan?: Numberish | undefined;
712
+ headers?: string | undefined;
713
+ rowspan?: Numberish | undefined;
714
+ scope?: string | undefined;
715
+ abbr?: string | undefined;
716
+ height?: Numberish | undefined;
717
+ width?: Numberish | undefined;
718
+ valign?: 'top' | 'middle' | 'bottom' | 'baseline' | undefined;
784
719
  }
785
720
  export interface ThHTMLAttributes extends HTMLAttributes {
786
- align?: 'left' | 'center' | 'right' | 'justify' | 'char';
787
- colspan?: Numberish;
788
- headers?: string;
789
- rowspan?: Numberish;
790
- scope?: string;
791
- abbr?: string;
721
+ align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined;
722
+ colspan?: Numberish | undefined;
723
+ headers?: string | undefined;
724
+ rowspan?: Numberish | undefined;
725
+ scope?: string | undefined;
726
+ abbr?: string | undefined;
792
727
  }
793
728
  export interface TimeHTMLAttributes extends HTMLAttributes {
794
- datetime?: string;
729
+ datetime?: string | undefined;
795
730
  }
796
731
  export interface TrackHTMLAttributes extends HTMLAttributes {
797
- default?: Booleanish;
798
- kind?: string;
799
- label?: string;
800
- src?: string;
801
- srclang?: string;
732
+ default?: Booleanish | undefined;
733
+ kind?: string | undefined;
734
+ label?: string | undefined;
735
+ src?: string | undefined;
736
+ srclang?: string | undefined;
802
737
  }
803
738
  export interface VideoHTMLAttributes extends MediaHTMLAttributes {
804
- height?: Numberish;
805
- playsinline?: Booleanish;
806
- poster?: string;
807
- width?: Numberish;
808
- disablePictureInPicture?: Booleanish;
809
- disableRemotePlayback?: Booleanish;
739
+ height?: Numberish | undefined;
740
+ playsinline?: Booleanish | undefined;
741
+ poster?: string | undefined;
742
+ width?: Numberish | undefined;
743
+ disablePictureInPicture?: Booleanish | undefined;
744
+ disableRemotePlayback?: Booleanish | undefined;
810
745
  }
811
746
  export interface WebViewHTMLAttributes extends HTMLAttributes {
812
- allowfullscreen?: Booleanish;
813
- allowpopups?: Booleanish;
814
- autoFocus?: Booleanish;
815
- autosize?: Booleanish;
816
- blinkfeatures?: string;
817
- disableblinkfeatures?: string;
818
- disableguestresize?: Booleanish;
819
- disablewebsecurity?: Booleanish;
820
- guestinstance?: string;
821
- httpreferrer?: string;
822
- nodeintegration?: Booleanish;
823
- partition?: string;
824
- plugins?: Booleanish;
825
- preload?: string;
826
- src?: string;
827
- useragent?: string;
828
- webpreferences?: string;
747
+ allowfullscreen?: Booleanish | undefined;
748
+ allowpopups?: Booleanish | undefined;
749
+ autoFocus?: Booleanish | undefined;
750
+ autosize?: Booleanish | undefined;
751
+ blinkfeatures?: string | undefined;
752
+ disableblinkfeatures?: string | undefined;
753
+ disableguestresize?: Booleanish | undefined;
754
+ disablewebsecurity?: Booleanish | undefined;
755
+ guestinstance?: string | undefined;
756
+ httpreferrer?: string | undefined;
757
+ nodeintegration?: Booleanish | undefined;
758
+ partition?: string | undefined;
759
+ plugins?: Booleanish | undefined;
760
+ preload?: string | undefined;
761
+ src?: string | undefined;
762
+ useragent?: string | undefined;
763
+ webpreferences?: string | undefined;
829
764
  }
830
765
  export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
831
- innerHTML?: string;
766
+ innerHTML?: string | undefined;
832
767
  /**
833
768
  * SVG Styling Attributes
834
769
  * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
835
770
  */
836
- class?: any;
837
- style?: StyleValue;
838
- color?: string;
839
- height?: Numberish;
840
- id?: string;
841
- lang?: string;
842
- max?: Numberish;
843
- media?: string;
844
- method?: string;
845
- min?: Numberish;
846
- name?: string;
847
- target?: string;
848
- type?: string;
849
- width?: Numberish;
850
- role?: string;
851
- tabindex?: Numberish;
852
- crossOrigin?: 'anonymous' | 'use-credentials' | '';
853
- 'accent-height'?: Numberish;
854
- accumulate?: 'none' | 'sum';
855
- additive?: 'replace' | 'sum';
856
- 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
857
- allowReorder?: 'no' | 'yes';
858
- alphabetic?: Numberish;
859
- amplitude?: Numberish;
860
- 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated';
861
- ascent?: Numberish;
862
- attributeName?: string;
863
- attributeType?: string;
864
- autoReverse?: Numberish;
865
- azimuth?: Numberish;
866
- baseFrequency?: Numberish;
867
- 'baseline-shift'?: Numberish;
868
- baseProfile?: Numberish;
869
- bbox?: Numberish;
870
- begin?: Numberish;
871
- bias?: Numberish;
872
- by?: Numberish;
873
- calcMode?: Numberish;
874
- 'cap-height'?: Numberish;
875
- clip?: Numberish;
876
- 'clip-path'?: string;
877
- clipPathUnits?: Numberish;
878
- 'clip-rule'?: Numberish;
879
- 'color-interpolation'?: Numberish;
880
- 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit';
881
- 'color-profile'?: Numberish;
882
- 'color-rendering'?: Numberish;
883
- contentScriptType?: Numberish;
884
- contentStyleType?: Numberish;
885
- cursor?: Numberish;
886
- cx?: Numberish;
887
- cy?: Numberish;
888
- d?: string;
889
- decelerate?: Numberish;
890
- descent?: Numberish;
891
- diffuseConstant?: Numberish;
892
- direction?: Numberish;
893
- display?: Numberish;
894
- divisor?: Numberish;
895
- 'dominant-baseline'?: Numberish;
896
- dur?: Numberish;
897
- dx?: Numberish;
898
- dy?: Numberish;
899
- edgeMode?: Numberish;
900
- elevation?: Numberish;
901
- 'enable-background'?: Numberish;
902
- end?: Numberish;
903
- exponent?: Numberish;
904
- externalResourcesRequired?: Numberish;
905
- fill?: string;
906
- 'fill-opacity'?: Numberish;
907
- 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
908
- filter?: string;
909
- filterRes?: Numberish;
910
- filterUnits?: Numberish;
911
- 'flood-color'?: Numberish;
912
- 'flood-opacity'?: Numberish;
913
- focusable?: Numberish;
914
- 'font-family'?: string;
915
- 'font-size'?: Numberish;
916
- 'font-size-adjust'?: Numberish;
917
- 'font-stretch'?: Numberish;
918
- 'font-style'?: Numberish;
919
- 'font-variant'?: Numberish;
920
- 'font-weight'?: Numberish;
921
- format?: Numberish;
922
- from?: Numberish;
923
- fx?: Numberish;
924
- fy?: Numberish;
925
- g1?: Numberish;
926
- g2?: Numberish;
927
- 'glyph-name'?: Numberish;
928
- 'glyph-orientation-horizontal'?: Numberish;
929
- 'glyph-orientation-vertical'?: Numberish;
930
- glyphRef?: Numberish;
931
- gradientTransform?: string;
932
- gradientUnits?: string;
933
- hanging?: Numberish;
934
- 'horiz-adv-x'?: Numberish;
935
- 'horiz-origin-x'?: Numberish;
936
- href?: string;
937
- ideographic?: Numberish;
938
- 'image-rendering'?: Numberish;
939
- in2?: Numberish;
940
- in?: string;
941
- intercept?: Numberish;
942
- k1?: Numberish;
943
- k2?: Numberish;
944
- k3?: Numberish;
945
- k4?: Numberish;
946
- k?: Numberish;
947
- kernelMatrix?: Numberish;
948
- kernelUnitLength?: Numberish;
949
- kerning?: Numberish;
950
- keyPoints?: Numberish;
951
- keySplines?: Numberish;
952
- keyTimes?: Numberish;
953
- lengthAdjust?: Numberish;
954
- 'letter-spacing'?: Numberish;
955
- 'lighting-color'?: Numberish;
956
- limitingConeAngle?: Numberish;
957
- local?: Numberish;
958
- 'marker-end'?: string;
959
- markerHeight?: Numberish;
960
- 'marker-mid'?: string;
961
- 'marker-start'?: string;
962
- markerUnits?: Numberish;
963
- markerWidth?: Numberish;
964
- mask?: string;
965
- maskContentUnits?: Numberish;
966
- maskUnits?: Numberish;
967
- mathematical?: Numberish;
968
- mode?: Numberish;
969
- numOctaves?: Numberish;
970
- offset?: Numberish;
971
- opacity?: Numberish;
972
- operator?: Numberish;
973
- order?: Numberish;
974
- orient?: Numberish;
975
- orientation?: Numberish;
976
- origin?: Numberish;
977
- overflow?: Numberish;
978
- 'overline-position'?: Numberish;
979
- 'overline-thickness'?: Numberish;
980
- 'paint-order'?: Numberish;
981
- 'panose-1'?: Numberish;
982
- pathLength?: Numberish;
983
- patternContentUnits?: string;
984
- patternTransform?: Numberish;
985
- patternUnits?: string;
986
- 'pointer-events'?: Numberish;
987
- points?: string;
988
- pointsAtX?: Numberish;
989
- pointsAtY?: Numberish;
990
- pointsAtZ?: Numberish;
991
- preserveAlpha?: Numberish;
992
- preserveAspectRatio?: string;
993
- primitiveUnits?: Numberish;
994
- r?: Numberish;
995
- radius?: Numberish;
996
- refX?: Numberish;
997
- refY?: Numberish;
998
- renderingIntent?: Numberish;
999
- repeatCount?: Numberish;
1000
- repeatDur?: Numberish;
1001
- requiredExtensions?: Numberish;
1002
- requiredFeatures?: Numberish;
1003
- restart?: Numberish;
1004
- result?: string;
1005
- rotate?: Numberish;
1006
- rx?: Numberish;
1007
- ry?: Numberish;
1008
- scale?: Numberish;
1009
- seed?: Numberish;
1010
- 'shape-rendering'?: Numberish;
1011
- slope?: Numberish;
1012
- spacing?: Numberish;
1013
- specularConstant?: Numberish;
1014
- specularExponent?: Numberish;
1015
- speed?: Numberish;
1016
- spreadMethod?: string;
1017
- startOffset?: Numberish;
1018
- stdDeviation?: Numberish;
1019
- stemh?: Numberish;
1020
- stemv?: Numberish;
1021
- stitchTiles?: Numberish;
1022
- 'stop-color'?: string;
1023
- 'stop-opacity'?: Numberish;
1024
- 'strikethrough-position'?: Numberish;
1025
- 'strikethrough-thickness'?: Numberish;
1026
- string?: Numberish;
1027
- stroke?: string;
1028
- 'stroke-dasharray'?: Numberish;
1029
- 'stroke-dashoffset'?: Numberish;
1030
- 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
1031
- 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit';
1032
- 'stroke-miterlimit'?: Numberish;
1033
- 'stroke-opacity'?: Numberish;
1034
- 'stroke-width'?: Numberish;
1035
- surfaceScale?: Numberish;
1036
- systemLanguage?: Numberish;
1037
- tableValues?: Numberish;
1038
- targetX?: Numberish;
1039
- targetY?: Numberish;
1040
- 'text-anchor'?: string;
1041
- 'text-decoration'?: Numberish;
1042
- textLength?: Numberish;
1043
- 'text-rendering'?: Numberish;
1044
- to?: Numberish;
1045
- transform?: string;
1046
- u1?: Numberish;
1047
- u2?: Numberish;
1048
- 'underline-position'?: Numberish;
1049
- 'underline-thickness'?: Numberish;
1050
- unicode?: Numberish;
1051
- 'unicode-bidi'?: Numberish;
1052
- 'unicode-range'?: Numberish;
1053
- 'unitsPer-em'?: Numberish;
1054
- 'v-alphabetic'?: Numberish;
1055
- values?: string;
1056
- 'vector-effect'?: Numberish;
1057
- version?: string;
1058
- 'vert-adv-y'?: Numberish;
1059
- 'vert-origin-x'?: Numberish;
1060
- 'vert-origin-y'?: Numberish;
1061
- 'v-hanging'?: Numberish;
1062
- 'v-ideographic'?: Numberish;
1063
- viewBox?: string;
1064
- viewTarget?: Numberish;
1065
- visibility?: Numberish;
1066
- 'v-mathematical'?: Numberish;
1067
- widths?: Numberish;
1068
- 'word-spacing'?: Numberish;
1069
- 'writing-mode'?: Numberish;
1070
- x1?: Numberish;
1071
- x2?: Numberish;
1072
- x?: Numberish;
1073
- xChannelSelector?: string;
1074
- 'x-height'?: Numberish;
1075
- xlinkActuate?: string;
1076
- xlinkArcrole?: string;
1077
- xlinkHref?: string;
1078
- xlinkRole?: string;
1079
- xlinkShow?: string;
1080
- xlinkTitle?: string;
1081
- xlinkType?: string;
1082
- xmlns?: string;
1083
- xmlnsXlink?: string;
1084
- y1?: Numberish;
1085
- y2?: Numberish;
1086
- y?: Numberish;
1087
- yChannelSelector?: string;
1088
- z?: Numberish;
1089
- zoomAndPan?: string;
771
+ class?: ClassValue | undefined;
772
+ style?: StyleValue | undefined;
773
+ color?: string | undefined;
774
+ height?: Numberish | undefined;
775
+ id?: string | undefined;
776
+ lang?: string | undefined;
777
+ max?: Numberish | undefined;
778
+ media?: string | undefined;
779
+ method?: string | undefined;
780
+ min?: Numberish | undefined;
781
+ name?: string | undefined;
782
+ target?: string | undefined;
783
+ type?: string | undefined;
784
+ width?: Numberish | undefined;
785
+ role?: string | undefined;
786
+ tabindex?: Numberish | undefined;
787
+ crossOrigin?: 'anonymous' | 'use-credentials' | '' | undefined;
788
+ 'accent-height'?: Numberish | undefined;
789
+ accumulate?: 'none' | 'sum' | undefined;
790
+ additive?: 'replace' | 'sum' | undefined;
791
+ 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit' | undefined;
792
+ allowReorder?: 'no' | 'yes' | undefined;
793
+ alphabetic?: Numberish | undefined;
794
+ amplitude?: Numberish | undefined;
795
+ 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated' | undefined;
796
+ ascent?: Numberish | undefined;
797
+ attributeName?: string | undefined;
798
+ attributeType?: string | undefined;
799
+ autoReverse?: Numberish | undefined;
800
+ azimuth?: Numberish | undefined;
801
+ baseFrequency?: Numberish | undefined;
802
+ 'baseline-shift'?: Numberish | undefined;
803
+ baseProfile?: Numberish | undefined;
804
+ bbox?: Numberish | undefined;
805
+ begin?: Numberish | undefined;
806
+ bias?: Numberish | undefined;
807
+ by?: Numberish | undefined;
808
+ calcMode?: Numberish | undefined;
809
+ 'cap-height'?: Numberish | undefined;
810
+ clip?: Numberish | undefined;
811
+ 'clip-path'?: string | undefined;
812
+ clipPathUnits?: Numberish | undefined;
813
+ 'clip-rule'?: Numberish | undefined;
814
+ 'color-interpolation'?: Numberish | undefined;
815
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined;
816
+ 'color-profile'?: Numberish | undefined;
817
+ 'color-rendering'?: Numberish | undefined;
818
+ contentScriptType?: Numberish | undefined;
819
+ contentStyleType?: Numberish | undefined;
820
+ cursor?: Numberish | undefined;
821
+ cx?: Numberish | undefined;
822
+ cy?: Numberish | undefined;
823
+ d?: string | undefined;
824
+ decelerate?: Numberish | undefined;
825
+ descent?: Numberish | undefined;
826
+ diffuseConstant?: Numberish | undefined;
827
+ direction?: Numberish | undefined;
828
+ display?: Numberish | undefined;
829
+ divisor?: Numberish | undefined;
830
+ 'dominant-baseline'?: Numberish | undefined;
831
+ dur?: Numberish | undefined;
832
+ dx?: Numberish | undefined;
833
+ dy?: Numberish | undefined;
834
+ edgeMode?: Numberish | undefined;
835
+ elevation?: Numberish | undefined;
836
+ 'enable-background'?: Numberish | undefined;
837
+ end?: Numberish | undefined;
838
+ exponent?: Numberish | undefined;
839
+ externalResourcesRequired?: Numberish | undefined;
840
+ fill?: string | undefined;
841
+ 'fill-opacity'?: Numberish | undefined;
842
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit' | undefined;
843
+ filter?: string | undefined;
844
+ filterRes?: Numberish | undefined;
845
+ filterUnits?: Numberish | undefined;
846
+ 'flood-color'?: Numberish | undefined;
847
+ 'flood-opacity'?: Numberish | undefined;
848
+ focusable?: Numberish | undefined;
849
+ 'font-family'?: string | undefined;
850
+ 'font-size'?: Numberish | undefined;
851
+ 'font-size-adjust'?: Numberish | undefined;
852
+ 'font-stretch'?: Numberish | undefined;
853
+ 'font-style'?: Numberish | undefined;
854
+ 'font-variant'?: Numberish | undefined;
855
+ 'font-weight'?: Numberish | undefined;
856
+ format?: Numberish | undefined;
857
+ from?: Numberish | undefined;
858
+ fx?: Numberish | undefined;
859
+ fy?: Numberish | undefined;
860
+ g1?: Numberish | undefined;
861
+ g2?: Numberish | undefined;
862
+ 'glyph-name'?: Numberish | undefined;
863
+ 'glyph-orientation-horizontal'?: Numberish | undefined;
864
+ 'glyph-orientation-vertical'?: Numberish | undefined;
865
+ glyphRef?: Numberish | undefined;
866
+ gradientTransform?: string | undefined;
867
+ gradientUnits?: string | undefined;
868
+ hanging?: Numberish | undefined;
869
+ 'horiz-adv-x'?: Numberish | undefined;
870
+ 'horiz-origin-x'?: Numberish | undefined;
871
+ href?: string | undefined;
872
+ ideographic?: Numberish | undefined;
873
+ 'image-rendering'?: Numberish | undefined;
874
+ in2?: Numberish | undefined;
875
+ in?: string | undefined;
876
+ intercept?: Numberish | undefined;
877
+ k1?: Numberish | undefined;
878
+ k2?: Numberish | undefined;
879
+ k3?: Numberish | undefined;
880
+ k4?: Numberish | undefined;
881
+ k?: Numberish | undefined;
882
+ kernelMatrix?: Numberish | undefined;
883
+ kernelUnitLength?: Numberish | undefined;
884
+ kerning?: Numberish | undefined;
885
+ keyPoints?: Numberish | undefined;
886
+ keySplines?: Numberish | undefined;
887
+ keyTimes?: Numberish | undefined;
888
+ lengthAdjust?: Numberish | undefined;
889
+ 'letter-spacing'?: Numberish | undefined;
890
+ 'lighting-color'?: Numberish | undefined;
891
+ limitingConeAngle?: Numberish | undefined;
892
+ local?: Numberish | undefined;
893
+ 'marker-end'?: string | undefined;
894
+ markerHeight?: Numberish | undefined;
895
+ 'marker-mid'?: string | undefined;
896
+ 'marker-start'?: string | undefined;
897
+ markerUnits?: Numberish | undefined;
898
+ markerWidth?: Numberish | undefined;
899
+ mask?: string | undefined;
900
+ maskContentUnits?: Numberish | undefined;
901
+ maskUnits?: Numberish | undefined;
902
+ mathematical?: Numberish | undefined;
903
+ mode?: Numberish | undefined;
904
+ numOctaves?: Numberish | undefined;
905
+ offset?: Numberish | undefined;
906
+ opacity?: Numberish | undefined;
907
+ operator?: Numberish | undefined;
908
+ order?: Numberish | undefined;
909
+ orient?: Numberish | undefined;
910
+ orientation?: Numberish | undefined;
911
+ origin?: Numberish | undefined;
912
+ overflow?: Numberish | undefined;
913
+ 'overline-position'?: Numberish | undefined;
914
+ 'overline-thickness'?: Numberish | undefined;
915
+ 'paint-order'?: Numberish | undefined;
916
+ 'panose-1'?: Numberish | undefined;
917
+ pathLength?: Numberish | undefined;
918
+ patternContentUnits?: string | undefined;
919
+ patternTransform?: Numberish | undefined;
920
+ patternUnits?: string | undefined;
921
+ 'pointer-events'?: Numberish | undefined;
922
+ points?: string | undefined;
923
+ pointsAtX?: Numberish | undefined;
924
+ pointsAtY?: Numberish | undefined;
925
+ pointsAtZ?: Numberish | undefined;
926
+ preserveAlpha?: Numberish | undefined;
927
+ preserveAspectRatio?: string | undefined;
928
+ primitiveUnits?: Numberish | undefined;
929
+ r?: Numberish | undefined;
930
+ radius?: Numberish | undefined;
931
+ refX?: Numberish | undefined;
932
+ refY?: Numberish | undefined;
933
+ renderingIntent?: Numberish | undefined;
934
+ repeatCount?: Numberish | undefined;
935
+ repeatDur?: Numberish | undefined;
936
+ requiredExtensions?: Numberish | undefined;
937
+ requiredFeatures?: Numberish | undefined;
938
+ restart?: Numberish | undefined;
939
+ result?: string | undefined;
940
+ rotate?: Numberish | undefined;
941
+ rx?: Numberish | undefined;
942
+ ry?: Numberish | undefined;
943
+ scale?: Numberish | undefined;
944
+ seed?: Numberish | undefined;
945
+ 'shape-rendering'?: Numberish | undefined;
946
+ slope?: Numberish | undefined;
947
+ spacing?: Numberish | undefined;
948
+ specularConstant?: Numberish | undefined;
949
+ specularExponent?: Numberish | undefined;
950
+ speed?: Numberish | undefined;
951
+ spreadMethod?: string | undefined;
952
+ startOffset?: Numberish | undefined;
953
+ stdDeviation?: Numberish | undefined;
954
+ stemh?: Numberish | undefined;
955
+ stemv?: Numberish | undefined;
956
+ stitchTiles?: Numberish | undefined;
957
+ 'stop-color'?: string | undefined;
958
+ 'stop-opacity'?: Numberish | undefined;
959
+ 'strikethrough-position'?: Numberish | undefined;
960
+ 'strikethrough-thickness'?: Numberish | undefined;
961
+ string?: Numberish | undefined;
962
+ stroke?: string | undefined;
963
+ 'stroke-dasharray'?: Numberish | undefined;
964
+ 'stroke-dashoffset'?: Numberish | undefined;
965
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
966
+ 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit' | undefined;
967
+ 'stroke-miterlimit'?: Numberish | undefined;
968
+ 'stroke-opacity'?: Numberish | undefined;
969
+ 'stroke-width'?: Numberish | undefined;
970
+ surfaceScale?: Numberish | undefined;
971
+ systemLanguage?: Numberish | undefined;
972
+ tableValues?: Numberish | undefined;
973
+ targetX?: Numberish | undefined;
974
+ targetY?: Numberish | undefined;
975
+ 'text-anchor'?: string | undefined;
976
+ 'text-decoration'?: Numberish | undefined;
977
+ textLength?: Numberish | undefined;
978
+ 'text-rendering'?: Numberish | undefined;
979
+ to?: Numberish | undefined;
980
+ transform?: string | undefined;
981
+ u1?: Numberish | undefined;
982
+ u2?: Numberish | undefined;
983
+ 'underline-position'?: Numberish | undefined;
984
+ 'underline-thickness'?: Numberish | undefined;
985
+ unicode?: Numberish | undefined;
986
+ 'unicode-bidi'?: Numberish | undefined;
987
+ 'unicode-range'?: Numberish | undefined;
988
+ 'unitsPer-em'?: Numberish | undefined;
989
+ 'v-alphabetic'?: Numberish | undefined;
990
+ values?: string | undefined;
991
+ 'vector-effect'?: Numberish | undefined;
992
+ version?: string | undefined;
993
+ 'vert-adv-y'?: Numberish | undefined;
994
+ 'vert-origin-x'?: Numberish | undefined;
995
+ 'vert-origin-y'?: Numberish | undefined;
996
+ 'v-hanging'?: Numberish | undefined;
997
+ 'v-ideographic'?: Numberish | undefined;
998
+ viewBox?: string | undefined;
999
+ viewTarget?: Numberish | undefined;
1000
+ visibility?: Numberish | undefined;
1001
+ 'v-mathematical'?: Numberish | undefined;
1002
+ widths?: Numberish | undefined;
1003
+ 'word-spacing'?: Numberish | undefined;
1004
+ 'writing-mode'?: Numberish | undefined;
1005
+ x1?: Numberish | undefined;
1006
+ x2?: Numberish | undefined;
1007
+ x?: Numberish | undefined;
1008
+ xChannelSelector?: string | undefined;
1009
+ 'x-height'?: Numberish | undefined;
1010
+ xlinkActuate?: string | undefined;
1011
+ xlinkArcrole?: string | undefined;
1012
+ xlinkHref?: string | undefined;
1013
+ xlinkRole?: string | undefined;
1014
+ xlinkShow?: string | undefined;
1015
+ xlinkTitle?: string | undefined;
1016
+ xlinkType?: string | undefined;
1017
+ xmlns?: string | undefined;
1018
+ xmlnsXlink?: string | undefined;
1019
+ y1?: Numberish | undefined;
1020
+ y2?: Numberish | undefined;
1021
+ y?: Numberish | undefined;
1022
+ yChannelSelector?: string | undefined;
1023
+ z?: Numberish | undefined;
1024
+ zoomAndPan?: string | undefined;
1090
1025
  }
1091
1026
  export interface IntrinsicElementAttributes {
1092
1027
  a: AnchorHTMLAttributes;
@@ -1253,6 +1188,7 @@ export interface IntrinsicElementAttributes {
1253
1188
  polyline: SVGAttributes;
1254
1189
  radialGradient: SVGAttributes;
1255
1190
  rect: SVGAttributes;
1191
+ set: SVGAttributes;
1256
1192
  stop: SVGAttributes;
1257
1193
  switch: SVGAttributes;
1258
1194
  symbol: SVGAttributes;
@@ -1282,19 +1218,19 @@ export interface Events {
1282
1218
  onFocusout: FocusEvent;
1283
1219
  onBlur: FocusEvent;
1284
1220
  onChange: Event;
1285
- onBeforeinput: Event;
1286
- onInput: Event;
1221
+ onBeforeinput: InputEvent;
1222
+ onFormdata: FormDataEvent;
1223
+ onInput: InputEvent;
1287
1224
  onReset: Event;
1288
- onSubmit: Event;
1225
+ onSubmit: SubmitEvent;
1289
1226
  onInvalid: Event;
1227
+ onFullscreenchange: Event;
1228
+ onFullscreenerror: Event;
1290
1229
  onLoad: Event;
1291
1230
  onError: Event;
1292
1231
  onKeydown: KeyboardEvent;
1293
1232
  onKeypress: KeyboardEvent;
1294
1233
  onKeyup: KeyboardEvent;
1295
- onAuxclick: MouseEvent;
1296
- onClick: MouseEvent;
1297
- onContextmenu: MouseEvent;
1298
1234
  onDblclick: MouseEvent;
1299
1235
  onMousedown: MouseEvent;
1300
1236
  onMouseenter: MouseEvent;
@@ -1303,12 +1239,12 @@ export interface Events {
1303
1239
  onMouseout: MouseEvent;
1304
1240
  onMouseover: MouseEvent;
1305
1241
  onMouseup: MouseEvent;
1306
- onAbort: Event;
1242
+ onAbort: UIEvent;
1307
1243
  onCanplay: Event;
1308
1244
  onCanplaythrough: Event;
1309
1245
  onDurationchange: Event;
1310
1246
  onEmptied: Event;
1311
- onEncrypted: Event;
1247
+ onEncrypted: MediaEncryptedEvent;
1312
1248
  onEnded: Event;
1313
1249
  onLoadeddata: Event;
1314
1250
  onLoadedmetadata: Event;
@@ -1316,7 +1252,7 @@ export interface Events {
1316
1252
  onPause: Event;
1317
1253
  onPlay: Event;
1318
1254
  onPlaying: Event;
1319
- onProgress: Event;
1255
+ onProgress: ProgressEvent;
1320
1256
  onRatechange: Event;
1321
1257
  onSeeked: Event;
1322
1258
  onSeeking: Event;
@@ -1332,6 +1268,11 @@ export interface Events {
1332
1268
  onTouchend: TouchEvent;
1333
1269
  onTouchmove: TouchEvent;
1334
1270
  onTouchstart: TouchEvent;
1271
+ onAuxclick: PointerEvent;
1272
+ onClick: PointerEvent;
1273
+ onContextmenu: PointerEvent;
1274
+ onGotpointercapture: PointerEvent;
1275
+ onLostpointercapture: PointerEvent;
1335
1276
  onPointerdown: PointerEvent;
1336
1277
  onPointermove: PointerEvent;
1337
1278
  onPointerup: PointerEvent;
@@ -1340,42 +1281,154 @@ export interface Events {
1340
1281
  onPointerleave: PointerEvent;
1341
1282
  onPointerover: PointerEvent;
1342
1283
  onPointerout: PointerEvent;
1284
+ onBeforetoggle: ToggleEvent;
1285
+ onToggle: ToggleEvent;
1343
1286
  onWheel: WheelEvent;
1287
+ onAnimationcancel: AnimationEvent;
1344
1288
  onAnimationstart: AnimationEvent;
1345
1289
  onAnimationend: AnimationEvent;
1346
1290
  onAnimationiteration: AnimationEvent;
1291
+ onSecuritypolicyviolation: SecurityPolicyViolationEvent;
1292
+ onTransitioncancel: TransitionEvent;
1347
1293
  onTransitionend: TransitionEvent;
1294
+ onTransitionrun: TransitionEvent;
1348
1295
  onTransitionstart: TransitionEvent;
1349
1296
  }
1350
1297
  type EventHandlers<E> = {
1351
1298
  [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
1352
1299
  };
1353
1300
 
1354
- export type ReservedProps = {
1355
- key?: PropertyKey;
1356
- ref?: VNodeRef;
1357
- ref_for?: boolean;
1358
- ref_key?: string;
1359
- };
1301
+ export interface ReservedProps {
1302
+ key?: PropertyKey | undefined;
1303
+ ref?: VNodeRef | undefined;
1304
+ ref_for?: boolean | undefined;
1305
+ ref_key?: string | undefined;
1306
+ }
1360
1307
  export type NativeElements = {
1361
1308
  [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps;
1362
1309
  };
1363
1310
 
1311
+ export type VueElementConstructor<P = {}> = {
1312
+ new (initialProps?: Record<string, any>): VueElement & P;
1313
+ };
1314
+ export interface CustomElementOptions {
1315
+ styles?: string[];
1316
+ shadowRoot?: boolean;
1317
+ shadowRootOptions?: Omit<ShadowRootInit, 'mode'>;
1318
+ nonce?: string;
1319
+ configureApp?: (app: App) => void;
1320
+ }
1321
+ export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
1322
+ props?: (keyof Props)[];
1323
+ }): VueElementConstructor<Props>;
1324
+ export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'emits'> & CustomElementOptions & {
1325
+ props?: ComponentObjectPropsOptions<Props>;
1326
+ }): VueElementConstructor<Props>;
1327
+ export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
1328
+ [key in PropsKeys]?: any;
1329
+ }, ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & {
1330
+ props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
1331
+ } & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
1332
+ InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
1333
+ export declare function defineCustomElement<T extends {
1334
+ new (...args: any[]): ComponentPublicInstance<any>;
1335
+ }>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
1336
+ export declare const defineSSRCustomElement: typeof defineCustomElement;
1337
+ declare const BaseClass: typeof HTMLElement;
1338
+ type InnerComponentDef = ConcreteComponent & CustomElementOptions;
1339
+ export declare class VueElement extends BaseClass implements ComponentCustomElementInterface {
1340
+ /**
1341
+ * Component def - note this may be an AsyncWrapper, and this._def will
1342
+ * be overwritten by the inner component when resolved.
1343
+ */
1344
+ private _def;
1345
+ private _props;
1346
+ private _createApp;
1347
+ _isVueCE: boolean;
1348
+ private _connected;
1349
+ private _resolved;
1350
+ private _patching;
1351
+ private _dirty;
1352
+ private _numberProps;
1353
+ private _styleChildren;
1354
+ private _pendingResolve;
1355
+ private _parent;
1356
+ private _styleAnchors;
1357
+ /**
1358
+ * dev only
1359
+ */
1360
+ private _styles?;
1361
+ /**
1362
+ * dev only
1363
+ */
1364
+ private _childStyles?;
1365
+ private _ob?;
1366
+ private _slots?;
1367
+ constructor(
1368
+ /**
1369
+ * Component def - note this may be an AsyncWrapper, and this._def will
1370
+ * be overwritten by the inner component when resolved.
1371
+ */
1372
+ _def: InnerComponentDef, _props?: Record<string, any>, _createApp?: CreateAppFunction<Element>);
1373
+ connectedCallback(): void;
1374
+ private _setParent;
1375
+ private _inheritParentContext;
1376
+ disconnectedCallback(): void;
1377
+ private _processMutations;
1378
+ /**
1379
+ * resolve inner component definition (handle possible async component)
1380
+ */
1381
+ private _resolveDef;
1382
+ private _mount;
1383
+ private _resolveProps;
1384
+ protected _setAttr(key: string): void;
1385
+ private _update;
1386
+ private _createVNode;
1387
+ private _applyStyles;
1388
+ private _getStyleAnchor;
1389
+ private _getRootStyleInsertionAnchor;
1390
+ /**
1391
+ * Only called when shadowRoot is false
1392
+ */
1393
+ private _parseSlots;
1394
+ /**
1395
+ * Only called when shadowRoot is false
1396
+ */
1397
+ private _renderSlots;
1398
+ }
1399
+ export declare function useHost(caller?: string): VueElement | null;
1400
+ /**
1401
+ * Retrieve the shadowRoot of the current custom element. Only usable in setup()
1402
+ * of a `defineCustomElement` component.
1403
+ */
1404
+ export declare function useShadowRoot(): ShadowRoot | null;
1405
+
1406
+ export declare function useCssModule(name?: string): Record<string, string>;
1407
+
1408
+ /**
1409
+ * Runtime helper for SFC's CSS variable injection feature.
1410
+ * @private
1411
+ */
1412
+ export declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
1413
+
1364
1414
  /**
1365
1415
  * This is a stub implementation to prevent the need to use dom types.
1366
1416
  *
1367
1417
  * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
1368
1418
  */
1369
- type DomStub = {};
1370
1419
  type DomType<T> = typeof globalThis extends {
1371
1420
  window: unknown;
1372
- } ? T : DomStub;
1421
+ } ? T : never;
1373
1422
  declare module '@vue/reactivity' {
1374
1423
  interface RefUnwrapBailTypes {
1375
1424
  runtimeDOMBailTypes: DomType<Node | Window>;
1376
1425
  }
1377
1426
  }
1378
1427
  declare module '@vue/runtime-core' {
1428
+ interface AllowedAttrs {
1429
+ class?: ClassValue;
1430
+ style?: StyleValue;
1431
+ }
1379
1432
  interface GlobalComponents {
1380
1433
  Transition: DefineComponent<TransitionProps>;
1381
1434
  TransitionGroup: DefineComponent<TransitionGroupProps>;
@@ -1385,8 +1438,8 @@ declare module '@vue/runtime-core' {
1385
1438
  vOn: VOnDirective;
1386
1439
  vBind: VModelDirective;
1387
1440
  vIf: Directive<any, boolean>;
1388
- VOnce: Directive;
1389
- VSlot: Directive;
1441
+ vOnce: Directive;
1442
+ vSlot: Directive;
1390
1443
  }
1391
1444
  }
1392
1445
  export declare const rendererOptions: RendererOptions<Node, Element>;