@aloudata/aloudata-design 0.4.8 → 0.4.9
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/dist/Button/index.js +5 -5
- package/dist/Button/style/index.less +48 -44
- package/dist/Button/style/variables.less +13 -13
- package/dist/Checkbox/style/index.less +34 -13
- package/dist/DoubleCircleIcon/index.d.ts +1 -0
- package/dist/DoubleCircleIcon/index.js +5 -2
- package/dist/DoubleCircleIcon/style/index.less +33 -1
- package/dist/Dropdown/style/index.less +15 -10
- package/dist/Empty/image/SearchSmall.js +5 -0
- package/dist/Empty/style/index.less +11 -0
- package/dist/Icon/icons.js +32 -0
- package/dist/Input/style/index.less +64 -42
- package/dist/InputNumber/style/index.less +9 -4
- package/dist/Menu/style/index.less +78 -2
- package/dist/Modal/index.d.ts +4 -1
- package/dist/Modal/index.js +178 -67
- package/dist/Modal/style/index.less +48 -7
- package/dist/Radio/components/Group/index.js +11 -6
- package/dist/Radio/components/Radio/index.js +13 -6
- package/dist/Radio/interface/radioGroup.d.ts +6 -1
- package/dist/Radio/style/index.less +220 -53
- package/dist/Select/components/MultipleOption.d.ts +1 -0
- package/dist/Select/components/MultipleOption.js +7 -3
- package/dist/Select/components/SingleOption.d.ts +1 -0
- package/dist/Select/components/SingleOption.js +6 -2
- package/dist/Select/index.js +74 -13
- package/dist/Select/style/index.less +8 -3
- package/dist/Select/style/multiple.less +13 -2
- package/dist/Select/style/single.less +12 -1
- package/dist/Select/style/status.less +1 -1
- package/dist/Table/style/index.less +14 -8
- package/dist/Tabs/index.d.ts +15 -0
- package/dist/Tabs/index.js +46 -6
- package/dist/Tabs/style/index.less +42 -1
- package/dist/Tooltip/style/index.less +7 -1
- package/dist/notification/demo/index.js +24 -7
- package/dist/notification/index.d.ts +9 -1
- package/dist/notification/index.js +148 -1
- package/dist/notification/style/index.less +28 -0
- package/dist/style/themes/default/index.less +25 -25
- package/dist/style/themes/default/themeColor.module.less +9 -9
- package/package.json +4 -4
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
@input-height-large: 36px;
|
|
10
10
|
@input-padding-large: 5px 13px;
|
|
11
11
|
@input-font-size-large: 16px;
|
|
12
|
-
@input-border-radius-large:
|
|
12
|
+
@input-border-radius-large: 6px;
|
|
13
13
|
@input-prefix-margin-right-large: 8px;
|
|
14
14
|
@input-clear-icon-large: 20px;
|
|
15
15
|
// size===middle
|
|
16
16
|
@input-height-middle: 32px;
|
|
17
17
|
@input-padding-middle: 5px 11px;
|
|
18
18
|
@input-font-size-middle: 14px;
|
|
19
|
-
@input-border-radius-middle:
|
|
19
|
+
@input-border-radius-middle: 4px;
|
|
20
20
|
@input-prefix-margin-right-middle: 8px;
|
|
21
21
|
@input-clear-icon-middle: 16px;
|
|
22
22
|
// size===small
|
|
23
23
|
@input-height-small: 28px;
|
|
24
24
|
@input-padding-small: 5px 9px;
|
|
25
25
|
@input-font-size-small: 12px;
|
|
26
|
-
@input-border-radius-small:
|
|
26
|
+
@input-border-radius-small: 4px;
|
|
27
27
|
@input-prefix-margin-right-small: 4px;
|
|
28
28
|
@input-clear-icon-small: 14px;
|
|
29
29
|
//custom status
|
|
@@ -34,20 +34,21 @@
|
|
|
34
34
|
@input-bg-color: @BG100;
|
|
35
35
|
// active status
|
|
36
36
|
@input-active-border-color: @B40;
|
|
37
|
-
@input-box-shadow-active: @shadow-xs;
|
|
37
|
+
// @input-box-shadow-active: @shadow-xs;
|
|
38
38
|
// disabled status
|
|
39
39
|
@input-disabled-border-color: @BG60;
|
|
40
40
|
@input-disabled-bg-color: @BG90;
|
|
41
41
|
@input-disabled-font-color: @NL40;
|
|
42
42
|
|
|
43
43
|
.ant-input.ald-input,
|
|
44
|
+
.ant-input-affix-wrapper.ald-input,
|
|
44
45
|
.ald-input .ant-input {
|
|
45
46
|
color: @NL0;
|
|
46
47
|
font-weight: 400;
|
|
47
48
|
background-color: @input-bg-color;
|
|
48
49
|
border-color: @input-border-color;
|
|
49
50
|
border-radius: @input-border-radius-middle;
|
|
50
|
-
box-shadow: @shadow-xs;
|
|
51
|
+
// box-shadow: @shadow-xs;
|
|
51
52
|
caret-color: @B60;
|
|
52
53
|
|
|
53
54
|
&::placeholder {
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
&:hover,
|
|
68
69
|
&-focused {
|
|
69
70
|
border-color: @input-active-border-color;
|
|
70
|
-
box-shadow: @input-box-shadow-active;
|
|
71
|
+
// box-shadow: @input-box-shadow-active;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
&[disabled].ald-input {
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
&:focus,
|
|
113
114
|
&-focused {
|
|
114
115
|
border-color: @input-active-border-color;
|
|
115
|
-
box-shadow: @input-box-shadow-active;
|
|
116
|
+
// box-shadow: @input-box-shadow-active;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.ant-input {
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.ant-input-prefix {
|
|
140
|
-
color: @
|
|
141
|
+
color: @NL40;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.ant-input-suffix {
|
|
@@ -155,12 +156,12 @@
|
|
|
155
156
|
.ant-input-affix-wrapper-focused {
|
|
156
157
|
&.ant-input-password {
|
|
157
158
|
border-color: @input-active-border-color;
|
|
158
|
-
box-shadow: @input-box-shadow-active;
|
|
159
|
+
// box-shadow: @input-box-shadow-active;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
&:hover {
|
|
162
163
|
border-color: @input-active-border-color;
|
|
163
|
-
box-shadow: @input-box-shadow-active;
|
|
164
|
+
// box-shadow: @input-box-shadow-active;
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.ant-input:hover {
|
|
@@ -222,7 +223,7 @@
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
.ald-input-group-large {
|
|
225
|
-
.ald-input {
|
|
226
|
+
&:not(.ant-input-group-compact) .ald-input {
|
|
226
227
|
height: @input-height-large;
|
|
227
228
|
padding: @input-padding-large;
|
|
228
229
|
font-size: @input-font-size-large;
|
|
@@ -236,21 +237,26 @@
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
|
|
239
|
-
&.ant-input-group-compact
|
|
240
|
-
.ald-input
|
|
241
|
-
|
|
242
|
-
border-radius: @input-border-radius-large 0 0 @input-border-radius-large;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&:last-of-type {
|
|
246
|
-
border-radius: 0 @input-border-radius-large @input-border-radius-large 0;
|
|
247
|
-
}
|
|
240
|
+
&.ant-input-group-compact{
|
|
241
|
+
.ald-input,.ald-select,.ald-btn.ant-btn{
|
|
242
|
+
border-radius: 0;
|
|
248
243
|
}
|
|
249
244
|
}
|
|
245
|
+
|
|
246
|
+
&.ant-input-group-compact>*:first-child{
|
|
247
|
+
border-start-start-radius: @input-border-radius-large !important;
|
|
248
|
+
border-end-start-radius: @input-border-radius-large !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&.ant-input-group-compact>*:last-child{
|
|
252
|
+
border-inline-end-width: 1px;
|
|
253
|
+
border-start-end-radius: @input-border-radius-large !important;
|
|
254
|
+
border-end-end-radius: @input-border-radius-large !important;
|
|
255
|
+
}
|
|
250
256
|
}
|
|
251
257
|
|
|
252
258
|
.ald-input-group-middle {
|
|
253
|
-
.ald-input {
|
|
259
|
+
&:not(.ant-input-group-compact) .ald-input {
|
|
254
260
|
height: @input-height-middle;
|
|
255
261
|
padding: @input-padding-middle;
|
|
256
262
|
font-size: @input-font-size-middle;
|
|
@@ -265,21 +271,26 @@
|
|
|
265
271
|
}
|
|
266
272
|
}
|
|
267
273
|
|
|
268
|
-
&.ant-input-group-compact
|
|
269
|
-
.ald-input
|
|
270
|
-
|
|
271
|
-
border-radius: @input-border-radius-middle 0 0 @input-border-radius-middle;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&:last-of-type {
|
|
275
|
-
border-radius: 0 @input-border-radius-middle @input-border-radius-middle 0;
|
|
276
|
-
}
|
|
274
|
+
&.ant-input-group-compact{
|
|
275
|
+
.ald-input,.ald-select,.ald-btn.ant-btn{
|
|
276
|
+
border-radius: 0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
+
|
|
280
|
+
&.ant-input-group-compact>*:first-child{
|
|
281
|
+
border-start-start-radius: @input-border-radius-middle !important;
|
|
282
|
+
border-end-start-radius: @input-border-radius-middle !important;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&.ant-input-group-compact>*:last-child{
|
|
286
|
+
border-inline-end-width: 1px;
|
|
287
|
+
border-start-end-radius: @input-border-radius-middle !important;
|
|
288
|
+
border-end-end-radius: @input-border-radius-middle !important;
|
|
289
|
+
}
|
|
279
290
|
}
|
|
280
291
|
|
|
281
292
|
.ald-input-group-small {
|
|
282
|
-
.ald-input {
|
|
293
|
+
&:not(.ant-input-group-compact) .ald-input {
|
|
283
294
|
height: @input-height-small;
|
|
284
295
|
padding: @input-padding-small;
|
|
285
296
|
font-size: @input-font-size-small;
|
|
@@ -294,17 +305,22 @@
|
|
|
294
305
|
}
|
|
295
306
|
}
|
|
296
307
|
|
|
297
|
-
&.ant-input-group-compact
|
|
298
|
-
.ald-input
|
|
299
|
-
|
|
300
|
-
border-radius: @input-border-radius-small 0 0 @input-border-radius-small;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
&:last-of-type {
|
|
304
|
-
border-radius: 0 @input-border-radius-small @input-border-radius-small 0;
|
|
305
|
-
}
|
|
308
|
+
&.ant-input-group-compact{
|
|
309
|
+
.ald-input,.ald-select,.ald-btn.ant-btn{
|
|
310
|
+
border-radius: 0;
|
|
306
311
|
}
|
|
307
312
|
}
|
|
313
|
+
|
|
314
|
+
&.ant-input-group-compact>*:first-child{
|
|
315
|
+
border-start-start-radius: @input-border-radius-small !important;
|
|
316
|
+
border-end-start-radius: @input-border-radius-small !important;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&.ant-input-group-compact>*:last-child{
|
|
320
|
+
border-inline-end-width: 1px;
|
|
321
|
+
border-start-end-radius: @input-border-radius-small !important;
|
|
322
|
+
border-end-end-radius: @input-border-radius-small !important;
|
|
323
|
+
}
|
|
308
324
|
}
|
|
309
325
|
|
|
310
326
|
.ald-textarea-large {
|
|
@@ -346,13 +362,14 @@ textarea.ald-input-textarea-small,
|
|
|
346
362
|
textarea.ald-input-textarea,
|
|
347
363
|
.ald-input-textarea .ant-input {
|
|
348
364
|
color: @NL0;
|
|
349
|
-
background: @
|
|
365
|
+
background: @input-bg-color;
|
|
350
366
|
caret-color: @B60;
|
|
367
|
+
border-color: @input-border-color;
|
|
351
368
|
|
|
352
369
|
&:hover,
|
|
353
370
|
&:active,
|
|
354
371
|
&:focus {
|
|
355
|
-
border-color: @
|
|
372
|
+
border-color: @B40;
|
|
356
373
|
box-shadow: none;
|
|
357
374
|
}
|
|
358
375
|
|
|
@@ -381,6 +398,11 @@ textarea.ald-input-textarea,
|
|
|
381
398
|
}
|
|
382
399
|
|
|
383
400
|
.ant-input-group-wrapper {
|
|
401
|
+
.ant-input-group-addon{
|
|
402
|
+
color:@NL40;
|
|
403
|
+
border-color: @input-border-color;
|
|
404
|
+
}
|
|
405
|
+
|
|
384
406
|
&.ald-input-large {
|
|
385
407
|
.ant-input-group-addon {
|
|
386
408
|
padding: 4px 14px;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
@inputNumber-height-large: 36px;
|
|
5
5
|
@inputNumber-font-size-large: 16px;
|
|
6
|
-
@inputNumber-border-radius-large:
|
|
6
|
+
@inputNumber-border-radius-large: 6px;
|
|
7
7
|
@inputNumber-padding-large: 0 14px;
|
|
8
8
|
|
|
9
9
|
@inputNumber-height-middle: 32px;
|
|
10
10
|
@inputNumber-font-size-middle: 14px;
|
|
11
|
-
@inputNumber-border-radius-middle:
|
|
11
|
+
@inputNumber-border-radius-middle: 4px;
|
|
12
12
|
@inputNumber-padding-middle: 0 12px;
|
|
13
13
|
|
|
14
14
|
@inputNumber-height-small: 28px;
|
|
15
15
|
@inputNumber-font-size-small: 12px;
|
|
16
|
-
@inputNumber-border-radius-small:
|
|
16
|
+
@inputNumber-border-radius-small: 4px;
|
|
17
17
|
@inputNumber-padding-small: 0 10px;
|
|
18
18
|
|
|
19
19
|
//默认
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
&.ald-inputNumber-large {
|
|
103
103
|
height: @inputNumber-height-large;
|
|
104
104
|
font-size: @inputNumber-font-size-large;
|
|
105
|
+
border-radius: @inputNumber-border-radius-large ;
|
|
105
106
|
|
|
106
107
|
.ant-input-number-input {
|
|
107
108
|
padding: @inputNumber-padding-large;
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
&.ald-inputNumber-middle {
|
|
116
117
|
height: @inputNumber-height-middle;
|
|
117
118
|
font-size: @inputNumber-font-size-middle;
|
|
119
|
+
border-radius: @inputNumber-border-radius-middle ;
|
|
118
120
|
|
|
119
121
|
.ant-input-number-input {
|
|
120
122
|
padding: @inputNumber-padding-middle;
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
&.ald-inputNumber-small {
|
|
129
131
|
height: @inputNumber-height-small;
|
|
130
132
|
font-size: @inputNumber-font-size-small;
|
|
133
|
+
border-radius: @inputNumber-border-radius-small;
|
|
131
134
|
|
|
132
135
|
.ant-input-number-input {
|
|
133
136
|
padding: @inputNumber-padding-small;
|
|
@@ -143,9 +146,11 @@
|
|
|
143
146
|
background-color: @inputNumber-disabled-bg-color;
|
|
144
147
|
border-color: @inputNumber-disabled-border-color;
|
|
145
148
|
cursor: initial;
|
|
146
|
-
|
|
149
|
+
|
|
147
150
|
.ant-input-number-input-wrap .ant-input-number-input {
|
|
148
151
|
cursor: initial;
|
|
152
|
+
color: @inputNumber-disabled-color;
|
|
153
|
+
background-color: @inputNumber-disabled-bg-color;
|
|
149
154
|
}
|
|
150
155
|
}
|
|
151
156
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@import '../../Icon/index.less';
|
|
3
3
|
@import './dropdown.less';
|
|
4
4
|
|
|
5
|
-
.ald-menu.ant-menu {
|
|
5
|
+
.ant-menu-light.ald-menu.ant-menu {
|
|
6
6
|
&.ant-menu-root.ant-menu-vertical {
|
|
7
7
|
border: none;
|
|
8
8
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
transition: none;
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
background-color: @BG90
|
|
26
|
+
background-color: @BG90;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:active {
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
&:hover{
|
|
53
53
|
background: none;
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
.ant-menu-submenu-expand-icon{
|
|
57
|
+
inset-inline-end:0;
|
|
58
|
+
width:initial;
|
|
59
|
+
}
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
|
|
@@ -68,3 +73,74 @@
|
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
}
|
|
76
|
+
|
|
77
|
+
.ant-menu-submenu.ant-menu-submenu-popup.ant-menu{
|
|
78
|
+
.ant-menu-vertical {
|
|
79
|
+
border: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-menu-item,
|
|
83
|
+
.ant-menu-submenu,
|
|
84
|
+
.ant-menu-item-selected {
|
|
85
|
+
margin: 0;
|
|
86
|
+
height: initial;
|
|
87
|
+
padding: 6px 12px;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
font-size: 13px;
|
|
90
|
+
width: 100%;
|
|
91
|
+
border-radius: 0;
|
|
92
|
+
border: none;
|
|
93
|
+
background-color: @BG100;
|
|
94
|
+
color: @NL0;
|
|
95
|
+
transition: none;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background-color: @BG90 !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:active {
|
|
102
|
+
background-color: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:not(.ant-menu-item-selected):active {
|
|
106
|
+
background-color: @BG90;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.ant-menu-item-disabled {
|
|
110
|
+
color: @NL50 !important;
|
|
111
|
+
transition: none;
|
|
112
|
+
background-color: @BG100 !important;
|
|
113
|
+
cursor: default;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ant-menu-submenu-title {
|
|
117
|
+
line-height: 20px;
|
|
118
|
+
font-size: 13px;
|
|
119
|
+
width: 100%;
|
|
120
|
+
padding:0;
|
|
121
|
+
height: initial;
|
|
122
|
+
margin:0;
|
|
123
|
+
|
|
124
|
+
&:hover{
|
|
125
|
+
background: none;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ant-menu.ant-menu-sub{
|
|
131
|
+
padding:4px 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ant-menu-title-content{
|
|
135
|
+
line-height: 20px;
|
|
136
|
+
font-size: 13px;
|
|
137
|
+
width: 100%;
|
|
138
|
+
padding:0;
|
|
139
|
+
height: initial;
|
|
140
|
+
margin:0;
|
|
141
|
+
|
|
142
|
+
&:hover{
|
|
143
|
+
background: none;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -16,11 +16,14 @@ export interface ModalProps extends Omit<AntdModalProps, 'okButtonProps' | 'canc
|
|
|
16
16
|
cancelButtonProps?: IButtonProps;
|
|
17
17
|
okButtonProps?: IButtonProps;
|
|
18
18
|
okType?: ButtonType;
|
|
19
|
+
paddingLess?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType'> {
|
|
21
|
+
export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType' | 'icon'> {
|
|
21
22
|
cancelButtonProps?: IButtonProps;
|
|
22
23
|
okButtonProps?: IButtonProps;
|
|
23
24
|
okType?: ButtonType;
|
|
25
|
+
subTitle?: React.ReactNode;
|
|
26
|
+
icon?: React.ReactElement;
|
|
24
27
|
}
|
|
25
28
|
declare const OriginModal: IModalInterface;
|
|
26
29
|
export declare type ModalFunc = (props: ModalFuncProps) => {
|