@aloudata/aloudata-design 0.2.0-beta.5 → 0.2.0-beta.8
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.
- package/es/Button/index.d.ts +0 -1
- package/es/Button/index.js +0 -1
- package/es/Button/style/index.js +1 -1
- package/es/Button/style/index.less +265 -0
- package/es/Dropdown/Button.d.ts +0 -1
- package/es/Dropdown/Button.js +0 -1
- package/es/Dropdown/index.d.ts +0 -1
- package/es/Dropdown/index.js +0 -1
- package/es/Dropdown/style/index.js +1 -1
- package/es/Dropdown/style/index.less +40 -0
- package/es/Empty/index.d.ts +0 -1
- package/es/Empty/index.js +0 -1
- package/es/Empty/style/index.js +1 -1
- package/es/Empty/style/index.less +24 -0
- package/es/Icon/index.js +3 -1
- package/es/Icon/index.less +32 -0
- package/es/Input/index.d.ts +0 -1
- package/es/Input/index.js +1 -2
- package/es/Input/style/index.js +1 -1
- package/es/Input/style/index.less +67 -0
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/Divider.js +0 -1
- package/es/Menu/MenuItem.d.ts +0 -1
- package/es/Menu/MenuItem.js +0 -1
- package/es/Menu/SubMenu.d.ts +0 -1
- package/es/Menu/SubMenu.js +0 -1
- package/es/Menu/index.d.ts +0 -1
- package/es/Menu/index.js +0 -1
- package/es/Menu/style/index.js +1 -1
- package/es/Menu/style/index.less +37 -0
- package/es/Navigator/index.d.ts +0 -1
- package/es/Navigator/index.js +0 -1
- package/es/Navigator/style/index.js +1 -1
- package/es/Navigator/style/index.less +228 -0
- package/es/Select/Selector/index.js +1 -1
- package/es/Select/index.d.ts +0 -1
- package/es/Select/index.js +0 -1
- package/es/Select/style/index.js +1 -1
- package/es/Select/style/index.less +532 -0
- package/es/Table/index.d.ts +0 -1
- package/es/Table/index.js +0 -1
- package/es/Table/style/index.js +1 -1
- package/es/Table/style/index.less +149 -0
- package/es/Tabs/index.d.ts +0 -1
- package/es/Tabs/index.js +0 -1
- package/es/Tabs/style/index.js +1 -1
- package/es/Tabs/style/index.less +61 -0
- package/es/Tooltip/index.d.ts +0 -1
- package/es/Tooltip/index.js +0 -1
- package/es/Tooltip/style/index.js +1 -1
- package/es/Tooltip/style/index.less +14 -0
- package/es/style/index.js +1 -1
- package/es/style/index.less +3 -0
- package/es/style/mixins/{index.css → index.less} +0 -0
- package/es/style/themes/default/index.less +36 -0
- package/es/style/themes/default/themeColor.module.less +259 -0
- package/lib/Button/index.d.ts +0 -1
- package/lib/Button/index.js +0 -2
- package/lib/Button/style/index.js +1 -1
- package/lib/Button/style/index.less +265 -0
- package/lib/Dropdown/Button.d.ts +0 -1
- package/lib/Dropdown/Button.js +0 -2
- package/lib/Dropdown/index.d.ts +0 -1
- package/lib/Dropdown/index.js +0 -2
- package/lib/Dropdown/style/index.js +1 -1
- package/lib/Dropdown/style/index.less +40 -0
- package/lib/Empty/index.d.ts +0 -1
- package/lib/Empty/index.js +0 -2
- package/lib/Empty/style/index.js +1 -1
- package/lib/Empty/style/index.less +24 -0
- package/lib/Icon/index.js +5 -3
- package/lib/Icon/index.less +32 -0
- package/lib/Input/index.d.ts +0 -1
- package/lib/Input/index.js +0 -2
- package/lib/Input/style/index.js +1 -1
- package/lib/Input/style/index.less +67 -0
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/Divider.js +0 -2
- package/lib/Menu/MenuItem.d.ts +0 -1
- package/lib/Menu/MenuItem.js +0 -2
- package/lib/Menu/SubMenu.d.ts +0 -1
- package/lib/Menu/SubMenu.js +0 -2
- package/lib/Menu/index.d.ts +0 -1
- package/lib/Menu/index.js +0 -2
- package/lib/Menu/style/index.js +1 -1
- package/lib/Menu/style/index.less +37 -0
- package/lib/Navigator/index.d.ts +0 -1
- package/lib/Navigator/index.js +0 -2
- package/lib/Navigator/style/index.js +1 -1
- package/lib/Navigator/style/index.less +228 -0
- package/lib/Select/Selector/index.js +1 -1
- package/lib/Select/index.d.ts +0 -1
- package/lib/Select/index.js +0 -2
- package/lib/Select/style/index.js +1 -1
- package/lib/Select/style/index.less +532 -0
- package/lib/Table/index.d.ts +0 -1
- package/lib/Table/index.js +0 -2
- package/lib/Table/style/index.js +1 -1
- package/lib/Table/style/index.less +149 -0
- package/lib/Tabs/index.d.ts +0 -1
- package/lib/Tabs/index.js +0 -2
- package/lib/Tabs/style/index.js +1 -1
- package/lib/Tabs/style/index.less +61 -0
- package/lib/Tooltip/index.d.ts +0 -1
- package/lib/Tooltip/index.js +0 -2
- package/lib/Tooltip/style/index.js +1 -1
- package/lib/Tooltip/style/index.less +14 -0
- package/lib/style/index.js +1 -1
- package/lib/style/index.less +3 -0
- package/lib/style/mixins/{index.css → index.less} +0 -0
- package/lib/style/themes/default/index.less +36 -0
- package/lib/style/themes/default/themeColor.module.less +259 -0
- package/package.json +11 -2
- package/es/Button/style/index.css +0 -374
- package/es/Dropdown/style/index.css +0 -178
- package/es/Empty/style/index.css +0 -162
- package/es/Icon/index.css +0 -8
- package/es/Input/style/index.css +0 -215
- package/es/Menu/style/index.css +0 -208
- package/es/Navigator/style/index.css +0 -328
- package/es/Select/style/index.css +0 -493
- package/es/Table/style/index.css +0 -248
- package/es/Tabs/style/index.css +0 -194
- package/es/Tooltip/style/index.css +0 -154
- package/es/style/index.css +0 -145
- package/es/style/themes/default/index.css +0 -145
- package/es/style/themes/default/themeColor.module.css +0 -145
- package/lib/Button/style/index.css +0 -374
- package/lib/Dropdown/style/index.css +0 -178
- package/lib/Empty/style/index.css +0 -162
- package/lib/Icon/index.css +0 -8
- package/lib/Input/style/index.css +0 -215
- package/lib/Menu/style/index.css +0 -208
- package/lib/Navigator/style/index.css +0 -328
- package/lib/Select/style/index.css +0 -493
- package/lib/Table/style/index.css +0 -248
- package/lib/Tabs/style/index.css +0 -194
- package/lib/Tooltip/style/index.css +0 -154
- package/lib/style/index.css +0 -145
- package/lib/style/themes/default/index.css +0 -145
- package/lib/style/themes/default/themeColor.module.css +0 -145
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
// @import './variables.less';
|
|
2
|
+
@import '../../style/index.less';
|
|
3
|
+
|
|
4
|
+
// @component-prefix:ant-;
|
|
5
|
+
.font(@style: normal, @weight: 400, @size: @size-font-base) {
|
|
6
|
+
font-weight: @weight;
|
|
7
|
+
font-size: @size;
|
|
8
|
+
font-family: @font-family-primary;
|
|
9
|
+
font-style: @style;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// The prefix to use for components classes
|
|
13
|
+
@component-prefix: ant;
|
|
14
|
+
@ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
15
|
+
// vertical margins
|
|
16
|
+
@margin-lg: 24px; // containers
|
|
17
|
+
@margin-md: 16px; // small containers and buttons
|
|
18
|
+
@margin-sm: 12px; // Form controls and items
|
|
19
|
+
@margin-xs: 8px; // small items
|
|
20
|
+
@margin-xss: 4px; // more small
|
|
21
|
+
|
|
22
|
+
@border-color-base: #a3adc8;
|
|
23
|
+
@border-color-split: hsv(0, 0, 94%); // split border inside a component
|
|
24
|
+
@border-color-inverse: #fff;
|
|
25
|
+
@border-width-base: 1px; // width of the border for a component
|
|
26
|
+
@border-style-base: solid; // style of a components border
|
|
27
|
+
@border-color-disabled: #dfe2ed;
|
|
28
|
+
@select-option-height-lg: @height-lg;
|
|
29
|
+
@select-option-line-height-lg:16px;
|
|
30
|
+
@select-option-height-base:@height-base;
|
|
31
|
+
@select-option-height-sm:@height-sm;
|
|
32
|
+
@line-height-base: 1.5715;
|
|
33
|
+
// @mode: compact;
|
|
34
|
+
|
|
35
|
+
// Base Text
|
|
36
|
+
// @text-color-base: #313e75;
|
|
37
|
+
// @text-color-disabled: #313e75;
|
|
38
|
+
@text-font-size-base: 14px;
|
|
39
|
+
// @text-lint-height-base: 22px;
|
|
40
|
+
|
|
41
|
+
//Background Color
|
|
42
|
+
// @background-color-base: #fff;
|
|
43
|
+
// @background-color-disabled: #f7f8fc;
|
|
44
|
+
|
|
45
|
+
@ald-prefix: ~'@{component-prefix}';
|
|
46
|
+
@select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
|
|
47
|
+
@select-input-fontSize: @text-font-size-base;
|
|
48
|
+
@select-input-fontSize-sm: @text-font-size-base - 2px;
|
|
49
|
+
// @color-font-list-primary-normal: @palette-black-6; // $color-black-6
|
|
50
|
+
// @color-box-shadow-focused: #c0c4d3;
|
|
51
|
+
// @color-background-matchHeight: #ffcf3c;
|
|
52
|
+
.@{select-prefix-cls-legacy} {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: inline-block;
|
|
55
|
+
min-width: 120px;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
border: 1px solid transparent;
|
|
58
|
+
border-radius: @border-radius-base;
|
|
59
|
+
padding: 0 36px 0 12px;
|
|
60
|
+
outline: none;
|
|
61
|
+
transition: all 0.2s;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
user-select: none;
|
|
64
|
+
|
|
65
|
+
&-selector-wrap {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-selector {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
width: 100%;
|
|
73
|
+
min-height: @height-base;
|
|
74
|
+
max-height: @height-base * 3.5px;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
overflow-y: auto;
|
|
77
|
+
border-radius: @border-radius-base;
|
|
78
|
+
transition: all 0.2s;
|
|
79
|
+
|
|
80
|
+
&::-webkit-scrollbar {
|
|
81
|
+
width: 2px;
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// &::-webkit-scrollbar-thumb {
|
|
86
|
+
// // background: @palette-gray-3;
|
|
87
|
+
// }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-selector-label {
|
|
91
|
+
height: @height-base;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
line-height: @height-base;
|
|
95
|
+
font-size: @select-input-fontSize;
|
|
96
|
+
color: @NL30;
|
|
97
|
+
margin-right: @select-label-margin-right;
|
|
98
|
+
max-width: 50%;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&-values-wrapper {
|
|
104
|
+
position: relative;
|
|
105
|
+
width: 100%;
|
|
106
|
+
line-height: @height-base;
|
|
107
|
+
color: @NL0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-bordered {
|
|
111
|
+
border: 1px solid @NL90;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-bordered:not(&-disabled):not(&-focused):hover {
|
|
115
|
+
border: 1px solid @B40;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// &:not(&-bordered):not(&-disabled):hover {
|
|
119
|
+
// // background-color: @palette-gray-2;
|
|
120
|
+
// // border: 1px solid transparent;
|
|
121
|
+
// }
|
|
122
|
+
|
|
123
|
+
&-focused:not(&-bordered):not(&-disabled) {
|
|
124
|
+
// background-color: @color-background-tree-normal;
|
|
125
|
+
// border: 1px solid @color-background-button-primary-hover;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-focused {
|
|
130
|
+
// box-shadow: 0 0 6px 0 @color-box-shadow-focused;
|
|
131
|
+
|
|
132
|
+
.@{select-prefix-cls-legacy} {
|
|
133
|
+
&-item-all,
|
|
134
|
+
&-item {
|
|
135
|
+
opacity: 0.5;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-arrow,
|
|
141
|
+
&-close {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0;
|
|
144
|
+
right: 12px;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
height: 100%;
|
|
149
|
+
// color: @color-text-table-empty;
|
|
150
|
+
// transition: all 0.2s;
|
|
151
|
+
|
|
152
|
+
&-focused {
|
|
153
|
+
transform: rotate(-180deg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&-item {
|
|
158
|
+
max-width: 100%;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
font-size: @select-input-fontSize;
|
|
161
|
+
transition: margin 0.2s;
|
|
162
|
+
|
|
163
|
+
&-text {
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
line-height: 22px;
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
text-overflow: ellipsis;
|
|
169
|
+
color: @NL0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&-tag-item {
|
|
174
|
+
max-width: 100%;
|
|
175
|
+
margin-right: 8px;
|
|
176
|
+
margin-bottom: 5px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&-item-all {
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
width: 100%;
|
|
182
|
+
font-size: @select-input-fontSize;
|
|
183
|
+
transition: margin 0.2s;
|
|
184
|
+
.@{select-prefix-cls-legacy}-overflow-item {
|
|
185
|
+
white-space: nowrap;
|
|
186
|
+
|
|
187
|
+
&:not(:first-child)::before {
|
|
188
|
+
content: ',';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&-rest {
|
|
192
|
+
&::before {
|
|
193
|
+
content: '' !important;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&-text {
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
line-height: 22px;
|
|
202
|
+
white-space: nowrap;
|
|
203
|
+
text-overflow: ellipsis;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&-placeholder {
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 0;
|
|
210
|
+
left: 0;
|
|
211
|
+
color: @select-placeholder-color;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&-input {
|
|
215
|
+
position: absolute;
|
|
216
|
+
top: 9px;
|
|
217
|
+
left: 0;
|
|
218
|
+
box-sizing: content-box;
|
|
219
|
+
padding: 0;
|
|
220
|
+
background: none;
|
|
221
|
+
border: none;
|
|
222
|
+
outline: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&-input-tags {
|
|
226
|
+
position: relative;
|
|
227
|
+
top: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&-input-reference {
|
|
231
|
+
position: absolute;
|
|
232
|
+
top: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
z-index: -1;
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&-small {
|
|
239
|
+
border-radius: @border-radius-sm;
|
|
240
|
+
.@{select-prefix-cls-legacy} {
|
|
241
|
+
&-selector {
|
|
242
|
+
min-height: @height-sm;
|
|
243
|
+
max-height: @height-sm * 3.5px;
|
|
244
|
+
border-radius: @border-radius-sm;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&-selector-label {
|
|
248
|
+
height: @height-sm;
|
|
249
|
+
line-height: @height-sm;
|
|
250
|
+
font-size: @select-input-fontSize-sm;
|
|
251
|
+
color: @NL30;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&-values-wrapper {
|
|
255
|
+
line-height: @height-sm;
|
|
256
|
+
font-size: @select-input-fontSize-sm;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&-item-all {
|
|
260
|
+
font-size: @select-input-fontSize-sm;
|
|
261
|
+
|
|
262
|
+
&-text {
|
|
263
|
+
font-size: @select-input-fontSize-sm;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&-placeholder {
|
|
268
|
+
font-size: @select-input-fontSize-sm;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&-tag-item {
|
|
272
|
+
margin-bottom: 2px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&-input {
|
|
276
|
+
top: 6px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&-input-tags {
|
|
280
|
+
top: 0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&-large {
|
|
286
|
+
.@{select-prefix-cls-legacy} {
|
|
287
|
+
&-selector {
|
|
288
|
+
min-height: @height-lg;
|
|
289
|
+
max-height: @height-lg * 3.5px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&-selector-label {
|
|
293
|
+
height: @height-lg;
|
|
294
|
+
line-height: @height-lg;
|
|
295
|
+
font-size: @select-input-fontSize;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&-values-wrapper {
|
|
299
|
+
line-height: @height-lg;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&-tag-item {
|
|
303
|
+
margin-bottom: 7px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&-input {
|
|
307
|
+
top: 11px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&-input-tags {
|
|
311
|
+
top: 0;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&-disabled {
|
|
317
|
+
color: @NL80;
|
|
318
|
+
text-shadow: none;
|
|
319
|
+
background: @NL95;
|
|
320
|
+
cursor: not-allowed !important;
|
|
321
|
+
.@{select-prefix-cls-legacy} {
|
|
322
|
+
&-selector-label {
|
|
323
|
+
color: inherit;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&-values-wrapper {
|
|
327
|
+
color: inherit;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
&-placeholder {
|
|
331
|
+
color: inherit;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&-bordered&-disabled {
|
|
337
|
+
border-color: @NL90;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// &-focused&-bordered {
|
|
341
|
+
// // border: 1px solid @color-border-input-active;
|
|
342
|
+
// }
|
|
343
|
+
|
|
344
|
+
// &-focused:not(&-bordered) {
|
|
345
|
+
// background-color: @palette-gray-2;
|
|
346
|
+
// }
|
|
347
|
+
|
|
348
|
+
&-single {
|
|
349
|
+
.@{select-prefix-cls-legacy} {
|
|
350
|
+
&-item {
|
|
351
|
+
display: inline-flex;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// rc-trigger
|
|
357
|
+
&-dropdown {
|
|
358
|
+
position: absolute;
|
|
359
|
+
background: @BG100;
|
|
360
|
+
border: 1px solid @NL90;
|
|
361
|
+
box-shadow: @shadow-actionsheet;
|
|
362
|
+
border-radius: @border-radius-base;
|
|
363
|
+
padding: 4px 0;
|
|
364
|
+
&.@{select-prefix-cls-legacy}-hidden {
|
|
365
|
+
display: none;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// &-search-highlight {
|
|
370
|
+
// // background-color: @color-background-matchHeight;
|
|
371
|
+
// }
|
|
372
|
+
|
|
373
|
+
&-not-found {
|
|
374
|
+
width: 100%;
|
|
375
|
+
// color: @color-text-table-empty;
|
|
376
|
+
text-align: center;
|
|
377
|
+
|
|
378
|
+
&-icon {
|
|
379
|
+
margin-bottom: 40px;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&-gap-10 {
|
|
384
|
+
width: 10px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&-gap-10 + div {
|
|
388
|
+
overflow: hidden;
|
|
389
|
+
white-space: nowrap;
|
|
390
|
+
text-overflow: ellipsis;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&-button {
|
|
394
|
+
margin-right: 8px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// &-button-active {
|
|
398
|
+
// color: @color-text-button-text-hover;
|
|
399
|
+
// background: @palette-gray-4;
|
|
400
|
+
// border-color: @palette-gray-4;
|
|
401
|
+
// }
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.@{select-prefix-cls-legacy}-list {
|
|
405
|
+
box-sizing: border-box;
|
|
406
|
+
// min-width: 160px;
|
|
407
|
+
// padding: 16px 0 16px 8px;
|
|
408
|
+
outline: none;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.@{select-prefix-cls-legacy}-list-option {
|
|
412
|
+
position: relative;
|
|
413
|
+
display: flex;
|
|
414
|
+
align-items: center;
|
|
415
|
+
box-sizing: border-box;
|
|
416
|
+
max-width: 100%;
|
|
417
|
+
user-select: none;
|
|
418
|
+
// margin-top: 4px;
|
|
419
|
+
padding: 8px 12px 8px 36px;
|
|
420
|
+
overflow: hidden;
|
|
421
|
+
color: @NL0;
|
|
422
|
+
font-size: 12px;
|
|
423
|
+
height: @select-option-height-lg;
|
|
424
|
+
line-height: @select-option-line-height-lg;
|
|
425
|
+
white-space: nowrap;
|
|
426
|
+
text-overflow: ellipsis;
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
transition: background-color 0.3s ease;
|
|
429
|
+
|
|
430
|
+
&-icon,
|
|
431
|
+
&-all-icon {
|
|
432
|
+
position: absolute;
|
|
433
|
+
top: 50%;
|
|
434
|
+
transform: translateY(-50%);
|
|
435
|
+
left: 12px;
|
|
436
|
+
color: @B40;
|
|
437
|
+
|
|
438
|
+
&-checkbox {
|
|
439
|
+
.@{component-prefix}-checkbox-inner {
|
|
440
|
+
border-color: @NL90;
|
|
441
|
+
// background-color: @BG100;
|
|
442
|
+
border-radius: 4px;
|
|
443
|
+
|
|
444
|
+
// &::after {
|
|
445
|
+
// // border-color: @B40;
|
|
446
|
+
// }
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
// .@{component-prefix}-checkbox-indeterminate {
|
|
450
|
+
// .@{component-prefix}-checkbox-inner {
|
|
451
|
+
// &::after {
|
|
452
|
+
// border-color: green;
|
|
453
|
+
// }
|
|
454
|
+
// }
|
|
455
|
+
// }
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&-isHover {
|
|
459
|
+
background-color: @NL97;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
&-nomargin {
|
|
463
|
+
margin-top: 0;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
&-disabled {
|
|
467
|
+
color: @NL80;
|
|
468
|
+
text-shadow: none;
|
|
469
|
+
background-color: @white;
|
|
470
|
+
cursor: not-allowed !important;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
&-isSelected,
|
|
474
|
+
&-all-isSelected {
|
|
475
|
+
color: @NL0;
|
|
476
|
+
font-weight: normal;
|
|
477
|
+
// background-color: @NL97;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.@{select-prefix-cls-legacy}-list-option-all {
|
|
482
|
+
position: relative;
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
box-sizing: border-box;
|
|
486
|
+
max-width: 100%;
|
|
487
|
+
// margin-right: 8px;
|
|
488
|
+
padding: 8px 12px 8px 36px;
|
|
489
|
+
overflow: hidden;
|
|
490
|
+
color: @NL0;
|
|
491
|
+
font-size: 12px;
|
|
492
|
+
height: @select-option-height-lg;
|
|
493
|
+
line-height: @select-option-line-height-lg;
|
|
494
|
+
white-space: nowrap;
|
|
495
|
+
text-overflow: ellipsis;
|
|
496
|
+
cursor: pointer;
|
|
497
|
+
transition: background-color 0.3s ease;
|
|
498
|
+
user-select: none;
|
|
499
|
+
|
|
500
|
+
&:not(&-disabled):hover {
|
|
501
|
+
background-color: @NL97;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.@{select-prefix-cls-legacy}-footer-button-group {
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
justify-content: flex-end;
|
|
509
|
+
box-sizing: border-box;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 52px;
|
|
512
|
+
margin-top: 4px;
|
|
513
|
+
padding: 0 20px;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.@{select-prefix-cls-legacy}-footer-button-group:first-child button {
|
|
517
|
+
margin-right: 8px;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.@{select-prefix-cls-legacy}-list-search-bar {
|
|
521
|
+
box-sizing: border-box;
|
|
522
|
+
max-width: 100%;
|
|
523
|
+
padding: 0 20px 16px 12px;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.@{select-prefix-cls-legacy}-list-group {
|
|
527
|
+
padding: 6px 12px;
|
|
528
|
+
// color: @color-background-button-primary-hover;
|
|
529
|
+
font-weight: normal;
|
|
530
|
+
font-size: 12px;
|
|
531
|
+
line-height: 20px;
|
|
532
|
+
}
|
package/es/Table/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import './style';
|
|
3
2
|
import { ITableProps } from './interface';
|
|
4
3
|
declare function Table<T extends Record<string, unknown>>({ columns, data, total, renderHeaderLeft, renderHeaderRight, scrollY, onRowSelected, loadMore, hasNextPage, loading, sortable, defaultSort, resizeColumn, sortDirections: allSortDirections, onChange, }: ITableProps<T>): ReactElement;
|
|
5
4
|
export default Table;
|
package/es/Table/index.js
CHANGED
|
@@ -30,7 +30,6 @@ import usePrefixCls from '../_utils/hooks/usePrefixCls';
|
|
|
30
30
|
import { FixedSizeList } from 'react-window';
|
|
31
31
|
import InfiniteLoader from 'react-window-infinite-loader';
|
|
32
32
|
import classnames from 'classnames';
|
|
33
|
-
import './style';
|
|
34
33
|
import Icon from '../Icon';
|
|
35
34
|
import Empty from '../Empty';
|
|
36
35
|
import _ from 'lodash';
|
package/es/Table/style/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../style';
|
|
2
|
-
import
|
|
2
|
+
import './index.less';
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
|
|
3
|
+
@ald-prefix:ant;
|
|
4
|
+
@ald-iconfont-css-prefix:anticon;
|
|
5
|
+
@table-row-height:40px;
|
|
6
|
+
|
|
7
|
+
.ant-block-table {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&-cell {
|
|
11
|
+
padding: 0 12px;
|
|
12
|
+
height: @table-row-height;
|
|
13
|
+
line-height: @table-row-height;
|
|
14
|
+
border-bottom: 1px solid @NL95;
|
|
15
|
+
text-align: left;
|
|
16
|
+
color: @NL0;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
text-overflow: ellipsis;
|
|
20
|
+
flex-grow: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-row {
|
|
24
|
+
max-width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-thead {
|
|
28
|
+
.ant-block-table-cell {
|
|
29
|
+
position: relative;
|
|
30
|
+
color: @NL50;
|
|
31
|
+
|
|
32
|
+
&-sorting {
|
|
33
|
+
color: @B40;
|
|
34
|
+
}
|
|
35
|
+
// border: 1px solid red;
|
|
36
|
+
|
|
37
|
+
.ant-block-table-bar {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
background: blue;
|
|
40
|
+
width: 1px;
|
|
41
|
+
height: 12px;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 50%;
|
|
44
|
+
right: 0;
|
|
45
|
+
transform: translateY(-50%);
|
|
46
|
+
z-index: 1;
|
|
47
|
+
touch-action: none;
|
|
48
|
+
background-color: @NL95;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:last-child {
|
|
52
|
+
.ant-block-table-bar {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-tbody {
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
|
|
62
|
+
&-scroll {
|
|
63
|
+
overflow-y: scroll;
|
|
64
|
+
overflow-y: overlay;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ant-block-table-row {
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: @NL97;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-selected {
|
|
73
|
+
background-color: @BBG97;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
background-color: @BBG97;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:last-of-type {
|
|
81
|
+
.ant-block-table-cell {
|
|
82
|
+
border-bottom: 1px solid transparent;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-loading {
|
|
89
|
+
text-align: center;
|
|
90
|
+
line-height: @table-row-height;
|
|
91
|
+
color: @NL80;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-header {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
padding: 0 10px;
|
|
98
|
+
align-items: center;
|
|
99
|
+
margin-bottom: 24px;
|
|
100
|
+
|
|
101
|
+
&-left {
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
color: @NL0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-right {
|
|
108
|
+
display: flex;
|
|
109
|
+
height: 28px;
|
|
110
|
+
align-items: center;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
color: @NL0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&-list {
|
|
117
|
+
overflow: overlay !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-sortIcon {
|
|
121
|
+
margin-left: 4px;
|
|
122
|
+
margin-top: -2px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-column-resizable {
|
|
126
|
+
overflow: overlay;
|
|
127
|
+
|
|
128
|
+
.ant-block-table-thead,
|
|
129
|
+
.ant-block-table-tbody {
|
|
130
|
+
.ant-block-table-row {
|
|
131
|
+
.ant-block-table {
|
|
132
|
+
&-cell {
|
|
133
|
+
flex: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&-thead {
|
|
137
|
+
&::-webkit-scrollbar {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&-tbody {
|
|
143
|
+
overflow: initial;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
package/es/Tabs/index.d.ts
CHANGED
package/es/Tabs/index.js
CHANGED
|
@@ -15,7 +15,6 @@ import AntdTabs from 'antd/lib/tabs';
|
|
|
15
15
|
import Icon from '../Icon';
|
|
16
16
|
import TabPane from './TabPane';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import './style';
|
|
19
18
|
export default function Tabs(props) {
|
|
20
19
|
var size = props.size,
|
|
21
20
|
className = props.className,
|
package/es/Tabs/style/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../style';
|
|
2
|
-
import
|
|
2
|
+
import './index.less';
|