@sprawlify/vue 0.0.70 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boolean-CpMsIRK4.js +7 -0
- package/dist/components/accordion/index.d.ts +20 -20
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/angle-slider/index.d.ts +19 -19
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/bottom-sheet/index.d.ts +22 -22
- package/dist/components/carousel/index.d.ts +25 -25
- package/dist/components/checkbox/index.d.ts +28 -28
- package/dist/components/checkbox/index.js +1 -6
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -17
- package/dist/components/collapsible/index.d.ts +17 -17
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +58 -58
- package/dist/components/combobox/index.d.ts +38 -38
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/date-picker/index.d.ts +51 -51
- package/dist/components/dialog/index.d.ts +33 -33
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/editable/index.d.ts +29 -29
- package/dist/components/field/index.d.ts +26 -26
- package/dist/components/fieldset/index.d.ts +13 -13
- package/dist/components/file-upload/index.d.ts +25 -25
- package/dist/components/floating-panel/index.d.ts +24 -25
- package/dist/components/focus-trap/index.d.ts +5 -5
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/frame/index.d.ts +6 -6
- package/dist/components/highlight/index.d.ts +5 -5
- package/dist/components/hover-card/index.d.ts +27 -27
- package/dist/components/image-cropper/index.d.ts +16 -16
- package/dist/components/json-tree-view/index.d.ts +12 -12
- package/dist/components/json-tree-view/index.js +3 -3
- package/dist/components/listbox/index.d.ts +26 -26
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/marquee/index.d.ts +23 -23
- package/dist/components/menu/index.d.ts +53 -54
- package/dist/components/navigation-menu/index.d.ts +20 -20
- package/dist/components/number-input/index.d.ts +22 -22
- package/dist/components/pagination/index.d.ts +17 -17
- package/dist/components/password-input/index.d.ts +25 -25
- package/dist/components/pin-input/index.d.ts +21 -21
- package/dist/components/popover/index.d.ts +34 -34
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/progress/index.d.ts +231 -0
- package/dist/components/progress/index.js +372 -0
- package/dist/components/qr-code/index.d.ts +159 -0
- package/dist/components/qr-code/index.js +263 -0
- package/dist/components/radio-group/index.d.ts +231 -0
- package/dist/components/radio-group/index.js +378 -0
- package/dist/components/rating-group/index.d.ts +201 -0
- package/dist/components/rating-group/index.js +330 -0
- package/dist/components/scroll-area/index.d.ts +171 -0
- package/dist/components/scroll-area/index.js +264 -0
- package/dist/components/segment-group/index.d.ts +231 -0
- package/dist/components/segment-group/index.js +422 -0
- package/dist/components/select/index.d.ts +39 -39
- package/dist/components/select/index.js +1 -1
- package/dist/components/signature-pad/index.d.ts +202 -0
- package/dist/components/signature-pad/index.js +345 -0
- package/dist/components/slider/index.d.ts +300 -0
- package/dist/components/slider/index.js +511 -0
- package/dist/components/splitter/index.d.ts +162 -0
- package/dist/components/splitter/index.js +280 -0
- package/dist/components/steps/index.d.ts +290 -0
- package/dist/components/steps/index.js +469 -0
- package/dist/components/switch/index.d.ts +179 -0
- package/dist/components/switch/index.js +290 -0
- package/dist/components/tabs/index.d.ts +181 -0
- package/dist/components/tabs/index.js +335 -0
- package/dist/components/tags-input/index.d.ts +339 -0
- package/dist/components/tags-input/index.js +569 -0
- package/dist/components/timer/index.d.ts +177 -0
- package/dist/components/timer/index.js +295 -0
- package/dist/components/toast/index.d.ts +154 -0
- package/dist/components/toast/index.js +265 -0
- package/dist/components/toggle/index.d.ts +101 -0
- package/dist/components/toggle/index.js +131 -0
- package/dist/components/toggle-group/index.d.ts +127 -0
- package/dist/components/toggle-group/index.js +207 -0
- package/dist/components/tooltip/index.d.ts +201 -0
- package/dist/components/tooltip/index.js +349 -0
- package/dist/components/tour/index.d.ts +308 -0
- package/dist/components/tour/index.js +505 -0
- package/dist/components/tree-view/index.d.ts +5 -5
- package/dist/components/tree-view/index.js +3 -3
- package/dist/{index-Cjk1WhUx.d.ts → index-8bjPAUl0.d.ts} +10 -10
- package/dist/{index-D0_ID5xv.d.ts → index-BnYwp0nl.d.ts} +7 -7
- package/dist/{index-ByYmM8LZ.d.ts → index-CmCVWB7e.d.ts} +33 -33
- package/dist/index.d.ts +3 -3
- package/dist/{tree-view-CzfDgztL.js → tree-view-N6ShNmpe.js} +1 -1
- package/package.json +78 -2
- /package/dist/{collapsible-D1Mx4C0H.js → collapsible-SXAS3iFc.js} +0 -0
- /package/dist/{collection-DiwGNCAy.js → collection-C_ZHBDQD.js} +0 -0
- /package/dist/{factory-Dg6Whljf.d.ts → factory-B5zr8_kk.d.ts} +0 -0
- /package/dist/{index-DI09ccnU.d.ts → index-CCRVRFFQ.d.ts} +0 -0
- /package/dist/{index-ECeveDvH.d.ts → index-DhFoJHfp.d.ts} +0 -0
- /package/dist/{presence-types-BaQ7PILD.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
- /package/dist/{types-BkS9kMJ5.d.ts → types-DIEO6uP3.d.ts} +0 -0
- /package/dist/{use-render-strategy-bdLKqL57.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-B5zr8_kk.js";
|
|
2
|
+
import { a as Optional, r as EmitFn$1 } from "../../types-DIEO6uP3.js";
|
|
3
|
+
import { r as PropTypes } from "../../index-CCRVRFFQ.js";
|
|
4
|
+
import * as vue2596 from "vue";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
6
|
+
import * as timer from "@sprawlify/primitives/machines/timer";
|
|
7
|
+
import { ActionTriggerProps, ItemProps, TickDetails, anatomy as timerAnatomy } from "@sprawlify/primitives/machines/timer";
|
|
8
|
+
|
|
9
|
+
//#region src/components/timer/timer-action-trigger.vue.d.ts
|
|
10
|
+
interface TimerActionTriggerBaseProps extends ActionTriggerProps, PolymorphicProps {}
|
|
11
|
+
interface TimerActionTriggerProps extends TimerActionTriggerBaseProps,
|
|
12
|
+
/**
|
|
13
|
+
* @vue-ignore
|
|
14
|
+
*/
|
|
15
|
+
ButtonHTMLAttributes {}
|
|
16
|
+
declare const _default: typeof __VLS_export$7;
|
|
17
|
+
declare const __VLS_export$7: __VLS_WithSlots$6<vue2596.DefineComponent<TimerActionTriggerProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerActionTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/timer/timer-types.d.ts
|
|
27
|
+
interface RootProps {
|
|
28
|
+
autoStart?: boolean;
|
|
29
|
+
countdown?: boolean;
|
|
30
|
+
id?: string;
|
|
31
|
+
ids?: Partial<{
|
|
32
|
+
root: string;
|
|
33
|
+
area: string;
|
|
34
|
+
}>;
|
|
35
|
+
interval?: number;
|
|
36
|
+
startMs?: number;
|
|
37
|
+
targetMs?: number;
|
|
38
|
+
}
|
|
39
|
+
type RootEmits = {
|
|
40
|
+
complete: [];
|
|
41
|
+
tick: [details: timer.TickDetails];
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/timer/use-timer.d.ts
|
|
45
|
+
interface UseTimerProps extends Optional<Omit<timer.Props, 'dir' | 'getRootNode'>, 'id'> {}
|
|
46
|
+
interface UseTimerReturn extends ComputedRef<timer.Api<PropTypes>> {}
|
|
47
|
+
declare const useTimer: (props: MaybeRef<UseTimerProps>, emit?: EmitFn$1<RootEmits>) => UseTimerReturn;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/timer/use-timer-context.d.ts
|
|
50
|
+
interface UseTimerContext extends UseTimerReturn {}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/timer/timer-context.vue.d.ts
|
|
53
|
+
interface TimerContextProps extends SlotsType<{
|
|
54
|
+
default: UnwrapRef<UseTimerContext>;
|
|
55
|
+
}> {}
|
|
56
|
+
declare const _default$2: typeof __VLS_export$6;
|
|
57
|
+
declare const __VLS_export$6: __VLS_WithSlots$5<vue2596.DefineComponent<{}, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, true, {}, any>, {
|
|
58
|
+
default(timer: UnwrapRef<UseTimerContext>): unknown;
|
|
59
|
+
}>;
|
|
60
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/timer/timer-item.vue.d.ts
|
|
67
|
+
interface TimerItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
68
|
+
interface TimerItemProps extends TimerItemBaseProps,
|
|
69
|
+
/**
|
|
70
|
+
* @vue-ignore
|
|
71
|
+
*/
|
|
72
|
+
HTMLAttributes {}
|
|
73
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
74
|
+
declare const __VLS_export$5: vue2596.DefineComponent<TimerItemProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/timer/timer-area.vue.d.ts
|
|
77
|
+
interface TimerAreaBaseProps extends PolymorphicProps {}
|
|
78
|
+
interface TimerAreaProps extends TimerAreaBaseProps,
|
|
79
|
+
/**
|
|
80
|
+
* @vue-ignore
|
|
81
|
+
*/
|
|
82
|
+
HTMLAttributes {}
|
|
83
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
84
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue2596.DefineComponent<TimerAreaProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerAreaProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
85
|
+
default?: (props: {}) => any;
|
|
86
|
+
}>;
|
|
87
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/timer/timer-control.vue.d.ts
|
|
94
|
+
interface TimerControlBaseProps extends PolymorphicProps {}
|
|
95
|
+
interface TimerControlProps extends TimerControlBaseProps,
|
|
96
|
+
/**
|
|
97
|
+
* @vue-ignore
|
|
98
|
+
*/
|
|
99
|
+
HTMLAttributes {}
|
|
100
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
101
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue2596.DefineComponent<TimerControlProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
102
|
+
default?: (props: {}) => any;
|
|
103
|
+
}>;
|
|
104
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/timer/timer-root-provider.vue.d.ts
|
|
111
|
+
interface RootProviderProps {
|
|
112
|
+
value: UnwrapRef<UseTimerReturn>;
|
|
113
|
+
}
|
|
114
|
+
interface TimerRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
115
|
+
interface TimerRootProviderProps extends TimerRootProviderBaseProps,
|
|
116
|
+
/**
|
|
117
|
+
* @vue-ignore
|
|
118
|
+
*/
|
|
119
|
+
HTMLAttributes {}
|
|
120
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
121
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue2596.DefineComponent<TimerRootProviderProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
122
|
+
default?: (props: {}) => any;
|
|
123
|
+
}>;
|
|
124
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/timer/timer-root.vue.d.ts
|
|
131
|
+
interface TimerRootBaseProps extends RootProps, PolymorphicProps {}
|
|
132
|
+
interface TimerRootProps extends TimerRootBaseProps,
|
|
133
|
+
/**
|
|
134
|
+
* @vue-ignore
|
|
135
|
+
*/
|
|
136
|
+
HTMLAttributes {}
|
|
137
|
+
interface TimerRootEmits extends RootEmits {}
|
|
138
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
139
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue2596.DefineComponent<TimerRootProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {
|
|
140
|
+
complete: () => any;
|
|
141
|
+
tick: (details: timer.TickDetails) => any;
|
|
142
|
+
}, string, vue2596.PublicProps, Readonly<TimerRootProps> & Readonly<{
|
|
143
|
+
onComplete?: (() => any) | undefined;
|
|
144
|
+
onTick?: ((details: timer.TickDetails) => any) | undefined;
|
|
145
|
+
}>, {
|
|
146
|
+
autoStart: boolean;
|
|
147
|
+
countdown: boolean;
|
|
148
|
+
}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
149
|
+
default?: (props: {}) => any;
|
|
150
|
+
}>;
|
|
151
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
152
|
+
new (): {
|
|
153
|
+
$slots: S;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/components/timer/timer-separator.vue.d.ts
|
|
158
|
+
interface TimerSeparatorBaseProps extends PolymorphicProps {}
|
|
159
|
+
interface TimerSeparatorProps extends TimerSeparatorBaseProps,
|
|
160
|
+
/**
|
|
161
|
+
* @vue-ignore
|
|
162
|
+
*/
|
|
163
|
+
HTMLAttributes {}
|
|
164
|
+
declare const _default$7: typeof __VLS_export;
|
|
165
|
+
declare const __VLS_export: __VLS_WithSlots<vue2596.DefineComponent<TimerSeparatorProps, {}, {}, {}, {}, vue2596.ComponentOptionsMixin, vue2596.ComponentOptionsMixin, {}, string, vue2596.PublicProps, Readonly<TimerSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2596.ComponentProvideOptions, false, {}, any>, {
|
|
166
|
+
default?: (props: {}) => any;
|
|
167
|
+
}>;
|
|
168
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
169
|
+
new (): {
|
|
170
|
+
$slots: S;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
declare namespace timer_d_exports {
|
|
174
|
+
export { _default as ActionTrigger, TimerActionTriggerBaseProps as ActionTriggerBaseProps, TimerActionTriggerProps as ActionTriggerProps, _default$1 as Area, TimerAreaBaseProps as AreaBaseProps, TimerAreaProps as AreaProps, _default$2 as Context, TimerContextProps as ContextProps, _default$3 as Control, TimerControlBaseProps as ControlBaseProps, TimerControlProps as ControlProps, _default$4 as Item, TimerItemBaseProps as ItemBaseProps, TimerItemProps as ItemProps, _default$5 as Root, TimerRootBaseProps as RootBaseProps, TimerRootEmits as RootEmits, TimerRootProps as RootProps, _default$6 as RootProvider, TimerRootProviderBaseProps as RootProviderBaseProps, TimerRootProviderProps as RootProviderProps, _default$7 as Separator, TimerSeparatorBaseProps as SeparatorBaseProps, TimerSeparatorProps as SeparatorProps, TickDetails };
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
export { timer_d_exports as Timer, _default as TimerActionTrigger, type TimerActionTriggerBaseProps, type TimerActionTriggerProps, _default$1 as TimerArea, type TimerAreaBaseProps, type TimerAreaProps, _default$2 as TimerContext, type TimerContextProps, _default$3 as TimerControl, type TimerControlBaseProps, type TimerControlProps, _default$4 as TimerItem, type TimerItemBaseProps, type TimerItemProps, _default$5 as TimerRoot, type TimerRootBaseProps, type TimerRootEmits, type TimerRootProps, _default$6 as TimerRootProvider, type TimerRootProviderBaseProps, type TimerRootProviderProps, _default$7 as TimerSeparator, type TimerSeparatorBaseProps, type TimerSeparatorProps, type UseTimerContext, type UseTimerProps, type UseTimerReturn, timerAnatomy, useTimer, useTimerContext };
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
|
|
2
|
+
import { n as useMachine, r as normalizeProps$1 } from "../../core-DNndr38p.js";
|
|
3
|
+
import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "../../providers-DNBWT-O_.js";
|
|
4
|
+
import { t as createContext } from "../../create-context-Ds1GbsVc.js";
|
|
5
|
+
import { t as useForwardExpose } from "../../use-forward-expose-CCAmHTUB.js";
|
|
6
|
+
import { t as sprawlify } from "../../factory-Co08Aw8u.js";
|
|
7
|
+
import { t as cleanProps } from "../../clean-props-ChPEW0vT.js";
|
|
8
|
+
import { computed, createBlock, createTextVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, toValue, unref, useId, withCtx } from "vue";
|
|
9
|
+
import * as timer from "@sprawlify/primitives/machines/timer";
|
|
10
|
+
import { anatomy as timerAnatomy } from "@sprawlify/primitives/machines/timer";
|
|
11
|
+
|
|
12
|
+
//#region src/components/timer/use-timer-context.ts
|
|
13
|
+
const [TimerProvider, useTimerContext] = createContext("TimerContext");
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/timer/timer-action-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
+
var timer_action_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "timer-action-trigger",
|
|
19
|
+
props: {
|
|
20
|
+
action: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
asChild: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const timer = useTimerContext();
|
|
32
|
+
useForwardExpose();
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(timer).getActionTriggerProps(props), { "as-child": __props.asChild }), {
|
|
35
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 16, ["as-child"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/timer/timer-action-trigger.vue
|
|
44
|
+
var timer_action_trigger_default = timer_action_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/timer/timer-context.vue?vue&type=script&setup=true&lang.ts
|
|
48
|
+
var timer_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
49
|
+
__name: "timer-context",
|
|
50
|
+
setup(__props) {
|
|
51
|
+
const timer = useTimerContext();
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(timer))));
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/timer/timer-context.vue
|
|
60
|
+
var timer_context_default = timer_context_vue_vue_type_script_setup_true_lang_default;
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/timer/timer-item.vue?vue&type=script&setup=true&lang.ts
|
|
64
|
+
var timer_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
65
|
+
__name: "timer-item",
|
|
66
|
+
props: {
|
|
67
|
+
type: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: true
|
|
70
|
+
},
|
|
71
|
+
asChild: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
required: false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
setup(__props) {
|
|
77
|
+
const props = __props;
|
|
78
|
+
const timer = useTimerContext();
|
|
79
|
+
useForwardExpose();
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getItemProps(props), { "as-child": __props.asChild }), {
|
|
82
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(timer).formattedTime[props.type]), 1)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 16, ["as-child"]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/timer/timer-item.vue
|
|
91
|
+
var timer_item_default = timer_item_vue_vue_type_script_setup_true_lang_default;
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/timer/timer-area.vue?vue&type=script&setup=true&lang.ts
|
|
95
|
+
var timer_area_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
96
|
+
__name: "timer-area",
|
|
97
|
+
props: { asChild: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
required: false
|
|
100
|
+
} },
|
|
101
|
+
setup(__props) {
|
|
102
|
+
const timer = useTimerContext();
|
|
103
|
+
useForwardExpose();
|
|
104
|
+
return (_ctx, _cache) => {
|
|
105
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getAreaProps(), { "as-child": __props.asChild }), {
|
|
106
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 16, ["as-child"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/timer/timer-area.vue
|
|
115
|
+
var timer_area_default = timer_area_vue_vue_type_script_setup_true_lang_default;
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/timer/timer-control.vue?vue&type=script&setup=true&lang.ts
|
|
119
|
+
var timer_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
120
|
+
__name: "timer-control",
|
|
121
|
+
props: { asChild: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
required: false
|
|
124
|
+
} },
|
|
125
|
+
setup(__props) {
|
|
126
|
+
const timer = useTimerContext();
|
|
127
|
+
useForwardExpose();
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getControlProps(), { "as-child": __props.asChild }), {
|
|
130
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 16, ["as-child"]);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/components/timer/timer-control.vue
|
|
139
|
+
var timer_control_default = timer_control_vue_vue_type_script_setup_true_lang_default;
|
|
140
|
+
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/timer/timer-root-provider.vue?vue&type=script&setup=true&lang.ts
|
|
143
|
+
var timer_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
144
|
+
__name: "timer-root-provider",
|
|
145
|
+
props: {
|
|
146
|
+
value: {
|
|
147
|
+
type: null,
|
|
148
|
+
required: true
|
|
149
|
+
},
|
|
150
|
+
asChild: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
required: false
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
setup(__props) {
|
|
156
|
+
const props = __props;
|
|
157
|
+
const timer = computed(() => props.value);
|
|
158
|
+
TimerProvider(timer);
|
|
159
|
+
useForwardExpose();
|
|
160
|
+
return (_ctx, _cache) => {
|
|
161
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(timer.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
162
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
163
|
+
_: 3
|
|
164
|
+
}, 16, ["as-child"]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/components/timer/timer-root-provider.vue
|
|
171
|
+
var timer_root_provider_default = timer_root_provider_vue_vue_type_script_setup_true_lang_default;
|
|
172
|
+
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/components/timer/use-timer.ts
|
|
175
|
+
const useTimer = (props, emit) => {
|
|
176
|
+
const id = useId();
|
|
177
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
178
|
+
const context = computed(() => {
|
|
179
|
+
const localProps = toValue(props);
|
|
180
|
+
return {
|
|
181
|
+
id,
|
|
182
|
+
getRootNode: env?.value.getRootNode,
|
|
183
|
+
...cleanProps(localProps),
|
|
184
|
+
onComplete: () => {
|
|
185
|
+
emit?.("complete");
|
|
186
|
+
localProps.onComplete?.();
|
|
187
|
+
},
|
|
188
|
+
onTick: (details) => {
|
|
189
|
+
emit?.("tick", details);
|
|
190
|
+
localProps.onTick?.(details);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
});
|
|
194
|
+
const service = useMachine(timer.machine, context);
|
|
195
|
+
return computed(() => timer.connect(service, normalizeProps$1));
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/components/timer/timer-root.vue?vue&type=script&setup=true&lang.ts
|
|
200
|
+
var timer_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
201
|
+
__name: "timer-root",
|
|
202
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
203
|
+
autoStart: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
countdown: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false
|
|
210
|
+
},
|
|
211
|
+
id: {
|
|
212
|
+
type: String,
|
|
213
|
+
required: false
|
|
214
|
+
},
|
|
215
|
+
ids: {
|
|
216
|
+
type: Object,
|
|
217
|
+
required: false
|
|
218
|
+
},
|
|
219
|
+
interval: {
|
|
220
|
+
type: Number,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
startMs: {
|
|
224
|
+
type: Number,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
targetMs: {
|
|
228
|
+
type: Number,
|
|
229
|
+
required: false
|
|
230
|
+
},
|
|
231
|
+
asChild: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
required: false
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
autoStart: void 0,
|
|
237
|
+
countdown: void 0
|
|
238
|
+
}),
|
|
239
|
+
emits: ["complete", "tick"],
|
|
240
|
+
setup(__props, { emit: __emit }) {
|
|
241
|
+
const timer = useTimer(__props, __emit);
|
|
242
|
+
TimerProvider(timer);
|
|
243
|
+
useForwardExpose();
|
|
244
|
+
return (_ctx, _cache) => {
|
|
245
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getRootProps(), { "as-child": __props.asChild }), {
|
|
246
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
247
|
+
_: 3
|
|
248
|
+
}, 16, ["as-child"]);
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/timer/timer-root.vue
|
|
255
|
+
var timer_root_default = timer_root_vue_vue_type_script_setup_true_lang_default;
|
|
256
|
+
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/components/timer/timer-separator.vue?vue&type=script&setup=true&lang.ts
|
|
259
|
+
var timer_separator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
260
|
+
__name: "timer-separator",
|
|
261
|
+
props: { asChild: {
|
|
262
|
+
type: Boolean,
|
|
263
|
+
required: false
|
|
264
|
+
} },
|
|
265
|
+
setup(__props) {
|
|
266
|
+
const timer = useTimerContext();
|
|
267
|
+
useForwardExpose();
|
|
268
|
+
return (_ctx, _cache) => {
|
|
269
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getSeparatorProps(), { "as-child": __props.asChild }), {
|
|
270
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 16, ["as-child"]);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/components/timer/timer-separator.vue
|
|
279
|
+
var timer_separator_default = timer_separator_vue_vue_type_script_setup_true_lang_default;
|
|
280
|
+
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/components/timer/timer.ts
|
|
283
|
+
var timer_exports = /* @__PURE__ */ __exportAll({
|
|
284
|
+
ActionTrigger: () => timer_action_trigger_default,
|
|
285
|
+
Area: () => timer_area_default,
|
|
286
|
+
Context: () => timer_context_default,
|
|
287
|
+
Control: () => timer_control_default,
|
|
288
|
+
Item: () => timer_item_default,
|
|
289
|
+
Root: () => timer_root_default,
|
|
290
|
+
RootProvider: () => timer_root_provider_default,
|
|
291
|
+
Separator: () => timer_separator_default
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
//#endregion
|
|
295
|
+
export { timer_exports as Timer, timer_action_trigger_default as TimerActionTrigger, timer_area_default as TimerArea, timer_context_default as TimerContext, timer_control_default as TimerControl, timer_item_default as TimerItem, timer_root_default as TimerRoot, timer_root_provider_default as TimerRootProvider, timer_separator_default as TimerSeparator, timerAnatomy, useTimer, useTimerContext };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-B5zr8_kk.js";
|
|
2
|
+
import { a as Optional } from "../../types-DIEO6uP3.js";
|
|
3
|
+
import { r as PropTypes } from "../../index-CCRVRFFQ.js";
|
|
4
|
+
import * as vue448 from "vue";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, SlotsType, UnwrapRef, VNodeChild } from "vue";
|
|
6
|
+
import * as toast from "@sprawlify/primitives/machines/toast";
|
|
7
|
+
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 "@sprawlify/primitives/machines/toast";
|
|
8
|
+
|
|
9
|
+
//#region src/components/toast/create-toaster.d.ts
|
|
10
|
+
interface CreateToasterProps extends Optional<Partial<toast.StoreProps>, 'placement'> {
|
|
11
|
+
placement: toast.Placement;
|
|
12
|
+
}
|
|
13
|
+
interface CreateToasterReturn extends toast.Store<VNodeChild> {}
|
|
14
|
+
declare const createToaster: (props: CreateToasterProps) => CreateToasterReturn;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/toast/toast-action-trigger.vue.d.ts
|
|
17
|
+
interface ToastActionTriggerBaseProps extends PolymorphicProps {}
|
|
18
|
+
interface ToastActionTriggerProps extends ToastActionTriggerBaseProps,
|
|
19
|
+
/**
|
|
20
|
+
* @vue-ignore
|
|
21
|
+
*/
|
|
22
|
+
ButtonHTMLAttributes {}
|
|
23
|
+
declare const _default: typeof __VLS_export$6;
|
|
24
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<vue448.DefineComponent<ToastActionTriggerProps, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<ToastActionTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>, {
|
|
25
|
+
default?: (props: {}) => any;
|
|
26
|
+
}>;
|
|
27
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/toast/toast-close-trigger.vue.d.ts
|
|
34
|
+
interface ToastCloseTriggerBaseProps extends PolymorphicProps {}
|
|
35
|
+
interface ToastCloseTriggerProps extends ToastCloseTriggerBaseProps,
|
|
36
|
+
/**
|
|
37
|
+
* @vue-ignore
|
|
38
|
+
*/
|
|
39
|
+
ButtonHTMLAttributes {}
|
|
40
|
+
declare const _default$1: typeof __VLS_export$5;
|
|
41
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue448.DefineComponent<ToastCloseTriggerProps, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<ToastCloseTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>, {
|
|
42
|
+
default?: (props: {}) => any;
|
|
43
|
+
}>;
|
|
44
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/toast/use-toast-context.d.ts
|
|
51
|
+
interface UseToastContext extends ComputedRef<toast.Api<PropTypes>> {}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/toast/toast-context.vue.d.ts
|
|
54
|
+
interface ToastContextProps extends SlotsType<{
|
|
55
|
+
default: UnwrapRef<UseToastContext>;
|
|
56
|
+
}> {}
|
|
57
|
+
declare const _default$2: typeof __VLS_export$4;
|
|
58
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue448.DefineComponent<{}, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, true, {}, any>, {
|
|
59
|
+
default(toast: UnwrapRef<UseToastContext>): unknown;
|
|
60
|
+
}>;
|
|
61
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/toast/toast-description.vue.d.ts
|
|
68
|
+
interface ToastDescriptionBaseProps extends PolymorphicProps {}
|
|
69
|
+
interface ToastDescriptionProps extends ToastDescriptionBaseProps,
|
|
70
|
+
/**
|
|
71
|
+
* @vue-ignore
|
|
72
|
+
*/
|
|
73
|
+
HTMLAttributes {}
|
|
74
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
75
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue448.DefineComponent<ToastDescriptionProps, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<ToastDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>, {
|
|
76
|
+
default?: (props: {}) => any;
|
|
77
|
+
}>;
|
|
78
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/toast/toast-root.vue.d.ts
|
|
85
|
+
interface ToastRootBaseProps extends PolymorphicProps {}
|
|
86
|
+
interface ToastRootProps extends ToastRootBaseProps,
|
|
87
|
+
/**
|
|
88
|
+
* @vue-ignore
|
|
89
|
+
*/
|
|
90
|
+
HTMLAttributes {}
|
|
91
|
+
declare const _default$4: typeof __VLS_export$2;
|
|
92
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue448.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<ToastRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>, {
|
|
93
|
+
default?: (props: {}) => any;
|
|
94
|
+
}>;
|
|
95
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/toast/toast-title.vue.d.ts
|
|
102
|
+
interface ToastTitleBaseProps extends PolymorphicProps {}
|
|
103
|
+
interface ToastTitleProps extends ToastTitleBaseProps,
|
|
104
|
+
/**
|
|
105
|
+
* @vue-ignore
|
|
106
|
+
*/
|
|
107
|
+
HTMLAttributes {}
|
|
108
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
109
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue448.DefineComponent<ToastTitleProps, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<ToastTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>, {
|
|
110
|
+
default?: (props: {}) => any;
|
|
111
|
+
}>;
|
|
112
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/toast/toaster.vue.d.ts
|
|
119
|
+
type ToastOptions = toast.Options<VNodeChild>;
|
|
120
|
+
interface ToasterBaseProps extends PolymorphicProps {
|
|
121
|
+
toaster: CreateToasterReturn;
|
|
122
|
+
}
|
|
123
|
+
interface ToasterProps extends ToasterBaseProps, /** @vue-ignore */HTMLAttributes, /** @vue-ignore */SlotsType<{
|
|
124
|
+
default: ToastOptions;
|
|
125
|
+
}> {}
|
|
126
|
+
declare var __VLS_15: {
|
|
127
|
+
title?: VNodeChild;
|
|
128
|
+
description?: VNodeChild;
|
|
129
|
+
duration?: number | undefined;
|
|
130
|
+
removeDelay?: number | undefined;
|
|
131
|
+
id?: string | undefined;
|
|
132
|
+
type?: toast.Type | undefined;
|
|
133
|
+
onStatusChange?: ((details: toast.StatusChangeDetails) => void) | undefined;
|
|
134
|
+
action?: toast.ActionOptions | undefined;
|
|
135
|
+
closable?: boolean | undefined;
|
|
136
|
+
meta?: Record<string, any> | undefined;
|
|
137
|
+
promise?: Promise<any> | (() => Promise<any>) | undefined;
|
|
138
|
+
};
|
|
139
|
+
type __VLS_Slots = {} & {
|
|
140
|
+
default?: (props: typeof __VLS_15) => any;
|
|
141
|
+
};
|
|
142
|
+
declare const __VLS_base: vue448.DefineComponent<{}, {}, {}, {}, {}, vue448.ComponentOptionsMixin, vue448.ComponentOptionsMixin, {}, string, vue448.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue448.ComponentProvideOptions, false, {}, any>;
|
|
143
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
144
|
+
declare const _default$6: typeof __VLS_export;
|
|
145
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
146
|
+
new (): {
|
|
147
|
+
$slots: S;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
declare namespace toast_d_exports {
|
|
151
|
+
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 };
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
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 };
|