@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,15 +1,13 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { E as trackPointerMove, W as raf, bt as isLeftClick, ct as addDomEvent, ft as getEventStep, m as resizeObserverBorderBox, pt as getEventTarget, un as isHTMLElement, ut as getEventKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { H as toPx, Y as match, g as clampValue, n as ensureProps, p as pick, r as invariant, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import { G as clampPoint, I as addPoints, K as clampSize, R as createRect, T as constrainRect, W as subtractPoints, d as getWindowRect, t as resizeRect, v as getElementRect, x as isSizeEqual, y as isPointEqual } from "../../rect-utils-
|
|
6
|
-
import { a as subscribe, n as proxy } from "../../store-
|
|
7
|
-
import { t as createProps } from "../../create-props-
|
|
8
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { E as trackPointerMove, W as raf, bt as isLeftClick, ct as addDomEvent, ft as getEventStep, m as resizeObserverBorderBox, pt as getEventTarget, un as isHTMLElement, ut as getEventKey, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { H as toPx, Y as match, g as clampValue, n as ensureProps, p as pick, r as invariant, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import { G as clampPoint, I as addPoints, K as clampSize, R as createRect, T as constrainRect, W as subtractPoints, d as getWindowRect, t as resizeRect, v as getElementRect, x as isSizeEqual, y as isPointEqual } from "../../rect-utils-B5xqFvKC.mjs";
|
|
6
|
+
import { a as subscribe, n as proxy } from "../../store-BRn2zWDR.mjs";
|
|
7
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
9
8
|
//#region src/machines/floating-panel/floating-panel.anatomy.ts
|
|
10
9
|
const anatomy = createAnatomy("floating-panel").parts("trigger", "positioner", "content", "header", "body", "title", "resizeTrigger", "dragTrigger", "stageTrigger", "closeTrigger", "control");
|
|
11
10
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
11
|
//#endregion
|
|
14
12
|
//#region src/machines/floating-panel/floating-panel.dom.ts
|
|
15
13
|
const getTriggerId = (ctx) => ctx.ids?.trigger ?? `floating-panel:${ctx.id}:trigger`;
|
|
@@ -38,7 +36,6 @@ const getBoundaryRect = (ctx, boundaryEl, allowOverflow) => {
|
|
|
38
36
|
"height"
|
|
39
37
|
]);
|
|
40
38
|
};
|
|
41
|
-
|
|
42
39
|
//#endregion
|
|
43
40
|
//#region src/machines/floating-panel/get-resize-axis-style.ts
|
|
44
41
|
function getResizeAxisStyle(axis) {
|
|
@@ -94,7 +91,6 @@ function getResizeAxisStyle(axis) {
|
|
|
94
91
|
default: throw new Error(`Invalid axis: ${axis}`);
|
|
95
92
|
}
|
|
96
93
|
}
|
|
97
|
-
|
|
98
94
|
//#endregion
|
|
99
95
|
//#region src/machines/floating-panel/floating-panel.connect.ts
|
|
100
96
|
const validStages = new Set([
|
|
@@ -416,7 +412,6 @@ function connect(service, normalize) {
|
|
|
416
412
|
}
|
|
417
413
|
};
|
|
418
414
|
}
|
|
419
|
-
|
|
420
415
|
//#endregion
|
|
421
416
|
//#region src/machines/floating-panel/floating-panel.store.ts
|
|
422
417
|
const panelStack = proxy({
|
|
@@ -444,7 +439,6 @@ const panelStack = proxy({
|
|
|
444
439
|
return this.stack.indexOf(id);
|
|
445
440
|
}
|
|
446
441
|
});
|
|
447
|
-
|
|
448
442
|
//#endregion
|
|
449
443
|
//#region src/machines/floating-panel/floating-panel.machine.ts
|
|
450
444
|
const { not, and } = createGuards();
|
|
@@ -936,7 +930,6 @@ const machine = createMachine({
|
|
|
936
930
|
}
|
|
937
931
|
}
|
|
938
932
|
});
|
|
939
|
-
|
|
940
933
|
//#endregion
|
|
941
934
|
//#region src/machines/floating-panel/floating-panel.props.ts
|
|
942
935
|
const props = createProps()([
|
|
@@ -984,6 +977,5 @@ const resizeTriggerAxes = [
|
|
|
984
977
|
"se",
|
|
985
978
|
"sw"
|
|
986
979
|
];
|
|
987
|
-
|
|
988
980
|
//#endregion
|
|
989
|
-
export { anatomy, connect, machine, props, resizeTriggerAxes, resizeTriggerProps, splitProps, splitResizeTriggerProps };
|
|
981
|
+
export { anatomy, connect, machine, props, resizeTriggerAxes, resizeTriggerProps, splitProps, splitResizeTriggerProps };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
require(
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
require(
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
+
require("../../dom-query-6Wt-Tikf.cjs");
|
|
4
|
+
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
6
|
+
require("../../interact-outside-DRaFGdMg.cjs");
|
|
7
|
+
const require_dismissable = require("../../dismissable-DPXx0m0m.cjs");
|
|
8
|
+
const require_popper = require("../../popper-zq1F_iY8.cjs");
|
|
9
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
10
10
|
//#region src/machines/hover-card/hover-card.anatomy.ts
|
|
11
11
|
const anatomy = require_create_anatomy.createAnatomy("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content");
|
|
12
12
|
const parts = anatomy.build();
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/machines/hover-card/hover-card.dom.ts
|
|
16
15
|
const getTriggerId = (ctx) => ctx.ids?.trigger ?? `hover-card:${ctx.id}:trigger`;
|
|
@@ -20,7 +19,6 @@ const getArrowId = (ctx) => ctx.ids?.arrow ?? `hover-card:${ctx.id}:arrow`;
|
|
|
20
19
|
const getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));
|
|
21
20
|
const getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
22
21
|
const getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));
|
|
23
|
-
|
|
24
22
|
//#endregion
|
|
25
23
|
//#region src/machines/hover-card/hover-card.connect.ts
|
|
26
24
|
function connect(service, normalize) {
|
|
@@ -128,7 +126,6 @@ function connect(service, normalize) {
|
|
|
128
126
|
}
|
|
129
127
|
};
|
|
130
128
|
}
|
|
131
|
-
|
|
132
129
|
//#endregion
|
|
133
130
|
//#region src/machines/hover-card/hover-card.machine.ts
|
|
134
131
|
const { not, and } = require_core.createGuards();
|
|
@@ -354,7 +351,6 @@ const machine = require_core.createMachine({
|
|
|
354
351
|
}
|
|
355
352
|
}
|
|
356
353
|
});
|
|
357
|
-
|
|
358
354
|
//#endregion
|
|
359
355
|
//#region src/machines/hover-card/hover-card.props.ts
|
|
360
356
|
const props = require_create_props.createProps()([
|
|
@@ -374,10 +370,9 @@ const props = require_create_props.createProps()([
|
|
|
374
370
|
"onFocusOutside"
|
|
375
371
|
]);
|
|
376
372
|
const splitProps = require_utils.createSplitProps(props);
|
|
377
|
-
|
|
378
373
|
//#endregion
|
|
379
374
|
exports.anatomy = anatomy;
|
|
380
375
|
exports.connect = connect;
|
|
381
376
|
exports.machine = machine;
|
|
382
377
|
exports.props = props;
|
|
383
|
-
exports.splitProps = splitProps;
|
|
378
|
+
exports.splitProps = splitProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
5
|
+
import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
5
|
+
import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,16 +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, i as createGuards } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
7
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
8
|
-
import { t as createProps } from "../../create-props-
|
|
9
|
-
|
|
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, i as createGuards } from "../../core-DfVajPnu.mjs";
|
|
5
|
+
import "../../interact-outside-C-8lOhpV.mjs";
|
|
6
|
+
import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
|
|
7
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-CfOHZlHP.mjs";
|
|
8
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
9
|
//#region src/machines/hover-card/hover-card.anatomy.ts
|
|
11
10
|
const anatomy = createAnatomy("hoverCard").parts("arrow", "arrowTip", "trigger", "positioner", "content");
|
|
12
11
|
const parts = anatomy.build();
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
//#region src/machines/hover-card/hover-card.dom.ts
|
|
16
14
|
const getTriggerId = (ctx) => ctx.ids?.trigger ?? `hover-card:${ctx.id}:trigger`;
|
|
@@ -20,7 +18,6 @@ const getArrowId = (ctx) => ctx.ids?.arrow ?? `hover-card:${ctx.id}:arrow`;
|
|
|
20
18
|
const getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));
|
|
21
19
|
const getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
22
20
|
const getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));
|
|
23
|
-
|
|
24
21
|
//#endregion
|
|
25
22
|
//#region src/machines/hover-card/hover-card.connect.ts
|
|
26
23
|
function connect(service, normalize) {
|
|
@@ -128,7 +125,6 @@ function connect(service, normalize) {
|
|
|
128
125
|
}
|
|
129
126
|
};
|
|
130
127
|
}
|
|
131
|
-
|
|
132
128
|
//#endregion
|
|
133
129
|
//#region src/machines/hover-card/hover-card.machine.ts
|
|
134
130
|
const { not, and } = createGuards();
|
|
@@ -354,7 +350,6 @@ const machine = createMachine({
|
|
|
354
350
|
}
|
|
355
351
|
}
|
|
356
352
|
});
|
|
357
|
-
|
|
358
353
|
//#endregion
|
|
359
354
|
//#region src/machines/hover-card/hover-card.props.ts
|
|
360
355
|
const props = createProps()([
|
|
@@ -374,6 +369,5 @@ const props = createProps()([
|
|
|
374
369
|
"onFocusOutside"
|
|
375
370
|
]);
|
|
376
371
|
const splitProps = createSplitProps(props);
|
|
377
|
-
|
|
378
372
|
//#endregion
|
|
379
|
-
export { anatomy, connect, machine, props, splitProps };
|
|
373
|
+
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/image-cropper/image-cropper.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("image-cropper").parts("root", "viewport", "image", "selection", "handle", "grid");
|
|
9
9
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/machines/image-cropper/get-resize-axis-style.ts
|
|
13
12
|
function getHandlePositionStyles(handlePosition) {
|
|
@@ -75,7 +74,6 @@ function getHandlePositionStyles(handlePosition) {
|
|
|
75
74
|
default: throw new Error(`Invalid handlePosition: ${handlePosition}`);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
|
|
79
77
|
//#endregion
|
|
80
78
|
//#region src/machines/image-cropper/image-cropper.dom.ts
|
|
81
79
|
const getRootId = (ctx) => ctx.ids?.root ?? `image-cropper:${ctx.id}`;
|
|
@@ -126,12 +124,10 @@ function drawCroppedImageToCanvas(params) {
|
|
|
126
124
|
ctx.restore();
|
|
127
125
|
return canvas;
|
|
128
126
|
}
|
|
129
|
-
|
|
130
127
|
//#endregion
|
|
131
128
|
//#region src/machines/image-cropper/image-cropper.utils.ts
|
|
132
129
|
const { min, max, abs, round, hypot, PI, cos, sin } = Math;
|
|
133
130
|
const ASPECT_RATIO_TOLERANCE = .001;
|
|
134
|
-
const MIN_PINCH_DISTANCE = 1;
|
|
135
131
|
const isAspectRatioEqual = (a, b) => {
|
|
136
132
|
return abs(a - b) < ASPECT_RATIO_TOLERANCE;
|
|
137
133
|
};
|
|
@@ -844,7 +840,6 @@ const scaleSize = (size, scale) => ({
|
|
|
844
840
|
width: size.width * scale,
|
|
845
841
|
height: size.height * scale
|
|
846
842
|
});
|
|
847
|
-
|
|
848
843
|
//#endregion
|
|
849
844
|
//#region src/machines/image-cropper/image-cropper.connect.ts
|
|
850
845
|
function connect(service, normalize) {
|
|
@@ -1248,7 +1243,6 @@ function connect(service, normalize) {
|
|
|
1248
1243
|
}
|
|
1249
1244
|
};
|
|
1250
1245
|
}
|
|
1251
|
-
|
|
1252
1246
|
//#endregion
|
|
1253
1247
|
//#region src/machines/image-cropper/image-cropper.machine.ts
|
|
1254
1248
|
const machine = require_core.createMachine({
|
|
@@ -1789,7 +1783,7 @@ const machine = require_core.createMachine({
|
|
|
1789
1783
|
if (lastDistance != null && lastDistance > 0 && lastMidpoint != null) {
|
|
1790
1784
|
const delta = lastDistance - distance;
|
|
1791
1785
|
const scale = distance / lastDistance;
|
|
1792
|
-
const hasSignificantZoom = Math.abs(delta) >
|
|
1786
|
+
const hasSignificantZoom = Math.abs(delta) > 1;
|
|
1793
1787
|
const panDelta = subtractPoints(midpoint, lastMidpoint);
|
|
1794
1788
|
send({
|
|
1795
1789
|
type: "ZOOM",
|
|
@@ -2000,7 +1994,6 @@ const getBoundingRect = (el) => {
|
|
|
2000
1994
|
bottom: rect.bottom
|
|
2001
1995
|
};
|
|
2002
1996
|
};
|
|
2003
|
-
|
|
2004
1997
|
//#endregion
|
|
2005
1998
|
//#region src/machines/image-cropper/image-cropper.props.ts
|
|
2006
1999
|
const props = require_create_props.createProps()([
|
|
@@ -2046,11 +2039,10 @@ const handles = [
|
|
|
2046
2039
|
"sw",
|
|
2047
2040
|
"w"
|
|
2048
2041
|
];
|
|
2049
|
-
|
|
2050
2042
|
//#endregion
|
|
2051
2043
|
exports.anatomy = anatomy;
|
|
2052
2044
|
exports.connect = connect;
|
|
2053
2045
|
exports.handles = handles;
|
|
2054
2046
|
exports.machine = machine;
|
|
2055
2047
|
exports.props = props;
|
|
2056
|
-
exports.splitProps = splitProps;
|
|
2048
|
+
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, 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, 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/image-cropper/image-cropper.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "image" | "selection" | "handle" | "grid">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/image-cropper/image-cropper.types.d.ts
|
|
9
9
|
type HandlePosition = "n" | "e" | "s" | "w" | "ne" | "se" | "sw" | "nw";
|
|
@@ -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, 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, 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/image-cropper/image-cropper.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "image" | "selection" | "handle" | "grid">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/image-cropper/image-cropper.types.d.ts
|
|
9
9
|
type HandlePosition = "n" | "e" | "s" | "w" | "ne" | "se" | "sw" | "nw";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { Zt as contains, ct as addDomEvent, dt as getEventPoint, m as resizeObserverBorderBox, pt as getEventTarget, ut as getEventKey, yn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { H as toPx, W as callAll, g as clampValue, rt as isBoolean, 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 { Zt as contains, ct as addDomEvent, dt as getEventPoint, m as resizeObserverBorderBox, pt as getEventTarget, ut as getEventKey, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { H as toPx, W as callAll, g as clampValue, rt as isBoolean, 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/image-cropper/image-cropper.anatomy.ts
|
|
8
7
|
const anatomy = createAnatomy("image-cropper").parts("root", "viewport", "image", "selection", "handle", "grid");
|
|
9
8
|
const parts = anatomy.build();
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/machines/image-cropper/get-resize-axis-style.ts
|
|
13
11
|
function getHandlePositionStyles(handlePosition) {
|
|
@@ -75,7 +73,6 @@ function getHandlePositionStyles(handlePosition) {
|
|
|
75
73
|
default: throw new Error(`Invalid handlePosition: ${handlePosition}`);
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
|
-
|
|
79
76
|
//#endregion
|
|
80
77
|
//#region src/machines/image-cropper/image-cropper.dom.ts
|
|
81
78
|
const getRootId = (ctx) => ctx.ids?.root ?? `image-cropper:${ctx.id}`;
|
|
@@ -126,12 +123,10 @@ function drawCroppedImageToCanvas(params) {
|
|
|
126
123
|
ctx.restore();
|
|
127
124
|
return canvas;
|
|
128
125
|
}
|
|
129
|
-
|
|
130
126
|
//#endregion
|
|
131
127
|
//#region src/machines/image-cropper/image-cropper.utils.ts
|
|
132
128
|
const { min, max, abs, round, hypot, PI, cos, sin } = Math;
|
|
133
129
|
const ASPECT_RATIO_TOLERANCE = .001;
|
|
134
|
-
const MIN_PINCH_DISTANCE = 1;
|
|
135
130
|
const isAspectRatioEqual = (a, b) => {
|
|
136
131
|
return abs(a - b) < ASPECT_RATIO_TOLERANCE;
|
|
137
132
|
};
|
|
@@ -844,7 +839,6 @@ const scaleSize = (size, scale) => ({
|
|
|
844
839
|
width: size.width * scale,
|
|
845
840
|
height: size.height * scale
|
|
846
841
|
});
|
|
847
|
-
|
|
848
842
|
//#endregion
|
|
849
843
|
//#region src/machines/image-cropper/image-cropper.connect.ts
|
|
850
844
|
function connect(service, normalize) {
|
|
@@ -1248,7 +1242,6 @@ function connect(service, normalize) {
|
|
|
1248
1242
|
}
|
|
1249
1243
|
};
|
|
1250
1244
|
}
|
|
1251
|
-
|
|
1252
1245
|
//#endregion
|
|
1253
1246
|
//#region src/machines/image-cropper/image-cropper.machine.ts
|
|
1254
1247
|
const machine = createMachine({
|
|
@@ -1789,7 +1782,7 @@ const machine = createMachine({
|
|
|
1789
1782
|
if (lastDistance != null && lastDistance > 0 && lastMidpoint != null) {
|
|
1790
1783
|
const delta = lastDistance - distance;
|
|
1791
1784
|
const scale = distance / lastDistance;
|
|
1792
|
-
const hasSignificantZoom = Math.abs(delta) >
|
|
1785
|
+
const hasSignificantZoom = Math.abs(delta) > 1;
|
|
1793
1786
|
const panDelta = subtractPoints(midpoint, lastMidpoint);
|
|
1794
1787
|
send({
|
|
1795
1788
|
type: "ZOOM",
|
|
@@ -2000,7 +1993,6 @@ const getBoundingRect = (el) => {
|
|
|
2000
1993
|
bottom: rect.bottom
|
|
2001
1994
|
};
|
|
2002
1995
|
};
|
|
2003
|
-
|
|
2004
1996
|
//#endregion
|
|
2005
1997
|
//#region src/machines/image-cropper/image-cropper.props.ts
|
|
2006
1998
|
const props = createProps()([
|
|
@@ -2046,6 +2038,5 @@ const handles = [
|
|
|
2046
2038
|
"sw",
|
|
2047
2039
|
"w"
|
|
2048
2040
|
];
|
|
2049
|
-
|
|
2050
2041
|
//#endregion
|
|
2051
|
-
export { anatomy, connect, handles, machine, props, splitProps };
|
|
2042
|
+
export { anatomy, connect, handles, machine, props, splitProps };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
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_collection = require("../../collection-DZeodezM.cjs");
|
|
6
|
+
const require_core = require("../../core-BiGlJ-4W.cjs");
|
|
7
|
+
const require_focus_visible = require("../../focus-visible-CqHoOOjw.cjs");
|
|
8
|
+
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.ts
|
|
10
10
|
const anatomy = require_create_anatomy.createAnatomy("listbox").parts("label", "input", "item", "itemText", "itemIndicator", "itemGroup", "itemGroupLabel", "content", "root", "valueText");
|
|
11
11
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
12
|
//#endregion
|
|
14
13
|
//#region src/machines/listbox/listbox.collection.ts
|
|
15
14
|
const collection = (options) => {
|
|
@@ -27,7 +26,6 @@ gridCollection.empty = () => {
|
|
|
27
26
|
columnCount: 0
|
|
28
27
|
});
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
30
|
//#region src/machines/listbox/listbox.dom.ts
|
|
33
31
|
const getRootId = (ctx) => ctx.ids?.root ?? `listbox:${ctx.id}`;
|
|
@@ -38,7 +36,6 @@ const getItemGroupId = (ctx, id) => ctx.ids?.itemGroup?.(id) ?? `listbox:${ctx.i
|
|
|
38
36
|
const getItemGroupLabelId = (ctx, id) => ctx.ids?.itemGroupLabel?.(id) ?? `listbox:${ctx.id}:item-group-label:${id}`;
|
|
39
37
|
const getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
40
38
|
const getItemEl = (ctx, id) => ctx.getById(getItemId(ctx, id));
|
|
41
|
-
|
|
42
39
|
//#endregion
|
|
43
40
|
//#region src/machines/listbox/listbox.connect.ts
|
|
44
41
|
function connect(service, normalize) {
|
|
@@ -448,7 +445,6 @@ function connect(service, normalize) {
|
|
|
448
445
|
}
|
|
449
446
|
};
|
|
450
447
|
}
|
|
451
|
-
|
|
452
448
|
//#endregion
|
|
453
449
|
//#region src/machines/listbox/listbox.machine.ts
|
|
454
450
|
const { guards, createMachine } = require_core.setup();
|
|
@@ -744,7 +740,6 @@ function invokeOnSelect(current, next, onSelect) {
|
|
|
744
740
|
const added = diff(next, current);
|
|
745
741
|
for (const item of added) onSelect?.({ value: item });
|
|
746
742
|
}
|
|
747
|
-
|
|
748
743
|
//#endregion
|
|
749
744
|
//#region src/machines/listbox/listbox.props.ts
|
|
750
745
|
const props = require_create_props.createProps()([
|
|
@@ -777,7 +772,6 @@ const itemGroupProps = require_create_props.createProps()(["id"]);
|
|
|
777
772
|
const splitItemGroupProps = require_utils.createSplitProps(itemGroupProps);
|
|
778
773
|
const itemGroupLabelProps = require_create_props.createProps()(["htmlFor"]);
|
|
779
774
|
const splitItemGroupLabelProps = require_utils.createSplitProps(itemGroupLabelProps);
|
|
780
|
-
|
|
781
775
|
//#endregion
|
|
782
776
|
exports.anatomy = anatomy;
|
|
783
777
|
exports.collection = collection;
|
|
@@ -791,4 +785,4 @@ exports.props = props;
|
|
|
791
785
|
exports.splitItemGroupLabelProps = splitItemGroupLabelProps;
|
|
792
786
|
exports.splitItemGroupProps = splitItemGroupProps;
|
|
793
787
|
exports.splitItemProps = splitItemProps;
|
|
794
|
-
exports.splitProps = splitProps;
|
|
788
|
+
exports.splitProps = splitProps;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-
|
|
5
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
6
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
7
|
-
import { n as TypeaheadState } from "../../typeahead-
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
|
|
4
|
+
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-Bb_ZSVxe.cjs";
|
|
5
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
6
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
7
|
+
import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "item" | "itemIndicator" | "itemText" | "label" | "valueText" | "itemGroup" | "itemGroupLabel" | "input">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/listbox/listbox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { r as CollectionOptions, t as CollectionItem } from "../../types-
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-
|
|
5
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
6
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
7
|
-
import { n as TypeaheadState } from "../../typeahead-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
|
+
import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
|
+
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-DdNvrKbj.mjs";
|
|
5
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
6
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
7
|
+
import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "item" | "itemIndicator" | "itemText" | "label" | "valueText" | "itemGroup" | "itemGroupLabel" | "input">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/listbox/listbox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { I as scrollIntoView, W as raf, Zt as contains, _t as isCtrlOrMetaKey, cn as isEditableElement, ht as isComposingEvent, mt as getNativeEvent, pt as getEventTarget, s as getByTypeahead, ut as getEventKey, vn as ariaAttr, yn as dataAttr, z as observeAttributes } from "../../dom-query-
|
|
3
|
-
import { ft as isEqual, t as ensure, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as GridCollection, i as Selection, o as isGridCollection, s as ListCollection } from "../../collection-
|
|
5
|
-
import { o as setup } from "../../core-
|
|
6
|
-
import { a as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-
|
|
7
|
-
import { t as createProps } from "../../create-props-
|
|
8
|
-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
+
import { I as scrollIntoView, W as raf, Zt as contains, _t as isCtrlOrMetaKey, cn as isEditableElement, ht as isComposingEvent, mt as getNativeEvent, pt as getEventTarget, s as getByTypeahead, ut as getEventKey, vn as ariaAttr, yn as dataAttr, z as observeAttributes } from "../../dom-query-dX8Dakb4.mjs";
|
|
3
|
+
import { ft as isEqual, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
+
import { a as GridCollection, i as Selection, o as isGridCollection, s as ListCollection } from "../../collection-CcsrqDFY.mjs";
|
|
5
|
+
import { o as setup } from "../../core-DfVajPnu.mjs";
|
|
6
|
+
import { a as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-CSuBQ5QZ.mjs";
|
|
7
|
+
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
9
8
|
//#region src/machines/listbox/listbox.anatomy.ts
|
|
10
9
|
const anatomy = createAnatomy("listbox").parts("label", "input", "item", "itemText", "itemIndicator", "itemGroup", "itemGroupLabel", "content", "root", "valueText");
|
|
11
10
|
const parts = anatomy.build();
|
|
12
|
-
|
|
13
11
|
//#endregion
|
|
14
12
|
//#region src/machines/listbox/listbox.collection.ts
|
|
15
13
|
const collection = (options) => {
|
|
@@ -27,7 +25,6 @@ gridCollection.empty = () => {
|
|
|
27
25
|
columnCount: 0
|
|
28
26
|
});
|
|
29
27
|
};
|
|
30
|
-
|
|
31
28
|
//#endregion
|
|
32
29
|
//#region src/machines/listbox/listbox.dom.ts
|
|
33
30
|
const getRootId = (ctx) => ctx.ids?.root ?? `listbox:${ctx.id}`;
|
|
@@ -38,7 +35,6 @@ const getItemGroupId = (ctx, id) => ctx.ids?.itemGroup?.(id) ?? `listbox:${ctx.i
|
|
|
38
35
|
const getItemGroupLabelId = (ctx, id) => ctx.ids?.itemGroupLabel?.(id) ?? `listbox:${ctx.id}:item-group-label:${id}`;
|
|
39
36
|
const getContentEl = (ctx) => ctx.getById(getContentId(ctx));
|
|
40
37
|
const getItemEl = (ctx, id) => ctx.getById(getItemId(ctx, id));
|
|
41
|
-
|
|
42
38
|
//#endregion
|
|
43
39
|
//#region src/machines/listbox/listbox.connect.ts
|
|
44
40
|
function connect(service, normalize) {
|
|
@@ -448,7 +444,6 @@ function connect(service, normalize) {
|
|
|
448
444
|
}
|
|
449
445
|
};
|
|
450
446
|
}
|
|
451
|
-
|
|
452
447
|
//#endregion
|
|
453
448
|
//#region src/machines/listbox/listbox.machine.ts
|
|
454
449
|
const { guards, createMachine } = setup();
|
|
@@ -744,7 +739,6 @@ function invokeOnSelect(current, next, onSelect) {
|
|
|
744
739
|
const added = diff(next, current);
|
|
745
740
|
for (const item of added) onSelect?.({ value: item });
|
|
746
741
|
}
|
|
747
|
-
|
|
748
742
|
//#endregion
|
|
749
743
|
//#region src/machines/listbox/listbox.props.ts
|
|
750
744
|
const props = createProps()([
|
|
@@ -777,6 +771,5 @@ const itemGroupProps = createProps()(["id"]);
|
|
|
777
771
|
const splitItemGroupProps = createSplitProps(itemGroupProps);
|
|
778
772
|
const itemGroupLabelProps = createProps()(["htmlFor"]);
|
|
779
773
|
const splitItemGroupLabelProps = createSplitProps(itemGroupLabelProps);
|
|
780
|
-
|
|
781
774
|
//#endregion
|
|
782
|
-
export { anatomy, collection, connect, gridCollection, itemGroupLabelProps, itemGroupProps, itemProps, machine, props, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps, splitProps };
|
|
775
|
+
export { anatomy, collection, connect, gridCollection, itemGroupLabelProps, itemGroupProps, itemProps, machine, props, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps, splitProps };
|