@gv-tech/ui-web 2.20.0 → 2.21.0

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 (287) hide show
  1. package/dist/accordion-Be1vGv6M.js +1 -0
  2. package/dist/accordion-DXnU0LgU.mjs +221 -0
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.mjs +3 -259
  5. package/dist/alert-dialog-BXRY0Ghq.js +7 -0
  6. package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
  7. package/dist/alert-dialog.cjs +1 -7
  8. package/dist/alert-dialog.mjs +4 -171
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +35 -32
  11. package/dist/aspect-ratio-BP5HarYZ.js +1 -0
  12. package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
  13. package/dist/aspect-ratio.cjs +1 -1
  14. package/dist/aspect-ratio.mjs +3 -43
  15. package/dist/avatar-klFl8Sqa.js +1 -0
  16. package/dist/avatar-vGm9JN1a.mjs +184 -0
  17. package/dist/avatar.cjs +1 -1
  18. package/dist/avatar.mjs +3 -205
  19. package/dist/badge.cjs +1 -1
  20. package/dist/badge.mjs +21 -24
  21. package/dist/breadcrumb.cjs +1 -1
  22. package/dist/breadcrumb.mjs +60 -68
  23. package/dist/button.cjs +1 -1
  24. package/dist/button.mjs +40 -40
  25. package/dist/calendar-aIuSXzs7.js +1 -0
  26. package/dist/calendar-oitID53a.mjs +3154 -0
  27. package/dist/calendar.cjs +1 -1
  28. package/dist/calendar.mjs +4 -2976
  29. package/dist/card.cjs +1 -1
  30. package/dist/card.mjs +42 -32
  31. package/dist/carousel-BjTSkVh9.js +1 -0
  32. package/dist/carousel-CENzZCXN.mjs +1178 -0
  33. package/dist/carousel.cjs +1 -1
  34. package/dist/carousel.mjs +4 -1403
  35. package/dist/chart.cjs +4 -4
  36. package/dist/chart.d.ts +3 -35
  37. package/dist/chart.mjs +123 -182
  38. package/dist/checkbox-Bwq7mXA2.mjs +170 -0
  39. package/dist/checkbox-DzEO1q4R.js +1 -0
  40. package/dist/checkbox.cjs +1 -1
  41. package/dist/checkbox.mjs +3 -258
  42. package/dist/collapsible.cjs +1 -1
  43. package/dist/collapsible.mjs +6 -7
  44. package/dist/command-D7hksKY6.js +1 -0
  45. package/dist/command-Ws_iF1hM.mjs +531 -0
  46. package/dist/command.cjs +1 -1
  47. package/dist/command.mjs +3 -396
  48. package/dist/context-menu-DJbgNJ7N.js +1 -0
  49. package/dist/context-menu-fu39gePi.mjs +292 -0
  50. package/dist/context-menu.cjs +1 -1
  51. package/dist/context-menu.mjs +3 -328
  52. package/dist/dialog.cjs +1 -1
  53. package/dist/dialog.mjs +50 -66
  54. package/dist/dist-0FXx-pUX.js +1 -0
  55. package/dist/dist-4A0ut6a8.mjs +10 -0
  56. package/dist/dist-ALQAoSGx.mjs +10 -0
  57. package/dist/dist-B4N_7Tps.js +1 -0
  58. package/dist/dist-B5776DvK.js +5 -0
  59. package/dist/dist-B57mzJP3.mjs +28 -0
  60. package/dist/dist-B5VmV2K7.js +1 -0
  61. package/dist/dist-BBRD-Qfb.js +1 -0
  62. package/dist/dist-BC_VB6JL.mjs +25 -0
  63. package/dist/dist-BKFtvTm8.mjs +6 -0
  64. package/dist/dist-BUS_s_6N.js +1 -0
  65. package/dist/dist-BVKPqhkg.js +1 -0
  66. package/dist/dist-Ba7mQG9D.mjs +117 -0
  67. package/dist/dist-BeFCyPgD.js +1 -0
  68. package/dist/dist-Bf4P28CV.js +1 -0
  69. package/dist/dist-BfFVoFJN.js +1 -0
  70. package/dist/dist-BhtQH_6Z.js +1 -0
  71. package/dist/dist-BmjFh8i_.mjs +5 -0
  72. package/dist/dist-BrCTkQXt.mjs +62 -0
  73. package/dist/dist-BxmpAHsT.mjs +219 -0
  74. package/dist/dist-C2ArLRnq.js +1 -0
  75. package/dist/dist-C2pRTcV_.mjs +62 -0
  76. package/dist/dist-C9wnUiS4.mjs +27 -0
  77. package/dist/dist-CIRItnqs.js +1 -0
  78. package/dist/dist-CL1DhkaL.js +1 -0
  79. package/dist/dist-CRe7xawr.js +1 -0
  80. package/dist/dist-CUFjt0cI.js +1 -0
  81. package/dist/dist-CaaGWewc.mjs +557 -0
  82. package/dist/dist-Ci2whnVp.js +1 -0
  83. package/dist/dist-CmBtqW5f.js +1 -0
  84. package/dist/dist-CsEsK2jW.js +1 -0
  85. package/dist/dist-CscAxhT8.js +1 -0
  86. package/dist/dist-CvtF5JdF.mjs +95 -0
  87. package/dist/dist-Cvwtowos.mjs +77 -0
  88. package/dist/dist-D2f83VMO.mjs +73 -0
  89. package/dist/dist-Dh_jWJh-.mjs +11 -0
  90. package/dist/dist-DikyKBU3.mjs +12 -0
  91. package/dist/dist-DmmUjo_P.js +1 -0
  92. package/dist/dist-DqvQ5UFr.mjs +38 -0
  93. package/dist/dist-FGQAMrhH.mjs +29 -0
  94. package/dist/dist-Jtk3jeb9.mjs +18 -0
  95. package/dist/dist-Kqk0oQYU.js +1 -0
  96. package/dist/dist-VI9bl_Wk.mjs +45 -0
  97. package/dist/dist-Z7lEV5Nx.mjs +1282 -0
  98. package/dist/dist-_Osar3kp.js +1 -0
  99. package/dist/dist-bDoR0CBU.mjs +112 -0
  100. package/dist/dist-cRjbOZRf.js +1 -0
  101. package/dist/dist-d_pecHgw.mjs +66 -0
  102. package/dist/dist-r36zVVcK.js +1 -0
  103. package/dist/dist-sRlXdzvf.mjs +152 -0
  104. package/dist/drawer.cjs +1 -1
  105. package/dist/drawer.mjs +48 -54
  106. package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
  107. package/dist/dropdown-menu-uGMnmGL-.js +1 -0
  108. package/dist/dropdown-menu.cjs +1 -1
  109. package/dist/dropdown-menu.mjs +3 -316
  110. package/dist/es2015-Cx0gpR1a.js +41 -0
  111. package/dist/es2015-a1b8kENC.mjs +701 -0
  112. package/dist/form.cjs +1 -1
  113. package/dist/form.mjs +76 -67
  114. package/dist/hover-card-DdIYJP-Q.mjs +167 -0
  115. package/dist/hover-card-Ua-2KlY-.js +1 -0
  116. package/dist/hover-card.cjs +1 -1
  117. package/dist/hover-card.mjs +3 -188
  118. package/dist/index.cjs +1 -1
  119. package/dist/index.d.ts +3 -35
  120. package/dist/index.mjs +56 -296
  121. package/dist/input.cjs +1 -1
  122. package/dist/input.mjs +14 -19
  123. package/dist/jsx-runtime-CN3qjQQx.js +6 -0
  124. package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
  125. package/dist/label-8YSUv4kt.js +1 -0
  126. package/dist/label-Bur66PVg.mjs +22 -0
  127. package/dist/label.cjs +1 -1
  128. package/dist/label.mjs +3 -22
  129. package/dist/menubar-Bq1Sfbf5.js +1 -0
  130. package/dist/menubar-D2fY6zkQ.mjs +410 -0
  131. package/dist/menubar.cjs +1 -1
  132. package/dist/menubar.mjs +3 -473
  133. package/dist/navigation-menu-BuOakbgA.mjs +602 -0
  134. package/dist/navigation-menu-so6EvLAY.js +1 -0
  135. package/dist/navigation-menu.cjs +1 -1
  136. package/dist/navigation-menu.mjs +3 -673
  137. package/dist/pagination.cjs +1 -1
  138. package/dist/pagination.mjs +63 -68
  139. package/dist/popover-BUADXRkO.mjs +201 -0
  140. package/dist/popover-nBrSPqHk.js +1 -0
  141. package/dist/popover.cjs +1 -1
  142. package/dist/popover.mjs +3 -242
  143. package/dist/progress-BTApMbqg.js +6 -0
  144. package/dist/progress-BbN-RNvs.mjs +81 -0
  145. package/dist/progress.cjs +1 -6
  146. package/dist/progress.mjs +3 -99
  147. package/dist/radio-group-C5oprOrt.mjs +193 -0
  148. package/dist/radio-group-FDXr6VLM.js +1 -0
  149. package/dist/radio-group.cjs +1 -1
  150. package/dist/radio-group.mjs +3 -253
  151. package/dist/resizable-ChdgCzzx.mjs +1534 -0
  152. package/dist/resizable-ztiFzq_y.js +1 -0
  153. package/dist/resizable.cjs +1 -1
  154. package/dist/resizable.mjs +3 -1990
  155. package/dist/scroll-area-3o0-cc3n.mjs +520 -0
  156. package/dist/scroll-area-DXZqIKXN.js +1 -0
  157. package/dist/scroll-area.cjs +1 -1
  158. package/dist/scroll-area.mjs +3 -546
  159. package/dist/scroll-to-top.cjs +1 -1
  160. package/dist/scroll-to-top.mjs +71 -84
  161. package/dist/search.cjs +1 -1
  162. package/dist/search.mjs +53 -63
  163. package/dist/select-B2qM503G.mjs +744 -0
  164. package/dist/select-BHCeW-MD.js +1 -0
  165. package/dist/select.cjs +1 -1
  166. package/dist/select.mjs +3 -908
  167. package/dist/separator-BZJ-SDvg.js +1 -0
  168. package/dist/separator-DJ_IwKUQ.mjs +31 -0
  169. package/dist/separator.cjs +1 -1
  170. package/dist/separator.mjs +3 -35
  171. package/dist/sheet.cjs +1 -1
  172. package/dist/sheet.mjs +59 -66
  173. package/dist/skeleton.cjs +1 -1
  174. package/dist/skeleton.mjs +13 -7
  175. package/dist/slider-CJJPQ0fH.mjs +366 -0
  176. package/dist/slider-DHccqrW2.js +1 -0
  177. package/dist/slider.cjs +1 -1
  178. package/dist/slider.mjs +3 -442
  179. package/dist/sonner.cjs +1 -1
  180. package/dist/sonner.mjs +21 -24
  181. package/dist/support-fab.cjs +1 -1
  182. package/dist/support-fab.mjs +81 -117
  183. package/dist/switch-BbcAUYjl.mjs +103 -0
  184. package/dist/switch-DZfRzgWs.js +1 -0
  185. package/dist/switch.cjs +1 -1
  186. package/dist/switch.mjs +3 -149
  187. package/dist/table-of-contents.cjs +1 -1
  188. package/dist/table-of-contents.mjs +159 -155
  189. package/dist/table.cjs +1 -1
  190. package/dist/table.mjs +58 -57
  191. package/dist/tabs-BEy0IIV0.js +1 -0
  192. package/dist/tabs-DqAKyl9T.mjs +136 -0
  193. package/dist/tabs.cjs +1 -1
  194. package/dist/tabs.mjs +3 -195
  195. package/dist/text.cjs +1 -1
  196. package/dist/text.mjs +41 -42
  197. package/dist/textarea.cjs +1 -1
  198. package/dist/textarea.mjs +12 -17
  199. package/dist/theme-provider.cjs +1 -1
  200. package/dist/theme-provider.mjs +15 -7
  201. package/dist/theme-toggle-DKQmD-FO.js +1 -0
  202. package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
  203. package/dist/theme-toggle.cjs +1 -1
  204. package/dist/theme-toggle.mjs +3 -8
  205. package/dist/toast-C84Cpidq.js +1 -0
  206. package/dist/toast-CQbUslcw.mjs +427 -0
  207. package/dist/toast.cjs +1 -1
  208. package/dist/toast.mjs +3 -494
  209. package/dist/toaster-BpcpNRz1.js +1 -0
  210. package/dist/toaster-i6giQYiq.mjs +126 -0
  211. package/dist/toaster.cjs +1 -1
  212. package/dist/toaster.mjs +3 -6
  213. package/dist/toggle-group-B2S7fkhA.mjs +155 -0
  214. package/dist/toggle-group-BNn6MNiJ.js +1 -0
  215. package/dist/toggle-group.cjs +1 -1
  216. package/dist/toggle-group.mjs +3 -170
  217. package/dist/toggle.cjs +1 -1
  218. package/dist/toggle.mjs +19 -14
  219. package/dist/tooltip-CElrNodA.js +1 -0
  220. package/dist/tooltip-oKfTBTbv.mjs +364 -0
  221. package/dist/tooltip.cjs +1 -1
  222. package/dist/tooltip.mjs +3 -342
  223. package/dist/utils-BxDanjP7.js +1 -0
  224. package/dist/utils-yc5uc46c.mjs +11 -0
  225. package/package.json +2 -2
  226. package/src/chart.tsx +7 -7
  227. package/src/setupTests.ts +5 -4
  228. package/dist/index-0ioNhtNM.mjs +0 -10
  229. package/dist/index-3j-XAIXT.mjs +0 -55
  230. package/dist/index-B2XtpfGY.js +0 -1
  231. package/dist/index-B39Lzq0v.js +0 -1
  232. package/dist/index-B7n6fy75.js +0 -1
  233. package/dist/index-B8dxbSWX.js +0 -41
  234. package/dist/index-BGIK9FQF.js +0 -1
  235. package/dist/index-BZPx6jYI.mjs +0 -8
  236. package/dist/index-BoNjHhm4.js +0 -1
  237. package/dist/index-BtZvtDmp.js +0 -1
  238. package/dist/index-Bv7qrYW6.mjs +0 -180
  239. package/dist/index-ByiPJW53.js +0 -5
  240. package/dist/index-C0dlIQIi.js +0 -1
  241. package/dist/index-C1qb0595.mjs +0 -27
  242. package/dist/index-C7HEunrh.mjs +0 -15
  243. package/dist/index-C8ni3LLa.js +0 -1
  244. package/dist/index-CCKe-Mpx.mjs +0 -6
  245. package/dist/index-CD6_IrA-.mjs +0 -10
  246. package/dist/index-CRyCZJLa.mjs +0 -677
  247. package/dist/index-CVx1AgNG.mjs +0 -615
  248. package/dist/index-Ce5TOFAK.js +0 -1
  249. package/dist/index-CeSLNJ60.mjs +0 -32
  250. package/dist/index-CefEQe_4.js +0 -1
  251. package/dist/index-Cj5hzyBi.js +0 -1
  252. package/dist/index-Cjj_rUPu.js +0 -1
  253. package/dist/index-Cl3G0jzM.js +0 -1
  254. package/dist/index-CwfE56Ep.mjs +0 -1545
  255. package/dist/index-CwyAfCwY.js +0 -1
  256. package/dist/index-CzY-WZXL.js +0 -1
  257. package/dist/index-D2HnlO3y.js +0 -1
  258. package/dist/index-DFdF7K7v.mjs +0 -50
  259. package/dist/index-DIsg7zU7.js +0 -1
  260. package/dist/index-DKN_vhyX.mjs +0 -32
  261. package/dist/index-DLcqcWxM.mjs +0 -29
  262. package/dist/index-DSxf1gN6.mjs +0 -118
  263. package/dist/index-DYxWvftI.js +0 -1
  264. package/dist/index-DaILh3TV.mjs +0 -32
  265. package/dist/index-Dfzl8TxY.mjs +0 -136
  266. package/dist/index-Dko2XdTk.js +0 -1
  267. package/dist/index-DlY82G31.mjs +0 -245
  268. package/dist/index-DnFcfnA9.mjs +0 -13
  269. package/dist/index-IZ2gq03c.mjs +0 -68
  270. package/dist/index-K9FzbxYw.mjs +0 -93
  271. package/dist/index-Le8p9oP4.mjs +0 -60
  272. package/dist/index-MQ0c3ZX_.js +0 -1
  273. package/dist/index-_XxjJPRD.js +0 -1
  274. package/dist/index-_wdrnYim.js +0 -1
  275. package/dist/index-jv3B4mTd.js +0 -1
  276. package/dist/index-kaM0u2Q1.js +0 -1
  277. package/dist/index-p6xVFRb4.mjs +0 -52
  278. package/dist/index-rKs9bXHr.mjs +0 -6
  279. package/dist/index-vuPgkS0V.mjs +0 -70
  280. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  281. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  282. package/dist/theme-toggle-DXQGNfCe.js +0 -1
  283. package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
  284. package/dist/toaster-C_S9hnXa.js +0 -1
  285. package/dist/toaster-k5DnQSsh.mjs +0 -118
  286. package/dist/utils-DY6fhrgS.mjs +0 -12
  287. package/dist/utils-cdbZV8DZ.js +0 -1
@@ -0,0 +1 @@
1
+ const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-CsEsK2jW.js`),n=require(`./dist-CscAxhT8.js`);let r=require(`react`);r=e.i(r,1);function i(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}var a=e=>{let{present:n,children:i}=e,a=o(n),s=typeof i==`function`?i({present:a.isPresent}):r.Children.only(i),l=t.n(a.ref,c(s));return typeof i==`function`||a.isPresent?r.cloneElement(s,{ref:l}):null};a.displayName=`Presence`;function o(e){let[t,a]=r.useState(),o=r.useRef(null),c=r.useRef(e),l=r.useRef(`none`),[u,d]=i(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return r.useEffect(()=>{let e=s(o.current);l.current=u===`mounted`?e:`none`},[u]),n.t(()=>{let t=o.current,n=c.current;if(n!==e){let r=l.current,i=s(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),c.current=e}},[e,d]),n.t(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=r=>{let i=s(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d(`ANIMATION_END`),!c.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(l.current=s(o.current))};return t.addEventListener(`animationstart`,i),t.addEventListener(`animationcancel`,r),t.addEventListener(`animationend`,r),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,i),t.removeEventListener(`animationcancel`,r),t.removeEventListener(`animationend`,r)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:r.useCallback(e=>{o.current=e?getComputedStyle(e):null,a(e)},[])}}function s(e){return e?.animationName||`none`}function c(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
@@ -0,0 +1,112 @@
1
+ import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
2
+ import { t } from "./dist-BC_VB6JL.mjs";
3
+ import * as n from "react";
4
+ import * as r from "react-dom";
5
+ //#region ../../node_modules/.bun/@radix-ui+react-slot@1.2.3+7adf8d6cb8833b18/node_modules/@radix-ui/react-slot/dist/index.mjs
6
+ var i = e();
7
+ /* @__NO_SIDE_EFFECTS__ */
8
+ function a(e) {
9
+ let t = /* @__PURE__ */ o(e), r = n.forwardRef((e, r) => {
10
+ let { children: a, ...o } = e, s = n.Children.toArray(a), c = s.find(l);
11
+ if (c) {
12
+ let e = c.props.children, a = s.map((t) => t === c ? n.Children.count(e) > 1 ? n.Children.only(null) : n.isValidElement(e) ? e.props.children : null : t);
13
+ return /* @__PURE__ */ (0, i.jsx)(t, {
14
+ ...o,
15
+ ref: r,
16
+ children: n.isValidElement(e) ? n.cloneElement(e, void 0, a) : null
17
+ });
18
+ }
19
+ return /* @__PURE__ */ (0, i.jsx)(t, {
20
+ ...o,
21
+ ref: r,
22
+ children: a
23
+ });
24
+ });
25
+ return r.displayName = `${e}.Slot`, r;
26
+ }
27
+ /* @__NO_SIDE_EFFECTS__ */
28
+ function o(e) {
29
+ let r = n.forwardRef((e, r) => {
30
+ let { children: i, ...a } = e;
31
+ if (n.isValidElement(i)) {
32
+ let e = d(i), o = u(a, i.props);
33
+ return i.type !== n.Fragment && (o.ref = r ? t(r, e) : e), n.cloneElement(i, o);
34
+ }
35
+ return n.Children.count(i) > 1 ? n.Children.only(null) : null;
36
+ });
37
+ return r.displayName = `${e}.SlotClone`, r;
38
+ }
39
+ var s = Symbol("radix.slottable");
40
+ /* @__NO_SIDE_EFFECTS__ */
41
+ function c(e) {
42
+ let t = ({ children: e }) => /* @__PURE__ */ (0, i.jsx)(i.Fragment, { children: e });
43
+ return t.displayName = `${e}.Slottable`, t.__radixId = s, t;
44
+ }
45
+ function l(e) {
46
+ return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === s;
47
+ }
48
+ function u(e, t) {
49
+ let n = { ...t };
50
+ for (let r in t) {
51
+ let i = e[r], a = t[r];
52
+ /^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
53
+ let t = a(...e);
54
+ return i(...e), t;
55
+ } : i && (n[r] = i) : r === "style" ? n[r] = {
56
+ ...i,
57
+ ...a
58
+ } : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
59
+ }
60
+ return {
61
+ ...e,
62
+ ...n
63
+ };
64
+ }
65
+ function d(e) {
66
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
67
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
68
+ }
69
+ typeof window < "u" && window.document && window.document.createElement;
70
+ function f(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
71
+ return function(r) {
72
+ if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
73
+ };
74
+ }
75
+ //#endregion
76
+ //#region ../../node_modules/.bun/@radix-ui+react-primitive@2.1.3+2d3f272c3a65784a/node_modules/@radix-ui/react-primitive/dist/index.mjs
77
+ var p = [
78
+ "a",
79
+ "button",
80
+ "div",
81
+ "form",
82
+ "h2",
83
+ "h3",
84
+ "img",
85
+ "input",
86
+ "label",
87
+ "li",
88
+ "nav",
89
+ "ol",
90
+ "p",
91
+ "select",
92
+ "span",
93
+ "svg",
94
+ "ul"
95
+ ].reduce((e, t) => {
96
+ let r = /* @__PURE__ */ a(`Primitive.${t}`), o = n.forwardRef((e, n) => {
97
+ let { asChild: a, ...o } = e, s = a ? r : t;
98
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0, i.jsx)(s, {
99
+ ...o,
100
+ ref: n
101
+ });
102
+ });
103
+ return o.displayName = `Primitive.${t}`, {
104
+ ...e,
105
+ [t]: o
106
+ };
107
+ }, {});
108
+ function m(e, t) {
109
+ e && r.flushSync(() => e.dispatchEvent(t));
110
+ }
111
+ //#endregion
112
+ export { c as a, a as i, m as n, f as r, p as t };
@@ -0,0 +1 @@
1
+ const e=require(`./jsx-runtime-CN3qjQQx.js`);let t=require(`react`);t=e.i(t,1);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,66 @@
1
+ import { n as e } from "./dist-BC_VB6JL.mjs";
2
+ import { t } from "./dist-BmjFh8i_.mjs";
3
+ import * as n from "react";
4
+ //#region ../../node_modules/.bun/@radix-ui+react-presence@1.1.5+2d3f272c3a65784a/node_modules/@radix-ui/react-presence/dist/index.mjs
5
+ function r(e, t) {
6
+ return n.useReducer((e, n) => t[e][n] ?? e, e);
7
+ }
8
+ var i = (t) => {
9
+ let { present: r, children: i } = t, o = a(r), c = typeof i == "function" ? i({ present: o.isPresent }) : n.Children.only(i), l = e(o.ref, s(c));
10
+ return typeof i == "function" || o.isPresent ? n.cloneElement(c, { ref: l }) : null;
11
+ };
12
+ i.displayName = "Presence";
13
+ function a(e) {
14
+ let [i, a] = n.useState(), s = n.useRef(null), c = n.useRef(e), l = n.useRef("none"), [u, d] = r(e ? "mounted" : "unmounted", {
15
+ mounted: {
16
+ UNMOUNT: "unmounted",
17
+ ANIMATION_OUT: "unmountSuspended"
18
+ },
19
+ unmountSuspended: {
20
+ MOUNT: "mounted",
21
+ ANIMATION_END: "unmounted"
22
+ },
23
+ unmounted: { MOUNT: "mounted" }
24
+ });
25
+ return n.useEffect(() => {
26
+ let e = o(s.current);
27
+ l.current = u === "mounted" ? e : "none";
28
+ }, [u]), t(() => {
29
+ let t = s.current, n = c.current;
30
+ if (n !== e) {
31
+ let r = l.current, i = o(t);
32
+ e ? d("MOUNT") : i === "none" || t?.display === "none" ? d("UNMOUNT") : d(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
33
+ }
34
+ }, [e, d]), t(() => {
35
+ if (i) {
36
+ let e, t = i.ownerDocument.defaultView ?? window, n = (n) => {
37
+ let r = o(s.current).includes(CSS.escape(n.animationName));
38
+ if (n.target === i && r && (d("ANIMATION_END"), !c.current)) {
39
+ let n = i.style.animationFillMode;
40
+ i.style.animationFillMode = "forwards", e = t.setTimeout(() => {
41
+ i.style.animationFillMode === "forwards" && (i.style.animationFillMode = n);
42
+ });
43
+ }
44
+ }, r = (e) => {
45
+ e.target === i && (l.current = o(s.current));
46
+ };
47
+ return i.addEventListener("animationstart", r), i.addEventListener("animationcancel", n), i.addEventListener("animationend", n), () => {
48
+ t.clearTimeout(e), i.removeEventListener("animationstart", r), i.removeEventListener("animationcancel", n), i.removeEventListener("animationend", n);
49
+ };
50
+ } else d("ANIMATION_END");
51
+ }, [i, d]), {
52
+ isPresent: ["mounted", "unmountSuspended"].includes(u),
53
+ ref: n.useCallback((e) => {
54
+ s.current = e ? getComputedStyle(e) : null, a(e);
55
+ }, [])
56
+ };
57
+ }
58
+ function o(e) {
59
+ return e?.animationName || "none";
60
+ }
61
+ function s(e) {
62
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
63
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
64
+ }
65
+ //#endregion
66
+ export { i as t };
@@ -0,0 +1 @@
1
+ const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-CmBtqW5f.js`);let n=require(`react`);n=e.i(n,1);let r=require(`react-dom`);r=e.i(r,1);var i=e.t(),a=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,r)=>{let a=t.n(`Primitive.${r}`),o=n.forwardRef((e,t)=>{let{asChild:n,...o}=e,s=n?a:r;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,i.jsx)(s,{...o,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
@@ -0,0 +1,152 @@
1
+ import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
2
+ import { n as t } from "./dist-Cvwtowos.mjs";
3
+ import { n } from "./dist-BC_VB6JL.mjs";
4
+ import { r, t as i } from "./dist-bDoR0CBU.mjs";
5
+ import { t as a } from "./dist-BrCTkQXt.mjs";
6
+ import { t as o } from "./dist-VI9bl_Wk.mjs";
7
+ import { t as s } from "./dist-DikyKBU3.mjs";
8
+ import { t as c } from "./dist-4A0ut6a8.mjs";
9
+ import { t as l } from "./dist-ALQAoSGx.mjs";
10
+ import * as u from "react";
11
+ //#region ../../node_modules/.bun/@radix-ui+react-roving-focus@1.1.11+2d3f272c3a65784a/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
12
+ var d = e(), f = "rovingFocusGroup.onEntryFocus", p = {
13
+ bubbles: !1,
14
+ cancelable: !0
15
+ }, m = "RovingFocusGroup", [h, g, _] = a(m), [v, y] = t(m, [_]), [b, x] = v(m), S = u.forwardRef((e, t) => /* @__PURE__ */ (0, d.jsx)(h.Provider, {
16
+ scope: e.__scopeRovingFocusGroup,
17
+ children: /* @__PURE__ */ (0, d.jsx)(h.Slot, {
18
+ scope: e.__scopeRovingFocusGroup,
19
+ children: /* @__PURE__ */ (0, d.jsx)(C, {
20
+ ...e,
21
+ ref: t
22
+ })
23
+ })
24
+ }));
25
+ S.displayName = m;
26
+ var C = u.forwardRef((e, t) => {
27
+ let { __scopeRovingFocusGroup: a, orientation: s, loop: h = !1, dir: _, currentTabStopId: v, defaultCurrentTabStopId: y, onCurrentTabStopIdChange: x, onEntryFocus: S, preventScrollOnEntryFocus: C = !1, ...w } = e, T = u.useRef(null), E = n(t, T), D = c(_), [O, A] = o({
28
+ prop: v,
29
+ defaultProp: y ?? null,
30
+ onChange: x,
31
+ caller: m
32
+ }), [j, M] = u.useState(!1), N = l(S), P = g(a), F = u.useRef(!1), [I, L] = u.useState(0);
33
+ return u.useEffect(() => {
34
+ let e = T.current;
35
+ if (e) return e.addEventListener(f, N), () => e.removeEventListener(f, N);
36
+ }, [N]), /* @__PURE__ */ (0, d.jsx)(b, {
37
+ scope: a,
38
+ orientation: s,
39
+ dir: D,
40
+ loop: h,
41
+ currentTabStopId: O,
42
+ onItemFocus: u.useCallback((e) => A(e), [A]),
43
+ onItemShiftTab: u.useCallback(() => M(!0), []),
44
+ onFocusableItemAdd: u.useCallback(() => L((e) => e + 1), []),
45
+ onFocusableItemRemove: u.useCallback(() => L((e) => e - 1), []),
46
+ children: /* @__PURE__ */ (0, d.jsx)(i.div, {
47
+ tabIndex: j || I === 0 ? -1 : 0,
48
+ "data-orientation": s,
49
+ ...w,
50
+ ref: E,
51
+ style: {
52
+ outline: "none",
53
+ ...e.style
54
+ },
55
+ onMouseDown: r(e.onMouseDown, () => {
56
+ F.current = !0;
57
+ }),
58
+ onFocus: r(e.onFocus, (e) => {
59
+ let t = !F.current;
60
+ if (e.target === e.currentTarget && t && !j) {
61
+ let t = new CustomEvent(f, p);
62
+ if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
63
+ let e = P().filter((e) => e.focusable);
64
+ k([
65
+ e.find((e) => e.active),
66
+ e.find((e) => e.id === O),
67
+ ...e
68
+ ].filter(Boolean).map((e) => e.ref.current), C);
69
+ }
70
+ }
71
+ F.current = !1;
72
+ }),
73
+ onBlur: r(e.onBlur, () => M(!1))
74
+ })
75
+ });
76
+ }), w = "RovingFocusGroupItem", T = u.forwardRef((e, t) => {
77
+ let { __scopeRovingFocusGroup: n, focusable: a = !0, active: o = !1, tabStopId: c, children: l, ...f } = e, p = s(), m = c || p, _ = x(w, n), v = _.currentTabStopId === m, y = g(n), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: C } = _;
78
+ return u.useEffect(() => {
79
+ if (a) return b(), () => S();
80
+ }, [
81
+ a,
82
+ b,
83
+ S
84
+ ]), /* @__PURE__ */ (0, d.jsx)(h.ItemSlot, {
85
+ scope: n,
86
+ id: m,
87
+ focusable: a,
88
+ active: o,
89
+ children: /* @__PURE__ */ (0, d.jsx)(i.span, {
90
+ tabIndex: v ? 0 : -1,
91
+ "data-orientation": _.orientation,
92
+ ...f,
93
+ ref: t,
94
+ onMouseDown: r(e.onMouseDown, (e) => {
95
+ a ? _.onItemFocus(m) : e.preventDefault();
96
+ }),
97
+ onFocus: r(e.onFocus, () => _.onItemFocus(m)),
98
+ onKeyDown: r(e.onKeyDown, (e) => {
99
+ if (e.key === "Tab" && e.shiftKey) {
100
+ _.onItemShiftTab();
101
+ return;
102
+ }
103
+ if (e.target !== e.currentTarget) return;
104
+ let t = O(e, _.orientation, _.dir);
105
+ if (t !== void 0) {
106
+ if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
107
+ e.preventDefault();
108
+ let n = y().filter((e) => e.focusable).map((e) => e.ref.current);
109
+ if (t === "last") n.reverse();
110
+ else if (t === "prev" || t === "next") {
111
+ t === "prev" && n.reverse();
112
+ let r = n.indexOf(e.currentTarget);
113
+ n = _.loop ? A(n, r + 1) : n.slice(r + 1);
114
+ }
115
+ setTimeout(() => k(n));
116
+ }
117
+ }),
118
+ children: typeof l == "function" ? l({
119
+ isCurrentTabStop: v,
120
+ hasTabStop: C != null
121
+ }) : l
122
+ })
123
+ });
124
+ });
125
+ T.displayName = w;
126
+ var E = {
127
+ ArrowLeft: "prev",
128
+ ArrowUp: "prev",
129
+ ArrowRight: "next",
130
+ ArrowDown: "next",
131
+ PageUp: "first",
132
+ Home: "first",
133
+ PageDown: "last",
134
+ End: "last"
135
+ };
136
+ function D(e, t) {
137
+ return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
138
+ }
139
+ function O(e, t, n) {
140
+ let r = D(e.key, n);
141
+ if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return E[r];
142
+ }
143
+ function k(e, t = !1) {
144
+ let n = document.activeElement;
145
+ for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
146
+ }
147
+ function A(e, t) {
148
+ return e.map((n, r) => e[(t + r) % e.length]);
149
+ }
150
+ var j = S, M = T;
151
+ //#endregion
152
+ export { j as n, y as r, M as t };
package/dist/drawer.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.js"),p=require("react"),a=require("vaul"),o=require("./utils-cdbZV8DZ.js");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=f(p),c=({shouldScaleBackground:e=!0,...r})=>s.jsxRuntimeExports.jsx(a.Drawer.Root,{shouldScaleBackground:e,...r});c.displayName="Drawer";const j=a.Drawer.Trigger,x=a.Drawer.Portal,g=a.Drawer.Close,l=i.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx(a.Drawer.Overlay,{ref:t,className:o.cn("fixed inset-0 z-50 bg-black/80",e),...r}));l.displayName=a.Drawer.Overlay?.displayName||"DrawerOverlay";const D=i.forwardRef(({className:e,children:r,...t},n)=>s.jsxRuntimeExports.jsxs(x,{children:[s.jsxRuntimeExports.jsx(l,{}),s.jsxRuntimeExports.jsxs(a.Drawer.Content,{ref:n,className:o.cn("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",e),...t,children:[s.jsxRuntimeExports.jsx("div",{className:"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full"}),r]})]}));D.displayName="DrawerContent";const w=({className:e,...r})=>s.jsxRuntimeExports.jsx("div",{className:o.cn("grid gap-1.5 p-4 text-center sm:text-left",e),...r});w.displayName="DrawerHeader";const d=({className:e,...r})=>s.jsxRuntimeExports.jsx("div",{className:o.cn("mt-auto flex flex-col gap-2 p-4",e),...r});d.displayName="DrawerFooter";const m=i.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx(a.Drawer.Title,{ref:t,className:o.cn("text-lg leading-none font-semibold tracking-tight",e),...r}));m.displayName=a.Drawer.Title?.displayName||"DrawerTitle";const u=i.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx(a.Drawer.Description,{ref:t,className:o.cn("text-muted-foreground text-sm",e),...r}));u.displayName=a.Drawer.Description?.displayName||"DrawerDescription";exports.Drawer=c;exports.DrawerClose=g;exports.DrawerContent=D;exports.DrawerDescription=u;exports.DrawerFooter=d;exports.DrawerHeader=w;exports.DrawerOverlay=l;exports.DrawerPortal=x;exports.DrawerTitle=m;exports.DrawerTrigger=j;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`);let n=require(`react`);n=e.i(n);let r=require(`vaul`);var i=e.t(),a=({shouldScaleBackground:e=!0,...t})=>(0,i.jsx)(r.Drawer.Root,{shouldScaleBackground:e,...t});a.displayName=`Drawer`;var o=r.Drawer.Trigger,s=r.Drawer.Portal,c=r.Drawer.Close,l=n.forwardRef(({className:e,...n},a)=>(0,i.jsx)(r.Drawer.Overlay,{ref:a,className:t.t(`fixed inset-0 z-50 bg-black/80`,e),...n}));l.displayName=r.Drawer.Overlay?.displayName||`DrawerOverlay`;var u=n.forwardRef(({className:e,children:n,...a},o)=>(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsxs)(r.Drawer.Content,{ref:o,className:t.t(`bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border`,e),...a,children:[(0,i.jsx)(`div`,{className:`bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full`}),n]})]}));u.displayName=`DrawerContent`;var d=({className:e,...n})=>(0,i.jsx)(`div`,{className:t.t(`grid gap-1.5 p-4 text-center sm:text-left`,e),...n});d.displayName=`DrawerHeader`;var f=({className:e,...n})=>(0,i.jsx)(`div`,{className:t.t(`mt-auto flex flex-col gap-2 p-4`,e),...n});f.displayName=`DrawerFooter`;var p=n.forwardRef(({className:e,...n},a)=>(0,i.jsx)(r.Drawer.Title,{ref:a,className:t.t(`text-lg leading-none font-semibold tracking-tight`,e),...n}));p.displayName=r.Drawer.Title?.displayName||`DrawerTitle`;var m=n.forwardRef(({className:e,...n},a)=>(0,i.jsx)(r.Drawer.Description,{ref:a,className:t.t(`text-muted-foreground text-sm`,e),...n}));m.displayName=r.Drawer.Description?.displayName||`DrawerDescription`,exports.Drawer=a,exports.DrawerClose=c,exports.DrawerContent=u,exports.DrawerDescription=m,exports.DrawerFooter=f,exports.DrawerHeader=d,exports.DrawerOverlay=l,exports.DrawerPortal=s,exports.DrawerTitle=p,exports.DrawerTrigger=o;
package/dist/drawer.mjs CHANGED
@@ -1,55 +1,49 @@
1
1
  "use client";
2
- import { j as t } from "./jsx-runtime-tc70JA_2.mjs";
3
- import * as l from "react";
4
- import { Drawer as a } from "vaul";
5
- import { c as o } from "./utils-DY6fhrgS.mjs";
6
- const m = ({ shouldScaleBackground: e = !0, ...r }) => /* @__PURE__ */ t.jsx(a.Root, { shouldScaleBackground: e, ...r });
7
- m.displayName = "Drawer";
8
- const y = a.Trigger, d = a.Portal, u = a.Close, i = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Overlay, { ref: s, className: o("fixed inset-0 z-50 bg-black/80", e), ...r }));
9
- i.displayName = a.Overlay?.displayName || "DrawerOverlay";
10
- const c = l.forwardRef(({ className: e, children: r, ...s }, n) => /* @__PURE__ */ t.jsxs(d, { children: [
11
- /* @__PURE__ */ t.jsx(i, {}),
12
- /* @__PURE__ */ t.jsxs(
13
- a.Content,
14
- {
15
- ref: n,
16
- className: o(
17
- "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
18
- e
19
- ),
20
- ...s,
21
- children: [
22
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
23
- r
24
- ]
25
- }
26
- )
27
- ] }));
28
- c.displayName = "DrawerContent";
29
- const x = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("grid gap-1.5 p-4 text-center sm:text-left", e), ...r });
30
- x.displayName = "DrawerHeader";
31
- const p = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("mt-auto flex flex-col gap-2 p-4", e), ...r });
32
- p.displayName = "DrawerFooter";
33
- const w = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(
34
- a.Title,
35
- {
36
- ref: s,
37
- className: o("text-lg leading-none font-semibold tracking-tight", e),
38
- ...r
39
- }
40
- ));
41
- w.displayName = a.Title?.displayName || "DrawerTitle";
42
- const D = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Description, { ref: s, className: o("text-muted-foreground text-sm", e), ...r }));
43
- D.displayName = a.Description?.displayName || "DrawerDescription";
44
- export {
45
- m as Drawer,
46
- u as DrawerClose,
47
- c as DrawerContent,
48
- D as DrawerDescription,
49
- p as DrawerFooter,
50
- x as DrawerHeader,
51
- i as DrawerOverlay,
52
- d as DrawerPortal,
53
- w as DrawerTitle,
54
- y as DrawerTrigger
55
- };
2
+ "use client";
3
+ import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
4
+ import { t } from "./utils-yc5uc46c.mjs";
5
+ import * as n from "react";
6
+ import { Drawer as r } from "vaul";
7
+ //#region src/drawer.tsx
8
+ var i = e(), a = ({ shouldScaleBackground: e = !0, ...t }) => /* @__PURE__ */ (0, i.jsx)(r.Root, {
9
+ shouldScaleBackground: e,
10
+ ...t
11
+ });
12
+ a.displayName = "Drawer";
13
+ var o = r.Trigger, s = r.Portal, c = r.Close, l = n.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ (0, i.jsx)(r.Overlay, {
14
+ ref: a,
15
+ className: t("fixed inset-0 z-50 bg-black/80", e),
16
+ ...n
17
+ }));
18
+ l.displayName = r.Overlay?.displayName || "DrawerOverlay";
19
+ var u = n.forwardRef(({ className: e, children: n, ...a }, o) => /* @__PURE__ */ (0, i.jsxs)(s, { children: [/* @__PURE__ */ (0, i.jsx)(l, {}), /* @__PURE__ */ (0, i.jsxs)(r.Content, {
20
+ ref: o,
21
+ className: t("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border", e),
22
+ ...a,
23
+ children: [/* @__PURE__ */ (0, i.jsx)("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }), n]
24
+ })] }));
25
+ u.displayName = "DrawerContent";
26
+ var d = ({ className: e, ...n }) => /* @__PURE__ */ (0, i.jsx)("div", {
27
+ className: t("grid gap-1.5 p-4 text-center sm:text-left", e),
28
+ ...n
29
+ });
30
+ d.displayName = "DrawerHeader";
31
+ var f = ({ className: e, ...n }) => /* @__PURE__ */ (0, i.jsx)("div", {
32
+ className: t("mt-auto flex flex-col gap-2 p-4", e),
33
+ ...n
34
+ });
35
+ f.displayName = "DrawerFooter";
36
+ var p = n.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ (0, i.jsx)(r.Title, {
37
+ ref: a,
38
+ className: t("text-lg leading-none font-semibold tracking-tight", e),
39
+ ...n
40
+ }));
41
+ p.displayName = r.Title?.displayName || "DrawerTitle";
42
+ var m = n.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ (0, i.jsx)(r.Description, {
43
+ ref: a,
44
+ className: t("text-muted-foreground text-sm", e),
45
+ ...n
46
+ }));
47
+ m.displayName = r.Description?.displayName || "DrawerDescription";
48
+ //#endregion
49
+ export { a as Drawer, c as DrawerClose, u as DrawerContent, m as DrawerDescription, f as DrawerFooter, d as DrawerHeader, l as DrawerOverlay, s as DrawerPortal, p as DrawerTitle, o as DrawerTrigger };