@aloudata/aloudata-design 1.0.9 → 1.1.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.
Files changed (37) hide show
  1. package/dist/App/index.d.ts +4 -0
  2. package/dist/App/index.js +27 -0
  3. package/dist/App/style/index.d.ts +2 -0
  4. package/dist/App/style/index.js +2 -0
  5. package/dist/App/style/index.less +1 -0
  6. package/dist/Breadcrumb/style/index.less +1 -1
  7. package/dist/Button/style/index.less +17 -16
  8. package/dist/Button/style/variables.less +6 -6
  9. package/dist/Checkbox/style/index.less +2 -2
  10. package/dist/Divider/style/index.less +1 -1
  11. package/dist/Dropdown/style/index.less +22 -7
  12. package/dist/Empty/style/index.less +3 -3
  13. package/dist/Input/style/index.less +21 -20
  14. package/dist/InputNumber/style/index.less +7 -7
  15. package/dist/Menu/style/dropdown.less +10 -5
  16. package/dist/Menu/style/index.less +4 -4
  17. package/dist/Modal/style/index.less +20 -20
  18. package/dist/Popconfirm/style/index.less +2 -1
  19. package/dist/Popover/style/index.less +1 -1
  20. package/dist/Radio/style/index.less +5 -5
  21. package/dist/Select/style/index.less +65 -58
  22. package/dist/Select/style/size.less +1 -1
  23. package/dist/Select/style/status.less +1 -1
  24. package/dist/Select/style/variables.less +6 -6
  25. package/dist/Spin/index.js +1 -0
  26. package/dist/Spin/style/index.less +7 -1
  27. package/dist/Steps/style/index.less +7 -7
  28. package/dist/Switch/style/index.less +12 -2
  29. package/dist/Tooltip/style/index.less +1 -1
  30. package/dist/Tree/demo/basic/index.js +6 -2
  31. package/dist/Tree/style/index.less +1 -1
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +2 -1
  34. package/dist/notification/demo/index.js +7 -2
  35. package/dist/style/mixins/index.less +4 -0
  36. package/dist/style/themes/default/index.less +3 -8
  37. package/package.json +3 -2
@@ -0,0 +1,4 @@
1
+ import { AppProps } from 'antd';
2
+ import React from 'react';
3
+ declare const AldApp: React.FC<AppProps>;
4
+ export default AldApp;
@@ -0,0 +1,27 @@
1
+ var _excluded = ["children", "className"];
2
+
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
+
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';
10
+ import { App } from 'antd';
11
+ import classNames from 'classnames';
12
+ import React from 'react';
13
+
14
+ var AldApp = function AldApp(_ref) {
15
+ var children = _ref.children,
16
+ className = _ref.className,
17
+ restProps = _objectWithoutProperties(_ref, _excluded);
18
+
19
+ return /*#__PURE__*/React.createElement(StyleProvider, {
20
+ hashPriority: "high",
21
+ transformers: [legacyLogicalPropertiesTransformer]
22
+ }, /*#__PURE__*/React.createElement(App, _extends({
23
+ className: classNames('ald-app', className)
24
+ }, restProps), children));
25
+ };
26
+
27
+ export default AldApp;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-breadcrumb.ant-breadcrumb li {
3
+ .ald-breadcrumb.ald-breadcrumb.ant-breadcrumb li {
4
4
  color: @NL50;
5
5
  font-weight: 600;
6
6
  font-size: 24px;
@@ -1,7 +1,7 @@
1
1
  @import '../../style/index.less';
2
2
  @import './variables.less';
3
3
 
4
- .ald-btn {
4
+ .ald-btn.ant-btn {
5
5
  &.ald-btn {
6
6
  // &-loading::before{
7
7
  // // display: none !important;
@@ -194,6 +194,7 @@
194
194
  background-color: @button-link-bg-color;
195
195
  border-color: @button-link-bg-color;
196
196
  box-shadow: none;
197
+ padding: 0 !important;
197
198
 
198
199
  &:focus {
199
200
  color: @button-link-color;
@@ -256,11 +257,11 @@
256
257
  border-radius: 50%;
257
258
  }
258
259
 
259
- .aldicon-icon-left {
260
- svg {
261
- vertical-align: -4px;
262
- }
263
- }
260
+ // .aldicon-icon-left {
261
+ // svg {
262
+ // vertical-align: -4px;
263
+ // }
264
+ // }
264
265
 
265
266
  gap: @button-left-icon-margin-right-large;
266
267
  // .aldicon-icon-left + span {
@@ -287,11 +288,11 @@
287
288
  border-radius: 50%;
288
289
  }
289
290
 
290
- .aldicon-icon-left {
291
- svg {
292
- vertical-align: -3px;
293
- }
294
- }
291
+ // .aldicon-icon-left {
292
+ // svg {
293
+ // vertical-align: -3px;
294
+ // }
295
+ // }
295
296
 
296
297
  gap: @button-left-icon-margin-right-middle;
297
298
  // .aldicon-icon-left + span {
@@ -318,11 +319,11 @@
318
319
  border-radius: 50%;
319
320
  }
320
321
 
321
- .aldicon-icon-left {
322
- svg {
323
- vertical-align: -2px;
324
- }
325
- }
322
+ // .aldicon-icon-left {
323
+ // svg {
324
+ // vertical-align: -2px;
325
+ // }
326
+ // }
326
327
 
327
328
  gap: @button-left-icon-margin-right-small;
328
329
  // .aldicon-icon-left + span {
@@ -6,20 +6,20 @@
6
6
  /** size控制 **/
7
7
  @button-height-large: 36px;
8
8
  @button-text-size-large: 16px;
9
- @button-border-radius-large: 6px;
10
- @button-border-padding-large: 5px 23px;
9
+ @button-border-radius-large: 4px;
10
+ @button-border-padding-large: 5px 15px;
11
11
  @button-left-icon-margin-right-large: 8px;
12
12
 
13
13
  @button-height-middle: 32px;
14
14
  @button-text-size-middle: 13px;
15
- @button-border-radius-middle: 4px;
16
- @button-border-padding-middle: 5px 19px;
15
+ @button-border-radius-middle: 2px;
16
+ @button-border-padding-middle: 5px 11px;
17
17
  @button-left-icon-margin-right-middle: 4px;
18
18
 
19
19
  @button-height-small: 28px;
20
20
  @button-text-size-small: 12px;
21
- @button-border-radius-small: 4px;
22
- @button-border-padding-small: 5px 15px;
21
+ @button-border-radius-small: 2px;
22
+ @button-border-padding-small: 5px 7px;
23
23
  @button-left-icon-margin-right-small: 4px;
24
24
 
25
25
  // @button-height-mini: 24px;
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-checkbox {
3
+ .ald-checkbox.ald-checkbox {
4
4
  height: 20px;
5
5
  color: @NL0;
6
6
  font-size: 13px;
@@ -151,7 +151,7 @@
151
151
  }
152
152
  }
153
153
 
154
- .ald-checkbox.ant-checkbox-wrapper-disabled {
154
+ .ald-checkbox.ald-checkbox.ant-checkbox-wrapper-disabled {
155
155
  cursor: default;
156
156
  }
157
157
 
@@ -1,5 +1,5 @@
1
1
  @import '../../style/index.less';
2
2
 
3
3
  .ald-divider {
4
- border-color: @BG70;
4
+ border-color: @BG60;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @Dropdown-menu-minWidth: 168px;
3
+ @Dropdown-menu-minWidth: 140px;
4
4
 
5
5
  .ant-dropdown-menu > .ant-dropdown-menu {
6
6
  padding: 0;
@@ -22,12 +22,27 @@
22
22
  padding: 4px;
23
23
  color: @NL0;
24
24
  box-shadow: @shadow-L;
25
+
26
+ .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
27
+ &:hover {
28
+ background-color: #f8f8f8;
29
+ }
30
+
31
+ &.ant-dropdown-menu-item-disabled {
32
+ color: @NL80;
33
+ cursor: default;
34
+
35
+ &:hover {
36
+ background-color: @BG100;
37
+ }
38
+ }
39
+ }
25
40
  }
26
41
 
27
- .ald-menu,
28
- .ald-submenu {
42
+ .ald-menu.ald-menu,
43
+ .ald-submenu.ald-submenu {
29
44
  .ant-dropdown-menu-item-active {
30
- background-color: @NL97;
45
+ background-color: #f8f8f8;
31
46
  }
32
47
 
33
48
 
@@ -38,9 +53,9 @@
38
53
  }
39
54
 
40
55
  .ant-dropdown-menu-item,
41
- .ant-dropdown-menu-submenu-title {
56
+ .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
42
57
  &:hover {
43
- background-color: @NL97;
58
+ background-color: #f8f8f8;
44
59
  }
45
60
 
46
61
  &.ant-dropdown-menu-item-disabled {
@@ -54,7 +69,7 @@
54
69
  }
55
70
  }
56
71
 
57
- .ant-dropdown-menu-submenu-title {
72
+ .ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title {
58
73
  padding: 8px 24px 8px 12px;
59
74
  line-height: 20px;
60
75
  border-radius: 0 !important;
@@ -24,15 +24,15 @@
24
24
 
25
25
  .ald-empty-title {
26
26
  color: @NL0;
27
- font-size: 16px;
27
+ font-size: 13px;
28
28
  line-height: 24px;
29
29
  margin-bottom: 4px;
30
- font-weight: 600;
30
+ font-weight: 500;
31
31
  }
32
32
 
33
33
  .ald-empty-description {
34
34
  color: @NL40;
35
- font-size: 14px;
35
+ font-size: 13px;
36
36
  line-height: 20px;
37
37
  font-weight: 400;
38
38
  }
@@ -7,23 +7,23 @@
7
7
  @ald-iconfont-css-prefix: anticon;
8
8
  // size===large
9
9
  @input-height-large: 36px;
10
- @input-padding-large: 5px 13px;
10
+ @input-padding-large: 5px 11px;
11
11
  @input-font-size-large: 16px;
12
- @input-border-radius-large: 6px;
12
+ @input-border-radius-large: 4px;
13
13
  @input-prefix-margin-right-large: 8px;
14
14
  @input-clear-icon-large: 20px;
15
15
  // size===middle
16
16
  @input-height-middle: 32px;
17
- @input-padding-middle: 5px 11px;
18
- @input-font-size-middle: 14px;
19
- @input-border-radius-middle: 4px;
20
- @input-prefix-margin-right-middle: 8px;
17
+ @input-padding-middle: 5px 7px;
18
+ @input-font-size-middle: 13px;
19
+ @input-border-radius-middle: 2px;
20
+ @input-prefix-margin-right-middle: 4px;
21
21
  @input-clear-icon-middle: 16px;
22
22
  // size===small
23
23
  @input-height-small: 28px;
24
- @input-padding-small: 5px 9px;
24
+ @input-padding-small: 5px 7px;
25
25
  @input-font-size-small: 12px;
26
- @input-border-radius-small: 4px;
26
+ @input-border-radius-small: 2px;
27
27
  @input-prefix-margin-right-small: 4px;
28
28
  @input-clear-icon-small: 14px;
29
29
  //custom status
@@ -40,9 +40,9 @@
40
40
  @input-disabled-bg-color: @BG90;
41
41
  @input-disabled-font-color: @NL40;
42
42
 
43
- .ant-input.ald-input,
44
- .ant-input-affix-wrapper.ald-input,
45
- .ald-input .ant-input {
43
+ .ant-input.ald-input.ald-input,
44
+ .ant-input-affix-wrapper.ald-input.ald-input,
45
+ .ald-input.ald-input .ant-input {
46
46
  color: @NL0;
47
47
  font-weight: 400;
48
48
  background-color: @input-bg-color;
@@ -106,7 +106,7 @@
106
106
  }
107
107
  }
108
108
 
109
- .ant-input-affix-wrapper.ant-input-affix-wrapper {
109
+ .ant-input-affix-wrapper.ant-input-affix-wrapper.ant-input-affix-wrapper {
110
110
  background-color: @input-bg-color;
111
111
  border-color: @input-border-color;
112
112
 
@@ -115,6 +115,7 @@
115
115
  &-focused {
116
116
  border-color: @input-active-border-color;
117
117
  // box-shadow: @input-box-shadow-active;
118
+ box-shadow: none;
118
119
  }
119
120
 
120
121
  .ant-input {
@@ -351,23 +352,23 @@
351
352
  border-radius: @border-radius-small;
352
353
  }
353
354
 
354
- textarea.ald-input-textarea-large,
355
- .ald-input-textarea-large .ant-input {
355
+ textarea.ald-input-textarea-large.ald-input-textarea,
356
+ .ald-input-textarea.ald-input-textarea-large .ant-input {
356
357
  .ald-textarea-large();
357
358
  }
358
359
 
359
- textarea.ald-input-textarea-middle,
360
- .ald-input-textarea-middle .ant-input {
360
+ textarea.ald-input-textarea-middle.ald-input-textarea,
361
+ .ald-input-textarea.ald-input-textarea-middle .ant-input {
361
362
  .ald-textarea-middle();
362
363
  }
363
364
 
364
- textarea.ald-input-textarea-small,
365
- .ald-input-textarea-small .ant-input {
365
+ textarea.ald-input-textarea-small.ald-input-textarea,
366
+ .ald-input-textarea.ald-input-textarea-small .ant-input {
366
367
  .ald-textarea-small();
367
368
  }
368
369
 
369
- textarea.ald-input-textarea,
370
- .ald-input-textarea .ant-input {
370
+ textarea.ald-input-textarea.ald-input-textarea,
371
+ .ald-input-textarea.ald-input-textarea .ant-input {
371
372
  color: @NL0;
372
373
  background: @input-bg-color;
373
374
  caret-color: @B60;
@@ -3,18 +3,18 @@
3
3
 
4
4
  @inputNumber-height-large: 36px;
5
5
  @inputNumber-font-size-large: 16px;
6
- @inputNumber-border-radius-large: 6px;
7
- @inputNumber-padding-large: 0 14px;
6
+ @inputNumber-border-radius-large: 4px;
7
+ @inputNumber-padding-large: 0 11px;
8
8
 
9
9
  @inputNumber-height-middle: 32px;
10
- @inputNumber-font-size-middle: 14px;
11
- @inputNumber-border-radius-middle: 4px;
12
- @inputNumber-padding-middle: 0 12px;
10
+ @inputNumber-font-size-middle: 13px;
11
+ @inputNumber-border-radius-middle: 2px;
12
+ @inputNumber-padding-middle: 0 7px;
13
13
 
14
14
  @inputNumber-height-small: 28px;
15
15
  @inputNumber-font-size-small: 12px;
16
- @inputNumber-border-radius-small: 4px;
17
- @inputNumber-padding-small: 0 10px;
16
+ @inputNumber-border-radius-small: 2px;
17
+ @inputNumber-padding-small: 0 7px;
18
18
 
19
19
  //默认
20
20
  @inputNumber-bg-color: @BG100;
@@ -5,11 +5,12 @@
5
5
  border: 1px solid @BG70;
6
6
  border-radius: 2px;
7
7
  box-shadow: @shadow-L;
8
- padding: 4px 0;
8
+ padding: 0;
9
9
 
10
10
  .ant-dropdown-menu-item-divider,
11
11
  .ant-dropdown-menu-submenu-title-divider {
12
12
  background-color: @BG70;
13
+ margin:0;
13
14
  }
14
15
 
15
16
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
@@ -17,7 +18,7 @@
17
18
  }
18
19
 
19
20
  .ant-dropdown-menu-item {
20
- padding: 6px 12px;
21
+ padding: 6px 8px;
21
22
  line-height: 20px;
22
23
  font-size: 13px;
23
24
  border-radius: 0;
@@ -34,19 +35,23 @@
34
35
  }
35
36
  }
36
37
 
37
- .ant-dropdown {
38
+ .ant-dropdown.ant-dropdown {
38
39
  .ald-menu.ant-dropdown-menu {
39
40
  .dropdown-menu-content();
40
41
  }
41
42
  }
42
43
 
43
- .ant-dropdown-menu-submenu {
44
+ .ant-dropdown-menu-submenu.ant-dropdown-menu-submenu {
44
45
  .ant-dropdown-menu-sub {
45
46
  .dropdown-menu-content();
46
47
  }
47
48
 
48
49
  &.ant-dropdown-menu-submenu-popup {
49
- min-width: 168px;
50
+ min-width: 140px;
51
+ }
52
+
53
+ &.ant-dropdown-menu-submenu-active {
54
+ background-color: @BG90;
50
55
  }
51
56
  }
52
57
 
@@ -12,7 +12,7 @@
12
12
  .ant-menu-item-selected {
13
13
  margin: 0;
14
14
  height: initial;
15
- padding: 6px 12px;
15
+ padding: 6px 8px;
16
16
  line-height: 20px;
17
17
  font-size: 13px;
18
18
  width: 100%;
@@ -82,7 +82,7 @@
82
82
  }
83
83
  }
84
84
 
85
- .ant-menu-submenu.ant-menu-submenu-popup.ant-menu{
85
+ .ant-menu-submenu.ant-menu-submenu.ant-menu-submenu-popup.ant-menu{
86
86
  .ant-menu-vertical {
87
87
  border: 1px solid @BG70;
88
88
  border-radius: 2px;
@@ -94,7 +94,7 @@
94
94
  .ant-menu-item-selected {
95
95
  margin: 0;
96
96
  height: initial;
97
- padding: 6px 12px;
97
+ padding: 6px 8px;
98
98
  line-height: 20px;
99
99
  font-size: 13px;
100
100
  width: 100%;
@@ -147,7 +147,7 @@
147
147
  }
148
148
 
149
149
  .ant-menu.ant-menu-sub{
150
- padding:4px 0;
150
+ padding: 0;
151
151
  }
152
152
 
153
153
  .ant-menu-title-content{
@@ -1,12 +1,22 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-modal {
3
+ .ald-modal.ald-modal {
4
4
  .ant-modal-content {
5
5
  padding: 15px 23px;
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
+ border: 1px solid @BG60;
10
+
11
+ .ant-modal-body {
12
+ max-height: 70vh;
13
+ overflow: auto;
14
+ overflow: overlay;
15
+ line-height: 20px;
16
+ font-size: 13px;
17
+
18
+
19
+ }
10
20
  }
11
21
 
12
22
  .ald-modal-close {
@@ -55,32 +65,23 @@
55
65
  }
56
66
  }
57
67
 
58
- .ant-modal-body {
59
- max-height: 70vh;
60
- overflow: auto;
61
- overflow: overlay;
62
- line-height: 20px;
63
- font-size: 13px;
64
- }
65
-
66
68
  .ant-modal-footer {
67
69
  .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
68
70
  margin-bottom: 0;
69
71
  margin-inline-start: 12px;
70
72
  }
71
73
  }
72
-
73
74
  }
74
75
 
75
- .ald-modal-padding-less{
76
+ .ald-modal-padding-less {
76
77
  .ant-modal-content {
77
- .ant-modal-body{
78
+ .ant-modal-body {
78
79
  margin: 0 -24px;
79
80
  }
80
81
  }
81
82
  }
82
83
 
83
- .ant-modal-confirm {
84
+ .ald-modal.ant-modal-confirm {
84
85
  .ant-modal-confirm-body > .i-icon {
85
86
  & + .ant-modal-confirm-title {
86
87
  flex: 1;
@@ -92,28 +93,27 @@
92
93
  margin-left: 28px;
93
94
  }
94
95
  }
95
-
96
96
  }
97
97
 
98
- .ant-modal-confirm-body{
98
+ .ant-modal-confirm-body {
99
99
  display: block;
100
100
 
101
- > span.anticon{
101
+ > span.anticon {
102
102
  display: none;
103
103
 
104
- +.ant-modal-confirm-title+.ant-modal-confirm-content{
104
+ + .ant-modal-confirm-title + .ant-modal-confirm-content {
105
105
  margin-left: 0;
106
106
  margin-top: 16px;
107
107
  }
108
108
  }
109
- }
109
+ }
110
110
 
111
111
  .ant-modal-confirm-btns {
112
112
  margin-block-start: 16px;
113
113
  }
114
114
  }
115
115
 
116
- .ald-modal-warning {
116
+ .ald-modal.ald-modal-warning {
117
117
  .ant-modal-confirm-btns {
118
118
  .ald-btn {
119
119
  background-color: @SB40;
@@ -1,7 +1,8 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ant-popover .ant-popover-inner {
3
+ .ant-popover.ant-popover .ant-popover-inner {
4
4
  padding: 16px;
5
+ border-radius: 4px;
5
6
 
6
7
  .ant-popover-inner-content {
7
8
  .ant-popconfirm-message {
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-popover {
3
+ .ald-popover.ald-popover {
4
4
  .ant-popover-title {
5
5
  min-width: 312px;
6
6
  height: 24px;
@@ -7,8 +7,8 @@
7
7
  @radio-group-height-middle: 32px;
8
8
  @radio-group-height-small: 28px;
9
9
  @radio-button-padding: 12px;
10
- @radio-button-padding-large: 14px;
11
- @radio-button-padding-small: 10px;
10
+ @radio-button-padding-large: 12px;
11
+ @radio-button-padding-small: 8px;
12
12
  @radio-button-padding-middle: 12px;
13
13
 
14
14
  // Radio组件基础样式
@@ -70,7 +70,7 @@
70
70
  .ald-radio-checked > .ald-radio-inner {
71
71
  border: 1px solid @B40;
72
72
  background: @B95;
73
- transform: background 0.5s ease;
73
+ transition: background 0.5s ease;
74
74
 
75
75
  &::after {
76
76
  position: absolute;
@@ -219,12 +219,12 @@
219
219
  cursor: pointer;
220
220
 
221
221
  &:first-child {
222
- border-radius: 6px 0 0 6px;
222
+ border-radius: @border-radius-middle 0 0 @border-radius-middle;
223
223
  }
224
224
 
225
225
  &:last-child {
226
226
  border-right: 1px solid @BG60;
227
- border-radius: 0 6px 6px 0;
227
+ border-radius: 0 @border-radius-middle @border-radius-middle 0;
228
228
  }
229
229
 
230
230
  .ald-radio {
@@ -6,19 +6,20 @@
6
6
  @import './size.less';
7
7
  @import './status.less';
8
8
 
9
- .ant-select-dropdown {
9
+ .ant-select-dropdown.ant-select-dropdown {
10
10
  padding-left: 0;
11
11
  padding-right: 0;
12
+ border-radius: 2px;
12
13
 
13
14
  &.ald-select-popup {
14
15
  // max-height: 264px;
15
16
  overflow-y: auto;
16
17
  overflow-y: overlay;
17
- border:1px solid @BG70;
18
+ border: 1px solid @BG70;
18
19
  }
19
20
  }
20
21
 
21
- .ald-select {
22
+ .ald-select.ald-select {
22
23
  display: inline-block;
23
24
  position: relative;
24
25
  box-sizing: border-box;
@@ -29,10 +30,6 @@
29
30
  cursor: pointer;
30
31
  width: 100%;
31
32
 
32
- .ant-select-selector {
33
- color: @NL0;
34
- }
35
-
36
33
  .ald-select-prefix {
37
34
  color: @NL40;
38
35
  display: inline-flex;
@@ -51,69 +48,79 @@
51
48
  }
52
49
  }
53
50
 
54
- .ant-select.ald-select-prefix-select {
51
+ .ant-select {
55
52
  .ant-select-selector {
56
- border: none;
53
+ color: @NL0;
54
+ align-items: center;
57
55
  }
58
- }
59
- }
60
56
 
61
- .ant-select-selection-overflow {
62
- .ant-select-selection-overflow-item {
63
- // display: flex;
64
- align-items: center;
65
- line-height: inherit;
57
+ .ant-select.ald-select-prefix-select {
58
+ .ant-select-selector {
59
+ border: none;
60
+ }
61
+ }
66
62
 
67
- .ant-select-selection-item {
68
- height: auto;
69
- margin-top: 0;
63
+ .ant-select-selection-overflow {
64
+ align-self: normal;
70
65
 
71
- .ant-select-selection-item-content {
66
+ .ant-select-selection-overflow-item {
72
67
  // display: flex;
73
- // align-items: center;
74
- margin: 0;
75
- }
76
-
77
- .ant-select-selection-item-remove {
78
- display: flex;
79
68
  align-items: center;
80
- margin: 0;
81
- font-size: inherit;
69
+ line-height: inherit;
70
+ height: 100%;
71
+
72
+ .ant-select-selection-item {
73
+ height: auto;
74
+ margin-top: 0;
75
+
76
+ .ant-select-selection-item-content {
77
+ // display: flex;
78
+ // align-items: center;
79
+ margin: 0;
80
+ }
81
+
82
+ .ant-select-selection-item-remove {
83
+ display: flex;
84
+ align-items: center;
85
+ margin: 0;
86
+ font-size: inherit;
87
+ }
88
+ }
89
+
90
+ &.ant-select-selection-overflow-item-rest {
91
+ .ant-select-selection-item {
92
+ border: none;
93
+ background: none;
94
+ margin-bottom: 0;
95
+ }
96
+ }
97
+
98
+ .ald-select-multiple-tag-default {
99
+ color: inherit;
100
+
101
+ &::before {
102
+ content: ',';
103
+ }
104
+ }
105
+
106
+ .ant-select-selection-search-input {
107
+ height: inherit;
108
+ line-height: inherit;
109
+ caret-color: @B60;
110
+ }
82
111
  }
83
- }
84
112
 
85
- &.ant-select-selection-overflow-item-rest {
86
- .ant-select-selection-item {
87
- border: none;
88
- background: none;
89
- margin-bottom: 0;
113
+ .ant-select-selection-overflow-item-rest {
114
+ .ant-select-selection-item {
115
+ padding-inline-start: 0;
116
+ }
90
117
  }
91
- }
92
-
93
- .ald-select-multiple-tag-default {
94
- color: inherit;
95
118
 
96
- &::before {
97
- content: ',';
119
+ .ant-select-selection-overflow-item:first-of-type {
120
+ .ald-select-multiple-tag-default::before {
121
+ content: '';
122
+ }
98
123
  }
99
124
  }
100
-
101
- .ant-select-selection-search-input {
102
- height: inherit;
103
- line-height: inherit;
104
- caret-color: @B60;
105
- }
106
- }
107
-
108
- .ant-select-selection-overflow-item-rest {
109
- .ant-select-selection-item {
110
- padding-inline-start: 0;
111
- }
112
- }
113
-
114
- .ant-select-selection-overflow-item:first-of-type {
115
- .ald-select-multiple-tag-default::before {
116
- content: '';
117
- }
118
125
  }
119
126
  }
@@ -1,5 +1,5 @@
1
1
 
2
- .ald-select{
2
+ .ald-select.ald-select{
3
3
  &.ald-select-small{
4
4
  height: @select-height-small;
5
5
  font-size: @select-font-size-small;
@@ -1,4 +1,4 @@
1
- .ald-select {
1
+ .ald-select.ald-select {
2
2
  /**
3
3
  * @file focused状态
4
4
  */
@@ -3,10 +3,10 @@
3
3
 
4
4
  // large size
5
5
  @select-height-large: 36px;
6
- @select-border-radius-large: 6px;
6
+ @select-border-radius-large: 4px;
7
7
  @select-font-size-large: 16px;
8
8
  @select-line-height-large: 24px;
9
- @select-padding-left-large: 13px;
9
+ @select-padding-left-large: 11px;
10
10
  @selector-height-large: 34px;
11
11
  @selector-item-margin-left-large: 8px;
12
12
  // @prefix-margin-right-large: 8px;
@@ -14,10 +14,10 @@
14
14
 
15
15
  // medium size
16
16
  @select-height-middle: 32px;
17
- @select-border-radius-middle: 4px;
17
+ @select-border-radius-middle: 2px;
18
18
  @select-font-size-middle: 14px;
19
19
  @select-line-height-middle: 20px;
20
- @select-padding-left-middle: 11px;
20
+ @select-padding-left-middle: 7px;
21
21
  @selector-height-middle: 30px;
22
22
  @selector-item-margin-left-middle: 4px;
23
23
  // @prefix-margin-right-middle: 8px;
@@ -25,10 +25,10 @@
25
25
 
26
26
  // small size
27
27
  @select-height-small: 28px;
28
- @select-border-radius-small: 4px;
28
+ @select-border-radius-small: 2px;
29
29
  @select-font-size-small: 12px;
30
30
  @select-line-height-small: 16px;
31
- @select-padding-left-small: 9px;
31
+ @select-padding-left-small: 7px;
32
32
  @selector-height-small: 26px;
33
33
  @selector-item-margin-left-small: 4px;
34
34
  // @prefix-margin-right-small: 4px;
@@ -21,6 +21,7 @@ function CustomSpin(props) {
21
21
  }
22
22
 
23
23
  return /*#__PURE__*/React.createElement(Spin, _extends({
24
+ className: "ald-spin",
24
25
  indicator: /*#__PURE__*/React.createElement(CustomIcon, {
25
26
  size: props.size
26
27
  })
@@ -1 +1,7 @@
1
- @import '../../style/index.less';
1
+ @import '../../style/index.less';
2
+
3
+ .ant-spin.ald-spin {
4
+ .ant-spin-text {
5
+ color: @B40;
6
+ }
7
+ }
@@ -1,7 +1,7 @@
1
1
  @import '../../style/index.less';
2
2
 
3
3
  // 水平状态下
4
- .ant-steps.ald-steps {
4
+ .ant-steps.ald-steps.ald-steps {
5
5
  padding: 24px;
6
6
 
7
7
  .ant-steps-item .ant-steps-item-container .ant-steps-item-icon {
@@ -144,7 +144,7 @@
144
144
  }
145
145
  }
146
146
  // 竖直状态下
147
- .ant-steps.ald-steps.ant-steps-vertical {
147
+ .ant-steps.ald-steps.ant-steps-vertical.ald-steps {
148
148
  height: 100%;
149
149
 
150
150
  .ant-steps-item .ant-steps-item-container .ant-steps-item-icon {
@@ -245,7 +245,7 @@
245
245
  }
246
246
  }
247
247
 
248
- .ant-steps.ald-steps
248
+ .ant-steps.ald-steps.ald-steps
249
249
  .ant-steps-item:not(.ant-steps-item-active)
250
250
  > .ant-steps-item-container[role='button'] {
251
251
  cursor: pointer;
@@ -277,7 +277,7 @@
277
277
  color: @B40;
278
278
  }
279
279
 
280
- .ald-steps .finish-icon-box {
280
+ .ald-steps.ald-steps .finish-icon-box {
281
281
  position: relative;
282
282
  background-color: @B40;
283
283
  display: grid;
@@ -289,7 +289,7 @@
289
289
  }
290
290
  }
291
291
 
292
- .ald-steps .error-icon-box {
292
+ .ald-steps.ald-steps .error-icon-box {
293
293
  position: relative;
294
294
  background-color: @SC50;
295
295
  display: grid;
@@ -302,7 +302,7 @@
302
302
  }
303
303
 
304
304
  // 提升该类名的优先级,不然会被.iconBox覆盖掉
305
- .ald-steps .process-icon-box {
305
+ .ald-steps.ald-steps .process-icon-box {
306
306
  position: relative;
307
307
  background-color: @B40;
308
308
 
@@ -319,7 +319,7 @@
319
319
  }
320
320
  }
321
321
 
322
- .ald-steps .wait-icon-box {
322
+ .ald-steps.ald-steps .wait-icon-box {
323
323
  position: relative;
324
324
  background-color: @BG60;
325
325
 
@@ -10,7 +10,7 @@
10
10
  @switch-aspect-ratio: 2; //宽高比
11
11
  @switch-height-radius-ratio: 2; //高度和边框圆角比
12
12
 
13
- .ald-switch {
13
+ .ald-switch.ald-switch {
14
14
  display: inline-block;
15
15
  font-size: 0;
16
16
 
@@ -38,7 +38,7 @@
38
38
  .ald-switch-btn {
39
39
  background-color: @B40;
40
40
 
41
- &:hover{
41
+ &:hover {
42
42
  background-color: @B40;
43
43
  }
44
44
  }
@@ -79,6 +79,11 @@
79
79
  width: @switch-handle-middle - 4px;
80
80
  height: @switch-handle-middle - 4px;
81
81
  font-size: @switch-handle-middle - 4px;
82
+
83
+ svg {
84
+ width: @switch-handle-middle - 4px;
85
+ height: @switch-handle-middle - 4px;
86
+ }
82
87
  }
83
88
  }
84
89
  }
@@ -117,6 +122,11 @@
117
122
  width: @switch-handle-small - 4px;
118
123
  height: @switch-handle-small - 4px;
119
124
  font-size: @switch-handle-small - 4px;
125
+
126
+ svg {
127
+ width: @switch-handle-small - 4px;
128
+ height: @switch-handle-small - 4px;
129
+ }
120
130
  }
121
131
  }
122
132
  }
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-tooltip-overlay {
3
+ .ald-tooltip-overlay.ald-tooltip-overlay {
4
4
  .ant-tooltip-inner {
5
5
  padding: 6px 12px;
6
6
  line-height: 20px;
@@ -1,7 +1,11 @@
1
1
  import { Tree } from "../../..";
2
+ import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';
2
3
  import React from 'react';
3
4
  export default (function () {
4
- return /*#__PURE__*/React.createElement(Tree, {
5
+ return /*#__PURE__*/React.createElement(StyleProvider, {
6
+ hashPriority: "high",
7
+ transformers: [legacyLogicalPropertiesTransformer]
8
+ }, /*#__PURE__*/React.createElement(Tree, {
5
9
  treeData: [{
6
10
  title: 'parent 1',
7
11
  key: '0-0',
@@ -30,5 +34,5 @@ export default (function () {
30
34
  }]
31
35
  }]
32
36
  }]
33
- });
37
+ }));
34
38
  });
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ant-tree .ant-tree-treenode{
3
+ .ant-tree.ant-tree .ant-tree-treenode{
4
4
  height: 28px;
5
5
  align-items: center;
6
6
  padding:0 12px;
package/dist/index.d.ts CHANGED
@@ -78,3 +78,4 @@ export type { PopconfirmProps } from './Popconfirm';
78
78
  export { default as Popconfirm } from './Popconfirm';
79
79
  export { default as Collapse } from './Collapse';
80
80
  export type { CollapsePanelProps, CollapseProps } from './Collapse';
81
+ export { default as App } from './App';
package/dist/index.js CHANGED
@@ -41,4 +41,5 @@ export { default as Empty } from "./Empty";
41
41
  export { default as Avatar } from "./Avatar";
42
42
  export { default as Icon } from "./Icon";
43
43
  export { default as Popconfirm } from "./Popconfirm";
44
- export { default as Collapse } from "./Collapse";
44
+ export { default as Collapse } from "./Collapse";
45
+ export { default as App } from "./App";
@@ -1,4 +1,6 @@
1
1
  import { Button, notification, Space } from "../..";
2
+ import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';
3
+ import { App } from 'antd';
2
4
  import React from 'react';
3
5
  export default (function () {
4
6
  var notices = function notices(type) {
@@ -12,7 +14,10 @@ export default (function () {
12
14
  });
13
15
  };
14
16
 
15
- return /*#__PURE__*/React.createElement(Space, {
17
+ return /*#__PURE__*/React.createElement(StyleProvider, {
18
+ hashPriority: "high",
19
+ transformers: [legacyLogicalPropertiesTransformer]
20
+ }, /*#__PURE__*/React.createElement(App, null, /*#__PURE__*/React.createElement(Space, {
16
21
  direction: "vertical"
17
22
  }, /*#__PURE__*/React.createElement(Button, {
18
23
  onClick: function onClick() {
@@ -30,5 +35,5 @@ export default (function () {
30
35
  onClick: function onClick() {
31
36
  return notices('info');
32
37
  }
33
- }, "Notification info with message\u3001description"));
38
+ }, "Notification info with message\u3001description"))));
34
39
  });
@@ -9,4 +9,8 @@
9
9
 
10
10
  * :focus-visible{
11
11
  outline: none;
12
+ }
13
+
14
+ * :focus{
15
+ outline: none;
12
16
  }
@@ -3,11 +3,6 @@
3
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";
4
4
  @ald-prefix: ant;
5
5
 
6
- // base 不分大小写情况
7
- @border-radius-base: 8px;
8
- @line-height-base: 20px;
9
- @font-size-base: 14px;
10
-
11
6
  // large
12
7
  @font-size-large: 16px;
13
8
  @line-height-large: 24px;
@@ -15,7 +10,7 @@
15
10
  @padding-bottom-large: 6px;
16
11
  @padding-left-large: 12px;
17
12
  @padding-right-large: 12px;
18
- @border-radius-large: 6px;
13
+ @border-radius-large: 4px;
19
14
 
20
15
  // middle
21
16
  @font-size-middle: 13px;
@@ -24,7 +19,7 @@
24
19
  @padding-bottom-middle: 6px;
25
20
  @padding-left-middle: 12px;
26
21
  @padding-right-middle: 12px;
27
- @border-radius-middle: 4px;
22
+ @border-radius-middle: 2px;
28
23
 
29
24
  // small
30
25
  @font-size-small: 12px;
@@ -33,4 +28,4 @@
33
28
  @padding-bottom-small: 6px;
34
29
  @padding-left-small: 8px;
35
30
  @padding-right-small: 8px;
36
- @border-radius-small: 4px;
31
+ @border-radius-small: 2px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -53,7 +53,8 @@
53
53
  "dependencies": {
54
54
  "@aloudata/icons-react": "^0.2.2",
55
55
  "@aloudata/icons-svg": "0.1.7",
56
- "antd": "^5.3.1",
56
+ "@ant-design/cssinjs": "^1.9.1",
57
+ "antd": "5.4.3",
57
58
  "compare-func": "^2.0.0",
58
59
  "conventional-changelog": "^3.1.25",
59
60
  "conventional-changelog-cli": "^2.2.2",