@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,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/rating-group/rating-group.anatomy.ts
|
|
@@ -38,13 +38,13 @@ function connect(service, normalize) {
|
|
|
38
38
|
const value = context.get("value");
|
|
39
39
|
const hoveredValue = context.get("hoveredValue");
|
|
40
40
|
const translations = prop("translations");
|
|
41
|
-
function getItemState(props
|
|
41
|
+
function getItemState(props) {
|
|
42
42
|
const currentValue = computed("isHovering") ? hoveredValue : value;
|
|
43
|
-
const equal = Math.ceil(currentValue) === props
|
|
43
|
+
const equal = Math.ceil(currentValue) === props.index;
|
|
44
44
|
return {
|
|
45
|
-
highlighted: props
|
|
46
|
-
half: equal && Math.abs(currentValue - props
|
|
47
|
-
checked: equal || value <= 0 && props
|
|
45
|
+
highlighted: props.index <= currentValue || equal,
|
|
46
|
+
half: equal && Math.abs(currentValue - props.index) === .5,
|
|
47
|
+
checked: equal || value <= 0 && props.index === 1
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
@@ -53,10 +53,10 @@ function connect(service, normalize) {
|
|
|
53
53
|
hoveredValue,
|
|
54
54
|
count: prop("count"),
|
|
55
55
|
items: Array.from({ length: prop("count") }).map((_, index) => index + 1),
|
|
56
|
-
setValue(value
|
|
56
|
+
setValue(value) {
|
|
57
57
|
send({
|
|
58
58
|
type: "SET_VALUE",
|
|
59
|
-
value
|
|
59
|
+
value
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
clearValue() {
|
|
@@ -122,9 +122,9 @@ function connect(service, normalize) {
|
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
getItemState,
|
|
125
|
-
getItemProps(props
|
|
126
|
-
const { index } = props
|
|
127
|
-
const itemState = getItemState(props
|
|
125
|
+
getItemProps(props) {
|
|
126
|
+
const { index } = props;
|
|
127
|
+
const itemState = getItemState(props);
|
|
128
128
|
const valueText = translations.ratingValueText(index);
|
|
129
129
|
return normalize.element({
|
|
130
130
|
...parts.item.attrs,
|
|
@@ -220,16 +220,16 @@ function connect(service, normalize) {
|
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/machines/rating-group/rating-group.machine.ts
|
|
222
222
|
const machine = require_core.createMachine({
|
|
223
|
-
props({ props
|
|
223
|
+
props({ props }) {
|
|
224
224
|
return {
|
|
225
225
|
name: "rating",
|
|
226
226
|
count: 5,
|
|
227
227
|
dir: "ltr",
|
|
228
228
|
defaultValue: -1,
|
|
229
|
-
...props
|
|
229
|
+
...props,
|
|
230
230
|
translations: {
|
|
231
231
|
ratingValueText: (index) => `${index} stars`,
|
|
232
|
-
...props
|
|
232
|
+
...props.translations
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
},
|
|
@@ -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/rating-group/rating-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/rating-group/rating-group.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -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/rating-group/rating-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/rating-group/rating-group.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { A as getRelativePoint, S as query, W as raf, bt as isLeftClick, dt as getEventPoint, it as dispatchInputValueEvent, st as trackFormControl, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { A as getRelativePoint, S as query, W as raf, bt as isLeftClick, dt as getEventPoint, it as dispatchInputValueEvent, st as trackFormControl, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/rating-group/rating-group.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("rating-group").parts("root", "label", "item", "control");
|
|
@@ -38,13 +38,13 @@ function connect(service, normalize) {
|
|
|
38
38
|
const value = context.get("value");
|
|
39
39
|
const hoveredValue = context.get("hoveredValue");
|
|
40
40
|
const translations = prop("translations");
|
|
41
|
-
function getItemState(props
|
|
41
|
+
function getItemState(props) {
|
|
42
42
|
const currentValue = computed("isHovering") ? hoveredValue : value;
|
|
43
|
-
const equal = Math.ceil(currentValue) === props
|
|
43
|
+
const equal = Math.ceil(currentValue) === props.index;
|
|
44
44
|
return {
|
|
45
|
-
highlighted: props
|
|
46
|
-
half: equal && Math.abs(currentValue - props
|
|
47
|
-
checked: equal || value <= 0 && props
|
|
45
|
+
highlighted: props.index <= currentValue || equal,
|
|
46
|
+
half: equal && Math.abs(currentValue - props.index) === .5,
|
|
47
|
+
checked: equal || value <= 0 && props.index === 1
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
@@ -53,10 +53,10 @@ function connect(service, normalize) {
|
|
|
53
53
|
hoveredValue,
|
|
54
54
|
count: prop("count"),
|
|
55
55
|
items: Array.from({ length: prop("count") }).map((_, index) => index + 1),
|
|
56
|
-
setValue(value
|
|
56
|
+
setValue(value) {
|
|
57
57
|
send({
|
|
58
58
|
type: "SET_VALUE",
|
|
59
|
-
value
|
|
59
|
+
value
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
clearValue() {
|
|
@@ -122,9 +122,9 @@ function connect(service, normalize) {
|
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
getItemState,
|
|
125
|
-
getItemProps(props
|
|
126
|
-
const { index } = props
|
|
127
|
-
const itemState = getItemState(props
|
|
125
|
+
getItemProps(props) {
|
|
126
|
+
const { index } = props;
|
|
127
|
+
const itemState = getItemState(props);
|
|
128
128
|
const valueText = translations.ratingValueText(index);
|
|
129
129
|
return normalize.element({
|
|
130
130
|
...parts.item.attrs,
|
|
@@ -220,16 +220,16 @@ function connect(service, normalize) {
|
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/machines/rating-group/rating-group.machine.ts
|
|
222
222
|
const machine = createMachine({
|
|
223
|
-
props({ props
|
|
223
|
+
props({ props }) {
|
|
224
224
|
return {
|
|
225
225
|
name: "rating",
|
|
226
226
|
count: 5,
|
|
227
227
|
dir: "ltr",
|
|
228
228
|
defaultValue: -1,
|
|
229
|
-
...props
|
|
229
|
+
...props,
|
|
230
230
|
translations: {
|
|
231
231
|
ratingValueText: (index) => `${index} stars`,
|
|
232
|
-
...props
|
|
232
|
+
...props.translations
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_defineProperty = require('../../defineProperty-
|
|
4
|
-
const require_utils = require('../../utils-
|
|
5
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_defineProperty = require('../../defineProperty-_bOnJOii.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
|
|
|
8
8
|
//#region src/machines/scroll-area/scroll-area.anatomy.ts
|
|
@@ -171,8 +171,8 @@ function connect(service, normalize) {
|
|
|
171
171
|
scrollTo(details) {
|
|
172
172
|
return scrollTo(getViewportEl(scope), details);
|
|
173
173
|
},
|
|
174
|
-
getScrollbarState(props
|
|
175
|
-
const horizontal = props
|
|
174
|
+
getScrollbarState(props) {
|
|
175
|
+
const horizontal = props.orientation === "horizontal";
|
|
176
176
|
return {
|
|
177
177
|
hovering,
|
|
178
178
|
dragging,
|
|
@@ -263,8 +263,8 @@ function connect(service, normalize) {
|
|
|
263
263
|
style: { minWidth: "fit-content" }
|
|
264
264
|
});
|
|
265
265
|
},
|
|
266
|
-
getScrollbarProps(props
|
|
267
|
-
const { orientation = "vertical" } = props
|
|
266
|
+
getScrollbarProps(props = {}) {
|
|
267
|
+
const { orientation = "vertical" } = props;
|
|
268
268
|
return normalize.element({
|
|
269
269
|
...parts.scrollbar.attrs,
|
|
270
270
|
"data-ownedby": getRootId(scope),
|
|
@@ -308,8 +308,8 @@ function connect(service, normalize) {
|
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
},
|
|
311
|
-
getThumbProps(props
|
|
312
|
-
const { orientation = "vertical" } = props
|
|
311
|
+
getThumbProps(props = {}) {
|
|
312
|
+
const { orientation = "vertical" } = props;
|
|
313
313
|
return normalize.element({
|
|
314
314
|
...parts.thumb.attrs,
|
|
315
315
|
"data-ownedby": getRootId(scope),
|
|
@@ -431,9 +431,9 @@ var Timeout = class {
|
|
|
431
431
|
const MIN_THUMB_SIZE = 20;
|
|
432
432
|
const SCROLL_TIMEOUT = 1e3;
|
|
433
433
|
const machine = require_core.createMachine({
|
|
434
|
-
props({ props
|
|
435
|
-
require_utils.ensureProps(props
|
|
436
|
-
return props
|
|
434
|
+
props({ props }) {
|
|
435
|
+
require_utils.ensureProps(props, ["id"]);
|
|
436
|
+
return props;
|
|
437
437
|
},
|
|
438
438
|
context({ bindable }) {
|
|
439
439
|
return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { _ as Size, b as NormalizeProps, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
3
|
+
import { _ as Size, b as NormalizeProps, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/scroll-area/scroll-area.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "viewport" | "content" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { _ as Size, b as NormalizeProps, d as Orientation, p as Point, 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 { _ as Size, b as NormalizeProps, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/scroll-area/scroll-area.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "viewport" | "content" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { E as trackPointerMove, S as query, Xt as getComputedStyle, Zt as contains, ct as addDomEvent, d as setStyleProperty, dt as getEventPoint, pt as getEventTarget, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { t as _defineProperty } from "../../defineProperty-
|
|
4
|
-
import { H as toPx, W as callAll, ft as isEqual, g as clampValue, l as compact, n as ensureProps, u as createSplitProps } from "../../utils-
|
|
5
|
-
import { a as createMachine } from "../../core-
|
|
6
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { E as trackPointerMove, S as query, Xt as getComputedStyle, Zt as contains, ct as addDomEvent, d as setStyleProperty, dt as getEventPoint, pt as getEventTarget, yn as dataAttr } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { t as _defineProperty } from "../../defineProperty-DR_NxfHn.mjs";
|
|
4
|
+
import { H as toPx, W as callAll, ft as isEqual, g as clampValue, l as compact, n as ensureProps, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
5
|
+
import { a as createMachine } from "../../core-owywCQ2e.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/scroll-area/scroll-area.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("scroll-area").parts("root", "viewport", "content", "scrollbar", "thumb", "corner");
|
|
@@ -171,8 +171,8 @@ function connect(service, normalize) {
|
|
|
171
171
|
scrollTo(details) {
|
|
172
172
|
return scrollTo(getViewportEl(scope), details);
|
|
173
173
|
},
|
|
174
|
-
getScrollbarState(props
|
|
175
|
-
const horizontal = props
|
|
174
|
+
getScrollbarState(props) {
|
|
175
|
+
const horizontal = props.orientation === "horizontal";
|
|
176
176
|
return {
|
|
177
177
|
hovering,
|
|
178
178
|
dragging,
|
|
@@ -263,8 +263,8 @@ function connect(service, normalize) {
|
|
|
263
263
|
style: { minWidth: "fit-content" }
|
|
264
264
|
});
|
|
265
265
|
},
|
|
266
|
-
getScrollbarProps(props
|
|
267
|
-
const { orientation = "vertical" } = props
|
|
266
|
+
getScrollbarProps(props = {}) {
|
|
267
|
+
const { orientation = "vertical" } = props;
|
|
268
268
|
return normalize.element({
|
|
269
269
|
...parts.scrollbar.attrs,
|
|
270
270
|
"data-ownedby": getRootId(scope),
|
|
@@ -308,8 +308,8 @@ function connect(service, normalize) {
|
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
},
|
|
311
|
-
getThumbProps(props
|
|
312
|
-
const { orientation = "vertical" } = props
|
|
311
|
+
getThumbProps(props = {}) {
|
|
312
|
+
const { orientation = "vertical" } = props;
|
|
313
313
|
return normalize.element({
|
|
314
314
|
...parts.thumb.attrs,
|
|
315
315
|
"data-ownedby": getRootId(scope),
|
|
@@ -431,9 +431,9 @@ var Timeout = class {
|
|
|
431
431
|
const MIN_THUMB_SIZE = 20;
|
|
432
432
|
const SCROLL_TIMEOUT = 1e3;
|
|
433
433
|
const machine = createMachine({
|
|
434
|
-
props({ props
|
|
435
|
-
ensureProps(props
|
|
436
|
-
return props
|
|
434
|
+
props({ props }) {
|
|
435
|
+
ensureProps(props, ["id"]);
|
|
436
|
+
return props;
|
|
437
437
|
},
|
|
438
438
|
context({ bindable }) {
|
|
439
439
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
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_collection = require('../../collection-
|
|
5
|
-
const require_core = require('../../core-
|
|
6
|
-
require('../../interact-outside-
|
|
7
|
-
const require_dismissable = require('../../dismissable-
|
|
8
|
-
const require_popper = require('../../popper-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_collection = require('../../collection-Fkg4kgPn.cjs');
|
|
5
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
6
|
+
require('../../interact-outside-Dk2otQqs.cjs');
|
|
7
|
+
const require_dismissable = require('../../dismissable-DSFGuAU6.cjs');
|
|
8
|
+
const require_popper = require('../../popper-CY3ptPbm.cjs');
|
|
9
9
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
10
10
|
|
|
11
11
|
//#region src/machines/select/select.anatomy.ts
|
|
@@ -53,7 +53,7 @@ function connect(service, normalize) {
|
|
|
53
53
|
const required = !!prop("required");
|
|
54
54
|
const readOnly = !!prop("readOnly");
|
|
55
55
|
const composite = prop("composite");
|
|
56
|
-
const collection
|
|
56
|
+
const collection = prop("collection");
|
|
57
57
|
const open = state.hasTag("open");
|
|
58
58
|
const focused = state.matches("focused");
|
|
59
59
|
const highlightedValue = context.get("highlightedValue");
|
|
@@ -63,10 +63,10 @@ function connect(service, normalize) {
|
|
|
63
63
|
const isTypingAhead = computed("isTypingAhead");
|
|
64
64
|
const interactive = computed("isInteractive");
|
|
65
65
|
const ariaActiveDescendant = highlightedValue ? getItemId(scope, highlightedValue) : void 0;
|
|
66
|
-
function getItemState(props
|
|
67
|
-
const _disabled = collection
|
|
68
|
-
const value = collection
|
|
69
|
-
require_utils.ensure(value, () => `[sprawlify-js] No value found for item ${JSON.stringify(props
|
|
66
|
+
function getItemState(props) {
|
|
67
|
+
const _disabled = collection.getItemDisabled(props.item);
|
|
68
|
+
const value = collection.getItemValue(props.item);
|
|
69
|
+
require_utils.ensure(value, () => `[sprawlify-js] No value found for item ${JSON.stringify(props.item)}`);
|
|
70
70
|
return {
|
|
71
71
|
value,
|
|
72
72
|
disabled: Boolean(disabled || _disabled),
|
|
@@ -88,7 +88,7 @@ function connect(service, normalize) {
|
|
|
88
88
|
hasSelectedItems: computed("hasSelectedItems"),
|
|
89
89
|
value: context.get("value"),
|
|
90
90
|
valueAsString: computed("valueAsString"),
|
|
91
|
-
collection
|
|
91
|
+
collection,
|
|
92
92
|
multiple: !!prop("multiple"),
|
|
93
93
|
disabled: !!disabled,
|
|
94
94
|
reposition(options = {}) {
|
|
@@ -119,7 +119,7 @@ function connect(service, normalize) {
|
|
|
119
119
|
selectAll() {
|
|
120
120
|
send({
|
|
121
121
|
type: "VALUE.SET",
|
|
122
|
-
value: collection
|
|
122
|
+
value: collection.getValues()
|
|
123
123
|
});
|
|
124
124
|
},
|
|
125
125
|
setHighlightValue(value) {
|
|
@@ -223,8 +223,8 @@ function connect(service, normalize) {
|
|
|
223
223
|
ArrowUp() {
|
|
224
224
|
send({ type: "TRIGGER.ARROW_UP" });
|
|
225
225
|
},
|
|
226
|
-
ArrowDown(event
|
|
227
|
-
send({ type: event
|
|
226
|
+
ArrowDown(event) {
|
|
227
|
+
send({ type: event.altKey ? "OPEN" : "TRIGGER.ARROW_DOWN" });
|
|
228
228
|
},
|
|
229
229
|
ArrowLeft() {
|
|
230
230
|
send({ type: "TRIGGER.ARROW_LEFT" });
|
|
@@ -241,10 +241,10 @@ function connect(service, normalize) {
|
|
|
241
241
|
Enter() {
|
|
242
242
|
send({ type: "TRIGGER.ENTER" });
|
|
243
243
|
},
|
|
244
|
-
Space(event
|
|
244
|
+
Space(event) {
|
|
245
245
|
if (isTypingAhead) send({
|
|
246
246
|
type: "TRIGGER.TYPEAHEAD",
|
|
247
|
-
key: event
|
|
247
|
+
key: event.key
|
|
248
248
|
});
|
|
249
249
|
else send({ type: "TRIGGER.ENTER" });
|
|
250
250
|
}
|
|
@@ -278,8 +278,8 @@ function connect(service, normalize) {
|
|
|
278
278
|
"data-readonly": require_dom_query.dataAttr(readOnly)
|
|
279
279
|
});
|
|
280
280
|
},
|
|
281
|
-
getItemProps(props
|
|
282
|
-
const itemState = getItemState(props
|
|
281
|
+
getItemProps(props) {
|
|
282
|
+
const itemState = getItemState(props);
|
|
283
283
|
return normalize.element({
|
|
284
284
|
id: getItemId(scope, itemState.value),
|
|
285
285
|
role: "option",
|
|
@@ -310,15 +310,15 @@ function connect(service, normalize) {
|
|
|
310
310
|
},
|
|
311
311
|
onPointerLeave(event) {
|
|
312
312
|
if (itemState.disabled) return;
|
|
313
|
-
if (props
|
|
313
|
+
if (props.persistFocus) return;
|
|
314
314
|
if (event.pointerType !== "mouse") return;
|
|
315
315
|
if (!service.event.previous()?.type.includes("POINTER")) return;
|
|
316
316
|
send({ type: "ITEM.POINTER_LEAVE" });
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
|
-
getItemTextProps(props
|
|
321
|
-
const itemState = getItemState(props
|
|
320
|
+
getItemTextProps(props) {
|
|
321
|
+
const itemState = getItemState(props);
|
|
322
322
|
return normalize.element({
|
|
323
323
|
...parts.itemText.attrs,
|
|
324
324
|
"data-state": itemState.selected ? "checked" : "unchecked",
|
|
@@ -326,8 +326,8 @@ function connect(service, normalize) {
|
|
|
326
326
|
"data-highlighted": require_dom_query.dataAttr(itemState.highlighted)
|
|
327
327
|
});
|
|
328
328
|
},
|
|
329
|
-
getItemIndicatorProps(props
|
|
330
|
-
const itemState = getItemState(props
|
|
329
|
+
getItemIndicatorProps(props) {
|
|
330
|
+
const itemState = getItemState(props);
|
|
331
331
|
return normalize.element({
|
|
332
332
|
"aria-hidden": true,
|
|
333
333
|
...parts.itemIndicator.attrs,
|
|
@@ -335,8 +335,8 @@ function connect(service, normalize) {
|
|
|
335
335
|
hidden: !itemState.selected
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
|
-
getItemGroupLabelProps(props
|
|
339
|
-
const { htmlFor } = props
|
|
338
|
+
getItemGroupLabelProps(props) {
|
|
339
|
+
const { htmlFor } = props;
|
|
340
340
|
return normalize.element({
|
|
341
341
|
...parts.itemGroupLabel.attrs,
|
|
342
342
|
id: getItemGroupLabelId(scope, htmlFor),
|
|
@@ -344,8 +344,8 @@ function connect(service, normalize) {
|
|
|
344
344
|
role: "presentation"
|
|
345
345
|
});
|
|
346
346
|
},
|
|
347
|
-
getItemGroupProps(props
|
|
348
|
-
const { id } = props
|
|
347
|
+
getItemGroupProps(props) {
|
|
348
|
+
const { id } = props;
|
|
349
349
|
return normalize.element({
|
|
350
350
|
...parts.itemGroup.attrs,
|
|
351
351
|
"data-disabled": require_dom_query.dataAttr(disabled),
|
|
@@ -441,12 +441,12 @@ function connect(service, normalize) {
|
|
|
441
441
|
src: "keydown.enter"
|
|
442
442
|
});
|
|
443
443
|
},
|
|
444
|
-
Space(event
|
|
444
|
+
Space(event) {
|
|
445
445
|
if (isTypingAhead) send({
|
|
446
446
|
type: "CONTENT.TYPEAHEAD",
|
|
447
|
-
key: event
|
|
447
|
+
key: event.key
|
|
448
448
|
});
|
|
449
|
-
else keyMap.Enter?.(event
|
|
449
|
+
else keyMap.Enter?.(event);
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
452
|
const exec = keyMap[require_dom_query.getEventKey(event)];
|
|
@@ -483,18 +483,18 @@ function connect(service, normalize) {
|
|
|
483
483
|
//#region src/machines/select/select.machine.ts
|
|
484
484
|
const { and, not, or } = require_core.createGuards();
|
|
485
485
|
const machine = require_core.createMachine({
|
|
486
|
-
props({ props
|
|
486
|
+
props({ props }) {
|
|
487
487
|
return {
|
|
488
488
|
loopFocus: false,
|
|
489
|
-
closeOnSelect: !props
|
|
489
|
+
closeOnSelect: !props.multiple,
|
|
490
490
|
composite: true,
|
|
491
491
|
defaultValue: [],
|
|
492
|
-
...props
|
|
493
|
-
collection: props
|
|
492
|
+
...props,
|
|
493
|
+
collection: props.collection ?? collection.empty(),
|
|
494
494
|
positioning: {
|
|
495
495
|
placement: "bottom-start",
|
|
496
496
|
gutter: 8,
|
|
497
|
-
...props
|
|
497
|
+
...props.positioning
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
},
|
|
@@ -870,7 +870,7 @@ const machine = require_core.createMachine({
|
|
|
870
870
|
const highlightedValue = context.get("highlightedValue");
|
|
871
871
|
if (highlightedValue == null) return;
|
|
872
872
|
if (event.current().type.includes("POINTER")) return;
|
|
873
|
-
const contentEl
|
|
873
|
+
const contentEl = getContentEl(scope);
|
|
874
874
|
const scrollToIndexFn = prop("scrollToIndexFn");
|
|
875
875
|
if (scrollToIndexFn) {
|
|
876
876
|
const highlightedIndex = prop("collection").indexOf(highlightedValue);
|
|
@@ -882,7 +882,7 @@ const machine = require_core.createMachine({
|
|
|
882
882
|
return;
|
|
883
883
|
}
|
|
884
884
|
require_dom_query.scrollIntoView(getItemEl(scope, highlightedValue), {
|
|
885
|
-
rootEl: contentEl
|
|
885
|
+
rootEl: contentEl,
|
|
886
886
|
block: "nearest"
|
|
887
887
|
});
|
|
888
888
|
};
|
|
@@ -961,13 +961,13 @@ const machine = require_core.createMachine({
|
|
|
961
961
|
});
|
|
962
962
|
},
|
|
963
963
|
highlightComputedFirstItem({ context, prop, computed }) {
|
|
964
|
-
const collection
|
|
965
|
-
const value = computed("hasSelectedItems") ? collection
|
|
964
|
+
const collection = prop("collection");
|
|
965
|
+
const value = computed("hasSelectedItems") ? collection.sort(context.get("value"))[0] : collection.firstValue;
|
|
966
966
|
context.set("highlightedValue", value);
|
|
967
967
|
},
|
|
968
968
|
highlightComputedLastItem({ context, prop, computed }) {
|
|
969
|
-
const collection
|
|
970
|
-
const value = computed("hasSelectedItems") ? collection
|
|
969
|
+
const collection = prop("collection");
|
|
970
|
+
const value = computed("hasSelectedItems") ? collection.sort(context.get("value"))[0] : collection.lastValue;
|
|
971
971
|
context.set("highlightedValue", value);
|
|
972
972
|
},
|
|
973
973
|
highlightFirstSelectedItem({ context, prop, computed }) {
|
|
@@ -1068,24 +1068,24 @@ const machine = require_core.createMachine({
|
|
|
1068
1068
|
for (const option of selectEl.options) option.selected = context.get("value").includes(option.value);
|
|
1069
1069
|
},
|
|
1070
1070
|
syncCollection({ context, prop }) {
|
|
1071
|
-
const collection
|
|
1072
|
-
const highlightedItem = collection
|
|
1071
|
+
const collection = prop("collection");
|
|
1072
|
+
const highlightedItem = collection.find(context.get("highlightedValue"));
|
|
1073
1073
|
if (highlightedItem) context.set("highlightedItem", highlightedItem);
|
|
1074
|
-
const selectedItems = collection
|
|
1074
|
+
const selectedItems = collection.findMany(context.get("value"));
|
|
1075
1075
|
context.set("selectedItems", selectedItems);
|
|
1076
1076
|
},
|
|
1077
1077
|
syncSelectedItems({ context, prop }) {
|
|
1078
|
-
const collection
|
|
1078
|
+
const collection = prop("collection");
|
|
1079
1079
|
const prevSelectedItems = context.get("selectedItems");
|
|
1080
1080
|
const selectedItems = context.get("value").map((value) => {
|
|
1081
|
-
return prevSelectedItems.find((item) => collection
|
|
1081
|
+
return prevSelectedItems.find((item) => collection.getItemValue(item) === value) || collection.find(value);
|
|
1082
1082
|
});
|
|
1083
1083
|
context.set("selectedItems", selectedItems);
|
|
1084
1084
|
},
|
|
1085
1085
|
syncHighlightedItem({ context, prop }) {
|
|
1086
|
-
const collection
|
|
1086
|
+
const collection = prop("collection");
|
|
1087
1087
|
const highlightedValue = context.get("highlightedValue");
|
|
1088
|
-
const highlightedItem = highlightedValue ? collection
|
|
1088
|
+
const highlightedItem = highlightedValue ? collection.find(highlightedValue) : null;
|
|
1089
1089
|
context.set("highlightedItem", highlightedItem);
|
|
1090
1090
|
},
|
|
1091
1091
|
dispatchChangeEvent({ scope }) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
5
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
6
|
-
import { n as TypeaheadState } from "../../typeahead-
|
|
7
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
8
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-CBWaEVU4.cjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DwMgPYoA.cjs";
|
|
4
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
|
|
5
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
6
|
+
import { n as TypeaheadState } from "../../typeahead-BhNtyjQC.cjs";
|
|
7
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
|
|
8
|
+
import { c as Placement, d as PositioningOptions } from "../../types-B--gFZVP.cjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/select/select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "trigger" | "content" | "list" | "item" | "indicator" | "itemIndicator" | "positioner" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/select/select.collection.d.ts
|
|
14
14
|
declare const collection: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
5
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
6
|
-
import { n as TypeaheadState } from "../../typeahead-
|
|
7
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
8
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-D0tsc4Jo.mjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-C9XUe75n.mjs";
|
|
4
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
|
|
5
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
6
|
+
import { n as TypeaheadState } from "../../typeahead-D4TUCBly.mjs";
|
|
7
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
|
|
8
|
+
import { p as PositioningOptions, u as Placement } from "../../index-DJ1MHM3z.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/select/select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "trigger" | "content" | "list" | "item" | "indicator" | "itemIndicator" | "positioner" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/select/select.collection.d.ts
|
|
14
14
|
declare const collection: {
|