@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
1
|
const require_chunk = require('../../chunk-CbDLau6x.cjs');
|
|
2
2
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
3
|
-
const require_dom_query = require('../../dom-query-
|
|
4
|
-
const require_utils = require('../../utils-
|
|
5
|
-
const require_core = require('../../core-
|
|
6
|
-
const require_date_utils = require('../../date-utils-
|
|
7
|
-
require('../../interact-outside-
|
|
8
|
-
const require_dismissable = require('../../dismissable-
|
|
3
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
4
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
5
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
6
|
+
const require_date_utils = require('../../date-utils-BDBOiT_6.cjs');
|
|
7
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
8
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
9
9
|
const require_live_region = require('../../live-region-2RiuzOr-.cjs');
|
|
10
|
-
const require_popper = require('../../popper-
|
|
10
|
+
const require_popper = require('../../popper-CY3ptPbm.cjs');
|
|
11
11
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
12
12
|
let _internationalized_date = require("@internationalized/date");
|
|
13
13
|
|
|
@@ -173,25 +173,25 @@ const getVisibleRangeText = require_core.memo((opts) => [
|
|
|
173
173
|
const { startValue, endValue, locale, timeZone, selectionMode } = opts;
|
|
174
174
|
if (view === "year") {
|
|
175
175
|
const years = require_date_utils.getDecadeRange(startValue.year, { strict: true });
|
|
176
|
-
const start
|
|
177
|
-
const end
|
|
176
|
+
const start = years.at(0).toString();
|
|
177
|
+
const end = years.at(-1).toString();
|
|
178
178
|
return {
|
|
179
|
-
start
|
|
180
|
-
end
|
|
181
|
-
formatted: `${start
|
|
179
|
+
start,
|
|
180
|
+
end,
|
|
181
|
+
formatted: `${start} - ${end}`
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
if (view === "month") {
|
|
185
|
-
const formatter
|
|
185
|
+
const formatter = new _internationalized_date.DateFormatter(locale, {
|
|
186
186
|
year: "numeric",
|
|
187
187
|
timeZone
|
|
188
188
|
});
|
|
189
|
-
const start
|
|
190
|
-
const end
|
|
189
|
+
const start = formatter.format(startValue.toDate(timeZone));
|
|
190
|
+
const end = formatter.format(endValue.toDate(timeZone));
|
|
191
191
|
return {
|
|
192
|
-
start
|
|
193
|
-
end
|
|
194
|
-
formatted: selectionMode === "range" ? `${start
|
|
192
|
+
start,
|
|
193
|
+
end,
|
|
194
|
+
formatted: selectionMode === "range" ? `${start} - ${end}` : start
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
const formatter = new _internationalized_date.DateFormatter(locale, {
|
|
@@ -245,8 +245,8 @@ function connect(service, normalize) {
|
|
|
245
245
|
function getMonthWeeks(from = startValue) {
|
|
246
246
|
return require_date_utils.getMonthDays(from, locale, prop("fixedWeeks") ? 6 : void 0, startOfWeek);
|
|
247
247
|
}
|
|
248
|
-
function getMonths(props
|
|
249
|
-
const { format } = props
|
|
248
|
+
function getMonths(props = {}) {
|
|
249
|
+
const { format } = props;
|
|
250
250
|
return require_date_utils.getMonthNames(locale, format).map((label, index) => {
|
|
251
251
|
const value = index + 1;
|
|
252
252
|
return {
|
|
@@ -281,13 +281,13 @@ function connect(service, normalize) {
|
|
|
281
281
|
value: (startValue ?? require_date_utils.getTodayDate(timeZone)).set({ year })
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
function getYearTableCellState(props
|
|
285
|
-
const { value, disabled
|
|
284
|
+
function getYearTableCellState(props) {
|
|
285
|
+
const { value, disabled } = props;
|
|
286
286
|
const dateValue = focusedValue.set({ year: value });
|
|
287
287
|
const isOutsideVisibleRange = !require_date_utils.getDecadeRange(startValue.year, { strict: true }).includes(value);
|
|
288
288
|
const isOutsideRange = require_utils.isValueWithinRange(value, min?.year, max?.year);
|
|
289
289
|
const cellState = {
|
|
290
|
-
focused: focusedValue.year === props
|
|
290
|
+
focused: focusedValue.year === props.value,
|
|
291
291
|
selectable: isOutsideVisibleRange || isOutsideRange,
|
|
292
292
|
outsideRange: isOutsideVisibleRange,
|
|
293
293
|
selected: !!selectedValue.find((date) => date && date.year === value),
|
|
@@ -295,30 +295,30 @@ function connect(service, normalize) {
|
|
|
295
295
|
inRange: isRangePicker && (isDateWithinRange(dateValue, selectedValue) || isDateWithinRange(dateValue, hoveredRangeValue)),
|
|
296
296
|
value: dateValue,
|
|
297
297
|
get disabled() {
|
|
298
|
-
return disabled
|
|
298
|
+
return disabled || !cellState.selectable;
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
return cellState;
|
|
302
302
|
}
|
|
303
|
-
function getMonthTableCellState(props
|
|
304
|
-
const { value, disabled
|
|
303
|
+
function getMonthTableCellState(props) {
|
|
304
|
+
const { value, disabled } = props;
|
|
305
305
|
const dateValue = focusedValue.set({ month: value });
|
|
306
306
|
const formatter = require_date_utils.getMonthFormatter(locale, timeZone);
|
|
307
307
|
const cellState = {
|
|
308
|
-
focused: focusedValue.month === props
|
|
308
|
+
focused: focusedValue.month === props.value,
|
|
309
309
|
selectable: !require_date_utils.isDateOutsideRange(dateValue, min, max),
|
|
310
310
|
selected: !!selectedValue.find((date) => date && date.month === value && date.year === focusedValue.year),
|
|
311
311
|
valueText: formatter.format(dateValue.toDate(timeZone)),
|
|
312
312
|
inRange: isRangePicker && (isDateWithinRange(dateValue, selectedValue) || isDateWithinRange(dateValue, hoveredRangeValue)),
|
|
313
313
|
value: dateValue,
|
|
314
314
|
get disabled() {
|
|
315
|
-
return disabled
|
|
315
|
+
return disabled || !cellState.selectable;
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
return cellState;
|
|
319
319
|
}
|
|
320
|
-
function getDayTableCellState(props
|
|
321
|
-
const { value, disabled
|
|
320
|
+
function getDayTableCellState(props) {
|
|
321
|
+
const { value, disabled, visibleRange = computed("visibleRange") } = props;
|
|
322
322
|
const formatter = require_date_utils.getDayFormatter(locale, timeZone);
|
|
323
323
|
const unitDuration = require_date_utils.getUnitDuration(computed("visibleDuration"));
|
|
324
324
|
const outsideDaySelectable = prop("outsideDaySelectable");
|
|
@@ -333,9 +333,9 @@ function connect(service, normalize) {
|
|
|
333
333
|
const isLastInHoveredRange = hasHoveredRange && require_date_utils.isDateEqual(value, hoveredRangeValue[1]);
|
|
334
334
|
const cellState = {
|
|
335
335
|
invalid: require_date_utils.isDateOutsideRange(value, min, max),
|
|
336
|
-
disabled: disabled
|
|
336
|
+
disabled: disabled || !outsideDaySelectable && isOutsideRange || require_date_utils.isDateOutsideRange(value, min, max),
|
|
337
337
|
selected: selectedValue.some((date) => require_date_utils.isDateEqual(value, date)),
|
|
338
|
-
unavailable: require_date_utils.isDateUnavailable(value, isDateUnavailableFn, locale, min, max) && !disabled
|
|
338
|
+
unavailable: require_date_utils.isDateUnavailable(value, isDateUnavailableFn, locale, min, max) && !disabled,
|
|
339
339
|
outsideRange: isOutsideRange,
|
|
340
340
|
today: (0, _internationalized_date.isToday)(value, timeZone),
|
|
341
341
|
weekend: (0, _internationalized_date.isWeekend)(value, locale),
|
|
@@ -358,8 +358,8 @@ function connect(service, normalize) {
|
|
|
358
358
|
};
|
|
359
359
|
return cellState;
|
|
360
360
|
}
|
|
361
|
-
function getTableId$1(props
|
|
362
|
-
const { view = "day", id } = props
|
|
361
|
+
function getTableId$1(props) {
|
|
362
|
+
const { view = "day", id } = props;
|
|
363
363
|
return [view, id].filter(Boolean).join(" ");
|
|
364
364
|
}
|
|
365
365
|
return {
|
|
@@ -439,8 +439,8 @@ function connect(service, normalize) {
|
|
|
439
439
|
focusYear,
|
|
440
440
|
getYears,
|
|
441
441
|
getMonths,
|
|
442
|
-
getYearsGrid(props
|
|
443
|
-
const { columns = 1 } = props
|
|
442
|
+
getYearsGrid(props = {}) {
|
|
443
|
+
const { columns = 1 } = props;
|
|
444
444
|
return require_utils.chunk(require_date_utils.getDecadeRange(startValue.year, { strict: true }).map((year) => ({
|
|
445
445
|
label: year.toString(),
|
|
446
446
|
value: year,
|
|
@@ -454,8 +454,8 @@ function connect(service, normalize) {
|
|
|
454
454
|
end: years.at(-1)
|
|
455
455
|
};
|
|
456
456
|
},
|
|
457
|
-
getMonthsGrid(props
|
|
458
|
-
const { columns = 1, format } = props
|
|
457
|
+
getMonthsGrid(props = {}) {
|
|
458
|
+
const { columns = 1, format } = props;
|
|
459
459
|
return require_utils.chunk(getMonths({ format }), columns);
|
|
460
460
|
},
|
|
461
461
|
format(value, opts = {
|
|
@@ -493,8 +493,8 @@ function connect(service, normalize) {
|
|
|
493
493
|
"data-empty": require_dom_query.dataAttr(empty)
|
|
494
494
|
});
|
|
495
495
|
},
|
|
496
|
-
getLabelProps(props
|
|
497
|
-
const { index = 0 } = props
|
|
496
|
+
getLabelProps(props = {}) {
|
|
497
|
+
const { index = 0 } = props;
|
|
498
498
|
return normalize.label({
|
|
499
499
|
...parts.label.attrs,
|
|
500
500
|
id: getLabelId(scope, index),
|
|
@@ -536,9 +536,9 @@ function connect(service, normalize) {
|
|
|
536
536
|
"aria-label": translations.content
|
|
537
537
|
});
|
|
538
538
|
},
|
|
539
|
-
getTableProps(props
|
|
540
|
-
const { view = "day", columns = view === "day" ? 7 : 4 } = props
|
|
541
|
-
const uid = getTableId$1(props
|
|
539
|
+
getTableProps(props = {}) {
|
|
540
|
+
const { view = "day", columns = view === "day" ? 7 : 4 } = props;
|
|
541
|
+
const uid = getTableId$1(props);
|
|
542
542
|
return normalize.element({
|
|
543
543
|
...parts.table.attrs,
|
|
544
544
|
role: "grid",
|
|
@@ -601,19 +601,19 @@ function connect(service, normalize) {
|
|
|
601
601
|
focus: true
|
|
602
602
|
});
|
|
603
603
|
},
|
|
604
|
-
PageUp(event
|
|
604
|
+
PageUp(event) {
|
|
605
605
|
send({
|
|
606
606
|
type: "TABLE.PAGE_UP",
|
|
607
|
-
larger: event
|
|
607
|
+
larger: event.shiftKey,
|
|
608
608
|
view,
|
|
609
609
|
columns,
|
|
610
610
|
focus: true
|
|
611
611
|
});
|
|
612
612
|
},
|
|
613
|
-
PageDown(event
|
|
613
|
+
PageDown(event) {
|
|
614
614
|
send({
|
|
615
615
|
type: "TABLE.PAGE_DOWN",
|
|
616
|
-
larger: event
|
|
616
|
+
larger: event.shiftKey,
|
|
617
617
|
view,
|
|
618
618
|
columns,
|
|
619
619
|
focus: true
|
|
@@ -659,8 +659,8 @@ function connect(service, normalize) {
|
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
},
|
|
662
|
-
getTableHeadProps(props
|
|
663
|
-
const { view = "day" } = props
|
|
662
|
+
getTableHeadProps(props = {}) {
|
|
663
|
+
const { view = "day" } = props;
|
|
664
664
|
return normalize.element({
|
|
665
665
|
...parts.tableHead.attrs,
|
|
666
666
|
"aria-hidden": true,
|
|
@@ -669,8 +669,8 @@ function connect(service, normalize) {
|
|
|
669
669
|
"data-disabled": require_dom_query.dataAttr(disabled)
|
|
670
670
|
});
|
|
671
671
|
},
|
|
672
|
-
getTableHeaderProps(props
|
|
673
|
-
const { view = "day" } = props
|
|
672
|
+
getTableHeaderProps(props = {}) {
|
|
673
|
+
const { view = "day" } = props;
|
|
674
674
|
return normalize.element({
|
|
675
675
|
...parts.tableHeader.attrs,
|
|
676
676
|
dir: prop("dir"),
|
|
@@ -678,16 +678,16 @@ function connect(service, normalize) {
|
|
|
678
678
|
"data-disabled": require_dom_query.dataAttr(disabled)
|
|
679
679
|
});
|
|
680
680
|
},
|
|
681
|
-
getTableBodyProps(props
|
|
682
|
-
const { view = "day" } = props
|
|
681
|
+
getTableBodyProps(props = {}) {
|
|
682
|
+
const { view = "day" } = props;
|
|
683
683
|
return normalize.element({
|
|
684
684
|
...parts.tableBody.attrs,
|
|
685
685
|
"data-view": view,
|
|
686
686
|
"data-disabled": require_dom_query.dataAttr(disabled)
|
|
687
687
|
});
|
|
688
688
|
},
|
|
689
|
-
getTableRowProps(props
|
|
690
|
-
const { view = "day" } = props
|
|
689
|
+
getTableRowProps(props = {}) {
|
|
690
|
+
const { view = "day" } = props;
|
|
691
691
|
return normalize.element({
|
|
692
692
|
...parts.tableRow.attrs,
|
|
693
693
|
"aria-disabled": require_dom_query.ariaAttr(disabled),
|
|
@@ -696,9 +696,9 @@ function connect(service, normalize) {
|
|
|
696
696
|
});
|
|
697
697
|
},
|
|
698
698
|
getDayTableCellState,
|
|
699
|
-
getDayTableCellProps(props
|
|
700
|
-
const { value } = props
|
|
701
|
-
const cellState = getDayTableCellState(props
|
|
699
|
+
getDayTableCellProps(props) {
|
|
700
|
+
const { value } = props;
|
|
701
|
+
const cellState = getDayTableCellState(props);
|
|
702
702
|
return normalize.element({
|
|
703
703
|
...parts.tableCell.attrs,
|
|
704
704
|
role: "gridcell",
|
|
@@ -709,9 +709,9 @@ function connect(service, normalize) {
|
|
|
709
709
|
"data-value": value.toString()
|
|
710
710
|
});
|
|
711
711
|
},
|
|
712
|
-
getDayTableCellTriggerProps(props
|
|
713
|
-
const { value } = props
|
|
714
|
-
const cellState = getDayTableCellState(props
|
|
712
|
+
getDayTableCellTriggerProps(props) {
|
|
713
|
+
const { value } = props;
|
|
714
|
+
const cellState = getDayTableCellState(props);
|
|
715
715
|
return normalize.element({
|
|
716
716
|
...parts.tableCellTrigger.attrs,
|
|
717
717
|
id: getCellTriggerId(scope, value.toString()),
|
|
@@ -760,9 +760,9 @@ function connect(service, normalize) {
|
|
|
760
760
|
});
|
|
761
761
|
},
|
|
762
762
|
getMonthTableCellState,
|
|
763
|
-
getMonthTableCellProps(props
|
|
764
|
-
const { value, columns } = props
|
|
765
|
-
const cellState = getMonthTableCellState(props
|
|
763
|
+
getMonthTableCellProps(props) {
|
|
764
|
+
const { value, columns } = props;
|
|
765
|
+
const cellState = getMonthTableCellState(props);
|
|
766
766
|
return normalize.element({
|
|
767
767
|
...parts.tableCell.attrs,
|
|
768
768
|
dir: prop("dir"),
|
|
@@ -774,9 +774,9 @@ function connect(service, normalize) {
|
|
|
774
774
|
"data-value": value
|
|
775
775
|
});
|
|
776
776
|
},
|
|
777
|
-
getMonthTableCellTriggerProps(props
|
|
778
|
-
const { value } = props
|
|
779
|
-
const cellState = getMonthTableCellState(props
|
|
777
|
+
getMonthTableCellTriggerProps(props) {
|
|
778
|
+
const { value } = props;
|
|
779
|
+
const cellState = getMonthTableCellState(props);
|
|
780
780
|
return normalize.element({
|
|
781
781
|
...parts.tableCellTrigger.attrs,
|
|
782
782
|
dir: prop("dir"),
|
|
@@ -816,9 +816,9 @@ function connect(service, normalize) {
|
|
|
816
816
|
});
|
|
817
817
|
},
|
|
818
818
|
getYearTableCellState,
|
|
819
|
-
getYearTableCellProps(props
|
|
820
|
-
const { value, columns } = props
|
|
821
|
-
const cellState = getYearTableCellState(props
|
|
819
|
+
getYearTableCellProps(props) {
|
|
820
|
+
const { value, columns } = props;
|
|
821
|
+
const cellState = getYearTableCellState(props);
|
|
822
822
|
return normalize.element({
|
|
823
823
|
...parts.tableCell.attrs,
|
|
824
824
|
dir: prop("dir"),
|
|
@@ -830,9 +830,9 @@ function connect(service, normalize) {
|
|
|
830
830
|
"data-value": value
|
|
831
831
|
});
|
|
832
832
|
},
|
|
833
|
-
getYearTableCellTriggerProps(props
|
|
834
|
-
const { value } = props
|
|
835
|
-
const cellState = getYearTableCellState(props
|
|
833
|
+
getYearTableCellTriggerProps(props) {
|
|
834
|
+
const { value } = props;
|
|
835
|
+
const cellState = getYearTableCellState(props);
|
|
836
836
|
return normalize.element({
|
|
837
837
|
...parts.tableCellTrigger.attrs,
|
|
838
838
|
dir: prop("dir"),
|
|
@@ -871,8 +871,8 @@ function connect(service, normalize) {
|
|
|
871
871
|
} : void 0
|
|
872
872
|
});
|
|
873
873
|
},
|
|
874
|
-
getNextTriggerProps(props
|
|
875
|
-
const { view = "day" } = props
|
|
874
|
+
getNextTriggerProps(props = {}) {
|
|
875
|
+
const { view = "day" } = props;
|
|
876
876
|
const isDisabled = disabled || !computed("isNextVisibleRangeValid");
|
|
877
877
|
return normalize.button({
|
|
878
878
|
...parts.nextTrigger.attrs,
|
|
@@ -891,8 +891,8 @@ function connect(service, normalize) {
|
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
},
|
|
894
|
-
getPrevTriggerProps(props
|
|
895
|
-
const { view = "day" } = props
|
|
894
|
+
getPrevTriggerProps(props = {}) {
|
|
895
|
+
const { view = "day" } = props;
|
|
896
896
|
const isDisabled = disabled || !computed("isPrevVisibleRangeValid");
|
|
897
897
|
return normalize.button({
|
|
898
898
|
...parts.prevTrigger.attrs,
|
|
@@ -945,16 +945,16 @@ function connect(service, normalize) {
|
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
},
|
|
948
|
-
getViewProps(props
|
|
949
|
-
const { view = "day" } = props
|
|
948
|
+
getViewProps(props = {}) {
|
|
949
|
+
const { view = "day" } = props;
|
|
950
950
|
return normalize.element({
|
|
951
951
|
...parts.view.attrs,
|
|
952
952
|
"data-view": view,
|
|
953
953
|
hidden: context.get("view") !== view
|
|
954
954
|
});
|
|
955
955
|
},
|
|
956
|
-
getViewTriggerProps(props
|
|
957
|
-
const { view = "day" } = props
|
|
956
|
+
getViewTriggerProps(props = {}) {
|
|
957
|
+
const { view = "day" } = props;
|
|
958
958
|
return normalize.button({
|
|
959
959
|
...parts.viewTrigger.attrs,
|
|
960
960
|
"data-view": view,
|
|
@@ -973,16 +973,16 @@ function connect(service, normalize) {
|
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
},
|
|
976
|
-
getViewControlProps(props
|
|
977
|
-
const { view = "day" } = props
|
|
976
|
+
getViewControlProps(props = {}) {
|
|
977
|
+
const { view = "day" } = props;
|
|
978
978
|
return normalize.element({
|
|
979
979
|
...parts.viewControl.attrs,
|
|
980
980
|
"data-view": view,
|
|
981
981
|
dir: prop("dir")
|
|
982
982
|
});
|
|
983
983
|
},
|
|
984
|
-
getInputProps(props
|
|
985
|
-
const { index = 0, fixOnBlur = true } = props
|
|
984
|
+
getInputProps(props = {}) {
|
|
985
|
+
const { index = 0, fixOnBlur = true } = props;
|
|
986
986
|
return normalize.input({
|
|
987
987
|
...parts.input.attrs,
|
|
988
988
|
id: getInputId(scope, index),
|
|
@@ -1022,13 +1022,13 @@ function connect(service, normalize) {
|
|
|
1022
1022
|
onKeyDown(event) {
|
|
1023
1023
|
if (event.defaultPrevented) return;
|
|
1024
1024
|
if (!interactive) return;
|
|
1025
|
-
const exec = { Enter(event
|
|
1026
|
-
if (require_dom_query.isComposingEvent(event
|
|
1025
|
+
const exec = { Enter(event) {
|
|
1026
|
+
if (require_dom_query.isComposingEvent(event)) return;
|
|
1027
1027
|
if (isUnavailable(focusedValue)) return;
|
|
1028
|
-
if (event
|
|
1028
|
+
if (event.currentTarget.value.trim() === "") return;
|
|
1029
1029
|
send({
|
|
1030
1030
|
type: "INPUT.ENTER",
|
|
1031
|
-
value: event
|
|
1031
|
+
value: event.currentTarget.value,
|
|
1032
1032
|
index
|
|
1033
1033
|
});
|
|
1034
1034
|
} }[event.key];
|
|
@@ -1081,8 +1081,8 @@ function connect(service, normalize) {
|
|
|
1081
1081
|
style: popperStyles.floating
|
|
1082
1082
|
});
|
|
1083
1083
|
},
|
|
1084
|
-
getPresetTriggerProps(props
|
|
1085
|
-
const value = Array.isArray(props
|
|
1084
|
+
getPresetTriggerProps(props) {
|
|
1085
|
+
const value = Array.isArray(props.value) ? props.value : require_date_utils.getDateRangePreset(props.value, locale, timeZone);
|
|
1086
1086
|
const valueAsString = value.filter((item) => item != null).map((item) => item.toDate(timeZone).toDateString());
|
|
1087
1087
|
return normalize.button({
|
|
1088
1088
|
...parts.presetTrigger.attrs,
|
|
@@ -1119,15 +1119,15 @@ function getValueAsString(value, prop) {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
1121
|
const machine = require_core.createMachine({
|
|
1122
|
-
props({ props
|
|
1123
|
-
const locale = props
|
|
1124
|
-
const timeZone = props
|
|
1125
|
-
const selectionMode = props
|
|
1126
|
-
const numOfMonths = props
|
|
1127
|
-
const defaultValue = props
|
|
1128
|
-
const value = props
|
|
1129
|
-
let focusedValue = props
|
|
1130
|
-
focusedValue = require_date_utils.constrainValue(focusedValue, props
|
|
1122
|
+
props({ props }) {
|
|
1123
|
+
const locale = props.locale || "en-US";
|
|
1124
|
+
const timeZone = props.timeZone || "UTC";
|
|
1125
|
+
const selectionMode = props.selectionMode || "single";
|
|
1126
|
+
const numOfMonths = props.numOfMonths || 1;
|
|
1127
|
+
const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => require_date_utils.constrainValue(date, props.min, props.max)) : void 0;
|
|
1128
|
+
const value = props.value ? sortDates(props.value).map((date) => require_date_utils.constrainValue(date, props.min, props.max)) : void 0;
|
|
1129
|
+
let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || require_date_utils.getTodayDate(timeZone);
|
|
1130
|
+
focusedValue = require_date_utils.constrainValue(focusedValue, props.min, props.max);
|
|
1131
1131
|
const minView = "day";
|
|
1132
1132
|
const maxView = "year";
|
|
1133
1133
|
return {
|
|
@@ -1135,30 +1135,30 @@ const machine = require_core.createMachine({
|
|
|
1135
1135
|
numOfMonths,
|
|
1136
1136
|
timeZone,
|
|
1137
1137
|
selectionMode,
|
|
1138
|
-
defaultView: clampView(props
|
|
1138
|
+
defaultView: clampView(props.view || minView, minView, maxView),
|
|
1139
1139
|
minView,
|
|
1140
1140
|
maxView,
|
|
1141
1141
|
outsideDaySelectable: false,
|
|
1142
1142
|
closeOnSelect: true,
|
|
1143
|
-
format(date, { locale
|
|
1144
|
-
return new _internationalized_date.DateFormatter(locale
|
|
1145
|
-
timeZone
|
|
1143
|
+
format(date, { locale, timeZone }) {
|
|
1144
|
+
return new _internationalized_date.DateFormatter(locale, {
|
|
1145
|
+
timeZone,
|
|
1146
1146
|
day: "2-digit",
|
|
1147
1147
|
month: "2-digit",
|
|
1148
1148
|
year: "numeric"
|
|
1149
|
-
}).format(date.toDate(timeZone
|
|
1149
|
+
}).format(date.toDate(timeZone));
|
|
1150
1150
|
},
|
|
1151
|
-
parse(value
|
|
1152
|
-
return require_date_utils.parseDateString(value
|
|
1151
|
+
parse(value, { locale, timeZone }) {
|
|
1152
|
+
return require_date_utils.parseDateString(value, locale, timeZone);
|
|
1153
1153
|
},
|
|
1154
|
-
...props
|
|
1155
|
-
focusedValue: typeof props
|
|
1154
|
+
...props,
|
|
1155
|
+
focusedValue: typeof props.focusedValue === "undefined" ? void 0 : focusedValue,
|
|
1156
1156
|
defaultFocusedValue: focusedValue,
|
|
1157
1157
|
value,
|
|
1158
1158
|
defaultValue: defaultValue ?? [],
|
|
1159
1159
|
positioning: {
|
|
1160
1160
|
placement: "bottom",
|
|
1161
|
-
...props
|
|
1161
|
+
...props.positioning
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
1164
|
},
|
|
@@ -2023,7 +2023,7 @@ const machine = require_core.createMachine({
|
|
|
2023
2023
|
focusInputElement({ scope }) {
|
|
2024
2024
|
require_dom_query.raf(() => {
|
|
2025
2025
|
const inputEls = getInputEls(scope);
|
|
2026
|
-
const lastIndexWithValue = inputEls.findLastIndex((inputEl
|
|
2026
|
+
const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
|
|
2027
2027
|
const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
|
|
2028
2028
|
inputEl?.focus({ preventScroll: true });
|
|
2029
2029
|
inputEl?.setSelectionRange(inputEl.value.length, inputEl.value.length);
|
|
@@ -2113,8 +2113,8 @@ const normalizeValue = (ctx, value) => {
|
|
|
2113
2113
|
const { context, prop } = ctx;
|
|
2114
2114
|
const view = context.get("view");
|
|
2115
2115
|
let dateValue = typeof value === "number" ? context.get("focusedValue").set({ [view]: value }) : value;
|
|
2116
|
-
eachView((view
|
|
2117
|
-
if (isBelowMinView(view
|
|
2116
|
+
eachView((view) => {
|
|
2117
|
+
if (isBelowMinView(view, prop("minView"))) dateValue = dateValue.set({ [view]: view === "day" ? 1 : 0 });
|
|
2118
2118
|
});
|
|
2119
2119
|
return dateValue;
|
|
2120
2120
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
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, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { a as DateRangePreset } from "../../types-
|
|
5
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
6
|
-
import { t as LiveRegion } from "../../index-
|
|
7
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
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, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
|
+
import { a as DateRangePreset } from "../../types-DTZZ5wsp.cjs";
|
|
5
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
|
|
6
|
+
import { t as LiveRegion } from "../../index-B2rsdD3v.cjs";
|
|
7
|
+
import { c as Placement, d as PositioningOptions } from "../../types-B--gFZVP.cjs";
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, DateValue, DateValue as DateValue$1, ZonedDateTime } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/date-picker/date-picker.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "table" | "view" | "trigger" | "content" | "positioner" | "prevTrigger" | "nextTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/date-picker/date-picker.types.d.ts
|
|
14
14
|
type DateView = "day" | "month" | "year";
|
|
@@ -1,14 +1,14 @@
|
|
|
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, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { X as DateRangePreset } from "../../index-
|
|
5
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
6
|
-
import { t as LiveRegion } from "../../index-
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
|
+
import { X as DateRangePreset } from "../../index-DLbWwJUT.mjs";
|
|
5
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
|
|
6
|
+
import { t as LiveRegion } from "../../index-DIJJrhP_.mjs";
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-DJ1MHM3z.mjs";
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, DateValue, DateValue as DateValue$1, ZonedDateTime } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/date-picker/date-picker.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "table" | "view" | "trigger" | "content" | "positioner" | "prevTrigger" | "nextTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/date-picker/date-picker.types.d.ts
|
|
14
14
|
type DateView = "day" | "month" | "year";
|