@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
@@ -0,0 +1,32 @@
1
+ @import "../../style/themes/token.less";
2
+
3
+ @menu-prefix: '--@{kd-prefix}-c-menu';
4
+
5
+ // shadow
6
+ // color
7
+ @menu-color-disabled: var(~'@{menu-prefix}-color-disabled', @color-disabled);
8
+ @menu-sub-color: var(~'@{menu-prefix}-sub-color', rgba(255, 255, 255, 0.65));
9
+ @menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-hover', @color-white);
10
+ @menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-theme);
11
+ @menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #21242d);
12
+ @menu-inline-color-active: var(~'@{menu-prefix}-inline-color-active', @color-white);
13
+ @menu-color-background: var(~'@{menu-prefix}-color-background', #343848);
14
+
15
+ @menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
16
+ @menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-ongoing);
17
+ @menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-theme);
18
+ @menu-light-color-background: var(~'@{menu-prefix}-light-color-background', @color-background-ongoing);
19
+
20
+ // sizing
21
+ @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
22
+ // spacing
23
+ // motion
24
+ @menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
25
+
26
+ // font
27
+ @menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
28
+
29
+ // radius
30
+ // line-height
31
+ // z-index
32
+ @menu-z-index: var(~'@{menu-prefix}-z-index', @z-index-dialog);
@@ -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-message-box {
96
105
  position: fixed;
97
106
  width: 100%;
@@ -104,7 +113,7 @@
104
113
  -ms-flex-direction: column;
105
114
  flex-direction: column;
106
115
  pointer-events: none;
107
- z-index: 9999;
116
+ z-index: var(--kd-c-message-z-index, var(--kd-g-z-index-apex, 9999));
108
117
  }
109
118
  .kd-message {
110
119
  position: relative;
@@ -115,9 +124,10 @@
115
124
  max-width: 1000px;
116
125
  margin: 0 auto 16px;
117
126
  padding: 10px 20px;
118
- border: 1px solid #ccc;
127
+ color: var(--kd-c-message-info-color-text, var(--kd-g-color-text-link, #0e5fd8));
128
+ border: 1px solid var(--kd-c-message-info-color-border, #b3d5ff);
119
129
  border-radius: 4px;
120
- background-color: #fff;
130
+ background-color: var(--kd-c-message-info-color-background, #e0efff);
121
131
  pointer-events: all;
122
132
  -webkit-animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
123
133
  animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -146,22 +156,22 @@
146
156
  cursor: pointer;
147
157
  }
148
158
  .kd-message-content-close:hover {
149
- color: #85b8ff;
159
+ color: var(--kd-c-message-icon-color-text-hover, var(--kd-g-color-border-ongoing, #85b8ff));
150
160
  }
151
161
  .kd-message-success {
152
- color: #1ba854;
153
- background: #dcfae4;
154
- border: 1px solid #a1e6b5;
162
+ color: var(--kd-c-message-success-color-text, var(--kd-g-color-success, #1ba854));
163
+ background: var(--kd-c-message-success-color-background, #dcfae4);
164
+ border: 1px solid var(--kd-c-message-success-color-border, #a1e6b5);
155
165
  }
156
166
  .kd-message-warning {
157
- color: #ff991c;
158
- background: #fff1d4;
159
- border: 1px solid #ffe0a6;
167
+ color: var(--kd-c-message-warning-color-text, var(--kd-g-color-warning, #ff991c));
168
+ background: var(--kd-c-message-warning-color-background, #fff1d4);
169
+ border: 1px solid var(--kd-c-message-warning-color-border, #ffe0a6);
160
170
  }
161
171
  .kd-message-error {
162
- color: #fb2323;
163
- background: #ffdbe0;
164
- border: 1px solid #ffadb6;
172
+ color: var(--kd-c-message-error-color-text, var(--kd-g-color-error, #fb2323));
173
+ background: var(--kd-c-message-error-color-background, #ffdbe0);
174
+ border: 1px solid var(--kd-c-message-error-color-border, #ffadb6);
165
175
  }
166
176
  .kd-message-leave {
167
177
  -webkit-animation: kdNoticeLeaveEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -1,4 +1,5 @@
1
1
  @import '../../style/themes/index';
2
+ @import './token.less';
2
3
 
3
4
  @msg-prefix-cls: ~'@{kd-prefix}-message';
4
5
 
@@ -9,7 +10,7 @@
9
10
  display: flex;
10
11
  flex-direction: column;
11
12
  pointer-events: none;
12
- z-index: @notice-zIndex;
13
+ z-index: @message-z-index;
13
14
  }
14
15
 
15
16
  .@{msg-prefix-cls} {
@@ -20,9 +21,10 @@
20
21
  max-width: 1000px;
21
22
  margin: 0 auto 16px;
22
23
  padding: 10px 20px;
23
- border: 1px solid #ccc;
24
+ color: @message-info-text-color;
25
+ border: 1px solid @message-info-color-border;
24
26
  border-radius: 4px;
25
- background-color: @white;
27
+ background-color: @message-info-color-background;
26
28
  pointer-events: all;
27
29
  animation: kdNoticeEffect calc(@transition-duration - 0.2s) @ease-out forwards;
28
30
 
@@ -44,27 +46,27 @@
44
46
  cursor: pointer;
45
47
 
46
48
  &:hover {
47
- color: @ongoing-border-color;
49
+ color: @message-icon-text-color-hover;
48
50
  }
49
51
  }
50
52
  }
51
53
 
52
54
  &-success {
53
- color: #1ba854;
54
- background: #dcfae4;
55
- border: 1px solid #a1e6b5;
55
+ color: @message-success-text-color;
56
+ background: @message-success-color-background;
57
+ border: 1px solid @message-success-color-border;
56
58
  }
57
59
 
58
60
  &-warning {
59
- color: #ff991c;
60
- background: #fff1d4;
61
- border: 1px solid #ffe0a6;
61
+ color: @message-warning-text-color;
62
+ background: @message-warning-color-background;
63
+ border: 1px solid @message-warning-color-border;
62
64
  }
63
65
 
64
66
  &-error {
65
- color: #fb2323;
66
- background: #ffdbe0;
67
- border: 1px solid #ffadb6;
67
+ color: @message-error-text-color;
68
+ background: @message-error-color-background;
69
+ border: 1px solid @message-error-color-border;
68
70
  }
69
71
 
70
72
  &-leave {
@@ -0,0 +1,21 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @message-custom-prefix: ~'--@{kd-prefix}-c-message';
4
+
5
+ // color
6
+ @message-info-color-background: var(~'@{message-custom-prefix}-info-color-background', #e0efff);
7
+ @message-info-color-border: var(~'@{message-custom-prefix}-info-color-border', #b3d5ff);
8
+ @message-success-color-background: var(~'@{message-custom-prefix}-success-color-background', #dcfae4);
9
+ @message-success-color-border: var(~'@{message-custom-prefix}-success-color-border', #a1e6b5);
10
+ @message-success-text-color: var(~'@{message-custom-prefix}-success-color-text', @color-success);
11
+ @message-warning-color-background: var(~'@{message-custom-prefix}-warning-color-background', #fff1d4);
12
+ @message-warning-color-border: var(~'@{message-custom-prefix}-warning-color-border', #ffe0a6);
13
+ @message-warning-text-color: var(~'@{message-custom-prefix}-warning-color-text', @color-warning);
14
+ @message-error-color-background: var(~'@{message-custom-prefix}-error-color-background', #ffdbe0);
15
+ @message-error-color-border: var(~'@{message-custom-prefix}-error-color-border', #ffadb6);
16
+ @message-error-text-color: var(~'@{message-custom-prefix}-error-color-text', @color-error);
17
+ @message-icon-text-color-hover: var(~'@{message-custom-prefix}-icon-color-text-hover', @color-border-ongoing);
18
+ @message-info-text-color: var(~'@{message-custom-prefix}-info-color-text', @color-text-link);
19
+
20
+ // z-index
21
+ @message-z-index: var(~'@{message-custom-prefix}-z-index', @z-index-apex);
@@ -98,13 +98,22 @@
98
98
  top: 0;
99
99
  bottom: 0;
100
100
  }
101
+ /* ----------- motion ——————---- start */
102
+ /* ----------- motion ——————---- end */
103
+ /* ----------- transition ——————---- start */
104
+ /* ----------- transition ——————---- end */
105
+ /* ----------- zIndex ——————---- start */
106
+ /*
107
+ 普通组件内部自身层级应设置在0-100间
108
+ */
109
+ /* ----------- zIndex ——————---- end */
101
110
  .kd-modal-container {
102
111
  position: relative;
103
- z-index: 1050;
112
+ z-index: var(--kd-c-modal-z-index, var(--kd-g-z-index-dialog, 1050));
104
113
  }
105
114
  .kd-modal-mask {
106
115
  position: fixed;
107
- background-color: rgba(55, 55, 55, 0.5);
116
+ background-color: var(--kd-c-modal-mask-color-background, rgba(55, 55, 55, 0.5));
108
117
  z-index: auto;
109
118
  left: 0;
110
119
  right: 0;
@@ -127,9 +136,9 @@
127
136
  -ms-flex-direction: column;
128
137
  flex-direction: column;
129
138
  background: #ffffff;
130
- -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
131
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
132
- border-radius: 2px;
139
+ -webkit-box-shadow: var(--kd-c-modal-box-shadow, 0 4px 10px 0 rgba(0, 0, 0, 0.2));
140
+ box-shadow: var(--kd-c-modal-box-shadow, 0 4px 10px 0 rgba(0, 0, 0, 0.2));
141
+ border-radius: var(--kd-c-modal-boeder-radius, 2px);
133
142
  outline: none;
134
143
  }
135
144
  .kd-modal-container-box .kd-modal-header {
@@ -139,11 +148,11 @@
139
148
  -webkit-box-pack: justify;
140
149
  -ms-flex-pack: justify;
141
150
  justify-content: space-between;
142
- padding: 16px 27px 0 24px;
151
+ padding: var(--kd-c-modal-header-sizing-padding-vertical, 0px) var(--kd-c-modal-header-sizing-padding-horizontal, 20px);
143
152
  -webkit-box-align: center;
144
153
  -ms-flex-align: center;
145
154
  align-items: center;
146
- min-height: 43px;
155
+ height: var(--kd-c-modal-header-sizing-height, 50px);
147
156
  }
148
157
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container {
149
158
  display: -webkit-box;
@@ -158,24 +167,24 @@
158
167
  }
159
168
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container .kd-modal-title-icon {
160
169
  border-radius: 50% 50%;
161
- width: 6px;
162
- height: 6px;
163
- margin-right: 8px;
170
+ width: var(--kd-c-modal-icon-circle-sizing, 6px);
171
+ height: var(--kd-c-modal-icon-circle-sizing, 6px);
172
+ margin-right: var(--kd-c-modal-title-icon-sizing-margin-right, 8px);
164
173
  }
165
174
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-confirm-title-icon-bgcolor {
166
- background-color: #276ff5;
175
+ background-color: var(--kd-c-modal-color-ongoing, var(--kd-g-color-ongoing, #276ff5));
167
176
  }
168
177
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-warning-title-icon-bgcolor {
169
- background-color: #ff991c;
178
+ background-color: var(--kd-c-modal-color-warning, var(--kd-g-color-warning, #ff991c));
170
179
  }
171
180
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container .modal-error-title-icon-bgcolor {
172
- background-color: #fb2323;
181
+ background-color: var(--kd-c-modal-color-error, var(--kd-g-color-error, #fb2323));
173
182
  }
174
183
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container .kd-modal-title {
175
184
  min-width: 72px;
176
185
  min-height: 27px;
177
- font-size: 18px;
178
- color: #212121;
186
+ font-size: var(--kd-c-modal-title-font-size, 18px);
187
+ color: var(--kd-c-modal-title-text-color, var(--kd-g-color-text-primary, #212121));
179
188
  line-height: 27px;
180
189
  }
181
190
  .kd-modal-container-box .kd-modal-header .kd-modal-title-container:active {
@@ -191,15 +200,15 @@
191
200
  -webkit-box-align: center;
192
201
  -ms-flex-align: center;
193
202
  align-items: center;
194
- width: 10px;
195
- height: 10px;
203
+ font-size: var(--kd-c-modal-close-icon-font-size, 16px);
204
+ color: var(--kd-c-modal-close-icon-color-text, #666666);
196
205
  cursor: pointer;
197
206
  }
198
207
  .kd-modal-container-box .kd-modal-header .kd-modal-close-icon:hover {
199
- color: #87adff;
208
+ color: var(--kd-c-modal-color-theme-hover, var(--kd-g-color-theme-5, #87adff));
200
209
  }
201
210
  .kd-modal-container-box .kd-modal-header .kd-modal-close-icon:active {
202
- color: #375cca;
211
+ color: var(--kd-c-modal-color-theme-active, var(--kd-g-color-theme-7, #375cca));
203
212
  }
204
213
  .kd-modal-container-box .kd-modal-header:active {
205
214
  cursor: move;
@@ -209,12 +218,12 @@
209
218
  -webkit-box-flex: 1;
210
219
  -ms-flex-positive: 1;
211
220
  flex-grow: 1;
212
- padding: 20px 48px 32px;
213
- font-size: 16px;
214
- color: #212121;
221
+ padding: var(--kd-c-modal-body-sizing-padding, 20px);
222
+ font-size: var(--kd-c-modal-body-font-size, 16px);
223
+ color: var(--kd-c-modal-body-text-color, var(--kd-g-color-text-primary, #212121));
215
224
  }
216
225
  .kd-modal-container-box .kd-modal-footer {
217
- min-height: 64px;
226
+ height: var(--kd-c-modal-footer-sizing-height, 50px);
218
227
  display: -webkit-box;
219
228
  display: -ms-flexbox;
220
229
  display: flex;
@@ -224,21 +233,21 @@
224
233
  -webkit-box-align: center;
225
234
  -ms-flex-align: center;
226
235
  align-items: center;
227
- font-size: 14px;
228
- color: #666;
236
+ font-size: var(--kd-c-modal-footer-font-size, 14px);
237
+ color: var(--kd-c-modal-footer-text-color, var(--kd-g-color-text-secondary, #666));
229
238
  }
230
239
  .kd-modal-ok-btn,
231
240
  .kd-modal-cancel-btn {
232
241
  min-width: 88px;
233
242
  min-height: 32px;
234
- font-size: 14px;
243
+ font-size: var(--kd-c-modal-footer-font-size, 14px);
235
244
  }
236
245
  .kd-modal-margin-btn {
237
246
  margin-right: 20px;
238
247
  }
239
248
  .kd-modal-showline .kd-modal-header {
240
- border-bottom: 1px solid #d9d9d9;
249
+ border-bottom: var(--kd-c-modal-sizing-border, 1px) solid var(--kd-c-modal-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
241
250
  }
242
251
  .kd-modal-showline .kd-modal-footer {
243
- border-top: 1px solid #d9d9d9;
252
+ border-top: var(--kd-c-modal-sizing-border, 1px) solid var(--kd-c-modal-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
244
253
  }
@@ -6,21 +6,11 @@
6
6
  @confirm: confirm;
7
7
  @warning: warning;
8
8
  @error: error;
9
- @icon-circle-radiu: 6px;
10
-
11
- @modal-title-font-size: 18px;
12
- @modal-title-font-color: @primary-text-color;
13
- @modal-body-font-size: 16px;
14
- @modal-body-font-color: @primary-text-color;
15
- @modal-footer-font-size: 14px;
16
- @modal-footer-font-color: @secondary-text-color;
17
- @modal-radius: 2px;
18
- @modal-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
19
9
 
20
10
  @modal-bg-type-set: {
21
- @confirm: @ongoing-color;
22
- @warning: @warning-color;
23
- @error: @error-color;
11
+ @confirm: @modal-color-ongoing;
12
+ @warning: @modal-color-warning;
13
+ @error: @modal-color-error;
24
14
  };
25
15
 
26
16
  @modal-footer-type-set: {
@@ -32,10 +22,10 @@
32
22
  .@{modal-prefix-cls} {
33
23
  &-container {
34
24
  position: relative;
35
- z-index: @zIndex-dialog;
25
+ z-index: @modal-z-index-dialog;
36
26
  }
37
27
  &-mask {
38
- .overlay(rgba(55, 55, 55, 0.5), 0);
28
+ .overlay(@modal-mask-color-background, 0);
39
29
  }
40
30
  // &-mask + &-container-box {
41
31
 
@@ -57,16 +47,16 @@
57
47
  .@{modal-prefix-cls}-header {
58
48
  display: flex;
59
49
  justify-content: space-between;
60
- padding: 16px 27px 0 24px;
50
+ padding: @modal-header-sizing-padding-vertical @modal-header-sizing-padding-horizontal;
61
51
  align-items: center;
62
- min-height: 43px;
52
+ height: @modal-header-sizing-height;
63
53
  .@{modal-prefix-cls}-title-container {
64
54
  display: flex;
65
55
  justify-content: center;
66
56
  align-items: center;
67
57
  .@{modal-prefix-cls}-title-icon {
68
58
  .modal-title-icon-type(@icon-circle-radiu);
69
- margin-right: 8px;
59
+ margin-right: @modal-title-icon-sizing-margin-right;
70
60
  }
71
61
  each(@modal-bg-type-set, {
72
62
  .modal-title-icon-bgcolor-type(@key, @value)
@@ -86,14 +76,14 @@
86
76
  display: flex;
87
77
  justify-content: center;
88
78
  align-items: center;
89
- width: 10px;
90
- height: 10px;
79
+ font-size: @modal-close-icon-size;
80
+ color: @modal-close-icon-color-text;
91
81
  cursor: pointer;
92
82
  &:hover {
93
- color: @theme-color-hover;
83
+ color: @modal-theme-color-hover;
94
84
  }
95
85
  &:active {
96
- color: @theme-color-click;
86
+ color: @modal-theme-color-active;
97
87
  }
98
88
  }
99
89
  &:active {
@@ -104,12 +94,12 @@
104
94
  .@{modal-prefix-cls}-body {
105
95
  display: block;
106
96
  flex-grow: 1;
107
- padding: 20px 48px 32px;
97
+ padding: @modal-body-sizing-padding;
108
98
  font-size: @modal-body-font-size;
109
99
  color: @modal-body-font-color;
110
100
  }
111
101
  .@{modal-prefix-cls}-footer {
112
- min-height: 64px;
102
+ height: @modal-footer-sizing-height;
113
103
  display: flex;
114
104
  justify-content: center;
115
105
  align-items: center;
@@ -136,9 +126,9 @@
136
126
 
137
127
  .@{modal-prefix-cls}-showline {
138
128
  .@{modal-prefix-cls}-header {
139
- border-bottom: 1px solid @modal-border-color;
129
+ border-bottom: @modal-border-width solid @modal-border-color;
140
130
  }
141
131
  .@{modal-prefix-cls}-footer {
142
- border-top: 1px solid @modal-border-color;
132
+ border-top: @modal-border-width solid @modal-border-color;
143
133
  }
144
134
  }
@@ -1,3 +1,5 @@
1
+ @import './token.less';
2
+
1
3
  .modal-title-icon-type(@squareWidth) {
2
4
  border-radius: 50% 50%;
3
5
  width: @squareWidth;
@@ -0,0 +1,46 @@
1
+ @import '../../style/themes/token.less';
2
+
3
+ @modal-prefix: '--@{kd-prefix}-c-modal';
4
+
5
+ // color
6
+ @modal-primary-text-color: var(~'@{modal-prefix}-color-text-primary', @color-text-primary);
7
+ @modal-secondary-text-color: var(~'@{modal-prefix}-color-text-secondary', @color-text-secondary);
8
+ @modal-color-ongoing: var(~'@{modal-prefix}-color-ongoing', @color-ongoing);
9
+ @modal-color-warning: var(~'@{modal-prefix}-color-warning', @color-warning);
10
+ @modal-color-error: var(~'@{modal-prefix}-color-error', @color-error);
11
+ @modal-footer-font-color: var(~'@{modal-prefix}-footer-text-color', @color-text-secondary);
12
+ @modal-body-font-color: var(~'@{modal-prefix}-body-text-color', @color-text-primary);
13
+ @modal-title-font-color: var(~'@{modal-prefix}-title-text-color', @color-text-primary);
14
+ @modal-border-color: var(~'@{modal-prefix}-color-border', @color-border-strong-2);
15
+ @modal-theme-color-hover: var(~'@{modal-prefix}-color-theme-hover', @color-theme-5);
16
+ @modal-theme-color-active: var(~'@{modal-prefix}-color-theme-active', @color-theme-7);
17
+ @modal-mask-color-background: var(~'@{modal-prefix}-mask-color-background', rgba(55, 55, 55, 0.5));
18
+ @modal-close-icon-color-text: var(~'@{modal-prefix}-close-icon-color-text', #666666);
19
+ @confirm-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-ongoing', @color-ongoing); // 提示弹窗的背景色
20
+ @warning-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-warning', @color-warning); // 警告弹窗的背景色
21
+ @error-modal-title-icon-bg: var(~'@{modal-prefix}-title-icon-color-backround-warning', @color-warning); // 反馈浮层错误提示的背景色
22
+
23
+ // z-index
24
+ @modal-z-index-dialog: var(~'@{modal-prefix}-z-index', @z-index-dialog);
25
+
26
+ // font
27
+ @modal-footer-font-size: var(~'@{modal-prefix}-footer-font-size', 14px);
28
+ @modal-body-font-size: var(~'@{modal-prefix}-body-font-size', 16px);
29
+ @modal-title-font-size: var(~'@{modal-prefix}-title-font-size', 18px);
30
+
31
+ // shadow
32
+ @modal-shadow: var(~'@{modal-prefix}-box-shadow', 0 4px 10px 0 rgba(0, 0, 0, 0.2));
33
+
34
+ // radius
35
+ @modal-radius: var(~'@{modal-prefix}-boeder-radius', 2px);
36
+
37
+ // sizing
38
+ @icon-circle-radiu: var(~'@{modal-prefix}-icon-circle-sizing', 6px);
39
+ @modal-border-width: var(~'@{modal-prefix}-sizing-border', 1px);
40
+ @modal-close-icon-size: var(~'@{modal-prefix}-close-icon-font-size', 16px);
41
+ @modal-header-sizing-padding-horizontal: var(~'@{modal-prefix}-header-sizing-padding-horizontal', 20px);
42
+ @modal-header-sizing-padding-vertical: var(~'@{modal-prefix}-header-sizing-padding-vertical', 0px);
43
+ @modal-header-sizing-height: var(~'@{modal-prefix}-header-sizing-height', 50px);
44
+ @modal-body-sizing-padding: var(~'@{modal-prefix}-body-sizing-padding', 20px);
45
+ @modal-footer-sizing-height: var(~'@{modal-prefix}-footer-sizing-height', 50px);
46
+ @modal-title-icon-sizing-margin-right: var(~'@{modal-prefix}-title-icon-sizing-margin-right', 8px);
@@ -115,7 +115,7 @@ var Content = function Content(args) {
115
115
  var getMainElement = function getMainElement() {
116
116
  if (typeof content === 'string') {
117
117
  return /*#__PURE__*/React.createElement("div", {
118
- className: classNames("".concat(classPrefix, "-main"))
118
+ className: classNames("".concat(classPrefix, "-description"))
119
119
  }, content);
120
120
  }
121
121
 
@@ -92,12 +92,21 @@
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-notice-box-topRight,
96
105
  .kd-notice-box-topLeft,
97
106
  .kd-notice-box-bottomLeft,
98
107
  .kd-notice-box-bottomRight {
99
108
  position: fixed;
100
- z-index: 9999;
109
+ z-index: var(--kd-c-notice-z-index, var(--kd-g-z-index-apex, 9999));
101
110
  }
102
111
  .kd-notice {
103
112
  position: relative;
@@ -109,9 +118,9 @@
109
118
  -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
110
119
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
111
120
  border-radius: 2px;
112
- background-color: #fff;
113
- -webkit-animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
114
- animation: kdNoticeEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
121
+ background-color: var(--kd-c-notice-content-color-background, var(--kd-g-color-white, #fff));
122
+ -webkit-animation: kdNoticeEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
123
+ animation: kdNoticeEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
115
124
  }
116
125
  .kd-notice-content {
117
126
  width: 100%;
@@ -124,7 +133,7 @@
124
133
  display: -webkit-box;
125
134
  display: -ms-flexbox;
126
135
  display: flex;
127
- font-size: 14px;
136
+ font-size: var(--kd-c-notice-title-font-size, var(--kd-g-font-size-middle, 14px));
128
137
  -ms-flex-line-pack: center;
129
138
  align-content: center;
130
139
  -webkit-box-pack: justify;
@@ -158,7 +167,7 @@
158
167
  .kd-notice-content-title-close {
159
168
  cursor: pointer;
160
169
  }
161
- .kd-notice-content-main {
170
+ .kd-notice-content-description {
162
171
  height: 46px;
163
172
  padding: 10px 20px;
164
173
  font-size: 12px;
@@ -177,60 +186,60 @@
177
186
  align-items: center;
178
187
  padding: 0 20px 15px 20px;
179
188
  font-size: 12px;
180
- color: #0e5fd8;
189
+ color: var(--kd-c-notice-footer-color, var(--kd-g-color-text-link, #0e5fd8));
181
190
  cursor: pointer;
182
191
  }
183
192
  .kd-notice-content-footer > div {
184
193
  margin-right: 10px;
185
194
  }
186
195
  .kd-notice-content-footer > div:hover {
187
- color: #3987ed;
196
+ color: var(--kd-c-notice-footer-color-hover, var(--kd-g-color-text-link-hover, #3987ed));
188
197
  }
189
198
  .kd-notice-info .kd-notice-content-title {
190
- color: #212121;
191
- background: #fff;
199
+ color: var(--kd-c-notice-info-color, var(--kd-g-color-text-primary, #212121));
200
+ background: var(--kd-c-notice-info-header-color-background, var(--kd-g-color-white, #fff));
192
201
  }
193
202
  .kd-notice-info .kd-notice-content-title-left-icon {
194
- color: #5582f3;
203
+ color: var(--kd-c-notice-icon-color, var(--kd-g-color-theme, #5582f3));
195
204
  }
196
205
  .kd-notice-info .kd-notice-content-title-close {
197
- color: #5582f3;
206
+ color: var(--kd-c-notice-icon-color, var(--kd-g-color-theme, #5582f3));
198
207
  }
199
208
  .kd-notice-info .kd-notice-content-title-close:hover {
200
- color: #85b8ff;
209
+ color: var(--kd-c-notice-icon-color-hover, var(--kd-g-color-border-ongoing, #85b8ff));
201
210
  }
202
211
  .kd-notice-primary .kd-notice-content-title {
203
- color: #fff;
204
- background: #5582f3;
212
+ color: var(--kd-c-notice-header-color, var(--kd-g-color-white, #fff));
213
+ background: var(--kd-c-notice-header-color-background, var(--kd-g-color-theme, #5582f3));
205
214
  }
206
215
  .kd-notice-primary .kd-notice-content-title-close {
207
- color: #fff;
216
+ color: var(--kd-c-notice-header-color, var(--kd-g-color-white, #fff));
208
217
  }
209
218
  .kd-notice-primary .kd-notice-content-title-close:hover {
210
- color: #85b8ff;
219
+ color: var(--kd-c-notice-icon-color-hover, var(--kd-g-color-border-ongoing, #85b8ff));
211
220
  }
212
221
  .kd-notice-leave {
213
- -webkit-animation: kdNoticeLeaveEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
214
- animation: kdNoticeLeaveEffect calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
222
+ -webkit-animation: kdNoticeLeaveEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
223
+ animation: kdNoticeLeaveEffect var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1) forwards;
215
224
  }
216
225
  .kd-notice-leave-after {
217
226
  padding: 0;
218
227
  margin: 0;
219
228
  opacity: 0;
220
- -webkit-transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
221
- transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
229
+ -webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
230
+ transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
222
231
  }
223
232
  .kd-notice-leave-after.kd-notice-success,
224
233
  .kd-notice-leave-after.kd-notice-warning,
225
234
  .kd-notice-leave-after.kd-notice-error {
226
- -webkit-transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
227
- transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
235
+ -webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
236
+ transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
228
237
  border: none;
229
238
  }
230
239
  .kd-notice-leave-after div,
231
240
  .kd-notice-leave-after i {
232
- -webkit-transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
233
- transition: all calc(0.3s - 0.2s) cubic-bezier(0, 0.4, 0.4, 1);
241
+ -webkit-transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
242
+ transition: all var(--kd-c-notice-motion-duration, var(--kd-g-duration-quickly, 0.2s)) cubic-bezier(0, 0.4, 0.4, 1);
234
243
  height: 0;
235
244
  font-size: 0;
236
245
  }