@@ -1568,20 +1568,22 @@ export namespace JSXInternal {
1568
1568
1569
1569
interface ArticleHTMLAttributes < T extends EventTarget = HTMLElement >
1570
1570
extends HTMLAttributes < T > {
1571
- role ?:
1571
+ role ?: Signalish <
1572
1572
| 'article'
1573
1573
| 'application'
1574
1574
| 'document'
1575
1575
| 'feed'
1576
1576
| 'main'
1577
1577
| 'none'
1578
1578
| 'presentation'
1579
- | 'region' ;
1579
+ | 'region'
1580
+ | undefined
1581
+ > ;
1580
1582
}
1581
1583
1582
1584
interface AsideHTMLAttributes < T extends EventTarget = HTMLElement >
1583
1585
extends HTMLAttributes < T > {
1584
- role ?:
1586
+ role ?: Signalish <
1585
1587
| 'complementary'
1586
1588
| 'feed'
1587
1589
| 'none'
@@ -1594,12 +1596,14 @@ export namespace JSXInternal {
1594
1596
| 'doc-footnote'
1595
1597
| 'doc-glossary'
1596
1598
| 'doc-pullquote'
1597
- | 'doc-tip' ;
1599
+ | 'doc-tip'
1600
+ | undefined
1601
+ > ;
1598
1602
}
1599
1603
1600
1604
interface AudioHTMLAttributes < T extends EventTarget = HTMLAudioElement >
1601
1605
extends MediaHTMLAttributes < T > {
1602
- role ?: 'application' ;
1606
+ role ?: Signalish < 'application' | undefined > ;
1603
1607
}
1604
1608
1605
1609
interface BaseHTMLAttributes < T extends EventTarget = HTMLBaseElement >
@@ -1621,7 +1625,7 @@ export namespace JSXInternal {
1621
1625
1622
1626
interface BrHTMLAttributes < T extends EventTarget = HTMLBRElement >
1623
1627
extends HTMLAttributes < T > {
1624
- role ?: 'none' | 'presentation' ;
1628
+ role ?: Signalish < 'none' | 'presentation' | undefined > ;
1625
1629
}
1626
1630
1627
1631
interface ButtonHTMLAttributes < T extends EventTarget = HTMLButtonElement >
@@ -1643,7 +1647,7 @@ export namespace JSXInternal {
1643
1647
popoverTarget ?: Signalish < string | undefined > ;
1644
1648
popovertargetaction ?: Signalish < 'hide' | 'show' | 'toggle' | undefined > ;
1645
1649
popoverTargetAction ?: Signalish < 'hide' | 'show' | 'toggle' | undefined > ;
1646
- role ?:
1650
+ role ?: Signalish <
1647
1651
| 'button'
1648
1652
| 'checkbox'
1649
1653
| 'combobox'
@@ -1658,7 +1662,9 @@ export namespace JSXInternal {
1658
1662
| 'slider'
1659
1663
| 'switch'
1660
1664
| 'tab'
1661
- | 'treeitem' ;
1665
+ | 'treeitem'
1666
+ | undefined
1667
+ > ;
1662
1668
type ?: Signalish < 'submit' | 'reset' | 'button' | undefined > ;
1663
1669
value ?: Signalish < string | number | undefined > ;
1664
1670
}
@@ -1694,7 +1700,7 @@ export namespace JSXInternal {
1694
1700
1695
1701
interface DataListHTMLAttributes < T extends EventTarget = HTMLDataListElement >
1696
1702
extends HTMLAttributes < T > {
1697
- role ?: 'listbox' ;
1703
+ role ?: Signalish < 'listbox' | undefined > ;
1698
1704
}
1699
1705
1700
1706
interface DdHTMLAttributes < T extends EventTarget = HTMLElement >
@@ -1713,31 +1719,33 @@ export namespace JSXInternal {
1713
1719
extends HTMLAttributes < T > {
1714
1720
open ?: Signalish < boolean | undefined > ;
1715
1721
onToggle ?: GenericEventHandler < T > | undefined ;
1716
- role ?: 'group' ;
1722
+ role ?: Signalish < 'group' | undefined > ;
1717
1723
}
1718
1724
1719
1725
interface DialogHTMLAttributes < T extends EventTarget = HTMLDialogElement >
1720
1726
extends HTMLAttributes < T > {
1721
1727
onCancel ?: GenericEventHandler < T > | undefined ;
1722
1728
onClose ?: GenericEventHandler < T > | undefined ;
1723
1729
open ?: Signalish < boolean | undefined > ;
1724
- role ?: 'dialog' | 'alertdialog' ;
1730
+ role ?: Signalish < 'dialog' | 'alertdialog' | undefined > ;
1725
1731
}
1726
1732
1727
1733
interface DlHTMLAttributes < T extends EventTarget = HTMLDListElement >
1728
1734
extends HTMLAttributes < T > {
1729
- role ?: 'group' | 'list' | 'none' | 'presentation' ;
1735
+ role ?: Signalish < 'group' | 'list' | 'none' | 'presentation' | undefined > ;
1730
1736
}
1731
1737
1732
1738
interface DtHTMLAttributes < T extends EventTarget = HTMLElement >
1733
1739
extends HTMLAttributes < T > {
1734
- role ?: 'listitem' ;
1740
+ role ?: Signalish < 'listitem' | undefined > ;
1735
1741
}
1736
1742
1737
1743
interface EmbedHTMLAttributes < T extends EventTarget = HTMLEmbedElement >
1738
1744
extends HTMLAttributes < T > {
1739
1745
height ?: Signalish < number | string | undefined > ;
1740
- role ?: 'application' | 'document' | 'img' | 'none' | 'presentation' ;
1746
+ role ?: Signalish <
1747
+ 'application' | 'document' | 'img' | 'none' | 'presentation' | undefined
1748
+ > ;
1741
1749
src ?: Signalish < string | undefined > ;
1742
1750
type ?: Signalish < string | undefined > ;
1743
1751
width ?: Signalish < number | string | undefined > ;
@@ -1748,23 +1756,27 @@ export namespace JSXInternal {
1748
1756
disabled ?: Signalish < boolean | undefined > ;
1749
1757
form ?: Signalish < string | undefined > ;
1750
1758
name ?: Signalish < string | undefined > ;
1751
- role ?: 'group' | 'none' | 'presentation' | 'radiogroup' ;
1759
+ role ?: Signalish <
1760
+ 'group' | 'none' | 'presentation' | 'radiogroup' | undefined
1761
+ > ;
1752
1762
}
1753
1763
1754
1764
interface FigcaptionHTMLAttributes < T extends EventTarget = HTMLElement >
1755
1765
extends HTMLAttributes < T > {
1756
- role ?: 'group' | 'none' | 'presentation' ;
1766
+ role ?: Signalish < 'group' | 'none' | 'presentation' | undefined > ;
1757
1767
}
1758
1768
1759
1769
interface FooterHTMLAttributes < T extends EventTarget = HTMLElement >
1760
1770
extends HTMLAttributes < T > {
1761
- role ?:
1771
+ role ?: Signalish <
1762
1772
| 'contentinfo'
1763
1773
| 'generic'
1764
1774
| 'group'
1765
1775
| 'none'
1766
1776
| 'presentation'
1767
- | 'doc-footnote' ;
1777
+ | 'doc-footnote'
1778
+ | undefined
1779
+ > ;
1768
1780
}
1769
1781
1770
1782
interface FormHTMLAttributes < T extends EventTarget = HTMLFormElement >
@@ -1781,13 +1793,15 @@ export namespace JSXInternal {
1781
1793
novalidate ?: Signalish < boolean | undefined > ;
1782
1794
noValidate ?: Signalish < boolean | undefined > ;
1783
1795
rel ?: Signalish < string | undefined > ;
1784
- role ?: 'form' | 'none' | 'presentation' | 'search' ;
1796
+ role ?: Signalish < 'form' | 'none' | 'presentation' | 'search' | undefined > ;
1785
1797
target ?: Signalish < string | undefined > ;
1786
1798
}
1787
1799
1788
1800
interface HeadingHTMLAttributes < T extends EventTarget = HTMLHeadingElement >
1789
1801
extends HTMLAttributes < T > {
1790
- role ?: 'heading' | 'none' | 'presentation' | 'tab' | 'doc-subtitle' ;
1802
+ role ?: Signalish <
1803
+ 'heading' | 'none' | 'presentation' | 'tab' | 'doc-subtitle' | undefined
1804
+ > ;
1791
1805
}
1792
1806
1793
1807
interface HeadHTMLAttributes < T extends EventTarget = HTMLHeadElement >
@@ -1797,17 +1811,21 @@ export namespace JSXInternal {
1797
1811
1798
1812
interface HeaderHTMLAttributes < T extends EventTarget = HTMLElement >
1799
1813
extends HTMLAttributes < T > {
1800
- role ?: 'banner' | 'generic' | 'group' | 'none' | 'presentation' ;
1814
+ role ?: Signalish <
1815
+ 'banner' | 'generic' | 'group' | 'none' | 'presentation' | undefined
1816
+ > ;
1801
1817
}
1802
1818
1803
1819
interface HrHTMLAttributes < T extends EventTarget = HTMLHRElement >
1804
1820
extends HTMLAttributes < T > {
1805
- role ?: 'separator' | 'none' | 'presentation' | 'doc-pagebreak' ;
1821
+ role ?: Signalish <
1822
+ 'separator' | 'none' | 'presentation' | 'doc-pagebreak' | undefined
1823
+ > ;
1806
1824
}
1807
1825
1808
1826
interface HtmlHTMLAttributes < T extends EventTarget = HTMLHtmlElement >
1809
1827
extends HTMLAttributes < T > {
1810
- role ?: 'document' ;
1828
+ role ?: Signalish < 'document' | undefined > ;
1811
1829
}
1812
1830
1813
1831
interface IframeHTMLAttributes < T extends EventTarget = HTMLIFrameElement >
@@ -1828,7 +1846,9 @@ export namespace JSXInternal {
1828
1846
name ?: Signalish < string | undefined > ;
1829
1847
referrerpolicy ?: Signalish < HTMLAttributeReferrerPolicy | undefined > ;
1830
1848
referrerPolicy ?: Signalish < HTMLAttributeReferrerPolicy | undefined > ;
1831
- role ?: 'application' | 'document' | 'img' | 'none' | 'presentation' ;
1849
+ role ?: Signalish <
1850
+ 'application' | 'document' | 'img' | 'none' | 'presentation' | undefined
1851
+ > ;
1832
1852
sandbox ?: Signalish < string | undefined > ;
1833
1853
/** @deprecated */
1834
1854
scrolling ?: Signalish < string | undefined > ;
@@ -2001,7 +2021,7 @@ export namespace JSXInternal {
2001
2021
2002
2022
interface MainHTMLAttributes < T extends EventTarget = HTMLElement >
2003
2023
extends HTMLAttributes < T > {
2004
- role ?: 'main' ;
2024
+ role ?: Signalish < 'main' | undefined > ;
2005
2025
}
2006
2026
2007
2027
interface MapHTMLAttributes < T extends EventTarget = HTMLMapElement >
@@ -2080,19 +2100,21 @@ export namespace JSXInternal {
2080
2100
max ?: Signalish < number | string | undefined > ;
2081
2101
min ?: Signalish < number | string | undefined > ;
2082
2102
optimum ?: Signalish < number | undefined > ;
2083
- role ?: 'meter' ;
2103
+ role ?: Signalish < 'meter' | undefined > ;
2084
2104
value ?: Signalish < string | number | undefined > ;
2085
2105
}
2086
2106
2087
2107
interface NavHTMLAttributes < T extends EventTarget = HTMLElement >
2088
2108
extends HTMLAttributes < T > {
2089
- role ?:
2109
+ role ?: Signalish <
2090
2110
| 'navigation'
2091
2111
| 'menu'
2092
2112
| 'menubar'
2093
2113
| 'none'
2094
2114
| 'presentation'
2095
- | 'tablist' ;
2115
+ | 'tablist'
2116
+ | undefined
2117
+ > ;
2096
2118
}
2097
2119
2098
2120
interface NoScriptHTMLAttributes < T extends EventTarget = HTMLElement >
@@ -2107,7 +2129,7 @@ export namespace JSXInternal {
2107
2129
form ?: Signalish < string | undefined > ;
2108
2130
height ?: Signalish < number | string | undefined > ;
2109
2131
name ?: Signalish < string | undefined > ;
2110
- role ?: 'application' | 'document' | 'img' ;
2132
+ role ?: Signalish < 'application' | 'document' | 'img' | undefined > ;
2111
2133
type ?: Signalish < string | undefined > ;
2112
2134
usemap ?: Signalish < string | undefined > ;
2113
2135
useMap ?: Signalish < string | undefined > ;
@@ -2118,7 +2140,7 @@ export namespace JSXInternal {
2118
2140
interface OlHTMLAttributes < T extends EventTarget = HTMLOListElement >
2119
2141
extends HTMLAttributes < T > {
2120
2142
reversed ?: Signalish < boolean | undefined > ;
2121
- role ?:
2143
+ role ?: Signalish <
2122
2144
| 'list'
2123
2145
| 'group'
2124
2146
| 'listbox'
@@ -2129,7 +2151,9 @@ export namespace JSXInternal {
2129
2151
| 'radiogroup'
2130
2152
| 'tablist'
2131
2153
| 'toolbar'
2132
- | 'tree' ;
2154
+ | 'tree'
2155
+ | undefined
2156
+ > ;
2133
2157
start ?: Signalish < number | undefined > ;
2134
2158
type ?: Signalish < '1' | 'a' | 'A' | 'i' | 'I' | undefined > ;
2135
2159
}
@@ -2138,14 +2162,14 @@ export namespace JSXInternal {
2138
2162
extends HTMLAttributes < T > {
2139
2163
disabled ?: Signalish < boolean | undefined > ;
2140
2164
label ?: Signalish < string | undefined > ;
2141
- role ?: 'group' ;
2165
+ role ?: Signalish < 'group' | undefined > ;
2142
2166
}
2143
2167
2144
2168
interface OptionHTMLAttributes < T extends EventTarget = HTMLOptionElement >
2145
2169
extends HTMLAttributes < T > {
2146
2170
disabled ?: Signalish < boolean | undefined > ;
2147
2171
label ?: Signalish < string | undefined > ;
2148
- role ?: 'option' ;
2172
+ role ?: Signalish < 'option' | undefined > ;
2149
2173
selected ?: Signalish < boolean | undefined > ;
2150
2174
value ?: Signalish < string | number | undefined > ;
2151
2175
}
@@ -2173,7 +2197,7 @@ export namespace JSXInternal {
2173
2197
interface ProgressHTMLAttributes < T extends EventTarget = HTMLProgressElement >
2174
2198
extends HTMLAttributes < T > {
2175
2199
max ?: Signalish < number | string | undefined > ;
2176
- role ?: 'progressbar' ;
2200
+ role ?: Signalish < 'progressbar' | undefined > ;
2177
2201
value ?: Signalish < string | number | undefined > ;
2178
2202
}
2179
2203
@@ -2204,7 +2228,15 @@ export namespace JSXInternal {
2204
2228
2205
2229
interface SearchHTMLAttributes < T extends EventTarget = HTMLElement >
2206
2230
extends HTMLAttributes < T > {
2207
- role ?: 'search' | 'form' | 'group' | 'none' | 'presentation' | 'region' ;
2231
+ role ?: Signalish <
2232
+ | 'search'
2233
+ | 'form'
2234
+ | 'group'
2235
+ | 'none'
2236
+ | 'presentation'
2237
+ | 'region'
2238
+ | undefined
2239
+ > ;
2208
2240
}
2209
2241
2210
2242
interface SelectHTMLAttributes < T extends EventTarget = HTMLSelectElement >
@@ -2218,7 +2250,7 @@ export namespace JSXInternal {
2218
2250
name ?: Signalish < string | undefined > ;
2219
2251
required ?: Signalish < boolean | undefined > ;
2220
2252
// TODO: Select w/ multiple
2221
- role ?:
2253
+ role ?: Signalish <
2222
2254
| 'region'
2223
2255
| 'generic'
2224
2256
| 'alert'
@@ -2268,7 +2300,9 @@ export namespace JSXInternal {
2268
2300
| 'doc-prologue'
2269
2301
| 'doc-pullquote'
2270
2302
| 'doc-qna'
2271
- | 'doc-toc' ;
2303
+ | 'doc-toc'
2304
+ | undefined
2305
+ > ;
2272
2306
size ?: Signalish < number | undefined > ;
2273
2307
value ?: Signalish < string | number | undefined > ;
2274
2308
onChange ?: GenericEventHandler < T > | undefined ;
@@ -2348,7 +2382,7 @@ export namespace JSXInternal {
2348
2382
placeholder ?: Signalish < string | undefined > ;
2349
2383
readOnly ?: Signalish < boolean | undefined > ;
2350
2384
required ?: Signalish < boolean | undefined > ;
2351
- role ?: 'textbox' ;
2385
+ role ?: Signalish < 'textbox' | undefined > ;
2352
2386
rows ?: Signalish < number | undefined > ;
2353
2387
value ?: Signalish < string | number | undefined > ;
2354
2388
wrap ?: Signalish < string | undefined > ;
@@ -2392,7 +2426,7 @@ export namespace JSXInternal {
2392
2426
2393
2427
interface UlHTMLAttributes < T extends EventTarget = HTMLUListElement >
2394
2428
extends HTMLAttributes < T > {
2395
- role ?:
2429
+ role ?: Signalish <
2396
2430
| 'list'
2397
2431
| 'group'
2398
2432
| 'listbox'
@@ -2403,7 +2437,9 @@ export namespace JSXInternal {
2403
2437
| 'radiogroup'
2404
2438
| 'tablist'
2405
2439
| 'toolbar'
2406
- | 'tree' ;
2440
+ | 'tree'
2441
+ | undefined
2442
+ > ;
2407
2443
}
2408
2444
2409
2445
interface VideoHTMLAttributes < T extends EventTarget = HTMLVideoElement >
@@ -2413,12 +2449,12 @@ export namespace JSXInternal {
2413
2449
width ?: Signalish < number | string | undefined > ;
2414
2450
disablePictureInPicture ?: Signalish < boolean | undefined > ;
2415
2451
disableRemotePlayback ?: Signalish < boolean | undefined > ;
2416
- role ?: 'application' ;
2452
+ role ?: Signalish < 'application' | undefined > ;
2417
2453
}
2418
2454
2419
2455
interface WbrHTMLAttributes < T extends EventTarget = HTMLElement >
2420
2456
extends HTMLAttributes < T > {
2421
- role ?: 'none' | 'presentation' ;
2457
+ role ?: Signalish < 'none' | 'presentation' | undefined > ;
2422
2458
}
2423
2459
2424
2460
export type DetailedHTMLProps <
0 commit comments