@qsxy/element-plus-react 1.0.0-next.8 → 1.0.2

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