@particle-network/ui-react 0.3.0-beta.10 → 0.3.0-beta.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.
|
@@ -4,7 +4,7 @@ export type UXToastProps = Partial<ToastProps> & {
|
|
|
4
4
|
type: UXToastType;
|
|
5
5
|
};
|
|
6
6
|
export declare const UXToastProvider: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const toast: {
|
|
8
8
|
success: (message: string, props?: Partial<ToastProps>) => string | null;
|
|
9
9
|
error: (message: string, props?: Partial<ToastProps>) => string | null;
|
|
10
10
|
loading: (message: string, props?: Partial<ToastProps>) => string | null;
|
|
@@ -12,5 +12,5 @@ export declare const UXToast: {
|
|
|
12
12
|
type: UXToastType;
|
|
13
13
|
}) => string | null;
|
|
14
14
|
closeAll: () => void;
|
|
15
|
-
|
|
15
|
+
close: (key: string) => void;
|
|
16
16
|
};
|
|
@@ -67,7 +67,7 @@ const show = (props)=>{
|
|
|
67
67
|
...toastProps
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
-
const
|
|
70
|
+
const toast = {
|
|
71
71
|
success: (message, props)=>show({
|
|
72
72
|
type: 'success',
|
|
73
73
|
description: message,
|
|
@@ -86,6 +86,6 @@ const UXToast = {
|
|
|
86
86
|
}),
|
|
87
87
|
show,
|
|
88
88
|
closeAll: closeAll,
|
|
89
|
-
|
|
89
|
+
close: closeToast
|
|
90
90
|
};
|
|
91
|
-
export {
|
|
91
|
+
export { UXToastProvider, toast };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"ahooks": "^3.9.4",
|
|
51
|
-
"@particle-network/
|
|
52
|
-
"@particle-network/
|
|
51
|
+
"@particle-network/ui-shared": "0.2.0-beta.3",
|
|
52
|
+
"@particle-network/icons": "0.3.0-beta.6"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "rslib build",
|