@types/react 16.14.19 → 17.0.1
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.
- {react v16.14 → react}/LICENSE +0 -0
- react/README.md +16 -0
- react/experimental.d.ts +189 -0
- {react v16.14 → react}/global.d.ts +0 -0
- react v16.14/index.d.ts → react/index.d.ts +977 -1090
- {react v16.14 → react}/jsx-dev-runtime.d.ts +0 -0
- {react v16.14 → react}/jsx-runtime.d.ts +0 -0
- react v16.14/package.json → react/package.json +8 -10
- react v16.14/README.md +0 -16
@@ -1,4 +1,4 @@
|
|
1
|
-
// Type definitions for React
|
1
|
+
// Type definitions for React 17.0
|
2
2
|
// Project: http://facebook.github.io/react/
|
3
3
|
// Definitions by: Asana <https://asana.com>
|
4
4
|
// AssureSign <http://www.assuresign.com>
|
@@ -6,6 +6,7 @@
|
|
6
6
|
// John Reilly <https://github.com/johnnyreilly>
|
7
7
|
// Benoit Benezech <https://github.com/bbenezech>
|
8
8
|
// Patricio Zavolinsky <https://github.com/pzavolinsky>
|
9
|
+
// Digiguru <https://github.com/digiguru>
|
9
10
|
// Eric Anderson <https://github.com/ericanderson>
|
10
11
|
// Dovydas Navickas <https://github.com/DovydasNavickas>
|
11
12
|
// Josh Rutherford <https://github.com/theruther4d>
|
@@ -25,7 +26,6 @@
|
|
25
26
|
// JongChan Choi <https://github.com/disjukr>
|
26
27
|
// Victor Magalhães <https://github.com/vhfmag>
|
27
28
|
// Dale Tan <https://github.com/hellatan>
|
28
|
-
// Priyanshu Rav <https://github.com/priyanshurav>
|
29
29
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
30
30
|
// TypeScript Version: 2.8
|
31
31
|
|
@@ -37,7 +37,6 @@
|
|
37
37
|
|
38
38
|
import * as CSS from 'csstype';
|
39
39
|
import * as PropTypes from 'prop-types';
|
40
|
-
import { Interaction as SchedulerInteraction } from 'scheduler/tracing';
|
41
40
|
|
42
41
|
type NativeAnimationEvent = AnimationEvent;
|
43
42
|
type NativeClipboardEvent = ClipboardEvent;
|
@@ -53,9 +52,14 @@ type NativeUIEvent = UIEvent;
|
|
53
52
|
type NativeWheelEvent = WheelEvent;
|
54
53
|
type Booleanish = boolean | 'true' | 'false';
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
/**
|
56
|
+
* defined in scheduler/tracing
|
57
|
+
*/
|
58
|
+
interface SchedulerInteraction {
|
59
|
+
id: number;
|
60
|
+
name: string;
|
61
|
+
timestamp: number;
|
62
|
+
}
|
59
63
|
|
60
64
|
// tslint:disable-next-line:export-just-namespace
|
61
65
|
export = React;
|
@@ -79,7 +83,7 @@ declare namespace React {
|
|
79
83
|
|
80
84
|
type JSXElementConstructor<P> =
|
81
85
|
| ((props: P) => ReactElement<any, any> | null)
|
82
|
-
| (new (props: P) => Component<
|
86
|
+
| (new (props: P) => Component<P, any>);
|
83
87
|
|
84
88
|
interface RefObject<T> {
|
85
89
|
readonly current: T | null;
|
@@ -130,13 +134,13 @@ declare namespace React {
|
|
130
134
|
* inside your component or have to validate them.
|
131
135
|
*/
|
132
136
|
interface Attributes {
|
133
|
-
key?: Key | null
|
137
|
+
key?: Key | null;
|
134
138
|
}
|
135
139
|
interface RefAttributes<T> extends Attributes {
|
136
|
-
ref?: Ref<T
|
140
|
+
ref?: Ref<T>;
|
137
141
|
}
|
138
142
|
interface ClassAttributes<T> extends Attributes {
|
139
|
-
ref?: LegacyRef<T
|
143
|
+
ref?: LegacyRef<T>;
|
140
144
|
}
|
141
145
|
|
142
146
|
interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
|
@@ -156,12 +160,12 @@ declare namespace React {
|
|
156
160
|
type SFCElement<P> = FunctionComponentElement<P>;
|
157
161
|
|
158
162
|
interface FunctionComponentElement<P> extends ReactElement<P, FunctionComponent<P>> {
|
159
|
-
ref?:
|
163
|
+
ref?: 'ref' extends keyof P ? P extends { ref?: infer R } ? R : never : never;
|
160
164
|
}
|
161
165
|
|
162
166
|
type CElement<P, T extends Component<P, ComponentState>> = ComponentElement<P, T>;
|
163
167
|
interface ComponentElement<P, T extends Component<P, ComponentState>> extends ReactElement<P, ComponentClass<P>> {
|
164
|
-
ref?: LegacyRef<T
|
168
|
+
ref?: LegacyRef<T>;
|
165
169
|
}
|
166
170
|
|
167
171
|
type ClassicElement<P> = CElement<P, ClassicComponent<P, ComponentState>>;
|
@@ -172,7 +176,6 @@ declare namespace React {
|
|
172
176
|
}
|
173
177
|
|
174
178
|
// ReactHTML for ReactHTMLElement
|
175
|
-
// tslint:disable-next-line:no-empty-interface
|
176
179
|
interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> { }
|
177
180
|
|
178
181
|
interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
|
@@ -211,7 +214,6 @@ declare namespace React {
|
|
211
214
|
type DOMFactory<P extends DOMAttributes<T>, T extends Element> =
|
212
215
|
(props?: ClassAttributes<T> & P | null, ...children: ReactNode[]) => DOMElement<P, T>;
|
213
216
|
|
214
|
-
// tslint:disable-next-line:no-empty-interface
|
215
217
|
interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> {}
|
216
218
|
|
217
219
|
interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
|
@@ -331,7 +333,7 @@ declare namespace React {
|
|
331
333
|
// Context via RenderProps
|
332
334
|
interface ProviderProps<T> {
|
333
335
|
value: T;
|
334
|
-
children?: ReactNode
|
336
|
+
children?: ReactNode;
|
335
337
|
}
|
336
338
|
|
337
339
|
interface ConsumerProps<T> {
|
@@ -357,11 +359,11 @@ declare namespace React {
|
|
357
359
|
}
|
358
360
|
|
359
361
|
interface NamedExoticComponent<P = {}> extends ExoticComponent<P> {
|
360
|
-
displayName?: string
|
362
|
+
displayName?: string;
|
361
363
|
}
|
362
364
|
|
363
365
|
interface ProviderExoticComponent<P> extends ExoticComponent<P> {
|
364
|
-
propTypes?: WeakValidationMap<P
|
366
|
+
propTypes?: WeakValidationMap<P>;
|
365
367
|
}
|
366
368
|
|
367
369
|
type ContextType<C extends Context<any>> = C extends Context<infer T> ? T : never;
|
@@ -373,7 +375,7 @@ declare namespace React {
|
|
373
375
|
interface Context<T> {
|
374
376
|
Provider: Provider<T>;
|
375
377
|
Consumer: Consumer<T>;
|
376
|
-
displayName?: string
|
378
|
+
displayName?: string;
|
377
379
|
}
|
378
380
|
function createContext<T>(
|
379
381
|
// If you thought this should be optional, see
|
@@ -384,11 +386,11 @@ declare namespace React {
|
|
384
386
|
function isValidElement<P>(object: {} | null | undefined): object is ReactElement<P>;
|
385
387
|
|
386
388
|
const Children: ReactChildren;
|
387
|
-
const Fragment: ExoticComponent<{ children?: ReactNode
|
388
|
-
const StrictMode: ExoticComponent<{ children?: ReactNode
|
389
|
+
const Fragment: ExoticComponent<{ children?: ReactNode }>;
|
390
|
+
const StrictMode: ExoticComponent<{ children?: ReactNode }>;
|
389
391
|
|
390
392
|
interface SuspenseProps {
|
391
|
-
children?: ReactNode
|
393
|
+
children?: ReactNode;
|
392
394
|
|
393
395
|
/** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
|
394
396
|
fallback: NonNullable<ReactNode>|null;
|
@@ -401,7 +403,7 @@ declare namespace React {
|
|
401
403
|
const version: string;
|
402
404
|
|
403
405
|
/**
|
404
|
-
* {@link https://
|
406
|
+
* {@link https://github.com/bvaughn/rfcs/blob/profiler/text/0000-profiler.md#detailed-design | API}
|
405
407
|
*/
|
406
408
|
type ProfilerOnRenderCallback = (
|
407
409
|
id: string,
|
@@ -413,7 +415,7 @@ declare namespace React {
|
|
413
415
|
interactions: Set<SchedulerInteraction>,
|
414
416
|
) => void;
|
415
417
|
interface ProfilerProps {
|
416
|
-
children?: ReactNode
|
418
|
+
children?: ReactNode;
|
417
419
|
id: string;
|
418
420
|
onRender: ProfilerOnRenderCallback;
|
419
421
|
}
|
@@ -427,7 +429,6 @@ declare namespace React {
|
|
427
429
|
type ReactInstance = Component<any> | Element;
|
428
430
|
|
429
431
|
// Base component for plain JS classes
|
430
|
-
// tslint:disable-next-line:no-empty-interface
|
431
432
|
interface Component<P = {}, S = {}, SS = any> extends ComponentLifecycle<P, S, SS> { }
|
432
433
|
class Component<P, S> {
|
433
434
|
// tslint won't let me format the sample code in a way that vscode likes it :(
|
@@ -451,7 +452,7 @@ declare namespace React {
|
|
451
452
|
*
|
452
453
|
* @see https://reactjs.org/docs/context.html#classcontexttype
|
453
454
|
*/
|
454
|
-
static contextType?: Context<any
|
455
|
+
static contextType?: Context<any>;
|
455
456
|
|
456
457
|
/**
|
457
458
|
* If using the new style context, re-declare this in your class to be the
|
@@ -494,7 +495,7 @@ declare namespace React {
|
|
494
495
|
// always pass children as variadic arguments to `createElement`.
|
495
496
|
// In the future, if we can define its call signature conditionally
|
496
497
|
// on the existence of `children` in `P`, then we should remove this.
|
497
|
-
readonly props: Readonly<P> & Readonly<{ children?: ReactNode
|
498
|
+
readonly props: Readonly<P> & Readonly<{ children?: ReactNode }>;
|
498
499
|
state: Readonly<S>;
|
499
500
|
/**
|
500
501
|
* @deprecated
|
@@ -541,35 +542,37 @@ declare namespace React {
|
|
541
542
|
|
542
543
|
interface FunctionComponent<P = {}> {
|
543
544
|
(props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null;
|
544
|
-
propTypes?: WeakValidationMap<P
|
545
|
-
contextTypes?: ValidationMap<any
|
546
|
-
defaultProps?: Partial<P
|
547
|
-
displayName?: string
|
545
|
+
propTypes?: WeakValidationMap<P>;
|
546
|
+
contextTypes?: ValidationMap<any>;
|
547
|
+
defaultProps?: Partial<P>;
|
548
|
+
displayName?: string;
|
548
549
|
}
|
549
550
|
|
550
551
|
type VFC<P = {}> = VoidFunctionComponent<P>;
|
551
552
|
|
552
553
|
interface VoidFunctionComponent<P = {}> {
|
553
554
|
(props: P, context?: any): ReactElement<any, any> | null;
|
554
|
-
propTypes?: WeakValidationMap<P
|
555
|
-
contextTypes?: ValidationMap<any
|
556
|
-
defaultProps?: Partial<P
|
557
|
-
displayName?: string
|
555
|
+
propTypes?: WeakValidationMap<P>;
|
556
|
+
contextTypes?: ValidationMap<any>;
|
557
|
+
defaultProps?: Partial<P>;
|
558
|
+
displayName?: string;
|
558
559
|
}
|
559
560
|
|
561
|
+
type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null;
|
562
|
+
|
560
563
|
interface ForwardRefRenderFunction<T, P = {}> {
|
561
|
-
(props: PropsWithChildren<P>, ref:
|
562
|
-
displayName?: string
|
564
|
+
(props: PropsWithChildren<P>, ref: ForwardedRef<T>): ReactElement | null;
|
565
|
+
displayName?: string;
|
563
566
|
// explicit rejected with `never` required due to
|
564
567
|
// https://github.com/microsoft/TypeScript/issues/36826
|
565
568
|
/**
|
566
569
|
* defaultProps are not supported on render functions
|
567
570
|
*/
|
568
|
-
defaultProps?: never
|
571
|
+
defaultProps?: never;
|
569
572
|
/**
|
570
573
|
* propTypes are not supported on render functions
|
571
574
|
*/
|
572
|
-
propTypes?: never
|
575
|
+
propTypes?: never;
|
573
576
|
}
|
574
577
|
|
575
578
|
/**
|
@@ -580,12 +583,12 @@ declare namespace React {
|
|
580
583
|
|
581
584
|
interface ComponentClass<P = {}, S = ComponentState> extends StaticLifecycle<P, S> {
|
582
585
|
new (props: P, context?: any): Component<P, S>;
|
583
|
-
propTypes?: WeakValidationMap<P
|
584
|
-
contextType?: Context<any
|
585
|
-
contextTypes?: ValidationMap<any
|
586
|
-
childContextTypes?: ValidationMap<any
|
587
|
-
defaultProps?: Partial<P
|
588
|
-
displayName?: string
|
586
|
+
propTypes?: WeakValidationMap<P>;
|
587
|
+
contextType?: Context<any>;
|
588
|
+
contextTypes?: ValidationMap<any>;
|
589
|
+
childContextTypes?: ValidationMap<any>;
|
590
|
+
defaultProps?: Partial<P>;
|
591
|
+
displayName?: string;
|
589
592
|
}
|
590
593
|
|
591
594
|
interface ClassicComponentClass<P = {}> extends ComponentClass<P> {
|
@@ -639,8 +642,8 @@ declare namespace React {
|
|
639
642
|
|
640
643
|
// Unfortunately, we have no way of declaring that the component constructor must implement this
|
641
644
|
interface StaticLifecycle<P, S> {
|
642
|
-
getDerivedStateFromProps?: GetDerivedStateFromProps<P, S
|
643
|
-
getDerivedStateFromError?: GetDerivedStateFromError<P, S
|
645
|
+
getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>;
|
646
|
+
getDerivedStateFromError?: GetDerivedStateFromError<P, S>;
|
644
647
|
}
|
645
648
|
|
646
649
|
type GetDerivedStateFromProps<P, S> =
|
@@ -769,15 +772,15 @@ declare namespace React {
|
|
769
772
|
}
|
770
773
|
|
771
774
|
interface Mixin<P, S> extends ComponentLifecycle<P, S> {
|
772
|
-
mixins?: Array<Mixin<P, S
|
775
|
+
mixins?: Array<Mixin<P, S>>;
|
773
776
|
statics?: {
|
774
777
|
[key: string]: any;
|
775
|
-
}
|
778
|
+
};
|
776
779
|
|
777
|
-
displayName?: string
|
778
|
-
propTypes?: ValidationMap<any
|
779
|
-
contextTypes?: ValidationMap<any
|
780
|
-
childContextTypes?: ValidationMap<any
|
780
|
+
displayName?: string;
|
781
|
+
propTypes?: ValidationMap<any>;
|
782
|
+
contextTypes?: ValidationMap<any>;
|
783
|
+
childContextTypes?: ValidationMap<any>;
|
781
784
|
|
782
785
|
getDefaultProps?(): P;
|
783
786
|
getInitialState?(): S;
|
@@ -794,8 +797,8 @@ declare namespace React {
|
|
794
797
|
// will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default,
|
795
798
|
// but can be given its own specific name
|
796
799
|
interface ForwardRefExoticComponent<P> extends NamedExoticComponent<P> {
|
797
|
-
defaultProps?: Partial<P
|
798
|
-
propTypes?: WeakValidationMap<P
|
800
|
+
defaultProps?: Partial<P>;
|
801
|
+
propTypes?: WeakValidationMap<P>;
|
799
802
|
}
|
800
803
|
|
801
804
|
function forwardRef<T, P = {}>(render: ForwardRefRenderFunction<T, P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
@@ -811,14 +814,14 @@ declare namespace React {
|
|
811
814
|
type PropsWithRef<P> =
|
812
815
|
// Just "P extends { ref?: infer R }" looks sufficient, but R will infer as {} if P is {}.
|
813
816
|
'ref' extends keyof P
|
814
|
-
? P extends { ref?: infer R
|
817
|
+
? P extends { ref?: infer R }
|
815
818
|
? string extends R
|
816
|
-
? PropsWithoutRef<P> & { ref?: Exclude<R, string>
|
819
|
+
? PropsWithoutRef<P> & { ref?: Exclude<R, string> }
|
817
820
|
: P
|
818
821
|
: P
|
819
822
|
: P;
|
820
823
|
|
821
|
-
type PropsWithChildren<P> = P & { children?: ReactNode
|
824
|
+
type PropsWithChildren<P> = P & { children?: ReactNode };
|
822
825
|
|
823
826
|
/**
|
824
827
|
* NOTE: prefer ComponentPropsWithRef, if the ref is forwarded,
|
@@ -837,14 +840,6 @@ declare namespace React {
|
|
837
840
|
type ComponentPropsWithoutRef<T extends ElementType> =
|
838
841
|
PropsWithoutRef<ComponentProps<T>>;
|
839
842
|
|
840
|
-
type ComponentRef<T extends ElementType> = T extends NamedExoticComponent<
|
841
|
-
ComponentPropsWithoutRef<T> & RefAttributes<infer Method>
|
842
|
-
>
|
843
|
-
? Method
|
844
|
-
: ComponentPropsWithRef<T> extends RefAttributes<infer Method>
|
845
|
-
? Method
|
846
|
-
: never;
|
847
|
-
|
848
843
|
// will show `Memo(${Component.displayName || Component.name})` in devtools by default,
|
849
844
|
// but can be given its own specific name
|
850
845
|
type MemoExoticComponent<T extends ComponentType<any>> = NamedExoticComponent<ComponentPropsWithRef<T>> & {
|
@@ -896,7 +891,8 @@ declare namespace React {
|
|
896
891
|
type DependencyList = ReadonlyArray<any>;
|
897
892
|
|
898
893
|
// NOTE: callbacks are _only_ allowed to return either void, or a destructor.
|
899
|
-
|
894
|
+
// The destructor is itself only allowed to return void.
|
895
|
+
type EffectCallback = () => (void | (() => void | undefined));
|
900
896
|
|
901
897
|
interface MutableRefObject<T> {
|
902
898
|
current: T;
|
@@ -1027,6 +1023,7 @@ declare namespace React {
|
|
1027
1023
|
* @version 16.8.0
|
1028
1024
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1029
1025
|
*/
|
1026
|
+
// TODO (TypeScript 3.0): <T extends unknown>
|
1030
1027
|
function useRef<T>(initialValue: T): MutableRefObject<T>;
|
1031
1028
|
// convenience overload for refs given as a ref prop as they typically start with a null value
|
1032
1029
|
/**
|
@@ -1042,6 +1039,7 @@ declare namespace React {
|
|
1042
1039
|
* @version 16.8.0
|
1043
1040
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1044
1041
|
*/
|
1042
|
+
// TODO (TypeScript 3.0): <T extends unknown>
|
1045
1043
|
function useRef<T>(initialValue: T|null): RefObject<T>;
|
1046
1044
|
// convenience overload for potentially undefined initialValue / call with 0 arguments
|
1047
1045
|
// has a default to stop it from defaulting to {} instead
|
@@ -1055,6 +1053,7 @@ declare namespace React {
|
|
1055
1053
|
* @version 16.8.0
|
1056
1054
|
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
1057
1055
|
*/
|
1056
|
+
// TODO (TypeScript 3.0): <T extends unknown>
|
1058
1057
|
function useRef<T = undefined>(): MutableRefObject<T | undefined>;
|
1059
1058
|
/**
|
1060
1059
|
* The signature is identical to `useEffect`, but it fires synchronously after all DOM mutations.
|
@@ -1191,12 +1190,11 @@ declare namespace React {
|
|
1191
1190
|
isPrimary: boolean;
|
1192
1191
|
}
|
1193
1192
|
|
1194
|
-
interface FocusEvent<
|
1195
|
-
relatedTarget:
|
1196
|
-
target: EventTarget &
|
1193
|
+
interface FocusEvent<T = Element> extends SyntheticEvent<T, NativeFocusEvent> {
|
1194
|
+
relatedTarget: EventTarget | null;
|
1195
|
+
target: EventTarget & T;
|
1197
1196
|
}
|
1198
1197
|
|
1199
|
-
// tslint:disable-next-line:no-empty-interface
|
1200
1198
|
interface FormEvent<T = Element> extends SyntheticEvent<T> {
|
1201
1199
|
}
|
1202
1200
|
|
@@ -1213,6 +1211,7 @@ declare namespace React {
|
|
1213
1211
|
/** @deprecated */
|
1214
1212
|
charCode: number;
|
1215
1213
|
ctrlKey: boolean;
|
1214
|
+
code: string;
|
1216
1215
|
/**
|
1217
1216
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1218
1217
|
*/
|
@@ -1334,9 +1333,9 @@ declare namespace React {
|
|
1334
1333
|
* ```
|
1335
1334
|
*/
|
1336
1335
|
interface Props<T> {
|
1337
|
-
children?: ReactNode
|
1338
|
-
key?: Key
|
1339
|
-
ref?: LegacyRef<T
|
1336
|
+
children?: ReactNode;
|
1337
|
+
key?: Key;
|
1338
|
+
ref?: LegacyRef<T>;
|
1340
1339
|
}
|
1341
1340
|
|
1342
1341
|
interface HTMLProps<T> extends AllHTMLAttributes<T>, ClassAttributes<T> {
|
@@ -1348,200 +1347,200 @@ declare namespace React {
|
|
1348
1347
|
}
|
1349
1348
|
|
1350
1349
|
interface DOMAttributes<T> {
|
1351
|
-
children?: ReactNode
|
1350
|
+
children?: ReactNode;
|
1352
1351
|
dangerouslySetInnerHTML?: {
|
1353
1352
|
__html: string;
|
1354
|
-
}
|
1353
|
+
};
|
1355
1354
|
|
1356
1355
|
// Clipboard Events
|
1357
|
-
onCopy?: ClipboardEventHandler<T
|
1358
|
-
onCopyCapture?: ClipboardEventHandler<T
|
1359
|
-
onCut?: ClipboardEventHandler<T
|
1360
|
-
onCutCapture?: ClipboardEventHandler<T
|
1361
|
-
onPaste?: ClipboardEventHandler<T
|
1362
|
-
onPasteCapture?: ClipboardEventHandler<T
|
1356
|
+
onCopy?: ClipboardEventHandler<T>;
|
1357
|
+
onCopyCapture?: ClipboardEventHandler<T>;
|
1358
|
+
onCut?: ClipboardEventHandler<T>;
|
1359
|
+
onCutCapture?: ClipboardEventHandler<T>;
|
1360
|
+
onPaste?: ClipboardEventHandler<T>;
|
1361
|
+
onPasteCapture?: ClipboardEventHandler<T>;
|
1363
1362
|
|
1364
1363
|
// Composition Events
|
1365
|
-
onCompositionEnd?: CompositionEventHandler<T
|
1366
|
-
onCompositionEndCapture?: CompositionEventHandler<T
|
1367
|
-
onCompositionStart?: CompositionEventHandler<T
|
1368
|
-
onCompositionStartCapture?: CompositionEventHandler<T
|
1369
|
-
onCompositionUpdate?: CompositionEventHandler<T
|
1370
|
-
onCompositionUpdateCapture?: CompositionEventHandler<T
|
1364
|
+
onCompositionEnd?: CompositionEventHandler<T>;
|
1365
|
+
onCompositionEndCapture?: CompositionEventHandler<T>;
|
1366
|
+
onCompositionStart?: CompositionEventHandler<T>;
|
1367
|
+
onCompositionStartCapture?: CompositionEventHandler<T>;
|
1368
|
+
onCompositionUpdate?: CompositionEventHandler<T>;
|
1369
|
+
onCompositionUpdateCapture?: CompositionEventHandler<T>;
|
1371
1370
|
|
1372
1371
|
// Focus Events
|
1373
|
-
onFocus?: FocusEventHandler<T
|
1374
|
-
onFocusCapture?: FocusEventHandler<T
|
1375
|
-
onBlur?: FocusEventHandler<T
|
1376
|
-
onBlurCapture?: FocusEventHandler<T
|
1372
|
+
onFocus?: FocusEventHandler<T>;
|
1373
|
+
onFocusCapture?: FocusEventHandler<T>;
|
1374
|
+
onBlur?: FocusEventHandler<T>;
|
1375
|
+
onBlurCapture?: FocusEventHandler<T>;
|
1377
1376
|
|
1378
1377
|
// Form Events
|
1379
|
-
onChange?: FormEventHandler<T
|
1380
|
-
onChangeCapture?: FormEventHandler<T
|
1381
|
-
onBeforeInput?: FormEventHandler<T
|
1382
|
-
onBeforeInputCapture?: FormEventHandler<T
|
1383
|
-
onInput?: FormEventHandler<T
|
1384
|
-
onInputCapture?: FormEventHandler<T
|
1385
|
-
onReset?: FormEventHandler<T
|
1386
|
-
onResetCapture?: FormEventHandler<T
|
1387
|
-
onSubmit?: FormEventHandler<T
|
1388
|
-
onSubmitCapture?: FormEventHandler<T
|
1389
|
-
onInvalid?: FormEventHandler<T
|
1390
|
-
onInvalidCapture?: FormEventHandler<T
|
1378
|
+
onChange?: FormEventHandler<T>;
|
1379
|
+
onChangeCapture?: FormEventHandler<T>;
|
1380
|
+
onBeforeInput?: FormEventHandler<T>;
|
1381
|
+
onBeforeInputCapture?: FormEventHandler<T>;
|
1382
|
+
onInput?: FormEventHandler<T>;
|
1383
|
+
onInputCapture?: FormEventHandler<T>;
|
1384
|
+
onReset?: FormEventHandler<T>;
|
1385
|
+
onResetCapture?: FormEventHandler<T>;
|
1386
|
+
onSubmit?: FormEventHandler<T>;
|
1387
|
+
onSubmitCapture?: FormEventHandler<T>;
|
1388
|
+
onInvalid?: FormEventHandler<T>;
|
1389
|
+
onInvalidCapture?: FormEventHandler<T>;
|
1391
1390
|
|
1392
1391
|
// Image Events
|
1393
|
-
onLoad?: ReactEventHandler<T
|
1394
|
-
onLoadCapture?: ReactEventHandler<T
|
1395
|
-
onError?: ReactEventHandler<T
|
1396
|
-
onErrorCapture?: ReactEventHandler<T
|
1392
|
+
onLoad?: ReactEventHandler<T>;
|
1393
|
+
onLoadCapture?: ReactEventHandler<T>;
|
1394
|
+
onError?: ReactEventHandler<T>; // also a Media Event
|
1395
|
+
onErrorCapture?: ReactEventHandler<T>; // also a Media Event
|
1397
1396
|
|
1398
1397
|
// Keyboard Events
|
1399
|
-
onKeyDown?: KeyboardEventHandler<T
|
1400
|
-
onKeyDownCapture?: KeyboardEventHandler<T
|
1401
|
-
onKeyPress?: KeyboardEventHandler<T
|
1402
|
-
onKeyPressCapture?: KeyboardEventHandler<T
|
1403
|
-
onKeyUp?: KeyboardEventHandler<T
|
1404
|
-
onKeyUpCapture?: KeyboardEventHandler<T
|
1398
|
+
onKeyDown?: KeyboardEventHandler<T>;
|
1399
|
+
onKeyDownCapture?: KeyboardEventHandler<T>;
|
1400
|
+
onKeyPress?: KeyboardEventHandler<T>;
|
1401
|
+
onKeyPressCapture?: KeyboardEventHandler<T>;
|
1402
|
+
onKeyUp?: KeyboardEventHandler<T>;
|
1403
|
+
onKeyUpCapture?: KeyboardEventHandler<T>;
|
1405
1404
|
|
1406
1405
|
// Media Events
|
1407
|
-
onAbort?: ReactEventHandler<T
|
1408
|
-
onAbortCapture?: ReactEventHandler<T
|
1409
|
-
onCanPlay?: ReactEventHandler<T
|
1410
|
-
onCanPlayCapture?: ReactEventHandler<T
|
1411
|
-
onCanPlayThrough?: ReactEventHandler<T
|
1412
|
-
onCanPlayThroughCapture?: ReactEventHandler<T
|
1413
|
-
onDurationChange?: ReactEventHandler<T
|
1414
|
-
onDurationChangeCapture?: ReactEventHandler<T
|
1415
|
-
onEmptied?: ReactEventHandler<T
|
1416
|
-
onEmptiedCapture?: ReactEventHandler<T
|
1417
|
-
onEncrypted?: ReactEventHandler<T
|
1418
|
-
onEncryptedCapture?: ReactEventHandler<T
|
1419
|
-
onEnded?: ReactEventHandler<T
|
1420
|
-
onEndedCapture?: ReactEventHandler<T
|
1421
|
-
onLoadedData?: ReactEventHandler<T
|
1422
|
-
onLoadedDataCapture?: ReactEventHandler<T
|
1423
|
-
onLoadedMetadata?: ReactEventHandler<T
|
1424
|
-
onLoadedMetadataCapture?: ReactEventHandler<T
|
1425
|
-
onLoadStart?: ReactEventHandler<T
|
1426
|
-
onLoadStartCapture?: ReactEventHandler<T
|
1427
|
-
onPause?: ReactEventHandler<T
|
1428
|
-
onPauseCapture?: ReactEventHandler<T
|
1429
|
-
onPlay?: ReactEventHandler<T
|
1430
|
-
onPlayCapture?: ReactEventHandler<T
|
1431
|
-
onPlaying?: ReactEventHandler<T
|
1432
|
-
onPlayingCapture?: ReactEventHandler<T
|
1433
|
-
onProgress?: ReactEventHandler<T
|
1434
|
-
onProgressCapture?: ReactEventHandler<T
|
1435
|
-
onRateChange?: ReactEventHandler<T
|
1436
|
-
onRateChangeCapture?: ReactEventHandler<T
|
1437
|
-
onSeeked?: ReactEventHandler<T
|
1438
|
-
onSeekedCapture?: ReactEventHandler<T
|
1439
|
-
onSeeking?: ReactEventHandler<T
|
1440
|
-
onSeekingCapture?: ReactEventHandler<T
|
1441
|
-
onStalled?: ReactEventHandler<T
|
1442
|
-
onStalledCapture?: ReactEventHandler<T
|
1443
|
-
onSuspend?: ReactEventHandler<T
|
1444
|
-
onSuspendCapture?: ReactEventHandler<T
|
1445
|
-
onTimeUpdate?: ReactEventHandler<T
|
1446
|
-
onTimeUpdateCapture?: ReactEventHandler<T
|
1447
|
-
onVolumeChange?: ReactEventHandler<T
|
1448
|
-
onVolumeChangeCapture?: ReactEventHandler<T
|
1449
|
-
onWaiting?: ReactEventHandler<T
|
1450
|
-
onWaitingCapture?: ReactEventHandler<T
|
1406
|
+
onAbort?: ReactEventHandler<T>;
|
1407
|
+
onAbortCapture?: ReactEventHandler<T>;
|
1408
|
+
onCanPlay?: ReactEventHandler<T>;
|
1409
|
+
onCanPlayCapture?: ReactEventHandler<T>;
|
1410
|
+
onCanPlayThrough?: ReactEventHandler<T>;
|
1411
|
+
onCanPlayThroughCapture?: ReactEventHandler<T>;
|
1412
|
+
onDurationChange?: ReactEventHandler<T>;
|
1413
|
+
onDurationChangeCapture?: ReactEventHandler<T>;
|
1414
|
+
onEmptied?: ReactEventHandler<T>;
|
1415
|
+
onEmptiedCapture?: ReactEventHandler<T>;
|
1416
|
+
onEncrypted?: ReactEventHandler<T>;
|
1417
|
+
onEncryptedCapture?: ReactEventHandler<T>;
|
1418
|
+
onEnded?: ReactEventHandler<T>;
|
1419
|
+
onEndedCapture?: ReactEventHandler<T>;
|
1420
|
+
onLoadedData?: ReactEventHandler<T>;
|
1421
|
+
onLoadedDataCapture?: ReactEventHandler<T>;
|
1422
|
+
onLoadedMetadata?: ReactEventHandler<T>;
|
1423
|
+
onLoadedMetadataCapture?: ReactEventHandler<T>;
|
1424
|
+
onLoadStart?: ReactEventHandler<T>;
|
1425
|
+
onLoadStartCapture?: ReactEventHandler<T>;
|
1426
|
+
onPause?: ReactEventHandler<T>;
|
1427
|
+
onPauseCapture?: ReactEventHandler<T>;
|
1428
|
+
onPlay?: ReactEventHandler<T>;
|
1429
|
+
onPlayCapture?: ReactEventHandler<T>;
|
1430
|
+
onPlaying?: ReactEventHandler<T>;
|
1431
|
+
onPlayingCapture?: ReactEventHandler<T>;
|
1432
|
+
onProgress?: ReactEventHandler<T>;
|
1433
|
+
onProgressCapture?: ReactEventHandler<T>;
|
1434
|
+
onRateChange?: ReactEventHandler<T>;
|
1435
|
+
onRateChangeCapture?: ReactEventHandler<T>;
|
1436
|
+
onSeeked?: ReactEventHandler<T>;
|
1437
|
+
onSeekedCapture?: ReactEventHandler<T>;
|
1438
|
+
onSeeking?: ReactEventHandler<T>;
|
1439
|
+
onSeekingCapture?: ReactEventHandler<T>;
|
1440
|
+
onStalled?: ReactEventHandler<T>;
|
1441
|
+
onStalledCapture?: ReactEventHandler<T>;
|
1442
|
+
onSuspend?: ReactEventHandler<T>;
|
1443
|
+
onSuspendCapture?: ReactEventHandler<T>;
|
1444
|
+
onTimeUpdate?: ReactEventHandler<T>;
|
1445
|
+
onTimeUpdateCapture?: ReactEventHandler<T>;
|
1446
|
+
onVolumeChange?: ReactEventHandler<T>;
|
1447
|
+
onVolumeChangeCapture?: ReactEventHandler<T>;
|
1448
|
+
onWaiting?: ReactEventHandler<T>;
|
1449
|
+
onWaitingCapture?: ReactEventHandler<T>;
|
1451
1450
|
|
1452
1451
|
// MouseEvents
|
1453
|
-
onAuxClick?: MouseEventHandler<T
|
1454
|
-
onAuxClickCapture?: MouseEventHandler<T
|
1455
|
-
onClick?: MouseEventHandler<T
|
1456
|
-
onClickCapture?: MouseEventHandler<T
|
1457
|
-
onContextMenu?: MouseEventHandler<T
|
1458
|
-
onContextMenuCapture?: MouseEventHandler<T
|
1459
|
-
onDoubleClick?: MouseEventHandler<T
|
1460
|
-
onDoubleClickCapture?: MouseEventHandler<T
|
1461
|
-
onDrag?: DragEventHandler<T
|
1462
|
-
onDragCapture?: DragEventHandler<T
|
1463
|
-
onDragEnd?: DragEventHandler<T
|
1464
|
-
onDragEndCapture?: DragEventHandler<T
|
1465
|
-
onDragEnter?: DragEventHandler<T
|
1466
|
-
onDragEnterCapture?: DragEventHandler<T
|
1467
|
-
onDragExit?: DragEventHandler<T
|
1468
|
-
onDragExitCapture?: DragEventHandler<T
|
1469
|
-
onDragLeave?: DragEventHandler<T
|
1470
|
-
onDragLeaveCapture?: DragEventHandler<T
|
1471
|
-
onDragOver?: DragEventHandler<T
|
1472
|
-
onDragOverCapture?: DragEventHandler<T
|
1473
|
-
onDragStart?: DragEventHandler<T
|
1474
|
-
onDragStartCapture?: DragEventHandler<T
|
1475
|
-
onDrop?: DragEventHandler<T
|
1476
|
-
onDropCapture?: DragEventHandler<T
|
1477
|
-
onMouseDown?: MouseEventHandler<T
|
1478
|
-
onMouseDownCapture?: MouseEventHandler<T
|
1479
|
-
onMouseEnter?: MouseEventHandler<T
|
1480
|
-
onMouseLeave?: MouseEventHandler<T
|
1481
|
-
onMouseMove?: MouseEventHandler<T
|
1482
|
-
onMouseMoveCapture?: MouseEventHandler<T
|
1483
|
-
onMouseOut?: MouseEventHandler<T
|
1484
|
-
onMouseOutCapture?: MouseEventHandler<T
|
1485
|
-
onMouseOver?: MouseEventHandler<T
|
1486
|
-
onMouseOverCapture?: MouseEventHandler<T
|
1487
|
-
onMouseUp?: MouseEventHandler<T
|
1488
|
-
onMouseUpCapture?: MouseEventHandler<T
|
1452
|
+
onAuxClick?: MouseEventHandler<T>;
|
1453
|
+
onAuxClickCapture?: MouseEventHandler<T>;
|
1454
|
+
onClick?: MouseEventHandler<T>;
|
1455
|
+
onClickCapture?: MouseEventHandler<T>;
|
1456
|
+
onContextMenu?: MouseEventHandler<T>;
|
1457
|
+
onContextMenuCapture?: MouseEventHandler<T>;
|
1458
|
+
onDoubleClick?: MouseEventHandler<T>;
|
1459
|
+
onDoubleClickCapture?: MouseEventHandler<T>;
|
1460
|
+
onDrag?: DragEventHandler<T>;
|
1461
|
+
onDragCapture?: DragEventHandler<T>;
|
1462
|
+
onDragEnd?: DragEventHandler<T>;
|
1463
|
+
onDragEndCapture?: DragEventHandler<T>;
|
1464
|
+
onDragEnter?: DragEventHandler<T>;
|
1465
|
+
onDragEnterCapture?: DragEventHandler<T>;
|
1466
|
+
onDragExit?: DragEventHandler<T>;
|
1467
|
+
onDragExitCapture?: DragEventHandler<T>;
|
1468
|
+
onDragLeave?: DragEventHandler<T>;
|
1469
|
+
onDragLeaveCapture?: DragEventHandler<T>;
|
1470
|
+
onDragOver?: DragEventHandler<T>;
|
1471
|
+
onDragOverCapture?: DragEventHandler<T>;
|
1472
|
+
onDragStart?: DragEventHandler<T>;
|
1473
|
+
onDragStartCapture?: DragEventHandler<T>;
|
1474
|
+
onDrop?: DragEventHandler<T>;
|
1475
|
+
onDropCapture?: DragEventHandler<T>;
|
1476
|
+
onMouseDown?: MouseEventHandler<T>;
|
1477
|
+
onMouseDownCapture?: MouseEventHandler<T>;
|
1478
|
+
onMouseEnter?: MouseEventHandler<T>;
|
1479
|
+
onMouseLeave?: MouseEventHandler<T>;
|
1480
|
+
onMouseMove?: MouseEventHandler<T>;
|
1481
|
+
onMouseMoveCapture?: MouseEventHandler<T>;
|
1482
|
+
onMouseOut?: MouseEventHandler<T>;
|
1483
|
+
onMouseOutCapture?: MouseEventHandler<T>;
|
1484
|
+
onMouseOver?: MouseEventHandler<T>;
|
1485
|
+
onMouseOverCapture?: MouseEventHandler<T>;
|
1486
|
+
onMouseUp?: MouseEventHandler<T>;
|
1487
|
+
onMouseUpCapture?: MouseEventHandler<T>;
|
1489
1488
|
|
1490
1489
|
// Selection Events
|
1491
|
-
onSelect?: ReactEventHandler<T
|
1492
|
-
onSelectCapture?: ReactEventHandler<T
|
1490
|
+
onSelect?: ReactEventHandler<T>;
|
1491
|
+
onSelectCapture?: ReactEventHandler<T>;
|
1493
1492
|
|
1494
1493
|
// Touch Events
|
1495
|
-
onTouchCancel?: TouchEventHandler<T
|
1496
|
-
onTouchCancelCapture?: TouchEventHandler<T
|
1497
|
-
onTouchEnd?: TouchEventHandler<T
|
1498
|
-
onTouchEndCapture?: TouchEventHandler<T
|
1499
|
-
onTouchMove?: TouchEventHandler<T
|
1500
|
-
onTouchMoveCapture?: TouchEventHandler<T
|
1501
|
-
onTouchStart?: TouchEventHandler<T
|
1502
|
-
onTouchStartCapture?: TouchEventHandler<T
|
1494
|
+
onTouchCancel?: TouchEventHandler<T>;
|
1495
|
+
onTouchCancelCapture?: TouchEventHandler<T>;
|
1496
|
+
onTouchEnd?: TouchEventHandler<T>;
|
1497
|
+
onTouchEndCapture?: TouchEventHandler<T>;
|
1498
|
+
onTouchMove?: TouchEventHandler<T>;
|
1499
|
+
onTouchMoveCapture?: TouchEventHandler<T>;
|
1500
|
+
onTouchStart?: TouchEventHandler<T>;
|
1501
|
+
onTouchStartCapture?: TouchEventHandler<T>;
|
1503
1502
|
|
1504
1503
|
// Pointer Events
|
1505
|
-
onPointerDown?: PointerEventHandler<T
|
1506
|
-
onPointerDownCapture?: PointerEventHandler<T
|
1507
|
-
onPointerMove?: PointerEventHandler<T
|
1508
|
-
onPointerMoveCapture?: PointerEventHandler<T
|
1509
|
-
onPointerUp?: PointerEventHandler<T
|
1510
|
-
onPointerUpCapture?: PointerEventHandler<T
|
1511
|
-
onPointerCancel?: PointerEventHandler<T
|
1512
|
-
onPointerCancelCapture?: PointerEventHandler<T
|
1513
|
-
onPointerEnter?: PointerEventHandler<T
|
1514
|
-
onPointerEnterCapture?: PointerEventHandler<T
|
1515
|
-
onPointerLeave?: PointerEventHandler<T
|
1516
|
-
onPointerLeaveCapture?: PointerEventHandler<T
|
1517
|
-
onPointerOver?: PointerEventHandler<T
|
1518
|
-
onPointerOverCapture?: PointerEventHandler<T
|
1519
|
-
onPointerOut?: PointerEventHandler<T
|
1520
|
-
onPointerOutCapture?: PointerEventHandler<T
|
1521
|
-
onGotPointerCapture?: PointerEventHandler<T
|
1522
|
-
onGotPointerCaptureCapture?: PointerEventHandler<T
|
1523
|
-
onLostPointerCapture?: PointerEventHandler<T
|
1524
|
-
onLostPointerCaptureCapture?: PointerEventHandler<T
|
1504
|
+
onPointerDown?: PointerEventHandler<T>;
|
1505
|
+
onPointerDownCapture?: PointerEventHandler<T>;
|
1506
|
+
onPointerMove?: PointerEventHandler<T>;
|
1507
|
+
onPointerMoveCapture?: PointerEventHandler<T>;
|
1508
|
+
onPointerUp?: PointerEventHandler<T>;
|
1509
|
+
onPointerUpCapture?: PointerEventHandler<T>;
|
1510
|
+
onPointerCancel?: PointerEventHandler<T>;
|
1511
|
+
onPointerCancelCapture?: PointerEventHandler<T>;
|
1512
|
+
onPointerEnter?: PointerEventHandler<T>;
|
1513
|
+
onPointerEnterCapture?: PointerEventHandler<T>;
|
1514
|
+
onPointerLeave?: PointerEventHandler<T>;
|
1515
|
+
onPointerLeaveCapture?: PointerEventHandler<T>;
|
1516
|
+
onPointerOver?: PointerEventHandler<T>;
|
1517
|
+
onPointerOverCapture?: PointerEventHandler<T>;
|
1518
|
+
onPointerOut?: PointerEventHandler<T>;
|
1519
|
+
onPointerOutCapture?: PointerEventHandler<T>;
|
1520
|
+
onGotPointerCapture?: PointerEventHandler<T>;
|
1521
|
+
onGotPointerCaptureCapture?: PointerEventHandler<T>;
|
1522
|
+
onLostPointerCapture?: PointerEventHandler<T>;
|
1523
|
+
onLostPointerCaptureCapture?: PointerEventHandler<T>;
|
1525
1524
|
|
1526
1525
|
// UI Events
|
1527
|
-
onScroll?: UIEventHandler<T
|
1528
|
-
onScrollCapture?: UIEventHandler<T
|
1526
|
+
onScroll?: UIEventHandler<T>;
|
1527
|
+
onScrollCapture?: UIEventHandler<T>;
|
1529
1528
|
|
1530
1529
|
// Wheel Events
|
1531
|
-
onWheel?: WheelEventHandler<T
|
1532
|
-
onWheelCapture?: WheelEventHandler<T
|
1530
|
+
onWheel?: WheelEventHandler<T>;
|
1531
|
+
onWheelCapture?: WheelEventHandler<T>;
|
1533
1532
|
|
1534
1533
|
// Animation Events
|
1535
|
-
onAnimationStart?: AnimationEventHandler<T
|
1536
|
-
onAnimationStartCapture?: AnimationEventHandler<T
|
1537
|
-
onAnimationEnd?: AnimationEventHandler<T
|
1538
|
-
onAnimationEndCapture?: AnimationEventHandler<T
|
1539
|
-
onAnimationIteration?: AnimationEventHandler<T
|
1540
|
-
onAnimationIterationCapture?: AnimationEventHandler<T
|
1534
|
+
onAnimationStart?: AnimationEventHandler<T>;
|
1535
|
+
onAnimationStartCapture?: AnimationEventHandler<T>;
|
1536
|
+
onAnimationEnd?: AnimationEventHandler<T>;
|
1537
|
+
onAnimationEndCapture?: AnimationEventHandler<T>;
|
1538
|
+
onAnimationIteration?: AnimationEventHandler<T>;
|
1539
|
+
onAnimationIterationCapture?: AnimationEventHandler<T>;
|
1541
1540
|
|
1542
1541
|
// Transition Events
|
1543
|
-
onTransitionEnd?: TransitionEventHandler<T
|
1544
|
-
onTransitionEndCapture?: TransitionEventHandler<T
|
1542
|
+
onTransitionEnd?: TransitionEventHandler<T>;
|
1543
|
+
onTransitionEndCapture?: TransitionEventHandler<T>;
|
1545
1544
|
}
|
1546
1545
|
|
1547
1546
|
export interface CSSProperties extends CSS.Properties<string | number> {
|
@@ -1558,440 +1557,367 @@ declare namespace React {
|
|
1558
1557
|
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
1559
1558
|
interface AriaAttributes {
|
1560
1559
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
1561
|
-
'aria-activedescendant'?: string
|
1560
|
+
'aria-activedescendant'?: string;
|
1562
1561
|
/** 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. */
|
1563
|
-
'aria-atomic'?: boolean | 'false' | 'true'
|
1562
|
+
'aria-atomic'?: boolean | 'false' | 'true';
|
1564
1563
|
/**
|
1565
1564
|
* 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
|
1566
1565
|
* presented if they are made.
|
1567
1566
|
*/
|
1568
|
-
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'
|
1567
|
+
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
|
1569
1568
|
/** 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. */
|
1570
|
-
'aria-busy'?: boolean | 'false' | 'true'
|
1569
|
+
'aria-busy'?: boolean | 'false' | 'true';
|
1571
1570
|
/**
|
1572
1571
|
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
1573
1572
|
* @see aria-pressed @see aria-selected.
|
1574
1573
|
*/
|
1575
|
-
'aria-checked'?: boolean | 'false' | 'mixed' | 'true'
|
1574
|
+
'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
|
1576
1575
|
/**
|
1577
1576
|
* Defines the total number of columns in a table, grid, or treegrid.
|
1578
1577
|
* @see aria-colindex.
|
1579
1578
|
*/
|
1580
|
-
'aria-colcount'?: number
|
1579
|
+
'aria-colcount'?: number;
|
1581
1580
|
/**
|
1582
1581
|
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
1583
1582
|
* @see aria-colcount @see aria-colspan.
|
1584
1583
|
*/
|
1585
|
-
'aria-colindex'?: number
|
1584
|
+
'aria-colindex'?: number;
|
1586
1585
|
/**
|
1587
1586
|
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
1588
1587
|
* @see aria-colindex @see aria-rowspan.
|
1589
1588
|
*/
|
1590
|
-
'aria-colspan'?: number
|
1589
|
+
'aria-colspan'?: number;
|
1591
1590
|
/**
|
1592
1591
|
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
1593
1592
|
* @see aria-owns.
|
1594
1593
|
*/
|
1595
|
-
'aria-controls'?: string
|
1594
|
+
'aria-controls'?: string;
|
1596
1595
|
/** Indicates the element that represents the current item within a container or set of related elements. */
|
1597
|
-
'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time'
|
1596
|
+
'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
|
1598
1597
|
/**
|
1599
1598
|
* Identifies the element (or elements) that describes the object.
|
1600
1599
|
* @see aria-labelledby
|
1601
1600
|
*/
|
1602
|
-
'aria-describedby'?: string
|
1601
|
+
'aria-describedby'?: string;
|
1603
1602
|
/**
|
1604
1603
|
* Identifies the element that provides a detailed, extended description for the object.
|
1605
1604
|
* @see aria-describedby.
|
1606
1605
|
*/
|
1607
|
-
'aria-details'?: string
|
1606
|
+
'aria-details'?: string;
|
1608
1607
|
/**
|
1609
1608
|
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
1610
1609
|
* @see aria-hidden @see aria-readonly.
|
1611
1610
|
*/
|
1612
|
-
'aria-disabled'?: boolean | 'false' | 'true'
|
1611
|
+
'aria-disabled'?: boolean | 'false' | 'true';
|
1613
1612
|
/**
|
1614
1613
|
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
1615
1614
|
* @deprecated in ARIA 1.1
|
1616
1615
|
*/
|
1617
|
-
'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup'
|
1616
|
+
'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
|
1618
1617
|
/**
|
1619
1618
|
* Identifies the element that provides an error message for the object.
|
1620
1619
|
* @see aria-invalid @see aria-describedby.
|
1621
1620
|
*/
|
1622
|
-
'aria-errormessage'?: string
|
1621
|
+
'aria-errormessage'?: string;
|
1623
1622
|
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
1624
|
-
'aria-expanded'?: boolean | 'false' | 'true'
|
1623
|
+
'aria-expanded'?: boolean | 'false' | 'true';
|
1625
1624
|
/**
|
1626
1625
|
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
1627
1626
|
* allows assistive technology to override the general default of reading in document source order.
|
1628
1627
|
*/
|
1629
|
-
'aria-flowto'?: string
|
1628
|
+
'aria-flowto'?: string;
|
1630
1629
|
/**
|
1631
1630
|
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
1632
1631
|
* @deprecated in ARIA 1.1
|
1633
1632
|
*/
|
1634
|
-
'aria-grabbed'?: boolean | 'false' | 'true'
|
1633
|
+
'aria-grabbed'?: boolean | 'false' | 'true';
|
1635
1634
|
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
1636
|
-
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'
|
1635
|
+
'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
1637
1636
|
/**
|
1638
1637
|
* Indicates whether the element is exposed to an accessibility API.
|
1639
1638
|
* @see aria-disabled.
|
1640
1639
|
*/
|
1641
|
-
'aria-hidden'?: boolean | 'false' | 'true'
|
1640
|
+
'aria-hidden'?: boolean | 'false' | 'true';
|
1642
1641
|
/**
|
1643
1642
|
* Indicates the entered value does not conform to the format expected by the application.
|
1644
1643
|
* @see aria-errormessage.
|
1645
1644
|
*/
|
1646
|
-
'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling'
|
1645
|
+
'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling';
|
1647
1646
|
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
|
1648
|
-
'aria-keyshortcuts'?: string
|
1647
|
+
'aria-keyshortcuts'?: string;
|
1649
1648
|
/**
|
1650
1649
|
* Defines a string value that labels the current element.
|
1651
1650
|
* @see aria-labelledby.
|
1652
1651
|
*/
|
1653
|
-
'aria-label'?: string
|
1652
|
+
'aria-label'?: string;
|
1654
1653
|
/**
|
1655
1654
|
* Identifies the element (or elements) that labels the current element.
|
1656
1655
|
* @see aria-describedby.
|
1657
1656
|
*/
|
1658
|
-
'aria-labelledby'?: string
|
1657
|
+
'aria-labelledby'?: string;
|
1659
1658
|
/** Defines the hierarchical level of an element within a structure. */
|
1660
|
-
'aria-level'?: number
|
1659
|
+
'aria-level'?: number;
|
1661
1660
|
/** 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. */
|
1662
|
-
'aria-live'?: 'off' | 'assertive' | 'polite'
|
1661
|
+
'aria-live'?: 'off' | 'assertive' | 'polite';
|
1663
1662
|
/** Indicates whether an element is modal when displayed. */
|
1664
|
-
'aria-modal'?: boolean | 'false' | 'true'
|
1663
|
+
'aria-modal'?: boolean | 'false' | 'true';
|
1665
1664
|
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
|
1666
|
-
'aria-multiline'?: boolean | 'false' | 'true'
|
1665
|
+
'aria-multiline'?: boolean | 'false' | 'true';
|
1667
1666
|
/** Indicates that the user may select more than one item from the current selectable descendants. */
|
1668
|
-
'aria-multiselectable'?: boolean | 'false' | 'true'
|
1667
|
+
'aria-multiselectable'?: boolean | 'false' | 'true';
|
1669
1668
|
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
1670
|
-
'aria-orientation'?: 'horizontal' | 'vertical'
|
1669
|
+
'aria-orientation'?: 'horizontal' | 'vertical';
|
1671
1670
|
/**
|
1672
1671
|
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
1673
1672
|
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
1674
1673
|
* @see aria-controls.
|
1675
1674
|
*/
|
1676
|
-
'aria-owns'?: string
|
1675
|
+
'aria-owns'?: string;
|
1677
1676
|
/**
|
1678
1677
|
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
1679
1678
|
* A hint could be a sample value or a brief description of the expected format.
|
1680
1679
|
*/
|
1681
|
-
'aria-placeholder'?: string
|
1680
|
+
'aria-placeholder'?: string;
|
1682
1681
|
/**
|
1683
1682
|
* 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.
|
1684
1683
|
* @see aria-setsize.
|
1685
1684
|
*/
|
1686
|
-
'aria-posinset'?: number
|
1685
|
+
'aria-posinset'?: number;
|
1687
1686
|
/**
|
1688
1687
|
* Indicates the current "pressed" state of toggle buttons.
|
1689
1688
|
* @see aria-checked @see aria-selected.
|
1690
1689
|
*/
|
1691
|
-
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true'
|
1690
|
+
'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
|
1692
1691
|
/**
|
1693
1692
|
* Indicates that the element is not editable, but is otherwise operable.
|
1694
1693
|
* @see aria-disabled.
|
1695
1694
|
*/
|
1696
|
-
'aria-readonly'?: boolean | 'false' | 'true'
|
1695
|
+
'aria-readonly'?: boolean | 'false' | 'true';
|
1697
1696
|
/**
|
1698
1697
|
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
1699
1698
|
* @see aria-atomic.
|
1700
1699
|
*/
|
1701
|
-
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals'
|
1700
|
+
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
|
1702
1701
|
/** Indicates that user input is required on the element before a form may be submitted. */
|
1703
|
-
'aria-required'?: boolean | 'false' | 'true'
|
1702
|
+
'aria-required'?: boolean | 'false' | 'true';
|
1704
1703
|
/** Defines a human-readable, author-localized description for the role of an element. */
|
1705
|
-
'aria-roledescription'?: string
|
1704
|
+
'aria-roledescription'?: string;
|
1706
1705
|
/**
|
1707
1706
|
* Defines the total number of rows in a table, grid, or treegrid.
|
1708
1707
|
* @see aria-rowindex.
|
1709
1708
|
*/
|
1710
|
-
'aria-rowcount'?: number
|
1709
|
+
'aria-rowcount'?: number;
|
1711
1710
|
/**
|
1712
1711
|
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
1713
1712
|
* @see aria-rowcount @see aria-rowspan.
|
1714
1713
|
*/
|
1715
|
-
'aria-rowindex'?: number
|
1714
|
+
'aria-rowindex'?: number;
|
1716
1715
|
/**
|
1717
1716
|
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
1718
1717
|
* @see aria-rowindex @see aria-colspan.
|
1719
1718
|
*/
|
1720
|
-
'aria-rowspan'?: number
|
1719
|
+
'aria-rowspan'?: number;
|
1721
1720
|
/**
|
1722
1721
|
* Indicates the current "selected" state of various widgets.
|
1723
1722
|
* @see aria-checked @see aria-pressed.
|
1724
1723
|
*/
|
1725
|
-
'aria-selected'?: boolean | 'false' | 'true'
|
1724
|
+
'aria-selected'?: boolean | 'false' | 'true';
|
1726
1725
|
/**
|
1727
1726
|
* 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.
|
1728
1727
|
* @see aria-posinset.
|
1729
1728
|
*/
|
1730
|
-
'aria-setsize'?: number
|
1729
|
+
'aria-setsize'?: number;
|
1731
1730
|
/** Indicates if items in a table or grid are sorted in ascending or descending order. */
|
1732
|
-
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'
|
1731
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
|
1733
1732
|
/** Defines the maximum allowed value for a range widget. */
|
1734
|
-
'aria-valuemax'?: number
|
1733
|
+
'aria-valuemax'?: number;
|
1735
1734
|
/** Defines the minimum allowed value for a range widget. */
|
1736
|
-
'aria-valuemin'?: number
|
1735
|
+
'aria-valuemin'?: number;
|
1737
1736
|
/**
|
1738
1737
|
* Defines the current value for a range widget.
|
1739
1738
|
* @see aria-valuetext.
|
1740
1739
|
*/
|
1741
|
-
'aria-valuenow'?: number
|
1740
|
+
'aria-valuenow'?: number;
|
1742
1741
|
/** Defines the human readable text alternative of aria-valuenow for a range widget. */
|
1743
|
-
'aria-valuetext'?: string
|
1744
|
-
}
|
1745
|
-
|
1746
|
-
// All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
|
1747
|
-
type AriaRole =
|
1748
|
-
| 'alert'
|
1749
|
-
| 'alertdialog'
|
1750
|
-
| 'application'
|
1751
|
-
| 'article'
|
1752
|
-
| 'banner'
|
1753
|
-
| 'button'
|
1754
|
-
| 'cell'
|
1755
|
-
| 'checkbox'
|
1756
|
-
| 'columnheader'
|
1757
|
-
| 'combobox'
|
1758
|
-
| 'complementary'
|
1759
|
-
| 'contentinfo'
|
1760
|
-
| 'definition'
|
1761
|
-
| 'dialog'
|
1762
|
-
| 'directory'
|
1763
|
-
| 'document'
|
1764
|
-
| 'feed'
|
1765
|
-
| 'figure'
|
1766
|
-
| 'form'
|
1767
|
-
| 'grid'
|
1768
|
-
| 'gridcell'
|
1769
|
-
| 'group'
|
1770
|
-
| 'heading'
|
1771
|
-
| 'img'
|
1772
|
-
| 'link'
|
1773
|
-
| 'list'
|
1774
|
-
| 'listbox'
|
1775
|
-
| 'listitem'
|
1776
|
-
| 'log'
|
1777
|
-
| 'main'
|
1778
|
-
| 'marquee'
|
1779
|
-
| 'math'
|
1780
|
-
| 'menu'
|
1781
|
-
| 'menubar'
|
1782
|
-
| 'menuitem'
|
1783
|
-
| 'menuitemcheckbox'
|
1784
|
-
| 'menuitemradio'
|
1785
|
-
| 'navigation'
|
1786
|
-
| 'none'
|
1787
|
-
| 'note'
|
1788
|
-
| 'option'
|
1789
|
-
| 'presentation'
|
1790
|
-
| 'progressbar'
|
1791
|
-
| 'radio'
|
1792
|
-
| 'radiogroup'
|
1793
|
-
| 'region'
|
1794
|
-
| 'row'
|
1795
|
-
| 'rowgroup'
|
1796
|
-
| 'rowheader'
|
1797
|
-
| 'scrollbar'
|
1798
|
-
| 'search'
|
1799
|
-
| 'searchbox'
|
1800
|
-
| 'separator'
|
1801
|
-
| 'slider'
|
1802
|
-
| 'spinbutton'
|
1803
|
-
| 'status'
|
1804
|
-
| 'switch'
|
1805
|
-
| 'tab'
|
1806
|
-
| 'table'
|
1807
|
-
| 'tablist'
|
1808
|
-
| 'tabpanel'
|
1809
|
-
| 'term'
|
1810
|
-
| 'textbox'
|
1811
|
-
| 'timer'
|
1812
|
-
| 'toolbar'
|
1813
|
-
| 'tooltip'
|
1814
|
-
| 'tree'
|
1815
|
-
| 'treegrid'
|
1816
|
-
| 'treeitem'
|
1817
|
-
| (string & {});
|
1742
|
+
'aria-valuetext'?: string;
|
1743
|
+
}
|
1818
1744
|
|
1819
1745
|
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
1820
1746
|
// React-specific Attributes
|
1821
|
-
defaultChecked?: boolean
|
1822
|
-
defaultValue?: string | number | ReadonlyArray<string
|
1823
|
-
suppressContentEditableWarning?: boolean
|
1824
|
-
suppressHydrationWarning?: boolean
|
1747
|
+
defaultChecked?: boolean;
|
1748
|
+
defaultValue?: string | number | ReadonlyArray<string>;
|
1749
|
+
suppressContentEditableWarning?: boolean;
|
1750
|
+
suppressHydrationWarning?: boolean;
|
1825
1751
|
|
1826
1752
|
// Standard HTML Attributes
|
1827
|
-
accessKey?: string
|
1828
|
-
className?: string
|
1829
|
-
contentEditable?: Booleanish | "inherit"
|
1830
|
-
contextMenu?: string
|
1831
|
-
dir?: string
|
1832
|
-
draggable?: Booleanish
|
1833
|
-
hidden?: boolean
|
1834
|
-
id?: string
|
1835
|
-
lang?: string
|
1836
|
-
placeholder?: string
|
1837
|
-
slot?: string
|
1838
|
-
spellCheck?: Booleanish
|
1839
|
-
style?: CSSProperties
|
1840
|
-
tabIndex?: number
|
1841
|
-
title?: string
|
1842
|
-
translate?: 'yes' | 'no'
|
1753
|
+
accessKey?: string;
|
1754
|
+
className?: string;
|
1755
|
+
contentEditable?: Booleanish | "inherit";
|
1756
|
+
contextMenu?: string;
|
1757
|
+
dir?: string;
|
1758
|
+
draggable?: Booleanish;
|
1759
|
+
hidden?: boolean;
|
1760
|
+
id?: string;
|
1761
|
+
lang?: string;
|
1762
|
+
placeholder?: string;
|
1763
|
+
slot?: string;
|
1764
|
+
spellCheck?: Booleanish;
|
1765
|
+
style?: CSSProperties;
|
1766
|
+
tabIndex?: number;
|
1767
|
+
title?: string;
|
1768
|
+
translate?: 'yes' | 'no';
|
1843
1769
|
|
1844
1770
|
// Unknown
|
1845
|
-
radioGroup?: string
|
1771
|
+
radioGroup?: string; // <command>, <menuitem>
|
1846
1772
|
|
1847
1773
|
// WAI-ARIA
|
1848
|
-
role?:
|
1774
|
+
role?: string;
|
1849
1775
|
|
1850
1776
|
// RDFa Attributes
|
1851
|
-
about?: string
|
1852
|
-
datatype?: string
|
1777
|
+
about?: string;
|
1778
|
+
datatype?: string;
|
1853
1779
|
inlist?: any;
|
1854
|
-
prefix?: string
|
1855
|
-
property?: string
|
1856
|
-
resource?: string
|
1857
|
-
typeof?: string
|
1858
|
-
vocab?: string
|
1780
|
+
prefix?: string;
|
1781
|
+
property?: string;
|
1782
|
+
resource?: string;
|
1783
|
+
typeof?: string;
|
1784
|
+
vocab?: string;
|
1859
1785
|
|
1860
1786
|
// Non-standard Attributes
|
1861
|
-
autoCapitalize?: string
|
1862
|
-
autoCorrect?: string
|
1863
|
-
autoSave?: string
|
1864
|
-
color?: string
|
1865
|
-
itemProp?: string
|
1866
|
-
itemScope?: boolean
|
1867
|
-
itemType?: string
|
1868
|
-
itemID?: string
|
1869
|
-
itemRef?: string
|
1870
|
-
results?: number
|
1871
|
-
security?: string
|
1872
|
-
unselectable?: 'on' | 'off'
|
1787
|
+
autoCapitalize?: string;
|
1788
|
+
autoCorrect?: string;
|
1789
|
+
autoSave?: string;
|
1790
|
+
color?: string;
|
1791
|
+
itemProp?: string;
|
1792
|
+
itemScope?: boolean;
|
1793
|
+
itemType?: string;
|
1794
|
+
itemID?: string;
|
1795
|
+
itemRef?: string;
|
1796
|
+
results?: number;
|
1797
|
+
security?: string;
|
1798
|
+
unselectable?: 'on' | 'off';
|
1873
1799
|
|
1874
1800
|
// Living Standard
|
1875
1801
|
/**
|
1876
1802
|
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
1877
1803
|
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
|
1878
1804
|
*/
|
1879
|
-
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'
|
1805
|
+
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
1880
1806
|
/**
|
1881
1807
|
* Specify that a standard HTML element should behave like a defined custom built-in element
|
1882
1808
|
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
|
1883
1809
|
*/
|
1884
|
-
is?: string
|
1810
|
+
is?: string;
|
1885
1811
|
}
|
1886
1812
|
|
1887
1813
|
interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
|
1888
1814
|
// Standard HTML Attributes
|
1889
|
-
accept?: string
|
1890
|
-
acceptCharset?: string
|
1891
|
-
action?: string
|
1892
|
-
allowFullScreen?: boolean
|
1893
|
-
allowTransparency?: boolean
|
1894
|
-
alt?: string
|
1895
|
-
as?: string
|
1896
|
-
async?: boolean
|
1897
|
-
autoComplete?: string
|
1898
|
-
autoFocus?: boolean
|
1899
|
-
autoPlay?: boolean
|
1900
|
-
capture?: boolean | string
|
1901
|
-
cellPadding?: number | string
|
1902
|
-
cellSpacing?: number | string
|
1903
|
-
charSet?: string
|
1904
|
-
challenge?: string
|
1905
|
-
checked?: boolean
|
1906
|
-
cite?: string
|
1907
|
-
classID?: string
|
1908
|
-
cols?: number
|
1909
|
-
colSpan?: number
|
1910
|
-
content?: string
|
1911
|
-
controls?: boolean
|
1912
|
-
coords?: string
|
1913
|
-
crossOrigin?: string
|
1914
|
-
data?: string
|
1915
|
-
dateTime?: string
|
1916
|
-
default?: boolean
|
1917
|
-
defer?: boolean
|
1918
|
-
disabled?: boolean
|
1815
|
+
accept?: string;
|
1816
|
+
acceptCharset?: string;
|
1817
|
+
action?: string;
|
1818
|
+
allowFullScreen?: boolean;
|
1819
|
+
allowTransparency?: boolean;
|
1820
|
+
alt?: string;
|
1821
|
+
as?: string;
|
1822
|
+
async?: boolean;
|
1823
|
+
autoComplete?: string;
|
1824
|
+
autoFocus?: boolean;
|
1825
|
+
autoPlay?: boolean;
|
1826
|
+
capture?: boolean | string;
|
1827
|
+
cellPadding?: number | string;
|
1828
|
+
cellSpacing?: number | string;
|
1829
|
+
charSet?: string;
|
1830
|
+
challenge?: string;
|
1831
|
+
checked?: boolean;
|
1832
|
+
cite?: string;
|
1833
|
+
classID?: string;
|
1834
|
+
cols?: number;
|
1835
|
+
colSpan?: number;
|
1836
|
+
content?: string;
|
1837
|
+
controls?: boolean;
|
1838
|
+
coords?: string;
|
1839
|
+
crossOrigin?: string;
|
1840
|
+
data?: string;
|
1841
|
+
dateTime?: string;
|
1842
|
+
default?: boolean;
|
1843
|
+
defer?: boolean;
|
1844
|
+
disabled?: boolean;
|
1919
1845
|
download?: any;
|
1920
|
-
encType?: string
|
1921
|
-
form?: string
|
1922
|
-
formAction?: string
|
1923
|
-
formEncType?: string
|
1924
|
-
formMethod?: string
|
1925
|
-
formNoValidate?: boolean
|
1926
|
-
formTarget?: string
|
1927
|
-
frameBorder?: number | string
|
1928
|
-
headers?: string
|
1929
|
-
height?: number | string
|
1930
|
-
high?: number
|
1931
|
-
href?: string
|
1932
|
-
hrefLang?: string
|
1933
|
-
htmlFor?: string
|
1934
|
-
httpEquiv?: string
|
1935
|
-
integrity?: string
|
1936
|
-
keyParams?: string
|
1937
|
-
keyType?: string
|
1938
|
-
kind?: string
|
1939
|
-
label?: string
|
1940
|
-
list?: string
|
1941
|
-
loop?: boolean
|
1942
|
-
low?: number
|
1943
|
-
manifest?: string
|
1944
|
-
marginHeight?: number
|
1945
|
-
marginWidth?: number
|
1946
|
-
max?: number | string
|
1947
|
-
maxLength?: number
|
1948
|
-
media?: string
|
1949
|
-
mediaGroup?: string
|
1950
|
-
method?: string
|
1951
|
-
min?: number | string
|
1952
|
-
minLength?: number
|
1953
|
-
multiple?: boolean
|
1954
|
-
muted?: boolean
|
1955
|
-
name?: string
|
1956
|
-
nonce?: string
|
1957
|
-
noValidate?: boolean
|
1958
|
-
open?: boolean
|
1959
|
-
optimum?: number
|
1960
|
-
pattern?: string
|
1961
|
-
placeholder?: string
|
1962
|
-
playsInline?: boolean
|
1963
|
-
poster?: string
|
1964
|
-
preload?: string
|
1965
|
-
readOnly?: boolean
|
1966
|
-
rel?: string
|
1967
|
-
required?: boolean
|
1968
|
-
reversed?: boolean
|
1969
|
-
rows?: number
|
1970
|
-
rowSpan?: number
|
1971
|
-
sandbox?: string
|
1972
|
-
scope?: string
|
1973
|
-
scoped?: boolean
|
1974
|
-
scrolling?: string
|
1975
|
-
seamless?: boolean
|
1976
|
-
selected?: boolean
|
1977
|
-
shape?: string
|
1978
|
-
size?: number
|
1979
|
-
sizes?: string
|
1980
|
-
span?: number
|
1981
|
-
src?: string
|
1982
|
-
srcDoc?: string
|
1983
|
-
srcLang?: string
|
1984
|
-
srcSet?: string
|
1985
|
-
start?: number
|
1986
|
-
step?: number | string
|
1987
|
-
summary?: string
|
1988
|
-
target?: string
|
1989
|
-
type?: string
|
1990
|
-
useMap?: string
|
1991
|
-
value?: string | ReadonlyArray<string> | number
|
1992
|
-
width?: number | string
|
1993
|
-
wmode?: string
|
1994
|
-
wrap?: string
|
1846
|
+
encType?: string;
|
1847
|
+
form?: string;
|
1848
|
+
formAction?: string;
|
1849
|
+
formEncType?: string;
|
1850
|
+
formMethod?: string;
|
1851
|
+
formNoValidate?: boolean;
|
1852
|
+
formTarget?: string;
|
1853
|
+
frameBorder?: number | string;
|
1854
|
+
headers?: string;
|
1855
|
+
height?: number | string;
|
1856
|
+
high?: number;
|
1857
|
+
href?: string;
|
1858
|
+
hrefLang?: string;
|
1859
|
+
htmlFor?: string;
|
1860
|
+
httpEquiv?: string;
|
1861
|
+
integrity?: string;
|
1862
|
+
keyParams?: string;
|
1863
|
+
keyType?: string;
|
1864
|
+
kind?: string;
|
1865
|
+
label?: string;
|
1866
|
+
list?: string;
|
1867
|
+
loop?: boolean;
|
1868
|
+
low?: number;
|
1869
|
+
manifest?: string;
|
1870
|
+
marginHeight?: number;
|
1871
|
+
marginWidth?: number;
|
1872
|
+
max?: number | string;
|
1873
|
+
maxLength?: number;
|
1874
|
+
media?: string;
|
1875
|
+
mediaGroup?: string;
|
1876
|
+
method?: string;
|
1877
|
+
min?: number | string;
|
1878
|
+
minLength?: number;
|
1879
|
+
multiple?: boolean;
|
1880
|
+
muted?: boolean;
|
1881
|
+
name?: string;
|
1882
|
+
nonce?: string;
|
1883
|
+
noValidate?: boolean;
|
1884
|
+
open?: boolean;
|
1885
|
+
optimum?: number;
|
1886
|
+
pattern?: string;
|
1887
|
+
placeholder?: string;
|
1888
|
+
playsInline?: boolean;
|
1889
|
+
poster?: string;
|
1890
|
+
preload?: string;
|
1891
|
+
readOnly?: boolean;
|
1892
|
+
rel?: string;
|
1893
|
+
required?: boolean;
|
1894
|
+
reversed?: boolean;
|
1895
|
+
rows?: number;
|
1896
|
+
rowSpan?: number;
|
1897
|
+
sandbox?: string;
|
1898
|
+
scope?: string;
|
1899
|
+
scoped?: boolean;
|
1900
|
+
scrolling?: string;
|
1901
|
+
seamless?: boolean;
|
1902
|
+
selected?: boolean;
|
1903
|
+
shape?: string;
|
1904
|
+
size?: number;
|
1905
|
+
sizes?: string;
|
1906
|
+
span?: number;
|
1907
|
+
src?: string;
|
1908
|
+
srcDoc?: string;
|
1909
|
+
srcLang?: string;
|
1910
|
+
srcSet?: string;
|
1911
|
+
start?: number;
|
1912
|
+
step?: number | string;
|
1913
|
+
summary?: string;
|
1914
|
+
target?: string;
|
1915
|
+
type?: string;
|
1916
|
+
useMap?: string;
|
1917
|
+
value?: string | ReadonlyArray<string> | number;
|
1918
|
+
width?: number | string;
|
1919
|
+
wmode?: string;
|
1920
|
+
wrap?: string;
|
1995
1921
|
}
|
1996
1922
|
|
1997
1923
|
type HTMLAttributeReferrerPolicy =
|
@@ -2005,465 +1931,430 @@ declare namespace React {
|
|
2005
1931
|
| 'strict-origin-when-cross-origin'
|
2006
1932
|
| 'unsafe-url';
|
2007
1933
|
|
2008
|
-
type HTMLAttributeAnchorTarget =
|
2009
|
-
| '_self'
|
2010
|
-
| '_blank'
|
2011
|
-
| '_parent'
|
2012
|
-
| '_top'
|
2013
|
-
| (string & {});
|
2014
|
-
|
2015
1934
|
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
2016
1935
|
download?: any;
|
2017
|
-
href?: string
|
2018
|
-
hrefLang?: string
|
2019
|
-
media?: string
|
2020
|
-
ping?: string
|
2021
|
-
rel?: string
|
2022
|
-
target?:
|
2023
|
-
type?: string
|
2024
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy
|
1936
|
+
href?: string;
|
1937
|
+
hrefLang?: string;
|
1938
|
+
media?: string;
|
1939
|
+
ping?: string;
|
1940
|
+
rel?: string;
|
1941
|
+
target?: string;
|
1942
|
+
type?: string;
|
1943
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
2025
1944
|
}
|
2026
1945
|
|
2027
|
-
// tslint:disable-next-line:no-empty-interface
|
2028
1946
|
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
2029
1947
|
|
2030
1948
|
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
2031
|
-
alt?: string
|
2032
|
-
coords?: string
|
1949
|
+
alt?: string;
|
1950
|
+
coords?: string;
|
2033
1951
|
download?: any;
|
2034
|
-
href?: string
|
2035
|
-
hrefLang?: string
|
2036
|
-
media?: string
|
2037
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy
|
2038
|
-
rel?: string
|
2039
|
-
shape?: string
|
2040
|
-
target?: string
|
1952
|
+
href?: string;
|
1953
|
+
hrefLang?: string;
|
1954
|
+
media?: string;
|
1955
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
1956
|
+
rel?: string;
|
1957
|
+
shape?: string;
|
1958
|
+
target?: string;
|
2041
1959
|
}
|
2042
1960
|
|
2043
1961
|
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
2044
|
-
href?: string
|
2045
|
-
target?: string
|
1962
|
+
href?: string;
|
1963
|
+
target?: string;
|
2046
1964
|
}
|
2047
1965
|
|
2048
1966
|
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
2049
|
-
cite?: string
|
1967
|
+
cite?: string;
|
2050
1968
|
}
|
2051
1969
|
|
2052
1970
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
2053
|
-
autoFocus?: boolean
|
2054
|
-
disabled?: boolean
|
2055
|
-
form?: string
|
2056
|
-
formAction?: string
|
2057
|
-
formEncType?: string
|
2058
|
-
formMethod?: string
|
2059
|
-
formNoValidate?: boolean
|
2060
|
-
formTarget?: string
|
2061
|
-
name?: string
|
2062
|
-
type?: 'submit' | 'reset' | 'button'
|
2063
|
-
value?: string | ReadonlyArray<string> | number
|
1971
|
+
autoFocus?: boolean;
|
1972
|
+
disabled?: boolean;
|
1973
|
+
form?: string;
|
1974
|
+
formAction?: string;
|
1975
|
+
formEncType?: string;
|
1976
|
+
formMethod?: string;
|
1977
|
+
formNoValidate?: boolean;
|
1978
|
+
formTarget?: string;
|
1979
|
+
name?: string;
|
1980
|
+
type?: 'submit' | 'reset' | 'button';
|
1981
|
+
value?: string | ReadonlyArray<string> | number;
|
2064
1982
|
}
|
2065
1983
|
|
2066
1984
|
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
2067
|
-
height?: number | string
|
2068
|
-
width?: number | string
|
1985
|
+
height?: number | string;
|
1986
|
+
width?: number | string;
|
2069
1987
|
}
|
2070
1988
|
|
2071
1989
|
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
2072
|
-
span?: number
|
2073
|
-
width?: number | string
|
1990
|
+
span?: number;
|
1991
|
+
width?: number | string;
|
2074
1992
|
}
|
2075
1993
|
|
2076
1994
|
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
2077
|
-
span?: number
|
1995
|
+
span?: number;
|
2078
1996
|
}
|
2079
1997
|
|
2080
1998
|
interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
|
2081
|
-
value?: string | ReadonlyArray<string> | number
|
1999
|
+
value?: string | ReadonlyArray<string> | number;
|
2082
2000
|
}
|
2083
2001
|
|
2084
2002
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
2085
|
-
open?: boolean
|
2086
|
-
onToggle?: ReactEventHandler<T
|
2003
|
+
open?: boolean;
|
2004
|
+
onToggle?: ReactEventHandler<T>;
|
2087
2005
|
}
|
2088
2006
|
|
2089
2007
|
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
2090
|
-
cite?: string
|
2091
|
-
dateTime?: string
|
2008
|
+
cite?: string;
|
2009
|
+
dateTime?: string;
|
2092
2010
|
}
|
2093
2011
|
|
2094
2012
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
2095
|
-
open?: boolean
|
2013
|
+
open?: boolean;
|
2096
2014
|
}
|
2097
2015
|
|
2098
2016
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
2099
|
-
height?: number | string
|
2100
|
-
src?: string
|
2101
|
-
type?: string
|
2102
|
-
width?: number | string
|
2017
|
+
height?: number | string;
|
2018
|
+
src?: string;
|
2019
|
+
type?: string;
|
2020
|
+
width?: number | string;
|
2103
2021
|
}
|
2104
2022
|
|
2105
2023
|
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
2106
|
-
disabled?: boolean
|
2107
|
-
form?: string
|
2108
|
-
name?: string
|
2024
|
+
disabled?: boolean;
|
2025
|
+
form?: string;
|
2026
|
+
name?: string;
|
2109
2027
|
}
|
2110
2028
|
|
2111
2029
|
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
2112
|
-
acceptCharset?: string
|
2113
|
-
action?: string
|
2114
|
-
autoComplete?: string
|
2115
|
-
encType?: string
|
2116
|
-
method?: string
|
2117
|
-
name?: string
|
2118
|
-
noValidate?: boolean
|
2119
|
-
target?: string
|
2030
|
+
acceptCharset?: string;
|
2031
|
+
action?: string;
|
2032
|
+
autoComplete?: string;
|
2033
|
+
encType?: string;
|
2034
|
+
method?: string;
|
2035
|
+
name?: string;
|
2036
|
+
noValidate?: boolean;
|
2037
|
+
target?: string;
|
2120
2038
|
}
|
2121
2039
|
|
2122
2040
|
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
2123
|
-
manifest?: string
|
2041
|
+
manifest?: string;
|
2124
2042
|
}
|
2125
2043
|
|
2126
2044
|
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
2127
|
-
allow?: string
|
2128
|
-
allowFullScreen?: boolean
|
2129
|
-
allowTransparency?: boolean
|
2045
|
+
allow?: string;
|
2046
|
+
allowFullScreen?: boolean;
|
2047
|
+
allowTransparency?: boolean;
|
2130
2048
|
/** @deprecated */
|
2131
|
-
frameBorder?: number | string
|
2132
|
-
height?: number | string
|
2133
|
-
loading?: "eager" | "lazy"
|
2049
|
+
frameBorder?: number | string;
|
2050
|
+
height?: number | string;
|
2051
|
+
loading?: "eager" | "lazy";
|
2134
2052
|
/** @deprecated */
|
2135
|
-
marginHeight?: number
|
2053
|
+
marginHeight?: number;
|
2136
2054
|
/** @deprecated */
|
2137
|
-
marginWidth?: number
|
2138
|
-
name?: string
|
2139
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy
|
2140
|
-
sandbox?: string
|
2055
|
+
marginWidth?: number;
|
2056
|
+
name?: string;
|
2057
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
2058
|
+
sandbox?: string;
|
2141
2059
|
/** @deprecated */
|
2142
|
-
scrolling?: string
|
2143
|
-
seamless?: boolean
|
2144
|
-
src?: string
|
2145
|
-
srcDoc?: string
|
2146
|
-
width?: number | string
|
2060
|
+
scrolling?: string;
|
2061
|
+
seamless?: boolean;
|
2062
|
+
src?: string;
|
2063
|
+
srcDoc?: string;
|
2064
|
+
width?: number | string;
|
2147
2065
|
}
|
2148
2066
|
|
2149
2067
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
2150
|
-
alt?: string
|
2151
|
-
crossOrigin?: "anonymous" | "use-credentials" | ""
|
2152
|
-
decoding?: "async" | "auto" | "sync"
|
2153
|
-
height?: number | string
|
2154
|
-
loading?: "eager" | "lazy"
|
2155
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy
|
2156
|
-
sizes?: string
|
2157
|
-
src?: string
|
2158
|
-
srcSet?: string
|
2159
|
-
useMap?: string
|
2160
|
-
width?: number | string
|
2068
|
+
alt?: string;
|
2069
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
2070
|
+
decoding?: "async" | "auto" | "sync";
|
2071
|
+
height?: number | string;
|
2072
|
+
loading?: "eager" | "lazy";
|
2073
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
2074
|
+
sizes?: string;
|
2075
|
+
src?: string;
|
2076
|
+
srcSet?: string;
|
2077
|
+
useMap?: string;
|
2078
|
+
width?: number | string;
|
2161
2079
|
}
|
2162
2080
|
|
2163
2081
|
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
2164
|
-
cite?: string
|
2165
|
-
dateTime?: string
|
2166
|
-
}
|
2167
|
-
|
2168
|
-
type HTMLInputTypeAttribute =
|
2169
|
-
| 'button'
|
2170
|
-
| 'checkbox'
|
2171
|
-
| 'color'
|
2172
|
-
| 'date'
|
2173
|
-
| 'datetime-local'
|
2174
|
-
| 'email'
|
2175
|
-
| 'file'
|
2176
|
-
| 'hidden'
|
2177
|
-
| 'image'
|
2178
|
-
| 'month'
|
2179
|
-
| 'number'
|
2180
|
-
| 'password'
|
2181
|
-
| 'radio'
|
2182
|
-
| 'range'
|
2183
|
-
| 'reset'
|
2184
|
-
| 'search'
|
2185
|
-
| 'submit'
|
2186
|
-
| 'tel'
|
2187
|
-
| 'text'
|
2188
|
-
| 'time'
|
2189
|
-
| 'url'
|
2190
|
-
| 'week'
|
2191
|
-
| (string & {});
|
2082
|
+
cite?: string;
|
2083
|
+
dateTime?: string;
|
2084
|
+
}
|
2192
2085
|
|
2193
2086
|
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
2194
|
-
accept?: string
|
2195
|
-
alt?: string
|
2196
|
-
autoComplete?: string
|
2197
|
-
autoFocus?: boolean
|
2198
|
-
capture?: boolean | string
|
2199
|
-
checked?: boolean
|
2200
|
-
crossOrigin?: string
|
2201
|
-
disabled?: boolean
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2087
|
+
accept?: string;
|
2088
|
+
alt?: string;
|
2089
|
+
autoComplete?: string;
|
2090
|
+
autoFocus?: boolean;
|
2091
|
+
capture?: boolean | string; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
2092
|
+
checked?: boolean;
|
2093
|
+
crossOrigin?: string;
|
2094
|
+
disabled?: boolean;
|
2095
|
+
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
2096
|
+
form?: string;
|
2097
|
+
formAction?: string;
|
2098
|
+
formEncType?: string;
|
2099
|
+
formMethod?: string;
|
2100
|
+
formNoValidate?: boolean;
|
2101
|
+
formTarget?: string;
|
2102
|
+
height?: number | string;
|
2103
|
+
list?: string;
|
2104
|
+
max?: number | string;
|
2105
|
+
maxLength?: number;
|
2106
|
+
min?: number | string;
|
2107
|
+
minLength?: number;
|
2108
|
+
multiple?: boolean;
|
2109
|
+
name?: string;
|
2110
|
+
pattern?: string;
|
2111
|
+
placeholder?: string;
|
2112
|
+
readOnly?: boolean;
|
2113
|
+
required?: boolean;
|
2114
|
+
size?: number;
|
2115
|
+
src?: string;
|
2116
|
+
step?: number | string;
|
2117
|
+
type?: string;
|
2118
|
+
value?: string | ReadonlyArray<string> | number;
|
2119
|
+
width?: number | string;
|
2120
|
+
|
2121
|
+
onChange?: ChangeEventHandler<T>;
|
2228
2122
|
}
|
2229
2123
|
|
2230
2124
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
2231
|
-
autoFocus?: boolean
|
2232
|
-
challenge?: string
|
2233
|
-
disabled?: boolean
|
2234
|
-
form?: string
|
2235
|
-
keyType?: string
|
2236
|
-
keyParams?: string
|
2237
|
-
name?: string
|
2125
|
+
autoFocus?: boolean;
|
2126
|
+
challenge?: string;
|
2127
|
+
disabled?: boolean;
|
2128
|
+
form?: string;
|
2129
|
+
keyType?: string;
|
2130
|
+
keyParams?: string;
|
2131
|
+
name?: string;
|
2238
2132
|
}
|
2239
2133
|
|
2240
2134
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
2241
|
-
form?: string
|
2242
|
-
htmlFor?: string
|
2135
|
+
form?: string;
|
2136
|
+
htmlFor?: string;
|
2243
2137
|
}
|
2244
2138
|
|
2245
2139
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
2246
|
-
value?: string | ReadonlyArray<string> | number
|
2140
|
+
value?: string | ReadonlyArray<string> | number;
|
2247
2141
|
}
|
2248
2142
|
|
2249
2143
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
2250
|
-
as?: string
|
2251
|
-
crossOrigin?: string
|
2252
|
-
href?: string
|
2253
|
-
hrefLang?: string
|
2254
|
-
integrity?: string
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
charSet?: string | undefined;
|
2144
|
+
as?: string;
|
2145
|
+
crossOrigin?: string;
|
2146
|
+
href?: string;
|
2147
|
+
hrefLang?: string;
|
2148
|
+
integrity?: string;
|
2149
|
+
media?: string;
|
2150
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
2151
|
+
rel?: string;
|
2152
|
+
sizes?: string;
|
2153
|
+
type?: string;
|
2154
|
+
charSet?: string;
|
2262
2155
|
}
|
2263
2156
|
|
2264
2157
|
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
2265
|
-
name?: string
|
2158
|
+
name?: string;
|
2266
2159
|
}
|
2267
2160
|
|
2268
2161
|
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
2269
|
-
type?: string
|
2162
|
+
type?: string;
|
2270
2163
|
}
|
2271
2164
|
|
2272
2165
|
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
2273
|
-
autoPlay?: boolean
|
2274
|
-
controls?: boolean
|
2275
|
-
controlsList?: string
|
2276
|
-
crossOrigin?: string
|
2277
|
-
loop?: boolean
|
2278
|
-
mediaGroup?: string
|
2279
|
-
muted?: boolean
|
2280
|
-
playsInline?: boolean
|
2281
|
-
preload?: string
|
2282
|
-
src?: string
|
2166
|
+
autoPlay?: boolean;
|
2167
|
+
controls?: boolean;
|
2168
|
+
controlsList?: string;
|
2169
|
+
crossOrigin?: string;
|
2170
|
+
loop?: boolean;
|
2171
|
+
mediaGroup?: string;
|
2172
|
+
muted?: boolean;
|
2173
|
+
playsInline?: boolean;
|
2174
|
+
preload?: string;
|
2175
|
+
src?: string;
|
2283
2176
|
}
|
2284
2177
|
|
2285
2178
|
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
2286
|
-
charSet?: string
|
2287
|
-
content?: string
|
2288
|
-
httpEquiv?: string
|
2289
|
-
name?: string
|
2290
|
-
media?: string | undefined;
|
2179
|
+
charSet?: string;
|
2180
|
+
content?: string;
|
2181
|
+
httpEquiv?: string;
|
2182
|
+
name?: string;
|
2291
2183
|
}
|
2292
2184
|
|
2293
2185
|
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
2294
|
-
form?: string
|
2295
|
-
high?: number
|
2296
|
-
low?: number
|
2297
|
-
max?: number | string
|
2298
|
-
min?: number | string
|
2299
|
-
optimum?: number
|
2300
|
-
value?: string | ReadonlyArray<string> | number
|
2186
|
+
form?: string;
|
2187
|
+
high?: number;
|
2188
|
+
low?: number;
|
2189
|
+
max?: number | string;
|
2190
|
+
min?: number | string;
|
2191
|
+
optimum?: number;
|
2192
|
+
value?: string | ReadonlyArray<string> | number;
|
2301
2193
|
}
|
2302
2194
|
|
2303
2195
|
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
2304
|
-
cite?: string
|
2196
|
+
cite?: string;
|
2305
2197
|
}
|
2306
2198
|
|
2307
2199
|
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
2308
|
-
classID?: string
|
2309
|
-
data?: string
|
2310
|
-
form?: string
|
2311
|
-
height?: number | string
|
2312
|
-
name?: string
|
2313
|
-
type?: string
|
2314
|
-
useMap?: string
|
2315
|
-
width?: number | string
|
2316
|
-
wmode?: string
|
2200
|
+
classID?: string;
|
2201
|
+
data?: string;
|
2202
|
+
form?: string;
|
2203
|
+
height?: number | string;
|
2204
|
+
name?: string;
|
2205
|
+
type?: string;
|
2206
|
+
useMap?: string;
|
2207
|
+
width?: number | string;
|
2208
|
+
wmode?: string;
|
2317
2209
|
}
|
2318
2210
|
|
2319
2211
|
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
2320
|
-
reversed?: boolean
|
2321
|
-
start?: number
|
2322
|
-
type?: '1' | 'a' | 'A' | 'i' | 'I'
|
2212
|
+
reversed?: boolean;
|
2213
|
+
start?: number;
|
2214
|
+
type?: '1' | 'a' | 'A' | 'i' | 'I';
|
2323
2215
|
}
|
2324
2216
|
|
2325
2217
|
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
2326
|
-
disabled?: boolean
|
2327
|
-
label?: string
|
2218
|
+
disabled?: boolean;
|
2219
|
+
label?: string;
|
2328
2220
|
}
|
2329
2221
|
|
2330
2222
|
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
2331
|
-
disabled?: boolean
|
2332
|
-
label?: string
|
2333
|
-
selected?: boolean
|
2334
|
-
value?: string | ReadonlyArray<string> | number
|
2223
|
+
disabled?: boolean;
|
2224
|
+
label?: string;
|
2225
|
+
selected?: boolean;
|
2226
|
+
value?: string | ReadonlyArray<string> | number;
|
2335
2227
|
}
|
2336
2228
|
|
2337
2229
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
2338
|
-
form?: string
|
2339
|
-
htmlFor?: string
|
2340
|
-
name?: string
|
2230
|
+
form?: string;
|
2231
|
+
htmlFor?: string;
|
2232
|
+
name?: string;
|
2341
2233
|
}
|
2342
2234
|
|
2343
2235
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
2344
|
-
name?: string
|
2345
|
-
value?: string | ReadonlyArray<string> | number
|
2236
|
+
name?: string;
|
2237
|
+
value?: string | ReadonlyArray<string> | number;
|
2346
2238
|
}
|
2347
2239
|
|
2348
2240
|
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
2349
|
-
max?: number | string
|
2350
|
-
value?: string | ReadonlyArray<string> | number
|
2241
|
+
max?: number | string;
|
2242
|
+
value?: string | ReadonlyArray<string> | number;
|
2351
2243
|
}
|
2352
2244
|
|
2353
2245
|
interface SlotHTMLAttributes<T> extends HTMLAttributes<T> {
|
2354
|
-
name?: string
|
2246
|
+
name?: string;
|
2355
2247
|
}
|
2356
2248
|
|
2357
2249
|
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
2358
|
-
async?: boolean
|
2250
|
+
async?: boolean;
|
2359
2251
|
/** @deprecated */
|
2360
|
-
charSet?: string
|
2361
|
-
crossOrigin?: string
|
2362
|
-
defer?: boolean
|
2363
|
-
integrity?: string
|
2364
|
-
noModule?: boolean
|
2365
|
-
nonce?: string
|
2366
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy
|
2367
|
-
src?: string
|
2368
|
-
type?: string
|
2252
|
+
charSet?: string;
|
2253
|
+
crossOrigin?: string;
|
2254
|
+
defer?: boolean;
|
2255
|
+
integrity?: string;
|
2256
|
+
noModule?: boolean;
|
2257
|
+
nonce?: string;
|
2258
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
2259
|
+
src?: string;
|
2260
|
+
type?: string;
|
2369
2261
|
}
|
2370
2262
|
|
2371
2263
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
2372
|
-
autoComplete?: string
|
2373
|
-
autoFocus?: boolean
|
2374
|
-
disabled?: boolean
|
2375
|
-
form?: string
|
2376
|
-
multiple?: boolean
|
2377
|
-
name?: string
|
2378
|
-
required?: boolean
|
2379
|
-
size?: number
|
2380
|
-
value?: string | ReadonlyArray<string> | number
|
2381
|
-
onChange?: ChangeEventHandler<T
|
2264
|
+
autoComplete?: string;
|
2265
|
+
autoFocus?: boolean;
|
2266
|
+
disabled?: boolean;
|
2267
|
+
form?: string;
|
2268
|
+
multiple?: boolean;
|
2269
|
+
name?: string;
|
2270
|
+
required?: boolean;
|
2271
|
+
size?: number;
|
2272
|
+
value?: string | ReadonlyArray<string> | number;
|
2273
|
+
onChange?: ChangeEventHandler<T>;
|
2382
2274
|
}
|
2383
2275
|
|
2384
2276
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
type?: string | undefined;
|
2391
|
-
width?: number | string | undefined;
|
2277
|
+
media?: string;
|
2278
|
+
sizes?: string;
|
2279
|
+
src?: string;
|
2280
|
+
srcSet?: string;
|
2281
|
+
type?: string;
|
2392
2282
|
}
|
2393
2283
|
|
2394
2284
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
2395
|
-
media?: string
|
2396
|
-
nonce?: string
|
2397
|
-
scoped?: boolean
|
2398
|
-
type?: string
|
2285
|
+
media?: string;
|
2286
|
+
nonce?: string;
|
2287
|
+
scoped?: boolean;
|
2288
|
+
type?: string;
|
2399
2289
|
}
|
2400
2290
|
|
2401
2291
|
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
2402
|
-
cellPadding?: number | string
|
2403
|
-
cellSpacing?: number | string
|
2404
|
-
summary?: string
|
2405
|
-
width?: number | string
|
2292
|
+
cellPadding?: number | string;
|
2293
|
+
cellSpacing?: number | string;
|
2294
|
+
summary?: string;
|
2295
|
+
width?: number | string;
|
2406
2296
|
}
|
2407
2297
|
|
2408
2298
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
2409
|
-
autoComplete?: string
|
2410
|
-
autoFocus?: boolean
|
2411
|
-
cols?: number
|
2412
|
-
dirName?: string
|
2413
|
-
disabled?: boolean
|
2414
|
-
form?: string
|
2415
|
-
maxLength?: number
|
2416
|
-
minLength?: number
|
2417
|
-
name?: string
|
2418
|
-
placeholder?: string
|
2419
|
-
readOnly?: boolean
|
2420
|
-
required?: boolean
|
2421
|
-
rows?: number
|
2422
|
-
value?: string | ReadonlyArray<string> | number
|
2423
|
-
wrap?: string
|
2424
|
-
|
2425
|
-
onChange?: ChangeEventHandler<T
|
2299
|
+
autoComplete?: string;
|
2300
|
+
autoFocus?: boolean;
|
2301
|
+
cols?: number;
|
2302
|
+
dirName?: string;
|
2303
|
+
disabled?: boolean;
|
2304
|
+
form?: string;
|
2305
|
+
maxLength?: number;
|
2306
|
+
minLength?: number;
|
2307
|
+
name?: string;
|
2308
|
+
placeholder?: string;
|
2309
|
+
readOnly?: boolean;
|
2310
|
+
required?: boolean;
|
2311
|
+
rows?: number;
|
2312
|
+
value?: string | ReadonlyArray<string> | number;
|
2313
|
+
wrap?: string;
|
2314
|
+
|
2315
|
+
onChange?: ChangeEventHandler<T>;
|
2426
2316
|
}
|
2427
2317
|
|
2428
2318
|
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
2429
|
-
align?: "left" | "center" | "right" | "justify" | "char"
|
2430
|
-
colSpan?: number
|
2431
|
-
headers?: string
|
2432
|
-
rowSpan?: number
|
2433
|
-
scope?: string
|
2434
|
-
abbr?: string
|
2435
|
-
height?: number | string
|
2436
|
-
width?: number | string
|
2437
|
-
valign?: "top" | "middle" | "bottom" | "baseline"
|
2319
|
+
align?: "left" | "center" | "right" | "justify" | "char";
|
2320
|
+
colSpan?: number;
|
2321
|
+
headers?: string;
|
2322
|
+
rowSpan?: number;
|
2323
|
+
scope?: string;
|
2324
|
+
abbr?: string;
|
2325
|
+
height?: number | string;
|
2326
|
+
width?: number | string;
|
2327
|
+
valign?: "top" | "middle" | "bottom" | "baseline";
|
2438
2328
|
}
|
2439
2329
|
|
2440
2330
|
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
2441
|
-
align?: "left" | "center" | "right" | "justify" | "char"
|
2442
|
-
colSpan?: number
|
2443
|
-
headers?: string
|
2444
|
-
rowSpan?: number
|
2445
|
-
scope?: string
|
2446
|
-
abbr?: string
|
2331
|
+
align?: "left" | "center" | "right" | "justify" | "char";
|
2332
|
+
colSpan?: number;
|
2333
|
+
headers?: string;
|
2334
|
+
rowSpan?: number;
|
2335
|
+
scope?: string;
|
2336
|
+
abbr?: string;
|
2447
2337
|
}
|
2448
2338
|
|
2449
2339
|
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
2450
|
-
dateTime?: string
|
2340
|
+
dateTime?: string;
|
2451
2341
|
}
|
2452
2342
|
|
2453
2343
|
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
2454
|
-
default?: boolean
|
2455
|
-
kind?: string
|
2456
|
-
label?: string
|
2457
|
-
src?: string
|
2458
|
-
srcLang?: string
|
2344
|
+
default?: boolean;
|
2345
|
+
kind?: string;
|
2346
|
+
label?: string;
|
2347
|
+
src?: string;
|
2348
|
+
srcLang?: string;
|
2459
2349
|
}
|
2460
2350
|
|
2461
2351
|
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
2462
|
-
height?: number | string
|
2463
|
-
playsInline?: boolean
|
2464
|
-
poster?: string
|
2465
|
-
width?: number | string
|
2466
|
-
disablePictureInPicture?: boolean
|
2352
|
+
height?: number | string;
|
2353
|
+
playsInline?: boolean;
|
2354
|
+
poster?: string;
|
2355
|
+
width?: number | string;
|
2356
|
+
disablePictureInPicture?: boolean;
|
2357
|
+
disableRemotePlayback?: boolean;
|
2467
2358
|
}
|
2468
2359
|
|
2469
2360
|
// this list is "complete" in that it contains every SVG attribute
|
@@ -2477,290 +2368,289 @@ declare namespace React {
|
|
2477
2368
|
interface SVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
|
2478
2369
|
// Attributes which also defined in HTMLAttributes
|
2479
2370
|
// See comment in SVGDOMPropertyConfig.js
|
2480
|
-
className?: string
|
2481
|
-
color?: string
|
2482
|
-
height?: number | string
|
2483
|
-
id?: string
|
2484
|
-
lang?: string
|
2485
|
-
max?: number | string
|
2486
|
-
media?: string
|
2487
|
-
method?: string
|
2488
|
-
min?: number | string
|
2489
|
-
name?: string
|
2490
|
-
style?: CSSProperties
|
2491
|
-
target?: string
|
2492
|
-
type?: string
|
2493
|
-
width?: number | string
|
2371
|
+
className?: string;
|
2372
|
+
color?: string;
|
2373
|
+
height?: number | string;
|
2374
|
+
id?: string;
|
2375
|
+
lang?: string;
|
2376
|
+
max?: number | string;
|
2377
|
+
media?: string;
|
2378
|
+
method?: string;
|
2379
|
+
min?: number | string;
|
2380
|
+
name?: string;
|
2381
|
+
style?: CSSProperties;
|
2382
|
+
target?: string;
|
2383
|
+
type?: string;
|
2384
|
+
width?: number | string;
|
2494
2385
|
|
2495
2386
|
// Other HTML properties supported by SVG elements in browsers
|
2496
|
-
role?:
|
2497
|
-
tabIndex?: number
|
2498
|
-
crossOrigin?: "anonymous" | "use-credentials" | ""
|
2387
|
+
role?: string;
|
2388
|
+
tabIndex?: number;
|
2389
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
2499
2390
|
|
2500
2391
|
// SVG Specific attributes
|
2501
|
-
accentHeight?: number | string
|
2502
|
-
accumulate?: "none" | "sum"
|
2503
|
-
additive?: "replace" | "sum"
|
2392
|
+
accentHeight?: number | string;
|
2393
|
+
accumulate?: "none" | "sum";
|
2394
|
+
additive?: "replace" | "sum";
|
2504
2395
|
alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" |
|
2505
|
-
"text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit"
|
2506
|
-
allowReorder?: "no" | "yes"
|
2507
|
-
alphabetic?: number | string
|
2508
|
-
amplitude?: number | string
|
2509
|
-
arabicForm?: "initial" | "medial" | "terminal" | "isolated"
|
2510
|
-
ascent?: number | string
|
2511
|
-
attributeName?: string
|
2512
|
-
attributeType?: string
|
2513
|
-
autoReverse?: Booleanish
|
2514
|
-
azimuth?: number | string
|
2515
|
-
baseFrequency?: number | string
|
2516
|
-
baselineShift?: number | string
|
2517
|
-
baseProfile?: number | string
|
2518
|
-
bbox?: number | string
|
2519
|
-
begin?: number | string
|
2520
|
-
bias?: number | string
|
2521
|
-
by?: number | string
|
2522
|
-
calcMode?: number | string
|
2523
|
-
capHeight?: number | string
|
2524
|
-
clip?: number | string
|
2525
|
-
clipPath?: string
|
2526
|
-
clipPathUnits?: number | string
|
2527
|
-
clipRule?: number | string
|
2528
|
-
colorInterpolation?: number | string
|
2529
|
-
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit"
|
2530
|
-
colorProfile?: number | string
|
2531
|
-
colorRendering?: number | string
|
2532
|
-
contentScriptType?: number | string
|
2533
|
-
contentStyleType?: number | string
|
2534
|
-
cursor?: number | string
|
2535
|
-
cx?: number | string
|
2536
|
-
cy?: number | string
|
2537
|
-
d?: string
|
2538
|
-
decelerate?: number | string
|
2539
|
-
descent?: number | string
|
2540
|
-
diffuseConstant?: number | string
|
2541
|
-
direction?: number | string
|
2542
|
-
display?: number | string
|
2543
|
-
divisor?: number | string
|
2544
|
-
dominantBaseline?: number | string
|
2545
|
-
dur?: number | string
|
2546
|
-
dx?: number | string
|
2547
|
-
dy?: number | string
|
2548
|
-
edgeMode?: number | string
|
2549
|
-
elevation?: number | string
|
2550
|
-
enableBackground?: number | string
|
2551
|
-
end?: number | string
|
2552
|
-
exponent?: number | string
|
2553
|
-
externalResourcesRequired?: Booleanish
|
2554
|
-
fill?: string
|
2555
|
-
fillOpacity?: number | string
|
2556
|
-
fillRule?: "nonzero" | "evenodd" | "inherit"
|
2557
|
-
filter?: string
|
2558
|
-
filterRes?: number | string
|
2559
|
-
filterUnits?: number | string
|
2560
|
-
floodColor?: number | string
|
2561
|
-
floodOpacity?: number | string
|
2562
|
-
focusable?: Booleanish | "auto"
|
2563
|
-
fontFamily?: string
|
2564
|
-
fontSize?: number | string
|
2565
|
-
fontSizeAdjust?: number | string
|
2566
|
-
fontStretch?: number | string
|
2567
|
-
fontStyle?: number | string
|
2568
|
-
fontVariant?: number | string
|
2569
|
-
fontWeight?: number | string
|
2570
|
-
format?: number | string
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
|
2579
|
-
|
2580
|
-
|
2581
|
-
|
2582
|
-
|
2583
|
-
|
2584
|
-
|
2585
|
-
|
2586
|
-
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2655
|
-
|
2656
|
-
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
|
2668
|
-
|
2669
|
-
|
2670
|
-
|
2671
|
-
|
2672
|
-
|
2673
|
-
|
2674
|
-
|
2675
|
-
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2682
|
-
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2686
|
-
|
2687
|
-
|
2688
|
-
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
|
2693
|
-
|
2694
|
-
|
2695
|
-
|
2696
|
-
|
2697
|
-
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
|
2724
|
-
|
2725
|
-
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
2730
|
-
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2741
|
-
|
2742
|
-
|
2743
|
-
zoomAndPan?: string | undefined;
|
2396
|
+
"text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
|
2397
|
+
allowReorder?: "no" | "yes";
|
2398
|
+
alphabetic?: number | string;
|
2399
|
+
amplitude?: number | string;
|
2400
|
+
arabicForm?: "initial" | "medial" | "terminal" | "isolated";
|
2401
|
+
ascent?: number | string;
|
2402
|
+
attributeName?: string;
|
2403
|
+
attributeType?: string;
|
2404
|
+
autoReverse?: Booleanish;
|
2405
|
+
azimuth?: number | string;
|
2406
|
+
baseFrequency?: number | string;
|
2407
|
+
baselineShift?: number | string;
|
2408
|
+
baseProfile?: number | string;
|
2409
|
+
bbox?: number | string;
|
2410
|
+
begin?: number | string;
|
2411
|
+
bias?: number | string;
|
2412
|
+
by?: number | string;
|
2413
|
+
calcMode?: number | string;
|
2414
|
+
capHeight?: number | string;
|
2415
|
+
clip?: number | string;
|
2416
|
+
clipPath?: string;
|
2417
|
+
clipPathUnits?: number | string;
|
2418
|
+
clipRule?: number | string;
|
2419
|
+
colorInterpolation?: number | string;
|
2420
|
+
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
|
2421
|
+
colorProfile?: number | string;
|
2422
|
+
colorRendering?: number | string;
|
2423
|
+
contentScriptType?: number | string;
|
2424
|
+
contentStyleType?: number | string;
|
2425
|
+
cursor?: number | string;
|
2426
|
+
cx?: number | string;
|
2427
|
+
cy?: number | string;
|
2428
|
+
d?: string;
|
2429
|
+
decelerate?: number | string;
|
2430
|
+
descent?: number | string;
|
2431
|
+
diffuseConstant?: number | string;
|
2432
|
+
direction?: number | string;
|
2433
|
+
display?: number | string;
|
2434
|
+
divisor?: number | string;
|
2435
|
+
dominantBaseline?: number | string;
|
2436
|
+
dur?: number | string;
|
2437
|
+
dx?: number | string;
|
2438
|
+
dy?: number | string;
|
2439
|
+
edgeMode?: number | string;
|
2440
|
+
elevation?: number | string;
|
2441
|
+
enableBackground?: number | string;
|
2442
|
+
end?: number | string;
|
2443
|
+
exponent?: number | string;
|
2444
|
+
externalResourcesRequired?: Booleanish;
|
2445
|
+
fill?: string;
|
2446
|
+
fillOpacity?: number | string;
|
2447
|
+
fillRule?: "nonzero" | "evenodd" | "inherit";
|
2448
|
+
filter?: string;
|
2449
|
+
filterRes?: number | string;
|
2450
|
+
filterUnits?: number | string;
|
2451
|
+
floodColor?: number | string;
|
2452
|
+
floodOpacity?: number | string;
|
2453
|
+
focusable?: Booleanish | "auto";
|
2454
|
+
fontFamily?: string;
|
2455
|
+
fontSize?: number | string;
|
2456
|
+
fontSizeAdjust?: number | string;
|
2457
|
+
fontStretch?: number | string;
|
2458
|
+
fontStyle?: number | string;
|
2459
|
+
fontVariant?: number | string;
|
2460
|
+
fontWeight?: number | string;
|
2461
|
+
format?: number | string;
|
2462
|
+
from?: number | string;
|
2463
|
+
fx?: number | string;
|
2464
|
+
fy?: number | string;
|
2465
|
+
g1?: number | string;
|
2466
|
+
g2?: number | string;
|
2467
|
+
glyphName?: number | string;
|
2468
|
+
glyphOrientationHorizontal?: number | string;
|
2469
|
+
glyphOrientationVertical?: number | string;
|
2470
|
+
glyphRef?: number | string;
|
2471
|
+
gradientTransform?: string;
|
2472
|
+
gradientUnits?: string;
|
2473
|
+
hanging?: number | string;
|
2474
|
+
horizAdvX?: number | string;
|
2475
|
+
horizOriginX?: number | string;
|
2476
|
+
href?: string;
|
2477
|
+
ideographic?: number | string;
|
2478
|
+
imageRendering?: number | string;
|
2479
|
+
in2?: number | string;
|
2480
|
+
in?: string;
|
2481
|
+
intercept?: number | string;
|
2482
|
+
k1?: number | string;
|
2483
|
+
k2?: number | string;
|
2484
|
+
k3?: number | string;
|
2485
|
+
k4?: number | string;
|
2486
|
+
k?: number | string;
|
2487
|
+
kernelMatrix?: number | string;
|
2488
|
+
kernelUnitLength?: number | string;
|
2489
|
+
kerning?: number | string;
|
2490
|
+
keyPoints?: number | string;
|
2491
|
+
keySplines?: number | string;
|
2492
|
+
keyTimes?: number | string;
|
2493
|
+
lengthAdjust?: number | string;
|
2494
|
+
letterSpacing?: number | string;
|
2495
|
+
lightingColor?: number | string;
|
2496
|
+
limitingConeAngle?: number | string;
|
2497
|
+
local?: number | string;
|
2498
|
+
markerEnd?: string;
|
2499
|
+
markerHeight?: number | string;
|
2500
|
+
markerMid?: string;
|
2501
|
+
markerStart?: string;
|
2502
|
+
markerUnits?: number | string;
|
2503
|
+
markerWidth?: number | string;
|
2504
|
+
mask?: string;
|
2505
|
+
maskContentUnits?: number | string;
|
2506
|
+
maskUnits?: number | string;
|
2507
|
+
mathematical?: number | string;
|
2508
|
+
mode?: number | string;
|
2509
|
+
numOctaves?: number | string;
|
2510
|
+
offset?: number | string;
|
2511
|
+
opacity?: number | string;
|
2512
|
+
operator?: number | string;
|
2513
|
+
order?: number | string;
|
2514
|
+
orient?: number | string;
|
2515
|
+
orientation?: number | string;
|
2516
|
+
origin?: number | string;
|
2517
|
+
overflow?: number | string;
|
2518
|
+
overlinePosition?: number | string;
|
2519
|
+
overlineThickness?: number | string;
|
2520
|
+
paintOrder?: number | string;
|
2521
|
+
panose1?: number | string;
|
2522
|
+
path?: string;
|
2523
|
+
pathLength?: number | string;
|
2524
|
+
patternContentUnits?: string;
|
2525
|
+
patternTransform?: number | string;
|
2526
|
+
patternUnits?: string;
|
2527
|
+
pointerEvents?: number | string;
|
2528
|
+
points?: string;
|
2529
|
+
pointsAtX?: number | string;
|
2530
|
+
pointsAtY?: number | string;
|
2531
|
+
pointsAtZ?: number | string;
|
2532
|
+
preserveAlpha?: Booleanish;
|
2533
|
+
preserveAspectRatio?: string;
|
2534
|
+
primitiveUnits?: number | string;
|
2535
|
+
r?: number | string;
|
2536
|
+
radius?: number | string;
|
2537
|
+
refX?: number | string;
|
2538
|
+
refY?: number | string;
|
2539
|
+
renderingIntent?: number | string;
|
2540
|
+
repeatCount?: number | string;
|
2541
|
+
repeatDur?: number | string;
|
2542
|
+
requiredExtensions?: number | string;
|
2543
|
+
requiredFeatures?: number | string;
|
2544
|
+
restart?: number | string;
|
2545
|
+
result?: string;
|
2546
|
+
rotate?: number | string;
|
2547
|
+
rx?: number | string;
|
2548
|
+
ry?: number | string;
|
2549
|
+
scale?: number | string;
|
2550
|
+
seed?: number | string;
|
2551
|
+
shapeRendering?: number | string;
|
2552
|
+
slope?: number | string;
|
2553
|
+
spacing?: number | string;
|
2554
|
+
specularConstant?: number | string;
|
2555
|
+
specularExponent?: number | string;
|
2556
|
+
speed?: number | string;
|
2557
|
+
spreadMethod?: string;
|
2558
|
+
startOffset?: number | string;
|
2559
|
+
stdDeviation?: number | string;
|
2560
|
+
stemh?: number | string;
|
2561
|
+
stemv?: number | string;
|
2562
|
+
stitchTiles?: number | string;
|
2563
|
+
stopColor?: string;
|
2564
|
+
stopOpacity?: number | string;
|
2565
|
+
strikethroughPosition?: number | string;
|
2566
|
+
strikethroughThickness?: number | string;
|
2567
|
+
string?: number | string;
|
2568
|
+
stroke?: string;
|
2569
|
+
strokeDasharray?: string | number;
|
2570
|
+
strokeDashoffset?: string | number;
|
2571
|
+
strokeLinecap?: "butt" | "round" | "square" | "inherit";
|
2572
|
+
strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
|
2573
|
+
strokeMiterlimit?: number | string;
|
2574
|
+
strokeOpacity?: number | string;
|
2575
|
+
strokeWidth?: number | string;
|
2576
|
+
surfaceScale?: number | string;
|
2577
|
+
systemLanguage?: number | string;
|
2578
|
+
tableValues?: number | string;
|
2579
|
+
targetX?: number | string;
|
2580
|
+
targetY?: number | string;
|
2581
|
+
textAnchor?: string;
|
2582
|
+
textDecoration?: number | string;
|
2583
|
+
textLength?: number | string;
|
2584
|
+
textRendering?: number | string;
|
2585
|
+
to?: number | string;
|
2586
|
+
transform?: string;
|
2587
|
+
u1?: number | string;
|
2588
|
+
u2?: number | string;
|
2589
|
+
underlinePosition?: number | string;
|
2590
|
+
underlineThickness?: number | string;
|
2591
|
+
unicode?: number | string;
|
2592
|
+
unicodeBidi?: number | string;
|
2593
|
+
unicodeRange?: number | string;
|
2594
|
+
unitsPerEm?: number | string;
|
2595
|
+
vAlphabetic?: number | string;
|
2596
|
+
values?: string;
|
2597
|
+
vectorEffect?: number | string;
|
2598
|
+
version?: string;
|
2599
|
+
vertAdvY?: number | string;
|
2600
|
+
vertOriginX?: number | string;
|
2601
|
+
vertOriginY?: number | string;
|
2602
|
+
vHanging?: number | string;
|
2603
|
+
vIdeographic?: number | string;
|
2604
|
+
viewBox?: string;
|
2605
|
+
viewTarget?: number | string;
|
2606
|
+
visibility?: number | string;
|
2607
|
+
vMathematical?: number | string;
|
2608
|
+
widths?: number | string;
|
2609
|
+
wordSpacing?: number | string;
|
2610
|
+
writingMode?: number | string;
|
2611
|
+
x1?: number | string;
|
2612
|
+
x2?: number | string;
|
2613
|
+
x?: number | string;
|
2614
|
+
xChannelSelector?: string;
|
2615
|
+
xHeight?: number | string;
|
2616
|
+
xlinkActuate?: string;
|
2617
|
+
xlinkArcrole?: string;
|
2618
|
+
xlinkHref?: string;
|
2619
|
+
xlinkRole?: string;
|
2620
|
+
xlinkShow?: string;
|
2621
|
+
xlinkTitle?: string;
|
2622
|
+
xlinkType?: string;
|
2623
|
+
xmlBase?: string;
|
2624
|
+
xmlLang?: string;
|
2625
|
+
xmlns?: string;
|
2626
|
+
xmlnsXlink?: string;
|
2627
|
+
xmlSpace?: string;
|
2628
|
+
y1?: number | string;
|
2629
|
+
y2?: number | string;
|
2630
|
+
y?: number | string;
|
2631
|
+
yChannelSelector?: string;
|
2632
|
+
z?: number | string;
|
2633
|
+
zoomAndPan?: string;
|
2744
2634
|
}
|
2745
2635
|
|
2746
2636
|
interface WebViewHTMLAttributes<T> extends HTMLAttributes<T> {
|
2747
|
-
allowFullScreen?: boolean
|
2748
|
-
allowpopups?: boolean
|
2749
|
-
autoFocus?: boolean
|
2750
|
-
autosize?: boolean
|
2751
|
-
blinkfeatures?: string
|
2752
|
-
disableblinkfeatures?: string
|
2753
|
-
disableguestresize?: boolean
|
2754
|
-
disablewebsecurity?: boolean
|
2755
|
-
guestinstance?: string
|
2756
|
-
httpreferrer?: string
|
2757
|
-
nodeintegration?: boolean
|
2758
|
-
partition?: string
|
2759
|
-
plugins?: boolean
|
2760
|
-
preload?: string
|
2761
|
-
src?: string
|
2762
|
-
useragent?: string
|
2763
|
-
webpreferences?: string
|
2637
|
+
allowFullScreen?: boolean;
|
2638
|
+
allowpopups?: boolean;
|
2639
|
+
autoFocus?: boolean;
|
2640
|
+
autosize?: boolean;
|
2641
|
+
blinkfeatures?: string;
|
2642
|
+
disableblinkfeatures?: string;
|
2643
|
+
disableguestresize?: boolean;
|
2644
|
+
disablewebsecurity?: boolean;
|
2645
|
+
guestinstance?: string;
|
2646
|
+
httpreferrer?: string;
|
2647
|
+
nodeintegration?: boolean;
|
2648
|
+
partition?: string;
|
2649
|
+
plugins?: boolean;
|
2650
|
+
preload?: string;
|
2651
|
+
src?: string;
|
2652
|
+
useragent?: string;
|
2653
|
+
webpreferences?: string;
|
2764
2654
|
}
|
2765
2655
|
|
2766
2656
|
//
|
@@ -3079,7 +2969,6 @@ type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps
|
|
3079
2969
|
|
3080
2970
|
declare global {
|
3081
2971
|
namespace JSX {
|
3082
|
-
// tslint:disable-next-line:no-empty-interface
|
3083
2972
|
interface Element extends React.ReactElement<any, any> { }
|
3084
2973
|
interface ElementClass extends React.Component<any> {
|
3085
2974
|
render(): React.ReactNode;
|
@@ -3095,9 +2984,7 @@ declare global {
|
|
3095
2984
|
: ReactManagedAttributes<T, P>
|
3096
2985
|
: ReactManagedAttributes<C, P>;
|
3097
2986
|
|
3098
|
-
// tslint:disable-next-line:no-empty-interface
|
3099
2987
|
interface IntrinsicAttributes extends React.Attributes { }
|
3100
|
-
// tslint:disable-next-line:no-empty-interface
|
3101
2988
|
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
|
3102
2989
|
|
3103
2990
|
interface IntrinsicElements {
|