@aloudata/aloudata-design 0.3.2 → 0.3.3
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.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Dropdown/Button.js +3 -2
- package/es/Icon/icons.json +410 -0
- package/es/Input/components/Group/index.d.ts +2 -1
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -22
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/style/index.less +102 -102
- package/es/InputNumber/style/index.less +69 -69
- package/es/Modal/index.js +4 -7
- package/es/Modal/style/index.less +45 -45
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/es/PageHeader/style/index.d.ts +2 -0
- package/es/PageHeader/style/index.js +2 -0
- package/es/PageHeader/style/index.less +1 -0
- package/es/Select/rc-select/OptionList.js +3 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +49 -49
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +6 -4
- package/es/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/style/index.less +1 -1
- package/es/Tabs/index.js +3 -2
- package/es/Tabs/style/index.less +25 -25
- package/es/index.d.ts +6 -4
- package/es/index.js +2 -1
- package/es/style/index.less +1 -1
- package/es/style/themes/default/index.less +30 -30
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Dropdown/Button.js +7 -5
- package/lib/Icon/icons.json +410 -0
- package/lib/Input/components/Group/index.d.ts +2 -1
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -22
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/style/index.less +102 -102
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Modal/index.js +8 -10
- package/lib/Modal/style/index.less +45 -45
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Select/rc-select/OptionList.js +7 -5
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +49 -49
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +10 -8
- package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/style/index.less +1 -1
- package/lib/Tabs/index.js +5 -3
- package/lib/Tabs/style/index.less +25 -25
- package/lib/index.d.ts +6 -4
- package/lib/index.js +8 -0
- package/lib/style/index.less +1 -1
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +2 -1
|
@@ -6,57 +6,57 @@
|
|
|
6
6
|
|
|
7
7
|
@ald-iconfont-css-prefix: anticon;
|
|
8
8
|
// size===large
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@input-prefix-
|
|
9
|
+
@input-height-large: 36px;
|
|
10
|
+
@input-padding-large: 5px 11px;
|
|
11
|
+
@input-font-size-large: 16px;
|
|
12
|
+
@input-border-radius-large: 8px;
|
|
13
|
+
@input-prefix-margin-right-large: 8px;
|
|
14
14
|
// size===middle
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@input-prefix-
|
|
15
|
+
@input-height-middle: 32px;
|
|
16
|
+
@input-padding-middle: 5px 11px;
|
|
17
|
+
@input-font-size-middle: 14px;
|
|
18
|
+
@input-border-radius-middle: 6px;
|
|
19
|
+
@input-prefix-margin-right-middle: 8px;
|
|
20
20
|
// size===small
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@input-prefix-
|
|
21
|
+
@input-height-small: 28px;
|
|
22
|
+
@input-padding-small: 5px 7px;
|
|
23
|
+
@input-font-size-small: 12px;
|
|
24
|
+
@input-border-radius-small: 4px;
|
|
25
|
+
@input-prefix-margin-right-small: 4px;
|
|
26
26
|
// size===mini
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@input-prefix-
|
|
27
|
+
@input-height-mini: 24px;
|
|
28
|
+
@input-padding-mini: 3px 7px;
|
|
29
|
+
@input-font-size-mini: 12px;
|
|
30
|
+
@input-border-radius-mini: 4px;
|
|
31
|
+
@input-prefix-margin-right-mini: 4px;
|
|
32
32
|
//custom status
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
33
|
+
@input-border-color: @NL90;
|
|
34
|
+
@input-fontColor: @NL0;
|
|
35
|
+
@input-placeholder-color: @NL80;
|
|
36
|
+
@input-prefix-color: @NL50;
|
|
37
|
+
@input-bg-color: @BG97;
|
|
38
38
|
// active status
|
|
39
|
-
@
|
|
40
|
-
@
|
|
39
|
+
@input-active-border-color: @B60;
|
|
40
|
+
@input-box-shadow-active: 0 0 0 0.5px @B60;
|
|
41
41
|
// disabled status
|
|
42
|
-
@
|
|
43
|
-
@
|
|
44
|
-
@
|
|
42
|
+
@input-disabled-border-color: @NL90;
|
|
43
|
+
@input-disabled-bg-color: @BG95;
|
|
44
|
+
@input-disabled-font-color: @NL60;
|
|
45
45
|
|
|
46
46
|
.ant-input.ald-input {
|
|
47
47
|
color: @NL0;
|
|
48
48
|
font-weight: 400;
|
|
49
|
-
background-color: @
|
|
50
|
-
border-color: @
|
|
51
|
-
border-radius: @
|
|
49
|
+
background-color: @input-bg-color;
|
|
50
|
+
border-color: @input-border-color;
|
|
51
|
+
border-radius: @input-border-radius-middle;
|
|
52
52
|
caret-color: @B60;
|
|
53
53
|
|
|
54
54
|
&::placeholder {
|
|
55
|
-
color: @
|
|
55
|
+
color: @input-placeholder-color;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&-prefix {
|
|
59
|
-
color: @
|
|
59
|
+
color: @input-prefix-color;
|
|
60
60
|
font-size: inherit;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
&:focus,
|
|
68
68
|
&:hover,
|
|
69
69
|
&-focused {
|
|
70
|
-
border-color: @
|
|
71
|
-
box-shadow: @
|
|
70
|
+
border-color: @input-active-border-color;
|
|
71
|
+
box-shadow: @input-box-shadow-active;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&[disabled].ald-input {
|
|
75
|
-
color: @
|
|
76
|
-
background-color: @
|
|
77
|
-
border-color: @
|
|
75
|
+
color: @input-disabled-font-color;
|
|
76
|
+
background-color: @input-disabled-bg-color;
|
|
77
|
+
border-color: @input-disabled-border-color;
|
|
78
78
|
box-shadow: none;
|
|
79
79
|
cursor: default;
|
|
80
80
|
|
|
81
81
|
&::placeholder {
|
|
82
|
-
color: @
|
|
82
|
+
color: @input-placeholder-color;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -106,24 +106,24 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ant-input-affix-wrapper.ant-input-affix-wrapper {
|
|
109
|
-
background-color: @
|
|
110
|
-
border-color: @
|
|
109
|
+
background-color: @input-bg-color;
|
|
110
|
+
border-color: @input-border-color;
|
|
111
111
|
|
|
112
112
|
&:hover,
|
|
113
113
|
&:focus,
|
|
114
114
|
&-focused {
|
|
115
|
-
border-color: @
|
|
116
|
-
box-shadow: @
|
|
115
|
+
border-color: @input-active-border-color;
|
|
116
|
+
box-shadow: @input-box-shadow-active;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.ant-input {
|
|
120
120
|
color: @NL0;
|
|
121
|
-
background-color: @
|
|
121
|
+
background-color: @input-bg-color;
|
|
122
122
|
border-radius: 0;
|
|
123
123
|
caret-color: @B60;
|
|
124
124
|
|
|
125
125
|
&::placeholder {
|
|
126
|
-
color: @
|
|
126
|
+
color: @input-placeholder-color;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -154,58 +154,58 @@
|
|
|
154
154
|
|
|
155
155
|
.ant-input-affix-wrapper-focused {
|
|
156
156
|
&.ant-input-password {
|
|
157
|
-
border-color: @
|
|
158
|
-
box-shadow: @
|
|
157
|
+
border-color: @input-active-border-color;
|
|
158
|
+
box-shadow: @input-box-shadow-active;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&:hover {
|
|
162
|
-
border-color: @
|
|
163
|
-
box-shadow: @
|
|
162
|
+
border-color: @input-active-border-color;
|
|
163
|
+
box-shadow: @input-box-shadow-active;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.ald-input {
|
|
168
168
|
&.ald-input-mini {
|
|
169
|
-
height: @
|
|
170
|
-
padding: @
|
|
171
|
-
font-size: @
|
|
172
|
-
border-radius: @
|
|
169
|
+
height: @input-height-mini;
|
|
170
|
+
padding: @input-padding-mini;
|
|
171
|
+
font-size: @input-font-size-mini;
|
|
172
|
+
border-radius: @input-border-radius-mini;
|
|
173
173
|
|
|
174
174
|
.ant-input-prefix {
|
|
175
|
-
margin-right: @input-prefix-
|
|
175
|
+
margin-right: @input-prefix-margin-right-mini;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
&.ald-input-small {
|
|
180
|
-
height: @
|
|
181
|
-
padding: @
|
|
182
|
-
font-size: @
|
|
183
|
-
border-radius: @
|
|
180
|
+
height: @input-height-small;
|
|
181
|
+
padding: @input-padding-small;
|
|
182
|
+
font-size: @input-font-size-small;
|
|
183
|
+
border-radius: @input-border-radius-small;
|
|
184
184
|
|
|
185
185
|
.ant-input-prefix {
|
|
186
|
-
margin-right: @input-prefix-
|
|
186
|
+
margin-right: @input-prefix-margin-right-small;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
&.ald-input-middle {
|
|
191
|
-
height: @
|
|
192
|
-
padding: @
|
|
193
|
-
font-size: @
|
|
194
|
-
border-radius: @
|
|
191
|
+
height: @input-height-middle;
|
|
192
|
+
padding: @input-padding-middle;
|
|
193
|
+
font-size: @input-font-size-middle;
|
|
194
|
+
border-radius: @input-border-radius-middle;
|
|
195
195
|
|
|
196
196
|
.ant-input-prefix {
|
|
197
|
-
margin-right: @input-prefix-
|
|
197
|
+
margin-right: @input-prefix-margin-right-middle;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
&.ald-input-large {
|
|
202
|
-
height: @
|
|
203
|
-
padding: @
|
|
204
|
-
font-size: @
|
|
205
|
-
border-radius: @
|
|
202
|
+
height: @input-height-large;
|
|
203
|
+
padding: @input-padding-large;
|
|
204
|
+
font-size: @input-font-size-large;
|
|
205
|
+
border-radius: @input-border-radius-large;
|
|
206
206
|
|
|
207
207
|
.ant-input-prefix {
|
|
208
|
-
margin-right: @input-prefix-
|
|
208
|
+
margin-right: @input-prefix-margin-right-large;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -218,27 +218,27 @@
|
|
|
218
218
|
|
|
219
219
|
.ald-input-group-large {
|
|
220
220
|
.ald-input {
|
|
221
|
-
height: @
|
|
222
|
-
padding: @
|
|
223
|
-
font-size: @
|
|
221
|
+
height: @input-height-large;
|
|
222
|
+
padding: @input-padding-large;
|
|
223
|
+
font-size: @input-font-size-large;
|
|
224
224
|
|
|
225
225
|
&.ant-input {
|
|
226
|
-
border-radius: @
|
|
226
|
+
border-radius: @input-border-radius-large;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ant-input-prefix {
|
|
230
|
-
margin-right: @input-prefix-
|
|
230
|
+
margin-right: @input-prefix-margin-right-large;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
&.ant-input-group-compact {
|
|
235
235
|
.ald-input {
|
|
236
236
|
&:first-of-type {
|
|
237
|
-
border-radius: @
|
|
237
|
+
border-radius: @input-border-radius-large 0 0 @input-border-radius-large;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
&:last-of-type {
|
|
241
|
-
border-radius: 0 @
|
|
241
|
+
border-radius: 0 @input-border-radius-large @input-border-radius-large 0;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
@@ -246,28 +246,28 @@
|
|
|
246
246
|
|
|
247
247
|
.ald-input-group-middle {
|
|
248
248
|
.ald-input {
|
|
249
|
-
height: @
|
|
250
|
-
padding: @
|
|
251
|
-
font-size: @
|
|
252
|
-
border-radius: @
|
|
249
|
+
height: @input-height-middle;
|
|
250
|
+
padding: @input-padding-middle;
|
|
251
|
+
font-size: @input-font-size-middle;
|
|
252
|
+
border-radius: @input-border-radius-middle;
|
|
253
253
|
|
|
254
254
|
&.ant-input {
|
|
255
|
-
border-radius: @
|
|
255
|
+
border-radius: @input-border-radius-middle;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.ant-input-prefix {
|
|
259
|
-
margin-right: @input-prefix-
|
|
259
|
+
margin-right: @input-prefix-margin-right-middle;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&.ant-input-group-compact {
|
|
264
264
|
.ald-input {
|
|
265
265
|
&:first-of-type {
|
|
266
|
-
border-radius: @
|
|
266
|
+
border-radius: @input-border-radius-middle 0 0 @input-border-radius-middle;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
&:last-of-type {
|
|
270
|
-
border-radius: 0 @
|
|
270
|
+
border-radius: 0 @input-border-radius-middle @input-border-radius-middle 0;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -275,28 +275,28 @@
|
|
|
275
275
|
|
|
276
276
|
.ald-input-group-small {
|
|
277
277
|
.ald-input {
|
|
278
|
-
height: @
|
|
279
|
-
padding: @
|
|
280
|
-
font-size: @
|
|
281
|
-
border-radius: @
|
|
278
|
+
height: @input-height-small;
|
|
279
|
+
padding: @input-padding-small;
|
|
280
|
+
font-size: @input-font-size-small;
|
|
281
|
+
border-radius: @input-border-radius-small;
|
|
282
282
|
|
|
283
283
|
&.ant-input {
|
|
284
|
-
border-radius: @
|
|
284
|
+
border-radius: @input-border-radius-small;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.ant-input-prefix {
|
|
288
|
-
margin-right: @input-prefix-
|
|
288
|
+
margin-right: @input-prefix-margin-right-small;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
&.ant-input-group-compact {
|
|
293
293
|
.ald-input {
|
|
294
294
|
&:first-of-type {
|
|
295
|
-
border-radius: @
|
|
295
|
+
border-radius: @input-border-radius-small 0 0 @input-border-radius-small;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
&:last-of-type {
|
|
299
|
-
border-radius: 0 @
|
|
299
|
+
border-radius: 0 @input-border-radius-small @input-border-radius-small 0;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -304,28 +304,28 @@
|
|
|
304
304
|
|
|
305
305
|
.ald-input-group-mini {
|
|
306
306
|
.ald-input {
|
|
307
|
-
height: @
|
|
308
|
-
padding: @
|
|
309
|
-
font-size: @
|
|
310
|
-
border-radius: @
|
|
307
|
+
height: @input-height-mini;
|
|
308
|
+
padding: @input-padding-mini;
|
|
309
|
+
font-size: @input-font-size-mini;
|
|
310
|
+
border-radius: @input-border-radius-mini;
|
|
311
311
|
|
|
312
312
|
&.ant-input {
|
|
313
|
-
border-radius: @
|
|
313
|
+
border-radius: @input-border-radius-mini;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
.ant-input-prefix {
|
|
317
|
-
margin-right: @input-prefix-
|
|
317
|
+
margin-right: @input-prefix-margin-right-mini;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
&.ant-input-group-compact {
|
|
322
322
|
.ald-input {
|
|
323
323
|
&:first-of-type {
|
|
324
|
-
border-radius: @
|
|
324
|
+
border-radius: @input-border-radius-mini 0 0 @input-border-radius-mini;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
&:last-of-type {
|
|
328
|
-
border-radius: 0 @
|
|
328
|
+
border-radius: 0 @input-border-radius-mini @input-border-radius-mini 0;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
/* stylelint-disable no-descending-specificity */
|
|
2
2
|
@import '../../style/index.less';
|
|
3
3
|
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
4
|
+
@inputNumber-height-large: 36px;
|
|
5
|
+
@inputNumber-font-size-large: 16px;
|
|
6
|
+
@inputNumber-border-radius-large: 8px;
|
|
7
7
|
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
8
|
+
@inputNumber-height-middle: 32px;
|
|
9
|
+
@inputNumber-font-size-middle: 14px;
|
|
10
|
+
@inputNumber-border-radius-middle: 6px;
|
|
11
11
|
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
12
|
+
@inputNumber-height-small: 28px;
|
|
13
|
+
@inputNumber-font-size-small: 12px;
|
|
14
|
+
@inputNumber-border-radius-small: 4px;
|
|
15
15
|
//默认
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
16
|
+
@inputNumber-bg-color: @BG97;
|
|
17
|
+
@inputNumber-border-color: @NL90;
|
|
18
|
+
@inputNumber-color: @NL0;
|
|
19
|
+
@inputNumber-wrapper-bg-color: @BG95;
|
|
20
20
|
//激活
|
|
21
|
-
@
|
|
22
|
-
@
|
|
21
|
+
@inputNumber-active-bg-color: @BG97;
|
|
22
|
+
@inputNumber-active-border-color: @B60;
|
|
23
23
|
|
|
24
24
|
//disable
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
25
|
+
@inputNumber-disabled-bg-color: @BG95;
|
|
26
|
+
@inputNumber-disabled-border-color: @NL90;
|
|
27
|
+
@inputNumber-disabled-color: @NL60;
|
|
28
28
|
//光标颜色
|
|
29
|
-
@
|
|
29
|
+
@inputNumber-cursor-color: @B60;
|
|
30
30
|
|
|
31
31
|
//前后填充
|
|
32
|
-
@
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
32
|
+
@inputNumber-addon-bg-color: @BG95;
|
|
33
|
+
@inputNumber-addon-color: @NL30;
|
|
34
|
+
@inputNumber-addon-border-color: @NL90;
|
|
35
|
+
@inputNumber-addon-disable-color: @NL60;
|
|
36
36
|
|
|
37
37
|
.ald-inputNumber {
|
|
38
38
|
&.ant-input-number {
|
|
39
|
-
height: @
|
|
39
|
+
height: @inputNumber-height-middle;
|
|
40
40
|
// overflow: hidden;
|
|
41
|
-
color: @
|
|
42
|
-
font-size: @
|
|
43
|
-
background-color: @
|
|
44
|
-
border-color: @
|
|
45
|
-
border-radius: @
|
|
41
|
+
color: @inputNumber-color;
|
|
42
|
+
font-size: @inputNumber-font-size-middle;
|
|
43
|
+
background-color: @inputNumber-bg-color;
|
|
44
|
+
border-color: @inputNumber-border-color;
|
|
45
|
+
border-radius: @inputNumber-border-radius-middle;
|
|
46
46
|
box-shadow: none;
|
|
47
47
|
|
|
48
48
|
.ant-input-number-input-wrap {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
.ant-input-number-input {
|
|
52
52
|
height: 100%;
|
|
53
|
-
caret-color: @
|
|
53
|
+
caret-color: @inputNumber-cursor-color;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -78,39 +78,39 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&.ald-inputNumber-large {
|
|
81
|
-
height: @
|
|
82
|
-
font-size: @
|
|
83
|
-
border-radius: @
|
|
81
|
+
height: @inputNumber-height-large;
|
|
82
|
+
font-size: @inputNumber-font-size-large;
|
|
83
|
+
border-radius: @inputNumber-border-radius-large;
|
|
84
84
|
|
|
85
85
|
.ant-input-number-handler-wrap {
|
|
86
|
-
border-radius: 0 @
|
|
86
|
+
border-radius: 0 @inputNumber-border-radius-large @inputNumber-border-radius-large 0;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
&.ald-inputNumber-middle {
|
|
91
|
-
height: @
|
|
92
|
-
font-size: @
|
|
93
|
-
border-radius: @
|
|
91
|
+
height: @inputNumber-height-middle;
|
|
92
|
+
font-size: @inputNumber-font-size-middle;
|
|
93
|
+
border-radius: @inputNumber-border-radius-middle;
|
|
94
94
|
|
|
95
95
|
.ant-input-number-handler-wrap {
|
|
96
|
-
border-radius: 0 @
|
|
96
|
+
border-radius: 0 @inputNumber-border-radius-middle @inputNumber-border-radius-middle 0;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&.ald-inputNumber-small {
|
|
101
|
-
height: @
|
|
102
|
-
font-size: @
|
|
103
|
-
border-radius: @
|
|
101
|
+
height: @inputNumber-height-small;
|
|
102
|
+
font-size: @inputNumber-font-size-small;
|
|
103
|
+
border-radius: @inputNumber-border-radius-small;
|
|
104
104
|
|
|
105
105
|
.ant-input-number-handler-wrap {
|
|
106
|
-
border-radius: 0 @
|
|
106
|
+
border-radius: 0 @inputNumber-border-radius-small @inputNumber-border-radius-small 0;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&-disabled {
|
|
111
|
-
color: @
|
|
112
|
-
background-color: @
|
|
113
|
-
border-color: @
|
|
111
|
+
color: @inputNumber-disabled-color;
|
|
112
|
+
background-color: @inputNumber-disabled-bg-color;
|
|
113
|
+
border-color: @inputNumber-disabled-border-color;
|
|
114
114
|
cursor: initial;
|
|
115
115
|
|
|
116
116
|
.ant-input-number-input-wrap .ant-input-number-input {
|
|
@@ -120,61 +120,61 @@
|
|
|
120
120
|
|
|
121
121
|
&:hover:not(.ald-inputNumber-disabled),
|
|
122
122
|
&-focused {
|
|
123
|
-
background-color: @
|
|
124
|
-
border-color: @
|
|
125
|
-
box-shadow: 0 0 0 0.5px @
|
|
123
|
+
background-color: @inputNumber-active-bg-color;
|
|
124
|
+
border-color: @inputNumber-active-border-color;
|
|
125
|
+
box-shadow: 0 0 0 0.5px @inputNumber-active-border-color;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
&.ant-input-number-group-wrapper {
|
|
130
|
-
// height: @
|
|
130
|
+
// height: @inputNumber-height-middle;
|
|
131
131
|
// overflow: hidden;
|
|
132
|
-
color: @
|
|
133
|
-
// background-color: @
|
|
134
|
-
border-color: @
|
|
132
|
+
color: @inputNumber-color;
|
|
133
|
+
// background-color: @inputNumber-wrapper-bg-color;
|
|
134
|
+
border-color: @inputNumber-border-color;
|
|
135
135
|
box-shadow: none;
|
|
136
136
|
|
|
137
137
|
&.ald-inputNumber-large {
|
|
138
|
-
font-size: @
|
|
139
|
-
border-radius: @
|
|
138
|
+
font-size: @inputNumber-font-size-large;
|
|
139
|
+
border-radius: @inputNumber-border-radius-large;
|
|
140
140
|
|
|
141
141
|
.ant-input-number-group-addon {
|
|
142
142
|
&:first-child {
|
|
143
|
-
border-radius: @
|
|
143
|
+
border-radius: @inputNumber-border-radius-large 0 0 @inputNumber-border-radius-large;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&:last-child {
|
|
147
|
-
border-radius: 0 @
|
|
147
|
+
border-radius: 0 @inputNumber-border-radius-large @inputNumber-border-radius-large 0;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
&.ald-inputNumber-middle {
|
|
153
|
-
font-size: @
|
|
154
|
-
border-radius: @
|
|
153
|
+
font-size: @inputNumber-font-size-middle;
|
|
154
|
+
border-radius: @inputNumber-border-radius-middle;
|
|
155
155
|
|
|
156
156
|
.ant-input-number-group-addon {
|
|
157
157
|
&:first-child {
|
|
158
|
-
border-radius: @
|
|
158
|
+
border-radius: @inputNumber-border-radius-middle 0 0 @inputNumber-border-radius-middle;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&:last-child {
|
|
162
|
-
border-radius: 0 @
|
|
162
|
+
border-radius: 0 @inputNumber-border-radius-middle @inputNumber-border-radius-middle 0;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
&.ald-inputNumber-small {
|
|
168
|
-
font-size: @
|
|
169
|
-
border-radius: @
|
|
168
|
+
font-size: @inputNumber-font-size-small;
|
|
169
|
+
border-radius: @inputNumber-border-radius-small;
|
|
170
170
|
|
|
171
171
|
.ant-input-number-group-addon {
|
|
172
172
|
&:first-child {
|
|
173
|
-
border-radius: @
|
|
173
|
+
border-radius: @inputNumber-border-radius-small 0 0 @inputNumber-border-radius-small;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
&:last-child {
|
|
177
|
-
border-radius: 0 @
|
|
177
|
+
border-radius: 0 @inputNumber-border-radius-small @inputNumber-border-radius-small 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
|
|
187
187
|
.ant-input-number-group-addon {
|
|
188
188
|
// overflow: hidden;
|
|
189
|
-
color: @
|
|
189
|
+
color: @inputNumber-addon-color;
|
|
190
190
|
font-size: inherit;
|
|
191
|
-
background-color: @
|
|
192
|
-
// border-radius: @
|
|
193
|
-
border-color: @
|
|
191
|
+
background-color: @inputNumber-addon-bg-color;
|
|
192
|
+
// border-radius: @inputNumber-border-radius-middle;
|
|
193
|
+
border-color: @inputNumber-addon-border-color;
|
|
194
194
|
|
|
195
195
|
&:first-child {
|
|
196
196
|
border-top-right-radius: 0;
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
|
|
218
218
|
&.ald-inputNumber-disabled {
|
|
219
219
|
.ant-input-number-wrapper .ant-input-number-group-addon {
|
|
220
|
-
color: @
|
|
220
|
+
color: @inputNumber-addon-disable-color;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
}
|
package/lib/Modal/index.js
CHANGED
|
@@ -7,13 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.destroyFns = exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
11
|
+
|
|
12
|
+
var _CloseLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CloseLine"));
|
|
13
|
+
|
|
10
14
|
require("antd/es/modal/style");
|
|
11
15
|
|
|
12
16
|
var _modal = _interopRequireDefault(require("antd/es/modal"));
|
|
13
17
|
|
|
14
18
|
var _react = _interopRequireDefault(require("react"));
|
|
15
19
|
|
|
16
|
-
var
|
|
20
|
+
var _index2 = _interopRequireDefault(require("antd/lib/modal/useModal/index"));
|
|
17
21
|
|
|
18
22
|
var _confirm = _interopRequireWildcard(require("antd/lib/modal/confirm"));
|
|
19
23
|
|
|
@@ -21,8 +25,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
21
25
|
|
|
22
26
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
23
27
|
|
|
24
|
-
var _CloseLine = _interopRequireDefault(require("../Icon/icons/CloseLine"));
|
|
25
|
-
|
|
26
28
|
var _LocaleReceiver = _interopRequireDefault(require("../locale-provider/LocaleReceiver"));
|
|
27
29
|
|
|
28
30
|
var _locale = require("./locale");
|
|
@@ -82,18 +84,14 @@ var OriginModal = function OriginModal(props) {
|
|
|
82
84
|
footer: footer !== undefined ? footer : Footer,
|
|
83
85
|
className: (0, _classnames.default)('ald-modal', className),
|
|
84
86
|
width: width || DEFAULT_WIDTH,
|
|
85
|
-
closeIcon: closeIcon || /*#__PURE__*/_react.default.createElement(
|
|
86
|
-
size:
|
|
87
|
-
icon: /*#__PURE__*/_react.default.createElement(_CloseLine.default, {
|
|
88
|
-
fill: "currentColor",
|
|
89
|
-
size: 12
|
|
90
|
-
}),
|
|
87
|
+
closeIcon: closeIcon || /*#__PURE__*/_react.default.createElement(_CloseLine2.default, {
|
|
88
|
+
size: 16,
|
|
91
89
|
className: "ald-modal-close"
|
|
92
90
|
})
|
|
93
91
|
}), children);
|
|
94
92
|
};
|
|
95
93
|
|
|
96
|
-
OriginModal.useModal =
|
|
94
|
+
OriginModal.useModal = _index2.default;
|
|
97
95
|
var Modal = OriginModal;
|
|
98
96
|
|
|
99
97
|
Modal.info = function infoFn(props) {
|