fynixui 1.0.11 → 1.0.13

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