@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
package/dist/toast.js
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
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 { n as wire } from "./factory-8Ao0DEy3.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, unref, useId, withCtx } from "vue";
|
|
6
|
+
import * as toast from "@wirekyt/dom/machines/toast";
|
|
7
|
+
import { anatomy as toastAnatomy } from "@wirekyt/dom/machines/toast";
|
|
8
|
+
//#region src/components/toast/create-toaster.ts
|
|
9
|
+
const createToaster = (props) => {
|
|
10
|
+
return toast.createStore(props);
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/use-context.ts
|
|
14
|
+
const [ToastProvider, useToastContext] = createContext("ToastContext");
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/toast/action-trigger.vue
|
|
17
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
18
|
+
__name: "action-trigger",
|
|
19
|
+
props: { asChild: { type: Boolean } },
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const toast = useToastContext();
|
|
22
|
+
useForwardExpose();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(wire).button, mergeProps(unref(toast).getActionTriggerProps(), { "as-child": __props.asChild }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["as-child"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/toast/close-trigger.vue
|
|
33
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
34
|
+
__name: "close-trigger",
|
|
35
|
+
props: { asChild: { type: Boolean } },
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const toast = useToastContext();
|
|
38
|
+
useForwardExpose();
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createBlock(unref(wire).button, mergeProps(unref(toast).getCloseTriggerProps(), { "as-child": __props.asChild }), {
|
|
41
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16, ["as-child"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/toast/context.vue
|
|
49
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
50
|
+
__name: "context",
|
|
51
|
+
setup(__props) {
|
|
52
|
+
const toast = useToastContext();
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(toast))));
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/toast/description.vue
|
|
60
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
61
|
+
__name: "description",
|
|
62
|
+
props: { asChild: { type: Boolean } },
|
|
63
|
+
setup(__props) {
|
|
64
|
+
const toast = useToastContext();
|
|
65
|
+
useForwardExpose();
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(toast).getDescriptionProps(), { "as-child": __props.asChild }), {
|
|
68
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 16, ["as-child"]);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/toast/root.vue
|
|
76
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
77
|
+
__name: "root",
|
|
78
|
+
props: { asChild: { type: Boolean } },
|
|
79
|
+
setup(__props) {
|
|
80
|
+
const toast = useToastContext();
|
|
81
|
+
useForwardExpose();
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(toast).getRootProps(), { "as-child": __props.asChild }), {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(toast).getGhostBeforeProps())), null, 16),
|
|
86
|
+
renderSlot(_ctx.$slots, "default"),
|
|
87
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(toast).getGhostAfterProps())), null, 16)
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16, ["as-child"]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/toast/title.vue
|
|
96
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
97
|
+
__name: "title",
|
|
98
|
+
props: { asChild: { type: Boolean } },
|
|
99
|
+
setup(__props) {
|
|
100
|
+
const toast = useToastContext();
|
|
101
|
+
useForwardExpose();
|
|
102
|
+
return (_ctx, _cache) => {
|
|
103
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(toast).getTitleProps(), { "as-child": __props.asChild }), {
|
|
104
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
105
|
+
_: 3
|
|
106
|
+
}, 16, ["as-child"]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/toast/toaster-item.vue
|
|
112
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
113
|
+
__name: "toaster-item",
|
|
114
|
+
props: {
|
|
115
|
+
value: {},
|
|
116
|
+
index: {},
|
|
117
|
+
parent: {}
|
|
118
|
+
},
|
|
119
|
+
setup(__props) {
|
|
120
|
+
const props = __props;
|
|
121
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
122
|
+
const machineProps = computed(() => ({
|
|
123
|
+
...props.value,
|
|
124
|
+
index: props.index,
|
|
125
|
+
parent: props.parent,
|
|
126
|
+
getRootNode: env?.value.getRootNode
|
|
127
|
+
}));
|
|
128
|
+
const service = useMachine(toast.machine, machineProps);
|
|
129
|
+
ToastProvider(computed(() => toast.connect(service, normalizeProps$1)));
|
|
130
|
+
useForwardExpose();
|
|
131
|
+
return (_ctx, _cache) => {
|
|
132
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(props.value)));
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/toast/toaster.vue
|
|
138
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
139
|
+
__name: "toaster",
|
|
140
|
+
props: {
|
|
141
|
+
toaster: {},
|
|
142
|
+
asChild: { type: Boolean }
|
|
143
|
+
},
|
|
144
|
+
setup(__props) {
|
|
145
|
+
const props = __props;
|
|
146
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
147
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
148
|
+
const service = useMachine(toast.group.machine, {
|
|
149
|
+
store: props.toaster,
|
|
150
|
+
id: useId(),
|
|
151
|
+
dir: locale?.value.dir,
|
|
152
|
+
getRootNode: env?.value.getRootNode
|
|
153
|
+
});
|
|
154
|
+
const api = computed(() => toast.group.connect(service, normalizeProps$1));
|
|
155
|
+
useForwardExpose();
|
|
156
|
+
return (_ctx, _cache) => {
|
|
157
|
+
return openBlock(), createBlock(unref(wire).div, normalizeProps(guardReactiveProps(api.value.getGroupProps())), {
|
|
158
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(api.value.getToasts(), (toastItem, index) => {
|
|
159
|
+
return openBlock(), createBlock(_sfc_main$7, {
|
|
160
|
+
key: toastItem.id,
|
|
161
|
+
value: toastItem,
|
|
162
|
+
parent: unref(service),
|
|
163
|
+
index
|
|
164
|
+
}, {
|
|
165
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, slotProps))]),
|
|
166
|
+
_: 3
|
|
167
|
+
}, 8, [
|
|
168
|
+
"value",
|
|
169
|
+
"parent",
|
|
170
|
+
"index"
|
|
171
|
+
]);
|
|
172
|
+
}), 128))]),
|
|
173
|
+
_: 3
|
|
174
|
+
}, 16);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/components/toast/toast.ts
|
|
180
|
+
var toast_exports = /* @__PURE__ */ __exportAll({
|
|
181
|
+
ActionTrigger: () => _sfc_main,
|
|
182
|
+
CloseTrigger: () => _sfc_main$1,
|
|
183
|
+
Context: () => _sfc_main$2,
|
|
184
|
+
Description: () => _sfc_main$3,
|
|
185
|
+
Root: () => _sfc_main$4,
|
|
186
|
+
Title: () => _sfc_main$5
|
|
187
|
+
});
|
|
188
|
+
//#endregion
|
|
189
|
+
export { toast_exports as Toast, _sfc_main as ToastActionTrigger, _sfc_main$1 as ToastCloseTrigger, _sfc_main$2 as ToastContext, _sfc_main$3 as ToastDescription, _sfc_main$4 as ToastRoot, _sfc_main$5 as ToastTitle, _sfc_main$6 as Toaster, createToaster, toastAnatomy, useToastContext };
|
|
@@ -0,0 +1,150 @@
|
|
|
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_toggle_group = require("@wirekyt/dom/machines/toggle-group");
|
|
9
|
+
_wirekyt_dom_machines_toggle_group = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_toggle_group, 1);
|
|
10
|
+
//#region src/components/toggle-group/use-context.ts
|
|
11
|
+
const [ToggleGroupProvider, useToggleGroupContext] = require_utils.createContext("ToggleGroupContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toggle-group/context.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const toggleGroup = useToggleGroupContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(toggleGroup))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/toggle-group/item.vue
|
|
25
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
26
|
+
__name: "item",
|
|
27
|
+
props: {
|
|
28
|
+
value: {},
|
|
29
|
+
disabled: { type: Boolean },
|
|
30
|
+
asChild: { type: Boolean }
|
|
31
|
+
},
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const toggleGroup = useToggleGroupContext();
|
|
35
|
+
require_utils.useForwardExpose();
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(toggleGroup).getItemProps(props), { "as-child": __props.asChild }), {
|
|
38
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 16, ["as-child"]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/toggle-group/root-provider.vue
|
|
46
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
47
|
+
__name: "root-provider",
|
|
48
|
+
props: {
|
|
49
|
+
value: {},
|
|
50
|
+
asChild: { type: Boolean }
|
|
51
|
+
},
|
|
52
|
+
setup(__props) {
|
|
53
|
+
const props = __props;
|
|
54
|
+
const toggleGroup = (0, vue.computed)(() => props.value);
|
|
55
|
+
ToggleGroupProvider(toggleGroup);
|
|
56
|
+
require_utils.useForwardExpose();
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(toggleGroup.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
59
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["as-child"]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/toggle-group/use-toggle-group.ts
|
|
67
|
+
const useToggleGroup = (props = {}, emit) => {
|
|
68
|
+
const id = (0, vue.useId)();
|
|
69
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
70
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
71
|
+
const context = (0, vue.computed)(() => {
|
|
72
|
+
const localProps = (0, vue.toValue)(props);
|
|
73
|
+
return {
|
|
74
|
+
id,
|
|
75
|
+
dir: locale.value.dir,
|
|
76
|
+
value: localProps.modelValue,
|
|
77
|
+
getRootNode: env?.value.getRootNode,
|
|
78
|
+
...require_clean_props.cleanProps(localProps),
|
|
79
|
+
onValueChange: (details) => {
|
|
80
|
+
emit?.("valueChange", details);
|
|
81
|
+
emit?.("update:modelValue", details.value);
|
|
82
|
+
localProps.onValueChange?.(details);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_toggle_group.machine, context);
|
|
87
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_toggle_group.connect(service, require_utils.normalizeProps));
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/toggle-group/root.vue
|
|
91
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
92
|
+
__name: "root",
|
|
93
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
94
|
+
defaultValue: {},
|
|
95
|
+
deselectable: { type: Boolean },
|
|
96
|
+
disabled: { type: Boolean },
|
|
97
|
+
id: {},
|
|
98
|
+
ids: {},
|
|
99
|
+
loopFocus: { type: Boolean },
|
|
100
|
+
modelValue: {},
|
|
101
|
+
multiple: { type: Boolean },
|
|
102
|
+
orientation: {},
|
|
103
|
+
rovingFocus: { type: Boolean },
|
|
104
|
+
asChild: { type: Boolean }
|
|
105
|
+
}, {
|
|
106
|
+
disabled: void 0,
|
|
107
|
+
deselectable: void 0,
|
|
108
|
+
loopFocus: void 0,
|
|
109
|
+
multiple: void 0,
|
|
110
|
+
rovingFocus: void 0
|
|
111
|
+
}),
|
|
112
|
+
emits: ["valueChange", "update:modelValue"],
|
|
113
|
+
setup(__props, { emit: __emit }) {
|
|
114
|
+
const toggleGroup = useToggleGroup(__props, __emit);
|
|
115
|
+
ToggleGroupProvider(toggleGroup);
|
|
116
|
+
return (_ctx, _cache) => {
|
|
117
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(toggleGroup).getRootProps(), { "as-child": __props.asChild }), {
|
|
118
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 16, ["as-child"]);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/toggle-group/toggle-group.ts
|
|
126
|
+
var toggle_group_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
127
|
+
Context: () => _sfc_main,
|
|
128
|
+
Item: () => _sfc_main$1,
|
|
129
|
+
Root: () => _sfc_main$2,
|
|
130
|
+
RootProvider: () => _sfc_main$3
|
|
131
|
+
});
|
|
132
|
+
//#endregion
|
|
133
|
+
Object.defineProperty(exports, "ToggleGroup", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function() {
|
|
136
|
+
return toggle_group_exports;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
exports.ToggleGroupContext = _sfc_main;
|
|
140
|
+
exports.ToggleGroupItem = _sfc_main$1;
|
|
141
|
+
exports.ToggleGroupRoot = _sfc_main$2;
|
|
142
|
+
exports.ToggleGroupRootProvider = _sfc_main$3;
|
|
143
|
+
Object.defineProperty(exports, "toggleGroupAnatomy", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return _wirekyt_dom_machines_toggle_group.anatomy;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
exports.useToggleGroup = useToggleGroup;
|
|
150
|
+
exports.useToggleGroupContext = useToggleGroupContext;
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as toggleGroup from "@wirekyt/dom/machines/toggle-group";
|
|
5
|
+
import { ItemProps, ValueChangeDetails, ValueChangeDetails as ToggleGroupValueChangeDetails, anatomy as toggleGroupAnatomy } from "@wirekyt/dom/machines/toggle-group";
|
|
6
|
+
//#region src/components/toggle-group/item.vue.d.ts
|
|
7
|
+
interface ToggleGroupItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
8
|
+
interface ToggleGroupItemProps extends ToggleGroupItemBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
Omit<ButtonHTMLAttributes, "disabled" | "value"> {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$3;
|
|
14
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ToggleGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/toggle-group/root-provider.vue.d.ts
|
|
24
|
+
interface RootProviderProps {
|
|
25
|
+
value: UnwrapRef<UseToggleGroupReturn>;
|
|
26
|
+
}
|
|
27
|
+
interface ToggleGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
28
|
+
interface ToggleGroupRootProviderProps extends ToggleGroupRootProviderBaseProps,
|
|
29
|
+
/**
|
|
30
|
+
* @vue-ignore
|
|
31
|
+
*/
|
|
32
|
+
HTMLAttributes {}
|
|
33
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
34
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ToggleGroupRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToggleGroupRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/toggle-group/types.d.ts
|
|
44
|
+
interface RootProps {
|
|
45
|
+
defaultValue?: string[];
|
|
46
|
+
deselectable?: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
id?: string;
|
|
49
|
+
ids?: Partial<{
|
|
50
|
+
root: string;
|
|
51
|
+
item(value: string): string;
|
|
52
|
+
}>;
|
|
53
|
+
loopFocus?: boolean;
|
|
54
|
+
modelValue?: string[];
|
|
55
|
+
multiple?: boolean;
|
|
56
|
+
orientation?: toggleGroup.Orientation;
|
|
57
|
+
rovingFocus?: boolean;
|
|
58
|
+
}
|
|
59
|
+
type RootEmits = {
|
|
60
|
+
valueChange: [details: toggleGroup.ValueChangeDetails];
|
|
61
|
+
"update:modelValue": [value: string[]];
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/toggle-group/root.vue.d.ts
|
|
65
|
+
interface ToggleGroupRootBaseProps extends RootProps, PolymorphicProps {}
|
|
66
|
+
interface ToggleGroupRootProps extends ToggleGroupRootBaseProps,
|
|
67
|
+
/**
|
|
68
|
+
* @vue-ignore
|
|
69
|
+
*/
|
|
70
|
+
HTMLAttributes {}
|
|
71
|
+
interface ToggleGroupRootEmits extends RootEmits {}
|
|
72
|
+
declare const _default$2: typeof __VLS_export$1;
|
|
73
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ToggleGroupRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
valueChange: (details: import("@wirekyt/dom/machines/toggle-group").ValueChangeDetails) => any;
|
|
75
|
+
"update:modelValue": (value: string[]) => any;
|
|
76
|
+
}, string, import("vue").PublicProps, Readonly<ToggleGroupRootProps> & Readonly<{
|
|
77
|
+
onValueChange?: ((details: import("@wirekyt/dom/machines/toggle-group").ValueChangeDetails) => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
multiple: boolean;
|
|
82
|
+
loopFocus: boolean;
|
|
83
|
+
rovingFocus: boolean;
|
|
84
|
+
deselectable: boolean;
|
|
85
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
86
|
+
default?: (props: {}) => any;
|
|
87
|
+
}>;
|
|
88
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
declare namespace toggle_group_d_exports {
|
|
94
|
+
export { _default as Context, ToggleGroupContextProps as ContextProps, _default$1 as Item, ToggleGroupItemBaseProps as ItemBaseProps, ToggleGroupItemProps as ItemProps, _default$2 as Root, ToggleGroupRootBaseProps as RootBaseProps, ToggleGroupRootEmits as RootEmits, ToggleGroupRootProps as RootProps, _default$3 as RootProvider, ToggleGroupRootProviderBaseProps as RootProviderBaseProps, ToggleGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/toggle-group/use-toggle-group.d.ts
|
|
98
|
+
interface UseToggleGroupProps extends Optional<Omit<toggleGroup.Props, "dir" | "getRootNode">, "id"> {
|
|
99
|
+
modelValue?: toggleGroup.Props["value"];
|
|
100
|
+
}
|
|
101
|
+
interface UseToggleGroupReturn extends ComputedRef<toggleGroup.Api<PropTypes>> {}
|
|
102
|
+
declare const useToggleGroup: (props?: MaybeRef<UseToggleGroupProps>, emit?: EmitFn$1<ToggleGroupRootEmits>) => UseToggleGroupReturn;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/toggle-group/use-context.d.ts
|
|
105
|
+
interface UseToggleGroupContext extends UseToggleGroupReturn {}
|
|
106
|
+
declare const ToggleGroupProvider: (opts: UseToggleGroupContext) => void, useToggleGroupContext: (fallback?: UseToggleGroupContext | undefined) => UseToggleGroupContext;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/toggle-group/context.vue.d.ts
|
|
109
|
+
interface ToggleGroupContextProps extends SlotsType<{
|
|
110
|
+
default: UnwrapRef<UseToggleGroupContext>;
|
|
111
|
+
}> {}
|
|
112
|
+
declare const _default: typeof __VLS_export;
|
|
113
|
+
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>, {
|
|
114
|
+
default(toggleGroup: UnwrapRef<UseToggleGroupContext>): unknown;
|
|
115
|
+
}>;
|
|
116
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
export { toggle_group_d_exports as ToggleGroup, _default as ToggleGroupContext, type ToggleGroupContextProps, _default$1 as ToggleGroupItem, type ToggleGroupItemBaseProps, type ToggleGroupItemProps, _default$2 as ToggleGroupRoot, type ToggleGroupRootBaseProps, type ToggleGroupRootEmits, type ToggleGroupRootProps, _default$3 as ToggleGroupRootProvider, type ToggleGroupRootProviderBaseProps, type ToggleGroupRootProviderProps, type ToggleGroupValueChangeDetails, type UseToggleGroupContext, type UseToggleGroupProps, type UseToggleGroupReturn, toggleGroupAnatomy, useToggleGroup, useToggleGroupContext };
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as toggleGroup from "@wirekyt/dom/machines/toggle-group";
|
|
5
|
+
import { ItemProps, ValueChangeDetails, ValueChangeDetails as ToggleGroupValueChangeDetails, anatomy as toggleGroupAnatomy } from "@wirekyt/dom/machines/toggle-group";
|
|
6
|
+
//#region src/components/toggle-group/item.vue.d.ts
|
|
7
|
+
interface ToggleGroupItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
8
|
+
interface ToggleGroupItemProps extends ToggleGroupItemBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
Omit<ButtonHTMLAttributes, "disabled" | "value"> {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$3;
|
|
14
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ToggleGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/toggle-group/root-provider.vue.d.ts
|
|
24
|
+
interface RootProviderProps {
|
|
25
|
+
value: UnwrapRef<UseToggleGroupReturn>;
|
|
26
|
+
}
|
|
27
|
+
interface ToggleGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
28
|
+
interface ToggleGroupRootProviderProps extends ToggleGroupRootProviderBaseProps,
|
|
29
|
+
/**
|
|
30
|
+
* @vue-ignore
|
|
31
|
+
*/
|
|
32
|
+
HTMLAttributes {}
|
|
33
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
34
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ToggleGroupRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToggleGroupRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/toggle-group/types.d.ts
|
|
44
|
+
interface RootProps {
|
|
45
|
+
defaultValue?: string[];
|
|
46
|
+
deselectable?: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
id?: string;
|
|
49
|
+
ids?: Partial<{
|
|
50
|
+
root: string;
|
|
51
|
+
item(value: string): string;
|
|
52
|
+
}>;
|
|
53
|
+
loopFocus?: boolean;
|
|
54
|
+
modelValue?: string[];
|
|
55
|
+
multiple?: boolean;
|
|
56
|
+
orientation?: toggleGroup.Orientation;
|
|
57
|
+
rovingFocus?: boolean;
|
|
58
|
+
}
|
|
59
|
+
type RootEmits = {
|
|
60
|
+
valueChange: [details: toggleGroup.ValueChangeDetails];
|
|
61
|
+
"update:modelValue": [value: string[]];
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/toggle-group/root.vue.d.ts
|
|
65
|
+
interface ToggleGroupRootBaseProps extends RootProps, PolymorphicProps {}
|
|
66
|
+
interface ToggleGroupRootProps extends ToggleGroupRootBaseProps,
|
|
67
|
+
/**
|
|
68
|
+
* @vue-ignore
|
|
69
|
+
*/
|
|
70
|
+
HTMLAttributes {}
|
|
71
|
+
interface ToggleGroupRootEmits extends RootEmits {}
|
|
72
|
+
declare const _default$2: typeof __VLS_export$1;
|
|
73
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ToggleGroupRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
valueChange: (details: import("@wirekyt/dom/machines/toggle-group").ValueChangeDetails) => any;
|
|
75
|
+
"update:modelValue": (value: string[]) => any;
|
|
76
|
+
}, string, import("vue").PublicProps, Readonly<ToggleGroupRootProps> & Readonly<{
|
|
77
|
+
onValueChange?: ((details: import("@wirekyt/dom/machines/toggle-group").ValueChangeDetails) => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
multiple: boolean;
|
|
82
|
+
loopFocus: boolean;
|
|
83
|
+
rovingFocus: boolean;
|
|
84
|
+
deselectable: boolean;
|
|
85
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
86
|
+
default?: (props: {}) => any;
|
|
87
|
+
}>;
|
|
88
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
declare namespace toggle_group_d_exports {
|
|
94
|
+
export { _default as Context, ToggleGroupContextProps as ContextProps, _default$1 as Item, ToggleGroupItemBaseProps as ItemBaseProps, ToggleGroupItemProps as ItemProps, _default$2 as Root, ToggleGroupRootBaseProps as RootBaseProps, ToggleGroupRootEmits as RootEmits, ToggleGroupRootProps as RootProps, _default$3 as RootProvider, ToggleGroupRootProviderBaseProps as RootProviderBaseProps, ToggleGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/toggle-group/use-toggle-group.d.ts
|
|
98
|
+
interface UseToggleGroupProps extends Optional<Omit<toggleGroup.Props, "dir" | "getRootNode">, "id"> {
|
|
99
|
+
modelValue?: toggleGroup.Props["value"];
|
|
100
|
+
}
|
|
101
|
+
interface UseToggleGroupReturn extends ComputedRef<toggleGroup.Api<PropTypes>> {}
|
|
102
|
+
declare const useToggleGroup: (props?: MaybeRef<UseToggleGroupProps>, emit?: EmitFn$1<ToggleGroupRootEmits>) => UseToggleGroupReturn;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/toggle-group/use-context.d.ts
|
|
105
|
+
interface UseToggleGroupContext extends UseToggleGroupReturn {}
|
|
106
|
+
declare const ToggleGroupProvider: (opts: UseToggleGroupContext) => void, useToggleGroupContext: (fallback?: UseToggleGroupContext | undefined) => UseToggleGroupContext;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/toggle-group/context.vue.d.ts
|
|
109
|
+
interface ToggleGroupContextProps extends SlotsType<{
|
|
110
|
+
default: UnwrapRef<UseToggleGroupContext>;
|
|
111
|
+
}> {}
|
|
112
|
+
declare const _default: typeof __VLS_export;
|
|
113
|
+
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>, {
|
|
114
|
+
default(toggleGroup: UnwrapRef<UseToggleGroupContext>): unknown;
|
|
115
|
+
}>;
|
|
116
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
export { toggle_group_d_exports as ToggleGroup, _default as ToggleGroupContext, type ToggleGroupContextProps, _default$1 as ToggleGroupItem, type ToggleGroupItemBaseProps, type ToggleGroupItemProps, _default$2 as ToggleGroupRoot, type ToggleGroupRootBaseProps, type ToggleGroupRootEmits, type ToggleGroupRootProps, _default$3 as ToggleGroupRootProvider, type ToggleGroupRootProviderBaseProps, type ToggleGroupRootProviderProps, type ToggleGroupValueChangeDetails, type UseToggleGroupContext, type UseToggleGroupProps, type UseToggleGroupReturn, toggleGroupAnatomy, useToggleGroup, useToggleGroupContext };
|