@gv-tech/ui-web 2.21.0 → 2.22.0
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.
- package/dist/accordion-BTF24dQU.js +1 -0
- package/dist/accordion-DHTV2Am8.mjs +221 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +10 -18
- package/dist/accordion.d.ts.map +1 -0
- package/dist/accordion.mjs +1 -1
- package/dist/accordion.test.d.ts +2 -0
- package/dist/accordion.test.d.ts.map +1 -0
- package/dist/alert-dialog-Bwn2-Uyf.mjs +164 -0
- package/dist/alert-dialog-DBMX5E0-.js +7 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +23 -43
- package/dist/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert-dialog.test.d.ts +2 -0
- package/dist/alert-dialog.test.d.ts.map +1 -0
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +11 -18
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.mjs +19 -19
- package/dist/alert.test.d.ts +2 -0
- package/dist/alert.test.d.ts.map +1 -0
- package/dist/{aspect-ratio-Bp8HMg-1.mjs → aspect-ratio-CFWobEnT.mjs} +11 -11
- package/dist/aspect-ratio-D9dApiWv.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +6 -10
- package/dist/aspect-ratio.d.ts.map +1 -0
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/aspect-ratio.test.d.ts +2 -0
- package/dist/aspect-ratio.test.d.ts.map +1 -0
- package/dist/avatar-BI7s8omb.js +1 -0
- package/dist/{avatar-vGm9JN1a.mjs → avatar-hzlewncL.mjs} +49 -48
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +9 -15
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.mjs +1 -1
- package/dist/avatar.test.d.ts +2 -0
- package/dist/avatar.test.d.ts.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +11 -16
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.mjs +7 -7
- package/dist/badge.test.d.ts +2 -0
- package/dist/badge.test.d.ts.map +1 -0
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +20 -35
- package/dist/breadcrumb.d.ts.map +1 -0
- package/dist/breadcrumb.mjs +26 -26
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +13 -17
- package/dist/button.d.ts.map +1 -0
- package/dist/button.mjs +12 -12
- package/dist/button.test.d.ts +2 -0
- package/dist/button.test.d.ts.map +1 -0
- package/dist/{calendar-oitID53a.mjs → calendar-DtFx4qdT.mjs} +856 -862
- package/dist/calendar-ykdYhTj9.js +1 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +11 -29
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.mjs +1 -1
- package/dist/calendar.test.d.ts +2 -0
- package/dist/calendar.test.d.ts.map +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +12 -19
- package/dist/card.d.ts.map +1 -0
- package/dist/card.mjs +28 -28
- package/dist/card.test.d.ts +2 -0
- package/dist/card.test.d.ts.map +1 -0
- package/dist/carousel-DSmAn1nc.js +1 -0
- package/dist/{carousel-CENzZCXN.mjs → carousel-PQJ97GjQ.mjs} +252 -252
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +24 -50
- package/dist/carousel.d.ts.map +1 -0
- package/dist/carousel.mjs +1 -1
- package/dist/carousel.test.d.ts +2 -0
- package/dist/carousel.test.d.ts.map +1 -0
- package/dist/chart.cjs +3 -3
- package/dist/chart.d.ts +17 -28
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.mjs +95 -85
- package/dist/chart.test.d.ts +2 -0
- package/dist/chart.test.d.ts.map +1 -0
- package/dist/checkbox-BOmSuATv.mjs +170 -0
- package/dist/checkbox-dK6DJKeV.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +8 -10
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/checkbox.mjs +1 -1
- package/dist/checkbox.test.d.ts +2 -0
- package/dist/checkbox.test.d.ts.map +1 -0
- package/dist/chunk-BmowowmI.mjs +14 -0
- package/dist/chunk-mLOUI7ql.js +1 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +8 -20
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.mjs +1 -1
- package/dist/collapsible.test.d.ts +2 -0
- package/dist/collapsible.test.d.ts.map +1 -0
- package/dist/command-CDSbHz4C.js +1 -0
- package/dist/command-j0rZqZ7B.mjs +531 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +83 -115
- package/dist/command.d.ts.map +1 -0
- package/dist/command.mjs +1 -1
- package/dist/command.test.d.ts +2 -0
- package/dist/command.test.d.ts.map +1 -0
- package/dist/context-menu-BWgLbKLP.js +1 -0
- package/dist/context-menu-CWSzssAO.mjs +292 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +24 -80
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.mjs +1 -1
- package/dist/context-menu.test.d.ts +2 -0
- package/dist/context-menu.test.d.ts.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +20 -31
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.mjs +25 -25
- package/dist/dialog.test.d.ts +2 -0
- package/dist/dialog.test.d.ts.map +1 -0
- package/dist/dist--EFQaGUD.mjs +18 -0
- package/dist/dist-9gQKRtL7.mjs +73 -0
- package/dist/dist-B28N93_W.js +1 -0
- package/dist/dist-B43Kk7ii.js +1 -0
- package/dist/dist-BQOrag93.mjs +152 -0
- package/dist/dist-BTPL2C0R.js +1 -0
- package/dist/dist-BTlmz3JV.js +1 -0
- package/dist/{dist-bDoR0CBU.mjs → dist-BjEG16aJ.mjs} +31 -32
- package/dist/{dist-DqvQ5UFr.mjs → dist-Bjlzl0jN.mjs} +10 -10
- package/dist/dist-BlKAvKHD.js +1 -0
- package/dist/dist-Bm8Cuttq.mjs +76 -0
- package/dist/dist-Byhx2fDJ.js +1 -0
- package/dist/dist-C3Z3atn0.mjs +10 -0
- package/dist/dist-C4q8IPk4.mjs +28 -0
- package/dist/{dist-BxmpAHsT.mjs → dist-C5EZ0AD6.mjs} +75 -75
- package/dist/dist-CEJNUZGZ.js +1 -0
- package/dist/dist-CGgemr2V.js +1 -0
- package/dist/dist-CPglx4om.js +1 -0
- package/dist/dist-CRmJFaEL.mjs +95 -0
- package/dist/dist-CSkpam6a.js +1 -0
- package/dist/dist-CTaBktQl.mjs +557 -0
- package/dist/dist-CV2U2xFR.js +1 -0
- package/dist/dist-C_45sBzc.js +1 -0
- package/dist/dist-Cb7OVHcJ.js +1 -0
- package/dist/dist-Ccv5O-Vw.js +1 -0
- package/dist/dist-Cv9YaN1n.mjs +61 -0
- package/dist/{dist-C9wnUiS4.mjs → dist-DCKyUINZ.mjs} +12 -12
- package/dist/dist-DQAJMTj0.js +1 -0
- package/dist/dist-D_tuvB-W.mjs +61 -0
- package/dist/dist-DaCPM8ia.js +1 -0
- package/dist/dist-DasmYflz.js +1 -0
- package/dist/{dist-d_pecHgw.mjs → dist-DdVp13bp.mjs} +2 -2
- package/dist/{dist-DikyKBU3.mjs → dist-Df2ez-DA.mjs} +1 -1
- package/dist/dist-DneYUKe0.js +1 -0
- package/dist/dist-Doq7FY_P.js +1 -0
- package/dist/{dist-Z7lEV5Nx.mjs → dist-Du2jbEkG.mjs} +346 -346
- package/dist/{dist-VI9bl_Wk.mjs → dist-DuTFGM_g.mjs} +1 -1
- package/dist/dist-Dw6-GQAn.js +1 -0
- package/dist/dist-DwGlbIjj.js +5 -0
- package/dist/dist-DynSBUGq.js +1 -0
- package/dist/dist-Dzjlf9ug.js +1 -0
- package/dist/dist-GaBUW_Tu.js +1 -0
- package/dist/{dist-FGQAMrhH.mjs → dist-N3JLy7yk.mjs} +1 -1
- package/dist/dist-NIAlh3KC.js +1 -0
- package/dist/dist-_LAgxsbh.mjs +117 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +25 -65
- package/dist/drawer.d.ts.map +1 -0
- package/dist/drawer.mjs +28 -28
- package/dist/drawer.test.d.ts +2 -0
- package/dist/drawer.test.d.ts.map +1 -0
- package/dist/dropdown-menu-Bz5LlLjl.js +1 -0
- package/dist/dropdown-menu-Cp1qpOLk.mjs +288 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +24 -80
- package/dist/dropdown-menu.d.ts.map +1 -0
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/dropdown-menu.test.d.ts +2 -0
- package/dist/dropdown-menu.test.d.ts.map +1 -0
- package/dist/es2015-Ca60p53M.js +41 -0
- package/dist/{es2015-a1b8kENC.mjs → es2015-DkZq_IIO.mjs} +218 -218
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +26 -53
- package/dist/form.d.ts.map +1 -0
- package/dist/form.mjs +48 -48
- package/dist/form.test.d.ts +2 -0
- package/dist/form.test.d.ts.map +1 -0
- package/dist/hooks/use-theme.d.ts +52 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts +45 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hover-card-BOk3-K0k.mjs +167 -0
- package/dist/hover-card-CyKIuXGH.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +9 -19
- package/dist/hover-card.d.ts.map +1 -0
- package/dist/hover-card.mjs +1 -1
- package/dist/hover-card.test.d.ts +2 -0
- package/dist/hover-card.test.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +108 -1360
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +30 -30
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +7 -9
- package/dist/input.d.ts.map +1 -0
- package/dist/input.mjs +8 -8
- package/dist/input.test.d.ts +2 -0
- package/dist/input.test.d.ts.map +1 -0
- package/dist/label-DGuuPl_e.mjs +22 -0
- package/dist/label-gVkdll-j.js +1 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +8 -11
- package/dist/label.d.ts.map +1 -0
- package/dist/label.mjs +1 -1
- package/dist/label.test.d.ts +2 -0
- package/dist/label.test.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +4 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/menubar-DNrIQhY5.mjs +410 -0
- package/dist/menubar-DkjAo6qJ.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +25 -79
- package/dist/menubar.d.ts.map +1 -0
- package/dist/menubar.mjs +1 -1
- package/dist/menubar.test.d.ts +2 -0
- package/dist/menubar.test.d.ts.map +1 -0
- package/dist/navigation-menu-1cmCEi0j.mjs +602 -0
- package/dist/navigation-menu-qPt8hpr5.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +15 -47
- package/dist/navigation-menu.d.ts.map +1 -0
- package/dist/navigation-menu.mjs +1 -1
- package/dist/navigation-menu.test.d.ts +2 -0
- package/dist/navigation-menu.test.d.ts.map +1 -0
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +31 -68
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.mjs +29 -29
- package/dist/pagination.test.d.ts +2 -0
- package/dist/pagination.test.d.ts.map +1 -0
- package/dist/popover-CbM1tqdC.mjs +201 -0
- package/dist/popover-DGTgqdKX.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +10 -24
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.mjs +1 -1
- package/dist/popover.test.d.ts +2 -0
- package/dist/popover.test.d.ts.map +1 -0
- package/dist/progress-30ehxjKg.mjs +81 -0
- package/dist/progress-BqWHea4f.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +7 -9
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.mjs +1 -1
- package/dist/progress.test.d.ts +2 -0
- package/dist/progress.test.d.ts.map +1 -0
- package/dist/radio-group-BGThTiQM.mjs +193 -0
- package/dist/radio-group-ClFpAswm.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +11 -16
- package/dist/radio-group.d.ts.map +1 -0
- package/dist/radio-group.mjs +1 -1
- package/dist/radio-group.test.d.ts +2 -0
- package/dist/radio-group.test.d.ts.map +1 -0
- package/dist/resizable-D09wr7tV.js +1 -0
- package/dist/{resizable-ChdgCzzx.mjs → resizable-DhOcAmNX.mjs} +275 -276
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +9 -22
- package/dist/resizable.d.ts.map +1 -0
- package/dist/resizable.mjs +1 -1
- package/dist/resizable.test.d.ts +2 -0
- package/dist/resizable.test.d.ts.map +1 -0
- package/dist/{scroll-area-3o0-cc3n.mjs → scroll-area-DJcPs0_v.mjs} +168 -169
- package/dist/scroll-area-W_aOLOdE.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +8 -14
- package/dist/scroll-area.d.ts.map +1 -0
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-area.test.d.ts +2 -0
- package/dist/scroll-area.test.d.ts.map +1 -0
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +8 -12
- package/dist/scroll-to-top.d.ts.map +1 -0
- package/dist/scroll-to-top.mjs +49 -49
- package/dist/scroll-to-top.test.d.ts +2 -0
- package/dist/scroll-to-top.test.d.ts.map +1 -0
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +8 -15
- package/dist/search.d.ts.map +1 -0
- package/dist/search.mjs +25 -26
- package/dist/search.test.d.ts +2 -0
- package/dist/search.test.d.ts.map +1 -0
- package/dist/select-BQtkQBiD.js +1 -0
- package/dist/select-D4bxRFq5.mjs +744 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +16 -54
- package/dist/select.d.ts.map +1 -0
- package/dist/select.mjs +1 -1
- package/dist/select.test.d.ts +2 -0
- package/dist/select.test.d.ts.map +1 -0
- package/dist/separator-BmkhoDge.js +1 -0
- package/dist/separator-DZACUutC.mjs +31 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +7 -9
- package/dist/separator.d.ts.map +1 -0
- package/dist/separator.mjs +1 -1
- package/dist/separator.test.d.ts +2 -0
- package/dist/separator.test.d.ts.map +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +28 -68
- package/dist/sheet.d.ts.map +1 -0
- package/dist/sheet.mjs +27 -27
- package/dist/sheet.test.d.ts +2 -0
- package/dist/sheet.test.d.ts.map +1 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +6 -9
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.mjs +6 -7
- package/dist/skeleton.test.d.ts +2 -0
- package/dist/skeleton.test.d.ts.map +1 -0
- package/dist/slider-Bkluwc3b.js +1 -0
- package/dist/slider-DTdrUy_s.mjs +366 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +7 -9
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.mjs +1 -1
- package/dist/slider.test.d.ts +2 -0
- package/dist/slider.test.d.ts.map +1 -0
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +8 -10
- package/dist/sonner.d.ts.map +1 -0
- package/dist/sonner.mjs +5 -5
- package/dist/sonner.test.d.ts +2 -0
- package/dist/sonner.test.d.ts.map +1 -0
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +16 -20
- package/dist/support-fab.d.ts.map +1 -0
- package/dist/support-fab.mjs +46 -46
- package/dist/support-fab.test.d.ts +2 -0
- package/dist/support-fab.test.d.ts.map +1 -0
- package/dist/switch-DENAxyga.js +1 -0
- package/dist/switch-DbsdyQVg.mjs +103 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +7 -9
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.mjs +1 -1
- package/dist/switch.test.d.ts +2 -0
- package/dist/switch.test.d.ts.map +1 -0
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +24 -35
- package/dist/table-of-contents.d.ts.map +1 -0
- package/dist/table-of-contents.mjs +82 -82
- package/dist/table-of-contents.test.d.ts +2 -0
- package/dist/table-of-contents.test.d.ts.map +1 -0
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +13 -43
- package/dist/table.d.ts.map +1 -0
- package/dist/table.mjs +37 -37
- package/dist/table.test.d.ts +2 -0
- package/dist/table.test.d.ts.map +1 -0
- package/dist/tabs-C9sMowgZ.mjs +136 -0
- package/dist/tabs-DeK-zpy4.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +10 -24
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tabs.mjs +1 -1
- package/dist/tabs.test.d.ts +2 -0
- package/dist/tabs.test.d.ts.map +1 -0
- package/dist/text.cjs +1 -1
- package/dist/text.d.ts +12 -17
- package/dist/text.d.ts.map +1 -0
- package/dist/text.mjs +11 -11
- package/dist/text.test.d.ts +2 -0
- package/dist/text.test.d.ts.map +1 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +7 -9
- package/dist/textarea.d.ts.map +1 -0
- package/dist/textarea.mjs +8 -8
- package/dist/textarea.test.d.ts +2 -0
- package/dist/textarea.test.d.ts.map +1 -0
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.d.ts +5 -9
- package/dist/theme-provider.d.ts.map +1 -0
- package/dist/theme-provider.mjs +5 -6
- package/dist/theme-toggle-DAHBgdy0.mjs +64 -0
- package/dist/theme-toggle-Dtze9fyN.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +4 -8
- package/dist/theme-toggle.d.ts.map +1 -0
- package/dist/theme-toggle.mjs +1 -1
- package/dist/theme-toggle.test.d.ts +2 -0
- package/dist/theme-toggle.test.d.ts.map +1 -0
- package/dist/toast-BtXY2QTe.js +1 -0
- package/dist/toast-G9LdgDDE.mjs +427 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts +16 -26
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.mjs +1 -1
- package/dist/toast.test.d.ts +2 -0
- package/dist/toast.test.d.ts.map +1 -0
- package/dist/toaster-CKD4CKAZ.js +1 -0
- package/dist/toaster-WQJjavlc.mjs +125 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +3 -6
- package/dist/toaster.d.ts.map +1 -0
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-group-B0H9TwdD.mjs +155 -0
- package/dist/toggle-group-CAyztsIl.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +13 -18
- package/dist/toggle-group.d.ts.map +1 -0
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle-group.test.d.ts +2 -0
- package/dist/toggle-group.test.d.ts.map +1 -0
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +9 -14
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.mjs +10 -10
- package/dist/toggle.test.d.ts +2 -0
- package/dist/toggle.test.d.ts.map +1 -0
- package/dist/{tooltip-oKfTBTbv.mjs → tooltip-BHEcM7lO.mjs} +71 -71
- package/dist/tooltip-CKcMl7tK.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +13 -25
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/tooltip.mjs +1 -1
- package/dist/utils-ChMUqofy.js +1 -0
- package/package.json +1 -1
- package/src/chart.tsx +72 -34
- package/dist/accordion-Be1vGv6M.js +0 -1
- package/dist/accordion-DXnU0LgU.mjs +0 -221
- package/dist/alert-dialog-BXRY0Ghq.js +0 -7
- package/dist/alert-dialog-fcZ-sL7h.mjs +0 -164
- package/dist/aspect-ratio-BP5HarYZ.js +0 -1
- package/dist/avatar-klFl8Sqa.js +0 -1
- package/dist/calendar-aIuSXzs7.js +0 -1
- package/dist/carousel-BjTSkVh9.js +0 -1
- package/dist/checkbox-Bwq7mXA2.mjs +0 -170
- package/dist/checkbox-DzEO1q4R.js +0 -1
- package/dist/command-D7hksKY6.js +0 -1
- package/dist/command-Ws_iF1hM.mjs +0 -531
- package/dist/context-menu-DJbgNJ7N.js +0 -1
- package/dist/context-menu-fu39gePi.mjs +0 -292
- package/dist/dist-0FXx-pUX.js +0 -1
- package/dist/dist-4A0ut6a8.mjs +0 -10
- package/dist/dist-B4N_7Tps.js +0 -1
- package/dist/dist-B5776DvK.js +0 -5
- package/dist/dist-B57mzJP3.mjs +0 -28
- package/dist/dist-B5VmV2K7.js +0 -1
- package/dist/dist-BBRD-Qfb.js +0 -1
- package/dist/dist-BUS_s_6N.js +0 -1
- package/dist/dist-BVKPqhkg.js +0 -1
- package/dist/dist-Ba7mQG9D.mjs +0 -117
- package/dist/dist-BeFCyPgD.js +0 -1
- package/dist/dist-Bf4P28CV.js +0 -1
- package/dist/dist-BfFVoFJN.js +0 -1
- package/dist/dist-BhtQH_6Z.js +0 -1
- package/dist/dist-BrCTkQXt.mjs +0 -62
- package/dist/dist-C2ArLRnq.js +0 -1
- package/dist/dist-C2pRTcV_.mjs +0 -62
- package/dist/dist-CIRItnqs.js +0 -1
- package/dist/dist-CL1DhkaL.js +0 -1
- package/dist/dist-CRe7xawr.js +0 -1
- package/dist/dist-CUFjt0cI.js +0 -1
- package/dist/dist-CaaGWewc.mjs +0 -557
- package/dist/dist-Ci2whnVp.js +0 -1
- package/dist/dist-CmBtqW5f.js +0 -1
- package/dist/dist-CsEsK2jW.js +0 -1
- package/dist/dist-CscAxhT8.js +0 -1
- package/dist/dist-CvtF5JdF.mjs +0 -95
- package/dist/dist-Cvwtowos.mjs +0 -77
- package/dist/dist-D2f83VMO.mjs +0 -73
- package/dist/dist-DmmUjo_P.js +0 -1
- package/dist/dist-Jtk3jeb9.mjs +0 -18
- package/dist/dist-Kqk0oQYU.js +0 -1
- package/dist/dist-_Osar3kp.js +0 -1
- package/dist/dist-cRjbOZRf.js +0 -1
- package/dist/dist-r36zVVcK.js +0 -1
- package/dist/dist-sRlXdzvf.mjs +0 -152
- package/dist/dropdown-menu-BGkQXJ-r.mjs +0 -288
- package/dist/dropdown-menu-uGMnmGL-.js +0 -1
- package/dist/es2015-Cx0gpR1a.js +0 -41
- package/dist/hover-card-DdIYJP-Q.mjs +0 -167
- package/dist/hover-card-Ua-2KlY-.js +0 -1
- package/dist/jsx-runtime-CN3qjQQx.js +0 -6
- package/dist/jsx-runtime-CW53Uo-e.mjs +0 -189
- package/dist/label-8YSUv4kt.js +0 -1
- package/dist/label-Bur66PVg.mjs +0 -22
- package/dist/menubar-Bq1Sfbf5.js +0 -1
- package/dist/menubar-D2fY6zkQ.mjs +0 -410
- package/dist/navigation-menu-BuOakbgA.mjs +0 -602
- package/dist/navigation-menu-so6EvLAY.js +0 -1
- package/dist/popover-BUADXRkO.mjs +0 -201
- package/dist/popover-nBrSPqHk.js +0 -1
- package/dist/progress-BTApMbqg.js +0 -6
- package/dist/progress-BbN-RNvs.mjs +0 -81
- package/dist/radio-group-C5oprOrt.mjs +0 -193
- package/dist/radio-group-FDXr6VLM.js +0 -1
- package/dist/resizable-ztiFzq_y.js +0 -1
- package/dist/scroll-area-DXZqIKXN.js +0 -1
- package/dist/select-B2qM503G.mjs +0 -744
- package/dist/select-BHCeW-MD.js +0 -1
- package/dist/separator-BZJ-SDvg.js +0 -1
- package/dist/separator-DJ_IwKUQ.mjs +0 -31
- package/dist/slider-CJJPQ0fH.mjs +0 -366
- package/dist/slider-DHccqrW2.js +0 -1
- package/dist/switch-BbcAUYjl.mjs +0 -103
- package/dist/switch-DZfRzgWs.js +0 -1
- package/dist/tabs-BEy0IIV0.js +0 -1
- package/dist/tabs-DqAKyl9T.mjs +0 -136
- package/dist/theme-toggle-DKQmD-FO.js +0 -1
- package/dist/theme-toggle-dQbFWNI8.mjs +0 -65
- package/dist/toast-C84Cpidq.js +0 -1
- package/dist/toast-CQbUslcw.mjs +0 -427
- package/dist/toaster-BpcpNRz1.js +0 -1
- package/dist/toaster-i6giQYiq.mjs +0 -126
- package/dist/toggle-group-B2S7fkhA.mjs +0 -155
- package/dist/toggle-group-BNn6MNiJ.js +0 -1
- package/dist/tooltip-CElrNodA.js +0 -1
- package/dist/utils-BxDanjP7.js +0 -1
- /package/dist/{dist-BmjFh8i_.mjs → dist-C9PlF532.mjs} +0 -0
- /package/dist/{dist-ALQAoSGx.mjs → dist-CCokLFyA.mjs} +0 -0
- /package/dist/{dist-BC_VB6JL.mjs → dist-DAe-fOIM.mjs} +0 -0
- /package/dist/{dist-BKFtvTm8.mjs → dist-DGzGsPqo.mjs} +0 -0
- /package/dist/{dist-Dh_jWJh-.mjs → dist-xgVOvcNx.mjs} +0 -0
- /package/dist/{utils-yc5uc46c.mjs → utils-A_oVsYw5.mjs} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
+
import { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u, useSyncExternalStore as d } from "react";
|
|
3
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
4
4
|
import { GripVertical as p } from "lucide-react";
|
|
5
5
|
//#region ../../node_modules/.bun/react-resizable-panels@4.10.0+d0e719b86e9808b5/node_modules/react-resizable-panels/dist/react-resizable-panels.js
|
|
6
|
-
|
|
7
|
-
function h(e, t) {
|
|
6
|
+
function m(e, t) {
|
|
8
7
|
let n = getComputedStyle(e);
|
|
9
8
|
return t * parseFloat(n.fontSize);
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function h(e, t) {
|
|
12
11
|
let n = getComputedStyle(e.ownerDocument.body);
|
|
13
12
|
return t * parseFloat(n.fontSize);
|
|
14
13
|
}
|
|
15
|
-
function
|
|
14
|
+
function g(e) {
|
|
16
15
|
return e / 100 * window.innerHeight;
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function _(e) {
|
|
19
18
|
return e / 100 * window.innerWidth;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function v(e) {
|
|
22
21
|
switch (typeof e) {
|
|
23
22
|
case "number": return [e, "px"];
|
|
24
23
|
case "string": {
|
|
@@ -27,8 +26,8 @@ function y(e) {
|
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
function
|
|
31
|
-
let r, [i, a] =
|
|
29
|
+
function y({ groupSize: e, panelElement: t, styleProp: n }) {
|
|
30
|
+
let r, [i, a] = v(n);
|
|
32
31
|
switch (a) {
|
|
33
32
|
case "%":
|
|
34
33
|
r = i / 100 * e;
|
|
@@ -37,29 +36,29 @@ function b({ groupSize: e, panelElement: t, styleProp: n }) {
|
|
|
37
36
|
r = i;
|
|
38
37
|
break;
|
|
39
38
|
case "rem":
|
|
40
|
-
r =
|
|
39
|
+
r = h(t, i);
|
|
41
40
|
break;
|
|
42
41
|
case "em":
|
|
43
|
-
r =
|
|
42
|
+
r = m(t, i);
|
|
44
43
|
break;
|
|
45
44
|
case "vh":
|
|
46
|
-
r =
|
|
45
|
+
r = g(i);
|
|
47
46
|
break;
|
|
48
47
|
case "vw":
|
|
49
|
-
r =
|
|
48
|
+
r = _(i);
|
|
50
49
|
break;
|
|
51
50
|
}
|
|
52
51
|
return r;
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function b(e) {
|
|
55
54
|
return parseFloat(e.toFixed(3));
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function x({ group: e }) {
|
|
58
57
|
let { orientation: t, panels: n } = e;
|
|
59
58
|
return n.reduce((e, n) => (e += t === "horizontal" ? n.element.offsetWidth : n.element.offsetHeight, e), 0);
|
|
60
59
|
}
|
|
61
|
-
function
|
|
62
|
-
let { panels: t } = e, n =
|
|
60
|
+
function S(e) {
|
|
61
|
+
let { panels: t } = e, n = x({ group: e });
|
|
63
62
|
return n === 0 ? t.map((e) => ({
|
|
64
63
|
groupResizeBehavior: e.panelConstraints.groupResizeBehavior,
|
|
65
64
|
collapsedSize: 0,
|
|
@@ -71,25 +70,25 @@ function C(e) {
|
|
|
71
70
|
panelId: e.id
|
|
72
71
|
})) : t.map((e) => {
|
|
73
72
|
let { element: t, panelConstraints: r } = e, i = 0;
|
|
74
|
-
r.collapsedSize !== void 0 && (i =
|
|
73
|
+
r.collapsedSize !== void 0 && (i = b(y({
|
|
75
74
|
groupSize: n,
|
|
76
75
|
panelElement: t,
|
|
77
76
|
styleProp: r.collapsedSize
|
|
78
77
|
}) / n * 100));
|
|
79
78
|
let a;
|
|
80
|
-
r.defaultSize !== void 0 && (a =
|
|
79
|
+
r.defaultSize !== void 0 && (a = b(y({
|
|
81
80
|
groupSize: n,
|
|
82
81
|
panelElement: t,
|
|
83
82
|
styleProp: r.defaultSize
|
|
84
83
|
}) / n * 100));
|
|
85
84
|
let o = 0;
|
|
86
|
-
r.minSize !== void 0 && (o =
|
|
85
|
+
r.minSize !== void 0 && (o = b(y({
|
|
87
86
|
groupSize: n,
|
|
88
87
|
panelElement: t,
|
|
89
88
|
styleProp: r.minSize
|
|
90
89
|
}) / n * 100));
|
|
91
90
|
let s = 100;
|
|
92
|
-
return r.maxSize !== void 0 && (s =
|
|
91
|
+
return r.maxSize !== void 0 && (s = b(y({
|
|
93
92
|
groupSize: n,
|
|
94
93
|
panelElement: t,
|
|
95
94
|
styleProp: r.maxSize
|
|
@@ -105,46 +104,46 @@ function C(e) {
|
|
|
105
104
|
};
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function C(e, t = "Assertion error") {
|
|
109
108
|
if (!e) throw Error(t);
|
|
110
109
|
}
|
|
111
|
-
function
|
|
112
|
-
return Array.from(t).sort(e === "horizontal" ?
|
|
110
|
+
function w(e, t) {
|
|
111
|
+
return Array.from(t).sort(e === "horizontal" ? T : E);
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function T(e, t) {
|
|
115
114
|
let n = e.element.offsetLeft - t.element.offsetLeft;
|
|
116
115
|
return n === 0 ? e.element.offsetWidth - t.element.offsetWidth : n;
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function E(e, t) {
|
|
119
118
|
let n = e.element.offsetTop - t.element.offsetTop;
|
|
120
119
|
return n === 0 ? e.element.offsetHeight - t.element.offsetHeight : n;
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function D(e) {
|
|
123
122
|
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function O(e, t) {
|
|
126
125
|
return {
|
|
127
126
|
x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(Math.abs(e.x - t.left), Math.abs(e.x - t.right)),
|
|
128
127
|
y: e.y >= t.top && e.y <= t.bottom ? 0 : Math.min(Math.abs(e.y - t.top), Math.abs(e.y - t.bottom))
|
|
129
128
|
};
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function k({ orientation: e, rects: t, targetRect: n }) {
|
|
132
131
|
let r = {
|
|
133
132
|
x: n.x + n.width / 2,
|
|
134
133
|
y: n.y + n.height / 2
|
|
135
134
|
}, i, a = Number.MAX_VALUE;
|
|
136
135
|
for (let n of t) {
|
|
137
|
-
let { x: t, y: o } =
|
|
136
|
+
let { x: t, y: o } = O(r, n), s = e === "horizontal" ? t : o;
|
|
138
137
|
s < a && (a = s, i = n);
|
|
139
138
|
}
|
|
140
|
-
return
|
|
139
|
+
return C(i, "No rect found"), i;
|
|
141
140
|
}
|
|
142
|
-
var
|
|
143
|
-
function
|
|
144
|
-
return
|
|
141
|
+
var A;
|
|
142
|
+
function j() {
|
|
143
|
+
return A === void 0 && (A = typeof matchMedia == "function" ? !!matchMedia("(pointer:coarse)").matches : !1), A;
|
|
145
144
|
}
|
|
146
|
-
function
|
|
147
|
-
let { element: t, orientation: n, panels: r, separators: i } = e, a =
|
|
145
|
+
function M(e) {
|
|
146
|
+
let { element: t, orientation: n, panels: r, separators: i } = e, a = w(n, Array.from(t.children).filter(D).map((e) => ({ element: e }))).map(({ element: e }) => e), o = [], s = !1, c = !1, l = -1, u = -1, d = 0, f, p = [];
|
|
148
147
|
{
|
|
149
148
|
let e = -1;
|
|
150
149
|
for (let t of a) t.hasAttribute("data-panel") && (e++, t.hasAttribute("data-disabled") || (d++, l === -1 && (l = e), u = e));
|
|
@@ -165,7 +164,7 @@ function N(e) {
|
|
|
165
164
|
break;
|
|
166
165
|
case 1: {
|
|
167
166
|
let i = p[0];
|
|
168
|
-
m = [i,
|
|
167
|
+
m = [i, k({
|
|
169
168
|
orientation: n,
|
|
170
169
|
rects: [r, a],
|
|
171
170
|
targetRect: i.element.getBoundingClientRect()
|
|
@@ -178,7 +177,7 @@ function N(e) {
|
|
|
178
177
|
}
|
|
179
178
|
} else m = p.length ? p : [n === "horizontal" ? new DOMRect(r.right, a.top, a.left - r.right, a.height) : new DOMRect(a.left, r.bottom, a.width, a.top - r.bottom)];
|
|
180
179
|
for (let n of m) {
|
|
181
|
-
let r = "width" in n ? n : n.element.getBoundingClientRect(), a =
|
|
180
|
+
let r = "width" in n ? n : n.element.getBoundingClientRect(), a = j() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
|
|
182
181
|
if (r.width < a) {
|
|
183
182
|
let e = a - r.width;
|
|
184
183
|
r = new DOMRect(r.x - e / 2, r.y, r.width + e, r.height);
|
|
@@ -189,7 +188,7 @@ function N(e) {
|
|
|
189
188
|
}
|
|
190
189
|
!s && !(t <= l || t > u) && o.push({
|
|
191
190
|
group: e,
|
|
192
|
-
groupSize:
|
|
191
|
+
groupSize: x({ group: e }),
|
|
193
192
|
panels: [f, i],
|
|
194
193
|
separator: "width" in n ? void 0 : n,
|
|
195
194
|
rect: r
|
|
@@ -206,7 +205,7 @@ function N(e) {
|
|
|
206
205
|
}
|
|
207
206
|
return o;
|
|
208
207
|
}
|
|
209
|
-
var
|
|
208
|
+
var N = class {
|
|
210
209
|
#e = {};
|
|
211
210
|
addListener(e, t) {
|
|
212
211
|
let n = this.#e[e];
|
|
@@ -240,11 +239,11 @@ var ee = class {
|
|
|
240
239
|
e >= 0 && n.splice(e, 1);
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
|
-
}, P = /* @__PURE__ */ new Map(),
|
|
244
|
-
function
|
|
242
|
+
}, P = /* @__PURE__ */ new Map(), ee = new N();
|
|
243
|
+
function te(e) {
|
|
245
244
|
P = new Map(P), P.delete(e);
|
|
246
245
|
}
|
|
247
|
-
function
|
|
246
|
+
function ne(e, t) {
|
|
248
247
|
for (let [t] of P) if (t.id === e) return t;
|
|
249
248
|
}
|
|
250
249
|
function F(e, t) {
|
|
@@ -254,26 +253,26 @@ function F(e, t) {
|
|
|
254
253
|
function I() {
|
|
255
254
|
return P;
|
|
256
255
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
256
|
+
function re(e, t) {
|
|
257
|
+
return ee.addListener("groupChange", (n) => {
|
|
259
258
|
n.group.id === e && t(n);
|
|
260
259
|
});
|
|
261
260
|
}
|
|
262
261
|
function L(e, t) {
|
|
263
262
|
let n = P.get(e);
|
|
264
|
-
P = new Map(P), P.set(e, t),
|
|
263
|
+
P = new Map(P), P.set(e, t), ee.emit("groupChange", {
|
|
265
264
|
group: e,
|
|
266
265
|
prev: n,
|
|
267
266
|
next: t
|
|
268
267
|
});
|
|
269
268
|
}
|
|
270
|
-
function
|
|
269
|
+
function ie(e, t, n) {
|
|
271
270
|
let r, i = {
|
|
272
271
|
x: Infinity,
|
|
273
272
|
y: Infinity
|
|
274
273
|
};
|
|
275
274
|
for (let a of t) {
|
|
276
|
-
let t =
|
|
275
|
+
let t = O(n, a.rect);
|
|
277
276
|
switch (e) {
|
|
278
277
|
case "horizontal":
|
|
279
278
|
t.x <= i.x && (r = a, i = t);
|
|
@@ -288,20 +287,20 @@ function ae(e, t, n) {
|
|
|
288
287
|
hitRegion: r
|
|
289
288
|
} : void 0;
|
|
290
289
|
}
|
|
291
|
-
function
|
|
290
|
+
function ae(e) {
|
|
292
291
|
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
293
292
|
}
|
|
294
|
-
function
|
|
293
|
+
function oe(e, t) {
|
|
295
294
|
if (e === t) throw Error("Cannot compare node with itself");
|
|
296
295
|
let n = {
|
|
297
|
-
a:
|
|
298
|
-
b:
|
|
296
|
+
a: fe(e),
|
|
297
|
+
b: fe(t)
|
|
299
298
|
}, r;
|
|
300
299
|
for (; n.a.at(-1) === n.b.at(-1);) r = n.a.pop(), n.b.pop();
|
|
301
|
-
|
|
300
|
+
C(r, "Stacking order can only be calculated for elements with a common ancestor");
|
|
302
301
|
let i = {
|
|
303
|
-
a:
|
|
304
|
-
b:
|
|
302
|
+
a: de(ue(n.a)),
|
|
303
|
+
b: de(ue(n.b))
|
|
305
304
|
};
|
|
306
305
|
if (i.a === i.b) {
|
|
307
306
|
let e = r.childNodes, t = {
|
|
@@ -316,72 +315,72 @@ function se(e, t) {
|
|
|
316
315
|
}
|
|
317
316
|
return Math.sign(i.a - i.b);
|
|
318
317
|
}
|
|
319
|
-
var
|
|
320
|
-
function
|
|
321
|
-
let t = getComputedStyle(
|
|
318
|
+
var se = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
319
|
+
function ce(e) {
|
|
320
|
+
let t = getComputedStyle(pe(e) ?? e).display;
|
|
322
321
|
return t === "flex" || t === "inline-flex";
|
|
323
322
|
}
|
|
324
|
-
function
|
|
323
|
+
function le(e) {
|
|
325
324
|
let t = getComputedStyle(e);
|
|
326
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
325
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || ce(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" || se.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
327
326
|
}
|
|
328
|
-
function
|
|
327
|
+
function ue(e) {
|
|
329
328
|
let t = e.length;
|
|
330
329
|
for (; t--;) {
|
|
331
330
|
let n = e[t];
|
|
332
|
-
if (
|
|
331
|
+
if (C(n, "Missing node"), le(n)) return n;
|
|
333
332
|
}
|
|
334
333
|
return null;
|
|
335
334
|
}
|
|
336
|
-
function
|
|
335
|
+
function de(e) {
|
|
337
336
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
338
337
|
}
|
|
339
|
-
function
|
|
338
|
+
function fe(e) {
|
|
340
339
|
let t = [];
|
|
341
|
-
for (; e;) t.push(e), e =
|
|
340
|
+
for (; e;) t.push(e), e = pe(e);
|
|
342
341
|
return t;
|
|
343
342
|
}
|
|
344
|
-
function
|
|
343
|
+
function pe(e) {
|
|
345
344
|
let { parentNode: t } = e;
|
|
346
|
-
return
|
|
345
|
+
return ae(t) ? t.host : t;
|
|
347
346
|
}
|
|
348
|
-
function
|
|
347
|
+
function me(e, t) {
|
|
349
348
|
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
|
|
350
349
|
}
|
|
351
|
-
function
|
|
352
|
-
if (!
|
|
353
|
-
if (
|
|
350
|
+
function he({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
|
|
351
|
+
if (!D(n) || n.contains(e) || e.contains(n)) return !0;
|
|
352
|
+
if (oe(n, e) > 0) {
|
|
354
353
|
let r = n;
|
|
355
354
|
for (; r;) {
|
|
356
355
|
if (r.contains(e)) return !0;
|
|
357
|
-
if (
|
|
356
|
+
if (me(r.getBoundingClientRect(), t)) return !1;
|
|
358
357
|
r = r.parentElement;
|
|
359
358
|
}
|
|
360
359
|
}
|
|
361
360
|
return !0;
|
|
362
361
|
}
|
|
363
|
-
function
|
|
362
|
+
function ge(e, t) {
|
|
364
363
|
let n = [];
|
|
365
364
|
return t.forEach((t, r) => {
|
|
366
365
|
if (r.disabled) return;
|
|
367
|
-
let i =
|
|
366
|
+
let i = M(r), a = ie(r.orientation, i, {
|
|
368
367
|
x: e.clientX,
|
|
369
368
|
y: e.clientY
|
|
370
369
|
});
|
|
371
|
-
a && a.distance.x <= 0 && a.distance.y <= 0 &&
|
|
370
|
+
a && a.distance.x <= 0 && a.distance.y <= 0 && he({
|
|
372
371
|
groupElement: r.element,
|
|
373
372
|
hitRegion: a.hitRegion.rect,
|
|
374
373
|
pointerEventTarget: e.target
|
|
375
374
|
}) && n.push(a.hitRegion);
|
|
376
375
|
}), n;
|
|
377
376
|
}
|
|
378
|
-
function
|
|
377
|
+
function _e(e, t) {
|
|
379
378
|
if (e.length !== t.length) return !1;
|
|
380
379
|
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
|
|
381
380
|
return !0;
|
|
382
381
|
}
|
|
383
382
|
function R(e, t, n = 0) {
|
|
384
|
-
return Math.abs(
|
|
383
|
+
return Math.abs(b(e) - b(t)) <= n;
|
|
385
384
|
}
|
|
386
385
|
function z(e, t) {
|
|
387
386
|
return R(e, t) ? 0 : e > t ? 1 : -1;
|
|
@@ -393,22 +392,22 @@ function B({ overrideDisabledPanels: e, panelConstraints: t, prevSize: n, size:
|
|
|
393
392
|
let e = (i + c) / 2;
|
|
394
393
|
r = z(r, e) < 0 ? i : c;
|
|
395
394
|
} else r = c;
|
|
396
|
-
return r = Math.min(s, r), r =
|
|
395
|
+
return r = Math.min(s, r), r = b(r), r;
|
|
397
396
|
}
|
|
398
397
|
function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, prevLayout: i, trigger: a }) {
|
|
399
398
|
if (R(e, 0)) return t;
|
|
400
399
|
let o = a === "imperative-api", s = Object.values(t), c = Object.values(i), l = [...s], [u, d] = r;
|
|
401
|
-
|
|
400
|
+
C(u != null, "Invalid first pivot index"), C(d != null, "Invalid second pivot index");
|
|
402
401
|
let f = 0;
|
|
403
402
|
switch (a) {
|
|
404
403
|
case "keyboard":
|
|
405
404
|
{
|
|
406
405
|
let t = e < 0 ? d : u, r = n[t];
|
|
407
|
-
|
|
406
|
+
C(r, `Panel constraints not found for index ${t}`);
|
|
408
407
|
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
|
|
409
408
|
if (a) {
|
|
410
409
|
let n = s[t];
|
|
411
|
-
if (
|
|
410
|
+
if (C(n != null, `Previous layout not found for panel index ${t}`), R(n, i)) {
|
|
412
411
|
let t = o - n;
|
|
413
412
|
z(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
414
413
|
}
|
|
@@ -416,11 +415,11 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
416
415
|
}
|
|
417
416
|
{
|
|
418
417
|
let t = e < 0 ? u : d, r = n[t];
|
|
419
|
-
|
|
418
|
+
C(r, `No panel constraints found for index ${t}`);
|
|
420
419
|
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
|
|
421
420
|
if (a) {
|
|
422
421
|
let n = s[t];
|
|
423
|
-
if (
|
|
422
|
+
if (C(n != null, `Previous layout not found for panel index ${t}`), R(n, o)) {
|
|
424
423
|
let t = n - i;
|
|
425
424
|
z(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
426
425
|
}
|
|
@@ -429,7 +428,7 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
429
428
|
break;
|
|
430
429
|
default: {
|
|
431
430
|
let t = e < 0 ? d : u, r = n[t];
|
|
432
|
-
|
|
431
|
+
C(r, `Panel constraints not found for index ${t}`);
|
|
433
432
|
let i = s[t], { collapsible: a, collapsedSize: o, minSize: c } = r;
|
|
434
433
|
if (a && z(i, c) < 0) if (e > 0) {
|
|
435
434
|
let t = c - o, n = t / 2;
|
|
@@ -445,7 +444,7 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
445
444
|
let t = e < 0 ? 1 : -1, r = e < 0 ? d : u, i = 0;
|
|
446
445
|
for (;;) {
|
|
447
446
|
let e = s[r];
|
|
448
|
-
|
|
447
|
+
C(e != null, `Previous layout not found for panel index ${r}`);
|
|
449
448
|
let a = B({
|
|
450
449
|
overrideDisabledPanels: o,
|
|
451
450
|
panelConstraints: n[r],
|
|
@@ -461,7 +460,7 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
461
460
|
let t = e < 0 ? u : d;
|
|
462
461
|
for (; t >= 0 && t < n.length;) {
|
|
463
462
|
let r = Math.abs(e) - Math.abs(f), i = s[t];
|
|
464
|
-
|
|
463
|
+
C(i != null, `Previous layout not found for panel index ${t}`);
|
|
465
464
|
let a = i - r, c = B({
|
|
466
465
|
overrideDisabledPanels: o,
|
|
467
466
|
panelConstraints: n[t],
|
|
@@ -472,10 +471,10 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
472
471
|
e < 0 ? t-- : t++;
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
|
-
if (
|
|
474
|
+
if (_e(c, l)) return i;
|
|
476
475
|
{
|
|
477
476
|
let t = e < 0 ? d : u, r = s[t];
|
|
478
|
-
|
|
477
|
+
C(r != null, `Previous layout not found for panel index ${t}`);
|
|
479
478
|
let i = r + f, a = B({
|
|
480
479
|
overrideDisabledPanels: o,
|
|
481
480
|
panelConstraints: n[t],
|
|
@@ -486,7 +485,7 @@ function V({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
486
485
|
let t = i - a, r = e < 0 ? d : u;
|
|
487
486
|
for (; r >= 0 && r < n.length;) {
|
|
488
487
|
let i = l[r];
|
|
489
|
-
|
|
488
|
+
C(i != null, `Previous layout not found for panel index ${r}`);
|
|
490
489
|
let a = i + t, s = B({
|
|
491
490
|
overrideDisabledPanels: o,
|
|
492
491
|
panelConstraints: n[r],
|
|
@@ -512,14 +511,14 @@ function U({ layout: e, panelConstraints: t }) {
|
|
|
512
511
|
if (r.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${r.map((e) => `${e}%`).join(", ")}`);
|
|
513
512
|
if (!R(i, 100) && r.length > 0) for (let e = 0; e < t.length; e++) {
|
|
514
513
|
let t = r[e];
|
|
515
|
-
|
|
514
|
+
C(t != null, `No layout data found for index ${e}`), r[e] = 100 / i * t;
|
|
516
515
|
}
|
|
517
516
|
let a = 0;
|
|
518
517
|
for (let e = 0; e < t.length; e++) {
|
|
519
518
|
let i = n[e];
|
|
520
|
-
|
|
519
|
+
C(i != null, `No layout data found for index ${e}`);
|
|
521
520
|
let o = r[e];
|
|
522
|
-
|
|
521
|
+
C(o != null, `No layout data found for index ${e}`);
|
|
523
522
|
let s = B({
|
|
524
523
|
overrideDisabledPanels: !0,
|
|
525
524
|
panelConstraints: t[e],
|
|
@@ -530,7 +529,7 @@ function U({ layout: e, panelConstraints: t }) {
|
|
|
530
529
|
}
|
|
531
530
|
if (!R(a, 0)) for (let e = 0; e < t.length; e++) {
|
|
532
531
|
let n = r[e];
|
|
533
|
-
|
|
532
|
+
C(n != null, `No layout data found for index ${e}`);
|
|
534
533
|
let i = n + a, o = B({
|
|
535
534
|
overrideDisabledPanels: !0,
|
|
536
535
|
panelConstraints: t[e],
|
|
@@ -542,7 +541,7 @@ function U({ layout: e, panelConstraints: t }) {
|
|
|
542
541
|
let o = Object.keys(e);
|
|
543
542
|
return r.reduce((e, t, n) => (e[o[n]] = t, e), {});
|
|
544
543
|
}
|
|
545
|
-
function
|
|
544
|
+
function ve({ groupId: e, panelId: t }) {
|
|
546
545
|
let n = () => {
|
|
547
546
|
let t = I();
|
|
548
547
|
for (let [n, { defaultLayoutDeferred: r, derivedPanelConstraints: i, layout: a, groupSize: o, separatorToPanels: s }] of t) if (n.id === e) return {
|
|
@@ -612,8 +611,8 @@ function ye({ groupId: e, panelId: t }) {
|
|
|
612
611
|
return e && R(t, n);
|
|
613
612
|
},
|
|
614
613
|
resize: (e) => {
|
|
615
|
-
let { group: t } = n(), { element: r } = i(), a =
|
|
616
|
-
o(
|
|
614
|
+
let { group: t } = n(), { element: r } = i(), a = x({ group: t });
|
|
615
|
+
o(b(y({
|
|
617
616
|
groupSize: a,
|
|
618
617
|
panelElement: r,
|
|
619
618
|
styleProp: e
|
|
@@ -621,12 +620,12 @@ function ye({ groupId: e, panelId: t }) {
|
|
|
621
620
|
}
|
|
622
621
|
};
|
|
623
622
|
}
|
|
624
|
-
function
|
|
625
|
-
e.defaultPrevented ||
|
|
623
|
+
function ye(e) {
|
|
624
|
+
e.defaultPrevented || ge(e, I()).forEach((t) => {
|
|
626
625
|
if (t.separator && !t.separator.disableDoubleClick) {
|
|
627
626
|
let n = t.panels.find((e) => e.panelConstraints.defaultSize !== void 0);
|
|
628
627
|
if (n) {
|
|
629
|
-
let r = n.panelConstraints.defaultSize, i =
|
|
628
|
+
let r = n.panelConstraints.defaultSize, i = ve({
|
|
630
629
|
groupId: t.group.id,
|
|
631
630
|
panelId: n.id
|
|
632
631
|
});
|
|
@@ -640,7 +639,7 @@ function W(e) {
|
|
|
640
639
|
for (let [n] of t) if (n.separators.some((t) => t.element === e)) return n;
|
|
641
640
|
throw Error("Could not find parent Group for separator element");
|
|
642
641
|
}
|
|
643
|
-
function
|
|
642
|
+
function be({ groupId: e }) {
|
|
644
643
|
let t = () => {
|
|
645
644
|
let t = I();
|
|
646
645
|
for (let [n, r] of t) if (n.id === e) return {
|
|
@@ -671,10 +670,10 @@ function xe({ groupId: e }) {
|
|
|
671
670
|
}
|
|
672
671
|
function G(e, t) {
|
|
673
672
|
let n = W(e), r = F(n.id, !0), i = n.separators.find((t) => t.element === e);
|
|
674
|
-
|
|
673
|
+
C(i, "Matching separator not found");
|
|
675
674
|
let a = r.separatorToPanels.get(i);
|
|
676
|
-
|
|
677
|
-
let o = a.map((e) => n.panels.indexOf(e)), s =
|
|
675
|
+
C(a, "Matching panels not found");
|
|
676
|
+
let o = a.map((e) => n.panels.indexOf(e)), s = be({ groupId: n.id }).getLayout(), c = U({
|
|
678
677
|
layout: V({
|
|
679
678
|
delta: t,
|
|
680
679
|
initialLayout: s,
|
|
@@ -693,7 +692,7 @@ function G(e, t) {
|
|
|
693
692
|
separatorToPanels: r.separatorToPanels
|
|
694
693
|
});
|
|
695
694
|
}
|
|
696
|
-
function
|
|
695
|
+
function xe(e) {
|
|
697
696
|
if (e.defaultPrevented) return;
|
|
698
697
|
let t = e.currentTarget, n = W(t);
|
|
699
698
|
if (!n.disabled) switch (e.key) {
|
|
@@ -715,11 +714,11 @@ function Se(e) {
|
|
|
715
714
|
case "Enter": {
|
|
716
715
|
e.preventDefault();
|
|
717
716
|
let n = W(t), { derivedPanelConstraints: r, layout: i, separatorToPanels: a } = F(n.id, !0), o = n.separators.find((e) => e.element === t);
|
|
718
|
-
|
|
717
|
+
C(o, "Matching separator not found");
|
|
719
718
|
let s = a.get(o);
|
|
720
|
-
|
|
719
|
+
C(s, "Matching panels not found");
|
|
721
720
|
let c = s[0], l = r.find((e) => e.panelId === c.id);
|
|
722
|
-
if (
|
|
721
|
+
if (C(l, "Panel metadata not found"), l.collapsible) {
|
|
723
722
|
let e = i[c.id];
|
|
724
723
|
G(t, (l.collapsedSize === e ? n.mutableState.expandedPanelSizes[c.id] ?? l.minSize : l.collapsedSize) - e);
|
|
725
724
|
}
|
|
@@ -728,7 +727,7 @@ function Se(e) {
|
|
|
728
727
|
case "F6": {
|
|
729
728
|
e.preventDefault();
|
|
730
729
|
let n = W(t).separators.map((e) => e.element), r = Array.from(n).findIndex((t) => t === e.currentTarget);
|
|
731
|
-
|
|
730
|
+
C(r !== null, "Index not found"), n[e.shiftKey ? r > 0 ? r - 1 : n.length - 1 : r + 1 < n.length ? r + 1 : 0].focus({ preventScroll: !0 });
|
|
732
731
|
break;
|
|
733
732
|
}
|
|
734
733
|
case "Home":
|
|
@@ -739,30 +738,30 @@ function Se(e) {
|
|
|
739
738
|
var K = {
|
|
740
739
|
cursorFlags: 0,
|
|
741
740
|
state: "inactive"
|
|
742
|
-
},
|
|
741
|
+
}, Se = new N();
|
|
743
742
|
function q() {
|
|
744
743
|
return K;
|
|
745
744
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
745
|
+
function Ce(e) {
|
|
746
|
+
return Se.addListener("change", e);
|
|
748
747
|
}
|
|
749
|
-
function
|
|
748
|
+
function we(e) {
|
|
750
749
|
let t = K, n = { ...K };
|
|
751
|
-
n.cursorFlags = e, K = n,
|
|
750
|
+
n.cursorFlags = e, K = n, Se.emit("change", {
|
|
752
751
|
prev: t,
|
|
753
752
|
next: n
|
|
754
753
|
});
|
|
755
754
|
}
|
|
756
755
|
function J(e) {
|
|
757
756
|
let t = K;
|
|
758
|
-
K = e,
|
|
757
|
+
K = e, Se.emit("change", {
|
|
759
758
|
prev: t,
|
|
760
759
|
next: e
|
|
761
760
|
});
|
|
762
761
|
}
|
|
763
|
-
function
|
|
762
|
+
function Te(e) {
|
|
764
763
|
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
|
|
765
|
-
let t = I(), n =
|
|
764
|
+
let t = I(), n = ge(e, t), r = /* @__PURE__ */ new Map(), i = !1;
|
|
766
765
|
n.forEach((e) => {
|
|
767
766
|
e.separator && (i || (i = !0, e.separator.element.focus({ preventScroll: !0 })));
|
|
768
767
|
let n = t.get(e.group);
|
|
@@ -778,11 +777,11 @@ function Ee(e) {
|
|
|
778
777
|
state: "active"
|
|
779
778
|
}), n.length && e.preventDefault();
|
|
780
779
|
}
|
|
781
|
-
var
|
|
782
|
-
function
|
|
780
|
+
var Ee = (e) => e, De = () => {}, Oe = 1, ke = 2, Ae = 4, je = 8, Me = 3, Ne = 12, Y;
|
|
781
|
+
function Pe() {
|
|
783
782
|
return Y === void 0 && (Y = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (Y = !0)), Y;
|
|
784
783
|
}
|
|
785
|
-
function
|
|
784
|
+
function Fe({ cursorFlags: e, groups: t, state: n }) {
|
|
786
785
|
let r = 0, i = 0;
|
|
787
786
|
switch (n) {
|
|
788
787
|
case "active":
|
|
@@ -800,8 +799,8 @@ function Ie({ cursorFlags: e, groups: t, state: n }) {
|
|
|
800
799
|
if (!(r === 0 && i === 0)) {
|
|
801
800
|
switch (n) {
|
|
802
801
|
case "active":
|
|
803
|
-
if (e &&
|
|
804
|
-
let t = (e &
|
|
802
|
+
if (e && Pe()) {
|
|
803
|
+
let t = (e & Oe) !== 0, n = (e & ke) !== 0, r = (e & Ae) !== 0, i = (e & je) !== 0;
|
|
805
804
|
if (t) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
806
805
|
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
807
806
|
if (r) return "s-resize";
|
|
@@ -809,19 +808,19 @@ function Ie({ cursorFlags: e, groups: t, state: n }) {
|
|
|
809
808
|
}
|
|
810
809
|
break;
|
|
811
810
|
}
|
|
812
|
-
return
|
|
811
|
+
return Pe() ? r > 0 && i > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && i > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
|
|
813
812
|
}
|
|
814
813
|
}
|
|
815
|
-
var
|
|
816
|
-
function
|
|
814
|
+
var Ie = /* @__PURE__ */ new WeakMap();
|
|
815
|
+
function Le(e) {
|
|
817
816
|
if (e.defaultView === null || e.defaultView === void 0) return;
|
|
818
|
-
let { prevStyle: t, styleSheet: n } =
|
|
817
|
+
let { prevStyle: t, styleSheet: n } = Ie.get(e) ?? {};
|
|
819
818
|
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && e.adoptedStyleSheets.push(n));
|
|
820
819
|
let r = q();
|
|
821
820
|
switch (r.state) {
|
|
822
821
|
case "active":
|
|
823
822
|
case "hover": {
|
|
824
|
-
let e =
|
|
823
|
+
let e = Fe({
|
|
825
824
|
cursorFlags: r.cursorFlags,
|
|
826
825
|
groups: r.hitRegions.map((e) => e.group),
|
|
827
826
|
state: r.state
|
|
@@ -834,12 +833,12 @@ function Re(e) {
|
|
|
834
833
|
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
835
834
|
break;
|
|
836
835
|
}
|
|
837
|
-
|
|
836
|
+
Ie.set(e, {
|
|
838
837
|
prevStyle: t,
|
|
839
838
|
styleSheet: n
|
|
840
839
|
});
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function Re({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: i, pointerDownAtPoint: a, prevCursorFlags: o }) {
|
|
843
842
|
let s = 0;
|
|
844
843
|
n.forEach((e) => {
|
|
845
844
|
let { group: n, groupSize: o } = e, { orientation: c, panels: l } = n, { disableCursor: u } = n.mutableState, d = 0;
|
|
@@ -859,10 +858,10 @@ function ze({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
859
858
|
if (H(t, _)) {
|
|
860
859
|
if (d !== 0 && !u) switch (c) {
|
|
861
860
|
case "horizontal":
|
|
862
|
-
s |= d < 0 ?
|
|
861
|
+
s |= d < 0 ? Oe : ke;
|
|
863
862
|
break;
|
|
864
863
|
case "vertical":
|
|
865
|
-
s |= d < 0 ?
|
|
864
|
+
s |= d < 0 ? Ae : je;
|
|
866
865
|
break;
|
|
867
866
|
}
|
|
868
867
|
} else L(e.group, {
|
|
@@ -875,12 +874,12 @@ function ze({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
875
874
|
}
|
|
876
875
|
});
|
|
877
876
|
let c = 0;
|
|
878
|
-
t.movementX === 0 ? c |= o &
|
|
877
|
+
t.movementX === 0 ? c |= o & Me : c |= s & Me, t.movementY === 0 ? c |= o & Ne : c |= s & Ne, we(c), Le(e);
|
|
879
878
|
}
|
|
880
|
-
function
|
|
879
|
+
function ze(e) {
|
|
881
880
|
let t = I(), n = q();
|
|
882
881
|
switch (n.state) {
|
|
883
|
-
case "active":
|
|
882
|
+
case "active": Re({
|
|
884
883
|
document: e.currentTarget,
|
|
885
884
|
event: e,
|
|
886
885
|
hitRegions: n.hitRegions,
|
|
@@ -890,7 +889,7 @@ function Be(e) {
|
|
|
890
889
|
});
|
|
891
890
|
}
|
|
892
891
|
}
|
|
893
|
-
function
|
|
892
|
+
function Be(e) {
|
|
894
893
|
if (e.defaultPrevented) return;
|
|
895
894
|
let t = q(), n = I();
|
|
896
895
|
switch (t.state) {
|
|
@@ -909,7 +908,7 @@ function Ve(e) {
|
|
|
909
908
|
let { element: t } = n.separator;
|
|
910
909
|
t.hasPointerCapture?.(e.pointerId) || t.setPointerCapture?.(e.pointerId);
|
|
911
910
|
}
|
|
912
|
-
|
|
911
|
+
Re({
|
|
913
912
|
document: e.currentTarget,
|
|
914
913
|
event: e,
|
|
915
914
|
hitRegions: t.hitRegions,
|
|
@@ -920,7 +919,7 @@ function Ve(e) {
|
|
|
920
919
|
});
|
|
921
920
|
break;
|
|
922
921
|
default: {
|
|
923
|
-
let r =
|
|
922
|
+
let r = ge(e, n);
|
|
924
923
|
r.length === 0 ? t.state !== "inactive" && J({
|
|
925
924
|
cursorFlags: 0,
|
|
926
925
|
state: "inactive"
|
|
@@ -928,12 +927,12 @@ function Ve(e) {
|
|
|
928
927
|
cursorFlags: 0,
|
|
929
928
|
hitRegions: r,
|
|
930
929
|
state: "hover"
|
|
931
|
-
}),
|
|
930
|
+
}), Le(e.currentTarget);
|
|
932
931
|
break;
|
|
933
932
|
}
|
|
934
933
|
}
|
|
935
934
|
}
|
|
936
|
-
function
|
|
935
|
+
function Ve(e) {
|
|
937
936
|
if (e.relatedTarget instanceof HTMLIFrameElement) switch (q().state) {
|
|
938
937
|
case "hover": J({
|
|
939
938
|
cursorFlags: 0,
|
|
@@ -941,49 +940,49 @@ function He(e) {
|
|
|
941
940
|
});
|
|
942
941
|
}
|
|
943
942
|
}
|
|
944
|
-
function
|
|
943
|
+
function He(e) {
|
|
945
944
|
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
|
|
946
945
|
let t = q();
|
|
947
946
|
switch (t.state) {
|
|
948
947
|
case "active": J({
|
|
949
948
|
cursorFlags: 0,
|
|
950
949
|
state: "inactive"
|
|
951
|
-
}), t.hitRegions.length > 0 && (
|
|
950
|
+
}), t.hitRegions.length > 0 && (Le(e.currentTarget), t.hitRegions.forEach((e) => {
|
|
952
951
|
let t = F(e.group.id, !0);
|
|
953
952
|
L(e.group, t);
|
|
954
953
|
}), e.preventDefault());
|
|
955
954
|
}
|
|
956
955
|
}
|
|
957
|
-
function
|
|
956
|
+
function Ue(e) {
|
|
958
957
|
let t = 0, n = 0, r = {};
|
|
959
958
|
for (let i of e) if (i.defaultSize !== void 0) {
|
|
960
959
|
t++;
|
|
961
|
-
let e =
|
|
960
|
+
let e = b(i.defaultSize);
|
|
962
961
|
n += e, r[i.panelId] = e;
|
|
963
962
|
} else r[i.panelId] = void 0;
|
|
964
963
|
let i = e.length - t;
|
|
965
964
|
if (i !== 0) {
|
|
966
|
-
let t =
|
|
965
|
+
let t = b((100 - n) / i);
|
|
967
966
|
for (let n of e) n.defaultSize === void 0 && (r[n.panelId] = t);
|
|
968
967
|
}
|
|
969
968
|
return r;
|
|
970
969
|
}
|
|
971
|
-
function
|
|
970
|
+
function We(e, t, n) {
|
|
972
971
|
if (!n[0]) return;
|
|
973
972
|
let r = e.panels.find((e) => e.element === t);
|
|
974
973
|
if (!r || !r.onResize) return;
|
|
975
|
-
let i =
|
|
976
|
-
asPercentage:
|
|
974
|
+
let i = x({ group: e }), a = e.orientation === "horizontal" ? r.element.offsetWidth : r.element.offsetHeight, o = r.mutableValues.prevSize, s = {
|
|
975
|
+
asPercentage: b(a / i * 100),
|
|
977
976
|
inPixels: a
|
|
978
977
|
};
|
|
979
978
|
r.mutableValues.prevSize = s, r.onResize(s, r.id, o);
|
|
980
979
|
}
|
|
981
|
-
function
|
|
980
|
+
function Ge(e, t) {
|
|
982
981
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
983
982
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
984
983
|
return !0;
|
|
985
984
|
}
|
|
986
|
-
function
|
|
985
|
+
function Ke({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
987
986
|
if (n <= 0 || t <= 0 || n === t) return r;
|
|
988
987
|
let i = 0, a = 0, o = !1, s = /* @__PURE__ */ new Map(), c = [];
|
|
989
988
|
for (let l of e.panels) {
|
|
@@ -991,7 +990,7 @@ function qe({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
|
991
990
|
switch (l.panelConstraints.groupResizeBehavior) {
|
|
992
991
|
case "preserve-pixel-size": {
|
|
993
992
|
o = !0;
|
|
994
|
-
let r =
|
|
993
|
+
let r = b(e / 100 * n / t * 100);
|
|
995
994
|
s.set(l.id, r), i += r;
|
|
996
995
|
break;
|
|
997
996
|
}
|
|
@@ -1004,34 +1003,34 @@ function qe({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
|
1004
1003
|
let l = 100 - i, u = { ...r };
|
|
1005
1004
|
if (s.forEach((e, t) => {
|
|
1006
1005
|
u[t] = e;
|
|
1007
|
-
}), a > 0) for (let e of c) u[e] =
|
|
1006
|
+
}), a > 0) for (let e of c) u[e] = b((r[e] ?? 0) / a * l);
|
|
1008
1007
|
else {
|
|
1009
|
-
let e =
|
|
1008
|
+
let e = b(l / c.length);
|
|
1010
1009
|
for (let t of c) u[t] = e;
|
|
1011
1010
|
}
|
|
1012
1011
|
return u;
|
|
1013
1012
|
}
|
|
1014
|
-
function
|
|
1013
|
+
function qe(e, t) {
|
|
1015
1014
|
let n = e.map((e) => e.id), r = Object.keys(t);
|
|
1016
1015
|
if (n.length !== r.length) return !1;
|
|
1017
1016
|
for (let e of n) if (!r.includes(e)) return !1;
|
|
1018
1017
|
return !0;
|
|
1019
1018
|
}
|
|
1020
1019
|
var X = /* @__PURE__ */ new Map();
|
|
1021
|
-
function
|
|
1020
|
+
function Je(e) {
|
|
1022
1021
|
let t = !0;
|
|
1023
|
-
|
|
1022
|
+
C(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
|
|
1024
1023
|
let n = e.element.ownerDocument.defaultView.ResizeObserver, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = new n((n) => {
|
|
1025
1024
|
for (let r of n) {
|
|
1026
1025
|
let { borderBoxSize: n, target: i } = r;
|
|
1027
1026
|
if (i === e.element) {
|
|
1028
1027
|
if (t) {
|
|
1029
|
-
let t =
|
|
1028
|
+
let t = x({ group: e });
|
|
1030
1029
|
if (t === 0) return;
|
|
1031
1030
|
let n = F(e.id);
|
|
1032
1031
|
if (!n) return;
|
|
1033
|
-
let r =
|
|
1034
|
-
layout:
|
|
1032
|
+
let r = S(e), i = n.defaultLayoutDeferred ? Ue(r) : n.layout, a = U({
|
|
1033
|
+
layout: Ke({
|
|
1035
1034
|
group: e,
|
|
1036
1035
|
nextGroupSize: t,
|
|
1037
1036
|
prevGroupSize: n.groupSize,
|
|
@@ -1039,7 +1038,7 @@ function Ye(e) {
|
|
|
1039
1038
|
}),
|
|
1040
1039
|
panelConstraints: r
|
|
1041
1040
|
});
|
|
1042
|
-
if (!n.defaultLayoutDeferred && H(n.layout, a) &&
|
|
1041
|
+
if (!n.defaultLayoutDeferred && H(n.layout, a) && Ge(n.derivedPanelConstraints, r) && n.groupSize === t) return;
|
|
1043
1042
|
L(e, {
|
|
1044
1043
|
defaultLayoutDeferred: !1,
|
|
1045
1044
|
derivedPanelConstraints: r,
|
|
@@ -1048,21 +1047,21 @@ function Ye(e) {
|
|
|
1048
1047
|
separatorToPanels: n.separatorToPanels
|
|
1049
1048
|
});
|
|
1050
1049
|
}
|
|
1051
|
-
} else
|
|
1050
|
+
} else We(e, i, n);
|
|
1052
1051
|
}
|
|
1053
1052
|
});
|
|
1054
1053
|
a.observe(e.element), e.panels.forEach((e) => {
|
|
1055
|
-
|
|
1054
|
+
C(!r.has(e.id), `Panel ids must be unique; id "${e.id}" was used more than once`), r.add(e.id), e.onResize && a.observe(e.element);
|
|
1056
1055
|
});
|
|
1057
|
-
let o =
|
|
1058
|
-
l && (
|
|
1056
|
+
let o = x({ group: e }), s = S(e), c = e.panels.map(({ id: e }) => e).join(","), l = e.mutableState.defaultLayout;
|
|
1057
|
+
l && (qe(e.panels, l) || (l = void 0));
|
|
1059
1058
|
let u = U({
|
|
1060
|
-
layout: e.mutableState.layouts[c] ?? l ??
|
|
1059
|
+
layout: e.mutableState.layouts[c] ?? l ?? Ue(s),
|
|
1061
1060
|
panelConstraints: s
|
|
1062
1061
|
}), d = e.element.ownerDocument;
|
|
1063
1062
|
X.set(d, (X.get(d) ?? 0) + 1);
|
|
1064
1063
|
let f = /* @__PURE__ */ new Map();
|
|
1065
|
-
return
|
|
1064
|
+
return M(e).forEach((e) => {
|
|
1066
1065
|
e.separator && f.set(e.separator, e.panels);
|
|
1067
1066
|
}), L(e, {
|
|
1068
1067
|
defaultLayoutDeferred: o === 0,
|
|
@@ -1071,29 +1070,29 @@ function Ye(e) {
|
|
|
1071
1070
|
layout: u,
|
|
1072
1071
|
separatorToPanels: f
|
|
1073
1072
|
}), e.separators.forEach((e) => {
|
|
1074
|
-
|
|
1075
|
-
}), X.get(d) === 1 && (d.addEventListener("dblclick",
|
|
1076
|
-
t = !1, X.set(d, Math.max(0, (X.get(d) ?? 0) - 1)),
|
|
1077
|
-
e.element.removeEventListener("keydown",
|
|
1078
|
-
}), X.get(d) || (d.removeEventListener("dblclick",
|
|
1073
|
+
C(!i.has(e.id), `Separator ids must be unique; id "${e.id}" was used more than once`), i.add(e.id), e.element.addEventListener("keydown", xe);
|
|
1074
|
+
}), X.get(d) === 1 && (d.addEventListener("dblclick", ye, !0), d.addEventListener("pointerdown", Te, !0), d.addEventListener("pointerleave", ze), d.addEventListener("pointermove", Be), d.addEventListener("pointerout", Ve), d.addEventListener("pointerup", He, !0)), function() {
|
|
1075
|
+
t = !1, X.set(d, Math.max(0, (X.get(d) ?? 0) - 1)), te(e), e.separators.forEach((e) => {
|
|
1076
|
+
e.element.removeEventListener("keydown", xe);
|
|
1077
|
+
}), X.get(d) || (d.removeEventListener("dblclick", ye, !0), d.removeEventListener("pointerdown", Te, !0), d.removeEventListener("pointerleave", ze), d.removeEventListener("pointermove", Be), d.removeEventListener("pointerout", Ve), d.removeEventListener("pointerup", He, !0)), a.disconnect();
|
|
1079
1078
|
};
|
|
1080
1079
|
}
|
|
1081
|
-
function
|
|
1082
|
-
let [e, t] =
|
|
1083
|
-
return [e,
|
|
1080
|
+
function Ye() {
|
|
1081
|
+
let [e, t] = u({});
|
|
1082
|
+
return [e, n(() => t({}), [])];
|
|
1084
1083
|
}
|
|
1085
1084
|
function Z(e) {
|
|
1086
|
-
let t =
|
|
1085
|
+
let t = a();
|
|
1087
1086
|
return `${e ?? t}`;
|
|
1088
1087
|
}
|
|
1089
|
-
var Q = typeof window < "u" ?
|
|
1088
|
+
var Q = typeof window < "u" ? s : i;
|
|
1090
1089
|
function $(e) {
|
|
1091
|
-
let t =
|
|
1090
|
+
let t = l(e);
|
|
1092
1091
|
return Q(() => {
|
|
1093
1092
|
t.current = e;
|
|
1094
|
-
}, [e]),
|
|
1093
|
+
}, [e]), n((...e) => t.current?.(...e), [t]);
|
|
1095
1094
|
}
|
|
1096
|
-
function
|
|
1095
|
+
function Xe(...e) {
|
|
1097
1096
|
return $((t) => {
|
|
1098
1097
|
e.forEach((e) => {
|
|
1099
1098
|
if (e) switch (typeof e) {
|
|
@@ -1107,43 +1106,43 @@ function Ze(...e) {
|
|
|
1107
1106
|
});
|
|
1108
1107
|
});
|
|
1109
1108
|
}
|
|
1110
|
-
function
|
|
1111
|
-
let t =
|
|
1109
|
+
function Ze(e) {
|
|
1110
|
+
let t = l({ ...e });
|
|
1112
1111
|
return Q(() => {
|
|
1113
1112
|
for (let n in e) t.current[n] = e[n];
|
|
1114
1113
|
}, [e]), t.current;
|
|
1115
1114
|
}
|
|
1116
|
-
var
|
|
1117
|
-
function
|
|
1118
|
-
let n =
|
|
1115
|
+
var Qe = t(null);
|
|
1116
|
+
function $e(e, t) {
|
|
1117
|
+
let n = l({
|
|
1119
1118
|
getLayout: () => ({}),
|
|
1120
|
-
setLayout:
|
|
1119
|
+
setLayout: Ee
|
|
1121
1120
|
});
|
|
1122
|
-
|
|
1123
|
-
Object.assign(n.current,
|
|
1121
|
+
o(t, () => n.current, []), Q(() => {
|
|
1122
|
+
Object.assign(n.current, be({ groupId: e }));
|
|
1124
1123
|
});
|
|
1125
1124
|
}
|
|
1126
|
-
function
|
|
1125
|
+
function et({ children: e, className: t, defaultLayout: n, disableCursor: r, disabled: a, elementRef: o, groupRef: s, id: u, onLayoutChange: d, onLayoutChanged: p, orientation: m = "horizontal", resizeTargetMinimumSize: h = {
|
|
1127
1126
|
coarse: 20,
|
|
1128
1127
|
fine: 10
|
|
1129
1128
|
}, style: g, ..._ }) {
|
|
1130
|
-
let v =
|
|
1129
|
+
let v = l({
|
|
1131
1130
|
onLayoutChange: {},
|
|
1132
1131
|
onLayoutChanged: {}
|
|
1133
1132
|
}), y = $((e) => {
|
|
1134
1133
|
H(v.current.onLayoutChange, e) || (v.current.onLayoutChange = e, d?.(e));
|
|
1135
1134
|
}), b = $((e) => {
|
|
1136
|
-
H(v.current.onLayoutChanged, e) || (v.current.onLayoutChanged = e,
|
|
1137
|
-
}), x = Z(
|
|
1135
|
+
H(v.current.onLayoutChanged, e) || (v.current.onLayoutChanged = e, p?.(e));
|
|
1136
|
+
}), x = Z(u), C = l(null), [T, E] = Ye(), D = l({
|
|
1138
1137
|
lastExpandedPanelSizes: {},
|
|
1139
1138
|
layouts: {},
|
|
1140
1139
|
panels: [],
|
|
1141
1140
|
resizeTargetMinimumSize: h,
|
|
1142
1141
|
separators: []
|
|
1143
|
-
}), O =
|
|
1144
|
-
|
|
1142
|
+
}), O = Xe(C, o);
|
|
1143
|
+
$e(x, s);
|
|
1145
1144
|
let k = $((e, t) => {
|
|
1146
|
-
let r = q(), i =
|
|
1145
|
+
let r = q(), i = ne(e), a = F(e);
|
|
1147
1146
|
if (a) {
|
|
1148
1147
|
let e = !1;
|
|
1149
1148
|
switch (r.state) {
|
|
@@ -1157,35 +1156,35 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1157
1156
|
};
|
|
1158
1157
|
}
|
|
1159
1158
|
if (n?.[t]) return { flexGrow: n?.[t] };
|
|
1160
|
-
}), A =
|
|
1159
|
+
}), A = Ze({
|
|
1161
1160
|
defaultLayout: n,
|
|
1162
1161
|
disableCursor: r
|
|
1163
|
-
}), j =
|
|
1162
|
+
}), j = c(() => ({
|
|
1164
1163
|
get disableCursor() {
|
|
1165
1164
|
return !!A.disableCursor;
|
|
1166
1165
|
},
|
|
1167
1166
|
getPanelStyles: k,
|
|
1168
1167
|
id: x,
|
|
1169
|
-
orientation:
|
|
1168
|
+
orientation: m,
|
|
1170
1169
|
registerPanel: (e) => {
|
|
1171
1170
|
let t = D.current;
|
|
1172
|
-
return t.panels =
|
|
1171
|
+
return t.panels = w(m, [...t.panels, e]), E(), () => {
|
|
1173
1172
|
t.panels = t.panels.filter((t) => t !== e), E();
|
|
1174
1173
|
};
|
|
1175
1174
|
},
|
|
1176
1175
|
registerSeparator: (e) => {
|
|
1177
1176
|
let t = D.current;
|
|
1178
|
-
return t.separators =
|
|
1177
|
+
return t.separators = w(m, [...t.separators, e]), E(), () => {
|
|
1179
1178
|
t.separators = t.separators.filter((t) => t !== e), E();
|
|
1180
1179
|
};
|
|
1181
1180
|
},
|
|
1182
1181
|
updatePanelProps: (e, { disabled: t }) => {
|
|
1183
1182
|
let n = D.current.panels.find((t) => t.id === e);
|
|
1184
1183
|
n && (n.panelConstraints.disabled = t);
|
|
1185
|
-
let r =
|
|
1184
|
+
let r = ne(x), i = F(x);
|
|
1186
1185
|
r && i && L(r, {
|
|
1187
1186
|
...i,
|
|
1188
|
-
derivedPanelConstraints:
|
|
1187
|
+
derivedPanelConstraints: S(r)
|
|
1189
1188
|
});
|
|
1190
1189
|
},
|
|
1191
1190
|
updateSeparatorProps: (e, { disabled: t, disableDoubleClick: n }) => {
|
|
@@ -1196,11 +1195,11 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1196
1195
|
k,
|
|
1197
1196
|
x,
|
|
1198
1197
|
E,
|
|
1199
|
-
|
|
1198
|
+
m,
|
|
1200
1199
|
A
|
|
1201
|
-
]), M =
|
|
1200
|
+
]), M = l(null);
|
|
1202
1201
|
return Q(() => {
|
|
1203
|
-
let e =
|
|
1202
|
+
let e = C.current;
|
|
1204
1203
|
if (e === null) return;
|
|
1205
1204
|
let t = D.current, n;
|
|
1206
1205
|
if (A.defaultLayout !== void 0 && Object.keys(A.defaultLayout).length === t.panels.length) {
|
|
@@ -1211,7 +1210,7 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1211
1210
|
}
|
|
1212
1211
|
}
|
|
1213
1212
|
let r = {
|
|
1214
|
-
disabled: !!
|
|
1213
|
+
disabled: !!a,
|
|
1215
1214
|
element: e,
|
|
1216
1215
|
id: x,
|
|
1217
1216
|
mutableState: {
|
|
@@ -1220,15 +1219,15 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1220
1219
|
expandedPanelSizes: D.current.lastExpandedPanelSizes,
|
|
1221
1220
|
layouts: D.current.layouts
|
|
1222
1221
|
},
|
|
1223
|
-
orientation:
|
|
1222
|
+
orientation: m,
|
|
1224
1223
|
panels: t.panels,
|
|
1225
1224
|
resizeTargetMinimumSize: t.resizeTargetMinimumSize,
|
|
1226
1225
|
separators: t.separators
|
|
1227
1226
|
};
|
|
1228
1227
|
M.current = r;
|
|
1229
|
-
let
|
|
1228
|
+
let i = Je(r), { defaultLayoutDeferred: o, derivedPanelConstraints: s, layout: c } = F(r.id, !0);
|
|
1230
1229
|
!o && s.length > 0 && (y(c), b(c));
|
|
1231
|
-
let l =
|
|
1230
|
+
let l = re(x, (e) => {
|
|
1232
1231
|
let { defaultLayoutDeferred: t, derivedPanelConstraints: n, layout: i } = e.next;
|
|
1233
1232
|
if (t || n.length === 0) return;
|
|
1234
1233
|
let a = r.panels.map(({ id: e }) => e).join(",");
|
|
@@ -1245,22 +1244,22 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1245
1244
|
y(i), o && b(i);
|
|
1246
1245
|
});
|
|
1247
1246
|
return () => {
|
|
1248
|
-
M.current = null,
|
|
1247
|
+
M.current = null, i(), l();
|
|
1249
1248
|
};
|
|
1250
1249
|
}, [
|
|
1251
|
-
|
|
1250
|
+
a,
|
|
1252
1251
|
x,
|
|
1253
1252
|
b,
|
|
1254
1253
|
y,
|
|
1255
|
-
|
|
1256
|
-
|
|
1254
|
+
m,
|
|
1255
|
+
T,
|
|
1257
1256
|
A
|
|
1258
|
-
]),
|
|
1257
|
+
]), i(() => {
|
|
1259
1258
|
let e = M.current;
|
|
1260
1259
|
e && (e.mutableState.defaultLayout = n, e.mutableState.disableCursor = !!r);
|
|
1261
|
-
}), /* @__PURE__ */ (
|
|
1260
|
+
}), /* @__PURE__ */ f(Qe.Provider, {
|
|
1262
1261
|
value: j,
|
|
1263
|
-
children: /* @__PURE__ */ (
|
|
1262
|
+
children: /* @__PURE__ */ f("div", {
|
|
1264
1263
|
..._,
|
|
1265
1264
|
className: t,
|
|
1266
1265
|
"data-group": !0,
|
|
@@ -1273,40 +1272,40 @@ function tt({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1273
1272
|
overflow: "hidden",
|
|
1274
1273
|
...g,
|
|
1275
1274
|
display: "flex",
|
|
1276
|
-
flexDirection:
|
|
1275
|
+
flexDirection: m === "horizontal" ? "row" : "column",
|
|
1277
1276
|
flexWrap: "nowrap",
|
|
1278
|
-
touchAction:
|
|
1277
|
+
touchAction: m === "horizontal" ? "pan-y" : "pan-x"
|
|
1279
1278
|
},
|
|
1280
1279
|
children: e
|
|
1281
1280
|
})
|
|
1282
1281
|
});
|
|
1283
1282
|
}
|
|
1284
|
-
|
|
1285
|
-
function
|
|
1286
|
-
let e =
|
|
1287
|
-
return
|
|
1283
|
+
et.displayName = "Group";
|
|
1284
|
+
function tt() {
|
|
1285
|
+
let e = r(Qe);
|
|
1286
|
+
return C(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
|
|
1288
1287
|
}
|
|
1289
|
-
function
|
|
1290
|
-
let { id: n } =
|
|
1291
|
-
collapse:
|
|
1292
|
-
expand:
|
|
1288
|
+
function nt(e, t) {
|
|
1289
|
+
let { id: n } = tt(), r = l({
|
|
1290
|
+
collapse: De,
|
|
1291
|
+
expand: De,
|
|
1293
1292
|
getSize: () => ({
|
|
1294
1293
|
asPercentage: 0,
|
|
1295
1294
|
inPixels: 0
|
|
1296
1295
|
}),
|
|
1297
1296
|
isCollapsed: () => !1,
|
|
1298
|
-
resize:
|
|
1297
|
+
resize: De
|
|
1299
1298
|
});
|
|
1300
|
-
|
|
1301
|
-
Object.assign(r.current,
|
|
1299
|
+
o(t, () => r.current, []), Q(() => {
|
|
1300
|
+
Object.assign(r.current, ve({
|
|
1302
1301
|
groupId: n,
|
|
1303
1302
|
panelId: e
|
|
1304
1303
|
}));
|
|
1305
1304
|
});
|
|
1306
1305
|
}
|
|
1307
|
-
function
|
|
1308
|
-
let y = !!
|
|
1309
|
-
h?.(e,
|
|
1306
|
+
function rt({ children: e, className: t, collapsedSize: n = "0%", collapsible: r = !1, defaultSize: a, disabled: o, elementRef: s, groupResizeBehavior: c = "preserve-relative-size", id: u, maxSize: p = "100%", minSize: m = "0%", onResize: h, panelRef: g, style: _, ...v }) {
|
|
1307
|
+
let y = !!u, b = Z(u), x = Ze({ disabled: o }), S = l(null), C = Xe(S, s), { getPanelStyles: w, id: T, orientation: E, registerPanel: D, updatePanelProps: O } = tt(), k = h !== null, A = $((e, t, n) => {
|
|
1308
|
+
h?.(e, u, n);
|
|
1310
1309
|
});
|
|
1311
1310
|
Q(() => {
|
|
1312
1311
|
let e = S.current;
|
|
@@ -1323,41 +1322,41 @@ function it({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1323
1322
|
groupResizeBehavior: c,
|
|
1324
1323
|
collapsedSize: n,
|
|
1325
1324
|
collapsible: r,
|
|
1326
|
-
defaultSize:
|
|
1325
|
+
defaultSize: a,
|
|
1327
1326
|
disabled: x.disabled,
|
|
1328
|
-
maxSize:
|
|
1329
|
-
minSize:
|
|
1327
|
+
maxSize: p,
|
|
1328
|
+
minSize: m
|
|
1330
1329
|
}
|
|
1331
1330
|
});
|
|
1332
1331
|
}, [
|
|
1333
1332
|
c,
|
|
1334
1333
|
n,
|
|
1335
1334
|
r,
|
|
1336
|
-
|
|
1335
|
+
a,
|
|
1337
1336
|
k,
|
|
1338
1337
|
b,
|
|
1339
1338
|
y,
|
|
1340
|
-
d,
|
|
1341
1339
|
p,
|
|
1340
|
+
m,
|
|
1342
1341
|
A,
|
|
1343
1342
|
D,
|
|
1344
1343
|
x
|
|
1345
|
-
]),
|
|
1344
|
+
]), i(() => {
|
|
1346
1345
|
O(b, { disabled: o });
|
|
1347
1346
|
}, [
|
|
1348
1347
|
o,
|
|
1349
1348
|
b,
|
|
1350
1349
|
O
|
|
1351
|
-
]),
|
|
1350
|
+
]), nt(b, g);
|
|
1352
1351
|
let j = () => {
|
|
1353
1352
|
let e = w(T, b);
|
|
1354
1353
|
if (e) return JSON.stringify(e);
|
|
1355
|
-
}, M =
|
|
1356
|
-
return N = M ? JSON.parse(M) :
|
|
1354
|
+
}, M = d((e) => re(T, e), j, j), N;
|
|
1355
|
+
return N = M ? JSON.parse(M) : a ? {
|
|
1357
1356
|
flexGrow: void 0,
|
|
1358
1357
|
flexShrink: void 0,
|
|
1359
|
-
flexBasis:
|
|
1360
|
-
} : { flexGrow: 1 }, /* @__PURE__ */ (
|
|
1358
|
+
flexBasis: a
|
|
1359
|
+
} : { flexGrow: 1 }, /* @__PURE__ */ f("div", {
|
|
1361
1360
|
...v,
|
|
1362
1361
|
"data-disabled": o || void 0,
|
|
1363
1362
|
"data-panel": !0,
|
|
@@ -1365,14 +1364,14 @@ function it({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1365
1364
|
id: b,
|
|
1366
1365
|
ref: C,
|
|
1367
1366
|
style: {
|
|
1368
|
-
...
|
|
1367
|
+
...it,
|
|
1369
1368
|
display: "flex",
|
|
1370
1369
|
flexBasis: 0,
|
|
1371
1370
|
flexShrink: 1,
|
|
1372
1371
|
overflow: "visible",
|
|
1373
1372
|
...N
|
|
1374
1373
|
},
|
|
1375
|
-
children: /* @__PURE__ */ (
|
|
1374
|
+
children: /* @__PURE__ */ f("div", {
|
|
1376
1375
|
className: t,
|
|
1377
1376
|
style: {
|
|
1378
1377
|
maxHeight: "100%",
|
|
@@ -1386,8 +1385,8 @@ function it({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1386
1385
|
})
|
|
1387
1386
|
});
|
|
1388
1387
|
}
|
|
1389
|
-
|
|
1390
|
-
var
|
|
1388
|
+
rt.displayName = "Panel";
|
|
1389
|
+
var it = {
|
|
1391
1390
|
minHeight: 0,
|
|
1392
1391
|
maxHeight: "100%",
|
|
1393
1392
|
height: "auto",
|
|
@@ -1399,7 +1398,7 @@ var at = {
|
|
|
1399
1398
|
padding: 0,
|
|
1400
1399
|
margin: 0
|
|
1401
1400
|
};
|
|
1402
|
-
function
|
|
1401
|
+
function at({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
1403
1402
|
let i, a, o = e[n], s = t.find((e) => e.panelId === n);
|
|
1404
1403
|
if (s) {
|
|
1405
1404
|
let c = s.maxSize, l = s.collapsible ? s.collapsedSize : s.minSize, u = [r, r + 1];
|
|
@@ -1430,26 +1429,26 @@ function ot({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
|
1430
1429
|
valueNow: o
|
|
1431
1430
|
};
|
|
1432
1431
|
}
|
|
1433
|
-
function
|
|
1434
|
-
let
|
|
1432
|
+
function ot({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: a, id: o, style: s, ...c }) {
|
|
1433
|
+
let d = Z(o), p = Ze({
|
|
1435
1434
|
disabled: n,
|
|
1436
1435
|
disableDoubleClick: r
|
|
1437
|
-
}), [
|
|
1436
|
+
}), [m, h] = u({}), [g, _] = u("inactive"), [v, y] = u(!1), b = l(null), x = Xe(b, a), { disableCursor: S, id: C, orientation: w, registerSeparator: T, updateSeparatorProps: E } = tt(), D = w === "horizontal" ? "vertical" : "horizontal";
|
|
1438
1437
|
Q(() => {
|
|
1439
1438
|
let e = b.current;
|
|
1440
1439
|
if (e !== null) {
|
|
1441
1440
|
let t = {
|
|
1442
|
-
disabled:
|
|
1443
|
-
disableDoubleClick:
|
|
1441
|
+
disabled: p.disabled,
|
|
1442
|
+
disableDoubleClick: p.disableDoubleClick,
|
|
1444
1443
|
element: e,
|
|
1445
|
-
id:
|
|
1446
|
-
}, n = T(t), r =
|
|
1444
|
+
id: d
|
|
1445
|
+
}, n = T(t), r = Ce((e) => {
|
|
1447
1446
|
_(e.next.state !== "inactive" && e.next.hitRegions.some((e) => e.separator === t) ? e.next.state : "inactive");
|
|
1448
|
-
}), i =
|
|
1447
|
+
}), i = re(C, (e) => {
|
|
1449
1448
|
let { derivedPanelConstraints: n, layout: r, separatorToPanels: i } = e.next, a = i.get(t);
|
|
1450
1449
|
if (a) {
|
|
1451
1450
|
let e = a[0], t = a.indexOf(e);
|
|
1452
|
-
h(
|
|
1451
|
+
h(at({
|
|
1453
1452
|
layout: r,
|
|
1454
1453
|
panelConstraints: n,
|
|
1455
1454
|
panelId: e.id,
|
|
@@ -1463,18 +1462,18 @@ function st({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
1463
1462
|
}
|
|
1464
1463
|
}, [
|
|
1465
1464
|
C,
|
|
1466
|
-
|
|
1465
|
+
d,
|
|
1467
1466
|
T,
|
|
1468
|
-
|
|
1469
|
-
]),
|
|
1470
|
-
E(
|
|
1467
|
+
p
|
|
1468
|
+
]), i(() => {
|
|
1469
|
+
E(d, {
|
|
1471
1470
|
disabled: n,
|
|
1472
1471
|
disableDoubleClick: r
|
|
1473
1472
|
});
|
|
1474
1473
|
}, [
|
|
1475
1474
|
n,
|
|
1476
1475
|
r,
|
|
1477
|
-
|
|
1476
|
+
d,
|
|
1478
1477
|
E
|
|
1479
1478
|
]);
|
|
1480
1479
|
let O;
|
|
@@ -1487,19 +1486,19 @@ function st({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
1487
1486
|
break;
|
|
1488
1487
|
default: k = v ? "focus" : g;
|
|
1489
1488
|
}
|
|
1490
|
-
return /* @__PURE__ */ (
|
|
1489
|
+
return /* @__PURE__ */ f("div", {
|
|
1491
1490
|
...c,
|
|
1492
|
-
"aria-controls":
|
|
1491
|
+
"aria-controls": m.valueControls,
|
|
1493
1492
|
"aria-disabled": n || void 0,
|
|
1494
1493
|
"aria-orientation": D,
|
|
1495
|
-
"aria-valuemax":
|
|
1496
|
-
"aria-valuemin":
|
|
1497
|
-
"aria-valuenow":
|
|
1494
|
+
"aria-valuemax": m.valueMax,
|
|
1495
|
+
"aria-valuemin": m.valueMin,
|
|
1496
|
+
"aria-valuenow": m.valueNow,
|
|
1498
1497
|
children: e,
|
|
1499
1498
|
className: t,
|
|
1500
1499
|
"data-separator": k,
|
|
1501
|
-
"data-testid":
|
|
1502
|
-
id:
|
|
1500
|
+
"data-testid": d,
|
|
1501
|
+
id: d,
|
|
1503
1502
|
onBlur: () => y(!1),
|
|
1504
1503
|
onFocus: () => y(!0),
|
|
1505
1504
|
ref: x,
|
|
@@ -1515,20 +1514,20 @@ function st({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
1515
1514
|
tabIndex: n ? void 0 : 0
|
|
1516
1515
|
});
|
|
1517
1516
|
}
|
|
1518
|
-
|
|
1517
|
+
ot.displayName = "Separator";
|
|
1519
1518
|
//#endregion
|
|
1520
1519
|
//#region src/resizable.tsx
|
|
1521
|
-
var
|
|
1520
|
+
var st = ({ className: t, direction: n, ...r }) => /* @__PURE__ */ f(et, {
|
|
1522
1521
|
orientation: n,
|
|
1523
|
-
className:
|
|
1522
|
+
className: e("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", t),
|
|
1524
1523
|
...r
|
|
1525
|
-
}),
|
|
1526
|
-
className:
|
|
1524
|
+
}), ct = rt, lt = ({ withHandle: t, className: n, ...r }) => /* @__PURE__ */ f(ot, {
|
|
1525
|
+
className: e("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", n),
|
|
1527
1526
|
...r,
|
|
1528
|
-
children:
|
|
1527
|
+
children: t && /* @__PURE__ */ f("div", {
|
|
1529
1528
|
className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",
|
|
1530
|
-
children: /* @__PURE__ */ (
|
|
1529
|
+
children: /* @__PURE__ */ f(p, { className: "h-2.5 w-2.5" })
|
|
1531
1530
|
})
|
|
1532
1531
|
});
|
|
1533
1532
|
//#endregion
|
|
1534
|
-
export {
|
|
1533
|
+
export { ct as n, st as r, lt as t };
|