@elliemae/ds-toast 2.0.0-rc.6 → 2.0.0
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/package.json +5 -5
- package/types/DSToast.d.ts +63 -9
- package/types/ToastAction.d.ts +35 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-toast",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Toast",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"build": "node ../../scripts/build/build.js"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@elliemae/ds-button": "2.0.0
|
|
60
|
-
"@elliemae/ds-classnames": "2.0.0
|
|
61
|
-
"@elliemae/ds-icons": "2.0.0
|
|
62
|
-
"@elliemae/ds-system": "2.0.0
|
|
59
|
+
"@elliemae/ds-button": "2.0.0",
|
|
60
|
+
"@elliemae/ds-classnames": "2.0.0",
|
|
61
|
+
"@elliemae/ds-icons": "2.0.0",
|
|
62
|
+
"@elliemae/ds-system": "2.0.0",
|
|
63
63
|
"prop-types": "~15.7.2",
|
|
64
64
|
"react-desc": "~4.1.3",
|
|
65
65
|
"react-toastify": "~6.2.0"
|
package/types/DSToast.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSToast: {
|
|
3
4
|
({ containerProps, position, autoClose, showProgressBar, closeOnClick, enableMultiContainer, containerId, toastId, }: {
|
|
@@ -12,23 +13,76 @@ declare const DSToast: {
|
|
|
12
13
|
}): JSX.Element;
|
|
13
14
|
propTypes: {
|
|
14
15
|
/** inject props to wrapper */
|
|
15
|
-
containerProps:
|
|
16
|
+
containerProps: {
|
|
17
|
+
defaultValue<T = unknown>(arg: T): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
16
22
|
/** Position on the screen to show the toast */
|
|
17
|
-
position:
|
|
23
|
+
position: {
|
|
24
|
+
defaultValue<T = unknown>(arg: T): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
18
29
|
/** ms to autoclose the toast */
|
|
19
|
-
autoClose:
|
|
30
|
+
autoClose: {
|
|
31
|
+
defaultValue<T = unknown>(arg: T): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
20
36
|
/** Whether to show a progress bar indicating when the toast is going to be closed */
|
|
21
|
-
showProgressBar:
|
|
37
|
+
showProgressBar: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
22
43
|
/** Close toast handler */
|
|
23
|
-
closeOnClick:
|
|
44
|
+
closeOnClick: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
24
50
|
/** Allows instantiating multiple Toast containers */
|
|
25
|
-
enableMultiContainer:
|
|
51
|
+
enableMultiContainer: {
|
|
52
|
+
defaultValue<T = unknown>(arg: T): {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
26
57
|
/** unique id for multi container */
|
|
27
|
-
containerId:
|
|
58
|
+
containerId: {
|
|
59
|
+
defaultValue<T = unknown>(arg: T): {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
28
64
|
/** id for the toast */
|
|
29
|
-
toastId:
|
|
65
|
+
toastId: {
|
|
66
|
+
defaultValue<T = unknown>(arg: T): {
|
|
67
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
69
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
30
71
|
};
|
|
31
72
|
};
|
|
32
|
-
declare const DSToastWithSchema:
|
|
73
|
+
declare const DSToastWithSchema: {
|
|
74
|
+
(props?: {
|
|
75
|
+
containerProps?: {} | undefined;
|
|
76
|
+
position?: string | undefined;
|
|
77
|
+
autoClose?: number | undefined;
|
|
78
|
+
showProgressBar?: boolean | undefined;
|
|
79
|
+
closeOnClick?: boolean | undefined;
|
|
80
|
+
enableMultiContainer?: boolean | undefined;
|
|
81
|
+
containerId?: undefined;
|
|
82
|
+
toastId?: undefined;
|
|
83
|
+
} | undefined): JSX.Element;
|
|
84
|
+
propTypes: unknown;
|
|
85
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
86
|
+
};
|
|
33
87
|
export { DSToast, DSToastWithSchema };
|
|
34
88
|
export default DSToast;
|
package/types/ToastAction.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSToastAction: {
|
|
3
4
|
({ children, onClick, onKeyDown }: {
|
|
@@ -7,11 +8,26 @@ declare const DSToastAction: {
|
|
|
7
8
|
}): JSX.Element;
|
|
8
9
|
propTypes: {
|
|
9
10
|
/** DSToastActionLink component or text string */
|
|
10
|
-
children:
|
|
11
|
+
children: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
11
17
|
/** click handler */
|
|
12
|
-
onClick:
|
|
18
|
+
onClick: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
13
24
|
/** key down handler */
|
|
14
|
-
onKeyDown:
|
|
25
|
+
onKeyDown: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
15
31
|
};
|
|
16
32
|
};
|
|
17
33
|
declare const DSToastActionLink: {
|
|
@@ -23,6 +39,20 @@ declare const DSToastActionLink: {
|
|
|
23
39
|
children: any;
|
|
24
40
|
};
|
|
25
41
|
};
|
|
26
|
-
declare const DSToastActionWithSchema:
|
|
27
|
-
|
|
42
|
+
declare const DSToastActionWithSchema: {
|
|
43
|
+
(props?: {
|
|
44
|
+
children: any;
|
|
45
|
+
onClick: any;
|
|
46
|
+
onKeyDown: any;
|
|
47
|
+
} | undefined): JSX.Element;
|
|
48
|
+
propTypes: unknown;
|
|
49
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
50
|
+
};
|
|
51
|
+
declare const DSToastActionLinkWithSchema: {
|
|
52
|
+
(props?: {
|
|
53
|
+
children: any;
|
|
54
|
+
} | undefined): JSX.Element;
|
|
55
|
+
propTypes: unknown;
|
|
56
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
57
|
+
};
|
|
28
58
|
export { DSToastAction, DSToastActionLink, DSToastActionWithSchema, DSToastActionLinkWithSchema, };
|