@vertz/ui-primitives 0.2.16 → 0.2.18

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
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface CalendarOptions {
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 CalendarOptions extends ElementAttrs {
3
15
  mode?: "single" | "range" | "multiple";
4
16
  defaultValue?: Date | Date[] | {
5
17
  from: Date;
@@ -33,7 +45,7 @@ interface CalendarElements {
33
45
  grid: HTMLTableElement;
34
46
  }
35
47
  declare const Calendar: {
36
- Root(options?: CalendarOptions): CalendarElements & {
48
+ Root: (options?: CalendarOptions) => CalendarElements & {
37
49
  state: CalendarState;
38
50
  };
39
51
  };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  Calendar
3
- } from "../../shared/chunk-48v8j0vh.js";
3
+ } from "../../shared/chunk-18y8gfk0.js";
4
+ import"../../shared/chunk-dpsgb1xw.js";
4
5
  export {
5
6
  Calendar
6
7
  };
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface CarouselOptions {
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 CarouselOptions extends ElementAttrs {
3
15
  orientation?: "horizontal" | "vertical";
4
16
  loop?: boolean;
5
17
  defaultIndex?: number;
@@ -16,7 +28,7 @@ interface CarouselElements {
16
28
  nextButton: HTMLButtonElement;
17
29
  }
18
30
  declare const Carousel: {
19
- Root(options?: CarouselOptions): CarouselElements & {
31
+ Root: (options?: CarouselOptions) => CarouselElements & {
20
32
  state: CarouselState;
21
33
  Slide: () => HTMLDivElement;
22
34
  goTo: (index: number) => void;
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Carousel
3
- } from "../../shared/chunk-x6qzr3g6.js";
3
+ } from "../../shared/chunk-g9qvd20g.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
  Carousel
8
9
  };
@@ -1,20 +1,22 @@
1
- import { Signal } from "@vertz/ui";
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
+ }
2
13
  type CheckedState = boolean | "mixed";
3
- interface CheckboxOptions {
14
+ interface CheckboxOptions extends ElementAttrs {
4
15
  defaultChecked?: CheckedState;
5
16
  disabled?: boolean;
6
17
  onCheckedChange?: (checked: CheckedState) => void;
7
18
  }
8
- interface CheckboxState {
9
- checked: Signal<CheckedState>;
10
- disabled: Signal<boolean>;
11
- }
12
- interface CheckboxElements {
13
- root: HTMLButtonElement;
14
- }
15
19
  declare const Checkbox: {
16
- Root(options?: CheckboxOptions): CheckboxElements & {
17
- state: CheckboxState;
18
- };
20
+ Root: (options?: CheckboxOptions) => HTMLButtonElement;
19
21
  };
20
- export { CheckedState, CheckboxState, CheckboxOptions, CheckboxElements, Checkbox };
22
+ export { CheckedState, CheckboxOptions, Checkbox };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Checkbox
3
- } from "../../shared/chunk-h42bk324.js";
3
+ } from "../../shared/chunk-hr9hx58m.js";
4
4
  import"../../shared/chunk-jctqs9m4.js";
5
- import"../../shared/chunk-vvjyx7fe.js";
5
+ import"../../shared/chunk-dpsgb1xw.js";
6
6
  import"../../shared/chunk-8y1jf6xr.js";
7
7
  export {
8
8
  Checkbox
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface CollapsibleOptions {
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 CollapsibleOptions extends ElementAttrs {
3
15
  defaultOpen?: boolean;
4
16
  disabled?: boolean;
5
17
  onOpenChange?: (open: boolean) => void;
@@ -14,7 +26,7 @@ interface CollapsibleElements {
14
26
  content: HTMLDivElement;
15
27
  }
16
28
  declare const Collapsible: {
17
- Root(options?: CollapsibleOptions): CollapsibleElements & {
29
+ Root: (options?: CollapsibleOptions) => CollapsibleElements & {
18
30
  state: CollapsibleState;
19
31
  };
20
32
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  Collapsible
3
- } from "../../shared/chunk-3s6s6f06.js";
3
+ } from "../../shared/chunk-tfyg0qrp.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
  Collapsible
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface ComboboxOptions {
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 ComboboxOptions extends ElementAttrs {
3
15
  defaultValue?: string;
4
16
  onValueChange?: (value: string) => void;
5
17
  onInputChange?: (input: string) => void;
@@ -15,7 +27,7 @@ interface ComboboxElements {
15
27
  listbox: HTMLDivElement;
16
28
  }
17
29
  declare const Combobox: {
18
- Root(options?: ComboboxOptions): ComboboxElements & {
30
+ Root: (options?: ComboboxOptions) => ComboboxElements & {
19
31
  state: ComboboxState;
20
32
  Option: (value: string, label?: string) => HTMLDivElement;
21
33
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Combobox
3
- } from "../../shared/chunk-bcfzteh0.js";
3
+ } from "../../shared/chunk-4085nbdq.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
  Combobox
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface CommandOptions {
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 CommandOptions extends ElementAttrs {
3
15
  filter?: (value: string, search: string) => boolean;
4
16
  onSelect?: (value: string) => void;
5
17
  onInputChange?: (value: string) => void;
@@ -16,7 +28,7 @@ interface CommandElements {
16
28
  empty: HTMLDivElement;
17
29
  }
18
30
  declare const Command: {
19
- Root(options?: CommandOptions): CommandElements & {
31
+ Root: (options?: CommandOptions) => CommandElements & {
20
32
  state: CommandState;
21
33
  Item: (value: string, label?: string, keywords?: string[]) => HTMLDivElement;
22
34
  Group: (label: string) => {
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Command
3
- } from "../../shared/chunk-vcp10kne.js";
3
+ } from "../../shared/chunk-ttsyf6ma.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
  Command
@@ -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 ContextMenuOptions {
27
+ interface ContextMenuOptions extends ElementAttrs {
16
28
  onSelect?: (value: string) => void;
17
29
  positioning?: FloatingOptions;
18
30
  }
@@ -25,7 +37,7 @@ interface ContextMenuElements {
25
37
  content: HTMLDivElement;
26
38
  }
27
39
  declare const ContextMenu: {
28
- Root(options?: ContextMenuOptions): ContextMenuElements & {
40
+ Root: (options?: ContextMenuOptions) => ContextMenuElements & {
29
41
  state: ContextMenuState;
30
42
  Item: (value: string, label?: string) => HTMLDivElement;
31
43
  Group: (label: string) => {
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  ContextMenu
3
- } from "../../shared/chunk-8qfeqrrz.js";
3
+ } from "../../shared/chunk-x0we8gcy.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
  ContextMenu
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  DatePicker
3
- } from "../../shared/chunk-6pnjrst7.js";
4
- import"../../shared/chunk-48v8j0vh.js";
5
- import"../../shared/chunk-dkhst4wv.js";
3
+ } from "../../shared/chunk-x2hz98qn.js";
4
+ import"../../shared/chunk-18y8gfk0.js";
5
+ import"../../shared/chunk-m1ptgp1s.js";
6
6
  import"../../shared/chunk-a6wp8c32.js";
7
7
  import"../../shared/chunk-e2v1c9ex.js";
8
8
  import"../../shared/chunk-0mcr52hc.js";
9
9
  import"../../shared/chunk-jctqs9m4.js";
10
10
  import"../../shared/chunk-vvjyx7fe.js";
11
+ import"../../shared/chunk-dpsgb1xw.js";
11
12
  import"../../shared/chunk-8y1jf6xr.js";
12
13
  export {
13
14
  DatePicker
@@ -1,5 +1,17 @@
1
1
  import { Signal } from "@vertz/ui";
2
- interface DialogOptions {
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 DialogOptions extends ElementAttrs {
3
15
  modal?: boolean;
4
16
  defaultOpen?: boolean;
5
17
  onOpenChange?: (open: boolean) => void;
@@ -17,7 +29,7 @@ interface DialogElements {
17
29
  hide: () => void;
18
30
  }
19
31
  declare const Dialog: {
20
- Root(options?: DialogOptions): DialogElements & {
32
+ Root: (options?: DialogOptions) => DialogElements & {
21
33
  state: DialogState;
22
34
  };
23
35
  };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  Dialog
3
- } from "../../shared/chunk-3pantb0p.js";
3
+ } from "../../shared/chunk-7krvqrwq.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
  Dialog
@@ -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
  }
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  DropdownMenu
3
- } from "../../shared/chunk-qpfqyrc5.js";
4
- import"../../shared/chunk-tvpgeswh.js";
3
+ } from "../../shared/chunk-96d9nr7y.js";
4
+ import"../../shared/chunk-7ffg0caj.js";
5
5
  import"../../shared/chunk-a6wp8c32.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
  DropdownMenu
@@ -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 HoverCardOptions {
27
+ interface HoverCardOptions extends ElementAttrs {
16
28
  openDelay?: number;
17
29
  closeDelay?: number;
18
30
  onOpenChange?: (open: boolean) => void;
@@ -26,7 +38,7 @@ interface HoverCardElements {
26
38
  content: HTMLDivElement;
27
39
  }
28
40
  declare const HoverCard: {
29
- Root(options?: HoverCardOptions): HoverCardElements & {
41
+ Root: (options?: HoverCardOptions) => HoverCardElements & {
30
42
  state: HoverCardState;
31
43
  };
32
44
  };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  HoverCard
3
- } from "../../shared/chunk-31yptvbf.js";
3
+ } from "../../shared/chunk-bew4bjgf.js";
4
4
  import"../../shared/chunk-0mcr52hc.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
  HoverCard