@vertz/ui-primitives 0.2.20 → 0.2.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.
Files changed (105) hide show
  1. package/dist/shared/{chunk-bew4bjgf.js → chunk-07yzsaaw.js} +5 -5
  2. package/dist/shared/{chunk-yr9yzpvq.js → chunk-279bzynx.js} +83 -58
  3. package/dist/shared/{chunk-sqs8kyb2.js → chunk-27xs9apd.js} +5 -5
  4. package/dist/shared/{chunk-dpsgb1xw.js → chunk-2db2dnp3.js} +6 -2
  5. package/dist/shared/{chunk-8ak7vdk1.js → chunk-2k8gxzdf.js} +5 -5
  6. package/dist/shared/{chunk-t1vkvsz2.js → chunk-3rp73gkd.js} +5 -5
  7. package/dist/shared/{chunk-7ffg0caj.js → chunk-4rf1m34c.js} +8 -6
  8. package/dist/shared/{chunk-gkddsbmh.js → chunk-56reyd5r.js} +22 -31
  9. package/dist/shared/{chunk-jctqs9m4.js → chunk-7867pr13.js} +36 -12
  10. package/dist/shared/{chunk-n9nwx58j.js → chunk-7bxsf80c.js} +4 -4
  11. package/dist/shared/{chunk-7krvqrwq.js → chunk-8qtexw5s.js} +36 -14
  12. package/dist/shared/{chunk-m1ptgp1s.js → chunk-9ezgd78r.js} +7 -7
  13. package/dist/shared/{chunk-kg27s15c.js → chunk-ajpj10z0.js} +5 -5
  14. package/dist/shared/{chunk-tfyg0qrp.js → chunk-c46v0fsw.js} +6 -6
  15. package/dist/shared/{chunk-96d9nr7y.js → chunk-dhyr0s9n.js} +1 -1
  16. package/dist/shared/{chunk-avxcmmk6.js → chunk-e4mm5e59.js} +7 -7
  17. package/dist/shared/{chunk-gt0wth9h.js → chunk-fqa5bwn1.js} +3 -3
  18. package/dist/shared/{chunk-x0we8gcy.js → chunk-g8hnc95b.js} +5 -5
  19. package/dist/shared/chunk-j2tdpxgc.js +185 -0
  20. package/dist/shared/{chunk-x2hz98qn.js → chunk-jda3v59q.js} +2 -2
  21. package/dist/shared/{chunk-18y8gfk0.js → chunk-k8nabsxm.js} +115 -93
  22. package/dist/shared/{chunk-j4cm8avr.js → chunk-kcnq15je.js} +5 -5
  23. package/dist/shared/{chunk-4da5zksy.js → chunk-mqs4qq0b.js} +2 -2
  24. package/dist/shared/{chunk-9hj9p7s2.js → chunk-myq79qew.js} +37 -31
  25. package/dist/shared/{chunk-ppcv3ehd.js → chunk-pg2yjn8f.js} +15 -12
  26. package/dist/shared/{chunk-hr9hx58m.js → chunk-rb53v045.js} +4 -4
  27. package/dist/shared/{chunk-ttsyf6ma.js → chunk-s6a2yph8.js} +5 -5
  28. package/dist/shared/{chunk-vvjyx7fe.js → chunk-vevfhpc9.js} +1 -1
  29. package/dist/shared/{chunk-4085nbdq.js → chunk-vhx3sqw6.js} +5 -5
  30. package/dist/shared/{chunk-34yfm2b0.js → chunk-w318par6.js} +106 -84
  31. package/dist/shared/chunk-w9dag6ce.js +237 -0
  32. package/dist/shared/{chunk-g9qvd20g.js → chunk-wcdq7bew.js} +3 -3
  33. package/dist/shared/{chunk-rnjm61t0.js → chunk-z0gwkzgp.js} +3 -3
  34. package/dist/shared/{chunk-jz0s6srh.js → chunk-z850et33.js} +1 -1
  35. package/dist/shared/{chunk-7kpsyjd7.js → chunk-zyfc6cx3.js} +4 -4
  36. package/dist/src/accordion/accordion.d.ts +2 -0
  37. package/dist/src/accordion/accordion.js +1 -5
  38. package/dist/src/alert-dialog/alert-dialog.d.ts +7 -7
  39. package/dist/src/alert-dialog/alert-dialog.js +1 -4
  40. package/dist/src/badge/badge.d.ts +2 -0
  41. package/dist/src/badge/badge.js +1 -3
  42. package/dist/src/button/button.d.ts +2 -0
  43. package/dist/src/button/button.js +1 -3
  44. package/dist/src/calendar/calendar.d.ts +9 -6
  45. package/dist/src/calendar/calendar.js +1 -2
  46. package/dist/src/carousel/carousel.d.ts +2 -0
  47. package/dist/src/carousel/carousel.js +1 -4
  48. package/dist/src/checkbox/checkbox.d.ts +2 -0
  49. package/dist/src/checkbox/checkbox.js +1 -4
  50. package/dist/src/collapsible/collapsible.d.ts +2 -0
  51. package/dist/src/collapsible/collapsible.js +1 -4
  52. package/dist/src/combobox/combobox.d.ts +2 -0
  53. package/dist/src/combobox/combobox.js +1 -5
  54. package/dist/src/command/command.d.ts +2 -0
  55. package/dist/src/command/command.js +1 -5
  56. package/dist/src/context-menu/context-menu.d.ts +2 -0
  57. package/dist/src/context-menu/context-menu.js +1 -7
  58. package/dist/src/date-picker/date-picker.d.ts +6 -6
  59. package/dist/src/date-picker/date-picker.js +1 -10
  60. package/dist/src/dialog/dialog.d.ts +3 -0
  61. package/dist/src/dialog/dialog.js +1 -6
  62. package/dist/src/dropdown-menu/dropdown-menu.d.ts +3 -0
  63. package/dist/src/dropdown-menu/dropdown-menu.js +1 -8
  64. package/dist/src/hover-card/hover-card.d.ts +2 -0
  65. package/dist/src/hover-card/hover-card.js +1 -6
  66. package/dist/src/index.d.ts +906 -34
  67. package/dist/src/index.js +5183 -39
  68. package/dist/src/menu/menu.d.ts +3 -0
  69. package/dist/src/menu/menu.js +1 -7
  70. package/dist/src/menubar/menubar.d.ts +2 -0
  71. package/dist/src/menubar/menubar.js +1 -8
  72. package/dist/src/navigation-menu/navigation-menu.d.ts +7 -5
  73. package/dist/src/navigation-menu/navigation-menu.js +1 -6
  74. package/dist/src/popover/popover.d.ts +2 -0
  75. package/dist/src/popover/popover.js +1 -8
  76. package/dist/src/progress/progress.d.ts +4 -2
  77. package/dist/src/progress/progress.js +1 -4
  78. package/dist/src/radio/radio.d.ts +9 -3
  79. package/dist/src/radio/radio.js +1 -6
  80. package/dist/src/resizable-panel/resizable-panel.d.ts +2 -0
  81. package/dist/src/resizable-panel/resizable-panel.js +1 -4
  82. package/dist/src/scroll-area/scroll-area.d.ts +2 -0
  83. package/dist/src/scroll-area/scroll-area.js +1 -2
  84. package/dist/src/select/select.d.ts +2 -0
  85. package/dist/src/select/select.js +1 -7
  86. package/dist/src/sheet/sheet.js +1 -5
  87. package/dist/src/slider/slider.d.ts +2 -0
  88. package/dist/src/slider/slider.js +1 -5
  89. package/dist/src/switch/switch.d.ts +2 -0
  90. package/dist/src/switch/switch.js +1 -4
  91. package/dist/src/tabs/tabs.d.ts +7 -4
  92. package/dist/src/tabs/tabs.js +1 -6
  93. package/dist/src/toast/toast.d.ts +2 -0
  94. package/dist/src/toast/toast.js +1 -4
  95. package/dist/src/toggle/toggle.d.ts +2 -0
  96. package/dist/src/toggle/toggle.js +1 -4
  97. package/dist/src/toggle-group/toggle-group.d.ts +2 -0
  98. package/dist/src/toggle-group/toggle-group.js +1 -5
  99. package/dist/src/tooltip/tooltip.d.ts +3 -1
  100. package/dist/src/tooltip/tooltip.js +1 -6
  101. package/dist/src/utils.d.ts +62 -2
  102. package/dist/src/utils.js +50 -3
  103. package/package.json +4 -6
  104. package/dist/shared/chunk-8nk0ya7a.js +0 -163
  105. package/dist/shared/chunk-8tvzqry6.js +0 -218
@@ -0,0 +1,237 @@
1
+ import {
2
+ focusFirst,
3
+ setRovingTabindex
4
+ } from "./chunk-e2v1c9ex.js";
5
+ import {
6
+ Keys,
7
+ handleListNavigation,
8
+ isKey
9
+ } from "./chunk-7867pr13.js";
10
+ import {
11
+ setDataState,
12
+ setExpanded,
13
+ setHidden,
14
+ setHiddenAnimated
15
+ } from "./chunk-vevfhpc9.js";
16
+ import {
17
+ linkedIds
18
+ } from "./chunk-8y1jf6xr.js";
19
+ import {
20
+ applyAttrs
21
+ } from "./chunk-2db2dnp3.js";
22
+
23
+ // src/navigation-menu/navigation-menu.tsx
24
+ import { __element, __enterChildren, __exitChildren, __insert, __on } from "@vertz/ui/internals";
25
+ import { signal } from "@vertz/ui";
26
+ function NavMenuList(triggers, orientation) {
27
+ return (() => {
28
+ const __el0 = __element("div");
29
+ __on(__el0, "keydown", (event) => {
30
+ if (isKey(event, Keys.ArrowLeft, Keys.ArrowRight, Keys.Home, Keys.End)) {
31
+ handleListNavigation(event, triggers, {
32
+ orientation: orientation === "horizontal" ? "horizontal" : "vertical"
33
+ });
34
+ }
35
+ });
36
+ return __el0;
37
+ })();
38
+ }
39
+ function NavMenuViewport() {
40
+ return (() => {
41
+ const __el0 = __element("div");
42
+ return __el0;
43
+ })();
44
+ }
45
+ function NavMenuNav(list, viewport) {
46
+ return (() => {
47
+ const __el0 = __element("nav");
48
+ __enterChildren(__el0);
49
+ __insert(__el0, list);
50
+ __insert(__el0, viewport);
51
+ __exitChildren();
52
+ return __el0;
53
+ })();
54
+ }
55
+ function NavMenuItemTrigger(triggerId, contentId, value, label, onClick, onMouseenter, onMouseleave, onKeydown) {
56
+ return (() => {
57
+ const __el0 = __element("button");
58
+ __el0.setAttribute("type", "button");
59
+ {
60
+ const __v = triggerId;
61
+ if (__v != null && __v !== false)
62
+ __el0.setAttribute("id", __v === true ? "" : __v);
63
+ }
64
+ {
65
+ const __v = contentId;
66
+ if (__v != null && __v !== false)
67
+ __el0.setAttribute("aria-controls", __v === true ? "" : __v);
68
+ }
69
+ {
70
+ const __v = value;
71
+ if (__v != null && __v !== false)
72
+ __el0.setAttribute("data-value", __v === true ? "" : __v);
73
+ }
74
+ __el0.setAttribute("aria-expanded", "false");
75
+ __el0.setAttribute("data-state", "closed");
76
+ __on(__el0, "click", onClick);
77
+ __on(__el0, "mouseenter", onMouseenter);
78
+ __on(__el0, "mouseleave", onMouseleave);
79
+ __on(__el0, "keydown", onKeydown);
80
+ __enterChildren(__el0);
81
+ __insert(__el0, label ?? value);
82
+ __exitChildren();
83
+ return __el0;
84
+ })();
85
+ }
86
+ function NavMenuItemContent(contentId, onMouseenter, onMouseleave, onKeydown) {
87
+ return (() => {
88
+ const __el0 = __element("div");
89
+ {
90
+ const __v = contentId;
91
+ if (__v != null && __v !== false)
92
+ __el0.setAttribute("id", __v === true ? "" : __v);
93
+ }
94
+ __el0.setAttribute("aria-hidden", "true");
95
+ __el0.setAttribute("data-state", "closed");
96
+ __el0.setAttribute("style", "display: none");
97
+ __on(__el0, "mouseenter", onMouseenter);
98
+ __on(__el0, "mouseleave", onMouseleave);
99
+ __on(__el0, "keydown", onKeydown);
100
+ return __el0;
101
+ })();
102
+ }
103
+ function NavMenuLink(href, label) {
104
+ return (() => {
105
+ const __el0 = __element("a");
106
+ {
107
+ const __v = href;
108
+ if (__v != null && __v !== false)
109
+ __el0.setAttribute("href", __v === true ? "" : __v);
110
+ }
111
+ __enterChildren(__el0);
112
+ __insert(__el0, label);
113
+ __exitChildren();
114
+ return __el0;
115
+ })();
116
+ }
117
+ function NavigationMenuRoot(options = {}) {
118
+ const { orientation = "horizontal", delayOpen = 200, delayClose = 300, ...attrs } = options;
119
+ const state = { activeItem: signal(null) };
120
+ const triggers = [];
121
+ const items = new Map;
122
+ let openTimeout = null;
123
+ let closeTimeout = null;
124
+ function cancelTimers() {
125
+ if (openTimeout) {
126
+ clearTimeout(openTimeout);
127
+ openTimeout = null;
128
+ }
129
+ if (closeTimeout) {
130
+ clearTimeout(closeTimeout);
131
+ closeTimeout = null;
132
+ }
133
+ }
134
+ function openItem(value) {
135
+ cancelTimers();
136
+ const current = state.activeItem.peek();
137
+ if (current && current !== value) {
138
+ const prev = items.get(current);
139
+ if (prev) {
140
+ setExpanded(prev.trigger, false);
141
+ setDataState(prev.trigger, "closed");
142
+ setDataState(prev.content, "closed");
143
+ setHiddenAnimated(prev.content, true);
144
+ }
145
+ }
146
+ const item = items.get(value);
147
+ if (!item)
148
+ return;
149
+ state.activeItem.value = value;
150
+ setExpanded(item.trigger, true);
151
+ setHidden(item.content, false);
152
+ setDataState(item.trigger, "open");
153
+ setDataState(item.content, "open");
154
+ }
155
+ function closeAll() {
156
+ cancelTimers();
157
+ const current = state.activeItem.peek();
158
+ if (current) {
159
+ const item = items.get(current);
160
+ if (item) {
161
+ setExpanded(item.trigger, false);
162
+ setDataState(item.trigger, "closed");
163
+ setDataState(item.content, "closed");
164
+ setHiddenAnimated(item.content, true);
165
+ }
166
+ }
167
+ state.activeItem.value = null;
168
+ }
169
+ const list = NavMenuList(triggers, orientation);
170
+ const viewport = NavMenuViewport();
171
+ const root = NavMenuNav(list, viewport);
172
+ function Item(value, label) {
173
+ const ids = linkedIds("nav-menu");
174
+ let contentEl;
175
+ const trigger = NavMenuItemTrigger(ids.triggerId, ids.contentId, value, label, () => {
176
+ if (state.activeItem.peek() === value) {
177
+ closeAll();
178
+ } else {
179
+ openItem(value);
180
+ }
181
+ }, () => {
182
+ cancelTimers();
183
+ openTimeout = setTimeout(() => {
184
+ openItem(value);
185
+ openTimeout = null;
186
+ }, delayOpen);
187
+ }, () => {
188
+ cancelTimers();
189
+ closeTimeout = setTimeout(() => {
190
+ closeAll();
191
+ closeTimeout = null;
192
+ }, delayClose);
193
+ }, (event) => {
194
+ if (isKey(event, Keys.Enter, Keys.Space)) {
195
+ event.preventDefault();
196
+ openItem(value);
197
+ queueMicrotask(() => focusFirst(contentEl));
198
+ }
199
+ if (isKey(event, Keys.Escape)) {
200
+ event.preventDefault();
201
+ closeAll();
202
+ }
203
+ });
204
+ contentEl = NavMenuItemContent(ids.contentId, () => cancelTimers(), () => {
205
+ cancelTimers();
206
+ closeTimeout = setTimeout(() => {
207
+ closeAll();
208
+ closeTimeout = null;
209
+ }, delayClose);
210
+ }, (event) => {
211
+ if (isKey(event, Keys.Escape)) {
212
+ event.preventDefault();
213
+ event.stopPropagation();
214
+ closeAll();
215
+ trigger.focus();
216
+ }
217
+ });
218
+ triggers.push(trigger);
219
+ setRovingTabindex(triggers, 0);
220
+ items.set(value, { trigger, content: contentEl });
221
+ list.appendChild(trigger);
222
+ viewport.appendChild(contentEl);
223
+ return { trigger, content: contentEl };
224
+ }
225
+ function Link(href, label) {
226
+ const a = NavMenuLink(href, label);
227
+ list.appendChild(a);
228
+ return a;
229
+ }
230
+ applyAttrs(root, attrs);
231
+ return { root, list, viewport, state, Item, Link };
232
+ }
233
+ var NavigationMenu = {
234
+ Root: NavigationMenuRoot
235
+ };
236
+
237
+ export { NavigationMenu };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Keys,
3
3
  isKey
4
- } from "./chunk-jctqs9m4.js";
4
+ } from "./chunk-7867pr13.js";
5
5
  import {
6
6
  setDataState
7
- } from "./chunk-vvjyx7fe.js";
7
+ } from "./chunk-vevfhpc9.js";
8
8
  import {
9
9
  applyAttrs
10
- } from "./chunk-dpsgb1xw.js";
10
+ } from "./chunk-2db2dnp3.js";
11
11
 
12
12
  // src/carousel/carousel.tsx
13
13
  import { __element, __enterChildren, __exitChildren, __insert, __on } from "@vertz/ui/internals";
@@ -1,9 +1,9 @@
1
- import {
2
- applyAttrs
3
- } from "./chunk-dpsgb1xw.js";
4
1
  import {
5
2
  uniqueId
6
3
  } from "./chunk-8y1jf6xr.js";
4
+ import {
5
+ applyAttrs
6
+ } from "./chunk-2db2dnp3.js";
7
7
 
8
8
  // src/badge/badge.tsx
9
9
  import { __element } from "@vertz/ui/internals";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  applyAttrs
3
- } from "./chunk-dpsgb1xw.js";
3
+ } from "./chunk-2db2dnp3.js";
4
4
 
5
5
  // src/scroll-area/scroll-area.tsx
6
6
  import { __element, __enterChildren, __exitChildren, __insert, __on } from "@vertz/ui/internals";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Keys,
3
3
  isKey
4
- } from "./chunk-jctqs9m4.js";
5
- import {
6
- applyAttrs
7
- } from "./chunk-dpsgb1xw.js";
4
+ } from "./chunk-7867pr13.js";
8
5
  import {
9
6
  uniqueId
10
7
  } from "./chunk-8y1jf6xr.js";
8
+ import {
9
+ applyAttrs
10
+ } from "./chunk-2db2dnp3.js";
11
11
 
12
12
  // src/switch/switch.tsx
13
13
  import { computed, signal } from "@vertz/ui";
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,10 +1,6 @@
1
1
  import {
2
2
  Accordion
3
- } from "../../shared/chunk-avxcmmk6.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
6
- import"../../shared/chunk-dpsgb1xw.js";
7
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-e4mm5e59.js";
8
4
  export {
9
5
  Accordion
10
6
  };
@@ -8,13 +8,13 @@ interface AlertDialogState {
8
8
  open: Signal<boolean>;
9
9
  }
10
10
  interface AlertDialogElements {
11
- trigger: HTMLButtonElement;
12
- overlay: HTMLDivElement;
13
- content: HTMLDivElement;
14
- title: HTMLHeadingElement;
15
- description: HTMLParagraphElement;
16
- cancel: HTMLButtonElement;
17
- action: HTMLButtonElement;
11
+ trigger: HTMLElement;
12
+ overlay: HTMLElement;
13
+ content: HTMLElement;
14
+ title: HTMLElement;
15
+ description: HTMLElement;
16
+ cancel: HTMLElement;
17
+ action: HTMLElement;
18
18
  show: () => void;
19
19
  hide: () => void;
20
20
  }
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  AlertDialog
3
- } from "../../shared/chunk-34yfm2b0.js";
4
- import"../../shared/chunk-e2v1c9ex.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
6
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-w318par6.js";
7
4
  export {
8
5
  AlertDialog
9
6
  };
@@ -1,4 +1,6 @@
1
1
  interface ElementAttrs {
2
+ className?: string;
3
+ /** @deprecated Use `className` instead. */
2
4
  class?: string;
3
5
  id?: string;
4
6
  style?: string;
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  Badge
3
- } from "../../shared/chunk-rnjm61t0.js";
4
- import"../../shared/chunk-dpsgb1xw.js";
5
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-z0gwkzgp.js";
6
4
  export {
7
5
  Badge
8
6
  };
@@ -1,4 +1,6 @@
1
1
  interface ElementAttrs {
2
+ className?: string;
3
+ /** @deprecated Use `className` instead. */
2
4
  class?: string;
3
5
  id?: string;
4
6
  style?: string;
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "../../shared/chunk-4da5zksy.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-dpsgb1xw.js";
3
+ } from "../../shared/chunk-mqs4qq0b.js";
6
4
  export {
7
5
  Button
8
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -37,16 +39,17 @@ interface CalendarState {
37
39
  displayMonth: Signal<Date>;
38
40
  }
39
41
  interface CalendarElements {
40
- root: HTMLDivElement;
41
- header: HTMLDivElement;
42
- title: HTMLDivElement;
43
- prevButton: HTMLButtonElement;
44
- nextButton: HTMLButtonElement;
45
- grid: HTMLTableElement;
42
+ root: HTMLElement;
43
+ header: HTMLElement;
44
+ title: HTMLElement;
45
+ prevButton: HTMLElement;
46
+ nextButton: HTMLElement;
47
+ grid: HTMLElement;
46
48
  }
47
49
  declare const Calendar: {
48
50
  Root: (options?: CalendarOptions) => CalendarElements & {
49
51
  state: CalendarState;
52
+ destroy: () => void;
50
53
  };
51
54
  };
52
55
  export { CalendarState, CalendarOptions, CalendarElements, Calendar };
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Calendar
3
- } from "../../shared/chunk-18y8gfk0.js";
4
- import"../../shared/chunk-dpsgb1xw.js";
3
+ } from "../../shared/chunk-k8nabsxm.js";
5
4
  export {
6
5
  Calendar
7
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  Carousel
3
- } from "../../shared/chunk-g9qvd20g.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
6
- import"../../shared/chunk-dpsgb1xw.js";
3
+ } from "../../shared/chunk-wcdq7bew.js";
7
4
  export {
8
5
  Carousel
9
6
  };
@@ -1,4 +1,6 @@
1
1
  interface ElementAttrs {
2
+ className?: string;
3
+ /** @deprecated Use `className` instead. */
2
4
  class?: string;
3
5
  id?: string;
4
6
  style?: string;
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  Checkbox
3
- } from "../../shared/chunk-hr9hx58m.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-dpsgb1xw.js";
6
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-rb53v045.js";
7
4
  export {
8
5
  Checkbox
9
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  Collapsible
3
- } from "../../shared/chunk-tfyg0qrp.js";
4
- import"../../shared/chunk-vvjyx7fe.js";
5
- import"../../shared/chunk-dpsgb1xw.js";
6
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-c46v0fsw.js";
7
4
  export {
8
5
  Collapsible
9
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,10 +1,6 @@
1
1
  import {
2
2
  Combobox
3
- } from "../../shared/chunk-4085nbdq.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
6
- import"../../shared/chunk-dpsgb1xw.js";
7
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-vhx3sqw6.js";
8
4
  export {
9
5
  Combobox
10
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,10 +1,6 @@
1
1
  import {
2
2
  Command
3
- } from "../../shared/chunk-ttsyf6ma.js";
4
- import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
6
- import"../../shared/chunk-dpsgb1xw.js";
7
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-s6a2yph8.js";
8
4
  export {
9
5
  Command
10
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -1,12 +1,6 @@
1
1
  import {
2
2
  ContextMenu
3
- } from "../../shared/chunk-x0we8gcy.js";
4
- import"../../shared/chunk-a6wp8c32.js";
5
- import"../../shared/chunk-0mcr52hc.js";
6
- import"../../shared/chunk-jctqs9m4.js";
7
- import"../../shared/chunk-vvjyx7fe.js";
8
- import"../../shared/chunk-dpsgb1xw.js";
9
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-g8hnc95b.js";
10
4
  export {
11
5
  ContextMenu
12
6
  };
@@ -29,12 +29,12 @@ interface DatePickerElements {
29
29
  trigger: HTMLButtonElement;
30
30
  content: HTMLDivElement;
31
31
  calendar: {
32
- root: HTMLDivElement;
33
- header: HTMLDivElement;
34
- title: HTMLDivElement;
35
- prevButton: HTMLButtonElement;
36
- nextButton: HTMLButtonElement;
37
- grid: HTMLTableElement;
32
+ root: HTMLElement;
33
+ header: HTMLElement;
34
+ title: HTMLElement;
35
+ prevButton: HTMLElement;
36
+ nextButton: HTMLElement;
37
+ grid: HTMLElement;
38
38
  };
39
39
  }
40
40
  declare const DatePicker: {
@@ -1,15 +1,6 @@
1
1
  import {
2
2
  DatePicker
3
- } from "../../shared/chunk-x2hz98qn.js";
4
- import"../../shared/chunk-18y8gfk0.js";
5
- import"../../shared/chunk-m1ptgp1s.js";
6
- import"../../shared/chunk-a6wp8c32.js";
7
- import"../../shared/chunk-e2v1c9ex.js";
8
- import"../../shared/chunk-0mcr52hc.js";
9
- import"../../shared/chunk-jctqs9m4.js";
10
- import"../../shared/chunk-vvjyx7fe.js";
11
- import"../../shared/chunk-dpsgb1xw.js";
12
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-jda3v59q.js";
13
4
  export {
14
5
  DatePicker
15
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -24,6 +26,7 @@ interface DialogElements {
24
26
  content: HTMLDivElement;
25
27
  overlay: HTMLDivElement;
26
28
  title: HTMLHeadingElement;
29
+ description: HTMLParagraphElement;
27
30
  close: HTMLButtonElement;
28
31
  show: () => void;
29
32
  hide: () => void;
@@ -1,11 +1,6 @@
1
1
  import {
2
2
  Dialog
3
- } from "../../shared/chunk-7krvqrwq.js";
4
- import"../../shared/chunk-e2v1c9ex.js";
5
- import"../../shared/chunk-jctqs9m4.js";
6
- import"../../shared/chunk-vvjyx7fe.js";
7
- import"../../shared/chunk-dpsgb1xw.js";
8
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-8qtexw5s.js";
9
4
  export {
10
5
  Dialog
11
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;
@@ -26,6 +28,7 @@ interface FloatingOptions {
26
28
  }
27
29
  interface MenuOptions extends ElementAttrs {
28
30
  onSelect?: (value: string) => void;
31
+ onOpenChange?: (open: boolean) => void;
29
32
  positioning?: FloatingOptions;
30
33
  }
31
34
  interface MenuState {
@@ -1,13 +1,6 @@
1
1
  import {
2
2
  DropdownMenu
3
- } from "../../shared/chunk-96d9nr7y.js";
4
- import"../../shared/chunk-7ffg0caj.js";
5
- import"../../shared/chunk-a6wp8c32.js";
6
- import"../../shared/chunk-0mcr52hc.js";
7
- import"../../shared/chunk-jctqs9m4.js";
8
- import"../../shared/chunk-vvjyx7fe.js";
9
- import"../../shared/chunk-dpsgb1xw.js";
10
- import"../../shared/chunk-8y1jf6xr.js";
3
+ } from "../../shared/chunk-dhyr0s9n.js";
11
4
  export {
12
5
  DropdownMenu
13
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Signal } from "@vertz/ui";
2
2
  interface ElementAttrs {
3
+ className?: string;
4
+ /** @deprecated Use `className` instead. */
3
5
  class?: string;
4
6
  id?: string;
5
7
  style?: string;