@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
|
@@ -0,0 +1,220 @@
|
|
|
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 { h as useFieldContext } from "./field-C3pLqz1S.js";
|
|
7
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
8
|
+
import * as ratingGroup from "@wirekyt/dom/machines/rating-group";
|
|
9
|
+
import { anatomy as ratingGroupAnatomy } from "@wirekyt/dom/machines/rating-group";
|
|
10
|
+
//#region src/components/rating-group/use-context.ts
|
|
11
|
+
const [RatingGroupProvider, useRatingGroupContext] = createContext("RatingGroupContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/rating-group/context.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const ratingGroup = useRatingGroupContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(ratingGroup))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/rating-group/control.vue
|
|
25
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
26
|
+
__name: "control",
|
|
27
|
+
props: { asChild: { type: Boolean } },
|
|
28
|
+
setup(__props) {
|
|
29
|
+
const ratingGroup = useRatingGroupContext();
|
|
30
|
+
useForwardExpose();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(ratingGroup).getControlProps(), { "as-child": __props.asChild }), {
|
|
33
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["as-child"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/rating-group/hidden-input.vue
|
|
41
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
42
|
+
__name: "hidden-input",
|
|
43
|
+
props: { asChild: { type: Boolean } },
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const ratingGroup = useRatingGroupContext();
|
|
46
|
+
const field = useFieldContext();
|
|
47
|
+
useForwardExpose();
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return openBlock(), createBlock(unref(wire).input, mergeProps({ "aria-describedby": unref(field)?.ariaDescribedby }, unref(ratingGroup).getHiddenInputProps(), { "as-child": __props.asChild }), {
|
|
50
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16, ["aria-describedby", "as-child"]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/rating-group/use-item-context.ts
|
|
58
|
+
const [RatingGroupItemProvider, useRatingGroupItemContext] = createContext("RatingGroupItemContext");
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/rating-group/item-context.vue
|
|
61
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
62
|
+
__name: "item-context",
|
|
63
|
+
setup(__props) {
|
|
64
|
+
const item = useRatingGroupItemContext();
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(item))));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/rating-group/item.vue
|
|
72
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
73
|
+
__name: "item",
|
|
74
|
+
props: {
|
|
75
|
+
index: {},
|
|
76
|
+
asChild: { type: Boolean }
|
|
77
|
+
},
|
|
78
|
+
setup(__props) {
|
|
79
|
+
const props = __props;
|
|
80
|
+
const ratingGroup = useRatingGroupContext();
|
|
81
|
+
RatingGroupItemProvider(computed(() => ratingGroup.value.getItemState(props)));
|
|
82
|
+
useForwardExpose();
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
return openBlock(), createBlock(unref(wire).span, mergeProps(unref(ratingGroup).getItemProps(props), { "as-child": __props.asChild }), {
|
|
85
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
86
|
+
_: 3
|
|
87
|
+
}, 16, ["as-child"]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/rating-group/label.vue
|
|
93
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
94
|
+
__name: "label",
|
|
95
|
+
props: { asChild: { type: Boolean } },
|
|
96
|
+
setup(__props) {
|
|
97
|
+
const ratingGroup = useRatingGroupContext();
|
|
98
|
+
useForwardExpose();
|
|
99
|
+
return (_ctx, _cache) => {
|
|
100
|
+
return openBlock(), createBlock(unref(wire).label, mergeProps(unref(ratingGroup).getLabelProps(), { "as-child": __props.asChild }), {
|
|
101
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 16, ["as-child"]);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/rating-group/root-provider.vue
|
|
109
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
110
|
+
__name: "root-provider",
|
|
111
|
+
props: {
|
|
112
|
+
value: {},
|
|
113
|
+
asChild: { type: Boolean }
|
|
114
|
+
},
|
|
115
|
+
setup(__props) {
|
|
116
|
+
const props = __props;
|
|
117
|
+
const ratingGroup = computed(() => props.value);
|
|
118
|
+
RatingGroupProvider(ratingGroup);
|
|
119
|
+
useForwardExpose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(ratingGroup.value.getRootProps(), { "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/rating-group/use-rating-group.ts
|
|
130
|
+
const useRatingGroup = (props = {}, emit) => {
|
|
131
|
+
const id = useId();
|
|
132
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
133
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
134
|
+
const field = useFieldContext();
|
|
135
|
+
const context = computed(() => {
|
|
136
|
+
const localProps = toValue(props);
|
|
137
|
+
return {
|
|
138
|
+
id,
|
|
139
|
+
ids: {
|
|
140
|
+
label: field?.value.ids.label,
|
|
141
|
+
hiddenInput: field?.value.ids.control
|
|
142
|
+
},
|
|
143
|
+
disabled: field?.value.disabled,
|
|
144
|
+
readOnly: field?.value.readOnly,
|
|
145
|
+
required: field?.value.required,
|
|
146
|
+
dir: locale.value.dir,
|
|
147
|
+
value: localProps.modelValue,
|
|
148
|
+
getRootNode: env?.value.getRootNode,
|
|
149
|
+
...cleanProps(localProps),
|
|
150
|
+
onValueChange(details) {
|
|
151
|
+
emit?.("valueChange", details);
|
|
152
|
+
emit?.("update:modelValue", details.value);
|
|
153
|
+
localProps.onValueChange?.(details);
|
|
154
|
+
},
|
|
155
|
+
onHoverChange: (details) => {
|
|
156
|
+
emit?.("hoverChange", details);
|
|
157
|
+
localProps.onHoverChange?.(details);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
const service = useMachine(ratingGroup.machine, context);
|
|
162
|
+
return computed(() => ratingGroup.connect(service, normalizeProps$1));
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/components/rating-group/root.vue
|
|
166
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
167
|
+
__name: "root",
|
|
168
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
169
|
+
allowHalf: { type: Boolean },
|
|
170
|
+
autoFocus: { type: Boolean },
|
|
171
|
+
count: {},
|
|
172
|
+
defaultValue: {},
|
|
173
|
+
disabled: { type: Boolean },
|
|
174
|
+
form: {},
|
|
175
|
+
id: {},
|
|
176
|
+
ids: {},
|
|
177
|
+
modelValue: {},
|
|
178
|
+
name: {},
|
|
179
|
+
readOnly: { type: Boolean },
|
|
180
|
+
required: { type: Boolean },
|
|
181
|
+
translations: {},
|
|
182
|
+
asChild: { type: Boolean }
|
|
183
|
+
}, {
|
|
184
|
+
allowHalf: void 0,
|
|
185
|
+
autoFocus: void 0,
|
|
186
|
+
disabled: void 0,
|
|
187
|
+
readOnly: void 0,
|
|
188
|
+
required: void 0
|
|
189
|
+
}),
|
|
190
|
+
emits: [
|
|
191
|
+
"hoverChange",
|
|
192
|
+
"valueChange",
|
|
193
|
+
"update:modelValue"
|
|
194
|
+
],
|
|
195
|
+
setup(__props, { emit: __emit }) {
|
|
196
|
+
const ratingGroup = useRatingGroup(__props, __emit);
|
|
197
|
+
RatingGroupProvider(ratingGroup);
|
|
198
|
+
useForwardExpose();
|
|
199
|
+
return (_ctx, _cache) => {
|
|
200
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(ratingGroup).getRootProps(), { "as-child": __props.asChild }), {
|
|
201
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
202
|
+
_: 3
|
|
203
|
+
}, 16, ["as-child"]);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/rating-group/rating-group.ts
|
|
209
|
+
var rating_group_exports = /* @__PURE__ */ __exportAll({
|
|
210
|
+
Context: () => _sfc_main,
|
|
211
|
+
Control: () => _sfc_main$1,
|
|
212
|
+
HiddenInput: () => _sfc_main$2,
|
|
213
|
+
Item: () => _sfc_main$3,
|
|
214
|
+
ItemContext: () => _sfc_main$4,
|
|
215
|
+
Label: () => _sfc_main$5,
|
|
216
|
+
Root: () => _sfc_main$6,
|
|
217
|
+
RootProvider: () => _sfc_main$7
|
|
218
|
+
});
|
|
219
|
+
//#endregion
|
|
220
|
+
export { rating_group_exports as RatingGroup, _sfc_main as RatingGroupContext, _sfc_main$1 as RatingGroupControl, _sfc_main$2 as RatingGroupHiddenInput, _sfc_main$3 as RatingGroupItem, _sfc_main$4 as RatingGroupItemContext, _sfc_main$5 as RatingGroupLabel, _sfc_main$6 as RatingGroupRoot, _sfc_main$7 as RatingGroupRootProvider, ratingGroupAnatomy, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __exportAll = (all, no_symbols) => {
|
|
9
|
+
let target = {};
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
//#endregion
|
|
32
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return __exportAll;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "__toESM", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return __toESM;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -0,0 +1,206 @@
|
|
|
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_scroll_area = require("@wirekyt/dom/machines/scroll-area");
|
|
9
|
+
_wirekyt_dom_machines_scroll_area = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_scroll_area, 1);
|
|
10
|
+
//#region src/components/scroll-area/use-context.ts
|
|
11
|
+
const [ScrollAreaProvider, useScrollAreaContext] = require_utils.createContext("ScrollAreaContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/scroll-area/context.vue
|
|
14
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const scrollArea = useScrollAreaContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(scrollArea))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/scroll-area/content.vue
|
|
25
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
26
|
+
__name: "content",
|
|
27
|
+
props: { asChild: { type: Boolean } },
|
|
28
|
+
setup(__props) {
|
|
29
|
+
const scrollArea = useScrollAreaContext();
|
|
30
|
+
require_utils.useForwardExpose();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getContentProps(), { "as-child": __props.asChild }), {
|
|
33
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["as-child"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/scroll-area/corner.vue
|
|
41
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
42
|
+
__name: "corner",
|
|
43
|
+
props: { asChild: { type: Boolean } },
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const scrollArea = useScrollAreaContext();
|
|
46
|
+
require_utils.useForwardExpose();
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getCornerProps(), { "as-child": __props.asChild }), {
|
|
49
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, ["as-child"]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/scroll-area/use-scroll-area.ts
|
|
57
|
+
const useScrollArea = (props = {}) => {
|
|
58
|
+
const id = (0, vue.useId)();
|
|
59
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
60
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
61
|
+
const context = (0, vue.computed)(() => {
|
|
62
|
+
const localProps = (0, vue.toValue)(props);
|
|
63
|
+
return {
|
|
64
|
+
id,
|
|
65
|
+
dir: locale.value.dir,
|
|
66
|
+
getRootNode: env?.value.getRootNode,
|
|
67
|
+
...require_clean_props.cleanProps(localProps)
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_scroll_area.machine, context);
|
|
71
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_scroll_area.connect(service, require_utils.normalizeProps));
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/scroll-area/root.vue
|
|
75
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
76
|
+
__name: "root",
|
|
77
|
+
props: {
|
|
78
|
+
id: {},
|
|
79
|
+
ids: {},
|
|
80
|
+
asChild: { type: Boolean }
|
|
81
|
+
},
|
|
82
|
+
setup(__props) {
|
|
83
|
+
const scrollArea = useScrollArea(__props);
|
|
84
|
+
ScrollAreaProvider(scrollArea);
|
|
85
|
+
require_utils.useForwardExpose();
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getRootProps(), { "as-child": __props.asChild }), {
|
|
88
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16, ["as-child"]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/scroll-area/root-provider.vue
|
|
96
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
97
|
+
__name: "root-provider",
|
|
98
|
+
props: {
|
|
99
|
+
value: {},
|
|
100
|
+
asChild: { type: Boolean }
|
|
101
|
+
},
|
|
102
|
+
setup(__props) {
|
|
103
|
+
const props = __props;
|
|
104
|
+
const scrollArea = (0, vue.computed)(() => props.value);
|
|
105
|
+
ScrollAreaProvider(scrollArea);
|
|
106
|
+
require_utils.useForwardExpose();
|
|
107
|
+
return (_ctx, _cache) => {
|
|
108
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(scrollArea.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
109
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
110
|
+
_: 3
|
|
111
|
+
}, 16, ["as-child"]);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/scroll-area/use-scrollbar-props-context.ts
|
|
117
|
+
const [ScrollAreaScrollbarPropsProvider, useScrollAreaScrollbarPropsContext] = require_utils.createContext("ScrollAreaScrollbarPropsContext");
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/scroll-area/scrollbar.vue
|
|
120
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
121
|
+
__name: "scrollbar",
|
|
122
|
+
props: {
|
|
123
|
+
orientation: {},
|
|
124
|
+
asChild: { type: Boolean }
|
|
125
|
+
},
|
|
126
|
+
setup(__props) {
|
|
127
|
+
const props = __props;
|
|
128
|
+
const scrollArea = useScrollAreaContext();
|
|
129
|
+
ScrollAreaScrollbarPropsProvider((0, vue.computed)(() => props));
|
|
130
|
+
require_utils.useForwardExpose();
|
|
131
|
+
return (_ctx, _cache) => {
|
|
132
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getScrollbarProps({ orientation: props.orientation }), { "as-child": __props.asChild }), {
|
|
133
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
134
|
+
_: 3
|
|
135
|
+
}, 16, ["as-child"]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/components/scroll-area/thumb.vue
|
|
141
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
142
|
+
__name: "thumb",
|
|
143
|
+
props: { asChild: { type: Boolean } },
|
|
144
|
+
setup(__props) {
|
|
145
|
+
const scrollArea = useScrollAreaContext();
|
|
146
|
+
const scrollbarProps = useScrollAreaScrollbarPropsContext();
|
|
147
|
+
require_utils.useForwardExpose();
|
|
148
|
+
return (_ctx, _cache) => {
|
|
149
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getThumbProps((0, vue.unref)(scrollbarProps)), { "as-child": __props.asChild }), {
|
|
150
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
151
|
+
_: 3
|
|
152
|
+
}, 16, ["as-child"]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/components/scroll-area/viewport.vue
|
|
158
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
159
|
+
__name: "viewport",
|
|
160
|
+
props: { asChild: { type: Boolean } },
|
|
161
|
+
setup(__props) {
|
|
162
|
+
const scrollArea = useScrollAreaContext();
|
|
163
|
+
require_utils.useForwardExpose();
|
|
164
|
+
return (_ctx, _cache) => {
|
|
165
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(scrollArea).getViewportProps(), { "as-child": __props.asChild }), {
|
|
166
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
167
|
+
_: 3
|
|
168
|
+
}, 16, ["as-child"]);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/components/scroll-area/scroll-area.ts
|
|
174
|
+
var scroll_area_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
175
|
+
Content: () => _sfc_main,
|
|
176
|
+
Context: () => _sfc_main$1,
|
|
177
|
+
Corner: () => _sfc_main$2,
|
|
178
|
+
Root: () => _sfc_main$3,
|
|
179
|
+
RootProvider: () => _sfc_main$4,
|
|
180
|
+
Scrollbar: () => _sfc_main$5,
|
|
181
|
+
Thumb: () => _sfc_main$6,
|
|
182
|
+
Viewport: () => _sfc_main$7
|
|
183
|
+
});
|
|
184
|
+
//#endregion
|
|
185
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function() {
|
|
188
|
+
return scroll_area_exports;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
exports.ScrollAreaContent = _sfc_main;
|
|
192
|
+
exports.ScrollAreaContext = _sfc_main$1;
|
|
193
|
+
exports.ScrollAreaCorner = _sfc_main$2;
|
|
194
|
+
exports.ScrollAreaRoot = _sfc_main$3;
|
|
195
|
+
exports.ScrollAreaRootProvider = _sfc_main$4;
|
|
196
|
+
exports.ScrollAreaScrollbar = _sfc_main$5;
|
|
197
|
+
exports.ScrollAreaThumb = _sfc_main$6;
|
|
198
|
+
exports.ScrollAreaViewport = _sfc_main$7;
|
|
199
|
+
Object.defineProperty(exports, "scrollAreaAnatomy", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function() {
|
|
202
|
+
return _wirekyt_dom_machines_scroll_area.anatomy;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
exports.useScrollArea = useScrollArea;
|
|
206
|
+
exports.useScrollAreaContext = useScrollAreaContext;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import { Orientation } from "@wirekyt/dom/types";
|
|
5
|
+
import * as scrollArea from "@wirekyt/dom/machines/scroll-area";
|
|
6
|
+
import { ElementIds, ElementIds as ScrollAreaElementIds, ScrollToDetails, ScrollToDetails as ScrollAreaScrollToDetails, ScrollToEdge as ScrollAreaScrollToEdge, ScrollToEdgeDetails, ScrollToEdgeDetails as ScrollAreaScrollToEdgeDetails, ScrollbarState as ScrollAreaScrollbarState, anatomy as scrollAreaAnatomy } from "@wirekyt/dom/machines/scroll-area";
|
|
7
|
+
//#region src/components/scroll-area/use-scroll-area.d.ts
|
|
8
|
+
interface UseScrollAreaProps extends Optional<Omit<scrollArea.Props, "dir" | "getRootNode">, "id"> {}
|
|
9
|
+
interface UseScrollAreaReturn extends ComputedRef<scrollArea.Api<PropTypes>> {}
|
|
10
|
+
declare const useScrollArea: (props?: MaybeRef<UseScrollAreaProps>) => UseScrollAreaReturn;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/scroll-area/use-context.d.ts
|
|
13
|
+
interface UseScrollAreaContext extends UseScrollAreaReturn {}
|
|
14
|
+
declare const ScrollAreaProvider: (opts: UseScrollAreaContext) => void, useScrollAreaContext: (fallback?: UseScrollAreaContext | undefined) => UseScrollAreaContext;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/scroll-area/context.vue.d.ts
|
|
17
|
+
interface ScrollAreaContextProps extends SlotsType<{
|
|
18
|
+
default: UnwrapRef<UseScrollAreaContext>;
|
|
19
|
+
}> {}
|
|
20
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
21
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
22
|
+
default(scrollArea: UnwrapRef<UseScrollAreaContext>): unknown;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/scroll-area/content.vue.d.ts
|
|
31
|
+
interface ScrollAreaContentBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface ScrollAreaContentProps extends ScrollAreaContentBaseProps,
|
|
33
|
+
/**
|
|
34
|
+
* @vue-ignore
|
|
35
|
+
*/
|
|
36
|
+
HTMLAttributes {}
|
|
37
|
+
declare const _default: typeof __VLS_export$6;
|
|
38
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<ScrollAreaContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
39
|
+
default?: (props: {}) => any;
|
|
40
|
+
}>;
|
|
41
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/scroll-area/corner.vue.d.ts
|
|
48
|
+
interface ScrollAreaCornerBaseProps extends PolymorphicProps {}
|
|
49
|
+
interface ScrollAreaCornerProps extends ScrollAreaCornerBaseProps,
|
|
50
|
+
/**
|
|
51
|
+
* @vue-ignore
|
|
52
|
+
*/
|
|
53
|
+
HTMLAttributes {}
|
|
54
|
+
declare const _default$2: typeof __VLS_export$5;
|
|
55
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<ScrollAreaCornerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaCornerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
56
|
+
default?: (props: {}) => any;
|
|
57
|
+
}>;
|
|
58
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/scroll-area/types.d.ts
|
|
65
|
+
interface RootProps {
|
|
66
|
+
id?: string;
|
|
67
|
+
ids?: Partial<{
|
|
68
|
+
root: string;
|
|
69
|
+
viewport: string;
|
|
70
|
+
content: string;
|
|
71
|
+
scrollbar: string;
|
|
72
|
+
thumb: string;
|
|
73
|
+
}>;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/scroll-area/root.vue.d.ts
|
|
77
|
+
interface ScrollAreaRootBaseProps extends RootProps, PolymorphicProps {}
|
|
78
|
+
interface ScrollAreaRootProps extends ScrollAreaRootBaseProps,
|
|
79
|
+
/**
|
|
80
|
+
* @vue-ignore
|
|
81
|
+
*/
|
|
82
|
+
HTMLAttributes {}
|
|
83
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
84
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<ScrollAreaRootBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaRootBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
85
|
+
default?: (props: {}) => any;
|
|
86
|
+
}>;
|
|
87
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/scroll-area/root-provider.vue.d.ts
|
|
94
|
+
interface ScrollAreaRootProviderBaseProps extends PolymorphicProps {
|
|
95
|
+
value: UnwrapRef<UseScrollAreaContext>;
|
|
96
|
+
}
|
|
97
|
+
interface ScrollAreaRootProviderProps extends ScrollAreaRootProviderBaseProps,
|
|
98
|
+
/**
|
|
99
|
+
* @vue-ignore
|
|
100
|
+
*/
|
|
101
|
+
Omit<HTMLAttributes, "value"> {}
|
|
102
|
+
declare const _default$4: typeof __VLS_export$3;
|
|
103
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ScrollAreaRootProviderBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaRootProviderBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
}>;
|
|
106
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/scroll-area/scrollbar.vue.d.ts
|
|
113
|
+
interface ScrollbarProps {
|
|
114
|
+
orientation?: Orientation;
|
|
115
|
+
}
|
|
116
|
+
interface ScrollAreaScrollbarBaseProps extends ScrollbarProps, PolymorphicProps {}
|
|
117
|
+
interface ScrollAreaScrollbarProps extends ScrollAreaScrollbarBaseProps,
|
|
118
|
+
/**
|
|
119
|
+
* @vue-ignore
|
|
120
|
+
*/
|
|
121
|
+
HTMLAttributes {}
|
|
122
|
+
declare const _default$5: typeof __VLS_export$2;
|
|
123
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ScrollAreaScrollbarBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaScrollbarBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
124
|
+
default?: (props: {}) => any;
|
|
125
|
+
}>;
|
|
126
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
127
|
+
new (): {
|
|
128
|
+
$slots: S;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/components/scroll-area/thumb.vue.d.ts
|
|
133
|
+
interface ScrollAreaThumbBaseProps extends PolymorphicProps {}
|
|
134
|
+
interface ScrollAreaThumbProps extends ScrollAreaThumbBaseProps,
|
|
135
|
+
/**
|
|
136
|
+
* @vue-ignore
|
|
137
|
+
*/
|
|
138
|
+
HTMLAttributes {}
|
|
139
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
140
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ScrollAreaThumbBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaThumbBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
141
|
+
default?: (props: {}) => any;
|
|
142
|
+
}>;
|
|
143
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
144
|
+
new (): {
|
|
145
|
+
$slots: S;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/components/scroll-area/viewport.vue.d.ts
|
|
150
|
+
interface ScrollAreaViewportBaseProps extends PolymorphicProps {}
|
|
151
|
+
interface ScrollAreaViewportProps extends ScrollAreaViewportBaseProps,
|
|
152
|
+
/**
|
|
153
|
+
* @vue-ignore
|
|
154
|
+
*/
|
|
155
|
+
HTMLAttributes {}
|
|
156
|
+
declare const _default$7: typeof __VLS_export;
|
|
157
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ScrollAreaViewportProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
158
|
+
default?: (props: {}) => any;
|
|
159
|
+
}>;
|
|
160
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
161
|
+
new (): {
|
|
162
|
+
$slots: S;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
declare namespace scroll_area_d_exports {
|
|
166
|
+
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 };
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
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 };
|