@aloudata/aloudata-design 0.4.8-beta.13 → 0.4.8-beta.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.
@@ -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?: "error" | "success" | "warning" | "info" | undefined;
8
+ type?: "warning" | "error" | "success" | "info" | undefined;
9
9
  }) => JSX.Element;
10
10
  export default DoubleCircleIcon;
@@ -12,6 +12,10 @@
12
12
  padding: 4px;
13
13
  color: @NL0;
14
14
  box-shadow: @shadow-L;
15
+
16
+ .ant-dropdown-menu-submenu-title{
17
+ font-size: 13px;
18
+ }
15
19
  }
16
20
 
17
21
  .ant-dropdown-menu-submenu > .ant-dropdown-menu {
@@ -41,6 +41,7 @@
41
41
  @input-disabled-font-color: @NL40;
42
42
 
43
43
  .ant-input.ald-input,
44
+ .ant-input-affix-wrapper.ald-input,
44
45
  .ald-input .ant-input {
45
46
  color: @NL0;
46
47
  font-weight: 400;
@@ -137,7 +138,7 @@
137
138
  }
138
139
 
139
140
  .ant-input-prefix {
140
- color: @NL50;
141
+ color: @NL40;
141
142
  }
142
143
 
143
144
  .ant-input-suffix {
@@ -361,13 +362,14 @@ textarea.ald-input-textarea-small,
361
362
  textarea.ald-input-textarea,
362
363
  .ald-input-textarea .ant-input {
363
364
  color: @NL0;
364
- background: @BG97;
365
+ background: @input-bg-color;
365
366
  caret-color: @B60;
367
+ border-color: @input-border-color;
366
368
 
367
369
  &:hover,
368
370
  &:active,
369
371
  &:focus {
370
- border-color: @B60;
372
+ border-color: @B40;
371
373
  box-shadow: none;
372
374
  }
373
375
 
@@ -396,6 +398,11 @@ textarea.ald-input-textarea,
396
398
  }
397
399
 
398
400
  .ant-input-group-wrapper {
401
+ .ant-input-group-addon{
402
+ color:@NL40;
403
+ border-color: @input-border-color;
404
+ }
405
+
399
406
  &.ald-input-large {
400
407
  .ant-input-group-addon {
401
408
  padding: 4px 14px;
@@ -3,17 +3,17 @@
3
3
 
4
4
  @inputNumber-height-large: 36px;
5
5
  @inputNumber-font-size-large: 16px;
6
- @inputNumber-border-radius-large: 8px;
6
+ @inputNumber-border-radius-large: 6px;
7
7
  @inputNumber-padding-large: 0 14px;
8
8
 
9
9
  @inputNumber-height-middle: 32px;
10
10
  @inputNumber-font-size-middle: 14px;
11
- @inputNumber-border-radius-middle: 8px;
11
+ @inputNumber-border-radius-middle: 4px;
12
12
  @inputNumber-padding-middle: 0 12px;
13
13
 
14
14
  @inputNumber-height-small: 28px;
15
15
  @inputNumber-font-size-small: 12px;
16
- @inputNumber-border-radius-small: 6px;
16
+ @inputNumber-border-radius-small: 4px;
17
17
  @inputNumber-padding-small: 0 10px;
18
18
 
19
19
  //默认
@@ -102,6 +102,7 @@
102
102
  &.ald-inputNumber-large {
103
103
  height: @inputNumber-height-large;
104
104
  font-size: @inputNumber-font-size-large;
105
+ border-radius: @inputNumber-border-radius-large ;
105
106
 
106
107
  .ant-input-number-input {
107
108
  padding: @inputNumber-padding-large;
@@ -115,6 +116,7 @@
115
116
  &.ald-inputNumber-middle {
116
117
  height: @inputNumber-height-middle;
117
118
  font-size: @inputNumber-font-size-middle;
119
+ border-radius: @inputNumber-border-radius-middle ;
118
120
 
119
121
  .ant-input-number-input {
120
122
  padding: @inputNumber-padding-middle;
@@ -128,6 +130,7 @@
128
130
  &.ald-inputNumber-small {
129
131
  height: @inputNumber-height-small;
130
132
  font-size: @inputNumber-font-size-small;
133
+ border-radius: @inputNumber-border-radius-small;
131
134
 
132
135
  .ant-input-number-input {
133
136
  padding: @inputNumber-padding-small;
@@ -143,9 +146,11 @@
143
146
  background-color: @inputNumber-disabled-bg-color;
144
147
  border-color: @inputNumber-disabled-border-color;
145
148
  cursor: initial;
146
-
149
+
147
150
  .ant-input-number-input-wrap .ant-input-number-input {
148
151
  cursor: initial;
152
+ color: @inputNumber-disabled-color;
153
+ background-color: @inputNumber-disabled-bg-color;
149
154
  }
150
155
  }
151
156
 
@@ -52,6 +52,11 @@
52
52
  &:hover{
53
53
  background: none;
54
54
  }
55
+
56
+ .ant-menu-submenu-expand-icon{
57
+ inset-inline-end:0;
58
+ width:initial;
59
+ }
55
60
  }
56
61
  }
57
62
 
@@ -6,6 +6,7 @@
6
6
  box-shadow: 0 20px 24px -4px rgb(16 24 40 / 8%),
7
7
  0 8px 8px -4px rgb(16 24 40 / 3%);
8
8
  border-radius: 4px;
9
+ border:1px solid @BG60;
9
10
  }
10
11
 
11
12
  .ald-modal-close {
@@ -335,7 +335,6 @@
335
335
  .ald-radio-wrapper-checked.ald-radio-icon-button-wrapper-filter {
336
336
  position: relative;
337
337
  border-radius: @border-radius-middle;
338
- background-color: @B90;
339
338
 
340
339
  .ald-radio-desc {
341
340
  position: relative;
@@ -1,4 +1,4 @@
1
- var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "style"];
1
+ var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "tagRender", "style"];
2
2
 
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
 
@@ -105,9 +105,10 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
105
105
  notFoundContent = _props$notFoundConten === void 0 ? /*#__PURE__*/React.createElement(Empty, {
106
106
  image: Empty.PRESENTED_IMAGE_SEARCH_SMALL,
107
107
  size: "small",
108
- title: "No data"
108
+ title: "\u65E0\u6570\u636E"
109
109
  }) : _props$notFoundConten,
110
110
  value = props.value,
111
+ tagRender = props.tagRender,
111
112
  _props$style = props.style,
112
113
  style = _props$style === void 0 ? {} : _props$style,
113
114
  restProps = _objectWithoutProperties(props, _excluded);
@@ -260,8 +261,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
260
261
  return /*#__PURE__*/React.createElement(React.Fragment, null, notFoundContent);
261
262
  };
262
263
  }
263
- }; // todo: tagRender
264
- // todo: 隐藏已选择项
264
+ }; // todo: 隐藏已选择项
265
265
  // todo: 分组
266
266
 
267
267
 
@@ -285,7 +285,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
285
285
  '--ald-select-prefix-width': "".concat(prefixWidth, "px")
286
286
  };
287
287
 
288
- var tagRender = function tagRender(props) {
288
+ var defaultTagRender = function defaultTagRender(props) {
289
289
  var label = props.label;
290
290
  return /*#__PURE__*/React.createElement("span", {
291
291
  className: "ald-select-multiple-tag-default"
@@ -329,7 +329,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
329
329
  open: typeof open === 'boolean' ? open : isOpen,
330
330
  maxTagCount: "responsive",
331
331
  ref: ref,
332
- tagRender: tagRender,
332
+ tagRender: tagRender || defaultTagRender,
333
333
  onChange: onChange,
334
334
  popupClassName: classNames('ald-select-popup', popupClassName),
335
335
  maxTagPlaceholder: maxTagPlaceholder,
@@ -14,6 +14,7 @@
14
14
  // max-height: 264px;
15
15
  overflow-y: auto;
16
16
  overflow-y: overlay;
17
+ border:1px solid @BG70;
17
18
  }
18
19
  }
19
20
 
@@ -41,7 +41,7 @@
41
41
  color: inherit;
42
42
  text-align: left;
43
43
  word-break: break-all;
44
- border-bottom: 1px solid @BG70;
44
+ border-bottom: 1px solid @BG80;
45
45
 
46
46
  &-content {
47
47
  flex: 1;
@@ -218,6 +218,10 @@
218
218
  margin-left: 4px;
219
219
  }
220
220
 
221
+ .ald-table-thead {
222
+ border-top: 1px solid @BG70;
223
+ }
224
+
221
225
  &-column-resizable {
222
226
  overflow: overlay;
223
227
 
@@ -5,12 +5,18 @@
5
5
  padding: 6px 12px;
6
6
  line-height: 20px;
7
7
  background: @BG10;
8
- border-radius: @border-radius-base;
8
+ border-radius: 4px;
9
9
  box-shadow: none;
10
10
  color:@ND0;
11
11
  font-size: 13px;
12
12
  }
13
13
 
14
+ .ant-tooltip-arrow {
15
+ &::before{
16
+ background-color: @BG10;
17
+ }
18
+ }
19
+
14
20
  .ant-tooltip-arrow-content {
15
21
  background: @BG10;
16
22
  }
@@ -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-beta.13",
3
+ "version": "0.4.8-beta.15",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "@aloudata/icons-react": "0.1.7",
54
54
  "@aloudata/icons-svg": "0.1.7",
55
- "antd": "5.2.0",
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",