@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
@@ -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;
@@ -1,54 +1,65 @@
1
1
  /* stylelint-disable property-no-unknown */
2
2
  @import '../../style/index.less';
3
3
 
4
- @selector-paddingLeft: 11px;
5
-
6
4
  // large size
7
5
  @selector-height-large: 40px;
8
6
  @selector-borderRadius-large: 8px;
9
7
  @selector-fontSize-large: 16px;
10
8
  @selector-lineHeight-large: 24px;
11
9
  @prefix-marginRight-large: 8px;
10
+ @selector-paddingHorizontal-large: 11px;
11
+
12
12
  // medium size
13
13
  @selector-height-middle: 32px;
14
14
  @selector-borderRadius-middle: 6px;
15
15
  @selector-fontSize-middle: 14px;
16
16
  @selector-lineHeight-middle: 20px;
17
- @prefix-marginRight-middle: 4px;
17
+ @prefix-marginRight-middle: 8px;
18
+ @selector-paddingHorizontal-middle: 11px;
19
+
18
20
  // small size
19
21
  @selector-height-small: 28px;
20
22
  @selector-borderRadius-small: 4px;
21
23
  @selector-fontSize-small: 12px;
22
24
  @selector-lineHeight-small: 16px;
23
25
  @prefix-marginRight-small: 4px;
26
+ @selector-paddingHorizontal-small: 7px;
24
27
  // mini size
25
28
  @selector-height-mini: 24px;
26
29
  @selector-borderRadius-mini: 4px;
27
30
  @selector-fontSize-mini: 12px;
28
31
  @selector-lineHeight-mini: 16px;
29
32
  @prefix-marginRight-mini: 4px;
33
+ @selector-paddingHorizontal-mini: 7px;
30
34
 
31
35
  //default status
32
36
  @selector-borderColor-default: @NL90;
33
- @selector-placeholderColor-default: @NL70;
37
+ @selector-placeholderColor-default: @NL80;
34
38
  @selector-valueColor-default: @NL0;
35
39
  @selector-labelColor-default: @NL50;
40
+ @selector-bgColor-default: @BG97;
36
41
  //active status
37
42
  @selector-borderColor-active: @B60;
38
- @selector-placeholderColor-active: @NL70;
43
+ @selector-placeholderColor-active: @NL80;
39
44
  @selector-valueColor-active: @NL50;
40
45
  @selector-labelColor-active: @NL50;
46
+ @selector-bgColor-active: @BG97;
41
47
  //disable status
42
48
  @selector-borderColor-disabled: @NL90;
43
- @selector-placeholderColor-disabled: @NL70;
44
- @selector-valueColor-disabled: @NL50;
45
- @selector-labelColor-disabled: @NL50;
49
+ @selector-placeholderColor-disabled: @NL80;
50
+ @selector-valueColor-disabled: @NL60;
51
+ @selector-labelColor-disabled: @NL60;
52
+ @selector-bgColor-disabled: @BG95;
46
53
  //-----option
47
54
  @select-option-bgColor: @BG100;
48
55
  @select-option-color: @NL0;
56
+ @select-option-bgColor-hover: @NL97;
49
57
 
50
58
  :export {
51
- SELECTOR_PADDING_LEFT: @selector-paddingLeft;
59
+ SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-paddingHorizontal-large;
60
+ SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-paddingHorizontal-middle;
61
+ SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-paddingHorizontal-small;
62
+ SELECTOR_PADDING_HORIZONTAL_MINI: @selector-paddingHorizontal-mini;
52
63
  PREFIX_MARGIN_RIGHT_LARGE: @prefix-marginRight-large;
53
64
  PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-marginRight-middle;
54
65
  PREFIX_MARGIN_RIGHT_SMALL: @prefix-marginRight-small;
@@ -89,7 +89,10 @@ interface CssExports {
89
89
  'SC90': string;
90
90
  'SC95': string;
91
91
  'SC98': string;
92
- 'SELECTOR_PADDING_LEFT': string;
92
+ 'SELECTOR_PADDING_HORIZONTAL_LARGE': string;
93
+ 'SELECTOR_PADDING_HORIZONTAL_MIDDLE': string;
94
+ 'SELECTOR_PADDING_HORIZONTAL_MINI': string;
95
+ 'SELECTOR_PADDING_HORIZONTAL_SMALL': string;
93
96
  'SHADOW_L': string;
94
97
  'WHITE': string;
95
98
  }
@@ -1,9 +1,7 @@
1
1
  import * as React from 'react';
2
- import DownOutlined from '@ant-design/icons/DownOutlined';
3
2
  import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
4
3
  import CheckOutlined from '@ant-design/icons/CheckOutlined';
5
4
  import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
6
- import SearchOutlined from '@ant-design/icons/SearchOutlined';
7
5
  import Icon from '../../Icon';
8
6
  export default function getIcons(_ref) {
9
7
  var suffixIcon = _ref.suffixIcon,
@@ -43,14 +41,11 @@ export default function getIcons(_ref) {
43
41
  mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
44
42
  var open = _ref2.open,
45
43
  showSearch = _ref2.showSearch;
46
-
47
- if (open && showSearch) {
48
- return getSuffixIconNode( /*#__PURE__*/React.createElement(SearchOutlined, {
49
- className: iconCls
50
- }));
51
- }
52
-
53
- return getSuffixIconNode( /*#__PURE__*/React.createElement(DownOutlined, {
44
+ // if (open && showSearch) {
45
+ // return getSuffixIconNode(<SearchOutlined className={iconCls} />);
46
+ // }
47
+ return getSuffixIconNode( /*#__PURE__*/React.createElement(Icon, {
48
+ type: "arrows-down-line",
54
49
  className: iconCls
55
50
  }));
56
51
  };
@@ -1,6 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { ITableProps } from './interface';
3
- import './style/index';
4
3
  declare function Table<RecordType extends object = any>(props: ITableProps<RecordType>, ref?: React.Ref<unknown>): ReactElement;
5
4
  declare const _default: typeof Table;
6
5
  export default _default;
package/es/Table/Table.js CHANGED
@@ -27,14 +27,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
  /// <reference types ='./react-table-config' />
28
28
  import _ from 'lodash';
29
29
  import classnames from 'classnames';
30
- import Icon from '../Icon';
30
+ import Descending from '../Icon/icons/SortDescendingLine';
31
+ import Ascending from '../Icon/icons/SortAscendingLine';
32
+ import LoadingIcon from '../Icon/icons/Loading';
31
33
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
32
34
  import usePrefixCls from '../_utils/hooks/usePrefixCls';
33
35
  import InfiniteScroll from 'react-infinite-scroll-component';
34
- import TableEmpty from './components/Empty';
35
36
  import ResizeObserver from 'rc-resize-observer';
36
- import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table';
37
- import './style/index';
37
+ import Empty from '../Empty';
38
+ import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table'; // import './style/index';
39
+
38
40
  var ARRAY_FIRST_INDEX = 0;
39
41
  var DEFAULT_ROW_WIDTH = 0;
40
42
  var DEFAULT_BODY_HEIGHT = 0;
@@ -329,13 +331,13 @@ function Table(props, ref) {
329
331
  return null;
330
332
  }
331
333
 
332
- return desc ? /*#__PURE__*/React.createElement(Icon, {
334
+ return desc ? /*#__PURE__*/React.createElement(Descending, {
333
335
  className: "".concat(prefixCls, "-sortIcon"),
334
- type: "sort_descending",
336
+ fill: "currentColor",
335
337
  size: 12
336
- }) : /*#__PURE__*/React.createElement(Icon, {
338
+ }) : /*#__PURE__*/React.createElement(Ascending, {
337
339
  className: "".concat(prefixCls, "-sortIcon"),
338
- type: "sort_ascending",
340
+ fill: "currentColor",
339
341
  size: 12
340
342
  });
341
343
  };
@@ -357,9 +359,10 @@ function Table(props, ref) {
357
359
  });
358
360
  var LoadingNode = /*#__PURE__*/React.createElement("div", {
359
361
  className: classnames("".concat(prefixCls, "-loading"))
360
- }, /*#__PURE__*/React.createElement(Icon, {
361
- type: "waiting",
362
+ }, /*#__PURE__*/React.createElement(LoadingIcon, {
362
363
  size: 16,
364
+ fill: "currentColor",
365
+ spin: true,
363
366
  className: classnames("".concat(prefixCls, "-loading-icon"))
364
367
  }), "Loading");
365
368
 
@@ -369,7 +372,13 @@ function Table(props, ref) {
369
372
  }
370
373
 
371
374
  if (!loading && !rows.length) {
372
- return /*#__PURE__*/React.createElement(TableEmpty, null);
375
+ return /*#__PURE__*/React.createElement("div", {
376
+ className: classnames("".concat(prefixCls, "-empty-icon"))
377
+ }, /*#__PURE__*/React.createElement(Empty, {
378
+ title: "No Data",
379
+ size: "large",
380
+ image: Empty.PRESENTED_IMAGE_SIMPLE
381
+ }));
373
382
  }
374
383
 
375
384
  var renderRowList = function renderRowList() {
@@ -135,8 +135,15 @@
135
135
  }
136
136
  }
137
137
 
138
+ &-empty-icon {
139
+ padding-top: 52px;
140
+ }
141
+
138
142
  &-init-loading {
139
143
  .ald-table-loading {
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
140
147
  padding-top: 84px;
141
148
  }
142
149
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { TabsProps } from 'antd';
2
3
  export declare type TabsSize = 'default' | 'large';
3
- export interface ITabsProps {
4
+ export interface ITabsProps extends Omit<TabsProps, 'size'> {
4
5
  /**
5
6
  * @description 大小
6
7
  * @default default
package/es/Tabs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "antd/es/tabs/style";
2
2
  import _Tabs from "antd/es/tabs";
3
- var _excluded = ["size", "className", "adaptHeight"];
3
+ var _excluded = ["size", "className", "popupClassName", "adaptHeight"];
4
4
 
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
 
@@ -15,11 +15,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
15
  import React from 'react'; // import AntdTabs, { TabsProps } from 'antd/lib/tabs';
16
16
 
17
17
  import Icon from '../Icon';
18
+ import Button from '../Button';
18
19
  import TabPane from './TabPane';
19
20
  import classNames from 'classnames';
20
21
  export default function Tabs(props) {
21
22
  var size = props.size,
22
23
  className = props.className,
24
+ popupClassName = props.popupClassName,
23
25
  adaptHeight = props.adaptHeight,
24
26
  otherProps = _objectWithoutProperties(props, _excluded);
25
27
 
@@ -30,11 +32,15 @@ export default function Tabs(props) {
30
32
  }
31
33
 
32
34
  return /*#__PURE__*/React.createElement(_Tabs, Object.assign({
33
- moreIcon: /*#__PURE__*/React.createElement(Icon, {
34
- type: "more_vert",
35
- size: 18
35
+ moreIcon: /*#__PURE__*/React.createElement(Button, {
36
+ size: "default",
37
+ type: "text",
38
+ icon: /*#__PURE__*/React.createElement(Icon, {
39
+ type: "more"
40
+ })
36
41
  }),
37
42
  tabBarGutter: 24,
43
+ popupClassName: classNames(popupClassName, 'ald-tabs-dropdown'),
38
44
  className: classNames('ald-tabs', className, {
39
45
  'ald-adapt-height': adaptHeight,
40
46
  'ald-tabs-default': size !== 'large'
@@ -1,5 +1,5 @@
1
1
  @import '../../style/index.less';
2
-
2
+ @import '../../Button/style/index.less';
3
3
  //status- default
4
4
  @Tabs-color: @NL30;
5
5
  @Tabs-fontWeight: 400;
@@ -98,3 +98,37 @@
98
98
  }
99
99
  }
100
100
  }
101
+
102
+ .ald-tabs-dropdown {
103
+ .ant-tabs-dropdown-menu {
104
+ padding: 4px;
105
+ border-radius: 6px;
106
+ box-shadow: @shadow-L;
107
+
108
+ .ant-tabs-dropdown-menu-item-active {
109
+ background-color: @NL97;
110
+ }
111
+
112
+ .ant-tabs-dropdown-menu-item {
113
+ padding: 8px 12px;
114
+ line-height: 20px;
115
+ border-radius: 6px;
116
+ }
117
+
118
+ .ant-tabs-dropdown-menu-item,
119
+ .ant-tabs-dropdown-menu-submenu-title {
120
+ &:hover {
121
+ background-color: @NL97;
122
+ }
123
+
124
+ &.ant-tabs-dropdown-menu-item-disabled {
125
+ color: @NL80;
126
+ cursor: default;
127
+
128
+ &:hover {
129
+ background-color: @BG100;
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
package/es/index.d.ts CHANGED
@@ -68,3 +68,4 @@ export { default as Empty } from './Empty';
68
68
  export type { IEmptyProps as EmptyProps } from './Empty';
69
69
  export { default as Avatar } from './Avatar';
70
70
  export type { IAvatarProps as AvatarProps } from './Avatar';
71
+ export { default as Icon } from './Icon';
package/es/index.js CHANGED
@@ -33,4 +33,5 @@ export { default as Popover } from './Popover';
33
33
  export { default as InputNumber } from './InputNumber';
34
34
  export { default as Breadcrumb } from './Breadcrumb';
35
35
  export { default as Empty } from './Empty';
36
- export { default as Avatar } from './Avatar';
36
+ export { default as Avatar } from './Avatar';
37
+ export { default as Icon } from './Icon';
@@ -1,4 +1,5 @@
1
1
  @root-entry-name: default;
2
2
  @import './mixins/index.less';
3
+ @import './themes/default/scrollBar.less';
3
4
  @import './themes/default/index.less';
4
5
  @import './mixins/index.less';
@@ -0,0 +1,13 @@
1
+ ::-webkit-scrollbar-thumb {
2
+ background: @NL90;
3
+ background-clip: padding-box;
4
+ border: 3px solid transparent;
5
+ border-radius: 6px;
6
+ }
7
+
8
+ ::-webkit-scrollbar {
9
+ width: 12px;
10
+ height: 12px;
11
+ min-height: 12px;
12
+ background-color: transparent;
13
+ }
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-breadcrumb {
3
+ .ald-breadcrumb.ant-breadcrumb li {
4
4
  color: @NL50;
5
5
  font-weight: 600;
6
6
  font-size: 24px;
@@ -18,10 +18,18 @@
18
18
  margin: 0;
19
19
  }
20
20
 
21
- & > span {
21
+ a {
22
22
  color: @NL50;
23
23
 
24
- &:last-child {
24
+ &:hover {
25
+ color: @NL0;
26
+ }
27
+ }
28
+
29
+ &:last-child {
30
+ color: @NL0;
31
+
32
+ a {
25
33
  color: @NL0;
26
34
  }
27
35
  }
@@ -13,7 +13,9 @@ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
- var _excluded = ["type", "size", "shape", "icon", "className"];
16
+ var _Loading = _interopRequireDefault(require("../Icon/icons/Loading"));
17
+
18
+ var _excluded = ["type", "size", "shape", "loading", "disabled", "icon", "className"];
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
@@ -42,6 +44,9 @@ function Button(props) {
42
44
  size = _props$size === void 0 ? 'default' : _props$size,
43
45
  _props$shape = props.shape,
44
46
  shape = _props$shape === void 0 ? 'default' : _props$shape,
47
+ _props$loading = props.loading,
48
+ loading = _props$loading === void 0 ? false : _props$loading,
49
+ disabled = props.disabled,
45
50
  icon = props.icon,
46
51
  className = props.className,
47
52
  rest = _objectWithoutProperties(props, _excluded);
@@ -102,7 +107,8 @@ function Button(props) {
102
107
  if (iconNode) {
103
108
  var p = _objectSpread({
104
109
  className: '',
105
- size: ICON_LARGE
110
+ size: ICON_LARGE,
111
+ fill: 'currentColor'
106
112
  }, iconNode.props);
107
113
 
108
114
  p.className = (0, _classnames.default)("".concat(iconPrefixCls, "-icon-left"), p.className, iconPrefixCls);
@@ -110,10 +116,20 @@ function Button(props) {
110
116
  return /*#__PURE__*/_react.default.cloneElement(iconNode, p);
111
117
  }
112
118
 
119
+ if (loading) {
120
+ return /*#__PURE__*/_react.default.createElement(_Loading.default, {
121
+ spin: true,
122
+ size: ICON_LARGE,
123
+ className: (0, _classnames.default)("".concat(iconPrefixCls, "-icon-left"), iconPrefixCls),
124
+ fill: "currentColor"
125
+ });
126
+ }
127
+
113
128
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
114
129
  };
115
130
 
116
131
  return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({}, rest, {
132
+ disabled: loading ? true : disabled,
117
133
  icon: setIcon(icon),
118
134
  type: getButtonType(type),
119
135
  className: (0, _classnames.default)(prefix, "".concat(prefix, "-").concat(type), className, getButtonSizeClass(size)),