@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,13 +1,13 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, ht as isComposingEvent, mt as getNativeEvent, ot as setElementValue, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { N as isValueWithinRange, Y as match, g as clampValue, ht as chunk, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards, s as memo } from "../../core-
|
|
5
|
-
import { A as getMonthFormatter, D as formatSelectedDate, F as isDateUnavailable, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, P as isDateOutsideRange, R as alignDate, S as getMonthNames, W as constrainValue, _ as getYearsRange, g as getDecadeRange, i as getNextPage, j as getEndDate, k as getDayFormatter, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, w as getWeekDays, x as getMonthDays, y as getDaysInWeek } from "../../date-utils-
|
|
6
|
-
import "../../interact-outside-
|
|
7
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
8
|
-
import { t as createLiveRegion } from "../../live-region-
|
|
9
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
10
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, ht as isComposingEvent, mt as getNativeEvent, ot as setElementValue, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { N as isValueWithinRange, Y as match, g as clampValue, ht as chunk, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards, s as memo } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { A as getMonthFormatter, D as formatSelectedDate, F as isDateUnavailable, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, P as isDateOutsideRange, R as alignDate, S as getMonthNames, W as constrainValue, _ as getYearsRange, g as getDecadeRange, i as getNextPage, j as getEndDate, k as getDayFormatter, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, w as getWeekDays, x as getMonthDays, y as getDaysInWeek } from "../../date-utils-LnVS7q0z.mjs";
|
|
6
|
+
import "../../interact-outside-CRmkKF6k.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-BlZazbp3.mjs";
|
|
8
|
+
import { t as createLiveRegion } from "../../live-region-CBp2K1JK.mjs";
|
|
9
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-DxgokNha.mjs";
|
|
10
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
11
11
|
import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate } from "@internationalized/date";
|
|
12
12
|
|
|
13
13
|
//#region src/machines/date-picker/date-picker.anatomy.ts
|
|
@@ -172,25 +172,25 @@ const getVisibleRangeText = memo((opts) => [
|
|
|
172
172
|
const { startValue, endValue, locale, timeZone, selectionMode } = opts;
|
|
173
173
|
if (view === "year") {
|
|
174
174
|
const years = getDecadeRange(startValue.year, { strict: true });
|
|
175
|
-
const start
|
|
176
|
-
const end
|
|
175
|
+
const start = years.at(0).toString();
|
|
176
|
+
const end = years.at(-1).toString();
|
|
177
177
|
return {
|
|
178
|
-
start
|
|
179
|
-
end
|
|
180
|
-
formatted: `${start
|
|
178
|
+
start,
|
|
179
|
+
end,
|
|
180
|
+
formatted: `${start} - ${end}`
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
if (view === "month") {
|
|
184
|
-
const formatter
|
|
184
|
+
const formatter = new DateFormatter(locale, {
|
|
185
185
|
year: "numeric",
|
|
186
186
|
timeZone
|
|
187
187
|
});
|
|
188
|
-
const start
|
|
189
|
-
const end
|
|
188
|
+
const start = formatter.format(startValue.toDate(timeZone));
|
|
189
|
+
const end = formatter.format(endValue.toDate(timeZone));
|
|
190
190
|
return {
|
|
191
|
-
start
|
|
192
|
-
end
|
|
193
|
-
formatted: selectionMode === "range" ? `${start
|
|
191
|
+
start,
|
|
192
|
+
end,
|
|
193
|
+
formatted: selectionMode === "range" ? `${start} - ${end}` : start
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
const formatter = new DateFormatter(locale, {
|
|
@@ -226,7 +226,7 @@ function connect(service, normalize) {
|
|
|
226
226
|
const max = prop("max");
|
|
227
227
|
const locale = prop("locale");
|
|
228
228
|
const timeZone = prop("timeZone");
|
|
229
|
-
const startOfWeek
|
|
229
|
+
const startOfWeek = prop("startOfWeek");
|
|
230
230
|
const focused = state.matches("focused");
|
|
231
231
|
const open = state.matches("open");
|
|
232
232
|
const isRangePicker = prop("selectionMode") === "range";
|
|
@@ -242,10 +242,10 @@ function connect(service, normalize) {
|
|
|
242
242
|
...prop("translations")
|
|
243
243
|
};
|
|
244
244
|
function getMonthWeeks(from = startValue) {
|
|
245
|
-
return getMonthDays(from, locale, prop("fixedWeeks") ? 6 : void 0, startOfWeek
|
|
245
|
+
return getMonthDays(from, locale, prop("fixedWeeks") ? 6 : void 0, startOfWeek);
|
|
246
246
|
}
|
|
247
|
-
function getMonths(props
|
|
248
|
-
const { format } = props
|
|
247
|
+
function getMonths(props = {}) {
|
|
248
|
+
const { format } = props;
|
|
249
249
|
return getMonthNames(locale, format).map((label, index) => {
|
|
250
250
|
const value = index + 1;
|
|
251
251
|
return {
|
|
@@ -280,13 +280,13 @@ function connect(service, normalize) {
|
|
|
280
280
|
value: (startValue ?? getTodayDate(timeZone)).set({ year })
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
function getYearTableCellState(props
|
|
284
|
-
const { value, disabled
|
|
283
|
+
function getYearTableCellState(props) {
|
|
284
|
+
const { value, disabled } = props;
|
|
285
285
|
const dateValue = focusedValue.set({ year: value });
|
|
286
286
|
const isOutsideVisibleRange = !getDecadeRange(startValue.year, { strict: true }).includes(value);
|
|
287
287
|
const isOutsideRange = isValueWithinRange(value, min?.year, max?.year);
|
|
288
288
|
const cellState = {
|
|
289
|
-
focused: focusedValue.year === props
|
|
289
|
+
focused: focusedValue.year === props.value,
|
|
290
290
|
selectable: isOutsideVisibleRange || isOutsideRange,
|
|
291
291
|
outsideRange: isOutsideVisibleRange,
|
|
292
292
|
selected: !!selectedValue.find((date) => date && date.year === value),
|
|
@@ -294,30 +294,30 @@ function connect(service, normalize) {
|
|
|
294
294
|
inRange: isRangePicker && (isDateWithinRange(dateValue, selectedValue) || isDateWithinRange(dateValue, hoveredRangeValue)),
|
|
295
295
|
value: dateValue,
|
|
296
296
|
get disabled() {
|
|
297
|
-
return disabled
|
|
297
|
+
return disabled || !cellState.selectable;
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
return cellState;
|
|
301
301
|
}
|
|
302
|
-
function getMonthTableCellState(props
|
|
303
|
-
const { value, disabled
|
|
302
|
+
function getMonthTableCellState(props) {
|
|
303
|
+
const { value, disabled } = props;
|
|
304
304
|
const dateValue = focusedValue.set({ month: value });
|
|
305
305
|
const formatter = getMonthFormatter(locale, timeZone);
|
|
306
306
|
const cellState = {
|
|
307
|
-
focused: focusedValue.month === props
|
|
307
|
+
focused: focusedValue.month === props.value,
|
|
308
308
|
selectable: !isDateOutsideRange(dateValue, min, max),
|
|
309
309
|
selected: !!selectedValue.find((date) => date && date.month === value && date.year === focusedValue.year),
|
|
310
310
|
valueText: formatter.format(dateValue.toDate(timeZone)),
|
|
311
311
|
inRange: isRangePicker && (isDateWithinRange(dateValue, selectedValue) || isDateWithinRange(dateValue, hoveredRangeValue)),
|
|
312
312
|
value: dateValue,
|
|
313
313
|
get disabled() {
|
|
314
|
-
return disabled
|
|
314
|
+
return disabled || !cellState.selectable;
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
return cellState;
|
|
318
318
|
}
|
|
319
|
-
function getDayTableCellState(props
|
|
320
|
-
const { value, disabled
|
|
319
|
+
function getDayTableCellState(props) {
|
|
320
|
+
const { value, disabled, visibleRange = computed("visibleRange") } = props;
|
|
321
321
|
const formatter = getDayFormatter(locale, timeZone);
|
|
322
322
|
const unitDuration = getUnitDuration(computed("visibleDuration"));
|
|
323
323
|
const outsideDaySelectable = prop("outsideDaySelectable");
|
|
@@ -332,9 +332,9 @@ function connect(service, normalize) {
|
|
|
332
332
|
const isLastInHoveredRange = hasHoveredRange && isDateEqual(value, hoveredRangeValue[1]);
|
|
333
333
|
const cellState = {
|
|
334
334
|
invalid: isDateOutsideRange(value, min, max),
|
|
335
|
-
disabled: disabled
|
|
335
|
+
disabled: disabled || !outsideDaySelectable && isOutsideRange || isDateOutsideRange(value, min, max),
|
|
336
336
|
selected: selectedValue.some((date) => isDateEqual(value, date)),
|
|
337
|
-
unavailable: isDateUnavailable(value, isDateUnavailableFn, locale, min, max) && !disabled
|
|
337
|
+
unavailable: isDateUnavailable(value, isDateUnavailableFn, locale, min, max) && !disabled,
|
|
338
338
|
outsideRange: isOutsideRange,
|
|
339
339
|
today: isToday(value, timeZone),
|
|
340
340
|
weekend: isWeekend(value, locale),
|
|
@@ -357,8 +357,8 @@ function connect(service, normalize) {
|
|
|
357
357
|
};
|
|
358
358
|
return cellState;
|
|
359
359
|
}
|
|
360
|
-
function getTableId$1(props
|
|
361
|
-
const { view = "day", id } = props
|
|
360
|
+
function getTableId$1(props) {
|
|
361
|
+
const { view = "day", id } = props;
|
|
362
362
|
return [view, id].filter(Boolean).join(" ");
|
|
363
363
|
}
|
|
364
364
|
return {
|
|
@@ -375,7 +375,7 @@ function connect(service, normalize) {
|
|
|
375
375
|
return getDateRangePreset(preset, locale, timeZone);
|
|
376
376
|
},
|
|
377
377
|
getDaysInWeek(week, from = startValue) {
|
|
378
|
-
return getDaysInWeek(week, from, locale, startOfWeek
|
|
378
|
+
return getDaysInWeek(week, from, locale, startOfWeek);
|
|
379
379
|
},
|
|
380
380
|
getOffset(duration) {
|
|
381
381
|
const from = startValue.add(duration);
|
|
@@ -396,7 +396,7 @@ function connect(service, normalize) {
|
|
|
396
396
|
getMonthWeeks,
|
|
397
397
|
isUnavailable,
|
|
398
398
|
weeks: getMonthWeeks(),
|
|
399
|
-
weekDays: getWeekDays(getTodayDate(timeZone), startOfWeek
|
|
399
|
+
weekDays: getWeekDays(getTodayDate(timeZone), startOfWeek, timeZone, locale),
|
|
400
400
|
visibleRangeText: computed("visibleRangeText"),
|
|
401
401
|
value: selectedValue,
|
|
402
402
|
valueAsDate: selectedValue.filter((date) => date != null).map((date) => date.toDate(timeZone)),
|
|
@@ -438,8 +438,8 @@ function connect(service, normalize) {
|
|
|
438
438
|
focusYear,
|
|
439
439
|
getYears,
|
|
440
440
|
getMonths,
|
|
441
|
-
getYearsGrid(props
|
|
442
|
-
const { columns = 1 } = props
|
|
441
|
+
getYearsGrid(props = {}) {
|
|
442
|
+
const { columns = 1 } = props;
|
|
443
443
|
return chunk(getDecadeRange(startValue.year, { strict: true }).map((year) => ({
|
|
444
444
|
label: year.toString(),
|
|
445
445
|
value: year,
|
|
@@ -453,8 +453,8 @@ function connect(service, normalize) {
|
|
|
453
453
|
end: years.at(-1)
|
|
454
454
|
};
|
|
455
455
|
},
|
|
456
|
-
getMonthsGrid(props
|
|
457
|
-
const { columns = 1, format } = props
|
|
456
|
+
getMonthsGrid(props = {}) {
|
|
457
|
+
const { columns = 1, format } = props;
|
|
458
458
|
return chunk(getMonths({ format }), columns);
|
|
459
459
|
},
|
|
460
460
|
format(value, opts = {
|
|
@@ -492,8 +492,8 @@ function connect(service, normalize) {
|
|
|
492
492
|
"data-empty": dataAttr(empty)
|
|
493
493
|
});
|
|
494
494
|
},
|
|
495
|
-
getLabelProps(props
|
|
496
|
-
const { index = 0 } = props
|
|
495
|
+
getLabelProps(props = {}) {
|
|
496
|
+
const { index = 0 } = props;
|
|
497
497
|
return normalize.label({
|
|
498
498
|
...parts.label.attrs,
|
|
499
499
|
id: getLabelId(scope, index),
|
|
@@ -535,9 +535,9 @@ function connect(service, normalize) {
|
|
|
535
535
|
"aria-label": translations.content
|
|
536
536
|
});
|
|
537
537
|
},
|
|
538
|
-
getTableProps(props
|
|
539
|
-
const { view = "day", columns = view === "day" ? 7 : 4 } = props
|
|
540
|
-
const uid = getTableId$1(props
|
|
538
|
+
getTableProps(props = {}) {
|
|
539
|
+
const { view = "day", columns = view === "day" ? 7 : 4 } = props;
|
|
540
|
+
const uid = getTableId$1(props);
|
|
541
541
|
return normalize.element({
|
|
542
542
|
...parts.table.attrs,
|
|
543
543
|
role: "grid",
|
|
@@ -600,19 +600,19 @@ function connect(service, normalize) {
|
|
|
600
600
|
focus: true
|
|
601
601
|
});
|
|
602
602
|
},
|
|
603
|
-
PageUp(event
|
|
603
|
+
PageUp(event) {
|
|
604
604
|
send({
|
|
605
605
|
type: "TABLE.PAGE_UP",
|
|
606
|
-
larger: event
|
|
606
|
+
larger: event.shiftKey,
|
|
607
607
|
view,
|
|
608
608
|
columns,
|
|
609
609
|
focus: true
|
|
610
610
|
});
|
|
611
611
|
},
|
|
612
|
-
PageDown(event
|
|
612
|
+
PageDown(event) {
|
|
613
613
|
send({
|
|
614
614
|
type: "TABLE.PAGE_DOWN",
|
|
615
|
-
larger: event
|
|
615
|
+
larger: event.shiftKey,
|
|
616
616
|
view,
|
|
617
617
|
columns,
|
|
618
618
|
focus: true
|
|
@@ -658,8 +658,8 @@ function connect(service, normalize) {
|
|
|
658
658
|
}
|
|
659
659
|
});
|
|
660
660
|
},
|
|
661
|
-
getTableHeadProps(props
|
|
662
|
-
const { view = "day" } = props
|
|
661
|
+
getTableHeadProps(props = {}) {
|
|
662
|
+
const { view = "day" } = props;
|
|
663
663
|
return normalize.element({
|
|
664
664
|
...parts.tableHead.attrs,
|
|
665
665
|
"aria-hidden": true,
|
|
@@ -668,8 +668,8 @@ function connect(service, normalize) {
|
|
|
668
668
|
"data-disabled": dataAttr(disabled)
|
|
669
669
|
});
|
|
670
670
|
},
|
|
671
|
-
getTableHeaderProps(props
|
|
672
|
-
const { view = "day" } = props
|
|
671
|
+
getTableHeaderProps(props = {}) {
|
|
672
|
+
const { view = "day" } = props;
|
|
673
673
|
return normalize.element({
|
|
674
674
|
...parts.tableHeader.attrs,
|
|
675
675
|
dir: prop("dir"),
|
|
@@ -677,16 +677,16 @@ function connect(service, normalize) {
|
|
|
677
677
|
"data-disabled": dataAttr(disabled)
|
|
678
678
|
});
|
|
679
679
|
},
|
|
680
|
-
getTableBodyProps(props
|
|
681
|
-
const { view = "day" } = props
|
|
680
|
+
getTableBodyProps(props = {}) {
|
|
681
|
+
const { view = "day" } = props;
|
|
682
682
|
return normalize.element({
|
|
683
683
|
...parts.tableBody.attrs,
|
|
684
684
|
"data-view": view,
|
|
685
685
|
"data-disabled": dataAttr(disabled)
|
|
686
686
|
});
|
|
687
687
|
},
|
|
688
|
-
getTableRowProps(props
|
|
689
|
-
const { view = "day" } = props
|
|
688
|
+
getTableRowProps(props = {}) {
|
|
689
|
+
const { view = "day" } = props;
|
|
690
690
|
return normalize.element({
|
|
691
691
|
...parts.tableRow.attrs,
|
|
692
692
|
"aria-disabled": ariaAttr(disabled),
|
|
@@ -695,9 +695,9 @@ function connect(service, normalize) {
|
|
|
695
695
|
});
|
|
696
696
|
},
|
|
697
697
|
getDayTableCellState,
|
|
698
|
-
getDayTableCellProps(props
|
|
699
|
-
const { value } = props
|
|
700
|
-
const cellState = getDayTableCellState(props
|
|
698
|
+
getDayTableCellProps(props) {
|
|
699
|
+
const { value } = props;
|
|
700
|
+
const cellState = getDayTableCellState(props);
|
|
701
701
|
return normalize.element({
|
|
702
702
|
...parts.tableCell.attrs,
|
|
703
703
|
role: "gridcell",
|
|
@@ -708,9 +708,9 @@ function connect(service, normalize) {
|
|
|
708
708
|
"data-value": value.toString()
|
|
709
709
|
});
|
|
710
710
|
},
|
|
711
|
-
getDayTableCellTriggerProps(props
|
|
712
|
-
const { value } = props
|
|
713
|
-
const cellState = getDayTableCellState(props
|
|
711
|
+
getDayTableCellTriggerProps(props) {
|
|
712
|
+
const { value } = props;
|
|
713
|
+
const cellState = getDayTableCellState(props);
|
|
714
714
|
return normalize.element({
|
|
715
715
|
...parts.tableCellTrigger.attrs,
|
|
716
716
|
id: getCellTriggerId(scope, value.toString()),
|
|
@@ -759,9 +759,9 @@ function connect(service, normalize) {
|
|
|
759
759
|
});
|
|
760
760
|
},
|
|
761
761
|
getMonthTableCellState,
|
|
762
|
-
getMonthTableCellProps(props
|
|
763
|
-
const { value, columns } = props
|
|
764
|
-
const cellState = getMonthTableCellState(props
|
|
762
|
+
getMonthTableCellProps(props) {
|
|
763
|
+
const { value, columns } = props;
|
|
764
|
+
const cellState = getMonthTableCellState(props);
|
|
765
765
|
return normalize.element({
|
|
766
766
|
...parts.tableCell.attrs,
|
|
767
767
|
dir: prop("dir"),
|
|
@@ -773,9 +773,9 @@ function connect(service, normalize) {
|
|
|
773
773
|
"data-value": value
|
|
774
774
|
});
|
|
775
775
|
},
|
|
776
|
-
getMonthTableCellTriggerProps(props
|
|
777
|
-
const { value } = props
|
|
778
|
-
const cellState = getMonthTableCellState(props
|
|
776
|
+
getMonthTableCellTriggerProps(props) {
|
|
777
|
+
const { value } = props;
|
|
778
|
+
const cellState = getMonthTableCellState(props);
|
|
779
779
|
return normalize.element({
|
|
780
780
|
...parts.tableCellTrigger.attrs,
|
|
781
781
|
dir: prop("dir"),
|
|
@@ -815,9 +815,9 @@ function connect(service, normalize) {
|
|
|
815
815
|
});
|
|
816
816
|
},
|
|
817
817
|
getYearTableCellState,
|
|
818
|
-
getYearTableCellProps(props
|
|
819
|
-
const { value, columns } = props
|
|
820
|
-
const cellState = getYearTableCellState(props
|
|
818
|
+
getYearTableCellProps(props) {
|
|
819
|
+
const { value, columns } = props;
|
|
820
|
+
const cellState = getYearTableCellState(props);
|
|
821
821
|
return normalize.element({
|
|
822
822
|
...parts.tableCell.attrs,
|
|
823
823
|
dir: prop("dir"),
|
|
@@ -829,9 +829,9 @@ function connect(service, normalize) {
|
|
|
829
829
|
"data-value": value
|
|
830
830
|
});
|
|
831
831
|
},
|
|
832
|
-
getYearTableCellTriggerProps(props
|
|
833
|
-
const { value } = props
|
|
834
|
-
const cellState = getYearTableCellState(props
|
|
832
|
+
getYearTableCellTriggerProps(props) {
|
|
833
|
+
const { value } = props;
|
|
834
|
+
const cellState = getYearTableCellState(props);
|
|
835
835
|
return normalize.element({
|
|
836
836
|
...parts.tableCellTrigger.attrs,
|
|
837
837
|
dir: prop("dir"),
|
|
@@ -870,8 +870,8 @@ function connect(service, normalize) {
|
|
|
870
870
|
} : void 0
|
|
871
871
|
});
|
|
872
872
|
},
|
|
873
|
-
getNextTriggerProps(props
|
|
874
|
-
const { view = "day" } = props
|
|
873
|
+
getNextTriggerProps(props = {}) {
|
|
874
|
+
const { view = "day" } = props;
|
|
875
875
|
const isDisabled = disabled || !computed("isNextVisibleRangeValid");
|
|
876
876
|
return normalize.button({
|
|
877
877
|
...parts.nextTrigger.attrs,
|
|
@@ -890,8 +890,8 @@ function connect(service, normalize) {
|
|
|
890
890
|
}
|
|
891
891
|
});
|
|
892
892
|
},
|
|
893
|
-
getPrevTriggerProps(props
|
|
894
|
-
const { view = "day" } = props
|
|
893
|
+
getPrevTriggerProps(props = {}) {
|
|
894
|
+
const { view = "day" } = props;
|
|
895
895
|
const isDisabled = disabled || !computed("isPrevVisibleRangeValid");
|
|
896
896
|
return normalize.button({
|
|
897
897
|
...parts.prevTrigger.attrs,
|
|
@@ -944,16 +944,16 @@ function connect(service, normalize) {
|
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
946
|
},
|
|
947
|
-
getViewProps(props
|
|
948
|
-
const { view = "day" } = props
|
|
947
|
+
getViewProps(props = {}) {
|
|
948
|
+
const { view = "day" } = props;
|
|
949
949
|
return normalize.element({
|
|
950
950
|
...parts.view.attrs,
|
|
951
951
|
"data-view": view,
|
|
952
952
|
hidden: context.get("view") !== view
|
|
953
953
|
});
|
|
954
954
|
},
|
|
955
|
-
getViewTriggerProps(props
|
|
956
|
-
const { view = "day" } = props
|
|
955
|
+
getViewTriggerProps(props = {}) {
|
|
956
|
+
const { view = "day" } = props;
|
|
957
957
|
return normalize.button({
|
|
958
958
|
...parts.viewTrigger.attrs,
|
|
959
959
|
"data-view": view,
|
|
@@ -972,16 +972,16 @@ function connect(service, normalize) {
|
|
|
972
972
|
}
|
|
973
973
|
});
|
|
974
974
|
},
|
|
975
|
-
getViewControlProps(props
|
|
976
|
-
const { view = "day" } = props
|
|
975
|
+
getViewControlProps(props = {}) {
|
|
976
|
+
const { view = "day" } = props;
|
|
977
977
|
return normalize.element({
|
|
978
978
|
...parts.viewControl.attrs,
|
|
979
979
|
"data-view": view,
|
|
980
980
|
dir: prop("dir")
|
|
981
981
|
});
|
|
982
982
|
},
|
|
983
|
-
getInputProps(props
|
|
984
|
-
const { index = 0, fixOnBlur = true } = props
|
|
983
|
+
getInputProps(props = {}) {
|
|
984
|
+
const { index = 0, fixOnBlur = true } = props;
|
|
985
985
|
return normalize.input({
|
|
986
986
|
...parts.input.attrs,
|
|
987
987
|
id: getInputId(scope, index),
|
|
@@ -1021,13 +1021,13 @@ function connect(service, normalize) {
|
|
|
1021
1021
|
onKeyDown(event) {
|
|
1022
1022
|
if (event.defaultPrevented) return;
|
|
1023
1023
|
if (!interactive) return;
|
|
1024
|
-
const exec = { Enter(event
|
|
1025
|
-
if (isComposingEvent(event
|
|
1024
|
+
const exec = { Enter(event) {
|
|
1025
|
+
if (isComposingEvent(event)) return;
|
|
1026
1026
|
if (isUnavailable(focusedValue)) return;
|
|
1027
|
-
if (event
|
|
1027
|
+
if (event.currentTarget.value.trim() === "") return;
|
|
1028
1028
|
send({
|
|
1029
1029
|
type: "INPUT.ENTER",
|
|
1030
|
-
value: event
|
|
1030
|
+
value: event.currentTarget.value,
|
|
1031
1031
|
index
|
|
1032
1032
|
});
|
|
1033
1033
|
} }[event.key];
|
|
@@ -1080,8 +1080,8 @@ function connect(service, normalize) {
|
|
|
1080
1080
|
style: popperStyles.floating
|
|
1081
1081
|
});
|
|
1082
1082
|
},
|
|
1083
|
-
getPresetTriggerProps(props
|
|
1084
|
-
const value = Array.isArray(props
|
|
1083
|
+
getPresetTriggerProps(props) {
|
|
1084
|
+
const value = Array.isArray(props.value) ? props.value : getDateRangePreset(props.value, locale, timeZone);
|
|
1085
1085
|
const valueAsString = value.filter((item) => item != null).map((item) => item.toDate(timeZone).toDateString());
|
|
1086
1086
|
return normalize.button({
|
|
1087
1087
|
...parts.presetTrigger.attrs,
|
|
@@ -1118,15 +1118,15 @@ function getValueAsString(value, prop) {
|
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
1120
|
const machine = createMachine({
|
|
1121
|
-
props({ props
|
|
1122
|
-
const locale = props
|
|
1123
|
-
const timeZone = props
|
|
1124
|
-
const selectionMode = props
|
|
1125
|
-
const numOfMonths = props
|
|
1126
|
-
const defaultValue = props
|
|
1127
|
-
const value = props
|
|
1128
|
-
let focusedValue = props
|
|
1129
|
-
focusedValue = constrainValue(focusedValue, props
|
|
1121
|
+
props({ props }) {
|
|
1122
|
+
const locale = props.locale || "en-US";
|
|
1123
|
+
const timeZone = props.timeZone || "UTC";
|
|
1124
|
+
const selectionMode = props.selectionMode || "single";
|
|
1125
|
+
const numOfMonths = props.numOfMonths || 1;
|
|
1126
|
+
const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => constrainValue(date, props.min, props.max)) : void 0;
|
|
1127
|
+
const value = props.value ? sortDates(props.value).map((date) => constrainValue(date, props.min, props.max)) : void 0;
|
|
1128
|
+
let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || getTodayDate(timeZone);
|
|
1129
|
+
focusedValue = constrainValue(focusedValue, props.min, props.max);
|
|
1130
1130
|
const minView = "day";
|
|
1131
1131
|
const maxView = "year";
|
|
1132
1132
|
return {
|
|
@@ -1134,30 +1134,30 @@ const machine = createMachine({
|
|
|
1134
1134
|
numOfMonths,
|
|
1135
1135
|
timeZone,
|
|
1136
1136
|
selectionMode,
|
|
1137
|
-
defaultView: clampView(props
|
|
1137
|
+
defaultView: clampView(props.view || minView, minView, maxView),
|
|
1138
1138
|
minView,
|
|
1139
1139
|
maxView,
|
|
1140
1140
|
outsideDaySelectable: false,
|
|
1141
1141
|
closeOnSelect: true,
|
|
1142
|
-
format(date, { locale
|
|
1143
|
-
return new DateFormatter(locale
|
|
1144
|
-
timeZone
|
|
1142
|
+
format(date, { locale, timeZone }) {
|
|
1143
|
+
return new DateFormatter(locale, {
|
|
1144
|
+
timeZone,
|
|
1145
1145
|
day: "2-digit",
|
|
1146
1146
|
month: "2-digit",
|
|
1147
1147
|
year: "numeric"
|
|
1148
|
-
}).format(date.toDate(timeZone
|
|
1148
|
+
}).format(date.toDate(timeZone));
|
|
1149
1149
|
},
|
|
1150
|
-
parse(value
|
|
1151
|
-
return parseDateString(value
|
|
1150
|
+
parse(value, { locale, timeZone }) {
|
|
1151
|
+
return parseDateString(value, locale, timeZone);
|
|
1152
1152
|
},
|
|
1153
|
-
...props
|
|
1154
|
-
focusedValue: typeof props
|
|
1153
|
+
...props,
|
|
1154
|
+
focusedValue: typeof props.focusedValue === "undefined" ? void 0 : focusedValue,
|
|
1155
1155
|
defaultFocusedValue: focusedValue,
|
|
1156
1156
|
value,
|
|
1157
1157
|
defaultValue: defaultValue ?? [],
|
|
1158
1158
|
positioning: {
|
|
1159
1159
|
placement: "bottom",
|
|
1160
|
-
...props
|
|
1160
|
+
...props.positioning
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
},
|
|
@@ -2022,7 +2022,7 @@ const machine = createMachine({
|
|
|
2022
2022
|
focusInputElement({ scope }) {
|
|
2023
2023
|
raf(() => {
|
|
2024
2024
|
const inputEls = getInputEls(scope);
|
|
2025
|
-
const lastIndexWithValue = inputEls.findLastIndex((inputEl
|
|
2025
|
+
const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
|
|
2026
2026
|
const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
|
|
2027
2027
|
inputEl?.focus({ preventScroll: true });
|
|
2028
2028
|
inputEl?.setSelectionRange(inputEl.value.length, inputEl.value.length);
|
|
@@ -2112,8 +2112,8 @@ const normalizeValue = (ctx, value) => {
|
|
|
2112
2112
|
const { context, prop } = ctx;
|
|
2113
2113
|
const view = context.get("view");
|
|
2114
2114
|
let dateValue = typeof value === "number" ? context.get("focusedValue").set({ [view]: value }) : value;
|
|
2115
|
-
eachView((view
|
|
2116
|
-
if (isBelowMinView(view
|
|
2115
|
+
eachView((view) => {
|
|
2116
|
+
if (isBelowMinView(view, prop("minView"))) dateValue = dateValue.set({ [view]: view === "day" ? 1 : 0 });
|
|
2117
2117
|
});
|
|
2118
2118
|
return dateValue;
|
|
2119
2119
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_aria_hidden = require('../../aria-hidden-
|
|
4
|
-
const require_utils = require('../../utils-
|
|
5
|
-
const require_core = require('../../core-
|
|
6
|
-
require('../../interact-outside-
|
|
7
|
-
const require_dismissable = require('../../dismissable-
|
|
8
|
-
const require_focus_trap = require('../../focus-trap-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_aria_hidden = require('../../aria-hidden-CHWfuKk2.cjs');
|
|
4
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
5
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
6
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
7
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
8
|
+
const require_focus_trap = require('../../focus-trap-zaIiaoqE.cjs');
|
|
9
9
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
10
|
-
const require_remove_scroll = require('../../remove-scroll-
|
|
10
|
+
const require_remove_scroll = require('../../remove-scroll-DgJgF1C5.cjs');
|
|
11
11
|
|
|
12
12
|
//#region src/machines/dialog/dialog.anatomy.ts
|
|
13
13
|
const anatomy = require_create_anatomy.createAnatomy("dialog").parts("trigger", "backdrop", "positioner", "content", "title", "description", "closeTrigger");
|
|
@@ -124,10 +124,10 @@ function connect(service, normalize) {
|
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/machines/dialog/dialog.machine.ts
|
|
126
126
|
const machine = require_core.createMachine({
|
|
127
|
-
props({ props
|
|
128
|
-
const alertDialog = props
|
|
127
|
+
props({ props, scope }) {
|
|
128
|
+
const alertDialog = props.role === "alertdialog";
|
|
129
129
|
const initialFocusEl = alertDialog ? () => getCloseTriggerEl(scope) : void 0;
|
|
130
|
-
const modal = typeof props
|
|
130
|
+
const modal = typeof props.modal === "boolean" ? props.modal : true;
|
|
131
131
|
return {
|
|
132
132
|
role: "dialog",
|
|
133
133
|
modal,
|
|
@@ -137,7 +137,7 @@ const machine = require_core.createMachine({
|
|
|
137
137
|
closeOnEscape: true,
|
|
138
138
|
restoreFocus: true,
|
|
139
139
|
initialFocusEl,
|
|
140
|
-
...props
|
|
140
|
+
...props
|
|
141
141
|
};
|
|
142
142
|
},
|
|
143
143
|
initialState({ prop }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, 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 { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, 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 { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-B2bSyA07.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/dialog/dialog.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "content" | "positioner" | "description" | "closeTrigger" | "backdrop">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/dialog/dialog.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, 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 { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, 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 { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-CpUMMV1f.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/dialog/dialog.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "content" | "positioner" | "description" | "closeTrigger" | "backdrop">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/dialog/dialog.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|