@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,13 +1,11 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
6
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
6
|
//#region src/machines/marquee/marquee.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("marquee").parts("root", "viewport", "content", "edge", "item");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/marquee/marquee.dom.ts
|
|
13
11
|
const dom = {
|
|
@@ -18,7 +16,6 @@ const dom = {
|
|
|
18
16
|
getViewportEl: (ctx) => ctx.getById(dom.getViewportId(ctx)),
|
|
19
17
|
getContentEl: (ctx, index) => ctx.getById(dom.getContentId(ctx, index))
|
|
20
18
|
};
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
20
|
//#region src/machines/marquee/marquee.utils.ts
|
|
24
21
|
const getEdgePositionStyles = (options) => {
|
|
@@ -52,7 +49,6 @@ const getMarqueeTranslate = (options) => {
|
|
|
52
49
|
if (side === "bottom") return "100%";
|
|
53
50
|
return side === "start" && dir === "ltr" || side === "end" && dir === "rtl" ? "-100%" : "100%";
|
|
54
51
|
};
|
|
55
|
-
|
|
56
52
|
//#endregion
|
|
57
53
|
//#region src/machines/marquee/marquee.connect.ts
|
|
58
54
|
function connect(service, normalize) {
|
|
@@ -195,7 +191,6 @@ function connect(service, normalize) {
|
|
|
195
191
|
}
|
|
196
192
|
};
|
|
197
193
|
}
|
|
198
|
-
|
|
199
194
|
//#endregion
|
|
200
195
|
//#region src/machines/marquee/marquee.machine.ts
|
|
201
196
|
const machine = createMachine({
|
|
@@ -362,7 +357,6 @@ function calculateDuration(options) {
|
|
|
362
357
|
if (autoFill) return contentSize * multiplier / speed;
|
|
363
358
|
return contentSize < rootSize ? rootSize / speed : contentSize / speed;
|
|
364
359
|
}
|
|
365
|
-
|
|
366
360
|
//#endregion
|
|
367
361
|
//#region src/machines/marquee/marquee.props.ts
|
|
368
362
|
const props = createProps()([
|
|
@@ -386,6 +380,5 @@ const props = createProps()([
|
|
|
386
380
|
"translations"
|
|
387
381
|
]);
|
|
388
382
|
const splitProps = createSplitProps(props);
|
|
389
|
-
|
|
390
383
|
//#endregion
|
|
391
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
384
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
require(
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
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
|
+
require("../../interact-outside-DRaFGdMg.cjs");
|
|
7
|
+
const require_dismissable = require("../../dismissable-DPXx0m0m.cjs");
|
|
8
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
9
9
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.ts
|
|
10
10
|
const anatomy = require_create_anatomy.createAnatomy("navigation-menu").parts("root", "viewportPositioner", "viewport", "trigger", "content", "list", "item", "link", "indicator", "itemIndicator", "arrow");
|
|
11
11
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region src/machines/navigation-menu/navigation-menu.dom.ts
|
|
15
14
|
const getRootId = (ctx) => ctx.ids?.root ?? `navigation-menu:${ctx.id}`;
|
|
@@ -109,7 +108,6 @@ function removeFromTabOrder(candidates) {
|
|
|
109
108
|
});
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
|
-
|
|
113
111
|
//#endregion
|
|
114
112
|
//#region src/machines/navigation-menu/navigation-menu.connect.ts
|
|
115
113
|
function connect(service, normalize) {
|
|
@@ -405,8 +403,7 @@ function connect(service, normalize) {
|
|
|
405
403
|
if (isTabKey) {
|
|
406
404
|
const focusedElement = scope.getActiveElement();
|
|
407
405
|
const index = candidates.findIndex((candidate) => candidate === focusedElement);
|
|
408
|
-
|
|
409
|
-
if (focusFirst(scope, nextCandidates)) event.preventDefault();
|
|
406
|
+
if (focusFirst(scope, event.shiftKey ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length))) event.preventDefault();
|
|
410
407
|
else {
|
|
411
408
|
getTriggerProxyEl(scope, props.value)?.focus();
|
|
412
409
|
return;
|
|
@@ -479,7 +476,6 @@ function connect(service, normalize) {
|
|
|
479
476
|
}
|
|
480
477
|
};
|
|
481
478
|
}
|
|
482
|
-
|
|
483
479
|
//#endregion
|
|
484
480
|
//#region src/machines/navigation-menu/navigation-menu.utils.ts
|
|
485
481
|
function setCloseTimeout(refs, context, prop) {
|
|
@@ -519,7 +515,6 @@ function clearAllOpenTimeouts(refs) {
|
|
|
519
515
|
});
|
|
520
516
|
refs.set("openTimeoutIds", {});
|
|
521
517
|
}
|
|
522
|
-
|
|
523
518
|
//#endregion
|
|
524
519
|
//#region src/machines/navigation-menu/navigation-menu.machine.ts
|
|
525
520
|
const { createMachine } = require_core.setup();
|
|
@@ -617,8 +612,7 @@ const machine = createMachine({
|
|
|
617
612
|
implementations: {
|
|
618
613
|
guards: { isItemOpen: ({ context, event }) => context.get("value") === event.value },
|
|
619
614
|
effects: { trackDocumentResize({ scope, send }) {
|
|
620
|
-
|
|
621
|
-
return trackResizeObserver([doc.body, getRootEl(scope)], () => {
|
|
615
|
+
return trackResizeObserver([scope.getDoc().body, getRootEl(scope)], () => {
|
|
622
616
|
send({ type: "VIEWPORT.POSITION" });
|
|
623
617
|
});
|
|
624
618
|
} },
|
|
@@ -728,8 +722,7 @@ const machine = createMachine({
|
|
|
728
722
|
};
|
|
729
723
|
context.set("triggerRect", rect);
|
|
730
724
|
};
|
|
731
|
-
const
|
|
732
|
-
const triggerResizeObserver = trackResizeObserver([node, listEl], exec);
|
|
725
|
+
const triggerResizeObserver = trackResizeObserver([node, getListEl(scope)], exec);
|
|
733
726
|
refs.set("triggerResizeObserverCleanup", triggerResizeObserver);
|
|
734
727
|
},
|
|
735
728
|
syncMotionAttribute({ context, scope }) {
|
|
@@ -738,8 +731,7 @@ const machine = createMachine({
|
|
|
738
731
|
},
|
|
739
732
|
focusFirstTabbableEl({ event, scope, context }) {
|
|
740
733
|
require_dom_query.raf(() => {
|
|
741
|
-
const
|
|
742
|
-
const candidates = getTabbableEls(scope, value);
|
|
734
|
+
const candidates = getTabbableEls(scope, event.value || context.get("value"));
|
|
743
735
|
const elements = event.side === "start" ? candidates : candidates.reverse();
|
|
744
736
|
if (elements.length) focusFirst(scope, elements);
|
|
745
737
|
});
|
|
@@ -754,8 +746,7 @@ const machine = createMachine({
|
|
|
754
746
|
})?.focus();
|
|
755
747
|
},
|
|
756
748
|
focusTrigger({ scope, event, context }) {
|
|
757
|
-
|
|
758
|
-
getTriggerEl(scope, value)?.focus();
|
|
749
|
+
getTriggerEl(scope, event.value ?? context.get("value"))?.focus();
|
|
759
750
|
},
|
|
760
751
|
focusTriggerIfNeeded({ event, scope }) {
|
|
761
752
|
const value = event.value;
|
|
@@ -763,8 +754,7 @@ const machine = createMachine({
|
|
|
763
754
|
getTriggerEl(scope, value)?.focus();
|
|
764
755
|
},
|
|
765
756
|
removeFromTabOrder({ event, scope, refs, context }) {
|
|
766
|
-
const
|
|
767
|
-
const candidates = getTabbableEls(scope, value);
|
|
757
|
+
const candidates = getTabbableEls(scope, event.value ?? context.get("value"));
|
|
768
758
|
if (candidates.length) refs.set("restoreContentTabOrder", removeFromTabOrder(candidates));
|
|
769
759
|
},
|
|
770
760
|
restoreTabOrder({ refs }) {
|
|
@@ -833,7 +823,6 @@ const machine = createMachine({
|
|
|
833
823
|
}
|
|
834
824
|
}
|
|
835
825
|
});
|
|
836
|
-
|
|
837
826
|
//#endregion
|
|
838
827
|
//#region src/machines/navigation-menu/navigation-menu.props.ts
|
|
839
828
|
const props = require_create_props.createProps()([
|
|
@@ -852,10 +841,9 @@ const props = require_create_props.createProps()([
|
|
|
852
841
|
"disablePointerLeaveClose"
|
|
853
842
|
]);
|
|
854
843
|
const splitProps = require_utils.createSplitProps(props);
|
|
855
|
-
|
|
856
844
|
//#endregion
|
|
857
845
|
exports.anatomy = anatomy;
|
|
858
846
|
exports.connect = connect;
|
|
859
847
|
exports.machine = machine;
|
|
860
848
|
exports.props = props;
|
|
861
|
-
exports.splitProps = splitProps;
|
|
849
|
+
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 { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, 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 { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "item" | "itemIndicator" | "arrow" | "viewport" | "link" | "list" | "viewportPositioner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/navigation-menu/navigation-menu.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 { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, 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 { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "item" | "itemIndicator" | "arrow" | "viewport" | "link" | "list" | "viewportPositioner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/navigation-menu/navigation-menu.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, R as navigate, W as raf, Zt as contains, a as visuallyHiddenStyle, ct as addDomEvent, et as getTabbables, in as getWindow, wt as isSelfTarget, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { H as toPx, W as callAll, n as ensureProps, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { o as setup } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
7
|
-
import { t as createProps } from "../../create-props-
|
|
8
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { C as queryAll, R as navigate, W as raf, Zt as contains, a as visuallyHiddenStyle, ct as addDomEvent, et as getTabbables, in as getWindow, wt as isSelfTarget, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { H as toPx, W as callAll, n as ensureProps, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { o as setup } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import "../../interact-outside-C-8lOhpV.mjs";
|
|
6
|
+
import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
|
|
7
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
9
8
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.ts
|
|
10
9
|
const anatomy = createAnatomy("navigation-menu").parts("root", "viewportPositioner", "viewport", "trigger", "content", "list", "item", "link", "indicator", "itemIndicator", "arrow");
|
|
11
10
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
11
|
//#endregion
|
|
14
12
|
//#region src/machines/navigation-menu/navigation-menu.dom.ts
|
|
15
13
|
const getRootId = (ctx) => ctx.ids?.root ?? `navigation-menu:${ctx.id}`;
|
|
@@ -109,7 +107,6 @@ function removeFromTabOrder(candidates) {
|
|
|
109
107
|
});
|
|
110
108
|
};
|
|
111
109
|
}
|
|
112
|
-
|
|
113
110
|
//#endregion
|
|
114
111
|
//#region src/machines/navigation-menu/navigation-menu.connect.ts
|
|
115
112
|
function connect(service, normalize) {
|
|
@@ -405,8 +402,7 @@ function connect(service, normalize) {
|
|
|
405
402
|
if (isTabKey) {
|
|
406
403
|
const focusedElement = scope.getActiveElement();
|
|
407
404
|
const index = candidates.findIndex((candidate) => candidate === focusedElement);
|
|
408
|
-
|
|
409
|
-
if (focusFirst(scope, nextCandidates)) event.preventDefault();
|
|
405
|
+
if (focusFirst(scope, event.shiftKey ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length))) event.preventDefault();
|
|
410
406
|
else {
|
|
411
407
|
getTriggerProxyEl(scope, props.value)?.focus();
|
|
412
408
|
return;
|
|
@@ -479,7 +475,6 @@ function connect(service, normalize) {
|
|
|
479
475
|
}
|
|
480
476
|
};
|
|
481
477
|
}
|
|
482
|
-
|
|
483
478
|
//#endregion
|
|
484
479
|
//#region src/machines/navigation-menu/navigation-menu.utils.ts
|
|
485
480
|
function setCloseTimeout(refs, context, prop) {
|
|
@@ -519,7 +514,6 @@ function clearAllOpenTimeouts(refs) {
|
|
|
519
514
|
});
|
|
520
515
|
refs.set("openTimeoutIds", {});
|
|
521
516
|
}
|
|
522
|
-
|
|
523
517
|
//#endregion
|
|
524
518
|
//#region src/machines/navigation-menu/navigation-menu.machine.ts
|
|
525
519
|
const { createMachine } = setup();
|
|
@@ -617,8 +611,7 @@ const machine = createMachine({
|
|
|
617
611
|
implementations: {
|
|
618
612
|
guards: { isItemOpen: ({ context, event }) => context.get("value") === event.value },
|
|
619
613
|
effects: { trackDocumentResize({ scope, send }) {
|
|
620
|
-
|
|
621
|
-
return trackResizeObserver([doc.body, getRootEl(scope)], () => {
|
|
614
|
+
return trackResizeObserver([scope.getDoc().body, getRootEl(scope)], () => {
|
|
622
615
|
send({ type: "VIEWPORT.POSITION" });
|
|
623
616
|
});
|
|
624
617
|
} },
|
|
@@ -728,8 +721,7 @@ const machine = createMachine({
|
|
|
728
721
|
};
|
|
729
722
|
context.set("triggerRect", rect);
|
|
730
723
|
};
|
|
731
|
-
const
|
|
732
|
-
const triggerResizeObserver = trackResizeObserver([node, listEl], exec);
|
|
724
|
+
const triggerResizeObserver = trackResizeObserver([node, getListEl(scope)], exec);
|
|
733
725
|
refs.set("triggerResizeObserverCleanup", triggerResizeObserver);
|
|
734
726
|
},
|
|
735
727
|
syncMotionAttribute({ context, scope }) {
|
|
@@ -738,8 +730,7 @@ const machine = createMachine({
|
|
|
738
730
|
},
|
|
739
731
|
focusFirstTabbableEl({ event, scope, context }) {
|
|
740
732
|
raf(() => {
|
|
741
|
-
const
|
|
742
|
-
const candidates = getTabbableEls(scope, value);
|
|
733
|
+
const candidates = getTabbableEls(scope, event.value || context.get("value"));
|
|
743
734
|
const elements = event.side === "start" ? candidates : candidates.reverse();
|
|
744
735
|
if (elements.length) focusFirst(scope, elements);
|
|
745
736
|
});
|
|
@@ -754,8 +745,7 @@ const machine = createMachine({
|
|
|
754
745
|
})?.focus();
|
|
755
746
|
},
|
|
756
747
|
focusTrigger({ scope, event, context }) {
|
|
757
|
-
|
|
758
|
-
getTriggerEl(scope, value)?.focus();
|
|
748
|
+
getTriggerEl(scope, event.value ?? context.get("value"))?.focus();
|
|
759
749
|
},
|
|
760
750
|
focusTriggerIfNeeded({ event, scope }) {
|
|
761
751
|
const value = event.value;
|
|
@@ -763,8 +753,7 @@ const machine = createMachine({
|
|
|
763
753
|
getTriggerEl(scope, value)?.focus();
|
|
764
754
|
},
|
|
765
755
|
removeFromTabOrder({ event, scope, refs, context }) {
|
|
766
|
-
const
|
|
767
|
-
const candidates = getTabbableEls(scope, value);
|
|
756
|
+
const candidates = getTabbableEls(scope, event.value ?? context.get("value"));
|
|
768
757
|
if (candidates.length) refs.set("restoreContentTabOrder", removeFromTabOrder(candidates));
|
|
769
758
|
},
|
|
770
759
|
restoreTabOrder({ refs }) {
|
|
@@ -833,7 +822,6 @@ const machine = createMachine({
|
|
|
833
822
|
}
|
|
834
823
|
}
|
|
835
824
|
});
|
|
836
|
-
|
|
837
825
|
//#endregion
|
|
838
826
|
//#region src/machines/navigation-menu/navigation-menu.props.ts
|
|
839
827
|
const props = createProps()([
|
|
@@ -852,6 +840,5 @@ const props = createProps()([
|
|
|
852
840
|
"disablePointerLeaveClose"
|
|
853
841
|
]);
|
|
854
842
|
const splitProps = createSplitProps(props);
|
|
855
|
-
|
|
856
843
|
//#endregion
|
|
857
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
844
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
4
|
+
const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
|
|
5
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
7
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
8
|
let _internationalized_number = require("@internationalized/number");
|
|
8
|
-
|
|
9
9
|
//#region src/machines/number-input/number-input.anatomy.ts
|
|
10
10
|
const anatomy = require_create_anatomy.createAnatomy("numberInput").parts("root", "label", "input", "control", "valueText", "incrementTrigger", "decrementTrigger", "scrubber");
|
|
11
11
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region src/machines/number-input/number-input.dom.ts
|
|
15
14
|
const getRootId = (ctx) => ctx.ids?.root ?? `number-input:${ctx.id}`;
|
|
@@ -96,7 +95,6 @@ const createVirtualCursor = (ctx, point) => {
|
|
|
96
95
|
</svg>`;
|
|
97
96
|
doc.body.appendChild(el);
|
|
98
97
|
};
|
|
99
|
-
|
|
100
98
|
//#endregion
|
|
101
99
|
//#region src/machines/number-input/cursor.ts
|
|
102
100
|
function recordCursor(inputEl, scope) {
|
|
@@ -163,7 +161,6 @@ function getNextCursorPosition(oldValue, newValue, oldPosition) {
|
|
|
163
161
|
}
|
|
164
162
|
return newValue.length;
|
|
165
163
|
}
|
|
166
|
-
|
|
167
164
|
//#endregion
|
|
168
165
|
//#region src/machines/number-input/number-input.connect.ts
|
|
169
166
|
function connect(service, normalize) {
|
|
@@ -462,7 +459,6 @@ function connect(service, normalize) {
|
|
|
462
459
|
}
|
|
463
460
|
};
|
|
464
461
|
}
|
|
465
|
-
|
|
466
462
|
//#endregion
|
|
467
463
|
//#region src/machines/number-input/number-input.utils.ts
|
|
468
464
|
const createFormatter = (locale, options = {}) => {
|
|
@@ -488,7 +484,6 @@ const getDefaultStep = (step, formatOptions) => {
|
|
|
488
484
|
if (formatOptions?.style === "percent" && (step === void 0 || Number.isNaN(step))) defaultStep = .01;
|
|
489
485
|
return defaultStep;
|
|
490
486
|
};
|
|
491
|
-
|
|
492
487
|
//#endregion
|
|
493
488
|
//#region src/machines/number-input/number-input.machine.ts
|
|
494
489
|
const { choose, guards, createMachine } = require_core.setup();
|
|
@@ -780,8 +775,7 @@ const machine = createMachine({
|
|
|
780
775
|
});
|
|
781
776
|
},
|
|
782
777
|
setupVirtualCursor({ context, scope }) {
|
|
783
|
-
|
|
784
|
-
return setupVirtualCursor(scope, point);
|
|
778
|
+
return setupVirtualCursor(scope, context.get("scrubberCursorPoint"));
|
|
785
779
|
},
|
|
786
780
|
preventTextSelection({ scope }) {
|
|
787
781
|
return preventTextSelection(scope);
|
|
@@ -816,11 +810,9 @@ const machine = createMachine({
|
|
|
816
810
|
trackMousemove({ scope, send, context, computed }) {
|
|
817
811
|
const doc = scope.getDoc();
|
|
818
812
|
function onMousemove(event) {
|
|
819
|
-
const point = context.get("scrubberCursorPoint");
|
|
820
|
-
const isRtl = computed("isRtl");
|
|
821
813
|
const value = getMousemoveValue(scope, {
|
|
822
|
-
point,
|
|
823
|
-
isRtl,
|
|
814
|
+
point: context.get("scrubberCursorPoint"),
|
|
815
|
+
isRtl: computed("isRtl"),
|
|
824
816
|
event
|
|
825
817
|
});
|
|
826
818
|
if (!value.hint) return;
|
|
@@ -961,7 +953,6 @@ const machine = createMachine({
|
|
|
961
953
|
}
|
|
962
954
|
}
|
|
963
955
|
});
|
|
964
|
-
|
|
965
956
|
//#endregion
|
|
966
957
|
//#region src/machines/number-input/number-input.props.ts
|
|
967
958
|
const props = require_create_props.createProps()([
|
|
@@ -996,10 +987,9 @@ const props = require_create_props.createProps()([
|
|
|
996
987
|
"defaultValue"
|
|
997
988
|
]);
|
|
998
989
|
const splitProps = require_utils.createSplitProps(props);
|
|
999
|
-
|
|
1000
990
|
//#endregion
|
|
1001
991
|
exports.anatomy = anatomy;
|
|
1002
992
|
exports.connect = connect;
|
|
1003
993
|
exports.machine = machine;
|
|
1004
994
|
exports.props = props;
|
|
1005
|
-
exports.splitProps = splitProps;
|
|
995
|
+
exports.splitProps = splitProps;
|
|
@@ -1,10 +1,10 @@
|
|
|
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, o as LocaleProperties, 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, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-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, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { W as raf, _n as MAX_Z_INDEX, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, ft as getEventStep, ht as isComposingEvent, in as getWindow, k as requestPointerLock, ot as setElementValue, st as trackFormControl, vn as ariaAttr, xn as setCaretToEnd, xt as isModifierKey, yn as dataAttr, z as observeAttributes, zt as isSafari } from "../../dom-query-
|
|
3
|
-
import { I as roundToDpr, M as isValueAtMin, N as isValueWithinRange, U as wrap, W as callAll, _ as decrementValue, g as clampValue, j as isValueAtMax, k as incrementValue, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { o as setup, s as memo } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { W as raf, _n as MAX_Z_INDEX, bt as isLeftClick, ct as addDomEvent, dt as getEventPoint, ft as getEventStep, ht as isComposingEvent, in as getWindow, k as requestPointerLock, ot as setElementValue, st as trackFormControl, vn as ariaAttr, xn as setCaretToEnd, xt as isModifierKey, yn as dataAttr, z as observeAttributes, zt as isSafari } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { I as roundToDpr, M as isValueAtMin, N as isValueWithinRange, U as wrap, W as callAll, _ as decrementValue, g as clampValue, j as isValueAtMax, k as incrementValue, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { o as setup, s as memo } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
import { NumberParser } from "@internationalized/number";
|
|
7
|
-
|
|
8
7
|
//#region src/machines/number-input/number-input.anatomy.ts
|
|
9
8
|
const anatomy = createAnatomy("numberInput").parts("root", "label", "input", "control", "valueText", "incrementTrigger", "decrementTrigger", "scrubber");
|
|
10
9
|
const parts = anatomy.build();
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
11
|
//#region src/machines/number-input/number-input.dom.ts
|
|
14
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `number-input:${ctx.id}`;
|
|
@@ -95,7 +93,6 @@ const createVirtualCursor = (ctx, point) => {
|
|
|
95
93
|
</svg>`;
|
|
96
94
|
doc.body.appendChild(el);
|
|
97
95
|
};
|
|
98
|
-
|
|
99
96
|
//#endregion
|
|
100
97
|
//#region src/machines/number-input/cursor.ts
|
|
101
98
|
function recordCursor(inputEl, scope) {
|
|
@@ -162,7 +159,6 @@ function getNextCursorPosition(oldValue, newValue, oldPosition) {
|
|
|
162
159
|
}
|
|
163
160
|
return newValue.length;
|
|
164
161
|
}
|
|
165
|
-
|
|
166
162
|
//#endregion
|
|
167
163
|
//#region src/machines/number-input/number-input.connect.ts
|
|
168
164
|
function connect(service, normalize) {
|
|
@@ -461,7 +457,6 @@ function connect(service, normalize) {
|
|
|
461
457
|
}
|
|
462
458
|
};
|
|
463
459
|
}
|
|
464
|
-
|
|
465
460
|
//#endregion
|
|
466
461
|
//#region src/machines/number-input/number-input.utils.ts
|
|
467
462
|
const createFormatter = (locale, options = {}) => {
|
|
@@ -487,7 +482,6 @@ const getDefaultStep = (step, formatOptions) => {
|
|
|
487
482
|
if (formatOptions?.style === "percent" && (step === void 0 || Number.isNaN(step))) defaultStep = .01;
|
|
488
483
|
return defaultStep;
|
|
489
484
|
};
|
|
490
|
-
|
|
491
485
|
//#endregion
|
|
492
486
|
//#region src/machines/number-input/number-input.machine.ts
|
|
493
487
|
const { choose, guards, createMachine } = setup();
|
|
@@ -779,15 +773,13 @@ const machine = createMachine({
|
|
|
779
773
|
});
|
|
780
774
|
},
|
|
781
775
|
setupVirtualCursor({ context, scope }) {
|
|
782
|
-
|
|
783
|
-
return setupVirtualCursor(scope, point);
|
|
776
|
+
return setupVirtualCursor(scope, context.get("scrubberCursorPoint"));
|
|
784
777
|
},
|
|
785
778
|
preventTextSelection({ scope }) {
|
|
786
779
|
return preventTextSelection(scope);
|
|
787
780
|
},
|
|
788
781
|
trackButtonDisabled({ context, scope, send }) {
|
|
789
|
-
|
|
790
|
-
return observeAttributes(getPressedTriggerEl(scope, hint), {
|
|
782
|
+
return observeAttributes(getPressedTriggerEl(scope, context.get("hint")), {
|
|
791
783
|
attributes: ["disabled"],
|
|
792
784
|
callback() {
|
|
793
785
|
send({
|
|
@@ -815,11 +807,9 @@ const machine = createMachine({
|
|
|
815
807
|
trackMousemove({ scope, send, context, computed }) {
|
|
816
808
|
const doc = scope.getDoc();
|
|
817
809
|
function onMousemove(event) {
|
|
818
|
-
const point = context.get("scrubberCursorPoint");
|
|
819
|
-
const isRtl = computed("isRtl");
|
|
820
810
|
const value = getMousemoveValue(scope, {
|
|
821
|
-
point,
|
|
822
|
-
isRtl,
|
|
811
|
+
point: context.get("scrubberCursorPoint"),
|
|
812
|
+
isRtl: computed("isRtl"),
|
|
823
813
|
event
|
|
824
814
|
});
|
|
825
815
|
if (!value.hint) return;
|
|
@@ -960,7 +950,6 @@ const machine = createMachine({
|
|
|
960
950
|
}
|
|
961
951
|
}
|
|
962
952
|
});
|
|
963
|
-
|
|
964
953
|
//#endregion
|
|
965
954
|
//#region src/machines/number-input/number-input.props.ts
|
|
966
955
|
const props = createProps()([
|
|
@@ -995,6 +984,5 @@ const props = createProps()([
|
|
|
995
984
|
"defaultValue"
|
|
996
985
|
]);
|
|
997
986
|
const splitProps = createSplitProps(props);
|
|
998
|
-
|
|
999
987
|
//#endregion
|
|
1000
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
988
|
+
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/pagination/pagination.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("pagination").parts("root", "item", "ellipsis", "firstTrigger", "prevTrigger", "nextTrigger", "lastTrigger");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/pagination/pagination.dom.ts
|
|
13
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `pagination:${ctx.id}`;
|
|
@@ -17,7 +16,6 @@ const getNextTriggerId = (ctx) => ctx.ids?.nextTrigger ?? `pagination:${ctx.id}:
|
|
|
17
16
|
const getLastTriggerId = (ctx) => ctx.ids?.lastTrigger ?? `pagination:${ctx.id}:last`;
|
|
18
17
|
const getEllipsisId = (ctx, index) => ctx.ids?.ellipsis?.(index) ?? `pagination:${ctx.id}:ellipsis:${index}`;
|
|
19
18
|
const getItemId = (ctx, page) => ctx.ids?.item?.(page) ?? `pagination:${ctx.id}:item:${page}`;
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/machines/pagination/pagination.utils.ts
|
|
23
21
|
const range = (start, end) => {
|
|
@@ -72,7 +70,6 @@ const getRange = (ctx) => {
|
|
|
72
70
|
return pages;
|
|
73
71
|
};
|
|
74
72
|
const getTransformedRange = (ctx) => transform(getRange(ctx));
|
|
75
|
-
|
|
76
73
|
//#endregion
|
|
77
74
|
//#region src/machines/pagination/pagination.connect.ts
|
|
78
75
|
function connect(service, normalize) {
|
|
@@ -254,7 +251,6 @@ function connect(service, normalize) {
|
|
|
254
251
|
}
|
|
255
252
|
};
|
|
256
253
|
}
|
|
257
|
-
|
|
258
254
|
//#endregion
|
|
259
255
|
//#region src/machines/pagination/pagination.machine.ts
|
|
260
256
|
const machine = require_core.createMachine({
|
|
@@ -380,7 +376,6 @@ const machine = require_core.createMachine({
|
|
|
380
376
|
}
|
|
381
377
|
});
|
|
382
378
|
const clampPage = (page, totalPages) => Math.min(Math.max(page, 1), totalPages);
|
|
383
|
-
|
|
384
379
|
//#endregion
|
|
385
380
|
//#region src/machines/pagination/pagination.props.ts
|
|
386
381
|
const props = require_create_props.createProps()([
|
|
@@ -406,7 +401,6 @@ const itemProps = require_create_props.createProps()(["value", "type"]);
|
|
|
406
401
|
const splitItemProps = require_utils.createSplitProps(itemProps);
|
|
407
402
|
const ellipsisProps = require_create_props.createProps()(["index"]);
|
|
408
403
|
const splitEllipsisProps = require_utils.createSplitProps(ellipsisProps);
|
|
409
|
-
|
|
410
404
|
//#endregion
|
|
411
405
|
exports.anatomy = anatomy;
|
|
412
406
|
exports.connect = connect;
|
|
@@ -416,4 +410,4 @@ exports.machine = machine;
|
|
|
416
410
|
exports.props = props;
|
|
417
411
|
exports.splitEllipsisProps = splitEllipsisProps;
|
|
418
412
|
exports.splitItemProps = splitItemProps;
|
|
419
|
-
exports.splitProps = splitProps;
|
|
413
|
+
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/pagination/pagination.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "nextTrigger" | "prevTrigger" | "ellipsis" | "firstTrigger" | "lastTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pagination/pagination.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|