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.
- package/dist/acud.js +12452 -19749
- package/dist/acud.js.map +1 -1
- package/es/_util/colors.d.ts +3 -3
- package/es/_util/colors.js +2 -2
- package/es/_util/easings.js +2 -4
- package/es/_util/getDataOrAriaProps.js +0 -1
- package/es/_util/getRenderPropValue.d.ts +1 -1
- package/es/_util/getRenderPropValue.js +0 -3
- package/es/_util/getScroll.js +0 -4
- package/es/_util/hooks/useCombinedRefs.js +0 -2
- package/es/_util/hooks/useFlexGapSupport.js +3 -4
- package/es/_util/hooks/useForceUpdate.js +4 -5
- package/es/_util/hooks/useMergedState.js +17 -26
- package/es/_util/hooks/usePatchElement.js +5 -6
- package/es/_util/hooks/useSyncState.d.ts +1 -1
- package/es/_util/hooks/useSyncState.js +2 -2
- package/es/_util/isNumeric.js +0 -1
- package/es/_util/motion.d.ts +1 -1
- package/es/_util/motion.js +2 -11
- package/es/_util/reactNode.d.ts +2 -2
- package/es/_util/reactNode.js +0 -1
- package/es/_util/responsiveObserve.d.ts +5 -5
- package/es/_util/responsiveObserve.js +0 -8
- package/es/_util/scrollTo.js +6 -10
- package/es/_util/statusUtils.d.ts +1 -1
- package/es/_util/statusUtils.js +0 -1
- package/es/_util/styleChecker.js +6 -10
- package/es/_util/throttleByAnimationFrame.js +0 -6
- package/es/_util/type.d.ts +3 -3
- package/es/_util/type.js +0 -2
- package/es/affix/index.d.ts +1 -1
- package/es/affix/index.js +33 -88
- package/es/affix/utils.d.ts +2 -2
- package/es/affix/utils.js +6 -14
- package/es/alert/ErrorBoundary.js +5 -16
- package/es/alert/index.js +28 -54
- package/es/anchor/Anchor.d.ts +2 -2
- package/es/anchor/Anchor.js +21 -72
- package/es/anchor/AnchorLink.d.ts +2 -2
- package/es/anchor/AnchorLink.js +13 -32
- package/es/anchor/style/css.js +2 -1
- package/es/anchor/style/index.js +2 -1
- package/es/avatar/SizeContext.d.ts +1 -1
- package/es/avatar/SizeContext.js +1 -1
- package/es/avatar/avatar.js +27 -55
- package/es/avatar/group.js +12 -17
- package/es/avatar/style/css.js +2 -2
- package/es/avatar/style/index.js +2 -2
- package/es/back-top/index.js +14 -27
- package/es/badge/Ribbon.d.ts +1 -1
- package/es/badge/Ribbon.js +9 -17
- package/es/badge/ScrollNumber.js +20 -34
- package/es/badge/SingleNumber.d.ts +2 -2
- package/es/badge/SingleNumber.js +23 -39
- package/es/badge/index.js +47 -75
- package/es/badge/style/index.css +14 -119
- package/es/badge/utils.js +2 -2
- package/es/breadcrumb/Breadcrumb.js +13 -25
- package/es/breadcrumb/BreadcrumbItem.js +13 -31
- package/es/button/LoadingIcon.d.ts +2 -1
- package/es/button/LoadingIcon.js +0 -2
- package/es/button/button-group.d.ts +1 -1
- package/es/button/button-group.js +2 -12
- package/es/button/button.d.ts +6 -6
- package/es/button/button.js +23 -46
- package/es/calendar/Header.d.ts +2 -2
- package/es/calendar/Header.js +26 -49
- package/es/calendar/generateCalendar.d.ts +8 -8
- package/es/calendar/generateCalendar.js +43 -69
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/interface.d.ts +4 -4
- package/es/calendar/style/css.js +2 -2
- package/es/calendar/style/index.js +2 -2
- package/es/card/Card.d.ts +4 -4
- package/es/card/Card.js +40 -62
- package/es/card/Grid.js +5 -14
- package/es/card/Meta.js +7 -17
- package/es/card/style/css.js +2 -2
- package/es/card/style/index.css +2 -13
- package/es/card/style/index.js +2 -2
- package/es/carousel/carousel.d.ts +3 -3
- package/es/carousel/carousel.js +48 -64
- package/es/carousel/indicator.js +14 -22
- package/es/carousel/switch.js +2 -4
- package/es/cascader/Cascader.d.ts +4 -4
- package/es/cascader/Cascader.js +41 -147
- package/es/cascader/MenuItem.d.ts +1 -1
- package/es/cascader/MenuItem.js +16 -23
- package/es/cascader/Menus.d.ts +5 -5
- package/es/cascader/Menus.js +87 -153
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +71 -155
- package/es/cascader/renderEmpty.d.ts +1 -1
- package/es/cascader/renderEmpty.js +0 -2
- package/es/cascader/style/css.js +2 -2
- package/es/cascader/style/index.css +4 -8
- package/es/cascader/style/index.js +2 -2
- package/es/cascader/utils.js +2 -8
- package/es/checkbox/BaseCheckbox.d.ts +1 -1
- package/es/checkbox/BaseCheckbox.js +22 -46
- package/es/checkbox/ButtonCheckbox.d.ts +1 -1
- package/es/checkbox/ButtonCheckbox.js +9 -33
- package/es/checkbox/Checkbox.js +19 -35
- package/es/checkbox/Group.d.ts +1 -1
- package/es/checkbox/Group.js +20 -45
- package/es/checkbox/GroupButtonCheckbox.d.ts +2 -1
- package/es/checkbox/GroupButtonCheckbox.js +12 -26
- package/es/checkbox/style/index.css +1 -12
- package/es/clear/index.d.ts +2 -1
- package/es/clear/index.js +4 -14
- package/es/col/style/css.js +2 -2
- package/es/col/style/index.js +2 -2
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/Collapse.js +3 -14
- package/es/collapse/CollapsePanel.js +3 -6
- package/es/color-picker/colorPicker.d.ts +1 -1
- package/es/color-picker/colorPicker.js +37 -46
- package/es/color-picker/style/css.js +2 -2
- package/es/color-picker/style/index.js +2 -2
- package/es/color-picker/util.js +4 -7
- package/es/config-provider/DisabledContext.d.ts +1 -1
- package/es/config-provider/DisabledContext.js +1 -1
- package/es/config-provider/SizeContext.d.ts +1 -1
- package/es/config-provider/SizeContext.js +1 -1
- package/es/config-provider/context.d.ts +2 -2
- package/es/config-provider/context.js +0 -6
- package/es/config-provider/index.js +24 -40
- package/es/config-provider/renderEmpty.d.ts +1 -1
- package/es/config-provider/renderEmpty.js +0 -7
- package/es/date-picker/PickerButton.d.ts +2 -2
- package/es/date-picker/PickerTag.d.ts +2 -2
- package/es/date-picker/generatePicker/generateRangePicker.js +15 -36
- package/es/date-picker/generatePicker/generateSinglePicker.js +14 -40
- package/es/date-picker/generatePicker/index.d.ts +12 -12
- package/es/date-picker/generatePicker/index.js +12 -26
- package/es/date-picker/index.d.ts +4 -4
- package/es/date-picker/locale/en_US.js +2 -2
- package/es/date-picker/locale/zh_CN.js +4 -4
- package/es/date-picker/src/PanelContext.d.ts +2 -2
- package/es/date-picker/src/Picker.d.ts +8 -8
- package/es/date-picker/src/Picker.js +167 -213
- package/es/date-picker/src/PickerPanel.d.ts +6 -6
- package/es/date-picker/src/PickerPanel.js +113 -167
- package/es/date-picker/src/PickerTrigger.d.ts +3 -3
- package/es/date-picker/src/PickerTrigger.js +11 -18
- package/es/date-picker/src/RangeContext.d.ts +1 -1
- package/es/date-picker/src/RangePicker.d.ts +11 -11
- package/es/date-picker/src/RangePicker.js +259 -376
- package/es/date-picker/src/generate/dateFns.js +0 -6
- package/es/date-picker/src/generate/dayjs.js +2 -15
- package/es/date-picker/src/generate/index.d.ts +1 -1
- package/es/date-picker/src/generate/moment.js +2 -11
- package/es/date-picker/src/hooks/useCellClassName.js +8 -14
- package/es/date-picker/src/hooks/useHoverValue.js +11 -20
- package/es/date-picker/src/hooks/usePickerInput.js +23 -44
- package/es/date-picker/src/hooks/useRangeDisabled.js +13 -29
- package/es/date-picker/src/hooks/useRangeViewDates.js +17 -40
- package/es/date-picker/src/hooks/useTextValueMapping.js +4 -9
- package/es/date-picker/src/hooks/useValueTexts.d.ts +1 -1
- package/es/date-picker/src/hooks/useValueTexts.js +4 -8
- package/es/date-picker/src/interface.d.ts +15 -15
- package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
- package/es/date-picker/src/panels/DatePanel/DateBody.js +13 -20
- package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
- package/es/date-picker/src/panels/DatePanel/DateHeader.js +12 -17
- package/es/date-picker/src/panels/DatePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DatePanel/index.js +17 -20
- package/es/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DatetimePanel/index.js +15 -21
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -7
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -10
- package/es/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/index.js +10 -14
- package/es/date-picker/src/panels/Header.d.ts +2 -2
- package/es/date-picker/src/panels/Header.js +15 -19
- package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/MonthBody.js +7 -11
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -12
- package/es/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/index.js +11 -15
- package/es/date-picker/src/panels/PanelBody.d.ts +2 -2
- package/es/date-picker/src/panels/PanelBody.js +22 -33
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -10
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -12
- package/es/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/index.js +11 -14
- package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeBody.js +55 -75
- package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeHeader.js +5 -9
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -19
- package/es/date-picker/src/panels/TimePanel/index.d.ts +4 -4
- package/es/date-picker/src/panels/TimePanel/index.js +17 -21
- package/es/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/WeekPanel/index.js +6 -12
- package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/YearBody.js +8 -14
- package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/YearHeader.js +6 -11
- package/es/date-picker/src/panels/YearPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/index.js +12 -16
- package/es/date-picker/src/utils/dateUtil.js +11 -53
- package/es/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/es/date-picker/src/utils/getExtraFooter.js +0 -1
- package/es/date-picker/src/utils/getRanges.d.ts +3 -3
- package/es/date-picker/src/utils/getRanges.js +8 -13
- package/es/date-picker/src/utils/miscUtil.d.ts +1 -1
- package/es/date-picker/src/utils/miscUtil.js +0 -6
- package/es/date-picker/src/utils/timeUtil.js +0 -5
- package/es/date-picker/src/utils/uiUtil.d.ts +2 -2
- package/es/date-picker/src/utils/uiUtil.js +14 -63
- package/es/date-picker/style/css.js +2 -2
- package/es/date-picker/style/index.css +4 -9
- package/es/date-picker/style/index.js +2 -2
- package/es/date-picker/util.js +0 -11
- package/es/dialog-box/dialogbox.js +16 -30
- package/es/dialog-box/style/index.css +1 -2
- package/es/divider/index.js +13 -26
- package/es/drawer/index.d.ts +3 -3
- package/es/drawer/index.js +55 -87
- package/es/drawer/style/index.css +1 -10
- package/es/dropdown/dropdown-button.js +23 -35
- package/es/dropdown/dropdown.d.ts +3 -3
- package/es/dropdown/dropdown.js +24 -42
- package/es/dropdown/rc-dropdown/Dropdown.js +24 -58
- package/es/dropdown/style/css.js +2 -2
- package/es/dropdown/style/index.js +2 -2
- package/es/empty/index.js +11 -23
- package/es/flow/index.js +13 -16
- package/es/form/ErrorList.d.ts +1 -1
- package/es/form/ErrorList.js +22 -27
- package/es/form/Form.d.ts +2 -2
- package/es/form/Form.js +30 -50
- package/es/form/FormItem.d.ts +4 -4
- package/es/form/FormItem.js +57 -109
- package/es/form/FormItemInput.js +17 -21
- package/es/form/FormItemLabel.d.ts +2 -2
- package/es/form/FormItemLabel.js +27 -50
- package/es/form/FormList.js +4 -15
- package/es/form/hooks/useCacheErrors.js +0 -6
- package/es/form/hooks/useForm.js +2 -8
- package/es/form/hooks/useFrameState.d.ts +1 -1
- package/es/form/hooks/useFrameState.js +3 -9
- package/es/form/hooks/useItemRef.js +1 -7
- package/es/form/index.d.ts +1 -1
- package/es/form/index.js +0 -2
- package/es/form/interface.d.ts +1 -1
- package/es/form/style/css.js +4 -3
- package/es/form/style/index.css +16 -72
- package/es/form/style/index.js +4 -3
- package/es/form/util.js +0 -4
- package/es/grid/col.d.ts +2 -2
- package/es/grid/col.js +21 -41
- package/es/grid/hooks/useBreakpoint.js +0 -3
- package/es/grid/row.d.ts +1 -1
- package/es/grid/row.js +24 -41
- package/es/icon/index.js +0 -1
- package/es/img-crop/EasyCrop.js +30 -38
- package/es/img-crop/index.js +178 -241
- package/es/img-crop/interface.d.ts +4 -4
- package/es/img-crop/style/css.js +2 -2
- package/es/img-crop/style/index.js +2 -2
- package/es/input/AutoComplete.d.ts +2 -1
- package/es/input/AutoComplete.js +9 -18
- package/es/input/Input.js +49 -102
- package/es/input/Label.js +18 -53
- package/es/input/MultiSelectInput.js +6 -11
- package/es/input/Password.js +26 -53
- package/es/input/TextArea.js +34 -60
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/index.js +15 -25
- package/es/input-number/src/InputNumber.js +117 -187
- package/es/input-number/src/StepHandler.d.ts +1 -1
- package/es/input-number/src/StepHandler.js +14 -22
- package/es/input-number/src/hooks/useCursor.js +7 -14
- package/es/input-number/src/hooks/useFrame.js +0 -3
- package/es/input-number/src/hooks/useUpdateEffect.js +0 -2
- package/es/input-number/src/utils/MiniDecimal.d.ts +1 -1
- package/es/input-number/src/utils/MiniDecimal.js +18 -66
- package/es/input-number/src/utils/numberUtil.js +14 -27
- package/es/layout/Sider.d.ts +2 -2
- package/es/layout/Sider.js +44 -75
- package/es/layout/index.d.ts +1 -1
- package/es/layout/layout.js +17 -33
- package/es/link/link.d.ts +4 -4
- package/es/link/link.js +14 -28
- package/es/loading/icon.d.ts +2 -1
- package/es/loading/icon.js +1 -3
- package/es/loading/index.js +12 -18
- package/es/loading/style/index.css +7 -112
- package/es/locale/en_US.js +2 -2
- package/es/locale/zh_CN.js +2 -2
- package/es/locale-provider/LocaleReceiver.d.ts +1 -1
- package/es/locale-provider/LocaleReceiver.js +4 -13
- package/es/locale-provider/demo/locale.js +2 -2
- package/es/locale-provider/index.d.ts +1 -1
- package/es/locale-provider/index.js +4 -14
- package/es/menu/ItemGroup.js +4 -10
- package/es/menu/MenuHead.js +5 -18
- package/es/menu/MenuItem.js +7 -21
- package/es/menu/SubMenu.js +5 -17
- package/es/menu/baseMenu.js +11 -22
- package/es/menu/globalSilderBar.js +18 -32
- package/es/menu/header.js +7 -12
- package/es/menu/menu.js +8 -16
- package/es/menu/rc-menu/Divider.d.ts +1 -1
- package/es/menu/rc-menu/Divider.js +2 -6
- package/es/menu/rc-menu/Icon.js +2 -4
- package/es/menu/rc-menu/Menu.js +162 -188
- package/es/menu/rc-menu/MenuItem.js +54 -87
- package/es/menu/rc-menu/MenuItemGroup.js +7 -20
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -32
- package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/PopupTrigger.js +22 -27
- package/es/menu/rc-menu/SubMenu/SubMenuList.js +5 -15
- package/es/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/index.js +83 -113
- package/es/menu/rc-menu/context/IdContext.js +0 -2
- package/es/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/es/menu/rc-menu/context/MenuContext.js +3 -14
- package/es/menu/rc-menu/context/PathContext.js +2 -2
- package/es/menu/rc-menu/hooks/useAccessibility.js +43 -82
- package/es/menu/rc-menu/hooks/useActive.js +5 -8
- package/es/menu/rc-menu/hooks/useDirectionStyle.js +3 -5
- package/es/menu/rc-menu/hooks/useKeyRecords.js +7 -25
- package/es/menu/rc-menu/hooks/useMemoCallback.js +0 -4
- package/es/menu/rc-menu/hooks/useUUID.js +5 -6
- package/es/menu/rc-menu/index.d.ts +1 -1
- package/es/menu/rc-menu/index.js +0 -1
- package/es/menu/rc-menu/interface.d.ts +7 -7
- package/es/menu/rc-menu/utils/motionUtil.js +0 -2
- package/es/menu/rc-menu/utils/nodeUtil.js +0 -6
- package/es/menu/rc-menu/utils/warnUtil.js +2 -9
- package/es/menu/style/css.js +2 -2
- package/es/menu/style/index.js +2 -2
- package/es/modal/DialogBox.js +19 -39
- package/es/modal/Modal.js +17 -28
- package/es/modal/dialog.js +0 -16
- package/es/modal/locale.js +0 -2
- package/es/modal/style/css.js +2 -2
- package/es/modal/style/index.css +1 -2
- package/es/modal/style/index.js +2 -2
- package/es/pagination/pagination.d.ts +1 -1
- package/es/pagination/pagination.js +11 -25
- package/es/pagination/rc-pagination/Goto.js +7 -21
- package/es/pagination/rc-pagination/Options.js +12 -18
- package/es/pagination/rc-pagination/Pager.js +8 -12
- package/es/pagination/rc-pagination/Pagination.js +64 -124
- package/es/pagination/style/css.js +2 -2
- package/es/pagination/style/index.css +6 -0
- package/es/pagination/style/index.js +2 -2
- package/es/pagination/style/index.less +10 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/index.js +18 -41
- package/es/popconfirm/style/css.js +2 -2
- package/es/popconfirm/style/index.js +2 -2
- package/es/popover/index.js +5 -15
- package/es/progress/CircleProgress.js +48 -53
- package/es/progress/LineProgress.js +39 -44
- package/es/progress/common/index.js +2 -2
- package/es/progress/index.js +33 -44
- package/es/progress/interface.d.ts +6 -6
- package/es/radio/Radio.js +12 -31
- package/es/radio/RadioButton.d.ts +2 -1
- package/es/radio/RadioButton.js +14 -30
- package/es/radio/RadioGroup.d.ts +1 -1
- package/es/radio/RadioGroup.js +16 -22
- package/es/rate/rate.js +72 -110
- package/es/row/style/css.js +2 -2
- package/es/row/style/index.js +2 -2
- package/es/search/Search.js +40 -61
- package/es/search/style/css.js +2 -2
- package/es/search/style/index.js +2 -2
- package/es/select/index.d.ts +4 -4
- package/es/select/index.js +29 -43
- package/es/select/src/OptGroup.js +0 -1
- package/es/select/src/Option.js +0 -1
- package/es/select/src/OptionList.js +104 -172
- package/es/select/src/Select.d.ts +2 -2
- package/es/select/src/Select.js +0 -12
- package/es/select/src/SelectTrigger.js +28 -44
- package/es/select/src/Selector/Input.d.ts +1 -1
- package/es/select/src/Selector/Input.js +26 -33
- package/es/select/src/Selector/MultipleSelector.js +51 -71
- package/es/select/src/Selector/SingleSelector.js +29 -37
- package/es/select/src/Selector/index.js +22 -47
- package/es/select/src/TransBtn.js +6 -11
- package/es/select/src/generate.js +231 -347
- package/es/select/src/hooks/useCacheDisplayValue.js +1 -4
- package/es/select/src/hooks/useCacheOptions.js +0 -2
- package/es/select/src/hooks/useDelayReset.js +3 -11
- package/es/select/src/hooks/useLayoutEffect.js +0 -1
- package/es/select/src/hooks/useLock.js +2 -6
- package/es/select/src/hooks/useSelectTriggerControl.js +0 -3
- package/es/select/src/interface/generator.d.ts +12 -12
- package/es/select/src/interface/index.d.ts +5 -5
- package/es/select/src/utils/commonUtil.js +8 -26
- package/es/select/src/utils/legacyUtil.js +11 -23
- package/es/select/src/utils/valueUtil.js +23 -62
- package/es/select/src/utils/warningPropsUtil.js +30 -46
- package/es/select/style/css.js +2 -2
- package/es/select/style/index.css +4 -8
- package/es/select/style/index.js +2 -2
- package/es/select/utils/iconUtil.js +16 -26
- package/es/skeleton/Avatar.d.ts +2 -1
- package/es/skeleton/Avatar.js +3 -7
- package/es/skeleton/Button.d.ts +2 -1
- package/es/skeleton/Button.js +5 -10
- package/es/skeleton/Element.d.ts +1 -1
- package/es/skeleton/Element.js +4 -7
- package/es/skeleton/Image.d.ts +2 -1
- package/es/skeleton/Image.js +6 -9
- package/es/skeleton/Input.d.ts +2 -1
- package/es/skeleton/Input.js +4 -9
- package/es/skeleton/Node.js +4 -9
- package/es/skeleton/Paragraph.d.ts +2 -2
- package/es/skeleton/Paragraph.js +7 -15
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.js +21 -49
- package/es/skeleton/Title.d.ts +1 -1
- package/es/skeleton/Title.js +3 -5
- package/es/skeleton/style/index.css +1 -10
- package/es/slider/SliderTooltip.js +0 -5
- package/es/slider/index.js +21 -41
- package/es/slider/interface.d.ts +1 -1
- package/es/space/Item.d.ts +1 -1
- package/es/space/Item.js +10 -15
- package/es/space/index.d.ts +1 -1
- package/es/space/index.js +29 -48
- package/es/steps/index.d.ts +1 -1
- package/es/steps/index.js +10 -19
- package/es/steps/interface.d.ts +1 -1
- package/es/steps/src/step.d.ts +1 -1
- package/es/steps/src/step.js +39 -66
- package/es/steps/src/steps.d.ts +3 -3
- package/es/steps/src/steps.js +24 -47
- package/es/steps/style/css.js +2 -1
- package/es/steps/style/index.js +2 -1
- package/es/style/index.css +144 -526
- package/es/switch/index.js +19 -34
- package/es/switch/interface.d.ts +2 -2
- package/es/switch/style/index.css +8 -32
- package/es/table/Column.js +0 -2
- package/es/table/ColumnGroup.js +0 -2
- package/es/table/ExpandIcon.d.ts +1 -1
- package/es/table/ExpandIcon.js +4 -8
- package/es/table/Space.js +4 -10
- package/es/table/Table.d.ts +1 -1
- package/es/table/Table.js +114 -166
- package/es/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/es/table/baseTable/Body/BodyRow.js +42 -65
- package/es/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/es/table/baseTable/Body/ExpandedRow.js +13 -20
- package/es/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureCell.js +1 -1
- package/es/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureRow.js +3 -5
- package/es/table/baseTable/Body/index.d.ts +1 -1
- package/es/table/baseTable/Body/index.js +23 -33
- package/es/table/baseTable/Cell/index.d.ts +1 -1
- package/es/table/baseTable/Cell/index.js +58 -98
- package/es/table/baseTable/ColGroup.d.ts +2 -2
- package/es/table/baseTable/ColGroup.js +7 -19
- package/es/table/baseTable/FixedHolder/index.js +29 -46
- package/es/table/baseTable/Footer/Cell.d.ts +1 -1
- package/es/table/baseTable/Footer/Cell.js +11 -14
- package/es/table/baseTable/Footer/Row.d.ts +1 -1
- package/es/table/baseTable/Footer/Row.js +2 -8
- package/es/table/baseTable/Footer/Summary.js +0 -2
- package/es/table/baseTable/Footer/index.d.ts +2 -2
- package/es/table/baseTable/Footer/index.js +2 -4
- package/es/table/baseTable/Header/Header.js +9 -23
- package/es/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/es/table/baseTable/Header/HeaderRow.js +8 -16
- package/es/table/baseTable/Panel/index.d.ts +1 -1
- package/es/table/baseTable/Panel/index.js +1 -3
- package/es/table/baseTable/Table.d.ts +1 -1
- package/es/table/baseTable/Table.js +127 -195
- package/es/table/baseTable/context/StickyContext.js +2 -2
- package/es/table/baseTable/hooks/useColumns.js +40 -82
- package/es/table/baseTable/hooks/useFlattenRecords.js +4 -10
- package/es/table/baseTable/hooks/useFrame.d.ts +1 -1
- package/es/table/baseTable/hooks/useFrame.js +2 -13
- package/es/table/baseTable/hooks/useSticky.js +12 -14
- package/es/table/baseTable/hooks/useStickyOffsets.js +4 -9
- package/es/table/baseTable/interface.d.ts +20 -20
- package/es/table/baseTable/stickyScrollBar.js +14 -40
- package/es/table/baseTable/sugar/Column.js +0 -2
- package/es/table/baseTable/sugar/ColumnGroup.js +0 -2
- package/es/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/es/table/baseTable/utils/expandUtil.js +4 -10
- package/es/table/baseTable/utils/fixUtil.js +0 -4
- package/es/table/baseTable/utils/legacyUtil.js +2 -13
- package/es/table/baseTable/utils/valueUtil.js +2 -17
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterDropdown.js +50 -102
- package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterSearch.js +6 -9
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterWrapper.js +0 -2
- package/es/table/hooks/useFilter/index.js +20 -45
- package/es/table/hooks/useLazyKVMap.js +0 -6
- package/es/table/hooks/usePagination.js +15 -36
- package/es/table/hooks/useSelection.d.ts +1 -1
- package/es/table/hooks/useSelection.js +105 -167
- package/es/table/hooks/useSorter.js +21 -65
- package/es/table/hooks/useTitleColumns.js +0 -5
- package/es/table/interface.d.ts +15 -15
- package/es/table/style/css.js +2 -2
- package/es/table/style/index.css +0 -3
- package/es/table/style/index.js +2 -2
- package/es/table/util.js +0 -3
- package/es/tabs/src/TabNavList/AddButton.js +4 -8
- package/es/tabs/src/TabNavList/OperationNode.js +33 -55
- package/es/tabs/src/TabNavList/TabNode.js +25 -48
- package/es/tabs/src/TabNavList/index.js +129 -192
- package/es/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/es/tabs/src/TabPanelList/TabPane.js +12 -16
- package/es/tabs/src/TabPanelList/index.d.ts +1 -1
- package/es/tabs/src/TabPanelList/index.js +7 -9
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.js +67 -96
- package/es/tabs/src/hooks/useOffsets.js +6 -11
- package/es/tabs/src/hooks/useRaf.d.ts +1 -1
- package/es/tabs/src/hooks/useRaf.js +2 -9
- package/es/tabs/src/hooks/useRefs.js +0 -4
- package/es/tabs/src/hooks/useSyncState.d.ts +1 -1
- package/es/tabs/src/hooks/useSyncState.js +2 -7
- package/es/tabs/src/hooks/useTouchMove.js +32 -48
- package/es/tabs/src/hooks/useVisibleRange.js +2 -13
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/tabs.d.ts +3 -3
- package/es/tabs/tabs.js +10 -24
- package/es/tag/CheckableTag.js +7 -19
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +19 -40
- package/es/tag/style/index.css +1 -12
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/index.js +9 -22
- package/es/time-picker/style/css.js +4 -4
- package/es/time-picker/style/index.css +0 -1
- package/es/time-picker/style/index.js +4 -4
- package/es/timeline/interface.d.ts +1 -1
- package/es/timeline/style/index.css +4 -27
- package/es/timeline/timeline.js +16 -23
- package/es/timeline/timelineItem.js +23 -51
- package/es/toast/PurePanel.d.ts +2 -2
- package/es/toast/PurePanel.js +23 -34
- package/es/toast/base.d.ts +1 -1
- package/es/toast/base.js +63 -94
- package/es/toast/index.js +38 -61
- package/es/toast/interface.d.ts +3 -3
- package/es/toast/style/index.css +17 -64
- package/es/toast/useNotification.d.ts +1 -1
- package/es/toast/useNotification.js +52 -70
- package/es/toast/util.js +0 -7
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +31 -61
- package/es/tooltip/placements.js +6 -8
- package/es/tooltip/style/index.css +0 -1
- package/es/transfer/DataSource.d.ts +2 -1
- package/es/transfer/DataSource.js +39 -53
- package/es/transfer/SourceList.d.ts +2 -1
- package/es/transfer/SourceList.js +15 -31
- package/es/transfer/Target.d.ts +2 -1
- package/es/transfer/Target.js +45 -64
- package/es/transfer/TargetList.d.ts +2 -1
- package/es/transfer/TargetList.js +14 -25
- package/es/transfer/index.d.ts +5 -5
- package/es/transfer/index.js +18 -31
- package/es/transfer/style/css.js +2 -2
- package/es/transfer/style/index.js +2 -2
- package/es/transfer/util.js +0 -3
- package/es/tree/style/css.js +2 -2
- package/es/tree/style/index.css +1 -12
- package/es/tree/style/index.js +2 -2
- package/es/tree/tree.d.ts +3 -3
- package/es/tree/tree.js +34 -92
- package/es/tree/utils/dragHelper.d.ts +2 -2
- package/es/tree/utils/dragHelper.js +5 -10
- package/es/tree/utils/iconHelper.js +0 -6
- package/es/tree/utils/nodeHelper.js +0 -17
- package/es/tree-select/index.d.ts +4 -4
- package/es/tree-select/index.js +59 -77
- package/es/tree-select/src/OptionList.d.ts +1 -1
- package/es/tree-select/src/OptionList.js +63 -107
- package/es/tree-select/src/TreeNode.js +0 -1
- package/es/tree-select/src/TreeSelect.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.js +166 -215
- package/es/tree-select/src/hooks/useCache.js +2 -4
- package/es/tree-select/src/hooks/useCheckedKeys.js +4 -5
- package/es/tree-select/src/hooks/useDataEntities.js +2 -3
- package/es/tree-select/src/hooks/useFilterTreeData.js +2 -9
- package/es/tree-select/src/hooks/useRefFunc.js +0 -1
- package/es/tree-select/src/hooks/useTreeData.js +10 -16
- package/es/tree-select/src/interface.d.ts +4 -4
- package/es/tree-select/src/utils/legacyUtil.js +10 -33
- package/es/tree-select/src/utils/strategyUtil.d.ts +1 -1
- package/es/tree-select/src/utils/strategyUtil.js +0 -7
- package/es/tree-select/src/utils/valueUtil.js +3 -9
- package/es/tree-select/src/utils/warningPropsUtil.js +5 -10
- package/es/tree-select/style/css.js +2 -2
- package/es/tree-select/style/index.css +1 -12
- package/es/tree-select/style/index.js +2 -2
- package/es/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/es/upload/BaseUpload/AjaxUploader.js +114 -186
- package/es/upload/BaseUpload/Upload.d.ts +2 -2
- package/es/upload/BaseUpload/Upload.js +0 -13
- package/es/upload/BaseUpload/attr-accept.js +10 -18
- package/es/upload/BaseUpload/interface.d.ts +4 -4
- package/es/upload/BaseUpload/request.js +10 -26
- package/es/upload/BaseUpload/traverseFileTree.js +4 -12
- package/es/upload/Dragger.d.ts +1 -1
- package/es/upload/Dragger.js +3 -12
- package/es/upload/Upload.js +117 -190
- package/es/upload/UploadList/ListItem.js +40 -53
- package/es/upload/UploadList/index.js +45 -79
- package/es/upload/interface.d.ts +8 -8
- package/es/upload/style/css.js +2 -2
- package/es/upload/style/index.css +4 -26
- package/es/upload/style/index.js +2 -2
- package/es/upload/utils.js +3 -23
- package/es/virtual-list/Filler.js +4 -8
- package/es/virtual-list/Item.js +1 -1
- package/es/virtual-list/List.d.ts +5 -5
- package/es/virtual-list/List.js +122 -169
- package/es/virtual-list/ScrollBar.d.ts +1 -1
- package/es/virtual-list/ScrollBar.js +23 -72
- package/es/virtual-list/hooks/useChildren.d.ts +2 -2
- package/es/virtual-list/hooks/useChildren.js +2 -1
- package/es/virtual-list/hooks/useDiffItem.js +6 -10
- package/es/virtual-list/hooks/useFrameWheel.js +10 -14
- package/es/virtual-list/hooks/useHeights.js +7 -14
- package/es/virtual-list/hooks/useMobileTouchMove.js +4 -15
- package/es/virtual-list/hooks/useOriginScroll.js +6 -8
- package/es/virtual-list/hooks/useScrollTo.js +12 -28
- package/es/virtual-list/interface.d.ts +2 -2
- package/es/virtual-list/mock.js +2 -1
- package/es/virtual-list/utils/CacheMap.js +0 -5
- package/es/virtual-list/utils/algorithmUtil.js +6 -20
- package/lib/_util/colors.d.ts +3 -3
- package/lib/_util/colors.js +2 -4
- package/lib/_util/createWorker.js +0 -1
- package/lib/_util/devWarning.js +0 -6
- package/lib/_util/easings.js +2 -5
- package/lib/_util/getDataOrAriaProps.js +0 -2
- package/lib/_util/getRenderPropValue.d.ts +1 -1
- package/lib/_util/getRenderPropValue.js +0 -5
- package/lib/_util/getScroll.js +0 -6
- package/lib/_util/hooks/useCombinedRefs.js +0 -7
- package/lib/_util/hooks/useFlexGapSupport.js +3 -13
- package/lib/_util/hooks/useForceUpdate.js +4 -12
- package/lib/_util/hooks/useMergedState.js +17 -30
- package/lib/_util/hooks/usePatchElement.js +5 -14
- package/lib/_util/hooks/useSyncState.d.ts +1 -1
- package/lib/_util/hooks/useSyncState.js +2 -9
- package/lib/_util/isNumeric.js +0 -2
- package/lib/_util/lengthLimit.js +0 -2
- package/lib/_util/motion.d.ts +1 -1
- package/lib/_util/motion.js +0 -12
- package/lib/_util/reactNode.d.ts +2 -2
- package/lib/_util/reactNode.js +0 -8
- package/lib/_util/responsiveObserve.d.ts +5 -5
- package/lib/_util/responsiveObserve.js +0 -12
- package/lib/_util/scrollTo.js +6 -18
- package/lib/_util/statusUtils.d.ts +1 -1
- package/lib/_util/statusUtils.js +0 -9
- package/lib/_util/styleChecker.js +6 -18
- package/lib/_util/throttleByAnimationFrame.js +0 -11
- package/lib/_util/type.d.ts +3 -3
- package/lib/_util/type.js +0 -6
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.js +33 -103
- package/lib/affix/style/css.js +0 -1
- package/lib/affix/style/index.js +0 -1
- package/lib/affix/utils.d.ts +2 -2
- package/lib/affix/utils.js +7 -23
- package/lib/alert/ErrorBoundary.js +5 -23
- package/lib/alert/index.js +28 -73
- package/lib/alert/style/css.js +0 -1
- package/lib/alert/style/index.js +0 -1
- package/lib/anchor/Anchor.d.ts +2 -2
- package/lib/anchor/Anchor.js +21 -87
- package/lib/anchor/AnchorLink.d.ts +2 -2
- package/lib/anchor/AnchorLink.js +13 -43
- package/lib/anchor/context.js +0 -5
- package/lib/anchor/index.js +0 -4
- package/lib/anchor/style/css.js +0 -1
- package/lib/anchor/style/index.js +0 -1
- package/lib/avatar/SizeContext.d.ts +1 -1
- package/lib/avatar/SizeContext.js +1 -6
- package/lib/avatar/avatar.js +27 -71
- package/lib/avatar/group.js +12 -30
- package/lib/avatar/index.js +0 -4
- package/lib/avatar/style/css.js +0 -2
- package/lib/avatar/style/index.js +0 -2
- package/lib/back-top/index.js +14 -48
- package/lib/back-top/style/css.js +0 -1
- package/lib/back-top/style/index.js +0 -1
- package/lib/badge/Ribbon.d.ts +1 -1
- package/lib/badge/Ribbon.js +10 -26
- package/lib/badge/ScrollNumber.js +20 -42
- package/lib/badge/SingleNumber.d.ts +2 -2
- package/lib/badge/SingleNumber.js +24 -46
- package/lib/badge/index.js +47 -88
- package/lib/badge/style/css.js +0 -1
- package/lib/badge/style/index.css +14 -119
- package/lib/badge/style/index.js +0 -1
- package/lib/badge/utils.js +1 -2
- package/lib/breadcrumb/Breadcrumb.js +11 -34
- package/lib/breadcrumb/BreadcrumbItem.js +13 -41
- package/lib/breadcrumb/index.js +0 -3
- package/lib/breadcrumb/style/css.js +0 -1
- package/lib/breadcrumb/style/index.js +0 -1
- package/lib/button/LoadingIcon.d.ts +2 -1
- package/lib/button/LoadingIcon.js +0 -5
- package/lib/button/button-group.d.ts +1 -1
- package/lib/button/button-group.js +2 -20
- package/lib/button/button.d.ts +6 -6
- package/lib/button/button.js +23 -63
- package/lib/button/index.js +0 -3
- package/lib/button/style/css.js +0 -1
- package/lib/button/style/index.js +0 -1
- package/lib/calendar/Header.d.ts +2 -2
- package/lib/calendar/Header.js +26 -60
- package/lib/calendar/generateCalendar.d.ts +8 -8
- package/lib/calendar/generateCalendar.js +43 -86
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +0 -4
- package/lib/calendar/interface.d.ts +4 -4
- package/lib/calendar/locale/en_US.js +0 -3
- package/lib/calendar/locale/zh_CN.js +0 -3
- package/lib/calendar/style/css.js +0 -3
- package/lib/calendar/style/index.js +0 -3
- package/lib/card/Card.d.ts +4 -4
- package/lib/card/Card.js +40 -83
- package/lib/card/Grid.js +5 -22
- package/lib/card/Meta.js +7 -26
- package/lib/card/index.js +0 -3
- package/lib/card/style/css.js +0 -4
- package/lib/card/style/index.css +2 -13
- package/lib/card/style/index.js +0 -4
- package/lib/carousel/carousel.d.ts +3 -3
- package/lib/carousel/carousel.js +48 -76
- package/lib/carousel/index.js +0 -3
- package/lib/carousel/indicator.js +14 -29
- package/lib/carousel/style/css.js +0 -1
- package/lib/carousel/style/index.js +0 -1
- package/lib/carousel/switch.js +2 -9
- package/lib/cascader/Cascader.d.ts +4 -4
- package/lib/cascader/Cascader.js +41 -158
- package/lib/cascader/MenuItem.d.ts +1 -1
- package/lib/cascader/MenuItem.js +16 -32
- package/lib/cascader/Menus.d.ts +5 -5
- package/lib/cascader/Menus.js +87 -174
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +71 -192
- package/lib/cascader/renderEmpty.d.ts +1 -1
- package/lib/cascader/renderEmpty.js +1 -9
- package/lib/cascader/style/css.js +0 -7
- package/lib/cascader/style/index.css +4 -8
- package/lib/cascader/style/index.js +0 -7
- package/lib/cascader/utils.js +2 -11
- package/lib/checkbox/BaseCheckbox.d.ts +1 -1
- package/lib/checkbox/BaseCheckbox.js +22 -56
- package/lib/checkbox/ButtonCheckbox.d.ts +1 -1
- package/lib/checkbox/ButtonCheckbox.js +9 -44
- package/lib/checkbox/Checkbox.js +19 -43
- package/lib/checkbox/Group.d.ts +1 -1
- package/lib/checkbox/Group.js +20 -59
- package/lib/checkbox/GroupButtonCheckbox.d.ts +2 -1
- package/lib/checkbox/GroupButtonCheckbox.js +12 -32
- package/lib/checkbox/index.js +1 -5
- package/lib/checkbox/style/css.js +0 -1
- package/lib/checkbox/style/index.css +1 -12
- package/lib/checkbox/style/index.js +0 -1
- package/lib/clear/index.d.ts +2 -1
- package/lib/clear/index.js +4 -19
- package/lib/clear/style/css.js +0 -1
- package/lib/clear/style/index.js +0 -1
- package/lib/col/index.js +0 -2
- package/lib/col/style/css.js +0 -1
- package/lib/col/style/index.js +0 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/Collapse.js +3 -26
- package/lib/collapse/CollapsePanel.js +3 -14
- package/lib/collapse/index.js +0 -3
- package/lib/collapse/style/css.js +0 -1
- package/lib/collapse/style/index.js +0 -1
- package/lib/color-picker/colorPicker.d.ts +1 -1
- package/lib/color-picker/colorPicker.js +38 -59
- package/lib/color-picker/index.js +0 -3
- package/lib/color-picker/style/css.js +0 -3
- package/lib/color-picker/style/index.js +0 -3
- package/lib/color-picker/util.js +4 -12
- package/lib/config-provider/DisabledContext.d.ts +1 -1
- package/lib/config-provider/DisabledContext.js +1 -8
- package/lib/config-provider/SizeContext.d.ts +1 -1
- package/lib/config-provider/SizeContext.js +2 -8
- package/lib/config-provider/context.d.ts +2 -2
- package/lib/config-provider/context.js +1 -13
- package/lib/config-provider/index.js +24 -50
- package/lib/config-provider/renderEmpty.d.ts +1 -1
- package/lib/config-provider/renderEmpty.js +1 -15
- package/lib/config-provider/style/css.js +0 -1
- package/lib/config-provider/style/index.js +0 -1
- package/lib/date-picker/PickerButton.d.ts +2 -2
- package/lib/date-picker/PickerButton.js +0 -8
- package/lib/date-picker/PickerTag.d.ts +2 -2
- package/lib/date-picker/PickerTag.js +0 -8
- package/lib/date-picker/generatePicker/generateRangePicker.js +15 -61
- package/lib/date-picker/generatePicker/generateSinglePicker.js +14 -65
- package/lib/date-picker/generatePicker/index.d.ts +12 -12
- package/lib/date-picker/generatePicker/index.js +12 -33
- package/lib/date-picker/index.d.ts +4 -4
- package/lib/date-picker/index.js +0 -4
- package/lib/date-picker/locale/en_US.js +2 -7
- package/lib/date-picker/locale/zh_CN.js +4 -9
- package/lib/date-picker/src/PanelContext.d.ts +2 -2
- package/lib/date-picker/src/PanelContext.js +1 -5
- package/lib/date-picker/src/Picker.d.ts +8 -8
- package/lib/date-picker/src/Picker.js +168 -234
- package/lib/date-picker/src/PickerPanel.d.ts +6 -6
- package/lib/date-picker/src/PickerPanel.js +114 -193
- package/lib/date-picker/src/PickerTrigger.d.ts +3 -3
- package/lib/date-picker/src/PickerTrigger.js +12 -26
- package/lib/date-picker/src/RangeContext.d.ts +1 -1
- package/lib/date-picker/src/RangeContext.js +1 -5
- package/lib/date-picker/src/RangePicker.d.ts +11 -11
- package/lib/date-picker/src/RangePicker.js +260 -404
- package/lib/date-picker/src/generate/dateFns.js +0 -11
- package/lib/date-picker/src/generate/dayjs.js +2 -32
- package/lib/date-picker/src/generate/index.d.ts +1 -1
- package/lib/date-picker/src/generate/moment.js +2 -15
- package/lib/date-picker/src/hooks/useCellClassName.js +8 -19
- package/lib/date-picker/src/hooks/useHoverValue.js +11 -25
- package/lib/date-picker/src/hooks/usePickerInput.js +23 -50
- package/lib/date-picker/src/hooks/useRangeDisabled.js +13 -36
- package/lib/date-picker/src/hooks/useRangeViewDates.js +17 -48
- package/lib/date-picker/src/hooks/useTextValueMapping.js +4 -16
- package/lib/date-picker/src/hooks/useValueTexts.d.ts +1 -1
- package/lib/date-picker/src/hooks/useValueTexts.js +4 -13
- package/lib/date-picker/src/index.js +0 -5
- package/lib/date-picker/src/interface.d.ts +15 -15
- package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
- package/lib/date-picker/src/panels/DatePanel/DateBody.js +13 -30
- package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/DatePanel/DateHeader.js +12 -26
- package/lib/date-picker/src/panels/DatePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DatePanel/index.js +17 -33
- package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DatetimePanel/index.js +15 -36
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -20
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -21
- package/lib/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/index.js +10 -24
- package/lib/date-picker/src/panels/Header.d.ts +2 -2
- package/lib/date-picker/src/panels/Header.js +15 -26
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.js +7 -22
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -21
- package/lib/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/index.js +11 -24
- package/lib/date-picker/src/panels/PanelBody.d.ts +2 -2
- package/lib/date-picker/src/panels/PanelBody.js +22 -45
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -21
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -21
- package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/index.js +11 -23
- package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeBody.js +55 -86
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.js +5 -17
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -28
- package/lib/date-picker/src/panels/TimePanel/index.d.ts +4 -4
- package/lib/date-picker/src/panels/TimePanel/index.js +17 -33
- package/lib/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/WeekPanel/index.js +6 -22
- package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/YearBody.js +8 -28
- package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/YearHeader.js +6 -22
- package/lib/date-picker/src/panels/YearPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/index.js +12 -26
- package/lib/date-picker/src/utils/dateUtil.js +11 -73
- package/lib/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/lib/date-picker/src/utils/getExtraFooter.js +0 -6
- package/lib/date-picker/src/utils/getRanges.d.ts +3 -3
- package/lib/date-picker/src/utils/getRanges.js +8 -18
- package/lib/date-picker/src/utils/miscUtil.d.ts +1 -1
- package/lib/date-picker/src/utils/miscUtil.js +0 -13
- package/lib/date-picker/src/utils/timeUtil.js +0 -9
- package/lib/date-picker/src/utils/uiUtil.d.ts +2 -2
- package/lib/date-picker/src/utils/uiUtil.js +14 -78
- package/lib/date-picker/style/css.js +0 -3
- package/lib/date-picker/style/index.css +4 -9
- package/lib/date-picker/style/index.js +0 -3
- package/lib/date-picker/util.js +0 -13
- package/lib/dialog-box/dialogbox.js +16 -48
- package/lib/dialog-box/index.js +0 -3
- package/lib/dialog-box/style/css.js +0 -1
- package/lib/dialog-box/style/index.css +1 -2
- package/lib/dialog-box/style/index.js +0 -1
- package/lib/divider/index.js +13 -29
- package/lib/divider/style/css.js +0 -1
- package/lib/divider/style/index.js +0 -1
- package/lib/drawer/index.d.ts +3 -3
- package/lib/drawer/index.js +55 -102
- package/lib/drawer/style/css.js +0 -1
- package/lib/drawer/style/index.css +1 -10
- package/lib/drawer/style/index.js +0 -1
- package/lib/dropdown/dropdown-button.js +23 -48
- package/lib/dropdown/dropdown.d.ts +3 -3
- package/lib/dropdown/dropdown.js +24 -61
- package/lib/dropdown/index.js +0 -3
- package/lib/dropdown/rc-dropdown/Dropdown.js +24 -69
- package/lib/dropdown/rc-dropdown/index.js +0 -2
- package/lib/dropdown/rc-dropdown/placements.js +0 -1
- package/lib/dropdown/style/css.js +0 -5
- package/lib/dropdown/style/index.js +0 -5
- package/lib/empty/index.js +11 -33
- package/lib/empty/style/css.js +0 -1
- package/lib/empty/style/index.js +0 -1
- package/lib/flow/index.js +13 -25
- package/lib/form/ErrorList.d.ts +1 -1
- package/lib/form/ErrorList.js +23 -40
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/Form.js +30 -64
- package/lib/form/FormItem.d.ts +4 -4
- package/lib/form/FormItem.js +57 -134
- package/lib/form/FormItemInput.js +18 -35
- package/lib/form/FormItemLabel.d.ts +2 -2
- package/lib/form/FormItemLabel.js +27 -66
- package/lib/form/FormList.js +4 -24
- package/lib/form/context.js +1 -10
- package/lib/form/hooks/useCacheErrors.js +0 -12
- package/lib/form/hooks/useForm.js +3 -17
- package/lib/form/hooks/useFrameState.d.ts +1 -1
- package/lib/form/hooks/useFrameState.js +4 -17
- package/lib/form/hooks/useItemRef.js +2 -15
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +1 -13
- package/lib/form/interface.d.ts +1 -1
- package/lib/form/style/css.js +0 -2
- package/lib/form/style/index.css +16 -72
- package/lib/form/style/index.js +0 -2
- package/lib/form/util.js +0 -7
- package/lib/grid/RowContext.js +0 -2
- package/lib/grid/col.d.ts +2 -2
- package/lib/grid/col.js +21 -52
- package/lib/grid/hooks/useBreakpoint.js +0 -8
- package/lib/grid/index.js +0 -5
- package/lib/grid/row.d.ts +1 -1
- package/lib/grid/row.js +24 -57
- package/lib/grid/style/css.js +0 -1
- package/lib/grid/style/index.js +0 -1
- package/lib/icon/index.js +0 -2
- package/lib/img-crop/EasyCrop.js +30 -52
- package/lib/img-crop/index.js +178 -255
- package/lib/img-crop/interface.d.ts +4 -4
- package/lib/img-crop/style/css.js +0 -2
- package/lib/img-crop/style/index.js +0 -2
- package/lib/index.js +0 -61
- package/lib/input/AutoComplete.d.ts +2 -1
- package/lib/input/AutoComplete.js +7 -29
- package/lib/input/Input.js +49 -121
- package/lib/input/Label.js +18 -66
- package/lib/input/MultiSelectInput.js +6 -15
- package/lib/input/Password.js +26 -64
- package/lib/input/TextArea.js +32 -73
- package/lib/input/index.js +0 -8
- package/lib/input/style/css.js +0 -1
- package/lib/input/style/index.js +0 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.js +15 -42
- package/lib/input-number/src/InputNumber.js +117 -204
- package/lib/input-number/src/StepHandler.d.ts +1 -1
- package/lib/input-number/src/StepHandler.js +14 -32
- package/lib/input-number/src/hooks/useCursor.js +7 -17
- package/lib/input-number/src/hooks/useFrame.js +0 -7
- package/lib/input-number/src/hooks/useLayoutEffect.js +0 -7
- package/lib/input-number/src/hooks/useUpdateEffect.js +0 -7
- package/lib/input-number/src/index.js +0 -3
- package/lib/input-number/src/utils/MiniDecimal.d.ts +1 -1
- package/lib/input-number/src/utils/MiniDecimal.js +18 -74
- package/lib/input-number/src/utils/numberUtil.js +14 -32
- package/lib/input-number/src/utils/supportUtil.js +0 -1
- package/lib/input-number/style/css.js +0 -1
- package/lib/input-number/style/index.js +0 -1
- package/lib/layout/Sider.d.ts +2 -2
- package/lib/layout/Sider.js +44 -89
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/index.js +0 -7
- package/lib/layout/layout.js +17 -44
- package/lib/layout/style/css.js +0 -1
- package/lib/layout/style/index.js +0 -1
- package/lib/link/index.js +0 -3
- package/lib/link/link.d.ts +4 -4
- package/lib/link/link.js +14 -36
- package/lib/link/style/css.js +0 -1
- package/lib/link/style/index.js +0 -1
- package/lib/loading/icon.d.ts +2 -1
- package/lib/loading/icon.js +2 -9
- package/lib/loading/index.js +13 -28
- package/lib/loading/style/css.js +0 -1
- package/lib/loading/style/index.css +7 -112
- package/lib/loading/style/index.js +0 -1
- package/lib/locale/default.js +0 -3
- package/lib/locale/en_US.js +2 -4
- package/lib/locale/zh_CN.js +2 -4
- package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
- package/lib/locale-provider/LocaleReceiver.js +4 -23
- package/lib/locale-provider/context.js +1 -2
- package/lib/locale-provider/default.js +0 -3
- package/lib/locale-provider/demo/locale.js +2 -3
- package/lib/locale-provider/index.d.ts +1 -1
- package/lib/locale-provider/index.js +4 -23
- package/lib/menu/ItemGroup.js +5 -17
- package/lib/menu/MenuContext.js +0 -2
- package/lib/menu/MenuHead.js +6 -29
- package/lib/menu/MenuItem.js +7 -33
- package/lib/menu/SubMenu.js +5 -26
- package/lib/menu/baseMenu.js +11 -29
- package/lib/menu/globalSilderBar.js +18 -46
- package/lib/menu/header.js +8 -20
- package/lib/menu/index.js +0 -3
- package/lib/menu/menu.js +9 -32
- package/lib/menu/rc-menu/Divider.d.ts +1 -1
- package/lib/menu/rc-menu/Divider.js +2 -15
- package/lib/menu/rc-menu/Icon.js +2 -11
- package/lib/menu/rc-menu/Menu.js +163 -214
- package/lib/menu/rc-menu/MenuItem.js +51 -103
- package/lib/menu/rc-menu/MenuItemGroup.js +7 -30
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -43
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.js +22 -41
- package/lib/menu/rc-menu/SubMenu/SubMenuList.js +5 -22
- package/lib/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/index.js +83 -135
- package/lib/menu/rc-menu/context/IdContext.js +0 -9
- package/lib/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/lib/menu/rc-menu/context/MenuContext.js +3 -21
- package/lib/menu/rc-menu/context/PathContext.js +2 -13
- package/lib/menu/rc-menu/hooks/useAccessibility.js +41 -91
- package/lib/menu/rc-menu/hooks/useActive.js +5 -14
- package/lib/menu/rc-menu/hooks/useDirectionStyle.js +3 -11
- package/lib/menu/rc-menu/hooks/useKeyRecords.js +7 -34
- package/lib/menu/rc-menu/hooks/useMemoCallback.js +0 -8
- package/lib/menu/rc-menu/hooks/useUUID.js +5 -15
- package/lib/menu/rc-menu/index.d.ts +1 -1
- package/lib/menu/rc-menu/index.js +0 -8
- package/lib/menu/rc-menu/interface.d.ts +7 -7
- package/lib/menu/rc-menu/utils/motionUtil.js +0 -3
- package/lib/menu/rc-menu/utils/nodeUtil.js +0 -14
- package/lib/menu/rc-menu/utils/timeUtil.js +0 -1
- package/lib/menu/rc-menu/utils/warnUtil.js +2 -11
- package/lib/menu/style/css.js +0 -2
- package/lib/menu/style/index.js +0 -2
- package/lib/modal/DialogBox.js +19 -57
- package/lib/modal/Modal.js +17 -44
- package/lib/modal/dialog.js +0 -26
- package/lib/modal/index.js +0 -6
- package/lib/modal/locale.js +0 -8
- package/lib/modal/style/css.js +0 -2
- package/lib/modal/style/index.css +1 -2
- package/lib/modal/style/index.js +0 -2
- package/lib/pagination/index.js +0 -3
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.js +11 -41
- package/lib/pagination/rc-pagination/Goto.js +8 -31
- package/lib/pagination/rc-pagination/KeyCode.js +0 -1
- package/lib/pagination/rc-pagination/Options.js +13 -26
- package/lib/pagination/rc-pagination/Pager.js +9 -19
- package/lib/pagination/rc-pagination/Pagination.js +64 -138
- package/lib/pagination/rc-pagination/index.js +0 -3
- package/lib/pagination/style/css.js +0 -2
- package/lib/pagination/style/index.css +6 -0
- package/lib/pagination/style/index.js +0 -2
- package/lib/pagination/style/index.less +10 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.js +18 -56
- package/lib/popconfirm/style/css.js +0 -2
- package/lib/popconfirm/style/index.js +0 -2
- package/lib/popover/index.js +5 -24
- package/lib/popover/style/css.js +0 -1
- package/lib/popover/style/index.js +0 -1
- package/lib/progress/CircleProgress.js +49 -61
- package/lib/progress/LineProgress.js +40 -52
- package/lib/progress/common/index.js +2 -7
- package/lib/progress/index.js +33 -54
- package/lib/progress/interface.d.ts +6 -6
- package/lib/progress/interface.js +0 -1
- package/lib/progress/style/css.js +0 -1
- package/lib/progress/style/index.js +0 -1
- package/lib/radio/Radio.js +12 -44
- package/lib/radio/RadioButton.d.ts +2 -1
- package/lib/radio/RadioButton.js +14 -41
- package/lib/radio/RadioGroup.d.ts +1 -1
- package/lib/radio/RadioGroup.js +16 -36
- package/lib/radio/context.js +0 -2
- package/lib/radio/index.js +0 -3
- package/lib/radio/style/css.js +0 -1
- package/lib/radio/style/index.js +0 -1
- package/lib/rate/index.js +0 -3
- package/lib/rate/rate.js +73 -120
- package/lib/rate/style/css.js +0 -1
- package/lib/rate/style/index.js +0 -1
- package/lib/row/index.js +0 -2
- package/lib/row/style/css.js +0 -1
- package/lib/row/style/index.js +0 -1
- package/lib/search/Search.js +40 -82
- package/lib/search/index.js +0 -3
- package/lib/search/style/css.js +0 -4
- package/lib/search/style/index.js +0 -4
- package/lib/select/index.d.ts +4 -4
- package/lib/select/index.js +29 -57
- package/lib/select/src/OptGroup.js +0 -2
- package/lib/select/src/Option.js +0 -2
- package/lib/select/src/OptionList.js +104 -188
- package/lib/select/src/Select.d.ts +2 -2
- package/lib/select/src/Select.js +1 -27
- package/lib/select/src/SelectTrigger.js +28 -48
- package/lib/select/src/Selector/Input.d.ts +1 -1
- package/lib/select/src/Selector/Input.js +26 -40
- package/lib/select/src/Selector/MultipleSelector.js +50 -83
- package/lib/select/src/Selector/SingleSelector.js +29 -46
- package/lib/select/src/Selector/index.js +23 -57
- package/lib/select/src/TransBtn.js +6 -17
- package/lib/select/src/generate.js +231 -371
- package/lib/select/src/hooks/useCacheDisplayValue.js +1 -11
- package/lib/select/src/hooks/useCacheOptions.js +0 -7
- package/lib/select/src/hooks/useDelayReset.js +3 -17
- package/lib/select/src/hooks/useLayoutEffect.js +0 -6
- package/lib/select/src/hooks/useLock.js +2 -10
- package/lib/select/src/hooks/useSelectTriggerControl.js +0 -8
- package/lib/select/src/index.js +0 -5
- package/lib/select/src/interface/generator.d.ts +12 -12
- package/lib/select/src/interface/index.d.ts +5 -5
- package/lib/select/src/utils/commonUtil.js +8 -32
- package/lib/select/src/utils/legacyUtil.js +11 -29
- package/lib/select/src/utils/valueUtil.js +23 -76
- package/lib/select/src/utils/warningPropsUtil.js +30 -56
- package/lib/select/style/css.js +0 -3
- package/lib/select/style/index.css +4 -8
- package/lib/select/style/index.js +0 -3
- package/lib/select/utils/iconUtil.js +16 -37
- package/lib/skeleton/Avatar.d.ts +2 -1
- package/lib/skeleton/Avatar.js +3 -15
- package/lib/skeleton/Button.d.ts +2 -1
- package/lib/skeleton/Button.js +5 -21
- package/lib/skeleton/Element.d.ts +1 -1
- package/lib/skeleton/Element.js +4 -15
- package/lib/skeleton/Image.d.ts +2 -1
- package/lib/skeleton/Image.js +6 -18
- package/lib/skeleton/Input.d.ts +2 -1
- package/lib/skeleton/Input.js +4 -20
- package/lib/skeleton/Node.js +4 -18
- package/lib/skeleton/Paragraph.d.ts +2 -2
- package/lib/skeleton/Paragraph.js +7 -20
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +21 -64
- package/lib/skeleton/Title.d.ts +1 -1
- package/lib/skeleton/Title.js +3 -12
- package/lib/skeleton/index.js +0 -3
- package/lib/skeleton/style/css.js +0 -1
- package/lib/skeleton/style/index.css +1 -10
- package/lib/skeleton/style/index.js +0 -1
- package/lib/slider/SliderTooltip.js +0 -16
- package/lib/slider/index.js +21 -55
- package/lib/slider/interface.d.ts +1 -1
- package/lib/slider/style/css.js +0 -1
- package/lib/slider/style/index.js +0 -1
- package/lib/space/Item.d.ts +1 -1
- package/lib/space/Item.js +10 -24
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +29 -61
- package/lib/space/style/css.js +0 -1
- package/lib/space/style/index.js +0 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +7 -28
- package/lib/steps/interface.d.ts +1 -1
- package/lib/steps/src/step.d.ts +1 -1
- package/lib/steps/src/step.js +39 -72
- package/lib/steps/src/steps.d.ts +3 -3
- package/lib/steps/src/steps.js +24 -56
- package/lib/steps/style/css.js +0 -1
- package/lib/steps/style/index.js +0 -1
- package/lib/style/index.css +144 -526
- package/lib/switch/index.js +19 -45
- package/lib/switch/interface.d.ts +2 -2
- package/lib/switch/style/css.js +0 -1
- package/lib/switch/style/index.css +8 -32
- package/lib/switch/style/index.js +0 -1
- package/lib/table/Column.js +0 -3
- package/lib/table/ColumnGroup.js +0 -3
- package/lib/table/ExpandIcon.d.ts +1 -1
- package/lib/table/ExpandIcon.js +4 -16
- package/lib/table/Space.js +4 -18
- package/lib/table/Table.d.ts +1 -1
- package/lib/table/Table.js +115 -193
- package/lib/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/lib/table/baseTable/Body/BodyRow.js +42 -78
- package/lib/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/lib/table/baseTable/Body/ExpandedRow.js +13 -28
- package/lib/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureCell.js +1 -8
- package/lib/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureRow.js +3 -14
- package/lib/table/baseTable/Body/index.d.ts +1 -1
- package/lib/table/baseTable/Body/index.js +23 -48
- package/lib/table/baseTable/Cell/index.d.ts +1 -1
- package/lib/table/baseTable/Cell/index.js +58 -111
- package/lib/table/baseTable/ColGroup.d.ts +2 -2
- package/lib/table/baseTable/ColGroup.js +7 -25
- package/lib/table/baseTable/FixedHolder/index.js +29 -57
- package/lib/table/baseTable/Footer/Cell.d.ts +1 -1
- package/lib/table/baseTable/Footer/Cell.js +11 -25
- package/lib/table/baseTable/Footer/Row.d.ts +1 -1
- package/lib/table/baseTable/Footer/Row.js +2 -13
- package/lib/table/baseTable/Footer/Summary.js +0 -5
- package/lib/table/baseTable/Footer/index.d.ts +2 -2
- package/lib/table/baseTable/Footer/index.js +2 -12
- package/lib/table/baseTable/Header/Header.js +9 -30
- package/lib/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/lib/table/baseTable/Header/HeaderRow.js +8 -26
- package/lib/table/baseTable/Panel/index.d.ts +1 -1
- package/lib/table/baseTable/Panel/index.js +1 -7
- package/lib/table/baseTable/Table.d.ts +1 -1
- package/lib/table/baseTable/Table.js +126 -234
- package/lib/table/baseTable/context/BodyContext.js +0 -5
- package/lib/table/baseTable/context/ExpandedRowContext.js +0 -5
- package/lib/table/baseTable/context/HoverContext.js +0 -5
- package/lib/table/baseTable/context/ResizeContext.js +0 -5
- package/lib/table/baseTable/context/StickyContext.js +0 -5
- package/lib/table/baseTable/context/TableContext.js +0 -5
- package/lib/table/baseTable/hooks/useColumns.js +40 -94
- package/lib/table/baseTable/hooks/useFlattenRecords.js +2 -15
- package/lib/table/baseTable/hooks/useFrame.d.ts +1 -1
- package/lib/table/baseTable/hooks/useFrame.js +2 -17
- package/lib/table/baseTable/hooks/useSticky.js +10 -20
- package/lib/table/baseTable/hooks/useStickyOffsets.js +4 -10
- package/lib/table/baseTable/index.js +0 -7
- package/lib/table/baseTable/interface.d.ts +20 -20
- package/lib/table/baseTable/stickyScrollBar.js +14 -55
- package/lib/table/baseTable/sugar/Column.js +0 -3
- package/lib/table/baseTable/sugar/ColumnGroup.js +0 -3
- package/lib/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/lib/table/baseTable/utils/expandUtil.js +4 -19
- package/lib/table/baseTable/utils/fixUtil.js +0 -5
- package/lib/table/baseTable/utils/legacyUtil.js +2 -17
- package/lib/table/baseTable/utils/valueUtil.js +2 -23
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterDropdown.js +50 -124
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterSearch.js +6 -15
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterWrapper.js +0 -6
- package/lib/table/hooks/useFilter/index.js +20 -56
- package/lib/table/hooks/useLazyKVMap.js +0 -13
- package/lib/table/hooks/usePagination.js +15 -42
- package/lib/table/hooks/useSelection.d.ts +1 -1
- package/lib/table/hooks/useSelection.js +103 -186
- package/lib/table/hooks/useSorter.js +21 -83
- package/lib/table/hooks/useTitleColumns.js +0 -11
- package/lib/table/index.js +0 -3
- package/lib/table/interface.d.ts +15 -15
- package/lib/table/interface.js +0 -1
- package/lib/table/style/css.js +0 -11
- package/lib/table/style/index.css +0 -3
- package/lib/table/style/index.js +0 -11
- package/lib/table/util.js +0 -6
- package/lib/tabs/index.js +0 -3
- package/lib/tabs/src/TabContext.js +0 -3
- package/lib/tabs/src/TabNavList/AddButton.js +4 -13
- package/lib/tabs/src/TabNavList/OperationNode.js +32 -67
- package/lib/tabs/src/TabNavList/TabNode.js +25 -60
- package/lib/tabs/src/TabNavList/index.js +129 -217
- package/lib/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/TabPane.js +12 -25
- package/lib/tabs/src/TabPanelList/index.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/index.js +7 -18
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/Tabs.js +68 -112
- package/lib/tabs/src/hooks/useOffsets.js +6 -15
- package/lib/tabs/src/hooks/useRaf.d.ts +1 -1
- package/lib/tabs/src/hooks/useRaf.js +2 -17
- package/lib/tabs/src/hooks/useRefs.js +0 -9
- package/lib/tabs/src/hooks/useSyncState.d.ts +1 -1
- package/lib/tabs/src/hooks/useSyncState.js +2 -14
- package/lib/tabs/src/hooks/useTouchMove.js +32 -55
- package/lib/tabs/src/hooks/useVisibleRange.js +2 -16
- package/lib/tabs/src/index.js +0 -4
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/style/css.js +0 -1
- package/lib/tabs/style/index.js +0 -1
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/tabs/tabs.js +10 -37
- package/lib/tag/CheckableTag.js +7 -27
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +19 -55
- package/lib/tag/style/css.js +0 -1
- package/lib/tag/style/index.css +1 -12
- package/lib/tag/style/index.js +0 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +9 -32
- package/lib/time-picker/style/css.js +0 -2
- package/lib/time-picker/style/index.css +0 -1
- package/lib/time-picker/style/index.js +0 -2
- package/lib/timeline/index.js +0 -3
- package/lib/timeline/interface.d.ts +1 -1
- package/lib/timeline/style/css.js +0 -1
- package/lib/timeline/style/index.css +4 -27
- package/lib/timeline/style/index.js +0 -1
- package/lib/timeline/timeline.js +17 -33
- package/lib/timeline/timelineItem.js +24 -60
- package/lib/toast/PurePanel.d.ts +2 -2
- package/lib/toast/PurePanel.js +25 -47
- package/lib/toast/base.d.ts +1 -1
- package/lib/toast/base.js +63 -105
- package/lib/toast/index.js +39 -72
- package/lib/toast/interface.d.ts +3 -3
- package/lib/toast/style/css.js +0 -1
- package/lib/toast/style/index.css +17 -64
- package/lib/toast/style/index.js +0 -1
- package/lib/toast/useNotification.d.ts +1 -1
- package/lib/toast/useNotification.js +52 -82
- package/lib/toast/util.js +0 -9
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +32 -72
- package/lib/tooltip/placements.js +7 -13
- package/lib/tooltip/style/css.js +0 -1
- package/lib/tooltip/style/index.css +0 -1
- package/lib/tooltip/style/index.js +0 -1
- package/lib/transfer/DataSource.d.ts +2 -1
- package/lib/transfer/DataSource.js +40 -66
- package/lib/transfer/SourceList.d.ts +2 -1
- package/lib/transfer/SourceList.js +16 -44
- package/lib/transfer/Target.d.ts +2 -1
- package/lib/transfer/Target.js +46 -78
- package/lib/transfer/TargetList.d.ts +2 -1
- package/lib/transfer/TargetList.js +15 -38
- package/lib/transfer/index.d.ts +5 -5
- package/lib/transfer/index.js +19 -43
- package/lib/transfer/style/css.js +0 -2
- package/lib/transfer/style/index.js +0 -2
- package/lib/transfer/util.js +0 -6
- package/lib/tree/index.js +0 -3
- package/lib/tree/style/css.js +0 -3
- package/lib/tree/style/index.css +1 -12
- package/lib/tree/style/index.js +0 -3
- package/lib/tree/tree.d.ts +3 -3
- package/lib/tree/tree.js +34 -118
- package/lib/tree/utils/dragHelper.d.ts +2 -2
- package/lib/tree/utils/dragHelper.js +5 -15
- package/lib/tree/utils/iconHelper.js +0 -13
- package/lib/tree/utils/nodeHelper.js +0 -32
- package/lib/tree-select/index.d.ts +4 -4
- package/lib/tree-select/index.js +59 -95
- package/lib/tree-select/src/LegacyContext.js +0 -5
- package/lib/tree-select/src/OptionList.d.ts +1 -1
- package/lib/tree-select/src/OptionList.js +63 -124
- package/lib/tree-select/src/TreeNode.js +0 -2
- package/lib/tree-select/src/TreeSelect.d.ts +4 -4
- package/lib/tree-select/src/TreeSelect.js +166 -242
- package/lib/tree-select/src/TreeSelectContext.js +0 -5
- package/lib/tree-select/src/hooks/useCache.js +2 -11
- package/lib/tree-select/src/hooks/useCheckedKeys.js +4 -14
- package/lib/tree-select/src/hooks/useDataEntities.js +2 -14
- package/lib/tree-select/src/hooks/useFilterTreeData.js +2 -19
- package/lib/tree-select/src/hooks/useRefFunc.js +0 -5
- package/lib/tree-select/src/hooks/useTreeData.js +10 -22
- package/lib/tree-select/src/index.js +0 -5
- package/lib/tree-select/src/interface.d.ts +4 -4
- package/lib/tree-select/src/utils/legacyUtil.js +10 -43
- package/lib/tree-select/src/utils/strategyUtil.d.ts +1 -1
- package/lib/tree-select/src/utils/strategyUtil.js +0 -10
- package/lib/tree-select/src/utils/valueUtil.js +3 -14
- package/lib/tree-select/src/utils/warningPropsUtil.js +5 -14
- package/lib/tree-select/style/css.js +0 -3
- package/lib/tree-select/style/index.css +1 -12
- package/lib/tree-select/style/index.js +0 -3
- package/lib/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/lib/upload/BaseUpload/AjaxUploader.js +114 -202
- package/lib/upload/BaseUpload/Upload.d.ts +2 -2
- package/lib/upload/BaseUpload/Upload.js +1 -21
- package/lib/upload/BaseUpload/attr-accept.js +10 -22
- package/lib/upload/BaseUpload/index.js +0 -3
- package/lib/upload/BaseUpload/interface.d.ts +4 -4
- package/lib/upload/BaseUpload/request.js +10 -27
- package/lib/upload/BaseUpload/traverseFileTree.js +4 -13
- package/lib/upload/BaseUpload/uid.js +0 -2
- package/lib/upload/Dragger.d.ts +1 -1
- package/lib/upload/Dragger.js +3 -18
- package/lib/upload/Upload.js +117 -206
- package/lib/upload/UploadList/ListItem.js +41 -71
- package/lib/upload/UploadList/index.js +46 -102
- package/lib/upload/index.js +1 -4
- package/lib/upload/interface.d.ts +8 -8
- package/lib/upload/style/css.js +0 -4
- package/lib/upload/style/index.css +4 -26
- package/lib/upload/style/index.js +0 -4
- package/lib/upload/utils.js +3 -34
- package/lib/virtual-list/Filler.js +4 -17
- package/lib/virtual-list/Item.js +1 -6
- package/lib/virtual-list/List.d.ts +5 -5
- package/lib/virtual-list/List.js +122 -189
- package/lib/virtual-list/ScrollBar.d.ts +1 -1
- package/lib/virtual-list/ScrollBar.js +23 -84
- package/lib/virtual-list/hooks/useChildren.d.ts +2 -2
- package/lib/virtual-list/hooks/useChildren.js +2 -7
- package/lib/virtual-list/hooks/useDiffItem.js +6 -18
- package/lib/virtual-list/hooks/useFrameWheel.js +10 -22
- package/lib/virtual-list/hooks/useHeights.js +7 -23
- package/lib/virtual-list/hooks/useMobileTouchMove.js +4 -20
- package/lib/virtual-list/hooks/useOriginScroll.js +6 -11
- package/lib/virtual-list/hooks/useScrollTo.js +13 -35
- package/lib/virtual-list/index.js +0 -3
- package/lib/virtual-list/interface.d.ts +2 -2
- package/lib/virtual-list/mock.js +2 -9
- package/lib/virtual-list/utils/CacheMap.js +0 -6
- package/lib/virtual-list/utils/algorithmUtil.js +6 -22
- package/lib/virtual-list/utils/isFirefox.js +0 -3
- package/package.json +1 -1
- package/dist/acud.css +0 -28511
- package/dist/acud.css.map +0 -1
- package/dist/acud.min.css +0 -2
- package/dist/acud.min.css.map +0 -1
- package/dist/acud.min.js +0 -56
- package/dist/acud.min.js.map +0 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
|
|
3
2
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
4
|
-
|
|
5
3
|
/**
|
|
6
4
|
* @file timelineItem
|
|
7
5
|
* @description 时间线
|
|
@@ -12,84 +10,63 @@ import OutlinedDown from "acud-icon/es/icons/OutlinedDown";
|
|
|
12
10
|
import OutlinedUp from "acud-icon/es/icons/OutlinedUp";
|
|
13
11
|
import cls from 'classnames';
|
|
14
12
|
import { ConfigContext } from '../config-provider';
|
|
15
|
-
|
|
16
13
|
var TimelineItem = function TimelineItem(_ref) {
|
|
17
14
|
var customizePrefixCls = _ref.prefixCls,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
color = _ref.color,
|
|
16
|
+
label = _ref.label,
|
|
17
|
+
dot = _ref.dot,
|
|
18
|
+
content = _ref.content,
|
|
19
|
+
_ref$status = _ref.status,
|
|
20
|
+
status = _ref$status === void 0 ? 'default' : _ref$status,
|
|
21
|
+
onClick = _ref.onClick,
|
|
22
|
+
render = _ref.render,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
children = _ref.children,
|
|
25
|
+
lineColor = _ref.lineColor;
|
|
30
26
|
var _React$useContext = React.useContext(ConfigContext),
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
33
28
|
var prefixCls = getPrefixCls('timeline-item', customizePrefixCls);
|
|
34
29
|
var PRE_HEAD_FIX = "".concat(prefixCls, "-head"); // 头部圆点
|
|
35
|
-
|
|
36
30
|
var PRE_HEAD_LINE = "".concat(prefixCls, "-line"); // 线条
|
|
37
|
-
|
|
38
31
|
var PRE_CONTENT_FIX = "".concat(prefixCls, "-content"); // 内容
|
|
39
|
-
|
|
40
32
|
var PRE_CONTENT_LABEL_FIX = "".concat(PRE_CONTENT_FIX, "-label"); // 内容标签
|
|
41
|
-
|
|
42
33
|
var PRE_CONTENT_TITLE_FIX = "".concat(PRE_CONTENT_FIX, "-title"); // 内容标题
|
|
43
|
-
|
|
44
34
|
var PRE_CONTENT_LINK_FIX = "".concat(PRE_CONTENT_FIX, "-link"); // 展开按钮
|
|
45
|
-
|
|
46
35
|
var PRE_CONTENT_LINK_LABEL_FIX = "".concat(PRE_CONTENT_LINK_FIX, "-label"); // 展开按钮文案
|
|
47
|
-
|
|
48
36
|
var PRE_CONTENT_INNER_FIX = "".concat(prefixCls, "-content-inner"); // 内容
|
|
49
|
-
|
|
50
37
|
var PRE_CONTENT_APPEND_FIX = "".concat(prefixCls, "-content-append"); // 可展开的内容
|
|
51
|
-
|
|
52
38
|
var PRE_RENDER_FIX = "".concat(prefixCls, "-render"); // 客制化渲染border
|
|
53
|
-
|
|
54
39
|
var PRE_RENDER_DTLBTN_FIX = "".concat(PRE_RENDER_FIX, "-dtlbtn"); // 查看详情按钮
|
|
55
|
-
|
|
56
40
|
var _useState = useState(false),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
41
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
42
|
+
isAppend = _useState2[0],
|
|
43
|
+
updateIsAppend = _useState2[1]; // 展开/收起
|
|
62
44
|
var renderHead = useCallback(function () {
|
|
63
45
|
var statusClass = '';
|
|
64
|
-
|
|
65
46
|
if (dot) {
|
|
66
47
|
statusClass = "dot-".concat(status);
|
|
67
48
|
return /*#__PURE__*/React.createElement("div", {
|
|
68
49
|
className: "".concat(PRE_HEAD_FIX, " ").concat(statusClass, " is-dot")
|
|
69
50
|
}, dot);
|
|
70
51
|
}
|
|
71
|
-
|
|
72
52
|
statusClass = "is-".concat(status);
|
|
73
53
|
var statusStyle = {};
|
|
74
|
-
|
|
75
54
|
if (color) {
|
|
76
55
|
statusStyle = {
|
|
77
56
|
backgroundColor: color
|
|
78
57
|
};
|
|
79
58
|
}
|
|
80
|
-
|
|
81
59
|
var props = {
|
|
82
60
|
className: cls(PRE_HEAD_FIX, statusClass),
|
|
83
61
|
style: statusStyle
|
|
84
62
|
};
|
|
85
63
|
return /*#__PURE__*/React.createElement("div", props);
|
|
86
|
-
}, [status, dot, color]);
|
|
87
|
-
|
|
64
|
+
}, [status, dot, color]);
|
|
65
|
+
// 展示更多-按钮
|
|
88
66
|
var renderAppend = useCallback(function () {
|
|
89
67
|
if (!content) {
|
|
90
68
|
return;
|
|
91
69
|
}
|
|
92
|
-
|
|
93
70
|
return /*#__PURE__*/React.createElement("a", {
|
|
94
71
|
className: PRE_CONTENT_LINK_FIX,
|
|
95
72
|
onClick: function onClick() {
|
|
@@ -98,23 +75,21 @@ var TimelineItem = function TimelineItem(_ref) {
|
|
|
98
75
|
}, /*#__PURE__*/React.createElement("span", {
|
|
99
76
|
className: PRE_CONTENT_LINK_LABEL_FIX
|
|
100
77
|
}, isAppend ? '收起' : '展开'), isAppend ? /*#__PURE__*/React.createElement(OutlinedUp, null) : /*#__PURE__*/React.createElement(OutlinedDown, null));
|
|
101
|
-
}, [isAppend]);
|
|
102
|
-
|
|
78
|
+
}, [isAppend]);
|
|
79
|
+
// 可展开内容
|
|
103
80
|
var renderAppendContent = function renderAppendContent() {
|
|
104
81
|
var innerClass = "".concat(PRE_CONTENT_APPEND_FIX, " ").concat(PRE_CONTENT_INNER_FIX).concat(isAppend ? ' is-shadow' : ' is-hidden');
|
|
105
82
|
return /*#__PURE__*/React.createElement("div", {
|
|
106
83
|
className: innerClass
|
|
107
84
|
}, content);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
|
|
85
|
+
};
|
|
86
|
+
// 默认内容
|
|
111
87
|
var renderContent = function renderContent() {
|
|
112
88
|
return /*#__PURE__*/React.createElement("div", {
|
|
113
89
|
className: PRE_CONTENT_INNER_FIX
|
|
114
90
|
}, content);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
|
|
91
|
+
};
|
|
92
|
+
// 渲染函数
|
|
118
93
|
var renderItem = function renderItem() {
|
|
119
94
|
if (render) {
|
|
120
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -124,14 +99,12 @@ var TimelineItem = function TimelineItem(_ref) {
|
|
|
124
99
|
onClick: onClick
|
|
125
100
|
}, "\u67E5\u770B\u8BE6\u60C5"));
|
|
126
101
|
}
|
|
127
|
-
|
|
128
102
|
return /*#__PURE__*/React.createElement(Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
129
103
|
className: PRE_CONTENT_LABEL_FIX
|
|
130
104
|
}, label), /*#__PURE__*/React.createElement("div", {
|
|
131
105
|
className: PRE_CONTENT_TITLE_FIX
|
|
132
106
|
}, children), renderAppend(), content && renderAppendContent(), !content && renderContent());
|
|
133
107
|
};
|
|
134
|
-
|
|
135
108
|
var withDotClass = dot ? 'with-dot' : '';
|
|
136
109
|
var classes = cls(prefixCls, dot ? 'is-dot' : '', className);
|
|
137
110
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -145,5 +118,4 @@ var TimelineItem = function TimelineItem(_ref) {
|
|
|
145
118
|
className: cls(PRE_CONTENT_FIX, withDotClass)
|
|
146
119
|
}, renderItem()));
|
|
147
120
|
};
|
|
148
|
-
|
|
149
121
|
export default TimelineItem;
|
package/es/toast/PurePanel.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface PureContentProps {
|
|
|
10
10
|
btn?: React.ReactNode;
|
|
11
11
|
type?: IconType;
|
|
12
12
|
}
|
|
13
|
-
export declare function PureContent({ prefixCls, icon, type, message, description, btn, }: PureContentProps): JSX.Element;
|
|
13
|
+
export declare function PureContent({ prefixCls, icon, type, message, description, btn, }: PureContentProps): React.JSX.Element;
|
|
14
14
|
export interface PurePanelProps extends Omit<NoticeProps, 'prefixCls' | 'eventKey'>, Omit<PureContentProps, 'prefixCls' | 'children'> {
|
|
15
15
|
prefixCls?: string;
|
|
16
16
|
}
|
|
17
17
|
/** @private Internal Component. Do not use in your production. */
|
|
18
|
-
export default function PurePanel(props: PurePanelProps): JSX.Element;
|
|
18
|
+
export default function PurePanel(props: PurePanelProps): React.JSX.Element;
|
package/es/toast/PurePanel.js
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
5
4
|
var t = {};
|
|
6
|
-
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
8
|
}
|
|
14
9
|
return t;
|
|
15
10
|
};
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
// import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
|
|
18
13
|
// import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
19
14
|
// import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
|
|
20
15
|
// import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
|
|
21
16
|
// import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
|
|
22
17
|
// import CloseOutlined from '@ant-design/icons/CloseOutlined';
|
|
23
|
-
|
|
24
18
|
import FilledSuccess from "acud-icon/es/icons/FilledSuccess";
|
|
25
19
|
import FilledWarn from "acud-icon/es/icons/FilledWarn";
|
|
26
20
|
import FilledInfo from "acud-icon/es/icons/FilledInfo";
|
|
@@ -28,14 +22,14 @@ import FilledError from "acud-icon/es/icons/FilledError";
|
|
|
28
22
|
import CloseOutlined from "acud-icon/es/icons/OutlinedClose";
|
|
29
23
|
import { Notice } from 'rc-notification';
|
|
30
24
|
import classNames from 'classnames';
|
|
31
|
-
import { ConfigContext } from '../config-provider';
|
|
25
|
+
import { ConfigContext } from '../config-provider';
|
|
26
|
+
// export const TypeIcon = {
|
|
32
27
|
// info: <InfoCircleFilled />,
|
|
33
28
|
// success: <CheckCircleFilled />,
|
|
34
29
|
// error: <CloseCircleFilled />,
|
|
35
30
|
// warning: <ExclamationCircleFilled />,
|
|
36
31
|
// loading: <LoadingOutlined />,
|
|
37
32
|
// };
|
|
38
|
-
|
|
39
33
|
export function getCloseIcon(prefixCls, closeIcon) {
|
|
40
34
|
return closeIcon || /*#__PURE__*/React.createElement("span", {
|
|
41
35
|
className: "".concat(prefixCls, "-close-x")
|
|
@@ -51,13 +45,12 @@ var typeToIcon = {
|
|
|
51
45
|
};
|
|
52
46
|
export function PureContent(_ref) {
|
|
53
47
|
var prefixCls = _ref.prefixCls,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
icon = _ref.icon,
|
|
49
|
+
type = _ref.type,
|
|
50
|
+
message = _ref.message,
|
|
51
|
+
description = _ref.description,
|
|
52
|
+
btn = _ref.btn;
|
|
59
53
|
var iconNode = null;
|
|
60
|
-
|
|
61
54
|
if (icon) {
|
|
62
55
|
iconNode = /*#__PURE__*/React.createElement("span", {
|
|
63
56
|
className: "".concat(prefixCls, "-icon")
|
|
@@ -67,7 +60,6 @@ export function PureContent(_ref) {
|
|
|
67
60
|
className: classNames("".concat(prefixCls, "-icon"), "".concat(prefixCls, "-icon-").concat(type))
|
|
68
61
|
});
|
|
69
62
|
}
|
|
70
|
-
|
|
71
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
64
|
className: classNames(_defineProperty({}, "".concat(prefixCls, "-with-icon"), iconNode)),
|
|
73
65
|
role: "alert"
|
|
@@ -80,26 +72,23 @@ export function PureContent(_ref) {
|
|
|
80
72
|
}, btn));
|
|
81
73
|
}
|
|
82
74
|
/** @private Internal Component. Do not use in your production. */
|
|
83
|
-
|
|
84
75
|
export default function PurePanel(props) {
|
|
85
76
|
var staticPrefixCls = props.prefixCls,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
className = props.className,
|
|
78
|
+
icon = props.icon,
|
|
79
|
+
type = props.type,
|
|
80
|
+
message = props.message,
|
|
81
|
+
description = props.description,
|
|
82
|
+
btn = props.btn,
|
|
83
|
+
_props$closable = props.closable,
|
|
84
|
+
closable = _props$closable === void 0 ? true : _props$closable,
|
|
85
|
+
closeIcon = props.closeIcon,
|
|
86
|
+
restProps = __rest(props, ["prefixCls", "className", "icon", "type", "message", "description", "btn", "closable", "closeIcon"]);
|
|
97
87
|
var _React$useContext = React.useContext(ConfigContext),
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
100
89
|
var prefixCls = staticPrefixCls || getPrefixCls('notification');
|
|
101
|
-
var noticePrefixCls = "".concat(prefixCls, "-notice");
|
|
102
|
-
|
|
90
|
+
var noticePrefixCls = "".concat(prefixCls, "-notice");
|
|
91
|
+
// const [, hashId] = useStyle(prefixCls);
|
|
103
92
|
return /*#__PURE__*/React.createElement(Notice, _extends({}, restProps, {
|
|
104
93
|
prefixCls: prefixCls,
|
|
105
94
|
className: classNames(className, "".concat(noticePrefixCls, "-pure-panel")),
|
package/es/toast/base.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface BaseMethods {
|
|
|
10
10
|
/** @private Internal Component. Do not use in your production. */
|
|
11
11
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type StaticFn = (config: ArgsProps) => void;
|
|
14
14
|
interface NoticeMethods {
|
|
15
15
|
success: StaticFn;
|
|
16
16
|
info: StaticFn;
|
package/es/toast/base.js
CHANGED
|
@@ -6,22 +6,19 @@ import ConfigProvider, { globalConfig } from '../config-provider';
|
|
|
6
6
|
import PurePanel from './PurePanel';
|
|
7
7
|
import useNotification, { useInternalNotification } from './useNotification';
|
|
8
8
|
var notification = null;
|
|
9
|
-
|
|
10
9
|
var act = function act(callback) {
|
|
11
10
|
return callback();
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
var taskQueue = [];
|
|
15
13
|
var defaultGlobalConfig = {};
|
|
16
|
-
|
|
17
14
|
function getGlobalContext() {
|
|
18
15
|
var _defaultGlobalConfig = defaultGlobalConfig,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
globalPrefixCls = _defaultGlobalConfig.prefixCls,
|
|
17
|
+
globalGetContainer = _defaultGlobalConfig.getContainer,
|
|
18
|
+
rtl = _defaultGlobalConfig.rtl,
|
|
19
|
+
maxCount = _defaultGlobalConfig.maxCount,
|
|
20
|
+
top = _defaultGlobalConfig.top,
|
|
21
|
+
bottom = _defaultGlobalConfig.bottom;
|
|
25
22
|
var mergedPrefixCls = globalPrefixCls ? globalPrefixCls + '-notification' : globalConfig().getPrefixCls('') + '-notification';
|
|
26
23
|
var mergedContainer = (globalGetContainer === null || globalGetContainer === void 0 ? void 0 : globalGetContainer()) || document.body;
|
|
27
24
|
return {
|
|
@@ -33,70 +30,58 @@ function getGlobalContext() {
|
|
|
33
30
|
bottom: bottom
|
|
34
31
|
};
|
|
35
32
|
}
|
|
36
|
-
|
|
37
33
|
var GlobalHolder = /*#__PURE__*/React.forwardRef(function (_, ref) {
|
|
38
34
|
var _React$useState = React.useState(),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
36
|
+
prefixCls = _React$useState2[0],
|
|
37
|
+
setPrefixCls = _React$useState2[1];
|
|
43
38
|
var _React$useState3 = React.useState(),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
40
|
+
container = _React$useState4[0],
|
|
41
|
+
setContainer = _React$useState4[1];
|
|
48
42
|
var _React$useState5 = React.useState(),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
44
|
+
maxCount = _React$useState6[0],
|
|
45
|
+
setMaxCount = _React$useState6[1];
|
|
53
46
|
var _React$useState7 = React.useState(),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
48
|
+
rtl = _React$useState8[0],
|
|
49
|
+
setRTL = _React$useState8[1];
|
|
58
50
|
var _React$useState9 = React.useState(),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
52
|
+
top = _React$useState10[0],
|
|
53
|
+
setTop = _React$useState10[1];
|
|
63
54
|
var _React$useState11 = React.useState(),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
56
|
+
bottom = _React$useState12[0],
|
|
57
|
+
setBottom = _React$useState12[1];
|
|
68
58
|
var _useInternalNotificat = useInternalNotification({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
59
|
+
prefixCls: prefixCls,
|
|
60
|
+
getContainer: function getContainer() {
|
|
61
|
+
return container;
|
|
62
|
+
},
|
|
63
|
+
maxCount: maxCount,
|
|
64
|
+
rtl: rtl,
|
|
65
|
+
top: top,
|
|
66
|
+
bottom: bottom
|
|
67
|
+
}),
|
|
68
|
+
_useInternalNotificat2 = _slicedToArray(_useInternalNotificat, 2),
|
|
69
|
+
api = _useInternalNotificat2[0],
|
|
70
|
+
holder = _useInternalNotificat2[1];
|
|
82
71
|
var global = globalConfig();
|
|
83
|
-
|
|
84
72
|
var _globalConfig = globalConfig(),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
73
|
+
getPrefixCls = _globalConfig.getPrefixCls;
|
|
74
|
+
var rootPrefixCls = getPrefixCls('') + '-notification';
|
|
75
|
+
// const rootPrefixCls = global.getRootPrefixCls();·
|
|
89
76
|
var rootIconPrefixCls = global.getIconPrefixCls();
|
|
90
|
-
|
|
91
77
|
var sync = function sync() {
|
|
92
78
|
var _getGlobalContext = getGlobalContext(),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
79
|
+
nextGlobalPrefixCls = _getGlobalContext.prefixCls,
|
|
80
|
+
nextGlobalContainer = _getGlobalContext.container,
|
|
81
|
+
nextGlobalMaxCount = _getGlobalContext.maxCount,
|
|
82
|
+
nextGlobalRTL = _getGlobalContext.rtl,
|
|
83
|
+
nextTop = _getGlobalContext.top,
|
|
84
|
+
nextBottom = _getGlobalContext.bottom;
|
|
100
85
|
setPrefixCls(nextGlobalPrefixCls);
|
|
101
86
|
setContainer(nextGlobalContainer);
|
|
102
87
|
setMaxCount(nextGlobalMaxCount);
|
|
@@ -104,11 +89,9 @@ var GlobalHolder = /*#__PURE__*/React.forwardRef(function (_, ref) {
|
|
|
104
89
|
setTop(nextTop);
|
|
105
90
|
setBottom(nextBottom);
|
|
106
91
|
};
|
|
107
|
-
|
|
108
92
|
React.useEffect(sync, []);
|
|
109
93
|
React.useImperativeHandle(ref, function () {
|
|
110
94
|
var instance = _extends({}, api);
|
|
111
|
-
|
|
112
95
|
Object.keys(instance).forEach(function (method) {
|
|
113
96
|
instance[method] = function () {
|
|
114
97
|
sync();
|
|
@@ -125,22 +108,20 @@ var GlobalHolder = /*#__PURE__*/React.forwardRef(function (_, ref) {
|
|
|
125
108
|
iconPrefixCls: rootIconPrefixCls
|
|
126
109
|
}, holder);
|
|
127
110
|
});
|
|
128
|
-
|
|
129
111
|
function flushNotice() {
|
|
130
112
|
if (!notification) {
|
|
131
113
|
var holderFragment = document.createDocumentFragment();
|
|
132
114
|
var newNotification = {
|
|
133
115
|
fragment: holderFragment
|
|
134
116
|
};
|
|
135
|
-
notification = newNotification;
|
|
136
|
-
|
|
117
|
+
notification = newNotification;
|
|
118
|
+
// Delay render to avoid sync issue
|
|
137
119
|
act(function () {
|
|
138
120
|
render( /*#__PURE__*/React.createElement(GlobalHolder, {
|
|
139
121
|
ref: function ref(node) {
|
|
140
122
|
var _ref = node || {},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
123
|
+
instance = _ref.instance,
|
|
124
|
+
sync = _ref.sync;
|
|
144
125
|
Promise.resolve().then(function () {
|
|
145
126
|
if (!newNotification.instance && instance) {
|
|
146
127
|
newNotification.instance = instance;
|
|
@@ -152,14 +133,12 @@ function flushNotice() {
|
|
|
152
133
|
}), holderFragment);
|
|
153
134
|
});
|
|
154
135
|
return;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
136
|
+
}
|
|
137
|
+
// Notification not ready
|
|
158
138
|
if (!notification.instance) {
|
|
159
139
|
return;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
140
|
+
}
|
|
141
|
+
// >>> Execute task
|
|
163
142
|
taskQueue.forEach(function (task) {
|
|
164
143
|
// eslint-disable-next-line default-case
|
|
165
144
|
switch (task.type) {
|
|
@@ -170,43 +149,38 @@ function flushNotice() {
|
|
|
170
149
|
});
|
|
171
150
|
break;
|
|
172
151
|
}
|
|
173
|
-
|
|
174
152
|
case 'destroy':
|
|
175
153
|
act(function () {
|
|
176
154
|
notification === null || notification === void 0 ? void 0 : notification.instance.destroy(task.key);
|
|
177
155
|
});
|
|
178
156
|
break;
|
|
179
157
|
}
|
|
180
|
-
});
|
|
181
|
-
|
|
158
|
+
});
|
|
159
|
+
// Clean up
|
|
182
160
|
taskQueue = [];
|
|
183
|
-
}
|
|
161
|
+
}
|
|
162
|
+
// ==============================================================================
|
|
184
163
|
// == Export ==
|
|
185
164
|
// ==============================================================================
|
|
186
|
-
|
|
187
|
-
|
|
188
165
|
function setNotificationGlobalConfig(config) {
|
|
189
|
-
defaultGlobalConfig = _extends(_extends({}, defaultGlobalConfig), config);
|
|
190
|
-
|
|
166
|
+
defaultGlobalConfig = _extends(_extends({}, defaultGlobalConfig), config);
|
|
167
|
+
// Trigger sync for it
|
|
191
168
|
act(function () {
|
|
192
169
|
var _a;
|
|
193
|
-
|
|
194
170
|
(_a = notification === null || notification === void 0 ? void 0 : notification.sync) === null || _a === void 0 ? void 0 : _a.call(notification);
|
|
195
171
|
});
|
|
196
172
|
}
|
|
197
|
-
|
|
198
173
|
function open(config) {
|
|
199
174
|
// Warning if exist theme
|
|
200
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
175
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
176
|
+
// warnContext('notification');
|
|
201
177
|
}
|
|
202
|
-
|
|
203
178
|
taskQueue.push({
|
|
204
179
|
type: 'open',
|
|
205
180
|
config: config
|
|
206
181
|
});
|
|
207
182
|
flushNotice();
|
|
208
183
|
}
|
|
209
|
-
|
|
210
184
|
function destroy(key) {
|
|
211
185
|
taskQueue.push({
|
|
212
186
|
type: 'destroy',
|
|
@@ -214,7 +188,6 @@ function destroy(key) {
|
|
|
214
188
|
});
|
|
215
189
|
flushNotice();
|
|
216
190
|
}
|
|
217
|
-
|
|
218
191
|
var methods = ['success', 'info', 'warning', 'error'];
|
|
219
192
|
var baseStaticMethods = {
|
|
220
193
|
open: open,
|
|
@@ -230,21 +203,17 @@ methods.forEach(function (type) {
|
|
|
230
203
|
type: type
|
|
231
204
|
}));
|
|
232
205
|
};
|
|
233
|
-
});
|
|
206
|
+
});
|
|
207
|
+
// ==============================================================================
|
|
234
208
|
// == Test ==
|
|
235
209
|
// ==============================================================================
|
|
236
|
-
|
|
237
210
|
var noop = function noop() {};
|
|
238
211
|
/** @private Only Work in test env */
|
|
239
212
|
// eslint-disable-next-line import/no-mutable-exports
|
|
240
|
-
|
|
241
|
-
|
|
242
213
|
export var actWrapper = noop;
|
|
243
|
-
|
|
244
214
|
if (process.env.NODE_ENV === 'test') {
|
|
245
215
|
actWrapper = function actWrapper(wrapper) {
|
|
246
216
|
act = wrapper;
|
|
247
217
|
};
|
|
248
218
|
}
|
|
249
|
-
|
|
250
219
|
export default staticMethods;
|