@gv-tech/ui-web 2.29.1 → 2.29.2

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 (330) hide show
  1. package/dist/accordion-Bd0-CZQn.js +1 -0
  2. package/dist/{accordion-D5QXSsCK.mjs → accordion-Cf6DNbLH.mjs} +47 -51
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.mjs +1 -2
  5. package/dist/{alert-dialog-B-a0Wa1M.mjs → alert-dialog-BxFH0Lwn.mjs} +43 -45
  6. package/dist/alert-dialog-C6vNmGBL.js +1 -0
  7. package/dist/alert-dialog.cjs +1 -1
  8. package/dist/alert-dialog.mjs +1 -2
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +2 -3
  11. package/dist/{aspect-ratio-s7Ji1MSr.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
  12. package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
  13. package/dist/aspect-ratio.cjs +1 -1
  14. package/dist/aspect-ratio.mjs +1 -2
  15. package/dist/attachment.cjs +1 -1
  16. package/dist/attachment.mjs +3 -4
  17. package/dist/{avatar-d8Di248f.mjs → avatar-B5PWwGhY.mjs} +50 -52
  18. package/dist/avatar-CFhYRM52.js +1 -0
  19. package/dist/avatar.cjs +1 -1
  20. package/dist/avatar.mjs +1 -2
  21. package/dist/badge.cjs +1 -1
  22. package/dist/badge.mjs +5 -6
  23. package/dist/breadcrumb.cjs +1 -1
  24. package/dist/breadcrumb.mjs +3 -4
  25. package/dist/bubble.cjs +1 -1
  26. package/dist/bubble.mjs +3 -4
  27. package/dist/button-group.cjs +1 -1
  28. package/dist/button-group.mjs +4 -5
  29. package/dist/button.cjs +1 -1
  30. package/dist/button.mjs +3 -4
  31. package/dist/calendar-D5qgt2o2.js +1 -0
  32. package/dist/{calendar-UW8h9dfh.mjs → calendar-DIqXNjOR.mjs} +687 -840
  33. package/dist/calendar.cjs +1 -1
  34. package/dist/calendar.mjs +1 -2
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.mjs +2 -3
  37. package/dist/carousel-D-xEqRCX.js +1 -0
  38. package/dist/{carousel-DG9xGJns.mjs → carousel-DPjWmM_A.mjs} +13 -15
  39. package/dist/carousel.cjs +1 -1
  40. package/dist/carousel.mjs +1 -2
  41. package/dist/chart.cjs +2 -2
  42. package/dist/chart.mjs +14 -15
  43. package/dist/{checkbox-Dq8VHKDH.mjs → checkbox-DEPm1BBc.mjs} +36 -38
  44. package/dist/checkbox-DI9Hn_e_.js +1 -0
  45. package/dist/checkbox.cjs +1 -1
  46. package/dist/checkbox.mjs +1 -2
  47. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
  48. package/dist/{chunk-HBS6WEDP-aK8IuEX9.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
  49. package/dist/collapsible.cjs +1 -1
  50. package/dist/collapsible.mjs +2 -3
  51. package/dist/{combobox-b4OmCNw1.mjs → combobox-C4y8AbZX.mjs} +348 -591
  52. package/dist/combobox-boXp-mix.js +3 -0
  53. package/dist/combobox.cjs +1 -1
  54. package/dist/combobox.mjs +1 -2
  55. package/dist/command-BnW6UIVk.js +1 -0
  56. package/dist/{command-5hobOyGG.mjs → command-Cbsp7PBx.mjs} +121 -124
  57. package/dist/command.cjs +1 -1
  58. package/dist/command.mjs +1 -2
  59. package/dist/context-menu-CwsdFpx1.js +1 -0
  60. package/dist/{context-menu-DzzU-_v8.mjs → context-menu-FNgV55ZV.mjs} +117 -119
  61. package/dist/context-menu.cjs +1 -1
  62. package/dist/context-menu.mjs +1 -2
  63. package/dist/dialog.cjs +1 -1
  64. package/dist/dialog.mjs +3 -4
  65. package/dist/direction.cjs +1 -1
  66. package/dist/direction.mjs +2 -3
  67. package/dist/{dist-Bb5W_J2F.mjs → dist-7YyzJonC.mjs} +4 -4
  68. package/dist/{dist-BPL7gUpg.mjs → dist-AlmToDtO.mjs} +2 -3
  69. package/dist/{dist-BB78QQyQ.mjs → dist-B76UOZbx.mjs} +1 -2
  70. package/dist/{dist-BEbV0Hal.mjs → dist-B7Ph9-T6.mjs} +2 -3
  71. package/dist/dist-B7jnFMko.js +1 -0
  72. package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
  73. package/dist/dist-BQkDLAY7.js +1 -0
  74. package/dist/dist-Bal96K8t.js +1 -0
  75. package/dist/dist-Blgp9lfa.js +1 -0
  76. package/dist/{dist-CpKLY_uZ.mjs → dist-BnlI08Je.mjs} +4 -4
  77. package/dist/{dist-BexAB6yo.mjs → dist-Bu-uFV1C.mjs} +33 -34
  78. package/dist/{dist-OqDzLHTa.mjs → dist-C2BHd5i1.mjs} +31 -31
  79. package/dist/{dist-Dq-h6VAy.mjs → dist-C516Vwxy.mjs} +4 -6
  80. package/dist/dist-CBlqVBTk.js +1 -0
  81. package/dist/dist-CDcZ8WMF.js +1 -0
  82. package/dist/{dist-E8ieJTBC.mjs → dist-CDksSmTD.mjs} +5 -6
  83. package/dist/dist-CF-qVmmV.js +1 -0
  84. package/dist/dist-CIgGRTmJ.js +1 -0
  85. package/dist/dist-CJqVmdrU.js +1 -0
  86. package/dist/{dist-CPAF050o.mjs → dist-COqM3IM6.mjs} +3 -4
  87. package/dist/{dist-s7ibhASj.mjs → dist-CbWpCWog.mjs} +12 -13
  88. package/dist/{dist-DI1vapnL.mjs → dist-CcGLWbPa.mjs} +3 -4
  89. package/dist/{dist-Dt6m-kwU.mjs → dist-Cn4F8XlY.mjs} +50 -51
  90. package/dist/dist-CoTs6T03.js +1 -0
  91. package/dist/dist-Co_xSt6d.js +1 -0
  92. package/dist/{dist-UkWa-Arh.mjs → dist-Cu0GG-3j.mjs} +2 -3
  93. package/dist/{dist-Bvfb4y_L.mjs → dist-DKI-XYwI.mjs} +3 -5
  94. package/dist/{dist-DatgTWLz.mjs → dist-DQeXXRYL.mjs} +81 -82
  95. package/dist/dist-DW2ltK5-.js +1 -0
  96. package/dist/dist-DWcKY_sJ.js +1 -0
  97. package/dist/dist-DdAeWIwf.js +1 -0
  98. package/dist/dist-DhubV_gU.mjs +4 -0
  99. package/dist/dist-DmY7elIQ.js +1 -0
  100. package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
  101. package/dist/dist-DuQlxGyN.js +1 -0
  102. package/dist/dist-KFF7QKuL.js +1 -0
  103. package/dist/dist-RXrZgzkO.js +1 -0
  104. package/dist/dist-R_G5UQRm.js +1 -0
  105. package/dist/{dist-BbI6NHqR.mjs → dist-dwRwxUPt.mjs} +1 -2
  106. package/dist/dist-fzmUl3YX.mjs +553 -0
  107. package/dist/{dist-vu20fMUK.mjs → dist-hBsne-A2.mjs} +22 -23
  108. package/dist/{dist-B057I8ju.mjs → dist-ljiGYyay.mjs} +2 -3
  109. package/dist/dist-pqMcQ1Nk.js +1 -0
  110. package/dist/dist-zmnQp5Xf.js +1 -0
  111. package/dist/drawer.cjs +1 -1
  112. package/dist/drawer.mjs +2 -3
  113. package/dist/dropdown-menu-ChuqZeix.js +1 -0
  114. package/dist/{dropdown-menu-BqAhn64y.mjs → dropdown-menu-DU7KNoXP.mjs} +75 -77
  115. package/dist/dropdown-menu.cjs +1 -1
  116. package/dist/dropdown-menu.mjs +1 -2
  117. package/dist/empty.cjs +1 -1
  118. package/dist/empty.mjs +2 -3
  119. package/dist/{es2015-DbsmTzuc.mjs → es2015-BooeZGhO.mjs} +94 -111
  120. package/dist/es2015-Dggv0vx3.js +41 -0
  121. package/dist/field.cjs +1 -1
  122. package/dist/field.mjs +4 -5
  123. package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
  124. package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
  125. package/dist/form.cjs +1 -1
  126. package/dist/form.mjs +19 -20
  127. package/dist/hooks/use-theme.d.ts +52 -52
  128. package/dist/hover-card-BeqCs_2R.js +1 -0
  129. package/dist/{hover-card-DMsxpR9G.mjs → hover-card-w8PmCyw2.mjs} +62 -64
  130. package/dist/hover-card.cjs +1 -1
  131. package/dist/hover-card.mjs +1 -2
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.mjs +66 -66
  134. package/dist/input-group.cjs +1 -1
  135. package/dist/input-group.mjs +2 -3
  136. package/dist/{input-otp-D49Y9VcH.mjs → input-otp-Bn_Uy1mR.mjs} +6 -17
  137. package/dist/input-otp-CTRB_0Xp.js +20 -0
  138. package/dist/input-otp.cjs +1 -1
  139. package/dist/input-otp.mjs +1 -2
  140. package/dist/input.cjs +1 -1
  141. package/dist/input.mjs +2 -3
  142. package/dist/item.cjs +1 -1
  143. package/dist/item.mjs +4 -5
  144. package/dist/kbd.cjs +1 -1
  145. package/dist/kbd.mjs +2 -3
  146. package/dist/{label-DsSICLPc.mjs → label-Da0kELfR.mjs} +4 -6
  147. package/dist/label-JMa1tFfC.js +1 -0
  148. package/dist/label.cjs +1 -1
  149. package/dist/label.mjs +1 -2
  150. package/dist/marker.cjs +1 -1
  151. package/dist/marker.mjs +3 -4
  152. package/dist/{menubar-DZqEj6S1.mjs → menubar-B7sRxpE4.mjs} +179 -181
  153. package/dist/menubar-Bd-QKMcw.js +1 -0
  154. package/dist/menubar.cjs +1 -1
  155. package/dist/menubar.mjs +1 -2
  156. package/dist/{message-scroller-CS4t7Ypn.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
  157. package/dist/message-scroller-BJb4Mh_I.js +1 -0
  158. package/dist/message-scroller.cjs +1 -1
  159. package/dist/message-scroller.mjs +1 -2
  160. package/dist/message.cjs +1 -1
  161. package/dist/message.mjs +2 -3
  162. package/dist/native-select.cjs +1 -1
  163. package/dist/native-select.mjs +2 -3
  164. package/dist/{navigation-menu-RO6thDOF.mjs → navigation-menu-B-RwfscB.mjs} +161 -159
  165. package/dist/navigation-menu-kPwxYZCR.js +1 -0
  166. package/dist/navigation-menu.cjs +1 -1
  167. package/dist/navigation-menu.mjs +1 -2
  168. package/dist/pagination.cjs +1 -1
  169. package/dist/pagination.mjs +2 -3
  170. package/dist/popover-Cq5cTNtC.js +1 -0
  171. package/dist/{popover-DSBkc70V.mjs → popover-T6Ra737i.mjs} +79 -81
  172. package/dist/popover.cjs +1 -1
  173. package/dist/popover.mjs +1 -2
  174. package/dist/{progress-CQ4nQ85t.mjs → progress-e9YzxvRo.mjs} +11 -13
  175. package/dist/progress-iUSEI7J9.js +6 -0
  176. package/dist/progress.cjs +1 -1
  177. package/dist/progress.mjs +1 -2
  178. package/dist/{questionnaire-CVED7G7R.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
  179. package/dist/questionnaire-CcymIPae.js +1 -0
  180. package/dist/questionnaire.cjs +1 -1
  181. package/dist/questionnaire.mjs +1 -2
  182. package/dist/{radio-group-TRiAhMZB.mjs → radio-group-BKpiDcIb.mjs} +58 -60
  183. package/dist/radio-group-DPEzCmxe.js +1 -0
  184. package/dist/radio-group.cjs +1 -1
  185. package/dist/radio-group.mjs +1 -2
  186. package/dist/resizable-ByF0NmN9.mjs +2153 -0
  187. package/dist/resizable-oL3v42zT.js +1 -0
  188. package/dist/resizable.cjs +1 -1
  189. package/dist/resizable.mjs +1 -2
  190. package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
  191. package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
  192. package/dist/{scroll-area-D6MiNHnJ.mjs → scroll-area-BzNeOQ6C.mjs} +109 -105
  193. package/dist/scroll-area-s4_ZJK59.js +1 -0
  194. package/dist/scroll-area.cjs +1 -1
  195. package/dist/scroll-area.mjs +1 -2
  196. package/dist/scroll-to-top.cjs +1 -1
  197. package/dist/scroll-to-top.mjs +6 -11
  198. package/dist/search.cjs +1 -1
  199. package/dist/search.mjs +12 -13
  200. package/dist/{select-BFJUmjvX.mjs → select-B_nRxX2Y.mjs} +280 -279
  201. package/dist/select-j5_dph9S.js +1 -0
  202. package/dist/select.cjs +1 -1
  203. package/dist/select.mjs +1 -2
  204. package/dist/separator-Bn-3XUSJ.js +1 -0
  205. package/dist/{separator-2kr96SyF.mjs → separator-CCcMNS78.mjs} +4 -6
  206. package/dist/separator.cjs +1 -1
  207. package/dist/separator.mjs +1 -2
  208. package/dist/sheet.cjs +1 -1
  209. package/dist/sheet.mjs +3 -4
  210. package/dist/{sidebar-DM9ee9wf.mjs → sidebar-C2ax_A0G.mjs} +47 -49
  211. package/dist/sidebar-Cnem2n5A.js +1 -0
  212. package/dist/sidebar.cjs +1 -1
  213. package/dist/sidebar.mjs +1 -2
  214. package/dist/skeleton.cjs +1 -1
  215. package/dist/skeleton.mjs +2 -3
  216. package/dist/{slider-CdTCoQu1.mjs → slider-B2PUTc7W.mjs} +103 -104
  217. package/dist/slider-wZuXwuib.js +1 -0
  218. package/dist/slider.cjs +1 -1
  219. package/dist/slider.mjs +1 -2
  220. package/dist/sonner.mjs +1 -2
  221. package/dist/spinner.cjs +1 -1
  222. package/dist/spinner.mjs +2 -3
  223. package/dist/support-fab.cjs +1 -1
  224. package/dist/support-fab.mjs +21 -22
  225. package/dist/switch-CD675xU7.js +1 -0
  226. package/dist/{switch-zUBdj7jK.mjs → switch-ikzIzrme.mjs} +29 -31
  227. package/dist/switch.cjs +1 -1
  228. package/dist/switch.mjs +1 -2
  229. package/dist/table-of-contents.cjs +1 -1
  230. package/dist/table-of-contents.mjs +5 -6
  231. package/dist/table.cjs +1 -1
  232. package/dist/table.mjs +2 -3
  233. package/dist/{tabs-DaE9pEbo.mjs → tabs-DCm5zOYB.mjs} +45 -47
  234. package/dist/tabs-fcahDQDp.js +1 -0
  235. package/dist/tabs.cjs +1 -1
  236. package/dist/tabs.mjs +1 -2
  237. package/dist/text.cjs +1 -1
  238. package/dist/text.mjs +14 -12
  239. package/dist/textarea.cjs +1 -1
  240. package/dist/textarea.mjs +2 -3
  241. package/dist/theme-provider.mjs +1 -2
  242. package/dist/{theme-toggle-DKh8WFLT.js → theme-toggle-BGTJsIA-.js} +1 -1
  243. package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-BSMwXb8o.mjs} +13 -15
  244. package/dist/theme-toggle.cjs +1 -1
  245. package/dist/theme-toggle.mjs +1 -2
  246. package/dist/toast-C31v9P1K.js +1 -0
  247. package/dist/{toast-D0Yb-K84.mjs → toast-vU5ISM03.mjs} +181 -181
  248. package/dist/toast.cjs +1 -1
  249. package/dist/toast.mjs +1 -2
  250. package/dist/toaster-CaJyOCyC.js +1 -0
  251. package/dist/{toaster-gT2b7mfE.mjs → toaster-D2BV6jez.mjs} +3 -5
  252. package/dist/toaster.cjs +1 -1
  253. package/dist/toaster.mjs +1 -2
  254. package/dist/toggle-CSZdCCwX.js +1 -0
  255. package/dist/{toggle-BAeKd2N0.mjs → toggle-Cv9YYwLI.mjs} +8 -9
  256. package/dist/toggle-group-RT8wyBwK.js +1 -0
  257. package/dist/{toggle-group-CEKhUozD.mjs → toggle-group-qvjasXS-.mjs} +44 -45
  258. package/dist/toggle-group.cjs +1 -1
  259. package/dist/toggle-group.mjs +1 -2
  260. package/dist/toggle.cjs +1 -1
  261. package/dist/toggle.mjs +1 -2
  262. package/dist/{tooltip-R_nK_Qh5.mjs → tooltip-7ERoN5mV.mjs} +97 -101
  263. package/dist/tooltip-CC9_spXT.js +1 -0
  264. package/dist/tooltip.cjs +1 -1
  265. package/dist/tooltip.mjs +1 -2
  266. package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
  267. package/package.json +3 -3
  268. package/dist/accordion-DjyDOX-h.js +0 -1
  269. package/dist/alert-dialog-DYQAhGBC.js +0 -1
  270. package/dist/aspect-ratio-C-KOOyGP.js +0 -1
  271. package/dist/avatar-4K3XjhP8.js +0 -1
  272. package/dist/calendar-DFj14O6r.js +0 -1
  273. package/dist/carousel-CNGpg5df.js +0 -1
  274. package/dist/checkbox-BCgbTAdU.js +0 -1
  275. package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
  276. package/dist/chunk-mLOUI7ql.js +0 -1
  277. package/dist/combobox-CpPIGtPJ.js +0 -4
  278. package/dist/command-Dbqnm9kI.js +0 -1
  279. package/dist/context-menu-DyTUismw.js +0 -1
  280. package/dist/dist-1zUKVGvf.js +0 -1
  281. package/dist/dist-BBvidwzC.js +0 -1
  282. package/dist/dist-BTUvBzOm.js +0 -1
  283. package/dist/dist-BU-TFzJf.js +0 -1
  284. package/dist/dist-BgXIqHHq.js +0 -1
  285. package/dist/dist-C8Pm6LRc.js +0 -1
  286. package/dist/dist-CGgemr2V.js +0 -1
  287. package/dist/dist-CUvxOuXM.mjs +0 -551
  288. package/dist/dist-C_iFkwIX.js +0 -1
  289. package/dist/dist-ClYM7l1t.js +0 -1
  290. package/dist/dist-D1qkELLT.js +0 -1
  291. package/dist/dist-D7-Fky36.js +0 -1
  292. package/dist/dist-DEpkkABT.js +0 -1
  293. package/dist/dist-DKXojpVG.js +0 -1
  294. package/dist/dist-DYUvPCPC.js +0 -1
  295. package/dist/dist-DoivLw3t.js +0 -1
  296. package/dist/dist-GazS1kfR.mjs +0 -5
  297. package/dist/dist-N97cIp0_.js +0 -1
  298. package/dist/dist-Qm9hFvM1.js +0 -1
  299. package/dist/dist-UnTrOmPV.js +0 -1
  300. package/dist/dist-YAADIsyo.js +0 -1
  301. package/dist/dist-Zs2sjYhL.js +0 -1
  302. package/dist/dist-hFLuJoMi.js +0 -1
  303. package/dist/dropdown-menu-BtKOr--r.js +0 -1
  304. package/dist/es2015-DbAsWDbs.js +0 -41
  305. package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
  306. package/dist/hover-card-DWXusgiI.js +0 -1
  307. package/dist/input-otp-u3obpt-Q.js +0 -20
  308. package/dist/label-Dacwh21G.js +0 -1
  309. package/dist/menubar-BYNeRuzx.js +0 -1
  310. package/dist/message-scroller-DqLu0YI6.js +0 -1
  311. package/dist/navigation-menu-B36G3O83.js +0 -1
  312. package/dist/popover-DUHbvKB8.js +0 -1
  313. package/dist/progress-B9z08UXf.js +0 -6
  314. package/dist/questionnaire-PWClWvST.js +0 -1
  315. package/dist/radio-group-Bd3WbH5I.js +0 -1
  316. package/dist/resizable-Cq60hEWB.js +0 -1
  317. package/dist/resizable-Qc8cVUKd.mjs +0 -2857
  318. package/dist/scroll-area-DFUdJeSZ.js +0 -1
  319. package/dist/select-iQFoKU1s.js +0 -1
  320. package/dist/separator-Bo49G2aj.js +0 -1
  321. package/dist/sidebar-C6O8hLkz.js +0 -1
  322. package/dist/slider-CagVxozY.js +0 -1
  323. package/dist/switch-CoeAC1Wk.js +0 -1
  324. package/dist/tabs-TMhXe20x.js +0 -1
  325. package/dist/toast-B0S3F09s.js +0 -1
  326. package/dist/toaster-CX9im8R_.js +0 -1
  327. package/dist/toggle-B0hXPsi7.js +0 -1
  328. package/dist/toggle-group-htyug3G7.js +0 -1
  329. package/dist/tooltip-BZazhXDZ.js +0 -1
  330. /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import { useState as t } from "react";
3
- //#region ../../node_modules/.bun/@radix-ui+react-focus-guards@1.2.0+c841d34b494ec30a/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
3
+ // ../../node_modules/.bun/@radix-ui+react-focus-guards@1.2.0+0ac650c021fb1b59/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
4
4
  var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
5
  value: t,
6
6
  configurable: !0
@@ -27,8 +27,7 @@ function c() {
27
27
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
28
28
  }
29
29
  r(c, "createFocusGuard");
30
- //#endregion
31
- //#region ../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
30
+ // ../../node_modules/.bun/tslib@2.9.1/node_modules/tslib/tslib.es6.mjs
32
31
  var l = function() {
33
32
  return l = Object.assign || function(e) {
34
33
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
@@ -45,16 +44,13 @@ function d(e, t, n) {
45
44
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
46
45
  return e.concat(a || Array.prototype.slice.call(t));
47
46
  }
48
- //#endregion
49
- //#region ../../node_modules/.bun/react-remove-scroll-bar@2.3.8+c841d34b494ec30a/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
47
+ // ../../node_modules/.bun/react-remove-scroll-bar@2.3.8+0ac650c021fb1b59/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
50
48
  var f = "right-scroll-bar-position", p = "width-before-scroll-bar", m = "with-scroll-bars-hidden", h = "--removed-body-scroll-bar-size";
51
- //#endregion
52
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/assignRef.js
49
+ // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/assignRef.js
53
50
  function g(e, t) {
54
51
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
55
52
  }
56
- //#endregion
57
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/useRef.js
53
+ // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/useRef.js
58
54
  function _(e, n) {
59
55
  var r = t(function() {
60
56
  return {
@@ -73,8 +69,7 @@ function _(e, n) {
73
69
  })[0];
74
70
  return r.callback = n, r.facade;
75
71
  }
76
- //#endregion
77
- //#region ../../node_modules/.bun/use-callback-ref@1.3.3+c841d34b494ec30a/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
72
+ // ../../node_modules/.bun/use-callback-ref@1.3.3+0ac650c021fb1b59/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
78
73
  var v = typeof window < "u" ? e.useLayoutEffect : e.useEffect, y = /* @__PURE__ */ new WeakMap();
79
74
  function ee(e, t) {
80
75
  var n = _(t || null, function(t) {
@@ -95,8 +90,7 @@ function ee(e, t) {
95
90
  y.set(n, e);
96
91
  }, [e]), n;
97
92
  }
98
- //#endregion
99
- //#region ../../node_modules/.bun/use-sidecar@1.1.3+c841d34b494ec30a/node_modules/use-sidecar/dist/es2015/medium.js
93
+ // ../../node_modules/.bun/use-sidecar@1.1.3+0ac650c021fb1b59/node_modules/use-sidecar/dist/es2015/medium.js
100
94
  function b(e) {
101
95
  return e;
102
96
  }
@@ -162,8 +156,7 @@ function S(e) {
162
156
  ssr: !1
163
157
  }, e), t;
164
158
  }
165
- //#endregion
166
- //#region ../../node_modules/.bun/use-sidecar@1.1.3+c841d34b494ec30a/node_modules/use-sidecar/dist/es2015/exports.js
159
+ // ../../node_modules/.bun/use-sidecar@1.1.3+0ac650c021fb1b59/node_modules/use-sidecar/dist/es2015/exports.js
167
160
  var C = function(t) {
168
161
  var n = t.sideCar, r = u(t, ["sideCar"]);
169
162
  if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
@@ -175,8 +168,7 @@ C.isSideCarExport = !0;
175
168
  function w(e, t) {
176
169
  return e.useMedium(t), C;
177
170
  }
178
- //#endregion
179
- //#region ../../node_modules/.bun/react-remove-scroll@2.7.2+c841d34b494ec30a/node_modules/react-remove-scroll/dist/es2015/medium.js
171
+ // ../../node_modules/.bun/react-remove-scroll@2.7.2+0ac650c021fb1b59/node_modules/react-remove-scroll/dist/es2015/medium.js
180
172
  var T = S(), E = function() {}, D = e.forwardRef(function(t, n) {
181
173
  var r = e.useRef(null), i = e.useState({
182
174
  onScrollCapture: E,
@@ -221,39 +213,36 @@ D.defaultProps = {
221
213
  fullWidth: p,
222
214
  zeroRight: f
223
215
  };
224
- //#endregion
225
- //#region ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
226
- var O, te = function() {
227
- if (O) return O;
216
+ // ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
217
+ var O = function() {
228
218
  if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
229
219
  };
230
- //#endregion
231
- //#region ../../node_modules/.bun/react-style-singleton@2.2.3+c841d34b494ec30a/node_modules/react-style-singleton/dist/es2015/singleton.js
232
- function ne() {
220
+ // ../../node_modules/.bun/react-style-singleton@2.2.3+0ac650c021fb1b59/node_modules/react-style-singleton/dist/es2015/singleton.js
221
+ function k() {
233
222
  if (!document) return null;
234
223
  var e = document.createElement("style");
235
224
  e.type = "text/css";
236
- var t = te();
225
+ var t = O();
237
226
  return t && e.setAttribute("nonce", t), e;
238
227
  }
239
- function re(e, t) {
228
+ function te(e, t) {
240
229
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
241
230
  }
242
- function ie(e) {
231
+ function ne(e) {
243
232
  (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
244
233
  }
245
- var ae = function() {
234
+ var re = function() {
246
235
  var e = 0, t = null;
247
236
  return {
248
237
  add: function(n) {
249
- e == 0 && (t = ne()) && (re(t, n), ie(t)), e++;
238
+ e == 0 && (t = k()) && (te(t, n), ne(t)), e++;
250
239
  },
251
240
  remove: function() {
252
241
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
253
242
  }
254
243
  };
255
- }, oe = function() {
256
- var t = ae();
244
+ }, ie = function() {
245
+ var t = re();
257
246
  return function(n, r) {
258
247
  e.useEffect(function() {
259
248
  return t.add(n), function() {
@@ -261,43 +250,43 @@ var ae = function() {
261
250
  };
262
251
  }, [n && r]);
263
252
  };
264
- }, k = function() {
265
- var e = oe();
253
+ }, A = function() {
254
+ var e = ie();
266
255
  return function(t) {
267
256
  var n = t.styles, r = t.dynamic;
268
257
  return e(n, r), null;
269
258
  };
270
- }, A = {
259
+ }, j = {
271
260
  left: 0,
272
261
  top: 0,
273
262
  right: 0,
274
263
  gap: 0
275
- }, j = function(e) {
264
+ }, M = function(e) {
276
265
  return parseInt(e || "", 10) || 0;
277
- }, se = function(e) {
266
+ }, ae = function(e) {
278
267
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
279
268
  return [
280
- j(n),
281
- j(r),
282
- j(i)
269
+ M(n),
270
+ M(r),
271
+ M(i)
283
272
  ];
284
- }, ce = function(e) {
285
- if (e === void 0 && (e = "margin"), typeof window > "u") return A;
286
- var t = se(e), n = document.documentElement.clientWidth, r = window.innerWidth;
273
+ }, N = function(e) {
274
+ if (e === void 0 && (e = "margin"), typeof window > "u") return j;
275
+ var t = ae(e), n = document.documentElement.clientWidth, r = window.innerWidth;
287
276
  return {
288
277
  left: t[0],
289
278
  top: t[1],
290
279
  right: t[2],
291
280
  gap: Math.max(0, r - n + t[2] - t[0])
292
281
  };
293
- }, le = k(), M = "data-scroll-locked", ue = function(e, t, n, r) {
282
+ }, oe = A(), P = "data-scroll-locked", se = function(e, t, n, r) {
294
283
  var i = e.left, a = e.top, o = e.right, s = e.gap;
295
284
  return n === void 0 && (n = "margin"), `
296
285
  .${m} {
297
286
  overflow: hidden ${r};
298
287
  padding-right: ${s}px ${r};
299
288
  }
300
- body[${M}] {
289
+ body[${P}] {
301
290
  overflow: hidden ${r};
302
291
  overscroll-behavior: contain;
303
292
  ${[
@@ -330,47 +319,47 @@ var ae = function() {
330
319
  margin-right: 0 ${r};
331
320
  }
332
321
 
333
- body[${M}] {
322
+ body[${P}] {
334
323
  ${h}: ${s}px;
335
324
  }
336
325
  `;
337
- }, N = function() {
326
+ }, F = function() {
338
327
  var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
339
328
  return isFinite(e) ? e : 0;
340
- }, de = function() {
329
+ }, ce = function() {
341
330
  e.useEffect(function() {
342
- return document.body.setAttribute(M, (N() + 1).toString()), function() {
343
- var e = N() - 1;
344
- e <= 0 ? document.body.removeAttribute(M) : document.body.setAttribute(M, e.toString());
331
+ return document.body.setAttribute(P, (F() + 1).toString()), function() {
332
+ var e = F() - 1;
333
+ e <= 0 ? document.body.removeAttribute(P) : document.body.setAttribute(P, e.toString());
345
334
  };
346
335
  }, []);
347
- }, fe = function(t) {
336
+ }, le = function(t) {
348
337
  var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
349
- de();
338
+ ce();
350
339
  var o = e.useMemo(function() {
351
- return ce(a);
340
+ return N(a);
352
341
  }, [a]);
353
- return e.createElement(le, { styles: ue(o, !n, a, r ? "" : "!important") });
354
- }, P = !1;
342
+ return e.createElement(oe, { styles: se(o, !n, a, r ? "" : "!important") });
343
+ }, I = !1;
355
344
  if (typeof window < "u") try {
356
- var F = Object.defineProperty({}, "passive", { get: function() {
357
- return P = !0, !0;
345
+ var L = Object.defineProperty({}, "passive", { get: function() {
346
+ return I = !0, !0;
358
347
  } });
359
- window.addEventListener("test", F, F), window.removeEventListener("test", F, F);
348
+ window.addEventListener("test", L, L), window.removeEventListener("test", L, L);
360
349
  } catch {
361
- P = !1;
350
+ I = !1;
362
351
  }
363
- var I = P ? { passive: !1 } : !1, pe = function(e) {
352
+ var R = I ? { passive: !1 } : !1, ue = function(e) {
364
353
  return e.tagName === "TEXTAREA";
365
- }, L = function(e, t) {
354
+ }, z = function(e, t) {
366
355
  if (!(e instanceof Element)) return !1;
367
356
  var n = window.getComputedStyle(e);
368
- return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !pe(e) && n[t] === "visible");
369
- }, R = function(e) {
370
- return L(e, "overflowY");
371
- }, z = function(e) {
372
- return L(e, "overflowX");
373
- }, B = function(e, t) {
357
+ return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !ue(e) && n[t] === "visible");
358
+ }, de = function(e) {
359
+ return z(e, "overflowY");
360
+ }, B = function(e) {
361
+ return z(e, "overflowX");
362
+ }, V = function(e, t) {
374
363
  var n = t.ownerDocument, r = t;
375
364
  do {
376
365
  if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), H(e, r)) {
@@ -380,26 +369,26 @@ var I = P ? { passive: !1 } : !1, pe = function(e) {
380
369
  r = r.parentNode;
381
370
  } while (r && r !== n.body);
382
371
  return !1;
383
- }, V = function(e) {
372
+ }, fe = function(e) {
384
373
  return [
385
374
  e.scrollTop,
386
375
  e.scrollHeight,
387
376
  e.clientHeight
388
377
  ];
389
- }, me = function(e) {
378
+ }, pe = function(e) {
390
379
  return [
391
380
  e.scrollLeft,
392
381
  e.scrollWidth,
393
382
  e.clientWidth
394
383
  ];
395
384
  }, H = function(e, t) {
396
- return e === "v" ? R(t) : z(t);
385
+ return e === "v" ? de(t) : B(t);
397
386
  }, U = function(e, t) {
398
- return e === "v" ? V(t) : me(t);
399
- }, he = function(e, t) {
387
+ return e === "v" ? fe(t) : pe(t);
388
+ }, me = function(e, t) {
400
389
  return e === "h" && t === "rtl" ? -1 : 1;
401
- }, ge = function(e, t, n, r, i) {
402
- var a = he(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
390
+ }, he = function(e, t, n, r, i) {
391
+ var a = me(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
403
392
  do {
404
393
  if (!s) break;
405
394
  var p = U(e, s), m = p[0], h = p[1] - p[2] - a * m;
@@ -414,16 +403,16 @@ var I = P ? { passive: !1 } : !1, pe = function(e) {
414
403
  return [e.deltaX, e.deltaY];
415
404
  }, K = function(e) {
416
405
  return e && "current" in e ? e.current : e;
417
- }, _e = function(e, t) {
406
+ }, ge = function(e, t) {
418
407
  return e[0] === t[0] && e[1] === t[1];
419
- }, ve = function(e) {
408
+ }, _e = function(e) {
420
409
  return `
421
410
  .block-interactivity-${e} {pointer-events: none;}
422
411
  .allow-interactivity-${e} {pointer-events: all;}
423
412
  `;
424
- }, ye = 0, q = [];
425
- function be(t) {
426
- var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(ye++)[0], o = e.useState(k)[0], s = e.useRef(t);
413
+ }, ve = 0, q = [];
414
+ function ye(t) {
415
+ var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(ve++)[0], o = e.useState(A)[0], s = e.useRef(t);
427
416
  e.useEffect(function() {
428
417
  s.current = t;
429
418
  }, [t]), e.useEffect(function() {
@@ -449,23 +438,20 @@ function be(t) {
449
438
  if ("touches" in e && d === "h" && u.type === "range") return !1;
450
439
  var f = window.getSelection(), p = f && f.anchorNode;
451
440
  if (p && (p === u || p.contains(u))) return !1;
452
- var m = B(d, u);
441
+ var m = V(d, u);
453
442
  if (!m) return !0;
454
- if (m ? l = d : (l = d === "v" ? "h" : "v", m = B(d, u)), !m) return !1;
443
+ if (m ? l = d : (l = d === "v" ? "h" : "v", m = V(d, u)), !m) return !1;
455
444
  if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
456
445
  var h = i.current || l;
457
- return ge(h, t, e, h === "h" ? o : c, !0);
446
+ return he(h, t, e, h === "h" ? o : c, !0);
458
447
  }, []), l = e.useCallback(function(e) {
459
448
  var t = e;
460
- if (!(!q.length || q[q.length - 1] !== o)) {
449
+ if (q.length && q[q.length - 1] === o) {
461
450
  var r = "deltaY" in t ? G(t) : W(t), i = n.current.filter(function(e) {
462
- return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && _e(e.delta, r);
451
+ return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && ge(e.delta, r);
463
452
  })[0];
464
- if (i && i.should) {
465
- t.cancelable && t.preventDefault();
466
- return;
467
- }
468
- if (!i) {
453
+ if (i && i.should) t.cancelable && t.preventDefault();
454
+ else if (!i) {
469
455
  var a = (s.current.shards || []).map(K).filter(Boolean).filter(function(e) {
470
456
  return e.contains(t.target);
471
457
  });
@@ -478,7 +464,7 @@ function be(t) {
478
464
  delta: t,
479
465
  target: r,
480
466
  should: i,
481
- shadowParent: xe(r)
467
+ shadowParent: be(r)
482
468
  };
483
469
  n.current.push(a), setTimeout(function() {
484
470
  n.current = n.current.filter(function(e) {
@@ -497,38 +483,36 @@ function be(t) {
497
483
  onScrollCapture: p,
498
484
  onWheelCapture: p,
499
485
  onTouchMoveCapture: m
500
- }), document.addEventListener("wheel", l, I), document.addEventListener("touchmove", l, I), document.addEventListener("touchstart", f, I), function() {
486
+ }), document.addEventListener("wheel", l, R), document.addEventListener("touchmove", l, R), document.addEventListener("touchstart", f, R), function() {
501
487
  q = q.filter(function(e) {
502
488
  return e !== o;
503
- }), document.removeEventListener("wheel", l, I), document.removeEventListener("touchmove", l, I), document.removeEventListener("touchstart", f, I);
489
+ }), document.removeEventListener("wheel", l, R), document.removeEventListener("touchmove", l, R), document.removeEventListener("touchstart", f, R);
504
490
  };
505
491
  }, []);
506
492
  var h = t.removeScrollBar, g = t.inert;
507
- return e.createElement(e.Fragment, null, g ? e.createElement(o, { styles: ve(a) }) : null, h ? e.createElement(fe, {
493
+ return e.createElement(e.Fragment, null, g ? e.createElement(o, { styles: _e(a) }) : null, h ? e.createElement(le, {
508
494
  noRelative: t.noRelative,
509
495
  gapMode: t.gapMode
510
496
  }) : null);
511
497
  }
512
- function xe(e) {
498
+ function be(e) {
513
499
  for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
514
500
  return t;
515
501
  }
516
- //#endregion
517
- //#region ../../node_modules/.bun/react-remove-scroll@2.7.2+c841d34b494ec30a/node_modules/react-remove-scroll/dist/es2015/sidecar.js
518
- var Se = w(T, be), J = e.forwardRef(function(t, n) {
502
+ // ../../node_modules/.bun/react-remove-scroll@2.7.2+0ac650c021fb1b59/node_modules/react-remove-scroll/dist/es2015/sidecar.js
503
+ var xe = w(T, ye), J = e.forwardRef(function(t, n) {
519
504
  return e.createElement(D, l({}, t, {
520
505
  ref: n,
521
- sideCar: Se
506
+ sideCar: xe
522
507
  }));
523
508
  });
524
509
  J.classNames = D.classNames;
525
- //#endregion
526
- //#region ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
527
- var Ce = function(e) {
510
+ // ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
511
+ var Se = function(e) {
528
512
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
529
513
  }, Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {}, Q = 0, $ = function(e) {
530
514
  return e && (e.host || $(e.parentNode));
531
- }, we = function(e, t) {
515
+ }, Ce = function(e, t) {
532
516
  return t.map(function(t) {
533
517
  if (e.contains(t)) return t;
534
518
  var n = $(t);
@@ -536,15 +520,15 @@ var Ce = function(e) {
536
520
  }).filter(function(e) {
537
521
  return !!e;
538
522
  });
539
- }, Te = function(e, t, n, r) {
540
- var i = we(t, Array.isArray(e) ? e : [e]);
523
+ }, we = function(e, t, n, r) {
524
+ var i = Ce(t, Array.isArray(e) ? e : [e]);
541
525
  Z[n] || (Z[n] = /* @__PURE__ */ new WeakMap());
542
526
  var a = Z[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
543
- !e || s.has(e) || (s.add(e), l(e.parentNode));
527
+ e && !s.has(e) && (s.add(e), l(e.parentNode));
544
528
  };
545
529
  i.forEach(l);
546
530
  var u = function(e) {
547
- !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
531
+ e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
548
532
  if (s.has(e)) u(e);
549
533
  else try {
550
534
  var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Y.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
@@ -560,12 +544,11 @@ var Ce = function(e) {
560
544
  Y.set(e, t), a.set(e, i), t || (X.has(e) || e.removeAttribute(r), X.delete(e)), i || e.removeAttribute(n);
561
545
  }), Q--, Q || (Y = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = {});
562
546
  };
563
- }, Ee = function(e, t, n) {
547
+ }, Te = function(e, t, n) {
564
548
  n === void 0 && (n = "data-aria-hidden");
565
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ce(e);
566
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Te(r, i, n, "aria-hidden")) : function() {
549
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Se(e);
550
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), we(r, i, n, "aria-hidden")) : function() {
567
551
  return null;
568
552
  };
569
553
  };
570
- //#endregion
571
- export { J as n, s as r, Ee as t };
554
+ export { J as n, s as r, Te as t };
@@ -0,0 +1,41 @@
1
+ const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=0,o=null;function s(e){return c(),e.children}i(s,`FocusGuards`);function c(){n.useEffect(()=>{o||={start:l(),end:l()};let{start:e,end:t}=o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),a++,()=>{a===1&&(o?.start.remove(),o?.end.remove(),o=null),a=Math.max(0,a-1)}},[])}i(c,`useFocusGuards`);function l(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}i(l,`createFocusGuard`);var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function f(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var p=`right-scroll-bar-position`,m=`width-before-scroll-bar`,h=`with-scroll-bars-hidden`,g=`--removed-body-scroll-bar-size`;function _(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function v(e,n){var r=(0,t.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}var y=typeof window<`u`?t.useLayoutEffect:t.useEffect,b=new WeakMap;function ee(e,t){var n=v(t||null,function(t){return e.forEach(function(e){return _(e,t)})});return y(function(){var t=b.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||_(e,null)}),i.forEach(function(e){r.has(e)||_(e,a)})}b.set(n,e)},[e]),n}function x(e){return e}function S(e,t){t===void 0&&(t=x);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function C(e){e===void 0&&(e={});var t=S(null);return t.options=u({async:!0,ssr:!1},e),t}var w=function(e){var n=e.sideCar,r=d(e,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return t.createElement(i,u({},r))};w.isSideCarExport=!0;function T(e,t){return e.useMedium(t),w}var E=C(),D=function(){},O=t.forwardRef(function(e,n){var r=t.useRef(null),i=t.useState({onScrollCapture:D,onWheelCapture:D,onTouchMoveCapture:D}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,S=e.gapMode,C=d(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),w=h,T=ee([r,n]),O=u(u({},C),a);return t.createElement(t.Fragment,null,p&&t.createElement(w,{sideCar:E,removeScrollBar:f,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:S}),s?t.cloneElement(t.Children.only(c),u(u({},O),{ref:T})):t.createElement(x,u({},O,{className:l,ref:T}),c))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:m,zeroRight:p};var k,A=function(){if(k)return k;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function te(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=A();return t&&e.setAttribute(`nonce`,t),e}function ne(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function re(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=te())&&(ne(t,n),re(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ae=function(){var e=ie();return function(n,r){t.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},j=function(){var e=ae();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oe={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||``,10)||0},se=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[M(n),M(r),M(i)]},ce=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return oe;var t=se(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},le=j(),N=`data-scroll-locked`,ue=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${h} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${N}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${p} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${m} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${p} .${p} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${m} .${m} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${N}] {
36
+ ${g}: ${s}px;
37
+ }
38
+ `},P=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},de=function(){t.useEffect(function(){return document.body.setAttribute(N,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},fe=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;de();var o=t.useMemo(function(){return ce(a)},[a]);return t.createElement(le,{styles:ue(o,!n,a,r?``:`!important`)})},F=!1;if(typeof window<`u`)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener(`test`,I,I),window.removeEventListener(`test`,I,I)}catch{F=!1}var L=F?{passive:!1}:!1,pe=function(e){return e.tagName===`TEXTAREA`},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!pe(e)&&n[t]===`visible`)},z=function(e){return R(e,`overflowY`)},me=function(e){return R(e,`overflowX`)},B=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var i=H(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},he=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ge=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},V=function(e,t){return e===`v`?z(t):me(t)},H=function(e,t){return e===`v`?he(t):ge(t)},_e=function(e,t){return e===`h`&&t===`rtl`?-1:1},ve=function(e,t,n,r,i){var a=_e(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=H(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&V(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},U=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},G=function(e){return e&&`current`in e?e.current:e},ye=function(e,t){return e[0]===t[0]&&e[1]===t[1]},be=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},xe=0,K=[];function Se(e){var n=t.useRef([]),r=t.useRef([0,0]),i=t.useRef(),a=t.useState(xe++)[0],o=t.useState(j)[0],s=t.useRef(e);t.useEffect(function(){s.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=f([e.lockRef.current],(e.shards||[]).map(G),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=t.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=U(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=B(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=B(d,u)),!m)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var h=i.current||l;return ve(h,t,e,h===`h`?o:c,!0)},[]),l=t.useCallback(function(e){var t=e;if(K.length&&K[K.length-1]===o){var r=`deltaY`in t?W(t):U(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&ye(e.delta,r)})[0];if(i&&i.should)t.cancelable&&t.preventDefault();else if(!i){var a=(s.current.shards||[]).map(G).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?c(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=t.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Ce(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=t.useCallback(function(e){r.current=U(e),i.current=void 0},[]),p=t.useCallback(function(t){u(t.type,W(t),t.target,c(t,e.lockRef.current))},[]),m=t.useCallback(function(t){u(t.type,U(t),t.target,c(t,e.lockRef.current))},[]);t.useEffect(function(){return K.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,l,L),document.addEventListener(`touchmove`,l,L),document.addEventListener(`touchstart`,d,L),function(){K=K.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,L),document.removeEventListener(`touchmove`,l,L),document.removeEventListener(`touchstart`,d,L)}},[]);var h=e.removeScrollBar,g=e.inert;return t.createElement(t.Fragment,null,g?t.createElement(o,{styles:be(a)}):null,h?t.createElement(fe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ce(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var q=T(E,Se),J=t.forwardRef(function(e,n){return t.createElement(O,u({},e,{ref:n,sideCar:q}))});J.classNames=O.classNames;var we=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,Z={},Q=0,$=function(e){return e&&(e.host||$(e.parentNode))},Te=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ee=function(e,t,n,r){var i=Te(t,Array.isArray(e)?e:[e]);Z[n]||(Z[n]=new WeakMap);var a=Z[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Q++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),Q--,Q||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,Z={})}},De=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||we(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ee(r,i,n,`aria-hidden`)):function(){return null}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return De}});
package/dist/field.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./dist-C_iFkwIX.js"),t=require("./label-Dacwh21G.js"),n=require("./separator-Bo49G2aj.js");let r=require("react"),i=require("react/jsx-runtime"),a=require("class-variance-authority");function o({className:t,...n}){return(0,i.jsx)(`fieldset`,{"data-slot":`field-set`,className:e.t(`flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,t),...n})}function s({className:t,variant:n=`legend`,...r}){return(0,i.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":n,className:e.t(`mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base`,t),...r})}function c({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-group`,className:e.t(`group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,t),...n})}var l=(0,a.cva)(`group/field data-[invalid=true]:text-destructive flex w-full gap-2`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function u({className:t,orientation:n=`vertical`,...r}){return(0,i.jsx)(`fieldset`,{"data-slot":`field`,"data-orientation":n,className:e.t(l({orientation:n}),t),...r})}function d({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-content`,className:e.t(`group/field-content flex flex-1 flex-col gap-0.5 leading-snug`,t),...n})}function f({className:n,...r}){return(0,i.jsx)(t.t,{"data-slot":`field-label`,className:e.t(`group/field-label peer/field-label has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-2.5`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,n),...r})}function p({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-label`,className:e.t(`flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50`,t),...n})}function m({className:t,...n}){return(0,i.jsx)(`p`,{"data-slot":`field-description`,className:e.t(`text-muted-foreground text-start text-sm leading-normal font-normal group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,t),...n})}function h({children:t,className:r,...a}){return(0,i.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":!!t,className:e.t(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,r),...a,children:[(0,i.jsx)(n.t,{className:`absolute inset-0 top-1/2`}),t&&(0,i.jsx)(`span`,{className:`bg-background text-muted-foreground relative mx-auto block w-fit px-2`,"data-slot":`field-separator-content`,children:t})]})}function g({className:t,children:n,errors:a,...o}){let s=(0,r.useMemo)(()=>{if(n)return n;if(!a?.length)return null;let e=[...new Map(a.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,i.jsx)(`ul`,{className:`ms-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&(0,i.jsx)(`li`,{children:e.message},t))})},[n,a]);return s?(0,i.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:e.t(`text-destructive text-sm font-normal`,t),...o,children:s}):null}exports.Field=u,exports.FieldContent=d,exports.FieldDescription=m,exports.FieldError=g,exports.FieldGroup=c,exports.FieldLabel=f,exports.FieldLegend=s,exports.FieldSeparator=h,exports.FieldSet=o,exports.FieldTitle=p;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./dist-CoTs6T03.js"),t=require("./label-JMa1tFfC.js"),n=require("./separator-Bn-3XUSJ.js");let r=require("react"),i=require("react/jsx-runtime"),a=require("class-variance-authority");function o({className:t,...n}){return(0,i.jsx)(`fieldset`,{"data-slot":`field-set`,className:e.t(`flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,t),...n})}function s({className:t,variant:n=`legend`,...r}){return(0,i.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":n,className:e.t(`mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base`,t),...r})}function c({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-group`,className:e.t(`group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,t),...n})}var l=(0,a.cva)(`group/field data-[invalid=true]:text-destructive flex w-full gap-2`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function u({className:t,orientation:n=`vertical`,...r}){return(0,i.jsx)(`fieldset`,{"data-slot":`field`,"data-orientation":n,className:e.t(l({orientation:n}),t),...r})}function d({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-content`,className:e.t(`group/field-content flex flex-1 flex-col gap-0.5 leading-snug`,t),...n})}function f({className:n,...r}){return(0,i.jsx)(t.t,{"data-slot":`field-label`,className:e.t(`group/field-label peer/field-label has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-2.5`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,n),...r})}function p({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-label`,className:e.t(`flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50`,t),...n})}function m({className:t,...n}){return(0,i.jsx)(`p`,{"data-slot":`field-description`,className:e.t(`text-muted-foreground text-start text-sm leading-normal font-normal group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,t),...n})}function h({children:t,className:r,...a}){return(0,i.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":!!t,className:e.t(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,r),...a,children:[(0,i.jsx)(n.t,{className:`absolute inset-0 top-1/2`}),t&&(0,i.jsx)(`span`,{className:`bg-background text-muted-foreground relative mx-auto block w-fit px-2`,"data-slot":`field-separator-content`,children:t})]})}function g({className:t,children:n,errors:a,...o}){let s=(0,r.useMemo)(()=>{if(n)return n;if(!a?.length)return null;let e=[...new Map(a.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,i.jsx)(`ul`,{className:`ms-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&(0,i.jsx)(`li`,{children:e.message},t))})},[n,a]);return s?(0,i.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:e.t(`text-destructive text-sm font-normal`,t),...o,children:s}):null}exports.Field=u,exports.FieldContent=d,exports.FieldDescription=m,exports.FieldError=g,exports.FieldGroup=c,exports.FieldLabel=f,exports.FieldLegend=s,exports.FieldSeparator=h,exports.FieldSet=o,exports.FieldTitle=p;
package/dist/field.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as e } from "./dist-Dm3IQk5b.mjs";
4
- import { t } from "./label-DsSICLPc.mjs";
5
- import { t as n } from "./separator-2kr96SyF.mjs";
3
+ import { t as e } from "./dist-DoWtzxYc.mjs";
4
+ import { t } from "./label-Da0kELfR.mjs";
5
+ import { t as n } from "./separator-CCcMNS78.mjs";
6
6
  import { useMemo as r } from "react";
7
7
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
8
  import { cva as o } from "class-variance-authority";
9
- //#region src/field.tsx
9
+ // src/field.tsx
10
10
  function s({ className: t, ...n }) {
11
11
  return /* @__PURE__ */ i("fieldset", {
12
12
  "data-slot": "field-set",
@@ -104,5 +104,4 @@ function _({ className: t, children: n, errors: a, ...o }) {
104
104
  children: s
105
105
  }) : null;
106
106
  }
107
- //#endregion
108
107
  export { d as Field, f as FieldContent, h as FieldDescription, _ as FieldError, l as FieldGroup, p as FieldLabel, c as FieldLegend, g as FieldSeparator, s as FieldSet, m as FieldTitle };
@@ -1,7 +1,7 @@
1
1
  import * as e from "react";
2
2
  import { useLayoutEffect as t } from "react";
3
3
  import * as n from "react-dom";
4
- //#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
4
+ // ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
5
5
  var r = [
6
6
  "top",
7
7
  "right",
@@ -104,8 +104,7 @@ function A(e) {
104
104
  y: n
105
105
  };
106
106
  }
107
- //#endregion
108
- //#region ../../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
107
+ // ../../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
109
108
  function j(e, t, n) {
110
109
  let { reference: r, floating: i } = e, a = g(t), o = _(t), s = h(o), c = f(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, m = r[s] / 2 - i[s] / 2, v;
111
110
  switch (c) {
@@ -221,7 +220,7 @@ var N = 50, P = async (e, t, n) => {
221
220
  x: n,
222
221
  y: r
223
222
  }, y = _(a), b = h(y), x = await s.getDimensions(f), S = y === "y", C = S ? "top" : "left", w = S ? "bottom" : "right", T = S ? "clientHeight" : "clientWidth", E = o.reference[b] + o.reference[y] - v[y] - o.floating[b], D = v[y] - o.reference[y], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f)), A = O ? O[T] : 0;
224
- (!A || !await (s.isElement == null ? void 0 : s.isElement(O))) && (A = c.floating[T] || o.floating[b]);
223
+ A && await (s.isElement == null ? void 0 : s.isElement(O)) || (A = c.floating[T] || o.floating[b]);
225
224
  let j = E / 2 - D / 2, M = A / 2 - x[b] / 2 - 1, N = i(g[C], M), P = i(g[w], M), F = A - x[b] - P, I = A / 2 - x[b] / 2 + j, L = u(N, I, F), R = !l.arrow && p(a) != null && I !== L && o.reference[b] / 2 - (I < N ? N : P) - x[b] / 2 < 0, ee = R ? I < N ? I - N : I - F : 0;
226
225
  return {
227
226
  [y]: v[y] + ee,
@@ -253,7 +252,7 @@ var N = 50, P = async (e, t, n) => {
253
252
  overflows: j
254
253
  }], !j.every((e) => e <= 0)) {
255
254
  let e = (i.flip?.index || 0) + 1, t = k[e];
256
- if (t && (!(u === "alignment" && S !== g(t)) || M.every((e) => g(e.placement) === S ? e.overflows[0] > 0 : !0))) return {
255
+ if (t && (u !== "alignment" || S === g(t) || M.every((e) => g(e.placement) !== S || e.overflows[0] > 0))) return {
257
256
  data: {
258
257
  index: e,
259
258
  overflows: M
@@ -273,9 +272,7 @@ var N = 50, P = async (e, t, n) => {
273
272
  e && (n = e);
274
273
  break;
275
274
  }
276
- case "initialPlacement":
277
- n = o;
278
- break;
275
+ case "initialPlacement": n = o;
279
276
  }
280
277
  if (r !== n) return { reset: { placement: n } };
281
278
  }
@@ -325,7 +322,7 @@ var ee = function(e) {
325
322
  }
326
323
  }
327
324
  };
328
- }, te = /* @__PURE__ */ new Set(["left", "top"]);
325
+ }, te = /*#__PURE__*/ new Set(["left", "top"]);
329
326
  async function ne(e, t) {
330
327
  let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = f(n), s = p(n), c = g(n) === "y", l = te.has(o) ? -1 : 1, u = a && c ? -1 : 1, m = d(t, e), { mainAxis: h, crossAxis: _, alignmentAxis: v } = typeof m == "number" ? {
331
328
  mainAxis: m,
@@ -441,8 +438,7 @@ var re = function(e) {
441
438
  }
442
439
  };
443
440
  };
444
- //#endregion
445
- //#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
441
+ // ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
446
442
  function se() {
447
443
  return typeof window < "u";
448
444
  }
@@ -532,13 +528,13 @@ function X(e, t, n) {
532
528
  if (i) {
533
529
  let e = ye(a);
534
530
  return t.concat(a, a.visualViewport || [], W(r) ? r : [], e && n ? X(e) : []);
535
- } else return t.concat(r, X(r, [], n));
531
+ }
532
+ return t.concat(r, X(r, [], n));
536
533
  }
537
534
  function ye(e) {
538
535
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
539
536
  }
540
- //#endregion
541
- //#region ../../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
537
+ // ../../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
542
538
  function be(e) {
543
539
  let t = J(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = U(e), a = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = o(n) !== a || o(r) !== s;
544
540
  return c && (n = a, r = s), {
@@ -554,12 +550,12 @@ function Z(e) {
554
550
  let t = xe(e);
555
551
  if (!U(t)) return c(1);
556
552
  let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = be(t), s = (a ? o(n.width) : n.width) / r, l = (a ? o(n.height) : n.height) / i;
557
- return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
553
+ return s && Number.isFinite(s) || (s = 1), l && Number.isFinite(l) || (l = 1), {
558
554
  x: s,
559
555
  y: l
560
556
  };
561
557
  }
562
- var Se = /* @__PURE__ */ c(0);
558
+ var Se = /*#__PURE__*/ c(0);
563
559
  function Ce(e) {
564
560
  let t = B(e);
565
561
  return !ge() || !t.visualViewport ? Se : {
@@ -1058,5 +1054,4 @@ var ot = (e) => {
1058
1054
  options: [e, t]
1059
1055
  };
1060
1056
  };
1061
- //#endregion
1062
1057
  export { s as C, k as D, h as E, f as O, d as S, _ as T, q as _, st as a, le as b, at as c, z as d, X as f, U as g, H as h, lt as i, g as k, Ke as l, B as m, ut as n, ct as o, Y as p, ft as r, dt as s, pt as t, J as u, ce as v, p as w, u as x, W as y };