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/affix/index.js CHANGED
@@ -5,17 +5,13 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
5
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
6
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
7
  import _typeof from "@babel/runtime/helpers/esm/typeof";
8
-
9
8
  var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
10
9
  var c = arguments.length,
11
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
12
- d;
13
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
14
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15
- }
10
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
11
+ d;
12
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
13
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17
14
  };
18
-
19
15
  import * as React from 'react';
20
16
  import classNames from 'classnames';
21
17
  import omit from "rc-util/es/omit";
@@ -23,81 +19,59 @@ import ResizeObserver from 'rc-resize-observer';
23
19
  import { ConfigContext } from '../config-provider';
24
20
  import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame';
25
21
  import { addObserveTarget, removeObserveTarget, getTargetRect, getFixedTop, getFixedBottom } from './utils';
26
-
27
22
  function getDefaultTarget() {
28
23
  return typeof window !== 'undefined' ? window : null;
29
24
  }
30
-
31
25
  var AffixStatus;
32
-
33
26
  (function (AffixStatus) {
34
27
  AffixStatus[AffixStatus["None"] = 0] = "None";
35
28
  AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare";
36
29
  })(AffixStatus || (AffixStatus = {}));
37
-
38
30
  var Affix = /*#__PURE__*/function (_React$Component) {
39
31
  _inherits(Affix, _React$Component);
40
-
41
32
  var _super = _createSuper(Affix);
42
-
43
33
  function Affix() {
44
34
  var _this;
45
-
46
35
  _classCallCheck(this, Affix);
47
-
48
36
  _this = _super.apply(this, arguments);
49
37
  _this.state = {
50
38
  status: AffixStatus.None,
51
39
  lastAffix: false,
52
40
  prevTarget: null
53
41
  };
54
-
55
42
  _this.getOffsetTop = function () {
56
43
  var offsetBottom = _this.props.offsetBottom;
57
44
  var offsetTop = _this.props.offsetTop;
58
-
59
45
  if (offsetBottom === undefined && offsetTop === undefined) {
60
46
  offsetTop = 0;
61
47
  }
62
-
63
48
  return offsetTop;
64
49
  };
65
-
66
50
  _this.getOffsetBottom = function () {
67
51
  return _this.props.offsetBottom;
68
52
  };
69
-
70
53
  _this.savePlaceholderNode = function (node) {
71
54
  _this.placeholderNode = node;
72
55
  };
73
-
74
56
  _this.saveFixedNode = function (node) {
75
57
  _this.fixedNode = node;
76
- }; // =================== Measure ===================
77
-
78
-
58
+ };
59
+ // =================== Measure ===================
79
60
  _this.measure = function () {
80
61
  var _this$state = _this.state,
81
- status = _this$state.status,
82
- lastAffix = _this$state.lastAffix;
62
+ status = _this$state.status,
63
+ lastAffix = _this$state.lastAffix;
83
64
  var onChange = _this.props.onChange;
84
-
85
65
  var targetFunc = _this.getTargetFunc();
86
-
87
66
  if (status !== AffixStatus.Prepare || !_this.fixedNode || !_this.placeholderNode || !targetFunc) {
88
67
  return;
89
68
  }
90
-
91
69
  var offsetTop = _this.getOffsetTop();
92
-
93
70
  var offsetBottom = _this.getOffsetBottom();
94
-
95
71
  var targetNode = targetFunc();
96
-
97
72
  if (!targetNode) {
98
73
  return;
99
74
  }
100
-
101
75
  var newState = {
102
76
  status: AffixStatus.None
103
77
  };
@@ -105,7 +79,6 @@ var Affix = /*#__PURE__*/function (_React$Component) {
105
79
  var placeholderReact = getTargetRect(_this.placeholderNode);
106
80
  var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop);
107
81
  var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom);
108
-
109
82
  if (fixedTop !== undefined) {
110
83
  newState.affixStyle = {
111
84
  position: 'fixed',
@@ -129,51 +102,43 @@ var Affix = /*#__PURE__*/function (_React$Component) {
129
102
  height: placeholderReact.height
130
103
  };
131
104
  }
132
-
133
105
  newState.lastAffix = !!newState.affixStyle;
134
-
135
106
  if (onChange && lastAffix !== newState.lastAffix) {
136
107
  onChange(newState.lastAffix);
137
108
  }
138
-
139
109
  _this.setState(newState);
140
- }; // @ts-ignore TS6133
141
-
142
-
110
+ };
111
+ // @ts-ignore TS6133
143
112
  _this.prepareMeasure = function () {
144
113
  // event param is used before. Keep compatible ts define here.
145
114
  _this.setState({
146
115
  status: AffixStatus.Prepare,
147
116
  affixStyle: undefined,
148
117
  placeholderStyle: undefined
149
- }); // Test if `updatePosition` called
150
-
151
-
118
+ });
119
+ // Test if `updatePosition` called
152
120
  if (process.env.NODE_ENV === 'test') {
153
121
  var onTestUpdatePosition = _this.props.onTestUpdatePosition;
154
-
155
122
  if (onTestUpdatePosition) {
156
123
  onTestUpdatePosition();
157
124
  }
158
125
  }
159
- }; // =================== Render ===================
160
-
161
-
126
+ };
127
+ // =================== Render ===================
162
128
  _this.render = function () {
163
129
  var getPrefixCls = _this.context.getPrefixCls;
164
130
  var _this$state2 = _this.state,
165
- affixStyle = _this$state2.affixStyle,
166
- placeholderStyle = _this$state2.placeholderStyle;
131
+ affixStyle = _this$state2.affixStyle,
132
+ placeholderStyle = _this$state2.placeholderStyle;
167
133
  var _this$props = _this.props,
168
- prefixCls = _this$props.prefixCls,
169
- children = _this$props.children;
134
+ prefixCls = _this$props.prefixCls,
135
+ children = _this$props.children;
170
136
  var className = classNames(_defineProperty({}, getPrefixCls('affix', prefixCls), affixStyle));
171
- var props = omit(_this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange']); // Omit this since `onTestUpdatePosition` only works on test.
172
-
137
+ var props = omit(_this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange']);
138
+ // Omit this since `onTestUpdatePosition` only works on test.
173
139
  if (process.env.NODE_ENV === 'test') {
174
140
  props = omit(props, ['onTestUpdatePosition']);
175
141
  }
176
-
177
142
  return /*#__PURE__*/React.createElement(ResizeObserver, {
178
143
  onResize: function onResize() {
179
144
  _this.updatePosition();
@@ -193,36 +158,30 @@ var Affix = /*#__PURE__*/function (_React$Component) {
193
158
  }
194
159
  }, children))));
195
160
  };
196
-
197
161
  return _this;
198
162
  }
199
-
200
163
  _createClass(Affix, [{
201
164
  key: "getTargetFunc",
202
165
  value: function getTargetFunc() {
203
166
  var getTargetContainer = this.context.getTargetContainer;
204
167
  var target = this.props.target;
205
-
206
168
  if (target !== undefined) {
207
169
  return target;
208
170
  }
209
-
210
171
  return getTargetContainer || getDefaultTarget;
211
- } // Event handler
212
-
172
+ }
173
+ // Event handler
213
174
  }, {
214
175
  key: "componentDidMount",
215
176
  value: function componentDidMount() {
216
177
  var _this2 = this;
217
-
218
178
  var targetFunc = this.getTargetFunc();
219
-
220
179
  if (targetFunc) {
221
180
  // [Legacy] Wait for parent component ref has its value.
222
181
  // We should use target as directly element instead of function which makes element check hard.
223
182
  this.timeout = setTimeout(function () {
224
- addObserveTarget(targetFunc(), _this2); // Mock Event object.
225
-
183
+ addObserveTarget(targetFunc(), _this2);
184
+ // Mock Event object.
226
185
  _this2.updatePosition();
227
186
  });
228
187
  }
@@ -233,30 +192,24 @@ var Affix = /*#__PURE__*/function (_React$Component) {
233
192
  var prevTarget = this.state.prevTarget;
234
193
  var targetFunc = this.getTargetFunc();
235
194
  var newTarget = null;
236
-
237
195
  if (targetFunc) {
238
196
  newTarget = targetFunc() || null;
239
197
  }
240
-
241
198
  if (prevTarget !== newTarget) {
242
199
  removeObserveTarget(this);
243
-
244
200
  if (newTarget) {
245
- addObserveTarget(newTarget, this); // Mock Event object.
246
-
201
+ addObserveTarget(newTarget, this);
202
+ // Mock Event object.
247
203
  this.updatePosition();
248
- } // eslint-disable-next-line react/no-did-update-set-state
249
-
250
-
204
+ }
205
+ // eslint-disable-next-line react/no-did-update-set-state
251
206
  this.setState({
252
207
  prevTarget: newTarget
253
208
  });
254
209
  }
255
-
256
210
  if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) {
257
211
  this.updatePosition();
258
212
  }
259
-
260
213
  this.measure();
261
214
  }
262
215
  }, {
@@ -266,8 +219,8 @@ var Affix = /*#__PURE__*/function (_React$Component) {
266
219
  removeObserveTarget(this);
267
220
  this.updatePosition.cancel();
268
221
  this.lazyUpdatePosition.cancel();
269
- } // Handle realign logic
270
-
222
+ }
223
+ // Handle realign logic
271
224
  }, {
272
225
  key: "updatePosition",
273
226
  value: function updatePosition() {
@@ -277,37 +230,29 @@ var Affix = /*#__PURE__*/function (_React$Component) {
277
230
  key: "lazyUpdatePosition",
278
231
  value: function lazyUpdatePosition() {
279
232
  var targetFunc = this.getTargetFunc();
280
- var affixStyle = this.state.affixStyle; // Check position change before measure to make Safari smooth
281
-
233
+ var affixStyle = this.state.affixStyle;
234
+ // Check position change before measure to make Safari smooth
282
235
  if (targetFunc && affixStyle) {
283
236
  var offsetTop = this.getOffsetTop();
284
237
  var offsetBottom = this.getOffsetBottom();
285
238
  var targetNode = targetFunc();
286
-
287
239
  if (targetNode && this.placeholderNode) {
288
240
  var targetRect = getTargetRect(targetNode);
289
241
  var placeholderReact = getTargetRect(this.placeholderNode);
290
242
  var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop);
291
243
  var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom);
292
-
293
244
  if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
294
245
  return;
295
246
  }
296
247
  }
297
- } // Directly call prepare measure since it's already throttled.
298
-
299
-
248
+ }
249
+ // Directly call prepare measure since it's already throttled.
300
250
  this.prepareMeasure();
301
251
  }
302
252
  }]);
303
-
304
253
  return Affix;
305
254
  }(React.Component);
306
-
307
255
  Affix.contextType = ConfigContext;
308
-
309
256
  __decorate([throttleByAnimationFrameDecorator()], Affix.prototype, "updatePosition", null);
310
-
311
257
  __decorate([throttleByAnimationFrameDecorator()], Affix.prototype, "lazyUpdatePosition", null);
312
-
313
258
  export default Affix;
@@ -1,6 +1,6 @@
1
1
  import Affix from '.';
2
- export declare type BindElement = HTMLElement | Window | null | undefined;
3
- export declare type Rect = ClientRect | DOMRect;
2
+ export type BindElement = HTMLElement | Window | null | undefined;
3
+ export type Rect = ClientRect | DOMRect;
4
4
  export declare function getTargetRect(target: BindElement): ClientRect;
5
5
  export declare function getFixedTop(placeholderReact: Rect, targetRect: Rect, offsetTop: number | undefined): number;
6
6
  export declare function getFixedBottom(placeholderReact: Rect, targetRect: Rect, offsetBottom: number | undefined): number;
package/es/affix/utils.js CHANGED
@@ -10,7 +10,6 @@ export function getFixedTop(placeholderReact, targetRect, offsetTop) {
10
10
  if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) {
11
11
  return offsetTop + targetRect.top;
12
12
  }
13
-
14
13
  return undefined;
15
14
  }
16
15
  export function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
@@ -18,10 +17,9 @@ export function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
18
17
  var targetBottomOffset = window.innerHeight - targetRect.bottom;
19
18
  return offsetBottom + targetBottomOffset;
20
19
  }
21
-
22
20
  return undefined;
23
- } // ======================== Observer ========================
24
-
21
+ }
22
+ // ======================== Observer ========================
25
23
  var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
26
24
  var observerEntities = [];
27
25
  export function getObserverEntities() {
@@ -32,12 +30,10 @@ export function addObserveTarget(target, affix) {
32
30
  if (!target) {
33
31
  return;
34
32
  }
35
-
36
33
  ;
37
34
  var entity = observerEntities.find(function (item) {
38
35
  return item.target === target;
39
36
  });
40
-
41
37
  if (entity) {
42
38
  entity.affixList.push(affix);
43
39
  } else {
@@ -46,8 +42,8 @@ export function addObserveTarget(target, affix) {
46
42
  affixList: [affix],
47
43
  eventHandlers: {}
48
44
  };
49
- observerEntities.push(entity); // Add listener
50
-
45
+ observerEntities.push(entity);
46
+ // Add listener
51
47
  TRIGGER_EVENTS.forEach(function (eventName) {
52
48
  entity.eventHandlers[eventName] = addEventListener(target, eventName, function () {
53
49
  entity.affixList.forEach(function (targetAffix) {
@@ -62,24 +58,20 @@ export function removeObserveTarget(affix) {
62
58
  var hasAffix = oriObserverEntity.affixList.some(function (item) {
63
59
  return item === affix;
64
60
  });
65
-
66
61
  if (hasAffix) {
67
62
  oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) {
68
63
  return item !== affix;
69
64
  });
70
65
  }
71
-
72
66
  return hasAffix;
73
67
  });
74
-
75
68
  if (observerEntity && observerEntity.affixList.length === 0) {
76
69
  observerEntities = observerEntities.filter(function (item) {
77
70
  return item !== observerEntity;
78
- }); // Remove listener
79
-
71
+ });
72
+ // Remove listener
80
73
  TRIGGER_EVENTS.forEach(function (eventName) {
81
74
  var handler = observerEntity.eventHandlers[eventName];
82
-
83
75
  if (handler && handler.remove) {
84
76
  handler.remove();
85
77
  }
@@ -2,24 +2,18 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
-
6
5
  /**
7
6
  * @file ErrorBoundary
8
7
  * @author jiangting01
9
8
  */
10
9
  import * as React from 'react';
11
10
  import Alert from '.';
12
-
13
11
  var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
14
12
  _inherits(ErrorBoundary, _React$Component);
15
-
16
13
  var _super = _createSuper(ErrorBoundary);
17
-
18
14
  function ErrorBoundary() {
19
15
  var _this;
20
-
21
16
  _classCallCheck(this, ErrorBoundary);
22
-
23
17
  _this = _super.apply(this, arguments);
24
18
  _this.state = {
25
19
  error: undefined,
@@ -29,7 +23,6 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
29
23
  };
30
24
  return _this;
31
25
  }
32
-
33
26
  _createClass(ErrorBoundary, [{
34
27
  key: "componentDidCatch",
35
28
  value: function componentDidCatch(error, info) {
@@ -42,13 +35,12 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
42
35
  key: "render",
43
36
  value: function render() {
44
37
  var _this$props = this.props,
45
- message = _this$props.message,
46
- description = _this$props.description,
47
- children = _this$props.children;
38
+ message = _this$props.message,
39
+ description = _this$props.description,
40
+ children = _this$props.children;
48
41
  var _this$state = this.state,
49
- error = _this$state.error,
50
- info = _this$state.info;
51
-
42
+ error = _this$state.error,
43
+ info = _this$state.info;
52
44
  if (error) {
53
45
  var componentStack = (info === null || info === void 0 ? void 0 : info.componentStack) || null;
54
46
  var errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
@@ -59,12 +51,9 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
59
51
  description: /*#__PURE__*/React.createElement("pre", null, errorDescription)
60
52
  });
61
53
  }
62
-
63
54
  return children;
64
55
  }
65
56
  }]);
66
-
67
57
  return ErrorBoundary;
68
58
  }(React.Component);
69
-
70
59
  export { ErrorBoundary as default };
package/es/alert/index.js CHANGED
@@ -1,24 +1,18 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
-
5
4
  /**
6
5
  * @file alert 警告提示
7
6
  * @author jiangting01
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 * as React from 'react';
23
17
  import CloseOutlined from "acud-icon/es/icons/OutlinedClose";
24
18
  import CheckCircleFilled from "acud-icon/es/icons/FilledSuccess";
@@ -49,65 +43,51 @@ var iconMapping = {
49
43
  color: '#FF9326'
50
44
  }
51
45
  };
52
-
53
46
  var Alert = function Alert(_a) {
54
47
  var _classNames2;
55
-
56
48
  var description = _a.description,
57
- customizePrefixCls = _a.prefixCls,
58
- message = _a.message,
59
- banner = _a.banner,
60
- _a$className = _a.className,
61
- className = _a$className === void 0 ? '' : _a$className,
62
- style = _a.style,
63
- onMouseEnter = _a.onMouseEnter,
64
- onMouseLeave = _a.onMouseLeave,
65
- onClick = _a.onClick,
66
- afterClose = _a.afterClose,
67
- showIcon = _a.showIcon,
68
- closable = _a.closable,
69
- closeText = _a.closeText,
70
- action = _a.action,
71
- props = __rest(_a, ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "action"]);
72
-
49
+ customizePrefixCls = _a.prefixCls,
50
+ message = _a.message,
51
+ banner = _a.banner,
52
+ _a$className = _a.className,
53
+ className = _a$className === void 0 ? '' : _a$className,
54
+ style = _a.style,
55
+ onMouseEnter = _a.onMouseEnter,
56
+ onMouseLeave = _a.onMouseLeave,
57
+ onClick = _a.onClick,
58
+ afterClose = _a.afterClose,
59
+ showIcon = _a.showIcon,
60
+ closable = _a.closable,
61
+ closeText = _a.closeText,
62
+ action = _a.action,
63
+ props = __rest(_a, ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "action"]);
73
64
  var _React$useState = React.useState(false),
74
- _React$useState2 = _slicedToArray(_React$useState, 2),
75
- closed = _React$useState2[0],
76
- setClosed = _React$useState2[1];
77
-
65
+ _React$useState2 = _slicedToArray(_React$useState, 2),
66
+ closed = _React$useState2[0],
67
+ setClosed = _React$useState2[1];
78
68
  var ref = React.useRef();
79
-
80
69
  var _React$useContext = React.useContext(ConfigContext),
81
- getPrefixCls = _React$useContext.getPrefixCls,
82
- direction = _React$useContext.direction;
83
-
70
+ getPrefixCls = _React$useContext.getPrefixCls,
71
+ direction = _React$useContext.direction;
84
72
  var prefixCls = getPrefixCls('alert', customizePrefixCls);
85
-
86
73
  var handleClose = function handleClose(e) {
87
74
  var _a;
88
-
89
75
  setClosed(true);
90
76
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
91
77
  };
92
-
93
78
  var getType = function getType() {
94
79
  var type = props.type;
95
-
96
80
  if (type !== undefined) {
97
81
  return type;
98
- } // banner 模式默认为警告
99
-
100
-
82
+ }
83
+ // banner 模式默认为警告
101
84
  return banner ? 'warning' : 'info';
102
- }; // closeable when closeText is assigned
103
-
104
-
85
+ };
86
+ // closeable when closeText is assigned
105
87
  var isClosable = closeText ? true : closable;
106
88
  var type = getType();
107
-
108
89
  var renderIconNode = function renderIconNode() {
109
90
  var icon = props.icon;
110
-
111
91
  if (icon) {
112
92
  return replaceElement(icon, /*#__PURE__*/React.createElement("span", {
113
93
  className: "".concat(prefixCls, "-icon")
@@ -117,19 +97,15 @@ var Alert = function Alert(_a) {
117
97
  };
118
98
  });
119
99
  }
120
-
121
100
  var iconType = iconMapping[type];
122
-
123
101
  if (iconType) {
124
102
  return /*#__PURE__*/React.createElement(iconType.icon, {
125
103
  className: "".concat(prefixCls, "-icon"),
126
104
  color: iconType.color
127
105
  });
128
106
  }
129
-
130
107
  return null;
131
108
  };
132
-
133
109
  var renderCloseIcon = function renderCloseIcon() {
134
110
  return isClosable ? /*#__PURE__*/React.createElement("button", {
135
111
  type: "button",
@@ -139,9 +115,8 @@ var Alert = function Alert(_a) {
139
115
  }, closeText ? /*#__PURE__*/React.createElement("span", {
140
116
  className: "".concat(prefixCls, "-close-text")
141
117
  }, closeText) : /*#__PURE__*/React.createElement(CloseOutlined, null)) : null;
142
- }; // banner 模式默认有 Icon
143
-
144
-
118
+ };
119
+ // banner 模式默认有 Icon
145
120
  var isShowIcon = banner && showIcon === undefined ? true : showIcon;
146
121
  var alertCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-with-description"), !!description), _defineProperty(_classNames2, "".concat(prefixCls, "-no-icon"), !isShowIcon), _defineProperty(_classNames2, "".concat(prefixCls, "-banner"), !!banner), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames2), className);
147
122
  var dataOrAriaProps = getDataOrAriaProps(props);
@@ -158,7 +133,7 @@ var Alert = function Alert(_a) {
158
133
  onLeaveEnd: afterClose
159
134
  }, function (_ref) {
160
135
  var motionClassName = _ref.className,
161
- motionStyle = _ref.style;
136
+ motionStyle = _ref.style;
162
137
  return /*#__PURE__*/React.createElement("div", _extends({
163
138
  ref: ref,
164
139
  "data-show": !closed,
@@ -179,6 +154,5 @@ var Alert = function Alert(_a) {
179
154
  }, action) : null, renderCloseIcon());
180
155
  });
181
156
  };
182
-
183
157
  Alert.ErrorBoundary = ErrorBoundary;
184
158
  export default Alert;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import AnchorLink from './AnchorLink';
3
3
  import { ConfigConsumerProps } from '../config-provider';
4
- export declare type AnchorContainer = HTMLElement | Window;
4
+ export type AnchorContainer = HTMLElement | Window;
5
5
  export interface AnchorProps {
6
6
  prefixCls?: string;
7
7
  className?: string;
@@ -74,5 +74,5 @@ export default class Anchor extends React.Component<AnchorProps, AnchorState, Co
74
74
  setCurrentActiveLink: (link: string) => void;
75
75
  handleScroll: () => void;
76
76
  updateInk: () => void;
77
- render: () => JSX.Element;
77
+ render: () => React.JSX.Element;
78
78
  }