@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +79 -3
  2. package/dist/kdesign-complete.less +1006 -783
  3. package/dist/kdesign.css +358 -268
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +529 -262
  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 +33 -12
  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/carousel/displayList.js +8 -4
  26. package/es/carousel/fadeList.js +9 -5
  27. package/es/carousel/slideList.js +6 -3
  28. package/es/carousel/style/index.css +65 -0
  29. package/es/carousel/style/index.less +66 -1
  30. package/es/collapse/panel.d.ts +1 -0
  31. package/es/collapse/panel.js +17 -5
  32. package/es/collapse/style/index.css +32 -6
  33. package/es/collapse/style/index.less +24 -1
  34. package/es/collapse/style/token.less +12 -10
  35. package/es/config-provider/compDefaultProps.d.ts +4 -0
  36. package/es/config-provider/compDefaultProps.js +4 -0
  37. package/es/drawer/drawer.d.ts +1 -0
  38. package/es/drawer/drawer.js +56 -21
  39. package/es/empty/defaultEmptyImg.js +5 -3
  40. package/es/empty/illustrationEmptyImg.js +6 -4
  41. package/es/icon/interface.js +1 -1
  42. package/es/image/preview.js +1 -1
  43. package/es/image/style/index.css +8 -8
  44. package/es/image/style/index.less +5 -5
  45. package/es/image/style/token.less +12 -25
  46. package/es/radio/radio.js +3 -1
  47. package/es/radio/style/index.css +51 -24
  48. package/es/radio/style/index.less +28 -2
  49. package/es/radio/style/token.less +4 -4
  50. package/es/rate/style/index.css +9 -9
  51. package/es/rate/style/token.less +6 -6
  52. package/es/select/option.js +1 -1
  53. package/es/select/style/index.css +14 -5
  54. package/es/select/style/index.less +374 -368
  55. package/es/select/style/token.less +2 -2
  56. package/es/stepper/style/index.css +1 -1
  57. package/es/stepper/style/token.less +1 -1
  58. package/es/steps/style/index.css +40 -32
  59. package/es/steps/style/index.less +23 -33
  60. package/es/steps/style/token.less +6 -9
  61. package/es/style/icon/kdicon.css +2 -1
  62. package/es/style/icon/kdicon.woff +0 -0
  63. package/es/switch/style/index.css +11 -11
  64. package/es/switch/style/index.less +2 -2
  65. package/es/switch/style/token.less +7 -10
  66. package/es/tabs/tabs.js +5 -1
  67. package/es/tag/style/index.css +2 -147
  68. package/es/tag/style/index.less +4 -24
  69. package/es/tag/style/mixin.less +0 -13
  70. package/es/tag/style/token.less +1 -1
  71. package/lib/_utils/usePopper.js +34 -12
  72. package/lib/anchor/anchor.js +0 -6
  73. package/lib/anchor/style/index.css +5 -2
  74. package/lib/anchor/style/index.less +6 -2
  75. package/lib/anchor/style/token.less +2 -1
  76. package/lib/button/button.d.ts +1 -1
  77. package/lib/button/button.js +2 -2
  78. package/lib/button/group.d.ts +21 -0
  79. package/lib/button/group.js +166 -0
  80. package/lib/button/index.d.ts +5 -1
  81. package/lib/button/index.js +5 -1
  82. package/lib/button/style/index.css +117 -21
  83. package/lib/button/style/index.less +332 -192
  84. package/lib/button/style/token.less +41 -25
  85. package/lib/carousel/carousel.js +4 -0
  86. package/lib/carousel/displayList.js +9 -4
  87. package/lib/carousel/fadeList.js +10 -5
  88. package/lib/carousel/slideList.js +6 -3
  89. package/lib/carousel/style/index.css +65 -0
  90. package/lib/carousel/style/index.less +66 -1
  91. package/lib/collapse/panel.d.ts +1 -0
  92. package/lib/collapse/panel.js +17 -5
  93. package/lib/collapse/style/index.css +32 -6
  94. package/lib/collapse/style/index.less +24 -1
  95. package/lib/collapse/style/token.less +12 -10
  96. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  97. package/lib/config-provider/compDefaultProps.js +4 -0
  98. package/lib/drawer/drawer.d.ts +1 -0
  99. package/lib/drawer/drawer.js +61 -27
  100. package/lib/empty/defaultEmptyImg.js +6 -3
  101. package/lib/empty/illustrationEmptyImg.js +7 -4
  102. package/lib/icon/interface.js +1 -1
  103. package/lib/image/preview.js +1 -1
  104. package/lib/image/style/index.css +8 -8
  105. package/lib/image/style/index.less +5 -5
  106. package/lib/image/style/token.less +12 -25
  107. package/lib/radio/radio.js +3 -1
  108. package/lib/radio/style/index.css +51 -24
  109. package/lib/radio/style/index.less +28 -2
  110. package/lib/radio/style/token.less +4 -4
  111. package/lib/rate/style/index.css +9 -9
  112. package/lib/rate/style/token.less +6 -6
  113. package/lib/select/option.js +1 -1
  114. package/lib/select/style/index.css +14 -5
  115. package/lib/select/style/index.less +374 -368
  116. package/lib/select/style/token.less +2 -2
  117. package/lib/stepper/style/index.css +1 -1
  118. package/lib/stepper/style/token.less +1 -1
  119. package/lib/steps/style/index.css +40 -32
  120. package/lib/steps/style/index.less +23 -33
  121. package/lib/steps/style/token.less +6 -9
  122. package/lib/style/icon/kdicon.css +2 -1
  123. package/lib/style/icon/kdicon.woff +0 -0
  124. package/lib/switch/style/index.css +11 -11
  125. package/lib/switch/style/index.less +2 -2
  126. package/lib/switch/style/token.less +7 -10
  127. package/lib/tabs/tabs.js +6 -1
  128. package/lib/tag/style/index.css +2 -147
  129. package/lib/tag/style/index.less +4 -24
  130. package/lib/tag/style/mixin.less +0 -13
  131. package/lib/tag/style/token.less +1 -1
  132. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  // color
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
- @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
9
+ @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', #f5f5f5);
10
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);
@@ -15,7 +15,7 @@
15
15
  @select-placeholder-color: var(~'@{select-custom-prefix}-placeholder-color-text', @color-text-third);
16
16
  @select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-theme);
17
17
  @select-font-color: var(~'@{select-custom-prefix}-footer-color-text', @color-text-primary);
18
- @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', @color-text-link);
18
+ @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', #0e5fd8);
19
19
  @select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);
20
20
 
21
21
  // font
@@ -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);
@@ -108,9 +108,13 @@
108
108
  -webkit-box-pack: justify;
109
109
  -ms-flex-pack: justify;
110
110
  justify-content: space-between;
111
- -webkit-box-align: baseline;
112
- -ms-flex-align: baseline;
113
- align-items: baseline;
111
+ }
112
+ .kd-steps .kd-steps-icon {
113
+ border: 2px solid;
114
+ padding-top: 1px;
115
+ }
116
+ .kd-steps .kdicon-exclamatory {
117
+ font-size: 30px;
114
118
  }
115
119
  .kd-steps-item {
116
120
  -webkit-box-flex: 1;
@@ -132,24 +136,24 @@
132
136
  }
133
137
  .kd-steps-item-clickable.kd-steps-item-wait .kd-steps-icon,
134
138
  .kd-steps-item-clickable.kd-steps-item-wait .kd-steps-item-title {
135
- -webkit-transition: all var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s));
136
- transition: all var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s));
139
+ -webkit-transition: all var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s));
140
+ transition: all var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s));
137
141
  }
138
142
  .kd-steps-item-clickable.kd-steps-item-wait:hover .kd-steps-icon {
139
143
  background-color: var(--kd-c-steps-color-white, var(--kd-g-color-white, #fff));
140
- color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
141
- border: 2px solid var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
144
+ color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
145
+ border-color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
142
146
  }
143
147
  .kd-steps-item-clickable.kd-steps-item-wait:hover .kd-steps-item-title,
144
148
  .kd-steps-item-clickable.kd-steps-item-wait:hover .kd-steps-item-description {
145
- color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
149
+ color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
146
150
  }
147
151
  .kd-steps-item-clickable.kd-steps-item-finish .kd-steps-item-title {
148
- -webkit-transition: all var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) ease;
149
- transition: all var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) ease;
152
+ -webkit-transition: all var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) ease;
153
+ transition: all var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) ease;
150
154
  }
151
155
  .kd-steps-item-clickable.kd-steps-item-finish:hover .kd-steps-item-title {
152
- color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
156
+ color: var(--kd-c-steps-color-completed, var(--kd-g-color-success, #1ba854));
153
157
  }
154
158
  .kd-steps-item-container {
155
159
  width: 100%;
@@ -176,13 +180,14 @@
176
180
  .kd-steps-item-iconContainer::after {
177
181
  content: '';
178
182
  width: 100%;
179
- height: var(--kd-c-steps-line-sizing-height, 4px);
180
- background-color: var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
183
+ height: var(--kd-c-steps-line-sizing-height, 1px);
184
+ border-bottom: 1px dashed var(--kd-c-steps-color-wait, #999);
185
+ border-left: 1px dashed var(--kd-c-steps-color-wait, #999);
181
186
  position: absolute;
182
187
  left: 50%;
183
- top: calc(50% - var(--kd-c-steps-line-sizing-height, 4px) / 2);
184
- -webkit-transition: width var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96);
185
- transition: width var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color var(--kd-c-steps-duration-promptly, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96);
188
+ top: calc(50% - var(--kd-c-steps-line-sizing-height, 1px) / 2);
189
+ -webkit-transition: width var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96);
190
+ transition: width var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color var(--kd-c-steps-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.48, 0.04, 0.52, 0.96);
186
191
  }
187
192
  .kd-steps-item-iconContainer:last-child::after {
188
193
  display: none;
@@ -214,10 +219,10 @@
214
219
  -ms-flex-align: center;
215
220
  align-items: center;
216
221
  background-color: var(--kd-c-steps-color-white, var(--kd-g-color-white, #fff));
217
- color: var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
222
+ color: var(--kd-c-steps-color-wait, #999);
218
223
  font-size: calc(var(--kd-c-steps-icon-sizing-width, 28px) - 13px);
219
224
  border-radius: 50%;
220
- border: 2px solid var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
225
+ border-color: var(--kd-c-steps-color-wait, #999);
221
226
  -webkit-box-sizing: border-box;
222
227
  box-sizing: border-box;
223
228
  }
@@ -227,7 +232,7 @@
227
232
  .kd-steps-item-content .kd-steps-item-title {
228
233
  line-height: 20px;
229
234
  font-size: var(--kd-c-steps-font-size, var(--kd-g-font-size-small, 12px));
230
- color: var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
235
+ color: var(--kd-c-steps-color-wait, #999);
231
236
  overflow: hidden;
232
237
  text-overflow: ellipsis;
233
238
  word-break: break-word;
@@ -237,7 +242,7 @@
237
242
  .kd-steps-item-content .kd-steps-item-description {
238
243
  line-height: 20px;
239
244
  font-size: var(--kd-c-steps-font-size, var(--kd-g-font-size-small, 12px));
240
- color: var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
245
+ color: var(--kd-c-steps-color-wait, #999);
241
246
  overflow: hidden;
242
247
  text-overflow: ellipsis;
243
248
  word-break: break-word;
@@ -245,32 +250,35 @@
245
250
  -webkit-box-orient: vertical;
246
251
  width: var(--kd-c-steps-vertical-description-sizing-width, 200px);
247
252
  }
253
+ .kd-steps-item-process {
254
+ color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
255
+ }
248
256
  .kd-steps-item-process .kd-steps-icon {
249
- background-color: var(--kd-c-steps-icon-color-background, var(--kd-g-color-theme, #5582f3));
257
+ background-color: var(--kd-c-steps-color-white, var(--kd-g-color-white, #fff));
258
+ color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
259
+ border-color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
250
260
  }
251
- .kd-steps-item-process .kd-steps-item-title {
252
- color: var(--kd-c-steps-color-wait, var(--kd-g-color-text-secondary, #666));
261
+ .kd-steps-item-process .kd-steps-item-title,
262
+ .kd-steps-item-process .kd-steps-item-description {
263
+ color: var(--kd-c-steps-color-hover, var(--kd-g-color-theme, #5582f3));
253
264
  }
254
265
  .kd-steps-item:last-child .kd-steps-item-iconContainer::after {
255
266
  display: none;
256
267
  }
257
268
  .kd-steps-item-finish .kd-steps-icon {
258
269
  background-color: var(--kd-c-steps-color-white, var(--kd-g-color-white, #fff));
259
- color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
260
- border: 2px solid var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
270
+ color: var(--kd-c-steps-color-completed, var(--kd-g-color-success, #1ba854));
271
+ border-color: var(--kd-c-steps-color-completed, var(--kd-g-color-success, #1ba854));
261
272
  -webkit-box-sizing: border-box;
262
273
  box-sizing: border-box;
263
274
  }
264
275
  .kd-steps-item-finish .kd-steps-item-content .kd-steps-item-title,
265
276
  .kd-steps-item-finish .kd-steps-item-content .kd-steps-item-description {
266
- color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
267
- }
268
- .kd-steps-item-iconContainer-finish::after {
269
- background-color: var(--kd-c-steps-color-completed, var(--kd-g-color-theme, #5582f3));
277
+ color: var(--kd-c-steps-color-completed, var(--kd-g-color-success, #1ba854));
270
278
  }
271
279
  .kd-steps-item-error .kd-steps-icon {
272
280
  color: var(--kd-c-steps-color-error, var(--kd-g-color-error, #fb2323));
273
- border: 2px solid var(--kd-c-steps-color-error, var(--kd-g-color-error, #fb2323));
281
+ border-color: var(--kd-c-steps-color-error, var(--kd-g-color-error, #fb2323));
274
282
  }
275
283
  .kd-steps-item-error .kd-steps-item-content .kd-steps-item-title,
276
284
  .kd-steps-item-error .kd-steps-item-content .kd-steps-item-description {
@@ -331,10 +339,10 @@
331
339
  margin-right: 4px;
332
340
  }
333
341
  .kd-steps-vertical .kd-steps-item-iconContainer::after {
334
- width: var(--kd-c-steps-line-sizing-height, 4px);
342
+ width: var(--kd-c-steps-line-sizing-height, 1px);
335
343
  height: calc(100% + 44px);
336
344
  top: 2px;
337
- left: calc(50% - var(--kd-c-steps-line-sizing-height, 4px) / 2);
345
+ left: calc(50% - var(--kd-c-steps-line-sizing-height, 1px) / 2);
338
346
  }
339
347
  .kd-steps-vertical .kd-steps-item-content {
340
348
  text-align: left;
@@ -1,16 +1,19 @@
1
1
  @import '../../style/themes/index';
2
2
  @import './token.less';
3
3
 
4
-
5
4
  @steps-prefix-cls: ~'@{kd-prefix}-steps';
6
5
 
7
6
  .@{steps-prefix-cls} {
8
7
  display: flex;
9
8
  justify-content: space-between;
10
- align-items: baseline;
11
9
 
12
- &-iconSize {
13
- // font-size: @steps-font-size;
10
+ .@{steps-prefix-cls}-icon {
11
+ border: 2px solid;
12
+ padding-top: 1px;
13
+ }
14
+
15
+ .@{kd-prefix}icon-exclamatory {
16
+ font-size: 30px;
14
17
  }
15
18
 
16
19
  &-item {
@@ -31,25 +34,21 @@
31
34
  }
32
35
 
33
36
  &-clickable&-wait {
34
-
35
37
  .@{steps-prefix-cls}-icon,
36
38
  .@{steps-prefix-cls}-item-title {
37
39
  transition: all @steps-duration-promptly;
38
40
  }
39
41
 
40
-
41
42
  &:hover {
42
43
  .@{steps-prefix-cls}-icon {
43
- // background-color: @steps-color-background-wait-icon-hover;
44
-
45
44
  background-color: @steps-color-white;
46
- color: @steps-color-completed;
47
- border: 2px solid @steps-color-completed;
45
+ color: @steps-color-hover;
46
+ border-color: @steps-color-hover;
48
47
  }
49
48
 
50
49
  .@{steps-prefix-cls}-item-title,
51
50
  .@{steps-prefix-cls}-item-description {
52
- color: @steps-color-completed;
51
+ color: @steps-color-hover;
53
52
  }
54
53
  }
55
54
  }
@@ -82,11 +81,12 @@
82
81
  content: '';
83
82
  width: 100%;
84
83
  height: @steps-line-sizing-height;
85
- background-color: @steps-color-wait;
84
+ border-bottom: 1px dashed @steps-color-wait;
85
+ border-left: 1px dashed @steps-color-wait;
86
86
  position: absolute;
87
87
  left: 50%;
88
88
  top: calc(50% - @steps-line-sizing-height / 2);
89
- transition: width @steps-duration-promptly @steps-transition-fn, background-color @steps-duration-promptly @steps-transition-fn
89
+ transition: width @steps-duration-promptly cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color @steps-duration-promptly cubic-bezier(0.48, 0.04, 0.52, 0.96)
90
90
  }
91
91
 
92
92
  &:last-child {
@@ -103,7 +103,6 @@
103
103
  justify-content: center;
104
104
  align-items: center;
105
105
 
106
- // background-color:@steps-color-white;
107
106
  .@{steps-prefix-cls}-icon {
108
107
  width: @steps-icon-sizing-width;
109
108
  height: @steps-icon-sizing-width;
@@ -114,7 +113,7 @@
114
113
  color: @steps-color-wait;
115
114
  font-size: calc(@steps-icon-sizing-width - 13px);
116
115
  border-radius: 50%;
117
- border: 2px solid @steps-color-wait;
116
+ border-color: @steps-color-wait;
118
117
  box-sizing: border-box;
119
118
  }
120
119
  }
@@ -135,7 +134,6 @@
135
134
  }
136
135
 
137
136
  .@{steps-prefix-cls}-item-description {
138
-
139
137
  line-height: 20px;
140
138
  font-size: @steps-font-size;
141
139
  color: @steps-color-wait;
@@ -144,19 +142,21 @@
144
142
  word-break: break-word;
145
143
  display: -webkit-box;
146
144
  -webkit-box-orient: vertical;
147
-
148
145
  width: @steps-vertical-description-sizing-width;
149
-
150
146
  }
151
147
  }
152
148
 
153
149
  &-process {
150
+ color: @steps-color-hover;
151
+
154
152
  .@{steps-prefix-cls}-icon {
155
- background-color: @steps-color-background-process-icon;
153
+ background-color: @steps-color-white;
154
+ color: @steps-color-hover;
155
+ border-color: @steps-color-hover;
156
156
  }
157
157
 
158
- .@{steps-prefix-cls}-item-title {
159
- color: @steps-color-wait;
158
+ .@{steps-prefix-cls}-item-title, .@{steps-prefix-cls}-item-description {
159
+ color: @steps-color-hover;
160
160
  }
161
161
  }
162
162
 
@@ -172,12 +172,11 @@
172
172
  .@{steps-prefix-cls}-icon {
173
173
  background-color: @steps-color-white;
174
174
  color: @steps-color-completed;
175
- border: 2px solid @steps-color-completed;
175
+ border-color: @steps-color-completed;
176
176
  box-sizing: border-box;
177
177
  }
178
178
 
179
179
  .@{steps-prefix-cls}-item-content {
180
-
181
180
  .@{steps-prefix-cls}-item-title,
182
181
  .@{steps-prefix-cls}-item-description {
183
182
  color: @steps-color-completed;
@@ -185,31 +184,22 @@
185
184
  }
186
185
  }
187
186
 
188
- &-iconContainer-finish {
189
- &::after {
190
- background-color: @steps-color-completed;
191
- }
192
- }
193
187
 
194
188
  &-error {
195
189
  .@{steps-prefix-cls}-icon {
196
190
  color: @steps-color-error;
197
- border: 2px solid @steps-color-error;
191
+ border-color: @steps-color-error;
198
192
  }
199
193
 
200
194
  .@{steps-prefix-cls}-item-content {
201
-
202
195
  .@{steps-prefix-cls}-item-title,
203
196
  .@{steps-prefix-cls}-item-description {
204
197
  color: @steps-color-error;
205
198
  }
206
199
  }
207
-
208
-
209
200
  }
210
201
  }
211
202
 
212
-
213
203
  &-bottomLable {
214
204
  .@{steps-prefix-cls}-item-iconContainer {
215
205
  margin-bottom: 4px;
@@ -2,26 +2,23 @@
2
2
 
3
3
  @steps-prefix: '--@{kd-prefix}-c-steps';
4
4
 
5
- @steps-duration-promptly: var(~'@{steps-prefix}-duration-promptly', @duration-promptly);
6
- @steps-transition-fn: cubic-bezier(0.48, 0.04, 0.52, 0.96);
7
-
8
-
9
-
10
5
  // color
11
- @steps-color-completed: var(~'@{steps-prefix}-color-completed', @color-theme);//已经完成
6
+ @steps-color-completed: var(~'@{steps-prefix}-color-completed', @color-success);//已经完成
7
+ @steps-color-hover: var(~'@{steps-prefix}-color-hover', @color-theme);
12
8
  @steps-color-error: var(~'@{steps-prefix}-color-error', @color-error);
13
- @steps-color-wait: var(~'@{steps-prefix}-color-wait', @color-text-secondary);//未开始 等待
9
+ @steps-color-wait: var(~'@{steps-prefix}-color-wait', #999);//未开始 等待
14
10
  @steps-color-white: var(~'@{steps-prefix}-color-white',@color-white);
15
11
  @steps-color-background-process-icon: var(~'@{steps-prefix}-icon-color-background', @color-theme);//图标的颜色
16
12
 
17
-
18
13
  // font
19
14
  @steps-font-size: var(~'@{steps-prefix}-font-size', @font-size-small); // 文字大小
20
15
 
16
+ // motion
17
+ @steps-duration-promptly: var(~'@{steps-prefix}-motion-duration', @duration-promptly);
21
18
 
22
19
  // sizing
23
20
  @steps-icon-sizing-width: var(~'@{steps-prefix}-icon-sizing-width', 28px);//图标的大小
24
- @steps-line-sizing-height: var(~'@{steps-prefix}-line-sizing-height', 4px);//连接线高度
21
+ @steps-line-sizing-height: var(~'@{steps-prefix}-line-sizing-height', 1px);//连接线高度
25
22
  @steps-horizontal-description-sizing-height: var(~'@{steps-prefix}-horizontal-description-sizing-height', 60px);//内容部分高度 横向
26
23
  @steps-vertical-description-sizing-width: var(~'@{steps-prefix}-vertical-description-sizing-width', 200px);//内容部分宽度 纵向
27
24
 
@@ -1,6 +1,6 @@
1
1
  @font-face {
2
2
  font-family: "kdicon";
3
- src: url("kdicon.woff?t=1648879081136") format("woff");
3
+ src: url("kdicon.woff?t=1649311510226") format("woff");
4
4
  }
5
5
  .kdicon {
6
6
  font-family: 'kdicon' !important;
@@ -187,6 +187,7 @@
187
187
  .kdicon-shoppingcart:before { content: "\e6bf"; }
188
188
  .kdicon-shrink:before { content: "\e6fd"; }
189
189
  .kdicon-shutdown:before { content: "\e686"; }
190
+ .kdicon-sigma:before { content: "\e71b"; }
190
191
  .kdicon-spin:before { content: "\e6f7"; }
191
192
  .kdicon-split:before { content: "\e6c3"; }
192
193
  .kdicon-star:before { content: "\e653"; }
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);
package/es/tabs/tabs.js CHANGED
@@ -132,7 +132,7 @@ var Tabs = function Tabs(props) {
132
132
  });
133
133
 
134
134
  if (index !== -1) {
135
- (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.jumpTo(index);
135
+ (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.jumpTo(index, true);
136
136
  }
137
137
  }, [curActiveKey, carouselRef, carouselData]);
138
138
  useEffect(function () {
@@ -418,6 +418,10 @@ var Tabs = function Tabs(props) {
418
418
  carouselData.push(item);
419
419
  });
420
420
 
421
+ if (effect !== 'none') {
422
+ console.log('effect', effect);
423
+ }
424
+
421
425
  return /*#__PURE__*/React.createElement(Carousel, {
422
426
  ref: carouselRef,
423
427
  dots: false,