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

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 (232) hide show
  1. package/dist/Avatar/component/Avatar/index.js +9 -7
  2. package/dist/Avatar/style/index.less +8 -1
  3. package/dist/Button/index.d.ts +3 -4
  4. package/dist/Button/index.js +7 -20
  5. package/dist/Button/style/size.less +21 -8
  6. package/dist/Button/style/type.less +61 -33
  7. package/dist/Button/style/variables.less +236 -48
  8. package/dist/Checkbox/index.js +10 -4
  9. package/dist/Checkbox/style/index.less +117 -108
  10. package/dist/Checkbox/type.d.ts +11 -0
  11. package/dist/ColorPicker/style/index.less +1 -2
  12. package/dist/DataPreviewTable/constant.d.ts +1 -1
  13. package/dist/DataPreviewTable/constant.js +1 -1
  14. package/dist/DataPreviewTable/style/index.less +11 -11
  15. package/dist/Dropdown/index.d.ts +1 -2
  16. package/dist/Dropdown/style/index.less +71 -107
  17. package/dist/Empty/image/Search.js +2 -2
  18. package/dist/Empty/image/SearchSmall.js +2 -2
  19. package/dist/Empty/index.js +2 -1
  20. package/dist/Empty/style/index.less +2 -1
  21. package/dist/Form/style/index.less +27 -6
  22. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  23. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  24. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  25. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  26. package/dist/Icon/components/ArrowDownFill.js +35 -0
  27. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  28. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  29. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  30. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  31. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  33. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  34. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  35. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  36. package/dist/Icon/components/CheckCircleFill.js +35 -0
  37. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  38. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  39. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  40. package/dist/Icon/components/CheckLightLine.js +35 -0
  41. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  42. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  43. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  44. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  45. package/dist/Icon/components/CircleLightLine.js +38 -0
  46. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  47. package/dist/Icon/components/CloseCircleFill.js +35 -0
  48. package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
  49. package/dist/Icon/components/CloseCircleLightLine.js +35 -0
  50. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  51. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  52. package/dist/Icon/components/CloseLightLine.js +35 -0
  53. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  54. package/dist/Icon/components/DragLine.d.ts +1 -1
  55. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  56. package/dist/Icon/components/Ellipsis.js +35 -0
  57. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  58. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  59. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  60. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  61. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  62. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  63. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  64. package/dist/Icon/components/InformationCircleFill.js +35 -0
  65. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  66. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  67. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  68. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  69. package/dist/Icon/components/LoadingDuotone.js +39 -0
  70. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  71. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  72. package/dist/Icon/components/SearchLine.d.ts +1 -1
  73. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  74. package/dist/Icon/components/TriangleLightLine.js +35 -0
  75. package/dist/Icon/components/User.d.ts +11 -0
  76. package/dist/Icon/components/User.js +41 -0
  77. package/dist/Icon/components/UserGroup.d.ts +11 -0
  78. package/dist/Icon/components/UserGroup.js +39 -0
  79. package/dist/Icon/index.d.ts +19 -3
  80. package/dist/Icon/index.js +19 -2
  81. package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
  82. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  83. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  84. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  85. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  86. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  87. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  88. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  89. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  90. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  91. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  92. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  93. package/dist/Icon/svg/check-light-line.svg +5 -0
  94. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  95. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  96. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  97. package/dist/Icon/svg/circle-light-line.svg +9 -0
  98. package/dist/Icon/svg/close-L-line.svg +11 -9
  99. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  100. package/dist/Icon/svg/close-light-line.svg +5 -0
  101. package/dist/Icon/svg/close-m-line.svg +6 -4
  102. package/dist/Icon/svg/drag-line.svg +6 -4
  103. package/dist/Icon/svg/ellipsis.svg +5 -0
  104. package/dist/Icon/svg/eye-off-line.svg +6 -4
  105. package/dist/Icon/svg/eye-on-line.svg +14 -8
  106. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  107. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  108. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  109. package/dist/Icon/svg/info-circle-line.svg +3 -1
  110. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  111. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  112. package/dist/Icon/svg/loading-2-line.svg +4 -2
  113. package/dist/Icon/svg/loading-line.svg +6 -4
  114. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  115. package/dist/Icon/svg/search-line.svg +6 -4
  116. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  117. package/dist/Icon/svg/user.svg +4 -0
  118. package/dist/Icon/svg/userGroup.svg +7 -0
  119. package/dist/IconButton/index.d.ts +2 -2
  120. package/dist/IconButton/index.js +8 -19
  121. package/dist/IconButton/style/index.less +49 -25
  122. package/dist/Input/components/Input/index.js +18 -2
  123. package/dist/Input/components/Password/index.d.ts +0 -5
  124. package/dist/Input/components/Password/index.js +10 -10
  125. package/dist/Input/components/TextArea/index.js +15 -2
  126. package/dist/Input/index.d.ts +2 -5
  127. package/dist/Input/index.js +1 -3
  128. package/dist/Input/style/index.less +4 -565
  129. package/dist/Input/style/reset.less +22 -0
  130. package/dist/Input/style/size.less +82 -0
  131. package/dist/Input/style/status.less +105 -0
  132. package/dist/InputNumber/style/index.less +12 -9
  133. package/dist/MemberPicker/components/MultipleOption.js +4 -3
  134. package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
  135. package/dist/MemberPicker/components/NickLabel.js +8 -2
  136. package/dist/MemberPicker/components/Panel.js +2 -2
  137. package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
  138. package/dist/MemberPicker/components/SingleOption.js +1 -0
  139. package/dist/MemberPicker/index.js +2 -0
  140. package/dist/MemberPicker/interface.d.ts +1 -0
  141. package/dist/MemberPicker/style/index.less +38 -30
  142. package/dist/Menu/index.js +6 -9
  143. package/dist/Menu/style/index.less +71 -133
  144. package/dist/Modal/index.d.ts +1 -1
  145. package/dist/Modal/index.js +32 -43
  146. package/dist/Modal/style/index.less +3 -191
  147. package/dist/Modal/style/modal.less +132 -0
  148. package/dist/Modal/style/modalConfirm.less +100 -0
  149. package/dist/Navigator/style/index.less +1 -1
  150. package/dist/Pagination/index.d.ts +1 -1
  151. package/dist/Pagination/index.js +11 -3
  152. package/dist/Pagination/style/index.less +11 -4
  153. package/dist/Pagination/types.d.ts +1 -0
  154. package/dist/Popconfirm/index.js +8 -7
  155. package/dist/Popconfirm/style/index.less +58 -12
  156. package/dist/Popover/style/index.less +29 -29
  157. package/dist/Radio/components/Group/index.js +3 -5
  158. package/dist/Radio/components/Radio/index.js +2 -1
  159. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  160. package/dist/Radio/style/index.less +69 -56
  161. package/dist/ScrollArea/index.d.ts +1 -0
  162. package/dist/ScrollArea/index.js +5 -2
  163. package/dist/ScrollArea/style/index.less +5 -0
  164. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  165. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  166. package/dist/Select/components/SingleOption.d.ts +2 -2
  167. package/dist/Select/components/SingleOption.js +3 -1
  168. package/dist/Select/index.d.ts +5 -0
  169. package/dist/Select/index.js +28 -40
  170. package/dist/Select/style/index.less +109 -77
  171. package/dist/Select/style/layout.less +43 -0
  172. package/dist/Select/style/option.less +42 -3
  173. package/dist/Select/style/selectDropdown.less +16 -0
  174. package/dist/Select/style/size.less +316 -84
  175. package/dist/Select/style/status.less +69 -21
  176. package/dist/Select/style/variables.less +13 -17
  177. package/dist/Skeleton/style/index.less +84 -4
  178. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  179. package/dist/Spin/CustomIcon/index.js +20 -15
  180. package/dist/Spin/CustomIcon/index.less +32 -105
  181. package/dist/Spin/index.d.ts +2 -0
  182. package/dist/Spin/index.js +10 -5
  183. package/dist/Spin/style/index.less +17 -1
  184. package/dist/Switch/index.d.ts +1 -1
  185. package/dist/Switch/style/index.less +130 -56
  186. package/dist/Table/components/Pagination/index.js +3 -1
  187. package/dist/Table/index.js +18 -3
  188. package/dist/Table/style/index.less +24 -10
  189. package/dist/Table/types.d.ts +1 -0
  190. package/dist/Tabs/index.d.ts +7 -2
  191. package/dist/Tabs/index.js +9 -6
  192. package/dist/Tabs/style/index.less +29 -18
  193. package/dist/TextLink/index.d.ts +44 -0
  194. package/dist/TextLink/index.js +26 -0
  195. package/dist/TextLink/style/index.d.ts +2 -0
  196. package/dist/TextLink/style/index.js +2 -0
  197. package/dist/TextLink/style/index.less +14 -0
  198. package/dist/TextLink/style/size.less +37 -0
  199. package/dist/TextLink/style/type.less +44 -0
  200. package/dist/Tree/DirectoryTree.js +0 -12
  201. package/dist/Tree/Tree.js +2 -2
  202. package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
  203. package/dist/Tree/demo/directoryTree/index.js +44 -0
  204. package/dist/Tree/style/index.less +31 -12
  205. package/dist/Tree/style/mixin.less +3 -5
  206. package/dist/Tree/style/reset.less +15 -0
  207. package/dist/Tree/style/var.less +1 -1
  208. package/dist/ald.min.css +1 -1
  209. package/dist/index.d.ts +2 -1
  210. package/dist/index.js +1 -1
  211. package/dist/index.less +1 -0
  212. package/dist/message/index.js +15 -14
  213. package/dist/message/style/color.less +22 -41
  214. package/dist/message/style/index.less +15 -16
  215. package/dist/notification/demo/footer.d.ts +3 -0
  216. package/dist/notification/demo/footer.js +44 -0
  217. package/dist/notification/demo/index.js +1 -0
  218. package/dist/notification/index.js +84 -55
  219. package/dist/notification/style/index.less +53 -9
  220. package/dist/style/index.less +1 -0
  221. package/dist/style/themes/default/default.less +1 -1
  222. package/dist/style/themes/default/index.less +4 -4
  223. package/dist/style/themes/default/scrollBar.less +1 -1
  224. package/dist/style/var/default.css +1334 -0
  225. package/package.json +4 -3
  226. package/dist/Icon/components/Icon.d.ts +0 -32
  227. package/dist/Icon/components/Icon.js +0 -25
  228. package/dist/Input/components/Group/index.d.ts +0 -18
  229. package/dist/Input/components/Group/index.js +0 -19
  230. package/dist/Menu/style/dropdown.less +0 -61
  231. package/dist/Select/style/multiple.less +0 -55
  232. package/dist/Select/style/single.less +0 -44
@@ -18,53 +18,129 @@
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
- );
34
-
35
- .ant-select-selection-item {
28
+ .ant-select {
29
+ .ant-select-selector {
30
+ height: @selector-height-small;
36
31
  line-height: @selector-height-small;
37
- font-size: @select-font-size-small;
38
- height: 100%;
39
- }
32
+ padding-left: calc(
33
+ @select-padding-horizontal-small + var(--ald-select-prefix-width)
34
+ );
35
+ padding-right: @select-padding-horizontal-small;
40
36
 
41
- .ald-select-multiple-tag-default {
42
- font-size: @select-font-size-small;
43
- line-height: @selector-height-small;
37
+ .ant-select-selection-item {
38
+ line-height: inherit;
39
+ font-size: @select-font-size-small;
40
+ height: 100%;
41
+ }
42
+
43
+ .ald-select-multiple-tag-default {
44
+ line-height: inherit;
45
+ font-size: @select-font-size-small;
46
+ }
47
+
48
+ .ant-select-selection-search .ant-select-selection-search-input {
49
+ height: @selector-height-small;
50
+ line-height: inherit;
51
+ }
52
+
53
+ .ant-select-selection-placeholder {
54
+ font-size: @select-font-size-small;
55
+ line-height: inherit;
56
+ left: calc(
57
+ @select-padding-horizontal-small + var(--ald-select-prefix-width)
58
+ );
59
+ }
44
60
  }
45
61
 
46
- .ant-select-selection-search .ant-select-selection-search-input {
47
- height: @selector-height-small;
62
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
63
+ .ant-select-selector {
64
+ padding-right: calc(
65
+ @select-padding-horizontal-small + @select-icon-use-width-small
66
+ );
67
+ }
48
68
  }
49
69
 
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));
70
+ .ant-select-arrow {
71
+ right: @select-padding-horizontal-small;
54
72
  }
55
73
 
56
- .ant-select-selection-overflow {
57
- margin-left: @selector-item-margin-left-small;
74
+ .ant-select-clear {
75
+ right: @select-padding-horizontal-small;
76
+
77
+ &::before {
78
+ left: -@selector-gap-small;
79
+ }
58
80
  }
59
81
  }
60
82
 
61
83
  .ald-select-prefix-select {
84
+ // 单选值容器
62
85
  .ant-select-selection-item {
63
- margin-left: @selector-item-margin-left-small;
86
+ margin-left: @selector-gap-small;
87
+ }
88
+ // 多选值容器
89
+ .ant-select-selection-overflow {
90
+ margin-left: @selector-gap-small;
64
91
  }
65
92
 
66
93
  .ant-select-selection-placeholder {
67
- margin-left: @selector-item-margin-left-small;
94
+ margin-left: @selector-gap-small;
95
+ }
96
+ }
97
+
98
+ &.ald-select-has-value {
99
+ .ant-select {
100
+ &.ant-select-allow-clear:not(.ant-select-show-arrow),
101
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
102
+ .ant-select-selector {
103
+ padding-right: calc(
104
+ @select-padding-horizontal-small + @select-icon-use-width-small
105
+ );
106
+ }
107
+
108
+ .ant-select-arrow {
109
+ right: @select-padding-horizontal-small;
110
+ }
111
+
112
+ .ant-select-clear {
113
+ right: @select-padding-horizontal-small;
114
+
115
+ &::before {
116
+ left: -@selector-gap-small;
117
+ }
118
+ }
119
+ }
120
+
121
+ &.ant-select-show-arrow.ant-select-allow-clear {
122
+ .ant-select-selector {
123
+ padding-right: calc(
124
+ @select-padding-horizontal-small + @selector-gap-small +
125
+ @select-icon-use-width-small + @select-icon-use-width-small
126
+ );
127
+ }
128
+
129
+ .ant-select-arrow {
130
+ right: calc(
131
+ @select-padding-horizontal-small + @select-icon-use-width-small +
132
+ @selector-gap-small
133
+ );
134
+ }
135
+
136
+ .ant-select-clear {
137
+ right: @select-padding-horizontal-small;
138
+
139
+ &::before {
140
+ left: -@selector-gap-small;
141
+ }
142
+ }
143
+ }
68
144
  }
69
145
  }
70
146
  }
@@ -72,55 +148,129 @@
72
148
  &.ald-select-middle {
73
149
  height: @select-height-middle;
74
150
  font-size: @select-font-size-middle;
75
- // line-height: @select-line-height-middle;
76
151
  border-radius: @select-border-radius-middle;
77
152
  .compact(@select-border-radius-middle);
78
153
 
79
154
  .ald-select-prefix {
80
- margin-left: @select-padding-left-middle;
155
+ margin-left: @select-padding-horizontal-middle;
81
156
  }
82
157
 
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
- );
88
-
89
- .ant-select-selection-item {
158
+ .ant-select {
159
+ .ant-select-selector {
160
+ height: @selector-height-middle;
90
161
  line-height: @selector-height-middle;
91
- font-size: @select-font-size-middle;
92
- height: 100%;
93
- }
162
+ padding-left: calc(
163
+ @select-padding-horizontal-middle + var(--ald-select-prefix-width)
164
+ );
165
+ padding-right: @select-padding-horizontal-middle;
94
166
 
95
- .ald-select-multiple-tag-default {
96
- font-size: @select-font-size-middle;
97
- line-height: @selector-height-middle;
167
+ .ant-select-selection-item {
168
+ font-size: @select-font-size-middle;
169
+ line-height: inherit;
170
+ height: 100%;
171
+ }
172
+
173
+ .ald-select-multiple-tag-default {
174
+ font-size: @select-font-size-middle;
175
+ line-height: inherit;
176
+ }
177
+
178
+ .ant-select-selection-search .ant-select-selection-search-input {
179
+ height: @selector-height-middle;
180
+ line-height: inherit;
181
+ }
182
+
183
+ .ant-select-selection-placeholder {
184
+ font-size: @select-font-size-middle;
185
+ line-height: inherit;
186
+ left: calc(
187
+ @select-padding-horizontal-middle + var(--ald-select-prefix-width)
188
+ );
189
+ }
98
190
  }
99
191
 
100
- .ant-select-selection-search .ant-select-selection-search-input {
101
- height: @selector-height-middle;
192
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
193
+ .ant-select-selector {
194
+ padding-right: calc(
195
+ @select-padding-horizontal-middle + @select-icon-use-width-middle
196
+ );
197
+ }
102
198
  }
103
199
 
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
- );
200
+ .ant-select-arrow {
201
+ right: @select-padding-horizontal-middle;
110
202
  }
111
203
 
112
- .ant-select-selection-overflow {
113
- margin-left: @selector-item-margin-left-middle;
204
+ .ant-select-clear {
205
+ right: @select-padding-horizontal-middle;
206
+
207
+ &::before {
208
+ left: -@selector-gap-middle;
209
+ }
114
210
  }
115
211
  }
116
212
 
117
213
  .ald-select-prefix-select {
214
+ // 单选值容器
118
215
  .ant-select-selection-item {
119
- margin-left: @selector-item-margin-left-middle;
216
+ margin-left: @selector-gap-middle;
217
+ }
218
+ // 多选值容器
219
+ .ant-select-selection-overflow {
220
+ margin-left: @selector-gap-middle;
120
221
  }
121
222
 
122
223
  .ant-select-selection-placeholder {
123
- margin-left: @selector-item-margin-left-middle;
224
+ margin-left: @selector-gap-middle;
225
+ }
226
+ }
227
+
228
+ &.ald-select-has-value {
229
+ .ant-select {
230
+ &.ant-select-allow-clear:not(.ant-select-show-arrow),
231
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
232
+ .ant-select-selector {
233
+ padding-right: calc(
234
+ @select-padding-horizontal-middle + @select-icon-use-width-middle
235
+ );
236
+ }
237
+
238
+ .ant-select-arrow {
239
+ right: @select-padding-horizontal-middle;
240
+ }
241
+
242
+ .ant-select-clear {
243
+ right: @select-padding-horizontal-middle;
244
+
245
+ &::before {
246
+ left: -@selector-gap-middle;
247
+ }
248
+ }
249
+ }
250
+
251
+ &.ant-select-show-arrow.ant-select-allow-clear {
252
+ .ant-select-selector {
253
+ padding-right: calc(
254
+ @select-padding-horizontal-middle + @selector-gap-middle +
255
+ @select-icon-use-width-middle + @select-icon-use-width-middle
256
+ );
257
+ }
258
+
259
+ .ant-select-arrow {
260
+ right: calc(
261
+ @select-padding-horizontal-middle + @select-icon-use-width-middle +
262
+ @selector-gap-middle
263
+ );
264
+ }
265
+
266
+ .ant-select-clear {
267
+ right: @select-padding-horizontal-middle;
268
+
269
+ &::before {
270
+ left: -@selector-gap-middle;
271
+ }
272
+ }
273
+ }
124
274
  }
125
275
  }
126
276
  }
@@ -128,53 +278,137 @@
128
278
  &.ald-select-large {
129
279
  height: @select-height-large;
130
280
  font-size: @select-font-size-large;
131
- // line-height: @select-line-height-large;
132
281
  border-radius: @select-border-radius-large;
133
282
  .compact(@select-border-radius-large);
134
283
 
135
284
  .ald-select-prefix {
136
- margin-left: @select-padding-left-large;
285
+ margin-left: @select-padding-horizontal-large;
137
286
  }
138
287
 
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 {
288
+ .ant-select {
289
+ .ant-select-selector {
290
+ height: @selector-height-large;
146
291
  line-height: @selector-height-large;
147
- font-size: @select-font-size-large;
148
- height: 100%;
149
- }
292
+ padding-left: calc(
293
+ @select-padding-horizontal-large + var(--ald-select-prefix-width)
294
+ );
295
+ padding-right: @select-padding-horizontal-large;
150
296
 
151
- .ald-select-multiple-tag-default {
152
- font-size: @select-font-size-large;
153
- line-height: @selector-height-large;
297
+ .ant-select-selection-item {
298
+ font-size: @select-font-size-large;
299
+ line-height: inherit;
300
+ height: 100%;
301
+ }
302
+
303
+ .ald-select-multiple-tag-default {
304
+ font-size: @select-font-size-large;
305
+ line-height: inherit;
306
+ }
307
+
308
+ .ant-select-selection-search .ant-select-selection-search-input {
309
+ height: @selector-height-large;
310
+ line-height: inherit;
311
+ }
312
+
313
+ .ant-select-selection-placeholder {
314
+ font-size: @select-font-size-large;
315
+ line-height: inherit;
316
+ left: calc(
317
+ @select-padding-horizontal-large + var(--ald-select-prefix-width)
318
+ );
319
+ }
320
+
321
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
322
+ .ant-select-selector {
323
+ padding-right: calc(
324
+ @select-padding-horizontal-large + @select-icon-use-width-large
325
+ );
326
+ }
327
+ }
328
+
329
+ .ant-select-arrow {
330
+ right: @select-padding-horizontal-large;
331
+ }
332
+
333
+ .ant-select-clear {
334
+ right: @select-padding-horizontal-large;
335
+
336
+ &::before {
337
+ left: -@selector-gap-large;
338
+ }
339
+ }
154
340
  }
341
+ }
155
342
 
156
- .ant-select-selection-search .ant-select-selection-search-input {
157
- height: @selector-height-large;
343
+ .ald-select-prefix-select {
344
+ // 单选值容器
345
+ .ant-select-selection-item {
346
+ margin-left: @selector-gap-large;
347
+ }
348
+ // 多选值容器
349
+ .ant-select-selection-overflow {
350
+ margin-left: @selector-gap-large;
158
351
  }
159
352
 
160
353
  .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));
354
+ margin-left: @selector-gap-large;
164
355
  }
356
+ }
165
357
 
166
- .ant-select-selection-overflow {
167
- margin-left: @selector-item-margin-left-large;
358
+ &.ald-select-has-value {
359
+ .ant-select {
360
+ &.ant-select-allow-clear:not(.ant-select-show-arrow),
361
+ &.ant-select-show-arrow:not(.ant-select-allow-clear) {
362
+ .ant-select-selector {
363
+ padding-right: calc(
364
+ @select-padding-horizontal-large + @select-icon-use-width-large
365
+ );
366
+ }
168
367
 
169
- .ant-select-selection-overflow-item-rest {
170
- .ant-select-selection-item {
171
- padding-inline-start: 0;
368
+ .ant-select-arrow {
369
+ right: @select-padding-horizontal-large;
370
+ }
371
+
372
+ .ant-select-clear {
373
+ right: @select-padding-horizontal-large;
374
+
375
+ &::before {
376
+ left: -@selector-gap-large;
377
+ }
378
+ }
379
+ }
380
+
381
+ &.ant-select-show-arrow.ant-select-allow-clear {
382
+ .ant-select-selector {
383
+ padding-right: calc(
384
+ @select-padding-horizontal-large + @selector-gap-large +
385
+ @select-icon-use-width-large + @select-icon-use-width-large
386
+ );
387
+ }
388
+
389
+ .ant-select-arrow {
390
+ right: calc(
391
+ @select-padding-horizontal-large + @select-icon-use-width-large +
392
+ @selector-gap-large
393
+ );
394
+ }
395
+
396
+ .ant-select-clear {
397
+ right: @select-padding-horizontal-large;
398
+
399
+ &::before {
400
+ left: -@selector-gap-large;
401
+ }
172
402
  }
173
403
  }
174
404
  }
175
405
  }
176
406
  }
177
407
 
408
+ .ant-select-selector {
409
+ border: none !important;
410
+ }
411
+
178
412
  .ant-select-clear {
179
413
  width: 16px;
180
414
  height: 16px;
@@ -182,13 +416,11 @@
182
416
  margin-top: 0;
183
417
  }
184
418
 
185
- .ald-select-prefix-select {
186
- .ant-select-selection-item {
187
- margin-left: @selector-item-margin-left-large;
188
- }
419
+ &.ald-select-primary {
420
+ font-weight: 500;
421
+ }
189
422
 
190
- .ant-select-selection-placeholder {
191
- margin-left: @selector-item-margin-left-large;
192
- }
423
+ &.ald-select-secondary {
424
+ font-weight: 400;
193
425
  }
194
426
  }
@@ -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
  }
@@ -1,35 +1,31 @@
1
- /* stylelint-disable property-no-unknown */
2
1
  @import '../../style/index.less';
3
2
  @import './option.less';
4
3
  // large size
5
4
  @select-height-large: 36px;
6
- @select-border-radius-large: 4px;
5
+ @select-border-radius-large: 8px;
7
6
  @select-font-size-large: 16px;
8
7
  @select-line-height-large: 24px;
9
- @select-padding-left-large: 11px;
8
+ @select-padding-horizontal-large: var(--alias-padding-150-minus-1, 12px);
10
9
  @selector-height-large: 34px;
11
- @selector-item-margin-left-large: 8px;
12
- // @prefix-margin-right-large: 8px;
13
- // @select-padding-horizontal-large: 11px;
10
+ @selector-gap-large: 8px;
11
+ @select-icon-use-width-large: 24px; //16+8
14
12
 
15
13
  // medium size
16
14
  @select-height-middle: 32px;
17
- @select-border-radius-middle: 2px;
18
- @select-font-size-middle: 13px;
15
+ @select-border-radius-middle: 6px;
16
+ @select-font-size-middle: 14px;
19
17
  @select-line-height-middle: 20px;
20
- @select-padding-left-middle: 7px;
18
+ @select-padding-horizontal-middle: var(--alias-padding-150-minus-1, 12px);
21
19
  @selector-height-middle: 30px;
22
- @selector-item-margin-left-middle: 4px;
23
- // @prefix-margin-right-middle: 8px;
24
- // @select-padding-horizontal-middle: 11px;
20
+ @selector-gap-middle: 6px;
21
+ @select-icon-use-width-middle: 22px; //16+6
25
22
 
26
23
  // small size
27
24
  @select-height-small: 28px;
28
- @select-border-radius-small: 2px;
25
+ @select-border-radius-small: 4px;
29
26
  @select-font-size-small: 12px;
30
27
  @select-line-height-small: 16px;
31
- @select-padding-left-small: 7px;
28
+ @select-padding-horizontal-small: var(--alias-padding-150-minus-1, 12px);
32
29
  @selector-height-small: 26px;
33
- @selector-item-margin-left-small: 4px;
34
- // @prefix-margin-right-small: 4px;
35
- // @select-padding-horizontal-small: 7px;
30
+ @selector-gap-small: 4px;
31
+ @select-icon-use-width-small: 20px; //16+4