@k3-universe/react-kit 0.0.7 → 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 (359) hide show
  1. package/dist/index.js +2403 -3156
  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 +6 -2
  5. package/src/kit/builder/data-table/components/DataTable.tsx +9 -9
  6. package/vite.config.ts +1 -1
  7. package/storybook-static/assets/Accordion.stories-q6yg6wg1.js +0 -52
  8. package/storybook-static/assets/AdminLayout-B9bV4J_6.js +0 -53
  9. package/storybook-static/assets/AdminLayout.Basic.stories-C-ZxuH-O.js +0 -4
  10. package/storybook-static/assets/AdminLayout.Collapsible.stories-xcQzkxio.js +0 -4
  11. package/storybook-static/assets/AdminLayout.Complex.stories-DyjkVpvE.js +0 -29
  12. package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-BqhzWCIA.js +0 -9
  13. package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-aWxyR67T.js +0 -4
  14. package/storybook-static/assets/AdminLayout.HeaderSlots.stories-dNzhUdDt.js +0 -7
  15. package/storybook-static/assets/Alert.stories-DXwNfJ3w.js +0 -27
  16. package/storybook-static/assets/AlertDialog.stories-I324NsnP.js +0 -43
  17. package/storybook-static/assets/AspectRatio.stories-CghHiX3Z.js +0 -22
  18. package/storybook-static/assets/Autocomplete-B4gV705L.js +0 -35
  19. package/storybook-static/assets/Autocomplete.stories-CyOvjTGN.js +0 -33
  20. package/storybook-static/assets/Avatar.stories-CEF5FVSR.js +0 -12
  21. package/storybook-static/assets/Badge.stories-_-G3GriP.js +0 -12
  22. package/storybook-static/assets/Breadcrumb.stories-DORe9T4b.js +0 -25
  23. package/storybook-static/assets/Button.stories-3nQ6wsBX.js +0 -26
  24. package/storybook-static/assets/Calendar.stories-Dn__djE1.js +0 -3
  25. package/storybook-static/assets/Card.stories-BJcbdwCI.js +0 -15
  26. package/storybook-static/assets/Carousel.stories-CfqbE7Va.js +0 -15
  27. package/storybook-static/assets/Chart.stories-cGgef3tv.js +0 -126
  28. package/storybook-static/assets/Checkbox.stories-BcaxWzCS.js +0 -12
  29. package/storybook-static/assets/Collapsible.stories-CQ95s7Cs.js +0 -18
  30. package/storybook-static/assets/Combination-CeVus13L.js +0 -41
  31. package/storybook-static/assets/Command.stories-DYflJh8u.js +0 -30
  32. package/storybook-static/assets/ContextMenu.stories-CU7ehYrE.js +0 -31
  33. package/storybook-static/assets/DataTable.Basic.stories-BQNWUKiw.js +0 -6
  34. package/storybook-static/assets/DataTable.Filters.stories-DPCoeYhK.js +0 -21
  35. package/storybook-static/assets/DataTable.Pagination.stories-8UNqTNgw.js +0 -24
  36. package/storybook-static/assets/DataTable.SelectionAndActions.stories-CDEjgQ6T.js +0 -26
  37. package/storybook-static/assets/DataTable.Sorting.stories-qG7-X_6r.js +0 -6
  38. package/storybook-static/assets/Dialog.stories-Bu6ZJXNH.js +0 -18
  39. package/storybook-static/assets/Dialog.stories-DobNZ0Hp.js +0 -54
  40. package/storybook-static/assets/Drawer.stories-BN0idp4u.js +0 -24
  41. package/storybook-static/assets/DropdownMenu.stories-sfsVDTvm.js +0 -35
  42. package/storybook-static/assets/Form.Basic.stories-dE4nbgpr.js +0 -45
  43. package/storybook-static/assets/Form.Complex.stories-BEZufnjb.js +0 -230
  44. package/storybook-static/assets/Form.Dynamic.stories-cJTbd6cV.js +0 -247
  45. package/storybook-static/assets/Form.Simple.stories-DOPzZKhh.js +0 -50
  46. package/storybook-static/assets/Form.stories-27doU7JS.js +0 -3
  47. package/storybook-static/assets/FormBuilder-C0S7C69Q.js +0 -5
  48. package/storybook-static/assets/HoverCard.stories-0lted9Zx.js +0 -21
  49. package/storybook-static/assets/Input.stories-CwsIObFs.js +0 -16
  50. package/storybook-static/assets/InputOtp.stories-DVc086h4.js +0 -42
  51. package/storybook-static/assets/Label.stories-bJa0rk1A.js +0 -14
  52. package/storybook-static/assets/Login.stories-C6X6Kj5B.js +0 -37
  53. package/storybook-static/assets/Menubar.stories-CuediVp7.js +0 -44
  54. package/storybook-static/assets/NavigationMenu.stories-CKGZYhKk.js +0 -30
  55. package/storybook-static/assets/Page.stories-Cf76wtRx.js +0 -91
  56. package/storybook-static/assets/Pagination.stories-D7IdL1_4.js +0 -29
  57. package/storybook-static/assets/Popover.stories-1VP_zNY8.js +0 -15
  58. package/storybook-static/assets/Progress.stories-C35R5YvA.js +0 -8
  59. package/storybook-static/assets/RadioGroup.stories-CjuD3CwD.js +0 -16
  60. package/storybook-static/assets/Resizable.stories-Cs8dvdc5.js +0 -25
  61. package/storybook-static/assets/ScrollArea.stories-D6_z-5jm.js +0 -12
  62. package/storybook-static/assets/Section.stories-Ce5qYITI.js +0 -196
  63. package/storybook-static/assets/SectionBuilder-Df_lRZkj.js +0 -1
  64. package/storybook-static/assets/Select.stories-w_kbza5k.js +0 -17
  65. package/storybook-static/assets/Separator.stories-B5QnaJXb.js +0 -17
  66. package/storybook-static/assets/Sheet.stories-CORnEGvV.js +0 -24
  67. package/storybook-static/assets/Sidebar.stories-DVuWTi4j.js +0 -106
  68. package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +0 -9
  69. package/storybook-static/assets/Slider.stories-YoS2vvT2.js +0 -6
  70. package/storybook-static/assets/Sonner.stories-CXW5e_Qg.js +0 -18
  71. package/storybook-static/assets/Switch.stories-zr6i-aNi.js +0 -3
  72. package/storybook-static/assets/Table.stories-BuGU4MUM.js +0 -35
  73. package/storybook-static/assets/Tabs.stories-jxkJ-AUI.js +0 -10
  74. package/storybook-static/assets/Textarea.stories-CHXVobz6.js +0 -17
  75. package/storybook-static/assets/Toggle.stories-C4uB4Hkq.js +0 -3
  76. package/storybook-static/assets/ToggleGroup.stories-Cr229wf_.js +0 -13
  77. package/storybook-static/assets/Tooltip.stories-DmMYGR3T.js +0 -10
  78. package/storybook-static/assets/accordion-BCfsz_gl.js +0 -1
  79. package/storybook-static/assets/alert-dialog-BYt6Z7Kt.js +0 -7
  80. package/storybook-static/assets/avatar-CRn1qQsC.js +0 -1
  81. package/storybook-static/assets/axe-JCJl60WC.js +0 -30
  82. package/storybook-static/assets/button-BObfgcV1.js +0 -1
  83. package/storybook-static/assets/card-BJpPOzP8.js +0 -1
  84. package/storybook-static/assets/chart-column-CplFCmg8.js +0 -6
  85. package/storybook-static/assets/check-DyecuwP4.js +0 -6
  86. package/storybook-static/assets/checkbox-D5BmNJeL.js +0 -1
  87. package/storybook-static/assets/chevron-down-Bp7zbUB0.js +0 -6
  88. package/storybook-static/assets/chevron-left-D1L4J3UW.js +0 -6
  89. package/storybook-static/assets/chevron-right-oMYqDJ_f.js +0 -6
  90. package/storybook-static/assets/circle-CyarsADt.js +0 -6
  91. package/storybook-static/assets/clean-slate-V4nUw2Bm.css +0 -1
  92. package/storybook-static/assets/command-DCnXmNmT.js +0 -6
  93. package/storybook-static/assets/createLucideIcon-CLBo0iA0.js +0 -21
  94. package/storybook-static/assets/default-CuTBjDca.css +0 -1
  95. package/storybook-static/assets/dependencies-ctrV69dx.js +0 -1
  96. package/storybook-static/assets/dialog-DL0QBIbC.js +0 -1
  97. package/storybook-static/assets/dropdown-menu-BwL9gQwG.js +0 -1
  98. package/storybook-static/assets/ellipsis-DPg968Rc.js +0 -6
  99. package/storybook-static/assets/grip-vertical-CM0GDwvq.js +0 -6
  100. package/storybook-static/assets/iframe-BWjPIle6.js +0 -1555
  101. package/storybook-static/assets/iframe-C9bogcIc.css +0 -1
  102. package/storybook-static/assets/index-04C4iZwC.js +0 -1
  103. package/storybook-static/assets/index-3zykFCgl.js +0 -1
  104. package/storybook-static/assets/index-7XoYQV2z.js +0 -1
  105. package/storybook-static/assets/index-A7UzX-Xw.js +0 -1
  106. package/storybook-static/assets/index-BN5_W3Yi.js +0 -1
  107. package/storybook-static/assets/index-BcAKBHrX.js +0 -1
  108. package/storybook-static/assets/index-BdQq_4o_.js +0 -1
  109. package/storybook-static/assets/index-BfKpUbCE.js +0 -1
  110. package/storybook-static/assets/index-C5eJ31Z3.js +0 -1
  111. package/storybook-static/assets/index-C6O7WofA.js +0 -1
  112. package/storybook-static/assets/index-C9xvlw_B.js +0 -1
  113. package/storybook-static/assets/index-CGrAONsN.js +0 -1
  114. package/storybook-static/assets/index-CKwUGXmt.js +0 -1
  115. package/storybook-static/assets/index-Cce91yJQ.js +0 -1
  116. package/storybook-static/assets/index-Cw7p-pms.js +0 -1
  117. package/storybook-static/assets/index-DE2OlfDP.js +0 -1
  118. package/storybook-static/assets/index-DMk2qc2_.js +0 -1
  119. package/storybook-static/assets/index-DW48STyt.js +0 -1
  120. package/storybook-static/assets/index-DWC9SV-P.js +0 -1
  121. package/storybook-static/assets/index-Dqw7miiX.js +0 -1
  122. package/storybook-static/assets/index-Dr2xmx-F.js +0 -1
  123. package/storybook-static/assets/index-DschQYGl.js +0 -1
  124. package/storybook-static/assets/index-Dsg7S8zu.js +0 -9
  125. package/storybook-static/assets/index-Pk2lGsul.js +0 -1
  126. package/storybook-static/assets/index-URSssr5a.js +0 -1
  127. package/storybook-static/assets/index-npvyVsxD.js +0 -9
  128. package/storybook-static/assets/index-u70nzfOV.js +0 -5
  129. package/storybook-static/assets/input-11YRd9gD.js +0 -1
  130. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
  131. package/storybook-static/assets/label-CwntpYJ0.js +0 -1
  132. package/storybook-static/assets/lodash-BkmSIg_J.js +0 -73
  133. package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  134. package/storybook-static/assets/minimal-modern-d2yFlFJM.css +0 -1
  135. package/storybook-static/assets/popover-ClqrrvjL.js +0 -1
  136. package/storybook-static/assets/preload-helper-Dp1pzeXC.js +0 -1
  137. package/storybook-static/assets/radio-group-CvN0LQZp.js +0 -1
  138. package/storybook-static/assets/react-18-Bj31y5Nr.js +0 -25
  139. package/storybook-static/assets/react-icons.esm-DNr9VcvP.js +0 -1
  140. package/storybook-static/assets/refresh-cw-OZakDsFY.js +0 -6
  141. package/storybook-static/assets/schemas-CaLvKjsI.js +0 -18
  142. package/storybook-static/assets/section-factories-DKfKL-5s.js +0 -1
  143. package/storybook-static/assets/select-gtXRB92c.js +0 -6
  144. package/storybook-static/assets/separator-CxCWfpZX.js +0 -1
  145. package/storybook-static/assets/settings-2-DSSkfF6W.js +0 -6
  146. package/storybook-static/assets/sheet-r0VNiBiN.js +0 -1
  147. package/storybook-static/assets/shopping-cart-CJBClF2m.js +0 -11
  148. package/storybook-static/assets/sidebar-BsMnOE7Y.js +0 -6
  149. package/storybook-static/assets/skeleton-CjDnQs43.js +0 -1
  150. package/storybook-static/assets/spotify-BuPUgQEa.css +0 -1
  151. package/storybook-static/assets/table-CP3vMqFn.js +0 -1
  152. package/storybook-static/assets/textarea-Dw2vruMl.js +0 -1
  153. package/storybook-static/assets/toggle-D08-8sQA.js +0 -16
  154. package/storybook-static/assets/tooltip-CZ1UAE_e.js +0 -1
  155. package/storybook-static/assets/trash-2-D55eseMQ.js +0 -11
  156. package/storybook-static/assets/utils-D-KgF5mV.js +0 -1
  157. package/storybook-static/assets/x-n8sFtlI2.js +0 -6
  158. package/storybook-static/favicon-wrapper.svg +0 -46
  159. package/storybook-static/favicon.svg +0 -1
  160. package/storybook-static/iframe.html +0 -687
  161. package/storybook-static/index.d.ts +0 -64
  162. package/storybook-static/index.d.ts.map +0 -1
  163. package/storybook-static/index.html +0 -166
  164. package/storybook-static/index.json +0 -1
  165. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +0 -34
  166. package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +0 -1
  167. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +0 -8
  168. package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +0 -1
  169. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +0 -6
  170. package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +0 -1
  171. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +0 -5
  172. package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +0 -1
  173. package/storybook-static/kit/builder/data-table/index.d.ts +0 -6
  174. package/storybook-static/kit/builder/data-table/index.d.ts.map +0 -1
  175. package/storybook-static/kit/builder/data-table/types.d.ts +0 -27
  176. package/storybook-static/kit/builder/data-table/types.d.ts.map +0 -1
  177. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +0 -2
  178. package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +0 -1
  179. package/storybook-static/kit/builder/dialog/index.d.ts +0 -3
  180. package/storybook-static/kit/builder/dialog/index.d.ts.map +0 -1
  181. package/storybook-static/kit/builder/dialog/provider.d.ts +0 -26
  182. package/storybook-static/kit/builder/dialog/provider.d.ts.map +0 -1
  183. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +0 -97
  184. package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +0 -1
  185. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts +0 -20
  186. package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts.map +0 -1
  187. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts +0 -12
  188. package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts.map +0 -1
  189. package/storybook-static/kit/builder/form/components/index.d.ts +0 -4
  190. package/storybook-static/kit/builder/form/components/index.d.ts.map +0 -1
  191. package/storybook-static/kit/builder/form/index.d.ts +0 -3
  192. package/storybook-static/kit/builder/form/index.d.ts.map +0 -1
  193. package/storybook-static/kit/builder/form/utils/common-forms.d.ts +0 -7
  194. package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +0 -1
  195. package/storybook-static/kit/builder/form/utils/dependencies.d.ts +0 -41
  196. package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +0 -1
  197. package/storybook-static/kit/builder/form/utils/field-factories.d.ts +0 -22
  198. package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +0 -1
  199. package/storybook-static/kit/builder/form/utils/index.d.ts +0 -15
  200. package/storybook-static/kit/builder/form/utils/index.d.ts.map +0 -1
  201. package/storybook-static/kit/builder/form/utils/section-factories.d.ts +0 -7
  202. package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +0 -1
  203. package/storybook-static/kit/builder/form/utils/transformers.d.ts +0 -6
  204. package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +0 -1
  205. package/storybook-static/kit/builder/form/utils/validations.d.ts +0 -13
  206. package/storybook-static/kit/builder/form/utils/validations.d.ts.map +0 -1
  207. package/storybook-static/kit/builder/form/utils/validators.d.ts +0 -8
  208. package/storybook-static/kit/builder/form/utils/validators.d.ts.map +0 -1
  209. package/storybook-static/kit/builder/page/Page.d.ts +0 -48
  210. package/storybook-static/kit/builder/page/Page.d.ts.map +0 -1
  211. package/storybook-static/kit/builder/page/index.d.ts +0 -2
  212. package/storybook-static/kit/builder/page/index.d.ts.map +0 -1
  213. package/storybook-static/kit/builder/section/SectionBuilder.d.ts +0 -3
  214. package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +0 -1
  215. package/storybook-static/kit/builder/section/index.d.ts +0 -3
  216. package/storybook-static/kit/builder/section/index.d.ts.map +0 -1
  217. package/storybook-static/kit/builder/section/types.d.ts +0 -59
  218. package/storybook-static/kit/builder/section/types.d.ts.map +0 -1
  219. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +0 -21
  220. package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +0 -1
  221. package/storybook-static/kit/components/autocomplete/index.d.ts +0 -3
  222. package/storybook-static/kit/components/autocomplete/index.d.ts.map +0 -1
  223. package/storybook-static/kit/components/autocomplete/types.d.ts +0 -19
  224. package/storybook-static/kit/components/autocomplete/types.d.ts.map +0 -1
  225. package/storybook-static/kit/components/login/Login.d.ts +0 -29
  226. package/storybook-static/kit/components/login/Login.d.ts.map +0 -1
  227. package/storybook-static/kit/components/login/index.d.ts +0 -2
  228. package/storybook-static/kit/components/login/index.d.ts.map +0 -1
  229. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +0 -17
  230. package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +0 -1
  231. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +0 -5
  232. package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +0 -1
  233. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +0 -12
  234. package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +0 -1
  235. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +0 -7
  236. package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +0 -1
  237. package/storybook-static/kit/layouts/admin/types/index.d.ts +0 -27
  238. package/storybook-static/kit/layouts/admin/types/index.d.ts.map +0 -1
  239. package/storybook-static/kit/providers/ThemeProvider.d.ts +0 -14
  240. package/storybook-static/kit/providers/ThemeProvider.d.ts.map +0 -1
  241. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  242. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  243. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  244. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  245. package/storybook-static/project.json +0 -1
  246. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -5
  247. package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +0 -3
  248. package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +0 -3
  249. package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +0 -3
  250. package/storybook-static/sb-addons/interactions-4/manager-bundle.js +0 -57
  251. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -971
  252. package/storybook-static/sb-addons/storysource-6/manager-bundle.js +0 -3
  253. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  254. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  255. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  256. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  257. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  258. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  259. package/storybook-static/sb-manager/globals-module-info.js +0 -797
  260. package/storybook-static/sb-manager/globals-runtime.js +0 -69653
  261. package/storybook-static/sb-manager/globals.js +0 -34
  262. package/storybook-static/sb-manager/runtime.js +0 -13181
  263. package/storybook-static/shadcn/hooks/use-mobile.d.ts +0 -2
  264. package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +0 -1
  265. package/storybook-static/shadcn/lib/utils.d.ts +0 -3
  266. package/storybook-static/shadcn/lib/utils.d.ts.map +0 -1
  267. package/storybook-static/shadcn/ui/accordion.d.ts +0 -8
  268. package/storybook-static/shadcn/ui/accordion.d.ts.map +0 -1
  269. package/storybook-static/shadcn/ui/alert-dialog.d.ts +0 -15
  270. package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +0 -1
  271. package/storybook-static/shadcn/ui/alert.d.ts +0 -10
  272. package/storybook-static/shadcn/ui/alert.d.ts.map +0 -1
  273. package/storybook-static/shadcn/ui/aspect-ratio.d.ts +0 -4
  274. package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +0 -1
  275. package/storybook-static/shadcn/ui/avatar.d.ts +0 -7
  276. package/storybook-static/shadcn/ui/avatar.d.ts.map +0 -1
  277. package/storybook-static/shadcn/ui/badge.d.ts +0 -10
  278. package/storybook-static/shadcn/ui/badge.d.ts.map +0 -1
  279. package/storybook-static/shadcn/ui/breadcrumb.d.ts +0 -12
  280. package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +0 -1
  281. package/storybook-static/shadcn/ui/button.d.ts +0 -11
  282. package/storybook-static/shadcn/ui/button.d.ts.map +0 -1
  283. package/storybook-static/shadcn/ui/calendar.d.ts +0 -9
  284. package/storybook-static/shadcn/ui/calendar.d.ts.map +0 -1
  285. package/storybook-static/shadcn/ui/card.d.ts +0 -10
  286. package/storybook-static/shadcn/ui/card.d.ts.map +0 -1
  287. package/storybook-static/shadcn/ui/carousel.d.ts +0 -20
  288. package/storybook-static/shadcn/ui/carousel.d.ts.map +0 -1
  289. package/storybook-static/shadcn/ui/chart.d.ts +0 -41
  290. package/storybook-static/shadcn/ui/chart.d.ts.map +0 -1
  291. package/storybook-static/shadcn/ui/checkbox.d.ts +0 -5
  292. package/storybook-static/shadcn/ui/checkbox.d.ts.map +0 -1
  293. package/storybook-static/shadcn/ui/collapsible.d.ts +0 -6
  294. package/storybook-static/shadcn/ui/collapsible.d.ts.map +0 -1
  295. package/storybook-static/shadcn/ui/command.d.ts +0 -19
  296. package/storybook-static/shadcn/ui/command.d.ts.map +0 -1
  297. package/storybook-static/shadcn/ui/context-menu.d.ts +0 -26
  298. package/storybook-static/shadcn/ui/context-menu.d.ts.map +0 -1
  299. package/storybook-static/shadcn/ui/dialog.d.ts +0 -16
  300. package/storybook-static/shadcn/ui/dialog.d.ts.map +0 -1
  301. package/storybook-static/shadcn/ui/drawer.d.ts +0 -14
  302. package/storybook-static/shadcn/ui/drawer.d.ts.map +0 -1
  303. package/storybook-static/shadcn/ui/dropdown-menu.d.ts +0 -26
  304. package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +0 -1
  305. package/storybook-static/shadcn/ui/form.d.ts +0 -25
  306. package/storybook-static/shadcn/ui/form.d.ts.map +0 -1
  307. package/storybook-static/shadcn/ui/hover-card.d.ts +0 -7
  308. package/storybook-static/shadcn/ui/hover-card.d.ts.map +0 -1
  309. package/storybook-static/shadcn/ui/input-otp.d.ts +0 -12
  310. package/storybook-static/shadcn/ui/input-otp.d.ts.map +0 -1
  311. package/storybook-static/shadcn/ui/input.d.ts +0 -4
  312. package/storybook-static/shadcn/ui/input.d.ts.map +0 -1
  313. package/storybook-static/shadcn/ui/label.d.ts +0 -5
  314. package/storybook-static/shadcn/ui/label.d.ts.map +0 -1
  315. package/storybook-static/shadcn/ui/menubar.d.ts +0 -27
  316. package/storybook-static/shadcn/ui/menubar.d.ts.map +0 -1
  317. package/storybook-static/shadcn/ui/navigation-menu.d.ts +0 -15
  318. package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +0 -1
  319. package/storybook-static/shadcn/ui/pagination.d.ts +0 -14
  320. package/storybook-static/shadcn/ui/pagination.d.ts.map +0 -1
  321. package/storybook-static/shadcn/ui/popover.d.ts +0 -8
  322. package/storybook-static/shadcn/ui/popover.d.ts.map +0 -1
  323. package/storybook-static/shadcn/ui/progress.d.ts +0 -5
  324. package/storybook-static/shadcn/ui/progress.d.ts.map +0 -1
  325. package/storybook-static/shadcn/ui/radio-group.d.ts +0 -6
  326. package/storybook-static/shadcn/ui/radio-group.d.ts.map +0 -1
  327. package/storybook-static/shadcn/ui/resizable.d.ts +0 -9
  328. package/storybook-static/shadcn/ui/resizable.d.ts.map +0 -1
  329. package/storybook-static/shadcn/ui/scroll-area.d.ts +0 -6
  330. package/storybook-static/shadcn/ui/scroll-area.d.ts.map +0 -1
  331. package/storybook-static/shadcn/ui/select.d.ts +0 -16
  332. package/storybook-static/shadcn/ui/select.d.ts.map +0 -1
  333. package/storybook-static/shadcn/ui/separator.d.ts +0 -5
  334. package/storybook-static/shadcn/ui/separator.d.ts.map +0 -1
  335. package/storybook-static/shadcn/ui/sheet.d.ts +0 -14
  336. package/storybook-static/shadcn/ui/sheet.d.ts.map +0 -1
  337. package/storybook-static/shadcn/ui/sidebar.d.ts +0 -70
  338. package/storybook-static/shadcn/ui/sidebar.d.ts.map +0 -1
  339. package/storybook-static/shadcn/ui/skeleton.d.ts +0 -3
  340. package/storybook-static/shadcn/ui/skeleton.d.ts.map +0 -1
  341. package/storybook-static/shadcn/ui/slider.d.ts +0 -5
  342. package/storybook-static/shadcn/ui/slider.d.ts.map +0 -1
  343. package/storybook-static/shadcn/ui/sonner.d.ts +0 -4
  344. package/storybook-static/shadcn/ui/sonner.d.ts.map +0 -1
  345. package/storybook-static/shadcn/ui/switch.d.ts +0 -5
  346. package/storybook-static/shadcn/ui/switch.d.ts.map +0 -1
  347. package/storybook-static/shadcn/ui/table.d.ts +0 -11
  348. package/storybook-static/shadcn/ui/table.d.ts.map +0 -1
  349. package/storybook-static/shadcn/ui/tabs.d.ts +0 -8
  350. package/storybook-static/shadcn/ui/tabs.d.ts.map +0 -1
  351. package/storybook-static/shadcn/ui/textarea.d.ts +0 -4
  352. package/storybook-static/shadcn/ui/textarea.d.ts.map +0 -1
  353. package/storybook-static/shadcn/ui/toggle-group.d.ts +0 -8
  354. package/storybook-static/shadcn/ui/toggle-group.d.ts.map +0 -1
  355. package/storybook-static/shadcn/ui/toggle.d.ts +0 -10
  356. package/storybook-static/shadcn/ui/toggle.d.ts.map +0 -1
  357. package/storybook-static/shadcn/ui/tooltip.d.ts +0 -8
  358. package/storybook-static/shadcn/ui/tooltip.d.ts.map +0 -1
  359. package/storybook-static/vite-inject-mocker-entry.js +0 -18
@@ -1,8 +0,0 @@
1
- import{j as o}from"./jsx-runtime-D_zvdyIk.js";import{r as u}from"./iframe-BWjPIle6.js";import{c as y}from"./index-Pk2lGsul.js";import{P as N}from"./index-04C4iZwC.js";import{c as S}from"./utils-D-KgF5mV.js";import"./preload-helper-Dp1pzeXC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-BcAKBHrX.js";var c="Progress",m=100,[w,H]=y(c),[R,V]=w(c),h=u.forwardRef((r,e)=>{const{__scopeProgress:t,value:s=null,max:a,getValueLabel:_=D,...$}=r;(a||a===0)&&!f(a)&&console.error(M(`${a}`,"Progress"));const n=f(a)?a:m;s!==null&&!v(s,n)&&console.error(A(`${s}`,"Progress"));const i=v(s,n)?s:null,E=d(i)?_(i,n):void 0;return o.jsx(R,{scope:t,value:i,max:n,children:o.jsx(N.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":d(i)?i:void 0,"aria-valuetext":E,role:"progressbar","data-state":j(i,n),"data-value":i??void 0,"data-max":n,...$,ref:e})})});h.displayName=c;var b="ProgressIndicator",I=u.forwardRef((r,e)=>{const{__scopeProgress:t,...s}=r,a=V(b,t);return o.jsx(N.div,{"data-state":j(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...s,ref:e})});I.displayName=b;function D(r,e){return`${Math.round(r/e*100)}%`}function j(r,e){return r==null?"indeterminate":r===e?"complete":"loading"}function d(r){return typeof r=="number"}function f(r){return d(r)&&!isNaN(r)&&r>0}function v(r,e){return d(r)&&!isNaN(r)&&r<=e&&r>=0}function M(r,e){return`Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${m}\`.`}function A(r,e){return`Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
2
- - a positive number
3
- - less than the value passed to \`max\` (or ${m} if no \`max\` prop is set)
4
- - \`null\` or \`undefined\` if the progress is indeterminate.
5
-
6
- Defaulting to \`null\`.`}var C=h,L=I;function p({className:r,value:e,...t}){return o.jsx(C,{"data-slot":"progress",className:S("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",r),...t,children:o.jsx(L,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})})}p.__docgenInfo={description:"",methods:[],displayName:"Progress"};const J={title:"Shadcn/UI/Progress",component:p};function O(){const[r,e]=u.useState(13);return u.useEffect(()=>{const t=setInterval(()=>e(s=>s>=100?0:s+7),700);return()=>clearInterval(t)},[]),o.jsxs("div",{className:"w-64 space-y-2",children:[o.jsx(p,{value:r}),o.jsxs("div",{className:"text-sm text-muted-foreground",children:[r,"%"]})]})}const l={render:()=>o.jsx(O,{})};var g,x,P;l.parameters={...l.parameters,docs:{...(g=l.parameters)==null?void 0:g.docs,source:{originalSource:`{
7
- render: () => <ProgressDemo />
8
- }`,...(P=(x=l.parameters)==null?void 0:x.docs)==null?void 0:P.source}}};const K=["Basic"];export{l as Basic,K as __namedExportsOrder,J as default};
@@ -1,16 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{R as s,a as o}from"./radio-group-CvN0LQZp.js";import{L as a}from"./label-CwntpYJ0.js";import"./iframe-BWjPIle6.js";import"./preload-helper-Dp1pzeXC.js";import"./index-DW48STyt.js";import"./index-BcAKBHrX.js";import"./index-Pk2lGsul.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-Cw7p-pms.js";import"./index-C9xvlw_B.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-DschQYGl.js";import"./index-7XoYQV2z.js";import"./index-Dr2xmx-F.js";import"./index-DMk2qc2_.js";import"./index-Dqw7miiX.js";import"./index-CKwUGXmt.js";import"./utils-D-KgF5mV.js";import"./circle-CyarsADt.js";import"./createLucideIcon-CLBo0iA0.js";const _={title:"Shadcn/UI/RadioGroup",component:s},r={render:()=>e.jsxs(s,{defaultValue:"comfortable",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(o,{value:"default",id:"r1"}),e.jsx(a,{htmlFor:"r1",children:"Default"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(o,{value:"comfortable",id:"r2"}),e.jsx(a,{htmlFor:"r2",children:"Comfortable"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(o,{value:"compact",id:"r3"}),e.jsx(a,{htmlFor:"r3",children:"Compact"})]})]})};var t,m,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{
2
- render: () => <RadioGroup defaultValue="comfortable">
3
- <div className="flex items-center space-x-2">
4
- <RadioGroupItem value="default" id="r1" />
5
- <Label htmlFor="r1">Default</Label>
6
- </div>
7
- <div className="flex items-center space-x-2">
8
- <RadioGroupItem value="comfortable" id="r2" />
9
- <Label htmlFor="r2">Comfortable</Label>
10
- </div>
11
- <div className="flex items-center space-x-2">
12
- <RadioGroupItem value="compact" id="r3" />
13
- <Label htmlFor="r3">Compact</Label>
14
- </div>
15
- </RadioGroup>
16
- }`,...(i=(m=r.parameters)==null?void 0:m.docs)==null?void 0:i.source}}};const g=["Basic"];export{r as Basic,g as __namedExportsOrder,_ as default};
@@ -1,25 +0,0 @@
1
- import{j as M}from"./jsx-runtime-D_zvdyIk.js";import{r as d,b as Hn}from"./iframe-BWjPIle6.js";import{c as sn}from"./utils-D-KgF5mV.js";import{G as kn}from"./grip-vertical-CM0GDwvq.js";import"./preload-helper-Dp1pzeXC.js";import"./createLucideIcon-CLBo0iA0.js";const Ie=d.createContext(null);Ie.displayName="PanelGroupContext";const A={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Be=10,te=d.useLayoutEffect,Oe=Hn.useId,Dn=typeof Oe=="function"?Oe:()=>null;let Mn=0;function Ve(e=null){const n=Dn(),t=d.useRef(e||n||null);return t.current===null&&(t.current=""+Mn++),e??t.current}function un({children:e,className:n="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...E}){const R=d.useContext(Ie);if(R===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:N,getPanelSize:k,getPanelStyle:$,groupId:O,isPanelCollapsed:I,reevaluatePanelConstraints:P,registerPanel:U,resizePanel:J,unregisterPanel:V}=R,j=Ve(l),H=d.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:j,idIsFromProps:l!==void 0,order:u});d.useRef({didLogMissingDefaultSizeWarning:!1}),te(()=>{const{callbacks:G,constraints:_}=H.current,T={..._};H.current.id=j,H.current.idIsFromProps=l!==void 0,H.current.order=u,G.onCollapse=h,G.onExpand=w,G.onResize=p,_.collapsedSize=t,_.collapsible=r,_.defaultSize=i,_.maxSize=a,_.minSize=s,(T.collapsedSize!==_.collapsedSize||T.collapsible!==_.collapsible||T.maxSize!==_.maxSize||T.minSize!==_.minSize)&&P(H.current,T)}),te(()=>{const G=H.current;return U(G),()=>{V(G)}},[u,j,U,V]),d.useImperativeHandle(o,()=>({collapse:()=>{S(H.current)},expand:G=>{N(H.current,G)},getId(){return j},getSize(){return k(H.current)},isCollapsed(){return I(H.current)},isExpanded(){return!I(H.current)},resize:G=>{J(H.current,G)}}),[S,N,k,I,j,J]);const ee=$(H.current,i);return d.createElement(z,{...E,children:e,className:n,id:j,style:{...ee,...v},[A.groupId]:O,[A.panel]:"",[A.panelCollapsible]:r||void 0,[A.panelId]:j,[A.panelSize]:parseFloat(""+ee.flexGrow).toFixed(1)})}const cn=d.forwardRef((e,n)=>d.createElement(un,{...e,forwardedRef:n}));un.displayName="Panel";cn.displayName="forwardRef(Panel)";let Te=null,Re=-1,Z=null;function $n(e,n,t){const r=(n&gn)!==0,i=(n&hn)!==0,o=(n&zn)!==0,l=(n&xn)!==0;if(n){if(r)return o?"se-resize":l?"ne-resize":"e-resize";if(i)return o?"sw-resize":l?"nw-resize":"w-resize";if(o)return"s-resize";if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function _n(){Z!==null&&(document.head.removeChild(Z),Te=null,Z=null,Re=-1)}function Me(e,n,t){var r,i;const o=$n(e,n);if(Te!==o){if(Te=o,Z===null&&(Z=document.createElement("style"),document.head.appendChild(Z)),Re>=0){var l;(l=Z.sheet)===null||l===void 0||l.removeRule(Re)}Re=(r=(i=Z.sheet)===null||i===void 0?void 0:i.insertRule(`*{cursor: ${o} !important;}`))!==null&&r!==void 0?r:-1}}function dn(e){return e.type==="keydown"}function fn(e){return e.type.startsWith("pointer")}function pn(e){return e.type.startsWith("mouse")}function Ne(e){if(fn(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(pn(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Gn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function jn(e,n,t){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function Tn(e,n){if(e===n)throw new Error("Cannot compare node with itself");const t={a:Je(e),b:Je(n)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),n=t.b.pop(),r=e;y(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Xe(qe(t.a)),b:Xe(qe(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const Bn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Vn(e){var n;const t=getComputedStyle((n=mn(e))!==null&&n!==void 0?n:e).display;return t==="flex"||t==="inline-flex"}function Fn(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||Vn(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||Bn.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function qe(e){let n=e.length;for(;n--;){const t=e[n];if(y(t,"Missing node"),Fn(t))return t}return null}function Xe(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Je(e){const n=[];for(;e;)n.push(e),e=mn(e);return n}function mn(e){const{parentNode:n}=e;return n&&n instanceof ShadowRoot?n.host:n}const gn=1,hn=2,zn=4,xn=8,Un=Gn()==="coarse";let K=[],se=!1,Q=new Map,Le=new Map;const ze=new Set;function Wn(e,n,t,r,i){var o;const{ownerDocument:l}=n,a={direction:t,element:n,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Q.get(l))!==null&&o!==void 0?o:0;return Q.set(l,s+1),ze.add(a),Ee(),function(){var w;Le.delete(e),ze.delete(a);const p=(w=Q.get(l))!==null&&w!==void 0?w:1;if(Q.set(l,p-1),Ee(),p===1&&Q.delete(l),K.includes(a)){const u=K.indexOf(a);u>=0&&K.splice(u,1),Ae(),i("up",!0,null)}}}function Kn(e){const{target:n}=e,{x:t,y:r}=Ne(e);se=!0,Fe({target:n,x:t,y:r}),Ee(),K.length>0&&(Ce("down",e),Ae(),e.preventDefault(),yn(n)||e.stopImmediatePropagation())}function $e(e){const{x:n,y:t}=Ne(e);if(se&&e.buttons===0&&(se=!1,Ce("up",e)),!se){const{target:r}=e;Fe({target:r,x:n,y:t})}Ce("move",e),Ae(),K.length>0&&e.preventDefault()}function _e(e){const{target:n}=e,{x:t,y:r}=Ne(e);Le.clear(),se=!1,K.length>0&&(e.preventDefault(),yn(n)||e.stopImmediatePropagation()),Ce("up",e),Fe({target:n,x:t,y:r}),Ae(),Ee()}function yn(e){let n=e;for(;n;){if(n.hasAttribute(A.resizeHandle))return!0;n=n.parentElement}return!1}function Fe({target:e,x:n,y:t}){K.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=Un?l.coarse:l.fine;if(n>=h-u&&n<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Tn(r,o)>0){let z=r,E=!1;for(;z&&!z.contains(o);){if(jn(z.getBoundingClientRect(),a)){E=!0;break}z=z.parentElement}if(E)return}K.push(i)}})}function Ge(e,n){Le.set(e,n)}function Ae(){let e=!1,n=!1;K.forEach(r=>{const{direction:i}=r;i==="horizontal"?e=!0:n=!0});let t=0;Le.forEach(r=>{t|=r}),e&&n?Me("intersection",t):e?Me("horizontal",t):n?Me("vertical",t):_n()}let je;function Ee(){var e;(e=je)===null||e===void 0||e.abort(),je=new AbortController;const n={capture:!0,signal:je.signal};ze.size&&(se?(K.length>0&&Q.forEach((t,r)=>{const{body:i}=r;t>0&&(i.addEventListener("contextmenu",_e,n),i.addEventListener("pointerleave",$e,n),i.addEventListener("pointermove",$e,n))}),Q.forEach((t,r)=>{const{body:i}=r;i.addEventListener("pointerup",_e,n),i.addEventListener("pointercancel",_e,n)})):Q.forEach((t,r)=>{const{body:i}=r;t>0&&(i.addEventListener("pointerdown",Kn,n),i.addEventListener("pointermove",$e,n))}))}function Ce(e,n){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=K.includes(t);r(e,i,n)})}function On(){const[e,n]=d.useState(0);return d.useCallback(()=>n(t=>t+1),[])}function y(e,n){if(!e)throw console.error(n),Error(n)}function re(e,n,t=Be){return e.toFixed(t)===n.toFixed(t)?0:e>n?1:-1}function Y(e,n,t=Be){return re(e,n,t)===0}function F(e,n,t){return re(e,n,t)===0}function qn(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){const i=e[r],o=n[r];if(!F(i,o,t))return!1}return!0}function ae({panelConstraints:e,panelIndex:n,size:t}){const r=e[n];y(r!=null,`Panel constraints not found for index ${n}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(re(t,a)<0)if(o){const s=(i+a)/2;re(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(Be)),t}function ge({delta:e,initialLayout:n,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(F(e,0))return n;const l=[...n],[a,s]=r;y(a!=null,"Invalid first pivot index"),y(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=e<0?s:a,u=t[p];y(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:E=0}=u;if(z){const R=n[p];if(y(R!=null,`Previous layout not found for panel index ${p}`),F(R,v)){const S=E-R;re(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const p=e<0?a:s,u=t[p];y(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:E=0}=u;if(z){const R=n[p];if(y(R!=null,`Previous layout not found for panel index ${p}`),F(R,E)){const S=R-v;re(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}}{const p=e<0?1:-1;let u=e<0?s:a,v=0;for(;;){const E=n[u];y(E!=null,`Previous layout not found for panel index ${u}`);const S=ae({panelConstraints:t,panelIndex:u,size:100})-E;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-z:z}{let u=e<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(e)-Math.abs(h),z=n[u];y(z!=null,`Previous layout not found for panel index ${u}`);const E=z-v,R=ae({panelConstraints:t,panelIndex:u,size:E});if(!F(z,R)&&(h+=z-R,l[u]=R,h.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?u--:u++}}if(qn(i,l))return i;{const p=e<0?s:a,u=n[p];y(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=ae({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!F(z,v)){let E=v-z,S=e<0?s:a;for(;S>=0&&S<t.length;){const N=l[S];y(N!=null,`Previous layout not found for panel index ${S}`);const k=N+E,$=ae({panelConstraints:t,panelIndex:S,size:k});if(F(N,$)||(E-=$-N,l[S]=$),F(E,0))break;e>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return F(w,100)?l:i}function Xn({layout:e,panelsArray:n,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];y(a!=null,"No pivot index found"),n.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:E=0}=v;u===a?(r=E,i=z):(o+=E,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=e[a];return{valueMax:s,valueMin:h,valueNow:w}}function xe(e,n=document){return Array.from(n.querySelectorAll(`[${A.resizeHandleId}][data-panel-group-id="${e}"]`))}function vn(e,n,t=document){const i=xe(e,t).findIndex(o=>o.getAttribute(A.resizeHandleId)===n);return i??null}function bn(e,n,t){const r=vn(e,n,t);return r!=null?[r,r+1]:[-1,-1]}function Jn(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Sn(e,n=document){if(Jn(n)&&n.dataset.panelGroupId==e)return n;const t=n.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return t||null}function He(e,n=document){const t=n.querySelector(`[${A.resizeHandleId}="${e}"]`);return t||null}function Yn(e,n,t,r=document){var i,o,l,a;const s=He(n,r),h=xe(e,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Zn({committedValuesRef:e,eagerValuesRef:n,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){d.useRef({didWarnAboutMissingResizeHandle:!1}),te(()=>{if(!o)return;const a=xe(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Xn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];y(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),d.useEffect(()=>{if(!o)return;const a=n.current;y(a,"Eager values not found");const{panelDataArray:s}=a,h=Sn(t,o);y(h!=null,`No group found for id "${t}"`);const w=xe(t,o);y(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(A.resizeHandleId);y(v,"Resize handle element has no handle id attribute");const[z,E]=Yn(t,v,s,o);if(z==null||E==null)return()=>{};const R=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const N=s.findIndex(k=>k.id===z);if(N>=0){const k=s[N];y(k,`No panel data found for index ${N}`);const $=r[N],{collapsedSize:O=0,collapsible:I,minSize:P=0}=k.constraints;if($!=null&&I){const U=ge({delta:F($,O)?P-O:O-$,initialLayout:r,panelConstraints:s.map(J=>J.constraints),pivotIndices:bn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==U&&l(U)}}break}}};return u.addEventListener("keydown",R),()=>{u.removeEventListener("keydown",R)}});return()=>{p.forEach(u=>u())}},[o,e,n,t,r,i,l])}function Ye(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function Pn(e,n){const t=e==="horizontal",{x:r,y:i}=Ne(n);return t?r:i}function Qn(e,n,t,r,i){const o=t==="horizontal",l=He(n,i);y(l,`No resize handle element found for id "${n}"`);const a=l.getAttribute(A.groupId);y(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=Pn(t,e),w=Sn(a,i);y(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function et(e,n,t,r,i,o){if(dn(e)){const l=t==="horizontal";let a=0;e.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(e.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Qn(e,n,t,r,o)}function nt({panelDataArray:e}){const n=Array(e.length),t=e.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<e.length;o++){const l=t[o];y(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,n[o]=a,i-=a)}for(let o=0;o<e.length;o++){const l=t[o];y(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=e.length-r,h=i/s;r++,n[o]=h,i-=h}return n}function ie(e,n,t){n.forEach((r,i)=>{const o=e[i];y(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||Y(p,h))&&!Y(r,h)&&v(),u&&(p==null||!Y(p,h))&&Y(r,h)&&u())}})}function Se(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return!1;return!0}function tt({defaultSize:e,dragState:n,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=e!=null?e.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:n!==null?"none":void 0}}function rt(e,n=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...i)},n)}}function Ze(e){try{if(typeof localStorage<"u")e.getItem=n=>localStorage.getItem(n),e.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new Error("localStorage not supported in this environment")}catch(n){console.error(n),e.getItem=()=>null,e.setItem=()=>{}}}function wn(e){return`react-resizable-panels:${e}`}function Rn(e){return e.map(n=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=n;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function En(e,n){try{const t=wn(e),r=n.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function ot(e,n,t){var r,i;const o=(r=En(e,t))!==null&&r!==void 0?r:{},l=Rn(n);return(i=o[l])!==null&&i!==void 0?i:null}function it(e,n,t,r,i){var o;const l=wn(e),a=Rn(n),s=(o=En(e,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function Qe({layout:e,panelConstraints:n}){const t=[...e],r=t.reduce((o,l)=>o+l,0);if(t.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!F(r,100)&&t.length>0)for(let o=0;o<n.length;o++){const l=t[o];y(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<n.length;o++){const l=t[o];y(l!=null,`No layout data found for index ${o}`);const a=ae({panelConstraints:n,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!F(i,0))for(let o=0;o<n.length;o++){const l=t[o];y(l!=null,`No layout data found for index ${o}`);const a=l+i,s=ae({panelConstraints:n,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,F(i,0)))break}return t}const lt=100,he={getItem:e=>(Ze(he),he.getItem(e)),setItem:(e,n)=>{Ze(he),he.setItem(e,n)}},en={};function Cn({autoSaveId:e=null,children:n,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=he,style:h,tagName:w="div",...p}){const u=Ve(o),v=d.useRef(null),[z,E]=d.useState(null),[R,S]=d.useState([]),N=On(),k=d.useRef({}),$=d.useRef(new Map),O=d.useRef(0),I=d.useRef({autoSaveId:e,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=d.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});d.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),d.useImperativeHandle(i,()=>({getId:()=>I.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:g}=I.current,{layout:b,panelDataArray:m}=P.current,f=Qe({layout:c,panelConstraints:m.map(x=>x.constraints)});Ye(b,f)||(S(f),P.current.layout=f,g&&g(f),ie(m,f,k.current))}}),[]),te(()=>{I.current.autoSaveId=e,I.current.direction=r,I.current.dragState=z,I.current.id=u,I.current.onLayout=l,I.current.storage=s}),Zn({committedValuesRef:I,eagerValuesRef:P,groupId:u,layout:R,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),d.useEffect(()=>{const{panelDataArray:c}=P.current;if(e){if(R.length===0||R.length!==c.length)return;let g=en[e];g==null&&(g=rt(it,lt),en[e]=g);const b=[...c],m=new Map($.current);g(e,b,m,R,s)}},[e,R,s]),d.useEffect(()=>{});const U=d.useCallback(c=>{const{onLayout:g}=I.current,{layout:b,panelDataArray:m}=P.current;if(c.constraints.collapsible){const f=m.map(q=>q.constraints),{collapsedSize:x=0,panelSize:C,pivotIndices:D}=ne(m,c,b);if(y(C!=null,`Panel size not found for panel "${c.id}"`),!Y(C,x)){$.current.set(c.id,C);const X=le(m,c)===m.length-1?C-x:x-C,L=ge({delta:X,initialLayout:b,panelConstraints:f,pivotIndices:D,prevLayout:b,trigger:"imperative-api"});Se(b,L)||(S(L),P.current.layout=L,g&&g(L),ie(m,L,k.current))}}},[]),J=d.useCallback((c,g)=>{const{onLayout:b}=I.current,{layout:m,panelDataArray:f}=P.current;if(c.constraints.collapsible){const x=f.map(W=>W.constraints),{collapsedSize:C=0,panelSize:D=0,minSize:q=0,pivotIndices:X}=ne(f,c,m),L=g??q;if(Y(D,C)){const W=$.current.get(c.id),pe=W!=null&&W>=L?W:L,De=le(f,c)===f.length-1?D-pe:pe-D,B=ge({delta:De,initialLayout:m,panelConstraints:x,pivotIndices:X,prevLayout:m,trigger:"imperative-api"});Se(m,B)||(S(B),P.current.layout=B,b&&b(B),ie(f,B,k.current))}}},[]),V=d.useCallback(c=>{const{layout:g,panelDataArray:b}=P.current,{panelSize:m}=ne(b,c,g);return y(m!=null,`Panel size not found for panel "${c.id}"`),m},[]),j=d.useCallback((c,g)=>{const{panelDataArray:b}=P.current,m=le(b,c);return tt({defaultSize:g,dragState:z,layout:R,panelData:b,panelIndex:m})},[z,R]),H=d.useCallback(c=>{const{layout:g,panelDataArray:b}=P.current,{collapsedSize:m=0,collapsible:f,panelSize:x}=ne(b,c,g);return y(x!=null,`Panel size not found for panel "${c.id}"`),f===!0&&Y(x,m)},[]),ee=d.useCallback(c=>{const{layout:g,panelDataArray:b}=P.current,{collapsedSize:m=0,collapsible:f,panelSize:x}=ne(b,c,g);return y(x!=null,`Panel size not found for panel "${c.id}"`),!f||re(x,m)>0},[]),G=d.useCallback(c=>{const{panelDataArray:g}=P.current;g.push(c),g.sort((b,m)=>{const f=b.order,x=m.order;return f==null&&x==null?0:f==null?-1:x==null?1:f-x}),P.current.panelDataArrayChanged=!0,N()},[N]);te(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:g,storage:b}=I.current,{layout:m,panelDataArray:f}=P.current;let x=null;if(c){const D=ot(c,f,b);D&&($.current=new Map(Object.entries(D.expandToSizes)),x=D.layout)}x==null&&(x=nt({panelDataArray:f}));const C=Qe({layout:x,panelConstraints:f.map(D=>D.constraints)});Ye(m,C)||(S(C),P.current.layout=C,g&&g(C),ie(f,C,k.current))}}),te(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const _=d.useCallback(c=>{let g=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(g=!0),function(f){f.preventDefault();const x=v.current;if(!x)return()=>null;const{direction:C,dragState:D,id:q,keyboardResizeBy:X,onLayout:L}=I.current,{layout:W,panelDataArray:pe}=P.current,{initialLayout:be}=D??{},De=bn(q,c,x);let B=et(f,c,C,D,X,x);const We=C==="horizontal";We&&g&&(B=-B);const Ln=pe.map(An=>An.constraints),me=ge({delta:B,initialLayout:be??W,panelConstraints:Ln,pivotIndices:De,prevLayout:W,trigger:dn(f)?"keyboard":"mouse-or-touch"}),Ke=!Se(W,me);(fn(f)||pn(f))&&O.current!=B&&(O.current=B,!Ke&&B!==0?We?Ge(c,B<0?gn:hn):Ge(c,B<0?zn:xn):Ge(c,0)),Ke&&(S(me),P.current.layout=me,L&&L(me),ie(pe,me,k.current))}},[]),T=d.useCallback((c,g)=>{const{onLayout:b}=I.current,{layout:m,panelDataArray:f}=P.current,x=f.map(W=>W.constraints),{panelSize:C,pivotIndices:D}=ne(f,c,m);y(C!=null,`Panel size not found for panel "${c.id}"`);const X=le(f,c)===f.length-1?C-g:g-C,L=ge({delta:X,initialLayout:m,panelConstraints:x,pivotIndices:D,prevLayout:m,trigger:"imperative-api"});Se(m,L)||(S(L),P.current.layout=L,b&&b(L),ie(f,L,k.current))},[]),ue=d.useCallback((c,g)=>{const{layout:b,panelDataArray:m}=P.current,{collapsedSize:f=0,collapsible:x}=g,{collapsedSize:C=0,collapsible:D,maxSize:q=100,minSize:X=0}=c.constraints,{panelSize:L}=ne(m,c,b);L!=null&&(x&&D&&Y(L,f)?Y(f,C)||T(c,C):L<X?T(c,X):L>q&&T(c,q))},[T]),ce=d.useCallback((c,g)=>{const{direction:b}=I.current,{layout:m}=P.current;if(!v.current)return;const f=He(c,v.current);y(f,`Drag handle element not found for id "${c}"`);const x=Pn(b,g);E({dragHandleId:c,dragHandleRect:f.getBoundingClientRect(),initialCursorPosition:x,initialLayout:m})},[]),de=d.useCallback(()=>{E(null)},[]),ve=d.useCallback(c=>{const{panelDataArray:g}=P.current,b=le(g,c);b>=0&&(g.splice(b,1),delete k.current[c.id],P.current.panelDataArrayChanged=!0,N())},[N]),oe=d.useMemo(()=>({collapsePanel:U,direction:r,dragState:z,expandPanel:J,getPanelSize:V,getPanelStyle:j,groupId:u,isPanelCollapsed:H,isPanelExpanded:ee,reevaluatePanelConstraints:ue,registerPanel:G,registerResizeHandle:_,resizePanel:T,startDragging:ce,stopDragging:de,unregisterPanel:ve,panelGroupElement:v.current}),[U,z,r,J,V,j,u,H,ee,ue,G,_,T,ce,de,ve]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return d.createElement(Ie.Provider,{value:oe},d.createElement(w,{...p,children:n,className:t,id:o,ref:v,style:{...fe,...h},[A.group]:"",[A.groupDirection]:r,[A.groupId]:u}))}const In=d.forwardRef((e,n)=>d.createElement(Cn,{...e,forwardedRef:n}));Cn.displayName="PanelGroup";In.displayName="forwardRef(PanelGroup)";function le(e,n){return e.findIndex(t=>t===n||t.id===n.id)}function ne(e,n,t){const r=le(e,n),o=r===e.length-1?[r-1,r]:[r,r+1],l=t[r];return{...n.constraints,panelSize:l,pivotIndices:o}}function at({disabled:e,handleId:n,resizeHandler:t,panelGroupElement:r}){d.useEffect(()=>{if(e||t==null||r==null)return;const i=He(n,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(A.groupId);y(a,`No group element found for id "${a}"`);const s=xe(a,r),h=vn(a,n,r);y(h!==null,`No resize element found for id "${n}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,e,n,t])}function Nn({children:e=null,className:n="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var E,R;const S=d.useRef(null),N=d.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});d.useEffect(()=>{N.current.onClick=l,N.current.onDragging=a,N.current.onPointerDown=h,N.current.onPointerUp=w});const k=d.useContext(Ie);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:$,groupId:O,registerResizeHandle:I,startDragging:P,stopDragging:U,panelGroupElement:J}=k,V=Ve(i),[j,H]=d.useState("inactive"),[ee,G]=d.useState(!1),[_,T]=d.useState(null),ue=d.useRef({state:j});te(()=>{ue.current.state=j}),d.useEffect(()=>{if(t)T(null);else{const oe=I(V);T(()=>oe)}},[t,V,I]);const ce=(E=r==null?void 0:r.coarse)!==null&&E!==void 0?E:15,de=(R=r==null?void 0:r.fine)!==null&&R!==void 0?R:5;d.useEffect(()=>{if(t||_==null)return;const oe=S.current;y(oe,"Element ref not attached");let fe=!1;return Wn(V,oe,$,{coarse:ce,fine:de},(g,b,m)=>{if(!b){H("inactive");return}switch(g){case"down":{H("drag"),fe=!1,y(m,'Expected event to be defined for "down" action'),P(V,m);const{onDragging:f,onPointerDown:x}=N.current;f==null||f(!0),x==null||x();break}case"move":{const{state:f}=ue.current;fe=!0,f!=="drag"&&H("hover"),y(m,'Expected event to be defined for "move" action'),_(m);break}case"up":{H("hover"),U();const{onClick:f,onDragging:x,onPointerUp:C}=N.current;x==null||x(!1),C==null||C(),fe||f==null||f();break}}})},[ce,$,t,de,I,V,_,P,U]),at({disabled:t,handleId:V,resizeHandler:_,panelGroupElement:J});const ve={touchAction:"none",userSelect:"none"};return d.createElement(v,{...z,children:e,className:n,id:i,onBlur:()=>{G(!1),o==null||o()},onFocus:()=>{G(!0),s==null||s()},ref:S,role:"separator",style:{...ve,...p},tabIndex:u,[A.groupDirection]:$,[A.groupId]:O,[A.resizeHandle]:"",[A.resizeHandleActive]:j==="drag"?"pointer":ee?"keyboard":void 0,[A.resizeHandleEnabled]:!t,[A.resizeHandleId]:V,[A.resizeHandleState]:j})}Nn.displayName="PanelResizeHandle";function ke({className:e,...n}){return M.jsx(In,{"data-slot":"resizable-panel-group",className:sn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...n})}function ye({...e}){return M.jsx(cn,{"data-slot":"resizable-panel",...e})}function Ue({withHandle:e,className:n,...t}){return M.jsx(Nn,{"data-slot":"resizable-handle",className:sn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...t,children:e&&M.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:M.jsx(kn,{className:"size-2.5"})})})}ke.__docgenInfo={description:"",methods:[],displayName:"ResizablePanelGroup"};ye.__docgenInfo={description:"",methods:[],displayName:"ResizablePanel"};Ue.__docgenInfo={description:"",methods:[],displayName:"ResizableHandle",props:{withHandle:{required:!1,tsType:{name:"boolean"},description:""}}};const mt={title:"Shadcn/UI/Resizable",component:ke},Pe={render:()=>M.jsx("div",{className:"h-[240px] w-full",children:M.jsxs(ke,{direction:"horizontal",className:"rounded-md border",children:[M.jsx(ye,{defaultSize:40,minSize:20,className:"p-3",children:M.jsx("div",{className:"h-full w-full rounded-sm bg-muted/40 p-2",children:"Left content"})}),M.jsx(Ue,{withHandle:!0}),M.jsx(ye,{defaultSize:60,minSize:20,className:"p-3",children:M.jsx("div",{className:"h-full w-full rounded-sm bg-muted/40 p-2",children:"Right content"})})]})})},we={render:()=>M.jsx("div",{className:"h-[300px] w-full",children:M.jsxs(ke,{direction:"vertical",className:"rounded-md border",children:[M.jsx(ye,{defaultSize:50,minSize:20,className:"p-3",children:M.jsx("div",{className:"h-full w-full rounded-sm bg-muted/40 p-2",children:"Top content"})}),M.jsx(Ue,{withHandle:!0}),M.jsx(ye,{defaultSize:50,minSize:20,className:"p-3",children:M.jsx("div",{className:"h-full w-full rounded-sm bg-muted/40 p-2",children:"Bottom content"})})]})})};var nn,tn,rn;Pe.parameters={...Pe.parameters,docs:{...(nn=Pe.parameters)==null?void 0:nn.docs,source:{originalSource:`{
2
- render: () => <div className="h-[240px] w-full">
3
- <ResizablePanelGroup direction="horizontal" className="rounded-md border">
4
- <ResizablePanel defaultSize={40} minSize={20} className="p-3">
5
- <div className="h-full w-full rounded-sm bg-muted/40 p-2">Left content</div>
6
- </ResizablePanel>
7
- <ResizableHandle withHandle />
8
- <ResizablePanel defaultSize={60} minSize={20} className="p-3">
9
- <div className="h-full w-full rounded-sm bg-muted/40 p-2">Right content</div>
10
- </ResizablePanel>
11
- </ResizablePanelGroup>
12
- </div>
13
- }`,...(rn=(tn=Pe.parameters)==null?void 0:tn.docs)==null?void 0:rn.source}}};var on,ln,an;we.parameters={...we.parameters,docs:{...(on=we.parameters)==null?void 0:on.docs,source:{originalSource:`{
14
- render: () => <div className="h-[300px] w-full">
15
- <ResizablePanelGroup direction="vertical" className="rounded-md border">
16
- <ResizablePanel defaultSize={50} minSize={20} className="p-3">
17
- <div className="h-full w-full rounded-sm bg-muted/40 p-2">Top content</div>
18
- </ResizablePanel>
19
- <ResizableHandle withHandle />
20
- <ResizablePanel defaultSize={50} minSize={20} className="p-3">
21
- <div className="h-full w-full rounded-sm bg-muted/40 p-2">Bottom content</div>
22
- </ResizablePanel>
23
- </ResizablePanelGroup>
24
- </div>
25
- }`,...(an=(ln=we.parameters)==null?void 0:ln.docs)==null?void 0:an.source}}};const gt=["Horizontal","Vertical"];export{Pe as Horizontal,we as Vertical,gt as __namedExportsOrder,mt as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./jsx-runtime-D_zvdyIk.js";import{r as s}from"./iframe-BWjPIle6.js";import{P as _}from"./index-04C4iZwC.js";import{P as I}from"./index-CKwUGXmt.js";import{c as fe}from"./index-Pk2lGsul.js";import{u as y}from"./index-BcAKBHrX.js";import{u as P}from"./index-DschQYGl.js";import{u as he}from"./index-Dr2xmx-F.js";import{u as me}from"./index-DWC9SV-P.js";import{c as pe}from"./index-BdQq_4o_.js";import{c as C}from"./index-DW48STyt.js";import{c as K}from"./utils-D-KgF5mV.js";import"./preload-helper-Dp1pzeXC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";function be(e,o){return s.useReducer((r,l)=>o[r][l]??r,e)}var U="ScrollArea",[Q,qe]=fe(U),[Se,v]=Q(U),Z=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,type:l="hover",dir:t,scrollHideDelay:n=600,...c}=e,[a,i]=s.useState(null),[h,d]=s.useState(null),[m,f]=s.useState(null),[p,S]=s.useState(null),[A,k]=s.useState(null),[x,j]=s.useState(0),[M,L]=s.useState(0),[N,T]=s.useState(!1),[D,z]=s.useState(!1),b=y(o,E=>i(E)),w=he(t);return u.jsx(Se,{scope:r,type:l,dir:w,scrollHideDelay:n,scrollArea:a,viewport:h,onViewportChange:d,content:m,onContentChange:f,scrollbarX:p,onScrollbarXChange:S,scrollbarXEnabled:N,onScrollbarXEnabledChange:T,scrollbarY:A,onScrollbarYChange:k,scrollbarYEnabled:D,onScrollbarYEnabledChange:z,onCornerWidthChange:j,onCornerHeightChange:L,children:u.jsx(_.div,{dir:w,...c,ref:b,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...e.style}})})});Z.displayName=U;var ee="ScrollAreaViewport",re=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,children:l,nonce:t,...n}=e,c=v(ee,r),a=s.useRef(null),i=y(o,a,c.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),u.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:i,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});re.displayName=ee;var g="ScrollAreaScrollbar",oe=s.forwardRef((e,o)=>{const{forceMount:r,...l}=e,t=v(g,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:c}=t,a=e.orientation==="horizontal";return s.useEffect(()=>(a?n(!0):c(!0),()=>{a?n(!1):c(!1)}),[a,n,c]),t.type==="hover"?u.jsx(ve,{...l,ref:o,forceMount:r}):t.type==="scroll"?u.jsx(we,{...l,ref:o,forceMount:r}):t.type==="auto"?u.jsx(te,{...l,ref:o,forceMount:r}):t.type==="always"?u.jsx(V,{...l,ref:o}):null});oe.displayName=g;var ve=s.forwardRef((e,o)=>{const{forceMount:r,...l}=e,t=v(g,e.__scopeScrollArea),[n,c]=s.useState(!1);return s.useEffect(()=>{const a=t.scrollArea;let i=0;if(a){const h=()=>{window.clearTimeout(i),c(!0)},d=()=>{i=window.setTimeout(()=>c(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",h),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(i),a.removeEventListener("pointerenter",h),a.removeEventListener("pointerleave",d)}}},[t.scrollArea,t.scrollHideDelay]),u.jsx(I,{present:r||n,children:u.jsx(te,{"data-state":n?"visible":"hidden",...l,ref:o})})}),we=s.forwardRef((e,o)=>{const{forceMount:r,...l}=e,t=v(g,e.__scopeScrollArea),n=e.orientation==="horizontal",c=Y(()=>i("SCROLL_END"),100),[a,i]=be("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(a==="idle"){const h=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(h)}},[a,t.scrollHideDelay,i]),s.useEffect(()=>{const h=t.viewport,d=n?"scrollLeft":"scrollTop";if(h){let m=h[d];const f=()=>{const p=h[d];m!==p&&(i("SCROLL"),c()),m=p};return h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[t.viewport,n,i,c]),u.jsx(I,{present:r||a!=="hidden",children:u.jsx(V,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:o,onPointerEnter:C(e.onPointerEnter,()=>i("POINTER_ENTER")),onPointerLeave:C(e.onPointerLeave,()=>i("POINTER_LEAVE"))})})}),te=s.forwardRef((e,o)=>{const r=v(g,e.__scopeScrollArea),{forceMount:l,...t}=e,[n,c]=s.useState(!1),a=e.orientation==="horizontal",i=Y(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;c(a?h:d)}},10);return R(r.viewport,i),R(r.content,i),u.jsx(I,{present:l||n,children:u.jsx(V,{"data-state":n?"visible":"hidden",...t,ref:o})})}),V=s.forwardRef((e,o)=>{const{orientation:r="vertical",...l}=e,t=v(g,e.__scopeScrollArea),n=s.useRef(null),c=s.useRef(0),[a,i]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=ae(a.viewport,a.content),d={...l,sizes:a,onSizesChange:i,hasThumb:h>0&&h<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:f=>c.current=f};function m(f,p){return Re(f,c.current,a,p)}return r==="horizontal"?u.jsx(ge,{...d,ref:o,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,p=q(f,a,t.dir);n.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=m(f,t.dir))}}):r==="vertical"?u.jsx(xe,{...d,ref:o,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,p=q(f,a);n.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=m(f))}}):null}),ge=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:l,...t}=e,n=v(g,e.__scopeScrollArea),[c,a]=s.useState(),i=s.useRef(null),h=y(o,i,n.onScrollbarXChange);return s.useEffect(()=>{i.current&&a(getComputedStyle(i.current))},[i]),u.jsx(le,{"data-orientation":"horizontal",...t,ref:h,sizes:r,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":X(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,m)=>{if(n.viewport){const f=n.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),de(f,m)&&d.preventDefault()}},onResize:()=>{i.current&&n.viewport&&c&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:i.current.clientWidth,paddingStart:O(c.paddingLeft),paddingEnd:O(c.paddingRight)}})}})}),xe=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:l,...t}=e,n=v(g,e.__scopeScrollArea),[c,a]=s.useState(),i=s.useRef(null),h=y(o,i,n.onScrollbarYChange);return s.useEffect(()=>{i.current&&a(getComputedStyle(i.current))},[i]),u.jsx(le,{"data-orientation":"vertical",...t,ref:h,sizes:r,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":X(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,m)=>{if(n.viewport){const f=n.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),de(f,m)&&d.preventDefault()}},onResize:()=>{i.current&&n.viewport&&c&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:i.current.clientHeight,paddingStart:O(c.paddingTop),paddingEnd:O(c.paddingBottom)}})}})}),[Pe,ne]=Q(g),le=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:c,onThumbPointerDown:a,onThumbPositionChange:i,onDragScroll:h,onWheelScroll:d,onResize:m,...f}=e,p=v(g,r),[S,A]=s.useState(null),k=y(o,b=>A(b)),x=s.useRef(null),j=s.useRef(""),M=p.viewport,L=l.content-l.viewport,N=P(d),T=P(i),D=Y(m,10);function z(b){if(x.current){const w=b.clientX-x.current.left,E=b.clientY-x.current.top;h({x:w,y:E})}}return s.useEffect(()=>{const b=w=>{const E=w.target;(S==null?void 0:S.contains(E))&&N(w,L)};return document.addEventListener("wheel",b,{passive:!1}),()=>document.removeEventListener("wheel",b,{passive:!1})},[M,S,L,N]),s.useEffect(T,[l,T]),R(S,D),R(p.content,D),u.jsx(Pe,{scope:r,scrollbar:S,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(c),onThumbPositionChange:T,onThumbPointerDown:P(a),children:u.jsx(_.div,{...f,ref:k,style:{position:"absolute",...f.style},onPointerDown:C(e.onPointerDown,b=>{b.button===0&&(b.target.setPointerCapture(b.pointerId),x.current=S.getBoundingClientRect(),j.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),z(b))}),onPointerMove:C(e.onPointerMove,z),onPointerUp:C(e.onPointerUp,b=>{const w=b.target;w.hasPointerCapture(b.pointerId)&&w.releasePointerCapture(b.pointerId),document.body.style.webkitUserSelect=j.current,p.viewport&&(p.viewport.style.scrollBehavior=""),x.current=null})})})}),H="ScrollAreaThumb",se=s.forwardRef((e,o)=>{const{forceMount:r,...l}=e,t=ne(H,e.__scopeScrollArea);return u.jsx(I,{present:r||t.hasThumb,children:u.jsx(Ce,{ref:o,...l})})}),Ce=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,style:l,...t}=e,n=v(H,r),c=ne(H,r),{onThumbPositionChange:a}=c,i=y(o,m=>c.onThumbChange(m)),h=s.useRef(void 0),d=Y(()=>{h.current&&(h.current(),h.current=void 0)},100);return s.useEffect(()=>{const m=n.viewport;if(m){const f=()=>{if(d(),!h.current){const p=ye(m,a);h.current=p,a()}};return a(),m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f)}},[n.viewport,d,a]),u.jsx(_.div,{"data-state":c.hasThumb?"visible":"hidden",...t,ref:i,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(e.onPointerDownCapture,m=>{const p=m.target.getBoundingClientRect(),S=m.clientX-p.left,A=m.clientY-p.top;c.onThumbPointerDown({x:S,y:A})}),onPointerUp:C(e.onPointerUp,c.onThumbPointerUp)})});se.displayName=H;var B="ScrollAreaCorner",ce=s.forwardRef((e,o)=>{const r=v(B,e.__scopeScrollArea),l=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&l?u.jsx(Ee,{...e,ref:o}):null});ce.displayName=B;var Ee=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,...l}=e,t=v(B,r),[n,c]=s.useState(0),[a,i]=s.useState(0),h=!!(n&&a);return R(t.scrollbarX,()=>{var m;const d=((m=t.scrollbarX)==null?void 0:m.offsetHeight)||0;t.onCornerHeightChange(d),i(d)}),R(t.scrollbarY,()=>{var m;const d=((m=t.scrollbarY)==null?void 0:m.offsetWidth)||0;t.onCornerWidthChange(d),c(d)}),h?u.jsx(_.div,{...l,ref:o,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function O(e){return e?parseInt(e,10):0}function ae(e,o){const r=e/o;return isNaN(r)?0:r}function X(e){const o=ae(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,l=(e.scrollbar.size-r)*o;return Math.max(l,18)}function Re(e,o,r,l="ltr"){const t=X(r),n=t/2,c=o||n,a=t-c,i=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-a,d=r.content-r.viewport,m=l==="ltr"?[0,d]:[d*-1,0];return ie([i,h],m)(e)}function q(e,o,r="ltr"){const l=X(o),t=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,n=o.scrollbar.size-t,c=o.content-o.viewport,a=n-l,i=r==="ltr"?[0,c]:[c*-1,0],h=pe(e,i);return ie([0,c],[0,a])(h)}function ie(e,o){return r=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const l=(o[1]-o[0])/(e[1]-e[0]);return o[0]+l*(r-e[0])}}function de(e,o){return e>0&&e<o}var ye=(e,o=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},l=0;return(function t(){const n={left:e.scrollLeft,top:e.scrollTop},c=r.left!==n.left,a=r.top!==n.top;(c||a)&&o(),r=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function Y(e,o){const r=P(e),l=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(l.current),[]),s.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(r,o)},[r,o])}function R(e,o){const r=P(o);me(()=>{let l=0;if(e){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(r)});return t.observe(e),()=>{window.cancelAnimationFrame(l),t.unobserve(e)}}},[e,r])}var Ae=Z,Te=re,_e=ce;function F({className:e,children:o,...r}){return u.jsxs(Ae,{"data-slot":"scroll-area",className:K("relative",e),...r,children:[u.jsx(Te,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:o}),u.jsx(ue,{}),u.jsx(_e,{})]})}function ue({className:e,orientation:o="vertical",...r}){return u.jsx(oe,{"data-slot":"scroll-area-scrollbar",orientation:o,className:K("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:u.jsx(se,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}F.__docgenInfo={description:"",methods:[],displayName:"ScrollArea"};ue.__docgenInfo={description:"",methods:[],displayName:"ScrollBar",props:{orientation:{defaultValue:{value:'"vertical"',computed:!1},required:!1}}};const $e={title:"Shadcn/UI/ScrollArea",component:F},je=["nextjs","shadcn","tailwind","radix","react","storybook","vitest","nx","pnpm","zod","react-hook-form","recharts","lucide","ui","forms","charts","table","sidebar","dialog","wizard","pagination","filtering","sorting","layout","accessibility","aria","dark-mode","light-mode","themes","components","hooks","state","routing","graphql","rest","cache","testing","automation","ci","cd","lint","format","prettier","eslint","typescript","javascript","css","html","design-system","docs","examples"],W={render:()=>u.jsx("div",{className:"h-[225px] w-[350px] rounded-md border",children:u.jsx(F,{className:"h-full w-full rounded-md p-4",children:u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"text-sm font-medium leading-none",children:"Tags"}),u.jsx("div",{className:"space-y-2",children:je.map(e=>u.jsxs("div",{className:"text-sm text-muted-foreground",children:["#",e]},e))})]})})})};var $,G,J;W.parameters={...W.parameters,docs:{...($=W.parameters)==null?void 0:$.docs,source:{originalSource:`{
2
- render: () => <div className="h-[225px] w-[350px] rounded-md border">
3
- <ScrollArea className="h-full w-full rounded-md p-4">
4
- <div className="space-y-4">
5
- <h4 className="text-sm font-medium leading-none">Tags</h4>
6
- <div className="space-y-2">
7
- {TAGS.map(tag => <div key={tag} className="text-sm text-muted-foreground">#{tag}</div>)}
8
- </div>
9
- </div>
10
- </ScrollArea>
11
- </div>
12
- }`,...(J=(G=W.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};const Ge=["Default"];export{W as Default,Ge as __namedExportsOrder,$e as default};
@@ -1,196 +0,0 @@
1
- import{j as a}from"./jsx-runtime-D_zvdyIk.js";import{S as t}from"./SectionBuilder-Df_lRZkj.js";import"./iframe-BWjPIle6.js";import"./preload-helper-Dp1pzeXC.js";import"./utils-D-KgF5mV.js";import"./card-BJpPOzP8.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-BcAKBHrX.js";const D={title:"Kit/Builder/Section",component:t,parameters:{controls:{expanded:!0},backgrounds:{disable:!0}},render:n=>a.jsx(t,{...n})};function e(n,N){return a.jsx("div",{className:["rounded border p-3 text-sm",N].filter(Boolean).join(" "),children:n})}const I=[{key:"a",content:e("A"),span:{md:6}},{key:"b",content:e("B"),span:{md:6}},{key:"c",content:e("C"),span:{md:4}},{key:"d",content:e("D"),span:{md:4}},{key:"e",content:e("E"),span:{md:4}}],r={name:"Grid layout",args:{sections:[{id:"grid-1",title:"Grid (responsive spans)",subtitle:"Uses md column spans 6/6 then 4/4/4",variant:"card",layout:"grid",grid:{cols:1,mdCols:12,gap:"gap-4"},children:I}]},render:n=>a.jsx(t,{...n})},s={name:"Leaves with labels",args:{sections:[{id:"labels-1",title:"Label layouts",variant:"card",layout:"grid",grid:{cols:1,mdCols:12},children:[{key:"l1",label:"Inline label",labelLayout:"inline",inlineLabelWidthClass:"w-40",content:e("Value content inline"),span:{md:12}},{key:"l2",label:"Stacked label",labelLayout:"stacked",description:"Optional description appears under value",content:e("Value content stacked"),span:{md:6}},{key:"l3",label:"No description",labelLayout:"stacked",content:e("Another value"),span:{md:6}}]}]},render:n=>a.jsx(t,{...n})},o={name:"Flex layout",args:{sections:[{id:"flex-1",title:"Horizontal flex with wrap",variant:"card",layout:"flex",flex:{direction:"row",wrap:!0,gap:"gap-3",align:"start",justify:"start"},children:[{key:"f1",content:e("Item 1"),className:"w-56"},{key:"f2",content:e("Item 2"),className:"w-56"},{key:"f3",content:e("Item 3"),className:"w-56"},{key:"f4",content:e("Item 4"),className:"w-56"}]}]}},i={name:"Nested sections",args:{sections:[{id:"outer",title:"Outer section",variant:"card",layout:"grid",grid:{cols:1,mdCols:12},children:[{id:"inner-1",title:"Inner A",variant:"separator",layout:"grid",grid:{cols:1,mdCols:12},children:[{key:"ia",content:e("Inner A1"),span:{md:6}},{key:"ib",content:e("Inner A2"),span:{md:6}}]},{id:"inner-2",title:"Inner B",variant:"plain",layout:"grid",grid:{cols:1,mdCols:12},children:[{key:"ic",content:e("Inner B1"),span:{md:4}},{key:"id",content:e("Inner B2"),span:{md:4}},{key:"ie",content:e("Inner B3"),span:{md:4}}]}]}]},render:n=>a.jsx(t,{...n})},l={name:"Custom leaf renderer",args:{sections:[{id:"custom-1",title:"Custom renderer",layout:"grid",grid:{cols:1,mdCols:12},children:[{key:"x",label:"Name",labelLayout:"inline",content:"Jane Doe",span:{md:6}},{key:"y",label:"Email",labelLayout:"inline",content:"jane@example.com",span:{md:6}}]}],renderLeaf:n=>a.jsxs("div",{className:"rounded border p-3",children:[a.jsx("div",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:n.label??"Field"}),a.jsx("div",{className:"text-sm",children:n.content})]})},render:n=>a.jsx(t,{...n})};var d,c,m;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`{
2
- name: 'Grid layout',
3
- args: {
4
- sections: [{
5
- id: 'grid-1',
6
- title: 'Grid (responsive spans)',
7
- subtitle: 'Uses md column spans 6/6 then 4/4/4',
8
- variant: 'card',
9
- layout: 'grid',
10
- grid: {
11
- cols: 1,
12
- mdCols: 12,
13
- gap: 'gap-4'
14
- },
15
- children: gridLeaves
16
- }] satisfies SectionNode[]
17
- },
18
- render: args => <SectionBuilder {...args} />
19
- }`,...(m=(c=r.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};var p,u,y;s.parameters={...s.parameters,docs:{...(p=s.parameters)==null?void 0:p.docs,source:{originalSource:`{
20
- name: 'Leaves with labels',
21
- args: {
22
- sections: [{
23
- id: 'labels-1',
24
- title: 'Label layouts',
25
- variant: 'card',
26
- layout: 'grid',
27
- grid: {
28
- cols: 1,
29
- mdCols: 12
30
- },
31
- children: [{
32
- key: 'l1',
33
- label: 'Inline label',
34
- labelLayout: 'inline',
35
- inlineLabelWidthClass: 'w-40',
36
- content: demoBox('Value content inline'),
37
- span: {
38
- md: 12
39
- }
40
- }, {
41
- key: 'l2',
42
- label: 'Stacked label',
43
- labelLayout: 'stacked',
44
- description: 'Optional description appears under value',
45
- content: demoBox('Value content stacked'),
46
- span: {
47
- md: 6
48
- }
49
- }, {
50
- key: 'l3',
51
- label: 'No description',
52
- labelLayout: 'stacked',
53
- content: demoBox('Another value'),
54
- span: {
55
- md: 6
56
- }
57
- }]
58
- }] satisfies SectionNode[]
59
- },
60
- render: args => <SectionBuilder {...args} />
61
- }`,...(y=(u=s.parameters)==null?void 0:u.docs)==null?void 0:y.source}}};var g,x,b;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:`{
62
- name: 'Flex layout',
63
- args: {
64
- sections: [{
65
- id: 'flex-1',
66
- title: 'Horizontal flex with wrap',
67
- variant: 'card',
68
- layout: 'flex',
69
- flex: {
70
- direction: 'row',
71
- wrap: true,
72
- gap: 'gap-3',
73
- align: 'start',
74
- justify: 'start'
75
- },
76
- children: [{
77
- key: 'f1',
78
- content: demoBox('Item 1'),
79
- className: 'w-56'
80
- }, {
81
- key: 'f2',
82
- content: demoBox('Item 2'),
83
- className: 'w-56'
84
- }, {
85
- key: 'f3',
86
- content: demoBox('Item 3'),
87
- className: 'w-56'
88
- }, {
89
- key: 'f4',
90
- content: demoBox('Item 4'),
91
- className: 'w-56'
92
- }]
93
- }] satisfies SectionNode[]
94
- }
95
- }`,...(b=(x=o.parameters)==null?void 0:x.docs)==null?void 0:b.source}}};var k,f,v;i.parameters={...i.parameters,docs:{...(k=i.parameters)==null?void 0:k.docs,source:{originalSource:`{
96
- name: 'Nested sections',
97
- args: {
98
- sections: [{
99
- id: 'outer',
100
- title: 'Outer section',
101
- variant: 'card',
102
- layout: 'grid',
103
- grid: {
104
- cols: 1,
105
- mdCols: 12
106
- },
107
- children: [{
108
- id: 'inner-1',
109
- title: 'Inner A',
110
- variant: 'separator',
111
- layout: 'grid',
112
- grid: {
113
- cols: 1,
114
- mdCols: 12
115
- },
116
- children: [{
117
- key: 'ia',
118
- content: demoBox('Inner A1'),
119
- span: {
120
- md: 6
121
- }
122
- }, {
123
- key: 'ib',
124
- content: demoBox('Inner A2'),
125
- span: {
126
- md: 6
127
- }
128
- }]
129
- }, {
130
- id: 'inner-2',
131
- title: 'Inner B',
132
- variant: 'plain',
133
- layout: 'grid',
134
- grid: {
135
- cols: 1,
136
- mdCols: 12
137
- },
138
- children: [{
139
- key: 'ic',
140
- content: demoBox('Inner B1'),
141
- span: {
142
- md: 4
143
- }
144
- }, {
145
- key: 'id',
146
- content: demoBox('Inner B2'),
147
- span: {
148
- md: 4
149
- }
150
- }, {
151
- key: 'ie',
152
- content: demoBox('Inner B3'),
153
- span: {
154
- md: 4
155
- }
156
- }]
157
- }]
158
- } as unknown as SectionNode]
159
- },
160
- render: args => <SectionBuilder {...args} />
161
- }`,...(v=(f=i.parameters)==null?void 0:f.docs)==null?void 0:v.source}}};var h,B,L;l.parameters={...l.parameters,docs:{...(h=l.parameters)==null?void 0:h.docs,source:{originalSource:`{
162
- name: 'Custom leaf renderer',
163
- args: {
164
- sections: [{
165
- id: 'custom-1',
166
- title: 'Custom renderer',
167
- layout: 'grid',
168
- grid: {
169
- cols: 1,
170
- mdCols: 12
171
- },
172
- children: [{
173
- key: 'x',
174
- label: 'Name',
175
- labelLayout: 'inline',
176
- content: 'Jane Doe',
177
- span: {
178
- md: 6
179
- }
180
- }, {
181
- key: 'y',
182
- label: 'Email',
183
- labelLayout: 'inline',
184
- content: 'jane@example.com',
185
- span: {
186
- md: 6
187
- }
188
- }]
189
- }] satisfies SectionNode[],
190
- renderLeaf: leaf => <div className="rounded border p-3">
191
- <div className="text-[10px] uppercase tracking-wide text-muted-foreground">{leaf.label ?? 'Field'}</div>
192
- <div className="text-sm">{leaf.content}</div>
193
- </div>
194
- },
195
- render: args => <SectionBuilder {...args} />
196
- }`,...(L=(B=l.parameters)==null?void 0:B.docs)==null?void 0:L.source}}};const R=["GridLayout","WithLabels","FlexLayout","NestedSections","CustomLeafRenderer"];export{l as CustomLeafRenderer,o as FlexLayout,r as GridLayout,i as NestedSections,s as WithLabels,R as __namedExportsOrder,D as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as C}from"./iframe-BWjPIle6.js";import{c}from"./utils-D-KgF5mV.js";import{C as f,a as y,b as v,d as S,c as L}from"./card-BJpPOzP8.js";import{S as b}from"./separator-CxCWfpZX.js";const m={base:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},sm:{1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},xl:{1:"xl:grid-cols-1",2:"xl:grid-cols-2",3:"xl:grid-cols-3",4:"xl:grid-cols-4",5:"xl:grid-cols-5",6:"xl:grid-cols-6",7:"xl:grid-cols-7",8:"xl:grid-cols-8",9:"xl:grid-cols-9",10:"xl:grid-cols-10",11:"xl:grid-cols-11",12:"xl:grid-cols-12"}},o={base:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12"}};function w(s){const l=(s==null?void 0:s.cols)??1,i=s==null?void 0:s.smCols,n=s==null?void 0:s.mdCols,t=s==null?void 0:s.lgCols,a=s==null?void 0:s.xlCols,r=(s==null?void 0:s.gap)??"gap-4";return c("grid",m.base[l],i?m.sm[i]:void 0,n?m.md[n]:void 0,t?m.lg[t]:void 0,a?m.xl[a]:void 0,r)}function R(s){const l=(s==null?void 0:s.direction)??"col",i=s!=null&&s.wrap?"flex-wrap":"flex-nowrap",n=(s==null?void 0:s.gap)??"gap-4",t=(s==null?void 0:s.align)??"stretch",a=(s==null?void 0:s.justify)??"start",r=t==="start"?"items-start":t==="center"?"items-center":t==="end"?"items-end":"items-stretch",d=a==="start"?"justify-start":a==="center"?"justify-center":a==="between"?"justify-between":"justify-end";return c("flex",`flex-${l}`,i,n,r,d)}function q(s){if(!s.span)return;const l=[];return s.span.base&&l.push(o.base[s.span.base]),s.span.sm&&l.push(o.sm[s.span.sm]),s.span.md&&l.push(o.md[s.span.md]),s.span.lg&&l.push(o.lg[s.span.lg]),s.span.xl&&l.push(o.xl[s.span.xl]),l.join(" ")}function E(s){return s.content!==void 0}function k(s,l){return s===l?!0:!s||!l?!s&&!l:s.base===l.base&&s.sm===l.sm&&s.md===l.md&&s.lg===l.lg&&s.xl===l.xl}function B(s,l){const i=(s.renderKey??null)===(l.renderKey??null);return s.key===l.key&&s.hidden===l.hidden&&s.className===l.className&&s.labelLayout===l.labelLayout&&s.labelClassName===l.labelClassName&&s.valueClassName===l.valueClassName&&s.inlineLabelWidthClass===l.inlineLabelWidthClass&&k(s.span,l.span)&&i}const T=C.memo(function({leaf:l,renderLeaf:i}){if(l.hidden)return null;const n=q(l);if(i)return e.jsx("div",{className:c(n,l.className),children:i(l)});const t=l.label!==void 0&&l.label!==null&&l.label!=="",a=l.labelLayout??"stacked",r="text-xs text-muted-foreground",d="text-sm leading-6";if(!t)return e.jsx("div",{className:c(n,l.className,l.valueClassName),children:l.content});if(a==="inline"){const g=l.inlineLabelWidthClass??"w-32";return e.jsxs("div",{className:c(n,l.className,"flex items-start gap-4"),children:[e.jsx("div",{className:c(g,r,l.labelClassName),children:l.label}),e.jsxs("div",{className:c("flex-1",d,l.valueClassName),children:[l.content,l.description?e.jsx("div",{className:c("mt-1",r),children:l.description}):null]})]})}return e.jsxs("div",{className:c(n,l.className,"flex flex-col"),children:[e.jsx("div",{className:c(r,l.labelClassName),children:l.label}),e.jsx("div",{className:c(d,l.valueClassName),children:l.content}),l.description?e.jsx("div",{className:c("mt-1",r),children:l.description}):null]})},(s,l)=>B(s.leaf,l.leaf)&&s.renderLeaf===l.renderLeaf);function N({node:s,renderLeaf:l}){if(s.hidden)return null;const n=(s.layout??"grid")==="grid"?w(s.grid):R(s.flex),t=({children:a})=>{const r=s.title,d=s.subtitle,g=s.variant??"card",u=s.className,h=s.headerClassName,j=s.contentClassName,p=()=>!r&&!d?null:e.jsxs("div",{className:c("space-y-1",h),children:[r&&e.jsx("h3",{className:"text-lg font-medium leading-none",children:r}),d&&e.jsx("p",{className:"text-sm text-muted-foreground",children:d})]}),x=()=>e.jsx("div",{className:c("space-y-4",j),children:a});switch(g){case"card":return e.jsxs(f,{className:u,children:[(r||d)&&e.jsxs(y,{children:[r&&e.jsx(v,{children:r}),d&&e.jsx(S,{children:d})]}),e.jsx(L,{className:c(!r&&!d&&"pt-6"),children:x()})]});case"separator":return e.jsxs("div",{className:c("space-y-6",u),children:[(r||d)&&e.jsxs(e.Fragment,{children:[p(),e.jsx(b,{})]}),x()]});case"plain":default:return e.jsxs("div",{className:c("space-y-6",u),children:[p(),x()]})}};return e.jsx(t,{children:e.jsx("div",{className:n,children:(s.children??[]).map(a=>E(a)?e.jsx(T,{leaf:a,renderLeaf:l},a.key):a.hidden?null:e.jsx("div",{className:"col-span-full",children:e.jsx(N,{node:a,renderLeaf:l})},a.id))})})}function W({sections:s,className:l,renderLeaf:i}){return e.jsx("div",{className:c("space-y-6",l),children:s.map(n=>e.jsx(N,{node:n,renderLeaf:i},n.id))})}W.__docgenInfo={description:"",methods:[],displayName:"SectionBuilder",props:{sections:{required:!0,tsType:{name:"Array",elements:[{name:"SectionNode"}],raw:"SectionNode[]"},description:""},renderLeaf:{required:!1,tsType:{name:"signature",type:"function",raw:"(leaf: SectionLeaf) => React.ReactNode",signature:{arguments:[{type:{name:"SectionLeaf"},name:"leaf"}],return:{name:"ReactReactNode",raw:"React.ReactNode"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};export{W as S};
@@ -1,17 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{r as j}from"./iframe-BWjPIle6.js";import{S as s,a as p,b as h,c as x,d as r}from"./select-gtXRB92c.js";import{L as S}from"./label-CwntpYJ0.js";import"./preload-helper-Dp1pzeXC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-BdQq_4o_.js";import"./index-DW48STyt.js";import"./index-C9xvlw_B.js";import"./index-Pk2lGsul.js";import"./index-BcAKBHrX.js";import"./index-Dr2xmx-F.js";import"./index-BfKpUbCE.js";import"./index-04C4iZwC.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-Cce91yJQ.js";import"./index-7XoYQV2z.js";import"./index-Dqw7miiX.js";import"./index-URSssr5a.js";import"./utils-D-KgF5mV.js";import"./chevron-down-Bp7zbUB0.js";import"./createLucideIcon-CLBo0iA0.js";import"./check-DyecuwP4.js";const Q={title:"Shadcn/UI/Select",component:s},t={render:()=>e.jsxs("div",{className:"grid w-[240px] gap-2",children:[e.jsx(S,{htmlFor:"select",children:"Theme"}),e.jsxs(s,{children:[e.jsx(p,{id:"select",children:e.jsx(h,{placeholder:"Select a theme"})}),e.jsxs(x,{children:[e.jsx(r,{value:"light",children:"Light"}),e.jsx(r,{value:"dark",children:"Dark"}),e.jsx(r,{value:"system",children:"System"})]})]})]})};function g(){const[o,u]=j.useState("system");return e.jsxs("div",{className:"grid w-[240px] gap-2",children:[e.jsx(S,{children:"Controlled"}),e.jsxs(s,{value:o,onValueChange:u,children:[e.jsx(p,{children:e.jsx(h,{placeholder:"Pick one"})}),e.jsxs(x,{children:[e.jsx(r,{value:"apple",children:"Apple"}),e.jsx(r,{value:"banana",children:"Banana"}),e.jsx(r,{value:"cherry",children:"Cherry"})]})]}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["Selected: ",o]})]})}const l={render:()=>e.jsx(g,{})};var a,c,i;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`{
2
- render: () => <div className="grid w-[240px] gap-2">
3
- <Label htmlFor="select">Theme</Label>
4
- <Select>
5
- <SelectTrigger id="select">
6
- <SelectValue placeholder="Select a theme" />
7
- </SelectTrigger>
8
- <SelectContent>
9
- <SelectItem value="light">Light</SelectItem>
10
- <SelectItem value="dark">Dark</SelectItem>
11
- <SelectItem value="system">System</SelectItem>
12
- </SelectContent>
13
- </Select>
14
- </div>
15
- }`,...(i=(c=t.parameters)==null?void 0:c.docs)==null?void 0:i.source}}};var m,n,d;l.parameters={...l.parameters,docs:{...(m=l.parameters)==null?void 0:m.docs,source:{originalSource:`{
16
- render: () => <ControlledDemo />
17
- }`,...(d=(n=l.parameters)==null?void 0:n.docs)==null?void 0:d.source}}};const W=["Basic","Controlled"];export{t as Basic,l as Controlled,W as __namedExportsOrder,Q as default};
@@ -1,17 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{S as s}from"./separator-CxCWfpZX.js";import"./iframe-BWjPIle6.js";import"./preload-helper-Dp1pzeXC.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-BcAKBHrX.js";import"./utils-D-KgF5mV.js";const h={title:"Shadcn/UI/Separator",component:s},r={render:()=>e.jsxs("div",{className:"w-full max-w-sm",children:[e.jsx("div",{className:"text-sm font-medium leading-none",children:"Radix Primitives"}),e.jsx(s,{className:"my-2"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"An open-source UI component library."})]})},t={render:()=>e.jsxs("div",{className:"flex h-10 items-center space-x-4 text-sm",children:[e.jsx("div",{children:"Blog"}),e.jsx(s,{orientation:"vertical"}),e.jsx("div",{children:"Docs"}),e.jsx(s,{orientation:"vertical"}),e.jsx("div",{children:"Source"})]})};var a,i,o;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{
2
- render: () => <div className="w-full max-w-sm">
3
- <div className="text-sm font-medium leading-none">Radix Primitives</div>
4
- <Separator className="my-2" />
5
- <div className="text-sm text-muted-foreground">
6
- An open-source UI component library.
7
- </div>
8
- </div>
9
- }`,...(o=(i=r.parameters)==null?void 0:i.docs)==null?void 0:o.source}}};var n,m,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{
10
- render: () => <div className="flex h-10 items-center space-x-4 text-sm">
11
- <div>Blog</div>
12
- <Separator orientation="vertical" />
13
- <div>Docs</div>
14
- <Separator orientation="vertical" />
15
- <div>Source</div>
16
- </div>
17
- }`,...(c=(m=t.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const N=["Horizontal","Vertical"];export{r as Horizontal,t as Vertical,N as __namedExportsOrder,h as default};
@@ -1,24 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{S as s,e as a,a as h,b as d,c as p,d as c,f as m}from"./sheet-r0VNiBiN.js";import{B as r}from"./button-BObfgcV1.js";import"./index-u70nzfOV.js";import"./iframe-BWjPIle6.js";import"./preload-helper-Dp1pzeXC.js";import"./index-DW48STyt.js";import"./index-BcAKBHrX.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./utils-D-KgF5mV.js";import"./x-n8sFtlI2.js";import"./createLucideIcon-CLBo0iA0.js";import"./index-CGrAONsN.js";const _={title:"Shadcn/UI/Sheet",component:s},t={render:()=>e.jsxs(s,{children:[e.jsx(a,{asChild:!0,children:e.jsx(r,{variant:"outline",children:"Open Sheet"})}),e.jsxs(h,{side:"right",children:[e.jsxs(d,{children:[e.jsx(p,{children:"Edit profile"}),e.jsx(c,{children:"Make changes to your profile here. Click save when you're done."})]}),e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Put any content here. This panel slides from the right and can be closed via the X button."}),e.jsx(m,{children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{variant:"outline",children:"Cancel"}),e.jsx(r,{children:"Save"})]})})]})]})};var i,o,n;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{
2
- render: () => <Sheet>
3
- <SheetTrigger asChild>
4
- <Button variant="outline">Open Sheet</Button>
5
- </SheetTrigger>
6
- <SheetContent side="right">
7
- <SheetHeader>
8
- <SheetTitle>Edit profile</SheetTitle>
9
- <SheetDescription>
10
- Make changes to your profile here. Click save when you're done.
11
- </SheetDescription>
12
- </SheetHeader>
13
- <div className="p-4 text-sm text-muted-foreground">
14
- Put any content here. This panel slides from the right and can be closed via the X button.
15
- </div>
16
- <SheetFooter>
17
- <div className="flex gap-2">
18
- <Button variant="outline">Cancel</Button>
19
- <Button>Save</Button>
20
- </div>
21
- </SheetFooter>
22
- </SheetContent>
23
- </Sheet>
24
- }`,...(n=(o=t.parameters)==null?void 0:o.docs)==null?void 0:n.source}}};const I=["Basic"];export{t as Basic,I as __namedExportsOrder,_ as default};
@@ -1,106 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{a as c,S as u,b as h,l as m,m as x,c as j,d as i,e as o,f as s,g as d,i as n,j as r,n as M,o as I,p as B,h as v,q as g,k as f}from"./sidebar-BsMnOE7Y.js";import{c as t}from"./createLucideIcon-CLBo0iA0.js";import{T as G,P}from"./trash-2-D55eseMQ.js";import{S as A}from"./settings-2-DSSkfF6W.js";import"./iframe-BWjPIle6.js";import"./preload-helper-Dp1pzeXC.js";import"./index-BcAKBHrX.js";import"./index-CGrAONsN.js";import"./utils-D-KgF5mV.js";import"./button-BObfgcV1.js";import"./input-11YRd9gD.js";import"./separator-CxCWfpZX.js";import"./index-04C4iZwC.js";import"./index-C5eJ31Z3.js";import"./index-npvyVsxD.js";import"./sheet-r0VNiBiN.js";import"./index-u70nzfOV.js";import"./index-DW48STyt.js";import"./index-Pk2lGsul.js";import"./index-BN5_W3Yi.js";import"./index-DWC9SV-P.js";import"./index-7XoYQV2z.js";import"./index-BfKpUbCE.js";import"./index-DschQYGl.js";import"./Combination-CeVus13L.js";import"./index-Cce91yJQ.js";import"./index-CKwUGXmt.js";import"./x-n8sFtlI2.js";import"./skeleton-CjDnQs43.js";import"./tooltip-CZ1UAE_e.js";import"./index-C6O7WofA.js";import"./index-DMk2qc2_.js";import"./index-URSssr5a.js";/**
2
- * @license lucide-react v0.540.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const y=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],p=t("folder",y);/**
7
- * @license lucide-react v0.540.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const L=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],T=t("inbox",L);/**
12
- * @license lucide-react v0.540.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const C=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],_=t("send",C);/**
17
- * @license lucide-react v0.540.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const k=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],N=t("star",k),he={title:"Shadcn/UI/Sidebar",component:c},a={parameters:{centered:!1},render:()=>e.jsx("div",{className:"h-svh w-full",children:e.jsxs(u,{children:[e.jsxs(c,{children:[e.jsxs(h,{children:[e.jsx(m,{}),e.jsx(x,{placeholder:"Search..."})]}),e.jsxs(j,{children:[e.jsxs(i,{children:[e.jsx(o,{children:"Mailboxes"}),e.jsx(s,{children:e.jsxs(d,{children:[e.jsx(n,{children:e.jsxs(r,{isActive:!0,tooltip:"Inbox",children:[e.jsx(T,{}),e.jsx("span",{children:"Inbox"}),e.jsx(M,{children:"12"})]})}),e.jsx(n,{children:e.jsxs(r,{tooltip:"Sent",children:[e.jsx(_,{}),e.jsx("span",{children:"Sent"})]})}),e.jsx(n,{children:e.jsxs(r,{tooltip:"Starred",children:[e.jsx(N,{}),e.jsx("span",{children:"Starred"})]})}),e.jsx(n,{children:e.jsxs(r,{tooltip:"Trash",children:[e.jsx(G,{}),e.jsx("span",{children:"Trash"})]})})]})})]}),e.jsx(I,{}),e.jsxs(i,{children:[e.jsx(o,{children:"Projects"}),e.jsx(s,{children:e.jsxs(d,{children:[e.jsxs(n,{children:[e.jsxs(r,{tooltip:"Project Alpha",children:[e.jsx(p,{}),e.jsx("span",{children:"Alpha"})]}),e.jsx(B,{title:"New item",children:e.jsx(P,{})})]}),e.jsx(n,{children:e.jsxs(r,{tooltip:"Project Beta",children:[e.jsx(p,{}),e.jsx("span",{children:"Beta"})]})}),e.jsx(n,{children:e.jsxs(r,{tooltip:"Settings",children:[e.jsx(A,{}),e.jsx("span",{children:"Settings"})]})})]})})]})]}),e.jsx(v,{}),e.jsx(g,{})]}),e.jsx(f,{children:e.jsxs("div",{children:[e.jsx("h3",{children:"Content Area"}),e.jsx("p",{children:"Put any content here. This panel slides from the right and can be closed via the X button."})]})})]})})};var l,S,b;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:`{
22
- parameters: {
23
- centered: false
24
- },
25
- render: () => <div className="h-svh w-full">
26
- <SidebarProvider>
27
- <Sidebar>
28
- <SidebarHeader>
29
- <SidebarTrigger />
30
- <SidebarInput placeholder="Search..." />
31
- </SidebarHeader>
32
- <SidebarContent>
33
- <SidebarGroup>
34
- <SidebarGroupLabel>Mailboxes</SidebarGroupLabel>
35
- <SidebarGroupContent>
36
- <SidebarMenu>
37
- <SidebarMenuItem>
38
- <SidebarMenuButton isActive tooltip="Inbox">
39
- <Inbox />
40
- <span>Inbox</span>
41
- <SidebarMenuBadge>12</SidebarMenuBadge>
42
- </SidebarMenuButton>
43
- </SidebarMenuItem>
44
- <SidebarMenuItem>
45
- <SidebarMenuButton tooltip="Sent">
46
- <Send />
47
- <span>Sent</span>
48
- </SidebarMenuButton>
49
- </SidebarMenuItem>
50
- <SidebarMenuItem>
51
- <SidebarMenuButton tooltip="Starred">
52
- <Star />
53
- <span>Starred</span>
54
- </SidebarMenuButton>
55
- </SidebarMenuItem>
56
- <SidebarMenuItem>
57
- <SidebarMenuButton tooltip="Trash">
58
- <Trash2 />
59
- <span>Trash</span>
60
- </SidebarMenuButton>
61
- </SidebarMenuItem>
62
- </SidebarMenu>
63
- </SidebarGroupContent>
64
- </SidebarGroup>
65
- <SidebarSeparator />
66
- <SidebarGroup>
67
- <SidebarGroupLabel>Projects</SidebarGroupLabel>
68
- <SidebarGroupContent>
69
- <SidebarMenu>
70
- <SidebarMenuItem>
71
- <SidebarMenuButton tooltip="Project Alpha">
72
- <Folder />
73
- <span>Alpha</span>
74
- </SidebarMenuButton>
75
- <SidebarMenuAction title="New item">
76
- <Plus />
77
- </SidebarMenuAction>
78
- </SidebarMenuItem>
79
- <SidebarMenuItem>
80
- <SidebarMenuButton tooltip="Project Beta">
81
- <Folder />
82
- <span>Beta</span>
83
- </SidebarMenuButton>
84
- </SidebarMenuItem>
85
- <SidebarMenuItem>
86
- <SidebarMenuButton tooltip="Settings">
87
- <Settings2 />
88
- <span>Settings</span>
89
- </SidebarMenuButton>
90
- </SidebarMenuItem>
91
- </SidebarMenu>
92
- </SidebarGroupContent>
93
- </SidebarGroup>
94
- </SidebarContent>
95
- <SidebarFooter />
96
- <SidebarRail />
97
- </Sidebar>
98
- <SidebarInset>
99
- <div>
100
- <h3>Content Area</h3>
101
- <p>Put any content here. This panel slides from the right and can be closed via the X button.</p>
102
- </div>
103
- </SidebarInset>
104
- </SidebarProvider>
105
- </div>
106
- }`,...(b=(S=a.parameters)==null?void 0:S.docs)==null?void 0:b.source}}};const me=["BasicLayout"];export{a as BasicLayout,me as __namedExportsOrder,he as default};
@@ -1,9 +0,0 @@
1
- import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{S as a}from"./skeleton-CjDnQs43.js";import"./utils-D-KgF5mV.js";const m={title:"Shadcn/UI/Skeleton",component:a},s={render:()=>e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(a,{className:"h-12 w-12 rounded-full"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{className:"h-4 w-[250px]"}),e.jsx(a,{className:"h-4 w-[200px]"})]})]})};var r,c,n;s.parameters={...s.parameters,docs:{...(r=s.parameters)==null?void 0:r.docs,source:{originalSource:`{
2
- render: () => <div className="flex items-center space-x-4">
3
- <Skeleton className="h-12 w-12 rounded-full" />
4
- <div className="space-y-2">
5
- <Skeleton className="h-4 w-[250px]" />
6
- <Skeleton className="h-4 w-[200px]" />
7
- </div>
8
- </div>
9
- }`,...(n=(c=s.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};const d=["Basic"];export{s as Basic,d as __namedExportsOrder,m as default};