@aloudata/aloudata-design 0.4.8 → 0.4.9

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.
Files changed (42) hide show
  1. package/dist/Button/index.js +5 -5
  2. package/dist/Button/style/index.less +48 -44
  3. package/dist/Button/style/variables.less +13 -13
  4. package/dist/Checkbox/style/index.less +34 -13
  5. package/dist/DoubleCircleIcon/index.d.ts +1 -0
  6. package/dist/DoubleCircleIcon/index.js +5 -2
  7. package/dist/DoubleCircleIcon/style/index.less +33 -1
  8. package/dist/Dropdown/style/index.less +15 -10
  9. package/dist/Empty/image/SearchSmall.js +5 -0
  10. package/dist/Empty/style/index.less +11 -0
  11. package/dist/Icon/icons.js +32 -0
  12. package/dist/Input/style/index.less +64 -42
  13. package/dist/InputNumber/style/index.less +9 -4
  14. package/dist/Menu/style/index.less +78 -2
  15. package/dist/Modal/index.d.ts +4 -1
  16. package/dist/Modal/index.js +178 -67
  17. package/dist/Modal/style/index.less +48 -7
  18. package/dist/Radio/components/Group/index.js +11 -6
  19. package/dist/Radio/components/Radio/index.js +13 -6
  20. package/dist/Radio/interface/radioGroup.d.ts +6 -1
  21. package/dist/Radio/style/index.less +220 -53
  22. package/dist/Select/components/MultipleOption.d.ts +1 -0
  23. package/dist/Select/components/MultipleOption.js +7 -3
  24. package/dist/Select/components/SingleOption.d.ts +1 -0
  25. package/dist/Select/components/SingleOption.js +6 -2
  26. package/dist/Select/index.js +74 -13
  27. package/dist/Select/style/index.less +8 -3
  28. package/dist/Select/style/multiple.less +13 -2
  29. package/dist/Select/style/single.less +12 -1
  30. package/dist/Select/style/status.less +1 -1
  31. package/dist/Table/style/index.less +14 -8
  32. package/dist/Tabs/index.d.ts +15 -0
  33. package/dist/Tabs/index.js +46 -6
  34. package/dist/Tabs/style/index.less +42 -1
  35. package/dist/Tooltip/style/index.less +7 -1
  36. package/dist/notification/demo/index.js +24 -7
  37. package/dist/notification/index.d.ts +9 -1
  38. package/dist/notification/index.js +148 -1
  39. package/dist/notification/style/index.less +28 -0
  40. package/dist/style/themes/default/index.less +25 -25
  41. package/dist/style/themes/default/themeColor.module.less +9 -9
  42. package/package.json +4 -4
@@ -1,2 +1,149 @@
1
- import { notification } from 'antd';
1
+ var _excluded = ["icon", "className", "style", "closeIcon"],
2
+ _excluded2 = ["icon", "className", "style", "closeIcon"],
3
+ _excluded3 = ["icon", "className", "style", "closeIcon"],
4
+ _excluded4 = ["icon", "className", "style", "closeIcon"];
5
+
6
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
7
+
8
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
+
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
+
14
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+
16
+ import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseMLine, InfoCircleLine } from '@aloudata/icons-react';
17
+ import { notification as AntdNotification } from 'antd';
18
+ import classnames from 'classnames';
19
+ import React from 'react';
20
+ import theme from "../style/themes/default/themeColor.module.less";
21
+ var iconMap = {
22
+ info: /*#__PURE__*/React.createElement(InfoCircleLine, {
23
+ fill: theme.B40,
24
+ size: 20
25
+ }),
26
+ success: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
27
+ fill: [theme.SA40, theme.ND0],
28
+ theme: "multi-color",
29
+ size: 20
30
+ }),
31
+ error: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
32
+ fill: [theme.SC40, theme.ND0],
33
+ size: 20,
34
+ theme: "multi-color"
35
+ }),
36
+ warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
37
+ fill: [theme.SB40, theme.ND0],
38
+ theme: "multi-color",
39
+ size: 20
40
+ })
41
+ };
42
+ var closeX = /*#__PURE__*/React.createElement(CloseMLine, {
43
+ size: 20,
44
+ fill: theme.NL40
45
+ });
46
+
47
+ var getSDefaultStyle = function getSDefaultStyle(type) {
48
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
49
+ padding: '16px 24px',
50
+ background: theme.SC95,
51
+ border: '1px solid',
52
+ borderRadius: '4px',
53
+ boxShadow: theme.SHADOW_LG
54
+ }, type === 'error' && {
55
+ background: theme.SC95,
56
+ borderColor: theme.SC60
57
+ }), type === 'success' && {
58
+ background: theme.SA95,
59
+ borderColor: theme.SA60
60
+ }), type === 'warning' && {
61
+ background: theme.SB95,
62
+ borderColor: theme.SB60
63
+ }), type === 'info' && {
64
+ background: theme.B95,
65
+ borderColor: theme.B60
66
+ });
67
+ };
68
+
69
+ var notification = {
70
+ open: function open(config) {
71
+ return AntdNotification.open(config);
72
+ },
73
+ success: function success(config) {
74
+ var _config$icon = config.icon,
75
+ icon = _config$icon === void 0 ? iconMap.success : _config$icon,
76
+ _config$className = config.className,
77
+ className = _config$className === void 0 ? classnames('ald-notification-notice', config.className) : _config$className,
78
+ _config$style = config.style,
79
+ style = _config$style === void 0 ? Object.assign(getSDefaultStyle('success'), config.style) : _config$style,
80
+ _config$closeIcon = config.closeIcon,
81
+ closeIcon = _config$closeIcon === void 0 ? closeX : _config$closeIcon,
82
+ rest = _objectWithoutProperties(config, _excluded);
83
+
84
+ return AntdNotification.success(_objectSpread({
85
+ icon: icon,
86
+ style: style,
87
+ className: className,
88
+ closeIcon: closeIcon
89
+ }, rest));
90
+ },
91
+ error: function error(config) {
92
+ var _config$icon2 = config.icon,
93
+ icon = _config$icon2 === void 0 ? iconMap.error : _config$icon2,
94
+ _config$className2 = config.className,
95
+ className = _config$className2 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className2,
96
+ _config$style2 = config.style,
97
+ style = _config$style2 === void 0 ? Object.assign(getSDefaultStyle('error'), config.style) : _config$style2,
98
+ _config$closeIcon2 = config.closeIcon,
99
+ closeIcon = _config$closeIcon2 === void 0 ? closeX : _config$closeIcon2,
100
+ rest = _objectWithoutProperties(config, _excluded2);
101
+
102
+ return AntdNotification.error(_objectSpread({
103
+ icon: icon,
104
+ style: style,
105
+ className: className,
106
+ closeIcon: closeIcon
107
+ }, rest));
108
+ },
109
+ warning: function warning(config) {
110
+ var _config$icon3 = config.icon,
111
+ icon = _config$icon3 === void 0 ? iconMap.warning : _config$icon3,
112
+ _config$className3 = config.className,
113
+ className = _config$className3 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className3,
114
+ _config$style3 = config.style,
115
+ style = _config$style3 === void 0 ? Object.assign(getSDefaultStyle('warning'), config.style) : _config$style3,
116
+ _config$closeIcon3 = config.closeIcon,
117
+ closeIcon = _config$closeIcon3 === void 0 ? closeX : _config$closeIcon3,
118
+ rest = _objectWithoutProperties(config, _excluded3);
119
+
120
+ return AntdNotification.warning(_objectSpread({
121
+ icon: icon,
122
+ style: style,
123
+ className: className,
124
+ closeIcon: closeIcon
125
+ }, rest));
126
+ },
127
+ info: function info(config) {
128
+ var _config$icon4 = config.icon,
129
+ icon = _config$icon4 === void 0 ? iconMap.info : _config$icon4,
130
+ _config$className4 = config.className,
131
+ className = _config$className4 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className4,
132
+ _config$style4 = config.style,
133
+ style = _config$style4 === void 0 ? Object.assign(getSDefaultStyle('info'), config.style) : _config$style4,
134
+ _config$closeIcon4 = config.closeIcon,
135
+ closeIcon = _config$closeIcon4 === void 0 ? closeX : _config$closeIcon4,
136
+ rest = _objectWithoutProperties(config, _excluded4);
137
+
138
+ return AntdNotification.info(_objectSpread({
139
+ icon: icon,
140
+ style: style,
141
+ className: className,
142
+ closeIcon: closeIcon
143
+ }, rest));
144
+ },
145
+ destroy: function destroy(key) {
146
+ return AntdNotification.destroy(key);
147
+ }
148
+ };
2
149
  export default notification;
@@ -1 +1,29 @@
1
1
  @import '../../style/index.less';
2
+
3
+ .ald-notification-notice.ant-notification-notice {
4
+ .ant-notification-notice-icon {
5
+ top: 18px;
6
+ }
7
+
8
+ .ant-notification-notice-message {
9
+ margin-inline-start: 28px;
10
+ padding-inline-end: 28px;
11
+ margin-bottom: 4px;
12
+ }
13
+
14
+ .ant-notification-notice-description {
15
+ margin-inline-start: 28px;
16
+ font-weight: 400;
17
+ font-size: 13px;
18
+ line-height: 20px;
19
+ color: @NL40;
20
+ }
21
+
22
+ .ant-notification-notice-close {
23
+ top: 17px;
24
+
25
+ &:hover{
26
+ background:none;
27
+ }
28
+ }
29
+ }
@@ -1,36 +1,36 @@
1
1
  @import './themeColor.module.less';
2
- @font-family:Inter, -apple-system, PingFang SC, BlinkMacSystemFont,"Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
2
+ /* stylelint-disable-next-line at-rule-no-unknown */
3
+ @font-family:inter, -apple-system, PingFang SC, BlinkMacSystemFont,"Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
3
4
  @ald-prefix: ant;
4
5
 
5
-
6
6
  // base 不分大小写情况
7
7
  @border-radius-base: 8px;
8
- @line-height-base:20px;
9
- @font-size-base:14px;
8
+ @line-height-base: 20px;
9
+ @font-size-base: 14px;
10
10
 
11
11
  // large
12
- @font-size-large:16px;
13
- @line-height-large:24px;
14
- @padding-top-large:6px;
15
- @padding-bottom-large:6px;
16
- @padding-left-large:12px;
17
- @padding-right-large:12px;
18
- @border-radius-large:8px;
12
+ @font-size-large: 16px;
13
+ @line-height-large: 24px;
14
+ @padding-top-large: 6px;
15
+ @padding-bottom-large: 6px;
16
+ @padding-left-large: 12px;
17
+ @padding-right-large: 12px;
18
+ @border-radius-large: 6px;
19
19
 
20
20
  // middle
21
- @font-size-middle:14px;
22
- @line-height-middle:20px;
23
- @padding-top-middle:6px;
24
- @padding-bottom-middle:6px;
25
- @padding-left-middle:12px;
26
- @padding-right-middle:12px;
27
- @border-radius-middle:6px;
21
+ @font-size-middle: 13px;
22
+ @line-height-middle: 20px;
23
+ @padding-top-middle: 6px;
24
+ @padding-bottom-middle: 6px;
25
+ @padding-left-middle: 12px;
26
+ @padding-right-middle: 12px;
27
+ @border-radius-middle: 4px;
28
28
 
29
29
  // small
30
- @font-size-small:12px;
31
- @line-height-small:16px;
32
- @padding-top-small:6px;
33
- @padding-bottom-small:6px;
34
- @padding-left-small:8px;
35
- @padding-right-small:8px;
36
- @border-radius-small:4px;
30
+ @font-size-small: 12px;
31
+ @line-height-small: 16px;
32
+ @padding-top-small: 6px;
33
+ @padding-bottom-small: 6px;
34
+ @padding-left-small: 8px;
35
+ @padding-right-small: 8px;
36
+ @border-radius-small: 4px;
@@ -45,7 +45,7 @@
45
45
  @B70: #84caff;
46
46
  @B80: #b2ddff;
47
47
  @B90: #d1e9ff;
48
- @B95: #eff8ff;
48
+ @B95: #ebf6ff;
49
49
  @B98: #f5faff;
50
50
 
51
51
  /**
@@ -101,14 +101,14 @@
101
101
  * 中性色是色彩系统的基础。 UI 设计中的几乎所有东西:文本、表单、背景、分隔线等等通常都是中性的。
102
102
  **/
103
103
  @BG0: #000000;
104
- @BG10: #101828;
104
+ @BG10: #101825;
105
105
  @BG20: #1d2939;
106
106
  @BG30: #475467;
107
107
  @BG40: #667085;
108
108
  @BG50: #98a2b3;
109
- @BG60: #d0d5dd;
110
- @BG70: #eaecf0;
111
- @BG80: #f2f4f7;
109
+ @BG60: #d3d7de;
110
+ @BG70: #e3e5ea;
111
+ @BG80: #eff2f5;
112
112
  @BG90: #f5f6f7;
113
113
  @BG95: #f9fafb;
114
114
  @BG97: #fcfcfd;
@@ -125,8 +125,8 @@
125
125
  @shadow-sm: 0px 1px 4px rgba(16, 24, 40, 0.06), 0px 1px 2px rgba(16, 24, 40, 0.04);
126
126
  @shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
127
127
  @shadow-body-top-left: -4px -4px 2px rgba(0, 0, 0, 0.05);
128
- @shadow-primary:0px 0 0 4px rgba(21, 111, 238, 0.12);
129
- @shadow-drop:0px 0 0 4px #1570EF1F;
128
+ @shadow-primary:0 0 0 4px rgba(21, 111, 238, 0.12);
129
+ @shadow-drop:0 0 0 4px #1570EF1F;
130
130
  // 业务颜色
131
131
  // 除了原色之外,在业务、提示和标签等组件中使用一些次要颜色也很有帮助。这些次要颜色应该少用或作为重点使用,而主要颜色应该占优先地位。
132
132
 
@@ -202,8 +202,8 @@
202
202
  @TE20: #382765;
203
203
  @TE30: #4f378f;
204
204
  @TE40: #6144af;
205
- @TE50: #704ecb;
206
- @TE60: #7e58e3;
205
+ @TE50: #9d76ed;
206
+ @TE60: #b692f6;
207
207
  @TE70: #a08ae8;
208
208
  @TE80: #bcafee;
209
209
  @TE90: #d4cdf4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -50,9 +50,9 @@
50
50
  ]
51
51
  },
52
52
  "dependencies": {
53
- "@aloudata/icons-react": "0.1.5",
54
- "@aloudata/icons-svg": "0.1.5",
55
- "antd": "5.2.0",
53
+ "@aloudata/icons-react": "0.1.7",
54
+ "@aloudata/icons-svg": "0.1.7",
55
+ "antd": "^5.3.1",
56
56
  "memoize-one": "^6.0.0",
57
57
  "rc-menu": "^9.8.0",
58
58
  "react-table": "^7.8.0",