@vertz/ui-primitives 0.2.16 → 0.2.17

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.
Files changed (117) hide show
  1. package/dist/shared/chunk-18y8gfk0.js +308 -0
  2. package/dist/shared/chunk-4085nbdq.js +196 -0
  3. package/dist/shared/chunk-4da5zksy.js +46 -0
  4. package/dist/shared/chunk-7ffg0caj.js +265 -0
  5. package/dist/shared/{chunk-w06tst6x.js → chunk-7kpsyjd7.js} +9 -5
  6. package/dist/shared/chunk-7krvqrwq.js +177 -0
  7. package/dist/shared/chunk-8ak7vdk1.js +151 -0
  8. package/dist/shared/chunk-8nk0ya7a.js +163 -0
  9. package/dist/shared/chunk-8tvzqry6.js +218 -0
  10. package/dist/shared/{chunk-qpfqyrc5.js → chunk-96d9nr7y.js} +1 -1
  11. package/dist/shared/chunk-9hj9p7s2.js +95 -0
  12. package/dist/shared/chunk-avxcmmk6.js +178 -0
  13. package/dist/shared/chunk-bew4bjgf.js +165 -0
  14. package/dist/shared/chunk-dpsgb1xw.js +18 -0
  15. package/dist/shared/chunk-g9qvd20g.js +133 -0
  16. package/dist/shared/chunk-gkddsbmh.js +73 -0
  17. package/dist/shared/chunk-gt0wth9h.js +128 -0
  18. package/dist/shared/chunk-hr9hx58m.js +71 -0
  19. package/dist/shared/{chunk-n92bvn5d.js → chunk-j4cm8avr.js} +85 -59
  20. package/dist/shared/chunk-jz0s6srh.js +161 -0
  21. package/dist/shared/chunk-kg27s15c.js +282 -0
  22. package/dist/shared/chunk-m1ptgp1s.js +142 -0
  23. package/dist/shared/{chunk-9cqe2q6e.js → chunk-n9nwx58j.js} +9 -5
  24. package/dist/shared/chunk-ppcv3ehd.js +85 -0
  25. package/dist/shared/{chunk-vq9tfzh8.js → chunk-rnjm61t0.js} +5 -1
  26. package/dist/shared/chunk-sqs8kyb2.js +288 -0
  27. package/dist/shared/chunk-tfyg0qrp.js +117 -0
  28. package/dist/shared/chunk-ttsyf6ma.js +239 -0
  29. package/dist/shared/chunk-x0we8gcy.js +219 -0
  30. package/dist/shared/{chunk-6pnjrst7.js → chunk-x2hz98qn.js} +2 -2
  31. package/dist/shared/chunk-yr9yzpvq.js +107 -0
  32. package/dist/src/accordion/accordion.d.ts +14 -2
  33. package/dist/src/accordion/accordion.js +2 -1
  34. package/dist/src/badge/badge.d.ts +13 -1
  35. package/dist/src/badge/badge.js +2 -1
  36. package/dist/src/button/button.d.ts +16 -14
  37. package/dist/src/button/button.js +2 -2
  38. package/dist/src/calendar/calendar.d.ts +14 -2
  39. package/dist/src/calendar/calendar.js +2 -1
  40. package/dist/src/carousel/carousel.d.ts +14 -2
  41. package/dist/src/carousel/carousel.js +2 -1
  42. package/dist/src/checkbox/checkbox.d.ts +15 -13
  43. package/dist/src/checkbox/checkbox.js +2 -2
  44. package/dist/src/collapsible/collapsible.d.ts +14 -2
  45. package/dist/src/collapsible/collapsible.js +2 -1
  46. package/dist/src/combobox/combobox.d.ts +14 -2
  47. package/dist/src/combobox/combobox.js +2 -1
  48. package/dist/src/command/command.d.ts +14 -2
  49. package/dist/src/command/command.js +2 -1
  50. package/dist/src/context-menu/context-menu.d.ts +14 -2
  51. package/dist/src/context-menu/context-menu.js +2 -1
  52. package/dist/src/date-picker/date-picker.js +4 -3
  53. package/dist/src/dialog/dialog.d.ts +14 -2
  54. package/dist/src/dialog/dialog.js +2 -1
  55. package/dist/src/dropdown-menu/dropdown-menu.d.ts +13 -1
  56. package/dist/src/dropdown-menu/dropdown-menu.js +3 -2
  57. package/dist/src/hover-card/hover-card.d.ts +14 -2
  58. package/dist/src/hover-card/hover-card.js +2 -1
  59. package/dist/src/index.d.ts +132 -140
  60. package/dist/src/index.js +31 -30
  61. package/dist/src/menu/menu.d.ts +14 -2
  62. package/dist/src/menu/menu.js +2 -1
  63. package/dist/src/menubar/menubar.d.ts +14 -2
  64. package/dist/src/menubar/menubar.js +2 -1
  65. package/dist/src/navigation-menu/navigation-menu.d.ts +14 -2
  66. package/dist/src/navigation-menu/navigation-menu.js +2 -1
  67. package/dist/src/popover/popover.d.ts +14 -2
  68. package/dist/src/popover/popover.js +2 -1
  69. package/dist/src/progress/progress.d.ts +14 -2
  70. package/dist/src/progress/progress.js +2 -1
  71. package/dist/src/radio/radio.d.ts +14 -2
  72. package/dist/src/radio/radio.js +2 -1
  73. package/dist/src/resizable-panel/resizable-panel.d.ts +14 -2
  74. package/dist/src/resizable-panel/resizable-panel.js +2 -1
  75. package/dist/src/scroll-area/scroll-area.d.ts +14 -2
  76. package/dist/src/scroll-area/scroll-area.js +2 -1
  77. package/dist/src/select/select.d.ts +14 -2
  78. package/dist/src/select/select.js +2 -1
  79. package/dist/src/slider/slider.d.ts +14 -2
  80. package/dist/src/slider/slider.js +2 -1
  81. package/dist/src/switch/switch.d.ts +13 -1
  82. package/dist/src/switch/switch.js +2 -1
  83. package/dist/src/tabs/tabs.d.ts +14 -2
  84. package/dist/src/tabs/tabs.js +2 -1
  85. package/dist/src/toast/toast.d.ts +14 -2
  86. package/dist/src/toast/toast.js +2 -1
  87. package/dist/src/toggle/toggle.d.ts +13 -1
  88. package/dist/src/toggle/toggle.js +2 -1
  89. package/dist/src/toggle-group/toggle-group.d.ts +14 -2
  90. package/dist/src/toggle-group/toggle-group.js +2 -1
  91. package/dist/src/tooltip/tooltip.d.ts +14 -2
  92. package/dist/src/tooltip/tooltip.js +2 -1
  93. package/package.json +3 -3
  94. package/dist/shared/chunk-2h5qpc00.js +0 -98
  95. package/dist/shared/chunk-31yptvbf.js +0 -151
  96. package/dist/shared/chunk-3pantb0p.js +0 -108
  97. package/dist/shared/chunk-3s6s6f06.js +0 -61
  98. package/dist/shared/chunk-48v8j0vh.js +0 -267
  99. package/dist/shared/chunk-6dmt4513.js +0 -78
  100. package/dist/shared/chunk-6sqwjfg8.js +0 -169
  101. package/dist/shared/chunk-8qfeqrrz.js +0 -179
  102. package/dist/shared/chunk-bcfzteh0.js +0 -148
  103. package/dist/shared/chunk-cr9sbwns.js +0 -235
  104. package/dist/shared/chunk-cvbf1js1.js +0 -52
  105. package/dist/shared/chunk-dkhst4wv.js +0 -97
  106. package/dist/shared/chunk-e3aj5yw4.js +0 -115
  107. package/dist/shared/chunk-fv1y77tn.js +0 -225
  108. package/dist/shared/chunk-h42bk324.js +0 -58
  109. package/dist/shared/chunk-h9m9x5my.js +0 -119
  110. package/dist/shared/chunk-qq0e0gym.js +0 -73
  111. package/dist/shared/chunk-tk1k1bet.js +0 -93
  112. package/dist/shared/chunk-tvpgeswh.js +0 -216
  113. package/dist/shared/chunk-vcp10kne.js +0 -175
  114. package/dist/shared/chunk-ve006hmy.js +0 -51
  115. package/dist/shared/chunk-vx1ajy2z.js +0 -115
  116. package/dist/shared/chunk-wnttq0gv.js +0 -49
  117. package/dist/shared/chunk-x6qzr3g6.js +0 -100
package/dist/src/index.js CHANGED
@@ -1,104 +1,105 @@
1
1
  import {
2
2
  Switch
3
- } from "../shared/chunk-w06tst6x.js";
3
+ } from "../shared/chunk-7kpsyjd7.js";
4
4
  import {
5
5
  Button
6
- } from "../shared/chunk-ve006hmy.js";
6
+ } from "../shared/chunk-4da5zksy.js";
7
7
  import {
8
8
  HoverCard
9
- } from "../shared/chunk-31yptvbf.js";
9
+ } from "../shared/chunk-bew4bjgf.js";
10
10
  import {
11
11
  ResizablePanel
12
- } from "../shared/chunk-n92bvn5d.js";
12
+ } from "../shared/chunk-j4cm8avr.js";
13
13
  import {
14
14
  Tabs
15
- } from "../shared/chunk-2h5qpc00.js";
15
+ } from "../shared/chunk-8nk0ya7a.js";
16
16
  import {
17
17
  Checkbox
18
- } from "../shared/chunk-h42bk324.js";
18
+ } from "../shared/chunk-hr9hx58m.js";
19
19
  import {
20
20
  Command
21
- } from "../shared/chunk-vcp10kne.js";
21
+ } from "../shared/chunk-ttsyf6ma.js";
22
22
  import {
23
23
  DropdownMenu
24
- } from "../shared/chunk-qpfqyrc5.js";
24
+ } from "../shared/chunk-96d9nr7y.js";
25
25
  import {
26
26
  Menu
27
- } from "../shared/chunk-tvpgeswh.js";
27
+ } from "../shared/chunk-7ffg0caj.js";
28
28
  import {
29
29
  Collapsible
30
- } from "../shared/chunk-3s6s6f06.js";
30
+ } from "../shared/chunk-tfyg0qrp.js";
31
31
  import {
32
32
  Toggle
33
- } from "../shared/chunk-9cqe2q6e.js";
33
+ } from "../shared/chunk-n9nwx58j.js";
34
34
  import {
35
35
  Dialog
36
- } from "../shared/chunk-3pantb0p.js";
36
+ } from "../shared/chunk-7krvqrwq.js";
37
37
  import {
38
38
  Select
39
- } from "../shared/chunk-fv1y77tn.js";
39
+ } from "../shared/chunk-kg27s15c.js";
40
40
  import {
41
41
  AlertDialog
42
42
  } from "../shared/chunk-34yfm2b0.js";
43
43
  import {
44
44
  ToggleGroup
45
- } from "../shared/chunk-tk1k1bet.js";
45
+ } from "../shared/chunk-gt0wth9h.js";
46
46
  import {
47
47
  ContextMenu
48
- } from "../shared/chunk-8qfeqrrz.js";
48
+ } from "../shared/chunk-x0we8gcy.js";
49
49
  import {
50
50
  Sheet
51
51
  } from "../shared/chunk-t1vkvsz2.js";
52
52
  import {
53
53
  NavigationMenu
54
- } from "../shared/chunk-6sqwjfg8.js";
54
+ } from "../shared/chunk-8tvzqry6.js";
55
55
  import {
56
56
  Radio
57
- } from "../shared/chunk-qq0e0gym.js";
57
+ } from "../shared/chunk-yr9yzpvq.js";
58
58
  import {
59
59
  Tooltip
60
- } from "../shared/chunk-6dmt4513.js";
60
+ } from "../shared/chunk-9hj9p7s2.js";
61
61
  import {
62
62
  Menubar
63
- } from "../shared/chunk-cr9sbwns.js";
63
+ } from "../shared/chunk-sqs8kyb2.js";
64
64
  import {
65
65
  ScrollArea
66
- } from "../shared/chunk-h9m9x5my.js";
66
+ } from "../shared/chunk-jz0s6srh.js";
67
67
  import {
68
68
  Progress
69
- } from "../shared/chunk-wnttq0gv.js";
69
+ } from "../shared/chunk-ppcv3ehd.js";
70
70
  import {
71
71
  Carousel
72
- } from "../shared/chunk-x6qzr3g6.js";
72
+ } from "../shared/chunk-g9qvd20g.js";
73
73
  import {
74
74
  Toast
75
- } from "../shared/chunk-cvbf1js1.js";
75
+ } from "../shared/chunk-gkddsbmh.js";
76
76
  import {
77
77
  DatePicker
78
- } from "../shared/chunk-6pnjrst7.js";
78
+ } from "../shared/chunk-x2hz98qn.js";
79
79
  import {
80
80
  Calendar
81
- } from "../shared/chunk-48v8j0vh.js";
81
+ } from "../shared/chunk-18y8gfk0.js";
82
82
  import {
83
83
  Popover
84
- } from "../shared/chunk-dkhst4wv.js";
84
+ } from "../shared/chunk-m1ptgp1s.js";
85
85
  import"../shared/chunk-a6wp8c32.js";
86
86
  import"../shared/chunk-e2v1c9ex.js";
87
87
  import"../shared/chunk-0mcr52hc.js";
88
88
  import {
89
89
  Slider
90
- } from "../shared/chunk-vx1ajy2z.js";
90
+ } from "../shared/chunk-8ak7vdk1.js";
91
91
  import {
92
92
  Combobox
93
- } from "../shared/chunk-bcfzteh0.js";
93
+ } from "../shared/chunk-4085nbdq.js";
94
94
  import {
95
95
  Accordion
96
- } from "../shared/chunk-e3aj5yw4.js";
96
+ } from "../shared/chunk-avxcmmk6.js";
97
97
  import"../shared/chunk-jctqs9m4.js";
98
98
  import"../shared/chunk-vvjyx7fe.js";
99
99
  import {
100
100
  Badge
101
- } from "../shared/chunk-vq9tfzh8.js";
101
+ } from "../shared/chunk-rnjm61t0.js";
102
+ import"../shared/chunk-dpsgb1xw.js";
102
103
  import"../shared/chunk-8y1jf6xr.js";
103
104
  export {
104
105
  Tooltip,
@@ -1,4 +1,16 @@
1
1
  import { Signal } from "@vertz/ui";
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
2
14
  import { Middleware, Placement, Strategy } from "@floating-ui/dom";
3
15
  interface FloatingOptions {
4
16
  placement?: Placement;
@@ -12,7 +24,7 @@ interface FloatingOptions {
12
24
  /** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
13
25
  referenceElement?: HTMLElement;
14
26
  }
15
- interface MenuOptions {
27
+ interface MenuOptions extends ElementAttrs {
16
28
  onSelect?: (value: string) => void;
17
29
  positioning?: FloatingOptions;
18
30
  }
@@ -25,7 +37,7 @@ interface MenuElements {
25
37
  content: HTMLDivElement;
26
38
  }
27
39
  declare const Menu: {
28
- Root(options?: MenuOptions): MenuElements & {
40
+ Root: (options?: MenuOptions) => MenuElements & {
29
41
  state: MenuState;
30
42
  Item: (value: string, label?: string) => HTMLDivElement;
31
43
  Group: (label: string) => {
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  Menu
3
- } from "../../shared/chunk-tvpgeswh.js";
3
+ } from "../../shared/chunk-7ffg0caj.js";
4
4
  import"../../shared/chunk-a6wp8c32.js";
5
5
  import"../../shared/chunk-0mcr52hc.js";
6
6
  import"../../shared/chunk-jctqs9m4.js";
7
7
  import"../../shared/chunk-vvjyx7fe.js";
8
+ import"../../shared/chunk-dpsgb1xw.js";
8
9
  import"../../shared/chunk-8y1jf6xr.js";
9
10
  export {
10
11
  Menu
@@ -1,4 +1,16 @@
1
1
  import { Signal } from "@vertz/ui";
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
2
14
  import { Middleware, Placement, Strategy } from "@floating-ui/dom";
3
15
  interface FloatingOptions {
4
16
  placement?: Placement;
@@ -12,7 +24,7 @@ interface FloatingOptions {
12
24
  /** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
13
25
  referenceElement?: HTMLElement;
14
26
  }
15
- interface MenubarOptions {
27
+ interface MenubarOptions extends ElementAttrs {
16
28
  onSelect?: (value: string) => void;
17
29
  positioning?: FloatingOptions;
18
30
  }
@@ -23,7 +35,7 @@ interface MenubarElements {
23
35
  root: HTMLDivElement;
24
36
  }
25
37
  declare const Menubar: {
26
- Root(options?: MenubarOptions): MenubarElements & {
38
+ Root: (options?: MenubarOptions) => MenubarElements & {
27
39
  state: MenubarState;
28
40
  Menu: (value: string, label?: string) => {
29
41
  trigger: HTMLButtonElement;
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  Menubar
3
- } from "../../shared/chunk-cr9sbwns.js";
3
+ } from "../../shared/chunk-sqs8kyb2.js";
4
4
  import"../../shared/chunk-a6wp8c32.js";
5
5
  import"../../shared/chunk-e2v1c9ex.js";
6
6
  import"../../shared/chunk-0mcr52hc.js";
7
7
  import"../../shared/chunk-jctqs9m4.js";
8
8
  import"../../shared/chunk-vvjyx7fe.js";
9
+ import"../../shared/chunk-dpsgb1xw.js";
9
10
  import"../../shared/chunk-8y1jf6xr.js";
10
11
  export {
11
12
  Menubar
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface NavigationMenuOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface NavigationMenuOptions extends ElementAttrs {
3
15
  orientation?: "horizontal" | "vertical";
4
16
  delayOpen?: number;
5
17
  delayClose?: number;
@@ -13,7 +25,7 @@ interface NavigationMenuElements {
13
25
  viewport: HTMLDivElement;
14
26
  }
15
27
  declare const NavigationMenu: {
16
- Root(options?: NavigationMenuOptions): NavigationMenuElements & {
28
+ Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
17
29
  state: NavigationMenuState;
18
30
  Item: (value: string, label?: string) => {
19
31
  trigger: HTMLButtonElement;
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  NavigationMenu
3
- } from "../../shared/chunk-6sqwjfg8.js";
3
+ } from "../../shared/chunk-8tvzqry6.js";
4
4
  import"../../shared/chunk-e2v1c9ex.js";
5
5
  import"../../shared/chunk-jctqs9m4.js";
6
6
  import"../../shared/chunk-vvjyx7fe.js";
7
+ import"../../shared/chunk-dpsgb1xw.js";
7
8
  import"../../shared/chunk-8y1jf6xr.js";
8
9
  export {
9
10
  NavigationMenu
@@ -1,4 +1,16 @@
1
1
  import { Signal } from "@vertz/ui";
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
2
14
  import { Middleware, Placement, Strategy } from "@floating-ui/dom";
3
15
  interface FloatingOptions {
4
16
  placement?: Placement;
@@ -12,7 +24,7 @@ interface FloatingOptions {
12
24
  /** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
13
25
  referenceElement?: HTMLElement;
14
26
  }
15
- interface PopoverOptions {
27
+ interface PopoverOptions extends ElementAttrs {
16
28
  defaultOpen?: boolean;
17
29
  onOpenChange?: (open: boolean) => void;
18
30
  positioning?: FloatingOptions;
@@ -25,7 +37,7 @@ interface PopoverElements {
25
37
  content: HTMLDivElement;
26
38
  }
27
39
  declare const Popover: {
28
- Root(options?: PopoverOptions): PopoverElements & {
40
+ Root: (options?: PopoverOptions) => PopoverElements & {
29
41
  state: PopoverState;
30
42
  };
31
43
  };
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  Popover
3
- } from "../../shared/chunk-dkhst4wv.js";
3
+ } from "../../shared/chunk-m1ptgp1s.js";
4
4
  import"../../shared/chunk-a6wp8c32.js";
5
5
  import"../../shared/chunk-e2v1c9ex.js";
6
6
  import"../../shared/chunk-0mcr52hc.js";
7
7
  import"../../shared/chunk-jctqs9m4.js";
8
8
  import"../../shared/chunk-vvjyx7fe.js";
9
+ import"../../shared/chunk-dpsgb1xw.js";
9
10
  import"../../shared/chunk-8y1jf6xr.js";
10
11
  export {
11
12
  Popover
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface ProgressOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface ProgressOptions extends ElementAttrs {
3
15
  defaultValue?: number;
4
16
  min?: number;
5
17
  max?: number;
@@ -12,7 +24,7 @@ interface ProgressElements {
12
24
  indicator: HTMLDivElement;
13
25
  }
14
26
  declare const Progress: {
15
- Root(options?: ProgressOptions): ProgressElements & {
27
+ Root: (options?: ProgressOptions) => ProgressElements & {
16
28
  state: ProgressState;
17
29
  setValue: (value: number) => void;
18
30
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  Progress
3
- } from "../../shared/chunk-wnttq0gv.js";
3
+ } from "../../shared/chunk-ppcv3ehd.js";
4
4
  import"../../shared/chunk-vvjyx7fe.js";
5
+ import"../../shared/chunk-dpsgb1xw.js";
5
6
  import"../../shared/chunk-8y1jf6xr.js";
6
7
  export {
7
8
  Progress
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface RadioOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface RadioOptions extends ElementAttrs {
3
15
  defaultValue?: string;
4
16
  onValueChange?: (value: string) => void;
5
17
  }
@@ -10,7 +22,7 @@ interface RadioElements {
10
22
  root: HTMLDivElement;
11
23
  }
12
24
  declare const Radio: {
13
- Root(options?: RadioOptions): RadioElements & {
25
+ Root: (options?: RadioOptions) => RadioElements & {
14
26
  state: RadioState;
15
27
  Item: (value: string, label?: string) => HTMLDivElement;
16
28
  };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  Radio
3
- } from "../../shared/chunk-qq0e0gym.js";
3
+ } from "../../shared/chunk-yr9yzpvq.js";
4
4
  import"../../shared/chunk-e2v1c9ex.js";
5
5
  import"../../shared/chunk-jctqs9m4.js";
6
6
  import"../../shared/chunk-vvjyx7fe.js";
7
+ import"../../shared/chunk-dpsgb1xw.js";
7
8
  import"../../shared/chunk-8y1jf6xr.js";
8
9
  export {
9
10
  Radio
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface ResizablePanelOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface ResizablePanelOptions extends ElementAttrs {
3
15
  orientation?: "horizontal" | "vertical";
4
16
  onResize?: (sizes: number[]) => void;
5
17
  }
@@ -15,7 +27,7 @@ interface ResizablePanelElements {
15
27
  root: HTMLDivElement;
16
28
  }
17
29
  declare const ResizablePanel: {
18
- Root(options?: ResizablePanelOptions): ResizablePanelElements & {
30
+ Root: (options?: ResizablePanelOptions) => ResizablePanelElements & {
19
31
  state: ResizablePanelState;
20
32
  Panel: (panelOptions?: PanelOptions) => HTMLDivElement;
21
33
  Handle: () => HTMLDivElement;
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ResizablePanel
3
- } from "../../shared/chunk-n92bvn5d.js";
3
+ } from "../../shared/chunk-j4cm8avr.js";
4
4
  import"../../shared/chunk-jctqs9m4.js";
5
5
  import"../../shared/chunk-vvjyx7fe.js";
6
+ import"../../shared/chunk-dpsgb1xw.js";
6
7
  export {
7
8
  ResizablePanel
8
9
  };
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface ScrollAreaOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface ScrollAreaOptions extends ElementAttrs {
3
15
  orientation?: "vertical" | "horizontal" | "both";
4
16
  type?: "auto" | "always" | "hover" | "scroll";
5
17
  }
@@ -17,7 +29,7 @@ interface ScrollAreaElements {
17
29
  thumbX: HTMLDivElement;
18
30
  }
19
31
  declare const ScrollArea: {
20
- Root(options?: ScrollAreaOptions): ScrollAreaElements & {
32
+ Root: (options?: ScrollAreaOptions) => ScrollAreaElements & {
21
33
  state: ScrollAreaState;
22
34
  update: () => void;
23
35
  };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  ScrollArea
3
- } from "../../shared/chunk-h9m9x5my.js";
3
+ } from "../../shared/chunk-jz0s6srh.js";
4
+ import"../../shared/chunk-dpsgb1xw.js";
4
5
  export {
5
6
  ScrollArea
6
7
  };
@@ -1,4 +1,16 @@
1
1
  import { Signal } from "@vertz/ui";
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
2
14
  import { Middleware, Placement, Strategy } from "@floating-ui/dom";
3
15
  interface FloatingOptions {
4
16
  placement?: Placement;
@@ -12,7 +24,7 @@ interface FloatingOptions {
12
24
  /** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
13
25
  referenceElement?: HTMLElement;
14
26
  }
15
- interface SelectOptions {
27
+ interface SelectOptions extends ElementAttrs {
16
28
  defaultValue?: string;
17
29
  placeholder?: string;
18
30
  onValueChange?: (value: string) => void;
@@ -28,7 +40,7 @@ interface SelectElements {
28
40
  content: HTMLDivElement;
29
41
  }
30
42
  declare const Select: {
31
- Root(options?: SelectOptions): SelectElements & {
43
+ Root: (options?: SelectOptions) => SelectElements & {
32
44
  state: SelectState;
33
45
  Item: (value: string, label?: string) => HTMLDivElement;
34
46
  Group: (label: string) => {
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  Select
3
- } from "../../shared/chunk-fv1y77tn.js";
3
+ } from "../../shared/chunk-kg27s15c.js";
4
4
  import"../../shared/chunk-a6wp8c32.js";
5
5
  import"../../shared/chunk-0mcr52hc.js";
6
6
  import"../../shared/chunk-jctqs9m4.js";
7
7
  import"../../shared/chunk-vvjyx7fe.js";
8
+ import"../../shared/chunk-dpsgb1xw.js";
8
9
  import"../../shared/chunk-8y1jf6xr.js";
9
10
  export {
10
11
  Select
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface SliderOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface SliderOptions extends ElementAttrs {
3
15
  defaultValue?: number;
4
16
  min?: number;
5
17
  max?: number;
@@ -17,7 +29,7 @@ interface SliderElements {
17
29
  track: HTMLDivElement;
18
30
  }
19
31
  declare const Slider: {
20
- Root(options?: SliderOptions): SliderElements & {
32
+ Root: (options?: SliderOptions) => SliderElements & {
21
33
  state: SliderState;
22
34
  };
23
35
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Slider
3
- } from "../../shared/chunk-vx1ajy2z.js";
3
+ } from "../../shared/chunk-8ak7vdk1.js";
4
4
  import"../../shared/chunk-jctqs9m4.js";
5
5
  import"../../shared/chunk-vvjyx7fe.js";
6
+ import"../../shared/chunk-dpsgb1xw.js";
6
7
  import"../../shared/chunk-8y1jf6xr.js";
7
8
  export {
8
9
  Slider
@@ -1,4 +1,16 @@
1
- interface SwitchOptions {
1
+ interface ElementAttrs {
2
+ class?: string;
3
+ id?: string;
4
+ style?: string;
5
+ title?: string;
6
+ role?: string;
7
+ tabindex?: number | string;
8
+ hidden?: boolean | string;
9
+ autofocus?: boolean;
10
+ [key: `data-${string}`]: string | undefined;
11
+ [key: `aria-${string}`]: string | undefined;
12
+ }
13
+ interface SwitchOptions extends ElementAttrs {
2
14
  defaultChecked?: boolean;
3
15
  disabled?: boolean;
4
16
  onCheckedChange?: (checked: boolean) => void;
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  Switch
3
- } from "../../shared/chunk-w06tst6x.js";
3
+ } from "../../shared/chunk-7kpsyjd7.js";
4
4
  import"../../shared/chunk-jctqs9m4.js";
5
+ import"../../shared/chunk-dpsgb1xw.js";
5
6
  import"../../shared/chunk-8y1jf6xr.js";
6
7
  export {
7
8
  Switch
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface TabsOptions {
2
+ interface ElementAttrs {
3
+ class?: string;
4
+ id?: string;
5
+ style?: string;
6
+ title?: string;
7
+ role?: string;
8
+ tabindex?: number | string;
9
+ hidden?: boolean | string;
10
+ autofocus?: boolean;
11
+ [key: `data-${string}`]: string | undefined;
12
+ [key: `aria-${string}`]: string | undefined;
13
+ }
14
+ interface TabsOptions extends ElementAttrs {
3
15
  defaultValue?: string;
4
16
  orientation?: "horizontal" | "vertical";
5
17
  onValueChange?: (value: string) => void;
@@ -12,7 +24,7 @@ interface TabsElements {
12
24
  list: HTMLDivElement;
13
25
  }
14
26
  declare const Tabs: {
15
- Root(options?: TabsOptions): TabsElements & {
27
+ Root: (options?: TabsOptions) => TabsElements & {
16
28
  state: TabsState;
17
29
  Tab: (value: string, label?: string) => {
18
30
  trigger: HTMLButtonElement;
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  Tabs
3
- } from "../../shared/chunk-2h5qpc00.js";
3
+ } from "../../shared/chunk-8nk0ya7a.js";
4
4
  import"../../shared/chunk-e2v1c9ex.js";
5
5
  import"../../shared/chunk-jctqs9m4.js";
6
6
  import"../../shared/chunk-vvjyx7fe.js";
7
+ import"../../shared/chunk-dpsgb1xw.js";
7
8
  import"../../shared/chunk-8y1jf6xr.js";
8
9
  export {
9
10
  Tabs