Skip to content

Commit 0dc9169

Browse files
committed
refactor: format file jsx.ts
1 parent fa1e744 commit 0dc9169

File tree

1 file changed

+76
-8
lines changed
  • packages/runtime-dom/src

1 file changed

+76
-8
lines changed

packages/runtime-dom/src/jsx.ts

+76-8
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ export interface AriaAttributes {
8484
*/
8585
'aria-controls'?: string | undefined
8686
/** Indicates the element that represents the current item within a container or set of related elements. */
87-
'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined
87+
'aria-current'?:
88+
| Booleanish
89+
| 'page'
90+
| 'step'
91+
| 'location'
92+
| 'date'
93+
| 'time'
94+
| undefined
8895
/**
8996
* Identifies the element (or elements) that describes the object.
9097
* @see aria-labelledby
@@ -104,7 +111,14 @@ export interface AriaAttributes {
104111
* Indicates what functions can be performed when a dragged object is released on the drop target.
105112
* @deprecated in ARIA 1.1
106113
*/
107-
'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined
114+
'aria-dropeffect'?:
115+
| 'none'
116+
| 'copy'
117+
| 'execute'
118+
| 'link'
119+
| 'move'
120+
| 'popup'
121+
| undefined
108122
/**
109123
* Identifies the element that provides an error message for the object.
110124
* @see aria-invalid @see aria-describedby.
@@ -123,7 +137,14 @@ export interface AriaAttributes {
123137
*/
124138
'aria-grabbed'?: Booleanish | undefined
125139
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
126-
'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined
140+
'aria-haspopup'?:
141+
| Booleanish
142+
| 'menu'
143+
| 'listbox'
144+
| 'tree'
145+
| 'grid'
146+
| 'dialog'
147+
| undefined
127148
/**
128149
* Indicates whether the element is exposed to an accessibility API.
129150
* @see aria-disabled.
@@ -188,7 +209,18 @@ export interface AriaAttributes {
188209
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
189210
* @see aria-atomic.
190211
*/
191-
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined
212+
'aria-relevant'?:
213+
| 'additions'
214+
| 'additions removals'
215+
| 'additions text'
216+
| 'all'
217+
| 'removals'
218+
| 'removals additions'
219+
| 'removals text'
220+
| 'text'
221+
| 'text additions'
222+
| 'text removals'
223+
| undefined
192224
/** Indicates that user input is required on the element before a form may be submitted. */
193225
'aria-required'?: Booleanish | undefined
194226
/** Defines a human-readable, author-localized description for the role of an element. */
@@ -299,7 +331,16 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
299331
* Hints at the type of data that might be entered by the user while editing the element or its contents
300332
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
301333
*/
302-
inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | undefined
334+
inputmode?:
335+
| 'none'
336+
| 'text'
337+
| 'tel'
338+
| 'url'
339+
| 'email'
340+
| 'numeric'
341+
| 'decimal'
342+
| 'search'
343+
| undefined
303344
/**
304345
* Specify that a standard HTML element should behave like a defined custom built-in element
305346
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
@@ -506,7 +547,15 @@ export interface InputHTMLAttributes extends HTMLAttributes {
506547
checked?: Booleanish | any[] | Set<any> | undefined // for IDE v-model multi-checkbox support
507548
crossorigin?: string | undefined
508549
disabled?: Booleanish | undefined
509-
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined
550+
enterKeyHint?:
551+
| 'enter'
552+
| 'done'
553+
| 'go'
554+
| 'next'
555+
| 'previous'
556+
| 'search'
557+
| 'send'
558+
| undefined
510559
form?: string | undefined
511560
formaction?: string | undefined
512561
formenctype?: string | undefined
@@ -815,7 +864,21 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
815864
'accent-height'?: Numberish | undefined
816865
accumulate?: 'none' | 'sum' | undefined
817866
additive?: 'replace' | 'sum' | undefined
818-
'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit' | undefined
867+
'alignment-baseline'?:
868+
| 'auto'
869+
| 'baseline'
870+
| 'before-edge'
871+
| 'text-before-edge'
872+
| 'middle'
873+
| 'central'
874+
| 'after-edge'
875+
| 'text-after-edge'
876+
| 'ideographic'
877+
| 'alphabetic'
878+
| 'hanging'
879+
| 'mathematical'
880+
| 'inherit'
881+
| undefined
819882
allowReorder?: 'no' | 'yes' | undefined
820883
alphabetic?: Numberish | undefined
821884
amplitude?: Numberish | undefined
@@ -839,7 +902,12 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
839902
clipPathUnits?: Numberish | undefined
840903
'clip-rule'?: Numberish | undefined
841904
'color-interpolation'?: Numberish | undefined
842-
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined
905+
'color-interpolation-filters'?:
906+
| 'auto'
907+
| 'sRGB'
908+
| 'linearRGB'
909+
| 'inherit'
910+
| undefined
843911
'color-profile'?: Numberish | undefined
844912
'color-rendering'?: Numberish | undefined
845913
contentScriptType?: Numberish | undefined

0 commit comments

Comments
 (0)