@kdcloudjs/kdesign 1.1.2 → 1.1.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +3 -2
  2. package/dist/kdesign-complete.less +186 -145
  3. package/dist/kdesign.css +198 -171
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +34 -22
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +2 -2
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/usePopper.js +4 -4
  11. package/es/checkbox/checkbox.js +3 -4
  12. package/es/checkbox/style/index.css +36 -33
  13. package/es/checkbox/style/index.less +25 -18
  14. package/es/checkbox/style/token.less +34 -35
  15. package/es/input/style/index.css +53 -50
  16. package/es/input/style/index.less +5 -4
  17. package/es/input/style/mixin.less +1 -0
  18. package/es/input/style/token.less +23 -20
  19. package/es/layout/style/index.css +1 -1
  20. package/es/layout/style/index.less +1 -1
  21. package/es/layout/style/token.less +5 -5
  22. package/es/menu/menu.js +1 -1
  23. package/es/menu/style/index.css +37 -31
  24. package/es/menu/style/index.less +14 -0
  25. package/es/menu/style/mixin.less +1 -1
  26. package/es/menu/style/token.less +13 -16
  27. package/es/pagination/pagination.js +4 -4
  28. package/es/pagination/style/index.css +70 -55
  29. package/es/pagination/style/index.less +61 -43
  30. package/es/pagination/style/token.less +4 -4
  31. package/es/radio/radio.js +21 -8
  32. package/es/style/icon/kdicon.css +224 -0
  33. package/es/style/icon/kdicon.woff +0 -0
  34. package/lib/_utils/usePopper.js +4 -4
  35. package/lib/checkbox/checkbox.js +3 -4
  36. package/lib/checkbox/style/index.css +36 -33
  37. package/lib/checkbox/style/index.less +25 -18
  38. package/lib/checkbox/style/token.less +34 -35
  39. package/lib/input/style/index.css +53 -50
  40. package/lib/input/style/index.less +5 -4
  41. package/lib/input/style/mixin.less +1 -0
  42. package/lib/input/style/token.less +23 -20
  43. package/lib/layout/style/index.css +1 -1
  44. package/lib/layout/style/index.less +1 -1
  45. package/lib/layout/style/token.less +5 -5
  46. package/lib/menu/menu.js +1 -1
  47. package/lib/menu/style/index.css +37 -31
  48. package/lib/menu/style/index.less +14 -0
  49. package/lib/menu/style/mixin.less +1 -1
  50. package/lib/menu/style/token.less +13 -16
  51. package/lib/pagination/pagination.js +4 -3
  52. package/lib/pagination/style/index.css +70 -55
  53. package/lib/pagination/style/index.less +61 -43
  54. package/lib/pagination/style/token.less +4 -4
  55. package/lib/radio/radio.js +21 -8
  56. package/lib/style/icon/kdicon.css +224 -0
  57. package/lib/style/icon/kdicon.woff +0 -0
  58. package/package.json +1 -1
@@ -3,6 +3,7 @@
3
3
  @import './token.less';
4
4
 
5
5
  @pagination-prefix-cls: ~'@{kd-prefix}-pagination';
6
+ @dropdown-prefix-cls: ~'@{kd-prefix}-dropdown';
6
7
  @pagination-action-prefix-cls: ~'@{pagination-prefix-cls}-action';
7
8
  @pagination-selector-prefix-cls: ~'@{pagination-prefix-cls}-selector';
8
9
  @pagination-pages-prefix-cls: ~'@{pagination-prefix-cls}-pages';
@@ -22,11 +23,11 @@
22
23
 
23
24
  .@{pagination-prefix-cls}-current {
24
25
  display: inline-block;
25
- margin-right: 15px;
26
+ margin-right: 12px;
26
27
  vertical-align: middle;
27
28
  .@{pagination-prefix-cls}-current-input {
28
29
  box-sizing: border-box;
29
- width: 32px;
30
+ width: 44px;
30
31
  height: @pagination-size;
31
32
  margin: 0 3px;
32
33
  padding: 0;
@@ -46,7 +47,7 @@
46
47
  }
47
48
 
48
49
  &:disabled {
49
- color: @color-disabled;
50
+ color: @pagination-disabled-color;
50
51
  border: @pagination-border-size solid @pagination-border-disabled-color;
51
52
  background: @pagination-button-disabled-background-color;
52
53
  cursor: not-allowed;
@@ -107,7 +108,7 @@
107
108
  cursor: not-allowed;
108
109
 
109
110
  i {
110
- color: @pagination-icon-disabled-color;
111
+ color: @pagination-disabled-color;
111
112
  }
112
113
  }
113
114
 
@@ -141,6 +142,7 @@
141
142
  .@{pagination-selector-prefix-cls}-size {
142
143
  box-sizing: border-box;
143
144
  display: inline-block;
145
+ padding: 0;
144
146
  line-height: @pagination-size;
145
147
  font-size: @pagination-font-size;
146
148
  color: @color-text-primary;
@@ -160,21 +162,34 @@
160
162
  &.disabled,
161
163
  &.disabled > i {
162
164
  cursor: not-allowed;
163
- color: @color-border-disabled;
165
+ color: @pagination-disabled-color;
164
166
  }
165
167
 
166
168
  i {
167
- margin-left: 5px;
169
+ margin-left: 4px;
168
170
  line-height: @pagination-size;
169
171
  font-size: @pagination-icon-size;
170
172
  color: @pagination-text-color;
171
173
  }
172
174
  }
175
+
176
+ .@{dropdown-prefix-cls}-menu-item {
177
+ text-align: right;
178
+ padding-right: @pagination-dropdown-item-spacing-horizontal;
179
+ padding-left: @pagination-dropdown-item-spacing-horizontal;
180
+
181
+ span {
182
+ white-space: nowrap;
183
+ }
184
+ }
173
185
  }
174
186
 
175
187
  // 简化版分页
176
188
  &.simple {
177
- display: inline-block;
189
+ display: inline-flex;
190
+ justify-content: space-around;
191
+ align-items: center;
192
+ height: @pagination-size;
178
193
  border-radius: @radius-border;
179
194
  border: @pagination-border-size solid transparent;
180
195
 
@@ -193,15 +208,17 @@
193
208
  }
194
209
 
195
210
  &.disabled > .@{pagination-prefix-cls}-item {
196
- color: @color-border-disabled;
211
+ color: @pagination-disabled-color;
197
212
  }
198
213
 
199
214
  .@{pagination-prefix-cls}-item {
200
215
  .reset-component;
201
216
  display: inline-block;
217
+ height: @pagination-size;
218
+ overflow: hidden;
219
+ margin: 0 8px;
202
220
  vertical-align: middle;
203
221
  color: @color-text-primary;
204
- margin: 0 18px;
205
222
 
206
223
  &:first-child,
207
224
  &:last-child {
@@ -216,7 +233,7 @@
216
233
  margin: 0;
217
234
 
218
235
  &:disabled {
219
- color: @color-disabled;
236
+ color: @pagination-disabled-color;
220
237
  cursor: not-allowed;
221
238
  }
222
239
  }
@@ -243,7 +260,7 @@
243
260
  &:hover,
244
261
  &:active {
245
262
  &:not(:disabled) {
246
- border-color: @pagination-border-hover-color
263
+ border-color: @pagination-border-hover-color;
247
264
  }
248
265
 
249
266
  i {
@@ -255,7 +272,7 @@
255
272
  cursor: not-allowed;
256
273
 
257
274
  i {
258
- color: @pagination-icon-disabled-color;
275
+ color: @pagination-disabled-color;
259
276
  }
260
277
  }
261
278
 
@@ -318,7 +335,7 @@
318
335
  border-color: @pagination-border-hover-color;
319
336
 
320
337
  &:disabled {
321
- border-color: @pagination-border-disabled-color
338
+ border-color: @pagination-border-disabled-color;
322
339
  }
323
340
  }
324
341
  }
@@ -339,7 +356,7 @@
339
356
 
340
357
  &:disabled {
341
358
  cursor: not-allowed;
342
- color: @color-disabled;
359
+ color: @pagination-disabled-color;
343
360
  }
344
361
  }
345
362
  }
@@ -377,11 +394,8 @@
377
394
  background-color: @color-background-contain;
378
395
  }
379
396
 
380
- &:hover,
381
- &:active,
382
397
  &.active,
383
- &:first-child,
384
- &:last-child {
398
+ &:hover {
385
399
  button {
386
400
  color: @color-theme;
387
401
 
@@ -394,16 +408,16 @@
394
408
  &:first-child,
395
409
  &:last-child {
396
410
  button {
397
- width: @pagination-nicety-size;
411
+ width: @pagination-size;
398
412
  padding: 0;
399
- line-height: calc(@pagination-nicety-size - 2px);
413
+ line-height: calc(@pagination-size - 2px);
400
414
  }
401
415
  }
402
416
 
403
417
  button {
404
418
  .reset-component;
405
- min-width: @pagination-nicety-size;
406
- height: @pagination-nicety-size;
419
+ min-width: @pagination-size;
420
+ height: @pagination-size;
407
421
  padding: 0 6px;
408
422
  cursor: pointer;
409
423
  outline: none;
@@ -416,7 +430,11 @@
416
430
 
417
431
  &:disabled {
418
432
  cursor: not-allowed;
419
- color: @color-disabled;
433
+ color: @pagination-disabled-color;
434
+ }
435
+
436
+ > i {
437
+ font-size: 16px;
420
438
  }
421
439
 
422
440
  .@{pagination-pages-prefix-cls}-jumper-icon {
@@ -427,7 +445,7 @@
427
445
  width: 100%;
428
446
  height: 100%;
429
447
  color: @color-theme;
430
- line-height: @pagination-nicety-size;
448
+ line-height: @pagination-size;
431
449
  background-color: @color-background;
432
450
  transition: opacity @duration-promptly;
433
451
  }
@@ -437,13 +455,13 @@
437
455
 
438
456
  .@{pagination-jumper-prefix-cls} {
439
457
  display: inline-block;
440
- margin-left: 12px;
458
+ margin-left: 4px;
441
459
  vertical-align: middle;
442
460
 
443
461
  .@{pagination-jumper-prefix-cls}-input {
444
462
  box-sizing: border-box;
445
- width: 48px;
446
- height: @pagination-nicety-size;
463
+ width: 40px;
464
+ height: @pagination-size;
447
465
  padding: 0;
448
466
  outline: none;
449
467
  text-align: center;
@@ -461,7 +479,7 @@
461
479
  }
462
480
 
463
481
  &:disabled {
464
- color: @color-disabled;
482
+ color: @pagination-disabled-color;
465
483
  border: @pagination-border-size solid @pagination-border-disabled-color;
466
484
  background: @pagination-button-disabled-background-color;
467
485
  cursor: not-allowed;
@@ -470,14 +488,14 @@
470
488
 
471
489
  .@{pagination-jumper-prefix-cls}-button {
472
490
  .reset-component;
473
- width: @pagination-nicety-size;
474
- height: @pagination-nicety-size;
491
+ width: @pagination-size;
492
+ height: @pagination-size;
475
493
  margin-left: @pagination-button-spacing;
476
- line-height: @pagination-nicety-size;
494
+ line-height: @pagination-size;
477
495
  vertical-align: top;
478
496
  cursor: pointer;
479
497
  outline: none;
480
- color: @color-theme;
498
+ color: @color-text-primary;
481
499
  font-size: @pagination-font-size;
482
500
  border-radius: @radius-border;
483
501
  border: @pagination-border-size solid @color-border-strong;
@@ -485,8 +503,8 @@
485
503
  transition: border-color @duration-promptly;
486
504
 
487
505
  &:hover,
488
- &:active,
489
- &.active {
506
+ &:active {
507
+ color: @color-theme;
490
508
  border-color: @pagination-border-hover-color;
491
509
 
492
510
  &:disabled {
@@ -495,7 +513,7 @@
495
513
  }
496
514
 
497
515
  &:disabled {
498
- color: @color-disabled;
516
+ color: @pagination-disabled-color;
499
517
  cursor: not-allowed;
500
518
  }
501
519
  }
@@ -505,9 +523,9 @@
505
523
  .reset-component;
506
524
  position: relative;
507
525
  display: inline-block;
508
- margin-left: 40px;
526
+ margin-left: 22px;
509
527
  outline: none;
510
- height: @pagination-nicety-size;
528
+ height: @pagination-size;
511
529
  color: @color-text-primary;
512
530
  vertical-align: middle;
513
531
 
@@ -515,11 +533,11 @@
515
533
  position: relative;
516
534
  box-sizing: border-box;
517
535
  display: inline-block;
518
- width: 67px;
519
- height: @pagination-nicety-size;
536
+ min-width: 64px;
537
+ height: @pagination-size;
520
538
  margin-right: 8px;
521
- padding: 0 8px;
522
- line-height: @pagination-nicety-size;
539
+ padding: 0 24px 0 4px;
540
+ line-height: @pagination-size;
523
541
  font-size: @pagination-font-size;
524
542
  color: @color-text-primary;
525
543
  text-align: left;
@@ -542,7 +560,7 @@
542
560
  &.disabled,
543
561
  &.disabled > i {
544
562
  cursor: not-allowed;
545
- color: @color-border-disabled;
563
+ color: @pagination-disabled-color;
546
564
  }
547
565
 
548
566
  i {
@@ -554,7 +572,7 @@
554
572
  color: @pagination-hover-color;
555
573
  transform: translateY(-50%);
556
574
  }
557
-
575
+
558
576
  .@{pagination-prefix-cls}-dropdown-icon-open {
559
577
  transform: rotate(180deg) translateY(50%);
560
578
  }
@@ -5,11 +5,10 @@
5
5
  // color
6
6
  @pagination-text-color: var(~'@{pagination-custom-prefix}-text-color', @color-text-secondary);
7
7
  @pagination-hover-color: var(~'@{pagination-custom-prefix}-color-text-hover', @color-theme);
8
- @pagination-disabled-color: var(~'@{pagination-custom-prefix}-color-text-disabled', @color-border-disabled);
9
8
  @pagination-icon-color: var(~'@{pagination-custom-prefix}-button-color', @color-text-secondary);
10
- @pagination-icon-disabled-color: var(~'@{pagination-custom-prefix}-button-color-disabled', @color-border-disabled);
9
+ @pagination-disabled-color: var(~'@{pagination-custom-prefix}-color-disabled', @color-disabled);
11
10
  @pagination-border-color: var(~'@{pagination-custom-prefix}-color-border', @color-border-strong);
12
- @pagination-border-hover-color: var(~'@{pagination-custom-prefix}-color-border-hover', @color-theme);
11
+ @pagination-border-hover-color: var(~'@{pagination-custom-prefix}-color-border-hover', @color-theme-7);
13
12
  @pagination-border-disabled-color: var(~'@{pagination-custom-prefix}-color-border-disabled', @color-border-strong);
14
13
  @pagination-button-disabled-background-color: var(~'@{pagination-custom-prefix}-button-color-background-disabled', @color-background-contain-disabled);
15
14
 
@@ -17,13 +16,14 @@
17
16
  @pagination-font-size: var(~'@{pagination-custom-prefix}-font-size', @font-size-small);
18
17
  @pagination-icon-size: var(~'@{pagination-custom-prefix}-icon-font-size', @font-size-large);
19
18
 
19
+
20
20
  // sizing
21
21
  @pagination-size: var(~'@{pagination-custom-prefix}-sizing-square', 24px);
22
- @pagination-nicety-size: var(~'@{pagination-custom-prefix}-nicety-sizing-square', 30px);
23
22
  @pagination-border-size: var(~'@{pagination-custom-prefix}-sizing-border-width', 1px);
24
23
 
25
24
  // spacing
26
25
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
26
+ @pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
27
27
 
28
28
 
29
29
 
package/es/radio/radio.js CHANGED
@@ -85,14 +85,27 @@ var InternalRadio = function InternalRadio(props, ref) {
85
85
 
86
86
  var classString = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(radioPrefixCls), true), _defineProperty(_classNames, "".concat(radioPrefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(radioPrefixCls, "-checked"), context ? radioProps.checked : isChecked), _classNames), className); // 单选包裹元素class名称
87
87
 
88
- return /*#__PURE__*/React.createElement("label", {
89
- className: classString,
90
- style: style,
91
- ref: mergedRef
92
- }, /*#__PURE__*/React.createElement("input", _extends({
93
- type: "radio",
94
- className: "".concat(radioPrefixCls, "-input")
95
- }, radioProps)), children !== undefined ? /*#__PURE__*/React.createElement("span", null, children) : null);
88
+ var handleRepeatClick = function handleRepeatClick(e) {
89
+ var element = e.target;
90
+
91
+ if (element.tagName !== 'INPUT') {
92
+ e.stopPropagation();
93
+ }
94
+ };
95
+
96
+ return (
97
+ /*#__PURE__*/
98
+ // eslint-disable-next-line
99
+ React.createElement("label", {
100
+ className: classString,
101
+ style: style,
102
+ ref: mergedRef,
103
+ onClick: handleRepeatClick
104
+ }, /*#__PURE__*/React.createElement("input", _extends({
105
+ type: "radio",
106
+ className: "".concat(radioPrefixCls, "-input")
107
+ }, radioProps)), children !== undefined ? /*#__PURE__*/React.createElement("span", null, children) : null)
108
+ );
96
109
  };
97
110
 
98
111
  var Radio = /*#__PURE__*/React.forwardRef(InternalRadio);
@@ -0,0 +1,224 @@
1
+ @font-face {
2
+ font-family: "kdicon";
3
+ src: url("kdicon.woff?t=1648879081136") format("woff");
4
+ }
5
+ .kdicon {
6
+ font-family: 'kdicon' !important;
7
+ font-style:normal;
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ }
11
+ .kdicon-add-child:before { content: "\e6c0"; }
12
+ .kdicon-add-indentation:before { content: "\e6a7"; }
13
+ .kdicon-add-line:before { content: "\e6c5"; }
14
+ .kdicon-add-solid:before { content: "\e643"; }
15
+ .kdicon-add-word:before { content: "\e6ed"; }
16
+ .kdicon-add:before { content: "\e628"; }
17
+ .kdicon-address:before { content: "\e6cc"; }
18
+ .kdicon-align-center:before { content: "\e69a"; }
19
+ .kdicon-align-left:before { content: "\e6af"; }
20
+ .kdicon-align-right:before { content: "\e67a"; }
21
+ .kdicon-all-border:before { content: "\e677"; }
22
+ .kdicon-allowance-workbench:before { content: "\e714"; }
23
+ .kdicon-analysis:before { content: "\e6ce"; }
24
+ .kdicon-arrow-down-solid:before { content: "\e656"; }
25
+ .kdicon-arrow-down:before { content: "\e627"; }
26
+ .kdicon-arrow-left-solid:before { content: "\e657"; }
27
+ .kdicon-arrow-left:before { content: "\e63f"; }
28
+ .kdicon-arrow-right-solid:before { content: "\e655"; }
29
+ .kdicon-arrow-right:before { content: "\e62c"; }
30
+ .kdicon-arrow-up-solid:before { content: "\e654"; }
31
+ .kdicon-arrow-up:before { content: "\e62b"; }
32
+ .kdicon-arrow:before { content: "\e69c"; }
33
+ .kdicon-attachment:before { content: "\e694"; }
34
+ .kdicon-avatar-default:before { content: "\e717"; }
35
+ .kdicon-avatar-head-default:before { content: "\e718"; }
36
+ .kdicon-avatar-solid:before { content: "\e711"; }
37
+ .kdicon-back:before { content: "\e6cd"; }
38
+ .kdicon-bankcard:before { content: "\e705"; }
39
+ .kdicon-bellOutlined:before { content: "\e71a"; }
40
+ .kdicon-bold-solid:before { content: "\e668"; }
41
+ .kdicon-border:before { content: "\e6f9"; }
42
+ .kdicon-bottom-border:before { content: "\e704"; }
43
+ .kdicon-business-type:before { content: "\e716"; }
44
+ .kdicon-cancel:before { content: "\e68f"; }
45
+ .kdicon-cell:before { content: "\e692"; }
46
+ .kdicon-change:before { content: "\e6e2"; }
47
+ .kdicon-chart-display:before { content: "\e710"; }
48
+ .kdicon-chart:before { content: "\e6d0"; }
49
+ .kdicon-classify:before { content: "\e6d4"; }
50
+ .kdicon-close-bold:before { content: "\e647"; }
51
+ .kdicon-close-full-screen:before { content: "\e679"; }
52
+ .kdicon-close-solid:before { content: "\e644"; }
53
+ .kdicon-close:before { content: "\e62f"; }
54
+ .kdicon-cn:before { content: "\e6b5"; }
55
+ .kdicon-code:before { content: "\e6ca"; }
56
+ .kdicon-collect:before { content: "\e6ec"; }
57
+ .kdicon-comment:before { content: "\e6bc"; }
58
+ .kdicon-communication-solid:before { content: "\e65e"; }
59
+ .kdicon-contract:before { content: "\e69f"; }
60
+ .kdicon-cooperation:before { content: "\e6fb"; }
61
+ .kdicon-copy-code:before { content: "\e6e1"; }
62
+ .kdicon-copy:before { content: "\e678"; }
63
+ .kdicon-counterclockwise:before { content: "\e6e5"; }
64
+ .kdicon-customize:before { content: "\e707"; }
65
+ .kdicon-date-selection:before { content: "\e70f"; }
66
+ .kdicon-date:before { content: "\e6eb"; }
67
+ .kdicon-delete-indentation:before { content: "\e697"; }
68
+ .kdicon-delete-line:before { content: "\e68c"; }
69
+ .kdicon-delete-solid:before { content: "\e667"; }
70
+ .kdicon-delete:before { content: "\e6ee"; }
71
+ .kdicon-detail:before { content: "\e6c4"; }
72
+ .kdicon-detect:before { content: "\e68e"; }
73
+ .kdicon-division-solid:before { content: "\e65a"; }
74
+ .kdicon-double-arrow-left:before { content: "\e64a"; }
75
+ .kdicon-double-arrow-right:before { content: "\e649"; }
76
+ .kdicon-download:before { content: "\e70a"; }
77
+ .kdicon-edit-border:before { content: "\e6c8"; }
78
+ .kdicon-edit-view:before { content: "\e6c7"; }
79
+ .kdicon-edit:before { content: "\e6a6"; }
80
+ .kdicon-education:before { content: "\e69d"; }
81
+ .kdicon-eliminate-solid:before { content: "\e659"; }
82
+ .kdicon-en:before { content: "\e6b6"; }
83
+ .kdicon-enlarge:before { content: "\e6d5"; }
84
+ .kdicon-equal:before { content: "\e6a3"; }
85
+ .kdicon-exclamatory:before { content: "\e64e"; }
86
+ .kdicon-expand:before { content: "\e651"; }
87
+ .kdicon-experience:before { content: "\e6ff"; }
88
+ .kdicon-fail:before { content: "\e6a5"; }
89
+ .kdicon-feedback:before { content: "\e6d6"; }
90
+ .kdicon-female:before { content: "\e684"; }
91
+ .kdicon-filter-solid:before { content: "\e66a"; }
92
+ .kdicon-filter-switch:before { content: "\e6b1"; }
93
+ .kdicon-filter:before { content: "\e6a0"; }
94
+ .kdicon-finish:before { content: "\e6dc"; }
95
+ .kdicon-first:before { content: "\e630"; }
96
+ .kdicon-fixed-shrink:before { content: "\e693"; }
97
+ .kdicon-fixed-solid:before { content: "\e65f"; }
98
+ .kdicon-fixed-window:before { content: "\e6d1"; }
99
+ .kdicon-fixed:before { content: "\e6e3"; }
100
+ .kdicon-foldmenu:before { content: "\e70e"; }
101
+ .kdicon-font-background-solid:before { content: "\e673"; }
102
+ .kdicon-font-color-solid:before { content: "\e674"; }
103
+ .kdicon-forbid:before { content: "\e69b"; }
104
+ .kdicon-git:before { content: "\e6c1"; }
105
+ .kdicon-graffiti:before { content: "\e6fe"; }
106
+ .kdicon-greater-equal:before { content: "\e6d7"; }
107
+ .kdicon-have-attachment:before { content: "\e6a8"; }
108
+ .kdicon-hide:before { content: "\e6a9"; }
109
+ .kdicon-hyperlink:before { content: "\e6c9"; }
110
+ .kdicon-image:before { content: "\e687"; }
111
+ .kdicon-import:before { content: "\e6cb"; }
112
+ .kdicon-international:before { content: "\e719"; }
113
+ .kdicon-job-info:before { content: "\e68d"; }
114
+ .kdicon-last:before { content: "\e631"; }
115
+ .kdicon-left-border:before { content: "\e708"; }
116
+ .kdicon-left-extension:before { content: "\e6ae"; }
117
+ .kdicon-left-unfold-solid:before { content: "\e675"; }
118
+ .kdicon-left-unfold:before { content: "\e709"; }
119
+ .kdicon-like:before { content: "\e67f"; }
120
+ .kdicon-list:before { content: "\e6e6"; }
121
+ .kdicon-little-k:before { content: "\e700"; }
122
+ .kdicon-loadding-circle:before { content: "\e645"; }
123
+ .kdicon-loadding:before { content: "\e62d"; }
124
+ .kdicon-location-solid:before { content: "\e640"; }
125
+ .kdicon-location:before { content: "\e695"; }
126
+ .kdicon-lock-solid:before { content: "\e66b"; }
127
+ .kdicon-lock:before { content: "\e68b"; }
128
+ .kdicon-male:before { content: "\e683"; }
129
+ .kdicon-material:before { content: "\e6db"; }
130
+ .kdicon-medical-report:before { content: "\e703"; }
131
+ .kdicon-menu:before { content: "\e6d8"; }
132
+ .kdicon-merge-cell:before { content: "\e6f3"; }
133
+ .kdicon-more-info-solid:before { content: "\e660"; }
134
+ .kdicon-more-info:before { content: "\e6e4"; }
135
+ .kdicon-more-item:before { content: "\e6f4"; }
136
+ .kdicon-more:before { content: "\e6a1"; }
137
+ .kdicon-mosaic-solid:before { content: "\e663"; }
138
+ .kdicon-multiply:before { content: "\e65b"; }
139
+ .kdicon-my-receipt:before { content: "\e715"; }
140
+ .kdicon-no-border:before { content: "\e6f8"; }
141
+ .kdicon-not-equal:before { content: "\e6dd"; }
142
+ .kdicon-notice:before { content: "\e658"; }
143
+ .kdicon-oblique-solid:before { content: "\e66e"; }
144
+ .kdicon-operating-element:before { content: "\e6a4"; }
145
+ .kdicon-order-facet:before { content: "\e713"; }
146
+ .kdicon-order:before { content: "\e6d2"; }
147
+ .kdicon-ordered-list:before { content: "\e6fa"; }
148
+ .kdicon-person-solid:before { content: "\e669"; }
149
+ .kdicon-phone:before { content: "\e6d3"; }
150
+ .kdicon-platform:before { content: "\e6f1"; }
151
+ .kdicon-preview-view:before { content: "\e6ba"; }
152
+ .kdicon-preview:before { content: "\e6ac"; }
153
+ .kdicon-print:before { content: "\e690"; }
154
+ .kdicon-processing-solid:before { content: "\e665"; }
155
+ .kdicon-project:before { content: "\e681"; }
156
+ .kdicon-push-down:before { content: "\e702"; }
157
+ .kdicon-put-bottom:before { content: "\e6b4"; }
158
+ .kdicon-put-off:before { content: "\e685"; }
159
+ .kdicon-put-on:before { content: "\e6bd"; }
160
+ .kdicon-put-top:before { content: "\e6b3"; }
161
+ .kdicon-qrcode:before { content: "\e6df"; }
162
+ .kdicon-qualification-info:before { content: "\e6b2"; }
163
+ .kdicon-quit:before { content: "\e6fc"; }
164
+ .kdicon-quote-solid:before { content: "\e66d"; }
165
+ .kdicon-reduce:before { content: "\e696"; }
166
+ .kdicon-reduction:before { content: "\e6f2"; }
167
+ .kdicon-refresh-solid:before { content: "\e642"; }
168
+ .kdicon-refresh:before { content: "\e629"; }
169
+ .kdicon-report-form:before { content: "\e712"; }
170
+ .kdicon-reset:before { content: "\e6b9"; }
171
+ .kdicon-resign-report:before { content: "\e699"; }
172
+ .kdicon-return:before { content: "\e6e0"; }
173
+ .kdicon-right-bold:before { content: "\e648"; }
174
+ .kdicon-right-border:before { content: "\e67c"; }
175
+ .kdicon-right-extension:before { content: "\e6aa"; }
176
+ .kdicon-right-solid:before { content: "\e641"; }
177
+ .kdicon-right-unfold-solid:before { content: "\e672"; }
178
+ .kdicon-right-unfold:before { content: "\e6ab"; }
179
+ .kdicon-right:before { content: "\e62e"; }
180
+ .kdicon-rough-border:before { content: "\e6de"; }
181
+ .kdicon-save:before { content: "\e6c2"; }
182
+ .kdicon-scanning:before { content: "\e67d"; }
183
+ .kdicon-search-border:before { content: "\e6da"; }
184
+ .kdicon-search:before { content: "\e62a"; }
185
+ .kdicon-setting:before { content: "\e652"; }
186
+ .kdicon-share:before { content: "\e6cf"; }
187
+ .kdicon-shoppingcart:before { content: "\e6bf"; }
188
+ .kdicon-shrink:before { content: "\e6fd"; }
189
+ .kdicon-shutdown:before { content: "\e686"; }
190
+ .kdicon-spin:before { content: "\e6f7"; }
191
+ .kdicon-split:before { content: "\e6c3"; }
192
+ .kdicon-star:before { content: "\e653"; }
193
+ .kdicon-stop:before { content: "\e691"; }
194
+ .kdicon-strike-solid:before { content: "\e664"; }
195
+ .kdicon-sun-solid:before { content: "\e670"; }
196
+ .kdicon-switch-down:before { content: "\e698"; }
197
+ .kdicon-switch-up:before { content: "\e680"; }
198
+ .kdicon-switch:before { content: "\e6e7"; }
199
+ .kdicon-table-setting:before { content: "\e6c6"; }
200
+ .kdicon-task-process:before { content: "\e6ea"; }
201
+ .kdicon-timezone-solid:before { content: "\e662"; }
202
+ .kdicon-tips-solid:before { content: "\e66c"; }
203
+ .kdicon-tips:before { content: "\e650"; }
204
+ .kdicon-title-solid:before { content: "\e65c"; }
205
+ .kdicon-top-border:before { content: "\e6ef"; }
206
+ .kdicon-two-window:before { content: "\e6f6"; }
207
+ .kdicon-underline-solid:before { content: "\e671"; }
208
+ .kdicon-unfold-all:before { content: "\e6ad"; }
209
+ .kdicon-unfold:before { content: "\e6bb"; }
210
+ .kdicon-unfoldmenu:before { content: "\e70d"; }
211
+ .kdicon-unlock-solid:before { content: "\e666"; }
212
+ .kdicon-unlock:before { content: "\e69e"; }
213
+ .kdicon-upload-cloud:before { content: "\e632"; }
214
+ .kdicon-upload:before { content: "\e70b"; }
215
+ .kdicon-user-info:before { content: "\e682"; }
216
+ .kdicon-vertical-center:before { content: "\e6f5"; }
217
+ .kdicon-voice:before { content: "\e6d9"; }
218
+ .kdicon-waiting:before { content: "\e64b"; }
219
+ .kdicon-warning-solid:before { content: "\e64c"; }
220
+ .kdicon-warning:before { content: "\e64d"; }
221
+ .kdicon-workbench:before { content: "\e64f"; }
222
+ .kdicon-wrap:before { content: "\e6b0"; }
223
+ .kdicon-yunzhijia:before { content: "\e706"; }
224
+ .kdicon-zoom:before { content: "\e70c"; }
Binary file
@@ -158,7 +158,7 @@ function usePopper(locatorElement, popperElement, props) {
158
158
  _props$placement = props.placement,
159
159
  placement = _props$placement === void 0 ? 'top' : _props$placement,
160
160
  _props$gap = props.gap,
161
- defalutGap = _props$gap === void 0 ? 4 : _props$gap,
161
+ defaultGap = _props$gap === void 0 ? 4 : _props$gap,
162
162
  _props$scrollHidden = props.scrollHidden,
163
163
  scrollHidden = _props$scrollHidden === void 0 ? false : _props$scrollHidden,
164
164
  _props$mouseEnterDela = props.mouseEnterDelay,
@@ -207,7 +207,7 @@ function usePopper(locatorElement, popperElement, props) {
207
207
  top: 0,
208
208
  left: 0
209
209
  };
210
- var gap = defalutGap + (arrow ? 10 : 0);
210
+ var gap = defaultGap + (arrow ? 10 : 0);
211
211
 
212
212
  var _useState = (0, _react.useState)(initPos),
213
213
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -467,8 +467,8 @@ function usePopper(locatorElement, popperElement, props) {
467
467
  };
468
468
  var popperNode = popperRef.current;
469
469
  var locatorNode = locatorRef.current;
470
- (0, _hooks.useResizeObserver)(popperNode, alignPopper);
471
- (0, _hooks.useResizeObserver)(locatorNode, alignPopper);
470
+ (0, _hooks.useResizeObserver)(popperNode || document.body, alignPopper);
471
+ (0, _hooks.useResizeObserver)(locatorNode || document.body, alignPopper);
472
472
  var showPopper = (0, _react.useCallback)(function (evType) {
473
473
  if (!disabled) {
474
474
  !exist && setExist(true);
@@ -87,8 +87,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
87
87
  return selected ? false : indeterminate;
88
88
  };
89
89
 
90
- var getDefaultClassName = (0, _classnames.default)(className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(checkboxPrefixCls), true), (0, _defineProperty2.default)(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context = "".concat(checkboxPrefixCls, "-")).call(_context, size), true && !!children), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context2 = "".concat(checkboxPrefixCls, "-")).call(_context2, checkboxType), true), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context3 = "".concat(checkboxPrefixCls, "-")).call(_context3, checkboxType, "-disabled"), disabled), _classNames));
91
- var getSquareClassName = (0, _classnames.default)(className, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(checkboxPrefixCls), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, checkboxType), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, checkboxType, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, checkboxType, "-checked"), selected && !disabled), _classNames2));
90
+ var getDefaultClassName = (0, _classnames.default)(className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(checkboxPrefixCls), true), (0, _defineProperty2.default)(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context = "".concat(checkboxPrefixCls, "-")).call(_context, size), true && !!children), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context2 = "".concat(checkboxPrefixCls, "-")).call(_context2, checkboxType), true), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context3 = "".concat(checkboxPrefixCls, "-")).call(_context3, checkboxType, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames, "checked", selected), _classNames));
91
+ var getSquareClassName = (0, _classnames.default)(className, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(checkboxPrefixCls), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context4 = "".concat(checkboxPrefixCls, "-")).call(_context4, checkboxType), true), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context5 = "".concat(checkboxPrefixCls, "-")).call(_context5, checkboxType, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context6 = "".concat(checkboxPrefixCls, "-")).call(_context6, checkboxType, "-checked"), selected && !disabled), (0, _defineProperty2.default)(_classNames2, "checked", selected), _classNames2));
92
92
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
93
93
  var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(checkboxPrefixCls, "-input"), true));
94
94
  var checkedWrapperClassName = (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context7 = "".concat(checkboxPrefixCls, "-")).call(_context7, checkboxType, "-no-child"), !children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context8 = "".concat(checkboxPrefixCls, "-")).call(_context8, checkboxType, "-wrapper"), true), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context9 = "".concat(checkboxPrefixCls, "-")).call(_context9, checkboxType, "-wrapper-size"), !!children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context10 = "".concat(checkboxPrefixCls, "-")).call(_context10, checkboxType, "-margin"), !!children), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context11 = "".concat(checkboxPrefixCls, "-")).call(_context11, checkboxType, "-checked"), selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context12 = "".concat(checkboxPrefixCls, "-")).call(_context12, checkboxType, "-indeterminate"), getIndeterminate()), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context13 = "".concat(checkboxPrefixCls, "-")).call(_context13, checkboxType, "-disabled"), disabled && !selected), (0, _defineProperty2.default)(_classNames4, (0, _concat.default)(_context14 = "".concat(checkboxPrefixCls, "-")).call(_context14, checkboxType, "-checked-disabled"), disabled && selected), _classNames4));
@@ -134,8 +134,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
134
134
  ref: ref,
135
135
  value: value,
136
136
  checked: selected,
137
- disabled: disabled,
138
- name: name
137
+ disabled: disabled
139
138
  })), children && /*#__PURE__*/_react.default.createElement("span", {
140
139
  className: "".concat(checkboxPrefixCls, "-children")
141
140
  }, children), !isDefaultType() && /*#__PURE__*/_react.default.createElement("span", {