@sprawlify/vue 0.0.67 → 0.0.72
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/boolean-CpMsIRK4.js +7 -0
- package/dist/{collapsible-DQfAISmg.js → collapsible-jX9S7WYj.js} +5 -4
- package/dist/{collection-Ba0Aeh5P.js → collection-DGKjEgOz.js} +1 -1
- package/dist/components/accordion/index.d.ts +19 -19
- package/dist/components/accordion/index.js +8 -7
- package/dist/components/angle-slider/index.d.ts +18 -18
- package/dist/components/angle-slider/index.js +5 -4
- package/dist/components/avatar/index.d.ts +11 -11
- package/dist/components/avatar/index.js +5 -4
- package/dist/components/bottom-sheet/index.d.ts +22 -22
- package/dist/components/bottom-sheet/index.js +8 -7
- package/dist/components/carousel/index.d.ts +25 -25
- package/dist/components/carousel/index.js +5 -4
- package/dist/components/checkbox/index.d.ts +27 -27
- package/dist/components/checkbox/index.js +8 -12
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -17
- package/dist/components/clipboard/index.js +5 -4
- package/dist/components/collapsible/index.d.ts +16 -16
- package/dist/components/collapsible/index.js +5 -4
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +56 -56
- package/dist/components/color-picker/index.js +8 -7
- package/dist/components/combobox/index.d.ts +38 -38
- package/dist/components/combobox/index.js +9 -8
- package/dist/components/date-picker/index.d.ts +47 -47
- package/dist/components/date-picker/index.js +7 -6
- package/dist/components/dialog/index.d.ts +35 -35
- package/dist/components/dialog/index.js +7 -6
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/download-trigger/index.js +4 -3
- package/dist/components/editable/index.d.ts +29 -29
- package/dist/components/editable/index.js +6 -5
- package/dist/components/field/index.d.ts +25 -25
- package/dist/components/field/index.js +5 -4
- package/dist/components/fieldset/index.d.ts +13 -13
- package/dist/components/fieldset/index.js +5 -4
- package/dist/components/file-upload/index.d.ts +329 -0
- package/dist/components/file-upload/index.js +597 -0
- package/dist/components/floating-panel/index.d.ts +325 -0
- package/dist/components/floating-panel/index.js +568 -0
- package/dist/components/focus-trap/index.d.ts +48 -0
- package/dist/components/focus-trap/index.js +96 -0
- package/dist/components/format/index.d.ts +40 -0
- package/dist/components/format/index.js +148 -0
- package/dist/components/frame/index.d.ts +39 -0
- package/dist/components/frame/index.js +111 -0
- package/dist/components/highlight/index.d.ts +4 -4
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +200 -0
- package/dist/components/hover-card/index.js +335 -0
- package/dist/components/image-cropper/index.d.ts +211 -0
- package/dist/components/image-cropper/index.js +381 -0
- package/dist/components/json-tree-view/index.d.ts +91 -0
- package/dist/components/json-tree-view/index.js +490 -0
- package/dist/components/listbox/index.d.ts +325 -0
- package/dist/components/listbox/index.js +533 -0
- package/dist/components/marquee/index.d.ts +268 -0
- package/dist/components/marquee/index.js +340 -0
- package/dist/components/menu/index.d.ts +55 -56
- package/dist/components/menu/index.js +7 -6
- package/dist/components/navigation-menu/index.d.ts +272 -0
- package/dist/components/navigation-menu/index.js +559 -0
- package/dist/components/number-input/index.d.ts +253 -0
- package/dist/components/number-input/index.js +427 -0
- package/dist/components/pagination/index.d.ts +211 -0
- package/dist/components/pagination/index.js +346 -0
- package/dist/components/password-input/index.d.ts +213 -0
- package/dist/components/password-input/index.js +325 -0
- package/dist/components/pin-input/index.d.ts +198 -0
- package/dist/components/pin-input/index.js +346 -0
- package/dist/components/popover/index.d.ts +318 -0
- package/dist/components/popover/index.js +486 -0
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +4 -3
- package/dist/components/progress/index.d.ts +231 -0
- package/dist/components/progress/index.js +372 -0
- package/dist/components/qr-code/index.d.ts +159 -0
- package/dist/components/qr-code/index.js +263 -0
- package/dist/components/radio-group/index.d.ts +231 -0
- package/dist/components/radio-group/index.js +378 -0
- package/dist/components/rating-group/index.d.ts +201 -0
- package/dist/components/rating-group/index.js +330 -0
- package/dist/components/scroll-area/index.d.ts +171 -0
- package/dist/components/scroll-area/index.js +264 -0
- package/dist/components/segment-group/index.d.ts +231 -0
- package/dist/components/segment-group/index.js +422 -0
- package/dist/components/select/index.d.ts +39 -39
- package/dist/components/select/index.js +9 -8
- package/dist/components/signature-pad/index.d.ts +202 -0
- package/dist/components/signature-pad/index.js +345 -0
- package/dist/components/slider/index.d.ts +300 -0
- package/dist/components/slider/index.js +511 -0
- package/dist/components/splitter/index.d.ts +162 -0
- package/dist/components/splitter/index.js +280 -0
- package/dist/components/steps/index.d.ts +290 -0
- package/dist/components/steps/index.js +469 -0
- package/dist/components/switch/index.d.ts +179 -0
- package/dist/components/switch/index.js +290 -0
- package/dist/components/tabs/index.d.ts +181 -0
- package/dist/components/tabs/index.js +335 -0
- package/dist/components/tags-input/index.d.ts +339 -0
- package/dist/components/tags-input/index.js +569 -0
- package/dist/components/timer/index.d.ts +177 -0
- package/dist/components/timer/index.js +295 -0
- package/dist/components/tree-view/index.d.ts +6 -0
- package/dist/components/tree-view/index.js +11 -0
- package/dist/create-context-Ds1GbsVc.js +16 -0
- package/dist/{field-DnHnX3Tf.js → field-CtPR24u6.js} +4 -3
- package/dist/{fieldset-DzhN7Zrg.js → fieldset-D5SznrKY.js} +4 -3
- package/dist/{index-CDQghZtv.d.ts → index-B_UiXhk3.d.ts} +11 -11
- package/dist/index-DwWFWpls.d.ts +447 -0
- package/dist/{index-BBHms9-0.d.ts → index-xb1q4_02.d.ts} +7 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -2
- package/dist/{presence-CvUnYMZQ.js → presence-B4-UhJY9.js} +3 -2
- package/dist/{providers-B2CNPFg1.js → providers-DNBWT-O_.js} +1 -1
- package/dist/tree-view-Ctpu5RjE.js +737 -0
- package/dist/{use-forward-expose-4p5AGAI3.js → use-forward-expose-CCAmHTUB.js} +2 -15
- package/dist/{use-render-strategy-BkxoN6ll.js → use-render-strategy-DA33j31C.js} +1 -1
- package/package.json +126 -2
- /package/dist/{clean-props-BDv2zb5M.js → clean-props-D2R4tz5e.js} +0 -0
- /package/dist/{create-split-props-YZ3qgXe_.js → create-split-props-0RD5_O4P.js} +0 -0
- /package/dist/{factory-D_ge_w76.d.ts → factory-B5zr8_kk.d.ts} +0 -0
- /package/dist/{factory-BH3WrWd2.js → factory-Co08Aw8u.js} +0 -0
- /package/dist/{index-B66Om_3U.d.ts → index-CCRVRFFQ.d.ts} +0 -0
- /package/dist/{index-DqRk-Yea.d.ts → index-DhFoJHfp.d.ts} +0 -0
- /package/dist/{presence-types-Bv1E60Cw.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
- /package/dist/{types-Bj-dS2Hc.d.ts → types-DIEO6uP3.d.ts} +0 -0
- /package/dist/{use-render-strategy-CHj_pCfT.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
|
|
2
|
+
import { n as useMachine, r as normalizeProps$1 } from "../../core-DNndr38p.js";
|
|
3
|
+
import { a as useLocaleContext, c as useEnvironmentContext, i as DEFAULT_LOCALE, s as DEFAULT_ENVIRONMENT } from "../../providers-DNBWT-O_.js";
|
|
4
|
+
import { t as createContext } from "../../create-context-Ds1GbsVc.js";
|
|
5
|
+
import { t as useForwardExpose } from "../../use-forward-expose-CCAmHTUB.js";
|
|
6
|
+
import { t as sprawlify } from "../../factory-Co08Aw8u.js";
|
|
7
|
+
import { t as cleanProps } from "../../clean-props-D2R4tz5e.js";
|
|
8
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
9
|
+
import * as splitter from "@sprawlify/primitives/machines/splitter";
|
|
10
|
+
import { anatomy as splitterAnatomy, layout as getLayout, layout as getSplitterLayout } from "@sprawlify/primitives/machines/splitter";
|
|
11
|
+
|
|
12
|
+
//#region src/components/splitter/use-splitter-context.ts
|
|
13
|
+
const [SplitterProvider, useSplitterContext] = createContext("SplitterContext");
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/splitter/splitter-context.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
+
var splitter_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "splitter-context",
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const splitter = useSplitterContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(splitter))));
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/splitter/splitter-context.vue
|
|
29
|
+
var splitter_context_default = splitter_context_vue_vue_type_script_setup_true_lang_default;
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/splitter/splitter-panel.vue?vue&type=script&setup=true&lang.ts
|
|
33
|
+
var splitter_panel_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
34
|
+
__name: "splitter-panel",
|
|
35
|
+
props: {
|
|
36
|
+
id: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
40
|
+
asChild: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(__props) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
const splitter = useSplitterContext();
|
|
48
|
+
useForwardExpose();
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(splitter).getPanelProps(props), { "as-child": __props.asChild }), {
|
|
51
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16, ["as-child"]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/splitter/splitter-panel.vue
|
|
60
|
+
var splitter_panel_default = splitter_panel_vue_vue_type_script_setup_true_lang_default;
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/splitter/use-splitter-resize-trigger-props-context.ts
|
|
64
|
+
const [SplitterResizeTriggerPropsProvider, useSplitterResizeTriggerPropsContext] = createContext("SplitterResizeTriggerPropsContext");
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/splitter/splitter-resize-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
68
|
+
var splitter_resize_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
69
|
+
__name: "splitter-resize-trigger",
|
|
70
|
+
props: {
|
|
71
|
+
id: {
|
|
72
|
+
type: null,
|
|
73
|
+
required: true
|
|
74
|
+
},
|
|
75
|
+
disabled: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
required: false,
|
|
78
|
+
skipCheck: true
|
|
79
|
+
},
|
|
80
|
+
asChild: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
required: false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
setup(__props) {
|
|
86
|
+
const props = __props;
|
|
87
|
+
const splitter = useSplitterContext();
|
|
88
|
+
SplitterResizeTriggerPropsProvider(computed(() => props));
|
|
89
|
+
useForwardExpose();
|
|
90
|
+
return (_ctx, _cache) => {
|
|
91
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(splitter).getResizeTriggerProps(props), { "as-child": __props.asChild }), {
|
|
92
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["as-child"]);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/splitter/splitter-resize-trigger.vue
|
|
101
|
+
var splitter_resize_trigger_default = splitter_resize_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/splitter/splitter-resize-trigger-indicator.vue?vue&type=script&setup=true&lang.ts
|
|
105
|
+
var splitter_resize_trigger_indicator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
106
|
+
__name: "splitter-resize-trigger-indicator",
|
|
107
|
+
props: { asChild: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
required: false
|
|
110
|
+
} },
|
|
111
|
+
setup(__props) {
|
|
112
|
+
const splitter = useSplitterContext();
|
|
113
|
+
const triggerProps = useSplitterResizeTriggerPropsContext();
|
|
114
|
+
useForwardExpose();
|
|
115
|
+
return (_ctx, _cache) => {
|
|
116
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(splitter).getResizeTriggerIndicator(unref(triggerProps)), { "as-child": __props.asChild }), {
|
|
117
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
118
|
+
_: 3
|
|
119
|
+
}, 16, ["as-child"]);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/splitter/splitter-resize-trigger-indicator.vue
|
|
126
|
+
var splitter_resize_trigger_indicator_default = splitter_resize_trigger_indicator_vue_vue_type_script_setup_true_lang_default;
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/splitter/splitter-root-provider.vue?vue&type=script&setup=true&lang.ts
|
|
130
|
+
var splitter_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
131
|
+
__name: "splitter-root-provider",
|
|
132
|
+
props: {
|
|
133
|
+
value: {
|
|
134
|
+
type: null,
|
|
135
|
+
required: true
|
|
136
|
+
},
|
|
137
|
+
asChild: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
required: false
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
setup(__props) {
|
|
143
|
+
const props = __props;
|
|
144
|
+
const splitter = computed(() => props.value);
|
|
145
|
+
SplitterProvider(splitter);
|
|
146
|
+
useForwardExpose();
|
|
147
|
+
return (_ctx, _cache) => {
|
|
148
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(splitter.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
149
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
150
|
+
_: 3
|
|
151
|
+
}, 16, ["as-child"]);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/components/splitter/splitter-root-provider.vue
|
|
158
|
+
var splitter_root_provider_default = splitter_root_provider_vue_vue_type_script_setup_true_lang_default;
|
|
159
|
+
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/splitter/use-splitter.ts
|
|
162
|
+
const useSplitter = (props, emit) => {
|
|
163
|
+
const id = useId();
|
|
164
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
165
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
166
|
+
const context = computed(() => {
|
|
167
|
+
const localProps = toValue(props);
|
|
168
|
+
return {
|
|
169
|
+
id,
|
|
170
|
+
dir: locale.value.dir,
|
|
171
|
+
getRootNode: env?.value.getRootNode,
|
|
172
|
+
...cleanProps(localProps),
|
|
173
|
+
onResize: (details) => {
|
|
174
|
+
emit?.("resize", details);
|
|
175
|
+
emit?.("update:size", details.size);
|
|
176
|
+
localProps.onResize?.(details);
|
|
177
|
+
},
|
|
178
|
+
onResizeEnd: (details) => {
|
|
179
|
+
emit?.("resizeEnd", details);
|
|
180
|
+
localProps.onResizeEnd?.(details);
|
|
181
|
+
},
|
|
182
|
+
onCollapse: (details) => {
|
|
183
|
+
emit?.("collapse", details);
|
|
184
|
+
localProps.onCollapse?.(details);
|
|
185
|
+
},
|
|
186
|
+
onExpand: (details) => {
|
|
187
|
+
emit?.("expand", details);
|
|
188
|
+
localProps.onExpand?.(details);
|
|
189
|
+
},
|
|
190
|
+
onResizeStart() {
|
|
191
|
+
emit?.("resizeStart");
|
|
192
|
+
localProps.onResizeStart?.();
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
});
|
|
196
|
+
const service = useMachine(splitter.machine, context);
|
|
197
|
+
return computed(() => splitter.connect(service, normalizeProps$1));
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/splitter/splitter-root.vue?vue&type=script&setup=true&lang.ts
|
|
202
|
+
var splitter_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
203
|
+
__name: "splitter-root",
|
|
204
|
+
props: {
|
|
205
|
+
defaultSize: {
|
|
206
|
+
type: Array,
|
|
207
|
+
required: false
|
|
208
|
+
},
|
|
209
|
+
id: {
|
|
210
|
+
type: String,
|
|
211
|
+
required: false
|
|
212
|
+
},
|
|
213
|
+
ids: {
|
|
214
|
+
type: Object,
|
|
215
|
+
required: false
|
|
216
|
+
},
|
|
217
|
+
keyboardResizeBy: {
|
|
218
|
+
type: Number,
|
|
219
|
+
required: false
|
|
220
|
+
},
|
|
221
|
+
nonce: {
|
|
222
|
+
type: String,
|
|
223
|
+
required: false
|
|
224
|
+
},
|
|
225
|
+
orientation: {
|
|
226
|
+
type: String,
|
|
227
|
+
required: false
|
|
228
|
+
},
|
|
229
|
+
panels: {
|
|
230
|
+
type: Array,
|
|
231
|
+
required: true
|
|
232
|
+
},
|
|
233
|
+
size: {
|
|
234
|
+
type: Array,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
asChild: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
required: false
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
emits: [
|
|
243
|
+
"collapse",
|
|
244
|
+
"expand",
|
|
245
|
+
"resize",
|
|
246
|
+
"resizeEnd",
|
|
247
|
+
"resizeStart",
|
|
248
|
+
"update:size"
|
|
249
|
+
],
|
|
250
|
+
setup(__props, { emit: __emit }) {
|
|
251
|
+
const splitter = useSplitter(__props, __emit);
|
|
252
|
+
SplitterProvider(splitter);
|
|
253
|
+
useForwardExpose();
|
|
254
|
+
return (_ctx, _cache) => {
|
|
255
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(splitter).getRootProps(), { "as-child": __props.asChild }), {
|
|
256
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 16, ["as-child"]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region src/components/splitter/splitter-root.vue
|
|
265
|
+
var splitter_root_default = splitter_root_vue_vue_type_script_setup_true_lang_default;
|
|
266
|
+
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/components/splitter/splitter.ts
|
|
269
|
+
var splitter_exports = /* @__PURE__ */ __exportAll({
|
|
270
|
+
Context: () => splitter_context_default,
|
|
271
|
+
Panel: () => splitter_panel_default,
|
|
272
|
+
ResizeTrigger: () => splitter_resize_trigger_default,
|
|
273
|
+
ResizeTriggerIndicator: () => splitter_resize_trigger_indicator_default,
|
|
274
|
+
Root: () => splitter_root_default,
|
|
275
|
+
RootProvider: () => splitter_root_provider_default,
|
|
276
|
+
getLayout: () => getLayout
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
//#endregion
|
|
280
|
+
export { splitter_exports as Splitter, splitter_context_default as SplitterContext, splitter_panel_default as SplitterPanel, splitter_resize_trigger_default as SplitterResizeTrigger, splitter_resize_trigger_indicator_default as SplitterResizeTriggerIndicator, splitter_root_default as SplitterRoot, splitter_root_provider_default as SplitterRootProvider, getSplitterLayout, splitterAnatomy, useSplitter, useSplitterContext };
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-B5zr8_kk.js";
|
|
2
|
+
import { a as Optional, r as EmitFn$1 } from "../../types-DIEO6uP3.js";
|
|
3
|
+
import { r as PropTypes } from "../../index-CCRVRFFQ.js";
|
|
4
|
+
import * as vue282 from "vue";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
6
|
+
import * as steps from "@sprawlify/primitives/machines/steps";
|
|
7
|
+
import { ItemProps, ItemState, StepChangeDetails, StepChangeDetails as StepChangeDetails$1, anatomy as stepsAnatomy } from "@sprawlify/primitives/machines/steps";
|
|
8
|
+
|
|
9
|
+
//#region src/components/steps/steps-completed-content.vue.d.ts
|
|
10
|
+
interface StepsCompletedContentBaseProps extends PolymorphicProps {}
|
|
11
|
+
interface StepsCompletedContentProps extends StepsCompletedContentBaseProps,
|
|
12
|
+
/**
|
|
13
|
+
* @vue-ignore
|
|
14
|
+
*/
|
|
15
|
+
HTMLAttributes {}
|
|
16
|
+
declare const _default: typeof __VLS_export$13;
|
|
17
|
+
declare const __VLS_export$13: __VLS_WithSlots$13<vue282.DefineComponent<StepsCompletedContentProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsCompletedContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
type __VLS_WithSlots$13<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/steps/steps-content.vue.d.ts
|
|
27
|
+
interface StepsContentBaseProps extends PolymorphicProps, ItemProps {}
|
|
28
|
+
interface StepsContentProps extends StepsContentBaseProps,
|
|
29
|
+
/**
|
|
30
|
+
* @vue-ignore
|
|
31
|
+
*/
|
|
32
|
+
HTMLAttributes {}
|
|
33
|
+
declare const _default$1: typeof __VLS_export$12;
|
|
34
|
+
declare const __VLS_export$12: __VLS_WithSlots$12<vue282.DefineComponent<StepsContentProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots$12<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/steps/steps-types.d.ts
|
|
44
|
+
interface RootProps {
|
|
45
|
+
count?: number;
|
|
46
|
+
defaultStep?: number;
|
|
47
|
+
id?: string;
|
|
48
|
+
ids?: steps.ElementIds;
|
|
49
|
+
isStepSkippable?: (index: number) => boolean;
|
|
50
|
+
isStepValid?: (index: number) => boolean;
|
|
51
|
+
linear?: boolean;
|
|
52
|
+
orientation?: 'horizontal' | 'vertical';
|
|
53
|
+
step?: number;
|
|
54
|
+
}
|
|
55
|
+
type RootEmits = {
|
|
56
|
+
stepChange: [details: steps.StepChangeDetails];
|
|
57
|
+
stepComplete: [];
|
|
58
|
+
stepInvalid: [details: steps.StepInvalidDetails];
|
|
59
|
+
'update:step': [step: number];
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/steps/use-steps.d.ts
|
|
63
|
+
interface UseStepsProps extends Optional<Omit<steps.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
64
|
+
interface UseStepsReturn extends ComputedRef<steps.Api<PropTypes>> {}
|
|
65
|
+
declare function useSteps(props?: MaybeRef<UseStepsProps>, emit?: EmitFn$1<RootEmits>): UseStepsReturn;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/steps/use-steps-context.d.ts
|
|
68
|
+
interface UseStepsContext extends UseStepsReturn {}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/steps/steps-context.vue.d.ts
|
|
71
|
+
interface StepsContextProps extends SlotsType<{
|
|
72
|
+
default: UnwrapRef<UseStepsContext>;
|
|
73
|
+
}> {}
|
|
74
|
+
declare const _default$2: typeof __VLS_export$11;
|
|
75
|
+
declare const __VLS_export$11: __VLS_WithSlots$11<vue282.DefineComponent<{}, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, true, {}, any>, {
|
|
76
|
+
default(context: UnwrapRef<UseStepsContext>): unknown;
|
|
77
|
+
}>;
|
|
78
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/steps/steps-indicator.vue.d.ts
|
|
85
|
+
interface StepsIndicatorBaseProps extends PolymorphicProps {}
|
|
86
|
+
interface StepsIndicatorProps extends StepsIndicatorBaseProps,
|
|
87
|
+
/**
|
|
88
|
+
* @vue-ignore
|
|
89
|
+
*/
|
|
90
|
+
HTMLAttributes {}
|
|
91
|
+
declare const _default$3: typeof __VLS_export$10;
|
|
92
|
+
declare const __VLS_export$10: __VLS_WithSlots$10<vue282.DefineComponent<StepsIndicatorProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
93
|
+
default?: (props: {}) => any;
|
|
94
|
+
}>;
|
|
95
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/steps/use-steps-item-context.d.ts
|
|
102
|
+
interface UseStepsItemContext extends ComputedRef<ItemState> {}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/steps/steps-item-context.vue.d.ts
|
|
105
|
+
interface StepsItemContextProps extends SlotsType<{
|
|
106
|
+
default: UnwrapRef<UseStepsItemContext>;
|
|
107
|
+
}> {}
|
|
108
|
+
declare const _default$5: typeof __VLS_export$9;
|
|
109
|
+
declare const __VLS_export$9: __VLS_WithSlots$9<vue282.DefineComponent<{}, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, true, {}, any>, {
|
|
110
|
+
default(context: UnwrapRef<UseStepsItemContext>): unknown;
|
|
111
|
+
}>;
|
|
112
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/steps/steps-item.vue.d.ts
|
|
119
|
+
interface StepsItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
120
|
+
interface StepsItemProps extends StepsItemBaseProps,
|
|
121
|
+
/**
|
|
122
|
+
* @vue-ignore
|
|
123
|
+
*/
|
|
124
|
+
HTMLAttributes {}
|
|
125
|
+
declare const _default$4: typeof __VLS_export$8;
|
|
126
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<vue282.DefineComponent<StepsItemProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
127
|
+
default?: (props: {}) => any;
|
|
128
|
+
}>;
|
|
129
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
130
|
+
new (): {
|
|
131
|
+
$slots: S;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/components/steps/steps-list.vue.d.ts
|
|
136
|
+
interface StepsListBaseProps extends PolymorphicProps {}
|
|
137
|
+
interface StepsListProps extends StepsListBaseProps,
|
|
138
|
+
/**
|
|
139
|
+
* @vue-ignore
|
|
140
|
+
*/
|
|
141
|
+
HTMLAttributes {}
|
|
142
|
+
declare const _default$6: typeof __VLS_export$7;
|
|
143
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<vue282.DefineComponent<StepsListProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
144
|
+
default?: (props: {}) => any;
|
|
145
|
+
}>;
|
|
146
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
147
|
+
new (): {
|
|
148
|
+
$slots: S;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/steps/steps-next-trigger.vue.d.ts
|
|
153
|
+
interface StepsNextTriggerBaseProps extends PolymorphicProps {}
|
|
154
|
+
interface StepsNextTriggerProps extends StepsNextTriggerBaseProps,
|
|
155
|
+
/**
|
|
156
|
+
* @vue-ignore
|
|
157
|
+
*/
|
|
158
|
+
ButtonHTMLAttributes {}
|
|
159
|
+
declare const _default$7: typeof __VLS_export$6;
|
|
160
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<vue282.DefineComponent<StepsNextTriggerProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsNextTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
161
|
+
default?: (props: {}) => any;
|
|
162
|
+
}>;
|
|
163
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
164
|
+
new (): {
|
|
165
|
+
$slots: S;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/components/steps/steps-prev-trigger.vue.d.ts
|
|
170
|
+
interface StepsPrevTriggerBaseProps extends PolymorphicProps {}
|
|
171
|
+
interface StepsPrevTriggerProps extends StepsPrevTriggerBaseProps,
|
|
172
|
+
/**
|
|
173
|
+
* @vue-ignore
|
|
174
|
+
*/
|
|
175
|
+
ButtonHTMLAttributes {}
|
|
176
|
+
declare const _default$8: typeof __VLS_export$5;
|
|
177
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue282.DefineComponent<StepsPrevTriggerProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsPrevTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
178
|
+
default?: (props: {}) => any;
|
|
179
|
+
}>;
|
|
180
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
181
|
+
new (): {
|
|
182
|
+
$slots: S;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/steps/steps-progress.vue.d.ts
|
|
187
|
+
interface StepsProgressBaseProps extends PolymorphicProps {}
|
|
188
|
+
interface StepsProgressProps extends StepsProgressBaseProps,
|
|
189
|
+
/**
|
|
190
|
+
* @vue-ignore
|
|
191
|
+
*/
|
|
192
|
+
HTMLAttributes {}
|
|
193
|
+
declare const _default$9: typeof __VLS_export$4;
|
|
194
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue282.DefineComponent<StepsProgressProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsProgressProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
195
|
+
default?: (props: {}) => any;
|
|
196
|
+
}>;
|
|
197
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
198
|
+
new (): {
|
|
199
|
+
$slots: S;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/components/steps/steps-root-provider.vue.d.ts
|
|
204
|
+
interface RootProviderProps {
|
|
205
|
+
value: UnwrapRef<UseStepsReturn>;
|
|
206
|
+
}
|
|
207
|
+
interface StepsRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
208
|
+
interface StepsRootProviderProps extends StepsRootProviderBaseProps,
|
|
209
|
+
/**
|
|
210
|
+
* @vue-ignore
|
|
211
|
+
*/
|
|
212
|
+
HTMLAttributes {}
|
|
213
|
+
declare const _default$11: typeof __VLS_export$3;
|
|
214
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue282.DefineComponent<StepsRootProviderProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
215
|
+
default?: (props: {}) => any;
|
|
216
|
+
}>;
|
|
217
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
218
|
+
new (): {
|
|
219
|
+
$slots: S;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/components/steps/steps-root.vue.d.ts
|
|
224
|
+
interface StepsRootBaseProps extends RootProps, PolymorphicProps {}
|
|
225
|
+
interface StepsRootProps extends StepsRootBaseProps,
|
|
226
|
+
/**
|
|
227
|
+
* @vue-ignore
|
|
228
|
+
*/
|
|
229
|
+
HTMLAttributes {}
|
|
230
|
+
interface StepsRootEmits extends RootEmits {}
|
|
231
|
+
declare const _default$10: typeof __VLS_export$2;
|
|
232
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue282.DefineComponent<StepsRootProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {
|
|
233
|
+
stepChange: (details: steps.StepChangeDetails) => any;
|
|
234
|
+
stepComplete: () => any;
|
|
235
|
+
stepInvalid: (details: steps.StepInvalidDetails) => any;
|
|
236
|
+
"update:step": (step: number) => any;
|
|
237
|
+
}, string, vue282.PublicProps, Readonly<StepsRootProps> & Readonly<{
|
|
238
|
+
onStepChange?: ((details: steps.StepChangeDetails) => any) | undefined;
|
|
239
|
+
onStepComplete?: (() => any) | undefined;
|
|
240
|
+
onStepInvalid?: ((details: steps.StepInvalidDetails) => any) | undefined;
|
|
241
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
242
|
+
}>, {
|
|
243
|
+
linear: boolean;
|
|
244
|
+
}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
245
|
+
default?: (props: {}) => any;
|
|
246
|
+
}>;
|
|
247
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
248
|
+
new (): {
|
|
249
|
+
$slots: S;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/components/steps/steps-separator.vue.d.ts
|
|
254
|
+
interface StepsSeparatorBaseProps extends PolymorphicProps {}
|
|
255
|
+
interface StepsSeparatorProps extends StepsSeparatorBaseProps,
|
|
256
|
+
/**
|
|
257
|
+
* @vue-ignore
|
|
258
|
+
*/
|
|
259
|
+
HTMLAttributes {}
|
|
260
|
+
declare const _default$12: typeof __VLS_export$1;
|
|
261
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue282.DefineComponent<StepsSeparatorProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
262
|
+
default?: (props: {}) => any;
|
|
263
|
+
}>;
|
|
264
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
265
|
+
new (): {
|
|
266
|
+
$slots: S;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/components/steps/steps-trigger.vue.d.ts
|
|
271
|
+
interface StepsTriggerBaseProps extends PolymorphicProps {}
|
|
272
|
+
interface StepsTriggerProps extends StepsTriggerBaseProps,
|
|
273
|
+
/**
|
|
274
|
+
* @vue-ignore
|
|
275
|
+
*/
|
|
276
|
+
ButtonHTMLAttributes {}
|
|
277
|
+
declare const _default$13: typeof __VLS_export;
|
|
278
|
+
declare const __VLS_export: __VLS_WithSlots<vue282.DefineComponent<StepsTriggerProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {}, string, vue282.PublicProps, Readonly<StepsTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>, {
|
|
279
|
+
default?: (props: {}) => any;
|
|
280
|
+
}>;
|
|
281
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
282
|
+
new (): {
|
|
283
|
+
$slots: S;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
declare namespace steps_d_exports {
|
|
287
|
+
export { _default as CompletedContent, StepsCompletedContentBaseProps as CompletedContentBaseProps, StepsCompletedContentProps as CompletedContentProps, _default$1 as Content, StepsContentBaseProps as ContentBaseProps, StepsContentProps as ContentProps, _default$2 as Context, StepsContextProps as ContextProps, _default$3 as Indicator, StepsIndicatorBaseProps as IndicatorBaseProps, StepsIndicatorProps as IndicatorProps, _default$4 as Item, StepsItemBaseProps as ItemBaseProps, _default$5 as ItemContext, StepsItemContextProps as ItemContextProps, StepsItemProps as ItemProps, _default$6 as List, StepsListBaseProps as ListBaseProps, StepsListProps as ListProps, _default$7 as NextTrigger, StepsNextTriggerBaseProps as NextTriggerBaseProps, StepsNextTriggerProps as NextTriggerProps, _default$8 as PrevTrigger, StepsPrevTriggerBaseProps as PrevTriggerBaseProps, StepsPrevTriggerProps as PrevTriggerProps, _default$9 as Progress, StepsProgressBaseProps as ProgressBaseProps, StepsProgressProps as ProgressProps, _default$10 as Root, StepsRootBaseProps as RootBaseProps, StepsRootEmits as RootEmits, StepsRootProps as RootProps, _default$11 as RootProvider, StepsRootProviderBaseProps as RootProviderBaseProps, StepsRootProviderProps as RootProviderProps, _default$12 as Separator, StepsSeparatorBaseProps as SeparatorBaseProps, StepsSeparatorProps as SeparatorProps, StepChangeDetails$1 as StepChangeDetails, _default$13 as Trigger, StepsTriggerBaseProps as TriggerBaseProps, StepsTriggerProps as TriggerProps };
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
export { type StepChangeDetails, steps_d_exports as Steps, _default as StepsCompletedContent, type StepsCompletedContentBaseProps, type StepsCompletedContentProps, _default$1 as StepsContent, type StepsContentBaseProps, type StepsContentProps, _default$2 as StepsContext, type StepsContextProps, _default$3 as StepsIndicator, type StepsIndicatorBaseProps, type StepsIndicatorProps, _default$4 as StepsItem, type StepsItemBaseProps, _default$5 as StepsItemContext, type StepsItemContextProps, type StepsItemProps, _default$6 as StepsList, type StepsListBaseProps, type StepsListProps, _default$7 as StepsNextTrigger, type StepsNextTriggerBaseProps, type StepsNextTriggerProps, _default$8 as StepsPrevTrigger, type StepsPrevTriggerBaseProps, type StepsPrevTriggerProps, _default$9 as StepsProgress, type StepsProgressBaseProps, type StepsProgressProps, _default$10 as StepsRoot, type StepsRootBaseProps, type StepsRootProps, _default$11 as StepsRootProvider, type StepsRootProviderBaseProps, type StepsRootProviderProps, _default$12 as StepsSeparator, type StepsSeparatorBaseProps, type StepsSeparatorProps, _default$13 as StepsTrigger, type StepsTriggerBaseProps, type StepsTriggerProps, type UseStepsContext, type UseStepsItemContext, type UseStepsProps, type UseStepsReturn, stepsAnatomy, useSteps, useStepsContext, useStepsItemContext };
|