@aloudata/aloudata-design 2.7.3 → 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.
@@ -2,25 +2,25 @@ import { DatePicker as AntdDatePicker, DatePickerProps as AntdDatePickerProps }
2
2
  import { Dayjs } from 'dayjs';
3
3
  export type { RangeValue } from 'rc-picker/lib/interface';
4
4
  declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
5
- status?: "" | "warning" | "error" | undefined;
5
+ status?: "" | "error" | "warning" | undefined;
6
6
  hashId?: string | undefined;
7
7
  popupClassName?: string | undefined;
8
8
  rootClassName?: string | undefined;
9
9
  }, unknown> & {
10
10
  WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
11
- status?: "" | "warning" | "error" | undefined;
11
+ status?: "" | "error" | "warning" | undefined;
12
12
  hashId?: string | undefined;
13
13
  popupClassName?: string | undefined;
14
14
  rootClassName?: string | undefined;
15
15
  }, "picker">, unknown>;
16
16
  MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
17
- status?: "" | "warning" | "error" | undefined;
17
+ status?: "" | "error" | "warning" | undefined;
18
18
  hashId?: string | undefined;
19
19
  popupClassName?: string | undefined;
20
20
  rootClassName?: string | undefined;
21
21
  }, "picker">, unknown>;
22
22
  YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
23
- status?: "" | "warning" | "error" | undefined;
23
+ status?: "" | "error" | "warning" | undefined;
24
24
  hashId?: string | undefined;
25
25
  popupClassName?: string | undefined;
26
26
  rootClassName?: string | undefined;
@@ -34,9 +34,9 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
34
34
  size?: import("antd/es/button").ButtonSize;
35
35
  placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
36
36
  bordered?: boolean | undefined;
37
- status?: "" | "warning" | "error" | undefined;
37
+ status?: "" | "error" | "warning" | undefined;
38
38
  } & {
39
- status?: "" | "warning" | "error" | undefined;
39
+ status?: "" | "error" | "warning" | undefined;
40
40
  hashId?: string | undefined;
41
41
  popupClassName?: string | undefined;
42
42
  rootClassName?: string | undefined;
@@ -46,9 +46,9 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
46
46
  size?: import("antd/es/button").ButtonSize;
47
47
  placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
48
48
  bordered?: boolean | undefined;
49
- status?: "" | "warning" | "error" | undefined;
49
+ status?: "" | "error" | "warning" | undefined;
50
50
  } & {
51
- status?: "" | "warning" | "error" | undefined;
51
+ status?: "" | "error" | "warning" | undefined;
52
52
  hashId?: string | undefined;
53
53
  popupClassName?: string | undefined;
54
54
  rootClassName?: string | undefined;
@@ -5,6 +5,6 @@ declare const DoubleCircleIcon: (props: {
5
5
  size?: number | undefined;
6
6
  innerColor?: string | undefined;
7
7
  children: React.ReactNode;
8
- type?: "warning" | "error" | "success" | "info" | undefined;
8
+ type?: "success" | "error" | "info" | "warning" | undefined;
9
9
  }) => React.JSX.Element;
10
10
  export default DoubleCircleIcon;
@@ -18,7 +18,7 @@ interface IFormItemProps extends FormItemProps {
18
18
  declare const AldFormItem: {
19
19
  (props: IFormItemProps): React.JSX.Element;
20
20
  useStatus: () => {
21
- status?: "" | "warning" | "error" | "success" | "validating" | undefined;
21
+ status?: "" | "success" | "error" | "warning" | "validating" | undefined;
22
22
  errors: React.ReactNode[];
23
23
  warnings: React.ReactNode[];
24
24
  };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IRadioGroupProps } from '../../interface/radioGroup';
3
- export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "className" | "children">>;
3
+ export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "children" | "className">>;
4
4
  export default function RadioGroup(props: IRadioGroupProps): React.JSX.Element;
@@ -1,5 +1,5 @@
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
- var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "prefixWidth", "className", "popupClassName", "listHeight", "notFoundContent", "value", "type", "tagRender", "style", "autoFocus", "showSearch", "size", "status", "disabled", "prefixCls", "placeholder", "dropdownStyle", "showArrow"];
2
+ var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "prefixWidth", "className", "popupClassName", "listHeight", "notFoundContent", "value", "type", "tagRender", "style", "autoFocus", "showSearch", "size", "status", "disabled", "prefixCls", "placeholder", "dropdownStyle", "virtual", "showArrow"];
3
3
  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); }
4
4
  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; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
@@ -106,6 +106,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
106
106
  customizePrefixCls = props.prefixCls,
107
107
  propsPlaceholder = props.placeholder,
108
108
  dropdownStyle = props.dropdownStyle,
109
+ virtual = props.virtual,
109
110
  _props$showArrow = props.showArrow,
110
111
  showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
111
112
  restProps = _objectWithoutProperties(props, _excluded);
@@ -241,6 +242,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
241
242
  height: getListHeight(),
242
243
  itemHeight: listItemHeight,
243
244
  itemKey: "value",
245
+ virtual: virtual,
244
246
  fullHeight: false
245
247
  }, function (option) {
246
248
  var isSelected = false;
@@ -283,6 +285,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
283
285
  height: getListHeight(),
284
286
  itemHeight: listItemHeight,
285
287
  itemKey: "value",
288
+ virtual: virtual,
286
289
  fullHeight: false
287
290
  }, function (option) {
288
291
  var isSelected = selectedOptions.some(function (selectedOption) {
@@ -411,6 +414,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
411
414
  placeholder: placeholder,
412
415
  showSearch: showSearch,
413
416
  options: innerOptions,
417
+ virtual: virtual,
414
418
  showArrow: isMultiple && type === 'primary' ? false : showArrow,
415
419
  mode: isMultiple ? 'multiple' : undefined,
416
420
  bordered: false,
@@ -11,7 +11,11 @@ export function ProcessIcon(_ref) {
11
11
  return /*#__PURE__*/React.createElement("span", {
12
12
  className: classNames("".concat(type, "-icon-box"), 'icon-box')
13
13
  }, /*#__PURE__*/React.createElement("img", {
14
- src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMyIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDMgMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjI4MTI1MSAwSDEuOTY4NzVWNi41SDAuMjgxMjUxVjBaTTEuMTI1IDEwQzAuOTAyNDk3IDEwIDAuNjg0OTkgOS45MzQwMiAwLjQ5OTk4NSA5LjgxMDRDMC4zMTQ5NzkgOS42ODY3OSAwLjE3MDc4NSA5LjUxMTA4IDAuMDg1NjM2MSA5LjMwNTUyQzAuMDAwND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cuMjgxMjVWM1pNOC4xMjUgMTNDNy45MDI1IDEzIDcuNjg0OTkgMTIuOTM0IDcuNDk5OTggMTIuODEwNEM3LjMxNDk4IDEyLjY4NjggNy4xNzA3OCAxMi41MTExIDcuMDg1NjQgMTIuMzA1NUM3LjAwMDQ5IDEyLjEgNi45NzgyMSAxMS44NzM4IDcuMDIxNjIgMTEuNjU1NUM3LjA2NTAzIDExLjQzNzMgNy4xNzIxNyAxMS4yMzY4IDcuMzI5NTEgMTEuMDc5NUM3LjQ4Njg0IDEwLjkyMjIgNy42ODczIDEwLjgxNSA3LjkwNTUyIDEwLjc3MTZDOC4xMjM3NSAxMC43MjgyIDguMzQ5OTUgMTAuNzUwNSA4LjU1NTUyIDEwLjgzNTZDOC43NjEwOSAxMC45MjA4IDguOTM2NzkgMTEuMDY1IDkuMDYwNCAxMS4yNUM5LjE4NDAyIDExLjQzNSA5LjI1IDExLjY1MjUgOS4yNSAxMS44NzVDOS4yNSAxMi4xNzM0IDkuMTMxNDcgMTIuNDU5NSA4LjkyMDUgMTIuNjcwNUM4LjcwOTUyIDEyLjg4MTUgOC40MjMzNyAxMyA4LjEyNSAxM1oiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg=="
15
19
  }));
16
20
  }
17
21
  return /*#__PURE__*/React.createElement("span", {
@@ -5,11 +5,10 @@
5
5
  padding: 24px;
6
6
 
7
7
  .ant-steps-item .ant-steps-item-container .ant-steps-item-icon {
8
- margin: 0 8px 10px 66px;
8
+ margin: 0 8px 4px 66px;
9
9
  font-size: 12px;
10
- line-height: 24px;
10
+ height: 16px;
11
11
  text-align: center;
12
- border-radius: 24px;
13
12
  transition: background-color 0.3s, border-color 0.3s;
14
13
  }
15
14
 
@@ -21,7 +20,7 @@
21
20
  display: flex;
22
21
  flex-direction: column;
23
22
  align-items: center;
24
- margin: 1px 4px;
23
+ margin: 0 4px;
25
24
  font-size: 13px;
26
25
  }
27
26
 
@@ -50,14 +49,14 @@
50
49
 
51
50
  &::after {
52
51
  height: 1.5px;
53
- background-color: @B40;
52
+ background-color: #126fdd;
54
53
  content: '';
55
54
  }
56
55
  }
57
56
 
58
57
  .ant-steps-item-title {
59
58
  height: 20px;
60
- font-weight: 400;
59
+ font-weight: 500;
61
60
  font-size: 13px;
62
61
  font-style: normal;
63
62
  line-height: 20px;
@@ -66,9 +65,9 @@
66
65
  .ant-steps-item-description {
67
66
  max-width: 264px;
68
67
  max-height: 32px;
69
- margin-top: 3px;
68
+ margin-top: 4px;
70
69
  overflow: hidden;
71
- color: @NL50;
70
+ color: #4b5563;
72
71
  font-weight: 400;
73
72
  font-size: 12px;
74
73
  font-style: normal;
@@ -80,16 +79,19 @@
80
79
  &.ant-steps-item-finish {
81
80
  .ant-steps-item-tail::after {
82
81
  height: 1.5px;
83
- background-color: @B40;
82
+ background-color: #126fdd;
84
83
  }
85
84
 
86
85
  .ant-steps-item-container {
87
86
  .ant-steps-item-content {
88
87
  .ant-steps-item-title {
89
- color: @NL50;
90
- font-weight: 400;
88
+ color: #9ca3af;
89
+ font-weight: 500;
91
90
  font-size: 13px;
92
- margin-top: 3px;
91
+ }
92
+
93
+ .ant-steps-item-description {
94
+ color: #9ca3af;
93
95
  }
94
96
  }
95
97
  }
@@ -98,14 +100,14 @@
98
100
  &.ant-steps-item-active {
99
101
  .ant-steps-item-container {
100
102
  .ant-steps-item-tail::after {
101
- background-color: @BG60;
103
+ background-color: #e5e7eb !important;
102
104
  }
103
105
 
104
106
  .ant-steps-item-content {
105
107
  .ant-steps-item-title {
106
- color: @B30;
107
- font-weight: 600;
108
- font-size: 13px;
108
+ color: #126fdd;
109
+ font-weight: 500;
110
+ font-size: 14px;
109
111
  }
110
112
  }
111
113
  }
@@ -114,14 +116,12 @@
114
116
  &.ant-steps-item-wait {
115
117
  .ant-steps-item-container {
116
118
  .ant-steps-item-tail::after {
117
- background-color: @BG60;
119
+ background-color: #9ca3af;
118
120
  }
119
121
 
120
122
  .ant-steps-item-content {
121
123
  .ant-steps-item-title {
122
- color: @NL0;
123
- font-weight: 400;
124
- font-size: 13px;
124
+ color: #1f2937;
125
125
  }
126
126
  }
127
127
  }
@@ -131,12 +131,12 @@
131
131
  .ant-steps-item-container {
132
132
  .ant-steps-item-content {
133
133
  .ant-steps-item-title {
134
- color: @SC40;
135
- font-size: 13px;
134
+ color: #b91c1c;
135
+ font-size: 14px;
136
136
  }
137
137
 
138
138
  .ant-steps-item-description {
139
- color: @NL50;
139
+ color: #9ca3af;
140
140
  }
141
141
  }
142
142
  }
@@ -170,7 +170,6 @@
170
170
 
171
171
  .ant-steps-item-title {
172
172
  height: 20px;
173
- margin-top: 1px;
174
173
  font-size: 14px;
175
174
  line-height: 20px;
176
175
  }
@@ -179,13 +178,14 @@
179
178
  max-width: 264px;
180
179
  height: 16px;
181
180
  max-height: 32px;
182
- margin-top: 4px;
181
+ margin-top: 3px;
183
182
  padding: 0;
184
183
  overflow: hidden;
185
184
  font-size: 12px;
186
185
  line-height: 16px;
187
186
  text-overflow: ellipsis;
188
187
  word-wrap: break-word;
188
+ color: #4b5563;
189
189
  -webkit-line-clamp: 2;
190
190
  }
191
191
  }
@@ -226,7 +226,7 @@
226
226
  &::after {
227
227
  width: 1.5px;
228
228
  height: 100%;
229
- background-color: @B40;
229
+ background-color: #126fdd;
230
230
  }
231
231
  }
232
232
  }
@@ -240,7 +240,11 @@
240
240
  }
241
241
 
242
242
  &.ant-steps-item-title {
243
- color: @NL50;
243
+ color: #9ca3af;
244
+ }
245
+
246
+ .ant-steps-item-description {
247
+ color: #9ca3af !important;
244
248
  }
245
249
  }
246
250
  }
@@ -274,12 +278,12 @@
274
278
  }
275
279
 
276
280
  .check-icon-box {
277
- color: @B40;
281
+ color: #126fdd;
278
282
  }
279
283
 
280
284
  .ald-steps.ald-steps .finish-icon-box {
281
285
  position: relative;
282
- background-color: @B40;
286
+ background-color: #2986f4;
283
287
  display: grid;
284
288
  place-items: center;
285
289
 
@@ -304,7 +308,7 @@
304
308
  // 提升该类名的优先级,不然会被.iconBox覆盖掉
305
309
  .ald-steps.ald-steps .process-icon-box {
306
310
  position: relative;
307
- background-color: @B40;
311
+ background-color: #2986f4;
308
312
 
309
313
  &::after {
310
314
  position: absolute;
@@ -321,7 +325,7 @@
321
325
 
322
326
  .ald-steps.ald-steps .wait-icon-box {
323
327
  position: relative;
324
- background-color: @BG60;
328
+ background-color: #9ca3af;
325
329
 
326
330
  &::after {
327
331
  position: absolute;
@@ -329,9 +333,15 @@
329
333
  left: 50%;
330
334
  width: 6px;
331
335
  height: 6px;
332
- background-color: @BG80;
336
+ background-color: #fff;
333
337
  border-radius: 50%;
334
338
  transform: translate(-50%, -50%);
335
339
  content: '';
336
340
  }
337
341
  }
342
+
343
+ .ald-steps > .ant-steps-item:last-child {
344
+ .ant-steps-item-tail::after {
345
+ content: unset !important;
346
+ }
347
+ }
@@ -21,7 +21,7 @@ export declare function getTableColumns<TDataItem extends object>({ columns, tot
21
21
  render?: ((text: any, record: TDataItem, rowIndex: number) => import("react").ReactNode) | undefined;
22
22
  ellipsis?: boolean | undefined;
23
23
  noPadding?: boolean | undefined;
24
- align?: "left" | "center" | "right" | undefined;
24
+ align?: "center" | "left" | "right" | undefined;
25
25
  fixed?: "left" | "right" | undefined;
26
26
  sortOrder?: "ascend" | "descend" | null | undefined;
27
27
  };
package/dist/Tag/index.js CHANGED
@@ -44,7 +44,8 @@ export default function Tag(props) {
44
44
  }, icon && /*#__PURE__*/React.createElement("span", {
45
45
  className: prefixCls('icon')
46
46
  }, icon), /*#__PURE__*/React.createElement("span", {
47
- className: prefixCls('content')
47
+ className: prefixCls('content'),
48
+ title: typeof children === 'string' ? children : ''
48
49
  }, children), closable ? /*#__PURE__*/React.createElement("span", {
49
50
  className: prefixCls('close-btn'),
50
51
  onClick: onCloseBtnClick
@@ -86,6 +86,7 @@
86
86
  display: flex;
87
87
  align-items: center;
88
88
  border-radius: 4px;
89
+ min-width: 0;
89
90
  // stylelint-disable-next-line
90
91
  .ald-tree-iconEle {
91
92
  display: inline-flex;
@@ -102,6 +103,10 @@
102
103
  align-items: center;
103
104
  justify-content: space-between;
104
105
  flex: 1;
106
+ min-width: 0;
107
+ overflow: hidden;
108
+ text-overflow: ellipsis;
109
+ white-space: nowrap;
105
110
 
106
111
  .ald-tree-tab-leader {
107
112
  flex: 1;