@fynixorg/ui 1.0.21 → 1.0.22
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/dist/fynix/index.d.ts +1 -0
- package/dist/fynix/index.d.ts.map +1 -1
- package/dist/fynix/index.js +1 -0
- package/dist/fynix/index.js.map +2 -2
- package/dist/package.json +5 -1
- package/dist/parser/fnx-parser.d.ts +49 -0
- package/dist/parser/fnx-parser.d.ts.map +1 -0
- package/dist/parser/fnx-parser.js +483 -0
- package/dist/plugins/vite-plugin-res.d.ts +3 -15
- package/dist/plugins/vite-plugin-res.d.ts.map +1 -1
- package/dist/plugins/vite-plugin-res.js +11 -253
- package/dist/plugins/vite-plugin-res.js.map +2 -2
- package/dist/types/fnx.d.ts +21 -0
- package/dist/types/fnx.d.ts.map +1 -0
- package/dist/types/fnx.js +1 -0
- package/dist/typescript-fynix-plugin/index.js +1044 -0
- package/dist/typescript-fynix-plugin/index.js.map +7 -0
- package/package.json +6 -2
- package/types/fnx.ts +65 -0
- package/types/global.d.ts +4 -14
- package/types/jsx.d.ts +988 -0
package/types/jsx.d.ts
ADDED
|
@@ -0,0 +1,988 @@
|
|
|
1
|
+
/* MIT License
|
|
2
|
+
|
|
3
|
+
* Copyright (c) 2026 Resty Gonzales
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
* SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
// =====================================================
|
|
25
|
+
// types/jsx.d.ts - JSX Namespace for Fynix Framework
|
|
26
|
+
// =====================================================
|
|
27
|
+
|
|
28
|
+
import type { VNode } from "./fnx";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Fynix reactive event handler type
|
|
32
|
+
*/
|
|
33
|
+
type FynixEventHandler<E extends Event = Event> = (event: E) => void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* CSS style declaration with additional Fynix support
|
|
37
|
+
*/
|
|
38
|
+
type CSSStyles = Partial<CSSStyleDeclaration> & {
|
|
39
|
+
[key: `--${string}`]: string | number; // CSS custom properties
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Base HTML attributes shared by all elements
|
|
44
|
+
*/
|
|
45
|
+
interface FynixHTMLAttributes<T extends EventTarget = HTMLElement> {
|
|
46
|
+
// Core attributes
|
|
47
|
+
id?: string;
|
|
48
|
+
class?: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
style?: string | CSSStyles;
|
|
51
|
+
title?: string;
|
|
52
|
+
tabIndex?: number;
|
|
53
|
+
tabindex?: number;
|
|
54
|
+
|
|
55
|
+
// Data attributes
|
|
56
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
57
|
+
|
|
58
|
+
// ARIA attributes
|
|
59
|
+
role?: string;
|
|
60
|
+
"aria-label"?: string;
|
|
61
|
+
"aria-labelledby"?: string;
|
|
62
|
+
"aria-describedby"?: string;
|
|
63
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
64
|
+
"aria-disabled"?: boolean | "true" | "false";
|
|
65
|
+
"aria-expanded"?: boolean | "true" | "false";
|
|
66
|
+
"aria-selected"?: boolean | "true" | "false";
|
|
67
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
|
68
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
|
69
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
|
70
|
+
"aria-atomic"?: boolean | "true" | "false";
|
|
71
|
+
"aria-busy"?: boolean | "true" | "false";
|
|
72
|
+
"aria-controls"?: string;
|
|
73
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";
|
|
74
|
+
"aria-haspopup"?: boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
75
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
76
|
+
"aria-modal"?: boolean | "true" | "false";
|
|
77
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
|
78
|
+
"aria-placeholder"?: string;
|
|
79
|
+
"aria-required"?: boolean | "true" | "false";
|
|
80
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
|
81
|
+
"aria-valuemax"?: number;
|
|
82
|
+
"aria-valuemin"?: number;
|
|
83
|
+
"aria-valuenow"?: number;
|
|
84
|
+
"aria-valuetext"?: string;
|
|
85
|
+
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
86
|
+
|
|
87
|
+
// Standard HTML attributes
|
|
88
|
+
hidden?: boolean;
|
|
89
|
+
draggable?: boolean | "true" | "false";
|
|
90
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
91
|
+
contenteditable?: boolean | "true" | "false" | "inherit";
|
|
92
|
+
spellCheck?: boolean | "true" | "false";
|
|
93
|
+
spellcheck?: boolean | "true" | "false";
|
|
94
|
+
translate?: "yes" | "no";
|
|
95
|
+
lang?: string;
|
|
96
|
+
dir?: "ltr" | "rtl" | "auto";
|
|
97
|
+
slot?: string;
|
|
98
|
+
accessKey?: string;
|
|
99
|
+
accesskey?: string;
|
|
100
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters";
|
|
101
|
+
autocapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters";
|
|
102
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
103
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
104
|
+
inputMode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
105
|
+
inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
106
|
+
|
|
107
|
+
// Fynix reactive event handlers (r-* prefix)
|
|
108
|
+
"r-click"?: FynixEventHandler<MouseEvent>;
|
|
109
|
+
"r-dblclick"?: FynixEventHandler<MouseEvent>;
|
|
110
|
+
"r-mousedown"?: FynixEventHandler<MouseEvent>;
|
|
111
|
+
"r-mouseup"?: FynixEventHandler<MouseEvent>;
|
|
112
|
+
"r-mousemove"?: FynixEventHandler<MouseEvent>;
|
|
113
|
+
"r-mouseenter"?: FynixEventHandler<MouseEvent>;
|
|
114
|
+
"r-mouseleave"?: FynixEventHandler<MouseEvent>;
|
|
115
|
+
"r-mouseover"?: FynixEventHandler<MouseEvent>;
|
|
116
|
+
"r-mouseout"?: FynixEventHandler<MouseEvent>;
|
|
117
|
+
"r-contextmenu"?: FynixEventHandler<MouseEvent>;
|
|
118
|
+
|
|
119
|
+
"r-keydown"?: FynixEventHandler<KeyboardEvent>;
|
|
120
|
+
"r-keyup"?: FynixEventHandler<KeyboardEvent>;
|
|
121
|
+
"r-keypress"?: FynixEventHandler<KeyboardEvent>;
|
|
122
|
+
|
|
123
|
+
"r-focus"?: FynixEventHandler<FocusEvent>;
|
|
124
|
+
"r-blur"?: FynixEventHandler<FocusEvent>;
|
|
125
|
+
"r-focusin"?: FynixEventHandler<FocusEvent>;
|
|
126
|
+
"r-focusout"?: FynixEventHandler<FocusEvent>;
|
|
127
|
+
|
|
128
|
+
"r-input"?: FynixEventHandler<InputEvent>;
|
|
129
|
+
"r-change"?: FynixEventHandler<Event>;
|
|
130
|
+
"r-submit"?: FynixEventHandler<SubmitEvent>;
|
|
131
|
+
"r-reset"?: FynixEventHandler<Event>;
|
|
132
|
+
"r-invalid"?: FynixEventHandler<Event>;
|
|
133
|
+
|
|
134
|
+
"r-scroll"?: FynixEventHandler<Event>;
|
|
135
|
+
"r-resize"?: FynixEventHandler<UIEvent>;
|
|
136
|
+
"r-wheel"?: FynixEventHandler<WheelEvent>;
|
|
137
|
+
|
|
138
|
+
"r-drag"?: FynixEventHandler<DragEvent>;
|
|
139
|
+
"r-dragstart"?: FynixEventHandler<DragEvent>;
|
|
140
|
+
"r-dragend"?: FynixEventHandler<DragEvent>;
|
|
141
|
+
"r-dragenter"?: FynixEventHandler<DragEvent>;
|
|
142
|
+
"r-dragleave"?: FynixEventHandler<DragEvent>;
|
|
143
|
+
"r-dragover"?: FynixEventHandler<DragEvent>;
|
|
144
|
+
"r-drop"?: FynixEventHandler<DragEvent>;
|
|
145
|
+
|
|
146
|
+
"r-touchstart"?: FynixEventHandler<TouchEvent>;
|
|
147
|
+
"r-touchend"?: FynixEventHandler<TouchEvent>;
|
|
148
|
+
"r-touchmove"?: FynixEventHandler<TouchEvent>;
|
|
149
|
+
"r-touchcancel"?: FynixEventHandler<TouchEvent>;
|
|
150
|
+
|
|
151
|
+
"r-pointerdown"?: FynixEventHandler<PointerEvent>;
|
|
152
|
+
"r-pointerup"?: FynixEventHandler<PointerEvent>;
|
|
153
|
+
"r-pointermove"?: FynixEventHandler<PointerEvent>;
|
|
154
|
+
"r-pointerenter"?: FynixEventHandler<PointerEvent>;
|
|
155
|
+
"r-pointerleave"?: FynixEventHandler<PointerEvent>;
|
|
156
|
+
"r-pointerover"?: FynixEventHandler<PointerEvent>;
|
|
157
|
+
"r-pointerout"?: FynixEventHandler<PointerEvent>;
|
|
158
|
+
"r-pointercancel"?: FynixEventHandler<PointerEvent>;
|
|
159
|
+
|
|
160
|
+
"r-copy"?: FynixEventHandler<ClipboardEvent>;
|
|
161
|
+
"r-cut"?: FynixEventHandler<ClipboardEvent>;
|
|
162
|
+
"r-paste"?: FynixEventHandler<ClipboardEvent>;
|
|
163
|
+
|
|
164
|
+
"r-animationstart"?: FynixEventHandler<AnimationEvent>;
|
|
165
|
+
"r-animationend"?: FynixEventHandler<AnimationEvent>;
|
|
166
|
+
"r-animationiteration"?: FynixEventHandler<AnimationEvent>;
|
|
167
|
+
|
|
168
|
+
"r-transitionend"?: FynixEventHandler<TransitionEvent>;
|
|
169
|
+
"r-transitionstart"?: FynixEventHandler<TransitionEvent>;
|
|
170
|
+
"r-transitionrun"?: FynixEventHandler<TransitionEvent>;
|
|
171
|
+
"r-transitioncancel"?: FynixEventHandler<TransitionEvent>;
|
|
172
|
+
|
|
173
|
+
// Standard DOM event handlers (on* prefix)
|
|
174
|
+
onclick?: FynixEventHandler<MouseEvent>;
|
|
175
|
+
ondblclick?: FynixEventHandler<MouseEvent>;
|
|
176
|
+
onmousedown?: FynixEventHandler<MouseEvent>;
|
|
177
|
+
onmouseup?: FynixEventHandler<MouseEvent>;
|
|
178
|
+
onmousemove?: FynixEventHandler<MouseEvent>;
|
|
179
|
+
onmouseenter?: FynixEventHandler<MouseEvent>;
|
|
180
|
+
onmouseleave?: FynixEventHandler<MouseEvent>;
|
|
181
|
+
onmouseover?: FynixEventHandler<MouseEvent>;
|
|
182
|
+
onmouseout?: FynixEventHandler<MouseEvent>;
|
|
183
|
+
oncontextmenu?: FynixEventHandler<MouseEvent>;
|
|
184
|
+
onkeydown?: FynixEventHandler<KeyboardEvent>;
|
|
185
|
+
onkeyup?: FynixEventHandler<KeyboardEvent>;
|
|
186
|
+
onkeypress?: FynixEventHandler<KeyboardEvent>;
|
|
187
|
+
onfocus?: FynixEventHandler<FocusEvent>;
|
|
188
|
+
onblur?: FynixEventHandler<FocusEvent>;
|
|
189
|
+
oninput?: FynixEventHandler<InputEvent>;
|
|
190
|
+
onchange?: FynixEventHandler<Event>;
|
|
191
|
+
onsubmit?: FynixEventHandler<SubmitEvent>;
|
|
192
|
+
onreset?: FynixEventHandler<Event>;
|
|
193
|
+
onscroll?: FynixEventHandler<Event>;
|
|
194
|
+
onwheel?: FynixEventHandler<WheelEvent>;
|
|
195
|
+
|
|
196
|
+
// Fynix-specific attributes
|
|
197
|
+
key?: string | number;
|
|
198
|
+
ref?: { current: T | null } | ((el: T | null) => void);
|
|
199
|
+
children?: VNode | VNode[] | string | number | boolean | null | undefined;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Anchor element attributes
|
|
204
|
+
*/
|
|
205
|
+
interface AnchorHTMLAttributes extends FynixHTMLAttributes<HTMLAnchorElement> {
|
|
206
|
+
href?: string;
|
|
207
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | string;
|
|
208
|
+
rel?: string;
|
|
209
|
+
download?: boolean | string;
|
|
210
|
+
hreflang?: string;
|
|
211
|
+
ping?: string;
|
|
212
|
+
referrerPolicy?: ReferrerPolicy;
|
|
213
|
+
type?: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Button element attributes
|
|
218
|
+
*/
|
|
219
|
+
interface ButtonHTMLAttributes extends FynixHTMLAttributes<HTMLButtonElement> {
|
|
220
|
+
type?: "button" | "submit" | "reset";
|
|
221
|
+
disabled?: boolean;
|
|
222
|
+
form?: string;
|
|
223
|
+
formAction?: string;
|
|
224
|
+
formaction?: string;
|
|
225
|
+
formEncType?: string;
|
|
226
|
+
formenctype?: string;
|
|
227
|
+
formMethod?: string;
|
|
228
|
+
formmethod?: string;
|
|
229
|
+
formNoValidate?: boolean;
|
|
230
|
+
formnovalidate?: boolean;
|
|
231
|
+
formTarget?: string;
|
|
232
|
+
formtarget?: string;
|
|
233
|
+
name?: string;
|
|
234
|
+
value?: string | number | readonly string[];
|
|
235
|
+
popovertarget?: string;
|
|
236
|
+
popovertargetaction?: "toggle" | "show" | "hide";
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Form element attributes
|
|
241
|
+
*/
|
|
242
|
+
interface FormHTMLAttributes extends FynixHTMLAttributes<HTMLFormElement> {
|
|
243
|
+
action?: string;
|
|
244
|
+
method?: "get" | "post" | "dialog";
|
|
245
|
+
encType?: string;
|
|
246
|
+
enctype?: string;
|
|
247
|
+
target?: string;
|
|
248
|
+
noValidate?: boolean;
|
|
249
|
+
novalidate?: boolean;
|
|
250
|
+
autoComplete?: string;
|
|
251
|
+
autocomplete?: string;
|
|
252
|
+
name?: string;
|
|
253
|
+
acceptCharset?: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Input element attributes
|
|
258
|
+
*/
|
|
259
|
+
interface InputHTMLAttributes extends FynixHTMLAttributes<HTMLInputElement> {
|
|
260
|
+
type?:
|
|
261
|
+
| "text"
|
|
262
|
+
| "password"
|
|
263
|
+
| "email"
|
|
264
|
+
| "number"
|
|
265
|
+
| "tel"
|
|
266
|
+
| "url"
|
|
267
|
+
| "search"
|
|
268
|
+
| "date"
|
|
269
|
+
| "time"
|
|
270
|
+
| "datetime-local"
|
|
271
|
+
| "month"
|
|
272
|
+
| "week"
|
|
273
|
+
| "color"
|
|
274
|
+
| "checkbox"
|
|
275
|
+
| "radio"
|
|
276
|
+
| "file"
|
|
277
|
+
| "hidden"
|
|
278
|
+
| "image"
|
|
279
|
+
| "range"
|
|
280
|
+
| "reset"
|
|
281
|
+
| "submit"
|
|
282
|
+
| "button";
|
|
283
|
+
value?: string | number | readonly string[];
|
|
284
|
+
defaultValue?: string | number | readonly string[];
|
|
285
|
+
checked?: boolean;
|
|
286
|
+
defaultChecked?: boolean;
|
|
287
|
+
placeholder?: string;
|
|
288
|
+
name?: string;
|
|
289
|
+
disabled?: boolean;
|
|
290
|
+
readonly?: boolean;
|
|
291
|
+
readOnly?: boolean;
|
|
292
|
+
required?: boolean;
|
|
293
|
+
min?: string | number;
|
|
294
|
+
max?: string | number;
|
|
295
|
+
step?: string | number;
|
|
296
|
+
minLength?: number;
|
|
297
|
+
minlength?: number;
|
|
298
|
+
maxLength?: number;
|
|
299
|
+
maxlength?: number;
|
|
300
|
+
pattern?: string;
|
|
301
|
+
autoComplete?: string;
|
|
302
|
+
autocomplete?: string;
|
|
303
|
+
autoFocus?: boolean;
|
|
304
|
+
autofocus?: boolean;
|
|
305
|
+
multiple?: boolean;
|
|
306
|
+
accept?: string;
|
|
307
|
+
capture?: boolean | "user" | "environment";
|
|
308
|
+
form?: string;
|
|
309
|
+
formAction?: string;
|
|
310
|
+
formaction?: string;
|
|
311
|
+
list?: string;
|
|
312
|
+
size?: number;
|
|
313
|
+
width?: number | string;
|
|
314
|
+
height?: number | string;
|
|
315
|
+
alt?: string;
|
|
316
|
+
src?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Textarea element attributes
|
|
321
|
+
*/
|
|
322
|
+
interface TextareaHTMLAttributes extends FynixHTMLAttributes<HTMLTextAreaElement> {
|
|
323
|
+
value?: string;
|
|
324
|
+
defaultValue?: string;
|
|
325
|
+
placeholder?: string;
|
|
326
|
+
name?: string;
|
|
327
|
+
disabled?: boolean;
|
|
328
|
+
readonly?: boolean;
|
|
329
|
+
readOnly?: boolean;
|
|
330
|
+
required?: boolean;
|
|
331
|
+
rows?: number;
|
|
332
|
+
cols?: number;
|
|
333
|
+
minLength?: number;
|
|
334
|
+
minlength?: number;
|
|
335
|
+
maxLength?: number;
|
|
336
|
+
maxlength?: number;
|
|
337
|
+
autoComplete?: string;
|
|
338
|
+
autocomplete?: string;
|
|
339
|
+
autoFocus?: boolean;
|
|
340
|
+
autofocus?: boolean;
|
|
341
|
+
wrap?: "hard" | "soft" | "off";
|
|
342
|
+
form?: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Select element attributes
|
|
347
|
+
*/
|
|
348
|
+
interface SelectHTMLAttributes extends FynixHTMLAttributes<HTMLSelectElement> {
|
|
349
|
+
value?: string | number | readonly string[];
|
|
350
|
+
defaultValue?: string | number | readonly string[];
|
|
351
|
+
name?: string;
|
|
352
|
+
disabled?: boolean;
|
|
353
|
+
required?: boolean;
|
|
354
|
+
multiple?: boolean;
|
|
355
|
+
size?: number;
|
|
356
|
+
autoComplete?: string;
|
|
357
|
+
autocomplete?: string;
|
|
358
|
+
autoFocus?: boolean;
|
|
359
|
+
autofocus?: boolean;
|
|
360
|
+
form?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Option element attributes
|
|
365
|
+
*/
|
|
366
|
+
interface OptionHTMLAttributes extends FynixHTMLAttributes<HTMLOptionElement> {
|
|
367
|
+
value?: string | number | readonly string[];
|
|
368
|
+
label?: string;
|
|
369
|
+
disabled?: boolean;
|
|
370
|
+
selected?: boolean;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Label element attributes
|
|
375
|
+
*/
|
|
376
|
+
interface LabelHTMLAttributes extends FynixHTMLAttributes<HTMLLabelElement> {
|
|
377
|
+
for?: string;
|
|
378
|
+
htmlFor?: string;
|
|
379
|
+
form?: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Image element attributes
|
|
384
|
+
*/
|
|
385
|
+
interface ImgHTMLAttributes extends FynixHTMLAttributes<HTMLImageElement> {
|
|
386
|
+
src?: string;
|
|
387
|
+
alt?: string;
|
|
388
|
+
width?: number | string;
|
|
389
|
+
height?: number | string;
|
|
390
|
+
loading?: "eager" | "lazy";
|
|
391
|
+
decoding?: "async" | "auto" | "sync";
|
|
392
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
393
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
394
|
+
referrerPolicy?: ReferrerPolicy;
|
|
395
|
+
referrerpolicy?: ReferrerPolicy;
|
|
396
|
+
srcSet?: string;
|
|
397
|
+
srcset?: string;
|
|
398
|
+
sizes?: string;
|
|
399
|
+
useMap?: string;
|
|
400
|
+
usemap?: string;
|
|
401
|
+
isMap?: boolean;
|
|
402
|
+
ismap?: boolean;
|
|
403
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Table element attributes
|
|
408
|
+
*/
|
|
409
|
+
interface TableHTMLAttributes extends FynixHTMLAttributes<HTMLTableElement> {
|
|
410
|
+
cellPadding?: number | string;
|
|
411
|
+
cellSpacing?: number | string;
|
|
412
|
+
summary?: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Table cell attributes (td, th)
|
|
417
|
+
*/
|
|
418
|
+
interface TdHTMLAttributes extends FynixHTMLAttributes<HTMLTableCellElement> {
|
|
419
|
+
colSpan?: number;
|
|
420
|
+
colspan?: number;
|
|
421
|
+
rowSpan?: number;
|
|
422
|
+
rowspan?: number;
|
|
423
|
+
headers?: string;
|
|
424
|
+
scope?: "col" | "colgroup" | "row" | "rowgroup";
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Iframe element attributes
|
|
429
|
+
*/
|
|
430
|
+
interface IframeHTMLAttributes extends FynixHTMLAttributes<HTMLIFrameElement> {
|
|
431
|
+
src?: string;
|
|
432
|
+
srcDoc?: string;
|
|
433
|
+
srcdoc?: string;
|
|
434
|
+
name?: string;
|
|
435
|
+
width?: number | string;
|
|
436
|
+
height?: number | string;
|
|
437
|
+
loading?: "eager" | "lazy";
|
|
438
|
+
sandbox?: string;
|
|
439
|
+
allow?: string;
|
|
440
|
+
allowFullScreen?: boolean;
|
|
441
|
+
allowfullscreen?: boolean;
|
|
442
|
+
referrerPolicy?: ReferrerPolicy;
|
|
443
|
+
referrerpolicy?: ReferrerPolicy;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Video element attributes
|
|
448
|
+
*/
|
|
449
|
+
interface VideoHTMLAttributes extends FynixHTMLAttributes<HTMLVideoElement> {
|
|
450
|
+
src?: string;
|
|
451
|
+
poster?: string;
|
|
452
|
+
width?: number | string;
|
|
453
|
+
height?: number | string;
|
|
454
|
+
autoPlay?: boolean;
|
|
455
|
+
autoplay?: boolean;
|
|
456
|
+
controls?: boolean;
|
|
457
|
+
loop?: boolean;
|
|
458
|
+
muted?: boolean;
|
|
459
|
+
playsInline?: boolean;
|
|
460
|
+
playsinline?: boolean;
|
|
461
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
462
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
463
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
464
|
+
disablePictureInPicture?: boolean;
|
|
465
|
+
disableRemotePlayback?: boolean;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Audio element attributes
|
|
470
|
+
*/
|
|
471
|
+
interface AudioHTMLAttributes extends FynixHTMLAttributes<HTMLAudioElement> {
|
|
472
|
+
src?: string;
|
|
473
|
+
autoPlay?: boolean;
|
|
474
|
+
autoplay?: boolean;
|
|
475
|
+
controls?: boolean;
|
|
476
|
+
loop?: boolean;
|
|
477
|
+
muted?: boolean;
|
|
478
|
+
preload?: "none" | "metadata" | "auto" | "";
|
|
479
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
480
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Source element attributes
|
|
485
|
+
*/
|
|
486
|
+
interface SourceHTMLAttributes extends FynixHTMLAttributes<HTMLSourceElement> {
|
|
487
|
+
src?: string;
|
|
488
|
+
srcSet?: string;
|
|
489
|
+
srcset?: string;
|
|
490
|
+
type?: string;
|
|
491
|
+
media?: string;
|
|
492
|
+
sizes?: string;
|
|
493
|
+
width?: number | string;
|
|
494
|
+
height?: number | string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Canvas element attributes
|
|
499
|
+
*/
|
|
500
|
+
interface CanvasHTMLAttributes extends FynixHTMLAttributes<HTMLCanvasElement> {
|
|
501
|
+
width?: number | string;
|
|
502
|
+
height?: number | string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* SVG element attributes
|
|
507
|
+
*/
|
|
508
|
+
interface SVGAttributes extends FynixHTMLAttributes<SVGElement> {
|
|
509
|
+
viewBox?: string;
|
|
510
|
+
xmlns?: string;
|
|
511
|
+
fill?: string;
|
|
512
|
+
stroke?: string;
|
|
513
|
+
strokeWidth?: number | string;
|
|
514
|
+
"stroke-width"?: number | string;
|
|
515
|
+
strokeLinecap?: "butt" | "round" | "square";
|
|
516
|
+
"stroke-linecap"?: "butt" | "round" | "square";
|
|
517
|
+
strokeLinejoin?: "miter" | "round" | "bevel";
|
|
518
|
+
"stroke-linejoin"?: "miter" | "round" | "bevel";
|
|
519
|
+
d?: string;
|
|
520
|
+
cx?: number | string;
|
|
521
|
+
cy?: number | string;
|
|
522
|
+
r?: number | string;
|
|
523
|
+
rx?: number | string;
|
|
524
|
+
ry?: number | string;
|
|
525
|
+
x?: number | string;
|
|
526
|
+
y?: number | string;
|
|
527
|
+
x1?: number | string;
|
|
528
|
+
y1?: number | string;
|
|
529
|
+
x2?: number | string;
|
|
530
|
+
y2?: number | string;
|
|
531
|
+
width?: number | string;
|
|
532
|
+
height?: number | string;
|
|
533
|
+
points?: string;
|
|
534
|
+
transform?: string;
|
|
535
|
+
opacity?: number | string;
|
|
536
|
+
fillOpacity?: number | string;
|
|
537
|
+
"fill-opacity"?: number | string;
|
|
538
|
+
strokeOpacity?: number | string;
|
|
539
|
+
"stroke-opacity"?: number | string;
|
|
540
|
+
preserveAspectRatio?: string;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Meta element attributes
|
|
545
|
+
*/
|
|
546
|
+
interface MetaHTMLAttributes extends FynixHTMLAttributes<HTMLMetaElement> {
|
|
547
|
+
name?: string;
|
|
548
|
+
content?: string;
|
|
549
|
+
httpEquiv?: string;
|
|
550
|
+
"http-equiv"?: string;
|
|
551
|
+
charset?: string;
|
|
552
|
+
property?: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Link element attributes
|
|
557
|
+
*/
|
|
558
|
+
interface LinkHTMLAttributes extends FynixHTMLAttributes<HTMLLinkElement> {
|
|
559
|
+
href?: string;
|
|
560
|
+
rel?: string;
|
|
561
|
+
type?: string;
|
|
562
|
+
media?: string;
|
|
563
|
+
as?: string;
|
|
564
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
565
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
566
|
+
integrity?: string;
|
|
567
|
+
referrerPolicy?: ReferrerPolicy;
|
|
568
|
+
referrerpolicy?: ReferrerPolicy;
|
|
569
|
+
sizes?: string;
|
|
570
|
+
disabled?: boolean;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Script element attributes
|
|
575
|
+
*/
|
|
576
|
+
interface ScriptHTMLAttributes extends FynixHTMLAttributes<HTMLScriptElement> {
|
|
577
|
+
src?: string;
|
|
578
|
+
type?: string;
|
|
579
|
+
async?: boolean;
|
|
580
|
+
defer?: boolean;
|
|
581
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
582
|
+
crossorigin?: "anonymous" | "use-credentials" | "";
|
|
583
|
+
integrity?: string;
|
|
584
|
+
referrerPolicy?: ReferrerPolicy;
|
|
585
|
+
referrerpolicy?: ReferrerPolicy;
|
|
586
|
+
noModule?: boolean;
|
|
587
|
+
nomodule?: boolean;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Style element attributes
|
|
592
|
+
*/
|
|
593
|
+
interface StyleHTMLAttributes extends FynixHTMLAttributes<HTMLStyleElement> {
|
|
594
|
+
media?: string;
|
|
595
|
+
type?: string;
|
|
596
|
+
scoped?: boolean;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Progress element attributes
|
|
601
|
+
*/
|
|
602
|
+
interface ProgressHTMLAttributes extends FynixHTMLAttributes<HTMLProgressElement> {
|
|
603
|
+
value?: number | string;
|
|
604
|
+
max?: number | string;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Meter element attributes
|
|
609
|
+
*/
|
|
610
|
+
interface MeterHTMLAttributes extends FynixHTMLAttributes<HTMLMeterElement> {
|
|
611
|
+
value?: number | string;
|
|
612
|
+
min?: number | string;
|
|
613
|
+
max?: number | string;
|
|
614
|
+
low?: number | string;
|
|
615
|
+
high?: number | string;
|
|
616
|
+
optimum?: number | string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Dialog element attributes
|
|
621
|
+
*/
|
|
622
|
+
interface DialogHTMLAttributes extends FynixHTMLAttributes<HTMLDialogElement> {
|
|
623
|
+
open?: boolean;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Details element attributes
|
|
628
|
+
*/
|
|
629
|
+
interface DetailsHTMLAttributes extends FynixHTMLAttributes<HTMLDetailsElement> {
|
|
630
|
+
open?: boolean;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Time element attributes
|
|
635
|
+
*/
|
|
636
|
+
interface TimeHTMLAttributes extends FynixHTMLAttributes<HTMLTimeElement> {
|
|
637
|
+
dateTime?: string;
|
|
638
|
+
datetime?: string;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Fieldset element attributes
|
|
643
|
+
*/
|
|
644
|
+
interface FieldsetHTMLAttributes extends FynixHTMLAttributes<HTMLFieldSetElement> {
|
|
645
|
+
disabled?: boolean;
|
|
646
|
+
form?: string;
|
|
647
|
+
name?: string;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Output element attributes
|
|
652
|
+
*/
|
|
653
|
+
interface OutputHTMLAttributes extends FynixHTMLAttributes<HTMLOutputElement> {
|
|
654
|
+
for?: string;
|
|
655
|
+
htmlFor?: string;
|
|
656
|
+
form?: string;
|
|
657
|
+
name?: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Optgroup element attributes
|
|
662
|
+
*/
|
|
663
|
+
interface OptgroupHTMLAttributes extends FynixHTMLAttributes<HTMLOptGroupElement> {
|
|
664
|
+
disabled?: boolean;
|
|
665
|
+
label?: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Col/Colgroup element attributes
|
|
670
|
+
*/
|
|
671
|
+
interface ColHTMLAttributes extends FynixHTMLAttributes<HTMLTableColElement> {
|
|
672
|
+
span?: number;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Data element attributes
|
|
677
|
+
*/
|
|
678
|
+
interface DataHTMLAttributes extends FynixHTMLAttributes<HTMLDataElement> {
|
|
679
|
+
value?: string;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Object element attributes
|
|
684
|
+
*/
|
|
685
|
+
interface ObjectHTMLAttributes extends FynixHTMLAttributes<HTMLObjectElement> {
|
|
686
|
+
data?: string;
|
|
687
|
+
type?: string;
|
|
688
|
+
name?: string;
|
|
689
|
+
useMap?: string;
|
|
690
|
+
usemap?: string;
|
|
691
|
+
form?: string;
|
|
692
|
+
width?: number | string;
|
|
693
|
+
height?: number | string;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Embed element attributes
|
|
698
|
+
*/
|
|
699
|
+
interface EmbedHTMLAttributes extends FynixHTMLAttributes<HTMLEmbedElement> {
|
|
700
|
+
src?: string;
|
|
701
|
+
type?: string;
|
|
702
|
+
width?: number | string;
|
|
703
|
+
height?: number | string;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Map element attributes
|
|
708
|
+
*/
|
|
709
|
+
interface MapHTMLAttributes extends FynixHTMLAttributes<HTMLMapElement> {
|
|
710
|
+
name?: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Area element attributes
|
|
715
|
+
*/
|
|
716
|
+
interface AreaHTMLAttributes extends FynixHTMLAttributes<HTMLAreaElement> {
|
|
717
|
+
alt?: string;
|
|
718
|
+
coords?: string;
|
|
719
|
+
download?: boolean | string;
|
|
720
|
+
href?: string;
|
|
721
|
+
hreflang?: string;
|
|
722
|
+
ping?: string;
|
|
723
|
+
referrerPolicy?: ReferrerPolicy;
|
|
724
|
+
referrerpolicy?: ReferrerPolicy;
|
|
725
|
+
rel?: string;
|
|
726
|
+
shape?: "rect" | "circle" | "poly" | "default";
|
|
727
|
+
target?: string;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Base element attributes
|
|
732
|
+
*/
|
|
733
|
+
interface BaseHTMLAttributes extends FynixHTMLAttributes<HTMLBaseElement> {
|
|
734
|
+
href?: string;
|
|
735
|
+
target?: string;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Blockquote element attributes
|
|
740
|
+
*/
|
|
741
|
+
interface BlockquoteHTMLAttributes extends FynixHTMLAttributes<HTMLQuoteElement> {
|
|
742
|
+
cite?: string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Q element attributes
|
|
747
|
+
*/
|
|
748
|
+
interface QuoteHTMLAttributes extends FynixHTMLAttributes<HTMLQuoteElement> {
|
|
749
|
+
cite?: string;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Del/Ins element attributes
|
|
754
|
+
*/
|
|
755
|
+
interface ModHTMLAttributes extends FynixHTMLAttributes<HTMLModElement> {
|
|
756
|
+
cite?: string;
|
|
757
|
+
dateTime?: string;
|
|
758
|
+
datetime?: string;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Track element attributes
|
|
763
|
+
*/
|
|
764
|
+
interface TrackHTMLAttributes extends FynixHTMLAttributes<HTMLTrackElement> {
|
|
765
|
+
default?: boolean;
|
|
766
|
+
kind?: "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
|
|
767
|
+
label?: string;
|
|
768
|
+
src?: string;
|
|
769
|
+
srcLang?: string;
|
|
770
|
+
srclang?: string;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Slot element attributes
|
|
775
|
+
*/
|
|
776
|
+
interface SlotHTMLAttributes extends FynixHTMLAttributes<HTMLSlotElement> {
|
|
777
|
+
name?: string;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// =====================================================
|
|
781
|
+
// JSX Namespace Declaration
|
|
782
|
+
// =====================================================
|
|
783
|
+
|
|
784
|
+
declare global {
|
|
785
|
+
namespace JSX {
|
|
786
|
+
/**
|
|
787
|
+
* The type returned from JSX expressions
|
|
788
|
+
*/
|
|
789
|
+
interface Element extends VNode { }
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Mapping of HTML tag names to their attribute types
|
|
793
|
+
*/
|
|
794
|
+
interface IntrinsicElements {
|
|
795
|
+
// Document structure
|
|
796
|
+
html: FynixHTMLAttributes<HTMLHtmlElement>;
|
|
797
|
+
head: FynixHTMLAttributes<HTMLHeadElement>;
|
|
798
|
+
body: FynixHTMLAttributes<HTMLBodyElement>;
|
|
799
|
+
title: FynixHTMLAttributes<HTMLTitleElement>;
|
|
800
|
+
base: BaseHTMLAttributes;
|
|
801
|
+
link: LinkHTMLAttributes;
|
|
802
|
+
meta: MetaHTMLAttributes;
|
|
803
|
+
style: StyleHTMLAttributes;
|
|
804
|
+
script: ScriptHTMLAttributes;
|
|
805
|
+
noscript: FynixHTMLAttributes<HTMLElement>;
|
|
806
|
+
|
|
807
|
+
// Sections
|
|
808
|
+
article: FynixHTMLAttributes<HTMLElement>;
|
|
809
|
+
section: FynixHTMLAttributes<HTMLElement>;
|
|
810
|
+
nav: FynixHTMLAttributes<HTMLElement>;
|
|
811
|
+
aside: FynixHTMLAttributes<HTMLElement>;
|
|
812
|
+
header: FynixHTMLAttributes<HTMLElement>;
|
|
813
|
+
footer: FynixHTMLAttributes<HTMLElement>;
|
|
814
|
+
main: FynixHTMLAttributes<HTMLElement>;
|
|
815
|
+
address: FynixHTMLAttributes<HTMLElement>;
|
|
816
|
+
hgroup: FynixHTMLAttributes<HTMLElement>;
|
|
817
|
+
search: FynixHTMLAttributes<HTMLElement>;
|
|
818
|
+
|
|
819
|
+
// Content grouping
|
|
820
|
+
div: FynixHTMLAttributes<HTMLDivElement>;
|
|
821
|
+
span: FynixHTMLAttributes<HTMLSpanElement>;
|
|
822
|
+
p: FynixHTMLAttributes<HTMLParagraphElement>;
|
|
823
|
+
pre: FynixHTMLAttributes<HTMLPreElement>;
|
|
824
|
+
blockquote: BlockquoteHTMLAttributes;
|
|
825
|
+
hr: FynixHTMLAttributes<HTMLHRElement>;
|
|
826
|
+
ol: FynixHTMLAttributes<HTMLOListElement>;
|
|
827
|
+
ul: FynixHTMLAttributes<HTMLUListElement>;
|
|
828
|
+
li: FynixHTMLAttributes<HTMLLIElement>;
|
|
829
|
+
dl: FynixHTMLAttributes<HTMLDListElement>;
|
|
830
|
+
dt: FynixHTMLAttributes<HTMLElement>;
|
|
831
|
+
dd: FynixHTMLAttributes<HTMLElement>;
|
|
832
|
+
figure: FynixHTMLAttributes<HTMLElement>;
|
|
833
|
+
figcaption: FynixHTMLAttributes<HTMLElement>;
|
|
834
|
+
|
|
835
|
+
// Headings
|
|
836
|
+
h1: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
837
|
+
h2: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
838
|
+
h3: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
839
|
+
h4: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
840
|
+
h5: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
841
|
+
h6: FynixHTMLAttributes<HTMLHeadingElement>;
|
|
842
|
+
|
|
843
|
+
// Text-level semantics
|
|
844
|
+
a: AnchorHTMLAttributes;
|
|
845
|
+
em: FynixHTMLAttributes<HTMLElement>;
|
|
846
|
+
strong: FynixHTMLAttributes<HTMLElement>;
|
|
847
|
+
small: FynixHTMLAttributes<HTMLElement>;
|
|
848
|
+
s: FynixHTMLAttributes<HTMLElement>;
|
|
849
|
+
cite: FynixHTMLAttributes<HTMLElement>;
|
|
850
|
+
q: QuoteHTMLAttributes;
|
|
851
|
+
dfn: FynixHTMLAttributes<HTMLElement>;
|
|
852
|
+
abbr: FynixHTMLAttributes<HTMLElement>;
|
|
853
|
+
ruby: FynixHTMLAttributes<HTMLElement>;
|
|
854
|
+
rt: FynixHTMLAttributes<HTMLElement>;
|
|
855
|
+
rp: FynixHTMLAttributes<HTMLElement>;
|
|
856
|
+
data: DataHTMLAttributes;
|
|
857
|
+
time: TimeHTMLAttributes;
|
|
858
|
+
code: FynixHTMLAttributes<HTMLElement>;
|
|
859
|
+
var: FynixHTMLAttributes<HTMLElement>;
|
|
860
|
+
samp: FynixHTMLAttributes<HTMLElement>;
|
|
861
|
+
kbd: FynixHTMLAttributes<HTMLElement>;
|
|
862
|
+
sub: FynixHTMLAttributes<HTMLElement>;
|
|
863
|
+
sup: FynixHTMLAttributes<HTMLElement>;
|
|
864
|
+
i: FynixHTMLAttributes<HTMLElement>;
|
|
865
|
+
b: FynixHTMLAttributes<HTMLElement>;
|
|
866
|
+
u: FynixHTMLAttributes<HTMLElement>;
|
|
867
|
+
mark: FynixHTMLAttributes<HTMLElement>;
|
|
868
|
+
bdi: FynixHTMLAttributes<HTMLElement>;
|
|
869
|
+
bdo: FynixHTMLAttributes<HTMLElement>;
|
|
870
|
+
br: FynixHTMLAttributes<HTMLBRElement>;
|
|
871
|
+
wbr: FynixHTMLAttributes<HTMLElement>;
|
|
872
|
+
|
|
873
|
+
// Edits
|
|
874
|
+
ins: ModHTMLAttributes;
|
|
875
|
+
del: ModHTMLAttributes;
|
|
876
|
+
|
|
877
|
+
// Embedded content
|
|
878
|
+
picture: FynixHTMLAttributes<HTMLPictureElement>;
|
|
879
|
+
source: SourceHTMLAttributes;
|
|
880
|
+
img: ImgHTMLAttributes;
|
|
881
|
+
iframe: IframeHTMLAttributes;
|
|
882
|
+
embed: EmbedHTMLAttributes;
|
|
883
|
+
object: ObjectHTMLAttributes;
|
|
884
|
+
video: VideoHTMLAttributes;
|
|
885
|
+
audio: AudioHTMLAttributes;
|
|
886
|
+
track: TrackHTMLAttributes;
|
|
887
|
+
map: MapHTMLAttributes;
|
|
888
|
+
area: AreaHTMLAttributes;
|
|
889
|
+
canvas: CanvasHTMLAttributes;
|
|
890
|
+
|
|
891
|
+
// SVG
|
|
892
|
+
svg: SVGAttributes;
|
|
893
|
+
path: SVGAttributes;
|
|
894
|
+
circle: SVGAttributes;
|
|
895
|
+
ellipse: SVGAttributes;
|
|
896
|
+
line: SVGAttributes;
|
|
897
|
+
polygon: SVGAttributes;
|
|
898
|
+
polyline: SVGAttributes;
|
|
899
|
+
rect: SVGAttributes;
|
|
900
|
+
g: SVGAttributes;
|
|
901
|
+
defs: SVGAttributes;
|
|
902
|
+
use: SVGAttributes;
|
|
903
|
+
symbol: SVGAttributes;
|
|
904
|
+
clipPath: SVGAttributes;
|
|
905
|
+
mask: SVGAttributes;
|
|
906
|
+
linearGradient: SVGAttributes;
|
|
907
|
+
radialGradient: SVGAttributes;
|
|
908
|
+
stop: SVGAttributes;
|
|
909
|
+
text: SVGAttributes;
|
|
910
|
+
tspan: SVGAttributes;
|
|
911
|
+
image: SVGAttributes;
|
|
912
|
+
foreignObject: SVGAttributes;
|
|
913
|
+
|
|
914
|
+
// Tables
|
|
915
|
+
table: TableHTMLAttributes;
|
|
916
|
+
caption: FynixHTMLAttributes<HTMLTableCaptionElement>;
|
|
917
|
+
colgroup: ColHTMLAttributes;
|
|
918
|
+
col: ColHTMLAttributes;
|
|
919
|
+
thead: FynixHTMLAttributes<HTMLTableSectionElement>;
|
|
920
|
+
tbody: FynixHTMLAttributes<HTMLTableSectionElement>;
|
|
921
|
+
tfoot: FynixHTMLAttributes<HTMLTableSectionElement>;
|
|
922
|
+
tr: FynixHTMLAttributes<HTMLTableRowElement>;
|
|
923
|
+
td: TdHTMLAttributes;
|
|
924
|
+
th: TdHTMLAttributes;
|
|
925
|
+
|
|
926
|
+
// Forms
|
|
927
|
+
form: FormHTMLAttributes;
|
|
928
|
+
fieldset: FieldsetHTMLAttributes;
|
|
929
|
+
legend: FynixHTMLAttributes<HTMLLegendElement>;
|
|
930
|
+
label: LabelHTMLAttributes;
|
|
931
|
+
input: InputHTMLAttributes;
|
|
932
|
+
button: ButtonHTMLAttributes;
|
|
933
|
+
select: SelectHTMLAttributes;
|
|
934
|
+
datalist: FynixHTMLAttributes<HTMLDataListElement>;
|
|
935
|
+
optgroup: OptgroupHTMLAttributes;
|
|
936
|
+
option: OptionHTMLAttributes;
|
|
937
|
+
textarea: TextareaHTMLAttributes;
|
|
938
|
+
output: OutputHTMLAttributes;
|
|
939
|
+
progress: ProgressHTMLAttributes;
|
|
940
|
+
meter: MeterHTMLAttributes;
|
|
941
|
+
|
|
942
|
+
// Interactive elements
|
|
943
|
+
details: DetailsHTMLAttributes;
|
|
944
|
+
summary: FynixHTMLAttributes<HTMLElement>;
|
|
945
|
+
dialog: DialogHTMLAttributes;
|
|
946
|
+
menu: FynixHTMLAttributes<HTMLMenuElement>;
|
|
947
|
+
|
|
948
|
+
// Web Components
|
|
949
|
+
slot: SlotHTMLAttributes;
|
|
950
|
+
template: FynixHTMLAttributes<HTMLTemplateElement>;
|
|
951
|
+
|
|
952
|
+
// Deprecated but still valid
|
|
953
|
+
center: FynixHTMLAttributes<HTMLElement>;
|
|
954
|
+
font: FynixHTMLAttributes<HTMLFontElement>;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Attributes for custom elements / components
|
|
959
|
+
*/
|
|
960
|
+
interface IntrinsicAttributes {
|
|
961
|
+
key?: string | number;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Children type for components
|
|
966
|
+
*/
|
|
967
|
+
interface ElementChildrenAttribute {
|
|
968
|
+
children: {};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// Export types for use in other modules
|
|
974
|
+
export type {
|
|
975
|
+
FynixHTMLAttributes,
|
|
976
|
+
FynixEventHandler,
|
|
977
|
+
CSSStyles,
|
|
978
|
+
AnchorHTMLAttributes,
|
|
979
|
+
ButtonHTMLAttributes,
|
|
980
|
+
FormHTMLAttributes,
|
|
981
|
+
InputHTMLAttributes,
|
|
982
|
+
TextareaHTMLAttributes,
|
|
983
|
+
SelectHTMLAttributes,
|
|
984
|
+
OptionHTMLAttributes,
|
|
985
|
+
LabelHTMLAttributes,
|
|
986
|
+
ImgHTMLAttributes,
|
|
987
|
+
SVGAttributes,
|
|
988
|
+
};
|