@elliemae/ds-toast 2.3.0-alpha.2 → 2.3.0-alpha.7
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/{cjs → dist/cjs}/DSToast.js +0 -0
- package/{cjs → dist/cjs}/DSToast.js.map +0 -0
- package/{cjs → dist/cjs}/ToastAction.js +0 -0
- package/{cjs → dist/cjs}/ToastAction.js.map +0 -0
- package/{cjs → dist/cjs}/ToastPosition.js +0 -0
- package/{cjs → dist/cjs}/ToastPosition.js.map +0 -0
- package/{cjs → dist/cjs}/ToastRender.js +0 -0
- package/{cjs → dist/cjs}/ToastRender.js.map +0 -0
- package/{cjs → dist/cjs}/ToastType.js +0 -0
- package/{cjs → dist/cjs}/ToastType.js.map +0 -0
- package/{cjs → dist/cjs}/index.js +0 -0
- package/{cjs → dist/cjs}/index.js.map +0 -0
- package/{cjs → dist/cjs}/toast.js +0 -0
- package/{cjs → dist/cjs}/toast.js.map +0 -0
- package/{esm → dist/esm}/DSToast.js +0 -0
- package/{esm → dist/esm}/DSToast.js.map +0 -0
- package/{esm → dist/esm}/ToastAction.js +0 -0
- package/{esm → dist/esm}/ToastAction.js.map +0 -0
- package/{esm → dist/esm}/ToastPosition.js +0 -0
- package/{esm → dist/esm}/ToastPosition.js.map +0 -0
- package/{esm → dist/esm}/ToastRender.js +0 -0
- package/{esm → dist/esm}/ToastRender.js.map +0 -0
- package/{esm → dist/esm}/ToastType.js +0 -0
- package/{esm → dist/esm}/ToastType.js.map +0 -0
- package/{esm → dist/esm}/index.js +0 -0
- package/{esm → dist/esm}/index.js.map +0 -0
- package/{esm → dist/esm}/toast.js +0 -0
- package/{esm → dist/esm}/toast.js.map +0 -0
- package/package.json +34 -32
- package/types/DSToast.d.ts +0 -79
- package/types/ToastAction.d.ts +0 -52
- package/types/ToastPosition.d.ts +0 -9
- package/types/ToastRender.d.ts +0 -24
- package/types/ToastType.d.ts +0 -8
- package/types/index.d.ts +0 -6
- package/types/toast.d.ts +0 -38
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-toast",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Toast",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./ToastType": {
|
|
15
|
-
"import": "./esm/ToastType.js",
|
|
16
|
-
"require": "./cjs/ToastType.js"
|
|
18
|
+
"import": "./dist/esm/ToastType.js",
|
|
19
|
+
"require": "./dist/cjs/ToastType.js"
|
|
17
20
|
},
|
|
18
21
|
"./ToastRender": {
|
|
19
|
-
"import": "./esm/ToastRender.js",
|
|
20
|
-
"require": "./cjs/ToastRender.js"
|
|
22
|
+
"import": "./dist/esm/ToastRender.js",
|
|
23
|
+
"require": "./dist/cjs/ToastRender.js"
|
|
21
24
|
},
|
|
22
25
|
"./ToastPosition": {
|
|
23
|
-
"import": "./esm/ToastPosition.js",
|
|
24
|
-
"require": "./cjs/ToastPosition.js"
|
|
26
|
+
"import": "./dist/esm/ToastPosition.js",
|
|
27
|
+
"require": "./dist/cjs/ToastPosition.js"
|
|
25
28
|
},
|
|
26
29
|
"./ToastAction": {
|
|
27
|
-
"import": "./esm/ToastAction.js",
|
|
28
|
-
"require": "./cjs/ToastAction.js"
|
|
30
|
+
"import": "./dist/esm/ToastAction.js",
|
|
31
|
+
"require": "./dist/cjs/ToastAction.js"
|
|
29
32
|
},
|
|
30
33
|
"./toast": {
|
|
31
|
-
"import": "./esm/toast.js",
|
|
32
|
-
"require": "./cjs/toast.js"
|
|
34
|
+
"import": "./dist/esm/toast.js",
|
|
35
|
+
"require": "./dist/cjs/toast.js"
|
|
33
36
|
},
|
|
34
37
|
"./DSToast": {
|
|
35
|
-
"import": "./esm/DSToast.js",
|
|
36
|
-
"require": "./cjs/DSToast.js"
|
|
38
|
+
"import": "./dist/esm/DSToast.js",
|
|
39
|
+
"require": "./dist/cjs/DSToast.js"
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
42
|
"sideEffects": [
|
|
@@ -45,21 +48,15 @@
|
|
|
45
48
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
46
49
|
},
|
|
47
50
|
"engines": {
|
|
48
|
-
"
|
|
49
|
-
"node": ">=
|
|
51
|
+
"pnpm": ">=6",
|
|
52
|
+
"node": ">=16"
|
|
50
53
|
},
|
|
51
54
|
"author": "ICE MT",
|
|
52
|
-
"scripts": {
|
|
53
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
54
|
-
"prebuild": "exit 0",
|
|
55
|
-
"predev": "exit 0",
|
|
56
|
-
"build": "node ../../scripts/build/build.js"
|
|
57
|
-
},
|
|
58
55
|
"dependencies": {
|
|
59
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
60
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
61
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
62
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
56
|
+
"@elliemae/ds-button": "2.3.0-alpha.7",
|
|
57
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.7",
|
|
58
|
+
"@elliemae/ds-icons": "2.3.0-alpha.7",
|
|
59
|
+
"@elliemae/ds-system": "2.3.0-alpha.7",
|
|
63
60
|
"prop-types": "~15.7.2",
|
|
64
61
|
"react-desc": "~4.1.3",
|
|
65
62
|
"react-toastify": "~6.2.0"
|
|
@@ -75,7 +72,12 @@
|
|
|
75
72
|
},
|
|
76
73
|
"publishConfig": {
|
|
77
74
|
"access": "public",
|
|
78
|
-
"
|
|
79
|
-
|
|
75
|
+
"typeSafety": false
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
79
|
+
"prebuild": "exit 0",
|
|
80
|
+
"predev": "exit 0",
|
|
81
|
+
"build": "node ../../scripts/build/build.js"
|
|
80
82
|
}
|
|
81
83
|
}
|
package/types/DSToast.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSToast: {
|
|
4
|
-
({ containerProps, position, autoClose, showProgressBar, closeOnClick, enableMultiContainer, containerId, toastId, }: {
|
|
5
|
-
containerProps?: {} | undefined;
|
|
6
|
-
position?: string | undefined;
|
|
7
|
-
autoClose?: number | undefined;
|
|
8
|
-
showProgressBar?: boolean | undefined;
|
|
9
|
-
closeOnClick?: boolean | undefined;
|
|
10
|
-
enableMultiContainer?: boolean | undefined;
|
|
11
|
-
containerId?: undefined;
|
|
12
|
-
toastId?: undefined;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
/** inject props to wrapper */
|
|
16
|
-
containerProps: {
|
|
17
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
-
};
|
|
20
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
|
-
};
|
|
22
|
-
/** Position on the screen to show the toast */
|
|
23
|
-
position: {
|
|
24
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
-
};
|
|
27
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
-
};
|
|
29
|
-
/** ms to autoclose the toast */
|
|
30
|
-
autoClose: {
|
|
31
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
-
};
|
|
34
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
-
};
|
|
36
|
-
/** Whether to show a progress bar indicating when the toast is going to be closed */
|
|
37
|
-
showProgressBar: {
|
|
38
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
39
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
-
};
|
|
41
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
42
|
-
};
|
|
43
|
-
/** Close toast handler */
|
|
44
|
-
closeOnClick: {
|
|
45
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
46
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
-
};
|
|
48
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
49
|
-
};
|
|
50
|
-
/** Allows instantiating multiple Toast containers */
|
|
51
|
-
enableMultiContainer: {
|
|
52
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
53
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
-
};
|
|
55
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
56
|
-
};
|
|
57
|
-
/** unique id for multi container */
|
|
58
|
-
containerId: {
|
|
59
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
60
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
-
};
|
|
62
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
63
|
-
};
|
|
64
|
-
/** id for the toast */
|
|
65
|
-
toastId: {
|
|
66
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
67
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
-
};
|
|
69
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
declare const DSToastWithSchema: {
|
|
74
|
-
(props?: unknown): JSX.Element;
|
|
75
|
-
propTypes: unknown;
|
|
76
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
77
|
-
};
|
|
78
|
-
export { DSToast, DSToastWithSchema };
|
|
79
|
-
export default DSToast;
|
package/types/ToastAction.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSToastAction: {
|
|
4
|
-
({ children, onClick, onKeyDown }: {
|
|
5
|
-
children: any;
|
|
6
|
-
onClick: any;
|
|
7
|
-
onKeyDown: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
/** DSToastActionLink component or text string */
|
|
11
|
-
children: {
|
|
12
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
-
};
|
|
15
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
|
-
};
|
|
17
|
-
/** click handler */
|
|
18
|
-
onClick: {
|
|
19
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
20
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
-
};
|
|
22
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
23
|
-
};
|
|
24
|
-
/** key down handler */
|
|
25
|
-
onKeyDown: {
|
|
26
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
-
};
|
|
29
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
declare const DSToastActionLink: {
|
|
34
|
-
({ children }: {
|
|
35
|
-
children: any;
|
|
36
|
-
}): JSX.Element;
|
|
37
|
-
propTypes: {
|
|
38
|
-
/** link text */
|
|
39
|
-
children: any;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
declare const DSToastActionWithSchema: {
|
|
43
|
-
(props?: unknown): JSX.Element;
|
|
44
|
-
propTypes: unknown;
|
|
45
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
46
|
-
};
|
|
47
|
-
declare const DSToastActionLinkWithSchema: {
|
|
48
|
-
(props?: unknown): JSX.Element;
|
|
49
|
-
propTypes: unknown;
|
|
50
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
51
|
-
};
|
|
52
|
-
export { DSToastAction, DSToastActionLink, DSToastActionWithSchema, DSToastActionLinkWithSchema, };
|
package/types/ToastPosition.d.ts
DELETED
package/types/ToastRender.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
declare const ToastRender: {
|
|
4
|
-
({ type, messageTitle, messageText }: {
|
|
5
|
-
type?: string | undefined;
|
|
6
|
-
messageTitle?: string | undefined;
|
|
7
|
-
messageText?: string | undefined;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
/**
|
|
11
|
-
* Toast title
|
|
12
|
-
*/
|
|
13
|
-
messageTitle: PropTypes.Validator<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Toast body, either a string or Action with ActionLink component
|
|
16
|
-
*/
|
|
17
|
-
messageText: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
18
|
-
/**
|
|
19
|
-
* Toast type
|
|
20
|
-
*/
|
|
21
|
-
type: PropTypes.Validator<string>;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default ToastRender;
|
package/types/ToastType.d.ts
DELETED
package/types/index.d.ts
DELETED
package/types/toast.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const toast: (({ type, messageTitle, messageText, ...rest }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
type: any;
|
|
5
|
-
messageTitle: any;
|
|
6
|
-
messageText: any;
|
|
7
|
-
}, options: any) => React.ReactText) & {
|
|
8
|
-
isActive: (id: any) => boolean;
|
|
9
|
-
success(content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined): React.ReactText;
|
|
10
|
-
info(content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined): React.ReactText;
|
|
11
|
-
error(content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined): React.ReactText;
|
|
12
|
-
warning(content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined): React.ReactText;
|
|
13
|
-
dark(content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined): React.ReactText;
|
|
14
|
-
warn: (content: import("react-toastify").ToastContent, options?: import("react-toastify").ToastOptions | undefined) => React.ReactText;
|
|
15
|
-
dismiss(id?: string | number | undefined): false | void;
|
|
16
|
-
clearWaitingQueue(params?: import("react-toastify").ClearWaitingQueueParams | undefined): false | void;
|
|
17
|
-
update(toastId: import("react-toastify").Id, options?: import("react-toastify").UpdateOptions | undefined): void;
|
|
18
|
-
done(id: import("react-toastify").Id): void;
|
|
19
|
-
onChange(callback: import("react-toastify/dist/core").OnChangeCallback): () => void;
|
|
20
|
-
configure(config?: import("react-toastify").ToastContainerProps | undefined): void;
|
|
21
|
-
POSITION: {
|
|
22
|
-
TOP_LEFT: import("react-toastify").ToastPosition;
|
|
23
|
-
TOP_RIGHT: import("react-toastify").ToastPosition;
|
|
24
|
-
TOP_CENTER: import("react-toastify").ToastPosition;
|
|
25
|
-
BOTTOM_LEFT: import("react-toastify").ToastPosition;
|
|
26
|
-
BOTTOM_RIGHT: import("react-toastify").ToastPosition;
|
|
27
|
-
BOTTOM_CENTER: import("react-toastify").ToastPosition;
|
|
28
|
-
};
|
|
29
|
-
TYPE: {
|
|
30
|
-
INFO: import("react-toastify").TypeOptions;
|
|
31
|
-
SUCCESS: import("react-toastify").TypeOptions;
|
|
32
|
-
WARNING: import("react-toastify").TypeOptions;
|
|
33
|
-
ERROR: import("react-toastify").TypeOptions;
|
|
34
|
-
DEFAULT: import("react-toastify").TypeOptions;
|
|
35
|
-
DARK: import("react-toastify").TypeOptions;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export { toast };
|