@kdcloudjs/kdesign 1.1.2 → 1.2.1
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/CHANGELOG.md +61 -0
- package/dist/kdesign-complete.less +1125 -926
- package/dist/kdesign.css +485 -432
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +516 -251
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +37 -16
- package/es/anchor/anchor.js +0 -6
- package/es/anchor/style/index.css +5 -2
- package/es/anchor/style/index.less +6 -2
- package/es/anchor/style/token.less +2 -1
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +2 -2
- package/es/button/group.d.ts +21 -0
- package/es/button/group.js +130 -0
- package/es/button/index.d.ts +5 -1
- package/es/button/index.js +4 -1
- package/es/button/style/index.css +117 -21
- package/es/button/style/index.less +332 -192
- package/es/button/style/token.less +41 -25
- package/es/carousel/carousel.js +4 -0
- package/es/checkbox/checkbox.js +3 -4
- package/es/checkbox/style/index.css +36 -33
- package/es/checkbox/style/index.less +25 -18
- package/es/checkbox/style/token.less +34 -35
- package/es/collapse/panel.d.ts +1 -0
- package/es/collapse/panel.js +17 -5
- package/es/collapse/style/index.css +32 -6
- package/es/collapse/style/index.less +24 -1
- package/es/collapse/style/token.less +12 -10
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +4 -0
- package/es/drawer/drawer.d.ts +1 -0
- package/es/drawer/drawer.js +56 -21
- package/es/empty/defaultEmptyImg.js +5 -3
- package/es/empty/illustrationEmptyImg.js +6 -4
- package/es/icon/interface.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/style/index.css +8 -8
- package/es/image/style/index.less +5 -5
- package/es/image/style/token.less +12 -25
- package/es/input/style/index.css +53 -50
- package/es/input/style/index.less +5 -4
- package/es/input/style/mixin.less +1 -0
- package/es/input/style/token.less +23 -20
- package/es/layout/style/index.css +1 -1
- package/es/layout/style/index.less +1 -1
- package/es/layout/style/token.less +5 -5
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.css +37 -31
- package/es/menu/style/index.less +14 -0
- package/es/menu/style/mixin.less +1 -1
- package/es/menu/style/token.less +13 -16
- package/es/pagination/pagination.js +4 -4
- package/es/pagination/style/index.css +70 -55
- package/es/pagination/style/index.less +61 -43
- package/es/pagination/style/token.less +4 -4
- package/es/radio/radio.js +23 -8
- package/es/radio/style/index.css +46 -18
- package/es/radio/style/index.less +27 -1
- package/es/radio/style/token.less +4 -4
- package/es/rate/style/index.css +9 -9
- package/es/rate/style/token.less +6 -6
- package/es/select/option.js +1 -1
- package/es/select/style/index.css +14 -5
- package/es/select/style/index.less +374 -368
- package/es/select/style/token.less +2 -2
- package/es/stepper/style/index.css +1 -1
- package/es/stepper/style/token.less +1 -1
- package/es/steps/style/index.css +40 -32
- package/es/steps/style/index.less +23 -33
- package/es/steps/style/token.less +6 -9
- package/es/style/icon/kdicon.css +225 -0
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/index.css +11 -11
- package/es/switch/style/index.less +2 -2
- package/es/switch/style/token.less +7 -10
- package/es/tag/style/index.css +2 -147
- package/es/tag/style/index.less +4 -24
- package/es/tag/style/mixin.less +0 -13
- package/es/tag/style/token.less +1 -1
- package/lib/_utils/usePopper.js +38 -16
- package/lib/anchor/anchor.js +0 -6
- package/lib/anchor/style/index.css +5 -2
- package/lib/anchor/style/index.less +6 -2
- package/lib/anchor/style/token.less +2 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +2 -2
- package/lib/button/group.d.ts +21 -0
- package/lib/button/group.js +166 -0
- package/lib/button/index.d.ts +5 -1
- package/lib/button/index.js +5 -1
- package/lib/button/style/index.css +117 -21
- package/lib/button/style/index.less +332 -192
- package/lib/button/style/token.less +41 -25
- package/lib/carousel/carousel.js +4 -0
- package/lib/checkbox/checkbox.js +3 -4
- package/lib/checkbox/style/index.css +36 -33
- package/lib/checkbox/style/index.less +25 -18
- package/lib/checkbox/style/token.less +34 -35
- package/lib/collapse/panel.d.ts +1 -0
- package/lib/collapse/panel.js +17 -5
- package/lib/collapse/style/index.css +32 -6
- package/lib/collapse/style/index.less +24 -1
- package/lib/collapse/style/token.less +12 -10
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +4 -0
- package/lib/drawer/drawer.d.ts +1 -0
- package/lib/drawer/drawer.js +61 -27
- package/lib/empty/defaultEmptyImg.js +6 -3
- package/lib/empty/illustrationEmptyImg.js +7 -4
- package/lib/icon/interface.js +1 -1
- package/lib/image/preview.js +1 -1
- package/lib/image/style/index.css +8 -8
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/token.less +12 -25
- package/lib/input/style/index.css +53 -50
- package/lib/input/style/index.less +5 -4
- package/lib/input/style/mixin.less +1 -0
- package/lib/input/style/token.less +23 -20
- package/lib/layout/style/index.css +1 -1
- package/lib/layout/style/index.less +1 -1
- package/lib/layout/style/token.less +5 -5
- package/lib/menu/menu.js +1 -1
- package/lib/menu/style/index.css +37 -31
- package/lib/menu/style/index.less +14 -0
- package/lib/menu/style/mixin.less +1 -1
- package/lib/menu/style/token.less +13 -16
- package/lib/pagination/pagination.js +4 -3
- package/lib/pagination/style/index.css +70 -55
- package/lib/pagination/style/index.less +61 -43
- package/lib/pagination/style/token.less +4 -4
- package/lib/radio/radio.js +23 -8
- package/lib/radio/style/index.css +46 -18
- package/lib/radio/style/index.less +27 -1
- package/lib/radio/style/token.less +4 -4
- package/lib/rate/style/index.css +9 -9
- package/lib/rate/style/token.less +6 -6
- package/lib/select/option.js +1 -1
- package/lib/select/style/index.css +14 -5
- package/lib/select/style/index.less +374 -368
- package/lib/select/style/token.less +2 -2
- package/lib/stepper/style/index.css +1 -1
- package/lib/stepper/style/token.less +1 -1
- package/lib/steps/style/index.css +40 -32
- package/lib/steps/style/index.less +23 -33
- package/lib/steps/style/token.less +6 -9
- package/lib/style/icon/kdicon.css +225 -0
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/index.css +11 -11
- package/lib/switch/style/index.less +2 -2
- package/lib/switch/style/token.less +7 -10
- package/lib/tag/style/index.css +2 -147
- package/lib/tag/style/index.less +4 -24
- package/lib/tag/style/mixin.less +0 -13
- package/lib/tag/style/token.less +1 -1
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
display: inline-block;
|
|
108
108
|
-webkit-box-sizing: border-box;
|
|
109
109
|
box-sizing: border-box;
|
|
110
|
-
background-color: var(--kd-c-switch-color-off, #
|
|
110
|
+
background-color: var(--kd-c-switch-color-off, #B2B2B2);
|
|
111
111
|
cursor: pointer;
|
|
112
112
|
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
113
113
|
transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
vertical-align: baseline;
|
|
156
156
|
}
|
|
157
157
|
.kd-switch-disabled {
|
|
158
|
-
background-color: var(--kd-c-switch-color-background-disabled,
|
|
158
|
+
background-color: var(--kd-c-switch-color-off-background-disabled, #D9D9D9);
|
|
159
159
|
cursor: not-allowed;
|
|
160
160
|
}
|
|
161
161
|
.kd-switch-checked {
|
|
162
|
-
background-color: var(--kd-c-switch-color-on, var(--kd-g-color-theme, #5582f3));
|
|
162
|
+
background-color: var(--kd-c-switch-color-on, var(--kd-g-color-theme-6, #5582f3));
|
|
163
163
|
text-align: right;
|
|
164
164
|
}
|
|
165
165
|
.kd-switch-checked::after {
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
color: var(--kd-c-switch-color-loading, var(--kd-g-color-ongoing, #276ff5));
|
|
175
175
|
}
|
|
176
176
|
.kd-switch-checked.kd-switch-disabled {
|
|
177
|
-
|
|
177
|
+
background-color: var(--kd-c-switch-color-on-background-disabled, var(--kd-g-color-theme-4, #b5cfff));
|
|
178
178
|
}
|
|
179
179
|
.kd-switch-checked .kd-switch-inner {
|
|
180
180
|
margin: var(--kd-c-switch-inner-spacing-margin-checked, 0 17px 0 5px);
|
|
@@ -183,19 +183,19 @@
|
|
|
183
183
|
margin: var(--kd-c-switch-inner-spacing-margin-large-checked, 0 21px 0 5px);
|
|
184
184
|
}
|
|
185
185
|
.kd-switch-size-small {
|
|
186
|
-
height: var(--kd-c-switch-small-sizing-height,
|
|
187
|
-
min-width: var(--kd-c-switch-small-sizing-width,
|
|
186
|
+
height: var(--kd-c-switch-small-sizing-height, 16px);
|
|
187
|
+
min-width: var(--kd-c-switch-small-sizing-width, 32px);
|
|
188
188
|
line-height: var(--kd-c-switch-small-line-height, 14px);
|
|
189
189
|
font-size: var(--kd-c-switch-small-font-size, var(--kd-g-font-size-small, 12px));
|
|
190
|
-
border-radius: var(--kd-c-switch-small-radius-border,
|
|
190
|
+
border-radius: var(--kd-c-switch-small-radius-border, 8px);
|
|
191
191
|
}
|
|
192
192
|
.kd-switch-size-small::after {
|
|
193
|
-
width: calc(var(--kd-c-switch-small-sizing-height,
|
|
194
|
-
height: calc(var(--kd-c-switch-small-sizing-height,
|
|
193
|
+
width: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
194
|
+
height: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
195
195
|
}
|
|
196
196
|
.kd-switch-size-small .kd-switch-loading-icon {
|
|
197
|
-
width: calc(var(--kd-c-switch-small-sizing-height,
|
|
198
|
-
height: calc(var(--kd-c-switch-small-sizing-height,
|
|
197
|
+
width: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
198
|
+
height: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
199
199
|
}
|
|
200
200
|
.kd-switch-size-large {
|
|
201
201
|
height: var(--kd-c-switch-large-sizing-height, 20px);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&-disabled {
|
|
35
|
-
background-color: @switch-disabled-bg;
|
|
35
|
+
background-color: @switch-off-disabled-bg;
|
|
36
36
|
cursor: not-allowed;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&.@{switch-prefix-cls}-disabled {
|
|
56
|
-
|
|
56
|
+
background-color: @switch-on-disabled-bg;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.@{switch-prefix-cls}-inner {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@switch-prefix: '--@{kd-prefix}-c-switch';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// color
|
|
7
|
-
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme);
|
|
8
|
-
@switch-off-color: var(~'@{switch-prefix}-color-off', #
|
|
9
|
-
@switch-disabled-bg: var(~'@{switch-prefix}-color-background-disabled', @color-
|
|
6
|
+
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme-6);
|
|
7
|
+
@switch-off-color: var(~'@{switch-prefix}-color-off', #B2B2B2);
|
|
8
|
+
@switch-on-disabled-bg: var(~'@{switch-prefix}-color-on-background-disabled', @color-theme-4);
|
|
9
|
+
@switch-off-disabled-bg: var(~'@{switch-prefix}-color-off-background-disabled', #D9D9D9);
|
|
10
10
|
@switch-loading-color: var(~'@{switch-prefix}-color-loading', @color-ongoing);
|
|
11
11
|
@switch-font-color: var(~'@{switch-prefix}-color-font', @color-white);
|
|
12
12
|
|
|
@@ -15,19 +15,16 @@
|
|
|
15
15
|
@switch-large-font-size: var(~'@{switch-prefix}-large-font-size', @font-size-small);
|
|
16
16
|
@switch-inner-small-font-size: var(~'@{switch-prefix}-inner-font-size-small', @font-size-small);
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
// line-height
|
|
20
19
|
@switch-large-line-height: var(~'@{switch-prefix}-large-line-height', 20px);
|
|
21
20
|
@switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 14px);
|
|
22
21
|
|
|
23
|
-
|
|
24
22
|
//radius
|
|
25
|
-
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border',
|
|
26
|
-
|
|
23
|
+
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 8px);
|
|
27
24
|
|
|
28
25
|
// sizing
|
|
29
|
-
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height',
|
|
30
|
-
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width',
|
|
26
|
+
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height', 16px);
|
|
27
|
+
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 32px);
|
|
31
28
|
@switch-large-height: var(~'@{switch-prefix}-large-sizing-height', 20px);
|
|
32
29
|
@switch-large-min-width: var(~'@{switch-prefix}-large-sizing-width', 40px);
|
|
33
30
|
@switch-large-border-radius: var(~'@{switch-prefix}-large-sizing-border-radius', 10px);
|
package/lib/tag/style/index.css
CHANGED
|
@@ -245,32 +245,6 @@
|
|
|
245
245
|
padding: 0;
|
|
246
246
|
border-radius: 0;
|
|
247
247
|
}
|
|
248
|
-
.kd-tag-shape-text::before {
|
|
249
|
-
content: '';
|
|
250
|
-
display: block;
|
|
251
|
-
background-color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
252
|
-
border-radius: 50%;
|
|
253
|
-
}
|
|
254
|
-
.kd-tag-shape-text::before {
|
|
255
|
-
width: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
256
|
-
height: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
257
|
-
margin-right: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
258
|
-
}
|
|
259
|
-
.kd-tag-shape-text.kd-tag-size-small::before {
|
|
260
|
-
width: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
261
|
-
height: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
262
|
-
margin-right: var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
|
|
263
|
-
}
|
|
264
|
-
.kd-tag-shape-text.kd-tag-size-middle::before {
|
|
265
|
-
width: var(--kd-c-tag-spacing-padding-horizontal-middle, 7px);
|
|
266
|
-
height: var(--kd-c-tag-spacing-padding-horizontal-middle, 7px);
|
|
267
|
-
margin-right: var(--kd-c-tag-spacing-padding-horizontal-middle, 7px);
|
|
268
|
-
}
|
|
269
|
-
.kd-tag-shape-text.kd-tag-size-large::before {
|
|
270
|
-
width: var(--kd-c-tag-spacing-padding-horizontal-large, 8px);
|
|
271
|
-
height: var(--kd-c-tag-spacing-padding-horizontal-large, 8px);
|
|
272
|
-
margin-right: var(--kd-c-tag-spacing-padding-horizontal-large, 8px);
|
|
273
|
-
}
|
|
274
248
|
.kd-tag-shape-text.kd-tag-process {
|
|
275
249
|
color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
276
250
|
display: -webkit-inline-box;
|
|
@@ -282,12 +256,6 @@
|
|
|
282
256
|
padding: 0;
|
|
283
257
|
border-radius: 0;
|
|
284
258
|
}
|
|
285
|
-
.kd-tag-shape-text.kd-tag-process::before {
|
|
286
|
-
content: '';
|
|
287
|
-
display: block;
|
|
288
|
-
background-color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
289
|
-
border-radius: 50%;
|
|
290
|
-
}
|
|
291
259
|
.kd-tag-shape-text.kd-tag-process.kd-tag-size-middle {
|
|
292
260
|
color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
293
261
|
display: -webkit-inline-box;
|
|
@@ -299,12 +267,6 @@
|
|
|
299
267
|
padding: 0;
|
|
300
268
|
border-radius: 0;
|
|
301
269
|
}
|
|
302
|
-
.kd-tag-shape-text.kd-tag-process.kd-tag-size-middle::before {
|
|
303
|
-
content: '';
|
|
304
|
-
display: block;
|
|
305
|
-
background-color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
306
|
-
border-radius: 50%;
|
|
307
|
-
}
|
|
308
270
|
.kd-tag-shape-text.kd-tag-process.kd-tag-size-large {
|
|
309
271
|
color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
310
272
|
display: -webkit-inline-box;
|
|
@@ -316,12 +278,6 @@
|
|
|
316
278
|
padding: 0;
|
|
317
279
|
border-radius: 0;
|
|
318
280
|
}
|
|
319
|
-
.kd-tag-shape-text.kd-tag-process.kd-tag-size-large::before {
|
|
320
|
-
content: '';
|
|
321
|
-
display: block;
|
|
322
|
-
background-color: var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
|
|
323
|
-
border-radius: 50%;
|
|
324
|
-
}
|
|
325
281
|
.kd-tag-shape-text.kd-tag-success {
|
|
326
282
|
color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
327
283
|
display: -webkit-inline-box;
|
|
@@ -333,12 +289,6 @@
|
|
|
333
289
|
padding: 0;
|
|
334
290
|
border-radius: 0;
|
|
335
291
|
}
|
|
336
|
-
.kd-tag-shape-text.kd-tag-success::before {
|
|
337
|
-
content: '';
|
|
338
|
-
display: block;
|
|
339
|
-
background-color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
340
|
-
border-radius: 50%;
|
|
341
|
-
}
|
|
342
292
|
.kd-tag-shape-text.kd-tag-success.kd-tag-size-middle {
|
|
343
293
|
color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
344
294
|
display: -webkit-inline-box;
|
|
@@ -350,12 +300,6 @@
|
|
|
350
300
|
padding: 0;
|
|
351
301
|
border-radius: 0;
|
|
352
302
|
}
|
|
353
|
-
.kd-tag-shape-text.kd-tag-success.kd-tag-size-middle::before {
|
|
354
|
-
content: '';
|
|
355
|
-
display: block;
|
|
356
|
-
background-color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
357
|
-
border-radius: 50%;
|
|
358
|
-
}
|
|
359
303
|
.kd-tag-shape-text.kd-tag-success.kd-tag-size-large {
|
|
360
304
|
color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
361
305
|
display: -webkit-inline-box;
|
|
@@ -367,12 +311,6 @@
|
|
|
367
311
|
padding: 0;
|
|
368
312
|
border-radius: 0;
|
|
369
313
|
}
|
|
370
|
-
.kd-tag-shape-text.kd-tag-success.kd-tag-size-large::before {
|
|
371
|
-
content: '';
|
|
372
|
-
display: block;
|
|
373
|
-
background-color: var(--kd-c-tag-color-success, var(--kd-g-color-success, #1ba854));
|
|
374
|
-
border-radius: 50%;
|
|
375
|
-
}
|
|
376
314
|
.kd-tag-shape-text.kd-tag-warning {
|
|
377
315
|
color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
378
316
|
display: -webkit-inline-box;
|
|
@@ -384,12 +322,6 @@
|
|
|
384
322
|
padding: 0;
|
|
385
323
|
border-radius: 0;
|
|
386
324
|
}
|
|
387
|
-
.kd-tag-shape-text.kd-tag-warning::before {
|
|
388
|
-
content: '';
|
|
389
|
-
display: block;
|
|
390
|
-
background-color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
391
|
-
border-radius: 50%;
|
|
392
|
-
}
|
|
393
325
|
.kd-tag-shape-text.kd-tag-warning.kd-tag-size-middle {
|
|
394
326
|
color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
395
327
|
display: -webkit-inline-box;
|
|
@@ -401,12 +333,6 @@
|
|
|
401
333
|
padding: 0;
|
|
402
334
|
border-radius: 0;
|
|
403
335
|
}
|
|
404
|
-
.kd-tag-shape-text.kd-tag-warning.kd-tag-size-middle::before {
|
|
405
|
-
content: '';
|
|
406
|
-
display: block;
|
|
407
|
-
background-color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
408
|
-
border-radius: 50%;
|
|
409
|
-
}
|
|
410
336
|
.kd-tag-shape-text.kd-tag-warning.kd-tag-size-large {
|
|
411
337
|
color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
412
338
|
display: -webkit-inline-box;
|
|
@@ -418,12 +344,6 @@
|
|
|
418
344
|
padding: 0;
|
|
419
345
|
border-radius: 0;
|
|
420
346
|
}
|
|
421
|
-
.kd-tag-shape-text.kd-tag-warning.kd-tag-size-large::before {
|
|
422
|
-
content: '';
|
|
423
|
-
display: block;
|
|
424
|
-
background-color: var(--kd-c-tag-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
425
|
-
border-radius: 50%;
|
|
426
|
-
}
|
|
427
347
|
.kd-tag-shape-text.kd-tag-error {
|
|
428
348
|
color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
429
349
|
display: -webkit-inline-box;
|
|
@@ -435,12 +355,6 @@
|
|
|
435
355
|
padding: 0;
|
|
436
356
|
border-radius: 0;
|
|
437
357
|
}
|
|
438
|
-
.kd-tag-shape-text.kd-tag-error::before {
|
|
439
|
-
content: '';
|
|
440
|
-
display: block;
|
|
441
|
-
background-color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
442
|
-
border-radius: 50%;
|
|
443
|
-
}
|
|
444
358
|
.kd-tag-shape-text.kd-tag-error.kd-tag-size-middle {
|
|
445
359
|
color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
446
360
|
display: -webkit-inline-box;
|
|
@@ -452,12 +366,6 @@
|
|
|
452
366
|
padding: 0;
|
|
453
367
|
border-radius: 0;
|
|
454
368
|
}
|
|
455
|
-
.kd-tag-shape-text.kd-tag-error.kd-tag-size-middle::before {
|
|
456
|
-
content: '';
|
|
457
|
-
display: block;
|
|
458
|
-
background-color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
459
|
-
border-radius: 50%;
|
|
460
|
-
}
|
|
461
369
|
.kd-tag-shape-text.kd-tag-error.kd-tag-size-large {
|
|
462
370
|
color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
463
371
|
display: -webkit-inline-box;
|
|
@@ -469,12 +377,6 @@
|
|
|
469
377
|
padding: 0;
|
|
470
378
|
border-radius: 0;
|
|
471
379
|
}
|
|
472
|
-
.kd-tag-shape-text.kd-tag-error.kd-tag-size-large::before {
|
|
473
|
-
content: '';
|
|
474
|
-
display: block;
|
|
475
|
-
background-color: var(--kd-c-tag-color-error, var(--kd-g-color-error, #fb2323));
|
|
476
|
-
border-radius: 50%;
|
|
477
|
-
}
|
|
478
380
|
.kd-tag-shape-text.kd-tag-end {
|
|
479
381
|
color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
480
382
|
display: -webkit-inline-box;
|
|
@@ -486,12 +388,6 @@
|
|
|
486
388
|
padding: 0;
|
|
487
389
|
border-radius: 0;
|
|
488
390
|
}
|
|
489
|
-
.kd-tag-shape-text.kd-tag-end::before {
|
|
490
|
-
content: '';
|
|
491
|
-
display: block;
|
|
492
|
-
background-color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
493
|
-
border-radius: 50%;
|
|
494
|
-
}
|
|
495
391
|
.kd-tag-shape-text.kd-tag-end.kd-tag-size-middle {
|
|
496
392
|
color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
497
393
|
display: -webkit-inline-box;
|
|
@@ -503,12 +399,6 @@
|
|
|
503
399
|
padding: 0;
|
|
504
400
|
border-radius: 0;
|
|
505
401
|
}
|
|
506
|
-
.kd-tag-shape-text.kd-tag-end.kd-tag-size-middle::before {
|
|
507
|
-
content: '';
|
|
508
|
-
display: block;
|
|
509
|
-
background-color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
510
|
-
border-radius: 50%;
|
|
511
|
-
}
|
|
512
402
|
.kd-tag-shape-text.kd-tag-end.kd-tag-size-large {
|
|
513
403
|
color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
514
404
|
display: -webkit-inline-box;
|
|
@@ -520,12 +410,6 @@
|
|
|
520
410
|
padding: 0;
|
|
521
411
|
border-radius: 0;
|
|
522
412
|
}
|
|
523
|
-
.kd-tag-shape-text.kd-tag-end.kd-tag-size-large::before {
|
|
524
|
-
content: '';
|
|
525
|
-
display: block;
|
|
526
|
-
background-color: var(--kd-c-tag-color-end, var(--kd-g-color-end, #666));
|
|
527
|
-
border-radius: 50%;
|
|
528
|
-
}
|
|
529
413
|
.kd-tag-shape-text.kd-tag-expired {
|
|
530
414
|
color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
531
415
|
display: -webkit-inline-box;
|
|
@@ -537,12 +421,6 @@
|
|
|
537
421
|
padding: 0;
|
|
538
422
|
border-radius: 0;
|
|
539
423
|
}
|
|
540
|
-
.kd-tag-shape-text.kd-tag-expired::before {
|
|
541
|
-
content: '';
|
|
542
|
-
display: block;
|
|
543
|
-
background-color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
544
|
-
border-radius: 50%;
|
|
545
|
-
}
|
|
546
424
|
.kd-tag-shape-text.kd-tag-expired.kd-tag-size-middle {
|
|
547
425
|
color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
548
426
|
display: -webkit-inline-box;
|
|
@@ -554,12 +432,6 @@
|
|
|
554
432
|
padding: 0;
|
|
555
433
|
border-radius: 0;
|
|
556
434
|
}
|
|
557
|
-
.kd-tag-shape-text.kd-tag-expired.kd-tag-size-middle::before {
|
|
558
|
-
content: '';
|
|
559
|
-
display: block;
|
|
560
|
-
background-color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
561
|
-
border-radius: 50%;
|
|
562
|
-
}
|
|
563
435
|
.kd-tag-shape-text.kd-tag-expired.kd-tag-size-large {
|
|
564
436
|
color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
565
437
|
display: -webkit-inline-box;
|
|
@@ -571,12 +443,6 @@
|
|
|
571
443
|
padding: 0;
|
|
572
444
|
border-radius: 0;
|
|
573
445
|
}
|
|
574
|
-
.kd-tag-shape-text.kd-tag-expired.kd-tag-size-large::before {
|
|
575
|
-
content: '';
|
|
576
|
-
display: block;
|
|
577
|
-
background-color: var(--kd-c-tag-color-expired, var(--kd-g-color-disabled, #b2b2b2));
|
|
578
|
-
border-radius: 50%;
|
|
579
|
-
}
|
|
580
446
|
.kd-tag-shape-edit {
|
|
581
447
|
border: 1px solid var(--kd-c-tag-edit-color-border, var(--kd-g-color-text-placeholder, #ccc));
|
|
582
448
|
border-radius: 2px;
|
|
@@ -589,11 +455,10 @@
|
|
|
589
455
|
border-color: var(--kd-c-tag-edit-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
590
456
|
}
|
|
591
457
|
.kd-tag-shape-edit:not(.kd-tag-closable-disabled):hover .kd-tag-closeWrapper {
|
|
592
|
-
|
|
593
|
-
color: var(--kd-c-tag-edit-cloesWrapper-color-text-hover, var(--kd-g-color-white, #fff));
|
|
458
|
+
color: var(--kd-c-tag-edit-cloesWrapper-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
594
459
|
}
|
|
595
460
|
.kd-tag-shape-edit.kd-tag-closable {
|
|
596
|
-
padding-right:
|
|
461
|
+
padding-right: 8px;
|
|
597
462
|
}
|
|
598
463
|
.kd-tag-clickable {
|
|
599
464
|
cursor: pointer;
|
|
@@ -613,24 +478,14 @@
|
|
|
613
478
|
.kd-tag-closable.kd-tag-size-middle {
|
|
614
479
|
line-height: var(--kd-c-tag-sizing-height-middle, 20px);
|
|
615
480
|
}
|
|
616
|
-
.kd-tag-closable.kd-tag-size-middle .kd-tag-closeWrapper {
|
|
617
|
-
width: calc(var(--kd-c-tag-sizing-height-middle, 20px) - 2px);
|
|
618
|
-
height: calc(var(--kd-c-tag-sizing-height-middle, 20px) - 2px);
|
|
619
|
-
}
|
|
620
481
|
.kd-tag-closable.kd-tag-size-large {
|
|
621
482
|
line-height: var(--kd-c-tag-sizing-height-large, 24px);
|
|
622
483
|
padding-left: var(--kd-c-tag-spacing-padding-horizontal-large, 8px);
|
|
623
484
|
}
|
|
624
|
-
.kd-tag-closable.kd-tag-size-large .kd-tag-closeWrapper {
|
|
625
|
-
width: calc(var(--kd-c-tag-sizing-height-large, 24px) - 2px);
|
|
626
|
-
height: calc(var(--kd-c-tag-sizing-height-large, 24px) - 2px);
|
|
627
|
-
}
|
|
628
485
|
.kd-tag-closable.kd-tag-size-large .kd-tag-closeWrapper .kd-tag-close-icon {
|
|
629
486
|
font-size: 14px;
|
|
630
487
|
}
|
|
631
488
|
.kd-tag-closeWrapper {
|
|
632
|
-
width: calc(var(--kd-c-tag-sizing-height-middle, 20px) - 2px);
|
|
633
|
-
height: calc(var(--kd-c-tag-sizing-height-middle, 20px) - 2px);
|
|
634
489
|
margin-left: 4px;
|
|
635
490
|
display: -webkit-inline-box;
|
|
636
491
|
display: -ms-inline-flexbox;
|
package/lib/tag/style/index.less
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
&-size-large {
|
|
19
19
|
.tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
transition: all @tag-g-motion-duration;
|
|
23
23
|
// 状态标签
|
|
24
24
|
&-shape-status {
|
|
@@ -42,16 +42,6 @@
|
|
|
42
42
|
// 文本标签
|
|
43
43
|
&-shape-text {
|
|
44
44
|
.tag-text-color(@tag-process-color);
|
|
45
|
-
.tag-text-padding(@tag-small-padding-horizontal)
|
|
46
|
-
}
|
|
47
|
-
&-shape-text.@{tag-prefix-cls}-size-small {
|
|
48
|
-
.tag-text-padding(@tag-small-padding-horizontal)
|
|
49
|
-
}
|
|
50
|
-
&-shape-text.@{tag-prefix-cls}-size-middle {
|
|
51
|
-
.tag-text-padding(@tag-middle-padding-horizontal)
|
|
52
|
-
}
|
|
53
|
-
&-shape-text.@{tag-prefix-cls}-size-large {
|
|
54
|
-
.tag-text-padding(@tag-large-padding-horizontal)
|
|
55
45
|
}
|
|
56
46
|
each(@types, {
|
|
57
47
|
&-shape-text.@{tag-prefix-cls}-@{value} {
|
|
@@ -76,13 +66,13 @@
|
|
|
76
66
|
&:not(.@{tag-prefix-cls}-closable-disabled):hover {
|
|
77
67
|
border-color: @tag-edit-g-color-border-hover;
|
|
78
68
|
.@{tag-prefix-cls}-closeWrapper {
|
|
79
|
-
background-color: @tag-edit-cloesWrapper-g-color-background-hover;
|
|
69
|
+
// background-color: @tag-edit-cloesWrapper-g-color-background-hover;
|
|
80
70
|
color: @tag-edit-cloesWrapper-g-text-color-hover;
|
|
81
71
|
}
|
|
82
72
|
}
|
|
83
73
|
|
|
84
74
|
&.@{tag-prefix-cls}-closable {
|
|
85
|
-
padding-right:
|
|
75
|
+
padding-right: 8px;
|
|
86
76
|
}
|
|
87
77
|
}
|
|
88
78
|
|
|
@@ -109,28 +99,18 @@
|
|
|
109
99
|
}
|
|
110
100
|
&-closable.@{tag-prefix-cls}-size-middle {
|
|
111
101
|
line-height: @tag-middle-height;
|
|
112
|
-
|
|
113
|
-
.@{tag-prefix-cls}-closeWrapper {
|
|
114
|
-
width: calc(@tag-middle-height - 2px);
|
|
115
|
-
height: calc(@tag-middle-height - 2px);
|
|
116
|
-
}
|
|
117
102
|
}
|
|
118
103
|
&-closable.@{tag-prefix-cls}-size-large {
|
|
119
104
|
line-height: @tag-large-height;
|
|
120
105
|
padding-left: @tag-large-padding-horizontal;
|
|
121
106
|
|
|
122
107
|
.@{tag-prefix-cls}-closeWrapper {
|
|
123
|
-
width: calc(@tag-large-height - 2px);
|
|
124
|
-
height: calc(@tag-large-height - 2px);
|
|
125
|
-
|
|
126
108
|
.@{tag-prefix-cls}-close-icon {
|
|
127
109
|
font-size: 14px;
|
|
128
110
|
}
|
|
129
111
|
}
|
|
130
112
|
}
|
|
131
113
|
&-closeWrapper {
|
|
132
|
-
width: calc(@tag-middle-height - 2px);
|
|
133
|
-
height: calc(@tag-middle-height - 2px);
|
|
134
114
|
margin-left: 4px;
|
|
135
115
|
display: inline-flex;
|
|
136
116
|
justify-content: center;
|
|
@@ -141,4 +121,4 @@
|
|
|
141
121
|
cursor: pointer;
|
|
142
122
|
font-size: 12px;
|
|
143
123
|
}
|
|
144
|
-
}
|
|
124
|
+
}
|
package/lib/tag/style/mixin.less
CHANGED
|
@@ -29,17 +29,4 @@
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
padding: 0;
|
|
31
31
|
border-radius: 0;
|
|
32
|
-
&::before{
|
|
33
|
-
content: '';
|
|
34
|
-
display: block;
|
|
35
|
-
background-color: @color;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.tag-text-padding(@padding) {
|
|
40
|
-
&::before{
|
|
41
|
-
width: @padding;
|
|
42
|
-
height: @padding;
|
|
43
|
-
margin-right: @padding;
|
|
44
|
-
}
|
|
45
32
|
}
|
package/lib/tag/style/token.less
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@tag-edit-g-text-color: var(~'@{tag-custom-prefix}-edit-color-text', @color-text-primary);
|
|
16
16
|
@tag-edit-g-color-border-hover: var(~'@{tag-custom-prefix}-edit-color-border-hover', @color-theme);
|
|
17
17
|
@tag-edit-cloesWrapper-g-color-background-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-background-hover', @color-theme);
|
|
18
|
-
@tag-edit-cloesWrapper-g-text-color-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-text-hover', @color-
|
|
18
|
+
@tag-edit-cloesWrapper-g-text-color-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-text-hover', @color-theme);
|
|
19
19
|
@tag-edit-g-color-background-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-background-contain-disabled);
|
|
20
20
|
@tag-edit-g-color-border-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-border-strong);
|
|
21
21
|
@tag-edit-g-text-color-disabled: var(~'@{tag-custom-prefix}-edit-color-text-disabled', @color-border-strong);
|