@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.2

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 (183) hide show
  1. package/dist/Button/index.d.ts +3 -4
  2. package/dist/Button/index.js +7 -20
  3. package/dist/Button/style/size.less +21 -8
  4. package/dist/Button/style/type.less +61 -33
  5. package/dist/Button/style/variables.less +229 -44
  6. package/dist/Checkbox/style/index.less +111 -114
  7. package/dist/Dropdown/index.d.ts +1 -2
  8. package/dist/Dropdown/style/index.less +70 -107
  9. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  10. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  11. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  12. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  13. package/dist/Icon/components/ArrowDownFill.js +35 -0
  14. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  15. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  16. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  17. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  18. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  19. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  20. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  21. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  22. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  23. package/dist/Icon/components/CheckCircleFill.js +35 -0
  24. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  25. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  26. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  27. package/dist/Icon/components/CheckLightLine.js +35 -0
  28. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  29. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  30. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  31. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/CircleLightLine.js +38 -0
  33. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  34. package/dist/Icon/components/CloseCircleFill.js +35 -0
  35. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  36. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  37. package/dist/Icon/components/CloseLightLine.js +35 -0
  38. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  39. package/dist/Icon/components/DragLine.d.ts +1 -1
  40. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  41. package/dist/Icon/components/Ellipsis.js +35 -0
  42. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  43. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  44. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  45. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  46. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  47. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  48. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  49. package/dist/Icon/components/InformationCircleFill.js +35 -0
  50. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  51. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  52. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  53. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  54. package/dist/Icon/components/LoadingDuotone.js +39 -0
  55. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  56. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  57. package/dist/Icon/components/SearchLine.d.ts +1 -1
  58. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  59. package/dist/Icon/components/TriangleLightLine.js +35 -0
  60. package/dist/Icon/index.d.ts +16 -3
  61. package/dist/Icon/index.js +16 -2
  62. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  63. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  64. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  65. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  66. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  67. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  68. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  69. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  70. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  71. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  72. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  73. package/dist/Icon/svg/check-light-line.svg +5 -0
  74. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  75. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  76. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  77. package/dist/Icon/svg/circle-light-line.svg +9 -0
  78. package/dist/Icon/svg/close-L-line.svg +11 -9
  79. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  80. package/dist/Icon/svg/close-light-line.svg +5 -0
  81. package/dist/Icon/svg/close-m-line.svg +6 -4
  82. package/dist/Icon/svg/drag-line.svg +6 -4
  83. package/dist/Icon/svg/ellipsis.svg +5 -0
  84. package/dist/Icon/svg/eye-off-line.svg +6 -4
  85. package/dist/Icon/svg/eye-on-line.svg +14 -8
  86. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  87. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  88. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  89. package/dist/Icon/svg/info-circle-line.svg +3 -1
  90. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  91. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  92. package/dist/Icon/svg/loading-2-line.svg +4 -2
  93. package/dist/Icon/svg/loading-line.svg +6 -4
  94. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  95. package/dist/Icon/svg/search-line.svg +6 -4
  96. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  97. package/dist/IconButton/index.d.ts +2 -2
  98. package/dist/IconButton/index.js +8 -19
  99. package/dist/IconButton/style/index.less +49 -25
  100. package/dist/Input/components/Input/index.js +18 -2
  101. package/dist/Input/components/Password/index.d.ts +0 -5
  102. package/dist/Input/components/Password/index.js +10 -10
  103. package/dist/Input/components/TextArea/index.js +15 -2
  104. package/dist/Input/index.d.ts +2 -5
  105. package/dist/Input/index.js +1 -3
  106. package/dist/Input/style/index.less +4 -565
  107. package/dist/Input/style/reset.less +22 -0
  108. package/dist/Input/style/size.less +82 -0
  109. package/dist/Input/style/status.less +105 -0
  110. package/dist/MemberPicker/style/index.less +2 -2
  111. package/dist/Menu/index.js +6 -9
  112. package/dist/Menu/style/index.less +72 -133
  113. package/dist/Modal/index.d.ts +1 -1
  114. package/dist/Modal/index.js +32 -43
  115. package/dist/Modal/style/index.less +3 -191
  116. package/dist/Modal/style/modal.less +132 -0
  117. package/dist/Modal/style/modalConfirm.less +100 -0
  118. package/dist/Pagination/index.js +4 -2
  119. package/dist/Pagination/style/index.less +11 -4
  120. package/dist/Popconfirm/index.js +8 -7
  121. package/dist/Popconfirm/style/index.less +16 -6
  122. package/dist/Popover/style/index.less +29 -29
  123. package/dist/Radio/components/Group/index.js +3 -5
  124. package/dist/Radio/components/Radio/index.js +2 -1
  125. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  126. package/dist/Radio/style/index.less +69 -56
  127. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  128. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  129. package/dist/Select/components/SingleOption.d.ts +2 -2
  130. package/dist/Select/components/SingleOption.js +3 -1
  131. package/dist/Select/index.d.ts +5 -0
  132. package/dist/Select/index.js +26 -40
  133. package/dist/Select/style/index.less +96 -76
  134. package/dist/Select/style/layout.less +41 -0
  135. package/dist/Select/style/option.less +42 -3
  136. package/dist/Select/style/selectDropdown.less +17 -0
  137. package/dist/Select/style/size.less +95 -82
  138. package/dist/Select/style/status.less +69 -21
  139. package/dist/Select/style/variables.less +8 -15
  140. package/dist/Skeleton/style/index.less +84 -4
  141. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  142. package/dist/Spin/CustomIcon/index.js +20 -15
  143. package/dist/Spin/CustomIcon/index.less +32 -105
  144. package/dist/Spin/index.d.ts +2 -0
  145. package/dist/Spin/index.js +8 -2
  146. package/dist/Spin/style/index.less +9 -1
  147. package/dist/Switch/index.d.ts +1 -1
  148. package/dist/Switch/style/index.less +130 -56
  149. package/dist/Table/style/index.less +16 -8
  150. package/dist/Tabs/index.d.ts +2 -2
  151. package/dist/Tabs/index.js +4 -4
  152. package/dist/Tabs/style/index.less +20 -16
  153. package/dist/TextLink/index.d.ts +44 -0
  154. package/dist/TextLink/index.js +25 -0
  155. package/dist/TextLink/style/index.d.ts +2 -0
  156. package/dist/TextLink/style/index.js +2 -0
  157. package/dist/TextLink/style/index.less +9 -0
  158. package/dist/TextLink/style/size.less +37 -0
  159. package/dist/TextLink/style/type.less +44 -0
  160. package/dist/Tree/style/var.less +1 -1
  161. package/dist/ald.min.css +1 -1
  162. package/dist/index.d.ts +2 -1
  163. package/dist/index.js +1 -1
  164. package/dist/index.less +1 -0
  165. package/dist/message/index.js +15 -14
  166. package/dist/message/style/color.less +22 -41
  167. package/dist/message/style/index.less +15 -16
  168. package/dist/notification/demo/index.js +1 -0
  169. package/dist/notification/index.js +18 -18
  170. package/dist/notification/style/index.less +12 -6
  171. package/dist/style/index.less +1 -0
  172. package/dist/style/themes/default/default.less +1 -1
  173. package/dist/style/themes/default/index.less +3 -3
  174. package/dist/style/themes/default/scrollBar.less +1 -1
  175. package/dist/style/var/default.css +1334 -0
  176. package/package.json +4 -3
  177. package/dist/Icon/components/Icon.d.ts +0 -32
  178. package/dist/Icon/components/Icon.js +0 -25
  179. package/dist/Input/components/Group/index.d.ts +0 -18
  180. package/dist/Input/components/Group/index.js +0 -19
  181. package/dist/Menu/style/dropdown.less +0 -61
  182. package/dist/Select/style/multiple.less +0 -55
  183. package/dist/Select/style/single.less +0 -44
@@ -2,42 +2,23 @@
2
2
  @import './variables.less';
3
3
  @import '../../Empty/style/index.less';
4
4
  @import '../../Checkbox/style/index.less';
5
- @import './multiple.less';
6
- @import './single.less';
7
5
  @import './size.less';
8
6
  @import './status.less';
9
-
10
- .ant-select-dropdown.ant-select-dropdown {
11
- padding-left: 0;
12
- padding-right: 0;
13
- border-radius: 2px;
14
-
15
- &.ald-select-popup {
16
- // max-height: 264px;
17
- overflow-y: auto;
18
- overflow-y: overlay;
19
- border: 1px solid @BG70;
20
- padding: 0;
21
- }
22
- }
7
+ @import './selectDropdown.less';
8
+ @import './option.less';
9
+ @import './layout.less';
23
10
 
24
11
  .ald-select.ald-select {
25
12
  display: inline-block;
26
13
  position: relative;
27
14
  box-sizing: border-box;
28
- border: 1px solid @BG60;
29
15
  border-radius: 4px;
30
- background-color: @BG100;
31
- // padding: 0 4px;
32
16
  cursor: pointer;
33
- width: 100%;
34
-
35
- &.ald-select-status-error {
36
- border-color: @error-color;
37
- }
17
+ border-width: 1px;
18
+ border-style: solid;
38
19
 
39
20
  .ald-select-prefix {
40
- color: @NL40;
21
+ color: var(--alias-colors-text-subtle, #4b5563);
41
22
  display: inline-flex;
42
23
  position: absolute;
43
24
  align-items: center;
@@ -50,85 +31,124 @@
50
31
  }
51
32
 
52
33
  &.ald-select-prefix-multiple {
53
- cursor: text;
34
+ cursor: default;
54
35
  }
55
36
  }
56
37
 
57
38
  .ant-select {
39
+ .ant-select-selection-item,
40
+ .ant-select-selection-search-input,
41
+ .ant-select-selection-search-mirror,
42
+ .ant-select-selection-placeholder {
43
+ transition: none;
44
+ }
45
+
58
46
  .ant-select-selector {
59
- color: @NL0;
60
47
  align-items: center;
61
- }
48
+ transition: none;
49
+ padding-right: 0;
62
50
 
63
- .ant-select.ald-select-prefix-select {
64
- .ant-select-selector {
65
- border: none;
51
+ .ant-select-selection-search {
52
+ display: flex;
66
53
  }
67
- }
68
-
69
- .ant-select-selection-overflow {
70
- align-self: normal;
71
54
 
72
- .ant-select-selection-overflow-item {
73
- // display: flex;
74
- align-items: center;
75
- line-height: inherit;
76
- height: 100%;
55
+ .ant-select-selection-item {
56
+ padding-right: 0;
57
+ font-weight: inherit;
58
+ }
59
+ // 多选中存在这个样式
60
+ .ant-select-selection-overflow {
61
+ align-self: normal;
77
62
 
78
- .ant-select-selection-item {
79
- height: auto;
80
- margin-top: 0;
63
+ .ant-select-selection-overflow-item {
64
+ align-items: center;
65
+ line-height: inherit;
66
+ height: 100%;
81
67
 
82
- .ant-select-selection-item-content {
83
- // display: flex;
84
- // align-items: center;
85
- margin: 0;
68
+ & > span {
69
+ display: inline-flex;
86
70
  }
87
71
 
88
- .ant-select-selection-item-remove {
89
- display: flex;
90
- align-items: center;
91
- margin: 0;
92
- font-size: inherit;
72
+ .ant-select-selection-item {
73
+ height: auto;
74
+ margin-top: 0;
75
+ cursor: inherit;
76
+
77
+ .ant-select-selection-item-content {
78
+ // display: flex;
79
+ // align-items: center;
80
+ margin: 0;
81
+ }
82
+
83
+ .ant-select-selection-item-remove {
84
+ display: flex;
85
+ align-items: center;
86
+ margin: 0;
87
+ font-size: inherit;
88
+ }
93
89
  }
94
- }
95
90
 
96
- &.ant-select-selection-overflow-item-rest {
97
- .ant-select-selection-item {
98
- border: none;
99
- background: none;
100
- margin-bottom: 0;
91
+ &.ant-select-selection-overflow-item-rest {
92
+ .ant-select-selection-item {
93
+ border: none;
94
+ background: none;
95
+ margin-bottom: 0;
96
+ margin-left: 0;
97
+
98
+ .ant-select-selection-item-content {
99
+ display: flex;
100
+ align-items: center;
101
+ height: 16px;
102
+ padding: 0 var(--alias-spacing-50, 4px);
103
+ border-radius: var(--alias-radius-100, 8px);
104
+ background: var(
105
+ --alias-colors-bg-accent-blue-subtle-default,
106
+ #d4e7fd
107
+ );
108
+ color: var(--alias-colors-text-information, #0f59b1);
109
+ font-size: 12px;
110
+ }
111
+ }
101
112
  }
102
- }
103
113
 
104
- .ald-select-multiple-tag-default {
105
- color: inherit;
106
- display: inline-flex;
107
- align-items: center;
114
+ .ald-select-multiple-tag-default {
115
+ color: inherit;
116
+ display: inline-flex;
117
+ align-items: center;
118
+ }
108
119
 
109
- &::before {
110
- content: ',';
120
+ .ant-select-selection-search-input {
121
+ height: inherit;
122
+ line-height: inherit;
123
+ caret-color: var(--alias-colors-text-selected, #126fdd);
111
124
  }
112
125
  }
113
126
 
114
- .ant-select-selection-search-input {
115
- height: inherit;
116
- line-height: inherit;
117
- caret-color: @B60;
127
+ .ant-select-selection-overflow-item:first-of-type {
128
+ .ald-select-multiple-tag-default::before {
129
+ content: '';
130
+ }
118
131
  }
119
132
  }
120
133
 
121
- .ant-select-selection-overflow-item-rest {
122
- .ant-select-selection-item {
123
- padding-inline-start: 0;
124
- }
134
+ .ant-select-selection-placeholder {
135
+ padding-right: 17px;
125
136
  }
137
+ }
126
138
 
127
- .ant-select-selection-overflow-item:first-of-type {
128
- .ald-select-multiple-tag-default::before {
129
- content: '';
139
+ &.ant-select-open {
140
+ .ant-select-selector {
141
+ .ant-select-selection-item {
142
+ color: inherit;
130
143
  }
131
144
  }
132
145
  }
133
146
  }
134
147
  }
148
+
149
+ .ald-select-clear-icon,
150
+ .ald-select-suffix-icon {
151
+ cursor: pointer;
152
+ color: var(--alias-colors-icon-subtle, #6b7280);
153
+ font-size: 16px;
154
+ }
@@ -0,0 +1,41 @@
1
+ .ald-select.ald-select {
2
+ .ant-select {
3
+ flex: 1;
4
+ display: flex;
5
+ align-items: center;
6
+ gap: 8px;
7
+
8
+ .ant-select-selector {
9
+ position: initial;
10
+ min-width: 0;
11
+ flex: 1;
12
+ }
13
+
14
+ .ant-select-arrow {
15
+ position: initial;
16
+ margin: 0;
17
+ }
18
+
19
+ .ant-select-clear {
20
+ transform: none;
21
+ opacity: 1;
22
+ align-items: center;
23
+ flex: none;
24
+ position: relative;
25
+ margin-left: 8px;
26
+ right: 0;
27
+
28
+ &::before {
29
+ position: absolute;
30
+ top: 0;
31
+ bottom: 0;
32
+ margin: auto 0;
33
+ left: -8px;
34
+ content: '';
35
+ height: 14px;
36
+ width: 1px;
37
+ background-color: var(--alias-colors-border-default, #e5e7eb);
38
+ }
39
+ }
40
+ }
41
+ }
@@ -1,3 +1,42 @@
1
- // option
2
- @select-single-option-height: 32px;
3
- @select-multiple-option-height: 36px;
1
+ @select-option-height: 36px;
2
+
3
+ .ald-option {
4
+ padding: var(--alias-padding-100, 8px) var(--alias-padding-150, 12px);
5
+ display: flex;
6
+ height: @select-option-height;
7
+ align-items: center;
8
+ cursor: pointer;
9
+ color: var(--alias-colors-text-default, #1f2937);
10
+ gap: var(--alias-spacing-50, 4px);
11
+ font-size: 14px;
12
+ font-style: normal;
13
+ font-weight: 400;
14
+ line-height: 20px;
15
+
16
+ &:hover {
17
+ background-color: var(
18
+ --alias-colors-bg-interaction-hover,
19
+ rgba(0, 0, 0, 0.05)
20
+ );
21
+ }
22
+
23
+ &.ald-option-disabled {
24
+ background-color: var(--alias-colors-bg-skeleton-subtler, #fff);
25
+ color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
26
+
27
+ &:hover {
28
+ cursor: default;
29
+ }
30
+ }
31
+
32
+ &.ald-option-selected {
33
+ color: var(--alias-colors-text-selected, #126fdd);
34
+ }
35
+ }
36
+
37
+ .ald-option-label {
38
+ white-space: nowrap;
39
+ flex: 1;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ }
@@ -0,0 +1,17 @@
1
+ // select 下拉框
2
+ .ant-select-dropdown.ant-select-dropdown {
3
+ padding-left: 0;
4
+ padding-right: 0;
5
+ border-radius: var(--alias-radius-75, 6px);
6
+
7
+ &.ald-select-popup {
8
+ // max-height: 264px;
9
+ overflow-y: auto;
10
+ overflow-y: overlay;
11
+ border: 1px solid var(--alias-colors-border-strong, #d1d5db);
12
+ background: var(--alias-colors-bg-skeleton-subtler, #fff);
13
+ box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
14
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
15
+ padding: 4px 0;
16
+ }
17
+ }
@@ -18,43 +18,46 @@
18
18
  &.ald-select-small {
19
19
  height: @select-height-small;
20
20
  font-size: @select-font-size-small;
21
- // line-height: @select-line-height-small;
22
21
  border-radius: @select-border-radius-small;
23
22
  .compact(@select-border-radius-small);
24
23
 
25
24
  .ald-select-prefix {
26
- margin-left: @select-padding-left-small;
25
+ margin-left: @select-padding-horizontal-small;
27
26
  }
28
27
 
29
- .ant-select .ant-select-selector {
30
- height: @selector-height-small;
31
- padding-left: calc(
32
- @select-padding-left-small + var(--ald-select-prefix-width)
33
- );
28
+ .ant-select {
29
+ padding-right: @select-padding-horizontal-small;
34
30
 
35
- .ant-select-selection-item {
31
+ .ant-select-selector {
32
+ height: @selector-height-small;
36
33
  line-height: @selector-height-small;
37
- font-size: @select-font-size-small;
38
- height: 100%;
39
- }
34
+ padding-left: calc(
35
+ @select-padding-horizontal-small + var(--ald-select-prefix-width)
36
+ );
40
37
 
41
- .ald-select-multiple-tag-default {
42
- font-size: @select-font-size-small;
43
- line-height: @selector-height-small;
44
- }
38
+ .ant-select-selection-item {
39
+ line-height: inherit;
40
+ font-size: @select-font-size-small;
41
+ height: 100%;
42
+ }
45
43
 
46
- .ant-select-selection-search .ant-select-selection-search-input {
47
- height: @selector-height-small;
48
- }
44
+ .ald-select-multiple-tag-default {
45
+ line-height: inherit;
46
+ font-size: @select-font-size-small;
47
+ }
49
48
 
50
- .ant-select-selection-placeholder {
51
- line-height: @selector-height-small;
52
- font-size: @select-font-size-small;
53
- left: calc(@select-padding-left-small + var(--ald-select-prefix-width));
54
- }
49
+ .ant-select-selection-search .ant-select-selection-search-input {
50
+ height: @selector-height-small;
51
+ line-height: inherit;
52
+ }
55
53
 
56
- .ant-select-selection-overflow {
57
- margin-left: @selector-item-margin-left-small;
54
+ .ant-select-selection-placeholder {
55
+ font-size: @select-font-size-small;
56
+ line-height: inherit;
57
+ left: calc(
58
+ @select-padding-horizontal-small + var(--ald-select-prefix-width)
59
+ );
60
+ }
58
61
  }
59
62
  }
60
63
 
@@ -72,45 +75,46 @@
72
75
  &.ald-select-middle {
73
76
  height: @select-height-middle;
74
77
  font-size: @select-font-size-middle;
75
- // line-height: @select-line-height-middle;
76
78
  border-radius: @select-border-radius-middle;
77
79
  .compact(@select-border-radius-middle);
78
80
 
79
81
  .ald-select-prefix {
80
- margin-left: @select-padding-left-middle;
82
+ margin-left: @select-padding-horizontal-middle;
81
83
  }
82
84
 
83
- .ant-select .ant-select-selector {
84
- height: @selector-height-middle;
85
- padding-left: calc(
86
- @select-padding-left-middle + var(--ald-select-prefix-width)
87
- );
85
+ .ant-select {
86
+ padding-right: @select-padding-horizontal-middle;
88
87
 
89
- .ant-select-selection-item {
88
+ .ant-select-selector {
89
+ height: @selector-height-middle;
90
90
  line-height: @selector-height-middle;
91
- font-size: @select-font-size-middle;
92
- height: 100%;
93
- }
91
+ padding-left: calc(
92
+ @select-padding-horizontal-middle + var(--ald-select-prefix-width)
93
+ );
94
94
 
95
- .ald-select-multiple-tag-default {
96
- font-size: @select-font-size-middle;
97
- line-height: @selector-height-middle;
98
- }
95
+ .ant-select-selection-item {
96
+ font-size: @select-font-size-middle;
97
+ line-height: inherit;
98
+ height: 100%;
99
+ }
99
100
 
100
- .ant-select-selection-search .ant-select-selection-search-input {
101
- height: @selector-height-middle;
102
- }
101
+ .ald-select-multiple-tag-default {
102
+ font-size: @select-font-size-middle;
103
+ line-height: inherit;
104
+ }
103
105
 
104
- .ant-select-selection-placeholder {
105
- line-height: @selector-height-middle;
106
- font-size: @select-font-size-middle;
107
- left: calc(
108
- @select-padding-left-middle + var(--ald-select-prefix-width)
109
- );
110
- }
106
+ .ant-select-selection-search .ant-select-selection-search-input {
107
+ height: @selector-height-middle;
108
+ line-height: inherit;
109
+ }
111
110
 
112
- .ant-select-selection-overflow {
113
- margin-left: @selector-item-margin-left-middle;
111
+ .ant-select-selection-placeholder {
112
+ font-size: @select-font-size-middle;
113
+ line-height: inherit;
114
+ left: calc(
115
+ @select-padding-horizontal-middle + var(--ald-select-prefix-width)
116
+ );
117
+ }
114
118
  }
115
119
  }
116
120
 
@@ -128,53 +132,54 @@
128
132
  &.ald-select-large {
129
133
  height: @select-height-large;
130
134
  font-size: @select-font-size-large;
131
- // line-height: @select-line-height-large;
132
135
  border-radius: @select-border-radius-large;
133
136
  .compact(@select-border-radius-large);
134
137
 
135
138
  .ald-select-prefix {
136
- margin-left: @select-padding-left-large;
139
+ margin-left: @select-padding-horizontal-large;
137
140
  }
138
141
 
139
- .ant-select .ant-select-selector {
140
- height: @selector-height-large;
141
- padding-left: calc(
142
- @select-padding-left-large + var(--ald-select-prefix-width)
143
- );
144
-
145
- .ant-select-selection-item {
146
- line-height: @selector-height-large;
147
- font-size: @select-font-size-large;
148
- height: 100%;
149
- }
142
+ .ant-select {
143
+ padding-right: @select-padding-horizontal-large;
150
144
 
151
- .ald-select-multiple-tag-default {
152
- font-size: @select-font-size-large;
145
+ .ant-select-selector {
146
+ height: @selector-height-large;
153
147
  line-height: @selector-height-large;
154
- }
148
+ padding-left: calc(
149
+ @select-padding-horizontal-large + var(--ald-select-prefix-width)
150
+ );
155
151
 
156
- .ant-select-selection-search .ant-select-selection-search-input {
157
- height: @selector-height-large;
158
- }
152
+ .ant-select-selection-item {
153
+ font-size: @select-font-size-large;
154
+ line-height: inherit;
155
+ height: 100%;
156
+ }
159
157
 
160
- .ant-select-selection-placeholder {
161
- line-height: @selector-height-large;
162
- font-size: @select-font-size-large;
163
- left: calc(@select-padding-left-large + var(--ald-select-prefix-width));
164
- }
158
+ .ald-select-multiple-tag-default {
159
+ font-size: @select-font-size-large;
160
+ line-height: inherit;
161
+ }
165
162
 
166
- .ant-select-selection-overflow {
167
- margin-left: @selector-item-margin-left-large;
163
+ .ant-select-selection-search .ant-select-selection-search-input {
164
+ height: @selector-height-large;
165
+ line-height: inherit;
166
+ }
168
167
 
169
- .ant-select-selection-overflow-item-rest {
170
- .ant-select-selection-item {
171
- padding-inline-start: 0;
172
- }
168
+ .ant-select-selection-placeholder {
169
+ font-size: @select-font-size-large;
170
+ line-height: inherit;
171
+ left: calc(
172
+ @select-padding-horizontal-large + var(--ald-select-prefix-width)
173
+ );
173
174
  }
174
175
  }
175
176
  }
176
177
  }
177
178
 
179
+ .ant-select-selector {
180
+ border: none !important;
181
+ }
182
+
178
183
  .ant-select-clear {
179
184
  width: 16px;
180
185
  height: 16px;
@@ -191,4 +196,12 @@
191
196
  margin-left: @selector-item-margin-left-large;
192
197
  }
193
198
  }
199
+
200
+ &.ald-select-primary {
201
+ font-weight: 500;
202
+ }
203
+
204
+ &.ald-select-secondary {
205
+ font-weight: 400;
206
+ }
194
207
  }
@@ -1,22 +1,31 @@
1
- .ald-select.ald-select {
2
- /**
3
- * @file focused状态
4
- */
5
- // &:hover,
6
- &.ald-select-open,
7
- &.ald-select-focus {
8
- border-color: @B40;
9
- z-index: 1;
10
- // box-shadow: @shadow-drop;
11
- }
12
-
13
- /**
14
- * @file disabled状态
15
- */
1
+ .select-color(@borderColor, @bgColor,@textColor) {
2
+ border-color: @borderColor;
3
+ background-color: @bgColor;
4
+ color: @textColor;
5
+
6
+ .ant-select-selection-placeholder {
7
+ color: var(--alias-colors-text-subtlest, #9ca3af);
8
+ }
9
+ }
10
+
11
+ .ald-select.ald-select-primary {
12
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
13
+
14
+ &.ald-select-fitted {
15
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
16
+ }
17
+
18
+ &:hover {
19
+ .select-color(var(--alias-colors-border-accent-gray-subtle-hover, #9ca3af),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
20
+ }
21
+
22
+ &:active {
23
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-strong, #F3F4F6),var(--alias-colors-text-default, #1f2937));
24
+ }
25
+
16
26
  &.ald-select-disabled {
17
- border-color: @BG60;
18
- background-color: @BG90;
19
- box-shadow: none;
27
+ .select-color(var(--alias-colors-border-disabled, rgba(0, 0, 0, 0.1)),var(--alias-colors-bg-transp, rgba(0, 0, 0, 0)),var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25)));
28
+
20
29
  cursor: default;
21
30
 
22
31
  .ant-select .ant-select-selector {
@@ -25,11 +34,50 @@
25
34
  .ant-select-selection-search input {
26
35
  cursor: default;
27
36
  }
37
+ }
38
+ }
39
+
40
+ &.ald-select-status-error {
41
+ .select-color(var(--alias-colors-border-danger, #DC2626),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
42
+ }
43
+ }
44
+
45
+ .ald-select {
46
+ &.ald-select-secondary {
47
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
48
+
49
+ &.ald-select-fitted {
50
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
51
+ }
52
+
53
+ &:hover {
54
+ .select-color(var(--alias-colors-border-accent-gray-subtle-hover, #9ca3af),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
55
+ }
56
+
57
+ &:active {
58
+ .select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
59
+ }
28
60
 
29
- .ant-select-selection-placeholder,
30
- .ant-select-selection-item {
31
- color: @NL40;
61
+ &.ald-select-disabled {
62
+ .select-color(var(--alias-colors-border-disabled, rgba(0, 0, 0, 0.1)),var(--alias-colors-bg-transp, rgba(0, 0, 0, 0)),var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25)));
63
+
64
+ cursor: default;
65
+
66
+ .ant-select {
67
+ cursor: default;
68
+
69
+ .ant-select-selector {
70
+ cursor: default;
71
+ }
72
+
73
+ .ant-select-selection-search input {
74
+ cursor: default;
75
+ }
32
76
  }
33
77
  }
34
78
  }
79
+
80
+ &.ald-select-status-error {
81
+ .select-color(var(--alias-colors-border-danger, #DC2626),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
82
+ }
35
83
  }