@@ -34,26 +34,26 @@ type domProps = {
34
34
/* accessibility */
35
35
/* https://www.w3.org/TR/wai-aria-1.1/ */
36
36
/* https://accessibilityresources.org/<aria-tag> is a great resource for these */
37
- /* [@optional] [@as "aria-current"] ariaCurrent: page|step|location|date|time|true| false, */
37
+ @ as ( "aria-current" ) ariaCurrent : [ # page |# step |# location |# date |# time |# \ " true" | # \ " false" ],
38
38
@as ("aria-details" )
39
39
ariaDetails ?: string ,
40
40
@as ("aria-disabled" )
41
41
ariaDisabled ?: bool ,
42
42
@as ("aria-hidden" )
43
43
ariaHidden ?: bool ,
44
- /* [@optional] [@as "aria-invalid"] ariaInvalid: grammar|false| spelling|true, */
44
+ @ as ( "aria-invalid" ) ariaInvalid : [ # grammar |# spelling |# " \ t rue" | # \ "false" ],
45
45
@as ("aria-keyshortcuts" )
46
46
ariaKeyshortcuts ?: string ,
47
47
@as ("aria-label" )
48
48
ariaLabel ?: string ,
49
49
@as ("aria-roledescription" )
50
50
ariaRoledescription ?: string ,
51
51
/* Widget Attributes */
52
- /* [@optional] [@as "aria-autocomplete"] ariaAutocomplete: inline|list|both|none, */
53
- /* [@optional] [@as "aria-checked"] ariaChecked: true| false| mixed, /* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */ */
52
+ @ as ( "aria-autocomplete" ) ariaAutocomplete : [ # inline |# list |# both |# none],
53
+ @ as ( "aria-checked" ) ariaChecked : [ # \ " true" | # \ " false" | # \ " mixed" ] , /* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */
54
54
@as ("aria-expanded" )
55
55
ariaExpanded ?: bool ,
56
- /* [@optional] [@as "aria-haspopup"] ariaHaspopup: false|true| menu|listbox|tree|grid|dialog, */
56
+ @ as ( "aria-haspopup" ) ariaHaspopup : [ # menu |# listbox |# tree |# grid |# dialog| # " \t rue" | # " \f alse" ],
57
57
@as ("aria-level" )
58
58
ariaLevel ?: int ,
59
59
@as ("aria-modal" )
@@ -62,10 +62,10 @@ type domProps = {
62
62
ariaMultiline ?: bool ,
63
63
@as ("aria-multiselectable" )
64
64
ariaMultiselectable ?: bool ,
65
- /* [@optional] [@as "aria-orientation"] ariaOrientation: horizontal|vertical|undefined, */
65
+ @ as ( "aria-orientation" ) ariaOrientation : [ # horizontal |# vertical |# undefined],
66
66
@as ("aria-placeholder" )
67
67
ariaPlaceholder ?: string ,
68
- /* [@optional] [@as "aria-pressed"] ariaPressed: true| false| mixed, /* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */ */
68
+ @ as ( "aria-pressed" ) ariaPressed : [ # \ " true" | # \ " false" | # mixed] , /* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */
69
69
@as ("aria-readonly" )
70
70
ariaReadonly ?: bool ,
71
71
@as ("aria-required" )
@@ -87,11 +87,11 @@ type domProps = {
87
87
ariaAtomic ?: bool ,
88
88
@as ("aria-busy" )
89
89
ariaBusy ?: bool ,
90
- /* [@optional] [@as "aria-live"] ariaLive: off|polite|assertive|rude, */
90
+ @ as ( "aria-live" ) ariaLive : [ # off |# polite |# assertive |# rude],
91
91
@as ("aria-relevant" )
92
92
ariaRelevant ?: string ,
93
93
/* Drag-and-Drop Attributes */
94
- /* [@optional] [@as "aria-dropeffect"] ariaDropeffect: copy|move|link|execute|popup|none, */
94
+ @ as ( "aria-dropeffect" ) ariaDropeffect : [ # copy |# move |# link |# execute |# popup |# none],
95
95
@as ("aria-grabbed" )
96
96
ariaGrabbed ?: bool ,
97
97
/* Relationship Attributes */
0 commit comments