@sprawlify/primitives 0.0.4 → 0.0.6
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.d.cts +1 -1
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +1 -1
- package/dist/{aria-hidden-DqYx0f_y.mjs → aria-hidden-Dvvxh8vn.mjs} +1 -1
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-D3qHtFy1.mjs → auto-resize-jPNnPyMJ.mjs} +1 -1
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-8XqaNHs_.mjs → collection-Bxz7UdDS.mjs} +2 -2
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +2 -2
- package/dist/{color-utils-Cc5GVXZh.mjs → color-utils-DbSDg6nI.mjs} +2 -2
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +2 -2
- package/dist/{core-CefBjbst.d.cts → core-1JwD9Bth.d.mts} +3 -3
- package/dist/{core-30pJjyC2.d.mts → core-Bap2tV4J.d.cts} +3 -3
- package/dist/{core-DCFNMTZF.mjs → core-C77LsUvk.mjs} +2 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +3 -3
- package/dist/date-utils.d.cts +6 -6
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +1 -1
- package/dist/{dismissable-DDrx0xnH.mjs → dismissable-WpM6GqPg.mjs} +3 -3
- package/dist/{dismissable-layer-t_b0fk-p.d.mts → dismissable-layer-BHdxdWFo.d.cts} +2 -2
- package/dist/{dismissable-layer-C7pZU2wi.d.cts → dismissable-layer-DwFMEm4o.d.mts} +2 -2
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +4 -4
- package/dist/{dom-query-DFCRhyj1.mjs → dom-query-DlipWdON.mjs} +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/{focus-trap-D-bypQEJ.mjs → focus-trap-BY0WXiLZ.mjs} +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-irppYatv.mjs → focus-visible-C8Gu5QYM.mjs} +1 -1
- package/dist/focus-visible.mjs +2 -2
- package/dist/hotkeys.mjs +1 -1
- package/dist/i18n-utils.mjs +1 -1
- package/dist/{index-CD5FN7kY.d.mts → index-CNyu_Zzq.d.mts} +5 -5
- package/dist/{index-BP3yUk3F.d.mts → index-pPMoFaB-.d.mts} +1 -1
- package/dist/{interact-outside-BplxR9cR.mjs → interact-outside-JTrDIgHe.mjs} +2 -2
- 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/{list-collection-BDMhqN2p.d.cts → list-collection-BQSMBg4X.d.mts} +2 -2
- package/dist/{list-collection-LwY6REbk.d.mts → list-collection-DrnwYduc.d.cts} +2 -2
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +1 -1
- package/dist/machines/accordion/index.d.cts +3 -3
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +5 -5
- package/dist/machines/angle-slider/index.cjs +385 -0
- package/dist/machines/angle-slider/index.d.cts +84 -0
- package/dist/machines/angle-slider/index.d.mts +84 -0
- package/dist/machines/angle-slider/index.mjs +381 -0
- 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.d.cts +3 -3
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +5 -5
- package/dist/machines/bottom-sheet/index.d.cts +6 -6
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +11 -11
- package/dist/machines/carousel/index.d.cts +4 -4
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +6 -6
- package/dist/machines/checkbox/index.d.cts +4 -4
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +6 -6
- package/dist/machines/clipboard/index.d.cts +4 -4
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +5 -5
- package/dist/machines/collapsible/index.d.cts +4 -4
- package/dist/machines/collapsible/index.d.mts +4 -4
- package/dist/machines/collapsible/index.mjs +5 -5
- package/dist/machines/color-picker/index.d.cts +7 -7
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +9 -9
- package/dist/machines/combobox/index.d.cts +8 -8
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +9 -9
- package/dist/machines/date-picker/index.d.cts +8 -8
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +10 -10
- package/dist/machines/dialog/index.d.cts +6 -6
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +10 -10
- package/dist/machines/editable/index.d.cts +5 -5
- package/dist/machines/editable/index.d.mts +5 -5
- package/dist/machines/editable/index.mjs +6 -6
- package/dist/machines/floating-panel/index.d.cts +5 -5
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +7 -7
- package/dist/machines/hover-card/index.d.cts +6 -6
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +8 -8
- package/dist/machines/image-cropper/index.d.cts +4 -4
- package/dist/machines/image-cropper/index.d.mts +4 -4
- package/dist/machines/image-cropper/index.mjs +5 -5
- package/dist/machines/listbox/index.d.cts +8 -8
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +7 -7
- package/dist/machines/marquee/index.d.cts +6 -6
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +5 -5
- package/dist/machines/menu/index.d.cts +9 -9
- package/dist/machines/menu/index.d.mts +9 -9
- package/dist/machines/menu/index.mjs +9 -9
- package/dist/machines/navigation-menu/index.d.cts +4 -4
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +7 -7
- package/dist/machines/number-input/index.d.cts +4 -4
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +5 -5
- package/dist/machines/pagination/index.d.cts +4 -4
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +5 -5
- package/dist/machines/password-input/index.d.cts +4 -4
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +5 -5
- package/dist/machines/pin-input/index.d.cts +4 -4
- package/dist/machines/pin-input/index.d.mts +4 -4
- package/dist/machines/pin-input/index.mjs +5 -5
- package/dist/machines/popover/index.d.cts +7 -7
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +11 -11
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +4 -4
- package/dist/machines/progress/index.d.cts +4 -4
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +5 -5
- 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 +5 -5
- package/dist/machines/radio-group/index.d.cts +4 -4
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +6 -6
- 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 +5 -5
- package/dist/machines/scroll-area/index.d.cts +4 -4
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +6 -6
- package/dist/machines/select/index.d.cts +9 -9
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +9 -9
- package/dist/machines/signature-pad/index.d.cts +4 -4
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +5 -5
- package/dist/machines/slider/index.d.cts +4 -4
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +5 -5
- package/dist/machines/splitter/index.d.cts +4 -4
- package/dist/machines/splitter/index.d.mts +4 -4
- package/dist/machines/splitter/index.mjs +5 -5
- package/dist/machines/steps/index.d.cts +4 -4
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +5 -5
- package/dist/machines/switch/index.d.cts +4 -4
- package/dist/machines/switch/index.d.mts +4 -4
- package/dist/machines/switch/index.mjs +6 -6
- package/dist/machines/tabs/index.d.cts +4 -4
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +5 -5
- package/dist/machines/tags-input/index.d.cts +6 -6
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +8 -8
- package/dist/machines/timer/index.d.cts +4 -4
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +5 -5
- package/dist/machines/toast/index.d.cts +5 -5
- package/dist/machines/toast/index.d.mts +5 -5
- package/dist/machines/toast/index.mjs +6 -6
- package/dist/machines/toggle/index.d.cts +3 -3
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +5 -5
- package/dist/machines/toggle-group/index.d.cts +3 -3
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +5 -5
- package/dist/machines/tooltip/index.d.cts +5 -5
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +7 -7
- package/dist/machines/tour/index.d.cts +7 -7
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +9 -9
- package/dist/machines/tree-view/index.d.cts +7 -7
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +6 -6
- package/dist/{popper-BPJeAtcA.mjs → popper-MxgCIf_4.mjs} +2 -2
- package/dist/popper.d.cts +2 -2
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +3 -3
- package/dist/{rect-utils-0ellN0a_.mjs → rect-utils-BENI97My.mjs} +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-Lrfv79X_.mjs → remove-scroll-BL1SJPHq.mjs} +1 -1
- package/dist/{scroll-snap-CrTmQRzA.mjs → scroll-snap-D-BtyzPh.mjs} +1 -1
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-CnPbYbiE.d.mts → selection-BerN7Dvw.d.mts} +2 -2
- package/dist/{selection-qmFxCWjn.d.cts → selection-Bm0boSA-.d.cts} +2 -2
- package/dist/store.mjs +1 -1
- package/dist/{tree-collection-DP_eznnI.d.cts → tree-collection-CcgKezAi.d.cts} +1 -1
- package/dist/{tree-collection-BwU5WhGQ.d.mts → tree-collection-Ders6toe.d.mts} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{utils-BZyrxWWR.mjs → utils-BxXp67XU.mjs} +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/{color-BkAP1Tkd.d.mts → color-DMmL1Ky0.d.cts} +0 -0
- /package/dist/{color-VKewNv2e.d.cts → color-blKFMqAz.d.mts} +0 -0
- /package/dist/{create-anatomy-B3XYc-qG.d.mts → create-anatomy-B1eclDhe.d.cts} +0 -0
- /package/dist/{create-anatomy-BGQ8pv8J.d.cts → create-anatomy-B9oniNA9.d.mts} +0 -0
- /package/dist/{create-anatomy-BbDZbHpC.mjs → create-anatomy-Df7y5SsP.mjs} +0 -0
- /package/dist/{create-props-BnF_vl-E.mjs → create-props-BML_gpX0.mjs} +0 -0
- /package/dist/{data-url-C3ITPVRX.d.cts → data-url-B5BT_GnT.d.mts} +0 -0
- /package/dist/{data-url-DLwZ9M77.d.mts → data-url-p1B_RG_H.d.cts} +0 -0
- /package/dist/{date-utils-wEa1hhpc.mjs → date-utils-DftsV7SR.mjs} +0 -0
- /package/dist/{defineProperty-DrXfyjd4.mjs → defineProperty-DxNiKPNe.mjs} +0 -0
- /package/dist/{functions-BOkTDEFM.d.cts → functions-D3G3aWHL.d.mts} +0 -0
- /package/dist/{functions-IZtWcC8Q.d.mts → functions-DtSGq3MR.d.cts} +0 -0
- /package/dist/{index-BkzYij2j.d.mts → index-CefB9yps.d.mts} +0 -0
- /package/dist/{index-Bqw3r34-.d.cts → index-CuONGeOw.d.mts} +0 -0
- /package/dist/{index-CJji6wHl.d.cts → index-DQnU976_.d.cts} +0 -0
- /package/dist/{index-C9-feK5c.d.cts → index-DvpM-Mfi.d.cts} +0 -0
- /package/dist/{index-C0MKXQmE.d.mts → index-PMpGStDQ.d.cts} +0 -0
- /package/dist/{index-CNi5FkPe.d.mts → index-WDB45Zqi.d.mts} +0 -0
- /package/dist/{live-region-CnPh21WH.mjs → live-region-BjruYEJ2.mjs} +0 -0
- /package/dist/{node-BctU8GXk.d.mts → node-Cs9VjvUL.d.cts} +0 -0
- /package/dist/{node-CSsuPZVZ.d.cts → node-R56TVizn.d.mts} +0 -0
- /package/dist/{raf-BnlYUlDi.d.mts → raf-BBPHUdcb.d.mts} +0 -0
- /package/dist/{raf-Cd2FGy0z.d.cts → raf-DiJ6_y_m.d.cts} +0 -0
- /package/dist/{store-DEojWy9H.mjs → store-D6DXvVrK.mjs} +0 -0
- /package/dist/{typeahead-BdNwVP09.d.cts → typeahead-DoNxux_s.d.mts} +0 -0
- /package/dist/{typeahead-XN6lZ7G9.d.mts → typeahead-JQJrD3Fg.d.cts} +0 -0
- /package/dist/{types-CPUMVt7c.d.mts → types-BLWhvNQm.d.cts} +0 -0
- /package/dist/{types-BivBkYg9.d.cts → types-BXIZOjVE.d.mts} +0 -0
- /package/dist/{types-DDTcG99l.d.mts → types-BrAcjFWl.d.cts} +0 -0
- /package/dist/{types-GxLIgJib.d.cts → types-D3yZIhlx.d.cts} +0 -0
- /package/dist/{types-DejIu60O.d.cts → types-D9XpvNCK.d.mts} +0 -0
- /package/dist/{types-Bl_6JtPQ.d.mts → types-DwwrI0dI.d.cts} +0 -0
- /package/dist/{types-CT_W6HWr.d.cts → types-YxEXuJrz.d.mts} +0 -0
- /package/dist/{types-DiIdKZ3K.d.cts → types-oXs2YVjs.d.cts} +0 -0
- /package/dist/{wait-for-CMjPsqWk.d.cts → wait-for-CdgWKT7N.d.mts} +0 -0
- /package/dist/{wait-for-D2nkdD4z.d.mts → wait-for-kzsbN3VT.d.cts} +0 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Df7y5SsP.mjs";
|
|
2
|
+
import { T as trackPointerMove, U as raf, at as setElementValue, dt as getEventStep, pt as getNativeEvent, ut as getEventPoint, vn as dataAttr, yt as isLeftClick } from "../../dom-query-DlipWdON.mjs";
|
|
3
|
+
import { B as snapValueToStep, u as createSplitProps } from "../../utils-BxXp67XU.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-C77LsUvk.mjs";
|
|
5
|
+
import { R as createRect, q as getPointAngle } from "../../rect-utils-BENI97My.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-BML_gpX0.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/machines/angle-slider/angle-slider.anatomy.ts
|
|
9
|
+
const anatomy = createAnatomy("angle-slider").parts("root", "label", "thumb", "valueText", "control", "track", "markerGroup", "marker");
|
|
10
|
+
const parts = anatomy.build();
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/machines/angle-slider/angle-slider.dom.ts
|
|
14
|
+
const getRootId = (ctx) => ctx.ids?.root ?? `angle-slider:${ctx.id}`;
|
|
15
|
+
const getThumbId = (ctx) => ctx.ids?.thumb ?? `angle-slider:${ctx.id}:thumb`;
|
|
16
|
+
const getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `angle-slider:${ctx.id}:input`;
|
|
17
|
+
const getControlId = (ctx) => ctx.ids?.control ?? `angle-slider:${ctx.id}:control`;
|
|
18
|
+
const getValueTextId = (ctx) => ctx.ids?.valueText ?? `angle-slider:${ctx.id}:value-text`;
|
|
19
|
+
const getLabelId = (ctx) => ctx.ids?.label ?? `angle-slider:${ctx.id}:label`;
|
|
20
|
+
const getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
|
|
21
|
+
const getControlEl = (ctx) => ctx.getById(getControlId(ctx));
|
|
22
|
+
const getThumbEl = (ctx) => ctx.getById(getThumbId(ctx));
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/machines/angle-slider/angle-slider.utils.ts
|
|
26
|
+
const MIN_VALUE = 0;
|
|
27
|
+
const MAX_VALUE = 359;
|
|
28
|
+
function getAngle(controlEl, point, angularOffset) {
|
|
29
|
+
const angle = getPointAngle(createRect(controlEl.getBoundingClientRect()), point);
|
|
30
|
+
if (angularOffset != null) return angle - angularOffset;
|
|
31
|
+
return angle;
|
|
32
|
+
}
|
|
33
|
+
function clampAngle(degree) {
|
|
34
|
+
return Math.min(Math.max(degree, MIN_VALUE), MAX_VALUE);
|
|
35
|
+
}
|
|
36
|
+
function constrainAngle(degree, step) {
|
|
37
|
+
const clampedDegree = clampAngle(degree);
|
|
38
|
+
const upperStep = Math.ceil(clampedDegree / step);
|
|
39
|
+
const nearestStep = Math.round(clampedDegree / step);
|
|
40
|
+
return upperStep >= clampedDegree / step ? upperStep * step === MAX_VALUE ? MIN_VALUE : upperStep * step : nearestStep * step;
|
|
41
|
+
}
|
|
42
|
+
function snapAngleToStep(value, step) {
|
|
43
|
+
return snapValueToStep(value, MIN_VALUE, MAX_VALUE, step);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/machines/angle-slider/angle-slider.connect.ts
|
|
48
|
+
function connect(service, normalize) {
|
|
49
|
+
const { state, send, context, prop, computed, scope } = service;
|
|
50
|
+
const dragging = state.matches("dragging");
|
|
51
|
+
const value = context.get("value");
|
|
52
|
+
const valueAsDegree = computed("valueAsDegree");
|
|
53
|
+
const disabled = prop("disabled");
|
|
54
|
+
const invalid = prop("invalid");
|
|
55
|
+
const readOnly = prop("readOnly");
|
|
56
|
+
const interactive = computed("interactive");
|
|
57
|
+
const ariaLabel = prop("aria-label");
|
|
58
|
+
const ariaLabelledBy = prop("aria-labelledby");
|
|
59
|
+
return {
|
|
60
|
+
value,
|
|
61
|
+
valueAsDegree,
|
|
62
|
+
dragging,
|
|
63
|
+
setValue(value$1) {
|
|
64
|
+
send({
|
|
65
|
+
type: "VALUE.SET",
|
|
66
|
+
value: value$1
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
getRootProps() {
|
|
70
|
+
return normalize.element({
|
|
71
|
+
...parts.root.attrs,
|
|
72
|
+
id: getRootId(scope),
|
|
73
|
+
"data-disabled": dataAttr(disabled),
|
|
74
|
+
"data-invalid": dataAttr(invalid),
|
|
75
|
+
"data-readonly": dataAttr(readOnly),
|
|
76
|
+
style: {
|
|
77
|
+
"--value": value,
|
|
78
|
+
"--angle": valueAsDegree
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
getLabelProps() {
|
|
83
|
+
return normalize.label({
|
|
84
|
+
...parts.label.attrs,
|
|
85
|
+
id: getLabelId(scope),
|
|
86
|
+
htmlFor: getHiddenInputId(scope),
|
|
87
|
+
"data-disabled": dataAttr(disabled),
|
|
88
|
+
"data-invalid": dataAttr(invalid),
|
|
89
|
+
"data-readonly": dataAttr(readOnly),
|
|
90
|
+
onClick(event) {
|
|
91
|
+
if (!interactive) return;
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
getThumbEl(scope)?.focus();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
getHiddenInputProps() {
|
|
98
|
+
return normalize.element({
|
|
99
|
+
type: "hidden",
|
|
100
|
+
value,
|
|
101
|
+
name: prop("name"),
|
|
102
|
+
id: getHiddenInputId(scope)
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
getControlProps() {
|
|
106
|
+
return normalize.element({
|
|
107
|
+
...parts.control.attrs,
|
|
108
|
+
role: "presentation",
|
|
109
|
+
id: getControlId(scope),
|
|
110
|
+
"data-disabled": dataAttr(disabled),
|
|
111
|
+
"data-invalid": dataAttr(invalid),
|
|
112
|
+
"data-readonly": dataAttr(readOnly),
|
|
113
|
+
onPointerDown(event) {
|
|
114
|
+
if (!interactive) return;
|
|
115
|
+
if (!isLeftClick(event)) return;
|
|
116
|
+
const point = getEventPoint(event);
|
|
117
|
+
const controlEl = event.currentTarget;
|
|
118
|
+
const thumbEl = getThumbEl(scope);
|
|
119
|
+
const composedPath = getNativeEvent(event).composedPath();
|
|
120
|
+
const isOverThumb = thumbEl && composedPath.includes(thumbEl);
|
|
121
|
+
let angularOffset = null;
|
|
122
|
+
if (isOverThumb) angularOffset = getAngle(controlEl, point) - value;
|
|
123
|
+
send({
|
|
124
|
+
type: "CONTROL.POINTER_DOWN",
|
|
125
|
+
point,
|
|
126
|
+
angularOffset
|
|
127
|
+
});
|
|
128
|
+
event.stopPropagation();
|
|
129
|
+
},
|
|
130
|
+
style: {
|
|
131
|
+
touchAction: "none",
|
|
132
|
+
userSelect: "none",
|
|
133
|
+
WebkitUserSelect: "none"
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
getThumbProps() {
|
|
138
|
+
return normalize.element({
|
|
139
|
+
...parts.thumb.attrs,
|
|
140
|
+
id: getThumbId(scope),
|
|
141
|
+
role: "slider",
|
|
142
|
+
"aria-label": ariaLabel,
|
|
143
|
+
"aria-labelledby": ariaLabelledBy ?? getLabelId(scope),
|
|
144
|
+
"aria-valuemax": 360,
|
|
145
|
+
"aria-valuemin": 0,
|
|
146
|
+
"aria-valuenow": value,
|
|
147
|
+
tabIndex: readOnly || interactive ? 0 : void 0,
|
|
148
|
+
"data-disabled": dataAttr(disabled),
|
|
149
|
+
"data-invalid": dataAttr(invalid),
|
|
150
|
+
"data-readonly": dataAttr(readOnly),
|
|
151
|
+
onFocus() {
|
|
152
|
+
send({ type: "THUMB.FOCUS" });
|
|
153
|
+
},
|
|
154
|
+
onBlur() {
|
|
155
|
+
send({ type: "THUMB.BLUR" });
|
|
156
|
+
},
|
|
157
|
+
onKeyDown(event) {
|
|
158
|
+
if (!interactive) return;
|
|
159
|
+
const step = getEventStep(event) * prop("step");
|
|
160
|
+
switch (event.key) {
|
|
161
|
+
case "ArrowLeft":
|
|
162
|
+
case "ArrowUp":
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
send({
|
|
165
|
+
type: "THUMB.ARROW_DEC",
|
|
166
|
+
step
|
|
167
|
+
});
|
|
168
|
+
break;
|
|
169
|
+
case "ArrowRight":
|
|
170
|
+
case "ArrowDown":
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
send({
|
|
173
|
+
type: "THUMB.ARROW_INC",
|
|
174
|
+
step
|
|
175
|
+
});
|
|
176
|
+
break;
|
|
177
|
+
case "Home":
|
|
178
|
+
event.preventDefault();
|
|
179
|
+
send({ type: "THUMB.HOME" });
|
|
180
|
+
break;
|
|
181
|
+
case "End":
|
|
182
|
+
event.preventDefault();
|
|
183
|
+
send({ type: "THUMB.END" });
|
|
184
|
+
break;
|
|
185
|
+
default: break;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
style: { rotate: `var(--angle)` }
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
getValueTextProps() {
|
|
192
|
+
return normalize.element({
|
|
193
|
+
...parts.valueText.attrs,
|
|
194
|
+
id: getValueTextId(scope)
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
getMarkerGroupProps() {
|
|
198
|
+
return normalize.element({ ...parts.markerGroup.attrs });
|
|
199
|
+
},
|
|
200
|
+
getMarkerProps(props$1) {
|
|
201
|
+
let markerState;
|
|
202
|
+
if (props$1.value < value) markerState = "under-value";
|
|
203
|
+
else if (props$1.value > value) markerState = "over-value";
|
|
204
|
+
else markerState = "at-value";
|
|
205
|
+
return normalize.element({
|
|
206
|
+
...parts.marker.attrs,
|
|
207
|
+
"data-value": props$1.value,
|
|
208
|
+
"data-state": markerState,
|
|
209
|
+
"data-disabled": dataAttr(disabled),
|
|
210
|
+
style: {
|
|
211
|
+
"--marker-value": props$1.value,
|
|
212
|
+
rotate: `calc(var(--marker-value) * 1deg)`
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/machines/angle-slider/angle-slider.machine.ts
|
|
221
|
+
const machine = createMachine({
|
|
222
|
+
props({ props: props$1 }) {
|
|
223
|
+
return {
|
|
224
|
+
step: 1,
|
|
225
|
+
defaultValue: 0,
|
|
226
|
+
...props$1
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
context({ prop, bindable }) {
|
|
230
|
+
return { value: bindable(() => ({
|
|
231
|
+
defaultValue: prop("defaultValue"),
|
|
232
|
+
value: prop("value"),
|
|
233
|
+
onChange(value) {
|
|
234
|
+
prop("onValueChange")?.({
|
|
235
|
+
value,
|
|
236
|
+
valueAsDegree: `${value}deg`
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
})) };
|
|
240
|
+
},
|
|
241
|
+
refs() {
|
|
242
|
+
return { thumbDragOffset: null };
|
|
243
|
+
},
|
|
244
|
+
computed: {
|
|
245
|
+
interactive: ({ prop }) => !(prop("disabled") || prop("readOnly")),
|
|
246
|
+
valueAsDegree: ({ context }) => `${context.get("value")}deg`
|
|
247
|
+
},
|
|
248
|
+
watch({ track, context, action }) {
|
|
249
|
+
track([() => context.get("value")], () => {
|
|
250
|
+
action(["syncInputElement"]);
|
|
251
|
+
});
|
|
252
|
+
},
|
|
253
|
+
initialState() {
|
|
254
|
+
return "idle";
|
|
255
|
+
},
|
|
256
|
+
on: { "VALUE.SET": { actions: ["setValue"] } },
|
|
257
|
+
states: {
|
|
258
|
+
idle: { on: {
|
|
259
|
+
"CONTROL.POINTER_DOWN": {
|
|
260
|
+
target: "dragging",
|
|
261
|
+
actions: [
|
|
262
|
+
"setThumbDragOffset",
|
|
263
|
+
"setPointerValue",
|
|
264
|
+
"focusThumb"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"THUMB.FOCUS": { target: "focused" }
|
|
268
|
+
} },
|
|
269
|
+
focused: { on: {
|
|
270
|
+
"CONTROL.POINTER_DOWN": {
|
|
271
|
+
target: "dragging",
|
|
272
|
+
actions: [
|
|
273
|
+
"setThumbDragOffset",
|
|
274
|
+
"setPointerValue",
|
|
275
|
+
"focusThumb"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
"THUMB.ARROW_DEC": { actions: ["decrementValue", "invokeOnChangeEnd"] },
|
|
279
|
+
"THUMB.ARROW_INC": { actions: ["incrementValue", "invokeOnChangeEnd"] },
|
|
280
|
+
"THUMB.HOME": { actions: ["setValueToMin", "invokeOnChangeEnd"] },
|
|
281
|
+
"THUMB.END": { actions: ["setValueToMax", "invokeOnChangeEnd"] },
|
|
282
|
+
"THUMB.BLUR": { target: "idle" }
|
|
283
|
+
} },
|
|
284
|
+
dragging: {
|
|
285
|
+
entry: ["focusThumb"],
|
|
286
|
+
effects: ["trackPointerMove"],
|
|
287
|
+
on: {
|
|
288
|
+
"DOC.POINTER_UP": {
|
|
289
|
+
target: "focused",
|
|
290
|
+
actions: ["invokeOnChangeEnd", "clearThumbDragOffset"]
|
|
291
|
+
},
|
|
292
|
+
"DOC.POINTER_MOVE": { actions: ["setPointerValue"] }
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
implementations: {
|
|
297
|
+
effects: { trackPointerMove({ scope, send }) {
|
|
298
|
+
return trackPointerMove(scope.getDoc(), {
|
|
299
|
+
onPointerMove(info) {
|
|
300
|
+
send({
|
|
301
|
+
type: "DOC.POINTER_MOVE",
|
|
302
|
+
point: info.point
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
onPointerUp() {
|
|
306
|
+
send({ type: "DOC.POINTER_UP" });
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
} },
|
|
310
|
+
actions: {
|
|
311
|
+
syncInputElement({ scope, context }) {
|
|
312
|
+
setElementValue(getHiddenInputEl(scope), context.get("value").toString());
|
|
313
|
+
},
|
|
314
|
+
invokeOnChangeEnd({ context, prop, computed }) {
|
|
315
|
+
prop("onValueChangeEnd")?.({
|
|
316
|
+
value: context.get("value"),
|
|
317
|
+
valueAsDegree: computed("valueAsDegree")
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
setPointerValue({ scope, event, context, prop, refs }) {
|
|
321
|
+
const controlEl = getControlEl(scope);
|
|
322
|
+
if (!controlEl) return;
|
|
323
|
+
const angularOffset = refs.get("thumbDragOffset");
|
|
324
|
+
const deg = getAngle(controlEl, event.point, angularOffset);
|
|
325
|
+
context.set("value", constrainAngle(deg, prop("step")));
|
|
326
|
+
},
|
|
327
|
+
setValueToMin({ context }) {
|
|
328
|
+
context.set("value", MIN_VALUE);
|
|
329
|
+
},
|
|
330
|
+
setValueToMax({ context }) {
|
|
331
|
+
context.set("value", MAX_VALUE);
|
|
332
|
+
},
|
|
333
|
+
setValue({ context, event }) {
|
|
334
|
+
context.set("value", clampAngle(event.value));
|
|
335
|
+
},
|
|
336
|
+
decrementValue({ context, event, prop }) {
|
|
337
|
+
const value = snapAngleToStep(context.get("value") - event.step, event.step ?? prop("step"));
|
|
338
|
+
context.set("value", value);
|
|
339
|
+
},
|
|
340
|
+
incrementValue({ context, event, prop }) {
|
|
341
|
+
const value = snapAngleToStep(context.get("value") + event.step, event.step ?? prop("step"));
|
|
342
|
+
context.set("value", value);
|
|
343
|
+
},
|
|
344
|
+
focusThumb({ scope }) {
|
|
345
|
+
raf(() => {
|
|
346
|
+
getThumbEl(scope)?.focus({ preventScroll: true });
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
setThumbDragOffset({ refs, event }) {
|
|
350
|
+
refs.set("thumbDragOffset", event.angularOffset ?? null);
|
|
351
|
+
},
|
|
352
|
+
clearThumbDragOffset({ refs }) {
|
|
353
|
+
refs.set("thumbDragOffset", null);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region src/machines/angle-slider/angle-slider.props.ts
|
|
361
|
+
const props = createProps()([
|
|
362
|
+
"aria-label",
|
|
363
|
+
"aria-labelledby",
|
|
364
|
+
"dir",
|
|
365
|
+
"disabled",
|
|
366
|
+
"getRootNode",
|
|
367
|
+
"id",
|
|
368
|
+
"ids",
|
|
369
|
+
"invalid",
|
|
370
|
+
"name",
|
|
371
|
+
"onValueChange",
|
|
372
|
+
"onValueChangeEnd",
|
|
373
|
+
"readOnly",
|
|
374
|
+
"step",
|
|
375
|
+
"value",
|
|
376
|
+
"defaultValue"
|
|
377
|
+
]);
|
|
378
|
+
const splitProps = createSplitProps(props);
|
|
379
|
+
|
|
380
|
+
//#endregion
|
|
381
|
+
export { anatomy, connect, machine, props, splitProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
1
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/machines/async-list/async-list.types.d.ts
|
|
4
4
|
type SortDirection = "ascending" | "descending";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
1
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/machines/async-list/async-list.types.d.ts
|
|
4
4
|
type SortDirection = "ascending" | "descending";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../dom-query-
|
|
2
|
-
import { n as ensureProps, t as ensure } from "../../utils-
|
|
3
|
-
import { a as createMachine } from "../../core-
|
|
1
|
+
import "../../dom-query-DlipWdON.mjs";
|
|
2
|
+
import { n as ensureProps, t as ensure } from "../../utils-BxXp67XU.mjs";
|
|
3
|
+
import { a as createMachine } from "../../core-C77LsUvk.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/async-list/async-list.connect.ts
|
|
6
6
|
function connect(service) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B1eclDhe.cjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
3
|
+
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-PMpGStDQ.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/avatar/avatar.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "image" | "fallback">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B9oniNA9.mjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
3
|
+
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CuONGeOw.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/avatar/avatar.anatomy.d.ts
|
|
6
6
|
declare const anatomy: AnatomyInstance<"root" | "image" | "fallback">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { R as observeAttributes, z as observeChildren } from "../../dom-query-
|
|
3
|
-
import { u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Df7y5SsP.mjs";
|
|
2
|
+
import { R as observeAttributes, z as observeChildren } from "../../dom-query-DlipWdON.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-BxXp67XU.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-C77LsUvk.mjs";
|
|
5
|
+
import { t as createProps } from "../../create-props-BML_gpX0.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/avatar/avatar.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("avatar").parts("root", "image", "fallback");
|
|
@@ -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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B1eclDhe.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-PMpGStDQ.cjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DvpM-Mfi.cjs";
|
|
5
|
+
import { t as DismissableElementHandlers } from "../../dismissable-layer-BHdxdWFo.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -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, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-
|
|
4
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-
|
|
5
|
-
import { t as DismissableElementHandlers } from "../../dismissable-layer-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B9oniNA9.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-CuONGeOw.mjs";
|
|
4
|
+
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CefB9yps.mjs";
|
|
5
|
+
import { t as DismissableElementHandlers } from "../../dismissable-layer-DwFMEm4o.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { U as raf, ft as getEventTarget, p as resizeObserverBorderBox, st as addDomEvent, ut as getEventPoint, yt as isLeftClick } from "../../dom-query-
|
|
3
|
-
import { t as _defineProperty } from "../../defineProperty-
|
|
4
|
-
import { t as ariaHidden } from "../../aria-hidden-
|
|
5
|
-
import { H as toPx, u as createSplitProps } from "../../utils-
|
|
6
|
-
import { a as createMachine } from "../../core-
|
|
7
|
-
import "../../interact-outside-
|
|
8
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
9
|
-
import { t as trapFocus } from "../../focus-trap-
|
|
10
|
-
import { t as createProps } from "../../create-props-
|
|
11
|
-
import { t as preventBodyScroll } from "../../remove-scroll-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Df7y5SsP.mjs";
|
|
2
|
+
import { U as raf, ft as getEventTarget, p as resizeObserverBorderBox, st as addDomEvent, ut as getEventPoint, yt as isLeftClick } from "../../dom-query-DlipWdON.mjs";
|
|
3
|
+
import { t as _defineProperty } from "../../defineProperty-DxNiKPNe.mjs";
|
|
4
|
+
import { t as ariaHidden } from "../../aria-hidden-Dvvxh8vn.mjs";
|
|
5
|
+
import { H as toPx, u as createSplitProps } from "../../utils-BxXp67XU.mjs";
|
|
6
|
+
import { a as createMachine } from "../../core-C77LsUvk.mjs";
|
|
7
|
+
import "../../interact-outside-JTrDIgHe.mjs";
|
|
8
|
+
import { n as trackDismissableElement } from "../../dismissable-WpM6GqPg.mjs";
|
|
9
|
+
import { t as trapFocus } from "../../focus-trap-BY0WXiLZ.mjs";
|
|
10
|
+
import { t as createProps } from "../../create-props-BML_gpX0.mjs";
|
|
11
|
+
import { t as preventBodyScroll } from "../../remove-scroll-BL1SJPHq.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.ts
|
|
14
14
|
const anatomy = createAnatomy("bottom-sheet").parts("content", "title", "trigger", "backdrop", "grabber", "grabberIndicator", "closeTrigger");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B1eclDhe.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
3
|
+
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-PMpGStDQ.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "control" | "nextTrigger" | "prevTrigger" | "itemGroup" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B9oniNA9.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
3
|
+
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CuONGeOw.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "control" | "nextTrigger" | "prevTrigger" | "itemGroup" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { $ as getTabbables, S as queryAll, T as trackPointerMove, U as raf, Xt as contains, _n as ariaAttr, et as isFocusable, ft as getEventTarget, lt as getEventKey, p as resizeObserverBorderBox, st as addDomEvent, vn as dataAttr, yt as isLeftClick } from "../../dom-query-
|
|
3
|
-
import { Mt as uniq, Ot as prevIndex, Tt as nextIndex, W as callAll, Z as throttle, ft as add, g as clampValue, kt as remove, n as ensureProps, st as isObject, u as createSplitProps } from "../../utils-
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-
|
|
6
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Df7y5SsP.mjs";
|
|
2
|
+
import { $ as getTabbables, S as queryAll, T as trackPointerMove, U as raf, Xt as contains, _n as ariaAttr, et as isFocusable, ft as getEventTarget, lt as getEventKey, p as resizeObserverBorderBox, st as addDomEvent, vn as dataAttr, yt as isLeftClick } from "../../dom-query-DlipWdON.mjs";
|
|
3
|
+
import { Mt as uniq, Ot as prevIndex, Tt as nextIndex, W as callAll, Z as throttle, ft as add, g as clampValue, kt as remove, n as ensureProps, st as isObject, u as createSplitProps } from "../../utils-BxXp67XU.mjs";
|
|
4
|
+
import { a as createMachine } from "../../core-C77LsUvk.mjs";
|
|
5
|
+
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-D-BtyzPh.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-BML_gpX0.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B1eclDhe.cjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-PMpGStDQ.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/checkbox/checkbox.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/checkbox/checkbox.types.d.ts
|
|
9
9
|
type CheckedState = boolean | "indeterminate";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B9oniNA9.mjs";
|
|
2
|
+
import { p as Machine, u as EventObject, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CuONGeOw.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/checkbox/checkbox.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/checkbox/checkbox.types.d.ts
|
|
9
9
|
type CheckedState = boolean | "indeterminate";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as createAnatomy } from "../../create-anatomy-
|
|
2
|
-
import { 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-
|
|
6
|
-
import { t as createProps } from "../../create-props-
|
|
1
|
+
import { t as createAnatomy } from "../../create-anatomy-Df7y5SsP.mjs";
|
|
2
|
+
import { ft as getEventTarget, i as visuallyHiddenStyle, it as setElementChecked, nt as dispatchInputCheckedEvent, ot as trackFormControl, vn as dataAttr, w as trackPress } from "../../dom-query-DlipWdON.mjs";
|
|
3
|
+
import { u as createSplitProps } from "../../utils-BxXp67XU.mjs";
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-C77LsUvk.mjs";
|
|
5
|
+
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-C8Gu5QYM.mjs";
|
|
6
|
+
import { t as createProps } from "../../create-props-BML_gpX0.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/checkbox/checkbox.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("checkbox").parts("root", "label", "control", "indicator");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B1eclDhe.cjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-BrAcjFWl.cjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-PMpGStDQ.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/clipboard/clipboard.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"trigger" | "input" | "root" | "indicator" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/clipboard/clipboard.types.d.ts
|
|
9
9
|
interface CopyStatusDetails {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-
|
|
2
|
-
import { p as Machine, y as Service } from "../../types-
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-
|
|
1
|
+
import { n as AnatomyInstance } from "../../create-anatomy-B9oniNA9.mjs";
|
|
2
|
+
import { p as Machine, y as Service } from "../../types-D9XpvNCK.mjs";
|
|
3
|
+
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CuONGeOw.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/clipboard/clipboard.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"trigger" | "input" | "root" | "indicator" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/clipboard/clipboard.types.d.ts
|
|
9
9
|
interface CopyStatusDetails {
|