@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
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-
|
|
5
|
-
const require_rect_utils = require('../../rect-utils-
|
|
6
|
-
const require_store = require('../../store-
|
|
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
|
+
const require_rect_utils = require('../../rect-utils-DtqZwNtZ.cjs');
|
|
6
|
+
const require_store = require('../../store-B9Ewi-zx.cjs');
|
|
7
7
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
8
8
|
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.anatomy.ts
|
|
@@ -127,16 +127,16 @@ function connect(service, normalize) {
|
|
|
127
127
|
resizing,
|
|
128
128
|
position,
|
|
129
129
|
size,
|
|
130
|
-
setPosition(position
|
|
130
|
+
setPosition(position) {
|
|
131
131
|
send({
|
|
132
132
|
type: "SET_POSITION",
|
|
133
|
-
position
|
|
133
|
+
position
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
|
-
setSize(size
|
|
136
|
+
setSize(size) {
|
|
137
137
|
send({
|
|
138
138
|
type: "SET_SIZE",
|
|
139
|
-
size
|
|
139
|
+
size
|
|
140
140
|
});
|
|
141
141
|
},
|
|
142
142
|
minimize() {
|
|
@@ -266,10 +266,10 @@ function connect(service, normalize) {
|
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
},
|
|
269
|
-
getStageTriggerProps(props
|
|
270
|
-
if (!validStages.has(props
|
|
269
|
+
getStageTriggerProps(props) {
|
|
270
|
+
if (!validStages.has(props.stage)) throw new Error(`[sprawlify-js] Invalid stage: ${props.stage}. Must be one of: ${Array.from(validStages).join(", ")}`);
|
|
271
271
|
const translations = prop("translations");
|
|
272
|
-
const actionProps = require_utils.match(props
|
|
272
|
+
const actionProps = require_utils.match(props.stage, {
|
|
273
273
|
minimized: () => ({
|
|
274
274
|
"aria-label": translations.minimize,
|
|
275
275
|
hidden: isStaged
|
|
@@ -287,13 +287,13 @@ function connect(service, normalize) {
|
|
|
287
287
|
...parts.stageTrigger.attrs,
|
|
288
288
|
dir: prop("dir"),
|
|
289
289
|
disabled: prop("disabled"),
|
|
290
|
-
"data-stage": props
|
|
290
|
+
"data-stage": props.stage,
|
|
291
291
|
...actionProps,
|
|
292
292
|
type: "button",
|
|
293
293
|
onClick(event) {
|
|
294
294
|
if (event.defaultPrevented) return;
|
|
295
295
|
if (!prop("resizable")) return;
|
|
296
|
-
send({ type: require_utils.match(props
|
|
296
|
+
send({ type: require_utils.match(props.stage, {
|
|
297
297
|
minimized: () => "MINIMIZE",
|
|
298
298
|
maximized: () => "MAXIMIZE",
|
|
299
299
|
default: () => "RESTORE"
|
|
@@ -301,12 +301,12 @@ function connect(service, normalize) {
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
|
-
getResizeTriggerProps(props
|
|
304
|
+
getResizeTriggerProps(props) {
|
|
305
305
|
return normalize.element({
|
|
306
306
|
...parts.resizeTrigger.attrs,
|
|
307
307
|
dir: prop("dir"),
|
|
308
308
|
"data-disabled": require_dom_query.dataAttr(!canResize),
|
|
309
|
-
"data-axis": props
|
|
309
|
+
"data-axis": props.axis,
|
|
310
310
|
onPointerDown(event) {
|
|
311
311
|
if (!canResize) return;
|
|
312
312
|
if (!require_dom_query.isLeftClick(event)) return;
|
|
@@ -314,7 +314,7 @@ function connect(service, normalize) {
|
|
|
314
314
|
event.stopPropagation();
|
|
315
315
|
send({
|
|
316
316
|
type: "RESIZE_START",
|
|
317
|
-
axis: props
|
|
317
|
+
axis: props.axis,
|
|
318
318
|
position: {
|
|
319
319
|
x: event.clientX,
|
|
320
320
|
y: event.clientY
|
|
@@ -329,7 +329,7 @@ function connect(service, normalize) {
|
|
|
329
329
|
style: {
|
|
330
330
|
position: "absolute",
|
|
331
331
|
touchAction: "none",
|
|
332
|
-
...getResizeAxisStyle(props
|
|
332
|
+
...getResizeAxisStyle(props.axis)
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
},
|
|
@@ -454,8 +454,8 @@ const defaultTranslations = {
|
|
|
454
454
|
restore: "Restore window"
|
|
455
455
|
};
|
|
456
456
|
const machine = require_core.createMachine({
|
|
457
|
-
props({ props
|
|
458
|
-
require_utils.ensureProps(props
|
|
457
|
+
props({ props }) {
|
|
458
|
+
require_utils.ensureProps(props, ["id"], "floating-panel");
|
|
459
459
|
return {
|
|
460
460
|
strategy: "fixed",
|
|
461
461
|
gridSize: 1,
|
|
@@ -470,11 +470,11 @@ const machine = require_core.createMachine({
|
|
|
470
470
|
allowOverflow: true,
|
|
471
471
|
resizable: true,
|
|
472
472
|
draggable: true,
|
|
473
|
-
...props
|
|
474
|
-
hasSpecifiedPosition: !!props
|
|
473
|
+
...props,
|
|
474
|
+
hasSpecifiedPosition: !!props.defaultPosition || !!props.position,
|
|
475
475
|
translations: {
|
|
476
476
|
...defaultTranslations,
|
|
477
|
-
...props
|
|
477
|
+
...props.translations
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
},
|
|
@@ -710,8 +710,8 @@ const machine = require_core.createMachine({
|
|
|
710
710
|
skip = false;
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
|
-
const boundaryEl
|
|
714
|
-
let boundaryRect = getBoundaryRect(scope, boundaryEl
|
|
713
|
+
const boundaryEl = prop("getBoundaryEl")?.();
|
|
714
|
+
let boundaryRect = getBoundaryRect(scope, boundaryEl, false);
|
|
715
715
|
if (!computed("isMaximized")) boundaryRect = require_rect_utils.constrainRect({
|
|
716
716
|
...context.get("position"),
|
|
717
717
|
...context.get("size")
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import { a as Point, o as Rect, y as Size } from "../../types-
|
|
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
|
+
import { a as Point, o as Rect, y as Size } from "../../types-C1F7Y-Hc.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/floating-panel/floating-panel.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"control" | "body" | "header" | "title" | "trigger" | "content" | "positioner" | "resizeTrigger" | "closeTrigger" | "dragTrigger" | "stageTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.types.d.ts
|
|
10
10
|
interface PositionChangeDetails {
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import { a as Point, o as Rect, y as Size } from "../../types-
|
|
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
|
+
import { a as Point, o as Rect, y as Size } from "../../types-Dw1I6cFP.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/floating-panel/floating-panel.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"control" | "body" | "header" | "title" | "trigger" | "content" | "positioner" | "resizeTrigger" | "closeTrigger" | "dragTrigger" | "stageTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.types.d.ts
|
|
10
10
|
interface PositionChangeDetails {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { E as trackPointerMove, W as raf, bt as isLeftClick, ct as addDomEvent, ft as getEventStep, m as resizeObserverBorderBox, pt as getEventTarget, un as isHTMLElement, ut as getEventKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { H as toPx, Y as match, g as clampValue, n as ensureProps, p as pick, r as invariant, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import { G as clampPoint, I as addPoints, K as clampSize, R as createRect, T as constrainRect, W as subtractPoints, d as getWindowRect, t as resizeRect, v as getElementRect, x as isSizeEqual, y as isPointEqual } from "../../rect-utils-
|
|
6
|
-
import { a as subscribe, n as proxy } from "../../store-
|
|
7
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { E as trackPointerMove, W as raf, bt as isLeftClick, ct as addDomEvent, ft as getEventStep, m as resizeObserverBorderBox, pt as getEventTarget, un as isHTMLElement, ut as getEventKey, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { H as toPx, Y as match, g as clampValue, n as ensureProps, p as pick, r as invariant, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { G as clampPoint, I as addPoints, K as clampSize, R as createRect, T as constrainRect, W as subtractPoints, d as getWindowRect, t as resizeRect, v as getElementRect, x as isSizeEqual, y as isPointEqual } from "../../rect-utils-BobE6Wut.mjs";
|
|
6
|
+
import { a as subscribe, n as proxy } from "../../store-DMXvGOAu.mjs";
|
|
7
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.anatomy.ts
|
|
10
10
|
const anatomy = createAnatomy("floating-panel").parts("trigger", "positioner", "content", "header", "body", "title", "resizeTrigger", "dragTrigger", "stageTrigger", "closeTrigger", "control");
|
|
@@ -127,16 +127,16 @@ function connect(service, normalize) {
|
|
|
127
127
|
resizing,
|
|
128
128
|
position,
|
|
129
129
|
size,
|
|
130
|
-
setPosition(position
|
|
130
|
+
setPosition(position) {
|
|
131
131
|
send({
|
|
132
132
|
type: "SET_POSITION",
|
|
133
|
-
position
|
|
133
|
+
position
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
|
-
setSize(size
|
|
136
|
+
setSize(size) {
|
|
137
137
|
send({
|
|
138
138
|
type: "SET_SIZE",
|
|
139
|
-
size
|
|
139
|
+
size
|
|
140
140
|
});
|
|
141
141
|
},
|
|
142
142
|
minimize() {
|
|
@@ -266,10 +266,10 @@ function connect(service, normalize) {
|
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
},
|
|
269
|
-
getStageTriggerProps(props
|
|
270
|
-
if (!validStages.has(props
|
|
269
|
+
getStageTriggerProps(props) {
|
|
270
|
+
if (!validStages.has(props.stage)) throw new Error(`[sprawlify-js] Invalid stage: ${props.stage}. Must be one of: ${Array.from(validStages).join(", ")}`);
|
|
271
271
|
const translations = prop("translations");
|
|
272
|
-
const actionProps = match(props
|
|
272
|
+
const actionProps = match(props.stage, {
|
|
273
273
|
minimized: () => ({
|
|
274
274
|
"aria-label": translations.minimize,
|
|
275
275
|
hidden: isStaged
|
|
@@ -287,13 +287,13 @@ function connect(service, normalize) {
|
|
|
287
287
|
...parts.stageTrigger.attrs,
|
|
288
288
|
dir: prop("dir"),
|
|
289
289
|
disabled: prop("disabled"),
|
|
290
|
-
"data-stage": props
|
|
290
|
+
"data-stage": props.stage,
|
|
291
291
|
...actionProps,
|
|
292
292
|
type: "button",
|
|
293
293
|
onClick(event) {
|
|
294
294
|
if (event.defaultPrevented) return;
|
|
295
295
|
if (!prop("resizable")) return;
|
|
296
|
-
send({ type: match(props
|
|
296
|
+
send({ type: match(props.stage, {
|
|
297
297
|
minimized: () => "MINIMIZE",
|
|
298
298
|
maximized: () => "MAXIMIZE",
|
|
299
299
|
default: () => "RESTORE"
|
|
@@ -301,12 +301,12 @@ function connect(service, normalize) {
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
|
-
getResizeTriggerProps(props
|
|
304
|
+
getResizeTriggerProps(props) {
|
|
305
305
|
return normalize.element({
|
|
306
306
|
...parts.resizeTrigger.attrs,
|
|
307
307
|
dir: prop("dir"),
|
|
308
308
|
"data-disabled": dataAttr(!canResize),
|
|
309
|
-
"data-axis": props
|
|
309
|
+
"data-axis": props.axis,
|
|
310
310
|
onPointerDown(event) {
|
|
311
311
|
if (!canResize) return;
|
|
312
312
|
if (!isLeftClick(event)) return;
|
|
@@ -314,7 +314,7 @@ function connect(service, normalize) {
|
|
|
314
314
|
event.stopPropagation();
|
|
315
315
|
send({
|
|
316
316
|
type: "RESIZE_START",
|
|
317
|
-
axis: props
|
|
317
|
+
axis: props.axis,
|
|
318
318
|
position: {
|
|
319
319
|
x: event.clientX,
|
|
320
320
|
y: event.clientY
|
|
@@ -329,7 +329,7 @@ function connect(service, normalize) {
|
|
|
329
329
|
style: {
|
|
330
330
|
position: "absolute",
|
|
331
331
|
touchAction: "none",
|
|
332
|
-
...getResizeAxisStyle(props
|
|
332
|
+
...getResizeAxisStyle(props.axis)
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
},
|
|
@@ -454,8 +454,8 @@ const defaultTranslations = {
|
|
|
454
454
|
restore: "Restore window"
|
|
455
455
|
};
|
|
456
456
|
const machine = createMachine({
|
|
457
|
-
props({ props
|
|
458
|
-
ensureProps(props
|
|
457
|
+
props({ props }) {
|
|
458
|
+
ensureProps(props, ["id"], "floating-panel");
|
|
459
459
|
return {
|
|
460
460
|
strategy: "fixed",
|
|
461
461
|
gridSize: 1,
|
|
@@ -470,11 +470,11 @@ const machine = createMachine({
|
|
|
470
470
|
allowOverflow: true,
|
|
471
471
|
resizable: true,
|
|
472
472
|
draggable: true,
|
|
473
|
-
...props
|
|
474
|
-
hasSpecifiedPosition: !!props
|
|
473
|
+
...props,
|
|
474
|
+
hasSpecifiedPosition: !!props.defaultPosition || !!props.position,
|
|
475
475
|
translations: {
|
|
476
476
|
...defaultTranslations,
|
|
477
|
-
...props
|
|
477
|
+
...props.translations
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
},
|
|
@@ -710,8 +710,8 @@ const machine = createMachine({
|
|
|
710
710
|
skip = false;
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
|
-
const boundaryEl
|
|
714
|
-
let boundaryRect = getBoundaryRect(scope, boundaryEl
|
|
713
|
+
const boundaryEl = prop("getBoundaryEl")?.();
|
|
714
|
+
let boundaryRect = getBoundaryRect(scope, boundaryEl, false);
|
|
715
715
|
if (!computed("isMaximized")) boundaryRect = constrainRect({
|
|
716
716
|
...context.get("position"),
|
|
717
717
|
...context.get("size")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
5
|
-
require('../../interact-outside-
|
|
6
|
-
const require_dismissable = require('../../dismissable-
|
|
7
|
-
const require_popper = require('../../popper-
|
|
2
|
+
require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
5
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
6
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
7
|
+
const require_popper = require('../../popper-CY3ptPbm.cjs');
|
|
8
8
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
9
9
|
|
|
10
10
|
//#region src/machines/hover-card/hover-card.anatomy.ts
|
|
@@ -133,15 +133,15 @@ function connect(service, normalize) {
|
|
|
133
133
|
//#region src/machines/hover-card/hover-card.machine.ts
|
|
134
134
|
const { not, and } = require_core.createGuards();
|
|
135
135
|
const machine = require_core.createMachine({
|
|
136
|
-
props({ props
|
|
136
|
+
props({ props }) {
|
|
137
137
|
return {
|
|
138
138
|
disabled: false,
|
|
139
139
|
openDelay: 600,
|
|
140
140
|
closeDelay: 300,
|
|
141
|
-
...props
|
|
141
|
+
...props,
|
|
142
142
|
positioning: {
|
|
143
143
|
placement: "bottom",
|
|
144
|
-
...props
|
|
144
|
+
...props.positioning
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
},
|
|
@@ -332,8 +332,8 @@ const machine = require_core.createMachine({
|
|
|
332
332
|
context.set("isPointer", false);
|
|
333
333
|
},
|
|
334
334
|
reposition({ context, prop, scope, event }) {
|
|
335
|
-
const getPositionerEl$
|
|
336
|
-
require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$
|
|
335
|
+
const getPositionerEl$2 = () => getPositionerEl(scope);
|
|
336
|
+
require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$2, {
|
|
337
337
|
...prop("positioning"),
|
|
338
338
|
...event.options,
|
|
339
339
|
defer: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
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
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
|
|
5
|
+
import { c as Placement, d as PositioningOptions } from "../../types-B--gFZVP.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { p as PositioningOptions, u as Placement } 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
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
|
|
5
|
+
import { p as PositioningOptions, u as Placement } from "../../index-DJ1MHM3z.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
7
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
8
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import "../../interact-outside-CRmkKF6k.mjs";
|
|
6
|
+
import { n as trackDismissableElement } from "../../dismissable-BlZazbp3.mjs";
|
|
7
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-DxgokNha.mjs";
|
|
8
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/hover-card/hover-card.anatomy.ts
|
|
11
11
|
const anatomy = createAnatomy("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content");
|
|
@@ -133,15 +133,15 @@ function connect(service, normalize) {
|
|
|
133
133
|
//#region src/machines/hover-card/hover-card.machine.ts
|
|
134
134
|
const { not, and } = createGuards();
|
|
135
135
|
const machine = createMachine({
|
|
136
|
-
props({ props
|
|
136
|
+
props({ props }) {
|
|
137
137
|
return {
|
|
138
138
|
disabled: false,
|
|
139
139
|
openDelay: 600,
|
|
140
140
|
closeDelay: 300,
|
|
141
|
-
...props
|
|
141
|
+
...props,
|
|
142
142
|
positioning: {
|
|
143
143
|
placement: "bottom",
|
|
144
|
-
...props
|
|
144
|
+
...props.positioning
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
},
|
|
@@ -332,8 +332,8 @@ const machine = createMachine({
|
|
|
332
332
|
context.set("isPointer", false);
|
|
333
333
|
},
|
|
334
334
|
reposition({ context, prop, scope, event }) {
|
|
335
|
-
const getPositionerEl$
|
|
336
|
-
getPlacement(getTriggerEl(scope), getPositionerEl$
|
|
335
|
+
const getPositionerEl$2 = () => getPositionerEl(scope);
|
|
336
|
+
getPlacement(getTriggerEl(scope), getPositionerEl$2, {
|
|
337
337
|
...prop("positioning"),
|
|
338
338
|
...event.options,
|
|
339
339
|
defer: true,
|
|
@@ -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/image-cropper/image-cropper.anatomy.ts
|
|
@@ -514,21 +514,21 @@ function computeMoveCrop(cropStart, delta, viewportRect) {
|
|
|
514
514
|
}
|
|
515
515
|
function clampOffset(params) {
|
|
516
516
|
const { zoom, rotation, viewportSize, offset, fixedCropArea, crop } = params;
|
|
517
|
-
const { cos
|
|
517
|
+
const { cos, sin } = getRotationTransform(rotation);
|
|
518
518
|
if (fixedCropArea && crop) {
|
|
519
|
-
const aabb
|
|
519
|
+
const aabb = computeAABB(viewportSize, zoom, cos, sin);
|
|
520
520
|
const center = getViewportCenter(viewportSize);
|
|
521
521
|
const cropRight = crop.x + crop.width;
|
|
522
522
|
const cropBottom = crop.y + crop.height;
|
|
523
523
|
return clampPoint(offset, {
|
|
524
|
-
x: cropRight - center.x - aabb
|
|
525
|
-
y: cropBottom - center.y - aabb
|
|
524
|
+
x: cropRight - center.x - aabb.width / 2,
|
|
525
|
+
y: cropBottom - center.y - aabb.height / 2
|
|
526
526
|
}, {
|
|
527
|
-
x: crop.x - center.x + aabb
|
|
528
|
-
y: crop.y - center.y + aabb
|
|
527
|
+
x: crop.x - center.x + aabb.width / 2,
|
|
528
|
+
y: crop.y - center.y + aabb.height / 2
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
const aabb = computeAABB(viewportSize, zoom, cos
|
|
531
|
+
const aabb = computeAABB(viewportSize, zoom, cos, sin);
|
|
532
532
|
const extraWidth = max(0, aabb.width - viewportSize.width);
|
|
533
533
|
const extraHeight = max(0, aabb.height - viewportSize.height);
|
|
534
534
|
return clampPoint(offset, {
|
|
@@ -718,15 +718,15 @@ const computeDefaultCropDimensions = (viewportRect, aspectRatio, fixedCropArea)
|
|
|
718
718
|
const targetHeight = viewportRect.height * DEFAULT_VIEWPORT_FILL;
|
|
719
719
|
if (typeof aspectRatio === "number" && aspectRatio > 0) {
|
|
720
720
|
if (fixedCropArea) {
|
|
721
|
-
let height
|
|
722
|
-
let width = height
|
|
721
|
+
let height = viewportRect.height;
|
|
722
|
+
let width = height * aspectRatio;
|
|
723
723
|
if (width > viewportRect.width) {
|
|
724
724
|
width = viewportRect.width;
|
|
725
|
-
height
|
|
725
|
+
height = width / aspectRatio;
|
|
726
726
|
}
|
|
727
727
|
return {
|
|
728
728
|
width,
|
|
729
|
-
height
|
|
729
|
+
height
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
732
|
if (aspectRatio > targetWidth / targetHeight) {
|
|
@@ -801,9 +801,9 @@ const ZERO_POINT = {
|
|
|
801
801
|
const getTouchDistance = (p1, p2) => {
|
|
802
802
|
return hypot(p1.x - p2.x, p1.y - p2.y);
|
|
803
803
|
};
|
|
804
|
-
const clampPoint = (point, min
|
|
805
|
-
x: require_utils.clampValue(point.x, min
|
|
806
|
-
y: require_utils.clampValue(point.y, min
|
|
804
|
+
const clampPoint = (point, min, max) => ({
|
|
805
|
+
x: require_utils.clampValue(point.x, min.x, max.x),
|
|
806
|
+
y: require_utils.clampValue(point.y, min.y, max.y)
|
|
807
807
|
});
|
|
808
808
|
const subtractPoints = (a, b) => ({
|
|
809
809
|
x: a.x - b.x,
|
|
@@ -832,12 +832,12 @@ const getRotationTransform = (rotation) => {
|
|
|
832
832
|
sin: abs(sin(theta))
|
|
833
833
|
};
|
|
834
834
|
};
|
|
835
|
-
const computeAABB = (size, zoom, cos
|
|
835
|
+
const computeAABB = (size, zoom, cos, sin) => {
|
|
836
836
|
const w = size.width * zoom;
|
|
837
837
|
const h = size.height * zoom;
|
|
838
838
|
return {
|
|
839
|
-
width: w * cos
|
|
840
|
-
height: w * sin
|
|
839
|
+
width: w * cos + h * sin,
|
|
840
|
+
height: w * sin + h * cos
|
|
841
841
|
};
|
|
842
842
|
};
|
|
843
843
|
const scaleSize = (size, scale) => ({
|
|
@@ -1204,8 +1204,8 @@ function connect(service, normalize) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
});
|
|
1206
1206
|
},
|
|
1207
|
-
getHandleProps(props
|
|
1208
|
-
const handlePosition = props
|
|
1207
|
+
getHandleProps(props) {
|
|
1208
|
+
const handlePosition = props.position;
|
|
1209
1209
|
const disabled = !!fixedCropArea;
|
|
1210
1210
|
return normalize.element({
|
|
1211
1211
|
...parts.handle.attrs,
|
|
@@ -1229,9 +1229,9 @@ function connect(service, normalize) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
},
|
|
1232
|
-
getGridProps(props
|
|
1233
|
-
const axis = props
|
|
1234
|
-
const isMeasured
|
|
1232
|
+
getGridProps(props) {
|
|
1233
|
+
const axis = props.axis;
|
|
1234
|
+
const isMeasured = computed("isMeasured");
|
|
1235
1235
|
return normalize.element({
|
|
1236
1236
|
...parts.grid.attrs,
|
|
1237
1237
|
"aria-hidden": "true",
|
|
@@ -1242,7 +1242,7 @@ function connect(service, normalize) {
|
|
|
1242
1242
|
position: "absolute",
|
|
1243
1243
|
inset: axis === "horizontal" ? "33.33% 0" : "0 33.33%",
|
|
1244
1244
|
pointerEvents: "none",
|
|
1245
|
-
visibility: isMeasured
|
|
1245
|
+
visibility: isMeasured ? void 0 : "hidden"
|
|
1246
1246
|
}
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
@@ -1252,7 +1252,7 @@ function connect(service, normalize) {
|
|
|
1252
1252
|
//#endregion
|
|
1253
1253
|
//#region src/machines/image-cropper/image-cropper.machine.ts
|
|
1254
1254
|
const machine = require_core.createMachine({
|
|
1255
|
-
props({ props
|
|
1255
|
+
props({ props }) {
|
|
1256
1256
|
return {
|
|
1257
1257
|
minWidth: 40,
|
|
1258
1258
|
minHeight: 40,
|
|
@@ -1273,7 +1273,7 @@ const machine = require_core.createMachine({
|
|
|
1273
1273
|
nudgeStep: 1,
|
|
1274
1274
|
nudgeStepShift: 10,
|
|
1275
1275
|
nudgeStepCtrl: 50,
|
|
1276
|
-
...props
|
|
1276
|
+
...props,
|
|
1277
1277
|
translations: {
|
|
1278
1278
|
rootLabel: "Image cropper",
|
|
1279
1279
|
rootRoleDescription: "Image cropper",
|
|
@@ -1288,7 +1288,7 @@ const machine = require_core.createMachine({
|
|
|
1288
1288
|
if (shape === "circle") return `Position X ${x}px, Y ${y}px. Diameter ${width}px.`;
|
|
1289
1289
|
return `Position X ${x}px, Y ${y}px. Size ${width}px by ${height}px.`;
|
|
1290
1290
|
},
|
|
1291
|
-
...props
|
|
1291
|
+
...props.translations
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
1294
|
},
|
|
@@ -1522,21 +1522,21 @@ const machine = require_core.createMachine({
|
|
|
1522
1522
|
};
|
|
1523
1523
|
const initialCrop = prop("initialCrop");
|
|
1524
1524
|
if (initialCrop) {
|
|
1525
|
-
const { width
|
|
1525
|
+
const { width, height } = clampSize({
|
|
1526
1526
|
x: 0,
|
|
1527
1527
|
y: 0,
|
|
1528
1528
|
width: initialCrop.width,
|
|
1529
1529
|
height: initialCrop.height
|
|
1530
1530
|
});
|
|
1531
|
-
const { x
|
|
1532
|
-
width
|
|
1533
|
-
height
|
|
1531
|
+
const { x, y } = clampPoint(initialCrop, ZERO_POINT, getMaxBounds({
|
|
1532
|
+
width,
|
|
1533
|
+
height
|
|
1534
1534
|
}, viewportRect));
|
|
1535
1535
|
context.set("crop", {
|
|
1536
|
-
x
|
|
1537
|
-
y
|
|
1538
|
-
width
|
|
1539
|
-
height
|
|
1536
|
+
x,
|
|
1537
|
+
y,
|
|
1538
|
+
width,
|
|
1539
|
+
height
|
|
1540
1540
|
});
|
|
1541
1541
|
return;
|
|
1542
1542
|
}
|
|
@@ -1725,8 +1725,8 @@ const machine = require_core.createMachine({
|
|
|
1725
1725
|
const nextZoom = calculateNextZoom();
|
|
1726
1726
|
if (nextZoom === null) return;
|
|
1727
1727
|
if (nextZoom === currentZoom && panDelta) {
|
|
1728
|
-
const nextOffset
|
|
1729
|
-
context.set("offset", nextOffset
|
|
1728
|
+
const nextOffset = applyClampedOffset(currentZoom, addPoints(currentOffset, panDelta));
|
|
1729
|
+
context.set("offset", nextOffset);
|
|
1730
1730
|
return;
|
|
1731
1731
|
}
|
|
1732
1732
|
if (nextZoom === currentZoom) return;
|
|
@@ -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 { _ as Size, b as NormalizeProps, g as RequiredBy, m as Rect, p as Point, 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 { _ as Size, b as NormalizeProps, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/image-cropper/image-cropper.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "image" | "viewport" | "selection" | "handle" | "grid">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/image-cropper/image-cropper.types.d.ts
|
|
9
9
|
type HandlePosition = "n" | "e" | "s" | "w" | "ne" | "se" | "sw" | "nw";
|