@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,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import "../../dom-query-
|
|
3
|
-
import { T as getValuePercent, 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 "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { T as getValuePercent, 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/progress/progress.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("progress").parts("root", "label", "track", "range", "valueText", "view", "circle", "circleTrack", "circleRange");
|
|
@@ -45,7 +45,7 @@ function connect(service, normalize) {
|
|
|
45
45
|
"data-orientation": orientation,
|
|
46
46
|
"data-state": progressState
|
|
47
47
|
};
|
|
48
|
-
const circleProps
|
|
48
|
+
const circleProps = getCircleProps(service);
|
|
49
49
|
return {
|
|
50
50
|
value,
|
|
51
51
|
valueAsString,
|
|
@@ -54,10 +54,10 @@ function connect(service, normalize) {
|
|
|
54
54
|
percent,
|
|
55
55
|
percentAsString,
|
|
56
56
|
indeterminate,
|
|
57
|
-
setValue(value
|
|
57
|
+
setValue(value) {
|
|
58
58
|
send({
|
|
59
59
|
type: "VALUE.SET",
|
|
60
|
-
value
|
|
60
|
+
value
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
setToMax() {
|
|
@@ -122,7 +122,7 @@ function connect(service, normalize) {
|
|
|
122
122
|
id: getCircleId(scope),
|
|
123
123
|
...parts.circle.attrs,
|
|
124
124
|
...progressbarProps,
|
|
125
|
-
...circleProps
|
|
125
|
+
...circleProps.root
|
|
126
126
|
});
|
|
127
127
|
},
|
|
128
128
|
getCircleTrackProps() {
|
|
@@ -130,23 +130,23 @@ function connect(service, normalize) {
|
|
|
130
130
|
dir: prop("dir"),
|
|
131
131
|
"data-orientation": orientation,
|
|
132
132
|
...parts.circleTrack.attrs,
|
|
133
|
-
...circleProps
|
|
133
|
+
...circleProps.track
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
136
|
getCircleRangeProps() {
|
|
137
137
|
return normalize.element({
|
|
138
138
|
dir: prop("dir"),
|
|
139
139
|
...parts.circleRange.attrs,
|
|
140
|
-
...circleProps
|
|
140
|
+
...circleProps.range,
|
|
141
141
|
"data-state": progressState
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
getViewProps(props
|
|
144
|
+
getViewProps(props) {
|
|
145
145
|
return normalize.element({
|
|
146
146
|
dir: prop("dir"),
|
|
147
147
|
...parts.view.attrs,
|
|
148
|
-
"data-state": props
|
|
149
|
-
hidden: props
|
|
148
|
+
"data-state": props.state,
|
|
149
|
+
hidden: props.state !== progressState
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -190,18 +190,18 @@ function getCircleProps(service) {
|
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region src/machines/progress/progress.machine.ts
|
|
192
192
|
const machine = createMachine({
|
|
193
|
-
props({ props
|
|
194
|
-
const min = props
|
|
195
|
-
const max = props
|
|
193
|
+
props({ props }) {
|
|
194
|
+
const min = props.min ?? 0;
|
|
195
|
+
const max = props.max ?? 100;
|
|
196
196
|
return {
|
|
197
197
|
orientation: "horizontal",
|
|
198
|
-
...props
|
|
198
|
+
...props,
|
|
199
199
|
max,
|
|
200
200
|
min,
|
|
201
|
-
defaultValue: props
|
|
201
|
+
defaultValue: props.defaultValue !== void 0 ? props.defaultValue : midValue(min, max),
|
|
202
202
|
formatOptions: {
|
|
203
203
|
style: "percent",
|
|
204
|
-
...props
|
|
204
|
+
...props.formatOptions
|
|
205
205
|
},
|
|
206
206
|
translations: {
|
|
207
207
|
value: ({ value, percent, formatter }) => {
|
|
@@ -212,7 +212,7 @@ const machine = createMachine({
|
|
|
212
212
|
}
|
|
213
213
|
return value.toString();
|
|
214
214
|
},
|
|
215
|
-
...props
|
|
215
|
+
...props.translations
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
},
|
|
@@ -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 uqr = require("uqr");
|
|
8
8
|
|
|
@@ -81,7 +81,7 @@ function connect(service, normalize) {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
},
|
|
84
|
-
getDownloadTriggerProps(props
|
|
84
|
+
getDownloadTriggerProps(props) {
|
|
85
85
|
return normalize.button({
|
|
86
86
|
type: "button",
|
|
87
87
|
...parts.downloadTrigger.attrs,
|
|
@@ -89,7 +89,7 @@ function connect(service, normalize) {
|
|
|
89
89
|
if (event.defaultPrevented) return;
|
|
90
90
|
send({
|
|
91
91
|
type: "DOWNLOAD_TRIGGER.CLICK",
|
|
92
|
-
...props
|
|
92
|
+
...props
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
});
|
|
@@ -100,11 +100,11 @@ function connect(service, normalize) {
|
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/machines/qr-code/qr-code.machine.ts
|
|
102
102
|
const machine = require_core.createMachine({
|
|
103
|
-
props({ props
|
|
103
|
+
props({ props }) {
|
|
104
104
|
return {
|
|
105
105
|
defaultValue: "",
|
|
106
106
|
pixelSize: 10,
|
|
107
|
-
...props
|
|
107
|
+
...props
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
110
|
initialState() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { n as DataUrlType } from "../../data-url-
|
|
4
|
-
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 { n as DataUrlType } from "../../data-url-BrR6WHXH.cjs";
|
|
4
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
5
5
|
import { QrCodeGenerateOptions, QrCodeGenerateOptions as QrCodeGenerateOptions$1, QrCodeGenerateResult, QrCodeGenerateResult as QrCodeGenerateResult$1 } from "uqr";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/qr-code/qr-code.anatomy.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { n as DataUrlType } from "../../data-url-
|
|
4
|
-
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 { n as DataUrlType } from "../../data-url-lOYkmlVX.mjs";
|
|
4
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
5
5
|
import { QrCodeGenerateOptions, QrCodeGenerateOptions as QrCodeGenerateOptions$1, QrCodeGenerateResult, QrCodeGenerateResult as QrCodeGenerateResult$1 } from "uqr";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/qr-code/qr-code.anatomy.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { Ht as getDataUrl } from "../../dom-query-
|
|
3
|
-
import { 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 { Ht as getDataUrl } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { 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
|
import { encode } from "uqr";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/qr-code/qr-code.anatomy.ts
|
|
@@ -80,7 +80,7 @@ function connect(service, normalize) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
},
|
|
83
|
-
getDownloadTriggerProps(props
|
|
83
|
+
getDownloadTriggerProps(props) {
|
|
84
84
|
return normalize.button({
|
|
85
85
|
type: "button",
|
|
86
86
|
...parts.downloadTrigger.attrs,
|
|
@@ -88,7 +88,7 @@ function connect(service, normalize) {
|
|
|
88
88
|
if (event.defaultPrevented) return;
|
|
89
89
|
send({
|
|
90
90
|
type: "DOWNLOAD_TRIGGER.CLICK",
|
|
91
|
-
...props
|
|
91
|
+
...props
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -99,11 +99,11 @@ function connect(service, normalize) {
|
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region src/machines/qr-code/qr-code.machine.ts
|
|
101
101
|
const machine = createMachine({
|
|
102
|
-
props({ props
|
|
102
|
+
props({ props }) {
|
|
103
103
|
return {
|
|
104
104
|
defaultValue: "",
|
|
105
105
|
pixelSize: 10,
|
|
106
|
-
...props
|
|
106
|
+
...props
|
|
107
107
|
};
|
|
108
108
|
},
|
|
109
109
|
initialState() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
5
|
-
const require_focus_visible = require('../../focus-visible-
|
|
2
|
+
const require_dom_query = require('../../dom-query-CAFhX43H.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CJsQZljH.cjs');
|
|
4
|
+
const require_core = require('../../core-CHsDFMV3.cjs');
|
|
5
|
+
const require_focus_visible = require('../../focus-visible-3pXNNo-l.cjs');
|
|
6
6
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
7
7
|
|
|
8
8
|
//#region src/machines/radio-group/radio-group.anatomy.ts
|
|
@@ -45,20 +45,20 @@ function connect(service, normalize) {
|
|
|
45
45
|
const groupDisabled = computed("isDisabled");
|
|
46
46
|
const groupInvalid = prop("invalid");
|
|
47
47
|
const readOnly = prop("readOnly");
|
|
48
|
-
function getItemState(props
|
|
48
|
+
function getItemState(props) {
|
|
49
49
|
return {
|
|
50
|
-
value: props
|
|
51
|
-
invalid: !!props
|
|
52
|
-
disabled: !!props
|
|
53
|
-
checked: context.get("value") === props
|
|
54
|
-
focused: context.get("focusedValue") === props
|
|
55
|
-
focusVisible: context.get("focusVisibleValue") === props
|
|
56
|
-
hovered: context.get("hoveredValue") === props
|
|
57
|
-
active: context.get("activeValue") === props
|
|
50
|
+
value: props.value,
|
|
51
|
+
invalid: !!props.invalid || !!groupInvalid,
|
|
52
|
+
disabled: !!props.disabled || groupDisabled,
|
|
53
|
+
checked: context.get("value") === props.value,
|
|
54
|
+
focused: context.get("focusedValue") === props.value,
|
|
55
|
+
focusVisible: context.get("focusVisibleValue") === props.value,
|
|
56
|
+
hovered: context.get("hoveredValue") === props.value,
|
|
57
|
+
active: context.get("activeValue") === props.value
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function getItemDataAttrs(props
|
|
61
|
-
const itemState = getItemState(props
|
|
60
|
+
function getItemDataAttrs(props) {
|
|
61
|
+
const itemState = getItemState(props);
|
|
62
62
|
return {
|
|
63
63
|
"data-focus": require_dom_query.dataAttr(itemState.focused),
|
|
64
64
|
"data-focus-visible": require_dom_query.dataAttr(itemState.focusVisible),
|
|
@@ -122,20 +122,20 @@ function connect(service, normalize) {
|
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
getItemState,
|
|
125
|
-
getItemProps(props
|
|
126
|
-
const itemState = getItemState(props
|
|
125
|
+
getItemProps(props) {
|
|
126
|
+
const itemState = getItemState(props);
|
|
127
127
|
return normalize.label({
|
|
128
128
|
...parts.item.attrs,
|
|
129
129
|
dir: prop("dir"),
|
|
130
|
-
id: getItemId(scope, props
|
|
131
|
-
htmlFor: getItemHiddenInputId(scope, props
|
|
132
|
-
...getItemDataAttrs(props
|
|
130
|
+
id: getItemId(scope, props.value),
|
|
131
|
+
htmlFor: getItemHiddenInputId(scope, props.value),
|
|
132
|
+
...getItemDataAttrs(props),
|
|
133
133
|
onPointerMove() {
|
|
134
134
|
if (itemState.disabled) return;
|
|
135
135
|
if (itemState.hovered) return;
|
|
136
136
|
send({
|
|
137
137
|
type: "SET_HOVERED",
|
|
138
|
-
value: props
|
|
138
|
+
value: props.value,
|
|
139
139
|
hovered: true
|
|
140
140
|
});
|
|
141
141
|
},
|
|
@@ -152,7 +152,7 @@ function connect(service, normalize) {
|
|
|
152
152
|
if (itemState.focused && event.pointerType === "mouse") event.preventDefault();
|
|
153
153
|
send({
|
|
154
154
|
type: "SET_ACTIVE",
|
|
155
|
-
value: props
|
|
155
|
+
value: props.value,
|
|
156
156
|
active: true
|
|
157
157
|
});
|
|
158
158
|
},
|
|
@@ -164,38 +164,38 @@ function connect(service, normalize) {
|
|
|
164
164
|
});
|
|
165
165
|
},
|
|
166
166
|
onClick() {
|
|
167
|
-
if (!itemState.disabled && require_dom_query.isSafari()) getItemHiddenInputEl(scope, props
|
|
167
|
+
if (!itemState.disabled && require_dom_query.isSafari()) getItemHiddenInputEl(scope, props.value)?.focus();
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
},
|
|
171
|
-
getItemTextProps(props
|
|
171
|
+
getItemTextProps(props) {
|
|
172
172
|
return normalize.element({
|
|
173
173
|
...parts.itemText.attrs,
|
|
174
174
|
dir: prop("dir"),
|
|
175
|
-
id: getItemLabelId(scope, props
|
|
176
|
-
...getItemDataAttrs(props
|
|
175
|
+
id: getItemLabelId(scope, props.value),
|
|
176
|
+
...getItemDataAttrs(props)
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
|
-
getItemControlProps(props
|
|
180
|
-
const itemState = getItemState(props
|
|
179
|
+
getItemControlProps(props) {
|
|
180
|
+
const itemState = getItemState(props);
|
|
181
181
|
return normalize.element({
|
|
182
182
|
...parts.itemControl.attrs,
|
|
183
183
|
dir: prop("dir"),
|
|
184
|
-
id: getItemControlId(scope, props
|
|
184
|
+
id: getItemControlId(scope, props.value),
|
|
185
185
|
"data-active": require_dom_query.dataAttr(itemState.active),
|
|
186
186
|
"aria-hidden": true,
|
|
187
|
-
...getItemDataAttrs(props
|
|
187
|
+
...getItemDataAttrs(props)
|
|
188
188
|
});
|
|
189
189
|
},
|
|
190
|
-
getItemHiddenInputProps(props
|
|
191
|
-
const itemState = getItemState(props
|
|
190
|
+
getItemHiddenInputProps(props) {
|
|
191
|
+
const itemState = getItemState(props);
|
|
192
192
|
return normalize.input({
|
|
193
193
|
"data-ownedby": getRootId(scope),
|
|
194
|
-
id: getItemHiddenInputId(scope, props
|
|
194
|
+
id: getItemHiddenInputId(scope, props.value),
|
|
195
195
|
type: "radio",
|
|
196
196
|
name: prop("name") || prop("id"),
|
|
197
197
|
form: prop("form"),
|
|
198
|
-
value: props
|
|
198
|
+
value: props.value,
|
|
199
199
|
required: prop("required"),
|
|
200
200
|
"aria-invalid": itemState.invalid || void 0,
|
|
201
201
|
onClick(event) {
|
|
@@ -205,7 +205,7 @@ function connect(service, normalize) {
|
|
|
205
205
|
}
|
|
206
206
|
if (event.currentTarget.checked) send({
|
|
207
207
|
type: "SET_VALUE",
|
|
208
|
-
value: props
|
|
208
|
+
value: props.value,
|
|
209
209
|
isTrusted: true
|
|
210
210
|
});
|
|
211
211
|
},
|
|
@@ -221,7 +221,7 @@ function connect(service, normalize) {
|
|
|
221
221
|
const focusVisible = require_focus_visible.isFocusVisible();
|
|
222
222
|
send({
|
|
223
223
|
type: "SET_FOCUSED",
|
|
224
|
-
value: props
|
|
224
|
+
value: props.value,
|
|
225
225
|
focused: true,
|
|
226
226
|
focusVisible
|
|
227
227
|
});
|
|
@@ -230,7 +230,7 @@ function connect(service, normalize) {
|
|
|
230
230
|
if (event.defaultPrevented) return;
|
|
231
231
|
if (event.key === " ") send({
|
|
232
232
|
type: "SET_ACTIVE",
|
|
233
|
-
value: props
|
|
233
|
+
value: props.value,
|
|
234
234
|
active: true
|
|
235
235
|
});
|
|
236
236
|
},
|
|
@@ -278,10 +278,10 @@ function connect(service, normalize) {
|
|
|
278
278
|
//#region src/machines/radio-group/radio-group.machine.ts
|
|
279
279
|
const { not } = require_core.createGuards();
|
|
280
280
|
const machine = require_core.createMachine({
|
|
281
|
-
props({ props
|
|
281
|
+
props({ props }) {
|
|
282
282
|
return {
|
|
283
283
|
orientation: "vertical",
|
|
284
|
-
...props
|
|
284
|
+
...props
|
|
285
285
|
};
|
|
286
286
|
},
|
|
287
287
|
initialState() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, m as Rect, 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, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/radio-group/radio-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "indicator" | "itemText" | "itemControl">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/radio-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, m as Rect, 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, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/radio-group/radio-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "indicator" | "itemText" | "itemControl">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/radio-group.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, a as visuallyHiddenStyle, bt as isLeftClick, m as resizeObserverBorderBox, rt as dispatchInputCheckedEvent, st as trackFormControl, yn as dataAttr, zt as isSafari } from "../../dom-query-
|
|
3
|
-
import { H as toPx, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-
|
|
6
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-BVqM_FJ6.mjs";
|
|
2
|
+
import { C as queryAll, a as visuallyHiddenStyle, bt as isLeftClick, m as resizeObserverBorderBox, rt as dispatchInputCheckedEvent, st as trackFormControl, yn as dataAttr, zt as isSafari } from "../../dom-query-CQFBCdpo.mjs";
|
|
3
|
+
import { H as toPx, u as createSplitProps } from "../../utils-Vs04rt8f.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-owywCQ2e.mjs";
|
|
5
|
+
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-DjGDsaLn.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-Dtoa4OUk.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/radio-group/radio-group.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("radio-group").parts("root", "label", "item", "itemText", "itemControl", "indicator");
|
|
@@ -45,20 +45,20 @@ function connect(service, normalize) {
|
|
|
45
45
|
const groupDisabled = computed("isDisabled");
|
|
46
46
|
const groupInvalid = prop("invalid");
|
|
47
47
|
const readOnly = prop("readOnly");
|
|
48
|
-
function getItemState(props
|
|
48
|
+
function getItemState(props) {
|
|
49
49
|
return {
|
|
50
|
-
value: props
|
|
51
|
-
invalid: !!props
|
|
52
|
-
disabled: !!props
|
|
53
|
-
checked: context.get("value") === props
|
|
54
|
-
focused: context.get("focusedValue") === props
|
|
55
|
-
focusVisible: context.get("focusVisibleValue") === props
|
|
56
|
-
hovered: context.get("hoveredValue") === props
|
|
57
|
-
active: context.get("activeValue") === props
|
|
50
|
+
value: props.value,
|
|
51
|
+
invalid: !!props.invalid || !!groupInvalid,
|
|
52
|
+
disabled: !!props.disabled || groupDisabled,
|
|
53
|
+
checked: context.get("value") === props.value,
|
|
54
|
+
focused: context.get("focusedValue") === props.value,
|
|
55
|
+
focusVisible: context.get("focusVisibleValue") === props.value,
|
|
56
|
+
hovered: context.get("hoveredValue") === props.value,
|
|
57
|
+
active: context.get("activeValue") === props.value
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function getItemDataAttrs(props
|
|
61
|
-
const itemState = getItemState(props
|
|
60
|
+
function getItemDataAttrs(props) {
|
|
61
|
+
const itemState = getItemState(props);
|
|
62
62
|
return {
|
|
63
63
|
"data-focus": dataAttr(itemState.focused),
|
|
64
64
|
"data-focus-visible": dataAttr(itemState.focusVisible),
|
|
@@ -122,20 +122,20 @@ function connect(service, normalize) {
|
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
getItemState,
|
|
125
|
-
getItemProps(props
|
|
126
|
-
const itemState = getItemState(props
|
|
125
|
+
getItemProps(props) {
|
|
126
|
+
const itemState = getItemState(props);
|
|
127
127
|
return normalize.label({
|
|
128
128
|
...parts.item.attrs,
|
|
129
129
|
dir: prop("dir"),
|
|
130
|
-
id: getItemId(scope, props
|
|
131
|
-
htmlFor: getItemHiddenInputId(scope, props
|
|
132
|
-
...getItemDataAttrs(props
|
|
130
|
+
id: getItemId(scope, props.value),
|
|
131
|
+
htmlFor: getItemHiddenInputId(scope, props.value),
|
|
132
|
+
...getItemDataAttrs(props),
|
|
133
133
|
onPointerMove() {
|
|
134
134
|
if (itemState.disabled) return;
|
|
135
135
|
if (itemState.hovered) return;
|
|
136
136
|
send({
|
|
137
137
|
type: "SET_HOVERED",
|
|
138
|
-
value: props
|
|
138
|
+
value: props.value,
|
|
139
139
|
hovered: true
|
|
140
140
|
});
|
|
141
141
|
},
|
|
@@ -152,7 +152,7 @@ function connect(service, normalize) {
|
|
|
152
152
|
if (itemState.focused && event.pointerType === "mouse") event.preventDefault();
|
|
153
153
|
send({
|
|
154
154
|
type: "SET_ACTIVE",
|
|
155
|
-
value: props
|
|
155
|
+
value: props.value,
|
|
156
156
|
active: true
|
|
157
157
|
});
|
|
158
158
|
},
|
|
@@ -164,38 +164,38 @@ function connect(service, normalize) {
|
|
|
164
164
|
});
|
|
165
165
|
},
|
|
166
166
|
onClick() {
|
|
167
|
-
if (!itemState.disabled && isSafari()) getItemHiddenInputEl(scope, props
|
|
167
|
+
if (!itemState.disabled && isSafari()) getItemHiddenInputEl(scope, props.value)?.focus();
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
},
|
|
171
|
-
getItemTextProps(props
|
|
171
|
+
getItemTextProps(props) {
|
|
172
172
|
return normalize.element({
|
|
173
173
|
...parts.itemText.attrs,
|
|
174
174
|
dir: prop("dir"),
|
|
175
|
-
id: getItemLabelId(scope, props
|
|
176
|
-
...getItemDataAttrs(props
|
|
175
|
+
id: getItemLabelId(scope, props.value),
|
|
176
|
+
...getItemDataAttrs(props)
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
|
-
getItemControlProps(props
|
|
180
|
-
const itemState = getItemState(props
|
|
179
|
+
getItemControlProps(props) {
|
|
180
|
+
const itemState = getItemState(props);
|
|
181
181
|
return normalize.element({
|
|
182
182
|
...parts.itemControl.attrs,
|
|
183
183
|
dir: prop("dir"),
|
|
184
|
-
id: getItemControlId(scope, props
|
|
184
|
+
id: getItemControlId(scope, props.value),
|
|
185
185
|
"data-active": dataAttr(itemState.active),
|
|
186
186
|
"aria-hidden": true,
|
|
187
|
-
...getItemDataAttrs(props
|
|
187
|
+
...getItemDataAttrs(props)
|
|
188
188
|
});
|
|
189
189
|
},
|
|
190
|
-
getItemHiddenInputProps(props
|
|
191
|
-
const itemState = getItemState(props
|
|
190
|
+
getItemHiddenInputProps(props) {
|
|
191
|
+
const itemState = getItemState(props);
|
|
192
192
|
return normalize.input({
|
|
193
193
|
"data-ownedby": getRootId(scope),
|
|
194
|
-
id: getItemHiddenInputId(scope, props
|
|
194
|
+
id: getItemHiddenInputId(scope, props.value),
|
|
195
195
|
type: "radio",
|
|
196
196
|
name: prop("name") || prop("id"),
|
|
197
197
|
form: prop("form"),
|
|
198
|
-
value: props
|
|
198
|
+
value: props.value,
|
|
199
199
|
required: prop("required"),
|
|
200
200
|
"aria-invalid": itemState.invalid || void 0,
|
|
201
201
|
onClick(event) {
|
|
@@ -205,7 +205,7 @@ function connect(service, normalize) {
|
|
|
205
205
|
}
|
|
206
206
|
if (event.currentTarget.checked) send({
|
|
207
207
|
type: "SET_VALUE",
|
|
208
|
-
value: props
|
|
208
|
+
value: props.value,
|
|
209
209
|
isTrusted: true
|
|
210
210
|
});
|
|
211
211
|
},
|
|
@@ -221,7 +221,7 @@ function connect(service, normalize) {
|
|
|
221
221
|
const focusVisible = isFocusVisible();
|
|
222
222
|
send({
|
|
223
223
|
type: "SET_FOCUSED",
|
|
224
|
-
value: props
|
|
224
|
+
value: props.value,
|
|
225
225
|
focused: true,
|
|
226
226
|
focusVisible
|
|
227
227
|
});
|
|
@@ -230,7 +230,7 @@ function connect(service, normalize) {
|
|
|
230
230
|
if (event.defaultPrevented) return;
|
|
231
231
|
if (event.key === " ") send({
|
|
232
232
|
type: "SET_ACTIVE",
|
|
233
|
-
value: props
|
|
233
|
+
value: props.value,
|
|
234
234
|
active: true
|
|
235
235
|
});
|
|
236
236
|
},
|
|
@@ -278,10 +278,10 @@ function connect(service, normalize) {
|
|
|
278
278
|
//#region src/machines/radio-group/radio-group.machine.ts
|
|
279
279
|
const { not } = createGuards();
|
|
280
280
|
const machine = createMachine({
|
|
281
|
-
props({ props
|
|
281
|
+
props({ props }) {
|
|
282
282
|
return {
|
|
283
283
|
orientation: "vertical",
|
|
284
|
-
...props
|
|
284
|
+
...props
|
|
285
285
|
};
|
|
286
286
|
},
|
|
287
287
|
initialState() {
|