@kdcloudjs/kdesign 1.0.2 → 1.1.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 (452) hide show
  1. package/LICENSE +104 -105
  2. package/dist/default-theme.js +17 -12
  3. package/dist/kdesign-complete.less +3334 -1374
  4. package/dist/kdesign.css +2565 -1931
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +783 -112
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +4 -4
  9. package/dist/kdesign.min.js +6 -6
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/alert/style/index.css +32 -30
  12. package/es/alert/style/index.less +36 -37
  13. package/es/alert/style/token.less +29 -0
  14. package/es/anchor/style/index.css +48 -34
  15. package/es/anchor/style/index.less +19 -16
  16. package/es/anchor/style/mixin.less +1 -0
  17. package/es/anchor/style/token.less +33 -0
  18. package/es/avatar/style/index.css +18 -18
  19. package/es/avatar/style/index.less +4 -25
  20. package/es/avatar/style/mixin.less +21 -4
  21. package/es/avatar/style/token.less +20 -0
  22. package/es/badge/style/index.css +38 -29
  23. package/es/badge/style/index.less +28 -30
  24. package/es/badge/style/mixin.less +1 -5
  25. package/es/badge/style/token.less +23 -0
  26. package/es/base-data/style/index.css +25 -16
  27. package/es/base-data/style/index.less +17 -17
  28. package/es/base-data/style/token.less +27 -0
  29. package/es/button/button.d.ts +1 -3
  30. package/es/button/button.js +3 -15
  31. package/es/button/style/index.css +80 -81
  32. package/es/button/style/index.less +43 -51
  33. package/es/button/style/mixin.less +6 -4
  34. package/es/button/style/token.less +88 -0
  35. package/es/card/card.d.ts +1 -0
  36. package/es/card/card.js +4 -1
  37. package/es/card/style/index.css +48 -23
  38. package/es/card/style/index.less +43 -23
  39. package/es/card/style/token.less +28 -0
  40. package/es/carousel/style/index.css +36 -30
  41. package/es/carousel/style/index.less +14 -6
  42. package/es/carousel/style/mixin.less +1 -4
  43. package/es/carousel/style/token.less +20 -0
  44. package/es/cascader/cascader.js +1 -1
  45. package/es/cascader/style/index.css +35 -26
  46. package/es/cascader/style/index.less +24 -23
  47. package/es/cascader/style/token.less +28 -0
  48. package/es/checkbox/style/index.css +86 -80
  49. package/es/checkbox/style/index.less +26 -27
  50. package/es/checkbox/style/token.less +48 -0
  51. package/es/city-picker/style/index.css +24 -14
  52. package/es/city-picker/style/index.less +16 -16
  53. package/es/city-picker/style/token.less +25 -0
  54. package/es/collapse/style/index.css +37 -26
  55. package/es/collapse/style/index.less +7 -5
  56. package/es/collapse/style/mixin.less +1 -5
  57. package/es/collapse/style/token.less +26 -0
  58. package/es/config-provider/compDefaultProps.d.ts +4 -1
  59. package/es/config-provider/compDefaultProps.js +5 -2
  60. package/es/date-picker/style/index.css +81 -72
  61. package/es/date-picker/style/index.less +36 -36
  62. package/es/date-picker/style/mixin.less +20 -18
  63. package/es/date-picker/style/token.less +71 -0
  64. package/es/drawer/drawer.d.ts +0 -1
  65. package/es/drawer/drawer.js +6 -26
  66. package/es/drawer/style/index.css +37 -31
  67. package/es/drawer/style/index.less +24 -39
  68. package/es/drawer/style/token.less +23 -0
  69. package/es/dropdown/dropdown.d.ts +1 -0
  70. package/es/dropdown/dropdown.js +13 -8
  71. package/es/dropdown/menu.d.ts +1 -1
  72. package/es/dropdown/menu.js +3 -3
  73. package/es/dropdown/style/index.css +57 -48
  74. package/es/dropdown/style/index.less +27 -24
  75. package/es/dropdown/style/token.less +26 -0
  76. package/es/empty/defaultEmptyImg.d.ts +2 -0
  77. package/es/empty/defaultEmptyImg.js +92 -0
  78. package/es/empty/empty.d.ts +5 -1
  79. package/es/empty/empty.js +10 -9
  80. package/es/empty/illustrationEmptyImg.d.ts +2 -0
  81. package/es/empty/illustrationEmptyImg.js +439 -0
  82. package/es/empty/style/index.css +12 -3
  83. package/es/empty/style/index.less +1 -1
  84. package/es/empty/style/token.less +12 -0
  85. package/es/filter/style/index.css +44 -32
  86. package/es/filter/style/index.less +34 -32
  87. package/es/filter/style/token.less +28 -0
  88. package/es/form/style/index.css +19 -10
  89. package/es/form/style/index.less +9 -6
  90. package/es/form/style/token.less +27 -0
  91. package/es/grid/style/index.css +9 -0
  92. package/es/image/style/index.css +32 -23
  93. package/es/image/style/index.less +23 -22
  94. package/es/image/style/token.less +45 -0
  95. package/es/image-cropper/style/index.css +9 -0
  96. package/es/image-cropper/style/index.less +1 -1
  97. package/es/index.d.ts +1 -0
  98. package/es/index.js +2 -1
  99. package/es/input/style/index.css +97 -88
  100. package/es/input/style/index.less +34 -31
  101. package/es/input/style/mixin.less +54 -47
  102. package/es/input/style/token.less +46 -0
  103. package/es/input-number/style/css.js +1 -0
  104. package/es/input-number/style/index.css +25 -16
  105. package/es/input-number/style/index.d.ts +1 -0
  106. package/es/input-number/style/index.js +1 -0
  107. package/es/input-number/style/index.less +12 -12
  108. package/es/input-number/style/mixin.less +4 -2
  109. package/es/input-number/style/token.less +20 -0
  110. package/es/layout/style/index.css +41 -32
  111. package/es/layout/style/index.less +9 -8
  112. package/es/layout/style/token.less +30 -0
  113. package/es/link/index.d.ts +3 -0
  114. package/es/link/index.js +3 -0
  115. package/es/link/link.d.ts +18 -0
  116. package/es/link/link.js +89 -0
  117. package/es/link/style/css.js +2 -0
  118. package/es/link/style/index.css +155 -0
  119. package/es/link/style/index.d.ts +2 -0
  120. package/es/link/style/index.js +2 -0
  121. package/es/link/style/index.less +61 -0
  122. package/es/link/style/mixin.less +7 -0
  123. package/es/link/style/token.less +24 -0
  124. package/es/menu/menuItem.js +1 -2
  125. package/es/menu/style/index.css +89 -80
  126. package/es/menu/style/index.less +51 -26
  127. package/es/menu/style/mixin.less +16 -19
  128. package/es/menu/style/token.less +32 -0
  129. package/es/message/style/index.css +23 -13
  130. package/es/message/style/index.less +15 -13
  131. package/es/message/style/token.less +21 -0
  132. package/es/modal/style/index.css +37 -28
  133. package/es/modal/style/index.less +16 -26
  134. package/es/modal/style/mixin.less +2 -0
  135. package/es/modal/style/token.less +46 -0
  136. package/es/notification/content.js +1 -1
  137. package/es/notification/style/index.css +34 -25
  138. package/es/notification/style/index.less +21 -20
  139. package/es/notification/style/token.less +28 -0
  140. package/es/pagination/pagination.js +2 -2
  141. package/es/pagination/style/index.css +159 -159
  142. package/es/pagination/style/index.less +104 -113
  143. package/es/pagination/style/token.less +28 -0
  144. package/es/popconfirm/style/index.css +54 -33
  145. package/es/popconfirm/style/index.less +41 -20
  146. package/es/popconfirm/style/token.less +28 -0
  147. package/es/progress/style/index.css +41 -27
  148. package/es/progress/style/index.less +24 -8
  149. package/es/progress/style/mixin.less +2 -1
  150. package/es/progress/style/token.less +40 -0
  151. package/es/radio/style/index.css +91 -76
  152. package/es/radio/style/index.less +76 -64
  153. package/es/radio/style/token.less +47 -0
  154. package/es/rate/style/index.css +26 -17
  155. package/es/rate/style/index.less +4 -3
  156. package/es/rate/style/token.less +18 -0
  157. package/es/search/style/index.css +103 -82
  158. package/es/search/style/index.less +49 -35
  159. package/es/search/style/mixin.less +4 -2
  160. package/es/search/style/token.less +60 -0
  161. package/es/select/select.js +3 -14
  162. package/es/select/style/index.css +46 -37
  163. package/es/select/style/index.less +10 -10
  164. package/es/select/style/mixin.less +4 -7
  165. package/es/select/style/token.less +43 -0
  166. package/es/slider/slider.js +5 -13
  167. package/es/slider/sliderTooltip.js +0 -1
  168. package/es/slider/style/index.css +21 -12
  169. package/es/slider/style/index.less +10 -10
  170. package/es/slider/style/mixin.less +3 -1
  171. package/es/slider/style/token.less +17 -0
  172. package/es/space/style/index.css +9 -0
  173. package/es/spin/style/index.css +23 -14
  174. package/es/spin/style/index.less +3 -2
  175. package/es/spin/style/mixin.less +1 -0
  176. package/es/spin/style/token.less +15 -0
  177. package/es/split-panel/style/index.css +35 -44
  178. package/es/split-panel/style/index.less +16 -34
  179. package/es/split-panel/style/token.less +23 -0
  180. package/es/stepper/style/index.css +50 -25
  181. package/es/stepper/style/index.less +45 -11
  182. package/es/stepper/style/mixin.less +7 -5
  183. package/es/stepper/style/token.less +28 -0
  184. package/es/steps/Steps.js +4 -1
  185. package/es/steps/style/index.css +74 -37
  186. package/es/steps/style/index.less +281 -189
  187. package/es/steps/style/token.less +31 -0
  188. package/es/style/mixins/index.less +10 -9
  189. package/es/style/mixins/overlay.less +2 -2
  190. package/es/style/themes/default.less +22 -12
  191. package/es/style/themes/token.less +128 -0
  192. package/es/switch/style/index.css +38 -29
  193. package/es/switch/style/index.less +17 -6
  194. package/es/switch/style/mixin.less +6 -5
  195. package/es/switch/style/token.less +45 -0
  196. package/es/tabs/style/index.css +59 -50
  197. package/es/tabs/style/index.less +3 -3
  198. package/es/tabs/style/mixin.less +2 -0
  199. package/es/tabs/style/token.less +32 -0
  200. package/es/tabs/tabs.js +3 -1
  201. package/es/tag/style/index.css +122 -113
  202. package/es/tag/style/index.less +19 -19
  203. package/es/tag/style/mixin.less +2 -1
  204. package/es/tag/style/token.less +42 -0
  205. package/es/timeline/style/index.css +40 -30
  206. package/es/timeline/style/index.less +33 -30
  207. package/es/timeline/style/token.less +45 -0
  208. package/es/tooltip/style/index.css +26 -17
  209. package/es/tooltip/style/index.less +6 -5
  210. package/es/tooltip/style/token.less +20 -0
  211. package/es/transfer/operation.js +2 -2
  212. package/es/transfer/style/index.css +37 -24
  213. package/es/transfer/style/index.less +4 -0
  214. package/es/transfer/style/mixins.less +2 -0
  215. package/es/transfer/style/token.less +29 -0
  216. package/es/tree/style/index.css +37 -37
  217. package/es/tree/style/index.less +8 -20
  218. package/es/tree/style/mixin.less +1 -5
  219. package/es/tree/style/token.less +27 -0
  220. package/es/typography/style/index.css +46 -53
  221. package/es/typography/style/index.less +15 -15
  222. package/es/typography/style/mixin.less +9 -11
  223. package/es/typography/style/token.less +38 -0
  224. package/es/upload/style/index.css +41 -31
  225. package/es/upload/style/index.less +27 -25
  226. package/es/upload/style/token.less +28 -0
  227. package/lib/alert/style/index.css +32 -30
  228. package/lib/alert/style/index.less +36 -37
  229. package/lib/alert/style/token.less +29 -0
  230. package/lib/anchor/style/index.css +48 -34
  231. package/lib/anchor/style/index.less +19 -16
  232. package/lib/anchor/style/mixin.less +1 -0
  233. package/lib/anchor/style/token.less +33 -0
  234. package/lib/avatar/style/index.css +18 -18
  235. package/lib/avatar/style/index.less +4 -25
  236. package/lib/avatar/style/mixin.less +21 -4
  237. package/lib/avatar/style/token.less +20 -0
  238. package/lib/badge/style/index.css +38 -29
  239. package/lib/badge/style/index.less +28 -30
  240. package/lib/badge/style/mixin.less +1 -5
  241. package/lib/badge/style/token.less +23 -0
  242. package/lib/base-data/style/index.css +25 -16
  243. package/lib/base-data/style/index.less +17 -17
  244. package/lib/base-data/style/token.less +27 -0
  245. package/lib/button/button.d.ts +1 -3
  246. package/lib/button/button.js +3 -15
  247. package/lib/button/style/index.css +80 -81
  248. package/lib/button/style/index.less +43 -51
  249. package/lib/button/style/mixin.less +6 -4
  250. package/lib/button/style/token.less +88 -0
  251. package/lib/card/card.d.ts +1 -0
  252. package/lib/card/card.js +4 -1
  253. package/lib/card/style/index.css +48 -23
  254. package/lib/card/style/index.less +43 -23
  255. package/lib/card/style/token.less +28 -0
  256. package/lib/carousel/style/index.css +36 -30
  257. package/lib/carousel/style/index.less +14 -6
  258. package/lib/carousel/style/mixin.less +1 -4
  259. package/lib/carousel/style/token.less +20 -0
  260. package/lib/cascader/cascader.js +1 -1
  261. package/lib/cascader/style/index.css +35 -26
  262. package/lib/cascader/style/index.less +24 -23
  263. package/lib/cascader/style/token.less +28 -0
  264. package/lib/checkbox/style/index.css +86 -80
  265. package/lib/checkbox/style/index.less +26 -27
  266. package/lib/checkbox/style/token.less +48 -0
  267. package/lib/city-picker/style/index.css +24 -14
  268. package/lib/city-picker/style/index.less +16 -16
  269. package/lib/city-picker/style/token.less +25 -0
  270. package/lib/collapse/style/index.css +37 -26
  271. package/lib/collapse/style/index.less +7 -5
  272. package/lib/collapse/style/mixin.less +1 -5
  273. package/lib/collapse/style/token.less +26 -0
  274. package/lib/config-provider/compDefaultProps.d.ts +4 -1
  275. package/lib/config-provider/compDefaultProps.js +5 -2
  276. package/lib/date-picker/style/index.css +81 -72
  277. package/lib/date-picker/style/index.less +36 -36
  278. package/lib/date-picker/style/mixin.less +20 -18
  279. package/lib/date-picker/style/token.less +71 -0
  280. package/lib/drawer/drawer.d.ts +0 -1
  281. package/lib/drawer/drawer.js +6 -26
  282. package/lib/drawer/style/index.css +37 -31
  283. package/lib/drawer/style/index.less +24 -39
  284. package/lib/drawer/style/token.less +23 -0
  285. package/lib/dropdown/dropdown.d.ts +1 -0
  286. package/lib/dropdown/dropdown.js +13 -8
  287. package/lib/dropdown/menu.d.ts +1 -1
  288. package/lib/dropdown/menu.js +3 -3
  289. package/lib/dropdown/style/index.css +57 -48
  290. package/lib/dropdown/style/index.less +27 -24
  291. package/lib/dropdown/style/token.less +26 -0
  292. package/lib/empty/defaultEmptyImg.d.ts +2 -0
  293. package/lib/empty/defaultEmptyImg.js +113 -0
  294. package/lib/empty/empty.d.ts +5 -1
  295. package/lib/empty/empty.js +13 -9
  296. package/lib/empty/illustrationEmptyImg.d.ts +2 -0
  297. package/lib/empty/illustrationEmptyImg.js +460 -0
  298. package/lib/empty/style/index.css +12 -3
  299. package/lib/empty/style/index.less +1 -1
  300. package/lib/empty/style/token.less +12 -0
  301. package/lib/filter/style/index.css +44 -32
  302. package/lib/filter/style/index.less +34 -32
  303. package/lib/filter/style/token.less +28 -0
  304. package/lib/form/style/index.css +19 -10
  305. package/lib/form/style/index.less +9 -6
  306. package/lib/form/style/token.less +27 -0
  307. package/lib/grid/style/index.css +9 -0
  308. package/lib/image/style/index.css +32 -23
  309. package/lib/image/style/index.less +23 -22
  310. package/lib/image/style/token.less +45 -0
  311. package/lib/image-cropper/style/index.css +9 -0
  312. package/lib/image-cropper/style/index.less +1 -1
  313. package/lib/index.d.ts +1 -0
  314. package/lib/index.js +8 -0
  315. package/lib/input/style/index.css +97 -88
  316. package/lib/input/style/index.less +34 -31
  317. package/lib/input/style/mixin.less +54 -47
  318. package/lib/input/style/token.less +46 -0
  319. package/lib/input-number/style/css.js +2 -0
  320. package/lib/input-number/style/index.css +25 -16
  321. package/lib/input-number/style/index.d.ts +1 -0
  322. package/lib/input-number/style/index.js +2 -0
  323. package/lib/input-number/style/index.less +12 -12
  324. package/lib/input-number/style/mixin.less +4 -2
  325. package/lib/input-number/style/token.less +20 -0
  326. package/lib/layout/style/index.css +41 -32
  327. package/lib/layout/style/index.less +9 -8
  328. package/lib/layout/style/token.less +30 -0
  329. package/lib/link/index.d.ts +3 -0
  330. package/lib/link/index.js +36 -0
  331. package/lib/link/link.d.ts +18 -0
  332. package/lib/link/link.js +120 -0
  333. package/lib/link/style/css.js +5 -0
  334. package/lib/link/style/index.css +155 -0
  335. package/lib/link/style/index.d.ts +2 -0
  336. package/lib/link/style/index.js +5 -0
  337. package/lib/link/style/index.less +61 -0
  338. package/lib/link/style/mixin.less +7 -0
  339. package/lib/link/style/token.less +24 -0
  340. package/lib/menu/menuItem.js +1 -2
  341. package/lib/menu/style/index.css +89 -80
  342. package/lib/menu/style/index.less +51 -26
  343. package/lib/menu/style/mixin.less +16 -19
  344. package/lib/menu/style/token.less +32 -0
  345. package/lib/message/style/index.css +23 -13
  346. package/lib/message/style/index.less +15 -13
  347. package/lib/message/style/token.less +21 -0
  348. package/lib/modal/style/index.css +37 -28
  349. package/lib/modal/style/index.less +16 -26
  350. package/lib/modal/style/mixin.less +2 -0
  351. package/lib/modal/style/token.less +46 -0
  352. package/lib/notification/content.js +1 -1
  353. package/lib/notification/style/index.css +34 -25
  354. package/lib/notification/style/index.less +21 -20
  355. package/lib/notification/style/token.less +28 -0
  356. package/lib/pagination/pagination.js +2 -2
  357. package/lib/pagination/style/index.css +159 -159
  358. package/lib/pagination/style/index.less +104 -113
  359. package/lib/pagination/style/token.less +28 -0
  360. package/lib/popconfirm/style/index.css +54 -33
  361. package/lib/popconfirm/style/index.less +41 -20
  362. package/lib/popconfirm/style/token.less +28 -0
  363. package/lib/progress/style/index.css +41 -27
  364. package/lib/progress/style/index.less +24 -8
  365. package/lib/progress/style/mixin.less +2 -1
  366. package/lib/progress/style/token.less +40 -0
  367. package/lib/radio/style/index.css +91 -76
  368. package/lib/radio/style/index.less +76 -64
  369. package/lib/radio/style/token.less +47 -0
  370. package/lib/rate/style/index.css +26 -17
  371. package/lib/rate/style/index.less +4 -3
  372. package/lib/rate/style/token.less +18 -0
  373. package/lib/search/style/index.css +103 -82
  374. package/lib/search/style/index.less +49 -35
  375. package/lib/search/style/mixin.less +4 -2
  376. package/lib/search/style/token.less +60 -0
  377. package/lib/select/select.js +3 -14
  378. package/lib/select/style/index.css +46 -37
  379. package/lib/select/style/index.less +10 -10
  380. package/lib/select/style/mixin.less +4 -7
  381. package/lib/select/style/token.less +43 -0
  382. package/lib/slider/slider.js +5 -13
  383. package/lib/slider/sliderTooltip.js +0 -1
  384. package/lib/slider/style/index.css +21 -12
  385. package/lib/slider/style/index.less +10 -10
  386. package/lib/slider/style/mixin.less +3 -1
  387. package/lib/slider/style/token.less +17 -0
  388. package/lib/space/style/index.css +9 -0
  389. package/lib/spin/style/index.css +23 -14
  390. package/lib/spin/style/index.less +3 -2
  391. package/lib/spin/style/mixin.less +1 -0
  392. package/lib/spin/style/token.less +15 -0
  393. package/lib/split-panel/style/index.css +35 -44
  394. package/lib/split-panel/style/index.less +16 -34
  395. package/lib/split-panel/style/token.less +23 -0
  396. package/lib/stepper/style/index.css +50 -25
  397. package/lib/stepper/style/index.less +45 -11
  398. package/lib/stepper/style/mixin.less +7 -5
  399. package/lib/stepper/style/token.less +28 -0
  400. package/lib/steps/Steps.js +4 -1
  401. package/lib/steps/style/index.css +74 -37
  402. package/lib/steps/style/index.less +281 -189
  403. package/lib/steps/style/token.less +31 -0
  404. package/lib/style/components.less +1 -0
  405. package/lib/style/mixins/index.less +10 -9
  406. package/lib/style/mixins/overlay.less +2 -2
  407. package/lib/style/themes/default.less +22 -12
  408. package/lib/style/themes/token.less +128 -0
  409. package/lib/switch/style/index.css +38 -29
  410. package/lib/switch/style/index.less +17 -6
  411. package/lib/switch/style/mixin.less +6 -5
  412. package/lib/switch/style/token.less +45 -0
  413. package/lib/tabs/style/index.css +59 -50
  414. package/lib/tabs/style/index.less +3 -3
  415. package/lib/tabs/style/mixin.less +2 -0
  416. package/lib/tabs/style/token.less +32 -0
  417. package/lib/tabs/tabs.js +3 -1
  418. package/lib/tag/style/index.css +122 -113
  419. package/lib/tag/style/index.less +19 -19
  420. package/lib/tag/style/mixin.less +2 -1
  421. package/lib/tag/style/token.less +42 -0
  422. package/lib/timeline/style/index.css +40 -30
  423. package/lib/timeline/style/index.less +33 -30
  424. package/lib/timeline/style/token.less +45 -0
  425. package/lib/tooltip/style/index.css +26 -17
  426. package/lib/tooltip/style/index.less +6 -5
  427. package/lib/tooltip/style/token.less +20 -0
  428. package/lib/transfer/operation.js +2 -2
  429. package/lib/transfer/style/index.css +37 -24
  430. package/lib/transfer/style/index.less +4 -0
  431. package/lib/transfer/style/mixins.less +2 -0
  432. package/lib/transfer/style/token.less +29 -0
  433. package/lib/tree/style/index.css +37 -37
  434. package/lib/tree/style/index.less +8 -20
  435. package/lib/tree/style/mixin.less +1 -5
  436. package/lib/tree/style/token.less +27 -0
  437. package/lib/typography/style/index.css +46 -53
  438. package/lib/typography/style/index.less +15 -15
  439. package/lib/typography/style/mixin.less +9 -11
  440. package/lib/typography/style/token.less +38 -0
  441. package/lib/upload/style/index.css +41 -31
  442. package/lib/upload/style/index.less +27 -25
  443. package/lib/upload/style/token.less +28 -0
  444. package/package.json +5 -4
  445. package/es/base-data/style/mixin.less +0 -5
  446. package/es/empty/style/mixin.less +0 -5
  447. package/es/form/style/mixin.less +0 -5
  448. package/es/steps/style/mixin.less +0 -41
  449. package/lib/base-data/style/mixin.less +0 -5
  450. package/lib/empty/style/mixin.less +0 -5
  451. package/lib/form/style/mixin.less +0 -5
  452. package/lib/steps/style/mixin.less +0 -41
@@ -92,6 +92,15 @@
92
92
  /* ----------- Avatar ——————---- end */
93
93
  /* ----------- AdvancedSelector ——————---- start */
94
94
  /* ----------- AdvancedSelector ——————---- end */
95
+ /* ----------- motion ——————---- start */
96
+ /* ----------- motion ——————---- end */
97
+ /* ----------- transition ——————---- start */
98
+ /* ----------- transition ——————---- end */
99
+ /* ----------- zIndex ——————---- start */
100
+ /*
101
+ 普通组件内部自身层级应设置在0-100间
102
+ */
103
+ /* ----------- zIndex ——————---- end */
95
104
  /* 多行显示省略号 */
96
105
  /* 单行显示省略号 */
97
106
  /** 浮层箭头样式 **/
@@ -99,7 +108,7 @@
99
108
  position: relative;
100
109
  width: 100%;
101
110
  height: 100%;
102
- border: 1px solid #ccc;
111
+ border: var(--kd-c-split-panel-wrapper-sizing-border, 1px) solid var(--kd-c-split-panel-color-border, #d9d9d9);
103
112
  overflow: hidden;
104
113
  }
105
114
  .kd-split-panel {
@@ -115,11 +124,11 @@
115
124
  }
116
125
  .kd-split-panel.left-panel {
117
126
  left: 0;
118
- margin-right: 0.5px;
127
+ margin-right: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
119
128
  }
120
129
  .kd-split-panel.right-panel {
121
130
  right: 0;
122
- margin-left: 0.5px;
131
+ margin-left: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
123
132
  }
124
133
  .kd-split-panel.top-panel,
125
134
  .kd-split-panel.bottom-panel {
@@ -128,11 +137,11 @@
128
137
  }
129
138
  .kd-split-panel.top-panel {
130
139
  top: 0;
131
- margin-bottom: 0.5px;
140
+ margin-bottom: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
132
141
  }
133
142
  .kd-split-panel.bottom-panel {
134
143
  bottom: 0;
135
- margin-top: 0.5px;
144
+ margin-top: calc(var(--kd-c-split-panel-line-sizing-border, 1px) / 2);
136
145
  }
137
146
  .kd-split-panel-moving {
138
147
  -webkit-user-select: none;
@@ -149,8 +158,8 @@
149
158
  transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
150
159
  }
151
160
  .kd-split-trigger-con.is-active .kd-split-trigger-arrow {
152
- border-color: #ccc;
153
- background: #ccc;
161
+ border-color: var(--kd-c-split-panel-arrow-color-background, #999);
162
+ background: var(--kd-c-split-panel-arrow-color-background, #999);
154
163
  color: white;
155
164
  }
156
165
  .kd-split-trigger-con.can-drag .kd-split-trigger-vertical {
@@ -163,17 +172,17 @@
163
172
  cursor: not-allowed;
164
173
  }
165
174
  .kd-split-trigger-con:not(.is-disabled):hover .kd-split-trigger-arrow {
166
- border-color: #ccc;
175
+ border-color: var(--kd-c-split-panel-arrow-color-background, #999);
167
176
  }
168
177
  .kd-split-trigger-con:not(.is-disabled) .kd-split-trigger-arrow:hover {
169
178
  cursor: pointer;
170
179
  background: #fff !important;
171
- color: #5582f3 !important;
172
- border-color: #5582f3 !important;
180
+ color: var(--kd-c-split-panel-arrow-color-background-hover, var(--kd-g-color-theme, #5582f3)) !important;
181
+ border-color: var(--kd-c-split-panel-arrow-color-background-hover, var(--kd-g-color-theme, #5582f3)) !important;
173
182
  }
174
183
  .kd-split-trigger-arrow {
175
184
  position: absolute;
176
- color: #a7b5d3;
185
+ color: var(--kd-c-split-panel-arrow-color-background, #999);
177
186
  display: -webkit-inline-box;
178
187
  display: -ms-inline-flexbox;
179
188
  display: inline-flex;
@@ -185,76 +194,58 @@
185
194
  justify-content: center;
186
195
  -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
187
196
  transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
197
+ -webkit-box-sizing: border-box;
198
+ box-sizing: border-box;
199
+ border: var(--kd-c-split-panel-arrow-sizing-border, 1px) solid transparent;
188
200
  }
189
201
  .kd-split-trigger-arrow .kdicon {
190
- display: -webkit-inline-box;
191
- display: -ms-inline-flexbox;
192
- display: inline-flex;
193
- -webkit-box-align: center;
194
- -ms-flex-align: center;
195
- align-items: center;
196
- -webkit-box-pack: center;
197
- -ms-flex-pack: center;
198
- justify-content: center;
199
- width: 12px;
200
- height: 12px;
201
202
  font-size: 12px;
202
203
  }
203
204
  .kd-split-trigger-arrow.is-vertical {
204
- width: 12px;
205
- height: 16px;
205
+ width: var(--kd-c-split-panel-arrow-sizing-width-vertical, 16px);
206
+ height: var(--kd-c-split-panel-arrow-sizing-height-vertical, 16px);
206
207
  top: 50%;
207
208
  -webkit-transform: translate(0, -50%);
208
209
  transform: translate(0, -50%);
209
210
  }
210
- .kd-split-trigger-arrow.is-vertical .kdicon {
211
- height: 12px;
212
- }
213
211
  .kd-split-trigger-arrow.is-horizontal {
214
- width: 16px;
215
- height: 12px;
212
+ width: var(--kd-c-split-panel-arrow-sizing-width-horizontal, 16px);
213
+ height: var(--kd-c-split-panel-arrow-sizing-height-horizontal, 16px);
216
214
  left: 50%;
217
215
  -webkit-transform: translate(-50%, 0);
218
216
  transform: translate(-50%, 0);
219
217
  }
220
- .kd-split-trigger-arrow.is-horizontal .kdicon {
221
- width: 12px;
222
- }
223
218
  .kd-split-trigger-arrow.top {
224
219
  bottom: 100%;
225
- border: 1px solid transparent;
226
220
  border-bottom: none;
227
- border-radius: 10px 10px 0 0;
221
+ border-radius: var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) 0 0;
228
222
  }
229
223
  .kd-split-trigger-arrow.bottom {
230
224
  top: 100%;
231
- border: 1px solid transparent;
232
225
  border-top: none;
233
- border-radius: 0 0 10px 10px;
226
+ border-radius: 0 0 var(--kd-c-split-panel-arrow-radius-border-vertical, 8px) var(--kd-c-split-panel-arrow-radius-border-vertical, 8px);
234
227
  }
235
228
  .kd-split-trigger-arrow.left {
236
229
  right: 100%;
237
- border: 1px solid transparent;
238
230
  border-right: none;
239
- border-radius: 10px 0 0 10px;
231
+ border-radius: var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) 0 0 var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px);
240
232
  }
241
233
  .kd-split-trigger-arrow.right {
242
234
  left: 100%;
243
- border: 1px solid transparent;
244
235
  border-left: none;
245
- border-radius: 0 10px 10px 0;
236
+ border-radius: 0 var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) var(--kd-c-split-panel-arrow-radius-border-horizontal, 8px) 0;
246
237
  }
247
238
  .kd-split-trigger-vertical {
248
- width: 1px;
239
+ width: var(--kd-c-split-panel-line-sizing-border, 1px);
249
240
  height: 100%;
250
- background: #ccc;
241
+ background: var(--kd-c-split-panel-line-color-background, #d9d9d9);
251
242
  border-top: none;
252
243
  border-bottom: none;
253
244
  }
254
245
  .kd-split-trigger-horizontal {
255
- height: 1px;
246
+ height: var(--kd-c-split-panel-line-sizing-border, 1px);
256
247
  width: 100%;
257
- background: #ccc;
248
+ background: var(--kd-c-split-panel-line-color-background, #d9d9d9);
258
249
  border-left: none;
259
250
  border-right: none;
260
251
  }
@@ -1,16 +1,17 @@
1
1
 
2
2
  @import '../../style/themes/index';
3
3
  @import '../../style/mixins/index';
4
+ @import './token.less';
4
5
 
5
6
  @split-prefix-cls: ~'@{kd-prefix}-split';
6
- @split-panel-padding-base: @split-panel-trigger-line-width / 2;
7
+ @split-panel-padding-base: calc(@split-panel-trigger-line-width / 2);
7
8
 
8
9
  .@{split-prefix-cls} {
9
10
  &-wrapper {
10
11
  position: relative;
11
12
  width: 100%;
12
13
  height: 100%;
13
- border: 1px solid @split-panel-trigger-border-color;
14
+ border: @split-panel-wrapper-border-width solid @split-panel-trigger-border-color;
14
15
  overflow: hidden;
15
16
  }
16
17
  &-panel {
@@ -56,8 +57,8 @@
56
57
  transition: all calc(@transition-duration - 0.1s) @ease-out;
57
58
  &.is-active {
58
59
  .@{split-prefix-cls}-trigger-arrow {
59
- border-color: @split-panel-trigger-border-color;
60
- background: @split-panel-trigger-border-color;
60
+ border-color: @split-panel-trigger-arrow-color;
61
+ background: @split-panel-trigger-arrow-color;
61
62
  color: white;
62
63
  }
63
64
  }
@@ -77,7 +78,7 @@
77
78
  &:not(.is-disabled) {
78
79
  &:hover{
79
80
  .@{split-prefix-cls}-trigger-arrow {
80
- border-color: @split-panel-trigger-border-color;
81
+ border-color: @split-panel-trigger-arrow-color;
81
82
  }
82
83
  }
83
84
  .@{split-prefix-cls}-trigger-arrow:hover {
@@ -95,61 +96,42 @@
95
96
  align-items: center;
96
97
  justify-content: center;
97
98
  transition: all calc(@transition-duration - 0.1s) @ease-out;
99
+ box-sizing: border-box;
100
+ border: @split-panel-arrow-border-width solid transparent;
98
101
  .@{kd-prefix}icon {
99
- display: inline-flex;
100
- align-items: center;
101
- justify-content: center;
102
- width: 12px;
103
- height: 12px;
104
102
  font-size: 12px;
105
103
  }
106
104
  &.is-vertical {
107
- width: 12px;
108
- height: 16px;
105
+ width: @split-panel-arrow-vertical-width;
106
+ height: @split-panel-arrow-vertical-height;
109
107
  top: 50%;
110
108
  transform: translate(0, -50%);
111
- .@{kd-prefix}icon {
112
- height: 12px;
113
- // position: absolute;
114
- // top: 50%;
115
- // transform: translate(0, -50%);
116
- }
117
109
  }
118
110
  &.is-horizontal {
119
- width: 16px;
120
- height: 12px;
111
+ width: @split-panel-arrow-horizontal-width;
112
+ height: @split-panel-arrow-horizontal-height;
121
113
  left: 50%;
122
114
  transform: translate(-50%, 0);
123
- .@{kd-prefix}icon {
124
- width: 12px;
125
- // position: absolute;
126
- // left: 50%;
127
- // transform: translate(-50%, 0);
128
- }
129
115
  }
130
116
  &.top {
131
117
  bottom: 100%;
132
- border: 1px solid transparent;
133
118
  border-bottom: none;
134
- border-radius: 10px 10px 0 0;
119
+ border-radius: @split-panel-arrow-vertical-radius @split-panel-arrow-vertical-radius 0 0;
135
120
  }
136
121
  &.bottom {
137
122
  top: 100%;
138
- border: 1px solid transparent;
139
123
  border-top: none;
140
- border-radius: 0 0 10px 10px;
124
+ border-radius: 0 0 @split-panel-arrow-vertical-radius @split-panel-arrow-vertical-radius;
141
125
  }
142
126
  &.left {
143
127
  right: 100%;
144
- border: 1px solid transparent;
145
128
  border-right: none;
146
- border-radius: 10px 0 0 10px;
129
+ border-radius: @split-panel-arrow-horizontal-radius 0 0 @split-panel-arrow-horizontal-radius;
147
130
  }
148
131
  &.right {
149
132
  left: 100%;
150
- border: 1px solid transparent;
151
133
  border-left: none;
152
- border-radius: 0 10px 10px 0;
134
+ border-radius: 0 @split-panel-arrow-horizontal-radius @split-panel-arrow-horizontal-radius 0;
153
135
  }
154
136
  }
155
137
  &-vertical {
@@ -0,0 +1,23 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @split-panel-custom-prefix: ~'--@{kd-prefix}-c-split-panel';
4
+
5
+ // color
6
+ @split-panel-trigger-border-color: var(~'@{split-panel-custom-prefix}-color-border', #d9d9d9);
7
+ @split-panel-trigger-arrow-color: var(~'@{split-panel-custom-prefix}-arrow-color-background', #999);
8
+ @split-panel-trigger-arrow-hover-color: var(~'@{split-panel-custom-prefix}-arrow-color-background-hover', @color-theme);
9
+ @split-panel-trigger-line-color: var(~'@{split-panel-custom-prefix}-line-color-background', #d9d9d9);
10
+
11
+ // radius
12
+ @split-panel-arrow-vertical-radius: var(~'@{split-panel-custom-prefix}-arrow-radius-border-vertical', 8px);
13
+ @split-panel-arrow-horizontal-radius: var(~'@{split-panel-custom-prefix}-arrow-radius-border-horizontal', 8px);
14
+
15
+ // sizing
16
+ @split-panel-wrapper-border-width: var(~'@{split-panel-custom-prefix}-wrapper-sizing-border', 1px);
17
+ @split-panel-trigger-line-width: var(~'@{split-panel-custom-prefix}-line-sizing-border', 1px);
18
+ @split-panel-arrow-border-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-border', 1px);
19
+ @split-panel-arrow-vertical-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-width-vertical', 16px);
20
+ @split-panel-arrow-vertical-height: var(~'@{split-panel-custom-prefix}-arrow-sizing-height-vertical', 16px);
21
+ @split-panel-arrow-horizontal-width: var(~'@{split-panel-custom-prefix}-arrow-sizing-width-horizontal', 16px);
22
+ @split-panel-arrow-horizontal-height: var(~'@{split-panel-custom-prefix}-arrow-sizing-height-horizontal', 16px);
23
+
@@ -92,6 +92,27 @@
92
92
  /* ----------- Avatar ——————---- end */
93
93
  /* ----------- AdvancedSelector ——————---- start */
94
94
  /* ----------- AdvancedSelector ——————---- end */
95
+ /* ----------- motion ——————---- start */
96
+ /* ----------- motion ——————---- end */
97
+ /* ----------- transition ——————---- start */
98
+ /* ----------- transition ——————---- end */
99
+ /* ----------- zIndex ——————---- start */
100
+ /*
101
+ 普通组件内部自身层级应设置在0-100间
102
+ */
103
+ /* ----------- zIndex ——————---- end */
104
+ .kd-inputNumber {
105
+ width: 100px;
106
+ height: var(--kd-c-stepper-input-middle-sizing-height, 28px);
107
+ }
108
+ .kd-inputNumber input {
109
+ text-align: center;
110
+ color: var(--kd-c-stepper-input-color, var(--kd-g-color-text-primary, #212121));
111
+ margin: 0 4px;
112
+ }
113
+ .kd-inputNumber-icon {
114
+ font-size: 14px;
115
+ }
95
116
  .kd-inputNumber-baseStep {
96
117
  display: -webkit-box;
97
118
  display: -ms-flexbox;
@@ -108,21 +129,25 @@
108
129
  cursor: pointer;
109
130
  }
110
131
  .kd-inputNumber-baseStep-small {
111
- width: 20px;
132
+ width: var(--kd-c-stepper-input-small-sizing-height, 20px);
112
133
  }
113
134
  .kd-inputNumber-baseStep-middle {
114
- width: 30px;
135
+ width: var(--kd-c-stepper-input-middle-sizing-height, 28px);
115
136
  }
116
137
  .kd-inputNumber-baseStep-large {
117
- width: 36px;
138
+ width: var(--kd-c-stepper-input-large-sizing-height, 36px);
118
139
  }
119
140
  .kd-inputNumber-baseStep .kd-inputNumber-icon {
120
- color: #666;
121
- -webkit-transition: color 0.3s;
122
- transition: color 0.3s;
141
+ color: var(--kd-c-stepper-icon-color, var(--kd-g-color-text-secondary, #666));
142
+ -webkit-transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
143
+ transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
144
+ font-size: 16px;
145
+ }
146
+ .kd-inputNumber-baseStep .kd-inputNumber-icon:hover {
147
+ color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
123
148
  }
124
149
  .kd-inputNumber-baseStep:hover:not(.kd-inputNumber-baseStep-disabled) .kd-inputNumber-icon {
125
- color: #87adff;
150
+ color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
126
151
  }
127
152
  .kd-inputNumber-baseStep-disabled {
128
153
  cursor: not-allowed;
@@ -131,34 +156,34 @@
131
156
  color: unset !important;
132
157
  }
133
158
  .kd-inputNumber-baseStep-decrease {
134
- border-right: 1px solid #d9d9d9;
159
+ border-right: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
135
160
  }
136
161
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-small,
137
162
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-small {
138
- margin-left: -9px;
163
+ margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
139
164
  }
140
165
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-middle,
141
166
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-middle {
142
- margin-left: -9px;
167
+ margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
143
168
  }
144
169
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-large,
145
170
  .kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-large {
146
- margin-left: -9px;
171
+ margin-left: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
147
172
  }
148
173
  .kd-inputNumber-baseStep-increase {
149
- border-left: 1px solid #d9d9d9;
174
+ border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
150
175
  }
151
176
  .kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-small,
152
177
  .kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-small {
153
- margin-right: -9px;
178
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
154
179
  }
155
180
  .kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-middle,
156
181
  .kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-middle {
157
- margin-right: -9px;
182
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
158
183
  }
159
184
  .kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-large,
160
185
  .kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-large {
161
- margin-right: -9px;
186
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
162
187
  }
163
188
  .kd-inputNumber-embedStep {
164
189
  display: -webkit-box;
@@ -173,22 +198,22 @@
173
198
  justify-content: center;
174
199
  height: 100%;
175
200
  border-radius: 0 1px 1px 0;
176
- background-color: #f6f7f9;
201
+ background-color: var(--kd-c-stepper-embed-icon-color-background, #f6f7f9);
177
202
  overflow: hidden;
178
- border-left: 1px solid #d9d9d9;
203
+ border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
179
204
  border: none;
180
205
  }
181
206
  .kd-inputNumber-embedStep.kd-inputNumber-baseStep-small,
182
207
  .kd-inputNumber-embedStep.kd-inputNumber-embedStep-small {
183
- margin-right: -9px;
208
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
184
209
  }
185
210
  .kd-inputNumber-embedStep.kd-inputNumber-baseStep-middle,
186
211
  .kd-inputNumber-embedStep.kd-inputNumber-embedStep-middle {
187
- margin-right: -9px;
212
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
188
213
  }
189
214
  .kd-inputNumber-embedStep.kd-inputNumber-baseStep-large,
190
215
  .kd-inputNumber-embedStep.kd-inputNumber-embedStep-large {
191
- margin-right: -9px;
216
+ margin-right: calc(-1 * var(--kd-c-stepper-input-spacing-padding-horizontal, 9px));
192
217
  }
193
218
  .kd-inputNumber-embedStep span {
194
219
  height: 50%;
@@ -201,17 +226,17 @@
201
226
  -webkit-box-pack: center;
202
227
  -ms-flex-pack: center;
203
228
  justify-content: center;
204
- border-left: 1px solid #d9d9d9;
205
- border-bottom: 1px solid #d9d9d9;
229
+ border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
230
+ border-bottom: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
206
231
  cursor: pointer;
207
232
  font-size: 12px;
208
233
  }
209
234
  .kd-inputNumber-embedStep span .kd-inputNumber-icon {
210
- -webkit-transition: color 0.3s;
211
- transition: color 0.3s;
235
+ -webkit-transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
236
+ transition: color var(--kd-c-stepper-motion-duration, var(--kd-g-duration, 0.3s));
212
237
  }
213
238
  .kd-inputNumber-embedStep span:hover .kd-inputNumber-icon {
214
- color: #87adff;
239
+ color: var(--kd-c-stepper-icon-color-hover, var(--kd-g-color-theme, #5582f3));
215
240
  }
216
241
  .kd-inputNumber-embedStep span:last-child {
217
242
  border-bottom: none;
@@ -1,7 +1,21 @@
1
1
  @import '../../style/themes/index';
2
2
  @import './mixin.less';
3
+
3
4
  @inputNumber-prefix-cls: ~'@{kd-prefix}-inputNumber';
4
5
  .@{inputNumber-prefix-cls} {
6
+ width: 100px;
7
+ height: @stepper-input-middle-sizing-height;
8
+
9
+ input {
10
+ text-align: center;
11
+ color: @stepper-input-color;
12
+ margin: 0 4px;
13
+ }
14
+
15
+ &-icon {
16
+ font-size: 14px;
17
+ }
18
+
5
19
  &-baseStep {
6
20
  display: flex;
7
21
  justify-content: center;
@@ -9,67 +23,87 @@
9
23
  box-sizing: border-box;
10
24
  height: 100%;
11
25
  cursor: pointer;
26
+
12
27
  &-small {
13
- .base-step-size(@input-small-height);
28
+ .base-step-size(@stepper-input-small-sizing-height);
14
29
  }
30
+
15
31
  &-middle {
16
- .base-step-size(@input-middle-height);
32
+ .base-step-size(@stepper-input-middle-sizing-height);
17
33
  }
34
+
18
35
  &-large {
19
- .base-step-size(@input-large-height);
36
+ .base-step-size(@stepper-input-large-sizing-height);
20
37
  }
38
+
21
39
  .@{inputNumber-prefix-cls}-icon {
22
- color: @secondary-text-color;
23
- transition: color @transition-duration;
40
+ color: @stepper-icon-color;
41
+ transition: color @stepper-motion-duration;
42
+ font-size: 16px;
43
+
44
+ &:hover {
45
+ color: @stepper-icon-color-hover;
46
+ }
24
47
  }
48
+
25
49
  &:hover:not(&-disabled) .@{inputNumber-prefix-cls}-icon {
26
- color: @theme-color-hover;
50
+ color: @stepper-icon-color-hover;
27
51
  }
28
52
 
29
53
  &-disabled {
30
54
  cursor: not-allowed;
55
+
31
56
  .@{inputNumber-prefix-cls}-icon {
32
57
  color: unset !important;
33
58
  }
34
59
  }
35
60
  }
61
+
36
62
  &-baseStep-decrease {
37
63
  .step-style(right, left);
38
64
  }
65
+
39
66
  &-baseStep-increase {
40
67
  .step-style(left, right);
41
68
  }
69
+
42
70
  &-embedStep {
43
71
  display: flex;
44
72
  flex-direction: column;
45
73
  justify-content: center;
46
74
  height: 100%;
47
75
  border-radius: 0 1px 1px 0;
48
- background-color: @inputNumber-embedStepBtn-bg-color;
76
+ background-color: @stepper-embed-icon-color-background;
49
77
  overflow: hidden;
50
78
  .step-style(left, right);
51
79
  border: none;
80
+
52
81
  span {
53
82
  height: 50%;
54
83
  display: flex;
55
84
  align-items: center;
56
85
  justify-content: center;
57
- border-left: 1px solid @strong-border-color;
58
- border-bottom: 1px solid @strong-border-color;
86
+ border-left: 1px solid @stepper-color-border-strong;
87
+ border-bottom: 1px solid @stepper-color-border-strong;
59
88
  cursor: pointer;
60
89
  font-size: 12px;
90
+
61
91
  .@{inputNumber-prefix-cls}-icon {
62
- transition: color @transition-duration;
92
+ transition: color @stepper-motion-duration;
63
93
  }
94
+
64
95
  &:hover .@{inputNumber-prefix-cls}-icon {
65
- color: @theme-color-hover;
96
+ color: @stepper-icon-color-hover;
66
97
  }
98
+
67
99
  &:last-child {
68
100
  border-bottom: none;
69
101
  }
70
102
  }
103
+
71
104
  &-disabled {
72
105
  cursor: not-allowed !important;
106
+
73
107
  .@{inputNumber-prefix-cls}-icon {
74
108
  color: unset !important;
75
109
  }
@@ -1,15 +1,17 @@
1
+ @import './token.less';
2
+
1
3
  .base-step-size(@width) {
2
4
  width: @width;
3
5
  }
4
6
  .step-style(@borderDirection, @marginDirection) {
5
- border-@{borderDirection}: 1px solid @strong-border-color;
7
+ border-@{borderDirection}: 1px solid @stepper-color-border-strong;
6
8
  &.@{inputNumber-prefix-cls}-baseStep-small, &.@{inputNumber-prefix-cls}-embedStep-small {
7
- margin-@{marginDirection}: -@input-small-padding-horizontal;
9
+ margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
8
10
  }
9
11
  &.@{inputNumber-prefix-cls}-baseStep-middle, &.@{inputNumber-prefix-cls}-embedStep-middle {
10
- margin-@{marginDirection}: -@input-middle-padding-horizontal;
12
+ margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
11
13
  }
12
14
  &.@{inputNumber-prefix-cls}-baseStep-large, &.@{inputNumber-prefix-cls}-embedStep-large {
13
- margin-@{marginDirection}: -@input-large-padding-horizontal;
15
+ margin-@{marginDirection}: calc(-1 * @stepper-input-spacing-padding-horizontal);
14
16
  }
15
- }
17
+ }
@@ -0,0 +1,28 @@
1
+ @import "../../style/themes/token.less";
2
+
3
+ @stepper-prefix: '--@{kd-prefix}-c-stepper';
4
+
5
+ // shadow
6
+ // color
7
+ @stepper-input-color: var(~'@{stepper-prefix}-input-color', @color-text-primary);
8
+ @stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
9
+ @stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
10
+ @stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
11
+ @stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', #f6f7f9);
12
+
13
+ // sizing
14
+ @stepper-input-small-sizing-height: var(~'@{stepper-prefix}-input-small-sizing-height', 20px);
15
+ @stepper-input-middle-sizing-height: var(~'@{stepper-prefix}-input-middle-sizing-height', 28px);
16
+ @stepper-input-large-sizing-height: var(~'@{stepper-prefix}-input-large-sizing-height', 36px);
17
+
18
+ // spacing
19
+ @stepper-input-spacing-padding-horizontal: var(~'@{stepper-prefix}-input-spacing-padding-horizontal', 9px);
20
+
21
+ // motion
22
+ @stepper-motion-duration: var(~'@{stepper-prefix}-motion-duration', @duration-promptly);
23
+
24
+ // font
25
+ // radius
26
+ // line-height
27
+ // z-index
28
+
package/es/steps/Steps.js CHANGED
@@ -72,7 +72,10 @@ var Steps = function Steps(props) {
72
72
  type: "right-bold",
73
73
  className: "".concat(stepsPrefixCls, "-iconSize")
74
74
  });
75
- actualIcons.error = icons && icons.error || /*#__PURE__*/React.createElement("span", null, "!");
75
+ actualIcons.error = icons && icons.error || /*#__PURE__*/React.createElement(Icon, {
76
+ type: "exclamatory",
77
+ className: "".concat(stepsPrefixCls, "-iconSize")
78
+ });
76
79
  return actualIcons;
77
80
  };
78
81