@sprawlify/vue 0.0.70 → 0.0.73
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/components/accordion/index.d.ts +20 -20
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/angle-slider/index.d.ts +19 -19
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/bottom-sheet/index.d.ts +22 -22
- package/dist/components/carousel/index.d.ts +25 -25
- package/dist/components/checkbox/index.d.ts +28 -28
- package/dist/components/checkbox/index.js +1 -6
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -17
- package/dist/components/collapsible/index.d.ts +17 -17
- package/dist/components/collapsible/index.js +1 -1
- 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 +58 -58
- package/dist/components/combobox/index.d.ts +38 -38
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/date-picker/index.d.ts +51 -51
- package/dist/components/dialog/index.d.ts +33 -33
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/editable/index.d.ts +29 -29
- package/dist/components/field/index.d.ts +26 -26
- package/dist/components/fieldset/index.d.ts +13 -13
- package/dist/components/file-upload/index.d.ts +25 -25
- package/dist/components/floating-panel/index.d.ts +24 -25
- package/dist/components/focus-trap/index.d.ts +5 -5
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/frame/index.d.ts +6 -6
- package/dist/components/highlight/index.d.ts +5 -5
- package/dist/components/hover-card/index.d.ts +27 -27
- package/dist/components/image-cropper/index.d.ts +16 -16
- package/dist/components/json-tree-view/index.d.ts +12 -12
- package/dist/components/json-tree-view/index.js +3 -3
- package/dist/components/listbox/index.d.ts +26 -26
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/marquee/index.d.ts +23 -23
- package/dist/components/menu/index.d.ts +53 -54
- package/dist/components/navigation-menu/index.d.ts +20 -20
- package/dist/components/number-input/index.d.ts +22 -22
- package/dist/components/pagination/index.d.ts +17 -17
- package/dist/components/password-input/index.d.ts +25 -25
- package/dist/components/pin-input/index.d.ts +21 -21
- package/dist/components/popover/index.d.ts +34 -34
- package/dist/components/presence/index.d.ts +2 -2
- 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 +1 -1
- 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/toast/index.d.ts +154 -0
- package/dist/components/toast/index.js +265 -0
- package/dist/components/toggle/index.d.ts +101 -0
- package/dist/components/toggle/index.js +131 -0
- package/dist/components/toggle-group/index.d.ts +127 -0
- package/dist/components/toggle-group/index.js +207 -0
- package/dist/components/tooltip/index.d.ts +201 -0
- package/dist/components/tooltip/index.js +349 -0
- package/dist/components/tour/index.d.ts +308 -0
- package/dist/components/tour/index.js +505 -0
- package/dist/components/tree-view/index.d.ts +5 -5
- package/dist/components/tree-view/index.js +3 -3
- package/dist/{index-Cjk1WhUx.d.ts → index-8bjPAUl0.d.ts} +10 -10
- package/dist/{index-D0_ID5xv.d.ts → index-BnYwp0nl.d.ts} +7 -7
- package/dist/{index-ByYmM8LZ.d.ts → index-CmCVWB7e.d.ts} +33 -33
- package/dist/index.d.ts +3 -3
- package/dist/{tree-view-CzfDgztL.js → tree-view-N6ShNmpe.js} +1 -1
- package/package.json +78 -2
- /package/dist/{collapsible-D1Mx4C0H.js → collapsible-SXAS3iFc.js} +0 -0
- /package/dist/{collection-DiwGNCAy.js → collection-C_ZHBDQD.js} +0 -0
- /package/dist/{factory-Dg6Whljf.d.ts → factory-B5zr8_kk.d.ts} +0 -0
- /package/dist/{index-DI09ccnU.d.ts → index-CCRVRFFQ.d.ts} +0 -0
- /package/dist/{index-ECeveDvH.d.ts → index-DhFoJHfp.d.ts} +0 -0
- /package/dist/{presence-types-BaQ7PILD.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
- /package/dist/{types-BkS9kMJ5.d.ts → types-DIEO6uP3.d.ts} +0 -0
- /package/dist/{use-render-strategy-bdLKqL57.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
|
@@ -0,0 +1,330 @@
|
|
|
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-ChPEW0vT.js";
|
|
8
|
+
import { m as useFieldContext } from "../../field-CtPR24u6.js";
|
|
9
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
10
|
+
import * as ratingGroup from "@sprawlify/primitives/machines/rating-group";
|
|
11
|
+
import { anatomy as ratingGroupAnatomy } from "@sprawlify/primitives/machines/rating-group";
|
|
12
|
+
|
|
13
|
+
//#region src/components/rating-group/use-rating-group-context.ts
|
|
14
|
+
const [RatingGroupProvider, useRatingGroupContext] = createContext("RatingGroupContext");
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/rating-group/rating-group-context.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
+
var rating_group_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "rating-group-context",
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const ratingGroup = useRatingGroupContext();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(ratingGroup))));
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/rating-group/rating-group-context.vue
|
|
30
|
+
var rating_group_context_default = rating_group_context_vue_vue_type_script_setup_true_lang_default;
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/rating-group/rating-group-control.vue?vue&type=script&setup=true&lang.ts
|
|
34
|
+
var rating_group_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
35
|
+
__name: "rating-group-control",
|
|
36
|
+
props: { asChild: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: false
|
|
39
|
+
} },
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const ratingGroup = useRatingGroupContext();
|
|
42
|
+
useForwardExpose();
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(ratingGroup).getControlProps(), { "as-child": __props.asChild }), {
|
|
45
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 16, ["as-child"]);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/rating-group/rating-group-control.vue
|
|
54
|
+
var rating_group_control_default = rating_group_control_vue_vue_type_script_setup_true_lang_default;
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/rating-group/rating-group-hidden-input.vue?vue&type=script&setup=true&lang.ts
|
|
58
|
+
var rating_group_hidden_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
59
|
+
__name: "rating-group-hidden-input",
|
|
60
|
+
props: { asChild: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
required: false
|
|
63
|
+
} },
|
|
64
|
+
setup(__props) {
|
|
65
|
+
const ratingGroup = useRatingGroupContext();
|
|
66
|
+
const field = useFieldContext();
|
|
67
|
+
useForwardExpose();
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return openBlock(), createBlock(unref(sprawlify).input, mergeProps({ "aria-describedby": unref(field)?.ariaDescribedby }, unref(ratingGroup).getHiddenInputProps(), { "as-child": __props.asChild }), {
|
|
70
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16, ["aria-describedby", "as-child"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/rating-group/rating-group-hidden-input.vue
|
|
79
|
+
var rating_group_hidden_input_default = rating_group_hidden_input_vue_vue_type_script_setup_true_lang_default;
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/rating-group/use-rating-group-item-context.ts
|
|
83
|
+
const [RatingGroupItemProvider, useRatingGroupItemContext] = createContext("RatingGroupItemContext");
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/rating-group/rating-group-item-context.vue?vue&type=script&setup=true&lang.ts
|
|
87
|
+
var rating_group_item_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
88
|
+
__name: "rating-group-item-context",
|
|
89
|
+
setup(__props) {
|
|
90
|
+
const item = useRatingGroupItemContext();
|
|
91
|
+
return (_ctx, _cache) => {
|
|
92
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(item))));
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/rating-group/rating-group-item-context.vue
|
|
99
|
+
var rating_group_item_context_default = rating_group_item_context_vue_vue_type_script_setup_true_lang_default;
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/rating-group/rating-group-item.vue?vue&type=script&setup=true&lang.ts
|
|
103
|
+
var rating_group_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
104
|
+
__name: "rating-group-item",
|
|
105
|
+
props: {
|
|
106
|
+
index: {
|
|
107
|
+
type: Number,
|
|
108
|
+
required: true
|
|
109
|
+
},
|
|
110
|
+
asChild: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
required: false
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
setup(__props) {
|
|
116
|
+
const props = __props;
|
|
117
|
+
const ratingGroup = useRatingGroupContext();
|
|
118
|
+
RatingGroupItemProvider(computed(() => ratingGroup.value.getItemState(props)));
|
|
119
|
+
useForwardExpose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createBlock(unref(sprawlify).span, mergeProps(unref(ratingGroup).getItemProps(props), { "as-child": __props.asChild }), {
|
|
122
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 16, ["as-child"]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/rating-group/rating-group-item.vue
|
|
131
|
+
var rating_group_item_default = rating_group_item_vue_vue_type_script_setup_true_lang_default;
|
|
132
|
+
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/rating-group/rating-group-label.vue?vue&type=script&setup=true&lang.ts
|
|
135
|
+
var rating_group_label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
136
|
+
__name: "rating-group-label",
|
|
137
|
+
props: { asChild: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
required: false
|
|
140
|
+
} },
|
|
141
|
+
setup(__props) {
|
|
142
|
+
const ratingGroup = useRatingGroupContext();
|
|
143
|
+
useForwardExpose();
|
|
144
|
+
return (_ctx, _cache) => {
|
|
145
|
+
return openBlock(), createBlock(unref(sprawlify).label, mergeProps(unref(ratingGroup).getLabelProps(), { "as-child": __props.asChild }), {
|
|
146
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
147
|
+
_: 3
|
|
148
|
+
}, 16, ["as-child"]);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/rating-group/rating-group-label.vue
|
|
155
|
+
var rating_group_label_default = rating_group_label_vue_vue_type_script_setup_true_lang_default;
|
|
156
|
+
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/rating-group/rating-group-root-provider.vue?vue&type=script&setup=true&lang.ts
|
|
159
|
+
var rating_group_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
160
|
+
__name: "rating-group-root-provider",
|
|
161
|
+
props: {
|
|
162
|
+
value: {
|
|
163
|
+
type: null,
|
|
164
|
+
required: true
|
|
165
|
+
},
|
|
166
|
+
asChild: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
required: false
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
setup(__props) {
|
|
172
|
+
const props = __props;
|
|
173
|
+
const ratingGroup = computed(() => props.value);
|
|
174
|
+
RatingGroupProvider(ratingGroup);
|
|
175
|
+
useForwardExpose();
|
|
176
|
+
return (_ctx, _cache) => {
|
|
177
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(ratingGroup.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
178
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 16, ["as-child"]);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/rating-group/rating-group-root-provider.vue
|
|
187
|
+
var rating_group_root_provider_default = rating_group_root_provider_vue_vue_type_script_setup_true_lang_default;
|
|
188
|
+
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/components/rating-group/use-rating-group.ts
|
|
191
|
+
const useRatingGroup = (props = {}, emit) => {
|
|
192
|
+
const id = useId();
|
|
193
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
194
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
195
|
+
const field = useFieldContext();
|
|
196
|
+
const context = computed(() => {
|
|
197
|
+
const localProps = toValue(props);
|
|
198
|
+
return {
|
|
199
|
+
id,
|
|
200
|
+
ids: {
|
|
201
|
+
label: field?.value.ids.label,
|
|
202
|
+
hiddenInput: field?.value.ids.control
|
|
203
|
+
},
|
|
204
|
+
disabled: field?.value.disabled,
|
|
205
|
+
readOnly: field?.value.readOnly,
|
|
206
|
+
required: field?.value.required,
|
|
207
|
+
dir: locale.value.dir,
|
|
208
|
+
value: localProps.modelValue,
|
|
209
|
+
getRootNode: env?.value.getRootNode,
|
|
210
|
+
...cleanProps(localProps),
|
|
211
|
+
onValueChange(details) {
|
|
212
|
+
emit?.("valueChange", details);
|
|
213
|
+
emit?.("update:modelValue", details.value);
|
|
214
|
+
localProps.onValueChange?.(details);
|
|
215
|
+
},
|
|
216
|
+
onHoverChange: (details) => {
|
|
217
|
+
emit?.("hoverChange", details);
|
|
218
|
+
localProps.onHoverChange?.(details);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
});
|
|
222
|
+
const service = useMachine(ratingGroup.machine, context);
|
|
223
|
+
return computed(() => ratingGroup.connect(service, normalizeProps$1));
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/components/rating-group/rating-group-root.vue?vue&type=script&setup=true&lang.ts
|
|
228
|
+
var rating_group_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
229
|
+
__name: "rating-group-root",
|
|
230
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
231
|
+
allowHalf: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
required: false
|
|
234
|
+
},
|
|
235
|
+
autoFocus: {
|
|
236
|
+
type: Boolean,
|
|
237
|
+
required: false
|
|
238
|
+
},
|
|
239
|
+
count: {
|
|
240
|
+
type: Number,
|
|
241
|
+
required: false
|
|
242
|
+
},
|
|
243
|
+
defaultValue: {
|
|
244
|
+
type: Number,
|
|
245
|
+
required: false
|
|
246
|
+
},
|
|
247
|
+
disabled: {
|
|
248
|
+
type: Boolean,
|
|
249
|
+
required: false
|
|
250
|
+
},
|
|
251
|
+
form: {
|
|
252
|
+
type: String,
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
id: {
|
|
256
|
+
type: String,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
ids: {
|
|
260
|
+
type: Object,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
modelValue: {
|
|
264
|
+
type: Number,
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
name: {
|
|
268
|
+
type: String,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
readOnly: {
|
|
272
|
+
type: Boolean,
|
|
273
|
+
required: false
|
|
274
|
+
},
|
|
275
|
+
required: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
required: false
|
|
278
|
+
},
|
|
279
|
+
translations: {
|
|
280
|
+
type: null,
|
|
281
|
+
required: false
|
|
282
|
+
},
|
|
283
|
+
asChild: {
|
|
284
|
+
type: Boolean,
|
|
285
|
+
required: false
|
|
286
|
+
}
|
|
287
|
+
}, {
|
|
288
|
+
allowHalf: void 0,
|
|
289
|
+
autoFocus: void 0,
|
|
290
|
+
disabled: void 0,
|
|
291
|
+
readOnly: void 0,
|
|
292
|
+
required: void 0
|
|
293
|
+
}),
|
|
294
|
+
emits: [
|
|
295
|
+
"hoverChange",
|
|
296
|
+
"valueChange",
|
|
297
|
+
"update:modelValue"
|
|
298
|
+
],
|
|
299
|
+
setup(__props, { emit: __emit }) {
|
|
300
|
+
const ratingGroup = useRatingGroup(__props, __emit);
|
|
301
|
+
RatingGroupProvider(ratingGroup);
|
|
302
|
+
useForwardExpose();
|
|
303
|
+
return (_ctx, _cache) => {
|
|
304
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(ratingGroup).getRootProps(), { "as-child": __props.asChild }), {
|
|
305
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
306
|
+
_: 3
|
|
307
|
+
}, 16, ["as-child"]);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region src/components/rating-group/rating-group-root.vue
|
|
314
|
+
var rating_group_root_default = rating_group_root_vue_vue_type_script_setup_true_lang_default;
|
|
315
|
+
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/components/rating-group/rating-group.ts
|
|
318
|
+
var rating_group_exports = /* @__PURE__ */ __exportAll({
|
|
319
|
+
Context: () => rating_group_context_default,
|
|
320
|
+
Control: () => rating_group_control_default,
|
|
321
|
+
HiddenInput: () => rating_group_hidden_input_default,
|
|
322
|
+
Item: () => rating_group_item_default,
|
|
323
|
+
ItemContext: () => rating_group_item_context_default,
|
|
324
|
+
Label: () => rating_group_label_default,
|
|
325
|
+
Root: () => rating_group_root_default,
|
|
326
|
+
RootProvider: () => rating_group_root_provider_default
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
//#endregion
|
|
330
|
+
export { rating_group_exports as RatingGroup, rating_group_context_default as RatingGroupContext, rating_group_control_default as RatingGroupControl, rating_group_hidden_input_default as RatingGroupHiddenInput, rating_group_item_default as RatingGroupItem, rating_group_item_context_default as RatingGroupItemContext, rating_group_label_default as RatingGroupLabel, rating_group_root_default as RatingGroupRoot, rating_group_root_provider_default as RatingGroupRootProvider, ratingGroupAnatomy, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-B5zr8_kk.js";
|
|
2
|
+
import { a as Optional } from "../../types-DIEO6uP3.js";
|
|
3
|
+
import { r as PropTypes } from "../../index-CCRVRFFQ.js";
|
|
4
|
+
import { Orientation } from "@sprawlify/primitives/types";
|
|
5
|
+
import * as vue503 from "vue";
|
|
6
|
+
import { ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
7
|
+
import * as scrollArea from "@sprawlify/primitives/machines/scroll-area";
|
|
8
|
+
import { ElementIds, ElementIds as ScrollAreaElementIds, ScrollToDetails, ScrollToDetails as ScrollAreaScrollToDetails, ScrollToEdge as ScrollAreaScrollToEdge, ScrollToEdgeDetails, ScrollToEdgeDetails as ScrollAreaScrollToEdgeDetails, ScrollbarState as ScrollAreaScrollbarState, anatomy as scrollAreaAnatomy } from "@sprawlify/primitives/machines/scroll-area";
|
|
9
|
+
|
|
10
|
+
//#region src/components/scroll-area/use-scroll-area.d.ts
|
|
11
|
+
interface UseScrollAreaProps extends Optional<Omit<scrollArea.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
12
|
+
interface UseScrollAreaReturn extends ComputedRef<scrollArea.Api<PropTypes>> {}
|
|
13
|
+
declare const useScrollArea: (props?: MaybeRef<UseScrollAreaProps>) => UseScrollAreaReturn;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/scroll-area/use-scroll-area-context.d.ts
|
|
16
|
+
interface UseScrollAreaContext extends UseScrollAreaReturn {}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/scroll-area/scroll-area-context.vue.d.ts
|
|
19
|
+
interface ScrollAreaContextProps extends SlotsType<{
|
|
20
|
+
default: UnwrapRef<UseScrollAreaContext>;
|
|
21
|
+
}> {}
|
|
22
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
23
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<vue503.DefineComponent<{}, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, true, {}, any>, {
|
|
24
|
+
default(scrollArea: UnwrapRef<UseScrollAreaContext>): unknown;
|
|
25
|
+
}>;
|
|
26
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/scroll-area/scroll-area-content.vue.d.ts
|
|
33
|
+
interface ScrollAreaContentBaseProps extends PolymorphicProps {}
|
|
34
|
+
interface ScrollAreaContentProps extends ScrollAreaContentBaseProps,
|
|
35
|
+
/**
|
|
36
|
+
* @vue-ignore
|
|
37
|
+
*/
|
|
38
|
+
HTMLAttributes {}
|
|
39
|
+
declare const _default: typeof __VLS_export$6;
|
|
40
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<vue503.DefineComponent<ScrollAreaContentProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
41
|
+
default?: (props: {}) => any;
|
|
42
|
+
}>;
|
|
43
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/scroll-area/scroll-area-corner.vue.d.ts
|
|
50
|
+
interface ScrollAreaCornerBaseProps extends PolymorphicProps {}
|
|
51
|
+
interface ScrollAreaCornerProps extends ScrollAreaCornerBaseProps,
|
|
52
|
+
/**
|
|
53
|
+
* @vue-ignore
|
|
54
|
+
*/
|
|
55
|
+
HTMLAttributes {}
|
|
56
|
+
declare const _default$2: typeof __VLS_export$5;
|
|
57
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue503.DefineComponent<ScrollAreaCornerProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaCornerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
58
|
+
default?: (props: {}) => any;
|
|
59
|
+
}>;
|
|
60
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/scroll-area/scroll-area-types.d.ts
|
|
67
|
+
interface RootProps {
|
|
68
|
+
id?: string;
|
|
69
|
+
ids?: Partial<{
|
|
70
|
+
root: string;
|
|
71
|
+
viewport: string;
|
|
72
|
+
content: string;
|
|
73
|
+
scrollbar: string;
|
|
74
|
+
thumb: string;
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/scroll-area/scroll-area-root.vue.d.ts
|
|
79
|
+
interface ScrollAreaRootBaseProps extends RootProps, PolymorphicProps {}
|
|
80
|
+
interface ScrollAreaRootProps extends ScrollAreaRootBaseProps,
|
|
81
|
+
/**
|
|
82
|
+
* @vue-ignore
|
|
83
|
+
*/
|
|
84
|
+
HTMLAttributes {}
|
|
85
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
86
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue503.DefineComponent<ScrollAreaRootBaseProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaRootBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
87
|
+
default?: (props: {}) => any;
|
|
88
|
+
}>;
|
|
89
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
90
|
+
new (): {
|
|
91
|
+
$slots: S;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/scroll-area/scroll-area-root-provider.vue.d.ts
|
|
96
|
+
interface ScrollAreaRootProviderBaseProps extends PolymorphicProps {
|
|
97
|
+
value: UnwrapRef<UseScrollAreaContext>;
|
|
98
|
+
}
|
|
99
|
+
interface ScrollAreaRootProviderProps extends ScrollAreaRootProviderBaseProps,
|
|
100
|
+
/**
|
|
101
|
+
* @vue-ignore
|
|
102
|
+
*/
|
|
103
|
+
Omit<HTMLAttributes, 'value'> {}
|
|
104
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
105
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue503.DefineComponent<ScrollAreaRootProviderBaseProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaRootProviderBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
106
|
+
default?: (props: {}) => any;
|
|
107
|
+
}>;
|
|
108
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/scroll-area/scroll-area-scrollbar.vue.d.ts
|
|
115
|
+
interface ScrollbarProps {
|
|
116
|
+
orientation?: Orientation;
|
|
117
|
+
}
|
|
118
|
+
interface ScrollAreaScrollbarBaseProps extends ScrollbarProps, PolymorphicProps {}
|
|
119
|
+
interface ScrollAreaScrollbarProps extends ScrollAreaScrollbarBaseProps,
|
|
120
|
+
/**
|
|
121
|
+
* @vue-ignore
|
|
122
|
+
*/
|
|
123
|
+
HTMLAttributes {}
|
|
124
|
+
declare const _default$5: typeof __VLS_export$2;
|
|
125
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue503.DefineComponent<ScrollAreaScrollbarBaseProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaScrollbarBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
126
|
+
default?: (props: {}) => any;
|
|
127
|
+
}>;
|
|
128
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
129
|
+
new (): {
|
|
130
|
+
$slots: S;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/scroll-area/scroll-area-thumb.vue.d.ts
|
|
135
|
+
interface ScrollAreaThumbBaseProps extends PolymorphicProps {}
|
|
136
|
+
interface ScrollAreaThumbProps extends ScrollAreaThumbBaseProps,
|
|
137
|
+
/**
|
|
138
|
+
* @vue-ignore
|
|
139
|
+
*/
|
|
140
|
+
HTMLAttributes {}
|
|
141
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
142
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue503.DefineComponent<ScrollAreaThumbBaseProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaThumbBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
143
|
+
default?: (props: {}) => any;
|
|
144
|
+
}>;
|
|
145
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/scroll-area/scroll-area-viewport.vue.d.ts
|
|
152
|
+
interface ScrollAreaViewportBaseProps extends PolymorphicProps {}
|
|
153
|
+
interface ScrollAreaViewportProps extends ScrollAreaViewportBaseProps,
|
|
154
|
+
/**
|
|
155
|
+
* @vue-ignore
|
|
156
|
+
*/
|
|
157
|
+
HTMLAttributes {}
|
|
158
|
+
declare const _default$7: typeof __VLS_export;
|
|
159
|
+
declare const __VLS_export: __VLS_WithSlots<vue503.DefineComponent<ScrollAreaViewportProps, {}, {}, {}, {}, vue503.ComponentOptionsMixin, vue503.ComponentOptionsMixin, {}, string, vue503.PublicProps, Readonly<ScrollAreaViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, vue503.ComponentProvideOptions, false, {}, any>, {
|
|
160
|
+
default?: (props: {}) => any;
|
|
161
|
+
}>;
|
|
162
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
163
|
+
new (): {
|
|
164
|
+
$slots: S;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
declare namespace scroll_area_d_exports {
|
|
168
|
+
export { _default as Content, ScrollAreaContentBaseProps as ContentBaseProps, ScrollAreaContentProps as ContentProps, _default$1 as Context, ScrollAreaContextProps as ContextProps, _default$2 as Corner, ScrollAreaCornerBaseProps as CornerBaseProps, ScrollAreaCornerProps as CornerProps, ElementIds, _default$3 as Root, ScrollAreaRootBaseProps as RootBaseProps, ScrollAreaRootProps as RootProps, _default$4 as RootProvider, ScrollAreaRootProviderBaseProps as RootProviderBaseProps, ScrollAreaRootProviderProps as RootProviderProps, ScrollToDetails, ScrollToEdgeDetails, _default$5 as Scrollbar, ScrollAreaScrollbarBaseProps as ScrollbarBaseProps, ScrollAreaScrollbarProps as ScrollbarProps, _default$6 as Thumb, ScrollAreaThumbBaseProps as ThumbBaseProps, ScrollAreaThumbProps as ThumbProps, _default$7 as Viewport, ScrollAreaViewportBaseProps as ViewportBaseProps, ScrollAreaViewportProps as ViewportProps };
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
export { scroll_area_d_exports as ScrollArea, _default as ScrollAreaContent, type ScrollAreaContentBaseProps, type ScrollAreaContentProps, _default$1 as ScrollAreaContext, type ScrollAreaContextProps, _default$2 as ScrollAreaCorner, type ScrollAreaCornerBaseProps, type ScrollAreaCornerProps, type ScrollAreaElementIds, _default$3 as ScrollAreaRoot, type ScrollAreaRootBaseProps, type ScrollAreaRootProps, _default$4 as ScrollAreaRootProvider, type ScrollAreaRootProviderBaseProps, type ScrollAreaRootProviderProps, type ScrollAreaScrollToDetails, type ScrollAreaScrollToEdge, type ScrollAreaScrollToEdgeDetails, _default$5 as ScrollAreaScrollbar, type ScrollAreaScrollbarBaseProps, type ScrollAreaScrollbarProps, type ScrollAreaScrollbarState, _default$6 as ScrollAreaThumb, type ScrollAreaThumbBaseProps, type ScrollAreaThumbProps, _default$7 as ScrollAreaViewport, type ScrollAreaViewportBaseProps, type ScrollAreaViewportProps, type UseScrollAreaContext, type UseScrollAreaProps, type UseScrollAreaReturn, scrollAreaAnatomy, useScrollArea, useScrollAreaContext };
|