@sprawlify/primitives 0.0.31 → 0.0.32
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/{aria-hidden-DIoJxbA3.mjs → aria-hidden-Bq1drpzH.mjs} +1 -1
- package/dist/{aria-hidden-DtLU6hSU.cjs → aria-hidden-DSdN9ih2.cjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-xzlPFDyD.cjs → auto-resize-Bh8HjZd5.cjs} +1 -1
- package/dist/{auto-resize-L6Oqa0lE.mjs → auto-resize-DLuF3IFp.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-DrxGD6r-.cjs → collection-C26svdLV.cjs} +2 -2
- package/dist/{collection-Don0IqzY.mjs → collection-CIpGDBdt.mjs} +2 -2
- package/dist/collection.cjs +2 -2
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-CjwofPil.mjs → color-utils-DGt9e4DC.mjs} +2 -2
- package/dist/{color-utils-grkMlPoh.cjs → color-utils-ZGUFwZHm.cjs} +2 -2
- package/dist/color-utils.cjs +2 -2
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-DVmt6PX7.mjs → core-BLrKf6Qi.mjs} +2 -2
- package/dist/{core-DHn58LRl.cjs → core-BXoiGBfo.cjs} +2 -2
- package/dist/core.cjs +3 -3
- package/dist/core.d.cts +48 -2
- package/dist/core.d.mts +48 -2
- package/dist/core.mjs +3 -3
- package/dist/{date-utils-D2xPHa_I.cjs → date-utils-_Hu9b5fQ.cjs} +45 -45
- package/dist/date-utils.cjs +1 -1
- package/dist/date-utils.d.cts +1 -1
- package/dist/date-utils.d.mts +1 -1
- package/dist/{defineProperty-Cql4jybt.mjs → defineProperty-Bzw41Glr.mjs} +4 -4
- package/dist/{defineProperty-BoUOT9Ie.cjs → defineProperty-CTuz_M0G.cjs} +4 -4
- package/dist/{dismissable-rIq_LmT8.cjs → dismissable-DAGPnT9O.cjs} +3 -3
- package/dist/{dismissable-layer-DmvOBneO.d.cts → dismissable-layer-C39y-V3t.d.mts} +2 -2
- package/dist/{dismissable-layer-xYn_dIUQ.d.mts → dismissable-layer-D-7fwQL8.d.cts} +2 -2
- package/dist/{dismissable-CyZwVu7n.mjs → dismissable-xKLesXM6.mjs} +3 -3
- package/dist/dismissable.cjs +4 -4
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-Bwyyt0Vp.mjs → dom-query-BaSlGC4X.mjs} +1 -1
- package/dist/{dom-query-CWZdWUGp.cjs → dom-query-fmUvyB3x.cjs} +1 -1
- package/dist/dom-query.cjs +1 -1
- package/dist/dom-query.d.cts +6 -6
- package/dist/dom-query.d.mts +6 -6
- package/dist/dom-query.mjs +1 -1
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/{focus-trap-BwUy71da.cjs → focus-trap-9PNm7ZOS.cjs} +2 -2
- package/dist/{focus-trap-Bw_WJq_d.mjs → focus-trap-zo20IBVh.mjs} +2 -2
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-BVOZnp76.cjs → focus-visible-BHSdwdWA.cjs} +1 -1
- package/dist/{focus-visible-BKLakzc7.mjs → focus-visible-D6iSwUgD.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/hotkeys.cjs +1 -1
- package/dist/hotkeys.mjs +1 -1
- package/dist/{i18n-utils-DCz8B6DF.mjs → i18n-utils-BYlbN_An.mjs} +1 -1
- package/dist/{i18n-utils-B8IY1mOh.cjs → i18n-utils-DNxuEaJv.cjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{index-BlM1bSkX.d.mts → index-60_Ru8qp.d.mts} +1 -1
- package/dist/{interact-outside-Dp8GERFa.cjs → interact-outside-DhVG9So9.cjs} +2 -2
- package/dist/{interact-outside-D9gKK1XW.mjs → interact-outside-DkNMPOqV.mjs} +2 -2
- package/dist/interact-outside.cjs +3 -3
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +3 -3
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/machines/accordion/index.cjs +3 -3
- package/dist/machines/accordion/index.d.cts +2 -2
- package/dist/machines/accordion/index.d.mts +2 -2
- package/dist/machines/accordion/index.mjs +3 -3
- package/dist/machines/angle-slider/index.cjs +4 -4
- package/dist/machines/angle-slider/index.d.cts +3 -3
- package/dist/machines/angle-slider/index.d.mts +3 -3
- package/dist/machines/angle-slider/index.mjs +4 -4
- package/dist/machines/async-list/index.cjs +3 -3
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +3 -3
- package/dist/machines/avatar/index.cjs +3 -3
- package/dist/machines/avatar/index.d.cts +2 -2
- package/dist/machines/avatar/index.d.mts +2 -2
- package/dist/machines/avatar/index.mjs +3 -3
- package/dist/machines/bottom-sheet/index.cjs +9 -9
- package/dist/machines/bottom-sheet/index.d.cts +5 -5
- package/dist/machines/bottom-sheet/index.d.mts +5 -5
- package/dist/machines/bottom-sheet/index.mjs +9 -9
- package/dist/machines/carousel/index.cjs +4 -4
- package/dist/machines/carousel/index.d.cts +3 -3
- package/dist/machines/carousel/index.d.mts +3 -3
- package/dist/machines/carousel/index.mjs +4 -4
- package/dist/machines/checkbox/index.cjs +4 -4
- package/dist/machines/checkbox/index.d.cts +3 -3
- package/dist/machines/checkbox/index.d.mts +3 -3
- package/dist/machines/checkbox/index.mjs +4 -4
- package/dist/machines/clipboard/index.cjs +3 -3
- package/dist/machines/clipboard/index.d.cts +3 -3
- package/dist/machines/clipboard/index.d.mts +3 -3
- package/dist/machines/clipboard/index.mjs +3 -3
- package/dist/machines/collapsible/index.cjs +3 -3
- package/dist/machines/collapsible/index.d.cts +2 -2
- package/dist/machines/collapsible/index.d.mts +2 -2
- package/dist/machines/collapsible/index.mjs +3 -3
- package/dist/machines/color-picker/index.cjs +7 -7
- package/dist/machines/color-picker/index.d.cts +5 -5
- package/dist/machines/color-picker/index.d.mts +5 -5
- package/dist/machines/color-picker/index.mjs +7 -7
- package/dist/machines/combobox/index.cjs +7 -7
- package/dist/machines/combobox/index.d.cts +5 -5
- package/dist/machines/combobox/index.d.mts +5 -5
- package/dist/machines/combobox/index.mjs +7 -7
- package/dist/machines/date-picker/index.cjs +19 -19
- package/dist/machines/date-picker/index.d.cts +7 -7
- package/dist/machines/date-picker/index.d.mts +7 -7
- package/dist/machines/date-picker/index.mjs +6 -6
- package/dist/machines/dialog/index.cjs +8 -8
- package/dist/machines/dialog/index.d.cts +5 -5
- package/dist/machines/dialog/index.d.mts +5 -5
- package/dist/machines/dialog/index.mjs +8 -8
- package/dist/machines/editable/index.cjs +4 -4
- package/dist/machines/editable/index.d.cts +4 -4
- package/dist/machines/editable/index.d.mts +4 -4
- package/dist/machines/editable/index.mjs +4 -4
- package/dist/machines/file-upload/index.cjs +4 -4
- package/dist/machines/file-upload/index.d.cts +4 -4
- package/dist/machines/file-upload/index.d.mts +4 -4
- package/dist/machines/file-upload/index.mjs +4 -4
- package/dist/machines/floating-panel/index.cjs +4 -4
- package/dist/machines/floating-panel/index.d.cts +4 -4
- package/dist/machines/floating-panel/index.d.mts +4 -4
- package/dist/machines/floating-panel/index.mjs +4 -4
- package/dist/machines/hover-card/index.cjs +6 -6
- package/dist/machines/hover-card/index.d.cts +5 -5
- package/dist/machines/hover-card/index.d.mts +5 -5
- package/dist/machines/hover-card/index.mjs +6 -6
- package/dist/machines/image-cropper/index.cjs +3 -3
- package/dist/machines/image-cropper/index.d.cts +3 -3
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +3 -3
- package/dist/machines/listbox/index.cjs +5 -5
- package/dist/machines/listbox/index.d.cts +4 -4
- package/dist/machines/listbox/index.d.mts +4 -4
- package/dist/machines/listbox/index.mjs +5 -5
- package/dist/machines/marquee/index.cjs +3 -3
- package/dist/machines/marquee/index.d.cts +5 -5
- package/dist/machines/marquee/index.d.mts +5 -5
- package/dist/machines/marquee/index.mjs +3 -3
- package/dist/machines/menu/index.cjs +7 -7
- package/dist/machines/menu/index.d.cts +8 -8
- package/dist/machines/menu/index.d.mts +8 -8
- package/dist/machines/menu/index.mjs +7 -7
- package/dist/machines/navigation-menu/index.cjs +5 -5
- package/dist/machines/navigation-menu/index.d.cts +3 -3
- package/dist/machines/navigation-menu/index.d.mts +3 -3
- package/dist/machines/navigation-menu/index.mjs +5 -5
- package/dist/machines/number-input/index.cjs +5 -5
- package/dist/machines/number-input/index.d.cts +3 -3
- package/dist/machines/number-input/index.d.mts +3 -3
- package/dist/machines/number-input/index.mjs +3 -3
- package/dist/machines/pagination/index.cjs +3 -3
- package/dist/machines/pagination/index.d.cts +2 -2
- package/dist/machines/pagination/index.d.mts +2 -2
- package/dist/machines/pagination/index.mjs +3 -3
- package/dist/machines/password-input/index.cjs +3 -3
- package/dist/machines/password-input/index.d.cts +3 -3
- package/dist/machines/password-input/index.d.mts +3 -3
- package/dist/machines/password-input/index.mjs +3 -3
- package/dist/machines/pin-input/index.cjs +3 -3
- package/dist/machines/pin-input/index.d.cts +3 -3
- package/dist/machines/pin-input/index.d.mts +3 -3
- package/dist/machines/pin-input/index.mjs +3 -3
- package/dist/machines/popover/index.cjs +9 -9
- package/dist/machines/popover/index.d.cts +6 -6
- package/dist/machines/popover/index.d.mts +6 -6
- package/dist/machines/popover/index.mjs +9 -9
- package/dist/machines/presence/index.cjs +3 -3
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +3 -3
- package/dist/machines/progress/index.cjs +3 -3
- package/dist/machines/progress/index.d.cts +3 -3
- package/dist/machines/progress/index.d.mts +3 -3
- package/dist/machines/progress/index.mjs +3 -3
- package/dist/machines/qr-code/index.cjs +3 -3
- package/dist/machines/qr-code/index.d.cts +4 -4
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +3 -3
- package/dist/machines/radio-group/index.cjs +4 -4
- package/dist/machines/radio-group/index.d.cts +3 -3
- package/dist/machines/radio-group/index.d.mts +3 -3
- package/dist/machines/radio-group/index.mjs +4 -4
- package/dist/machines/rating-group/index.cjs +3 -3
- package/dist/machines/rating-group/index.d.cts +3 -3
- package/dist/machines/rating-group/index.d.mts +3 -3
- package/dist/machines/rating-group/index.mjs +3 -3
- package/dist/machines/scroll-area/index.cjs +4 -4
- package/dist/machines/scroll-area/index.d.cts +3 -3
- package/dist/machines/scroll-area/index.d.mts +3 -3
- package/dist/machines/scroll-area/index.mjs +4 -4
- package/dist/machines/select/index.cjs +7 -7
- package/dist/machines/select/index.d.cts +6 -6
- package/dist/machines/select/index.d.mts +6 -6
- package/dist/machines/select/index.mjs +7 -7
- package/dist/machines/signature-pad/index.cjs +6 -6
- package/dist/machines/signature-pad/index.d.cts +3 -3
- package/dist/machines/signature-pad/index.d.mts +3 -3
- package/dist/machines/signature-pad/index.mjs +7 -7
- package/dist/machines/slider/index.cjs +36 -6
- package/dist/machines/slider/index.d.cts +3 -3
- package/dist/machines/slider/index.d.mts +3 -3
- package/dist/machines/slider/index.mjs +36 -6
- package/dist/machines/splitter/index.cjs +3 -3
- package/dist/machines/splitter/index.d.cts +2 -2
- package/dist/machines/splitter/index.d.mts +2 -2
- package/dist/machines/splitter/index.mjs +3 -3
- package/dist/machines/steps/index.cjs +3 -3
- package/dist/machines/steps/index.d.cts +3 -3
- package/dist/machines/steps/index.d.mts +3 -3
- package/dist/machines/steps/index.mjs +3 -3
- package/dist/machines/switch/index.cjs +4 -4
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +3 -3
- package/dist/machines/switch/index.mjs +4 -4
- package/dist/machines/tabs/index.cjs +3 -3
- package/dist/machines/tabs/index.d.cts +2 -2
- package/dist/machines/tabs/index.d.mts +2 -2
- package/dist/machines/tabs/index.mjs +3 -3
- package/dist/machines/tags-input/index.cjs +5 -5
- package/dist/machines/tags-input/index.d.cts +5 -5
- package/dist/machines/tags-input/index.d.mts +5 -5
- package/dist/machines/tags-input/index.mjs +5 -5
- package/dist/machines/timer/index.cjs +3 -3
- package/dist/machines/timer/index.d.cts +3 -3
- package/dist/machines/timer/index.d.mts +3 -3
- package/dist/machines/timer/index.mjs +3 -3
- package/dist/machines/toast/index.cjs +7 -7
- package/dist/machines/toast/index.d.cts +4 -3
- package/dist/machines/toast/index.d.mts +4 -3
- package/dist/machines/toast/index.mjs +8 -8
- package/dist/machines/toggle/index.cjs +3 -3
- package/dist/machines/toggle/index.d.cts +2 -2
- package/dist/machines/toggle/index.d.mts +2 -2
- package/dist/machines/toggle/index.mjs +3 -3
- package/dist/machines/toggle-group/index.cjs +3 -3
- package/dist/machines/toggle-group/index.d.cts +2 -2
- package/dist/machines/toggle-group/index.d.mts +2 -2
- package/dist/machines/toggle-group/index.mjs +3 -3
- package/dist/machines/tooltip/index.cjs +5 -5
- package/dist/machines/tooltip/index.d.cts +4 -4
- package/dist/machines/tooltip/index.d.mts +4 -4
- package/dist/machines/tooltip/index.mjs +5 -5
- package/dist/machines/tour/index.cjs +7 -7
- package/dist/machines/tour/index.d.cts +6 -6
- package/dist/machines/tour/index.d.mts +6 -6
- package/dist/machines/tour/index.mjs +7 -7
- package/dist/machines/tree-view/index.cjs +4 -4
- package/dist/machines/tree-view/index.d.cts +4 -4
- package/dist/machines/tree-view/index.d.mts +4 -4
- package/dist/machines/tree-view/index.mjs +4 -4
- package/dist/{popper-CjBC91Tz.mjs → popper-BN7E_8-R.mjs} +2 -2
- package/dist/{popper-kp05O3Bm.cjs → popper-CasttusN.cjs} +12 -12
- package/dist/popper.cjs +3 -3
- package/dist/popper.d.cts +2 -2
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-Dp9Wvl7-.cjs → rect-utils-C-9DRQNd.cjs} +1 -1
- package/dist/{rect-utils-j6C9uZk1.mjs → rect-utils-C6Nug-pt.mjs} +1 -1
- package/dist/rect-utils.cjs +1 -1
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +1 -1
- package/dist/{remove-scroll-Dh9PjZFE.cjs → remove-scroll-BPLI9jr9.cjs} +1 -1
- package/dist/{remove-scroll-C73TLIgr.mjs → remove-scroll-Btia-r68.mjs} +1 -1
- package/dist/{scroll-snap-B279jSp5.mjs → scroll-snap-DY-Wmmhl.mjs} +1 -1
- package/dist/{scroll-snap-BvaE_jFu.cjs → scroll-snap-VzQ4ngQ4.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/{utils-BIwaJq8z.mjs → utils-B_odTlcq.mjs} +5 -5
- package/dist/{utils-CtgLe8Vv.cjs → utils-CMs0714u.cjs} +5 -5
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/core-75kSaDJc.d.mts +0 -49
- package/dist/core-D_pI64vx.d.cts +0 -49
- /package/dist/{data-url-BqpiKO1L.d.mts → data-url-C3ITPVRX.d.cts} +0 -0
- /package/dist/{data-url-og2AwQaU.d.cts → data-url-mcVoUiET.d.mts} +0 -0
- /package/dist/{functions-2ix8ad1e.d.cts → functions-7V6veSov.d.cts} +0 -0
- /package/dist/{functions-qoGE2jOS.d.mts → functions-CjitT5Gr.d.mts} +0 -0
- /package/dist/{index-DYzqCFaj.d.mts → index-BqhWpjZh.d.mts} +0 -0
- /package/dist/{index-BVcPBg7R.d.mts → index-Bqw3r34-.d.cts} +0 -0
- /package/dist/{index-UNyqrBDu.d.cts → index-BuUzJjaP.d.mts} +0 -0
- /package/dist/{index-9OlOKr2i.d.mts → index-Bvn6ocEE.d.mts} +0 -0
- /package/dist/{index-DFiQyzeW.d.cts → index-C9-feK5c.d.cts} +0 -0
- /package/dist/{index-BBTkH09t.d.cts → index-CygfPLvT.d.mts} +0 -0
- /package/dist/{index-C9ajBf1B.d.mts → index-Owca7uxB.d.cts} +0 -0
- /package/dist/{node-BecR7gec.d.cts → node-CHGS3acf.d.mts} +0 -0
- /package/dist/{node-v8Pyrj9P.d.mts → node-CSsuPZVZ.d.cts} +0 -0
- /package/dist/{raf-BF2VrckK.d.cts → raf-BV1049GE.d.mts} +0 -0
- /package/dist/{raf-DX52LaVy.d.mts → raf-Cd2FGy0z.d.cts} +0 -0
- /package/dist/{typeahead-BWyD_KIb.d.cts → typeahead-BdNwVP09.d.cts} +0 -0
- /package/dist/{typeahead-BX-BWYjD.d.mts → typeahead-DMSwLv1e.d.mts} +0 -0
- /package/dist/{types-CsK6JMut.d.mts → types-D-ZRl1jP.d.mts} +0 -0
- /package/dist/{types-TUsgVjZA.d.cts → types-D5ziaMrd.d.cts} +0 -0
- /package/dist/{types-BIy26Uwn.d.cts → types-DL5AIQk5.d.mts} +0 -0
- /package/dist/{types-ByFp2QfD.d.mts → types-DddL75YY.d.cts} +0 -0
- /package/dist/{types-jyV564Ip.d.mts → types-DejIu60O.d.cts} +0 -0
- /package/dist/{types-xyuh-a2-.d.cts → types-F-0xFywm.d.cts} +0 -0
- /package/dist/{types-oh90SH45.d.cts → types-GxLIgJib.d.cts} +0 -0
- /package/dist/{types-CaxzY9yP.d.cts → types-J14X3oxU.d.mts} +0 -0
- /package/dist/{wait-for-C9QyzQj2.d.cts → wait-for-BkzY39R9.d.mts} +0 -0
- /package/dist/{wait-for-Pn6RmrHX.d.mts → wait-for-CMjPsqWk.d.cts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { S as queryAll, T as trackPointerMove, U as raf, _n as ariaAttr, at as setElementValue, bt as isModifierKey, dt as getEventStep,
|
|
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, 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-
|
|
2
|
+
import { S as queryAll, T as trackPointerMove, U as raf, _n as ariaAttr, at as setElementValue, bt as isModifierKey, dt as getEventStep, lt as getEventKey, ot as trackFormControl, p as resizeObserverBorderBox, rt as dispatchInputValueEvent, ut as getEventPoint, vn as dataAttr, yt as isLeftClick } from "../../dom-query-BaSlGC4X.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-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/slider/slider.anatomy.ts
|
|
@@ -25,20 +25,50 @@ const getThumbEls = (ctx) => queryAll(getControlEl(ctx), "[role=slider]");
|
|
|
25
25
|
const getFirstThumbEl = (ctx) => getThumbEls(ctx)[0];
|
|
26
26
|
const getHiddenInputEl = (ctx, index) => ctx.getById(getHiddenInputId(ctx, index));
|
|
27
27
|
const getControlEl = (ctx) => ctx.getById(getControlId(ctx));
|
|
28
|
+
const getThumbInset = (thumbSize, thumbAlignment, orientation) => {
|
|
29
|
+
return thumbAlignment === "contain" ? (orientation === "vertical" ? thumbSize?.height ?? 0 : thumbSize?.width ?? 0) / 2 : 0;
|
|
30
|
+
};
|
|
28
31
|
const getPointValue = (params, point) => {
|
|
29
|
-
const { prop, scope, refs } = params;
|
|
32
|
+
const { context, prop, scope, refs } = params;
|
|
30
33
|
const controlEl = getControlEl(scope);
|
|
31
34
|
if (!controlEl) return;
|
|
32
35
|
const offset = refs.get("thumbDragOffset");
|
|
33
|
-
return getPercentValue(
|
|
36
|
+
return getPercentValue(getRelativePointWithInset({
|
|
34
37
|
x: point.x - (offset?.x ?? 0),
|
|
35
38
|
y: point.y - (offset?.y ?? 0)
|
|
36
|
-
}, controlEl).getPercentValue({
|
|
39
|
+
}, controlEl, getThumbInset(context.get("thumbSize"), prop("thumbAlignment"), prop("orientation"))).getPercentValue({
|
|
37
40
|
orientation: prop("orientation"),
|
|
38
41
|
dir: prop("dir"),
|
|
39
42
|
inverted: { y: true }
|
|
40
43
|
}), prop("min"), prop("max"), prop("step"));
|
|
41
44
|
};
|
|
45
|
+
function getRelativePointWithInset(point, element, inset) {
|
|
46
|
+
const { left, top, width, height } = element.getBoundingClientRect();
|
|
47
|
+
const effectiveWidth = width - inset * 2;
|
|
48
|
+
const effectiveHeight = height - inset * 2;
|
|
49
|
+
const effectiveLeft = left + inset;
|
|
50
|
+
const effectiveTop = top + inset;
|
|
51
|
+
const offset = {
|
|
52
|
+
x: point.x - effectiveLeft,
|
|
53
|
+
y: point.y - effectiveTop
|
|
54
|
+
};
|
|
55
|
+
const percent = {
|
|
56
|
+
x: effectiveWidth > 0 ? clampPercent(offset.x / effectiveWidth) : 0,
|
|
57
|
+
y: effectiveHeight > 0 ? clampPercent(offset.y / effectiveHeight) : 0
|
|
58
|
+
};
|
|
59
|
+
function getPercentValue$1(options = {}) {
|
|
60
|
+
const { dir = "ltr", orientation = "horizontal", inverted } = options;
|
|
61
|
+
const invertX = typeof inverted === "object" ? inverted.x : inverted;
|
|
62
|
+
const invertY = typeof inverted === "object" ? inverted.y : inverted;
|
|
63
|
+
if (orientation === "horizontal") return dir === "rtl" || invertX ? 1 - percent.x : percent.x;
|
|
64
|
+
return invertY ? 1 - percent.y : percent.y;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
offset,
|
|
68
|
+
percent,
|
|
69
|
+
getPercentValue: getPercentValue$1
|
|
70
|
+
};
|
|
71
|
+
}
|
|
42
72
|
const dispatchChangeEvent = (ctx, value) => {
|
|
43
73
|
value.forEach((value$1, index) => {
|
|
44
74
|
const inputEl = getHiddenInputEl(ctx, index);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/splitter/splitter.anatomy.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.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-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/splitter/splitter.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
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-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/splitter/splitter.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { S as queryAll, T as trackPointerMove, lt as getEventKey, ut as getEventPoint, vn as dataAttr, yt as isLeftClick } from "../../dom-query-
|
|
3
|
-
import { Ot as prev, Tt as next, ft as isEqual, n as ensureProps, s as setRafTimeout, t as ensure, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
2
|
+
import { S as queryAll, T as trackPointerMove, lt as getEventKey, ut as getEventPoint, vn as dataAttr, yt as isLeftClick } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { Ot as prev, Tt as next, ft as isEqual, n as ensureProps, s as setRafTimeout, t as ensure, u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/splitter/splitter.anatomy.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/steps/steps.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.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-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/steps/steps.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "progress" | "list" | "item" | "nextTrigger" | "prevTrigger" | "separator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/steps.types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
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-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/steps/steps.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "progress" | "list" | "item" | "nextTrigger" | "prevTrigger" | "separator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/steps.types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { vn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { N as isValueWithinRange, bt as fromLength, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, s as memo } from "../../core-
|
|
2
|
+
import { vn as dataAttr } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { N as isValueWithinRange, bt as fromLength, u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/steps/steps.anatomy.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
5
|
-
const require_focus_visible = require('../../focus-visible-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
|
+
const require_focus_visible = require('../../focus-visible-BHSdwdWA.cjs');
|
|
6
6
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
7
7
|
|
|
8
8
|
//#region src/machines/switch/switch.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.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-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
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-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { Rt as isSafari, ft as getEventTarget, i as visuallyHiddenStyle, it as setElementChecked, nt as dispatchInputCheckedEvent, ot as trackFormControl, vn as dataAttr, w as trackPress } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-
|
|
2
|
+
import { Rt as isSafari, ft as getEventTarget, i as visuallyHiddenStyle, it as setElementChecked, nt as dispatchInputCheckedEvent, ot as trackFormControl, vn as dataAttr, w as trackPress } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-BLrKf6Qi.mjs";
|
|
5
|
+
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-D6iSwUgD.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/switch/switch.anatomy.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tabs/tabs.anatomy.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "list">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "indicator" | "list">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { I as clickIfLink, J as getFocusables, Rt as isSafari, S as queryAll, U as raf, Xt as contains, an as isAnchorElement, b as prevById, ft as getEventTarget, lt as getEventKey, mt as isComposingEvent, p as resizeObserverBorderBox, v as itemById, vn as dataAttr, xt as isOpeningInNewTab, y as nextById } from "../../dom-query-
|
|
3
|
-
import { H as toPx, W as callAll, ft as isEqual, u as createSplitProps, vt as first, wt as last } from "../../utils-
|
|
4
|
-
import { o as setup } from "../../core-
|
|
2
|
+
import { I as clickIfLink, J as getFocusables, Rt as isSafari, S as queryAll, U as raf, Xt as contains, an as isAnchorElement, b as prevById, ft as getEventTarget, lt as getEventKey, mt as isComposingEvent, p as resizeObserverBorderBox, v as itemById, vn as dataAttr, xt as isOpeningInNewTab, y as nextById } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { H as toPx, W as callAll, ft as isEqual, u as createSplitProps, vt as first, wt as last } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { o as setup } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tabs/tabs.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_auto_resize = require('../../auto-resize-
|
|
4
|
-
const require_utils = require('../../utils-
|
|
5
|
-
const require_core = require('../../core-
|
|
6
|
-
const require_interact_outside = require('../../interact-outside-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_auto_resize = require('../../auto-resize-Bh8HjZd5.cjs');
|
|
4
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
5
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
6
|
+
const require_interact_outside = require('../../interact-outside-DhVG9So9.cjs');
|
|
7
7
|
const require_live_region = require('../../live-region-2RiuzOr-.cjs');
|
|
8
8
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as LiveRegion } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C9-feK5c.cjs";
|
|
5
|
+
import { t as LiveRegion } from "../../index-Owca7uxB.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "item" | "itemText" | "control" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as LiveRegion } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Bvn6ocEE.mjs";
|
|
5
|
+
import { t as LiveRegion } from "../../index-CygfPLvT.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "item" | "itemText" | "control" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { S as queryAll, U as raf, Xt as contains, _ as indexOfId, _n as ariaAttr, at as setElementValue, b as prevById, lt as getEventKey, mt as isComposingEvent, ot as trackFormControl, pt as getNativeEvent, rt as dispatchInputValueEvent, vn as dataAttr, y as nextById, yn as isCaretAtStart, yt as isLeftClick } from "../../dom-query-
|
|
3
|
-
import { n as autoResizeInput } from "../../auto-resize-
|
|
4
|
-
import { Nt as uniq, ft as isEqual, i as warn, jt as removeAt, u as createSplitProps } from "../../utils-
|
|
5
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
6
|
-
import { t as trackInteractOutside } from "../../interact-outside-
|
|
2
|
+
import { S as queryAll, U as raf, Xt as contains, _ as indexOfId, _n as ariaAttr, at as setElementValue, b as prevById, lt as getEventKey, mt as isComposingEvent, ot as trackFormControl, pt as getNativeEvent, rt as dispatchInputValueEvent, vn as dataAttr, y as nextById, yn as isCaretAtStart, yt as isLeftClick } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { n as autoResizeInput } from "../../auto-resize-DLuF3IFp.mjs";
|
|
4
|
+
import { Nt as uniq, ft as isEqual, i as warn, jt as removeAt, u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
5
|
+
import { a as createMachine, i as createGuards } from "../../core-BLrKf6Qi.mjs";
|
|
6
|
+
import { t as trackInteractOutside } from "../../interact-outside-DkNMPOqV.mjs";
|
|
7
7
|
import { t as createLiveRegion } from "../../live-region-BcSdQIM8.mjs";
|
|
8
8
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/timer/timer.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "area" | "item" | "actionTrigger" | "control" | "separator" | "itemLabel" | "itemValue">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "area" | "item" | "actionTrigger" | "control" | "separator" | "itemLabel" | "itemValue">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import "../../dom-query-
|
|
3
|
-
import { Y as match, ct as isObject, g as clampValue, o as setRafInterval, s as setRafTimeout, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine, s as memo } from "../../core-
|
|
2
|
+
import "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { Y as match, ct as isObject, g as clampValue, o as setRafInterval, s as setRafTimeout, u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine, s as memo } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/timer/timer.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
5
|
-
require('../../interact-outside-
|
|
6
|
-
const require_dismissable = require('../../dismissable-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
|
+
require('../../interact-outside-DhVG9So9.cjs');
|
|
6
|
+
const require_dismissable = require('../../dismissable-DAGPnT9O.cjs');
|
|
7
7
|
|
|
8
8
|
//#region src/machines/toast/toast.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("toast").parts("group", "root", "title", "description", "actionTrigger", "closeTrigger");
|
|
@@ -229,9 +229,9 @@ function groupConnect(service, normalize) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/machines/toast/toast-group.machine.ts
|
|
232
|
-
const { guards, createMachine
|
|
232
|
+
const { guards, createMachine } = require_core.setup();
|
|
233
233
|
const { and } = guards;
|
|
234
|
-
const groupMachine = createMachine
|
|
234
|
+
const groupMachine = createMachine({
|
|
235
235
|
props({ props }) {
|
|
236
236
|
return {
|
|
237
237
|
dir: "ltr",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, h as Required, n as Direction, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { t as AnimationFrame } from "../../raf-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, h as Required, n as Direction, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
|
+
import { t as AnimationFrame } from "../../raf-Cd2FGy0z.cjs";
|
|
5
|
+
import "../../core.cjs";
|
|
5
6
|
|
|
6
7
|
//#region src/machines/toast/toast.types.d.ts
|
|
7
8
|
type Type = "success" | "error" | "loading" | "info" | (string & {});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, h as Required, n as Direction, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { t as AnimationFrame } from "../../raf-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, h as Required, n as Direction, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
|
+
import { t as AnimationFrame } from "../../raf-BV1049GE.mjs";
|
|
5
|
+
import "../../core.mjs";
|
|
5
6
|
|
|
6
7
|
//#region src/machines/toast/toast.types.d.ts
|
|
7
8
|
type Type = "success" | "error" | "loading" | "info" | (string & {});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { B as AnimationFrame, U as raf, Xt as contains, gn as MAX_Z_INDEX, st as addDomEvent, vn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { Z as runIfFn, et as uuid, i as warn, l as compact, n as ensureProps, s as setRafTimeout } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards, o as setup } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { t as trackDismissableBranch } from "../../dismissable-
|
|
2
|
+
import { B as AnimationFrame, U as raf, Xt as contains, gn as MAX_Z_INDEX, st as addDomEvent, vn as dataAttr } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { Z as runIfFn, et as uuid, i as warn, l as compact, n as ensureProps, s as setRafTimeout } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine$1, i as createGuards, o as setup } from "../../core-BLrKf6Qi.mjs";
|
|
5
|
+
import "../../interact-outside-DkNMPOqV.mjs";
|
|
6
|
+
import { t as trackDismissableBranch } from "../../dismissable-xKLesXM6.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/toast/toast.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("toast").parts("group", "root", "title", "description", "actionTrigger", "closeTrigger");
|
|
@@ -229,9 +229,9 @@ function groupConnect(service, normalize) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/machines/toast/toast-group.machine.ts
|
|
232
|
-
const { guards, createMachine
|
|
232
|
+
const { guards, createMachine } = setup();
|
|
233
233
|
const { and } = guards;
|
|
234
|
-
const groupMachine = createMachine
|
|
234
|
+
const groupMachine = createMachine({
|
|
235
235
|
props({ props }) {
|
|
236
236
|
return {
|
|
237
237
|
dir: "ltr",
|
|
@@ -612,7 +612,7 @@ function connect(service, normalize) {
|
|
|
612
612
|
//#endregion
|
|
613
613
|
//#region src/machines/toast/toast.machine.ts
|
|
614
614
|
const { not } = createGuards();
|
|
615
|
-
const machine = createMachine({
|
|
615
|
+
const machine = createMachine$1({
|
|
616
616
|
props({ props }) {
|
|
617
617
|
ensureProps(props, [
|
|
618
618
|
"id",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/toggle/toggle.anatomy.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Anatomy } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/toggle/toggle.anatomy.d.ts
|
|
6
6
|
declare const anatomy: Anatomy<"root" | "indicator">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Anatomy } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, x as PropTypes } from "../../index-
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/toggle/toggle.anatomy.d.ts
|
|
6
6
|
declare const anatomy: Anatomy<"root" | "indicator">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { vn as dataAttr } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
2
|
+
import { vn as dataAttr } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/toggle/toggle.anatomy.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_create_anatomy = require('../../create-anatomy-CDsIFUXg.cjs');
|
|
2
|
-
const require_dom_query = require('../../dom-query-
|
|
3
|
-
const require_utils = require('../../utils-
|
|
4
|
-
const require_core = require('../../core-
|
|
2
|
+
const require_dom_query = require('../../dom-query-fmUvyB3x.cjs');
|
|
3
|
+
const require_utils = require('../../utils-CMs0714u.cjs');
|
|
4
|
+
const require_core = require('../../core-BXoiGBfo.cjs');
|
|
5
5
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/machines/toggle-group/toggle-group.anatomy.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, d as Orientation, 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-DejIu60O.cjs";
|
|
3
|
+
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/toggle-group/toggle-group.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "item">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, d as Orientation, 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-DL5AIQk5.mjs";
|
|
3
|
+
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/toggle-group/toggle-group.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "item">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-CArN8dVu.mjs";
|
|
2
|
-
import { Rt as isSafari, S as queryAll, U as raf, Xt as contains, b as prevById, ft as getEventTarget, lt as getEventKey, vn as dataAttr, y as nextById } from "../../dom-query-
|
|
3
|
-
import { ft as isEqual, mt as addOrRemove, n as ensureProps, nt as isArray, u as createSplitProps, vt as first, wt as last } from "../../utils-
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
2
|
+
import { Rt as isSafari, S as queryAll, U as raf, Xt as contains, b as prevById, ft as getEventTarget, lt as getEventKey, vn as dataAttr, y as nextById } from "../../dom-query-BaSlGC4X.mjs";
|
|
3
|
+
import { ft as isEqual, mt as addOrRemove, n as ensureProps, nt as isArray, u as createSplitProps, vt as first, wt as last } from "../../utils-B_odTlcq.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-BLrKf6Qi.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/toggle-group/toggle-group.anatomy.ts
|