@berqnet/theme 0.0.0-stage → 2.4.291

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 (345) hide show
  1. package/README.md +111 -2
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.d.mts +12 -0
  4. package/dist/module.d.ts +12 -0
  5. package/dist/module.json +9 -0
  6. package/dist/module.mjs +183 -0
  7. package/dist/runtime/assets/scss/main.css +18832 -0
  8. package/dist/runtime/components/development/example.alert.vue +47 -0
  9. package/dist/runtime/components/development/example.avatar.vue +88 -0
  10. package/dist/runtime/components/development/example.badge.vue +95 -0
  11. package/dist/runtime/components/development/example.breadcrumb.vue +58 -0
  12. package/dist/runtime/components/development/example.button.vue +250 -0
  13. package/dist/runtime/components/development/example.card.vue +68 -0
  14. package/dist/runtime/components/development/example.checkbox.vue +191 -0
  15. package/dist/runtime/components/development/example.checkbox.vue.d.ts +134 -0
  16. package/dist/runtime/components/development/example.collapse.vue +38 -0
  17. package/dist/runtime/components/development/example.datepicker.vue +196 -0
  18. package/dist/runtime/components/development/example.description.vue +144 -0
  19. package/dist/runtime/components/development/example.dialog.vue +76 -0
  20. package/dist/runtime/components/development/example.dropdown.vue +194 -0
  21. package/dist/runtime/components/development/example.form.vue +497 -0
  22. package/dist/runtime/components/development/example.input.vue +275 -0
  23. package/dist/runtime/components/development/example.link.vue +94 -0
  24. package/dist/runtime/components/development/example.menu.vue +237 -0
  25. package/dist/runtime/components/development/example.message.vue +68 -0
  26. package/dist/runtime/components/development/example.notification.vue +77 -0
  27. package/dist/runtime/components/development/example.number.vue +74 -0
  28. package/dist/runtime/components/development/example.pagination.vue +100 -0
  29. package/dist/runtime/components/development/example.popover.vue +146 -0
  30. package/dist/runtime/components/development/example.radio.vue +178 -0
  31. package/dist/runtime/components/development/example.radio.vue.d.ts +26 -0
  32. package/dist/runtime/components/development/example.select.vue +619 -0
  33. package/dist/runtime/components/development/example.select.vue.d.ts +70 -0
  34. package/dist/runtime/components/development/example.sidebar.vue +106 -0
  35. package/dist/runtime/components/development/example.static.vue +51 -0
  36. package/dist/runtime/components/development/example.switch.vue +102 -0
  37. package/dist/runtime/components/development/example.tab.vue +48 -0
  38. package/dist/runtime/components/development/example.table.vue +333 -0
  39. package/dist/runtime/components/development/example.tag.vue +268 -0
  40. package/dist/runtime/components/development/example.timepicker.vue +95 -0
  41. package/dist/runtime/components/development/example.tooltip.vue +104 -0
  42. package/dist/runtime/components/development/example.upload.vue +89 -0
  43. package/dist/runtime/components/production/html-encode.vue +99 -0
  44. package/dist/runtime/pages/colors.vue +142 -0
  45. package/dist/runtime/pages/theme.vue +60 -0
  46. package/dist/runtime/plugins/disable-warnings-plugin.d.ts +2 -0
  47. package/dist/runtime/plugins/disable-warnings-plugin.js +37 -0
  48. package/dist/runtime/plugins/disable-warnings-plugin.mjs +37 -0
  49. package/dist/runtime/plugins/sample-plugin.d.ts +20 -0
  50. package/dist/runtime/plugins/sample-plugin.js +5 -0
  51. package/dist/runtime/plugins/sample-plugin.mjs +5 -0
  52. package/dist/runtime/plugins/theme-provider-plugin.d.ts +30 -0
  53. package/dist/runtime/plugins/theme-provider-plugin.js +46 -0
  54. package/dist/runtime/plugins/theme-provider-plugin.mjs +46 -0
  55. package/dist/runtime/public/scss/_buttons.scss +157 -0
  56. package/dist/runtime/public/scss/_colors.scss +163 -0
  57. package/dist/runtime/public/scss/_containers.scss +7 -0
  58. package/dist/runtime/public/scss/_fonts.scss +84 -0
  59. package/dist/runtime/public/scss/_icons.scss +111 -0
  60. package/dist/runtime/public/scss/_inputs.scss +64 -0
  61. package/dist/runtime/public/scss/_layers.scss +9 -0
  62. package/dist/runtime/public/scss/_logo.scss +53 -0
  63. package/dist/runtime/public/scss/_selectbox.scss +4 -0
  64. package/dist/runtime/public/scss/_tag.scss +0 -0
  65. package/dist/runtime/public/scss/_variables.scss +16 -0
  66. package/dist/runtime/public/scss/element-plus/affix.css +305 -0
  67. package/dist/runtime/public/scss/element-plus/affix.scss +7 -0
  68. package/dist/runtime/public/scss/element-plus/alert.css +523 -0
  69. package/dist/runtime/public/scss/element-plus/alert.scss +160 -0
  70. package/dist/runtime/public/scss/element-plus/anchor-link.css +332 -0
  71. package/dist/runtime/public/scss/element-plus/anchor-link.scss +41 -0
  72. package/dist/runtime/public/scss/element-plus/anchor.css +376 -0
  73. package/dist/runtime/public/scss/element-plus/anchor.scss +93 -0
  74. package/dist/runtime/public/scss/element-plus/aside.css +308 -0
  75. package/dist/runtime/public/scss/element-plus/aside.scss +8 -0
  76. package/dist/runtime/public/scss/element-plus/autocomplete.css +411 -0
  77. package/dist/runtime/public/scss/element-plus/autocomplete.scss +85 -0
  78. package/dist/runtime/public/scss/element-plus/avatar.css +374 -0
  79. package/dist/runtime/public/scss/element-plus/avatar.scss +56 -0
  80. package/dist/runtime/public/scss/element-plus/backtop.css +326 -0
  81. package/dist/runtime/public/scss/element-plus/backtop.scss +29 -0
  82. package/dist/runtime/public/scss/element-plus/badge.css +376 -0
  83. package/dist/runtime/public/scss/element-plus/badge.scss +54 -0
  84. package/dist/runtime/public/scss/element-plus/base.css +559 -0
  85. package/dist/runtime/public/scss/element-plus/base.scss +3 -0
  86. package/dist/runtime/public/scss/element-plus/breadcrumb-item.css +0 -0
  87. package/dist/runtime/public/scss/element-plus/breadcrumb-item.scss +0 -0
  88. package/dist/runtime/public/scss/element-plus/breadcrumb.css +370 -0
  89. package/dist/runtime/public/scss/element-plus/breadcrumb.scss +77 -0
  90. package/dist/runtime/public/scss/element-plus/button-group.css +535 -0
  91. package/dist/runtime/public/scss/element-plus/button-group.scss +111 -0
  92. package/dist/runtime/public/scss/element-plus/button.css +1103 -0
  93. package/dist/runtime/public/scss/element-plus/button.scss +374 -0
  94. package/dist/runtime/public/scss/element-plus/calendar.css +370 -0
  95. package/dist/runtime/public/scss/element-plus/calendar.scss +80 -0
  96. package/dist/runtime/public/scss/element-plus/card.css +349 -0
  97. package/dist/runtime/public/scss/element-plus/card.scss +56 -0
  98. package/dist/runtime/public/scss/element-plus/carousel-item.css +350 -0
  99. package/dist/runtime/public/scss/element-plus/carousel-item.scss +58 -0
  100. package/dist/runtime/public/scss/element-plus/carousel.css +475 -0
  101. package/dist/runtime/public/scss/element-plus/carousel.scss +183 -0
  102. package/dist/runtime/public/scss/element-plus/cascader-panel.css +438 -0
  103. package/dist/runtime/public/scss/element-plus/cascader-panel.scss +148 -0
  104. package/dist/runtime/public/scss/element-plus/cascader.css +560 -0
  105. package/dist/runtime/public/scss/element-plus/cascader.scss +218 -0
  106. package/dist/runtime/public/scss/element-plus/check-tag.css +386 -0
  107. package/dist/runtime/public/scss/element-plus/check-tag.scss +38 -0
  108. package/dist/runtime/public/scss/element-plus/checkbox-button.css +446 -0
  109. package/dist/runtime/public/scss/element-plus/checkbox-button.scss +141 -0
  110. package/dist/runtime/public/scss/element-plus/checkbox-group.css +311 -0
  111. package/dist/runtime/public/scss/element-plus/checkbox-group.scss +13 -0
  112. package/dist/runtime/public/scss/element-plus/checkbox.css +587 -0
  113. package/dist/runtime/public/scss/element-plus/checkbox.scss +293 -0
  114. package/dist/runtime/public/scss/element-plus/col.css +3270 -0
  115. package/dist/runtime/public/scss/element-plus/col.scss +48 -0
  116. package/dist/runtime/public/scss/element-plus/collapse-item.css +0 -0
  117. package/dist/runtime/public/scss/element-plus/collapse-item.scss +0 -0
  118. package/dist/runtime/public/scss/element-plus/collapse-transition.css +0 -0
  119. package/dist/runtime/public/scss/element-plus/collapse-transition.scss +0 -0
  120. package/dist/runtime/public/scss/element-plus/collapse.css +499 -0
  121. package/dist/runtime/public/scss/element-plus/collapse.scss +85 -0
  122. package/dist/runtime/public/scss/element-plus/color/index.css +0 -0
  123. package/dist/runtime/public/scss/element-plus/color/index.scss +17 -0
  124. package/dist/runtime/public/scss/element-plus/color-picker.css +650 -0
  125. package/dist/runtime/public/scss/element-plus/color-picker.scss +365 -0
  126. package/dist/runtime/public/scss/element-plus/common/popup.css +338 -0
  127. package/dist/runtime/public/scss/element-plus/common/popup.scss +47 -0
  128. package/dist/runtime/public/scss/element-plus/common/transition.css +420 -0
  129. package/dist/runtime/public/scss/element-plus/common/transition.scss +124 -0
  130. package/dist/runtime/public/scss/element-plus/common/var.css +302 -0
  131. package/dist/runtime/public/scss/element-plus/common/var.scss +1676 -0
  132. package/dist/runtime/public/scss/element-plus/config-provider.css +0 -0
  133. package/dist/runtime/public/scss/element-plus/config-provider.scss +0 -0
  134. package/dist/runtime/public/scss/element-plus/container.css +313 -0
  135. package/dist/runtime/public/scss/element-plus/container.scss +14 -0
  136. package/dist/runtime/public/scss/element-plus/dark/css-vars.css +353 -0
  137. package/dist/runtime/public/scss/element-plus/dark/css-vars.scss +39 -0
  138. package/dist/runtime/public/scss/element-plus/dark/var.css +302 -0
  139. package/dist/runtime/public/scss/element-plus/dark/var.scss +222 -0
  140. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +558 -0
  141. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.scss +109 -0
  142. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +410 -0
  143. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.scss +117 -0
  144. package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +426 -0
  145. package/dist/runtime/public/scss/element-plus/date-picker/date-table.scss +158 -0
  146. package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +388 -0
  147. package/dist/runtime/public/scss/element-plus/date-picker/month-table.scss +112 -0
  148. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +454 -0
  149. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.scss +168 -0
  150. package/dist/runtime/public/scss/element-plus/date-picker/picker.css +668 -0
  151. package/dist/runtime/public/scss/element-plus/date-picker/picker.scss +198 -0
  152. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +384 -0
  153. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.scss +98 -0
  154. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +338 -0
  155. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.scss +40 -0
  156. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +389 -0
  157. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.scss +110 -0
  158. package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +384 -0
  159. package/dist/runtime/public/scss/element-plus/date-picker/year-table.scss +108 -0
  160. package/dist/runtime/public/scss/element-plus/date-picker.css +1537 -0
  161. package/dist/runtime/public/scss/element-plus/date-picker.scss +9 -0
  162. package/dist/runtime/public/scss/element-plus/descriptions-item.css +347 -0
  163. package/dist/runtime/public/scss/element-plus/descriptions-item.scss +69 -0
  164. package/dist/runtime/public/scss/element-plus/descriptions.css +438 -0
  165. package/dist/runtime/public/scss/element-plus/descriptions.scss +212 -0
  166. package/dist/runtime/public/scss/element-plus/dialog.css +546 -0
  167. package/dist/runtime/public/scss/element-plus/dialog.scss +196 -0
  168. package/dist/runtime/public/scss/element-plus/display.css +357 -0
  169. package/dist/runtime/public/scss/element-plus/display.scss +12 -0
  170. package/dist/runtime/public/scss/element-plus/divider.css +345 -0
  171. package/dist/runtime/public/scss/element-plus/divider.scss +48 -0
  172. package/dist/runtime/public/scss/element-plus/drawer.css +419 -0
  173. package/dist/runtime/public/scss/element-plus/drawer.scss +155 -0
  174. package/dist/runtime/public/scss/element-plus/dropdown-item.css +0 -0
  175. package/dist/runtime/public/scss/element-plus/dropdown-item.scss +0 -0
  176. package/dist/runtime/public/scss/element-plus/dropdown-menu.css +0 -0
  177. package/dist/runtime/public/scss/element-plus/dropdown-menu.scss +0 -0
  178. package/dist/runtime/public/scss/element-plus/dropdown.css +499 -0
  179. package/dist/runtime/public/scss/element-plus/dropdown.scss +216 -0
  180. package/dist/runtime/public/scss/element-plus/empty.css +355 -0
  181. package/dist/runtime/public/scss/element-plus/empty.scss +49 -0
  182. package/dist/runtime/public/scss/element-plus/footer.css +310 -0
  183. package/dist/runtime/public/scss/element-plus/footer.scss +12 -0
  184. package/dist/runtime/public/scss/element-plus/form-item.css +0 -0
  185. package/dist/runtime/public/scss/element-plus/form-item.scss +0 -0
  186. package/dist/runtime/public/scss/element-plus/form.css +547 -0
  187. package/dist/runtime/public/scss/element-plus/form.scss +328 -0
  188. package/dist/runtime/public/scss/element-plus/header.css +310 -0
  189. package/dist/runtime/public/scss/element-plus/header.scss +12 -0
  190. package/dist/runtime/public/scss/element-plus/icon.css +343 -0
  191. package/dist/runtime/public/scss/element-plus/icon.scss +45 -0
  192. package/dist/runtime/public/scss/element-plus/image-viewer.css +439 -0
  193. package/dist/runtime/public/scss/element-plus/image-viewer.scss +139 -0
  194. package/dist/runtime/public/scss/element-plus/image.css +343 -0
  195. package/dist/runtime/public/scss/element-plus/image.scss +49 -0
  196. package/dist/runtime/public/scss/element-plus/index.css +17940 -0
  197. package/dist/runtime/public/scss/element-plus/index.scss +110 -0
  198. package/dist/runtime/public/scss/element-plus/infinite-scroll.css +0 -0
  199. package/dist/runtime/public/scss/element-plus/infinite-scroll.scss +0 -0
  200. package/dist/runtime/public/scss/element-plus/input-number.css +506 -0
  201. package/dist/runtime/public/scss/element-plus/input-number.scss +205 -0
  202. package/dist/runtime/public/scss/element-plus/input.css +771 -0
  203. package/dist/runtime/public/scss/element-plus/input.scss +534 -0
  204. package/dist/runtime/public/scss/element-plus/link.css +603 -0
  205. package/dist/runtime/public/scss/element-plus/link.scss +132 -0
  206. package/dist/runtime/public/scss/element-plus/loading.css +392 -0
  207. package/dist/runtime/public/scss/element-plus/loading.scss +103 -0
  208. package/dist/runtime/public/scss/element-plus/main.css +312 -0
  209. package/dist/runtime/public/scss/element-plus/main.scss +15 -0
  210. package/dist/runtime/public/scss/element-plus/mention.css +413 -0
  211. package/dist/runtime/public/scss/element-plus/mention.scss +84 -0
  212. package/dist/runtime/public/scss/element-plus/menu-item-group.css +0 -0
  213. package/dist/runtime/public/scss/element-plus/menu-item-group.scss +0 -0
  214. package/dist/runtime/public/scss/element-plus/menu-item.css +0 -0
  215. package/dist/runtime/public/scss/element-plus/menu-item.scss +0 -0
  216. package/dist/runtime/public/scss/element-plus/menu.css +765 -0
  217. package/dist/runtime/public/scss/element-plus/menu.scss +360 -0
  218. package/dist/runtime/public/scss/element-plus/message-box.css +576 -0
  219. package/dist/runtime/public/scss/element-plus/message-box.scss +238 -0
  220. package/dist/runtime/public/scss/element-plus/message.css +529 -0
  221. package/dist/runtime/public/scss/element-plus/message.scss +165 -0
  222. package/dist/runtime/public/scss/element-plus/mixins/_button.scss +241 -0
  223. package/dist/runtime/public/scss/element-plus/mixins/_col.scss +33 -0
  224. package/dist/runtime/public/scss/element-plus/mixins/_var.scss +59 -0
  225. package/dist/runtime/public/scss/element-plus/mixins/config.css +0 -0
  226. package/dist/runtime/public/scss/element-plus/mixins/config.scss +5 -0
  227. package/dist/runtime/public/scss/element-plus/mixins/function.css +0 -0
  228. package/dist/runtime/public/scss/element-plus/mixins/function.scss +86 -0
  229. package/dist/runtime/public/scss/element-plus/mixins/mixins.css +302 -0
  230. package/dist/runtime/public/scss/element-plus/mixins/mixins.scss +232 -0
  231. package/dist/runtime/public/scss/element-plus/mixins/utils.css +0 -0
  232. package/dist/runtime/public/scss/element-plus/mixins/utils.scss +39 -0
  233. package/dist/runtime/public/scss/element-plus/notification.css +414 -0
  234. package/dist/runtime/public/scss/element-plus/notification.scss +104 -0
  235. package/dist/runtime/public/scss/element-plus/option-group.css +331 -0
  236. package/dist/runtime/public/scss/element-plus/option-group.scss +38 -0
  237. package/dist/runtime/public/scss/element-plus/option.css +363 -0
  238. package/dist/runtime/public/scss/element-plus/option.scss +84 -0
  239. package/dist/runtime/public/scss/element-plus/overlay.css +316 -0
  240. package/dist/runtime/public/scss/element-plus/overlay.scss +20 -0
  241. package/dist/runtime/public/scss/element-plus/page-header.css +351 -0
  242. package/dist/runtime/public/scss/element-plus/page-header.scss +60 -0
  243. package/dist/runtime/public/scss/element-plus/pagination.css +594 -0
  244. package/dist/runtime/public/scss/element-plus/pagination.scss +255 -0
  245. package/dist/runtime/public/scss/element-plus/popconfirm.css +315 -0
  246. package/dist/runtime/public/scss/element-plus/popconfirm.scss +16 -0
  247. package/dist/runtime/public/scss/element-plus/popover.css +411 -0
  248. package/dist/runtime/public/scss/element-plus/popover.scss +85 -0
  249. package/dist/runtime/public/scss/element-plus/popper.css +405 -0
  250. package/dist/runtime/public/scss/element-plus/popper.scss +127 -0
  251. package/dist/runtime/public/scss/element-plus/progress.css +449 -0
  252. package/dist/runtime/public/scss/element-plus/progress.scss +179 -0
  253. package/dist/runtime/public/scss/element-plus/radio-button.css +435 -0
  254. package/dist/runtime/public/scss/element-plus/radio-button.scss +138 -0
  255. package/dist/runtime/public/scss/element-plus/radio-group.css +311 -0
  256. package/dist/runtime/public/scss/element-plus/radio-group.scss +13 -0
  257. package/dist/runtime/public/scss/element-plus/radio.css +565 -0
  258. package/dist/runtime/public/scss/element-plus/radio.scss +246 -0
  259. package/dist/runtime/public/scss/element-plus/rate.css +384 -0
  260. package/dist/runtime/public/scss/element-plus/rate.scss +108 -0
  261. package/dist/runtime/public/scss/element-plus/reset.css +399 -0
  262. package/dist/runtime/public/scss/element-plus/reset.scss +97 -0
  263. package/dist/runtime/public/scss/element-plus/result.css +381 -0
  264. package/dist/runtime/public/scss/element-plus/result.scss +57 -0
  265. package/dist/runtime/public/scss/element-plus/row.css +339 -0
  266. package/dist/runtime/public/scss/element-plus/row.scss +35 -0
  267. package/dist/runtime/public/scss/element-plus/scrollbar.css +373 -0
  268. package/dist/runtime/public/scss/element-plus/scrollbar.scss +85 -0
  269. package/dist/runtime/public/scss/element-plus/segmented.css +460 -0
  270. package/dist/runtime/public/scss/element-plus/segmented.scss +160 -0
  271. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +354 -0
  272. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.scss +1 -0
  273. package/dist/runtime/public/scss/element-plus/select-dropdown.css +354 -0
  274. package/dist/runtime/public/scss/element-plus/select-dropdown.scss +60 -0
  275. package/dist/runtime/public/scss/element-plus/select-v2.css +852 -0
  276. package/dist/runtime/public/scss/element-plus/select-v2.scss +4 -0
  277. package/dist/runtime/public/scss/element-plus/select.css +852 -0
  278. package/dist/runtime/public/scss/element-plus/select.scss +354 -0
  279. package/dist/runtime/public/scss/element-plus/skeleton-item.css +372 -0
  280. package/dist/runtime/public/scss/element-plus/skeleton-item.scss +83 -0
  281. package/dist/runtime/public/scss/element-plus/skeleton.css +335 -0
  282. package/dist/runtime/public/scss/element-plus/skeleton.scss +39 -0
  283. package/dist/runtime/public/scss/element-plus/slider.css +480 -0
  284. package/dist/runtime/public/scss/element-plus/slider.scss +212 -0
  285. package/dist/runtime/public/scss/element-plus/space.css +317 -0
  286. package/dist/runtime/public/scss/element-plus/space.scss +20 -0
  287. package/dist/runtime/public/scss/element-plus/spinner.css +342 -0
  288. package/dist/runtime/public/scss/element-plus/spinner.scss +43 -0
  289. package/dist/runtime/public/scss/element-plus/statistic.css +336 -0
  290. package/dist/runtime/public/scss/element-plus/statistic.scss +35 -0
  291. package/dist/runtime/public/scss/element-plus/step.css +586 -0
  292. package/dist/runtime/public/scss/element-plus/step.scss +316 -0
  293. package/dist/runtime/public/scss/element-plus/steps.css +319 -0
  294. package/dist/runtime/public/scss/element-plus/steps.scss +21 -0
  295. package/dist/runtime/public/scss/element-plus/sub-menu.css +0 -0
  296. package/dist/runtime/public/scss/element-plus/sub-menu.scss +0 -0
  297. package/dist/runtime/public/scss/element-plus/switch.css +595 -0
  298. package/dist/runtime/public/scss/element-plus/switch.scss +327 -0
  299. package/dist/runtime/public/scss/element-plus/tab-pane.css +0 -0
  300. package/dist/runtime/public/scss/element-plus/tab-pane.scss +0 -0
  301. package/dist/runtime/public/scss/element-plus/table-column.css +382 -0
  302. package/dist/runtime/public/scss/element-plus/table-column.scss +98 -0
  303. package/dist/runtime/public/scss/element-plus/table-v2.css +521 -0
  304. package/dist/runtime/public/scss/element-plus/table-v2.scss +234 -0
  305. package/dist/runtime/public/scss/element-plus/table.css +980 -0
  306. package/dist/runtime/public/scss/element-plus/table.scss +868 -0
  307. package/dist/runtime/public/scss/element-plus/tabs.css +892 -0
  308. package/dist/runtime/public/scss/element-plus/tabs.scss +654 -0
  309. package/dist/runtime/public/scss/element-plus/tag.css +655 -0
  310. package/dist/runtime/public/scss/element-plus/tag.scss +193 -0
  311. package/dist/runtime/public/scss/element-plus/text.css +378 -0
  312. package/dist/runtime/public/scss/element-plus/text.scss +58 -0
  313. package/dist/runtime/public/scss/element-plus/time-picker.css +1029 -0
  314. package/dist/runtime/public/scss/element-plus/time-picker.scss +5 -0
  315. package/dist/runtime/public/scss/element-plus/time-select.css +952 -0
  316. package/dist/runtime/public/scss/element-plus/time-select.scss +37 -0
  317. package/dist/runtime/public/scss/element-plus/timeline-item.css +415 -0
  318. package/dist/runtime/public/scss/element-plus/timeline-item.scss +84 -0
  319. package/dist/runtime/public/scss/element-plus/timeline.css +334 -0
  320. package/dist/runtime/public/scss/element-plus/timeline.scss +46 -0
  321. package/dist/runtime/public/scss/element-plus/tooltip-v2.css +410 -0
  322. package/dist/runtime/public/scss/element-plus/tooltip-v2.scss +86 -0
  323. package/dist/runtime/public/scss/element-plus/tooltip.css +308 -0
  324. package/dist/runtime/public/scss/element-plus/tooltip.scss +15 -0
  325. package/dist/runtime/public/scss/element-plus/tour.css +461 -0
  326. package/dist/runtime/public/scss/element-plus/tour.scss +170 -0
  327. package/dist/runtime/public/scss/element-plus/transfer.css +497 -0
  328. package/dist/runtime/public/scss/element-plus/transfer.scss +204 -0
  329. package/dist/runtime/public/scss/element-plus/tree-select.css +325 -0
  330. package/dist/runtime/public/scss/element-plus/tree-select.scss +38 -0
  331. package/dist/runtime/public/scss/element-plus/tree.css +538 -0
  332. package/dist/runtime/public/scss/element-plus/tree.scss +132 -0
  333. package/dist/runtime/public/scss/element-plus/upload.css +862 -0
  334. package/dist/runtime/public/scss/element-plus/upload.scss +656 -0
  335. package/dist/runtime/public/scss/element-plus/var.css +398 -0
  336. package/dist/runtime/public/scss/element-plus/var.scss +86 -0
  337. package/dist/runtime/public/scss/element-plus/virtual-list.css +330 -0
  338. package/dist/runtime/public/scss/element-plus/virtual-list.scss +40 -0
  339. package/dist/runtime/public/scss/theme.css +1299 -0
  340. package/dist/runtime/public/scss/theme.scss +68 -0
  341. package/dist/runtime/server/tsconfig.json +6 -0
  342. package/dist/runtime/types.d.ts +61 -0
  343. package/dist/types.d.mts +7 -0
  344. package/dist/types.d.ts +7 -0
  345. package/package.json +73 -4
@@ -0,0 +1,1676 @@
1
+ /* Element Chalk Variables */
2
+ @use 'sass:math';
3
+ @use 'sass:map';
4
+
5
+ @use '../mixins/function.scss' as *;
6
+ @use '../../_colors' as *;
7
+
8
+ // Special comment for theme configurator
9
+ // type|skipAutoTranslation|Category|Order
10
+ // skipAutoTranslation 1
11
+
12
+ /**
13
+ Bununla selectorun içerisine variable ekleyebiliyorsun
14
+ .selector{
15
+ // --el-button-text-color: var(--el-color-primary); -> bu eklenir
16
+ @include css-var-from-global(('button-text-color'), ('color-primary'));
17
+
18
+ // bununla property'ye değer atayabilirsin (hiyerarşik alıyor)
19
+ color: getCssVar('colors-neutral-light-2');
20
+
21
+ // bununla da property alınabililyor
22
+ font-size: map.get($select, 'font-size');
23
+ }
24
+ **/
25
+
26
+ // types
27
+ $types: primary, secondary, neutral, success, warning, danger, error, info;
28
+ $semantic: primary, success, info, warning, error;
29
+ $sizes: large, medium, small, mini;
30
+ $variants: 1, 2, 4, 3, 5, 6, 7, 8, 9;
31
+ // Color
32
+ $colors: () !default;
33
+ $colors: map.deep-merge(
34
+ (
35
+ 'white': #ffffff,
36
+ 'black': #000000,
37
+ 'primary': (
38
+ 'base': #5737d6,
39
+ ),
40
+ 'secondary': (
41
+ 'base': #a8a6b1,
42
+ ),
43
+ 'neutral': (
44
+ 'base': #a8a6b1,
45
+ ),
46
+ 'success': (
47
+ 'base': #4cb770,
48
+ ),
49
+ 'warning': (
50
+ 'base': #e8c552,
51
+ ),
52
+ 'danger': (
53
+ 'base': #e3585b,
54
+ ),
55
+ 'error': (
56
+ 'base': #e3585b,
57
+ ),
58
+ 'info': (
59
+ 'base': #3fa1fe,
60
+ ),
61
+ ),
62
+ $colors
63
+ );
64
+
65
+ // $colors: map.deep-merge($theme, $colors);
66
+
67
+ $color-white: map.get($colors, 'white') !default;
68
+ $color-black: map.get($colors, 'black') !default;
69
+ $color-primary: map.get($colors, 'primary', 'base') !default;
70
+ $color-success: map.get($colors, 'success', 'base') !default;
71
+ $color-warning: map.get($colors, 'warning', 'base') !default;
72
+ $color-danger: map.get($colors, 'danger', 'base') !default;
73
+ $color-error: map.get($colors, 'error', 'base') !default;
74
+ $color-info: map.get($colors, 'info', 'base') !default;
75
+ $color-secondary: map.get($colors, 'seconday', 'base') !default;
76
+ $color-neutral: map.get($colors, 'neutral', 'base') !default;
77
+
78
+ // https://sass-lang.com/documentation/values/maps#immutability
79
+ // mix colors with white/black to generate light/dark level
80
+ @mixin set-color-mix-level($type, $number, $mode: 'light', $mix-color: $color-white) {
81
+ $colors: map.deep-merge(
82
+ (
83
+ $type: (
84
+ '#{$mode}-#{$number}': #{map.get($theme, $type, #{$number})},
85
+ // '#{$mode}-#{$number}': mix($mix-color, map.get($colors, $type, 'base'), math.percentage(math.div($number, 10))),
86
+ ),
87
+ ),
88
+ $colors
89
+ ) !global;
90
+ }
91
+
92
+ // $colors.primary.light-i
93
+ // --el-color-primary-light-i
94
+ // 10% 53a8ff
95
+ // 20% 66b1ff
96
+ // 30% 79bbff
97
+ // 40% 8cc5ff
98
+ // 50% a0cfff
99
+ // 60% b3d8ff
100
+ // 70% c6e2ff
101
+ // 80% d9ecff
102
+ // 90% ecf5ff
103
+ @each $type in $types {
104
+ @for $i from 1 through 9 {
105
+ @include set-color-mix-level($type, $i, 'light', $color-white);
106
+ }
107
+ }
108
+
109
+ // --el-color-primary-dark-2
110
+ @each $type in $types {
111
+ @include set-color-mix-level($type, 2, 'dark', $color-black);
112
+ }
113
+
114
+ $text-color: () !default;
115
+ $text-color: map.merge(
116
+ (
117
+ //@TODO: bu primary ve regular ikisi de aynı anda gereksiz gibi, en sonda bunlardan birini tercih edip refactor edeceğim
118
+ 'primary': getCssVar('color', 'neutral', 'light-9'),
119
+ 'regular': getCssVar('color', 'neutral', 'light-9'),
120
+ 'secondary': getCssVar('color', 'neutral', 'light-7'),
121
+ // 'secondary': #909399,
122
+ 'placeholder': getCssVar('color', 'neutral', 'light-4'),
123
+ 'disabled': getCssVar('color', 'neutral', 'light-4'),
124
+ // 'disabled': #c0c4cc,
125
+ ),
126
+ $text-color
127
+ );
128
+
129
+ $border-color: () !default;
130
+ $border-color: map.merge(
131
+ (
132
+ '': getCssVar('color', 'neutral', 'light-4'),
133
+ 'light': getCssVar('color', 'neutral', 'light-2'),
134
+ 'lighter': #ebeef5,
135
+ 'extra-light': #f2f6fc,
136
+ 'dark': #d4d7de,
137
+ 'darker': #cdd0d6,
138
+ ),
139
+ $border-color
140
+ );
141
+
142
+ $fill-color: () !default;
143
+ $fill-color: map.merge(
144
+ (
145
+ '': #f0f2f5,
146
+ 'light': getCssVar('color-neutral-light-1'),
147
+ 'lighter': #fafafa,
148
+ 'extra-light': #fafcff,
149
+ 'dark': #ebedf0,
150
+ 'darker': #e6e8eb,
151
+ 'blank': #ffffff,
152
+ ),
153
+ $fill-color
154
+ );
155
+
156
+ // Background
157
+ $bg-color: () !default;
158
+ $bg-color: map.merge(
159
+ (
160
+ '': #ffffff,
161
+ 'page': #f2f3f5,
162
+ 'overlay': #ffffff,
163
+ ),
164
+ $bg-color
165
+ );
166
+
167
+ // Border
168
+ $border-width: 1px !default;
169
+ $border-style: solid !default;
170
+ $border-color-hover: getCssVar('text-color', 'disabled') !default;
171
+
172
+ $border-radius: () !default;
173
+ $border-radius: map.merge(
174
+ (
175
+ 'tiny': 2px,
176
+ 'small': 4px,
177
+ 'medium': 8px,
178
+ 'large': 16px,
179
+ 'round': 20px,
180
+ 'circle': 100%,
181
+ ),
182
+ $border-radius
183
+ );
184
+
185
+ // Box-shadow
186
+ $box-shadow: () !default;
187
+ $box-shadow: map.merge(
188
+ (
189
+ '': (
190
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
191
+ 0px 8px 20px rgba(0, 0, 0, 0.08),
192
+ ),
193
+ 'light': (
194
+ 0px 1px 2px 0px #1a0b5e1a,
195
+ ),
196
+ 'lighter': (
197
+ 0px 0px 6px rgba(0, 0, 0, 0.12),
198
+ ),
199
+ 'dark': (
200
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
201
+ 0px 12px 32px rgba(0, 0, 0, 0.12),
202
+ 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
203
+ ),
204
+ ),
205
+ $box-shadow
206
+ );
207
+
208
+ // Typography
209
+ $font-family: () !default;
210
+ $font-family: map.merge(
211
+ (
212
+ // default family
213
+ '': "'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
214
+ ),
215
+ $font-family
216
+ );
217
+
218
+ $font-size: () !default;
219
+ $font-size: map.merge(
220
+ (
221
+ 'huge': 18px,
222
+ 'large': 16px,
223
+ 'medium': 14px,
224
+ 'base': 14px,
225
+ 'small': 12px,
226
+ 'mini': 10px,
227
+ 'tiny': 8px,
228
+ ),
229
+ $font-size
230
+ );
231
+
232
+ $line-height: () !default;
233
+ $line-height: map.merge(
234
+ (
235
+ 'huge': 24px,
236
+ 'large': 22px,
237
+ 'medium': 20px,
238
+ 'base': 20px,
239
+ 'small': 16px,
240
+ 'mini': 14px,
241
+ 'tiny': 10px,
242
+ ),
243
+ $line-height
244
+ );
245
+
246
+ // zIndex
247
+ $z-index: () !default;
248
+ $z-index: map.merge(
249
+ (
250
+ 'normal': 1,
251
+ 'top': 1000,
252
+ 'popper': 2000,
253
+ ),
254
+ $z-index
255
+ );
256
+
257
+ // Disable default
258
+ $disabled: () !default;
259
+ $disabled: map.merge(
260
+ (
261
+ 'bg-color': getCssVar('color', 'neutral', 'light-1'),
262
+ 'text-color': getCssVar('color', 'neutral', 'light-4'),
263
+ 'border-color': getCssVar('color', 'neutral', 'light-5'),
264
+ ),
265
+ $disabled
266
+ );
267
+
268
+ $common-component-size: () !default;
269
+ $common-component-size: map.merge(
270
+ (
271
+ 'default': 36px,
272
+ 'large': 40px,
273
+ 'medium': 36px,
274
+ 'small': 32px,
275
+ 'mini': 28px,
276
+ ),
277
+ $common-component-size
278
+ );
279
+
280
+ // overlay
281
+ $overlay-color: () !default;
282
+ $overlay-color: map.merge(
283
+ (
284
+ '': rgba(0, 0, 0, 0.8),
285
+ 'light': rgba(0, 0, 0, 0.7),
286
+ 'lighter': map.get($colors, 'success', 'base'),
287
+ ),
288
+ $overlay-color
289
+ );
290
+
291
+ // mask
292
+ $mask-color: () !default;
293
+ $mask-color: map.merge(
294
+ (
295
+ '': rgba(255, 255, 255, 0.8),
296
+ 'extra-light': rgba(255, 255, 255, 0.3),
297
+ ),
298
+ $mask-color
299
+ );
300
+
301
+ // Components
302
+ // ---
303
+ // Checkbox
304
+ // css3 var in packages/theme-chalk/src/checkbox.scss
305
+ $checkbox: () !default;
306
+ $checkbox: map.merge(
307
+ (
308
+ 'font-size': 14px,
309
+ 'font-weight': 400,
310
+ 'text-color': getCssVar('color-neutral-light-7'),
311
+ 'input-height': 16px,
312
+ 'input-width': 16px,
313
+ 'border-radius': 3px,
314
+ 'bg-color': getCssVar('fill-color', 'blank'),
315
+ 'input-border': 1.5px solid getCssVar('color-neutral-light-4'),
316
+ 'disabled-border-color': getCssVar('color-neutral-light-4'),
317
+ 'disabled-input-fill': getCssVar('fill-color', 'light'),
318
+ 'disabled-icon-color': getCssVar('color-neutral-light-4'),
319
+ 'disabled-checked-input-fill': getCssVar('color-white'),
320
+ 'disabled-checked-input-border-color': getCssVar('border-color'),
321
+ 'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
322
+ 'checked-text-color': getCssVar('color-neutral-light-7'),
323
+ 'checked-input-border-color': getCssVar('color-success-light-5'),
324
+ 'checked-bg-color': getCssVar('color-white'),
325
+ 'checked-icon-color': getCssVar('color-success-light-5'),
326
+ 'input-border-color-hover': getCssVar('color-neutral-light-4'),
327
+ ),
328
+ $checkbox
329
+ );
330
+
331
+ $checkbox-button: () !default;
332
+ $checkbox-button: map.merge(
333
+ (
334
+ 'border-color': getCssVar('color-primary'),
335
+ 'bg-color': getCssVar('color-white'),
336
+ 'text-color': getCssVar('color-primary'),
337
+ 'checked-bg-color': getCssVar('color-primary'),
338
+ 'checked-text-color': getCssVar('color-white'),
339
+ 'checked-border-color': getCssVar('color-primary'),
340
+ 'disabled-border-color': getCssVar('color-primary-light-3'),
341
+ 'disabled-bg-color': getCssVar('color-white'),
342
+ 'disabled-text-color': getCssVar('color-primary-light-3'),
343
+ 'checked-disabled-border-color': getCssVar('color-primary-light-3'),
344
+ 'checked-disabled-bg-color': getCssVar('color-primary-light-1'),
345
+ 'checked-disabled-text-color': getCssVar('color-primary-light-3'),
346
+ ),
347
+ $checkbox-button
348
+ );
349
+
350
+ $checkbox-bordered-padding-left: () !default;
351
+ $checkbox-bordered-padding-left: map.merge(
352
+ (
353
+ 'default': 12px,
354
+ 'large': 12px,
355
+ 'medium': 10px,
356
+ 'small': 8px,
357
+ 'mini': 8px,
358
+ ),
359
+ $checkbox-bordered-padding-left
360
+ );
361
+
362
+ $checkbox-bordered-padding-right: () !default;
363
+ $checkbox-bordered-padding-right: map.merge(
364
+ (
365
+ 'default': 20px,
366
+ 'large': 20px,
367
+ 'medium': 16px,
368
+ 'small': 12px,
369
+ 'mini': 12px,
370
+ ),
371
+ $checkbox-bordered-padding-right
372
+ );
373
+
374
+ // Radio
375
+ /// fontSize||Font|1
376
+ $radio: () !default;
377
+ $radio: map.merge(
378
+ (
379
+ 'font-size': getCssVar('font-size-base'),
380
+ 'text-color': getCssVar('color-neutral-light-7'),
381
+ 'font-weight': 400,
382
+ 'input-height': 14px,
383
+ 'input-width': 14px,
384
+ 'input-border-radius': getCssVar('border-radius-circle'),
385
+ 'input-bg-color': getCssVar('fill-color', 'blank'),
386
+ 'input-border': 1.5px solid getCssVar('color-neutral-light-4'),
387
+ 'input-border-color': getCssVar('color-neutral-light-4'),
388
+ 'input-border-color-hover': getCssVar('color-neutral-light-4'),
389
+ ),
390
+ $radio
391
+ );
392
+
393
+ $radio-height: () !default;
394
+ $radio-height: map.merge($common-component-size, $radio-height);
395
+
396
+ $radio-button: () !default;
397
+ $radio-button: map.merge(
398
+ (
399
+ 'checked-bg-color': getCssVar('color-primary'),
400
+ 'checked-text-color': getCssVar('color-white'),
401
+ 'checked-border-color': getCssVar('color-primary'),
402
+ 'disabled-checked-fill': getCssVar('color-primary-light-1'),
403
+ ),
404
+ $radio-button
405
+ );
406
+
407
+ $radio-disabled: () !default;
408
+ $radio-disabled: map.merge(
409
+ (
410
+ 'input-border-color': getCssVar('color-neutral-light-4'),
411
+ 'input-fill': getCssVar('color-neutral-light-4'),
412
+ 'icon-color': getCssVar('color-neutral-light-4'),
413
+ 'checked-input-border-color': getCssVar('color-neutral-light-4'),
414
+ 'checked-input-fill': getCssVar('color-white'),
415
+ 'checked-icon-color': getCssVar('color-neutral-light-4'),
416
+ ),
417
+ $radio-disabled
418
+ );
419
+
420
+ $radio-checked: () !default;
421
+ $radio-checked: map.merge(
422
+ (
423
+ 'text-color': getCssVar('color-neutral-light-7'),
424
+ 'input-border-color': getCssVar('color-success'),
425
+ 'icon-color': getCssVar('color-success'),
426
+ ),
427
+ $radio-checked
428
+ );
429
+
430
+ $radio-bordered-input-height: () !default;
431
+ $radio-bordered-input-height: map.merge(
432
+ (
433
+ 'default': 16px,
434
+ 'large': 16px,
435
+ 'medium': 14px,
436
+ 'small': 12px,
437
+ 'mini': 12px,
438
+ ),
439
+ $radio-bordered-input-height
440
+ );
441
+
442
+ $radio-bordered-input-width: () !default;
443
+ $radio-bordered-input-width: map.merge($radio-bordered-input-height, $radio-bordered-input-width);
444
+
445
+ // Select
446
+ $select: () !default;
447
+ $select: map.merge(
448
+ (
449
+ 'border-color-hover': getCssVar('border-color-hover'),
450
+ 'disabled-color': getCssVar('disabled-text-color'),
451
+ 'disabled-border': getCssVar('disabled-border-color'),
452
+ 'font-size': getCssVar('font-size-small'),
453
+ 'close-hover-color': getCssVar('text-color-secondary'),
454
+ 'input-color': getCssVar('color-neautral-light-2'),
455
+ 'multiple-input-color': getCssVar('text-color-regular'),
456
+ 'input-focus-border-color': getCssVar('color-primary'),
457
+ 'input-font-size': 14px,
458
+ 'width': 100%,
459
+ 'min-width': 72px,
460
+ ),
461
+ $select
462
+ );
463
+
464
+ $select-option: () !default;
465
+ $select-option: map.merge(
466
+ (
467
+ 'text-color': getCssVar('color', 'neutral', 'light-9'),
468
+ 'disabled-color': getCssVar('disabled-text-color'),
469
+ 'height': 28px,
470
+ 'hover-background': getCssVar('color', 'neutral', 'light-1'),
471
+ 'selected-text-color': getCssVar('color', 'neutral', 'light-9'),
472
+ 'selected-bg-color': getCssVar('color', 'neutral', 'light-2'),
473
+ 'padding': 8px,
474
+ ),
475
+ $select-option
476
+ );
477
+
478
+ $select-group: () !default;
479
+ $select-group: map.merge(
480
+ (
481
+ 'text-color': getCssVar('color-neutral-light-4'),
482
+ 'height': 32px,
483
+ 'font-size': 10px,
484
+ ),
485
+ $select-group
486
+ );
487
+
488
+ $select-dropdown: () !default;
489
+ $select-dropdown: map.merge(
490
+ (
491
+ 'bg-color': getCssVar('bg-color', 'overlay'),
492
+ 'shadow': getCssVar('box-shadow-light'),
493
+ 'empty-color': getCssVar('text-color-secondary'),
494
+ 'max-height': 274px,
495
+ 'padding': 8px,
496
+ 'empty-padding': 10px 0,
497
+ 'header-padding': 10px,
498
+ 'footer-padding': 10px,
499
+ 'border': 1px solid getCssVar('border-color-light'),
500
+ ),
501
+ $select-dropdown
502
+ );
503
+
504
+ $select-wrapper-padding: () !default;
505
+ $select-wrapper-padding: map.merge(
506
+ (
507
+ 'default': 8px,
508
+ 'large': 10px,
509
+ 'medium': 8px,
510
+ 'small': 6px,
511
+ 'mini': 5px,
512
+ ),
513
+ $select-wrapper-padding
514
+ );
515
+
516
+ $select-near-margin-left: () !default;
517
+ $select-near-margin-left: map.merge(
518
+ (
519
+ 'default': 0 -3px,
520
+ 'large': 0,
521
+ 'medium': 0 -3px,
522
+ 'small': 0 -6px,
523
+ 'mini': 0 -7px,
524
+ ),
525
+ $select-near-margin-left
526
+ );
527
+
528
+ $select-item-gap: () !default;
529
+ $select-item-gap: map.merge(
530
+ (
531
+ 'default': 8px,
532
+ 'large': 8px,
533
+ 'medium': 8px,
534
+ 'small': 4px,
535
+ 'mini': 4px,
536
+ ),
537
+ $select-item-gap
538
+ );
539
+
540
+ // the same height of el-tag
541
+ $select-item-height: () !default;
542
+ $select-item-height: map.merge(
543
+ (
544
+ 'large': 20px,
545
+ 'default': 20px,
546
+ 'medium': 20px,
547
+ 'small': 20px,
548
+ ),
549
+ $select-item-height
550
+ );
551
+
552
+ // Alert
553
+ // css3 var in packages/theme-chalk/src/alert.scss
554
+ $alert: () !default;
555
+ $alert: map.merge(
556
+ (
557
+ 'padding': 8px 16px,
558
+ 'border-radius': getCssVar('border-radius-small'),
559
+ 'border-color': getCssVar('color', 'info-light-3'),
560
+ 'title-font-size': 12px,
561
+ 'title-with-description-font-size': 12px,
562
+ 'description-font-size': 10px,
563
+ 'close-font-size': 12px,
564
+ 'close-customed-font-size': 12px,
565
+ 'icon-size': 12px,
566
+ 'icon-large-size': 32px,
567
+ ),
568
+ $alert
569
+ );
570
+
571
+ // MessageBox
572
+ // css3 var in packages/theme-chalk/src/message-box.scss
573
+ $messagebox: () !default;
574
+ $messagebox: map.merge(
575
+ (
576
+ 'title-color': getCssVar('text-color-primary'),
577
+ 'width': 420px,
578
+ 'border-radius': getCssVar('border-radius-medium'),
579
+ 'box-shadow': getCssVar('box-shadow'),
580
+ 'title-font-size': getCssVar('font-size-large'),
581
+ 'content-font-size': getCssVar('font-size-small'),
582
+ 'content-color': getCssVar('color', 'neutral-light-7'),
583
+ 'error-font-size': 12px,
584
+ 'padding-primary': 24px,
585
+ 'font-line-height': getCssVar('font-line-height-primary'),
586
+ ),
587
+ $messagebox
588
+ );
589
+
590
+ // Message
591
+ // css3 var in packages/theme-chalk/src/message.scss
592
+ $message: () !default;
593
+ $message: map.merge(
594
+ (
595
+ 'bg-color': getCssVar('color', 'primary', 'light-1'),
596
+ 'border-color': getCssVar('color', 'primary-light-3'),
597
+ 'padding': 8px 11px 8px 16px,
598
+ 'font-size': 12px,
599
+ 'close-size': 12px,
600
+ 'close-icon-color': getCssVar('color', 'primary-light-5'),
601
+ 'close-hover-color': getCssVar('color', 'primary-light-4'),
602
+ 'text-color': getCssVar('color', 'primary-light-5'),
603
+ ),
604
+ $message
605
+ );
606
+
607
+ // Notification
608
+ // css3 var in packages/theme-chalk/src/notification.scss
609
+ $notification: () !default;
610
+ $notification: map.merge(
611
+ (
612
+ 'width': 330px,
613
+ 'padding': 12px 26px 12px 16px,
614
+ 'radius': 4px,
615
+ 'shadow': getCssVar('box-shadow-light'),
616
+ 'border-color': getCssVar('color-neutral-light-3'),
617
+ 'icon-size': 24px,
618
+ 'close-font-size': var(#{getCssVarName('message-close-size')}, map.get($message, 'close-size')),
619
+ 'group-margin-left': 13px,
620
+ 'group-margin-right': 8px,
621
+ 'content-font-size': getCssVar('font-size-small'),
622
+ 'content-font-line-height': getCssVar('line-height-medium'),
623
+ 'content-color': getCssVar('color-neutral-light-7'),
624
+ 'title-font-size': 14px,
625
+ 'title-color': getCssVar('color-neutral-light-9'),
626
+ 'close-color': getCssVar('text-color-secondary'),
627
+ 'close-hover-color': getCssVar('text-color-regular'),
628
+ ),
629
+ $notification
630
+ );
631
+
632
+ // Input
633
+ // css3 var in packages/theme-chalk/src/input.scss
634
+ $input: () !default;
635
+ $input: map.merge(
636
+ (
637
+ 'text-color': getCssVar('text-color-regular'),
638
+ 'border': getCssVar('border'),
639
+ 'hover-border': getCssVar('border-color-hover'),
640
+ 'focus-border': getCssVar('color-primary'),
641
+ 'transparent-border': 0 0 0 1px transparent inset,
642
+ 'border-color': getCssVar('border-color'),
643
+ 'border-radius': getCssVar('border-radius-small'),
644
+ 'bg-color': getCssVar('fill-color', 'blank'),
645
+ 'icon-color': getCssVar('color', 'neutral', 'light-9'),
646
+ 'placeholder-color': getCssVar('text-color-placeholder'),
647
+ 'hover-border-color': getCssVar('color', 'primary', 'light-5'),
648
+ 'clear-hover-color': getCssVar('color', 'primary', 'light-5'),
649
+ 'focus-border-color': getCssVar('color', 'primary', 'light-5'),
650
+ 'width': 100%,
651
+ 'box-shadow': 0 3px 0 0 rgba(213, 205, 245, 0.4),
652
+ ),
653
+ $input
654
+ );
655
+
656
+ $input-disabled: () !default;
657
+ $input-disabled: map.merge(
658
+ (
659
+ 'fill': getCssVar('disabled-bg-color'),
660
+ 'border': getCssVar('disabled-border-color'),
661
+ 'text-color': getCssVar('disabled-text-color'),
662
+ 'placeholder-color': getCssVar('text-color-placeholder'),
663
+ ),
664
+ $input-disabled
665
+ );
666
+
667
+ $input-font-size: () !default;
668
+ $input-font-size: map.merge(
669
+ (
670
+ 'large': 14px,
671
+ 'default': 14px,
672
+ 'medium': 14px,
673
+ 'small': 12px,
674
+ 'mini': 12px,
675
+ ),
676
+ $input-font-size
677
+ );
678
+
679
+ $input-height: () !default;
680
+ $input-height: map.merge($common-component-size, $input-height);
681
+
682
+ $input-line-height: () !default;
683
+ $input-line-height: map.merge($common-component-size, $input-line-height);
684
+
685
+ $input-number-width: () !default;
686
+ $input-number-width: map.merge(
687
+ (
688
+ 'large': 180px,
689
+ 'default': 150px,
690
+ 'medium': 150px,
691
+ 'small': 120px,
692
+ 'mini': 120px,
693
+ ),
694
+ $input-number-width
695
+ );
696
+
697
+ $input-padding-horizontal: () !default;
698
+ $input-padding-horizontal: map.merge(
699
+ (
700
+ 'default': 16px,
701
+ 'large': 16px,
702
+ 'medium': 16px,
703
+ 'small': 16px,
704
+ 'mini': 16px,
705
+ ),
706
+ $input-padding-horizontal
707
+ );
708
+
709
+ // Cascader
710
+ // css3 var in packages/theme-chalk/src/cascader.scss
711
+ $cascader: () !default;
712
+ $cascader: map.merge(
713
+ (
714
+ 'menu-text-color': getCssVar('text-color-regular'),
715
+ 'menu-selected-text-color': getCssVar('color-primary'),
716
+ 'menu-fill': getCssVar('bg-color', 'overlay'),
717
+ 'menu-font-size': getCssVar('font-size-base'),
718
+ 'menu-radius': getCssVar('border-radius-small'),
719
+ 'menu-border': solid 1px getCssVar('border-color-light'),
720
+ 'menu-shadow': getCssVar('box-shadow-light'),
721
+ 'node-background-hover': getCssVar('fill-color', 'light'),
722
+ 'node-color-disabled': getCssVar('text-color-placeholder'),
723
+ 'color-empty': getCssVar('text-color-placeholder'),
724
+ 'tag-background': getCssVar('fill-color'),
725
+ ),
726
+ $cascader
727
+ );
728
+ //statistic
729
+ // css3 var in packages/theme-chalk/src/statistic.scss
730
+ $statistic: () !default;
731
+ $statistic: map.merge(
732
+ (
733
+ 'title-font-weight': 400,
734
+ 'title-font-size': getCssVar('font-size', 'tiny'),
735
+ 'title-color': getCssVar('text-color', 'regular'),
736
+ 'content-font-weight': 400,
737
+ 'content-font-size': getCssVar('font-size', 'huge'),
738
+ 'content-color': getCssVar('text-color', 'primary'),
739
+ ),
740
+ $statistic
741
+ );
742
+ // Button
743
+ // css3 var in packages/theme-chalk/src/button.scss
744
+ $button: () !default;
745
+ $button: map.merge(
746
+ (
747
+ 'font-weight': getCssVar('font-weight-primary'),
748
+ 'border-color': getCssVar('color', 'primary', 'light-5'),
749
+ 'bg-color': getCssVar('color', 'primary', 'light-5'),
750
+ 'text-color': getCssVar('color', 'white'),
751
+ 'disabled-text-color': getCssVar('color', 'white'),
752
+ 'disabled-bg-color': getCssVar('color-primary', 'light-1'),
753
+ 'disabled-border-color': getCssVar('color-primary', 'light-1'),
754
+ 'divide-border-color': getCssVar('color-primary', 'light-4'),
755
+ 'hover-text-color': getCssVar('color', 'white'),
756
+ 'hover-bg-color': getCssVar('color-primary', 'light-4'),
757
+ 'hover-border-color': getCssVar('color-primary-light-4'),
758
+ 'active-text-color': getCssVar('button-hover-text-color'),
759
+ 'active-border-color': getCssVar('color-primary', 'light-6'),
760
+ 'active-bg-color': getCssVar('color-primary', 'light-6'),
761
+ 'outline-color': getCssVar('color-primary', 'light-6'),
762
+ 'hover-link-text-color': getCssVar('color-primary'),
763
+ 'active-color': getCssVar('text-color', 'primary'),
764
+ ),
765
+ $button
766
+ );
767
+
768
+ $button-border-width: $border-width !default;
769
+
770
+ // need mix, so do not use css var
771
+ $button-hover-tint-percent: 20%;
772
+ $button-active-shade-percent: 10%;
773
+
774
+ $button-border-color: () !default;
775
+ $button-bg-color: () !default;
776
+ $button-text-color: () !default;
777
+
778
+ @each $type in $types {
779
+ $button-border-color: map.merge(
780
+ (
781
+ $type: map.get($colors, $type, 'base'),
782
+ ),
783
+ $button-border-color
784
+ ) !global;
785
+
786
+ $button-bg-color: map.merge(
787
+ (
788
+ $type: map.get($colors, $type, 'base'),
789
+ ),
790
+ $button-bg-color
791
+ ) !global;
792
+ }
793
+
794
+ $button-font-size: () !default;
795
+ $button-font-size: map.merge(
796
+ (
797
+ 'large': map.get($font-size, 'medium'),
798
+ 'default': map.get($font-size, 'medium'),
799
+ 'medium': map.get($font-size, 'medium'),
800
+ 'small': map.get($font-size, 'small'),
801
+ 'mini': map.get($font-size, 'small'),
802
+ ),
803
+ $button-font-size
804
+ );
805
+
806
+ $button-border-radius: () !default;
807
+ $button-border-radius: map.merge(
808
+ (
809
+ // 'default': getCssVar('border-radius-small'),
810
+ // 'small': calc(#{getCssVar('border-radius-small')} - 1px),
811
+ 'default': getCssVar('border-radius-small'),
812
+ 'large': getCssVar('border-radius-small'),
813
+ 'medium': 4px,
814
+ 'small': 4px,
815
+ 'mini': 4px
816
+ ),
817
+ $button-border-radius
818
+ );
819
+
820
+ $button-padding-vertical: () !default;
821
+ $button-padding-vertical: map.merge(
822
+ (
823
+ 'default': 13px,
824
+ 'large': 13px,
825
+ 'medium': 9px,
826
+ 'small': 6px,
827
+ 'mini': 6px,
828
+ ),
829
+ $button-padding-vertical
830
+ );
831
+
832
+ $button-padding-horizontal: () !default;
833
+ $button-padding-horizontal: map.merge(
834
+ (
835
+ 'default': 16px,
836
+ 'large': 16px,
837
+ 'medium': 16px,
838
+ 'small': 16px,
839
+ 'mini': 12px,
840
+ ),
841
+ $button-padding-horizontal
842
+ );
843
+
844
+ // Switch
845
+ // css3 var in packages/theme-chalk/src/switch.scss
846
+ $switch: () !default;
847
+ $switch: map.merge(
848
+ (
849
+ 'on-color': getCssVar('color-success'),
850
+ 'on-box-shadow': 0 0 0 4px getCssVar('color-success-light-2'),
851
+ 'off-box-shadow': 0 0 0 4px getCssVar('color-neutral-light-3'),
852
+ 'off-color': getCssVar('color-neutral-light-7'),
853
+ 'on-disabled-color': getCssVar('color-neutral-light-3'),
854
+ 'off-disabled-color': getCssVar('color-success-light-3'),
855
+ ),
856
+ $switch
857
+ );
858
+
859
+ // Dialog
860
+ // css3 var in packages/theme-chalk/src/dialog.scss
861
+ $dialog: () !default;
862
+ $dialog: map.merge(
863
+ (
864
+ 'width': 630px,
865
+ 'margin-top': 15vh,
866
+ 'bg-color': getCssVar('bg-color'),
867
+ 'box-shadow': getCssVar('box-shadow'),
868
+ 'title-font-size': 18px,
869
+ 'title-line-height': 22px,
870
+ 'content-font-size': 12px,
871
+ 'content-line-height': 22px,
872
+ 'padding-primary': 24px,
873
+ 'border-radius': 8px,
874
+ 'padding-bottom': 16px,
875
+ ),
876
+ $dialog
877
+ );
878
+
879
+ // Tour
880
+ // css3 var in packages/theme-chalk/src/tour.scss
881
+ $tour: () !default;
882
+ $tour: map.merge(
883
+ (
884
+ 'width': 520px,
885
+ 'padding-primary': 12px,
886
+ 'font-line-height': getCssVar('font-line-height-primary'),
887
+ 'title-font-size': 16px,
888
+ 'title-text-color': getCssVar('text-color-primary'),
889
+ 'title-font-weight': 400,
890
+ 'close-color': getCssVar('color-info'),
891
+ 'font-size': 14px,
892
+ 'color': getCssVar('text-color-primary'),
893
+ 'bg-color': getCssVar('bg-color'),
894
+ 'border-radius': getCssVar('border-radius-medium'),
895
+ ),
896
+ $tour
897
+ );
898
+
899
+ // Anchor
900
+ // css3 var in packages/theme-chalk/src/anchor.scss
901
+ $anchor: () !default;
902
+ $anchor: map.merge(
903
+ (
904
+ 'bg-color': getCssVar('bg-color'),
905
+ 'padding-indent': 14px,
906
+ 'line-height': 22px,
907
+ 'font-size': 12px,
908
+ 'color': getCssVar('text-color-secondary'),
909
+ 'active-color': getCssVar('color-primary'),
910
+ 'marker-bg-color': getCssVar('color-primary'),
911
+ ),
912
+ $anchor
913
+ );
914
+
915
+ // Segmented
916
+ // css3 var in packages/theme-chalk/src/segmented.scss
917
+ $segmented: () !default;
918
+ $segmented: map.merge(
919
+ (
920
+ 'color': getCssVar('text-color', 'regular'),
921
+ 'bg-color': getCssVar('fill-color', 'light'),
922
+ 'padding': 2px,
923
+ 'item-selected-color': getCssVar('color-white'),
924
+ 'item-selected-bg-color': getCssVar('color-primary'),
925
+ 'item-selected-disabled-bg-color': getCssVar('color-primary', 'light-5'),
926
+ 'item-hover-color': getCssVar('text-color', 'primary'),
927
+ 'item-hover-bg-color': getCssVar('fill-color', 'dark'),
928
+ 'item-active-bg-color': getCssVar('fill-color', 'darker'),
929
+ 'item-disabled-color': getCssVar('text-color', 'placeholder'),
930
+ ),
931
+ $segmented
932
+ );
933
+
934
+ // Mention
935
+ // css3 var in packages/theme-chalk/src/mention.scss
936
+ $mention: () !default;
937
+ $mention: map.merge(
938
+ (
939
+ 'font-size': getCssVar('font-size-base'),
940
+ 'bg-color': getCssVar('bg-color', 'overlay'),
941
+ 'shadow': getCssVar('box-shadow-light'),
942
+ 'border': 1px solid getCssVar('border-color-light'),
943
+ 'option-color': getCssVar('text-color-regular'),
944
+ 'option-height': 34px,
945
+ 'option-min-width': 100px,
946
+ 'option-hover-background': getCssVar('fill-color', 'light'),
947
+ 'option-selected-color': getCssVar('color-primary'),
948
+ 'option-disabled-color': getCssVar('text-color-placeholder'),
949
+ 'option-loading-color': getCssVar('text-color-secondary'),
950
+ 'option-loading-padding': 10px 0,
951
+ 'max-height': 174px,
952
+ 'padding': 6px 0,
953
+ 'header-padding': 10px,
954
+ 'footer-padding': 10px,
955
+ ),
956
+ $mention
957
+ );
958
+
959
+ // Table
960
+ // css3 var in packages/theme-chalk/src/table.scss
961
+ $table: () !default;
962
+ $table: map.merge(
963
+ (
964
+ 'border-color': getCssVar('color-neutral-light-2'),
965
+ 'border': 1px solid getCssVar('table-border-color'),
966
+ 'text-color': getCssVar('color-neutral-light-6'),
967
+ 'header-text-color': getCssVar('color-neutral-light-9'),
968
+ 'row-hover-bg-color': getCssVar('color-white'),
969
+ 'current-row-bg-color': getCssVar('color-primary-light-9'),
970
+ 'header-bg-color': getCssVar('bg-color'),
971
+ 'fixed-box-shadow': getCssVar('box-shadow', 'light'),
972
+ 'bg-color': getCssVar('fill-color', 'blank'),
973
+ 'tr-bg-color': getCssVar('bg-color'),
974
+ 'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
975
+ 'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
976
+ 'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
977
+ 'index': getCssVar('index-normal'),
978
+ 'font-weight-body': 400,
979
+ 'font-weight-head': 400,
980
+ 'font-size': 12px,
981
+ ),
982
+ $table
983
+ );
984
+
985
+ $table-font-size: () !default;
986
+ $table-font-size: map.merge(
987
+ (
988
+ 'large': getCssVar('font-size', 'base'),
989
+ 'default': 14px,
990
+ 'medium': 13px,
991
+ 'small': 12px,
992
+ 'mini': 12px,
993
+ ),
994
+ $table-font-size
995
+ );
996
+
997
+ $table-padding: () !default;
998
+ $table-padding: map.merge(
999
+ (
1000
+ 'large': 12px 0,
1001
+ 'default': 8px 0,
1002
+ 'small': 4px 0,
1003
+ 'mini': 2px 0,
1004
+ ),
1005
+ $table-padding
1006
+ );
1007
+
1008
+ $table-cell-padding: () !default;
1009
+ $table-cell-padding: map.merge(
1010
+ (
1011
+ 'large': 0 16px,
1012
+ 'default': 0 12px,
1013
+ 'small': 0 8px,
1014
+ 'mini': 0 4px,
1015
+ ),
1016
+ $table-cell-padding
1017
+ );
1018
+
1019
+ // Pagination
1020
+ // css3 var in packages/theme-chalk/src/pagination.scss
1021
+ $pagination: () !default;
1022
+ $pagination: map.merge(
1023
+ (
1024
+ 'font-size': 12px,
1025
+ 'bg-color': getCssVar('fill-color', 'blank'),
1026
+ 'text-color': getCssVar('color-neutral-light-6'),
1027
+ 'border-radius': 2px,
1028
+ 'button-color': getCssVar('color-neutral-light-6'),
1029
+ 'button-width': 24px,
1030
+ 'button-height': 24px,
1031
+ 'select-height': 20px,
1032
+ 'button-disabled-color': getCssVar('text-color-placeholder'),
1033
+ 'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
1034
+ 'button-bg-color': getCssVar('fill-color'),
1035
+ 'hover-color': getCssVar('color-primary'),
1036
+ 'font-size-small': 12px,
1037
+ 'button-width-small': 24px,
1038
+ 'button-height-small': 28px,
1039
+ 'button-width-large': 40px,
1040
+ 'button-height-large': 28px,
1041
+ 'item-gap': 16px,
1042
+ 'width': 100%,
1043
+ ),
1044
+ $pagination
1045
+ );
1046
+
1047
+ // Popup
1048
+ // css3 var in packages/theme-chalk/src/popup.scss
1049
+ $popup: () !default;
1050
+ $popup: map.merge(
1051
+ (
1052
+ 'modal-bg-color': getCssVar('color-black'),
1053
+ 'modal-opacity': 0.5,
1054
+ ),
1055
+ $popup
1056
+ );
1057
+
1058
+ // Popover
1059
+ // css3 var in packages/theme-chalk/src/popover.scss
1060
+ $popover: () !default;
1061
+ $popover: map.merge(
1062
+ (
1063
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1064
+ 'font-size': getCssVar('font-size-small'),
1065
+ 'border-color': getCssVar('border-color-lighter'),
1066
+ 'padding': 12px,
1067
+ 'padding-large': 18px 20px,
1068
+ 'title-font-size': 14px,
1069
+ 'title-text-color': getCssVar('text-color-regular'),
1070
+ 'border-radius': 6px,
1071
+ 'text-color': getCssVar('text-color-secondary'),
1072
+ ),
1073
+ $popover
1074
+ );
1075
+
1076
+ // popper
1077
+ // Pay attention to the difference between 'popper' and 'popover'
1078
+ $popper: () !default;
1079
+ $popper: map.merge(
1080
+ (
1081
+ 'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
1082
+ 'border-color': getCssVar('color-neutral-light-2'),
1083
+ ),
1084
+ $popper
1085
+ );
1086
+
1087
+ // skeleton
1088
+ $skeleton: () !default;
1089
+ $skeleton: map.merge(
1090
+ (
1091
+ 'color': getCssVar('fill-color'),
1092
+ 'to-color': getCssVar('fill-color', 'darker'),
1093
+ ),
1094
+ $skeleton
1095
+ );
1096
+
1097
+ // Tag
1098
+ // css3 var in packages/theme-chalk/src/tag.scss
1099
+ $tag: () !default;
1100
+ $tag: map.merge(
1101
+ (
1102
+ 'font-size': 10px,
1103
+ 'border-radius': 2px,
1104
+ 'border-radius-rounded': 9999px,
1105
+ ),
1106
+ $tag
1107
+ );
1108
+
1109
+ $tag-height: () !default;
1110
+ $tag-height: map.merge(
1111
+ (
1112
+ 'default': 16px,
1113
+ 'large': 28px,
1114
+ 'medium': 24px,
1115
+ 'small': 20px,
1116
+ 'mini': 16px,
1117
+ ),
1118
+ $tag-height
1119
+ );
1120
+
1121
+ $tag-padding: () !default;
1122
+ $tag-padding: map.merge(
1123
+ (
1124
+ 'default': 8px,
1125
+ 'large': 8px,
1126
+ 'medium': 8px,
1127
+ 'small': 8px,
1128
+ 'mini': 8px,
1129
+ ),
1130
+ $tag-padding
1131
+ );
1132
+
1133
+ $tag-icon-size: () !default;
1134
+ $tag-icon-size: map.merge(
1135
+ (
1136
+ 'default': 10px,
1137
+ 'large': 10px,
1138
+ 'medium': 10px,
1139
+ 'small': 10px,
1140
+ 'mini': 10px,
1141
+ ),
1142
+ $tag-icon-size
1143
+ );
1144
+
1145
+ // Text
1146
+ // css3 var in packages/theme-chalk/src/text.scss
1147
+ $text: () !default;
1148
+ $text: map.merge(
1149
+ (
1150
+ 'font-size': getCssVar('font-size', 'base'),
1151
+ 'color': getCssVar('text-color', 'regular'),
1152
+ ),
1153
+ $text
1154
+ );
1155
+
1156
+ $text-font-size: () !default;
1157
+ $text-font-size: map.merge(
1158
+ (
1159
+ 'default': getCssVar('font-size', 'large'),
1160
+ 'large': getCssVar('font-size', 'large'),
1161
+ 'medium': getCssVar('font-size', 'medium'),
1162
+ 'small': getCssVar('font-size', 'small'),
1163
+ 'mini': getCssVar('font-size', 'mini'),
1164
+ ),
1165
+ $text-font-size
1166
+ );
1167
+
1168
+ // Tree
1169
+ // css3 var in packages/theme-chalk/src/tree.scss
1170
+ $tree: () !default;
1171
+ $tree: map.merge(
1172
+ (
1173
+ 'node-content-height': 26px,
1174
+ 'node-hover-bg-color': getCssVar('fill-color', 'light'),
1175
+ 'text-color': getCssVar('text-color-regular'),
1176
+ 'expand-icon-color': getCssVar('text-color-placeholder'),
1177
+ ),
1178
+ $tree
1179
+ );
1180
+
1181
+ // Dropdown
1182
+ $dropdown: () !default;
1183
+ $dropdown: map.merge(
1184
+ (
1185
+ 'menu-box-shadow': getCssVar('box-shadow-light'),
1186
+ 'menuItem-hover-fill': getCssVar('color-neutral-light-1'),
1187
+ 'menuItem-hover-color': getCssVar('color-neutral-light-9'),
1188
+ 'menu-index': 10,
1189
+ ),
1190
+ $dropdown
1191
+ );
1192
+
1193
+ // drawer
1194
+ $drawer: () !default;
1195
+ $drawer: map.merge(
1196
+ (
1197
+ 'bg-color': var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
1198
+ 'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
1199
+ ),
1200
+ $drawer
1201
+ );
1202
+
1203
+ // Badge
1204
+ // css3 var in packages/theme-chalk/src/badge.scss
1205
+ $badge: () !default;
1206
+ $badge: map.merge(
1207
+ (
1208
+ 'bg-color': getCssVar('color-danger'),
1209
+ 'radius': 10px,
1210
+ 'font-size': 8px,
1211
+ 'padding': 6px,
1212
+ 'size': 16px,
1213
+ ),
1214
+ $badge
1215
+ );
1216
+
1217
+ // Card
1218
+ $card: () !default;
1219
+ $card: map.merge(
1220
+ (
1221
+ 'border-color': getCssVar('color-neutral-light-3'),
1222
+ 'border-radius': 4px,
1223
+ 'padding': 16px,
1224
+ 'bg-color': getCssVar('fill-color', 'blank'),
1225
+ ),
1226
+ $card
1227
+ );
1228
+
1229
+ // Slider
1230
+ // css3 var in packages/theme-chalk/src/slider.scss
1231
+ $slider: () !default;
1232
+ $slider: map.merge(
1233
+ (
1234
+ 'main-bg-color': getCssVar('color-primary'),
1235
+ 'runway-bg-color': getCssVar('border-color-light'),
1236
+ 'stop-bg-color': getCssVar('color-white'),
1237
+ 'disabled-color': getCssVar('text-color-placeholder'),
1238
+ 'border-radius': 3px,
1239
+ 'height': 6px,
1240
+ 'button-size': 20px,
1241
+ 'button-wrapper-size': 36px,
1242
+ 'button-wrapper-offset': -15px,
1243
+ ),
1244
+ $slider
1245
+ );
1246
+
1247
+ // Menu
1248
+ // css3 var in packages/theme-chalk/src/menu.scss
1249
+ $menu: () !default;
1250
+ $menu: map.merge(
1251
+ (
1252
+ 'active-color': getCssVar('color-white'),
1253
+ 'active-bg-color': getCssVar('color-primary-light-5'),
1254
+ 'text-color': getCssVar('color-neutral-light-9'),
1255
+ 'hover-text-color': getCssVar('color-primary'),
1256
+ 'bg-color': getCssVar('color-white'),
1257
+ 'hover-bg-color': getCssVar('color', 'neutral', 'light-1'),
1258
+ 'pressed-bg-color': getCssVar('color', 'neutral', 'light-2'),
1259
+ 'item-height': 36px,
1260
+ 'sub-item-height': calc(#{getCssVar('menu-item-height')} - 0px),
1261
+ 'horizontal-height': 60px,
1262
+ 'horizontal-sub-item-height': 36px,
1263
+ 'item-font-size': getCssVar('font-size-base'),
1264
+ 'item-hover-fill': getCssVar('color-primary-light-9'),
1265
+ 'border-color': getCssVar('border-color'),
1266
+ 'base-level-padding': 8px,
1267
+ 'level-padding': 20px,
1268
+ 'icon-width': 16px,
1269
+ 'icon-color': getCssVar('color-neutral-light-5'),
1270
+ 'border-radius': 4px,
1271
+ 'items-gap': 6px,
1272
+ ),
1273
+ $menu
1274
+ );
1275
+
1276
+ // Rate
1277
+ $rate: () !default;
1278
+ $rate: map.merge(
1279
+ (
1280
+ 'height': 20px,
1281
+ 'font-size': getCssVar('font-size-base'),
1282
+ 'icon-size': 18px,
1283
+ 'icon-margin': 6px,
1284
+ // seems not be used, to be removed
1285
+ // 'icon-color': getCssVar('text-color-placeholder),
1286
+ 'void-color': getCssVar('border-color', 'darker'),
1287
+ 'fill-color': #f7ba2a,
1288
+ 'disabled-void-color': getCssVar('fill-color'),
1289
+ 'text-color': getCssVar('text-color', 'primary'),
1290
+ ),
1291
+ $rate
1292
+ );
1293
+
1294
+ // DatePicker
1295
+ // css3 var packages/theme-chalk/src/date-picker/var.scss
1296
+ $datepicker: () !default;
1297
+ $datepicker: map.merge(
1298
+ (
1299
+ 'text-color': getCssVar('text-color-regular'),
1300
+ 'off-text-color': getCssVar('text-color-placeholder'),
1301
+ 'header-text-color': getCssVar('color-neutral-light-4'),
1302
+ 'icon-color': getCssVar('color-neutral-light-4'),
1303
+ 'border-color': getCssVar('disabled-border-color'),
1304
+ 'inner-border-color': getCssVar('border-color-light'),
1305
+ 'inrange-bg-color': getCssVar('color-primary-light-1'),
1306
+ 'inrange-hover-bg-color': getCssVar('color-primary-light-1'),
1307
+ 'active-color': getCssVar('color-primary'),
1308
+ 'hover-text-color': getCssVar('color-primary'),
1309
+ ),
1310
+ $datepicker
1311
+ );
1312
+
1313
+ $date-editor: () !default;
1314
+ $date-editor: map.merge(
1315
+ (
1316
+ 'width': 100%,
1317
+ 'monthrange-width': 100%,
1318
+ 'daterange-width': 100%,
1319
+ 'datetimerange-width': 100%,
1320
+ ),
1321
+ $date-editor
1322
+ );
1323
+
1324
+ // Loading
1325
+ // css3 var in packages/theme-chalk/src/loading.scss
1326
+ $loading: () !default;
1327
+ $loading: map.merge(
1328
+ (
1329
+ 'spinner-size': 42px,
1330
+ 'fullscreen-spinner-size': 50px,
1331
+ ),
1332
+ $loading
1333
+ );
1334
+
1335
+ // Scrollbar
1336
+ // css3 var in packages/theme-chalk/src/scrollbar.scss
1337
+ $scrollbar: () !default;
1338
+ $scrollbar: map.merge(
1339
+ (
1340
+ 'opacity': 0.3,
1341
+ 'bg-color': getCssVar('text-color-secondary'),
1342
+ 'hover-opacity': 0.5,
1343
+ 'hover-bg-color': getCssVar('text-color-secondary'),
1344
+ ),
1345
+ $scrollbar
1346
+ );
1347
+
1348
+ // Carousel
1349
+ // css3 var in packages/theme-chalk/src/carousel.scss
1350
+ $carousel: () !default;
1351
+ $carousel: map.merge(
1352
+ (
1353
+ 'arrow-font-size': 12px,
1354
+ 'arrow-size': 36px,
1355
+ 'arrow-background': rgba(31, 45, 61, 0.11),
1356
+ 'arrow-hover-background': rgba(31, 45, 61, 0.23),
1357
+ 'indicator-width': 30px,
1358
+ 'indicator-height': 2px,
1359
+ 'indicator-padding-horizontal': 4px,
1360
+ 'indicator-padding-vertical': 12px,
1361
+ 'indicator-out-color': getCssVar('border-color-hover'),
1362
+ ),
1363
+ $carousel
1364
+ );
1365
+
1366
+ // Collapse
1367
+ // css3 var in packages/theme-chalk/src/collapse.scss
1368
+ $collapse: () !default;
1369
+ $collapse: map.merge(
1370
+ (
1371
+ 'border-color': getCssVar('border-color-lighter'),
1372
+ 'header-height': 48px,
1373
+ 'header-bg-color': getCssVar('fill-color', 'blank'),
1374
+ 'header-text-color': getCssVar('text-color-primary'),
1375
+ 'header-font-size': 13px,
1376
+ 'content-bg-color': getCssVar('fill-color', 'blank'),
1377
+ 'content-font-size': 13px,
1378
+ 'content-text-color': getCssVar('text-color-primary'),
1379
+ ),
1380
+ $collapse
1381
+ );
1382
+
1383
+ // Transfer
1384
+ // css3 var in packages/theme-chalk/src/transfer.scss
1385
+ $transfer: () !default;
1386
+ $transfer: map.merge(
1387
+ (
1388
+ 'border-color': getCssVar('border-color-lighter'),
1389
+ 'border-radius': getCssVar('border-radius-small'),
1390
+ 'panel-width': 200px,
1391
+ 'panel-header-height': 40px,
1392
+ 'panel-header-bg-color': getCssVar('fill-color', 'light'),
1393
+ 'panel-footer-height': 40px,
1394
+ 'panel-body-height': 278px,
1395
+ 'item-height': 30px,
1396
+ 'filter-height': 32px,
1397
+ ),
1398
+ $transfer
1399
+ );
1400
+
1401
+ // Timeline
1402
+ // css3 var in packages/theme-chalk/src/timeline-item.scss
1403
+ $timeline: () !default;
1404
+ $timeline: map.merge(
1405
+ (
1406
+ 'node-size-normal': 12px,
1407
+ 'node-size-large': 14px,
1408
+ 'node-color': getCssVar('border-color-light'),
1409
+ ),
1410
+ $timeline
1411
+ );
1412
+
1413
+ // Tabs
1414
+ // css3 var in packages/theme-chalk/src/tabs.scss
1415
+ $tabs: () !default;
1416
+ $tabs: map.merge(
1417
+ (
1418
+ 'header-height': 28px,
1419
+ ),
1420
+ $tabs
1421
+ );
1422
+
1423
+ // Backtop
1424
+ // css3 var in packages/theme-chalk/src/backtop.scss
1425
+ $backtop: () !default;
1426
+ $backtop: map.merge(
1427
+ (
1428
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1429
+ 'text-color': getCssVar('color-primary'),
1430
+ 'hover-bg-color': getCssVar('border-color-extra-light'),
1431
+ ),
1432
+ $backtop
1433
+ );
1434
+
1435
+ // Link
1436
+ // css3 var in packages/theme-chalk/src/link.scss
1437
+ $link: () !default;
1438
+ $link: map.merge(
1439
+ (
1440
+ 'font-size': getCssVar('font-size-base'),
1441
+ 'font-weight': 400,
1442
+ 'text-color': getCssVar('color-primary-light-5'),
1443
+ 'hover-text-color': getCssVar('color-primary-light-4'),
1444
+ 'disabled-text-color': getCssVar('color-primary-light-2'),
1445
+ 'active-text-color': getCssVar('color-primary-light-6'),
1446
+ ),
1447
+ $link
1448
+ );
1449
+
1450
+ $link-text-color: () !default;
1451
+
1452
+ @each $type in $types {
1453
+ $link-text-color: map.merge(
1454
+ $link-text-color,
1455
+ (
1456
+ $type: map.get($colors, $type, 'base'),
1457
+ )
1458
+ ) !global;
1459
+ }
1460
+
1461
+ // Calendar
1462
+ // css3 var in packages/theme-chalk/src/calendar.scss
1463
+ $calendar: () !default;
1464
+ $calendar: map.merge(
1465
+ (
1466
+ 'border': var(#{getCssVarName('table-border')}, 1px solid #{getCssVar('border-color-lighter')}),
1467
+ 'header-border-bottom': getCssVar('calendar-border'),
1468
+ 'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
1469
+ 'cell-width': 85px,
1470
+ ),
1471
+ $calendar
1472
+ );
1473
+
1474
+ // Form
1475
+ // css3 var in packages/theme-chalk/src/form.scss
1476
+ $form: () !default;
1477
+ $form: map.merge(
1478
+ (
1479
+ 'label-font-size': 12px,
1480
+ 'label-font-weight': 500,
1481
+ 'inline-content-width': 220px,
1482
+ ),
1483
+ $form
1484
+ );
1485
+
1486
+ // Avatar
1487
+ // css3 var in packages/theme-chalk/src/avatar.scss
1488
+ $avatar: () !default;
1489
+ $avatar: map.merge(
1490
+ (
1491
+ 'text-color': getCssVar('color-neutral-light-4'),
1492
+ 'bg-color': getCssVar('color', 'white'),
1493
+ 'text-size': 16px,
1494
+ 'line-height': 18px,
1495
+ 'icon-size': 16px,
1496
+ 'border-color': getCssVar('color-neutral-light-3'),
1497
+ 'border-color-hover': getCssVar('color-neutral-light-4'),
1498
+ 'border-radius': getCssVar('border-radius-small'),
1499
+ ),
1500
+ $avatar
1501
+ );
1502
+
1503
+ $avatar-size: () !default;
1504
+ $avatar-size: map.merge(
1505
+ (
1506
+ 'default': 32px,
1507
+ 'large': 56px,
1508
+ 'medium': 44px,
1509
+ 'small': 32px,
1510
+ 'mini': 16px,
1511
+ ),
1512
+ $avatar-size
1513
+ );
1514
+
1515
+ $avatar-font-size: () !default;
1516
+ $avatar-font-size: map.merge(
1517
+ (
1518
+ 'default': 16px,
1519
+ 'large': 16px,
1520
+ 'medium': 16px,
1521
+ 'small': 14px,
1522
+ 'mini': 8px,
1523
+ ),
1524
+ $avatar-font-size
1525
+ );
1526
+
1527
+ // Empty
1528
+ // css3 var in packages/theme-chalk/src/empty.scss
1529
+ $empty: () !default;
1530
+ $empty: map.merge(
1531
+ (
1532
+ 'padding': 40px 0,
1533
+ 'image-width': 160px,
1534
+ 'description-margin-top': 20px,
1535
+ 'bottom-margin-top': 20px,
1536
+ 'fill-color-0': getCssVar('color-white'),
1537
+ 'fill-color-1': #fcfcfd,
1538
+ 'fill-color-2': #f8f9fb,
1539
+ 'fill-color-3': #f7f8fc,
1540
+ 'fill-color-4': #eeeff3,
1541
+ 'fill-color-5': #edeef2,
1542
+ 'fill-color-6': #e9ebef,
1543
+ 'fill-color-7': #e5e7e9,
1544
+ 'fill-color-8': #e0e3e9,
1545
+ 'fill-color-9': #d5d7de,
1546
+ ),
1547
+ $empty
1548
+ );
1549
+
1550
+ // Descriptions
1551
+ // css3 var in packages/theme-chalk/src/descriptions.scss
1552
+ $descriptions: () !default;
1553
+ $descriptions: map.merge(
1554
+ (
1555
+ 'table-border-color': getCssVar('color-neutral-light-2'),
1556
+ 'item-bordered-label-background': getCssVar('fill-color', 'light'),
1557
+ ),
1558
+ $descriptions
1559
+ );
1560
+
1561
+ // Result
1562
+ // css3 var in packages/theme-chalk/src/result.scss
1563
+ $result: () !default;
1564
+ $result: map.merge(
1565
+ (
1566
+ 'padding': 40px 30px,
1567
+ 'icon-font-size': 64px,
1568
+ 'title-font-size': 20px,
1569
+ 'title-margin-top': 20px,
1570
+ 'subtitle-margin-top': 10px,
1571
+ 'extra-margin-top': 30px,
1572
+ ),
1573
+ $result
1574
+ );
1575
+
1576
+ // Upload
1577
+ // css3 var in packages/theme-chalk/src/upload.scss
1578
+ $upload: () !default;
1579
+ $upload: map.merge(
1580
+ (
1581
+ 'dragger-padding-horizontal': 40px,
1582
+ 'dragger-padding-vertical': 10px,
1583
+ ),
1584
+ $upload
1585
+ );
1586
+
1587
+ // transition
1588
+ $transition: () !default;
1589
+ $transition: map.merge(
1590
+ (
1591
+ 'all': all getCssVar('transition-duration') getCssVar('transition-function-ease-in-out-bezier'),
1592
+ 'fade': opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1593
+ 'md-fade': (
1594
+ transform getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1595
+ opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1596
+ ),
1597
+ 'fade-linear': opacity getCssVar('transition-duration-fast') linear,
1598
+ 'border': border-color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1599
+ 'box-shadow': box-shadow getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1600
+ 'color': color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1601
+ ),
1602
+ $transition
1603
+ );
1604
+
1605
+ $transition-duration: () !default;
1606
+ $transition-duration: map.merge(
1607
+ (
1608
+ '': 0.3s,
1609
+ 'fast': 0.2s,
1610
+ ),
1611
+ $transition-duration
1612
+ );
1613
+
1614
+ $transition-function: () !default;
1615
+ $transition-function: map.merge(
1616
+ (
1617
+ 'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
1618
+ 'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
1619
+ ),
1620
+ $transition-function
1621
+ );
1622
+
1623
+ // header
1624
+ $header: () !default;
1625
+ $header: map.merge(
1626
+ (
1627
+ 'padding': 0 20px,
1628
+ 'height': 60px,
1629
+ ),
1630
+ $header
1631
+ );
1632
+ // main
1633
+ $main: () !default;
1634
+ $main: map.merge(
1635
+ (
1636
+ 'padding': 20px,
1637
+ ),
1638
+ $main
1639
+ );
1640
+ // footer
1641
+ $footer: () !default;
1642
+ $footer: map.merge(
1643
+ (
1644
+ 'padding': 0 20px,
1645
+ 'height': 60px,
1646
+ ),
1647
+ $footer
1648
+ );
1649
+
1650
+ // Break-point
1651
+ $sm: 768px !default;
1652
+ $md: 992px !default;
1653
+ $lg: 1200px !default;
1654
+ $xl: 1920px !default;
1655
+
1656
+ $breakpoints: (
1657
+ 'xs': '(max-width: #{$sm - 1})',
1658
+ 'sm': '(min-width: #{$sm})',
1659
+ 'md': '(min-width: #{$md})',
1660
+ 'lg': '(min-width: #{$lg})',
1661
+ 'xl': '(min-width: #{$xl})',
1662
+ ) !default;
1663
+
1664
+ $breakpoints-spec: (
1665
+ 'xs-only': '(max-width: #{$sm - 1})',
1666
+ 'sm-and-up': '(min-width: #{$sm})',
1667
+ 'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
1668
+ 'sm-and-down': '(max-width: #{$md - 1})',
1669
+ 'md-and-up': '(min-width: #{$md})',
1670
+ 'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
1671
+ 'md-and-down': '(max-width: #{$lg - 1})',
1672
+ 'lg-and-up': '(min-width: #{$lg})',
1673
+ 'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
1674
+ 'lg-and-down': '(max-width: #{$xl - 1})',
1675
+ 'xl-only': '(min-width: #{$xl})',
1676
+ ) !default;