@types/react 17.0.10 → 17.0.14

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