@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.cjs
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
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_factory = require("./factory-JL7MPjkk.cjs");
|
|
6
|
+
let vue = require("vue");
|
|
7
|
+
let _wirekyt_dom_machines_toast = require("@wirekyt/dom/machines/toast");
|
|
8
|
+
let _wirekyt_dom_machines_toast$1 = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_toast, 1);
|
|
9
|
+
_wirekyt_dom_machines_toast = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_toast);
|
|
10
|
+
//#region src/components/toast/create-toaster.ts
|
|
11
|
+
const createToaster = (props) => {
|
|
12
|
+
return _wirekyt_dom_machines_toast$1.createStore(props);
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/toast/use-context.ts
|
|
16
|
+
const [ToastProvider, useToastContext] = require_utils.createContext("ToastContext");
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/toast/action-trigger.vue
|
|
19
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
20
|
+
__name: "action-trigger",
|
|
21
|
+
props: { asChild: { type: Boolean } },
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const toast = useToastContext();
|
|
24
|
+
require_utils.useForwardExpose();
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(toast).getActionTriggerProps(), { "as-child": __props.asChild }), {
|
|
27
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["as-child"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/toast/close-trigger.vue
|
|
35
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
36
|
+
__name: "close-trigger",
|
|
37
|
+
props: { asChild: { type: Boolean } },
|
|
38
|
+
setup(__props) {
|
|
39
|
+
const toast = useToastContext();
|
|
40
|
+
require_utils.useForwardExpose();
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(toast).getCloseTriggerProps(), { "as-child": __props.asChild }), {
|
|
43
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16, ["as-child"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/toast/context.vue
|
|
51
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
52
|
+
__name: "context",
|
|
53
|
+
setup(__props) {
|
|
54
|
+
const toast = useToastContext();
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(toast))));
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/toast/description.vue
|
|
62
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
63
|
+
__name: "description",
|
|
64
|
+
props: { asChild: { type: Boolean } },
|
|
65
|
+
setup(__props) {
|
|
66
|
+
const toast = useToastContext();
|
|
67
|
+
require_utils.useForwardExpose();
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(toast).getDescriptionProps(), { "as-child": __props.asChild }), {
|
|
70
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
71
|
+
_: 3
|
|
72
|
+
}, 16, ["as-child"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/toast/root.vue
|
|
78
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
79
|
+
__name: "root",
|
|
80
|
+
props: { asChild: { type: Boolean } },
|
|
81
|
+
setup(__props) {
|
|
82
|
+
const toast = useToastContext();
|
|
83
|
+
require_utils.useForwardExpose();
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(toast).getRootProps(), { "as-child": __props.asChild }), {
|
|
86
|
+
default: (0, vue.withCtx)(() => [
|
|
87
|
+
(0, vue.createElementVNode)("div", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(toast).getGhostBeforeProps())), null, 16),
|
|
88
|
+
(0, vue.renderSlot)(_ctx.$slots, "default"),
|
|
89
|
+
(0, vue.createElementVNode)("div", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(toast).getGhostAfterProps())), null, 16)
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 16, ["as-child"]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/toast/title.vue
|
|
98
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
99
|
+
__name: "title",
|
|
100
|
+
props: { asChild: { type: Boolean } },
|
|
101
|
+
setup(__props) {
|
|
102
|
+
const toast = useToastContext();
|
|
103
|
+
require_utils.useForwardExpose();
|
|
104
|
+
return (_ctx, _cache) => {
|
|
105
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(toast).getTitleProps(), { "as-child": __props.asChild }), {
|
|
106
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 16, ["as-child"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/toast/toaster-item.vue
|
|
114
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
115
|
+
__name: "toaster-item",
|
|
116
|
+
props: {
|
|
117
|
+
value: {},
|
|
118
|
+
index: {},
|
|
119
|
+
parent: {}
|
|
120
|
+
},
|
|
121
|
+
setup(__props) {
|
|
122
|
+
const props = __props;
|
|
123
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
124
|
+
const machineProps = (0, vue.computed)(() => ({
|
|
125
|
+
...props.value,
|
|
126
|
+
index: props.index,
|
|
127
|
+
parent: props.parent,
|
|
128
|
+
getRootNode: env?.value.getRootNode
|
|
129
|
+
}));
|
|
130
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_toast.machine, machineProps);
|
|
131
|
+
ToastProvider((0, vue.computed)(() => _wirekyt_dom_machines_toast.connect(service, require_utils.normalizeProps)));
|
|
132
|
+
require_utils.useForwardExpose();
|
|
133
|
+
return (_ctx, _cache) => {
|
|
134
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)(props.value)));
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/components/toast/toaster.vue
|
|
140
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
141
|
+
__name: "toaster",
|
|
142
|
+
props: {
|
|
143
|
+
toaster: {},
|
|
144
|
+
asChild: { type: Boolean }
|
|
145
|
+
},
|
|
146
|
+
setup(__props) {
|
|
147
|
+
const props = __props;
|
|
148
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
149
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
150
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_toast.group.machine, {
|
|
151
|
+
store: props.toaster,
|
|
152
|
+
id: (0, vue.useId)(),
|
|
153
|
+
dir: locale?.value.dir,
|
|
154
|
+
getRootNode: env?.value.getRootNode
|
|
155
|
+
});
|
|
156
|
+
const api = (0, vue.computed)(() => _wirekyt_dom_machines_toast.group.connect(service, require_utils.normalizeProps));
|
|
157
|
+
require_utils.useForwardExpose();
|
|
158
|
+
return (_ctx, _cache) => {
|
|
159
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(api.value.getGroupProps())), {
|
|
160
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(api.value.getToasts(), (toastItem, index) => {
|
|
161
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(_sfc_main$7, {
|
|
162
|
+
key: toastItem.id,
|
|
163
|
+
value: toastItem,
|
|
164
|
+
parent: (0, vue.unref)(service),
|
|
165
|
+
index
|
|
166
|
+
}, {
|
|
167
|
+
default: (0, vue.withCtx)((slotProps) => [(0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.mergeProps)({ ref_for: true }, slotProps))]),
|
|
168
|
+
_: 3
|
|
169
|
+
}, 8, [
|
|
170
|
+
"value",
|
|
171
|
+
"parent",
|
|
172
|
+
"index"
|
|
173
|
+
]);
|
|
174
|
+
}), 128))]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 16);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/components/toast/toast.ts
|
|
182
|
+
var toast_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
183
|
+
ActionTrigger: () => _sfc_main,
|
|
184
|
+
CloseTrigger: () => _sfc_main$1,
|
|
185
|
+
Context: () => _sfc_main$2,
|
|
186
|
+
Description: () => _sfc_main$3,
|
|
187
|
+
Root: () => _sfc_main$4,
|
|
188
|
+
Title: () => _sfc_main$5
|
|
189
|
+
});
|
|
190
|
+
//#endregion
|
|
191
|
+
Object.defineProperty(exports, "Toast", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function() {
|
|
194
|
+
return toast_exports;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
exports.ToastActionTrigger = _sfc_main;
|
|
198
|
+
exports.ToastCloseTrigger = _sfc_main$1;
|
|
199
|
+
exports.ToastContext = _sfc_main$2;
|
|
200
|
+
exports.ToastDescription = _sfc_main$3;
|
|
201
|
+
exports.ToastRoot = _sfc_main$4;
|
|
202
|
+
exports.ToastTitle = _sfc_main$5;
|
|
203
|
+
exports.Toaster = _sfc_main$6;
|
|
204
|
+
exports.createToaster = createToaster;
|
|
205
|
+
Object.defineProperty(exports, "toastAnatomy", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function() {
|
|
208
|
+
return _wirekyt_dom_machines_toast.anatomy;
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
exports.useToastContext = useToastContext;
|
package/dist/toast.d.cts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, SlotsType, UnwrapRef, VNodeChild } from "vue";
|
|
4
|
+
import * as toast from "@wirekyt/dom/machines/toast";
|
|
5
|
+
import { ActionOptions, ActionOptions as ToastActionOptions, Placement, Placement as ToastPlacement, PromiseOptions, PromiseOptions as ToastPromiseOptions, Status, Status as ToastStatus, StatusChangeDetails, StatusChangeDetails as ToastStatusChangeDetails, StoreProps, StoreProps as ToastStoreProps, Type, Type as ToastType, anatomy as toastAnatomy } from "@wirekyt/dom/machines/toast";
|
|
6
|
+
//#region src/components/toast/create-toaster.d.ts
|
|
7
|
+
interface CreateToasterProps extends Optional<Partial<toast.StoreProps>, "placement"> {
|
|
8
|
+
placement: toast.Placement;
|
|
9
|
+
}
|
|
10
|
+
interface CreateToasterReturn extends toast.Store<VNodeChild> {}
|
|
11
|
+
declare const createToaster: (props: CreateToasterProps) => CreateToasterReturn;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/action-trigger.vue.d.ts
|
|
14
|
+
interface ToastActionTriggerBaseProps extends PolymorphicProps {}
|
|
15
|
+
interface ToastActionTriggerProps extends ToastActionTriggerBaseProps,
|
|
16
|
+
/**
|
|
17
|
+
* @vue-ignore
|
|
18
|
+
*/
|
|
19
|
+
ButtonHTMLAttributes {}
|
|
20
|
+
declare const _default: typeof __VLS_export$6;
|
|
21
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<ToastActionTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastActionTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
22
|
+
default?: (props: {}) => any;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/toast/close-trigger.vue.d.ts
|
|
31
|
+
interface ToastCloseTriggerBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface ToastCloseTriggerProps extends ToastCloseTriggerBaseProps,
|
|
33
|
+
/**
|
|
34
|
+
* @vue-ignore
|
|
35
|
+
*/
|
|
36
|
+
ButtonHTMLAttributes {}
|
|
37
|
+
declare const _default$1: typeof __VLS_export$5;
|
|
38
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<ToastCloseTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastCloseTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
39
|
+
default?: (props: {}) => any;
|
|
40
|
+
}>;
|
|
41
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/toast/use-context.d.ts
|
|
48
|
+
interface UseToastContext extends ComputedRef<toast.Api<PropTypes>> {}
|
|
49
|
+
declare const ToastProvider: (opts: UseToastContext) => void, useToastContext: (fallback?: UseToastContext | undefined) => UseToastContext;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/toast/context.vue.d.ts
|
|
52
|
+
interface ToastContextProps extends SlotsType<{
|
|
53
|
+
default: UnwrapRef<UseToastContext>;
|
|
54
|
+
}> {}
|
|
55
|
+
declare const _default$2: typeof __VLS_export$4;
|
|
56
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
57
|
+
default(toast: UnwrapRef<UseToastContext>): unknown;
|
|
58
|
+
}>;
|
|
59
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/toast/description.vue.d.ts
|
|
66
|
+
interface ToastDescriptionBaseProps extends PolymorphicProps {}
|
|
67
|
+
interface ToastDescriptionProps extends ToastDescriptionBaseProps,
|
|
68
|
+
/**
|
|
69
|
+
* @vue-ignore
|
|
70
|
+
*/
|
|
71
|
+
HTMLAttributes {}
|
|
72
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
73
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
74
|
+
default?: (props: {}) => any;
|
|
75
|
+
}>;
|
|
76
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/toast/root.vue.d.ts
|
|
83
|
+
interface ToastRootBaseProps extends PolymorphicProps {}
|
|
84
|
+
interface ToastRootProps extends ToastRootBaseProps,
|
|
85
|
+
/**
|
|
86
|
+
* @vue-ignore
|
|
87
|
+
*/
|
|
88
|
+
HTMLAttributes {}
|
|
89
|
+
declare const _default$4: typeof __VLS_export$2;
|
|
90
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ToastRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastRootProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
91
|
+
default?: (props: {}) => any;
|
|
92
|
+
}>;
|
|
93
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/toast/title.vue.d.ts
|
|
100
|
+
interface ToastTitleBaseProps extends PolymorphicProps {}
|
|
101
|
+
interface ToastTitleProps extends ToastTitleBaseProps,
|
|
102
|
+
/**
|
|
103
|
+
* @vue-ignore
|
|
104
|
+
*/
|
|
105
|
+
HTMLAttributes {}
|
|
106
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
107
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ToastTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
108
|
+
default?: (props: {}) => any;
|
|
109
|
+
}>;
|
|
110
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
111
|
+
new (): {
|
|
112
|
+
$slots: S;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/toast/toaster.vue.d.ts
|
|
117
|
+
type ToastOptions = toast.Options<VNodeChild>;
|
|
118
|
+
interface ToasterBaseProps extends PolymorphicProps {
|
|
119
|
+
toaster: CreateToasterReturn;
|
|
120
|
+
}
|
|
121
|
+
interface ToasterProps extends ToasterBaseProps,
|
|
122
|
+
/** @vue-ignore */
|
|
123
|
+
HTMLAttributes,
|
|
124
|
+
/** @vue-ignore */
|
|
125
|
+
SlotsType<{
|
|
126
|
+
default: ToastOptions;
|
|
127
|
+
}> {}
|
|
128
|
+
declare var __VLS_15: {
|
|
129
|
+
title?: VNodeChild;
|
|
130
|
+
description?: VNodeChild;
|
|
131
|
+
duration?: number | undefined;
|
|
132
|
+
removeDelay?: number | undefined;
|
|
133
|
+
id?: string | undefined;
|
|
134
|
+
type?: toast.Type | undefined;
|
|
135
|
+
priority?: toast.ToastQueuePriority | undefined;
|
|
136
|
+
onStatusChange?: ((details: toast.StatusChangeDetails) => void) | undefined;
|
|
137
|
+
action?: toast.ActionOptions | undefined;
|
|
138
|
+
closable?: boolean | undefined;
|
|
139
|
+
meta?: Record<string, any> | undefined;
|
|
140
|
+
promise?: Promise<any> | (() => Promise<any>) | undefined;
|
|
141
|
+
};
|
|
142
|
+
type __VLS_Slots = {} & {
|
|
143
|
+
default?: (props: typeof __VLS_15) => any;
|
|
144
|
+
};
|
|
145
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
146
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
147
|
+
declare const _default$6: typeof __VLS_export;
|
|
148
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
declare namespace toast_d_exports {
|
|
154
|
+
export { ActionOptions, _default as ActionTrigger, ToastActionTriggerBaseProps as ActionTriggerBaseProps, ToastActionTriggerProps as ActionTriggerProps, _default$1 as CloseTrigger, ToastCloseTriggerBaseProps as CloseTriggerBaseProps, ToastCloseTriggerProps as CloseTriggerProps, _default$2 as Context, ToastContextProps as ContextProps, _default$3 as Description, ToastDescriptionBaseProps as DescriptionBaseProps, ToastDescriptionProps as DescriptionProps, ToastOptions as Options, Placement, PromiseOptions, _default$4 as Root, ToastRootBaseProps as RootBaseProps, ToastRootProps as RootProps, Status, StatusChangeDetails, StoreProps, _default$5 as Title, ToastTitleBaseProps as TitleBaseProps, ToastTitleProps as TitleProps, Type };
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { type CreateToasterProps, type CreateToasterReturn, toast_d_exports as Toast, type ToastActionOptions, _default as ToastActionTrigger, type ToastActionTriggerBaseProps, type ToastActionTriggerProps, _default$1 as ToastCloseTrigger, type ToastCloseTriggerBaseProps, type ToastCloseTriggerProps, _default$2 as ToastContext, type ToastContextProps, _default$3 as ToastDescription, type ToastDescriptionBaseProps, type ToastDescriptionProps, type ToastOptions, type ToastPlacement, type ToastPromiseOptions, _default$4 as ToastRoot, type ToastRootBaseProps, type ToastRootProps, type ToastStatus, type ToastStatusChangeDetails, type ToastStoreProps, _default$5 as ToastTitle, type ToastTitleBaseProps, type ToastTitleProps, type ToastType, _default$6 as Toaster, type ToasterBaseProps, type ToasterProps, type UseToastContext, createToaster, toastAnatomy, useToastContext };
|
package/dist/toast.d.ts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, SlotsType, UnwrapRef, VNodeChild } from "vue";
|
|
4
|
+
import * as toast from "@wirekyt/dom/machines/toast";
|
|
5
|
+
import { ActionOptions, ActionOptions as ToastActionOptions, Placement, Placement as ToastPlacement, PromiseOptions, PromiseOptions as ToastPromiseOptions, Status, Status as ToastStatus, StatusChangeDetails, StatusChangeDetails as ToastStatusChangeDetails, StoreProps, StoreProps as ToastStoreProps, Type, Type as ToastType, anatomy as toastAnatomy } from "@wirekyt/dom/machines/toast";
|
|
6
|
+
//#region src/components/toast/create-toaster.d.ts
|
|
7
|
+
interface CreateToasterProps extends Optional<Partial<toast.StoreProps>, "placement"> {
|
|
8
|
+
placement: toast.Placement;
|
|
9
|
+
}
|
|
10
|
+
interface CreateToasterReturn extends toast.Store<VNodeChild> {}
|
|
11
|
+
declare const createToaster: (props: CreateToasterProps) => CreateToasterReturn;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/action-trigger.vue.d.ts
|
|
14
|
+
interface ToastActionTriggerBaseProps extends PolymorphicProps {}
|
|
15
|
+
interface ToastActionTriggerProps extends ToastActionTriggerBaseProps,
|
|
16
|
+
/**
|
|
17
|
+
* @vue-ignore
|
|
18
|
+
*/
|
|
19
|
+
ButtonHTMLAttributes {}
|
|
20
|
+
declare const _default: typeof __VLS_export$6;
|
|
21
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<ToastActionTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastActionTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
22
|
+
default?: (props: {}) => any;
|
|
23
|
+
}>;
|
|
24
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/toast/close-trigger.vue.d.ts
|
|
31
|
+
interface ToastCloseTriggerBaseProps extends PolymorphicProps {}
|
|
32
|
+
interface ToastCloseTriggerProps extends ToastCloseTriggerBaseProps,
|
|
33
|
+
/**
|
|
34
|
+
* @vue-ignore
|
|
35
|
+
*/
|
|
36
|
+
ButtonHTMLAttributes {}
|
|
37
|
+
declare const _default$1: typeof __VLS_export$5;
|
|
38
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<ToastCloseTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastCloseTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
39
|
+
default?: (props: {}) => any;
|
|
40
|
+
}>;
|
|
41
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/toast/use-context.d.ts
|
|
48
|
+
interface UseToastContext extends ComputedRef<toast.Api<PropTypes>> {}
|
|
49
|
+
declare const ToastProvider: (opts: UseToastContext) => void, useToastContext: (fallback?: UseToastContext | undefined) => UseToastContext;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/toast/context.vue.d.ts
|
|
52
|
+
interface ToastContextProps extends SlotsType<{
|
|
53
|
+
default: UnwrapRef<UseToastContext>;
|
|
54
|
+
}> {}
|
|
55
|
+
declare const _default$2: typeof __VLS_export$4;
|
|
56
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
57
|
+
default(toast: UnwrapRef<UseToastContext>): unknown;
|
|
58
|
+
}>;
|
|
59
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/toast/description.vue.d.ts
|
|
66
|
+
interface ToastDescriptionBaseProps extends PolymorphicProps {}
|
|
67
|
+
interface ToastDescriptionProps extends ToastDescriptionBaseProps,
|
|
68
|
+
/**
|
|
69
|
+
* @vue-ignore
|
|
70
|
+
*/
|
|
71
|
+
HTMLAttributes {}
|
|
72
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
73
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
74
|
+
default?: (props: {}) => any;
|
|
75
|
+
}>;
|
|
76
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/toast/root.vue.d.ts
|
|
83
|
+
interface ToastRootBaseProps extends PolymorphicProps {}
|
|
84
|
+
interface ToastRootProps extends ToastRootBaseProps,
|
|
85
|
+
/**
|
|
86
|
+
* @vue-ignore
|
|
87
|
+
*/
|
|
88
|
+
HTMLAttributes {}
|
|
89
|
+
declare const _default$4: typeof __VLS_export$2;
|
|
90
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<ToastRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastRootProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
91
|
+
default?: (props: {}) => any;
|
|
92
|
+
}>;
|
|
93
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/toast/title.vue.d.ts
|
|
100
|
+
interface ToastTitleBaseProps extends PolymorphicProps {}
|
|
101
|
+
interface ToastTitleProps extends ToastTitleBaseProps,
|
|
102
|
+
/**
|
|
103
|
+
* @vue-ignore
|
|
104
|
+
*/
|
|
105
|
+
HTMLAttributes {}
|
|
106
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
107
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<ToastTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
108
|
+
default?: (props: {}) => any;
|
|
109
|
+
}>;
|
|
110
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
111
|
+
new (): {
|
|
112
|
+
$slots: S;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/toast/toaster.vue.d.ts
|
|
117
|
+
type ToastOptions = toast.Options<VNodeChild>;
|
|
118
|
+
interface ToasterBaseProps extends PolymorphicProps {
|
|
119
|
+
toaster: CreateToasterReturn;
|
|
120
|
+
}
|
|
121
|
+
interface ToasterProps extends ToasterBaseProps,
|
|
122
|
+
/** @vue-ignore */
|
|
123
|
+
HTMLAttributes,
|
|
124
|
+
/** @vue-ignore */
|
|
125
|
+
SlotsType<{
|
|
126
|
+
default: ToastOptions;
|
|
127
|
+
}> {}
|
|
128
|
+
declare var __VLS_15: {
|
|
129
|
+
title?: VNodeChild;
|
|
130
|
+
description?: VNodeChild;
|
|
131
|
+
duration?: number | undefined;
|
|
132
|
+
removeDelay?: number | undefined;
|
|
133
|
+
id?: string | undefined;
|
|
134
|
+
type?: toast.Type | undefined;
|
|
135
|
+
priority?: toast.ToastQueuePriority | undefined;
|
|
136
|
+
onStatusChange?: ((details: toast.StatusChangeDetails) => void) | undefined;
|
|
137
|
+
action?: toast.ActionOptions | undefined;
|
|
138
|
+
closable?: boolean | undefined;
|
|
139
|
+
meta?: Record<string, any> | undefined;
|
|
140
|
+
promise?: Promise<any> | (() => Promise<any>) | undefined;
|
|
141
|
+
};
|
|
142
|
+
type __VLS_Slots = {} & {
|
|
143
|
+
default?: (props: typeof __VLS_15) => any;
|
|
144
|
+
};
|
|
145
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
146
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
147
|
+
declare const _default$6: typeof __VLS_export;
|
|
148
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
declare namespace toast_d_exports {
|
|
154
|
+
export { ActionOptions, _default as ActionTrigger, ToastActionTriggerBaseProps as ActionTriggerBaseProps, ToastActionTriggerProps as ActionTriggerProps, _default$1 as CloseTrigger, ToastCloseTriggerBaseProps as CloseTriggerBaseProps, ToastCloseTriggerProps as CloseTriggerProps, _default$2 as Context, ToastContextProps as ContextProps, _default$3 as Description, ToastDescriptionBaseProps as DescriptionBaseProps, ToastDescriptionProps as DescriptionProps, ToastOptions as Options, Placement, PromiseOptions, _default$4 as Root, ToastRootBaseProps as RootBaseProps, ToastRootProps as RootProps, Status, StatusChangeDetails, StoreProps, _default$5 as Title, ToastTitleBaseProps as TitleBaseProps, ToastTitleProps as TitleProps, Type };
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { type CreateToasterProps, type CreateToasterReturn, toast_d_exports as Toast, type ToastActionOptions, _default as ToastActionTrigger, type ToastActionTriggerBaseProps, type ToastActionTriggerProps, _default$1 as ToastCloseTrigger, type ToastCloseTriggerBaseProps, type ToastCloseTriggerProps, _default$2 as ToastContext, type ToastContextProps, _default$3 as ToastDescription, type ToastDescriptionBaseProps, type ToastDescriptionProps, type ToastOptions, type ToastPlacement, type ToastPromiseOptions, _default$4 as ToastRoot, type ToastRootBaseProps, type ToastRootProps, type ToastStatus, type ToastStatusChangeDetails, type ToastStoreProps, _default$5 as ToastTitle, type ToastTitleBaseProps, type ToastTitleProps, type ToastType, _default$6 as Toaster, type ToasterBaseProps, type ToasterProps, type UseToastContext, createToaster, toastAnatomy, useToastContext };
|