@sinco/react 1.0.3 → 1.0.4-rc.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,18 +1,22 @@
|
|
1
|
-
import { ReactElement } from
|
1
|
+
import { ReactElement } from "react";
|
2
2
|
export interface Option {
|
3
3
|
}
|
4
4
|
export interface Toast {
|
5
5
|
type?: string;
|
6
|
-
|
6
|
+
description?: string;
|
7
7
|
time?: number | any;
|
8
8
|
title?: string;
|
9
9
|
dataOpt?: Option[];
|
10
10
|
actions?: React.ReactNode;
|
11
11
|
seeMore?: boolean;
|
12
|
+
position?: string;
|
12
13
|
}
|
13
14
|
export interface IconMap {
|
14
15
|
[key: string]: ReactElement;
|
15
16
|
}
|
16
17
|
export interface ColorMap {
|
17
|
-
[key: string]:
|
18
|
+
[key: string]: "success" | "error" | "warning" | "info";
|
19
|
+
}
|
20
|
+
export interface position {
|
21
|
+
[key: string]: "center" | "flex-end" | "flex-start";
|
18
22
|
}
|