@bigbinary/neeto-atoms 1.0.8 → 1.0.10

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 (660) hide show
  1. package/dist/Accordion-BzfsJePA.js +22 -0
  2. package/dist/Accordion-BzfsJePA.js.map +1 -0
  3. package/dist/Alert-D_FV8xxo.js +65 -0
  4. package/dist/Alert-D_FV8xxo.js.map +1 -0
  5. package/dist/Avatar-D5YGlXVF.js +50 -0
  6. package/dist/Avatar-D5YGlXVF.js.map +1 -0
  7. package/dist/Badge-8FkscqDt.js +59 -0
  8. package/dist/Badge-8FkscqDt.js.map +1 -0
  9. package/dist/Button-Q7MPG6ph.js +92 -0
  10. package/dist/Button-Q7MPG6ph.js.map +1 -0
  11. package/dist/Calendar-pDD7nRF-.js +8025 -0
  12. package/dist/Calendar-pDD7nRF-.js.map +1 -0
  13. package/dist/Callout-B0w4GQtx.js +65 -0
  14. package/dist/Callout-B0w4GQtx.js.map +1 -0
  15. package/dist/Checkbox-zCxgcZiC.js +24 -0
  16. package/dist/Checkbox-zCxgcZiC.js.map +1 -0
  17. package/dist/ColorPicker-D-7QGnf9.js +277 -0
  18. package/dist/ColorPicker-D-7QGnf9.js.map +1 -0
  19. package/dist/{DataTable-BKe9K5XP.js → DataTable-DWR9gX9d.js} +11 -3
  20. package/dist/{DataTable-BKe9K5XP.js.map → DataTable-DWR9gX9d.js.map} +1 -1
  21. package/dist/DatePicker-COxwHPIZ.js +2960 -0
  22. package/dist/DatePicker-COxwHPIZ.js.map +1 -0
  23. package/dist/Dialog-BURSzxaP.js +61 -0
  24. package/dist/Dialog-BURSzxaP.js.map +1 -0
  25. package/dist/Empty-B2JwFmru.js +26 -0
  26. package/dist/Empty-B2JwFmru.js.map +1 -0
  27. package/dist/Input-C1gcv9o2.js +147 -0
  28. package/dist/Input-C1gcv9o2.js.map +1 -0
  29. package/dist/Kbd-EqbC0bua.js +36 -0
  30. package/dist/Kbd-EqbC0bua.js.map +1 -0
  31. package/dist/Label-BVy4hy9Z.js +58 -0
  32. package/dist/Label-BVy4hy9Z.js.map +1 -0
  33. package/dist/MultiEmailInput-SCTYovtX.js +139 -0
  34. package/dist/MultiEmailInput-SCTYovtX.js.map +1 -0
  35. package/dist/Pagination-DSc9yXPy.js +61 -0
  36. package/dist/Pagination-DSc9yXPy.js.map +1 -0
  37. package/dist/Popover-BFMrtVPq.js +95 -0
  38. package/dist/Popover-BFMrtVPq.js.map +1 -0
  39. package/dist/Progress-B9NlUm6e.js +13 -0
  40. package/dist/Progress-B9NlUm6e.js.map +1 -0
  41. package/dist/RadioGroup-BNeYQAoT.js +34 -0
  42. package/dist/RadioGroup-BNeYQAoT.js.map +1 -0
  43. package/dist/Select-BGODpJGc.js +561 -0
  44. package/dist/Select-BGODpJGc.js.map +1 -0
  45. package/dist/{components/SelectFieldWrapper.js → SelectFieldWrapper-BJzq9aCY.js} +3 -11
  46. package/dist/SelectFieldWrapper-BJzq9aCY.js.map +1 -0
  47. package/dist/Sheet-QFC_mHyj.js +63 -0
  48. package/dist/Sheet-QFC_mHyj.js.map +1 -0
  49. package/dist/Slider-BCQXhs0Q.js +25 -0
  50. package/dist/Slider-BCQXhs0Q.js.map +1 -0
  51. package/dist/Spinner-C8HSac-2.js +17 -0
  52. package/dist/Spinner-C8HSac-2.js.map +1 -0
  53. package/dist/Stepper-BoGkmkY0.js +29 -0
  54. package/dist/Stepper-BoGkmkY0.js.map +1 -0
  55. package/dist/Switch-B83TGxJ_.js +20 -0
  56. package/dist/Switch-B83TGxJ_.js.map +1 -0
  57. package/dist/Tabs-DWfKnl3S.js +38 -0
  58. package/dist/Tabs-DWfKnl3S.js.map +1 -0
  59. package/dist/Textarea-C0z50h0N.js +73 -0
  60. package/dist/Textarea-C0z50h0N.js.map +1 -0
  61. package/dist/TimePicker-C4x62jI1.js +142 -0
  62. package/dist/TimePicker-C4x62jI1.js.map +1 -0
  63. package/dist/TimePickerPanel-CiF0RExY.js +126 -0
  64. package/dist/TimePickerPanel-CiF0RExY.js.map +1 -0
  65. package/dist/Toastr-DYqpSaMd.js +115 -0
  66. package/dist/Toastr-DYqpSaMd.js.map +1 -0
  67. package/dist/Tooltip-DhwIZnOU.js +80 -0
  68. package/dist/Tooltip-DhwIZnOU.js.map +1 -0
  69. package/dist/TranslationProvider-Ba9rn47H.js +96 -0
  70. package/dist/TranslationProvider-Ba9rn47H.js.map +1 -0
  71. package/dist/Tree-Dkr11OPy.js +7977 -0
  72. package/dist/Tree-Dkr11OPy.js.map +1 -0
  73. package/dist/TreeSelect-Cmc90YWJ.js +168 -0
  74. package/dist/TreeSelect-Cmc90YWJ.js.map +1 -0
  75. package/dist/Typography-D5TjXEfu.js +82 -0
  76. package/dist/Typography-D5TjXEfu.js.map +1 -0
  77. package/dist/cjs/Accordion-BX5I9ypV.js +28 -0
  78. package/dist/cjs/Accordion-BX5I9ypV.js.map +1 -0
  79. package/dist/cjs/Alert-BVvLyM_d.js +67 -0
  80. package/dist/cjs/Alert-BVvLyM_d.js.map +1 -0
  81. package/dist/cjs/Avatar-CNao5gvP.js +52 -0
  82. package/dist/cjs/Avatar-CNao5gvP.js.map +1 -0
  83. package/dist/cjs/Badge-STBHzYLs.js +61 -0
  84. package/dist/cjs/Badge-STBHzYLs.js.map +1 -0
  85. package/dist/cjs/Button-Bt_AElge.js +94 -0
  86. package/dist/cjs/Button-Bt_AElge.js.map +1 -0
  87. package/dist/cjs/Calendar-Nk76Y9yP.js +8066 -0
  88. package/dist/cjs/Calendar-Nk76Y9yP.js.map +1 -0
  89. package/dist/cjs/Callout-CS2U6pM7.js +67 -0
  90. package/dist/cjs/Callout-CS2U6pM7.js.map +1 -0
  91. package/dist/cjs/Checkbox-DOlS2oCD.js +26 -0
  92. package/dist/cjs/Checkbox-DOlS2oCD.js.map +1 -0
  93. package/dist/cjs/{ColorPicker-DN8aynGh.js → ColorPicker-DEELmqH8.js} +7 -10
  94. package/dist/cjs/ColorPicker-DEELmqH8.js.map +1 -0
  95. package/dist/cjs/{DataTable-BQt_mXDX.js → DataTable-CWs96k8n.js} +11 -3
  96. package/dist/cjs/{DataTable-BQt_mXDX.js.map → DataTable-CWs96k8n.js.map} +1 -1
  97. package/dist/cjs/DatePicker-DpijPndg.js +2962 -0
  98. package/dist/cjs/DatePicker-DpijPndg.js.map +1 -0
  99. package/dist/cjs/Dialog-CtI_yWsJ.js +63 -0
  100. package/dist/cjs/Dialog-CtI_yWsJ.js.map +1 -0
  101. package/dist/cjs/Empty-qzle6YvT.js +28 -0
  102. package/dist/cjs/Empty-qzle6YvT.js.map +1 -0
  103. package/dist/cjs/Input-pkugjUb0.js +149 -0
  104. package/dist/cjs/Input-pkugjUb0.js.map +1 -0
  105. package/dist/cjs/Kbd-DHirsI--.js +38 -0
  106. package/dist/cjs/Kbd-DHirsI--.js.map +1 -0
  107. package/dist/cjs/Label-DpyfZsiT.js +60 -0
  108. package/dist/cjs/Label-DpyfZsiT.js.map +1 -0
  109. package/dist/cjs/MultiEmailInput-l0_YVjbp.js +141 -0
  110. package/dist/cjs/MultiEmailInput-l0_YVjbp.js.map +1 -0
  111. package/dist/cjs/Pagination-Byzt9Kmj.js +63 -0
  112. package/dist/cjs/Pagination-Byzt9Kmj.js.map +1 -0
  113. package/dist/cjs/Popover-LIxANoTc.js +101 -0
  114. package/dist/cjs/Popover-LIxANoTc.js.map +1 -0
  115. package/dist/cjs/Progress-DoCxZ_ZH.js +15 -0
  116. package/dist/cjs/Progress-DoCxZ_ZH.js.map +1 -0
  117. package/dist/cjs/RadioGroup-1RAoe38m.js +36 -0
  118. package/dist/cjs/RadioGroup-1RAoe38m.js.map +1 -0
  119. package/dist/cjs/Select-DOPZHlqc.js +567 -0
  120. package/dist/cjs/Select-DOPZHlqc.js.map +1 -0
  121. package/dist/cjs/{components/SelectFieldWrapper.js → SelectFieldWrapper-DEA--2wj.js} +2 -10
  122. package/dist/cjs/SelectFieldWrapper-DEA--2wj.js.map +1 -0
  123. package/dist/cjs/Sheet-CIhtNCBV.js +65 -0
  124. package/dist/cjs/Sheet-CIhtNCBV.js.map +1 -0
  125. package/dist/cjs/Slider-jNUS9vt8.js +27 -0
  126. package/dist/cjs/Slider-jNUS9vt8.js.map +1 -0
  127. package/dist/cjs/Spinner-DQutDMQq.js +19 -0
  128. package/dist/cjs/Spinner-DQutDMQq.js.map +1 -0
  129. package/dist/cjs/Stepper-DCoLl2ZS.js +35 -0
  130. package/dist/cjs/Stepper-DCoLl2ZS.js.map +1 -0
  131. package/dist/cjs/Switch-CFf8DtB_.js +22 -0
  132. package/dist/cjs/Switch-CFf8DtB_.js.map +1 -0
  133. package/dist/cjs/Tabs-D2247rd7.js +40 -0
  134. package/dist/cjs/Tabs-D2247rd7.js.map +1 -0
  135. package/dist/cjs/Textarea-BfdlAJ59.js +75 -0
  136. package/dist/cjs/Textarea-BfdlAJ59.js.map +1 -0
  137. package/dist/cjs/TimePicker-Ba2FdT1O.js +144 -0
  138. package/dist/cjs/TimePicker-Ba2FdT1O.js.map +1 -0
  139. package/dist/cjs/TimePickerPanel-DGNr97cj.js +132 -0
  140. package/dist/cjs/TimePickerPanel-DGNr97cj.js.map +1 -0
  141. package/dist/cjs/Toastr-BGp7-kmf.js +117 -0
  142. package/dist/cjs/Toastr-BGp7-kmf.js.map +1 -0
  143. package/dist/cjs/Tooltip-CtxI7QBY.js +86 -0
  144. package/dist/cjs/Tooltip-CtxI7QBY.js.map +1 -0
  145. package/dist/cjs/TranslationProvider-DBZHXmzX.js +103 -0
  146. package/dist/cjs/TranslationProvider-DBZHXmzX.js.map +1 -0
  147. package/dist/cjs/Tree-qpOcsGL9.js +7985 -0
  148. package/dist/cjs/Tree-qpOcsGL9.js.map +1 -0
  149. package/dist/cjs/TreeSelect-DiIEdiAU.js +170 -0
  150. package/dist/cjs/TreeSelect-DiIEdiAU.js.map +1 -0
  151. package/dist/cjs/Typography-C3rGpmAY.js +104 -0
  152. package/dist/cjs/Typography-C3rGpmAY.js.map +1 -0
  153. package/dist/cjs/components/Accordion.js +6 -28
  154. package/dist/cjs/components/Accordion.js.map +1 -1
  155. package/dist/cjs/components/Alert.js +10 -67
  156. package/dist/cjs/components/Alert.js.map +1 -1
  157. package/dist/cjs/components/Avatar.js +32 -0
  158. package/dist/cjs/components/Avatar.js.map +1 -0
  159. package/dist/cjs/components/Badge.js +10 -62
  160. package/dist/cjs/components/Badge.js.map +1 -1
  161. package/dist/cjs/components/Button.js +11 -94
  162. package/dist/cjs/components/Button.js.map +1 -1
  163. package/dist/cjs/components/Callout.js +16 -0
  164. package/dist/cjs/components/Callout.js.map +1 -0
  165. package/dist/cjs/components/Checkbox.js +8 -24
  166. package/dist/cjs/components/Checkbox.js.map +1 -1
  167. package/dist/cjs/components/ColorPicker.js +3 -1
  168. package/dist/cjs/components/ColorPicker.js.map +1 -1
  169. package/dist/cjs/components/DataTable.js +3 -2
  170. package/dist/cjs/components/DataTable.js.map +1 -1
  171. package/dist/cjs/components/DatePicker.js +45 -0
  172. package/dist/cjs/components/DatePicker.js.map +1 -0
  173. package/dist/cjs/components/Dialog.js +9 -64
  174. package/dist/cjs/components/Dialog.js.map +1 -1
  175. package/dist/cjs/components/DropdownMenu.js +3 -1
  176. package/dist/cjs/components/DropdownMenu.js.map +1 -1
  177. package/dist/cjs/components/Empty.js +40 -0
  178. package/dist/cjs/components/Empty.js.map +1 -0
  179. package/dist/cjs/components/Input.js +8 -151
  180. package/dist/cjs/components/Input.js.map +1 -1
  181. package/dist/cjs/components/Kbd.js +30 -0
  182. package/dist/cjs/components/Kbd.js.map +1 -0
  183. package/dist/cjs/components/Label.js +43 -0
  184. package/dist/cjs/components/Label.js.map +1 -0
  185. package/dist/cjs/components/MultiEmailInput.js +20 -0
  186. package/dist/cjs/components/MultiEmailInput.js.map +1 -0
  187. package/dist/cjs/components/Pagination.js +21 -0
  188. package/dist/cjs/components/Pagination.js.map +1 -0
  189. package/dist/cjs/components/Popover.js +7 -103
  190. package/dist/cjs/components/Popover.js.map +1 -1
  191. package/dist/cjs/components/Progress.js +16 -0
  192. package/dist/cjs/components/Progress.js.map +1 -0
  193. package/dist/cjs/components/RadioGroup.js +9 -40
  194. package/dist/cjs/components/RadioGroup.js.map +1 -1
  195. package/dist/cjs/components/Select.js +33 -0
  196. package/dist/cjs/components/Select.js.map +1 -1
  197. package/dist/cjs/components/Sheet.js +9 -66
  198. package/dist/cjs/components/Sheet.js.map +1 -1
  199. package/dist/cjs/components/Slider.js +28 -0
  200. package/dist/cjs/components/Slider.js.map +1 -0
  201. package/dist/cjs/components/Spinner.js +15 -0
  202. package/dist/cjs/components/Spinner.js.map +1 -0
  203. package/dist/cjs/components/Stepper.js +13 -0
  204. package/dist/cjs/components/Stepper.js.map +1 -0
  205. package/dist/cjs/components/Switch.js +8 -20
  206. package/dist/cjs/components/Switch.js.map +1 -1
  207. package/dist/cjs/components/Tabs.js +8 -55
  208. package/dist/cjs/components/Tabs.js.map +1 -1
  209. package/dist/cjs/components/Textarea.js +8 -77
  210. package/dist/cjs/components/Textarea.js.map +1 -1
  211. package/dist/cjs/components/TimePicker.js +42 -0
  212. package/dist/cjs/components/TimePicker.js.map +1 -0
  213. package/dist/cjs/components/Toastr.js +4 -126
  214. package/dist/cjs/components/Toastr.js.map +1 -1
  215. package/dist/cjs/components/Tooltip.js +5 -85
  216. package/dist/cjs/components/Tooltip.js.map +1 -1
  217. package/dist/cjs/components/TranslationProvider.js +12 -0
  218. package/dist/cjs/components/TranslationProvider.js.map +1 -0
  219. package/dist/cjs/components/Tree.js +62 -0
  220. package/dist/cjs/components/Tree.js.map +1 -0
  221. package/dist/cjs/components/TreeSelect.js +45 -0
  222. package/dist/cjs/components/TreeSelect.js.map +1 -0
  223. package/dist/cjs/components/Typography.js +8 -98
  224. package/dist/cjs/components/Typography.js.map +1 -1
  225. package/dist/cjs/{dialog-CF2GBHOG.js → dialog-Bvyrshz3.js} +4 -2
  226. package/dist/cjs/dialog-Bvyrshz3.js.map +1 -0
  227. package/dist/cjs/formik/Button.js +45 -0
  228. package/dist/cjs/formik/Button.js.map +1 -0
  229. package/dist/cjs/formik/Checkbox.js +38 -0
  230. package/dist/cjs/formik/Checkbox.js.map +1 -0
  231. package/dist/cjs/formik/Form.js +116 -0
  232. package/dist/cjs/formik/Form.js.map +1 -0
  233. package/dist/cjs/formik/Input.js +38 -0
  234. package/dist/cjs/formik/Input.js.map +1 -0
  235. package/dist/cjs/formik/MultiEmailInput.js +31 -0
  236. package/dist/cjs/formik/MultiEmailInput.js.map +1 -0
  237. package/dist/cjs/formik/RadioGroup.js +44 -0
  238. package/dist/cjs/formik/RadioGroup.js.map +1 -0
  239. package/dist/cjs/formik/Select.js +61 -0
  240. package/dist/cjs/formik/Select.js.map +1 -0
  241. package/dist/cjs/formik/Slider.js +39 -0
  242. package/dist/cjs/formik/Slider.js.map +1 -0
  243. package/dist/cjs/formik/Switch.js +33 -0
  244. package/dist/cjs/formik/Switch.js.map +1 -0
  245. package/dist/cjs/formik/Textarea.js +34 -0
  246. package/dist/cjs/formik/Textarea.js.map +1 -0
  247. package/dist/cjs/formik/TreeSelect.js +56 -0
  248. package/dist/cjs/formik/TreeSelect.js.map +1 -0
  249. package/dist/cjs/formik/index.js +101 -0
  250. package/dist/cjs/formik/index.js.map +1 -0
  251. package/dist/cjs/index.js +332 -408
  252. package/dist/cjs/index.js.map +1 -1
  253. package/dist/cjs/primitives/Breadcrumb.js +5 -2
  254. package/dist/cjs/primitives/Breadcrumb.js.map +1 -1
  255. package/dist/cjs/primitives/Calendar.js +10 -8020
  256. package/dist/cjs/primitives/Calendar.js.map +1 -1
  257. package/dist/cjs/primitives/Carousel.js +5 -2
  258. package/dist/cjs/primitives/Carousel.js.map +1 -1
  259. package/dist/cjs/primitives/Chart.js +410 -207
  260. package/dist/cjs/primitives/Chart.js.map +1 -1
  261. package/dist/cjs/primitives/Combobox.js +783 -1096
  262. package/dist/cjs/primitives/Combobox.js.map +1 -1
  263. package/dist/cjs/primitives/Command.js +6 -2
  264. package/dist/cjs/primitives/Command.js.map +1 -1
  265. package/dist/cjs/primitives/Dialog.js +2 -1
  266. package/dist/cjs/primitives/Dialog.js.map +1 -1
  267. package/dist/cjs/primitives/Pagination.js +12 -6
  268. package/dist/cjs/primitives/Pagination.js.map +1 -1
  269. package/dist/cjs/primitives/Resizable.js +799 -778
  270. package/dist/cjs/primitives/Resizable.js.map +1 -1
  271. package/dist/cjs/primitives/ScrollArea.js +10 -10
  272. package/dist/cjs/primitives/Select.js +77 -77
  273. package/dist/cjs/primitives/Sheet.js +2 -1
  274. package/dist/cjs/primitives/Sheet.js.map +1 -1
  275. package/dist/cjs/primitives/Sidebar.js +8 -4
  276. package/dist/cjs/primitives/Sidebar.js.map +1 -1
  277. package/dist/cjs/primitives/Sonner.js +7 -42
  278. package/dist/cjs/primitives/Sonner.js.map +1 -1
  279. package/dist/cjs/primitives/Spinner.js +3 -1
  280. package/dist/cjs/primitives/Spinner.js.map +1 -1
  281. package/dist/cjs/primitives/index.js +7 -4
  282. package/dist/cjs/primitives/index.js.map +1 -1
  283. package/dist/cjs/redux-DEF7lAd1.js +240 -0
  284. package/dist/cjs/redux-DEF7lAd1.js.map +1 -0
  285. package/dist/cjs/{sheet-CkCrHmVA.js → sheet-BZHMKVH1.js} +4 -2
  286. package/dist/cjs/sheet-BZHMKVH1.js.map +1 -0
  287. package/dist/cjs/triangle-alert-ZUMRpmzW.js +43 -0
  288. package/dist/cjs/triangle-alert-ZUMRpmzW.js.map +1 -0
  289. package/dist/cjs/with-selector-DeKHbQY7.js +121 -0
  290. package/dist/cjs/with-selector-DeKHbQY7.js.map +1 -0
  291. package/dist/components/Accordion/index.d.ts +2 -0
  292. package/dist/components/Accordion.js +5 -27
  293. package/dist/components/Accordion.js.map +1 -1
  294. package/dist/components/{Alert.d.ts → Alert/Alert.d.ts} +2 -2
  295. package/dist/components/Alert/constants.d.ts +3 -0
  296. package/dist/components/Alert/index.d.ts +2 -0
  297. package/dist/components/Alert.js +11 -72
  298. package/dist/components/Alert.js.map +1 -1
  299. package/dist/components/Avatar/Avatar.d.ts +31 -0
  300. package/dist/components/Avatar/constants.d.ts +3 -0
  301. package/dist/components/Avatar/index.d.ts +2 -0
  302. package/dist/components/Avatar/utils.d.ts +1 -0
  303. package/dist/components/Avatar.js +26 -0
  304. package/dist/components/Avatar.js.map +1 -0
  305. package/dist/components/{Badge.d.ts → Badge/Badge.d.ts} +1 -1
  306. package/dist/components/Badge/constants.d.ts +25 -0
  307. package/dist/components/Badge/index.d.ts +2 -0
  308. package/dist/components/Badge.js +8 -64
  309. package/dist/components/Badge.js.map +1 -1
  310. package/dist/components/Button/constants.d.ts +5 -0
  311. package/dist/components/Button/index.d.ts +2 -0
  312. package/dist/components/Button.js +12 -99
  313. package/dist/components/Button.js.map +1 -1
  314. package/dist/components/Callout/Callout.d.ts +17 -0
  315. package/dist/components/Callout/constants.d.ts +8 -0
  316. package/dist/components/Callout/index.d.ts +2 -0
  317. package/dist/components/Callout.js +10 -0
  318. package/dist/components/Callout.js.map +1 -0
  319. package/dist/components/Checkbox/index.d.ts +2 -0
  320. package/dist/components/Checkbox.js +6 -26
  321. package/dist/components/Checkbox.js.map +1 -1
  322. package/dist/components/ColorPicker.js +5 -3
  323. package/dist/components/ColorPicker.js.map +1 -1
  324. package/dist/components/DataTable/components/EmptyState.d.ts +1 -1
  325. package/dist/components/DataTable.js +6 -5
  326. package/dist/components/DataTable.js.map +1 -1
  327. package/dist/components/DatePicker/DatePicker.d.ts +4 -0
  328. package/dist/components/DatePicker/DatePickerFooter.d.ts +12 -0
  329. package/dist/components/DatePicker/TimezoneSelect.d.ts +8 -0
  330. package/dist/components/DatePicker/constants.d.ts +17 -0
  331. package/dist/components/DatePicker/index.d.ts +2 -0
  332. package/dist/components/DatePicker/types.d.ts +56 -0
  333. package/dist/components/DatePicker/utils.d.ts +6 -0
  334. package/dist/components/DatePicker.js +39 -0
  335. package/dist/components/DatePicker.js.map +1 -0
  336. package/dist/components/{Dialog.d.ts → Dialog/Dialog.d.ts} +1 -1
  337. package/dist/components/Dialog/constants.d.ts +2 -0
  338. package/dist/components/Dialog/index.d.ts +2 -0
  339. package/dist/components/Dialog.js +7 -66
  340. package/dist/components/Dialog.js.map +1 -1
  341. package/dist/components/DropdownMenu.js +6 -4
  342. package/dist/components/DropdownMenu.js.map +1 -1
  343. package/dist/components/Empty/Empty.d.ts +27 -0
  344. package/dist/components/Empty/index.d.ts +2 -0
  345. package/dist/components/Empty.js +34 -0
  346. package/dist/components/Empty.js.map +1 -0
  347. package/dist/components/Input/constants.d.ts +17 -0
  348. package/dist/components/Input/index.d.ts +2 -0
  349. package/dist/components/Input/utils.d.ts +7 -0
  350. package/dist/components/Input.js +6 -153
  351. package/dist/components/Input.js.map +1 -1
  352. package/dist/components/Kbd/Kbd.d.ts +15 -0
  353. package/dist/components/Kbd/constants.d.ts +1 -0
  354. package/dist/components/Kbd/index.d.ts +2 -0
  355. package/dist/components/Kbd.js +24 -0
  356. package/dist/components/Kbd.js.map +1 -0
  357. package/dist/components/Label/Label.d.ts +40 -0
  358. package/dist/components/Label/constants.d.ts +1 -0
  359. package/dist/components/Label/index.d.ts +2 -0
  360. package/dist/components/Label.js +37 -0
  361. package/dist/components/Label.js.map +1 -0
  362. package/dist/components/MultiEmailInput/MultiEmailInput.d.ts +3 -0
  363. package/dist/components/MultiEmailInput/constants.d.ts +3 -0
  364. package/dist/components/MultiEmailInput/index.d.ts +2 -0
  365. package/dist/components/MultiEmailInput/types.d.ts +53 -0
  366. package/dist/components/MultiEmailInput/useMultiEmailState.d.ts +18 -0
  367. package/dist/components/MultiEmailInput/utils.d.ts +9 -0
  368. package/dist/components/MultiEmailInput.js +14 -0
  369. package/dist/components/MultiEmailInput.js.map +1 -0
  370. package/dist/components/Pagination/Pagination.d.ts +18 -0
  371. package/dist/components/Pagination/constants.d.ts +1 -0
  372. package/dist/components/Pagination/hooks/usePaginationRange.d.ts +7 -0
  373. package/dist/components/Pagination/index.d.ts +2 -0
  374. package/dist/components/Pagination/utils.d.ts +1 -0
  375. package/dist/components/Pagination.js +15 -0
  376. package/dist/components/Pagination.js.map +1 -0
  377. package/dist/components/Popover/constants.d.ts +2 -0
  378. package/dist/components/Popover/index.d.ts +2 -0
  379. package/dist/components/Popover.js +8 -104
  380. package/dist/components/Popover.js.map +1 -1
  381. package/dist/components/Progress/Progress.d.ts +12 -0
  382. package/dist/components/Progress/index.d.ts +2 -0
  383. package/dist/components/Progress.js +10 -0
  384. package/dist/components/Progress.js.map +1 -0
  385. package/dist/components/RadioGroup/index.d.ts +2 -0
  386. package/dist/components/RadioGroup.js +7 -42
  387. package/dist/components/RadioGroup.js.map +1 -1
  388. package/dist/components/Select/MultiSelectCombobox.d.ts +2 -0
  389. package/dist/components/{MultiSelectCombobox.types.d.ts → Select/MultiSelectCombobox.types.d.ts} +3 -13
  390. package/dist/components/{OptionItem.d.ts → Select/OptionItem.d.ts} +1 -1
  391. package/dist/components/Select/Select.d.ts +5 -0
  392. package/dist/components/Select/SelectCombobox.d.ts +2 -0
  393. package/dist/components/Select/SelectCombobox.types.d.ts +73 -0
  394. package/dist/components/Select/dropdown.types.d.ts +12 -0
  395. package/dist/components/Select/index.d.ts +2 -0
  396. package/dist/components/Select/types.d.ts +148 -0
  397. package/dist/components/{MultiSelect.utils.d.ts → Select/utils.d.ts} +1 -1
  398. package/dist/components/Select.js +29 -1
  399. package/dist/components/Select.js.map +1 -1
  400. package/dist/components/Sheet/constants.d.ts +3 -0
  401. package/dist/components/Sheet/index.d.ts +2 -0
  402. package/dist/components/Sheet.js +7 -68
  403. package/dist/components/Sheet.js.map +1 -1
  404. package/dist/components/Slider/Slider.d.ts +19 -0
  405. package/dist/components/Slider/index.d.ts +2 -0
  406. package/dist/components/Slider.js +22 -0
  407. package/dist/components/Slider.js.map +1 -0
  408. package/dist/components/Spinner/Spinner.d.ts +10 -0
  409. package/dist/components/Spinner/constants.d.ts +1 -0
  410. package/dist/components/Spinner/index.d.ts +2 -0
  411. package/dist/components/Spinner.js +9 -0
  412. package/dist/components/Spinner.js.map +1 -0
  413. package/dist/components/Stepper/Stepper.d.ts +18 -0
  414. package/dist/components/Stepper/index.d.ts +2 -0
  415. package/dist/components/Stepper.js +7 -0
  416. package/dist/components/Stepper.js.map +1 -0
  417. package/dist/components/Switch/index.d.ts +2 -0
  418. package/dist/components/Switch.js +6 -22
  419. package/dist/components/Switch.js.map +1 -1
  420. package/dist/components/Tabs/constants.d.ts +5 -0
  421. package/dist/components/Tabs/index.d.ts +2 -0
  422. package/dist/components/Tabs.js +6 -57
  423. package/dist/components/Tabs.js.map +1 -1
  424. package/dist/components/{Textarea.d.ts → Textarea/Textarea.d.ts} +1 -1
  425. package/dist/components/Textarea/constants.d.ts +5 -0
  426. package/dist/components/Textarea/index.d.ts +2 -0
  427. package/dist/components/Textarea/utils.d.ts +2 -0
  428. package/dist/components/Textarea.js +6 -79
  429. package/dist/components/Textarea.js.map +1 -1
  430. package/dist/components/TimePicker/TimeColumn.d.ts +11 -0
  431. package/dist/components/TimePicker/TimePicker.d.ts +4 -0
  432. package/dist/components/TimePicker/TimePickerPanel.d.ts +4 -0
  433. package/dist/components/TimePicker/constants.d.ts +3 -0
  434. package/dist/components/TimePicker/index.d.ts +3 -0
  435. package/dist/components/TimePicker/types.d.ts +61 -0
  436. package/dist/components/TimePicker/utils.d.ts +11 -0
  437. package/dist/components/TimePicker.js +35 -0
  438. package/dist/components/TimePicker.js.map +1 -0
  439. package/dist/components/{Toastr.d.ts → Toastr/Toastr.d.ts} +2 -2
  440. package/dist/components/Toastr/index.d.ts +2 -0
  441. package/dist/components/Toastr/utils.d.ts +10 -0
  442. package/dist/components/Toastr.js +2 -128
  443. package/dist/components/Toastr.js.map +1 -1
  444. package/dist/components/Tooltip/constants.d.ts +2 -0
  445. package/dist/components/Tooltip/index.d.ts +2 -0
  446. package/dist/components/Tooltip.js +7 -87
  447. package/dist/components/Tooltip.js.map +1 -1
  448. package/dist/components/TranslationProvider/TranslationProvider.d.ts +6 -0
  449. package/dist/components/TranslationProvider/i18n.d.ts +1 -0
  450. package/dist/components/TranslationProvider/index.d.ts +2 -0
  451. package/dist/components/TranslationProvider/types.d.ts +7 -0
  452. package/dist/components/TranslationProvider.js +6 -0
  453. package/dist/components/TranslationProvider.js.map +1 -0
  454. package/dist/components/Tree/Tree.d.ts +2 -0
  455. package/dist/components/Tree/TreeContext.d.ts +26 -0
  456. package/dist/components/Tree/components/SwitcherIcon.d.ts +6 -0
  457. package/dist/components/Tree/components/TreeCheckbox.d.ts +8 -0
  458. package/dist/components/Tree/components/TreeNode.d.ts +3 -0
  459. package/dist/components/Tree/constants.d.ts +3 -0
  460. package/dist/components/Tree/hooks/useTreeCheck.d.ts +18 -0
  461. package/dist/components/Tree/hooks/useTreeExpansion.d.ts +18 -0
  462. package/dist/components/Tree/hooks/useTreeSelection.d.ts +16 -0
  463. package/dist/components/Tree/index.d.ts +3 -0
  464. package/dist/components/Tree/types.d.ts +110 -0
  465. package/dist/components/Tree/utils/adapter.d.ts +10 -0
  466. package/dist/components/Tree/utils/checkCascade.d.ts +5 -0
  467. package/dist/components/Tree/utils/search.d.ts +10 -0
  468. package/dist/components/Tree.js +57 -0
  469. package/dist/components/Tree.js.map +1 -0
  470. package/dist/components/TreeSelect/TreeSelect.d.ts +3 -0
  471. package/dist/components/TreeSelect/TreeSelectTrigger.d.ts +14 -0
  472. package/dist/components/{Select.constants.d.ts → TreeSelect/constants.d.ts} +2 -2
  473. package/dist/components/TreeSelect/hooks/useTreeSelectState.d.ts +30 -0
  474. package/dist/components/TreeSelect/hooks/useTreeSelectValue.d.ts +19 -0
  475. package/dist/components/TreeSelect/index.d.ts +2 -0
  476. package/dist/components/TreeSelect/types.d.ts +49 -0
  477. package/dist/components/TreeSelect/utils/pruneTree.d.ts +2 -0
  478. package/dist/components/TreeSelect/utils/resolveFieldNames.d.ts +5 -0
  479. package/dist/components/TreeSelect.js +39 -0
  480. package/dist/components/TreeSelect.js.map +1 -0
  481. package/dist/components/{Typography.d.ts → Typography/Typography.d.ts} +2 -2
  482. package/dist/components/Typography/index.d.ts +1 -0
  483. package/dist/components/Typography.js +6 -81
  484. package/dist/components/Typography.js.map +1 -1
  485. package/dist/{dialog-Civ9r6wD.js → dialog-CrB6N_2a.js} +4 -2
  486. package/dist/dialog-CrB6N_2a.js.map +1 -0
  487. package/dist/{floating-ui.react-dom-CcGbtPEK.js → floating-ui.react-dom-D8_f_WWh.js} +2 -2
  488. package/dist/{floating-ui.react-dom-CcGbtPEK.js.map → floating-ui.react-dom-D8_f_WWh.js.map} +1 -1
  489. package/dist/formik/Button.d.ts +7 -0
  490. package/dist/formik/Button.js +43 -0
  491. package/dist/formik/Button.js.map +1 -0
  492. package/dist/formik/Checkbox.d.ts +8 -0
  493. package/dist/formik/Checkbox.js +36 -0
  494. package/dist/formik/Checkbox.js.map +1 -0
  495. package/dist/formik/Form/FormWrapper.d.ts +9 -0
  496. package/dist/formik/Form/ScrollToErrorField/index.d.ts +5 -0
  497. package/dist/formik/Form/ScrollToErrorField/utils.d.ts +2 -0
  498. package/dist/formik/Form/index.d.ts +16 -0
  499. package/dist/formik/Form.js +114 -0
  500. package/dist/formik/Form.js.map +1 -0
  501. package/dist/formik/Input.d.ts +8 -0
  502. package/dist/formik/Input.js +36 -0
  503. package/dist/formik/Input.js.map +1 -0
  504. package/dist/formik/MultiEmailInput.d.ts +7 -0
  505. package/dist/formik/MultiEmailInput.js +29 -0
  506. package/dist/formik/MultiEmailInput.js.map +1 -0
  507. package/dist/formik/RadioGroup.js +42 -0
  508. package/dist/formik/RadioGroup.js.map +1 -0
  509. package/dist/formik/Select.d.ts +7 -0
  510. package/dist/formik/Select.js +59 -0
  511. package/dist/formik/Select.js.map +1 -0
  512. package/dist/formik/Slider.d.ts +8 -0
  513. package/dist/formik/Slider.js +37 -0
  514. package/dist/formik/Slider.js.map +1 -0
  515. package/dist/formik/Switch.d.ts +10 -0
  516. package/dist/formik/Switch.js +31 -0
  517. package/dist/formik/Switch.js.map +1 -0
  518. package/dist/formik/Textarea.d.ts +8 -0
  519. package/dist/formik/Textarea.js +32 -0
  520. package/dist/formik/Textarea.js.map +1 -0
  521. package/dist/formik/TreeSelect.d.ts +7 -0
  522. package/dist/formik/TreeSelect.js +54 -0
  523. package/dist/formik/TreeSelect.js.map +1 -0
  524. package/dist/formik/index.d.ts +22 -0
  525. package/dist/formik/index.js +85 -0
  526. package/dist/formik/index.js.map +1 -0
  527. package/dist/hooks/useAsyncOptions.d.ts +4 -4
  528. package/dist/hooks/useComboboxAnchor.d.ts +6 -0
  529. package/dist/hooks/useCreatableItems.d.ts +1 -1
  530. package/dist/hooks/useMultiSelectOptions.d.ts +22 -4
  531. package/dist/hooks/useMultiSelectState.d.ts +7 -4
  532. package/dist/hooks/useSelectState.d.ts +39 -14
  533. package/dist/{index-ByEpUy7w.js → index-C3hByjk3.js} +2 -2
  534. package/dist/{index-ByEpUy7w.js.map → index-C3hByjk3.js.map} +1 -1
  535. package/dist/{index-KzJfsx-e.js → index-DLPtgEJ_.js} +2 -2
  536. package/dist/{index-KzJfsx-e.js.map → index-DLPtgEJ_.js.map} +1 -1
  537. package/dist/index.css +2 -1
  538. package/dist/index.d.ts +34 -2
  539. package/dist/index.js +294 -392
  540. package/dist/index.js.map +1 -1
  541. package/dist/primitives/Breadcrumb.js +5 -2
  542. package/dist/primitives/Breadcrumb.js.map +1 -1
  543. package/dist/primitives/Calendar.js +8 -8003
  544. package/dist/primitives/Calendar.js.map +1 -1
  545. package/dist/primitives/Carousel.js +5 -2
  546. package/dist/primitives/Carousel.js.map +1 -1
  547. package/dist/primitives/Chart.js +253 -50
  548. package/dist/primitives/Chart.js.map +1 -1
  549. package/dist/primitives/Combobox.d.ts +3 -3
  550. package/dist/primitives/Combobox.js +787 -1100
  551. package/dist/primitives/Combobox.js.map +1 -1
  552. package/dist/primitives/Command.js +6 -2
  553. package/dist/primitives/Command.js.map +1 -1
  554. package/dist/primitives/ContextMenu.js +3 -3
  555. package/dist/primitives/Dialog.js +2 -1
  556. package/dist/primitives/Dialog.js.map +1 -1
  557. package/dist/primitives/DropdownMenu.js +3 -3
  558. package/dist/primitives/HoverCard.js +2 -2
  559. package/dist/primitives/Menubar.js +3 -3
  560. package/dist/primitives/Pagination.js +12 -6
  561. package/dist/primitives/Pagination.js.map +1 -1
  562. package/dist/primitives/Popover.js +2 -2
  563. package/dist/primitives/Resizable.js +799 -778
  564. package/dist/primitives/Resizable.js.map +1 -1
  565. package/dist/primitives/Select.js +4 -4
  566. package/dist/primitives/Sheet.js +2 -1
  567. package/dist/primitives/Sheet.js.map +1 -1
  568. package/dist/primitives/Sidebar.js +11 -7
  569. package/dist/primitives/Sidebar.js.map +1 -1
  570. package/dist/primitives/Sonner.js +5 -40
  571. package/dist/primitives/Sonner.js.map +1 -1
  572. package/dist/primitives/Spinner.js +3 -1
  573. package/dist/primitives/Spinner.js.map +1 -1
  574. package/dist/primitives/Tooltip.js +3 -3
  575. package/dist/primitives/index.js +11 -8
  576. package/dist/primitives/index.js.map +1 -1
  577. package/dist/redux-BKH6DnBB.js +235 -0
  578. package/dist/redux-BKH6DnBB.js.map +1 -0
  579. package/dist/shadcn/components/combobox.d.ts +1 -1
  580. package/dist/shadcn/components/command.d.ts +1 -1
  581. package/dist/shadcn/components/pagination.d.ts +2 -2
  582. package/dist/shadcn/components/typography.d.ts +4 -4
  583. package/dist/{sheet-COcn22fC.js → sheet-C763FqIh.js} +4 -2
  584. package/dist/sheet-C763FqIh.js.map +1 -0
  585. package/dist/{tooltip-DzjIJacP.js → tooltip-XkHLgxlU.js} +2 -2
  586. package/dist/{tooltip-DzjIJacP.js.map → tooltip-XkHLgxlU.js.map} +1 -1
  587. package/dist/translations/index.d.ts +66 -0
  588. package/dist/triangle-alert-PXnNWQy_.js +40 -0
  589. package/dist/triangle-alert-PXnNWQy_.js.map +1 -0
  590. package/dist/utils/dayjs/index.d.ts +4 -0
  591. package/dist/utils/dayjs/timezonePlugin.d.ts +3 -0
  592. package/dist/with-selector-Dv0G_V_o.js +115 -0
  593. package/dist/with-selector-Dv0G_V_o.js.map +1 -0
  594. package/package.json +54 -36
  595. package/dist/ColorPicker-BPvxDGDM.js +0 -276
  596. package/dist/ColorPicker-BPvxDGDM.js.map +0 -1
  597. package/dist/cjs/ColorPicker-DN8aynGh.js.map +0 -1
  598. package/dist/cjs/components/MultiSelect.js +0 -13
  599. package/dist/cjs/components/MultiSelect.js.map +0 -1
  600. package/dist/cjs/components/MultiSelectCombobox.js +0 -3
  601. package/dist/cjs/components/MultiSelectCombobox.js.map +0 -1
  602. package/dist/cjs/components/MultiSelectDropdown.js +0 -37
  603. package/dist/cjs/components/MultiSelectDropdown.js.map +0 -1
  604. package/dist/cjs/components/OptionItem.js +0 -34
  605. package/dist/cjs/components/OptionItem.js.map +0 -1
  606. package/dist/cjs/components/SelectFieldWrapper.js.map +0 -1
  607. package/dist/cjs/components/SelectOptions.js +0 -43
  608. package/dist/cjs/components/SelectOptions.js.map +0 -1
  609. package/dist/cjs/components/SelectTriggerContent.js +0 -43
  610. package/dist/cjs/components/SelectTriggerContent.js.map +0 -1
  611. package/dist/cjs/components/shared.js +0 -8
  612. package/dist/cjs/components/shared.js.map +0 -1
  613. package/dist/cjs/dialog-CF2GBHOG.js.map +0 -1
  614. package/dist/cjs/sheet-CkCrHmVA.js.map +0 -1
  615. package/dist/cjs/useCreatableItems-BTHtd7uo.js +0 -100
  616. package/dist/cjs/useCreatableItems-BTHtd7uo.js.map +0 -1
  617. package/dist/cjs/with-selector-u4xTSzCv.js +0 -457
  618. package/dist/cjs/with-selector-u4xTSzCv.js.map +0 -1
  619. package/dist/components/MultiSelect.d.ts +0 -4
  620. package/dist/components/MultiSelect.js +0 -4
  621. package/dist/components/MultiSelect.js.map +0 -1
  622. package/dist/components/MultiSelect.types.d.ts +0 -121
  623. package/dist/components/MultiSelectCombobox.d.ts +0 -3
  624. package/dist/components/MultiSelectCombobox.js +0 -2
  625. package/dist/components/MultiSelectCombobox.js.map +0 -1
  626. package/dist/components/MultiSelectDropdown.js +0 -35
  627. package/dist/components/MultiSelectDropdown.js.map +0 -1
  628. package/dist/components/OptionItem.js +0 -32
  629. package/dist/components/OptionItem.js.map +0 -1
  630. package/dist/components/Select.d.ts +0 -4
  631. package/dist/components/Select.types.d.ts +0 -58
  632. package/dist/components/SelectFieldWrapper.js.map +0 -1
  633. package/dist/components/SelectOptions.d.ts +0 -2
  634. package/dist/components/SelectOptions.js +0 -41
  635. package/dist/components/SelectOptions.js.map +0 -1
  636. package/dist/components/SelectTriggerContent.d.ts +0 -18
  637. package/dist/components/SelectTriggerContent.js +0 -41
  638. package/dist/components/SelectTriggerContent.js.map +0 -1
  639. package/dist/components/shared.js +0 -6
  640. package/dist/components/shared.js.map +0 -1
  641. package/dist/components/shared.types.d.ts +0 -16
  642. package/dist/dialog-Civ9r6wD.js.map +0 -1
  643. package/dist/sheet-COcn22fC.js.map +0 -1
  644. package/dist/useCreatableItems-B0seQA1_.js +0 -89
  645. package/dist/useCreatableItems-B0seQA1_.js.map +0 -1
  646. package/dist/with-selector--fY1NrB9.js +0 -448
  647. package/dist/with-selector--fY1NrB9.js.map +0 -1
  648. /package/dist/components/{Accordion.d.ts → Accordion/Accordion.d.ts} +0 -0
  649. /package/dist/components/{Button.d.ts → Button/Button.d.ts} +0 -0
  650. /package/dist/components/{Checkbox.d.ts → Checkbox/Checkbox.d.ts} +0 -0
  651. /package/dist/components/{Input.d.ts → Input/Input.d.ts} +0 -0
  652. /package/dist/components/{Popover.d.ts → Popover/Popover.d.ts} +0 -0
  653. /package/dist/components/{RadioGroup.d.ts → RadioGroup/RadioGroup.d.ts} +0 -0
  654. /package/dist/components/{MultiSelectDropdown.d.ts → Select/MultiSelectDropdown.d.ts} +0 -0
  655. /package/dist/components/{SelectFieldWrapper.d.ts → Select/SelectFieldWrapper.d.ts} +0 -0
  656. /package/dist/components/{MultiSelect.constants.d.ts → Select/constants.d.ts} +0 -0
  657. /package/dist/components/{Sheet.d.ts → Sheet/Sheet.d.ts} +0 -0
  658. /package/dist/components/{Switch.d.ts → Switch/Switch.d.ts} +0 -0
  659. /package/dist/components/{Tabs.d.ts → Tabs/Tabs.d.ts} +0 -0
  660. /package/dist/components/{Tooltip.d.ts → Tooltip/Tooltip.d.ts} +0 -0
@@ -6,17 +6,17 @@ function gt(e, t) {
6
6
  const n = getComputedStyle(e), o = parseFloat(n.fontSize);
7
7
  return t * o;
8
8
  }
9
- function St(e, t) {
9
+ function yt(e, t) {
10
10
  const n = getComputedStyle(e.ownerDocument.body), o = parseFloat(n.fontSize);
11
11
  return t * o;
12
12
  }
13
- function yt(e) {
13
+ function St(e) {
14
14
  return e / 100 * window.innerHeight;
15
15
  }
16
16
  function vt(e) {
17
17
  return e / 100 * window.innerWidth;
18
18
  }
19
- function zt(e) {
19
+ function bt(e) {
20
20
  switch (typeof e) {
21
21
  case "number":
22
22
  return [e, "px"];
@@ -26,13 +26,13 @@ function zt(e) {
26
26
  }
27
27
  }
28
28
  }
29
- function te({
29
+ function ie({
30
30
  groupSize: e,
31
31
  panelElement: t,
32
32
  styleProp: n
33
33
  }) {
34
34
  let o;
35
- const [i, s] = zt(n);
35
+ const [i, s] = bt(n);
36
36
  switch (s) {
37
37
  case "%": {
38
38
  o = i / 100 * e;
@@ -43,7 +43,7 @@ function te({
43
43
  break;
44
44
  }
45
45
  case "rem": {
46
- o = St(t, i);
46
+ o = yt(t, i);
47
47
  break;
48
48
  }
49
49
  case "em": {
@@ -51,7 +51,7 @@ function te({
51
51
  break;
52
52
  }
53
53
  case "vh": {
54
- o = yt(i);
54
+ o = St(i);
55
55
  break;
56
56
  }
57
57
  case "vw": {
@@ -61,17 +61,17 @@ function te({
61
61
  }
62
62
  return o;
63
63
  }
64
- function D(e) {
64
+ function T(e) {
65
65
  return parseFloat(e.toFixed(3));
66
66
  }
67
- function Q({
67
+ function ne({
68
68
  group: e
69
69
  }) {
70
70
  const { orientation: t, panels: n } = e;
71
71
  return n.reduce((o, i) => (o += t === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, o), 0);
72
72
  }
73
- function ge(e) {
74
- const { panels: t } = e, n = Q({ group: e });
73
+ function ve(e) {
74
+ const { panels: t } = e, n = ne({ group: e });
75
75
  return n === 0 ? t.map((o) => ({
76
76
  groupResizeBehavior: o.panelConstraints.groupResizeBehavior,
77
77
  collapsedSize: 0,
@@ -85,39 +85,39 @@ function ge(e) {
85
85
  const { element: i, panelConstraints: s } = o;
86
86
  let l = 0;
87
87
  if (s.collapsedSize !== void 0) {
88
- const c = te({
88
+ const f = ie({
89
89
  groupSize: n,
90
90
  panelElement: i,
91
91
  styleProp: s.collapsedSize
92
92
  });
93
- l = D(c / n * 100);
93
+ l = T(f / n * 100);
94
94
  }
95
95
  let r;
96
96
  if (s.defaultSize !== void 0) {
97
- const c = te({
97
+ const f = ie({
98
98
  groupSize: n,
99
99
  panelElement: i,
100
100
  styleProp: s.defaultSize
101
101
  });
102
- r = D(c / n * 100);
102
+ r = T(f / n * 100);
103
103
  }
104
104
  let a = 0;
105
105
  if (s.minSize !== void 0) {
106
- const c = te({
106
+ const f = ie({
107
107
  groupSize: n,
108
108
  panelElement: i,
109
109
  styleProp: s.minSize
110
110
  });
111
- a = D(c / n * 100);
111
+ a = T(f / n * 100);
112
112
  }
113
- let u = 100;
113
+ let c = 100;
114
114
  if (s.maxSize !== void 0) {
115
- const c = te({
115
+ const f = ie({
116
116
  groupSize: n,
117
117
  panelElement: i,
118
118
  styleProp: s.maxSize
119
119
  });
120
- u = D(c / n * 100);
120
+ c = T(f / n * 100);
121
121
  }
122
122
  return {
123
123
  groupResizeBehavior: s.groupResizeBehavior,
@@ -126,32 +126,32 @@ function ge(e) {
126
126
  defaultSize: r,
127
127
  disabled: s.disabled,
128
128
  minSize: a,
129
- maxSize: u,
129
+ maxSize: c,
130
130
  panelId: o.id
131
131
  };
132
132
  });
133
133
  }
134
- function L(e, t = "Assertion error") {
134
+ function C(e, t = "Assertion error") {
135
135
  if (!e)
136
136
  throw Error(t);
137
137
  }
138
- function Se(e, t) {
138
+ function be(e, t) {
139
139
  return Array.from(t).sort(
140
- e === "horizontal" ? xt : bt
140
+ e === "horizontal" ? zt : xt
141
141
  );
142
142
  }
143
- function xt(e, t) {
143
+ function zt(e, t) {
144
144
  const n = e.element.offsetLeft - t.element.offsetLeft;
145
145
  return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
146
146
  }
147
- function bt(e, t) {
147
+ function xt(e, t) {
148
148
  const n = e.element.offsetTop - t.element.offsetTop;
149
149
  return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
150
150
  }
151
- function Xe(e) {
151
+ function qe(e) {
152
152
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
153
153
  }
154
- function qe(e, t) {
154
+ function Ye(e, t) {
155
155
  return {
156
156
  x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(
157
157
  Math.abs(e.x - t.left),
@@ -174,134 +174,134 @@ function wt({
174
174
  };
175
175
  let i, s = Number.MAX_VALUE;
176
176
  for (const l of t) {
177
- const { x: r, y: a } = qe(o, l), u = e === "horizontal" ? r : a;
178
- u < s && (s = u, i = l);
177
+ const { x: r, y: a } = Ye(o, l), c = e === "horizontal" ? r : a;
178
+ c < s && (s = c, i = l);
179
179
  }
180
- return L(i, "No rect found"), i;
180
+ return C(i, "No rect found"), i;
181
181
  }
182
- let ue;
182
+ let fe;
183
183
  function Pt() {
184
- return ue === void 0 && (typeof matchMedia == "function" ? ue = !!matchMedia("(pointer:coarse)").matches : ue = false), ue;
184
+ return fe === void 0 && (typeof matchMedia == "function" ? fe = !!matchMedia("(pointer:coarse)").matches : fe = false), fe;
185
185
  }
186
- function Ye(e) {
187
- const { element: t, orientation: n, panels: o, separators: i } = e, s = Se(
186
+ function Je(e) {
187
+ const { element: t, orientation: n, panels: o, separators: i } = e, s = be(
188
188
  n,
189
- Array.from(t.children).filter(Xe).map((b) => ({ element: b }))
190
- ).map(({ element: b }) => b), l = [];
191
- let r = false, a = false, u = -1, c = -1, m = 0, d, v = [];
189
+ Array.from(t.children).filter(qe).map((x) => ({ element: x }))
190
+ ).map(({ element: x }) => x), l = [];
191
+ let r = false, a = false, c = -1, f = -1, g = 0, d, b = [];
192
192
  {
193
- let b = -1;
194
- for (const f of s)
195
- f.hasAttribute("data-panel") && (b++, f.ariaDisabled === null && (m++, u === -1 && (u = b), c = b));
193
+ let x = -1;
194
+ for (const u of s)
195
+ u.hasAttribute("data-panel") && (x++, u.hasAttribute("data-disabled") || (g++, c === -1 && (c = x), f = x));
196
196
  }
197
- if (m > 1) {
198
- let b = -1;
199
- for (const f of s)
200
- if (f.hasAttribute("data-panel")) {
201
- b++;
202
- const h = o.find(
203
- (g) => g.element === f
197
+ if (g > 1) {
198
+ let x = -1;
199
+ for (const u of s)
200
+ if (u.hasAttribute("data-panel")) {
201
+ x++;
202
+ const p = o.find(
203
+ (m) => m.element === u
204
204
  );
205
- if (h) {
205
+ if (p) {
206
206
  if (d) {
207
- const g = d.element.getBoundingClientRect(), y = f.getBoundingClientRect();
208
- let z;
207
+ const m = d.element.getBoundingClientRect(), S = u.getBoundingClientRect();
208
+ let v;
209
209
  if (a) {
210
- const S = n === "horizontal" ? new DOMRect(
211
- g.right,
212
- g.top,
210
+ const y = n === "horizontal" ? new DOMRect(
211
+ m.right,
212
+ m.top,
213
213
  0,
214
- g.height
214
+ m.height
215
215
  ) : new DOMRect(
216
- g.left,
217
- g.bottom,
218
- g.width,
216
+ m.left,
217
+ m.bottom,
218
+ m.width,
219
219
  0
220
- ), p = n === "horizontal" ? new DOMRect(y.left, y.top, 0, y.height) : new DOMRect(y.left, y.top, y.width, 0);
221
- switch (v.length) {
220
+ ), h = n === "horizontal" ? new DOMRect(S.left, S.top, 0, S.height) : new DOMRect(S.left, S.top, S.width, 0);
221
+ switch (b.length) {
222
222
  case 0: {
223
- z = [
224
- S,
225
- p
223
+ v = [
224
+ y,
225
+ h
226
226
  ];
227
227
  break;
228
228
  }
229
229
  case 1: {
230
- const P = v[0], M = wt({
230
+ const w = b[0], M = wt({
231
231
  orientation: n,
232
- rects: [g, y],
233
- targetRect: P.element.getBoundingClientRect()
232
+ rects: [m, S],
233
+ targetRect: w.element.getBoundingClientRect()
234
234
  });
235
- z = [
236
- P,
237
- M === g ? p : S
235
+ v = [
236
+ w,
237
+ M === m ? h : y
238
238
  ];
239
239
  break;
240
240
  }
241
241
  default: {
242
- z = v;
242
+ v = b;
243
243
  break;
244
244
  }
245
245
  }
246
246
  } else
247
- v.length ? z = v : z = [
247
+ b.length ? v = b : v = [
248
248
  n === "horizontal" ? new DOMRect(
249
- g.right,
250
- y.top,
251
- y.left - g.right,
252
- y.height
249
+ m.right,
250
+ S.top,
251
+ S.left - m.right,
252
+ S.height
253
253
  ) : new DOMRect(
254
- y.left,
255
- g.bottom,
256
- y.width,
257
- y.top - g.bottom
254
+ S.left,
255
+ m.bottom,
256
+ S.width,
257
+ S.top - m.bottom
258
258
  )
259
259
  ];
260
- for (const S of z) {
261
- let p = "width" in S ? S : S.element.getBoundingClientRect();
262
- const P = Pt() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
263
- if (p.width < P) {
264
- const C = P - p.width;
265
- p = new DOMRect(
266
- p.x - C / 2,
267
- p.y,
268
- p.width + C,
269
- p.height
260
+ for (const y of v) {
261
+ let h = "width" in y ? y : y.element.getBoundingClientRect();
262
+ const w = Pt() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
263
+ if (h.width < w) {
264
+ const P = w - h.width;
265
+ h = new DOMRect(
266
+ h.x - P / 2,
267
+ h.y,
268
+ h.width + P,
269
+ h.height
270
270
  );
271
271
  }
272
- if (p.height < P) {
273
- const C = P - p.height;
274
- p = new DOMRect(
275
- p.x,
276
- p.y - C / 2,
277
- p.width,
278
- p.height + C
272
+ if (h.height < w) {
273
+ const P = w - h.height;
274
+ h = new DOMRect(
275
+ h.x,
276
+ h.y - P / 2,
277
+ h.width,
278
+ h.height + P
279
279
  );
280
280
  }
281
- const M = b <= u || b > c;
281
+ const M = x <= c || x > f;
282
282
  !r && !M && l.push({
283
283
  group: e,
284
- groupSize: Q({ group: e }),
285
- panels: [d, h],
286
- separator: "width" in S ? void 0 : S,
287
- rect: p
284
+ groupSize: ne({ group: e }),
285
+ panels: [d, p],
286
+ separator: "width" in y ? void 0 : y,
287
+ rect: h
288
288
  }), r = false;
289
289
  }
290
290
  }
291
- a = false, d = h, v = [];
291
+ a = false, d = p, b = [];
292
292
  }
293
- } else if (f.hasAttribute("data-separator")) {
294
- f.ariaDisabled !== null && (r = true);
295
- const h = i.find(
296
- (g) => g.element === f
293
+ } else if (u.hasAttribute("data-separator")) {
294
+ u.ariaDisabled !== null && (r = true);
295
+ const p = i.find(
296
+ (m) => m.element === u
297
297
  );
298
- h ? v.push(h) : (d = void 0, v = []);
298
+ p ? b.push(p) : (d = void 0, b = []);
299
299
  } else
300
300
  a = true;
301
301
  }
302
302
  return l;
303
303
  }
304
- class Je {
304
+ class Ze {
305
305
  #e = {};
306
306
  addListener(t, n) {
307
307
  const o = this.#e[t];
@@ -321,8 +321,8 @@ class Je {
321
321
  const a = l[r];
322
322
  try {
323
323
  a.call(null, n);
324
- } catch (u) {
325
- s === null && (i = true, s = u);
324
+ } catch (c) {
325
+ s === null && (i = true, s = c);
326
326
  }
327
327
  }
328
328
  if (i)
@@ -340,34 +340,34 @@ class Je {
340
340
  }
341
341
  }
342
342
  }
343
- let A = /* @__PURE__ */ new Map();
344
- const Ze = new Je();
343
+ let F = /* @__PURE__ */ new Map();
344
+ const Qe = new Ze();
345
345
  function Lt(e) {
346
- A = new Map(A), A.delete(e);
346
+ F = new Map(F), F.delete(e);
347
347
  }
348
- function Me(e, t) {
349
- for (const [n] of A)
348
+ function ke(e, t) {
349
+ for (const [n] of F)
350
350
  if (n.id === e)
351
351
  return n;
352
352
  }
353
- function $(e, t) {
354
- for (const [n, o] of A)
353
+ function H(e, t) {
354
+ for (const [n, o] of F)
355
355
  if (n.id === e)
356
356
  return o;
357
357
  if (t)
358
358
  throw Error(`Could not find data for Group with id ${e}`);
359
359
  }
360
- function U() {
361
- return A;
360
+ function X() {
361
+ return F;
362
362
  }
363
- function ye(e, t) {
364
- return Ze.addListener("groupChange", (n) => {
363
+ function ze(e, t) {
364
+ return Qe.addListener("groupChange", (n) => {
365
365
  n.group.id === e && t(n);
366
366
  });
367
367
  }
368
- function _(e, t) {
369
- const n = A.get(e);
370
- A = new Map(A), A.set(e, t), Ze.emit("groupChange", {
368
+ function $(e, t) {
369
+ const n = F.get(e);
370
+ F = new Map(F), F.set(e, t), Qe.emit("groupChange", {
371
371
  group: e,
372
372
  prev: n,
373
373
  next: t
@@ -379,7 +379,7 @@ function Ct(e, t, n) {
379
379
  y: 1 / 0
380
380
  };
381
381
  for (const s of t) {
382
- const l = qe(n, s.rect);
382
+ const l = Ye(n, s.rect);
383
383
  switch (e) {
384
384
  case "horizontal": {
385
385
  l.x <= i.x && (o = s, i = l);
@@ -402,19 +402,19 @@ function Rt(e) {
402
402
  function Mt(e, t) {
403
403
  if (e === t) throw new Error("Cannot compare node with itself");
404
404
  const n = {
405
- a: ke(e),
406
- b: ke(t)
405
+ a: Te(e),
406
+ b: Te(t)
407
407
  };
408
408
  let o;
409
409
  for (; n.a.at(-1) === n.b.at(-1); )
410
410
  o = n.a.pop(), n.b.pop();
411
- L(
411
+ C(
412
412
  o,
413
413
  "Stacking order can only be calculated for elements with a common ancestor"
414
414
  );
415
415
  const i = {
416
- a: Ie(Ee(n.a)),
417
- b: Ie(Ee(n.b))
416
+ a: De(Ie(n.a)),
417
+ b: De(Ie(n.b))
418
418
  };
419
419
  if (i.a === i.b) {
420
420
  const s = o.childNodes, l = {
@@ -431,32 +431,32 @@ function Mt(e, t) {
431
431
  return Math.sign(i.a - i.b);
432
432
  }
433
433
  const Et = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
434
- function It(e) {
435
- const t = getComputedStyle(Qe(e) ?? e).display;
434
+ function kt(e) {
435
+ const t = getComputedStyle(et(e) ?? e).display;
436
436
  return t === "flex" || t === "inline-flex";
437
437
  }
438
- function kt(e) {
438
+ function It(e) {
439
439
  const t = getComputedStyle(e);
440
- return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || It(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Et.test(t.willChange) || t.webkitOverflowScrolling === "touch");
440
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || kt(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Et.test(t.willChange) || t.webkitOverflowScrolling === "touch");
441
441
  }
442
- function Ee(e) {
442
+ function Ie(e) {
443
443
  let t = e.length;
444
444
  for (; t--; ) {
445
445
  const n = e[t];
446
- if (L(n, "Missing node"), kt(n)) return n;
446
+ if (C(n, "Missing node"), It(n)) return n;
447
447
  }
448
448
  return null;
449
449
  }
450
- function Ie(e) {
450
+ function De(e) {
451
451
  return e && Number(getComputedStyle(e).zIndex) || 0;
452
452
  }
453
- function ke(e) {
453
+ function Te(e) {
454
454
  const t = [];
455
455
  for (; e; )
456
- t.push(e), e = Qe(e);
456
+ t.push(e), e = et(e);
457
457
  return t;
458
458
  }
459
- function Qe(e) {
459
+ function et(e) {
460
460
  const { parentNode: t } = e;
461
461
  return Rt(t) ? t.host : t;
462
462
  }
@@ -468,7 +468,7 @@ function Tt({
468
468
  hitRegion: t,
469
469
  pointerEventTarget: n
470
470
  }) {
471
- if (!Xe(n) || n.contains(e) || e.contains(n))
471
+ if (!qe(n) || n.contains(e) || e.contains(n))
472
472
  return true;
473
473
  if (Mt(n, e) > 0) {
474
474
  let o = n;
@@ -482,12 +482,12 @@ function Tt({
482
482
  }
483
483
  return true;
484
484
  }
485
- function ve(e, t) {
485
+ function xe(e, t) {
486
486
  const n = [];
487
487
  return t.forEach((o, i) => {
488
488
  if (i.disabled)
489
489
  return;
490
- const s = Ye(i), l = Ct(i.orientation, s, {
490
+ const s = Je(i), l = Ct(i.orientation, s, {
491
491
  x: e.clientX,
492
492
  y: e.clientY
493
493
  });
@@ -506,13 +506,13 @@ function Ot(e, t) {
506
506
  return false;
507
507
  return true;
508
508
  }
509
- function k(e, t, n = 0) {
510
- return Math.abs(D(e) - D(t)) <= n;
509
+ function D(e, t, n = 0) {
510
+ return Math.abs(T(e) - T(t)) <= n;
511
511
  }
512
- function G(e, t) {
513
- return k(e, t) ? 0 : e > t ? 1 : -1;
512
+ function A(e, t) {
513
+ return D(e, t) ? 0 : e > t ? 1 : -1;
514
514
  }
515
- function Y({
515
+ function Z({
516
516
  overrideDisabledPanels: e,
517
517
  panelConstraints: t,
518
518
  prevSize: n,
@@ -527,15 +527,15 @@ function Y({
527
527
  } = t;
528
528
  if (l && !e)
529
529
  return n;
530
- if (G(o, a) < 0)
530
+ if (A(o, a) < 0)
531
531
  if (s) {
532
- const u = (i + a) / 2;
533
- G(o, u) < 0 ? o = i : o = a;
532
+ const c = (i + a) / 2;
533
+ A(o, c) < 0 ? o = i : o = a;
534
534
  } else
535
535
  o = a;
536
- return o = Math.min(r, o), o = D(o), o;
536
+ return o = Math.min(r, o), o = T(o), o;
537
537
  }
538
- function se({
538
+ function le({
539
539
  delta: e,
540
540
  initialLayout: t,
541
541
  panelConstraints: n,
@@ -543,171 +543,171 @@ function se({
543
543
  prevLayout: i,
544
544
  trigger: s
545
545
  }) {
546
- if (k(e, 0))
546
+ if (D(e, 0))
547
547
  return t;
548
- const l = s === "imperative-api", r = Object.values(t), a = Object.values(i), u = [...r], [c, m] = o;
549
- L(c != null, "Invalid first pivot index"), L(m != null, "Invalid second pivot index");
548
+ const l = s === "imperative-api", r = Object.values(t), a = Object.values(i), c = [...r], [f, g] = o;
549
+ C(f != null, "Invalid first pivot index"), C(g != null, "Invalid second pivot index");
550
550
  let d = 0;
551
551
  switch (s) {
552
552
  case "keyboard": {
553
553
  {
554
- const f = e < 0 ? m : c, h = n[f];
555
- L(
556
- h,
557
- `Panel constraints not found for index ${f}`
554
+ const u = e < 0 ? g : f, p = n[u];
555
+ C(
556
+ p,
557
+ `Panel constraints not found for index ${u}`
558
558
  );
559
559
  const {
560
- collapsedSize: g = 0,
561
- collapsible: y,
562
- minSize: z = 0
563
- } = h;
564
- if (y) {
565
- const S = r[f];
566
- if (L(
567
- S != null,
568
- `Previous layout not found for panel index ${f}`
569
- ), k(S, g)) {
570
- const p = z - S;
571
- G(p, Math.abs(e)) > 0 && (e = e < 0 ? 0 - p : p);
560
+ collapsedSize: m = 0,
561
+ collapsible: S,
562
+ minSize: v = 0
563
+ } = p;
564
+ if (S) {
565
+ const y = r[u];
566
+ if (C(
567
+ y != null,
568
+ `Previous layout not found for panel index ${u}`
569
+ ), D(y, m)) {
570
+ const h = v - y;
571
+ A(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
572
572
  }
573
573
  }
574
574
  }
575
575
  {
576
- const f = e < 0 ? c : m, h = n[f];
577
- L(
578
- h,
579
- `No panel constraints found for index ${f}`
576
+ const u = e < 0 ? f : g, p = n[u];
577
+ C(
578
+ p,
579
+ `No panel constraints found for index ${u}`
580
580
  );
581
581
  const {
582
- collapsedSize: g = 0,
583
- collapsible: y,
584
- minSize: z = 0
585
- } = h;
586
- if (y) {
587
- const S = r[f];
588
- if (L(
589
- S != null,
590
- `Previous layout not found for panel index ${f}`
591
- ), k(S, z)) {
592
- const p = S - g;
593
- G(p, Math.abs(e)) > 0 && (e = e < 0 ? 0 - p : p);
582
+ collapsedSize: m = 0,
583
+ collapsible: S,
584
+ minSize: v = 0
585
+ } = p;
586
+ if (S) {
587
+ const y = r[u];
588
+ if (C(
589
+ y != null,
590
+ `Previous layout not found for panel index ${u}`
591
+ ), D(y, v)) {
592
+ const h = y - m;
593
+ A(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
594
594
  }
595
595
  }
596
596
  }
597
597
  break;
598
598
  }
599
599
  default: {
600
- const f = e < 0 ? m : c, h = n[f];
601
- L(
602
- h,
603
- `Panel constraints not found for index ${f}`
600
+ const u = e < 0 ? g : f, p = n[u];
601
+ C(
602
+ p,
603
+ `Panel constraints not found for index ${u}`
604
604
  );
605
- const g = r[f], { collapsible: y, collapsedSize: z, minSize: S } = h;
606
- if (y && G(g, S) < 0)
605
+ const m = r[u], { collapsible: S, collapsedSize: v, minSize: y } = p;
606
+ if (S && A(m, y) < 0)
607
607
  if (e > 0) {
608
- const p = S - z, P = p / 2, M = g + e;
609
- G(M, S) < 0 && (e = G(e, P) <= 0 ? 0 : p);
608
+ const h = y - v, w = h / 2, M = m + e;
609
+ A(M, y) < 0 && (e = A(e, w) <= 0 ? 0 : h);
610
610
  } else {
611
- const p = S - z, P = 100 - p / 2, M = g - e;
612
- G(M, S) < 0 && (e = G(100 + e, P) > 0 ? 0 : -p);
611
+ const h = y - v, w = 100 - h / 2, M = m - e;
612
+ A(M, y) < 0 && (e = A(100 + e, w) > 0 ? 0 : -h);
613
613
  }
614
614
  break;
615
615
  }
616
616
  }
617
617
  {
618
- const f = e < 0 ? 1 : -1;
619
- let h = e < 0 ? m : c, g = 0;
618
+ const u = e < 0 ? 1 : -1;
619
+ let p = e < 0 ? g : f, m = 0;
620
620
  for (; ; ) {
621
- const z = r[h];
622
- L(
623
- z != null,
624
- `Previous layout not found for panel index ${h}`
621
+ const v = r[p];
622
+ C(
623
+ v != null,
624
+ `Previous layout not found for panel index ${p}`
625
625
  );
626
- const p = Y({
626
+ const h = Z({
627
627
  overrideDisabledPanels: l,
628
- panelConstraints: n[h],
629
- prevSize: z,
628
+ panelConstraints: n[p],
629
+ prevSize: v,
630
630
  size: 100
631
- }) - z;
632
- if (g += p, h += f, h < 0 || h >= n.length)
631
+ }) - v;
632
+ if (m += h, p += u, p < 0 || p >= n.length)
633
633
  break;
634
634
  }
635
- const y = Math.min(Math.abs(e), Math.abs(g));
636
- e = e < 0 ? 0 - y : y;
635
+ const S = Math.min(Math.abs(e), Math.abs(m));
636
+ e = e < 0 ? 0 - S : S;
637
637
  }
638
638
  {
639
- let h = e < 0 ? c : m;
640
- for (; h >= 0 && h < n.length; ) {
641
- const g = Math.abs(e) - Math.abs(d), y = r[h];
642
- L(
643
- y != null,
644
- `Previous layout not found for panel index ${h}`
639
+ let p = e < 0 ? f : g;
640
+ for (; p >= 0 && p < n.length; ) {
641
+ const m = Math.abs(e) - Math.abs(d), S = r[p];
642
+ C(
643
+ S != null,
644
+ `Previous layout not found for panel index ${p}`
645
645
  );
646
- const z = y - g, S = Y({
646
+ const v = S - m, y = Z({
647
647
  overrideDisabledPanels: l,
648
- panelConstraints: n[h],
649
- prevSize: y,
650
- size: z
648
+ panelConstraints: n[p],
649
+ prevSize: S,
650
+ size: v
651
651
  });
652
- if (!k(y, S) && (d += y - S, u[h] = S, d.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
652
+ if (!D(S, y) && (d += S - y, c[p] = y, d.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
653
653
  numeric: true
654
654
  }) >= 0))
655
655
  break;
656
- e < 0 ? h-- : h++;
656
+ e < 0 ? p-- : p++;
657
657
  }
658
658
  }
659
- if (Ot(a, u))
659
+ if (Ot(a, c))
660
660
  return i;
661
661
  {
662
- const f = e < 0 ? m : c, h = r[f];
663
- L(
664
- h != null,
665
- `Previous layout not found for panel index ${f}`
662
+ const u = e < 0 ? g : f, p = r[u];
663
+ C(
664
+ p != null,
665
+ `Previous layout not found for panel index ${u}`
666
666
  );
667
- const g = h + d, y = Y({
667
+ const m = p + d, S = Z({
668
668
  overrideDisabledPanels: l,
669
- panelConstraints: n[f],
670
- prevSize: h,
671
- size: g
669
+ panelConstraints: n[u],
670
+ prevSize: p,
671
+ size: m
672
672
  });
673
- if (u[f] = y, !k(y, g)) {
674
- let z = g - y, p = e < 0 ? m : c;
675
- for (; p >= 0 && p < n.length; ) {
676
- const P = u[p];
677
- L(
678
- P != null,
679
- `Previous layout not found for panel index ${p}`
673
+ if (c[u] = S, !D(S, m)) {
674
+ let v = m - S, h = e < 0 ? g : f;
675
+ for (; h >= 0 && h < n.length; ) {
676
+ const w = c[h];
677
+ C(
678
+ w != null,
679
+ `Previous layout not found for panel index ${h}`
680
680
  );
681
- const M = P + z, C = Y({
681
+ const M = w + v, P = Z({
682
682
  overrideDisabledPanels: l,
683
- panelConstraints: n[p],
684
- prevSize: P,
683
+ panelConstraints: n[h],
684
+ prevSize: w,
685
685
  size: M
686
686
  });
687
- if (k(P, C) || (z -= C - P, u[p] = C), k(z, 0))
687
+ if (D(w, P) || (v -= P - w, c[h] = P), D(v, 0))
688
688
  break;
689
- e > 0 ? p-- : p++;
689
+ e > 0 ? h-- : h++;
690
690
  }
691
691
  }
692
692
  }
693
- const v = Object.values(u).reduce(
694
- (f, h) => h + f,
693
+ const b = Object.values(c).reduce(
694
+ (u, p) => p + u,
695
695
  0
696
696
  );
697
- if (!k(v, 100, 0.1))
697
+ if (!D(b, 100, 0.1))
698
698
  return i;
699
- const b = Object.keys(i);
700
- return u.reduce((f, h, g) => (f[b[g]] = h, f), {});
699
+ const x = Object.keys(i);
700
+ return c.reduce((u, p, m) => (u[x[m]] = p, u), {});
701
701
  }
702
- function j(e, t) {
702
+ function W(e, t) {
703
703
  if (Object.keys(e).length !== Object.keys(t).length)
704
704
  return false;
705
705
  for (const n in e)
706
- if (t[n] === void 0 || G(e[n], t[n]) !== 0)
706
+ if (t[n] === void 0 || A(e[n], t[n]) !== 0)
707
707
  return false;
708
708
  return true;
709
709
  }
710
- function B({
710
+ function U({
711
711
  layout: e,
712
712
  panelConstraints: t
713
713
  }) {
@@ -719,67 +719,67 @@ function B({
719
719
  throw Error(
720
720
  `Invalid ${t.length} panel layout: ${o.map((r) => `${r}%`).join(", ")}`
721
721
  );
722
- if (!k(i, 100) && o.length > 0)
722
+ if (!D(i, 100) && o.length > 0)
723
723
  for (let r = 0; r < t.length; r++) {
724
724
  const a = o[r];
725
- L(a != null, `No layout data found for index ${r}`);
726
- const u = 100 / i * a;
727
- o[r] = u;
725
+ C(a != null, `No layout data found for index ${r}`);
726
+ const c = 100 / i * a;
727
+ o[r] = c;
728
728
  }
729
729
  let s = 0;
730
730
  for (let r = 0; r < t.length; r++) {
731
731
  const a = n[r];
732
- L(a != null, `No layout data found for index ${r}`);
733
- const u = o[r];
734
- L(u != null, `No layout data found for index ${r}`);
735
- const c = Y({
732
+ C(a != null, `No layout data found for index ${r}`);
733
+ const c = o[r];
734
+ C(c != null, `No layout data found for index ${r}`);
735
+ const f = Z({
736
736
  overrideDisabledPanels: true,
737
737
  panelConstraints: t[r],
738
738
  prevSize: a,
739
- size: u
739
+ size: c
740
740
  });
741
- u != c && (s += u - c, o[r] = c);
741
+ c != f && (s += c - f, o[r] = f);
742
742
  }
743
- if (!k(s, 0))
743
+ if (!D(s, 0))
744
744
  for (let r = 0; r < t.length; r++) {
745
745
  const a = o[r];
746
- L(a != null, `No layout data found for index ${r}`);
747
- const u = a + s, c = Y({
746
+ C(a != null, `No layout data found for index ${r}`);
747
+ const c = a + s, f = Z({
748
748
  overrideDisabledPanels: true,
749
749
  panelConstraints: t[r],
750
750
  prevSize: a,
751
- size: u
751
+ size: c
752
752
  });
753
- if (a !== c && (s -= c - a, o[r] = c, k(s, 0)))
753
+ if (a !== f && (s -= f - a, o[r] = f, D(s, 0)))
754
754
  break;
755
755
  }
756
756
  const l = Object.keys(e);
757
- return o.reduce((r, a, u) => (r[l[u]] = a, r), {});
757
+ return o.reduce((r, a, c) => (r[l[c]] = a, r), {});
758
758
  }
759
- function et({
759
+ function tt({
760
760
  groupId: e,
761
761
  panelId: t
762
762
  }) {
763
763
  const n = () => {
764
- const r = U();
764
+ const r = X();
765
765
  for (const [
766
766
  a,
767
767
  {
768
- defaultLayoutDeferred: u,
769
- derivedPanelConstraints: c,
770
- layout: m,
768
+ defaultLayoutDeferred: c,
769
+ derivedPanelConstraints: f,
770
+ layout: g,
771
771
  groupSize: d,
772
- separatorToPanels: v
772
+ separatorToPanels: b
773
773
  }
774
774
  ] of r)
775
775
  if (a.id === e)
776
776
  return {
777
- defaultLayoutDeferred: u,
778
- derivedPanelConstraints: c,
777
+ defaultLayoutDeferred: c,
778
+ derivedPanelConstraints: f,
779
779
  group: a,
780
780
  groupSize: d,
781
- layout: m,
782
- separatorToPanels: v
781
+ layout: g,
782
+ separatorToPanels: b
783
783
  };
784
784
  throw Error(`Group ${e} not found`);
785
785
  }, o = () => {
@@ -804,75 +804,75 @@ function et({
804
804
  if (r === a)
805
805
  return;
806
806
  const {
807
- defaultLayoutDeferred: u,
808
- derivedPanelConstraints: c,
809
- group: m,
807
+ defaultLayoutDeferred: c,
808
+ derivedPanelConstraints: f,
809
+ group: g,
810
810
  groupSize: d,
811
- layout: v,
812
- separatorToPanels: b
813
- } = n(), f = m.panels.findIndex((z) => z.id === t), h = f === m.panels.length - 1, g = se({
814
- delta: h ? a - r : r - a,
815
- initialLayout: v,
816
- panelConstraints: c,
817
- pivotIndices: h ? [f - 1, f] : [f, f + 1],
818
- prevLayout: v,
811
+ layout: b,
812
+ separatorToPanels: x
813
+ } = n(), u = g.panels.findIndex((v) => v.id === t), p = u === g.panels.length - 1, m = le({
814
+ delta: p ? a - r : r - a,
815
+ initialLayout: b,
816
+ panelConstraints: f,
817
+ pivotIndices: p ? [u - 1, u] : [u, u + 1],
818
+ prevLayout: b,
819
819
  trigger: "imperative-api"
820
- }), y = B({
821
- layout: g,
822
- panelConstraints: c
820
+ }), S = U({
821
+ layout: m,
822
+ panelConstraints: f
823
823
  });
824
- j(v, y) || _(m, {
825
- defaultLayoutDeferred: u,
826
- derivedPanelConstraints: c,
824
+ W(b, S) || $(g, {
825
+ defaultLayoutDeferred: c,
826
+ derivedPanelConstraints: f,
827
827
  groupSize: d,
828
- layout: y,
829
- separatorToPanels: b
828
+ layout: S,
829
+ separatorToPanels: x
830
830
  });
831
831
  };
832
832
  return {
833
833
  collapse: () => {
834
- const { collapsible: r, collapsedSize: a } = o(), { mutableValues: u } = i(), c = s();
835
- r && c !== a && (u.expandToSize = c, l(a));
834
+ const { collapsible: r, collapsedSize: a } = o(), { mutableValues: c } = i(), f = s();
835
+ r && f !== a && (c.expandToSize = f, l(a));
836
836
  },
837
837
  expand: () => {
838
- const { collapsible: r, collapsedSize: a, minSize: u } = o(), { mutableValues: c } = i(), m = s();
839
- if (r && m === a) {
840
- let d = c.expandToSize ?? u;
838
+ const { collapsible: r, collapsedSize: a, minSize: c } = o(), { mutableValues: f } = i(), g = s();
839
+ if (r && g === a) {
840
+ let d = f.expandToSize ?? c;
841
841
  d === 0 && (d = 1), l(d);
842
842
  }
843
843
  },
844
844
  getSize: () => {
845
- const { group: r } = n(), a = s(), { element: u } = i(), c = r.orientation === "horizontal" ? u.offsetWidth : u.offsetHeight;
845
+ const { group: r } = n(), a = s(), { element: c } = i(), f = r.orientation === "horizontal" ? c.offsetWidth : c.offsetHeight;
846
846
  return {
847
847
  asPercentage: a,
848
- inPixels: c
848
+ inPixels: f
849
849
  };
850
850
  },
851
851
  isCollapsed: () => {
852
- const { collapsible: r, collapsedSize: a } = o(), u = s();
853
- return r && k(a, u);
852
+ const { collapsible: r, collapsedSize: a } = o(), c = s();
853
+ return r && D(a, c);
854
854
  },
855
855
  resize: (r) => {
856
- const { group: a } = n(), { element: u } = i(), c = Q({ group: a }), m = te({
857
- groupSize: c,
858
- panelElement: u,
856
+ const { group: a } = n(), { element: c } = i(), f = ne({ group: a }), g = ie({
857
+ groupSize: f,
858
+ panelElement: c,
859
859
  styleProp: r
860
- }), d = D(m / c * 100);
860
+ }), d = T(g / f * 100);
861
861
  l(d);
862
862
  }
863
863
  };
864
864
  }
865
- function De(e) {
865
+ function Oe(e) {
866
866
  if (e.defaultPrevented)
867
867
  return;
868
- const t = U();
869
- ve(e, t).forEach((o) => {
870
- if (o.separator) {
868
+ const t = X();
869
+ xe(e, t).forEach((o) => {
870
+ if (o.separator && !o.separator.disableDoubleClick) {
871
871
  const i = o.panels.find(
872
872
  (s) => s.panelConstraints.defaultSize !== void 0
873
873
  );
874
874
  if (i) {
875
- const s = i.panelConstraints.defaultSize, l = et({
875
+ const s = i.panelConstraints.defaultSize, l = tt({
876
876
  groupId: o.group.id,
877
877
  panelId: i.id
878
878
  });
@@ -881,8 +881,8 @@ function De(e) {
881
881
  }
882
882
  });
883
883
  }
884
- function fe(e) {
885
- const t = U();
884
+ function pe(e) {
885
+ const t = X();
886
886
  for (const [n] of t)
887
887
  if (n.separators.some(
888
888
  (o) => o.element === e
@@ -890,11 +890,11 @@ function fe(e) {
890
890
  return n;
891
891
  throw Error("Could not find parent Group for separator element");
892
892
  }
893
- function tt({
893
+ function nt({
894
894
  groupId: e
895
895
  }) {
896
896
  const t = () => {
897
- const n = U();
897
+ const n = X();
898
898
  for (const [o, i] of n)
899
899
  if (o.id === e)
900
900
  return { group: o, ...i };
@@ -913,97 +913,97 @@ function tt({
913
913
  groupSize: l,
914
914
  layout: r,
915
915
  separatorToPanels: a
916
- } = t(), u = B({
916
+ } = t(), c = U({
917
917
  layout: n,
918
918
  panelConstraints: i
919
919
  });
920
- return o ? r : (j(r, u) || _(s, {
920
+ return o ? r : (W(r, c) || $(s, {
921
921
  defaultLayoutDeferred: o,
922
922
  derivedPanelConstraints: i,
923
923
  groupSize: l,
924
- layout: u,
924
+ layout: c,
925
925
  separatorToPanels: a
926
- }), u);
926
+ }), c);
927
927
  }
928
928
  };
929
929
  }
930
- function V(e, t) {
931
- const n = fe(e), o = $(n.id, true), i = n.separators.find(
932
- (m) => m.element === e
930
+ function B(e, t) {
931
+ const n = pe(e), o = H(n.id, true), i = n.separators.find(
932
+ (g) => g.element === e
933
933
  );
934
- L(i, "Matching separator not found");
934
+ C(i, "Matching separator not found");
935
935
  const s = o.separatorToPanels.get(i);
936
- L(s, "Matching panels not found");
937
- const l = s.map((m) => n.panels.indexOf(m)), a = tt({ groupId: n.id }).getLayout(), u = se({
936
+ C(s, "Matching panels not found");
937
+ const l = s.map((g) => n.panels.indexOf(g)), a = nt({ groupId: n.id }).getLayout(), c = le({
938
938
  delta: t,
939
939
  initialLayout: a,
940
940
  panelConstraints: o.derivedPanelConstraints,
941
941
  pivotIndices: l,
942
942
  prevLayout: a,
943
943
  trigger: "keyboard"
944
- }), c = B({
945
- layout: u,
944
+ }), f = U({
945
+ layout: c,
946
946
  panelConstraints: o.derivedPanelConstraints
947
947
  });
948
- j(a, c) || _(n, {
948
+ W(a, f) || $(n, {
949
949
  defaultLayoutDeferred: o.defaultLayoutDeferred,
950
950
  derivedPanelConstraints: o.derivedPanelConstraints,
951
951
  groupSize: o.groupSize,
952
- layout: c,
952
+ layout: f,
953
953
  separatorToPanels: o.separatorToPanels
954
954
  });
955
955
  }
956
- function Te(e) {
956
+ function Ge(e) {
957
957
  if (e.defaultPrevented)
958
958
  return;
959
- const t = e.currentTarget, n = fe(t);
959
+ const t = e.currentTarget, n = pe(t);
960
960
  if (!n.disabled)
961
961
  switch (e.key) {
962
962
  case "ArrowDown": {
963
- e.preventDefault(), n.orientation === "vertical" && V(t, 5);
963
+ e.preventDefault(), n.orientation === "vertical" && B(t, 5);
964
964
  break;
965
965
  }
966
966
  case "ArrowLeft": {
967
- e.preventDefault(), n.orientation === "horizontal" && V(t, -5);
967
+ e.preventDefault(), n.orientation === "horizontal" && B(t, -5);
968
968
  break;
969
969
  }
970
970
  case "ArrowRight": {
971
- e.preventDefault(), n.orientation === "horizontal" && V(t, 5);
971
+ e.preventDefault(), n.orientation === "horizontal" && B(t, 5);
972
972
  break;
973
973
  }
974
974
  case "ArrowUp": {
975
- e.preventDefault(), n.orientation === "vertical" && V(t, -5);
975
+ e.preventDefault(), n.orientation === "vertical" && B(t, -5);
976
976
  break;
977
977
  }
978
978
  case "End": {
979
- e.preventDefault(), V(t, 100);
979
+ e.preventDefault(), B(t, 100);
980
980
  break;
981
981
  }
982
982
  case "Enter": {
983
983
  e.preventDefault();
984
- const o = fe(t), i = $(o.id, true), { derivedPanelConstraints: s, layout: l, separatorToPanels: r } = i, a = o.separators.find(
984
+ const o = pe(t), i = H(o.id, true), { derivedPanelConstraints: s, layout: l, separatorToPanels: r } = i, a = o.separators.find(
985
985
  (d) => d.element === t
986
986
  );
987
- L(a, "Matching separator not found");
988
- const u = r.get(a);
989
- L(u, "Matching panels not found");
990
- const c = u[0], m = s.find(
991
- (d) => d.panelId === c.id
987
+ C(a, "Matching separator not found");
988
+ const c = r.get(a);
989
+ C(c, "Matching panels not found");
990
+ const f = c[0], g = s.find(
991
+ (d) => d.panelId === f.id
992
992
  );
993
- if (L(m, "Panel metadata not found"), m.collapsible) {
994
- const d = l[c.id], v = m.collapsedSize === d ? o.mutableState.expandedPanelSizes[c.id] ?? m.minSize : m.collapsedSize;
995
- V(t, v - d);
993
+ if (C(g, "Panel metadata not found"), g.collapsible) {
994
+ const d = l[f.id], b = g.collapsedSize === d ? o.mutableState.expandedPanelSizes[f.id] ?? g.minSize : g.collapsedSize;
995
+ B(t, b - d);
996
996
  }
997
997
  break;
998
998
  }
999
999
  case "F6": {
1000
1000
  e.preventDefault();
1001
- const i = fe(t).separators.map(
1001
+ const i = pe(t).separators.map(
1002
1002
  (a) => a.element
1003
1003
  ), s = Array.from(i).findIndex(
1004
1004
  (a) => a === e.currentTarget
1005
1005
  );
1006
- L(s !== null, "Index not found");
1006
+ C(s !== null, "Index not found");
1007
1007
  const l = e.shiftKey ? s > 0 ? s - 1 : i.length - 1 : s + 1 < i.length ? s + 1 : 0;
1008
1008
  i[l].focus({
1009
1009
  preventScroll: true
@@ -1011,42 +1011,42 @@ function Te(e) {
1011
1011
  break;
1012
1012
  }
1013
1013
  case "Home": {
1014
- e.preventDefault(), V(t, -100);
1014
+ e.preventDefault(), B(t, -100);
1015
1015
  break;
1016
1016
  }
1017
1017
  }
1018
1018
  }
1019
- let J = {
1019
+ let ee = {
1020
1020
  cursorFlags: 0,
1021
1021
  state: "inactive"
1022
1022
  };
1023
- const ze = new Je();
1024
- function W() {
1025
- return J;
1023
+ const we = new Ze();
1024
+ function K() {
1025
+ return ee;
1026
1026
  }
1027
1027
  function Gt(e) {
1028
- return ze.addListener("change", e);
1028
+ return we.addListener("change", e);
1029
1029
  }
1030
1030
  function At(e) {
1031
- const t = J, n = { ...J };
1032
- n.cursorFlags = e, J = n, ze.emit("change", {
1031
+ const t = ee, n = { ...ee };
1032
+ n.cursorFlags = e, ee = n, we.emit("change", {
1033
1033
  prev: t,
1034
1034
  next: n
1035
1035
  });
1036
1036
  }
1037
- function Z(e) {
1038
- const t = J;
1039
- J = e, ze.emit("change", {
1037
+ function te(e) {
1038
+ const t = ee;
1039
+ ee = e, we.emit("change", {
1040
1040
  prev: t,
1041
1041
  next: e
1042
1042
  });
1043
1043
  }
1044
- function Oe(e) {
1044
+ function Ae(e) {
1045
1045
  if (e.defaultPrevented)
1046
1046
  return;
1047
1047
  if (e.pointerType === "mouse" && e.button > 0)
1048
1048
  return;
1049
- const t = U(), n = ve(e, t), o = /* @__PURE__ */ new Map();
1049
+ const t = X(), n = xe(e, t), o = /* @__PURE__ */ new Map();
1050
1050
  let i = false;
1051
1051
  n.forEach((s) => {
1052
1052
  s.separator && (i || (i = true, s.separator.element.focus({
@@ -1054,7 +1054,7 @@ function Oe(e) {
1054
1054
  })));
1055
1055
  const l = t.get(s.group);
1056
1056
  l && o.set(s.group, l.layout);
1057
- }), Z({
1057
+ }), te({
1058
1058
  cursorFlags: 0,
1059
1059
  hitRegions: n,
1060
1060
  initialLayoutMap: o,
@@ -1062,13 +1062,13 @@ function Oe(e) {
1062
1062
  state: "active"
1063
1063
  }), n.length && e.preventDefault();
1064
1064
  }
1065
- const Nt = (e) => e, he = () => {
1066
- }, nt = 1, ot = 2, it = 4, rt = 8, Ge = 3, Ae = 12;
1067
- let ce;
1068
- function Ne() {
1069
- return ce === void 0 && (ce = false, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (ce = true)), ce;
1065
+ const Ft = (e) => e, ye = () => {
1066
+ }, ot = 1, it = 2, rt = 4, st = 8, Fe = 3, Ne = 12;
1067
+ let de;
1068
+ function _e() {
1069
+ return de === void 0 && (de = false, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (de = true)), de;
1070
1070
  }
1071
- function _t({
1071
+ function Nt({
1072
1072
  cursorFlags: e,
1073
1073
  groups: t,
1074
1074
  state: n
@@ -1094,8 +1094,8 @@ function _t({
1094
1094
  if (!(o === 0 && i === 0)) {
1095
1095
  switch (n) {
1096
1096
  case "active": {
1097
- if (e && Ne()) {
1098
- const s = (e & nt) !== 0, l = (e & ot) !== 0, r = (e & it) !== 0, a = (e & rt) !== 0;
1097
+ if (e && _e()) {
1098
+ const s = (e & ot) !== 0, l = (e & it) !== 0, r = (e & rt) !== 0, a = (e & st) !== 0;
1099
1099
  if (s)
1100
1100
  return r ? "se-resize" : a ? "ne-resize" : "e-resize";
1101
1101
  if (l)
@@ -1108,20 +1108,20 @@ function _t({
1108
1108
  break;
1109
1109
  }
1110
1110
  }
1111
- return Ne() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
1111
+ return _e() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
1112
1112
  }
1113
1113
  }
1114
- const _e = /* @__PURE__ */ new WeakMap();
1115
- function xe(e) {
1114
+ const $e = /* @__PURE__ */ new WeakMap();
1115
+ function Pe(e) {
1116
1116
  if (e.defaultView === null || e.defaultView === void 0)
1117
1117
  return;
1118
- let { prevStyle: t, styleSheet: n } = _e.get(e) ?? {};
1118
+ let { prevStyle: t, styleSheet: n } = $e.get(e) ?? {};
1119
1119
  n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && e.adoptedStyleSheets.push(n));
1120
- const o = W();
1120
+ const o = K();
1121
1121
  switch (o.state) {
1122
1122
  case "active":
1123
1123
  case "hover": {
1124
- const i = _t({
1124
+ const i = Nt({
1125
1125
  cursorFlags: o.cursorFlags,
1126
1126
  groups: o.hitRegions.map((l) => l.group),
1127
1127
  state: o.state
@@ -1136,12 +1136,12 @@ function xe(e) {
1136
1136
  break;
1137
1137
  }
1138
1138
  }
1139
- _e.set(e, {
1139
+ $e.set(e, {
1140
1140
  prevStyle: t,
1141
1141
  styleSheet: n
1142
1142
  });
1143
1143
  }
1144
- function st({
1144
+ function at({
1145
1145
  document: e,
1146
1146
  event: t,
1147
1147
  hitRegions: n,
@@ -1151,59 +1151,59 @@ function st({
1151
1151
  prevCursorFlags: l
1152
1152
  }) {
1153
1153
  let r = 0;
1154
- n.forEach((u) => {
1155
- const { group: c, groupSize: m } = u, { orientation: d, panels: v } = c, { disableCursor: b } = c.mutableState;
1156
- let f = 0;
1157
- s ? d === "horizontal" ? f = (t.clientX - s.x) / m * 100 : f = (t.clientY - s.y) / m * 100 : d === "horizontal" ? f = t.clientX < 0 ? -100 : 100 : f = t.clientY < 0 ? -100 : 100;
1158
- const h = o.get(c), g = i.get(c);
1159
- if (!h || !g)
1154
+ n.forEach((c) => {
1155
+ const { group: f, groupSize: g } = c, { orientation: d, panels: b } = f, { disableCursor: x } = f.mutableState;
1156
+ let u = 0;
1157
+ s ? d === "horizontal" ? u = (t.clientX - s.x) / g * 100 : u = (t.clientY - s.y) / g * 100 : d === "horizontal" ? u = t.clientX < 0 ? -100 : 100 : u = t.clientY < 0 ? -100 : 100;
1158
+ const p = o.get(f), m = i.get(f);
1159
+ if (!p || !m)
1160
1160
  return;
1161
1161
  const {
1162
- defaultLayoutDeferred: y,
1163
- derivedPanelConstraints: z,
1164
- groupSize: S,
1165
- layout: p,
1166
- separatorToPanels: P
1167
- } = g;
1168
- if (z && p && P) {
1169
- const M = se({
1170
- delta: f,
1171
- initialLayout: h,
1172
- panelConstraints: z,
1173
- pivotIndices: u.panels.map((C) => v.indexOf(C)),
1174
- prevLayout: p,
1162
+ defaultLayoutDeferred: S,
1163
+ derivedPanelConstraints: v,
1164
+ groupSize: y,
1165
+ layout: h,
1166
+ separatorToPanels: w
1167
+ } = m;
1168
+ if (v && h && w) {
1169
+ const M = le({
1170
+ delta: u,
1171
+ initialLayout: p,
1172
+ panelConstraints: v,
1173
+ pivotIndices: c.panels.map((P) => b.indexOf(P)),
1174
+ prevLayout: h,
1175
1175
  trigger: "mouse-or-touch"
1176
1176
  });
1177
- if (j(M, p)) {
1178
- if (f !== 0 && !b)
1177
+ if (W(M, h)) {
1178
+ if (u !== 0 && !x)
1179
1179
  switch (d) {
1180
1180
  case "horizontal": {
1181
- r |= f < 0 ? nt : ot;
1181
+ r |= u < 0 ? ot : it;
1182
1182
  break;
1183
1183
  }
1184
1184
  case "vertical": {
1185
- r |= f < 0 ? it : rt;
1185
+ r |= u < 0 ? rt : st;
1186
1186
  break;
1187
1187
  }
1188
1188
  }
1189
1189
  } else
1190
- _(u.group, {
1191
- defaultLayoutDeferred: y,
1192
- derivedPanelConstraints: z,
1193
- groupSize: S,
1190
+ $(c.group, {
1191
+ defaultLayoutDeferred: S,
1192
+ derivedPanelConstraints: v,
1193
+ groupSize: y,
1194
1194
  layout: M,
1195
- separatorToPanels: P
1195
+ separatorToPanels: w
1196
1196
  });
1197
1197
  }
1198
1198
  });
1199
1199
  let a = 0;
1200
- t.movementX === 0 ? a |= l & Ge : a |= r & Ge, t.movementY === 0 ? a |= l & Ae : a |= r & Ae, At(a), xe(e);
1200
+ t.movementX === 0 ? a |= l & Fe : a |= r & Fe, t.movementY === 0 ? a |= l & Ne : a |= r & Ne, At(a), Pe(e);
1201
1201
  }
1202
- function Fe(e) {
1203
- const t = U(), n = W();
1202
+ function je(e) {
1203
+ const t = X(), n = K();
1204
1204
  switch (n.state) {
1205
1205
  case "active":
1206
- st({
1206
+ at({
1207
1207
  document: e.currentTarget,
1208
1208
  event: e,
1209
1209
  hitRegions: n.hitRegions,
@@ -1213,22 +1213,22 @@ function Fe(e) {
1213
1213
  });
1214
1214
  }
1215
1215
  }
1216
- function $e(e) {
1216
+ function He(e) {
1217
1217
  if (e.defaultPrevented)
1218
1218
  return;
1219
- const t = W(), n = U();
1219
+ const t = K(), n = X();
1220
1220
  switch (t.state) {
1221
1221
  case "active": {
1222
1222
  if (
1223
1223
  // Skip this check for "pointerleave" events, else Firefox triggers a false positive (see #514)
1224
1224
  e.buttons === 0
1225
1225
  ) {
1226
- Z({
1226
+ te({
1227
1227
  cursorFlags: 0,
1228
1228
  state: "inactive"
1229
1229
  }), t.hitRegions.forEach((o) => {
1230
- const i = $(o.group.id, true);
1231
- _(o.group, i);
1230
+ const i = H(o.group.id, true);
1231
+ $(o.group, i);
1232
1232
  });
1233
1233
  return;
1234
1234
  }
@@ -1237,7 +1237,7 @@ function $e(e) {
1237
1237
  const { element: i } = o.separator;
1238
1238
  i.hasPointerCapture?.(e.pointerId) || i.setPointerCapture?.(e.pointerId);
1239
1239
  }
1240
- st({
1240
+ at({
1241
1241
  document: e.currentTarget,
1242
1242
  event: e,
1243
1243
  hitRegions: t.hitRegions,
@@ -1249,72 +1249,72 @@ function $e(e) {
1249
1249
  break;
1250
1250
  }
1251
1251
  default: {
1252
- const o = ve(e, n);
1253
- o.length === 0 ? t.state !== "inactive" && Z({
1252
+ const o = xe(e, n);
1253
+ o.length === 0 ? t.state !== "inactive" && te({
1254
1254
  cursorFlags: 0,
1255
1255
  state: "inactive"
1256
- }) : Z({
1256
+ }) : te({
1257
1257
  cursorFlags: 0,
1258
1258
  hitRegions: o,
1259
1259
  state: "hover"
1260
- }), xe(e.currentTarget);
1260
+ }), Pe(e.currentTarget);
1261
1261
  break;
1262
1262
  }
1263
1263
  }
1264
1264
  }
1265
- function He(e) {
1265
+ function Ve(e) {
1266
1266
  if (e.relatedTarget instanceof HTMLIFrameElement)
1267
- switch (W().state) {
1267
+ switch (K().state) {
1268
1268
  case "hover":
1269
- Z({
1269
+ te({
1270
1270
  cursorFlags: 0,
1271
1271
  state: "inactive"
1272
1272
  });
1273
1273
  }
1274
1274
  }
1275
- function Ve(e) {
1275
+ function Be(e) {
1276
1276
  if (e.defaultPrevented)
1277
1277
  return;
1278
1278
  if (e.pointerType === "mouse" && e.button > 0)
1279
1279
  return;
1280
- const t = W();
1280
+ const t = K();
1281
1281
  switch (t.state) {
1282
1282
  case "active":
1283
- Z({
1283
+ te({
1284
1284
  cursorFlags: 0,
1285
1285
  state: "inactive"
1286
- }), t.hitRegions.length > 0 && (xe(e.currentTarget), t.hitRegions.forEach((n) => {
1287
- const o = $(n.group.id, true);
1288
- _(n.group, o);
1286
+ }), t.hitRegions.length > 0 && (Pe(e.currentTarget), t.hitRegions.forEach((n) => {
1287
+ const o = H(n.group.id, true);
1288
+ $(n.group, o);
1289
1289
  }), e.preventDefault());
1290
1290
  }
1291
1291
  }
1292
- function je(e) {
1292
+ function We(e) {
1293
1293
  let t = 0, n = 0;
1294
1294
  const o = {};
1295
1295
  for (const s of e)
1296
1296
  if (s.defaultSize !== void 0) {
1297
1297
  t++;
1298
- const l = D(s.defaultSize);
1298
+ const l = T(s.defaultSize);
1299
1299
  n += l, o[s.panelId] = l;
1300
1300
  } else
1301
1301
  o[s.panelId] = void 0;
1302
1302
  const i = e.length - t;
1303
1303
  if (i !== 0) {
1304
- const s = D((100 - n) / i);
1304
+ const s = T((100 - n) / i);
1305
1305
  for (const l of e)
1306
1306
  l.defaultSize === void 0 && (o[l.panelId] = s);
1307
1307
  }
1308
1308
  return o;
1309
1309
  }
1310
- function Ft(e, t, n) {
1310
+ function _t(e, t, n) {
1311
1311
  if (!n[0])
1312
1312
  return;
1313
- const i = e.panels.find((u) => u.element === t);
1313
+ const i = e.panels.find((c) => c.element === t);
1314
1314
  if (!i || !i.onResize)
1315
1315
  return;
1316
- const s = Q({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, r = i.mutableValues.prevSize, a = {
1317
- asPercentage: D(l / s * 100),
1316
+ const s = ne({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, r = i.mutableValues.prevSize, a = {
1317
+ asPercentage: T(l / s * 100),
1318
1318
  inPixels: l
1319
1319
  };
1320
1320
  i.mutableValues.prevSize = a, i.onResize(a, i.id, r);
@@ -1327,7 +1327,7 @@ function $t(e, t) {
1327
1327
  return false;
1328
1328
  return true;
1329
1329
  }
1330
- function Ht({
1330
+ function jt({
1331
1331
  group: e,
1332
1332
  nextGroupSize: t,
1333
1333
  prevGroupSize: n,
@@ -1337,46 +1337,46 @@ function Ht({
1337
1337
  return o;
1338
1338
  let i = 0, s = 0, l = false;
1339
1339
  const r = /* @__PURE__ */ new Map(), a = [];
1340
- for (const m of e.panels) {
1341
- const d = o[m.id] ?? 0;
1342
- switch (m.panelConstraints.groupResizeBehavior) {
1340
+ for (const g of e.panels) {
1341
+ const d = o[g.id] ?? 0;
1342
+ switch (g.panelConstraints.groupResizeBehavior) {
1343
1343
  case "preserve-pixel-size": {
1344
1344
  l = true;
1345
- const v = d / 100 * n, b = D(
1346
- v / t * 100
1345
+ const b = d / 100 * n, x = T(
1346
+ b / t * 100
1347
1347
  );
1348
- r.set(m.id, b), i += b;
1348
+ r.set(g.id, x), i += x;
1349
1349
  break;
1350
1350
  }
1351
1351
  case "preserve-relative-size":
1352
1352
  default: {
1353
- a.push(m.id), s += d;
1353
+ a.push(g.id), s += d;
1354
1354
  break;
1355
1355
  }
1356
1356
  }
1357
1357
  }
1358
1358
  if (!l || a.length === 0)
1359
1359
  return o;
1360
- const u = 100 - i, c = { ...o };
1361
- if (r.forEach((m, d) => {
1362
- c[d] = m;
1360
+ const c = 100 - i, f = { ...o };
1361
+ if (r.forEach((g, d) => {
1362
+ f[d] = g;
1363
1363
  }), s > 0)
1364
- for (const m of a) {
1365
- const d = o[m] ?? 0;
1366
- c[m] = D(
1367
- d / s * u
1364
+ for (const g of a) {
1365
+ const d = o[g] ?? 0;
1366
+ f[g] = T(
1367
+ d / s * c
1368
1368
  );
1369
1369
  }
1370
1370
  else {
1371
- const m = D(
1372
- u / a.length
1371
+ const g = T(
1372
+ c / a.length
1373
1373
  );
1374
1374
  for (const d of a)
1375
- c[d] = m;
1375
+ f[d] = g;
1376
1376
  }
1377
- return c;
1377
+ return f;
1378
1378
  }
1379
- function Vt(e, t) {
1379
+ function Ht(e, t) {
1380
1380
  const n = e.map((i) => i.id), o = Object.keys(t);
1381
1381
  if (n.length !== o.length)
1382
1382
  return false;
@@ -1385,118 +1385,118 @@ function Vt(e, t) {
1385
1385
  return false;
1386
1386
  return true;
1387
1387
  }
1388
- const q = /* @__PURE__ */ new Map();
1389
- function jt(e) {
1388
+ const J = /* @__PURE__ */ new Map();
1389
+ function Vt(e) {
1390
1390
  let t = true;
1391
- L(
1391
+ C(
1392
1392
  e.element.ownerDocument.defaultView,
1393
1393
  "Cannot register an unmounted Group"
1394
1394
  );
1395
- const n = e.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = new n((f) => {
1396
- for (const h of f) {
1397
- const { borderBoxSize: g, target: y } = h;
1398
- if (y === e.element) {
1395
+ const n = e.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = new n((u) => {
1396
+ for (const p of u) {
1397
+ const { borderBoxSize: m, target: S } = p;
1398
+ if (S === e.element) {
1399
1399
  if (t) {
1400
- const z = Q({ group: e });
1401
- if (z === 0)
1400
+ const v = ne({ group: e });
1401
+ if (v === 0)
1402
1402
  return;
1403
- const S = $(e.id);
1404
- if (!S)
1403
+ const y = H(e.id);
1404
+ if (!y)
1405
1405
  return;
1406
- const p = ge(e), P = S.defaultLayoutDeferred ? je(p) : S.layout, M = Ht({
1406
+ const h = ve(e), w = y.defaultLayoutDeferred ? We(h) : y.layout, M = jt({
1407
1407
  group: e,
1408
- nextGroupSize: z,
1409
- prevGroupSize: S.groupSize,
1410
- prevLayout: P
1411
- }), C = B({
1408
+ nextGroupSize: v,
1409
+ prevGroupSize: y.groupSize,
1410
+ prevLayout: w
1411
+ }), P = U({
1412
1412
  layout: M,
1413
- panelConstraints: p
1413
+ panelConstraints: h
1414
1414
  });
1415
- if (!S.defaultLayoutDeferred && j(S.layout, C) && $t(
1416
- S.derivedPanelConstraints,
1417
- p
1418
- ) && S.groupSize === z)
1415
+ if (!y.defaultLayoutDeferred && W(y.layout, P) && $t(
1416
+ y.derivedPanelConstraints,
1417
+ h
1418
+ ) && y.groupSize === v)
1419
1419
  return;
1420
- _(e, {
1420
+ $(e, {
1421
1421
  defaultLayoutDeferred: false,
1422
- derivedPanelConstraints: p,
1423
- groupSize: z,
1424
- layout: C,
1425
- separatorToPanels: S.separatorToPanels
1422
+ derivedPanelConstraints: h,
1423
+ groupSize: v,
1424
+ layout: P,
1425
+ separatorToPanels: y.separatorToPanels
1426
1426
  });
1427
1427
  }
1428
1428
  } else
1429
- Ft(e, y, g);
1429
+ _t(e, S, m);
1430
1430
  }
1431
1431
  });
1432
- s.observe(e.element), e.panels.forEach((f) => {
1433
- L(
1434
- !o.has(f.id),
1435
- `Panel ids must be unique; id "${f.id}" was used more than once`
1436
- ), o.add(f.id), f.onResize && s.observe(f.element);
1432
+ s.observe(e.element), e.panels.forEach((u) => {
1433
+ C(
1434
+ !o.has(u.id),
1435
+ `Panel ids must be unique; id "${u.id}" was used more than once`
1436
+ ), o.add(u.id), u.onResize && s.observe(u.element);
1437
1437
  });
1438
- const l = Q({ group: e }), r = ge(e), a = e.panels.map(({ id: f }) => f).join(",");
1439
- let u = e.mutableState.defaultLayout;
1440
- u && (Vt(e.panels, u) || (u = void 0));
1441
- const c = e.mutableState.layouts[a] ?? u ?? je(r), m = B({
1442
- layout: c,
1438
+ const l = ne({ group: e }), r = ve(e), a = e.panels.map(({ id: u }) => u).join(",");
1439
+ let c = e.mutableState.defaultLayout;
1440
+ c && (Ht(e.panels, c) || (c = void 0));
1441
+ const f = e.mutableState.layouts[a] ?? c ?? We(r), g = U({
1442
+ layout: f,
1443
1443
  panelConstraints: r
1444
1444
  }), d = e.element.ownerDocument;
1445
- q.set(
1445
+ J.set(
1446
1446
  d,
1447
- (q.get(d) ?? 0) + 1
1447
+ (J.get(d) ?? 0) + 1
1448
1448
  );
1449
- const v = /* @__PURE__ */ new Map();
1450
- return Ye(e).forEach((f) => {
1451
- f.separator && v.set(f.separator, f.panels);
1452
- }), _(e, {
1449
+ const b = /* @__PURE__ */ new Map();
1450
+ return Je(e).forEach((u) => {
1451
+ u.separator && b.set(u.separator, u.panels);
1452
+ }), $(e, {
1453
1453
  defaultLayoutDeferred: l === 0,
1454
1454
  derivedPanelConstraints: r,
1455
1455
  groupSize: l,
1456
- layout: m,
1457
- separatorToPanels: v
1458
- }), e.separators.forEach((f) => {
1459
- L(
1460
- !i.has(f.id),
1461
- `Separator ids must be unique; id "${f.id}" was used more than once`
1462
- ), i.add(f.id), f.element.addEventListener("keydown", Te);
1463
- }), q.get(d) === 1 && (d.addEventListener("dblclick", De, true), d.addEventListener("pointerdown", Oe, true), d.addEventListener("pointerleave", Fe), d.addEventListener("pointermove", $e), d.addEventListener("pointerout", He), d.addEventListener("pointerup", Ve, true)), function() {
1464
- t = false, q.set(
1456
+ layout: g,
1457
+ separatorToPanels: b
1458
+ }), e.separators.forEach((u) => {
1459
+ C(
1460
+ !i.has(u.id),
1461
+ `Separator ids must be unique; id "${u.id}" was used more than once`
1462
+ ), i.add(u.id), u.element.addEventListener("keydown", Ge);
1463
+ }), J.get(d) === 1 && (d.addEventListener("dblclick", Oe, true), d.addEventListener("pointerdown", Ae, true), d.addEventListener("pointerleave", je), d.addEventListener("pointermove", He), d.addEventListener("pointerout", Ve), d.addEventListener("pointerup", Be, true)), function() {
1464
+ t = false, J.set(
1465
1465
  d,
1466
- Math.max(0, (q.get(d) ?? 0) - 1)
1467
- ), Lt(e), e.separators.forEach((h) => {
1468
- h.element.removeEventListener("keydown", Te);
1469
- }), q.get(d) || (d.removeEventListener(
1466
+ Math.max(0, (J.get(d) ?? 0) - 1)
1467
+ ), Lt(e), e.separators.forEach((p) => {
1468
+ p.element.removeEventListener("keydown", Ge);
1469
+ }), J.get(d) || (d.removeEventListener(
1470
1470
  "dblclick",
1471
- De,
1471
+ Oe,
1472
1472
  true
1473
1473
  ), d.removeEventListener(
1474
1474
  "pointerdown",
1475
- Oe,
1475
+ Ae,
1476
1476
  true
1477
- ), d.removeEventListener("pointerleave", Fe), d.removeEventListener("pointermove", $e), d.removeEventListener("pointerout", He), d.removeEventListener("pointerup", Ve, true)), s.disconnect();
1477
+ ), d.removeEventListener("pointerleave", je), d.removeEventListener("pointermove", He), d.removeEventListener("pointerout", Ve), d.removeEventListener("pointerup", Be, true)), s.disconnect();
1478
1478
  };
1479
1479
  }
1480
1480
  function Bt() {
1481
1481
  const [e, t] = useState({}), n = useCallback(() => t({}), []);
1482
1482
  return [e, n];
1483
1483
  }
1484
- function be(e) {
1484
+ function Le(e) {
1485
1485
  const t = useId();
1486
1486
  return `${e ?? t}`;
1487
1487
  }
1488
- const K = typeof window < "u" ? useLayoutEffect : useEffect;
1489
- function oe(e) {
1488
+ const q = typeof window < "u" ? useLayoutEffect : useEffect;
1489
+ function se(e) {
1490
1490
  const t = useRef(e);
1491
- return K(() => {
1491
+ return q(() => {
1492
1492
  t.current = e;
1493
1493
  }, [e]), useCallback(
1494
1494
  (...n) => t.current?.(...n),
1495
1495
  [t]
1496
1496
  );
1497
1497
  }
1498
- function we(...e) {
1499
- return oe((t) => {
1498
+ function Ce(...e) {
1499
+ return se((t) => {
1500
1500
  e.forEach((n) => {
1501
1501
  if (n)
1502
1502
  switch (typeof n) {
@@ -1512,23 +1512,23 @@ function we(...e) {
1512
1512
  });
1513
1513
  });
1514
1514
  }
1515
- function Pe(e) {
1515
+ function Re(e) {
1516
1516
  const t = useRef({ ...e });
1517
- return K(() => {
1517
+ return q(() => {
1518
1518
  for (const n in e)
1519
1519
  t.current[n] = e[n];
1520
1520
  }, [e]), t.current;
1521
1521
  }
1522
- const at = createContext(null);
1522
+ const lt = createContext(null);
1523
1523
  function Wt(e, t) {
1524
1524
  const n = useRef({
1525
1525
  getLayout: () => ({}),
1526
- setLayout: Nt
1526
+ setLayout: Ft
1527
1527
  });
1528
- useImperativeHandle(t, () => n.current, []), K(() => {
1528
+ useImperativeHandle(t, () => n.current, []), q(() => {
1529
1529
  Object.assign(
1530
1530
  n.current,
1531
- tt({ groupId: e })
1531
+ nt({ groupId: e })
1532
1532
  );
1533
1533
  });
1534
1534
  }
@@ -1542,228 +1542,231 @@ function Ut({
1542
1542
  groupRef: l,
1543
1543
  id: r,
1544
1544
  onLayoutChange: a,
1545
- onLayoutChanged: u,
1546
- orientation: c = "horizontal",
1547
- resizeTargetMinimumSize: m = {
1545
+ onLayoutChanged: c,
1546
+ orientation: f = "horizontal",
1547
+ resizeTargetMinimumSize: g = {
1548
1548
  coarse: 20,
1549
1549
  fine: 10
1550
1550
  },
1551
1551
  style: d,
1552
- ...v
1552
+ ...b
1553
1553
  }) {
1554
- const b = useRef({
1554
+ const x = useRef({
1555
1555
  onLayoutChange: {},
1556
1556
  onLayoutChanged: {}
1557
- }), f = oe((x) => {
1558
- j(b.current.onLayoutChange, x) || (b.current.onLayoutChange = x, a?.(x));
1559
- }), h = oe((x) => {
1560
- j(b.current.onLayoutChanged, x) || (b.current.onLayoutChanged = x, u?.(x));
1561
- }), g = be(r), y = useRef(null), [z, S] = Bt(), p = useRef({
1557
+ }), u = se((z) => {
1558
+ W(x.current.onLayoutChange, z) || (x.current.onLayoutChange = z, a?.(z));
1559
+ }), p = se((z) => {
1560
+ W(x.current.onLayoutChanged, z) || (x.current.onLayoutChanged = z, c?.(z));
1561
+ }), m = Le(r), S = useRef(null), [v, y] = Bt(), h = useRef({
1562
1562
  lastExpandedPanelSizes: {},
1563
1563
  layouts: {},
1564
1564
  panels: [],
1565
- resizeTargetMinimumSize: m,
1565
+ resizeTargetMinimumSize: g,
1566
1566
  separators: []
1567
- }), P = we(y, s);
1568
- Wt(g, l);
1569
- const M = oe(
1570
- (x, w) => {
1571
- const E = W(), R = Me(x), I = $(x);
1572
- if (I) {
1573
- let O = false;
1574
- switch (E.state) {
1567
+ }), w = Ce(S, s);
1568
+ Wt(m, l);
1569
+ const M = se(
1570
+ (z, L) => {
1571
+ const k = K(), R = ke(z), E = H(z);
1572
+ if (E) {
1573
+ let I = false;
1574
+ switch (k.state) {
1575
1575
  case "active": {
1576
- O = E.hitRegions.some(
1577
- (H) => H.group === R
1576
+ I = k.hitRegions.some(
1577
+ (V) => V.group === R
1578
1578
  );
1579
1579
  break;
1580
1580
  }
1581
1581
  }
1582
1582
  return {
1583
- flexGrow: I.layout[w] ?? 1,
1584
- pointerEvents: O ? "none" : void 0
1583
+ flexGrow: E.layout[L] ?? 1,
1584
+ pointerEvents: I ? "none" : void 0
1585
1585
  };
1586
1586
  }
1587
- if (n?.[w])
1587
+ if (n?.[L])
1588
1588
  return {
1589
- flexGrow: n?.[w]
1589
+ flexGrow: n?.[L]
1590
1590
  };
1591
1591
  }
1592
- ), C = Pe({
1592
+ ), P = Re({
1593
1593
  defaultLayout: n,
1594
1594
  disableCursor: o
1595
- }), X = useMemo(
1595
+ }), G = useMemo(
1596
1596
  () => ({
1597
1597
  get disableCursor() {
1598
- return !!C.disableCursor;
1598
+ return !!P.disableCursor;
1599
1599
  },
1600
1600
  getPanelStyles: M,
1601
- id: g,
1602
- orientation: c,
1603
- registerPanel: (x) => {
1604
- const w = p.current;
1605
- return w.panels = Se(c, [
1606
- ...w.panels,
1607
- x
1608
- ]), S(), () => {
1609
- w.panels = w.panels.filter(
1610
- (E) => E !== x
1611
- ), S();
1601
+ id: m,
1602
+ orientation: f,
1603
+ registerPanel: (z) => {
1604
+ const L = h.current;
1605
+ return L.panels = be(f, [
1606
+ ...L.panels,
1607
+ z
1608
+ ]), y(), () => {
1609
+ L.panels = L.panels.filter(
1610
+ (k) => k !== z
1611
+ ), y();
1612
1612
  };
1613
1613
  },
1614
- registerSeparator: (x) => {
1615
- const w = p.current;
1616
- return w.separators = Se(c, [
1617
- ...w.separators,
1618
- x
1619
- ]), S(), () => {
1620
- w.separators = w.separators.filter(
1621
- (E) => E !== x
1622
- ), S();
1614
+ registerSeparator: (z) => {
1615
+ const L = h.current;
1616
+ return L.separators = be(f, [
1617
+ ...L.separators,
1618
+ z
1619
+ ]), y(), () => {
1620
+ L.separators = L.separators.filter(
1621
+ (k) => k !== z
1622
+ ), y();
1623
1623
  };
1624
1624
  },
1625
- togglePanelDisabled: (x, w) => {
1626
- const R = p.current.panels.find(
1627
- (H) => H.id === x
1625
+ updatePanelProps: (z, { disabled: L }) => {
1626
+ const R = h.current.panels.find(
1627
+ (V) => V.id === z
1628
1628
  );
1629
- R && (R.panelConstraints.disabled = w);
1630
- const I = Me(g), O = $(g);
1631
- I && O && _(I, {
1632
- ...O,
1633
- derivedPanelConstraints: ge(I)
1629
+ R && (R.panelConstraints.disabled = L);
1630
+ const E = ke(m), I = H(m);
1631
+ E && I && $(E, {
1632
+ ...I,
1633
+ derivedPanelConstraints: ve(E)
1634
1634
  });
1635
1635
  },
1636
- toggleSeparatorDisabled: (x, w) => {
1637
- const R = p.current.separators.find(
1638
- (I) => I.id === x
1636
+ updateSeparatorProps: (z, {
1637
+ disabled: L,
1638
+ disableDoubleClick: k
1639
+ }) => {
1640
+ const E = h.current.separators.find(
1641
+ (I) => I.id === z
1639
1642
  );
1640
- R && (R.disabled = w);
1643
+ E && (E.disabled = L, E.disableDoubleClick = k);
1641
1644
  }
1642
1645
  }),
1643
- [M, g, S, c, C]
1644
- ), F = useRef(null);
1645
- return K(() => {
1646
- const x = y.current;
1647
- if (x === null)
1646
+ [M, m, y, f, P]
1647
+ ), N = useRef(null);
1648
+ return q(() => {
1649
+ const z = S.current;
1650
+ if (z === null)
1648
1651
  return;
1649
- const w = p.current;
1650
- let E;
1651
- if (C.defaultLayout !== void 0 && Object.keys(C.defaultLayout).length === w.panels.length) {
1652
- E = {};
1653
- for (const ee of w.panels) {
1654
- const ae = C.defaultLayout[ee.id];
1655
- ae !== void 0 && (E[ee.id] = ae);
1652
+ const L = h.current;
1653
+ let k;
1654
+ if (P.defaultLayout !== void 0 && Object.keys(P.defaultLayout).length === L.panels.length) {
1655
+ k = {};
1656
+ for (const j of L.panels) {
1657
+ const Y = P.defaultLayout[j.id];
1658
+ Y !== void 0 && (k[j.id] = Y);
1656
1659
  }
1657
1660
  }
1658
1661
  const R = {
1659
1662
  disabled: !!i,
1660
- element: x,
1661
- id: g,
1663
+ element: z,
1664
+ id: m,
1662
1665
  mutableState: {
1663
- defaultLayout: E,
1664
- disableCursor: !!C.disableCursor,
1665
- expandedPanelSizes: p.current.lastExpandedPanelSizes,
1666
- layouts: p.current.layouts
1666
+ defaultLayout: k,
1667
+ disableCursor: !!P.disableCursor,
1668
+ expandedPanelSizes: h.current.lastExpandedPanelSizes,
1669
+ layouts: h.current.layouts
1667
1670
  },
1668
- orientation: c,
1669
- panels: w.panels,
1670
- resizeTargetMinimumSize: w.resizeTargetMinimumSize,
1671
- separators: w.separators
1671
+ orientation: f,
1672
+ panels: L.panels,
1673
+ resizeTargetMinimumSize: L.resizeTargetMinimumSize,
1674
+ separators: L.separators
1672
1675
  };
1673
- F.current = R;
1674
- const I = jt(R), { defaultLayoutDeferred: O, derivedPanelConstraints: H, layout: Ce } = $(R.id, true);
1675
- !O && H.length > 0 && (f(Ce), h(Ce));
1676
- const lt = ye(g, (ee) => {
1677
- const { defaultLayoutDeferred: ae, derivedPanelConstraints: Re, layout: le } = ee.next;
1678
- if (ae || Re.length === 0)
1676
+ N.current = R;
1677
+ const E = Vt(R), { defaultLayoutDeferred: I, derivedPanelConstraints: V, layout: ue } = H(R.id, true);
1678
+ !I && V.length > 0 && (u(ue), p(ue));
1679
+ const oe = ze(m, (j) => {
1680
+ const { defaultLayoutDeferred: Y, derivedPanelConstraints: Ee, layout: ce } = j.next;
1681
+ if (Y || Ee.length === 0)
1679
1682
  return;
1680
- const ut = R.panels.map(({ id: N }) => N).join(",");
1681
- R.mutableState.layouts[ut] = le, Re.forEach((N) => {
1682
- if (N.collapsible) {
1683
- const { layout: pe } = ee.prev ?? {};
1684
- if (pe) {
1685
- const ft = k(
1686
- N.collapsedSize,
1687
- le[N.panelId]
1688
- ), dt = k(
1689
- N.collapsedSize,
1690
- pe[N.panelId]
1683
+ const ut = R.panels.map(({ id: _ }) => _).join(",");
1684
+ R.mutableState.layouts[ut] = ce, Ee.forEach((_) => {
1685
+ if (_.collapsible) {
1686
+ const { layout: ge } = j.prev ?? {};
1687
+ if (ge) {
1688
+ const ft = D(
1689
+ _.collapsedSize,
1690
+ ce[_.panelId]
1691
+ ), dt = D(
1692
+ _.collapsedSize,
1693
+ ge[_.panelId]
1691
1694
  );
1692
- ft && !dt && (R.mutableState.expandedPanelSizes[N.panelId] = pe[N.panelId]);
1695
+ ft && !dt && (R.mutableState.expandedPanelSizes[_.panelId] = ge[_.panelId]);
1693
1696
  }
1694
1697
  }
1695
1698
  });
1696
- const ct = W().state !== "active";
1697
- f(le), ct && h(le);
1699
+ const ct = K().state !== "active";
1700
+ u(ce), ct && p(ce);
1698
1701
  });
1699
1702
  return () => {
1700
- F.current = null, I(), lt();
1703
+ N.current = null, E(), oe();
1701
1704
  };
1702
1705
  }, [
1703
1706
  i,
1704
- g,
1705
- h,
1707
+ m,
1708
+ p,
1709
+ u,
1706
1710
  f,
1707
- c,
1708
- z,
1709
- C
1711
+ v,
1712
+ P
1710
1713
  ]), useEffect(() => {
1711
- const x = F.current;
1712
- x && (x.mutableState.defaultLayout = n, x.mutableState.disableCursor = !!o);
1713
- }), /* @__PURE__ */ jsx(at.Provider, { value: X, children: /* @__PURE__ */ jsx(
1714
+ const z = N.current;
1715
+ z && (z.mutableState.defaultLayout = n, z.mutableState.disableCursor = !!o);
1716
+ }), /* @__PURE__ */ jsx(lt.Provider, { value: G, children: /* @__PURE__ */ jsx(
1714
1717
  "div",
1715
1718
  {
1716
- ...v,
1719
+ ...b,
1717
1720
  className: t,
1718
1721
  "data-group": true,
1719
- "data-testid": g,
1720
- id: g,
1721
- ref: P,
1722
+ "data-testid": m,
1723
+ id: m,
1724
+ ref: w,
1722
1725
  style: {
1723
1726
  height: "100%",
1724
1727
  width: "100%",
1725
1728
  overflow: "hidden",
1726
1729
  ...d,
1727
1730
  display: "flex",
1728
- flexDirection: c === "horizontal" ? "row" : "column",
1731
+ flexDirection: f === "horizontal" ? "row" : "column",
1729
1732
  flexWrap: "nowrap",
1730
1733
  // Inform the browser that the library is handling touch events for this element
1731
1734
  // but still allow users to scroll content within panels in the non-resizing direction
1732
1735
  // NOTE This is not an inherited style
1733
1736
  // See github.com/bvaughn/react-resizable-panels/issues/662
1734
- touchAction: c === "horizontal" ? "pan-y" : "pan-x"
1737
+ touchAction: f === "horizontal" ? "pan-y" : "pan-x"
1735
1738
  },
1736
1739
  children: e
1737
1740
  }
1738
1741
  ) });
1739
1742
  }
1740
1743
  Ut.displayName = "Group";
1741
- function Le() {
1742
- const e = useContext(at);
1743
- return L(
1744
+ function Me() {
1745
+ const e = useContext(lt);
1746
+ return C(
1744
1747
  e,
1745
1748
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
1746
1749
  ), e;
1747
1750
  }
1748
- function Xt(e, t) {
1749
- const { id: n } = Le(), o = useRef({
1750
- collapse: he,
1751
- expand: he,
1751
+ function qt(e, t) {
1752
+ const { id: n } = Me(), o = useRef({
1753
+ collapse: ye,
1754
+ expand: ye,
1752
1755
  getSize: () => ({
1753
1756
  asPercentage: 0,
1754
1757
  inPixels: 0
1755
1758
  }),
1756
1759
  isCollapsed: () => false,
1757
- resize: he
1760
+ resize: ye
1758
1761
  });
1759
- useImperativeHandle(t, () => o.current, []), K(() => {
1762
+ useImperativeHandle(t, () => o.current, []), q(() => {
1760
1763
  Object.assign(
1761
1764
  o.current,
1762
- et({ groupId: n, panelId: e })
1765
+ tt({ groupId: n, panelId: e })
1763
1766
  );
1764
1767
  });
1765
1768
  }
1766
- function qt({
1769
+ function Yt({
1767
1770
  children: e,
1768
1771
  className: t,
1769
1772
  collapsedSize: n = "0%",
@@ -1773,96 +1776,96 @@ function qt({
1773
1776
  elementRef: l,
1774
1777
  groupResizeBehavior: r = "preserve-relative-size",
1775
1778
  id: a,
1776
- maxSize: u = "100%",
1777
- minSize: c = "0%",
1778
- onResize: m,
1779
+ maxSize: c = "100%",
1780
+ minSize: f = "0%",
1781
+ onResize: g,
1779
1782
  panelRef: d,
1780
- style: v,
1781
- ...b
1783
+ style: b,
1784
+ ...x
1782
1785
  }) {
1783
- const f = !!a, h = be(a), g = Pe({
1786
+ const u = !!a, p = Le(a), m = Re({
1784
1787
  disabled: s
1785
- }), y = useRef(null), z = we(y, l), {
1786
- getPanelStyles: S,
1787
- id: p,
1788
- orientation: P,
1788
+ }), S = useRef(null), v = Ce(S, l), {
1789
+ getPanelStyles: y,
1790
+ id: h,
1791
+ orientation: w,
1789
1792
  registerPanel: M,
1790
- togglePanelDisabled: C
1791
- } = Le(), X = m !== null, F = oe(
1792
- (R, I, O) => {
1793
- m?.(R, a, O);
1793
+ updatePanelProps: P
1794
+ } = Me(), G = g !== null, N = se(
1795
+ (R, E, I) => {
1796
+ g?.(R, a, I);
1794
1797
  }
1795
1798
  );
1796
- K(() => {
1797
- const R = y.current;
1799
+ q(() => {
1800
+ const R = S.current;
1798
1801
  if (R !== null) {
1799
- const I = {
1802
+ const E = {
1800
1803
  element: R,
1801
- id: h,
1802
- idIsStable: f,
1804
+ id: p,
1805
+ idIsStable: u,
1803
1806
  mutableValues: {
1804
1807
  expandToSize: void 0,
1805
1808
  prevSize: void 0
1806
1809
  },
1807
- onResize: X ? F : void 0,
1810
+ onResize: G ? N : void 0,
1808
1811
  panelConstraints: {
1809
1812
  groupResizeBehavior: r,
1810
1813
  collapsedSize: n,
1811
1814
  collapsible: o,
1812
1815
  defaultSize: i,
1813
- disabled: g.disabled,
1814
- maxSize: u,
1815
- minSize: c
1816
+ disabled: m.disabled,
1817
+ maxSize: c,
1818
+ minSize: f
1816
1819
  }
1817
1820
  };
1818
- return M(I);
1821
+ return M(E);
1819
1822
  }
1820
1823
  }, [
1821
1824
  r,
1822
1825
  n,
1823
1826
  o,
1824
1827
  i,
1825
- X,
1826
- h,
1827
- f,
1828
+ G,
1829
+ p,
1828
1830
  u,
1829
1831
  c,
1830
- F,
1832
+ f,
1833
+ N,
1831
1834
  M,
1832
- g
1835
+ m
1833
1836
  ]), useEffect(() => {
1834
- C(h, !!s);
1835
- }, [s, h, C]), Xt(h, d);
1836
- const x = () => {
1837
- const R = S(p, h);
1837
+ P(p, { disabled: s });
1838
+ }, [s, p, P]), qt(p, d);
1839
+ const z = () => {
1840
+ const R = y(h, p);
1838
1841
  if (R)
1839
1842
  return JSON.stringify(R);
1840
- }, w = useSyncExternalStore(
1841
- (R) => ye(p, R),
1842
- x,
1843
- x
1843
+ }, L = useSyncExternalStore(
1844
+ (R) => ze(h, R),
1845
+ z,
1846
+ z
1844
1847
  );
1845
- let E;
1846
- return w ? E = JSON.parse(w) : i ? E = {
1848
+ let k;
1849
+ return L ? k = JSON.parse(L) : i ? k = {
1847
1850
  flexGrow: void 0,
1848
1851
  flexShrink: void 0,
1849
1852
  flexBasis: i
1850
- } : E = { flexGrow: 1 }, /* @__PURE__ */ jsx(
1853
+ } : k = { flexGrow: 1 }, /* @__PURE__ */ jsx(
1851
1854
  "div",
1852
1855
  {
1853
- ...b,
1854
- "aria-disabled": s || void 0,
1856
+ ...x,
1857
+ "data-disabled": s || void 0,
1855
1858
  "data-panel": true,
1856
- "data-testid": h,
1857
- id: h,
1858
- ref: z,
1859
+ "data-testid": p,
1860
+ id: p,
1861
+ ref: v,
1859
1862
  style: {
1860
- ...Yt,
1863
+ ...Jt,
1861
1864
  display: "flex",
1862
1865
  flexBasis: 0,
1863
1866
  flexShrink: 1,
1864
1867
  overflow: "visible",
1865
- ...E
1868
+ ...k
1866
1869
  },
1867
1870
  children: /* @__PURE__ */ jsx(
1868
1871
  "div",
@@ -1873,12 +1876,12 @@ function qt({
1873
1876
  maxWidth: "100%",
1874
1877
  flexGrow: 1,
1875
1878
  overflow: "auto",
1876
- ...v,
1879
+ ...b,
1877
1880
  // Inform the browser that the library is handling touch events for this element
1878
1881
  // but still allow users to scroll content within panels in the non-resizing direction
1879
1882
  // NOTE This is not an inherited style
1880
1883
  // See github.com/bvaughn/react-resizable-panels/issues/662
1881
- touchAction: P === "horizontal" ? "pan-y" : "pan-x"
1884
+ touchAction: w === "horizontal" ? "pan-y" : "pan-x"
1882
1885
  },
1883
1886
  children: e
1884
1887
  }
@@ -1886,8 +1889,8 @@ function qt({
1886
1889
  }
1887
1890
  );
1888
1891
  }
1889
- qt.displayName = "Panel";
1890
- const Yt = {
1892
+ Yt.displayName = "Panel";
1893
+ const Jt = {
1891
1894
  minHeight: 0,
1892
1895
  maxHeight: "100%",
1893
1896
  height: "auto",
@@ -1899,7 +1902,7 @@ const Yt = {
1899
1902
  padding: 0,
1900
1903
  margin: 0
1901
1904
  };
1902
- function Jt({
1905
+ function Zt({
1903
1906
  layout: e,
1904
1907
  panelConstraints: t,
1905
1908
  panelId: n,
@@ -1910,22 +1913,22 @@ function Jt({
1910
1913
  (a) => a.panelId === n
1911
1914
  );
1912
1915
  if (r) {
1913
- const a = r.maxSize, u = r.collapsible ? r.collapsedSize : r.minSize, c = [o, o + 1];
1914
- s = B({
1915
- layout: se({
1916
- delta: u - l,
1916
+ const a = r.maxSize, c = r.collapsible ? r.collapsedSize : r.minSize, f = [o, o + 1];
1917
+ s = U({
1918
+ layout: le({
1919
+ delta: c - l,
1917
1920
  initialLayout: e,
1918
1921
  panelConstraints: t,
1919
- pivotIndices: c,
1922
+ pivotIndices: f,
1920
1923
  prevLayout: e
1921
1924
  }),
1922
1925
  panelConstraints: t
1923
- })[n], i = B({
1924
- layout: se({
1926
+ })[n], i = U({
1927
+ layout: le({
1925
1928
  delta: a - l,
1926
1929
  initialLayout: e,
1927
1930
  panelConstraints: t,
1928
- pivotIndices: c,
1931
+ pivotIndices: f,
1929
1932
  prevLayout: e
1930
1933
  }),
1931
1934
  panelConstraints: t
@@ -1938,85 +1941,103 @@ function Jt({
1938
1941
  valueNow: l
1939
1942
  };
1940
1943
  }
1941
- function Zt({
1944
+ function Qt({
1942
1945
  children: e,
1943
1946
  className: t,
1944
1947
  disabled: n,
1945
- elementRef: o,
1946
- id: i,
1947
- style: s,
1948
- ...l
1948
+ disableDoubleClick: o,
1949
+ elementRef: i,
1950
+ id: s,
1951
+ style: l,
1952
+ ...r
1949
1953
  }) {
1950
- const r = be(i), a = Pe({
1951
- disabled: n
1952
- }), [u, c] = useState({}), [m, d] = useState("inactive"), v = useRef(null), b = we(v, o), {
1953
- disableCursor: f,
1954
- id: h,
1955
- orientation: g,
1956
- registerSeparator: y,
1957
- toggleSeparatorDisabled: z
1958
- } = Le(), S = g === "horizontal" ? "vertical" : "horizontal";
1959
- K(() => {
1960
- const P = v.current;
1961
- if (P !== null) {
1962
- const M = {
1963
- disabled: a.disabled,
1964
- element: P,
1965
- id: r
1966
- }, C = y(M), X = Gt(
1967
- (x) => {
1968
- d(
1969
- x.next.state !== "inactive" && x.next.hitRegions.some(
1970
- (w) => w.separator === M
1971
- ) ? x.next.state : "inactive"
1954
+ const a = Le(s), c = Re({
1955
+ disabled: n,
1956
+ disableDoubleClick: o
1957
+ }), [f, g] = useState({}), [d, b] = useState("inactive"), [x, u] = useState(false), p = useRef(null), m = Ce(p, i), {
1958
+ disableCursor: S,
1959
+ id: v,
1960
+ orientation: y,
1961
+ registerSeparator: h,
1962
+ updateSeparatorProps: w
1963
+ } = Me(), M = y === "horizontal" ? "vertical" : "horizontal";
1964
+ q(() => {
1965
+ const N = p.current;
1966
+ if (N !== null) {
1967
+ const z = {
1968
+ disabled: c.disabled,
1969
+ disableDoubleClick: c.disableDoubleClick,
1970
+ element: N,
1971
+ id: a
1972
+ }, L = h(z), k = Gt(
1973
+ (E) => {
1974
+ b(
1975
+ E.next.state !== "inactive" && E.next.hitRegions.some(
1976
+ (I) => I.separator === z
1977
+ ) ? E.next.state : "inactive"
1972
1978
  );
1973
1979
  }
1974
- ), F = ye(
1975
- h,
1976
- (x) => {
1977
- const { derivedPanelConstraints: w, layout: E, separatorToPanels: R } = x.next, I = R.get(M);
1978
- if (I) {
1979
- const O = I[0], H = I.indexOf(O);
1980
- c(
1981
- Jt({
1982
- layout: E,
1983
- panelConstraints: w,
1984
- panelId: O.id,
1985
- panelIndex: H
1980
+ ), R = ze(
1981
+ v,
1982
+ (E) => {
1983
+ const { derivedPanelConstraints: I, layout: V, separatorToPanels: ue } = E.next, oe = ue.get(z);
1984
+ if (oe) {
1985
+ const j = oe[0], Y = oe.indexOf(j);
1986
+ g(
1987
+ Zt({
1988
+ layout: V,
1989
+ panelConstraints: I,
1990
+ panelId: j.id,
1991
+ panelIndex: Y
1986
1992
  })
1987
1993
  );
1988
1994
  }
1989
1995
  }
1990
1996
  );
1991
1997
  return () => {
1992
- X(), F(), C();
1998
+ k(), R(), L();
1993
1999
  };
1994
2000
  }
1995
- }, [h, r, y, a]), useEffect(() => {
1996
- z(r, !!n);
1997
- }, [n, r, z]);
1998
- let p;
1999
- return n && !f && (p = "not-allowed"), /* @__PURE__ */ jsx(
2001
+ }, [v, a, h, c]), useEffect(() => {
2002
+ w(a, { disabled: n, disableDoubleClick: o });
2003
+ }, [n, o, a, w]);
2004
+ let P;
2005
+ n && !S && (P = "not-allowed");
2006
+ let G;
2007
+ if (n)
2008
+ G = "disabled";
2009
+ else
2010
+ switch (d) {
2011
+ case "active": {
2012
+ G = "active";
2013
+ break;
2014
+ }
2015
+ default:
2016
+ x ? G = "focus" : G = d;
2017
+ }
2018
+ return /* @__PURE__ */ jsx(
2000
2019
  "div",
2001
2020
  {
2002
- ...l,
2003
- "aria-controls": u.valueControls,
2021
+ ...r,
2022
+ "aria-controls": f.valueControls,
2004
2023
  "aria-disabled": n || void 0,
2005
- "aria-orientation": S,
2006
- "aria-valuemax": u.valueMax,
2007
- "aria-valuemin": u.valueMin,
2008
- "aria-valuenow": u.valueNow,
2024
+ "aria-orientation": M,
2025
+ "aria-valuemax": f.valueMax,
2026
+ "aria-valuemin": f.valueMin,
2027
+ "aria-valuenow": f.valueNow,
2009
2028
  children: e,
2010
2029
  className: t,
2011
- "data-separator": n ? "disabled" : m,
2012
- "data-testid": r,
2013
- id: r,
2014
- ref: b,
2030
+ "data-separator": G,
2031
+ "data-testid": a,
2032
+ id: a,
2033
+ onBlur: () => u(false),
2034
+ onFocus: () => u(true),
2035
+ ref: m,
2015
2036
  role: "separator",
2016
2037
  style: {
2017
2038
  flexBasis: "auto",
2018
- cursor: p,
2019
- ...s,
2039
+ cursor: P,
2040
+ ...l,
2020
2041
  flexGrow: 0,
2021
2042
  flexShrink: 0,
2022
2043
  // Inform the browser that the library is handling touch events for this element
@@ -2027,16 +2048,16 @@ function Zt({
2027
2048
  }
2028
2049
  );
2029
2050
  }
2030
- Zt.displayName = "Separator";
2051
+ Qt.displayName = "Separator";
2031
2052
 
2032
2053
  function ResizablePanelGroup$1({ className, ...props }) {
2033
2054
  return (jsx(Ut, { "data-slot": "resizable-panel-group", className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className), ...props }));
2034
2055
  }
2035
2056
  function ResizablePanel$1({ ...props }) {
2036
- return jsx(qt, { "data-slot": "resizable-panel", ...props });
2057
+ return jsx(Yt, { "data-slot": "resizable-panel", ...props });
2037
2058
  }
2038
2059
  function ResizableHandle$1({ withHandle, className, ...props }) {
2039
- return (jsx(Zt, { "data-slot": "resizable-handle", className: cn("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 rtl:after:translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 rtl:aria-[orientation=horizontal]:after:-translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className), ...props, children: withHandle && (jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })) }));
2060
+ return (jsx(Qt, { "data-slot": "resizable-handle", className: cn("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 rtl:after:translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 rtl:aria-[orientation=horizontal]:after:-translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className), ...props, children: withHandle && (jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })) }));
2040
2061
  }
2041
2062
 
2042
2063
  const ResizableHandle = (props) => jsx(ResizableHandle$1, { ...props });