@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.0

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 (217) hide show
  1. package/es/Breadcrumb/style/index.less +11 -3
  2. package/es/Button/index.js +17 -2
  3. package/es/Button/style/index.less +41 -39
  4. package/es/Button/style/variables.less +9 -2
  5. package/es/Checkbox/style/index.less +19 -0
  6. package/es/Dropdown/Button.js +1 -1
  7. package/es/Form/style/index.less +8 -0
  8. package/es/Icon/antdIconfont.d.ts +4 -0
  9. package/es/Icon/antdIconfont.js +2 -0
  10. package/es/Icon/components/Icon.d.ts +32 -0
  11. package/es/Icon/components/Icon.js +27 -0
  12. package/es/Icon/components/createFromScripts.d.ts +1 -0
  13. package/es/Icon/components/createFromScripts.js +35 -0
  14. package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  15. package/es/Icon/icons/AddLine.d.ts +13 -0
  16. package/es/Icon/icons/AddLine.js +66 -0
  17. package/es/Icon/icons/AlertFill.d.ts +13 -0
  18. package/es/Icon/icons/AlertFill.js +73 -0
  19. package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
  20. package/es/Icon/icons/ArrowsDownLine.js +66 -0
  21. package/es/Icon/icons/CancelFill.d.ts +13 -0
  22. package/es/Icon/icons/CancelFill.js +73 -0
  23. package/es/Icon/icons/CheckFill.d.ts +13 -0
  24. package/es/Icon/icons/CheckFill.js +73 -0
  25. package/es/Icon/icons/CloseLine.d.ts +13 -0
  26. package/es/Icon/icons/CloseLine.js +66 -0
  27. package/es/Icon/icons/DatabaseLine.d.ts +13 -0
  28. package/es/Icon/icons/DatabaseLine.js +66 -0
  29. package/es/Icon/icons/Deleteline.d.ts +13 -0
  30. package/es/Icon/icons/Deleteline.js +66 -0
  31. package/es/Icon/icons/DownloadLine.d.ts +13 -0
  32. package/es/Icon/icons/DownloadLine.js +73 -0
  33. package/es/Icon/icons/ErrorFill.d.ts +13 -0
  34. package/es/Icon/icons/ErrorFill.js +73 -0
  35. package/es/Icon/icons/EyeOffLine.d.ts +13 -0
  36. package/es/Icon/icons/EyeOffLine.js +73 -0
  37. package/es/Icon/icons/EyeOnLine.d.ts +13 -0
  38. package/es/Icon/icons/EyeOnLine.js +66 -0
  39. package/es/Icon/icons/FileLine.d.ts +13 -0
  40. package/es/Icon/icons/FileLine.js +73 -0
  41. package/es/Icon/icons/HomeFill.d.ts +13 -0
  42. package/es/Icon/icons/HomeFill.js +73 -0
  43. package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
  44. package/es/Icon/icons/LightningLine.d.ts +13 -0
  45. package/es/Icon/icons/LightningLine.js +66 -0
  46. package/es/Icon/icons/Loading.d.ts +13 -0
  47. package/es/Icon/icons/Loading.js +66 -0
  48. package/es/Icon/icons/More.d.ts +13 -0
  49. package/es/Icon/icons/More.js +66 -0
  50. package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
  51. package/es/Icon/icons/NewWindowsLine.js +74 -0
  52. package/es/Icon/icons/SearchLine.d.ts +13 -0
  53. package/es/Icon/icons/SearchLine.js +73 -0
  54. package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
  55. package/es/Icon/icons/SortAscendingLine.js +66 -0
  56. package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
  57. package/es/Icon/icons/SortDescendingLine.js +66 -0
  58. package/es/Icon/icons/TextLine.d.ts +13 -0
  59. package/es/Icon/icons/TextLine.js +73 -0
  60. package/es/Icon/icons/UserLine.d.ts +13 -0
  61. package/es/Icon/icons/UserLine.js +73 -0
  62. package/es/Icon/icons/style.css +9 -0
  63. package/es/Icon/icons/style.css.d.ts +10 -0
  64. package/es/Icon/index.d.ts +2 -13
  65. package/es/Icon/index.js +2 -53
  66. package/es/Icon/index.less +9 -17
  67. package/es/Icon/style/index.d.ts +1 -0
  68. package/es/Icon/style/index.js +1 -0
  69. package/es/Icon/style/index.less +0 -0
  70. package/es/Input/components/Password/index.js +6 -5
  71. package/es/Input/style/index.less +1 -1
  72. package/es/InputNumber/style/index.less +88 -16
  73. package/es/Menu/style/index.less +4 -3
  74. package/es/Modal/index.js +6 -4
  75. package/es/Modal/style/index.less +3 -3
  76. package/es/Navigator/style/index.less +46 -5
  77. package/es/Select/index.d.ts +2 -1
  78. package/es/Select/index.js +2 -1
  79. package/es/Select/rc-select/Selector/MultipleSelector.js +2 -2
  80. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  81. package/es/Select/style/index.d.ts +0 -1
  82. package/es/Select/style/index.js +0 -1
  83. package/es/Select/style/index.less +81 -10
  84. package/es/Select/style/variables.less +20 -9
  85. package/es/Select/style/variables.less.d.ts +4 -1
  86. package/es/Select/utils/iconUtil.js +5 -10
  87. package/es/Table/Table.d.ts +0 -1
  88. package/es/Table/Table.js +20 -11
  89. package/es/Table/style/index.less +7 -0
  90. package/es/Tabs/index.d.ts +2 -1
  91. package/es/Tabs/index.js +10 -4
  92. package/es/Tabs/style/index.less +35 -1
  93. package/es/index.d.ts +1 -0
  94. package/es/index.js +2 -1
  95. package/es/style/index.less +1 -0
  96. package/es/style/themes/default/scrollBar.less +13 -0
  97. package/lib/Breadcrumb/style/index.less +11 -3
  98. package/lib/Button/index.js +18 -2
  99. package/lib/Button/style/index.less +41 -39
  100. package/lib/Button/style/variables.less +9 -2
  101. package/lib/Checkbox/style/index.less +19 -0
  102. package/lib/Dropdown/Button.js +1 -1
  103. package/lib/Form/style/index.less +8 -0
  104. package/lib/Icon/antdIconfont.d.ts +4 -0
  105. package/lib/Icon/antdIconfont.js +13 -0
  106. package/lib/Icon/components/Icon.d.ts +32 -0
  107. package/lib/Icon/components/Icon.js +38 -0
  108. package/lib/Icon/components/createFromScripts.d.ts +1 -0
  109. package/lib/Icon/components/createFromScripts.js +41 -0
  110. package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  111. package/lib/Icon/icons/AddLine.d.ts +13 -0
  112. package/lib/Icon/icons/AddLine.js +83 -0
  113. package/lib/Icon/icons/AlertFill.d.ts +13 -0
  114. package/lib/Icon/icons/AlertFill.js +90 -0
  115. package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
  116. package/lib/Icon/icons/ArrowsDownLine.js +83 -0
  117. package/lib/Icon/icons/CancelFill.d.ts +13 -0
  118. package/lib/Icon/icons/CancelFill.js +90 -0
  119. package/lib/Icon/icons/CheckFill.d.ts +13 -0
  120. package/lib/Icon/icons/CheckFill.js +90 -0
  121. package/lib/Icon/icons/CloseLine.d.ts +13 -0
  122. package/lib/Icon/icons/CloseLine.js +83 -0
  123. package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
  124. package/lib/Icon/icons/DatabaseLine.js +83 -0
  125. package/lib/Icon/icons/Deleteline.d.ts +13 -0
  126. package/lib/Icon/icons/Deleteline.js +83 -0
  127. package/lib/Icon/icons/DownloadLine.d.ts +13 -0
  128. package/lib/Icon/icons/DownloadLine.js +90 -0
  129. package/lib/Icon/icons/ErrorFill.d.ts +13 -0
  130. package/lib/Icon/icons/ErrorFill.js +90 -0
  131. package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
  132. package/lib/Icon/icons/EyeOffLine.js +90 -0
  133. package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
  134. package/lib/Icon/icons/EyeOnLine.js +83 -0
  135. package/lib/Icon/icons/FileLine.d.ts +13 -0
  136. package/lib/Icon/icons/FileLine.js +90 -0
  137. package/lib/Icon/icons/HomeFill.d.ts +13 -0
  138. package/lib/Icon/icons/HomeFill.js +90 -0
  139. package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
  140. package/lib/Icon/icons/LightningLine.d.ts +13 -0
  141. package/lib/Icon/icons/LightningLine.js +83 -0
  142. package/lib/Icon/icons/Loading.d.ts +13 -0
  143. package/lib/Icon/icons/Loading.js +83 -0
  144. package/lib/Icon/icons/More.d.ts +13 -0
  145. package/lib/Icon/icons/More.js +83 -0
  146. package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
  147. package/lib/Icon/icons/NewWindowsLine.js +91 -0
  148. package/lib/Icon/icons/SearchLine.d.ts +13 -0
  149. package/lib/Icon/icons/SearchLine.js +90 -0
  150. package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
  151. package/lib/Icon/icons/SortAscendingLine.js +83 -0
  152. package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
  153. package/lib/Icon/icons/SortDescendingLine.js +83 -0
  154. package/lib/Icon/icons/TextLine.d.ts +13 -0
  155. package/lib/Icon/icons/TextLine.js +90 -0
  156. package/lib/Icon/icons/UserLine.d.ts +13 -0
  157. package/lib/Icon/icons/UserLine.js +90 -0
  158. package/lib/Icon/icons/style.css +9 -0
  159. package/lib/Icon/icons/style.css.d.ts +10 -0
  160. package/lib/Icon/index.d.ts +2 -13
  161. package/lib/Icon/index.js +2 -59
  162. package/lib/Icon/index.less +9 -17
  163. package/lib/Icon/style/index.d.ts +1 -0
  164. package/lib/Icon/style/index.js +1 -0
  165. package/lib/Icon/style/index.less +0 -0
  166. package/lib/Input/components/Password/index.js +7 -5
  167. package/lib/Input/style/index.less +1 -1
  168. package/lib/InputNumber/style/index.less +88 -16
  169. package/lib/Menu/style/index.less +4 -3
  170. package/lib/Modal/index.js +6 -4
  171. package/lib/Modal/style/index.less +3 -3
  172. package/lib/Navigator/style/index.less +46 -5
  173. package/lib/Select/index.d.ts +2 -1
  174. package/lib/Select/index.js +2 -1
  175. package/lib/Select/rc-select/Selector/MultipleSelector.js +2 -2
  176. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  177. package/lib/Select/style/index.d.ts +0 -1
  178. package/lib/Select/style/index.js +0 -2
  179. package/lib/Select/style/index.less +81 -10
  180. package/lib/Select/style/variables.less +20 -9
  181. package/lib/Select/style/variables.less.d.ts +4 -1
  182. package/lib/Select/utils/iconUtil.js +5 -12
  183. package/lib/Table/Table.d.ts +0 -1
  184. package/lib/Table/Table.js +22 -12
  185. package/lib/Table/style/index.less +7 -0
  186. package/lib/Tabs/index.d.ts +2 -1
  187. package/lib/Tabs/index.js +11 -4
  188. package/lib/Tabs/style/index.less +35 -1
  189. package/lib/index.d.ts +1 -0
  190. package/lib/index.js +8 -0
  191. package/lib/style/index.less +1 -0
  192. package/lib/style/themes/default/scrollBar.less +13 -0
  193. package/package.json +1 -1
  194. package/es/Icon/iconfont/demo.css +0 -539
  195. package/es/Icon/iconfont/demo_index.html +0 -720
  196. package/es/Icon/iconfont/iconfont.css +0 -109
  197. package/es/Icon/iconfont/iconfont.js +0 -46
  198. package/es/Icon/iconfont/iconfont.json +0 -170
  199. package/es/Icon/iconfont/iconfont.ttf +0 -0
  200. package/es/Icon/iconfont/iconfont.woff +0 -0
  201. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  202. package/es/Table/components/Empty/empty-img.png +0 -0
  203. package/es/Table/components/Empty/index.d.ts +0 -4
  204. package/es/Table/components/Empty/index.js +0 -16
  205. package/es/Table/components/Empty/index.less +0 -24
  206. package/lib/Icon/iconfont/demo.css +0 -539
  207. package/lib/Icon/iconfont/demo_index.html +0 -720
  208. package/lib/Icon/iconfont/iconfont.css +0 -109
  209. package/lib/Icon/iconfont/iconfont.js +0 -48
  210. package/lib/Icon/iconfont/iconfont.json +0 -170
  211. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  212. package/lib/Icon/iconfont/iconfont.woff +0 -0
  213. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  214. package/lib/Table/components/Empty/empty-img.png +0 -0
  215. package/lib/Table/components/Empty/index.d.ts +0 -4
  216. package/lib/Table/components/Empty/index.js +0 -30
  217. package/lib/Table/components/Empty/index.less +0 -24
@@ -1,15 +1,17 @@
1
+ /* stylelint-disable no-descending-specificity */
1
2
  @import '../../style/index.less';
2
3
 
3
4
  @InputNumber-height-large: 36px;
4
5
  @InputNumber-fontSize-large: 16px;
6
+ @InputNumber-borderRadius-large: 8px;
5
7
 
6
8
  @InputNumber-height-middle: 32px;
7
9
  @InputNumber-fontSize-middle: 14px;
10
+ @InputNumber-borderRadius-middle: 6px;
8
11
 
9
12
  @InputNumber-height-small: 28px;
10
13
  @InputNumber-fontSize-small: 12px;
11
-
12
- @InputNumber-borderRadius: 8px;
14
+ @InputNumber-borderRadius-small: 4px;
13
15
  //默认
14
16
  @InputNumber-bgColor: @BG97;
15
17
  @InputNumber-borderColor: @NL90;
@@ -22,24 +24,25 @@
22
24
  //disable
23
25
  @InputNumber-disabled-bgColor: @BG95;
24
26
  @InputNumber-disabled-borderColor: @NL90;
25
- @InputNumber-disabled-color: @NL80;
27
+ @InputNumber-disabled-color: @NL60;
26
28
  //光标颜色
27
29
  @InputNumber-cursor-color: @B60;
28
30
 
29
31
  //前后填充
30
32
  @InputNumber-addon-bgColor: @BG95;
31
- @InputNumber-addon-color: @NL50;
32
- @InputNumber-addon-disable-color: @NL80;
33
+ @InputNumber-addon-color: @NL30;
34
+ @InputNumber-addon-borderColor: @NL90;
35
+ @InputNumber-addon-disable-color: @NL60;
33
36
 
34
37
  .ald-inputNumber {
35
38
  &.ant-input-number {
36
39
  height: @InputNumber-height-middle;
37
- overflow: hidden;
40
+ // overflow: hidden;
38
41
  color: @InputNumber-color;
39
42
  font-size: @InputNumber-fontSize-middle;
40
43
  background-color: @InputNumber-bgColor;
41
44
  border-color: @InputNumber-borderColor;
42
- border-radius: @InputNumber-borderRadius;
45
+ border-radius: @InputNumber-borderRadius-middle;
43
46
  box-shadow: none;
44
47
 
45
48
  .ant-input-number-input-wrap {
@@ -52,28 +55,56 @@
52
55
  }
53
56
 
54
57
  .ant-input-number-handler-wrap {
58
+ overflow: hidden;
59
+
55
60
  .ant-input-number-handler {
56
61
  background-color: @BG95;
57
- }
58
62
 
59
- .ant-input-number-handler:active {
60
- background-color: @NL95;
63
+ .ant-input-number-handler-up-inner,
64
+ .ant-input-number-handler-down-inner {
65
+ color: @NL50;
66
+ }
67
+
68
+ &:hover,
69
+ &:active {
70
+ background-color: @NL95;
71
+
72
+ .ant-input-number-handler-up-inner,
73
+ .ant-input-number-handler-down-inner {
74
+ color: @B60;
75
+ }
76
+ }
61
77
  }
62
78
  }
63
79
 
64
80
  &.ald-inputNumber-large {
65
81
  height: @InputNumber-height-large;
66
82
  font-size: @InputNumber-fontSize-large;
83
+ border-radius: @InputNumber-borderRadius-large;
84
+
85
+ .ant-input-number-handler-wrap {
86
+ border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
87
+ }
67
88
  }
68
89
 
69
90
  &.ald-inputNumber-middle {
70
91
  height: @InputNumber-height-middle;
71
92
  font-size: @InputNumber-fontSize-middle;
93
+ border-radius: @InputNumber-borderRadius-middle;
94
+
95
+ .ant-input-number-handler-wrap {
96
+ border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
97
+ }
72
98
  }
73
99
 
74
100
  &.ald-inputNumber-small {
75
101
  height: @InputNumber-height-small;
76
102
  font-size: @InputNumber-fontSize-small;
103
+ border-radius: @InputNumber-borderRadius-small;
104
+
105
+ .ant-input-number-handler-wrap {
106
+ border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
107
+ }
77
108
  }
78
109
 
79
110
  &-disabled {
@@ -87,44 +118,79 @@
87
118
  }
88
119
  }
89
120
 
121
+ &:hover:not(.ald-inputNumber-disabled),
90
122
  &-focused {
91
123
  background-color: @InputNumber-active-bgColor;
92
124
  border-color: @InputNumber-active-borderColor;
125
+ box-shadow: 0 0 0 0.5px @InputNumber-active-borderColor;
93
126
  }
94
127
  }
95
128
 
96
129
  &.ant-input-number-group-wrapper {
97
130
  // height: @InputNumber-height-middle;
98
- overflow: hidden;
131
+ // overflow: hidden;
99
132
  color: @InputNumber-color;
100
- background-color: @InputNumber-wrapper-bgColor;
133
+ // background-color: @InputNumber-wrapper-bgColor;
101
134
  border-color: @InputNumber-borderColor;
102
- border-radius: @InputNumber-borderRadius;
103
135
  box-shadow: none;
104
136
 
105
137
  &.ald-inputNumber-large {
106
138
  font-size: @InputNumber-fontSize-large;
139
+ border-radius: @InputNumber-borderRadius-large;
140
+
141
+ .ant-input-number-group-addon {
142
+ &:first-child {
143
+ border-radius: @InputNumber-borderRadius-large 0 0 @InputNumber-borderRadius-large;
144
+ }
145
+
146
+ &:last-child {
147
+ border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
148
+ }
149
+ }
107
150
  }
108
151
 
109
152
  &.ald-inputNumber-middle {
110
153
  font-size: @InputNumber-fontSize-middle;
154
+ border-radius: @InputNumber-borderRadius-middle;
155
+
156
+ .ant-input-number-group-addon {
157
+ &:first-child {
158
+ border-radius: @InputNumber-borderRadius-middle 0 0 @InputNumber-borderRadius-middle;
159
+ }
160
+
161
+ &:last-child {
162
+ border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
163
+ }
164
+ }
111
165
  }
112
166
 
113
167
  &.ald-inputNumber-small {
114
168
  font-size: @InputNumber-fontSize-small;
169
+ border-radius: @InputNumber-borderRadius-small;
170
+
171
+ .ant-input-number-group-addon {
172
+ &:first-child {
173
+ border-radius: @InputNumber-borderRadius-small 0 0 @InputNumber-borderRadius-small;
174
+ }
175
+
176
+ &:last-child {
177
+ border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
178
+ }
179
+ }
115
180
  }
116
181
 
117
182
  .ant-input-number-wrapper {
118
183
  height: 100%;
119
- overflow: hidden;
184
+ // overflow: hidden;
120
185
  font-size: inherit;
121
186
 
122
187
  .ant-input-number-group-addon {
123
- overflow: hidden;
188
+ // overflow: hidden;
124
189
  color: @InputNumber-addon-color;
125
190
  font-size: inherit;
126
191
  background-color: @InputNumber-addon-bgColor;
127
- border-radius: @InputNumber-borderRadius;
192
+ // border-radius: @InputNumber-borderRadius-middle;
193
+ border-color: @InputNumber-addon-borderColor;
128
194
 
129
195
  &:first-child {
130
196
  border-top-right-radius: 0;
@@ -138,8 +204,14 @@
138
204
  }
139
205
 
140
206
  .ald-inputNumber {
207
+ position: relative;
208
+ z-index: 2;
141
209
  margin: 0;
142
210
  padding: 0;
211
+
212
+ .ant-input-number-handler-wrap {
213
+ border-radius: 0;
214
+ }
143
215
  }
144
216
  }
145
217
 
@@ -16,9 +16,9 @@
16
16
  background-color: @NL90;
17
17
  }
18
18
 
19
- .ald-iconfont {
19
+ .ald-iconSvg {
20
20
  font-size: 16px;
21
- font-family: @icon-font !important;
21
+ // font-family: @icon-font !important;
22
22
  font-style: normal;
23
23
  -webkit-font-smoothing: antialiased;
24
24
  -moz-osx-font-smoothing: grayscale;
@@ -31,7 +31,8 @@
31
31
  .ant-dropdown-menu-submenu-title
32
32
  .ant-dropdown-menu-submenu-expand-icon
33
33
  .ant-dropdown-menu-submenu-arrow-icon {
34
- .ald-iconfont('\e691');
34
+ color: @NL50;
35
+ .ald-iconSvg('arrows_right_sm',14px);
35
36
  }
36
37
 
37
38
  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
@@ -21,9 +21,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
22
  var _Button = _interopRequireDefault(require("../Button"));
23
23
 
24
- var _Icon = _interopRequireDefault(require("../Icon"));
24
+ var _CloseLine = _interopRequireDefault(require("../Icon/icons/CloseLine"));
25
25
 
26
- var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "closeIcon"];
26
+ var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "confirmLoading", "closeIcon"];
27
27
 
28
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
29
 
@@ -54,6 +54,7 @@ var OriginModal = function OriginModal(props) {
54
54
  onOk = props.onOk,
55
55
  onCancel = props.onCancel,
56
56
  width = props.width,
57
+ confirmLoading = props.confirmLoading,
57
58
  closeIcon = props.closeIcon,
58
59
  restProps = _objectWithoutProperties(props, _excluded);
59
60
 
@@ -62,6 +63,7 @@ var OriginModal = function OriginModal(props) {
62
63
  onClick: onCancel
63
64
  }, cancelText || '取消'), /*#__PURE__*/_react.default.createElement(_Button.default, {
64
65
  type: "primary",
66
+ loading: confirmLoading,
65
67
  size: "large",
66
68
  onClick: onOk
67
69
  }, okText || '确定'));
@@ -73,8 +75,8 @@ var OriginModal = function OriginModal(props) {
73
75
  width: width || DEFAULT_WIDTH,
74
76
  closeIcon: closeIcon || /*#__PURE__*/_react.default.createElement(_Button.default, {
75
77
  size: "small",
76
- icon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
77
- type: "close",
78
+ icon: /*#__PURE__*/_react.default.createElement(_CloseLine.default, {
79
+ fill: "currentColor",
78
80
  size: 12
79
81
  }),
80
82
  className: "ald-modal-close"
@@ -8,8 +8,8 @@
8
8
 
9
9
  .ald-modal-close {
10
10
  position: relative;
11
- top: -4px;
12
- left: -10px;
11
+ top: 8px;
12
+ left: -16px;
13
13
  }
14
14
 
15
15
  .ant-modal-header {
@@ -105,7 +105,7 @@
105
105
  }
106
106
 
107
107
  .ant-btn-default {
108
- padding: @Button-border-padding;
108
+ padding: @Button-border-padding-middle;
109
109
  color: @Button-secondary-color;
110
110
  background-color: @Button-secondary-bgColor;
111
111
  border: 1px solid;
@@ -67,26 +67,46 @@
67
67
  height: 48px;
68
68
  margin-top: 12px;
69
69
  padding: 0 12px;
70
- .textStyle(@BG60, 14px, 48px, 600, normal);
70
+ .textStyle(@BG60, 14px, 48px, 400, normal);
71
71
  }
72
72
  }
73
73
 
74
74
  .ald-nav-menu-item {
75
+ position: relative;
75
76
  display: flex;
76
77
  align-items: center;
77
78
  height: 48px;
79
+ margin-bottom: 4px;
78
80
  padding: 0 12px;
79
81
  line-height: 48px;
80
82
  border-radius: 8px;
81
83
 
84
+ &::before {
85
+ position: absolute;
86
+ top: 0;
87
+ left: 0;
88
+ display: block;
89
+ width: 0%;
90
+ height: inherit;
91
+ background: @ND80;
92
+ border-radius: inherit;
93
+ content: '';
94
+ }
95
+
82
96
  &-icon {
97
+ position: relative;
98
+ z-index: 1;
99
+ display: flex;
100
+ align-items: center;
83
101
  margin-right: 12px;
84
102
  }
85
103
 
86
104
  &-content {
105
+ position: relative;
106
+ z-index: 1;
87
107
  flex: 1;
88
108
  overflow: hidden;
89
- .textStyle(@B95, 16px, 24px, 600, normal);
109
+ .textStyle(@B95, 16px, 24px, 400, normal);
90
110
 
91
111
  &-text {
92
112
  white-space: nowrap;
@@ -94,14 +114,18 @@
94
114
  }
95
115
 
96
116
  &:hover {
117
+ background-color: @ND90;
97
118
  cursor: pointer;
98
119
  }
99
120
 
100
121
  &.ald-nav-menu-item-selected {
101
- background-color: @B60;
102
-
103
122
  .ald-nav-menu-item-content {
104
- .textStyle(@ND0, 16px, 24px, 600, normal);
123
+ .textStyle(@ND0, 16px, 24px, 400, normal);
124
+ }
125
+
126
+ &::before {
127
+ animation: 0.26s linear 0s hoverBgChange;
128
+ animation-fill-mode: forwards;
105
129
  }
106
130
  }
107
131
  }
@@ -116,3 +140,20 @@
116
140
  }
117
141
  }
118
142
  }
143
+
144
+ @keyframes hoverBgChange {
145
+ 0% {
146
+ width: 0%;
147
+ background-color: @ND80;
148
+ }
149
+
150
+ 90% {
151
+ width: 100%;
152
+ background-color: @ND80;
153
+ }
154
+
155
+ 100% {
156
+ width: 100%;
157
+ background-color: @B40;
158
+ }
159
+ }
@@ -14,9 +14,10 @@ export interface LabeledValue {
14
14
  label: React.ReactNode;
15
15
  }
16
16
  export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
17
+ export declare type SelectType = SizeType | 'mini';
17
18
  export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
18
19
  suffixIcon?: React.ReactNode;
19
- size?: SizeType;
20
+ size?: SelectType;
20
21
  disabled?: boolean;
21
22
  mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
22
23
  bordered?: boolean;
@@ -69,7 +69,8 @@ var InternalSelect = function InternalSelect(_ref, ref) {
69
69
  customDisabled = _ref.disabled,
70
70
  notFoundContent = _ref.notFoundContent,
71
71
  customStatus = _ref.status,
72
- showArrow = _ref.showArrow,
72
+ _ref$showArrow = _ref.showArrow,
73
+ showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
73
74
  props = _objectWithoutProperties(_ref, _excluded);
74
75
 
75
76
  var _React$useContext = React.useContext(_configProvider.ConfigContext),
@@ -235,7 +235,7 @@ var SelectSelector = function SelectSelector(props) {
235
235
  React.useEffect(function () {
236
236
  var prefixEl = prefixRef.current;
237
237
  var size = ['large', 'small', 'mini'].includes(props.size) ? props.size.toUpperCase() : 'MIDDLE';
238
- var selectorPaddingLeft = parseInt(_variables.default["SELECTOR_PADDING_LEFT"]);
238
+ var selectorPaddingLeft = parseInt(_variables.default["SELECTOR_PADDING_HORIZONTAL_".concat(size)]);
239
239
 
240
240
  if (prefixEl) {
241
241
  var prefixOffsetWidth = prefixEl.offsetWidth;
@@ -244,7 +244,7 @@ var SelectSelector = function SelectSelector(props) {
244
244
  }
245
245
 
246
246
  return setPlaceholderLeft(selectorPaddingLeft);
247
- }, []);
247
+ }, [values]);
248
248
  return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement("span", {
249
249
  className: (0, _classnames.default)("".concat(selectionPrefixCls, "-placeholder"), 'ald-select-selection-placeholder', _defineProperty({}, "ald-select-selection-placeholder-prefix", prefix)),
250
250
  style: {
@@ -6,6 +6,6 @@ import type { FieldNames } from '../Select';
6
6
  */
7
7
  export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames, optionFilterProp: string, optionLabelProp: string): {
8
8
  options: OptionType[];
9
- valueOptions: Map<React.ReactText, OptionType>;
9
+ valueOptions: Map<string | number, OptionType>;
10
10
  labelOptions: Map<React.ReactNode, OptionType>;
11
11
  };
@@ -1,4 +1,3 @@
1
- import 'antd/lib/style/index.less';
2
1
  import '../../Empty/style';
3
2
  import '../../style';
4
3
  import './index.less';
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- require("antd/lib/style/index.less");
4
-
5
3
  require("../../Empty/style");
6
4
 
7
5
  require("../../style");
@@ -4,6 +4,7 @@
4
4
 
5
5
  .ald-select {
6
6
  .ant-select-selector:not(.ant-select-customize-input) {
7
+ background-color: @selector-bgColor-default;
7
8
  border-color: @selector-borderColor-default;
8
9
 
9
10
  .ald-select-selector-prefix {
@@ -22,6 +23,7 @@
22
23
  }
23
24
 
24
25
  &.ant-select-disabled .ant-select-selector:not(.ant-select-customize-input) {
26
+ background-color: @selector-bgColor-disabled;
25
27
  border-color: @selector-borderColor-disabled;
26
28
  cursor: initial;
27
29
 
@@ -44,11 +46,19 @@
44
46
  }
45
47
  }
46
48
 
49
+ &.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) {
50
+ .ant-select-selector {
51
+ background-color: @selector-bgColor-disabled;
52
+ border-color: @selector-borderColor-disabled;
53
+ cursor: initial;
54
+ }
55
+ }
56
+
47
57
  &:not(.ant-select-disabled):hover,
48
58
  &.ant-select.ant-select-focused:not(.ant-select-disabled) {
49
59
  .ant-select-selector {
50
60
  border-color: @selector-borderColor-active;
51
- box-shadow: none;
61
+ box-shadow: 0 0 0 0.5px @B60;
52
62
 
53
63
  &:focus-visible {
54
64
  outline: none;
@@ -61,7 +71,9 @@
61
71
  .ant-select-selection-placeholder {
62
72
  color: @selector-placeholderColor-active;
63
73
  }
74
+ }
64
75
 
76
+ &.ant-select-open {
65
77
  .ant-select-selection-overflow,
66
78
  .ant-select-selection-item {
67
79
  color: @selector-valueColor-active;
@@ -69,14 +81,54 @@
69
81
  border: none;
70
82
  }
71
83
  }
84
+
85
+ &:not(.ant-select-open) {
86
+ .ant-select-selector {
87
+ border-color: @selector-borderColor-default;
88
+ box-shadow: none;
89
+
90
+ &:focus-visible {
91
+ outline: none;
92
+ }
93
+
94
+ .ald-select-selector-prefix {
95
+ color: @selector-labelColor-default;
96
+ }
97
+
98
+ .ant-select-selection-placeholder {
99
+ color: @selector-placeholderColor-default;
100
+ }
101
+ }
102
+ }
103
+ }
104
+
105
+ .ant-select-clear,
106
+ .ant-select-arrow {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ color: @NL50;
111
+ font-size: inherit;
112
+ }
113
+
114
+ &.ant-select-disabled {
115
+ .ant-select-clear,
116
+ .ant-select-arrow {
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ color: @NL60;
121
+ font-size: inherit;
122
+ }
72
123
  }
73
124
 
74
125
  &.ald-select-large {
126
+ font-size: @selector-fontSize-large;
127
+
75
128
  .ant-select-selector {
76
129
  align-items: center;
77
130
  height: @selector-height-large;
78
- padding: 0 @selector-paddingLeft;
79
- font-size: @selector-fontSize-large;
131
+ padding: 0 @selector-paddingHorizontal-large;
80
132
  line-height: @selector-lineHeight-large;
81
133
  border-radius: @selector-borderRadius-large;
82
134
 
@@ -94,11 +146,12 @@
94
146
  }
95
147
 
96
148
  &.ald-select-middle {
149
+ font-size: @selector-fontSize-middle;
150
+
97
151
  .ant-select-selector {
98
152
  align-items: center;
99
153
  height: @selector-height-middle;
100
- padding: 0 @selector-paddingLeft;
101
- font-size: @selector-fontSize-middle;
154
+ padding: 0 @selector-paddingHorizontal-middle;
102
155
  line-height: @selector-lineHeight-middle;
103
156
  border-radius: @selector-borderRadius-middle;
104
157
 
@@ -116,11 +169,12 @@
116
169
  }
117
170
 
118
171
  &.ald-select-small {
172
+ font-size: @selector-fontSize-small;
173
+
119
174
  .ant-select-selector {
120
175
  align-items: center;
121
176
  height: @selector-height-small;
122
- padding: 0 @selector-paddingLeft;
123
- font-size: @selector-fontSize-small;
177
+ padding: 0 @selector-paddingHorizontal-small;
124
178
  line-height: @selector-lineHeight-small;
125
179
  border-radius: @selector-borderRadius-small;
126
180
 
@@ -138,11 +192,12 @@
138
192
  }
139
193
 
140
194
  &.ald-select-mini {
195
+ font-size: @selector-fontSize-mini;
196
+
141
197
  .ant-select-selector {
142
198
  align-items: center;
143
199
  height: @selector-height-mini;
144
- padding: 0 @selector-paddingLeft;
145
- font-size: @selector-fontSize-mini;
200
+ padding: 0 @selector-paddingHorizontal-mini;
146
201
  line-height: @selector-lineHeight-mini;
147
202
  border-radius: @selector-borderRadius-mini;
148
203
 
@@ -195,6 +250,12 @@
195
250
  content: ',';
196
251
  }
197
252
  }
253
+
254
+ .ant-select-selection-search-input {
255
+ height: inherit;
256
+ line-height: inherit;
257
+ caret-color: @B60;
258
+ }
198
259
  }
199
260
 
200
261
  .ant-select-selection-overflow-item:first-of-type {
@@ -203,6 +264,10 @@
203
264
  }
204
265
  }
205
266
  }
267
+
268
+ .ant-select-selector::after {
269
+ height: 1.5715em;
270
+ }
206
271
  }
207
272
  }
208
273
 
@@ -210,9 +275,15 @@
210
275
  .ald-select-item {
211
276
  display: flex;
212
277
  align-items: center;
213
- padding: 0 4px;
278
+ margin: 0 4px;
279
+ padding: 0;
214
280
  font-size: 14px;
215
281
  background-color: @select-option-bgColor;
282
+ border-radius: 6px;
283
+
284
+ &:hover {
285
+ background-color: @select-option-bgColor-hover;
286
+ }
216
287
 
217
288
  .ald-select-single-check {
218
289
  display: flex;