@pyreon/core 0.7.3 → 0.7.5
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.
- package/lib/jsx-dev-runtime.js.map +1 -1
- package/lib/jsx-runtime.js.map +1 -1
- package/lib/types/jsx-dev-runtime.d.ts +316 -317
- package/lib/types/jsx-dev-runtime.d.ts.map +1 -1
- package/lib/types/jsx-runtime.d.ts +316 -317
- package/lib/types/jsx-runtime.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/jsx-runtime.ts +315 -317
package/src/jsx-runtime.ts
CHANGED
|
@@ -40,390 +40,388 @@ type CSSProperties = { [K in keyof CSSStyleDeclaration]?: string | number }
|
|
|
40
40
|
type StyleValue = string | CSSProperties
|
|
41
41
|
|
|
42
42
|
/** Common HTML attributes accepted by all Pyreon elements */
|
|
43
|
-
interface PyreonHTMLAttributes {
|
|
43
|
+
interface PyreonHTMLAttributes<E extends Element = HTMLElement> {
|
|
44
44
|
// Identity
|
|
45
45
|
id?: string | undefined
|
|
46
46
|
class?: string | (() => string) | undefined
|
|
47
47
|
className?: string | (() => string) | undefined
|
|
48
48
|
style?: StyleValue | (() => StyleValue) | undefined
|
|
49
|
-
// pyreon-specific directives
|
|
50
|
-
"n-show"?: boolean | (() => boolean)
|
|
51
49
|
// Accessible
|
|
52
|
-
role?: string
|
|
50
|
+
role?: string | undefined
|
|
53
51
|
tabIndex?: number | (() => number) | undefined
|
|
54
|
-
title?: string
|
|
55
|
-
lang?: string
|
|
56
|
-
dir?: "ltr" | "rtl" | "auto"
|
|
57
|
-
hidden?: boolean | (() => boolean)
|
|
58
|
-
draggable?: Booleanish
|
|
52
|
+
title?: string | undefined
|
|
53
|
+
lang?: string | undefined
|
|
54
|
+
dir?: "ltr" | "rtl" | "auto" | undefined
|
|
55
|
+
hidden?: boolean | (() => boolean) | undefined
|
|
56
|
+
draggable?: Booleanish | undefined
|
|
59
57
|
// ARIA
|
|
60
|
-
"aria-label"?: string | (() => string)
|
|
61
|
-
"aria-hidden"?: Booleanish | (() => Booleanish)
|
|
62
|
-
"aria-disabled"?: Booleanish | (() => Booleanish)
|
|
63
|
-
"aria-expanded"?: Booleanish | (() => Booleanish)
|
|
64
|
-
"aria-selected"?: Booleanish | (() => Booleanish)
|
|
65
|
-
"aria-checked"?: Booleanish | "mixed" | (() => Booleanish | "mixed")
|
|
66
|
-
"aria-current"?: Booleanish | "page" | "step" | "location" | "date" | "time"
|
|
67
|
-
"aria-live"?: "off" | "assertive" | "polite"
|
|
68
|
-
"aria-atomic"?: Booleanish
|
|
69
|
-
"aria-busy"?: Booleanish
|
|
70
|
-
"aria-controls"?: string
|
|
71
|
-
"aria-describedby"?: string
|
|
72
|
-
"aria-labelledby"?: string
|
|
73
|
-
"aria-placeholder"?: string
|
|
74
|
-
"aria-required"?: Booleanish | (() => Booleanish)
|
|
75
|
-
"aria-invalid"?: Booleanish | "grammar" | "spelling"
|
|
76
|
-
"aria-valuemin"?: number
|
|
77
|
-
"aria-valuemax"?: number
|
|
78
|
-
"aria-valuenow"?: number
|
|
79
|
-
"aria-valuetext"?: string
|
|
80
|
-
"aria-haspopup"?: Booleanish | "menu" | "listbox" | "tree" | "grid" | "dialog"
|
|
81
|
-
"aria-posinset"?: number
|
|
82
|
-
"aria-setsize"?: number
|
|
83
|
-
"aria-level"?: number
|
|
84
|
-
"aria-multiline"?: Booleanish
|
|
85
|
-
"aria-multiselectable"?: Booleanish
|
|
86
|
-
"aria-orientation"?: "horizontal" | "vertical"
|
|
87
|
-
"aria-readonly"?: Booleanish | (() => Booleanish)
|
|
88
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other"
|
|
89
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both"
|
|
90
|
-
"aria-colcount"?: number
|
|
91
|
-
"aria-colindex"?: number
|
|
92
|
-
"aria-colspan"?: number
|
|
93
|
-
"aria-rowcount"?: number
|
|
94
|
-
"aria-rowindex"?: number
|
|
95
|
-
"aria-rowspan"?: number
|
|
58
|
+
"aria-label"?: string | (() => string) | undefined
|
|
59
|
+
"aria-hidden"?: Booleanish | (() => Booleanish) | undefined
|
|
60
|
+
"aria-disabled"?: Booleanish | (() => Booleanish) | undefined
|
|
61
|
+
"aria-expanded"?: Booleanish | (() => Booleanish) | undefined
|
|
62
|
+
"aria-selected"?: Booleanish | (() => Booleanish) | undefined
|
|
63
|
+
"aria-checked"?: Booleanish | "mixed" | (() => Booleanish | "mixed") | undefined
|
|
64
|
+
"aria-current"?: Booleanish | "page" | "step" | "location" | "date" | "time" | undefined
|
|
65
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
66
|
+
"aria-atomic"?: Booleanish | undefined
|
|
67
|
+
"aria-busy"?: Booleanish | undefined
|
|
68
|
+
"aria-controls"?: string | undefined
|
|
69
|
+
"aria-describedby"?: string | undefined
|
|
70
|
+
"aria-labelledby"?: string | undefined
|
|
71
|
+
"aria-placeholder"?: string | undefined
|
|
72
|
+
"aria-required"?: Booleanish | (() => Booleanish) | undefined
|
|
73
|
+
"aria-invalid"?: Booleanish | "grammar" | "spelling" | undefined
|
|
74
|
+
"aria-valuemin"?: number | undefined
|
|
75
|
+
"aria-valuemax"?: number | undefined
|
|
76
|
+
"aria-valuenow"?: number | undefined
|
|
77
|
+
"aria-valuetext"?: string | undefined
|
|
78
|
+
"aria-haspopup"?: Booleanish | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
79
|
+
"aria-posinset"?: number | undefined
|
|
80
|
+
"aria-setsize"?: number | undefined
|
|
81
|
+
"aria-level"?: number | undefined
|
|
82
|
+
"aria-multiline"?: Booleanish | undefined
|
|
83
|
+
"aria-multiselectable"?: Booleanish | undefined
|
|
84
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
85
|
+
"aria-readonly"?: Booleanish | (() => Booleanish) | undefined
|
|
86
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
87
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
88
|
+
"aria-colcount"?: number | undefined
|
|
89
|
+
"aria-colindex"?: number | undefined
|
|
90
|
+
"aria-colspan"?: number | undefined
|
|
91
|
+
"aria-rowcount"?: number | undefined
|
|
92
|
+
"aria-rowindex"?: number | undefined
|
|
93
|
+
"aria-rowspan"?: number | undefined
|
|
96
94
|
// DOM lifecycle ref — object ref or callback ref
|
|
97
|
-
ref?: { current:
|
|
95
|
+
ref?: { current: E | null } | ((el: E | null) => void) | undefined
|
|
98
96
|
// Key for list reconciliation
|
|
99
97
|
key?: string | number | undefined
|
|
100
98
|
// Children — allows null, undefined, boolean in JSX children positions
|
|
101
99
|
children?: VNodeChild | VNodeChild[]
|
|
102
100
|
// innerHTML
|
|
103
|
-
innerHTML?: string
|
|
104
|
-
dangerouslySetInnerHTML?: { __html: string }
|
|
101
|
+
innerHTML?: string | undefined
|
|
102
|
+
dangerouslySetInnerHTML?: { __html: string } | undefined
|
|
105
103
|
// Events
|
|
106
|
-
onClick?: (e: MouseEvent) => void
|
|
107
|
-
onDblClick?: (e: MouseEvent) => void
|
|
108
|
-
onMouseDown?: (e: MouseEvent) => void
|
|
109
|
-
onMouseUp?: (e: MouseEvent) => void
|
|
110
|
-
onMouseEnter?: (e: MouseEvent) => void
|
|
111
|
-
onMouseLeave?: (e: MouseEvent) => void
|
|
112
|
-
onMouseMove?: (e: MouseEvent) => void
|
|
113
|
-
onMouseOver?: (e: MouseEvent) => void
|
|
114
|
-
onMouseOut?: (e: MouseEvent) => void
|
|
115
|
-
onContextMenu?: (e: MouseEvent) => void
|
|
116
|
-
onKeyDown?: (e: KeyboardEvent) => void
|
|
117
|
-
onKeyUp?: (e: KeyboardEvent) => void
|
|
118
|
-
onKeyPress?: (e: KeyboardEvent) => void
|
|
119
|
-
onFocus?: (e: FocusEvent) => void
|
|
120
|
-
onBlur?: (e: FocusEvent) => void
|
|
121
|
-
onChange?: (e: Event) => void
|
|
122
|
-
onInput?: (e: InputEvent) => void
|
|
123
|
-
onSubmit?: (e: SubmitEvent) => void
|
|
124
|
-
onReset?: (e: Event) => void
|
|
125
|
-
onScroll?: (e: Event) => void
|
|
126
|
-
onWheel?: (e: WheelEvent) => void
|
|
127
|
-
onDragStart?: (e: DragEvent) => void
|
|
128
|
-
onDragEnd?: (e: DragEvent) => void
|
|
129
|
-
onDragOver?: (e: DragEvent) => void
|
|
130
|
-
onDragEnter?: (e: DragEvent) => void
|
|
131
|
-
onDragLeave?: (e: DragEvent) => void
|
|
132
|
-
onDrop?: (e: DragEvent) => void
|
|
133
|
-
onTouchStart?: (e: TouchEvent) => void
|
|
134
|
-
onTouchEnd?: (e: TouchEvent) => void
|
|
135
|
-
onTouchMove?: (e: TouchEvent) => void
|
|
136
|
-
onPointerDown?: (e: PointerEvent) => void
|
|
137
|
-
onPointerUp?: (e: PointerEvent) => void
|
|
138
|
-
onPointerMove?: (e: PointerEvent) => void
|
|
139
|
-
onPointerEnter?: (e: PointerEvent) => void
|
|
140
|
-
onPointerLeave?: (e: PointerEvent) => void
|
|
141
|
-
onPointerCancel?: (e: PointerEvent) => void
|
|
142
|
-
onPointerOver?: (e: PointerEvent) => void
|
|
143
|
-
onPointerOut?: (e: PointerEvent) => void
|
|
144
|
-
onTransitionEnd?: (e: TransitionEvent) => void
|
|
145
|
-
onAnimationStart?: (e: AnimationEvent) => void
|
|
146
|
-
onAnimationEnd?: (e: AnimationEvent) => void
|
|
147
|
-
onAnimationIteration?: (e: AnimationEvent) => void
|
|
148
|
-
onLoad?: (e: Event) => void
|
|
149
|
-
onError?: (e: Event | string) => void
|
|
150
|
-
onAbort?: (e: Event) => void
|
|
151
|
-
onSelect?: (e: Event) => void
|
|
152
|
-
onCopy?: (e: ClipboardEvent) => void
|
|
153
|
-
onCut?: (e: ClipboardEvent) => void
|
|
154
|
-
onPaste?: (e: ClipboardEvent) => void
|
|
104
|
+
onClick?: ((e: MouseEvent) => void) | undefined
|
|
105
|
+
onDblClick?: ((e: MouseEvent) => void) | undefined
|
|
106
|
+
onMouseDown?: ((e: MouseEvent) => void) | undefined
|
|
107
|
+
onMouseUp?: ((e: MouseEvent) => void) | undefined
|
|
108
|
+
onMouseEnter?: ((e: MouseEvent) => void) | undefined
|
|
109
|
+
onMouseLeave?: ((e: MouseEvent) => void) | undefined
|
|
110
|
+
onMouseMove?: ((e: MouseEvent) => void) | undefined
|
|
111
|
+
onMouseOver?: ((e: MouseEvent) => void) | undefined
|
|
112
|
+
onMouseOut?: ((e: MouseEvent) => void) | undefined
|
|
113
|
+
onContextMenu?: ((e: MouseEvent) => void) | undefined
|
|
114
|
+
onKeyDown?: ((e: KeyboardEvent) => void) | undefined
|
|
115
|
+
onKeyUp?: ((e: KeyboardEvent) => void) | undefined
|
|
116
|
+
onKeyPress?: ((e: KeyboardEvent) => void) | undefined
|
|
117
|
+
onFocus?: ((e: FocusEvent) => void) | undefined
|
|
118
|
+
onBlur?: ((e: FocusEvent) => void) | undefined
|
|
119
|
+
onChange?: ((e: Event) => void) | undefined
|
|
120
|
+
onInput?: ((e: InputEvent) => void) | undefined
|
|
121
|
+
onSubmit?: ((e: SubmitEvent) => void) | undefined
|
|
122
|
+
onReset?: ((e: Event) => void) | undefined
|
|
123
|
+
onScroll?: ((e: Event) => void) | undefined
|
|
124
|
+
onWheel?: ((e: WheelEvent) => void) | undefined
|
|
125
|
+
onDragStart?: ((e: DragEvent) => void) | undefined
|
|
126
|
+
onDragEnd?: ((e: DragEvent) => void) | undefined
|
|
127
|
+
onDragOver?: ((e: DragEvent) => void) | undefined
|
|
128
|
+
onDragEnter?: ((e: DragEvent) => void) | undefined
|
|
129
|
+
onDragLeave?: ((e: DragEvent) => void) | undefined
|
|
130
|
+
onDrop?: ((e: DragEvent) => void) | undefined
|
|
131
|
+
onTouchStart?: ((e: TouchEvent) => void) | undefined
|
|
132
|
+
onTouchEnd?: ((e: TouchEvent) => void) | undefined
|
|
133
|
+
onTouchMove?: ((e: TouchEvent) => void) | undefined
|
|
134
|
+
onPointerDown?: ((e: PointerEvent) => void) | undefined
|
|
135
|
+
onPointerUp?: ((e: PointerEvent) => void) | undefined
|
|
136
|
+
onPointerMove?: ((e: PointerEvent) => void) | undefined
|
|
137
|
+
onPointerEnter?: ((e: PointerEvent) => void) | undefined
|
|
138
|
+
onPointerLeave?: ((e: PointerEvent) => void) | undefined
|
|
139
|
+
onPointerCancel?: ((e: PointerEvent) => void) | undefined
|
|
140
|
+
onPointerOver?: ((e: PointerEvent) => void) | undefined
|
|
141
|
+
onPointerOut?: ((e: PointerEvent) => void) | undefined
|
|
142
|
+
onTransitionEnd?: ((e: TransitionEvent) => void) | undefined
|
|
143
|
+
onAnimationStart?: ((e: AnimationEvent) => void) | undefined
|
|
144
|
+
onAnimationEnd?: ((e: AnimationEvent) => void) | undefined
|
|
145
|
+
onAnimationIteration?: ((e: AnimationEvent) => void) | undefined
|
|
146
|
+
onLoad?: ((e: Event) => void) | undefined
|
|
147
|
+
onError?: ((e: Event | string) => void) | undefined
|
|
148
|
+
onAbort?: ((e: Event) => void) | undefined
|
|
149
|
+
onSelect?: ((e: Event) => void) | undefined
|
|
150
|
+
onCopy?: ((e: ClipboardEvent) => void) | undefined
|
|
151
|
+
onCut?: ((e: ClipboardEvent) => void) | undefined
|
|
152
|
+
onPaste?: ((e: ClipboardEvent) => void) | undefined
|
|
155
153
|
// Catch-all for data-* and other arbitrary attributes
|
|
156
154
|
[key: string]: unknown
|
|
157
155
|
}
|
|
158
156
|
|
|
159
157
|
/** Attributes specific to form inputs */
|
|
160
|
-
interface InputAttributes extends PyreonHTMLAttributes {
|
|
161
|
-
type?: string | (() => string)
|
|
162
|
-
value?: string | number | (() => string | number)
|
|
163
|
-
defaultValue?: string | number
|
|
164
|
-
checked?: boolean | (() => boolean)
|
|
165
|
-
defaultChecked?: boolean
|
|
166
|
-
placeholder?: string | (() => string)
|
|
167
|
-
disabled?: boolean | (() => boolean)
|
|
168
|
-
readOnly?: boolean
|
|
169
|
-
required?: boolean | (() => boolean)
|
|
170
|
-
min?: string | number
|
|
171
|
-
max?: string | number
|
|
172
|
-
step?: string | number
|
|
173
|
-
minLength?: number
|
|
174
|
-
maxLength?: number
|
|
175
|
-
pattern?: string
|
|
176
|
-
multiple?: boolean
|
|
177
|
-
name?: string
|
|
178
|
-
accept?: string
|
|
179
|
-
autoComplete?: string
|
|
180
|
-
autoFocus?: boolean
|
|
181
|
-
form?: string
|
|
182
|
-
list?: string
|
|
183
|
-
size?: number
|
|
184
|
-
src?: string | (() => string)
|
|
185
|
-
alt?: string
|
|
186
|
-
width?: number | string
|
|
187
|
-
height?: number | string
|
|
158
|
+
interface InputAttributes extends PyreonHTMLAttributes<HTMLInputElement> {
|
|
159
|
+
type?: string | (() => string) | undefined
|
|
160
|
+
value?: string | number | (() => string | number) | undefined
|
|
161
|
+
defaultValue?: string | number | undefined
|
|
162
|
+
checked?: boolean | (() => boolean) | undefined
|
|
163
|
+
defaultChecked?: boolean | undefined
|
|
164
|
+
placeholder?: string | (() => string) | undefined
|
|
165
|
+
disabled?: boolean | (() => boolean) | undefined
|
|
166
|
+
readOnly?: boolean | undefined
|
|
167
|
+
required?: boolean | (() => boolean) | undefined
|
|
168
|
+
min?: string | number | undefined
|
|
169
|
+
max?: string | number | undefined
|
|
170
|
+
step?: string | number | undefined
|
|
171
|
+
minLength?: number | undefined
|
|
172
|
+
maxLength?: number | undefined
|
|
173
|
+
pattern?: string | undefined
|
|
174
|
+
multiple?: boolean | undefined
|
|
175
|
+
name?: string | undefined
|
|
176
|
+
accept?: string | undefined
|
|
177
|
+
autoComplete?: string | undefined
|
|
178
|
+
autoFocus?: boolean | undefined
|
|
179
|
+
form?: string | undefined
|
|
180
|
+
list?: string | undefined
|
|
181
|
+
size?: number | undefined
|
|
182
|
+
src?: string | (() => string) | undefined
|
|
183
|
+
alt?: string | undefined
|
|
184
|
+
width?: number | string | undefined
|
|
185
|
+
height?: number | string | undefined
|
|
188
186
|
}
|
|
189
187
|
|
|
190
|
-
interface AnchorAttributes extends PyreonHTMLAttributes {
|
|
191
|
-
href?: string | (() => string)
|
|
192
|
-
target?: "_blank" | "_self" | "_parent" | "_top" | string
|
|
193
|
-
rel?: string
|
|
194
|
-
download?: string | boolean
|
|
188
|
+
interface AnchorAttributes extends PyreonHTMLAttributes<HTMLAnchorElement> {
|
|
189
|
+
href?: string | (() => string) | undefined
|
|
190
|
+
target?: "_blank" | "_self" | "_parent" | "_top" | string | undefined
|
|
191
|
+
rel?: string | undefined
|
|
192
|
+
download?: string | boolean | undefined
|
|
195
193
|
}
|
|
196
194
|
|
|
197
|
-
interface ButtonAttributes extends PyreonHTMLAttributes {
|
|
198
|
-
type?: "button" | "submit" | "reset"
|
|
199
|
-
disabled?: boolean | (() => boolean)
|
|
200
|
-
name?: string
|
|
201
|
-
value?: string
|
|
202
|
-
form?: string
|
|
203
|
-
formAction?: string
|
|
204
|
-
formMethod?: string
|
|
205
|
-
formEncType?: string
|
|
206
|
-
formNoValidate?: boolean
|
|
207
|
-
formTarget?: string
|
|
195
|
+
interface ButtonAttributes extends PyreonHTMLAttributes<HTMLButtonElement> {
|
|
196
|
+
type?: "button" | "submit" | "reset" | undefined
|
|
197
|
+
disabled?: boolean | (() => boolean) | undefined
|
|
198
|
+
name?: string | undefined
|
|
199
|
+
value?: string | undefined
|
|
200
|
+
form?: string | undefined
|
|
201
|
+
formAction?: string | undefined
|
|
202
|
+
formMethod?: string | undefined
|
|
203
|
+
formEncType?: string | undefined
|
|
204
|
+
formNoValidate?: boolean | undefined
|
|
205
|
+
formTarget?: string | undefined
|
|
208
206
|
}
|
|
209
207
|
|
|
210
|
-
interface TextareaAttributes extends PyreonHTMLAttributes {
|
|
211
|
-
value?: string | (() => string)
|
|
212
|
-
defaultValue?: string
|
|
213
|
-
placeholder?: string | (() => string)
|
|
214
|
-
disabled?: boolean | (() => boolean)
|
|
215
|
-
readOnly?: boolean
|
|
216
|
-
required?: boolean | (() => boolean)
|
|
217
|
-
rows?: number
|
|
218
|
-
cols?: number
|
|
219
|
-
minLength?: number
|
|
220
|
-
maxLength?: number
|
|
221
|
-
name?: string
|
|
222
|
-
autoFocus?: boolean
|
|
223
|
-
form?: string
|
|
224
|
-
wrap?: "hard" | "soft"
|
|
208
|
+
interface TextareaAttributes extends PyreonHTMLAttributes<HTMLTextAreaElement> {
|
|
209
|
+
value?: string | (() => string) | undefined
|
|
210
|
+
defaultValue?: string | undefined
|
|
211
|
+
placeholder?: string | (() => string) | undefined
|
|
212
|
+
disabled?: boolean | (() => boolean) | undefined
|
|
213
|
+
readOnly?: boolean | undefined
|
|
214
|
+
required?: boolean | (() => boolean) | undefined
|
|
215
|
+
rows?: number | undefined
|
|
216
|
+
cols?: number | undefined
|
|
217
|
+
minLength?: number | undefined
|
|
218
|
+
maxLength?: number | undefined
|
|
219
|
+
name?: string | undefined
|
|
220
|
+
autoFocus?: boolean | undefined
|
|
221
|
+
form?: string | undefined
|
|
222
|
+
wrap?: "hard" | "soft" | undefined
|
|
225
223
|
}
|
|
226
224
|
|
|
227
|
-
interface SelectAttributes extends PyreonHTMLAttributes {
|
|
228
|
-
value?: string | string[] | (() => string | string[])
|
|
229
|
-
defaultValue?: string | string[]
|
|
230
|
-
disabled?: boolean | (() => boolean)
|
|
231
|
-
required?: boolean | (() => boolean)
|
|
232
|
-
multiple?: boolean
|
|
233
|
-
name?: string
|
|
234
|
-
size?: number
|
|
235
|
-
form?: string
|
|
236
|
-
autoFocus?: boolean
|
|
225
|
+
interface SelectAttributes extends PyreonHTMLAttributes<HTMLSelectElement> {
|
|
226
|
+
value?: string | string[] | (() => string | string[]) | undefined
|
|
227
|
+
defaultValue?: string | string[] | undefined
|
|
228
|
+
disabled?: boolean | (() => boolean) | undefined
|
|
229
|
+
required?: boolean | (() => boolean) | undefined
|
|
230
|
+
multiple?: boolean | undefined
|
|
231
|
+
name?: string | undefined
|
|
232
|
+
size?: number | undefined
|
|
233
|
+
form?: string | undefined
|
|
234
|
+
autoFocus?: boolean | undefined
|
|
237
235
|
}
|
|
238
236
|
|
|
239
|
-
interface OptionAttributes extends PyreonHTMLAttributes {
|
|
240
|
-
value?: string | number | (() => string | number)
|
|
241
|
-
disabled?: boolean | (() => boolean)
|
|
242
|
-
selected?: boolean | (() => boolean)
|
|
243
|
-
label?: string
|
|
237
|
+
interface OptionAttributes extends PyreonHTMLAttributes<HTMLOptionElement> {
|
|
238
|
+
value?: string | number | (() => string | number) | undefined
|
|
239
|
+
disabled?: boolean | (() => boolean) | undefined
|
|
240
|
+
selected?: boolean | (() => boolean) | undefined
|
|
241
|
+
label?: string | undefined
|
|
244
242
|
}
|
|
245
243
|
|
|
246
|
-
interface FormAttributes extends PyreonHTMLAttributes {
|
|
247
|
-
action?: string
|
|
248
|
-
method?: "get" | "post"
|
|
249
|
-
encType?: string
|
|
250
|
-
noValidate?: boolean
|
|
251
|
-
target?: string
|
|
252
|
-
name?: string
|
|
253
|
-
autoComplete?: string
|
|
244
|
+
interface FormAttributes extends PyreonHTMLAttributes<HTMLFormElement> {
|
|
245
|
+
action?: string | undefined
|
|
246
|
+
method?: "get" | "post" | undefined
|
|
247
|
+
encType?: string | undefined
|
|
248
|
+
noValidate?: boolean | undefined
|
|
249
|
+
target?: string | undefined
|
|
250
|
+
name?: string | undefined
|
|
251
|
+
autoComplete?: string | undefined
|
|
254
252
|
}
|
|
255
253
|
|
|
256
|
-
interface ImgAttributes extends PyreonHTMLAttributes {
|
|
257
|
-
src?: string | (() => string)
|
|
258
|
-
alt?: string | (() => string)
|
|
259
|
-
width?: number | string | (() => number | string)
|
|
260
|
-
height?: number | string | (() => number | string)
|
|
261
|
-
loading?: "lazy" | "eager"
|
|
262
|
-
decoding?: "auto" | "async" | "sync"
|
|
263
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
264
|
-
referrerPolicy?: string
|
|
265
|
-
srcSet?: string
|
|
266
|
-
sizes?: string
|
|
254
|
+
interface ImgAttributes extends PyreonHTMLAttributes<HTMLImageElement> {
|
|
255
|
+
src?: string | (() => string) | undefined
|
|
256
|
+
alt?: string | (() => string) | undefined
|
|
257
|
+
width?: number | string | (() => number | string) | undefined
|
|
258
|
+
height?: number | string | (() => number | string) | undefined
|
|
259
|
+
loading?: "lazy" | "eager" | undefined
|
|
260
|
+
decoding?: "auto" | "async" | "sync" | undefined
|
|
261
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined
|
|
262
|
+
referrerPolicy?: string | undefined
|
|
263
|
+
srcSet?: string | undefined
|
|
264
|
+
sizes?: string | undefined
|
|
267
265
|
}
|
|
268
266
|
|
|
269
|
-
interface VideoAttributes extends PyreonHTMLAttributes {
|
|
270
|
-
src?: string | (() => string)
|
|
271
|
-
width?: number | string
|
|
272
|
-
height?: number | string
|
|
273
|
-
controls?: boolean
|
|
274
|
-
autoPlay?: boolean
|
|
275
|
-
muted?: boolean
|
|
276
|
-
loop?: boolean
|
|
277
|
-
poster?: string
|
|
278
|
-
preload?: "none" | "metadata" | "auto"
|
|
279
|
-
playsInline?: boolean
|
|
280
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
267
|
+
interface VideoAttributes extends PyreonHTMLAttributes<HTMLVideoElement> {
|
|
268
|
+
src?: string | (() => string) | undefined
|
|
269
|
+
width?: number | string | undefined
|
|
270
|
+
height?: number | string | undefined
|
|
271
|
+
controls?: boolean | undefined
|
|
272
|
+
autoPlay?: boolean | undefined
|
|
273
|
+
muted?: boolean | undefined
|
|
274
|
+
loop?: boolean | undefined
|
|
275
|
+
poster?: string | undefined
|
|
276
|
+
preload?: "none" | "metadata" | "auto" | undefined
|
|
277
|
+
playsInline?: boolean | undefined
|
|
278
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined
|
|
281
279
|
}
|
|
282
280
|
|
|
283
|
-
interface AudioAttributes extends PyreonHTMLAttributes {
|
|
284
|
-
src?: string | (() => string)
|
|
285
|
-
controls?: boolean
|
|
286
|
-
autoPlay?: boolean
|
|
287
|
-
muted?: boolean
|
|
288
|
-
loop?: boolean
|
|
289
|
-
preload?: "none" | "metadata" | "auto"
|
|
290
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
281
|
+
interface AudioAttributes extends PyreonHTMLAttributes<HTMLAudioElement> {
|
|
282
|
+
src?: string | (() => string) | undefined
|
|
283
|
+
controls?: boolean | undefined
|
|
284
|
+
autoPlay?: boolean | undefined
|
|
285
|
+
muted?: boolean | undefined
|
|
286
|
+
loop?: boolean | undefined
|
|
287
|
+
preload?: "none" | "metadata" | "auto" | undefined
|
|
288
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined
|
|
291
289
|
}
|
|
292
290
|
|
|
293
|
-
interface LabelAttributes extends PyreonHTMLAttributes {
|
|
294
|
-
htmlFor?: string
|
|
295
|
-
for?: string
|
|
296
|
-
form?: string
|
|
291
|
+
interface LabelAttributes extends PyreonHTMLAttributes<HTMLLabelElement> {
|
|
292
|
+
htmlFor?: string | undefined
|
|
293
|
+
for?: string | undefined
|
|
294
|
+
form?: string | undefined
|
|
297
295
|
}
|
|
298
296
|
|
|
299
|
-
interface ThAttributes extends PyreonHTMLAttributes {
|
|
300
|
-
colSpan?: number
|
|
301
|
-
rowSpan?: number
|
|
302
|
-
scope?: "col" | "row" | "colgroup" | "rowgroup"
|
|
303
|
-
abbr?: string
|
|
304
|
-
headers?: string
|
|
297
|
+
interface ThAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {
|
|
298
|
+
colSpan?: number | undefined
|
|
299
|
+
rowSpan?: number | undefined
|
|
300
|
+
scope?: "col" | "row" | "colgroup" | "rowgroup" | undefined
|
|
301
|
+
abbr?: string | undefined
|
|
302
|
+
headers?: string | undefined
|
|
305
303
|
}
|
|
306
304
|
|
|
307
|
-
interface TdAttributes extends PyreonHTMLAttributes {
|
|
308
|
-
colSpan?: number
|
|
309
|
-
rowSpan?: number
|
|
310
|
-
headers?: string
|
|
305
|
+
interface TdAttributes extends PyreonHTMLAttributes<HTMLTableCellElement> {
|
|
306
|
+
colSpan?: number | undefined
|
|
307
|
+
rowSpan?: number | undefined
|
|
308
|
+
headers?: string | undefined
|
|
311
309
|
}
|
|
312
310
|
|
|
313
|
-
interface ColAttributes extends PyreonHTMLAttributes {
|
|
314
|
-
span?: number
|
|
311
|
+
interface ColAttributes extends PyreonHTMLAttributes<HTMLTableColElement> {
|
|
312
|
+
span?: number | undefined
|
|
315
313
|
}
|
|
316
314
|
|
|
317
|
-
interface IframeAttributes extends PyreonHTMLAttributes {
|
|
318
|
-
src?: string | (() => string)
|
|
319
|
-
width?: number | string
|
|
320
|
-
height?: number | string
|
|
321
|
-
allow?: string
|
|
322
|
-
allowFullScreen?: boolean
|
|
323
|
-
loading?: "lazy" | "eager"
|
|
324
|
-
name?: string
|
|
325
|
-
sandbox?: string
|
|
326
|
-
referrerPolicy?: string
|
|
327
|
-
title?: string
|
|
315
|
+
interface IframeAttributes extends PyreonHTMLAttributes<HTMLIFrameElement> {
|
|
316
|
+
src?: string | (() => string) | undefined
|
|
317
|
+
width?: number | string | undefined
|
|
318
|
+
height?: number | string | undefined
|
|
319
|
+
allow?: string | undefined
|
|
320
|
+
allowFullScreen?: boolean | undefined
|
|
321
|
+
loading?: "lazy" | "eager" | undefined
|
|
322
|
+
name?: string | undefined
|
|
323
|
+
sandbox?: string | undefined
|
|
324
|
+
referrerPolicy?: string | undefined
|
|
325
|
+
title?: string | undefined
|
|
328
326
|
}
|
|
329
327
|
|
|
330
|
-
interface LinkAttributes extends PyreonHTMLAttributes {
|
|
331
|
-
href?: string | (() => string)
|
|
332
|
-
rel?: string
|
|
333
|
-
type?: string
|
|
334
|
-
as?: string
|
|
335
|
-
media?: string
|
|
336
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
337
|
-
integrity?: string
|
|
338
|
-
referrerPolicy?: string
|
|
328
|
+
interface LinkAttributes extends PyreonHTMLAttributes<HTMLLinkElement> {
|
|
329
|
+
href?: string | (() => string) | undefined
|
|
330
|
+
rel?: string | undefined
|
|
331
|
+
type?: string | undefined
|
|
332
|
+
as?: string | undefined
|
|
333
|
+
media?: string | undefined
|
|
334
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined
|
|
335
|
+
integrity?: string | undefined
|
|
336
|
+
referrerPolicy?: string | undefined
|
|
339
337
|
}
|
|
340
338
|
|
|
341
|
-
interface MetaAttributes extends PyreonHTMLAttributes {
|
|
342
|
-
name?: string
|
|
343
|
-
content?: string | (() => string)
|
|
344
|
-
httpEquiv?: string
|
|
345
|
-
charset?: string
|
|
346
|
-
property?: string
|
|
339
|
+
interface MetaAttributes extends PyreonHTMLAttributes<HTMLMetaElement> {
|
|
340
|
+
name?: string | undefined
|
|
341
|
+
content?: string | (() => string) | undefined
|
|
342
|
+
httpEquiv?: string | undefined
|
|
343
|
+
charset?: string | undefined
|
|
344
|
+
property?: string | undefined
|
|
347
345
|
}
|
|
348
346
|
|
|
349
|
-
interface ScriptAttributes extends PyreonHTMLAttributes {
|
|
350
|
-
src?: string | (() => string)
|
|
351
|
-
type?: string
|
|
352
|
-
async?: boolean
|
|
353
|
-
defer?: boolean
|
|
354
|
-
crossOrigin?: "anonymous" | "use-credentials"
|
|
355
|
-
integrity?: string
|
|
356
|
-
noModule?: boolean
|
|
357
|
-
referrerPolicy?: string
|
|
347
|
+
interface ScriptAttributes extends PyreonHTMLAttributes<HTMLScriptElement> {
|
|
348
|
+
src?: string | (() => string) | undefined
|
|
349
|
+
type?: string | undefined
|
|
350
|
+
async?: boolean | undefined
|
|
351
|
+
defer?: boolean | undefined
|
|
352
|
+
crossOrigin?: "anonymous" | "use-credentials" | undefined
|
|
353
|
+
integrity?: string | undefined
|
|
354
|
+
noModule?: boolean | undefined
|
|
355
|
+
referrerPolicy?: string | undefined
|
|
358
356
|
}
|
|
359
357
|
|
|
360
|
-
interface SourceAttributes extends PyreonHTMLAttributes {
|
|
361
|
-
src?: string | (() => string)
|
|
362
|
-
type?: string
|
|
363
|
-
srcSet?: string
|
|
364
|
-
sizes?: string
|
|
365
|
-
media?: string
|
|
358
|
+
interface SourceAttributes extends PyreonHTMLAttributes<HTMLSourceElement> {
|
|
359
|
+
src?: string | (() => string) | undefined
|
|
360
|
+
type?: string | undefined
|
|
361
|
+
srcSet?: string | undefined
|
|
362
|
+
sizes?: string | undefined
|
|
363
|
+
media?: string | undefined
|
|
366
364
|
}
|
|
367
365
|
|
|
368
|
-
interface ProgressAttributes extends PyreonHTMLAttributes {
|
|
369
|
-
value?: number | (() => number)
|
|
370
|
-
max?: number
|
|
366
|
+
interface ProgressAttributes extends PyreonHTMLAttributes<HTMLProgressElement> {
|
|
367
|
+
value?: number | (() => number) | undefined
|
|
368
|
+
max?: number | undefined
|
|
371
369
|
}
|
|
372
370
|
|
|
373
|
-
interface MeterAttributes extends PyreonHTMLAttributes {
|
|
374
|
-
value?: number | (() => number)
|
|
375
|
-
min?: number
|
|
376
|
-
max?: number
|
|
377
|
-
low?: number
|
|
378
|
-
high?: number
|
|
379
|
-
optimum?: number
|
|
371
|
+
interface MeterAttributes extends PyreonHTMLAttributes<HTMLMeterElement> {
|
|
372
|
+
value?: number | (() => number) | undefined
|
|
373
|
+
min?: number | undefined
|
|
374
|
+
max?: number | undefined
|
|
375
|
+
low?: number | undefined
|
|
376
|
+
high?: number | undefined
|
|
377
|
+
optimum?: number | undefined
|
|
380
378
|
}
|
|
381
379
|
|
|
382
|
-
interface DetailsAttributes extends PyreonHTMLAttributes {
|
|
383
|
-
open?: boolean | (() => boolean)
|
|
380
|
+
interface DetailsAttributes extends PyreonHTMLAttributes<HTMLDetailsElement> {
|
|
381
|
+
open?: boolean | (() => boolean) | undefined
|
|
384
382
|
}
|
|
385
383
|
|
|
386
|
-
interface DialogAttributes extends PyreonHTMLAttributes {
|
|
387
|
-
open?: boolean | (() => boolean)
|
|
384
|
+
interface DialogAttributes extends PyreonHTMLAttributes<HTMLDialogElement> {
|
|
385
|
+
open?: boolean | (() => boolean) | undefined
|
|
388
386
|
}
|
|
389
387
|
|
|
390
|
-
interface OlAttributes extends PyreonHTMLAttributes {
|
|
391
|
-
start?: number
|
|
392
|
-
reversed?: boolean
|
|
393
|
-
type?: "1" | "a" | "A" | "i" | "I"
|
|
388
|
+
interface OlAttributes extends PyreonHTMLAttributes<HTMLOListElement> {
|
|
389
|
+
start?: number | undefined
|
|
390
|
+
reversed?: boolean | undefined
|
|
391
|
+
type?: "1" | "a" | "A" | "i" | "I" | undefined
|
|
394
392
|
}
|
|
395
393
|
|
|
396
|
-
interface SvgAttributes extends PyreonHTMLAttributes {
|
|
397
|
-
viewBox?: string
|
|
398
|
-
xmlns?: string
|
|
399
|
-
fill?: string | (() => string)
|
|
400
|
-
stroke?: string | (() => string)
|
|
401
|
-
"stroke-width"?: string | number
|
|
402
|
-
"stroke-linecap"?: "butt" | "round" | "square"
|
|
403
|
-
"stroke-linejoin"?: "miter" | "round" | "bevel"
|
|
404
|
-
"fill-rule"?: "nonzero" | "evenodd"
|
|
405
|
-
"clip-rule"?: "nonzero" | "evenodd"
|
|
406
|
-
"clip-path"?: string
|
|
407
|
-
d?: string
|
|
408
|
-
cx?: string | number
|
|
409
|
-
cy?: string | number
|
|
410
|
-
r?: string | number
|
|
411
|
-
rx?: string | number
|
|
412
|
-
ry?: string | number
|
|
413
|
-
x?: string | number
|
|
414
|
-
y?: string | number
|
|
415
|
-
x1?: string | number
|
|
416
|
-
y1?: string | number
|
|
417
|
-
x2?: string | number
|
|
418
|
-
y2?: string | number
|
|
419
|
-
width?: string | number
|
|
420
|
-
height?: string | number
|
|
421
|
-
transform?: string | (() => string)
|
|
422
|
-
opacity?: string | number | (() => string | number)
|
|
423
|
-
points?: string
|
|
424
|
-
"font-size"?: string | number
|
|
425
|
-
"text-anchor"?: "start" | "middle" | "end"
|
|
426
|
-
"dominant-baseline"?: string
|
|
394
|
+
interface SvgAttributes extends PyreonHTMLAttributes<SVGElement> {
|
|
395
|
+
viewBox?: string | undefined
|
|
396
|
+
xmlns?: string | undefined
|
|
397
|
+
fill?: string | (() => string) | undefined
|
|
398
|
+
stroke?: string | (() => string) | undefined
|
|
399
|
+
"stroke-width"?: string | number | undefined
|
|
400
|
+
"stroke-linecap"?: "butt" | "round" | "square" | undefined
|
|
401
|
+
"stroke-linejoin"?: "miter" | "round" | "bevel" | undefined
|
|
402
|
+
"fill-rule"?: "nonzero" | "evenodd" | undefined
|
|
403
|
+
"clip-rule"?: "nonzero" | "evenodd" | undefined
|
|
404
|
+
"clip-path"?: string | undefined
|
|
405
|
+
d?: string | undefined
|
|
406
|
+
cx?: string | number | undefined
|
|
407
|
+
cy?: string | number | undefined
|
|
408
|
+
r?: string | number | undefined
|
|
409
|
+
rx?: string | number | undefined
|
|
410
|
+
ry?: string | number | undefined
|
|
411
|
+
x?: string | number | undefined
|
|
412
|
+
y?: string | number | undefined
|
|
413
|
+
x1?: string | number | undefined
|
|
414
|
+
y1?: string | number | undefined
|
|
415
|
+
x2?: string | number | undefined
|
|
416
|
+
y2?: string | number | undefined
|
|
417
|
+
width?: string | number | undefined
|
|
418
|
+
height?: string | number | undefined
|
|
419
|
+
transform?: string | (() => string) | undefined
|
|
420
|
+
opacity?: string | number | (() => string | number) | undefined
|
|
421
|
+
points?: string | undefined
|
|
422
|
+
"font-size"?: string | number | undefined
|
|
423
|
+
"text-anchor"?: "start" | "middle" | "end" | undefined
|
|
424
|
+
"dominant-baseline"?: string | undefined
|
|
427
425
|
}
|
|
428
426
|
|
|
429
427
|
declare global {
|
|
@@ -589,7 +587,7 @@ declare global {
|
|
|
589
587
|
slot: PyreonHTMLAttributes
|
|
590
588
|
portal: PyreonHTMLAttributes
|
|
591
589
|
// Catch-all for custom elements and data-* attrs
|
|
592
|
-
[tagName: string]: PyreonHTMLAttributes
|
|
590
|
+
[tagName: string]: PyreonHTMLAttributes<any>
|
|
593
591
|
}
|
|
594
592
|
}
|
|
595
593
|
}
|