@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,10 +1,10 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, R as navigate, W as raf, Zt as contains, a as visuallyHiddenStyle, ct as addDomEvent, et as getTabbables, in as getWindow, wt as isSelfTarget, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { H as toPx, W as callAll, n as ensureProps, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { o as setup } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
7
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { C as queryAll, R as navigate, W as raf, Zt as contains, a as visuallyHiddenStyle, ct as addDomEvent, et as getTabbables, in as getWindow, wt as isSelfTarget, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { H as toPx, W as callAll, n as ensureProps, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { o as setup } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import "../../interact-outside-CRmkKF6k.mjs";
|
|
6
|
+
import { n as trackDismissableElement } from "../../dismissable-BlZazbp3.mjs";
|
|
7
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.ts
|
|
10
10
|
const anatomy = createAnatomy("navigation-menu").parts("root", "viewportPositioner", "viewport", "trigger", "content", "list", "item", "link", "indicator", "itemIndicator", "arrow");
|
|
@@ -122,18 +122,18 @@ function connect(service, normalize) {
|
|
|
122
122
|
const open = Boolean(value);
|
|
123
123
|
const isViewportRendered = context.get("isViewportRendered");
|
|
124
124
|
const preventTransition = value && !previousValue;
|
|
125
|
-
function getItemState(props
|
|
126
|
-
const selected = value === props
|
|
127
|
-
const wasSelected = !value && previousValue === props
|
|
125
|
+
function getItemState(props) {
|
|
126
|
+
const selected = value === props.value;
|
|
127
|
+
const wasSelected = !value && previousValue === props.value;
|
|
128
128
|
return {
|
|
129
|
-
itemId: getItemId(scope, props
|
|
130
|
-
triggerId: getTriggerId(scope, props
|
|
131
|
-
triggerProxyId: getTriggerProxyId(scope, props
|
|
132
|
-
contentId: getContentId(scope, props
|
|
129
|
+
itemId: getItemId(scope, props.value),
|
|
130
|
+
triggerId: getTriggerId(scope, props.value),
|
|
131
|
+
triggerProxyId: getTriggerProxyId(scope, props.value),
|
|
132
|
+
contentId: getContentId(scope, props.value),
|
|
133
133
|
selected,
|
|
134
134
|
wasSelected,
|
|
135
135
|
open: selected || wasSelected,
|
|
136
|
-
disabled: !!props
|
|
136
|
+
disabled: !!props.disabled
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
return {
|
|
@@ -144,10 +144,10 @@ function connect(service, normalize) {
|
|
|
144
144
|
getViewportNode() {
|
|
145
145
|
return getViewportEl(scope);
|
|
146
146
|
},
|
|
147
|
-
setValue(value
|
|
147
|
+
setValue(value) {
|
|
148
148
|
send({
|
|
149
149
|
type: "VALUE.SET",
|
|
150
|
-
value
|
|
150
|
+
value
|
|
151
151
|
});
|
|
152
152
|
},
|
|
153
153
|
reposition() {
|
|
@@ -181,13 +181,13 @@ function connect(service, normalize) {
|
|
|
181
181
|
style: { position: "relative" }
|
|
182
182
|
});
|
|
183
183
|
},
|
|
184
|
-
getItemProps(props
|
|
185
|
-
const itemState = getItemState(props
|
|
184
|
+
getItemProps(props) {
|
|
185
|
+
const itemState = getItemState(props);
|
|
186
186
|
return normalize.element({
|
|
187
187
|
...parts.item.attrs,
|
|
188
188
|
id: itemState.itemId,
|
|
189
189
|
dir: prop("dir"),
|
|
190
|
-
"data-value": props
|
|
190
|
+
"data-value": props.value,
|
|
191
191
|
"data-state": itemState.open ? "open" : "closed",
|
|
192
192
|
"data-orientation": prop("orientation"),
|
|
193
193
|
"data-disabled": dataAttr(itemState.disabled),
|
|
@@ -201,7 +201,7 @@ function connect(service, normalize) {
|
|
|
201
201
|
case "End":
|
|
202
202
|
send({
|
|
203
203
|
type: "ITEM.NAVIGATE",
|
|
204
|
-
value: props
|
|
204
|
+
value: props.value,
|
|
205
205
|
key: event.key
|
|
206
206
|
});
|
|
207
207
|
event.preventDefault();
|
|
@@ -234,16 +234,16 @@ function connect(service, normalize) {
|
|
|
234
234
|
"data-orientation": prop("orientation")
|
|
235
235
|
});
|
|
236
236
|
},
|
|
237
|
-
getTriggerProps(props
|
|
238
|
-
const itemState = getItemState(props
|
|
237
|
+
getTriggerProps(props) {
|
|
238
|
+
const itemState = getItemState(props);
|
|
239
239
|
return normalize.button({
|
|
240
240
|
...parts.trigger.attrs,
|
|
241
241
|
id: itemState.triggerId,
|
|
242
242
|
"data-uid": prop("id"),
|
|
243
|
-
"data-trigger-proxy-id": getTriggerProxyId(scope, props
|
|
243
|
+
"data-trigger-proxy-id": getTriggerProxyId(scope, props.value),
|
|
244
244
|
dir: prop("dir"),
|
|
245
245
|
disabled: itemState.disabled,
|
|
246
|
-
"data-value": props
|
|
246
|
+
"data-value": props.value,
|
|
247
247
|
"data-state": itemState.selected ? "open" : "closed",
|
|
248
248
|
"data-disabled": dataAttr(itemState.disabled),
|
|
249
249
|
"aria-controls": itemState.contentId,
|
|
@@ -254,7 +254,7 @@ function connect(service, normalize) {
|
|
|
254
254
|
if (itemState.disabled) return;
|
|
255
255
|
send({
|
|
256
256
|
type: "TRIGGER.POINTERENTER",
|
|
257
|
-
value: props
|
|
257
|
+
value: props.value
|
|
258
258
|
});
|
|
259
259
|
},
|
|
260
260
|
onPointerLeave(event) {
|
|
@@ -263,14 +263,14 @@ function connect(service, normalize) {
|
|
|
263
263
|
if (itemState.disabled) return;
|
|
264
264
|
send({
|
|
265
265
|
type: "TRIGGER.POINTERLEAVE",
|
|
266
|
-
value: props
|
|
266
|
+
value: props.value
|
|
267
267
|
});
|
|
268
268
|
},
|
|
269
269
|
onClick() {
|
|
270
270
|
if (prop("disableClickTrigger")) return;
|
|
271
271
|
send({
|
|
272
272
|
type: "TRIGGER.CLICK",
|
|
273
|
-
value: props
|
|
273
|
+
value: props.value
|
|
274
274
|
});
|
|
275
275
|
},
|
|
276
276
|
onKeyDown(event) {
|
|
@@ -303,8 +303,8 @@ function connect(service, normalize) {
|
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
},
|
|
306
|
-
getTriggerProxyProps(props
|
|
307
|
-
const itemState = getItemState(props
|
|
306
|
+
getTriggerProxyProps(props) {
|
|
307
|
+
const itemState = getItemState(props);
|
|
308
308
|
return normalize.element({
|
|
309
309
|
"aria-hidden": true,
|
|
310
310
|
tabIndex: 0,
|
|
@@ -314,10 +314,10 @@ function connect(service, normalize) {
|
|
|
314
314
|
hidden: !itemState.selected,
|
|
315
315
|
style: visuallyHiddenStyle,
|
|
316
316
|
onFocus(event) {
|
|
317
|
-
const contentEl = getContentEl(scope, props
|
|
317
|
+
const contentEl = getContentEl(scope, props.value);
|
|
318
318
|
if (!contentEl) return;
|
|
319
319
|
const prevFocusedEl = event.relatedTarget;
|
|
320
|
-
const wasTriggerFocused = prevFocusedEl === getTriggerEl(scope, props
|
|
320
|
+
const wasTriggerFocused = prevFocusedEl === getTriggerEl(scope, props.value);
|
|
321
321
|
const wasFocusFromContent = contains(contentEl, prevFocusedEl);
|
|
322
322
|
if (wasTriggerFocused || !wasFocusFromContent) send({
|
|
323
323
|
type: "CONTENT.FOCUS",
|
|
@@ -326,23 +326,23 @@ function connect(service, normalize) {
|
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
},
|
|
329
|
-
getViewportProxyProps(props
|
|
330
|
-
if (!getItemState(props
|
|
331
|
-
return normalize.element({ "aria-owns": getContentId(scope, props
|
|
329
|
+
getViewportProxyProps(props) {
|
|
330
|
+
if (!getItemState(props).selected || !isViewportRendered) return { hidden: true };
|
|
331
|
+
return normalize.element({ "aria-owns": getContentId(scope, props.value) });
|
|
332
332
|
},
|
|
333
|
-
getLinkProps(props
|
|
334
|
-
const { closeOnClick = true } = props
|
|
333
|
+
getLinkProps(props) {
|
|
334
|
+
const { closeOnClick = true } = props;
|
|
335
335
|
return normalize.element({
|
|
336
336
|
...parts.link.attrs,
|
|
337
337
|
dir: prop("dir"),
|
|
338
|
-
"data-value": props
|
|
339
|
-
"data-current": dataAttr(props
|
|
340
|
-
"aria-current": props
|
|
341
|
-
"data-ownedby": getContentId(scope, props
|
|
338
|
+
"data-value": props.value,
|
|
339
|
+
"data-current": dataAttr(props.current),
|
|
340
|
+
"aria-current": props.current ? "page" : void 0,
|
|
341
|
+
"data-ownedby": getContentId(scope, props.value),
|
|
342
342
|
onClick(event) {
|
|
343
343
|
const target = event.currentTarget;
|
|
344
344
|
const win = getWindow(target);
|
|
345
|
-
const onSelect = props
|
|
345
|
+
const onSelect = props.onSelect;
|
|
346
346
|
target.addEventListener("link.select", onSelect, { once: true });
|
|
347
347
|
const linkSelectEvent = new win.CustomEvent("link.select", {
|
|
348
348
|
bubbles: true,
|
|
@@ -354,7 +354,7 @@ function connect(service, normalize) {
|
|
|
354
354
|
},
|
|
355
355
|
onKeyDown(event) {
|
|
356
356
|
const currentElement = event.currentTarget;
|
|
357
|
-
const nextElement = navigate(currentElement.closest("[data-scope=\"navigation-menu\"][data-part=\"content\"]") ? getLinkEls(scope, props
|
|
357
|
+
const nextElement = navigate(currentElement.closest("[data-scope=\"navigation-menu\"][data-part=\"content\"]") ? getLinkEls(scope, props.value) : getElements(scope), currentElement, {
|
|
358
358
|
key: event.key,
|
|
359
359
|
orientation: prop("orientation"),
|
|
360
360
|
dir: prop("dir"),
|
|
@@ -368,10 +368,10 @@ function connect(service, normalize) {
|
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
370
|
},
|
|
371
|
-
getContentProps(props
|
|
372
|
-
const itemState = getItemState(props
|
|
371
|
+
getContentProps(props) {
|
|
372
|
+
const itemState = getItemState(props);
|
|
373
373
|
const currentValue = context.get("value") || context.get("previousValue");
|
|
374
|
-
const selected = isViewportRendered ? currentValue === props
|
|
374
|
+
const selected = isViewportRendered ? currentValue === props.value : itemState.selected;
|
|
375
375
|
return normalize.element({
|
|
376
376
|
...parts.content.attrs,
|
|
377
377
|
id: itemState.contentId,
|
|
@@ -381,19 +381,19 @@ function connect(service, normalize) {
|
|
|
381
381
|
"data-uid": prop("id"),
|
|
382
382
|
"data-state": selected ? "open" : "closed",
|
|
383
383
|
"data-orientation": prop("orientation"),
|
|
384
|
-
"data-value": props
|
|
384
|
+
"data-value": props.value,
|
|
385
385
|
onPointerEnter(event) {
|
|
386
386
|
if (event.pointerType !== "mouse") return;
|
|
387
387
|
send({
|
|
388
388
|
type: "CONTENT.POINTERENTER",
|
|
389
|
-
value: props
|
|
389
|
+
value: props.value
|
|
390
390
|
});
|
|
391
391
|
},
|
|
392
392
|
onPointerLeave(event) {
|
|
393
393
|
if (event.pointerType !== "mouse") return;
|
|
394
394
|
send({
|
|
395
395
|
type: "CONTENT.POINTERLEAVE",
|
|
396
|
-
value: props
|
|
396
|
+
value: props.value
|
|
397
397
|
});
|
|
398
398
|
},
|
|
399
399
|
onKeyDown(event) {
|
|
@@ -408,7 +408,7 @@ function connect(service, normalize) {
|
|
|
408
408
|
const nextCandidates = event.shiftKey ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);
|
|
409
409
|
if (focusFirst(scope, nextCandidates)) event.preventDefault();
|
|
410
410
|
else {
|
|
411
|
-
getTriggerProxyEl(scope, props
|
|
411
|
+
getTriggerProxyEl(scope, props.value)?.focus();
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -426,8 +426,8 @@ function connect(service, normalize) {
|
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
},
|
|
429
|
-
getViewportPositionerProps(props
|
|
430
|
-
const { align = "center" } = props
|
|
429
|
+
getViewportPositionerProps(props = {}) {
|
|
430
|
+
const { align = "center" } = props;
|
|
431
431
|
return normalize.element({
|
|
432
432
|
...parts.viewportPositioner.attrs,
|
|
433
433
|
dir: prop("dir"),
|
|
@@ -435,20 +435,20 @@ function connect(service, normalize) {
|
|
|
435
435
|
"data-align": align
|
|
436
436
|
});
|
|
437
437
|
},
|
|
438
|
-
getViewportProps(props
|
|
439
|
-
const { align = "center" } = props
|
|
440
|
-
const open
|
|
438
|
+
getViewportProps(props = {}) {
|
|
439
|
+
const { align = "center" } = props;
|
|
440
|
+
const open = Boolean(value);
|
|
441
441
|
return normalize.element({
|
|
442
442
|
...parts.viewport.attrs,
|
|
443
443
|
id: getViewportId(scope),
|
|
444
444
|
dir: prop("dir"),
|
|
445
|
-
hidden: !open
|
|
446
|
-
"data-state": open
|
|
445
|
+
hidden: !open,
|
|
446
|
+
"data-state": open ? "open" : "closed",
|
|
447
447
|
"data-orientation": prop("orientation"),
|
|
448
448
|
"data-align": align,
|
|
449
449
|
style: {
|
|
450
450
|
transition: preventTransition ? "none" : void 0,
|
|
451
|
-
pointerEvents: !open
|
|
451
|
+
pointerEvents: !open ? "none" : void 0,
|
|
452
452
|
"--viewport-width": toPx(viewportSize?.width),
|
|
453
453
|
"--viewport-height": toPx(viewportSize?.height),
|
|
454
454
|
"--viewport-x": toPx(viewportPosition?.x),
|
|
@@ -465,8 +465,8 @@ function connect(service, normalize) {
|
|
|
465
465
|
});
|
|
466
466
|
},
|
|
467
467
|
getItemState,
|
|
468
|
-
getItemIndicatorProps(props
|
|
469
|
-
const itemState = getItemState(props
|
|
468
|
+
getItemIndicatorProps(props) {
|
|
469
|
+
const itemState = getItemState(props);
|
|
470
470
|
return normalize.element({
|
|
471
471
|
...parts.itemIndicator.attrs,
|
|
472
472
|
"aria-hidden": true,
|
|
@@ -474,7 +474,7 @@ function connect(service, normalize) {
|
|
|
474
474
|
hidden: !itemState.selected,
|
|
475
475
|
"data-state": itemState.selected ? "open" : "closed",
|
|
476
476
|
"data-orientation": prop("orientation"),
|
|
477
|
-
"data-value": props
|
|
477
|
+
"data-value": props.value
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
};
|
|
@@ -524,15 +524,15 @@ function clearAllOpenTimeouts(refs) {
|
|
|
524
524
|
//#region src/machines/navigation-menu/navigation-menu.machine.ts
|
|
525
525
|
const { createMachine } = setup();
|
|
526
526
|
const machine = createMachine({
|
|
527
|
-
props({ props
|
|
528
|
-
ensureProps(props
|
|
527
|
+
props({ props }) {
|
|
528
|
+
ensureProps(props, ["id"]);
|
|
529
529
|
return {
|
|
530
530
|
dir: "ltr",
|
|
531
531
|
openDelay: 200,
|
|
532
532
|
closeDelay: 300,
|
|
533
533
|
orientation: "horizontal",
|
|
534
534
|
defaultValue: "",
|
|
535
|
-
...props
|
|
535
|
+
...props
|
|
536
536
|
};
|
|
537
537
|
},
|
|
538
538
|
context({ prop, bindable }) {
|
|
@@ -674,11 +674,11 @@ const machine = createMachine({
|
|
|
674
674
|
context.set("contentNode", contentEl);
|
|
675
675
|
if (context.get("isViewportRendered")) {
|
|
676
676
|
const contentResizeObserver = trackResizeObserver([contentEl], () => {
|
|
677
|
-
const contentEl
|
|
678
|
-
if (!contentEl
|
|
677
|
+
const contentEl = getContentEl(scope, context.get("value"));
|
|
678
|
+
if (!contentEl) return;
|
|
679
679
|
context.set("viewportSize", {
|
|
680
|
-
width: contentEl
|
|
681
|
-
height: contentEl
|
|
680
|
+
width: contentEl.offsetWidth,
|
|
681
|
+
height: contentEl.offsetHeight
|
|
682
682
|
});
|
|
683
683
|
send({ type: "VIEWPORT.POSITION" });
|
|
684
684
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
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
6
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
7
7
|
let _internationalized_number = require("@internationalized/number");
|
|
8
8
|
|
|
@@ -345,10 +345,10 @@ function connect(service, normalize) {
|
|
|
345
345
|
send({ type: "INPUT.END" });
|
|
346
346
|
event.preventDefault();
|
|
347
347
|
},
|
|
348
|
-
Enter(event
|
|
348
|
+
Enter(event) {
|
|
349
349
|
send({
|
|
350
350
|
type: "INPUT.ENTER",
|
|
351
|
-
selection: recordCursor(event
|
|
351
|
+
selection: recordCursor(event.currentTarget, scope)
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
}[event.key];
|
|
@@ -494,13 +494,13 @@ const getDefaultStep = (step, formatOptions) => {
|
|
|
494
494
|
const { choose, guards, createMachine } = require_core.setup();
|
|
495
495
|
const { not, and } = guards;
|
|
496
496
|
const machine = createMachine({
|
|
497
|
-
props({ props
|
|
498
|
-
const step = getDefaultStep(props
|
|
497
|
+
props({ props }) {
|
|
498
|
+
const step = getDefaultStep(props.step, props.formatOptions);
|
|
499
499
|
return {
|
|
500
500
|
dir: "ltr",
|
|
501
501
|
locale: "en-US",
|
|
502
502
|
focusInputOnChange: true,
|
|
503
|
-
clampValueOnBlur: !props
|
|
503
|
+
clampValueOnBlur: !props.allowOverflow,
|
|
504
504
|
allowOverflow: false,
|
|
505
505
|
inputMode: "decimal",
|
|
506
506
|
pattern: "-?[0-9]*(.[0-9]+)?",
|
|
@@ -509,11 +509,11 @@ const machine = createMachine({
|
|
|
509
509
|
min: Number.MIN_SAFE_INTEGER,
|
|
510
510
|
max: Number.MAX_SAFE_INTEGER,
|
|
511
511
|
spinOnPress: true,
|
|
512
|
-
...props
|
|
512
|
+
...props,
|
|
513
513
|
translations: {
|
|
514
514
|
incrementLabel: "increment value",
|
|
515
515
|
decrementLabel: "decrease value",
|
|
516
|
-
...props
|
|
516
|
+
...props.translations
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { W as raf, _n as MAX_Z_INDEX, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, ft as getEventStep, ht as isComposingEvent, in as getWindow, k as requestPointerLock, ot as setElementValue, st as trackFormControl, vn as ariaAttr, xn as setCaretToEnd, xt as isModifierKey, yn as dataAttr, z as observeAttributes, zt as isSafari } from "../../dom-query-
|
|
3
|
-
import { I as roundToDpr, M as isValueAtMin, N as isValueWithinRange, U as wrap, W as callAll, _ as decrementValue, g as clampValue, j as isValueAtMax, k as incrementValue, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { o as setup, s as memo } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { W as raf, _n as MAX_Z_INDEX, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, ft as getEventStep, ht as isComposingEvent, in as getWindow, k as requestPointerLock, ot as setElementValue, st as trackFormControl, vn as ariaAttr, xn as setCaretToEnd, xt as isModifierKey, yn as dataAttr, z as observeAttributes, zt as isSafari } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { I as roundToDpr, M as isValueAtMin, N as isValueWithinRange, U as wrap, W as callAll, _ as decrementValue, g as clampValue, j as isValueAtMax, k as incrementValue, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { o as setup, s as memo } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
6
6
|
import { NumberParser } from "@internationalized/number";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/number-input/number-input.anatomy.ts
|
|
@@ -344,10 +344,10 @@ function connect(service, normalize) {
|
|
|
344
344
|
send({ type: "INPUT.END" });
|
|
345
345
|
event.preventDefault();
|
|
346
346
|
},
|
|
347
|
-
Enter(event
|
|
347
|
+
Enter(event) {
|
|
348
348
|
send({
|
|
349
349
|
type: "INPUT.ENTER",
|
|
350
|
-
selection: recordCursor(event
|
|
350
|
+
selection: recordCursor(event.currentTarget, scope)
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
}[event.key];
|
|
@@ -493,13 +493,13 @@ const getDefaultStep = (step, formatOptions) => {
|
|
|
493
493
|
const { choose, guards, createMachine } = setup();
|
|
494
494
|
const { not, and } = guards;
|
|
495
495
|
const machine = createMachine({
|
|
496
|
-
props({ props
|
|
497
|
-
const step = getDefaultStep(props
|
|
496
|
+
props({ props }) {
|
|
497
|
+
const step = getDefaultStep(props.step, props.formatOptions);
|
|
498
498
|
return {
|
|
499
499
|
dir: "ltr",
|
|
500
500
|
locale: "en-US",
|
|
501
501
|
focusInputOnChange: true,
|
|
502
|
-
clampValueOnBlur: !props
|
|
502
|
+
clampValueOnBlur: !props.allowOverflow,
|
|
503
503
|
allowOverflow: false,
|
|
504
504
|
inputMode: "decimal",
|
|
505
505
|
pattern: "-?[0-9]*(.[0-9]+)?",
|
|
@@ -508,11 +508,11 @@ const machine = createMachine({
|
|
|
508
508
|
min: Number.MIN_SAFE_INTEGER,
|
|
509
509
|
max: Number.MAX_SAFE_INTEGER,
|
|
510
510
|
spinOnPress: true,
|
|
511
|
-
...props
|
|
511
|
+
...props,
|
|
512
512
|
translations: {
|
|
513
513
|
incrementLabel: "increment value",
|
|
514
514
|
decrementLabel: "decrease value",
|
|
515
|
-
...props
|
|
515
|
+
...props.translations
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/pagination/pagination.anatomy.ts
|
|
@@ -112,10 +112,10 @@ function connect(service, normalize) {
|
|
|
112
112
|
size
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
|
-
setPage(page
|
|
115
|
+
setPage(page) {
|
|
116
116
|
send({
|
|
117
117
|
type: "SET_PAGE",
|
|
118
|
-
page
|
|
118
|
+
page
|
|
119
119
|
});
|
|
120
120
|
},
|
|
121
121
|
goToNextPage() {
|
|
@@ -138,15 +138,15 @@ function connect(service, normalize) {
|
|
|
138
138
|
"aria-label": translations.rootLabel
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
|
-
getEllipsisProps(props
|
|
141
|
+
getEllipsisProps(props) {
|
|
142
142
|
return normalize.element({
|
|
143
|
-
id: getEllipsisId(scope, props
|
|
143
|
+
id: getEllipsisId(scope, props.index),
|
|
144
144
|
...parts.ellipsis.attrs,
|
|
145
145
|
dir: prop("dir")
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
-
getItemProps(props
|
|
149
|
-
const index = props
|
|
148
|
+
getItemProps(props) {
|
|
149
|
+
const index = props.value;
|
|
150
150
|
const isCurrentPage = index === page;
|
|
151
151
|
return normalize.element({
|
|
152
152
|
id: getItemId(scope, index),
|
|
@@ -258,7 +258,7 @@ function connect(service, normalize) {
|
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/machines/pagination/pagination.machine.ts
|
|
260
260
|
const machine = require_core.createMachine({
|
|
261
|
-
props({ props
|
|
261
|
+
props({ props }) {
|
|
262
262
|
return {
|
|
263
263
|
defaultPageSize: 10,
|
|
264
264
|
siblingCount: 1,
|
|
@@ -266,7 +266,7 @@ const machine = require_core.createMachine({
|
|
|
266
266
|
defaultPage: 1,
|
|
267
267
|
type: "button",
|
|
268
268
|
count: 1,
|
|
269
|
-
...props
|
|
269
|
+
...props,
|
|
270
270
|
translations: {
|
|
271
271
|
rootLabel: "pagination",
|
|
272
272
|
firstTriggerLabel: "first page",
|
|
@@ -276,7 +276,7 @@ const machine = require_core.createMachine({
|
|
|
276
276
|
itemLabel({ page, totalPages }) {
|
|
277
277
|
return `${totalPages > 1 && page === totalPages ? "last page, " : ""}page ${page}`;
|
|
278
278
|
},
|
|
279
|
-
...props
|
|
279
|
+
...props.translations
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/pagination/pagination.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "ellipsis" | "firstTrigger" | "prevTrigger" | "nextTrigger" | "lastTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pagination/pagination.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/pagination/pagination.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "ellipsis" | "firstTrigger" | "prevTrigger" | "nextTrigger" | "lastTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pagination/pagination.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { st as isNumber, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, s as memo } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { st as isNumber, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/pagination/pagination.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("pagination").parts("root", "item", "ellipsis", "firstTrigger", "prevTrigger", "nextTrigger", "lastTrigger");
|
|
@@ -112,10 +112,10 @@ function connect(service, normalize) {
|
|
|
112
112
|
size
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
|
-
setPage(page
|
|
115
|
+
setPage(page) {
|
|
116
116
|
send({
|
|
117
117
|
type: "SET_PAGE",
|
|
118
|
-
page
|
|
118
|
+
page
|
|
119
119
|
});
|
|
120
120
|
},
|
|
121
121
|
goToNextPage() {
|
|
@@ -138,15 +138,15 @@ function connect(service, normalize) {
|
|
|
138
138
|
"aria-label": translations.rootLabel
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
|
-
getEllipsisProps(props
|
|
141
|
+
getEllipsisProps(props) {
|
|
142
142
|
return normalize.element({
|
|
143
|
-
id: getEllipsisId(scope, props
|
|
143
|
+
id: getEllipsisId(scope, props.index),
|
|
144
144
|
...parts.ellipsis.attrs,
|
|
145
145
|
dir: prop("dir")
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
-
getItemProps(props
|
|
149
|
-
const index = props
|
|
148
|
+
getItemProps(props) {
|
|
149
|
+
const index = props.value;
|
|
150
150
|
const isCurrentPage = index === page;
|
|
151
151
|
return normalize.element({
|
|
152
152
|
id: getItemId(scope, index),
|
|
@@ -258,7 +258,7 @@ function connect(service, normalize) {
|
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/machines/pagination/pagination.machine.ts
|
|
260
260
|
const machine = createMachine({
|
|
261
|
-
props({ props
|
|
261
|
+
props({ props }) {
|
|
262
262
|
return {
|
|
263
263
|
defaultPageSize: 10,
|
|
264
264
|
siblingCount: 1,
|
|
@@ -266,7 +266,7 @@ const machine = createMachine({
|
|
|
266
266
|
defaultPage: 1,
|
|
267
267
|
type: "button",
|
|
268
268
|
count: 1,
|
|
269
|
-
...props
|
|
269
|
+
...props,
|
|
270
270
|
translations: {
|
|
271
271
|
rootLabel: "pagination",
|
|
272
272
|
firstTriggerLabel: "first page",
|
|
@@ -276,7 +276,7 @@ const machine = createMachine({
|
|
|
276
276
|
itemLabel({ page, totalPages }) {
|
|
277
277
|
return `${totalPages > 1 && page === totalPages ? "last page, " : ""}page ${page}`;
|
|
278
278
|
},
|
|
279
|
-
...props
|
|
279
|
+
...props.translations
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
},
|