@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
  /** 浮层箭头样式 **/
@@ -102,23 +111,23 @@
102
111
  cursor: pointer;
103
112
  }
104
113
  .kd-cascader-picker:focus > .kd-cascader-picker-input {
105
- border-color: #5582f3;
114
+ border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
106
115
  }
107
116
  .kd-cascader-picker:focus > .kd-cascader-picker-input .kd-input-suffix,
108
117
  .kd-cascader-picker:focus > .kd-cascader-picker-input i[class*="kdicon"] {
109
- color: #5582f3;
118
+ color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
110
119
  }
111
120
  .kd-cascader-picker:hover > .kd-cascader-picker-input .kd-input-suffix,
112
121
  .kd-cascader-picker:hover > .kd-cascader-picker-input i[class*="kdicon"] {
113
- color: #5582f3;
122
+ color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
114
123
  }
115
124
  .kd-cascader-picker.disabled .kd-cascader-picker-input {
116
125
  cursor: not-allowed;
117
- border-color: #d9d9d9;
126
+ border-color: var(--kd-g-color-border-strong, #d9d9d9);
118
127
  }
119
128
  .kd-cascader-picker.disabled .kd-cascader-picker-input .kd-input-suffix,
120
129
  .kd-cascader-picker.disabled .kd-cascader-picker-input i[class*="kdicon"] {
121
- color: #b2b2b2;
130
+ color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
122
131
  }
123
132
  .kd-cascader-picker-label {
124
133
  -webkit-box-sizing: border-box;
@@ -146,10 +155,10 @@
146
155
  cursor: pointer;
147
156
  }
148
157
  .kd-cascader-picker-input.expand {
149
- border-color: #5582f3;
158
+ border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
150
159
  }
151
160
  .kd-cascader-picker-input.expand i[class*="kdicon"] {
152
- color: #5582f3;
161
+ color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
153
162
  -webkit-transform: rotate(180deg);
154
163
  transform: rotate(180deg);
155
164
  }
@@ -179,7 +188,7 @@
179
188
  opacity: 0;
180
189
  cursor: pointer;
181
190
  visibility: hidden;
182
- color: #5582f3;
191
+ color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
183
192
  -webkit-transition: all 0.1s;
184
193
  transition: all 0.1s;
185
194
  -webkit-transform-origin: 50% 50%;
@@ -196,15 +205,16 @@
196
205
  list-style: none;
197
206
  -webkit-font-feature-settings: 'tnum';
198
207
  font-feature-settings: 'tnum';
199
- color: #212121;
200
- border-radius: 2px;
201
- font-size: 12px;
202
- background-color: #fff;
208
+ color: var(--kd-c-cascader-color-text, var(--kd-g-color-text-primary, #212121));
209
+ border-radius: var(--kd-c-cascader-radius-border, var(--kd-g-radius-border, 2px));
210
+ font-size: var(--kd-c-cascader-font-size, var(--kd-g-font-size-small, 12px));
211
+ font-weight: var(--kd-c-cascader-font-weight, 'normal');
212
+ background-color: var(--kd-c-cascader-color-background, var(--kd-g-color-white, #fff));
203
213
  -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
204
214
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
205
215
  opacity: 1;
206
216
  visibility: visible;
207
- z-index: 1050;
217
+ z-index: var(--kd-g-z-index-popper, 1050);
208
218
  }
209
219
  .kd-cascader-menus.hidden {
210
220
  opacity: 0;
@@ -212,14 +222,14 @@
212
222
  }
213
223
  .kd-cascader-menus .kd-cascader-menu {
214
224
  display: inline-table;
215
- height: 196px;
216
- min-width: 116px;
225
+ height: var(--kd-c-cascader-sizing-height, 192px);
226
+ min-width: var(--kd-c-cascader-menu-sizing-min-width, 116px);
217
227
  margin: 0;
218
- padding: 0;
228
+ padding: var(--kd-c-cascader-menu-spacing-padding-vertical, 8px) 0;
219
229
  overflow-y: auto;
220
230
  }
221
231
  .kd-cascader-menus .kd-cascader-menu:not(:first-child) {
222
- border-left: 1px solid #d9d9d9;
232
+ border-left: 1px solid var(--kd-g-color-border-strong, #d9d9d9);
223
233
  }
224
234
  .kd-cascader-menus .kd-cascader-menu-item {
225
235
  display: -webkit-box;
@@ -228,23 +238,22 @@
228
238
  -webkit-box-pack: justify;
229
239
  -ms-flex-pack: justify;
230
240
  justify-content: space-between;
231
- padding: 0 12px;
232
- height: 32px;
233
- line-height: 32px;
241
+ padding: 0 var(--kd-c-cascader-menu-item-spacing-padding-horizontal, 12px);
242
+ line-height: var(--kd-c-cascader-menu-item-sizing-height, 32px);
234
243
  cursor: pointer;
235
244
  }
236
245
  .kd-cascader-menus .kd-cascader-menu-item:not(.disabled, .selected):hover {
237
- background-color: #f5f5f5;
238
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
239
- transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
246
+ background-color: var(--kd-c-cascader-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
247
+ -webkit-transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
248
+ transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
240
249
  }
241
250
  .kd-cascader-menus .kd-cascader-menu-item.disabled {
242
- color: #b2b2b2;
251
+ color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
243
252
  cursor: not-allowed;
244
253
  }
245
254
  .kd-cascader-menus .kd-cascader-menu-item.selected {
246
- color: #5582f3;
247
- background-color: #f2f9ff;
255
+ color: var(--kd-c-cascader-color-text-selected, var(--kd-g-color-theme, #5582f3));
256
+ background-color: var(--kd-c-cascader-color-background-selected, var(--kd-g-color-background-ongoing, #f2f9ff));
248
257
  }
249
258
  .kd-cascader-menus .kd-cascader-menu-item-label {
250
259
  width: 72px;
@@ -1,5 +1,6 @@
1
1
  @import '../../style/themes/index';
2
2
  @import '../../style/mixins/index';
3
+ @import './token.less';
3
4
 
4
5
  @cascader-picker-prefix-cls: ~'@{kd-prefix}-cascader-picker';
5
6
  @cascader-menus-prefix-cls: ~'@{kd-prefix}-cascader-menus';
@@ -12,29 +13,29 @@
12
13
  cursor: pointer;
13
14
 
14
15
  &:focus > &-input {
15
- border-color: @theme-color;
16
+ border-color: @cascader-active-color;
16
17
 
17
18
  .@{kd-prefix}-input-suffix,
18
19
  i[class*="kdicon"] {
19
- color: @theme-color;
20
+ color: @cascader-active-color;
20
21
  }
21
22
  }
22
23
 
23
24
  &:hover > &-input {
24
25
  .@{kd-prefix}-input-suffix,
25
26
  i[class*="kdicon"] {
26
- color: @theme-color;
27
+ color: @cascader-active-color;
27
28
  }
28
29
  }
29
30
 
30
31
  &.disabled {
31
32
  .@{cascader-picker-prefix-cls}-input {
32
33
  cursor: not-allowed;
33
- border-color: @strong-border-color;
34
+ border-color: @color-border-strong;
34
35
 
35
36
  .@{kd-prefix}-input-suffix,
36
37
  i[class*="kdicon"] {
37
- color: @disabled-color;
38
+ color: @cascader-disabled-color;
38
39
  }
39
40
  }
40
41
  }
@@ -62,10 +63,10 @@
62
63
  }
63
64
 
64
65
  &.expand {
65
- border-color: @theme-color;
66
+ border-color: @cascader-active-color;
66
67
 
67
68
  i[class*="kdicon"] {
68
- color: @theme-color;
69
+ color: @cascader-active-color;
69
70
  transform: rotate(180deg);
70
71
  }
71
72
  }
@@ -98,7 +99,7 @@
98
99
  opacity: 0;
99
100
  cursor: pointer;
100
101
  visibility: hidden;
101
- color: @theme-color;
102
+ color: @cascader-active-color;
102
103
  transition: all 0.1s;
103
104
  transform-origin: 50% 50%;
104
105
  transform: scale(0.9) translateY(-50%);
@@ -108,13 +109,14 @@
108
109
  .@{cascader-menus-prefix-cls} {
109
110
  .reset-component;
110
111
  color: @cascader-color;
111
- border-radius: @radius-size;
112
+ border-radius: @cascader-radius-size;
112
113
  font-size: @cascader-font-size;
113
- background-color: @cascader-background-color;
114
- box-shadow: 0 1px @cascader-box-shadow-blur 0 rgba(0, 0, 0, 0.3);
114
+ font-weight: @cascader-font-weight;
115
+ background-color: @cascader-bg-color;
116
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
115
117
  opacity: 1;
116
118
  visibility: visible;
117
- z-index: @zIndex-popper;
119
+ z-index: @z-index-popper;
118
120
 
119
121
  &.hidden {
120
122
  opacity: 0;
@@ -123,37 +125,36 @@
123
125
 
124
126
  .@{cascader-menu-prefix-cls} {
125
127
  display: inline-table;
126
- height: @cascader-menu-height;
128
+ height: @cascader-height;
127
129
  min-width: @cascader-menu-min-width;
128
130
  margin: 0;
129
- padding: 0;
131
+ padding: @cascader-menu-padding-vertical 0;
130
132
  overflow-y: auto;
131
133
 
132
134
  &:not(:first-child) {
133
- border-left: 1px solid @strong-border-color;
135
+ border-left: 1px solid @color-border-strong;
134
136
  }
135
137
 
136
138
  &-item {
137
139
  display: flex;
138
140
  justify-content: space-between;
139
- padding: 0 12px;
140
- height: 32px;
141
- line-height: 32px;
141
+ padding: 0 @cascader-menu-item-padding-horizontal;
142
+ line-height: @cascader-menu-item-height;
142
143
  cursor: pointer;
143
144
 
144
145
  &:not(.disabled, .selected):hover {
145
- background-color: @hover-color;
146
- transition: all calc(@transition-duration - 0.1s) @ease;
146
+ background-color: @cascader-hover-bg-color;
147
+ transition: all calc(@duration-promptly - 0.1s) @motion-ease;
147
148
  }
148
149
 
149
150
  &.disabled {
150
- color: @disabled-color;
151
+ color: @cascader-disabled-color;
151
152
  cursor: not-allowed;
152
153
  }
153
154
 
154
155
  &.selected {
155
- color: @theme-color;
156
- background-color: @ongoing-bg-color;
156
+ color: @cascader-selected-color;
157
+ background-color: @cascader-selected-bg-color;
157
158
  }
158
159
 
159
160
  &-label {
@@ -0,0 +1,28 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @cascader-prefix: '--@{kd-prefix}-c-cascader';
4
+
5
+ // sizing
6
+ @cascader-height: var(~'@{cascader-prefix}-sizing-height', 192px);
7
+ @cascader-menu-min-width: var(~'@{cascader-prefix}-menu-sizing-min-width', 116px);
8
+ @cascader-menu-item-height: var(~'@{cascader-prefix}-menu-item-sizing-height', 32px);
9
+
10
+ // spacing
11
+ @cascader-menu-padding-vertical: var(~'@{cascader-prefix}-menu-spacing-padding-vertical', 8px);
12
+ @cascader-menu-item-padding-horizontal: var(~'@{cascader-prefix}-menu-item-spacing-padding-horizontal', 12px);
13
+
14
+ // colors
15
+ @cascader-active-color: var(~'@{cascader-prefix}-color-active', @color-theme);
16
+ @cascader-color: var(~'@{cascader-prefix}-color-text', @color-text-primary);
17
+ @cascader-bg-color: var(~'@{cascader-prefix}-color-background', @color-white);
18
+ @cascader-hover-bg-color: var(~'@{cascader-prefix}-color-background-hover', @color-hover);
19
+ @cascader-selected-color: var(~'@{cascader-prefix}-color-text-selected', @color-theme);
20
+ @cascader-selected-bg-color: var(~'@{cascader-prefix}-color-background-selected', @color-background-ongoing);
21
+ @cascader-disabled-color: var(~'@{cascader-prefix}-color-text-disabled', @color-disabled);
22
+
23
+ // font
24
+ @cascader-font-size: var(~'@{cascader-prefix}-font-size', @font-size-small);
25
+ @cascader-font-weight: var(~'@{cascader-prefix}-font-weight', 'normal');
26
+
27
+ // radius
28
+ @cascader-radius-size: var(~'@{cascader-prefix}-radius-border', @radius-border);
@@ -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-checkbox {
96
105
  display: -webkit-inline-box;
97
106
  display: -ms-inline-flexbox;
@@ -110,25 +119,25 @@
110
119
  text-overflow: ellipsis;
111
120
  -webkit-box-sizing: border-box;
112
121
  box-sizing: border-box;
113
- font-size: 12px;
114
- color: #212121;
115
- height: 36px;
122
+ font-size: var(--kd-c-checkbox-font-size, var(--kd-g-font-size-small, 12px));
123
+ color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
124
+ height: var(--kd-c-checkbox-sizing-height-middle, 36px);
116
125
  }
117
126
  .kd-checkbox-no-child {
118
- height: 16px;
119
- width: 16px;
127
+ height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
128
+ width: var(--kd-c-checkbox-default-input-sizing-width, 16px);
120
129
  }
121
130
  .kd-checkbox-small {
122
- height: 32px;
131
+ height: var(--kd-c-checkbox-sizing-height-small, 32px);
123
132
  }
124
133
  .kd-checkbox-middle {
125
- height: 36px;
134
+ height: var(--kd-c-checkbox-sizing-height-middle, 36px);
126
135
  }
127
136
  .kd-checkbox-large {
128
- height: 40px;
137
+ height: var(--kd-c-checkbox-sizing-height-large, 40px);
129
138
  }
130
139
  .kd-checkbox-group > *:not(:last-child) {
131
- margin-right: 8px;
140
+ margin-right: var(--kd-c-checkbox-group-spacing-margin-right, 8px);
132
141
  }
133
142
  .kd-checkbox-input {
134
143
  margin: 0;
@@ -156,10 +165,10 @@
156
165
  }
157
166
  .kd-checkbox-square {
158
167
  border-radius: 2px;
159
- border: 1px solid #d9d9d9;
160
- padding: 0 20px;
161
- -webkit-transition: color 0.3s, border-color 0.3s;
162
- transition: color 0.3s, border-color 0.3s;
168
+ border: 1px solid var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
169
+ padding: var(--kd-c-checkbox-square-spacing-padding, 0 20px);
170
+ -webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
171
+ transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
163
172
  }
164
173
  .kd-checkbox-square:not(.kd-checkbox-square-disabled)::after {
165
174
  content: '';
@@ -170,12 +179,12 @@
170
179
  left: 0;
171
180
  border-radius: inherit;
172
181
  opacity: 0.2;
173
- -webkit-box-shadow: 0 0 0 0 #5582f3;
174
- box-shadow: 0 0 0 0 #5582f3;
182
+ -webkit-box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
183
+ box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
175
184
  }
176
185
  .kd-checkbox-square:hover {
177
- color: #5582f3;
178
- border-color: #5582f3;
186
+ color: var(--kd-c-checkbox-color-text-hover, var(--kd-g-color-theme, #5582f3));
187
+ border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
179
188
  }
180
189
  .kd-checkbox-square-triangle,
181
190
  .kd-checkbox-square-triangle-checked {
@@ -186,17 +195,17 @@
186
195
  right: 0;
187
196
  bottom: 0;
188
197
  border-style: solid;
189
- border-width: 0 0 18px 18px;
198
+ border-width: 0 0 var(--kd-c-checkbox-square-triangle-sizing-height, 18px) var(--kd-c-checkbox-square-triangle-sizing-width, 18px);
190
199
  border-top-color: transparent;
191
200
  border-right-color: transparent;
192
201
  border-left-color: transparent;
193
- border-bottom-color: #5582f3;
202
+ border-bottom-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
194
203
  }
195
204
  .kd-checkbox-square-triangle {
196
- -webkit-animation: kdZoomBounceLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
197
- animation: kdZoomBounceLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
198
- -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
199
- transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
205
+ -webkit-animation: kdZoomBounceLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
206
+ animation: kdZoomBounceLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
207
+ -webkit-transition: all var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.4, 0, 0.6, 1);
208
+ transition: all var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.4, 0, 0.6, 1);
200
209
  visibility: hidden;
201
210
  opacity: 0;
202
211
  }
@@ -204,8 +213,8 @@
204
213
  position: absolute;
205
214
  height: 9px;
206
215
  width: 11px;
207
- color: #fff;
208
- font-size: 12px;
216
+ color: var(--kd-c-checkbox-square-input-icon-color, #fff);
217
+ font-size: var(--kd-c-checkbox-default-input-icon-font-size, 12px);
209
218
  display: -webkit-inline-box;
210
219
  display: -ms-inline-flexbox;
211
220
  display: inline-flex;
@@ -221,43 +230,43 @@
221
230
  .kd-checkbox-square-inner-icon {
222
231
  font-size: inherit;
223
232
  line-height: 100%;
224
- -webkit-animation: kdZoomLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
225
- animation: kdZoomLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
233
+ -webkit-animation: kdZoomLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
234
+ animation: kdZoomLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
226
235
  }
227
236
  .kd-checkbox-square-triangle-disabled {
228
- border-bottom-color: #b2b2b2;
237
+ border-bottom-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2));
229
238
  }
230
239
  .kd-checkbox-square-disabled,
231
240
  .kd-checkbox-square-disabled:hover {
232
- border-color: #d9d9d9;
233
- color: #212121;
241
+ border-color: var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
242
+ color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
234
243
  cursor: not-allowed !important;
235
244
  }
236
245
  .kd-checkbox-square-checked {
237
- border-color: #5582f3;
246
+ border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
238
247
  }
239
248
  .kd-checkbox-square-checked:not(.kd-checkbox-square-checked-disabled)::after {
240
- -webkit-animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
241
- animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
249
+ -webkit-animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
250
+ animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
242
251
  }
243
252
  .kd-checkbox-square-checked .kd-checkbox-square-triangle-checked:not(.kd-checkbox-square-disabled) {
244
- -webkit-animation: kdZoomBounceEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
245
- animation: kdZoomBounceEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
253
+ -webkit-animation: kdZoomBounceEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
254
+ animation: kdZoomBounceEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
246
255
  }
247
256
  .kd-checkbox-square-checked .kd-checkbox-square-inner-icon:not(.kd-checkbox-square-disabled) {
248
- -webkit-animation: kdZoomEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
249
- animation: kdZoomEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
257
+ -webkit-animation: kdZoomEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
258
+ animation: kdZoomEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
250
259
  }
251
260
  .kd-checkbox-square-checked-disabled {
252
- background-color: #b2b2b2 !important;
253
- border-color: #b2b2b2 !important;
261
+ background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
262
+ border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
254
263
  cursor: not-allowed !important;
255
264
  }
256
265
  .kd-checkbox-square-wrapper {
257
266
  display: -webkit-inline-box;
258
267
  display: -ms-inline-flexbox;
259
268
  display: inline-flex;
260
- height: 16px;
269
+ height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
261
270
  width: 0;
262
271
  -webkit-box-sizing: border-box;
263
272
  box-sizing: border-box;
@@ -265,21 +274,21 @@
265
274
  }
266
275
  .kd-checkbox-default {
267
276
  border: none;
268
- padding: 0;
269
- -webkit-transition: color 0.3s, border-color 0.3s;
270
- transition: color 0.3s, border-color 0.3s;
277
+ padding: var(--kd-c-checkbox-default-spacing-padding, 0);
278
+ -webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
279
+ transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
271
280
  }
272
281
  .kd-checkbox-default:hover,
273
282
  .kd-checkbox-default:hover .kd-checkbox-default-wrapper {
274
- color: #5582f3;
275
- border-color: #5582f3;
283
+ color: var(--kd-c-checkbox-color-text-hover, var(--kd-g-color-theme, #5582f3));
284
+ border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
276
285
  cursor: pointer;
277
286
  }
278
287
  .kd-checkbox-default-disabled,
279
288
  .kd-checkbox-default-disabled:hover,
280
289
  .kd-checkbox-default-disabled:hover .kd-checkbox-default-wrapper {
281
- color: #212121;
282
- border-color: #d9d9d9;
290
+ color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
291
+ border-color: var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
283
292
  cursor: not-allowed !important;
284
293
  }
285
294
  .kd-checkbox-default-wrapper {
@@ -287,13 +296,13 @@
287
296
  display: -webkit-inline-box;
288
297
  display: -ms-inline-flexbox;
289
298
  display: inline-flex;
290
- background-color: #fff;
291
- border: 1px solid #d9d9d9;
292
- border-radius: 2px;
299
+ background-color: var(--kd-c-checkbox-color-background, var(--kd-g-color-background, #fff));
300
+ border: var(--kd-c-checkbox-default-input-border-width, 1px) solid var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
301
+ border-radius: var(--kd-c-checkbox-default-input-radius-border, 2px);
293
302
  -webkit-box-sizing: border-box;
294
303
  box-sizing: border-box;
295
- -webkit-transition: color 0.3s, border-color 0.3s;
296
- transition: color 0.3s, border-color 0.3s;
304
+ -webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
305
+ transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
297
306
  }
298
307
  .kd-checkbox-default-wrapper:not(.kd-checkbox-default-wrapper-disabled)::after {
299
308
  content: '';
@@ -304,43 +313,43 @@
304
313
  left: 0;
305
314
  border-radius: inherit;
306
315
  opacity: 0.2;
307
- -webkit-box-shadow: 0 0 0 0 #5582f3;
308
- box-shadow: 0 0 0 0 #5582f3;
316
+ -webkit-box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
317
+ box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
309
318
  }
310
319
  .kd-checkbox-default-wrapper-size {
311
- height: 16px;
312
- width: 16px;
320
+ height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
321
+ width: var(--kd-c-checkbox-default-input-sizing-width, 16px);
313
322
  }
314
323
  .kd-checkbox-default-margin {
315
- margin-right: 8px;
324
+ margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right, 8px);
316
325
  }
317
326
  .kd-checkbox-default-no-child {
318
327
  height: 100%;
319
328
  width: 100%;
320
329
  }
321
330
  .kd-checkbox-default-checked-disabled {
322
- background-color: #b2b2b2 !important;
323
- border-color: #b2b2b2 !important;
331
+ background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
332
+ border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
324
333
  cursor: not-allowed !important;
325
334
  }
326
335
  .kd-checkbox-default-checked {
327
- background-color: #5582f3;
328
- border-color: #5582f3;
329
- -webkit-transition: background-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
330
- transition: background-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
336
+ background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
337
+ border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
338
+ -webkit-transition: background-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
339
+ transition: background-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
331
340
  }
332
341
  .kd-checkbox-default-checked:not(.kd-checkbox-default-checked-disabled)::after {
333
- -webkit-animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
334
- animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
342
+ -webkit-animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
343
+ animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
335
344
  }
336
345
  .kd-checkbox-default-inner:not(.kd-checkbox-default-checked-disabled .kd-checkbox-default-inner) {
337
- -webkit-animation: kdZoomBounceDefaultEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
338
- animation: kdZoomBounceDefaultEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
346
+ -webkit-animation: kdZoomBounceDefaultEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
347
+ animation: kdZoomBounceDefaultEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
339
348
  }
340
349
  .kd-checkbox-default-inner {
341
350
  position: absolute;
342
- color: #fff;
343
- font-size: 14px;
351
+ color: var(--kd-c-checkbox-default-input-icon-color, #fff);
352
+ font-size: var(--kd-c-checkbox-default-input-icon-font-size, 14px);
344
353
  height: 100%;
345
354
  width: 100%;
346
355
  top: 5%;
@@ -358,19 +367,16 @@
358
367
  font-size: inherit;
359
368
  line-height: 100%;
360
369
  }
361
- .kd-checkbox-default-indeterminate {
362
- background-color: #5582f3;
363
- border-color: #5582f3;
364
- }
365
370
  .kd-checkbox-default-indeterminate::before {
366
- background-color: #fff;
367
371
  position: absolute;
368
- width: 70%;
369
- height: 2px;
370
- border-radius: 1px;
371
372
  top: 50%;
372
- -webkit-transform: translate(-50%, -50%);
373
- transform: translate(-50%, -50%);
374
373
  left: 50%;
375
- content: ' ';
374
+ width: 8px;
375
+ height: 8px;
376
+ background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
377
+ border: 0;
378
+ -webkit-transform: translate(-50%, -50%) scale(1);
379
+ transform: translate(-50%, -50%) scale(1);
380
+ opacity: 1;
381
+ content: " ";
376
382
  }