@aloudata/aloudata-design 2.0.0 → 2.0.1

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.
@@ -24,8 +24,8 @@
24
24
  }
25
25
 
26
26
  .ald-empty-title {
27
- color: @NL0;
28
- font-size: 13px;
27
+ color: var(--alias-colors-text-default, #1f2937);
28
+ font-size: 14px;
29
29
  line-height: 24px;
30
30
  margin-bottom: 4px;
31
31
  font-weight: 500;
@@ -34,7 +34,7 @@
34
34
  .ald-empty-title-small {
35
35
  color: #858585;
36
36
  font-weight: 400;
37
- font-size: 13px;
37
+ font-size: 14px;
38
38
  }
39
39
 
40
40
  .ald-empty-description {
@@ -23,19 +23,12 @@ var CloseLLine = function CloseLLine(_ref, ref) {
23
23
  id: descId
24
24
  }, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
25
25
  id: titleId
26
- }, title) : null, /*#__PURE__*/React.createElement("g", {
27
- clipPath: "url(#a)"
28
- }, /*#__PURE__*/React.createElement("path", {
26
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
29
27
  fill: props.color || 'currentColor',
30
28
  fillRule: "evenodd",
31
- d: "m12 11.293 6.01-6.01.707.707-6.01 6.01 6.01 6.01-.707.707-6.01-6.01-6.01 6.01-.708-.707 6.01-6.01-6.01-6.01.708-.708 6.01 6.01Z",
29
+ d: "M6.47 6.47a.75.75 0 0 1 1.06 0L12 10.94l4.47-4.47a.75.75 0 1 1 1.06 1.06L13.06 12l4.47 4.47a.75.75 0 1 1-1.06 1.06L12 13.06l-4.47 4.47a.75.75 0 0 1-1.06-1.06L10.94 12 6.47 7.53a.75.75 0 0 1 0-1.06Z",
32
30
  clipRule: "evenodd"
33
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
34
- id: "a"
35
- }, /*#__PURE__*/React.createElement("path", {
36
- fill: props.fill || 'currentColor',
37
- d: "M0 0h24v24H0z"
38
- }))));
31
+ }));
39
32
  };
40
33
  var ForwardRef = /*#__PURE__*/forwardRef(CloseLLine);
41
34
  var Memo = /*#__PURE__*/memo(ForwardRef);
@@ -1,12 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_278_6954)">
3
- <path fill-rule="evenodd" clip-rule="evenodd"
4
- d="M12 11.2929L18.0104 5.2825L18.7175 5.98961L12.7071 12L18.7175 18.0104L18.0104 18.7175L12 12.7071L5.98959 18.7175L5.28249 18.0104L11.2929 12L5.28249 5.98961L5.98959 5.2825L12 11.2929Z"
5
- fill="black" />
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_278_6954">
9
- <rect width="24" height="24" fill="white" />
10
- </clipPath>
11
- </defs>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M6.46967 6.46967C6.76256 6.17678 7.23744 6.17678 7.53033 6.46967L12 10.9393L16.4697 6.46967C16.7626 6.17678 17.2374 6.17678 17.5303 6.46967C17.8232 6.76256 17.8232 7.23744 17.5303 7.53033L13.0607 12L17.5303 16.4697C17.8232 16.7626 17.8232 17.2374 17.5303 17.5303C17.2374 17.8232 16.7626 17.8232 16.4697 17.5303L12 13.0607L7.53033 17.5303C7.23744 17.8232 6.76256 17.8232 6.46967 17.5303C6.17678 17.2374 6.17678 16.7626 6.46967 16.4697L10.9393 12L6.46967 7.53033C6.17678 7.23744 6.17678 6.76256 6.46967 6.46967Z" fill="black"/>
12
3
  </svg>
@@ -13,6 +13,7 @@ import classnames from 'classnames';
13
13
  import React, { useContext } from 'react';
14
14
  import { ConfigContext } from "../../../ConfigProvider";
15
15
  import { CloseCircleFill } from "../../../Icon";
16
+ import IconButton from "../../../IconButton/index";
16
17
  export function getSizeType(sizeType) {
17
18
  if (['small', 'middle', 'large'].includes(sizeType || '')) {
18
19
  return sizeType;
@@ -45,9 +46,11 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
45
46
  disabled: disabled,
46
47
  autoComplete: "off",
47
48
  allowClear: allowClear ? {
48
- clearIcon: /*#__PURE__*/React.createElement(CloseCircleFill, {
49
- size: 20,
50
- color: "#9CA3AF"
49
+ clearIcon: /*#__PURE__*/React.createElement(IconButton, {
50
+ size: "small",
51
+ icon: /*#__PURE__*/React.createElement(CloseCircleFill, {
52
+ color: "#9CA3AF"
53
+ })
51
54
  })
52
55
  } : undefined,
53
56
  spellCheck: false,
@@ -11,6 +11,7 @@ import classnames from 'classnames';
11
11
  import React, { useContext } from 'react';
12
12
  import SizeContext from "../../../ConfigProvider/sizeContext";
13
13
  import { EyeOffLine, EyeOnLine } from "../../../Icon";
14
+ import IconButton from "../../../IconButton";
14
15
  import { getSizeType } from "../Input";
15
16
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
17
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -26,10 +27,9 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
26
27
  disabled: disabled,
27
28
  className: classnames('ald-input', 'ald-input-password', "ald-input-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
28
29
  iconRender: function iconRender(visible) {
29
- return visible ? /*#__PURE__*/React.createElement(EyeOnLine, {
30
- size: 20
31
- }) : /*#__PURE__*/React.createElement(EyeOffLine, {
32
- size: 20
30
+ return /*#__PURE__*/React.createElement(IconButton, {
31
+ size: "small",
32
+ icon: visible ? /*#__PURE__*/React.createElement(EyeOnLine, null) : /*#__PURE__*/React.createElement(EyeOffLine, null)
33
33
  });
34
34
  }
35
35
  }));
@@ -11,6 +11,7 @@ import classnames from 'classnames';
11
11
  import React, { useContext } from 'react';
12
12
  import SizeContext from "../../../ConfigProvider/sizeContext";
13
13
  import { CloseCircleFill } from "../../../Icon";
14
+ import IconButton from "../../../IconButton";
14
15
  import { getSizeType } from "../Input";
15
16
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
16
17
  var _props$bordered = props.bordered,
@@ -30,9 +31,11 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
30
31
  spellCheck: false,
31
32
  className: classnames('ald-input', 'ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
32
33
  allowClear: allowClear ? {
33
- clearIcon: /*#__PURE__*/React.createElement(CloseCircleFill, {
34
- size: 20,
35
- color: "#9CA3AF"
34
+ clearIcon: /*#__PURE__*/React.createElement(IconButton, {
35
+ size: "small",
36
+ icon: /*#__PURE__*/React.createElement(CloseCircleFill, {
37
+ color: "#9CA3AF"
38
+ })
36
39
  })
37
40
  } : false,
38
41
  ref: ref,
@@ -1,6 +1,7 @@
1
1
  /* stylelint-disable no-descending-specificity */
2
2
  @import '../../style/index.less';
3
3
  @import '../../Icon/index.less';
4
+ @import '../../IconButton/style/index.less';
4
5
  @import './reset.less';
5
6
  @import './size.less';
6
7
  @import './status.less';
@@ -86,6 +86,7 @@
86
86
  border-radius: var(--alias-radius-75, 6px);
87
87
  box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
88
88
  overflow: hidden;
89
+ padding: 2px 0;
89
90
  }
90
91
 
91
92
  // menu菜单
@@ -55,7 +55,7 @@ var ModalTitle = function ModalTitle(_ref, type) {
55
55
  subTitle = _ref.subTitle;
56
56
  return /*#__PURE__*/React.createElement("div", {
57
57
  className: 'ald-modal-title-container'
58
- }, /*#__PURE__*/React.createElement("div", {
58
+ }, icon && /*#__PURE__*/React.createElement("div", {
59
59
  className: classNames('ald-modal-icon-container', _defineProperty({}, "ald-modal-cion-".concat(type, "-container"), type))
60
60
  }, icon), /*#__PURE__*/React.createElement("div", {
61
61
  className: 'ald-modal-text-container'
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .ant-modal-header {
29
- padding: var(--alias-spacing-200, 16px) var(--alias-spacing-250, 20px);
29
+ padding: var(--alias-spacing-200, 16px) var(--alias-padding-300, 24px);
30
30
  margin-bottom: 0;
31
31
  border-bottom: 1px solid var(--alias-colors-border-default, #e5e7eb);
32
32
  background: var(--alias-colors-bg-skeleton-subtler, #fff);
@@ -1,8 +1,8 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @radio-icon-button-padding-large: 6px;
4
- @radio-icon-button-padding-middle: 6px;
5
- @radio-icon-button-padding-small: 7px;
3
+ @radio-icon-button-padding-large: 4px;
4
+ @radio-icon-button-padding-middle: 4px;
5
+ @radio-icon-button-padding-small: 5px;
6
6
  @radio-group-height-large: 36px;
7
7
  @radio-group-height-middle: 32px;
8
8
  @radio-group-height-small: 28px;
@@ -77,6 +77,7 @@
77
77
  font-size: 14px;
78
78
  line-height: 20px;
79
79
  user-select: none;
80
+ white-space: nowrap;
80
81
  }
81
82
  // 绘制选中时的圆圈样式
82
83
  .ald-radio-checked > .ald-radio-inner {
@@ -200,13 +201,16 @@
200
201
  }
201
202
  }
202
203
 
204
+ .ald-radio-group-icon-button {
205
+ padding: 0 !important;
206
+ }
207
+
203
208
  // button状态下的样式
204
209
  .ald-radio-group-button,
205
210
  .ald-radio-group-icon-button {
206
211
  display: flex;
207
212
  align-items: flex-start;
208
213
  box-sizing: border-box;
209
- width: min-content;
210
214
  padding: 0;
211
215
  overflow: hidden;
212
216
 
@@ -267,6 +271,10 @@
267
271
  }
268
272
  }
269
273
 
274
+ .ald-radio-icon-button-wrapper-filled {
275
+ margin: 2px;
276
+ }
277
+
270
278
  // button选中状态下的样式
271
279
  .ald-radio-wrapper-checked.ald-radio-button-wrapper-border,
272
280
  .ald-radio-wrapper-checked.ald-radio-button-wrapper-border-primary,
@@ -308,7 +316,7 @@
308
316
  display: flex;
309
317
  align-items: center;
310
318
  justify-content: center;
311
- height: 100%;
319
+ height: calc(100% - 4px);
312
320
  background-color: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
313
321
  cursor: pointer;
314
322
 
@@ -378,6 +386,10 @@
378
386
  border-radius: var(--alias-radius-50, 4px);
379
387
  }
380
388
 
389
+ .ald-radio-icon-button-wrapper-filled {
390
+ border-radius: var(--alias-radius-50, 4px) !important ;
391
+ }
392
+
381
393
  .ald-radio-label {
382
394
  .ald-radio-desc {
383
395
  font-size: @font-size-middle;
@@ -436,10 +448,14 @@
436
448
  }
437
449
  }
438
450
 
451
+ .ald-radio-icon-button-wrapper-filled {
452
+ border-radius: var(--alias-radius-25, 2px) !important ;
453
+ }
454
+
439
455
  .ald-radio-label.ald-radio-button-wrapper-filled {
440
456
  height: 24px;
441
457
  margin-top: 2px;
442
- border-radius: @border-radius-small;
458
+ border-radius: @border-radius-small !important;
443
459
  }
444
460
 
445
461
  .ald-radio-icon-button-wrapper-filled,
@@ -501,6 +517,10 @@
501
517
  border-radius: var(--alias-radius-75, 6px);
502
518
  }
503
519
 
520
+ .ald-radio-icon-button-wrapper-filled {
521
+ border-radius: var(--alias-radius-75, 6px) !important ;
522
+ }
523
+
504
524
  .ald-radio-label.ald-radio-button-wrapper-filled {
505
525
  height: 32px;
506
526
  margin-top: 2px;
@@ -570,6 +590,7 @@
570
590
  gap: 2px;
571
591
  background: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
572
592
  padding: 0 2px;
593
+ width: min-content;
573
594
 
574
595
  .ald-radio-label:not(.ald-radio-wrapper-disabled) {
575
596
  &:hover {
@@ -78,6 +78,8 @@
78
78
  .ant-select-selection-item-content {
79
79
  background: transparent;
80
80
  color: var(--alias-colors-text-subtle, #4b5563);
81
+ font-weight: 500;
82
+ line-height: 16px;
81
83
  }
82
84
  }
83
85
  }