@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,14 +1,14 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_defineProperty = require('../../defineProperty-
|
|
4
|
-
const require_aria_hidden = require('../../aria-hidden-
|
|
5
|
-
const require_utils = require('../../utils-
|
|
6
|
-
const require_core = require('../../core-
|
|
7
|
-
require('../../interact-outside-
|
|
8
|
-
const require_dismissable = require('../../dismissable-
|
|
9
|
-
const require_focus_trap = require('../../focus-trap-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_defineProperty = require('../../defineProperty-_bOnJOii.cjs');
|
|
4
|
+
const require_aria_hidden = require('../../aria-hidden-CHWfuKk2.cjs');
|
|
5
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
6
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
7
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
8
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
9
|
+
const require_focus_trap = require('../../focus-trap-zaIiaoqE.cjs');
|
|
10
10
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
11
|
-
const require_remove_scroll = require('../../remove-scroll-
|
|
11
|
+
const require_remove_scroll = require('../../remove-scroll-DgJgF1C5.cjs');
|
|
12
12
|
|
|
13
13
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.ts
|
|
14
14
|
const anatomy = require_create_anatomy.createAnatomy("bottom-sheet").parts("content", "title", "trigger", "backdrop", "grabber", "grabberIndicator", "closeTrigger");
|
|
@@ -76,7 +76,7 @@ function connect(service, normalize) {
|
|
|
76
76
|
getContentHeight() {
|
|
77
77
|
return context.get("contentHeight");
|
|
78
78
|
},
|
|
79
|
-
getContentProps(props
|
|
79
|
+
getContentProps(props = { draggable: true }) {
|
|
80
80
|
return normalize.element({
|
|
81
81
|
...parts.content.attrs,
|
|
82
82
|
dir: prop("dir"),
|
|
@@ -94,7 +94,7 @@ function connect(service, normalize) {
|
|
|
94
94
|
willChange: "transform"
|
|
95
95
|
},
|
|
96
96
|
onPointerDown(event) {
|
|
97
|
-
if (!props
|
|
97
|
+
if (!props.draggable) return;
|
|
98
98
|
onPointerDown(event);
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -288,9 +288,9 @@ function resolveSnapPoint(snapPoint, containerHeight) {
|
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region src/machines/bottom-sheet/bottom-sheet.machine.ts
|
|
290
290
|
const machine = require_core.createMachine({
|
|
291
|
-
props({ props
|
|
292
|
-
const initialFocusEl = props
|
|
293
|
-
const modal = typeof props
|
|
291
|
+
props({ props, scope }) {
|
|
292
|
+
const initialFocusEl = props.role === "alertdialog" ? () => getCloseTriggerEl(scope) : void 0;
|
|
293
|
+
const modal = typeof props.modal === "boolean" ? props.modal : true;
|
|
294
294
|
return {
|
|
295
295
|
modal,
|
|
296
296
|
trapFocus: modal,
|
|
@@ -304,7 +304,7 @@ const machine = require_core.createMachine({
|
|
|
304
304
|
swipeVelocityThreshold: 700,
|
|
305
305
|
closeThreshold: .25,
|
|
306
306
|
preventDragOnScroll: true,
|
|
307
|
-
...props
|
|
307
|
+
...props
|
|
308
308
|
};
|
|
309
309
|
},
|
|
310
310
|
context({ bindable, prop }) {
|
|
@@ -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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
|
|
5
|
+
import { t as DismissableElementHandlers } from "../../dismissable-layer-B2bSyA07.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "content" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
|
|
5
|
+
import { t as DismissableElementHandlers } from "../../dismissable-layer-CpUMMV1f.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "content" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { W as raf, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, m as resizeObserverBorderBox, pt as getEventTarget } from "../../dom-query-
|
|
3
|
-
import { t as _defineProperty } from "../../defineProperty-
|
|
4
|
-
import { t as ariaHidden } from "../../aria-hidden-
|
|
5
|
-
import { H as toPx, u as createSplitProps } from "../../utils-
|
|
6
|
-
import { a as createMachine } from "../../core-
|
|
7
|
-
import "../../interact-outside-
|
|
8
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
9
|
-
import { t as trapFocus } from "../../focus-trap-
|
|
10
|
-
import { t as createProps } from "../../create-props-
|
|
11
|
-
import { t as preventBodyScroll } from "../../remove-scroll-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { W as raf, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, m as resizeObserverBorderBox, pt as getEventTarget } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { t as _defineProperty } from "../../defineProperty-DR_NxfHn.mjs";
|
|
4
|
+
import { t as ariaHidden } from "../../aria-hidden-Csp0PkO_.mjs";
|
|
5
|
+
import { H as toPx, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
6
|
+
import { a as createMachine } from "../../core-owywCQ2e.mjs";
|
|
7
|
+
import "../../interact-outside-CRmkKF6k.mjs";
|
|
8
|
+
import { n as trackDismissableElement } from "../../dismissable-BlZazbp3.mjs";
|
|
9
|
+
import { t as trapFocus } from "../../focus-trap-BXT0oBtL.mjs";
|
|
10
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
11
|
+
import { t as preventBodyScroll } from "../../remove-scroll-DcPV6nZy.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.ts
|
|
14
14
|
const anatomy = createAnatomy("bottom-sheet").parts("content", "title", "trigger", "backdrop", "grabber", "grabberIndicator", "closeTrigger");
|
|
@@ -76,7 +76,7 @@ function connect(service, normalize) {
|
|
|
76
76
|
getContentHeight() {
|
|
77
77
|
return context.get("contentHeight");
|
|
78
78
|
},
|
|
79
|
-
getContentProps(props
|
|
79
|
+
getContentProps(props = { draggable: true }) {
|
|
80
80
|
return normalize.element({
|
|
81
81
|
...parts.content.attrs,
|
|
82
82
|
dir: prop("dir"),
|
|
@@ -94,7 +94,7 @@ function connect(service, normalize) {
|
|
|
94
94
|
willChange: "transform"
|
|
95
95
|
},
|
|
96
96
|
onPointerDown(event) {
|
|
97
|
-
if (!props
|
|
97
|
+
if (!props.draggable) return;
|
|
98
98
|
onPointerDown(event);
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -288,9 +288,9 @@ function resolveSnapPoint(snapPoint, containerHeight) {
|
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region src/machines/bottom-sheet/bottom-sheet.machine.ts
|
|
290
290
|
const machine = createMachine({
|
|
291
|
-
props({ props
|
|
292
|
-
const initialFocusEl = props
|
|
293
|
-
const modal = typeof props
|
|
291
|
+
props({ props, scope }) {
|
|
292
|
+
const initialFocusEl = props.role === "alertdialog" ? () => getCloseTriggerEl(scope) : void 0;
|
|
293
|
+
const modal = typeof props.modal === "boolean" ? props.modal : true;
|
|
294
294
|
return {
|
|
295
295
|
modal,
|
|
296
296
|
trapFocus: modal,
|
|
@@ -304,7 +304,7 @@ const machine = createMachine({
|
|
|
304
304
|
swipeVelocityThreshold: 700,
|
|
305
305
|
closeThreshold: .25,
|
|
306
306
|
preventDragOnScroll: true,
|
|
307
|
-
...props
|
|
307
|
+
...props
|
|
308
308
|
};
|
|
309
309
|
},
|
|
310
310
|
context({ bindable, prop }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
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_scroll_snap = require('../../scroll-snap-
|
|
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_scroll_snap = require('../../scroll-snap-DpEzlrHP.cjs');
|
|
6
6
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
7
7
|
|
|
8
8
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
@@ -161,27 +161,27 @@ function connect(service, normalize) {
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
},
|
|
164
|
-
getItemProps(props
|
|
165
|
-
const isInView = context.get("slidesInView").includes(props
|
|
164
|
+
getItemProps(props) {
|
|
165
|
+
const isInView = context.get("slidesInView").includes(props.index);
|
|
166
166
|
return normalize.element({
|
|
167
167
|
...parts.item.attrs,
|
|
168
|
-
id: getItemId(scope, props
|
|
168
|
+
id: getItemId(scope, props.index),
|
|
169
169
|
dir: prop("dir"),
|
|
170
170
|
role: "group",
|
|
171
|
-
"data-index": props
|
|
171
|
+
"data-index": props.index,
|
|
172
172
|
"data-inview": require_dom_query.dataAttr(isInView),
|
|
173
173
|
"aria-roledescription": "slide",
|
|
174
174
|
"data-orientation": prop("orientation"),
|
|
175
|
-
"aria-label": translations.item(props
|
|
175
|
+
"aria-label": translations.item(props.index, prop("slideCount")),
|
|
176
176
|
"aria-hidden": require_dom_query.ariaAttr(!isInView),
|
|
177
177
|
style: {
|
|
178
178
|
flex: "0 0 auto",
|
|
179
179
|
[horizontal ? "maxWidth" : "maxHeight"]: "100%",
|
|
180
180
|
scrollSnapAlign: (() => {
|
|
181
|
-
const snapAlign = props
|
|
181
|
+
const snapAlign = props.snapAlign ?? "start";
|
|
182
182
|
const slidesPerMove = prop("slidesPerMove");
|
|
183
183
|
const perMove = slidesPerMove === "auto" ? Math.floor(prop("slidesPerPage")) : slidesPerMove;
|
|
184
|
-
return (props
|
|
184
|
+
return (props.index + perMove) % perMove === 0 ? snapAlign : void 0;
|
|
185
185
|
})()
|
|
186
186
|
}
|
|
187
187
|
});
|
|
@@ -240,53 +240,53 @@ function connect(service, normalize) {
|
|
|
240
240
|
if (event.defaultPrevented) return;
|
|
241
241
|
const src = "indicator";
|
|
242
242
|
const exec = {
|
|
243
|
-
ArrowDown(event
|
|
243
|
+
ArrowDown(event) {
|
|
244
244
|
if (horizontal) return;
|
|
245
245
|
send({
|
|
246
246
|
type: "PAGE.NEXT",
|
|
247
247
|
src
|
|
248
248
|
});
|
|
249
|
-
event
|
|
249
|
+
event.preventDefault();
|
|
250
250
|
},
|
|
251
|
-
ArrowUp(event
|
|
251
|
+
ArrowUp(event) {
|
|
252
252
|
if (horizontal) return;
|
|
253
253
|
send({
|
|
254
254
|
type: "PAGE.PREV",
|
|
255
255
|
src
|
|
256
256
|
});
|
|
257
|
-
event
|
|
257
|
+
event.preventDefault();
|
|
258
258
|
},
|
|
259
|
-
ArrowRight(event
|
|
259
|
+
ArrowRight(event) {
|
|
260
260
|
if (!horizontal) return;
|
|
261
261
|
send({
|
|
262
262
|
type: "PAGE.NEXT",
|
|
263
263
|
src
|
|
264
264
|
});
|
|
265
|
-
event
|
|
265
|
+
event.preventDefault();
|
|
266
266
|
},
|
|
267
|
-
ArrowLeft(event
|
|
267
|
+
ArrowLeft(event) {
|
|
268
268
|
if (!horizontal) return;
|
|
269
269
|
send({
|
|
270
270
|
type: "PAGE.PREV",
|
|
271
271
|
src
|
|
272
272
|
});
|
|
273
|
-
event
|
|
273
|
+
event.preventDefault();
|
|
274
274
|
},
|
|
275
|
-
Home(event
|
|
275
|
+
Home(event) {
|
|
276
276
|
send({
|
|
277
277
|
type: "PAGE.SET",
|
|
278
278
|
index: 0,
|
|
279
279
|
src
|
|
280
280
|
});
|
|
281
|
-
event
|
|
281
|
+
event.preventDefault();
|
|
282
282
|
},
|
|
283
|
-
End(event
|
|
283
|
+
End(event) {
|
|
284
284
|
send({
|
|
285
285
|
type: "PAGE.SET",
|
|
286
286
|
index: pageSnapPoints.length - 1,
|
|
287
287
|
src
|
|
288
288
|
});
|
|
289
|
-
event
|
|
289
|
+
event.preventDefault();
|
|
290
290
|
}
|
|
291
291
|
}[require_dom_query.getEventKey(event, {
|
|
292
292
|
dir: prop("dir"),
|
|
@@ -296,23 +296,23 @@ function connect(service, normalize) {
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
},
|
|
299
|
-
getIndicatorProps(props
|
|
299
|
+
getIndicatorProps(props) {
|
|
300
300
|
return normalize.button({
|
|
301
301
|
...parts.indicator.attrs,
|
|
302
302
|
dir: prop("dir"),
|
|
303
|
-
id: getIndicatorId(scope, props
|
|
303
|
+
id: getIndicatorId(scope, props.index),
|
|
304
304
|
type: "button",
|
|
305
305
|
"data-orientation": prop("orientation"),
|
|
306
|
-
"data-index": props
|
|
307
|
-
"data-readonly": require_dom_query.dataAttr(props
|
|
308
|
-
"data-current": require_dom_query.dataAttr(props
|
|
309
|
-
"aria-label": translations.indicator(props
|
|
306
|
+
"data-index": props.index,
|
|
307
|
+
"data-readonly": require_dom_query.dataAttr(props.readOnly),
|
|
308
|
+
"data-current": require_dom_query.dataAttr(props.index === page),
|
|
309
|
+
"aria-label": translations.indicator(props.index),
|
|
310
310
|
onClick(event) {
|
|
311
311
|
if (event.defaultPrevented) return;
|
|
312
|
-
if (props
|
|
312
|
+
if (props.readOnly) return;
|
|
313
313
|
send({
|
|
314
314
|
type: "PAGE.SET",
|
|
315
|
-
index: props
|
|
315
|
+
index: props.index,
|
|
316
316
|
src: "indicator"
|
|
317
317
|
});
|
|
318
318
|
}
|
|
@@ -340,14 +340,14 @@ function connect(service, normalize) {
|
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/machines/carousel/carousel.machine.ts
|
|
342
342
|
const machine = require_core.createMachine({
|
|
343
|
-
props({ props
|
|
344
|
-
require_utils.ensureProps(props
|
|
343
|
+
props({ props }) {
|
|
344
|
+
require_utils.ensureProps(props, ["slideCount"], "carousel");
|
|
345
345
|
return {
|
|
346
346
|
dir: "ltr",
|
|
347
347
|
defaultPage: 0,
|
|
348
348
|
orientation: "horizontal",
|
|
349
349
|
snapType: "mandatory",
|
|
350
|
-
loop: !!props
|
|
350
|
+
loop: !!props.autoplay,
|
|
351
351
|
slidesPerPage: 1,
|
|
352
352
|
slidesPerMove: "auto",
|
|
353
353
|
spacing: "0px",
|
|
@@ -355,7 +355,7 @@ const machine = require_core.createMachine({
|
|
|
355
355
|
allowMouseDrag: false,
|
|
356
356
|
inViewThreshold: .6,
|
|
357
357
|
autoSize: false,
|
|
358
|
-
...props
|
|
358
|
+
...props,
|
|
359
359
|
translations: {
|
|
360
360
|
nextTrigger: "Next slide",
|
|
361
361
|
prevTrigger: "Previous slide",
|
|
@@ -364,7 +364,7 @@ const machine = require_core.createMachine({
|
|
|
364
364
|
autoplayStart: "Start slide rotation",
|
|
365
365
|
autoplayStop: "Stop slide rotation",
|
|
366
366
|
progressText: ({ page, totalPages }) => `${page} / ${totalPages}`,
|
|
367
|
-
...props
|
|
367
|
+
...props.translations
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
},
|
|
@@ -739,8 +739,8 @@ const machine = require_core.createMachine({
|
|
|
739
739
|
const isHorizontal = computed("isHorizontal");
|
|
740
740
|
const scrollPos = isHorizontal ? el.scrollLeft : el.scrollTop;
|
|
741
741
|
const snapPoints = context.get("pageSnapPoints");
|
|
742
|
-
const closest = snapPoints.reduce((closest
|
|
743
|
-
return Math.abs(curr - scrollPos) < Math.abs(closest
|
|
742
|
+
const closest = snapPoints.reduce((closest, curr) => {
|
|
743
|
+
return Math.abs(curr - scrollPos) < Math.abs(closest - scrollPos) ? curr : closest;
|
|
744
744
|
}, snapPoints[0]);
|
|
745
745
|
require_dom_query.raf(() => {
|
|
746
746
|
el.scrollTo({
|
|
@@ -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, d as Orientation, f as OrientationProperty, 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, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "indicator" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "indicator" | "prevTrigger" | "nextTrigger" | "itemGroup" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -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, d as Orientation, f as OrientationProperty, 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, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "indicator" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "indicator" | "prevTrigger" | "nextTrigger" | "itemGroup" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, E as trackPointerMove, W as raf, Zt as contains, bt as isLeftClick, ct as addDomEvent, et as getTabbables, m as resizeObserverBorderBox, pt as getEventTarget, tt as isFocusable, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { At as remove, Et as nextIndex, Nt as uniq, Q as throttle, W as callAll, ct as isObject, g as clampValue, kt as prevIndex, n as ensureProps, pt as add, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-
|
|
6
|
-
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, Zt as contains, bt as isLeftClick, ct as addDomEvent, et as getTabbables, m as resizeObserverBorderBox, pt as getEventTarget, tt as isFocusable, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { At as remove, Et as nextIndex, Nt as uniq, Q as throttle, W as callAll, ct as isObject, g as clampValue, kt as prevIndex, n as ensureProps, pt as add, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-D_M1Q8ZQ.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|
|
@@ -161,27 +161,27 @@ function connect(service, normalize) {
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
},
|
|
164
|
-
getItemProps(props
|
|
165
|
-
const isInView = context.get("slidesInView").includes(props
|
|
164
|
+
getItemProps(props) {
|
|
165
|
+
const isInView = context.get("slidesInView").includes(props.index);
|
|
166
166
|
return normalize.element({
|
|
167
167
|
...parts.item.attrs,
|
|
168
|
-
id: getItemId(scope, props
|
|
168
|
+
id: getItemId(scope, props.index),
|
|
169
169
|
dir: prop("dir"),
|
|
170
170
|
role: "group",
|
|
171
|
-
"data-index": props
|
|
171
|
+
"data-index": props.index,
|
|
172
172
|
"data-inview": dataAttr(isInView),
|
|
173
173
|
"aria-roledescription": "slide",
|
|
174
174
|
"data-orientation": prop("orientation"),
|
|
175
|
-
"aria-label": translations.item(props
|
|
175
|
+
"aria-label": translations.item(props.index, prop("slideCount")),
|
|
176
176
|
"aria-hidden": ariaAttr(!isInView),
|
|
177
177
|
style: {
|
|
178
178
|
flex: "0 0 auto",
|
|
179
179
|
[horizontal ? "maxWidth" : "maxHeight"]: "100%",
|
|
180
180
|
scrollSnapAlign: (() => {
|
|
181
|
-
const snapAlign = props
|
|
181
|
+
const snapAlign = props.snapAlign ?? "start";
|
|
182
182
|
const slidesPerMove = prop("slidesPerMove");
|
|
183
183
|
const perMove = slidesPerMove === "auto" ? Math.floor(prop("slidesPerPage")) : slidesPerMove;
|
|
184
|
-
return (props
|
|
184
|
+
return (props.index + perMove) % perMove === 0 ? snapAlign : void 0;
|
|
185
185
|
})()
|
|
186
186
|
}
|
|
187
187
|
});
|
|
@@ -240,53 +240,53 @@ function connect(service, normalize) {
|
|
|
240
240
|
if (event.defaultPrevented) return;
|
|
241
241
|
const src = "indicator";
|
|
242
242
|
const exec = {
|
|
243
|
-
ArrowDown(event
|
|
243
|
+
ArrowDown(event) {
|
|
244
244
|
if (horizontal) return;
|
|
245
245
|
send({
|
|
246
246
|
type: "PAGE.NEXT",
|
|
247
247
|
src
|
|
248
248
|
});
|
|
249
|
-
event
|
|
249
|
+
event.preventDefault();
|
|
250
250
|
},
|
|
251
|
-
ArrowUp(event
|
|
251
|
+
ArrowUp(event) {
|
|
252
252
|
if (horizontal) return;
|
|
253
253
|
send({
|
|
254
254
|
type: "PAGE.PREV",
|
|
255
255
|
src
|
|
256
256
|
});
|
|
257
|
-
event
|
|
257
|
+
event.preventDefault();
|
|
258
258
|
},
|
|
259
|
-
ArrowRight(event
|
|
259
|
+
ArrowRight(event) {
|
|
260
260
|
if (!horizontal) return;
|
|
261
261
|
send({
|
|
262
262
|
type: "PAGE.NEXT",
|
|
263
263
|
src
|
|
264
264
|
});
|
|
265
|
-
event
|
|
265
|
+
event.preventDefault();
|
|
266
266
|
},
|
|
267
|
-
ArrowLeft(event
|
|
267
|
+
ArrowLeft(event) {
|
|
268
268
|
if (!horizontal) return;
|
|
269
269
|
send({
|
|
270
270
|
type: "PAGE.PREV",
|
|
271
271
|
src
|
|
272
272
|
});
|
|
273
|
-
event
|
|
273
|
+
event.preventDefault();
|
|
274
274
|
},
|
|
275
|
-
Home(event
|
|
275
|
+
Home(event) {
|
|
276
276
|
send({
|
|
277
277
|
type: "PAGE.SET",
|
|
278
278
|
index: 0,
|
|
279
279
|
src
|
|
280
280
|
});
|
|
281
|
-
event
|
|
281
|
+
event.preventDefault();
|
|
282
282
|
},
|
|
283
|
-
End(event
|
|
283
|
+
End(event) {
|
|
284
284
|
send({
|
|
285
285
|
type: "PAGE.SET",
|
|
286
286
|
index: pageSnapPoints.length - 1,
|
|
287
287
|
src
|
|
288
288
|
});
|
|
289
|
-
event
|
|
289
|
+
event.preventDefault();
|
|
290
290
|
}
|
|
291
291
|
}[getEventKey(event, {
|
|
292
292
|
dir: prop("dir"),
|
|
@@ -296,23 +296,23 @@ function connect(service, normalize) {
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
},
|
|
299
|
-
getIndicatorProps(props
|
|
299
|
+
getIndicatorProps(props) {
|
|
300
300
|
return normalize.button({
|
|
301
301
|
...parts.indicator.attrs,
|
|
302
302
|
dir: prop("dir"),
|
|
303
|
-
id: getIndicatorId(scope, props
|
|
303
|
+
id: getIndicatorId(scope, props.index),
|
|
304
304
|
type: "button",
|
|
305
305
|
"data-orientation": prop("orientation"),
|
|
306
|
-
"data-index": props
|
|
307
|
-
"data-readonly": dataAttr(props
|
|
308
|
-
"data-current": dataAttr(props
|
|
309
|
-
"aria-label": translations.indicator(props
|
|
306
|
+
"data-index": props.index,
|
|
307
|
+
"data-readonly": dataAttr(props.readOnly),
|
|
308
|
+
"data-current": dataAttr(props.index === page),
|
|
309
|
+
"aria-label": translations.indicator(props.index),
|
|
310
310
|
onClick(event) {
|
|
311
311
|
if (event.defaultPrevented) return;
|
|
312
|
-
if (props
|
|
312
|
+
if (props.readOnly) return;
|
|
313
313
|
send({
|
|
314
314
|
type: "PAGE.SET",
|
|
315
|
-
index: props
|
|
315
|
+
index: props.index,
|
|
316
316
|
src: "indicator"
|
|
317
317
|
});
|
|
318
318
|
}
|
|
@@ -340,14 +340,14 @@ function connect(service, normalize) {
|
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/machines/carousel/carousel.machine.ts
|
|
342
342
|
const machine = createMachine({
|
|
343
|
-
props({ props
|
|
344
|
-
ensureProps(props
|
|
343
|
+
props({ props }) {
|
|
344
|
+
ensureProps(props, ["slideCount"], "carousel");
|
|
345
345
|
return {
|
|
346
346
|
dir: "ltr",
|
|
347
347
|
defaultPage: 0,
|
|
348
348
|
orientation: "horizontal",
|
|
349
349
|
snapType: "mandatory",
|
|
350
|
-
loop: !!props
|
|
350
|
+
loop: !!props.autoplay,
|
|
351
351
|
slidesPerPage: 1,
|
|
352
352
|
slidesPerMove: "auto",
|
|
353
353
|
spacing: "0px",
|
|
@@ -355,7 +355,7 @@ const machine = createMachine({
|
|
|
355
355
|
allowMouseDrag: false,
|
|
356
356
|
inViewThreshold: .6,
|
|
357
357
|
autoSize: false,
|
|
358
|
-
...props
|
|
358
|
+
...props,
|
|
359
359
|
translations: {
|
|
360
360
|
nextTrigger: "Next slide",
|
|
361
361
|
prevTrigger: "Previous slide",
|
|
@@ -364,7 +364,7 @@ const machine = createMachine({
|
|
|
364
364
|
autoplayStart: "Start slide rotation",
|
|
365
365
|
autoplayStop: "Stop slide rotation",
|
|
366
366
|
progressText: ({ page, totalPages }) => `${page} / ${totalPages}`,
|
|
367
|
-
...props
|
|
367
|
+
...props.translations
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
},
|
|
@@ -739,8 +739,8 @@ const machine = createMachine({
|
|
|
739
739
|
const isHorizontal = computed("isHorizontal");
|
|
740
740
|
const scrollPos = isHorizontal ? el.scrollLeft : el.scrollTop;
|
|
741
741
|
const snapPoints = context.get("pageSnapPoints");
|
|
742
|
-
const closest = snapPoints.reduce((closest
|
|
743
|
-
return Math.abs(curr - scrollPos) < Math.abs(closest
|
|
742
|
+
const closest = snapPoints.reduce((closest, curr) => {
|
|
743
|
+
return Math.abs(curr - scrollPos) < Math.abs(closest - scrollPos) ? curr : closest;
|
|
744
744
|
}, snapPoints[0]);
|
|
745
745
|
raf(() => {
|
|
746
746
|
el.scrollTo({
|
|
@@ -1,8 +1,8 @@
|
|
|
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_focus_visible = require('../../focus-visible-
|
|
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_focus_visible = require('../../focus-visible-3pXNNo-l.cjs');
|
|
6
6
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
7
7
|
|
|
8
8
|
//#region src/machines/checkbox/checkbox.anatomy.ts
|
|
@@ -49,10 +49,10 @@ function connect(service, normalize) {
|
|
|
49
49
|
indeterminate,
|
|
50
50
|
focused,
|
|
51
51
|
checkedState,
|
|
52
|
-
setChecked(checked
|
|
52
|
+
setChecked(checked) {
|
|
53
53
|
send({
|
|
54
54
|
type: "CHECKED.SET",
|
|
55
|
-
checked
|
|
55
|
+
checked,
|
|
56
56
|
isTrusted: false
|
|
57
57
|
});
|
|
58
58
|
},
|
|
@@ -154,10 +154,10 @@ function connect(service, normalize) {
|
|
|
154
154
|
event.preventDefault();
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
const checked
|
|
157
|
+
const checked = event.currentTarget.checked;
|
|
158
158
|
send({
|
|
159
159
|
type: "CHECKED.SET",
|
|
160
|
-
checked
|
|
160
|
+
checked,
|
|
161
161
|
isTrusted: true
|
|
162
162
|
});
|
|
163
163
|
}
|
|
@@ -170,11 +170,11 @@ function connect(service, normalize) {
|
|
|
170
170
|
//#region src/machines/checkbox/checkbox.machine.ts
|
|
171
171
|
const { not } = require_core.createGuards();
|
|
172
172
|
const machine = require_core.createMachine({
|
|
173
|
-
props({ props
|
|
173
|
+
props({ props }) {
|
|
174
174
|
return {
|
|
175
175
|
value: "on",
|
|
176
|
-
...props
|
|
177
|
-
defaultChecked: props
|
|
176
|
+
...props,
|
|
177
|
+
defaultChecked: props.defaultChecked ?? false
|
|
178
178
|
};
|
|
179
179
|
},
|
|
180
180
|
initialState() {
|
|
@@ -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/checkbox/checkbox.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/checkbox/checkbox.types.d.ts
|
|
9
9
|
type CheckedState = boolean | "indeterminate";
|