@gv-tech/ui-web 2.28.0 → 2.29.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/__contracts.d.ts +44 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-BgbjpZAF.js +1 -0
- package/dist/accordion-Bqt-y-u7.mjs +239 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +4 -4
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-BkUyJb_F.mjs +182 -0
- package/dist/alert-dialog-DonbkCSD.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +12 -12
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +4 -4
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +2 -2
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-C7oBX-p_.mjs} +10 -9
- package/dist/aspect-ratio-X3HWxQz0.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/attachment.cjs +1 -0
- package/dist/attachment.d.ts +23 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.mjs +101 -0
- package/dist/attachment.test.d.ts +2 -0
- package/dist/attachment.test.d.ts.map +1 -0
- package/dist/avatar-DTkhTxt7.mjs +133 -0
- package/dist/avatar-DhvZbCtI.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +6 -6
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +25 -25
- package/dist/bubble.cjs +1 -0
- package/dist/bubble.d.ts +13 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/bubble.mjs +72 -0
- package/dist/bubble.test.d.ts +2 -0
- package/dist/bubble.test.d.ts.map +1 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +3 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +6 -6
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +6 -6
- package/dist/calendar-Bo8kovKR.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-CkHWa9Uu.mjs} +825 -803
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +2 -2
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +7 -7
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +5 -5
- package/dist/carousel-Cv5isLeg.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-ynaeMNIV.mjs} +53 -53
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +5 -5
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.d.ts +4 -4
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox-BLvAEmRC.mjs +182 -0
- package/dist/checkbox-Dt06B4YW.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-CzyhzCaP.mjs +63 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/combobox-BB_YzCTY.js +4 -0
- package/dist/combobox-YxjYGUoe.mjs +5748 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +14 -14
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/command-BqO-CfH6.js +1 -0
- package/dist/command-DY6u8V0D.mjs +545 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +9 -9
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-Dad9hs94.js +1 -0
- package/dist/context-menu-tL6CY6a0.mjs +318 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +15 -15
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +10 -10
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +25 -25
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-5r7hQmO0.mjs +187 -0
- package/dist/dist-6c2NeKfz.mjs +536 -0
- package/dist/dist-8fYwoWd4.mjs +111 -0
- package/dist/{dist-N3JLy7yk.mjs → dist-9-j0_8D1.mjs} +9 -4
- package/dist/dist-BIXhHahX.mjs +30 -0
- package/dist/dist-BMl8xXCH.mjs +188 -0
- package/dist/dist-BOKg7rhq.js +1 -0
- package/dist/dist-BPhn-EOy.mjs +15 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BQhMregZ.mjs} +9 -5
- package/dist/dist-BTN2t9yv.js +1 -0
- package/dist/dist-BUXpRW9O.mjs +100 -0
- package/dist/{dist-xgVOvcNx.mjs → dist-Bivv8B6p.mjs} +8 -3
- package/dist/dist-BoNQb2nd.js +1 -0
- package/dist/dist-ByW6RHeZ.mjs +94 -0
- package/dist/dist-C83rnWRv.js +1 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CBsYNwXz.mjs +16 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CYrqAnIr.mjs +182 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-CdBAkUWT.js +1 -0
- package/dist/dist-Cn7g8jD0.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/{dist-C9PlF532.mjs → dist-D7UHN1DJ.mjs} +1 -1
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DMwCTE2i.mjs +90 -0
- package/dist/dist-DOoZ3vGL.mjs +407 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DcRkoHAk.js +1 -0
- package/dist/dist-DfvK7DpO.mjs +213 -0
- package/dist/dist-Dg9ASyqI.mjs +96 -0
- package/dist/dist-Dj9s8AIv.js +1 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DyMv0xk8.mjs +41 -0
- package/dist/dist-NEeQKKDZ.js +1 -0
- package/dist/dist-N_70prl1.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-dMp9dzmY.mjs +20 -0
- package/dist/dist-mHQuNOH-.js +1 -0
- package/dist/dist-oyFh63Uq.js +1 -0
- package/dist/dist-rx5WaFf5.mjs +20 -0
- package/dist/dist-v-Y6tnMq.js +1 -0
- package/dist/dist-v9094Auw.js +1 -0
- package/dist/dist-yA6iVq_M.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +10 -10
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BWqWoYis.mjs} +117 -151
- package/dist/dropdown-menu-BpZcobmP.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +15 -15
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +6 -6
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/{es2015-BhmbVcui.mjs → es2015-CYxXY2oV.mjs} +242 -216
- package/dist/es2015-t2RPC0Rg.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +11 -11
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +4 -4
- package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
- package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +6 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-7NjGqlP0.js +1 -0
- package/dist/hover-card-DuRUptxQ.mjs +176 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +3 -3
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +40 -34
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +7 -7
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +4 -4
- package/dist/input-otp-D9MwUsPO.js +20 -0
- package/dist/input-otp-m_BTudNY.mjs +409 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +4 -4
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +11 -11
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +4 -4
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -2
- package/dist/label-CgKiKHKG.js +1 -0
- package/dist/label-DVA-YKpB.mjs +28 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -0
- package/dist/marker.d.ts +12 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/marker.mjs +40 -0
- package/dist/marker.test.d.ts +2 -0
- package/dist/marker.test.d.ts.map +1 -0
- package/dist/{menubar-BcyqIJgy.mjs → menubar-CyKBLHme.mjs} +130 -166
- package/dist/menubar-DlOMZeh1.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +16 -16
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller-FwdKclRM.mjs +824 -0
- package/dist/message-scroller.cjs +1 -0
- package/dist/message-scroller.d.ts +13 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message-scroller.mjs +3 -0
- package/dist/message-scroller.test.d.ts +2 -0
- package/dist/message-scroller.test.d.ts.map +1 -0
- package/dist/message.cjs +1 -0
- package/dist/message.d.ts +11 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.mjs +50 -0
- package/dist/message.test.d.ts +2 -0
- package/dist/message.test.d.ts.map +1 -0
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +12 -12
- package/dist/navigation-menu-BzE1J1rs.mjs +608 -0
- package/dist/navigation-menu-CrR01R8Z.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +8 -8
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +7 -7
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +40 -34
- package/dist/popover-CFF_HXSf.mjs +222 -0
- package/dist/popover-D9pVy08c.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +7 -7
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-ClcVCqjl.mjs +93 -0
- package/dist/progress-nfJMuKGj.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/questionnaire-DKWcZeWT.mjs +1159 -0
- package/dist/questionnaire-PWClWvST.js +1 -0
- package/dist/questionnaire.cjs +1 -0
- package/dist/questionnaire.d.ts +22 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/questionnaire.mjs +4 -0
- package/dist/questionnaire.test.d.ts +2 -0
- package/dist/questionnaire.test.d.ts.map +1 -0
- package/dist/radio-group-5VwmCXRK.mjs +265 -0
- package/dist/radio-group-DhXnB0fI.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable-ChIqXiu4.js +1 -0
- package/dist/{resizable-DJSE3e5L.mjs → resizable-CpovHnG-.mjs} +341 -329
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area-CUqjuvqH.js +1 -0
- package/dist/{scroll-area-8QcqkHnC.mjs → scroll-area-DstdIGvS.mjs} +151 -142
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +11 -11
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +17 -17
- package/dist/select-CnCTQeh7.js +1 -0
- package/dist/select-CnHZdna2.mjs +792 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +10 -10
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-BXaVJadH.js +1 -0
- package/dist/separator-D1a8myFf.mjs +38 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +1 -1
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +8 -8
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-B5q6nH2G.mjs} +64 -64
- package/dist/sidebar-ns_2TNBM.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +24 -24
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider-PoIV6N-u.js +1 -0
- package/dist/slider-ZnyQjYsS.mjs +460 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +1 -1
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +2 -4
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +8 -8
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +5 -4
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +22 -22
- package/dist/switch-DLY8PkmL.js +1 -0
- package/dist/switch-DagjjAQu.mjs +170 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +4 -3
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +2 -2
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -8
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs-OQ6rj-3B.mjs +158 -0
- package/dist/tabs-QBWdNfSK.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/{theme-toggle-clE-HpSS.mjs → theme-toggle-BCcH-QtH.mjs} +20 -20
- package/dist/theme-toggle-Q3UHstP_.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -1
- package/dist/{toast-DVI6jPq5.mjs → toast-BOdziIGg.mjs} +165 -169
- package/dist/toast-D1fjLwO1.js +1 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-CKAJ9cht.mjs} +1 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-DS9iODKU.js} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-CuLxBIWH.mjs +59 -0
- package/dist/toggle-DtpvPox_.js +1 -0
- package/dist/toggle-group-DfkvPKU_.mjs +164 -0
- package/dist/toggle-group-UHY0Tip1.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +2 -2
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +1 -1
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip-BbCL1gtU.mjs +384 -0
- package/dist/tooltip-BvpyStn2.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +4 -4
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +3 -1
- package/src/__contracts.ts +163 -0
- package/src/accordion.tsx +3 -4
- package/src/alert-dialog.tsx +5 -5
- package/src/alert.tsx +2 -3
- package/src/attachment.tsx +203 -0
- package/src/breadcrumb.tsx +3 -4
- package/src/bubble.tsx +116 -0
- package/src/button-group.tsx +5 -5
- package/src/button.tsx +5 -6
- package/src/calendar.tsx +6 -5
- package/src/card.tsx +5 -5
- package/src/carousel.tsx +7 -7
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +3 -4
- package/src/combobox.tsx +8 -7
- package/src/command.tsx +7 -7
- package/src/context-menu.tsx +9 -10
- package/src/dialog.tsx +5 -5
- package/src/drawer.tsx +2 -3
- package/src/dropdown-menu.tsx +9 -10
- package/src/empty.tsx +2 -3
- package/src/field.tsx +5 -4
- package/src/hover-card.tsx +2 -3
- package/src/index.ts +54 -0
- package/src/input-group.tsx +8 -7
- package/src/input-otp.tsx +3 -3
- package/src/input.tsx +1 -2
- package/src/item.tsx +4 -3
- package/src/kbd.tsx +3 -2
- package/src/label.tsx +1 -2
- package/src/marker.tsx +62 -0
- package/src/menubar.tsx +10 -11
- package/src/message-scroller.tsx +134 -0
- package/src/message.tsx +86 -0
- package/src/native-select.tsx +2 -2
- package/src/navigation-menu.tsx +7 -8
- package/src/pagination.tsx +6 -6
- package/src/popover.tsx +2 -3
- package/src/progress.tsx +1 -2
- package/src/questionnaire.tsx +334 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +2 -3
- package/src/select.tsx +7 -8
- package/src/separator.tsx +3 -4
- package/src/sheet.tsx +5 -5
- package/src/sidebar.tsx +14 -13
- package/src/skeleton.tsx +1 -1
- package/src/slider.tsx +4 -5
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +10 -2
- package/src/switch.tsx +3 -4
- package/src/table-of-contents.tsx +7 -2
- package/src/table.tsx +1 -2
- package/src/tabs.tsx +8 -9
- package/src/textarea.tsx +1 -2
- package/src/toggle-group.tsx +4 -4
- package/src/toggle.tsx +3 -4
- package/src/tooltip.tsx +2 -3
- package/dist/accordion-Dd8Hrexd.mjs +0 -244
- package/dist/accordion-DdSOiVyo.js +0 -1
- package/dist/alert-dialog-B7zX3gJX.js +0 -7
- package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
- package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
- package/dist/avatar-C4onD8-4.mjs +0 -127
- package/dist/avatar-ki_M47qG.js +0 -1
- package/dist/calendar-D9sapvfY.js +0 -1
- package/dist/carousel-6oFHLN7R.js +0 -1
- package/dist/checkbox-BLgY82mB.js +0 -1
- package/dist/checkbox-Bts_zfqd.mjs +0 -173
- package/dist/combobox-6qNx9Wbb.js +0 -4
- package/dist/combobox-yDMqxM_J.mjs +0 -5522
- package/dist/command-C6wJ5giF.mjs +0 -576
- package/dist/command-DCrPL1iW.js +0 -1
- package/dist/context-menu-CydUpD4W.mjs +0 -349
- package/dist/context-menu-DQ7XuuG5.js +0 -1
- package/dist/dist-1C8JOpVg.js +0 -1
- package/dist/dist-B1OcuinL.mjs +0 -558
- package/dist/dist-BGZDG175.mjs +0 -199
- package/dist/dist-BPBwSSyk.mjs +0 -8
- package/dist/dist-BPX1UGAz2.js +0 -1
- package/dist/dist-BRsDdVlJ.js +0 -1
- package/dist/dist-BWwCr-xN.mjs +0 -118
- package/dist/dist-BYdcKuDi.mjs +0 -16
- package/dist/dist-BlB11V_z.mjs +0 -27
- package/dist/dist-Bm8Cuttq.mjs +0 -76
- package/dist/dist-Byhx2fDJ.js +0 -1
- package/dist/dist-CCXBcfM3.js +0 -1
- package/dist/dist-CCokLFyA.mjs +0 -10
- package/dist/dist-CDU9vno-.mjs +0 -18
- package/dist/dist-CEJNUZGZ.js +0 -1
- package/dist/dist-CJolxugc.js +0 -1
- package/dist/dist-CQhWBhaI.mjs +0 -91
- package/dist/dist-CRLbUj9C.js +0 -1
- package/dist/dist-CSkpam6a.js +0 -1
- package/dist/dist-CWElW7UD.js +0 -1
- package/dist/dist-CXbzwSnE.js +0 -1
- package/dist/dist-CYj6O95k.mjs +0 -220
- package/dist/dist-C_45sBzc2.js +0 -1
- package/dist/dist-Cb7OVHcJ.js +0 -1
- package/dist/dist-Ccv5O-Vw.js +0 -1
- package/dist/dist-ChuP-5Gb.js +0 -1
- package/dist/dist-CiM892Rg.js +0 -1
- package/dist/dist-CuMQq0hV.js +0 -1
- package/dist/dist-DGzGsPqo2.mjs +0 -6
- package/dist/dist-DMnXk8Uo.js +0 -1
- package/dist/dist-DPBTfUqI.mjs +0 -96
- package/dist/dist-DR0lXVFG.js +0 -1
- package/dist/dist-Da7BU5sd.js +0 -5
- package/dist/dist-Df2ez-DA.mjs +0 -12
- package/dist/dist-DuTFGM_g.mjs +0 -45
- package/dist/dist-DynSBUGq.js +0 -1
- package/dist/dist-Dz3LbuDd.mjs +0 -60
- package/dist/dist-GhACpuJb2.mjs +0 -73
- package/dist/dist-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- package/dist/es2015-D22cM8Q_.js +0 -41
- package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
- package/dist/hover-card-CJ-ibpbC.mjs +0 -187
- package/dist/hover-card-CK5SjVLL.js +0 -1
- package/dist/input-otp-BH_9dVhh.mjs +0 -391
- package/dist/input-otp-BibboKMt.js +0 -20
- package/dist/label-BXMSoyyu.js +0 -1
- package/dist/label-C8GNfPU0.mjs +0 -25
- package/dist/menubar-DPxokWFI.js +0 -1
- package/dist/navigation-menu-2yE2MUu-.js +0 -1
- package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
- package/dist/popover-D1AO-E8p.js +0 -1
- package/dist/popover-wQACF3ut.mjs +0 -245
- package/dist/progress-DPWSEWa5.mjs +0 -86
- package/dist/progress-ShXZwOfj.js +0 -6
- package/dist/radio-group-CQbZCQmj.mjs +0 -199
- package/dist/radio-group-DAEi5vW_.js +0 -1
- package/dist/resizable-Cv-mKMKP.js +0 -1
- package/dist/scroll-area-Cqqinhxf.js +0 -1
- package/dist/select-DdUveoSA.js +0 -1
- package/dist/select-yoeH35x2.mjs +0 -778
- package/dist/separator-BU1ea5gl.mjs +0 -35
- package/dist/separator-DBjErwHf.js +0 -1
- package/dist/shim-B5sEfNEJ.js +0 -1
- package/dist/shim-DX33EwUw.mjs +0 -91
- package/dist/sidebar-DIW-1cin.js +0 -1
- package/dist/slider-CCPXejUF.mjs +0 -388
- package/dist/slider-w05gD_Ix.js +0 -1
- package/dist/switch-CDBqsWQa.mjs +0 -112
- package/dist/switch-X2WBJsUu.js +0 -1
- package/dist/tabs-DzvgrVzk.js +0 -1
- package/dist/tabs-KDeHjVQU.mjs +0 -160
- package/dist/theme-toggle-C2Y4bIM3.js +0 -1
- package/dist/toast-1keyrzem.js +0 -1
- package/dist/toggle-BGkq5XDM.js +0 -1
- package/dist/toggle-BfIIdlA6.mjs +0 -58
- package/dist/toggle-group-CbqgoPFU.mjs +0 -167
- package/dist/toggle-group-D7hR4BT2.js +0 -1
- package/dist/tooltip-CAIbshMk.js +0 -1
- package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
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
3
|
import { jsx as f } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../node_modules/.bun/react-resizable-panels@4.
|
|
4
|
+
//#region ../../node_modules/.bun/react-resizable-panels@4.12.4+6f4b9a1cfb20c0ae/node_modules/react-resizable-panels/dist/react-resizable-panels.js
|
|
5
5
|
function p(e, t) {
|
|
6
6
|
let n = getComputedStyle(e);
|
|
7
7
|
return t * parseFloat(n.fontSize);
|
|
@@ -238,34 +238,137 @@ var M = class {
|
|
|
238
238
|
e >= 0 && n.splice(e, 1);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
}, N =
|
|
241
|
+
}, N = {
|
|
242
|
+
cursorFlags: 0,
|
|
243
|
+
state: "inactive"
|
|
244
|
+
}, ee = new M();
|
|
245
|
+
function P() {
|
|
246
|
+
return N;
|
|
247
|
+
}
|
|
242
248
|
function te(e) {
|
|
243
|
-
|
|
249
|
+
return ee.addListener("change", e);
|
|
244
250
|
}
|
|
245
|
-
function ne(e
|
|
246
|
-
|
|
251
|
+
function ne(e) {
|
|
252
|
+
let t = N, n = { ...N };
|
|
253
|
+
n.cursorFlags = e, N = n, ee.emit("change", {
|
|
254
|
+
prev: t,
|
|
255
|
+
next: n
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
function F(e) {
|
|
259
|
+
let t = N;
|
|
260
|
+
N = e, ee.emit("change", {
|
|
261
|
+
prev: t,
|
|
262
|
+
next: e
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
var re = (e) => e, ie = () => {}, ae = 1, oe = 2, se = 4, ce = 8, le = 3, ue = 12, I;
|
|
266
|
+
function de() {
|
|
267
|
+
return I === void 0 && (I = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (I = !0)), I;
|
|
268
|
+
}
|
|
269
|
+
function fe({ cursorFlags: e, groups: t, state: n }) {
|
|
270
|
+
let r = 0, i = 0;
|
|
271
|
+
switch (n) {
|
|
272
|
+
case "active":
|
|
273
|
+
case "hover": t.forEach((e) => {
|
|
274
|
+
if (!e.mutableState.disableCursor) switch (e.orientation) {
|
|
275
|
+
case "horizontal":
|
|
276
|
+
r++;
|
|
277
|
+
break;
|
|
278
|
+
case "vertical":
|
|
279
|
+
i++;
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
if (!(r === 0 && i === 0)) {
|
|
285
|
+
switch (n) {
|
|
286
|
+
case "active":
|
|
287
|
+
if (e && de()) {
|
|
288
|
+
let t = (e & ae) !== 0, n = (e & oe) !== 0, r = (e & se) !== 0, i = (e & ce) !== 0;
|
|
289
|
+
if (t) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
290
|
+
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
291
|
+
if (r) return "s-resize";
|
|
292
|
+
if (i) return "n-resize";
|
|
293
|
+
}
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
return de() ? r > 0 && i > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && i > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
|
|
297
|
+
}
|
|
247
298
|
}
|
|
248
|
-
|
|
249
|
-
|
|
299
|
+
var pe = /* @__PURE__ */ new WeakMap();
|
|
300
|
+
function me(e) {
|
|
301
|
+
if (!e.defaultView || !e.adoptedStyleSheets) return;
|
|
302
|
+
let { prevStyle: t, styleSheet: n } = pe.get(e) ?? {};
|
|
303
|
+
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]));
|
|
304
|
+
let r = P();
|
|
305
|
+
switch (r.state) {
|
|
306
|
+
case "active":
|
|
307
|
+
case "hover": {
|
|
308
|
+
let e = fe({
|
|
309
|
+
cursorFlags: r.cursorFlags,
|
|
310
|
+
groups: r.hitRegions.map((e) => e.group),
|
|
311
|
+
state: r.state
|
|
312
|
+
}), i = `*, *:hover {cursor: ${e} !important; }`;
|
|
313
|
+
if (t === i) return;
|
|
314
|
+
t = i, e ? n.cssRules.length === 0 ? n.insertRule(i) : n.replaceSync(i) : n.cssRules.length === 1 && n.deleteRule(0);
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
case "inactive":
|
|
318
|
+
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
pe.set(e, {
|
|
322
|
+
prevStyle: t,
|
|
323
|
+
styleSheet: n
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
var L = /* @__PURE__ */ new Map(), he = new M();
|
|
327
|
+
function ge(e) {
|
|
328
|
+
L = new Map(L), L.delete(e);
|
|
329
|
+
}
|
|
330
|
+
function _e(e, t) {
|
|
331
|
+
for (let [t] of L) if (t.id === e) return t;
|
|
332
|
+
}
|
|
333
|
+
function R(e, t) {
|
|
334
|
+
for (let [t, n] of L) if (t.id === e) return n;
|
|
250
335
|
if (t) throw Error(`Could not find data for Group with id ${e}`);
|
|
251
336
|
}
|
|
252
|
-
function
|
|
253
|
-
return
|
|
337
|
+
function z() {
|
|
338
|
+
return L;
|
|
254
339
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
340
|
+
function B(e, t) {
|
|
341
|
+
return he.addListener("groupChange", (n) => {
|
|
257
342
|
n.group.id === e && t(n);
|
|
258
343
|
});
|
|
259
344
|
}
|
|
260
|
-
function
|
|
261
|
-
let
|
|
262
|
-
|
|
345
|
+
function V(e, t, n) {
|
|
346
|
+
let r = L.get(e);
|
|
347
|
+
L = new Map(L), L.set(e, t), he.emit("groupChange", {
|
|
263
348
|
group: e,
|
|
264
|
-
|
|
349
|
+
isUserInteraction: n?.isUserInteraction === !0,
|
|
350
|
+
prev: r,
|
|
265
351
|
next: t
|
|
266
352
|
});
|
|
267
353
|
}
|
|
268
|
-
function
|
|
354
|
+
function ve(e) {
|
|
355
|
+
let t = P(), n = z(), r = !1;
|
|
356
|
+
switch (t.state) {
|
|
357
|
+
case "active": F({
|
|
358
|
+
cursorFlags: 0,
|
|
359
|
+
state: "inactive"
|
|
360
|
+
}), t.hitRegions.length > 0 && (me(e), r = !0, t.hitRegions.forEach((e) => {
|
|
361
|
+
if (!n.has(e.group)) return;
|
|
362
|
+
let t = R(e.group.id, !0);
|
|
363
|
+
V(e.group, t, { isUserInteraction: !0 });
|
|
364
|
+
}));
|
|
365
|
+
}
|
|
366
|
+
return r;
|
|
367
|
+
}
|
|
368
|
+
function ye(e) {
|
|
369
|
+
e.defaultPrevented || ve(e.currentTarget);
|
|
370
|
+
}
|
|
371
|
+
function be(e, t, n) {
|
|
269
372
|
let r, i = {
|
|
270
373
|
x: Infinity,
|
|
271
374
|
y: Infinity
|
|
@@ -286,20 +389,20 @@ function ie(e, t, n) {
|
|
|
286
389
|
hitRegion: r
|
|
287
390
|
} : void 0;
|
|
288
391
|
}
|
|
289
|
-
function
|
|
392
|
+
function xe(e) {
|
|
290
393
|
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
291
394
|
}
|
|
292
|
-
function
|
|
395
|
+
function Se(e, t) {
|
|
293
396
|
if (e === t) throw Error("Cannot compare node with itself");
|
|
294
397
|
let n = {
|
|
295
|
-
a:
|
|
296
|
-
b:
|
|
398
|
+
a: Oe(e),
|
|
399
|
+
b: Oe(t)
|
|
297
400
|
}, r;
|
|
298
401
|
for (; n.a.at(-1) === n.b.at(-1);) r = n.a.pop(), n.b.pop();
|
|
299
402
|
S(r, "Stacking order can only be calculated for elements with a common ancestor");
|
|
300
403
|
let i = {
|
|
301
|
-
a:
|
|
302
|
-
b:
|
|
404
|
+
a: De(Ee(n.a)),
|
|
405
|
+
b: De(Ee(n.b))
|
|
303
406
|
};
|
|
304
407
|
if (i.a === i.b) {
|
|
305
408
|
let e = r.childNodes, t = {
|
|
@@ -314,87 +417,87 @@ function oe(e, t) {
|
|
|
314
417
|
}
|
|
315
418
|
return Math.sign(i.a - i.b);
|
|
316
419
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
319
|
-
let t = getComputedStyle(
|
|
420
|
+
var Ce = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
421
|
+
function we(e) {
|
|
422
|
+
let t = getComputedStyle(ke(e) ?? e).display;
|
|
320
423
|
return t === "flex" || t === "inline-flex";
|
|
321
424
|
}
|
|
322
|
-
function
|
|
425
|
+
function Te(e) {
|
|
323
426
|
let t = getComputedStyle(e);
|
|
324
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
427
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || we(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" || Ce.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
325
428
|
}
|
|
326
|
-
function
|
|
429
|
+
function Ee(e) {
|
|
327
430
|
let t = e.length;
|
|
328
431
|
for (; t--;) {
|
|
329
432
|
let n = e[t];
|
|
330
|
-
if (S(n, "Missing node"),
|
|
433
|
+
if (S(n, "Missing node"), Te(n)) return n;
|
|
331
434
|
}
|
|
332
435
|
return null;
|
|
333
436
|
}
|
|
334
|
-
function
|
|
437
|
+
function De(e) {
|
|
335
438
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
336
439
|
}
|
|
337
|
-
function
|
|
440
|
+
function Oe(e) {
|
|
338
441
|
let t = [];
|
|
339
|
-
for (; e;) t.push(e), e =
|
|
442
|
+
for (; e;) t.push(e), e = ke(e);
|
|
340
443
|
return t;
|
|
341
444
|
}
|
|
342
|
-
function
|
|
445
|
+
function ke(e) {
|
|
343
446
|
let { parentNode: t } = e;
|
|
344
|
-
return
|
|
447
|
+
return xe(t) ? t.host : t;
|
|
345
448
|
}
|
|
346
|
-
function
|
|
449
|
+
function Ae(e, t) {
|
|
347
450
|
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;
|
|
348
451
|
}
|
|
349
|
-
function
|
|
452
|
+
function je({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
|
|
350
453
|
if (!E(n) || n.contains(e) || e.contains(n)) return !0;
|
|
351
|
-
if (
|
|
454
|
+
if (Se(n, e) > 0) {
|
|
352
455
|
let r = n;
|
|
353
456
|
for (; r;) {
|
|
354
457
|
if (r.contains(e)) return !0;
|
|
355
|
-
if (
|
|
458
|
+
if (Ae(r.getBoundingClientRect(), t)) return !1;
|
|
356
459
|
r = r.parentElement;
|
|
357
460
|
}
|
|
358
461
|
}
|
|
359
462
|
return !0;
|
|
360
463
|
}
|
|
361
|
-
function
|
|
464
|
+
function Me(e, t) {
|
|
362
465
|
let n = [];
|
|
363
466
|
return t.forEach((t, r) => {
|
|
364
467
|
if (r.disabled) return;
|
|
365
|
-
let i = j(r), a =
|
|
468
|
+
let i = j(r), a = be(r.orientation, i, {
|
|
366
469
|
x: e.clientX,
|
|
367
470
|
y: e.clientY
|
|
368
471
|
});
|
|
369
|
-
a && a.distance.x <= 0 && a.distance.y <= 0 &&
|
|
472
|
+
a && a.distance.x <= 0 && a.distance.y <= 0 && je({
|
|
370
473
|
groupElement: r.element,
|
|
371
474
|
hitRegion: a.hitRegion.rect,
|
|
372
475
|
pointerEventTarget: e.target
|
|
373
476
|
}) && n.push(a.hitRegion);
|
|
374
477
|
}), n;
|
|
375
478
|
}
|
|
376
|
-
function
|
|
479
|
+
function Ne(e, t) {
|
|
377
480
|
if (e.length !== t.length) return !1;
|
|
378
481
|
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
|
|
379
482
|
return !0;
|
|
380
483
|
}
|
|
381
|
-
function
|
|
484
|
+
function H(e, t, n = 0) {
|
|
382
485
|
return Math.abs(y(e) - y(t)) <= n;
|
|
383
486
|
}
|
|
384
|
-
function
|
|
385
|
-
return
|
|
487
|
+
function U(e, t) {
|
|
488
|
+
return H(e, t) ? 0 : e > t ? 1 : -1;
|
|
386
489
|
}
|
|
387
|
-
function
|
|
490
|
+
function W({ overrideDisabledPanels: e, panelConstraints: t, prevSize: n, size: r }) {
|
|
388
491
|
let { collapsedSize: i = 0, collapsible: a, disabled: o, maxSize: s = 100, minSize: c = 0 } = t;
|
|
389
492
|
if (o && !e) return n;
|
|
390
|
-
if (
|
|
493
|
+
if (U(r, c) < 0) if (a) {
|
|
391
494
|
let e = (i + c) / 2;
|
|
392
|
-
r =
|
|
495
|
+
r = U(r, e) < 0 ? i : c;
|
|
393
496
|
} else r = c;
|
|
394
497
|
return r = Math.min(s, r), r = y(r), r;
|
|
395
498
|
}
|
|
396
|
-
function
|
|
397
|
-
if (
|
|
499
|
+
function G({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, prevLayout: i, trigger: a }) {
|
|
500
|
+
if (H(e, 0)) return t;
|
|
398
501
|
let o = a === "imperative-api", s = Object.values(t), c = Object.values(i), l = [...s], [u, d] = r;
|
|
399
502
|
S(u != null, "Invalid first pivot index"), S(d != null, "Invalid second pivot index");
|
|
400
503
|
let f = 0;
|
|
@@ -406,9 +509,9 @@ function B({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
406
509
|
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
|
|
407
510
|
if (a) {
|
|
408
511
|
let n = s[t];
|
|
409
|
-
if (S(n != null, `Previous layout not found for panel index ${t}`),
|
|
512
|
+
if (S(n != null, `Previous layout not found for panel index ${t}`), H(n, i)) {
|
|
410
513
|
let t = o - n;
|
|
411
|
-
|
|
514
|
+
U(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
412
515
|
}
|
|
413
516
|
}
|
|
414
517
|
}
|
|
@@ -418,9 +521,9 @@ function B({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
418
521
|
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
|
|
419
522
|
if (a) {
|
|
420
523
|
let n = s[t];
|
|
421
|
-
if (S(n != null, `Previous layout not found for panel index ${t}`),
|
|
524
|
+
if (S(n != null, `Previous layout not found for panel index ${t}`), H(n, o)) {
|
|
422
525
|
let t = n - i;
|
|
423
|
-
|
|
526
|
+
U(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
424
527
|
}
|
|
425
528
|
}
|
|
426
529
|
}
|
|
@@ -429,12 +532,12 @@ function B({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
429
532
|
let t = e < 0 ? d : u, r = n[t];
|
|
430
533
|
S(r, `Panel constraints not found for index ${t}`);
|
|
431
534
|
let i = s[t], { collapsible: a, collapsedSize: o, minSize: c } = r;
|
|
432
|
-
if (a &&
|
|
535
|
+
if (a && U(i, c) < 0) if (e > 0) {
|
|
433
536
|
let t = c - o, n = t / 2;
|
|
434
|
-
|
|
537
|
+
U(i + e, c) < 0 && (e = U(e, n) <= 0 ? 0 : t);
|
|
435
538
|
} else {
|
|
436
539
|
let t = c - o, n = 100 - t / 2;
|
|
437
|
-
|
|
540
|
+
U(i - e, c) < 0 && (e = U(100 + e, n) > 0 ? 0 : -t);
|
|
438
541
|
}
|
|
439
542
|
break;
|
|
440
543
|
}
|
|
@@ -444,7 +547,7 @@ function B({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
444
547
|
for (;;) {
|
|
445
548
|
let e = s[r];
|
|
446
549
|
S(e != null, `Previous layout not found for panel index ${r}`);
|
|
447
|
-
let a =
|
|
550
|
+
let a = W({
|
|
448
551
|
overrideDisabledPanels: o,
|
|
449
552
|
panelConstraints: n[r],
|
|
450
553
|
prevSize: e,
|
|
@@ -460,55 +563,55 @@ function B({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, p
|
|
|
460
563
|
for (; t >= 0 && t < n.length;) {
|
|
461
564
|
let r = Math.abs(e) - Math.abs(f), i = s[t];
|
|
462
565
|
S(i != null, `Previous layout not found for panel index ${t}`);
|
|
463
|
-
let a = i - r, c =
|
|
566
|
+
let a = i - r, c = W({
|
|
464
567
|
overrideDisabledPanels: o,
|
|
465
568
|
panelConstraints: n[t],
|
|
466
569
|
prevSize: i,
|
|
467
570
|
size: a
|
|
468
571
|
});
|
|
469
|
-
if (!
|
|
572
|
+
if (!H(i, c) && (f += i - c, l[t] = c, f.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, { numeric: !0 }) >= 0)) break;
|
|
470
573
|
e < 0 ? t-- : t++;
|
|
471
574
|
}
|
|
472
575
|
}
|
|
473
|
-
if (
|
|
576
|
+
if (Ne(c, l)) return i;
|
|
474
577
|
{
|
|
475
578
|
let t = e < 0 ? d : u, r = s[t];
|
|
476
579
|
S(r != null, `Previous layout not found for panel index ${t}`);
|
|
477
|
-
let i = r + f, a =
|
|
580
|
+
let i = r + f, a = W({
|
|
478
581
|
overrideDisabledPanels: o,
|
|
479
582
|
panelConstraints: n[t],
|
|
480
583
|
prevSize: r,
|
|
481
584
|
size: i
|
|
482
585
|
});
|
|
483
|
-
if (l[t] = a, !
|
|
586
|
+
if (l[t] = a, !H(a, i)) {
|
|
484
587
|
let t = i - a, r = e < 0 ? d : u;
|
|
485
588
|
for (; r >= 0 && r < n.length;) {
|
|
486
589
|
let i = l[r];
|
|
487
590
|
S(i != null, `Previous layout not found for panel index ${r}`);
|
|
488
|
-
let a = i + t, s =
|
|
591
|
+
let a = i + t, s = W({
|
|
489
592
|
overrideDisabledPanels: o,
|
|
490
593
|
panelConstraints: n[r],
|
|
491
594
|
prevSize: i,
|
|
492
595
|
size: a
|
|
493
596
|
});
|
|
494
|
-
if (
|
|
597
|
+
if (H(i, s) || (t -= s - i, l[r] = s), H(t, 0)) break;
|
|
495
598
|
e > 0 ? r-- : r++;
|
|
496
599
|
}
|
|
497
600
|
}
|
|
498
601
|
}
|
|
499
|
-
if (!
|
|
602
|
+
if (!H(Object.values(l).reduce((e, t) => t + e, 0), 100, .1)) return i;
|
|
500
603
|
let p = Object.keys(i);
|
|
501
604
|
return l.reduce((e, t, n) => (e[p[n]] = t, e), {});
|
|
502
605
|
}
|
|
503
|
-
function
|
|
606
|
+
function K(e, t) {
|
|
504
607
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
505
|
-
for (let n in e) if (t[n] === void 0 ||
|
|
608
|
+
for (let n in e) if (t[n] === void 0 || U(e[n], t[n]) !== 0) return !1;
|
|
506
609
|
return !0;
|
|
507
610
|
}
|
|
508
|
-
function
|
|
611
|
+
function q({ layout: e, panelConstraints: t }) {
|
|
509
612
|
let n = Object.values(e), r = [...n], i = r.reduce((e, t) => e + t, 0);
|
|
510
613
|
if (r.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${r.map((e) => `${e}%`).join(", ")}`);
|
|
511
|
-
if (!
|
|
614
|
+
if (!H(i, 100) && r.length > 0) for (let e = 0; e < t.length; e++) {
|
|
512
615
|
let t = r[e];
|
|
513
616
|
S(t != null, `No layout data found for index ${e}`), r[e] = 100 / i * t;
|
|
514
617
|
}
|
|
@@ -518,7 +621,7 @@ function H({ layout: e, panelConstraints: t }) {
|
|
|
518
621
|
S(i != null, `No layout data found for index ${e}`);
|
|
519
622
|
let o = r[e];
|
|
520
623
|
S(o != null, `No layout data found for index ${e}`);
|
|
521
|
-
let s =
|
|
624
|
+
let s = W({
|
|
522
625
|
overrideDisabledPanels: !0,
|
|
523
626
|
panelConstraints: t[e],
|
|
524
627
|
prevSize: i,
|
|
@@ -526,23 +629,23 @@ function H({ layout: e, panelConstraints: t }) {
|
|
|
526
629
|
});
|
|
527
630
|
o != s && (a += o - s, r[e] = s);
|
|
528
631
|
}
|
|
529
|
-
if (!
|
|
632
|
+
if (!H(a, 0)) for (let e = 0; e < t.length; e++) {
|
|
530
633
|
let n = r[e];
|
|
531
634
|
S(n != null, `No layout data found for index ${e}`);
|
|
532
|
-
let i = n + a, o =
|
|
635
|
+
let i = n + a, o = W({
|
|
533
636
|
overrideDisabledPanels: !0,
|
|
534
637
|
panelConstraints: t[e],
|
|
535
638
|
prevSize: n,
|
|
536
639
|
size: i
|
|
537
640
|
});
|
|
538
|
-
if (n !== o && (a -= o - n, r[e] = o,
|
|
641
|
+
if (n !== o && (a -= o - n, r[e] = o, H(a, 0))) break;
|
|
539
642
|
}
|
|
540
643
|
let o = Object.keys(e);
|
|
541
644
|
return r.reduce((e, t, n) => (e[o[n]] = t, e), {});
|
|
542
645
|
}
|
|
543
|
-
function
|
|
646
|
+
function Pe({ groupId: e, panelId: t }) {
|
|
544
647
|
let n = () => {
|
|
545
|
-
let t =
|
|
648
|
+
let t = z();
|
|
546
649
|
for (let [n, { defaultLayoutDeferred: r, derivedPanelConstraints: i, layout: a, groupSize: o, separatorToPanels: s }] of t) if (n.id === e) return {
|
|
547
650
|
defaultLayoutDeferred: r,
|
|
548
651
|
derivedPanelConstraints: i,
|
|
@@ -568,7 +671,7 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
568
671
|
let o = a(), s = n.findIndex((e) => e.id === t), c = s === 0, l = s === n.length - 1;
|
|
569
672
|
if (l && e < o && (c || n.slice(0, s).every((e, t) => {
|
|
570
673
|
let n = i[t];
|
|
571
|
-
return n?.collapsible &&
|
|
674
|
+
return n?.collapsible && H(n.collapsedSize, r[n.panelId]);
|
|
572
675
|
}))) {
|
|
573
676
|
let e = n.slice(0, s).reduce((e, t) => e + r[t.id], 0);
|
|
574
677
|
return {
|
|
@@ -576,7 +679,7 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
576
679
|
[t]: y(100 - e)
|
|
577
680
|
};
|
|
578
681
|
}
|
|
579
|
-
return
|
|
682
|
+
return G({
|
|
580
683
|
delta: l ? o - e : e - o,
|
|
581
684
|
initialLayout: r,
|
|
582
685
|
panelConstraints: i,
|
|
@@ -586,7 +689,7 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
586
689
|
});
|
|
587
690
|
}, s = (e) => {
|
|
588
691
|
if (e === a()) return;
|
|
589
|
-
let { defaultLayoutDeferred: t, derivedPanelConstraints: r, group: i, groupSize: s, layout: c, separatorToPanels: l } = n(), u =
|
|
692
|
+
let { defaultLayoutDeferred: t, derivedPanelConstraints: r, group: i, groupSize: s, layout: c, separatorToPanels: l } = n(), u = q({
|
|
590
693
|
layout: o({
|
|
591
694
|
nextSize: e,
|
|
592
695
|
panels: i.panels,
|
|
@@ -595,7 +698,7 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
595
698
|
}),
|
|
596
699
|
panelConstraints: r
|
|
597
700
|
});
|
|
598
|
-
|
|
701
|
+
K(c, u) || V(i, {
|
|
599
702
|
defaultLayoutDeferred: t,
|
|
600
703
|
derivedPanelConstraints: r,
|
|
601
704
|
groupSize: s,
|
|
@@ -624,7 +727,7 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
624
727
|
},
|
|
625
728
|
isCollapsed: () => {
|
|
626
729
|
let { collapsible: e, collapsedSize: t } = r(), n = a();
|
|
627
|
-
return e &&
|
|
730
|
+
return e && H(t, n);
|
|
628
731
|
},
|
|
629
732
|
resize: (e) => {
|
|
630
733
|
let { group: t } = n(), { element: r } = i(), a = b({ group: t });
|
|
@@ -636,12 +739,12 @@ function ve({ groupId: e, panelId: t }) {
|
|
|
636
739
|
}
|
|
637
740
|
};
|
|
638
741
|
}
|
|
639
|
-
function
|
|
640
|
-
e.defaultPrevented ||
|
|
742
|
+
function Fe(e) {
|
|
743
|
+
e.defaultPrevented || Me(e, z()).forEach((t) => {
|
|
641
744
|
if (t.separator && !t.separator.disableDoubleClick) {
|
|
642
745
|
let n = t.panels.find((e) => e.panelConstraints.defaultSize !== void 0);
|
|
643
746
|
if (n) {
|
|
644
|
-
let r = n.panelConstraints.defaultSize, i =
|
|
747
|
+
let r = n.panelConstraints.defaultSize, i = Pe({
|
|
645
748
|
groupId: t.group.id,
|
|
646
749
|
panelId: n.id
|
|
647
750
|
});
|
|
@@ -650,14 +753,14 @@ function ye(e) {
|
|
|
650
753
|
}
|
|
651
754
|
});
|
|
652
755
|
}
|
|
653
|
-
function
|
|
654
|
-
let t =
|
|
756
|
+
function J(e) {
|
|
757
|
+
let t = z();
|
|
655
758
|
for (let [n] of t) if (n.separators.some((t) => t.element === e)) return n;
|
|
656
759
|
throw Error("Could not find parent Group for separator element");
|
|
657
760
|
}
|
|
658
|
-
function
|
|
761
|
+
function Ie({ groupId: e }) {
|
|
659
762
|
let t = () => {
|
|
660
|
-
let t =
|
|
763
|
+
let t = z();
|
|
661
764
|
for (let [n, r] of t) if (n.id === e) return {
|
|
662
765
|
group: n,
|
|
663
766
|
...r
|
|
@@ -670,11 +773,11 @@ function be({ groupId: e }) {
|
|
|
670
773
|
return e ? {} : n;
|
|
671
774
|
},
|
|
672
775
|
setLayout(e) {
|
|
673
|
-
let { defaultLayoutDeferred: n, derivedPanelConstraints: r, group: i, groupSize: a, layout: o, separatorToPanels: s } = t(), c =
|
|
776
|
+
let { defaultLayoutDeferred: n, derivedPanelConstraints: r, group: i, groupSize: a, layout: o, separatorToPanels: s } = t(), c = q({
|
|
674
777
|
layout: e,
|
|
675
778
|
panelConstraints: r
|
|
676
779
|
});
|
|
677
|
-
return n ? o : (
|
|
780
|
+
return n ? o : (K(o, c) || V(i, {
|
|
678
781
|
defaultLayoutDeferred: n,
|
|
679
782
|
derivedPanelConstraints: r,
|
|
680
783
|
groupSize: a,
|
|
@@ -684,13 +787,13 @@ function be({ groupId: e }) {
|
|
|
684
787
|
}
|
|
685
788
|
};
|
|
686
789
|
}
|
|
687
|
-
function
|
|
688
|
-
let n =
|
|
790
|
+
function Y(e, t) {
|
|
791
|
+
let n = J(e), r = R(n.id, !0), i = n.separators.find((t) => t.element === e);
|
|
689
792
|
S(i, "Matching separator not found");
|
|
690
793
|
let a = r.separatorToPanels.get(i);
|
|
691
794
|
S(a, "Matching panels not found");
|
|
692
|
-
let o = a.map((e) => n.panels.indexOf(e)), s =
|
|
693
|
-
layout:
|
|
795
|
+
let o = a.map((e) => n.panels.indexOf(e)), s = Ie({ groupId: n.id }).getLayout(), c = q({
|
|
796
|
+
layout: G({
|
|
694
797
|
delta: t,
|
|
695
798
|
initialLayout: s,
|
|
696
799
|
panelConstraints: r.derivedPanelConstraints,
|
|
@@ -700,84 +803,60 @@ function W(e, t) {
|
|
|
700
803
|
}),
|
|
701
804
|
panelConstraints: r.derivedPanelConstraints
|
|
702
805
|
});
|
|
703
|
-
|
|
806
|
+
K(s, c) || V(n, {
|
|
704
807
|
defaultLayoutDeferred: r.defaultLayoutDeferred,
|
|
705
808
|
derivedPanelConstraints: r.derivedPanelConstraints,
|
|
706
809
|
groupSize: r.groupSize,
|
|
707
810
|
layout: c,
|
|
708
811
|
separatorToPanels: r.separatorToPanels
|
|
709
|
-
});
|
|
812
|
+
}, { isUserInteraction: !0 });
|
|
710
813
|
}
|
|
711
|
-
function
|
|
814
|
+
function Le(e) {
|
|
712
815
|
if (e.defaultPrevented) return;
|
|
713
|
-
let t = e.currentTarget, n =
|
|
816
|
+
let t = e.currentTarget, n = J(t);
|
|
714
817
|
if (!n.disabled) switch (e.key) {
|
|
715
818
|
case "ArrowDown":
|
|
716
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
819
|
+
e.preventDefault(), n.orientation === "vertical" && Y(t, 5);
|
|
717
820
|
break;
|
|
718
821
|
case "ArrowLeft":
|
|
719
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
822
|
+
e.preventDefault(), n.orientation === "horizontal" && Y(t, -5);
|
|
720
823
|
break;
|
|
721
824
|
case "ArrowRight":
|
|
722
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
825
|
+
e.preventDefault(), n.orientation === "horizontal" && Y(t, 5);
|
|
723
826
|
break;
|
|
724
827
|
case "ArrowUp":
|
|
725
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
828
|
+
e.preventDefault(), n.orientation === "vertical" && Y(t, -5);
|
|
726
829
|
break;
|
|
727
830
|
case "End":
|
|
728
|
-
e.preventDefault(),
|
|
831
|
+
e.preventDefault(), Y(t, 100);
|
|
729
832
|
break;
|
|
730
833
|
case "Enter": {
|
|
731
834
|
e.preventDefault();
|
|
732
|
-
let n =
|
|
835
|
+
let n = J(t), { derivedPanelConstraints: r, layout: i, separatorToPanels: a } = R(n.id, !0), o = n.separators.find((e) => e.element === t);
|
|
733
836
|
S(o, "Matching separator not found");
|
|
734
837
|
let s = a.get(o);
|
|
735
838
|
S(s, "Matching panels not found");
|
|
736
839
|
let c = s[0], l = r.find((e) => e.panelId === c.id);
|
|
737
840
|
if (S(l, "Panel metadata not found"), l.collapsible) {
|
|
738
841
|
let e = i[c.id];
|
|
739
|
-
|
|
842
|
+
Y(t, (l.collapsedSize === e ? n.mutableState.expandedPanelSizes[c.id] ?? l.minSize : l.collapsedSize) - e);
|
|
740
843
|
}
|
|
741
844
|
break;
|
|
742
845
|
}
|
|
743
846
|
case "F6": {
|
|
744
847
|
e.preventDefault();
|
|
745
|
-
let n =
|
|
848
|
+
let n = J(t).separators.map((e) => e.element), r = Array.from(n).findIndex((t) => t === e.currentTarget);
|
|
746
849
|
S(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 });
|
|
747
850
|
break;
|
|
748
851
|
}
|
|
749
852
|
case "Home":
|
|
750
|
-
e.preventDefault(),
|
|
853
|
+
e.preventDefault(), Y(t, -100);
|
|
751
854
|
break;
|
|
752
855
|
}
|
|
753
856
|
}
|
|
754
|
-
|
|
755
|
-
cursorFlags: 0,
|
|
756
|
-
state: "inactive"
|
|
757
|
-
}, Se = new M();
|
|
758
|
-
function K() {
|
|
759
|
-
return G;
|
|
760
|
-
}
|
|
761
|
-
function Ce(e) {
|
|
762
|
-
return Se.addListener("change", e);
|
|
763
|
-
}
|
|
764
|
-
function we(e) {
|
|
765
|
-
let t = G, n = { ...G };
|
|
766
|
-
n.cursorFlags = e, G = n, Se.emit("change", {
|
|
767
|
-
prev: t,
|
|
768
|
-
next: n
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
function q(e) {
|
|
772
|
-
let t = G;
|
|
773
|
-
G = e, Se.emit("change", {
|
|
774
|
-
prev: t,
|
|
775
|
-
next: e
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
function Te(e) {
|
|
857
|
+
function Re(e) {
|
|
779
858
|
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
|
|
780
|
-
let t =
|
|
859
|
+
let t = z(), n = Me(e, t), r = /* @__PURE__ */ new Map(), i = !1;
|
|
781
860
|
n.forEach((e) => {
|
|
782
861
|
e.separator && (i || (i = !0, e.separator.element.focus({
|
|
783
862
|
focusVisible: !1,
|
|
@@ -785,7 +864,7 @@ function Te(e) {
|
|
|
785
864
|
})));
|
|
786
865
|
let n = t.get(e.group);
|
|
787
866
|
n && r.set(e.group, n.layout);
|
|
788
|
-
}),
|
|
867
|
+
}), F({
|
|
789
868
|
cursorFlags: 0,
|
|
790
869
|
hitRegions: n,
|
|
791
870
|
initialLayoutMap: r,
|
|
@@ -796,68 +875,7 @@ function Te(e) {
|
|
|
796
875
|
state: "active"
|
|
797
876
|
}), n.length && e.preventDefault();
|
|
798
877
|
}
|
|
799
|
-
|
|
800
|
-
function Pe() {
|
|
801
|
-
return J === void 0 && (J = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (J = !0)), J;
|
|
802
|
-
}
|
|
803
|
-
function Fe({ cursorFlags: e, groups: t, state: n }) {
|
|
804
|
-
let r = 0, i = 0;
|
|
805
|
-
switch (n) {
|
|
806
|
-
case "active":
|
|
807
|
-
case "hover": t.forEach((e) => {
|
|
808
|
-
if (!e.mutableState.disableCursor) switch (e.orientation) {
|
|
809
|
-
case "horizontal":
|
|
810
|
-
r++;
|
|
811
|
-
break;
|
|
812
|
-
case "vertical":
|
|
813
|
-
i++;
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
if (!(r === 0 && i === 0)) {
|
|
819
|
-
switch (n) {
|
|
820
|
-
case "active":
|
|
821
|
-
if (e && Pe()) {
|
|
822
|
-
let t = (e & Oe) !== 0, n = (e & ke) !== 0, r = (e & Ae) !== 0, i = (e & je) !== 0;
|
|
823
|
-
if (t) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
824
|
-
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
825
|
-
if (r) return "s-resize";
|
|
826
|
-
if (i) return "n-resize";
|
|
827
|
-
}
|
|
828
|
-
break;
|
|
829
|
-
}
|
|
830
|
-
return Pe() ? r > 0 && i > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && i > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
var Ie = /* @__PURE__ */ new WeakMap();
|
|
834
|
-
function Le(e) {
|
|
835
|
-
if (e.defaultView === null || e.defaultView === void 0) return;
|
|
836
|
-
let { prevStyle: t, styleSheet: n } = Ie.get(e) ?? {};
|
|
837
|
-
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]));
|
|
838
|
-
let r = K();
|
|
839
|
-
switch (r.state) {
|
|
840
|
-
case "active":
|
|
841
|
-
case "hover": {
|
|
842
|
-
let e = Fe({
|
|
843
|
-
cursorFlags: r.cursorFlags,
|
|
844
|
-
groups: r.hitRegions.map((e) => e.group),
|
|
845
|
-
state: r.state
|
|
846
|
-
}), i = `*, *:hover {cursor: ${e} !important; }`;
|
|
847
|
-
if (t === i) return;
|
|
848
|
-
t = i, e ? n.cssRules.length === 0 ? n.insertRule(i) : n.replaceSync(i) : n.cssRules.length === 1 && n.deleteRule(0);
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
case "inactive":
|
|
852
|
-
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
853
|
-
break;
|
|
854
|
-
}
|
|
855
|
-
Ie.set(e, {
|
|
856
|
-
prevStyle: t,
|
|
857
|
-
styleSheet: n
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
function Re({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: i, pointerDownAtPoint: a, prevCursorFlags: o }) {
|
|
878
|
+
function ze({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: i, pointerDownAtPoint: a, prevCursorFlags: o }) {
|
|
861
879
|
let s = 0;
|
|
862
880
|
n.forEach((e) => {
|
|
863
881
|
let { group: n, groupSize: o } = e, { orientation: c, panels: l } = n, { disableCursor: u } = n.mutableState, d = 0;
|
|
@@ -866,7 +884,7 @@ function Re({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
866
884
|
if (!f || !p) return;
|
|
867
885
|
let { defaultLayoutDeferred: m, derivedPanelConstraints: h, groupSize: g, layout: _, separatorToPanels: v } = p;
|
|
868
886
|
if (h && _ && v) {
|
|
869
|
-
let t =
|
|
887
|
+
let t = G({
|
|
870
888
|
delta: d,
|
|
871
889
|
initialLayout: f,
|
|
872
890
|
panelConstraints: h,
|
|
@@ -874,16 +892,16 @@ function Re({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
874
892
|
prevLayout: _,
|
|
875
893
|
trigger: "mouse-or-touch"
|
|
876
894
|
});
|
|
877
|
-
if (
|
|
895
|
+
if (K(t, _)) {
|
|
878
896
|
if (d !== 0 && !u) switch (c) {
|
|
879
897
|
case "horizontal":
|
|
880
|
-
s |= d < 0 ?
|
|
898
|
+
s |= d < 0 ? ae : oe;
|
|
881
899
|
break;
|
|
882
900
|
case "vertical":
|
|
883
|
-
s |= d < 0 ?
|
|
901
|
+
s |= d < 0 ? se : ce;
|
|
884
902
|
break;
|
|
885
903
|
}
|
|
886
|
-
} else
|
|
904
|
+
} else V(e.group, {
|
|
887
905
|
defaultLayoutDeferred: m,
|
|
888
906
|
derivedPanelConstraints: h,
|
|
889
907
|
groupSize: g,
|
|
@@ -893,12 +911,12 @@ function Re({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
|
|
|
893
911
|
}
|
|
894
912
|
});
|
|
895
913
|
let c = 0;
|
|
896
|
-
t.movementX === 0 ? c |= o &
|
|
914
|
+
t.movementX === 0 ? c |= o & le : c |= s & le, t.movementY === 0 ? c |= o & ue : c |= s & ue, ne(c), me(e);
|
|
897
915
|
}
|
|
898
|
-
function
|
|
899
|
-
let t =
|
|
916
|
+
function Be(e) {
|
|
917
|
+
let t = z(), n = P();
|
|
900
918
|
switch (n.state) {
|
|
901
|
-
case "active":
|
|
919
|
+
case "active": ze({
|
|
902
920
|
document: e.currentTarget,
|
|
903
921
|
event: e,
|
|
904
922
|
hitRegions: n.hitRegions,
|
|
@@ -908,26 +926,27 @@ function ze(e) {
|
|
|
908
926
|
});
|
|
909
927
|
}
|
|
910
928
|
}
|
|
911
|
-
function
|
|
929
|
+
function Ve(e) {
|
|
912
930
|
if (e.defaultPrevented) return;
|
|
913
|
-
let t =
|
|
931
|
+
let t = P(), n = z();
|
|
914
932
|
switch (t.state) {
|
|
915
933
|
case "active":
|
|
916
934
|
if (e.buttons === 0) {
|
|
917
|
-
|
|
935
|
+
F({
|
|
918
936
|
cursorFlags: 0,
|
|
919
937
|
state: "inactive"
|
|
920
938
|
}), t.hitRegions.forEach((e) => {
|
|
921
|
-
|
|
922
|
-
|
|
939
|
+
if (!n.has(e.group)) return;
|
|
940
|
+
let t = R(e.group.id, !0);
|
|
941
|
+
V(e.group, t, { isUserInteraction: !0 });
|
|
923
942
|
});
|
|
924
943
|
return;
|
|
925
944
|
}
|
|
926
945
|
for (let n of t.hitRegions) if (n.separator) {
|
|
927
946
|
let { element: t } = n.separator;
|
|
928
|
-
t.hasPointerCapture?.(e.pointerId)
|
|
947
|
+
t.isConnected && !t.hasPointerCapture?.(e.pointerId) && t.setPointerCapture?.(e.pointerId);
|
|
929
948
|
}
|
|
930
|
-
|
|
949
|
+
ze({
|
|
931
950
|
document: e.currentTarget,
|
|
932
951
|
event: e,
|
|
933
952
|
hitRegions: t.hitRegions,
|
|
@@ -938,41 +957,31 @@ function Be(e) {
|
|
|
938
957
|
});
|
|
939
958
|
break;
|
|
940
959
|
default: {
|
|
941
|
-
let r =
|
|
942
|
-
r.length === 0 ? t.state !== "inactive" &&
|
|
960
|
+
let r = Me(e, n);
|
|
961
|
+
r.length === 0 ? t.state !== "inactive" && F({
|
|
943
962
|
cursorFlags: 0,
|
|
944
963
|
state: "inactive"
|
|
945
|
-
}) :
|
|
964
|
+
}) : F({
|
|
946
965
|
cursorFlags: 0,
|
|
947
966
|
hitRegions: r,
|
|
948
967
|
state: "hover"
|
|
949
|
-
}),
|
|
968
|
+
}), me(e.currentTarget);
|
|
950
969
|
break;
|
|
951
970
|
}
|
|
952
971
|
}
|
|
953
972
|
}
|
|
954
|
-
function Ve(e) {
|
|
955
|
-
if (e.relatedTarget instanceof HTMLIFrameElement) switch (K().state) {
|
|
956
|
-
case "hover": q({
|
|
957
|
-
cursorFlags: 0,
|
|
958
|
-
state: "inactive"
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
973
|
function He(e) {
|
|
963
|
-
if (e.
|
|
964
|
-
|
|
965
|
-
switch (t.state) {
|
|
966
|
-
case "active": q({
|
|
974
|
+
if (e.relatedTarget instanceof HTMLIFrameElement) switch (P().state) {
|
|
975
|
+
case "hover": F({
|
|
967
976
|
cursorFlags: 0,
|
|
968
977
|
state: "inactive"
|
|
969
|
-
})
|
|
970
|
-
let t = P(e.group.id, !0);
|
|
971
|
-
I(e.group, t);
|
|
972
|
-
}), e.preventDefault());
|
|
978
|
+
});
|
|
973
979
|
}
|
|
974
980
|
}
|
|
975
981
|
function Ue(e) {
|
|
982
|
+
e.defaultPrevented || e.pointerType === "mouse" && e.button > 0 || ve(e.currentTarget) && e.preventDefault();
|
|
983
|
+
}
|
|
984
|
+
function We(e) {
|
|
976
985
|
let t = 0, n = 0, r = {};
|
|
977
986
|
for (let i of e) if (i.defaultSize !== void 0) {
|
|
978
987
|
t++;
|
|
@@ -986,7 +995,7 @@ function Ue(e) {
|
|
|
986
995
|
}
|
|
987
996
|
return r;
|
|
988
997
|
}
|
|
989
|
-
function
|
|
998
|
+
function Ge(e, t, n) {
|
|
990
999
|
if (!n[0]) return;
|
|
991
1000
|
let r = e.panels.find((e) => e.element === t);
|
|
992
1001
|
if (!r || !r.onResize) return;
|
|
@@ -996,12 +1005,15 @@ function We(e, t, n) {
|
|
|
996
1005
|
};
|
|
997
1006
|
r.mutableValues.prevSize = s, r.onResize(s, r.id, o);
|
|
998
1007
|
}
|
|
999
|
-
function
|
|
1008
|
+
function Ke(e, t) {
|
|
1000
1009
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
1001
1010
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
1002
1011
|
return !0;
|
|
1003
1012
|
}
|
|
1004
|
-
function
|
|
1013
|
+
function qe(e, t) {
|
|
1014
|
+
return e.length === t.length ? e.every((e, n) => Ke(e, t[n])) : !1;
|
|
1015
|
+
}
|
|
1016
|
+
function Je({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
1005
1017
|
if (n <= 0 || t <= 0 || n === t) return r;
|
|
1006
1018
|
let i = 0, a = 0, o = !1, s = /* @__PURE__ */ new Map(), c = [];
|
|
1007
1019
|
for (let l of e.panels) {
|
|
@@ -1029,14 +1041,14 @@ function Ke({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
|
|
|
1029
1041
|
}
|
|
1030
1042
|
return u;
|
|
1031
1043
|
}
|
|
1032
|
-
function
|
|
1044
|
+
function Ye(e, t) {
|
|
1033
1045
|
let n = e.map((e) => e.id), r = Object.keys(t);
|
|
1034
1046
|
if (n.length !== r.length) return !1;
|
|
1035
1047
|
for (let e of n) if (!r.includes(e)) return !1;
|
|
1036
1048
|
return !0;
|
|
1037
1049
|
}
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1050
|
+
var X = /* @__PURE__ */ new Map();
|
|
1051
|
+
function Xe(e) {
|
|
1040
1052
|
let t = !0;
|
|
1041
1053
|
S(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
|
|
1042
1054
|
let n = e.element.ownerDocument.defaultView.ResizeObserver, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = new n((n) => {
|
|
@@ -1046,10 +1058,10 @@ function Je(e) {
|
|
|
1046
1058
|
if (t) {
|
|
1047
1059
|
let t = b({ group: e });
|
|
1048
1060
|
if (t === 0) return;
|
|
1049
|
-
let n =
|
|
1061
|
+
let n = R(e.id);
|
|
1050
1062
|
if (!n) return;
|
|
1051
|
-
let r = x(e), i = n.defaultLayoutDeferred ?
|
|
1052
|
-
layout:
|
|
1063
|
+
let r = x(e), i = n.defaultLayoutDeferred ? We(r) : n.layout, a = q({
|
|
1064
|
+
layout: Je({
|
|
1053
1065
|
group: e,
|
|
1054
1066
|
nextGroupSize: t,
|
|
1055
1067
|
prevGroupSize: n.groupSize,
|
|
@@ -1057,8 +1069,8 @@ function Je(e) {
|
|
|
1057
1069
|
}),
|
|
1058
1070
|
panelConstraints: r
|
|
1059
1071
|
});
|
|
1060
|
-
if (!n.defaultLayoutDeferred &&
|
|
1061
|
-
|
|
1072
|
+
if (!n.defaultLayoutDeferred && K(n.layout, a) && qe(n.derivedPanelConstraints, r) && n.groupSize === t) continue;
|
|
1073
|
+
V(e, {
|
|
1062
1074
|
defaultLayoutDeferred: !1,
|
|
1063
1075
|
derivedPanelConstraints: r,
|
|
1064
1076
|
groupSize: t,
|
|
@@ -1066,53 +1078,53 @@ function Je(e) {
|
|
|
1066
1078
|
separatorToPanels: n.separatorToPanels
|
|
1067
1079
|
});
|
|
1068
1080
|
}
|
|
1069
|
-
} else
|
|
1081
|
+
} else Ge(e, i, n);
|
|
1070
1082
|
}
|
|
1071
1083
|
});
|
|
1072
1084
|
a.observe(e.element), e.panels.forEach((e) => {
|
|
1073
1085
|
S(!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);
|
|
1074
1086
|
});
|
|
1075
1087
|
let o = b({ group: e }), s = x(e), c = e.panels.map(({ id: e }) => e).join(","), l = e.mutableState.defaultLayout;
|
|
1076
|
-
l && (
|
|
1077
|
-
let u =
|
|
1078
|
-
layout: e.mutableState.layouts[c] ?? l ??
|
|
1088
|
+
l && (Ye(e.panels, l) || (l = void 0));
|
|
1089
|
+
let u = q({
|
|
1090
|
+
layout: e.mutableState.layouts[c] ?? l ?? We(s),
|
|
1079
1091
|
panelConstraints: s
|
|
1080
1092
|
}), d = e.element.ownerDocument;
|
|
1081
|
-
|
|
1093
|
+
X.set(d, (X.get(d) ?? 0) + 1);
|
|
1082
1094
|
let f = /* @__PURE__ */ new Map();
|
|
1083
1095
|
return j(e).forEach((e) => {
|
|
1084
1096
|
e.separator && f.set(e.separator, e.panels);
|
|
1085
|
-
}),
|
|
1097
|
+
}), V(e, {
|
|
1086
1098
|
defaultLayoutDeferred: o === 0,
|
|
1087
1099
|
derivedPanelConstraints: s,
|
|
1088
1100
|
groupSize: o,
|
|
1089
1101
|
layout: u,
|
|
1090
1102
|
separatorToPanels: f
|
|
1091
1103
|
}), e.separators.forEach((e) => {
|
|
1092
|
-
S(!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",
|
|
1093
|
-
}),
|
|
1094
|
-
t = !1,
|
|
1095
|
-
e.element.removeEventListener("keydown",
|
|
1096
|
-
}),
|
|
1104
|
+
S(!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", Le);
|
|
1105
|
+
}), X.get(d) === 1 && (d.addEventListener("contextmenu", ye, !0), d.addEventListener("dblclick", Fe, !0), d.addEventListener("pointerdown", Re, !0), d.addEventListener("pointerleave", Be), d.addEventListener("pointermove", Ve), d.addEventListener("pointerout", He), d.addEventListener("pointerup", Ue, !0)), function() {
|
|
1106
|
+
t = !1, X.set(d, Math.max(0, (X.get(d) ?? 0) - 1)), ge(e), e.separators.forEach((e) => {
|
|
1107
|
+
e.element.removeEventListener("keydown", Le);
|
|
1108
|
+
}), X.get(d) || (d.removeEventListener("contextmenu", ye, !0), d.removeEventListener("dblclick", Fe, !0), d.removeEventListener("pointerdown", Re, !0), d.removeEventListener("pointerleave", Be), d.removeEventListener("pointermove", Ve), d.removeEventListener("pointerout", He), d.removeEventListener("pointerup", Ue, !0)), a.disconnect();
|
|
1097
1109
|
};
|
|
1098
1110
|
}
|
|
1099
|
-
function
|
|
1111
|
+
function Ze() {
|
|
1100
1112
|
let [e, t] = u({});
|
|
1101
1113
|
return [e, n(() => t({}), [])];
|
|
1102
1114
|
}
|
|
1103
|
-
function
|
|
1115
|
+
function Z(e) {
|
|
1104
1116
|
let t = a();
|
|
1105
1117
|
return `${e ?? t}`;
|
|
1106
1118
|
}
|
|
1107
|
-
var
|
|
1108
|
-
function
|
|
1119
|
+
var Q = typeof window < "u" ? s : i;
|
|
1120
|
+
function $(e) {
|
|
1109
1121
|
let t = l(e);
|
|
1110
|
-
return
|
|
1122
|
+
return Q(() => {
|
|
1111
1123
|
t.current = e;
|
|
1112
1124
|
}, [e]), n((...e) => t.current?.(...e), [t]);
|
|
1113
1125
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1126
|
+
function Qe(...e) {
|
|
1127
|
+
return $((t) => {
|
|
1116
1128
|
e.forEach((e) => {
|
|
1117
1129
|
if (e) switch (typeof e) {
|
|
1118
1130
|
case "function":
|
|
@@ -1125,43 +1137,43 @@ function Xe(...e) {
|
|
|
1125
1137
|
});
|
|
1126
1138
|
});
|
|
1127
1139
|
}
|
|
1128
|
-
function
|
|
1140
|
+
function $e(e) {
|
|
1129
1141
|
let t = l({ ...e });
|
|
1130
|
-
return
|
|
1142
|
+
return Q(() => {
|
|
1131
1143
|
for (let n in e) t.current[n] = e[n];
|
|
1132
1144
|
}, [e]), t.current;
|
|
1133
1145
|
}
|
|
1134
|
-
var
|
|
1135
|
-
function
|
|
1146
|
+
var et = t(null);
|
|
1147
|
+
function tt(e, t) {
|
|
1136
1148
|
let n = l({
|
|
1137
1149
|
getLayout: () => ({}),
|
|
1138
|
-
setLayout:
|
|
1150
|
+
setLayout: re
|
|
1139
1151
|
});
|
|
1140
|
-
o(t, () => n.current, []),
|
|
1141
|
-
Object.assign(n.current,
|
|
1152
|
+
o(t, () => n.current, []), Q(() => {
|
|
1153
|
+
Object.assign(n.current, Ie({ groupId: e }));
|
|
1142
1154
|
});
|
|
1143
1155
|
}
|
|
1144
|
-
function
|
|
1156
|
+
function nt({ 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 = {
|
|
1145
1157
|
coarse: 20,
|
|
1146
1158
|
fine: 10
|
|
1147
1159
|
}, style: g, ..._ }) {
|
|
1148
1160
|
let v = l({
|
|
1149
1161
|
onLayoutChange: {},
|
|
1150
1162
|
onLayoutChanged: {}
|
|
1151
|
-
}), y =
|
|
1152
|
-
|
|
1153
|
-
}), b =
|
|
1154
|
-
|
|
1155
|
-
}), S =
|
|
1163
|
+
}), y = $((e) => {
|
|
1164
|
+
K(v.current.onLayoutChange, e) || (v.current.onLayoutChange = e, d?.(e));
|
|
1165
|
+
}), b = $((e, t) => {
|
|
1166
|
+
K(v.current.onLayoutChanged, e) || (v.current.onLayoutChanged = e, p?.(e, { isUserInteraction: t }));
|
|
1167
|
+
}), S = Z(u), w = l(null), [T, E] = Ze(), D = l({
|
|
1156
1168
|
lastExpandedPanelSizes: {},
|
|
1157
1169
|
layouts: {},
|
|
1158
1170
|
panels: [],
|
|
1159
1171
|
resizeTargetMinimumSize: h,
|
|
1160
1172
|
separators: []
|
|
1161
|
-
}), O =
|
|
1162
|
-
|
|
1163
|
-
let k =
|
|
1164
|
-
let r =
|
|
1173
|
+
}), O = Qe(w, o);
|
|
1174
|
+
tt(S, s);
|
|
1175
|
+
let k = $((e, t) => {
|
|
1176
|
+
let r = P(), i = _e(e), a = R(e);
|
|
1165
1177
|
if (a) {
|
|
1166
1178
|
let e = !1;
|
|
1167
1179
|
switch (r.state) {
|
|
@@ -1175,7 +1187,7 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1175
1187
|
};
|
|
1176
1188
|
}
|
|
1177
1189
|
if (n?.[t]) return { flexGrow: n?.[t] };
|
|
1178
|
-
}), A =
|
|
1190
|
+
}), A = $e({
|
|
1179
1191
|
defaultLayout: n,
|
|
1180
1192
|
disableCursor: r
|
|
1181
1193
|
}), j = c(() => ({
|
|
@@ -1200,8 +1212,8 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1200
1212
|
updatePanelProps: (e, { disabled: t }) => {
|
|
1201
1213
|
let n = D.current.panels.find((t) => t.id === e);
|
|
1202
1214
|
n && (n.panelConstraints.disabled = t);
|
|
1203
|
-
let r =
|
|
1204
|
-
r && i &&
|
|
1215
|
+
let r = _e(S), i = R(S);
|
|
1216
|
+
r && i && V(r, {
|
|
1205
1217
|
...i,
|
|
1206
1218
|
derivedPanelConstraints: x(r)
|
|
1207
1219
|
});
|
|
@@ -1217,7 +1229,7 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1217
1229
|
m,
|
|
1218
1230
|
A
|
|
1219
1231
|
]), M = l(null);
|
|
1220
|
-
return
|
|
1232
|
+
return Q(() => {
|
|
1221
1233
|
let e = w.current;
|
|
1222
1234
|
if (e === null) return;
|
|
1223
1235
|
let t = D.current, n;
|
|
@@ -1244,9 +1256,9 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1244
1256
|
separators: t.separators
|
|
1245
1257
|
};
|
|
1246
1258
|
M.current = r;
|
|
1247
|
-
let i =
|
|
1248
|
-
!o && s.length > 0 && (y(c), b(c));
|
|
1249
|
-
let l =
|
|
1259
|
+
let i = Xe(r), { defaultLayoutDeferred: o, derivedPanelConstraints: s, layout: c } = R(r.id, !0);
|
|
1260
|
+
!o && s.length > 0 && (y(c), b(c, !1));
|
|
1261
|
+
let l = B(S, (e) => {
|
|
1250
1262
|
let { defaultLayoutDeferred: t, derivedPanelConstraints: n, layout: i } = e.next;
|
|
1251
1263
|
if (t || n.length === 0) return;
|
|
1252
1264
|
let a = r.panels.map(({ id: e }) => e).join(",");
|
|
@@ -1254,13 +1266,13 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1254
1266
|
if (t.collapsible) {
|
|
1255
1267
|
let { layout: n } = e.prev ?? {};
|
|
1256
1268
|
if (n) {
|
|
1257
|
-
let e =
|
|
1269
|
+
let e = H(t.collapsedSize, i[t.panelId]), a = H(t.collapsedSize, n[t.panelId]);
|
|
1258
1270
|
e && !a && (r.mutableState.expandedPanelSizes[t.panelId] = n[t.panelId]);
|
|
1259
1271
|
}
|
|
1260
1272
|
}
|
|
1261
1273
|
});
|
|
1262
|
-
let o =
|
|
1263
|
-
y(i), o && b(i);
|
|
1274
|
+
let o = P().state !== "active";
|
|
1275
|
+
y(i), o && b(i, e.isUserInteraction);
|
|
1264
1276
|
});
|
|
1265
1277
|
return () => {
|
|
1266
1278
|
M.current = null, i(), l();
|
|
@@ -1276,7 +1288,7 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1276
1288
|
]), i(() => {
|
|
1277
1289
|
let e = M.current;
|
|
1278
1290
|
e && (e.mutableState.defaultLayout = n, e.mutableState.disableCursor = !!r);
|
|
1279
|
-
}), /* @__PURE__ */ f(
|
|
1291
|
+
}), /* @__PURE__ */ f(et.Provider, {
|
|
1280
1292
|
value: j,
|
|
1281
1293
|
children: /* @__PURE__ */ f("div", {
|
|
1282
1294
|
..._,
|
|
@@ -1299,34 +1311,34 @@ function et({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
|
|
|
1299
1311
|
})
|
|
1300
1312
|
});
|
|
1301
1313
|
}
|
|
1302
|
-
|
|
1303
|
-
function
|
|
1304
|
-
let e = r(
|
|
1314
|
+
nt.displayName = "Group";
|
|
1315
|
+
function rt() {
|
|
1316
|
+
let e = r(et);
|
|
1305
1317
|
return S(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
|
|
1306
1318
|
}
|
|
1307
|
-
function
|
|
1308
|
-
let { id: n } =
|
|
1309
|
-
collapse:
|
|
1310
|
-
expand:
|
|
1319
|
+
function it(e, t) {
|
|
1320
|
+
let { id: n } = rt(), r = l({
|
|
1321
|
+
collapse: ie,
|
|
1322
|
+
expand: ie,
|
|
1311
1323
|
getSize: () => ({
|
|
1312
1324
|
asPercentage: 0,
|
|
1313
1325
|
inPixels: 0
|
|
1314
1326
|
}),
|
|
1315
1327
|
isCollapsed: () => !1,
|
|
1316
|
-
resize:
|
|
1328
|
+
resize: ie
|
|
1317
1329
|
});
|
|
1318
|
-
o(t, () => r.current, []),
|
|
1319
|
-
Object.assign(r.current,
|
|
1330
|
+
o(t, () => r.current, []), Q(() => {
|
|
1331
|
+
Object.assign(r.current, Pe({
|
|
1320
1332
|
groupId: n,
|
|
1321
1333
|
panelId: e
|
|
1322
1334
|
}));
|
|
1323
1335
|
});
|
|
1324
1336
|
}
|
|
1325
|
-
function
|
|
1326
|
-
let y = !!u, b =
|
|
1337
|
+
function at({ 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 }) {
|
|
1338
|
+
let y = !!u, b = Z(u), x = $e({ disabled: o }), S = l(null), C = Qe(S, s), { getPanelStyles: w, id: T, orientation: E, registerPanel: D, updatePanelProps: O } = rt(), k = h !== null, A = $((e, t, n) => {
|
|
1327
1339
|
h?.(e, u, n);
|
|
1328
1340
|
});
|
|
1329
|
-
|
|
1341
|
+
Q(() => {
|
|
1330
1342
|
let e = S.current;
|
|
1331
1343
|
if (e !== null) return D({
|
|
1332
1344
|
element: e,
|
|
@@ -1366,11 +1378,11 @@ function nt({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1366
1378
|
o,
|
|
1367
1379
|
b,
|
|
1368
1380
|
O
|
|
1369
|
-
]),
|
|
1381
|
+
]), it(b, g);
|
|
1370
1382
|
let j = () => {
|
|
1371
1383
|
let e = w(T, b);
|
|
1372
1384
|
if (e) return JSON.stringify(e);
|
|
1373
|
-
}, M = d((e) =>
|
|
1385
|
+
}, M = d((e) => B(T, e), j, j), N;
|
|
1374
1386
|
return N = M ? JSON.parse(M) : a === void 0 ? { flexGrow: 1 } : {
|
|
1375
1387
|
flexGrow: void 0,
|
|
1376
1388
|
flexShrink: void 0,
|
|
@@ -1383,7 +1395,7 @@ function nt({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1383
1395
|
id: b,
|
|
1384
1396
|
ref: C,
|
|
1385
1397
|
style: {
|
|
1386
|
-
...
|
|
1398
|
+
...ot,
|
|
1387
1399
|
display: "flex",
|
|
1388
1400
|
flexBasis: 0,
|
|
1389
1401
|
flexShrink: 1,
|
|
@@ -1404,8 +1416,8 @@ function nt({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
|
|
|
1404
1416
|
})
|
|
1405
1417
|
});
|
|
1406
1418
|
}
|
|
1407
|
-
|
|
1408
|
-
var
|
|
1419
|
+
at.displayName = "Panel";
|
|
1420
|
+
var ot = {
|
|
1409
1421
|
minHeight: 0,
|
|
1410
1422
|
maxHeight: "100%",
|
|
1411
1423
|
height: "auto",
|
|
@@ -1417,12 +1429,12 @@ var rt = {
|
|
|
1417
1429
|
padding: 0,
|
|
1418
1430
|
margin: 0
|
|
1419
1431
|
};
|
|
1420
|
-
function
|
|
1432
|
+
function st({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
1421
1433
|
let i, a, o = e[n], s = t.find((e) => e.panelId === n);
|
|
1422
1434
|
if (s) {
|
|
1423
1435
|
let c = s.maxSize, l = s.collapsible ? s.collapsedSize : s.minSize, u = [r, r + 1];
|
|
1424
|
-
a =
|
|
1425
|
-
layout:
|
|
1436
|
+
a = q({
|
|
1437
|
+
layout: G({
|
|
1426
1438
|
delta: l - o,
|
|
1427
1439
|
initialLayout: e,
|
|
1428
1440
|
panelConstraints: t,
|
|
@@ -1430,8 +1442,8 @@ function it({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
|
1430
1442
|
prevLayout: e
|
|
1431
1443
|
}),
|
|
1432
1444
|
panelConstraints: t
|
|
1433
|
-
})[n], i =
|
|
1434
|
-
layout:
|
|
1445
|
+
})[n], i = q({
|
|
1446
|
+
layout: G({
|
|
1435
1447
|
delta: c - o,
|
|
1436
1448
|
initialLayout: e,
|
|
1437
1449
|
panelConstraints: t,
|
|
@@ -1448,12 +1460,12 @@ function it({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
|
|
|
1448
1460
|
valueNow: o
|
|
1449
1461
|
};
|
|
1450
1462
|
}
|
|
1451
|
-
function
|
|
1452
|
-
let d =
|
|
1463
|
+
function ct({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: a, id: o, style: s, ...c }) {
|
|
1464
|
+
let d = Z(o), p = $e({
|
|
1453
1465
|
disabled: n,
|
|
1454
1466
|
disableDoubleClick: r
|
|
1455
|
-
}), [m, h] = u({}), [g, _] = u("inactive"), [v, y] = u(!1), b = l(null), x =
|
|
1456
|
-
|
|
1467
|
+
}), [m, h] = u({}), [g, _] = u("inactive"), [v, y] = u(!1), b = l(null), x = Qe(b, a), { disableCursor: S, id: C, orientation: w, registerSeparator: T, updateSeparatorProps: E } = rt(), D = w === "horizontal" ? "vertical" : "horizontal";
|
|
1468
|
+
Q(() => {
|
|
1457
1469
|
let e = b.current;
|
|
1458
1470
|
if (e !== null) {
|
|
1459
1471
|
let t = {
|
|
@@ -1461,13 +1473,13 @@ function at({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
1461
1473
|
disableDoubleClick: p.disableDoubleClick,
|
|
1462
1474
|
element: e,
|
|
1463
1475
|
id: d
|
|
1464
|
-
}, n = T(t), r =
|
|
1476
|
+
}, n = T(t), r = te((e) => {
|
|
1465
1477
|
_(e.next.state !== "inactive" && e.next.hitRegions.some((e) => e.separator === t) ? e.next.state : "inactive");
|
|
1466
|
-
}), i =
|
|
1478
|
+
}), i = B(C, (e) => {
|
|
1467
1479
|
let { derivedPanelConstraints: n, layout: r, separatorToPanels: i } = e.next, a = i.get(t);
|
|
1468
1480
|
if (a) {
|
|
1469
|
-
let e = a[0], t =
|
|
1470
|
-
h(
|
|
1481
|
+
let e = a[0], t = n.findIndex((t) => t.panelId === e.id);
|
|
1482
|
+
h(st({
|
|
1471
1483
|
layout: r,
|
|
1472
1484
|
panelConstraints: n,
|
|
1473
1485
|
panelId: e.id,
|
|
@@ -1533,24 +1545,24 @@ function at({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
|
|
|
1533
1545
|
tabIndex: n ? void 0 : 0
|
|
1534
1546
|
});
|
|
1535
1547
|
}
|
|
1536
|
-
|
|
1548
|
+
ct.displayName = "Separator";
|
|
1537
1549
|
//#endregion
|
|
1538
1550
|
//#region src/resizable.tsx
|
|
1539
|
-
function
|
|
1540
|
-
return /* @__PURE__ */ f(
|
|
1551
|
+
function lt({ className: t, ...n }) {
|
|
1552
|
+
return /* @__PURE__ */ f(nt, {
|
|
1541
1553
|
"data-slot": "resizable-panel-group",
|
|
1542
1554
|
className: e("flex h-full w-full aria-[orientation=vertical]:flex-col", t),
|
|
1543
1555
|
...n
|
|
1544
1556
|
});
|
|
1545
1557
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return /* @__PURE__ */ f(
|
|
1558
|
+
function ut({ ...e }) {
|
|
1559
|
+
return /* @__PURE__ */ f(at, {
|
|
1548
1560
|
"data-slot": "resizable-panel",
|
|
1549
1561
|
...e
|
|
1550
1562
|
});
|
|
1551
1563
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return /* @__PURE__ */ f(
|
|
1564
|
+
function dt({ withHandle: t, className: n, ...r }) {
|
|
1565
|
+
return /* @__PURE__ */ f(ct, {
|
|
1554
1566
|
"data-slot": "resizable-handle",
|
|
1555
1567
|
className: e("bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 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 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90", n),
|
|
1556
1568
|
...r,
|
|
@@ -1558,4 +1570,4 @@ function ct({ withHandle: t, className: n, ...r }) {
|
|
|
1558
1570
|
});
|
|
1559
1571
|
}
|
|
1560
1572
|
//#endregion
|
|
1561
|
-
export {
|
|
1573
|
+
export { ut as n, lt as r, dt as t };
|