@kdcloudjs/kdesign 1.6.40 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/default-theme.js +4 -5
  3. package/dist/kdesign-complete.less +806 -35
  4. package/dist/kdesign.css +1051 -35
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +59352 -40542
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +3 -3
  9. package/dist/kdesign.min.js +9 -9
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/alert/style/index.css +2 -0
  12. package/es/anchor/style/index.css +2 -0
  13. package/es/avatar/style/index.css +2 -0
  14. package/es/badge/style/index.css +2 -0
  15. package/es/base-data/style/index.css +2 -0
  16. package/es/button/style/index.css +2 -0
  17. package/es/card/style/index.css +2 -0
  18. package/es/carousel/style/index.css +2 -0
  19. package/es/cascader/cascader.js +14 -3
  20. package/es/cascader/style/index.css +2 -0
  21. package/es/cascader/util.js +13 -4
  22. package/es/checkbox/style/index.css +2 -0
  23. package/es/city-picker/style/index.css +2 -0
  24. package/es/collapse/style/index.css +2 -0
  25. package/es/color-picker/color-picker-panel.d.ts +4 -0
  26. package/es/color-picker/color-picker-panel.js +239 -0
  27. package/es/color-picker/color-picker.d.ts +4 -0
  28. package/es/color-picker/color-picker.js +201 -0
  29. package/es/color-picker/constant/colorTypes.d.ts +4 -0
  30. package/es/color-picker/constant/colorTypes.js +13 -0
  31. package/es/color-picker/constant/defaultColor.d.ts +1 -0
  32. package/es/color-picker/constant/defaultColor.js +1 -0
  33. package/es/color-picker/constant/systemPresetColor.d.ts +1 -0
  34. package/es/color-picker/constant/systemPresetColor.js +1 -0
  35. package/es/color-picker/index.d.ts +3 -0
  36. package/es/color-picker/index.js +3 -0
  37. package/es/color-picker/interface.d.ts +64 -0
  38. package/es/color-picker/interface.js +3 -0
  39. package/es/color-picker/style/css.js +2 -0
  40. package/es/color-picker/style/index.css +317 -0
  41. package/es/color-picker/style/index.d.ts +2 -0
  42. package/es/color-picker/style/index.js +2 -0
  43. package/es/color-picker/style/index.less +253 -0
  44. package/es/color-picker/style/mixin.less +5 -0
  45. package/es/color-picker/style/token.less +22 -0
  46. package/es/color-picker/utils/colorFormat.d.ts +18 -0
  47. package/es/color-picker/utils/colorFormat.js +153 -0
  48. package/es/color-picker/utils/convertLetters.d.ts +1 -0
  49. package/es/color-picker/utils/convertLetters.js +12 -0
  50. package/es/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
  51. package/es/color-picker/utils/hooks/useOnClickOutside.js +16 -0
  52. package/es/color-picker/utils/validateColor.d.ts +1 -0
  53. package/es/color-picker/utils/validateColor.js +24 -0
  54. package/es/config-provider/compDefaultProps.d.ts +25 -0
  55. package/es/config-provider/compDefaultProps.js +29 -0
  56. package/es/date-picker/style/index.css +2 -0
  57. package/es/drawer/style/index.css +2 -0
  58. package/es/dropdown/style/index.css +2 -0
  59. package/es/empty/style/index.css +2 -0
  60. package/es/filter/style/index.css +2 -0
  61. package/es/form/style/index.css +2 -0
  62. package/es/grid/style/index.css +2 -0
  63. package/es/icon/style/index.css +2 -0
  64. package/es/image/style/index.css +2 -0
  65. package/es/image-cropper/style/index.css +2 -0
  66. package/es/index.d.ts +2 -0
  67. package/es/index.js +3 -1
  68. package/es/input/ClearableLabeledInput.js +8 -2
  69. package/es/input/input.js +1 -5
  70. package/es/input/style/index.css +2 -0
  71. package/es/input-number/style/index.css +2 -0
  72. package/es/layout/style/index.css +2 -0
  73. package/es/link/style/index.css +2 -0
  74. package/es/locale/locale.d.ts +4 -0
  75. package/es/locale/locale.js +6 -4
  76. package/es/locale/zh-CN.d.ts +1 -0
  77. package/es/locale/zh-CN.js +1 -0
  78. package/es/menu/style/index.css +2 -0
  79. package/es/message/style/index.css +2 -0
  80. package/es/modal/style/index.css +2 -0
  81. package/es/notification/style/index.css +2 -0
  82. package/es/pagination/style/index.css +116 -29
  83. package/es/pagination/style/index.less +38 -29
  84. package/es/popconfirm/style/index.css +2 -0
  85. package/es/progress/style/index.css +2 -0
  86. package/es/radio/style/index.css +2 -0
  87. package/es/rate/style/index.css +2 -0
  88. package/es/search/style/index.css +2 -0
  89. package/es/select/style/index.css +2 -0
  90. package/es/slider/style/index.css +2 -0
  91. package/es/space/style/index.css +2 -0
  92. package/es/spin/style/index.css +2 -0
  93. package/es/split-panel/style/index.css +2 -0
  94. package/es/stepper/style/index.css +2 -0
  95. package/es/steps/style/index.css +2 -0
  96. package/es/style/index.css +2 -0
  97. package/es/style/themes/default.less +10 -6
  98. package/es/switch/style/index.css +2 -0
  99. package/es/table/style/index.css +2 -0
  100. package/es/tabs/style/index.css +2 -0
  101. package/es/tag/style/index.css +2 -0
  102. package/es/timeline/style/index.css +2 -0
  103. package/es/tooltip/style/index.css +2 -0
  104. package/es/transfer/style/index.css +2 -0
  105. package/es/tree/style/index.css +2 -0
  106. package/es/tree/tree.d.ts +2 -1
  107. package/es/tree/tree.js +4 -3
  108. package/es/tree-select/index.d.ts +3 -0
  109. package/es/tree-select/index.js +3 -0
  110. package/es/tree-select/interface.d.ts +68 -0
  111. package/es/tree-select/interface.js +4 -0
  112. package/es/tree-select/style/css.js +2 -0
  113. package/es/tree-select/style/index.css +504 -0
  114. package/es/tree-select/style/index.d.ts +2 -0
  115. package/es/tree-select/style/index.js +2 -0
  116. package/es/tree-select/style/index.less +392 -0
  117. package/es/tree-select/style/mixin.less +29 -0
  118. package/es/tree-select/style/token.less +54 -0
  119. package/es/tree-select/tree-select.d.ts +4 -0
  120. package/es/tree-select/tree-select.js +506 -0
  121. package/es/typography/style/index.css +2 -0
  122. package/es/upload/style/index.css +2 -0
  123. package/lib/alert/style/index.css +2 -0
  124. package/lib/anchor/style/index.css +2 -0
  125. package/lib/avatar/style/index.css +2 -0
  126. package/lib/badge/style/index.css +2 -0
  127. package/lib/base-data/style/index.css +2 -0
  128. package/lib/button/style/index.css +2 -0
  129. package/lib/card/style/index.css +2 -0
  130. package/lib/carousel/style/index.css +2 -0
  131. package/lib/cascader/cascader.js +14 -3
  132. package/lib/cascader/style/index.css +2 -0
  133. package/lib/cascader/util.js +13 -4
  134. package/lib/checkbox/style/index.css +2 -0
  135. package/lib/city-picker/style/index.css +2 -0
  136. package/lib/collapse/style/index.css +2 -0
  137. package/lib/color-picker/color-picker-panel.d.ts +4 -0
  138. package/lib/color-picker/color-picker-panel.js +253 -0
  139. package/lib/color-picker/color-picker.d.ts +4 -0
  140. package/lib/color-picker/color-picker.js +214 -0
  141. package/lib/color-picker/constant/colorTypes.d.ts +4 -0
  142. package/lib/color-picker/constant/colorTypes.js +20 -0
  143. package/lib/color-picker/constant/defaultColor.d.ts +1 -0
  144. package/lib/color-picker/constant/defaultColor.js +8 -0
  145. package/lib/color-picker/constant/systemPresetColor.d.ts +1 -0
  146. package/lib/color-picker/constant/systemPresetColor.js +8 -0
  147. package/lib/color-picker/index.d.ts +3 -0
  148. package/lib/color-picker/index.js +27 -0
  149. package/lib/color-picker/interface.d.ts +64 -0
  150. package/lib/color-picker/interface.js +11 -0
  151. package/lib/color-picker/style/css.js +4 -0
  152. package/lib/color-picker/style/index.css +317 -0
  153. package/lib/color-picker/style/index.d.ts +2 -0
  154. package/lib/color-picker/style/index.js +4 -0
  155. package/lib/color-picker/style/index.less +253 -0
  156. package/lib/color-picker/style/mixin.less +5 -0
  157. package/lib/color-picker/style/token.less +22 -0
  158. package/lib/color-picker/utils/colorFormat.d.ts +18 -0
  159. package/lib/color-picker/utils/colorFormat.js +166 -0
  160. package/lib/color-picker/utils/convertLetters.d.ts +1 -0
  161. package/lib/color-picker/utils/convertLetters.js +18 -0
  162. package/lib/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
  163. package/lib/color-picker/utils/hooks/useOnClickOutside.js +23 -0
  164. package/lib/color-picker/utils/validateColor.d.ts +1 -0
  165. package/lib/color-picker/utils/validateColor.js +30 -0
  166. package/lib/config-provider/compDefaultProps.d.ts +25 -0
  167. package/lib/config-provider/compDefaultProps.js +29 -0
  168. package/lib/date-picker/style/index.css +2 -0
  169. package/lib/drawer/style/index.css +2 -0
  170. package/lib/dropdown/style/index.css +2 -0
  171. package/lib/empty/style/index.css +2 -0
  172. package/lib/filter/style/index.css +2 -0
  173. package/lib/form/style/index.css +2 -0
  174. package/lib/grid/style/index.css +2 -0
  175. package/lib/icon/style/index.css +2 -0
  176. package/lib/image/style/index.css +2 -0
  177. package/lib/image-cropper/style/index.css +2 -0
  178. package/lib/index.d.ts +2 -0
  179. package/lib/index.js +14 -0
  180. package/lib/input/ClearableLabeledInput.js +8 -2
  181. package/lib/input/input.js +1 -5
  182. package/lib/input/style/index.css +2 -0
  183. package/lib/input-number/style/index.css +2 -0
  184. package/lib/layout/style/index.css +2 -0
  185. package/lib/link/style/index.css +2 -0
  186. package/lib/locale/locale.d.ts +4 -0
  187. package/lib/locale/locale.js +6 -4
  188. package/lib/locale/zh-CN.d.ts +1 -0
  189. package/lib/locale/zh-CN.js +1 -0
  190. package/lib/menu/style/index.css +2 -0
  191. package/lib/message/style/index.css +2 -0
  192. package/lib/modal/style/index.css +2 -0
  193. package/lib/notification/style/index.css +2 -0
  194. package/lib/pagination/style/index.css +116 -29
  195. package/lib/pagination/style/index.less +38 -29
  196. package/lib/popconfirm/style/index.css +2 -0
  197. package/lib/progress/style/index.css +2 -0
  198. package/lib/radio/style/index.css +2 -0
  199. package/lib/rate/style/index.css +2 -0
  200. package/lib/search/style/index.css +2 -0
  201. package/lib/select/style/index.css +2 -0
  202. package/lib/slider/style/index.css +2 -0
  203. package/lib/space/style/index.css +2 -0
  204. package/lib/spin/style/index.css +2 -0
  205. package/lib/split-panel/style/index.css +2 -0
  206. package/lib/stepper/style/index.css +2 -0
  207. package/lib/steps/style/index.css +2 -0
  208. package/lib/style/components.less +2 -0
  209. package/lib/style/index.css +2 -0
  210. package/lib/style/themes/default.less +10 -6
  211. package/lib/switch/style/index.css +2 -0
  212. package/lib/table/style/index.css +2 -0
  213. package/lib/tabs/style/index.css +2 -0
  214. package/lib/tag/style/index.css +2 -0
  215. package/lib/timeline/style/index.css +2 -0
  216. package/lib/tooltip/style/index.css +2 -0
  217. package/lib/transfer/style/index.css +2 -0
  218. package/lib/tree/style/index.css +2 -0
  219. package/lib/tree/tree.d.ts +2 -1
  220. package/lib/tree/tree.js +4 -3
  221. package/lib/tree-select/index.d.ts +3 -0
  222. package/lib/tree-select/index.js +27 -0
  223. package/lib/tree-select/interface.d.ts +68 -0
  224. package/lib/tree-select/interface.js +13 -0
  225. package/lib/tree-select/style/css.js +4 -0
  226. package/lib/tree-select/style/index.css +504 -0
  227. package/lib/tree-select/style/index.d.ts +2 -0
  228. package/lib/tree-select/style/index.js +4 -0
  229. package/lib/tree-select/style/index.less +392 -0
  230. package/lib/tree-select/style/mixin.less +29 -0
  231. package/lib/tree-select/style/token.less +54 -0
  232. package/lib/tree-select/tree-select.d.ts +4 -0
  233. package/lib/tree-select/tree-select.js +519 -0
  234. package/lib/typography/style/index.css +2 -0
  235. package/lib/upload/style/index.css +2 -0
  236. package/package.json +5 -1
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -115,16 +117,30 @@
115
117
  font-feature-settings: 'tnum';
116
118
  color: var(--kd-c-pagination-text-color, var(--kd-g-color-text-secondary, #666));
117
119
  font-size: var(--kd-c-pagination-font-size, var(--kd-g-font-size-small, 12px));
120
+ display: -webkit-box;
121
+ display: -ms-flexbox;
122
+ display: flex;
123
+ -webkit-box-align: center;
124
+ -ms-flex-align: center;
125
+ align-items: center;
118
126
  }
119
127
  .kd-pagination .kd-pagination-total {
120
- display: inline-block;
128
+ display: -webkit-inline-box;
129
+ display: -ms-inline-flexbox;
130
+ display: inline-flex;
131
+ -webkit-box-align: center;
132
+ -ms-flex-align: center;
133
+ align-items: center;
121
134
  margin-right: 12px;
122
- vertical-align: middle;
123
135
  }
124
136
  .kd-pagination .kd-pagination-current {
125
- display: inline-block;
137
+ display: -webkit-inline-box;
138
+ display: -ms-inline-flexbox;
139
+ display: inline-flex;
140
+ -webkit-box-align: center;
141
+ -ms-flex-align: center;
142
+ align-items: center;
126
143
  margin-right: 12px;
127
- vertical-align: middle;
128
144
  }
129
145
  .kd-pagination .kd-pagination-current .kd-pagination-current-input {
130
146
  -webkit-box-sizing: border-box;
@@ -163,8 +179,12 @@
163
179
  list-style: none;
164
180
  -webkit-font-feature-settings: 'tnum';
165
181
  font-feature-settings: 'tnum';
166
- display: inline-block;
167
- vertical-align: middle;
182
+ display: -webkit-inline-box;
183
+ display: -ms-inline-flexbox;
184
+ display: inline-flex;
185
+ -webkit-box-align: center;
186
+ -ms-flex-align: center;
187
+ align-items: center;
168
188
  }
169
189
  .kd-pagination .kd-pagination-action .kd-pagination-action-item {
170
190
  -webkit-box-sizing: border-box;
@@ -175,7 +195,12 @@
175
195
  list-style: none;
176
196
  -webkit-font-feature-settings: 'tnum';
177
197
  font-feature-settings: 'tnum';
178
- display: inline-block;
198
+ display: -webkit-inline-box;
199
+ display: -ms-inline-flexbox;
200
+ display: inline-flex;
201
+ -webkit-box-align: center;
202
+ -ms-flex-align: center;
203
+ align-items: center;
179
204
  }
180
205
  .kd-pagination .kd-pagination-action .kd-pagination-action-item.bordered {
181
206
  margin-right: calc(2 * var(--kd-c-pagination-button-spacing, 4px));
@@ -200,7 +225,6 @@
200
225
  border-radius: var(--kd-g-radius-border, 2px);
201
226
  cursor: pointer;
202
227
  outline: none;
203
- vertical-align: middle;
204
228
  -webkit-transition: border-color var(--kd-g-duration, 0.3s);
205
229
  transition: border-color var(--kd-g-duration, 0.3s);
206
230
  }
@@ -249,11 +273,15 @@
249
273
  -webkit-font-feature-settings: 'tnum';
250
274
  font-feature-settings: 'tnum';
251
275
  position: relative;
252
- display: inline-block;
276
+ display: -webkit-inline-box;
277
+ display: -ms-inline-flexbox;
278
+ display: inline-flex;
279
+ -webkit-box-align: center;
280
+ -ms-flex-align: center;
281
+ align-items: center;
253
282
  margin-left: 20px;
254
283
  outline: none;
255
284
  height: var(--kd-c-pagination-sizing-square, 24px);
256
- vertical-align: middle;
257
285
  }
258
286
  .kd-pagination .kd-pagination-selector .kd-pagination-selector-size {
259
287
  -webkit-box-sizing: border-box;
@@ -329,11 +357,15 @@
329
357
  list-style: none;
330
358
  -webkit-font-feature-settings: 'tnum';
331
359
  font-feature-settings: 'tnum';
332
- display: inline-block;
333
360
  height: var(--kd-c-pagination-sizing-square, 24px);
334
361
  overflow: hidden;
335
362
  margin: 0 8px;
336
- vertical-align: middle;
363
+ display: -webkit-inline-box;
364
+ display: -ms-inline-flexbox;
365
+ display: inline-flex;
366
+ -webkit-box-align: center;
367
+ -ms-flex-align: center;
368
+ align-items: center;
337
369
  color: var(--kd-g-color-text-primary, #212121);
338
370
  }
339
371
  .kd-pagination.simple .kd-pagination-action-item:first-child,
@@ -342,7 +374,6 @@
342
374
  }
343
375
  .kd-pagination.simple .kd-pagination-action-item .kd-pagination-current {
344
376
  margin-right: 2px;
345
- vertical-align: middle;
346
377
  }
347
378
  .kd-pagination.simple .kd-pagination-action-item .kd-pagination-current .kd-pagination-current-input {
348
379
  margin: 0;
@@ -352,7 +383,6 @@
352
383
  cursor: not-allowed;
353
384
  }
354
385
  .kd-pagination.simple .kd-pagination-action-item .kd-pagination-total {
355
- vertical-align: middle;
356
386
  margin-right: 0;
357
387
  }
358
388
  .kd-pagination.simple .kd-pagination-action-item.bordered > button {
@@ -369,7 +399,15 @@
369
399
  border-radius: var(--kd-g-radius-border, 2px);
370
400
  cursor: pointer;
371
401
  outline: none;
372
- vertical-align: middle;
402
+ display: -webkit-inline-box;
403
+ display: -ms-inline-flexbox;
404
+ display: inline-flex;
405
+ -webkit-box-align: center;
406
+ -ms-flex-align: center;
407
+ align-items: center;
408
+ -webkit-box-pack: center;
409
+ -ms-flex-pack: center;
410
+ justify-content: center;
373
411
  -webkit-transition: border-color var(--kd-g-duration, 0.3s);
374
412
  transition: border-color var(--kd-g-duration, 0.3s);
375
413
  }
@@ -421,9 +459,13 @@
421
459
  -webkit-font-feature-settings: 'tnum';
422
460
  font-feature-settings: 'tnum';
423
461
  position: relative;
424
- display: inline-block;
462
+ display: -webkit-inline-box;
463
+ display: -ms-inline-flexbox;
464
+ display: inline-flex;
465
+ -webkit-box-align: center;
466
+ -ms-flex-align: center;
467
+ align-items: center;
425
468
  margin-right: var(--kd-c-pagination-button-spacing, 4px);
426
- vertical-align: middle;
427
469
  }
428
470
  .kd-pagination.less .kd-pagination-pages-item:last-child {
429
471
  margin-right: 0;
@@ -475,6 +517,15 @@
475
517
  background: var(--kd-g-color-background, #fff);
476
518
  -webkit-transition: color var(--kd-g-duration, 0.3s), border-color var(--kd-g-duration, 0.3s);
477
519
  transition: color var(--kd-g-duration, 0.3s), border-color var(--kd-g-duration, 0.3s);
520
+ display: -webkit-inline-box;
521
+ display: -ms-inline-flexbox;
522
+ display: inline-flex;
523
+ -webkit-box-align: center;
524
+ -ms-flex-align: center;
525
+ align-items: center;
526
+ -webkit-box-pack: center;
527
+ -ms-flex-pack: center;
528
+ justify-content: center;
478
529
  }
479
530
  .kd-pagination.less .kd-pagination-pages-item button:disabled {
480
531
  cursor: not-allowed;
@@ -489,7 +540,12 @@
489
540
  list-style: none;
490
541
  -webkit-font-feature-settings: 'tnum';
491
542
  font-feature-settings: 'tnum';
492
- display: inline-block;
543
+ display: -webkit-inline-box;
544
+ display: -ms-inline-flexbox;
545
+ display: inline-flex;
546
+ -webkit-box-align: center;
547
+ -ms-flex-align: center;
548
+ align-items: center;
493
549
  }
494
550
  .kd-pagination.nicety .kd-pagination-pages-item {
495
551
  -webkit-box-sizing: border-box;
@@ -501,9 +557,13 @@
501
557
  -webkit-font-feature-settings: 'tnum';
502
558
  font-feature-settings: 'tnum';
503
559
  position: relative;
504
- display: inline-block;
560
+ display: -webkit-inline-box;
561
+ display: -ms-inline-flexbox;
562
+ display: inline-flex;
563
+ -webkit-box-align: center;
564
+ -ms-flex-align: center;
565
+ align-items: center;
505
566
  margin-right: var(--kd-c-pagination-button-spacing, 4px);
506
- vertical-align: middle;
507
567
  }
508
568
  .kd-pagination.nicety .kd-pagination-pages-item:last-child {
509
569
  margin-right: 0;
@@ -549,6 +609,15 @@
549
609
  padding: 0 6px;
550
610
  cursor: pointer;
551
611
  outline: none;
612
+ display: -webkit-inline-box;
613
+ display: -ms-inline-flexbox;
614
+ display: inline-flex;
615
+ -webkit-box-align: center;
616
+ -ms-flex-align: center;
617
+ align-items: center;
618
+ -webkit-box-pack: center;
619
+ -ms-flex-pack: center;
620
+ justify-content: center;
552
621
  font-size: var(--kd-c-pagination-font-size, var(--kd-g-font-size-small, 12px));
553
622
  color: var(--kd-g-color-text-primary, #212121);
554
623
  border-radius: var(--kd-g-radius-border, 2px);
@@ -578,9 +647,13 @@
578
647
  transition: opacity var(--kd-g-duration, 0.3s);
579
648
  }
580
649
  .kd-pagination.nicety .kd-pagination-jumper {
581
- display: inline-block;
650
+ display: -webkit-inline-box;
651
+ display: -ms-inline-flexbox;
652
+ display: inline-flex;
653
+ -webkit-box-align: center;
654
+ -ms-flex-align: center;
655
+ align-items: center;
582
656
  margin-left: 4px;
583
- vertical-align: middle;
584
657
  }
585
658
  .kd-pagination.nicety .kd-pagination-jumper .kd-pagination-jumper-input {
586
659
  -webkit-box-sizing: border-box;
@@ -621,8 +694,15 @@
621
694
  width: var(--kd-c-pagination-sizing-square, 24px);
622
695
  height: var(--kd-c-pagination-sizing-square, 24px);
623
696
  margin-left: var(--kd-c-pagination-button-spacing, 4px);
624
- line-height: var(--kd-c-pagination-sizing-square, 24px);
625
- vertical-align: top;
697
+ display: -webkit-inline-box;
698
+ display: -ms-inline-flexbox;
699
+ display: inline-flex;
700
+ -webkit-box-align: center;
701
+ -ms-flex-align: center;
702
+ align-items: center;
703
+ -webkit-box-pack: center;
704
+ -ms-flex-pack: center;
705
+ justify-content: center;
626
706
  cursor: pointer;
627
707
  outline: none;
628
708
  color: var(--kd-g-color-text-primary, #212121);
@@ -656,26 +736,33 @@
656
736
  -webkit-font-feature-settings: 'tnum';
657
737
  font-feature-settings: 'tnum';
658
738
  position: relative;
659
- display: inline-block;
739
+ display: -webkit-inline-box;
740
+ display: -ms-inline-flexbox;
741
+ display: inline-flex;
742
+ -webkit-box-align: center;
743
+ -ms-flex-align: center;
744
+ align-items: center;
660
745
  margin-left: 22px;
661
746
  outline: none;
662
747
  height: var(--kd-c-pagination-sizing-square, 24px);
663
748
  color: var(--kd-g-color-text-primary, #212121);
664
- vertical-align: middle;
665
749
  }
666
750
  .kd-pagination.nicety .kd-pagination-options .kd-pagination-options-size {
667
751
  position: relative;
668
752
  -webkit-box-sizing: border-box;
669
753
  box-sizing: border-box;
670
- display: inline-block;
754
+ display: -webkit-inline-box;
755
+ display: -ms-inline-flexbox;
756
+ display: inline-flex;
757
+ -webkit-box-align: center;
758
+ -ms-flex-align: center;
759
+ align-items: center;
671
760
  min-width: 64px;
672
761
  height: var(--kd-c-pagination-sizing-square, 24px);
673
762
  margin-right: 8px;
674
763
  padding: 0 24px 0 4px;
675
- line-height: var(--kd-c-pagination-sizing-square, 24px);
676
764
  font-size: var(--kd-c-pagination-font-size, var(--kd-g-font-size-small, 12px));
677
765
  color: var(--kd-g-color-text-primary, #212121);
678
- text-align: left;
679
766
  border-radius: var(--kd-g-radius-border, 2px);
680
767
  border: var(--kd-c-pagination-sizing-border-width, 1px) solid var(--kd-g-color-border-strong, #d9d9d9);
681
768
  background: var(--kd-g-color-background, #fff);
@@ -14,17 +14,19 @@
14
14
  .reset-component;
15
15
  color: @pagination-text-color;
16
16
  font-size: @pagination-font-size;
17
+ display: flex;
18
+ align-items: center;
17
19
 
18
20
  .@{pagination-prefix-cls}-total {
19
- display: inline-block;
21
+ display: inline-flex;
22
+ align-items: center;
20
23
  margin-right: 12px;
21
- vertical-align: middle;
22
24
  }
23
25
 
24
26
  .@{pagination-prefix-cls}-current {
25
- display: inline-block;
27
+ display: inline-flex;
28
+ align-items: center;
26
29
  margin-right: 12px;
27
- vertical-align: middle;
28
30
 
29
31
  .@{pagination-prefix-cls}-current-input {
30
32
  box-sizing: border-box;
@@ -58,12 +60,13 @@
58
60
 
59
61
  .@{pagination-action-prefix-cls} {
60
62
  .reset-component;
61
- display: inline-block;
62
- vertical-align: middle;
63
+ display: inline-flex;
64
+ align-items: center;
63
65
 
64
66
  .@{pagination-action-prefix-cls}-item {
65
67
  .reset-component;
66
- display: inline-block;
68
+ display: inline-flex;
69
+ align-items: center;
67
70
 
68
71
  &.bordered {
69
72
  margin-right: calc(2 * @pagination-button-spacing);
@@ -91,7 +94,6 @@
91
94
  border-radius: @radius-border;
92
95
  cursor: pointer;
93
96
  outline: none;
94
- vertical-align: middle;
95
97
  transition: border-color @duration-promptly;
96
98
 
97
99
  &:hover,
@@ -134,11 +136,11 @@
134
136
  .@{pagination-selector-prefix-cls} {
135
137
  .reset-component;
136
138
  position: relative;
137
- display: inline-block;
139
+ display: inline-flex;
140
+ align-items: center;
138
141
  margin-left: 20px;
139
142
  outline: none;
140
143
  height: @pagination-size;
141
- vertical-align: middle;
142
144
 
143
145
  .@{pagination-selector-prefix-cls}-size {
144
146
  box-sizing: border-box;
@@ -215,11 +217,11 @@
215
217
 
216
218
  &-item {
217
219
  .reset-component;
218
- display: inline-block;
219
220
  height: @pagination-size;
220
221
  overflow: hidden;
221
222
  margin: 0 8px;
222
- vertical-align: middle;
223
+ display: inline-flex;
224
+ align-items: center;
223
225
  color: @color-text-primary;
224
226
 
225
227
  &:first-child,
@@ -229,7 +231,6 @@
229
231
 
230
232
  .@{pagination-prefix-cls}-current {
231
233
  margin-right: 2px;
232
- vertical-align: middle;
233
234
 
234
235
  .@{pagination-prefix-cls}-current-input {
235
236
  margin: 0;
@@ -242,7 +243,6 @@
242
243
  }
243
244
 
244
245
  .@{pagination-prefix-cls}-total {
245
- vertical-align: middle;
246
246
  margin-right: 0;
247
247
  }
248
248
 
@@ -260,7 +260,9 @@
260
260
  border-radius: @radius-border;
261
261
  cursor: pointer;
262
262
  outline: none;
263
- vertical-align: middle;
263
+ display: inline-flex;
264
+ align-items: center;
265
+ justify-content: center;
264
266
  transition: border-color @duration-promptly;
265
267
 
266
268
  &:hover,
@@ -308,9 +310,9 @@
308
310
  &-item {
309
311
  .reset-component;
310
312
  position: relative;
311
- display: inline-block;
313
+ display: inline-flex;
314
+ align-items: center;
312
315
  margin-right: @pagination-button-spacing;
313
- vertical-align: middle;
314
316
 
315
317
  &:last-child {
316
318
  margin-right: 0;
@@ -359,6 +361,9 @@
359
361
  border: none;
360
362
  background: @color-background;
361
363
  transition: color @duration-promptly, border-color @duration-promptly;
364
+ display: inline-flex;
365
+ align-items: center;
366
+ justify-content: center;
362
367
 
363
368
  &:disabled {
364
369
  cursor: not-allowed;
@@ -373,14 +378,15 @@
373
378
  &.nicety {
374
379
  .@{pagination-pages-prefix-cls} {
375
380
  .reset-component;
376
- display: inline-block;
381
+ display: inline-flex;
382
+ align-items: center;
377
383
 
378
384
  &-item {
379
385
  .reset-component;
380
386
  position: relative;
381
- display: inline-block;
387
+ display: inline-flex;
388
+ align-items: center;
382
389
  margin-right: @pagination-button-spacing;
383
- vertical-align: middle;
384
390
 
385
391
  &:last-child {
386
392
  margin-right: 0;
@@ -429,6 +435,9 @@
429
435
  padding: 0 6px;
430
436
  cursor: pointer;
431
437
  outline: none;
438
+ display: inline-flex;
439
+ align-items: center;
440
+ justify-content: center;
432
441
  font-size: @pagination-font-size;
433
442
  color: @color-text-primary;
434
443
  border-radius: @radius-border;
@@ -462,9 +471,9 @@
462
471
  }
463
472
 
464
473
  .@{pagination-jumper-prefix-cls} {
465
- display: inline-block;
474
+ display: inline-flex;
475
+ align-items: center;
466
476
  margin-left: 4px;
467
- vertical-align: middle;
468
477
 
469
478
  .@{pagination-jumper-prefix-cls}-input {
470
479
  box-sizing: border-box;
@@ -499,8 +508,9 @@
499
508
  width: @pagination-size;
500
509
  height: @pagination-size;
501
510
  margin-left: @pagination-button-spacing;
502
- line-height: @pagination-size;
503
- vertical-align: top;
511
+ display: inline-flex;
512
+ align-items: center;
513
+ justify-content: center;
504
514
  cursor: pointer;
505
515
  outline: none;
506
516
  color: @color-text-primary;
@@ -530,25 +540,24 @@
530
540
  .@{pagination-options-prefix-cls} {
531
541
  .reset-component;
532
542
  position: relative;
533
- display: inline-block;
543
+ display: inline-flex;
544
+ align-items: center;
534
545
  margin-left: 22px;
535
546
  outline: none;
536
547
  height: @pagination-size;
537
548
  color: @color-text-primary;
538
- vertical-align: middle;
539
549
 
540
550
  .@{pagination-options-prefix-cls}-size {
541
551
  position: relative;
542
552
  box-sizing: border-box;
543
- display: inline-block;
553
+ display: inline-flex;
554
+ align-items: center;
544
555
  min-width: 64px;
545
556
  height: @pagination-size;
546
557
  margin-right: 8px;
547
558
  padding: 0 24px 0 4px;
548
- line-height: @pagination-size;
549
559
  font-size: @pagination-font-size;
550
560
  color: @color-text-primary;
551
- text-align: left;
552
561
  border-radius: @radius-border;
553
562
  border: @pagination-border-size solid @color-border-strong;
554
563
  background: @color-background;
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */