@kdcloudjs/kdesign 1.1.3 → 1.2.2
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 +79 -3
- package/dist/kdesign-complete.less +1006 -783
- package/dist/kdesign.css +358 -268
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +529 -262
- 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 +33 -12
- 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/carousel/displayList.js +8 -4
- package/es/carousel/fadeList.js +9 -5
- package/es/carousel/slideList.js +6 -3
- package/es/carousel/style/index.css +65 -0
- package/es/carousel/style/index.less +66 -1
- 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/radio/radio.js +3 -1
- package/es/radio/style/index.css +51 -24
- package/es/radio/style/index.less +28 -2
- 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 +2 -1
- 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/tabs/tabs.js +5 -1
- 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 +34 -12
- 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/carousel/displayList.js +9 -4
- package/lib/carousel/fadeList.js +10 -5
- package/lib/carousel/slideList.js +6 -3
- package/lib/carousel/style/index.css +65 -0
- package/lib/carousel/style/index.less +66 -1
- 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/radio/radio.js +3 -1
- package/lib/radio/style/index.css +51 -24
- package/lib/radio/style/index.less +28 -2
- 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 +2 -1
- 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/tabs/tabs.js +6 -1
- 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
package/es/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/es/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/es/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/es/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);
|
package/lib/_utils/usePopper.js
CHANGED
|
@@ -21,6 +21,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/hel
|
|
|
21
21
|
|
|
22
22
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
23
23
|
|
|
24
|
+
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
|
|
25
|
+
|
|
24
26
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
25
27
|
|
|
26
28
|
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
@@ -118,6 +120,23 @@ var getOffsetPos = function getOffsetPos(el) {
|
|
|
118
120
|
return elPos;
|
|
119
121
|
};
|
|
120
122
|
|
|
123
|
+
var getBorderWidth = function getBorderWidth(el) {
|
|
124
|
+
var border = {
|
|
125
|
+
top: 0,
|
|
126
|
+
left: 0
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
if (el.offsetParent) {
|
|
130
|
+
var _context, _context2;
|
|
131
|
+
|
|
132
|
+
var parentBorder = getBorderWidth(el.offsetParent);
|
|
133
|
+
border.top += parentBorder.top + parseInt((0, _slice.default)(_context = getComputedStyle(el.offsetParent, null).borderTopWidth).call(_context, 0, -2));
|
|
134
|
+
border.left += parentBorder.left + parseInt((0, _slice.default)(_context2 = getComputedStyle(el.offsetParent, null).borderTopWidth).call(_context2, 0, -2));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return border;
|
|
138
|
+
};
|
|
139
|
+
|
|
121
140
|
var getScrollDist = function getScrollDist(el, container) {
|
|
122
141
|
var elScroll = {
|
|
123
142
|
top: el.scrollTop,
|
|
@@ -138,7 +157,7 @@ var getScrollDist = function getScrollDist(el, container) {
|
|
|
138
157
|
};
|
|
139
158
|
|
|
140
159
|
function usePopper(locatorElement, popperElement, props) {
|
|
141
|
-
var
|
|
160
|
+
var _context3, _context4, _arrowStyle;
|
|
142
161
|
|
|
143
162
|
var prefixCls = props.prefixCls,
|
|
144
163
|
onTrigger = props.onTrigger,
|
|
@@ -177,11 +196,11 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
177
196
|
} : _props$getPopupContai;
|
|
178
197
|
var arrowWidth = Math.sqrt(2 * Math.pow(arrowSize, 2));
|
|
179
198
|
var componentName = (prefixCls === null || prefixCls === void 0 ? void 0 : prefixCls.split('-')[1]) || '';
|
|
180
|
-
(0, _devwarning.default)(Placements.indexOf(placement) === -1, componentName, (0, _concat.default)(
|
|
199
|
+
(0, _devwarning.default)(Placements.indexOf(placement) === -1, componentName, (0, _concat.default)(_context3 = "cannot found ".concat(componentName, " placement '")).call(_context3, placement, "'"));
|
|
181
200
|
var isWrongTrigger = Array.isArray(trigger) ? trigger.some(function (v) {
|
|
182
201
|
return !(0, _includes.default)(Triggers).call(Triggers, v);
|
|
183
202
|
}) : Triggers.indexOf(trigger) === -1;
|
|
184
|
-
(0, _devwarning.default)(isWrongTrigger, componentName, (0, _concat.default)(
|
|
203
|
+
(0, _devwarning.default)(isWrongTrigger, componentName, (0, _concat.default)(_context4 = "cannot found ".concat(componentName, " trigger '")).call(_context4, trigger, "'"));
|
|
185
204
|
var locatorEl = (0, _react.useRef)();
|
|
186
205
|
var popperEl = (0, _react.useRef)();
|
|
187
206
|
var locatorRef = locatorElement.ref || locatorEl;
|
|
@@ -281,21 +300,25 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
281
300
|
locatorTop = _getOffsetPos2.top,
|
|
282
301
|
locatorLeft = _getOffsetPos2.left;
|
|
283
302
|
|
|
284
|
-
var _getScrollDist = getScrollDist(locatorRef.current.parentElement, container),
|
|
285
|
-
scrollTop = _getScrollDist.top,
|
|
286
|
-
scrollLeft = _getScrollDist.left;
|
|
287
|
-
|
|
288
303
|
var _getTranslatePos = getTranslatePos(locatorRef.current),
|
|
289
304
|
translateTop = _getTranslatePos.top,
|
|
290
305
|
translateLeft = _getTranslatePos.left;
|
|
291
306
|
|
|
307
|
+
var _getBorderWidth = getBorderWidth(locatorRef.current),
|
|
308
|
+
borderTop = _getBorderWidth.top,
|
|
309
|
+
borderLeft = _getBorderWidth.left;
|
|
310
|
+
|
|
311
|
+
var _getScrollDist = getScrollDist(locatorRef.current.parentElement, container),
|
|
312
|
+
scrollTop = _getScrollDist.top,
|
|
313
|
+
scrollLeft = _getScrollDist.left;
|
|
314
|
+
|
|
292
315
|
var locatorPos = {
|
|
293
316
|
width: width,
|
|
294
317
|
height: height,
|
|
295
|
-
top: locatorTop + translateTop - containerTop - scrollTop,
|
|
296
|
-
left: locatorLeft + translateLeft - containerLeft - scrollLeft,
|
|
297
|
-
right: locatorLeft + translateLeft + width - containerLeft - scrollLeft,
|
|
298
|
-
bottom: locatorTop + translateTop + height - containerTop - scrollTop
|
|
318
|
+
top: locatorTop + borderTop + translateTop - containerTop - scrollTop,
|
|
319
|
+
left: locatorLeft + borderLeft + translateLeft - containerLeft - scrollLeft,
|
|
320
|
+
right: locatorLeft + borderLeft + translateLeft + width - containerLeft - scrollLeft,
|
|
321
|
+
bottom: locatorTop + borderTop + translateTop + height - containerTop - scrollTop
|
|
299
322
|
};
|
|
300
323
|
var currentPos = trigger === 'contextMenu' ? mousePos : locatorPos;
|
|
301
324
|
var _currentPlacement = placement;
|
|
@@ -490,7 +513,6 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
490
513
|
}
|
|
491
514
|
}, [disabled, exist, onTrigger, visible]);
|
|
492
515
|
var hidePopper = (0, _react.useCallback)(function () {
|
|
493
|
-
setEvType('');
|
|
494
516
|
props.visible === undefined && setVisible(false);
|
|
495
517
|
onVisibleChange && onVisibleChange(false);
|
|
496
518
|
}, [onVisibleChange, props.visible]);
|
package/lib/anchor/anchor.js
CHANGED
|
@@ -364,12 +364,6 @@ var InternalAnchor = function InternalAnchor(props, ref) {
|
|
|
364
364
|
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
365
365
|
!isLocked && onVisibleChange && onVisibleChange(visible);
|
|
366
366
|
if (props.visible !== undefined) return;
|
|
367
|
-
|
|
368
|
-
if (visible) {
|
|
369
|
-
setOptionShow(visible);
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
367
|
!isLocked && setOptionShow(visible);
|
|
374
368
|
};
|
|
375
369
|
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
overflow: hidden;
|
|
181
181
|
white-space: nowrap;
|
|
182
182
|
text-overflow: ellipsis;
|
|
183
|
-
padding: 0
|
|
183
|
+
padding: 0 4px;
|
|
184
184
|
line-height: 1.5;
|
|
185
185
|
vertical-align: middle;
|
|
186
186
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
}
|
|
195
195
|
.kd-anchor-advanced-arrows {
|
|
196
196
|
color: var(--kd-c-anchor-advanced-arrows-color-text, #666);
|
|
197
|
-
font-size: var(--kd-c-anchor-
|
|
197
|
+
font-size: var(--kd-c-anchor-advanced-arrows-font-size, 24px);
|
|
198
198
|
cursor: pointer;
|
|
199
199
|
}
|
|
200
200
|
.kd-anchor-advanced-arrows:hover {
|
|
@@ -257,6 +257,9 @@
|
|
|
257
257
|
.kd-anchor-link {
|
|
258
258
|
padding: var(--kd-c-anchor-spacing-padding, 7px 8px);
|
|
259
259
|
}
|
|
260
|
+
.kd-anchor-link > .kd-anchor-link {
|
|
261
|
+
padding: var(--kd-c-anchor-secondary-spacing-padding, 12px 8px);
|
|
262
|
+
}
|
|
260
263
|
.kd-anchor-link-title {
|
|
261
264
|
text-decoration: none;
|
|
262
265
|
color: var(--kd-c-anchor-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
overflow: hidden;
|
|
73
73
|
white-space: nowrap;
|
|
74
74
|
text-overflow: ellipsis;
|
|
75
|
-
padding: 0
|
|
75
|
+
padding: 0 4px;
|
|
76
76
|
line-height: 1.5;
|
|
77
77
|
vertical-align: middle;
|
|
78
78
|
}
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
&-advanced-arrows {
|
|
92
92
|
color: @anchor-advanced-arrows-color;
|
|
93
|
-
font-size: @anchor-
|
|
93
|
+
font-size: @anchor-advanced-arrows-font-size;
|
|
94
94
|
cursor: pointer;
|
|
95
95
|
&:hover {
|
|
96
96
|
color: @anchor-color-theme;
|
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
&-link {
|
|
155
155
|
padding: @anchor-link-padding;
|
|
156
156
|
|
|
157
|
+
&>.@{anchor-prefix-cls}-link {
|
|
158
|
+
padding: @anchor-link-secondary-padding;
|
|
159
|
+
}
|
|
160
|
+
|
|
157
161
|
&-title {
|
|
158
162
|
text-decoration: none;
|
|
159
163
|
color: @anchor-primary-text-color;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
@anchor-link-top: var(~'@{anchor-prefix}-spacing-vertical', 7px);
|
|
20
20
|
@anchor-link-left: var(~'@{anchor-prefix}-spacing-horizontal', 7px);
|
|
21
21
|
@anchor-link-padding: var(~'@{anchor-prefix}-spacing-padding', 7px 8px);
|
|
22
|
+
@anchor-link-secondary-padding: var(~'@{anchor-prefix}-secondary-spacing-padding', 12px 8px);
|
|
22
23
|
@anchor-advanced-padding-top: var(~'@{anchor-prefix}-advanced-spacing-padding-top', 8px);
|
|
23
24
|
@anchor-advanced-padding-bottom: var(~'@{anchor-prefix}-advanced-spacing-padding-bottom', 7px);
|
|
24
25
|
@anchor-ink-line-width: var(~'@{anchor-prefix}-ink-line-spacing-width', 1px);
|
|
@@ -28,6 +29,6 @@
|
|
|
28
29
|
@anchor-advanced-lock-size: var(~'@{anchor-prefix}-advanced-lock-font-size', 16px);
|
|
29
30
|
@anchor-font-size: var(~'@{anchor-prefix}-font-size', @font-size-small);
|
|
30
31
|
@anchor-icon-font-size: var(~'@{anchor-prefix}-icon-font-size', 16px);
|
|
31
|
-
|
|
32
|
+
@anchor-advanced-arrows-font-size: var(~'@{anchor-prefix}-advanced-arrows-font-size', 24px);
|
|
32
33
|
// motion
|
|
33
34
|
@anchor-transition-duration: var(~'@{anchor-prefix}-duration-duration', @duration-promptly);
|
package/lib/button/button.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const ButtonTypes: ["second", "primary", "ghost", "text"];
|
|
|
3
3
|
export declare type ButtonType = typeof ButtonTypes[number];
|
|
4
4
|
export declare const ButtonSizes: ["large", "middle", "small"];
|
|
5
5
|
export declare type ButtonSize = typeof ButtonSizes[number];
|
|
6
|
-
export declare const ButtonShapes: ["circle", "round"];
|
|
6
|
+
export declare const ButtonShapes: ["circle", "round", "none"];
|
|
7
7
|
export declare type ButtonShape = typeof ButtonShapes[number];
|
|
8
8
|
export declare const ButtonIconPlaces: ["left", "right"];
|
|
9
9
|
export declare type ButtonIconPlace = typeof ButtonIconPlaces[number];
|
package/lib/button/button.js
CHANGED
|
@@ -56,7 +56,7 @@ var ButtonTypes = (0, _type.tuple)('second', 'primary', 'ghost', 'text');
|
|
|
56
56
|
exports.ButtonTypes = ButtonTypes;
|
|
57
57
|
var ButtonSizes = (0, _type.tuple)('large', 'middle', 'small');
|
|
58
58
|
exports.ButtonSizes = ButtonSizes;
|
|
59
|
-
var ButtonShapes = (0, _type.tuple)('circle', 'round');
|
|
59
|
+
var ButtonShapes = (0, _type.tuple)('circle', 'round', 'none');
|
|
60
60
|
exports.ButtonShapes = ButtonShapes;
|
|
61
61
|
var ButtonIconPlaces = (0, _type.tuple)('left', 'right');
|
|
62
62
|
exports.ButtonIconPlaces = ButtonIconPlaces;
|
|
@@ -142,7 +142,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
142
142
|
|
|
143
143
|
var isTextBtn = type === 'text'; // 判断按钮是否文本类型。这些类型下有部分样式不适用
|
|
144
144
|
|
|
145
|
-
var btnClasses = (0, _classnames.default)(btnPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context = "".concat(btnPrefixCls, "-")).call(_context, type), type), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context2 = "".concat(btnPrefixCls, "-size-")).call(_context2, size), size), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context3 = "".concat(btnPrefixCls, "-shape-")).call(_context3, shape), shape && !isTextBtn), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), _classNames));
|
|
145
|
+
var btnClasses = (0, _classnames.default)(btnPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context = "".concat(btnPrefixCls, "-")).call(_context, type), type), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context2 = "".concat(btnPrefixCls, "-size-")).call(_context2, size), size), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context3 = "".concat(btnPrefixCls, "-shape-")).call(_context3, shape), shape && !isTextBtn), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), (0, _defineProperty2.default)(_classNames, "".concat(btnPrefixCls, "-icon-only"), !children && children !== 0 && icon), _classNames));
|
|
146
146
|
var iconWrapperClassName = (0, _concat.default)(_context4 = "".concat(btnPrefixCls, "-iconWrapper-")).call(_context4, iconPlace === 'left' ? 'left' : 'right');
|
|
147
147
|
var iconNode = icon && !loading ? /*#__PURE__*/_react.default.createElement("span", {
|
|
148
148
|
className: iconWrapperClassName
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ButtonType } from './button';
|
|
3
|
+
export declare const ButtonGroupTypes: ["basic", "similar"];
|
|
4
|
+
export declare type ButtonGroupType = typeof ButtonGroupTypes[number];
|
|
5
|
+
export interface OverlayType {
|
|
6
|
+
value?: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface ButtonGroupProps {
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
overlay?: Array<OverlayType>;
|
|
15
|
+
icon?: [ReactNode, ReactNode];
|
|
16
|
+
type?: ButtonGroupType;
|
|
17
|
+
buttonType?: ButtonType;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export default ButtonGroup;
|