demio-ui 2.5.69 → 2.5.71
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/cjs/index.css +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/types/src/components/Toast/Toast.d.ts +1 -1
- package/dist/cjs/types/src/utils/toast/toast.d.ts +2 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/types/src/components/Toast/Toast.d.ts +1 -1
- package/dist/esm/types/src/utils/toast/toast.d.ts +2 -1
- package/dist/types.d.ts +3 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export interface IToast {
|
|
|
8
8
|
message?: ReactNode;
|
|
9
9
|
onClose?: (id: number) => void;
|
|
10
10
|
style?: CSSProperties;
|
|
11
|
-
type?: 'error' | 'info' | 'success';
|
|
11
|
+
type?: 'error' | 'info' | 'success' | 'warning';
|
|
12
12
|
}
|
|
13
13
|
declare const Toast: FC<IToast>;
|
|
14
14
|
export default Toast;
|
|
@@ -12,9 +12,10 @@ declare class ToastManager {
|
|
|
12
12
|
private add;
|
|
13
13
|
private processQueue;
|
|
14
14
|
private addToQueue;
|
|
15
|
+
error: (options: IToast) => void;
|
|
15
16
|
info: (options: IToast) => void;
|
|
16
17
|
success: (options: IToast) => void;
|
|
17
|
-
|
|
18
|
+
warning: (options: IToast) => void;
|
|
18
19
|
}
|
|
19
20
|
export declare const toast: ToastManager;
|
|
20
21
|
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -464,7 +464,7 @@ interface IToast {
|
|
|
464
464
|
message?: ReactNode;
|
|
465
465
|
onClose?: (id: number) => void;
|
|
466
466
|
style?: CSSProperties;
|
|
467
|
-
type?: 'error' | 'info' | 'success';
|
|
467
|
+
type?: 'error' | 'info' | 'success' | 'warning';
|
|
468
468
|
}
|
|
469
469
|
declare const Toast: FC<IToast>;
|
|
470
470
|
|
|
@@ -2430,9 +2430,10 @@ declare class ToastManager {
|
|
|
2430
2430
|
private add;
|
|
2431
2431
|
private processQueue;
|
|
2432
2432
|
private addToQueue;
|
|
2433
|
+
error: (options: IToast) => void;
|
|
2433
2434
|
info: (options: IToast) => void;
|
|
2434
2435
|
success: (options: IToast) => void;
|
|
2435
|
-
|
|
2436
|
+
warning: (options: IToast) => void;
|
|
2436
2437
|
}
|
|
2437
2438
|
declare const toast: ToastManager;
|
|
2438
2439
|
|