-
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
jsx.d.ts
2613 lines (2472 loc) · 103 KB
/
jsx.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Users who only use Preact for SSR might not specify "dom" in their lib in tsconfig.json
/// <reference lib="dom" />
import {
ClassAttributes,
Component,
ComponentChild,
ComponentType,
FunctionComponent,
PreactDOMAttributes,
VNode
} from './index';
type Defaultize<Props, Defaults> =
// Distribute over unions
Props extends any // Make any properties included in Default optional
? Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>> & // Include the remaining properties from Props
Pick<Props, Exclude<keyof Props, keyof Defaults>>
: never;
type Booleanish = boolean | 'true' | 'false';
export namespace JSXInternal {
export type LibraryManagedAttributes<Component, Props> = Component extends {
defaultProps: infer Defaults;
}
? Defaultize<Props, Defaults>
: Props;
export interface IntrinsicAttributes {
key?: any;
}
export type ElementType<P = any> =
| {
[K in keyof IntrinsicElements]: P extends IntrinsicElements[K]
? K
: never;
}[keyof IntrinsicElements]
| ComponentType<P>;
export interface Element extends VNode<any> {}
export type ElementClass = Component<any, any> | FunctionComponent<any>;
export interface ElementAttributesProperty {
props: any;
}
export interface ElementChildrenAttribute {
children: any;
}
export type DOMCSSProperties = {
[key in keyof Omit<
CSSStyleDeclaration,
| 'item'
| 'setProperty'
| 'removeProperty'
| 'getPropertyValue'
| 'getPropertyPriority'
>]?: string | number | null | undefined;
};
export type AllCSSProperties = {
[key: string]: string | number | null | undefined;
};
export interface CSSProperties extends AllCSSProperties, DOMCSSProperties {
cssText?: string | null;
}
export interface SignalLike<T> {
value: T;
peek(): T;
subscribe(fn: (value: T) => void): () => void;
}
export type Signalish<T> = T | SignalLike<T>;
export type UnpackSignal<T> = T extends SignalLike<infer V> ? V : T;
export interface SVGAttributes<Target extends EventTarget = SVGElement>
extends HTMLAttributes<Target> {
accentHeight?: Signalish<number | string | undefined>;
accumulate?: Signalish<'none' | 'sum' | undefined>;
additive?: Signalish<'replace' | 'sum' | undefined>;
alignmentBaseline?: Signalish<
| 'auto'
| 'baseline'
| 'before-edge'
| 'text-before-edge'
| 'middle'
| 'central'
| 'after-edge'
| 'text-after-edge'
| 'ideographic'
| 'alphabetic'
| 'hanging'
| 'mathematical'
| 'inherit'
| undefined
>;
'alignment-baseline'?: Signalish<
| 'auto'
| 'baseline'
| 'before-edge'
| 'text-before-edge'
| 'middle'
| 'central'
| 'after-edge'
| 'text-after-edge'
| 'ideographic'
| 'alphabetic'
| 'hanging'
| 'mathematical'
| 'inherit'
| undefined
>;
allowReorder?: Signalish<'no' | 'yes' | undefined>;
'allow-reorder'?: Signalish<'no' | 'yes' | undefined>;
alphabetic?: Signalish<number | string | undefined>;
amplitude?: Signalish<number | string | undefined>;
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
arabicForm?: Signalish<
'initial' | 'medial' | 'terminal' | 'isolated' | undefined
>;
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
'arabic-form'?: Signalish<
'initial' | 'medial' | 'terminal' | 'isolated' | undefined
>;
ascent?: Signalish<number | string | undefined>;
attributeName?: Signalish<string | undefined>;
attributeType?: Signalish<string | undefined>;
azimuth?: Signalish<number | string | undefined>;
baseFrequency?: Signalish<number | string | undefined>;
baselineShift?: Signalish<number | string | undefined>;
'baseline-shift'?: Signalish<number | string | undefined>;
baseProfile?: Signalish<number | string | undefined>;
bbox?: Signalish<number | string | undefined>;
begin?: Signalish<number | string | undefined>;
bias?: Signalish<number | string | undefined>;
by?: Signalish<number | string | undefined>;
calcMode?: Signalish<number | string | undefined>;
capHeight?: Signalish<number | string | undefined>;
'cap-height'?: Signalish<number | string | undefined>;
clip?: Signalish<number | string | undefined>;
clipPath?: Signalish<string | undefined>;
'clip-path'?: Signalish<string | undefined>;
clipPathUnits?: Signalish<number | string | undefined>;
clipRule?: Signalish<number | string | undefined>;
'clip-rule'?: Signalish<number | string | undefined>;
colorInterpolation?: Signalish<number | string | undefined>;
'color-interpolation'?: Signalish<number | string | undefined>;
colorInterpolationFilters?: Signalish<
'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined
>;
'color-interpolation-filters'?: Signalish<
'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined
>;
colorProfile?: Signalish<number | string | undefined>;
'color-profile'?: Signalish<number | string | undefined>;
colorRendering?: Signalish<number | string | undefined>;
'color-rendering'?: Signalish<number | string | undefined>;
contentScriptType?: Signalish<number | string | undefined>;
'content-script-type'?: Signalish<number | string | undefined>;
contentStyleType?: Signalish<number | string | undefined>;
'content-style-type'?: Signalish<number | string | undefined>;
cursor?: Signalish<number | string | undefined>;
cx?: Signalish<number | string | undefined>;
cy?: Signalish<number | string | undefined>;
d?: Signalish<string | undefined>;
decelerate?: Signalish<number | string | undefined>;
descent?: Signalish<number | string | undefined>;
diffuseConstant?: Signalish<number | string | undefined>;
direction?: Signalish<number | string | undefined>;
display?: Signalish<number | string | undefined>;
divisor?: Signalish<number | string | undefined>;
dominantBaseline?: Signalish<number | string | undefined>;
'dominant-baseline'?: Signalish<number | string | undefined>;
dur?: Signalish<number | string | undefined>;
dx?: Signalish<number | string | undefined>;
dy?: Signalish<number | string | undefined>;
edgeMode?: Signalish<number | string | undefined>;
elevation?: Signalish<number | string | undefined>;
enableBackground?: Signalish<number | string | undefined>;
'enable-background'?: Signalish<number | string | undefined>;
end?: Signalish<number | string | undefined>;
exponent?: Signalish<number | string | undefined>;
externalResourcesRequired?: Signalish<number | string | undefined>;
fill?: Signalish<string | undefined>;
fillOpacity?: Signalish<number | string | undefined>;
'fill-opacity'?: Signalish<number | string | undefined>;
fillRule?: Signalish<'nonzero' | 'evenodd' | 'inherit' | undefined>;
'fill-rule'?: Signalish<'nonzero' | 'evenodd' | 'inherit' | undefined>;
filter?: Signalish<string | undefined>;
filterRes?: Signalish<number | string | undefined>;
filterUnits?: Signalish<number | string | undefined>;
floodColor?: Signalish<number | string | undefined>;
'flood-color'?: Signalish<number | string | undefined>;
floodOpacity?: Signalish<number | string | undefined>;
'flood-opacity'?: Signalish<number | string | undefined>;
focusable?: Signalish<number | string | undefined>;
fontFamily?: Signalish<string | undefined>;
'font-family'?: Signalish<string | undefined>;
fontSize?: Signalish<number | string | undefined>;
'font-size'?: Signalish<number | string | undefined>;
fontSizeAdjust?: Signalish<number | string | undefined>;
'font-size-adjust'?: Signalish<number | string | undefined>;
fontStretch?: Signalish<number | string | undefined>;
'font-stretch'?: Signalish<number | string | undefined>;
fontStyle?: Signalish<number | string | undefined>;
'font-style'?: Signalish<number | string | undefined>;
fontVariant?: Signalish<number | string | undefined>;
'font-variant'?: Signalish<number | string | undefined>;
fontWeight?: Signalish<number | string | undefined>;
'font-weight'?: Signalish<number | string | undefined>;
format?: Signalish<number | string | undefined>;
from?: Signalish<number | string | undefined>;
fx?: Signalish<number | string | undefined>;
fy?: Signalish<number | string | undefined>;
g1?: Signalish<number | string | undefined>;
g2?: Signalish<number | string | undefined>;
glyphName?: Signalish<number | string | undefined>;
'glyph-name'?: Signalish<number | string | undefined>;
glyphOrientationHorizontal?: Signalish<number | string | undefined>;
'glyph-orientation-horizontal'?: Signalish<number | string | undefined>;
glyphOrientationVertical?: Signalish<number | string | undefined>;
'glyph-orientation-vertical'?: Signalish<number | string | undefined>;
glyphRef?: Signalish<number | string | undefined>;
gradientTransform?: Signalish<string | undefined>;
gradientUnits?: Signalish<string | undefined>;
hanging?: Signalish<number | string | undefined>;
height?: Signalish<number | string | undefined>;
horizAdvX?: Signalish<number | string | undefined>;
'horiz-adv-x'?: Signalish<number | string | undefined>;
horizOriginX?: Signalish<number | string | undefined>;
'horiz-origin-x'?: Signalish<number | string | undefined>;
ideographic?: Signalish<number | string | undefined>;
imageRendering?: Signalish<number | string | undefined>;
'image-rendering'?: Signalish<number | string | undefined>;
in2?: Signalish<number | string | undefined>;
in?: Signalish<string | undefined>;
intercept?: Signalish<number | string | undefined>;
k1?: Signalish<number | string | undefined>;
k2?: Signalish<number | string | undefined>;
k3?: Signalish<number | string | undefined>;
k4?: Signalish<number | string | undefined>;
k?: Signalish<number | string | undefined>;
kernelMatrix?: Signalish<number | string | undefined>;
kernelUnitLength?: Signalish<number | string | undefined>;
kerning?: Signalish<number | string | undefined>;
keyPoints?: Signalish<number | string | undefined>;
keySplines?: Signalish<number | string | undefined>;
keyTimes?: Signalish<number | string | undefined>;
lengthAdjust?: Signalish<number | string | undefined>;
letterSpacing?: Signalish<number | string | undefined>;
'letter-spacing'?: Signalish<number | string | undefined>;
lightingColor?: Signalish<number | string | undefined>;
'lighting-color'?: Signalish<number | string | undefined>;
limitingConeAngle?: Signalish<number | string | undefined>;
local?: Signalish<number | string | undefined>;
markerEnd?: Signalish<string | undefined>;
'marker-end'?: Signalish<string | undefined>;
markerHeight?: Signalish<number | string | undefined>;
markerMid?: Signalish<string | undefined>;
'marker-mid'?: Signalish<string | undefined>;
markerStart?: Signalish<string | undefined>;
'marker-start'?: Signalish<string | undefined>;
markerUnits?: Signalish<number | string | undefined>;
markerWidth?: Signalish<number | string | undefined>;
mask?: Signalish<string | undefined>;
maskContentUnits?: Signalish<number | string | undefined>;
maskUnits?: Signalish<number | string | undefined>;
mathematical?: Signalish<number | string | undefined>;
mode?: Signalish<number | string | undefined>;
numOctaves?: Signalish<number | string | undefined>;
offset?: Signalish<number | string | undefined>;
opacity?: Signalish<number | string | undefined>;
operator?: Signalish<number | string | undefined>;
order?: Signalish<number | string | undefined>;
orient?: Signalish<number | string | undefined>;
orientation?: Signalish<number | string | undefined>;
origin?: Signalish<number | string | undefined>;
overflow?: Signalish<number | string | undefined>;
overlinePosition?: Signalish<number | string | undefined>;
'overline-position'?: Signalish<number | string | undefined>;
overlineThickness?: Signalish<number | string | undefined>;
'overline-thickness'?: Signalish<number | string | undefined>;
paintOrder?: Signalish<number | string | undefined>;
'paint-order'?: Signalish<number | string | undefined>;
panose1?: Signalish<number | string | undefined>;
'panose-1'?: Signalish<number | string | undefined>;
pathLength?: Signalish<number | string | undefined>;
patternContentUnits?: Signalish<string | undefined>;
patternTransform?: Signalish<number | string | undefined>;
patternUnits?: Signalish<string | undefined>;
pointerEvents?: Signalish<number | string | undefined>;
'pointer-events'?: Signalish<number | string | undefined>;
points?: Signalish<string | undefined>;
pointsAtX?: Signalish<number | string | undefined>;
pointsAtY?: Signalish<number | string | undefined>;
pointsAtZ?: Signalish<number | string | undefined>;
preserveAlpha?: Signalish<number | string | undefined>;
preserveAspectRatio?: Signalish<string | undefined>;
primitiveUnits?: Signalish<number | string | undefined>;
r?: Signalish<number | string | undefined>;
radius?: Signalish<number | string | undefined>;
refX?: Signalish<number | string | undefined>;
refY?: Signalish<number | string | undefined>;
renderingIntent?: Signalish<number | string | undefined>;
'rendering-intent'?: Signalish<number | string | undefined>;
repeatCount?: Signalish<number | string | undefined>;
'repeat-count'?: Signalish<number | string | undefined>;
repeatDur?: Signalish<number | string | undefined>;
'repeat-dur'?: Signalish<number | string | undefined>;
requiredExtensions?: Signalish<number | string | undefined>;
requiredFeatures?: Signalish<number | string | undefined>;
restart?: Signalish<number | string | undefined>;
result?: Signalish<string | undefined>;
rotate?: Signalish<number | string | undefined>;
rx?: Signalish<number | string | undefined>;
ry?: Signalish<number | string | undefined>;
scale?: Signalish<number | string | undefined>;
seed?: Signalish<number | string | undefined>;
shapeRendering?: Signalish<number | string | undefined>;
'shape-rendering'?: Signalish<number | string | undefined>;
slope?: Signalish<number | string | undefined>;
spacing?: Signalish<number | string | undefined>;
specularConstant?: Signalish<number | string | undefined>;
specularExponent?: Signalish<number | string | undefined>;
speed?: Signalish<number | string | undefined>;
spreadMethod?: Signalish<string | undefined>;
startOffset?: Signalish<number | string | undefined>;
stdDeviation?: Signalish<number | string | undefined>;
stemh?: Signalish<number | string | undefined>;
stemv?: Signalish<number | string | undefined>;
stitchTiles?: Signalish<number | string | undefined>;
stopColor?: Signalish<string | undefined>;
'stop-color'?: Signalish<string | undefined>;
stopOpacity?: Signalish<number | string | undefined>;
'stop-opacity'?: Signalish<number | string | undefined>;
strikethroughPosition?: Signalish<number | string | undefined>;
'strikethrough-position'?: Signalish<number | string | undefined>;
strikethroughThickness?: Signalish<number | string | undefined>;
'strikethrough-thickness'?: Signalish<number | string | undefined>;
string?: Signalish<number | string | undefined>;
stroke?: Signalish<string | undefined>;
strokeDasharray?: Signalish<string | number | undefined>;
'stroke-dasharray'?: Signalish<string | number | undefined>;
strokeDashoffset?: Signalish<string | number | undefined>;
'stroke-dashoffset'?: Signalish<string | number | undefined>;
strokeLinecap?: Signalish<
'butt' | 'round' | 'square' | 'inherit' | undefined
>;
'stroke-linecap'?: Signalish<
'butt' | 'round' | 'square' | 'inherit' | undefined
>;
strokeLinejoin?: Signalish<
'miter' | 'round' | 'bevel' | 'inherit' | undefined
>;
'stroke-linejoin'?: Signalish<
'miter' | 'round' | 'bevel' | 'inherit' | undefined
>;
strokeMiterlimit?: Signalish<string | number | undefined>;
'stroke-miterlimit'?: Signalish<string | number | undefined>;
strokeOpacity?: Signalish<number | string | undefined>;
'stroke-opacity'?: Signalish<number | string | undefined>;
strokeWidth?: Signalish<number | string | undefined>;
'stroke-width'?: Signalish<number | string | undefined>;
surfaceScale?: Signalish<number | string | undefined>;
systemLanguage?: Signalish<number | string | undefined>;
tableValues?: Signalish<number | string | undefined>;
targetX?: Signalish<number | string | undefined>;
targetY?: Signalish<number | string | undefined>;
textAnchor?: Signalish<string | undefined>;
'text-anchor'?: Signalish<string | undefined>;
textDecoration?: Signalish<number | string | undefined>;
'text-decoration'?: Signalish<number | string | undefined>;
textLength?: Signalish<number | string | undefined>;
textRendering?: Signalish<number | string | undefined>;
'text-rendering'?: Signalish<number | string | undefined>;
to?: Signalish<number | string | undefined>;
transform?: Signalish<string | undefined>;
transformOrigin?: Signalish<string | undefined>;
'transform-origin'?: Signalish<string | undefined>;
u1?: Signalish<number | string | undefined>;
u2?: Signalish<number | string | undefined>;
underlinePosition?: Signalish<number | string | undefined>;
'underline-position'?: Signalish<number | string | undefined>;
underlineThickness?: Signalish<number | string | undefined>;
'underline-thickness'?: Signalish<number | string | undefined>;
unicode?: Signalish<number | string | undefined>;
unicodeBidi?: Signalish<number | string | undefined>;
'unicode-bidi'?: Signalish<number | string | undefined>;
unicodeRange?: Signalish<number | string | undefined>;
'unicode-range'?: Signalish<number | string | undefined>;
unitsPerEm?: Signalish<number | string | undefined>;
'units-per-em'?: Signalish<number | string | undefined>;
vAlphabetic?: Signalish<number | string | undefined>;
'v-alphabetic'?: Signalish<number | string | undefined>;
values?: Signalish<string | undefined>;
vectorEffect?: Signalish<number | string | undefined>;
'vector-effect'?: Signalish<number | string | undefined>;
version?: Signalish<string | undefined>;
vertAdvY?: Signalish<number | string | undefined>;
'vert-adv-y'?: Signalish<number | string | undefined>;
vertOriginX?: Signalish<number | string | undefined>;
'vert-origin-x'?: Signalish<number | string | undefined>;
vertOriginY?: Signalish<number | string | undefined>;
'vert-origin-y'?: Signalish<number | string | undefined>;
vHanging?: Signalish<number | string | undefined>;
'v-hanging'?: Signalish<number | string | undefined>;
vIdeographic?: Signalish<number | string | undefined>;
'v-ideographic'?: Signalish<number | string | undefined>;
viewBox?: Signalish<string | undefined>;
viewTarget?: Signalish<number | string | undefined>;
visibility?: Signalish<number | string | undefined>;
vMathematical?: Signalish<number | string | undefined>;
'v-mathematical'?: Signalish<number | string | undefined>;
width?: Signalish<number | string | undefined>;
wordSpacing?: Signalish<number | string | undefined>;
'word-spacing'?: Signalish<number | string | undefined>;
writingMode?: Signalish<number | string | undefined>;
'writing-mode'?: Signalish<number | string | undefined>;
x1?: Signalish<number | string | undefined>;
x2?: Signalish<number | string | undefined>;
x?: Signalish<number | string | undefined>;
xChannelSelector?: Signalish<string | undefined>;
xHeight?: Signalish<number | string | undefined>;
'x-height'?: Signalish<number | string | undefined>;
xlinkActuate?: Signalish<string | undefined>;
'xlink:actuate'?: Signalish<SVGAttributes['xlinkActuate']>;
xlinkArcrole?: Signalish<string | undefined>;
'xlink:arcrole'?: Signalish<string | undefined>;
xlinkHref?: Signalish<string | undefined>;
'xlink:href'?: Signalish<string | undefined>;
xlinkRole?: Signalish<string | undefined>;
'xlink:role'?: Signalish<string | undefined>;
xlinkShow?: Signalish<string | undefined>;
'xlink:show'?: Signalish<string | undefined>;
xlinkTitle?: Signalish<string | undefined>;
'xlink:title'?: Signalish<string | undefined>;
xlinkType?: Signalish<string | undefined>;
'xlink:type'?: Signalish<string | undefined>;
xmlBase?: Signalish<string | undefined>;
'xml:base'?: Signalish<string | undefined>;
xmlLang?: Signalish<string | undefined>;
'xml:lang'?: Signalish<string | undefined>;
xmlns?: Signalish<string | undefined>;
xmlnsXlink?: Signalish<string | undefined>;
xmlSpace?: Signalish<string | undefined>;
'xml:space'?: Signalish<string | undefined>;
y1?: Signalish<number | string | undefined>;
y2?: Signalish<number | string | undefined>;
y?: Signalish<number | string | undefined>;
yChannelSelector?: Signalish<string | undefined>;
z?: Signalish<number | string | undefined>;
zoomAndPan?: Signalish<string | undefined>;
}
export interface PathAttributes {
d: string;
}
export type TargetedEvent<
Target extends EventTarget = EventTarget,
TypedEvent extends Event = Event
> = Omit<TypedEvent, 'currentTarget'> & {
readonly currentTarget: Target;
};
export type TargetedAnimationEvent<Target extends EventTarget> =
TargetedEvent<Target, AnimationEvent>;
export type TargetedClipboardEvent<Target extends EventTarget> =
TargetedEvent<Target, ClipboardEvent>;
export type TargetedCompositionEvent<Target extends EventTarget> =
TargetedEvent<Target, CompositionEvent>;
export type TargetedDragEvent<Target extends EventTarget> = TargetedEvent<
Target,
DragEvent
>;
export type TargetedFocusEvent<Target extends EventTarget> = TargetedEvent<
Target,
FocusEvent
>;
export type TargetedInputEvent<Target extends EventTarget> = TargetedEvent<
Target,
InputEvent
>;
export type TargetedKeyboardEvent<Target extends EventTarget> = TargetedEvent<
Target,
KeyboardEvent
>;
export type TargetedMouseEvent<Target extends EventTarget> = TargetedEvent<
Target,
MouseEvent
>;
export type TargetedPointerEvent<Target extends EventTarget> = TargetedEvent<
Target,
PointerEvent
>;
export type TargetedSubmitEvent<Target extends EventTarget> = TargetedEvent<
Target,
SubmitEvent
>;
export type TargetedTouchEvent<Target extends EventTarget> = TargetedEvent<
Target,
TouchEvent
>;
export type TargetedTransitionEvent<Target extends EventTarget> =
TargetedEvent<Target, TransitionEvent>;
export type TargetedUIEvent<Target extends EventTarget> = TargetedEvent<
Target,
UIEvent
>;
export type TargetedWheelEvent<Target extends EventTarget> = TargetedEvent<
Target,
WheelEvent
>;
export type TargetedPictureInPictureEvent<Target extends EventTarget> =
TargetedEvent<Target, PictureInPictureEvent>;
export type EventHandlerObject<E extends TargetedEvent> = {
handleEvent(e: E): unknown;
};
export type EventHandler<E extends TargetedEvent> =
| {
bivarianceHack(event: E): void;
}['bivarianceHack']
| EventHandlerObject<E>;
export type AnimationEventHandler<Target extends EventTarget> = EventHandler<
TargetedAnimationEvent<Target>
>;
export type ClipboardEventHandler<Target extends EventTarget> = EventHandler<
TargetedClipboardEvent<Target>
>;
export type CompositionEventHandler<Target extends EventTarget> =
EventHandler<TargetedCompositionEvent<Target>>;
export type DragEventHandler<Target extends EventTarget> = EventHandler<
TargetedDragEvent<Target>
>;
export type FocusEventHandler<Target extends EventTarget> = EventHandler<
TargetedFocusEvent<Target>
>;
export type GenericEventHandler<Target extends EventTarget> = EventHandler<
TargetedEvent<Target>
>;
export type InputEventHandler<Target extends EventTarget> = EventHandler<
TargetedInputEvent<Target>
>;
export type KeyboardEventHandler<Target extends EventTarget> = EventHandler<
TargetedKeyboardEvent<Target>
>;
export type MouseEventHandler<Target extends EventTarget> = EventHandler<
TargetedMouseEvent<Target>
>;
export type PointerEventHandler<Target extends EventTarget> = EventHandler<
TargetedPointerEvent<Target>
>;
export type SubmitEventHandler<Target extends EventTarget> = EventHandler<
TargetedSubmitEvent<Target>
>;
export type TouchEventHandler<Target extends EventTarget> = EventHandler<
TargetedTouchEvent<Target>
>;
export type TransitionEventHandler<Target extends EventTarget> = EventHandler<
TargetedTransitionEvent<Target>
>;
export type UIEventHandler<Target extends EventTarget> = EventHandler<
TargetedUIEvent<Target>
>;
export type WheelEventHandler<Target extends EventTarget> = EventHandler<
TargetedWheelEvent<Target>
>;
export type PictureInPictureEventHandler<Target extends EventTarget> =
EventHandler<TargetedPictureInPictureEvent<Target>>;
export interface DOMAttributes<Target extends EventTarget>
extends PreactDOMAttributes {
// Image Events
onLoad?: GenericEventHandler<Target> | undefined;
onLoadCapture?: GenericEventHandler<Target> | undefined;
onError?: GenericEventHandler<Target> | undefined;
onErrorCapture?: GenericEventHandler<Target> | undefined;
// Clipboard Events
onCopy?: ClipboardEventHandler<Target> | undefined;
onCopyCapture?: ClipboardEventHandler<Target> | undefined;
onCut?: ClipboardEventHandler<Target> | undefined;
onCutCapture?: ClipboardEventHandler<Target> | undefined;
onPaste?: ClipboardEventHandler<Target> | undefined;
onPasteCapture?: ClipboardEventHandler<Target> | undefined;
// Composition Events
onCompositionEnd?: CompositionEventHandler<Target> | undefined;
onCompositionEndCapture?: CompositionEventHandler<Target> | undefined;
onCompositionStart?: CompositionEventHandler<Target> | undefined;
onCompositionStartCapture?: CompositionEventHandler<Target> | undefined;
onCompositionUpdate?: CompositionEventHandler<Target> | undefined;
onCompositionUpdateCapture?: CompositionEventHandler<Target> | undefined;
// Details Events
onToggle?: GenericEventHandler<Target> | undefined;
// Dialog Events
onClose?: GenericEventHandler<Target> | undefined;
onCancel?: GenericEventHandler<Target> | undefined;
// Focus Events
onFocus?: FocusEventHandler<Target> | undefined;
onFocusCapture?: FocusEventHandler<Target> | undefined;
onFocusIn?: FocusEventHandler<Target> | undefined;
onFocusInCapture?: FocusEventHandler<Target> | undefined;
onFocusOut?: FocusEventHandler<Target> | undefined;
onFocusOutCapture?: FocusEventHandler<Target> | undefined;
onBlur?: FocusEventHandler<Target> | undefined;
onBlurCapture?: FocusEventHandler<Target> | undefined;
// Form Events
onChange?: GenericEventHandler<Target> | undefined;
onChangeCapture?: GenericEventHandler<Target> | undefined;
onInput?: InputEventHandler<Target> | undefined;
onInputCapture?: InputEventHandler<Target> | undefined;
onBeforeInput?: InputEventHandler<Target> | undefined;
onBeforeInputCapture?: InputEventHandler<Target> | undefined;
onSearch?: GenericEventHandler<Target> | undefined;
onSearchCapture?: GenericEventHandler<Target> | undefined;
onSubmit?: SubmitEventHandler<Target> | undefined;
onSubmitCapture?: SubmitEventHandler<Target> | undefined;
onInvalid?: GenericEventHandler<Target> | undefined;
onInvalidCapture?: GenericEventHandler<Target> | undefined;
onReset?: GenericEventHandler<Target> | undefined;
onResetCapture?: GenericEventHandler<Target> | undefined;
onFormData?: GenericEventHandler<Target> | undefined;
onFormDataCapture?: GenericEventHandler<Target> | undefined;
// Keyboard Events
onKeyDown?: KeyboardEventHandler<Target> | undefined;
onKeyDownCapture?: KeyboardEventHandler<Target> | undefined;
onKeyPress?: KeyboardEventHandler<Target> | undefined;
onKeyPressCapture?: KeyboardEventHandler<Target> | undefined;
onKeyUp?: KeyboardEventHandler<Target> | undefined;
onKeyUpCapture?: KeyboardEventHandler<Target> | undefined;
// Media Events
onAbort?: GenericEventHandler<Target> | undefined;
onAbortCapture?: GenericEventHandler<Target> | undefined;
onCanPlay?: GenericEventHandler<Target> | undefined;
onCanPlayCapture?: GenericEventHandler<Target> | undefined;
onCanPlayThrough?: GenericEventHandler<Target> | undefined;
onCanPlayThroughCapture?: GenericEventHandler<Target> | undefined;
onDurationChange?: GenericEventHandler<Target> | undefined;
onDurationChangeCapture?: GenericEventHandler<Target> | undefined;
onEmptied?: GenericEventHandler<Target> | undefined;
onEmptiedCapture?: GenericEventHandler<Target> | undefined;
onEncrypted?: GenericEventHandler<Target> | undefined;
onEncryptedCapture?: GenericEventHandler<Target> | undefined;
onEnded?: GenericEventHandler<Target> | undefined;
onEndedCapture?: GenericEventHandler<Target> | undefined;
onLoadedData?: GenericEventHandler<Target> | undefined;
onLoadedDataCapture?: GenericEventHandler<Target> | undefined;
onLoadedMetadata?: GenericEventHandler<Target> | undefined;
onLoadedMetadataCapture?: GenericEventHandler<Target> | undefined;
onLoadStart?: GenericEventHandler<Target> | undefined;
onLoadStartCapture?: GenericEventHandler<Target> | undefined;
onPause?: GenericEventHandler<Target> | undefined;
onPauseCapture?: GenericEventHandler<Target> | undefined;
onPlay?: GenericEventHandler<Target> | undefined;
onPlayCapture?: GenericEventHandler<Target> | undefined;
onPlaying?: GenericEventHandler<Target> | undefined;
onPlayingCapture?: GenericEventHandler<Target> | undefined;
onProgress?: GenericEventHandler<Target> | undefined;
onProgressCapture?: GenericEventHandler<Target> | undefined;
onRateChange?: GenericEventHandler<Target> | undefined;
onRateChangeCapture?: GenericEventHandler<Target> | undefined;
onSeeked?: GenericEventHandler<Target> | undefined;
onSeekedCapture?: GenericEventHandler<Target> | undefined;
onSeeking?: GenericEventHandler<Target> | undefined;
onSeekingCapture?: GenericEventHandler<Target> | undefined;
onStalled?: GenericEventHandler<Target> | undefined;
onStalledCapture?: GenericEventHandler<Target> | undefined;
onSuspend?: GenericEventHandler<Target> | undefined;
onSuspendCapture?: GenericEventHandler<Target> | undefined;
onTimeUpdate?: GenericEventHandler<Target> | undefined;
onTimeUpdateCapture?: GenericEventHandler<Target> | undefined;
onVolumeChange?: GenericEventHandler<Target> | undefined;
onVolumeChangeCapture?: GenericEventHandler<Target> | undefined;
onWaiting?: GenericEventHandler<Target> | undefined;
onWaitingCapture?: GenericEventHandler<Target> | undefined;
// MouseEvents
onClick?: MouseEventHandler<Target> | undefined;
onClickCapture?: MouseEventHandler<Target> | undefined;
onContextMenu?: MouseEventHandler<Target> | undefined;
onContextMenuCapture?: MouseEventHandler<Target> | undefined;
onDblClick?: MouseEventHandler<Target> | undefined;
onDblClickCapture?: MouseEventHandler<Target> | undefined;
onDrag?: DragEventHandler<Target> | undefined;
onDragCapture?: DragEventHandler<Target> | undefined;
onDragEnd?: DragEventHandler<Target> | undefined;
onDragEndCapture?: DragEventHandler<Target> | undefined;
onDragEnter?: DragEventHandler<Target> | undefined;
onDragEnterCapture?: DragEventHandler<Target> | undefined;
onDragExit?: DragEventHandler<Target> | undefined;
onDragExitCapture?: DragEventHandler<Target> | undefined;
onDragLeave?: DragEventHandler<Target> | undefined;
onDragLeaveCapture?: DragEventHandler<Target> | undefined;
onDragOver?: DragEventHandler<Target> | undefined;
onDragOverCapture?: DragEventHandler<Target> | undefined;
onDragStart?: DragEventHandler<Target> | undefined;
onDragStartCapture?: DragEventHandler<Target> | undefined;
onDrop?: DragEventHandler<Target> | undefined;
onDropCapture?: DragEventHandler<Target> | undefined;
onMouseDown?: MouseEventHandler<Target> | undefined;
onMouseDownCapture?: MouseEventHandler<Target> | undefined;
onMouseEnter?: MouseEventHandler<Target> | undefined;
onMouseEnterCapture?: MouseEventHandler<Target> | undefined;
onMouseLeave?: MouseEventHandler<Target> | undefined;
onMouseLeaveCapture?: MouseEventHandler<Target> | undefined;
onMouseMove?: MouseEventHandler<Target> | undefined;
onMouseMoveCapture?: MouseEventHandler<Target> | undefined;
onMouseOut?: MouseEventHandler<Target> | undefined;
onMouseOutCapture?: MouseEventHandler<Target> | undefined;
onMouseOver?: MouseEventHandler<Target> | undefined;
onMouseOverCapture?: MouseEventHandler<Target> | undefined;
onMouseUp?: MouseEventHandler<Target> | undefined;
onMouseUpCapture?: MouseEventHandler<Target> | undefined;
// Selection Events
onSelect?: GenericEventHandler<Target> | undefined;
onSelectCapture?: GenericEventHandler<Target> | undefined;
// Touch Events
onTouchCancel?: TouchEventHandler<Target> | undefined;
onTouchCancelCapture?: TouchEventHandler<Target> | undefined;
onTouchEnd?: TouchEventHandler<Target> | undefined;
onTouchEndCapture?: TouchEventHandler<Target> | undefined;
onTouchMove?: TouchEventHandler<Target> | undefined;
onTouchMoveCapture?: TouchEventHandler<Target> | undefined;
onTouchStart?: TouchEventHandler<Target> | undefined;
onTouchStartCapture?: TouchEventHandler<Target> | undefined;
// Pointer Events
onPointerOver?: PointerEventHandler<Target> | undefined;
onPointerOverCapture?: PointerEventHandler<Target> | undefined;
onPointerEnter?: PointerEventHandler<Target> | undefined;
onPointerEnterCapture?: PointerEventHandler<Target> | undefined;
onPointerDown?: PointerEventHandler<Target> | undefined;
onPointerDownCapture?: PointerEventHandler<Target> | undefined;
onPointerMove?: PointerEventHandler<Target> | undefined;
onPointerMoveCapture?: PointerEventHandler<Target> | undefined;
onPointerUp?: PointerEventHandler<Target> | undefined;
onPointerUpCapture?: PointerEventHandler<Target> | undefined;
onPointerCancel?: PointerEventHandler<Target> | undefined;
onPointerCancelCapture?: PointerEventHandler<Target> | undefined;
onPointerOut?: PointerEventHandler<Target> | undefined;
onPointerOutCapture?: PointerEventHandler<Target> | undefined;
onPointerLeave?: PointerEventHandler<Target> | undefined;
onPointerLeaveCapture?: PointerEventHandler<Target> | undefined;
onGotPointerCapture?: PointerEventHandler<Target> | undefined;
onGotPointerCaptureCapture?: PointerEventHandler<Target> | undefined;
onLostPointerCapture?: PointerEventHandler<Target> | undefined;
onLostPointerCaptureCapture?: PointerEventHandler<Target> | undefined;
// UI Events
onScroll?: UIEventHandler<Target> | undefined;
onScrollEnd?: UIEventHandler<Target> | undefined;
onScrollCapture?: UIEventHandler<Target> | undefined;
// Wheel Events
onWheel?: WheelEventHandler<Target> | undefined;
onWheelCapture?: WheelEventHandler<Target> | undefined;
// Animation Events
onAnimationStart?: AnimationEventHandler<Target> | undefined;
onAnimationStartCapture?: AnimationEventHandler<Target> | undefined;
onAnimationEnd?: AnimationEventHandler<Target> | undefined;
onAnimationEndCapture?: AnimationEventHandler<Target> | undefined;
onAnimationIteration?: AnimationEventHandler<Target> | undefined;
onAnimationIterationCapture?: AnimationEventHandler<Target> | undefined;
// Transition Events
onTransitionCancel?: TransitionEventHandler<Target>;
onTransitionCancelCapture?: TransitionEventHandler<Target>;
onTransitionEnd?: TransitionEventHandler<Target>;
onTransitionEndCapture?: TransitionEventHandler<Target>;
onTransitionRun?: TransitionEventHandler<Target>;
onTransitionRunCapture?: TransitionEventHandler<Target>;
onTransitionStart?: TransitionEventHandler<Target>;
onTransitionStartCapture?: TransitionEventHandler<Target>;
// PictureInPicture Events
onEnterPictureInPicture?: PictureInPictureEventHandler<Target>;
onEnterPictureInPictureCapture?: PictureInPictureEventHandler<Target>;
onLeavePictureInPicture?: PictureInPictureEventHandler<Target>;
onLeavePictureInPictureCapture?: PictureInPictureEventHandler<Target>;
onResize?: PictureInPictureEventHandler<Target>;
onResizeCapture?: PictureInPictureEventHandler<Target>;
}
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
export interface AriaAttributes {
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
'aria-activedescendant'?: Signalish<string | undefined>;
/** 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. */
'aria-atomic'?: Signalish<Booleanish | undefined>;
/**
* 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
* presented if they are made.
*/
'aria-autocomplete'?: Signalish<
'none' | 'inline' | 'list' | 'both' | undefined
>;
/**
* Defines a string value that labels the current element, which is intended to be converted into Braille.
* @see aria-label.
*/
'aria-braillelabel'?: Signalish<string | undefined>;
/**
* Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
* @see aria-roledescription.
*/
'aria-brailleroledescription'?: Signalish<string | undefined>;
/** 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. */
'aria-busy'?: Signalish<Booleanish | undefined>;
/**
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
* @see aria-pressed
* @see aria-selected.
*/
'aria-checked'?: Signalish<Booleanish | 'mixed' | undefined>;
/**
* Defines the total number of columns in a table, grid, or treegrid.
* @see aria-colindex.
*/
'aria-colcount'?: Signalish<number | undefined>;
/**
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
* @see aria-colcount
* @see aria-colspan.
*/
'aria-colindex'?: Signalish<number | undefined>;
/**
* Defines a human readable text alternative of aria-colindex.
* @see aria-rowindextext.
*/
'aria-colindextext'?: Signalish<string | undefined>;
/**
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
* @see aria-colindex
* @see aria-rowspan.
*/
'aria-colspan'?: Signalish<number | undefined>;
/**
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
* @see aria-owns.
*/
'aria-controls'?: Signalish<string | undefined>;
/** Indicates the element that represents the current item within a container or set of related elements. */
'aria-current'?: Signalish<
Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined
>;
/**
* Identifies the element (or elements) that describes the object.
* @see aria-labelledby
*/
'aria-describedby'?: Signalish<string | undefined>;
/**
* Defines a string value that describes or annotates the current element.
* @see related aria-describedby.
*/
'aria-description'?: Signalish<string | undefined>;
/**
* Identifies the element that provides a detailed, extended description for the object.
* @see aria-describedby.
*/
'aria-details'?: Signalish<string | undefined>;
/**
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
* @see aria-hidden
* @see aria-readonly.
*/
'aria-disabled'?: Signalish<Booleanish | undefined>;
/**
* Indicates what functions can be performed when a dragged object is released on the drop target.
* @deprecated in ARIA 1.1
*/
'aria-dropeffect'?: Signalish<
'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined
>;
/**
* Identifies the element that provides an error message for the object.
* @see aria-invalid
* @see aria-describedby.
*/
'aria-errormessage'?: Signalish<string | undefined>;
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
'aria-expanded'?: Signalish<Booleanish | undefined>;
/**
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
* allows assistive technology to override the general default of reading in document source order.
*/
'aria-flowto'?: Signalish<string | undefined>;
/**
* Indicates an element's "grabbed" state in a drag-and-drop operation.
* @deprecated in ARIA 1.1
*/
'aria-grabbed'?: Signalish<Booleanish | undefined>;
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
'aria-haspopup'?: Signalish<
Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined
>;
/**
* Indicates whether the element is exposed to an accessibility API.
* @see aria-disabled.
*/
'aria-hidden'?: Signalish<Booleanish | undefined>;
/**
* Indicates the entered value does not conform to the format expected by the application.
* @see aria-errormessage.
*/
'aria-invalid'?: Signalish<Booleanish | 'grammar' | 'spelling' | undefined>;
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
'aria-keyshortcuts'?: Signalish<string | undefined>;
/**
* Defines a string value that labels the current element.
* @see aria-labelledby.
*/
'aria-label'?: Signalish<string | undefined>;
/**
* Identifies the element (or elements) that labels the current element.
* @see aria-describedby.
*/
'aria-labelledby'?: Signalish<string | undefined>;
/** Defines the hierarchical level of an element within a structure. */
'aria-level'?: Signalish<number | undefined>;
/** 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. */
'aria-live'?: Signalish<'off' | 'assertive' | 'polite' | undefined>;
/** Indicates whether an element is modal when displayed. */
'aria-modal'?: Signalish<Booleanish | undefined>;
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
'aria-multiline'?: Signalish<Booleanish | undefined>;
/** Indicates that the user may select more than one item from the current selectable descendants. */
'aria-multiselectable'?: Signalish<Booleanish | undefined>;
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
'aria-orientation'?: Signalish<'horizontal' | 'vertical' | undefined>;
/**
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
* @see aria-controls.
*/
'aria-owns'?: Signalish<string | undefined>;
/**
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
* A hint could be a sample value or a brief description of the expected format.
*/
'aria-placeholder'?: Signalish<string | undefined>;
/**
* 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.
* @see aria-setsize.
*/
'aria-posinset'?: Signalish<number | undefined>;
/**
* Indicates the current "pressed" state of toggle buttons.
* @see aria-checked
* @see aria-selected.
*/
'aria-pressed'?: Signalish<Booleanish | 'mixed' | undefined>;
/**
* Indicates that the element is not editable, but is otherwise operable.
* @see aria-disabled.
*/
'aria-readonly'?: Signalish<Booleanish | undefined>;
/**
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
* @see aria-atomic.
*/
'aria-relevant'?: Signalish<
| 'additions'
| 'additions removals'
| 'additions text'
| 'all'
| 'removals'
| 'removals additions'
| 'removals text'
| 'text'
| 'text additions'
| 'text removals'
| undefined
>;
/** Indicates that user input is required on the element before a form may be submitted. */
'aria-required'?: Signalish<Booleanish | undefined>;
/** Defines a human-readable, author-localized description for the role of an element. */
'aria-roledescription'?: Signalish<string | undefined>;
/**
* Defines the total number of rows in a table, grid, or treegrid.
* @see aria-rowindex.
*/
'aria-rowcount'?: Signalish<number | undefined>;
/**
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.