@sidekick-coder/zenith-kit 0.3.9 → 0.3.11

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.
@@ -1,54 +1,2 @@
1
- import { Component, CSSProperties } from 'vue';
2
- import { ExternalToast, Action, ToastT, ToastClasses, PromiseIExtendedResult, ToastToDismiss } from 'vue-sonner';
3
- export declare const $toast: ((message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number) & {
4
- success: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
5
- info: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
6
- warning: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
7
- error: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
8
- custom: (component: Component, data?: ExternalToast) => string | number;
9
- message: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
10
- promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
11
- id?: number | string | undefined;
12
- action?: ( Action | Component) | undefined;
13
- icon?: Component | undefined;
14
- component?: Component | undefined;
15
- position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
16
- style?: CSSProperties | undefined;
17
- toasterId?: string | undefined;
18
- componentProps?: any;
19
- richColors?: boolean | undefined;
20
- invert?: boolean | undefined;
21
- closeButton?: boolean | undefined;
22
- dismissible?: boolean | undefined;
23
- duration?: number | undefined;
24
- important?: boolean | undefined;
25
- cancel?: ( Action | Component) | undefined;
26
- onDismiss?: ((toast: ToastT) => void) | undefined;
27
- onAutoClose?: ((toast: ToastT) => void) | undefined;
28
- cancelButtonStyle?: CSSProperties | undefined;
29
- actionButtonStyle?: CSSProperties | undefined;
30
- unstyled?: boolean | undefined;
31
- class?: string | undefined;
32
- classes?: ToastClasses | undefined;
33
- descriptionClass?: string | undefined;
34
- closeButtonPosition?: ("top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
35
- testId?: string | undefined;
36
- } & {
37
- loading?: string | Component;
38
- success?: (string | Component | ((data: ToastData) => Component | string | Promise< Component | string>)) | ( PromiseIExtendedResult | ((data: ToastData) => PromiseIExtendedResult | Promise< PromiseIExtendedResult>)) | undefined;
39
- error?: (string | Component | ((data: any) => Component | string | Promise< Component | string>)) | ( PromiseIExtendedResult | ((data: any) => PromiseIExtendedResult | Promise< PromiseIExtendedResult>));
40
- description?: string | Component | ((data: any) => Component | string | Promise< Component | string>);
41
- finally?: () => void | Promise<void>;
42
- }) | undefined) => (string & {
43
- unwrap: () => Promise<ToastData>;
44
- }) | (number & {
45
- unwrap: () => Promise<ToastData>;
46
- }) | {
47
- unwrap: () => Promise<ToastData>;
48
- } | undefined;
49
- dismiss: (id?: number | string) => string | number | undefined;
50
- loading: (message: string | (() => string | Component) | Component, data?: ExternalToast) => string | number;
51
- } & {
52
- getHistory: () => ( ToastT<Component> | ToastToDismiss)[];
53
- getToasts: () => ( ToastT<Component> | ToastToDismiss)[];
54
- };
1
+ import { ToastService } from '..';
2
+ export declare const $toast: ToastService;