@wirekyt/vue 0.0.1 → 0.0.2
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +278 -6
package/dist/slider.js
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { c as normalizeProps$1, d as useForwardExpose, m as createContext, s as useMachine } from "./utils-D95V66v9.js";
|
|
3
|
+
import { a as DEFAULT_LOCALE, d as useEnvironmentContext, o as useLocaleContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
4
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
5
|
+
import { n as wire } from "./factory-8Ao0DEy3.js";
|
|
6
|
+
import { computed, createBlock, createTextVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, toValue, unref, useId, useSlots, withCtx } from "vue";
|
|
7
|
+
import * as slider from "@wirekyt/dom/machines/slider";
|
|
8
|
+
import { anatomy as sliderAnatomy } from "@wirekyt/dom/machines/slider";
|
|
9
|
+
//#region src/components/slider/use-context.ts
|
|
10
|
+
const [SliderProvider, useSliderContext] = createContext("SliderContext");
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/slider/context.vue
|
|
13
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "context",
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const slider = useSliderContext();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slider))));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/slider/control.vue
|
|
24
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
25
|
+
__name: "control",
|
|
26
|
+
props: { asChild: { type: Boolean } },
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const slider = useSliderContext();
|
|
29
|
+
useForwardExpose();
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getControlProps(), { "as-child": __props.asChild }), {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 16, ["as-child"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/slider/use-thumb-props-context.ts
|
|
40
|
+
const [SliderThumbPropsProvider, useSliderThumbPropsContext] = createContext("SliderThumbPropsContext");
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/slider/dragging-indicator.vue
|
|
43
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
44
|
+
__name: "dragging-indicator",
|
|
45
|
+
props: { asChild: { type: Boolean } },
|
|
46
|
+
setup(__props) {
|
|
47
|
+
const slider = useSliderContext();
|
|
48
|
+
const thumbProps = useSliderThumbPropsContext();
|
|
49
|
+
const slots = useSlots();
|
|
50
|
+
useForwardExpose();
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createBlock(unref(wire).span, mergeProps(unref(slider).getDraggingIndicatorProps(unref(thumbProps)), { "as-child": __props.asChild }), {
|
|
53
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || unref(slider).getThumbValue(unref(thumbProps).index)), 1)])]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 16, ["as-child"]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/slider/hidden-input.vue
|
|
61
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
62
|
+
__name: "hidden-input",
|
|
63
|
+
props: { asChild: { type: Boolean } },
|
|
64
|
+
setup(__props) {
|
|
65
|
+
const slider = useSliderContext();
|
|
66
|
+
const thumbProps = useSliderThumbPropsContext();
|
|
67
|
+
useForwardExpose();
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return openBlock(), createBlock(unref(wire).input, mergeProps(unref(slider).getHiddenInputProps(unref(thumbProps)), { "as-child": __props.asChild }), {
|
|
70
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16, ["as-child"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/slider/label.vue
|
|
78
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
79
|
+
__name: "label",
|
|
80
|
+
props: { asChild: { type: Boolean } },
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const slider = useSliderContext();
|
|
83
|
+
useForwardExpose();
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createBlock(unref(wire).label, mergeProps(unref(slider).getLabelProps(), { "as-child": __props.asChild }), {
|
|
86
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 16, ["as-child"]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/slider/marker-group.vue
|
|
94
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
95
|
+
__name: "marker-group",
|
|
96
|
+
props: { asChild: { type: Boolean } },
|
|
97
|
+
setup(__props) {
|
|
98
|
+
const slider = useSliderContext();
|
|
99
|
+
useForwardExpose();
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getMarkerGroupProps(), { "as-child": __props.asChild }), {
|
|
102
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["as-child"]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/slider/marker.vue
|
|
110
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
111
|
+
__name: "marker",
|
|
112
|
+
props: {
|
|
113
|
+
value: {},
|
|
114
|
+
asChild: { type: Boolean }
|
|
115
|
+
},
|
|
116
|
+
setup(__props) {
|
|
117
|
+
const props = __props;
|
|
118
|
+
const slider = useSliderContext();
|
|
119
|
+
useForwardExpose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createBlock(unref(wire).span, mergeProps(unref(slider).getMarkerProps(props), { "as-child": __props.asChild }), {
|
|
122
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 16, ["as-child"]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/slider/range.vue
|
|
130
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
131
|
+
__name: "range",
|
|
132
|
+
props: { asChild: { type: Boolean } },
|
|
133
|
+
setup(__props) {
|
|
134
|
+
const slider = useSliderContext();
|
|
135
|
+
useForwardExpose();
|
|
136
|
+
return (_ctx, _cache) => {
|
|
137
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getRangeProps(), { "as-child": __props.asChild }), {
|
|
138
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
139
|
+
_: 3
|
|
140
|
+
}, 16, ["as-child"]);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/slider/root-provider.vue
|
|
146
|
+
const _sfc_main$9 = /*@__PURE__*/ defineComponent({
|
|
147
|
+
__name: "root-provider",
|
|
148
|
+
props: {
|
|
149
|
+
value: {},
|
|
150
|
+
asChild: { type: Boolean }
|
|
151
|
+
},
|
|
152
|
+
setup(__props) {
|
|
153
|
+
const props = __props;
|
|
154
|
+
const slider = computed(() => props.value);
|
|
155
|
+
SliderProvider(slider);
|
|
156
|
+
useForwardExpose();
|
|
157
|
+
return (_ctx, _cache) => {
|
|
158
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(slider.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
159
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
160
|
+
_: 3
|
|
161
|
+
}, 16, ["as-child"]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/slider/use-slider.ts
|
|
167
|
+
const useSlider = (props = {}, emit) => {
|
|
168
|
+
const id = useId();
|
|
169
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
170
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
171
|
+
const context = computed(() => {
|
|
172
|
+
const localProps = toValue(props);
|
|
173
|
+
return {
|
|
174
|
+
id,
|
|
175
|
+
dir: locale.value.dir,
|
|
176
|
+
value: localProps.modelValue,
|
|
177
|
+
getRootNode: env?.value.getRootNode,
|
|
178
|
+
...cleanProps(localProps),
|
|
179
|
+
onFocusChange: (details) => {
|
|
180
|
+
emit?.("focusChange", details);
|
|
181
|
+
localProps.onFocusChange?.(details);
|
|
182
|
+
},
|
|
183
|
+
onValueChangeEnd: (details) => {
|
|
184
|
+
emit?.("valueChangeEnd", details);
|
|
185
|
+
localProps.onValueChangeEnd?.(details);
|
|
186
|
+
},
|
|
187
|
+
onValueChange: (details) => {
|
|
188
|
+
emit?.("valueChange", details);
|
|
189
|
+
emit?.("update:modelValue", details.value);
|
|
190
|
+
localProps.onValueChange?.(details);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
});
|
|
194
|
+
const service = useMachine(slider.machine, context);
|
|
195
|
+
return computed(() => slider.connect(service, normalizeProps$1));
|
|
196
|
+
};
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/slider/root.vue
|
|
199
|
+
const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
200
|
+
__name: "root",
|
|
201
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
202
|
+
"aria-label": {},
|
|
203
|
+
"aria-labelledby": {},
|
|
204
|
+
defaultValue: {},
|
|
205
|
+
dir: {},
|
|
206
|
+
disabled: { type: Boolean },
|
|
207
|
+
form: {},
|
|
208
|
+
getAriaValueText: { type: Function },
|
|
209
|
+
getRootNode: { type: Function },
|
|
210
|
+
id: {},
|
|
211
|
+
ids: {},
|
|
212
|
+
invalid: { type: Boolean },
|
|
213
|
+
largeStep: {},
|
|
214
|
+
max: {},
|
|
215
|
+
min: {},
|
|
216
|
+
minStepsBetweenThumbs: {},
|
|
217
|
+
modelValue: {},
|
|
218
|
+
name: {},
|
|
219
|
+
orientation: {},
|
|
220
|
+
origin: {},
|
|
221
|
+
readOnly: { type: Boolean },
|
|
222
|
+
step: {},
|
|
223
|
+
thumbAlignment: {},
|
|
224
|
+
thumbCollisionBehavior: {},
|
|
225
|
+
thumbSize: {},
|
|
226
|
+
asChild: { type: Boolean }
|
|
227
|
+
}, {
|
|
228
|
+
disabled: void 0,
|
|
229
|
+
invalid: void 0,
|
|
230
|
+
readOnly: void 0
|
|
231
|
+
}),
|
|
232
|
+
emits: [
|
|
233
|
+
"focusChange",
|
|
234
|
+
"valueChange",
|
|
235
|
+
"valueChangeEnd",
|
|
236
|
+
"update:modelValue"
|
|
237
|
+
],
|
|
238
|
+
setup(__props, { emit: __emit }) {
|
|
239
|
+
const slider = useSlider(__props, __emit);
|
|
240
|
+
SliderProvider(slider);
|
|
241
|
+
useForwardExpose();
|
|
242
|
+
return (_ctx, _cache) => {
|
|
243
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getRootProps(), { "as-child": __props.asChild }), {
|
|
244
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
245
|
+
_: 3
|
|
246
|
+
}, 16, ["as-child"]);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/components/slider/thumb.vue
|
|
252
|
+
const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
253
|
+
__name: "thumb",
|
|
254
|
+
props: {
|
|
255
|
+
index: {},
|
|
256
|
+
name: {},
|
|
257
|
+
asChild: { type: Boolean }
|
|
258
|
+
},
|
|
259
|
+
setup(__props) {
|
|
260
|
+
const props = __props;
|
|
261
|
+
const slider = useSliderContext();
|
|
262
|
+
SliderThumbPropsProvider(props);
|
|
263
|
+
useForwardExpose();
|
|
264
|
+
return (_ctx, _cache) => {
|
|
265
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getThumbProps(props), { "as-child": __props.asChild }), {
|
|
266
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 16, ["as-child"]);
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/components/slider/track.vue
|
|
274
|
+
const _sfc_main$11 = /*@__PURE__*/ defineComponent({
|
|
275
|
+
__name: "track",
|
|
276
|
+
props: { asChild: { type: Boolean } },
|
|
277
|
+
setup(__props) {
|
|
278
|
+
const slider = useSliderContext();
|
|
279
|
+
useForwardExpose();
|
|
280
|
+
return (_ctx, _cache) => {
|
|
281
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(slider).getTrackProps(), { "as-child": __props.asChild }), {
|
|
282
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
283
|
+
_: 3
|
|
284
|
+
}, 16, ["as-child"]);
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/components/slider/value-text.vue
|
|
290
|
+
const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
291
|
+
__name: "value-text",
|
|
292
|
+
props: { asChild: { type: Boolean } },
|
|
293
|
+
setup(__props) {
|
|
294
|
+
const slider = useSliderContext();
|
|
295
|
+
const slots = useSlots();
|
|
296
|
+
useForwardExpose();
|
|
297
|
+
return (_ctx, _cache) => {
|
|
298
|
+
return openBlock(), createBlock(unref(wire).span, mergeProps(unref(slider).getValueTextProps(), { "as-child": __props.asChild }), {
|
|
299
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || unref(slider).value.join(", ")), 1)])]),
|
|
300
|
+
_: 3
|
|
301
|
+
}, 16, ["as-child"]);
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region src/components/slider/slider.ts
|
|
307
|
+
var slider_exports = /* @__PURE__ */ __exportAll({
|
|
308
|
+
Context: () => _sfc_main,
|
|
309
|
+
Control: () => _sfc_main$1,
|
|
310
|
+
DraggingIndicator: () => _sfc_main$2,
|
|
311
|
+
HiddenInput: () => _sfc_main$3,
|
|
312
|
+
Label: () => _sfc_main$4,
|
|
313
|
+
Marker: () => _sfc_main$5,
|
|
314
|
+
MarkerGroup: () => _sfc_main$6,
|
|
315
|
+
Range: () => _sfc_main$7,
|
|
316
|
+
Root: () => _sfc_main$8,
|
|
317
|
+
RootProvider: () => _sfc_main$9,
|
|
318
|
+
Thumb: () => _sfc_main$10,
|
|
319
|
+
Track: () => _sfc_main$11,
|
|
320
|
+
ValueText: () => _sfc_main$12
|
|
321
|
+
});
|
|
322
|
+
//#endregion
|
|
323
|
+
export { slider_exports as Slider, _sfc_main as SliderContext, _sfc_main$1 as SliderControl, _sfc_main$2 as SliderDraggingIndicator, _sfc_main$3 as SliderHiddenInput, _sfc_main$4 as SliderLabel, _sfc_main$5 as SliderMarker, _sfc_main$6 as SliderMarkerGroup, _sfc_main$7 as SliderRange, _sfc_main$8 as SliderRoot, _sfc_main$9 as SliderRootProvider, _sfc_main$10 as SliderThumb, _sfc_main$11 as SliderTrack, _sfc_main$12 as SliderValueText, sliderAnatomy, useSlider, useSliderContext };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
5
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
6
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
let _wirekyt_dom_machines_splitter = require("@wirekyt/dom/machines/splitter");
|
|
9
|
+
_wirekyt_dom_machines_splitter = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_splitter, 1);
|
|
10
|
+
//#region src/components/splitter/use-context.ts
|
|
11
|
+
const [SplitterProvider, useSplitterContext] = require_utils.createContext("SplitterContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/splitter/context.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const splitter = useSplitterContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(splitter))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/splitter/panel.vue
|
|
25
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
26
|
+
__name: "panel",
|
|
27
|
+
props: {
|
|
28
|
+
id: {},
|
|
29
|
+
asChild: { type: Boolean }
|
|
30
|
+
},
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const splitter = useSplitterContext();
|
|
34
|
+
require_utils.useForwardExpose();
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(splitter).getPanelProps(props), { "as-child": __props.asChild }), {
|
|
37
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["as-child"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/splitter/use-resize-trigger-props-context.ts
|
|
45
|
+
const [SplitterResizeTriggerPropsProvider, useSplitterResizeTriggerPropsContext] = require_utils.createContext("SplitterResizeTriggerPropsContext");
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/splitter/resize-trigger.vue
|
|
48
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
49
|
+
__name: "resize-trigger",
|
|
50
|
+
props: {
|
|
51
|
+
id: {},
|
|
52
|
+
disabled: { type: Boolean },
|
|
53
|
+
asChild: { type: Boolean }
|
|
54
|
+
},
|
|
55
|
+
setup(__props) {
|
|
56
|
+
const props = __props;
|
|
57
|
+
const splitter = useSplitterContext();
|
|
58
|
+
SplitterResizeTriggerPropsProvider((0, vue.computed)(() => props));
|
|
59
|
+
require_utils.useForwardExpose();
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(splitter).getResizeTriggerProps(props), { "as-child": __props.asChild }), {
|
|
62
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 16, ["as-child"]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/splitter/resize-trigger-indicator.vue
|
|
70
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
71
|
+
__name: "resize-trigger-indicator",
|
|
72
|
+
props: { asChild: { type: Boolean } },
|
|
73
|
+
setup(__props) {
|
|
74
|
+
const splitter = useSplitterContext();
|
|
75
|
+
const triggerProps = useSplitterResizeTriggerPropsContext();
|
|
76
|
+
require_utils.useForwardExpose();
|
|
77
|
+
return (_ctx, _cache) => {
|
|
78
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(splitter).getResizeTriggerIndicator((0, vue.unref)(triggerProps)), { "as-child": __props.asChild }), {
|
|
79
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 16, ["as-child"]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/splitter/root-provider.vue
|
|
87
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
88
|
+
__name: "root-provider",
|
|
89
|
+
props: {
|
|
90
|
+
value: {},
|
|
91
|
+
asChild: { type: Boolean }
|
|
92
|
+
},
|
|
93
|
+
setup(__props) {
|
|
94
|
+
const props = __props;
|
|
95
|
+
const splitter = (0, vue.computed)(() => props.value);
|
|
96
|
+
SplitterProvider(splitter);
|
|
97
|
+
require_utils.useForwardExpose();
|
|
98
|
+
return (_ctx, _cache) => {
|
|
99
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(splitter.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
100
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 16, ["as-child"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/splitter/use-splitter.ts
|
|
108
|
+
const useSplitter = (props, emit) => {
|
|
109
|
+
const id = (0, vue.useId)();
|
|
110
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
111
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
112
|
+
const context = (0, vue.computed)(() => {
|
|
113
|
+
const localProps = (0, vue.toValue)(props);
|
|
114
|
+
return {
|
|
115
|
+
id,
|
|
116
|
+
dir: locale.value.dir,
|
|
117
|
+
getRootNode: env?.value.getRootNode,
|
|
118
|
+
...require_clean_props.cleanProps(localProps),
|
|
119
|
+
onResize: (details) => {
|
|
120
|
+
emit?.("resize", details);
|
|
121
|
+
emit?.("update:size", details.size);
|
|
122
|
+
localProps.onResize?.(details);
|
|
123
|
+
},
|
|
124
|
+
onResizeEnd: (details) => {
|
|
125
|
+
emit?.("resizeEnd", details);
|
|
126
|
+
localProps.onResizeEnd?.(details);
|
|
127
|
+
},
|
|
128
|
+
onCollapse: (details) => {
|
|
129
|
+
emit?.("collapse", details);
|
|
130
|
+
localProps.onCollapse?.(details);
|
|
131
|
+
},
|
|
132
|
+
onExpand: (details) => {
|
|
133
|
+
emit?.("expand", details);
|
|
134
|
+
localProps.onExpand?.(details);
|
|
135
|
+
},
|
|
136
|
+
onResizeStart() {
|
|
137
|
+
emit?.("resizeStart");
|
|
138
|
+
localProps.onResizeStart?.();
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_splitter.machine, context);
|
|
143
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_splitter.connect(service, require_utils.normalizeProps));
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/components/splitter/root.vue
|
|
147
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
148
|
+
__name: "root",
|
|
149
|
+
props: {
|
|
150
|
+
defaultSize: {},
|
|
151
|
+
id: {},
|
|
152
|
+
ids: {},
|
|
153
|
+
keyboardResizeBy: {},
|
|
154
|
+
nonce: {},
|
|
155
|
+
orientation: {},
|
|
156
|
+
panels: {},
|
|
157
|
+
registry: {},
|
|
158
|
+
size: {},
|
|
159
|
+
asChild: { type: Boolean }
|
|
160
|
+
},
|
|
161
|
+
emits: [
|
|
162
|
+
"collapse",
|
|
163
|
+
"expand",
|
|
164
|
+
"resize",
|
|
165
|
+
"resizeEnd",
|
|
166
|
+
"resizeStart",
|
|
167
|
+
"update:size"
|
|
168
|
+
],
|
|
169
|
+
setup(__props, { emit: __emit }) {
|
|
170
|
+
const splitter = useSplitter(__props, __emit);
|
|
171
|
+
SplitterProvider(splitter);
|
|
172
|
+
require_utils.useForwardExpose();
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(splitter).getRootProps(), { "as-child": __props.asChild }), {
|
|
175
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 16, ["as-child"]);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/splitter/create-registry.ts
|
|
183
|
+
const createSplitterRegistry = (props) => {
|
|
184
|
+
return _wirekyt_dom_machines_splitter.registry(props);
|
|
185
|
+
};
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/components/splitter/splitter.ts
|
|
188
|
+
var splitter_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
189
|
+
Context: () => _sfc_main,
|
|
190
|
+
Panel: () => _sfc_main$1,
|
|
191
|
+
ResizeTrigger: () => _sfc_main$2,
|
|
192
|
+
ResizeTriggerIndicator: () => _sfc_main$3,
|
|
193
|
+
Root: () => _sfc_main$4,
|
|
194
|
+
RootProvider: () => _sfc_main$5,
|
|
195
|
+
createRegistry: () => createSplitterRegistry,
|
|
196
|
+
getLayout: () => _wirekyt_dom_machines_splitter.layout
|
|
197
|
+
});
|
|
198
|
+
//#endregion
|
|
199
|
+
Object.defineProperty(exports, "Splitter", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function() {
|
|
202
|
+
return splitter_exports;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
exports.SplitterContext = _sfc_main;
|
|
206
|
+
exports.SplitterPanel = _sfc_main$1;
|
|
207
|
+
exports.SplitterResizeTrigger = _sfc_main$2;
|
|
208
|
+
exports.SplitterResizeTriggerIndicator = _sfc_main$3;
|
|
209
|
+
exports.SplitterRoot = _sfc_main$4;
|
|
210
|
+
exports.SplitterRootProvider = _sfc_main$5;
|
|
211
|
+
exports.createSplitterRegistry = createSplitterRegistry;
|
|
212
|
+
Object.defineProperty(exports, "getSplitterLayout", {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function() {
|
|
215
|
+
return _wirekyt_dom_machines_splitter.layout;
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "splitterAnatomy", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function() {
|
|
221
|
+
return _wirekyt_dom_machines_splitter.anatomy;
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
exports.useSplitter = useSplitter;
|
|
225
|
+
exports.useSplitterContext = useSplitterContext;
|