@arcblock/ux 2.7.2 → 2.7.4
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/es/Toast/index.js +4 -2
- package/lib/Toast/index.js +4 -2
- package/package.json +4 -4
- package/src/Toast/index.js +2 -2
package/es/Toast/index.js
CHANGED
@@ -28,7 +28,7 @@ let info = noop;
|
|
28
28
|
*/
|
29
29
|
const genFn = (enqueueSnackbar, variant) => (message, opts = {}) => {
|
30
30
|
enqueueSnackbar(message, {
|
31
|
-
autoHideDuration:
|
31
|
+
autoHideDuration: 5000,
|
32
32
|
variant,
|
33
33
|
...opts
|
34
34
|
});
|
@@ -83,7 +83,9 @@ export default {
|
|
83
83
|
/**
|
84
84
|
* @type {EnqueueSnackbarFunc}
|
85
85
|
*/
|
86
|
-
error: (message, options = {
|
86
|
+
error: (message, options = {
|
87
|
+
autoHideDuration: 15000
|
88
|
+
}, ...args) => error(message, options, ...args),
|
87
89
|
/**
|
88
90
|
* @type {EnqueueSnackbarFunc}
|
89
91
|
*/
|
package/lib/Toast/index.js
CHANGED
@@ -37,7 +37,7 @@ let _info = noop;
|
|
37
37
|
const genFn = (enqueueSnackbar, variant) => function (message) {
|
38
38
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
39
39
|
enqueueSnackbar(message, _objectSpread({
|
40
|
-
autoHideDuration:
|
40
|
+
autoHideDuration: 5000,
|
41
41
|
variant
|
42
42
|
}, opts));
|
43
43
|
};
|
@@ -98,7 +98,9 @@ var _default = {
|
|
98
98
|
* @type {EnqueueSnackbarFunc}
|
99
99
|
*/
|
100
100
|
error: function error(message) {
|
101
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
101
|
+
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
102
|
+
autoHideDuration: 15000
|
103
|
+
};
|
102
104
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
103
105
|
args[_key2 - 2] = arguments[_key2];
|
104
106
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.7.
|
3
|
+
"version": "2.7.4",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -314,11 +314,11 @@
|
|
314
314
|
"peerDependencies": {
|
315
315
|
"react": ">=18.1.0"
|
316
316
|
},
|
317
|
-
"gitHead": "
|
317
|
+
"gitHead": "81f93ecac6724ea94ed1bb2410d2826a1e4c0f67",
|
318
318
|
"dependencies": {
|
319
319
|
"@arcblock/did-motif": "^1.1.13",
|
320
|
-
"@arcblock/icons": "^2.7.
|
321
|
-
"@arcblock/react-hooks": "^2.7.
|
320
|
+
"@arcblock/icons": "^2.7.4",
|
321
|
+
"@arcblock/react-hooks": "^2.7.4",
|
322
322
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
323
323
|
"@emotion/react": "^11.10.4",
|
324
324
|
"@emotion/styled": "^11.10.4",
|
package/src/Toast/index.js
CHANGED
@@ -29,7 +29,7 @@ const genFn =
|
|
29
29
|
(enqueueSnackbar, variant) =>
|
30
30
|
(message, opts = {}) => {
|
31
31
|
enqueueSnackbar(message, {
|
32
|
-
autoHideDuration:
|
32
|
+
autoHideDuration: 5000,
|
33
33
|
variant,
|
34
34
|
...opts,
|
35
35
|
});
|
@@ -83,7 +83,7 @@ export default {
|
|
83
83
|
/**
|
84
84
|
* @type {EnqueueSnackbarFunc}
|
85
85
|
*/
|
86
|
-
error: (message, options = {}, ...args) => error(message, options, ...args),
|
86
|
+
error: (message, options = { autoHideDuration: 15000 }, ...args) => error(message, options, ...args),
|
87
87
|
|
88
88
|
/**
|
89
89
|
* @type {EnqueueSnackbarFunc}
|