kwant-ui 3.21.0 → 3.21.2
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.
|
@@ -7,7 +7,7 @@ export type IconProps = {
|
|
|
7
7
|
fill?: string;
|
|
8
8
|
width?: number;
|
|
9
9
|
height?: number;
|
|
10
|
-
onClick?: () => void;
|
|
10
|
+
onClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
|
|
11
11
|
onComplete?: (name: string, icon: React.FC<React.SVGProps<SVGSVGElement>> | undefined) => void;
|
|
12
12
|
onError?: (err: Error) => void;
|
|
13
13
|
};
|
|
@@ -30,7 +30,7 @@ export type PromiseFnOptions = {
|
|
|
30
30
|
onError?: (error: any) => void;
|
|
31
31
|
onFinally?: () => void;
|
|
32
32
|
};
|
|
33
|
-
export type GeneralToastFn = (message:
|
|
33
|
+
export type GeneralToastFn = (message: IToast['message'], config?: IToast['config']) => string;
|
|
34
34
|
export type PromiseToastFn = (promise: Promise<unknown>, options: PromiseFnOptions) => string;
|
|
35
35
|
export interface IToastContext {
|
|
36
36
|
toast: {
|
package/dist/package.json
CHANGED