beeple-toolkit 1.0.43 → 1.0.44
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/beeple-toolkit.css +1 -1
- package/dist/beeple-toolkit.es.js +890 -891
- package/dist/beeple-toolkit.umd.js +1 -1
- package/dist/stores/toast.d.ts +14 -16
- package/package.json +1 -1
package/dist/stores/toast.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import type { ButtonType } from '../components/constants';
|
|
1
2
|
export type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
3
|
+
export interface ToastAction {
|
|
4
|
+
label: string;
|
|
5
|
+
action: () => void;
|
|
6
|
+
style?: ButtonType;
|
|
7
|
+
}
|
|
2
8
|
export interface Toast {
|
|
3
9
|
id: string;
|
|
4
10
|
title?: string;
|
|
@@ -8,11 +14,7 @@ export interface Toast {
|
|
|
8
14
|
persistent?: boolean;
|
|
9
15
|
withIcon?: boolean;
|
|
10
16
|
allowHtml?: boolean;
|
|
11
|
-
actions?:
|
|
12
|
-
label: string;
|
|
13
|
-
action: () => void;
|
|
14
|
-
style?: 'primary' | 'secondary';
|
|
15
|
-
}>;
|
|
17
|
+
actions?: ToastAction[];
|
|
16
18
|
}
|
|
17
19
|
export interface ToastOptions {
|
|
18
20
|
title?: string;
|
|
@@ -22,11 +24,7 @@ export interface ToastOptions {
|
|
|
22
24
|
persistent?: boolean;
|
|
23
25
|
withIcon?: boolean;
|
|
24
26
|
allowHtml?: boolean;
|
|
25
|
-
actions?:
|
|
26
|
-
label: string;
|
|
27
|
-
action: () => void;
|
|
28
|
-
style?: 'primary' | 'secondary';
|
|
29
|
-
}>;
|
|
27
|
+
actions?: ToastAction[];
|
|
30
28
|
}
|
|
31
29
|
export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pick<{
|
|
32
30
|
toasts: import("vue").Ref<{
|
|
@@ -41,7 +39,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
41
39
|
actions?: {
|
|
42
40
|
label: string;
|
|
43
41
|
action: () => void;
|
|
44
|
-
style?:
|
|
42
|
+
style?: ButtonType | undefined;
|
|
45
43
|
}[] | undefined;
|
|
46
44
|
}[], Toast[] | {
|
|
47
45
|
id: string;
|
|
@@ -55,7 +53,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
55
53
|
actions?: {
|
|
56
54
|
label: string;
|
|
57
55
|
action: () => void;
|
|
58
|
-
style?:
|
|
56
|
+
style?: ButtonType | undefined;
|
|
59
57
|
}[] | undefined;
|
|
60
58
|
}[]>;
|
|
61
59
|
addToast: (options: ToastOptions) => string;
|
|
@@ -78,7 +76,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
78
76
|
actions?: {
|
|
79
77
|
label: string;
|
|
80
78
|
action: () => void;
|
|
81
|
-
style?:
|
|
79
|
+
style?: ButtonType | undefined;
|
|
82
80
|
}[] | undefined;
|
|
83
81
|
}[], Toast[] | {
|
|
84
82
|
id: string;
|
|
@@ -92,7 +90,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
92
90
|
actions?: {
|
|
93
91
|
label: string;
|
|
94
92
|
action: () => void;
|
|
95
|
-
style?:
|
|
93
|
+
style?: ButtonType | undefined;
|
|
96
94
|
}[] | undefined;
|
|
97
95
|
}[]>;
|
|
98
96
|
addToast: (options: ToastOptions) => string;
|
|
@@ -115,7 +113,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
115
113
|
actions?: {
|
|
116
114
|
label: string;
|
|
117
115
|
action: () => void;
|
|
118
|
-
style?:
|
|
116
|
+
style?: ButtonType | undefined;
|
|
119
117
|
}[] | undefined;
|
|
120
118
|
}[], Toast[] | {
|
|
121
119
|
id: string;
|
|
@@ -129,7 +127,7 @@ export declare const useToastStore: import("pinia").StoreDefinition<"toast", Pic
|
|
|
129
127
|
actions?: {
|
|
130
128
|
label: string;
|
|
131
129
|
action: () => void;
|
|
132
|
-
style?:
|
|
130
|
+
style?: ButtonType | undefined;
|
|
133
131
|
}[] | undefined;
|
|
134
132
|
}[]>;
|
|
135
133
|
addToast: (options: ToastOptions) => string;
|