@remix-run/ui 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +195 -2
- package/dist/animation/animate-layout-mixin.d.ts +12 -0
- package/dist/animation/animate-layout-mixin.js +214 -0
- package/dist/animation/animate-layout-mixin.js.map +1 -0
- package/dist/animation/animate-mixins.d.ts +29 -0
- package/dist/animation/animate-mixins.js +235 -0
- package/dist/animation/animate-mixins.js.map +1 -0
- package/dist/animation/index.d.ts +6 -0
- package/dist/animation/index.js +5 -0
- package/dist/animation/index.js.map +1 -0
- package/dist/animation/spring.d.ts +75 -0
- package/dist/animation/spring.js +183 -0
- package/dist/animation/spring.js.map +1 -0
- package/dist/animation/tween.d.ts +70 -0
- package/dist/animation/tween.js +93 -0
- package/dist/animation/tween.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +92 -0
- package/dist/components/accordion/accordion.js +337 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/anchor/anchor.d.ts +13 -0
- package/dist/components/anchor/anchor.js +558 -0
- package/dist/components/anchor/anchor.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +11 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +78 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/button/button.d.ts +23 -0
- package/dist/components/button/button.js +147 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +101 -0
- package/dist/components/combobox/combobox.js +708 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/glyph/glyph.d.ts +14 -0
- package/dist/components/glyph/glyph.js +65 -0
- package/dist/components/glyph/glyph.js.map +1 -0
- package/dist/components/listbox/listbox.d.ts +67 -0
- package/dist/components/listbox/listbox.js +340 -0
- package/dist/components/listbox/listbox.js.map +1 -0
- package/dist/components/menu/hover-aim.d.ts +5 -0
- package/dist/components/menu/hover-aim.js +308 -0
- package/dist/components/menu/hover-aim.js.map +1 -0
- package/dist/components/menu/menu.d.ts +164 -0
- package/dist/components/menu/menu.js +1106 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/popover/popover.d.ts +35 -0
- package/dist/components/popover/popover.js +138 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/select/select.d.ts +67 -0
- package/dist/components/select/select.js +397 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/separator.d.ts +2 -0
- package/dist/components/separator/separator.js +15 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +78 -0
- package/dist/components/tabs/tabs.js +341 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/interactions/keydown/keydown.d.ts +1 -0
- package/dist/interactions/keydown/keydown.js +8 -0
- package/dist/interactions/keydown/keydown.js.map +1 -0
- package/dist/interactions/outside-click/outside-click-mixin.d.ts +2 -0
- package/dist/interactions/outside-click/outside-click-mixin.js +29 -0
- package/dist/interactions/outside-click/outside-click-mixin.js.map +1 -0
- package/dist/interactions/typeahead/typeahead-mixin.d.ts +8 -0
- package/dist/interactions/typeahead/typeahead-mixin.js +59 -0
- package/dist/interactions/typeahead/typeahead-mixin.js.map +1 -0
- package/dist/jsx-runtime.d.ts +2 -0
- package/dist/jsx-runtime.js +3 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/runtime/client-entries.d.ts +91 -0
- package/dist/runtime/client-entries.js +40 -0
- package/dist/runtime/client-entries.js.map +1 -0
- package/dist/runtime/component.d.ts +223 -0
- package/dist/runtime/component.js +152 -0
- package/dist/runtime/component.js.map +1 -0
- package/dist/runtime/create-element.d.ts +10 -0
- package/dist/runtime/create-element.js +29 -0
- package/dist/runtime/create-element.js.map +1 -0
- package/dist/runtime/diff-dom.d.ts +2 -0
- package/dist/runtime/diff-dom.js +364 -0
- package/dist/runtime/diff-dom.js.map +1 -0
- package/dist/runtime/diff-props.d.ts +9 -0
- package/dist/runtime/diff-props.js +195 -0
- package/dist/runtime/diff-props.js.map +1 -0
- package/dist/runtime/document-state.d.ts +11 -0
- package/dist/runtime/document-state.js +106 -0
- package/dist/runtime/document-state.js.map +1 -0
- package/dist/runtime/dom.d.ts +3189 -0
- package/dist/runtime/dom.js +2 -0
- package/dist/runtime/dom.js.map +1 -0
- package/dist/runtime/error-event.d.ts +20 -0
- package/dist/runtime/error-event.js +19 -0
- package/dist/runtime/error-event.js.map +1 -0
- package/dist/runtime/event-listeners.d.ts +50 -0
- package/dist/runtime/event-listeners.js +31 -0
- package/dist/runtime/event-listeners.js.map +1 -0
- package/dist/runtime/frame.d.ts +119 -0
- package/dist/runtime/frame.js +915 -0
- package/dist/runtime/frame.js.map +1 -0
- package/dist/runtime/invariant.d.ts +23 -0
- package/dist/runtime/invariant.js +33 -0
- package/dist/runtime/invariant.js.map +1 -0
- package/dist/runtime/jsx.d.ts +320 -0
- package/dist/runtime/jsx.js +31 -0
- package/dist/runtime/jsx.js.map +1 -0
- package/dist/runtime/mixins/attrs-mixin.d.ts +9 -0
- package/dist/runtime/mixins/attrs-mixin.js +23 -0
- package/dist/runtime/mixins/attrs-mixin.js.map +1 -0
- package/dist/runtime/mixins/link-mixin.d.ts +17 -0
- package/dist/runtime/mixins/link-mixin.js +101 -0
- package/dist/runtime/mixins/link-mixin.js.map +1 -0
- package/dist/runtime/mixins/mixin.d.ts +145 -0
- package/dist/runtime/mixins/mixin.js +570 -0
- package/dist/runtime/mixins/mixin.js.map +1 -0
- package/dist/runtime/mixins/on-mixin.d.ts +16 -0
- package/dist/runtime/mixins/on-mixin.js +49 -0
- package/dist/runtime/mixins/on-mixin.js.map +1 -0
- package/dist/runtime/mixins/ref-mixin.d.ts +9 -0
- package/dist/runtime/mixins/ref-mixin.js +21 -0
- package/dist/runtime/mixins/ref-mixin.js.map +1 -0
- package/dist/runtime/navigation.d.ts +22 -0
- package/dist/runtime/navigation.js +102 -0
- package/dist/runtime/navigation.js.map +1 -0
- package/dist/runtime/reconcile.d.ts +11 -0
- package/dist/runtime/reconcile.js +1240 -0
- package/dist/runtime/reconcile.js.map +1 -0
- package/dist/runtime/render.d.ts +54 -0
- package/dist/runtime/render.js +50 -0
- package/dist/runtime/render.js.map +1 -0
- package/dist/runtime/run.d.ts +45 -0
- package/dist/runtime/run.js +68 -0
- package/dist/runtime/run.js.map +1 -0
- package/dist/runtime/scheduler.d.ts +30 -0
- package/dist/runtime/scheduler.js +185 -0
- package/dist/runtime/scheduler.js.map +1 -0
- package/dist/runtime/svg-attributes.d.ts +5 -0
- package/dist/runtime/svg-attributes.js +124 -0
- package/dist/runtime/svg-attributes.js.map +1 -0
- package/dist/runtime/to-vnode.d.ts +3 -0
- package/dist/runtime/to-vnode.js +43 -0
- package/dist/runtime/to-vnode.js.map +1 -0
- package/dist/runtime/typed-event-target.d.ts +50 -0
- package/dist/runtime/typed-event-target.js +6 -0
- package/dist/runtime/typed-event-target.js.map +1 -0
- package/dist/runtime/vdom.d.ts +55 -0
- package/dist/runtime/vdom.js +198 -0
- package/dist/runtime/vdom.js.map +1 -0
- package/dist/runtime/vnode.d.ts +79 -0
- package/dist/runtime/vnode.js +38 -0
- package/dist/runtime/vnode.js.map +1 -0
- package/dist/server/stream.d.ts +57 -0
- package/dist/server/stream.js +1007 -0
- package/dist/server/stream.js.map +1 -0
- package/dist/style/css-mixin.d.ts +8 -0
- package/dist/style/css-mixin.js +54 -0
- package/dist/style/css-mixin.js.map +1 -0
- package/dist/style/index.d.ts +5 -0
- package/dist/style/index.js +4 -0
- package/dist/style/index.js.map +1 -0
- package/dist/style/style.d.ts +24 -0
- package/dist/style/style.js +269 -0
- package/dist/style/style.js.map +1 -0
- package/dist/style/stylesheet.d.ts +11 -0
- package/dist/style/stylesheet.js +174 -0
- package/dist/style/stylesheet.js.map +1 -0
- package/dist/test.d.ts +2 -0
- package/dist/test.js +2 -0
- package/dist/test.js.map +1 -0
- package/dist/theme/contract.d.ts +259 -0
- package/dist/theme/contract.js +131 -0
- package/dist/theme/contract.js.map +1 -0
- package/dist/theme/glyph-contract.d.ts +13 -0
- package/dist/theme/glyph-contract.js +34 -0
- package/dist/theme/glyph-contract.js.map +1 -0
- package/dist/theme/presets/rmx-01/glyphs.d.ts +2 -0
- package/dist/theme/presets/rmx-01/glyphs.js +252 -0
- package/dist/theme/presets/rmx-01/glyphs.js.map +1 -0
- package/dist/theme/presets/rmx-01/index.d.ts +2 -0
- package/dist/theme/presets/rmx-01/index.js +119 -0
- package/dist/theme/presets/rmx-01/index.js.map +1 -0
- package/dist/theme/runtime.d.ts +2 -0
- package/dist/theme/runtime.js +81 -0
- package/dist/theme/runtime.js.map +1 -0
- package/dist/theme/theme.d.ts +6 -0
- package/dist/theme/theme.js +5 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/utils/flash-attribute.d.ts +1 -0
- package/dist/utils/flash-attribute.js +11 -0
- package/dist/utils/flash-attribute.js.map +1 -0
- package/dist/utils/scroll-lock.d.ts +3 -0
- package/dist/utils/scroll-lock.js +69 -0
- package/dist/utils/scroll-lock.js.map +1 -0
- package/dist/utils/wait-for-css-transition.d.ts +1 -0
- package/dist/utils/wait-for-css-transition.js +58 -0
- package/dist/utils/wait-for-css-transition.js.map +1 -0
- package/dist/utils/wait.d.ts +1 -0
- package/dist/utils/wait.js +6 -0
- package/dist/utils/wait.js.map +1 -0
- package/package.json +125 -5
- package/src/animation/animate-layout-mixin.ts +266 -0
- package/src/animation/animate-mixins.ts +292 -0
- package/src/animation/index.ts +6 -0
- package/src/animation/spring.ts +299 -0
- package/src/animation/tween.ts +134 -0
- package/src/components/accordion/accordion.tsx +565 -0
- package/src/components/anchor/anchor.ts +904 -0
- package/src/components/breadcrumbs/breadcrumbs.tsx +124 -0
- package/src/components/button/README.md +44 -0
- package/src/components/button/button.tsx +188 -0
- package/src/components/combobox/README.md +145 -0
- package/src/components/combobox/combobox.tsx +1014 -0
- package/src/components/glyph/glyph.tsx +110 -0
- package/src/components/listbox/listbox.ts +447 -0
- package/src/components/menu/hover-aim.ts +428 -0
- package/src/components/menu/menu.tsx +1547 -0
- package/src/components/popover/README.md +122 -0
- package/src/components/popover/popover.ts +201 -0
- package/src/components/select/select.tsx +585 -0
- package/src/components/separator/separator.ts +19 -0
- package/src/components/tabs/README.md +105 -0
- package/src/components/tabs/tabs.tsx +499 -0
- package/src/index.ts +72 -0
- package/src/interactions/keydown/keydown.ts +14 -0
- package/src/interactions/outside-click/outside-click-mixin.ts +55 -0
- package/src/interactions/typeahead/typeahead-mixin.ts +89 -0
- package/src/jsx-runtime.ts +2 -0
- package/src/runtime/client-entries.ts +137 -0
- package/src/runtime/component.ts +402 -0
- package/src/runtime/create-element.ts +38 -0
- package/src/runtime/diff-dom.ts +404 -0
- package/src/runtime/diff-props.ts +209 -0
- package/src/runtime/document-state.ts +130 -0
- package/src/runtime/dom.ts +3971 -0
- package/src/runtime/error-event.ts +26 -0
- package/src/runtime/event-listeners.ts +171 -0
- package/src/runtime/frame.ts +1211 -0
- package/src/runtime/invariant.ts +31 -0
- package/src/runtime/jsx.ts +398 -0
- package/src/runtime/mixins/attrs-mixin.ts +35 -0
- package/src/runtime/mixins/link-mixin.ts +131 -0
- package/src/runtime/mixins/mixin.ts +908 -0
- package/src/runtime/mixins/on-mixin.ts +89 -0
- package/src/runtime/mixins/ref-mixin.ts +32 -0
- package/src/runtime/navigation.ts +136 -0
- package/src/runtime/reconcile.ts +1722 -0
- package/src/runtime/render.ts +101 -0
- package/src/runtime/run.ts +100 -0
- package/src/runtime/scheduler.ts +262 -0
- package/src/runtime/svg-attributes.ts +133 -0
- package/src/runtime/to-vnode.ts +50 -0
- package/src/runtime/typed-event-target.ts +67 -0
- package/src/runtime/vdom.ts +295 -0
- package/src/runtime/vnode.ts +137 -0
- package/src/server/stream.ts +1342 -0
- package/src/style/css-mixin.ts +82 -0
- package/src/style/index.ts +10 -0
- package/src/style/style.ts +312 -0
- package/src/style/stylesheet.ts +209 -0
- package/src/test/setup.ts +7 -0
- package/src/test/utils.ts +45 -0
- package/src/test.ts +2 -0
- package/src/theme/contract.ts +183 -0
- package/src/theme/glyph-contract.ts +57 -0
- package/src/theme/presets/rmx-01/glyphs.tsx +308 -0
- package/src/theme/presets/rmx-01/index.ts +121 -0
- package/src/theme/runtime.ts +116 -0
- package/src/theme/theme.ts +15 -0
- package/src/utils/flash-attribute.ts +11 -0
- package/src/utils/scroll-lock.ts +97 -0
- package/src/utils/wait-for-css-transition.ts +66 -0
- package/src/utils/wait.ts +5 -0
|
@@ -0,0 +1,3971 @@
|
|
|
1
|
+
import type { StyleProps } from '../style/style.ts'
|
|
2
|
+
import type { RemixNode } from './jsx.ts'
|
|
3
|
+
import type { MixInput } from './mixins/mixin.ts'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Adapted from Preact:
|
|
7
|
+
* - Source: https://github.com/preactjs/preact/blob/eee0c6ef834534498e433f0f7a3ef679efd24380/src/dom.d.ts
|
|
8
|
+
* - License: MIT https://github.com/preactjs/preact/blob/eee0c6ef834534498e433f0f7a3ef679efd24380/LICENSE
|
|
9
|
+
* - Copyright (c) 2015-present Jason Miller
|
|
10
|
+
*/
|
|
11
|
+
type Booleanish = boolean | 'true' | 'false'
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Layout animation configuration for FLIP-based position animations.
|
|
15
|
+
* All properties are optional - defaults are applied when `true` or `{}` is used.
|
|
16
|
+
*/
|
|
17
|
+
export interface LayoutAnimationConfig {
|
|
18
|
+
/** Animation duration in milliseconds (default: 200) */
|
|
19
|
+
duration?: number
|
|
20
|
+
/** CSS easing function (default: spring 'snappy' easing) */
|
|
21
|
+
easing?: string
|
|
22
|
+
/** Include scale projection for size changes (default: true) */
|
|
23
|
+
size?: boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Shared host-element props accepted by all built-in DOM element types.
|
|
28
|
+
*/
|
|
29
|
+
export interface HostProps<eventTarget extends EventTarget> {
|
|
30
|
+
/** The reconciliation key for the element. */
|
|
31
|
+
key?: any
|
|
32
|
+
/** Child nodes to render inside the element. */
|
|
33
|
+
children?: RemixNode
|
|
34
|
+
/** Mixins to apply to the element. */
|
|
35
|
+
mix?: MixInput<eventTarget>
|
|
36
|
+
/**
|
|
37
|
+
* Set the innerHTML of the element directly.
|
|
38
|
+
* When provided, children are ignored.
|
|
39
|
+
* Use with caution as this can expose XSS vulnerabilities if the content is not sanitized.
|
|
40
|
+
*/
|
|
41
|
+
innerHTML?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Value wrapper used by host prop types that participate in tracked updates.
|
|
46
|
+
*/
|
|
47
|
+
export type Trackable<T> = T
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Props accepted by SVG elements.
|
|
51
|
+
*/
|
|
52
|
+
export interface SVGProps<eventTarget extends EventTarget = SVGElement>
|
|
53
|
+
extends HTMLProps<eventTarget> {
|
|
54
|
+
/** The `accentHeight` SVG attribute. */
|
|
55
|
+
accentHeight?: Trackable<number | string | undefined>
|
|
56
|
+
/** The `accumulate` SVG attribute. */
|
|
57
|
+
accumulate?: Trackable<'none' | 'sum' | undefined>
|
|
58
|
+
/** The `additive` SVG attribute. */
|
|
59
|
+
additive?: Trackable<'replace' | 'sum' | undefined>
|
|
60
|
+
/** The `alignmentBaseline` SVG attribute. */
|
|
61
|
+
alignmentBaseline?: Trackable<
|
|
62
|
+
| 'auto'
|
|
63
|
+
| 'baseline'
|
|
64
|
+
| 'before-edge'
|
|
65
|
+
| 'text-before-edge'
|
|
66
|
+
| 'middle'
|
|
67
|
+
| 'central'
|
|
68
|
+
| 'after-edge'
|
|
69
|
+
| 'text-after-edge'
|
|
70
|
+
| 'ideographic'
|
|
71
|
+
| 'alphabetic'
|
|
72
|
+
| 'hanging'
|
|
73
|
+
| 'mathematical'
|
|
74
|
+
| 'inherit'
|
|
75
|
+
| undefined
|
|
76
|
+
>
|
|
77
|
+
/** The `alignment-baseline` SVG attribute. */
|
|
78
|
+
'alignment-baseline'?: Trackable<
|
|
79
|
+
| 'auto'
|
|
80
|
+
| 'baseline'
|
|
81
|
+
| 'before-edge'
|
|
82
|
+
| 'text-before-edge'
|
|
83
|
+
| 'middle'
|
|
84
|
+
| 'central'
|
|
85
|
+
| 'after-edge'
|
|
86
|
+
| 'text-after-edge'
|
|
87
|
+
| 'ideographic'
|
|
88
|
+
| 'alphabetic'
|
|
89
|
+
| 'hanging'
|
|
90
|
+
| 'mathematical'
|
|
91
|
+
| 'inherit'
|
|
92
|
+
| undefined
|
|
93
|
+
>
|
|
94
|
+
/** The `allowReorder` SVG attribute. */
|
|
95
|
+
allowReorder?: Trackable<'no' | 'yes' | undefined>
|
|
96
|
+
/** The `allow-reorder` SVG attribute. */
|
|
97
|
+
'allow-reorder'?: Trackable<'no' | 'yes' | undefined>
|
|
98
|
+
/** The `alphabetic` SVG attribute. */
|
|
99
|
+
alphabetic?: Trackable<number | string | undefined>
|
|
100
|
+
/** The `amplitude` SVG attribute. */
|
|
101
|
+
amplitude?: Trackable<number | string | undefined>
|
|
102
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
|
|
103
|
+
arabicForm?: Trackable<'initial' | 'medial' | 'terminal' | 'isolated' | undefined>
|
|
104
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
|
|
105
|
+
'arabic-form'?: Trackable<'initial' | 'medial' | 'terminal' | 'isolated' | undefined>
|
|
106
|
+
/** The `ascent` SVG attribute. */
|
|
107
|
+
ascent?: Trackable<number | string | undefined>
|
|
108
|
+
/** The `attributeName` SVG attribute. */
|
|
109
|
+
attributeName?: Trackable<string | undefined>
|
|
110
|
+
/** The `attributeType` SVG attribute. */
|
|
111
|
+
attributeType?: Trackable<string | undefined>
|
|
112
|
+
/** The `azimuth` SVG attribute. */
|
|
113
|
+
azimuth?: Trackable<number | string | undefined>
|
|
114
|
+
/** The `baseFrequency` SVG attribute. */
|
|
115
|
+
baseFrequency?: Trackable<number | string | undefined>
|
|
116
|
+
/** The `baselineShift` SVG attribute. */
|
|
117
|
+
baselineShift?: Trackable<number | string | undefined>
|
|
118
|
+
/** The `baseline-shift` SVG attribute. */
|
|
119
|
+
'baseline-shift'?: Trackable<number | string | undefined>
|
|
120
|
+
/** The `baseProfile` SVG attribute. */
|
|
121
|
+
baseProfile?: Trackable<number | string | undefined>
|
|
122
|
+
/** The `bbox` SVG attribute. */
|
|
123
|
+
bbox?: Trackable<number | string | undefined>
|
|
124
|
+
/** The `begin` SVG attribute. */
|
|
125
|
+
begin?: Trackable<number | string | undefined>
|
|
126
|
+
/** The `bias` SVG attribute. */
|
|
127
|
+
bias?: Trackable<number | string | undefined>
|
|
128
|
+
/** The `by` SVG attribute. */
|
|
129
|
+
by?: Trackable<number | string | undefined>
|
|
130
|
+
/** The `calcMode` SVG attribute. */
|
|
131
|
+
calcMode?: Trackable<number | string | undefined>
|
|
132
|
+
/** The `capHeight` SVG attribute. */
|
|
133
|
+
capHeight?: Trackable<number | string | undefined>
|
|
134
|
+
/** The `cap-height` SVG attribute. */
|
|
135
|
+
'cap-height'?: Trackable<number | string | undefined>
|
|
136
|
+
/** The `clip` SVG attribute. */
|
|
137
|
+
clip?: Trackable<number | string | undefined>
|
|
138
|
+
/** The `clipPath` SVG attribute. */
|
|
139
|
+
clipPath?: Trackable<string | undefined>
|
|
140
|
+
/** The `clip-path` SVG attribute. */
|
|
141
|
+
'clip-path'?: Trackable<string | undefined>
|
|
142
|
+
/** The `clipPathUnits` SVG attribute. */
|
|
143
|
+
clipPathUnits?: Trackable<number | string | undefined>
|
|
144
|
+
/** The `clipRule` SVG attribute. */
|
|
145
|
+
clipRule?: Trackable<number | string | undefined>
|
|
146
|
+
/** The `clip-rule` SVG attribute. */
|
|
147
|
+
'clip-rule'?: Trackable<number | string | undefined>
|
|
148
|
+
/** The `colorInterpolation` SVG attribute. */
|
|
149
|
+
colorInterpolation?: Trackable<number | string | undefined>
|
|
150
|
+
/** The `color-interpolation` SVG attribute. */
|
|
151
|
+
'color-interpolation'?: Trackable<number | string | undefined>
|
|
152
|
+
/** The `colorInterpolationFilters` SVG attribute. */
|
|
153
|
+
colorInterpolationFilters?: Trackable<'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined>
|
|
154
|
+
/** The `color-interpolation-filters` SVG attribute. */
|
|
155
|
+
'color-interpolation-filters'?: Trackable<'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined>
|
|
156
|
+
/** The `colorProfile` SVG attribute. */
|
|
157
|
+
colorProfile?: Trackable<number | string | undefined>
|
|
158
|
+
/** The `color-profile` SVG attribute. */
|
|
159
|
+
'color-profile'?: Trackable<number | string | undefined>
|
|
160
|
+
/** The `colorRendering` SVG attribute. */
|
|
161
|
+
colorRendering?: Trackable<number | string | undefined>
|
|
162
|
+
/** The `color-rendering` SVG attribute. */
|
|
163
|
+
'color-rendering'?: Trackable<number | string | undefined>
|
|
164
|
+
/** The `contentScriptType` SVG attribute. */
|
|
165
|
+
contentScriptType?: Trackable<number | string | undefined>
|
|
166
|
+
/** The `content-script-type` SVG attribute. */
|
|
167
|
+
'content-script-type'?: Trackable<number | string | undefined>
|
|
168
|
+
/** The `contentStyleType` SVG attribute. */
|
|
169
|
+
contentStyleType?: Trackable<number | string | undefined>
|
|
170
|
+
/** The `content-style-type` SVG attribute. */
|
|
171
|
+
'content-style-type'?: Trackable<number | string | undefined>
|
|
172
|
+
/** The `cursor` SVG attribute. */
|
|
173
|
+
cursor?: Trackable<number | string | undefined>
|
|
174
|
+
/** The `cx` SVG attribute. */
|
|
175
|
+
cx?: Trackable<number | string | undefined>
|
|
176
|
+
/** The `cy` SVG attribute. */
|
|
177
|
+
cy?: Trackable<number | string | undefined>
|
|
178
|
+
/** The `d` SVG attribute. */
|
|
179
|
+
d?: Trackable<string | undefined>
|
|
180
|
+
/** The `decelerate` SVG attribute. */
|
|
181
|
+
decelerate?: Trackable<number | string | undefined>
|
|
182
|
+
/** The `descent` SVG attribute. */
|
|
183
|
+
descent?: Trackable<number | string | undefined>
|
|
184
|
+
/** The `diffuseConstant` SVG attribute. */
|
|
185
|
+
diffuseConstant?: Trackable<number | string | undefined>
|
|
186
|
+
/** The `direction` SVG attribute. */
|
|
187
|
+
direction?: Trackable<number | string | undefined>
|
|
188
|
+
/** The `display` SVG attribute. */
|
|
189
|
+
display?: Trackable<number | string | undefined>
|
|
190
|
+
/** The `divisor` SVG attribute. */
|
|
191
|
+
divisor?: Trackable<number | string | undefined>
|
|
192
|
+
/** The `dominantBaseline` SVG attribute. */
|
|
193
|
+
dominantBaseline?: Trackable<number | string | undefined>
|
|
194
|
+
/** The `dominant-baseline` SVG attribute. */
|
|
195
|
+
'dominant-baseline'?: Trackable<number | string | undefined>
|
|
196
|
+
/** The `dur` SVG attribute. */
|
|
197
|
+
dur?: Trackable<number | string | undefined>
|
|
198
|
+
/** The `dx` SVG attribute. */
|
|
199
|
+
dx?: Trackable<number | string | undefined>
|
|
200
|
+
/** The `dy` SVG attribute. */
|
|
201
|
+
dy?: Trackable<number | string | undefined>
|
|
202
|
+
/** The `edgeMode` SVG attribute. */
|
|
203
|
+
edgeMode?: Trackable<number | string | undefined>
|
|
204
|
+
/** The `elevation` SVG attribute. */
|
|
205
|
+
elevation?: Trackable<number | string | undefined>
|
|
206
|
+
/** The `enableBackground` SVG attribute. */
|
|
207
|
+
enableBackground?: Trackable<number | string | undefined>
|
|
208
|
+
/** The `enable-background` SVG attribute. */
|
|
209
|
+
'enable-background'?: Trackable<number | string | undefined>
|
|
210
|
+
/** The `end` SVG attribute. */
|
|
211
|
+
end?: Trackable<number | string | undefined>
|
|
212
|
+
/** The `exponent` SVG attribute. */
|
|
213
|
+
exponent?: Trackable<number | string | undefined>
|
|
214
|
+
/** The `externalResourcesRequired` SVG attribute. */
|
|
215
|
+
externalResourcesRequired?: Trackable<number | string | undefined>
|
|
216
|
+
/** The `fill` SVG attribute. */
|
|
217
|
+
fill?: Trackable<string | undefined>
|
|
218
|
+
/** The `fillOpacity` SVG attribute. */
|
|
219
|
+
fillOpacity?: Trackable<number | string | undefined>
|
|
220
|
+
/** The `fill-opacity` SVG attribute. */
|
|
221
|
+
'fill-opacity'?: Trackable<number | string | undefined>
|
|
222
|
+
/** The `fillRule` SVG attribute. */
|
|
223
|
+
fillRule?: Trackable<'nonzero' | 'evenodd' | 'inherit' | undefined>
|
|
224
|
+
/** The `fill-rule` SVG attribute. */
|
|
225
|
+
'fill-rule'?: Trackable<'nonzero' | 'evenodd' | 'inherit' | undefined>
|
|
226
|
+
/** The `filter` SVG attribute. */
|
|
227
|
+
filter?: Trackable<string | undefined>
|
|
228
|
+
/** The `filterRes` SVG attribute. */
|
|
229
|
+
filterRes?: Trackable<number | string | undefined>
|
|
230
|
+
/** The `filterUnits` SVG attribute. */
|
|
231
|
+
filterUnits?: Trackable<number | string | undefined>
|
|
232
|
+
/** The `floodColor` SVG attribute. */
|
|
233
|
+
floodColor?: Trackable<number | string | undefined>
|
|
234
|
+
/** The `flood-color` SVG attribute. */
|
|
235
|
+
'flood-color'?: Trackable<number | string | undefined>
|
|
236
|
+
/** The `floodOpacity` SVG attribute. */
|
|
237
|
+
floodOpacity?: Trackable<number | string | undefined>
|
|
238
|
+
/** The `flood-opacity` SVG attribute. */
|
|
239
|
+
'flood-opacity'?: Trackable<number | string | undefined>
|
|
240
|
+
/** The `focusable` SVG attribute. */
|
|
241
|
+
focusable?: Trackable<number | string | undefined>
|
|
242
|
+
/** The `fontFamily` SVG attribute. */
|
|
243
|
+
fontFamily?: Trackable<string | undefined>
|
|
244
|
+
/** The `font-family` SVG attribute. */
|
|
245
|
+
'font-family'?: Trackable<string | undefined>
|
|
246
|
+
/** The `fontSize` SVG attribute. */
|
|
247
|
+
fontSize?: Trackable<number | string | undefined>
|
|
248
|
+
/** The `font-size` SVG attribute. */
|
|
249
|
+
'font-size'?: Trackable<number | string | undefined>
|
|
250
|
+
/** The `fontSizeAdjust` SVG attribute. */
|
|
251
|
+
fontSizeAdjust?: Trackable<number | string | undefined>
|
|
252
|
+
/** The `font-size-adjust` SVG attribute. */
|
|
253
|
+
'font-size-adjust'?: Trackable<number | string | undefined>
|
|
254
|
+
/** The `fontStretch` SVG attribute. */
|
|
255
|
+
fontStretch?: Trackable<number | string | undefined>
|
|
256
|
+
/** The `font-stretch` SVG attribute. */
|
|
257
|
+
'font-stretch'?: Trackable<number | string | undefined>
|
|
258
|
+
/** The `fontStyle` SVG attribute. */
|
|
259
|
+
fontStyle?: Trackable<number | string | undefined>
|
|
260
|
+
/** The `font-style` SVG attribute. */
|
|
261
|
+
'font-style'?: Trackable<number | string | undefined>
|
|
262
|
+
/** The `fontVariant` SVG attribute. */
|
|
263
|
+
fontVariant?: Trackable<number | string | undefined>
|
|
264
|
+
/** The `font-variant` SVG attribute. */
|
|
265
|
+
'font-variant'?: Trackable<number | string | undefined>
|
|
266
|
+
/** The `fontWeight` SVG attribute. */
|
|
267
|
+
fontWeight?: Trackable<number | string | undefined>
|
|
268
|
+
/** The `font-weight` SVG attribute. */
|
|
269
|
+
'font-weight'?: Trackable<number | string | undefined>
|
|
270
|
+
/** The `format` SVG attribute. */
|
|
271
|
+
format?: Trackable<number | string | undefined>
|
|
272
|
+
/** The `from` SVG attribute. */
|
|
273
|
+
from?: Trackable<number | string | undefined>
|
|
274
|
+
/** The `fx` SVG attribute. */
|
|
275
|
+
fx?: Trackable<number | string | undefined>
|
|
276
|
+
/** The `fy` SVG attribute. */
|
|
277
|
+
fy?: Trackable<number | string | undefined>
|
|
278
|
+
/** The `g1` SVG attribute. */
|
|
279
|
+
g1?: Trackable<number | string | undefined>
|
|
280
|
+
/** The `g2` SVG attribute. */
|
|
281
|
+
g2?: Trackable<number | string | undefined>
|
|
282
|
+
/** The `glyphName` SVG attribute. */
|
|
283
|
+
glyphName?: Trackable<number | string | undefined>
|
|
284
|
+
/** The `glyph-name` SVG attribute. */
|
|
285
|
+
'glyph-name'?: Trackable<number | string | undefined>
|
|
286
|
+
/** The `glyphOrientationHorizontal` SVG attribute. */
|
|
287
|
+
glyphOrientationHorizontal?: Trackable<number | string | undefined>
|
|
288
|
+
/** The `glyph-orientation-horizontal` SVG attribute. */
|
|
289
|
+
'glyph-orientation-horizontal'?: Trackable<number | string | undefined>
|
|
290
|
+
/** The `glyphOrientationVertical` SVG attribute. */
|
|
291
|
+
glyphOrientationVertical?: Trackable<number | string | undefined>
|
|
292
|
+
/** The `glyph-orientation-vertical` SVG attribute. */
|
|
293
|
+
'glyph-orientation-vertical'?: Trackable<number | string | undefined>
|
|
294
|
+
/** The `glyphRef` SVG attribute. */
|
|
295
|
+
glyphRef?: Trackable<number | string | undefined>
|
|
296
|
+
/** The `gradientTransform` SVG attribute. */
|
|
297
|
+
gradientTransform?: Trackable<string | undefined>
|
|
298
|
+
/** The `gradientUnits` SVG attribute. */
|
|
299
|
+
gradientUnits?: Trackable<string | undefined>
|
|
300
|
+
/** The `hanging` SVG attribute. */
|
|
301
|
+
hanging?: Trackable<number | string | undefined>
|
|
302
|
+
/** The `height` SVG attribute. */
|
|
303
|
+
height?: Trackable<number | string | undefined>
|
|
304
|
+
/** The `horizAdvX` SVG attribute. */
|
|
305
|
+
horizAdvX?: Trackable<number | string | undefined>
|
|
306
|
+
/** The `horiz-adv-x` SVG attribute. */
|
|
307
|
+
'horiz-adv-x'?: Trackable<number | string | undefined>
|
|
308
|
+
/** The `horizOriginX` SVG attribute. */
|
|
309
|
+
horizOriginX?: Trackable<number | string | undefined>
|
|
310
|
+
/** The `horiz-origin-x` SVG attribute. */
|
|
311
|
+
'horiz-origin-x'?: Trackable<number | string | undefined>
|
|
312
|
+
/** The `href` SVG attribute. */
|
|
313
|
+
href?: Trackable<string | undefined>
|
|
314
|
+
/** The `hreflang` SVG attribute. */
|
|
315
|
+
hreflang?: Trackable<string | undefined>
|
|
316
|
+
/** The `hrefLang` SVG attribute. */
|
|
317
|
+
hrefLang?: Trackable<string | undefined>
|
|
318
|
+
/** The `ideographic` SVG attribute. */
|
|
319
|
+
ideographic?: Trackable<number | string | undefined>
|
|
320
|
+
/** The `imageRendering` SVG attribute. */
|
|
321
|
+
imageRendering?: Trackable<number | string | undefined>
|
|
322
|
+
/** The `image-rendering` SVG attribute. */
|
|
323
|
+
'image-rendering'?: Trackable<number | string | undefined>
|
|
324
|
+
/** The `in2` SVG attribute. */
|
|
325
|
+
in2?: Trackable<number | string | undefined>
|
|
326
|
+
/** The `in` SVG attribute. */
|
|
327
|
+
in?: Trackable<string | undefined>
|
|
328
|
+
/** The `intercept` SVG attribute. */
|
|
329
|
+
intercept?: Trackable<number | string | undefined>
|
|
330
|
+
/** The `k1` SVG attribute. */
|
|
331
|
+
k1?: Trackable<number | string | undefined>
|
|
332
|
+
/** The `k2` SVG attribute. */
|
|
333
|
+
k2?: Trackable<number | string | undefined>
|
|
334
|
+
/** The `k3` SVG attribute. */
|
|
335
|
+
k3?: Trackable<number | string | undefined>
|
|
336
|
+
/** The `k4` SVG attribute. */
|
|
337
|
+
k4?: Trackable<number | string | undefined>
|
|
338
|
+
/** The `k` SVG attribute. */
|
|
339
|
+
k?: Trackable<number | string | undefined>
|
|
340
|
+
/** The `kernelMatrix` SVG attribute. */
|
|
341
|
+
kernelMatrix?: Trackable<number | string | undefined>
|
|
342
|
+
/** The `kernelUnitLength` SVG attribute. */
|
|
343
|
+
kernelUnitLength?: Trackable<number | string | undefined>
|
|
344
|
+
/** The `kerning` SVG attribute. */
|
|
345
|
+
kerning?: Trackable<number | string | undefined>
|
|
346
|
+
/** The `keyPoints` SVG attribute. */
|
|
347
|
+
keyPoints?: Trackable<number | string | undefined>
|
|
348
|
+
/** The `keySplines` SVG attribute. */
|
|
349
|
+
keySplines?: Trackable<number | string | undefined>
|
|
350
|
+
/** The `keyTimes` SVG attribute. */
|
|
351
|
+
keyTimes?: Trackable<number | string | undefined>
|
|
352
|
+
/** The `lengthAdjust` SVG attribute. */
|
|
353
|
+
lengthAdjust?: Trackable<number | string | undefined>
|
|
354
|
+
/** The `letterSpacing` SVG attribute. */
|
|
355
|
+
letterSpacing?: Trackable<number | string | undefined>
|
|
356
|
+
/** The `letter-spacing` SVG attribute. */
|
|
357
|
+
'letter-spacing'?: Trackable<number | string | undefined>
|
|
358
|
+
/** The `lightingColor` SVG attribute. */
|
|
359
|
+
lightingColor?: Trackable<number | string | undefined>
|
|
360
|
+
/** The `lighting-color` SVG attribute. */
|
|
361
|
+
'lighting-color'?: Trackable<number | string | undefined>
|
|
362
|
+
/** The `limitingConeAngle` SVG attribute. */
|
|
363
|
+
limitingConeAngle?: Trackable<number | string | undefined>
|
|
364
|
+
/** The `local` SVG attribute. */
|
|
365
|
+
local?: Trackable<number | string | undefined>
|
|
366
|
+
/** The `markerEnd` SVG attribute. */
|
|
367
|
+
markerEnd?: Trackable<string | undefined>
|
|
368
|
+
/** The `marker-end` SVG attribute. */
|
|
369
|
+
'marker-end'?: Trackable<string | undefined>
|
|
370
|
+
/** The `markerHeight` SVG attribute. */
|
|
371
|
+
markerHeight?: Trackable<number | string | undefined>
|
|
372
|
+
/** The `markerMid` SVG attribute. */
|
|
373
|
+
markerMid?: Trackable<string | undefined>
|
|
374
|
+
/** The `marker-mid` SVG attribute. */
|
|
375
|
+
'marker-mid'?: Trackable<string | undefined>
|
|
376
|
+
/** The `markerStart` SVG attribute. */
|
|
377
|
+
markerStart?: Trackable<string | undefined>
|
|
378
|
+
/** The `marker-start` SVG attribute. */
|
|
379
|
+
'marker-start'?: Trackable<string | undefined>
|
|
380
|
+
/** The `markerUnits` SVG attribute. */
|
|
381
|
+
markerUnits?: Trackable<number | string | undefined>
|
|
382
|
+
/** The `markerWidth` SVG attribute. */
|
|
383
|
+
markerWidth?: Trackable<number | string | undefined>
|
|
384
|
+
/** The `mask` SVG attribute. */
|
|
385
|
+
mask?: Trackable<string | undefined>
|
|
386
|
+
/** The `maskContentUnits` SVG attribute. */
|
|
387
|
+
maskContentUnits?: Trackable<number | string | undefined>
|
|
388
|
+
/** The `maskUnits` SVG attribute. */
|
|
389
|
+
maskUnits?: Trackable<number | string | undefined>
|
|
390
|
+
/** The `mathematical` SVG attribute. */
|
|
391
|
+
mathematical?: Trackable<number | string | undefined>
|
|
392
|
+
/** The `mode` SVG attribute. */
|
|
393
|
+
mode?: Trackable<number | string | undefined>
|
|
394
|
+
/** The `numOctaves` SVG attribute. */
|
|
395
|
+
numOctaves?: Trackable<number | string | undefined>
|
|
396
|
+
/** The `offset` SVG attribute. */
|
|
397
|
+
offset?: Trackable<number | string | undefined>
|
|
398
|
+
/** The `opacity` SVG attribute. */
|
|
399
|
+
opacity?: Trackable<number | string | undefined>
|
|
400
|
+
/** The `operator` SVG attribute. */
|
|
401
|
+
operator?: Trackable<number | string | undefined>
|
|
402
|
+
/** The `order` SVG attribute. */
|
|
403
|
+
order?: Trackable<number | string | undefined>
|
|
404
|
+
/** The `orient` SVG attribute. */
|
|
405
|
+
orient?: Trackable<number | string | undefined>
|
|
406
|
+
/** The `orientation` SVG attribute. */
|
|
407
|
+
orientation?: Trackable<number | string | undefined>
|
|
408
|
+
/** The `origin` SVG attribute. */
|
|
409
|
+
origin?: Trackable<number | string | undefined>
|
|
410
|
+
/** The `overflow` SVG attribute. */
|
|
411
|
+
overflow?: Trackable<number | string | undefined>
|
|
412
|
+
/** The `overlinePosition` SVG attribute. */
|
|
413
|
+
overlinePosition?: Trackable<number | string | undefined>
|
|
414
|
+
/** The `overline-position` SVG attribute. */
|
|
415
|
+
'overline-position'?: Trackable<number | string | undefined>
|
|
416
|
+
/** The `overlineThickness` SVG attribute. */
|
|
417
|
+
overlineThickness?: Trackable<number | string | undefined>
|
|
418
|
+
/** The `overline-thickness` SVG attribute. */
|
|
419
|
+
'overline-thickness'?: Trackable<number | string | undefined>
|
|
420
|
+
/** The `paintOrder` SVG attribute. */
|
|
421
|
+
paintOrder?: Trackable<number | string | undefined>
|
|
422
|
+
/** The `paint-order` SVG attribute. */
|
|
423
|
+
'paint-order'?: Trackable<number | string | undefined>
|
|
424
|
+
/** The `panose1` SVG attribute. */
|
|
425
|
+
panose1?: Trackable<number | string | undefined>
|
|
426
|
+
/** The `panose-1` SVG attribute. */
|
|
427
|
+
'panose-1'?: Trackable<number | string | undefined>
|
|
428
|
+
/** The `pathLength` SVG attribute. */
|
|
429
|
+
pathLength?: Trackable<number | string | undefined>
|
|
430
|
+
/** The `patternContentUnits` SVG attribute. */
|
|
431
|
+
patternContentUnits?: Trackable<string | undefined>
|
|
432
|
+
/** The `patternTransform` SVG attribute. */
|
|
433
|
+
patternTransform?: Trackable<number | string | undefined>
|
|
434
|
+
/** The `patternUnits` SVG attribute. */
|
|
435
|
+
patternUnits?: Trackable<string | undefined>
|
|
436
|
+
/** The `pointerEvents` SVG attribute. */
|
|
437
|
+
pointerEvents?: Trackable<number | string | undefined>
|
|
438
|
+
/** The `pointer-events` SVG attribute. */
|
|
439
|
+
'pointer-events'?: Trackable<number | string | undefined>
|
|
440
|
+
/** The `points` SVG attribute. */
|
|
441
|
+
points?: Trackable<string | undefined>
|
|
442
|
+
/** The `pointsAtX` SVG attribute. */
|
|
443
|
+
pointsAtX?: Trackable<number | string | undefined>
|
|
444
|
+
/** The `pointsAtY` SVG attribute. */
|
|
445
|
+
pointsAtY?: Trackable<number | string | undefined>
|
|
446
|
+
/** The `pointsAtZ` SVG attribute. */
|
|
447
|
+
pointsAtZ?: Trackable<number | string | undefined>
|
|
448
|
+
/** The `preserveAlpha` SVG attribute. */
|
|
449
|
+
preserveAlpha?: Trackable<number | string | undefined>
|
|
450
|
+
/** The `preserveAspectRatio` SVG attribute. */
|
|
451
|
+
preserveAspectRatio?: Trackable<string | undefined>
|
|
452
|
+
/** The `primitiveUnits` SVG attribute. */
|
|
453
|
+
primitiveUnits?: Trackable<number | string | undefined>
|
|
454
|
+
/** The `r` SVG attribute. */
|
|
455
|
+
r?: Trackable<number | string | undefined>
|
|
456
|
+
/** The `radius` SVG attribute. */
|
|
457
|
+
radius?: Trackable<number | string | undefined>
|
|
458
|
+
/** The `refX` SVG attribute. */
|
|
459
|
+
refX?: Trackable<number | string | undefined>
|
|
460
|
+
/** The `refY` SVG attribute. */
|
|
461
|
+
refY?: Trackable<number | string | undefined>
|
|
462
|
+
/** The `renderingIntent` SVG attribute. */
|
|
463
|
+
renderingIntent?: Trackable<number | string | undefined>
|
|
464
|
+
/** The `rendering-intent` SVG attribute. */
|
|
465
|
+
'rendering-intent'?: Trackable<number | string | undefined>
|
|
466
|
+
/** The `repeatCount` SVG attribute. */
|
|
467
|
+
repeatCount?: Trackable<number | string | undefined>
|
|
468
|
+
/** The `repeat-count` SVG attribute. */
|
|
469
|
+
'repeat-count'?: Trackable<number | string | undefined>
|
|
470
|
+
/** The `repeatDur` SVG attribute. */
|
|
471
|
+
repeatDur?: Trackable<number | string | undefined>
|
|
472
|
+
/** The `repeat-dur` SVG attribute. */
|
|
473
|
+
'repeat-dur'?: Trackable<number | string | undefined>
|
|
474
|
+
/** The `requiredExtensions` SVG attribute. */
|
|
475
|
+
requiredExtensions?: Trackable<number | string | undefined>
|
|
476
|
+
/** The `requiredFeatures` SVG attribute. */
|
|
477
|
+
requiredFeatures?: Trackable<number | string | undefined>
|
|
478
|
+
/** The `restart` SVG attribute. */
|
|
479
|
+
restart?: Trackable<number | string | undefined>
|
|
480
|
+
/** The `result` SVG attribute. */
|
|
481
|
+
result?: Trackable<string | undefined>
|
|
482
|
+
/** The `rotate` SVG attribute. */
|
|
483
|
+
rotate?: Trackable<number | string | undefined>
|
|
484
|
+
/** The `rx` SVG attribute. */
|
|
485
|
+
rx?: Trackable<number | string | undefined>
|
|
486
|
+
/** The `ry` SVG attribute. */
|
|
487
|
+
ry?: Trackable<number | string | undefined>
|
|
488
|
+
/** The `scale` SVG attribute. */
|
|
489
|
+
scale?: Trackable<number | string | undefined>
|
|
490
|
+
/** The `seed` SVG attribute. */
|
|
491
|
+
seed?: Trackable<number | string | undefined>
|
|
492
|
+
/** The `shapeRendering` SVG attribute. */
|
|
493
|
+
shapeRendering?: Trackable<number | string | undefined>
|
|
494
|
+
/** The `shape-rendering` SVG attribute. */
|
|
495
|
+
'shape-rendering'?: Trackable<number | string | undefined>
|
|
496
|
+
/** The `slope` SVG attribute. */
|
|
497
|
+
slope?: Trackable<number | string | undefined>
|
|
498
|
+
/** The `spacing` SVG attribute. */
|
|
499
|
+
spacing?: Trackable<number | string | undefined>
|
|
500
|
+
/** The `specularConstant` SVG attribute. */
|
|
501
|
+
specularConstant?: Trackable<number | string | undefined>
|
|
502
|
+
/** The `specularExponent` SVG attribute. */
|
|
503
|
+
specularExponent?: Trackable<number | string | undefined>
|
|
504
|
+
/** The `speed` SVG attribute. */
|
|
505
|
+
speed?: Trackable<number | string | undefined>
|
|
506
|
+
/** The `spreadMethod` SVG attribute. */
|
|
507
|
+
spreadMethod?: Trackable<string | undefined>
|
|
508
|
+
/** The `startOffset` SVG attribute. */
|
|
509
|
+
startOffset?: Trackable<number | string | undefined>
|
|
510
|
+
/** The `stdDeviation` SVG attribute. */
|
|
511
|
+
stdDeviation?: Trackable<number | string | undefined>
|
|
512
|
+
/** The `stemh` SVG attribute. */
|
|
513
|
+
stemh?: Trackable<number | string | undefined>
|
|
514
|
+
/** The `stemv` SVG attribute. */
|
|
515
|
+
stemv?: Trackable<number | string | undefined>
|
|
516
|
+
/** The `stitchTiles` SVG attribute. */
|
|
517
|
+
stitchTiles?: Trackable<number | string | undefined>
|
|
518
|
+
/** The `stopColor` SVG attribute. */
|
|
519
|
+
stopColor?: Trackable<string | undefined>
|
|
520
|
+
/** The `stop-color` SVG attribute. */
|
|
521
|
+
'stop-color'?: Trackable<string | undefined>
|
|
522
|
+
/** The `stopOpacity` SVG attribute. */
|
|
523
|
+
stopOpacity?: Trackable<number | string | undefined>
|
|
524
|
+
/** The `stop-opacity` SVG attribute. */
|
|
525
|
+
'stop-opacity'?: Trackable<number | string | undefined>
|
|
526
|
+
/** The `strikethroughPosition` SVG attribute. */
|
|
527
|
+
strikethroughPosition?: Trackable<number | string | undefined>
|
|
528
|
+
/** The `strikethrough-position` SVG attribute. */
|
|
529
|
+
'strikethrough-position'?: Trackable<number | string | undefined>
|
|
530
|
+
/** The `strikethroughThickness` SVG attribute. */
|
|
531
|
+
strikethroughThickness?: Trackable<number | string | undefined>
|
|
532
|
+
/** The `strikethrough-thickness` SVG attribute. */
|
|
533
|
+
'strikethrough-thickness'?: Trackable<number | string | undefined>
|
|
534
|
+
/** The `string` SVG attribute. */
|
|
535
|
+
string?: Trackable<number | string | undefined>
|
|
536
|
+
/** The `stroke` SVG attribute. */
|
|
537
|
+
stroke?: Trackable<string | undefined>
|
|
538
|
+
/** The `strokeDasharray` SVG attribute. */
|
|
539
|
+
strokeDasharray?: Trackable<string | number | undefined>
|
|
540
|
+
/** The `stroke-dasharray` SVG attribute. */
|
|
541
|
+
'stroke-dasharray'?: Trackable<string | number | undefined>
|
|
542
|
+
/** The `strokeDashoffset` SVG attribute. */
|
|
543
|
+
strokeDashoffset?: Trackable<string | number | undefined>
|
|
544
|
+
/** The `stroke-dashoffset` SVG attribute. */
|
|
545
|
+
'stroke-dashoffset'?: Trackable<string | number | undefined>
|
|
546
|
+
/** The `strokeLinecap` SVG attribute. */
|
|
547
|
+
strokeLinecap?: Trackable<'butt' | 'round' | 'square' | 'inherit' | undefined>
|
|
548
|
+
/** The `stroke-linecap` SVG attribute. */
|
|
549
|
+
'stroke-linecap'?: Trackable<'butt' | 'round' | 'square' | 'inherit' | undefined>
|
|
550
|
+
/** The `strokeLinejoin` SVG attribute. */
|
|
551
|
+
strokeLinejoin?: Trackable<'miter' | 'round' | 'bevel' | 'inherit' | undefined>
|
|
552
|
+
/** The `stroke-linejoin` SVG attribute. */
|
|
553
|
+
'stroke-linejoin'?: Trackable<'miter' | 'round' | 'bevel' | 'inherit' | undefined>
|
|
554
|
+
/** The `strokeMiterlimit` SVG attribute. */
|
|
555
|
+
strokeMiterlimit?: Trackable<string | number | undefined>
|
|
556
|
+
/** The `stroke-miterlimit` SVG attribute. */
|
|
557
|
+
'stroke-miterlimit'?: Trackable<string | number | undefined>
|
|
558
|
+
/** The `strokeOpacity` SVG attribute. */
|
|
559
|
+
strokeOpacity?: Trackable<number | string | undefined>
|
|
560
|
+
/** The `stroke-opacity` SVG attribute. */
|
|
561
|
+
'stroke-opacity'?: Trackable<number | string | undefined>
|
|
562
|
+
/** The `strokeWidth` SVG attribute. */
|
|
563
|
+
strokeWidth?: Trackable<number | string | undefined>
|
|
564
|
+
/** The `stroke-width` SVG attribute. */
|
|
565
|
+
'stroke-width'?: Trackable<number | string | undefined>
|
|
566
|
+
/** The `surfaceScale` SVG attribute. */
|
|
567
|
+
surfaceScale?: Trackable<number | string | undefined>
|
|
568
|
+
/** The `systemLanguage` SVG attribute. */
|
|
569
|
+
systemLanguage?: Trackable<number | string | undefined>
|
|
570
|
+
/** The `tableValues` SVG attribute. */
|
|
571
|
+
tableValues?: Trackable<number | string | undefined>
|
|
572
|
+
/** The `targetX` SVG attribute. */
|
|
573
|
+
targetX?: Trackable<number | string | undefined>
|
|
574
|
+
/** The `targetY` SVG attribute. */
|
|
575
|
+
targetY?: Trackable<number | string | undefined>
|
|
576
|
+
/** The `textAnchor` SVG attribute. */
|
|
577
|
+
textAnchor?: Trackable<string | undefined>
|
|
578
|
+
/** The `text-anchor` SVG attribute. */
|
|
579
|
+
'text-anchor'?: Trackable<string | undefined>
|
|
580
|
+
/** The `textDecoration` SVG attribute. */
|
|
581
|
+
textDecoration?: Trackable<number | string | undefined>
|
|
582
|
+
/** The `text-decoration` SVG attribute. */
|
|
583
|
+
'text-decoration'?: Trackable<number | string | undefined>
|
|
584
|
+
/** The `textLength` SVG attribute. */
|
|
585
|
+
textLength?: Trackable<number | string | undefined>
|
|
586
|
+
/** The `textRendering` SVG attribute. */
|
|
587
|
+
textRendering?: Trackable<number | string | undefined>
|
|
588
|
+
/** The `text-rendering` SVG attribute. */
|
|
589
|
+
'text-rendering'?: Trackable<number | string | undefined>
|
|
590
|
+
/** The `to` SVG attribute. */
|
|
591
|
+
to?: Trackable<number | string | undefined>
|
|
592
|
+
/** The `transform` SVG attribute. */
|
|
593
|
+
transform?: Trackable<string | undefined>
|
|
594
|
+
/** The `transformOrigin` SVG attribute. */
|
|
595
|
+
transformOrigin?: Trackable<string | undefined>
|
|
596
|
+
/** The `transform-origin` SVG attribute. */
|
|
597
|
+
'transform-origin'?: Trackable<string | undefined>
|
|
598
|
+
/** The `type` SVG attribute. */
|
|
599
|
+
type?: Trackable<string | undefined>
|
|
600
|
+
/** The `u1` SVG attribute. */
|
|
601
|
+
u1?: Trackable<number | string | undefined>
|
|
602
|
+
/** The `u2` SVG attribute. */
|
|
603
|
+
u2?: Trackable<number | string | undefined>
|
|
604
|
+
/** The `underlinePosition` SVG attribute. */
|
|
605
|
+
underlinePosition?: Trackable<number | string | undefined>
|
|
606
|
+
/** The `underline-position` SVG attribute. */
|
|
607
|
+
'underline-position'?: Trackable<number | string | undefined>
|
|
608
|
+
/** The `underlineThickness` SVG attribute. */
|
|
609
|
+
underlineThickness?: Trackable<number | string | undefined>
|
|
610
|
+
/** The `underline-thickness` SVG attribute. */
|
|
611
|
+
'underline-thickness'?: Trackable<number | string | undefined>
|
|
612
|
+
/** The `unicode` SVG attribute. */
|
|
613
|
+
unicode?: Trackable<number | string | undefined>
|
|
614
|
+
/** The `unicodeBidi` SVG attribute. */
|
|
615
|
+
unicodeBidi?: Trackable<number | string | undefined>
|
|
616
|
+
/** The `unicode-bidi` SVG attribute. */
|
|
617
|
+
'unicode-bidi'?: Trackable<number | string | undefined>
|
|
618
|
+
/** The `unicodeRange` SVG attribute. */
|
|
619
|
+
unicodeRange?: Trackable<number | string | undefined>
|
|
620
|
+
/** The `unicode-range` SVG attribute. */
|
|
621
|
+
'unicode-range'?: Trackable<number | string | undefined>
|
|
622
|
+
/** The `unitsPerEm` SVG attribute. */
|
|
623
|
+
unitsPerEm?: Trackable<number | string | undefined>
|
|
624
|
+
/** The `units-per-em` SVG attribute. */
|
|
625
|
+
'units-per-em'?: Trackable<number | string | undefined>
|
|
626
|
+
/** The `vAlphabetic` SVG attribute. */
|
|
627
|
+
vAlphabetic?: Trackable<number | string | undefined>
|
|
628
|
+
/** The `v-alphabetic` SVG attribute. */
|
|
629
|
+
'v-alphabetic'?: Trackable<number | string | undefined>
|
|
630
|
+
/** The `values` SVG attribute. */
|
|
631
|
+
values?: Trackable<string | undefined>
|
|
632
|
+
/** The `vectorEffect` SVG attribute. */
|
|
633
|
+
vectorEffect?: Trackable<number | string | undefined>
|
|
634
|
+
/** The `vector-effect` SVG attribute. */
|
|
635
|
+
'vector-effect'?: Trackable<number | string | undefined>
|
|
636
|
+
/** The `version` SVG attribute. */
|
|
637
|
+
version?: Trackable<string | undefined>
|
|
638
|
+
/** The `vertAdvY` SVG attribute. */
|
|
639
|
+
vertAdvY?: Trackable<number | string | undefined>
|
|
640
|
+
/** The `vert-adv-y` SVG attribute. */
|
|
641
|
+
'vert-adv-y'?: Trackable<number | string | undefined>
|
|
642
|
+
/** The `vertOriginX` SVG attribute. */
|
|
643
|
+
vertOriginX?: Trackable<number | string | undefined>
|
|
644
|
+
/** The `vert-origin-x` SVG attribute. */
|
|
645
|
+
'vert-origin-x'?: Trackable<number | string | undefined>
|
|
646
|
+
/** The `vertOriginY` SVG attribute. */
|
|
647
|
+
vertOriginY?: Trackable<number | string | undefined>
|
|
648
|
+
/** The `vert-origin-y` SVG attribute. */
|
|
649
|
+
'vert-origin-y'?: Trackable<number | string | undefined>
|
|
650
|
+
/** The `vHanging` SVG attribute. */
|
|
651
|
+
vHanging?: Trackable<number | string | undefined>
|
|
652
|
+
/** The `v-hanging` SVG attribute. */
|
|
653
|
+
'v-hanging'?: Trackable<number | string | undefined>
|
|
654
|
+
/** The `vIdeographic` SVG attribute. */
|
|
655
|
+
vIdeographic?: Trackable<number | string | undefined>
|
|
656
|
+
/** The `v-ideographic` SVG attribute. */
|
|
657
|
+
'v-ideographic'?: Trackable<number | string | undefined>
|
|
658
|
+
/** The `viewBox` SVG attribute. */
|
|
659
|
+
viewBox?: Trackable<string | undefined>
|
|
660
|
+
/** The `viewTarget` SVG attribute. */
|
|
661
|
+
viewTarget?: Trackable<number | string | undefined>
|
|
662
|
+
/** The `visibility` SVG attribute. */
|
|
663
|
+
visibility?: Trackable<number | string | undefined>
|
|
664
|
+
/** The `vMathematical` SVG attribute. */
|
|
665
|
+
vMathematical?: Trackable<number | string | undefined>
|
|
666
|
+
/** The `v-mathematical` SVG attribute. */
|
|
667
|
+
'v-mathematical'?: Trackable<number | string | undefined>
|
|
668
|
+
/** The `width` SVG attribute. */
|
|
669
|
+
width?: Trackable<number | string | undefined>
|
|
670
|
+
/** The `wordSpacing` SVG attribute. */
|
|
671
|
+
wordSpacing?: Trackable<number | string | undefined>
|
|
672
|
+
/** The `word-spacing` SVG attribute. */
|
|
673
|
+
'word-spacing'?: Trackable<number | string | undefined>
|
|
674
|
+
/** The `writingMode` SVG attribute. */
|
|
675
|
+
writingMode?: Trackable<number | string | undefined>
|
|
676
|
+
/** The `writing-mode` SVG attribute. */
|
|
677
|
+
'writing-mode'?: Trackable<number | string | undefined>
|
|
678
|
+
/** The `x1` SVG attribute. */
|
|
679
|
+
x1?: Trackable<number | string | undefined>
|
|
680
|
+
/** The `x2` SVG attribute. */
|
|
681
|
+
x2?: Trackable<number | string | undefined>
|
|
682
|
+
/** The `x` SVG attribute. */
|
|
683
|
+
x?: Trackable<number | string | undefined>
|
|
684
|
+
/** The `xChannelSelector` SVG attribute. */
|
|
685
|
+
xChannelSelector?: Trackable<string | undefined>
|
|
686
|
+
/** The `xHeight` SVG attribute. */
|
|
687
|
+
xHeight?: Trackable<number | string | undefined>
|
|
688
|
+
/** The `x-height` SVG attribute. */
|
|
689
|
+
'x-height'?: Trackable<number | string | undefined>
|
|
690
|
+
/** The `xlinkActuate` SVG attribute. */
|
|
691
|
+
xlinkActuate?: Trackable<string | undefined>
|
|
692
|
+
/** The `xlink:actuate` SVG attribute. */
|
|
693
|
+
'xlink:actuate'?: Trackable<SVGProps['xlinkActuate']>
|
|
694
|
+
/** The `xlinkArcrole` SVG attribute. */
|
|
695
|
+
xlinkArcrole?: Trackable<string | undefined>
|
|
696
|
+
/** The `xlink:arcrole` SVG attribute. */
|
|
697
|
+
'xlink:arcrole'?: Trackable<string | undefined>
|
|
698
|
+
/** The `xlinkHref` SVG attribute. */
|
|
699
|
+
xlinkHref?: Trackable<string | undefined>
|
|
700
|
+
/** The `xlink:href` SVG attribute. */
|
|
701
|
+
'xlink:href'?: Trackable<string | undefined>
|
|
702
|
+
/** The `xlinkRole` SVG attribute. */
|
|
703
|
+
xlinkRole?: Trackable<string | undefined>
|
|
704
|
+
/** The `xlink:role` SVG attribute. */
|
|
705
|
+
'xlink:role'?: Trackable<string | undefined>
|
|
706
|
+
/** The `xlinkShow` SVG attribute. */
|
|
707
|
+
xlinkShow?: Trackable<string | undefined>
|
|
708
|
+
/** The `xlink:show` SVG attribute. */
|
|
709
|
+
'xlink:show'?: Trackable<string | undefined>
|
|
710
|
+
/** The `xlinkTitle` SVG attribute. */
|
|
711
|
+
xlinkTitle?: Trackable<string | undefined>
|
|
712
|
+
/** The `xlink:title` SVG attribute. */
|
|
713
|
+
'xlink:title'?: Trackable<string | undefined>
|
|
714
|
+
/** The `xlinkType` SVG attribute. */
|
|
715
|
+
xlinkType?: Trackable<string | undefined>
|
|
716
|
+
/** The `xlink:type` SVG attribute. */
|
|
717
|
+
'xlink:type'?: Trackable<string | undefined>
|
|
718
|
+
/** The `xmlBase` SVG attribute. */
|
|
719
|
+
xmlBase?: Trackable<string | undefined>
|
|
720
|
+
/** The `xml:base` SVG attribute. */
|
|
721
|
+
'xml:base'?: Trackable<string | undefined>
|
|
722
|
+
/** The `xmlLang` SVG attribute. */
|
|
723
|
+
xmlLang?: Trackable<string | undefined>
|
|
724
|
+
/** The `xml:lang` SVG attribute. */
|
|
725
|
+
'xml:lang'?: Trackable<string | undefined>
|
|
726
|
+
/** The `xmlns` SVG attribute. */
|
|
727
|
+
xmlns?: Trackable<string | undefined>
|
|
728
|
+
/** The `xmlnsXlink` SVG attribute. */
|
|
729
|
+
xmlnsXlink?: Trackable<string | undefined>
|
|
730
|
+
/** The `xmlSpace` SVG attribute. */
|
|
731
|
+
xmlSpace?: Trackable<string | undefined>
|
|
732
|
+
/** The `xml:space` SVG attribute. */
|
|
733
|
+
'xml:space'?: Trackable<string | undefined>
|
|
734
|
+
/** The `y1` SVG attribute. */
|
|
735
|
+
y1?: Trackable<number | string | undefined>
|
|
736
|
+
/** The `y2` SVG attribute. */
|
|
737
|
+
y2?: Trackable<number | string | undefined>
|
|
738
|
+
/** The `y` SVG attribute. */
|
|
739
|
+
y?: Trackable<number | string | undefined>
|
|
740
|
+
/** The `yChannelSelector` SVG attribute. */
|
|
741
|
+
yChannelSelector?: Trackable<string | undefined>
|
|
742
|
+
/** The `z` SVG attribute. */
|
|
743
|
+
z?: Trackable<number | string | undefined>
|
|
744
|
+
/** The `zoomAndPan` SVG attribute. */
|
|
745
|
+
zoomAndPan?: Trackable<string | undefined>
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Minimal props for SVG path data.
|
|
750
|
+
*/
|
|
751
|
+
export interface PathProps {
|
|
752
|
+
/** The SVG path data string. */
|
|
753
|
+
d: string
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
|
757
|
+
/**
|
|
758
|
+
* WAI-ARIA attributes accepted by host elements.
|
|
759
|
+
*/
|
|
760
|
+
export interface AriaProps {
|
|
761
|
+
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
762
|
+
'aria-activedescendant'?: Trackable<string | undefined>
|
|
763
|
+
/** 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. */
|
|
764
|
+
'aria-atomic'?: Trackable<Booleanish | undefined>
|
|
765
|
+
/**
|
|
766
|
+
* 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
|
|
767
|
+
* presented if they are made.
|
|
768
|
+
*/
|
|
769
|
+
'aria-autocomplete'?: Trackable<'none' | 'inline' | 'list' | 'both' | undefined>
|
|
770
|
+
/**
|
|
771
|
+
* Defines a string value that labels the current element, which is intended to be converted into Braille.
|
|
772
|
+
* @see aria-label.
|
|
773
|
+
*/
|
|
774
|
+
'aria-braillelabel'?: Trackable<string | undefined>
|
|
775
|
+
/**
|
|
776
|
+
* Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
|
|
777
|
+
* @see aria-roledescription.
|
|
778
|
+
*/
|
|
779
|
+
'aria-brailleroledescription'?: Trackable<string | undefined>
|
|
780
|
+
/** 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. */
|
|
781
|
+
'aria-busy'?: Trackable<Booleanish | undefined>
|
|
782
|
+
/**
|
|
783
|
+
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
784
|
+
* @see aria-pressed
|
|
785
|
+
* @see aria-selected.
|
|
786
|
+
*/
|
|
787
|
+
'aria-checked'?: Trackable<Booleanish | 'mixed' | undefined>
|
|
788
|
+
/**
|
|
789
|
+
* Defines the total number of columns in a table, grid, or treegrid.
|
|
790
|
+
* @see aria-colindex.
|
|
791
|
+
*/
|
|
792
|
+
'aria-colcount'?: Trackable<number | undefined>
|
|
793
|
+
/**
|
|
794
|
+
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
795
|
+
* @see aria-colcount
|
|
796
|
+
* @see aria-colspan.
|
|
797
|
+
*/
|
|
798
|
+
'aria-colindex'?: Trackable<number | undefined>
|
|
799
|
+
/**
|
|
800
|
+
* Defines a human readable text alternative of aria-colindex.
|
|
801
|
+
* @see aria-rowindextext.
|
|
802
|
+
*/
|
|
803
|
+
'aria-colindextext'?: Trackable<string | undefined>
|
|
804
|
+
/**
|
|
805
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
806
|
+
* @see aria-colindex
|
|
807
|
+
* @see aria-rowspan.
|
|
808
|
+
*/
|
|
809
|
+
'aria-colspan'?: Trackable<number | undefined>
|
|
810
|
+
/**
|
|
811
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
812
|
+
* @see aria-owns.
|
|
813
|
+
*/
|
|
814
|
+
'aria-controls'?: Trackable<string | undefined>
|
|
815
|
+
/** Indicates the element that represents the current item within a container or set of related elements. */
|
|
816
|
+
'aria-current'?: Trackable<
|
|
817
|
+
Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined
|
|
818
|
+
>
|
|
819
|
+
/**
|
|
820
|
+
* Identifies the element (or elements) that describes the object.
|
|
821
|
+
* @see aria-labelledby
|
|
822
|
+
*/
|
|
823
|
+
'aria-describedby'?: Trackable<string | undefined>
|
|
824
|
+
/**
|
|
825
|
+
* Defines a string value that describes or annotates the current element.
|
|
826
|
+
* @see related aria-describedby.
|
|
827
|
+
*/
|
|
828
|
+
'aria-description'?: Trackable<string | undefined>
|
|
829
|
+
/**
|
|
830
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
831
|
+
* @see aria-describedby.
|
|
832
|
+
*/
|
|
833
|
+
'aria-details'?: Trackable<string | undefined>
|
|
834
|
+
/**
|
|
835
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
836
|
+
* @see aria-hidden
|
|
837
|
+
* @see aria-readonly.
|
|
838
|
+
*/
|
|
839
|
+
'aria-disabled'?: Trackable<Booleanish | undefined>
|
|
840
|
+
/**
|
|
841
|
+
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
842
|
+
* @deprecated in ARIA 1.1
|
|
843
|
+
*/
|
|
844
|
+
'aria-dropeffect'?: Trackable<'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined>
|
|
845
|
+
/**
|
|
846
|
+
* Identifies the element that provides an error message for the object.
|
|
847
|
+
* @see aria-invalid
|
|
848
|
+
* @see aria-describedby.
|
|
849
|
+
*/
|
|
850
|
+
'aria-errormessage'?: Trackable<string | undefined>
|
|
851
|
+
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
852
|
+
'aria-expanded'?: Trackable<Booleanish | undefined>
|
|
853
|
+
/**
|
|
854
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
855
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
856
|
+
*/
|
|
857
|
+
'aria-flowto'?: Trackable<string | undefined>
|
|
858
|
+
/**
|
|
859
|
+
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
860
|
+
* @deprecated in ARIA 1.1
|
|
861
|
+
*/
|
|
862
|
+
'aria-grabbed'?: Trackable<Booleanish | undefined>
|
|
863
|
+
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
|
864
|
+
'aria-haspopup'?: Trackable<
|
|
865
|
+
Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined
|
|
866
|
+
>
|
|
867
|
+
/**
|
|
868
|
+
* Indicates whether the element is exposed to an accessibility API.
|
|
869
|
+
* @see aria-disabled.
|
|
870
|
+
*/
|
|
871
|
+
'aria-hidden'?: Trackable<Booleanish | undefined>
|
|
872
|
+
/**
|
|
873
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
874
|
+
* @see aria-errormessage.
|
|
875
|
+
*/
|
|
876
|
+
'aria-invalid'?: Trackable<Booleanish | 'grammar' | 'spelling' | undefined>
|
|
877
|
+
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
|
|
878
|
+
'aria-keyshortcuts'?: Trackable<string | undefined>
|
|
879
|
+
/**
|
|
880
|
+
* Defines a string value that labels the current element.
|
|
881
|
+
* @see aria-labelledby.
|
|
882
|
+
*/
|
|
883
|
+
'aria-label'?: Trackable<string | undefined>
|
|
884
|
+
/**
|
|
885
|
+
* Identifies the element (or elements) that labels the current element.
|
|
886
|
+
* @see aria-describedby.
|
|
887
|
+
*/
|
|
888
|
+
'aria-labelledby'?: Trackable<string | undefined>
|
|
889
|
+
/** Defines the hierarchical level of an element within a structure. */
|
|
890
|
+
'aria-level'?: Trackable<number | undefined>
|
|
891
|
+
/** 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. */
|
|
892
|
+
'aria-live'?: Trackable<'off' | 'assertive' | 'polite' | undefined>
|
|
893
|
+
/** Indicates whether an element is modal when displayed. */
|
|
894
|
+
'aria-modal'?: Trackable<Booleanish | undefined>
|
|
895
|
+
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
|
|
896
|
+
'aria-multiline'?: Trackable<Booleanish | undefined>
|
|
897
|
+
/** Indicates that the user may select more than one item from the current selectable descendants. */
|
|
898
|
+
'aria-multiselectable'?: Trackable<Booleanish | undefined>
|
|
899
|
+
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
|
900
|
+
'aria-orientation'?: Trackable<'horizontal' | 'vertical' | undefined>
|
|
901
|
+
/**
|
|
902
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
903
|
+
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
904
|
+
* @see aria-controls.
|
|
905
|
+
*/
|
|
906
|
+
'aria-owns'?: Trackable<string | undefined>
|
|
907
|
+
/**
|
|
908
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
909
|
+
* A hint could be a sample value or a brief description of the expected format.
|
|
910
|
+
*/
|
|
911
|
+
'aria-placeholder'?: Trackable<string | undefined>
|
|
912
|
+
/**
|
|
913
|
+
* 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.
|
|
914
|
+
* @see aria-setsize.
|
|
915
|
+
*/
|
|
916
|
+
'aria-posinset'?: Trackable<number | undefined>
|
|
917
|
+
/**
|
|
918
|
+
* Indicates the current "pressed" state of toggle buttons.
|
|
919
|
+
* @see aria-checked
|
|
920
|
+
* @see aria-selected.
|
|
921
|
+
*/
|
|
922
|
+
'aria-pressed'?: Trackable<Booleanish | 'mixed' | undefined>
|
|
923
|
+
/**
|
|
924
|
+
* Indicates that the element is not editable, but is otherwise operable.
|
|
925
|
+
* @see aria-disabled.
|
|
926
|
+
*/
|
|
927
|
+
'aria-readonly'?: Trackable<Booleanish | undefined>
|
|
928
|
+
/**
|
|
929
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
930
|
+
* @see aria-atomic.
|
|
931
|
+
*/
|
|
932
|
+
'aria-relevant'?: Trackable<
|
|
933
|
+
| 'additions'
|
|
934
|
+
| 'additions removals'
|
|
935
|
+
| 'additions text'
|
|
936
|
+
| 'all'
|
|
937
|
+
| 'removals'
|
|
938
|
+
| 'removals additions'
|
|
939
|
+
| 'removals text'
|
|
940
|
+
| 'text'
|
|
941
|
+
| 'text additions'
|
|
942
|
+
| 'text removals'
|
|
943
|
+
| undefined
|
|
944
|
+
>
|
|
945
|
+
/** Indicates that user input is required on the element before a form may be submitted. */
|
|
946
|
+
'aria-required'?: Trackable<Booleanish | undefined>
|
|
947
|
+
/** Defines a human-readable, author-localized description for the role of an element. */
|
|
948
|
+
'aria-roledescription'?: Trackable<string | undefined>
|
|
949
|
+
/**
|
|
950
|
+
* Defines the total number of rows in a table, grid, or treegrid.
|
|
951
|
+
* @see aria-rowindex.
|
|
952
|
+
*/
|
|
953
|
+
'aria-rowcount'?: Trackable<number | undefined>
|
|
954
|
+
/**
|
|
955
|
+
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
956
|
+
* @see aria-rowcount
|
|
957
|
+
* @see aria-rowspan.
|
|
958
|
+
*/
|
|
959
|
+
'aria-rowindex'?: Trackable<number | undefined>
|
|
960
|
+
/**
|
|
961
|
+
* Defines a human readable text alternative of aria-rowindex.
|
|
962
|
+
* @see aria-colindextext.
|
|
963
|
+
*/
|
|
964
|
+
'aria-rowindextext'?: Trackable<string | undefined>
|
|
965
|
+
/**
|
|
966
|
+
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
967
|
+
* @see aria-rowindex
|
|
968
|
+
* @see aria-colspan.
|
|
969
|
+
*/
|
|
970
|
+
'aria-rowspan'?: Trackable<number | undefined>
|
|
971
|
+
/**
|
|
972
|
+
* Indicates the current "selected" state of various widgets.
|
|
973
|
+
* @see aria-checked
|
|
974
|
+
* @see aria-pressed.
|
|
975
|
+
*/
|
|
976
|
+
'aria-selected'?: Trackable<Booleanish | undefined>
|
|
977
|
+
/**
|
|
978
|
+
* 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.
|
|
979
|
+
* @see aria-posinset.
|
|
980
|
+
*/
|
|
981
|
+
'aria-setsize'?: Trackable<number | undefined>
|
|
982
|
+
/** Indicates if items in a table or grid are sorted in ascending or descending order. */
|
|
983
|
+
'aria-sort'?: Trackable<'none' | 'ascending' | 'descending' | 'other' | undefined>
|
|
984
|
+
/** Defines the maximum allowed value for a range widget. */
|
|
985
|
+
'aria-valuemax'?: Trackable<number | undefined>
|
|
986
|
+
/** Defines the minimum allowed value for a range widget. */
|
|
987
|
+
'aria-valuemin'?: Trackable<number | undefined>
|
|
988
|
+
/**
|
|
989
|
+
* Defines the current value for a range widget.
|
|
990
|
+
* @see aria-valuetext.
|
|
991
|
+
*/
|
|
992
|
+
'aria-valuenow'?: Trackable<number | undefined>
|
|
993
|
+
/** Defines the human readable text alternative of aria-valuenow for a range widget. */
|
|
994
|
+
'aria-valuetext'?: Trackable<string | undefined>
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
// All the WAI-ARIA 1.2 role attribute values from https://www.w3.org/TR/wai-aria-1.2/#role_definitions
|
|
998
|
+
export type WAIAriaRole =
|
|
999
|
+
| 'alert'
|
|
1000
|
+
| 'alertdialog'
|
|
1001
|
+
| 'application'
|
|
1002
|
+
| 'article'
|
|
1003
|
+
| 'banner'
|
|
1004
|
+
| 'blockquote'
|
|
1005
|
+
| 'button'
|
|
1006
|
+
| 'caption'
|
|
1007
|
+
| 'cell'
|
|
1008
|
+
| 'checkbox'
|
|
1009
|
+
| 'code'
|
|
1010
|
+
| 'columnheader'
|
|
1011
|
+
| 'combobox'
|
|
1012
|
+
| 'command'
|
|
1013
|
+
| 'complementary'
|
|
1014
|
+
| 'composite'
|
|
1015
|
+
| 'contentinfo'
|
|
1016
|
+
| 'definition'
|
|
1017
|
+
| 'deletion'
|
|
1018
|
+
| 'dialog'
|
|
1019
|
+
| 'directory'
|
|
1020
|
+
| 'document'
|
|
1021
|
+
| 'emphasis'
|
|
1022
|
+
| 'feed'
|
|
1023
|
+
| 'figure'
|
|
1024
|
+
| 'form'
|
|
1025
|
+
| 'grid'
|
|
1026
|
+
| 'gridcell'
|
|
1027
|
+
| 'group'
|
|
1028
|
+
| 'heading'
|
|
1029
|
+
| 'img'
|
|
1030
|
+
| 'input'
|
|
1031
|
+
| 'insertion'
|
|
1032
|
+
| 'landmark'
|
|
1033
|
+
| 'link'
|
|
1034
|
+
| 'list'
|
|
1035
|
+
| 'listbox'
|
|
1036
|
+
| 'listitem'
|
|
1037
|
+
| 'log'
|
|
1038
|
+
| 'main'
|
|
1039
|
+
| 'marquee'
|
|
1040
|
+
| 'math'
|
|
1041
|
+
| 'meter'
|
|
1042
|
+
| 'menu'
|
|
1043
|
+
| 'menubar'
|
|
1044
|
+
| 'menuitem'
|
|
1045
|
+
| 'menuitemcheckbox'
|
|
1046
|
+
| 'menuitemradio'
|
|
1047
|
+
| 'navigation'
|
|
1048
|
+
| 'none'
|
|
1049
|
+
| 'note'
|
|
1050
|
+
| 'option'
|
|
1051
|
+
| 'paragraph'
|
|
1052
|
+
| 'presentation'
|
|
1053
|
+
| 'progressbar'
|
|
1054
|
+
| 'radio'
|
|
1055
|
+
| 'radiogroup'
|
|
1056
|
+
| 'range'
|
|
1057
|
+
| 'region'
|
|
1058
|
+
| 'roletype'
|
|
1059
|
+
| 'row'
|
|
1060
|
+
| 'rowgroup'
|
|
1061
|
+
| 'rowheader'
|
|
1062
|
+
| 'scrollbar'
|
|
1063
|
+
| 'search'
|
|
1064
|
+
| 'searchbox'
|
|
1065
|
+
| 'section'
|
|
1066
|
+
| 'sectionhead'
|
|
1067
|
+
| 'select'
|
|
1068
|
+
| 'separator'
|
|
1069
|
+
| 'slider'
|
|
1070
|
+
| 'spinbutton'
|
|
1071
|
+
| 'status'
|
|
1072
|
+
| 'strong'
|
|
1073
|
+
| 'structure'
|
|
1074
|
+
| 'subscript'
|
|
1075
|
+
| 'superscript'
|
|
1076
|
+
| 'switch'
|
|
1077
|
+
| 'tab'
|
|
1078
|
+
| 'table'
|
|
1079
|
+
| 'tablist'
|
|
1080
|
+
| 'tabpanel'
|
|
1081
|
+
| 'term'
|
|
1082
|
+
| 'textbox'
|
|
1083
|
+
| 'time'
|
|
1084
|
+
| 'timer'
|
|
1085
|
+
| 'toolbar'
|
|
1086
|
+
| 'tooltip'
|
|
1087
|
+
| 'tree'
|
|
1088
|
+
| 'treegrid'
|
|
1089
|
+
| 'treeitem'
|
|
1090
|
+
| 'widget'
|
|
1091
|
+
| 'window'
|
|
1092
|
+
| 'none presentation'
|
|
1093
|
+
|
|
1094
|
+
// All the Digital Publishing WAI-ARIA 1.0 role attribute values from https://www.w3.org/TR/dpub-aria-1.0/#role_definitions
|
|
1095
|
+
export type DPubAriaRole =
|
|
1096
|
+
| 'doc-abstract'
|
|
1097
|
+
| 'doc-acknowledgments'
|
|
1098
|
+
| 'doc-afterword'
|
|
1099
|
+
| 'doc-appendix'
|
|
1100
|
+
| 'doc-backlink'
|
|
1101
|
+
| 'doc-biblioentry'
|
|
1102
|
+
| 'doc-bibliography'
|
|
1103
|
+
| 'doc-biblioref'
|
|
1104
|
+
| 'doc-chapter'
|
|
1105
|
+
| 'doc-colophon'
|
|
1106
|
+
| 'doc-conclusion'
|
|
1107
|
+
| 'doc-cover'
|
|
1108
|
+
| 'doc-credit'
|
|
1109
|
+
| 'doc-credits'
|
|
1110
|
+
| 'doc-dedication'
|
|
1111
|
+
| 'doc-endnote'
|
|
1112
|
+
| 'doc-endnotes'
|
|
1113
|
+
| 'doc-epigraph'
|
|
1114
|
+
| 'doc-epilogue'
|
|
1115
|
+
| 'doc-errata'
|
|
1116
|
+
| 'doc-example'
|
|
1117
|
+
| 'doc-footnote'
|
|
1118
|
+
| 'doc-foreword'
|
|
1119
|
+
| 'doc-glossary'
|
|
1120
|
+
| 'doc-glossref'
|
|
1121
|
+
| 'doc-index'
|
|
1122
|
+
| 'doc-introduction'
|
|
1123
|
+
| 'doc-noteref'
|
|
1124
|
+
| 'doc-notice'
|
|
1125
|
+
| 'doc-pagebreak'
|
|
1126
|
+
| 'doc-pagelist'
|
|
1127
|
+
| 'doc-part'
|
|
1128
|
+
| 'doc-preface'
|
|
1129
|
+
| 'doc-prologue'
|
|
1130
|
+
| 'doc-pullquote'
|
|
1131
|
+
| 'doc-qna'
|
|
1132
|
+
| 'doc-subtitle'
|
|
1133
|
+
| 'doc-tip'
|
|
1134
|
+
| 'doc-toc'
|
|
1135
|
+
|
|
1136
|
+
export type AriaRole = WAIAriaRole | DPubAriaRole
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Comprehensive HTML attributes shared by specialized element prop interfaces.
|
|
1140
|
+
*/
|
|
1141
|
+
export interface AllHTMLProps<eventTarget extends EventTarget = EventTarget>
|
|
1142
|
+
extends HostProps<eventTarget>,
|
|
1143
|
+
AriaProps {
|
|
1144
|
+
// Standard HTML Attributes
|
|
1145
|
+
/** The `accept` HTML attribute. */
|
|
1146
|
+
accept?: Trackable<string | undefined>
|
|
1147
|
+
/** The `acceptCharset` HTML attribute. */
|
|
1148
|
+
acceptCharset?: Trackable<string | undefined>
|
|
1149
|
+
/** The `accept-charset` HTML attribute. */
|
|
1150
|
+
'accept-charset'?: Trackable<AllHTMLProps['acceptCharset']>
|
|
1151
|
+
/** The `accessKey` HTML attribute. */
|
|
1152
|
+
accessKey?: Trackable<string | undefined>
|
|
1153
|
+
/** The `accesskey` HTML attribute. */
|
|
1154
|
+
accesskey?: Trackable<AllHTMLProps['accessKey']>
|
|
1155
|
+
/** The `action` HTML attribute. */
|
|
1156
|
+
action?: Trackable<string | undefined>
|
|
1157
|
+
/** The `allow` HTML attribute. */
|
|
1158
|
+
allow?: Trackable<string | undefined>
|
|
1159
|
+
/** The `allowFullScreen` HTML attribute. */
|
|
1160
|
+
allowFullScreen?: Trackable<boolean | undefined>
|
|
1161
|
+
/** The `allowTransparency` HTML attribute. */
|
|
1162
|
+
allowTransparency?: Trackable<boolean | undefined>
|
|
1163
|
+
/** The `alt` HTML attribute. */
|
|
1164
|
+
alt?: Trackable<string | undefined>
|
|
1165
|
+
/** The `as` HTML attribute. */
|
|
1166
|
+
as?: Trackable<string | undefined>
|
|
1167
|
+
/** The `async` HTML attribute. */
|
|
1168
|
+
async?: Trackable<boolean | undefined>
|
|
1169
|
+
/** The `autocomplete` HTML attribute. */
|
|
1170
|
+
autocomplete?: Trackable<string | undefined>
|
|
1171
|
+
/** The `autoComplete` HTML attribute. */
|
|
1172
|
+
autoComplete?: Trackable<string | undefined>
|
|
1173
|
+
/** The `autocorrect` HTML attribute. */
|
|
1174
|
+
autocorrect?: Trackable<string | undefined>
|
|
1175
|
+
/** The `autoCorrect` HTML attribute. */
|
|
1176
|
+
autoCorrect?: Trackable<string | undefined>
|
|
1177
|
+
/** The `autofocus` HTML attribute. */
|
|
1178
|
+
autofocus?: Trackable<boolean | undefined>
|
|
1179
|
+
/** The `autoFocus` HTML attribute. */
|
|
1180
|
+
autoFocus?: Trackable<boolean | undefined>
|
|
1181
|
+
/** The `autoPlay` HTML attribute. */
|
|
1182
|
+
autoPlay?: Trackable<boolean | undefined>
|
|
1183
|
+
/** The `autoplay` HTML attribute. */
|
|
1184
|
+
autoplay?: Trackable<boolean | undefined>
|
|
1185
|
+
/** The `capture` HTML attribute. */
|
|
1186
|
+
capture?: Trackable<boolean | string | undefined>
|
|
1187
|
+
/** The `cellPadding` HTML attribute. */
|
|
1188
|
+
cellPadding?: Trackable<number | string | undefined>
|
|
1189
|
+
/** The `cellSpacing` HTML attribute. */
|
|
1190
|
+
cellSpacing?: Trackable<number | string | undefined>
|
|
1191
|
+
/** The `charSet` HTML attribute. */
|
|
1192
|
+
charSet?: Trackable<string | undefined>
|
|
1193
|
+
/** The `charset` HTML attribute. */
|
|
1194
|
+
charset?: Trackable<string | undefined>
|
|
1195
|
+
/** The `challenge` HTML attribute. */
|
|
1196
|
+
challenge?: Trackable<string | undefined>
|
|
1197
|
+
/** The `checked` HTML attribute. */
|
|
1198
|
+
checked?: Trackable<boolean | undefined>
|
|
1199
|
+
/** The `cite` HTML attribute. */
|
|
1200
|
+
cite?: Trackable<string | undefined>
|
|
1201
|
+
/** The `class` HTML attribute. */
|
|
1202
|
+
class?: Trackable<string | undefined>
|
|
1203
|
+
/** The `className` HTML attribute. */
|
|
1204
|
+
className?: Trackable<string | undefined>
|
|
1205
|
+
/** The `cols` HTML attribute. */
|
|
1206
|
+
cols?: Trackable<number | undefined>
|
|
1207
|
+
/** The `colSpan` HTML attribute. */
|
|
1208
|
+
colSpan?: Trackable<number | undefined>
|
|
1209
|
+
/** The `colspan` HTML attribute. */
|
|
1210
|
+
colspan?: Trackable<number | undefined>
|
|
1211
|
+
/** The `content` HTML attribute. */
|
|
1212
|
+
content?: Trackable<string | undefined>
|
|
1213
|
+
/** The `contentEditable` HTML attribute. */
|
|
1214
|
+
contentEditable?: Trackable<Booleanish | '' | 'plaintext-only' | 'inherit' | undefined>
|
|
1215
|
+
/** The `contenteditable` HTML attribute. */
|
|
1216
|
+
contenteditable?: Trackable<AllHTMLProps['contentEditable']>
|
|
1217
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */
|
|
1218
|
+
contextMenu?: Trackable<string | undefined>
|
|
1219
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */
|
|
1220
|
+
contextmenu?: Trackable<string | undefined>
|
|
1221
|
+
/** The `controls` HTML attribute. */
|
|
1222
|
+
controls?: Trackable<boolean | undefined>
|
|
1223
|
+
/** The `controlslist` HTML attribute. */
|
|
1224
|
+
controlslist?: Trackable<string | undefined>
|
|
1225
|
+
/** The `controlsList` HTML attribute. */
|
|
1226
|
+
controlsList?: Trackable<string | undefined>
|
|
1227
|
+
/** The `coords` HTML attribute. */
|
|
1228
|
+
coords?: Trackable<string | undefined>
|
|
1229
|
+
/** The `crossOrigin` HTML attribute. */
|
|
1230
|
+
crossOrigin?: Trackable<string | undefined>
|
|
1231
|
+
/** The `crossorigin` HTML attribute. */
|
|
1232
|
+
crossorigin?: Trackable<string | undefined>
|
|
1233
|
+
/** The `currentTime` HTML attribute. */
|
|
1234
|
+
currentTime?: Trackable<number | undefined>
|
|
1235
|
+
/** The `data` HTML attribute. */
|
|
1236
|
+
data?: Trackable<string | undefined>
|
|
1237
|
+
/** The `dateTime` HTML attribute. */
|
|
1238
|
+
dateTime?: Trackable<string | undefined>
|
|
1239
|
+
/** The `datetime` HTML attribute. */
|
|
1240
|
+
datetime?: Trackable<string | undefined>
|
|
1241
|
+
/** The `default` HTML attribute. */
|
|
1242
|
+
default?: Trackable<boolean | undefined>
|
|
1243
|
+
/** The `defaultChecked` HTML attribute. */
|
|
1244
|
+
defaultChecked?: Trackable<boolean | undefined>
|
|
1245
|
+
/** The `defaultMuted` HTML attribute. */
|
|
1246
|
+
defaultMuted?: Trackable<boolean | undefined>
|
|
1247
|
+
/** The `defaultPlaybackRate` HTML attribute. */
|
|
1248
|
+
defaultPlaybackRate?: Trackable<number | undefined>
|
|
1249
|
+
/** The `defaultValue` HTML attribute. */
|
|
1250
|
+
defaultValue?: Trackable<string | undefined>
|
|
1251
|
+
/** The `defer` HTML attribute. */
|
|
1252
|
+
defer?: Trackable<boolean | undefined>
|
|
1253
|
+
/** The `dir` HTML attribute. */
|
|
1254
|
+
dir?: Trackable<'auto' | 'rtl' | 'ltr' | undefined>
|
|
1255
|
+
/** The `disabled` HTML attribute. */
|
|
1256
|
+
disabled?: Trackable<boolean | undefined>
|
|
1257
|
+
/** The `disableremoteplayback` HTML attribute. */
|
|
1258
|
+
disableremoteplayback?: Trackable<boolean | undefined>
|
|
1259
|
+
/** The `disableRemotePlayback` HTML attribute. */
|
|
1260
|
+
disableRemotePlayback?: Trackable<boolean | undefined>
|
|
1261
|
+
/** The `download` HTML attribute. */
|
|
1262
|
+
download?: Trackable<any | undefined>
|
|
1263
|
+
/** The `decoding` HTML attribute. */
|
|
1264
|
+
decoding?: Trackable<'sync' | 'async' | 'auto' | undefined>
|
|
1265
|
+
/** The `draggable` HTML attribute. */
|
|
1266
|
+
draggable?: Trackable<boolean | undefined>
|
|
1267
|
+
/** The `encType` HTML attribute. */
|
|
1268
|
+
encType?: Trackable<string | undefined>
|
|
1269
|
+
/** The `enctype` HTML attribute. */
|
|
1270
|
+
enctype?: Trackable<string | undefined>
|
|
1271
|
+
/** The `enterkeyhint` HTML attribute. */
|
|
1272
|
+
enterkeyhint?: Trackable<
|
|
1273
|
+
'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined
|
|
1274
|
+
>
|
|
1275
|
+
/** The `elementTiming` HTML attribute. */
|
|
1276
|
+
elementTiming?: Trackable<string | undefined>
|
|
1277
|
+
/** The `elementtiming` HTML attribute. */
|
|
1278
|
+
elementtiming?: Trackable<AllHTMLProps['elementTiming']>
|
|
1279
|
+
/** The `exportparts` HTML attribute. */
|
|
1280
|
+
exportparts?: Trackable<string | undefined>
|
|
1281
|
+
/** The `for` HTML attribute. */
|
|
1282
|
+
for?: Trackable<string | undefined>
|
|
1283
|
+
/** The `form` HTML attribute. */
|
|
1284
|
+
form?: Trackable<string | undefined>
|
|
1285
|
+
/** The `formAction` HTML attribute. */
|
|
1286
|
+
formAction?: Trackable<string | undefined>
|
|
1287
|
+
/** The `formaction` HTML attribute. */
|
|
1288
|
+
formaction?: Trackable<string | undefined>
|
|
1289
|
+
/** The `formEncType` HTML attribute. */
|
|
1290
|
+
formEncType?: Trackable<string | undefined>
|
|
1291
|
+
/** The `formenctype` HTML attribute. */
|
|
1292
|
+
formenctype?: Trackable<string | undefined>
|
|
1293
|
+
/** The `formMethod` HTML attribute. */
|
|
1294
|
+
formMethod?: Trackable<string | undefined>
|
|
1295
|
+
/** The `formmethod` HTML attribute. */
|
|
1296
|
+
formmethod?: Trackable<string | undefined>
|
|
1297
|
+
/** The `formNoValidate` HTML attribute. */
|
|
1298
|
+
formNoValidate?: Trackable<boolean | undefined>
|
|
1299
|
+
/** The `formnovalidate` HTML attribute. */
|
|
1300
|
+
formnovalidate?: Trackable<boolean | undefined>
|
|
1301
|
+
/** The `formTarget` HTML attribute. */
|
|
1302
|
+
formTarget?: Trackable<string | undefined>
|
|
1303
|
+
/** The `formtarget` HTML attribute. */
|
|
1304
|
+
formtarget?: Trackable<string | undefined>
|
|
1305
|
+
/** The `frameBorder` HTML attribute. */
|
|
1306
|
+
frameBorder?: Trackable<number | string | undefined>
|
|
1307
|
+
/** The `frameborder` HTML attribute. */
|
|
1308
|
+
frameborder?: Trackable<number | string | undefined>
|
|
1309
|
+
/** The `headers` HTML attribute. */
|
|
1310
|
+
headers?: Trackable<string | undefined>
|
|
1311
|
+
/** The `height` HTML attribute. */
|
|
1312
|
+
height?: Trackable<number | string | undefined>
|
|
1313
|
+
/** The `hidden` HTML attribute. */
|
|
1314
|
+
hidden?: Trackable<boolean | 'hidden' | 'until-found' | undefined>
|
|
1315
|
+
/** The `high` HTML attribute. */
|
|
1316
|
+
high?: Trackable<number | undefined>
|
|
1317
|
+
/** The `href` HTML attribute. */
|
|
1318
|
+
href?: Trackable<string | undefined>
|
|
1319
|
+
/** The `hrefLang` HTML attribute. */
|
|
1320
|
+
hrefLang?: Trackable<string | undefined>
|
|
1321
|
+
/** The `hreflang` HTML attribute. */
|
|
1322
|
+
hreflang?: Trackable<string | undefined>
|
|
1323
|
+
/** The `htmlFor` HTML attribute. */
|
|
1324
|
+
htmlFor?: Trackable<string | undefined>
|
|
1325
|
+
/** The `httpEquiv` HTML attribute. */
|
|
1326
|
+
httpEquiv?: Trackable<string | undefined>
|
|
1327
|
+
/** The `http-equiv` HTML attribute. */
|
|
1328
|
+
'http-equiv'?: Trackable<string | undefined>
|
|
1329
|
+
/** The `icon` HTML attribute. */
|
|
1330
|
+
icon?: Trackable<string | undefined>
|
|
1331
|
+
/** The `id` HTML attribute. */
|
|
1332
|
+
id?: Trackable<string | undefined>
|
|
1333
|
+
/** The `indeterminate` HTML attribute. */
|
|
1334
|
+
indeterminate?: Trackable<boolean | undefined>
|
|
1335
|
+
/** The `inert` HTML attribute. */
|
|
1336
|
+
inert?: Trackable<boolean | undefined>
|
|
1337
|
+
/** The `inputMode` HTML attribute. */
|
|
1338
|
+
inputMode?: Trackable<string | undefined>
|
|
1339
|
+
/** The `inputmode` HTML attribute. */
|
|
1340
|
+
inputmode?: Trackable<string | undefined>
|
|
1341
|
+
/** The `integrity` HTML attribute. */
|
|
1342
|
+
integrity?: Trackable<string | undefined>
|
|
1343
|
+
/** The `is` HTML attribute. */
|
|
1344
|
+
is?: Trackable<string | undefined>
|
|
1345
|
+
/** The `keyParams` HTML attribute. */
|
|
1346
|
+
keyParams?: Trackable<string | undefined>
|
|
1347
|
+
/** The `keyType` HTML attribute. */
|
|
1348
|
+
keyType?: Trackable<string | undefined>
|
|
1349
|
+
/** The `kind` HTML attribute. */
|
|
1350
|
+
kind?: Trackable<string | undefined>
|
|
1351
|
+
/** The `label` HTML attribute. */
|
|
1352
|
+
label?: Trackable<string | undefined>
|
|
1353
|
+
/** The `lang` HTML attribute. */
|
|
1354
|
+
lang?: Trackable<string | undefined>
|
|
1355
|
+
/** The `list` HTML attribute. */
|
|
1356
|
+
list?: Trackable<string | undefined>
|
|
1357
|
+
/** The `loading` HTML attribute. */
|
|
1358
|
+
loading?: Trackable<'eager' | 'lazy' | undefined>
|
|
1359
|
+
/** The `loop` HTML attribute. */
|
|
1360
|
+
loop?: Trackable<boolean | undefined>
|
|
1361
|
+
/** The `low` HTML attribute. */
|
|
1362
|
+
low?: Trackable<number | undefined>
|
|
1363
|
+
/** The `manifest` HTML attribute. */
|
|
1364
|
+
manifest?: Trackable<string | undefined>
|
|
1365
|
+
/** The `marginHeight` HTML attribute. */
|
|
1366
|
+
marginHeight?: Trackable<number | undefined>
|
|
1367
|
+
/** The `marginWidth` HTML attribute. */
|
|
1368
|
+
marginWidth?: Trackable<number | undefined>
|
|
1369
|
+
/** The `max` HTML attribute. */
|
|
1370
|
+
max?: Trackable<number | string | undefined>
|
|
1371
|
+
/** The `maxLength` HTML attribute. */
|
|
1372
|
+
maxLength?: Trackable<number | undefined>
|
|
1373
|
+
/** The `maxlength` HTML attribute. */
|
|
1374
|
+
maxlength?: Trackable<number | undefined>
|
|
1375
|
+
/** The `media` HTML attribute. */
|
|
1376
|
+
media?: Trackable<string | undefined>
|
|
1377
|
+
/** The `mediaGroup` HTML attribute. */
|
|
1378
|
+
mediaGroup?: Trackable<string | undefined>
|
|
1379
|
+
/** The `method` HTML attribute. */
|
|
1380
|
+
method?: Trackable<string | undefined>
|
|
1381
|
+
/** The `min` HTML attribute. */
|
|
1382
|
+
min?: Trackable<number | string | undefined>
|
|
1383
|
+
/** The `minLength` HTML attribute. */
|
|
1384
|
+
minLength?: Trackable<number | undefined>
|
|
1385
|
+
/** The `minlength` HTML attribute. */
|
|
1386
|
+
minlength?: Trackable<number | undefined>
|
|
1387
|
+
/** The `multiple` HTML attribute. */
|
|
1388
|
+
multiple?: Trackable<boolean | undefined>
|
|
1389
|
+
/** The `muted` HTML attribute. */
|
|
1390
|
+
muted?: Trackable<boolean | undefined>
|
|
1391
|
+
/** The `name` HTML attribute. */
|
|
1392
|
+
name?: Trackable<string | undefined>
|
|
1393
|
+
/** The `nomodule` HTML attribute. */
|
|
1394
|
+
nomodule?: Trackable<boolean | undefined>
|
|
1395
|
+
/** The `nonce` HTML attribute. */
|
|
1396
|
+
nonce?: Trackable<string | undefined>
|
|
1397
|
+
/** The `noValidate` HTML attribute. */
|
|
1398
|
+
noValidate?: Trackable<boolean | undefined>
|
|
1399
|
+
/** The `novalidate` HTML attribute. */
|
|
1400
|
+
novalidate?: Trackable<boolean | undefined>
|
|
1401
|
+
/** The `open` HTML attribute. */
|
|
1402
|
+
open?: Trackable<boolean | undefined>
|
|
1403
|
+
/** The `optimum` HTML attribute. */
|
|
1404
|
+
optimum?: Trackable<number | undefined>
|
|
1405
|
+
/** The `part` HTML attribute. */
|
|
1406
|
+
part?: Trackable<string | undefined>
|
|
1407
|
+
/** The `pattern` HTML attribute. */
|
|
1408
|
+
pattern?: Trackable<string | undefined>
|
|
1409
|
+
/** The `ping` HTML attribute. */
|
|
1410
|
+
ping?: Trackable<string | undefined>
|
|
1411
|
+
/** The `placeholder` HTML attribute. */
|
|
1412
|
+
placeholder?: Trackable<string | undefined>
|
|
1413
|
+
/** The `playsInline` HTML attribute. */
|
|
1414
|
+
playsInline?: Trackable<boolean | undefined>
|
|
1415
|
+
/** The `playsinline` HTML attribute. */
|
|
1416
|
+
playsinline?: Trackable<boolean | undefined>
|
|
1417
|
+
/** The `playbackRate` HTML attribute. */
|
|
1418
|
+
playbackRate?: Trackable<number | undefined>
|
|
1419
|
+
/** The `popover` HTML attribute. */
|
|
1420
|
+
popover?: Trackable<'auto' | 'hint' | 'manual' | boolean | undefined>
|
|
1421
|
+
/** The `popovertarget` HTML attribute. */
|
|
1422
|
+
popovertarget?: Trackable<string | undefined>
|
|
1423
|
+
/** The `popoverTarget` HTML attribute. */
|
|
1424
|
+
popoverTarget?: Trackable<string | undefined>
|
|
1425
|
+
/** The `popovertargetaction` HTML attribute. */
|
|
1426
|
+
popovertargetaction?: Trackable<'hide' | 'show' | 'toggle' | undefined>
|
|
1427
|
+
/** The `popoverTargetAction` HTML attribute. */
|
|
1428
|
+
popoverTargetAction?: Trackable<'hide' | 'show' | 'toggle' | undefined>
|
|
1429
|
+
/** The `poster` HTML attribute. */
|
|
1430
|
+
poster?: Trackable<string | undefined>
|
|
1431
|
+
/** The `preload` HTML attribute. */
|
|
1432
|
+
preload?: Trackable<'auto' | 'metadata' | 'none' | undefined>
|
|
1433
|
+
/** The `preservesPitch` HTML attribute. */
|
|
1434
|
+
preservesPitch?: Trackable<boolean | undefined>
|
|
1435
|
+
/** The `radioGroup` HTML attribute. */
|
|
1436
|
+
radioGroup?: Trackable<string | undefined>
|
|
1437
|
+
/** The `readonly` HTML attribute. */
|
|
1438
|
+
readonly?: Trackable<boolean | undefined>
|
|
1439
|
+
/** The `readOnly` HTML attribute. */
|
|
1440
|
+
readOnly?: Trackable<boolean | undefined>
|
|
1441
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
1442
|
+
referrerpolicy?: Trackable<
|
|
1443
|
+
| 'no-referrer'
|
|
1444
|
+
| 'no-referrer-when-downgrade'
|
|
1445
|
+
| 'origin'
|
|
1446
|
+
| 'origin-when-cross-origin'
|
|
1447
|
+
| 'same-origin'
|
|
1448
|
+
| 'strict-origin'
|
|
1449
|
+
| 'strict-origin-when-cross-origin'
|
|
1450
|
+
| 'unsafe-url'
|
|
1451
|
+
| undefined
|
|
1452
|
+
>
|
|
1453
|
+
/** The `rel` HTML attribute. */
|
|
1454
|
+
rel?: Trackable<string | undefined>
|
|
1455
|
+
/** The `required` HTML attribute. */
|
|
1456
|
+
required?: Trackable<boolean | undefined>
|
|
1457
|
+
/** The `reversed` HTML attribute. */
|
|
1458
|
+
reversed?: Trackable<boolean | undefined>
|
|
1459
|
+
/** The `role` HTML attribute. */
|
|
1460
|
+
role?: Trackable<AriaRole | undefined>
|
|
1461
|
+
/** The `rows` HTML attribute. */
|
|
1462
|
+
rows?: Trackable<number | undefined>
|
|
1463
|
+
/** The `rowSpan` HTML attribute. */
|
|
1464
|
+
rowSpan?: Trackable<number | undefined>
|
|
1465
|
+
/** The `rowspan` HTML attribute. */
|
|
1466
|
+
rowspan?: Trackable<number | undefined>
|
|
1467
|
+
/** The `sandbox` HTML attribute. */
|
|
1468
|
+
sandbox?: Trackable<string | undefined>
|
|
1469
|
+
/** The `scope` HTML attribute. */
|
|
1470
|
+
scope?: Trackable<string | undefined>
|
|
1471
|
+
/** The `scoped` HTML attribute. */
|
|
1472
|
+
scoped?: Trackable<boolean | undefined>
|
|
1473
|
+
/** The `scrolling` HTML attribute. */
|
|
1474
|
+
scrolling?: Trackable<string | undefined>
|
|
1475
|
+
/** The `seamless` HTML attribute. */
|
|
1476
|
+
seamless?: Trackable<boolean | undefined>
|
|
1477
|
+
/** The `selected` HTML attribute. */
|
|
1478
|
+
selected?: Trackable<boolean | undefined>
|
|
1479
|
+
/** The `shape` HTML attribute. */
|
|
1480
|
+
shape?: Trackable<string | undefined>
|
|
1481
|
+
/** The `size` HTML attribute. */
|
|
1482
|
+
size?: Trackable<number | undefined>
|
|
1483
|
+
/** The `sizes` HTML attribute. */
|
|
1484
|
+
sizes?: Trackable<string | undefined>
|
|
1485
|
+
/** The `slot` HTML attribute. */
|
|
1486
|
+
slot?: Trackable<string | undefined>
|
|
1487
|
+
/** The `span` HTML attribute. */
|
|
1488
|
+
span?: Trackable<number | undefined>
|
|
1489
|
+
/** The `spellcheck` HTML attribute. */
|
|
1490
|
+
spellcheck?: Trackable<boolean | undefined>
|
|
1491
|
+
/** The `src` HTML attribute. */
|
|
1492
|
+
src?: Trackable<string | undefined>
|
|
1493
|
+
/** The `srcDoc` HTML attribute. */
|
|
1494
|
+
srcDoc?: Trackable<string | undefined>
|
|
1495
|
+
/** The `srcdoc` HTML attribute. */
|
|
1496
|
+
srcdoc?: Trackable<string | undefined>
|
|
1497
|
+
/** The `srcLang` HTML attribute. */
|
|
1498
|
+
srcLang?: Trackable<string | undefined>
|
|
1499
|
+
/** The `srclang` HTML attribute. */
|
|
1500
|
+
srclang?: Trackable<string | undefined>
|
|
1501
|
+
/** The `srcSet` HTML attribute. */
|
|
1502
|
+
srcSet?: Trackable<string | undefined>
|
|
1503
|
+
/** The `srcset` HTML attribute. */
|
|
1504
|
+
srcset?: Trackable<string | undefined>
|
|
1505
|
+
/** The `srcObject` HTML attribute. */
|
|
1506
|
+
srcObject?: Trackable<MediaStream | MediaSource | Blob | File | null>
|
|
1507
|
+
/** The `start` HTML attribute. */
|
|
1508
|
+
start?: Trackable<number | undefined>
|
|
1509
|
+
/** The `step` HTML attribute. */
|
|
1510
|
+
step?: Trackable<number | string | undefined>
|
|
1511
|
+
/** The `style` HTML attribute. */
|
|
1512
|
+
style?: Trackable<string | StyleProps | undefined>
|
|
1513
|
+
/** The `summary` HTML attribute. */
|
|
1514
|
+
summary?: Trackable<string | undefined>
|
|
1515
|
+
/** The `tabIndex` HTML attribute. */
|
|
1516
|
+
tabIndex?: Trackable<number | undefined>
|
|
1517
|
+
/** The `tabindex` HTML attribute. */
|
|
1518
|
+
tabindex?: Trackable<number | undefined>
|
|
1519
|
+
/** The `target` HTML attribute. */
|
|
1520
|
+
target?: Trackable<string | undefined>
|
|
1521
|
+
/** The `title` HTML attribute. */
|
|
1522
|
+
title?: Trackable<string | undefined>
|
|
1523
|
+
/** The `type` HTML attribute. */
|
|
1524
|
+
type?: Trackable<string | undefined>
|
|
1525
|
+
/** The `useMap` HTML attribute. */
|
|
1526
|
+
useMap?: Trackable<string | undefined>
|
|
1527
|
+
/** The `usemap` HTML attribute. */
|
|
1528
|
+
usemap?: Trackable<string | undefined>
|
|
1529
|
+
/** The `value` HTML attribute. */
|
|
1530
|
+
value?: Trackable<string | string[] | number | undefined>
|
|
1531
|
+
/** The `volume` HTML attribute. */
|
|
1532
|
+
volume?: Trackable<string | number | undefined>
|
|
1533
|
+
/** The `width` HTML attribute. */
|
|
1534
|
+
width?: Trackable<number | string | undefined>
|
|
1535
|
+
/** The `wmode` HTML attribute. */
|
|
1536
|
+
wmode?: Trackable<string | undefined>
|
|
1537
|
+
/** The `wrap` HTML attribute. */
|
|
1538
|
+
wrap?: Trackable<string | undefined>
|
|
1539
|
+
|
|
1540
|
+
// Non-standard Attributes
|
|
1541
|
+
/** The `autocapitalize` HTML attribute. */
|
|
1542
|
+
autocapitalize?: Trackable<
|
|
1543
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1544
|
+
>
|
|
1545
|
+
/** The `autoCapitalize` HTML attribute. */
|
|
1546
|
+
autoCapitalize?: Trackable<
|
|
1547
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1548
|
+
>
|
|
1549
|
+
/** The `disablePictureInPicture` HTML attribute. */
|
|
1550
|
+
disablePictureInPicture?: Trackable<boolean | undefined>
|
|
1551
|
+
/** The `results` HTML attribute. */
|
|
1552
|
+
results?: Trackable<number | undefined>
|
|
1553
|
+
/** The `translate` HTML attribute. */
|
|
1554
|
+
translate?: Trackable<boolean | undefined>
|
|
1555
|
+
|
|
1556
|
+
// RDFa Attributes
|
|
1557
|
+
/** The `about` HTML attribute. */
|
|
1558
|
+
about?: Trackable<string | undefined>
|
|
1559
|
+
/** The `datatype` HTML attribute. */
|
|
1560
|
+
datatype?: Trackable<string | undefined>
|
|
1561
|
+
/** The `inlist` HTML attribute. */
|
|
1562
|
+
inlist?: Trackable<any>
|
|
1563
|
+
/** The `prefix` HTML attribute. */
|
|
1564
|
+
prefix?: Trackable<string | undefined>
|
|
1565
|
+
/** The `property` HTML attribute. */
|
|
1566
|
+
property?: Trackable<string | undefined>
|
|
1567
|
+
/** The `resource` HTML attribute. */
|
|
1568
|
+
resource?: Trackable<string | undefined>
|
|
1569
|
+
/** The `typeof` HTML attribute. */
|
|
1570
|
+
typeof?: Trackable<string | undefined>
|
|
1571
|
+
/** The `vocab` HTML attribute. */
|
|
1572
|
+
vocab?: Trackable<string | undefined>
|
|
1573
|
+
|
|
1574
|
+
// Microdata Attributes
|
|
1575
|
+
/** The `itemProp` HTML attribute. */
|
|
1576
|
+
itemProp?: Trackable<string | undefined>
|
|
1577
|
+
/** The `itemprop` HTML attribute. */
|
|
1578
|
+
itemprop?: Trackable<string | undefined>
|
|
1579
|
+
/** The `itemScope` HTML attribute. */
|
|
1580
|
+
itemScope?: Trackable<boolean | undefined>
|
|
1581
|
+
/** The `itemscope` HTML attribute. */
|
|
1582
|
+
itemscope?: Trackable<boolean | undefined>
|
|
1583
|
+
/** The `itemType` HTML attribute. */
|
|
1584
|
+
itemType?: Trackable<string | undefined>
|
|
1585
|
+
/** The `itemtype` HTML attribute. */
|
|
1586
|
+
itemtype?: Trackable<string | undefined>
|
|
1587
|
+
/** The `itemID` HTML attribute. */
|
|
1588
|
+
itemID?: Trackable<string | undefined>
|
|
1589
|
+
/** The `itemid` HTML attribute. */
|
|
1590
|
+
itemid?: Trackable<string | undefined>
|
|
1591
|
+
/** The `itemRef` HTML attribute. */
|
|
1592
|
+
itemRef?: Trackable<string | undefined>
|
|
1593
|
+
/** The `itemref` HTML attribute. */
|
|
1594
|
+
itemref?: Trackable<string | undefined>
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Core global HTML attributes accepted by most host elements.
|
|
1599
|
+
*/
|
|
1600
|
+
export interface HTMLProps<eventTarget extends EventTarget = EventTarget>
|
|
1601
|
+
extends HostProps<eventTarget>,
|
|
1602
|
+
AriaProps {
|
|
1603
|
+
// Standard HTML Attributes
|
|
1604
|
+
/** The `accesskey` HTML attribute. */
|
|
1605
|
+
accesskey?: Trackable<string | undefined>
|
|
1606
|
+
/** The `accessKey` HTML attribute. */
|
|
1607
|
+
accessKey?: Trackable<string | undefined>
|
|
1608
|
+
/** The `autocapitalize` HTML attribute. */
|
|
1609
|
+
autocapitalize?: Trackable<
|
|
1610
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1611
|
+
>
|
|
1612
|
+
/** The `autoCapitalize` HTML attribute. */
|
|
1613
|
+
autoCapitalize?: Trackable<
|
|
1614
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1615
|
+
>
|
|
1616
|
+
/** The `autocorrect` HTML attribute. */
|
|
1617
|
+
autocorrect?: Trackable<string | undefined>
|
|
1618
|
+
/** The `autoCorrect` HTML attribute. */
|
|
1619
|
+
autoCorrect?: Trackable<string | undefined>
|
|
1620
|
+
/** The `autofocus` HTML attribute. */
|
|
1621
|
+
autofocus?: Trackable<boolean | undefined>
|
|
1622
|
+
/** The `autoFocus` HTML attribute. */
|
|
1623
|
+
autoFocus?: Trackable<boolean | undefined>
|
|
1624
|
+
/** The `class` HTML attribute. */
|
|
1625
|
+
class?: Trackable<string | undefined>
|
|
1626
|
+
/** The `className` HTML attribute. */
|
|
1627
|
+
className?: Trackable<string | undefined>
|
|
1628
|
+
/** The `contenteditable` HTML attribute. */
|
|
1629
|
+
contenteditable?: Trackable<Booleanish | '' | 'plaintext-only' | 'inherit' | undefined>
|
|
1630
|
+
/** The `contentEditable` HTML attribute. */
|
|
1631
|
+
contentEditable?: Trackable<Booleanish | '' | 'plaintext-only' | 'inherit' | undefined>
|
|
1632
|
+
/** The `dir` HTML attribute. */
|
|
1633
|
+
dir?: Trackable<'auto' | 'rtl' | 'ltr' | undefined>
|
|
1634
|
+
/** The `draggable` HTML attribute. */
|
|
1635
|
+
draggable?: Trackable<boolean | undefined>
|
|
1636
|
+
/** The `enterkeyhint` HTML attribute. */
|
|
1637
|
+
enterkeyhint?: Trackable<
|
|
1638
|
+
'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined
|
|
1639
|
+
>
|
|
1640
|
+
/** The `exportparts` HTML attribute. */
|
|
1641
|
+
exportparts?: Trackable<string | undefined>
|
|
1642
|
+
/** The `hidden` HTML attribute. */
|
|
1643
|
+
hidden?: Trackable<boolean | 'hidden' | 'until-found' | undefined>
|
|
1644
|
+
/** The `id` HTML attribute. */
|
|
1645
|
+
id?: Trackable<string | undefined>
|
|
1646
|
+
/** The `inert` HTML attribute. */
|
|
1647
|
+
inert?: Trackable<boolean | undefined>
|
|
1648
|
+
/** The `inputmode` HTML attribute. */
|
|
1649
|
+
inputmode?: Trackable<string | undefined>
|
|
1650
|
+
/** The `inputMode` HTML attribute. */
|
|
1651
|
+
inputMode?: Trackable<string | undefined>
|
|
1652
|
+
/** The `is` HTML attribute. */
|
|
1653
|
+
is?: Trackable<string | undefined>
|
|
1654
|
+
/** The `lang` HTML attribute. */
|
|
1655
|
+
lang?: Trackable<string | undefined>
|
|
1656
|
+
/** The `nonce` HTML attribute. */
|
|
1657
|
+
nonce?: Trackable<string | undefined>
|
|
1658
|
+
/** The `part` HTML attribute. */
|
|
1659
|
+
part?: Trackable<string | undefined>
|
|
1660
|
+
/** The `popover` HTML attribute. */
|
|
1661
|
+
popover?: Trackable<'auto' | 'hint' | 'manual' | boolean | undefined>
|
|
1662
|
+
/** The `slot` HTML attribute. */
|
|
1663
|
+
slot?: Trackable<string | undefined>
|
|
1664
|
+
/** The `spellcheck` HTML attribute. */
|
|
1665
|
+
spellcheck?: Trackable<boolean | undefined>
|
|
1666
|
+
/** The `style` HTML attribute. */
|
|
1667
|
+
style?: Trackable<string | StyleProps | undefined>
|
|
1668
|
+
/** The `tabindex` HTML attribute. */
|
|
1669
|
+
tabindex?: Trackable<number | undefined>
|
|
1670
|
+
/** The `tabIndex` HTML attribute. */
|
|
1671
|
+
tabIndex?: Trackable<number | undefined>
|
|
1672
|
+
/** The `title` HTML attribute. */
|
|
1673
|
+
title?: Trackable<string | undefined>
|
|
1674
|
+
/** The `translate` HTML attribute. */
|
|
1675
|
+
translate?: Trackable<boolean | undefined>
|
|
1676
|
+
|
|
1677
|
+
// WAI-ARIA Attributes
|
|
1678
|
+
// Most elements only allow a subset of roles and so this
|
|
1679
|
+
// is overwritten in many of the per-element interfaces below
|
|
1680
|
+
/** The `role` HTML attribute. */
|
|
1681
|
+
role?: Trackable<AriaRole | undefined>
|
|
1682
|
+
|
|
1683
|
+
// Non-standard Attributes
|
|
1684
|
+
/** The `disablePictureInPicture` HTML attribute. */
|
|
1685
|
+
disablePictureInPicture?: Trackable<boolean | undefined>
|
|
1686
|
+
/** The `elementtiming` HTML attribute. */
|
|
1687
|
+
elementtiming?: Trackable<string | undefined>
|
|
1688
|
+
/** The `elementTiming` HTML attribute. */
|
|
1689
|
+
elementTiming?: Trackable<string | undefined>
|
|
1690
|
+
/** The `results` HTML attribute. */
|
|
1691
|
+
results?: Trackable<number | undefined>
|
|
1692
|
+
|
|
1693
|
+
// RDFa Attributes
|
|
1694
|
+
/** The `about` HTML attribute. */
|
|
1695
|
+
about?: Trackable<string | undefined>
|
|
1696
|
+
/** The `datatype` HTML attribute. */
|
|
1697
|
+
datatype?: Trackable<string | undefined>
|
|
1698
|
+
/** The `inlist` HTML attribute. */
|
|
1699
|
+
inlist?: Trackable<any>
|
|
1700
|
+
/** The `prefix` HTML attribute. */
|
|
1701
|
+
prefix?: Trackable<string | undefined>
|
|
1702
|
+
/** The `property` HTML attribute. */
|
|
1703
|
+
property?: Trackable<string | undefined>
|
|
1704
|
+
/** The `resource` HTML attribute. */
|
|
1705
|
+
resource?: Trackable<string | undefined>
|
|
1706
|
+
/** The `typeof` HTML attribute. */
|
|
1707
|
+
typeof?: Trackable<string | undefined>
|
|
1708
|
+
/** The `vocab` HTML attribute. */
|
|
1709
|
+
vocab?: Trackable<string | undefined>
|
|
1710
|
+
|
|
1711
|
+
// Microdata Attributes
|
|
1712
|
+
/** The `itemid` HTML attribute. */
|
|
1713
|
+
itemid?: Trackable<string | undefined>
|
|
1714
|
+
/** The `itemID` HTML attribute. */
|
|
1715
|
+
itemID?: Trackable<string | undefined>
|
|
1716
|
+
/** The `itemprop` HTML attribute. */
|
|
1717
|
+
itemprop?: Trackable<string | undefined>
|
|
1718
|
+
/** The `itemProp` HTML attribute. */
|
|
1719
|
+
itemProp?: Trackable<string | undefined>
|
|
1720
|
+
/** The `itemref` HTML attribute. */
|
|
1721
|
+
itemref?: Trackable<string | undefined>
|
|
1722
|
+
/** The `itemRef` HTML attribute. */
|
|
1723
|
+
itemRef?: Trackable<string | undefined>
|
|
1724
|
+
/** The `itemscope` HTML attribute. */
|
|
1725
|
+
itemscope?: Trackable<boolean | undefined>
|
|
1726
|
+
/** The `itemScope` HTML attribute. */
|
|
1727
|
+
itemScope?: Trackable<boolean | undefined>
|
|
1728
|
+
/** The `itemtype` HTML attribute. */
|
|
1729
|
+
itemtype?: Trackable<string | undefined>
|
|
1730
|
+
/** The `itemType` HTML attribute. */
|
|
1731
|
+
itemType?: Trackable<string | undefined>
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
export type HTMLAttributeReferrerPolicy =
|
|
1735
|
+
| ''
|
|
1736
|
+
| 'no-referrer'
|
|
1737
|
+
| 'no-referrer-when-downgrade'
|
|
1738
|
+
| 'origin'
|
|
1739
|
+
| 'origin-when-cross-origin'
|
|
1740
|
+
| 'same-origin'
|
|
1741
|
+
| 'strict-origin'
|
|
1742
|
+
| 'strict-origin-when-cross-origin'
|
|
1743
|
+
| 'unsafe-url'
|
|
1744
|
+
|
|
1745
|
+
export type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {})
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Props accepted by `<anchor>` elements.
|
|
1749
|
+
*/
|
|
1750
|
+
export interface PartialAnchorHTMLProps<eventTarget extends EventTarget>
|
|
1751
|
+
extends HTMLProps<eventTarget> {
|
|
1752
|
+
/** The `download` HTML attribute. */
|
|
1753
|
+
download?: Trackable<any>
|
|
1754
|
+
/** The `hreflang` HTML attribute. */
|
|
1755
|
+
hreflang?: Trackable<string | undefined>
|
|
1756
|
+
/** The `hrefLang` HTML attribute. */
|
|
1757
|
+
hrefLang?: Trackable<string | undefined>
|
|
1758
|
+
/** The `media` HTML attribute. */
|
|
1759
|
+
media?: Trackable<string | undefined>
|
|
1760
|
+
/** The `ping` HTML attribute. */
|
|
1761
|
+
ping?: Trackable<string | undefined>
|
|
1762
|
+
/** The `rel` HTML attribute. */
|
|
1763
|
+
rel?: Trackable<string | undefined>
|
|
1764
|
+
/** The `target` HTML attribute. */
|
|
1765
|
+
target?: Trackable<HTMLAttributeAnchorTarget | undefined>
|
|
1766
|
+
/** The `type` HTML attribute. */
|
|
1767
|
+
type?: Trackable<string | undefined>
|
|
1768
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
1769
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
1770
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
1771
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
1772
|
+
|
|
1773
|
+
// Non-standard Attributes
|
|
1774
|
+
/** The `rmx-target` HTML attribute. */
|
|
1775
|
+
'rmx-target'?: Trackable<string | undefined>
|
|
1776
|
+
/** The `rmx-src` HTML attribute. */
|
|
1777
|
+
'rmx-src'?: Trackable<string | undefined>
|
|
1778
|
+
/** The `rmx-reset-scroll` HTML attribute. */
|
|
1779
|
+
'rmx-reset-scroll'?: Trackable<string | undefined>
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
export type AnchorAriaRoles =
|
|
1783
|
+
| {
|
|
1784
|
+
href: Trackable<string>
|
|
1785
|
+
role?: Trackable<
|
|
1786
|
+
| 'link'
|
|
1787
|
+
| 'button'
|
|
1788
|
+
| 'checkbox'
|
|
1789
|
+
| 'menuitem'
|
|
1790
|
+
| 'menuitemcheckbox'
|
|
1791
|
+
| 'menuitemradio'
|
|
1792
|
+
| 'option'
|
|
1793
|
+
| 'radio'
|
|
1794
|
+
| 'switch'
|
|
1795
|
+
| 'tab'
|
|
1796
|
+
| 'treeitem'
|
|
1797
|
+
| 'doc-backlink'
|
|
1798
|
+
| 'doc-biblioref'
|
|
1799
|
+
| 'doc-glossref'
|
|
1800
|
+
| 'doc-noteref'
|
|
1801
|
+
| undefined
|
|
1802
|
+
>
|
|
1803
|
+
}
|
|
1804
|
+
| {
|
|
1805
|
+
href?: never
|
|
1806
|
+
role?: Trackable<AriaRole | undefined>
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* Props accepted by `<anchor>` elements.
|
|
1811
|
+
*/
|
|
1812
|
+
export type AccessibleAnchorHTMLProps<eventTarget extends EventTarget = HTMLAnchorElement> = Omit<
|
|
1813
|
+
PartialAnchorHTMLProps<eventTarget>,
|
|
1814
|
+
'role'
|
|
1815
|
+
> &
|
|
1816
|
+
AnchorAriaRoles
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Props accepted by `<anchor>` elements.
|
|
1820
|
+
*/
|
|
1821
|
+
export interface AnchorHTMLProps<eventTarget extends EventTarget = HTMLAnchorElement>
|
|
1822
|
+
extends PartialAnchorHTMLProps<eventTarget> {
|
|
1823
|
+
/** The `href` HTML attribute. */
|
|
1824
|
+
href?: Trackable<string | undefined>
|
|
1825
|
+
/** The `role` HTML attribute. */
|
|
1826
|
+
role?: Trackable<AriaRole | undefined>
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Props accepted by `<area>` elements.
|
|
1831
|
+
*/
|
|
1832
|
+
export interface PartialAreaHTMLProps<eventTarget extends EventTarget>
|
|
1833
|
+
extends HTMLProps<eventTarget> {
|
|
1834
|
+
/** The `alt` HTML attribute. */
|
|
1835
|
+
alt?: Trackable<string | undefined>
|
|
1836
|
+
/** The `coords` HTML attribute. */
|
|
1837
|
+
coords?: Trackable<string | undefined>
|
|
1838
|
+
/** The `download` HTML attribute. */
|
|
1839
|
+
download?: Trackable<any>
|
|
1840
|
+
/** The `hreflang` HTML attribute. */
|
|
1841
|
+
hreflang?: Trackable<string | undefined>
|
|
1842
|
+
/** The `hrefLang` HTML attribute. */
|
|
1843
|
+
hrefLang?: Trackable<string | undefined>
|
|
1844
|
+
/** The `media` HTML attribute. */
|
|
1845
|
+
media?: Trackable<string | undefined>
|
|
1846
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
1847
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
1848
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
1849
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
1850
|
+
/** The `rel` HTML attribute. */
|
|
1851
|
+
rel?: Trackable<string | undefined>
|
|
1852
|
+
/** The `shape` HTML attribute. */
|
|
1853
|
+
shape?: Trackable<string | undefined>
|
|
1854
|
+
/** The `target` HTML attribute. */
|
|
1855
|
+
target?: Trackable<HTMLAttributeAnchorTarget | undefined>
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
export type AreaAriaRoles =
|
|
1859
|
+
| {
|
|
1860
|
+
href: Trackable<string>
|
|
1861
|
+
role?: Trackable<'link' | undefined>
|
|
1862
|
+
}
|
|
1863
|
+
| {
|
|
1864
|
+
href?: never
|
|
1865
|
+
role?: Trackable<'button' | 'link' | undefined>
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Props accepted by `<area>` elements.
|
|
1870
|
+
*/
|
|
1871
|
+
export type AccessibleAreaHTMLProps<eventTarget extends EventTarget = HTMLAreaElement> = Omit<
|
|
1872
|
+
PartialAreaHTMLProps<eventTarget>,
|
|
1873
|
+
'role'
|
|
1874
|
+
> &
|
|
1875
|
+
AreaAriaRoles
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Props accepted by `<area>` elements.
|
|
1879
|
+
*/
|
|
1880
|
+
export interface AreaHTMLProps<eventTarget extends EventTarget = HTMLAreaElement>
|
|
1881
|
+
extends PartialAreaHTMLProps<eventTarget> {
|
|
1882
|
+
/** The `href` HTML attribute. */
|
|
1883
|
+
href?: Trackable<string | undefined>
|
|
1884
|
+
/** The `role` HTML attribute. */
|
|
1885
|
+
role?: Trackable<'button' | 'link' | undefined>
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Props accepted by `<article>` elements.
|
|
1890
|
+
*/
|
|
1891
|
+
export interface ArticleHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
1892
|
+
extends HTMLProps<eventTarget> {
|
|
1893
|
+
/** The `role` HTML attribute. */
|
|
1894
|
+
role?: Trackable<
|
|
1895
|
+
| 'article'
|
|
1896
|
+
| 'application'
|
|
1897
|
+
| 'document'
|
|
1898
|
+
| 'feed'
|
|
1899
|
+
| 'main'
|
|
1900
|
+
| 'none'
|
|
1901
|
+
| 'presentation'
|
|
1902
|
+
| 'region'
|
|
1903
|
+
| undefined
|
|
1904
|
+
>
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Props accepted by `<aside>` elements.
|
|
1909
|
+
*/
|
|
1910
|
+
export interface AsideHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
1911
|
+
extends HTMLProps<eventTarget> {
|
|
1912
|
+
/** The `role` HTML attribute. */
|
|
1913
|
+
role?: Trackable<
|
|
1914
|
+
| 'complementary'
|
|
1915
|
+
| 'feed'
|
|
1916
|
+
| 'none'
|
|
1917
|
+
| 'note'
|
|
1918
|
+
| 'presentation'
|
|
1919
|
+
| 'region'
|
|
1920
|
+
| 'search'
|
|
1921
|
+
| 'doc-dedication'
|
|
1922
|
+
| 'doc-example'
|
|
1923
|
+
| 'doc-footnote'
|
|
1924
|
+
| 'doc-glossary'
|
|
1925
|
+
| 'doc-pullquote'
|
|
1926
|
+
| 'doc-tip'
|
|
1927
|
+
| undefined
|
|
1928
|
+
>
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Props accepted by `<audio>` elements.
|
|
1933
|
+
*/
|
|
1934
|
+
export interface AudioHTMLProps<eventTarget extends EventTarget = HTMLAudioElement>
|
|
1935
|
+
extends MediaHTMLProps<eventTarget> {
|
|
1936
|
+
/** The `role` HTML attribute. */
|
|
1937
|
+
role?: Trackable<'application' | undefined>
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* Props accepted by `<base>` elements.
|
|
1942
|
+
*/
|
|
1943
|
+
export interface BaseHTMLProps<eventTarget extends EventTarget = HTMLBaseElement>
|
|
1944
|
+
extends HTMLProps<eventTarget> {
|
|
1945
|
+
/** The `href` HTML attribute. */
|
|
1946
|
+
href?: Trackable<string | undefined>
|
|
1947
|
+
/** The `role` HTML attribute. */
|
|
1948
|
+
role?: never
|
|
1949
|
+
/** The `target` HTML attribute. */
|
|
1950
|
+
target?: Trackable<HTMLAttributeAnchorTarget | undefined>
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* Props accepted by `<blockquote>` elements.
|
|
1955
|
+
*/
|
|
1956
|
+
export interface BlockquoteHTMLProps<eventTarget extends EventTarget = HTMLQuoteElement>
|
|
1957
|
+
extends HTMLProps<eventTarget> {
|
|
1958
|
+
/** The `cite` HTML attribute. */
|
|
1959
|
+
cite?: Trackable<string | undefined>
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Props accepted by `<br>` elements.
|
|
1964
|
+
*/
|
|
1965
|
+
export interface BrHTMLProps<eventTarget extends EventTarget = HTMLBRElement>
|
|
1966
|
+
extends HTMLProps<eventTarget> {
|
|
1967
|
+
/** The `role` HTML attribute. */
|
|
1968
|
+
role?: Trackable<'none' | 'presentation' | undefined>
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* Props accepted by `<button>` elements.
|
|
1973
|
+
*/
|
|
1974
|
+
export interface ButtonHTMLProps<eventTarget extends EventTarget = HTMLButtonElement>
|
|
1975
|
+
extends HTMLProps<eventTarget> {
|
|
1976
|
+
/** The `command` HTML attribute. */
|
|
1977
|
+
command?: Trackable<string | undefined>
|
|
1978
|
+
/** The `commandfor` HTML attribute. */
|
|
1979
|
+
commandfor?: Trackable<string | undefined>
|
|
1980
|
+
/** The `commandFor` HTML attribute. */
|
|
1981
|
+
commandFor?: Trackable<string | undefined>
|
|
1982
|
+
/** The `disabled` HTML attribute. */
|
|
1983
|
+
disabled?: Trackable<boolean | undefined>
|
|
1984
|
+
/** The `form` HTML attribute. */
|
|
1985
|
+
form?: Trackable<string | undefined>
|
|
1986
|
+
/** The `formaction` HTML attribute. */
|
|
1987
|
+
formaction?: Trackable<string | undefined>
|
|
1988
|
+
/** The `formAction` HTML attribute. */
|
|
1989
|
+
formAction?: Trackable<string | undefined>
|
|
1990
|
+
/** The `formenctype` HTML attribute. */
|
|
1991
|
+
formenctype?: Trackable<string | undefined>
|
|
1992
|
+
/** The `formEncType` HTML attribute. */
|
|
1993
|
+
formEncType?: Trackable<string | undefined>
|
|
1994
|
+
/** The `formmethod` HTML attribute. */
|
|
1995
|
+
formmethod?: Trackable<string | undefined>
|
|
1996
|
+
/** The `formMethod` HTML attribute. */
|
|
1997
|
+
formMethod?: Trackable<string | undefined>
|
|
1998
|
+
/** The `formnovalidate` HTML attribute. */
|
|
1999
|
+
formnovalidate?: Trackable<boolean | undefined>
|
|
2000
|
+
/** The `formNoValidate` HTML attribute. */
|
|
2001
|
+
formNoValidate?: Trackable<boolean | undefined>
|
|
2002
|
+
/** The `formtarget` HTML attribute. */
|
|
2003
|
+
formtarget?: Trackable<string | undefined>
|
|
2004
|
+
/** The `formTarget` HTML attribute. */
|
|
2005
|
+
formTarget?: Trackable<string | undefined>
|
|
2006
|
+
/** The `name` HTML attribute. */
|
|
2007
|
+
name?: Trackable<string | undefined>
|
|
2008
|
+
/** The `popovertarget` HTML attribute. */
|
|
2009
|
+
popovertarget?: Trackable<string | undefined>
|
|
2010
|
+
/** The `popoverTarget` HTML attribute. */
|
|
2011
|
+
popoverTarget?: Trackable<string | undefined>
|
|
2012
|
+
/** The `popovertargetaction` HTML attribute. */
|
|
2013
|
+
popovertargetaction?: Trackable<'hide' | 'show' | 'toggle' | undefined>
|
|
2014
|
+
/** The `popoverTargetAction` HTML attribute. */
|
|
2015
|
+
popoverTargetAction?: Trackable<'hide' | 'show' | 'toggle' | undefined>
|
|
2016
|
+
/** The `role` HTML attribute. */
|
|
2017
|
+
role?: Trackable<
|
|
2018
|
+
| 'button'
|
|
2019
|
+
| 'checkbox'
|
|
2020
|
+
| 'combobox'
|
|
2021
|
+
| 'gridcell'
|
|
2022
|
+
| 'link'
|
|
2023
|
+
| 'menuitem'
|
|
2024
|
+
| 'menuitemcheckbox'
|
|
2025
|
+
| 'menuitemradio'
|
|
2026
|
+
| 'option'
|
|
2027
|
+
| 'radio'
|
|
2028
|
+
| 'separator'
|
|
2029
|
+
| 'slider'
|
|
2030
|
+
| 'switch'
|
|
2031
|
+
| 'tab'
|
|
2032
|
+
| 'treeitem'
|
|
2033
|
+
| undefined
|
|
2034
|
+
>
|
|
2035
|
+
/** The `type` HTML attribute. */
|
|
2036
|
+
type?: Trackable<'submit' | 'reset' | 'button' | undefined>
|
|
2037
|
+
/** The `value` HTML attribute. */
|
|
2038
|
+
value?: Trackable<string | number | undefined>
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Props accepted by `<canvas>` elements.
|
|
2043
|
+
*/
|
|
2044
|
+
export interface CanvasHTMLProps<eventTarget extends EventTarget = HTMLCanvasElement>
|
|
2045
|
+
extends HTMLProps<eventTarget> {
|
|
2046
|
+
/** The `height` HTML attribute. */
|
|
2047
|
+
height?: Trackable<number | string | undefined>
|
|
2048
|
+
/** The `width` HTML attribute. */
|
|
2049
|
+
width?: Trackable<number | string | undefined>
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Props accepted by `<caption>` elements.
|
|
2054
|
+
*/
|
|
2055
|
+
export interface CaptionHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2056
|
+
extends HTMLProps<eventTarget> {
|
|
2057
|
+
/** The `role` HTML attribute. */
|
|
2058
|
+
role?: 'caption'
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Props accepted by `<col>` elements.
|
|
2063
|
+
*/
|
|
2064
|
+
export interface ColHTMLProps<eventTarget extends EventTarget = HTMLTableColElement>
|
|
2065
|
+
extends HTMLProps<eventTarget> {
|
|
2066
|
+
/** The `role` HTML attribute. */
|
|
2067
|
+
role?: never
|
|
2068
|
+
/** The `span` HTML attribute. */
|
|
2069
|
+
span?: Trackable<number | undefined>
|
|
2070
|
+
/** The `width` HTML attribute. */
|
|
2071
|
+
width?: Trackable<number | string | undefined>
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Props accepted by `<colgroup>` elements.
|
|
2076
|
+
*/
|
|
2077
|
+
export interface ColgroupHTMLProps<eventTarget extends EventTarget = HTMLTableColElement>
|
|
2078
|
+
extends HTMLProps<eventTarget> {
|
|
2079
|
+
/** The `role` HTML attribute. */
|
|
2080
|
+
role?: never
|
|
2081
|
+
/** The `span` HTML attribute. */
|
|
2082
|
+
span?: Trackable<number | undefined>
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Props accepted by `<data>` elements.
|
|
2087
|
+
*/
|
|
2088
|
+
export interface DataHTMLProps<eventTarget extends EventTarget = HTMLDataElement>
|
|
2089
|
+
extends HTMLProps<eventTarget> {
|
|
2090
|
+
/** The `value` HTML attribute. */
|
|
2091
|
+
value?: Trackable<string | number | undefined>
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Props accepted by `<datalist>` elements.
|
|
2096
|
+
*/
|
|
2097
|
+
export interface DataListHTMLProps<eventTarget extends EventTarget = HTMLDataListElement>
|
|
2098
|
+
extends HTMLProps<eventTarget> {
|
|
2099
|
+
/** The `role` HTML attribute. */
|
|
2100
|
+
role?: Trackable<'listbox' | undefined>
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Props accepted by `<dd>` elements.
|
|
2105
|
+
*/
|
|
2106
|
+
export interface DdHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2107
|
+
extends HTMLProps<eventTarget> {
|
|
2108
|
+
/** The `role` HTML attribute. */
|
|
2109
|
+
role?: never
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* Props accepted by `<del>` elements.
|
|
2114
|
+
*/
|
|
2115
|
+
export interface DelHTMLProps<eventTarget extends EventTarget = HTMLModElement>
|
|
2116
|
+
extends HTMLProps<eventTarget> {
|
|
2117
|
+
/** The `cite` HTML attribute. */
|
|
2118
|
+
cite?: Trackable<string | undefined>
|
|
2119
|
+
/** The `datetime` HTML attribute. */
|
|
2120
|
+
datetime?: Trackable<string | undefined>
|
|
2121
|
+
/** The `dateTime` HTML attribute. */
|
|
2122
|
+
dateTime?: Trackable<string | undefined>
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* Props accepted by `<details>` elements.
|
|
2127
|
+
*/
|
|
2128
|
+
export interface DetailsHTMLProps<eventTarget extends EventTarget = HTMLDetailsElement>
|
|
2129
|
+
extends HTMLProps<eventTarget> {
|
|
2130
|
+
/** The `name` HTML attribute. */
|
|
2131
|
+
name?: Trackable<string | undefined>
|
|
2132
|
+
/** The `open` HTML attribute. */
|
|
2133
|
+
open?: Trackable<boolean | undefined>
|
|
2134
|
+
/** The `role` HTML attribute. */
|
|
2135
|
+
role?: Trackable<'group' | undefined>
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* Props accepted by `<dialog>` elements.
|
|
2140
|
+
*/
|
|
2141
|
+
export interface DialogHTMLProps<eventTarget extends EventTarget = HTMLDialogElement>
|
|
2142
|
+
extends HTMLProps<eventTarget> {
|
|
2143
|
+
/** The `open` HTML attribute. */
|
|
2144
|
+
open?: Trackable<boolean | undefined>
|
|
2145
|
+
/** The `closedby` HTML attribute. */
|
|
2146
|
+
closedby?: Trackable<'none' | 'closerequest' | 'any' | undefined>
|
|
2147
|
+
/** The `closedBy` HTML attribute. */
|
|
2148
|
+
closedBy?: Trackable<'none' | 'closerequest' | 'any' | undefined>
|
|
2149
|
+
/** The `role` HTML attribute. */
|
|
2150
|
+
role?: Trackable<'dialog' | 'alertdialog' | undefined>
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* Props accepted by `<dl>` elements.
|
|
2155
|
+
*/
|
|
2156
|
+
export interface DlHTMLProps<eventTarget extends EventTarget = HTMLDListElement>
|
|
2157
|
+
extends HTMLProps<eventTarget> {
|
|
2158
|
+
/** The `role` HTML attribute. */
|
|
2159
|
+
role?: Trackable<'group' | 'list' | 'none' | 'presentation' | undefined>
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* Props accepted by `<dt>` elements.
|
|
2164
|
+
*/
|
|
2165
|
+
export interface DtHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2166
|
+
extends HTMLProps<eventTarget> {
|
|
2167
|
+
/** The `role` HTML attribute. */
|
|
2168
|
+
role?: Trackable<'listitem' | undefined>
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Props accepted by `<embed>` elements.
|
|
2173
|
+
*/
|
|
2174
|
+
export interface EmbedHTMLProps<eventTarget extends EventTarget = HTMLEmbedElement>
|
|
2175
|
+
extends HTMLProps<eventTarget> {
|
|
2176
|
+
/** The `height` HTML attribute. */
|
|
2177
|
+
height?: Trackable<number | string | undefined>
|
|
2178
|
+
/** The `role` HTML attribute. */
|
|
2179
|
+
role?: Trackable<'application' | 'document' | 'img' | 'none' | 'presentation' | undefined>
|
|
2180
|
+
/** The `src` HTML attribute. */
|
|
2181
|
+
src?: Trackable<string | undefined>
|
|
2182
|
+
/** The `type` HTML attribute. */
|
|
2183
|
+
type?: Trackable<string | undefined>
|
|
2184
|
+
/** The `width` HTML attribute. */
|
|
2185
|
+
width?: Trackable<number | string | undefined>
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* Props accepted by `<fieldset>` elements.
|
|
2190
|
+
*/
|
|
2191
|
+
export interface FieldsetHTMLProps<eventTarget extends EventTarget = HTMLFieldSetElement>
|
|
2192
|
+
extends HTMLProps<eventTarget> {
|
|
2193
|
+
/** The `disabled` HTML attribute. */
|
|
2194
|
+
disabled?: Trackable<boolean | undefined>
|
|
2195
|
+
/** The `form` HTML attribute. */
|
|
2196
|
+
form?: Trackable<string | undefined>
|
|
2197
|
+
/** The `name` HTML attribute. */
|
|
2198
|
+
name?: Trackable<string | undefined>
|
|
2199
|
+
/** The `role` HTML attribute. */
|
|
2200
|
+
role?: Trackable<'group' | 'none' | 'presentation' | 'radiogroup' | undefined>
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Props accepted by `<figcaption>` elements.
|
|
2205
|
+
*/
|
|
2206
|
+
export interface FigcaptionHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2207
|
+
extends HTMLProps<eventTarget> {
|
|
2208
|
+
/** The `role` HTML attribute. */
|
|
2209
|
+
role?: Trackable<'group' | 'none' | 'presentation' | undefined>
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
* Props accepted by `<footer>` elements.
|
|
2214
|
+
*/
|
|
2215
|
+
export interface FooterHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2216
|
+
extends HTMLProps<eventTarget> {
|
|
2217
|
+
/** The `role` HTML attribute. */
|
|
2218
|
+
role?: Trackable<'contentinfo' | 'group' | 'none' | 'presentation' | 'doc-footnote' | undefined>
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Props accepted by `<form>` elements.
|
|
2223
|
+
*/
|
|
2224
|
+
export interface FormHTMLProps<eventTarget extends EventTarget = HTMLFormElement>
|
|
2225
|
+
extends HTMLProps<eventTarget> {
|
|
2226
|
+
/** The `accept-charset` HTML attribute. */
|
|
2227
|
+
'accept-charset'?: Trackable<string | undefined>
|
|
2228
|
+
/** The `acceptCharset` HTML attribute. */
|
|
2229
|
+
acceptCharset?: Trackable<string | undefined>
|
|
2230
|
+
/** The `action` HTML attribute. */
|
|
2231
|
+
action?: Trackable<string | undefined>
|
|
2232
|
+
/** The `autocomplete` HTML attribute. */
|
|
2233
|
+
autocomplete?: Trackable<string | undefined>
|
|
2234
|
+
/** The `autoComplete` HTML attribute. */
|
|
2235
|
+
autoComplete?: Trackable<string | undefined>
|
|
2236
|
+
/** The `enctype` HTML attribute. */
|
|
2237
|
+
enctype?: Trackable<string | undefined>
|
|
2238
|
+
/** The `encType` HTML attribute. */
|
|
2239
|
+
encType?: Trackable<string | undefined>
|
|
2240
|
+
/** The `method` HTML attribute. */
|
|
2241
|
+
method?: Trackable<string | undefined>
|
|
2242
|
+
/** The `name` HTML attribute. */
|
|
2243
|
+
name?: Trackable<string | undefined>
|
|
2244
|
+
/** The `novalidate` HTML attribute. */
|
|
2245
|
+
novalidate?: Trackable<boolean | undefined>
|
|
2246
|
+
/** The `noValidate` HTML attribute. */
|
|
2247
|
+
noValidate?: Trackable<boolean | undefined>
|
|
2248
|
+
/** The `rel` HTML attribute. */
|
|
2249
|
+
rel?: Trackable<string | undefined>
|
|
2250
|
+
/** The `role` HTML attribute. */
|
|
2251
|
+
role?: Trackable<'form' | 'none' | 'presentation' | 'search' | undefined>
|
|
2252
|
+
/** The `target` HTML attribute. */
|
|
2253
|
+
target?: Trackable<string | undefined>
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* Props accepted by `<heading>` elements.
|
|
2258
|
+
*/
|
|
2259
|
+
export interface HeadingHTMLProps<eventTarget extends EventTarget = HTMLHeadingElement>
|
|
2260
|
+
extends HTMLProps<eventTarget> {
|
|
2261
|
+
/** The `role` HTML attribute. */
|
|
2262
|
+
role?: Trackable<'heading' | 'none' | 'presentation' | 'tab' | 'doc-subtitle' | undefined>
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Props accepted by `<head>` elements.
|
|
2267
|
+
*/
|
|
2268
|
+
export interface HeadHTMLProps<eventTarget extends EventTarget = HTMLHeadElement>
|
|
2269
|
+
extends HTMLProps<eventTarget> {
|
|
2270
|
+
/** The `role` HTML attribute. */
|
|
2271
|
+
role?: never
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Props accepted by `<header>` elements.
|
|
2276
|
+
*/
|
|
2277
|
+
export interface HeaderHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2278
|
+
extends HTMLProps<eventTarget> {
|
|
2279
|
+
/** The `role` HTML attribute. */
|
|
2280
|
+
role?: Trackable<'banner' | 'group' | 'none' | 'presentation' | undefined>
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* Props accepted by `<hr>` elements.
|
|
2285
|
+
*/
|
|
2286
|
+
export interface HrHTMLProps<eventTarget extends EventTarget = HTMLHRElement>
|
|
2287
|
+
extends HTMLProps<eventTarget> {
|
|
2288
|
+
/** The `role` HTML attribute. */
|
|
2289
|
+
role?: Trackable<'separator' | 'none' | 'presentation' | 'doc-pagebreak' | undefined>
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* Props accepted by `<html>` elements.
|
|
2294
|
+
*/
|
|
2295
|
+
export interface HtmlHTMLProps<eventTarget extends EventTarget = HTMLHtmlElement>
|
|
2296
|
+
extends HTMLProps<eventTarget> {
|
|
2297
|
+
/** The `role` HTML attribute. */
|
|
2298
|
+
role?: Trackable<'document' | undefined>
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Props accepted by `<iframe>` elements.
|
|
2303
|
+
*/
|
|
2304
|
+
export interface IframeHTMLProps<eventTarget extends EventTarget = HTMLIFrameElement>
|
|
2305
|
+
extends HTMLProps<eventTarget> {
|
|
2306
|
+
/** The `allow` HTML attribute. */
|
|
2307
|
+
allow?: Trackable<string | undefined>
|
|
2308
|
+
/** The `allowFullScreen` HTML attribute. */
|
|
2309
|
+
allowFullScreen?: Trackable<boolean | undefined>
|
|
2310
|
+
/** The `allowTransparency` HTML attribute. */
|
|
2311
|
+
allowTransparency?: Trackable<boolean | undefined>
|
|
2312
|
+
/** @deprecated */
|
|
2313
|
+
frameborder?: Trackable<number | string | undefined>
|
|
2314
|
+
/** @deprecated */
|
|
2315
|
+
frameBorder?: Trackable<number | string | undefined>
|
|
2316
|
+
/** The `height` HTML attribute. */
|
|
2317
|
+
height?: Trackable<number | string | undefined>
|
|
2318
|
+
/** The `loading` HTML attribute. */
|
|
2319
|
+
loading?: Trackable<'eager' | 'lazy' | undefined>
|
|
2320
|
+
/** @deprecated */
|
|
2321
|
+
marginHeight?: Trackable<number | undefined>
|
|
2322
|
+
/** @deprecated */
|
|
2323
|
+
marginWidth?: Trackable<number | undefined>
|
|
2324
|
+
/** The `name` HTML attribute. */
|
|
2325
|
+
name?: Trackable<string | undefined>
|
|
2326
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
2327
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2328
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
2329
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2330
|
+
/** The `role` HTML attribute. */
|
|
2331
|
+
role?: Trackable<'application' | 'document' | 'img' | 'none' | 'presentation' | undefined>
|
|
2332
|
+
/** The `sandbox` HTML attribute. */
|
|
2333
|
+
sandbox?: Trackable<string | undefined>
|
|
2334
|
+
/** @deprecated */
|
|
2335
|
+
scrolling?: Trackable<string | undefined>
|
|
2336
|
+
/** The `seamless` HTML attribute. */
|
|
2337
|
+
seamless?: Trackable<boolean | undefined>
|
|
2338
|
+
/** The `src` HTML attribute. */
|
|
2339
|
+
src?: Trackable<string | undefined>
|
|
2340
|
+
/** The `srcdoc` HTML attribute. */
|
|
2341
|
+
srcdoc?: Trackable<string | undefined>
|
|
2342
|
+
/** The `srcDoc` HTML attribute. */
|
|
2343
|
+
srcDoc?: Trackable<string | undefined>
|
|
2344
|
+
/** The `width` HTML attribute. */
|
|
2345
|
+
width?: Trackable<number | string | undefined>
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
export type HTMLAttributeCrossOrigin = 'anonymous' | 'use-credentials'
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* Props accepted by `<img>` elements.
|
|
2352
|
+
*/
|
|
2353
|
+
export interface PartialImgHTMLProps<eventTarget extends EventTarget>
|
|
2354
|
+
extends HTMLProps<eventTarget> {
|
|
2355
|
+
/** The `crossorigin` HTML attribute. */
|
|
2356
|
+
crossorigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2357
|
+
/** The `crossOrigin` HTML attribute. */
|
|
2358
|
+
crossOrigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2359
|
+
/** The `decoding` HTML attribute. */
|
|
2360
|
+
decoding?: Trackable<'async' | 'auto' | 'sync' | undefined>
|
|
2361
|
+
/** The `fetchpriority` HTML attribute. */
|
|
2362
|
+
fetchpriority?: Trackable<'high' | 'auto' | 'low' | undefined>
|
|
2363
|
+
/** The `fetchPriority` HTML attribute. */
|
|
2364
|
+
fetchPriority?: Trackable<'high' | 'auto' | 'low' | undefined>
|
|
2365
|
+
/** The `height` HTML attribute. */
|
|
2366
|
+
height?: Trackable<number | string | undefined>
|
|
2367
|
+
/** The `loading` HTML attribute. */
|
|
2368
|
+
loading?: Trackable<'eager' | 'lazy' | undefined>
|
|
2369
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
2370
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2371
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
2372
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2373
|
+
/** The `sizes` HTML attribute. */
|
|
2374
|
+
sizes?: Trackable<string | undefined>
|
|
2375
|
+
/** The `src` HTML attribute. */
|
|
2376
|
+
src?: Trackable<string | undefined>
|
|
2377
|
+
/** The `srcset` HTML attribute. */
|
|
2378
|
+
srcset?: Trackable<string | undefined>
|
|
2379
|
+
/** The `srcSet` HTML attribute. */
|
|
2380
|
+
srcSet?: Trackable<string | undefined>
|
|
2381
|
+
/** The `usemap` HTML attribute. */
|
|
2382
|
+
usemap?: Trackable<string | undefined>
|
|
2383
|
+
/** The `useMap` HTML attribute. */
|
|
2384
|
+
useMap?: Trackable<string | undefined>
|
|
2385
|
+
/** The `width` HTML attribute. */
|
|
2386
|
+
width?: Trackable<number | string | undefined>
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export type ImgAriaRolesAccessibleName = Trackable<
|
|
2390
|
+
| 'img'
|
|
2391
|
+
| 'button'
|
|
2392
|
+
| 'checkbox'
|
|
2393
|
+
| 'link'
|
|
2394
|
+
| 'menuitem'
|
|
2395
|
+
| 'menuitemcheckbox'
|
|
2396
|
+
| 'menuitemradio'
|
|
2397
|
+
| 'meter'
|
|
2398
|
+
| 'option'
|
|
2399
|
+
| 'progressbar'
|
|
2400
|
+
| 'radio'
|
|
2401
|
+
| 'scrollbar'
|
|
2402
|
+
| 'separator'
|
|
2403
|
+
| 'slider'
|
|
2404
|
+
| 'switch'
|
|
2405
|
+
| 'tab'
|
|
2406
|
+
| 'treeitem'
|
|
2407
|
+
| 'doc-cover'
|
|
2408
|
+
| undefined
|
|
2409
|
+
>
|
|
2410
|
+
|
|
2411
|
+
export type ImgAriaRoles =
|
|
2412
|
+
| {
|
|
2413
|
+
'aria-label': Trackable<string>
|
|
2414
|
+
role?: ImgAriaRolesAccessibleName
|
|
2415
|
+
}
|
|
2416
|
+
| {
|
|
2417
|
+
'aria-labelledby': Trackable<string>
|
|
2418
|
+
role?: ImgAriaRolesAccessibleName
|
|
2419
|
+
}
|
|
2420
|
+
| {
|
|
2421
|
+
alt: Trackable<string>
|
|
2422
|
+
role?: ImgAriaRolesAccessibleName
|
|
2423
|
+
}
|
|
2424
|
+
| {
|
|
2425
|
+
title: Trackable<string>
|
|
2426
|
+
role?: ImgAriaRolesAccessibleName
|
|
2427
|
+
}
|
|
2428
|
+
| {
|
|
2429
|
+
'aria-label'?: never
|
|
2430
|
+
'aria-labelledby'?: never
|
|
2431
|
+
alt?: never
|
|
2432
|
+
title?: never
|
|
2433
|
+
role?: Trackable<'img' | 'none' | 'presentation' | undefined>
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* Props accepted by `<img>` elements.
|
|
2438
|
+
*/
|
|
2439
|
+
export type AccessibleImgHTMLProps<eventTarget extends EventTarget = HTMLImageElement> = Omit<
|
|
2440
|
+
PartialImgHTMLProps<eventTarget>,
|
|
2441
|
+
'role' | 'aria-label' | 'aria-labelledby' | 'title'
|
|
2442
|
+
> &
|
|
2443
|
+
ImgAriaRoles
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Props accepted by `<img>` elements.
|
|
2447
|
+
*/
|
|
2448
|
+
export interface ImgHTMLProps<eventTarget extends EventTarget = HTMLImageElement>
|
|
2449
|
+
extends PartialImgHTMLProps<eventTarget> {
|
|
2450
|
+
/** The `alt` HTML attribute. */
|
|
2451
|
+
alt?: Trackable<string | undefined>
|
|
2452
|
+
/** The `aria-label` HTML attribute. */
|
|
2453
|
+
'aria-label'?: Trackable<string | undefined>
|
|
2454
|
+
/** The `aria-labelledby` HTML attribute. */
|
|
2455
|
+
'aria-labelledby'?: Trackable<string | undefined>
|
|
2456
|
+
/** The `href` HTML attribute. */
|
|
2457
|
+
href?: Trackable<string | undefined>
|
|
2458
|
+
/** The `role` HTML attribute. */
|
|
2459
|
+
role?: ImgAriaRolesAccessibleName | Trackable<'img' | 'none' | 'presentation' | undefined>
|
|
2460
|
+
/** The `title` HTML attribute. */
|
|
2461
|
+
title?: Trackable<string | undefined>
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export type HTMLInputTypeAttribute =
|
|
2465
|
+
| 'button'
|
|
2466
|
+
| 'checkbox'
|
|
2467
|
+
| 'color'
|
|
2468
|
+
| 'date'
|
|
2469
|
+
| 'datetime-local'
|
|
2470
|
+
| 'email'
|
|
2471
|
+
| 'file'
|
|
2472
|
+
| 'hidden'
|
|
2473
|
+
| 'image'
|
|
2474
|
+
| 'month'
|
|
2475
|
+
| 'number'
|
|
2476
|
+
| 'password'
|
|
2477
|
+
| 'radio'
|
|
2478
|
+
| 'range'
|
|
2479
|
+
| 'reset'
|
|
2480
|
+
| 'search'
|
|
2481
|
+
| 'submit'
|
|
2482
|
+
| 'tel'
|
|
2483
|
+
| 'text'
|
|
2484
|
+
| 'time'
|
|
2485
|
+
| 'url'
|
|
2486
|
+
| 'week'
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* Props accepted by `<input>` elements.
|
|
2490
|
+
*/
|
|
2491
|
+
export interface PartialInputHTMLProps<eventTarget extends EventTarget>
|
|
2492
|
+
extends HTMLProps<eventTarget> {
|
|
2493
|
+
/** The `accept` HTML attribute. */
|
|
2494
|
+
accept?: Trackable<string | undefined>
|
|
2495
|
+
/** The `alt` HTML attribute. */
|
|
2496
|
+
alt?: Trackable<string | undefined>
|
|
2497
|
+
/** The `autocomplete` HTML attribute. */
|
|
2498
|
+
autocomplete?: Trackable<string | undefined>
|
|
2499
|
+
/** The `autoComplete` HTML attribute. */
|
|
2500
|
+
autoComplete?: Trackable<string | undefined>
|
|
2501
|
+
/** The `capture` HTML attribute. */
|
|
2502
|
+
capture?: Trackable<'user' | 'environment' | undefined> // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
|
2503
|
+
/** The `checked` HTML attribute. */
|
|
2504
|
+
checked?: Trackable<boolean | undefined>
|
|
2505
|
+
/** The `defaultChecked` HTML attribute. */
|
|
2506
|
+
defaultChecked?: Trackable<boolean | undefined>
|
|
2507
|
+
/** The `defaultValue` HTML attribute. */
|
|
2508
|
+
defaultValue?: Trackable<string | number | undefined>
|
|
2509
|
+
/** The `disabled` HTML attribute. */
|
|
2510
|
+
disabled?: Trackable<boolean | undefined>
|
|
2511
|
+
/** The `enterKeyHint` HTML attribute. */
|
|
2512
|
+
enterKeyHint?: Trackable<
|
|
2513
|
+
'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined
|
|
2514
|
+
>
|
|
2515
|
+
/** The `form` HTML attribute. */
|
|
2516
|
+
form?: Trackable<string | undefined>
|
|
2517
|
+
/** The `formaction` HTML attribute. */
|
|
2518
|
+
formaction?: Trackable<string | undefined>
|
|
2519
|
+
/** The `formAction` HTML attribute. */
|
|
2520
|
+
formAction?: Trackable<string | undefined>
|
|
2521
|
+
/** The `formenctype` HTML attribute. */
|
|
2522
|
+
formenctype?: Trackable<string | undefined>
|
|
2523
|
+
/** The `formEncType` HTML attribute. */
|
|
2524
|
+
formEncType?: Trackable<string | undefined>
|
|
2525
|
+
/** The `formmethod` HTML attribute. */
|
|
2526
|
+
formmethod?: Trackable<string | undefined>
|
|
2527
|
+
/** The `formMethod` HTML attribute. */
|
|
2528
|
+
formMethod?: Trackable<string | undefined>
|
|
2529
|
+
/** The `formnovalidate` HTML attribute. */
|
|
2530
|
+
formnovalidate?: Trackable<boolean | undefined>
|
|
2531
|
+
/** The `formNoValidate` HTML attribute. */
|
|
2532
|
+
formNoValidate?: Trackable<boolean | undefined>
|
|
2533
|
+
/** The `formtarget` HTML attribute. */
|
|
2534
|
+
formtarget?: Trackable<string | undefined>
|
|
2535
|
+
/** The `formTarget` HTML attribute. */
|
|
2536
|
+
formTarget?: Trackable<string | undefined>
|
|
2537
|
+
/** The `height` HTML attribute. */
|
|
2538
|
+
height?: Trackable<number | string | undefined>
|
|
2539
|
+
/** The `indeterminate` HTML attribute. */
|
|
2540
|
+
indeterminate?: Trackable<boolean | undefined>
|
|
2541
|
+
/** The `max` HTML attribute. */
|
|
2542
|
+
max?: Trackable<number | string | undefined>
|
|
2543
|
+
/** The `maxlength` HTML attribute. */
|
|
2544
|
+
maxlength?: Trackable<number | undefined>
|
|
2545
|
+
/** The `maxLength` HTML attribute. */
|
|
2546
|
+
maxLength?: Trackable<number | undefined>
|
|
2547
|
+
/** The `min` HTML attribute. */
|
|
2548
|
+
min?: Trackable<number | string | undefined>
|
|
2549
|
+
/** The `minlength` HTML attribute. */
|
|
2550
|
+
minlength?: Trackable<number | undefined>
|
|
2551
|
+
/** The `minLength` HTML attribute. */
|
|
2552
|
+
minLength?: Trackable<number | undefined>
|
|
2553
|
+
/** The `multiple` HTML attribute. */
|
|
2554
|
+
multiple?: Trackable<boolean | undefined>
|
|
2555
|
+
/** The `name` HTML attribute. */
|
|
2556
|
+
name?: Trackable<string | undefined>
|
|
2557
|
+
/** The `pattern` HTML attribute. */
|
|
2558
|
+
pattern?: Trackable<string | undefined>
|
|
2559
|
+
/** The `placeholder` HTML attribute. */
|
|
2560
|
+
placeholder?: Trackable<string | undefined>
|
|
2561
|
+
/** The `readonly` HTML attribute. */
|
|
2562
|
+
readonly?: Trackable<boolean | undefined>
|
|
2563
|
+
/** The `readOnly` HTML attribute. */
|
|
2564
|
+
readOnly?: Trackable<boolean | undefined>
|
|
2565
|
+
/** The `required` HTML attribute. */
|
|
2566
|
+
required?: Trackable<boolean | undefined>
|
|
2567
|
+
/** The `size` HTML attribute. */
|
|
2568
|
+
size?: Trackable<number | undefined>
|
|
2569
|
+
/** The `src` HTML attribute. */
|
|
2570
|
+
src?: Trackable<string | undefined>
|
|
2571
|
+
/** The `step` HTML attribute. */
|
|
2572
|
+
step?: Trackable<number | string | undefined>
|
|
2573
|
+
/** The `value` HTML attribute. */
|
|
2574
|
+
value?: Trackable<string | number | undefined>
|
|
2575
|
+
/** The `width` HTML attribute. */
|
|
2576
|
+
width?: Trackable<number | string | undefined>
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
export type InputAriaRoles =
|
|
2580
|
+
| {
|
|
2581
|
+
type: Trackable<'button'>
|
|
2582
|
+
role?: Trackable<
|
|
2583
|
+
| 'button'
|
|
2584
|
+
| 'checkbox'
|
|
2585
|
+
| 'combobox'
|
|
2586
|
+
| 'gridcell'
|
|
2587
|
+
| 'link'
|
|
2588
|
+
| 'menuitem'
|
|
2589
|
+
| 'menuitemcheckbox'
|
|
2590
|
+
| 'menuitemradio'
|
|
2591
|
+
| 'option'
|
|
2592
|
+
| 'radio'
|
|
2593
|
+
| 'separator'
|
|
2594
|
+
| 'slider'
|
|
2595
|
+
| 'switch'
|
|
2596
|
+
| 'tab'
|
|
2597
|
+
| 'treeitem'
|
|
2598
|
+
| undefined
|
|
2599
|
+
>
|
|
2600
|
+
}
|
|
2601
|
+
| {
|
|
2602
|
+
type: Trackable<'checkbox'>
|
|
2603
|
+
role?: Trackable<'checkbox' | 'button' | 'menuitemcheckbox' | 'option' | 'switch' | undefined>
|
|
2604
|
+
}
|
|
2605
|
+
| {
|
|
2606
|
+
type: Trackable<'email'>
|
|
2607
|
+
list?: never
|
|
2608
|
+
role?: Trackable<'textbox' | undefined>
|
|
2609
|
+
}
|
|
2610
|
+
| {
|
|
2611
|
+
type: Trackable<'image'>
|
|
2612
|
+
role?: Trackable<
|
|
2613
|
+
| 'button'
|
|
2614
|
+
| 'checkbox'
|
|
2615
|
+
| 'gridcell'
|
|
2616
|
+
| 'link'
|
|
2617
|
+
| 'menuitem'
|
|
2618
|
+
| 'menuitemcheckbox'
|
|
2619
|
+
| 'menuitemradio'
|
|
2620
|
+
| 'option'
|
|
2621
|
+
| 'separator'
|
|
2622
|
+
| 'slider'
|
|
2623
|
+
| 'switch'
|
|
2624
|
+
| 'tab'
|
|
2625
|
+
| 'treeitem'
|
|
2626
|
+
| undefined
|
|
2627
|
+
>
|
|
2628
|
+
}
|
|
2629
|
+
| {
|
|
2630
|
+
type: Trackable<'number'>
|
|
2631
|
+
role?: Trackable<'spinbutton' | undefined>
|
|
2632
|
+
}
|
|
2633
|
+
| {
|
|
2634
|
+
type: Trackable<'radio'>
|
|
2635
|
+
role?: Trackable<'radio' | 'menuitemradio' | undefined>
|
|
2636
|
+
}
|
|
2637
|
+
| {
|
|
2638
|
+
type: Trackable<'range'>
|
|
2639
|
+
role?: Trackable<'slider' | undefined>
|
|
2640
|
+
}
|
|
2641
|
+
| {
|
|
2642
|
+
type: Trackable<'reset'>
|
|
2643
|
+
role?: Trackable<
|
|
2644
|
+
| 'button'
|
|
2645
|
+
| 'checkbox'
|
|
2646
|
+
| 'combobox'
|
|
2647
|
+
| 'gridcell'
|
|
2648
|
+
| 'link'
|
|
2649
|
+
| 'menuitem'
|
|
2650
|
+
| 'menuitemcheckbox'
|
|
2651
|
+
| 'menuitemradio'
|
|
2652
|
+
| 'option'
|
|
2653
|
+
| 'radio'
|
|
2654
|
+
| 'separator'
|
|
2655
|
+
| 'slider'
|
|
2656
|
+
| 'switch'
|
|
2657
|
+
| 'tab'
|
|
2658
|
+
| 'treeitem'
|
|
2659
|
+
| undefined
|
|
2660
|
+
>
|
|
2661
|
+
}
|
|
2662
|
+
| {
|
|
2663
|
+
type: Trackable<'search'>
|
|
2664
|
+
list?: never
|
|
2665
|
+
role?: Trackable<'searchbox' | undefined>
|
|
2666
|
+
}
|
|
2667
|
+
| {
|
|
2668
|
+
type: Trackable<'submit'>
|
|
2669
|
+
role?: Trackable<
|
|
2670
|
+
| 'button'
|
|
2671
|
+
| 'checkbox'
|
|
2672
|
+
| 'combobox'
|
|
2673
|
+
| 'gridcell'
|
|
2674
|
+
| 'link'
|
|
2675
|
+
| 'menuitem'
|
|
2676
|
+
| 'menuitemcheckbox'
|
|
2677
|
+
| 'menuitemradio'
|
|
2678
|
+
| 'option'
|
|
2679
|
+
| 'radio'
|
|
2680
|
+
| 'separator'
|
|
2681
|
+
| 'slider'
|
|
2682
|
+
| 'switch'
|
|
2683
|
+
| 'tab'
|
|
2684
|
+
| 'treeitem'
|
|
2685
|
+
| undefined
|
|
2686
|
+
>
|
|
2687
|
+
}
|
|
2688
|
+
| {
|
|
2689
|
+
type: Trackable<'tel'>
|
|
2690
|
+
list?: never
|
|
2691
|
+
role?: Trackable<'textbox' | undefined>
|
|
2692
|
+
}
|
|
2693
|
+
| {
|
|
2694
|
+
type?: Trackable<'text'>
|
|
2695
|
+
list?: never
|
|
2696
|
+
role?: Trackable<'textbox' | 'combobox' | 'searchbox' | 'spinbutton' | undefined>
|
|
2697
|
+
}
|
|
2698
|
+
| {
|
|
2699
|
+
type?: Trackable<'text' | 'search' | 'tel' | 'url' | 'email'>
|
|
2700
|
+
list: Trackable<string | undefined>
|
|
2701
|
+
role?: Trackable<'combobox' | undefined>
|
|
2702
|
+
}
|
|
2703
|
+
| {
|
|
2704
|
+
type: Trackable<'url'>
|
|
2705
|
+
list?: never
|
|
2706
|
+
role?: Trackable<'textbox' | undefined>
|
|
2707
|
+
}
|
|
2708
|
+
| {
|
|
2709
|
+
type: Trackable<
|
|
2710
|
+
| 'color'
|
|
2711
|
+
| 'date'
|
|
2712
|
+
| 'datetime-local'
|
|
2713
|
+
| 'file'
|
|
2714
|
+
| 'hidden'
|
|
2715
|
+
| 'month'
|
|
2716
|
+
| 'password'
|
|
2717
|
+
| 'time'
|
|
2718
|
+
| 'week'
|
|
2719
|
+
>
|
|
2720
|
+
role?: never
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Props accepted by `<input>` elements.
|
|
2725
|
+
*/
|
|
2726
|
+
export type AccessibleInputHTMLProps<eventTarget extends EventTarget = HTMLInputElement> = Omit<
|
|
2727
|
+
PartialInputHTMLProps<eventTarget>,
|
|
2728
|
+
'role'
|
|
2729
|
+
> &
|
|
2730
|
+
InputAriaRoles
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* Props accepted by `<input>` elements.
|
|
2734
|
+
*/
|
|
2735
|
+
export interface InputHTMLProps<eventTarget extends EventTarget = HTMLInputElement>
|
|
2736
|
+
extends PartialInputHTMLProps<eventTarget> {
|
|
2737
|
+
/** The `type` HTML attribute. */
|
|
2738
|
+
type?: Trackable<HTMLInputTypeAttribute | undefined>
|
|
2739
|
+
/** The `role` HTML attribute. */
|
|
2740
|
+
role?: Trackable<
|
|
2741
|
+
| 'button'
|
|
2742
|
+
| 'checkbox'
|
|
2743
|
+
| 'combobox'
|
|
2744
|
+
| 'gridcell'
|
|
2745
|
+
| 'link'
|
|
2746
|
+
| 'menuitem'
|
|
2747
|
+
| 'menuitemcheckbox'
|
|
2748
|
+
| 'menuitemradio'
|
|
2749
|
+
| 'option'
|
|
2750
|
+
| 'radio'
|
|
2751
|
+
| 'searchbox'
|
|
2752
|
+
| 'separator'
|
|
2753
|
+
| 'slider'
|
|
2754
|
+
| 'spinbutton'
|
|
2755
|
+
| 'switch'
|
|
2756
|
+
| 'tab'
|
|
2757
|
+
| 'textbox'
|
|
2758
|
+
| 'treeitem'
|
|
2759
|
+
| undefined
|
|
2760
|
+
>
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* Props accepted by `<ins>` elements.
|
|
2765
|
+
*/
|
|
2766
|
+
export interface InsHTMLProps<eventTarget extends EventTarget = HTMLModElement>
|
|
2767
|
+
extends HTMLProps<eventTarget> {
|
|
2768
|
+
/** The `cite` HTML attribute. */
|
|
2769
|
+
cite?: Trackable<string | undefined>
|
|
2770
|
+
/** The `datetime` HTML attribute. */
|
|
2771
|
+
datetime?: Trackable<string | undefined>
|
|
2772
|
+
/** The `dateTime` HTML attribute. */
|
|
2773
|
+
dateTime?: Trackable<string | undefined>
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Props accepted by `<keygen>` elements.
|
|
2778
|
+
*/
|
|
2779
|
+
export interface KeygenHTMLProps<eventTarget extends EventTarget = HTMLUnknownElement>
|
|
2780
|
+
extends HTMLProps<eventTarget> {
|
|
2781
|
+
/** The `challenge` HTML attribute. */
|
|
2782
|
+
challenge?: Trackable<string | undefined>
|
|
2783
|
+
/** The `disabled` HTML attribute. */
|
|
2784
|
+
disabled?: Trackable<boolean | undefined>
|
|
2785
|
+
/** The `form` HTML attribute. */
|
|
2786
|
+
form?: Trackable<string | undefined>
|
|
2787
|
+
/** The `keyType` HTML attribute. */
|
|
2788
|
+
keyType?: Trackable<string | undefined>
|
|
2789
|
+
/** The `keyParams` HTML attribute. */
|
|
2790
|
+
keyParams?: Trackable<string | undefined>
|
|
2791
|
+
/** The `name` HTML attribute. */
|
|
2792
|
+
name?: Trackable<string | undefined>
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* Props accepted by `<label>` elements.
|
|
2797
|
+
*/
|
|
2798
|
+
export interface LabelHTMLProps<eventTarget extends EventTarget = HTMLLabelElement>
|
|
2799
|
+
extends HTMLProps<eventTarget> {
|
|
2800
|
+
/** The `for` HTML attribute. */
|
|
2801
|
+
for?: Trackable<string | undefined>
|
|
2802
|
+
/** The `form` HTML attribute. */
|
|
2803
|
+
form?: Trackable<string | undefined>
|
|
2804
|
+
/** The `htmlFor` HTML attribute. */
|
|
2805
|
+
htmlFor?: Trackable<string | undefined>
|
|
2806
|
+
/** The `role` HTML attribute. */
|
|
2807
|
+
role?: never
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* Props accepted by `<legend>` elements.
|
|
2812
|
+
*/
|
|
2813
|
+
export interface LegendHTMLProps<eventTarget extends EventTarget = HTMLLegendElement>
|
|
2814
|
+
extends HTMLProps<eventTarget> {
|
|
2815
|
+
/** The `role` HTML attribute. */
|
|
2816
|
+
role?: never
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
/**
|
|
2820
|
+
* Props accepted by `<li>` elements.
|
|
2821
|
+
*/
|
|
2822
|
+
export interface LiHTMLProps<eventTarget extends EventTarget = HTMLLIElement>
|
|
2823
|
+
extends HTMLProps<eventTarget> {
|
|
2824
|
+
/** The `value` HTML attribute. */
|
|
2825
|
+
value?: Trackable<string | number | undefined>
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* Props accepted by `<link>` elements.
|
|
2830
|
+
*/
|
|
2831
|
+
export interface LinkHTMLProps<eventTarget extends EventTarget = HTMLLinkElement>
|
|
2832
|
+
extends HTMLProps<eventTarget> {
|
|
2833
|
+
/** The `as` HTML attribute. */
|
|
2834
|
+
as?: Trackable<string | undefined>
|
|
2835
|
+
/** The `crossorigin` HTML attribute. */
|
|
2836
|
+
crossorigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2837
|
+
/** The `crossOrigin` HTML attribute. */
|
|
2838
|
+
crossOrigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2839
|
+
/** The `fetchpriority` HTML attribute. */
|
|
2840
|
+
fetchpriority?: Trackable<'high' | 'low' | 'auto' | undefined>
|
|
2841
|
+
/** The `fetchPriority` HTML attribute. */
|
|
2842
|
+
fetchPriority?: Trackable<'high' | 'low' | 'auto' | undefined>
|
|
2843
|
+
/** The `href` HTML attribute. */
|
|
2844
|
+
href?: Trackable<string | undefined>
|
|
2845
|
+
/** The `hreflang` HTML attribute. */
|
|
2846
|
+
hreflang?: Trackable<string | undefined>
|
|
2847
|
+
/** The `hrefLang` HTML attribute. */
|
|
2848
|
+
hrefLang?: Trackable<string | undefined>
|
|
2849
|
+
/** The `integrity` HTML attribute. */
|
|
2850
|
+
integrity?: Trackable<string | undefined>
|
|
2851
|
+
/** The `media` HTML attribute. */
|
|
2852
|
+
media?: Trackable<string | undefined>
|
|
2853
|
+
/** The `imageSrcSet` HTML attribute. */
|
|
2854
|
+
imageSrcSet?: Trackable<string | undefined>
|
|
2855
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
2856
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2857
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
2858
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
2859
|
+
/** The `rel` HTML attribute. */
|
|
2860
|
+
rel?: Trackable<string | undefined>
|
|
2861
|
+
/** The `role` HTML attribute. */
|
|
2862
|
+
role?: never
|
|
2863
|
+
/** The `sizes` HTML attribute. */
|
|
2864
|
+
sizes?: Trackable<string | undefined>
|
|
2865
|
+
/** The `type` HTML attribute. */
|
|
2866
|
+
type?: Trackable<string | undefined>
|
|
2867
|
+
/** The `charset` HTML attribute. */
|
|
2868
|
+
charset?: Trackable<string | undefined>
|
|
2869
|
+
/** The `charSet` HTML attribute. */
|
|
2870
|
+
charSet?: Trackable<string | undefined>
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
/**
|
|
2874
|
+
* Props accepted by `<main>` elements.
|
|
2875
|
+
*/
|
|
2876
|
+
export interface MainHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
2877
|
+
extends HTMLProps<eventTarget> {
|
|
2878
|
+
/** The `role` HTML attribute. */
|
|
2879
|
+
role?: Trackable<'main' | undefined>
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Props accepted by `<map>` elements.
|
|
2884
|
+
*/
|
|
2885
|
+
export interface MapHTMLProps<eventTarget extends EventTarget = HTMLMapElement>
|
|
2886
|
+
extends HTMLProps<eventTarget> {
|
|
2887
|
+
/** The `name` HTML attribute. */
|
|
2888
|
+
name?: Trackable<string | undefined>
|
|
2889
|
+
/** The `role` HTML attribute. */
|
|
2890
|
+
role?: never
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Props accepted by `<marquee>` elements.
|
|
2895
|
+
*/
|
|
2896
|
+
export interface MarqueeHTMLProps<eventTarget extends EventTarget = HTMLMarqueeElement>
|
|
2897
|
+
extends HTMLProps<eventTarget> {
|
|
2898
|
+
/** The `behavior` HTML attribute. */
|
|
2899
|
+
behavior?: Trackable<'scroll' | 'slide' | 'alternate' | undefined>
|
|
2900
|
+
/** The `bgColor` HTML attribute. */
|
|
2901
|
+
bgColor?: Trackable<string | undefined>
|
|
2902
|
+
/** The `direction` HTML attribute. */
|
|
2903
|
+
direction?: Trackable<'left' | 'right' | 'up' | 'down' | undefined>
|
|
2904
|
+
/** The `height` HTML attribute. */
|
|
2905
|
+
height?: Trackable<number | string | undefined>
|
|
2906
|
+
/** The `hspace` HTML attribute. */
|
|
2907
|
+
hspace?: Trackable<number | string | undefined>
|
|
2908
|
+
/** The `loop` HTML attribute. */
|
|
2909
|
+
loop?: Trackable<number | string | undefined>
|
|
2910
|
+
/** The `scrollAmount` HTML attribute. */
|
|
2911
|
+
scrollAmount?: Trackable<number | string | undefined>
|
|
2912
|
+
/** The `scrollDelay` HTML attribute. */
|
|
2913
|
+
scrollDelay?: Trackable<number | string | undefined>
|
|
2914
|
+
/** The `trueSpeed` HTML attribute. */
|
|
2915
|
+
trueSpeed?: Trackable<boolean | undefined>
|
|
2916
|
+
/** The `vspace` HTML attribute. */
|
|
2917
|
+
vspace?: Trackable<number | string | undefined>
|
|
2918
|
+
/** The `width` HTML attribute. */
|
|
2919
|
+
width?: Trackable<number | string | undefined>
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
* Props accepted by `<media>` elements.
|
|
2924
|
+
*/
|
|
2925
|
+
export interface MediaHTMLProps<eventTarget extends EventTarget = HTMLMediaElement>
|
|
2926
|
+
extends HTMLProps<eventTarget> {
|
|
2927
|
+
/** The `autoplay` HTML attribute. */
|
|
2928
|
+
autoplay?: Trackable<boolean | undefined>
|
|
2929
|
+
/** The `autoPlay` HTML attribute. */
|
|
2930
|
+
autoPlay?: Trackable<boolean | undefined>
|
|
2931
|
+
/** The `controls` HTML attribute. */
|
|
2932
|
+
controls?: Trackable<boolean | undefined>
|
|
2933
|
+
/** The `controlslist` HTML attribute. */
|
|
2934
|
+
controlslist?: Trackable<string | undefined>
|
|
2935
|
+
/** The `controlsList` HTML attribute. */
|
|
2936
|
+
controlsList?: Trackable<string | undefined>
|
|
2937
|
+
/** The `crossorigin` HTML attribute. */
|
|
2938
|
+
crossorigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2939
|
+
/** The `crossOrigin` HTML attribute. */
|
|
2940
|
+
crossOrigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
2941
|
+
/** The `currentTime` HTML attribute. */
|
|
2942
|
+
currentTime?: Trackable<number | undefined>
|
|
2943
|
+
/** The `defaultMuted` HTML attribute. */
|
|
2944
|
+
defaultMuted?: Trackable<boolean | undefined>
|
|
2945
|
+
/** The `defaultPlaybackRate` HTML attribute. */
|
|
2946
|
+
defaultPlaybackRate?: Trackable<number | undefined>
|
|
2947
|
+
/** The `disableremoteplayback` HTML attribute. */
|
|
2948
|
+
disableremoteplayback?: Trackable<boolean | undefined>
|
|
2949
|
+
/** The `disableRemotePlayback` HTML attribute. */
|
|
2950
|
+
disableRemotePlayback?: Trackable<boolean | undefined>
|
|
2951
|
+
/** The `loop` HTML attribute. */
|
|
2952
|
+
loop?: Trackable<boolean | undefined>
|
|
2953
|
+
/** The `mediaGroup` HTML attribute. */
|
|
2954
|
+
mediaGroup?: Trackable<string | undefined>
|
|
2955
|
+
/** The `muted` HTML attribute. */
|
|
2956
|
+
muted?: Trackable<boolean | undefined>
|
|
2957
|
+
/** The `playbackRate` HTML attribute. */
|
|
2958
|
+
playbackRate?: Trackable<number | undefined>
|
|
2959
|
+
/** The `preload` HTML attribute. */
|
|
2960
|
+
preload?: Trackable<'auto' | 'metadata' | 'none' | undefined>
|
|
2961
|
+
/** The `preservesPitch` HTML attribute. */
|
|
2962
|
+
preservesPitch?: Trackable<boolean | undefined>
|
|
2963
|
+
/** The `src` HTML attribute. */
|
|
2964
|
+
src?: Trackable<string | undefined>
|
|
2965
|
+
/** The `srcObject` HTML attribute. */
|
|
2966
|
+
srcObject?: Trackable<MediaStream | MediaSource | Blob | File | null>
|
|
2967
|
+
/** The `volume` HTML attribute. */
|
|
2968
|
+
volume?: Trackable<string | number | undefined>
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Props accepted by `<menu>` elements.
|
|
2973
|
+
*/
|
|
2974
|
+
export interface MenuHTMLProps<eventTarget extends EventTarget = HTMLMenuElement>
|
|
2975
|
+
extends HTMLProps<eventTarget> {
|
|
2976
|
+
/** The `role` HTML attribute. */
|
|
2977
|
+
role:
|
|
2978
|
+
| 'list'
|
|
2979
|
+
| 'group'
|
|
2980
|
+
| 'listbox'
|
|
2981
|
+
| 'menu'
|
|
2982
|
+
| 'menubar'
|
|
2983
|
+
| 'none'
|
|
2984
|
+
| 'presentation'
|
|
2985
|
+
| 'radiogroup'
|
|
2986
|
+
| 'tablist'
|
|
2987
|
+
| 'toolbar'
|
|
2988
|
+
| 'tree'
|
|
2989
|
+
/** The `type` HTML attribute. */
|
|
2990
|
+
type?: Trackable<string | undefined>
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
/**
|
|
2994
|
+
* Props accepted by `<meta>` elements.
|
|
2995
|
+
*/
|
|
2996
|
+
export interface MetaHTMLProps<eventTarget extends EventTarget = HTMLMetaElement>
|
|
2997
|
+
extends HTMLProps<eventTarget> {
|
|
2998
|
+
/** The `charset` HTML attribute. */
|
|
2999
|
+
charset?: Trackable<string | undefined>
|
|
3000
|
+
/** The `charSet` HTML attribute. */
|
|
3001
|
+
charSet?: Trackable<string | undefined>
|
|
3002
|
+
/** The `content` HTML attribute. */
|
|
3003
|
+
content?: Trackable<string | undefined>
|
|
3004
|
+
/** The `http-equiv` HTML attribute. */
|
|
3005
|
+
'http-equiv'?: Trackable<string | undefined>
|
|
3006
|
+
/** The `httpEquiv` HTML attribute. */
|
|
3007
|
+
httpEquiv?: Trackable<string | undefined>
|
|
3008
|
+
/** The `name` HTML attribute. */
|
|
3009
|
+
name?: Trackable<string | undefined>
|
|
3010
|
+
/** The `media` HTML attribute. */
|
|
3011
|
+
media?: Trackable<string | undefined>
|
|
3012
|
+
/** The `role` HTML attribute. */
|
|
3013
|
+
role?: never
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Props accepted by `<meter>` elements.
|
|
3018
|
+
*/
|
|
3019
|
+
export interface MeterHTMLProps<eventTarget extends EventTarget = HTMLMeterElement>
|
|
3020
|
+
extends HTMLProps<eventTarget> {
|
|
3021
|
+
/** The `form` HTML attribute. */
|
|
3022
|
+
form?: Trackable<string | undefined>
|
|
3023
|
+
/** The `high` HTML attribute. */
|
|
3024
|
+
high?: Trackable<number | undefined>
|
|
3025
|
+
/** The `low` HTML attribute. */
|
|
3026
|
+
low?: Trackable<number | undefined>
|
|
3027
|
+
/** The `max` HTML attribute. */
|
|
3028
|
+
max?: Trackable<number | string | undefined>
|
|
3029
|
+
/** The `min` HTML attribute. */
|
|
3030
|
+
min?: Trackable<number | string | undefined>
|
|
3031
|
+
/** The `optimum` HTML attribute. */
|
|
3032
|
+
optimum?: Trackable<number | undefined>
|
|
3033
|
+
/** The `role` HTML attribute. */
|
|
3034
|
+
role?: Trackable<'meter' | undefined>
|
|
3035
|
+
/** The `value` HTML attribute. */
|
|
3036
|
+
value?: Trackable<string | number | undefined>
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* Props accepted by `<nav>` elements.
|
|
3041
|
+
*/
|
|
3042
|
+
export interface NavHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
3043
|
+
extends HTMLProps<eventTarget> {
|
|
3044
|
+
/** The `role` HTML attribute. */
|
|
3045
|
+
role?: Trackable<
|
|
3046
|
+
'navigation' | 'menu' | 'menubar' | 'none' | 'presentation' | 'tablist' | undefined
|
|
3047
|
+
>
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* Props accepted by `<noscript>` elements.
|
|
3052
|
+
*/
|
|
3053
|
+
export interface NoScriptHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
3054
|
+
extends HTMLProps<eventTarget> {
|
|
3055
|
+
/** The `role` HTML attribute. */
|
|
3056
|
+
role?: never
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Props accepted by `<object>` elements.
|
|
3061
|
+
*/
|
|
3062
|
+
export interface ObjectHTMLProps<eventTarget extends EventTarget = HTMLObjectElement>
|
|
3063
|
+
extends HTMLProps<eventTarget> {
|
|
3064
|
+
/** The `classID` HTML attribute. */
|
|
3065
|
+
classID?: Trackable<string | undefined>
|
|
3066
|
+
/** The `data` HTML attribute. */
|
|
3067
|
+
data?: Trackable<string | undefined>
|
|
3068
|
+
/** The `form` HTML attribute. */
|
|
3069
|
+
form?: Trackable<string | undefined>
|
|
3070
|
+
/** The `height` HTML attribute. */
|
|
3071
|
+
height?: Trackable<number | string | undefined>
|
|
3072
|
+
/** The `name` HTML attribute. */
|
|
3073
|
+
name?: Trackable<string | undefined>
|
|
3074
|
+
/** The `role` HTML attribute. */
|
|
3075
|
+
role?: Trackable<'application' | 'document' | 'img' | undefined>
|
|
3076
|
+
/** The `type` HTML attribute. */
|
|
3077
|
+
type?: Trackable<string | undefined>
|
|
3078
|
+
/** The `usemap` HTML attribute. */
|
|
3079
|
+
usemap?: Trackable<string | undefined>
|
|
3080
|
+
/** The `useMap` HTML attribute. */
|
|
3081
|
+
useMap?: Trackable<string | undefined>
|
|
3082
|
+
/** The `width` HTML attribute. */
|
|
3083
|
+
width?: Trackable<number | string | undefined>
|
|
3084
|
+
/** The `wmode` HTML attribute. */
|
|
3085
|
+
wmode?: Trackable<string | undefined>
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
/**
|
|
3089
|
+
* Props accepted by `<ol>` elements.
|
|
3090
|
+
*/
|
|
3091
|
+
export interface OlHTMLProps<eventTarget extends EventTarget = HTMLOListElement>
|
|
3092
|
+
extends HTMLProps<eventTarget> {
|
|
3093
|
+
/** The `reversed` HTML attribute. */
|
|
3094
|
+
reversed?: Trackable<boolean | undefined>
|
|
3095
|
+
/** The `role` HTML attribute. */
|
|
3096
|
+
role?: Trackable<
|
|
3097
|
+
| 'list'
|
|
3098
|
+
| 'group'
|
|
3099
|
+
| 'listbox'
|
|
3100
|
+
| 'menu'
|
|
3101
|
+
| 'menubar'
|
|
3102
|
+
| 'none'
|
|
3103
|
+
| 'presentation'
|
|
3104
|
+
| 'radiogroup'
|
|
3105
|
+
| 'tablist'
|
|
3106
|
+
| 'toolbar'
|
|
3107
|
+
| 'tree'
|
|
3108
|
+
| undefined
|
|
3109
|
+
>
|
|
3110
|
+
/** The `start` HTML attribute. */
|
|
3111
|
+
start?: Trackable<number | undefined>
|
|
3112
|
+
/** The `type` HTML attribute. */
|
|
3113
|
+
type?: Trackable<'1' | 'a' | 'A' | 'i' | 'I' | undefined>
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* Props accepted by `<optgroup>` elements.
|
|
3118
|
+
*/
|
|
3119
|
+
export interface OptgroupHTMLProps<eventTarget extends EventTarget = HTMLOptGroupElement>
|
|
3120
|
+
extends HTMLProps<eventTarget> {
|
|
3121
|
+
/** The `disabled` HTML attribute. */
|
|
3122
|
+
disabled?: Trackable<boolean | undefined>
|
|
3123
|
+
/** The `label` HTML attribute. */
|
|
3124
|
+
label?: Trackable<string | undefined>
|
|
3125
|
+
/** The `role` HTML attribute. */
|
|
3126
|
+
role?: Trackable<'group' | undefined>
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* Props accepted by `<option>` elements.
|
|
3131
|
+
*/
|
|
3132
|
+
export interface OptionHTMLProps<eventTarget extends EventTarget = HTMLOptionElement>
|
|
3133
|
+
extends HTMLProps<eventTarget> {
|
|
3134
|
+
/** The `disabled` HTML attribute. */
|
|
3135
|
+
disabled?: Trackable<boolean | undefined>
|
|
3136
|
+
/** The `label` HTML attribute. */
|
|
3137
|
+
label?: Trackable<string | undefined>
|
|
3138
|
+
/** The `role` HTML attribute. */
|
|
3139
|
+
role?: Trackable<'option' | undefined>
|
|
3140
|
+
/** The `selected` HTML attribute. */
|
|
3141
|
+
selected?: Trackable<boolean | undefined>
|
|
3142
|
+
/** The `value` HTML attribute. */
|
|
3143
|
+
value?: Trackable<string | number | undefined>
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* Props accepted by `<output>` elements.
|
|
3148
|
+
*/
|
|
3149
|
+
export interface OutputHTMLProps<eventTarget extends EventTarget = HTMLOutputElement>
|
|
3150
|
+
extends HTMLProps<eventTarget> {
|
|
3151
|
+
/** The `for` HTML attribute. */
|
|
3152
|
+
for?: Trackable<string | undefined>
|
|
3153
|
+
/** The `form` HTML attribute. */
|
|
3154
|
+
form?: Trackable<string | undefined>
|
|
3155
|
+
/** The `htmlFor` HTML attribute. */
|
|
3156
|
+
htmlFor?: Trackable<string | undefined>
|
|
3157
|
+
/** The `name` HTML attribute. */
|
|
3158
|
+
name?: Trackable<string | undefined>
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
* Props accepted by `<param>` elements.
|
|
3163
|
+
*/
|
|
3164
|
+
export interface ParamHTMLProps<eventTarget extends EventTarget = HTMLParamElement>
|
|
3165
|
+
extends HTMLProps<eventTarget> {
|
|
3166
|
+
/** The `name` HTML attribute. */
|
|
3167
|
+
name?: Trackable<string | undefined>
|
|
3168
|
+
/** The `role` HTML attribute. */
|
|
3169
|
+
role?: never
|
|
3170
|
+
/** The `value` HTML attribute. */
|
|
3171
|
+
value?: Trackable<string | number | undefined>
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* Props accepted by `<picture>` elements.
|
|
3176
|
+
*/
|
|
3177
|
+
export interface PictureHTMLProps<eventTarget extends EventTarget = HTMLPictureElement>
|
|
3178
|
+
extends HTMLProps<eventTarget> {
|
|
3179
|
+
/** The `role` HTML attribute. */
|
|
3180
|
+
role?: never
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* Props accepted by `<progress>` elements.
|
|
3185
|
+
*/
|
|
3186
|
+
export interface ProgressHTMLProps<eventTarget extends EventTarget = HTMLProgressElement>
|
|
3187
|
+
extends HTMLProps<eventTarget> {
|
|
3188
|
+
/** The `max` HTML attribute. */
|
|
3189
|
+
max?: Trackable<number | string | undefined>
|
|
3190
|
+
/** The `role` HTML attribute. */
|
|
3191
|
+
role?: Trackable<'progressbar' | undefined>
|
|
3192
|
+
/** The `value` HTML attribute. */
|
|
3193
|
+
value?: Trackable<string | number | undefined>
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* Props accepted by `<quote>` elements.
|
|
3198
|
+
*/
|
|
3199
|
+
export interface QuoteHTMLProps<eventTarget extends EventTarget = HTMLQuoteElement>
|
|
3200
|
+
extends HTMLProps<eventTarget> {
|
|
3201
|
+
/** The `cite` HTML attribute. */
|
|
3202
|
+
cite?: Trackable<string | undefined>
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
/**
|
|
3206
|
+
* Props accepted by `<script>` elements.
|
|
3207
|
+
*/
|
|
3208
|
+
export interface ScriptHTMLProps<eventTarget extends EventTarget = HTMLScriptElement>
|
|
3209
|
+
extends HTMLProps<eventTarget> {
|
|
3210
|
+
/** The `async` HTML attribute. */
|
|
3211
|
+
async?: Trackable<boolean | undefined>
|
|
3212
|
+
/** @deprecated */
|
|
3213
|
+
charset?: Trackable<string | undefined>
|
|
3214
|
+
/** @deprecated */
|
|
3215
|
+
charSet?: Trackable<string | undefined>
|
|
3216
|
+
/** The `crossorigin` HTML attribute. */
|
|
3217
|
+
crossorigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
3218
|
+
/** The `crossOrigin` HTML attribute. */
|
|
3219
|
+
crossOrigin?: Trackable<HTMLAttributeCrossOrigin>
|
|
3220
|
+
/** The `defer` HTML attribute. */
|
|
3221
|
+
defer?: Trackable<boolean | undefined>
|
|
3222
|
+
/** The `integrity` HTML attribute. */
|
|
3223
|
+
integrity?: Trackable<string | undefined>
|
|
3224
|
+
/** The `nomodule` HTML attribute. */
|
|
3225
|
+
nomodule?: Trackable<boolean | undefined>
|
|
3226
|
+
/** The `noModule` HTML attribute. */
|
|
3227
|
+
noModule?: Trackable<boolean | undefined>
|
|
3228
|
+
/** The `referrerpolicy` HTML attribute. */
|
|
3229
|
+
referrerpolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
3230
|
+
/** The `referrerPolicy` HTML attribute. */
|
|
3231
|
+
referrerPolicy?: Trackable<HTMLAttributeReferrerPolicy | undefined>
|
|
3232
|
+
/** The `role` HTML attribute. */
|
|
3233
|
+
role?: never
|
|
3234
|
+
/** The `src` HTML attribute. */
|
|
3235
|
+
src?: Trackable<string | undefined>
|
|
3236
|
+
/** The `type` HTML attribute. */
|
|
3237
|
+
type?: Trackable<string | undefined>
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
/**
|
|
3241
|
+
* Props accepted by `<search>` elements.
|
|
3242
|
+
*/
|
|
3243
|
+
export interface SearchHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
3244
|
+
extends HTMLProps<eventTarget> {
|
|
3245
|
+
/** The `role` HTML attribute. */
|
|
3246
|
+
role?: Trackable<'search' | 'form' | 'group' | 'none' | 'presentation' | 'region' | undefined>
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Props accepted by `<select>` elements.
|
|
3251
|
+
*/
|
|
3252
|
+
export interface PartialSelectHTMLProps<eventTarget extends EventTarget>
|
|
3253
|
+
extends HTMLProps<eventTarget> {
|
|
3254
|
+
/** The `autocomplete` HTML attribute. */
|
|
3255
|
+
autocomplete?: Trackable<string | undefined>
|
|
3256
|
+
/** The `autoComplete` HTML attribute. */
|
|
3257
|
+
autoComplete?: Trackable<string | undefined>
|
|
3258
|
+
/** The `defaultValue` HTML attribute. */
|
|
3259
|
+
defaultValue?: Trackable<string | number | undefined>
|
|
3260
|
+
/** The `disabled` HTML attribute. */
|
|
3261
|
+
disabled?: Trackable<boolean | undefined>
|
|
3262
|
+
/** The `form` HTML attribute. */
|
|
3263
|
+
form?: Trackable<string | undefined>
|
|
3264
|
+
/** The `name` HTML attribute. */
|
|
3265
|
+
name?: Trackable<string | undefined>
|
|
3266
|
+
/** The `required` HTML attribute. */
|
|
3267
|
+
required?: Trackable<boolean | undefined>
|
|
3268
|
+
/** The `size` HTML attribute. */
|
|
3269
|
+
size?: Trackable<number | undefined>
|
|
3270
|
+
/** The `value` HTML attribute. */
|
|
3271
|
+
value?: Trackable<string | number | undefined>
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
export type SelectAriaRoles =
|
|
3275
|
+
| {
|
|
3276
|
+
multiple?: never
|
|
3277
|
+
// Spec states this branch is limited to "no `multiple` attribute AND no `size` attribute greater than 1".
|
|
3278
|
+
// `1` as a default, however, caused some web compat issues and forced Firefox to default to `0` instead.
|
|
3279
|
+
size?: 0 | 1 | never
|
|
3280
|
+
role?: Trackable<'combobox' | 'menu' | undefined>
|
|
3281
|
+
}
|
|
3282
|
+
| {
|
|
3283
|
+
multiple?: Trackable<boolean | undefined>
|
|
3284
|
+
size?: Trackable<number | undefined>
|
|
3285
|
+
role?: Trackable<'listbox' | undefined>
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* Props accepted by `<select>` elements.
|
|
3290
|
+
*/
|
|
3291
|
+
export type AccessibleSelectHTMLProps<eventTarget extends EventTarget = HTMLSelectElement> = Omit<
|
|
3292
|
+
PartialSelectHTMLProps<eventTarget>,
|
|
3293
|
+
'role'
|
|
3294
|
+
> &
|
|
3295
|
+
SelectAriaRoles
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* Props accepted by `<select>` elements.
|
|
3299
|
+
*/
|
|
3300
|
+
export interface SelectHTMLProps<eventTarget extends EventTarget = HTMLSelectElement>
|
|
3301
|
+
extends PartialSelectHTMLProps<eventTarget> {
|
|
3302
|
+
/** The `multiple` HTML attribute. */
|
|
3303
|
+
multiple?: Trackable<boolean | undefined>
|
|
3304
|
+
/** The `size` HTML attribute. */
|
|
3305
|
+
size?: Trackable<number | undefined>
|
|
3306
|
+
/** The `type` HTML attribute. */
|
|
3307
|
+
type?: Trackable<HTMLInputTypeAttribute | undefined>
|
|
3308
|
+
/** The `role` HTML attribute. */
|
|
3309
|
+
role?: Trackable<'combobox' | 'listbox' | 'menu' | undefined>
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* Props accepted by `<slot>` elements.
|
|
3314
|
+
*/
|
|
3315
|
+
export interface SlotHTMLProps<eventTarget extends EventTarget = HTMLSlotElement>
|
|
3316
|
+
extends HTMLProps<eventTarget> {
|
|
3317
|
+
/** The `name` HTML attribute. */
|
|
3318
|
+
name?: Trackable<string | undefined>
|
|
3319
|
+
/** The `role` HTML attribute. */
|
|
3320
|
+
role?: never
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
/**
|
|
3324
|
+
* Props accepted by `<source>` elements.
|
|
3325
|
+
*/
|
|
3326
|
+
export interface SourceHTMLProps<eventTarget extends EventTarget = HTMLSourceElement>
|
|
3327
|
+
extends HTMLProps<eventTarget> {
|
|
3328
|
+
/** The `height` HTML attribute. */
|
|
3329
|
+
height?: Trackable<number | string | undefined>
|
|
3330
|
+
/** The `media` HTML attribute. */
|
|
3331
|
+
media?: Trackable<string | undefined>
|
|
3332
|
+
/** The `role` HTML attribute. */
|
|
3333
|
+
role?: never
|
|
3334
|
+
/** The `sizes` HTML attribute. */
|
|
3335
|
+
sizes?: Trackable<string | undefined>
|
|
3336
|
+
/** The `src` HTML attribute. */
|
|
3337
|
+
src?: Trackable<string | undefined>
|
|
3338
|
+
/** The `srcset` HTML attribute. */
|
|
3339
|
+
srcset?: Trackable<string | undefined>
|
|
3340
|
+
/** The `srcSet` HTML attribute. */
|
|
3341
|
+
srcSet?: Trackable<string | undefined>
|
|
3342
|
+
/** The `type` HTML attribute. */
|
|
3343
|
+
type?: Trackable<string | undefined>
|
|
3344
|
+
/** The `width` HTML attribute. */
|
|
3345
|
+
width?: Trackable<number | string | undefined>
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
/**
|
|
3349
|
+
* Props accepted by `<style>` elements.
|
|
3350
|
+
*/
|
|
3351
|
+
export interface StyleHTMLProps<eventTarget extends EventTarget = HTMLStyleElement>
|
|
3352
|
+
extends HTMLProps<eventTarget> {
|
|
3353
|
+
/** The `media` HTML attribute. */
|
|
3354
|
+
media?: Trackable<string | undefined>
|
|
3355
|
+
/** The `role` HTML attribute. */
|
|
3356
|
+
role?: never
|
|
3357
|
+
/** The `scoped` HTML attribute. */
|
|
3358
|
+
scoped?: Trackable<boolean | undefined>
|
|
3359
|
+
/** The `type` HTML attribute. */
|
|
3360
|
+
type?: Trackable<string | undefined>
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* Props accepted by `<table>` elements.
|
|
3365
|
+
*/
|
|
3366
|
+
export interface TableHTMLProps<eventTarget extends EventTarget = HTMLTableElement>
|
|
3367
|
+
extends HTMLProps<eventTarget> {
|
|
3368
|
+
/** The `cellPadding` HTML attribute. */
|
|
3369
|
+
cellPadding?: Trackable<string | undefined>
|
|
3370
|
+
/** The `cellSpacing` HTML attribute. */
|
|
3371
|
+
cellSpacing?: Trackable<string | undefined>
|
|
3372
|
+
/** The `summary` HTML attribute. */
|
|
3373
|
+
summary?: Trackable<string | undefined>
|
|
3374
|
+
/** The `width` HTML attribute. */
|
|
3375
|
+
width?: Trackable<number | string | undefined>
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* Props accepted by `<td>` elements.
|
|
3380
|
+
*/
|
|
3381
|
+
export interface TdHTMLProps<eventTarget extends EventTarget = HTMLTableCellElement>
|
|
3382
|
+
extends HTMLProps<eventTarget> {
|
|
3383
|
+
/** The `align` HTML attribute. */
|
|
3384
|
+
align?: Trackable<'left' | 'center' | 'right' | 'justify' | 'char' | undefined>
|
|
3385
|
+
/** The `colspan` HTML attribute. */
|
|
3386
|
+
colspan?: Trackable<number | undefined>
|
|
3387
|
+
/** The `colSpan` HTML attribute. */
|
|
3388
|
+
colSpan?: Trackable<number | undefined>
|
|
3389
|
+
/** The `headers` HTML attribute. */
|
|
3390
|
+
headers?: Trackable<string | undefined>
|
|
3391
|
+
/** The `rowspan` HTML attribute. */
|
|
3392
|
+
rowspan?: Trackable<number | undefined>
|
|
3393
|
+
/** The `rowSpan` HTML attribute. */
|
|
3394
|
+
rowSpan?: Trackable<number | undefined>
|
|
3395
|
+
/** The `scope` HTML attribute. */
|
|
3396
|
+
scope?: Trackable<string | undefined>
|
|
3397
|
+
/** The `abbr` HTML attribute. */
|
|
3398
|
+
abbr?: Trackable<string | undefined>
|
|
3399
|
+
/** The `height` HTML attribute. */
|
|
3400
|
+
height?: Trackable<number | string | undefined>
|
|
3401
|
+
/** The `width` HTML attribute. */
|
|
3402
|
+
width?: Trackable<number | string | undefined>
|
|
3403
|
+
/** The `valign` HTML attribute. */
|
|
3404
|
+
valign?: Trackable<'top' | 'middle' | 'bottom' | 'baseline' | undefined>
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* Props accepted by `<template>` elements.
|
|
3409
|
+
*/
|
|
3410
|
+
export interface TemplateHTMLProps<eventTarget extends EventTarget = HTMLTemplateElement>
|
|
3411
|
+
extends HTMLProps<eventTarget> {
|
|
3412
|
+
/** The `role` HTML attribute. */
|
|
3413
|
+
role?: never
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Props accepted by `<textarea>` elements.
|
|
3418
|
+
*/
|
|
3419
|
+
export interface TextareaHTMLProps<eventTarget extends EventTarget = HTMLTextAreaElement>
|
|
3420
|
+
extends HTMLProps<eventTarget> {
|
|
3421
|
+
/** The `autocomplete` HTML attribute. */
|
|
3422
|
+
autocomplete?: Trackable<string | undefined>
|
|
3423
|
+
/** The `autoComplete` HTML attribute. */
|
|
3424
|
+
autoComplete?: Trackable<string | undefined>
|
|
3425
|
+
/** The `cols` HTML attribute. */
|
|
3426
|
+
cols?: Trackable<number | undefined>
|
|
3427
|
+
/** The `defaultValue` HTML attribute. */
|
|
3428
|
+
defaultValue?: Trackable<string | number | undefined>
|
|
3429
|
+
/** The `dirName` HTML attribute. */
|
|
3430
|
+
dirName?: Trackable<string | undefined>
|
|
3431
|
+
/** The `disabled` HTML attribute. */
|
|
3432
|
+
disabled?: Trackable<boolean | undefined>
|
|
3433
|
+
/** The `form` HTML attribute. */
|
|
3434
|
+
form?: Trackable<string | undefined>
|
|
3435
|
+
/** The `maxlength` HTML attribute. */
|
|
3436
|
+
maxlength?: Trackable<number | undefined>
|
|
3437
|
+
/** The `maxLength` HTML attribute. */
|
|
3438
|
+
maxLength?: Trackable<number | undefined>
|
|
3439
|
+
/** The `minlength` HTML attribute. */
|
|
3440
|
+
minlength?: Trackable<number | undefined>
|
|
3441
|
+
/** The `minLength` HTML attribute. */
|
|
3442
|
+
minLength?: Trackable<number | undefined>
|
|
3443
|
+
/** The `name` HTML attribute. */
|
|
3444
|
+
name?: Trackable<string | undefined>
|
|
3445
|
+
/** The `placeholder` HTML attribute. */
|
|
3446
|
+
placeholder?: Trackable<string | undefined>
|
|
3447
|
+
/** The `readOnly` HTML attribute. */
|
|
3448
|
+
readOnly?: Trackable<boolean | undefined>
|
|
3449
|
+
/** The `required` HTML attribute. */
|
|
3450
|
+
required?: Trackable<boolean | undefined>
|
|
3451
|
+
/** The `role` HTML attribute. */
|
|
3452
|
+
role?: Trackable<'textbox' | undefined>
|
|
3453
|
+
/** The `rows` HTML attribute. */
|
|
3454
|
+
rows?: Trackable<number | undefined>
|
|
3455
|
+
/** The `value` HTML attribute. */
|
|
3456
|
+
value?: Trackable<string | number | undefined>
|
|
3457
|
+
/** The `wrap` HTML attribute. */
|
|
3458
|
+
wrap?: Trackable<string | undefined>
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
/**
|
|
3462
|
+
* Props accepted by `<th>` elements.
|
|
3463
|
+
*/
|
|
3464
|
+
export interface ThHTMLProps<eventTarget extends EventTarget = HTMLTableCellElement>
|
|
3465
|
+
extends HTMLProps<eventTarget> {
|
|
3466
|
+
/** The `align` HTML attribute. */
|
|
3467
|
+
align?: Trackable<'left' | 'center' | 'right' | 'justify' | 'char' | undefined>
|
|
3468
|
+
/** The `colspan` HTML attribute. */
|
|
3469
|
+
colspan?: Trackable<number | undefined>
|
|
3470
|
+
/** The `colSpan` HTML attribute. */
|
|
3471
|
+
colSpan?: Trackable<number | undefined>
|
|
3472
|
+
/** The `headers` HTML attribute. */
|
|
3473
|
+
headers?: Trackable<string | undefined>
|
|
3474
|
+
/** The `rowspan` HTML attribute. */
|
|
3475
|
+
rowspan?: Trackable<number | undefined>
|
|
3476
|
+
/** The `rowSpan` HTML attribute. */
|
|
3477
|
+
rowSpan?: Trackable<number | undefined>
|
|
3478
|
+
/** The `scope` HTML attribute. */
|
|
3479
|
+
scope?: Trackable<string | undefined>
|
|
3480
|
+
/** The `abbr` HTML attribute. */
|
|
3481
|
+
abbr?: Trackable<string | undefined>
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* Props accepted by `<time>` elements.
|
|
3486
|
+
*/
|
|
3487
|
+
export interface TimeHTMLProps<eventTarget extends EventTarget = HTMLTimeElement>
|
|
3488
|
+
extends HTMLProps<eventTarget> {
|
|
3489
|
+
/** The `datetime` HTML attribute. */
|
|
3490
|
+
datetime?: Trackable<string | undefined>
|
|
3491
|
+
/** The `dateTime` HTML attribute. */
|
|
3492
|
+
dateTime?: Trackable<string | undefined>
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
/**
|
|
3496
|
+
* Props accepted by `<title>` elements.
|
|
3497
|
+
*/
|
|
3498
|
+
export interface TitleHTMLProps<eventTarget extends EventTarget = HTMLTitleElement>
|
|
3499
|
+
extends HTMLProps<eventTarget> {
|
|
3500
|
+
/** The `role` HTML attribute. */
|
|
3501
|
+
role?: never
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Props accepted by `<track>` elements.
|
|
3506
|
+
*/
|
|
3507
|
+
export interface TrackHTMLProps<eventTarget extends EventTarget = HTMLTrackElement>
|
|
3508
|
+
extends MediaHTMLProps<eventTarget> {
|
|
3509
|
+
/** The `default` HTML attribute. */
|
|
3510
|
+
default?: Trackable<boolean | undefined>
|
|
3511
|
+
/** The `kind` HTML attribute. */
|
|
3512
|
+
kind?: Trackable<string | undefined>
|
|
3513
|
+
/** The `label` HTML attribute. */
|
|
3514
|
+
label?: Trackable<string | undefined>
|
|
3515
|
+
/** The `role` HTML attribute. */
|
|
3516
|
+
role?: never
|
|
3517
|
+
/** The `srclang` HTML attribute. */
|
|
3518
|
+
srclang?: Trackable<string | undefined>
|
|
3519
|
+
/** The `srcLang` HTML attribute. */
|
|
3520
|
+
srcLang?: Trackable<string | undefined>
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* Props accepted by `<ul>` elements.
|
|
3525
|
+
*/
|
|
3526
|
+
export interface UlHTMLProps<eventTarget extends EventTarget = HTMLUListElement>
|
|
3527
|
+
extends HTMLProps<eventTarget> {
|
|
3528
|
+
/** The `role` HTML attribute. */
|
|
3529
|
+
role?: Trackable<
|
|
3530
|
+
| 'list'
|
|
3531
|
+
| 'group'
|
|
3532
|
+
| 'listbox'
|
|
3533
|
+
| 'menu'
|
|
3534
|
+
| 'menubar'
|
|
3535
|
+
| 'none'
|
|
3536
|
+
| 'presentation'
|
|
3537
|
+
| 'radiogroup'
|
|
3538
|
+
| 'tablist'
|
|
3539
|
+
| 'toolbar'
|
|
3540
|
+
| 'tree'
|
|
3541
|
+
| undefined
|
|
3542
|
+
>
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
/**
|
|
3546
|
+
* Props accepted by `<video>` elements.
|
|
3547
|
+
*/
|
|
3548
|
+
export interface VideoHTMLProps<eventTarget extends EventTarget = HTMLVideoElement>
|
|
3549
|
+
extends MediaHTMLProps<eventTarget> {
|
|
3550
|
+
/** The `disablePictureInPicture` HTML attribute. */
|
|
3551
|
+
disablePictureInPicture?: Trackable<boolean | undefined>
|
|
3552
|
+
/** The `height` HTML attribute. */
|
|
3553
|
+
height?: Trackable<number | string | undefined>
|
|
3554
|
+
/** The `playsinline` HTML attribute. */
|
|
3555
|
+
playsinline?: Trackable<boolean | undefined>
|
|
3556
|
+
/** The `playsInline` HTML attribute. */
|
|
3557
|
+
playsInline?: Trackable<boolean | undefined>
|
|
3558
|
+
/** The `poster` HTML attribute. */
|
|
3559
|
+
poster?: Trackable<string | undefined>
|
|
3560
|
+
/** The `width` HTML attribute. */
|
|
3561
|
+
width?: Trackable<number | string | undefined>
|
|
3562
|
+
/** The `role` HTML attribute. */
|
|
3563
|
+
role?: Trackable<'application' | undefined>
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* Props accepted by `<wbr>` elements.
|
|
3568
|
+
*/
|
|
3569
|
+
export interface WbrHTMLProps<eventTarget extends EventTarget = HTMLElement>
|
|
3570
|
+
extends HTMLProps<eventTarget> {
|
|
3571
|
+
/** The `role` HTML attribute. */
|
|
3572
|
+
role?: Trackable<'none' | 'presentation' | undefined>
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* Props accepted by `<detailed>` elements.
|
|
3577
|
+
*/
|
|
3578
|
+
export type DetailedHTMLProps<
|
|
3579
|
+
HA extends HTMLProps<RefType>,
|
|
3580
|
+
RefType extends EventTarget = EventTarget,
|
|
3581
|
+
> = HA
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Props accepted by MathML elements.
|
|
3585
|
+
*/
|
|
3586
|
+
export interface MathMLProps<eventTarget extends EventTarget = MathMLElement>
|
|
3587
|
+
extends HTMLProps<eventTarget> {
|
|
3588
|
+
/** The `dir` MathML attribute. */
|
|
3589
|
+
dir?: Trackable<'ltr' | 'rtl' | undefined>
|
|
3590
|
+
/** The `displaystyle` MathML attribute. */
|
|
3591
|
+
displaystyle?: Trackable<boolean | undefined>
|
|
3592
|
+
/** @deprecated This feature is non-standard. See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/href */
|
|
3593
|
+
href?: Trackable<string | undefined>
|
|
3594
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathbackground */
|
|
3595
|
+
mathbackground?: Trackable<string | undefined>
|
|
3596
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathcolor */
|
|
3597
|
+
mathcolor?: Trackable<string | undefined>
|
|
3598
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathsize */
|
|
3599
|
+
mathsize?: Trackable<string | undefined>
|
|
3600
|
+
/** The `nonce` MathML attribute. */
|
|
3601
|
+
nonce?: Trackable<string | undefined>
|
|
3602
|
+
/** The `scriptlevel` MathML attribute. */
|
|
3603
|
+
scriptlevel?: Trackable<string | undefined>
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* Props accepted by `<annotation>` MathML elements.
|
|
3608
|
+
*/
|
|
3609
|
+
export interface AnnotationMathMLProps<eventTarget extends EventTarget>
|
|
3610
|
+
extends MathMLProps<eventTarget> {
|
|
3611
|
+
/** The `encoding` MathML attribute. */
|
|
3612
|
+
encoding?: Trackable<string | undefined>
|
|
3613
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics#src */
|
|
3614
|
+
src?: Trackable<string | undefined>
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* Props accepted by `<annotation-xml>` MathML elements.
|
|
3619
|
+
*/
|
|
3620
|
+
export interface AnnotationXmlMathMLProps<eventTarget extends EventTarget>
|
|
3621
|
+
extends MathMLProps<eventTarget> {
|
|
3622
|
+
/** The `encoding` MathML attribute. */
|
|
3623
|
+
encoding?: Trackable<string | undefined>
|
|
3624
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics#src */
|
|
3625
|
+
src?: Trackable<string | undefined>
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* Props accepted by `<maction>` MathML elements.
|
|
3630
|
+
*/
|
|
3631
|
+
export interface MActionMathMLProps<eventTarget extends EventTarget>
|
|
3632
|
+
extends MathMLProps<eventTarget> {
|
|
3633
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction#actiontype */
|
|
3634
|
+
actiontype?: Trackable<'statusline' | 'toggle' | undefined>
|
|
3635
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction#selection */
|
|
3636
|
+
selection?: Trackable<string | undefined>
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* Props accepted by `<math>` MathML elements.
|
|
3641
|
+
*/
|
|
3642
|
+
export interface MathMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3643
|
+
/** The `display` MathML attribute. */
|
|
3644
|
+
display?: Trackable<'block' | 'inline' | undefined>
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* Props accepted by `<menclose>` MathML elements.
|
|
3649
|
+
*/
|
|
3650
|
+
export interface MEncloseMathMLProps<eventTarget extends EventTarget>
|
|
3651
|
+
extends MathMLProps<eventTarget> {
|
|
3652
|
+
/** The `notation` MathML attribute. */
|
|
3653
|
+
notation?: Trackable<string | undefined>
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* Props accepted by `<merror>` MathML elements.
|
|
3658
|
+
*/
|
|
3659
|
+
export interface MErrorMathMLProps<eventTarget extends EventTarget>
|
|
3660
|
+
extends MathMLProps<eventTarget> {}
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* Props accepted by `<mfenced>` MathML elements.
|
|
3664
|
+
*/
|
|
3665
|
+
export interface MFencedMathMLProps<eventTarget extends EventTarget>
|
|
3666
|
+
extends MathMLProps<eventTarget> {
|
|
3667
|
+
/** The `close` MathML attribute. */
|
|
3668
|
+
close?: Trackable<string | undefined>
|
|
3669
|
+
/** The `open` MathML attribute. */
|
|
3670
|
+
open?: Trackable<string | undefined>
|
|
3671
|
+
/** The `separators` MathML attribute. */
|
|
3672
|
+
separators?: Trackable<string | undefined>
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* Props accepted by `<mfrac>` MathML elements.
|
|
3677
|
+
*/
|
|
3678
|
+
export interface MFracMathMLProps<eventTarget extends EventTarget>
|
|
3679
|
+
extends MathMLProps<eventTarget> {
|
|
3680
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac#denomalign */
|
|
3681
|
+
denomalign?: Trackable<'center' | 'left' | 'right' | undefined>
|
|
3682
|
+
/** The `linethickness` MathML attribute. */
|
|
3683
|
+
linethickness?: Trackable<string | undefined>
|
|
3684
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac#numalign */
|
|
3685
|
+
numalign?: Trackable<'center' | 'left' | 'right' | undefined>
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
/**
|
|
3689
|
+
* Props accepted by `<mi>` MathML elements.
|
|
3690
|
+
*/
|
|
3691
|
+
export interface MiMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3692
|
+
/**
|
|
3693
|
+
* The only value allowed in the current specification is normal (case insensitive)
|
|
3694
|
+
* See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi#mathvariant
|
|
3695
|
+
*/
|
|
3696
|
+
mathvariant?: Trackable<
|
|
3697
|
+
| 'normal'
|
|
3698
|
+
| 'bold'
|
|
3699
|
+
| 'italic'
|
|
3700
|
+
| 'bold-italic'
|
|
3701
|
+
| 'double-struck'
|
|
3702
|
+
| 'bold-fraktur'
|
|
3703
|
+
| 'script'
|
|
3704
|
+
| 'bold-script'
|
|
3705
|
+
| 'fraktur'
|
|
3706
|
+
| 'sans-serif'
|
|
3707
|
+
| 'bold-sans-serif'
|
|
3708
|
+
| 'sans-serif-italic'
|
|
3709
|
+
| 'sans-serif-bold-italic'
|
|
3710
|
+
| 'monospace'
|
|
3711
|
+
| 'initial'
|
|
3712
|
+
| 'tailed'
|
|
3713
|
+
| 'looped'
|
|
3714
|
+
| 'stretched'
|
|
3715
|
+
| undefined
|
|
3716
|
+
>
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
/**
|
|
3720
|
+
* Props accepted by `<mmultiscripts>` MathML elements.
|
|
3721
|
+
*/
|
|
3722
|
+
export interface MmultiScriptsMathMLProps<eventTarget extends EventTarget>
|
|
3723
|
+
extends MathMLProps<eventTarget> {
|
|
3724
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mmultiscripts#subscriptshift */
|
|
3725
|
+
subscriptshift?: Trackable<string | undefined>
|
|
3726
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mmultiscripts#superscriptshift */
|
|
3727
|
+
superscriptshift?: Trackable<string | undefined>
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
/**
|
|
3731
|
+
* Props accepted by `<mn>` MathML elements.
|
|
3732
|
+
*/
|
|
3733
|
+
export interface MNMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {}
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Props accepted by `<mo>` MathML elements.
|
|
3737
|
+
*/
|
|
3738
|
+
export interface MOMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3739
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo#accent */
|
|
3740
|
+
accent?: Trackable<boolean | undefined>
|
|
3741
|
+
/** The `fence` MathML attribute. */
|
|
3742
|
+
fence?: Trackable<boolean | undefined>
|
|
3743
|
+
/** The `largeop` MathML attribute. */
|
|
3744
|
+
largeop?: Trackable<boolean | undefined>
|
|
3745
|
+
/** The `lspace` MathML attribute. */
|
|
3746
|
+
lspace?: Trackable<string | undefined>
|
|
3747
|
+
/** The `maxsize` MathML attribute. */
|
|
3748
|
+
maxsize?: Trackable<string | undefined>
|
|
3749
|
+
/** The `minsize` MathML attribute. */
|
|
3750
|
+
minsize?: Trackable<string | undefined>
|
|
3751
|
+
/** The `movablelimits` MathML attribute. */
|
|
3752
|
+
movablelimits?: Trackable<boolean | undefined>
|
|
3753
|
+
/** The `rspace` MathML attribute. */
|
|
3754
|
+
rspace?: Trackable<string | undefined>
|
|
3755
|
+
/** The `separator` MathML attribute. */
|
|
3756
|
+
separator?: Trackable<boolean | undefined>
|
|
3757
|
+
/** The `stretchy` MathML attribute. */
|
|
3758
|
+
stretchy?: Trackable<boolean | undefined>
|
|
3759
|
+
/** The `symmetric` MathML attribute. */
|
|
3760
|
+
symmetric?: Trackable<boolean | undefined>
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* Props accepted by `<mover>` MathML elements.
|
|
3765
|
+
*/
|
|
3766
|
+
export interface MOverMathMLProps<eventTarget extends EventTarget>
|
|
3767
|
+
extends MathMLProps<eventTarget> {
|
|
3768
|
+
/** The `accent` MathML attribute. */
|
|
3769
|
+
accent?: Trackable<boolean | undefined>
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
/**
|
|
3773
|
+
* Props accepted by `<mpadded>` MathML elements.
|
|
3774
|
+
*/
|
|
3775
|
+
export interface MPaddedMathMLProps<eventTarget extends EventTarget>
|
|
3776
|
+
extends MathMLProps<eventTarget> {
|
|
3777
|
+
/** The `depth` MathML attribute. */
|
|
3778
|
+
depth?: Trackable<string | undefined>
|
|
3779
|
+
/** The `height` MathML attribute. */
|
|
3780
|
+
height?: Trackable<string | undefined>
|
|
3781
|
+
/** The `lspace` MathML attribute. */
|
|
3782
|
+
lspace?: Trackable<string | undefined>
|
|
3783
|
+
/** The `voffset` MathML attribute. */
|
|
3784
|
+
voffset?: Trackable<string | undefined>
|
|
3785
|
+
/** The `width` MathML attribute. */
|
|
3786
|
+
width?: Trackable<string | undefined>
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
/**
|
|
3790
|
+
* Props accepted by `<mphantom>` MathML elements.
|
|
3791
|
+
*/
|
|
3792
|
+
export interface MPhantomMathMLProps<eventTarget extends EventTarget>
|
|
3793
|
+
extends MathMLProps<eventTarget> {}
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* Props accepted by `<mprescripts>` MathML elements.
|
|
3797
|
+
*/
|
|
3798
|
+
export interface MPrescriptsMathMLProps<eventTarget extends EventTarget>
|
|
3799
|
+
extends MathMLProps<eventTarget> {}
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Props accepted by `<mroot>` MathML elements.
|
|
3803
|
+
*/
|
|
3804
|
+
export interface MRootMathMLProps<eventTarget extends EventTarget>
|
|
3805
|
+
extends MathMLProps<eventTarget> {}
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Props accepted by `<mrow>` MathML elements.
|
|
3809
|
+
*/
|
|
3810
|
+
export interface MRowMathMLProps<eventTarget extends EventTarget>
|
|
3811
|
+
extends MathMLProps<eventTarget> {}
|
|
3812
|
+
|
|
3813
|
+
/**
|
|
3814
|
+
* Props accepted by `<ms>` MathML elements.
|
|
3815
|
+
*/
|
|
3816
|
+
export interface MSMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3817
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms#browser_compatibility */
|
|
3818
|
+
lquote?: Trackable<string | undefined>
|
|
3819
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms#browser_compatibility */
|
|
3820
|
+
rquote?: Trackable<string | undefined>
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
/**
|
|
3824
|
+
* Props accepted by `<mspace>` MathML elements.
|
|
3825
|
+
*/
|
|
3826
|
+
export interface MSpaceMathMLProps<eventTarget extends EventTarget>
|
|
3827
|
+
extends MathMLProps<eventTarget> {
|
|
3828
|
+
/** The `depth` MathML attribute. */
|
|
3829
|
+
depth?: Trackable<string | undefined>
|
|
3830
|
+
/** The `height` MathML attribute. */
|
|
3831
|
+
height?: Trackable<string | undefined>
|
|
3832
|
+
/** The `width` MathML attribute. */
|
|
3833
|
+
width?: Trackable<string | undefined>
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
/**
|
|
3837
|
+
* Props accepted by `<msqrt>` MathML elements.
|
|
3838
|
+
*/
|
|
3839
|
+
export interface MSqrtMathMLProps<eventTarget extends EventTarget>
|
|
3840
|
+
extends MathMLProps<eventTarget> {}
|
|
3841
|
+
|
|
3842
|
+
/**
|
|
3843
|
+
* Props accepted by `<mstyle>` MathML elements.
|
|
3844
|
+
*/
|
|
3845
|
+
export interface MStyleMathMLProps<eventTarget extends EventTarget>
|
|
3846
|
+
extends MathMLProps<eventTarget> {
|
|
3847
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#background */
|
|
3848
|
+
background?: Trackable<string | undefined>
|
|
3849
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#color */
|
|
3850
|
+
color?: Trackable<string | undefined>
|
|
3851
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontsize */
|
|
3852
|
+
fontsize?: Trackable<string | undefined>
|
|
3853
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontstyle */
|
|
3854
|
+
fontstyle?: Trackable<string | undefined>
|
|
3855
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontweight */
|
|
3856
|
+
fontweight?: Trackable<string | undefined>
|
|
3857
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#scriptminsize */
|
|
3858
|
+
scriptminsize?: Trackable<string | undefined>
|
|
3859
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#scriptsizemultiplier */
|
|
3860
|
+
scriptsizemultiplier?: Trackable<string | undefined>
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
/**
|
|
3864
|
+
* Props accepted by `<msub>` MathML elements.
|
|
3865
|
+
*/
|
|
3866
|
+
export interface MSubMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3867
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msub#subscriptshift */
|
|
3868
|
+
subscriptshift?: Trackable<string | undefined>
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3871
|
+
/**
|
|
3872
|
+
* Props accepted by `<msubsup>` MathML elements.
|
|
3873
|
+
*/
|
|
3874
|
+
export interface MSubsupMathMLProps<eventTarget extends EventTarget>
|
|
3875
|
+
extends MathMLProps<eventTarget> {
|
|
3876
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup#subscriptshift */
|
|
3877
|
+
subscriptshift?: Trackable<string | undefined>
|
|
3878
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup#superscriptshift */
|
|
3879
|
+
superscriptshift?: Trackable<string | undefined>
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
/**
|
|
3883
|
+
* Props accepted by `<msup>` MathML elements.
|
|
3884
|
+
*/
|
|
3885
|
+
export interface MSupMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3886
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msup#superscriptshift */
|
|
3887
|
+
superscriptshift?: Trackable<string | undefined>
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
/**
|
|
3891
|
+
* Props accepted by `<mtable>` MathML elements.
|
|
3892
|
+
*/
|
|
3893
|
+
export interface MTableMathMLProps<eventTarget extends EventTarget>
|
|
3894
|
+
extends MathMLProps<eventTarget> {
|
|
3895
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#align */
|
|
3896
|
+
align?: Trackable<'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined>
|
|
3897
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnalign */
|
|
3898
|
+
columnalign?: Trackable<'center' | 'left' | 'right' | undefined>
|
|
3899
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnlines */
|
|
3900
|
+
columnlines?: Trackable<'dashed' | 'none' | 'solid' | undefined>
|
|
3901
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnspacing */
|
|
3902
|
+
columnspacing?: Trackable<string | undefined>
|
|
3903
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#frame */
|
|
3904
|
+
frame?: Trackable<'dashed' | 'none' | 'solid' | undefined>
|
|
3905
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#framespacing */
|
|
3906
|
+
framespacing?: Trackable<string | undefined>
|
|
3907
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowalign */
|
|
3908
|
+
rowalign?: Trackable<'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined>
|
|
3909
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowlines */
|
|
3910
|
+
rowlines?: Trackable<'dashed' | 'none' | 'solid' | undefined>
|
|
3911
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowspacing */
|
|
3912
|
+
rowspacing?: Trackable<string | undefined>
|
|
3913
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#width */
|
|
3914
|
+
width?: Trackable<string | undefined>
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* Props accepted by `<mtd>` MathML elements.
|
|
3919
|
+
*/
|
|
3920
|
+
export interface MTdMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3921
|
+
/** The `columnspan` MathML attribute. */
|
|
3922
|
+
columnspan?: Trackable<number | undefined>
|
|
3923
|
+
/** The `rowspan` MathML attribute. */
|
|
3924
|
+
rowspan?: Trackable<number | undefined>
|
|
3925
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#columnalign */
|
|
3926
|
+
columnalign?: Trackable<'center' | 'left' | 'right' | undefined>
|
|
3927
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#rowalign */
|
|
3928
|
+
rowalign?: Trackable<'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined>
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* Props accepted by `<mtext>` MathML elements.
|
|
3933
|
+
*/
|
|
3934
|
+
export interface MTextMathMLProps<eventTarget extends EventTarget>
|
|
3935
|
+
extends MathMLProps<eventTarget> {}
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* Props accepted by `<mtr>` MathML elements.
|
|
3939
|
+
*/
|
|
3940
|
+
export interface MTrMathMLProps<eventTarget extends EventTarget> extends MathMLProps<eventTarget> {
|
|
3941
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr#columnalign */
|
|
3942
|
+
columnalign?: Trackable<'center' | 'left' | 'right' | undefined>
|
|
3943
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr#rowalign */
|
|
3944
|
+
rowalign?: Trackable<'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined>
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
/**
|
|
3948
|
+
* Props accepted by `<munder>` MathML elements.
|
|
3949
|
+
*/
|
|
3950
|
+
export interface MUnderMathMLProps<eventTarget extends EventTarget>
|
|
3951
|
+
extends MathMLProps<eventTarget> {
|
|
3952
|
+
/** The `accentunder` MathML attribute. */
|
|
3953
|
+
accentunder?: Trackable<boolean | undefined>
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
/**
|
|
3957
|
+
* Props accepted by `<munderover>` MathML elements.
|
|
3958
|
+
*/
|
|
3959
|
+
export interface MUnderoverMathMLProps<eventTarget extends EventTarget>
|
|
3960
|
+
extends MathMLProps<eventTarget> {
|
|
3961
|
+
/** The `accent` MathML attribute. */
|
|
3962
|
+
accent?: Trackable<boolean | undefined>
|
|
3963
|
+
/** The `accentunder` MathML attribute. */
|
|
3964
|
+
accentunder?: Trackable<boolean | undefined>
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
/**
|
|
3968
|
+
* Props accepted by `<semantics>` MathML elements.
|
|
3969
|
+
*/
|
|
3970
|
+
export interface SemanticsMathMLProps<eventTarget extends EventTarget>
|
|
3971
|
+
extends MathMLProps<eventTarget> {}
|