@gv-tech/ui-web 2.29.1 → 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 (273) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +53 -2
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.mjs +99 -2
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +2 -3
  7. package/dist/aspect-ratio.cjs +1 -1
  8. package/dist/aspect-ratio.mjs +10 -2
  9. package/dist/attachment.cjs +1 -1
  10. package/dist/attachment.mjs +26 -26
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.mjs +49 -2
  13. package/dist/badge.cjs +1 -1
  14. package/dist/badge.mjs +5 -5
  15. package/dist/breadcrumb.cjs +1 -1
  16. package/dist/breadcrumb.mjs +13 -13
  17. package/dist/bubble.cjs +1 -1
  18. package/dist/bubble.mjs +5 -5
  19. package/dist/button-group.cjs +1 -1
  20. package/dist/button-group.mjs +13 -13
  21. package/dist/button.cjs +1 -1
  22. package/dist/button.mjs +5 -5
  23. package/dist/calendar.cjs +1 -1
  24. package/dist/calendar.mjs +97 -2
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.mjs +2 -3
  27. package/dist/carousel.cjs +1 -1
  28. package/dist/carousel.mjs +107 -2
  29. package/dist/chart.cjs +2 -2
  30. package/dist/chart.mjs +14 -15
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.mjs +19 -2
  33. package/dist/collapsible.cjs +1 -1
  34. package/dist/collapsible.mjs +13 -14
  35. package/dist/combobox.cjs +1 -1
  36. package/dist/combobox.mjs +161 -2
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.mjs +89 -2
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.mjs +123 -2
  41. package/dist/dialog.cjs +1 -1
  42. package/dist/dialog.mjs +41 -42
  43. package/dist/direction.cjs +1 -1
  44. package/dist/direction.mjs +8 -9
  45. package/dist/drawer.cjs +1 -1
  46. package/dist/drawer.mjs +2 -3
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.mjs +126 -2
  49. package/dist/empty.cjs +1 -1
  50. package/dist/empty.mjs +2 -3
  51. package/dist/field.cjs +1 -1
  52. package/dist/field.mjs +37 -38
  53. package/dist/form.cjs +1 -1
  54. package/dist/form.mjs +34 -35
  55. package/dist/hooks/use-theme.d.ts +52 -52
  56. package/dist/hover-card.cjs +1 -1
  57. package/dist/hover-card.mjs +30 -2
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.mjs +66 -66
  60. package/dist/input-group.cjs +1 -1
  61. package/dist/input-group.mjs +27 -28
  62. package/dist/input-otp.cjs +1 -1
  63. package/dist/input-otp.mjs +45 -2
  64. package/dist/input.cjs +1 -1
  65. package/dist/input.mjs +2 -3
  66. package/dist/item.cjs +1 -1
  67. package/dist/item.mjs +29 -29
  68. package/dist/kbd.cjs +1 -1
  69. package/dist/kbd.mjs +2 -3
  70. package/dist/label.cjs +1 -1
  71. package/dist/label.mjs +13 -2
  72. package/dist/marker.cjs +1 -1
  73. package/dist/marker.mjs +5 -5
  74. package/dist/menubar.cjs +1 -1
  75. package/dist/menubar.mjs +133 -2
  76. package/dist/message-scroller.cjs +1 -1
  77. package/dist/message-scroller.mjs +59 -2
  78. package/dist/message.cjs +1 -1
  79. package/dist/message.mjs +2 -3
  80. package/dist/native-select.cjs +1 -1
  81. package/dist/native-select.mjs +2 -3
  82. package/dist/navigation-menu.cjs +1 -1
  83. package/dist/navigation-menu.mjs +79 -2
  84. package/dist/pagination.cjs +1 -1
  85. package/dist/pagination.mjs +15 -16
  86. package/dist/popover.cjs +1 -1
  87. package/dist/popover.mjs +54 -2
  88. package/dist/progress.cjs +1 -1
  89. package/dist/progress.mjs +19 -2
  90. package/dist/questionnaire.cjs +1 -1
  91. package/dist/questionnaire.mjs +168 -2
  92. package/dist/radio-group.cjs +1 -1
  93. package/dist/radio-group.mjs +25 -2
  94. package/dist/resizable.cjs +1 -1
  95. package/dist/resizable.mjs +26 -2
  96. package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
  97. package/dist/scroll-area.cjs +1 -1
  98. package/dist/scroll-area.mjs +35 -2
  99. package/dist/scroll-to-top.cjs +1 -1
  100. package/dist/scroll-to-top.mjs +6 -11
  101. package/dist/search.cjs +1 -1
  102. package/dist/search.mjs +12 -13
  103. package/dist/select.cjs +1 -1
  104. package/dist/select.mjs +98 -2
  105. package/dist/separator.cjs +1 -1
  106. package/dist/separator.mjs +15 -2
  107. package/dist/sheet.cjs +1 -1
  108. package/dist/sheet.mjs +39 -40
  109. package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
  110. package/dist/sidebar-uOtFHnBs.js +1 -0
  111. package/dist/sidebar.cjs +1 -1
  112. package/dist/sidebar.mjs +3 -2
  113. package/dist/skeleton.cjs +1 -1
  114. package/dist/skeleton.mjs +2 -3
  115. package/dist/slider.cjs +1 -1
  116. package/dist/slider.mjs +34 -2
  117. package/dist/sonner.mjs +1 -2
  118. package/dist/spinner.cjs +1 -1
  119. package/dist/spinner.mjs +2 -3
  120. package/dist/support-fab.cjs +1 -1
  121. package/dist/support-fab.mjs +21 -22
  122. package/dist/switch.cjs +1 -1
  123. package/dist/switch.mjs +18 -2
  124. package/dist/table-of-contents.cjs +1 -1
  125. package/dist/table-of-contents.mjs +5 -6
  126. package/dist/table.cjs +1 -1
  127. package/dist/table.mjs +2 -3
  128. package/dist/tabs.cjs +1 -1
  129. package/dist/tabs.mjs +44 -2
  130. package/dist/text.cjs +1 -1
  131. package/dist/text.mjs +14 -12
  132. package/dist/textarea.cjs +1 -1
  133. package/dist/textarea.mjs +2 -3
  134. package/dist/theme-provider.mjs +1 -2
  135. package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
  136. package/dist/theme-toggle-DkNI3bfh.js +1 -0
  137. package/dist/theme-toggle.cjs +1 -1
  138. package/dist/theme-toggle.mjs +2 -2
  139. package/dist/toast.cjs +1 -1
  140. package/dist/toast.mjs +52 -2
  141. package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
  142. package/dist/toaster-AFud4l6l.js +1 -0
  143. package/dist/toaster.cjs +1 -1
  144. package/dist/toaster.mjs +2 -2
  145. package/dist/toggle-group.cjs +1 -1
  146. package/dist/toggle-group.mjs +49 -2
  147. package/dist/toggle.cjs +1 -1
  148. package/dist/toggle.mjs +35 -2
  149. package/dist/tooltip.cjs +1 -1
  150. package/dist/tooltip.mjs +34 -2
  151. package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
  152. package/package.json +3 -3
  153. package/dist/accordion-D5QXSsCK.mjs +0 -248
  154. package/dist/accordion-DjyDOX-h.js +0 -1
  155. package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
  156. package/dist/alert-dialog-DYQAhGBC.js +0 -1
  157. package/dist/aspect-ratio-C-KOOyGP.js +0 -1
  158. package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
  159. package/dist/avatar-4K3XjhP8.js +0 -1
  160. package/dist/avatar-d8Di248f.mjs +0 -138
  161. package/dist/calendar-DFj14O6r.js +0 -1
  162. package/dist/calendar-UW8h9dfh.mjs +0 -3182
  163. package/dist/carousel-CNGpg5df.js +0 -1
  164. package/dist/carousel-DG9xGJns.mjs +0 -1171
  165. package/dist/checkbox-BCgbTAdU.js +0 -1
  166. package/dist/checkbox-Dq8VHKDH.mjs +0 -186
  167. package/dist/chunk-BmowowmI.mjs +0 -14
  168. package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
  169. package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
  170. package/dist/chunk-mLOUI7ql.js +0 -1
  171. package/dist/combobox-CpPIGtPJ.js +0 -4
  172. package/dist/combobox-b4OmCNw1.mjs +0 -5887
  173. package/dist/command-5hobOyGG.mjs +0 -545
  174. package/dist/command-Dbqnm9kI.js +0 -1
  175. package/dist/context-menu-DyTUismw.js +0 -1
  176. package/dist/context-menu-DzzU-_v8.mjs +0 -317
  177. package/dist/dist-1zUKVGvf.js +0 -1
  178. package/dist/dist-B057I8ju.mjs +0 -30
  179. package/dist/dist-BB78QQyQ.mjs +0 -41
  180. package/dist/dist-BBvidwzC.js +0 -1
  181. package/dist/dist-BEbV0Hal.mjs +0 -45
  182. package/dist/dist-BPL7gUpg.mjs +0 -18
  183. package/dist/dist-BTUvBzOm.js +0 -1
  184. package/dist/dist-BU-TFzJf.js +0 -1
  185. package/dist/dist-Bb5W_J2F.mjs +0 -39
  186. package/dist/dist-BbI6NHqR.mjs +0 -23
  187. package/dist/dist-BexAB6yo.mjs +0 -192
  188. package/dist/dist-BgXIqHHq.js +0 -1
  189. package/dist/dist-Bvfb4y_L.mjs +0 -100
  190. package/dist/dist-C8Pm6LRc.js +0 -1
  191. package/dist/dist-CGgemr2V.js +0 -1
  192. package/dist/dist-CPAF050o.mjs +0 -90
  193. package/dist/dist-CS572Be42.mjs +0 -11
  194. package/dist/dist-CUvxOuXM.mjs +0 -551
  195. package/dist/dist-C_iFkwIX.js +0 -1
  196. package/dist/dist-ClYM7l1t.js +0 -1
  197. package/dist/dist-CpKLY_uZ.mjs +0 -96
  198. package/dist/dist-D1qkELLT.js +0 -1
  199. package/dist/dist-D7-Fky36.js +0 -1
  200. package/dist/dist-DEpkkABT.js +0 -1
  201. package/dist/dist-DI1vapnL.mjs +0 -20
  202. package/dist/dist-DJqkhIXb2.js +0 -1
  203. package/dist/dist-DKXojpVG.js +0 -1
  204. package/dist/dist-DYUvPCPC.js +0 -1
  205. package/dist/dist-DZiOPWLp.js +0 -1
  206. package/dist/dist-DatgTWLz.mjs +0 -202
  207. package/dist/dist-Dm3IQk5b.mjs +0 -685
  208. package/dist/dist-DoivLw3t.js +0 -1
  209. package/dist/dist-Dq-h6VAy.mjs +0 -118
  210. package/dist/dist-Dt6m-kwU.mjs +0 -221
  211. package/dist/dist-E8ieJTBC.mjs +0 -190
  212. package/dist/dist-GazS1kfR.mjs +0 -5
  213. package/dist/dist-N97cIp0_.js +0 -1
  214. package/dist/dist-OqDzLHTa.mjs +0 -460
  215. package/dist/dist-Qm9hFvM1.js +0 -1
  216. package/dist/dist-UkWa-Arh.mjs +0 -16
  217. package/dist/dist-UnTrOmPV.js +0 -1
  218. package/dist/dist-YAADIsyo.js +0 -1
  219. package/dist/dist-Zs2sjYhL.js +0 -1
  220. package/dist/dist-hFLuJoMi.js +0 -1
  221. package/dist/dist-s7ibhASj.mjs +0 -181
  222. package/dist/dist-vu20fMUK.mjs +0 -93
  223. package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
  224. package/dist/dropdown-menu-BtKOr--r.js +0 -1
  225. package/dist/es2015-DbAsWDbs.js +0 -41
  226. package/dist/es2015-DbsmTzuc.mjs +0 -571
  227. package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
  228. package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
  229. package/dist/hover-card-DMsxpR9G.mjs +0 -178
  230. package/dist/hover-card-DWXusgiI.js +0 -1
  231. package/dist/input-otp-D49Y9VcH.mjs +0 -409
  232. package/dist/input-otp-u3obpt-Q.js +0 -20
  233. package/dist/label-Dacwh21G.js +0 -1
  234. package/dist/label-DsSICLPc.mjs +0 -28
  235. package/dist/menubar-BYNeRuzx.js +0 -1
  236. package/dist/menubar-DZqEj6S1.mjs +0 -407
  237. package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
  238. package/dist/message-scroller-DqLu0YI6.js +0 -1
  239. package/dist/navigation-menu-B36G3O83.js +0 -1
  240. package/dist/navigation-menu-RO6thDOF.mjs +0 -636
  241. package/dist/popover-DSBkc70V.mjs +0 -243
  242. package/dist/popover-DUHbvKB8.js +0 -1
  243. package/dist/progress-B9z08UXf.js +0 -6
  244. package/dist/progress-CQ4nQ85t.mjs +0 -92
  245. package/dist/questionnaire-CVED7G7R.mjs +0 -1159
  246. package/dist/questionnaire-PWClWvST.js +0 -1
  247. package/dist/radio-group-Bd3WbH5I.js +0 -1
  248. package/dist/radio-group-TRiAhMZB.mjs +0 -266
  249. package/dist/resizable-Cq60hEWB.js +0 -1
  250. package/dist/resizable-Qc8cVUKd.mjs +0 -2857
  251. package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
  252. package/dist/scroll-area-DFUdJeSZ.js +0 -1
  253. package/dist/select-BFJUmjvX.mjs +0 -830
  254. package/dist/select-iQFoKU1s.js +0 -1
  255. package/dist/separator-2kr96SyF.mjs +0 -40
  256. package/dist/separator-Bo49G2aj.js +0 -1
  257. package/dist/sidebar-C6O8hLkz.js +0 -1
  258. package/dist/slider-CagVxozY.js +0 -1
  259. package/dist/slider-CdTCoQu1.mjs +0 -485
  260. package/dist/switch-CoeAC1Wk.js +0 -1
  261. package/dist/switch-zUBdj7jK.mjs +0 -174
  262. package/dist/tabs-DaE9pEbo.mjs +0 -160
  263. package/dist/tabs-TMhXe20x.js +0 -1
  264. package/dist/theme-toggle-DKh8WFLT.js +0 -1
  265. package/dist/toast-B0S3F09s.js +0 -1
  266. package/dist/toast-D0Yb-K84.mjs +0 -445
  267. package/dist/toaster-CX9im8R_.js +0 -1
  268. package/dist/toggle-B0hXPsi7.js +0 -1
  269. package/dist/toggle-BAeKd2N0.mjs +0 -59
  270. package/dist/toggle-group-CEKhUozD.mjs +0 -167
  271. package/dist/toggle-group-htyug3G7.js +0 -1
  272. package/dist/tooltip-BZazhXDZ.js +0 -1
  273. package/dist/tooltip-R_nK_Qh5.mjs +0 -390
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { t as e } from "./dist-Dm3IQk5b.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
- //#region src/pagination.tsx
8
- function s({ className: t, ...n }) {
7
+ // src/pagination.tsx
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",
@@ -84,5 +84,4 @@ function p({ className: t, ...n }) {
84
84
  })]
85
85
  });
86
86
  }
87
- //#endregion
88
87
  export { s as Pagination, c as PaginationContent, p as PaginationEllipsis, l as PaginationItem, u as PaginationLink, f as PaginationNext, d as PaginationPrevious };
package/dist/popover.cjs CHANGED
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./popover-DUHbvKB8.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,3 +1,55 @@
1
1
  "use client";
2
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./popover-DSBkc70V.mjs";
3
- export { o as Popover, n as PopoverAnchor, i as PopoverContent, t as PopoverDescription, e as PopoverHeader, r as PopoverTitle, a as PopoverTrigger };
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-B9z08UXf.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,4 +1,21 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as e } from "./progress-CQ4nQ85t.mjs";
4
- export { e as Progress };
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-PWClWvST.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;
@@ -1,4 +1,170 @@
1
1
  "use client";
2
2
  "use client";
3
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./questionnaire-CVED7G7R.mjs";
4
- export { p as Questionnaire, c as QuestionnaireActions, d as QuestionnaireChoice, a as QuestionnaireChoiceDescription, e as QuestionnaireChoices, l as QuestionnaireDescription, f as QuestionnaireError, t as QuestionnaireInput, o as QuestionnaireItem, m as QuestionnaireNext, n as QuestionnairePrevious, r as QuestionnaireProgress, u as QuestionnaireSkip, s as QuestionnaireSubmit, i as QuestionnaireTitle };
3
+ import { buttonVariants as e } from "./button.mjs";
4
+ import { cn as t } from "cn";
5
+ import { CheckIcon as n } from "lucide-react";
6
+ import "react";
7
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
8
+ import { Questionnaire as a } from "@shadcn/react/questionnaire";
9
+ // src/questionnaire.tsx
10
+ function o({ className: e, ...n }) {
11
+ return /* @__PURE__ */ r(a.Root, {
12
+ "data-slot": "questionnaire",
13
+ className: t("flex w-full min-w-0 flex-col gap-4", e),
14
+ ...n
15
+ });
16
+ }
17
+ function s({ className: e, ...n }) {
18
+ return /* @__PURE__ */ r(a.Progress, {
19
+ "data-slot": "questionnaire-progress",
20
+ className: t("text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums", e),
21
+ ...n
22
+ });
23
+ }
24
+ function c({ className: e, ...n }) {
25
+ return /* @__PURE__ */ r(a.Item, {
26
+ "data-slot": "questionnaire-item",
27
+ className: t("flex min-w-0 flex-col gap-4 border-0 p-0 outline-none", e),
28
+ ...n
29
+ });
30
+ }
31
+ function l({ className: e, ...n }) {
32
+ return /* @__PURE__ */ r(a.Title, {
33
+ "data-slot": "questionnaire-title",
34
+ className: t("text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4", e),
35
+ ...n
36
+ });
37
+ }
38
+ function u({ className: e, ...n }) {
39
+ return /* @__PURE__ */ r(a.Description, {
40
+ "data-slot": "questionnaire-description",
41
+ className: t("text-muted-foreground text-sm text-pretty", e),
42
+ ...n
43
+ });
44
+ }
45
+ function d({ className: e, ...n }) {
46
+ return /* @__PURE__ */ r(a.Choices, {
47
+ "data-slot": "questionnaire-choices",
48
+ className: t("group/questionnaire-choices grid min-w-0 gap-2", e),
49
+ ...n
50
+ });
51
+ }
52
+ function f({ children: e, className: o, ...s }) {
53
+ return /* @__PURE__ */ i(a.Choice, {
54
+ "data-slot": "questionnaire-choice",
55
+ className: t("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", o),
56
+ ...s,
57
+ children: [
58
+ /* @__PURE__ */ r(a.ChoiceInput, {
59
+ "data-slot": "questionnaire-choice-input",
60
+ className: "absolute inset-0 z-10 size-full cursor-pointer opacity-0"
61
+ }),
62
+ /* @__PURE__ */ i("span", {
63
+ "aria-hidden": "true",
64
+ "data-slot": "questionnaire-choice-indicator",
65
+ 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",
66
+ children: [/* @__PURE__ */ r("span", {
67
+ "data-slot": "questionnaire-choice-indicator-dot",
68
+ className: "bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden"
69
+ }), /* @__PURE__ */ r(n, {
70
+ "data-slot": "questionnaire-choice-indicator-check",
71
+ className: "hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden"
72
+ })]
73
+ }),
74
+ /* @__PURE__ */ r(a.ChoiceLabel, {
75
+ "data-slot": "questionnaire-choice-label",
76
+ className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-snug",
77
+ children: e
78
+ }),
79
+ /* @__PURE__ */ r(a.ChoiceShortcut, {
80
+ "data-slot": "questionnaire-choice-shortcut",
81
+ 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"
82
+ })
83
+ ]
84
+ });
85
+ }
86
+ function p({ className: e, ...n }) {
87
+ return /* @__PURE__ */ r("span", {
88
+ "data-slot": "questionnaire-choice-description",
89
+ className: t("text-muted-foreground", e),
90
+ ...n
91
+ });
92
+ }
93
+ function m({ className: e, ...n }) {
94
+ return /* @__PURE__ */ r("div", {
95
+ "data-slot": "questionnaire-input-wrapper",
96
+ className: "group/questionnaire-input relative w-full min-w-0",
97
+ children: /* @__PURE__ */ r(a.Input, {
98
+ "data-slot": "questionnaire-input",
99
+ className: t("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),
100
+ ...n
101
+ })
102
+ });
103
+ }
104
+ function h({ className: e, ...n }) {
105
+ return /* @__PURE__ */ r(a.Error, {
106
+ "data-slot": "questionnaire-error",
107
+ className: t("text-destructive mt-2 text-sm", e),
108
+ ...n
109
+ });
110
+ }
111
+ function g({ className: e, ...n }) {
112
+ return /* @__PURE__ */ r("div", {
113
+ "data-slot": "questionnaire-actions",
114
+ className: t("grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8", e),
115
+ ...n
116
+ });
117
+ }
118
+ function _({ children: n, className: i, size: o = "default", variant: s = "outline", ...c }) {
119
+ return /* @__PURE__ */ r(a.Previous, {
120
+ "data-slot": "questionnaire-previous",
121
+ "data-size": o,
122
+ "data-variant": s,
123
+ className: t(e({
124
+ size: o,
125
+ variant: s
126
+ }), "col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0", i),
127
+ ...c,
128
+ children: n ?? "Previous"
129
+ });
130
+ }
131
+ function v({ children: n, className: i, size: o = "default", variant: s = "outline", ...c }) {
132
+ return /* @__PURE__ */ r(a.Skip, {
133
+ "data-slot": "questionnaire-skip",
134
+ "data-size": o,
135
+ "data-variant": s,
136
+ className: t(e({
137
+ size: o,
138
+ variant: s
139
+ }), "col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0", i),
140
+ ...c,
141
+ children: n ?? "Skip"
142
+ });
143
+ }
144
+ function y({ children: n, className: i, size: o = "default", variant: s = "default", ...c }) {
145
+ return /* @__PURE__ */ r(a.Next, {
146
+ "data-slot": "questionnaire-next",
147
+ "data-size": o,
148
+ "data-variant": s,
149
+ className: t(e({
150
+ size: o,
151
+ variant: s
152
+ }), "col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0", i),
153
+ ...c,
154
+ children: n ?? "Next"
155
+ });
156
+ }
157
+ function b({ children: n, className: i, size: o = "default", variant: s = "default", ...c }) {
158
+ return /* @__PURE__ */ r(a.Submit, {
159
+ "data-slot": "questionnaire-submit",
160
+ "data-size": o,
161
+ "data-variant": s,
162
+ className: t(e({
163
+ size: o,
164
+ variant: s
165
+ }), "col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0", i),
166
+ ...c,
167
+ children: n ?? "Submit"
168
+ });
169
+ }
170
+ export { o as Questionnaire, g as QuestionnaireActions, f as QuestionnaireChoice, p as QuestionnaireChoiceDescription, d as QuestionnaireChoices, u as QuestionnaireDescription, h as QuestionnaireError, m as QuestionnaireInput, c as QuestionnaireItem, y as QuestionnaireNext, _ as QuestionnairePrevious, s as QuestionnaireProgress, v as QuestionnaireSkip, b as QuestionnaireSubmit, l as QuestionnaireTitle };
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./radio-group-Bd3WbH5I.js");exports.RadioGroup=e.t,exports.RadioGroupItem=e.n;
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({className:e,...r}){return(0,i.jsx)(n.RadioGroup.Root,{"data-slot":`radio-group`,className:(0,t.cn)(`grid w-full gap-2`,e),...r})}function o({className:e,...r}){return(0,i.jsx)(n.RadioGroup.Item,{"data-slot":`radio-group-item`,className:(0,t.cn)(`group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,e),...r,children:(0,i.jsx)(n.RadioGroup.Indicator,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,i.jsx)(`span`,{className:`bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2`})})})}exports.RadioGroup=a,exports.RadioGroupItem=o;
@@ -1,3 +1,26 @@
1
1
  "use client";
2
- import { n as e, t } from "./radio-group-TRiAhMZB.mjs";
3
- export { t as RadioGroup, e as RadioGroupItem };
2
+ import { cn as e } from "cn";
3
+ import { RadioGroup as t } from "radix-ui";
4
+ import "react";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ // src/radio-group.tsx
7
+ function r({ className: r, ...i }) {
8
+ return /* @__PURE__ */ n(t.Root, {
9
+ "data-slot": "radio-group",
10
+ className: e("grid w-full gap-2", r),
11
+ ...i
12
+ });
13
+ }
14
+ function i({ className: r, ...i }) {
15
+ return /* @__PURE__ */ n(t.Item, {
16
+ "data-slot": "radio-group-item",
17
+ className: e("group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3", r),
18
+ ...i,
19
+ children: /* @__PURE__ */ n(t.Indicator, {
20
+ "data-slot": "radio-group-indicator",
21
+ className: "flex size-4 items-center justify-center",
22
+ children: /* @__PURE__ */ n("span", { className: "bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2" })
23
+ })
24
+ });
25
+ }
26
+ export { r as RadioGroup, i as RadioGroupItem };
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./resizable-Cq60hEWB.js");exports.ResizableHandle=e.t,exports.ResizablePanel=e.n,exports.ResizablePanelGroup=e.r;
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("react/jsx-runtime"),r=require("react-resizable-panels");r=e.t(r);function i({className:e,...i}){return(0,n.jsx)(r.Group,{"data-slot":`resizable-panel-group`,className:(0,t.cn)(`flex h-full w-full aria-[orientation=vertical]:flex-col`,e),...i})}function a({...e}){return(0,n.jsx)(r.Panel,{"data-slot":`resizable-panel`,...e})}function o({withHandle:e,className:i,...a}){return(0,n.jsx)(r.Separator,{"data-slot":`resizable-handle`,className:(0,t.cn)(`bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90`,i),...a,children:e&&(0,n.jsx)(`div`,{className:`bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg`})})}exports.ResizableHandle=o,exports.ResizablePanel=a,exports.ResizablePanelGroup=i;
@@ -1,4 +1,28 @@
1
1
  "use client";
2
2
  "use client";
3
- import { n as e, r as t, t as n } from "./resizable-Qc8cVUKd.mjs";
4
- export { n as ResizableHandle, e as ResizablePanel, t as ResizablePanelGroup };
3
+ import { cn as e } from "cn";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import * as n from "react-resizable-panels";
6
+ // src/resizable.tsx
7
+ function r({ className: r, ...i }) {
8
+ return /* @__PURE__ */ t(n.Group, {
9
+ "data-slot": "resizable-panel-group",
10
+ className: e("flex h-full w-full aria-[orientation=vertical]:flex-col", r),
11
+ ...i
12
+ });
13
+ }
14
+ function i({ ...e }) {
15
+ return /* @__PURE__ */ t(n.Panel, {
16
+ "data-slot": "resizable-panel",
17
+ ...e
18
+ });
19
+ }
20
+ function a({ withHandle: r, className: i, ...a }) {
21
+ return /* @__PURE__ */ t(n.Separator, {
22
+ "data-slot": "resizable-handle",
23
+ className: e("bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90", i),
24
+ ...a,
25
+ children: r && /* @__PURE__ */ t("div", { className: "bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg" })
26
+ });
27
+ }
28
+ export { a as ResizableHandle, i as ResizablePanel, r as ResizablePanelGroup };
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./scroll-area-DFUdJeSZ.js");exports.ScrollArea=e.t,exports.ScrollBar=e.n;
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({className:e,children:r,...a}){return(0,i.jsxs)(n.ScrollArea.Root,{"data-slot":`scroll-area`,className:(0,t.cn)(`relative`,e),...a,children:[(0,i.jsx)(n.ScrollArea.Viewport,{"data-slot":`scroll-area-viewport`,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:r}),(0,i.jsx)(o,{}),(0,i.jsx)(n.ScrollArea.Corner,{})]})}function o({className:e,orientation:r=`vertical`,...a}){return(0,i.jsx)(n.ScrollArea.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,"data-orientation":r,orientation:r,className:(0,t.cn)(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent`,e),...a,children:(0,i.jsx)(n.ScrollArea.ScrollAreaThumb,{"data-slot":`scroll-area-thumb`,className:`bg-border relative flex-1 rounded-full`})})}exports.ScrollArea=a,exports.ScrollBar=o;
@@ -1,3 +1,36 @@
1
1
  "use client";
2
- import { n as e, t } from "./scroll-area-D6MiNHnJ.mjs";
3
- export { t as ScrollArea, e as ScrollBar };
2
+ import { cn as e } from "cn";
3
+ import { ScrollArea as t } from "radix-ui";
4
+ import "react";
5
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
6
+ // src/scroll-area.tsx
7
+ function i({ className: i, children: o, ...s }) {
8
+ return /* @__PURE__ */ r(t.Root, {
9
+ "data-slot": "scroll-area",
10
+ className: e("relative", i),
11
+ ...s,
12
+ children: [
13
+ /* @__PURE__ */ n(t.Viewport, {
14
+ "data-slot": "scroll-area-viewport",
15
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
16
+ children: o
17
+ }),
18
+ /* @__PURE__ */ n(a, {}),
19
+ /* @__PURE__ */ n(t.Corner, {})
20
+ ]
21
+ });
22
+ }
23
+ function a({ className: r, orientation: i = "vertical", ...a }) {
24
+ return /* @__PURE__ */ n(t.ScrollAreaScrollbar, {
25
+ "data-slot": "scroll-area-scrollbar",
26
+ "data-orientation": i,
27
+ orientation: i,
28
+ className: e("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent", r),
29
+ ...a,
30
+ children: /* @__PURE__ */ n(t.ScrollAreaThumb, {
31
+ "data-slot": "scroll-area-thumb",
32
+ className: "bg-border relative flex-1 rounded-full"
33
+ })
34
+ });
35
+ }
36
+ export { i as ScrollArea, a as ScrollBar };
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./button.cjs");let r=require("lucide-react"),i=require("react");i=e.r(i);let a=require("react/jsx-runtime");var o=e=>typeof e.scrollY==`number`,s=e=>o(e)?e.scrollY:e.scrollTop;function c({threshold:e=240,exitDuration:o=450,behavior:c=`smooth`,scrollTarget:l,className:u,label:d=`Scroll to top`,onClick:f,tabIndex:p,type:m,...h}){let[g,_]=i.useState(!1),[v,y]=i.useState(!1),b=i.useRef(null);i.useEffect(()=>{let t=l===void 0?window:l,n=()=>{_(!1)};if(!t){n();return}let r=()=>{let n=s(t);if(v){n<=e&&(_(!1),y(!1));return}_(n>e)};return r(),t.addEventListener(`scroll`,r,{passive:!0}),()=>{t.removeEventListener(`scroll`,r)}},[v,l,e]),i.useEffect(()=>()=>{b.current!==null&&window.clearTimeout(b.current)},[]);let x=v?`exiting`:g?`visible`:`hidden`;return(0,a.jsxs)(n.Button,{"aria-label":d,"data-state":x,type:m??`button`,variant:`default`,size:`icon`,tabIndex:x===`hidden`?-1:p,className:t.t(`group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,`before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80`,`hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95`,x===`visible`&&`translate-y-0 scale-100 opacity-100`,x===`hidden`&&`pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none`,x===`exiting`&&`pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none`,u),onClick:t=>{if(f?.(t),t.defaultPrevented||v)return;let n=l===void 0?window:l;if(!n)return;y(!0);let r=Math.max(0,o);b.current=window.setTimeout(()=>{n.scrollTo({top:0,behavior:c});let t=s(n);_(!1),t<=e&&y(!1)},r)},...h,children:[(0,a.jsx)(`span`,{className:`bg-primary-foreground/20 absolute inset-0 rounded-full opacity-0 transition-opacity duration-500 group-hover:animate-pulse group-hover:opacity-100`}),(0,a.jsx)(`span`,{className:`border-primary-foreground/35 absolute inset-0 rounded-full border opacity-0 transition-opacity duration-300 group-hover:animate-ping group-hover:opacity-100`}),(0,a.jsx)(r.ArrowUp,{className:`relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]`}),(0,a.jsx)(`span`,{className:`sr-only`,children:d})]})}exports.ScrollToTop=c;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs"),n=require("./utils-ChMUqofy.js");let r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime");var o=e=>typeof e.scrollY==`number`,s=e=>o(e)?e.scrollY:e.scrollTop;function c({threshold:e=240,exitDuration:o=450,behavior:c=`smooth`,scrollTarget:l,className:u,label:d=`Scroll to top`,onClick:f,tabIndex:p,type:m,...h}){let[g,_]=i.useState(!1),[v,y]=i.useState(!1),b=i.useRef(null);i.useEffect(()=>{let t=l===void 0?window:l,n=()=>{_(!1)};if(!t){n();return}let r=()=>{let n=s(t);v?n<=e&&(_(!1),y(!1)):_(n>e)};return r(),t.addEventListener(`scroll`,r,{passive:!0}),()=>{t.removeEventListener(`scroll`,r)}},[v,l,e]),i.useEffect(()=>()=>{b.current!==null&&window.clearTimeout(b.current)},[]);let x=v?`exiting`:g?`visible`:`hidden`;return(0,a.jsxs)(t.Button,{"aria-label":d,"data-state":x,type:m??`button`,variant:`default`,size:`icon`,tabIndex:x===`hidden`?-1:p,className:n.t(`group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,`before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80`,`hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95`,x===`visible`&&`translate-y-0 scale-100 opacity-100`,x===`hidden`&&`pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none`,x===`exiting`&&`pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none`,u),onClick:t=>{if(f?.(t),t.defaultPrevented||v)return;let n=l===void 0?window:l;if(!n)return;y(!0);let r=Math.max(0,o);b.current=window.setTimeout(()=>{n.scrollTo({top:0,behavior:c});let t=s(n);_(!1),t<=e&&y(!1)},r)},...h,children:[(0,a.jsx)(`span`,{className:`bg-primary-foreground/20 absolute inset-0 rounded-full opacity-0 transition-opacity duration-500 group-hover:animate-pulse group-hover:opacity-100`}),(0,a.jsx)(`span`,{className:`border-primary-foreground/35 absolute inset-0 rounded-full border opacity-0 transition-opacity duration-300 group-hover:animate-ping group-hover:opacity-100`}),(0,a.jsx)(r.ArrowUp,{className:`relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]`}),(0,a.jsx)(`span`,{className:`sr-only`,children:d})]})}exports.ScrollToTop=c;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as e } from "./utils-A_oVsYw5.mjs";
4
- import { Button as t } from "./button.mjs";
3
+ import { Button as e } from "./button.mjs";
4
+ import { t } from "./utils-DQKc9joa.mjs";
5
5
  import { ArrowUp as n } from "lucide-react";
6
6
  import * as r from "react";
7
7
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
- //#region src/scroll-to-top.tsx
8
+ // src/scroll-to-top.tsx
9
9
  var o = (e) => typeof e.scrollY == "number", s = (e) => o(e) ? e.scrollY : e.scrollTop;
10
10
  function c({ threshold: o = 240, exitDuration: c = 450, behavior: l = "smooth", scrollTarget: u, className: d, label: f = "Scroll to top", onClick: p, tabIndex: m, type: h, ...g }) {
11
11
  let [_, v] = r.useState(!1), [y, b] = r.useState(!1), x = r.useRef(null);
@@ -19,11 +19,7 @@ function c({ threshold: o = 240, exitDuration: c = 450, behavior: l = "smooth",
19
19
  }
20
20
  let n = () => {
21
21
  let t = s(e);
22
- if (y) {
23
- t <= o && (v(!1), b(!1));
24
- return;
25
- }
26
- v(t > o);
22
+ y ? t <= o && (v(!1), b(!1)) : v(t > o);
27
23
  };
28
24
  return n(), e.addEventListener("scroll", n, { passive: !0 }), () => {
29
25
  e.removeEventListener("scroll", n);
@@ -36,14 +32,14 @@ function c({ threshold: o = 240, exitDuration: c = 450, behavior: l = "smooth",
36
32
  x.current !== null && window.clearTimeout(x.current);
37
33
  }, []);
38
34
  let S = y ? "exiting" : _ ? "visible" : "hidden";
39
- return /* @__PURE__ */ a(t, {
35
+ return /* @__PURE__ */ a(e, {
40
36
  "aria-label": f,
41
37
  "data-state": S,
42
38
  type: h ?? "button",
43
39
  variant: "default",
44
40
  size: "icon",
45
41
  tabIndex: S === "hidden" ? -1 : m,
46
- className: e("group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none", "before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80", "hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95", S === "visible" && "translate-y-0 scale-100 opacity-100", S === "hidden" && "pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none", S === "exiting" && "pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none", d),
42
+ className: t("group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none", "before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80", "hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95", S === "visible" && "translate-y-0 scale-100 opacity-100", S === "hidden" && "pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none", S === "exiting" && "pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none", d),
47
43
  onClick: (e) => {
48
44
  if (p?.(e), e.defaultPrevented || y) return;
49
45
  let t = u === void 0 ? window : u;
@@ -71,5 +67,4 @@ function c({ threshold: o = 240, exitDuration: c = 450, behavior: l = "smooth",
71
67
  ]
72
68
  });
73
69
  }
74
- //#endregion
75
70
  export { c as ScrollToTop };
package/dist/search.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./button.cjs"),r=require("./command-Dbqnm9kI.js");let i=require("lucide-react"),a=require("react");a=e.r(a);let o=require("react/jsx-runtime");function s({children:e,open:t,onOpenChange:n,disableShortcut:i}){let[s,c]=a.useState(!1),l=t!==void 0,u=l?t:s,d=a.useCallback(e=>{let t;t=typeof e==`function`?e(u):e,l?n?.(t):c(t)},[l,u,n]);return a.useEffect(()=>{if(i)return;let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d,i]),(0,o.jsx)(r.n,{open:u,onOpenChange:d,children:e})}var c=a.forwardRef(({className:e,placeholder:r,variant:a=`default`,responsive:s=!0,...c},l)=>{let u=r||(a===`compact`?`Search...`:`Search docs...`);return(0,o.jsxs)(n.Button,{variant:`outline`,className:t.t(`text-muted-foreground relative h-9 text-sm transition-all transition-colors`,a===`default`?`w-full justify-start pr-12`:t.t(`w-auto justify-between gap-2 px-2`,s&&`md:w-64 md:px-3`),e),ref:l,...c,children:[(0,o.jsxs)(`span`,{className:`inline-flex flex-1 items-center gap-2 overflow-hidden`,children:[(0,o.jsx)(i.Search,{className:`h-4 w-4 shrink-0`}),(0,o.jsx)(`span`,{className:t.t(`truncate`,a===`compact`&&(s?`hidden md:inline`:`hidden`)),children:u})]}),(0,o.jsxs)(`kbd`,{className:t.t(`bg-muted pointer-events-none h-6 shrink-0 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none`,a===`default`?`absolute top-1.5 right-1.5 hidden sm:flex`:`flex`),children:[(0,o.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})});c.displayName=`SearchTrigger`,exports.Search=s,exports.SearchTrigger=c;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs"),n=require("./command.cjs"),r=require("./utils-ChMUqofy.js");let i=require("lucide-react"),a=require("react");a=e.t(a);let o=require("react/jsx-runtime");function s({children:e,open:t,onOpenChange:r,disableShortcut:i}){let[s,c]=a.useState(!1),l=t!==void 0,u=l?t:s,d=a.useCallback(e=>{let t;t=typeof e==`function`?e(u):e,l?r?.(t):c(t)},[l,u,r]);return a.useEffect(()=>{if(i)return;let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d,i]),(0,o.jsx)(n.CommandDialog,{open:u,onOpenChange:d,children:e})}var c=a.forwardRef(({className:e,placeholder:n,variant:a=`default`,responsive:s=!0,...c},l)=>{let u=n||(a===`compact`?`Search...`:`Search docs...`);return(0,o.jsxs)(t.Button,{variant:`outline`,className:r.t(`text-muted-foreground relative h-9 text-sm transition-all transition-colors`,a==="default"?`w-full justify-start pr-12`:r.t(`w-auto justify-between gap-2 px-2`,s&&`md:w-64 md:px-3`),e),ref:l,...c,children:[(0,o.jsxs)(`span`,{className:`inline-flex flex-1 items-center gap-2 overflow-hidden`,children:[(0,o.jsx)(i.Search,{className:`h-4 w-4 shrink-0`}),(0,o.jsx)(`span`,{className:r.t(`truncate`,a===`compact`&&(s?`hidden md:inline`:`hidden`)),children:u})]}),(0,o.jsxs)(`kbd`,{className:r.t(`bg-muted pointer-events-none h-6 shrink-0 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none`,a==="default"?`absolute top-1.5 right-1.5 hidden sm:flex`:`flex`),children:[(0,o.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})});c.displayName=`SearchTrigger`,exports.Search=s,exports.SearchTrigger=c;