@gv-tech/ui-web 2.29.2 → 2.29.3

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 (265) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +53 -1
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.mjs +99 -1
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +1 -1
  7. package/dist/aspect-ratio.cjs +1 -1
  8. package/dist/aspect-ratio.mjs +10 -1
  9. package/dist/attachment.cjs +1 -1
  10. package/dist/attachment.mjs +25 -24
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.mjs +49 -1
  13. package/dist/badge.cjs +1 -1
  14. package/dist/badge.mjs +5 -4
  15. package/dist/breadcrumb.cjs +1 -1
  16. package/dist/breadcrumb.mjs +12 -11
  17. package/dist/bubble.cjs +1 -1
  18. package/dist/bubble.mjs +4 -3
  19. package/dist/button-group.cjs +1 -1
  20. package/dist/button-group.mjs +12 -11
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.mjs +4 -3
  23. package/dist/calendar.cjs +1 -1
  24. package/dist/calendar.mjs +97 -1
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.mjs +1 -1
  27. package/dist/carousel.cjs +1 -1
  28. package/dist/carousel.mjs +107 -1
  29. package/dist/chart.cjs +2 -2
  30. package/dist/chart.mjs +1 -1
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.mjs +19 -1
  33. package/dist/collapsible.cjs +1 -1
  34. package/dist/collapsible.mjs +12 -12
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.mjs +161 -1
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.mjs +89 -1
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.mjs +123 -1
  41. package/dist/dialog.cjs +1 -1
  42. package/dist/dialog.mjs +40 -40
  43. package/dist/direction.cjs +1 -1
  44. package/dist/direction.mjs +7 -7
  45. package/dist/drawer.cjs +1 -1
  46. package/dist/drawer.mjs +1 -1
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.mjs +126 -1
  49. package/dist/empty.cjs +1 -1
  50. package/dist/empty.mjs +1 -1
  51. package/dist/field.cjs +1 -1
  52. package/dist/field.mjs +36 -36
  53. package/dist/form.cjs +1 -1
  54. package/dist/form.mjs +36 -36
  55. package/dist/hover-card.cjs +1 -1
  56. package/dist/hover-card.mjs +30 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.mjs +36 -36
  59. package/dist/input-group.cjs +1 -1
  60. package/dist/input-group.mjs +26 -26
  61. package/dist/input-otp.cjs +1 -1
  62. package/dist/input-otp.mjs +45 -1
  63. package/dist/input.cjs +1 -1
  64. package/dist/input.mjs +1 -1
  65. package/dist/item.cjs +1 -1
  66. package/dist/item.mjs +28 -27
  67. package/dist/kbd.cjs +1 -1
  68. package/dist/kbd.mjs +1 -1
  69. package/dist/label.cjs +1 -1
  70. package/dist/label.mjs +13 -1
  71. package/dist/marker.cjs +1 -1
  72. package/dist/marker.mjs +4 -3
  73. package/dist/menubar.cjs +1 -1
  74. package/dist/menubar.mjs +133 -1
  75. package/dist/message-scroller.cjs +1 -1
  76. package/dist/message-scroller.mjs +59 -1
  77. package/dist/message.cjs +1 -1
  78. package/dist/message.mjs +1 -1
  79. package/dist/native-select.cjs +1 -1
  80. package/dist/native-select.mjs +1 -1
  81. package/dist/navigation-menu.cjs +1 -1
  82. package/dist/navigation-menu.mjs +79 -1
  83. package/dist/pagination.cjs +1 -1
  84. package/dist/pagination.mjs +14 -14
  85. package/dist/popover.cjs +1 -1
  86. package/dist/popover.mjs +54 -1
  87. package/dist/progress.cjs +1 -1
  88. package/dist/progress.mjs +19 -1
  89. package/dist/questionnaire.cjs +1 -1
  90. package/dist/questionnaire.mjs +168 -1
  91. package/dist/radio-group.cjs +1 -1
  92. package/dist/radio-group.mjs +25 -1
  93. package/dist/resizable.cjs +1 -1
  94. package/dist/resizable.mjs +26 -1
  95. package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
  96. package/dist/scroll-area.cjs +1 -1
  97. package/dist/scroll-area.mjs +35 -1
  98. package/dist/scroll-to-top.cjs +1 -1
  99. package/dist/search.cjs +1 -1
  100. package/dist/search.mjs +1 -1
  101. package/dist/select.cjs +1 -1
  102. package/dist/select.mjs +98 -1
  103. package/dist/separator.cjs +1 -1
  104. package/dist/separator.mjs +15 -1
  105. package/dist/sheet.cjs +1 -1
  106. package/dist/sheet.mjs +38 -38
  107. package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
  108. package/dist/sidebar-uOtFHnBs.js +1 -0
  109. package/dist/sidebar.cjs +1 -1
  110. package/dist/sidebar.mjs +3 -1
  111. package/dist/skeleton.cjs +1 -1
  112. package/dist/skeleton.mjs +1 -1
  113. package/dist/slider.cjs +1 -1
  114. package/dist/slider.mjs +34 -1
  115. package/dist/spinner.cjs +1 -1
  116. package/dist/spinner.mjs +1 -1
  117. package/dist/support-fab.cjs +1 -1
  118. package/dist/switch.cjs +1 -1
  119. package/dist/switch.mjs +18 -1
  120. package/dist/table-of-contents.cjs +1 -1
  121. package/dist/table.cjs +1 -1
  122. package/dist/table.mjs +1 -1
  123. package/dist/tabs.cjs +1 -1
  124. package/dist/tabs.mjs +44 -1
  125. package/dist/text.cjs +1 -1
  126. package/dist/textarea.cjs +1 -1
  127. package/dist/textarea.mjs +1 -1
  128. package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
  129. package/dist/theme-toggle-DkNI3bfh.js +1 -0
  130. package/dist/theme-toggle.cjs +1 -1
  131. package/dist/theme-toggle.mjs +2 -1
  132. package/dist/toast.cjs +1 -1
  133. package/dist/toast.mjs +52 -1
  134. package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
  135. package/dist/toaster-AFud4l6l.js +1 -0
  136. package/dist/toaster.cjs +1 -1
  137. package/dist/toaster.mjs +2 -1
  138. package/dist/toggle-group.cjs +1 -1
  139. package/dist/toggle-group.mjs +49 -1
  140. package/dist/toggle.cjs +1 -1
  141. package/dist/toggle.mjs +35 -1
  142. package/dist/tooltip.cjs +1 -1
  143. package/dist/tooltip.mjs +34 -1
  144. package/package.json +1 -1
  145. package/dist/accordion-Bd0-CZQn.js +0 -1
  146. package/dist/accordion-Cf6DNbLH.mjs +0 -244
  147. package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
  148. package/dist/alert-dialog-C6vNmGBL.js +0 -1
  149. package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
  150. package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
  151. package/dist/avatar-B5PWwGhY.mjs +0 -136
  152. package/dist/avatar-CFhYRM52.js +0 -1
  153. package/dist/calendar-D5qgt2o2.js +0 -1
  154. package/dist/calendar-DIqXNjOR.mjs +0 -3029
  155. package/dist/carousel-D-xEqRCX.js +0 -1
  156. package/dist/carousel-DPjWmM_A.mjs +0 -1169
  157. package/dist/checkbox-DEPm1BBc.mjs +0 -184
  158. package/dist/checkbox-DI9Hn_e_.js +0 -1
  159. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
  160. package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
  161. package/dist/combobox-C4y8AbZX.mjs +0 -5644
  162. package/dist/combobox-boXp-mix.js +0 -3
  163. package/dist/command-BnW6UIVk.js +0 -1
  164. package/dist/command-Cbsp7PBx.mjs +0 -542
  165. package/dist/context-menu-CwsdFpx1.js +0 -1
  166. package/dist/context-menu-FNgV55ZV.mjs +0 -315
  167. package/dist/dist-7YyzJonC.mjs +0 -39
  168. package/dist/dist-AlmToDtO.mjs +0 -17
  169. package/dist/dist-B76UOZbx.mjs +0 -40
  170. package/dist/dist-B7Ph9-T6.mjs +0 -44
  171. package/dist/dist-B7jnFMko.js +0 -1
  172. package/dist/dist-BOiFyvyS.mjs +0 -10
  173. package/dist/dist-BQkDLAY7.js +0 -1
  174. package/dist/dist-Bal96K8t.js +0 -1
  175. package/dist/dist-Blgp9lfa.js +0 -1
  176. package/dist/dist-BnlI08Je.mjs +0 -96
  177. package/dist/dist-Bu-uFV1C.mjs +0 -191
  178. package/dist/dist-C2BHd5i1.mjs +0 -460
  179. package/dist/dist-C516Vwxy.mjs +0 -116
  180. package/dist/dist-CBlqVBTk.js +0 -1
  181. package/dist/dist-CDcZ8WMF.js +0 -1
  182. package/dist/dist-CDksSmTD.mjs +0 -189
  183. package/dist/dist-CF-qVmmV.js +0 -1
  184. package/dist/dist-CIgGRTmJ.js +0 -1
  185. package/dist/dist-CJqVmdrU.js +0 -1
  186. package/dist/dist-COqM3IM6.mjs +0 -89
  187. package/dist/dist-CbWpCWog.mjs +0 -180
  188. package/dist/dist-CcGLWbPa.mjs +0 -19
  189. package/dist/dist-Cn4F8XlY.mjs +0 -220
  190. package/dist/dist-CoTs6T03.js +0 -1
  191. package/dist/dist-Co_xSt6d.js +0 -1
  192. package/dist/dist-Cu0GG-3j.mjs +0 -15
  193. package/dist/dist-DJqkhIXb.js +0 -1
  194. package/dist/dist-DKI-XYwI.mjs +0 -98
  195. package/dist/dist-DQeXXRYL.mjs +0 -201
  196. package/dist/dist-DW2ltK5-.js +0 -1
  197. package/dist/dist-DWcKY_sJ.js +0 -1
  198. package/dist/dist-DZiOPWLp.js +0 -1
  199. package/dist/dist-DdAeWIwf.js +0 -1
  200. package/dist/dist-DhubV_gU.mjs +0 -4
  201. package/dist/dist-DmY7elIQ.js +0 -1
  202. package/dist/dist-DoWtzxYc.mjs +0 -684
  203. package/dist/dist-DuQlxGyN.js +0 -1
  204. package/dist/dist-KFF7QKuL.js +0 -1
  205. package/dist/dist-RXrZgzkO.js +0 -1
  206. package/dist/dist-R_G5UQRm.js +0 -1
  207. package/dist/dist-dwRwxUPt.mjs +0 -22
  208. package/dist/dist-fzmUl3YX.mjs +0 -553
  209. package/dist/dist-hBsne-A2.mjs +0 -92
  210. package/dist/dist-ljiGYyay.mjs +0 -29
  211. package/dist/dist-pqMcQ1Nk.js +0 -1
  212. package/dist/dist-zmnQp5Xf.js +0 -1
  213. package/dist/dropdown-menu-ChuqZeix.js +0 -1
  214. package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
  215. package/dist/es2015-BooeZGhO.mjs +0 -554
  216. package/dist/es2015-Dggv0vx3.js +0 -41
  217. package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
  218. package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
  219. package/dist/hover-card-BeqCs_2R.js +0 -1
  220. package/dist/hover-card-w8PmCyw2.mjs +0 -176
  221. package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
  222. package/dist/input-otp-CTRB_0Xp.js +0 -20
  223. package/dist/label-Da0kELfR.mjs +0 -26
  224. package/dist/label-JMa1tFfC.js +0 -1
  225. package/dist/menubar-B7sRxpE4.mjs +0 -405
  226. package/dist/menubar-Bd-QKMcw.js +0 -1
  227. package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
  228. package/dist/message-scroller-BJb4Mh_I.js +0 -1
  229. package/dist/navigation-menu-B-RwfscB.mjs +0 -638
  230. package/dist/navigation-menu-kPwxYZCR.js +0 -1
  231. package/dist/popover-Cq5cTNtC.js +0 -1
  232. package/dist/popover-T6Ra737i.mjs +0 -241
  233. package/dist/progress-e9YzxvRo.mjs +0 -90
  234. package/dist/progress-iUSEI7J9.js +0 -6
  235. package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
  236. package/dist/questionnaire-CcymIPae.js +0 -1
  237. package/dist/radio-group-BKpiDcIb.mjs +0 -264
  238. package/dist/radio-group-DPEzCmxe.js +0 -1
  239. package/dist/resizable-ByF0NmN9.mjs +0 -2153
  240. package/dist/resizable-oL3v42zT.js +0 -1
  241. package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
  242. package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
  243. package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
  244. package/dist/scroll-area-s4_ZJK59.js +0 -1
  245. package/dist/select-B_nRxX2Y.mjs +0 -831
  246. package/dist/select-j5_dph9S.js +0 -1
  247. package/dist/separator-Bn-3XUSJ.js +0 -1
  248. package/dist/separator-CCcMNS78.mjs +0 -38
  249. package/dist/sidebar-Cnem2n5A.js +0 -1
  250. package/dist/slider-B2PUTc7W.mjs +0 -484
  251. package/dist/slider-wZuXwuib.js +0 -1
  252. package/dist/switch-CD675xU7.js +0 -1
  253. package/dist/switch-ikzIzrme.mjs +0 -172
  254. package/dist/tabs-DCm5zOYB.mjs +0 -158
  255. package/dist/tabs-fcahDQDp.js +0 -1
  256. package/dist/theme-toggle-BGTJsIA-.js +0 -1
  257. package/dist/toast-C31v9P1K.js +0 -1
  258. package/dist/toast-vU5ISM03.mjs +0 -445
  259. package/dist/toaster-CaJyOCyC.js +0 -1
  260. package/dist/toggle-CSZdCCwX.js +0 -1
  261. package/dist/toggle-Cv9YYwLI.mjs +0 -58
  262. package/dist/toggle-group-RT8wyBwK.js +0 -1
  263. package/dist/toggle-group-qvjasXS-.mjs +0 -166
  264. package/dist/tooltip-7ERoN5mV.mjs +0 -386
  265. package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/menubar.mjs CHANGED
@@ -1,3 +1,135 @@
1
1
  "use client";
2
2
  "use client";
3
- export { t as Menubar, n as MenubarCheckboxItem, r as MenubarContent, i as MenubarGroup, a as MenubarItem, o as MenubarLabel, s as MenubarMenu, c as MenubarPortal, l as MenubarRadioGroup, u as MenubarRadioItem, d as MenubarSeparator, f as MenubarShortcut, p as MenubarSub, m as MenubarSubContent, h as MenubarSubTrigger, g as MenubarTrigger } from "./menubar-B7sRxpE4.mjs";
3
+ import { cn as e } from "cn";
4
+ import { CheckIcon as t, ChevronRightIcon as n } from "lucide-react";
5
+ import { Menubar as r } from "radix-ui";
6
+ import "react";
7
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
+ // src/menubar.tsx
9
+ function o({ className: t, ...n }) {
10
+ return /* @__PURE__ */ i(r.Root, {
11
+ "data-slot": "menubar",
12
+ className: e("flex h-8 items-center gap-0.5 rounded-lg border p-[3px]", t),
13
+ ...n
14
+ });
15
+ }
16
+ function s({ ...e }) {
17
+ return /* @__PURE__ */ i(r.Menu, {
18
+ "data-slot": "menubar-menu",
19
+ ...e
20
+ });
21
+ }
22
+ function c({ ...e }) {
23
+ return /* @__PURE__ */ i(r.Group, {
24
+ "data-slot": "menubar-group",
25
+ ...e
26
+ });
27
+ }
28
+ function l({ ...e }) {
29
+ return /* @__PURE__ */ i(r.Portal, {
30
+ "data-slot": "menubar-portal",
31
+ ...e
32
+ });
33
+ }
34
+ function u({ ...e }) {
35
+ return /* @__PURE__ */ i(r.RadioGroup, {
36
+ "data-slot": "menubar-radio-group",
37
+ ...e
38
+ });
39
+ }
40
+ function d({ className: t, ...n }) {
41
+ return /* @__PURE__ */ i(r.Trigger, {
42
+ "data-slot": "menubar-trigger",
43
+ className: e("hover:bg-muted aria-expanded:bg-muted flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none", t),
44
+ ...n
45
+ });
46
+ }
47
+ function f({ className: t, align: n = "start", alignOffset: a = -4, sideOffset: o = 8, ...s }) {
48
+ return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(r.Content, {
49
+ "data-slot": "menubar-content",
50
+ align: n,
51
+ alignOffset: a,
52
+ sideOffset: o,
53
+ className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-md ring-1 duration-100", t),
54
+ ...s
55
+ }) });
56
+ }
57
+ function p({ className: t, inset: n, variant: a = "default", ...o }) {
58
+ return /* @__PURE__ */ i(r.Item, {
59
+ "data-slot": "menubar-item",
60
+ "data-inset": n,
61
+ "data-variant": a,
62
+ className: e("group/menubar-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive! relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
63
+ ...o
64
+ });
65
+ }
66
+ function m({ className: n, children: o, checked: s, inset: c, ...l }) {
67
+ return /* @__PURE__ */ a(r.CheckboxItem, {
68
+ "data-slot": "menubar-checkbox-item",
69
+ "data-inset": c,
70
+ className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0", n),
71
+ checked: s,
72
+ ...l,
73
+ children: [/* @__PURE__ */ i("span", {
74
+ className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
75
+ children: /* @__PURE__ */ i(r.ItemIndicator, { children: /* @__PURE__ */ i(t, {}) })
76
+ }), o]
77
+ });
78
+ }
79
+ function h({ className: n, children: o, inset: s, ...c }) {
80
+ return /* @__PURE__ */ a(r.RadioItem, {
81
+ "data-slot": "menubar-radio-item",
82
+ "data-inset": s,
83
+ className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", n),
84
+ ...c,
85
+ children: [/* @__PURE__ */ i("span", {
86
+ className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
87
+ children: /* @__PURE__ */ i(r.ItemIndicator, { children: /* @__PURE__ */ i(t, {}) })
88
+ }), o]
89
+ });
90
+ }
91
+ function g({ className: t, inset: n, ...a }) {
92
+ return /* @__PURE__ */ i(r.Label, {
93
+ "data-slot": "menubar-label",
94
+ "data-inset": n,
95
+ className: e("px-1.5 py-1 text-sm font-medium data-inset:ps-7", t),
96
+ ...a
97
+ });
98
+ }
99
+ function _({ className: t, ...n }) {
100
+ return /* @__PURE__ */ i(r.Separator, {
101
+ "data-slot": "menubar-separator",
102
+ className: e("bg-border -mx-1 my-1 h-px", t),
103
+ ...n
104
+ });
105
+ }
106
+ function v({ className: t, ...n }) {
107
+ return /* @__PURE__ */ i("span", {
108
+ "data-slot": "menubar-shortcut",
109
+ className: e("text-muted-foreground group-focus/menubar-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
110
+ ...n
111
+ });
112
+ }
113
+ function y({ ...e }) {
114
+ return /* @__PURE__ */ i(r.Sub, {
115
+ "data-slot": "menubar-sub",
116
+ ...e
117
+ });
118
+ }
119
+ function b({ className: t, inset: o, children: s, ...c }) {
120
+ return /* @__PURE__ */ a(r.SubTrigger, {
121
+ "data-slot": "menubar-sub-trigger",
122
+ "data-inset": o,
123
+ className: e("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4", t),
124
+ ...c,
125
+ children: [s, /* @__PURE__ */ i(n, { className: "ms-auto size-4 rtl:rotate-180" })]
126
+ });
127
+ }
128
+ function x({ className: t, ...n }) {
129
+ return /* @__PURE__ */ i(r.SubContent, {
130
+ "data-slot": "menubar-sub-content",
131
+ className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100", t),
132
+ ...n
133
+ });
134
+ }
135
+ export { o as Menubar, m as MenubarCheckboxItem, f as MenubarContent, c as MenubarGroup, p as MenubarItem, g as MenubarLabel, s as MenubarMenu, l as MenubarPortal, u as MenubarRadioGroup, h as MenubarRadioItem, _ as MenubarSeparator, v as MenubarShortcut, y as MenubarSub, x as MenubarSubContent, b as MenubarSubTrigger, d as MenubarTrigger };
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./message-scroller-BJb4Mh_I.js");exports.MessageScroller=e.t,exports.MessageScrollerButton=e.n,exports.MessageScrollerContent=e.r,exports.MessageScrollerItem=e.i,exports.MessageScrollerProvider=e.a,exports.MessageScrollerViewport=e.o,exports.useMessageScroller=e.c,exports.useMessageScrollerScrollable=e.l,exports.useMessageScrollerVisibility=e.s;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime"),o=require("@shadcn/react/message-scroller");function s(e){return(0,a.jsx)(o.MessageScroller.Provider,{...e})}function c({className:e,...t}){return(0,a.jsx)(o.MessageScroller.Root,{"data-slot":`message-scroller`,className:(0,n.cn)(`group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden`,e),...t})}function l({className:e,...t}){return(0,a.jsx)(o.MessageScroller.Viewport,{"data-slot":`message-scroller-viewport`,className:(0,n.cn)(`scroll-fade-b size-full min-h-0 min-w-0 scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible`,e),...t})}function u({className:e,...t}){return(0,a.jsx)(o.MessageScroller.Content,{"data-slot":`message-scroller-content`,className:(0,n.cn)(`flex h-max min-h-full flex-col gap-6`,e),...t})}function d({className:e,scrollAnchor:t=!1,...r}){return(0,a.jsx)(o.MessageScroller.Item,{"data-slot":`message-scroller-item`,scrollAnchor:t,className:(0,n.cn)(`min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]`,e),...r})}function f({direction:e=`end`,className:i,children:s,render:c,variant:l=`secondary`,size:u=`icon-sm`,...d}){return(0,a.jsx)(o.MessageScroller.Button,{"data-slot":`message-scroller-button`,"data-direction":e,"data-variant":l,"data-size":u,direction:e,className:(0,n.cn)(`border-border bg-background text-foreground hover:bg-muted hover:text-foreground absolute inset-s-1/2 -translate-x-1/2 transition-[translate,scale,opacity] duration-200 data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180`,i),render:c??(0,a.jsx)(t.Button,{variant:l,size:u}),...d,children:s??(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.ArrowDownIcon,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:e===`end`?`Scroll to end`:`Scroll to start`})]})})}exports.MessageScroller=c,exports.MessageScrollerButton=f,exports.MessageScrollerContent=u,exports.MessageScrollerItem=d,exports.MessageScrollerProvider=s,exports.MessageScrollerViewport=l,Object.defineProperty(exports,"useMessageScroller",{enumerable:!0,get:function(){return o.useMessageScroller}}),Object.defineProperty(exports,"useMessageScrollerScrollable",{enumerable:!0,get:function(){return o.useMessageScrollerScrollable}}),Object.defineProperty(exports,"useMessageScrollerVisibility",{enumerable:!0,get:function(){return o.useMessageScrollerVisibility}});
@@ -1,2 +1,60 @@
1
1
  "use client";
2
- export { t as MessageScroller, n as MessageScrollerButton, r as MessageScrollerContent, i as MessageScrollerItem, a as MessageScrollerProvider, o as MessageScrollerViewport, c as useMessageScroller, l as useMessageScrollerScrollable, s as useMessageScrollerVisibility } from "./message-scroller-B8AU0v3Y.mjs";
2
+ import { Button as e } from "./button.mjs";
3
+ import { cn as t } from "cn";
4
+ import { ArrowDownIcon as n } from "lucide-react";
5
+ import "react";
6
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import { MessageScroller as o, useMessageScroller as s, useMessageScrollerScrollable as c, useMessageScrollerVisibility as l } from "@shadcn/react/message-scroller";
8
+ // src/message-scroller.tsx
9
+ function u(e) {
10
+ return /* @__PURE__ */ i(o.Provider, { ...e });
11
+ }
12
+ function d({ className: e, ...n }) {
13
+ return /* @__PURE__ */ i(o.Root, {
14
+ "data-slot": "message-scroller",
15
+ className: t("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", e),
16
+ ...n
17
+ });
18
+ }
19
+ function f({ className: e, ...n }) {
20
+ return /* @__PURE__ */ i(o.Viewport, {
21
+ "data-slot": "message-scroller-viewport",
22
+ className: t("scroll-fade-b size-full min-h-0 min-w-0 scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible", e),
23
+ ...n
24
+ });
25
+ }
26
+ function p({ className: e, ...n }) {
27
+ return /* @__PURE__ */ i(o.Content, {
28
+ "data-slot": "message-scroller-content",
29
+ className: t("flex h-max min-h-full flex-col gap-6", e),
30
+ ...n
31
+ });
32
+ }
33
+ function m({ className: e, scrollAnchor: n = !1, ...r }) {
34
+ return /* @__PURE__ */ i(o.Item, {
35
+ "data-slot": "message-scroller-item",
36
+ scrollAnchor: n,
37
+ className: t("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", e),
38
+ ...r
39
+ });
40
+ }
41
+ function h({ direction: s = "end", className: c, children: l, render: u, variant: d = "secondary", size: f = "icon-sm", ...p }) {
42
+ return /* @__PURE__ */ i(o.Button, {
43
+ "data-slot": "message-scroller-button",
44
+ "data-direction": s,
45
+ "data-variant": d,
46
+ "data-size": f,
47
+ direction: s,
48
+ className: t("border-border bg-background text-foreground hover:bg-muted hover:text-foreground absolute inset-s-1/2 -translate-x-1/2 transition-[translate,scale,opacity] duration-200 data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180", c),
49
+ render: u ?? /* @__PURE__ */ i(e, {
50
+ variant: d,
51
+ size: f
52
+ }),
53
+ ...p,
54
+ children: l ?? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(n, {}), /* @__PURE__ */ i("span", {
55
+ className: "sr-only",
56
+ children: s === "end" ? "Scroll to end" : "Scroll to start"
57
+ })] })
58
+ });
59
+ }
60
+ export { d as MessageScroller, h as MessageScrollerButton, p as MessageScrollerContent, m as MessageScrollerItem, u as MessageScrollerProvider, f as MessageScrollerViewport, s as useMessageScroller, c as useMessageScrollerScrollable, l as useMessageScrollerVisibility };
package/dist/message.cjs CHANGED
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-group`,className:t.t(`flex min-w-0 flex-col gap-2`,e),...n})}function a({className:e,align:n=`start`,...i}){return(0,r.jsx)(`div`,{"data-slot":`message`,"data-align":n,className:t.t(`group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse`,e),...i})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-avatar`,className:t.t(`bg-muted flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full group-has-data-[slot=message-footer]/message:-translate-y-8`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-content`,className:t.t(`flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-header`,className:t.t(`text-muted-foreground flex max-w-full min-w-0 items-center px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-footer`,className:t.t(`text-muted-foreground flex max-w-full min-w-0 items-center px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end`,e),...n})}exports.Message=a,exports.MessageAvatar=o,exports.MessageContent=s,exports.MessageFooter=l,exports.MessageGroup=i,exports.MessageHeader=c;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("react");n=e.t(n);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-group`,className:(0,t.cn)(`flex min-w-0 flex-col gap-2`,e),...n})}function a({className:e,align:n=`start`,...i}){return(0,r.jsx)(`div`,{"data-slot":`message`,"data-align":n,className:(0,t.cn)(`group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse`,e),...i})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-avatar`,className:(0,t.cn)(`bg-muted flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full group-has-data-[slot=message-footer]/message:-translate-y-8`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-content`,className:(0,t.cn)(`flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-header`,className:(0,t.cn)(`text-muted-foreground flex max-w-full min-w-0 items-center px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`message-footer`,className:(0,t.cn)(`text-muted-foreground flex max-w-full min-w-0 items-center px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end`,e),...n})}exports.Message=a,exports.MessageAvatar=o,exports.MessageContent=s,exports.MessageFooter=l,exports.MessageGroup=i,exports.MessageHeader=c;
package/dist/message.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./dist-DoWtzxYc.mjs";
2
+ import { cn as e } from "cn";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  // src/message.tsx
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js");let n=require("lucide-react"),r=require("react");r=e.r(r);let i=require("react/jsx-runtime");function a({className:e,size:r=`default`,...a}){return(0,i.jsxs)(`div`,{className:t.t(`group/native-select relative w-fit has-[select:disabled]:opacity-50`,e),"data-slot":`native-select-wrapper`,"data-size":r,children:[(0,i.jsx)(`select`,{"data-slot":`native-select`,"data-size":r,className:`border-input selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors outline-none select-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5`,...a}),(0,i.jsx)(n.ChevronDownIcon,{className:`text-muted-foreground pointer-events-none absolute end-2.5 top-1/2 size-4 -translate-y-1/2 select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function o({className:e,...n}){return(0,i.jsx)(`option`,{"data-slot":`native-select-option`,className:t.t(`bg-[Canvas] text-[CanvasText]`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(`optgroup`,{"data-slot":`native-select-optgroup`,className:t.t(`bg-[Canvas] text-[CanvasText]`,e),...n})}exports.NativeSelect=a,exports.NativeSelectOptGroup=s,exports.NativeSelectOption=o;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("lucide-react"),r=require("react");r=e.t(r);let i=require("react/jsx-runtime");function a({className:e,size:r=`default`,...a}){return(0,i.jsxs)(`div`,{className:(0,t.cn)(`group/native-select relative w-fit has-[select:disabled]:opacity-50`,e),"data-slot":`native-select-wrapper`,"data-size":r,children:[(0,i.jsx)(`select`,{"data-slot":`native-select`,"data-size":r,className:`border-input selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 ps-2.5 pe-8 text-sm transition-colors outline-none select-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5`,...a}),(0,i.jsx)(n.ChevronDownIcon,{className:`text-muted-foreground pointer-events-none absolute end-2.5 top-1/2 size-4 -translate-y-1/2 select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`})]})}function o({className:e,...n}){return(0,i.jsx)(`option`,{"data-slot":`native-select-option`,className:(0,t.cn)(`bg-[Canvas] text-[CanvasText]`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(`optgroup`,{"data-slot":`native-select-optgroup`,className:(0,t.cn)(`bg-[Canvas] text-[CanvasText]`,e),...n})}exports.NativeSelect=a,exports.NativeSelectOptGroup=s,exports.NativeSelectOption=o;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./dist-DoWtzxYc.mjs";
2
+ import { cn as e } from "cn";
3
3
  import { ChevronDownIcon as t } from "lucide-react";
4
4
  import "react";
5
5
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./navigation-menu-kPwxYZCR.js");exports.NavigationMenu=e.t,exports.NavigationMenuContent=e.n,exports.NavigationMenuIndicator=e.r,exports.NavigationMenuItem=e.i,exports.NavigationMenuLink=e.a,exports.NavigationMenuList=e.o,exports.NavigationMenuTrigger=e.s,exports.NavigationMenuViewport=e.c,exports.navigationMenuTriggerStyle=e.l;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("lucide-react"),r=require("radix-ui"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime"),o=require("class-variance-authority");function s({className:e,children:n,viewport:i=!0,...o}){return(0,a.jsxs)(r.NavigationMenu.Root,{"data-slot":`navigation-menu`,"data-viewport":i,className:(0,t.cn)(`group/navigation-menu relative flex max-w-max flex-1 items-center justify-center`,e),...o,children:[n,i&&(0,a.jsx)(p,{})]})}function c({className:e,...n}){return(0,a.jsx)(r.NavigationMenu.List,{"data-slot":`navigation-menu-list`,className:(0,t.cn)(`group flex flex-1 list-none items-center justify-center gap-0`,e),...n})}function l({className:e,...n}){return(0,a.jsx)(r.NavigationMenu.Item,{"data-slot":`navigation-menu-item`,className:(0,t.cn)(`relative`,e),...n})}var u=(0,o.cva)(`group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50`);function d({className:e,children:i,...o}){return(0,a.jsxs)(r.NavigationMenu.Trigger,{"data-slot":`navigation-menu-trigger`,className:(0,t.cn)(u(),`group`,e),...o,children:[i,` `,(0,a.jsx)(n.ChevronDownIcon,{className:`relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180`,"aria-hidden":`true`})]})}function f({className:e,...n}){return(0,a.jsx)(r.NavigationMenu.Content,{"data-slot":`navigation-menu-content`,className:(0,t.cn)(`group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/10 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 start-0 top-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto`,e),...n})}function p({className:e,...n}){return(0,a.jsx)(`div`,{className:(0,t.cn)(`absolute start-0 top-full isolate z-50 flex justify-center`),children:(0,a.jsx)(r.NavigationMenu.Viewport,{"data-slot":`navigation-menu-viewport`,className:(0,t.cn)(`origin-top-center bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg shadow ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)`,e),...n})})}function m({className:e,...n}){return(0,a.jsx)(r.NavigationMenu.Link,{"data-slot":`navigation-menu-link`,className:(0,t.cn)(`hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4`,e),...n})}function h({className:e,...n}){return(0,a.jsx)(r.NavigationMenu.Indicator,{"data-slot":`navigation-menu-indicator`,className:(0,t.cn)(`data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden`,e),...n,children:(0,a.jsx)(`div`,{className:`bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ss-sm shadow-md`})})}exports.NavigationMenu=s,exports.NavigationMenuContent=f,exports.NavigationMenuIndicator=h,exports.NavigationMenuItem=l,exports.NavigationMenuLink=m,exports.NavigationMenuList=c,exports.NavigationMenuTrigger=d,exports.NavigationMenuViewport=p,exports.navigationMenuTriggerStyle=u;
@@ -1,2 +1,80 @@
1
1
  "use client";
2
- export { t as NavigationMenu, n as NavigationMenuContent, r as NavigationMenuIndicator, i as NavigationMenuItem, a as NavigationMenuLink, o as NavigationMenuList, s as NavigationMenuTrigger, c as NavigationMenuViewport, l as navigationMenuTriggerStyle } from "./navigation-menu-B-RwfscB.mjs";
2
+ import { cn as e } from "cn";
3
+ import { ChevronDownIcon as t } from "lucide-react";
4
+ import { NavigationMenu as n } from "radix-ui";
5
+ import "react";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ import { cva as a } from "class-variance-authority";
8
+ // src/navigation-menu.tsx
9
+ function o({ className: t, children: a, viewport: o = !0, ...s }) {
10
+ return /* @__PURE__ */ i(n.Root, {
11
+ "data-slot": "navigation-menu",
12
+ "data-viewport": o,
13
+ className: e("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
14
+ ...s,
15
+ children: [a, o && /* @__PURE__ */ r(f, {})]
16
+ });
17
+ }
18
+ function s({ className: t, ...i }) {
19
+ return /* @__PURE__ */ r(n.List, {
20
+ "data-slot": "navigation-menu-list",
21
+ className: e("group flex flex-1 list-none items-center justify-center gap-0", t),
22
+ ...i
23
+ });
24
+ }
25
+ function c({ className: t, ...i }) {
26
+ return /* @__PURE__ */ r(n.Item, {
27
+ "data-slot": "navigation-menu-item",
28
+ className: e("relative", t),
29
+ ...i
30
+ });
31
+ }
32
+ var l = a("group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50");
33
+ function u({ className: a, children: o, ...s }) {
34
+ return /* @__PURE__ */ i(n.Trigger, {
35
+ "data-slot": "navigation-menu-trigger",
36
+ className: e(l(), "group", a),
37
+ ...s,
38
+ children: [
39
+ o,
40
+ " ",
41
+ /* @__PURE__ */ r(t, {
42
+ className: "relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180",
43
+ "aria-hidden": "true"
44
+ })
45
+ ]
46
+ });
47
+ }
48
+ function d({ className: t, ...i }) {
49
+ return /* @__PURE__ */ r(n.Content, {
50
+ "data-slot": "navigation-menu-content",
51
+ className: e("group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/10 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 start-0 top-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto", t),
52
+ ...i
53
+ });
54
+ }
55
+ function f({ className: t, ...i }) {
56
+ return /* @__PURE__ */ r("div", {
57
+ className: e("absolute start-0 top-full isolate z-50 flex justify-center"),
58
+ children: /* @__PURE__ */ r(n.Viewport, {
59
+ "data-slot": "navigation-menu-viewport",
60
+ className: e("origin-top-center bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg shadow ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)", t),
61
+ ...i
62
+ })
63
+ });
64
+ }
65
+ function p({ className: t, ...i }) {
66
+ return /* @__PURE__ */ r(n.Link, {
67
+ "data-slot": "navigation-menu-link",
68
+ className: e("hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4", t),
69
+ ...i
70
+ });
71
+ }
72
+ function m({ className: t, ...i }) {
73
+ return /* @__PURE__ */ r(n.Indicator, {
74
+ "data-slot": "navigation-menu-indicator",
75
+ className: e("data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden", t),
76
+ ...i,
77
+ children: /* @__PURE__ */ r("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ss-sm shadow-md" })
78
+ });
79
+ }
80
+ export { o as NavigationMenu, d as NavigationMenuContent, m as NavigationMenuIndicator, c as NavigationMenuItem, p as NavigationMenuLink, s as NavigationMenuList, u as NavigationMenuTrigger, f as NavigationMenuViewport, l as navigationMenuTriggerStyle };
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./button.cjs");let r=require("lucide-react"),i=require("react");i=e.r(i);let a=require("react/jsx-runtime");function o({className:e,...n}){return(0,a.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t.t(`mx-auto flex w-full justify-center`,e),...n})}function s({className:e,...n}){return(0,a.jsx)(`ul`,{"data-slot":`pagination-content`,className:t.t(`flex items-center gap-0.5`,e),...n})}function c({...e}){return(0,a.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function l({className:e,isActive:r,size:i=`icon`,children:o,...s}){return(0,a.jsx)(n.Button,{asChild:!0,variant:r?`outline`:`ghost`,size:i,className:t.t(e),children:(0,a.jsx)(`a`,{"aria-current":r?`page`:void 0,"data-slot":`pagination-link`,"data-active":r,...s,children:o})})}function u({className:e,text:n=`Previous`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to previous page`,size:`default`,className:t.t(`ps-1.5!`,e),...i,children:[(0,a.jsx)(r.ChevronLeftIcon,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`hidden sm:block`,children:n})]})}function d({className:e,text:n=`Next`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to next page`,size:`default`,className:t.t(`pe-1.5!`,e),...i,children:[(0,a.jsx)(`span`,{className:`hidden sm:block`,children:n}),(0,a.jsx)(r.ChevronRightIcon,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function f({className:e,...n}){return(0,a.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t.t(`flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[(0,a.jsx)(r.MoreHorizontalIcon,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=o,exports.PaginationContent=s,exports.PaginationEllipsis=f,exports.PaginationItem=c,exports.PaginationLink=l,exports.PaginationNext=d,exports.PaginationPrevious=u;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime");function o({className:e,...t}){return(0,a.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:(0,n.cn)(`mx-auto flex w-full justify-center`,e),...t})}function s({className:e,...t}){return(0,a.jsx)(`ul`,{"data-slot":`pagination-content`,className:(0,n.cn)(`flex items-center gap-0.5`,e),...t})}function c({...e}){return(0,a.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function l({className:e,isActive:r,size:i=`icon`,children:o,...s}){return(0,a.jsx)(t.Button,{asChild:!0,variant:r?`outline`:`ghost`,size:i,className:(0,n.cn)(e),children:(0,a.jsx)(`a`,{"aria-current":r?`page`:void 0,"data-slot":`pagination-link`,"data-active":r,...s,children:o})})}function u({className:e,text:t=`Previous`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to previous page`,size:`default`,className:(0,n.cn)(`ps-1.5!`,e),...i,children:[(0,a.jsx)(r.ChevronLeftIcon,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`hidden sm:block`,children:t})]})}function d({className:e,text:t=`Next`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to next page`,size:`default`,className:(0,n.cn)(`pe-1.5!`,e),...i,children:[(0,a.jsx)(`span`,{className:`hidden sm:block`,children:t}),(0,a.jsx)(r.ChevronRightIcon,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function f({className:e,...t}){return(0,a.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:(0,n.cn)(`flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,e),...t,children:[(0,a.jsx)(r.MoreHorizontalIcon,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=o,exports.PaginationContent=s,exports.PaginationEllipsis=f,exports.PaginationItem=c,exports.PaginationLink=l,exports.PaginationNext=d,exports.PaginationPrevious=u;
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { t as e } from "./dist-DoWtzxYc.mjs";
3
- import { Button as t } from "./button.mjs";
2
+ import { Button as e } from "./button.mjs";
3
+ import { cn as t } from "cn";
4
4
  import { ChevronLeftIcon as n, ChevronRightIcon as r, MoreHorizontalIcon as i } from "lucide-react";
5
5
  import "react";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  // src/pagination.tsx
8
- function s({ className: t, ...n }) {
8
+ function s({ className: e, ...n }) {
9
9
  return /* @__PURE__ */ a("nav", {
10
10
  role: "navigation",
11
11
  "aria-label": "pagination",
12
12
  "data-slot": "pagination",
13
- className: e("mx-auto flex w-full justify-center", t),
13
+ className: t("mx-auto flex w-full justify-center", e),
14
14
  ...n
15
15
  });
16
16
  }
17
- function c({ className: t, ...n }) {
17
+ function c({ className: e, ...n }) {
18
18
  return /* @__PURE__ */ a("ul", {
19
19
  "data-slot": "pagination-content",
20
- className: e("flex items-center gap-0.5", t),
20
+ className: t("flex items-center gap-0.5", e),
21
21
  ...n
22
22
  });
23
23
  }
@@ -28,11 +28,11 @@ function l({ ...e }) {
28
28
  });
29
29
  }
30
30
  function u({ className: n, isActive: r, size: i = "icon", children: o, ...s }) {
31
- return /* @__PURE__ */ a(t, {
31
+ return /* @__PURE__ */ a(e, {
32
32
  asChild: !0,
33
33
  variant: r ? "outline" : "ghost",
34
34
  size: i,
35
- className: e(n),
35
+ className: t(n),
36
36
  children: /* @__PURE__ */ a("a", {
37
37
  "aria-current": r ? "page" : void 0,
38
38
  "data-slot": "pagination-link",
@@ -42,11 +42,11 @@ function u({ className: n, isActive: r, size: i = "icon", children: o, ...s }) {
42
42
  })
43
43
  });
44
44
  }
45
- function d({ className: t, text: r = "Previous", ...i }) {
45
+ function d({ className: e, text: r = "Previous", ...i }) {
46
46
  return /* @__PURE__ */ o(u, {
47
47
  "aria-label": "Go to previous page",
48
48
  size: "default",
49
- className: e("ps-1.5!", t),
49
+ className: t("ps-1.5!", e),
50
50
  ...i,
51
51
  children: [/* @__PURE__ */ a(n, {
52
52
  "data-icon": "inline-start",
@@ -57,11 +57,11 @@ function d({ className: t, text: r = "Previous", ...i }) {
57
57
  })]
58
58
  });
59
59
  }
60
- function f({ className: t, text: n = "Next", ...i }) {
60
+ function f({ className: e, text: n = "Next", ...i }) {
61
61
  return /* @__PURE__ */ o(u, {
62
62
  "aria-label": "Go to next page",
63
63
  size: "default",
64
- className: e("pe-1.5!", t),
64
+ className: t("pe-1.5!", e),
65
65
  ...i,
66
66
  children: [/* @__PURE__ */ a("span", {
67
67
  className: "hidden sm:block",
@@ -72,11 +72,11 @@ function f({ className: t, text: n = "Next", ...i }) {
72
72
  })]
73
73
  });
74
74
  }
75
- function p({ className: t, ...n }) {
75
+ function p({ className: e, ...n }) {
76
76
  return /* @__PURE__ */ o("span", {
77
77
  "aria-hidden": !0,
78
78
  "data-slot": "pagination-ellipsis",
79
- className: e("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4", t),
79
+ className: t("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4", e),
80
80
  ...n,
81
81
  children: [/* @__PURE__ */ a(i, {}), /* @__PURE__ */ a("span", {
82
82
  className: "sr-only",
package/dist/popover.cjs CHANGED
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./popover-Cq5cTNtC.js");exports.Popover=e.t,exports.PopoverAnchor=e.n,exports.PopoverContent=e.r,exports.PopoverDescription=e.i,exports.PopoverHeader=e.a,exports.PopoverTitle=e.o,exports.PopoverTrigger=e.s;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("radix-ui"),r=require("react");r=e.t(r);let i=require("react/jsx-runtime");function a({...e}){return(0,i.jsx)(n.Popover.Root,{"data-slot":`popover`,...e})}function o({...e}){return(0,i.jsx)(n.Popover.Trigger,{"data-slot":`popover-trigger`,...e})}function s({className:e,align:r=`center`,sideOffset:a=4,...o}){return(0,i.jsx)(n.Popover.Portal,{children:(0,i.jsx)(n.Popover.Content,{"data-slot":`popover-content`,align:r,sideOffset:a,className:(0,t.cn)(`bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...o})})}function c({...e}){return(0,i.jsx)(n.Popover.Anchor,{"data-slot":`popover-anchor`,...e})}function l({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`popover-header`,className:(0,t.cn)(`flex flex-col gap-0.5 text-sm`,e),...n})}function u({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`popover-title`,className:(0,t.cn)(`font-medium`,e),...n})}function d({className:e,...n}){return(0,i.jsx)(`p`,{"data-slot":`popover-description`,className:(0,t.cn)(`text-muted-foreground`,e),...n})}exports.Popover=a,exports.PopoverAnchor=c,exports.PopoverContent=s,exports.PopoverDescription=d,exports.PopoverHeader=l,exports.PopoverTitle=u,exports.PopoverTrigger=o;
package/dist/popover.mjs CHANGED
@@ -1,2 +1,55 @@
1
1
  "use client";
2
- export { t as Popover, n as PopoverAnchor, r as PopoverContent, i as PopoverDescription, a as PopoverHeader, o as PopoverTitle, s as PopoverTrigger } from "./popover-T6Ra737i.mjs";
2
+ import { cn as e } from "cn";
3
+ import { Popover as t } from "radix-ui";
4
+ import "react";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ // src/popover.tsx
7
+ function r({ ...e }) {
8
+ return /* @__PURE__ */ n(t.Root, {
9
+ "data-slot": "popover",
10
+ ...e
11
+ });
12
+ }
13
+ function i({ ...e }) {
14
+ return /* @__PURE__ */ n(t.Trigger, {
15
+ "data-slot": "popover-trigger",
16
+ ...e
17
+ });
18
+ }
19
+ function a({ className: r, align: i = "center", sideOffset: a = 4, ...o }) {
20
+ return /* @__PURE__ */ n(t.Portal, { children: /* @__PURE__ */ n(t.Content, {
21
+ "data-slot": "popover-content",
22
+ align: i,
23
+ sideOffset: a,
24
+ className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", r),
25
+ ...o
26
+ }) });
27
+ }
28
+ function o({ ...e }) {
29
+ return /* @__PURE__ */ n(t.Anchor, {
30
+ "data-slot": "popover-anchor",
31
+ ...e
32
+ });
33
+ }
34
+ function s({ className: t, ...r }) {
35
+ return /* @__PURE__ */ n("div", {
36
+ "data-slot": "popover-header",
37
+ className: e("flex flex-col gap-0.5 text-sm", t),
38
+ ...r
39
+ });
40
+ }
41
+ function c({ className: t, ...r }) {
42
+ return /* @__PURE__ */ n("div", {
43
+ "data-slot": "popover-title",
44
+ className: e("font-medium", t),
45
+ ...r
46
+ });
47
+ }
48
+ function l({ className: t, ...r }) {
49
+ return /* @__PURE__ */ n("p", {
50
+ "data-slot": "popover-description",
51
+ className: e("text-muted-foreground", t),
52
+ ...r
53
+ });
54
+ }
55
+ export { r as Popover, o as PopoverAnchor, a as PopoverContent, l as PopoverDescription, s as PopoverHeader, c as PopoverTitle, i as PopoverTrigger };
package/dist/progress.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./progress-iUSEI7J9.js");exports.Progress=e.t;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("radix-ui"),r=require("react");r=e.t(r);let i=require("react/jsx-runtime");function a({className:e,value:r,...a}){return(0,i.jsx)(n.Progress.Root,{"data-slot":`progress`,value:r,className:(0,t.cn)(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...a,children:(0,i.jsx)(n.Progress.Indicator,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(r||0)}%)`}})})}exports.Progress=a;
package/dist/progress.mjs CHANGED
@@ -1,3 +1,21 @@
1
1
  "use client";
2
2
  "use client";
3
- export { t as Progress } from "./progress-e9YzxvRo.mjs";
3
+ import { cn as e } from "cn";
4
+ import { Progress as t } from "radix-ui";
5
+ import "react";
6
+ import { jsx as n } from "react/jsx-runtime";
7
+ // src/progress.tsx
8
+ function r({ className: r, value: i, ...a }) {
9
+ return /* @__PURE__ */ n(t.Root, {
10
+ "data-slot": "progress",
11
+ value: i,
12
+ className: e("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", r),
13
+ ...a,
14
+ children: /* @__PURE__ */ n(t.Indicator, {
15
+ "data-slot": "progress-indicator",
16
+ className: "bg-primary size-full flex-1 transition-all",
17
+ style: { transform: `translateX(-${100 - (i || 0)}%)` }
18
+ })
19
+ });
20
+ }
21
+ export { r as Progress };
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./questionnaire-CcymIPae.js");exports.Questionnaire=e.t,exports.QuestionnaireActions=e.n,exports.QuestionnaireChoice=e.r,exports.QuestionnaireChoiceDescription=e.i,exports.QuestionnaireChoices=e.a,exports.QuestionnaireDescription=e.o,exports.QuestionnaireError=e.s,exports.QuestionnaireInput=e.c,exports.QuestionnaireItem=e.l,exports.QuestionnaireNext=e.u,exports.QuestionnairePrevious=e.d,exports.QuestionnaireProgress=e.f,exports.QuestionnaireSkip=e.p,exports.QuestionnaireSubmit=e.m,exports.QuestionnaireTitle=e.h;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime"),o=require("@shadcn/react/questionnaire");function s({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Root,{"data-slot":`questionnaire`,className:(0,n.cn)(`flex w-full min-w-0 flex-col gap-4`,e),...t})}function c({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Progress,{"data-slot":`questionnaire-progress`,className:(0,n.cn)(`text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums`,e),...t})}function l({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Item,{"data-slot":`questionnaire-item`,className:(0,n.cn)(`flex min-w-0 flex-col gap-4 border-0 p-0 outline-none`,e),...t})}function u({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Title,{"data-slot":`questionnaire-title`,className:(0,n.cn)(`text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4`,e),...t})}function d({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Description,{"data-slot":`questionnaire-description`,className:(0,n.cn)(`text-muted-foreground text-sm text-pretty`,e),...t})}function f({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Choices,{"data-slot":`questionnaire-choices`,className:(0,n.cn)(`group/questionnaire-choices grid min-w-0 gap-2`,e),...t})}function p({children:e,className:t,...i}){return(0,a.jsxs)(o.Questionnaire.Choice,{"data-slot":`questionnaire-choice`,className:(0,n.cn)(`group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3`,`data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50`,t),...i,children:[(0,a.jsx)(o.Questionnaire.ChoiceInput,{"data-slot":`questionnaire-choice-input`,className:`absolute inset-0 z-10 size-full cursor-pointer opacity-0`}),(0,a.jsxs)(`span`,{"aria-hidden":`true`,"data-slot":`questionnaire-choice-indicator`,className:`border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full`,children:[(0,a.jsx)(`span`,{"data-slot":`questionnaire-choice-indicator-dot`,className:`bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden`}),(0,a.jsx)(r.CheckIcon,{"data-slot":`questionnaire-choice-indicator-check`,className:`hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden`})]}),(0,a.jsx)(o.Questionnaire.ChoiceLabel,{"data-slot":`questionnaire-choice-label`,className:`flex min-w-0 flex-1 flex-col gap-0.5 leading-snug`,children:e}),(0,a.jsx)(o.Questionnaire.ChoiceShortcut,{"data-slot":`questionnaire-choice-shortcut`,className:`border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex`})]})}function m({className:e,...t}){return(0,a.jsx)(`span`,{"data-slot":`questionnaire-choice-description`,className:(0,n.cn)(`text-muted-foreground`,e),...t})}function h({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`questionnaire-input-wrapper`,className:`group/questionnaire-input relative w-full min-w-0`,children:(0,a.jsx)(o.Questionnaire.Input,{"data-slot":`questionnaire-input`,className:(0,n.cn)(`border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm`,`selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground`,e),...t})})}function g({className:e,...t}){return(0,a.jsx)(o.Questionnaire.Error,{"data-slot":`questionnaire-error`,className:(0,n.cn)(`text-destructive mt-2 text-sm`,e),...t})}function _({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`questionnaire-actions`,className:(0,n.cn)(`grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8`,e),...t})}function v({children:e,className:r,size:i=`default`,variant:s=`outline`,...c}){return(0,a.jsx)(o.Questionnaire.Previous,{"data-slot":`questionnaire-previous`,"data-size":i,"data-variant":s,className:(0,n.cn)(t.buttonVariants({size:i,variant:s}),`col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0`,r),...c,children:e??`Previous`})}function y({children:e,className:r,size:i=`default`,variant:s=`outline`,...c}){return(0,a.jsx)(o.Questionnaire.Skip,{"data-slot":`questionnaire-skip`,"data-size":i,"data-variant":s,className:(0,n.cn)(t.buttonVariants({size:i,variant:s}),`col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...c,children:e??`Skip`})}function b({children:e,className:r,size:i=`default`,variant:s=`default`,...c}){return(0,a.jsx)(o.Questionnaire.Next,{"data-slot":`questionnaire-next`,"data-size":i,"data-variant":s,className:(0,n.cn)(t.buttonVariants({size:i,variant:s}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...c,children:e??`Next`})}function x({children:e,className:r,size:i=`default`,variant:s=`default`,...c}){return(0,a.jsx)(o.Questionnaire.Submit,{"data-slot":`questionnaire-submit`,"data-size":i,"data-variant":s,className:(0,n.cn)(t.buttonVariants({size:i,variant:s}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...c,children:e??`Submit`})}exports.Questionnaire=s,exports.QuestionnaireActions=_,exports.QuestionnaireChoice=p,exports.QuestionnaireChoiceDescription=m,exports.QuestionnaireChoices=f,exports.QuestionnaireDescription=d,exports.QuestionnaireError=g,exports.QuestionnaireInput=h,exports.QuestionnaireItem=l,exports.QuestionnaireNext=b,exports.QuestionnairePrevious=v,exports.QuestionnaireProgress=c,exports.QuestionnaireSkip=y,exports.QuestionnaireSubmit=x,exports.QuestionnaireTitle=u;