@sprawlify/primitives 0.0.87 → 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 +3 -3
- package/dist/core.d.mts +3 -3
- 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 +7 -7
- package/dist/dom-query.d.mts +7 -7
- 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 +3 -3
- package/dist/machines/accordion/index.d.mts +4 -4
- 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 +3 -3
- package/dist/machines/aspect-ratio/index.d.mts +4 -4
- 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 +4 -4
- package/dist/machines/editable/index.d.mts +5 -5
- 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 +3 -3
- package/dist/machines/image-cropper/index.d.mts +4 -4
- 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 +3 -3
- package/dist/machines/pin-input/index.d.mts +4 -4
- 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 +2 -2
- package/dist/machines/signature-pad/index.d.mts +3 -3
- 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 +3 -3
- package/dist/machines/splitter/index.d.mts +4 -4
- 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,6 +1,6 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, f as OrientationProperty, 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, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, f as OrientationProperty, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/separator/separator.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root">;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import "../../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 "../../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/separator/separator.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("separator").parts("root");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/separator/separator.dom.ts
|
|
13
11
|
const getRootId = (ctx) => ctx.ids?.root ?? `separator:${ctx.id}`;
|
|
14
|
-
|
|
15
12
|
//#endregion
|
|
16
13
|
//#region src/machines/separator/separator.connect.ts
|
|
17
14
|
function connect(service, normalize) {
|
|
@@ -34,7 +31,6 @@ function connect(service, normalize) {
|
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
|
-
|
|
38
34
|
//#endregion
|
|
39
35
|
//#region src/machines/separator/separator.machine.ts
|
|
40
36
|
const machine = createMachine({
|
|
@@ -51,7 +47,6 @@ const machine = createMachine({
|
|
|
51
47
|
effects: {}
|
|
52
48
|
}
|
|
53
49
|
});
|
|
54
|
-
|
|
55
50
|
//#endregion
|
|
56
51
|
//#region src/machines/separator/separator.props.ts
|
|
57
52
|
const props = createProps()([
|
|
@@ -63,6 +58,5 @@ const props = createProps()([
|
|
|
63
58
|
"decorative"
|
|
64
59
|
]);
|
|
65
60
|
const splitProps = createSplitProps(props);
|
|
66
|
-
|
|
67
61
|
//#endregion
|
|
68
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
62
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = 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 perfect_freehand = require("perfect-freehand");
|
|
8
9
|
perfect_freehand = require_chunk.__toESM(perfect_freehand);
|
|
9
|
-
|
|
10
10
|
//#region src/machines/signature-pad/signature-pad.anatomy.ts
|
|
11
11
|
const anatomy = require_create_anatomy.createAnatomy("signature-pad").parts("root", "control", "segment", "segmentPath", "guide", "clearTrigger", "label");
|
|
12
12
|
const parts = anatomy.build();
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/machines/signature-pad/signature-pad.dom.ts
|
|
16
15
|
const getRootId = (ctx) => ctx.ids?.root ?? `signature-pad:${ctx.id}`;
|
|
@@ -22,7 +21,6 @@ const getSegmentEl = (ctx) => require_dom_query.query(getControlEl(ctx), "[data-
|
|
|
22
21
|
const getDataUrl = (ctx, options) => {
|
|
23
22
|
return require_dom_query.getDataUrl(getSegmentEl(ctx), options);
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
25
|
//#region src/machines/signature-pad/signature-pad.connect.ts
|
|
28
26
|
function connect(service, normalize) {
|
|
@@ -162,7 +160,6 @@ function connect(service, normalize) {
|
|
|
162
160
|
}
|
|
163
161
|
};
|
|
164
162
|
}
|
|
165
|
-
|
|
166
163
|
//#endregion
|
|
167
164
|
//#region src/machines/signature-pad/get-svg-path.ts
|
|
168
165
|
const average = (a, b) => (a + b) / 2;
|
|
@@ -181,7 +178,6 @@ function getSvgPathFromStroke(points, closed = true) {
|
|
|
181
178
|
if (closed) result += "Z";
|
|
182
179
|
return result;
|
|
183
180
|
}
|
|
184
|
-
|
|
185
181
|
//#endregion
|
|
186
182
|
//#region src/machines/signature-pad/signature-pad.machine.ts
|
|
187
183
|
const machine = require_core.createMachine({
|
|
@@ -305,7 +301,6 @@ const machine = require_core.createMachine({
|
|
|
305
301
|
}
|
|
306
302
|
}
|
|
307
303
|
});
|
|
308
|
-
|
|
309
304
|
//#endregion
|
|
310
305
|
//#region src/machines/signature-pad/signature-pad.props.ts
|
|
311
306
|
const props = require_create_props.createProps()([
|
|
@@ -325,10 +320,9 @@ const props = require_create_props.createProps()([
|
|
|
325
320
|
"translations"
|
|
326
321
|
]);
|
|
327
322
|
const splitProps = require_utils.createSplitProps(props);
|
|
328
|
-
|
|
329
323
|
//#endregion
|
|
330
324
|
exports.anatomy = anatomy;
|
|
331
325
|
exports.connect = connect;
|
|
332
326
|
exports.machine = machine;
|
|
333
327
|
exports.props = props;
|
|
334
|
-
exports.splitProps = splitProps;
|
|
328
|
+
exports.splitProps = splitProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
import { StrokeOptions } from "perfect-freehand";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/signature-pad/signature-pad.anatomy.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
import { StrokeOptions } from "perfect-freehand";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/signature-pad/signature-pad.anatomy.d.ts
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { A as getRelativePoint, E as trackPointerMove, Ht as getDataUrl$1, S as query, bt as isLeftClick, pt as getEventTarget, xt as isModifierKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { A as getRelativePoint, E as trackPointerMove, Ht as getDataUrl$1, S as query, bt as isLeftClick, pt as getEventTarget, xt as isModifierKey, 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";
|
|
6
6
|
import getStroke from "perfect-freehand";
|
|
7
|
-
|
|
8
7
|
//#region src/machines/signature-pad/signature-pad.anatomy.ts
|
|
9
8
|
const anatomy = createAnatomy("signature-pad").parts("root", "control", "segment", "segmentPath", "guide", "clearTrigger", "label");
|
|
10
9
|
const parts = anatomy.build();
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
11
|
//#region src/machines/signature-pad/signature-pad.dom.ts
|
|
14
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `signature-pad:${ctx.id}`;
|
|
@@ -20,7 +18,6 @@ const getSegmentEl = (ctx) => query(getControlEl(ctx), "[data-part=segment]");
|
|
|
20
18
|
const getDataUrl = (ctx, options) => {
|
|
21
19
|
return getDataUrl$1(getSegmentEl(ctx), options);
|
|
22
20
|
};
|
|
23
|
-
|
|
24
21
|
//#endregion
|
|
25
22
|
//#region src/machines/signature-pad/signature-pad.connect.ts
|
|
26
23
|
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/signature-pad/get-svg-path.ts
|
|
166
162
|
const average = (a, b) => (a + b) / 2;
|
|
@@ -179,7 +175,6 @@ function getSvgPathFromStroke(points, closed = true) {
|
|
|
179
175
|
if (closed) result += "Z";
|
|
180
176
|
return result;
|
|
181
177
|
}
|
|
182
|
-
|
|
183
178
|
//#endregion
|
|
184
179
|
//#region src/machines/signature-pad/signature-pad.machine.ts
|
|
185
180
|
const machine = createMachine({
|
|
@@ -303,7 +298,6 @@ const machine = createMachine({
|
|
|
303
298
|
}
|
|
304
299
|
}
|
|
305
300
|
});
|
|
306
|
-
|
|
307
301
|
//#endregion
|
|
308
302
|
//#region src/machines/signature-pad/signature-pad.props.ts
|
|
309
303
|
const props = createProps()([
|
|
@@ -323,6 +317,5 @@ const props = createProps()([
|
|
|
323
317
|
"translations"
|
|
324
318
|
]);
|
|
325
319
|
const splitProps = createSplitProps(props);
|
|
326
|
-
|
|
327
320
|
//#endregion
|
|
328
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
321
|
+
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/slider/slider.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/slider/slider.dom.ts
|
|
13
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `slider:${ctx.id}`;
|
|
@@ -82,7 +81,6 @@ const getOffsetRect = (el) => ({
|
|
|
82
81
|
width: el?.offsetWidth ?? 0,
|
|
83
82
|
height: el?.offsetHeight ?? 0
|
|
84
83
|
});
|
|
85
|
-
|
|
86
84
|
//#endregion
|
|
87
85
|
//#region src/machines/slider/slider.style.ts
|
|
88
86
|
function getBounds(value) {
|
|
@@ -223,7 +221,6 @@ function getMarkerGroupStyle() {
|
|
|
223
221
|
position: "relative"
|
|
224
222
|
};
|
|
225
223
|
}
|
|
226
|
-
|
|
227
224
|
//#endregion
|
|
228
225
|
//#region src/machines/slider/slider.utils.ts
|
|
229
226
|
function getThumbBounds(ctx) {
|
|
@@ -375,7 +372,6 @@ function selectMovableThumb(params, index) {
|
|
|
375
372
|
}
|
|
376
373
|
return index;
|
|
377
374
|
}
|
|
378
|
-
|
|
379
375
|
//#endregion
|
|
380
376
|
//#region src/machines/slider/slider.connect.ts
|
|
381
377
|
function connect(service, normalize) {
|
|
@@ -734,7 +730,6 @@ function connect(service, normalize) {
|
|
|
734
730
|
}
|
|
735
731
|
};
|
|
736
732
|
}
|
|
737
|
-
|
|
738
733
|
//#endregion
|
|
739
734
|
//#region src/machines/slider/slider.machine.ts
|
|
740
735
|
const isEqualSize = (a, b) => {
|
|
@@ -1047,7 +1042,6 @@ const machine = require_core.createMachine({
|
|
|
1047
1042
|
}
|
|
1048
1043
|
}
|
|
1049
1044
|
});
|
|
1050
|
-
|
|
1051
1045
|
//#endregion
|
|
1052
1046
|
//#region src/machines/slider/slider.props.ts
|
|
1053
1047
|
const props = require_create_props.createProps()([
|
|
@@ -1083,7 +1077,6 @@ const thumbProps = require_create_props.createProps()(["index", "name"]);
|
|
|
1083
1077
|
const splitThumbProps = require_utils.createSplitProps(thumbProps);
|
|
1084
1078
|
const markerProps = require_create_props.createProps()(["value"]);
|
|
1085
1079
|
const splitMarkerProps = require_utils.createSplitProps(markerProps);
|
|
1086
|
-
|
|
1087
1080
|
//#endregion
|
|
1088
1081
|
exports.anatomy = anatomy;
|
|
1089
1082
|
exports.connect = connect;
|
|
@@ -1093,4 +1086,4 @@ exports.props = props;
|
|
|
1093
1086
|
exports.splitMarkerProps = splitMarkerProps;
|
|
1094
1087
|
exports.splitProps = splitProps;
|
|
1095
1088
|
exports.splitThumbProps = splitThumbProps;
|
|
1096
|
-
exports.thumbProps = thumbProps;
|
|
1089
|
+
exports.thumbProps = thumbProps;
|
|
@@ -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/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "valueText" | "thumb" | "control" | "range" | "marker" | "markerGroup" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -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/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "valueText" | "thumb" | "control" | "range" | "marker" | "markerGroup" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { C as queryAll, E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, it as dispatchInputValueEvent, m as resizeObserverBorderBox, ot as setElementValue, st as trackFormControl, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { B as snapValueToStep, C as getPercentValue, E as getValueRanges, H as toPx, N as isValueWithinRange, O as getValueTransformer, S as getNextStepValue, T as getValuePercent, W as callAll, ft as isEqual, g as clampValue, h as clampPercent, p as pick, u as createSplitProps, vt as first, w as getPreviousStepValue, wt as last, z as setValueAtIndex } 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 { C as queryAll, E as trackPointerMove, W as raf, bt as isLeftClick, dt as getEventPoint, ft as getEventStep, it as dispatchInputValueEvent, m as resizeObserverBorderBox, ot as setElementValue, st as trackFormControl, ut as getEventKey, vn as ariaAttr, xt as isModifierKey, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { B as snapValueToStep, C as getPercentValue, E as getValueRanges, H as toPx, N as isValueWithinRange, O as getValueTransformer, S as getNextStepValue, T as getValuePercent, W as callAll, ft as isEqual, g as clampValue, h as clampPercent, p as pick, u as createSplitProps, vt as first, w as getPreviousStepValue, wt as last, z as setValueAtIndex } 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/slider/slider.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("slider").parts("root", "label", "thumb", "valueText", "track", "range", "control", "markerGroup", "marker", "draggingIndicator");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/slider/slider.dom.ts
|
|
13
11
|
const getRootId = (ctx) => ctx.ids?.root ?? `slider:${ctx.id}`;
|
|
@@ -82,7 +80,6 @@ const getOffsetRect = (el) => ({
|
|
|
82
80
|
width: el?.offsetWidth ?? 0,
|
|
83
81
|
height: el?.offsetHeight ?? 0
|
|
84
82
|
});
|
|
85
|
-
|
|
86
83
|
//#endregion
|
|
87
84
|
//#region src/machines/slider/slider.style.ts
|
|
88
85
|
function getBounds(value) {
|
|
@@ -223,7 +220,6 @@ function getMarkerGroupStyle() {
|
|
|
223
220
|
position: "relative"
|
|
224
221
|
};
|
|
225
222
|
}
|
|
226
|
-
|
|
227
223
|
//#endregion
|
|
228
224
|
//#region src/machines/slider/slider.utils.ts
|
|
229
225
|
function getThumbBounds(ctx) {
|
|
@@ -375,7 +371,6 @@ function selectMovableThumb(params, index) {
|
|
|
375
371
|
}
|
|
376
372
|
return index;
|
|
377
373
|
}
|
|
378
|
-
|
|
379
374
|
//#endregion
|
|
380
375
|
//#region src/machines/slider/slider.connect.ts
|
|
381
376
|
function connect(service, normalize) {
|
|
@@ -734,7 +729,6 @@ function connect(service, normalize) {
|
|
|
734
729
|
}
|
|
735
730
|
};
|
|
736
731
|
}
|
|
737
|
-
|
|
738
732
|
//#endregion
|
|
739
733
|
//#region src/machines/slider/slider.machine.ts
|
|
740
734
|
const isEqualSize = (a, b) => {
|
|
@@ -1047,7 +1041,6 @@ const machine = createMachine({
|
|
|
1047
1041
|
}
|
|
1048
1042
|
}
|
|
1049
1043
|
});
|
|
1050
|
-
|
|
1051
1044
|
//#endregion
|
|
1052
1045
|
//#region src/machines/slider/slider.props.ts
|
|
1053
1046
|
const props = createProps()([
|
|
@@ -1083,6 +1076,5 @@ const thumbProps = createProps()(["index", "name"]);
|
|
|
1083
1076
|
const splitThumbProps = createSplitProps(thumbProps);
|
|
1084
1077
|
const markerProps = createProps()(["value"]);
|
|
1085
1078
|
const splitMarkerProps = createSplitProps(markerProps);
|
|
1086
|
-
|
|
1087
1079
|
//#endregion
|
|
1088
|
-
export { anatomy, connect, machine, markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps };
|
|
1080
|
+
export { anatomy, connect, machine, markerProps, props, splitMarkerProps, splitProps, splitThumbProps, thumbProps };
|
|
@@ -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/splitter/splitter.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("splitter").parts("root", "panel", "resizeTrigger", "resizeTriggerIndicator");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/splitter/splitter.dom.ts
|
|
13
12
|
const getRootId = (ctx) => ctx.ids?.root ?? `splitter:${ctx.id}`;
|
|
@@ -40,7 +39,6 @@ const setupGlobalCursor = (ctx, state, x, nonce) => {
|
|
|
40
39
|
const removeGlobalCursor = (ctx) => {
|
|
41
40
|
ctx.getById(getGlobalCursorId(ctx))?.remove();
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
//#endregion
|
|
45
43
|
//#region src/machines/splitter/utils/aria.ts
|
|
46
44
|
function calculateAriaValues({ size, panels, pivotIndices }) {
|
|
@@ -81,15 +79,11 @@ function getAriaValue(size, panels, handleId) {
|
|
|
81
79
|
valueNow: valueNow != null ? Math.round(valueNow) : void 0
|
|
82
80
|
};
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/machines/splitter/utils/fuzzy.ts
|
|
87
|
-
const PRECISION = 10;
|
|
88
|
-
function fuzzyCompareNumbers(actual, expected, fractionDigits = PRECISION) {
|
|
82
|
+
function fuzzyCompareNumbers(actual, expected, fractionDigits = 10) {
|
|
89
83
|
if (actual.toFixed(fractionDigits) === expected.toFixed(fractionDigits)) return 0;
|
|
90
84
|
else return actual > expected ? 1 : -1;
|
|
91
85
|
}
|
|
92
|
-
function fuzzyNumbersEqual(actual, expected, fractionDigits =
|
|
86
|
+
function fuzzyNumbersEqual(actual, expected, fractionDigits = 10) {
|
|
93
87
|
if (actual == null || expected == null) return false;
|
|
94
88
|
return fuzzyCompareNumbers(actual, expected, fractionDigits) === 0;
|
|
95
89
|
}
|
|
@@ -102,7 +96,6 @@ function fuzzySizeEqual(actual, expected, fractionDigits) {
|
|
|
102
96
|
}
|
|
103
97
|
return true;
|
|
104
98
|
}
|
|
105
|
-
|
|
106
99
|
//#endregion
|
|
107
100
|
//#region src/machines/splitter/utils/panel.ts
|
|
108
101
|
function getPanelById(panels, id) {
|
|
@@ -185,7 +178,6 @@ function getUnsafeDefaultSize({ panels, size: sizes }) {
|
|
|
185
178
|
}
|
|
186
179
|
return finalSizes;
|
|
187
180
|
}
|
|
188
|
-
|
|
189
181
|
//#endregion
|
|
190
182
|
//#region src/machines/splitter/splitter.connect.ts
|
|
191
183
|
function connect(service, normalize) {
|
|
@@ -494,7 +486,6 @@ function connect(service, normalize) {
|
|
|
494
486
|
}
|
|
495
487
|
};
|
|
496
488
|
}
|
|
497
|
-
|
|
498
489
|
//#endregion
|
|
499
490
|
//#region src/machines/splitter/utils/resize-panel.ts
|
|
500
491
|
function resizePanel({ panels, index, size }) {
|
|
@@ -507,10 +498,9 @@ function resizePanel({ panels, index, size }) {
|
|
|
507
498
|
else size = minSize;
|
|
508
499
|
} else size = minSize;
|
|
509
500
|
size = Math.min(maxSize, size);
|
|
510
|
-
size = parseFloat(size.toFixed(
|
|
501
|
+
size = parseFloat(size.toFixed(10));
|
|
511
502
|
return size;
|
|
512
503
|
}
|
|
513
|
-
|
|
514
504
|
//#endregion
|
|
515
505
|
//#region src/machines/splitter/utils/resize-by-delta.ts
|
|
516
506
|
function resizeByDelta(props) {
|
|
@@ -628,7 +618,6 @@ function resizeByDelta(props) {
|
|
|
628
618
|
if (!fuzzyNumbersEqual(nextSize.reduce((total, size) => size + total, 0), 100)) return prevSize;
|
|
629
619
|
return nextSize;
|
|
630
620
|
}
|
|
631
|
-
|
|
632
621
|
//#endregion
|
|
633
622
|
//#region src/machines/splitter/utils/validate-sizes.ts
|
|
634
623
|
function validateSizes({ size: prevSize, panels }) {
|
|
@@ -671,7 +660,6 @@ function validateSizes({ size: prevSize, panels }) {
|
|
|
671
660
|
}
|
|
672
661
|
return nextSize;
|
|
673
662
|
}
|
|
674
|
-
|
|
675
663
|
//#endregion
|
|
676
664
|
//#region src/machines/splitter/splitter.machine.ts
|
|
677
665
|
const machine = require_core.createMachine({
|
|
@@ -1029,11 +1017,10 @@ const machine = require_core.createMachine({
|
|
|
1029
1017
|
const [idBefore] = dragState.resizeTriggerId.split(":");
|
|
1030
1018
|
const panel = panels[panels.findIndex((panel) => panel.id === idBefore)];
|
|
1031
1019
|
const aria = getAriaValue(context.get("size"), panels, dragState.resizeTriggerId);
|
|
1032
|
-
|
|
1020
|
+
setupGlobalCursor(scope, {
|
|
1033
1021
|
isAtMin: fuzzyNumbersEqual(aria.valueNow, aria.valueMin) || fuzzyNumbersEqual(aria.valueNow, panel.collapsedSize),
|
|
1034
1022
|
isAtMax: fuzzyNumbersEqual(aria.valueNow, aria.valueMax)
|
|
1035
|
-
};
|
|
1036
|
-
setupGlobalCursor(scope, cursorState, horizontal, prop("nonce"));
|
|
1023
|
+
}, horizontal, prop("nonce"));
|
|
1037
1024
|
},
|
|
1038
1025
|
clearGlobalCursor({ scope }) {
|
|
1039
1026
|
removeGlobalCursor(scope);
|
|
@@ -1073,7 +1060,6 @@ function setSize(params, sizes) {
|
|
|
1073
1060
|
}
|
|
1074
1061
|
});
|
|
1075
1062
|
}
|
|
1076
|
-
|
|
1077
1063
|
//#endregion
|
|
1078
1064
|
//#region src/machines/splitter/splitter.props.ts
|
|
1079
1065
|
const props = require_create_props.createProps()([
|
|
@@ -1098,7 +1084,6 @@ const panelProps = require_create_props.createProps()(["id"]);
|
|
|
1098
1084
|
const splitPanelProps = require_utils.createSplitProps(panelProps);
|
|
1099
1085
|
const resizeTriggerProps = require_create_props.createProps()(["disabled", "id"]);
|
|
1100
1086
|
const splitResizeTriggerProps = require_utils.createSplitProps(resizeTriggerProps);
|
|
1101
|
-
|
|
1102
1087
|
//#endregion
|
|
1103
1088
|
exports.anatomy = anatomy;
|
|
1104
1089
|
exports.connect = connect;
|
|
@@ -1109,4 +1094,4 @@ exports.props = props;
|
|
|
1109
1094
|
exports.resizeTriggerProps = resizeTriggerProps;
|
|
1110
1095
|
exports.splitPanelProps = splitPanelProps;
|
|
1111
1096
|
exports.splitProps = splitProps;
|
|
1112
|
-
exports.splitResizeTriggerProps = splitResizeTriggerProps;
|
|
1097
|
+
exports.splitResizeTriggerProps = splitResizeTriggerProps;
|
|
@@ -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/splitter/splitter.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/splitter/splitter.types.d.ts
|
|
9
9
|
type ResizeEvent = PointerEvent | KeyboardEvent;
|
|
@@ -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/splitter/splitter.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/splitter/splitter.types.d.ts
|
|
9
9
|
type ResizeEvent = PointerEvent | KeyboardEvent;
|