@qsxy/element-plus-react 1.0.0-next.1 → 1.0.0-next.10

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 (489) hide show
  1. package/README.md +95 -0
  2. package/dist/Avatar/Avatar.d.ts +4 -0
  3. package/dist/Avatar/Avatar.js +86 -0
  4. package/dist/Avatar/index.d.ts +2 -0
  5. package/dist/{VirtualList → Avatar}/index.js +7 -7
  6. package/dist/Avatar/typings.d.ts +21 -0
  7. package/dist/{VirtualList/interface.js → Avatar/typings.js} +3 -3
  8. package/dist/Badge/Badge.js +4 -5
  9. package/dist/Badge/typings.d.ts +10 -0
  10. package/dist/Breadcrumb/Breadcrumb.js +1 -4
  11. package/dist/Breadcrumb/typings.d.ts +4 -0
  12. package/dist/Button/Button.d.ts +0 -1
  13. package/dist/Button/Button.js +21 -9
  14. package/dist/Button/typings.d.ts +28 -0
  15. package/dist/Calendar/Calendar.js +1 -2
  16. package/dist/Calendar/CalendarContext.d.ts +10 -0
  17. package/dist/Calendar/Footer.js +1 -2
  18. package/dist/Calendar/Header.js +3 -8
  19. package/dist/Calendar/ShortCuts.d.ts +2 -0
  20. package/dist/Calendar/typings.d.ts +18 -0
  21. package/dist/Card/typings.d.ts +4 -0
  22. package/dist/Carousel/Carousel.d.ts +4 -0
  23. package/dist/Carousel/Carousel.js +168 -0
  24. package/dist/Carousel/CarouselContext.d.ts +4 -0
  25. package/dist/{VirtualList/Item.js → Carousel/CarouselContext.js} +29 -14
  26. package/dist/Carousel/CarouselItem.d.ts +4 -0
  27. package/dist/Carousel/CarouselItem.js +75 -0
  28. package/dist/Carousel/hooks/useCarousel.d.ts +37 -0
  29. package/dist/Carousel/hooks/useCarousel.js +348 -0
  30. package/dist/Carousel/hooks/useCarouselItem.d.ts +8 -0
  31. package/dist/Carousel/hooks/useCarouselItem.js +161 -0
  32. package/dist/Carousel/index.d.ts +3 -0
  33. package/dist/Carousel/index.js +42 -0
  34. package/dist/Carousel/typings.d.ts +83 -0
  35. package/dist/{VirtualList/utils/findDOMNode.js → Carousel/typings.js} +3 -16
  36. package/dist/Cascader/Cascader.js +148 -182
  37. package/dist/Cascader/CascaderContext.d.ts +4 -10
  38. package/dist/Cascader/CascaderContext.js +2 -6
  39. package/dist/Cascader/CascaderDropdown.d.ts +1 -0
  40. package/dist/Cascader/CascaderDropdown.js +1 -1
  41. package/dist/Cascader/CascaderMenu.js +4 -77
  42. package/dist/Cascader/Utils.d.ts +0 -2
  43. package/dist/Cascader/Utils.js +0 -44
  44. package/dist/Cascader/index.d.ts +1 -1
  45. package/dist/Cascader/typings.d.ts +76 -12
  46. package/dist/Cascader/useCascader.d.ts +61 -3
  47. package/dist/Cascader/useCascader.js +14 -41
  48. package/dist/Checkbox/Checkbox.js +2 -6
  49. package/dist/Checkbox/CheckboxButton.js +2 -6
  50. package/dist/Checkbox/typings.d.ts +11 -0
  51. package/dist/CheckboxGroup/CheckboxGroup.d.ts +4 -0
  52. package/dist/CheckboxGroup/CheckboxGroupContext.d.ts +1 -0
  53. package/dist/Col/Col.js +1 -8
  54. package/dist/Col/typings.d.ts +10 -0
  55. package/dist/Collapse/CollapseContext.d.ts +3 -0
  56. package/dist/Collapse/CollapseItem.js +10 -8
  57. package/dist/Collapse/CollapseTransition.d.ts +7 -6
  58. package/dist/Collapse/CollapseTransition.js +49 -31
  59. package/dist/Collapse/typings.d.ts +7 -0
  60. package/dist/ColorPicker/AlphaSlider.d.ts +7 -0
  61. package/dist/ColorPicker/AlphaSlider.js +0 -1
  62. package/dist/ColorPicker/ColorPicker.js +0 -1
  63. package/dist/ColorPicker/HueSlider.d.ts +7 -0
  64. package/dist/ColorPicker/HueSlider.js +0 -1
  65. package/dist/ColorPicker/Predefine.d.ts +7 -0
  66. package/dist/ColorPicker/Predefine.js +0 -1
  67. package/dist/ColorPicker/SvPanel.d.ts +7 -0
  68. package/dist/ColorPicker/SvPanel.js +0 -1
  69. package/dist/ColorPicker/typings.d.ts +9 -0
  70. package/dist/ConfigProvider/ConfigProvider.d.ts +5 -0
  71. package/dist/DatePicker/DatePicker.js +25 -14
  72. package/dist/DatePicker/DateRangePicker.js +11 -10
  73. package/dist/DatePicker/typings.d.ts +69 -0
  74. package/dist/DateTimePicker/DateTimePicker.d.ts +1 -1
  75. package/dist/DateTimePicker/DateTimePicker.js +13 -11
  76. package/dist/DateTimePicker/typings.d.ts +1 -0
  77. package/dist/Descriptions/Descriptions.js +1 -5
  78. package/dist/Descriptions/DescriptionsContext.d.ts +2 -0
  79. package/dist/Descriptions/typings.d.ts +13 -0
  80. package/dist/Dialog/Dialog.d.ts +0 -1
  81. package/dist/Dialog/Dialog.js +5 -8
  82. package/dist/Dialog/DialogBody.js +0 -3
  83. package/dist/Dialog/DialogContext.d.ts +8 -0
  84. package/dist/Dialog/DialogHeader.js +1 -4
  85. package/dist/Dialog/typings.d.ts +38 -2
  86. package/dist/Divider/Divider.d.ts +4 -0
  87. package/dist/Divider/Divider.js +1 -6
  88. package/dist/Drawer/Drawer.js +28 -14
  89. package/dist/Drawer/DrawerBody.js +1 -4
  90. package/dist/Drawer/DrawerContext.d.ts +10 -0
  91. package/dist/Drawer/DrawerHeader.js +1 -4
  92. package/dist/Drawer/typings.d.ts +16 -0
  93. package/dist/Dropdown/Dropdown.js +12 -8
  94. package/dist/Dropdown/DropdownContext.d.ts +2 -0
  95. package/dist/Dropdown/typings.d.ts +16 -1
  96. package/dist/Empty/Empty.js +1 -4
  97. package/dist/Empty/ImgEmpty.js +1 -1
  98. package/dist/Form/Form.js +10 -6
  99. package/dist/Form/FormItem.d.ts +12 -0
  100. package/dist/Form/FormItem.js +3 -1
  101. package/dist/Form/typings.d.ts +55 -0
  102. package/dist/Form/useForm.d.ts +22 -0
  103. package/dist/Form/utils/NameMap.d.ts +3 -0
  104. package/dist/Form/utils/classUtil.js +2 -2
  105. package/dist/Form/utils/validateUtil.d.ts +4 -0
  106. package/dist/Form/utils/valueUtil.d.ts +17 -0
  107. package/dist/Icon/Icon.js +1 -4
  108. package/dist/Icon/typings.d.ts +7 -0
  109. package/dist/Input/Input.js +18 -10
  110. package/dist/Input/InputRange.js +14 -11
  111. package/dist/Input/TextArea.js +8 -4
  112. package/dist/Input/typings.d.ts +61 -0
  113. package/dist/InputNumber/InputNumber.js +10 -7
  114. package/dist/InputNumber/typings.d.ts +21 -0
  115. package/dist/Link/Link.js +1 -4
  116. package/dist/Link/typings.d.ts +6 -1
  117. package/dist/Loading/Loading.js +17 -9
  118. package/dist/Loading/typings.d.ts +5 -0
  119. package/dist/Message/Main.d.ts +7 -0
  120. package/dist/Message/Message.js +11 -8
  121. package/dist/Message/index.d.ts +8 -0
  122. package/dist/Message/typings.d.ts +11 -0
  123. package/dist/MessageBox/Main.js +3 -1
  124. package/dist/MessageBox/MessageBox.js +1 -1
  125. package/dist/MessageBox/index.d.ts +17 -3
  126. package/dist/MessageBox/index.js +1 -1
  127. package/dist/MessageBox/typings.d.ts +50 -0
  128. package/dist/Notification/Main.d.ts +7 -0
  129. package/dist/Notification/Notification.js +17 -14
  130. package/dist/Notification/index.d.ts +15 -0
  131. package/dist/Notification/typings.d.ts +13 -0
  132. package/dist/Pagination/Pagination.js +15 -11
  133. package/dist/Pagination/typings.d.ts +28 -0
  134. package/dist/Popconfirm/Popconfirm.js +14 -10
  135. package/dist/Popconfirm/typings.d.ts +12 -1
  136. package/dist/Popover/Popover.js +13 -9
  137. package/dist/Popover/typings.d.ts +13 -1
  138. package/dist/Popper/Popper.js +22 -18
  139. package/dist/Popper/typings.d.ts +7 -1
  140. package/dist/Progress/Progress.js +13 -9
  141. package/dist/Progress/typings.d.ts +12 -0
  142. package/dist/Radio/typings.d.ts +7 -0
  143. package/dist/RadioGroup/typings.d.ts +1 -0
  144. package/dist/Row/Row.js +8 -5
  145. package/dist/Row/RowContext.d.ts +1 -0
  146. package/dist/Row/typings.d.ts +4 -0
  147. package/dist/Scrollbar/Scrollbar.js +13 -9
  148. package/dist/Scrollbar/Thumb.js +1 -1
  149. package/dist/Scrollbar/typings.d.ts +20 -0
  150. package/dist/Select/SelectCore.js +17 -14
  151. package/dist/Select/typings.d.ts +33 -0
  152. package/dist/Skeleton/PlaceholderGraph.d.ts +4 -0
  153. package/dist/Skeleton/PlaceholderGrid.d.ts +4 -0
  154. package/dist/Skeleton/PlaceholderGrid.js +0 -4
  155. package/dist/Skeleton/PlaceholderParagraph.d.ts +4 -0
  156. package/dist/Skeleton/PlaceholderParagraph.js +0 -4
  157. package/dist/Switch/Switch.js +13 -10
  158. package/dist/Switch/typings.d.ts +15 -0
  159. package/dist/Table/Colgroup.d.ts +1 -0
  160. package/dist/Table/Table.js +13 -9
  161. package/dist/Table/TableBody.js +10 -41
  162. package/dist/Table/TableCell.js +0 -5
  163. package/dist/Table/TableColumn.js +0 -4
  164. package/dist/Table/TableContext.d.ts +8 -0
  165. package/dist/Table/hooks/useSelection.d.ts +10 -0
  166. package/dist/Table/hooks/useTable.d.ts +7 -0
  167. package/dist/Table/treeUtil.d.ts +39 -0
  168. package/dist/Table/typings.d.ts +137 -1
  169. package/dist/Table/util.d.ts +10 -0
  170. package/dist/Table/util.js +2 -2
  171. package/dist/Tabs/Tabs.js +2 -5
  172. package/dist/Tabs/typings.d.ts +38 -0
  173. package/dist/Tag/Tag.d.ts +1 -1
  174. package/dist/Tag/Tag.js +7 -8
  175. package/dist/Tag/typings.d.ts +10 -0
  176. package/dist/TimeLine/TimeLineItem.js +7 -4
  177. package/dist/TimeLine/typings.d.ts +9 -0
  178. package/dist/TimePicker/TimePicker.js +16 -12
  179. package/dist/TimePicker/TimePickerRange.js +15 -12
  180. package/dist/TimePicker/TimeSpinnerPanel.js +3 -5
  181. package/dist/TimePicker/typings.d.ts +13 -0
  182. package/dist/TimePicker/useTimePicker.d.ts +7 -0
  183. package/dist/Tooltip/Tooltip.js +8 -15
  184. package/dist/Tooltip/TooltipContext.d.ts +1 -0
  185. package/dist/Tooltip/typings.d.ts +14 -1
  186. package/dist/Transfer/List.js +12 -8
  187. package/dist/Transfer/ListItem.d.ts +1 -0
  188. package/dist/Transfer/Transfer.js +11 -7
  189. package/dist/Transfer/typings/index.d.ts +27 -0
  190. package/dist/Transfer/typings/list.d.ts +25 -0
  191. package/dist/Transfer/typings/listBody.d.ts +1 -0
  192. package/dist/Transition/Transition.d.ts +16 -3
  193. package/dist/Transition/Transition.js +6 -4
  194. package/dist/Transition/TransitionGroup.d.ts +59 -0
  195. package/dist/Transition/childMapping.d.ts +23 -0
  196. package/dist/Tree/DirectoryTree.d.ts +6 -13
  197. package/dist/Tree/DirectoryTree.js +32 -81
  198. package/dist/Tree/DropIndicator.d.ts +4 -2
  199. package/dist/Tree/DropIndicator.js +7 -2
  200. package/dist/Tree/Indent.d.ts +2 -2
  201. package/dist/Tree/Indent.js +4 -4
  202. package/dist/Tree/MotionTreeNode.d.ts +4 -5
  203. package/dist/Tree/MotionTreeNode.js +69 -52
  204. package/dist/Tree/NodeList.d.ts +18 -11
  205. package/dist/Tree/NodeList.js +38 -29
  206. package/dist/Tree/RCTree.d.ts +92 -75
  207. package/dist/Tree/RCTree.js +199 -188
  208. package/dist/Tree/Tree.d.ts +18 -3
  209. package/dist/Tree/Tree.js +27 -27
  210. package/dist/Tree/TreeNode.d.ts +5 -83
  211. package/dist/Tree/TreeNode.js +320 -425
  212. package/dist/Tree/contextTypes.d.ts +40 -30
  213. package/dist/Tree/contextTypes.js +17 -4
  214. package/dist/Tree/index.d.ts +2 -2
  215. package/dist/Tree/typings.d.ts +63 -19
  216. package/dist/Tree/typings.js +1 -13
  217. package/dist/Tree/typings.tsx--bak +245 -0
  218. package/dist/Tree/useUnmount.d.ts +5 -0
  219. package/dist/{VirtualList/hooks/useChildren.js → Tree/useUnmount.js} +24 -16
  220. package/dist/Tree/util.d.ts +31 -18
  221. package/dist/Tree/util.js +21 -52
  222. package/dist/Tree/utils/conductUtil.d.ts +8 -2
  223. package/dist/Tree/utils/conductUtil.js +14 -3
  224. package/dist/Tree/utils/dictUtil.d.ts +8 -3
  225. package/dist/Tree/utils/dictUtil.js +49 -32
  226. package/dist/Tree/utils/diffUtil.d.ts +4 -3
  227. package/dist/Tree/utils/keyUtil.d.ts +2 -0
  228. package/dist/{VirtualList/utils/isFirefox.js → Tree/utils/keyUtil.js} +8 -7
  229. package/dist/Tree/utils/motion.js +6 -5
  230. package/dist/Tree/utils/pickAttrs.d.ts +5 -0
  231. package/dist/Tree/utils/treeUtil.d.ts +40 -18
  232. package/dist/Tree/utils/treeUtil.js +35 -14
  233. package/dist/TreeSelect/TreeSelect.js +14 -13
  234. package/dist/TreeSelect/Utils.d.ts +2 -1
  235. package/dist/TreeSelect/typings.d.ts +19 -0
  236. package/dist/Upload/Upload.js +9 -8
  237. package/dist/Upload/UploadList.js +2 -1
  238. package/dist/Upload/typings.d.ts +34 -0
  239. package/dist/Upload/use-handlers.d.ts +1 -0
  240. package/dist/Upload/use-handlers.js +1 -1
  241. package/dist/Util/Math.d.ts +34 -0
  242. package/dist/Util/base.d.ts +22 -0
  243. package/dist/Util/base.js +17 -0
  244. package/dist/Util/shallowEqual.d.ts +11 -0
  245. package/dist/Util/treeUtils.d.ts +8 -0
  246. package/dist/fonts/fa-brands-400.ttf +0 -0
  247. package/dist/fonts/fa-brands-400.woff2 +0 -0
  248. package/dist/fonts/fa-duotone-900.ttf +0 -0
  249. package/dist/fonts/fa-duotone-900.woff2 +0 -0
  250. package/dist/fonts/fa-light-300.ttf +0 -0
  251. package/dist/fonts/fa-light-300.woff2 +0 -0
  252. package/dist/fonts/fa-regular-400.ttf +0 -0
  253. package/dist/fonts/fa-regular-400.woff2 +0 -0
  254. package/dist/fonts/fa-solid-900.ttf +0 -0
  255. package/dist/fonts/fa-solid-900.woff2 +0 -0
  256. package/dist/fonts/fa-thin-100.ttf +0 -0
  257. package/dist/fonts/fa-thin-100.woff2 +0 -0
  258. package/dist/fonts/fa-v4compatibility.ttf +0 -0
  259. package/dist/fonts/fa-v4compatibility.woff2 +0 -0
  260. package/dist/hooks/animationPropsUtils.d.ts +12 -0
  261. package/dist/hooks/htmlPropsUtils.d.ts +8 -0
  262. package/dist/hooks/popperPropsUtils.d.ts +12 -0
  263. package/dist/hooks/prefix.d.ts +1 -1
  264. package/dist/hooks/prefix.js +4 -4
  265. package/dist/hooks/treePropsUtils.d.ts +12 -0
  266. package/dist/hooks/useChildrenInstance.d.ts +11 -0
  267. package/dist/hooks/useClassNames.d.ts +79 -0
  268. package/dist/hooks/useClassNames.js +12 -2
  269. package/dist/hooks/useControlled.d.ts +8 -0
  270. package/dist/hooks/useForceUpdate.d.ts +1 -0
  271. package/dist/index.css +1029 -1290
  272. package/dist/index.d.ts +8 -5
  273. package/dist/index.js +8 -5
  274. package/dist/theme-chalk/avatar/index.scss +50 -0
  275. package/dist/theme-chalk/build.scss +2 -0
  276. package/dist/theme-chalk/calendar/month-table.scss +1 -1
  277. package/dist/theme-chalk/carousel/index.scss +237 -0
  278. package/dist/theme-chalk/checkbox/index.scss +2 -2
  279. package/dist/theme-chalk/common/_var.scss +1 -0
  280. package/dist/theme-chalk/dev.scss +2 -0
  281. package/dist/theme-chalk/doc.scss +2 -0
  282. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  283. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  284. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  285. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  286. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  287. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  288. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  289. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  290. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  291. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  292. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  293. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  294. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  295. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  296. package/dist/theme-chalk/icon/fonts.scss +9 -0
  297. package/dist/theme-chalk/icon/index.scss +0 -9
  298. package/dist/theme-chalk/icon/scss/_shims.scss +318 -318
  299. package/dist/theme-chalk/icon/scss/_variables.scss +1 -3
  300. package/dist/theme-chalk/icon/scss/brands.scss +0 -5
  301. package/dist/theme-chalk/icon/scss/duotone.scss +0 -5
  302. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -8
  303. package/dist/theme-chalk/icon/scss/light.scss +2 -7
  304. package/dist/theme-chalk/icon/scss/regular.scss +2 -7
  305. package/dist/theme-chalk/icon/scss/solid.scss +2 -7
  306. package/dist/theme-chalk/icon/scss/thin.scss +2 -7
  307. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -8
  308. package/dist/theme-chalk/index.scss +3 -0
  309. package/dist/theme-chalk/input/input.scss +5 -3
  310. package/dist/theme-chalk/link/index.scss +0 -85
  311. package/dist/theme-chalk/loading/index.scss +5 -7
  312. package/dist/theme-chalk/message/index.scss +5 -5
  313. package/dist/theme-chalk/notification/index.scss +5 -5
  314. package/dist/theme-chalk/pagination/index.scss +1 -1
  315. package/dist/theme-chalk/tabs/index.scss +1 -1
  316. package/dist/types/common.d.ts +24 -0
  317. package/dist/types/type.d.ts +5 -0
  318. package/package.json +4 -24
  319. package/theme-chalk/avatar/index.scss +50 -0
  320. package/theme-chalk/badge/index.scss +63 -0
  321. package/theme-chalk/breadcrumb/index.scss +65 -0
  322. package/theme-chalk/build.scss +2 -0
  323. package/{dist/theme-chalk/bak/mixins/_button.scss → theme-chalk/button/_mixins.scss} +151 -58
  324. package/theme-chalk/button/button-group.scss +83 -0
  325. package/theme-chalk/button/button.scss +382 -0
  326. package/theme-chalk/button/index.scss +2 -0
  327. package/theme-chalk/calendar/date-picker.scss +112 -0
  328. package/theme-chalk/calendar/date-range-picker.scss +139 -0
  329. package/theme-chalk/calendar/date-table.scss +156 -0
  330. package/theme-chalk/calendar/index.scss +6 -0
  331. package/theme-chalk/calendar/month-table.scss +92 -0
  332. package/theme-chalk/calendar/picker-panel.scss +136 -0
  333. package/theme-chalk/calendar/year-table.scss +107 -0
  334. package/theme-chalk/card/index.scss +44 -0
  335. package/theme-chalk/carousel/index.scss +237 -0
  336. package/theme-chalk/cascader/cascader-panel.scss +184 -0
  337. package/theme-chalk/cascader/cascader.scss +239 -0
  338. package/theme-chalk/cascader/index.scss +2 -0
  339. package/theme-chalk/checkbox/index.scss +255 -0
  340. package/theme-chalk/checkbox-button/index.scss +117 -0
  341. package/theme-chalk/checkbox-group/index.scss +33 -0
  342. package/{dist/theme-chalk/bak/mixins/_col.scss → theme-chalk/col/_mixins.scss} +27 -3
  343. package/theme-chalk/col/index.scss +50 -0
  344. package/theme-chalk/collapse/index.scss +84 -0
  345. package/theme-chalk/color-picker/index.scss +340 -0
  346. package/{dist/theme-chalk/bak/mixins/config.scss → theme-chalk/common/_var.scss} +1 -0
  347. package/theme-chalk/common/index.scss +222 -0
  348. package/theme-chalk/common/index.ts +1 -0
  349. package/theme-chalk/date-picker/index.scss +253 -0
  350. package/theme-chalk/date-time-picker/index.scss +3 -0
  351. package/theme-chalk/date-time-picker/time-picker.scss +83 -0
  352. package/theme-chalk/date-time-picker/time-range-picker.scss +32 -0
  353. package/theme-chalk/descriptions/descriptions-item.scss +66 -0
  354. package/theme-chalk/descriptions/descriptions.scss +160 -0
  355. package/theme-chalk/descriptions/index.scss +2 -0
  356. package/theme-chalk/dev.scss +2 -0
  357. package/theme-chalk/dialog/index.scss +190 -0
  358. package/theme-chalk/divider/index.scss +51 -0
  359. package/theme-chalk/doc.scss +2 -0
  360. package/theme-chalk/drawer/index.scss +250 -0
  361. package/theme-chalk/dropdown/index.scss +147 -0
  362. package/theme-chalk/empty/index.scss +69 -0
  363. package/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  364. package/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  365. package/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  366. package/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  367. package/theme-chalk/fonts/fa-light-300.ttf +0 -0
  368. package/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  369. package/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  370. package/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  371. package/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  372. package/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  373. package/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  374. package/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  375. package/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  376. package/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  377. package/theme-chalk/form/index.scss +359 -0
  378. package/theme-chalk/icon/fonts.scss +9 -0
  379. package/theme-chalk/icon/index.scss +44 -0
  380. package/theme-chalk/icon/scss/_animated.scss +205 -0
  381. package/theme-chalk/icon/scss/_bordered-pulled.scss +20 -0
  382. package/theme-chalk/icon/scss/_core.scss +33 -0
  383. package/theme-chalk/icon/scss/_duotone-icons.scss +12 -0
  384. package/theme-chalk/icon/scss/_fixed-width.scss +7 -0
  385. package/theme-chalk/icon/scss/_functions.scss +57 -0
  386. package/theme-chalk/icon/scss/_icons.scss +11 -0
  387. package/theme-chalk/icon/scss/_list.scss +20 -0
  388. package/theme-chalk/icon/scss/_mixins.scss +102 -0
  389. package/theme-chalk/icon/scss/_rotated-flipped.scss +31 -0
  390. package/theme-chalk/icon/scss/_screen-reader.scss +14 -0
  391. package/theme-chalk/icon/scss/_shims.scss +2606 -0
  392. package/theme-chalk/icon/scss/_sizing.scss +16 -0
  393. package/theme-chalk/icon/scss/_stacked.scss +32 -0
  394. package/theme-chalk/icon/scss/_variables.scss +9189 -0
  395. package/theme-chalk/icon/scss/brands.scss +27 -0
  396. package/theme-chalk/icon/scss/duotone.scss +72 -0
  397. package/theme-chalk/icon/scss/fontawesome.scss +13 -0
  398. package/theme-chalk/icon/scss/index.scss +15 -0
  399. package/theme-chalk/icon/scss/light.scss +21 -0
  400. package/theme-chalk/icon/scss/regular.scss +21 -0
  401. package/theme-chalk/icon/scss/solid.scss +21 -0
  402. package/theme-chalk/icon/scss/thin.scss +21 -0
  403. package/theme-chalk/icon/scss/v4-shims.scss +3 -0
  404. package/theme-chalk/index.scss +67 -0
  405. package/theme-chalk/input/_mixins.scss +16 -0
  406. package/theme-chalk/input/index.scss +3 -0
  407. package/theme-chalk/input/input-range.scss +208 -0
  408. package/theme-chalk/input/input.scss +577 -0
  409. package/theme-chalk/input-number/index.scss +172 -0
  410. package/theme-chalk/link/index.scss +99 -0
  411. package/theme-chalk/loading/index.scss +94 -0
  412. package/theme-chalk/message/index.scss +169 -0
  413. package/theme-chalk/message-box/index.scss +184 -0
  414. package/theme-chalk/notification/index.scss +155 -0
  415. package/theme-chalk/pagination/index.scss +515 -0
  416. package/theme-chalk/placeholder/index.scss +135 -0
  417. package/theme-chalk/popconfirm/index.scss +35 -0
  418. package/theme-chalk/popover/index.scss +54 -0
  419. package/theme-chalk/popper/index.scss +86 -0
  420. package/theme-chalk/progress/index.scss +155 -0
  421. package/theme-chalk/radio/index.scss +2 -0
  422. package/theme-chalk/radio/radio-button.scss +128 -0
  423. package/theme-chalk/radio/radio.scss +171 -0
  424. package/theme-chalk/radio-group/index.scss +31 -0
  425. package/theme-chalk/row/index.scss +30 -0
  426. package/theme-chalk/scrollbar/index.scss +103 -0
  427. package/theme-chalk/select/index.scss +244 -0
  428. package/theme-chalk/select/option-group.scss +54 -0
  429. package/theme-chalk/select/option.scss +63 -0
  430. package/theme-chalk/select/select-dropdown.scss +57 -0
  431. package/theme-chalk/switch/index.scss +273 -0
  432. package/theme-chalk/table/index.scss +714 -0
  433. package/theme-chalk/tabs/index.scss +620 -0
  434. package/theme-chalk/tag/index.scss +360 -0
  435. package/theme-chalk/time-line/_timeline-item.scss +90 -0
  436. package/theme-chalk/time-line/_timeline.scss +50 -0
  437. package/theme-chalk/time-line/index.scss +2 -0
  438. package/theme-chalk/time-picker/index.scss +109 -0
  439. package/theme-chalk/tooltip/index.scss +13 -0
  440. package/theme-chalk/transfer/index.scss +247 -0
  441. package/theme-chalk/transition/index.scss +756 -0
  442. package/theme-chalk/tree/_directory.scss +73 -0
  443. package/theme-chalk/tree/_tree.scss +401 -0
  444. package/theme-chalk/tree/index.scss +2 -0
  445. package/theme-chalk/tree-select/index.scss +25 -0
  446. package/theme-chalk/upload/index.scss +631 -0
  447. package/dist/Tree/utils/KeyCode.d.ts +0 -110
  448. package/dist/Tree/utils/KeyCode.js +0 -550
  449. package/dist/VirtualList/Filler.d.ts +0 -11
  450. package/dist/VirtualList/Filler.js +0 -78
  451. package/dist/VirtualList/Item.d.ts +0 -7
  452. package/dist/VirtualList/ScrollBar.d.ts +0 -43
  453. package/dist/VirtualList/ScrollBar.js +0 -216
  454. package/dist/VirtualList/VirtualList.d.ts +0 -33
  455. package/dist/VirtualList/VirtualList.js +0 -280
  456. package/dist/VirtualList/hooks/useChildren.d.ts +0 -3
  457. package/dist/VirtualList/hooks/useDiffItem.d.ts +0 -2
  458. package/dist/VirtualList/hooks/useDiffItem.js +0 -39
  459. package/dist/VirtualList/hooks/useFrameWheel.d.ts +0 -6
  460. package/dist/VirtualList/hooks/useFrameWheel.js +0 -72
  461. package/dist/VirtualList/hooks/useHeights.d.ts +0 -3
  462. package/dist/VirtualList/hooks/useHeights.js +0 -83
  463. package/dist/VirtualList/hooks/useLayoutEffect.d.ts +0 -3
  464. package/dist/VirtualList/hooks/useLayoutEffect.js +0 -30
  465. package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +0 -2
  466. package/dist/VirtualList/hooks/useMobileTouchMove.js +0 -92
  467. package/dist/VirtualList/hooks/useOriginScroll.d.ts +0 -2
  468. package/dist/VirtualList/hooks/useOriginScroll.js +0 -56
  469. package/dist/VirtualList/hooks/useScrollTo.d.ts +0 -5
  470. package/dist/VirtualList/hooks/useScrollTo.js +0 -111
  471. package/dist/VirtualList/index.d.ts +0 -2
  472. package/dist/VirtualList/interface.d.ts +0 -8
  473. package/dist/VirtualList/mock.d.ts +0 -6
  474. package/dist/VirtualList/mock.js +0 -29
  475. package/dist/VirtualList/utils/CacheMap.d.ts +0 -7
  476. package/dist/VirtualList/utils/CacheMap.js +0 -36
  477. package/dist/VirtualList/utils/algorithmUtil.d.ts +0 -6
  478. package/dist/VirtualList/utils/algorithmUtil.js +0 -81
  479. package/dist/VirtualList/utils/findDOMNode.d.ts +0 -2
  480. package/dist/VirtualList/utils/isFirefox.d.ts +0 -2
  481. package/dist/VirtualList/utils/raf.d.ts +0 -5
  482. package/dist/VirtualList/utils/raf.js +0 -57
  483. package/dist/theme-chalk/bak/common/popup.scss +0 -47
  484. package/dist/theme-chalk/bak/common/transition.scss +0 -118
  485. package/dist/theme-chalk/bak/common/var.scss +0 -1476
  486. package/dist/theme-chalk/bak/mixins/_var.scss +0 -55
  487. package/dist/theme-chalk/bak/mixins/function.scss +0 -85
  488. package/dist/theme-chalk/bak/mixins/mixins.scss +0 -215
  489. package/dist/theme-chalk/bak/mixins/utils.scss +0 -39
@@ -1,1476 +0,0 @@
1
- /* Element Chalk Variables */
2
- @use 'sass:math';
3
- @use 'sass:map';
4
-
5
- @use '../mixins/function.scss' as *;
6
-
7
- // Special comment for theme configurator
8
- // type|skipAutoTranslation|Category|Order
9
- // skipAutoTranslation 1
10
-
11
- // types
12
- $types: primary, success, warning, danger, error, info;
13
-
14
- // Color
15
- $colors: () !default;
16
- $colors: map.deep-merge(
17
- (
18
- 'white': #ffffff,
19
- 'black': #000000,
20
- 'primary': (
21
- 'base': #409eff,
22
- ),
23
- 'success': (
24
- 'base': #67c23a,
25
- ),
26
- 'warning': (
27
- 'base': #e6a23c,
28
- ),
29
- 'danger': (
30
- 'base': #f56c6c,
31
- ),
32
- 'error': (
33
- 'base': #f56c6c,
34
- ),
35
- 'info': (
36
- 'base': #909399,
37
- ),
38
- ),
39
- $colors
40
- );
41
-
42
- $color-white: map.get($colors, 'white') !default;
43
- $color-black: map.get($colors, 'black') !default;
44
- $color-primary: map.get($colors, 'primary', 'base') !default;
45
- $color-success: map.get($colors, 'success', 'base') !default;
46
- $color-warning: map.get($colors, 'warning', 'base') !default;
47
- $color-danger: map.get($colors, 'danger', 'base') !default;
48
- $color-error: map.get($colors, 'error', 'base') !default;
49
- $color-info: map.get($colors, 'info', 'base') !default;
50
-
51
- // https://sass-lang.com/documentation/values/maps#immutability
52
- // mix colors with white/black to generate light/dark level
53
- @mixin set-color-mix-level($type, $number, $mode: 'light', $mix-color: $color-white) {
54
- $colors: map.deep-merge(
55
- (
56
- $type: (
57
- '#{$mode}-#{$number}': mix($mix-color, map.get($colors, $type, 'base'), math.percentage(math.div($number, 10))),
58
- ),
59
- ),
60
- $colors
61
- ) !global;
62
- }
63
-
64
- // $colors.primary.light-i
65
- // --el-color-primary-light-i
66
- // 10% 53a8ff
67
- // 20% 66b1ff
68
- // 30% 79bbff
69
- // 40% 8cc5ff
70
- // 50% a0cfff
71
- // 60% b3d8ff
72
- // 70% c6e2ff
73
- // 80% d9ecff
74
- // 90% ecf5ff
75
- @each $type in $types {
76
- @for $i from 1 through 9 {
77
- @include set-color-mix-level($type, $i, 'light', $color-white);
78
- }
79
- }
80
-
81
- // --el-color-primary-dark-2
82
- @each $type in $types {
83
- @include set-color-mix-level($type, 2, 'dark', $color-black);
84
- }
85
-
86
- $text-color: () !default;
87
- $text-color: map.merge(
88
- (
89
- 'primary': #303133,
90
- 'regular': #606266,
91
- 'secondary': #909399,
92
- 'placeholder': #a8abb2,
93
- 'disabled': #c0c4cc,
94
- ),
95
- $text-color
96
- );
97
-
98
- $border-color: () !default;
99
- $border-color: map.merge(
100
- (
101
- '': #dcdfe6,
102
- 'light': #e4e7ed,
103
- 'lighter': #ebeef5,
104
- 'extra-light': #f2f6fc,
105
- 'dark': #d4d7de,
106
- 'darker': #cdd0d6,
107
- ),
108
- $border-color
109
- );
110
-
111
- $fill-color: () !default;
112
- $fill-color: map.merge(
113
- (
114
- '': #f0f2f5,
115
- 'light': #f5f7fa,
116
- 'lighter': #fafafa,
117
- 'extra-light': #fafcff,
118
- 'dark': #ebedf0,
119
- 'darker': #e6e8eb,
120
- 'blank': #ffffff,
121
- ),
122
- $fill-color
123
- );
124
-
125
- // Background
126
- $bg-color: () !default;
127
- $bg-color: map.merge(
128
- (
129
- '': #ffffff,
130
- 'page': #f2f3f5,
131
- 'overlay': #ffffff,
132
- ),
133
- $bg-color
134
- );
135
-
136
- // Border
137
- $border-width: 1px !default;
138
- $border-style: solid !default;
139
- $border-color-hover: getCssVar('text-color', 'disabled') !default;
140
-
141
- $border-radius: () !default;
142
- $border-radius: map.merge(
143
- (
144
- 'base': 4px,
145
- 'small': 2px,
146
- 'round': 20px,
147
- 'circle': 100%,
148
- ),
149
- $border-radius
150
- );
151
-
152
- // Box-shadow
153
- $box-shadow: () !default;
154
- $box-shadow: map.merge(
155
- (
156
- '': (
157
- 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
158
- 0px 8px 20px rgba(0, 0, 0, 0.08),
159
- ),
160
- 'light': (
161
- 0px 0px 12px rgba(0, 0, 0, 0.12),
162
- ),
163
- 'lighter': (
164
- 0px 0px 6px rgba(0, 0, 0, 0.12),
165
- ),
166
- 'dark': (
167
- 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
168
- 0px 12px 32px rgba(0, 0, 0, 0.12),
169
- 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
170
- ),
171
- ),
172
- $box-shadow
173
- );
174
-
175
- // Typography
176
- $font-family: () !default;
177
- $font-family: map.merge(
178
- (
179
- // default family
180
- '': "'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
181
- ),
182
- $font-family
183
- );
184
-
185
- $font-size: () !default;
186
- $font-size: map.merge(
187
- (
188
- 'extra-large': 20px,
189
- 'large': 18px,
190
- 'medium': 16px,
191
- 'base': 14px,
192
- 'small': 13px,
193
- 'extra-small': 12px,
194
- ),
195
- $font-size
196
- );
197
-
198
- // zIndex
199
- $z-index: () !default;
200
- $z-index: map.merge(
201
- (
202
- 'normal': 1,
203
- 'top': 1000,
204
- 'popper': 2000,
205
- ),
206
- $z-index
207
- );
208
-
209
- // Disable default
210
- $disabled: () !default;
211
- $disabled: map.merge(
212
- (
213
- 'bg-color': getCssVar('fill-color', 'light'),
214
- 'text-color': getCssVar('text-color', 'placeholder'),
215
- 'border-color': getCssVar('border-color', 'light'),
216
- ),
217
- $disabled
218
- );
219
-
220
- $common-component-size: () !default;
221
- $common-component-size: map.merge(
222
- (
223
- 'large': 40px,
224
- 'default': 32px,
225
- 'small': 24px,
226
- ),
227
- $common-component-size
228
- );
229
-
230
- // overlay
231
- $overlay-color: () !default;
232
- $overlay-color: map.merge(
233
- (
234
- '': rgba(0, 0, 0, 0.8),
235
- 'light': rgba(0, 0, 0, 0.7),
236
- 'lighter': rgba(0, 0, 0, 0.5),
237
- ),
238
- $overlay-color
239
- );
240
-
241
- // mask
242
- $mask-color: () !default;
243
- $mask-color: map.merge(
244
- (
245
- '': rgba(255, 255, 255, 0.9),
246
- 'extra-light': rgba(255, 255, 255, 0.3),
247
- ),
248
- $mask-color
249
- );
250
-
251
- // Components
252
- // ---
253
- // Checkbox
254
- // css3 var in packages/theme-chalk/src/checkbox.scss
255
- $checkbox: () !default;
256
- $checkbox: map.merge(
257
- (
258
- 'font-size': 14px,
259
- 'font-weight': getCssVar('font-weight-primary'),
260
- 'text-color': getCssVar('text-color-regular'),
261
- 'input-height': 14px,
262
- 'input-width': 14px,
263
- 'border-radius': getCssVar('border-radius-small'),
264
- 'bg-color': getCssVar('fill-color', 'blank'),
265
- 'input-border': getCssVar('border'),
266
- 'disabled-border-color': getCssVar('border-color'),
267
- 'disabled-input-fill': getCssVar('fill-color', 'light'),
268
- 'disabled-icon-color': getCssVar('text-color-placeholder'),
269
- 'disabled-checked-input-fill': getCssVar('border-color-extra-light'),
270
- 'disabled-checked-input-border-color': getCssVar('border-color'),
271
- 'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
272
- 'checked-text-color': getCssVar('color-primary'),
273
- 'checked-input-border-color': getCssVar('color-primary'),
274
- 'checked-bg-color': getCssVar('color-primary'),
275
- 'checked-icon-color': getCssVar('color', 'white'),
276
- 'input-border-color-hover': getCssVar('color-primary'),
277
- ),
278
- $checkbox
279
- );
280
-
281
- $checkbox-button: () !default;
282
- $checkbox-button: map.merge(
283
- (
284
- 'checked-bg-color': getCssVar('color-primary'),
285
- 'checked-text-color': getCssVar('color-white'),
286
- 'checked-border-color': getCssVar('color-primary'),
287
- ),
288
- $checkbox-button
289
- );
290
-
291
- $checkbox-bordered-padding-left: () !default;
292
- $checkbox-bordered-padding-left: map.merge(
293
- (
294
- 'large': 12px,
295
- 'default': 10px,
296
- 'small': 8px,
297
- ),
298
- $checkbox-bordered-padding-left
299
- );
300
-
301
- $checkbox-bordered-padding-right: () !default;
302
- $checkbox-bordered-padding-right: map.merge(
303
- (
304
- 'large': 20px,
305
- 'default': 16px,
306
- 'small': 12px,
307
- ),
308
- $checkbox-bordered-padding-right
309
- );
310
-
311
- // Radio
312
- /// fontSize||Font|1
313
- $radio: () !default;
314
- $radio: map.merge(
315
- (
316
- 'font-size': getCssVar('font-size-base'),
317
- 'text-color': getCssVar('text-color-regular'),
318
- 'font-weight': getCssVar('font-weight-primary'),
319
- 'input-height': 14px,
320
- 'input-width': 14px,
321
- 'input-border-radius': getCssVar('border-radius-circle'),
322
- 'input-bg-color': getCssVar('fill-color', 'blank'),
323
- 'input-border': getCssVar('border'),
324
- 'input-border-color': getCssVar('border-color'),
325
- 'input-border-color-hover': getCssVar('color-primary'),
326
- ),
327
- $radio
328
- );
329
-
330
- $radio-height: () !default;
331
- $radio-height: map.merge($common-component-size, $radio-height);
332
-
333
- $radio-button: () !default;
334
- $radio-button: map.merge(
335
- (
336
- 'checked-bg-color': getCssVar('color-primary'),
337
- 'checked-text-color': getCssVar('color-white'),
338
- 'checked-border-color': getCssVar('color-primary'),
339
- 'disabled-checked-fill': getCssVar('border-color-extra-light'),
340
- ),
341
- $radio-button
342
- );
343
-
344
- $radio-disabled: () !default;
345
- $radio-disabled: map.merge(
346
- (
347
- 'input-border-color': getCssVar('disabled-border-color'),
348
- 'input-fill': getCssVar('disabled-bg-color'),
349
- 'icon-color': getCssVar('disabled-bg-color'),
350
- 'checked-input-border-color': getCssVar('disabled-border-color'),
351
- 'checked-input-fill': getCssVar('disabled-bg-color'),
352
- 'checked-icon-color': getCssVar('text-color-placeholder'),
353
- ),
354
- $radio-disabled
355
- );
356
-
357
- $radio-checked: () !default;
358
- $radio-checked: map.merge(
359
- (
360
- 'text-color': getCssVar('color-primary'),
361
- 'input-border-color': getCssVar('color-primary'),
362
- 'icon-color': getCssVar('color-primary'),
363
- ),
364
- $radio-checked
365
- );
366
-
367
- $radio-bordered-input-height: () !default;
368
- $radio-bordered-input-height: map.merge(
369
- (
370
- 'large': 14px,
371
- 'default': 12px,
372
- 'small': 12px,
373
- ),
374
- $radio-bordered-input-height
375
- );
376
-
377
- $radio-bordered-input-width: () !default;
378
- $radio-bordered-input-width: map.merge(
379
- (
380
- 'large': 14px,
381
- 'default': 12px,
382
- 'small': 12px,
383
- ),
384
- $radio-bordered-input-width
385
- );
386
-
387
- // Select
388
- $select: () !default;
389
- $select: map.merge(
390
- (
391
- 'border-color-hover': getCssVar('border-color-hover'),
392
- 'disabled-border': getCssVar('disabled-border-color'),
393
- 'font-size': getCssVar('font-size-base'),
394
- 'close-hover-color': getCssVar('text-color-secondary'),
395
- 'input-color': getCssVar('text-color-placeholder'),
396
- 'multiple-input-color': getCssVar('text-color-regular'),
397
- 'input-focus-border-color': getCssVar('color-primary'),
398
- 'input-font-size': 14px,
399
- 'width': 100%,
400
- ),
401
- $select
402
- );
403
-
404
- $select-option: () !default;
405
- $select-option: map.merge(
406
- (
407
- 'text-color': getCssVar('text-color-regular'),
408
- 'disabled-color': getCssVar('text-color-placeholder'),
409
- 'height': 34px,
410
- 'hover-background': getCssVar('fill-color', 'light'),
411
- 'selected-text-color': getCssVar('color-primary'),
412
- ),
413
- $select-option
414
- );
415
-
416
- $select-group: () !default;
417
- $select-group: map.merge(
418
- (
419
- 'text-color': getCssVar('color-info'),
420
- 'height': 30px,
421
- 'font-size': 12px,
422
- ),
423
- $select-group
424
- );
425
-
426
- $select-dropdown: () !default;
427
- $select-dropdown: map.merge(
428
- (
429
- 'bg-color': getCssVar('bg-color', 'overlay'),
430
- 'shadow': getCssVar('box-shadow-light'),
431
- 'empty-color': getCssVar('text-color-secondary'),
432
- 'max-height': 274px,
433
- 'padding': 6px 0,
434
- 'empty-padding': 10px 0,
435
- 'header-padding': 10px,
436
- 'footer-padding': 10px,
437
- 'border': 1px solid getCssVar('border-color-light'),
438
- ),
439
- $select-dropdown
440
- );
441
-
442
- $select-wrapper-padding: () !default;
443
- $select-wrapper-padding: map.merge(
444
- (
445
- 'large': 8px 16px,
446
- 'default': 4px 12px,
447
- 'small': 2px 8px,
448
- ),
449
- $select-wrapper-padding
450
- );
451
-
452
- $select-near-margin-left: () !default;
453
- $select-near-margin-left: map.merge(
454
- (
455
- 'large': -8px,
456
- 'default': -8px,
457
- 'small': -6px,
458
- ),
459
- $select-near-margin-left
460
- );
461
-
462
- $select-item-gap: () !default;
463
- $select-item-gap: map.merge(
464
- (
465
- 'large': 6px,
466
- 'default': 6px,
467
- 'small': 4px,
468
- ),
469
- $select-item-gap
470
- );
471
-
472
- // the same height of el-tag
473
- $select-item-height: () !default;
474
- $select-item-height: map.merge(
475
- (
476
- 'large': 24px,
477
- 'default': 24px,
478
- 'small': 20px,
479
- ),
480
- $select-item-height
481
- );
482
-
483
- // Alert
484
- // css3 var in packages/theme-chalk/src/alert.scss
485
- $alert: () !default;
486
- $alert: map.merge(
487
- (
488
- 'padding': 8px 16px,
489
- 'border-radius-base': getCssVar('border-radius-base'),
490
- 'title-font-size': 13px,
491
- 'description-font-size': 12px,
492
- 'close-font-size': 12px,
493
- 'close-customed-font-size': 13px,
494
- 'icon-size': 16px,
495
- 'icon-large-size': 28px,
496
- ),
497
- $alert
498
- );
499
-
500
- // MessageBox
501
- // css3 var in packages/theme-chalk/src/message-box.scss
502
- $messagebox: () !default;
503
- $messagebox: map.merge(
504
- (
505
- 'title-color': getCssVar('text-color-primary'),
506
- 'width': 420px,
507
- 'border-radius': 4px,
508
- 'box-shadow': getCssVar('box-shadow'),
509
- 'font-size': getCssVar('font-size-large'),
510
- 'content-font-size': getCssVar('font-size-base'),
511
- 'content-color': getCssVar('text-color-regular'),
512
- 'error-font-size': 12px,
513
- 'padding-primary': 12px,
514
- 'font-line-height': getCssVar('font-line-height-primary'),
515
- ),
516
- $messagebox
517
- );
518
-
519
- // Message
520
- // css3 var in packages/theme-chalk/src/message.scss
521
- $message: () !default;
522
- $message: map.merge(
523
- (
524
- 'bg-color': getCssVar('color', 'info', 'light-9'),
525
- 'border-color': getCssVar('border-color-lighter'),
526
- 'padding': 15px 19px,
527
- 'close-size': 16px,
528
- 'close-icon-color': getCssVar('text-color-placeholder'),
529
- 'close-hover-color': getCssVar('text-color-secondary'),
530
- ),
531
- $message
532
- );
533
-
534
- // Notification
535
- // css3 var in packages/theme-chalk/src/notification.scss
536
- $notification: () !default;
537
- $notification: map.merge(
538
- (
539
- 'width': 330px,
540
- 'padding': 14px 26px 14px 13px,
541
- 'radius': 8px,
542
- 'shadow': getCssVar('box-shadow-light'),
543
- 'border-color': getCssVar('border-color-lighter'),
544
- 'icon-size': 24px,
545
- 'close-font-size': var(#{getCssVarName('message-close-size')}, map.get($message, 'close-size')),
546
- 'group-margin-left': 13px,
547
- 'group-margin-right': 8px,
548
- 'content-font-size': getCssVar('font-size-base'),
549
- 'content-color': getCssVar('text-color-regular'),
550
- 'title-font-size': 16px,
551
- 'title-color': getCssVar('text-color-primary'),
552
- 'close-color': getCssVar('text-color-secondary'),
553
- 'close-hover-color': getCssVar('text-color-regular'),
554
- ),
555
- $notification
556
- );
557
-
558
- // Input
559
- // css3 var in packages/theme-chalk/src/input.scss
560
- $input: () !default;
561
-
562
- $input: map.merge(
563
- (
564
- 'text-color': getCssVar('text-color-regular'),
565
- 'border': getCssVar('border'),
566
- 'hover-border': getCssVar('border-color-hover'),
567
- 'focus-border': getCssVar('color-primary'),
568
- 'transparent-border': 0 0 0 1px transparent inset,
569
- 'border-color': getCssVar('border-color'),
570
- 'border-radius': getCssVar('border-radius-base'),
571
- 'bg-color': getCssVar('fill-color', 'blank'),
572
- 'icon-color': getCssVar('text-color-placeholder'),
573
- 'placeholder-color': getCssVar('text-color-placeholder'),
574
- 'hover-border-color': getCssVar('border-color-hover'),
575
- 'clear-hover-color': getCssVar('text-color-secondary'),
576
- 'focus-border-color': getCssVar('color-primary'),
577
- 'focus-color': getCssVar('color-primary'),
578
- 'width': 100%,
579
- ),
580
- $input
581
- );
582
-
583
- $input-disabled: () !default;
584
- $input-disabled: map.merge(
585
- (
586
- 'fill': getCssVar('disabled-bg-color'),
587
- 'border': getCssVar('disabled-border-color'),
588
- 'text-color': getCssVar('disabled-text-color'),
589
- 'placeholder-color': getCssVar('text-color-placeholder'),
590
- ),
591
- $input-disabled
592
- );
593
-
594
- $input-font-size: () !default;
595
- $input-font-size: map.merge(
596
- (
597
- 'large': 14px,
598
- 'default': 14px,
599
- 'small': 12px,
600
- ),
601
- $input-font-size
602
- );
603
-
604
- $input-height: () !default;
605
- $input-height: map.merge($common-component-size, $input-height);
606
-
607
- $input-line-height: () !default;
608
- $input-line-height: map.merge($common-component-size, $input-line-height);
609
-
610
- $input-number-width: () !default;
611
- $input-number-width: map.merge(
612
- (
613
- 'large': 180px,
614
- 'default': 150px,
615
- 'small': 120px,
616
- ),
617
- $input-number-width
618
- );
619
-
620
- $input-padding-horizontal: () !default;
621
- $input-padding-horizontal: map.merge(
622
- (
623
- 'large': 16px,
624
- 'default': 12px,
625
- 'small': 8px,
626
- ),
627
- $input-padding-horizontal
628
- );
629
-
630
- // Cascader
631
- // css3 var in packages/theme-chalk/src/cascader.scss
632
- $cascader: () !default;
633
- $cascader: map.merge(
634
- (
635
- 'menu-text-color': getCssVar('text-color-regular'),
636
- 'menu-selected-text-color': getCssVar('color-primary'),
637
- 'menu-fill': getCssVar('bg-color', 'overlay'),
638
- 'menu-font-size': getCssVar('font-size-base'),
639
- 'menu-radius': getCssVar('border-radius-base'),
640
- 'menu-border': solid 1px getCssVar('border-color-light'),
641
- 'menu-shadow': getCssVar('box-shadow-light'),
642
- 'node-background-hover': getCssVar('fill-color', 'light'),
643
- 'node-color-disabled': getCssVar('text-color-placeholder'),
644
- 'color-empty': getCssVar('text-color-placeholder'),
645
- 'tag-background': getCssVar('fill-color'),
646
- ),
647
- $cascader
648
- );
649
- //statistic
650
- // css3 var in packages/theme-chalk/src/statistic.scss
651
- $statistic: () !default;
652
- $statistic: map.merge(
653
- (
654
- 'title-font-weight': 400,
655
- 'title-font-size': getCssVar('font-size', 'extra-small'),
656
- 'title-color': getCssVar('text-color', 'regular'),
657
- 'content-font-weight': 400,
658
- 'content-font-size': getCssVar('font-size', 'extra-large'),
659
- 'content-color': getCssVar('text-color', 'primary'),
660
- ),
661
- $statistic
662
- );
663
- // Button
664
- // css3 var in packages/theme-chalk/src/button.scss
665
- $button: () !default;
666
- $button: map.merge(
667
- (
668
- 'font-weight': getCssVar('font-weight-primary'),
669
- 'border-color': getCssVar('border-color'),
670
- 'bg-color': getCssVar('fill-color', 'blank'),
671
- 'text-color': getCssVar('text-color', 'regular'),
672
- 'disabled-text-color': getCssVar('disabled-text-color'),
673
- 'disabled-bg-color': getCssVar('fill-color', 'blank'),
674
- 'disabled-border-color': getCssVar('border-color-light'),
675
- 'divide-border-color': rgba($color-white, 0.5),
676
- 'hover-text-color': getCssVar('color-primary'),
677
- 'hover-bg-color': getCssVar('color-primary', 'light-9'),
678
- 'hover-border-color': getCssVar('color-primary-light-7'),
679
- 'active-text-color': getCssVar('button-hover-text-color'),
680
- 'active-border-color': getCssVar('color-primary'),
681
- 'active-bg-color': getCssVar('button', 'hover-bg-color'),
682
- 'outline-color': getCssVar('color-primary', 'light-5'),
683
- 'hover-link-text-color': getCssVar('color-info'),
684
- 'active-color': getCssVar('text-color', 'primary'),
685
- ),
686
- $button
687
- );
688
-
689
- $button-border-width: $border-width !default;
690
-
691
- // need mix, so do not use css var
692
- $button-hover-tint-percent: 20%;
693
- $button-active-shade-percent: 10%;
694
-
695
- $button-border-color: () !default;
696
- $button-bg-color: () !default;
697
- $button-text-color: () !default;
698
-
699
- @each $type in $types {
700
- $button-border-color: map.merge(
701
- (
702
- $type: map.get($colors, $type, 'base'),
703
- ),
704
- $button-border-color
705
- ) !global;
706
-
707
- $button-bg-color: map.merge(
708
- (
709
- $type: map.get($colors, $type, 'base'),
710
- ),
711
- $button-bg-color
712
- ) !global;
713
- }
714
-
715
- $button-font-size: () !default;
716
- $button-font-size: map.merge(
717
- (
718
- 'large': getCssVar('font-size', 'base'),
719
- 'default': getCssVar('font-size', 'base'),
720
- 'small': 12px,
721
- ),
722
- $button-font-size
723
- );
724
-
725
- $button-border-radius: () !default;
726
- $button-border-radius: map.merge(
727
- (
728
- 'large': getCssVar('border-radius', 'base'),
729
- 'default': getCssVar('border-radius', 'base'),
730
- 'small': calc(#{getCssVar('border-radius', 'base')} - 1px),
731
- ),
732
- $button-border-radius
733
- );
734
-
735
- $button-padding-vertical: () !default;
736
- $button-padding-vertical: map.merge(
737
- (
738
- 'large': 13px,
739
- 'default': 9px,
740
- 'small': 6px,
741
- ),
742
- $button-padding-vertical
743
- );
744
-
745
- $button-padding-horizontal: () !default;
746
- $button-padding-horizontal: map.merge(
747
- (
748
- 'large': 20px,
749
- 'default': 16px,
750
- 'small': 12px,
751
- ),
752
- $button-padding-horizontal
753
- );
754
-
755
- // Switch
756
- // css3 var in packages/theme-chalk/src/switch.scss
757
- $switch: () !default;
758
- $switch: map.merge(
759
- (
760
- 'on-color': getCssVar('color-primary'),
761
- 'off-color': getCssVar('border-color'),
762
- ),
763
- $switch
764
- );
765
-
766
- // Dialog
767
- // css3 var in packages/theme-chalk/src/dialog.scss
768
- $dialog: () !default;
769
- $dialog: map.merge(
770
- (
771
- 'width': 50%,
772
- 'margin-top': 15vh,
773
- 'bg-color': getCssVar('bg-color'),
774
- 'box-shadow': getCssVar('box-shadow'),
775
- 'title-font-size': getCssVar('font-size-large'),
776
- 'content-font-size': 14px,
777
- 'font-line-height': getCssVar('font-line-height-primary'),
778
- 'padding-primary': 16px,
779
- 'border-radius': getCssVar('border-radius-small'),
780
- ),
781
- $dialog
782
- );
783
-
784
- // Tour
785
- // css3 var in packages/theme-chalk/src/tour.scss
786
- $tour: () !default;
787
- $tour: map.merge(
788
- (
789
- 'width': 520px,
790
- 'padding-primary': 12px,
791
- 'font-line-height': getCssVar('font-line-height-primary'),
792
- 'title-font-size': 16px,
793
- 'title-text-color': getCssVar('text-color-primary'),
794
- 'title-font-weight': 400,
795
- 'close-color': getCssVar('color-info'),
796
- 'font-size': 14px,
797
- 'color': getCssVar('text-color-primary'),
798
- 'bg-color': getCssVar('bg-color'),
799
- 'border-radius': 4px,
800
- ),
801
- $tour
802
- );
803
-
804
- // Table
805
- // css3 var in packages/theme-chalk/src/table.scss
806
- $table: () !default;
807
- $table: map.merge(
808
- (
809
- 'border-color': getCssVar('border-color-lighter'),
810
- 'border': 1px solid getCssVar('table-border-color'),
811
- 'text-color': getCssVar('text-color-regular'),
812
- 'header-text-color': getCssVar('text-color-secondary'),
813
- 'row-hover-bg-color': getCssVar('fill-color', 'light'),
814
- 'current-row-bg-color': getCssVar('color-primary-light-9'),
815
- 'header-bg-color': getCssVar('bg-color'),
816
- 'fixed-box-shadow': getCssVar('box-shadow', 'light'),
817
- 'bg-color': getCssVar('fill-color', 'blank'),
818
- 'tr-bg-color': getCssVar('bg-color'),
819
- 'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
820
- 'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
821
- 'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
822
- 'index': getCssVar('index-normal'),
823
- ),
824
- $table
825
- );
826
-
827
- $table-font-size: () !default;
828
- $table-font-size: map.merge(
829
- (
830
- 'large': getCssVar('font-size', 'base'),
831
- 'default': 14px,
832
- 'small': 12px,
833
- ),
834
- $table-font-size
835
- );
836
-
837
- $table-padding: () !default;
838
- $table-padding: map.merge(
839
- (
840
- 'large': 12px 0,
841
- 'default': 8px 0,
842
- 'small': 4px 0,
843
- ),
844
- $table-padding
845
- );
846
-
847
- $table-cell-padding: () !default;
848
- $table-cell-padding: map.merge(
849
- (
850
- 'large': 0 16px,
851
- 'default': 0 12px,
852
- 'small': 0 8px,
853
- ),
854
- $table-cell-padding
855
- );
856
-
857
- // Pagination
858
- // css3 var in packages/theme-chalk/src/pagination.scss
859
- $pagination: () !default;
860
- $pagination: map.merge(
861
- (
862
- 'font-size': 14px,
863
- 'bg-color': getCssVar('fill-color', 'blank'),
864
- 'text-color': getCssVar('text-color-primary'),
865
- 'border-radius': 2px,
866
- 'button-color': getCssVar('text-color-primary'),
867
- 'button-width': 32px,
868
- 'button-height': 32px,
869
- 'button-disabled-color': getCssVar('text-color-placeholder'),
870
- 'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
871
- 'button-bg-color': getCssVar('fill-color'),
872
- 'hover-color': getCssVar('color-primary'),
873
- 'font-size-small': 12px,
874
- 'button-width-small': 24px,
875
- 'button-height-small': 24px,
876
- 'item-gap': 16px,
877
- ),
878
- $pagination
879
- );
880
-
881
- // Popup
882
- // css3 var in packages/theme-chalk/src/popup.scss
883
- $popup: () !default;
884
- $popup: map.merge(
885
- (
886
- 'modal-bg-color': getCssVar('color-black'),
887
- 'modal-opacity': 0.5,
888
- ),
889
- $popup
890
- );
891
-
892
- // Popover
893
- // css3 var in packages/theme-chalk/src/popover.scss
894
- $popover: () !default;
895
- $popover: map.merge(
896
- (
897
- 'bg-color': getCssVar('bg-color', 'overlay'),
898
- 'font-size': getCssVar('font-size-base'),
899
- 'border-color': getCssVar('border-color-lighter'),
900
- 'padding': 12px,
901
- 'padding-large': 18px 20px,
902
- 'title-font-size': 16px,
903
- 'title-text-color': getCssVar('text-color-primary'),
904
- 'border-radius': 4px,
905
- ),
906
- $popover
907
- );
908
-
909
- // popper
910
- // Pay attention to the difference between 'popper' and 'popover'
911
- $popper: () !default;
912
- $popper: map.merge(
913
- (
914
- 'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
915
- ),
916
- $popper
917
- );
918
-
919
- // skeleton
920
- $skeleton: () !default;
921
- $skeleton: map.merge(
922
- (
923
- 'color': getCssVar('fill-color'),
924
- 'to-color': getCssVar('fill-color', 'darker'),
925
- ),
926
- $skeleton
927
- );
928
-
929
- // Tag
930
- // css3 var in packages/theme-chalk/src/tag.scss
931
- $tag: () !default;
932
- $tag: map.merge(
933
- (
934
- 'font-size': 12px,
935
- 'border-radius': 4px,
936
- 'border-radius-rounded': 9999px,
937
- ),
938
- $tag
939
- );
940
-
941
- $tag-height: () !default;
942
- $tag-height: map.merge(
943
- (
944
- 'large': 32px,
945
- 'default': 24px,
946
- 'small': 20px,
947
- ),
948
- $tag-height
949
- );
950
-
951
- $tag-padding: () !default;
952
- $tag-padding: map.merge(
953
- (
954
- 'large': 12px,
955
- 'default': 10px,
956
- 'small': 8px,
957
- ),
958
- $tag-padding
959
- );
960
-
961
- $tag-icon-size: () !default;
962
- $tag-icon-size: map.merge(
963
- (
964
- 'large': 16px,
965
- 'default': 14px,
966
- 'small': 12px,
967
- ),
968
- $tag-icon-size
969
- );
970
-
971
- // Text
972
- // css3 var in packages/theme-chalk/src/text.scss
973
- $text: () !default;
974
- $text: map.merge(
975
- (
976
- 'font-size': getCssVar('font-size', 'base'),
977
- 'color': getCssVar('text-color', 'regular'),
978
- ),
979
- $text
980
- );
981
-
982
- $text-font-size: () !default;
983
- $text-font-size: map.merge(
984
- (
985
- 'large': getCssVar('font-size', 'medium'),
986
- 'default': getCssVar('font-size', 'base'),
987
- 'small': getCssVar('font-size', 'extra-small'),
988
- ),
989
- $text-font-size
990
- );
991
-
992
- // Tree
993
- // css3 var in packages/theme-chalk/src/tree.scss
994
- $tree: () !default;
995
- $tree: map.merge(
996
- (
997
- 'node-content-height': 26px,
998
- 'node-hover-bg-color': getCssVar('fill-color', 'light'),
999
- 'text-color': getCssVar('text-color-regular'),
1000
- 'expand-icon-color': getCssVar('text-color-placeholder'),
1001
- ),
1002
- $tree
1003
- );
1004
-
1005
- // Dropdown
1006
- $dropdown: () !default;
1007
- $dropdown: map.merge(
1008
- (
1009
- 'menu-box-shadow': getCssVar('box-shadow-light'),
1010
- 'menuItem-hover-fill': getCssVar('color-primary-light-9'),
1011
- 'menuItem-hover-color': getCssVar('color-primary'),
1012
- 'menu-index': 10,
1013
- ),
1014
- $dropdown
1015
- );
1016
-
1017
- // drawer
1018
- $drawer: () !default;
1019
- $drawer: map.merge(
1020
- (
1021
- 'bg-color': var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
1022
- 'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
1023
- ),
1024
- $drawer
1025
- );
1026
-
1027
- // Badge
1028
- // css3 var in packages/theme-chalk/src/badge.scss
1029
- $badge: () !default;
1030
- $badge: map.merge(
1031
- (
1032
- 'bg-color': getCssVar('color-danger'),
1033
- 'radius': 10px,
1034
- 'font-size': 12px,
1035
- 'padding': 6px,
1036
- 'size': 18px,
1037
- ),
1038
- $badge
1039
- );
1040
-
1041
- // Card
1042
- $card: () !default;
1043
- $card: map.merge(
1044
- (
1045
- 'border-color': getCssVar('border-color', 'light'),
1046
- 'border-radius': 4px,
1047
- 'padding': 20px,
1048
- 'bg-color': getCssVar('fill-color', 'blank'),
1049
- ),
1050
- $card
1051
- );
1052
-
1053
- // Slider
1054
- // css3 var in packages/theme-chalk/src/slider.scss
1055
- $slider: () !default;
1056
- $slider: map.merge(
1057
- (
1058
- '#{$namespace}-bg-color-primary': getCssVar('color-primary'),
1059
- 'runway-bg-color': getCssVar('border-color-light'),
1060
- 'stop-bg-color': getCssVar('color-white'),
1061
- 'disabled-color': getCssVar('text-color-placeholder'),
1062
- 'border-radius': 3px,
1063
- 'height': 6px,
1064
- 'button-size': 20px,
1065
- 'button-wrapper-size': 36px,
1066
- 'button-wrapper-offset': -15px,
1067
- ),
1068
- $slider
1069
- );
1070
-
1071
- // Menu
1072
- // css3 var in packages/theme-chalk/src/menu.scss
1073
- $menu: () !default;
1074
- $menu: map.merge(
1075
- (
1076
- 'active-color': getCssVar('color-primary'),
1077
- 'text-color': getCssVar('text-color-primary'),
1078
- 'hover-text-color': getCssVar('color-primary'),
1079
- 'bg-color': getCssVar('fill-color', 'blank'),
1080
- 'hover-bg-color': getCssVar('color-primary-light-9'),
1081
- 'item-height': 56px,
1082
- 'sub-item-height': calc(#{getCssVar('menu-item-height')} - 6px),
1083
- 'horizontal-height': 60px,
1084
- 'horizontal-sub-item-height': 36px,
1085
- 'item-font-size': getCssVar('font-size-base'),
1086
- 'item-hover-fill': getCssVar('color-primary-light-9'),
1087
- 'border-color': getCssVar('border-color'),
1088
- 'base-level-padding': 20px,
1089
- 'level-padding': 20px,
1090
- 'icon-width': 24px,
1091
- ),
1092
- $menu
1093
- );
1094
-
1095
- // Rate
1096
- $rate: () !default;
1097
- $rate: map.merge(
1098
- (
1099
- 'height': 20px,
1100
- 'font-size': getCssVar('font-size-base'),
1101
- 'icon-size': 18px,
1102
- 'icon-margin': 6px,
1103
- // seems not be used, to be removed
1104
- // 'icon-color': getCssVar('text-color-placeholder),
1105
- 'void-color': getCssVar('border-color', 'darker'),
1106
- 'fill-color': #f7ba2a,
1107
- 'disabled-void-color': getCssVar('fill-color'),
1108
- 'text-color': getCssVar('text-color', 'primary'),
1109
- ),
1110
- $rate
1111
- );
1112
-
1113
- // DatePicker
1114
- // css3 var packages/theme-chalk/src/date-picker/var.scss
1115
- $datepicker: () !default;
1116
- $datepicker: map.merge(
1117
- (
1118
- 'text-color': getCssVar('text-color-regular'),
1119
- 'off-text-color': getCssVar('text-color-placeholder'),
1120
- 'header-text-color': getCssVar('text-color-regular'),
1121
- 'icon-color': getCssVar('text-color-primary'),
1122
- 'border-color': getCssVar('disabled-border-color'),
1123
- 'inner-border-color': getCssVar('border-color-light'),
1124
- 'inrange-bg-color': getCssVar('border-color-extra-light'),
1125
- 'inrange-hover-bg-color': getCssVar('border-color-extra-light'),
1126
- 'active-color': getCssVar('color-primary'),
1127
- 'hover-text-color': getCssVar('color-primary'),
1128
- ),
1129
- $datepicker
1130
- );
1131
-
1132
- $date-editor: () !default;
1133
- $date-editor: map.merge(
1134
- (
1135
- 'width': 220px,
1136
- 'monthrange-width': 300px,
1137
- 'daterange-width': 350px,
1138
- 'datetimerange-width': 400px,
1139
- ),
1140
- $date-editor
1141
- );
1142
-
1143
- // Loading
1144
- // css3 var in packages/theme-chalk/src/loading.scss
1145
- $loading: () !default;
1146
- $loading: map.merge(
1147
- (
1148
- 'spinner-size': 42px,
1149
- 'fullscreen-spinner-size': 50px,
1150
- ),
1151
- $loading
1152
- );
1153
-
1154
- // Scrollbar
1155
- // css3 var in packages/theme-chalk/src/scrollbar.scss
1156
- $scrollbar: () !default;
1157
- $scrollbar: map.merge(
1158
- (
1159
- 'opacity': 0.3,
1160
- 'bg-color': getCssVar('text-color-secondary'),
1161
- 'hover-opacity': 0.5,
1162
- 'hover-bg-color': getCssVar('text-color-secondary'),
1163
- ),
1164
- $scrollbar
1165
- );
1166
-
1167
- // Carousel
1168
- // css3 var in packages/theme-chalk/src/carousel.scss
1169
- $carousel: () !default;
1170
- $carousel: map.merge(
1171
- (
1172
- 'arrow-font-size': 12px,
1173
- 'arrow-size': 36px,
1174
- 'arrow-background': rgba(31, 45, 61, 0.11),
1175
- 'arrow-hover-background': rgba(31, 45, 61, 0.23),
1176
- 'indicator-width': 30px,
1177
- 'indicator-height': 2px,
1178
- 'indicator-padding-horizontal': 4px,
1179
- 'indicator-padding-vertical': 12px,
1180
- 'indicator-out-color': getCssVar('border-color-hover'),
1181
- ),
1182
- $carousel
1183
- );
1184
-
1185
- // Collapse
1186
- // css3 var in packages/theme-chalk/src/collapse.scss
1187
- $collapse: () !default;
1188
- $collapse: map.merge(
1189
- (
1190
- 'border-color': getCssVar('border-color-lighter'),
1191
- 'header-height': 48px,
1192
- 'header-bg-color': getCssVar('fill-color', 'blank'),
1193
- 'header-text-color': getCssVar('text-color-primary'),
1194
- 'header-font-size': 13px,
1195
- 'content-bg-color': getCssVar('fill-color', 'blank'),
1196
- 'content-font-size': 13px,
1197
- 'content-text-color': getCssVar('text-color-primary'),
1198
- ),
1199
- $collapse
1200
- );
1201
-
1202
- // Transfer
1203
- // css3 var in packages/theme-chalk/src/transfer.scss
1204
- $transfer: () !default;
1205
- $transfer: map.merge(
1206
- (
1207
- 'border-color': getCssVar('border-color-lighter'),
1208
- 'border-radius': getCssVar('border-radius-base'),
1209
- 'panel-width': 200px,
1210
- 'panel-header-height': 40px,
1211
- 'panel-header-bg-color': getCssVar('fill-color', 'light'),
1212
- 'panel-footer-height': 40px,
1213
- 'panel-body-height': 278px,
1214
- 'item-height': 30px,
1215
- 'filter-height': 32px,
1216
- ),
1217
- $transfer
1218
- );
1219
-
1220
- // Timeline
1221
- // css3 var in packages/theme-chalk/src/timeline-item.scss
1222
- $timeline: () !default;
1223
- $timeline: map.merge(
1224
- (
1225
- 'node-size-normal': 12px,
1226
- 'node-size-large': 14px,
1227
- 'node-color': getCssVar('border-color-light'),
1228
- ),
1229
- $timeline
1230
- );
1231
-
1232
- // Tabs
1233
- // css3 var in packages/theme-chalk/src/tabs.scss
1234
- $tabs: () !default;
1235
- $tabs: map.merge(
1236
- (
1237
- 'header-height': 40px,
1238
- ),
1239
- $tabs
1240
- );
1241
-
1242
- // Backtop
1243
- // css3 var in packages/theme-chalk/src/backtop.scss
1244
- $backtop: () !default;
1245
- $backtop: map.merge(
1246
- (
1247
- 'bg-color': getCssVar('bg-color', 'overlay'),
1248
- 'text-color': getCssVar('color-primary'),
1249
- 'hover-bg-color': getCssVar('border-color-extra-light'),
1250
- ),
1251
- $backtop
1252
- );
1253
-
1254
- // Link
1255
- // css3 var in packages/theme-chalk/src/link.scss
1256
- $link: () !default;
1257
- $link: map.merge(
1258
- (
1259
- 'font-size': getCssVar('font-size-base'),
1260
- 'font-weight': getCssVar('font-weight-primary'),
1261
- 'text-color': getCssVar('text-color-regular'),
1262
- 'hover-text-color': getCssVar('color-primary'),
1263
- 'disabled-text-color': getCssVar('text-color-placeholder'),
1264
- ),
1265
- $link
1266
- );
1267
-
1268
- $link-text-color: () !default;
1269
-
1270
- @each $type in $types {
1271
- $link-text-color: map.merge(
1272
- $link-text-color,
1273
- (
1274
- $type: map.get($colors, $type, 'base'),
1275
- )
1276
- ) !global;
1277
- }
1278
-
1279
- // Calendar
1280
- // css3 var in packages/theme-chalk/src/calendar.scss
1281
- $calendar: () !default;
1282
- $calendar: map.merge(
1283
- (
1284
- 'border': var(#{getCssVarName('table-border')}, 1px solid #{getCssVar('border-color-lighter')}),
1285
- 'header-border-bottom': getCssVar('calendar-border'),
1286
- 'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
1287
- 'cell-width': 85px,
1288
- ),
1289
- $calendar
1290
- );
1291
-
1292
- // Form
1293
- // css3 var in packages/theme-chalk/src/form.scss
1294
- $form: () !default;
1295
- $form: map.merge(
1296
- (
1297
- 'label-font-size': getCssVar('font-size-base'),
1298
- 'inline-content-width': 220px,
1299
- ),
1300
- $form
1301
- );
1302
-
1303
- // Avatar
1304
- // css3 var in packages/theme-chalk/src/avatar.scss
1305
- $avatar: () !default;
1306
- $avatar: map.merge(
1307
- (
1308
- 'text-color': getCssVar('color-white'),
1309
- 'bg-color': getCssVar('text-color', 'disabled'),
1310
- 'text-size': 14px,
1311
- 'icon-size': 18px,
1312
- 'border-radius': getCssVar('border-radius-base'),
1313
- ),
1314
- $avatar
1315
- );
1316
-
1317
- $avatar-size: () !default;
1318
- $avatar-size: map.merge(
1319
- (
1320
- 'large': 56px,
1321
- 'default': 40px,
1322
- 'small': 24px,
1323
- ),
1324
- $avatar-size
1325
- );
1326
-
1327
- // Empty
1328
- // css3 var in packages/theme-chalk/src/empty.scss
1329
- $empty: () !default;
1330
- $empty: map.merge(
1331
- (
1332
- 'padding': 40px 0,
1333
- 'image-width': 160px,
1334
- 'description-margin-top': 20px,
1335
- 'bottom-margin-top': 20px,
1336
- 'fill-color-0': getCssVar('color-white'),
1337
- 'fill-color-1': #fcfcfd,
1338
- 'fill-color-2': #f8f9fb,
1339
- 'fill-color-3': #f7f8fc,
1340
- 'fill-color-4': #eeeff3,
1341
- 'fill-color-5': #edeef2,
1342
- 'fill-color-6': #e9ebef,
1343
- 'fill-color-7': #e5e7e9,
1344
- 'fill-color-8': #e0e3e9,
1345
- 'fill-color-9': #d5d7de,
1346
- ),
1347
- $empty
1348
- );
1349
-
1350
- // Descriptions
1351
- // css3 var in packages/theme-chalk/src/descriptions.scss
1352
- $descriptions: () !default;
1353
- $descriptions: map.merge(
1354
- (
1355
- 'table-border': 1px solid getCssVar('border-color-lighter'),
1356
- 'item-bordered-label-background': getCssVar('fill-color', 'light'),
1357
- ),
1358
- $descriptions
1359
- );
1360
-
1361
- // Result
1362
- // css3 var in packages/theme-chalk/src/result.scss
1363
- $result: () !default;
1364
- $result: map.merge(
1365
- (
1366
- 'padding': 40px 30px,
1367
- 'icon-font-size': 64px,
1368
- 'title-font-size': 20px,
1369
- 'title-margin-top': 20px,
1370
- 'subtitle-margin-top': 10px,
1371
- 'extra-margin-top': 30px,
1372
- ),
1373
- $result
1374
- );
1375
-
1376
- // Upload
1377
- // css3 var in packages/theme-chalk/src/upload.scss
1378
- $upload: () !default;
1379
- $upload: map.merge(
1380
- (
1381
- 'dragger-padding-horizontal': 40px,
1382
- 'dragger-padding-vertical': 10px,
1383
- ),
1384
- $upload
1385
- );
1386
-
1387
- // transition
1388
- $transition: () !default;
1389
- $transition: map.merge(
1390
- (
1391
- 'all': all getCssVar('transition-duration') getCssVar('transition-function-ease-in-out-bezier'),
1392
- 'fade': opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1393
- 'md-fade': (
1394
- transform getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1395
- opacity getCssVar('transition-duration') getCssVar('transition-function-fast-bezier'),
1396
- ),
1397
- 'fade-linear': opacity getCssVar('transition-duration-fast') linear,
1398
- 'border': border-color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1399
- 'box-shadow': box-shadow getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1400
- 'color': color getCssVar('transition-duration-fast') getCssVar('transition-function-ease-in-out-bezier'),
1401
- ),
1402
- $transition
1403
- );
1404
-
1405
- $transition-duration: () !default;
1406
- $transition-duration: map.merge(
1407
- (
1408
- '': 0.3s,
1409
- 'fast': 0.2s,
1410
- ),
1411
- $transition-duration
1412
- );
1413
-
1414
- $transition-function: () !default;
1415
- $transition-function: map.merge(
1416
- (
1417
- 'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
1418
- 'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
1419
- ),
1420
- $transition-function
1421
- );
1422
-
1423
- // header
1424
- $header: () !default;
1425
- $header: map.merge(
1426
- (
1427
- 'padding': 0 20px,
1428
- 'height': 60px,
1429
- ),
1430
- $header
1431
- );
1432
- // main
1433
- $main: () !default;
1434
- $main: map.merge(
1435
- (
1436
- 'padding': 20px,
1437
- ),
1438
- $main
1439
- );
1440
- // footer
1441
- $footer: () !default;
1442
- $footer: map.merge(
1443
- (
1444
- 'padding': 0 20px,
1445
- 'height': 60px,
1446
- ),
1447
- $footer
1448
- );
1449
-
1450
- // Break-point
1451
- $small: 768px !default;
1452
- $md: 992px !default;
1453
- $large: 1200px !default;
1454
- $xl: 1920px !default;
1455
-
1456
- $breakpoints: (
1457
- 'xs': '(max-width: #{$small - 1})',
1458
- 'small': '(min-width: #{$small})',
1459
- 'md': '(min-width: #{$md})',
1460
- 'large': '(min-width: #{$large})',
1461
- 'xl': '(min-width: #{$xl})',
1462
- ) !default;
1463
-
1464
- $breakpoints-spec: (
1465
- 'xs-only': '(max-width: #{$small - 1})',
1466
- 'small-and-up': '(min-width: #{$small})',
1467
- 'small-only': '(min-width: #{$small}) and (max-width: #{$md - 1})',
1468
- 'small-and-down': '(max-width: #{$md - 1})',
1469
- 'md-and-up': '(min-width: #{$md})',
1470
- 'md-only': '(min-width: #{$md}) and (max-width: #{$large - 1})',
1471
- 'md-and-down': '(max-width: #{$large - 1})',
1472
- 'large-and-up': '(min-width: #{$large})',
1473
- 'large-only': '(min-width: #{$large}) and (max-width: #{$xl - 1})',
1474
- 'large-and-down': '(max-width: #{$xl - 1})',
1475
- 'xl-only': '(min-width: #{$xl})',
1476
- ) !default;