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