@kdcloudjs/kdesign 1.1.1 → 1.2.0

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 (128) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/kdesign-complete.less +662 -572
  3. package/dist/kdesign.css +400 -316
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +287 -40
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +4 -4
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/usePopper.js +4 -5
  11. package/es/anchor/anchor.js +0 -6
  12. package/es/anchor/style/index.css +5 -2
  13. package/es/anchor/style/index.less +6 -2
  14. package/es/anchor/style/token.less +2 -1
  15. package/es/button/button.d.ts +1 -1
  16. package/es/button/button.js +2 -2
  17. package/es/button/group.d.ts +21 -0
  18. package/es/button/group.js +130 -0
  19. package/es/button/index.d.ts +5 -1
  20. package/es/button/index.js +4 -1
  21. package/es/button/style/index.css +117 -21
  22. package/es/button/style/index.less +332 -192
  23. package/es/button/style/token.less +41 -25
  24. package/es/carousel/carousel.js +4 -0
  25. package/es/checkbox/checkbox.js +3 -4
  26. package/es/checkbox/style/index.css +36 -33
  27. package/es/checkbox/style/index.less +25 -18
  28. package/es/checkbox/style/token.less +34 -35
  29. package/es/config-provider/compDefaultProps.d.ts +4 -0
  30. package/es/config-provider/compDefaultProps.js +4 -0
  31. package/es/date-picker/style/index.css +8 -8
  32. package/es/date-picker/style/index.less +8 -8
  33. package/es/date-picker/style/token.less +3 -21
  34. package/es/empty/defaultEmptyImg.js +5 -3
  35. package/es/empty/illustrationEmptyImg.js +6 -4
  36. package/es/icon/interface.js +1 -1
  37. package/es/image/preview.js +1 -1
  38. package/es/image/style/index.css +8 -8
  39. package/es/image/style/index.less +5 -5
  40. package/es/image/style/token.less +12 -25
  41. package/es/input/style/index.css +53 -50
  42. package/es/input/style/index.less +5 -4
  43. package/es/input/style/mixin.less +1 -0
  44. package/es/input/style/token.less +23 -20
  45. package/es/layout/style/index.css +1 -1
  46. package/es/layout/style/index.less +1 -1
  47. package/es/layout/style/token.less +5 -5
  48. package/es/menu/style/index.css +76 -114
  49. package/es/menu/style/index.less +66 -140
  50. package/es/menu/style/mixin.less +10 -1
  51. package/es/menu/style/token.less +9 -12
  52. package/es/menu/subMenu.js +2 -1
  53. package/es/pagination/pagination.js +4 -4
  54. package/es/pagination/style/index.css +70 -55
  55. package/es/pagination/style/index.less +61 -43
  56. package/es/pagination/style/token.less +4 -4
  57. package/es/radio/radio.js +21 -8
  58. package/es/rate/style/index.css +9 -9
  59. package/es/rate/style/token.less +6 -6
  60. package/es/select/style/index.css +1 -1
  61. package/es/select/style/token.less +1 -1
  62. package/es/stepper/style/index.css +1 -1
  63. package/es/stepper/style/token.less +1 -1
  64. package/es/style/icon/kdicon.css +225 -0
  65. package/es/style/icon/kdicon.woff +0 -0
  66. package/es/switch/style/index.css +11 -11
  67. package/es/switch/style/index.less +2 -2
  68. package/es/switch/style/token.less +7 -10
  69. package/lib/_utils/usePopper.js +4 -5
  70. package/lib/anchor/anchor.js +0 -6
  71. package/lib/anchor/style/index.css +5 -2
  72. package/lib/anchor/style/index.less +6 -2
  73. package/lib/anchor/style/token.less +2 -1
  74. package/lib/button/button.d.ts +1 -1
  75. package/lib/button/button.js +2 -2
  76. package/lib/button/group.d.ts +21 -0
  77. package/lib/button/group.js +166 -0
  78. package/lib/button/index.d.ts +5 -1
  79. package/lib/button/index.js +5 -1
  80. package/lib/button/style/index.css +117 -21
  81. package/lib/button/style/index.less +332 -192
  82. package/lib/button/style/token.less +41 -25
  83. package/lib/carousel/carousel.js +4 -0
  84. package/lib/checkbox/checkbox.js +3 -4
  85. package/lib/checkbox/style/index.css +36 -33
  86. package/lib/checkbox/style/index.less +25 -18
  87. package/lib/checkbox/style/token.less +34 -35
  88. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  89. package/lib/config-provider/compDefaultProps.js +4 -0
  90. package/lib/date-picker/style/index.css +8 -8
  91. package/lib/date-picker/style/index.less +8 -8
  92. package/lib/date-picker/style/token.less +3 -21
  93. package/lib/empty/defaultEmptyImg.js +6 -3
  94. package/lib/empty/illustrationEmptyImg.js +7 -4
  95. package/lib/icon/interface.js +1 -1
  96. package/lib/image/preview.js +1 -1
  97. package/lib/image/style/index.css +8 -8
  98. package/lib/image/style/index.less +5 -5
  99. package/lib/image/style/token.less +12 -25
  100. package/lib/input/style/index.css +53 -50
  101. package/lib/input/style/index.less +5 -4
  102. package/lib/input/style/mixin.less +1 -0
  103. package/lib/input/style/token.less +23 -20
  104. package/lib/layout/style/index.css +1 -1
  105. package/lib/layout/style/index.less +1 -1
  106. package/lib/layout/style/token.less +5 -5
  107. package/lib/menu/style/index.css +76 -114
  108. package/lib/menu/style/index.less +66 -140
  109. package/lib/menu/style/mixin.less +10 -1
  110. package/lib/menu/style/token.less +9 -12
  111. package/lib/menu/subMenu.js +2 -1
  112. package/lib/pagination/pagination.js +4 -3
  113. package/lib/pagination/style/index.css +70 -55
  114. package/lib/pagination/style/index.less +61 -43
  115. package/lib/pagination/style/token.less +4 -4
  116. package/lib/radio/radio.js +21 -8
  117. package/lib/rate/style/index.css +9 -9
  118. package/lib/rate/style/token.less +6 -6
  119. package/lib/select/style/index.css +1 -1
  120. package/lib/select/style/token.less +1 -1
  121. package/lib/stepper/style/index.css +1 -1
  122. package/lib/stepper/style/token.less +1 -1
  123. package/lib/style/icon/kdicon.css +225 -0
  124. package/lib/style/icon/kdicon.woff +0 -0
  125. package/lib/switch/style/index.css +11 -11
  126. package/lib/switch/style/index.less +2 -2
  127. package/lib/switch/style/token.less +7 -10
  128. package/package.json +1 -1
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);
@@ -121,13 +121,13 @@
121
121
  justify-content: flex-start;
122
122
  }
123
123
  .kd-rate-size-large {
124
- font-size: var(--kd-c-rate-font-size-large, var(--kd-g-font-size-large, 16px));
124
+ font-size: var(--kd-c-rate-font-size-large, 20px);
125
125
  }
126
126
  .kd-rate-size-middle {
127
- font-size: var(--kd-c-rate-font-size-middle, var(--kd-g-font-size-middle, 14px));
127
+ font-size: var(--kd-c-rate-font-size-middle, 16px);
128
128
  }
129
129
  .kd-rate-size-small {
130
- font-size: var(--kd-c-rate-font-size-small, var(--kd-g-font-size-small, 12px));
130
+ font-size: var(--kd-c-rate-font-size-small, 12px);
131
131
  }
132
132
  .kd-rate-item {
133
133
  display: -webkit-inline-box;
@@ -141,7 +141,7 @@
141
141
  -ms-flex-align: center;
142
142
  align-items: center;
143
143
  line-height: 100%;
144
- margin-right: var(--kd-c-rate-spacing-margin-right, 10px);
144
+ margin-right: var(--kd-c-rate-spacing-margin-right, 8px);
145
145
  }
146
146
  .kd-rate-item .kd-rate-icon-view {
147
147
  position: relative;
@@ -171,20 +171,20 @@
171
171
  left: 0;
172
172
  width: 50%;
173
173
  overflow: hidden;
174
- color: var(--kd-c-rate-color-text-not-selected, #d9d9d9);
174
+ color: var(--kd-c-rate-color-text-not-selected, #E5E5E5);
175
175
  opacity: 1;
176
176
  cursor: pointer;
177
177
  -webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
178
178
  transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
179
179
  }
180
180
  .kd-rate-item .kd-rate-icon-first:hover {
181
- color: var(--kd-c-rate-color-text-selected, #fdc200);
181
+ color: var(--kd-c-rate-color-text-selected, #FEC104);
182
182
  }
183
183
  .kd-rate-item .kd-rate-icon-second {
184
184
  display: -webkit-inline-box;
185
185
  display: -ms-inline-flexbox;
186
186
  display: inline-flex;
187
- color: var(--kd-c-rate-color-text-not-selected, #d9d9d9);
187
+ color: var(--kd-c-rate-color-text-not-selected, #E5E5E5);
188
188
  opacity: 1;
189
189
  cursor: pointer;
190
190
  -webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
@@ -196,10 +196,10 @@
196
196
  display: inline-flex;
197
197
  }
198
198
  .kd-rate-item .kd-rate-icon-second:hover {
199
- color: var(--kd-c-rate-color-text-selected, #fdc200);
199
+ color: var(--kd-c-rate-color-text-selected, #FEC104);
200
200
  }
201
201
  .kd-rate-item .kd-rate-icon-selected {
202
- color: var(--kd-c-rate-color-text-selected, #fdc200);
202
+ color: var(--kd-c-rate-color-text-selected, #FEC104);
203
203
  opacity: 1;
204
204
  }
205
205
  .kd-rate-item:last-child {
@@ -3,16 +3,16 @@
3
3
  @rate-prefix: '--@{kd-prefix}-c-rate';
4
4
 
5
5
  // color
6
- @rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #fdc200);
7
- @rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #d9d9d9);
6
+ @rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #FEC104);
7
+ @rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #E5E5E5);
8
8
 
9
9
  // font
10
- @rate-small-font-size: var(~'@{rate-prefix}-font-size-small', @font-size-small);
11
- @rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', @font-size-middle);
12
- @rate-large-font-size: var(~'@{rate-prefix}-font-size-large', @font-size-large);
10
+ @rate-small-font-size: var(~'@{rate-prefix}-font-size-small', 12px);
11
+ @rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', 16px);
12
+ @rate-large-font-size: var(~'@{rate-prefix}-font-size-large', 20px);
13
13
 
14
14
  // motion
15
15
  @rate-transition-duration: var(~'@{rate-prefix}-motion-duration', @duration-promptly);
16
16
 
17
17
  // spacing
18
- @rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 10px);
18
+ @rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 8px);
@@ -414,7 +414,7 @@
414
414
  }
415
415
  .kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
416
416
  color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-theme, #5582f3));
417
- background-color: var(--kd-c-select-color-background-selected, #f2f9ff);
417
+ background-color: var(--kd-c-select-color-background-selected, var(--kd-g-color-theme-3, #e3eeff));
418
418
  }
419
419
  .kd-select-item-option-disabled {
420
420
  color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
@@ -7,7 +7,7 @@
7
7
  @select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
8
8
  @select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
9
9
  @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
10
- @select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', #f2f9ff);
10
+ @select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
11
11
  @select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
12
12
  @select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
13
13
  @select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
@@ -199,7 +199,7 @@
199
199
  justify-content: center;
200
200
  height: 100%;
201
201
  border-radius: 0 1px 1px 0;
202
- background-color: var(--kd-c-stepper-embed-icon-color-background, #f6f7f9);
202
+ background-color: var(--kd-c-stepper-embed-icon-color-background, transparent);
203
203
  overflow: hidden;
204
204
  border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
205
205
  border: none;
@@ -6,7 +6,7 @@
6
6
  @stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
7
7
  @stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
8
8
  @stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
9
- @stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', #f6f7f9);
9
+ @stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', transparent);
10
10
 
11
11
  // font
12
12
  @stepper-input-font-size: var(~'@{stepper-prefix}-input-font-size', 12px);
@@ -0,0 +1,225 @@
1
+ @font-face {
2
+ font-family: "kdicon";
3
+ src: url("kdicon.woff?t=1649311510226") 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-sigma:before { content: "\e71b"; }
191
+ .kdicon-spin:before { content: "\e6f7"; }
192
+ .kdicon-split:before { content: "\e6c3"; }
193
+ .kdicon-star:before { content: "\e653"; }
194
+ .kdicon-stop:before { content: "\e691"; }
195
+ .kdicon-strike-solid:before { content: "\e664"; }
196
+ .kdicon-sun-solid:before { content: "\e670"; }
197
+ .kdicon-switch-down:before { content: "\e698"; }
198
+ .kdicon-switch-up:before { content: "\e680"; }
199
+ .kdicon-switch:before { content: "\e6e7"; }
200
+ .kdicon-table-setting:before { content: "\e6c6"; }
201
+ .kdicon-task-process:before { content: "\e6ea"; }
202
+ .kdicon-timezone-solid:before { content: "\e662"; }
203
+ .kdicon-tips-solid:before { content: "\e66c"; }
204
+ .kdicon-tips:before { content: "\e650"; }
205
+ .kdicon-title-solid:before { content: "\e65c"; }
206
+ .kdicon-top-border:before { content: "\e6ef"; }
207
+ .kdicon-two-window:before { content: "\e6f6"; }
208
+ .kdicon-underline-solid:before { content: "\e671"; }
209
+ .kdicon-unfold-all:before { content: "\e6ad"; }
210
+ .kdicon-unfold:before { content: "\e6bb"; }
211
+ .kdicon-unfoldmenu:before { content: "\e70d"; }
212
+ .kdicon-unlock-solid:before { content: "\e666"; }
213
+ .kdicon-unlock:before { content: "\e69e"; }
214
+ .kdicon-upload-cloud:before { content: "\e632"; }
215
+ .kdicon-upload:before { content: "\e70b"; }
216
+ .kdicon-user-info:before { content: "\e682"; }
217
+ .kdicon-vertical-center:before { content: "\e6f5"; }
218
+ .kdicon-voice:before { content: "\e6d9"; }
219
+ .kdicon-waiting:before { content: "\e64b"; }
220
+ .kdicon-warning-solid:before { content: "\e64c"; }
221
+ .kdicon-warning:before { content: "\e64d"; }
222
+ .kdicon-workbench:before { content: "\e64f"; }
223
+ .kdicon-wrap:before { content: "\e6b0"; }
224
+ .kdicon-yunzhijia:before { content: "\e706"; }
225
+ .kdicon-zoom:before { content: "\e70c"; }
Binary file
@@ -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, #999);
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, var(--kd-g-color-disabled, #b2b2b2));
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
- opacity: 0.5;
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, 14px);
187
- min-width: var(--kd-c-switch-small-sizing-width, 28px);
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, 7px);
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, 14px) - 2px);
194
- height: calc(var(--kd-c-switch-small-sizing-height, 14px) - 2px);
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, 14px) - 2px);
198
- height: calc(var(--kd-c-switch-small-sizing-height, 14px) - 2px);
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
- opacity: 0.5;
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', #999);
9
- @switch-disabled-bg: var(~'@{switch-prefix}-color-background-disabled', @color-disabled);
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', 7px);
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', 14px);
30
- @switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 28px);
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);
@@ -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);
@@ -490,7 +490,6 @@ function usePopper(locatorElement, popperElement, props) {
490
490
  }
491
491
  }, [disabled, exist, onTrigger, visible]);
492
492
  var hidePopper = (0, _react.useCallback)(function () {
493
- setEvType('');
494
493
  props.visible === undefined && setVisible(false);
495
494
  onVisibleChange && onVisibleChange(false);
496
495
  }, [onVisibleChange, props.visible]);
@@ -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 6px;
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-icon-font-size, 16px);
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 6px;
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-icon-font-size;
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);
@@ -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];