@wirekyt/vue 0.0.1 → 0.0.3
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-BnUr4dTo.cjs +232 -0
- package/dist/collapsible-jvqnRz16.js +179 -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-B0onOyyK.cjs +254 -0
- package/dist/collection-Dg6EtML_.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-C8zR9eg3.d.ts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DaLvr6SW.d.ts +37 -0
- package/dist/index-Di84rFjS.d.cts +444 -0
- package/dist/index-Dpm1wGVS.d.cts +74 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-kCBQJqpU.d.ts +74 -0
- package/dist/index-vIbTjrJ-.d.cts +37 -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-DnTVwhew.cjs +651 -0
- package/dist/tree-view-goUH3_RC.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 +277 -6
|
@@ -0,0 +1,243 @@
|
|
|
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
|
+
const require_field = require("./field-DRz-v4rB.cjs");
|
|
8
|
+
let vue = require("vue");
|
|
9
|
+
let _wirekyt_dom_machines_rating_group = require("@wirekyt/dom/machines/rating-group");
|
|
10
|
+
_wirekyt_dom_machines_rating_group = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_rating_group, 1);
|
|
11
|
+
//#region src/components/rating-group/use-context.ts
|
|
12
|
+
const [RatingGroupProvider, useRatingGroupContext] = require_utils.createContext("RatingGroupContext");
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/rating-group/context.vue
|
|
15
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
16
|
+
__name: "context",
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const ratingGroup = useRatingGroupContext();
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(ratingGroup))));
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/rating-group/control.vue
|
|
26
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
27
|
+
__name: "control",
|
|
28
|
+
props: { asChild: { type: Boolean } },
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const ratingGroup = useRatingGroupContext();
|
|
31
|
+
require_utils.useForwardExpose();
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(ratingGroup).getControlProps(), { "as-child": __props.asChild }), {
|
|
34
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["as-child"]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/rating-group/hidden-input.vue
|
|
42
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
43
|
+
__name: "hidden-input",
|
|
44
|
+
props: { asChild: { type: Boolean } },
|
|
45
|
+
setup(__props) {
|
|
46
|
+
const ratingGroup = useRatingGroupContext();
|
|
47
|
+
const field = require_field.useFieldContext();
|
|
48
|
+
require_utils.useForwardExpose();
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).input, (0, vue.mergeProps)({ "aria-describedby": (0, vue.unref)(field)?.ariaDescribedby }, (0, vue.unref)(ratingGroup).getHiddenInputProps(), { "as-child": __props.asChild }), {
|
|
51
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16, ["aria-describedby", "as-child"]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/rating-group/use-item-context.ts
|
|
59
|
+
const [RatingGroupItemProvider, useRatingGroupItemContext] = require_utils.createContext("RatingGroupItemContext");
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/rating-group/item-context.vue
|
|
62
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
63
|
+
__name: "item-context",
|
|
64
|
+
setup(__props) {
|
|
65
|
+
const item = useRatingGroupItemContext();
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(item))));
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/rating-group/item.vue
|
|
73
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
74
|
+
__name: "item",
|
|
75
|
+
props: {
|
|
76
|
+
index: {},
|
|
77
|
+
asChild: { type: Boolean }
|
|
78
|
+
},
|
|
79
|
+
setup(__props) {
|
|
80
|
+
const props = __props;
|
|
81
|
+
const ratingGroup = useRatingGroupContext();
|
|
82
|
+
RatingGroupItemProvider((0, vue.computed)(() => ratingGroup.value.getItemState(props)));
|
|
83
|
+
require_utils.useForwardExpose();
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(ratingGroup).getItemProps(props), { "as-child": __props.asChild }), {
|
|
86
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 16, ["as-child"]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/rating-group/label.vue
|
|
94
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
95
|
+
__name: "label",
|
|
96
|
+
props: { asChild: { type: Boolean } },
|
|
97
|
+
setup(__props) {
|
|
98
|
+
const ratingGroup = useRatingGroupContext();
|
|
99
|
+
require_utils.useForwardExpose();
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).label, (0, vue.mergeProps)((0, vue.unref)(ratingGroup).getLabelProps(), { "as-child": __props.asChild }), {
|
|
102
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["as-child"]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/rating-group/root-provider.vue
|
|
110
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
111
|
+
__name: "root-provider",
|
|
112
|
+
props: {
|
|
113
|
+
value: {},
|
|
114
|
+
asChild: { type: Boolean }
|
|
115
|
+
},
|
|
116
|
+
setup(__props) {
|
|
117
|
+
const props = __props;
|
|
118
|
+
const ratingGroup = (0, vue.computed)(() => props.value);
|
|
119
|
+
RatingGroupProvider(ratingGroup);
|
|
120
|
+
require_utils.useForwardExpose();
|
|
121
|
+
return (_ctx, _cache) => {
|
|
122
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(ratingGroup.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
123
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
124
|
+
_: 3
|
|
125
|
+
}, 16, ["as-child"]);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/rating-group/use-rating-group.ts
|
|
131
|
+
const useRatingGroup = (props = {}, emit) => {
|
|
132
|
+
const id = (0, vue.useId)();
|
|
133
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
134
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
135
|
+
const field = require_field.useFieldContext();
|
|
136
|
+
const context = (0, vue.computed)(() => {
|
|
137
|
+
const localProps = (0, vue.toValue)(props);
|
|
138
|
+
return {
|
|
139
|
+
id,
|
|
140
|
+
ids: {
|
|
141
|
+
label: field?.value.ids.label,
|
|
142
|
+
hiddenInput: field?.value.ids.control
|
|
143
|
+
},
|
|
144
|
+
disabled: field?.value.disabled,
|
|
145
|
+
readOnly: field?.value.readOnly,
|
|
146
|
+
required: field?.value.required,
|
|
147
|
+
dir: locale.value.dir,
|
|
148
|
+
value: localProps.modelValue,
|
|
149
|
+
getRootNode: env?.value.getRootNode,
|
|
150
|
+
...require_clean_props.cleanProps(localProps),
|
|
151
|
+
onValueChange(details) {
|
|
152
|
+
emit?.("valueChange", details);
|
|
153
|
+
emit?.("update:modelValue", details.value);
|
|
154
|
+
localProps.onValueChange?.(details);
|
|
155
|
+
},
|
|
156
|
+
onHoverChange: (details) => {
|
|
157
|
+
emit?.("hoverChange", details);
|
|
158
|
+
localProps.onHoverChange?.(details);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_rating_group.machine, context);
|
|
163
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_rating_group.connect(service, require_utils.normalizeProps));
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/rating-group/root.vue
|
|
167
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
168
|
+
__name: "root",
|
|
169
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
170
|
+
allowHalf: { type: Boolean },
|
|
171
|
+
autoFocus: { type: Boolean },
|
|
172
|
+
count: {},
|
|
173
|
+
defaultValue: {},
|
|
174
|
+
disabled: { type: Boolean },
|
|
175
|
+
form: {},
|
|
176
|
+
id: {},
|
|
177
|
+
ids: {},
|
|
178
|
+
modelValue: {},
|
|
179
|
+
name: {},
|
|
180
|
+
readOnly: { type: Boolean },
|
|
181
|
+
required: { type: Boolean },
|
|
182
|
+
translations: {},
|
|
183
|
+
asChild: { type: Boolean }
|
|
184
|
+
}, {
|
|
185
|
+
allowHalf: void 0,
|
|
186
|
+
autoFocus: void 0,
|
|
187
|
+
disabled: void 0,
|
|
188
|
+
readOnly: void 0,
|
|
189
|
+
required: void 0
|
|
190
|
+
}),
|
|
191
|
+
emits: [
|
|
192
|
+
"hoverChange",
|
|
193
|
+
"valueChange",
|
|
194
|
+
"update:modelValue"
|
|
195
|
+
],
|
|
196
|
+
setup(__props, { emit: __emit }) {
|
|
197
|
+
const ratingGroup = useRatingGroup(__props, __emit);
|
|
198
|
+
RatingGroupProvider(ratingGroup);
|
|
199
|
+
require_utils.useForwardExpose();
|
|
200
|
+
return (_ctx, _cache) => {
|
|
201
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(ratingGroup).getRootProps(), { "as-child": __props.asChild }), {
|
|
202
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
203
|
+
_: 3
|
|
204
|
+
}, 16, ["as-child"]);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/components/rating-group/rating-group.ts
|
|
210
|
+
var rating_group_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
211
|
+
Context: () => _sfc_main,
|
|
212
|
+
Control: () => _sfc_main$1,
|
|
213
|
+
HiddenInput: () => _sfc_main$2,
|
|
214
|
+
Item: () => _sfc_main$3,
|
|
215
|
+
ItemContext: () => _sfc_main$4,
|
|
216
|
+
Label: () => _sfc_main$5,
|
|
217
|
+
Root: () => _sfc_main$6,
|
|
218
|
+
RootProvider: () => _sfc_main$7
|
|
219
|
+
});
|
|
220
|
+
//#endregion
|
|
221
|
+
Object.defineProperty(exports, "RatingGroup", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function() {
|
|
224
|
+
return rating_group_exports;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
exports.RatingGroupContext = _sfc_main;
|
|
228
|
+
exports.RatingGroupControl = _sfc_main$1;
|
|
229
|
+
exports.RatingGroupHiddenInput = _sfc_main$2;
|
|
230
|
+
exports.RatingGroupItem = _sfc_main$3;
|
|
231
|
+
exports.RatingGroupItemContext = _sfc_main$4;
|
|
232
|
+
exports.RatingGroupLabel = _sfc_main$5;
|
|
233
|
+
exports.RatingGroupRoot = _sfc_main$6;
|
|
234
|
+
exports.RatingGroupRootProvider = _sfc_main$7;
|
|
235
|
+
Object.defineProperty(exports, "ratingGroupAnatomy", {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function() {
|
|
238
|
+
return _wirekyt_dom_machines_rating_group.anatomy;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
exports.useRatingGroup = useRatingGroup;
|
|
242
|
+
exports.useRatingGroupContext = useRatingGroupContext;
|
|
243
|
+
exports.useRatingGroupItemContext = useRatingGroupItemContext;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as ratingGroup from "@wirekyt/dom/machines/rating-group";
|
|
5
|
+
import { HoverChangeDetails, HoverChangeDetails as RatingGroupHoverChangeDetails, ItemProps, ItemState, ValueChangeDetails, ValueChangeDetails as RatingGroupValueChangeDetails, anatomy as ratingGroupAnatomy } from "@wirekyt/dom/machines/rating-group";
|
|
6
|
+
//#region src/components/rating-group/control.vue.d.ts
|
|
7
|
+
interface RatingGroupControlBaseProps extends PolymorphicProps {}
|
|
8
|
+
interface RatingGroupControlProps extends RatingGroupControlBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
HTMLAttributes {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
14
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<RatingGroupControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/rating-group/hidden-input.vue.d.ts
|
|
24
|
+
interface RatingGroupHiddenInputBaseProps extends PolymorphicProps {}
|
|
25
|
+
interface RatingGroupHiddenInputProps extends RatingGroupHiddenInputBaseProps,
|
|
26
|
+
/**
|
|
27
|
+
* @vue-ignore
|
|
28
|
+
*/
|
|
29
|
+
InputHTMLAttributes {}
|
|
30
|
+
declare const _default$2: typeof __VLS_export$6;
|
|
31
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<RatingGroupHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupHiddenInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
default?: (props: {}) => any;
|
|
33
|
+
}>;
|
|
34
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/rating-group/use-item-context.d.ts
|
|
41
|
+
interface UseRatingGroupItemContext extends ComputedRef<ItemState> {}
|
|
42
|
+
declare const RatingGroupItemProvider: (opts: UseRatingGroupItemContext) => void, useRatingGroupItemContext: (fallback?: UseRatingGroupItemContext | undefined) => UseRatingGroupItemContext;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/rating-group/item-context.vue.d.ts
|
|
45
|
+
interface RatingGroupItemContextProps extends SlotsType<{
|
|
46
|
+
default: UnwrapRef<UseRatingGroupItemContext>;
|
|
47
|
+
}> {}
|
|
48
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
49
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
50
|
+
default(item: UnwrapRef<UseRatingGroupItemContext>): unknown;
|
|
51
|
+
}>;
|
|
52
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/rating-group/item.vue.d.ts
|
|
59
|
+
interface RatingGroupItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
60
|
+
interface RatingGroupItemProps extends RatingGroupItemBaseProps,
|
|
61
|
+
/**
|
|
62
|
+
* @vue-ignore
|
|
63
|
+
*/
|
|
64
|
+
HTMLAttributes {}
|
|
65
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
66
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<RatingGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
67
|
+
default?: (props: {}) => any;
|
|
68
|
+
}>;
|
|
69
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/rating-group/label.vue.d.ts
|
|
76
|
+
interface RatingGroupLabelBaseProps extends PolymorphicProps {}
|
|
77
|
+
interface RatingGroupLabelProps extends RatingGroupLabelBaseProps,
|
|
78
|
+
/**
|
|
79
|
+
* @vue-ignore
|
|
80
|
+
*/
|
|
81
|
+
LabelHTMLAttributes {}
|
|
82
|
+
declare const _default$5: typeof __VLS_export$3;
|
|
83
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<RatingGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
84
|
+
default?: (props: {}) => any;
|
|
85
|
+
}>;
|
|
86
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/rating-group/root-provider.vue.d.ts
|
|
93
|
+
interface RootProviderProps {
|
|
94
|
+
value: UnwrapRef<UseRatingGroupReturn>;
|
|
95
|
+
}
|
|
96
|
+
interface RatingGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
97
|
+
interface RatingGroupRootProviderProps extends RatingGroupRootProviderBaseProps,
|
|
98
|
+
/**
|
|
99
|
+
* @vue-ignore
|
|
100
|
+
*/
|
|
101
|
+
HTMLAttributes {}
|
|
102
|
+
declare const _default$7: typeof __VLS_export$2;
|
|
103
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<RatingGroupRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
}>;
|
|
106
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/rating-group/types.d.ts
|
|
113
|
+
interface RootProps {
|
|
114
|
+
allowHalf?: boolean;
|
|
115
|
+
autoFocus?: boolean;
|
|
116
|
+
count?: number;
|
|
117
|
+
defaultValue?: number;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
form?: string;
|
|
120
|
+
id?: string;
|
|
121
|
+
ids?: Partial<{
|
|
122
|
+
root: string;
|
|
123
|
+
label: string;
|
|
124
|
+
hiddenInput: string;
|
|
125
|
+
control: string;
|
|
126
|
+
item(id: string): string;
|
|
127
|
+
}>;
|
|
128
|
+
modelValue?: number;
|
|
129
|
+
name?: string;
|
|
130
|
+
readOnly?: boolean;
|
|
131
|
+
required?: boolean;
|
|
132
|
+
translations?: ratingGroup.IntlTranslations;
|
|
133
|
+
}
|
|
134
|
+
type RootEmits = {
|
|
135
|
+
hoverChange: [details: ratingGroup.HoverChangeDetails];
|
|
136
|
+
valueChange: [details: ratingGroup.ValueChangeDetails];
|
|
137
|
+
"update:modelValue": [value: number];
|
|
138
|
+
};
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/components/rating-group/root.vue.d.ts
|
|
141
|
+
interface RatingGroupRootBaseProps extends RootProps, PolymorphicProps {}
|
|
142
|
+
interface RatingGroupRootProps extends RatingGroupRootBaseProps,
|
|
143
|
+
/**
|
|
144
|
+
* @vue-ignore
|
|
145
|
+
*/
|
|
146
|
+
HTMLAttributes {}
|
|
147
|
+
interface RatingGroupRootEmits extends RootEmits {}
|
|
148
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
149
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<RatingGroupRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
150
|
+
valueChange: (details: import("@wirekyt/dom/machines/rating-group").ValueChangeDetails) => any;
|
|
151
|
+
"update:modelValue": (value: number) => any;
|
|
152
|
+
hoverChange: (details: import("@wirekyt/dom/machines/rating-group").HoverChangeDetails) => any;
|
|
153
|
+
}, string, import("vue").PublicProps, Readonly<RatingGroupRootProps> & Readonly<{
|
|
154
|
+
onValueChange?: ((details: import("@wirekyt/dom/machines/rating-group").ValueChangeDetails) => any) | undefined;
|
|
155
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
156
|
+
onHoverChange?: ((details: import("@wirekyt/dom/machines/rating-group").HoverChangeDetails) => any) | undefined;
|
|
157
|
+
}>, {
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
required: boolean;
|
|
160
|
+
readOnly: boolean;
|
|
161
|
+
autoFocus: boolean;
|
|
162
|
+
allowHalf: boolean;
|
|
163
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
164
|
+
default?: (props: {}) => any;
|
|
165
|
+
}>;
|
|
166
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
167
|
+
new (): {
|
|
168
|
+
$slots: S;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
declare namespace rating_group_d_exports {
|
|
172
|
+
export { _default as Context, RatingGroupContextProps as ContextProps, _default$1 as Control, RatingGroupControlBaseProps as ControlBaseProps, RatingGroupControlProps as ControlProps, _default$2 as HiddenInput, RatingGroupHiddenInputBaseProps as HiddenInputBaseProps, RatingGroupHiddenInputProps as HiddenInputProps, HoverChangeDetails, _default$3 as Item, RatingGroupItemBaseProps as ItemBaseProps, _default$4 as ItemContext, RatingGroupItemContextProps as ItemContextProps, RatingGroupItemProps as ItemProps, _default$5 as Label, RatingGroupLabelBaseProps as LabelBaseProps, RatingGroupLabelProps as LabelProps, _default$6 as Root, RatingGroupRootBaseProps as RootBaseProps, RatingGroupRootEmits as RootEmits, RatingGroupRootProps as RootProps, _default$7 as RootProvider, RatingGroupRootProviderBaseProps as RootProviderBaseProps, RatingGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/components/rating-group/use-rating-group.d.ts
|
|
176
|
+
interface UseRatingGroupProps extends Optional<Omit<ratingGroup.Props, "dir" | "getRootNode">, "id"> {
|
|
177
|
+
modelValue?: ratingGroup.Props["value"];
|
|
178
|
+
}
|
|
179
|
+
interface UseRatingGroupReturn extends ComputedRef<ratingGroup.Api<PropTypes>> {}
|
|
180
|
+
declare const useRatingGroup: (props?: MaybeRef<UseRatingGroupProps>, emit?: EmitFn$1<RatingGroupRootEmits>) => UseRatingGroupReturn;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/rating-group/use-context.d.ts
|
|
183
|
+
interface UseRatingGroupContext extends UseRatingGroupReturn {}
|
|
184
|
+
declare const RatingGroupProvider: (opts: UseRatingGroupContext) => void, useRatingGroupContext: (fallback?: UseRatingGroupContext | undefined) => UseRatingGroupContext;
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/rating-group/context.vue.d.ts
|
|
187
|
+
interface RatingGroupContextProps extends SlotsType<{
|
|
188
|
+
default: UnwrapRef<UseRatingGroupContext>;
|
|
189
|
+
}> {}
|
|
190
|
+
declare const _default: typeof __VLS_export;
|
|
191
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
192
|
+
default(ratingGroup: UnwrapRef<UseRatingGroupContext>): unknown;
|
|
193
|
+
}>;
|
|
194
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
195
|
+
new (): {
|
|
196
|
+
$slots: S;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
//#endregion
|
|
200
|
+
export { rating_group_d_exports as RatingGroup, _default as RatingGroupContext, type RatingGroupContextProps, _default$1 as RatingGroupControl, type RatingGroupControlBaseProps, type RatingGroupControlProps, _default$2 as RatingGroupHiddenInput, type RatingGroupHiddenInputBaseProps, type RatingGroupHiddenInputProps, type RatingGroupHoverChangeDetails, _default$3 as RatingGroupItem, type RatingGroupItemBaseProps, _default$4 as RatingGroupItemContext, type RatingGroupItemContextProps, type RatingGroupItemProps, _default$5 as RatingGroupLabel, type RatingGroupLabelBaseProps, type RatingGroupLabelProps, _default$6 as RatingGroupRoot, type RatingGroupRootBaseProps, type RatingGroupRootEmits, type RatingGroupRootProps, _default$7 as RatingGroupRootProvider, type RatingGroupRootProviderBaseProps, type RatingGroupRootProviderProps, type RatingGroupValueChangeDetails, type UseRatingGroupContext, type UseRatingGroupItemContext, type UseRatingGroupProps, type UseRatingGroupReturn, ratingGroupAnatomy, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as ratingGroup from "@wirekyt/dom/machines/rating-group";
|
|
5
|
+
import { HoverChangeDetails, HoverChangeDetails as RatingGroupHoverChangeDetails, ItemProps, ItemState, ValueChangeDetails, ValueChangeDetails as RatingGroupValueChangeDetails, anatomy as ratingGroupAnatomy } from "@wirekyt/dom/machines/rating-group";
|
|
6
|
+
//#region src/components/rating-group/control.vue.d.ts
|
|
7
|
+
interface RatingGroupControlBaseProps extends PolymorphicProps {}
|
|
8
|
+
interface RatingGroupControlProps extends RatingGroupControlBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
HTMLAttributes {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$7;
|
|
14
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<RatingGroupControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/rating-group/hidden-input.vue.d.ts
|
|
24
|
+
interface RatingGroupHiddenInputBaseProps extends PolymorphicProps {}
|
|
25
|
+
interface RatingGroupHiddenInputProps extends RatingGroupHiddenInputBaseProps,
|
|
26
|
+
/**
|
|
27
|
+
* @vue-ignore
|
|
28
|
+
*/
|
|
29
|
+
InputHTMLAttributes {}
|
|
30
|
+
declare const _default$2: typeof __VLS_export$6;
|
|
31
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<RatingGroupHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupHiddenInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
default?: (props: {}) => any;
|
|
33
|
+
}>;
|
|
34
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/rating-group/use-item-context.d.ts
|
|
41
|
+
interface UseRatingGroupItemContext extends ComputedRef<ItemState> {}
|
|
42
|
+
declare const RatingGroupItemProvider: (opts: UseRatingGroupItemContext) => void, useRatingGroupItemContext: (fallback?: UseRatingGroupItemContext | undefined) => UseRatingGroupItemContext;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/rating-group/item-context.vue.d.ts
|
|
45
|
+
interface RatingGroupItemContextProps extends SlotsType<{
|
|
46
|
+
default: UnwrapRef<UseRatingGroupItemContext>;
|
|
47
|
+
}> {}
|
|
48
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
49
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
50
|
+
default(item: UnwrapRef<UseRatingGroupItemContext>): unknown;
|
|
51
|
+
}>;
|
|
52
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/rating-group/item.vue.d.ts
|
|
59
|
+
interface RatingGroupItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
60
|
+
interface RatingGroupItemProps extends RatingGroupItemBaseProps,
|
|
61
|
+
/**
|
|
62
|
+
* @vue-ignore
|
|
63
|
+
*/
|
|
64
|
+
HTMLAttributes {}
|
|
65
|
+
declare const _default$3: typeof __VLS_export$4;
|
|
66
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<RatingGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
67
|
+
default?: (props: {}) => any;
|
|
68
|
+
}>;
|
|
69
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/rating-group/label.vue.d.ts
|
|
76
|
+
interface RatingGroupLabelBaseProps extends PolymorphicProps {}
|
|
77
|
+
interface RatingGroupLabelProps extends RatingGroupLabelBaseProps,
|
|
78
|
+
/**
|
|
79
|
+
* @vue-ignore
|
|
80
|
+
*/
|
|
81
|
+
LabelHTMLAttributes {}
|
|
82
|
+
declare const _default$5: typeof __VLS_export$3;
|
|
83
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<RatingGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
84
|
+
default?: (props: {}) => any;
|
|
85
|
+
}>;
|
|
86
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/rating-group/root-provider.vue.d.ts
|
|
93
|
+
interface RootProviderProps {
|
|
94
|
+
value: UnwrapRef<UseRatingGroupReturn>;
|
|
95
|
+
}
|
|
96
|
+
interface RatingGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
97
|
+
interface RatingGroupRootProviderProps extends RatingGroupRootProviderBaseProps,
|
|
98
|
+
/**
|
|
99
|
+
* @vue-ignore
|
|
100
|
+
*/
|
|
101
|
+
HTMLAttributes {}
|
|
102
|
+
declare const _default$7: typeof __VLS_export$2;
|
|
103
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<RatingGroupRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingGroupRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
}>;
|
|
106
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/rating-group/types.d.ts
|
|
113
|
+
interface RootProps {
|
|
114
|
+
allowHalf?: boolean;
|
|
115
|
+
autoFocus?: boolean;
|
|
116
|
+
count?: number;
|
|
117
|
+
defaultValue?: number;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
form?: string;
|
|
120
|
+
id?: string;
|
|
121
|
+
ids?: Partial<{
|
|
122
|
+
root: string;
|
|
123
|
+
label: string;
|
|
124
|
+
hiddenInput: string;
|
|
125
|
+
control: string;
|
|
126
|
+
item(id: string): string;
|
|
127
|
+
}>;
|
|
128
|
+
modelValue?: number;
|
|
129
|
+
name?: string;
|
|
130
|
+
readOnly?: boolean;
|
|
131
|
+
required?: boolean;
|
|
132
|
+
translations?: ratingGroup.IntlTranslations;
|
|
133
|
+
}
|
|
134
|
+
type RootEmits = {
|
|
135
|
+
hoverChange: [details: ratingGroup.HoverChangeDetails];
|
|
136
|
+
valueChange: [details: ratingGroup.ValueChangeDetails];
|
|
137
|
+
"update:modelValue": [value: number];
|
|
138
|
+
};
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/components/rating-group/root.vue.d.ts
|
|
141
|
+
interface RatingGroupRootBaseProps extends RootProps, PolymorphicProps {}
|
|
142
|
+
interface RatingGroupRootProps extends RatingGroupRootBaseProps,
|
|
143
|
+
/**
|
|
144
|
+
* @vue-ignore
|
|
145
|
+
*/
|
|
146
|
+
HTMLAttributes {}
|
|
147
|
+
interface RatingGroupRootEmits extends RootEmits {}
|
|
148
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
149
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<RatingGroupRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
150
|
+
valueChange: (details: import("@wirekyt/dom/machines/rating-group").ValueChangeDetails) => any;
|
|
151
|
+
"update:modelValue": (value: number) => any;
|
|
152
|
+
hoverChange: (details: import("@wirekyt/dom/machines/rating-group").HoverChangeDetails) => any;
|
|
153
|
+
}, string, import("vue").PublicProps, Readonly<RatingGroupRootProps> & Readonly<{
|
|
154
|
+
onValueChange?: ((details: import("@wirekyt/dom/machines/rating-group").ValueChangeDetails) => any) | undefined;
|
|
155
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
156
|
+
onHoverChange?: ((details: import("@wirekyt/dom/machines/rating-group").HoverChangeDetails) => any) | undefined;
|
|
157
|
+
}>, {
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
required: boolean;
|
|
160
|
+
readOnly: boolean;
|
|
161
|
+
autoFocus: boolean;
|
|
162
|
+
allowHalf: boolean;
|
|
163
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
164
|
+
default?: (props: {}) => any;
|
|
165
|
+
}>;
|
|
166
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
167
|
+
new (): {
|
|
168
|
+
$slots: S;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
declare namespace rating_group_d_exports {
|
|
172
|
+
export { _default as Context, RatingGroupContextProps as ContextProps, _default$1 as Control, RatingGroupControlBaseProps as ControlBaseProps, RatingGroupControlProps as ControlProps, _default$2 as HiddenInput, RatingGroupHiddenInputBaseProps as HiddenInputBaseProps, RatingGroupHiddenInputProps as HiddenInputProps, HoverChangeDetails, _default$3 as Item, RatingGroupItemBaseProps as ItemBaseProps, _default$4 as ItemContext, RatingGroupItemContextProps as ItemContextProps, RatingGroupItemProps as ItemProps, _default$5 as Label, RatingGroupLabelBaseProps as LabelBaseProps, RatingGroupLabelProps as LabelProps, _default$6 as Root, RatingGroupRootBaseProps as RootBaseProps, RatingGroupRootEmits as RootEmits, RatingGroupRootProps as RootProps, _default$7 as RootProvider, RatingGroupRootProviderBaseProps as RootProviderBaseProps, RatingGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/components/rating-group/use-rating-group.d.ts
|
|
176
|
+
interface UseRatingGroupProps extends Optional<Omit<ratingGroup.Props, "dir" | "getRootNode">, "id"> {
|
|
177
|
+
modelValue?: ratingGroup.Props["value"];
|
|
178
|
+
}
|
|
179
|
+
interface UseRatingGroupReturn extends ComputedRef<ratingGroup.Api<PropTypes>> {}
|
|
180
|
+
declare const useRatingGroup: (props?: MaybeRef<UseRatingGroupProps>, emit?: EmitFn$1<RatingGroupRootEmits>) => UseRatingGroupReturn;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/rating-group/use-context.d.ts
|
|
183
|
+
interface UseRatingGroupContext extends UseRatingGroupReturn {}
|
|
184
|
+
declare const RatingGroupProvider: (opts: UseRatingGroupContext) => void, useRatingGroupContext: (fallback?: UseRatingGroupContext | undefined) => UseRatingGroupContext;
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/rating-group/context.vue.d.ts
|
|
187
|
+
interface RatingGroupContextProps extends SlotsType<{
|
|
188
|
+
default: UnwrapRef<UseRatingGroupContext>;
|
|
189
|
+
}> {}
|
|
190
|
+
declare const _default: typeof __VLS_export;
|
|
191
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
192
|
+
default(ratingGroup: UnwrapRef<UseRatingGroupContext>): unknown;
|
|
193
|
+
}>;
|
|
194
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
195
|
+
new (): {
|
|
196
|
+
$slots: S;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
//#endregion
|
|
200
|
+
export { rating_group_d_exports as RatingGroup, _default as RatingGroupContext, type RatingGroupContextProps, _default$1 as RatingGroupControl, type RatingGroupControlBaseProps, type RatingGroupControlProps, _default$2 as RatingGroupHiddenInput, type RatingGroupHiddenInputBaseProps, type RatingGroupHiddenInputProps, type RatingGroupHoverChangeDetails, _default$3 as RatingGroupItem, type RatingGroupItemBaseProps, _default$4 as RatingGroupItemContext, type RatingGroupItemContextProps, type RatingGroupItemProps, _default$5 as RatingGroupLabel, type RatingGroupLabelBaseProps, type RatingGroupLabelProps, _default$6 as RatingGroupRoot, type RatingGroupRootBaseProps, type RatingGroupRootEmits, type RatingGroupRootProps, _default$7 as RatingGroupRootProvider, type RatingGroupRootProviderBaseProps, type RatingGroupRootProviderProps, type RatingGroupValueChangeDetails, type UseRatingGroupContext, type UseRatingGroupItemContext, type UseRatingGroupProps, type UseRatingGroupReturn, ratingGroupAnatomy, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|