@stencil/core 5.0.0-alpha.1 → 5.0.0-alpha.3

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.
Files changed (42) hide show
  1. package/dist/{client-B1nuvCd2.mjs → client-CSm3x5ke.mjs} +81 -60
  2. package/dist/compiler/index.d.mts +3 -3
  3. package/dist/compiler/index.mjs +2 -2
  4. package/dist/compiler/utils/index.d.mts +2 -2
  5. package/dist/compiler/utils/index.mjs +3 -3
  6. package/dist/{compiler-LX4_RKKd.mjs → compiler-D6iP7Bzb.mjs} +1391 -1631
  7. package/dist/declarations/stencil-public-compiler.d.ts +4031 -2
  8. package/dist/declarations/stencil-public-compiler.js +0 -1
  9. package/dist/declarations/stencil-public-docs.d.ts +494 -1
  10. package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
  11. package/dist/{index-fIuYTL9f.d.mts → index-CXHCTQNt.d.mts} +14 -2
  12. package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
  13. package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
  14. package/dist/{index-D-LlB2nw.d.mts → index-tUR6pD3J.d.mts} +145 -809
  15. package/dist/index.d.mts +1 -0
  16. package/dist/index.mjs +2 -2
  17. package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
  18. package/dist/jsx-runtime.d.ts +1 -1
  19. package/dist/jsx-runtime.js +1 -1
  20. package/dist/{node-SxQIOCZE.mjs → node-Bg-mO5dw.mjs} +3 -14
  21. package/dist/regular-expression-D5pGVpCu.mjs +415 -0
  22. package/dist/runtime/app-data/index.d.ts +1 -1
  23. package/dist/runtime/app-data/index.js +1 -2
  24. package/dist/runtime/client/index.d.ts +14 -4
  25. package/dist/runtime/client/index.js +103 -192
  26. package/dist/runtime/index.d.ts +16 -4
  27. package/dist/runtime/index.js +2 -2
  28. package/dist/runtime/server/index.d.mts +1 -3
  29. package/dist/runtime/server/index.mjs +103 -192
  30. package/dist/runtime/server/runner.d.mts +1 -17
  31. package/dist/runtime/server/runner.mjs +12 -368
  32. package/dist/{runtime-CF9DJtSu.js → runtime-BBCnuprF.js} +103 -192
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +3 -3
  37. package/dist/testing/index.mjs +18 -17
  38. package/dist/{validation-CaCgjw-f.mjs → validation-Byxie0Uk.mjs} +28 -24
  39. package/package.json +9 -13
  40. package/dist/serialize-BkYHk7Mi.mjs +0 -766
  41. package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
  42. package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
@@ -1,2 +1,1943 @@
1
- import { $ as ResolveVarFunction, A as HostAttributes, B as MethodOptions, C as EventEmitter, Ct as setNonce, D as FunctionalUtilities, Dt as writeTask, E as FunctionalComponent, Et as transformTag, F as ListenOptions, G as Prop, H as Mixin, I as ListenTargetOptions, J as PropSerialize, K as PropDecorator, L as LocalJSX, M as JSXBase, N as Listen, O as HTMLStencilElement, P as ListenDecorator, Q as ResolutionHandler, R as Method, S as EventDecorator, St as setMode, T as Fragment, Tt as setTagTransformer, U as MixinFactory, V as MixedInCtor, W as ModeStyles, X as QueueApi, Y as PropSerializeDecorator, Z as RafCallback, _ as Element, _t as readTask, a as AttrDeserializeDecorator, at as VNode, b as ErrorHandler, bt as setAssetPath, c as Component, ct as WatchDecorator, d as ComponentDidUpdate, dt as getElement, et as ShadowRootOptions, f as ComponentInterface, ft as getMode, g as CustomElementsDefineOptions, gt as jsxs, h as ComponentWillUpdate, ht as jsx, i as AttrDeserialize, it as UserBuildConditionals, j as JSXAttributes, k as Host, l as ComponentDecorator, lt as forceUpdate, m as ComponentWillLoad, mt as h, n as AttachInternalsDecorator, nt as StateDecorator, o as Build, ot as VNodeData, p as ComponentOptions, pt as getRenderingRef, q as PropOptions, r as AttachInternalsOptions, rt as TagTransformer, s as ChildNode, st as Watch, t as AttachInternals, tt as State, u as ComponentDidLoad, ut as getAssetPath, v as ElementDecorator, vt as render, w as EventOptions, wt as setPlatformHelpers, x as Event, xt as setErrorHandler, y as Env, yt as resolveVar, z as MethodDecorator } from "../stencil-public-runtime-DlV8o7-z.js";
2
- export { AttachInternals, AttachInternalsDecorator, AttachInternalsOptions, AttrDeserialize, AttrDeserializeDecorator, Build, ChildNode, Component, ComponentDecorator, ComponentDidLoad, ComponentDidUpdate, ComponentInterface, ComponentOptions, ComponentWillLoad, ComponentWillUpdate, CustomElementsDefineOptions, Element, ElementDecorator, Env, ErrorHandler, Event, EventDecorator, EventEmitter, EventOptions, Fragment, FunctionalComponent, FunctionalUtilities, HTMLStencilElement, Host, HostAttributes, LocalJSX as JSX, JSXAttributes, JSXBase, Listen, ListenDecorator, ListenOptions, ListenTargetOptions, Method, MethodDecorator, MethodOptions, MixedInCtor, Mixin, MixinFactory, ModeStyles, Prop, PropDecorator, PropOptions, PropSerialize, PropSerializeDecorator, QueueApi, RafCallback, ResolutionHandler, ResolveVarFunction, ShadowRootOptions, State, StateDecorator, TagTransformer, UserBuildConditionals, VNode, VNodeData, Watch, WatchDecorator, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, h, jsx, jsxs, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
1
+ //#region src/declarations/stencil-public-runtime.d.ts
2
+ type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
3
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
4
+ type MixinInstance<F> = F extends ((base: MixedInCtor) => MixedInCtor<infer I>) ? I : never;
5
+ interface ComponentDecorator {
6
+ (opts?: ComponentOptions): ClassDecorator;
7
+ }
8
+ interface ComponentOptions {
9
+ /**
10
+ * Tag name of the web component. Ideally, the tag name must be globally unique,
11
+ * so it's recommended to choose an unique prefix for all your components within the same collection.
12
+ *
13
+ * In addition, tag name must contain a '-'
14
+ */
15
+ tag: string;
16
+ /**
17
+ * Encapsulation strategy for the component. Determines how styles and DOM are isolated.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * // Shadow DOM (recommended for isolation)
22
+ * encapsulation: { type: 'shadow' }
23
+ * encapsulation: { type: 'shadow', mode: 'closed', delegatesFocus: true }
24
+ *
25
+ * // Scoped styles (class-based isolation without Shadow DOM)
26
+ * encapsulation: { type: 'scoped' }
27
+ *
28
+ * // No encapsulation (light DOM)
29
+ * encapsulation: { type: 'none' }
30
+ * encapsulation: { type: 'none', patches: ['all'] } // with slot patches
31
+ * ```
32
+ *
33
+ * If not specified, defaults to `{ type: 'none' }` (no encapsulation).
34
+ */
35
+ encapsulation?: EncapsulationOptions;
36
+ /**
37
+ * Relative URL to some external stylesheet file. It should be a `.css` file unless some
38
+ * external plugin is installed like `@stencil/sass`.
39
+ */
40
+ styleUrl?: string;
41
+ /**
42
+ * Similar as `styleUrl` but allows to specify different stylesheets for different modes.
43
+ */
44
+ styleUrls?: string[] | ModeStyles;
45
+ /**
46
+ * String that contains inlined CSS instead of using an external stylesheet.
47
+ * The performance characteristics of this feature are the same as using an external stylesheet.
48
+ *
49
+ * Notice, you can't use sass, or less, only `css` is allowed using `styles`, use `styleUrl` is you need more advanced features.
50
+ */
51
+ styles?: string | {
52
+ [modeName: string]: any;
53
+ };
54
+ /**
55
+ * Array of relative links to folders of assets required by the component.
56
+ */
57
+ assetsDirs?: string[];
58
+ }
59
+ /**
60
+ * Shadow DOM encapsulation options for the `encapsulation` property.
61
+ * Uses native Shadow DOM for style and DOM isolation.
62
+ */
63
+ interface ShadowEncapsulation {
64
+ type: 'shadow';
65
+ /**
66
+ * The mode of the shadow root. Defaults to `'open'`.
67
+ * - `'open'`: The shadow root is accessible via `element.shadowRoot`
68
+ * - `'closed'`: The shadow root is not accessible via `element.shadowRoot`
69
+ */
70
+ mode?: 'open' | 'closed';
71
+ /**
72
+ * When set to `true`, specifies behavior that mitigates custom element issues
73
+ * around focusability. When a non-focusable part of the shadow DOM is clicked, the first
74
+ * focusable part is given focus, and the shadow host is given any available `:focus` styling.
75
+ */
76
+ delegatesFocus?: boolean;
77
+ /**
78
+ * Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
79
+ * slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
80
+ * declarative slotting behavior.
81
+ */
82
+ slotAssignment?: 'manual' | 'named';
83
+ }
84
+ /**
85
+ * Patch types for non-shadow DOM components that use slots.
86
+ * - `'all'`: Apply all slot-related patches (equivalent to `experimentalSlotFixes`)
87
+ * - `'children'`: Patch child node accessors (children, firstChild, lastChild, etc.)
88
+ * - `'clone'`: Patch `cloneNode()` to handle slotted content
89
+ * - `'insert'`: Patch `appendChild()`, `insertBefore()`, etc. for slot relocation
90
+ */
91
+ type SlotPatch = 'all' | 'children' | 'clone' | 'insert';
92
+ /**
93
+ * No encapsulation - component renders to light DOM with optional slot patches.
94
+ */
95
+ interface NoneEncapsulation {
96
+ type: 'none';
97
+ /**
98
+ * Patches to apply for slot handling in light DOM.
99
+ * Only relevant if the component uses `<slot>` elements.
100
+ */
101
+ patches?: SlotPatch[];
102
+ }
103
+ /**
104
+ * Scoped CSS encapsulation - styles are scoped via class names without Shadow DOM.
105
+ */
106
+ interface ScopedEncapsulation {
107
+ type: 'scoped';
108
+ /**
109
+ * Patches to apply for slot handling with scoped styles.
110
+ * Only relevant if the component uses `<slot>` elements.
111
+ */
112
+ patches?: SlotPatch[];
113
+ }
114
+ /**
115
+ * Encapsulation options for the `@Component()` decorator.
116
+ * Determines how styles and DOM are isolated for the component.
117
+ */
118
+ type EncapsulationOptions = ShadowEncapsulation | NoneEncapsulation | ScopedEncapsulation;
119
+ /**
120
+ * @deprecated Use `ShadowEncapsulation` with the `encapsulation` property instead.
121
+ * This interface is retained for internal use during the v4→v5 migration period.
122
+ */
123
+ interface ShadowRootOptions {
124
+ /**
125
+ * When set to `true`, specifies behavior that mitigates custom element issues
126
+ * around focusability. When a non-focusable part of the shadow DOM is clicked, the first
127
+ * focusable part is given focus, and the shadow host is given any available `:focus` styling.
128
+ */
129
+ delegatesFocus?: boolean;
130
+ /**
131
+ * Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
132
+ * slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
133
+ * declarative slotting behavior.
134
+ */
135
+ slotAssignment?: 'manual' | 'named';
136
+ }
137
+ interface ModeStyles {
138
+ [modeName: string]: string | string[];
139
+ }
140
+ interface PropDecorator {
141
+ (opts?: PropOptions): PropertyDecorator;
142
+ }
143
+ interface PropOptions {
144
+ /**
145
+ * The name of the associated DOM attribute.
146
+ * Stencil uses different heuristics to determine the default name of the attribute,
147
+ * but using this property, you can override the default behavior.
148
+ */
149
+ attribute?: string | null;
150
+ /**
151
+ * A Prop is _by default_ immutable from inside the component logic.
152
+ * Once a value is set by a user, the component cannot update it internally.
153
+ * However, it's possible to explicitly allow a Prop to be mutated from inside the component,
154
+ * by setting this `mutable` option to `true`.
155
+ */
156
+ mutable?: boolean;
157
+ /**
158
+ * In some cases it may be useful to keep a Prop in sync with an attribute.
159
+ * In this case you can set the `reflect` option to `true`, since it defaults to `false`:
160
+ */
161
+ reflect?: boolean;
162
+ }
163
+ interface MethodDecorator {
164
+ (opts?: MethodOptions): CustomMethodDecorator<any>;
165
+ }
166
+ interface MethodOptions {}
167
+ interface ElementDecorator {
168
+ (): PropertyDecorator;
169
+ }
170
+ interface EventDecorator {
171
+ (opts?: EventOptions): PropertyDecorator;
172
+ }
173
+ interface EventOptions {
174
+ /**
175
+ * A string custom event name to override the default.
176
+ */
177
+ eventName?: string;
178
+ /**
179
+ * A Boolean indicating whether the event bubbles up through the DOM or not.
180
+ */
181
+ bubbles?: boolean;
182
+ /**
183
+ * A Boolean indicating whether the event is cancelable.
184
+ */
185
+ cancelable?: boolean;
186
+ /**
187
+ * A Boolean value indicating whether or not the event can bubble across the boundary between the shadow DOM and the regular DOM.
188
+ */
189
+ composed?: boolean;
190
+ }
191
+ interface AttachInternalsOptions {
192
+ /**
193
+ * Whether this component should be form-associated. When `true` (the default),
194
+ * the component can participate in forms like native elements such as `<input>`.
195
+ *
196
+ * Set to `false` if you only need ElementInternals for custom states or ARIA
197
+ * without form participation.
198
+ *
199
+ * @default true
200
+ * @see https://stenciljs.com/docs/form-associated
201
+ */
202
+ formAssociated?: boolean;
203
+ /**
204
+ * Initial custom states to set on the ElementInternals.states CustomStateSet.
205
+ * Each key is the state name and the value is the initial boolean state.
206
+ *
207
+ * These states can be targeted with the CSS `:state()` pseudo-class.
208
+ *
209
+ * @example
210
+ * ```tsx
211
+ * @AttachInternals({ states: { open: true, active: false } })
212
+ * internals: ElementInternals;
213
+ * ```
214
+ *
215
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
216
+ */
217
+ states?: {
218
+ [stateName: string]: boolean;
219
+ };
220
+ }
221
+ interface AttachInternalsDecorator {
222
+ (opts?: AttachInternalsOptions): PropertyDecorator;
223
+ }
224
+ interface ListenDecorator {
225
+ (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
226
+ }
227
+ interface ResolveVarFunction {
228
+ <T>(variable: T): string;
229
+ }
230
+ interface ListenOptions {
231
+ /**
232
+ * Handlers can also be registered for an event other than the host itself.
233
+ * The `target` option can be used to change where the event listener is attached,
234
+ * this is useful for listening to application-wide events.
235
+ */
236
+ target?: ListenTargetOptions;
237
+ /**
238
+ * Event listener attached with `@Listen` does not "capture" by default,
239
+ * When a event listener is set to "capture", means the event will be dispatched
240
+ * during the "capture phase". Please see
241
+ * https://www.quirksmode.org/js/events_order.html for further information.
242
+ */
243
+ capture?: boolean;
244
+ /**
245
+ * By default, Stencil uses several heuristics to determine if
246
+ * it must attach a `passive` event listener or not.
247
+ *
248
+ * Using the `passive` option can be used to change the default behavior.
249
+ * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
250
+ */
251
+ passive?: boolean;
252
+ }
253
+ type ListenTargetOptions = 'body' | 'document' | 'window';
254
+ interface StateDecorator {
255
+ (): PropertyDecorator;
256
+ }
257
+ interface WatchDecorator {
258
+ (propName: any, watchOptions?: {
259
+ immediate?: boolean;
260
+ }): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
261
+ }
262
+ interface PropSerializeDecorator {
263
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
264
+ }
265
+ interface AttrDeserializeDecorator {
266
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
267
+ }
268
+ interface UserBuildConditionals {
269
+ isDev: boolean;
270
+ isBrowser: boolean;
271
+ isServer: boolean;
272
+ isTesting: boolean;
273
+ }
274
+ /**
275
+ * The `Build` object provides many build conditionals that can be used to
276
+ * include or exclude code depending on the build.
277
+ */
278
+ declare const Build: UserBuildConditionals;
279
+ /**
280
+ * The `Env` object provides access to the "env" object declared in the project's `stencil.config.ts`.
281
+ */
282
+ declare const Env: {
283
+ [prop: string]: string | undefined;
284
+ };
285
+ /**
286
+ * The `@Component()` decorator is used to provide metadata about the component class.
287
+ * https://stenciljs.com/docs/component
288
+ */
289
+ declare const Component: ComponentDecorator;
290
+ /**
291
+ * The `@Element()` decorator is a reference to the actual host element
292
+ * once it has rendered.
293
+ */
294
+ declare const Element: ElementDecorator;
295
+ /**
296
+ * Components can emit data and events using the Event Emitter decorator.
297
+ * To dispatch Custom DOM events for other components to handle, use the
298
+ * `@Event()` decorator. The Event decorator also makes it easier for Stencil
299
+ * to automatically build types and documentation for the event data.
300
+ * https://stenciljs.com/docs/events
301
+ */
302
+ declare const Event: EventDecorator;
303
+ /**
304
+ * Decorator to attach an `ElementInternals` instance to a component.
305
+ * By default, this makes the component form-associated, allowing it to
306
+ * participate in forms like native elements (`<input>`, `<textarea>`).
307
+ *
308
+ * @example
309
+ * ```tsx
310
+ * // Form-associated component (default)
311
+ * @AttachInternals()
312
+ * internals: ElementInternals;
313
+ *
314
+ * // Opt-out of form association (for custom states/ARIA only)
315
+ * @AttachInternals({ formAssociated: false })
316
+ * internals: ElementInternals;
317
+ * ```
318
+ *
319
+ * @see https://stenciljs.com/docs/form-associated
320
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals
321
+ */
322
+ declare const AttachInternals: AttachInternalsDecorator;
323
+ /**
324
+ * The `Listen()` decorator is for listening DOM events, including the ones
325
+ * dispatched from `@Events()`.
326
+ * https://stenciljs.com/docs/events#listen-decorator
327
+ */
328
+ declare const Listen: ListenDecorator;
329
+ /**
330
+ * The `resolveVar()` function is a compile-time utility that resolves const variables
331
+ * and object properties to their string literal values. This allows variables to be
332
+ * used in `@Listen` and `@Event` decorators instead of hardcoded strings.
333
+ *
334
+ * @example
335
+ * ```ts
336
+ * const MY_EVENT = 'myEvent';
337
+ * @Listen(resolveVar(MY_EVENT))
338
+ * ```
339
+ *
340
+ * @example
341
+ * ```ts
342
+ * const EVENTS = { MY_EVENT: 'myEvent' } as const;
343
+ * @Event({ eventName: resolveVar(EVENTS.MY_EVENT) })
344
+ * ```
345
+ */
346
+ declare const resolveVar: ResolveVarFunction;
347
+ /**
348
+ * The `@Method()` decorator is used to expose methods on the public API.
349
+ * Class methods decorated with the @Method() decorator can be called directly
350
+ * from the element, meaning they are intended to be callable from the outside.
351
+ * https://stenciljs.com/docs/methods
352
+ */
353
+ declare const Method: MethodDecorator;
354
+ /**
355
+ * Props are custom attribute/properties exposed publicly on the element
356
+ * that developers can provide values for. Children components do not need to
357
+ * know about or reference parent components, so Props can be used to pass
358
+ * data down from the parent to the child. Components need to explicitly
359
+ * declare the Props they expect to receive using the `@Prop()` decorator.
360
+ * Any value changes to a Prop will cause a re-render.
361
+ * https://stenciljs.com/docs/properties
362
+ */
363
+ declare const Prop: PropDecorator;
364
+ /**
365
+ * The `@State()` decorator can be used to manage internal data for a component.
366
+ * This means that a user cannot modify this data from outside the component,
367
+ * but the component can modify it however it sees fit. Any value changes to a
368
+ * `@State()` property will cause the components render function to be called again.
369
+ * https://stenciljs.com/docs/state
370
+ */
371
+ declare const State: StateDecorator;
372
+ /**
373
+ * When a property's value has changed, a method decorated with `@Watch()` will be
374
+ * called and passed the new value of the prop along with the old value. Watch is
375
+ * useful for validating props or handling side effects. Watch decorator does not
376
+ * fire when a component initially loads.
377
+ * https://stenciljs.com/docs/reactive-data#watch-decorator
378
+ */
379
+ declare const Watch: WatchDecorator;
380
+ /**
381
+ * Decorator to serialize a property to an attribute string.
382
+ */
383
+ declare const PropSerialize: PropSerializeDecorator;
384
+ /**
385
+ * Decorator to deserialize an attribute string to a property.
386
+ */
387
+ declare const AttrDeserialize: AttrDeserializeDecorator;
388
+ type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
389
+ type ErrorHandler = (err: any, element?: HTMLElement) => void;
390
+ /**
391
+ * `setMode()` is used for libraries which provide multiple "modes" for styles.
392
+ */
393
+ declare const setMode: (handler: ResolutionHandler) => void;
394
+ /**
395
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
396
+ * @param ref a reference to the node to get styles for
397
+ * @returns the current mode or undefined, if not found
398
+ */
399
+ declare function getMode<T = string | undefined>(ref: any): T;
400
+ declare function setPlatformHelpers(helpers: {
401
+ jmp?: (c: any) => any;
402
+ raf?: (c: any) => number;
403
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
404
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
405
+ ce?: (eventName: string, opts?: any) => any;
406
+ }): void;
407
+ /**
408
+ * Get the base path to where the assets can be found. Use `setAssetPath(path)`
409
+ * if the path needs to be customized.
410
+ * @param path the path to use in calculating the asset path. this value will be
411
+ * used in conjunction with the base asset path
412
+ * @returns the base path
413
+ */
414
+ declare function getAssetPath(path: string): string;
415
+ /**
416
+ * Method to render a virtual DOM tree to a container element.
417
+ *
418
+ * @example
419
+ * ```tsx
420
+ * import { render } from '@stencil/core';
421
+ *
422
+ * const vnode = (
423
+ * <div>
424
+ * <h1>Hello, world!</h1>
425
+ * </div>
426
+ * );
427
+ * render(vnode, document.body);
428
+ * ```
429
+ *
430
+ * @param vnode - The virtual DOM tree to render
431
+ * @param container - The container element to render the virtual DOM tree to
432
+ */
433
+ declare function render(vnode: VNode, container: Element): void;
434
+ /**
435
+ * Used to manually set the base path where assets can be found. For lazy-loaded
436
+ * builds the asset path is automatically set and assets copied to the correct
437
+ * build directory. However, for custom elements builds, the `setAssetPath(path)` could
438
+ * be used to customize the asset path depending on how the script file is consumed.
439
+ * If the script is used as "module", it's recommended to use "import.meta.url", such
440
+ * as `setAssetPath(import.meta.url)`. Other options include
441
+ * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
442
+ * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
443
+ * But do note that this configuration depends on how your script is bundled, or lack of
444
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
445
+ * will have to ensure the static assets are copied to its build directory.
446
+ * @param path the asset path to set
447
+ * @returns the set path
448
+ */
449
+ declare function setAssetPath(path: string): string;
450
+ /**
451
+ * Used to specify a nonce value that corresponds with an application's
452
+ * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
453
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
454
+ * Alternatively, the nonce value can be set on a `meta` tag in the DOM head
455
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
456
+ * @param nonce The value to be used for the nonce attribute.
457
+ */
458
+ declare function setNonce(nonce: string): void;
459
+ /**
460
+ * Retrieve a Stencil element for a given reference
461
+ * @param ref the ref to get the Stencil element for
462
+ * @returns a reference to the element
463
+ */
464
+ declare function getElement(ref: any): HTMLStencilElement;
465
+ /**
466
+ * Get the shadow root for a Stencil component's host element.
467
+ * This works for both open and closed shadow DOM modes.
468
+ *
469
+ * For closed shadow DOM, `element.shadowRoot` returns `null` by design,
470
+ * but Stencil stores the reference internally so components can still
471
+ * access their own shadow root.
472
+ *
473
+ * @param element The host element (from @Element() decorator)
474
+ * @returns The shadow root, or null if no shadow root exists
475
+ */
476
+ declare function getShadowRoot(element: HTMLElement): ShadowRoot | null;
477
+ /**
478
+ * Schedules a new render of the given instance or element even if no state changed.
479
+ *
480
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
481
+ *
482
+ * @param ref the node/element to force the re-render of
483
+ */
484
+ declare function forceUpdate(ref: any): void;
485
+ /**
486
+ * getRenderingRef
487
+ * @returns the rendering ref
488
+ */
489
+ declare function getRenderingRef(): any;
490
+ interface HTMLStencilElement extends HTMLElement {
491
+ componentOnReady(): Promise<this>;
492
+ }
493
+ /**
494
+ * Schedules a DOM-write task. The provided callback will be executed
495
+ * in the best moment to perform DOM mutation without causing layout thrashing.
496
+ *
497
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
498
+ *
499
+ * @param task the DOM-write to schedule
500
+ */
501
+ declare function writeTask(task: RafCallback): void;
502
+ /**
503
+ * Schedules a DOM-read task. The provided callback will be executed
504
+ * in the best moment to perform DOM reads without causing layout thrashing.
505
+ *
506
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
507
+ *
508
+ * @param task the DOM-read to schedule
509
+ */
510
+ declare function readTask(task: RafCallback): void;
511
+ /**
512
+ * `setErrorHandler()` can be used to inject a custom global error handler.
513
+ * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
514
+ */
515
+ declare const setErrorHandler: (handler: ErrorHandler) => void;
516
+ type TagTransformer = (tag: string) => string;
517
+ /**
518
+ * Sets a tag transformer to be used when rendering your custom elements.
519
+ * ```ts
520
+ * setTagTransformer((tag) => {
521
+ * if (tag.startsWith('my-')) return `new-${tag}`
522
+ * return tag;
523
+ * });
524
+ * ```
525
+ * Will mean all your components that start with `my-` are defined instead with `new-my-` prefix.
526
+ *
527
+ * @param transformer the transformer function to use which must return a string.
528
+ */
529
+ declare function setTagTransformer(transformer: TagTransformer): void;
530
+ /**
531
+ * Transforms a tag name using a transformer set via `setTagTransformer`
532
+ *
533
+ * @param tag - the tag to transform e.g. `my-tag`
534
+ * @returns the transformed tag e.g. `new-my-tag`
535
+ */
536
+ declare function transformTag(tag: string): string;
537
+ /**
538
+ * @deprecated - Use `MixedInCtor` instead:
539
+ * ```ts
540
+ * import { MixedInCtor } from '@stencil/core';
541
+ *
542
+ * const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
543
+ * ```
544
+ */
545
+ type MixinFactory = (base: MixedInCtor) => MixedInCtor;
546
+ type MixedInCtor<T = {}> = new (...args: any[]) => T;
547
+ /**
548
+ * Compose multiple mixin classes into a single constructor.
549
+ * The resulting class has the combined instance types of all mixed-in classes.
550
+ *
551
+ * Example:
552
+ * ```ts
553
+ * import { Mixin, MixedInCtor } from '@stencil/core';
554
+ *
555
+ * const AWrap = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
556
+ * const BWrap = <B extends MixedInCtor>(Base: B) => {class B extends Base { propB = B }; return B;}
557
+ * const CWrap = <B extends MixedInCtor>(Base: B) => {class C extends Base { propC = C }; return C;}
558
+ *
559
+ * class X extends Mixin(AWrap, BWrap, CWrap) {
560
+ * render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
561
+ * }
562
+ * ```
563
+ *
564
+ * @param mixinFactories mixin factory functions that return a class which extends from the provided class.
565
+ * @returns a class that is composed from extending each of the provided classes in the order they were provided.
566
+ */
567
+ declare function Mixin<const TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<MixinInstance<TMixins[number]>>;
568
+ /**
569
+ * This file gets copied to all distributions of stencil component collections.
570
+ * - no imports
571
+ */
572
+ interface ComponentWillLoad {
573
+ /**
574
+ * The component is about to load and it has not
575
+ * rendered yet.
576
+ *
577
+ * This is the best place to make any data updates
578
+ * before the first render.
579
+ *
580
+ * componentWillLoad will only be called once.
581
+ */
582
+ componentWillLoad(): Promise<void> | void;
583
+ }
584
+ interface ComponentDidLoad {
585
+ /**
586
+ * The component has loaded and has already rendered.
587
+ *
588
+ * Updating data in this method will cause the
589
+ * component to re-render.
590
+ *
591
+ * componentDidLoad will only be called once.
592
+ */
593
+ componentDidLoad(): void;
594
+ }
595
+ interface ComponentWillUpdate {
596
+ /**
597
+ * The component is about to update and re-render.
598
+ *
599
+ * Called multiple times throughout the life of
600
+ * the component as it updates.
601
+ *
602
+ * componentWillUpdate is not called on the first render.
603
+ */
604
+ componentWillUpdate(): Promise<void> | void;
605
+ }
606
+ interface ComponentDidUpdate {
607
+ /**
608
+ * The component has just re-rendered.
609
+ *
610
+ * Called multiple times throughout the life of
611
+ * the component as it updates.
612
+ *
613
+ * componentWillUpdate is not called on the
614
+ * first render.
615
+ */
616
+ componentDidUpdate(): void;
617
+ }
618
+ interface ComponentInterface {
619
+ connectedCallback?(): void;
620
+ disconnectedCallback?(): void;
621
+ componentWillRender?(): Promise<void> | void;
622
+ componentDidRender?(): void;
623
+ /**
624
+ * The component is about to load and it has not
625
+ * rendered yet.
626
+ *
627
+ * This is the best place to make any data updates
628
+ * before the first render.
629
+ *
630
+ * componentWillLoad will only be called once.
631
+ */
632
+ componentWillLoad?(): Promise<void> | void;
633
+ /**
634
+ * The component has loaded and has already rendered.
635
+ *
636
+ * Updating data in this method will cause the
637
+ * component to re-render.
638
+ *
639
+ * componentDidLoad will only be called once.
640
+ */
641
+ componentDidLoad?(): void;
642
+ /**
643
+ * A `@Prop` or `@State` property changed and a rerender is about to be requested.
644
+ *
645
+ * Called multiple times throughout the life of
646
+ * the component as its properties change.
647
+ *
648
+ * componentShouldUpdate is not called on the first render.
649
+ */
650
+ componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
651
+ /**
652
+ * The component is about to update and re-render.
653
+ *
654
+ * Called multiple times throughout the life of
655
+ * the component as it updates.
656
+ *
657
+ * componentWillUpdate is not called on the first render.
658
+ */
659
+ componentWillUpdate?(): Promise<void> | void;
660
+ /**
661
+ * The component has just re-rendered.
662
+ *
663
+ * Called multiple times throughout the life of
664
+ * the component as it updates.
665
+ *
666
+ * componentWillUpdate is not called on the
667
+ * first render.
668
+ */
669
+ componentDidUpdate?(): void;
670
+ render?(): any;
671
+ [memberName: string]: any;
672
+ }
673
+ interface EventEmitter<T = any> {
674
+ emit: (data?: T) => CustomEvent<T>;
675
+ }
676
+ interface RafCallback {
677
+ (timeStamp: number): void;
678
+ }
679
+ interface QueueApi {
680
+ tick: (cb: RafCallback) => void;
681
+ read: (cb: RafCallback) => void;
682
+ write: (cb: RafCallback) => void;
683
+ clear?: () => void;
684
+ flush?: (cb?: () => void) => void;
685
+ }
686
+ /**
687
+ * Host
688
+ */
689
+ interface HostAttributes {
690
+ class?: string | {
691
+ [className: string]: boolean;
692
+ };
693
+ style?: {
694
+ [key: string]: string | undefined;
695
+ };
696
+ ref?: (el: HTMLElement | null) => void;
697
+ [prop: string]: any;
698
+ }
699
+ /**
700
+ * Utilities for working with functional Stencil components. An object
701
+ * conforming to this interface is passed by the Stencil runtime as the third
702
+ * argument to a functional component, allowing component authors to work with
703
+ * features like children.
704
+ *
705
+ * The children of a functional component will be passed as the second
706
+ * argument, so a functional component which uses these utils to transform its
707
+ * children might look like the following:
708
+ *
709
+ * ```ts
710
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
711
+ * utils.map(children, child => ({
712
+ * ...child,
713
+ * vattrs: {
714
+ * ...child.vattrs,
715
+ * class: `${child.vattrs.class} add-class`
716
+ * }
717
+ * }))
718
+ * );
719
+ * ```
720
+ *
721
+ * For more see the Stencil documentation, here:
722
+ * https://stenciljs.com/docs/functional-components
723
+ */
724
+ interface FunctionalUtilities {
725
+ /**
726
+ * Utility for reading the children of a functional component at runtime.
727
+ * Since the Stencil runtime uses a different interface for children it is
728
+ * not recommended to read the children directly, and is preferable to use
729
+ * this utility to, for instance, perform a side effect for each child.
730
+ */
731
+ forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
732
+ /**
733
+ * Utility for transforming the children of a functional component. Given an
734
+ * array of children and a callback this will return a list of the results of
735
+ * passing each child to the supplied callback.
736
+ */
737
+ map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
738
+ }
739
+ interface FunctionalComponent<T = {}> {
740
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
741
+ }
742
+ /**
743
+ * A Child VDOM node
744
+ *
745
+ * This has most of the same properties as {@link VNode} but friendlier names
746
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
747
+ * order to provide a friendlier public interface for users of the
748
+ * {@link FunctionalUtilities}).
749
+ */
750
+ interface ChildNode {
751
+ vtag?: string | number | Function;
752
+ vkey?: string | number;
753
+ vtext?: string;
754
+ vchildren?: VNode[];
755
+ vattrs?: any;
756
+ vname?: string;
757
+ }
758
+ /**
759
+ * Host is a functional component can be used at the root of the render function
760
+ * to set attributes and event listeners to the host element itself.
761
+ *
762
+ * For further information: https://stenciljs.com/docs/host-element
763
+ */
764
+ declare const Host: FunctionalComponent<HostAttributes>;
765
+ /**
766
+ * Fragment
767
+ */
768
+ declare const Fragment: FunctionalComponent<{}>;
769
+ /**
770
+ * The "h" namespace is used to import JSX types for elements and attributes.
771
+ * It is imported in order to avoid conflicting global JSX issues.
772
+ */
773
+ declare namespace h {
774
+ function h(sel: any): VNode;
775
+ function h(sel: Node, data: VNodeData | null): VNode;
776
+ function h(sel: any, data: VNodeData | null): VNode;
777
+ function h(sel: any, text: string): VNode;
778
+ function h(sel: any, children: Array<VNode | undefined | null>): VNode;
779
+ function h(sel: any, data: VNodeData | null, text: string): VNode;
780
+ function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
781
+ function h(sel: any, data: VNodeData | null, children: VNode): VNode;
782
+ function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
783
+ namespace JSX {
784
+ interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
785
+ [tagName: string]: any;
786
+ }
787
+ }
788
+ }
789
+ declare function h(sel: any): VNode;
790
+ declare function h(sel: Node, data: VNodeData | null): VNode;
791
+ declare function h(sel: any, data: VNodeData | null): VNode;
792
+ declare function h(sel: any, text: string): VNode;
793
+ declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
794
+ declare function h(sel: any, data: VNodeData | null, text: string): VNode;
795
+ declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
796
+ declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
797
+ declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
798
+ /**
799
+ * Automatic JSX runtime functions for TypeScript's react-jsx mode.
800
+ * These functions are called automatically by TypeScript when using "jsx": "react-jsx".
801
+ * @param type type of node
802
+ * @param props properties of node
803
+ * @param key optional key for the node
804
+ * @returns a jsx vnode
805
+ */
806
+ declare function jsx(type: any, props: any, key?: string): VNode;
807
+ /**
808
+ * Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
809
+ * @param type type of node
810
+ * @param props properties of node
811
+ * @param key optional key for the node
812
+ * @returns a jsx vnode
813
+ */
814
+ declare function jsxs(type: any, props: any, key?: string): VNode;
815
+ /**
816
+ * A virtual DOM node
817
+ */
818
+ interface VNode {
819
+ $flags$: number;
820
+ $tag$: string | number | Function;
821
+ $elm$: any;
822
+ $text$: string;
823
+ $children$: VNode[];
824
+ $attrs$?: any;
825
+ $name$?: string;
826
+ $key$?: string | number;
827
+ }
828
+ interface VNodeData {
829
+ class?: {
830
+ [className: string]: boolean;
831
+ };
832
+ style?: any;
833
+ [attrName: string]: any;
834
+ }
835
+ declare namespace LocalJSX {
836
+ interface Element {}
837
+ interface IntrinsicElements {}
838
+ }
839
+ declare namespace JSXBase {
840
+ interface IntrinsicElements {
841
+ slot: JSXBase.SlotAttributes<HTMLSlotElement>;
842
+ a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
843
+ abbr: JSXBase.HTMLAttributes;
844
+ address: JSXBase.HTMLAttributes;
845
+ area: JSXBase.AreaHTMLAttributes<HTMLAreaElement>;
846
+ article: JSXBase.HTMLAttributes;
847
+ aside: JSXBase.HTMLAttributes;
848
+ audio: JSXBase.AudioHTMLAttributes<HTMLAudioElement>;
849
+ b: JSXBase.HTMLAttributes;
850
+ base: JSXBase.BaseHTMLAttributes<HTMLBaseElement>;
851
+ bdi: JSXBase.HTMLAttributes;
852
+ bdo: JSXBase.HTMLAttributes;
853
+ big: JSXBase.HTMLAttributes;
854
+ blockquote: JSXBase.BlockquoteHTMLAttributes<HTMLQuoteElement>;
855
+ body: JSXBase.HTMLAttributes<HTMLBodyElement>;
856
+ br: JSXBase.HTMLAttributes<HTMLBRElement>;
857
+ button: JSXBase.ButtonHTMLAttributes<HTMLButtonElement>;
858
+ canvas: JSXBase.CanvasHTMLAttributes<HTMLCanvasElement>;
859
+ caption: JSXBase.HTMLAttributes<HTMLTableCaptionElement>;
860
+ cite: JSXBase.HTMLAttributes;
861
+ code: JSXBase.HTMLAttributes;
862
+ col: JSXBase.ColHTMLAttributes<HTMLTableColElement>;
863
+ colgroup: JSXBase.ColgroupHTMLAttributes<HTMLTableColElement>;
864
+ data: JSXBase.HTMLAttributes<HTMLDataElement>;
865
+ datalist: JSXBase.HTMLAttributes<HTMLDataListElement>;
866
+ dd: JSXBase.HTMLAttributes;
867
+ del: JSXBase.DelHTMLAttributes<HTMLModElement>;
868
+ details: JSXBase.DetailsHTMLAttributes<HTMLElement>;
869
+ dfn: JSXBase.HTMLAttributes;
870
+ dialog: JSXBase.DialogHTMLAttributes<HTMLDialogElement>;
871
+ div: JSXBase.HTMLAttributes<HTMLDivElement>;
872
+ dl: JSXBase.HTMLAttributes<HTMLDListElement>;
873
+ dt: JSXBase.HTMLAttributes;
874
+ em: JSXBase.HTMLAttributes;
875
+ embed: JSXBase.EmbedHTMLAttributes<HTMLEmbedElement>;
876
+ fieldset: JSXBase.FieldsetHTMLAttributes<HTMLFieldSetElement>;
877
+ figcaption: JSXBase.HTMLAttributes;
878
+ figure: JSXBase.HTMLAttributes;
879
+ footer: JSXBase.HTMLAttributes;
880
+ form: JSXBase.FormHTMLAttributes<HTMLFormElement>;
881
+ h1: JSXBase.HTMLAttributes<HTMLHeadingElement>;
882
+ h2: JSXBase.HTMLAttributes<HTMLHeadingElement>;
883
+ h3: JSXBase.HTMLAttributes<HTMLHeadingElement>;
884
+ h4: JSXBase.HTMLAttributes<HTMLHeadingElement>;
885
+ h5: JSXBase.HTMLAttributes<HTMLHeadingElement>;
886
+ h6: JSXBase.HTMLAttributes<HTMLHeadingElement>;
887
+ head: JSXBase.HTMLAttributes<HTMLHeadElement>;
888
+ header: JSXBase.HTMLAttributes;
889
+ hgroup: JSXBase.HTMLAttributes;
890
+ hr: JSXBase.HTMLAttributes<HTMLHRElement>;
891
+ html: JSXBase.HTMLAttributes<HTMLHtmlElement>;
892
+ i: JSXBase.HTMLAttributes;
893
+ iframe: JSXBase.IframeHTMLAttributes<HTMLIFrameElement>;
894
+ img: JSXBase.ImgHTMLAttributes<HTMLImageElement>;
895
+ input: JSXBase.InputHTMLAttributes<HTMLInputElement>;
896
+ ins: JSXBase.InsHTMLAttributes<HTMLModElement>;
897
+ kbd: JSXBase.HTMLAttributes;
898
+ keygen: JSXBase.KeygenHTMLAttributes<HTMLElement>;
899
+ label: JSXBase.LabelHTMLAttributes<HTMLLabelElement>;
900
+ legend: JSXBase.HTMLAttributes<HTMLLegendElement>;
901
+ li: JSXBase.LiHTMLAttributes<HTMLLIElement>;
902
+ link: JSXBase.LinkHTMLAttributes<HTMLLinkElement>;
903
+ main: JSXBase.HTMLAttributes;
904
+ map: JSXBase.MapHTMLAttributes<HTMLMapElement>;
905
+ mark: JSXBase.HTMLAttributes;
906
+ menu: JSXBase.MenuHTMLAttributes<HTMLMenuElement>;
907
+ menuitem: JSXBase.HTMLAttributes;
908
+ meta: JSXBase.MetaHTMLAttributes<HTMLMetaElement>;
909
+ meter: JSXBase.MeterHTMLAttributes<HTMLMeterElement>;
910
+ nav: JSXBase.HTMLAttributes;
911
+ noscript: JSXBase.HTMLAttributes;
912
+ object: JSXBase.ObjectHTMLAttributes<HTMLObjectElement>;
913
+ ol: JSXBase.OlHTMLAttributes<HTMLOListElement>;
914
+ optgroup: JSXBase.OptgroupHTMLAttributes<HTMLOptGroupElement>;
915
+ option: JSXBase.OptionHTMLAttributes<HTMLOptionElement>;
916
+ output: JSXBase.OutputHTMLAttributes<HTMLOutputElement>;
917
+ p: JSXBase.HTMLAttributes<HTMLParagraphElement>;
918
+ param: JSXBase.ParamHTMLAttributes<HTMLParamElement>;
919
+ picture: JSXBase.HTMLAttributes<HTMLPictureElement>;
920
+ pre: JSXBase.HTMLAttributes<HTMLPreElement>;
921
+ progress: JSXBase.ProgressHTMLAttributes<HTMLProgressElement>;
922
+ q: JSXBase.QuoteHTMLAttributes<HTMLQuoteElement>;
923
+ rp: JSXBase.HTMLAttributes;
924
+ rt: JSXBase.HTMLAttributes;
925
+ ruby: JSXBase.HTMLAttributes;
926
+ s: JSXBase.HTMLAttributes;
927
+ samp: JSXBase.HTMLAttributes;
928
+ script: JSXBase.ScriptHTMLAttributes<HTMLScriptElement>;
929
+ section: JSXBase.HTMLAttributes;
930
+ select: JSXBase.SelectHTMLAttributes<HTMLSelectElement>;
931
+ small: JSXBase.HTMLAttributes;
932
+ source: JSXBase.SourceHTMLAttributes<HTMLSourceElement>;
933
+ span: JSXBase.HTMLAttributes<HTMLSpanElement>;
934
+ strong: JSXBase.HTMLAttributes;
935
+ style: JSXBase.StyleHTMLAttributes<HTMLStyleElement>;
936
+ sub: JSXBase.HTMLAttributes;
937
+ summary: JSXBase.HTMLAttributes;
938
+ sup: JSXBase.HTMLAttributes;
939
+ table: JSXBase.TableHTMLAttributes<HTMLTableElement>;
940
+ tbody: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
941
+ td: JSXBase.TdHTMLAttributes<HTMLTableDataCellElement>;
942
+ textarea: JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement>;
943
+ tfoot: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
944
+ th: JSXBase.ThHTMLAttributes<HTMLTableHeaderCellElement>;
945
+ thead: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
946
+ time: JSXBase.TimeHTMLAttributes<HTMLTimeElement>;
947
+ title: JSXBase.HTMLAttributes<HTMLTitleElement>;
948
+ tr: JSXBase.HTMLAttributes<HTMLTableRowElement>;
949
+ track: JSXBase.TrackHTMLAttributes<HTMLTrackElement>;
950
+ u: JSXBase.HTMLAttributes;
951
+ ul: JSXBase.HTMLAttributes<HTMLUListElement>;
952
+ var: JSXBase.HTMLAttributes;
953
+ video: JSXBase.VideoHTMLAttributes<HTMLVideoElement>;
954
+ wbr: JSXBase.HTMLAttributes;
955
+ animate: JSXBase.SVGAttributes;
956
+ circle: JSXBase.SVGAttributes;
957
+ clipPath: JSXBase.SVGAttributes;
958
+ defs: JSXBase.SVGAttributes;
959
+ desc: JSXBase.SVGAttributes;
960
+ ellipse: JSXBase.SVGAttributes;
961
+ feBlend: JSXBase.SVGAttributes;
962
+ feColorMatrix: JSXBase.SVGAttributes;
963
+ feComponentTransfer: JSXBase.SVGAttributes;
964
+ feComposite: JSXBase.SVGAttributes;
965
+ feConvolveMatrix: JSXBase.SVGAttributes;
966
+ feDiffuseLighting: JSXBase.SVGAttributes;
967
+ feDisplacementMap: JSXBase.SVGAttributes;
968
+ feDistantLight: JSXBase.SVGAttributes;
969
+ feDropShadow: JSXBase.SVGAttributes;
970
+ feFlood: JSXBase.SVGAttributes;
971
+ feFuncA: JSXBase.SVGAttributes;
972
+ feFuncB: JSXBase.SVGAttributes;
973
+ feFuncG: JSXBase.SVGAttributes;
974
+ feFuncR: JSXBase.SVGAttributes;
975
+ feGaussianBlur: JSXBase.SVGAttributes;
976
+ feImage: JSXBase.SVGAttributes;
977
+ feMerge: JSXBase.SVGAttributes;
978
+ feMergeNode: JSXBase.SVGAttributes;
979
+ feMorphology: JSXBase.SVGAttributes;
980
+ feOffset: JSXBase.SVGAttributes;
981
+ fePointLight: JSXBase.SVGAttributes;
982
+ feSpecularLighting: JSXBase.SVGAttributes;
983
+ feSpotLight: JSXBase.SVGAttributes;
984
+ feTile: JSXBase.SVGAttributes;
985
+ feTurbulence: JSXBase.SVGAttributes;
986
+ filter: JSXBase.SVGAttributes;
987
+ foreignObject: JSXBase.SVGAttributes;
988
+ g: JSXBase.SVGAttributes;
989
+ image: JSXBase.SVGAttributes;
990
+ line: JSXBase.SVGAttributes;
991
+ linearGradient: JSXBase.SVGAttributes;
992
+ marker: JSXBase.SVGAttributes;
993
+ mask: JSXBase.SVGAttributes;
994
+ metadata: JSXBase.SVGAttributes;
995
+ path: JSXBase.SVGAttributes;
996
+ pattern: JSXBase.SVGAttributes;
997
+ polygon: JSXBase.SVGAttributes;
998
+ polyline: JSXBase.SVGAttributes;
999
+ radialGradient: JSXBase.SVGAttributes;
1000
+ rect: JSXBase.SVGAttributes;
1001
+ stop: JSXBase.SVGAttributes;
1002
+ svg: JSXBase.SVGAttributes;
1003
+ switch: JSXBase.SVGAttributes;
1004
+ symbol: JSXBase.SVGAttributes;
1005
+ text: JSXBase.SVGAttributes;
1006
+ textPath: JSXBase.SVGAttributes;
1007
+ tspan: JSXBase.SVGAttributes;
1008
+ use: JSXBase.SVGAttributes;
1009
+ view: JSXBase.SVGAttributes;
1010
+ }
1011
+ interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
1012
+ name?: string;
1013
+ slot?: string;
1014
+ onSlotchange?: (event: Event) => void;
1015
+ }
1016
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
1017
+ download?: any;
1018
+ href?: string;
1019
+ hrefLang?: string;
1020
+ hreflang?: string;
1021
+ media?: string;
1022
+ ping?: string;
1023
+ rel?: string;
1024
+ target?: string;
1025
+ referrerPolicy?: ReferrerPolicy;
1026
+ }
1027
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
1028
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
1029
+ alt?: string;
1030
+ coords?: string;
1031
+ download?: any;
1032
+ href?: string;
1033
+ hrefLang?: string;
1034
+ hreflang?: string;
1035
+ media?: string;
1036
+ rel?: string;
1037
+ shape?: string;
1038
+ target?: string;
1039
+ }
1040
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
1041
+ href?: string;
1042
+ target?: string;
1043
+ }
1044
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
1045
+ cite?: string;
1046
+ }
1047
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
1048
+ disabled?: boolean;
1049
+ form?: string;
1050
+ formAction?: string;
1051
+ formaction?: string;
1052
+ formEncType?: string;
1053
+ formenctype?: string;
1054
+ formMethod?: string;
1055
+ formmethod?: string;
1056
+ formNoValidate?: boolean;
1057
+ formnovalidate?: boolean;
1058
+ formTarget?: string;
1059
+ formtarget?: string;
1060
+ name?: string;
1061
+ type?: string;
1062
+ value?: string | string[] | number;
1063
+ popoverTargetAction?: string;
1064
+ popoverTargetElement?: Element | null;
1065
+ popoverTarget?: string;
1066
+ command?: string;
1067
+ commandFor?: string;
1068
+ commandfor?: string;
1069
+ }
1070
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
1071
+ height?: number | string;
1072
+ width?: number | string;
1073
+ }
1074
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
1075
+ span?: number;
1076
+ }
1077
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1078
+ span?: number;
1079
+ }
1080
+ interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
1081
+ open?: boolean;
1082
+ name?: string;
1083
+ onToggle?: (event: ToggleEvent) => void;
1084
+ }
1085
+ interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
1086
+ cite?: string;
1087
+ dateTime?: string;
1088
+ datetime?: string;
1089
+ }
1090
+ interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
1091
+ onCancel?: (event: Event) => void;
1092
+ onClose?: (event: Event) => void;
1093
+ open?: boolean;
1094
+ returnValue?: string;
1095
+ }
1096
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
1097
+ height?: number | string;
1098
+ src?: string;
1099
+ type?: string;
1100
+ width?: number | string;
1101
+ }
1102
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
1103
+ disabled?: boolean;
1104
+ form?: string;
1105
+ name?: string;
1106
+ }
1107
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
1108
+ acceptCharset?: string;
1109
+ acceptcharset?: string;
1110
+ action?: string;
1111
+ autoComplete?: string;
1112
+ autocomplete?: string;
1113
+ encType?: string;
1114
+ enctype?: string;
1115
+ method?: string;
1116
+ name?: string;
1117
+ noValidate?: boolean;
1118
+ novalidate?: boolean | string;
1119
+ target?: string;
1120
+ }
1121
+ interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
1122
+ manifest?: string;
1123
+ }
1124
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1125
+ allow?: string;
1126
+ allowFullScreen?: boolean;
1127
+ allowfullScreen?: string | boolean;
1128
+ allowTransparency?: boolean;
1129
+ allowtransparency?: string | boolean;
1130
+ frameBorder?: number | string;
1131
+ frameborder?: number | string;
1132
+ importance?: 'low' | 'auto' | 'high';
1133
+ height?: number | string;
1134
+ loading?: 'lazy' | 'auto' | 'eager';
1135
+ marginHeight?: number;
1136
+ marginheight?: string | number;
1137
+ marginWidth?: number;
1138
+ marginwidth?: string | number;
1139
+ name?: string;
1140
+ referrerPolicy?: ReferrerPolicy;
1141
+ sandbox?: string;
1142
+ scrolling?: string;
1143
+ seamless?: boolean;
1144
+ src?: string;
1145
+ srcDoc?: string;
1146
+ srcdoc?: string;
1147
+ width?: number | string;
1148
+ }
1149
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1150
+ alt?: string;
1151
+ crossOrigin?: string;
1152
+ crossorigin?: string;
1153
+ decoding?: 'async' | 'auto' | 'sync';
1154
+ importance?: 'low' | 'auto' | 'high';
1155
+ height?: number | string;
1156
+ loading?: 'lazy' | 'auto' | 'eager';
1157
+ sizes?: string;
1158
+ src?: string;
1159
+ srcSet?: string;
1160
+ srcset?: string;
1161
+ useMap?: string;
1162
+ usemap?: string;
1163
+ width?: number | string;
1164
+ }
1165
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1166
+ cite?: string;
1167
+ dateTime?: string;
1168
+ datetime?: string;
1169
+ }
1170
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1171
+ accept?: string;
1172
+ allowdirs?: boolean;
1173
+ alt?: string;
1174
+ autoCapitalize?: string;
1175
+ autocapitalize?: string;
1176
+ autoComplete?: string;
1177
+ autocomplete?: string;
1178
+ capture?: string;
1179
+ checked?: boolean;
1180
+ crossOrigin?: string;
1181
+ crossorigin?: string;
1182
+ defaultChecked?: boolean;
1183
+ defaultValue?: string;
1184
+ dirName?: string;
1185
+ disabled?: boolean;
1186
+ files?: any;
1187
+ form?: string;
1188
+ formAction?: string;
1189
+ formaction?: string;
1190
+ formEncType?: string;
1191
+ formenctype?: string;
1192
+ formMethod?: string;
1193
+ formmethod?: string;
1194
+ formNoValidate?: boolean;
1195
+ formnovalidate?: boolean;
1196
+ formTarget?: string;
1197
+ formtarget?: string;
1198
+ height?: number | string;
1199
+ indeterminate?: boolean;
1200
+ list?: string;
1201
+ max?: number | string;
1202
+ maxLength?: number;
1203
+ maxlength?: number | string;
1204
+ min?: number | string;
1205
+ minLength?: number;
1206
+ minlength?: number | string;
1207
+ multiple?: boolean;
1208
+ name?: string;
1209
+ onSelect?: (event: Event) => void;
1210
+ onselect?: (event: Event) => void;
1211
+ pattern?: string;
1212
+ placeholder?: string;
1213
+ readOnly?: boolean;
1214
+ readonly?: boolean | string;
1215
+ required?: boolean;
1216
+ selectionStart?: number | string;
1217
+ selectionEnd?: number | string;
1218
+ selectionDirection?: string;
1219
+ size?: number;
1220
+ src?: string;
1221
+ step?: number | string;
1222
+ type?: string;
1223
+ value?: string | string[] | number;
1224
+ valueAsDate?: any;
1225
+ valueAsNumber?: any;
1226
+ webkitdirectory?: boolean;
1227
+ webkitEntries?: any;
1228
+ width?: number | string;
1229
+ popoverTargetAction?: string;
1230
+ popoverTargetElement?: Element | null;
1231
+ popoverTarget?: string;
1232
+ }
1233
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1234
+ challenge?: string;
1235
+ disabled?: boolean;
1236
+ form?: string;
1237
+ keyType?: string;
1238
+ keytype?: string;
1239
+ keyParams?: string;
1240
+ keyparams?: string;
1241
+ name?: string;
1242
+ }
1243
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1244
+ form?: string;
1245
+ htmlFor?: string;
1246
+ }
1247
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1248
+ value?: string | string[] | number;
1249
+ }
1250
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1251
+ as?: string;
1252
+ href?: string;
1253
+ hrefLang?: string;
1254
+ hreflang?: string;
1255
+ importance?: 'low' | 'auto' | 'high';
1256
+ integrity?: string;
1257
+ media?: string;
1258
+ rel?: string;
1259
+ sizes?: string;
1260
+ type?: string;
1261
+ }
1262
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1263
+ name?: string;
1264
+ }
1265
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1266
+ type?: string;
1267
+ }
1268
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1269
+ autoPlay?: boolean;
1270
+ autoplay?: boolean | string;
1271
+ controls?: boolean;
1272
+ controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1273
+ controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1274
+ crossOrigin?: string;
1275
+ crossorigin?: string;
1276
+ loop?: boolean;
1277
+ mediaGroup?: string;
1278
+ mediagroup?: string;
1279
+ muted?: boolean;
1280
+ preload?: string;
1281
+ src?: string;
1282
+ onAbort?: (event: Event) => void;
1283
+ onCanPlay?: (event: Event) => void;
1284
+ onCanPlayThrough?: (event: Event) => void;
1285
+ onDurationChange?: (event: Event) => void;
1286
+ onEmptied?: (event: Event) => void;
1287
+ onEnded?: (event: Event) => void;
1288
+ onError?: (event: Event) => void;
1289
+ onInterruptBegin?: (event: Event) => void;
1290
+ onInterruptEnd?: (event: Event) => void;
1291
+ onLoadedData?: (event: Event) => void;
1292
+ onLoadedMetaData?: (event: Event) => void;
1293
+ onLoadStart?: (event: Event) => void;
1294
+ onMozAudioAvailable?: (event: Event) => void;
1295
+ onPause?: (event: Event) => void;
1296
+ onPlay?: (event: Event) => void;
1297
+ onPlaying?: (event: Event) => void;
1298
+ onProgress?: (event: Event) => void;
1299
+ onRateChange?: (event: Event) => void;
1300
+ onSeeked?: (event: Event) => void;
1301
+ onSeeking?: (event: Event) => void;
1302
+ onStalled?: (event: Event) => void;
1303
+ onSuspend?: (event: Event) => void;
1304
+ onTimeUpdate?: (event: Event) => void;
1305
+ onVolumeChange?: (event: Event) => void;
1306
+ onWaiting?: (event: Event) => void;
1307
+ }
1308
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1309
+ charSet?: string;
1310
+ charset?: string;
1311
+ content?: string;
1312
+ httpEquiv?: string;
1313
+ httpequiv?: string;
1314
+ name?: string;
1315
+ }
1316
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1317
+ form?: string;
1318
+ high?: number;
1319
+ low?: number;
1320
+ max?: number | string;
1321
+ min?: number | string;
1322
+ optimum?: number;
1323
+ value?: string | string[] | number;
1324
+ }
1325
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1326
+ cite?: string;
1327
+ }
1328
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1329
+ classID?: string;
1330
+ classid?: string;
1331
+ data?: string;
1332
+ form?: string;
1333
+ height?: number | string;
1334
+ name?: string;
1335
+ type?: string;
1336
+ useMap?: string;
1337
+ usemap?: string;
1338
+ width?: number | string;
1339
+ wmode?: string;
1340
+ }
1341
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1342
+ reversed?: boolean;
1343
+ start?: number;
1344
+ }
1345
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1346
+ disabled?: boolean;
1347
+ label?: string;
1348
+ }
1349
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1350
+ disabled?: boolean;
1351
+ label?: string;
1352
+ selected?: boolean;
1353
+ value?: string | string[] | number;
1354
+ }
1355
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1356
+ form?: string;
1357
+ htmlFor?: string;
1358
+ name?: string;
1359
+ }
1360
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1361
+ name?: string;
1362
+ value?: string | string[] | number;
1363
+ }
1364
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1365
+ max?: number | string;
1366
+ value?: string | string[] | number;
1367
+ }
1368
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1369
+ async?: boolean;
1370
+ charSet?: string;
1371
+ charset?: string;
1372
+ crossOrigin?: string;
1373
+ crossorigin?: string;
1374
+ defer?: boolean;
1375
+ importance?: 'low' | 'auto' | 'high';
1376
+ integrity?: string;
1377
+ nonce?: string;
1378
+ src?: string;
1379
+ type?: string;
1380
+ }
1381
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1382
+ disabled?: boolean;
1383
+ form?: string;
1384
+ multiple?: boolean;
1385
+ name?: string;
1386
+ required?: boolean;
1387
+ size?: number;
1388
+ autoComplete?: string;
1389
+ autocomplete?: string;
1390
+ }
1391
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1392
+ height?: number;
1393
+ media?: string;
1394
+ sizes?: string;
1395
+ src?: string;
1396
+ srcSet?: string;
1397
+ type?: string;
1398
+ width?: number;
1399
+ }
1400
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1401
+ media?: string;
1402
+ nonce?: string;
1403
+ scoped?: boolean;
1404
+ type?: string;
1405
+ }
1406
+ interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1407
+ cellPadding?: number | string;
1408
+ cellpadding?: number | string;
1409
+ cellSpacing?: number | string;
1410
+ cellspacing?: number | string;
1411
+ summary?: string;
1412
+ }
1413
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1414
+ autoComplete?: string;
1415
+ autocomplete?: string;
1416
+ cols?: number;
1417
+ disabled?: boolean;
1418
+ form?: string;
1419
+ maxLength?: number;
1420
+ maxlength?: number | string;
1421
+ minLength?: number;
1422
+ minlength?: number | string;
1423
+ name?: string;
1424
+ onSelect?: (event: Event) => void;
1425
+ onselect?: (event: Event) => void;
1426
+ placeholder?: string;
1427
+ readOnly?: boolean;
1428
+ readonly?: boolean | string;
1429
+ required?: boolean;
1430
+ rows?: number;
1431
+ value?: string | string[] | number;
1432
+ wrap?: string;
1433
+ }
1434
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1435
+ colSpan?: number;
1436
+ headers?: string;
1437
+ rowSpan?: number;
1438
+ }
1439
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1440
+ abbr?: string;
1441
+ colSpan?: number;
1442
+ headers?: string;
1443
+ rowSpan?: number;
1444
+ rowspan?: number | string;
1445
+ scope?: string;
1446
+ }
1447
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1448
+ dateTime?: string;
1449
+ }
1450
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1451
+ default?: boolean;
1452
+ kind?: string;
1453
+ label?: string;
1454
+ src?: string;
1455
+ srcLang?: string;
1456
+ srclang?: string;
1457
+ }
1458
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1459
+ height?: number | string;
1460
+ playsInline?: boolean;
1461
+ playsinline?: boolean | string;
1462
+ poster?: string;
1463
+ width?: number | string;
1464
+ }
1465
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1466
+ innerHTML?: string;
1467
+ accessKey?: string;
1468
+ autoFocus?: boolean;
1469
+ autofocus?: boolean | string;
1470
+ class?: string | {
1471
+ [className: string]: boolean;
1472
+ };
1473
+ contentEditable?: boolean | string;
1474
+ contenteditable?: boolean | string;
1475
+ contextMenu?: string;
1476
+ contextmenu?: string;
1477
+ dir?: string;
1478
+ draggable?: boolean;
1479
+ hidden?: boolean;
1480
+ id?: string;
1481
+ inert?: boolean;
1482
+ lang?: string;
1483
+ spellcheck?: 'true' | 'false' | any;
1484
+ style?: {
1485
+ [key: string]: string | undefined;
1486
+ };
1487
+ tabIndex?: number;
1488
+ tabindex?: number | string;
1489
+ title?: string;
1490
+ popover?: string | null;
1491
+ inputMode?: string;
1492
+ inputmode?: string;
1493
+ enterKeyHint?: string;
1494
+ enterkeyhint?: string;
1495
+ is?: string;
1496
+ radioGroup?: string;
1497
+ radiogroup?: string;
1498
+ role?: string;
1499
+ about?: string;
1500
+ datatype?: string;
1501
+ inlist?: any;
1502
+ prefix?: string;
1503
+ property?: string;
1504
+ resource?: string;
1505
+ typeof?: string;
1506
+ vocab?: string;
1507
+ autoCapitalize?: string;
1508
+ autocapitalize?: string;
1509
+ autoCorrect?: string;
1510
+ autocorrect?: string;
1511
+ autoSave?: string;
1512
+ autosave?: string;
1513
+ color?: string;
1514
+ itemProp?: string;
1515
+ itemprop?: string;
1516
+ itemScope?: boolean;
1517
+ itemscope?: boolean;
1518
+ itemType?: string;
1519
+ itemtype?: string;
1520
+ itemID?: string;
1521
+ itemid?: string;
1522
+ itemRef?: string;
1523
+ itemref?: string;
1524
+ results?: number;
1525
+ security?: string;
1526
+ unselectable?: boolean;
1527
+ }
1528
+ interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1529
+ class?: string | {
1530
+ [className: string]: boolean;
1531
+ };
1532
+ color?: string;
1533
+ height?: number | string;
1534
+ id?: string;
1535
+ lang?: string;
1536
+ max?: number | string;
1537
+ media?: string;
1538
+ method?: string;
1539
+ min?: number | string;
1540
+ name?: string;
1541
+ style?: {
1542
+ [key: string]: string | undefined;
1543
+ };
1544
+ target?: string;
1545
+ type?: string;
1546
+ width?: number | string;
1547
+ role?: string;
1548
+ tabindex?: number;
1549
+ 'accent-height'?: number | string;
1550
+ accumulate?: 'none' | 'sum';
1551
+ additive?: 'replace' | 'sum';
1552
+ 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
1553
+ allowReorder?: 'no' | 'yes';
1554
+ alphabetic?: number | string;
1555
+ amplitude?: number | string;
1556
+ 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated';
1557
+ ascent?: number | string;
1558
+ attributeName?: string;
1559
+ attributeType?: string;
1560
+ autoReverse?: number | string;
1561
+ azimuth?: number | string;
1562
+ baseFrequency?: number | string;
1563
+ 'baseline-shift'?: number | string;
1564
+ baseProfile?: number | string;
1565
+ bbox?: number | string;
1566
+ begin?: number | string;
1567
+ bias?: number | string;
1568
+ by?: number | string;
1569
+ calcMode?: number | string;
1570
+ 'cap-height'?: number | string;
1571
+ clip?: number | string;
1572
+ 'clip-path'?: string;
1573
+ clipPathUnits?: number | string;
1574
+ 'clip-rule'?: number | string;
1575
+ 'color-interpolation'?: number | string;
1576
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
1577
+ 'color-profile'?: number | string;
1578
+ 'color-rendering'?: number | string;
1579
+ contentScriptType?: number | string;
1580
+ contentStyleType?: number | string;
1581
+ cursor?: number | string;
1582
+ cx?: number | string;
1583
+ cy?: number | string;
1584
+ d?: string;
1585
+ decelerate?: number | string;
1586
+ descent?: number | string;
1587
+ diffuseConstant?: number | string;
1588
+ direction?: number | string;
1589
+ display?: number | string;
1590
+ divisor?: number | string;
1591
+ 'dominant-baseline'?: number | string;
1592
+ dur?: number | string;
1593
+ dx?: number | string;
1594
+ dy?: number | string;
1595
+ 'edge-mode'?: number | string;
1596
+ elevation?: number | string;
1597
+ 'enable-background'?: number | string;
1598
+ end?: number | string;
1599
+ exponent?: number | string;
1600
+ externalResourcesRequired?: number | string;
1601
+ fill?: string;
1602
+ 'fill-opacity'?: number | string;
1603
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
1604
+ filter?: string;
1605
+ filterRes?: number | string;
1606
+ filterUnits?: number | string;
1607
+ 'flood-color'?: number | string;
1608
+ 'flood-opacity'?: number | string;
1609
+ focusable?: number | string;
1610
+ 'font-family'?: string;
1611
+ 'font-size'?: number | string;
1612
+ 'font-size-adjust'?: number | string;
1613
+ 'font-stretch'?: number | string;
1614
+ 'font-style'?: number | string;
1615
+ 'font-variant'?: number | string;
1616
+ 'font-weight'?: number | string;
1617
+ format?: number | string;
1618
+ from?: number | string;
1619
+ fx?: number | string;
1620
+ fy?: number | string;
1621
+ g1?: number | string;
1622
+ g2?: number | string;
1623
+ 'glyph-name'?: number | string;
1624
+ 'glyph-orientation-horizontal'?: number | string;
1625
+ 'glyph-orientation-vertical'?: number | string;
1626
+ glyphRef?: number | string;
1627
+ gradientTransform?: string;
1628
+ gradientUnits?: string;
1629
+ hanging?: number | string;
1630
+ 'horiz-adv-x'?: number | string;
1631
+ 'horiz-origin-x'?: number | string;
1632
+ href?: string;
1633
+ ideographic?: number | string;
1634
+ 'image-rendering'?: number | string;
1635
+ in2?: number | string;
1636
+ in?: string;
1637
+ intercept?: number | string;
1638
+ k1?: number | string;
1639
+ k2?: number | string;
1640
+ k3?: number | string;
1641
+ k4?: number | string;
1642
+ k?: number | string;
1643
+ kernelMatrix?: number | string;
1644
+ kernelUnitLength?: number | string;
1645
+ kerning?: number | string;
1646
+ keyPoints?: number | string;
1647
+ keySplines?: number | string;
1648
+ keyTimes?: number | string;
1649
+ lengthAdjust?: number | string;
1650
+ 'letter-spacing'?: number | string;
1651
+ 'lighting-color'?: number | string;
1652
+ limitingConeAngle?: number | string;
1653
+ local?: number | string;
1654
+ 'marker-end'?: string;
1655
+ markerHeight?: number | string;
1656
+ 'marker-mid'?: string;
1657
+ 'marker-start'?: string;
1658
+ markerUnits?: number | string;
1659
+ markerWidth?: number | string;
1660
+ mask?: string;
1661
+ maskContentUnits?: number | string;
1662
+ maskUnits?: number | string;
1663
+ mathematical?: number | string;
1664
+ mode?: number | string;
1665
+ numOctaves?: number | string;
1666
+ offset?: number | string;
1667
+ opacity?: number | string;
1668
+ operator?: number | string;
1669
+ order?: number | string;
1670
+ orient?: number | string;
1671
+ orientation?: number | string;
1672
+ origin?: number | string;
1673
+ overflow?: number | string;
1674
+ 'overline-position'?: number | string;
1675
+ 'overline-thickness'?: number | string;
1676
+ 'paint-order'?: number | string;
1677
+ panose1?: number | string;
1678
+ pathLength?: number | string;
1679
+ patternContentUnits?: string;
1680
+ patternTransform?: number | string;
1681
+ patternUnits?: string;
1682
+ 'pointer-events'?: number | string;
1683
+ points?: string;
1684
+ pointsAtX?: number | string;
1685
+ pointsAtY?: number | string;
1686
+ pointsAtZ?: number | string;
1687
+ preserveAlpha?: number | string;
1688
+ preserveAspectRatio?: string;
1689
+ primitiveUnits?: number | string;
1690
+ r?: number | string;
1691
+ radius?: number | string;
1692
+ refX?: number | string;
1693
+ refY?: number | string;
1694
+ 'rendering-intent'?: number | string;
1695
+ repeatCount?: number | string;
1696
+ repeatDur?: number | string;
1697
+ requiredextensions?: number | string;
1698
+ requiredFeatures?: number | string;
1699
+ restart?: number | string;
1700
+ result?: string;
1701
+ rotate?: number | string;
1702
+ rx?: number | string;
1703
+ ry?: number | string;
1704
+ scale?: number | string;
1705
+ seed?: number | string;
1706
+ 'shape-rendering'?: number | string;
1707
+ slope?: number | string;
1708
+ spacing?: number | string;
1709
+ specularConstant?: number | string;
1710
+ specularExponent?: number | string;
1711
+ speed?: number | string;
1712
+ spreadMethod?: string;
1713
+ startOffset?: number | string;
1714
+ stdDeviation?: number | string;
1715
+ stemh?: number | string;
1716
+ stemv?: number | string;
1717
+ stitchTiles?: number | string;
1718
+ 'stop-color'?: string;
1719
+ 'stop-opacity'?: number | string;
1720
+ 'strikethrough-position'?: number | string;
1721
+ 'strikethrough-thickness'?: number | string;
1722
+ string?: number | string;
1723
+ stroke?: string;
1724
+ 'stroke-dasharray'?: string | number;
1725
+ 'stroke-dashoffset'?: string | number;
1726
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
1727
+ 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit';
1728
+ 'stroke-miterlimit'?: string;
1729
+ 'stroke-opacity'?: number | string;
1730
+ 'stroke-width'?: number | string;
1731
+ surfaceScale?: number | string;
1732
+ systemLanguage?: number | string;
1733
+ tableValues?: number | string;
1734
+ targetX?: number | string;
1735
+ targetY?: number | string;
1736
+ 'text-anchor'?: string;
1737
+ 'text-decoration'?: number | string;
1738
+ textLength?: number | string;
1739
+ 'text-rendering'?: number | string;
1740
+ to?: number | string;
1741
+ transform?: string;
1742
+ u1?: number | string;
1743
+ u2?: number | string;
1744
+ 'underline-position'?: number | string;
1745
+ 'underline-thickness'?: number | string;
1746
+ unicode?: number | string;
1747
+ 'unicode-bidi'?: number | string;
1748
+ 'unicode-range'?: number | string;
1749
+ 'units-per-em'?: number | string;
1750
+ 'v-alphabetic'?: number | string;
1751
+ values?: string;
1752
+ 'vector-effect'?: number | string;
1753
+ version?: string;
1754
+ 'vert-adv-y'?: number | string;
1755
+ 'vert-origin-x'?: number | string;
1756
+ 'vert-origin-y'?: number | string;
1757
+ 'v-hanging'?: number | string;
1758
+ 'v-ideographic'?: number | string;
1759
+ viewBox?: string;
1760
+ viewTarget?: number | string;
1761
+ visibility?: number | string;
1762
+ 'v-mathematical'?: number | string;
1763
+ widths?: number | string;
1764
+ 'word-spacing'?: number | string;
1765
+ 'writing-mode'?: number | string;
1766
+ x1?: number | string;
1767
+ x2?: number | string;
1768
+ x?: number | string;
1769
+ 'x-channel-selector'?: string;
1770
+ 'x-height'?: number | string;
1771
+ xlinkActuate?: string;
1772
+ xlinkArcrole?: string;
1773
+ xlinkHref?: string;
1774
+ xlinkRole?: string;
1775
+ xlinkShow?: string;
1776
+ xlinkTitle?: string;
1777
+ xlinkType?: string;
1778
+ xmlBase?: string;
1779
+ xmlLang?: string;
1780
+ xmlns?: string;
1781
+ xmlSpace?: string;
1782
+ y1?: number | string;
1783
+ y2?: number | string;
1784
+ y?: number | string;
1785
+ yChannelSelector?: string;
1786
+ z?: number | string;
1787
+ zoomAndPan?: string;
1788
+ }
1789
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1790
+ interface ToggleEvent extends Event {
1791
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1792
+ readonly newState: string;
1793
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1794
+ readonly oldState: string;
1795
+ }
1796
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1797
+ slot?: string;
1798
+ part?: string;
1799
+ exportparts?: string;
1800
+ onCopy?: (event: ClipboardEvent) => void;
1801
+ onCopyCapture?: (event: ClipboardEvent) => void;
1802
+ onCut?: (event: ClipboardEvent) => void;
1803
+ onCutCapture?: (event: ClipboardEvent) => void;
1804
+ onPaste?: (event: ClipboardEvent) => void;
1805
+ onPasteCapture?: (event: ClipboardEvent) => void;
1806
+ onCompositionend?: (event: CompositionEvent) => void;
1807
+ onCompositionendCapture?: (event: CompositionEvent) => void;
1808
+ onCompositionstart?: (event: CompositionEvent) => void;
1809
+ onCompositionstartCapture?: (event: CompositionEvent) => void;
1810
+ onCompositionupdate?: (event: CompositionEvent) => void;
1811
+ onCompositionupdateCapture?: (event: CompositionEvent) => void;
1812
+ onBeforeToggle?: (event: ToggleEvent) => void;
1813
+ onBeforeToggleCapture?: (event: ToggleEvent) => void;
1814
+ onToggle?: (event: ToggleEvent) => void;
1815
+ onToggleCapture?: (event: ToggleEvent) => void;
1816
+ onFocus?: (event: FocusEvent) => void;
1817
+ onFocusCapture?: (event: FocusEvent) => void;
1818
+ onFocusin?: (event: FocusEvent) => void;
1819
+ onFocusinCapture?: (event: FocusEvent) => void;
1820
+ onFocusout?: (event: FocusEvent) => void;
1821
+ onFocusoutCapture?: (event: FocusEvent) => void;
1822
+ onBlur?: (event: FocusEvent) => void;
1823
+ onBlurCapture?: (event: FocusEvent) => void;
1824
+ onChange?: (event: Event) => void;
1825
+ onChangeCapture?: (event: Event) => void;
1826
+ onInput?: (event: InputEvent) => void;
1827
+ onInputCapture?: (event: InputEvent) => void;
1828
+ onReset?: (event: Event) => void;
1829
+ onResetCapture?: (event: Event) => void;
1830
+ onSubmit?: (event: Event) => void;
1831
+ onSubmitCapture?: (event: Event) => void;
1832
+ onInvalid?: (event: Event) => void;
1833
+ onInvalidCapture?: (event: Event) => void;
1834
+ onLoad?: (event: Event) => void;
1835
+ onLoadCapture?: (event: Event) => void;
1836
+ onError?: (event: Event) => void;
1837
+ onErrorCapture?: (event: Event) => void;
1838
+ onKeyDown?: (event: KeyboardEvent) => void;
1839
+ onKeyDownCapture?: (event: KeyboardEvent) => void;
1840
+ onKeyPress?: (event: KeyboardEvent) => void;
1841
+ onKeyPressCapture?: (event: KeyboardEvent) => void;
1842
+ onKeyUp?: (event: KeyboardEvent) => void;
1843
+ onKeyUpCapture?: (event: KeyboardEvent) => void;
1844
+ onAuxClick?: (event: MouseEvent) => void;
1845
+ onClick?: (event: PointerEvent) => void;
1846
+ onClickCapture?: (event: MouseEvent) => void;
1847
+ onContextMenu?: (event: MouseEvent) => void;
1848
+ onContextMenuCapture?: (event: MouseEvent) => void;
1849
+ onDblClick?: (event: MouseEvent) => void;
1850
+ onDblClickCapture?: (event: MouseEvent) => void;
1851
+ onDrag?: (event: DragEvent) => void;
1852
+ onDragCapture?: (event: DragEvent) => void;
1853
+ onDragEnd?: (event: DragEvent) => void;
1854
+ onDragEndCapture?: (event: DragEvent) => void;
1855
+ onDragEnter?: (event: DragEvent) => void;
1856
+ onDragEnterCapture?: (event: DragEvent) => void;
1857
+ onDragExit?: (event: DragEvent) => void;
1858
+ onDragExitCapture?: (event: DragEvent) => void;
1859
+ onDragLeave?: (event: DragEvent) => void;
1860
+ onDragLeaveCapture?: (event: DragEvent) => void;
1861
+ onDragOver?: (event: DragEvent) => void;
1862
+ onDragOverCapture?: (event: DragEvent) => void;
1863
+ onDragStart?: (event: DragEvent) => void;
1864
+ onDragStartCapture?: (event: DragEvent) => void;
1865
+ onDrop?: (event: DragEvent) => void;
1866
+ onDropCapture?: (event: DragEvent) => void;
1867
+ onMouseDown?: (event: MouseEvent) => void;
1868
+ onMouseDownCapture?: (event: MouseEvent) => void;
1869
+ onMouseEnter?: (event: MouseEvent) => void;
1870
+ onMouseLeave?: (event: MouseEvent) => void;
1871
+ onMouseMove?: (event: MouseEvent) => void;
1872
+ onMouseMoveCapture?: (event: MouseEvent) => void;
1873
+ onMouseOut?: (event: MouseEvent) => void;
1874
+ onMouseOutCapture?: (event: MouseEvent) => void;
1875
+ onMouseOver?: (event: MouseEvent) => void;
1876
+ onMouseOverCapture?: (event: MouseEvent) => void;
1877
+ onMouseUp?: (event: MouseEvent) => void;
1878
+ onMouseUpCapture?: (event: MouseEvent) => void;
1879
+ onTouchCancel?: (event: TouchEvent) => void;
1880
+ onTouchCancelCapture?: (event: TouchEvent) => void;
1881
+ onTouchEnd?: (event: TouchEvent) => void;
1882
+ onTouchEndCapture?: (event: TouchEvent) => void;
1883
+ onTouchMove?: (event: TouchEvent) => void;
1884
+ onTouchMoveCapture?: (event: TouchEvent) => void;
1885
+ onTouchStart?: (event: TouchEvent) => void;
1886
+ onTouchStartCapture?: (event: TouchEvent) => void;
1887
+ onPointerDown?: (event: PointerEvent) => void;
1888
+ onPointerDownCapture?: (event: PointerEvent) => void;
1889
+ onPointerMove?: (event: PointerEvent) => void;
1890
+ onPointerMoveCapture?: (event: PointerEvent) => void;
1891
+ onPointerUp?: (event: PointerEvent) => void;
1892
+ onPointerUpCapture?: (event: PointerEvent) => void;
1893
+ onPointerCancel?: (event: PointerEvent) => void;
1894
+ onPointerCancelCapture?: (event: PointerEvent) => void;
1895
+ onPointerEnter?: (event: PointerEvent) => void;
1896
+ onPointerEnterCapture?: (event: PointerEvent) => void;
1897
+ onPointerLeave?: (event: PointerEvent) => void;
1898
+ onPointerLeaveCapture?: (event: PointerEvent) => void;
1899
+ onPointerOver?: (event: PointerEvent) => void;
1900
+ onPointerOverCapture?: (event: PointerEvent) => void;
1901
+ onPointerOut?: (event: PointerEvent) => void;
1902
+ onPointerOutCapture?: (event: PointerEvent) => void;
1903
+ onGotPointerCapture?: (event: PointerEvent) => void;
1904
+ onGotPointerCaptureCapture?: (event: PointerEvent) => void;
1905
+ onLostPointerCapture?: (event: PointerEvent) => void;
1906
+ onLostPointerCaptureCapture?: (event: PointerEvent) => void;
1907
+ onScroll?: (event: UIEvent) => void;
1908
+ onScrollCapture?: (event: UIEvent) => void;
1909
+ onWheel?: (event: WheelEvent) => void;
1910
+ onWheelCapture?: (event: WheelEvent) => void;
1911
+ onAnimationStart?: (event: AnimationEvent) => void;
1912
+ onAnimationStartCapture?: (event: AnimationEvent) => void;
1913
+ onAnimationEnd?: (event: AnimationEvent) => void;
1914
+ onAnimationEndCapture?: (event: AnimationEvent) => void;
1915
+ onAnimationIteration?: (event: AnimationEvent) => void;
1916
+ onAnimationIterationCapture?: (event: AnimationEvent) => void;
1917
+ onTransitionCancel?: (event: TransitionEvent) => void;
1918
+ onTransitionCancelCapture?: (event: TransitionEvent) => void;
1919
+ onTransitionEnd?: (event: TransitionEvent) => void;
1920
+ onTransitionEndCapture?: (event: TransitionEvent) => void;
1921
+ onTransitionRun?: (event: TransitionEvent) => void;
1922
+ onTransitionRunCapture?: (event: TransitionEvent) => void;
1923
+ onTransitionStart?: (event: TransitionEvent) => void;
1924
+ onTransitionStartCapture?: (event: TransitionEvent) => void;
1925
+ [key: `aria-${string}`]: string | boolean | undefined;
1926
+ [key: `aria${string}`]: string | boolean | undefined;
1927
+ }
1928
+ }
1929
+ interface JSXAttributes<T = Element> {
1930
+ key?: string | number;
1931
+ ref?: (elm?: T) => void;
1932
+ }
1933
+ interface CustomElementsDefineOptions {
1934
+ exclude?: string[];
1935
+ syncQueue?: boolean;
1936
+ jmp?: (c: Function) => any;
1937
+ raf?: (c: FrameRequestCallback) => number;
1938
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1939
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1940
+ ce?: (eventName: string, opts?: any) => CustomEvent;
1941
+ }
1942
+ //#endregion
1943
+ export { AttachInternals, AttachInternalsDecorator, AttachInternalsOptions, AttrDeserialize, AttrDeserializeDecorator, Build, ChildNode, Component, ComponentDecorator, ComponentDidLoad, ComponentDidUpdate, ComponentInterface, ComponentOptions, ComponentWillLoad, ComponentWillUpdate, CustomElementsDefineOptions, Element, ElementDecorator, EncapsulationOptions, Env, ErrorHandler, Event, EventDecorator, EventEmitter, EventOptions, Fragment, FunctionalComponent, FunctionalUtilities, HTMLStencilElement, Host, HostAttributes, LocalJSX as JSX, JSXAttributes, JSXBase, Listen, ListenDecorator, ListenOptions, ListenTargetOptions, Method, MethodDecorator, MethodOptions, MixedInCtor, Mixin, MixinFactory, ModeStyles, NoneEncapsulation, Prop, PropDecorator, PropOptions, PropSerialize, PropSerializeDecorator, QueueApi, RafCallback, ResolutionHandler, ResolveVarFunction, ScopedEncapsulation, ShadowEncapsulation, ShadowRootOptions, SlotPatch, State, StateDecorator, TagTransformer, UserBuildConditionals, VNode, VNodeData, Watch, WatchDecorator, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, jsx, jsxs, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setTagTransformer, transformTag, writeTask };