@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
@@ -1,4 +1,6 @@
1
1
  @import '../../style/themes/index';
2
+ @import './token.less';
3
+
2
4
  @checkbox-prefix-cls: ~'@{kd-prefix}-checkbox';
3
5
  @checkbox-group-prefix-cls: ~'@{kd-prefix}-group';
4
6
 
@@ -55,7 +57,7 @@
55
57
  border-radius: 2px;
56
58
  border: 1px solid @checkbox-border-color;
57
59
  padding: @checkbox-square-padding;
58
- transition: color @transition-duration, border-color @transition-duration;
60
+ transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
59
61
  &:not(&-disabled)::after {
60
62
  content: '';
61
63
  position: absolute;
@@ -65,7 +67,7 @@
65
67
  left: 0;
66
68
  border-radius: inherit;
67
69
  opacity: 0.2;
68
- box-shadow: 0 0 0 0 @theme-color;
70
+ box-shadow: 0 0 0 0 @checkbox-color-theme;
69
71
  }
70
72
  &:hover {
71
73
  color: @checkbox-checked-font-color;
@@ -87,8 +89,8 @@
87
89
  border-bottom-color: @checkbox-checked-border-color;
88
90
  }
89
91
  &-triangle {
90
- animation: kdZoomBounceLeaveEffect calc(@transition-duration - 0.1s) @ease-out forwards;
91
- transition: all @transition-duration @ease;
92
+ animation: kdZoomBounceLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
93
+ transition: all @checkbox-transition-duration cubic-bezier(0.4,0,0.6,1);
92
94
  visibility: hidden;
93
95
  opacity: 0;
94
96
  }
@@ -106,7 +108,7 @@
106
108
  &-inner-icon {
107
109
  font-size: inherit;
108
110
  line-height: 100%;
109
- animation: kdZoomLeaveEffect calc(@transition-duration - 0.1s) @ease-out;
111
+ animation: kdZoomLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
110
112
  }
111
113
  &-triangle-disabled {
112
114
  border-bottom-color: @checkbox-disabled-bg-color;
@@ -121,14 +123,14 @@
121
123
  &-checked {
122
124
  border-color: @checkbox-checked-border-color;
123
125
  &:not(&-disabled)::after {
124
- animation: fadeEffect calc(@transition-duration + 0.1s) @ease-out forwards,
125
- waveEffect calc(@transition-duration - 0.1s) @ease-out forwards;
126
+ animation: fadeEffect calc(@checkbox-transition-duration + 0.1s) cubic-bezier(0,.4,.4,1) forwards,
127
+ waveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
126
128
  }
127
129
  .@{checkbox-prefix-cls}-square-triangle-checked:not(.@{checkbox-prefix-cls}-square-disabled) {
128
- animation: kdZoomBounceEffect calc(@transition-duration - 0.1s) @ease;
130
+ animation: kdZoomBounceEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0.4,0,0.6,1);
129
131
  }
130
132
  .@{checkbox-prefix-cls}-square-inner-icon:not(.@{checkbox-prefix-cls}-square-disabled) {
131
- animation: kdZoomEffect calc(@transition-duration - 0.1s) @ease-out;
133
+ animation: kdZoomEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
132
134
  }
133
135
  }
134
136
  &-checked-disabled {
@@ -148,7 +150,7 @@
148
150
  .@{checkbox-prefix-cls}-default {
149
151
  border: none;
150
152
  padding: @checkbox-default-padding;
151
- transition: color @transition-duration, border-color @transition-duration;
153
+ transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
152
154
  &:hover,
153
155
  &:hover &-wrapper {
154
156
  color: @checkbox-checked-font-color;
@@ -170,7 +172,7 @@
170
172
  border: @checkbox-default-input-border-width solid @checkbox-border-color;
171
173
  border-radius: @checkbox-default-input-border-radius;
172
174
  box-sizing: border-box;
173
- transition: color @transition-duration, border-color @transition-duration;
175
+ transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
174
176
  &:not(&-disabled)::after {
175
177
  content: '';
176
178
  position: absolute;
@@ -180,7 +182,7 @@
180
182
  left: 0;
181
183
  border-radius: inherit;
182
184
  opacity: 0.2;
183
- box-shadow: 0 0 0 0 @theme-color;
185
+ box-shadow: 0 0 0 0 @checkbox-color-theme;
184
186
  }
185
187
  }
186
188
  &-wrapper-size {
@@ -203,14 +205,14 @@
203
205
  &-checked {
204
206
  background-color: @checkbox-checked-border-color;
205
207
  border-color: @checkbox-checked-border-color;
206
- transition: background-color calc(@transition-duration - 0.1s) @ease-out,
207
- border-color calc(@transition-duration - 0.1s) @ease-out;
208
+ transition: background-color calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1),
209
+ border-color calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
208
210
  &:not(&-disabled)::after {
209
- animation: fadeEffect calc(@transition-duration + 0.1s) @ease-out forwards,
210
- waveEffect calc(@transition-duration - 0.1s) @ease-out forwards;
211
+ animation: fadeEffect calc(@checkbox-transition-duration + 0.1s) cubic-bezier(0,.4,.4,1) forwards,
212
+ waveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
211
213
  }
212
214
  .@{checkbox-prefix-cls}-default-inner:not(&-disabled .@{checkbox-prefix-cls}-default-inner) {
213
- animation: kdZoomBounceDefaultEffect calc(@transition-duration - 0.1s) @ease !important;
215
+ animation: kdZoomBounceDefaultEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0.4,0,0.6,1) !important;
214
216
  }
215
217
  }
216
218
  &-inner {
@@ -228,19 +230,16 @@
228
230
  font-size: inherit;
229
231
  line-height: 100%;
230
232
  }
231
- &-indeterminate {
232
- background-color: @checkbox-checked-border-color;
233
- border-color: @checkbox-checked-border-color;
234
- }
235
233
  &-indeterminate::before {
236
- background-color: @checkbox-bg-color;
237
234
  position: absolute;
238
- width: 70%;
239
- height: 2px;
240
- border-radius: 1px;
241
235
  top: 50%;
242
- transform: translate(-50%, -50%);
243
236
  left: 50%;
244
- content: ' ';
237
+ width: 8px;
238
+ height: 8px;
239
+ background-color: @checkbox-checked-border-color;
240
+ border: 0;
241
+ transform: translate(-50%,-50%) scale(1);
242
+ opacity: 1;
243
+ content: " ";
245
244
  }
246
245
  }
@@ -0,0 +1,48 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @checkbox-prefix: '--@{kd-prefix}-c-checkbox';
4
+
5
+ // font-size
6
+ @checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
7
+ @checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 14px); // 勾选输入框勾勾图标大小
8
+ @checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
9
+
10
+ // colors
11
+ @checkbox-color-theme: var(~'@{checkbox-prefix}-color-theme', @color-theme);
12
+ @checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', @color-text-primary);
13
+ @checkbox-border-color: var(~'@{checkbox-prefix}-color-border', @color-border-strong);
14
+ @checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
15
+ @checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
16
+ @checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
17
+ @checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
18
+ @checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
19
+ @checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-disabled);
20
+
21
+ // sizing
22
+ @checkbox-small-size-height: var(~'@{checkbox-prefix}-sizing-height-small', 32px); // 小尺寸复选框
23
+ @checkbox-middle-size-height: var(~'@{checkbox-prefix}-sizing-height-middle', 36px); // 中尺寸复选框
24
+ @checkbox-large-size-height: var(~'@{checkbox-prefix}-sizing-height-large', 40px); // 大尺寸复选框
25
+
26
+ // @checkbox-border-width: 1px; // 边框类型边框大小
27
+ @checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
28
+
29
+ @checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 16px); // 勾选输入框高度
30
+ @checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 16px); // 勾选输入框宽度
31
+
32
+ // @checkbox-default-input-border-width: 1px; // 勾选输入框边框大小
33
+ @checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
34
+
35
+ @checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
36
+ @checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
37
+
38
+ // spacing
39
+ @checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 8px); // 按钮组的间距
40
+ @checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
41
+ @checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 8px); // 勾选输入框与右侧内容间距
42
+ @checkbox-square-padding: var(~'@{checkbox-prefix}-square-spacing-padding', 0 20px); // 边框类型内边距
43
+
44
+ // radius
45
+ @checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
46
+
47
+ // motion
48
+ @checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
@@ -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
  .kd-city-picker-container {
96
105
  display: -webkit-box;
97
106
  display: -ms-flexbox;
@@ -153,9 +162,9 @@
153
162
  transform: rotate(180deg);
154
163
  }
155
164
  .kd-city-picker-panel-container {
156
- width: 460px;
157
- height: 373px;
158
- font-size: 12px;
165
+ width: var(--kd-c-city-picker-panel-sizing-width, 460px);
166
+ height: var(--kd-c-city-picker-panel-sizing-height, 373px);
167
+ font-size: var(--kd-c-city-picker-panel-font-size, 12px);
159
168
  line-height: 18px;
160
169
  letter-spacing: 0;
161
170
  }
@@ -174,7 +183,7 @@
174
183
  padding: 3px 0;
175
184
  }
176
185
  .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active {
177
- color: #5582f3;
186
+ color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
178
187
  z-index: 1;
179
188
  }
180
189
  .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active::before {
@@ -192,7 +201,7 @@
192
201
  right: 0;
193
202
  bottom: 0;
194
203
  z-index: -2;
195
- background: #fafafa;
204
+ background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
196
205
  border-radius: 2px 4px 0 0;
197
206
  -webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
198
207
  transform: scaleY(1.25) perspective(18px) rotateX(10deg);
@@ -213,7 +222,7 @@
213
222
  right: 0;
214
223
  bottom: 0;
215
224
  z-index: -2;
216
- background: #fafafa;
225
+ background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
217
226
  border-radius: 4px 4px 0 0;
218
227
  -webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
219
228
  transform: scaleY(1.25) perspective(18px) rotateX(10deg);
@@ -230,7 +239,7 @@
230
239
  cursor: pointer;
231
240
  }
232
241
  .kd-city-picker-panel-item:hover {
233
- background: #F5F5F5;
242
+ background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
234
243
  border-radius: 2px;
235
244
  }
236
245
  .kd-city-picker-content-container {
@@ -239,6 +248,7 @@
239
248
  background: #fff;
240
249
  -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
241
250
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
251
+ border-radius: 0 var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
242
252
  }
243
253
  .kd-city-picker-group-container {
244
254
  display: -webkit-box;
@@ -265,11 +275,11 @@
265
275
  text-align: center;
266
276
  }
267
277
  .kd-city-picker-group-item:hover {
268
- color: #5582f3;
278
+ color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
269
279
  }
270
280
  .kd-city-picker-group-item.active {
271
- color: #5582f3;
272
- border-bottom: 2px solid #5582f3;
281
+ color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
282
+ border-bottom: 2px solid var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
273
283
  }
274
284
  .kd-city-picker-group-item.last {
275
285
  -ms-flex-negative: 1;
@@ -320,7 +330,7 @@
320
330
  .kd-city-picker-city-table .kd-city-picker-city-table-cell {
321
331
  margin: 4px 6px;
322
332
  padding: 3px 6px;
323
- color: #212121;
333
+ color: var(--kd-c-city-picker-panel-item-color, var(--kd-g-color-text-primary, #212121));
324
334
  cursor: pointer;
325
335
  width: 60px;
326
336
  overflow: hidden;
@@ -328,7 +338,7 @@
328
338
  text-overflow: ellipsis;
329
339
  }
330
340
  .kd-city-picker-city-table .kd-city-picker-city-table-cell:hover {
331
- background: #F5F5F5;
341
+ background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
332
342
  border-radius: 2px;
333
343
  }
334
344
  .kd-city-picker-search-panel {
@@ -366,7 +376,7 @@
366
376
  cursor: pointer;
367
377
  }
368
378
  .kd-city-picker-search-panel .kd-city-picker-search-panel-item:hover {
369
- background: #F5F5F5;
379
+ background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
370
380
  }
371
381
  .kd-city-picker-search-panel .kd-city-picker-search-panel-item .kd-city-picker-search-panel-item-left {
372
382
  overflow: hidden;
@@ -393,7 +403,7 @@
393
403
  color: #999999;
394
404
  }
395
405
  .kd-city-picker-search-keyword {
396
- color: #5582f3;
406
+ color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
397
407
  }
398
408
  .kd-city-picker-no-data {
399
409
  width: 100%;
@@ -1,9 +1,8 @@
1
-
2
1
  @import '../../style/themes/index';
3
2
  @import './mixin.less';
3
+ @import './token.less';
4
4
 
5
5
  @city-picker-prefix-cls: ~'@{kd-prefix}-city-picker';
6
- @hover-bg: #F5F5F5;
7
6
 
8
7
  .@{city-picker-prefix-cls}-container {
9
8
  display: flex;
@@ -55,9 +54,9 @@
55
54
  }
56
55
 
57
56
  .@{city-picker-prefix-cls}-panel-container {
58
- width: 460px;
59
- height: 373px;
60
- font-size: 12px;
57
+ width: @city-picker-panel-sizing-width;
58
+ height: @city-picker-panel-sizing-height;
59
+ font-size: @city-picker-panel-font-size;
61
60
  line-height: 18px;
62
61
  letter-spacing: 0;
63
62
 
@@ -72,7 +71,7 @@
72
71
  padding: 3px 0;
73
72
 
74
73
  &.active {
75
- color: @theme-color;
74
+ color: @city-picker-theme-color;
76
75
  z-index: 1;
77
76
 
78
77
  &::before {
@@ -92,7 +91,7 @@
92
91
  right: 0;
93
92
  bottom: 0;
94
93
  z-index: -2;
95
- background: @contain-bg;
94
+ background: @city-picker-background-color;
96
95
  border-radius: 2px 4px 0 0;
97
96
  transform: scaleY(1.25) perspective(18px) rotateX(10deg);
98
97
  transform-origin: bottom left;
@@ -111,7 +110,7 @@
111
110
  right: 0;
112
111
  bottom: 0;
113
112
  z-index: -2;
114
- background: @contain-bg;
113
+ background: @city-picker-background-color;
115
114
  border-radius: 4px 4px 0 0;
116
115
  transform: scaleY(1.25) perspective(18px) rotateX(10deg);
117
116
  transform-origin: bottom;
@@ -129,7 +128,7 @@
129
128
  cursor: pointer;
130
129
 
131
130
  &:hover {
132
- background: @hover-bg;
131
+ background: @city-picker-background-hover-color;
133
132
  border-radius: 2px;
134
133
  }
135
134
  }
@@ -139,6 +138,7 @@
139
138
  padding: 0 20px 12px 20px;
140
139
  background: #fff;
141
140
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
141
+ border-radius: 0 @city-picker-panel-radius-border @city-picker-panel-radius-border @city-picker-panel-radius-border;
142
142
  }
143
143
 
144
144
  .@{city-picker-prefix-cls}-group-container {
@@ -158,12 +158,12 @@
158
158
  text-align: center;
159
159
 
160
160
  &:hover {
161
- color: @theme-color;
161
+ color: @city-picker-theme-color;
162
162
  }
163
163
 
164
164
  &.active {
165
- color: @theme-color;
166
- border-bottom: 2px solid @theme-color;
165
+ color: @city-picker-theme-color;
166
+ border-bottom: 2px solid @city-picker-theme-color;
167
167
  }
168
168
 
169
169
  &.last {
@@ -202,7 +202,7 @@
202
202
  .@{city-picker-prefix-cls}-city-table-cell {
203
203
  margin: 4px 6px;
204
204
  padding: 3px 6px;
205
- color: #212121;
205
+ color: @city-picker-panel-item-color;
206
206
  cursor: pointer;
207
207
  width: 60px;
208
208
  overflow: hidden;
@@ -211,7 +211,7 @@
211
211
  text-overflow: ellipsis;
212
212
 
213
213
  &:hover {
214
- background: @hover-bg;
214
+ background: @city-picker-background-hover-color;
215
215
  border-radius: 2px;
216
216
  }
217
217
  }
@@ -240,7 +240,7 @@
240
240
  cursor: pointer;
241
241
 
242
242
  &:hover {
243
- background: @hover-bg;
243
+ background: @city-picker-background-hover-color;
244
244
  }
245
245
 
246
246
  .@{city-picker-prefix-cls}-search-panel-item-left {
@@ -268,7 +268,7 @@
268
268
  }
269
269
 
270
270
  .@{city-picker-prefix-cls}-search-keyword {
271
- color: @theme-color;
271
+ color: @city-picker-theme-color;
272
272
  }
273
273
 
274
274
  .@{city-picker-prefix-cls}-no-data {
@@ -0,0 +1,25 @@
1
+ @import "../../style/themes/token.less";
2
+
3
+ @city-picker-prefix: '--@{kd-prefix}-c-city-picker';
4
+
5
+
6
+
7
+ // color
8
+ @city-picker-theme-color: var(~'@{city-picker-prefix}-color', @color-theme);
9
+ @city-picker-panel-item-color: var(~'@{city-picker-prefix}-panel-item-color', @color-text-primary);
10
+ @city-picker-background-color: var(~'@{city-picker-prefix}-color-background', @color-background-contain);
11
+ @city-picker-background-hover-color: var(~'@{city-picker-prefix}-color-background-hover', @color-hover);
12
+
13
+ // sizing
14
+ @city-picker-panel-sizing-width: var(~'@{city-picker-prefix}-panel-sizing-width', 460px);
15
+ @city-picker-panel-sizing-height: var(~'@{city-picker-prefix}-panel-sizing-height', 373px);
16
+ // spacing
17
+ // motion
18
+
19
+ // font
20
+ @city-picker-panel-font-size: var(~'@{city-picker-prefix}-panel-font-size', 12px);
21
+
22
+ // radius
23
+ @city-picker-panel-radius-border: var(~'@{city-picker-prefix}-panel-radius-border', @radius-border);
24
+ // line-height
25
+ // z-index
@@ -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
  .kd-collapse {
96
105
  display: -webkit-box;
97
106
  display: -ms-flexbox;
@@ -115,16 +124,17 @@
115
124
  flex-direction: column;
116
125
  }
117
126
  .kd-collapse-panel-border {
118
- border: 1px solid #d9d9d9;
127
+ border: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
119
128
  }
120
129
  .kd-collapse-panel-top {
121
130
  display: -webkit-inline-box;
122
131
  display: -ms-inline-flexbox;
123
132
  display: inline-flex;
124
- padding: 12px;
133
+ padding: var(--kd-c-collapse-header-spacing-padding, 12px);
134
+ background: var(--kd-c-collapse-header-color-background, rgba(0, 0, 0, 0));
125
135
  }
126
136
  .kd-collapse-panel-top-border {
127
- border-bottom: 1px solid #d9d9d9;
137
+ border-bottom: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
128
138
  }
129
139
  .kd-collapse-panel-left {
130
140
  display: -webkit-inline-box;
@@ -153,8 +163,8 @@
153
163
  -webkit-box-align: center;
154
164
  -ms-flex-align: center;
155
165
  align-items: center;
156
- color: #212121;
157
- font-size: 14px;
166
+ color: var(--kd-c-collapse-header-color-text-primary, var(--kd-g-color-text-primary, #212121));
167
+ font-size: var(--kd-c-collapse-header-font-size, var(--kd-g-font-size-middle, 14px));
158
168
  }
159
169
  .kd-collapse-panel-icon {
160
170
  -webkit-box-align: center;
@@ -163,7 +173,7 @@
163
173
  display: -webkit-inline-box;
164
174
  display: -ms-inline-flexbox;
165
175
  display: inline-flex;
166
- margin-right: 6px;
176
+ margin-right: var(--kd-c-collapse-spacing-margin-right, 6px);
167
177
  }
168
178
  .kd-collapse-panel-icon:hover,
169
179
  .kd-collapse-panel-left:hover {
@@ -172,43 +182,44 @@
172
182
  .kd-collapse-panel-animation-expand {
173
183
  -webkit-transform: rotate(0deg);
174
184
  transform: rotate(0deg);
175
- -webkit-transition: -webkit-transform 0.3s;
176
- transition: -webkit-transform 0.3s;
177
- transition: transform 0.3s;
178
- transition: transform 0.3s, -webkit-transform 0.3s;
185
+ -webkit-transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
186
+ transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
187
+ transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
188
+ transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
179
189
  }
180
190
  .kd-collapse-panel-animation-collapse {
181
191
  -webkit-transform: rotate(90deg);
182
192
  transform: rotate(90deg);
183
- -webkit-transition: -webkit-transform 0.3s;
184
- transition: -webkit-transform 0.3s;
185
- transition: transform 0.3s;
186
- transition: transform 0.3s, -webkit-transform 0.3s;
193
+ -webkit-transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
194
+ transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
195
+ transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
196
+ transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
187
197
  }
188
198
  .kd-collapse-panel-children {
189
199
  overflow: hidden;
190
200
  opacity: 0;
191
- padding: 0 16px;
192
- color: #212121;
193
- font-size: 14px;
194
- -webkit-transition: height 0.3s, opacity 0.3s;
195
- transition: height 0.3s, opacity 0.3s;
201
+ padding: var(--kd-c-collapse-content-spacing-padding, 0 16px);
202
+ color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
203
+ font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
204
+ -webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
205
+ transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
206
+ background: var(--kd-c-collapse-content-color-background, rgba(0, 0, 0, 0));
196
207
  }
197
208
  .kd-collapse-panel-children-hide {
198
209
  overflow: hidden;
199
210
  opacity: 0;
200
211
  height: 0;
201
- padding: 0 16px;
202
- color: #212121;
203
- font-size: 14px;
204
- -webkit-transition: height 0.3s, opacity calc(0.3s / 2);
205
- transition: height 0.3s, opacity calc(0.3s / 2);
212
+ padding: var(--kd-c-collapse-content-spacing-padding, 0 16px);
213
+ color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
214
+ font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
215
+ -webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity calc(var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)) / 2);
216
+ transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity calc(var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)) / 2);
206
217
  }
207
218
  .kd-collapse-panel-children-bordered {
208
- padding: 12px;
219
+ padding: var(--kd-c-collapse-content-bordered-spacing-padding, 12px);
209
220
  overflow: hidden;
210
221
  }
211
222
  .kd-collapse-panel-disabled {
212
223
  cursor: not-allowed !important;
213
- color: #b2b2b2;
224
+ color: var(--kd-c-collapse-color-disabled, raba(178, 178, 178, 1));
214
225
  }
@@ -19,6 +19,7 @@
19
19
  &-top {
20
20
  display: inline-flex;
21
21
  padding: @collapse-header-padding;
22
+ background: @collapse-header-color-background;
22
23
  }
23
24
  &-top-border {
24
25
  border-bottom: @collapse-border-width solid @collapse-border-color;
@@ -50,11 +51,11 @@
50
51
  }
51
52
  &-animation-expand {
52
53
  transform: rotate(0deg);
53
- transition: transform @transition-duration;
54
+ transition: transform @collapse-transition-duration;
54
55
  }
55
56
  &-animation-collapse {
56
57
  transform: rotate(90deg);
57
- transition: transform @transition-duration;
58
+ transition: transform @collapse-transition-duration;
58
59
  }
59
60
  &-children {
60
61
  overflow: hidden;
@@ -62,7 +63,8 @@
62
63
  padding: @collapse-content-padding;
63
64
  color: @collapse-content-font-color;
64
65
  font-size: @collapse-content-font-size;
65
- transition: height @transition-duration, opacity @transition-duration;
66
+ transition: height @collapse-transition-duration, opacity @collapse-transition-duration;
67
+ background: @collapse-content-color-background;
66
68
  }
67
69
  &-children-hide {
68
70
  overflow: hidden;
@@ -71,7 +73,7 @@
71
73
  padding: @collapse-content-padding;
72
74
  color: @collapse-content-font-color;
73
75
  font-size: @collapse-content-font-size;
74
- transition: height @transition-duration, opacity calc(@transition-duration / 2);
76
+ transition: height @collapse-transition-duration, opacity calc(@collapse-transition-duration / 2);
75
77
  }
76
78
  &-children-bordered {
77
79
  padding: @collapse-content-bordered-padding;
@@ -79,7 +81,7 @@
79
81
  }
80
82
  &-disabled {
81
83
  cursor: not-allowed !important;
82
- color: @disabled-color;
84
+ color: @collapse-disabled-color;
83
85
  }
84
86
  }
85
87
  }
@@ -1,5 +1 @@
1
-
2
- // code component mixin here
3
- .test() {
4
- display: inline;
5
- }
1
+ @import './token.less';
@@ -0,0 +1,26 @@
1
+ @import '../../style//themes/token.less';
2
+
3
+ @collapse-prefix: '--@{kd-prefix}-c-collapse';
4
+
5
+ // sizing
6
+ @collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
7
+ @collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
8
+ @collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 12px);
9
+ @collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
10
+ @collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 16px);
11
+
12
+ // color
13
+ @collapse-border-color: var(~'@{collapse-prefix}-color-border-strong-2', @color-border-strong-2);
14
+ @collapse-header-font-color: var(~'@{collapse-prefix}-header-color-text-primary', @color-text-primary);
15
+ @collapse-content-font-color: var(~'@{collapse-prefix}-content-color-text-primary', @color-text-primary);
16
+ @collapse-disabled-color: var(~'@{collapse-prefix}-color-disabled', raba(178, 178, 178, 1));
17
+ @collapse-header-color-background: var(~'@{collapse-prefix}-header-color-background', rgba(0, 0, 0, 0));
18
+ @collapse-content-color-background: var(~'@{collapse-prefix}-content-color-background', rgba(0, 0, 0, 0));
19
+
20
+
21
+ // font
22
+ @collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size', @font-size-middle);
23
+ @collapse-content-font-size: var(~'@{collapse-prefix}-content-font-size', @font-size-middle);
24
+
25
+ // motion
26
+ @collapse-transition-duration: var(~'@{collapse-prefix}-motion-duration', @duration-promptly);
@@ -96,7 +96,6 @@ declare const compDefaultProps: {
96
96
  destroyOnClose: boolean;
97
97
  forceRender: boolean;
98
98
  getContainer: HTMLElement;
99
- height: number;
100
99
  keyboard: boolean;
101
100
  mask: boolean;
102
101
  maskClosable: boolean;
@@ -392,5 +391,9 @@ declare const compDefaultProps: {
392
391
  shape: string;
393
392
  gap: number;
394
393
  };
394
+ Link: {
395
+ size: string;
396
+ underscore: boolean;
397
+ };
395
398
  };
396
399
  export default compDefaultProps;