@sprawlify/primitives 0.0.62 → 0.0.63
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/anatomy.d.cts +1 -1
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +1 -1
- package/dist/{aria-hidden-kcYiyWLo.cjs → aria-hidden-CHWfuKk2.cjs} +1 -1
- package/dist/{aria-hidden-CVIz-P9c.mjs → aria-hidden-Csp0PkO_.mjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-C55IrFLZ.cjs → auto-resize-BL8ul-hb.cjs} +1 -1
- package/dist/{auto-resize-R0jCGBHZ.mjs → auto-resize-jPUJLPa4.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-CjwZd09Z.mjs → collection-DHyEg4g5.mjs} +30 -30
- package/dist/{collection-Q52RkxUe.cjs → collection-Fkg4kgPn.cjs} +30 -30
- package/dist/collection.cjs +2 -2
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-BekVyYIJ.mjs → color-utils-CaqLeEog.mjs} +3 -3
- package/dist/{color-utils-BVq_rh8L.cjs → color-utils-eUlz6Gq4.cjs} +3 -3
- package/dist/color-utils.cjs +2 -2
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-CsVTCpQ_.cjs → core-CHsDFMV3.cjs} +7 -7
- package/dist/{core-CujC6Y2H.mjs → core-owywCQ2e.mjs} +7 -7
- package/dist/core.cjs +3 -3
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +3 -3
- package/dist/{date-utils-_Hu9b5fQ.cjs → date-utils-BDBOiT_6.cjs} +22 -23
- package/dist/{date-utils-d1Jt6z5f.mjs → date-utils-LnVS7q0z.mjs} +22 -23
- package/dist/date-utils.cjs +1 -1
- package/dist/date-utils.d.cts +6 -6
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +1 -1
- package/dist/{defineProperty-bTDhmYM0.mjs → defineProperty-DR_NxfHn.mjs} +8 -8
- package/dist/{defineProperty-xA1FicUs.cjs → defineProperty-_bOnJOii.cjs} +8 -8
- package/dist/{dismissable-D0YyXTJv.mjs → dismissable-BlZazbp3.mjs} +7 -7
- package/dist/{dismissable-D9NEAGMU.cjs → dismissable-DSFGuAU6.cjs} +7 -7
- package/dist/{dismissable-layer-C39y-V3t.d.mts → dismissable-layer-B2bSyA07.d.cts} +2 -2
- package/dist/{dismissable-layer-D-7fwQL8.d.cts → dismissable-layer-CpUMMV1f.d.mts} +2 -2
- package/dist/dismissable.cjs +4 -4
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-xZuxOsD4.cjs → dom-query-CAFhX43H.cjs} +25 -25
- package/dist/{dom-query-CUb85Z22.mjs → dom-query-CQFBCdpo.mjs} +25 -25
- package/dist/dom-query.cjs +1 -1
- package/dist/dom-query.d.cts +7 -7
- package/dist/dom-query.d.mts +7 -7
- package/dist/dom-query.mjs +1 -1
- package/dist/{file-utils-G9_tYexo.cjs → file-utils-Bkp18nrt.cjs} +6 -6
- package/dist/{file-utils-5E6-AtJ9.mjs → file-utils-lcjM-YjV.mjs} +6 -6
- package/dist/file-utils.cjs +1 -1
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/file-utils.mjs +1 -1
- package/dist/{focus-trap-KZbY4M-m.mjs → focus-trap-BXT0oBtL.mjs} +7 -7
- package/dist/{focus-trap-DcDcihd5.cjs → focus-trap-zaIiaoqE.cjs} +7 -7
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-Ddho9PEA.cjs → focus-visible-3pXNNo-l.cjs} +1 -1
- package/dist/{focus-visible-Bm2uoacD.mjs → focus-visible-DjGDsaLn.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/highlight-word.cjs +3 -3
- package/dist/highlight-word.mjs +3 -3
- package/dist/hotkeys.cjs +8 -8
- package/dist/hotkeys.mjs +8 -8
- package/dist/{i18n-utils-B3KjZ58Q.cjs → i18n-utils-CK27xonZ.cjs} +1 -1
- package/dist/{i18n-utils-85PCPQ3H.mjs → i18n-utils-KuoJj66z.mjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{index-BuUzJjaP.d.mts → index-CafmAesU.d.mts} +3 -3
- package/dist/{index-Bqw3r34-.d.cts → index-D1U_WMQ9.d.cts} +3 -3
- package/dist/{interact-outside-xKQjln5u.mjs → interact-outside-CRmkKF6k.mjs} +4 -4
- package/dist/{interact-outside-xGMuVVaa.cjs → interact-outside-Dk2otQqs.cjs} +4 -4
- package/dist/interact-outside.cjs +3 -3
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +3 -3
- package/dist/json-tree-utils.cjs +30 -30
- package/dist/json-tree-utils.mjs +30 -30
- package/dist/{list-collection-BvMwDNHf.d.cts → list-collection-C9XUe75n.d.mts} +1 -1
- package/dist/{list-collection-CTt1eong.d.mts → list-collection-DwMgPYoA.d.cts} +1 -1
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +1 -1
- package/dist/machines/accordion/index.cjs +34 -34
- package/dist/machines/accordion/index.d.cts +3 -3
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +36 -36
- package/dist/machines/angle-slider/index.cjs +13 -13
- package/dist/machines/angle-slider/index.d.cts +4 -4
- package/dist/machines/angle-slider/index.d.mts +4 -4
- package/dist/machines/angle-slider/index.mjs +15 -15
- package/dist/machines/async-list/index.cjs +3 -3
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +3 -3
- package/dist/machines/avatar/index.cjs +3 -3
- package/dist/machines/avatar/index.d.cts +3 -3
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +5 -5
- package/dist/machines/bottom-sheet/index.cjs +15 -15
- package/dist/machines/bottom-sheet/index.d.cts +6 -6
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +17 -17
- package/dist/machines/carousel/index.cjs +38 -38
- package/dist/machines/carousel/index.d.cts +4 -4
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +40 -40
- package/dist/machines/checkbox/index.cjs +11 -11
- package/dist/machines/checkbox/index.d.cts +4 -4
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +13 -13
- package/dist/machines/clipboard/index.cjs +7 -7
- package/dist/machines/clipboard/index.d.cts +4 -4
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +9 -9
- package/dist/machines/collapsible/index.cjs +3 -3
- package/dist/machines/collapsible/index.d.cts +3 -3
- package/dist/machines/collapsible/index.d.mts +3 -3
- package/dist/machines/collapsible/index.mjs +5 -5
- package/dist/machines/color-picker/index.cjs +58 -58
- package/dist/machines/color-picker/index.d.cts +7 -7
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +60 -60
- package/dist/machines/combobox/index.cjs +108 -108
- package/dist/machines/combobox/index.d.cts +8 -8
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +110 -110
- package/dist/machines/date-picker/index.cjs +113 -113
- package/dist/machines/date-picker/index.d.cts +8 -8
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +120 -120
- package/dist/machines/dialog/index.cjs +12 -12
- package/dist/machines/dialog/index.d.cts +6 -6
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +14 -14
- package/dist/machines/editable/index.cjs +14 -14
- package/dist/machines/editable/index.d.cts +5 -5
- package/dist/machines/editable/index.d.mts +5 -5
- package/dist/machines/editable/index.mjs +16 -16
- package/dist/machines/file-upload/index.cjs +27 -27
- package/dist/machines/file-upload/index.d.cts +5 -5
- package/dist/machines/file-upload/index.d.mts +5 -5
- package/dist/machines/file-upload/index.mjs +29 -29
- package/dist/machines/floating-panel/index.cjs +25 -25
- package/dist/machines/floating-panel/index.d.cts +5 -5
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +27 -27
- package/dist/machines/hover-card/index.cjs +11 -11
- package/dist/machines/hover-card/index.d.cts +6 -6
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +13 -13
- package/dist/machines/image-cropper/index.cjs +39 -39
- package/dist/machines/image-cropper/index.d.cts +4 -4
- package/dist/machines/image-cropper/index.d.mts +4 -4
- package/dist/machines/image-cropper/index.mjs +41 -41
- package/dist/machines/listbox/index.cjs +94 -94
- package/dist/machines/listbox/index.d.cts +8 -8
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +96 -96
- package/dist/machines/marquee/index.cjs +11 -11
- package/dist/machines/marquee/index.d.cts +6 -6
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +13 -13
- package/dist/machines/menu/index.cjs +59 -59
- package/dist/machines/menu/index.d.cts +9 -9
- package/dist/machines/menu/index.d.mts +9 -9
- package/dist/machines/menu/index.mjs +61 -61
- package/dist/machines/navigation-menu/index.cjs +66 -66
- package/dist/machines/navigation-menu/index.d.cts +4 -4
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +68 -68
- package/dist/machines/number-input/index.cjs +10 -10
- package/dist/machines/number-input/index.d.cts +4 -4
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +12 -12
- package/dist/machines/pagination/index.cjs +12 -12
- package/dist/machines/pagination/index.d.cts +4 -4
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +14 -14
- package/dist/machines/password-input/index.cjs +6 -6
- package/dist/machines/password-input/index.d.cts +4 -4
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +8 -8
- package/dist/machines/pin-input/index.cjs +9 -9
- package/dist/machines/pin-input/index.d.cts +4 -4
- package/dist/machines/pin-input/index.d.mts +4 -4
- package/dist/machines/pin-input/index.mjs +11 -11
- package/dist/machines/popover/index.cjs +16 -16
- package/dist/machines/popover/index.d.cts +7 -7
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +18 -18
- package/dist/machines/presence/index.cjs +6 -6
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +7 -7
- package/dist/machines/progress/index.cjs +19 -19
- package/dist/machines/progress/index.d.cts +4 -4
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +21 -21
- package/dist/machines/qr-code/index.cjs +7 -7
- package/dist/machines/qr-code/index.d.cts +4 -4
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +9 -9
- package/dist/machines/radio-group/index.cjs +39 -39
- package/dist/machines/radio-group/index.d.cts +4 -4
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +41 -41
- package/dist/machines/rating-group/index.cjs +16 -16
- package/dist/machines/rating-group/index.d.cts +4 -4
- package/dist/machines/rating-group/index.d.mts +4 -4
- package/dist/machines/rating-group/index.mjs +18 -18
- package/dist/machines/scroll-area/index.cjs +13 -13
- package/dist/machines/scroll-area/index.d.cts +4 -4
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +15 -15
- package/dist/machines/select/index.cjs +50 -50
- package/dist/machines/select/index.d.cts +9 -9
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +52 -52
- package/dist/machines/signature-pad/index.cjs +11 -11
- package/dist/machines/signature-pad/index.d.cts +4 -4
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +13 -13
- package/dist/machines/slider/index.cjs +42 -43
- package/dist/machines/slider/index.d.cts +4 -4
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +44 -45
- package/dist/machines/splitter/index.cjs +62 -62
- package/dist/machines/splitter/index.d.cts +3 -3
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +64 -64
- package/dist/machines/steps/index.cjs +27 -27
- package/dist/machines/steps/index.d.cts +4 -4
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +29 -29
- package/dist/machines/switch/index.cjs +10 -10
- package/dist/machines/switch/index.d.cts +4 -4
- package/dist/machines/switch/index.d.mts +4 -4
- package/dist/machines/switch/index.mjs +12 -12
- package/dist/machines/tabs/index.cjs +14 -14
- package/dist/machines/tabs/index.d.cts +4 -4
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +16 -16
- package/dist/machines/tags-input/index.cjs +30 -30
- package/dist/machines/tags-input/index.d.cts +6 -6
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +33 -33
- package/dist/machines/timer/index.cjs +19 -19
- package/dist/machines/timer/index.d.cts +4 -4
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +21 -21
- package/dist/machines/toast/index.cjs +11 -11
- package/dist/machines/toast/index.d.cts +5 -6
- package/dist/machines/toast/index.d.mts +5 -6
- package/dist/machines/toast/index.mjs +12 -12
- package/dist/machines/toggle/index.cjs +5 -5
- package/dist/machines/toggle/index.d.cts +3 -3
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +7 -7
- package/dist/machines/toggle-group/index.cjs +16 -16
- package/dist/machines/toggle-group/index.d.cts +3 -3
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +18 -18
- package/dist/machines/tooltip/index.cjs +12 -12
- package/dist/machines/tooltip/index.d.cts +5 -5
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +14 -14
- package/dist/machines/tour/index.cjs +19 -19
- package/dist/machines/tour/index.d.cts +7 -7
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +21 -21
- package/dist/machines/tree-view/index.cjs +161 -161
- package/dist/machines/tree-view/index.d.cts +7 -7
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +163 -163
- package/dist/{popper-TNUpC0Kp.cjs → popper-CY3ptPbm.cjs} +4 -4
- package/dist/{popper-DbfXVgrC.mjs → popper-DxgokNha.mjs} +4 -4
- package/dist/popper.cjs +3 -3
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-CDBAit19.mjs → rect-utils-BobE6Wut.mjs} +9 -9
- package/dist/{rect-utils-ChBPj9XR.cjs → rect-utils-DtqZwNtZ.cjs} +9 -9
- package/dist/rect-utils.cjs +1 -1
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +1 -1
- package/dist/{remove-scroll-DNoftRvo.mjs → remove-scroll-DcPV6nZy.mjs} +1 -1
- package/dist/{remove-scroll-D5aUrYvL.cjs → remove-scroll-DgJgF1C5.cjs} +1 -1
- package/dist/{scroll-snap-tDsdAemJ.mjs → scroll-snap-D_M1Q8ZQ.mjs} +1 -1
- package/dist/{scroll-snap-DhVLyRe-.cjs → scroll-snap-DpEzlrHP.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-JDFmyke7.d.mts → selection-CPTdpru8.d.mts} +2 -2
- package/dist/{selection-vng1guNc.d.cts → selection-wfybIxD3.d.cts} +2 -2
- package/dist/{store-DDjfrUhd.cjs → store-B9Ewi-zx.cjs} +4 -4
- package/dist/{store-CpMJ6RZR.mjs → store-DMXvGOAu.mjs} +4 -4
- package/dist/store.cjs +1 -1
- package/dist/store.mjs +1 -1
- package/dist/{tree-collection-CmehimuO.d.cts → tree-collection-1g4DXuqa.d.mts} +1 -2
- package/dist/{tree-collection-CqXQBHwY.d.mts → tree-collection-CPcsMvje.d.cts} +1 -2
- package/dist/{types-DL5AIQk5.d.mts → types-BM4oVvZZ.d.mts} +10 -10
- package/dist/{types-DejIu60O.d.cts → types-fB7F7BBP.d.cts} +10 -10
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-B4_qn2dt.cjs → utils-CJsQZljH.cjs} +21 -21
- package/dist/{utils-DSBXwmDm.mjs → utils-Vs04rt8f.mjs} +21 -21
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{color-Bcy-SLQ1.d.mts → color-B3sgFAa6.d.mts} +0 -0
- /package/dist/{color-Bj20c2qw.d.cts → color-BhaNI8oR.d.cts} +0 -0
- /package/dist/{create-anatomy-DHVOqZET.d.mts → create-anatomy-9eFQs7lO.d.cts} +0 -0
- /package/dist/{create-anatomy-CArN8dVu.mjs → create-anatomy-BVqM_FJ6.mjs} +0 -0
- /package/dist/{create-anatomy-smWrirg1.d.cts → create-anatomy-UNZ__hxH.d.mts} +0 -0
- /package/dist/{create-props-SRSjdUTq.mjs → create-props-Dtoa4OUk.mjs} +0 -0
- /package/dist/{data-url-C3ITPVRX.d.cts → data-url-BrR6WHXH.d.cts} +0 -0
- /package/dist/{data-url-mcVoUiET.d.mts → data-url-lOYkmlVX.d.mts} +0 -0
- /package/dist/{functions-7V6veSov.d.cts → functions-Box4pxDB.d.cts} +0 -0
- /package/dist/{functions-CjitT5Gr.d.mts → functions-Du4c1Rcz.d.mts} +0 -0
- /package/dist/{index-CygfPLvT.d.mts → index-B2rsdD3v.d.cts} +0 -0
- /package/dist/{index-Bvn6ocEE.d.mts → index-CXu0elLS.d.mts} +0 -0
- /package/dist/{index-C9-feK5c.d.cts → index-Cf0hysnI.d.cts} +0 -0
- /package/dist/{index-Owca7uxB.d.cts → index-DIJJrhP_.d.mts} +0 -0
- /package/dist/{index-BTi1wETB.d.mts → index-DJ1MHM3z.d.mts} +0 -0
- /package/dist/{index-BqhWpjZh.d.mts → index-DLbWwJUT.d.mts} +0 -0
- /package/dist/{live-region-BcSdQIM8.mjs → live-region-CBp2K1JK.mjs} +0 -0
- /package/dist/{node-CHGS3acf.d.mts → node-BGWAyUGo.d.mts} +0 -0
- /package/dist/{node-CSsuPZVZ.d.cts → node-D8Ztr9Hg.d.cts} +0 -0
- /package/dist/{raf-BV1049GE.d.mts → raf-B8md2utS.d.mts} +0 -0
- /package/dist/{raf-Cd2FGy0z.d.cts → raf-DWPAf0Nd.d.cts} +0 -0
- /package/dist/{typeahead-BdNwVP09.d.cts → typeahead-BhNtyjQC.d.cts} +0 -0
- /package/dist/{typeahead-DMSwLv1e.d.mts → typeahead-D4TUCBly.d.mts} +0 -0
- /package/dist/{types-D5ziaMrd.d.cts → types-B--gFZVP.d.cts} +0 -0
- /package/dist/{types-DddL75YY.d.cts → types-C1F7Y-Hc.d.cts} +0 -0
- /package/dist/{types-CADkcKtr.d.cts → types-CBWaEVU4.d.cts} +0 -0
- /package/dist/{types-D-ZRl1jP.d.mts → types-CW-uU8Nz.d.mts} +0 -0
- /package/dist/{types-Df8ZhdY-.d.mts → types-D0tsc4Jo.d.mts} +0 -0
- /package/dist/{types-GxLIgJib.d.cts → types-DTZZ5wsp.d.cts} +0 -0
- /package/dist/{types-J14X3oxU.d.mts → types-Dw1I6cFP.d.mts} +0 -0
- /package/dist/{types-F-0xFywm.d.cts → types-oR0sELNB.d.cts} +0 -0
- /package/dist/{wait-for-ChpX25fU.d.cts → wait-for-CVZu6XNU.d.mts} +0 -0
- /package/dist/{wait-for-DxY1szJ6.d.mts → wait-for-D5gBQyam.d.cts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, it as dispatchInputValueEvent, m as resizeObserverBorderBox, ot as setElementValue, st as trackFormControl, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { B as snapValueToStep, C as getPercentValue, E as getValueRanges, H as toPx, N as isValueWithinRange, O as getValueTransformer, S as getNextStepValue, T as getValuePercent, W as callAll, ft as isEqual, g as clampValue, h as clampPercent, p as pick, u as createSplitProps, vt as first, w as getPreviousStepValue, wt as last, z as setValueAtIndex } from "../../utils-
|
|
4
|
-
import { a as createMachine, s as memo } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { C as queryAll, E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, it as dispatchInputValueEvent, m as resizeObserverBorderBox, ot as setElementValue, st as trackFormControl, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { B as snapValueToStep, C as getPercentValue, E as getValueRanges, H as toPx, N as isValueWithinRange, O as getValueTransformer, S as getNextStepValue, T as getValuePercent, W as callAll, ft as isEqual, g as clampValue, h as clampPercent, p as pick, u as createSplitProps, vt as first, w as getPreviousStepValue, wt as last, z as setValueAtIndex } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/slider/slider.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator");
|
|
@@ -56,7 +56,7 @@ function getRelativePointWithInset(point, element, inset) {
|
|
|
56
56
|
x: effectiveWidth > 0 ? clampPercent(offset.x / effectiveWidth) : 0,
|
|
57
57
|
y: effectiveHeight > 0 ? clampPercent(offset.y / effectiveHeight) : 0
|
|
58
58
|
};
|
|
59
|
-
function getPercentValue
|
|
59
|
+
function getPercentValue(options = {}) {
|
|
60
60
|
const { dir = "ltr", orientation = "horizontal", inverted } = options;
|
|
61
61
|
const invertX = typeof inverted === "object" ? inverted.x : inverted;
|
|
62
62
|
const invertY = typeof inverted === "object" ? inverted.y : inverted;
|
|
@@ -66,14 +66,14 @@ function getRelativePointWithInset(point, element, inset) {
|
|
|
66
66
|
return {
|
|
67
67
|
offset,
|
|
68
68
|
percent,
|
|
69
|
-
getPercentValue
|
|
69
|
+
getPercentValue
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
const dispatchChangeEvent = (ctx, value) => {
|
|
73
|
-
value.forEach((value
|
|
73
|
+
value.forEach((value, index) => {
|
|
74
74
|
const inputEl = getHiddenInputEl(ctx, index);
|
|
75
75
|
if (!inputEl) return;
|
|
76
|
-
dispatchInputValueEvent(inputEl, { value
|
|
76
|
+
dispatchInputValueEvent(inputEl, { value });
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
const getOffsetRect = (el) => ({
|
|
@@ -139,8 +139,8 @@ function getHorizontalThumbOffset(params, value) {
|
|
|
139
139
|
const { computed, context, prop } = params;
|
|
140
140
|
const { width = 0 } = context.get("thumbSize") ?? {};
|
|
141
141
|
if (computed("isRtl")) {
|
|
142
|
-
const getValue
|
|
143
|
-
return -1 * parseFloat(getValue
|
|
142
|
+
const getValue = getValueTransformer([prop("max"), prop("min")], [-width / 2, width / 2]);
|
|
143
|
+
return -1 * parseFloat(getValue(value).toFixed(2));
|
|
144
144
|
}
|
|
145
145
|
const getValue = getValueTransformer([prop("min"), prop("max")], [-width / 2, width / 2]);
|
|
146
146
|
return parseFloat(getValue(value).toFixed(2));
|
|
@@ -308,7 +308,6 @@ function resolveThumbCollision(behavior, index, value, values, min, max, step, m
|
|
|
308
308
|
switch (behavior) {
|
|
309
309
|
case "push": return handlePush(ctx);
|
|
310
310
|
case "swap": return handleSwap(ctx, startValue ?? values[index]);
|
|
311
|
-
case "none":
|
|
312
311
|
default: return handleNone(ctx);
|
|
313
312
|
}
|
|
314
313
|
}
|
|
@@ -379,7 +378,7 @@ function selectMovableThumb(params, index) {
|
|
|
379
378
|
|
|
380
379
|
//#endregion
|
|
381
380
|
//#region src/machines/slider/slider.connect.ts
|
|
382
|
-
function connect(service, normalize
|
|
381
|
+
function connect(service, normalize) {
|
|
383
382
|
const { state, send, context, prop, computed, scope } = service;
|
|
384
383
|
const ariaLabel = prop("aria-label");
|
|
385
384
|
const ariaLabelledBy = prop("aria-labelledby");
|
|
@@ -456,7 +455,7 @@ function connect(service, normalize$1) {
|
|
|
456
455
|
});
|
|
457
456
|
},
|
|
458
457
|
getLabelProps() {
|
|
459
|
-
return normalize
|
|
458
|
+
return normalize.label({
|
|
460
459
|
...parts.label.attrs,
|
|
461
460
|
dir: prop("dir"),
|
|
462
461
|
"data-disabled": dataAttr(disabled),
|
|
@@ -478,7 +477,7 @@ function connect(service, normalize$1) {
|
|
|
478
477
|
});
|
|
479
478
|
},
|
|
480
479
|
getRootProps() {
|
|
481
|
-
return normalize
|
|
480
|
+
return normalize.element({
|
|
482
481
|
...parts.root.attrs,
|
|
483
482
|
"data-disabled": dataAttr(disabled),
|
|
484
483
|
"data-orientation": prop("orientation"),
|
|
@@ -491,7 +490,7 @@ function connect(service, normalize$1) {
|
|
|
491
490
|
});
|
|
492
491
|
},
|
|
493
492
|
getValueTextProps() {
|
|
494
|
-
return normalize
|
|
493
|
+
return normalize.element({
|
|
495
494
|
...parts.valueText.attrs,
|
|
496
495
|
dir: prop("dir"),
|
|
497
496
|
"data-disabled": dataAttr(disabled),
|
|
@@ -502,7 +501,7 @@ function connect(service, normalize$1) {
|
|
|
502
501
|
});
|
|
503
502
|
},
|
|
504
503
|
getTrackProps() {
|
|
505
|
-
return normalize
|
|
504
|
+
return normalize.element({
|
|
506
505
|
...parts.track.attrs,
|
|
507
506
|
dir: prop("dir"),
|
|
508
507
|
id: getTrackId(scope),
|
|
@@ -514,8 +513,8 @@ function connect(service, normalize$1) {
|
|
|
514
513
|
style: { position: "relative" }
|
|
515
514
|
});
|
|
516
515
|
},
|
|
517
|
-
getThumbProps(props
|
|
518
|
-
const { index = 0, name } = props
|
|
516
|
+
getThumbProps(props) {
|
|
517
|
+
const { index = 0, name } = props;
|
|
519
518
|
const value = sliderValue[index];
|
|
520
519
|
const range = getRangeAtIndex(service, index);
|
|
521
520
|
const valueText = prop("getAriaValueText")?.({
|
|
@@ -524,7 +523,7 @@ function connect(service, normalize$1) {
|
|
|
524
523
|
});
|
|
525
524
|
const _ariaLabel = Array.isArray(ariaLabel) ? ariaLabel[index] : ariaLabel;
|
|
526
525
|
const _ariaLabelledBy = Array.isArray(ariaLabelledBy) ? ariaLabelledBy[index] : ariaLabelledBy;
|
|
527
|
-
return normalize
|
|
526
|
+
return normalize.element({
|
|
528
527
|
...parts.thumb.attrs,
|
|
529
528
|
dir: prop("dir"),
|
|
530
529
|
"data-index": index,
|
|
@@ -644,9 +643,9 @@ function connect(service, normalize$1) {
|
|
|
644
643
|
}
|
|
645
644
|
});
|
|
646
645
|
},
|
|
647
|
-
getHiddenInputProps(props
|
|
648
|
-
const { index = 0, name } = props
|
|
649
|
-
return normalize
|
|
646
|
+
getHiddenInputProps(props) {
|
|
647
|
+
const { index = 0, name } = props;
|
|
648
|
+
return normalize.input({
|
|
650
649
|
name: name ?? (prop("name") ? prop("name") + (sliderValue.length > 1 ? "[]" : "") : void 0),
|
|
651
650
|
form: prop("form"),
|
|
652
651
|
type: "text",
|
|
@@ -656,7 +655,7 @@ function connect(service, normalize$1) {
|
|
|
656
655
|
});
|
|
657
656
|
},
|
|
658
657
|
getRangeProps() {
|
|
659
|
-
return normalize
|
|
658
|
+
return normalize.element({
|
|
660
659
|
id: getRangeId(scope),
|
|
661
660
|
...parts.range.attrs,
|
|
662
661
|
dir: prop("dir"),
|
|
@@ -669,7 +668,7 @@ function connect(service, normalize$1) {
|
|
|
669
668
|
});
|
|
670
669
|
},
|
|
671
670
|
getControlProps() {
|
|
672
|
-
return normalize
|
|
671
|
+
return normalize.element({
|
|
673
672
|
...parts.control.attrs,
|
|
674
673
|
dir: prop("dir"),
|
|
675
674
|
id: getControlId(scope),
|
|
@@ -693,7 +692,7 @@ function connect(service, normalize$1) {
|
|
|
693
692
|
});
|
|
694
693
|
},
|
|
695
694
|
getMarkerGroupProps() {
|
|
696
|
-
return normalize
|
|
695
|
+
return normalize.element({
|
|
697
696
|
...parts.markerGroup.attrs,
|
|
698
697
|
role: "presentation",
|
|
699
698
|
dir: prop("dir"),
|
|
@@ -702,28 +701,28 @@ function connect(service, normalize$1) {
|
|
|
702
701
|
style: getMarkerGroupStyle()
|
|
703
702
|
});
|
|
704
703
|
},
|
|
705
|
-
getMarkerProps(props
|
|
706
|
-
const style = getMarkerStyle(service, props
|
|
704
|
+
getMarkerProps(props) {
|
|
705
|
+
const style = getMarkerStyle(service, props.value);
|
|
707
706
|
let markerState;
|
|
708
|
-
if (props
|
|
709
|
-
else if (props
|
|
707
|
+
if (props.value < first(sliderValue)) markerState = "under-value";
|
|
708
|
+
else if (props.value > last(sliderValue)) markerState = "over-value";
|
|
710
709
|
else markerState = "at-value";
|
|
711
|
-
return normalize
|
|
710
|
+
return normalize.element({
|
|
712
711
|
...parts.marker.attrs,
|
|
713
|
-
id: getMarkerId(scope, props
|
|
712
|
+
id: getMarkerId(scope, props.value),
|
|
714
713
|
role: "presentation",
|
|
715
714
|
dir: prop("dir"),
|
|
716
715
|
"data-orientation": prop("orientation"),
|
|
717
|
-
"data-value": props
|
|
716
|
+
"data-value": props.value,
|
|
718
717
|
"data-disabled": dataAttr(disabled),
|
|
719
718
|
"data-state": markerState,
|
|
720
719
|
style
|
|
721
720
|
});
|
|
722
721
|
},
|
|
723
|
-
getDraggingIndicatorProps(props
|
|
724
|
-
const { index = 0 } = props
|
|
722
|
+
getDraggingIndicatorProps(props) {
|
|
723
|
+
const { index = 0 } = props;
|
|
725
724
|
const isDragging = index === focusedIndex && dragging;
|
|
726
|
-
return normalize
|
|
725
|
+
return normalize.element({
|
|
727
726
|
...parts.draggingIndicator.attrs,
|
|
728
727
|
role: "presentation",
|
|
729
728
|
dir: prop("dir"),
|
|
@@ -749,12 +748,12 @@ const normalize = (value, min, max, step, minStepsBetweenThumbs) => {
|
|
|
749
748
|
});
|
|
750
749
|
};
|
|
751
750
|
const machine = createMachine({
|
|
752
|
-
props({ props
|
|
753
|
-
const min = props
|
|
754
|
-
const max = props
|
|
755
|
-
const step = props
|
|
756
|
-
const defaultValue = props
|
|
757
|
-
const minStepsBetweenThumbs = props
|
|
751
|
+
props({ props }) {
|
|
752
|
+
const min = props.min ?? 0;
|
|
753
|
+
const max = props.max ?? 100;
|
|
754
|
+
const step = props.step ?? 1;
|
|
755
|
+
const defaultValue = props.defaultValue ?? [min];
|
|
756
|
+
const minStepsBetweenThumbs = props.minStepsBetweenThumbs ?? 0;
|
|
758
757
|
return {
|
|
759
758
|
dir: "ltr",
|
|
760
759
|
thumbAlignment: "contain",
|
|
@@ -762,9 +761,9 @@ const machine = createMachine({
|
|
|
762
761
|
orientation: "horizontal",
|
|
763
762
|
thumbCollisionBehavior: "none",
|
|
764
763
|
minStepsBetweenThumbs,
|
|
765
|
-
...props
|
|
764
|
+
...props,
|
|
766
765
|
defaultValue: normalize(defaultValue, min, max, step, minStepsBetweenThumbs),
|
|
767
|
-
value: props
|
|
766
|
+
value: props.value ? normalize(props.value, min, max, step, minStepsBetweenThumbs) : void 0,
|
|
768
767
|
max,
|
|
769
768
|
step,
|
|
770
769
|
min
|
|
@@ -817,7 +816,7 @@ const machine = createMachine({
|
|
|
817
816
|
context.get("value"),
|
|
818
817
|
prop("min"),
|
|
819
818
|
prop("max")
|
|
820
|
-
], ([value, min, max]) => value.map((value
|
|
819
|
+
], ([value, min, max]) => value.map((value) => 100 * getValuePercent(value, min, max)))
|
|
821
820
|
},
|
|
822
821
|
watch({ track, action, context, computed, send }) {
|
|
823
822
|
track([() => context.hash("value")], () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/splitter/splitter.anatomy.ts
|
|
@@ -106,7 +106,7 @@ function fuzzySizeEqual(actual, expected, fractionDigits) {
|
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/machines/splitter/utils/panel.ts
|
|
108
108
|
function getPanelById(panels, id) {
|
|
109
|
-
const panel = panels.find((panel
|
|
109
|
+
const panel = panels.find((panel) => panel.id === id);
|
|
110
110
|
require_utils.ensure(panel, () => `Panel data not found for id "${id}"`);
|
|
111
111
|
return panel;
|
|
112
112
|
}
|
|
@@ -141,7 +141,7 @@ function getPanelLayout(panels) {
|
|
|
141
141
|
}
|
|
142
142
|
function serializePanels(panels) {
|
|
143
143
|
return panels.map((panel) => panel.id).sort().map((key) => {
|
|
144
|
-
const panel = panels.find((panel
|
|
144
|
+
const panel = panels.find((panel) => panel.id === key);
|
|
145
145
|
return JSON.stringify(panel);
|
|
146
146
|
}).join(",");
|
|
147
147
|
}
|
|
@@ -205,12 +205,12 @@ function connect(service, normalize) {
|
|
|
205
205
|
panelIndex
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
|
-
const getResizeTriggerState = (props
|
|
209
|
-
const { id, disabled } = props
|
|
210
|
-
const dragging
|
|
208
|
+
const getResizeTriggerState = (props) => {
|
|
209
|
+
const { id, disabled } = props;
|
|
210
|
+
const dragging = context.get("dragState")?.resizeTriggerId === id;
|
|
211
211
|
return {
|
|
212
|
-
dragging
|
|
213
|
-
focused: dragging
|
|
212
|
+
dragging,
|
|
213
|
+
focused: dragging || context.get("keyboardState")?.resizeTriggerId === id,
|
|
214
214
|
disabled: !!disabled
|
|
215
215
|
};
|
|
216
216
|
};
|
|
@@ -317,8 +317,8 @@ function connect(service, normalize) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
|
-
getPanelProps(props
|
|
321
|
-
const { id } = props
|
|
320
|
+
getPanelProps(props) {
|
|
321
|
+
const { id } = props;
|
|
322
322
|
return normalize.element({
|
|
323
323
|
...parts.panel.attrs,
|
|
324
324
|
"data-orientation": orientation,
|
|
@@ -332,8 +332,8 @@ function connect(service, normalize) {
|
|
|
332
332
|
});
|
|
333
333
|
},
|
|
334
334
|
getResizeTriggerState,
|
|
335
|
-
getResizeTriggerIndicator(props
|
|
336
|
-
const triggerState = getResizeTriggerState(props
|
|
335
|
+
getResizeTriggerIndicator(props) {
|
|
336
|
+
const triggerState = getResizeTriggerState(props);
|
|
337
337
|
return normalize.element({
|
|
338
338
|
...parts.resizeTriggerIndicator.attrs,
|
|
339
339
|
"data-orientation": orientation,
|
|
@@ -343,9 +343,9 @@ function connect(service, normalize) {
|
|
|
343
343
|
"data-ownedby": getRootId(scope)
|
|
344
344
|
});
|
|
345
345
|
},
|
|
346
|
-
getResizeTriggerProps(props
|
|
347
|
-
const { id } = props
|
|
348
|
-
const triggerState = getResizeTriggerState(props
|
|
346
|
+
getResizeTriggerProps(props) {
|
|
347
|
+
const { id } = props;
|
|
348
|
+
const triggerState = getResizeTriggerState(props);
|
|
349
349
|
const aria = getAriaValue(context.get("size"), prop("panels"), id);
|
|
350
350
|
return normalize.element({
|
|
351
351
|
...parts.resizeTrigger.attrs,
|
|
@@ -513,8 +513,8 @@ function resizePanel({ panels, index, size }) {
|
|
|
513
513
|
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/machines/splitter/utils/resize-by-delta.ts
|
|
516
|
-
function resizeByDelta(props
|
|
517
|
-
let { delta, initialSize, panels, pivotIndices, prevSize, trigger } = props
|
|
516
|
+
function resizeByDelta(props) {
|
|
517
|
+
let { delta, initialSize, panels, pivotIndices, prevSize, trigger } = props;
|
|
518
518
|
if (fuzzyNumbersEqual(delta, 0)) return initialSize;
|
|
519
519
|
const nextSize = [...initialSize];
|
|
520
520
|
const [firstPivotIndex, secondPivotIndex] = pivotIndices;
|
|
@@ -528,10 +528,10 @@ function resizeByDelta(props$1) {
|
|
|
528
528
|
require_utils.ensure(panel, () => `Panel data not found for index ${index}`);
|
|
529
529
|
const { collapsedSize = 0, collapsible, minSize = 0 } = panel;
|
|
530
530
|
if (collapsible) {
|
|
531
|
-
const prevSize
|
|
532
|
-
require_utils.ensure(prevSize
|
|
533
|
-
if (fuzzyNumbersEqual(prevSize
|
|
534
|
-
const localDelta = minSize - prevSize
|
|
531
|
+
const prevSize = initialSize[index];
|
|
532
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${index}`);
|
|
533
|
+
if (fuzzyNumbersEqual(prevSize, collapsedSize)) {
|
|
534
|
+
const localDelta = minSize - prevSize;
|
|
535
535
|
if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) delta = delta < 0 ? 0 - localDelta : localDelta;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -542,10 +542,10 @@ function resizeByDelta(props$1) {
|
|
|
542
542
|
require_utils.ensure(panel, () => `No panel data found for index ${index}`);
|
|
543
543
|
const { collapsedSize = 0, collapsible, minSize = 0 } = panel;
|
|
544
544
|
if (collapsible) {
|
|
545
|
-
const prevSize
|
|
546
|
-
require_utils.ensure(prevSize
|
|
547
|
-
if (fuzzyNumbersEqual(prevSize
|
|
548
|
-
const localDelta = prevSize
|
|
545
|
+
const prevSize = initialSize[index];
|
|
546
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${index}`);
|
|
547
|
+
if (fuzzyNumbersEqual(prevSize, minSize)) {
|
|
548
|
+
const localDelta = prevSize - collapsedSize;
|
|
549
549
|
if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) delta = delta < 0 ? 0 - localDelta : localDelta;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -556,14 +556,14 @@ function resizeByDelta(props$1) {
|
|
|
556
556
|
let index = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
557
557
|
let maxAvailableDelta = 0;
|
|
558
558
|
while (true) {
|
|
559
|
-
const prevSize
|
|
560
|
-
require_utils.ensure(prevSize
|
|
561
|
-
const delta
|
|
559
|
+
const prevSize = initialSize[index];
|
|
560
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${index}`);
|
|
561
|
+
const delta = resizePanel({
|
|
562
562
|
panels,
|
|
563
563
|
index,
|
|
564
564
|
size: 100
|
|
565
|
-
}) - prevSize
|
|
566
|
-
maxAvailableDelta += delta
|
|
565
|
+
}) - prevSize;
|
|
566
|
+
maxAvailableDelta += delta;
|
|
567
567
|
index += increment;
|
|
568
568
|
if (index < 0 || index >= panels.length) break;
|
|
569
569
|
}
|
|
@@ -574,16 +574,16 @@ function resizeByDelta(props$1) {
|
|
|
574
574
|
let index = delta < 0 ? firstPivotIndex : secondPivotIndex;
|
|
575
575
|
while (index >= 0 && index < panels.length) {
|
|
576
576
|
const deltaRemaining = Math.abs(delta) - Math.abs(deltaApplied);
|
|
577
|
-
const prevSize
|
|
578
|
-
require_utils.ensure(prevSize
|
|
579
|
-
const unsafeSize = prevSize
|
|
577
|
+
const prevSize = initialSize[index];
|
|
578
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${index}`);
|
|
579
|
+
const unsafeSize = prevSize - deltaRemaining;
|
|
580
580
|
const safeSize = resizePanel({
|
|
581
581
|
panels,
|
|
582
582
|
index,
|
|
583
583
|
size: unsafeSize
|
|
584
584
|
});
|
|
585
|
-
if (!fuzzyNumbersEqual(prevSize
|
|
586
|
-
deltaApplied += prevSize
|
|
585
|
+
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
586
|
+
deltaApplied += prevSize - safeSize;
|
|
587
587
|
nextSize[index] = safeSize;
|
|
588
588
|
if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, { numeric: true }) >= 0) break;
|
|
589
589
|
}
|
|
@@ -594,9 +594,9 @@ function resizeByDelta(props$1) {
|
|
|
594
594
|
if (fuzzySizeEqual(prevSize, nextSize)) return prevSize;
|
|
595
595
|
{
|
|
596
596
|
const pivotIndex = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
597
|
-
const prevSize
|
|
598
|
-
require_utils.ensure(prevSize
|
|
599
|
-
const unsafeSize = prevSize
|
|
597
|
+
const prevSize = initialSize[pivotIndex];
|
|
598
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${pivotIndex}`);
|
|
599
|
+
const unsafeSize = prevSize + deltaApplied;
|
|
600
600
|
const safeSize = resizePanel({
|
|
601
601
|
panels,
|
|
602
602
|
index: pivotIndex,
|
|
@@ -607,17 +607,17 @@ function resizeByDelta(props$1) {
|
|
|
607
607
|
let deltaRemaining = unsafeSize - safeSize;
|
|
608
608
|
let index = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
609
609
|
while (index >= 0 && index < panels.length) {
|
|
610
|
-
const prevSize
|
|
611
|
-
require_utils.ensure(prevSize
|
|
612
|
-
const unsafeSize
|
|
613
|
-
const safeSize
|
|
610
|
+
const prevSize = nextSize[index];
|
|
611
|
+
require_utils.ensure(prevSize, () => `Previous size not found for panel index ${index}`);
|
|
612
|
+
const unsafeSize = prevSize + deltaRemaining;
|
|
613
|
+
const safeSize = resizePanel({
|
|
614
614
|
panels,
|
|
615
615
|
index,
|
|
616
|
-
size: unsafeSize
|
|
616
|
+
size: unsafeSize
|
|
617
617
|
});
|
|
618
|
-
if (!fuzzyNumbersEqual(prevSize
|
|
619
|
-
deltaRemaining -= safeSize
|
|
620
|
-
nextSize[index] = safeSize
|
|
618
|
+
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
619
|
+
deltaRemaining -= safeSize - prevSize;
|
|
620
|
+
nextSize[index] = safeSize;
|
|
621
621
|
}
|
|
622
622
|
if (fuzzyNumbersEqual(deltaRemaining, 0)) break;
|
|
623
623
|
if (delta > 0) index--;
|
|
@@ -655,16 +655,16 @@ function validateSizes({ size: prevSize, panels }) {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
if (!fuzzyNumbersEqual(remainingSize, 0)) for (let index = 0; index < panels.length; index++) {
|
|
658
|
-
const prevSize
|
|
659
|
-
require_utils.ensure(prevSize
|
|
660
|
-
const unsafeSize = prevSize
|
|
658
|
+
const prevSize = nextSize[index];
|
|
659
|
+
require_utils.ensure(prevSize, () => `No size data found for index ${index}`);
|
|
660
|
+
const unsafeSize = prevSize + remainingSize;
|
|
661
661
|
const safeSize = resizePanel({
|
|
662
662
|
panels,
|
|
663
663
|
index,
|
|
664
664
|
size: unsafeSize
|
|
665
665
|
});
|
|
666
|
-
if (prevSize
|
|
667
|
-
remainingSize -= safeSize - prevSize
|
|
666
|
+
if (prevSize !== safeSize) {
|
|
667
|
+
remainingSize -= safeSize - prevSize;
|
|
668
668
|
nextSize[index] = safeSize;
|
|
669
669
|
if (fuzzyNumbersEqual(remainingSize, 0)) break;
|
|
670
670
|
}
|
|
@@ -675,14 +675,14 @@ function validateSizes({ size: prevSize, panels }) {
|
|
|
675
675
|
//#endregion
|
|
676
676
|
//#region src/machines/splitter/splitter.machine.ts
|
|
677
677
|
const machine = require_core.createMachine({
|
|
678
|
-
props({ props
|
|
679
|
-
require_utils.ensureProps(props
|
|
678
|
+
props({ props }) {
|
|
679
|
+
require_utils.ensureProps(props, ["panels"]);
|
|
680
680
|
return {
|
|
681
681
|
orientation: "horizontal",
|
|
682
682
|
defaultSize: [],
|
|
683
683
|
dir: "ltr",
|
|
684
|
-
...props
|
|
685
|
-
panels: sortPanels(props
|
|
684
|
+
...props,
|
|
685
|
+
panels: sortPanels(props.panels)
|
|
686
686
|
};
|
|
687
687
|
},
|
|
688
688
|
initialState() {
|
|
@@ -880,7 +880,7 @@ const machine = require_core.createMachine({
|
|
|
880
880
|
const { context, prop, event, refs } = params;
|
|
881
881
|
const prevSize = context.get("size");
|
|
882
882
|
const panels = prop("panels");
|
|
883
|
-
const panel = panels.find((panel
|
|
883
|
+
const panel = panels.find((panel) => panel.id === event.id);
|
|
884
884
|
require_utils.ensure(panel, () => `Panel data not found for id "${event.id}"`);
|
|
885
885
|
if (panel.collapsible) {
|
|
886
886
|
const { collapsedSize = 0, panelSize, pivotIndices } = panelDataHelper(panels, panel, prevSize);
|
|
@@ -903,7 +903,7 @@ const machine = require_core.createMachine({
|
|
|
903
903
|
const { context, prop, event, refs } = params;
|
|
904
904
|
const panels = prop("panels");
|
|
905
905
|
const prevSize = context.get("size");
|
|
906
|
-
const panel = panels.find((panel
|
|
906
|
+
const panel = panels.find((panel) => panel.id === event.id);
|
|
907
907
|
require_utils.ensure(panel, () => `Panel data not found for id "${event.id}"`);
|
|
908
908
|
if (panel.collapsible) {
|
|
909
909
|
const { collapsedSize = 0, panelSize = 0, minSize: minSizeFromProps = 0, pivotIndices } = panelDataHelper(panels, panel, prevSize);
|
|
@@ -1002,14 +1002,14 @@ const machine = require_core.createMachine({
|
|
|
1002
1002
|
const panelDataArray = prop("panels");
|
|
1003
1003
|
const sizes = context.get("size");
|
|
1004
1004
|
const [idBefore, idAfter] = (context.get("keyboardState")?.resizeTriggerId)?.split(":") ?? [];
|
|
1005
|
-
const index = panelDataArray.findIndex((panelData
|
|
1005
|
+
const index = panelDataArray.findIndex((panelData) => panelData.id === idBefore);
|
|
1006
1006
|
if (index === -1) return;
|
|
1007
1007
|
const panelData = panelDataArray[index];
|
|
1008
1008
|
require_utils.ensure(panelData, () => `No panel data found for index ${index}`);
|
|
1009
1009
|
const size = sizes[index];
|
|
1010
1010
|
const { collapsedSize = 0, collapsible, minSize = 0 } = panelData;
|
|
1011
1011
|
if (size != null && collapsible) {
|
|
1012
|
-
const pivotIndices = [idBefore, idAfter].map((id) => panelDataArray.findIndex((panelData
|
|
1012
|
+
const pivotIndices = [idBefore, idAfter].map((id) => panelDataArray.findIndex((panelData) => panelData.id === id));
|
|
1013
1013
|
const nextSize = resizeByDelta({
|
|
1014
1014
|
delta: fuzzyNumbersEqual(size, collapsedSize) ? minSize - collapsedSize : collapsedSize - size,
|
|
1015
1015
|
initialSize: context.initial("size"),
|
|
@@ -1027,7 +1027,7 @@ const machine = require_core.createMachine({
|
|
|
1027
1027
|
const panels = prop("panels");
|
|
1028
1028
|
const horizontal = prop("orientation") === "horizontal";
|
|
1029
1029
|
const [idBefore] = dragState.resizeTriggerId.split(":");
|
|
1030
|
-
const panel = panels[panels.findIndex((panel
|
|
1030
|
+
const panel = panels[panels.findIndex((panel) => panel.id === idBefore)];
|
|
1031
1031
|
const aria = getAriaValue(context.get("size"), panels, dragState.resizeTriggerId);
|
|
1032
1032
|
const cursorState = {
|
|
1033
1033
|
isAtMin: fuzzyNumbersEqual(aria.valueNow, aria.valueMin) || fuzzyNumbersEqual(aria.valueNow, panel.collapsedSize),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/splitter/splitter.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/splitter/splitter.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|