@aloudata/aloudata-design 1.9.14 → 1.9.15

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 (80) hide show
  1. package/dist/Button/index.js +3 -3
  2. package/dist/ColorPicker/index.js +2 -2
  3. package/dist/Dropdown/Button.js +2 -4
  4. package/dist/Dropdown/style/index.less +5 -0
  5. package/dist/Empty/index.js +5 -5
  6. package/dist/Icon/components/AlertTriangleDuotone.d.ts +2 -3
  7. package/dist/Icon/components/AlertTriangleDuotone.js +3 -3
  8. package/dist/Icon/components/CancelCircleDuotone.d.ts +2 -3
  9. package/dist/Icon/components/CancelCircleDuotone.js +4 -4
  10. package/dist/Icon/components/CheckCircleDuotone.d.ts +2 -3
  11. package/dist/Icon/components/CheckCircleDuotone.js +4 -4
  12. package/dist/Icon/components/ChevronDownLine.d.ts +10 -0
  13. package/dist/Icon/components/ChevronDownLine.js +35 -0
  14. package/dist/Icon/components/ChevronLeftLine.d.ts +10 -0
  15. package/dist/Icon/components/ChevronLeftLine.js +35 -0
  16. package/dist/Icon/components/ChevronRightLine.d.ts +10 -0
  17. package/dist/Icon/components/ChevronRightLine.js +35 -0
  18. package/dist/Icon/components/CloseLLine.d.ts +10 -0
  19. package/dist/Icon/components/CloseLLine.js +42 -0
  20. package/dist/Icon/components/CloseMLine.d.ts +10 -0
  21. package/dist/Icon/components/CloseMLine.js +35 -0
  22. package/dist/Icon/components/EyeOffLine.d.ts +10 -0
  23. package/dist/Icon/components/EyeOffLine.js +35 -0
  24. package/dist/Icon/components/EyeOnLine.d.ts +10 -0
  25. package/dist/Icon/components/EyeOnLine.js +42 -0
  26. package/dist/Icon/components/FoldDownFill.d.ts +10 -0
  27. package/dist/Icon/components/FoldDownFill.js +38 -0
  28. package/dist/Icon/components/FoldUpFill.d.ts +10 -0
  29. package/dist/Icon/components/FoldUpFill.js +38 -0
  30. package/dist/Icon/components/InfoCircleDuotone.d.ts +10 -0
  31. package/dist/Icon/components/InfoCircleDuotone.js +35 -0
  32. package/dist/Icon/components/InfoCircleLine.d.ts +2 -3
  33. package/dist/Icon/components/InfoCircleLine.js +3 -3
  34. package/dist/Icon/components/LoadingLine.d.ts +10 -0
  35. package/dist/Icon/components/LoadingLine.js +35 -0
  36. package/dist/Icon/components/MoreVerticalLine.d.ts +10 -0
  37. package/dist/Icon/components/MoreVerticalLine.js +35 -0
  38. package/dist/Icon/components/SearchLine.d.ts +10 -0
  39. package/dist/Icon/components/SearchLine.js +35 -0
  40. package/dist/Icon/index.d.ts +13 -0
  41. package/dist/Icon/index.js +13 -0
  42. package/dist/Icon/svg/cancel-circle-duotone.svg +4 -4
  43. package/dist/Icon/svg/chevron-down-line.svg +5 -0
  44. package/dist/Icon/svg/chevron-left-line.svg +5 -0
  45. package/dist/Icon/svg/chevron-right-line.svg +5 -0
  46. package/dist/Icon/svg/close-L-line.svg +10 -0
  47. package/dist/Icon/svg/close-m-line.svg +5 -0
  48. package/dist/Icon/svg/eye-off-line.svg +5 -0
  49. package/dist/Icon/svg/eye-on-line.svg +9 -0
  50. package/dist/Icon/svg/fold-down-fill.svg +7 -0
  51. package/dist/Icon/svg/fold-up-fill.svg +7 -0
  52. package/dist/Icon/svg/info-circle-duotone.svg +3 -0
  53. package/dist/Icon/svg/loading-line.svg +5 -0
  54. package/dist/Icon/svg/more-vertical-line.svg +5 -0
  55. package/dist/Icon/svg/search-line.svg +5 -0
  56. package/dist/IconButton/index.js +1 -1
  57. package/dist/Input/components/Password/index.js +1 -3
  58. package/dist/MemberPicker/components/MemberSelection.js +1 -1
  59. package/dist/MemberPicker/components/SelectedMemberTags.js +2 -2
  60. package/dist/MemberPicker/index.js +1 -1
  61. package/dist/Menu/index.js +2 -2
  62. package/dist/Modal/index.d.ts +1 -0
  63. package/dist/Modal/index.js +38 -44
  64. package/dist/Modal/style/index.less +46 -32
  65. package/dist/Pagination/index.js +1 -1
  66. package/dist/Popconfirm/index.js +3 -3
  67. package/dist/Popconfirm/style/index.less +6 -1
  68. package/dist/Result/index.js +2 -1
  69. package/dist/Select/index.js +2 -2
  70. package/dist/Steps/components/Step/index.js +6 -6
  71. package/dist/Table/components/TableHead/index.js +2 -4
  72. package/dist/Tabs/index.js +2 -4
  73. package/dist/Tree/index.d.ts +2 -2
  74. package/dist/Tree/index.js +2 -2
  75. package/dist/message/index.d.ts +1 -1
  76. package/dist/message/index.js +9 -9
  77. package/dist/notification/index.js +9 -9
  78. package/dist/style/mixins/animate.css +13 -0
  79. package/dist/style/mixins/index.less +1 -0
  80. package/package.json +3 -7
@@ -1,6 +1,6 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
  var _excluded = ["className", "type", "loading", "size", "disabled", "shape"],
3
- _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "virtualScrollBar"],
3
+ _excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "virtualScrollBar", "hasHeaderBottomBorder"],
4
4
  _excluded3 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
5
5
  _excluded4 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
6
6
  _excluded5 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
@@ -14,16 +14,16 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
14
14
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
15
  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; }
16
16
  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; }
17
- import { AlertTriangleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleLine } from '@aloudata/icons-react';
18
17
  import { Modal as AntdModal } from 'antd';
19
18
  import { modalGlobalConfig } from 'antd/lib/modal/confirm';
20
19
  import useModal from 'antd/lib/modal/useModal/index';
21
20
  import classNames from 'classnames';
21
+ import { IconButton } from "../dist";
22
22
  import React from 'react';
23
23
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
24
- import DoubleCircleIcon from "../DoubleCircleIcon";
24
+ import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseLLine, InfoCircleDuotone } from "../Icon";
25
25
  import ScrollArea from "../ScrollArea";
26
- import theme from "../style/themes/default/themeColor.module.less";
26
+
27
27
  // export type { ModalProps, ModalFuncProps };
28
28
 
29
29
  export var destroyFns = [];
@@ -82,6 +82,8 @@ var OriginModal = function OriginModal(props) {
82
82
  title = props.title,
83
83
  paddingLess = props.paddingLess,
84
84
  virtualScrollBar = props.virtualScrollBar,
85
+ _props$hasHeaderBotto = props.hasHeaderBottomBorder,
86
+ hasHeaderBottomBorder = _props$hasHeaderBotto === void 0 ? false : _props$hasHeaderBotto,
85
87
  restProps = _objectWithoutProperties(props, _excluded2);
86
88
  return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
87
89
  title: ModalTitle({
@@ -101,17 +103,20 @@ var OriginModal = function OriginModal(props) {
101
103
  ,
102
104
  className: classNames('ald-modal', className, {
103
105
  'ald-modal-padding-less': paddingLess,
104
- 'ald-modal-virtual-scroll-bar': virtualScrollBar
106
+ 'ald-modal-virtual-scroll-bar': virtualScrollBar,
107
+ 'ald-modal-header-bottom-border': hasHeaderBottomBorder
105
108
  }),
106
109
  okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
107
110
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
108
111
  okText: okText,
109
112
  cancelText: cancelText,
110
113
  width: width || DEFAULT_WIDTH,
111
- closeIcon: closeIcon || /*#__PURE__*/React.createElement(CloseLLine, {
112
- size: 16,
113
- fill: theme.NL40,
114
- className: "ald-modal-close"
114
+ closeIcon: closeIcon || /*#__PURE__*/React.createElement(IconButton, {
115
+ icon: /*#__PURE__*/React.createElement(CloseLLine, {
116
+ color: "#171717",
117
+ size: 20
118
+ }),
119
+ size: 'middle'
115
120
  })
116
121
  }), virtualScrollBar ? /*#__PURE__*/React.createElement(ScrollArea, {
117
122
  className: 'ald-modal-body-wrap',
@@ -141,13 +146,11 @@ Modal.info = function infoFn(props) {
141
146
  width: width || DEFAULT_WIDTH,
142
147
  className: classNames('ald-modal', className),
143
148
  title: ModalTitle({
144
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
145
- type: "info"
146
- }, /*#__PURE__*/React.createElement(InfoCircleLine, {
147
- size: 16,
148
- fill: theme.B40,
149
+ icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
150
+ size: 32,
151
+ color: '#3271C9',
149
152
  className: "ald-modal-close"
150
- })),
153
+ }),
151
154
  title: title,
152
155
  subTitle: subTitle
153
156
  }),
@@ -176,13 +179,11 @@ Modal.success = function successFn(props) {
176
179
  width: width || DEFAULT_WIDTH,
177
180
  className: classNames('ald-modal', className),
178
181
  title: ModalTitle({
179
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
180
- type: "success"
181
- }, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
182
- fill: [theme.SA40, theme.ND0],
183
- size: 16,
184
- theme: "multi-color"
185
- })),
182
+ icon: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
183
+ fill: "#fff",
184
+ color: "#16B667",
185
+ size: 32
186
+ }),
186
187
  title: title,
187
188
  subTitle: subTitle
188
189
  }),
@@ -206,18 +207,16 @@ Modal.error = function errorFn(props) {
206
207
  className = props.className,
207
208
  restProps = _objectWithoutProperties(props, _excluded5);
208
209
  return AntdModal.error(_objectSpread({
209
- okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
210
+ okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
210
211
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
211
212
  width: width || DEFAULT_WIDTH,
212
213
  className: classNames('ald-modal', className),
213
214
  title: ModalTitle({
214
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
215
- type: "error"
216
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
217
- fill: [theme.SC40, theme.ND0],
218
- size: 16,
219
- theme: "multi-color"
220
- })),
215
+ icon: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
216
+ color: "#D64343",
217
+ fill: '#fff',
218
+ size: 32
219
+ }),
221
220
  title: title,
222
221
  subTitle: subTitle
223
222
  }),
@@ -241,19 +240,16 @@ Modal.warning = function modalWarn(props) {
241
240
  className = props.className,
242
241
  restProps = _objectWithoutProperties(props, _excluded6);
243
242
  return AntdModal.warning(_objectSpread({
244
- okButtonProps: getButtonProps(okButtonProps, 'dangerous', okType),
243
+ okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
245
244
  cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
246
245
  width: width || DEFAULT_WIDTH,
247
246
  // className: classNames('ald-modal-warning', className),
248
247
  className: classNames('ald-modal ald-modal-warning', className),
249
248
  title: ModalTitle({
250
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
251
- type: "warning"
252
- }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
253
- fill: [theme.SB40, theme.ND0],
254
- theme: "multi-color",
255
- size: 16
256
- })),
249
+ icon: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
250
+ color: "#FFB01F",
251
+ size: 32
252
+ }),
257
253
  title: title,
258
254
  subTitle: subTitle
259
255
  }),
@@ -282,13 +278,11 @@ Modal.confirm = function confirmFn(props) {
282
278
  width: width || DEFAULT_WIDTH,
283
279
  className: classNames('ald-modal', className),
284
280
  title: ModalTitle({
285
- icon: /*#__PURE__*/React.createElement(DoubleCircleIcon, {
286
- type: "info"
287
- }, /*#__PURE__*/React.createElement(InfoCircleLine, {
288
- size: 16,
289
- fill: theme.B40,
281
+ icon: /*#__PURE__*/React.createElement(InfoCircleDuotone, {
282
+ size: 32,
283
+ color: '#3271C9',
290
284
  className: "ald-modal-close"
291
- })),
285
+ }),
292
286
  title: title,
293
287
  subTitle: subTitle
294
288
  }),
@@ -1,3 +1,4 @@
1
+ @import '../../IconButton/style/index.less';
1
2
  @import '../../style/index.less';
2
3
  @import '../../ScrollArea/style/index.less';
3
4
  @import '../../Button/style/index.less';
@@ -12,20 +13,19 @@
12
13
  }
13
14
 
14
15
  .ant-modal-content {
15
- padding: 15px 23px;
16
+ padding: 0;
16
17
  box-shadow: none;
17
18
  border-radius: 4px;
18
19
  border: 1px solid @BG60;
19
20
  overflow: hidden;
20
21
 
21
22
  .ant-modal-body {
22
- max-height: 70vh;
23
+ min-height: 130px;
24
+ max-height: 68vh;
23
25
  line-height: 20px;
24
26
  font-size: 13px;
25
27
  overflow-y: auto;
26
- margin-left: -23px;
27
- width: calc(100% + 46px);
28
- padding: 0 23px;
28
+ padding: 16px 20px;
29
29
  }
30
30
  }
31
31
 
@@ -38,7 +38,7 @@
38
38
  .ald-modal-title-container {
39
39
  display: flex;
40
40
  align-items: center;
41
- gap: 12px;
41
+ gap: 8px;
42
42
 
43
43
  .ald-modal-text-container {
44
44
  // margin-left: 12px;
@@ -62,7 +62,8 @@
62
62
  }
63
63
 
64
64
  .ant-modal-header {
65
- margin-bottom: 16px;
65
+ padding: 16px 20px;
66
+ margin-bottom: 0;
66
67
 
67
68
  .ant-modal-title {
68
69
  width: 95%;
@@ -83,7 +84,7 @@
83
84
 
84
85
  .ald-modal-body-wrap {
85
86
  .ald-modal-body-wrap-inner {
86
- max-height: 70vh;
87
+ max-height: 68vh;
87
88
  padding: 0 23px;
88
89
  }
89
90
  }
@@ -97,7 +98,9 @@
97
98
 
98
99
  .ant-modal-footer {
99
100
  position: relative;
100
- margin-top: 16px;
101
+ margin-top: 0;
102
+ padding: 12px 20px;
103
+ background: #f4f4f4;
101
104
 
102
105
  .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
103
106
  margin-bottom: 0;
@@ -107,22 +110,29 @@
107
110
  &::before {
108
111
  content: '';
109
112
  position: absolute;
110
- top: -16px;
113
+ top: 0;
111
114
  left: 0;
112
- width: calc(100% + 48px);
113
- margin-left: -24px;
114
- margin-right: -24px;
115
+ width: 100%;
115
116
  height: 1px;
116
117
  background-color: var(--colors-gray-300, #e8e8e8);
117
118
  }
118
119
  }
120
+
121
+ .ant-modal-close-x {
122
+ width: 24px;
123
+ background-color: #fff;
124
+ }
125
+ }
126
+
127
+ .ald-modal-header-bottom-border {
128
+ .ant-modal-header {
129
+ border-bottom: 1px solid #dbdbdb;
130
+ }
119
131
  }
120
132
 
121
133
  .ald-modal-padding-less {
122
134
  .ant-modal-content {
123
135
  .ant-modal-body {
124
- margin: 0 -24px;
125
-
126
136
  .ald-modal-body-wrap {
127
137
  .ald-modal-body-wrap-inner {
128
138
  padding: 0;
@@ -133,6 +143,10 @@
133
143
  }
134
144
 
135
145
  .ald-modal.ant-modal-confirm {
146
+ .ant-modal-body {
147
+ padding-bottom: 12px !important;
148
+ }
149
+
136
150
  .ant-modal-confirm-body > .i-icon {
137
151
  & + .ant-modal-confirm-title {
138
152
  flex: 1;
@@ -153,8 +167,8 @@
153
167
  display: none;
154
168
 
155
169
  + .ant-modal-confirm-title + .ant-modal-confirm-content {
156
- margin-left: 0;
157
- margin-top: 16px;
170
+ margin-left: 40px;
171
+ margin-top: 4px;
158
172
  }
159
173
  }
160
174
  }
@@ -164,18 +178,18 @@
164
178
  }
165
179
  }
166
180
 
167
- .ald-modal.ald-modal-warning {
168
- .ant-modal-confirm-btns {
169
- .ald-btn {
170
- background-color: @SB40;
171
- border-color: @SB40;
172
-
173
- &:hover,
174
- &:active,
175
- &:focus {
176
- background-color: @SB40;
177
- border-color: @SB40;
178
- }
179
- }
180
- }
181
- }
181
+ // .ald-modal.ald-modal-warning {
182
+ // .ant-modal-confirm-btns {
183
+ // .ald-btn {
184
+ // background-color: @SB40;
185
+ // border-color: @SB40;
186
+
187
+ // &:hover,
188
+ // &:active,
189
+ // &:focus {
190
+ // background-color: @SB40;
191
+ // border-color: @SB40;
192
+ // }
193
+ // }
194
+ // }
195
+ // }
@@ -8,11 +8,11 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import { ChevronLeftLine, ChevronRightLine } from '@aloudata/icons-react';
12
11
  import classnames from 'classnames';
13
12
  import _ from 'lodash';
14
13
  import React, { useCallback, useEffect, useState } from 'react';
15
14
  import Button from "../Button";
15
+ import { ChevronLeftLine, ChevronRightLine } from "../Icon";
16
16
  function Pagination(props) {
17
17
  var _props$current = props.current,
18
18
  currPage = _props$current === void 0 ? 1 : _props$current,
@@ -2,11 +2,11 @@ var _excluded = ["okButtonProps", "cancelButtonProps", "okType", "icon"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  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; }
4
4
  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; }
5
- import { AlertTriangleDuotone } from '@aloudata/icons-react';
6
5
  import { Popconfirm } from 'antd';
7
6
  import classNames from 'classnames';
8
7
  import React from 'react';
9
8
  import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
9
+ import { AlertTriangleDuotone } from "../Icon";
10
10
  import themeColor from "../style/themes/default/themeColor.module.less";
11
11
  function MyPopconfirm(props) {
12
12
  var _props$okButtonProps = props.okButtonProps,
@@ -17,8 +17,8 @@ function MyPopconfirm(props) {
17
17
  _props$icon = props.icon,
18
18
  icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
19
19
  size: 16,
20
- theme: "multi-color",
21
- fill: [themeColor.SB40, themeColor.BG100]
20
+ color: themeColor.SB40,
21
+ fill: themeColor.BG100
22
22
  }) : _props$icon,
23
23
  restProps = _objectWithoutProperties(props, _excluded);
24
24
  function getButtonProps(buttonProps, defaultBtnType) {
@@ -9,6 +9,7 @@
9
9
  .ant-popconfirm-message {
10
10
  padding-bottom: 16px;
11
11
  margin-bottom: 0;
12
+ align-items: center;
12
13
  }
13
14
 
14
15
  .ant-popconfirm-buttons {
@@ -18,7 +19,11 @@
18
19
  }
19
20
 
20
21
  .ant-popconfirm-message {
21
- margin-bottom: 16px;
22
+ .ant-popconfirm-message-icon {
23
+ line-height: 20px;
24
+ display: flex;
25
+ align-items: center;
26
+ }
22
27
 
23
28
  .ant-popconfirm-message-title {
24
29
  font-weight: 400;
@@ -25,7 +25,8 @@ export var IconMap = {
25
25
  }),
26
26
  warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
27
27
  size: 80,
28
- color: "#FFB01F"
28
+ color: "#FFB01F",
29
+ fill: "#FFFFFF"
29
30
  })
30
31
  };
31
32
  export var ExceptionMap = {
@@ -16,7 +16,6 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  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; }
18
18
  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; }
19
- import { FoldDownFill } from '@aloudata/icons-react';
20
19
  import { Select as AntdSelect } from 'antd';
21
20
  import { getMergedStatus } from 'antd/lib/_util/statusUtils';
22
21
  import DisabledContext from 'antd/lib/config-provider/DisabledContext';
@@ -29,6 +28,7 @@ import React, { forwardRef, useContext, useEffect, useImperativeHandle, useMemo,
29
28
  import { ConfigContext } from "../ConfigProvider";
30
29
  import SizeContext from "../ConfigProvider/sizeContext";
31
30
  import Empty from "../Empty";
31
+ import { FoldDownFill } from "../Icon";
32
32
  import theme from "../style/themes/default/themeColor.module.less";
33
33
  import MultipleOption from "./components/MultipleOption";
34
34
  import SingleOption from "./components/SingleOption";
@@ -411,7 +411,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
411
411
  },
412
412
  suffixIcon: /*#__PURE__*/React.createElement(FoldDownFill, {
413
413
  size: suffixIconSizeMap[size || 'middle'],
414
- fill: theme.NL50
414
+ color: theme.NL50
415
415
  }),
416
416
  onDropdownVisibleChange: function onDropdownVisibleChange(open) {
417
417
  setIsOpen(open);
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import React from 'react';
3
- import { CheckCircleDuotone, AlertTriangleDuotone } from '@aloudata/icons-react';
4
- import { ProcessIcon } from "../ProcessIcon";
3
+ import { AlertTriangleDuotone, CheckCircleDuotone } from "../../../Icon";
5
4
  import { Steps as AntdSteps } from 'antd';
5
+ import { ProcessIcon } from "../ProcessIcon";
6
6
  var AntdStep = AntdSteps.Step;
7
7
  export function Step(props) {
8
8
  var status = props.status;
@@ -12,8 +12,8 @@ export function Step(props) {
12
12
  className: "error-icon-box icon-box"
13
13
  }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
14
14
  size: 16,
15
- theme: 'multi-color',
16
- fill: ['#D92D20', 'fff']
15
+ color: "#D92D20",
16
+ fill: "fff"
17
17
  }));
18
18
  }
19
19
  if (stepStatus === 'finish') {
@@ -21,8 +21,8 @@ export function Step(props) {
21
21
  className: "check-icon-box icon-box"
22
22
  }, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
23
23
  size: 16,
24
- theme: 'multi-color',
25
- fill: ['#D92D20', 'fff']
24
+ color: "#D92D20",
25
+ fill: "fff"
26
26
  }));
27
27
  }
28
28
  if (stepStatus === 'process') {
@@ -12,12 +12,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
12
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
13
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
- import { FoldDownFill, FoldUpFill } from '@aloudata/icons-react';
16
15
  import classnames from 'classnames';
17
16
  import _ from 'lodash';
18
17
  import React, { useState } from 'react';
19
- import message from "../../../message";
18
+ import { FoldDownFill, FoldUpFill } from "../../../Icon";
20
19
  import usePrefixCls from "../../../_utils/hooks/usePrefixCls";
20
+ import message from "../../../message";
21
21
  import { getValidWidthByNumber } from "../../utils";
22
22
  var ARRAY_FIRST_INDEX = 0;
23
23
  function TableHead(props) {
@@ -160,11 +160,9 @@ function TableHead(props) {
160
160
  }
161
161
  return desc ? /*#__PURE__*/React.createElement(FoldDownFill, {
162
162
  className: "".concat(prefixCls, "-sortIcon"),
163
- fill: "currentColor",
164
163
  size: 12
165
164
  }) : /*#__PURE__*/React.createElement(FoldUpFill, {
166
165
  className: "".concat(prefixCls, "-sortIcon"),
167
- fill: "currentColor",
168
166
  size: 12
169
167
  });
170
168
  };
@@ -10,9 +10,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  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; }
11
11
  import React, { useMemo } from 'react';
12
12
  // import AntdTabs, { TabsProps } from 'antd/lib/tabs';
13
- import { MoreVerticalLine } from '@aloudata/icons-react';
14
13
  import { Tabs as AntdTabs } from 'antd';
15
14
  import classNames from 'classnames';
15
+ import { MoreVerticalLine } from "../Icon";
16
16
  import TabPane from "./TabPane";
17
17
  export default function Tabs(props) {
18
18
  var size = props.size,
@@ -53,9 +53,7 @@ export default function Tabs(props) {
53
53
  return /*#__PURE__*/React.createElement(AntdTabs, _extends({
54
54
  moreIcon: /*#__PURE__*/React.createElement("div", {
55
55
  className: "ald-tabs-more-icon"
56
- }, /*#__PURE__*/React.createElement(MoreVerticalLine, {
57
- color: "currentColor"
58
- })),
56
+ }, /*#__PURE__*/React.createElement(MoreVerticalLine, null)),
59
57
  style: Object.assign(style, {
60
58
  '--header-bg-color': headerBackgroundColor,
61
59
  '--tabs-padding': "".concat(_padding, "px")
@@ -1,10 +1,10 @@
1
1
  import { DataNode } from 'antd/lib/tree';
2
- import { AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, TreeProps as AntdTreeProps } from 'antd/lib/tree/Tree';
2
+ import { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeProps as AntdTreeProps } from 'antd/lib/tree/Tree';
3
3
  import RcTree from 'rc-tree';
4
4
  import { BasicDataNode } from 'rc-tree/lib/interface';
5
5
  import React, { ForwardedRef } from 'react';
6
6
  export type { DataNode, EventDataNode } from 'antd/lib/tree';
7
- export type { DirectoryTreeProps, ExpandAction as DirectoryTreeExpandAction, } from 'antd/lib/tree/DirectoryTree';
7
+ export type { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, } from 'antd/lib/tree/DirectoryTree';
8
8
  export type { AntTreeNode, AntTreeNodeMouseEvent, AntTreeNodeExpandedEvent, AntTreeNodeCheckedEvent, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, AntTreeNodeProps, };
9
9
  export type TreeProps<T extends BasicDataNode = DataNode> = Omit<AntdTreeProps<T>, 'switcherIcon'>;
10
10
  declare const _default: <T extends BasicDataNode = DataNode>(props: TreeProps<T> & {
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
3
- import { ChevronDownLine } from '@aloudata/icons-react';
4
3
  import { Tree as AntdTree } from 'antd';
5
4
  import React from 'react';
5
+ import { ChevronDownLine } from "../Icon";
6
6
  import theme from "../style/themes/default/themeColor.module.less";
7
7
  function Tree(props, ref) {
8
8
  var restProps = Object.assign({}, (_objectDestructuringEmpty(props), props));
@@ -10,7 +10,7 @@ function Tree(props, ref) {
10
10
  ref: ref,
11
11
  switcherIcon: /*#__PURE__*/React.createElement(ChevronDownLine, {
12
12
  size: 14,
13
- fill: theme.NL40
13
+ color: theme.NL40
14
14
  }, "\u5C55\u5F00")
15
15
  }));
16
16
  }
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
1
  import { MessageArgsProps } from 'antd';
3
2
  import { JointContent } from 'antd/lib/message/interface';
3
+ import React from 'react';
4
4
  export type { MessageArgsProps };
5
5
  declare const message: {
6
6
  info: (content: JointContent, duration?: number, onClose?: VoidFunction) => import("antd/es/message/interface").MessageType;
@@ -4,9 +4,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
4
4
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
5
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
6
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
7
- import React from 'react';
8
7
  import { message as AntdMessage } from 'antd';
9
- import { InfoCircleLine, CheckCircleDuotone, AlertTriangleDuotone, LoadingLine } from '@aloudata/icons-react';
8
+ import React from 'react';
9
+ import { AlertTriangleDuotone, CheckCircleDuotone, InfoCircleLine, LoadingLine } from "../Icon";
10
10
  import styles from "../style/themes/default/themeColor.module.less";
11
11
  function isReactNode(value) {
12
12
  return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' || _typeof(value) === 'symbol' || value === null || value === undefined || /*#__PURE__*/React.isValidElement(value);
@@ -24,8 +24,8 @@ var iconMap = {
24
24
  icon: /*#__PURE__*/React.createElement("div", {
25
25
  className: "ald-message-icon-wrap"
26
26
  }, /*#__PURE__*/React.createElement(CheckCircleDuotone, {
27
- fill: [styles.ND0, styles.SA40],
28
- theme: "multi-color"
27
+ color: styles.ND0,
28
+ fill: styles.SA40
29
29
  })),
30
30
  type: 'success'
31
31
  },
@@ -33,8 +33,8 @@ var iconMap = {
33
33
  icon: /*#__PURE__*/React.createElement("div", {
34
34
  className: "ald-message-icon-wrap"
35
35
  }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
36
- fill: [styles.ND0, styles.SC40],
37
- theme: "multi-color"
36
+ color: styles.ND0,
37
+ fill: styles.SC40
38
38
  })),
39
39
  type: 'error'
40
40
  },
@@ -42,8 +42,8 @@ var iconMap = {
42
42
  icon: /*#__PURE__*/React.createElement("div", {
43
43
  className: "ald-message-icon-wrap"
44
44
  }, /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
45
- fill: [styles.ND0, styles.SB40],
46
- theme: "multi-color"
45
+ color: styles.ND0,
46
+ fill: styles.SB40
47
47
  })),
48
48
  type: 'warning'
49
49
  },
@@ -51,7 +51,7 @@ var iconMap = {
51
51
  icon: /*#__PURE__*/React.createElement("div", {
52
52
  className: "ald-message-icon-wrap"
53
53
  }, /*#__PURE__*/React.createElement(LoadingLine, {
54
- spin: true
54
+ className: "ald-loading-spin"
55
55
  })),
56
56
  type: 'loading'
57
57
  }
@@ -10,10 +10,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
10
10
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
12
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
- import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseMLine, InfoCircleLine } from '@aloudata/icons-react';
14
13
  import { notification as AntdNotification } from 'antd';
15
14
  import classnames from 'classnames';
16
15
  import React from 'react';
16
+ import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, CloseMLine, InfoCircleLine } from "../Icon";
17
17
  import theme from "../style/themes/default/themeColor.module.less";
18
18
  var iconMap = {
19
19
  info: /*#__PURE__*/React.createElement(InfoCircleLine, {
@@ -21,24 +21,24 @@ var iconMap = {
21
21
  size: 20
22
22
  }),
23
23
  success: /*#__PURE__*/React.createElement(CheckCircleDuotone, {
24
- fill: [theme.SA40, theme.ND0],
25
- theme: "multi-color",
24
+ color: "#16B667",
25
+ fill: "#FFFFFF",
26
26
  size: 20
27
27
  }),
28
28
  error: /*#__PURE__*/React.createElement(CancelCircleDuotone, {
29
- fill: [theme.SC40, theme.ND0],
30
- size: 20,
31
- theme: "multi-color"
29
+ color: "#D64343",
30
+ fill: "#FFFFFF",
31
+ size: 20
32
32
  }),
33
33
  warning: /*#__PURE__*/React.createElement(AlertTriangleDuotone, {
34
- fill: [theme.SB40, theme.ND0],
35
- theme: "multi-color",
34
+ color: "#FFB01F",
35
+ fill: "#FFFFFF",
36
36
  size: 20
37
37
  })
38
38
  };
39
39
  var closeX = /*#__PURE__*/React.createElement(CloseMLine, {
40
40
  size: 20,
41
- fill: theme.NL40
41
+ color: theme.NL40
42
42
  });
43
43
  var getSDefaultStyle = function getSDefaultStyle(type) {
44
44
  return _objectSpread(_objectSpread(_objectSpread(_objectSpread({