@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
@@ -6,7 +6,7 @@
6
6
  @search-prefix-cls: ~'@{kd-prefix}-search';
7
7
 
8
8
  .@{search-prefix-cls} {
9
- border-bottom: 1px solid @quick-search-border-bottom-color;
9
+ border-bottom: @search-sizing-border-width solid @quick-search-border-bottom-color;
10
10
  &-size-small {
11
11
  width: @search-small-width;
12
12
  }
@@ -26,18 +26,24 @@
26
26
  }
27
27
 
28
28
  &-border {
29
- border: 1px solid @quick-search-border-bottom-color;
29
+ border: @search-sizing-border-width solid @quick-search-border-bottom-color;
30
+ }
31
+
32
+ &-prefix,
33
+ &-suffix {
34
+ font-size: @search-icon-font-size;
35
+ color: @search-icon-color;
30
36
  }
31
37
 
32
38
  &-focused,
33
39
  &:not(.@{search-prefix-cls}-disabled):hover {
34
- border-color: @search-hover-color;
40
+ border-color: @search-color-theme;
35
41
  .@{search-prefix-cls}-prefix {
36
- color: @search-hover-color;
42
+ color: @search-color-theme;
37
43
  }
38
44
 
39
45
  .@{search-prefix-cls}-suffix {
40
- color: @search-hover-color;
46
+ color: @search-color-theme;
41
47
  }
42
48
  }
43
49
  }
@@ -48,23 +54,27 @@
48
54
  width: @quick-search-default-width;
49
55
  height: @quick-search-default-height;
50
56
  position: relative;
51
- border-bottom: 1px solid @quick-search-border-bottom-color;
52
- transition: all calc(@transition-duration - 0.1s) @ease;
57
+ border-bottom: @search-sizing-border-width solid @quick-search-border-bottom-color;
58
+ transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
53
59
  &-borderless {
54
60
  border: none !important;
55
61
  }
56
62
  &-border {
57
- border: 1px solid @quick-search-border-bottom-color;
63
+ border: @search-sizing-border-width solid @quick-search-border-bottom-color;
58
64
  }
59
65
  &:hover:not(&-disabled) {
60
- border-color: @search-hover-color;
66
+ border-color: @search-color-theme;
61
67
  .@{quick-search-prefix-cls}-prefix {
62
- color: @search-hover-color;
68
+ color: @search-color-theme;
63
69
  }
64
70
  }
65
71
  &-focused:not(&-disabled) {
66
72
  max-width: @quick-search-max-width;
67
73
  width: 100% !important;
74
+ border-color: @search-color-theme;
75
+ .@{quick-search-prefix-cls}-prefix {
76
+ color: @search-color-theme;
77
+ }
68
78
  }
69
79
  &-disabled {
70
80
  cursor: not-allowed;
@@ -77,6 +87,8 @@
77
87
  top: 50%;
78
88
  transform: translateY(-50%);
79
89
  line-height: 1;
90
+ font-size: @search-icon-font-size;
91
+ color: @search-icon-color;
80
92
  }
81
93
  &-selector {
82
94
  cursor: text;
@@ -99,7 +111,7 @@
99
111
  display: flex;
100
112
  position: relative;
101
113
  border-radius: 2px;
102
- border: 1px solid @end-color;
114
+ border: 1px solid @search-end-color;
103
115
  margin: 2px 12px 2px 0;
104
116
  cursor: pointer;
105
117
  max-width: 100%;
@@ -113,7 +125,7 @@
113
125
  padding: 0 4px 0 4px;
114
126
  flex-shrink: 0;
115
127
  max-width: 170px;
116
- background: @end-color;
128
+ background: @search-end-color;
117
129
  line-height: 20px;
118
130
  font-size: @quick-search-dropdown-font-size;
119
131
  color: @white;
@@ -131,13 +143,13 @@
131
143
  height: 14px;
132
144
  width: 14px;
133
145
  line-height: 1;
134
- font-size: @middle-font-size;
146
+ font-size: @search-middle-font-size;
135
147
  border-radius: 50%;
136
148
  position: absolute;
137
149
  right: -7px;
138
150
  top: -6px;
139
151
  display: none;
140
- background: @bg;
152
+ background: @search-color-background;
141
153
  &:hover {
142
154
  color: @quick-search-selected-tags-del-hover-bg;
143
155
  }
@@ -152,6 +164,7 @@
152
164
  left: 0;
153
165
  transform: translateY(-50%);
154
166
  color: @quick-search-selection-placeholder-color;
167
+ font-size: @search-placeholder-font-size;
155
168
  .ellipsis();
156
169
  }
157
170
 
@@ -178,6 +191,8 @@
178
191
  border: none;
179
192
  width: 100%;
180
193
  background: transparent;
194
+ font-size: @search-input-font-size;
195
+ color: @search-color-text-primary;
181
196
  &::placeholder {
182
197
  font-size: 12px;
183
198
  color: @quick-search-input-color;
@@ -191,8 +206,8 @@
191
206
  z-index: @zIndex-popper;
192
207
  font-size: @quick-search-dropdown-font-size;
193
208
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
194
- border-radius: @radius-size;
195
- background: @bg;
209
+ border-radius: @search-radius-size;
210
+ background: @search-color-background;
196
211
  overflow: auto;
197
212
  &-scroll {
198
213
  overflow-y: auto;
@@ -204,6 +219,7 @@
204
219
  .dropdown-option();
205
220
  .ellipsis();
206
221
  color: @quick-search-dropdown-desc-color;
222
+ font-size: @search-dropdown-desc-font-size;
207
223
  }
208
224
  }
209
225
 
@@ -211,16 +227,14 @@
211
227
  .dropdown-option();
212
228
  .ellipsis();
213
229
  cursor: pointer;
230
+ color: @search-color-text-primary;
231
+
214
232
  &-tag {
215
- color: @quick-search-dropdown-tag-color;
216
233
  margin-right: 12px;
217
234
  }
218
- &-content {
219
- color: @primary-text-color;
220
- }
221
235
 
222
236
  &:hover:not(&-selected) {
223
- background: @disabled-contain-bg;
237
+ background: @search-disabled-contain-bg;
224
238
  }
225
239
  &-selected:not(&-disabled) {
226
240
  background: @quick-search-dropdown-selected-bg;
@@ -241,7 +255,7 @@
241
255
  display: flex;
242
256
  align-items: center;
243
257
  overflow: hidden;
244
- padding-left: @quick-search-dropdown-option-padding;
258
+ padding-left: @quick-search-dropdown-option-padding-horizontal;
245
259
  &-item {
246
260
  width: 4px;
247
261
  height: 4px;
@@ -251,7 +265,7 @@
251
265
  }
252
266
 
253
267
  &-item:nth-child(1) {
254
- background-color: @spin-dot-color-first;
268
+ background-color: @search-dot-color-first;
255
269
  }
256
270
  &-item:nth-child(2) {
257
271
  background-color: @spin-dot-color-second;
@@ -269,7 +283,7 @@
269
283
  .@{search-panel-prefix-cls} {
270
284
  width: @search-panel-width;
271
285
  border-radius: 4px;
272
- background: @bg;
286
+ background: @search-color-background;
273
287
 
274
288
  &-wrapper {
275
289
  display: flex;
@@ -286,7 +300,7 @@
286
300
  &-icon {
287
301
  font-size: 18px;
288
302
  margin: 0 8px;
289
- transition: all calc(@transition-duration - 0.1s) @ease;
303
+ transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
290
304
  }
291
305
  }
292
306
 
@@ -314,7 +328,7 @@
314
328
  border-top: 1px solid @search-panel-border-color;
315
329
  border-bottom-right-radius: 4px;
316
330
  border-bottom-left-radius: 4px;
317
- transition: all calc(@transition-duration - 0.1s) @ease;
331
+ transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
318
332
 
319
333
  &-result {
320
334
  width: 300px;
@@ -355,11 +369,11 @@
355
369
  }
356
370
 
357
371
  &-type {
358
- color: @third-text-color;
372
+ color: @search-color-text-third;
359
373
  }
360
374
 
361
375
  &-sub-title {
362
- color: @third-text-color;
376
+ color: @search-color-text-third;
363
377
  white-space: nowrap;
364
378
  overflow: hidden;
365
379
  text-overflow: ellipsis;
@@ -398,14 +412,14 @@
398
412
 
399
413
  &-title {
400
414
  margin-bottom: 10px;
401
- font-size: @middle-font-size;
402
- color: @primary-text-color;
415
+ font-size: @search-middle-font-size;
416
+ color: @search-color-text-primary;
403
417
  }
404
418
 
405
419
  &-list {
406
420
  margin-top: 4px;
407
- color: @secondary-text-color;
408
- font-size: @small-font-size;
421
+ color: @search-color-text-secondary;
422
+ font-size: @search-small-font-size;
409
423
  line-height: 20px;
410
424
  }
411
425
  }
@@ -415,7 +429,7 @@
415
429
  display: flex;
416
430
  align-items: center;
417
431
  padding-left: 17px;
418
- font-size: @middle-font-size;
432
+ font-size: @search-middle-font-size;
419
433
  cursor: pointer;
420
434
 
421
435
  &:hover {
@@ -443,7 +457,7 @@
443
457
  width: 18px;
444
458
  height: 18px;
445
459
  border-radius: 50%;
446
- background: @end-color;
460
+ background: @search-end-color;
447
461
  position: relative;
448
462
 
449
463
  .@{kd-prefix}icon {
@@ -476,7 +490,7 @@
476
490
  &.hidden {
477
491
  opacity: 0;
478
492
  visibility: hidden;
479
- transition: all calc(@transition-duration - 0.1s) @ease;
493
+ transition: all calc(@search-transition-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
480
494
  }
481
495
  }
482
496
 
@@ -1,6 +1,8 @@
1
+ @import './token.less';
2
+
1
3
  .dropdown-option() {
2
- padding-left: @quick-search-dropdown-option-padding;
3
- padding-right: @quick-search-dropdown-option-padding;
4
+ padding-left: @quick-search-dropdown-option-padding-horizontal;
5
+ padding-right: @quick-search-dropdown-option-padding-horizontal;
4
6
  line-height: @quick-search-dropdown-option-height;
5
7
  }
6
8
 
@@ -0,0 +1,60 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @search-prefix: '--@{kd-prefix}-c-search';
4
+
5
+ // sizing
6
+ @search-icon-font-size: var(~'@{search-prefix}-icon-font-size', 16px);
7
+ @search-small-width: var(~'@{search-prefix}-sizing-width-small', 200px);
8
+ @search-middle-width: var(~'@{search-prefix}-sizing-width-middle', 260px);
9
+ @search-large-width: var(~'@{search-prefix}-sizing-width-large', 320px);
10
+ @quick-search-default-width: var(~'@{search-prefix}-sizing-width-default', 200px);
11
+ @quick-search-default-height: var(~'@{search-prefix}-sizing-height-default', 24px);
12
+ @quick-search-max-width: var(~'@{search-prefix}-sizing-width-max', 400px);
13
+ @search-panel-width: var(~'@{search-prefix}-panel-sizing-width', 800px);
14
+ @search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
15
+ @quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
16
+ @search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
17
+
18
+ // color
19
+ @search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
20
+ @search-color-theme: var(~'@{search-prefix}-color-theme', @color-theme);
21
+ @search-hover-color: var(~'@{search-prefix}-color-hover', #5582F3);
22
+ @quick-search-input-color: var(~'@{search-prefix}-input-color-text', @color-disabled);
23
+ @quick-search-border-bottom-color: var(~'@{search-prefix}-color-border', @color-border-strong-2);
24
+ @quick-search-dropdown-desc-color: var(~'@{search-prefix}-dropdown-desc-color-text', #999999);
25
+ @quick-search-npl-border-color: var(~'@{search-prefix}-npl-color-border', #D8D8D8);
26
+ @quick-search-selection-placeholder-color: var(~'@{search-prefix}-selection-placeholder-color-text', #B2B2B2);
27
+ @search-panel-hover-color: var(~'@{search-prefix}-panel-color-hover', #597cfc);
28
+ @search-panel-border-color: var(~'@{search-prefix}-panel-color-border', #E6E8ED);
29
+ @search-end-color: var(~'@{search-prefix}-color-end', @color-end);
30
+ @search-color-text-primary: var(~'@{search-prefix}-color-text-primary', @color-text-primary);
31
+ @search-color-text-secondary: var(~'@{search-prefix}-color-text-secondary', @color-text-secondary);
32
+ @search-color-text-third: var(~'@{search-prefix}-color-text-third', @color-text-third);
33
+ @search-dot-color-first: var(~'@{search-prefix}-dot-color-first', @color-logo-1);
34
+ @search-dot-color-second: var(~'@{search-prefix}-dot-color-second', @color-logo-2);
35
+ @search-dot-color-third: var(~'@{search-prefix}-dot-color-third', @color-logo-3);
36
+ @search-dot-color-fourth: var(~'@{search-prefix}-dot-color-fourth', @color-logo-4);
37
+ @search-placeholder-color-text: var(~'@{search-prefix}-placeholder-color-text', #B2B2B2);
38
+ @quick-search-selected-tags-del-hover-bg: var(~'@{search-prefix}-selected-tags-del-color-background-hover', #999999);
39
+ @quick-search-dropdown-selected-bg: var(~'@{search-prefix}-dropdown-tags-color-background-selected', #F2F6FF);
40
+ @quick-search-dropdown-hover-bg: var(~'@{search-prefix}-dropdown-color-background-hover', @color-hover);
41
+ @search-panel-hover-bg: var(~'@{search-prefix}-panel-color-background-hover', #eef3fe);
42
+ @search-color-background: var(~'@{search-prefix}-color-background', @color-background);
43
+ @search-disabled-contain-bg: var(~'@{search-prefix}-color-background-contain-disabled', @color-background-contain-disabled);
44
+
45
+ // font
46
+ @quick-search-dropdown-font-size: var(~'@{search-prefix}-dropdown-font-size', 12px);
47
+ @search-middle-font-size: var(~'@{search-prefix}-font-size-middle', @font-size-middle);
48
+ @search-small-font-size: var(~'@{search-prefix}-font-size-small', @font-size-small);
49
+ @search-placeholder-font-size: var(~'@{search-prefix}-placeholder-font-size', 12px);
50
+ @search-dropdown-desc-font-size: var(~'@{search-prefix}-dropdown-desc-font-size', 12px);
51
+ @search-input-font-size: var(~'@{search-prefix}-input-font-size', 12px);
52
+
53
+ // spacing
54
+ @quick-search-dropdown-option-padding-horizontal: var(~'@{search-prefix}-dropdown-option-spacing-padding-horizontal', 12px);
55
+
56
+ // motion
57
+ @search-transition-duration: var(~'@{search-prefix}-motion-duration', @duration-promptly);
58
+
59
+ // radius
60
+ @search-radius-size: var(~'@{search-prefix}-radius-border', @radius-border);
@@ -447,14 +447,6 @@ var InternalSelect = function InternalSelect(props, ref) {
447
447
  setMulOptions((0, _toConsumableArray2.default)(selectMulOpts));
448
448
  onChange && onChange(labelInValue ? selectMulOpts : selectedVal);
449
449
  e.stopPropagation();
450
- }; // 控制下列面板的显示
451
-
452
-
453
- var handleDropdownShow = function handleDropdownShow() {
454
- if (!optionShow && !disabled) {
455
- setOptionShow(true);
456
- onVisibleChange && onVisibleChange(true);
457
- }
458
450
  }; // 渲染后缀图标
459
451
 
460
452
 
@@ -654,8 +646,7 @@ var InternalSelect = function InternalSelect(props, ref) {
654
646
  return /*#__PURE__*/_react.default.createElement("div", {
655
647
  className: selectCls,
656
648
  ref: selectRef,
657
- style: style,
658
- onClick: handleDropdownShow
649
+ style: style
659
650
  }, /*#__PURE__*/_react.default.createElement("span", {
660
651
  className: selectionCls,
661
652
  onClick: handleClick,
@@ -688,10 +679,8 @@ var InternalSelect = function InternalSelect(props, ref) {
688
679
  };
689
680
 
690
681
  var handleVisibleChange = function handleVisibleChange(visible) {
691
- if (!visible) {
692
- props.visible === undefined && setOptionShow(visible);
693
- onVisibleChange && onVisibleChange(visible);
694
- }
682
+ props.visible === undefined && setOptionShow(visible);
683
+ onVisibleChange && onVisibleChange(visible);
695
684
  };
696
685
 
697
686
  var popperProps = (0, _extends2.default)((0, _extends2.default)({}, selectProps), {
@@ -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
  /** 浮层箭头样式 **/
@@ -273,7 +282,7 @@
273
282
  transition: opacity 0.15s ease;
274
283
  }
275
284
  .kd-select-icon-clear:hover {
276
- color: #5582f3;
285
+ color: var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
277
286
  }
278
287
  .kd-select-selection-search {
279
288
  position: absolute;
@@ -296,10 +305,10 @@
296
305
  cursor: pointer;
297
306
  }
298
307
  .kd-select-focused {
299
- border-color: #5582F3 !important;
308
+ border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
300
309
  }
301
310
  .kd-select-placeholder {
302
- color: #999;
311
+ color: var(--kd-c-select-placeholder-color-text, var(--kd-g-color-text-third, #999));
303
312
  overflow: hidden;
304
313
  white-space: nowrap;
305
314
  text-overflow: ellipsis;
@@ -308,18 +317,18 @@
308
317
  border: none;
309
318
  }
310
319
  .kd-select-underline {
311
- border-bottom: 1px solid #999;
320
+ border-bottom: 1px solid var(--kd-c-select-color-border, var(--kd-g-color-input, #999));
312
321
  }
313
322
  .kd-select-underline:hover:not(.kd-select-multiple-disabled):not(.kd-select-single-disabled) {
314
- border-bottom: 1px solid #5582f3;
323
+ border-bottom: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
315
324
  }
316
325
  .kd-select-bordered {
317
- border: 1px solid #d9d9d9;
326
+ border: 1px solid var(--kd-c-select-border-color-border, var(--kd-g-color-border-strong, #d9d9d9));
318
327
  padding-left: 8px !important;
319
328
  border-radius: 2px;
320
329
  }
321
330
  .kd-select-bordered:hover:not(.kd-select-multiple-disabled):not(.kd-select-single-disabled) {
322
- border: 1px solid #5582f3;
331
+ border: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
323
332
  }
324
333
  .kd-select-wrapper {
325
334
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
@@ -344,16 +353,16 @@
344
353
  .kd-select-dropdown {
345
354
  display: block;
346
355
  left: 0;
347
- z-index: 1050;
356
+ z-index: var(--kd-c-select-z-index, var(--kd-g-z-index-popper, 1050));
348
357
  -webkit-box-sizing: border-box;
349
358
  box-sizing: border-box;
350
359
  padding: 4px 0;
351
360
  margin: 0;
352
361
  overflow: auto;
353
- font-size: 12px;
362
+ font-size: var(--kd-c-select-dropdown-font-size, 12px);
354
363
  font-variant: initial;
355
- background-color: #fff;
356
- border-radius: 2px;
364
+ background-color: var(--kd-c-select-dropdown-color-background, var(--kd-g-color-background, #fff));
365
+ border-radius: var(--kd-c-select-radius-border, var(--kd-g-radius-border, 2px));
357
366
  outline: none;
358
367
  -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
359
368
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
@@ -374,11 +383,11 @@
374
383
  position: relative;
375
384
  display: block;
376
385
  font-weight: normal;
377
- font-size: 12px;
378
- min-height: 22px;
386
+ font-size: var(--kd-c-select-dropdown-font-size, 12px);
387
+ min-height: var(--kd-c-select-item-sizing-height, 22px);
379
388
  padding: 5px 12px;
380
- color: #212121;
381
- line-height: 22px;
389
+ color: var(--kd-c-select-footer-color-text, var(--kd-g-color-text-primary, #212121));
390
+ line-height: var(--kd-c-select-dropdown-line-height, 22px);
382
391
  cursor: pointer;
383
392
  -webkit-transition: background 0.3s ease;
384
393
  transition: background 0.3s ease;
@@ -398,37 +407,37 @@
398
407
  text-overflow: ellipsis;
399
408
  }
400
409
  .kd-select-item-option:hover:not(.kd-select-item-option-selected):not(.kd-select-item-option-disabled) {
401
- background-color: #f5f5f5;
410
+ background-color: var(--kd-c-select-color-background, var(--kd-g-color-hover, #f5f5f5));
402
411
  }
403
412
  .kd-select-item-option-active:not(.kd-select-item-option-disabled) {
404
- background-color: #f5f5f5;
413
+ background-color: var(--kd-c-select-color-background, var(--kd-g-color-hover, #f5f5f5));
405
414
  }
406
415
  .kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
407
- color: #276ff5;
408
- background-color: #f2f9ff;
416
+ color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-ongoing, #276ff5));
417
+ background-color: var(--kd-c-select-color-background-selected, #f2f9ff);
409
418
  }
410
419
  .kd-select-item-option-disabled {
411
- color: #b2b2b2;
420
+ color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
412
421
  cursor: not-allowed;
413
- background-color: #f5f5f5;
422
+ background-color: var(--kd-c-select-item-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
414
423
  }
415
424
  .kd-select-size-small {
416
- min-height: 24px;
417
- max-height: 62px;
418
- line-height: 14px;
419
- font-size: 12px;
425
+ min-height: var(--kd-c-select-sizing-height-small, 24px);
426
+ max-height: calc(var(--kd-c-select-sizing-height-small, 24px) * 3 - 10px);
427
+ line-height: var(--kd-c-select-line-height-small, 14px);
428
+ font-size: var(--kd-c-select-font-size-small, 12px);
420
429
  }
421
430
  .kd-select-size-middle {
422
- min-height: 30px;
423
- max-height: 80px;
424
- line-height: 22px;
425
- font-size: 14px;
431
+ min-height: var(--kd-c-select-sizing-height-middle, 30px);
432
+ max-height: calc(var(--kd-c-select-sizing-height-middle, 30px) * 3 - 10px);
433
+ line-height: var(--kd-c-select-line-height-middle, 22px);
434
+ font-size: var(--kd-c-select-font-size-middle, 14px);
426
435
  }
427
436
  .kd-select-size-large {
428
- min-height: 36px;
429
- max-height: 98px;
430
- line-height: 28px;
431
- font-size: 16px;
437
+ min-height: var(--kd-c-select-sizing-height-large, 36px);
438
+ max-height: calc(var(--kd-c-select-sizing-height-large, 36px) * 3 - 10px);
439
+ line-height: var(--kd-c-select-line-height-large, 28px);
440
+ font-size: var(--kd-c-select-font-size-large, 16px);
432
441
  }
433
442
  .kd-select-suffix {
434
443
  right: 10px;
@@ -450,7 +459,7 @@
450
459
  margin-left: 4px;
451
460
  }
452
461
  .kd-select-single-focused {
453
- border-color: #5582F3 !important;
462
+ border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
454
463
  }
455
464
  .kd-select-single-disabled {
456
465
  background-color: #f5f5f5;
@@ -562,10 +571,10 @@
562
571
  align-items: center;
563
572
  }
564
573
  .kd-select-multiple .kd-select-wrapper:hover:not(.kd-select-multiple-disabled) {
565
- border-bottom: 1px solid #5582f3;
574
+ border-bottom: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
566
575
  }
567
576
  .kd-select-multiple-footer {
568
- color: #212121;
577
+ color: var(--kd-c-select-footer-color-text, var(--kd-g-color-text-primary, #212121));
569
578
  display: -webkit-inline-box;
570
579
  display: -ms-inline-flexbox;
571
580
  display: inline-flex;
@@ -585,7 +594,7 @@
585
594
  padding-left: 12px;
586
595
  }
587
596
  .kd-select-multiple-footer-hadSelected > span {
588
- color: #0e5fd8;
597
+ color: var(--kd-c-select-footer-color-text-selected, var(--kd-g-color-text-link, #0e5fd8));
589
598
  padding: 0 2px;
590
599
  }
591
600
  .kd-select.topLeft.hidden,
@@ -48,7 +48,7 @@
48
48
  opacity: 0;
49
49
  transition: opacity 0.15s ease;
50
50
  &:hover {
51
- color: @theme-color;
51
+ color: @select-g-color-border-hover;
52
52
  }
53
53
  }
54
54
  }
@@ -88,18 +88,18 @@
88
88
  }
89
89
 
90
90
  &-underline {
91
- border-bottom: 1px solid @input-color;
91
+ border-bottom: 1px solid @select-g-color-border;
92
92
  &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
93
- border-bottom: 1px solid #5582f3;
93
+ border-bottom: 1px solid @select-g-color-border-hover;
94
94
  }
95
95
  }
96
96
 
97
97
  &-bordered {
98
- border: 1px solid @strong-border-color;
98
+ border: 1px solid @select-border-g-color-border;
99
99
  padding-left: 8px !important;
100
100
  border-radius: 2px;
101
101
  &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
102
- border: 1px solid #5582f3;
102
+ border: 1px solid @select-g-color-border-hover;
103
103
  }
104
104
  }
105
105
 
@@ -120,7 +120,7 @@
120
120
  &-dropdown {
121
121
  display: block;
122
122
  left: 0;
123
- z-index: @zIndex-popper;
123
+ z-index: @select-z-index;
124
124
  box-sizing: border-box;
125
125
  padding: 4px 0; // update
126
126
  margin: 0;
@@ -128,7 +128,7 @@
128
128
  font-size: @select-list-font-size; // update
129
129
  font-variant: initial;
130
130
  background-color: @select-dropdown-bg;
131
- border-radius: @radius-size;
131
+ border-radius: @select-g-radius-border;
132
132
  outline: none;
133
133
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
134
134
 
@@ -179,7 +179,7 @@
179
179
  }
180
180
 
181
181
  &-disabled {
182
- color: @disabled-color;
182
+ color: @select-g-item-text-color-disabled;
183
183
  cursor: not-allowed;
184
184
  background-color: @select-disabled-option-bg;
185
185
  }
@@ -329,7 +329,7 @@
329
329
  }
330
330
  .@{select-prefix-cls}-wrapper {
331
331
  &:hover:not(.@{select-prefix-cls}-multiple-disabled) {
332
- border-bottom: 1px solid #5582f3;
332
+ border-bottom: 1px solid @select-g-color-border-hover;
333
333
  }
334
334
  }
335
335
 
@@ -348,7 +348,7 @@
348
348
  color: #999999;
349
349
  padding-left: 12px;
350
350
  > span {
351
- color: #0e5fd8;
351
+ color: @select-footer-g-text-color-selected;
352
352
  padding: 0 2px;
353
353
  }
354
354
  }
@@ -1,3 +1,5 @@
1
+ @import './token.less';
2
+
1
3
  .item() {
2
4
  position: relative;
3
5
  display: block;
@@ -11,12 +13,12 @@
11
13
 
12
14
  .focusColor() {
13
15
  // border-bottom: 1px solid #5582F3;
14
- border-color: #5582F3 !important;
16
+ border-color: @select-g-color-border-foucs !important;
15
17
  }
16
18
 
17
19
  .select-input-size(@height, @maxHeight, @lineHeight, @fontSize) {
18
20
  min-height: @height;
19
- max-height: @maxHeight * 3 - 10px;
21
+ max-height: calc(@maxHeight * 3 - 10px);
20
22
  line-height: @lineHeight;
21
23
  font-size: @fontSize;
22
24
  }
@@ -27,11 +29,6 @@
27
29
  text-overflow: ellipsis;
28
30
  }
29
31
 
30
- .item-size(@height) {
31
- height: @height - 10px;
32
- line-height: @height - 10px;
33
- }
34
-
35
32
  @keyframes SlideDownIn {
36
33
  0% {
37
34
  transform: scaleY(0.8);