@k3-universe/react-kit 0.0.8 → 0.0.9

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 (358) hide show
  1. package/dist/index.js +1671 -1671
  2. package/dist/kit/builder/data-table/components/DataTable.d.ts +2 -2
  3. package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -1
  4. package/package.json +1 -1
  5. package/src/kit/builder/data-table/components/DataTable.tsx +9 -9
  6. package/storybook-static/assets/Accordion.stories-q6yg6wg1.js +0 -52
  7. package/storybook-static/assets/AdminLayout-B9bV4J_6.js +0 -53
  8. package/storybook-static/assets/AdminLayout.Basic.stories-C-ZxuH-O.js +0 -4
  9. package/storybook-static/assets/AdminLayout.Collapsible.stories-xcQzkxio.js +0 -4
  10. package/storybook-static/assets/AdminLayout.Complex.stories-DyjkVpvE.js +0 -29
  11. package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-BqhzWCIA.js +0 -9
  12. package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-aWxyR67T.js +0 -4
  13. package/storybook-static/assets/AdminLayout.HeaderSlots.stories-dNzhUdDt.js +0 -7
  14. package/storybook-static/assets/Alert.stories-DXwNfJ3w.js +0 -27
  15. package/storybook-static/assets/AlertDialog.stories-I324NsnP.js +0 -43
  16. package/storybook-static/assets/AspectRatio.stories-CghHiX3Z.js +0 -22
  17. package/storybook-static/assets/Autocomplete-B4gV705L.js +0 -35
  18. package/storybook-static/assets/Autocomplete.stories-CyOvjTGN.js +0 -33
  19. package/storybook-static/assets/Avatar.stories-CEF5FVSR.js +0 -12
  20. package/storybook-static/assets/Badge.stories-_-G3GriP.js +0 -12
  21. package/storybook-static/assets/Breadcrumb.stories-DORe9T4b.js +0 -25
  22. package/storybook-static/assets/Button.stories-3nQ6wsBX.js +0 -26
  23. package/storybook-static/assets/Calendar.stories-Dn__djE1.js +0 -3
  24. package/storybook-static/assets/Card.stories-BJcbdwCI.js +0 -15
  25. package/storybook-static/assets/Carousel.stories-CfqbE7Va.js +0 -15
  26. package/storybook-static/assets/Chart.stories-cGgef3tv.js +0 -126
  27. package/storybook-static/assets/Checkbox.stories-BcaxWzCS.js +0 -12
  28. package/storybook-static/assets/Collapsible.stories-CQ95s7Cs.js +0 -18
  29. package/storybook-static/assets/Combination-CeVus13L.js +0 -41
  30. package/storybook-static/assets/Command.stories-DYflJh8u.js +0 -30
  31. package/storybook-static/assets/ContextMenu.stories-CU7ehYrE.js +0 -31
  32. package/storybook-static/assets/DataTable.Basic.stories-BQNWUKiw.js +0 -6
  33. package/storybook-static/assets/DataTable.Filters.stories-DPCoeYhK.js +0 -21
  34. package/storybook-static/assets/DataTable.Pagination.stories-8UNqTNgw.js +0 -24
  35. package/storybook-static/assets/DataTable.SelectionAndActions.stories-CDEjgQ6T.js +0 -26
  36. package/storybook-static/assets/DataTable.Sorting.stories-qG7-X_6r.js +0 -6
  37. package/storybook-static/assets/Dialog.stories-Bu6ZJXNH.js +0 -18
  38. package/storybook-static/assets/Dialog.stories-DobNZ0Hp.js +0 -54
  39. package/storybook-static/assets/Drawer.stories-BN0idp4u.js +0 -24
  40. package/storybook-static/assets/DropdownMenu.stories-sfsVDTvm.js +0 -35
  41. package/storybook-static/assets/Form.Basic.stories-dE4nbgpr.js +0 -45
  42. package/storybook-static/assets/Form.Complex.stories-BEZufnjb.js +0 -230
  43. package/storybook-static/assets/Form.Dynamic.stories-cJTbd6cV.js +0 -247
  44. package/storybook-static/assets/Form.Simple.stories-DOPzZKhh.js +0 -50
  45. package/storybook-static/assets/Form.stories-27doU7JS.js +0 -3
  46. package/storybook-static/assets/FormBuilder-C0S7C69Q.js +0 -5
  47. package/storybook-static/assets/HoverCard.stories-0lted9Zx.js +0 -21
  48. package/storybook-static/assets/Input.stories-CwsIObFs.js +0 -16
  49. package/storybook-static/assets/InputOtp.stories-DVc086h4.js +0 -42
  50. package/storybook-static/assets/Label.stories-bJa0rk1A.js +0 -14
  51. package/storybook-static/assets/Login.stories-C6X6Kj5B.js +0 -37
  52. package/storybook-static/assets/Menubar.stories-CuediVp7.js +0 -44
  53. package/storybook-static/assets/NavigationMenu.stories-CKGZYhKk.js +0 -30
  54. package/storybook-static/assets/Page.stories-Cf76wtRx.js +0 -91
  55. package/storybook-static/assets/Pagination.stories-D7IdL1_4.js +0 -29
  56. package/storybook-static/assets/Popover.stories-1VP_zNY8.js +0 -15
  57. package/storybook-static/assets/Progress.stories-C35R5YvA.js +0 -8
  58. package/storybook-static/assets/RadioGroup.stories-CjuD3CwD.js +0 -16
  59. package/storybook-static/assets/Resizable.stories-Cs8dvdc5.js +0 -25
  60. package/storybook-static/assets/ScrollArea.stories-D6_z-5jm.js +0 -12
  61. package/storybook-static/assets/Section.stories-Ce5qYITI.js +0 -196
  62. package/storybook-static/assets/SectionBuilder-Df_lRZkj.js +0 -1
  63. package/storybook-static/assets/Select.stories-w_kbza5k.js +0 -17
  64. package/storybook-static/assets/Separator.stories-B5QnaJXb.js +0 -17
  65. package/storybook-static/assets/Sheet.stories-CORnEGvV.js +0 -24
  66. package/storybook-static/assets/Sidebar.stories-DVuWTi4j.js +0 -106
  67. package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +0 -9
  68. package/storybook-static/assets/Slider.stories-YoS2vvT2.js +0 -6
  69. package/storybook-static/assets/Sonner.stories-CXW5e_Qg.js +0 -18
  70. package/storybook-static/assets/Switch.stories-zr6i-aNi.js +0 -3
  71. package/storybook-static/assets/Table.stories-BuGU4MUM.js +0 -35
  72. package/storybook-static/assets/Tabs.stories-jxkJ-AUI.js +0 -10
  73. package/storybook-static/assets/Textarea.stories-CHXVobz6.js +0 -17
  74. package/storybook-static/assets/Toggle.stories-C4uB4Hkq.js +0 -3
  75. package/storybook-static/assets/ToggleGroup.stories-Cr229wf_.js +0 -13
  76. package/storybook-static/assets/Tooltip.stories-DmMYGR3T.js +0 -10
  77. package/storybook-static/assets/accordion-BCfsz_gl.js +0 -1
  78. package/storybook-static/assets/alert-dialog-BYt6Z7Kt.js +0 -7
  79. package/storybook-static/assets/avatar-CRn1qQsC.js +0 -1
  80. package/storybook-static/assets/axe-JCJl60WC.js +0 -30
  81. package/storybook-static/assets/button-BObfgcV1.js +0 -1
  82. package/storybook-static/assets/card-BJpPOzP8.js +0 -1
  83. package/storybook-static/assets/chart-column-CplFCmg8.js +0 -6
  84. package/storybook-static/assets/check-DyecuwP4.js +0 -6
  85. package/storybook-static/assets/checkbox-D5BmNJeL.js +0 -1
  86. package/storybook-static/assets/chevron-down-Bp7zbUB0.js +0 -6
  87. package/storybook-static/assets/chevron-left-D1L4J3UW.js +0 -6
  88. package/storybook-static/assets/chevron-right-oMYqDJ_f.js +0 -6
  89. package/storybook-static/assets/circle-CyarsADt.js +0 -6
  90. package/storybook-static/assets/clean-slate-V4nUw2Bm.css +0 -1
  91. package/storybook-static/assets/command-DCnXmNmT.js +0 -6
  92. package/storybook-static/assets/createLucideIcon-CLBo0iA0.js +0 -21
  93. package/storybook-static/assets/default-CuTBjDca.css +0 -1
  94. package/storybook-static/assets/dependencies-ctrV69dx.js +0 -1
  95. package/storybook-static/assets/dialog-DL0QBIbC.js +0 -1
  96. package/storybook-static/assets/dropdown-menu-BwL9gQwG.js +0 -1
  97. package/storybook-static/assets/ellipsis-DPg968Rc.js +0 -6
  98. package/storybook-static/assets/grip-vertical-CM0GDwvq.js +0 -6
  99. package/storybook-static/assets/iframe-BWjPIle6.js +0 -1555
  100. package/storybook-static/assets/iframe-C9bogcIc.css +0 -1
  101. package/storybook-static/assets/index-04C4iZwC.js +0 -1
  102. package/storybook-static/assets/index-3zykFCgl.js +0 -1
  103. package/storybook-static/assets/index-7XoYQV2z.js +0 -1
  104. package/storybook-static/assets/index-A7UzX-Xw.js +0 -1
  105. package/storybook-static/assets/index-BN5_W3Yi.js +0 -1
  106. package/storybook-static/assets/index-BcAKBHrX.js +0 -1
  107. package/storybook-static/assets/index-BdQq_4o_.js +0 -1
  108. package/storybook-static/assets/index-BfKpUbCE.js +0 -1
  109. package/storybook-static/assets/index-C5eJ31Z3.js +0 -1
  110. package/storybook-static/assets/index-C6O7WofA.js +0 -1
  111. package/storybook-static/assets/index-C9xvlw_B.js +0 -1
  112. package/storybook-static/assets/index-CGrAONsN.js +0 -1
  113. package/storybook-static/assets/index-CKwUGXmt.js +0 -1
  114. package/storybook-static/assets/index-Cce91yJQ.js +0 -1
  115. package/storybook-static/assets/index-Cw7p-pms.js +0 -1
  116. package/storybook-static/assets/index-DE2OlfDP.js +0 -1
  117. package/storybook-static/assets/index-DMk2qc2_.js +0 -1
  118. package/storybook-static/assets/index-DW48STyt.js +0 -1
  119. package/storybook-static/assets/index-DWC9SV-P.js +0 -1
  120. package/storybook-static/assets/index-Dqw7miiX.js +0 -1
  121. package/storybook-static/assets/index-Dr2xmx-F.js +0 -1
  122. package/storybook-static/assets/index-DschQYGl.js +0 -1
  123. package/storybook-static/assets/index-Dsg7S8zu.js +0 -9
  124. package/storybook-static/assets/index-Pk2lGsul.js +0 -1
  125. package/storybook-static/assets/index-URSssr5a.js +0 -1
  126. package/storybook-static/assets/index-npvyVsxD.js +0 -9
  127. package/storybook-static/assets/index-u70nzfOV.js +0 -5
  128. package/storybook-static/assets/input-11YRd9gD.js +0 -1
  129. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
  130. package/storybook-static/assets/label-CwntpYJ0.js +0 -1
  131. package/storybook-static/assets/lodash-BkmSIg_J.js +0 -73
  132. package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  133. package/storybook-static/assets/minimal-modern-d2yFlFJM.css +0 -1
  134. package/storybook-static/assets/popover-ClqrrvjL.js +0 -1
  135. package/storybook-static/assets/preload-helper-Dp1pzeXC.js +0 -1
  136. package/storybook-static/assets/radio-group-CvN0LQZp.js +0 -1
  137. package/storybook-static/assets/react-18-Bj31y5Nr.js +0 -25
  138. package/storybook-static/assets/react-icons.esm-DNr9VcvP.js +0 -1
  139. package/storybook-static/assets/refresh-cw-OZakDsFY.js +0 -6
  140. package/storybook-static/assets/schemas-CaLvKjsI.js +0 -18
  141. package/storybook-static/assets/section-factories-DKfKL-5s.js +0 -1
  142. package/storybook-static/assets/select-gtXRB92c.js +0 -6
  143. package/storybook-static/assets/separator-CxCWfpZX.js +0 -1
  144. package/storybook-static/assets/settings-2-DSSkfF6W.js +0 -6
  145. package/storybook-static/assets/sheet-r0VNiBiN.js +0 -1
  146. package/storybook-static/assets/shopping-cart-CJBClF2m.js +0 -11
  147. package/storybook-static/assets/sidebar-BsMnOE7Y.js +0 -6
  148. package/storybook-static/assets/skeleton-CjDnQs43.js +0 -1
  149. package/storybook-static/assets/spotify-BuPUgQEa.css +0 -1
  150. package/storybook-static/assets/table-CP3vMqFn.js +0 -1
  151. package/storybook-static/assets/textarea-Dw2vruMl.js +0 -1
  152. package/storybook-static/assets/toggle-D08-8sQA.js +0 -16
  153. package/storybook-static/assets/tooltip-CZ1UAE_e.js +0 -1
  154. package/storybook-static/assets/trash-2-D55eseMQ.js +0 -11
  155. package/storybook-static/assets/utils-D-KgF5mV.js +0 -1
  156. package/storybook-static/assets/x-n8sFtlI2.js +0 -6
  157. package/storybook-static/favicon-wrapper.svg +0 -46
  158. package/storybook-static/favicon.svg +0 -1
  159. package/storybook-static/iframe.html +0 -687
  160. package/storybook-static/index.d.ts +0 -64
  161. package/storybook-static/index.d.ts.map +0 -1
  162. package/storybook-static/index.html +0 -166
  163. package/storybook-static/index.json +0 -1
  164. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +0 -34
  165. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +0 -1
  166. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +0 -8
  167. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +0 -1
  168. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +0 -6
  169. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +0 -1
  170. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +0 -5
  171. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +0 -1
  172. package/storybook-static/kit/builder/data-table/index.d.ts +0 -6
  173. package/storybook-static/kit/builder/data-table/index.d.ts.map +0 -1
  174. package/storybook-static/kit/builder/data-table/types.d.ts +0 -27
  175. package/storybook-static/kit/builder/data-table/types.d.ts.map +0 -1
  176. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +0 -2
  177. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +0 -1
  178. package/storybook-static/kit/builder/dialog/index.d.ts +0 -3
  179. package/storybook-static/kit/builder/dialog/index.d.ts.map +0 -1
  180. package/storybook-static/kit/builder/dialog/provider.d.ts +0 -26
  181. package/storybook-static/kit/builder/dialog/provider.d.ts.map +0 -1
  182. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +0 -97
  183. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +0 -1
  184. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts +0 -20
  185. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts.map +0 -1
  186. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts +0 -12
  187. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts.map +0 -1
  188. package/storybook-static/kit/builder/form/components/index.d.ts +0 -4
  189. package/storybook-static/kit/builder/form/components/index.d.ts.map +0 -1
  190. package/storybook-static/kit/builder/form/index.d.ts +0 -3
  191. package/storybook-static/kit/builder/form/index.d.ts.map +0 -1
  192. package/storybook-static/kit/builder/form/utils/common-forms.d.ts +0 -7
  193. package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +0 -1
  194. package/storybook-static/kit/builder/form/utils/dependencies.d.ts +0 -41
  195. package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +0 -1
  196. package/storybook-static/kit/builder/form/utils/field-factories.d.ts +0 -22
  197. package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +0 -1
  198. package/storybook-static/kit/builder/form/utils/index.d.ts +0 -15
  199. package/storybook-static/kit/builder/form/utils/index.d.ts.map +0 -1
  200. package/storybook-static/kit/builder/form/utils/section-factories.d.ts +0 -7
  201. package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +0 -1
  202. package/storybook-static/kit/builder/form/utils/transformers.d.ts +0 -6
  203. package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +0 -1
  204. package/storybook-static/kit/builder/form/utils/validations.d.ts +0 -13
  205. package/storybook-static/kit/builder/form/utils/validations.d.ts.map +0 -1
  206. package/storybook-static/kit/builder/form/utils/validators.d.ts +0 -8
  207. package/storybook-static/kit/builder/form/utils/validators.d.ts.map +0 -1
  208. package/storybook-static/kit/builder/page/Page.d.ts +0 -48
  209. package/storybook-static/kit/builder/page/Page.d.ts.map +0 -1
  210. package/storybook-static/kit/builder/page/index.d.ts +0 -2
  211. package/storybook-static/kit/builder/page/index.d.ts.map +0 -1
  212. package/storybook-static/kit/builder/section/SectionBuilder.d.ts +0 -3
  213. package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +0 -1
  214. package/storybook-static/kit/builder/section/index.d.ts +0 -3
  215. package/storybook-static/kit/builder/section/index.d.ts.map +0 -1
  216. package/storybook-static/kit/builder/section/types.d.ts +0 -59
  217. package/storybook-static/kit/builder/section/types.d.ts.map +0 -1
  218. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +0 -21
  219. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +0 -1
  220. package/storybook-static/kit/components/autocomplete/index.d.ts +0 -3
  221. package/storybook-static/kit/components/autocomplete/index.d.ts.map +0 -1
  222. package/storybook-static/kit/components/autocomplete/types.d.ts +0 -19
  223. package/storybook-static/kit/components/autocomplete/types.d.ts.map +0 -1
  224. package/storybook-static/kit/components/login/Login.d.ts +0 -29
  225. package/storybook-static/kit/components/login/Login.d.ts.map +0 -1
  226. package/storybook-static/kit/components/login/index.d.ts +0 -2
  227. package/storybook-static/kit/components/login/index.d.ts.map +0 -1
  228. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +0 -17
  229. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +0 -1
  230. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +0 -5
  231. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +0 -1
  232. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +0 -12
  233. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +0 -1
  234. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +0 -7
  235. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +0 -1
  236. package/storybook-static/kit/layouts/admin/types/index.d.ts +0 -27
  237. package/storybook-static/kit/layouts/admin/types/index.d.ts.map +0 -1
  238. package/storybook-static/kit/providers/ThemeProvider.d.ts +0 -14
  239. package/storybook-static/kit/providers/ThemeProvider.d.ts.map +0 -1
  240. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  241. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  242. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  243. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  244. package/storybook-static/project.json +0 -1
  245. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -5
  246. package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +0 -3
  247. package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +0 -3
  248. package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +0 -3
  249. package/storybook-static/sb-addons/interactions-4/manager-bundle.js +0 -57
  250. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -971
  251. package/storybook-static/sb-addons/storysource-6/manager-bundle.js +0 -3
  252. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  253. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  254. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  255. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  256. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  257. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  258. package/storybook-static/sb-manager/globals-module-info.js +0 -797
  259. package/storybook-static/sb-manager/globals-runtime.js +0 -69653
  260. package/storybook-static/sb-manager/globals.js +0 -34
  261. package/storybook-static/sb-manager/runtime.js +0 -13181
  262. package/storybook-static/shadcn/hooks/use-mobile.d.ts +0 -2
  263. package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +0 -1
  264. package/storybook-static/shadcn/lib/utils.d.ts +0 -3
  265. package/storybook-static/shadcn/lib/utils.d.ts.map +0 -1
  266. package/storybook-static/shadcn/ui/accordion.d.ts +0 -8
  267. package/storybook-static/shadcn/ui/accordion.d.ts.map +0 -1
  268. package/storybook-static/shadcn/ui/alert-dialog.d.ts +0 -15
  269. package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +0 -1
  270. package/storybook-static/shadcn/ui/alert.d.ts +0 -10
  271. package/storybook-static/shadcn/ui/alert.d.ts.map +0 -1
  272. package/storybook-static/shadcn/ui/aspect-ratio.d.ts +0 -4
  273. package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +0 -1
  274. package/storybook-static/shadcn/ui/avatar.d.ts +0 -7
  275. package/storybook-static/shadcn/ui/avatar.d.ts.map +0 -1
  276. package/storybook-static/shadcn/ui/badge.d.ts +0 -10
  277. package/storybook-static/shadcn/ui/badge.d.ts.map +0 -1
  278. package/storybook-static/shadcn/ui/breadcrumb.d.ts +0 -12
  279. package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +0 -1
  280. package/storybook-static/shadcn/ui/button.d.ts +0 -11
  281. package/storybook-static/shadcn/ui/button.d.ts.map +0 -1
  282. package/storybook-static/shadcn/ui/calendar.d.ts +0 -9
  283. package/storybook-static/shadcn/ui/calendar.d.ts.map +0 -1
  284. package/storybook-static/shadcn/ui/card.d.ts +0 -10
  285. package/storybook-static/shadcn/ui/card.d.ts.map +0 -1
  286. package/storybook-static/shadcn/ui/carousel.d.ts +0 -20
  287. package/storybook-static/shadcn/ui/carousel.d.ts.map +0 -1
  288. package/storybook-static/shadcn/ui/chart.d.ts +0 -41
  289. package/storybook-static/shadcn/ui/chart.d.ts.map +0 -1
  290. package/storybook-static/shadcn/ui/checkbox.d.ts +0 -5
  291. package/storybook-static/shadcn/ui/checkbox.d.ts.map +0 -1
  292. package/storybook-static/shadcn/ui/collapsible.d.ts +0 -6
  293. package/storybook-static/shadcn/ui/collapsible.d.ts.map +0 -1
  294. package/storybook-static/shadcn/ui/command.d.ts +0 -19
  295. package/storybook-static/shadcn/ui/command.d.ts.map +0 -1
  296. package/storybook-static/shadcn/ui/context-menu.d.ts +0 -26
  297. package/storybook-static/shadcn/ui/context-menu.d.ts.map +0 -1
  298. package/storybook-static/shadcn/ui/dialog.d.ts +0 -16
  299. package/storybook-static/shadcn/ui/dialog.d.ts.map +0 -1
  300. package/storybook-static/shadcn/ui/drawer.d.ts +0 -14
  301. package/storybook-static/shadcn/ui/drawer.d.ts.map +0 -1
  302. package/storybook-static/shadcn/ui/dropdown-menu.d.ts +0 -26
  303. package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +0 -1
  304. package/storybook-static/shadcn/ui/form.d.ts +0 -25
  305. package/storybook-static/shadcn/ui/form.d.ts.map +0 -1
  306. package/storybook-static/shadcn/ui/hover-card.d.ts +0 -7
  307. package/storybook-static/shadcn/ui/hover-card.d.ts.map +0 -1
  308. package/storybook-static/shadcn/ui/input-otp.d.ts +0 -12
  309. package/storybook-static/shadcn/ui/input-otp.d.ts.map +0 -1
  310. package/storybook-static/shadcn/ui/input.d.ts +0 -4
  311. package/storybook-static/shadcn/ui/input.d.ts.map +0 -1
  312. package/storybook-static/shadcn/ui/label.d.ts +0 -5
  313. package/storybook-static/shadcn/ui/label.d.ts.map +0 -1
  314. package/storybook-static/shadcn/ui/menubar.d.ts +0 -27
  315. package/storybook-static/shadcn/ui/menubar.d.ts.map +0 -1
  316. package/storybook-static/shadcn/ui/navigation-menu.d.ts +0 -15
  317. package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +0 -1
  318. package/storybook-static/shadcn/ui/pagination.d.ts +0 -14
  319. package/storybook-static/shadcn/ui/pagination.d.ts.map +0 -1
  320. package/storybook-static/shadcn/ui/popover.d.ts +0 -8
  321. package/storybook-static/shadcn/ui/popover.d.ts.map +0 -1
  322. package/storybook-static/shadcn/ui/progress.d.ts +0 -5
  323. package/storybook-static/shadcn/ui/progress.d.ts.map +0 -1
  324. package/storybook-static/shadcn/ui/radio-group.d.ts +0 -6
  325. package/storybook-static/shadcn/ui/radio-group.d.ts.map +0 -1
  326. package/storybook-static/shadcn/ui/resizable.d.ts +0 -9
  327. package/storybook-static/shadcn/ui/resizable.d.ts.map +0 -1
  328. package/storybook-static/shadcn/ui/scroll-area.d.ts +0 -6
  329. package/storybook-static/shadcn/ui/scroll-area.d.ts.map +0 -1
  330. package/storybook-static/shadcn/ui/select.d.ts +0 -16
  331. package/storybook-static/shadcn/ui/select.d.ts.map +0 -1
  332. package/storybook-static/shadcn/ui/separator.d.ts +0 -5
  333. package/storybook-static/shadcn/ui/separator.d.ts.map +0 -1
  334. package/storybook-static/shadcn/ui/sheet.d.ts +0 -14
  335. package/storybook-static/shadcn/ui/sheet.d.ts.map +0 -1
  336. package/storybook-static/shadcn/ui/sidebar.d.ts +0 -70
  337. package/storybook-static/shadcn/ui/sidebar.d.ts.map +0 -1
  338. package/storybook-static/shadcn/ui/skeleton.d.ts +0 -3
  339. package/storybook-static/shadcn/ui/skeleton.d.ts.map +0 -1
  340. package/storybook-static/shadcn/ui/slider.d.ts +0 -5
  341. package/storybook-static/shadcn/ui/slider.d.ts.map +0 -1
  342. package/storybook-static/shadcn/ui/sonner.d.ts +0 -4
  343. package/storybook-static/shadcn/ui/sonner.d.ts.map +0 -1
  344. package/storybook-static/shadcn/ui/switch.d.ts +0 -5
  345. package/storybook-static/shadcn/ui/switch.d.ts.map +0 -1
  346. package/storybook-static/shadcn/ui/table.d.ts +0 -11
  347. package/storybook-static/shadcn/ui/table.d.ts.map +0 -1
  348. package/storybook-static/shadcn/ui/tabs.d.ts +0 -8
  349. package/storybook-static/shadcn/ui/tabs.d.ts.map +0 -1
  350. package/storybook-static/shadcn/ui/textarea.d.ts +0 -4
  351. package/storybook-static/shadcn/ui/textarea.d.ts.map +0 -1
  352. package/storybook-static/shadcn/ui/toggle-group.d.ts +0 -8
  353. package/storybook-static/shadcn/ui/toggle-group.d.ts.map +0 -1
  354. package/storybook-static/shadcn/ui/toggle.d.ts +0 -10
  355. package/storybook-static/shadcn/ui/toggle.d.ts.map +0 -1
  356. package/storybook-static/shadcn/ui/tooltip.d.ts +0 -8
  357. package/storybook-static/shadcn/ui/tooltip.d.ts.map +0 -1
  358. package/storybook-static/vite-inject-mocker-entry.js +0 -18
package/dist/index.js CHANGED
@@ -2992,6 +2992,442 @@ function useReactTable(options) {
2992
2992
  }));
2993
2993
  return tableRef.current;
2994
2994
  }
2995
+ /**
2996
+ * @license lucide-react v0.540.0 - ISC
2997
+ *
2998
+ * This source code is licensed under the ISC license.
2999
+ * See the LICENSE file in the root directory of this source tree.
3000
+ */
3001
+ const toKebabCase = (string2) => string2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3002
+ const toCamelCase = (string2) => string2.replace(
3003
+ /^([A-Z])|[\s-_]+(\w)/g,
3004
+ (match2, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
3005
+ );
3006
+ const toPascalCase = (string2) => {
3007
+ const camelCase = toCamelCase(string2);
3008
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
3009
+ };
3010
+ const mergeClasses = (...classes) => classes.filter((className, index2, array2) => {
3011
+ return Boolean(className) && className.trim() !== "" && array2.indexOf(className) === index2;
3012
+ }).join(" ").trim();
3013
+ const hasA11yProp = (props2) => {
3014
+ for (const prop in props2) {
3015
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
3016
+ return true;
3017
+ }
3018
+ }
3019
+ };
3020
+ /**
3021
+ * @license lucide-react v0.540.0 - ISC
3022
+ *
3023
+ * This source code is licensed under the ISC license.
3024
+ * See the LICENSE file in the root directory of this source tree.
3025
+ */
3026
+ var defaultAttributes = {
3027
+ xmlns: "http://www.w3.org/2000/svg",
3028
+ width: 24,
3029
+ height: 24,
3030
+ viewBox: "0 0 24 24",
3031
+ fill: "none",
3032
+ stroke: "currentColor",
3033
+ strokeWidth: 2,
3034
+ strokeLinecap: "round",
3035
+ strokeLinejoin: "round"
3036
+ };
3037
+ /**
3038
+ * @license lucide-react v0.540.0 - ISC
3039
+ *
3040
+ * This source code is licensed under the ISC license.
3041
+ * See the LICENSE file in the root directory of this source tree.
3042
+ */
3043
+ const Icon$1 = forwardRef(
3044
+ ({
3045
+ color = "currentColor",
3046
+ size: size2 = 24,
3047
+ strokeWidth = 2,
3048
+ absoluteStrokeWidth,
3049
+ className = "",
3050
+ children,
3051
+ iconNode,
3052
+ ...rest
3053
+ }, ref) => createElement(
3054
+ "svg",
3055
+ {
3056
+ ref,
3057
+ ...defaultAttributes,
3058
+ width: size2,
3059
+ height: size2,
3060
+ stroke: color,
3061
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size2) : strokeWidth,
3062
+ className: mergeClasses("lucide", className),
3063
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
3064
+ ...rest
3065
+ },
3066
+ [
3067
+ ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
3068
+ ...Array.isArray(children) ? children : [children]
3069
+ ]
3070
+ )
3071
+ );
3072
+ /**
3073
+ * @license lucide-react v0.540.0 - ISC
3074
+ *
3075
+ * This source code is licensed under the ISC license.
3076
+ * See the LICENSE file in the root directory of this source tree.
3077
+ */
3078
+ const createLucideIcon = (iconName, iconNode) => {
3079
+ const Component = forwardRef(
3080
+ ({ className, ...props2 }, ref) => createElement(Icon$1, {
3081
+ ref,
3082
+ iconNode,
3083
+ className: mergeClasses(
3084
+ `lucide-${toKebabCase(toPascalCase(iconName))}`,
3085
+ `lucide-${iconName}`,
3086
+ className
3087
+ ),
3088
+ ...props2
3089
+ })
3090
+ );
3091
+ Component.displayName = toPascalCase(iconName);
3092
+ return Component;
3093
+ };
3094
+ /**
3095
+ * @license lucide-react v0.540.0 - ISC
3096
+ *
3097
+ * This source code is licensed under the ISC license.
3098
+ * See the LICENSE file in the root directory of this source tree.
3099
+ */
3100
+ const __iconNode$r = [
3101
+ ["path", { d: "M12 5v14", key: "s699le" }],
3102
+ ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
3103
+ ];
3104
+ const ArrowDown = createLucideIcon("arrow-down", __iconNode$r);
3105
+ /**
3106
+ * @license lucide-react v0.540.0 - ISC
3107
+ *
3108
+ * This source code is licensed under the ISC license.
3109
+ * See the LICENSE file in the root directory of this source tree.
3110
+ */
3111
+ const __iconNode$q = [
3112
+ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
3113
+ ["path", { d: "M12 19V5", key: "x0mq9r" }]
3114
+ ];
3115
+ const ArrowUp = createLucideIcon("arrow-up", __iconNode$q);
3116
+ /**
3117
+ * @license lucide-react v0.540.0 - ISC
3118
+ *
3119
+ * This source code is licensed under the ISC license.
3120
+ * See the LICENSE file in the root directory of this source tree.
3121
+ */
3122
+ const __iconNode$p = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
3123
+ const Check = createLucideIcon("check", __iconNode$p);
3124
+ /**
3125
+ * @license lucide-react v0.540.0 - ISC
3126
+ *
3127
+ * This source code is licensed under the ISC license.
3128
+ * See the LICENSE file in the root directory of this source tree.
3129
+ */
3130
+ const __iconNode$o = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
3131
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$o);
3132
+ /**
3133
+ * @license lucide-react v0.540.0 - ISC
3134
+ *
3135
+ * This source code is licensed under the ISC license.
3136
+ * See the LICENSE file in the root directory of this source tree.
3137
+ */
3138
+ const __iconNode$n = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
3139
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$n);
3140
+ /**
3141
+ * @license lucide-react v0.540.0 - ISC
3142
+ *
3143
+ * This source code is licensed under the ISC license.
3144
+ * See the LICENSE file in the root directory of this source tree.
3145
+ */
3146
+ const __iconNode$m = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
3147
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$m);
3148
+ /**
3149
+ * @license lucide-react v0.540.0 - ISC
3150
+ *
3151
+ * This source code is licensed under the ISC license.
3152
+ * See the LICENSE file in the root directory of this source tree.
3153
+ */
3154
+ const __iconNode$l = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
3155
+ const ChevronUp = createLucideIcon("chevron-up", __iconNode$l);
3156
+ /**
3157
+ * @license lucide-react v0.540.0 - ISC
3158
+ *
3159
+ * This source code is licensed under the ISC license.
3160
+ * See the LICENSE file in the root directory of this source tree.
3161
+ */
3162
+ const __iconNode$k = [
3163
+ ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
3164
+ ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
3165
+ ];
3166
+ const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$k);
3167
+ /**
3168
+ * @license lucide-react v0.540.0 - ISC
3169
+ *
3170
+ * This source code is licensed under the ISC license.
3171
+ * See the LICENSE file in the root directory of this source tree.
3172
+ */
3173
+ const __iconNode$j = [
3174
+ ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
3175
+ ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
3176
+ ];
3177
+ const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$j);
3178
+ /**
3179
+ * @license lucide-react v0.540.0 - ISC
3180
+ *
3181
+ * This source code is licensed under the ISC license.
3182
+ * See the LICENSE file in the root directory of this source tree.
3183
+ */
3184
+ const __iconNode$i = [
3185
+ ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
3186
+ ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
3187
+ ];
3188
+ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$i);
3189
+ /**
3190
+ * @license lucide-react v0.540.0 - ISC
3191
+ *
3192
+ * This source code is licensed under the ISC license.
3193
+ * See the LICENSE file in the root directory of this source tree.
3194
+ */
3195
+ const __iconNode$h = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
3196
+ const Circle = createLucideIcon("circle", __iconNode$h);
3197
+ /**
3198
+ * @license lucide-react v0.540.0 - ISC
3199
+ *
3200
+ * This source code is licensed under the ISC license.
3201
+ * See the LICENSE file in the root directory of this source tree.
3202
+ */
3203
+ const __iconNode$g = [
3204
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3205
+ ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3206
+ ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3207
+ ];
3208
+ const Ellipsis = createLucideIcon("ellipsis", __iconNode$g);
3209
+ /**
3210
+ * @license lucide-react v0.540.0 - ISC
3211
+ *
3212
+ * This source code is licensed under the ISC license.
3213
+ * See the LICENSE file in the root directory of this source tree.
3214
+ */
3215
+ const __iconNode$f = [
3216
+ [
3217
+ "path",
3218
+ {
3219
+ d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
3220
+ key: "ct8e1f"
3221
+ }
3222
+ ],
3223
+ ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }],
3224
+ [
3225
+ "path",
3226
+ {
3227
+ d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
3228
+ key: "13bj9a"
3229
+ }
3230
+ ],
3231
+ ["path", { d: "m2 2 20 20", key: "1ooewy" }]
3232
+ ];
3233
+ const EyeOff = createLucideIcon("eye-off", __iconNode$f);
3234
+ /**
3235
+ * @license lucide-react v0.540.0 - ISC
3236
+ *
3237
+ * This source code is licensed under the ISC license.
3238
+ * See the LICENSE file in the root directory of this source tree.
3239
+ */
3240
+ const __iconNode$e = [
3241
+ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
3242
+ ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
3243
+ ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
3244
+ ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
3245
+ ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
3246
+ ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
3247
+ ];
3248
+ const GripVertical = createLucideIcon("grip-vertical", __iconNode$e);
3249
+ /**
3250
+ * @license lucide-react v0.540.0 - ISC
3251
+ *
3252
+ * This source code is licensed under the ISC license.
3253
+ * See the LICENSE file in the root directory of this source tree.
3254
+ */
3255
+ const __iconNode$d = [
3256
+ [
3257
+ "path",
3258
+ {
3259
+ d: "M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",
3260
+ key: "1pdavp"
3261
+ }
3262
+ ],
3263
+ ["path", { d: "M20.054 15.987H3.946", key: "14rxg9" }]
3264
+ ];
3265
+ const Laptop = createLucideIcon("laptop", __iconNode$d);
3266
+ /**
3267
+ * @license lucide-react v0.540.0 - ISC
3268
+ *
3269
+ * This source code is licensed under the ISC license.
3270
+ * See the LICENSE file in the root directory of this source tree.
3271
+ */
3272
+ const __iconNode$c = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3273
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$c);
3274
+ /**
3275
+ * @license lucide-react v0.540.0 - ISC
3276
+ *
3277
+ * This source code is licensed under the ISC license.
3278
+ * See the LICENSE file in the root directory of this source tree.
3279
+ */
3280
+ const __iconNode$b = [
3281
+ ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
3282
+ ["path", { d: "M21 12H9", key: "dn1m92" }],
3283
+ ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
3284
+ ];
3285
+ const LogOut = createLucideIcon("log-out", __iconNode$b);
3286
+ /**
3287
+ * @license lucide-react v0.540.0 - ISC
3288
+ *
3289
+ * This source code is licensed under the ISC license.
3290
+ * See the LICENSE file in the root directory of this source tree.
3291
+ */
3292
+ const __iconNode$a = [["path", { d: "M5 12h14", key: "1ays0h" }]];
3293
+ const Minus = createLucideIcon("minus", __iconNode$a);
3294
+ /**
3295
+ * @license lucide-react v0.540.0 - ISC
3296
+ *
3297
+ * This source code is licensed under the ISC license.
3298
+ * See the LICENSE file in the root directory of this source tree.
3299
+ */
3300
+ const __iconNode$9 = [
3301
+ [
3302
+ "path",
3303
+ {
3304
+ d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
3305
+ key: "kfwtm"
3306
+ }
3307
+ ]
3308
+ ];
3309
+ const Moon = createLucideIcon("moon", __iconNode$9);
3310
+ /**
3311
+ * @license lucide-react v0.540.0 - ISC
3312
+ *
3313
+ * This source code is licensed under the ISC license.
3314
+ * See the LICENSE file in the root directory of this source tree.
3315
+ */
3316
+ const __iconNode$8 = [
3317
+ [
3318
+ "path",
3319
+ {
3320
+ d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
3321
+ key: "1a0edw"
3322
+ }
3323
+ ],
3324
+ ["path", { d: "M12 22V12", key: "d0xqtd" }],
3325
+ ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
3326
+ ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
3327
+ ];
3328
+ const Package = createLucideIcon("package", __iconNode$8);
3329
+ /**
3330
+ * @license lucide-react v0.540.0 - ISC
3331
+ *
3332
+ * This source code is licensed under the ISC license.
3333
+ * See the LICENSE file in the root directory of this source tree.
3334
+ */
3335
+ const __iconNode$7 = [
3336
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
3337
+ ["path", { d: "M9 3v18", key: "fh3hqa" }]
3338
+ ];
3339
+ const PanelLeft = createLucideIcon("panel-left", __iconNode$7);
3340
+ /**
3341
+ * @license lucide-react v0.540.0 - ISC
3342
+ *
3343
+ * This source code is licensed under the ISC license.
3344
+ * See the LICENSE file in the root directory of this source tree.
3345
+ */
3346
+ const __iconNode$6 = [
3347
+ ["path", { d: "M5 12h14", key: "1ays0h" }],
3348
+ ["path", { d: "M12 5v14", key: "s699le" }]
3349
+ ];
3350
+ const Plus = createLucideIcon("plus", __iconNode$6);
3351
+ /**
3352
+ * @license lucide-react v0.540.0 - ISC
3353
+ *
3354
+ * This source code is licensed under the ISC license.
3355
+ * See the LICENSE file in the root directory of this source tree.
3356
+ */
3357
+ const __iconNode$5 = [
3358
+ ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
3359
+ ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
3360
+ ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
3361
+ ["path", { d: "M8 16H3v5", key: "1cv678" }]
3362
+ ];
3363
+ const RefreshCw = createLucideIcon("refresh-cw", __iconNode$5);
3364
+ /**
3365
+ * @license lucide-react v0.540.0 - ISC
3366
+ *
3367
+ * This source code is licensed under the ISC license.
3368
+ * See the LICENSE file in the root directory of this source tree.
3369
+ */
3370
+ const __iconNode$4 = [
3371
+ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
3372
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
3373
+ ];
3374
+ const Search = createLucideIcon("search", __iconNode$4);
3375
+ /**
3376
+ * @license lucide-react v0.540.0 - ISC
3377
+ *
3378
+ * This source code is licensed under the ISC license.
3379
+ * See the LICENSE file in the root directory of this source tree.
3380
+ */
3381
+ const __iconNode$3 = [
3382
+ ["path", { d: "M14 17H5", key: "gfn3mx" }],
3383
+ ["path", { d: "M19 7h-9", key: "6i9tg" }],
3384
+ ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
3385
+ ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
3386
+ ];
3387
+ const Settings2 = createLucideIcon("settings-2", __iconNode$3);
3388
+ /**
3389
+ * @license lucide-react v0.540.0 - ISC
3390
+ *
3391
+ * This source code is licensed under the ISC license.
3392
+ * See the LICENSE file in the root directory of this source tree.
3393
+ */
3394
+ const __iconNode$2 = [
3395
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
3396
+ ["path", { d: "M12 2v2", key: "tus03m" }],
3397
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
3398
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
3399
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
3400
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
3401
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
3402
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
3403
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
3404
+ ];
3405
+ const Sun = createLucideIcon("sun", __iconNode$2);
3406
+ /**
3407
+ * @license lucide-react v0.540.0 - ISC
3408
+ *
3409
+ * This source code is licensed under the ISC license.
3410
+ * See the LICENSE file in the root directory of this source tree.
3411
+ */
3412
+ const __iconNode$1 = [
3413
+ ["path", { d: "M10 11v6", key: "nco0om" }],
3414
+ ["path", { d: "M14 11v6", key: "outv1u" }],
3415
+ ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
3416
+ ["path", { d: "M3 6h18", key: "d0wm0j" }],
3417
+ ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
3418
+ ];
3419
+ const Trash2 = createLucideIcon("trash-2", __iconNode$1);
3420
+ /**
3421
+ * @license lucide-react v0.540.0 - ISC
3422
+ *
3423
+ * This source code is licensed under the ISC license.
3424
+ * See the LICENSE file in the root directory of this source tree.
3425
+ */
3426
+ const __iconNode = [
3427
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3428
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3429
+ ];
3430
+ const X$1 = createLucideIcon("x", __iconNode);
2995
3431
  function r$1(e) {
2996
3432
  var t2, f, n2 = "";
2997
3433
  if ("string" == typeof e || "number" == typeof e) n2 += e;
@@ -5960,142 +6396,6 @@ const twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
5960
6396
  function cn$1(...inputs) {
5961
6397
  return twMerge(clsx(inputs));
5962
6398
  }
5963
- function Table({ className, ...props2 }) {
5964
- return /* @__PURE__ */ jsx(
5965
- "div",
5966
- {
5967
- "data-slot": "table-container",
5968
- className: "relative w-full overflow-x-auto",
5969
- children: /* @__PURE__ */ jsx(
5970
- "table",
5971
- {
5972
- "data-slot": "table",
5973
- className: cn$1("w-full caption-bottom text-sm", className),
5974
- ...props2
5975
- }
5976
- )
5977
- }
5978
- );
5979
- }
5980
- function TableHeader({ className, ...props2 }) {
5981
- return /* @__PURE__ */ jsx(
5982
- "thead",
5983
- {
5984
- "data-slot": "table-header",
5985
- className: cn$1("[&_tr]:border-b", className),
5986
- ...props2
5987
- }
5988
- );
5989
- }
5990
- function TableBody({ className, ...props2 }) {
5991
- return /* @__PURE__ */ jsx(
5992
- "tbody",
5993
- {
5994
- "data-slot": "table-body",
5995
- className: cn$1("[&_tr:last-child]:border-0", className),
5996
- ...props2
5997
- }
5998
- );
5999
- }
6000
- function TableFooter({ className, ...props2 }) {
6001
- return /* @__PURE__ */ jsx(
6002
- "tfoot",
6003
- {
6004
- "data-slot": "table-footer",
6005
- className: cn$1(
6006
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
6007
- className
6008
- ),
6009
- ...props2
6010
- }
6011
- );
6012
- }
6013
- function TableRow({ className, ...props2 }) {
6014
- return /* @__PURE__ */ jsx(
6015
- "tr",
6016
- {
6017
- "data-slot": "table-row",
6018
- className: cn$1(
6019
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
6020
- className
6021
- ),
6022
- ...props2
6023
- }
6024
- );
6025
- }
6026
- function TableHead({ className, ...props2 }) {
6027
- return /* @__PURE__ */ jsx(
6028
- "th",
6029
- {
6030
- "data-slot": "table-head",
6031
- className: cn$1(
6032
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
6033
- className
6034
- ),
6035
- ...props2
6036
- }
6037
- );
6038
- }
6039
- function TableCell({ className, ...props2 }) {
6040
- return /* @__PURE__ */ jsx(
6041
- "td",
6042
- {
6043
- "data-slot": "table-cell",
6044
- className: cn$1(
6045
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
6046
- className
6047
- ),
6048
- ...props2
6049
- }
6050
- );
6051
- }
6052
- function TableCaption({
6053
- className,
6054
- ...props2
6055
- }) {
6056
- return /* @__PURE__ */ jsx(
6057
- "caption",
6058
- {
6059
- "data-slot": "table-caption",
6060
- className: cn$1("text-muted-foreground mt-4 text-sm", className),
6061
- ...props2
6062
- }
6063
- );
6064
- }
6065
- function setRef$1(ref, value) {
6066
- if (typeof ref === "function") {
6067
- return ref(value);
6068
- } else if (ref !== null && ref !== void 0) {
6069
- ref.current = value;
6070
- }
6071
- }
6072
- function composeRefs$1(...refs) {
6073
- return (node) => {
6074
- let hasCleanup = false;
6075
- const cleanups = refs.map((ref) => {
6076
- const cleanup = setRef$1(ref, node);
6077
- if (!hasCleanup && typeof cleanup == "function") {
6078
- hasCleanup = true;
6079
- }
6080
- return cleanup;
6081
- });
6082
- if (hasCleanup) {
6083
- return () => {
6084
- for (let i2 = 0; i2 < cleanups.length; i2++) {
6085
- const cleanup = cleanups[i2];
6086
- if (typeof cleanup == "function") {
6087
- cleanup();
6088
- } else {
6089
- setRef$1(refs[i2], null);
6090
- }
6091
- }
6092
- };
6093
- }
6094
- };
6095
- }
6096
- function useComposedRefs$1(...refs) {
6097
- return React.useCallback(composeRefs$1(...refs), refs);
6098
- }
6099
6399
  function createContext2(rootComponentName, defaultContext) {
6100
6400
  const Context = React.createContext(defaultContext);
6101
6401
  const Provider2 = (props2) => {
@@ -6171,6 +6471,195 @@ function composeContextScopes(...scopes) {
6171
6471
  createScope.scopeName = baseScope.scopeName;
6172
6472
  return createScope;
6173
6473
  }
6474
+ function setRef$1(ref, value) {
6475
+ if (typeof ref === "function") {
6476
+ return ref(value);
6477
+ } else if (ref !== null && ref !== void 0) {
6478
+ ref.current = value;
6479
+ }
6480
+ }
6481
+ function composeRefs$1(...refs) {
6482
+ return (node) => {
6483
+ let hasCleanup = false;
6484
+ const cleanups = refs.map((ref) => {
6485
+ const cleanup = setRef$1(ref, node);
6486
+ if (!hasCleanup && typeof cleanup == "function") {
6487
+ hasCleanup = true;
6488
+ }
6489
+ return cleanup;
6490
+ });
6491
+ if (hasCleanup) {
6492
+ return () => {
6493
+ for (let i2 = 0; i2 < cleanups.length; i2++) {
6494
+ const cleanup = cleanups[i2];
6495
+ if (typeof cleanup == "function") {
6496
+ cleanup();
6497
+ } else {
6498
+ setRef$1(refs[i2], null);
6499
+ }
6500
+ }
6501
+ };
6502
+ }
6503
+ };
6504
+ }
6505
+ function useComposedRefs$1(...refs) {
6506
+ return React.useCallback(composeRefs$1(...refs), refs);
6507
+ }
6508
+ // @__NO_SIDE_EFFECTS__
6509
+ function createSlot(ownerName) {
6510
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
6511
+ const Slot2 = React.forwardRef((props2, forwardedRef) => {
6512
+ const { children, ...slotProps } = props2;
6513
+ const childrenArray = React.Children.toArray(children);
6514
+ const slottable = childrenArray.find(isSlottable);
6515
+ if (slottable) {
6516
+ const newElement = slottable.props.children;
6517
+ const newChildren = childrenArray.map((child) => {
6518
+ if (child === slottable) {
6519
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
6520
+ return React.isValidElement(newElement) ? newElement.props.children : null;
6521
+ } else {
6522
+ return child;
6523
+ }
6524
+ });
6525
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
6526
+ }
6527
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
6528
+ });
6529
+ Slot2.displayName = `${ownerName}.Slot`;
6530
+ return Slot2;
6531
+ }
6532
+ var Slot$4 = /* @__PURE__ */ createSlot("Slot");
6533
+ // @__NO_SIDE_EFFECTS__
6534
+ function createSlotClone(ownerName) {
6535
+ const SlotClone = React.forwardRef((props2, forwardedRef) => {
6536
+ const { children, ...slotProps } = props2;
6537
+ if (React.isValidElement(children)) {
6538
+ const childrenRef = getElementRef$1(children);
6539
+ const props22 = mergeProps(slotProps, children.props);
6540
+ if (children.type !== React.Fragment) {
6541
+ props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
6542
+ }
6543
+ return React.cloneElement(children, props22);
6544
+ }
6545
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
6546
+ });
6547
+ SlotClone.displayName = `${ownerName}.SlotClone`;
6548
+ return SlotClone;
6549
+ }
6550
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
6551
+ // @__NO_SIDE_EFFECTS__
6552
+ function createSlottable(ownerName) {
6553
+ const Slottable2 = ({ children }) => {
6554
+ return /* @__PURE__ */ jsx(Fragment, { children });
6555
+ };
6556
+ Slottable2.displayName = `${ownerName}.Slottable`;
6557
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
6558
+ return Slottable2;
6559
+ }
6560
+ function isSlottable(child) {
6561
+ return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
6562
+ }
6563
+ function mergeProps(slotProps, childProps) {
6564
+ const overrideProps = { ...childProps };
6565
+ for (const propName in childProps) {
6566
+ const slotPropValue = slotProps[propName];
6567
+ const childPropValue = childProps[propName];
6568
+ const isHandler = /^on[A-Z]/.test(propName);
6569
+ if (isHandler) {
6570
+ if (slotPropValue && childPropValue) {
6571
+ overrideProps[propName] = (...args) => {
6572
+ const result = childPropValue(...args);
6573
+ slotPropValue(...args);
6574
+ return result;
6575
+ };
6576
+ } else if (slotPropValue) {
6577
+ overrideProps[propName] = slotPropValue;
6578
+ }
6579
+ } else if (propName === "style") {
6580
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
6581
+ } else if (propName === "className") {
6582
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
6583
+ }
6584
+ }
6585
+ return { ...slotProps, ...overrideProps };
6586
+ }
6587
+ function getElementRef$1(element) {
6588
+ var _a, _b;
6589
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
6590
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
6591
+ if (mayWarn) {
6592
+ return element.ref;
6593
+ }
6594
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
6595
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
6596
+ if (mayWarn) {
6597
+ return element.props.ref;
6598
+ }
6599
+ return element.props.ref || element.ref;
6600
+ }
6601
+ function createCollection(name) {
6602
+ const PROVIDER_NAME2 = name + "CollectionProvider";
6603
+ const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
6604
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
6605
+ PROVIDER_NAME2,
6606
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
6607
+ );
6608
+ const CollectionProvider = (props2) => {
6609
+ const { scope, children } = props2;
6610
+ const ref = React__default.useRef(null);
6611
+ const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
6612
+ return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
6613
+ };
6614
+ CollectionProvider.displayName = PROVIDER_NAME2;
6615
+ const COLLECTION_SLOT_NAME = name + "CollectionSlot";
6616
+ const CollectionSlotImpl = /* @__PURE__ */ createSlot(COLLECTION_SLOT_NAME);
6617
+ const CollectionSlot = React__default.forwardRef(
6618
+ (props2, forwardedRef) => {
6619
+ const { scope, children } = props2;
6620
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
6621
+ const composedRefs = useComposedRefs$1(forwardedRef, context.collectionRef);
6622
+ return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
6623
+ }
6624
+ );
6625
+ CollectionSlot.displayName = COLLECTION_SLOT_NAME;
6626
+ const ITEM_SLOT_NAME = name + "CollectionItemSlot";
6627
+ const ITEM_DATA_ATTR = "data-radix-collection-item";
6628
+ const CollectionItemSlotImpl = /* @__PURE__ */ createSlot(ITEM_SLOT_NAME);
6629
+ const CollectionItemSlot = React__default.forwardRef(
6630
+ (props2, forwardedRef) => {
6631
+ const { scope, children, ...itemData } = props2;
6632
+ const ref = React__default.useRef(null);
6633
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
6634
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
6635
+ React__default.useEffect(() => {
6636
+ context.itemMap.set(ref, { ref, ...itemData });
6637
+ return () => void context.itemMap.delete(ref);
6638
+ });
6639
+ return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
6640
+ }
6641
+ );
6642
+ CollectionItemSlot.displayName = ITEM_SLOT_NAME;
6643
+ function useCollection2(scope) {
6644
+ const context = useCollectionContext(name + "CollectionConsumer", scope);
6645
+ const getItems = React__default.useCallback(() => {
6646
+ const collectionNode = context.collectionRef.current;
6647
+ if (!collectionNode) return [];
6648
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
6649
+ const items = Array.from(context.itemMap.values());
6650
+ const orderedItems = items.sort(
6651
+ (a2, b2) => orderedNodes.indexOf(a2.ref.current) - orderedNodes.indexOf(b2.ref.current)
6652
+ );
6653
+ return orderedItems;
6654
+ }, [context.collectionRef, context.itemMap]);
6655
+ return getItems;
6656
+ }
6657
+ return [
6658
+ { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
6659
+ useCollection2,
6660
+ createCollectionScope2
6661
+ ];
6662
+ }
6174
6663
  function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
6175
6664
  return function handleEvent(event) {
6176
6665
  originalEventHandler == null ? void 0 : originalEventHandler(event);
@@ -6247,49 +6736,40 @@ function useUncontrolledState$1({
6247
6736
  function isFunction$3(value) {
6248
6737
  return typeof value === "function";
6249
6738
  }
6250
- function usePrevious(value) {
6251
- const ref = React.useRef({ value, previous: value });
6252
- return React.useMemo(() => {
6253
- if (ref.current.value !== value) {
6254
- ref.current.previous = ref.current.value;
6255
- ref.current.value = value;
6256
- }
6257
- return ref.current.previous;
6258
- }, [value]);
6259
- }
6260
- function useSize(element) {
6261
- const [size2, setSize] = React.useState(void 0);
6262
- useLayoutEffect2(() => {
6263
- if (element) {
6264
- setSize({ width: element.offsetWidth, height: element.offsetHeight });
6265
- const resizeObserver = new ResizeObserver((entries) => {
6266
- if (!Array.isArray(entries)) {
6267
- return;
6268
- }
6269
- if (!entries.length) {
6270
- return;
6271
- }
6272
- const entry = entries[0];
6273
- let width;
6274
- let height;
6275
- if ("borderBoxSize" in entry) {
6276
- const borderSizeEntry = entry["borderBoxSize"];
6277
- const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
6278
- width = borderSize["inlineSize"];
6279
- height = borderSize["blockSize"];
6280
- } else {
6281
- width = element.offsetWidth;
6282
- height = element.offsetHeight;
6283
- }
6284
- setSize({ width, height });
6285
- });
6286
- resizeObserver.observe(element, { box: "border-box" });
6287
- return () => resizeObserver.unobserve(element);
6288
- } else {
6289
- setSize(void 0);
6739
+ var NODES = [
6740
+ "a",
6741
+ "button",
6742
+ "div",
6743
+ "form",
6744
+ "h2",
6745
+ "h3",
6746
+ "img",
6747
+ "input",
6748
+ "label",
6749
+ "li",
6750
+ "nav",
6751
+ "ol",
6752
+ "p",
6753
+ "select",
6754
+ "span",
6755
+ "svg",
6756
+ "ul"
6757
+ ];
6758
+ var Primitive = NODES.reduce((primitive, node) => {
6759
+ const Slot2 = /* @__PURE__ */ createSlot(`Primitive.${node}`);
6760
+ const Node2 = React.forwardRef((props2, forwardedRef) => {
6761
+ const { asChild, ...primitiveProps } = props2;
6762
+ const Comp = asChild ? Slot2 : node;
6763
+ if (typeof window !== "undefined") {
6764
+ window[Symbol.for("radix-ui")] = true;
6290
6765
  }
6291
- }, [element]);
6292
- return size2;
6766
+ return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
6767
+ });
6768
+ Node2.displayName = `Primitive.${node}`;
6769
+ return { ...primitive, [node]: Node2 };
6770
+ }, {});
6771
+ function dispatchDiscreteCustomEvent(target, event) {
6772
+ if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
6293
6773
  }
6294
6774
  function useStateMachine$1(initialState2, machine) {
6295
6775
  return React.useReducer((state, event) => {
@@ -6301,7 +6781,7 @@ var Presence = (props2) => {
6301
6781
  const { present, children } = props2;
6302
6782
  const presence = usePresence(present);
6303
6783
  const child = typeof children === "function" ? children({ present: presence.isPresent }) : React.Children.only(children);
6304
- const ref = useComposedRefs$1(presence.ref, getElementRef$1(child));
6784
+ const ref = useComposedRefs$1(presence.ref, getElementRef(child));
6305
6785
  const forceMount = typeof children === "function";
6306
6786
  return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;
6307
6787
  };
@@ -6400,7 +6880,7 @@ function usePresence(present) {
6400
6880
  function getAnimationName(styles) {
6401
6881
  return (styles == null ? void 0 : styles.animationName) || "none";
6402
6882
  }
6403
- function getElementRef$1(element) {
6883
+ function getElementRef(element) {
6404
6884
  var _a, _b;
6405
6885
  let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
6406
6886
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
@@ -6414,848 +6894,498 @@ function getElementRef$1(element) {
6414
6894
  }
6415
6895
  return element.props.ref || element.ref;
6416
6896
  }
6417
- // @__NO_SIDE_EFFECTS__
6418
- function createSlot(ownerName) {
6419
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
6420
- const Slot2 = React.forwardRef((props2, forwardedRef) => {
6421
- const { children, ...slotProps } = props2;
6422
- const childrenArray = React.Children.toArray(children);
6423
- const slottable = childrenArray.find(isSlottable);
6424
- if (slottable) {
6425
- const newElement = slottable.props.children;
6426
- const newChildren = childrenArray.map((child) => {
6427
- if (child === slottable) {
6428
- if (React.Children.count(newElement) > 1) return React.Children.only(null);
6429
- return React.isValidElement(newElement) ? newElement.props.children : null;
6430
- } else {
6431
- return child;
6432
- }
6433
- });
6434
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
6435
- }
6436
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
6437
- });
6438
- Slot2.displayName = `${ownerName}.Slot`;
6439
- return Slot2;
6440
- }
6441
- var Slot$4 = /* @__PURE__ */ createSlot("Slot");
6442
- // @__NO_SIDE_EFFECTS__
6443
- function createSlotClone(ownerName) {
6444
- const SlotClone = React.forwardRef((props2, forwardedRef) => {
6445
- const { children, ...slotProps } = props2;
6446
- if (React.isValidElement(children)) {
6447
- const childrenRef = getElementRef(children);
6448
- const props22 = mergeProps(slotProps, children.props);
6449
- if (children.type !== React.Fragment) {
6450
- props22.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
6451
- }
6452
- return React.cloneElement(children, props22);
6453
- }
6454
- return React.Children.count(children) > 1 ? React.Children.only(null) : null;
6455
- });
6456
- SlotClone.displayName = `${ownerName}.SlotClone`;
6457
- return SlotClone;
6458
- }
6459
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
6460
- // @__NO_SIDE_EFFECTS__
6461
- function createSlottable(ownerName) {
6462
- const Slottable2 = ({ children }) => {
6463
- return /* @__PURE__ */ jsx(Fragment, { children });
6464
- };
6465
- Slottable2.displayName = `${ownerName}.Slottable`;
6466
- Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
6467
- return Slottable2;
6468
- }
6469
- function isSlottable(child) {
6470
- return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
6897
+ var useReactId = React[" useId ".trim().toString()] || (() => void 0);
6898
+ var count$1 = 0;
6899
+ function useId$1(deterministicId) {
6900
+ const [id, setId] = React.useState(useReactId());
6901
+ useLayoutEffect2(() => {
6902
+ setId((reactId) => reactId ?? String(count$1++));
6903
+ }, [deterministicId]);
6904
+ return deterministicId || (id ? `radix-${id}` : "");
6471
6905
  }
6472
- function mergeProps(slotProps, childProps) {
6473
- const overrideProps = { ...childProps };
6474
- for (const propName in childProps) {
6475
- const slotPropValue = slotProps[propName];
6476
- const childPropValue = childProps[propName];
6477
- const isHandler = /^on[A-Z]/.test(propName);
6478
- if (isHandler) {
6479
- if (slotPropValue && childPropValue) {
6480
- overrideProps[propName] = (...args) => {
6481
- const result = childPropValue(...args);
6482
- slotPropValue(...args);
6483
- return result;
6484
- };
6485
- } else if (slotPropValue) {
6486
- overrideProps[propName] = slotPropValue;
6906
+ var COLLAPSIBLE_NAME = "Collapsible";
6907
+ var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
6908
+ var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
6909
+ var Collapsible$1 = React.forwardRef(
6910
+ (props2, forwardedRef) => {
6911
+ const {
6912
+ __scopeCollapsible,
6913
+ open: openProp,
6914
+ defaultOpen,
6915
+ disabled,
6916
+ onOpenChange,
6917
+ ...collapsibleProps
6918
+ } = props2;
6919
+ const [open, setOpen] = useControllableState$1({
6920
+ prop: openProp,
6921
+ defaultProp: defaultOpen ?? false,
6922
+ onChange: onOpenChange,
6923
+ caller: COLLAPSIBLE_NAME
6924
+ });
6925
+ return /* @__PURE__ */ jsx(
6926
+ CollapsibleProvider,
6927
+ {
6928
+ scope: __scopeCollapsible,
6929
+ disabled,
6930
+ contentId: useId$1(),
6931
+ open,
6932
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
6933
+ children: /* @__PURE__ */ jsx(
6934
+ Primitive.div,
6935
+ {
6936
+ "data-state": getState$6(open),
6937
+ "data-disabled": disabled ? "" : void 0,
6938
+ ...collapsibleProps,
6939
+ ref: forwardedRef
6940
+ }
6941
+ )
6487
6942
  }
6488
- } else if (propName === "style") {
6489
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
6490
- } else if (propName === "className") {
6491
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
6492
- }
6943
+ );
6493
6944
  }
6494
- return { ...slotProps, ...overrideProps };
6495
- }
6496
- function getElementRef(element) {
6497
- var _a, _b;
6498
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
6499
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
6500
- if (mayWarn) {
6501
- return element.ref;
6945
+ );
6946
+ Collapsible$1.displayName = COLLAPSIBLE_NAME;
6947
+ var TRIGGER_NAME$d = "CollapsibleTrigger";
6948
+ var CollapsibleTrigger$1 = React.forwardRef(
6949
+ (props2, forwardedRef) => {
6950
+ const { __scopeCollapsible, ...triggerProps } = props2;
6951
+ const context = useCollapsibleContext(TRIGGER_NAME$d, __scopeCollapsible);
6952
+ return /* @__PURE__ */ jsx(
6953
+ Primitive.button,
6954
+ {
6955
+ type: "button",
6956
+ "aria-controls": context.contentId,
6957
+ "aria-expanded": context.open || false,
6958
+ "data-state": getState$6(context.open),
6959
+ "data-disabled": context.disabled ? "" : void 0,
6960
+ disabled: context.disabled,
6961
+ ...triggerProps,
6962
+ ref: forwardedRef,
6963
+ onClick: composeEventHandlers(props2.onClick, context.onOpenToggle)
6964
+ }
6965
+ );
6502
6966
  }
6503
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
6504
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
6505
- if (mayWarn) {
6506
- return element.props.ref;
6967
+ );
6968
+ CollapsibleTrigger$1.displayName = TRIGGER_NAME$d;
6969
+ var CONTENT_NAME$e = "CollapsibleContent";
6970
+ var CollapsibleContent$1 = React.forwardRef(
6971
+ (props2, forwardedRef) => {
6972
+ const { forceMount, ...contentProps } = props2;
6973
+ const context = useCollapsibleContext(CONTENT_NAME$e, props2.__scopeCollapsible);
6974
+ return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
6507
6975
  }
6508
- return element.props.ref || element.ref;
6509
- }
6510
- var NODES = [
6511
- "a",
6512
- "button",
6513
- "div",
6514
- "form",
6515
- "h2",
6516
- "h3",
6517
- "img",
6518
- "input",
6519
- "label",
6520
- "li",
6521
- "nav",
6522
- "ol",
6523
- "p",
6524
- "select",
6525
- "span",
6526
- "svg",
6527
- "ul"
6528
- ];
6529
- var Primitive = NODES.reduce((primitive, node) => {
6530
- const Slot2 = /* @__PURE__ */ createSlot(`Primitive.${node}`);
6531
- const Node2 = React.forwardRef((props2, forwardedRef) => {
6532
- const { asChild, ...primitiveProps } = props2;
6533
- const Comp = asChild ? Slot2 : node;
6534
- if (typeof window !== "undefined") {
6535
- window[Symbol.for("radix-ui")] = true;
6976
+ );
6977
+ CollapsibleContent$1.displayName = CONTENT_NAME$e;
6978
+ var CollapsibleContentImpl = React.forwardRef((props2, forwardedRef) => {
6979
+ const { __scopeCollapsible, present, children, ...contentProps } = props2;
6980
+ const context = useCollapsibleContext(CONTENT_NAME$e, __scopeCollapsible);
6981
+ const [isPresent, setIsPresent] = React.useState(present);
6982
+ const ref = React.useRef(null);
6983
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
6984
+ const heightRef = React.useRef(0);
6985
+ const height = heightRef.current;
6986
+ const widthRef = React.useRef(0);
6987
+ const width = widthRef.current;
6988
+ const isOpen = context.open || isPresent;
6989
+ const isMountAnimationPreventedRef = React.useRef(isOpen);
6990
+ const originalStylesRef = React.useRef(void 0);
6991
+ React.useEffect(() => {
6992
+ const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
6993
+ return () => cancelAnimationFrame(rAF);
6994
+ }, []);
6995
+ useLayoutEffect2(() => {
6996
+ const node = ref.current;
6997
+ if (node) {
6998
+ originalStylesRef.current = originalStylesRef.current || {
6999
+ transitionDuration: node.style.transitionDuration,
7000
+ animationName: node.style.animationName
7001
+ };
7002
+ node.style.transitionDuration = "0s";
7003
+ node.style.animationName = "none";
7004
+ const rect = node.getBoundingClientRect();
7005
+ heightRef.current = rect.height;
7006
+ widthRef.current = rect.width;
7007
+ if (!isMountAnimationPreventedRef.current) {
7008
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
7009
+ node.style.animationName = originalStylesRef.current.animationName;
7010
+ }
7011
+ setIsPresent(present);
6536
7012
  }
6537
- return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
6538
- });
6539
- Node2.displayName = `Primitive.${node}`;
6540
- return { ...primitive, [node]: Node2 };
6541
- }, {});
6542
- function dispatchDiscreteCustomEvent(target, event) {
6543
- if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
6544
- }
6545
- var CHECKBOX_NAME = "Checkbox";
6546
- var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
6547
- var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
6548
- function CheckboxProvider(props2) {
6549
- const {
6550
- __scopeCheckbox,
6551
- checked: checkedProp,
6552
- children,
6553
- defaultChecked,
6554
- disabled,
6555
- form,
6556
- name,
6557
- onCheckedChange,
6558
- required: required2,
6559
- value = "on",
6560
- // @ts-expect-error
6561
- internal_do_not_use_render
6562
- } = props2;
6563
- const [checked, setChecked] = useControllableState$1({
6564
- prop: checkedProp,
6565
- defaultProp: defaultChecked ?? false,
6566
- onChange: onCheckedChange,
6567
- caller: CHECKBOX_NAME
6568
- });
6569
- const [control, setControl] = React.useState(null);
6570
- const [bubbleInput, setBubbleInput] = React.useState(null);
6571
- const hasConsumerStoppedPropagationRef = React.useRef(false);
6572
- const isFormControl = control ? !!form || !!control.closest("form") : (
6573
- // We set this to true by default so that events bubble to forms without JS (SSR)
6574
- true
6575
- );
6576
- const context = {
6577
- checked,
6578
- disabled,
6579
- setChecked,
6580
- control,
6581
- setControl,
6582
- name,
6583
- form,
6584
- value,
6585
- hasConsumerStoppedPropagationRef,
6586
- required: required2,
6587
- defaultChecked: isIndeterminate$1(defaultChecked) ? false : defaultChecked,
6588
- isFormControl,
6589
- bubbleInput,
6590
- setBubbleInput
6591
- };
7013
+ }, [context.open, present]);
6592
7014
  return /* @__PURE__ */ jsx(
6593
- CheckboxProviderImpl,
7015
+ Primitive.div,
6594
7016
  {
6595
- scope: __scopeCheckbox,
6596
- ...context,
6597
- children: isFunction$2(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
7017
+ "data-state": getState$6(context.open),
7018
+ "data-disabled": context.disabled ? "" : void 0,
7019
+ id: context.contentId,
7020
+ hidden: !isOpen,
7021
+ ...contentProps,
7022
+ ref: composedRefs,
7023
+ style: {
7024
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
7025
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
7026
+ ...props2.style
7027
+ },
7028
+ children: isOpen && children
6598
7029
  }
6599
7030
  );
7031
+ });
7032
+ function getState$6(open) {
7033
+ return open ? "open" : "closed";
6600
7034
  }
6601
- var TRIGGER_NAME$d = "CheckboxTrigger";
6602
- var CheckboxTrigger = React.forwardRef(
6603
- ({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {
7035
+ var Root$f = Collapsible$1;
7036
+ var Trigger$a = CollapsibleTrigger$1;
7037
+ var Content$5 = CollapsibleContent$1;
7038
+ var DirectionContext = React.createContext(void 0);
7039
+ function useDirection(localDir) {
7040
+ const globalDir = React.useContext(DirectionContext);
7041
+ return localDir || globalDir || "ltr";
7042
+ }
7043
+ var ACCORDION_NAME = "Accordion";
7044
+ var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
7045
+ var [Collection$6, useCollection$6, createCollectionScope$6] = createCollection(ACCORDION_NAME);
7046
+ var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
7047
+ createCollectionScope$6,
7048
+ createCollapsibleScope
7049
+ ]);
7050
+ var useCollapsibleScope = createCollapsibleScope();
7051
+ var Accordion$1 = React__default.forwardRef(
7052
+ (props2, forwardedRef) => {
7053
+ const { type, ...accordionProps } = props2;
7054
+ const singleProps = accordionProps;
7055
+ const multipleProps = accordionProps;
7056
+ return /* @__PURE__ */ jsx(Collection$6.Provider, { scope: props2.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
7057
+ }
7058
+ );
7059
+ Accordion$1.displayName = ACCORDION_NAME;
7060
+ var [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);
7061
+ var [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(
7062
+ ACCORDION_NAME,
7063
+ { collapsible: false }
7064
+ );
7065
+ var AccordionImplSingle = React__default.forwardRef(
7066
+ (props2, forwardedRef) => {
6604
7067
  const {
6605
- control,
6606
- value,
6607
- disabled,
6608
- checked,
6609
- required: required2,
6610
- setControl,
6611
- setChecked,
6612
- hasConsumerStoppedPropagationRef,
6613
- isFormControl,
6614
- bubbleInput
6615
- } = useCheckboxContext(TRIGGER_NAME$d, __scopeCheckbox);
6616
- const composedRefs = useComposedRefs$1(forwardedRef, setControl);
6617
- const initialCheckedStateRef = React.useRef(checked);
6618
- React.useEffect(() => {
6619
- const form = control == null ? void 0 : control.form;
6620
- if (form) {
6621
- const reset2 = () => setChecked(initialCheckedStateRef.current);
6622
- form.addEventListener("reset", reset2);
6623
- return () => form.removeEventListener("reset", reset2);
6624
- }
6625
- }, [control, setChecked]);
7068
+ value: valueProp,
7069
+ defaultValue,
7070
+ onValueChange = () => {
7071
+ },
7072
+ collapsible = false,
7073
+ ...accordionSingleProps
7074
+ } = props2;
7075
+ const [value, setValue] = useControllableState$1({
7076
+ prop: valueProp,
7077
+ defaultProp: defaultValue ?? "",
7078
+ onChange: onValueChange,
7079
+ caller: ACCORDION_NAME
7080
+ });
6626
7081
  return /* @__PURE__ */ jsx(
6627
- Primitive.button,
7082
+ AccordionValueProvider,
6628
7083
  {
6629
- type: "button",
6630
- role: "checkbox",
6631
- "aria-checked": isIndeterminate$1(checked) ? "mixed" : checked,
6632
- "aria-required": required2,
6633
- "data-state": getState$6(checked),
6634
- "data-disabled": disabled ? "" : void 0,
6635
- disabled,
6636
- value,
6637
- ...checkboxProps,
6638
- ref: composedRefs,
6639
- onKeyDown: composeEventHandlers(onKeyDown, (event) => {
6640
- if (event.key === "Enter") event.preventDefault();
6641
- }),
6642
- onClick: composeEventHandlers(onClick, (event) => {
6643
- setChecked((prevChecked) => isIndeterminate$1(prevChecked) ? true : !prevChecked);
6644
- if (bubbleInput && isFormControl) {
6645
- hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
6646
- if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
6647
- }
6648
- })
7084
+ scope: props2.__scopeAccordion,
7085
+ value: React__default.useMemo(() => value ? [value] : [], [value]),
7086
+ onItemOpen: setValue,
7087
+ onItemClose: React__default.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
7088
+ children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props2.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
6649
7089
  }
6650
7090
  );
6651
7091
  }
6652
7092
  );
6653
- CheckboxTrigger.displayName = TRIGGER_NAME$d;
6654
- var Checkbox$1 = React.forwardRef(
6655
- (props2, forwardedRef) => {
6656
- const {
6657
- __scopeCheckbox,
6658
- name,
6659
- checked,
6660
- defaultChecked,
6661
- required: required2,
6662
- disabled,
7093
+ var AccordionImplMultiple = React__default.forwardRef((props2, forwardedRef) => {
7094
+ const {
7095
+ value: valueProp,
7096
+ defaultValue,
7097
+ onValueChange = () => {
7098
+ },
7099
+ ...accordionMultipleProps
7100
+ } = props2;
7101
+ const [value, setValue] = useControllableState$1({
7102
+ prop: valueProp,
7103
+ defaultProp: defaultValue ?? [],
7104
+ onChange: onValueChange,
7105
+ caller: ACCORDION_NAME
7106
+ });
7107
+ const handleItemOpen = React__default.useCallback(
7108
+ (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
7109
+ [setValue]
7110
+ );
7111
+ const handleItemClose = React__default.useCallback(
7112
+ (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
7113
+ [setValue]
7114
+ );
7115
+ return /* @__PURE__ */ jsx(
7116
+ AccordionValueProvider,
7117
+ {
7118
+ scope: props2.__scopeAccordion,
6663
7119
  value,
6664
- onCheckedChange,
6665
- form,
6666
- ...checkboxProps
6667
- } = props2;
7120
+ onItemOpen: handleItemOpen,
7121
+ onItemClose: handleItemClose,
7122
+ children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props2.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
7123
+ }
7124
+ );
7125
+ });
7126
+ var [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);
7127
+ var AccordionImpl = React__default.forwardRef(
7128
+ (props2, forwardedRef) => {
7129
+ const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props2;
7130
+ const accordionRef = React__default.useRef(null);
7131
+ const composedRefs = useComposedRefs$1(accordionRef, forwardedRef);
7132
+ const getItems = useCollection$6(__scopeAccordion);
7133
+ const direction = useDirection(dir);
7134
+ const isDirectionLTR = direction === "ltr";
7135
+ const handleKeyDown = composeEventHandlers(props2.onKeyDown, (event) => {
7136
+ var _a;
7137
+ if (!ACCORDION_KEYS.includes(event.key)) return;
7138
+ const target = event.target;
7139
+ const triggerCollection = getItems().filter((item) => {
7140
+ var _a2;
7141
+ return !((_a2 = item.ref.current) == null ? void 0 : _a2.disabled);
7142
+ });
7143
+ const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);
7144
+ const triggerCount = triggerCollection.length;
7145
+ if (triggerIndex === -1) return;
7146
+ event.preventDefault();
7147
+ let nextIndex = triggerIndex;
7148
+ const homeIndex = 0;
7149
+ const endIndex = triggerCount - 1;
7150
+ const moveNext = () => {
7151
+ nextIndex = triggerIndex + 1;
7152
+ if (nextIndex > endIndex) {
7153
+ nextIndex = homeIndex;
7154
+ }
7155
+ };
7156
+ const movePrev = () => {
7157
+ nextIndex = triggerIndex - 1;
7158
+ if (nextIndex < homeIndex) {
7159
+ nextIndex = endIndex;
7160
+ }
7161
+ };
7162
+ switch (event.key) {
7163
+ case "Home":
7164
+ nextIndex = homeIndex;
7165
+ break;
7166
+ case "End":
7167
+ nextIndex = endIndex;
7168
+ break;
7169
+ case "ArrowRight":
7170
+ if (orientation === "horizontal") {
7171
+ if (isDirectionLTR) {
7172
+ moveNext();
7173
+ } else {
7174
+ movePrev();
7175
+ }
7176
+ }
7177
+ break;
7178
+ case "ArrowDown":
7179
+ if (orientation === "vertical") {
7180
+ moveNext();
7181
+ }
7182
+ break;
7183
+ case "ArrowLeft":
7184
+ if (orientation === "horizontal") {
7185
+ if (isDirectionLTR) {
7186
+ movePrev();
7187
+ } else {
7188
+ moveNext();
7189
+ }
7190
+ }
7191
+ break;
7192
+ case "ArrowUp":
7193
+ if (orientation === "vertical") {
7194
+ movePrev();
7195
+ }
7196
+ break;
7197
+ }
7198
+ const clampedIndex = nextIndex % triggerCount;
7199
+ (_a = triggerCollection[clampedIndex].ref.current) == null ? void 0 : _a.focus();
7200
+ });
6668
7201
  return /* @__PURE__ */ jsx(
6669
- CheckboxProvider,
7202
+ AccordionImplProvider,
6670
7203
  {
6671
- __scopeCheckbox,
6672
- checked,
6673
- defaultChecked,
7204
+ scope: __scopeAccordion,
6674
7205
  disabled,
6675
- required: required2,
6676
- onCheckedChange,
6677
- name,
6678
- form,
6679
- value,
6680
- internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [
6681
- /* @__PURE__ */ jsx(
6682
- CheckboxTrigger,
6683
- {
6684
- ...checkboxProps,
6685
- ref: forwardedRef,
6686
- __scopeCheckbox
6687
- }
6688
- ),
6689
- isFormControl && /* @__PURE__ */ jsx(
6690
- CheckboxBubbleInput,
6691
- {
6692
- __scopeCheckbox
6693
- }
6694
- )
6695
- ] })
7206
+ direction: dir,
7207
+ orientation,
7208
+ children: /* @__PURE__ */ jsx(Collection$6.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
7209
+ Primitive.div,
7210
+ {
7211
+ ...accordionProps,
7212
+ "data-orientation": orientation,
7213
+ ref: composedRefs,
7214
+ onKeyDown: disabled ? void 0 : handleKeyDown
7215
+ }
7216
+ ) })
6696
7217
  }
6697
7218
  );
6698
7219
  }
6699
7220
  );
6700
- Checkbox$1.displayName = CHECKBOX_NAME;
6701
- var INDICATOR_NAME$6 = "CheckboxIndicator";
6702
- var CheckboxIndicator = React.forwardRef(
7221
+ var ITEM_NAME$9 = "AccordionItem";
7222
+ var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME$9);
7223
+ var AccordionItem$1 = React__default.forwardRef(
6703
7224
  (props2, forwardedRef) => {
6704
- const { __scopeCheckbox, forceMount, ...indicatorProps } = props2;
6705
- const context = useCheckboxContext(INDICATOR_NAME$6, __scopeCheckbox);
7225
+ const { __scopeAccordion, value, ...accordionItemProps } = props2;
7226
+ const accordionContext = useAccordionContext(ITEM_NAME$9, __scopeAccordion);
7227
+ const valueContext = useAccordionValueContext(ITEM_NAME$9, __scopeAccordion);
7228
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
7229
+ const triggerId = useId$1();
7230
+ const open = value && valueContext.value.includes(value) || false;
7231
+ const disabled = accordionContext.disabled || props2.disabled;
6706
7232
  return /* @__PURE__ */ jsx(
6707
- Presence,
7233
+ AccordionItemProvider,
6708
7234
  {
6709
- present: forceMount || isIndeterminate$1(context.checked) || context.checked === true,
7235
+ scope: __scopeAccordion,
7236
+ open,
7237
+ disabled,
7238
+ triggerId,
6710
7239
  children: /* @__PURE__ */ jsx(
6711
- Primitive.span,
7240
+ Root$f,
6712
7241
  {
6713
- "data-state": getState$6(context.checked),
6714
- "data-disabled": context.disabled ? "" : void 0,
6715
- ...indicatorProps,
7242
+ "data-orientation": accordionContext.orientation,
7243
+ "data-state": getState$5(open),
7244
+ ...collapsibleScope,
7245
+ ...accordionItemProps,
6716
7246
  ref: forwardedRef,
6717
- style: { pointerEvents: "none", ...props2.style }
7247
+ disabled,
7248
+ open,
7249
+ onOpenChange: (open2) => {
7250
+ if (open2) {
7251
+ valueContext.onItemOpen(value);
7252
+ } else {
7253
+ valueContext.onItemClose(value);
7254
+ }
7255
+ }
6718
7256
  }
6719
7257
  )
6720
7258
  }
6721
7259
  );
6722
7260
  }
6723
7261
  );
6724
- CheckboxIndicator.displayName = INDICATOR_NAME$6;
6725
- var BUBBLE_INPUT_NAME$4 = "CheckboxBubbleInput";
6726
- var CheckboxBubbleInput = React.forwardRef(
6727
- ({ __scopeCheckbox, ...props2 }, forwardedRef) => {
6728
- const {
6729
- control,
6730
- hasConsumerStoppedPropagationRef,
6731
- checked,
6732
- defaultChecked,
6733
- required: required2,
6734
- disabled,
6735
- name,
6736
- value,
6737
- form,
6738
- bubbleInput,
6739
- setBubbleInput
6740
- } = useCheckboxContext(BUBBLE_INPUT_NAME$4, __scopeCheckbox);
6741
- const composedRefs = useComposedRefs$1(forwardedRef, setBubbleInput);
6742
- const prevChecked = usePrevious(checked);
6743
- const controlSize = useSize(control);
6744
- React.useEffect(() => {
6745
- const input = bubbleInput;
6746
- if (!input) return;
6747
- const inputProto = window.HTMLInputElement.prototype;
6748
- const descriptor = Object.getOwnPropertyDescriptor(
6749
- inputProto,
6750
- "checked"
6751
- );
6752
- const setChecked = descriptor.set;
6753
- const bubbles = !hasConsumerStoppedPropagationRef.current;
6754
- if (prevChecked !== checked && setChecked) {
6755
- const event = new Event("click", { bubbles });
6756
- input.indeterminate = isIndeterminate$1(checked);
6757
- setChecked.call(input, isIndeterminate$1(checked) ? false : checked);
6758
- input.dispatchEvent(event);
6759
- }
6760
- }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);
6761
- const defaultCheckedRef = React.useRef(isIndeterminate$1(checked) ? false : checked);
7262
+ AccordionItem$1.displayName = ITEM_NAME$9;
7263
+ var HEADER_NAME = "AccordionHeader";
7264
+ var AccordionHeader = React__default.forwardRef(
7265
+ (props2, forwardedRef) => {
7266
+ const { __scopeAccordion, ...headerProps } = props2;
7267
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
7268
+ const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
6762
7269
  return /* @__PURE__ */ jsx(
6763
- Primitive.input,
7270
+ Primitive.h3,
6764
7271
  {
6765
- type: "checkbox",
6766
- "aria-hidden": true,
6767
- defaultChecked: defaultChecked ?? defaultCheckedRef.current,
6768
- required: required2,
6769
- disabled,
6770
- name,
6771
- value,
6772
- form,
6773
- ...props2,
6774
- tabIndex: -1,
6775
- ref: composedRefs,
6776
- style: {
6777
- ...props2.style,
6778
- ...controlSize,
6779
- position: "absolute",
6780
- pointerEvents: "none",
6781
- opacity: 0,
6782
- margin: 0,
6783
- // We transform because the input is absolutely positioned but we have
6784
- // rendered it **after** the button. This pulls it back to sit on top
6785
- // of the button.
6786
- transform: "translateX(-100%)"
7272
+ "data-orientation": accordionContext.orientation,
7273
+ "data-state": getState$5(itemContext.open),
7274
+ "data-disabled": itemContext.disabled ? "" : void 0,
7275
+ ...headerProps,
7276
+ ref: forwardedRef
7277
+ }
7278
+ );
7279
+ }
7280
+ );
7281
+ AccordionHeader.displayName = HEADER_NAME;
7282
+ var TRIGGER_NAME$c = "AccordionTrigger";
7283
+ var AccordionTrigger$1 = React__default.forwardRef(
7284
+ (props2, forwardedRef) => {
7285
+ const { __scopeAccordion, ...triggerProps } = props2;
7286
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
7287
+ const itemContext = useAccordionItemContext(TRIGGER_NAME$c, __scopeAccordion);
7288
+ const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME$c, __scopeAccordion);
7289
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
7290
+ return /* @__PURE__ */ jsx(Collection$6.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
7291
+ Trigger$a,
7292
+ {
7293
+ "aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
7294
+ "data-orientation": accordionContext.orientation,
7295
+ id: itemContext.triggerId,
7296
+ ...collapsibleScope,
7297
+ ...triggerProps,
7298
+ ref: forwardedRef
7299
+ }
7300
+ ) });
7301
+ }
7302
+ );
7303
+ AccordionTrigger$1.displayName = TRIGGER_NAME$c;
7304
+ var CONTENT_NAME$d = "AccordionContent";
7305
+ var AccordionContent$1 = React__default.forwardRef(
7306
+ (props2, forwardedRef) => {
7307
+ const { __scopeAccordion, ...contentProps } = props2;
7308
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
7309
+ const itemContext = useAccordionItemContext(CONTENT_NAME$d, __scopeAccordion);
7310
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
7311
+ return /* @__PURE__ */ jsx(
7312
+ Content$5,
7313
+ {
7314
+ role: "region",
7315
+ "aria-labelledby": itemContext.triggerId,
7316
+ "data-orientation": accordionContext.orientation,
7317
+ ...collapsibleScope,
7318
+ ...contentProps,
7319
+ ref: forwardedRef,
7320
+ style: {
7321
+ ["--radix-accordion-content-height"]: "var(--radix-collapsible-content-height)",
7322
+ ["--radix-accordion-content-width"]: "var(--radix-collapsible-content-width)",
7323
+ ...props2.style
6787
7324
  }
6788
7325
  }
6789
7326
  );
6790
7327
  }
6791
7328
  );
6792
- CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME$4;
6793
- function isFunction$2(value) {
6794
- return typeof value === "function";
6795
- }
6796
- function isIndeterminate$1(checked) {
6797
- return checked === "indeterminate";
7329
+ AccordionContent$1.displayName = CONTENT_NAME$d;
7330
+ function getState$5(open) {
7331
+ return open ? "open" : "closed";
6798
7332
  }
6799
- function getState$6(checked) {
6800
- return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
7333
+ var Root2$b = Accordion$1;
7334
+ var Item$3 = AccordionItem$1;
7335
+ var Header = AccordionHeader;
7336
+ var Trigger2$1 = AccordionTrigger$1;
7337
+ var Content2$9 = AccordionContent$1;
7338
+ function Accordion({
7339
+ ...props2
7340
+ }) {
7341
+ return /* @__PURE__ */ jsx(Root2$b, { "data-slot": "accordion", ...props2 });
6801
7342
  }
6802
- /**
6803
- * @license lucide-react v0.540.0 - ISC
6804
- *
6805
- * This source code is licensed under the ISC license.
6806
- * See the LICENSE file in the root directory of this source tree.
6807
- */
6808
- const toKebabCase = (string2) => string2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6809
- const toCamelCase = (string2) => string2.replace(
6810
- /^([A-Z])|[\s-_]+(\w)/g,
6811
- (match2, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
6812
- );
6813
- const toPascalCase = (string2) => {
6814
- const camelCase = toCamelCase(string2);
6815
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
6816
- };
6817
- const mergeClasses = (...classes) => classes.filter((className, index2, array2) => {
6818
- return Boolean(className) && className.trim() !== "" && array2.indexOf(className) === index2;
6819
- }).join(" ").trim();
6820
- const hasA11yProp = (props2) => {
6821
- for (const prop in props2) {
6822
- if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
6823
- return true;
6824
- }
6825
- }
6826
- };
6827
- /**
6828
- * @license lucide-react v0.540.0 - ISC
6829
- *
6830
- * This source code is licensed under the ISC license.
6831
- * See the LICENSE file in the root directory of this source tree.
6832
- */
6833
- var defaultAttributes = {
6834
- xmlns: "http://www.w3.org/2000/svg",
6835
- width: 24,
6836
- height: 24,
6837
- viewBox: "0 0 24 24",
6838
- fill: "none",
6839
- stroke: "currentColor",
6840
- strokeWidth: 2,
6841
- strokeLinecap: "round",
6842
- strokeLinejoin: "round"
6843
- };
6844
- /**
6845
- * @license lucide-react v0.540.0 - ISC
6846
- *
6847
- * This source code is licensed under the ISC license.
6848
- * See the LICENSE file in the root directory of this source tree.
6849
- */
6850
- const Icon$1 = forwardRef(
6851
- ({
6852
- color = "currentColor",
6853
- size: size2 = 24,
6854
- strokeWidth = 2,
6855
- absoluteStrokeWidth,
6856
- className = "",
6857
- children,
6858
- iconNode,
6859
- ...rest
6860
- }, ref) => createElement(
6861
- "svg",
7343
+ function AccordionItem({
7344
+ className,
7345
+ ...props2
7346
+ }) {
7347
+ return /* @__PURE__ */ jsx(
7348
+ Item$3,
6862
7349
  {
6863
- ref,
6864
- ...defaultAttributes,
6865
- width: size2,
6866
- height: size2,
6867
- stroke: color,
6868
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size2) : strokeWidth,
6869
- className: mergeClasses("lucide", className),
6870
- ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
6871
- ...rest
6872
- },
6873
- [
6874
- ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
6875
- ...Array.isArray(children) ? children : [children]
6876
- ]
6877
- )
6878
- );
6879
- /**
6880
- * @license lucide-react v0.540.0 - ISC
6881
- *
6882
- * This source code is licensed under the ISC license.
6883
- * See the LICENSE file in the root directory of this source tree.
6884
- */
6885
- const createLucideIcon = (iconName, iconNode) => {
6886
- const Component = forwardRef(
6887
- ({ className, ...props2 }, ref) => createElement(Icon$1, {
6888
- ref,
6889
- iconNode,
6890
- className: mergeClasses(
6891
- `lucide-${toKebabCase(toPascalCase(iconName))}`,
6892
- `lucide-${iconName}`,
6893
- className
6894
- ),
7350
+ "data-slot": "accordion-item",
7351
+ className: cn$1("border-b last:border-b-0", className),
6895
7352
  ...props2
6896
- })
6897
- );
6898
- Component.displayName = toPascalCase(iconName);
6899
- return Component;
6900
- };
6901
- /**
6902
- * @license lucide-react v0.540.0 - ISC
6903
- *
6904
- * This source code is licensed under the ISC license.
6905
- * See the LICENSE file in the root directory of this source tree.
6906
- */
6907
- const __iconNode$r = [
6908
- ["path", { d: "M12 5v14", key: "s699le" }],
6909
- ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
6910
- ];
6911
- const ArrowDown = createLucideIcon("arrow-down", __iconNode$r);
6912
- /**
6913
- * @license lucide-react v0.540.0 - ISC
6914
- *
6915
- * This source code is licensed under the ISC license.
6916
- * See the LICENSE file in the root directory of this source tree.
6917
- */
6918
- const __iconNode$q = [
6919
- ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
6920
- ["path", { d: "M12 19V5", key: "x0mq9r" }]
6921
- ];
6922
- const ArrowUp = createLucideIcon("arrow-up", __iconNode$q);
6923
- /**
6924
- * @license lucide-react v0.540.0 - ISC
6925
- *
6926
- * This source code is licensed under the ISC license.
6927
- * See the LICENSE file in the root directory of this source tree.
6928
- */
6929
- const __iconNode$p = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
6930
- const Check = createLucideIcon("check", __iconNode$p);
6931
- /**
6932
- * @license lucide-react v0.540.0 - ISC
6933
- *
6934
- * This source code is licensed under the ISC license.
6935
- * See the LICENSE file in the root directory of this source tree.
6936
- */
6937
- const __iconNode$o = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
6938
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$o);
6939
- /**
6940
- * @license lucide-react v0.540.0 - ISC
6941
- *
6942
- * This source code is licensed under the ISC license.
6943
- * See the LICENSE file in the root directory of this source tree.
6944
- */
6945
- const __iconNode$n = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
6946
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode$n);
6947
- /**
6948
- * @license lucide-react v0.540.0 - ISC
6949
- *
6950
- * This source code is licensed under the ISC license.
6951
- * See the LICENSE file in the root directory of this source tree.
6952
- */
6953
- const __iconNode$m = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
6954
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$m);
6955
- /**
6956
- * @license lucide-react v0.540.0 - ISC
6957
- *
6958
- * This source code is licensed under the ISC license.
6959
- * See the LICENSE file in the root directory of this source tree.
6960
- */
6961
- const __iconNode$l = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
6962
- const ChevronUp = createLucideIcon("chevron-up", __iconNode$l);
6963
- /**
6964
- * @license lucide-react v0.540.0 - ISC
6965
- *
6966
- * This source code is licensed under the ISC license.
6967
- * See the LICENSE file in the root directory of this source tree.
6968
- */
6969
- const __iconNode$k = [
6970
- ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
6971
- ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
6972
- ];
6973
- const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$k);
6974
- /**
6975
- * @license lucide-react v0.540.0 - ISC
6976
- *
6977
- * This source code is licensed under the ISC license.
6978
- * See the LICENSE file in the root directory of this source tree.
6979
- */
6980
- const __iconNode$j = [
6981
- ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
6982
- ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
6983
- ];
6984
- const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$j);
6985
- /**
6986
- * @license lucide-react v0.540.0 - ISC
6987
- *
6988
- * This source code is licensed under the ISC license.
6989
- * See the LICENSE file in the root directory of this source tree.
6990
- */
6991
- const __iconNode$i = [
6992
- ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
6993
- ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
6994
- ];
6995
- const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$i);
6996
- /**
6997
- * @license lucide-react v0.540.0 - ISC
6998
- *
6999
- * This source code is licensed under the ISC license.
7000
- * See the LICENSE file in the root directory of this source tree.
7001
- */
7002
- const __iconNode$h = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
7003
- const Circle = createLucideIcon("circle", __iconNode$h);
7004
- /**
7005
- * @license lucide-react v0.540.0 - ISC
7006
- *
7007
- * This source code is licensed under the ISC license.
7008
- * See the LICENSE file in the root directory of this source tree.
7009
- */
7010
- const __iconNode$g = [
7011
- ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
7012
- ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
7013
- ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
7014
- ];
7015
- const Ellipsis = createLucideIcon("ellipsis", __iconNode$g);
7016
- /**
7017
- * @license lucide-react v0.540.0 - ISC
7018
- *
7019
- * This source code is licensed under the ISC license.
7020
- * See the LICENSE file in the root directory of this source tree.
7021
- */
7022
- const __iconNode$f = [
7023
- [
7024
- "path",
7025
- {
7026
- d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
7027
- key: "ct8e1f"
7028
7353
  }
7029
- ],
7030
- ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }],
7031
- [
7032
- "path",
7033
- {
7034
- d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
7035
- key: "13bj9a"
7036
- }
7037
- ],
7038
- ["path", { d: "m2 2 20 20", key: "1ooewy" }]
7039
- ];
7040
- const EyeOff = createLucideIcon("eye-off", __iconNode$f);
7041
- /**
7042
- * @license lucide-react v0.540.0 - ISC
7043
- *
7044
- * This source code is licensed under the ISC license.
7045
- * See the LICENSE file in the root directory of this source tree.
7046
- */
7047
- const __iconNode$e = [
7048
- ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
7049
- ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
7050
- ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
7051
- ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
7052
- ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
7053
- ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
7054
- ];
7055
- const GripVertical = createLucideIcon("grip-vertical", __iconNode$e);
7056
- /**
7057
- * @license lucide-react v0.540.0 - ISC
7058
- *
7059
- * This source code is licensed under the ISC license.
7060
- * See the LICENSE file in the root directory of this source tree.
7061
- */
7062
- const __iconNode$d = [
7063
- [
7064
- "path",
7065
- {
7066
- d: "M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",
7067
- key: "1pdavp"
7068
- }
7069
- ],
7070
- ["path", { d: "M20.054 15.987H3.946", key: "14rxg9" }]
7071
- ];
7072
- const Laptop = createLucideIcon("laptop", __iconNode$d);
7073
- /**
7074
- * @license lucide-react v0.540.0 - ISC
7075
- *
7076
- * This source code is licensed under the ISC license.
7077
- * See the LICENSE file in the root directory of this source tree.
7078
- */
7079
- const __iconNode$c = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
7080
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$c);
7081
- /**
7082
- * @license lucide-react v0.540.0 - ISC
7083
- *
7084
- * This source code is licensed under the ISC license.
7085
- * See the LICENSE file in the root directory of this source tree.
7086
- */
7087
- const __iconNode$b = [
7088
- ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
7089
- ["path", { d: "M21 12H9", key: "dn1m92" }],
7090
- ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
7091
- ];
7092
- const LogOut = createLucideIcon("log-out", __iconNode$b);
7093
- /**
7094
- * @license lucide-react v0.540.0 - ISC
7095
- *
7096
- * This source code is licensed under the ISC license.
7097
- * See the LICENSE file in the root directory of this source tree.
7098
- */
7099
- const __iconNode$a = [["path", { d: "M5 12h14", key: "1ays0h" }]];
7100
- const Minus = createLucideIcon("minus", __iconNode$a);
7101
- /**
7102
- * @license lucide-react v0.540.0 - ISC
7103
- *
7104
- * This source code is licensed under the ISC license.
7105
- * See the LICENSE file in the root directory of this source tree.
7106
- */
7107
- const __iconNode$9 = [
7108
- [
7109
- "path",
7110
- {
7111
- d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
7112
- key: "kfwtm"
7113
- }
7114
- ]
7115
- ];
7116
- const Moon = createLucideIcon("moon", __iconNode$9);
7117
- /**
7118
- * @license lucide-react v0.540.0 - ISC
7119
- *
7120
- * This source code is licensed under the ISC license.
7121
- * See the LICENSE file in the root directory of this source tree.
7122
- */
7123
- const __iconNode$8 = [
7124
- [
7125
- "path",
7126
- {
7127
- d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
7128
- key: "1a0edw"
7129
- }
7130
- ],
7131
- ["path", { d: "M12 22V12", key: "d0xqtd" }],
7132
- ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
7133
- ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
7134
- ];
7135
- const Package = createLucideIcon("package", __iconNode$8);
7136
- /**
7137
- * @license lucide-react v0.540.0 - ISC
7138
- *
7139
- * This source code is licensed under the ISC license.
7140
- * See the LICENSE file in the root directory of this source tree.
7141
- */
7142
- const __iconNode$7 = [
7143
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
7144
- ["path", { d: "M9 3v18", key: "fh3hqa" }]
7145
- ];
7146
- const PanelLeft = createLucideIcon("panel-left", __iconNode$7);
7147
- /**
7148
- * @license lucide-react v0.540.0 - ISC
7149
- *
7150
- * This source code is licensed under the ISC license.
7151
- * See the LICENSE file in the root directory of this source tree.
7152
- */
7153
- const __iconNode$6 = [
7154
- ["path", { d: "M5 12h14", key: "1ays0h" }],
7155
- ["path", { d: "M12 5v14", key: "s699le" }]
7156
- ];
7157
- const Plus = createLucideIcon("plus", __iconNode$6);
7158
- /**
7159
- * @license lucide-react v0.540.0 - ISC
7160
- *
7161
- * This source code is licensed under the ISC license.
7162
- * See the LICENSE file in the root directory of this source tree.
7163
- */
7164
- const __iconNode$5 = [
7165
- ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
7166
- ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
7167
- ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
7168
- ["path", { d: "M8 16H3v5", key: "1cv678" }]
7169
- ];
7170
- const RefreshCw = createLucideIcon("refresh-cw", __iconNode$5);
7171
- /**
7172
- * @license lucide-react v0.540.0 - ISC
7173
- *
7174
- * This source code is licensed under the ISC license.
7175
- * See the LICENSE file in the root directory of this source tree.
7176
- */
7177
- const __iconNode$4 = [
7178
- ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
7179
- ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
7180
- ];
7181
- const Search = createLucideIcon("search", __iconNode$4);
7182
- /**
7183
- * @license lucide-react v0.540.0 - ISC
7184
- *
7185
- * This source code is licensed under the ISC license.
7186
- * See the LICENSE file in the root directory of this source tree.
7187
- */
7188
- const __iconNode$3 = [
7189
- ["path", { d: "M14 17H5", key: "gfn3mx" }],
7190
- ["path", { d: "M19 7h-9", key: "6i9tg" }],
7191
- ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
7192
- ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
7193
- ];
7194
- const Settings2 = createLucideIcon("settings-2", __iconNode$3);
7195
- /**
7196
- * @license lucide-react v0.540.0 - ISC
7197
- *
7198
- * This source code is licensed under the ISC license.
7199
- * See the LICENSE file in the root directory of this source tree.
7200
- */
7201
- const __iconNode$2 = [
7202
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
7203
- ["path", { d: "M12 2v2", key: "tus03m" }],
7204
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
7205
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
7206
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
7207
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
7208
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
7209
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
7210
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
7211
- ];
7212
- const Sun = createLucideIcon("sun", __iconNode$2);
7213
- /**
7214
- * @license lucide-react v0.540.0 - ISC
7215
- *
7216
- * This source code is licensed under the ISC license.
7217
- * See the LICENSE file in the root directory of this source tree.
7218
- */
7219
- const __iconNode$1 = [
7220
- ["path", { d: "M10 11v6", key: "nco0om" }],
7221
- ["path", { d: "M14 11v6", key: "outv1u" }],
7222
- ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
7223
- ["path", { d: "M3 6h18", key: "d0wm0j" }],
7224
- ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
7225
- ];
7226
- const Trash2 = createLucideIcon("trash-2", __iconNode$1);
7227
- /**
7228
- * @license lucide-react v0.540.0 - ISC
7229
- *
7230
- * This source code is licensed under the ISC license.
7231
- * See the LICENSE file in the root directory of this source tree.
7232
- */
7233
- const __iconNode = [
7234
- ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
7235
- ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
7236
- ];
7237
- const X$1 = createLucideIcon("x", __iconNode);
7238
- function Checkbox({
7354
+ );
7355
+ }
7356
+ function AccordionTrigger({
7239
7357
  className,
7358
+ children,
7240
7359
  ...props2
7241
7360
  }) {
7242
- return /* @__PURE__ */ jsx(
7243
- Checkbox$1,
7361
+ return /* @__PURE__ */ jsx(Header, { className: "flex", children: /* @__PURE__ */ jsxs(
7362
+ Trigger2$1,
7244
7363
  {
7245
- "data-slot": "checkbox",
7364
+ "data-slot": "accordion-trigger",
7246
7365
  className: cn$1(
7247
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
7366
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
7248
7367
  className
7249
7368
  ),
7250
7369
  ...props2,
7251
- children: /* @__PURE__ */ jsx(
7252
- CheckboxIndicator,
7253
- {
7254
- "data-slot": "checkbox-indicator",
7255
- className: "flex items-center justify-center text-current transition-none",
7256
- children: /* @__PURE__ */ jsx(Check, { className: "size-3.5" })
7257
- }
7258
- )
7370
+ children: [
7371
+ children,
7372
+ /* @__PURE__ */ jsx(ChevronDown, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
7373
+ ]
7374
+ }
7375
+ ) });
7376
+ }
7377
+ function AccordionContent({
7378
+ className,
7379
+ children,
7380
+ ...props2
7381
+ }) {
7382
+ return /* @__PURE__ */ jsx(
7383
+ Content2$9,
7384
+ {
7385
+ "data-slot": "accordion-content",
7386
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
7387
+ ...props2,
7388
+ children: /* @__PURE__ */ jsx("div", { className: cn$1("pt-0 pb-4", className), children })
7259
7389
  }
7260
7390
  );
7261
7391
  }
@@ -7341,6 +7471,331 @@ function Button$1({
7341
7471
  }
7342
7472
  );
7343
7473
  }
7474
+ function usePrevious(value) {
7475
+ const ref = React.useRef({ value, previous: value });
7476
+ return React.useMemo(() => {
7477
+ if (ref.current.value !== value) {
7478
+ ref.current.previous = ref.current.value;
7479
+ ref.current.value = value;
7480
+ }
7481
+ return ref.current.previous;
7482
+ }, [value]);
7483
+ }
7484
+ function useSize(element) {
7485
+ const [size2, setSize] = React.useState(void 0);
7486
+ useLayoutEffect2(() => {
7487
+ if (element) {
7488
+ setSize({ width: element.offsetWidth, height: element.offsetHeight });
7489
+ const resizeObserver = new ResizeObserver((entries) => {
7490
+ if (!Array.isArray(entries)) {
7491
+ return;
7492
+ }
7493
+ if (!entries.length) {
7494
+ return;
7495
+ }
7496
+ const entry = entries[0];
7497
+ let width;
7498
+ let height;
7499
+ if ("borderBoxSize" in entry) {
7500
+ const borderSizeEntry = entry["borderBoxSize"];
7501
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
7502
+ width = borderSize["inlineSize"];
7503
+ height = borderSize["blockSize"];
7504
+ } else {
7505
+ width = element.offsetWidth;
7506
+ height = element.offsetHeight;
7507
+ }
7508
+ setSize({ width, height });
7509
+ });
7510
+ resizeObserver.observe(element, { box: "border-box" });
7511
+ return () => resizeObserver.unobserve(element);
7512
+ } else {
7513
+ setSize(void 0);
7514
+ }
7515
+ }, [element]);
7516
+ return size2;
7517
+ }
7518
+ var CHECKBOX_NAME = "Checkbox";
7519
+ var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
7520
+ var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
7521
+ function CheckboxProvider(props2) {
7522
+ const {
7523
+ __scopeCheckbox,
7524
+ checked: checkedProp,
7525
+ children,
7526
+ defaultChecked,
7527
+ disabled,
7528
+ form,
7529
+ name,
7530
+ onCheckedChange,
7531
+ required: required2,
7532
+ value = "on",
7533
+ // @ts-expect-error
7534
+ internal_do_not_use_render
7535
+ } = props2;
7536
+ const [checked, setChecked] = useControllableState$1({
7537
+ prop: checkedProp,
7538
+ defaultProp: defaultChecked ?? false,
7539
+ onChange: onCheckedChange,
7540
+ caller: CHECKBOX_NAME
7541
+ });
7542
+ const [control, setControl] = React.useState(null);
7543
+ const [bubbleInput, setBubbleInput] = React.useState(null);
7544
+ const hasConsumerStoppedPropagationRef = React.useRef(false);
7545
+ const isFormControl = control ? !!form || !!control.closest("form") : (
7546
+ // We set this to true by default so that events bubble to forms without JS (SSR)
7547
+ true
7548
+ );
7549
+ const context = {
7550
+ checked,
7551
+ disabled,
7552
+ setChecked,
7553
+ control,
7554
+ setControl,
7555
+ name,
7556
+ form,
7557
+ value,
7558
+ hasConsumerStoppedPropagationRef,
7559
+ required: required2,
7560
+ defaultChecked: isIndeterminate$1(defaultChecked) ? false : defaultChecked,
7561
+ isFormControl,
7562
+ bubbleInput,
7563
+ setBubbleInput
7564
+ };
7565
+ return /* @__PURE__ */ jsx(
7566
+ CheckboxProviderImpl,
7567
+ {
7568
+ scope: __scopeCheckbox,
7569
+ ...context,
7570
+ children: isFunction$2(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
7571
+ }
7572
+ );
7573
+ }
7574
+ var TRIGGER_NAME$b = "CheckboxTrigger";
7575
+ var CheckboxTrigger = React.forwardRef(
7576
+ ({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {
7577
+ const {
7578
+ control,
7579
+ value,
7580
+ disabled,
7581
+ checked,
7582
+ required: required2,
7583
+ setControl,
7584
+ setChecked,
7585
+ hasConsumerStoppedPropagationRef,
7586
+ isFormControl,
7587
+ bubbleInput
7588
+ } = useCheckboxContext(TRIGGER_NAME$b, __scopeCheckbox);
7589
+ const composedRefs = useComposedRefs$1(forwardedRef, setControl);
7590
+ const initialCheckedStateRef = React.useRef(checked);
7591
+ React.useEffect(() => {
7592
+ const form = control == null ? void 0 : control.form;
7593
+ if (form) {
7594
+ const reset2 = () => setChecked(initialCheckedStateRef.current);
7595
+ form.addEventListener("reset", reset2);
7596
+ return () => form.removeEventListener("reset", reset2);
7597
+ }
7598
+ }, [control, setChecked]);
7599
+ return /* @__PURE__ */ jsx(
7600
+ Primitive.button,
7601
+ {
7602
+ type: "button",
7603
+ role: "checkbox",
7604
+ "aria-checked": isIndeterminate$1(checked) ? "mixed" : checked,
7605
+ "aria-required": required2,
7606
+ "data-state": getState$4(checked),
7607
+ "data-disabled": disabled ? "" : void 0,
7608
+ disabled,
7609
+ value,
7610
+ ...checkboxProps,
7611
+ ref: composedRefs,
7612
+ onKeyDown: composeEventHandlers(onKeyDown, (event) => {
7613
+ if (event.key === "Enter") event.preventDefault();
7614
+ }),
7615
+ onClick: composeEventHandlers(onClick, (event) => {
7616
+ setChecked((prevChecked) => isIndeterminate$1(prevChecked) ? true : !prevChecked);
7617
+ if (bubbleInput && isFormControl) {
7618
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
7619
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
7620
+ }
7621
+ })
7622
+ }
7623
+ );
7624
+ }
7625
+ );
7626
+ CheckboxTrigger.displayName = TRIGGER_NAME$b;
7627
+ var Checkbox$1 = React.forwardRef(
7628
+ (props2, forwardedRef) => {
7629
+ const {
7630
+ __scopeCheckbox,
7631
+ name,
7632
+ checked,
7633
+ defaultChecked,
7634
+ required: required2,
7635
+ disabled,
7636
+ value,
7637
+ onCheckedChange,
7638
+ form,
7639
+ ...checkboxProps
7640
+ } = props2;
7641
+ return /* @__PURE__ */ jsx(
7642
+ CheckboxProvider,
7643
+ {
7644
+ __scopeCheckbox,
7645
+ checked,
7646
+ defaultChecked,
7647
+ disabled,
7648
+ required: required2,
7649
+ onCheckedChange,
7650
+ name,
7651
+ form,
7652
+ value,
7653
+ internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [
7654
+ /* @__PURE__ */ jsx(
7655
+ CheckboxTrigger,
7656
+ {
7657
+ ...checkboxProps,
7658
+ ref: forwardedRef,
7659
+ __scopeCheckbox
7660
+ }
7661
+ ),
7662
+ isFormControl && /* @__PURE__ */ jsx(
7663
+ CheckboxBubbleInput,
7664
+ {
7665
+ __scopeCheckbox
7666
+ }
7667
+ )
7668
+ ] })
7669
+ }
7670
+ );
7671
+ }
7672
+ );
7673
+ Checkbox$1.displayName = CHECKBOX_NAME;
7674
+ var INDICATOR_NAME$6 = "CheckboxIndicator";
7675
+ var CheckboxIndicator = React.forwardRef(
7676
+ (props2, forwardedRef) => {
7677
+ const { __scopeCheckbox, forceMount, ...indicatorProps } = props2;
7678
+ const context = useCheckboxContext(INDICATOR_NAME$6, __scopeCheckbox);
7679
+ return /* @__PURE__ */ jsx(
7680
+ Presence,
7681
+ {
7682
+ present: forceMount || isIndeterminate$1(context.checked) || context.checked === true,
7683
+ children: /* @__PURE__ */ jsx(
7684
+ Primitive.span,
7685
+ {
7686
+ "data-state": getState$4(context.checked),
7687
+ "data-disabled": context.disabled ? "" : void 0,
7688
+ ...indicatorProps,
7689
+ ref: forwardedRef,
7690
+ style: { pointerEvents: "none", ...props2.style }
7691
+ }
7692
+ )
7693
+ }
7694
+ );
7695
+ }
7696
+ );
7697
+ CheckboxIndicator.displayName = INDICATOR_NAME$6;
7698
+ var BUBBLE_INPUT_NAME$4 = "CheckboxBubbleInput";
7699
+ var CheckboxBubbleInput = React.forwardRef(
7700
+ ({ __scopeCheckbox, ...props2 }, forwardedRef) => {
7701
+ const {
7702
+ control,
7703
+ hasConsumerStoppedPropagationRef,
7704
+ checked,
7705
+ defaultChecked,
7706
+ required: required2,
7707
+ disabled,
7708
+ name,
7709
+ value,
7710
+ form,
7711
+ bubbleInput,
7712
+ setBubbleInput
7713
+ } = useCheckboxContext(BUBBLE_INPUT_NAME$4, __scopeCheckbox);
7714
+ const composedRefs = useComposedRefs$1(forwardedRef, setBubbleInput);
7715
+ const prevChecked = usePrevious(checked);
7716
+ const controlSize = useSize(control);
7717
+ React.useEffect(() => {
7718
+ const input = bubbleInput;
7719
+ if (!input) return;
7720
+ const inputProto = window.HTMLInputElement.prototype;
7721
+ const descriptor = Object.getOwnPropertyDescriptor(
7722
+ inputProto,
7723
+ "checked"
7724
+ );
7725
+ const setChecked = descriptor.set;
7726
+ const bubbles = !hasConsumerStoppedPropagationRef.current;
7727
+ if (prevChecked !== checked && setChecked) {
7728
+ const event = new Event("click", { bubbles });
7729
+ input.indeterminate = isIndeterminate$1(checked);
7730
+ setChecked.call(input, isIndeterminate$1(checked) ? false : checked);
7731
+ input.dispatchEvent(event);
7732
+ }
7733
+ }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);
7734
+ const defaultCheckedRef = React.useRef(isIndeterminate$1(checked) ? false : checked);
7735
+ return /* @__PURE__ */ jsx(
7736
+ Primitive.input,
7737
+ {
7738
+ type: "checkbox",
7739
+ "aria-hidden": true,
7740
+ defaultChecked: defaultChecked ?? defaultCheckedRef.current,
7741
+ required: required2,
7742
+ disabled,
7743
+ name,
7744
+ value,
7745
+ form,
7746
+ ...props2,
7747
+ tabIndex: -1,
7748
+ ref: composedRefs,
7749
+ style: {
7750
+ ...props2.style,
7751
+ ...controlSize,
7752
+ position: "absolute",
7753
+ pointerEvents: "none",
7754
+ opacity: 0,
7755
+ margin: 0,
7756
+ // We transform because the input is absolutely positioned but we have
7757
+ // rendered it **after** the button. This pulls it back to sit on top
7758
+ // of the button.
7759
+ transform: "translateX(-100%)"
7760
+ }
7761
+ }
7762
+ );
7763
+ }
7764
+ );
7765
+ CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME$4;
7766
+ function isFunction$2(value) {
7767
+ return typeof value === "function";
7768
+ }
7769
+ function isIndeterminate$1(checked) {
7770
+ return checked === "indeterminate";
7771
+ }
7772
+ function getState$4(checked) {
7773
+ return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
7774
+ }
7775
+ function Checkbox({
7776
+ className,
7777
+ ...props2
7778
+ }) {
7779
+ return /* @__PURE__ */ jsx(
7780
+ Checkbox$1,
7781
+ {
7782
+ "data-slot": "checkbox",
7783
+ className: cn$1(
7784
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
7785
+ className
7786
+ ),
7787
+ ...props2,
7788
+ children: /* @__PURE__ */ jsx(
7789
+ CheckboxIndicator,
7790
+ {
7791
+ "data-slot": "checkbox-indicator",
7792
+ className: "flex items-center justify-center text-current transition-none",
7793
+ children: /* @__PURE__ */ jsx(Check, { className: "size-3.5" })
7794
+ }
7795
+ )
7796
+ }
7797
+ );
7798
+ }
7344
7799
  function Skeleton({ className, ...props2 }) {
7345
7800
  return /* @__PURE__ */ jsx(
7346
7801
  "div",
@@ -7351,6 +7806,108 @@ function Skeleton({ className, ...props2 }) {
7351
7806
  }
7352
7807
  );
7353
7808
  }
7809
+ function Table({ className, ...props2 }) {
7810
+ return /* @__PURE__ */ jsx(
7811
+ "div",
7812
+ {
7813
+ "data-slot": "table-container",
7814
+ className: "relative w-full overflow-x-auto",
7815
+ children: /* @__PURE__ */ jsx(
7816
+ "table",
7817
+ {
7818
+ "data-slot": "table",
7819
+ className: cn$1("w-full caption-bottom text-sm", className),
7820
+ ...props2
7821
+ }
7822
+ )
7823
+ }
7824
+ );
7825
+ }
7826
+ function TableHeader({ className, ...props2 }) {
7827
+ return /* @__PURE__ */ jsx(
7828
+ "thead",
7829
+ {
7830
+ "data-slot": "table-header",
7831
+ className: cn$1("[&_tr]:border-b", className),
7832
+ ...props2
7833
+ }
7834
+ );
7835
+ }
7836
+ function TableBody({ className, ...props2 }) {
7837
+ return /* @__PURE__ */ jsx(
7838
+ "tbody",
7839
+ {
7840
+ "data-slot": "table-body",
7841
+ className: cn$1("[&_tr:last-child]:border-0", className),
7842
+ ...props2
7843
+ }
7844
+ );
7845
+ }
7846
+ function TableFooter({ className, ...props2 }) {
7847
+ return /* @__PURE__ */ jsx(
7848
+ "tfoot",
7849
+ {
7850
+ "data-slot": "table-footer",
7851
+ className: cn$1(
7852
+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
7853
+ className
7854
+ ),
7855
+ ...props2
7856
+ }
7857
+ );
7858
+ }
7859
+ function TableRow({ className, ...props2 }) {
7860
+ return /* @__PURE__ */ jsx(
7861
+ "tr",
7862
+ {
7863
+ "data-slot": "table-row",
7864
+ className: cn$1(
7865
+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
7866
+ className
7867
+ ),
7868
+ ...props2
7869
+ }
7870
+ );
7871
+ }
7872
+ function TableHead({ className, ...props2 }) {
7873
+ return /* @__PURE__ */ jsx(
7874
+ "th",
7875
+ {
7876
+ "data-slot": "table-head",
7877
+ className: cn$1(
7878
+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
7879
+ className
7880
+ ),
7881
+ ...props2
7882
+ }
7883
+ );
7884
+ }
7885
+ function TableCell({ className, ...props2 }) {
7886
+ return /* @__PURE__ */ jsx(
7887
+ "td",
7888
+ {
7889
+ "data-slot": "table-cell",
7890
+ className: cn$1(
7891
+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
7892
+ className
7893
+ ),
7894
+ ...props2
7895
+ }
7896
+ );
7897
+ }
7898
+ function TableCaption({
7899
+ className,
7900
+ ...props2
7901
+ }) {
7902
+ return /* @__PURE__ */ jsx(
7903
+ "caption",
7904
+ {
7905
+ "data-slot": "table-caption",
7906
+ className: cn$1("text-muted-foreground mt-4 text-sm", className),
7907
+ ...props2
7908
+ }
7909
+ );
7910
+ }
7354
7911
  var isCheckBoxInput = (element) => element.type === "checkbox";
7355
7912
  var isDateObject = (value) => value instanceof Date;
7356
7913
  var isNullOrUndefined = (value) => value == null;
@@ -12665,13 +13222,13 @@ var Label$3 = React.forwardRef((props2, forwardedRef) => {
12665
13222
  );
12666
13223
  });
12667
13224
  Label$3.displayName = NAME$5;
12668
- var Root$f = Label$3;
13225
+ var Root$e = Label$3;
12669
13226
  function Label$2({
12670
13227
  className,
12671
13228
  ...props2
12672
13229
  }) {
12673
13230
  return /* @__PURE__ */ jsx(
12674
- Root$f,
13231
+ Root$e,
12675
13232
  {
12676
13233
  "data-slot": "label",
12677
13234
  className: cn$1(
@@ -12905,18 +13462,18 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
12905
13462
  target.dispatchEvent(event);
12906
13463
  }
12907
13464
  }
12908
- var count$1 = 0;
13465
+ var count = 0;
12909
13466
  function useFocusGuards() {
12910
13467
  React.useEffect(() => {
12911
13468
  const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
12912
13469
  document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
12913
13470
  document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
12914
- count$1++;
13471
+ count++;
12915
13472
  return () => {
12916
- if (count$1 === 1) {
13473
+ if (count === 1) {
12917
13474
  document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
12918
13475
  }
12919
- count$1--;
13476
+ count--;
12920
13477
  };
12921
13478
  }, []);
12922
13479
  }
@@ -13130,15 +13687,6 @@ function arrayRemove(array2, item) {
13130
13687
  function removeLinks(items) {
13131
13688
  return items.filter((item) => item.tagName !== "A");
13132
13689
  }
13133
- var useReactId = React[" useId ".trim().toString()] || (() => void 0);
13134
- var count = 0;
13135
- function useId$1(deterministicId) {
13136
- const [id, setId] = React.useState(useReactId());
13137
- useLayoutEffect2(() => {
13138
- setId((reactId) => reactId ?? String(count++));
13139
- }, [deterministicId]);
13140
- return deterministicId || (id ? `radix-${id}` : "");
13141
- }
13142
13690
  const sides = ["top", "right", "bottom", "left"];
13143
13691
  const min$1 = Math.min;
13144
13692
  const max$1 = Math.max;
@@ -15025,7 +15573,7 @@ var Arrow$1 = React.forwardRef((props2, forwardedRef) => {
15025
15573
  );
15026
15574
  });
15027
15575
  Arrow$1.displayName = NAME$4;
15028
- var Root$e = Arrow$1;
15576
+ var Root$d = Arrow$1;
15029
15577
  var POPPER_NAME = "Popper";
15030
15578
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
15031
15579
  var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
@@ -15054,8 +15602,8 @@ var PopperAnchor = React.forwardRef(
15054
15602
  }
15055
15603
  );
15056
15604
  PopperAnchor.displayName = ANCHOR_NAME$2;
15057
- var CONTENT_NAME$e = "PopperContent";
15058
- var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$e);
15605
+ var CONTENT_NAME$c = "PopperContent";
15606
+ var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$c);
15059
15607
  var PopperContent = React.forwardRef(
15060
15608
  (props2, forwardedRef) => {
15061
15609
  var _a, _b, _c, _d, _e2, _f;
@@ -15075,7 +15623,7 @@ var PopperContent = React.forwardRef(
15075
15623
  onPlaced,
15076
15624
  ...contentProps
15077
15625
  } = props2;
15078
- const context = usePopperContext(CONTENT_NAME$e, __scopePopper);
15626
+ const context = usePopperContext(CONTENT_NAME$c, __scopePopper);
15079
15627
  const [content, setContent] = React.useState(null);
15080
15628
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
15081
15629
  const [arrow$12, setArrow] = React.useState(null);
@@ -15198,7 +15746,7 @@ var PopperContent = React.forwardRef(
15198
15746
  );
15199
15747
  }
15200
15748
  );
15201
- PopperContent.displayName = CONTENT_NAME$e;
15749
+ PopperContent.displayName = CONTENT_NAME$c;
15202
15750
  var ARROW_NAME$8 = "PopperArrow";
15203
15751
  var OPPOSITE_SIDE = {
15204
15752
  top: "bottom",
@@ -15238,7 +15786,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props2, forwardedRef) {
15238
15786
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
15239
15787
  },
15240
15788
  children: /* @__PURE__ */ jsx(
15241
- Root$e,
15789
+ Root$d,
15242
15790
  {
15243
15791
  ...arrowProps,
15244
15792
  ref: forwardedRef,
@@ -15293,9 +15841,9 @@ function getSideAndAlignFromPlacement(placement) {
15293
15841
  const [side, align = "center"] = placement.split("-");
15294
15842
  return [side, align];
15295
15843
  }
15296
- var Root2$b = Popper;
15844
+ var Root2$a = Popper;
15297
15845
  var Anchor = PopperAnchor;
15298
- var Content$5 = PopperContent;
15846
+ var Content$4 = PopperContent;
15299
15847
  var Arrow = PopperArrow;
15300
15848
  var PORTAL_NAME$a = "Portal";
15301
15849
  var Portal$7 = React.forwardRef((props2, forwardedRef) => {
@@ -16104,7 +16652,7 @@ var Popover$1 = (props2) => {
16104
16652
  onChange: onOpenChange,
16105
16653
  caller: POPOVER_NAME
16106
16654
  });
16107
- return /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children: /* @__PURE__ */ jsx(
16655
+ return /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children: /* @__PURE__ */ jsx(
16108
16656
  PopoverProvider,
16109
16657
  {
16110
16658
  scope: __scopePopover,
@@ -16137,11 +16685,11 @@ var PopoverAnchor$1 = React.forwardRef(
16137
16685
  }
16138
16686
  );
16139
16687
  PopoverAnchor$1.displayName = ANCHOR_NAME$1;
16140
- var TRIGGER_NAME$c = "PopoverTrigger";
16688
+ var TRIGGER_NAME$a = "PopoverTrigger";
16141
16689
  var PopoverTrigger$1 = React.forwardRef(
16142
16690
  (props2, forwardedRef) => {
16143
16691
  const { __scopePopover, ...triggerProps } = props2;
16144
- const context = usePopoverContext(TRIGGER_NAME$c, __scopePopover);
16692
+ const context = usePopoverContext(TRIGGER_NAME$a, __scopePopover);
16145
16693
  const popperScope = usePopperScope$4(__scopePopover);
16146
16694
  const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
16147
16695
  const trigger = /* @__PURE__ */ jsx(
@@ -16151,7 +16699,7 @@ var PopoverTrigger$1 = React.forwardRef(
16151
16699
  "aria-haspopup": "dialog",
16152
16700
  "aria-expanded": context.open,
16153
16701
  "aria-controls": context.contentId,
16154
- "data-state": getState$5(context.open),
16702
+ "data-state": getState$3(context.open),
16155
16703
  ...triggerProps,
16156
16704
  ref: composedTriggerRef,
16157
16705
  onClick: composeEventHandlers(props2.onClick, context.onOpenToggle)
@@ -16160,7 +16708,7 @@ var PopoverTrigger$1 = React.forwardRef(
16160
16708
  return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: trigger });
16161
16709
  }
16162
16710
  );
16163
- PopoverTrigger$1.displayName = TRIGGER_NAME$c;
16711
+ PopoverTrigger$1.displayName = TRIGGER_NAME$a;
16164
16712
  var PORTAL_NAME$9 = "PopoverPortal";
16165
16713
  var [PortalProvider$4, usePortalContext$4] = createPopoverContext(PORTAL_NAME$9, {
16166
16714
  forceMount: void 0
@@ -16171,20 +16719,20 @@ var PopoverPortal = (props2) => {
16171
16719
  return /* @__PURE__ */ jsx(PortalProvider$4, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$7, { asChild: true, container, children }) }) });
16172
16720
  };
16173
16721
  PopoverPortal.displayName = PORTAL_NAME$9;
16174
- var CONTENT_NAME$d = "PopoverContent";
16722
+ var CONTENT_NAME$b = "PopoverContent";
16175
16723
  var PopoverContent$1 = React.forwardRef(
16176
16724
  (props2, forwardedRef) => {
16177
- const portalContext = usePortalContext$4(CONTENT_NAME$d, props2.__scopePopover);
16725
+ const portalContext = usePortalContext$4(CONTENT_NAME$b, props2.__scopePopover);
16178
16726
  const { forceMount = portalContext.forceMount, ...contentProps } = props2;
16179
- const context = usePopoverContext(CONTENT_NAME$d, props2.__scopePopover);
16727
+ const context = usePopoverContext(CONTENT_NAME$b, props2.__scopePopover);
16180
16728
  return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
16181
16729
  }
16182
16730
  );
16183
- PopoverContent$1.displayName = CONTENT_NAME$d;
16731
+ PopoverContent$1.displayName = CONTENT_NAME$b;
16184
16732
  var Slot$3 = /* @__PURE__ */ createSlot("PopoverContent.RemoveScroll");
16185
16733
  var PopoverContentModal = React.forwardRef(
16186
16734
  (props2, forwardedRef) => {
16187
- const context = usePopoverContext(CONTENT_NAME$d, props2.__scopePopover);
16735
+ const context = usePopoverContext(CONTENT_NAME$b, props2.__scopePopover);
16188
16736
  const contentRef = React.useRef(null);
16189
16737
  const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
16190
16738
  const isRightClickOutsideRef = React.useRef(false);
@@ -16225,7 +16773,7 @@ var PopoverContentModal = React.forwardRef(
16225
16773
  );
16226
16774
  var PopoverContentNonModal = React.forwardRef(
16227
16775
  (props2, forwardedRef) => {
16228
- const context = usePopoverContext(CONTENT_NAME$d, props2.__scopePopover);
16776
+ const context = usePopoverContext(CONTENT_NAME$b, props2.__scopePopover);
16229
16777
  const hasInteractedOutsideRef = React.useRef(false);
16230
16778
  const hasPointerDownOutsideRef = React.useRef(false);
16231
16779
  return /* @__PURE__ */ jsx(
@@ -16279,7 +16827,7 @@ var PopoverContentImpl = React.forwardRef(
16279
16827
  onInteractOutside,
16280
16828
  ...contentProps
16281
16829
  } = props2;
16282
- const context = usePopoverContext(CONTENT_NAME$d, __scopePopover);
16830
+ const context = usePopoverContext(CONTENT_NAME$b, __scopePopover);
16283
16831
  const popperScope = usePopperScope$4(__scopePopover);
16284
16832
  useFocusGuards();
16285
16833
  return /* @__PURE__ */ jsx(
@@ -16301,9 +16849,9 @@ var PopoverContentImpl = React.forwardRef(
16301
16849
  onFocusOutside,
16302
16850
  onDismiss: () => context.onOpenChange(false),
16303
16851
  children: /* @__PURE__ */ jsx(
16304
- Content$5,
16852
+ Content$4,
16305
16853
  {
16306
- "data-state": getState$5(context.open),
16854
+ "data-state": getState$3(context.open),
16307
16855
  role: "dialog",
16308
16856
  id: context.contentId,
16309
16857
  ...popperScope,
@@ -16354,23 +16902,23 @@ var PopoverArrow = React.forwardRef(
16354
16902
  }
16355
16903
  );
16356
16904
  PopoverArrow.displayName = ARROW_NAME$7;
16357
- function getState$5(open) {
16905
+ function getState$3(open) {
16358
16906
  return open ? "open" : "closed";
16359
16907
  }
16360
- var Root2$a = Popover$1;
16908
+ var Root2$9 = Popover$1;
16361
16909
  var Anchor2$1 = PopoverAnchor$1;
16362
- var Trigger$a = PopoverTrigger$1;
16910
+ var Trigger$9 = PopoverTrigger$1;
16363
16911
  var Portal$6 = PopoverPortal;
16364
- var Content2$9 = PopoverContent$1;
16912
+ var Content2$8 = PopoverContent$1;
16365
16913
  function Popover({
16366
16914
  ...props2
16367
16915
  }) {
16368
- return /* @__PURE__ */ jsx(Root2$a, { "data-slot": "popover", ...props2 });
16916
+ return /* @__PURE__ */ jsx(Root2$9, { "data-slot": "popover", ...props2 });
16369
16917
  }
16370
16918
  function PopoverTrigger({
16371
16919
  ...props2
16372
16920
  }) {
16373
- return /* @__PURE__ */ jsx(Trigger$a, { "data-slot": "popover-trigger", ...props2 });
16921
+ return /* @__PURE__ */ jsx(Trigger$9, { "data-slot": "popover-trigger", ...props2 });
16374
16922
  }
16375
16923
  function PopoverContent({
16376
16924
  className,
@@ -16379,7 +16927,7 @@ function PopoverContent({
16379
16927
  ...props2
16380
16928
  }) {
16381
16929
  return /* @__PURE__ */ jsx(Portal$6, { children: /* @__PURE__ */ jsx(
16382
- Content2$9,
16930
+ Content2$8,
16383
16931
  {
16384
16932
  "data-slot": "popover-content",
16385
16933
  align,
@@ -16450,11 +16998,11 @@ var Dialog$1 = (props2) => {
16450
16998
  );
16451
16999
  };
16452
17000
  Dialog$1.displayName = DIALOG_NAME;
16453
- var TRIGGER_NAME$b = "DialogTrigger";
17001
+ var TRIGGER_NAME$9 = "DialogTrigger";
16454
17002
  var DialogTrigger$1 = React.forwardRef(
16455
17003
  (props2, forwardedRef) => {
16456
17004
  const { __scopeDialog, ...triggerProps } = props2;
16457
- const context = useDialogContext(TRIGGER_NAME$b, __scopeDialog);
17005
+ const context = useDialogContext(TRIGGER_NAME$9, __scopeDialog);
16458
17006
  const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
16459
17007
  return /* @__PURE__ */ jsx(
16460
17008
  Primitive.button,
@@ -16463,7 +17011,7 @@ var DialogTrigger$1 = React.forwardRef(
16463
17011
  "aria-haspopup": "dialog",
16464
17012
  "aria-expanded": context.open,
16465
17013
  "aria-controls": context.contentId,
16466
- "data-state": getState$4(context.open),
17014
+ "data-state": getState$2(context.open),
16467
17015
  ...triggerProps,
16468
17016
  ref: composedTriggerRef,
16469
17017
  onClick: composeEventHandlers(props2.onClick, context.onOpenToggle)
@@ -16471,7 +17019,7 @@ var DialogTrigger$1 = React.forwardRef(
16471
17019
  );
16472
17020
  }
16473
17021
  );
16474
- DialogTrigger$1.displayName = TRIGGER_NAME$b;
17022
+ DialogTrigger$1.displayName = TRIGGER_NAME$9;
16475
17023
  var PORTAL_NAME$8 = "DialogPortal";
16476
17024
  var [PortalProvider$3, usePortalContext$3] = createDialogContext(PORTAL_NAME$8, {
16477
17025
  forceMount: void 0
@@ -16503,7 +17051,7 @@ var DialogOverlayImpl = React.forwardRef(
16503
17051
  /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot$2, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
16504
17052
  Primitive.div,
16505
17053
  {
16506
- "data-state": getState$4(context.open),
17054
+ "data-state": getState$2(context.open),
16507
17055
  ...overlayProps,
16508
17056
  ref: forwardedRef,
16509
17057
  style: { pointerEvents: "auto", ...overlayProps.style }
@@ -16512,19 +17060,19 @@ var DialogOverlayImpl = React.forwardRef(
16512
17060
  );
16513
17061
  }
16514
17062
  );
16515
- var CONTENT_NAME$c = "DialogContent";
17063
+ var CONTENT_NAME$a = "DialogContent";
16516
17064
  var DialogContent$1 = React.forwardRef(
16517
17065
  (props2, forwardedRef) => {
16518
- const portalContext = usePortalContext$3(CONTENT_NAME$c, props2.__scopeDialog);
17066
+ const portalContext = usePortalContext$3(CONTENT_NAME$a, props2.__scopeDialog);
16519
17067
  const { forceMount = portalContext.forceMount, ...contentProps } = props2;
16520
- const context = useDialogContext(CONTENT_NAME$c, props2.__scopeDialog);
17068
+ const context = useDialogContext(CONTENT_NAME$a, props2.__scopeDialog);
16521
17069
  return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
16522
17070
  }
16523
17071
  );
16524
- DialogContent$1.displayName = CONTENT_NAME$c;
17072
+ DialogContent$1.displayName = CONTENT_NAME$a;
16525
17073
  var DialogContentModal = React.forwardRef(
16526
17074
  (props2, forwardedRef) => {
16527
- const context = useDialogContext(CONTENT_NAME$c, props2.__scopeDialog);
17075
+ const context = useDialogContext(CONTENT_NAME$a, props2.__scopeDialog);
16528
17076
  const contentRef = React.useRef(null);
16529
17077
  const composedRefs = useComposedRefs$1(forwardedRef, context.contentRef, contentRef);
16530
17078
  React.useEffect(() => {
@@ -16559,7 +17107,7 @@ var DialogContentModal = React.forwardRef(
16559
17107
  );
16560
17108
  var DialogContentNonModal = React.forwardRef(
16561
17109
  (props2, forwardedRef) => {
16562
- const context = useDialogContext(CONTENT_NAME$c, props2.__scopeDialog);
17110
+ const context = useDialogContext(CONTENT_NAME$a, props2.__scopeDialog);
16563
17111
  const hasInteractedOutsideRef = React.useRef(false);
16564
17112
  const hasPointerDownOutsideRef = React.useRef(false);
16565
17113
  return /* @__PURE__ */ jsx(
@@ -16602,7 +17150,7 @@ var DialogContentNonModal = React.forwardRef(
16602
17150
  var DialogContentImpl = React.forwardRef(
16603
17151
  (props2, forwardedRef) => {
16604
17152
  const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props2;
16605
- const context = useDialogContext(CONTENT_NAME$c, __scopeDialog);
17153
+ const context = useDialogContext(CONTENT_NAME$a, __scopeDialog);
16606
17154
  const contentRef = React.useRef(null);
16607
17155
  const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
16608
17156
  useFocusGuards();
@@ -16622,7 +17170,7 @@ var DialogContentImpl = React.forwardRef(
16622
17170
  id: context.contentId,
16623
17171
  "aria-describedby": context.descriptionId,
16624
17172
  "aria-labelledby": context.titleId,
16625
- "data-state": getState$4(context.open),
17173
+ "data-state": getState$2(context.open),
16626
17174
  ...contentProps,
16627
17175
  ref: composedRefs,
16628
17176
  onDismiss: () => context.onOpenChange(false)
@@ -16672,12 +17220,12 @@ var DialogClose$1 = React.forwardRef(
16672
17220
  }
16673
17221
  );
16674
17222
  DialogClose$1.displayName = CLOSE_NAME;
16675
- function getState$4(open) {
17223
+ function getState$2(open) {
16676
17224
  return open ? "open" : "closed";
16677
17225
  }
16678
17226
  var TITLE_WARNING_NAME = "DialogTitleWarning";
16679
17227
  var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
16680
- contentName: CONTENT_NAME$c,
17228
+ contentName: CONTENT_NAME$a,
16681
17229
  titleName: TITLE_NAME$1,
16682
17230
  docsSlug: "dialog"
16683
17231
  });
@@ -16710,11 +17258,11 @@ var DescriptionWarning$1 = ({ contentRef, descriptionId }) => {
16710
17258
  }, [MESSAGE, contentRef, descriptionId]);
16711
17259
  return null;
16712
17260
  };
16713
- var Root$d = Dialog$1;
16714
- var Trigger$9 = DialogTrigger$1;
17261
+ var Root$c = Dialog$1;
17262
+ var Trigger$8 = DialogTrigger$1;
16715
17263
  var Portal$5 = DialogPortal$1;
16716
17264
  var Overlay$1 = DialogOverlay$1;
16717
- var Content$4 = DialogContent$1;
17265
+ var Content$3 = DialogContent$1;
16718
17266
  var Title = DialogTitle$1;
16719
17267
  var Description = DialogDescription$1;
16720
17268
  var Close = DialogClose$1;
@@ -16946,7 +17494,7 @@ var N$1 = '[cmdk-group=""]', Y$1 = '[cmdk-group-items=""]', be = '[cmdk-group-he
16946
17494
  }, []), React.createElement(Primitive.div, { ref: composeRefs$1(d, o2), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b2.listId }, B(r2, (m2) => React.createElement("div", { ref: composeRefs$1(f, b2.listInnerRef), "cmdk-list-sizer": "" }, m2)));
16947
17495
  }), xe = React.forwardRef((r2, o2) => {
16948
17496
  let { open: n2, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
16949
- return React.createElement(Root$d, { open: n2, onOpenChange: u2 }, React.createElement(Portal$5, { container: f }, React.createElement(Overlay$1, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$4, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o2, ...p2 }))));
17497
+ return React.createElement(Root$c, { open: n2, onOpenChange: u2 }, React.createElement(Portal$5, { container: f }, React.createElement(Overlay$1, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$3, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o2, ...p2 }))));
16950
17498
  }), Ie = React.forwardRef((r2, o2) => P((u2) => u2.filtered.count === 0) ? React.createElement(Primitive.div, { ref: o2, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r2, o2) => {
16951
17499
  let { progress: n2, children: u2, label: c2 = "Loading...", ...d } = r2;
16952
17500
  return React.createElement(Primitive.div, { ref: o2, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n2, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B(r2, (f) => React.createElement("div", { "aria-hidden": true }, f)));
@@ -17013,12 +17561,12 @@ var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", marg
17013
17561
  function Dialog({
17014
17562
  ...props2
17015
17563
  }) {
17016
- return /* @__PURE__ */ jsx(Root$d, { "data-slot": "dialog", ...props2 });
17564
+ return /* @__PURE__ */ jsx(Root$c, { "data-slot": "dialog", ...props2 });
17017
17565
  }
17018
17566
  function DialogTrigger({
17019
17567
  ...props2
17020
17568
  }) {
17021
- return /* @__PURE__ */ jsx(Trigger$9, { "data-slot": "dialog-trigger", ...props2 });
17569
+ return /* @__PURE__ */ jsx(Trigger$8, { "data-slot": "dialog-trigger", ...props2 });
17022
17570
  }
17023
17571
  function DialogPortal({
17024
17572
  ...props2
@@ -17055,7 +17603,7 @@ function DialogContent({
17055
17603
  return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
17056
17604
  /* @__PURE__ */ jsx(DialogOverlay, {}),
17057
17605
  /* @__PURE__ */ jsxs(
17058
- Content$4,
17606
+ Content$3,
17059
17607
  {
17060
17608
  "data-slot": "dialog-content",
17061
17609
  className: cn$1(
@@ -17604,73 +18152,6 @@ function TextareaField({ field, value, onChange, className }) {
17604
18152
  function clamp(value, [min2, max2]) {
17605
18153
  return Math.min(max2, Math.max(min2, value));
17606
18154
  }
17607
- function createCollection(name) {
17608
- const PROVIDER_NAME2 = name + "CollectionProvider";
17609
- const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
17610
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
17611
- PROVIDER_NAME2,
17612
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
17613
- );
17614
- const CollectionProvider = (props2) => {
17615
- const { scope, children } = props2;
17616
- const ref = React__default.useRef(null);
17617
- const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
17618
- return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
17619
- };
17620
- CollectionProvider.displayName = PROVIDER_NAME2;
17621
- const COLLECTION_SLOT_NAME = name + "CollectionSlot";
17622
- const CollectionSlotImpl = /* @__PURE__ */ createSlot(COLLECTION_SLOT_NAME);
17623
- const CollectionSlot = React__default.forwardRef(
17624
- (props2, forwardedRef) => {
17625
- const { scope, children } = props2;
17626
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
17627
- const composedRefs = useComposedRefs$1(forwardedRef, context.collectionRef);
17628
- return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
17629
- }
17630
- );
17631
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
17632
- const ITEM_SLOT_NAME = name + "CollectionItemSlot";
17633
- const ITEM_DATA_ATTR = "data-radix-collection-item";
17634
- const CollectionItemSlotImpl = /* @__PURE__ */ createSlot(ITEM_SLOT_NAME);
17635
- const CollectionItemSlot = React__default.forwardRef(
17636
- (props2, forwardedRef) => {
17637
- const { scope, children, ...itemData } = props2;
17638
- const ref = React__default.useRef(null);
17639
- const composedRefs = useComposedRefs$1(forwardedRef, ref);
17640
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
17641
- React__default.useEffect(() => {
17642
- context.itemMap.set(ref, { ref, ...itemData });
17643
- return () => void context.itemMap.delete(ref);
17644
- });
17645
- return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
17646
- }
17647
- );
17648
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
17649
- function useCollection2(scope) {
17650
- const context = useCollectionContext(name + "CollectionConsumer", scope);
17651
- const getItems = React__default.useCallback(() => {
17652
- const collectionNode = context.collectionRef.current;
17653
- if (!collectionNode) return [];
17654
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
17655
- const items = Array.from(context.itemMap.values());
17656
- const orderedItems = items.sort(
17657
- (a2, b2) => orderedNodes.indexOf(a2.ref.current) - orderedNodes.indexOf(b2.ref.current)
17658
- );
17659
- return orderedItems;
17660
- }, [context.collectionRef, context.itemMap]);
17661
- return getItems;
17662
- }
17663
- return [
17664
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
17665
- useCollection2,
17666
- createCollectionScope2
17667
- ];
17668
- }
17669
- var DirectionContext = React.createContext(void 0);
17670
- function useDirection(localDir) {
17671
- const globalDir = React.useContext(DirectionContext);
17672
- return localDir || globalDir || "ltr";
17673
- }
17674
18155
  var VISUALLY_HIDDEN_STYLES = Object.freeze({
17675
18156
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
17676
18157
  position: "absolute",
@@ -17698,13 +18179,13 @@ var VisuallyHidden = React.forwardRef(
17698
18179
  }
17699
18180
  );
17700
18181
  VisuallyHidden.displayName = NAME$3;
17701
- var Root$c = VisuallyHidden;
18182
+ var Root$b = VisuallyHidden;
17702
18183
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
17703
18184
  var SELECTION_KEYS$1 = [" ", "Enter"];
17704
18185
  var SELECT_NAME = "Select";
17705
- var [Collection$6, useCollection$6, createCollectionScope$6] = createCollection(SELECT_NAME);
18186
+ var [Collection$5, useCollection$5, createCollectionScope$5] = createCollection(SELECT_NAME);
17706
18187
  var [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [
17707
- createCollectionScope$6,
18188
+ createCollectionScope$5,
17708
18189
  createPopperScope
17709
18190
  ]);
17710
18191
  var usePopperScope$3 = createPopperScope();
@@ -17748,7 +18229,7 @@ var Select$2 = (props2) => {
17748
18229
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
17749
18230
  const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
17750
18231
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
17751
- return /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children: /* @__PURE__ */ jsxs(
18232
+ return /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children: /* @__PURE__ */ jsxs(
17752
18233
  SelectProvider,
17753
18234
  {
17754
18235
  required: required2,
@@ -17768,7 +18249,7 @@ var Select$2 = (props2) => {
17768
18249
  triggerPointerDownPosRef,
17769
18250
  disabled,
17770
18251
  children: [
17771
- /* @__PURE__ */ jsx(Collection$6.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
18252
+ /* @__PURE__ */ jsx(Collection$5.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
17772
18253
  SelectNativeOptionsProvider,
17773
18254
  {
17774
18255
  scope: props2.__scopeSelect,
@@ -17809,15 +18290,15 @@ var Select$2 = (props2) => {
17809
18290
  ) });
17810
18291
  };
17811
18292
  Select$2.displayName = SELECT_NAME;
17812
- var TRIGGER_NAME$a = "SelectTrigger";
18293
+ var TRIGGER_NAME$8 = "SelectTrigger";
17813
18294
  var SelectTrigger$1 = React.forwardRef(
17814
18295
  (props2, forwardedRef) => {
17815
18296
  const { __scopeSelect, disabled = false, ...triggerProps } = props2;
17816
18297
  const popperScope = usePopperScope$3(__scopeSelect);
17817
- const context = useSelectContext(TRIGGER_NAME$a, __scopeSelect);
18298
+ const context = useSelectContext(TRIGGER_NAME$8, __scopeSelect);
17818
18299
  const isDisabled = context.disabled || disabled;
17819
18300
  const composedRefs = useComposedRefs$1(forwardedRef, context.onTriggerChange);
17820
- const getItems = useCollection$6(__scopeSelect);
18301
+ const getItems = useCollection$5(__scopeSelect);
17821
18302
  const pointerTypeRef = React.useRef("touch");
17822
18303
  const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
17823
18304
  const enabledItems = getItems().filter((item) => !item.disabled);
@@ -17886,7 +18367,7 @@ var SelectTrigger$1 = React.forwardRef(
17886
18367
  ) });
17887
18368
  }
17888
18369
  );
17889
- SelectTrigger$1.displayName = TRIGGER_NAME$a;
18370
+ SelectTrigger$1.displayName = TRIGGER_NAME$8;
17890
18371
  var VALUE_NAME = "SelectValue";
17891
18372
  var SelectValue$1 = React.forwardRef(
17892
18373
  (props2, forwardedRef) => {
@@ -17923,10 +18404,10 @@ var SelectPortal = (props2) => {
17923
18404
  return /* @__PURE__ */ jsx(Portal$7, { asChild: true, ...props2 });
17924
18405
  };
17925
18406
  SelectPortal.displayName = PORTAL_NAME$7;
17926
- var CONTENT_NAME$b = "SelectContent";
18407
+ var CONTENT_NAME$9 = "SelectContent";
17927
18408
  var SelectContent$1 = React.forwardRef(
17928
18409
  (props2, forwardedRef) => {
17929
- const context = useSelectContext(CONTENT_NAME$b, props2.__scopeSelect);
18410
+ const context = useSelectContext(CONTENT_NAME$9, props2.__scopeSelect);
17930
18411
  const [fragment, setFragment] = React.useState();
17931
18412
  useLayoutEffect2(() => {
17932
18413
  setFragment(new DocumentFragment());
@@ -17934,16 +18415,16 @@ var SelectContent$1 = React.forwardRef(
17934
18415
  if (!context.open) {
17935
18416
  const frag = fragment;
17936
18417
  return frag ? ReactDOM.createPortal(
17937
- /* @__PURE__ */ jsx(SelectContentProvider, { scope: props2.__scopeSelect, children: /* @__PURE__ */ jsx(Collection$6.Slot, { scope: props2.__scopeSelect, children: /* @__PURE__ */ jsx("div", { children: props2.children }) }) }),
18418
+ /* @__PURE__ */ jsx(SelectContentProvider, { scope: props2.__scopeSelect, children: /* @__PURE__ */ jsx(Collection$5.Slot, { scope: props2.__scopeSelect, children: /* @__PURE__ */ jsx("div", { children: props2.children }) }) }),
17938
18419
  frag
17939
18420
  ) : null;
17940
18421
  }
17941
18422
  return /* @__PURE__ */ jsx(SelectContentImpl, { ...props2, ref: forwardedRef });
17942
18423
  }
17943
18424
  );
17944
- SelectContent$1.displayName = CONTENT_NAME$b;
18425
+ SelectContent$1.displayName = CONTENT_NAME$9;
17945
18426
  var CONTENT_MARGIN = 10;
17946
- var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$b);
18427
+ var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$9);
17947
18428
  var CONTENT_IMPL_NAME = "SelectContentImpl";
17948
18429
  var Slot$1 = /* @__PURE__ */ createSlot("SelectContent.RemoveScroll");
17949
18430
  var SelectContentImpl = React.forwardRef(
@@ -17969,7 +18450,7 @@ var SelectContentImpl = React.forwardRef(
17969
18450
  //
17970
18451
  ...contentProps
17971
18452
  } = props2;
17972
- const context = useSelectContext(CONTENT_NAME$b, __scopeSelect);
18453
+ const context = useSelectContext(CONTENT_NAME$9, __scopeSelect);
17973
18454
  const [content, setContent] = React.useState(null);
17974
18455
  const [viewport, setViewport] = React.useState(null);
17975
18456
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
@@ -17977,7 +18458,7 @@ var SelectContentImpl = React.forwardRef(
17977
18458
  const [selectedItemText, setSelectedItemText] = React.useState(
17978
18459
  null
17979
18460
  );
17980
- const getItems = useCollection$6(__scopeSelect);
18461
+ const getItems = useCollection$5(__scopeSelect);
17981
18462
  const [isPositioned, setIsPositioned] = React.useState(false);
17982
18463
  const firstValidItemFoundRef = React.useRef(false);
17983
18464
  React.useEffect(() => {
@@ -18184,12 +18665,12 @@ SelectContentImpl.displayName = CONTENT_IMPL_NAME;
18184
18665
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
18185
18666
  var SelectItemAlignedPosition = React.forwardRef((props2, forwardedRef) => {
18186
18667
  const { __scopeSelect, onPlaced, ...popperProps } = props2;
18187
- const context = useSelectContext(CONTENT_NAME$b, __scopeSelect);
18188
- const contentContext = useSelectContentContext(CONTENT_NAME$b, __scopeSelect);
18668
+ const context = useSelectContext(CONTENT_NAME$9, __scopeSelect);
18669
+ const contentContext = useSelectContentContext(CONTENT_NAME$9, __scopeSelect);
18189
18670
  const [contentWrapper, setContentWrapper] = React.useState(null);
18190
18671
  const [content, setContent] = React.useState(null);
18191
18672
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
18192
- const getItems = useCollection$6(__scopeSelect);
18673
+ const getItems = useCollection$5(__scopeSelect);
18193
18674
  const shouldExpandOnScrollRef = React.useRef(false);
18194
18675
  const shouldRepositionRef = React.useRef(true);
18195
18676
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
@@ -18355,7 +18836,7 @@ var SelectPopperPosition = React.forwardRef((props2, forwardedRef) => {
18355
18836
  } = props2;
18356
18837
  const popperScope = usePopperScope$3(__scopeSelect);
18357
18838
  return /* @__PURE__ */ jsx(
18358
- Content$5,
18839
+ Content$4,
18359
18840
  {
18360
18841
  ...popperScope,
18361
18842
  ...popperProps,
@@ -18379,7 +18860,7 @@ var SelectPopperPosition = React.forwardRef((props2, forwardedRef) => {
18379
18860
  );
18380
18861
  });
18381
18862
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
18382
- var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$b, {});
18863
+ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$9, {});
18383
18864
  var VIEWPORT_NAME$2 = "SelectViewport";
18384
18865
  var SelectViewport = React.forwardRef(
18385
18866
  (props2, forwardedRef) => {
@@ -18398,7 +18879,7 @@ var SelectViewport = React.forwardRef(
18398
18879
  nonce
18399
18880
  }
18400
18881
  ),
18401
- /* @__PURE__ */ jsx(Collection$6.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
18882
+ /* @__PURE__ */ jsx(Collection$5.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
18402
18883
  Primitive.div,
18403
18884
  {
18404
18885
  "data-radix-select-viewport": "",
@@ -18467,8 +18948,8 @@ var SelectLabel$1 = React.forwardRef(
18467
18948
  }
18468
18949
  );
18469
18950
  SelectLabel$1.displayName = LABEL_NAME$4;
18470
- var ITEM_NAME$9 = "SelectItem";
18471
- var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$9);
18951
+ var ITEM_NAME$8 = "SelectItem";
18952
+ var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$8);
18472
18953
  var SelectItem$1 = React.forwardRef(
18473
18954
  (props2, forwardedRef) => {
18474
18955
  const {
@@ -18478,8 +18959,8 @@ var SelectItem$1 = React.forwardRef(
18478
18959
  textValue: textValueProp,
18479
18960
  ...itemProps
18480
18961
  } = props2;
18481
- const context = useSelectContext(ITEM_NAME$9, __scopeSelect);
18482
- const contentContext = useSelectContentContext(ITEM_NAME$9, __scopeSelect);
18962
+ const context = useSelectContext(ITEM_NAME$8, __scopeSelect);
18963
+ const contentContext = useSelectContentContext(ITEM_NAME$8, __scopeSelect);
18483
18964
  const isSelected = context.value === value;
18484
18965
  const [textValue, setTextValue] = React.useState(textValueProp ?? "");
18485
18966
  const [isFocused, setIsFocused] = React.useState(false);
@@ -18515,7 +18996,7 @@ var SelectItem$1 = React.forwardRef(
18515
18996
  setTextValue((prevTextValue) => prevTextValue || ((node == null ? void 0 : node.textContent) ?? "").trim());
18516
18997
  }, []),
18517
18998
  children: /* @__PURE__ */ jsx(
18518
- Collection$6.ItemSlot,
18999
+ Collection$5.ItemSlot,
18519
19000
  {
18520
19001
  scope: __scopeSelect,
18521
19002
  value,
@@ -18575,7 +19056,7 @@ var SelectItem$1 = React.forwardRef(
18575
19056
  );
18576
19057
  }
18577
19058
  );
18578
- SelectItem$1.displayName = ITEM_NAME$9;
19059
+ SelectItem$1.displayName = ITEM_NAME$8;
18579
19060
  var ITEM_TEXT_NAME = "SelectItemText";
18580
19061
  var SelectItemText = React.forwardRef(
18581
19062
  (props2, forwardedRef) => {
@@ -18691,7 +19172,7 @@ var SelectScrollButtonImpl = React.forwardRef((props2, forwardedRef) => {
18691
19172
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props2;
18692
19173
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
18693
19174
  const autoScrollTimerRef = React.useRef(null);
18694
- const getItems = useCollection$6(__scopeSelect);
19175
+ const getItems = useCollection$5(__scopeSelect);
18695
19176
  const clearAutoScrollTimer = React.useCallback(() => {
18696
19177
  if (autoScrollTimerRef.current !== null) {
18697
19178
  window.clearInterval(autoScrollTimerRef.current);
@@ -18826,16 +19307,16 @@ function findNextItem(items, search, currentItem) {
18826
19307
  function wrapArray$3(array2, startIndex) {
18827
19308
  return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
18828
19309
  }
18829
- var Root2$9 = Select$2;
18830
- var Trigger$8 = SelectTrigger$1;
19310
+ var Root2$8 = Select$2;
19311
+ var Trigger$7 = SelectTrigger$1;
18831
19312
  var Value = SelectValue$1;
18832
19313
  var Icon = SelectIcon;
18833
19314
  var Portal$4 = SelectPortal;
18834
- var Content2$8 = SelectContent$1;
19315
+ var Content2$7 = SelectContent$1;
18835
19316
  var Viewport$2 = SelectViewport;
18836
19317
  var Group$1 = SelectGroup$1;
18837
19318
  var Label$1 = SelectLabel$1;
18838
- var Item$3 = SelectItem$1;
19319
+ var Item$2 = SelectItem$1;
18839
19320
  var ItemText = SelectItemText;
18840
19321
  var ItemIndicator$1 = SelectItemIndicator;
18841
19322
  var ScrollUpButton = SelectScrollUpButton$1;
@@ -18844,7 +19325,7 @@ var Separator$3 = SelectSeparator$1;
18844
19325
  function Select$1({
18845
19326
  ...props2
18846
19327
  }) {
18847
- return /* @__PURE__ */ jsx(Root2$9, { "data-slot": "select", ...props2 });
19328
+ return /* @__PURE__ */ jsx(Root2$8, { "data-slot": "select", ...props2 });
18848
19329
  }
18849
19330
  function SelectGroup({
18850
19331
  ...props2
@@ -18863,7 +19344,7 @@ function SelectTrigger({
18863
19344
  ...props2
18864
19345
  }) {
18865
19346
  return /* @__PURE__ */ jsxs(
18866
- Trigger$8,
19347
+ Trigger$7,
18867
19348
  {
18868
19349
  "data-slot": "select-trigger",
18869
19350
  "data-size": size2,
@@ -18886,7 +19367,7 @@ function SelectContent({
18886
19367
  ...props2
18887
19368
  }) {
18888
19369
  return /* @__PURE__ */ jsx(Portal$4, { children: /* @__PURE__ */ jsxs(
18889
- Content2$8,
19370
+ Content2$7,
18890
19371
  {
18891
19372
  "data-slot": "select-content",
18892
19373
  className: cn$1(
@@ -18932,7 +19413,7 @@ function SelectItem({
18932
19413
  ...props2
18933
19414
  }) {
18934
19415
  return /* @__PURE__ */ jsxs(
18935
- Item$3,
19416
+ Item$2,
18936
19417
  {
18937
19418
  "data-slot": "select-item",
18938
19419
  className: cn$1(
@@ -19102,7 +19583,7 @@ var Switch$1 = React.forwardRef(
19102
19583
  role: "switch",
19103
19584
  "aria-checked": checked,
19104
19585
  "aria-required": required2,
19105
- "data-state": getState$3(checked),
19586
+ "data-state": getState$1(checked),
19106
19587
  "data-disabled": disabled ? "" : void 0,
19107
19588
  disabled,
19108
19589
  value,
@@ -19143,7 +19624,7 @@ var SwitchThumb = React.forwardRef(
19143
19624
  return /* @__PURE__ */ jsx(
19144
19625
  Primitive.span,
19145
19626
  {
19146
- "data-state": getState$3(context.checked),
19627
+ "data-state": getState$1(context.checked),
19147
19628
  "data-disabled": context.disabled ? "" : void 0,
19148
19629
  ...thumbProps,
19149
19630
  ref: forwardedRef
@@ -19202,17 +19683,17 @@ var SwitchBubbleInput = React.forwardRef(
19202
19683
  }
19203
19684
  );
19204
19685
  SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME$2;
19205
- function getState$3(checked) {
19686
+ function getState$1(checked) {
19206
19687
  return checked ? "checked" : "unchecked";
19207
19688
  }
19208
- var Root$b = Switch$1;
19689
+ var Root$a = Switch$1;
19209
19690
  var Thumb$1 = SwitchThumb;
19210
19691
  function Switch({
19211
19692
  className,
19212
19693
  ...props2
19213
19694
  }) {
19214
19695
  return /* @__PURE__ */ jsx(
19215
- Root$b,
19696
+ Root$a,
19216
19697
  {
19217
19698
  "data-slot": "switch",
19218
19699
  className: cn$1(
@@ -19286,15 +19767,15 @@ function SwitchField({ field, fieldPath, value, onChange, className }) {
19286
19767
  var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
19287
19768
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
19288
19769
  var GROUP_NAME$4 = "RovingFocusGroup";
19289
- var [Collection$5, useCollection$5, createCollectionScope$5] = createCollection(GROUP_NAME$4);
19770
+ var [Collection$4, useCollection$4, createCollectionScope$4] = createCollection(GROUP_NAME$4);
19290
19771
  var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(
19291
19772
  GROUP_NAME$4,
19292
- [createCollectionScope$5]
19773
+ [createCollectionScope$4]
19293
19774
  );
19294
19775
  var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME$4);
19295
19776
  var RovingFocusGroup = React.forwardRef(
19296
19777
  (props2, forwardedRef) => {
19297
- return /* @__PURE__ */ jsx(Collection$5.Provider, { scope: props2.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection$5.Slot, { scope: props2.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props2, ref: forwardedRef }) }) });
19778
+ return /* @__PURE__ */ jsx(Collection$4.Provider, { scope: props2.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection$4.Slot, { scope: props2.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props2, ref: forwardedRef }) }) });
19298
19779
  }
19299
19780
  );
19300
19781
  RovingFocusGroup.displayName = GROUP_NAME$4;
@@ -19322,7 +19803,7 @@ var RovingFocusGroupImpl = React.forwardRef((props2, forwardedRef) => {
19322
19803
  });
19323
19804
  const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);
19324
19805
  const handleEntryFocus = useCallbackRef$2(onEntryFocus);
19325
- const getItems = useCollection$5(__scopeRovingFocusGroup);
19806
+ const getItems = useCollection$4(__scopeRovingFocusGroup);
19326
19807
  const isClickFocusRef = React.useRef(false);
19327
19808
  const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);
19328
19809
  React.useEffect(() => {
@@ -19388,7 +19869,7 @@ var RovingFocusGroupImpl = React.forwardRef((props2, forwardedRef) => {
19388
19869
  }
19389
19870
  );
19390
19871
  });
19391
- var ITEM_NAME$8 = "RovingFocusGroupItem";
19872
+ var ITEM_NAME$7 = "RovingFocusGroupItem";
19392
19873
  var RovingFocusGroupItem = React.forwardRef(
19393
19874
  (props2, forwardedRef) => {
19394
19875
  const {
@@ -19401,9 +19882,9 @@ var RovingFocusGroupItem = React.forwardRef(
19401
19882
  } = props2;
19402
19883
  const autoId = useId$1();
19403
19884
  const id = tabStopId || autoId;
19404
- const context = useRovingFocusContext(ITEM_NAME$8, __scopeRovingFocusGroup);
19885
+ const context = useRovingFocusContext(ITEM_NAME$7, __scopeRovingFocusGroup);
19405
19886
  const isCurrentTabStop = context.currentTabStopId === id;
19406
- const getItems = useCollection$5(__scopeRovingFocusGroup);
19887
+ const getItems = useCollection$4(__scopeRovingFocusGroup);
19407
19888
  const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
19408
19889
  React.useEffect(() => {
19409
19890
  if (focusable) {
@@ -19412,7 +19893,7 @@ var RovingFocusGroupItem = React.forwardRef(
19412
19893
  }
19413
19894
  }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
19414
19895
  return /* @__PURE__ */ jsx(
19415
- Collection$5.ItemSlot,
19896
+ Collection$4.ItemSlot,
19416
19897
  {
19417
19898
  scope: __scopeRovingFocusGroup,
19418
19899
  id,
@@ -19458,7 +19939,7 @@ var RovingFocusGroupItem = React.forwardRef(
19458
19939
  );
19459
19940
  }
19460
19941
  );
19461
- RovingFocusGroupItem.displayName = ITEM_NAME$8;
19942
+ RovingFocusGroupItem.displayName = ITEM_NAME$7;
19462
19943
  var MAP_KEY_TO_FOCUS_INTENT = {
19463
19944
  ArrowLeft: "prev",
19464
19945
  ArrowUp: "prev",
@@ -19490,8 +19971,8 @@ function focusFirst$2(candidates, preventScroll = false) {
19490
19971
  function wrapArray$2(array2, startIndex) {
19491
19972
  return array2.map((_2, index2) => array2[(startIndex + index2) % array2.length]);
19492
19973
  }
19493
- var Root$a = RovingFocusGroup;
19494
- var Item$2 = RovingFocusGroupItem;
19974
+ var Root$9 = RovingFocusGroup;
19975
+ var Item$1 = RovingFocusGroupItem;
19495
19976
  var RADIO_NAME = "Radio";
19496
19977
  var [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);
19497
19978
  var [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME);
@@ -19519,7 +20000,7 @@ var Radio = React.forwardRef(
19519
20000
  type: "button",
19520
20001
  role: "radio",
19521
20002
  "aria-checked": checked,
19522
- "data-state": getState$2(checked),
20003
+ "data-state": getState(checked),
19523
20004
  "data-disabled": disabled ? "" : void 0,
19524
20005
  disabled,
19525
20006
  value,
@@ -19560,7 +20041,7 @@ var RadioIndicator = React.forwardRef(
19560
20041
  return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(
19561
20042
  Primitive.span,
19562
20043
  {
19563
- "data-state": getState$2(context.checked),
20044
+ "data-state": getState(context.checked),
19564
20045
  "data-disabled": context.disabled ? "" : void 0,
19565
20046
  ...indicatorProps,
19566
20047
  ref: forwardedRef
@@ -19619,7 +20100,7 @@ var RadioBubbleInput = React.forwardRef(
19619
20100
  }
19620
20101
  );
19621
20102
  RadioBubbleInput.displayName = BUBBLE_INPUT_NAME$1;
19622
- function getState$2(checked) {
20103
+ function getState(checked) {
19623
20104
  return checked ? "checked" : "unchecked";
19624
20105
  }
19625
20106
  var ARROW_KEYS$2 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
@@ -19664,7 +20145,7 @@ var RadioGroup$2 = React.forwardRef(
19664
20145
  value,
19665
20146
  onValueChange: setValue,
19666
20147
  children: /* @__PURE__ */ jsx(
19667
- Root$a,
20148
+ Root$9,
19668
20149
  {
19669
20150
  asChild: true,
19670
20151
  ...rovingFocusGroupScope,
@@ -19690,11 +20171,11 @@ var RadioGroup$2 = React.forwardRef(
19690
20171
  }
19691
20172
  );
19692
20173
  RadioGroup$2.displayName = RADIO_GROUP_NAME$4;
19693
- var ITEM_NAME$7 = "RadioGroupItem";
20174
+ var ITEM_NAME$6 = "RadioGroupItem";
19694
20175
  var RadioGroupItem$1 = React.forwardRef(
19695
20176
  (props2, forwardedRef) => {
19696
20177
  const { __scopeRadioGroup, disabled, ...itemProps } = props2;
19697
- const context = useRadioGroupContext$1(ITEM_NAME$7, __scopeRadioGroup);
20178
+ const context = useRadioGroupContext$1(ITEM_NAME$6, __scopeRadioGroup);
19698
20179
  const isDisabled = context.disabled || disabled;
19699
20180
  const rovingFocusGroupScope = useRovingFocusGroupScope$4(__scopeRadioGroup);
19700
20181
  const radioScope = useRadioScope(__scopeRadioGroup);
@@ -19717,7 +20198,7 @@ var RadioGroupItem$1 = React.forwardRef(
19717
20198
  };
19718
20199
  }, []);
19719
20200
  return /* @__PURE__ */ jsx(
19720
- Item$2,
20201
+ Item$1,
19721
20202
  {
19722
20203
  asChild: true,
19723
20204
  ...rovingFocusGroupScope,
@@ -19747,7 +20228,7 @@ var RadioGroupItem$1 = React.forwardRef(
19747
20228
  );
19748
20229
  }
19749
20230
  );
19750
- RadioGroupItem$1.displayName = ITEM_NAME$7;
20231
+ RadioGroupItem$1.displayName = ITEM_NAME$6;
19751
20232
  var INDICATOR_NAME2 = "RadioGroupIndicator";
19752
20233
  var RadioGroupIndicator = React.forwardRef(
19753
20234
  (props2, forwardedRef) => {
@@ -19757,7 +20238,7 @@ var RadioGroupIndicator = React.forwardRef(
19757
20238
  }
19758
20239
  );
19759
20240
  RadioGroupIndicator.displayName = INDICATOR_NAME2;
19760
- var Root2$8 = RadioGroup$2;
20241
+ var Root2$7 = RadioGroup$2;
19761
20242
  var Item2$4 = RadioGroupItem$1;
19762
20243
  var Indicator$2 = RadioGroupIndicator;
19763
20244
  function RadioGroup$1({
@@ -19765,7 +20246,7 @@ function RadioGroup$1({
19765
20246
  ...props2
19766
20247
  }) {
19767
20248
  return /* @__PURE__ */ jsx(
19768
- Root2$8,
20249
+ Root2$7,
19769
20250
  {
19770
20251
  "data-slot": "radio-group",
19771
20252
  className: cn$1("grid gap-3", className),
@@ -20327,7 +20808,7 @@ Separator$2.displayName = NAME$2;
20327
20808
  function isValidOrientation(orientation) {
20328
20809
  return ORIENTATIONS.includes(orientation);
20329
20810
  }
20330
- var Root$9 = Separator$2;
20811
+ var Root$8 = Separator$2;
20331
20812
  function Separator$1({
20332
20813
  className,
20333
20814
  orientation = "horizontal",
@@ -20335,7 +20816,7 @@ function Separator$1({
20335
20816
  ...props2
20336
20817
  }) {
20337
20818
  return /* @__PURE__ */ jsx(
20338
- Root$9,
20819
+ Root$8,
20339
20820
  {
20340
20821
  "data-slot": "separator",
20341
20822
  decorative,
@@ -20944,487 +21425,6 @@ function FormBuilder({
20944
21425
  )
20945
21426
  ] }) });
20946
21427
  }
20947
- var COLLAPSIBLE_NAME = "Collapsible";
20948
- var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
20949
- var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
20950
- var Collapsible$1 = React.forwardRef(
20951
- (props2, forwardedRef) => {
20952
- const {
20953
- __scopeCollapsible,
20954
- open: openProp,
20955
- defaultOpen,
20956
- disabled,
20957
- onOpenChange,
20958
- ...collapsibleProps
20959
- } = props2;
20960
- const [open, setOpen] = useControllableState$1({
20961
- prop: openProp,
20962
- defaultProp: defaultOpen ?? false,
20963
- onChange: onOpenChange,
20964
- caller: COLLAPSIBLE_NAME
20965
- });
20966
- return /* @__PURE__ */ jsx(
20967
- CollapsibleProvider,
20968
- {
20969
- scope: __scopeCollapsible,
20970
- disabled,
20971
- contentId: useId$1(),
20972
- open,
20973
- onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
20974
- children: /* @__PURE__ */ jsx(
20975
- Primitive.div,
20976
- {
20977
- "data-state": getState$1(open),
20978
- "data-disabled": disabled ? "" : void 0,
20979
- ...collapsibleProps,
20980
- ref: forwardedRef
20981
- }
20982
- )
20983
- }
20984
- );
20985
- }
20986
- );
20987
- Collapsible$1.displayName = COLLAPSIBLE_NAME;
20988
- var TRIGGER_NAME$9 = "CollapsibleTrigger";
20989
- var CollapsibleTrigger$1 = React.forwardRef(
20990
- (props2, forwardedRef) => {
20991
- const { __scopeCollapsible, ...triggerProps } = props2;
20992
- const context = useCollapsibleContext(TRIGGER_NAME$9, __scopeCollapsible);
20993
- return /* @__PURE__ */ jsx(
20994
- Primitive.button,
20995
- {
20996
- type: "button",
20997
- "aria-controls": context.contentId,
20998
- "aria-expanded": context.open || false,
20999
- "data-state": getState$1(context.open),
21000
- "data-disabled": context.disabled ? "" : void 0,
21001
- disabled: context.disabled,
21002
- ...triggerProps,
21003
- ref: forwardedRef,
21004
- onClick: composeEventHandlers(props2.onClick, context.onOpenToggle)
21005
- }
21006
- );
21007
- }
21008
- );
21009
- CollapsibleTrigger$1.displayName = TRIGGER_NAME$9;
21010
- var CONTENT_NAME$a = "CollapsibleContent";
21011
- var CollapsibleContent$1 = React.forwardRef(
21012
- (props2, forwardedRef) => {
21013
- const { forceMount, ...contentProps } = props2;
21014
- const context = useCollapsibleContext(CONTENT_NAME$a, props2.__scopeCollapsible);
21015
- return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
21016
- }
21017
- );
21018
- CollapsibleContent$1.displayName = CONTENT_NAME$a;
21019
- var CollapsibleContentImpl = React.forwardRef((props2, forwardedRef) => {
21020
- const { __scopeCollapsible, present, children, ...contentProps } = props2;
21021
- const context = useCollapsibleContext(CONTENT_NAME$a, __scopeCollapsible);
21022
- const [isPresent, setIsPresent] = React.useState(present);
21023
- const ref = React.useRef(null);
21024
- const composedRefs = useComposedRefs$1(forwardedRef, ref);
21025
- const heightRef = React.useRef(0);
21026
- const height = heightRef.current;
21027
- const widthRef = React.useRef(0);
21028
- const width = widthRef.current;
21029
- const isOpen = context.open || isPresent;
21030
- const isMountAnimationPreventedRef = React.useRef(isOpen);
21031
- const originalStylesRef = React.useRef(void 0);
21032
- React.useEffect(() => {
21033
- const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
21034
- return () => cancelAnimationFrame(rAF);
21035
- }, []);
21036
- useLayoutEffect2(() => {
21037
- const node = ref.current;
21038
- if (node) {
21039
- originalStylesRef.current = originalStylesRef.current || {
21040
- transitionDuration: node.style.transitionDuration,
21041
- animationName: node.style.animationName
21042
- };
21043
- node.style.transitionDuration = "0s";
21044
- node.style.animationName = "none";
21045
- const rect = node.getBoundingClientRect();
21046
- heightRef.current = rect.height;
21047
- widthRef.current = rect.width;
21048
- if (!isMountAnimationPreventedRef.current) {
21049
- node.style.transitionDuration = originalStylesRef.current.transitionDuration;
21050
- node.style.animationName = originalStylesRef.current.animationName;
21051
- }
21052
- setIsPresent(present);
21053
- }
21054
- }, [context.open, present]);
21055
- return /* @__PURE__ */ jsx(
21056
- Primitive.div,
21057
- {
21058
- "data-state": getState$1(context.open),
21059
- "data-disabled": context.disabled ? "" : void 0,
21060
- id: context.contentId,
21061
- hidden: !isOpen,
21062
- ...contentProps,
21063
- ref: composedRefs,
21064
- style: {
21065
- [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
21066
- [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
21067
- ...props2.style
21068
- },
21069
- children: isOpen && children
21070
- }
21071
- );
21072
- });
21073
- function getState$1(open) {
21074
- return open ? "open" : "closed";
21075
- }
21076
- var Root$8 = Collapsible$1;
21077
- var Trigger$7 = CollapsibleTrigger$1;
21078
- var Content$3 = CollapsibleContent$1;
21079
- var ACCORDION_NAME = "Accordion";
21080
- var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
21081
- var [Collection$4, useCollection$4, createCollectionScope$4] = createCollection(ACCORDION_NAME);
21082
- var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
21083
- createCollectionScope$4,
21084
- createCollapsibleScope
21085
- ]);
21086
- var useCollapsibleScope = createCollapsibleScope();
21087
- var Accordion$1 = React__default.forwardRef(
21088
- (props2, forwardedRef) => {
21089
- const { type, ...accordionProps } = props2;
21090
- const singleProps = accordionProps;
21091
- const multipleProps = accordionProps;
21092
- return /* @__PURE__ */ jsx(Collection$4.Provider, { scope: props2.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
21093
- }
21094
- );
21095
- Accordion$1.displayName = ACCORDION_NAME;
21096
- var [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);
21097
- var [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(
21098
- ACCORDION_NAME,
21099
- { collapsible: false }
21100
- );
21101
- var AccordionImplSingle = React__default.forwardRef(
21102
- (props2, forwardedRef) => {
21103
- const {
21104
- value: valueProp,
21105
- defaultValue,
21106
- onValueChange = () => {
21107
- },
21108
- collapsible = false,
21109
- ...accordionSingleProps
21110
- } = props2;
21111
- const [value, setValue] = useControllableState$1({
21112
- prop: valueProp,
21113
- defaultProp: defaultValue ?? "",
21114
- onChange: onValueChange,
21115
- caller: ACCORDION_NAME
21116
- });
21117
- return /* @__PURE__ */ jsx(
21118
- AccordionValueProvider,
21119
- {
21120
- scope: props2.__scopeAccordion,
21121
- value: React__default.useMemo(() => value ? [value] : [], [value]),
21122
- onItemOpen: setValue,
21123
- onItemClose: React__default.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
21124
- children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props2.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
21125
- }
21126
- );
21127
- }
21128
- );
21129
- var AccordionImplMultiple = React__default.forwardRef((props2, forwardedRef) => {
21130
- const {
21131
- value: valueProp,
21132
- defaultValue,
21133
- onValueChange = () => {
21134
- },
21135
- ...accordionMultipleProps
21136
- } = props2;
21137
- const [value, setValue] = useControllableState$1({
21138
- prop: valueProp,
21139
- defaultProp: defaultValue ?? [],
21140
- onChange: onValueChange,
21141
- caller: ACCORDION_NAME
21142
- });
21143
- const handleItemOpen = React__default.useCallback(
21144
- (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
21145
- [setValue]
21146
- );
21147
- const handleItemClose = React__default.useCallback(
21148
- (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
21149
- [setValue]
21150
- );
21151
- return /* @__PURE__ */ jsx(
21152
- AccordionValueProvider,
21153
- {
21154
- scope: props2.__scopeAccordion,
21155
- value,
21156
- onItemOpen: handleItemOpen,
21157
- onItemClose: handleItemClose,
21158
- children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props2.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
21159
- }
21160
- );
21161
- });
21162
- var [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);
21163
- var AccordionImpl = React__default.forwardRef(
21164
- (props2, forwardedRef) => {
21165
- const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props2;
21166
- const accordionRef = React__default.useRef(null);
21167
- const composedRefs = useComposedRefs$1(accordionRef, forwardedRef);
21168
- const getItems = useCollection$4(__scopeAccordion);
21169
- const direction = useDirection(dir);
21170
- const isDirectionLTR = direction === "ltr";
21171
- const handleKeyDown = composeEventHandlers(props2.onKeyDown, (event) => {
21172
- var _a;
21173
- if (!ACCORDION_KEYS.includes(event.key)) return;
21174
- const target = event.target;
21175
- const triggerCollection = getItems().filter((item) => {
21176
- var _a2;
21177
- return !((_a2 = item.ref.current) == null ? void 0 : _a2.disabled);
21178
- });
21179
- const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);
21180
- const triggerCount = triggerCollection.length;
21181
- if (triggerIndex === -1) return;
21182
- event.preventDefault();
21183
- let nextIndex = triggerIndex;
21184
- const homeIndex = 0;
21185
- const endIndex = triggerCount - 1;
21186
- const moveNext = () => {
21187
- nextIndex = triggerIndex + 1;
21188
- if (nextIndex > endIndex) {
21189
- nextIndex = homeIndex;
21190
- }
21191
- };
21192
- const movePrev = () => {
21193
- nextIndex = triggerIndex - 1;
21194
- if (nextIndex < homeIndex) {
21195
- nextIndex = endIndex;
21196
- }
21197
- };
21198
- switch (event.key) {
21199
- case "Home":
21200
- nextIndex = homeIndex;
21201
- break;
21202
- case "End":
21203
- nextIndex = endIndex;
21204
- break;
21205
- case "ArrowRight":
21206
- if (orientation === "horizontal") {
21207
- if (isDirectionLTR) {
21208
- moveNext();
21209
- } else {
21210
- movePrev();
21211
- }
21212
- }
21213
- break;
21214
- case "ArrowDown":
21215
- if (orientation === "vertical") {
21216
- moveNext();
21217
- }
21218
- break;
21219
- case "ArrowLeft":
21220
- if (orientation === "horizontal") {
21221
- if (isDirectionLTR) {
21222
- movePrev();
21223
- } else {
21224
- moveNext();
21225
- }
21226
- }
21227
- break;
21228
- case "ArrowUp":
21229
- if (orientation === "vertical") {
21230
- movePrev();
21231
- }
21232
- break;
21233
- }
21234
- const clampedIndex = nextIndex % triggerCount;
21235
- (_a = triggerCollection[clampedIndex].ref.current) == null ? void 0 : _a.focus();
21236
- });
21237
- return /* @__PURE__ */ jsx(
21238
- AccordionImplProvider,
21239
- {
21240
- scope: __scopeAccordion,
21241
- disabled,
21242
- direction: dir,
21243
- orientation,
21244
- children: /* @__PURE__ */ jsx(Collection$4.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
21245
- Primitive.div,
21246
- {
21247
- ...accordionProps,
21248
- "data-orientation": orientation,
21249
- ref: composedRefs,
21250
- onKeyDown: disabled ? void 0 : handleKeyDown
21251
- }
21252
- ) })
21253
- }
21254
- );
21255
- }
21256
- );
21257
- var ITEM_NAME$6 = "AccordionItem";
21258
- var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME$6);
21259
- var AccordionItem$1 = React__default.forwardRef(
21260
- (props2, forwardedRef) => {
21261
- const { __scopeAccordion, value, ...accordionItemProps } = props2;
21262
- const accordionContext = useAccordionContext(ITEM_NAME$6, __scopeAccordion);
21263
- const valueContext = useAccordionValueContext(ITEM_NAME$6, __scopeAccordion);
21264
- const collapsibleScope = useCollapsibleScope(__scopeAccordion);
21265
- const triggerId = useId$1();
21266
- const open = value && valueContext.value.includes(value) || false;
21267
- const disabled = accordionContext.disabled || props2.disabled;
21268
- return /* @__PURE__ */ jsx(
21269
- AccordionItemProvider,
21270
- {
21271
- scope: __scopeAccordion,
21272
- open,
21273
- disabled,
21274
- triggerId,
21275
- children: /* @__PURE__ */ jsx(
21276
- Root$8,
21277
- {
21278
- "data-orientation": accordionContext.orientation,
21279
- "data-state": getState(open),
21280
- ...collapsibleScope,
21281
- ...accordionItemProps,
21282
- ref: forwardedRef,
21283
- disabled,
21284
- open,
21285
- onOpenChange: (open2) => {
21286
- if (open2) {
21287
- valueContext.onItemOpen(value);
21288
- } else {
21289
- valueContext.onItemClose(value);
21290
- }
21291
- }
21292
- }
21293
- )
21294
- }
21295
- );
21296
- }
21297
- );
21298
- AccordionItem$1.displayName = ITEM_NAME$6;
21299
- var HEADER_NAME = "AccordionHeader";
21300
- var AccordionHeader = React__default.forwardRef(
21301
- (props2, forwardedRef) => {
21302
- const { __scopeAccordion, ...headerProps } = props2;
21303
- const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
21304
- const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
21305
- return /* @__PURE__ */ jsx(
21306
- Primitive.h3,
21307
- {
21308
- "data-orientation": accordionContext.orientation,
21309
- "data-state": getState(itemContext.open),
21310
- "data-disabled": itemContext.disabled ? "" : void 0,
21311
- ...headerProps,
21312
- ref: forwardedRef
21313
- }
21314
- );
21315
- }
21316
- );
21317
- AccordionHeader.displayName = HEADER_NAME;
21318
- var TRIGGER_NAME$8 = "AccordionTrigger";
21319
- var AccordionTrigger$1 = React__default.forwardRef(
21320
- (props2, forwardedRef) => {
21321
- const { __scopeAccordion, ...triggerProps } = props2;
21322
- const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
21323
- const itemContext = useAccordionItemContext(TRIGGER_NAME$8, __scopeAccordion);
21324
- const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME$8, __scopeAccordion);
21325
- const collapsibleScope = useCollapsibleScope(__scopeAccordion);
21326
- return /* @__PURE__ */ jsx(Collection$4.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(
21327
- Trigger$7,
21328
- {
21329
- "aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
21330
- "data-orientation": accordionContext.orientation,
21331
- id: itemContext.triggerId,
21332
- ...collapsibleScope,
21333
- ...triggerProps,
21334
- ref: forwardedRef
21335
- }
21336
- ) });
21337
- }
21338
- );
21339
- AccordionTrigger$1.displayName = TRIGGER_NAME$8;
21340
- var CONTENT_NAME$9 = "AccordionContent";
21341
- var AccordionContent$1 = React__default.forwardRef(
21342
- (props2, forwardedRef) => {
21343
- const { __scopeAccordion, ...contentProps } = props2;
21344
- const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
21345
- const itemContext = useAccordionItemContext(CONTENT_NAME$9, __scopeAccordion);
21346
- const collapsibleScope = useCollapsibleScope(__scopeAccordion);
21347
- return /* @__PURE__ */ jsx(
21348
- Content$3,
21349
- {
21350
- role: "region",
21351
- "aria-labelledby": itemContext.triggerId,
21352
- "data-orientation": accordionContext.orientation,
21353
- ...collapsibleScope,
21354
- ...contentProps,
21355
- ref: forwardedRef,
21356
- style: {
21357
- ["--radix-accordion-content-height"]: "var(--radix-collapsible-content-height)",
21358
- ["--radix-accordion-content-width"]: "var(--radix-collapsible-content-width)",
21359
- ...props2.style
21360
- }
21361
- }
21362
- );
21363
- }
21364
- );
21365
- AccordionContent$1.displayName = CONTENT_NAME$9;
21366
- function getState(open) {
21367
- return open ? "open" : "closed";
21368
- }
21369
- var Root2$7 = Accordion$1;
21370
- var Item$1 = AccordionItem$1;
21371
- var Header = AccordionHeader;
21372
- var Trigger2$1 = AccordionTrigger$1;
21373
- var Content2$7 = AccordionContent$1;
21374
- function Accordion({
21375
- ...props2
21376
- }) {
21377
- return /* @__PURE__ */ jsx(Root2$7, { "data-slot": "accordion", ...props2 });
21378
- }
21379
- function AccordionItem({
21380
- className,
21381
- ...props2
21382
- }) {
21383
- return /* @__PURE__ */ jsx(
21384
- Item$1,
21385
- {
21386
- "data-slot": "accordion-item",
21387
- className: cn$1("border-b last:border-b-0", className),
21388
- ...props2
21389
- }
21390
- );
21391
- }
21392
- function AccordionTrigger({
21393
- className,
21394
- children,
21395
- ...props2
21396
- }) {
21397
- return /* @__PURE__ */ jsx(Header, { className: "flex", children: /* @__PURE__ */ jsxs(
21398
- Trigger2$1,
21399
- {
21400
- "data-slot": "accordion-trigger",
21401
- className: cn$1(
21402
- "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
21403
- className
21404
- ),
21405
- ...props2,
21406
- children: [
21407
- children,
21408
- /* @__PURE__ */ jsx(ChevronDown, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
21409
- ]
21410
- }
21411
- ) });
21412
- }
21413
- function AccordionContent({
21414
- className,
21415
- children,
21416
- ...props2
21417
- }) {
21418
- return /* @__PURE__ */ jsx(
21419
- Content2$7,
21420
- {
21421
- "data-slot": "accordion-content",
21422
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
21423
- ...props2,
21424
- children: /* @__PURE__ */ jsx("div", { className: cn$1("pt-0 pb-4", className), children })
21425
- }
21426
- );
21427
- }
21428
21428
  function DataTablePagination({ table }) {
21429
21429
  const pagination = table.getState().pagination ?? { pageIndex: 0, pageSize: 10 };
21430
21430
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-2", children: [
@@ -21561,7 +21561,7 @@ var Menu$1 = (props2) => {
21561
21561
  document.removeEventListener("pointermove", handlePointer, { capture: true });
21562
21562
  };
21563
21563
  }, []);
21564
- return /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children: /* @__PURE__ */ jsx(
21564
+ return /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children: /* @__PURE__ */ jsx(
21565
21565
  MenuProvider,
21566
21566
  {
21567
21567
  scope: __scopeMenu,
@@ -21769,7 +21769,7 @@ var MenuContentImpl = React.forwardRef(
21769
21769
  onInteractOutside,
21770
21770
  onDismiss,
21771
21771
  children: /* @__PURE__ */ jsx(
21772
- Root$a,
21772
+ Root$9,
21773
21773
  {
21774
21774
  asChild: true,
21775
21775
  ...rovingFocusGroupScope,
@@ -21783,7 +21783,7 @@ var MenuContentImpl = React.forwardRef(
21783
21783
  }),
21784
21784
  preventScrollOnEntryFocus: true,
21785
21785
  children: /* @__PURE__ */ jsx(
21786
- Content$5,
21786
+ Content$4,
21787
21787
  {
21788
21788
  role: "menu",
21789
21789
  "aria-orientation": "vertical",
@@ -21932,7 +21932,7 @@ var MenuItemImpl = React.forwardRef(
21932
21932
  scope: __scopeMenu,
21933
21933
  disabled,
21934
21934
  textValue: textValue ?? textContent,
21935
- children: /* @__PURE__ */ jsx(Item$2, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
21935
+ children: /* @__PURE__ */ jsx(Item$1, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
21936
21936
  Primitive.div,
21937
21937
  {
21938
21938
  role: "menuitem",
@@ -22094,7 +22094,7 @@ var MenuSub = (props2) => {
22094
22094
  if (parentMenuContext.open === false) handleOpenChange(false);
22095
22095
  return () => handleOpenChange(false);
22096
22096
  }, [parentMenuContext.open, handleOpenChange]);
22097
- return /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children: /* @__PURE__ */ jsx(
22097
+ return /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children: /* @__PURE__ */ jsx(
22098
22098
  MenuProvider,
22099
22099
  {
22100
22100
  scope: __scopeMenu,
@@ -23058,7 +23058,7 @@ function DataTable({
23058
23058
  },
23059
23059
  JSON.stringify(formFilterValues ?? {})
23060
23060
  ) : null,
23061
- (safeActions.length || showStandardActions || selectable && table.getSelectedRowModel().rows.length > 0 && safeBatchActions.length) && /* @__PURE__ */ jsx("div", { className: "rounded-md border p-2 mt-6", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
23061
+ (safeActions.length || showStandardActions || selectable && table.getSelectedRowModel().rows.length > 0 && safeBatchActions.length) && /* @__PURE__ */ jsx("div", { className: "rounded-md p-2 mt-6", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
23062
23062
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: selectable && table.getSelectedRowModel().rows.length > 0 && safeBatchActions.map((a2) => renderBatchButton(a2, a2.key)) }),
23063
23063
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
23064
23064
  showStandardActions && onRefresh && /* @__PURE__ */ jsxs(
@@ -28637,7 +28637,7 @@ var useDialogScope = createDialogScope();
28637
28637
  var AlertDialog$1 = (props2) => {
28638
28638
  const { __scopeAlertDialog, ...alertDialogProps } = props2;
28639
28639
  const dialogScope = useDialogScope(__scopeAlertDialog);
28640
- return /* @__PURE__ */ jsx(Root$d, { ...dialogScope, ...alertDialogProps, modal: true });
28640
+ return /* @__PURE__ */ jsx(Root$c, { ...dialogScope, ...alertDialogProps, modal: true });
28641
28641
  };
28642
28642
  AlertDialog$1.displayName = ROOT_NAME;
28643
28643
  var TRIGGER_NAME$6 = "AlertDialogTrigger";
@@ -28645,7 +28645,7 @@ var AlertDialogTrigger$1 = React.forwardRef(
28645
28645
  (props2, forwardedRef) => {
28646
28646
  const { __scopeAlertDialog, ...triggerProps } = props2;
28647
28647
  const dialogScope = useDialogScope(__scopeAlertDialog);
28648
- return /* @__PURE__ */ jsx(Trigger$9, { ...dialogScope, ...triggerProps, ref: forwardedRef });
28648
+ return /* @__PURE__ */ jsx(Trigger$8, { ...dialogScope, ...triggerProps, ref: forwardedRef });
28649
28649
  }
28650
28650
  );
28651
28651
  AlertDialogTrigger$1.displayName = TRIGGER_NAME$6;
@@ -28682,7 +28682,7 @@ var AlertDialogContent$1 = React.forwardRef(
28682
28682
  titleName: TITLE_NAME,
28683
28683
  docsSlug: "alert-dialog",
28684
28684
  children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(
28685
- Content$4,
28685
+ Content$3,
28686
28686
  {
28687
28687
  role: "alertdialog",
28688
28688
  ...dialogScope,
@@ -29515,12 +29515,12 @@ function useIsMobile() {
29515
29515
  return !!isMobile;
29516
29516
  }
29517
29517
  function Sheet({ ...props2 }) {
29518
- return /* @__PURE__ */ jsx(Root$d, { "data-slot": "sheet", ...props2 });
29518
+ return /* @__PURE__ */ jsx(Root$c, { "data-slot": "sheet", ...props2 });
29519
29519
  }
29520
29520
  function SheetTrigger({
29521
29521
  ...props2
29522
29522
  }) {
29523
- return /* @__PURE__ */ jsx(Trigger$9, { "data-slot": "sheet-trigger", ...props2 });
29523
+ return /* @__PURE__ */ jsx(Trigger$8, { "data-slot": "sheet-trigger", ...props2 });
29524
29524
  }
29525
29525
  function SheetClose({
29526
29526
  ...props2
@@ -29557,7 +29557,7 @@ function SheetContent({
29557
29557
  return /* @__PURE__ */ jsxs(SheetPortal, { children: [
29558
29558
  /* @__PURE__ */ jsx(SheetOverlay, {}),
29559
29559
  /* @__PURE__ */ jsxs(
29560
- Content$4,
29560
+ Content$3,
29561
29561
  {
29562
29562
  "data-slot": "sheet-content",
29563
29563
  className: cn$1(
@@ -29740,7 +29740,7 @@ var Tooltip$2 = (props2) => {
29740
29740
  }
29741
29741
  };
29742
29742
  }, []);
29743
- return /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children: /* @__PURE__ */ jsx(
29743
+ return /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children: /* @__PURE__ */ jsx(
29744
29744
  TooltipContextProvider,
29745
29745
  {
29746
29746
  scope: __scopeTooltip,
@@ -29938,7 +29938,7 @@ var TooltipContentImpl = React.forwardRef(
29938
29938
  onFocusOutside: (event) => event.preventDefault(),
29939
29939
  onDismiss: onClose,
29940
29940
  children: /* @__PURE__ */ jsxs(
29941
- Content$5,
29941
+ Content$4,
29942
29942
  {
29943
29943
  "data-state": context.stateAttribute,
29944
29944
  ...popperScope,
@@ -29957,7 +29957,7 @@ var TooltipContentImpl = React.forwardRef(
29957
29957
  },
29958
29958
  children: [
29959
29959
  /* @__PURE__ */ jsx(Slottable, { children }),
29960
- /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$c, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
29960
+ /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$b, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
29961
29961
  ]
29962
29962
  }
29963
29963
  )
@@ -43336,7 +43336,7 @@ function getPayloadConfigFromPayload(config2, payload, key) {
43336
43336
  function Collapsible({
43337
43337
  ...props2
43338
43338
  }) {
43339
- return /* @__PURE__ */ jsx(Root$8, { "data-slot": "collapsible", ...props2 });
43339
+ return /* @__PURE__ */ jsx(Root$f, { "data-slot": "collapsible", ...props2 });
43340
43340
  }
43341
43341
  function CollapsibleTrigger({
43342
43342
  ...props2
@@ -45027,7 +45027,7 @@ function Root$4({ open: openProp, onOpenChange, children, onDrag: onDragProp, on
45027
45027
  }, [
45028
45028
  modal
45029
45029
  ]);
45030
- return /* @__PURE__ */ React__default.createElement(Root$d, {
45030
+ return /* @__PURE__ */ React__default.createElement(Root$c, {
45031
45031
  defaultOpen,
45032
45032
  onOpenChange: (open) => {
45033
45033
  if (!dismissible && !open) return;
@@ -45138,7 +45138,7 @@ const Content$2 = /* @__PURE__ */ React__default.forwardRef(function({ onPointer
45138
45138
  wasBeyondThePointRef.current = false;
45139
45139
  onRelease(event);
45140
45140
  }
45141
- return /* @__PURE__ */ React__default.createElement(Content$4, {
45141
+ return /* @__PURE__ */ React__default.createElement(Content$3, {
45142
45142
  "data-vaul-drawer-direction": direction,
45143
45143
  "data-vaul-drawer": "",
45144
45144
  "data-vaul-delayed-snap-points": delayedSnapPoints ? "true" : "false",
@@ -45301,7 +45301,7 @@ const Drawer$1 = {
45301
45301
  Root: Root$4,
45302
45302
  Content: Content$2,
45303
45303
  Overlay,
45304
- Trigger: Trigger$9,
45304
+ Trigger: Trigger$8,
45305
45305
  Portal: Portal$1,
45306
45306
  Close,
45307
45307
  Title,
@@ -45576,7 +45576,7 @@ var HoverCard$1 = (props2) => {
45576
45576
  onDismiss: handleDismiss,
45577
45577
  hasSelectionRef,
45578
45578
  isPointerDownOnContentRef,
45579
- children: /* @__PURE__ */ jsx(Root2$b, { ...popperScope, children })
45579
+ children: /* @__PURE__ */ jsx(Root2$a, { ...popperScope, children })
45580
45580
  }
45581
45581
  );
45582
45582
  };
@@ -45696,7 +45696,7 @@ var HoverCardContentImpl = React.forwardRef((props2, forwardedRef) => {
45696
45696
  }),
45697
45697
  onDismiss: context.onDismiss,
45698
45698
  children: /* @__PURE__ */ jsx(
45699
- Content$5,
45699
+ Content$4,
45700
45700
  {
45701
45701
  ...popperScope,
45702
45702
  ...contentProps,
@@ -46085,7 +46085,7 @@ var Menubar$1 = React.forwardRef(
46085
46085
  dir: direction,
46086
46086
  loop,
46087
46087
  children: /* @__PURE__ */ jsx(Collection$2.Provider, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(Collection$2.Slot, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(
46088
- Root$a,
46088
+ Root$9,
46089
46089
  {
46090
46090
  asChild: true,
46091
46091
  ...rovingFocusGroupScope,
@@ -46155,7 +46155,7 @@ var MenubarTrigger$1 = React.forwardRef(
46155
46155
  const [isFocused, setIsFocused] = React.useState(false);
46156
46156
  const open = context.value === menuContext.value;
46157
46157
  return /* @__PURE__ */ jsx(Collection$2.ItemSlot, { scope: __scopeMenubar, value: menuContext.value, disabled, children: /* @__PURE__ */ jsx(
46158
- Item$2,
46158
+ Item$1,
46159
46159
  {
46160
46160
  asChild: true,
46161
46161
  ...rovingFocusGroupScope,
@@ -47010,7 +47010,7 @@ var NavigationMenuTrigger$1 = React.forwardRef((props2, forwardedRef) => {
47010
47010
  ) }) }),
47011
47011
  open && /* @__PURE__ */ jsxs(Fragment, { children: [
47012
47012
  /* @__PURE__ */ jsx(
47013
- Root$c,
47013
+ Root$b,
47014
47014
  {
47015
47015
  "aria-hidden": true,
47016
47016
  tabIndex: 0,
@@ -52476,7 +52476,7 @@ var TabsList$1 = React.forwardRef(
52476
52476
  const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
52477
52477
  const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeTabs);
52478
52478
  return /* @__PURE__ */ jsx(
52479
- Root$a,
52479
+ Root$9,
52480
52480
  {
52481
52481
  asChild: true,
52482
52482
  ...rovingFocusGroupScope,
@@ -52507,7 +52507,7 @@ var TabsTrigger$1 = React.forwardRef(
52507
52507
  const contentId = makeContentId(context.baseId, value);
52508
52508
  const isSelected = value === context.value;
52509
52509
  return /* @__PURE__ */ jsx(
52510
- Item$2,
52510
+ Item$1,
52511
52511
  {
52512
52512
  asChild: true,
52513
52513
  ...rovingFocusGroupScope,
@@ -52776,7 +52776,7 @@ var ToggleGroupImpl = React__default.forwardRef(
52776
52776
  const direction = useDirection(dir);
52777
52777
  const commonProps = { role: "group", dir: direction, ...toggleGroupProps };
52778
52778
  return /* @__PURE__ */ jsx(ToggleGroupContext$1, { scope: __scopeToggleGroup, rovingFocus, disabled, children: rovingFocus ? /* @__PURE__ */ jsx(
52779
- Root$a,
52779
+ Root$9,
52780
52780
  {
52781
52781
  asChild: true,
52782
52782
  ...rovingFocusGroupScope,
@@ -52799,7 +52799,7 @@ var ToggleGroupItem$1 = React__default.forwardRef(
52799
52799
  const commonProps = { ...props2, pressed, disabled };
52800
52800
  const ref = React__default.useRef(null);
52801
52801
  return context.rovingFocus ? /* @__PURE__ */ jsx(
52802
- Item$2,
52802
+ Item$1,
52803
52803
  {
52804
52804
  asChild: true,
52805
52805
  ...rovingFocusGroupScope,