@aloudata/aloudata-design 2.8.7 → 2.9.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/dist/App/index.js +7 -1
- package/dist/Icon/components/DangerFill.d.ts +11 -0
- package/dist/Icon/components/DangerFill.js +35 -0
- package/dist/Icon/index.d.ts +1 -0
- package/dist/Icon/index.js +1 -0
- package/dist/Icon/svg/danger-fill.svg +5 -0
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/message/index.d.ts +9 -11
- package/dist/message/index.js +63 -119
- package/dist/message/style/index.less +68 -24
- package/dist/notification/index.d.ts +16 -9
- package/dist/notification/index.js +166 -114
- package/dist/notification/style/index.less +46 -65
- package/dist/style/components/toastify.less +855 -0
- package/package.json +2 -1
- package/dist/message/style/color.less +0 -36
- package/dist/notification/demo/footer.d.ts +0 -3
- package/dist/notification/demo/footer.js +0 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"memoize-one": "^6.0.0",
|
|
67
67
|
"rc-menu": "^9.8.0",
|
|
68
68
|
"rc-overflow": "^1.3.2",
|
|
69
|
+
"react-toastify": "^10.0.5",
|
|
69
70
|
"umi-request": "^1.4.0",
|
|
70
71
|
"zx": "^7.1.1"
|
|
71
72
|
},
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// info
|
|
2
|
-
.ant-message-notice-info {
|
|
3
|
-
.ant-message-custom-content {
|
|
4
|
-
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
5
|
-
color: var(--colors-gray-900, #171717);
|
|
6
|
-
border-radius: var(--alias-radius-75, 6px);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
// success
|
|
10
|
-
.ant-message-notice-success {
|
|
11
|
-
.ant-message-custom-content {
|
|
12
|
-
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
13
|
-
color: var(--global-colors-base-white-950a, #fff);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
// error
|
|
17
|
-
.ant-message-notice-error {
|
|
18
|
-
.ant-message-custom-content {
|
|
19
|
-
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
20
|
-
color: var(--global-colors-base-white-950a, #fff);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
// warning
|
|
24
|
-
.ant-message-notice-warning {
|
|
25
|
-
.ant-message-custom-content {
|
|
26
|
-
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
27
|
-
color: var(--global-colors-base-white-950a, #fff);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// loading
|
|
31
|
-
.ant-message-notice-loading {
|
|
32
|
-
.ant-message-custom-content {
|
|
33
|
-
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
34
|
-
color: var(--colors-gray-900, #171717);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { App, Button, notification, Space, TextLink } from "../..";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default (function () {
|
|
4
|
-
var notices = function notices(type) {
|
|
5
|
-
notification[type]({
|
|
6
|
-
message: 'Notification Message',
|
|
7
|
-
description: 'description,description,description,description,description,description,description,description',
|
|
8
|
-
style: {
|
|
9
|
-
width: 360,
|
|
10
|
-
maxHeight: 500,
|
|
11
|
-
overflow: 'auto'
|
|
12
|
-
},
|
|
13
|
-
footer: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
14
|
-
type: "text",
|
|
15
|
-
onClick: function onClick() {
|
|
16
|
-
return console.log('Dismiss');
|
|
17
|
-
}
|
|
18
|
-
}, "Dismiss"), /*#__PURE__*/React.createElement(TextLink, {
|
|
19
|
-
onClick: function onClick() {
|
|
20
|
-
return console.log('Confirm');
|
|
21
|
-
}
|
|
22
|
-
}, "Confirm"))
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
return /*#__PURE__*/React.createElement(App, null, /*#__PURE__*/React.createElement(Space, {
|
|
26
|
-
direction: "vertical"
|
|
27
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
28
|
-
onClick: function onClick() {
|
|
29
|
-
return notices('success');
|
|
30
|
-
}
|
|
31
|
-
}, "Notification success with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
|
|
32
|
-
onClick: function onClick() {
|
|
33
|
-
return notices('error');
|
|
34
|
-
}
|
|
35
|
-
}, "Notification error with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
|
|
36
|
-
onClick: function onClick() {
|
|
37
|
-
return notices('warning');
|
|
38
|
-
}
|
|
39
|
-
}, "Notification warning with message\u3001description"), /*#__PURE__*/React.createElement(Button, {
|
|
40
|
-
onClick: function onClick() {
|
|
41
|
-
return notices('info');
|
|
42
|
-
}
|
|
43
|
-
}, "Notification info with message\u3001description")));
|
|
44
|
-
});
|