acud 1.2.17 → 1.2.18

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 (1443) hide show
  1. package/dist/acud.js +12452 -19749
  2. package/dist/acud.js.map +1 -1
  3. package/es/_util/colors.d.ts +3 -3
  4. package/es/_util/colors.js +2 -2
  5. package/es/_util/easings.js +2 -4
  6. package/es/_util/getDataOrAriaProps.js +0 -1
  7. package/es/_util/getRenderPropValue.d.ts +1 -1
  8. package/es/_util/getRenderPropValue.js +0 -3
  9. package/es/_util/getScroll.js +0 -4
  10. package/es/_util/hooks/useCombinedRefs.js +0 -2
  11. package/es/_util/hooks/useFlexGapSupport.js +3 -4
  12. package/es/_util/hooks/useForceUpdate.js +4 -5
  13. package/es/_util/hooks/useMergedState.js +17 -26
  14. package/es/_util/hooks/usePatchElement.js +5 -6
  15. package/es/_util/hooks/useSyncState.d.ts +1 -1
  16. package/es/_util/hooks/useSyncState.js +2 -2
  17. package/es/_util/isNumeric.js +0 -1
  18. package/es/_util/motion.d.ts +1 -1
  19. package/es/_util/motion.js +2 -11
  20. package/es/_util/reactNode.d.ts +2 -2
  21. package/es/_util/reactNode.js +0 -1
  22. package/es/_util/responsiveObserve.d.ts +5 -5
  23. package/es/_util/responsiveObserve.js +0 -8
  24. package/es/_util/scrollTo.js +6 -10
  25. package/es/_util/statusUtils.d.ts +1 -1
  26. package/es/_util/statusUtils.js +0 -1
  27. package/es/_util/styleChecker.js +6 -10
  28. package/es/_util/throttleByAnimationFrame.js +0 -6
  29. package/es/_util/type.d.ts +3 -3
  30. package/es/_util/type.js +0 -2
  31. package/es/affix/index.d.ts +1 -1
  32. package/es/affix/index.js +33 -88
  33. package/es/affix/utils.d.ts +2 -2
  34. package/es/affix/utils.js +6 -14
  35. package/es/alert/ErrorBoundary.js +5 -16
  36. package/es/alert/index.js +28 -54
  37. package/es/anchor/Anchor.d.ts +2 -2
  38. package/es/anchor/Anchor.js +21 -72
  39. package/es/anchor/AnchorLink.d.ts +2 -2
  40. package/es/anchor/AnchorLink.js +13 -32
  41. package/es/anchor/style/css.js +2 -1
  42. package/es/anchor/style/index.js +2 -1
  43. package/es/avatar/SizeContext.d.ts +1 -1
  44. package/es/avatar/SizeContext.js +1 -1
  45. package/es/avatar/avatar.js +27 -55
  46. package/es/avatar/group.js +12 -17
  47. package/es/avatar/style/css.js +2 -2
  48. package/es/avatar/style/index.js +2 -2
  49. package/es/back-top/index.js +14 -27
  50. package/es/badge/Ribbon.d.ts +1 -1
  51. package/es/badge/Ribbon.js +9 -17
  52. package/es/badge/ScrollNumber.js +20 -34
  53. package/es/badge/SingleNumber.d.ts +2 -2
  54. package/es/badge/SingleNumber.js +23 -39
  55. package/es/badge/index.js +47 -75
  56. package/es/badge/style/index.css +14 -119
  57. package/es/badge/utils.js +2 -2
  58. package/es/breadcrumb/Breadcrumb.js +13 -25
  59. package/es/breadcrumb/BreadcrumbItem.js +13 -31
  60. package/es/button/LoadingIcon.d.ts +2 -1
  61. package/es/button/LoadingIcon.js +0 -2
  62. package/es/button/button-group.d.ts +1 -1
  63. package/es/button/button-group.js +2 -12
  64. package/es/button/button.d.ts +6 -6
  65. package/es/button/button.js +23 -46
  66. package/es/calendar/Header.d.ts +2 -2
  67. package/es/calendar/Header.js +26 -49
  68. package/es/calendar/generateCalendar.d.ts +8 -8
  69. package/es/calendar/generateCalendar.js +43 -69
  70. package/es/calendar/index.d.ts +1 -1
  71. package/es/calendar/interface.d.ts +4 -4
  72. package/es/calendar/style/css.js +2 -2
  73. package/es/calendar/style/index.js +2 -2
  74. package/es/card/Card.d.ts +4 -4
  75. package/es/card/Card.js +40 -62
  76. package/es/card/Grid.js +5 -14
  77. package/es/card/Meta.js +7 -17
  78. package/es/card/style/css.js +2 -2
  79. package/es/card/style/index.css +2 -13
  80. package/es/card/style/index.js +2 -2
  81. package/es/carousel/carousel.d.ts +3 -3
  82. package/es/carousel/carousel.js +48 -64
  83. package/es/carousel/indicator.js +14 -22
  84. package/es/carousel/switch.js +2 -4
  85. package/es/cascader/Cascader.d.ts +4 -4
  86. package/es/cascader/Cascader.js +41 -147
  87. package/es/cascader/MenuItem.d.ts +1 -1
  88. package/es/cascader/MenuItem.js +16 -23
  89. package/es/cascader/Menus.d.ts +5 -5
  90. package/es/cascader/Menus.js +87 -153
  91. package/es/cascader/index.d.ts +1 -1
  92. package/es/cascader/index.js +71 -155
  93. package/es/cascader/renderEmpty.d.ts +1 -1
  94. package/es/cascader/renderEmpty.js +0 -2
  95. package/es/cascader/style/css.js +2 -2
  96. package/es/cascader/style/index.css +4 -8
  97. package/es/cascader/style/index.js +2 -2
  98. package/es/cascader/utils.js +2 -8
  99. package/es/checkbox/BaseCheckbox.d.ts +1 -1
  100. package/es/checkbox/BaseCheckbox.js +22 -46
  101. package/es/checkbox/ButtonCheckbox.d.ts +1 -1
  102. package/es/checkbox/ButtonCheckbox.js +9 -33
  103. package/es/checkbox/Checkbox.js +19 -35
  104. package/es/checkbox/Group.d.ts +1 -1
  105. package/es/checkbox/Group.js +20 -45
  106. package/es/checkbox/GroupButtonCheckbox.d.ts +2 -1
  107. package/es/checkbox/GroupButtonCheckbox.js +12 -26
  108. package/es/checkbox/style/index.css +1 -12
  109. package/es/clear/index.d.ts +2 -1
  110. package/es/clear/index.js +4 -14
  111. package/es/col/style/css.js +2 -2
  112. package/es/col/style/index.js +2 -2
  113. package/es/collapse/Collapse.d.ts +1 -1
  114. package/es/collapse/Collapse.js +3 -14
  115. package/es/collapse/CollapsePanel.js +3 -6
  116. package/es/color-picker/colorPicker.d.ts +1 -1
  117. package/es/color-picker/colorPicker.js +37 -46
  118. package/es/color-picker/style/css.js +2 -2
  119. package/es/color-picker/style/index.js +2 -2
  120. package/es/color-picker/util.js +4 -7
  121. package/es/config-provider/DisabledContext.d.ts +1 -1
  122. package/es/config-provider/DisabledContext.js +1 -1
  123. package/es/config-provider/SizeContext.d.ts +1 -1
  124. package/es/config-provider/SizeContext.js +1 -1
  125. package/es/config-provider/context.d.ts +2 -2
  126. package/es/config-provider/context.js +0 -6
  127. package/es/config-provider/index.js +24 -40
  128. package/es/config-provider/renderEmpty.d.ts +1 -1
  129. package/es/config-provider/renderEmpty.js +0 -7
  130. package/es/date-picker/PickerButton.d.ts +2 -2
  131. package/es/date-picker/PickerTag.d.ts +2 -2
  132. package/es/date-picker/generatePicker/generateRangePicker.js +15 -36
  133. package/es/date-picker/generatePicker/generateSinglePicker.js +14 -40
  134. package/es/date-picker/generatePicker/index.d.ts +12 -12
  135. package/es/date-picker/generatePicker/index.js +12 -26
  136. package/es/date-picker/index.d.ts +4 -4
  137. package/es/date-picker/locale/en_US.js +2 -2
  138. package/es/date-picker/locale/zh_CN.js +4 -4
  139. package/es/date-picker/src/PanelContext.d.ts +2 -2
  140. package/es/date-picker/src/Picker.d.ts +8 -8
  141. package/es/date-picker/src/Picker.js +167 -213
  142. package/es/date-picker/src/PickerPanel.d.ts +6 -6
  143. package/es/date-picker/src/PickerPanel.js +113 -167
  144. package/es/date-picker/src/PickerTrigger.d.ts +3 -3
  145. package/es/date-picker/src/PickerTrigger.js +11 -18
  146. package/es/date-picker/src/RangeContext.d.ts +1 -1
  147. package/es/date-picker/src/RangePicker.d.ts +11 -11
  148. package/es/date-picker/src/RangePicker.js +259 -376
  149. package/es/date-picker/src/generate/dateFns.js +0 -6
  150. package/es/date-picker/src/generate/dayjs.js +2 -15
  151. package/es/date-picker/src/generate/index.d.ts +1 -1
  152. package/es/date-picker/src/generate/moment.js +2 -11
  153. package/es/date-picker/src/hooks/useCellClassName.js +8 -14
  154. package/es/date-picker/src/hooks/useHoverValue.js +11 -20
  155. package/es/date-picker/src/hooks/usePickerInput.js +23 -44
  156. package/es/date-picker/src/hooks/useRangeDisabled.js +13 -29
  157. package/es/date-picker/src/hooks/useRangeViewDates.js +17 -40
  158. package/es/date-picker/src/hooks/useTextValueMapping.js +4 -9
  159. package/es/date-picker/src/hooks/useValueTexts.d.ts +1 -1
  160. package/es/date-picker/src/hooks/useValueTexts.js +4 -8
  161. package/es/date-picker/src/interface.d.ts +15 -15
  162. package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
  163. package/es/date-picker/src/panels/DatePanel/DateBody.js +13 -20
  164. package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
  165. package/es/date-picker/src/panels/DatePanel/DateHeader.js +12 -17
  166. package/es/date-picker/src/panels/DatePanel/index.d.ts +3 -3
  167. package/es/date-picker/src/panels/DatePanel/index.js +17 -20
  168. package/es/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
  169. package/es/date-picker/src/panels/DatetimePanel/index.js +15 -21
  170. package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
  171. package/es/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -7
  172. package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
  173. package/es/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -10
  174. package/es/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
  175. package/es/date-picker/src/panels/DecadePanel/index.js +10 -14
  176. package/es/date-picker/src/panels/Header.d.ts +2 -2
  177. package/es/date-picker/src/panels/Header.js +15 -19
  178. package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
  179. package/es/date-picker/src/panels/MonthPanel/MonthBody.js +7 -11
  180. package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
  181. package/es/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -12
  182. package/es/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
  183. package/es/date-picker/src/panels/MonthPanel/index.js +11 -15
  184. package/es/date-picker/src/panels/PanelBody.d.ts +2 -2
  185. package/es/date-picker/src/panels/PanelBody.js +22 -33
  186. package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
  187. package/es/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -10
  188. package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
  189. package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -12
  190. package/es/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
  191. package/es/date-picker/src/panels/QuarterPanel/index.js +11 -14
  192. package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
  193. package/es/date-picker/src/panels/TimePanel/TimeBody.js +55 -75
  194. package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
  195. package/es/date-picker/src/panels/TimePanel/TimeHeader.js +5 -9
  196. package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
  197. package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -19
  198. package/es/date-picker/src/panels/TimePanel/index.d.ts +4 -4
  199. package/es/date-picker/src/panels/TimePanel/index.js +17 -21
  200. package/es/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
  201. package/es/date-picker/src/panels/WeekPanel/index.js +6 -12
  202. package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
  203. package/es/date-picker/src/panels/YearPanel/YearBody.js +8 -14
  204. package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
  205. package/es/date-picker/src/panels/YearPanel/YearHeader.js +6 -11
  206. package/es/date-picker/src/panels/YearPanel/index.d.ts +3 -3
  207. package/es/date-picker/src/panels/YearPanel/index.js +12 -16
  208. package/es/date-picker/src/utils/dateUtil.js +11 -53
  209. package/es/date-picker/src/utils/getExtraFooter.d.ts +1 -1
  210. package/es/date-picker/src/utils/getExtraFooter.js +0 -1
  211. package/es/date-picker/src/utils/getRanges.d.ts +3 -3
  212. package/es/date-picker/src/utils/getRanges.js +8 -13
  213. package/es/date-picker/src/utils/miscUtil.d.ts +1 -1
  214. package/es/date-picker/src/utils/miscUtil.js +0 -6
  215. package/es/date-picker/src/utils/timeUtil.js +0 -5
  216. package/es/date-picker/src/utils/uiUtil.d.ts +2 -2
  217. package/es/date-picker/src/utils/uiUtil.js +14 -63
  218. package/es/date-picker/style/css.js +2 -2
  219. package/es/date-picker/style/index.css +4 -9
  220. package/es/date-picker/style/index.js +2 -2
  221. package/es/date-picker/util.js +0 -11
  222. package/es/dialog-box/dialogbox.js +16 -30
  223. package/es/dialog-box/style/index.css +1 -2
  224. package/es/divider/index.js +13 -26
  225. package/es/drawer/index.d.ts +3 -3
  226. package/es/drawer/index.js +55 -87
  227. package/es/drawer/style/index.css +1 -10
  228. package/es/dropdown/dropdown-button.js +23 -35
  229. package/es/dropdown/dropdown.d.ts +3 -3
  230. package/es/dropdown/dropdown.js +24 -42
  231. package/es/dropdown/rc-dropdown/Dropdown.js +24 -58
  232. package/es/dropdown/style/css.js +2 -2
  233. package/es/dropdown/style/index.js +2 -2
  234. package/es/empty/index.js +11 -23
  235. package/es/flow/index.js +13 -16
  236. package/es/form/ErrorList.d.ts +1 -1
  237. package/es/form/ErrorList.js +22 -27
  238. package/es/form/Form.d.ts +2 -2
  239. package/es/form/Form.js +30 -50
  240. package/es/form/FormItem.d.ts +4 -4
  241. package/es/form/FormItem.js +57 -109
  242. package/es/form/FormItemInput.js +17 -21
  243. package/es/form/FormItemLabel.d.ts +2 -2
  244. package/es/form/FormItemLabel.js +27 -50
  245. package/es/form/FormList.js +4 -15
  246. package/es/form/hooks/useCacheErrors.js +0 -6
  247. package/es/form/hooks/useForm.js +2 -8
  248. package/es/form/hooks/useFrameState.d.ts +1 -1
  249. package/es/form/hooks/useFrameState.js +3 -9
  250. package/es/form/hooks/useItemRef.js +1 -7
  251. package/es/form/index.d.ts +1 -1
  252. package/es/form/index.js +0 -2
  253. package/es/form/interface.d.ts +1 -1
  254. package/es/form/style/css.js +4 -3
  255. package/es/form/style/index.css +16 -72
  256. package/es/form/style/index.js +4 -3
  257. package/es/form/util.js +0 -4
  258. package/es/grid/col.d.ts +2 -2
  259. package/es/grid/col.js +21 -41
  260. package/es/grid/hooks/useBreakpoint.js +0 -3
  261. package/es/grid/row.d.ts +1 -1
  262. package/es/grid/row.js +24 -41
  263. package/es/icon/index.js +0 -1
  264. package/es/img-crop/EasyCrop.js +30 -38
  265. package/es/img-crop/index.js +178 -241
  266. package/es/img-crop/interface.d.ts +4 -4
  267. package/es/img-crop/style/css.js +2 -2
  268. package/es/img-crop/style/index.js +2 -2
  269. package/es/input/AutoComplete.d.ts +2 -1
  270. package/es/input/AutoComplete.js +9 -18
  271. package/es/input/Input.js +49 -102
  272. package/es/input/Label.js +18 -53
  273. package/es/input/MultiSelectInput.js +6 -11
  274. package/es/input/Password.js +26 -53
  275. package/es/input/TextArea.js +34 -60
  276. package/es/input-number/index.d.ts +1 -1
  277. package/es/input-number/index.js +15 -25
  278. package/es/input-number/src/InputNumber.js +117 -187
  279. package/es/input-number/src/StepHandler.d.ts +1 -1
  280. package/es/input-number/src/StepHandler.js +14 -22
  281. package/es/input-number/src/hooks/useCursor.js +7 -14
  282. package/es/input-number/src/hooks/useFrame.js +0 -3
  283. package/es/input-number/src/hooks/useUpdateEffect.js +0 -2
  284. package/es/input-number/src/utils/MiniDecimal.d.ts +1 -1
  285. package/es/input-number/src/utils/MiniDecimal.js +18 -66
  286. package/es/input-number/src/utils/numberUtil.js +14 -27
  287. package/es/layout/Sider.d.ts +2 -2
  288. package/es/layout/Sider.js +44 -75
  289. package/es/layout/index.d.ts +1 -1
  290. package/es/layout/layout.js +17 -33
  291. package/es/link/link.d.ts +4 -4
  292. package/es/link/link.js +14 -28
  293. package/es/loading/icon.d.ts +2 -1
  294. package/es/loading/icon.js +1 -3
  295. package/es/loading/index.js +12 -18
  296. package/es/loading/style/index.css +7 -112
  297. package/es/locale/en_US.js +2 -2
  298. package/es/locale/zh_CN.js +2 -2
  299. package/es/locale-provider/LocaleReceiver.d.ts +1 -1
  300. package/es/locale-provider/LocaleReceiver.js +4 -13
  301. package/es/locale-provider/demo/locale.js +2 -2
  302. package/es/locale-provider/index.d.ts +1 -1
  303. package/es/locale-provider/index.js +4 -14
  304. package/es/menu/ItemGroup.js +4 -10
  305. package/es/menu/MenuHead.js +5 -18
  306. package/es/menu/MenuItem.js +7 -21
  307. package/es/menu/SubMenu.js +5 -17
  308. package/es/menu/baseMenu.js +11 -22
  309. package/es/menu/globalSilderBar.js +18 -32
  310. package/es/menu/header.js +7 -12
  311. package/es/menu/menu.js +8 -16
  312. package/es/menu/rc-menu/Divider.d.ts +1 -1
  313. package/es/menu/rc-menu/Divider.js +2 -6
  314. package/es/menu/rc-menu/Icon.js +2 -4
  315. package/es/menu/rc-menu/Menu.js +162 -188
  316. package/es/menu/rc-menu/MenuItem.js +54 -87
  317. package/es/menu/rc-menu/MenuItemGroup.js +7 -20
  318. package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
  319. package/es/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -32
  320. package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
  321. package/es/menu/rc-menu/SubMenu/PopupTrigger.js +22 -27
  322. package/es/menu/rc-menu/SubMenu/SubMenuList.js +5 -15
  323. package/es/menu/rc-menu/SubMenu/index.d.ts +1 -1
  324. package/es/menu/rc-menu/SubMenu/index.js +83 -113
  325. package/es/menu/rc-menu/context/IdContext.js +0 -2
  326. package/es/menu/rc-menu/context/MenuContext.d.ts +1 -1
  327. package/es/menu/rc-menu/context/MenuContext.js +3 -14
  328. package/es/menu/rc-menu/context/PathContext.js +2 -2
  329. package/es/menu/rc-menu/hooks/useAccessibility.js +43 -82
  330. package/es/menu/rc-menu/hooks/useActive.js +5 -8
  331. package/es/menu/rc-menu/hooks/useDirectionStyle.js +3 -5
  332. package/es/menu/rc-menu/hooks/useKeyRecords.js +7 -25
  333. package/es/menu/rc-menu/hooks/useMemoCallback.js +0 -4
  334. package/es/menu/rc-menu/hooks/useUUID.js +5 -6
  335. package/es/menu/rc-menu/index.d.ts +1 -1
  336. package/es/menu/rc-menu/index.js +0 -1
  337. package/es/menu/rc-menu/interface.d.ts +7 -7
  338. package/es/menu/rc-menu/utils/motionUtil.js +0 -2
  339. package/es/menu/rc-menu/utils/nodeUtil.js +0 -6
  340. package/es/menu/rc-menu/utils/warnUtil.js +2 -9
  341. package/es/menu/style/css.js +2 -2
  342. package/es/menu/style/index.js +2 -2
  343. package/es/modal/DialogBox.js +19 -39
  344. package/es/modal/Modal.js +17 -28
  345. package/es/modal/dialog.js +0 -16
  346. package/es/modal/locale.js +0 -2
  347. package/es/modal/style/css.js +2 -2
  348. package/es/modal/style/index.css +1 -2
  349. package/es/modal/style/index.js +2 -2
  350. package/es/pagination/pagination.d.ts +1 -1
  351. package/es/pagination/pagination.js +11 -25
  352. package/es/pagination/rc-pagination/Goto.js +7 -21
  353. package/es/pagination/rc-pagination/Options.js +12 -18
  354. package/es/pagination/rc-pagination/Pager.js +8 -12
  355. package/es/pagination/rc-pagination/Pagination.js +64 -124
  356. package/es/pagination/style/css.js +2 -2
  357. package/es/pagination/style/index.css +6 -0
  358. package/es/pagination/style/index.js +2 -2
  359. package/es/pagination/style/index.less +10 -0
  360. package/es/popconfirm/index.d.ts +1 -1
  361. package/es/popconfirm/index.js +18 -41
  362. package/es/popconfirm/style/css.js +2 -2
  363. package/es/popconfirm/style/index.js +2 -2
  364. package/es/popover/index.js +5 -15
  365. package/es/progress/CircleProgress.js +48 -53
  366. package/es/progress/LineProgress.js +39 -44
  367. package/es/progress/common/index.js +2 -2
  368. package/es/progress/index.js +33 -44
  369. package/es/progress/interface.d.ts +6 -6
  370. package/es/radio/Radio.js +12 -31
  371. package/es/radio/RadioButton.d.ts +2 -1
  372. package/es/radio/RadioButton.js +14 -30
  373. package/es/radio/RadioGroup.d.ts +1 -1
  374. package/es/radio/RadioGroup.js +16 -22
  375. package/es/rate/rate.js +72 -110
  376. package/es/row/style/css.js +2 -2
  377. package/es/row/style/index.js +2 -2
  378. package/es/search/Search.js +40 -61
  379. package/es/search/style/css.js +2 -2
  380. package/es/search/style/index.js +2 -2
  381. package/es/select/index.d.ts +4 -4
  382. package/es/select/index.js +29 -43
  383. package/es/select/src/OptGroup.js +0 -1
  384. package/es/select/src/Option.js +0 -1
  385. package/es/select/src/OptionList.js +104 -172
  386. package/es/select/src/Select.d.ts +2 -2
  387. package/es/select/src/Select.js +0 -12
  388. package/es/select/src/SelectTrigger.js +28 -44
  389. package/es/select/src/Selector/Input.d.ts +1 -1
  390. package/es/select/src/Selector/Input.js +26 -33
  391. package/es/select/src/Selector/MultipleSelector.js +51 -71
  392. package/es/select/src/Selector/SingleSelector.js +29 -37
  393. package/es/select/src/Selector/index.js +22 -47
  394. package/es/select/src/TransBtn.js +6 -11
  395. package/es/select/src/generate.js +231 -347
  396. package/es/select/src/hooks/useCacheDisplayValue.js +1 -4
  397. package/es/select/src/hooks/useCacheOptions.js +0 -2
  398. package/es/select/src/hooks/useDelayReset.js +3 -11
  399. package/es/select/src/hooks/useLayoutEffect.js +0 -1
  400. package/es/select/src/hooks/useLock.js +2 -6
  401. package/es/select/src/hooks/useSelectTriggerControl.js +0 -3
  402. package/es/select/src/interface/generator.d.ts +12 -12
  403. package/es/select/src/interface/index.d.ts +5 -5
  404. package/es/select/src/utils/commonUtil.js +8 -26
  405. package/es/select/src/utils/legacyUtil.js +11 -23
  406. package/es/select/src/utils/valueUtil.js +23 -62
  407. package/es/select/src/utils/warningPropsUtil.js +30 -46
  408. package/es/select/style/css.js +2 -2
  409. package/es/select/style/index.css +4 -8
  410. package/es/select/style/index.js +2 -2
  411. package/es/select/utils/iconUtil.js +16 -26
  412. package/es/skeleton/Avatar.d.ts +2 -1
  413. package/es/skeleton/Avatar.js +3 -7
  414. package/es/skeleton/Button.d.ts +2 -1
  415. package/es/skeleton/Button.js +5 -10
  416. package/es/skeleton/Element.d.ts +1 -1
  417. package/es/skeleton/Element.js +4 -7
  418. package/es/skeleton/Image.d.ts +2 -1
  419. package/es/skeleton/Image.js +6 -9
  420. package/es/skeleton/Input.d.ts +2 -1
  421. package/es/skeleton/Input.js +4 -9
  422. package/es/skeleton/Node.js +4 -9
  423. package/es/skeleton/Paragraph.d.ts +2 -2
  424. package/es/skeleton/Paragraph.js +7 -15
  425. package/es/skeleton/Skeleton.d.ts +5 -5
  426. package/es/skeleton/Skeleton.js +21 -49
  427. package/es/skeleton/Title.d.ts +1 -1
  428. package/es/skeleton/Title.js +3 -5
  429. package/es/skeleton/style/index.css +1 -10
  430. package/es/slider/SliderTooltip.js +0 -5
  431. package/es/slider/index.js +21 -41
  432. package/es/slider/interface.d.ts +1 -1
  433. package/es/space/Item.d.ts +1 -1
  434. package/es/space/Item.js +10 -15
  435. package/es/space/index.d.ts +1 -1
  436. package/es/space/index.js +29 -48
  437. package/es/steps/index.d.ts +1 -1
  438. package/es/steps/index.js +10 -19
  439. package/es/steps/interface.d.ts +1 -1
  440. package/es/steps/src/step.d.ts +1 -1
  441. package/es/steps/src/step.js +39 -66
  442. package/es/steps/src/steps.d.ts +3 -3
  443. package/es/steps/src/steps.js +24 -47
  444. package/es/steps/style/css.js +2 -1
  445. package/es/steps/style/index.js +2 -1
  446. package/es/style/index.css +144 -526
  447. package/es/switch/index.js +19 -34
  448. package/es/switch/interface.d.ts +2 -2
  449. package/es/switch/style/index.css +8 -32
  450. package/es/table/Column.js +0 -2
  451. package/es/table/ColumnGroup.js +0 -2
  452. package/es/table/ExpandIcon.d.ts +1 -1
  453. package/es/table/ExpandIcon.js +4 -8
  454. package/es/table/Space.js +4 -10
  455. package/es/table/Table.d.ts +1 -1
  456. package/es/table/Table.js +114 -166
  457. package/es/table/baseTable/Body/BodyRow.d.ts +1 -1
  458. package/es/table/baseTable/Body/BodyRow.js +42 -65
  459. package/es/table/baseTable/Body/ExpandedRow.d.ts +1 -1
  460. package/es/table/baseTable/Body/ExpandedRow.js +13 -20
  461. package/es/table/baseTable/Body/MeasureCell.d.ts +1 -1
  462. package/es/table/baseTable/Body/MeasureCell.js +1 -1
  463. package/es/table/baseTable/Body/MeasureRow.d.ts +1 -1
  464. package/es/table/baseTable/Body/MeasureRow.js +3 -5
  465. package/es/table/baseTable/Body/index.d.ts +1 -1
  466. package/es/table/baseTable/Body/index.js +23 -33
  467. package/es/table/baseTable/Cell/index.d.ts +1 -1
  468. package/es/table/baseTable/Cell/index.js +58 -98
  469. package/es/table/baseTable/ColGroup.d.ts +2 -2
  470. package/es/table/baseTable/ColGroup.js +7 -19
  471. package/es/table/baseTable/FixedHolder/index.js +29 -46
  472. package/es/table/baseTable/Footer/Cell.d.ts +1 -1
  473. package/es/table/baseTable/Footer/Cell.js +11 -14
  474. package/es/table/baseTable/Footer/Row.d.ts +1 -1
  475. package/es/table/baseTable/Footer/Row.js +2 -8
  476. package/es/table/baseTable/Footer/Summary.js +0 -2
  477. package/es/table/baseTable/Footer/index.d.ts +2 -2
  478. package/es/table/baseTable/Footer/index.js +2 -4
  479. package/es/table/baseTable/Header/Header.js +9 -23
  480. package/es/table/baseTable/Header/HeaderRow.d.ts +2 -2
  481. package/es/table/baseTable/Header/HeaderRow.js +8 -16
  482. package/es/table/baseTable/Panel/index.d.ts +1 -1
  483. package/es/table/baseTable/Panel/index.js +1 -3
  484. package/es/table/baseTable/Table.d.ts +1 -1
  485. package/es/table/baseTable/Table.js +127 -195
  486. package/es/table/baseTable/context/StickyContext.js +2 -2
  487. package/es/table/baseTable/hooks/useColumns.js +40 -82
  488. package/es/table/baseTable/hooks/useFlattenRecords.js +4 -10
  489. package/es/table/baseTable/hooks/useFrame.d.ts +1 -1
  490. package/es/table/baseTable/hooks/useFrame.js +2 -13
  491. package/es/table/baseTable/hooks/useSticky.js +12 -14
  492. package/es/table/baseTable/hooks/useStickyOffsets.js +4 -9
  493. package/es/table/baseTable/interface.d.ts +20 -20
  494. package/es/table/baseTable/stickyScrollBar.js +14 -40
  495. package/es/table/baseTable/sugar/Column.js +0 -2
  496. package/es/table/baseTable/sugar/ColumnGroup.js +0 -2
  497. package/es/table/baseTable/utils/expandUtil.d.ts +2 -2
  498. package/es/table/baseTable/utils/expandUtil.js +4 -10
  499. package/es/table/baseTable/utils/fixUtil.js +0 -4
  500. package/es/table/baseTable/utils/legacyUtil.js +2 -13
  501. package/es/table/baseTable/utils/valueUtil.js +2 -17
  502. package/es/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
  503. package/es/table/hooks/useFilter/FilterDropdown.js +50 -102
  504. package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
  505. package/es/table/hooks/useFilter/FilterSearch.js +6 -9
  506. package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
  507. package/es/table/hooks/useFilter/FilterWrapper.js +0 -2
  508. package/es/table/hooks/useFilter/index.js +20 -45
  509. package/es/table/hooks/useLazyKVMap.js +0 -6
  510. package/es/table/hooks/usePagination.js +15 -36
  511. package/es/table/hooks/useSelection.d.ts +1 -1
  512. package/es/table/hooks/useSelection.js +105 -167
  513. package/es/table/hooks/useSorter.js +21 -65
  514. package/es/table/hooks/useTitleColumns.js +0 -5
  515. package/es/table/interface.d.ts +15 -15
  516. package/es/table/style/css.js +2 -2
  517. package/es/table/style/index.css +0 -3
  518. package/es/table/style/index.js +2 -2
  519. package/es/table/util.js +0 -3
  520. package/es/tabs/src/TabNavList/AddButton.js +4 -8
  521. package/es/tabs/src/TabNavList/OperationNode.js +33 -55
  522. package/es/tabs/src/TabNavList/TabNode.js +25 -48
  523. package/es/tabs/src/TabNavList/index.js +129 -192
  524. package/es/tabs/src/TabPanelList/TabPane.d.ts +1 -1
  525. package/es/tabs/src/TabPanelList/TabPane.js +12 -16
  526. package/es/tabs/src/TabPanelList/index.d.ts +1 -1
  527. package/es/tabs/src/TabPanelList/index.js +7 -9
  528. package/es/tabs/src/Tabs.d.ts +1 -1
  529. package/es/tabs/src/Tabs.js +67 -96
  530. package/es/tabs/src/hooks/useOffsets.js +6 -11
  531. package/es/tabs/src/hooks/useRaf.d.ts +1 -1
  532. package/es/tabs/src/hooks/useRaf.js +2 -9
  533. package/es/tabs/src/hooks/useRefs.js +0 -4
  534. package/es/tabs/src/hooks/useSyncState.d.ts +1 -1
  535. package/es/tabs/src/hooks/useSyncState.js +2 -7
  536. package/es/tabs/src/hooks/useTouchMove.js +32 -48
  537. package/es/tabs/src/hooks/useVisibleRange.js +2 -13
  538. package/es/tabs/src/interface.d.ts +8 -8
  539. package/es/tabs/tabs.d.ts +3 -3
  540. package/es/tabs/tabs.js +10 -24
  541. package/es/tag/CheckableTag.js +7 -19
  542. package/es/tag/index.d.ts +1 -1
  543. package/es/tag/index.js +19 -40
  544. package/es/tag/style/index.css +1 -12
  545. package/es/time-picker/index.d.ts +1 -1
  546. package/es/time-picker/index.js +9 -22
  547. package/es/time-picker/style/css.js +4 -4
  548. package/es/time-picker/style/index.css +0 -1
  549. package/es/time-picker/style/index.js +4 -4
  550. package/es/timeline/interface.d.ts +1 -1
  551. package/es/timeline/style/index.css +4 -27
  552. package/es/timeline/timeline.js +16 -23
  553. package/es/timeline/timelineItem.js +23 -51
  554. package/es/toast/PurePanel.d.ts +2 -2
  555. package/es/toast/PurePanel.js +23 -34
  556. package/es/toast/base.d.ts +1 -1
  557. package/es/toast/base.js +63 -94
  558. package/es/toast/index.js +38 -61
  559. package/es/toast/interface.d.ts +3 -3
  560. package/es/toast/style/index.css +17 -64
  561. package/es/toast/useNotification.d.ts +1 -1
  562. package/es/toast/useNotification.js +52 -70
  563. package/es/toast/util.js +0 -7
  564. package/es/tooltip/index.d.ts +2 -2
  565. package/es/tooltip/index.js +31 -61
  566. package/es/tooltip/placements.js +6 -8
  567. package/es/tooltip/style/index.css +0 -1
  568. package/es/transfer/DataSource.d.ts +2 -1
  569. package/es/transfer/DataSource.js +39 -53
  570. package/es/transfer/SourceList.d.ts +2 -1
  571. package/es/transfer/SourceList.js +15 -31
  572. package/es/transfer/Target.d.ts +2 -1
  573. package/es/transfer/Target.js +45 -64
  574. package/es/transfer/TargetList.d.ts +2 -1
  575. package/es/transfer/TargetList.js +14 -25
  576. package/es/transfer/index.d.ts +5 -5
  577. package/es/transfer/index.js +18 -31
  578. package/es/transfer/style/css.js +2 -2
  579. package/es/transfer/style/index.js +2 -2
  580. package/es/transfer/util.js +0 -3
  581. package/es/tree/style/css.js +2 -2
  582. package/es/tree/style/index.css +1 -12
  583. package/es/tree/style/index.js +2 -2
  584. package/es/tree/tree.d.ts +3 -3
  585. package/es/tree/tree.js +34 -92
  586. package/es/tree/utils/dragHelper.d.ts +2 -2
  587. package/es/tree/utils/dragHelper.js +5 -10
  588. package/es/tree/utils/iconHelper.js +0 -6
  589. package/es/tree/utils/nodeHelper.js +0 -17
  590. package/es/tree-select/index.d.ts +4 -4
  591. package/es/tree-select/index.js +59 -77
  592. package/es/tree-select/src/OptionList.d.ts +1 -1
  593. package/es/tree-select/src/OptionList.js +63 -107
  594. package/es/tree-select/src/TreeNode.js +0 -1
  595. package/es/tree-select/src/TreeSelect.d.ts +4 -4
  596. package/es/tree-select/src/TreeSelect.js +166 -215
  597. package/es/tree-select/src/hooks/useCache.js +2 -4
  598. package/es/tree-select/src/hooks/useCheckedKeys.js +4 -5
  599. package/es/tree-select/src/hooks/useDataEntities.js +2 -3
  600. package/es/tree-select/src/hooks/useFilterTreeData.js +2 -9
  601. package/es/tree-select/src/hooks/useRefFunc.js +0 -1
  602. package/es/tree-select/src/hooks/useTreeData.js +10 -16
  603. package/es/tree-select/src/interface.d.ts +4 -4
  604. package/es/tree-select/src/utils/legacyUtil.js +10 -33
  605. package/es/tree-select/src/utils/strategyUtil.d.ts +1 -1
  606. package/es/tree-select/src/utils/strategyUtil.js +0 -7
  607. package/es/tree-select/src/utils/valueUtil.js +3 -9
  608. package/es/tree-select/src/utils/warningPropsUtil.js +5 -10
  609. package/es/tree-select/style/css.js +2 -2
  610. package/es/tree-select/style/index.css +1 -12
  611. package/es/tree-select/style/index.js +2 -2
  612. package/es/upload/BaseUpload/AjaxUploader.d.ts +1 -1
  613. package/es/upload/BaseUpload/AjaxUploader.js +114 -186
  614. package/es/upload/BaseUpload/Upload.d.ts +2 -2
  615. package/es/upload/BaseUpload/Upload.js +0 -13
  616. package/es/upload/BaseUpload/attr-accept.js +10 -18
  617. package/es/upload/BaseUpload/interface.d.ts +4 -4
  618. package/es/upload/BaseUpload/request.js +10 -26
  619. package/es/upload/BaseUpload/traverseFileTree.js +4 -12
  620. package/es/upload/Dragger.d.ts +1 -1
  621. package/es/upload/Dragger.js +3 -12
  622. package/es/upload/Upload.js +117 -190
  623. package/es/upload/UploadList/ListItem.js +40 -53
  624. package/es/upload/UploadList/index.js +45 -79
  625. package/es/upload/interface.d.ts +8 -8
  626. package/es/upload/style/css.js +2 -2
  627. package/es/upload/style/index.css +4 -26
  628. package/es/upload/style/index.js +2 -2
  629. package/es/upload/utils.js +3 -23
  630. package/es/virtual-list/Filler.js +4 -8
  631. package/es/virtual-list/Item.js +1 -1
  632. package/es/virtual-list/List.d.ts +5 -5
  633. package/es/virtual-list/List.js +122 -169
  634. package/es/virtual-list/ScrollBar.d.ts +1 -1
  635. package/es/virtual-list/ScrollBar.js +23 -72
  636. package/es/virtual-list/hooks/useChildren.d.ts +2 -2
  637. package/es/virtual-list/hooks/useChildren.js +2 -1
  638. package/es/virtual-list/hooks/useDiffItem.js +6 -10
  639. package/es/virtual-list/hooks/useFrameWheel.js +10 -14
  640. package/es/virtual-list/hooks/useHeights.js +7 -14
  641. package/es/virtual-list/hooks/useMobileTouchMove.js +4 -15
  642. package/es/virtual-list/hooks/useOriginScroll.js +6 -8
  643. package/es/virtual-list/hooks/useScrollTo.js +12 -28
  644. package/es/virtual-list/interface.d.ts +2 -2
  645. package/es/virtual-list/mock.js +2 -1
  646. package/es/virtual-list/utils/CacheMap.js +0 -5
  647. package/es/virtual-list/utils/algorithmUtil.js +6 -20
  648. package/lib/_util/colors.d.ts +3 -3
  649. package/lib/_util/colors.js +2 -4
  650. package/lib/_util/createWorker.js +0 -1
  651. package/lib/_util/devWarning.js +0 -6
  652. package/lib/_util/easings.js +2 -5
  653. package/lib/_util/getDataOrAriaProps.js +0 -2
  654. package/lib/_util/getRenderPropValue.d.ts +1 -1
  655. package/lib/_util/getRenderPropValue.js +0 -5
  656. package/lib/_util/getScroll.js +0 -6
  657. package/lib/_util/hooks/useCombinedRefs.js +0 -7
  658. package/lib/_util/hooks/useFlexGapSupport.js +3 -13
  659. package/lib/_util/hooks/useForceUpdate.js +4 -12
  660. package/lib/_util/hooks/useMergedState.js +17 -30
  661. package/lib/_util/hooks/usePatchElement.js +5 -14
  662. package/lib/_util/hooks/useSyncState.d.ts +1 -1
  663. package/lib/_util/hooks/useSyncState.js +2 -9
  664. package/lib/_util/isNumeric.js +0 -2
  665. package/lib/_util/lengthLimit.js +0 -2
  666. package/lib/_util/motion.d.ts +1 -1
  667. package/lib/_util/motion.js +0 -12
  668. package/lib/_util/reactNode.d.ts +2 -2
  669. package/lib/_util/reactNode.js +0 -8
  670. package/lib/_util/responsiveObserve.d.ts +5 -5
  671. package/lib/_util/responsiveObserve.js +0 -12
  672. package/lib/_util/scrollTo.js +6 -18
  673. package/lib/_util/statusUtils.d.ts +1 -1
  674. package/lib/_util/statusUtils.js +0 -9
  675. package/lib/_util/styleChecker.js +6 -18
  676. package/lib/_util/throttleByAnimationFrame.js +0 -11
  677. package/lib/_util/type.d.ts +3 -3
  678. package/lib/_util/type.js +0 -6
  679. package/lib/affix/index.d.ts +1 -1
  680. package/lib/affix/index.js +33 -103
  681. package/lib/affix/style/css.js +0 -1
  682. package/lib/affix/style/index.js +0 -1
  683. package/lib/affix/utils.d.ts +2 -2
  684. package/lib/affix/utils.js +7 -23
  685. package/lib/alert/ErrorBoundary.js +5 -23
  686. package/lib/alert/index.js +28 -73
  687. package/lib/alert/style/css.js +0 -1
  688. package/lib/alert/style/index.js +0 -1
  689. package/lib/anchor/Anchor.d.ts +2 -2
  690. package/lib/anchor/Anchor.js +21 -87
  691. package/lib/anchor/AnchorLink.d.ts +2 -2
  692. package/lib/anchor/AnchorLink.js +13 -43
  693. package/lib/anchor/context.js +0 -5
  694. package/lib/anchor/index.js +0 -4
  695. package/lib/anchor/style/css.js +0 -1
  696. package/lib/anchor/style/index.js +0 -1
  697. package/lib/avatar/SizeContext.d.ts +1 -1
  698. package/lib/avatar/SizeContext.js +1 -6
  699. package/lib/avatar/avatar.js +27 -71
  700. package/lib/avatar/group.js +12 -30
  701. package/lib/avatar/index.js +0 -4
  702. package/lib/avatar/style/css.js +0 -2
  703. package/lib/avatar/style/index.js +0 -2
  704. package/lib/back-top/index.js +14 -48
  705. package/lib/back-top/style/css.js +0 -1
  706. package/lib/back-top/style/index.js +0 -1
  707. package/lib/badge/Ribbon.d.ts +1 -1
  708. package/lib/badge/Ribbon.js +10 -26
  709. package/lib/badge/ScrollNumber.js +20 -42
  710. package/lib/badge/SingleNumber.d.ts +2 -2
  711. package/lib/badge/SingleNumber.js +24 -46
  712. package/lib/badge/index.js +47 -88
  713. package/lib/badge/style/css.js +0 -1
  714. package/lib/badge/style/index.css +14 -119
  715. package/lib/badge/style/index.js +0 -1
  716. package/lib/badge/utils.js +1 -2
  717. package/lib/breadcrumb/Breadcrumb.js +11 -34
  718. package/lib/breadcrumb/BreadcrumbItem.js +13 -41
  719. package/lib/breadcrumb/index.js +0 -3
  720. package/lib/breadcrumb/style/css.js +0 -1
  721. package/lib/breadcrumb/style/index.js +0 -1
  722. package/lib/button/LoadingIcon.d.ts +2 -1
  723. package/lib/button/LoadingIcon.js +0 -5
  724. package/lib/button/button-group.d.ts +1 -1
  725. package/lib/button/button-group.js +2 -20
  726. package/lib/button/button.d.ts +6 -6
  727. package/lib/button/button.js +23 -63
  728. package/lib/button/index.js +0 -3
  729. package/lib/button/style/css.js +0 -1
  730. package/lib/button/style/index.js +0 -1
  731. package/lib/calendar/Header.d.ts +2 -2
  732. package/lib/calendar/Header.js +26 -60
  733. package/lib/calendar/generateCalendar.d.ts +8 -8
  734. package/lib/calendar/generateCalendar.js +43 -86
  735. package/lib/calendar/index.d.ts +1 -1
  736. package/lib/calendar/index.js +0 -4
  737. package/lib/calendar/interface.d.ts +4 -4
  738. package/lib/calendar/locale/en_US.js +0 -3
  739. package/lib/calendar/locale/zh_CN.js +0 -3
  740. package/lib/calendar/style/css.js +0 -3
  741. package/lib/calendar/style/index.js +0 -3
  742. package/lib/card/Card.d.ts +4 -4
  743. package/lib/card/Card.js +40 -83
  744. package/lib/card/Grid.js +5 -22
  745. package/lib/card/Meta.js +7 -26
  746. package/lib/card/index.js +0 -3
  747. package/lib/card/style/css.js +0 -4
  748. package/lib/card/style/index.css +2 -13
  749. package/lib/card/style/index.js +0 -4
  750. package/lib/carousel/carousel.d.ts +3 -3
  751. package/lib/carousel/carousel.js +48 -76
  752. package/lib/carousel/index.js +0 -3
  753. package/lib/carousel/indicator.js +14 -29
  754. package/lib/carousel/style/css.js +0 -1
  755. package/lib/carousel/style/index.js +0 -1
  756. package/lib/carousel/switch.js +2 -9
  757. package/lib/cascader/Cascader.d.ts +4 -4
  758. package/lib/cascader/Cascader.js +41 -158
  759. package/lib/cascader/MenuItem.d.ts +1 -1
  760. package/lib/cascader/MenuItem.js +16 -32
  761. package/lib/cascader/Menus.d.ts +5 -5
  762. package/lib/cascader/Menus.js +87 -174
  763. package/lib/cascader/index.d.ts +1 -1
  764. package/lib/cascader/index.js +71 -192
  765. package/lib/cascader/renderEmpty.d.ts +1 -1
  766. package/lib/cascader/renderEmpty.js +1 -9
  767. package/lib/cascader/style/css.js +0 -7
  768. package/lib/cascader/style/index.css +4 -8
  769. package/lib/cascader/style/index.js +0 -7
  770. package/lib/cascader/utils.js +2 -11
  771. package/lib/checkbox/BaseCheckbox.d.ts +1 -1
  772. package/lib/checkbox/BaseCheckbox.js +22 -56
  773. package/lib/checkbox/ButtonCheckbox.d.ts +1 -1
  774. package/lib/checkbox/ButtonCheckbox.js +9 -44
  775. package/lib/checkbox/Checkbox.js +19 -43
  776. package/lib/checkbox/Group.d.ts +1 -1
  777. package/lib/checkbox/Group.js +20 -59
  778. package/lib/checkbox/GroupButtonCheckbox.d.ts +2 -1
  779. package/lib/checkbox/GroupButtonCheckbox.js +12 -32
  780. package/lib/checkbox/index.js +1 -5
  781. package/lib/checkbox/style/css.js +0 -1
  782. package/lib/checkbox/style/index.css +1 -12
  783. package/lib/checkbox/style/index.js +0 -1
  784. package/lib/clear/index.d.ts +2 -1
  785. package/lib/clear/index.js +4 -19
  786. package/lib/clear/style/css.js +0 -1
  787. package/lib/clear/style/index.js +0 -1
  788. package/lib/col/index.js +0 -2
  789. package/lib/col/style/css.js +0 -1
  790. package/lib/col/style/index.js +0 -1
  791. package/lib/collapse/Collapse.d.ts +1 -1
  792. package/lib/collapse/Collapse.js +3 -26
  793. package/lib/collapse/CollapsePanel.js +3 -14
  794. package/lib/collapse/index.js +0 -3
  795. package/lib/collapse/style/css.js +0 -1
  796. package/lib/collapse/style/index.js +0 -1
  797. package/lib/color-picker/colorPicker.d.ts +1 -1
  798. package/lib/color-picker/colorPicker.js +38 -59
  799. package/lib/color-picker/index.js +0 -3
  800. package/lib/color-picker/style/css.js +0 -3
  801. package/lib/color-picker/style/index.js +0 -3
  802. package/lib/color-picker/util.js +4 -12
  803. package/lib/config-provider/DisabledContext.d.ts +1 -1
  804. package/lib/config-provider/DisabledContext.js +1 -8
  805. package/lib/config-provider/SizeContext.d.ts +1 -1
  806. package/lib/config-provider/SizeContext.js +2 -8
  807. package/lib/config-provider/context.d.ts +2 -2
  808. package/lib/config-provider/context.js +1 -13
  809. package/lib/config-provider/index.js +24 -50
  810. package/lib/config-provider/renderEmpty.d.ts +1 -1
  811. package/lib/config-provider/renderEmpty.js +1 -15
  812. package/lib/config-provider/style/css.js +0 -1
  813. package/lib/config-provider/style/index.js +0 -1
  814. package/lib/date-picker/PickerButton.d.ts +2 -2
  815. package/lib/date-picker/PickerButton.js +0 -8
  816. package/lib/date-picker/PickerTag.d.ts +2 -2
  817. package/lib/date-picker/PickerTag.js +0 -8
  818. package/lib/date-picker/generatePicker/generateRangePicker.js +15 -61
  819. package/lib/date-picker/generatePicker/generateSinglePicker.js +14 -65
  820. package/lib/date-picker/generatePicker/index.d.ts +12 -12
  821. package/lib/date-picker/generatePicker/index.js +12 -33
  822. package/lib/date-picker/index.d.ts +4 -4
  823. package/lib/date-picker/index.js +0 -4
  824. package/lib/date-picker/locale/en_US.js +2 -7
  825. package/lib/date-picker/locale/zh_CN.js +4 -9
  826. package/lib/date-picker/src/PanelContext.d.ts +2 -2
  827. package/lib/date-picker/src/PanelContext.js +1 -5
  828. package/lib/date-picker/src/Picker.d.ts +8 -8
  829. package/lib/date-picker/src/Picker.js +168 -234
  830. package/lib/date-picker/src/PickerPanel.d.ts +6 -6
  831. package/lib/date-picker/src/PickerPanel.js +114 -193
  832. package/lib/date-picker/src/PickerTrigger.d.ts +3 -3
  833. package/lib/date-picker/src/PickerTrigger.js +12 -26
  834. package/lib/date-picker/src/RangeContext.d.ts +1 -1
  835. package/lib/date-picker/src/RangeContext.js +1 -5
  836. package/lib/date-picker/src/RangePicker.d.ts +11 -11
  837. package/lib/date-picker/src/RangePicker.js +260 -404
  838. package/lib/date-picker/src/generate/dateFns.js +0 -11
  839. package/lib/date-picker/src/generate/dayjs.js +2 -32
  840. package/lib/date-picker/src/generate/index.d.ts +1 -1
  841. package/lib/date-picker/src/generate/moment.js +2 -15
  842. package/lib/date-picker/src/hooks/useCellClassName.js +8 -19
  843. package/lib/date-picker/src/hooks/useHoverValue.js +11 -25
  844. package/lib/date-picker/src/hooks/usePickerInput.js +23 -50
  845. package/lib/date-picker/src/hooks/useRangeDisabled.js +13 -36
  846. package/lib/date-picker/src/hooks/useRangeViewDates.js +17 -48
  847. package/lib/date-picker/src/hooks/useTextValueMapping.js +4 -16
  848. package/lib/date-picker/src/hooks/useValueTexts.d.ts +1 -1
  849. package/lib/date-picker/src/hooks/useValueTexts.js +4 -13
  850. package/lib/date-picker/src/index.js +0 -5
  851. package/lib/date-picker/src/interface.d.ts +15 -15
  852. package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
  853. package/lib/date-picker/src/panels/DatePanel/DateBody.js +13 -30
  854. package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
  855. package/lib/date-picker/src/panels/DatePanel/DateHeader.js +12 -26
  856. package/lib/date-picker/src/panels/DatePanel/index.d.ts +3 -3
  857. package/lib/date-picker/src/panels/DatePanel/index.js +17 -33
  858. package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
  859. package/lib/date-picker/src/panels/DatetimePanel/index.js +15 -36
  860. package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
  861. package/lib/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -20
  862. package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
  863. package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -21
  864. package/lib/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
  865. package/lib/date-picker/src/panels/DecadePanel/index.js +10 -24
  866. package/lib/date-picker/src/panels/Header.d.ts +2 -2
  867. package/lib/date-picker/src/panels/Header.js +15 -26
  868. package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
  869. package/lib/date-picker/src/panels/MonthPanel/MonthBody.js +7 -22
  870. package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
  871. package/lib/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -21
  872. package/lib/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
  873. package/lib/date-picker/src/panels/MonthPanel/index.js +11 -24
  874. package/lib/date-picker/src/panels/PanelBody.d.ts +2 -2
  875. package/lib/date-picker/src/panels/PanelBody.js +22 -45
  876. package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
  877. package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -21
  878. package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
  879. package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -21
  880. package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
  881. package/lib/date-picker/src/panels/QuarterPanel/index.js +11 -23
  882. package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
  883. package/lib/date-picker/src/panels/TimePanel/TimeBody.js +55 -86
  884. package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
  885. package/lib/date-picker/src/panels/TimePanel/TimeHeader.js +5 -17
  886. package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
  887. package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -28
  888. package/lib/date-picker/src/panels/TimePanel/index.d.ts +4 -4
  889. package/lib/date-picker/src/panels/TimePanel/index.js +17 -33
  890. package/lib/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
  891. package/lib/date-picker/src/panels/WeekPanel/index.js +6 -22
  892. package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
  893. package/lib/date-picker/src/panels/YearPanel/YearBody.js +8 -28
  894. package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
  895. package/lib/date-picker/src/panels/YearPanel/YearHeader.js +6 -22
  896. package/lib/date-picker/src/panels/YearPanel/index.d.ts +3 -3
  897. package/lib/date-picker/src/panels/YearPanel/index.js +12 -26
  898. package/lib/date-picker/src/utils/dateUtil.js +11 -73
  899. package/lib/date-picker/src/utils/getExtraFooter.d.ts +1 -1
  900. package/lib/date-picker/src/utils/getExtraFooter.js +0 -6
  901. package/lib/date-picker/src/utils/getRanges.d.ts +3 -3
  902. package/lib/date-picker/src/utils/getRanges.js +8 -18
  903. package/lib/date-picker/src/utils/miscUtil.d.ts +1 -1
  904. package/lib/date-picker/src/utils/miscUtil.js +0 -13
  905. package/lib/date-picker/src/utils/timeUtil.js +0 -9
  906. package/lib/date-picker/src/utils/uiUtil.d.ts +2 -2
  907. package/lib/date-picker/src/utils/uiUtil.js +14 -78
  908. package/lib/date-picker/style/css.js +0 -3
  909. package/lib/date-picker/style/index.css +4 -9
  910. package/lib/date-picker/style/index.js +0 -3
  911. package/lib/date-picker/util.js +0 -13
  912. package/lib/dialog-box/dialogbox.js +16 -48
  913. package/lib/dialog-box/index.js +0 -3
  914. package/lib/dialog-box/style/css.js +0 -1
  915. package/lib/dialog-box/style/index.css +1 -2
  916. package/lib/dialog-box/style/index.js +0 -1
  917. package/lib/divider/index.js +13 -29
  918. package/lib/divider/style/css.js +0 -1
  919. package/lib/divider/style/index.js +0 -1
  920. package/lib/drawer/index.d.ts +3 -3
  921. package/lib/drawer/index.js +55 -102
  922. package/lib/drawer/style/css.js +0 -1
  923. package/lib/drawer/style/index.css +1 -10
  924. package/lib/drawer/style/index.js +0 -1
  925. package/lib/dropdown/dropdown-button.js +23 -48
  926. package/lib/dropdown/dropdown.d.ts +3 -3
  927. package/lib/dropdown/dropdown.js +24 -61
  928. package/lib/dropdown/index.js +0 -3
  929. package/lib/dropdown/rc-dropdown/Dropdown.js +24 -69
  930. package/lib/dropdown/rc-dropdown/index.js +0 -2
  931. package/lib/dropdown/rc-dropdown/placements.js +0 -1
  932. package/lib/dropdown/style/css.js +0 -5
  933. package/lib/dropdown/style/index.js +0 -5
  934. package/lib/empty/index.js +11 -33
  935. package/lib/empty/style/css.js +0 -1
  936. package/lib/empty/style/index.js +0 -1
  937. package/lib/flow/index.js +13 -25
  938. package/lib/form/ErrorList.d.ts +1 -1
  939. package/lib/form/ErrorList.js +23 -40
  940. package/lib/form/Form.d.ts +2 -2
  941. package/lib/form/Form.js +30 -64
  942. package/lib/form/FormItem.d.ts +4 -4
  943. package/lib/form/FormItem.js +57 -134
  944. package/lib/form/FormItemInput.js +18 -35
  945. package/lib/form/FormItemLabel.d.ts +2 -2
  946. package/lib/form/FormItemLabel.js +27 -66
  947. package/lib/form/FormList.js +4 -24
  948. package/lib/form/context.js +1 -10
  949. package/lib/form/hooks/useCacheErrors.js +0 -12
  950. package/lib/form/hooks/useForm.js +3 -17
  951. package/lib/form/hooks/useFrameState.d.ts +1 -1
  952. package/lib/form/hooks/useFrameState.js +4 -17
  953. package/lib/form/hooks/useItemRef.js +2 -15
  954. package/lib/form/index.d.ts +1 -1
  955. package/lib/form/index.js +1 -13
  956. package/lib/form/interface.d.ts +1 -1
  957. package/lib/form/style/css.js +0 -2
  958. package/lib/form/style/index.css +16 -72
  959. package/lib/form/style/index.js +0 -2
  960. package/lib/form/util.js +0 -7
  961. package/lib/grid/RowContext.js +0 -2
  962. package/lib/grid/col.d.ts +2 -2
  963. package/lib/grid/col.js +21 -52
  964. package/lib/grid/hooks/useBreakpoint.js +0 -8
  965. package/lib/grid/index.js +0 -5
  966. package/lib/grid/row.d.ts +1 -1
  967. package/lib/grid/row.js +24 -57
  968. package/lib/grid/style/css.js +0 -1
  969. package/lib/grid/style/index.js +0 -1
  970. package/lib/icon/index.js +0 -2
  971. package/lib/img-crop/EasyCrop.js +30 -52
  972. package/lib/img-crop/index.js +178 -255
  973. package/lib/img-crop/interface.d.ts +4 -4
  974. package/lib/img-crop/style/css.js +0 -2
  975. package/lib/img-crop/style/index.js +0 -2
  976. package/lib/index.js +0 -61
  977. package/lib/input/AutoComplete.d.ts +2 -1
  978. package/lib/input/AutoComplete.js +7 -29
  979. package/lib/input/Input.js +49 -121
  980. package/lib/input/Label.js +18 -66
  981. package/lib/input/MultiSelectInput.js +6 -15
  982. package/lib/input/Password.js +26 -64
  983. package/lib/input/TextArea.js +32 -73
  984. package/lib/input/index.js +0 -8
  985. package/lib/input/style/css.js +0 -1
  986. package/lib/input/style/index.js +0 -1
  987. package/lib/input-number/index.d.ts +1 -1
  988. package/lib/input-number/index.js +15 -42
  989. package/lib/input-number/src/InputNumber.js +117 -204
  990. package/lib/input-number/src/StepHandler.d.ts +1 -1
  991. package/lib/input-number/src/StepHandler.js +14 -32
  992. package/lib/input-number/src/hooks/useCursor.js +7 -17
  993. package/lib/input-number/src/hooks/useFrame.js +0 -7
  994. package/lib/input-number/src/hooks/useLayoutEffect.js +0 -7
  995. package/lib/input-number/src/hooks/useUpdateEffect.js +0 -7
  996. package/lib/input-number/src/index.js +0 -3
  997. package/lib/input-number/src/utils/MiniDecimal.d.ts +1 -1
  998. package/lib/input-number/src/utils/MiniDecimal.js +18 -74
  999. package/lib/input-number/src/utils/numberUtil.js +14 -32
  1000. package/lib/input-number/src/utils/supportUtil.js +0 -1
  1001. package/lib/input-number/style/css.js +0 -1
  1002. package/lib/input-number/style/index.js +0 -1
  1003. package/lib/layout/Sider.d.ts +2 -2
  1004. package/lib/layout/Sider.js +44 -89
  1005. package/lib/layout/index.d.ts +1 -1
  1006. package/lib/layout/index.js +0 -7
  1007. package/lib/layout/layout.js +17 -44
  1008. package/lib/layout/style/css.js +0 -1
  1009. package/lib/layout/style/index.js +0 -1
  1010. package/lib/link/index.js +0 -3
  1011. package/lib/link/link.d.ts +4 -4
  1012. package/lib/link/link.js +14 -36
  1013. package/lib/link/style/css.js +0 -1
  1014. package/lib/link/style/index.js +0 -1
  1015. package/lib/loading/icon.d.ts +2 -1
  1016. package/lib/loading/icon.js +2 -9
  1017. package/lib/loading/index.js +13 -28
  1018. package/lib/loading/style/css.js +0 -1
  1019. package/lib/loading/style/index.css +7 -112
  1020. package/lib/loading/style/index.js +0 -1
  1021. package/lib/locale/default.js +0 -3
  1022. package/lib/locale/en_US.js +2 -4
  1023. package/lib/locale/zh_CN.js +2 -4
  1024. package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
  1025. package/lib/locale-provider/LocaleReceiver.js +4 -23
  1026. package/lib/locale-provider/context.js +1 -2
  1027. package/lib/locale-provider/default.js +0 -3
  1028. package/lib/locale-provider/demo/locale.js +2 -3
  1029. package/lib/locale-provider/index.d.ts +1 -1
  1030. package/lib/locale-provider/index.js +4 -23
  1031. package/lib/menu/ItemGroup.js +5 -17
  1032. package/lib/menu/MenuContext.js +0 -2
  1033. package/lib/menu/MenuHead.js +6 -29
  1034. package/lib/menu/MenuItem.js +7 -33
  1035. package/lib/menu/SubMenu.js +5 -26
  1036. package/lib/menu/baseMenu.js +11 -29
  1037. package/lib/menu/globalSilderBar.js +18 -46
  1038. package/lib/menu/header.js +8 -20
  1039. package/lib/menu/index.js +0 -3
  1040. package/lib/menu/menu.js +9 -32
  1041. package/lib/menu/rc-menu/Divider.d.ts +1 -1
  1042. package/lib/menu/rc-menu/Divider.js +2 -15
  1043. package/lib/menu/rc-menu/Icon.js +2 -11
  1044. package/lib/menu/rc-menu/Menu.js +163 -214
  1045. package/lib/menu/rc-menu/MenuItem.js +51 -103
  1046. package/lib/menu/rc-menu/MenuItemGroup.js +7 -30
  1047. package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
  1048. package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -43
  1049. package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
  1050. package/lib/menu/rc-menu/SubMenu/PopupTrigger.js +22 -41
  1051. package/lib/menu/rc-menu/SubMenu/SubMenuList.js +5 -22
  1052. package/lib/menu/rc-menu/SubMenu/index.d.ts +1 -1
  1053. package/lib/menu/rc-menu/SubMenu/index.js +83 -135
  1054. package/lib/menu/rc-menu/context/IdContext.js +0 -9
  1055. package/lib/menu/rc-menu/context/MenuContext.d.ts +1 -1
  1056. package/lib/menu/rc-menu/context/MenuContext.js +3 -21
  1057. package/lib/menu/rc-menu/context/PathContext.js +2 -13
  1058. package/lib/menu/rc-menu/hooks/useAccessibility.js +41 -91
  1059. package/lib/menu/rc-menu/hooks/useActive.js +5 -14
  1060. package/lib/menu/rc-menu/hooks/useDirectionStyle.js +3 -11
  1061. package/lib/menu/rc-menu/hooks/useKeyRecords.js +7 -34
  1062. package/lib/menu/rc-menu/hooks/useMemoCallback.js +0 -8
  1063. package/lib/menu/rc-menu/hooks/useUUID.js +5 -15
  1064. package/lib/menu/rc-menu/index.d.ts +1 -1
  1065. package/lib/menu/rc-menu/index.js +0 -8
  1066. package/lib/menu/rc-menu/interface.d.ts +7 -7
  1067. package/lib/menu/rc-menu/utils/motionUtil.js +0 -3
  1068. package/lib/menu/rc-menu/utils/nodeUtil.js +0 -14
  1069. package/lib/menu/rc-menu/utils/timeUtil.js +0 -1
  1070. package/lib/menu/rc-menu/utils/warnUtil.js +2 -11
  1071. package/lib/menu/style/css.js +0 -2
  1072. package/lib/menu/style/index.js +0 -2
  1073. package/lib/modal/DialogBox.js +19 -57
  1074. package/lib/modal/Modal.js +17 -44
  1075. package/lib/modal/dialog.js +0 -26
  1076. package/lib/modal/index.js +0 -6
  1077. package/lib/modal/locale.js +0 -8
  1078. package/lib/modal/style/css.js +0 -2
  1079. package/lib/modal/style/index.css +1 -2
  1080. package/lib/modal/style/index.js +0 -2
  1081. package/lib/pagination/index.js +0 -3
  1082. package/lib/pagination/pagination.d.ts +1 -1
  1083. package/lib/pagination/pagination.js +11 -41
  1084. package/lib/pagination/rc-pagination/Goto.js +8 -31
  1085. package/lib/pagination/rc-pagination/KeyCode.js +0 -1
  1086. package/lib/pagination/rc-pagination/Options.js +13 -26
  1087. package/lib/pagination/rc-pagination/Pager.js +9 -19
  1088. package/lib/pagination/rc-pagination/Pagination.js +64 -138
  1089. package/lib/pagination/rc-pagination/index.js +0 -3
  1090. package/lib/pagination/style/css.js +0 -2
  1091. package/lib/pagination/style/index.css +6 -0
  1092. package/lib/pagination/style/index.js +0 -2
  1093. package/lib/pagination/style/index.less +10 -0
  1094. package/lib/popconfirm/index.d.ts +1 -1
  1095. package/lib/popconfirm/index.js +18 -56
  1096. package/lib/popconfirm/style/css.js +0 -2
  1097. package/lib/popconfirm/style/index.js +0 -2
  1098. package/lib/popover/index.js +5 -24
  1099. package/lib/popover/style/css.js +0 -1
  1100. package/lib/popover/style/index.js +0 -1
  1101. package/lib/progress/CircleProgress.js +49 -61
  1102. package/lib/progress/LineProgress.js +40 -52
  1103. package/lib/progress/common/index.js +2 -7
  1104. package/lib/progress/index.js +33 -54
  1105. package/lib/progress/interface.d.ts +6 -6
  1106. package/lib/progress/interface.js +0 -1
  1107. package/lib/progress/style/css.js +0 -1
  1108. package/lib/progress/style/index.js +0 -1
  1109. package/lib/radio/Radio.js +12 -44
  1110. package/lib/radio/RadioButton.d.ts +2 -1
  1111. package/lib/radio/RadioButton.js +14 -41
  1112. package/lib/radio/RadioGroup.d.ts +1 -1
  1113. package/lib/radio/RadioGroup.js +16 -36
  1114. package/lib/radio/context.js +0 -2
  1115. package/lib/radio/index.js +0 -3
  1116. package/lib/radio/style/css.js +0 -1
  1117. package/lib/radio/style/index.js +0 -1
  1118. package/lib/rate/index.js +0 -3
  1119. package/lib/rate/rate.js +73 -120
  1120. package/lib/rate/style/css.js +0 -1
  1121. package/lib/rate/style/index.js +0 -1
  1122. package/lib/row/index.js +0 -2
  1123. package/lib/row/style/css.js +0 -1
  1124. package/lib/row/style/index.js +0 -1
  1125. package/lib/search/Search.js +40 -82
  1126. package/lib/search/index.js +0 -3
  1127. package/lib/search/style/css.js +0 -4
  1128. package/lib/search/style/index.js +0 -4
  1129. package/lib/select/index.d.ts +4 -4
  1130. package/lib/select/index.js +29 -57
  1131. package/lib/select/src/OptGroup.js +0 -2
  1132. package/lib/select/src/Option.js +0 -2
  1133. package/lib/select/src/OptionList.js +104 -188
  1134. package/lib/select/src/Select.d.ts +2 -2
  1135. package/lib/select/src/Select.js +1 -27
  1136. package/lib/select/src/SelectTrigger.js +28 -48
  1137. package/lib/select/src/Selector/Input.d.ts +1 -1
  1138. package/lib/select/src/Selector/Input.js +26 -40
  1139. package/lib/select/src/Selector/MultipleSelector.js +50 -83
  1140. package/lib/select/src/Selector/SingleSelector.js +29 -46
  1141. package/lib/select/src/Selector/index.js +23 -57
  1142. package/lib/select/src/TransBtn.js +6 -17
  1143. package/lib/select/src/generate.js +231 -371
  1144. package/lib/select/src/hooks/useCacheDisplayValue.js +1 -11
  1145. package/lib/select/src/hooks/useCacheOptions.js +0 -7
  1146. package/lib/select/src/hooks/useDelayReset.js +3 -17
  1147. package/lib/select/src/hooks/useLayoutEffect.js +0 -6
  1148. package/lib/select/src/hooks/useLock.js +2 -10
  1149. package/lib/select/src/hooks/useSelectTriggerControl.js +0 -8
  1150. package/lib/select/src/index.js +0 -5
  1151. package/lib/select/src/interface/generator.d.ts +12 -12
  1152. package/lib/select/src/interface/index.d.ts +5 -5
  1153. package/lib/select/src/utils/commonUtil.js +8 -32
  1154. package/lib/select/src/utils/legacyUtil.js +11 -29
  1155. package/lib/select/src/utils/valueUtil.js +23 -76
  1156. package/lib/select/src/utils/warningPropsUtil.js +30 -56
  1157. package/lib/select/style/css.js +0 -3
  1158. package/lib/select/style/index.css +4 -8
  1159. package/lib/select/style/index.js +0 -3
  1160. package/lib/select/utils/iconUtil.js +16 -37
  1161. package/lib/skeleton/Avatar.d.ts +2 -1
  1162. package/lib/skeleton/Avatar.js +3 -15
  1163. package/lib/skeleton/Button.d.ts +2 -1
  1164. package/lib/skeleton/Button.js +5 -21
  1165. package/lib/skeleton/Element.d.ts +1 -1
  1166. package/lib/skeleton/Element.js +4 -15
  1167. package/lib/skeleton/Image.d.ts +2 -1
  1168. package/lib/skeleton/Image.js +6 -18
  1169. package/lib/skeleton/Input.d.ts +2 -1
  1170. package/lib/skeleton/Input.js +4 -20
  1171. package/lib/skeleton/Node.js +4 -18
  1172. package/lib/skeleton/Paragraph.d.ts +2 -2
  1173. package/lib/skeleton/Paragraph.js +7 -20
  1174. package/lib/skeleton/Skeleton.d.ts +5 -5
  1175. package/lib/skeleton/Skeleton.js +21 -64
  1176. package/lib/skeleton/Title.d.ts +1 -1
  1177. package/lib/skeleton/Title.js +3 -12
  1178. package/lib/skeleton/index.js +0 -3
  1179. package/lib/skeleton/style/css.js +0 -1
  1180. package/lib/skeleton/style/index.css +1 -10
  1181. package/lib/skeleton/style/index.js +0 -1
  1182. package/lib/slider/SliderTooltip.js +0 -16
  1183. package/lib/slider/index.js +21 -55
  1184. package/lib/slider/interface.d.ts +1 -1
  1185. package/lib/slider/style/css.js +0 -1
  1186. package/lib/slider/style/index.js +0 -1
  1187. package/lib/space/Item.d.ts +1 -1
  1188. package/lib/space/Item.js +10 -24
  1189. package/lib/space/index.d.ts +1 -1
  1190. package/lib/space/index.js +29 -61
  1191. package/lib/space/style/css.js +0 -1
  1192. package/lib/space/style/index.js +0 -1
  1193. package/lib/steps/index.d.ts +1 -1
  1194. package/lib/steps/index.js +7 -28
  1195. package/lib/steps/interface.d.ts +1 -1
  1196. package/lib/steps/src/step.d.ts +1 -1
  1197. package/lib/steps/src/step.js +39 -72
  1198. package/lib/steps/src/steps.d.ts +3 -3
  1199. package/lib/steps/src/steps.js +24 -56
  1200. package/lib/steps/style/css.js +0 -1
  1201. package/lib/steps/style/index.js +0 -1
  1202. package/lib/style/index.css +144 -526
  1203. package/lib/switch/index.js +19 -45
  1204. package/lib/switch/interface.d.ts +2 -2
  1205. package/lib/switch/style/css.js +0 -1
  1206. package/lib/switch/style/index.css +8 -32
  1207. package/lib/switch/style/index.js +0 -1
  1208. package/lib/table/Column.js +0 -3
  1209. package/lib/table/ColumnGroup.js +0 -3
  1210. package/lib/table/ExpandIcon.d.ts +1 -1
  1211. package/lib/table/ExpandIcon.js +4 -16
  1212. package/lib/table/Space.js +4 -18
  1213. package/lib/table/Table.d.ts +1 -1
  1214. package/lib/table/Table.js +115 -193
  1215. package/lib/table/baseTable/Body/BodyRow.d.ts +1 -1
  1216. package/lib/table/baseTable/Body/BodyRow.js +42 -78
  1217. package/lib/table/baseTable/Body/ExpandedRow.d.ts +1 -1
  1218. package/lib/table/baseTable/Body/ExpandedRow.js +13 -28
  1219. package/lib/table/baseTable/Body/MeasureCell.d.ts +1 -1
  1220. package/lib/table/baseTable/Body/MeasureCell.js +1 -8
  1221. package/lib/table/baseTable/Body/MeasureRow.d.ts +1 -1
  1222. package/lib/table/baseTable/Body/MeasureRow.js +3 -14
  1223. package/lib/table/baseTable/Body/index.d.ts +1 -1
  1224. package/lib/table/baseTable/Body/index.js +23 -48
  1225. package/lib/table/baseTable/Cell/index.d.ts +1 -1
  1226. package/lib/table/baseTable/Cell/index.js +58 -111
  1227. package/lib/table/baseTable/ColGroup.d.ts +2 -2
  1228. package/lib/table/baseTable/ColGroup.js +7 -25
  1229. package/lib/table/baseTable/FixedHolder/index.js +29 -57
  1230. package/lib/table/baseTable/Footer/Cell.d.ts +1 -1
  1231. package/lib/table/baseTable/Footer/Cell.js +11 -25
  1232. package/lib/table/baseTable/Footer/Row.d.ts +1 -1
  1233. package/lib/table/baseTable/Footer/Row.js +2 -13
  1234. package/lib/table/baseTable/Footer/Summary.js +0 -5
  1235. package/lib/table/baseTable/Footer/index.d.ts +2 -2
  1236. package/lib/table/baseTable/Footer/index.js +2 -12
  1237. package/lib/table/baseTable/Header/Header.js +9 -30
  1238. package/lib/table/baseTable/Header/HeaderRow.d.ts +2 -2
  1239. package/lib/table/baseTable/Header/HeaderRow.js +8 -26
  1240. package/lib/table/baseTable/Panel/index.d.ts +1 -1
  1241. package/lib/table/baseTable/Panel/index.js +1 -7
  1242. package/lib/table/baseTable/Table.d.ts +1 -1
  1243. package/lib/table/baseTable/Table.js +126 -234
  1244. package/lib/table/baseTable/context/BodyContext.js +0 -5
  1245. package/lib/table/baseTable/context/ExpandedRowContext.js +0 -5
  1246. package/lib/table/baseTable/context/HoverContext.js +0 -5
  1247. package/lib/table/baseTable/context/ResizeContext.js +0 -5
  1248. package/lib/table/baseTable/context/StickyContext.js +0 -5
  1249. package/lib/table/baseTable/context/TableContext.js +0 -5
  1250. package/lib/table/baseTable/hooks/useColumns.js +40 -94
  1251. package/lib/table/baseTable/hooks/useFlattenRecords.js +2 -15
  1252. package/lib/table/baseTable/hooks/useFrame.d.ts +1 -1
  1253. package/lib/table/baseTable/hooks/useFrame.js +2 -17
  1254. package/lib/table/baseTable/hooks/useSticky.js +10 -20
  1255. package/lib/table/baseTable/hooks/useStickyOffsets.js +4 -10
  1256. package/lib/table/baseTable/index.js +0 -7
  1257. package/lib/table/baseTable/interface.d.ts +20 -20
  1258. package/lib/table/baseTable/stickyScrollBar.js +14 -55
  1259. package/lib/table/baseTable/sugar/Column.js +0 -3
  1260. package/lib/table/baseTable/sugar/ColumnGroup.js +0 -3
  1261. package/lib/table/baseTable/utils/expandUtil.d.ts +2 -2
  1262. package/lib/table/baseTable/utils/expandUtil.js +4 -19
  1263. package/lib/table/baseTable/utils/fixUtil.js +0 -5
  1264. package/lib/table/baseTable/utils/legacyUtil.js +2 -17
  1265. package/lib/table/baseTable/utils/valueUtil.js +2 -23
  1266. package/lib/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
  1267. package/lib/table/hooks/useFilter/FilterDropdown.js +50 -124
  1268. package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
  1269. package/lib/table/hooks/useFilter/FilterSearch.js +6 -15
  1270. package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
  1271. package/lib/table/hooks/useFilter/FilterWrapper.js +0 -6
  1272. package/lib/table/hooks/useFilter/index.js +20 -56
  1273. package/lib/table/hooks/useLazyKVMap.js +0 -13
  1274. package/lib/table/hooks/usePagination.js +15 -42
  1275. package/lib/table/hooks/useSelection.d.ts +1 -1
  1276. package/lib/table/hooks/useSelection.js +103 -186
  1277. package/lib/table/hooks/useSorter.js +21 -83
  1278. package/lib/table/hooks/useTitleColumns.js +0 -11
  1279. package/lib/table/index.js +0 -3
  1280. package/lib/table/interface.d.ts +15 -15
  1281. package/lib/table/interface.js +0 -1
  1282. package/lib/table/style/css.js +0 -11
  1283. package/lib/table/style/index.css +0 -3
  1284. package/lib/table/style/index.js +0 -11
  1285. package/lib/table/util.js +0 -6
  1286. package/lib/tabs/index.js +0 -3
  1287. package/lib/tabs/src/TabContext.js +0 -3
  1288. package/lib/tabs/src/TabNavList/AddButton.js +4 -13
  1289. package/lib/tabs/src/TabNavList/OperationNode.js +32 -67
  1290. package/lib/tabs/src/TabNavList/TabNode.js +25 -60
  1291. package/lib/tabs/src/TabNavList/index.js +129 -217
  1292. package/lib/tabs/src/TabPanelList/TabPane.d.ts +1 -1
  1293. package/lib/tabs/src/TabPanelList/TabPane.js +12 -25
  1294. package/lib/tabs/src/TabPanelList/index.d.ts +1 -1
  1295. package/lib/tabs/src/TabPanelList/index.js +7 -18
  1296. package/lib/tabs/src/Tabs.d.ts +1 -1
  1297. package/lib/tabs/src/Tabs.js +68 -112
  1298. package/lib/tabs/src/hooks/useOffsets.js +6 -15
  1299. package/lib/tabs/src/hooks/useRaf.d.ts +1 -1
  1300. package/lib/tabs/src/hooks/useRaf.js +2 -17
  1301. package/lib/tabs/src/hooks/useRefs.js +0 -9
  1302. package/lib/tabs/src/hooks/useSyncState.d.ts +1 -1
  1303. package/lib/tabs/src/hooks/useSyncState.js +2 -14
  1304. package/lib/tabs/src/hooks/useTouchMove.js +32 -55
  1305. package/lib/tabs/src/hooks/useVisibleRange.js +2 -16
  1306. package/lib/tabs/src/index.js +0 -4
  1307. package/lib/tabs/src/interface.d.ts +8 -8
  1308. package/lib/tabs/style/css.js +0 -1
  1309. package/lib/tabs/style/index.js +0 -1
  1310. package/lib/tabs/tabs.d.ts +3 -3
  1311. package/lib/tabs/tabs.js +10 -37
  1312. package/lib/tag/CheckableTag.js +7 -27
  1313. package/lib/tag/index.d.ts +1 -1
  1314. package/lib/tag/index.js +19 -55
  1315. package/lib/tag/style/css.js +0 -1
  1316. package/lib/tag/style/index.css +1 -12
  1317. package/lib/tag/style/index.js +0 -1
  1318. package/lib/time-picker/index.d.ts +1 -1
  1319. package/lib/time-picker/index.js +9 -32
  1320. package/lib/time-picker/style/css.js +0 -2
  1321. package/lib/time-picker/style/index.css +0 -1
  1322. package/lib/time-picker/style/index.js +0 -2
  1323. package/lib/timeline/index.js +0 -3
  1324. package/lib/timeline/interface.d.ts +1 -1
  1325. package/lib/timeline/style/css.js +0 -1
  1326. package/lib/timeline/style/index.css +4 -27
  1327. package/lib/timeline/style/index.js +0 -1
  1328. package/lib/timeline/timeline.js +17 -33
  1329. package/lib/timeline/timelineItem.js +24 -60
  1330. package/lib/toast/PurePanel.d.ts +2 -2
  1331. package/lib/toast/PurePanel.js +25 -47
  1332. package/lib/toast/base.d.ts +1 -1
  1333. package/lib/toast/base.js +63 -105
  1334. package/lib/toast/index.js +39 -72
  1335. package/lib/toast/interface.d.ts +3 -3
  1336. package/lib/toast/style/css.js +0 -1
  1337. package/lib/toast/style/index.css +17 -64
  1338. package/lib/toast/style/index.js +0 -1
  1339. package/lib/toast/useNotification.d.ts +1 -1
  1340. package/lib/toast/useNotification.js +52 -82
  1341. package/lib/toast/util.js +0 -9
  1342. package/lib/tooltip/index.d.ts +2 -2
  1343. package/lib/tooltip/index.js +32 -72
  1344. package/lib/tooltip/placements.js +7 -13
  1345. package/lib/tooltip/style/css.js +0 -1
  1346. package/lib/tooltip/style/index.css +0 -1
  1347. package/lib/tooltip/style/index.js +0 -1
  1348. package/lib/transfer/DataSource.d.ts +2 -1
  1349. package/lib/transfer/DataSource.js +40 -66
  1350. package/lib/transfer/SourceList.d.ts +2 -1
  1351. package/lib/transfer/SourceList.js +16 -44
  1352. package/lib/transfer/Target.d.ts +2 -1
  1353. package/lib/transfer/Target.js +46 -78
  1354. package/lib/transfer/TargetList.d.ts +2 -1
  1355. package/lib/transfer/TargetList.js +15 -38
  1356. package/lib/transfer/index.d.ts +5 -5
  1357. package/lib/transfer/index.js +19 -43
  1358. package/lib/transfer/style/css.js +0 -2
  1359. package/lib/transfer/style/index.js +0 -2
  1360. package/lib/transfer/util.js +0 -6
  1361. package/lib/tree/index.js +0 -3
  1362. package/lib/tree/style/css.js +0 -3
  1363. package/lib/tree/style/index.css +1 -12
  1364. package/lib/tree/style/index.js +0 -3
  1365. package/lib/tree/tree.d.ts +3 -3
  1366. package/lib/tree/tree.js +34 -118
  1367. package/lib/tree/utils/dragHelper.d.ts +2 -2
  1368. package/lib/tree/utils/dragHelper.js +5 -15
  1369. package/lib/tree/utils/iconHelper.js +0 -13
  1370. package/lib/tree/utils/nodeHelper.js +0 -32
  1371. package/lib/tree-select/index.d.ts +4 -4
  1372. package/lib/tree-select/index.js +59 -95
  1373. package/lib/tree-select/src/LegacyContext.js +0 -5
  1374. package/lib/tree-select/src/OptionList.d.ts +1 -1
  1375. package/lib/tree-select/src/OptionList.js +63 -124
  1376. package/lib/tree-select/src/TreeNode.js +0 -2
  1377. package/lib/tree-select/src/TreeSelect.d.ts +4 -4
  1378. package/lib/tree-select/src/TreeSelect.js +166 -242
  1379. package/lib/tree-select/src/TreeSelectContext.js +0 -5
  1380. package/lib/tree-select/src/hooks/useCache.js +2 -11
  1381. package/lib/tree-select/src/hooks/useCheckedKeys.js +4 -14
  1382. package/lib/tree-select/src/hooks/useDataEntities.js +2 -14
  1383. package/lib/tree-select/src/hooks/useFilterTreeData.js +2 -19
  1384. package/lib/tree-select/src/hooks/useRefFunc.js +0 -5
  1385. package/lib/tree-select/src/hooks/useTreeData.js +10 -22
  1386. package/lib/tree-select/src/index.js +0 -5
  1387. package/lib/tree-select/src/interface.d.ts +4 -4
  1388. package/lib/tree-select/src/utils/legacyUtil.js +10 -43
  1389. package/lib/tree-select/src/utils/strategyUtil.d.ts +1 -1
  1390. package/lib/tree-select/src/utils/strategyUtil.js +0 -10
  1391. package/lib/tree-select/src/utils/valueUtil.js +3 -14
  1392. package/lib/tree-select/src/utils/warningPropsUtil.js +5 -14
  1393. package/lib/tree-select/style/css.js +0 -3
  1394. package/lib/tree-select/style/index.css +1 -12
  1395. package/lib/tree-select/style/index.js +0 -3
  1396. package/lib/upload/BaseUpload/AjaxUploader.d.ts +1 -1
  1397. package/lib/upload/BaseUpload/AjaxUploader.js +114 -202
  1398. package/lib/upload/BaseUpload/Upload.d.ts +2 -2
  1399. package/lib/upload/BaseUpload/Upload.js +1 -21
  1400. package/lib/upload/BaseUpload/attr-accept.js +10 -22
  1401. package/lib/upload/BaseUpload/index.js +0 -3
  1402. package/lib/upload/BaseUpload/interface.d.ts +4 -4
  1403. package/lib/upload/BaseUpload/request.js +10 -27
  1404. package/lib/upload/BaseUpload/traverseFileTree.js +4 -13
  1405. package/lib/upload/BaseUpload/uid.js +0 -2
  1406. package/lib/upload/Dragger.d.ts +1 -1
  1407. package/lib/upload/Dragger.js +3 -18
  1408. package/lib/upload/Upload.js +117 -206
  1409. package/lib/upload/UploadList/ListItem.js +41 -71
  1410. package/lib/upload/UploadList/index.js +46 -102
  1411. package/lib/upload/index.js +1 -4
  1412. package/lib/upload/interface.d.ts +8 -8
  1413. package/lib/upload/style/css.js +0 -4
  1414. package/lib/upload/style/index.css +4 -26
  1415. package/lib/upload/style/index.js +0 -4
  1416. package/lib/upload/utils.js +3 -34
  1417. package/lib/virtual-list/Filler.js +4 -17
  1418. package/lib/virtual-list/Item.js +1 -6
  1419. package/lib/virtual-list/List.d.ts +5 -5
  1420. package/lib/virtual-list/List.js +122 -189
  1421. package/lib/virtual-list/ScrollBar.d.ts +1 -1
  1422. package/lib/virtual-list/ScrollBar.js +23 -84
  1423. package/lib/virtual-list/hooks/useChildren.d.ts +2 -2
  1424. package/lib/virtual-list/hooks/useChildren.js +2 -7
  1425. package/lib/virtual-list/hooks/useDiffItem.js +6 -18
  1426. package/lib/virtual-list/hooks/useFrameWheel.js +10 -22
  1427. package/lib/virtual-list/hooks/useHeights.js +7 -23
  1428. package/lib/virtual-list/hooks/useMobileTouchMove.js +4 -20
  1429. package/lib/virtual-list/hooks/useOriginScroll.js +6 -11
  1430. package/lib/virtual-list/hooks/useScrollTo.js +13 -35
  1431. package/lib/virtual-list/index.js +0 -3
  1432. package/lib/virtual-list/interface.d.ts +2 -2
  1433. package/lib/virtual-list/mock.js +2 -9
  1434. package/lib/virtual-list/utils/CacheMap.js +0 -6
  1435. package/lib/virtual-list/utils/algorithmUtil.js +6 -22
  1436. package/lib/virtual-list/utils/isFirefox.js +0 -3
  1437. package/package.json +1 -1
  1438. package/dist/acud.css +0 -28511
  1439. package/dist/acud.css.map +0 -1
  1440. package/dist/acud.min.css +0 -2
  1441. package/dist/acud.min.css.map +0 -1
  1442. package/dist/acud.min.js +0 -56
  1443. package/dist/acud.min.js.map +0 -1
package/es/card/Card.d.ts CHANGED
@@ -7,12 +7,12 @@ import { TabsProps } from '../tabs/tabs';
7
7
  import { Omit } from '../_util/type';
8
8
  import Meta from './Meta';
9
9
  import Grid from './Grid';
10
- export declare const getAction: (actions: React.ReactNode[]) => JSX.Element[];
10
+ export declare const getAction: (actions: React.ReactNode[]) => React.JSX.Element[];
11
11
  export { CardMetaProps } from './Meta';
12
12
  export { CardGridProps } from './Grid';
13
- export declare type CardType = 'inner';
14
- export declare type CardSize = 'default' | 'small';
15
- export declare type CardMediaPosition = 'left' | 'right';
13
+ export type CardType = 'inner';
14
+ export type CardSize = 'default' | 'small';
15
+ export type CardMediaPosition = 'left' | 'right';
16
16
  export interface CardTabListType {
17
17
  key: string;
18
18
  tab: React.ReactNode;
package/es/card/Card.js CHANGED
@@ -1,24 +1,18 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
-
5
4
  /**
6
5
  * @file card/Card
7
6
  * @author chenyaqiu
8
7
  */
9
8
  var __rest = this && this.__rest || function (s, e) {
10
9
  var t = {};
11
-
12
- for (var p in s) {
13
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
14
- }
15
-
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
16
11
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
12
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
18
13
  }
19
14
  return t;
20
15
  };
21
-
22
16
  import React, { useState } from 'react';
23
17
  import classNames from 'classnames';
24
18
  import Row from '../row';
@@ -42,57 +36,51 @@ export var getAction = function getAction(actions) {
42
36
  ;
43
37
  ;
44
38
  ;
45
-
46
39
  var Card = function Card(_a) {
47
40
  var _extends2, _classNames3;
48
-
49
41
  var prefixCls = _a.prefixCls,
50
- simple = _a.simple,
51
- description = _a.description,
52
- disabled = _a.disabled,
53
- footerExtra = _a.footerExtra,
54
- footerStyle = _a.footerStyle,
55
- children = _a.children,
56
- loading = _a.loading,
57
- _a$headStyle = _a.headStyle,
58
- headStyle = _a$headStyle === void 0 ? {} : _a$headStyle,
59
- _a$bodyStyle = _a.bodyStyle,
60
- bodyStyle = _a$bodyStyle === void 0 ? {} : _a$bodyStyle,
61
- _a$style = _a.style,
62
- style = _a$style === void 0 ? {} : _a$style,
63
- _a$bordered = _a.bordered,
64
- bordered = _a$bordered === void 0 ? true : _a$bordered,
65
- type = _a.type,
66
- title = _a.title,
67
- extra = _a.extra,
68
- cover = _a.cover,
69
- actions = _a.actions,
70
- actionsExtra = _a.actionsExtra,
71
- multiMedia = _a.multiMedia,
72
- _a$multiMediaPosition = _a.multiMediaPosition,
73
- multiMediaPosition = _a$multiMediaPosition === void 0 ? 'left' : _a$multiMediaPosition,
74
- tabList = _a.tabList,
75
- activeTabKey = _a.activeTabKey,
76
- defaultActiveTabKey = _a.defaultActiveTabKey,
77
- tabBarExtraContent = _a.tabBarExtraContent,
78
- hoverable = _a.hoverable,
79
- _a$tabProps = _a.tabProps,
80
- tabProps = _a$tabProps === void 0 ? {} : _a$tabProps,
81
- _a$className = _a.className,
82
- className = _a$className === void 0 ? '' : _a$className,
83
- restProps = __rest(_a, ["prefixCls", "simple", "description", "disabled", "footerExtra", "footerStyle", "children", "loading", "headStyle", "bodyStyle", "style", "bordered", "type", "title", "extra", "cover", "actions", "actionsExtra", "multiMedia", "multiMediaPosition", "tabList", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "className"]);
84
-
42
+ simple = _a.simple,
43
+ description = _a.description,
44
+ disabled = _a.disabled,
45
+ footerExtra = _a.footerExtra,
46
+ footerStyle = _a.footerStyle,
47
+ children = _a.children,
48
+ loading = _a.loading,
49
+ _a$headStyle = _a.headStyle,
50
+ headStyle = _a$headStyle === void 0 ? {} : _a$headStyle,
51
+ _a$bodyStyle = _a.bodyStyle,
52
+ bodyStyle = _a$bodyStyle === void 0 ? {} : _a$bodyStyle,
53
+ _a$style = _a.style,
54
+ style = _a$style === void 0 ? {} : _a$style,
55
+ _a$bordered = _a.bordered,
56
+ bordered = _a$bordered === void 0 ? true : _a$bordered,
57
+ type = _a.type,
58
+ title = _a.title,
59
+ extra = _a.extra,
60
+ cover = _a.cover,
61
+ actions = _a.actions,
62
+ actionsExtra = _a.actionsExtra,
63
+ multiMedia = _a.multiMedia,
64
+ _a$multiMediaPosition = _a.multiMediaPosition,
65
+ multiMediaPosition = _a$multiMediaPosition === void 0 ? 'left' : _a$multiMediaPosition,
66
+ tabList = _a.tabList,
67
+ activeTabKey = _a.activeTabKey,
68
+ defaultActiveTabKey = _a.defaultActiveTabKey,
69
+ tabBarExtraContent = _a.tabBarExtraContent,
70
+ hoverable = _a.hoverable,
71
+ _a$tabProps = _a.tabProps,
72
+ tabProps = _a$tabProps === void 0 ? {} : _a$tabProps,
73
+ _a$className = _a.className,
74
+ className = _a$className === void 0 ? '' : _a$className,
75
+ restProps = __rest(_a, ["prefixCls", "simple", "description", "disabled", "footerExtra", "footerStyle", "children", "loading", "headStyle", "bodyStyle", "style", "bordered", "type", "title", "extra", "cover", "actions", "actionsExtra", "multiMedia", "multiMediaPosition", "tabList", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "className"]);
85
76
  var _React$useContext = React.useContext(ConfigContext),
86
- getPrefixCls = _React$useContext.getPrefixCls,
87
- direction = _React$useContext.direction;
88
-
77
+ getPrefixCls = _React$useContext.getPrefixCls,
78
+ direction = _React$useContext.direction;
89
79
  var cardPrefixCls = getPrefixCls('card', prefixCls);
90
-
91
80
  var _useState = useState(false),
92
- _useState2 = _slicedToArray(_useState, 2),
93
- isSelected = _useState2[0],
94
- setIsSelected = _useState2[1];
95
-
81
+ _useState2 = _slicedToArray(_useState, 2),
82
+ isSelected = _useState2[0],
83
+ setIsSelected = _useState2[1];
96
84
  var isContainGrid = function isContainGrid() {
97
85
  var containGrid;
98
86
  React.Children.forEach(children, function (element) {
@@ -102,13 +90,10 @@ var Card = function Card(_a) {
102
90
  });
103
91
  return containGrid;
104
92
  };
105
-
106
93
  var onTabChange = function onTabChange(key) {
107
94
  var _a;
108
-
109
95
  return (_a = restProps.onTabChange) === null || _a === void 0 ? void 0 : _a.call(restProps, key);
110
96
  };
111
-
112
97
  var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? {
113
98
  padding: 24
114
99
  } : undefined;
@@ -150,9 +135,7 @@ var Card = function Card(_a) {
150
135
  span: 16
151
136
  }, block)));
152
137
  var hasActiveTabKey = activeTabKey !== undefined;
153
-
154
138
  var extraProps = _extends(_extends({}, tabProps), (_extends2 = {}, _defineProperty(_extends2, hasActiveTabKey ? 'activeKey' : 'defaultActiveKey', hasActiveTabKey ? activeTabKey : defaultActiveTabKey), _defineProperty(_extends2, "tabBarExtraContent", tabBarExtraContent), _extends2));
155
-
156
139
  var head;
157
140
  var footer;
158
141
  var body;
@@ -180,14 +163,12 @@ var Card = function Card(_a) {
180
163
  key: item.key
181
164
  });
182
165
  })) : null;
183
-
184
166
  if (children) {
185
167
  body = /*#__PURE__*/React.createElement("div", {
186
168
  className: "".concat(cardPrefixCls, "-body"),
187
169
  style: bodyStyle
188
170
  }, loading ? loadingBlock : children);
189
171
  }
190
-
191
172
  if (title || extra || tabs) {
192
173
  var titleClassName = classNames("".concat(cardPrefixCls, "-head-title"), _defineProperty({}, "".concat(cardPrefixCls, "-head-title-with-tabs"), !!tabs));
193
174
  var extraClassName = classNames("".concat(cardPrefixCls, "-head-extra"), _defineProperty({}, "".concat(cardPrefixCls, "-head-extra-with-tabs"), !!tabs));
@@ -202,7 +183,6 @@ var Card = function Card(_a) {
202
183
  className: extraClassName
203
184
  }, extra)), tabs);
204
185
  }
205
-
206
186
  if (description || footerExtra) {
207
187
  footer = /*#__PURE__*/React.createElement("div", {
208
188
  className: "".concat(cardPrefixCls, "-footer"),
@@ -215,7 +195,6 @@ var Card = function Card(_a) {
215
195
  className: "".concat(cardPrefixCls, "-footer-extra")
216
196
  }, footerExtra)));
217
197
  }
218
-
219
198
  var simpleCardRedner = /*#__PURE__*/React.createElement("div", {
220
199
  className: "".concat(cardPrefixCls, "-simple-con")
221
200
  }, body, /*#__PURE__*/React.createElement("div", {
@@ -238,7 +217,6 @@ var Card = function Card(_a) {
238
217
  }
239
218
  }, simple ? simpleCardRedner : cardRender);
240
219
  };
241
-
242
220
  Card.Grid = Grid;
243
221
  Card.Meta = Meta;
244
222
  export default Card;
package/es/card/Grid.js CHANGED
@@ -1,34 +1,26 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
-
4
3
  /**
5
4
  * @file card/Grid
6
5
  * @author chenyaqiu
7
6
  */
8
7
  var __rest = this && this.__rest || function (s, e) {
9
8
  var t = {};
10
-
11
- for (var p in s) {
12
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
13
- }
14
-
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
15
10
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
11
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
17
12
  }
18
13
  return t;
19
14
  };
20
-
21
15
  import * as React from 'react';
22
16
  import classNames from 'classnames';
23
17
  import { ConfigConsumer } from '../config-provider';
24
-
25
18
  var Grid = function Grid(_a) {
26
19
  var prefixCls = _a.prefixCls,
27
- className = _a.className,
28
- _a$hoverable = _a.hoverable,
29
- hoverable = _a$hoverable === void 0 ? true : _a$hoverable,
30
- props = __rest(_a, ["prefixCls", "className", "hoverable"]);
31
-
20
+ className = _a.className,
21
+ _a$hoverable = _a.hoverable,
22
+ hoverable = _a$hoverable === void 0 ? true : _a$hoverable,
23
+ props = __rest(_a, ["prefixCls", "className", "hoverable"]);
32
24
  return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {
33
25
  var getPrefixCls = _ref.getPrefixCls;
34
26
  var prefix = getPrefixCls('card', prefixCls);
@@ -38,5 +30,4 @@ var Grid = function Grid(_a) {
38
30
  }));
39
31
  });
40
32
  };
41
-
42
33
  export default Grid;
package/es/card/Meta.js CHANGED
@@ -1,40 +1,31 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
-
3
2
  /**
4
3
  * @file card/Meta
5
4
  * @author chenyaqiu
6
5
  */
7
6
  var __rest = this && this.__rest || function (s, e) {
8
7
  var t = {};
9
-
10
- for (var p in s) {
11
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
12
- }
13
-
8
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
14
9
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
15
10
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
16
11
  }
17
12
  return t;
18
13
  };
19
-
20
14
  import * as React from 'react';
21
15
  import classNames from 'classnames';
22
16
  import { ConfigConsumer } from '../config-provider';
23
17
  import { getAction } from './Card';
24
18
  ;
25
-
26
19
  var Meta = function Meta(props) {
27
20
  return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {
28
21
  var getPrefixCls = _ref.getPrefixCls;
29
-
30
22
  var customizePrefixCls = props.prefixCls,
31
- className = props.className,
32
- title = props.title,
33
- content = props.content,
34
- description = props.description,
35
- actions = props.actions,
36
- others = __rest(props, ["prefixCls", "className", "title", "content", "description", "actions"]);
37
-
23
+ className = props.className,
24
+ title = props.title,
25
+ content = props.content,
26
+ description = props.description,
27
+ actions = props.actions,
28
+ others = __rest(props, ["prefixCls", "className", "title", "content", "description", "actions"]);
38
29
  var prefixCls = getPrefixCls('card', customizePrefixCls);
39
30
  var classString = classNames("".concat(prefixCls, "-meta-wrap"), className);
40
31
  var titleDom = title ? /*#__PURE__*/React.createElement("div", {
@@ -58,5 +49,4 @@ var Meta = function Meta(props) {
58
49
  }, description), MetaActions));
59
50
  });
60
51
  };
61
-
62
52
  export default Meta;
@@ -1,6 +1,6 @@
1
1
  import '../../style/index.css';
2
- import './index.css'; // style dependencies
3
-
2
+ import './index.css';
3
+ // style dependencies
4
4
  import '../../tabs/style/css';
5
5
  import '../../row/style/css';
6
6
  import '../../col/style/css';
@@ -106,8 +106,7 @@
106
106
  background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
107
107
  background-size: 600% 600%;
108
108
  border-radius: 6px;
109
- -webkit-animation: card-loading 1.4s ease infinite;
110
- animation: card-loading 1.4s ease infinite;
109
+ animation: card-loading 1.4s ease infinite;
111
110
  }
112
111
  .acud-card-head {
113
112
  padding: 0 16px;
@@ -1000,17 +999,7 @@
1000
999
  background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
1001
1000
  background-size: 600% 600%;
1002
1001
  border-radius: 6px;
1003
- -webkit-animation: card-loading 1.4s ease infinite;
1004
- animation: card-loading 1.4s ease infinite;
1005
- }
1006
- @-webkit-keyframes card-loading {
1007
- 0%,
1008
- 100% {
1009
- background-position: 0 50%;
1010
- }
1011
- 50% {
1012
- background-position: 100% 50%;
1013
- }
1002
+ animation: card-loading 1.4s ease infinite;
1014
1003
  }
1015
1004
  @keyframes card-loading {
1016
1005
  0%,
@@ -1,6 +1,6 @@
1
1
  import '../../style/index.less';
2
- import './index.less'; // style dependencies
3
-
2
+ import './index.less';
3
+ // style dependencies
4
4
  import '../../tabs/style';
5
5
  import '../../row/style';
6
6
  import '../../col/style';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare type CarouselEffect = 'scrollx' | 'fade';
3
- export declare type DotPosition = 'top' | 'bottom' | 'left' | 'right';
4
- export declare type DotType = 'number' | 'dot';
2
+ export type CarouselEffect = 'scrollx' | 'fade';
3
+ export type DotPosition = 'top' | 'bottom' | 'left' | 'right';
4
+ export type DotType = 'number' | 'dot';
5
5
  export interface CarouselProps {
6
6
  /** 是否自动播放 */
7
7
  autoplay?: boolean;
@@ -6,58 +6,52 @@ import classNames from 'classnames';
6
6
  import { ConfigContext } from '../config-provider';
7
7
  import CarouselSwitch from './switch';
8
8
  import CarouselIndicator from './indicator';
9
-
10
9
  var Carousel = function Carousel(_ref) {
11
10
  var className = _ref.className,
12
- style = _ref.style,
13
- children = _ref.children,
14
- _ref$dotPosition = _ref.dotPosition,
15
- dotPosition = _ref$dotPosition === void 0 ? 'bottom' : _ref$dotPosition,
16
- _ref$playInterval = _ref.playInterval,
17
- playInterval = _ref$playInterval === void 0 ? 5000 : _ref$playInterval,
18
- _ref$autoplay = _ref.autoplay,
19
- autoplay = _ref$autoplay === void 0 ? true : _ref$autoplay,
20
- _ref$width = _ref.width,
21
- width = _ref$width === void 0 ? 1920 : _ref$width,
22
- _ref$dotType = _ref.dotType,
23
- dotType = _ref$dotType === void 0 ? 'dot' : _ref$dotType,
24
- _ref$animationTime = _ref.animationTime,
25
- animationTime = _ref$animationTime === void 0 ? 400 : _ref$animationTime,
26
- multi = _ref.multi,
27
- _ref$showNumber = _ref.showNumber,
28
- showNumber = _ref$showNumber === void 0 ? 3 : _ref$showNumber,
29
- _ref$multiShift = _ref.multiShift,
30
- multiShift = _ref$multiShift === void 0 ? false : _ref$multiShift,
31
- indicatorStyle = _ref.indicatorStyle;
11
+ style = _ref.style,
12
+ children = _ref.children,
13
+ _ref$dotPosition = _ref.dotPosition,
14
+ dotPosition = _ref$dotPosition === void 0 ? 'bottom' : _ref$dotPosition,
15
+ _ref$playInterval = _ref.playInterval,
16
+ playInterval = _ref$playInterval === void 0 ? 5000 : _ref$playInterval,
17
+ _ref$autoplay = _ref.autoplay,
18
+ autoplay = _ref$autoplay === void 0 ? true : _ref$autoplay,
19
+ _ref$width = _ref.width,
20
+ width = _ref$width === void 0 ? 1920 : _ref$width,
21
+ _ref$dotType = _ref.dotType,
22
+ dotType = _ref$dotType === void 0 ? 'dot' : _ref$dotType,
23
+ _ref$animationTime = _ref.animationTime,
24
+ animationTime = _ref$animationTime === void 0 ? 400 : _ref$animationTime,
25
+ multi = _ref.multi,
26
+ _ref$showNumber = _ref.showNumber,
27
+ showNumber = _ref$showNumber === void 0 ? 3 : _ref$showNumber,
28
+ _ref$multiShift = _ref.multiShift,
29
+ multiShift = _ref$multiShift === void 0 ? false : _ref$multiShift,
30
+ indicatorStyle = _ref.indicatorStyle;
32
31
  var carouselRef = useRef();
33
32
  var timer = useRef();
34
-
35
33
  var _useState = useState(false),
36
- _useState2 = _slicedToArray(_useState, 2),
37
- isHover = _useState2[0],
38
- setIsHover = _useState2[1];
39
-
34
+ _useState2 = _slicedToArray(_useState, 2),
35
+ isHover = _useState2[0],
36
+ setIsHover = _useState2[1];
40
37
  var _React$useContext = React.useContext(ConfigContext),
41
- getPrefixCls = _React$useContext.getPrefixCls;
42
-
43
- var prefixCls = getPrefixCls('carousel'); // 判断子元素是否是数组,如果不是,那就不存在轮播的情况
44
-
38
+ getPrefixCls = _React$useContext.getPrefixCls;
39
+ var prefixCls = getPrefixCls('carousel');
40
+ // 判断子元素是否是数组,如果不是,那就不存在轮播的情况
45
41
  var childrenIsArray = useMemo(function () {
46
42
  return Array.isArray(children);
47
- }, [children]); // 因为要实现无缝轮播,所以前后会增加一个key。例如对用户看到有3张图片,但渲染中前后会添加得到5张
48
-
43
+ }, [children]);
44
+ // 因为要实现无缝轮播,所以前后会增加一个key。例如对用户看到有3张图片,但渲染中前后会添加得到5张
49
45
  var extraCount = multi ? showNumber : 1;
50
-
51
46
  var _useState3 = useState({
52
- lastKey: extraCount,
53
- currentKey: extraCount
54
- }),
55
- _useState4 = _slicedToArray(_useState3, 2),
56
- _useState4$ = _useState4[0],
57
- lastKey = _useState4$.lastKey,
58
- currentKey = _useState4$.currentKey,
59
- setKey = _useState4[1];
60
-
47
+ lastKey: extraCount,
48
+ currentKey: extraCount
49
+ }),
50
+ _useState4 = _slicedToArray(_useState3, 2),
51
+ _useState4$ = _useState4[0],
52
+ lastKey = _useState4$.lastKey,
53
+ currentKey = _useState4$.currentKey,
54
+ setKey = _useState4[1];
61
55
  var length = Array.isArray(children) ? children.length : undefined;
62
56
  var next = useCallback(function () {
63
57
  // 向右滑动,最后一帧无缝滑动到第一帧使用的是额外添加的帧,滑动动画结束后,立刻切换到原始帧
@@ -82,8 +76,8 @@ var Carousel = function Carousel(_ref) {
82
76
  currentKey: nextKey > length + extraCount ? length + extraCount : nextKey
83
77
  });
84
78
  }
85
- }, [currentKey, extraCount, length, multiShift]); // 向左滑动,第一帧无缝滑动到最后一帧使用的是额外添加的帧,滑动动画结束后,立刻切换到原始帧
86
-
79
+ }, [currentKey, extraCount, length, multiShift]);
80
+ // 向左滑动,第一帧无缝滑动到最后一帧使用的是额外添加的帧,滑动动画结束后,立刻切换到原始帧
87
81
  var prev = useCallback(function () {
88
82
  if (currentKey === 0) {
89
83
  setKey({
@@ -106,8 +100,8 @@ var Carousel = function Carousel(_ref) {
106
100
  currentKey: nextKey < 0 ? 0 : currentKey - (multiShift ? extraCount : 1)
107
101
  });
108
102
  }
109
- }, [currentKey, extraCount, length, multiShift]); // 监听是否hover热区,hover情况下不会自动轮播
110
-
103
+ }, [currentKey, extraCount, length, multiShift]);
104
+ // 监听是否hover热区,hover情况下不会自动轮播
111
105
  useEffect(function () {
112
106
  carouselRef.current.addEventListener('mouseover', function () {
113
107
  setIsHover(true);
@@ -115,15 +109,13 @@ var Carousel = function Carousel(_ref) {
115
109
  carouselRef.current.addEventListener('mouseleave', function () {
116
110
  setIsHover(false);
117
111
  });
118
- }); // 自动轮播
119
-
112
+ });
113
+ // 自动轮播
120
114
  useEffect(function () {
121
115
  clearTimeout(timer.current);
122
-
123
116
  if (length > 1 && autoplay && !isHover) {
124
117
  timer.current = setTimeout(next, playInterval);
125
118
  }
126
-
127
119
  return function () {
128
120
  return clearTimeout(timer.current);
129
121
  };
@@ -132,40 +124,33 @@ var Carousel = function Carousel(_ref) {
132
124
  // next中立即切换的情况
133
125
  if (lastKey === length + extraCount && currentKey === extraCount) {
134
126
  return '0s';
135
- } // prev中立即切换的情况
136
-
137
-
127
+ }
128
+ // prev中立即切换的情况
138
129
  if (lastKey === 0 && currentKey === length) {
139
130
  return '0s';
140
- } // 正常切换的情况
141
-
142
-
131
+ }
132
+ // 正常切换的情况
143
133
  return "".concat(animationTime / 1000, "s");
144
- }, [lastKey, length, extraCount, currentKey, animationTime]); // 渲染的元素数组,首位增加实现无缝轮播
145
-
134
+ }, [lastKey, length, extraCount, currentKey, animationTime]);
135
+ // 渲染的元素数组,首位增加实现无缝轮播
146
136
  var renderChildren = useMemo(function () {
147
137
  var elements = Array.isArray(children) ? children : [children];
148
-
149
138
  if (elements.length >= 1) {
150
139
  var extraPre = elements.slice(elements.length - extraCount);
151
140
  var extraPost = elements.slice(0, extraCount);
152
141
  elements = [].concat(_toConsumableArray(extraPre), _toConsumableArray(elements), _toConsumableArray(extraPost));
153
142
  }
154
-
155
143
  return elements;
156
144
  }, [children, extraCount]);
157
145
  var cardWidth = useMemo(function () {
158
146
  if (multi) {
159
147
  return (width - 4 * (extraCount - 1)) / extraCount;
160
148
  }
161
-
162
149
  return width;
163
150
  }, [multi, width, extraCount]);
164
-
165
151
  var getLeft = function getLeft(idx) {
166
152
  return (multi ? cardWidth + 8 : cardWidth) * (idx - currentKey);
167
153
  };
168
-
169
154
  var wrapperClassName = classNames(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-multi"), multi));
170
155
  return /*#__PURE__*/React.createElement("div", {
171
156
  ref: carouselRef,
@@ -200,5 +185,4 @@ var Carousel = function Carousel(_ref) {
200
185
  }, child);
201
186
  })))) : children);
202
187
  };
203
-
204
188
  export default Carousel;
@@ -1,23 +1,22 @@
1
1
  import React, { useMemo, useRef } from 'react';
2
2
  import classNames from 'classnames';
3
3
  ;
4
-
5
4
  var CarouselIndicator = function CarouselIndicator(_ref) {
6
5
  var prefixCls = _ref.prefixCls,
7
- _ref$dotPosition = _ref.dotPosition,
8
- dotPosition = _ref$dotPosition === void 0 ? 'bottom' : _ref$dotPosition,
9
- _ref$autoplay = _ref.autoplay,
10
- autoplay = _ref$autoplay === void 0 ? true : _ref$autoplay,
11
- length = _ref.length,
12
- setKey = _ref.setKey,
13
- currentKey = _ref.currentKey,
14
- playInterval = _ref.playInterval,
15
- _ref$dotType = _ref.dotType,
16
- dotType = _ref$dotType === void 0 ? 'dot' : _ref$dotType,
17
- multi = _ref.multi,
18
- _ref$showNumber = _ref.showNumber,
19
- showNumber = _ref$showNumber === void 0 ? 1 : _ref$showNumber,
20
- style = _ref.style;
6
+ _ref$dotPosition = _ref.dotPosition,
7
+ dotPosition = _ref$dotPosition === void 0 ? 'bottom' : _ref$dotPosition,
8
+ _ref$autoplay = _ref.autoplay,
9
+ autoplay = _ref$autoplay === void 0 ? true : _ref$autoplay,
10
+ length = _ref.length,
11
+ setKey = _ref.setKey,
12
+ currentKey = _ref.currentKey,
13
+ playInterval = _ref.playInterval,
14
+ _ref$dotType = _ref.dotType,
15
+ dotType = _ref$dotType === void 0 ? 'dot' : _ref$dotType,
16
+ multi = _ref.multi,
17
+ _ref$showNumber = _ref.showNumber,
18
+ showNumber = _ref$showNumber === void 0 ? 1 : _ref$showNumber,
19
+ style = _ref.style;
21
20
  var timer = useRef();
22
21
  var extraCount = useMemo(function () {
23
22
  return multi ? showNumber : 1;
@@ -26,14 +25,11 @@ var CarouselIndicator = function CarouselIndicator(_ref) {
26
25
  if (currentKey >= length + extraCount) {
27
26
  return currentKey - length - extraCount;
28
27
  }
29
-
30
28
  if (currentKey < extraCount) {
31
29
  return length - extraCount + currentKey;
32
30
  }
33
-
34
31
  return currentKey - extraCount;
35
32
  }, [currentKey, extraCount, length]);
36
-
37
33
  var handleClick = function handleClick(idx) {
38
34
  if (currentKey === 0) {
39
35
  setKey({
@@ -49,7 +45,6 @@ var CarouselIndicator = function CarouselIndicator(_ref) {
49
45
  });
50
46
  return;
51
47
  }
52
-
53
48
  if (currentKey === length + extraCount) {
54
49
  setKey({
55
50
  lastKey: currentKey,
@@ -64,13 +59,11 @@ var CarouselIndicator = function CarouselIndicator(_ref) {
64
59
  });
65
60
  return;
66
61
  }
67
-
68
62
  setKey({
69
63
  lastKey: currentKey,
70
64
  currentKey: idx + extraCount
71
65
  });
72
66
  };
73
-
74
67
  return /*#__PURE__*/React.createElement("div", {
75
68
  style: style,
76
69
  className: classNames("".concat(prefixCls, "-indicator"), "".concat(prefixCls, "-indicator-").concat(dotType), "".concat(prefixCls, "-indicator-").concat(dotPosition))
@@ -93,5 +86,4 @@ var CarouselIndicator = function CarouselIndicator(_ref) {
93
86
  className: "total"
94
87
  }, length)));
95
88
  };
96
-
97
89
  export default CarouselIndicator;
@@ -2,11 +2,10 @@ import React from 'react';
2
2
  import OutlinedRight from "acud-icon/es/icons/OutlinedRight";
3
3
  import OutlinedLeft from "acud-icon/es/icons/OutlinedLeft";
4
4
  ;
5
-
6
5
  var CarouselSwitch = function CarouselSwitch(_ref) {
7
6
  var prefixCls = _ref.prefixCls,
8
- next = _ref.next,
9
- prev = _ref.prev;
7
+ next = _ref.next,
8
+ prev = _ref.prev;
10
9
  return /*#__PURE__*/React.createElement("div", {
11
10
  className: "".concat(prefixCls, "-switch")
12
11
  }, /*#__PURE__*/React.createElement("span", {
@@ -17,5 +16,4 @@ var CarouselSwitch = function CarouselSwitch(_ref) {
17
16
  onClick: next
18
17
  }, /*#__PURE__*/React.createElement(OutlinedRight, null)));
19
18
  };
20
-
21
19
  export default CarouselSwitch;