@sprawlify/primitives 0.0.86 → 0.0.88
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.cjs +3 -3
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +2 -3
- package/dist/{aria-hidden-Csp0PkO_.mjs → aria-hidden-P3kaF8gG.mjs} +2 -6
- package/dist/{aria-hidden-CHWfuKk2.cjs → aria-hidden-UJAPt1aA.cjs} +7 -11
- package/dist/aria-hidden.cjs +4 -4
- package/dist/aria-hidden.mjs +3 -4
- package/dist/{auto-resize-jPUJLPa4.mjs → auto-resize-Bjzuo5Lh.mjs} +2 -6
- package/dist/{auto-resize-BL8ul-hb.cjs → auto-resize-DzPXdyR-.cjs} +12 -16
- package/dist/auto-resize.cjs +4 -4
- package/dist/auto-resize.mjs +3 -4
- package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
- package/dist/{collection-DHyEg4g5.mjs → collection-CcsrqDFY.mjs} +3 -9
- package/dist/{collection-Fkg4kgPn.cjs → collection-DZeodezM.cjs} +43 -49
- package/dist/collection.cjs +4 -4
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +3 -4
- package/dist/{color-utils-CaqLeEog.mjs → color-utils-BK3Ae7x1.mjs} +3 -12
- package/dist/{color-utils-eUlz6Gq4.cjs → color-utils-XoYeFX3g.cjs} +23 -32
- package/dist/color-utils.cjs +4 -4
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +3 -4
- package/dist/{core-CHsDFMV3.cjs → core-BiGlJ-4W.cjs} +43 -49
- package/dist/{core-owywCQ2e.mjs → core-DfVajPnu.mjs} +3 -9
- package/dist/core.cjs +5 -5
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +4 -5
- package/dist/{create-anatomy-CDsIFUXg.cjs → create-anatomy-BnwEmNnc.cjs} +6 -8
- package/dist/{create-anatomy-BVqM_FJ6.mjs → create-anatomy-Dr0evdYy.mjs} +1 -2
- package/dist/{create-props-Dtoa4OUk.mjs → create-props-DFW8DUsC.mjs} +1 -2
- package/dist/create-props-DP39rHnH.cjs +9 -0
- package/dist/{date-utils-BDBOiT_6.cjs → date-utils-BuJkKL09.cjs} +265 -279
- package/dist/{date-utils-LnVS7q0z.mjs → date-utils-DCaRa_Ry.mjs} +1 -15
- package/dist/date-utils.cjs +3 -3
- package/dist/date-utils.d.cts +1 -1
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +2 -3
- package/dist/{defineProperty-_bOnJOii.cjs → defineProperty-8IOBQ1i_.cjs} +10 -15
- package/dist/{defineProperty-DR_NxfHn.mjs → defineProperty-D5oW_HU_.mjs} +5 -9
- package/dist/{dismissable-BlZazbp3.mjs → dismissable-BAYaXwxZ.mjs} +4 -9
- package/dist/{dismissable-DSFGuAU6.cjs → dismissable-DPXx0m0m.cjs} +14 -19
- package/dist/{dismissable-layer-B2bSyA07.d.cts → dismissable-layer-ZgyqN8AD.d.cts} +2 -2
- package/dist/{dismissable-layer-CpUMMV1f.d.mts → dismissable-layer-h14gHVbJ.d.mts} +2 -2
- package/dist/dismissable.cjs +6 -6
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +5 -6
- package/dist/{dom-query-CAFhX43H.cjs → dom-query-6Wt-Tikf.cjs} +775 -806
- package/dist/{dom-query-CQFBCdpo.mjs → dom-query-dX8Dakb4.mjs} +2 -33
- package/dist/dom-query.cjs +3 -3
- package/dist/dom-query.d.cts +6 -6
- package/dist/dom-query.d.mts +6 -6
- package/dist/dom-query.mjs +2 -3
- package/dist/{file-utils-Bkp18nrt.cjs → file-utils-CY6_zVut.cjs} +52 -67
- package/dist/{file-utils-lcjM-YjV.mjs → file-utils-VgQ3YV2A.mjs} +2 -16
- package/dist/file-utils.cjs +3 -3
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/file-utils.mjs +2 -3
- package/dist/{focus-trap-BXT0oBtL.mjs → focus-trap-Cd09JaUn.mjs} +3 -6
- package/dist/{focus-trap-zaIiaoqE.cjs → focus-trap-ClCNF7kY.cjs} +13 -16
- package/dist/focus-trap.cjs +4 -4
- package/dist/focus-trap.mjs +3 -4
- package/dist/{focus-visible-DjGDsaLn.mjs → focus-visible-CSuBQ5QZ.mjs} +2 -4
- package/dist/{focus-visible-3pXNNo-l.cjs → focus-visible-CqHoOOjw.cjs} +32 -34
- package/dist/focus-visible.cjs +4 -4
- package/dist/focus-visible.mjs +3 -4
- package/dist/highlight-word.cjs +2 -7
- package/dist/highlight-word.mjs +1 -6
- package/dist/hotkeys.cjs +11 -20
- package/dist/hotkeys.mjs +10 -20
- package/dist/{i18n-utils-KuoJj66z.mjs → i18n-utils-DHGN_KCY.mjs} +2 -14
- package/dist/{i18n-utils-CK27xonZ.cjs → i18n-utils-Dm8cGCol.cjs} +57 -69
- package/dist/i18n-utils.cjs +4 -4
- package/dist/i18n-utils.mjs +3 -4
- package/dist/index.mjs +1 -1
- package/dist/{interact-outside-CRmkKF6k.mjs → interact-outside-C-8lOhpV.mjs} +3 -6
- package/dist/{interact-outside-Dk2otQqs.cjs → interact-outside-DRaFGdMg.cjs} +8 -11
- package/dist/interact-outside.cjs +5 -5
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +4 -5
- package/dist/json-tree-utils.cjs +6 -11
- package/dist/json-tree-utils.mjs +5 -10
- package/dist/{list-collection-C9XUe75n.d.mts → list-collection-B_8BN0XB.d.cts} +1 -1
- package/dist/{list-collection-DwMgPYoA.d.cts → list-collection-DkRA5LOq.d.mts} +1 -1
- package/dist/{live-region-2RiuzOr-.cjs → live-region-TGReV9nm.cjs} +6 -8
- package/dist/{live-region-CBp2K1JK.mjs → live-region-TgEDzvS4.mjs} +1 -2
- package/dist/live-region.cjs +3 -3
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +2 -3
- package/dist/machines/accordion/index.cjs +7 -12
- package/dist/machines/accordion/index.d.cts +2 -2
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +6 -12
- package/dist/machines/angle-slider/index.cjs +13 -23
- package/dist/machines/angle-slider/index.d.cts +3 -3
- package/dist/machines/angle-slider/index.d.mts +4 -4
- package/dist/machines/angle-slider/index.mjs +12 -23
- package/dist/machines/aspect-ratio/index.cjs +7 -12
- package/dist/machines/aspect-ratio/index.d.cts +2 -2
- package/dist/machines/aspect-ratio/index.d.mts +3 -3
- package/dist/machines/aspect-ratio/index.mjs +6 -12
- package/dist/machines/async-list/index.cjs +5 -7
- 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 +4 -7
- package/dist/machines/avatar/index.cjs +7 -12
- package/dist/machines/avatar/index.d.cts +2 -2
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +6 -12
- package/dist/machines/bottom-sheet/index.cjs +13 -22
- package/dist/machines/bottom-sheet/index.d.cts +5 -5
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +12 -22
- package/dist/machines/carousel/index.cjs +8 -13
- package/dist/machines/carousel/index.d.cts +3 -3
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +7 -13
- package/dist/machines/checkbox/index.cjs +8 -13
- package/dist/machines/checkbox/index.d.cts +3 -3
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +7 -13
- package/dist/machines/clipboard/index.cjs +7 -12
- package/dist/machines/clipboard/index.d.cts +3 -3
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +6 -12
- package/dist/machines/collapsible/index.cjs +7 -12
- package/dist/machines/collapsible/index.d.cts +3 -3
- package/dist/machines/collapsible/index.d.mts +4 -4
- package/dist/machines/collapsible/index.mjs +6 -12
- package/dist/machines/color-picker/index.cjs +11 -21
- package/dist/machines/color-picker/index.d.cts +6 -6
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +10 -21
- package/dist/machines/combobox/index.cjs +11 -17
- package/dist/machines/combobox/index.d.cts +7 -7
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +10 -17
- package/dist/machines/date-picker/index.cjs +15 -24
- package/dist/machines/date-picker/index.d.cts +7 -7
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +13 -23
- package/dist/machines/dialog/index.cjs +12 -17
- package/dist/machines/dialog/index.d.cts +5 -5
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +11 -17
- package/dist/machines/dropdown-menu/index.cjs +12 -18
- package/dist/machines/dropdown-menu/index.d.cts +8 -8
- package/dist/machines/dropdown-menu/index.d.mts +9 -9
- package/dist/machines/dropdown-menu/index.mjs +11 -18
- package/dist/machines/editable/index.cjs +8 -13
- package/dist/machines/editable/index.d.cts +3 -3
- package/dist/machines/editable/index.d.mts +4 -4
- package/dist/machines/editable/index.mjs +7 -13
- package/dist/machines/file-upload/index.cjs +9 -15
- package/dist/machines/file-upload/index.d.cts +4 -4
- package/dist/machines/file-upload/index.d.mts +5 -5
- package/dist/machines/file-upload/index.mjs +8 -15
- package/dist/machines/floating-panel/index.cjs +9 -16
- package/dist/machines/floating-panel/index.d.cts +4 -4
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +8 -16
- package/dist/machines/hover-card/index.cjs +10 -15
- package/dist/machines/hover-card/index.d.cts +5 -5
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +9 -15
- package/dist/machines/image-cropper/index.cjs +8 -16
- package/dist/machines/image-cropper/index.d.cts +2 -2
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +7 -16
- package/dist/machines/listbox/index.cjs +9 -15
- package/dist/machines/listbox/index.d.cts +7 -7
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +8 -15
- package/dist/machines/marquee/index.cjs +7 -13
- package/dist/machines/marquee/index.d.cts +5 -5
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +6 -13
- package/dist/machines/navigation-menu/index.cjs +15 -27
- package/dist/machines/navigation-menu/index.d.cts +3 -3
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +14 -27
- package/dist/machines/number-input/index.cjs +11 -21
- package/dist/machines/number-input/index.d.cts +3 -3
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +10 -22
- package/dist/machines/pagination/index.cjs +7 -13
- package/dist/machines/pagination/index.d.cts +3 -3
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +6 -13
- package/dist/machines/password-input/index.cjs +7 -12
- package/dist/machines/password-input/index.d.cts +3 -3
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +6 -12
- package/dist/machines/pin-input/index.cjs +9 -17
- package/dist/machines/pin-input/index.d.cts +2 -2
- package/dist/machines/pin-input/index.d.mts +3 -3
- package/dist/machines/pin-input/index.mjs +8 -17
- package/dist/machines/popover/index.cjs +13 -18
- package/dist/machines/popover/index.d.cts +6 -6
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +12 -18
- package/dist/machines/presence/index.cjs +6 -9
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +5 -9
- package/dist/machines/progress/index.cjs +7 -12
- package/dist/machines/progress/index.d.cts +3 -3
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +6 -12
- package/dist/machines/qr-code/index.cjs +8 -13
- package/dist/machines/qr-code/index.d.cts +3 -3
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +6 -12
- package/dist/machines/radio-group/index.cjs +8 -13
- package/dist/machines/radio-group/index.d.cts +3 -3
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +7 -13
- package/dist/machines/rating-group/index.cjs +7 -12
- package/dist/machines/rating-group/index.d.cts +2 -2
- package/dist/machines/rating-group/index.d.mts +3 -3
- package/dist/machines/rating-group/index.mjs +6 -12
- package/dist/machines/scroll-area/index.cjs +8 -20
- package/dist/machines/scroll-area/index.d.cts +3 -3
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +7 -20
- package/dist/machines/select/index.cjs +11 -17
- package/dist/machines/select/index.d.cts +8 -8
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +10 -17
- package/dist/machines/separator/index.cjs +7 -12
- package/dist/machines/separator/index.d.cts +2 -2
- package/dist/machines/separator/index.d.mts +3 -3
- package/dist/machines/separator/index.mjs +6 -12
- package/dist/machines/signature-pad/index.cjs +8 -14
- package/dist/machines/signature-pad/index.d.cts +3 -3
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +6 -13
- package/dist/machines/slider/index.cjs +7 -14
- package/dist/machines/slider/index.d.cts +3 -3
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +6 -14
- package/dist/machines/splitter/index.cjs +12 -27
- package/dist/machines/splitter/index.d.cts +2 -2
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +11 -27
- package/dist/machines/steps/index.cjs +7 -12
- package/dist/machines/steps/index.d.cts +3 -3
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +6 -12
- package/dist/machines/switch/index.cjs +8 -13
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +4 -4
- package/dist/machines/switch/index.mjs +7 -13
- package/dist/machines/tabs/index.cjs +7 -12
- package/dist/machines/tabs/index.d.cts +3 -3
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +6 -12
- package/dist/machines/tags-input/index.cjs +11 -17
- package/dist/machines/tags-input/index.d.cts +5 -5
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +10 -17
- package/dist/machines/timer/index.cjs +7 -13
- package/dist/machines/timer/index.d.cts +3 -3
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +6 -13
- package/dist/machines/toast/index.cjs +8 -17
- package/dist/machines/toast/index.d.cts +4 -4
- package/dist/machines/toast/index.d.mts +5 -5
- package/dist/machines/toast/index.mjs +7 -17
- package/dist/machines/toggle/index.cjs +7 -11
- package/dist/machines/toggle/index.d.cts +2 -2
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +6 -11
- package/dist/machines/toggle-group/index.cjs +7 -12
- package/dist/machines/toggle-group/index.d.cts +2 -2
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +6 -12
- package/dist/machines/tooltip/index.cjs +9 -15
- package/dist/machines/tooltip/index.d.cts +4 -4
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +8 -15
- package/dist/machines/tour/index.cjs +11 -20
- package/dist/machines/tour/index.d.cts +6 -6
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +10 -20
- package/dist/machines/tree-view/index.cjs +8 -17
- package/dist/machines/tree-view/index.d.cts +6 -6
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +7 -17
- package/dist/{popper-DxgokNha.mjs → popper-CfOHZlHP.mjs} +3 -9
- package/dist/{popper-CY3ptPbm.cjs → popper-zq1F_iY8.cjs} +24 -30
- package/dist/popper.cjs +5 -5
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +4 -5
- package/dist/{rect-utils-BobE6Wut.mjs → rect-utils-B5xqFvKC.mjs} +2 -24
- package/dist/{rect-utils-DtqZwNtZ.cjs → rect-utils-D3RkAaHK.cjs} +247 -269
- package/dist/rect-utils.cjs +3 -3
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +2 -3
- package/dist/{remove-scroll-DgJgF1C5.cjs → remove-scroll-B8AJyezV.cjs} +7 -9
- package/dist/{remove-scroll-DcPV6nZy.mjs → remove-scroll-DCUb1JPX.mjs} +2 -4
- package/dist/remove-scroll.mjs +1 -1
- package/dist/{scroll-snap-D_M1Q8ZQ.mjs → scroll-snap-De0H9CWU.mjs} +2 -4
- package/dist/{scroll-snap-DpEzlrHP.cjs → scroll-snap-voc0pMJd.cjs} +22 -24
- package/dist/scroll-snap.cjs +4 -4
- package/dist/scroll-snap.mjs +3 -4
- package/dist/{selection-wfybIxD3.d.cts → selection-Bb_ZSVxe.d.cts} +2 -2
- package/dist/{selection-CPTdpru8.d.mts → selection-DdNvrKbj.d.mts} +2 -2
- package/dist/{store-DMXvGOAu.mjs → store-BRn2zWDR.mjs} +1 -7
- package/dist/{store-B9Ewi-zx.cjs → store-k8bn_TOl.cjs} +37 -43
- package/dist/store.cjs +3 -3
- package/dist/store.mjs +2 -3
- package/dist/stringify-state.cjs +3 -4
- package/dist/stringify-state.mjs +1 -3
- package/dist/{tree-collection-1g4DXuqa.d.mts → tree-collection-DjtppzYh.d.cts} +1 -1
- package/dist/{tree-collection-CPcsMvje.d.cts → tree-collection-DlBCued7.d.mts} +1 -1
- package/dist/types.cjs +3 -4
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +2 -4
- package/dist/{utils-CJsQZljH.cjs → utils-ByNiZU8f.cjs} +527 -541
- package/dist/{utils-Vs04rt8f.mjs → utils-VVoZ_v29.mjs} +6 -20
- package/dist/utils.cjs +3 -3
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +2 -3
- package/package.json +3 -3
- package/dist/create-props-l5q5b8Wo.cjs +0 -11
- /package/dist/{color-B3sgFAa6.d.mts → color-tco923EC.d.mts} +0 -0
- /package/dist/{color-BhaNI8oR.d.cts → color-vvN_Cdao.d.cts} +0 -0
- /package/dist/{create-anatomy-UNZ__hxH.d.mts → create-anatomy-BedZVdg0.d.mts} +0 -0
- /package/dist/{data-url-BrR6WHXH.d.cts → data-url-BLUK2DqG.d.cts} +0 -0
- /package/dist/{data-url-lOYkmlVX.d.mts → data-url-Diut2Ch3.d.mts} +0 -0
- /package/dist/{functions-Box4pxDB.d.cts → functions-BL9bYIFn.d.mts} +0 -0
- /package/dist/{functions-Du4c1Rcz.d.mts → functions-Cm8NiR7H.d.cts} +0 -0
- /package/dist/{index-B2rsdD3v.d.cts → index-1L40UHp8.d.mts} +0 -0
- /package/dist/{index-DLbWwJUT.d.mts → index-8xpMF4wX.d.mts} +0 -0
- /package/dist/{index-DIJJrhP_.d.mts → index-BO-Z3fhz.d.cts} +0 -0
- /package/dist/{index-CafmAesU.d.mts → index-BVFlU3b9.d.mts} +0 -0
- /package/dist/{index-CXu0elLS.d.mts → index-CGNNiDyE.d.mts} +0 -0
- /package/dist/{index-D1U_WMQ9.d.cts → index-CLRsezW5.d.cts} +0 -0
- /package/dist/{index-BhEktN_V.d.mts → index-DHp3-EkH.d.mts} +0 -0
- /package/dist/{index-Cf0hysnI.d.cts → index-DzWGFhcS.d.cts} +0 -0
- /package/dist/{node-BGWAyUGo.d.mts → node--dRqVsA-.d.cts} +0 -0
- /package/dist/{node-D8Ztr9Hg.d.cts → node-DkWL2ywA.d.mts} +0 -0
- /package/dist/{raf-B8md2utS.d.mts → raf-CrnFMY1g.d.mts} +0 -0
- /package/dist/{raf-DWPAf0Nd.d.cts → raf-v6M-OEna.d.cts} +0 -0
- /package/dist/{typeahead-BhNtyjQC.d.cts → typeahead-Bbeb1fAR.d.mts} +0 -0
- /package/dist/{typeahead-D4TUCBly.d.mts → typeahead-DMooWbbX.d.cts} +0 -0
- /package/dist/{types-CBWaEVU4.d.cts → types-9uw8LHpE.d.mts} +0 -0
- /package/dist/{types-BM4oVvZZ.d.mts → types-B24gMTKq.d.cts} +0 -0
- /package/dist/{types-DTZZ5wsp.d.cts → types-BQMZ4iuP.d.cts} +0 -0
- /package/dist/{types-BI1JrN1V.d.mts → types-CLXYEgfm.d.cts} +0 -0
- /package/dist/{types-CW-uU8Nz.d.mts → types-Cctd5dol.d.mts} +0 -0
- /package/dist/{types-oR0sELNB.d.cts → types-CylWsfOz.d.cts} +0 -0
- /package/dist/{types-D0tsc4Jo.d.mts → types-D-7AMgSE.d.cts} +0 -0
- /package/dist/{types-DE9w-zbc.d.cts → types-DEn9MoSw.d.cts} +0 -0
- /package/dist/{types-Ct9amXkj.d.cts → types-DU764tY_.d.mts} +0 -0
- /package/dist/{types-fB7F7BBP.d.cts → types-DUM9rzfD.d.mts} +0 -0
- /package/dist/{wait-for-CVZu6XNU.d.mts → wait-for-CV7JYddH.d.mts} +0 -0
- /package/dist/{wait-for-D5gBQyam.d.cts → wait-for-DGDBtAM2.d.cts} +0 -0
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { N as isValueWithinRange, bt as fromLength, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, s as memo } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
6
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { N as isValueWithinRange, bt as fromLength, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
6
|
//#region src/machines/steps/steps.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("steps").parts("root", "list", "item", "trigger", "indicator", "separator", "content", "nextTrigger", "prevTrigger", "progress");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/steps/steps.dom.ts
|
|
13
11
|
const getRootId = (ctx) => ctx.ids?.root ?? `steps:${ctx.id}`;
|
|
14
12
|
const getListId = (ctx) => ctx.ids?.list ?? `steps:${ctx.id}:list`;
|
|
15
13
|
const getTriggerId = (ctx, index) => ctx.ids?.triggerId?.(index) ?? `steps:${ctx.id}:trigger:${index}`;
|
|
16
14
|
const getContentId = (ctx, index) => ctx.ids?.contentId?.(index) ?? `steps:${ctx.id}:content:${index}`;
|
|
17
|
-
|
|
18
15
|
//#endregion
|
|
19
16
|
//#region src/machines/steps/steps.connect.ts
|
|
20
17
|
function connect(service, normalize) {
|
|
@@ -212,7 +209,6 @@ function connect(service, normalize) {
|
|
|
212
209
|
}
|
|
213
210
|
};
|
|
214
211
|
}
|
|
215
|
-
|
|
216
212
|
//#endregion
|
|
217
213
|
//#region src/machines/steps/steps.machine.ts
|
|
218
214
|
const machine = createMachine({
|
|
@@ -305,7 +301,6 @@ const machine = createMachine({
|
|
|
305
301
|
const validateStepIndex = (count, step) => {
|
|
306
302
|
if (!isValueWithinRange(step, 0, count)) throw new RangeError(`[sprawlify-js/steps] step index ${step} is out of bounds`);
|
|
307
303
|
};
|
|
308
|
-
|
|
309
304
|
//#endregion
|
|
310
305
|
//#region src/machines/steps/steps.props.ts
|
|
311
306
|
const props = createProps()([
|
|
@@ -326,6 +321,5 @@ const props = createProps()([
|
|
|
326
321
|
"defaultStep"
|
|
327
322
|
]);
|
|
328
323
|
const splitProps = createSplitProps(props);
|
|
329
|
-
|
|
330
324
|
//#endregion
|
|
331
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
325
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
+
const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
|
|
4
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
6
|
+
const require_focus_visible = require("../../focus-visible-CqHoOOjw.cjs");
|
|
7
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/switch/switch.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("switch").parts("root", "label", "control", "thumb");
|
|
10
10
|
const parts = anatomy.build();
|
|
11
|
-
|
|
12
11
|
//#endregion
|
|
13
12
|
//#region src/machines/switch/switch.dom.ts
|
|
14
13
|
const getRootId = (ctx) => ctx.ids?.root ?? `switch:${ctx.id}`;
|
|
@@ -18,7 +17,6 @@ const getControlId = (ctx) => ctx.ids?.control ?? `switch:${ctx.id}:control`;
|
|
|
18
17
|
const getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `switch:${ctx.id}:input`;
|
|
19
18
|
const getRootEl = (ctx) => ctx.getById(getRootId(ctx));
|
|
20
19
|
const getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
21
|
//#region src/machines/switch/switch.connect.ts
|
|
24
22
|
function connect(service, normalize) {
|
|
@@ -160,7 +158,6 @@ function connect(service, normalize) {
|
|
|
160
158
|
}
|
|
161
159
|
};
|
|
162
160
|
}
|
|
163
|
-
|
|
164
161
|
//#endregion
|
|
165
162
|
//#region src/machines/switch/switch.machine.ts
|
|
166
163
|
const { not } = require_core.createGuards();
|
|
@@ -277,7 +274,6 @@ const machine = require_core.createMachine({
|
|
|
277
274
|
}
|
|
278
275
|
}
|
|
279
276
|
});
|
|
280
|
-
|
|
281
277
|
//#endregion
|
|
282
278
|
//#region src/machines/switch/switch.props.ts
|
|
283
279
|
const props = require_create_props.createProps()([
|
|
@@ -298,10 +294,9 @@ const props = require_create_props.createProps()([
|
|
|
298
294
|
"value"
|
|
299
295
|
]);
|
|
300
296
|
const splitProps = require_utils.createSplitProps(props);
|
|
301
|
-
|
|
302
297
|
//#endregion
|
|
303
298
|
exports.anatomy = anatomy;
|
|
304
299
|
exports.connect = connect;
|
|
305
300
|
exports.machine = machine;
|
|
306
301
|
exports.props = props;
|
|
307
|
-
exports.splitProps = splitProps;
|
|
302
|
+
exports.splitProps = splitProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
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-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "thumb" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -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-BedZVdg0.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "thumb" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { T as trackPress, a as visuallyHiddenStyle, at as setElementChecked, pt as getEventTarget, rt as dispatchInputCheckedEvent, st as trackFormControl, yn as dataAttr, zt as isSafari } from "../../dom-query-
|
|
3
|
-
import { 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-
|
|
7
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { T as trackPress, a as visuallyHiddenStyle, at as setElementChecked, pt as getEventTarget, rt as dispatchInputCheckedEvent, st as trackFormControl, yn as dataAttr, zt as isSafari } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-CSuBQ5QZ.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
8
7
|
//#region src/machines/switch/switch.anatomy.ts
|
|
9
8
|
const anatomy = createAnatomy("switch").parts("root", "label", "control", "thumb");
|
|
10
9
|
const parts = anatomy.build();
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
11
|
//#region src/machines/switch/switch.dom.ts
|
|
14
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `switch:${ctx.id}`;
|
|
@@ -18,7 +16,6 @@ const getControlId = (ctx) => ctx.ids?.control ?? `switch:${ctx.id}:control`;
|
|
|
18
16
|
const getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `switch:${ctx.id}:input`;
|
|
19
17
|
const getRootEl = (ctx) => ctx.getById(getRootId(ctx));
|
|
20
18
|
const getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
20
|
//#region src/machines/switch/switch.connect.ts
|
|
24
21
|
function connect(service, normalize) {
|
|
@@ -160,7 +157,6 @@ function connect(service, normalize) {
|
|
|
160
157
|
}
|
|
161
158
|
};
|
|
162
159
|
}
|
|
163
|
-
|
|
164
160
|
//#endregion
|
|
165
161
|
//#region src/machines/switch/switch.machine.ts
|
|
166
162
|
const { not } = createGuards();
|
|
@@ -277,7 +273,6 @@ const machine = createMachine({
|
|
|
277
273
|
}
|
|
278
274
|
}
|
|
279
275
|
});
|
|
280
|
-
|
|
281
276
|
//#endregion
|
|
282
277
|
//#region src/machines/switch/switch.props.ts
|
|
283
278
|
const props = createProps()([
|
|
@@ -298,6 +293,5 @@ const props = createProps()([
|
|
|
298
293
|
"value"
|
|
299
294
|
]);
|
|
300
295
|
const splitProps = createSplitProps(props);
|
|
301
|
-
|
|
302
296
|
//#endregion
|
|
303
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
297
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
+
const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
|
|
4
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
6
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/tabs/tabs.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("tabs").parts("root", "list", "trigger", "content", "indicator");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/tabs/tabs.dom.ts
|
|
13
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `tabs:${ctx.id}`;
|
|
@@ -36,7 +35,6 @@ const getOffsetRect = (el) => ({
|
|
|
36
35
|
const getRectByValue = (ctx, value) => {
|
|
37
36
|
return getOffsetRect(require_dom_query.itemById(getElements(ctx), getTriggerId(ctx, value)));
|
|
38
37
|
};
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
39
|
//#region src/machines/tabs/tabs.connect.ts
|
|
42
40
|
function connect(service, normalize) {
|
|
@@ -256,7 +254,6 @@ function connect(service, normalize) {
|
|
|
256
254
|
}
|
|
257
255
|
};
|
|
258
256
|
}
|
|
259
|
-
|
|
260
257
|
//#endregion
|
|
261
258
|
//#region src/machines/tabs/tabs.machine.ts
|
|
262
259
|
const { createMachine } = require_core.setup();
|
|
@@ -470,7 +467,6 @@ const machine = createMachine({
|
|
|
470
467
|
}
|
|
471
468
|
}
|
|
472
469
|
});
|
|
473
|
-
|
|
474
470
|
//#endregion
|
|
475
471
|
//#region src/machines/tabs/tabs.props.ts
|
|
476
472
|
const props = require_create_props.createProps()([
|
|
@@ -495,7 +491,6 @@ const triggerProps = require_create_props.createProps()(["disabled", "value"]);
|
|
|
495
491
|
const splitTriggerProps = require_utils.createSplitProps(triggerProps);
|
|
496
492
|
const contentProps = require_create_props.createProps()(["value"]);
|
|
497
493
|
const splitContentProps = require_utils.createSplitProps(contentProps);
|
|
498
|
-
|
|
499
494
|
//#endregion
|
|
500
495
|
exports.anatomy = anatomy;
|
|
501
496
|
exports.connect = connect;
|
|
@@ -505,4 +500,4 @@ exports.props = props;
|
|
|
505
500
|
exports.splitContentProps = splitContentProps;
|
|
506
501
|
exports.splitProps = splitProps;
|
|
507
502
|
exports.splitTriggerProps = splitTriggerProps;
|
|
508
|
-
exports.triggerProps = triggerProps;
|
|
503
|
+
exports.triggerProps = triggerProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
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-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "list">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/tabs/tabs.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-BedZVdg0.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "list">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/tabs/tabs.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, L as clickIfLink, St as isOpeningInNewTab, W as raf, Y as getFocusables, Zt as contains, b as nextById, ht as isComposingEvent, m as resizeObserverBorderBox, on as isAnchorElement, pt as getEventTarget, ut as getEventKey, x as prevById, y as itemById, yn as dataAttr, zt as isSafari } from "../../dom-query-
|
|
3
|
-
import { H as toPx, W as callAll, ft as isEqual, u as createSplitProps, vt as first, wt as last } from "../../utils-
|
|
4
|
-
import { o as setup } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
6
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { C as queryAll, L as clickIfLink, St as isOpeningInNewTab, W as raf, Y as getFocusables, Zt as contains, b as nextById, ht as isComposingEvent, m as resizeObserverBorderBox, on as isAnchorElement, pt as getEventTarget, ut as getEventKey, x as prevById, y as itemById, yn as dataAttr, zt as isSafari } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { H as toPx, W as callAll, ft as isEqual, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { o as setup } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
6
|
//#region src/machines/tabs/tabs.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("tabs").parts("root", "list", "trigger", "content", "indicator");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/tabs/tabs.dom.ts
|
|
13
11
|
const getRootId = (ctx) => ctx.ids?.root ?? `tabs:${ctx.id}`;
|
|
@@ -36,7 +34,6 @@ const getOffsetRect = (el) => ({
|
|
|
36
34
|
const getRectByValue = (ctx, value) => {
|
|
37
35
|
return getOffsetRect(itemById(getElements(ctx), getTriggerId(ctx, value)));
|
|
38
36
|
};
|
|
39
|
-
|
|
40
37
|
//#endregion
|
|
41
38
|
//#region src/machines/tabs/tabs.connect.ts
|
|
42
39
|
function connect(service, normalize) {
|
|
@@ -256,7 +253,6 @@ function connect(service, normalize) {
|
|
|
256
253
|
}
|
|
257
254
|
};
|
|
258
255
|
}
|
|
259
|
-
|
|
260
256
|
//#endregion
|
|
261
257
|
//#region src/machines/tabs/tabs.machine.ts
|
|
262
258
|
const { createMachine } = setup();
|
|
@@ -470,7 +466,6 @@ const machine = createMachine({
|
|
|
470
466
|
}
|
|
471
467
|
}
|
|
472
468
|
});
|
|
473
|
-
|
|
474
469
|
//#endregion
|
|
475
470
|
//#region src/machines/tabs/tabs.props.ts
|
|
476
471
|
const props = createProps()([
|
|
@@ -495,6 +490,5 @@ const triggerProps = createProps()(["disabled", "value"]);
|
|
|
495
490
|
const splitTriggerProps = createSplitProps(triggerProps);
|
|
496
491
|
const contentProps = createProps()(["value"]);
|
|
497
492
|
const splitContentProps = createSplitProps(contentProps);
|
|
498
|
-
|
|
499
493
|
//#endregion
|
|
500
|
-
export { anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
|
|
494
|
+
export { anatomy, connect, contentProps, machine, props, splitContentProps, splitProps, splitTriggerProps, triggerProps };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
+
const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
|
|
4
|
+
const require_auto_resize = require("../../auto-resize-DzPXdyR-.cjs");
|
|
5
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
7
|
+
const require_interact_outside = require("../../interact-outside-DRaFGdMg.cjs");
|
|
8
|
+
const require_live_region = require("../../live-region-TGReV9nm.cjs");
|
|
9
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
10
10
|
//#region src/machines/tags-input/tags-input.anatomy.ts
|
|
11
11
|
const anatomy = require_create_anatomy.createAnatomy("tagsInput").parts("root", "label", "control", "input", "clearTrigger", "item", "itemPreview", "itemInput", "itemText", "itemDeleteTrigger");
|
|
12
12
|
const parts = anatomy.build();
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/machines/tags-input/tags-input.dom.ts
|
|
16
15
|
const getRootId = (ctx) => ctx.ids?.root ?? `tags-input:${ctx.id}`;
|
|
@@ -51,7 +50,6 @@ const dispatchInputEvent = (ctx, value) => {
|
|
|
51
50
|
if (!inputEl) return;
|
|
52
51
|
require_dom_query.dispatchInputValueEvent(inputEl, { value });
|
|
53
52
|
};
|
|
54
|
-
|
|
55
53
|
//#endregion
|
|
56
54
|
//#region src/machines/tags-input/tags-input.connect.ts
|
|
57
55
|
function connect(service, normalize) {
|
|
@@ -410,7 +408,6 @@ function endsWith(str, del) {
|
|
|
410
408
|
if (typeof del === "string") return str.endsWith(del);
|
|
411
409
|
return new RegExp(`${del.source}$`).test(str);
|
|
412
410
|
}
|
|
413
|
-
|
|
414
411
|
//#endregion
|
|
415
412
|
//#region src/machines/tags-input/tags-input.machine.ts
|
|
416
413
|
const { and, not, or } = require_core.createGuards();
|
|
@@ -719,9 +716,8 @@ const machine = require_core.createMachine({
|
|
|
719
716
|
isAtMax: ({ computed }) => computed("isAtMax"),
|
|
720
717
|
hasHighlightedTag: ({ context }) => context.get("highlightedTagId") != null,
|
|
721
718
|
isFirstTagHighlighted: ({ context, scope }) => {
|
|
722
|
-
const value = context.get("value");
|
|
723
719
|
return getItemId(scope, {
|
|
724
|
-
value: value[0],
|
|
720
|
+
value: context.get("value")[0],
|
|
725
721
|
index: 0
|
|
726
722
|
}) === context.get("highlightedTagId");
|
|
727
723
|
},
|
|
@@ -1074,7 +1070,6 @@ const machine = require_core.createMachine({
|
|
|
1074
1070
|
}
|
|
1075
1071
|
}
|
|
1076
1072
|
});
|
|
1077
|
-
|
|
1078
1073
|
//#endregion
|
|
1079
1074
|
//#region src/machines/tags-input/tags-input.props.ts
|
|
1080
1075
|
const props = require_create_props.createProps()([
|
|
@@ -1118,7 +1113,6 @@ const itemProps = require_create_props.createProps()([
|
|
|
1118
1113
|
"value"
|
|
1119
1114
|
]);
|
|
1120
1115
|
const splitItemProps = require_utils.createSplitProps(itemProps);
|
|
1121
|
-
|
|
1122
1116
|
//#endregion
|
|
1123
1117
|
exports.anatomy = anatomy;
|
|
1124
1118
|
exports.connect = connect;
|
|
@@ -1126,4 +1120,4 @@ exports.itemProps = itemProps;
|
|
|
1126
1120
|
exports.machine = machine;
|
|
1127
1121
|
exports.props = props;
|
|
1128
1122
|
exports.splitItemProps = splitItemProps;
|
|
1129
|
-
exports.splitProps = splitProps;
|
|
1123
|
+
exports.splitProps = splitProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
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-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as LiveRegion } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
5
|
+
import { t as LiveRegion } from "../../index-BO-Z3fhz.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "itemText" | "label" | "input" | "control" | "clearTrigger" | "itemDeleteTrigger" | "itemPreview" | "itemInput">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as LiveRegion } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
5
|
+
import { t as LiveRegion } from "../../index-1L40UHp8.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "itemText" | "label" | "input" | "control" | "clearTrigger" | "itemDeleteTrigger" | "itemPreview" | "itemInput">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, W as raf, Zt as contains, b as nextById, bn as isCaretAtStart, bt as isLeftClick, ht as isComposingEvent, it as dispatchInputValueEvent, mt as getNativeEvent, ot as setElementValue, st as trackFormControl, ut as getEventKey, v as indexOfId, vn as ariaAttr, x as prevById, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { n as autoResizeInput } from "../../auto-resize-
|
|
4
|
-
import { Nt as uniq, ft as isEqual, i as warn, jt as removeAt, u as createSplitProps } from "../../utils-
|
|
5
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
6
|
-
import { t as trackInteractOutside } from "../../interact-outside-
|
|
7
|
-
import { t as createLiveRegion } from "../../live-region-
|
|
8
|
-
import { t as createProps } from "../../create-props-
|
|
9
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { C as queryAll, W as raf, Zt as contains, b as nextById, bn as isCaretAtStart, bt as isLeftClick, ht as isComposingEvent, it as dispatchInputValueEvent, mt as getNativeEvent, ot as setElementValue, st as trackFormControl, ut as getEventKey, v as indexOfId, vn as ariaAttr, x as prevById, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { n as autoResizeInput } from "../../auto-resize-Bjzuo5Lh.mjs";
|
|
4
|
+
import { Nt as uniq, ft as isEqual, i as warn, jt as removeAt, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
5
|
+
import { a as createMachine, i as createGuards } from "../../core-DfVajPnu.mjs";
|
|
6
|
+
import { t as trackInteractOutside } from "../../interact-outside-C-8lOhpV.mjs";
|
|
7
|
+
import { t as createLiveRegion } from "../../live-region-TgEDzvS4.mjs";
|
|
8
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
9
|
//#region src/machines/tags-input/tags-input.anatomy.ts
|
|
11
10
|
const anatomy = createAnatomy("tagsInput").parts("root", "label", "control", "input", "clearTrigger", "item", "itemPreview", "itemInput", "itemText", "itemDeleteTrigger");
|
|
12
11
|
const parts = anatomy.build();
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
//#region src/machines/tags-input/tags-input.dom.ts
|
|
16
14
|
const getRootId = (ctx) => ctx.ids?.root ?? `tags-input:${ctx.id}`;
|
|
@@ -51,7 +49,6 @@ const dispatchInputEvent = (ctx, value) => {
|
|
|
51
49
|
if (!inputEl) return;
|
|
52
50
|
dispatchInputValueEvent(inputEl, { value });
|
|
53
51
|
};
|
|
54
|
-
|
|
55
52
|
//#endregion
|
|
56
53
|
//#region src/machines/tags-input/tags-input.connect.ts
|
|
57
54
|
function connect(service, normalize) {
|
|
@@ -410,7 +407,6 @@ function endsWith(str, del) {
|
|
|
410
407
|
if (typeof del === "string") return str.endsWith(del);
|
|
411
408
|
return new RegExp(`${del.source}$`).test(str);
|
|
412
409
|
}
|
|
413
|
-
|
|
414
410
|
//#endregion
|
|
415
411
|
//#region src/machines/tags-input/tags-input.machine.ts
|
|
416
412
|
const { and, not, or } = createGuards();
|
|
@@ -719,9 +715,8 @@ const machine = createMachine({
|
|
|
719
715
|
isAtMax: ({ computed }) => computed("isAtMax"),
|
|
720
716
|
hasHighlightedTag: ({ context }) => context.get("highlightedTagId") != null,
|
|
721
717
|
isFirstTagHighlighted: ({ context, scope }) => {
|
|
722
|
-
const value = context.get("value");
|
|
723
718
|
return getItemId(scope, {
|
|
724
|
-
value: value[0],
|
|
719
|
+
value: context.get("value")[0],
|
|
725
720
|
index: 0
|
|
726
721
|
}) === context.get("highlightedTagId");
|
|
727
722
|
},
|
|
@@ -1074,7 +1069,6 @@ const machine = createMachine({
|
|
|
1074
1069
|
}
|
|
1075
1070
|
}
|
|
1076
1071
|
});
|
|
1077
|
-
|
|
1078
1072
|
//#endregion
|
|
1079
1073
|
//#region src/machines/tags-input/tags-input.props.ts
|
|
1080
1074
|
const props = createProps()([
|
|
@@ -1118,6 +1112,5 @@ const itemProps = createProps()([
|
|
|
1118
1112
|
"value"
|
|
1119
1113
|
]);
|
|
1120
1114
|
const splitItemProps = createSplitProps(itemProps);
|
|
1121
|
-
|
|
1122
1115
|
//#endregion
|
|
1123
|
-
export { anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
|
|
1116
|
+
export { anatomy, connect, itemProps, machine, props, splitItemProps, splitProps };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
require(
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
+
require("../../dom-query-6Wt-Tikf.cjs");
|
|
4
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
6
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/timer/timer.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("timer").parts("root", "area", "control", "item", "itemValue", "itemLabel", "actionTrigger", "separator");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/timer/timer.dom.ts
|
|
13
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `timer:${ctx.id}:root`;
|
|
14
13
|
const getAreaId = (ctx) => ctx.ids?.area ?? `timer:${ctx.id}:area`;
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
//#region src/machines/timer/timer.connect.ts
|
|
18
16
|
const validActions = new Set([
|
|
@@ -113,7 +111,6 @@ function connect(service, normalize) {
|
|
|
113
111
|
}
|
|
114
112
|
};
|
|
115
113
|
}
|
|
116
|
-
|
|
117
114
|
//#endregion
|
|
118
115
|
//#region src/machines/timer/timer.machine.ts
|
|
119
116
|
const machine = require_core.createMachine({
|
|
@@ -283,7 +280,6 @@ function validateProps(props) {
|
|
|
283
280
|
}
|
|
284
281
|
if (countdown && targetMs == null && startMs != null && startMs <= 0) throw new Error(`[timer] Invalid countdown configuration: startMs (${startMs}) must be greater than 0 when no targetMs is provided.`);
|
|
285
282
|
}
|
|
286
|
-
|
|
287
283
|
//#endregion
|
|
288
284
|
//#region src/machines/timer/timer.parse.ts
|
|
289
285
|
const segments = new Set([
|
|
@@ -303,7 +299,6 @@ function parse(date) {
|
|
|
303
299
|
}
|
|
304
300
|
throw new Error("Invalid date");
|
|
305
301
|
}
|
|
306
|
-
|
|
307
302
|
//#endregion
|
|
308
303
|
//#region src/machines/timer/timer.props.ts
|
|
309
304
|
const props = require_create_props.createProps()([
|
|
@@ -319,11 +314,10 @@ const props = require_create_props.createProps()([
|
|
|
319
314
|
"targetMs"
|
|
320
315
|
]);
|
|
321
316
|
const splitProps = require_utils.createSplitProps(props);
|
|
322
|
-
|
|
323
317
|
//#endregion
|
|
324
318
|
exports.anatomy = anatomy;
|
|
325
319
|
exports.connect = connect;
|
|
326
320
|
exports.machine = machine;
|
|
327
321
|
exports.parse = parse;
|
|
328
322
|
exports.props = props;
|
|
329
|
-
exports.splitProps = splitProps;
|
|
323
|
+
exports.splitProps = splitProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "separator" | "control" | "area" | "itemLabel" | "actionTrigger" | "itemValue">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -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, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "separator" | "control" | "area" | "itemLabel" | "actionTrigger" | "itemValue">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|