@elliemae/ds-toast 2.2.0 → 2.3.0-alpha.3
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/DSToast.js +81 -97
- package/cjs/DSToast.js.map +7 -0
- package/cjs/ToastAction.js +60 -60
- package/cjs/ToastAction.js.map +7 -0
- package/cjs/ToastPosition.js +41 -13
- package/cjs/ToastPosition.js.map +7 -0
- package/cjs/ToastRender.js +62 -38
- package/cjs/ToastRender.js.map +7 -0
- package/cjs/ToastType.js +40 -13
- package/cjs/ToastType.js.map +7 -0
- package/cjs/index.js +40 -24
- package/cjs/index.js.map +7 -0
- package/cjs/toast.js +46 -47
- package/cjs/toast.js.map +7 -0
- package/esm/DSToast.js +53 -86
- package/esm/DSToast.js.map +7 -0
- package/esm/ToastAction.js +30 -47
- package/esm/ToastAction.js.map +7 -0
- package/esm/ToastPosition.js +12 -8
- package/esm/ToastPosition.js.map +7 -0
- package/esm/ToastRender.js +29 -28
- package/esm/ToastRender.js.map +7 -0
- package/esm/ToastType.js +11 -8
- package/esm/ToastType.js.map +7 -0
- package/esm/index.js +11 -5
- package/esm/index.js.map +7 -0
- package/esm/toast.js +17 -37
- package/esm/toast.js.map +7 -0
- package/package.json +5 -5
package/esm/toast.js
CHANGED
|
@@ -1,37 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const toast = Object.assign((_ref, options) => {
|
|
19
|
-
let {
|
|
20
|
-
type,
|
|
21
|
-
messageTitle,
|
|
22
|
-
messageText
|
|
23
|
-
} = _ref,
|
|
24
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
|
|
26
|
-
return toast$1( /*#__PURE__*/_jsx(ToastRender, {
|
|
27
|
-
messageText: messageText,
|
|
28
|
-
messageTitle: messageTitle,
|
|
29
|
-
type: type
|
|
30
|
-
}), _objectSpread(_objectSpread(_objectSpread({}, rest), options), {}, {
|
|
31
|
-
type
|
|
32
|
-
}));
|
|
33
|
-
}, _objectSpread(_objectSpread({}, toast$1), {}, {
|
|
34
|
-
isActive: id => toast$1.isActive(id)
|
|
35
|
-
}));
|
|
36
|
-
|
|
37
|
-
export { toast };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { toast as toastifyToast } from "react-toastify";
|
|
4
|
+
import ToastRender from "./ToastRender";
|
|
5
|
+
const toast = Object.assign(({ type, messageTitle, messageText, ...rest }, options) => toastifyToast(/* @__PURE__ */ React2.createElement(ToastRender, {
|
|
6
|
+
messageText,
|
|
7
|
+
messageTitle,
|
|
8
|
+
type
|
|
9
|
+
}), {
|
|
10
|
+
...rest,
|
|
11
|
+
...options,
|
|
12
|
+
type
|
|
13
|
+
}), { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) });
|
|
14
|
+
export {
|
|
15
|
+
toast
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=toast.js.map
|
package/esm/toast.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/toast.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { toast as toastifyToast } from 'react-toastify';\nimport ToastRender from './ToastRender';\n\nconst toast = Object.assign(\n ({ type, messageTitle, messageText, ...rest }, options) =>\n toastifyToast(\n <ToastRender\n messageText={messageText}\n messageTitle={messageTitle}\n type={type}\n />,\n {\n ...rest,\n ...options,\n type,\n },\n ),\n { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) },\n);\nexport { toast };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO,OACnB,CAAC,EAAE,MAAM,cAAc,gBAAgB,QAAQ,YAC7C,cACE,qCAAC,aAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,IAEF;AAAA,KACK;AAAA,KACA;AAAA,EACH;AAAA,IAGN,KAAK,eAAe,UAAU,CAAC,OAAO,cAAc,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-toast",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.3",
|
|
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.
|
|
60
|
-
"@elliemae/ds-classnames": "2.
|
|
61
|
-
"@elliemae/ds-icons": "2.
|
|
62
|
-
"@elliemae/ds-system": "2.
|
|
59
|
+
"@elliemae/ds-button": "2.3.0-alpha.3",
|
|
60
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.3",
|
|
61
|
+
"@elliemae/ds-icons": "2.3.0-alpha.3",
|
|
62
|
+
"@elliemae/ds-system": "2.3.0-alpha.3",
|
|
63
63
|
"prop-types": "~15.7.2",
|
|
64
64
|
"react-desc": "~4.1.3",
|
|
65
65
|
"react-toastify": "~6.2.0"
|