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
package/es/skeleton/Skeleton.js
CHANGED
|
@@ -12,15 +12,12 @@ import SkeletonImage from './Image';
|
|
|
12
12
|
import SkeletonInput from './Input';
|
|
13
13
|
import Paragraph from './Paragraph';
|
|
14
14
|
import Title from './Title';
|
|
15
|
-
|
|
16
15
|
function getComponentProps(prop) {
|
|
17
16
|
if (prop && _typeof(prop) === 'object') {
|
|
18
17
|
return prop;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
return {};
|
|
22
20
|
}
|
|
23
|
-
|
|
24
21
|
function getAvatarBasicProps(hasTitle, hasParagraph) {
|
|
25
22
|
if (hasTitle && !hasParagraph) {
|
|
26
23
|
// Square avatar
|
|
@@ -29,124 +26,99 @@ function getAvatarBasicProps(hasTitle, hasParagraph) {
|
|
|
29
26
|
shape: 'square'
|
|
30
27
|
};
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
return {
|
|
34
30
|
size: 'large',
|
|
35
31
|
shape: 'circle'
|
|
36
32
|
};
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
function getTitleBasicProps(hasAvatar, hasParagraph) {
|
|
40
35
|
if (!hasAvatar && hasParagraph) {
|
|
41
36
|
return {
|
|
42
37
|
width: '38%'
|
|
43
38
|
};
|
|
44
39
|
}
|
|
45
|
-
|
|
46
40
|
if (hasAvatar && hasParagraph) {
|
|
47
41
|
return {
|
|
48
42
|
width: '50%'
|
|
49
43
|
};
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
return {};
|
|
53
46
|
}
|
|
54
|
-
|
|
55
47
|
function getParagraphBasicProps(hasAvatar, hasTitle) {
|
|
56
|
-
var basicProps = {};
|
|
57
|
-
|
|
48
|
+
var basicProps = {};
|
|
49
|
+
// Width
|
|
58
50
|
if (!hasAvatar || !hasTitle) {
|
|
59
51
|
basicProps.width = '61%';
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
}
|
|
53
|
+
// Rows
|
|
63
54
|
if (!hasAvatar && hasTitle) {
|
|
64
55
|
basicProps.rows = 3;
|
|
65
56
|
} else {
|
|
66
57
|
basicProps.rows = 2;
|
|
67
58
|
}
|
|
68
|
-
|
|
69
59
|
return basicProps;
|
|
70
60
|
}
|
|
71
|
-
|
|
72
61
|
var Skeleton = function Skeleton(props) {
|
|
73
62
|
var customizePrefixCls = props.prefixCls,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
63
|
+
loading = props.loading,
|
|
64
|
+
className = props.className,
|
|
65
|
+
style = props.style,
|
|
66
|
+
children = props.children,
|
|
67
|
+
avatar = props.avatar,
|
|
68
|
+
title = props.title,
|
|
69
|
+
paragraph = props.paragraph,
|
|
70
|
+
active = props.active,
|
|
71
|
+
round = props.round;
|
|
84
72
|
var _React$useContext = React.useContext(ConfigContext),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
73
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
74
|
+
direction = _React$useContext.direction;
|
|
88
75
|
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
|
89
|
-
|
|
90
76
|
if (loading || !('loading' in props)) {
|
|
91
77
|
var _classNames;
|
|
92
|
-
|
|
93
78
|
var hasAvatar = !!avatar;
|
|
94
79
|
var hasTitle = !!title;
|
|
95
|
-
var hasParagraph = !!paragraph;
|
|
96
|
-
|
|
80
|
+
var hasParagraph = !!paragraph;
|
|
81
|
+
// Avatar
|
|
97
82
|
var avatarNode;
|
|
98
|
-
|
|
99
83
|
if (hasAvatar) {
|
|
100
84
|
var avatarProps = _extends(_extends({
|
|
101
85
|
prefixCls: "".concat(prefixCls, "-avatar")
|
|
102
|
-
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
|
|
103
|
-
|
|
104
|
-
|
|
86
|
+
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
|
|
87
|
+
// We direct use SkeletonElement as avatar in skeleton internal.
|
|
105
88
|
avatarNode = /*#__PURE__*/React.createElement("div", {
|
|
106
89
|
className: "".concat(prefixCls, "-header")
|
|
107
90
|
}, /*#__PURE__*/React.createElement(Element, avatarProps));
|
|
108
91
|
}
|
|
109
|
-
|
|
110
92
|
var contentNode;
|
|
111
|
-
|
|
112
93
|
if (hasTitle || hasParagraph) {
|
|
113
94
|
// Title
|
|
114
95
|
var $title;
|
|
115
|
-
|
|
116
96
|
if (hasTitle) {
|
|
117
97
|
var titleProps = _extends(_extends({
|
|
118
98
|
prefixCls: "".concat(prefixCls, "-title")
|
|
119
99
|
}, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
|
|
120
|
-
|
|
121
100
|
$title = /*#__PURE__*/React.createElement(Title, titleProps);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
101
|
+
}
|
|
102
|
+
// Paragraph
|
|
125
103
|
var paragraphNode;
|
|
126
|
-
|
|
127
104
|
if (hasParagraph) {
|
|
128
105
|
var paragraphProps = _extends(_extends({
|
|
129
106
|
prefixCls: "".concat(prefixCls, "-paragraph")
|
|
130
107
|
}, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
|
|
131
|
-
|
|
132
108
|
paragraphNode = /*#__PURE__*/React.createElement(Paragraph, paragraphProps);
|
|
133
109
|
}
|
|
134
|
-
|
|
135
110
|
contentNode = /*#__PURE__*/React.createElement("div", {
|
|
136
111
|
className: "".concat(prefixCls, "-content")
|
|
137
112
|
}, $title, paragraphNode);
|
|
138
113
|
}
|
|
139
|
-
|
|
140
114
|
var cls = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), _defineProperty(_classNames, "".concat(prefixCls, "-active"), active), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "".concat(prefixCls, "-round"), round), _classNames), className);
|
|
141
115
|
return /*#__PURE__*/React.createElement("div", {
|
|
142
116
|
className: cls,
|
|
143
117
|
style: style
|
|
144
118
|
}, avatarNode, contentNode);
|
|
145
119
|
}
|
|
146
|
-
|
|
147
120
|
return typeof children !== 'undefined' ? children : null;
|
|
148
121
|
};
|
|
149
|
-
|
|
150
122
|
Skeleton.defaultProps = {
|
|
151
123
|
avatar: false,
|
|
152
124
|
title: true,
|
package/es/skeleton/Title.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export interface SkeletonTitleProps {
|
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
width?: number | string;
|
|
7
7
|
}
|
|
8
|
-
declare const Title: ({ prefixCls, className, width, style }: SkeletonTitleProps) => JSX.Element;
|
|
8
|
+
declare const Title: ({ prefixCls, className, width, style }: SkeletonTitleProps) => React.JSX.Element;
|
|
9
9
|
export default Title;
|
package/es/skeleton/Title.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
|
|
5
4
|
var Title = function Title(_ref) {
|
|
6
5
|
var prefixCls = _ref.prefixCls,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
className = _ref.className,
|
|
7
|
+
width = _ref.width,
|
|
8
|
+
style = _ref.style;
|
|
10
9
|
return /*#__PURE__*/React.createElement("h3", {
|
|
11
10
|
className: classNames(prefixCls, className),
|
|
12
11
|
style: _extends({
|
|
@@ -14,5 +13,4 @@ var Title = function Title(_ref) {
|
|
|
14
13
|
}, style)
|
|
15
14
|
});
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
export default Title;
|
|
@@ -108,8 +108,7 @@
|
|
|
108
108
|
bottom: 0;
|
|
109
109
|
left: -150%;
|
|
110
110
|
background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);
|
|
111
|
-
|
|
112
|
-
animation: acud-skeleton-loading 1.4s ease infinite;
|
|
111
|
+
animation: acud-skeleton-loading 1.4s ease infinite;
|
|
113
112
|
content: '';
|
|
114
113
|
}
|
|
115
114
|
.acud-skeleton.acud-skeleton-block {
|
|
@@ -257,14 +256,6 @@
|
|
|
257
256
|
.acud-skeleton-element .acud-skeleton-image-svg.acud-skeleton-image-circle {
|
|
258
257
|
border-radius: 50%;
|
|
259
258
|
}
|
|
260
|
-
@-webkit-keyframes acud-skeleton-loading {
|
|
261
|
-
0% {
|
|
262
|
-
transform: translateX(-37.5%);
|
|
263
|
-
}
|
|
264
|
-
100% {
|
|
265
|
-
transform: translateX(37.5%);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
259
|
@keyframes acud-skeleton-loading {
|
|
269
260
|
0% {
|
|
270
261
|
transform: translateX(-37.5%);
|
|
@@ -7,28 +7,23 @@ var SliderTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7
7
|
var visible = props.visible;
|
|
8
8
|
var innerRef = useRef(null);
|
|
9
9
|
var rafRef = useRef(null);
|
|
10
|
-
|
|
11
10
|
var cancelKeepAlign = function cancelKeepAlign() {
|
|
12
11
|
raf.cancel(rafRef.current);
|
|
13
12
|
rafRef.current = null;
|
|
14
13
|
};
|
|
15
|
-
|
|
16
14
|
var keepAlign = function keepAlign() {
|
|
17
15
|
rafRef.current = raf(function () {
|
|
18
16
|
var _a;
|
|
19
|
-
|
|
20
17
|
(_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.forcePopupAlign();
|
|
21
18
|
rafRef.current = null;
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
|
-
|
|
25
21
|
useEffect(function () {
|
|
26
22
|
if (visible) {
|
|
27
23
|
keepAlign();
|
|
28
24
|
} else {
|
|
29
25
|
cancelKeepAlign();
|
|
30
26
|
}
|
|
31
|
-
|
|
32
27
|
return cancelKeepAlign;
|
|
33
28
|
}, [visible, props.title]);
|
|
34
29
|
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
package/es/slider/index.js
CHANGED
|
@@ -2,20 +2,14 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
|
|
6
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
6
|
var t = {};
|
|
8
|
-
|
|
9
|
-
for (var p in s) {
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
8
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
10
|
}
|
|
16
11
|
return t;
|
|
17
12
|
};
|
|
18
|
-
|
|
19
13
|
import React, { useContext, useState, forwardRef } from 'react';
|
|
20
14
|
import OutlinedPause from "acud-icon/es/icons/OutlinedPause";
|
|
21
15
|
import RcSlider, { Range as RcRange, Handle as RcHandle } from 'rc-slider';
|
|
@@ -24,47 +18,40 @@ import SliderTooltip from './SliderTooltip';
|
|
|
24
18
|
import { ConfigContext } from '../config-provider';
|
|
25
19
|
var Slider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
26
20
|
var _useContext = useContext(ConfigContext),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
getPrefixCls = _useContext.getPrefixCls,
|
|
22
|
+
direction = _useContext.direction,
|
|
23
|
+
getPopupContainer = _useContext.getPopupContainer;
|
|
31
24
|
var _useState = useState({}),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
visibles = _useState2[0],
|
|
27
|
+
setVisibles = _useState2[1];
|
|
36
28
|
var toggleTooltipVisible = function toggleTooltipVisible(index, visible) {
|
|
37
29
|
setVisibles(function (prev) {
|
|
38
30
|
return _extends(_extends({}, prev), _defineProperty({}, index, visible));
|
|
39
31
|
});
|
|
40
32
|
};
|
|
41
|
-
|
|
42
33
|
var getTooltipPlacement = function getTooltipPlacement(tooltipPlacement, vertical) {
|
|
43
34
|
if (tooltipPlacement) {
|
|
44
35
|
return tooltipPlacement;
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
if (!vertical) {
|
|
48
38
|
return 'top';
|
|
49
39
|
}
|
|
50
|
-
|
|
51
40
|
return direction === 'rtl' ? 'left' : 'right';
|
|
52
41
|
};
|
|
53
|
-
|
|
54
42
|
var handleWithTooltip = function handleWithTooltip(_a) {
|
|
55
43
|
var tooltipPrefixCls = _a.tooltipPrefixCls,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
prefixCls = _a.prefixCls,
|
|
45
|
+
_b = _a.info,
|
|
46
|
+
value = _b.value,
|
|
47
|
+
dragging = _b.dragging,
|
|
48
|
+
index = _b.index,
|
|
49
|
+
restProps = __rest(_b, ["value", "dragging", "index"]);
|
|
63
50
|
var tipFormatter = props.tipFormatter,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
tooltipVisible = props.tooltipVisible,
|
|
52
|
+
tooltipPlacement = props.tooltipPlacement,
|
|
53
|
+
getTooltipPopupContainer = props.getTooltipPopupContainer,
|
|
54
|
+
vertical = props.vertical;
|
|
68
55
|
var isTipFormatter = tipFormatter ? visibles[index] || dragging : false;
|
|
69
56
|
var visible = tooltipVisible || tooltipVisible === undefined && isTipFormatter;
|
|
70
57
|
var rootPrefixCls = getPrefixCls();
|
|
@@ -93,27 +80,21 @@ var Slider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
93
80
|
height: 12
|
|
94
81
|
})));
|
|
95
82
|
};
|
|
96
|
-
|
|
97
83
|
var customizePrefixCls = props.prefixCls,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
84
|
+
customizeTooltipPrefixCls = props.tooltipPrefixCls,
|
|
85
|
+
range = props.range,
|
|
86
|
+
className = props.className,
|
|
87
|
+
restProps = __rest(props, ["prefixCls", "tooltipPrefixCls", "range", "className"]);
|
|
103
88
|
var prefixCls = getPrefixCls('slider', customizePrefixCls);
|
|
104
89
|
var tooltipPrefixCls = getPrefixCls('tooltip', customizeTooltipPrefixCls);
|
|
105
90
|
var cls = classNames(className, _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
|
106
|
-
|
|
107
91
|
if (direction === 'rtl' && !restProps.vertical) {
|
|
108
92
|
restProps.reverse = !restProps.reverse;
|
|
109
93
|
}
|
|
110
|
-
|
|
111
94
|
var draggableTrack;
|
|
112
|
-
|
|
113
95
|
if (_typeof(range) === 'object') {
|
|
114
96
|
draggableTrack = range.draggableTrack;
|
|
115
97
|
}
|
|
116
|
-
|
|
117
98
|
if (range) {
|
|
118
99
|
return /*#__PURE__*/React.createElement(RcRange, _extends({}, restProps, {
|
|
119
100
|
step: restProps.step,
|
|
@@ -130,7 +111,6 @@ var Slider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
130
111
|
prefixCls: prefixCls
|
|
131
112
|
}));
|
|
132
113
|
}
|
|
133
|
-
|
|
134
114
|
return (
|
|
135
115
|
/*#__PURE__*/
|
|
136
116
|
// @ts-ignore 组件类型与rc-slider对不上,组件开发者自行解决!
|
package/es/slider/interface.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface HandleGeneratorInfo {
|
|
|
11
11
|
dragging?: boolean;
|
|
12
12
|
index: number;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type HandleGeneratorFn = (config: {
|
|
15
15
|
tooltipPrefixCls?: string;
|
|
16
16
|
prefixCls?: string;
|
|
17
17
|
info: HandleGeneratorInfo;
|
package/es/space/Item.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export interface ItemProps {
|
|
|
8
8
|
split?: string | React.ReactNode;
|
|
9
9
|
wrap?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function Item({ className, direction, index, marginDirection, children, split, wrap }: ItemProps): JSX.Element;
|
|
11
|
+
export default function Item({ className, direction, index, marginDirection, children, split, wrap }: ItemProps): React.JSX.Element;
|
package/es/space/Item.js
CHANGED
|
@@ -4,21 +4,18 @@ import * as React from 'react';
|
|
|
4
4
|
import { SpaceContext } from '.';
|
|
5
5
|
export default function Item(_ref) {
|
|
6
6
|
var className = _ref.className,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
direction = _ref.direction,
|
|
8
|
+
index = _ref.index,
|
|
9
|
+
marginDirection = _ref.marginDirection,
|
|
10
|
+
children = _ref.children,
|
|
11
|
+
split = _ref.split,
|
|
12
|
+
wrap = _ref.wrap;
|
|
14
13
|
var _React$useContext = React.useContext(SpaceContext),
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
horizontalSize = _React$useContext.horizontalSize,
|
|
15
|
+
verticalSize = _React$useContext.verticalSize,
|
|
16
|
+
latestIndex = _React$useContext.latestIndex,
|
|
17
|
+
supportFlexGap = _React$useContext.supportFlexGap;
|
|
20
18
|
var style = {};
|
|
21
|
-
|
|
22
19
|
if (!supportFlexGap) {
|
|
23
20
|
if (direction === 'vertical') {
|
|
24
21
|
if (index < latestIndex) {
|
|
@@ -32,11 +29,9 @@ export default function Item(_ref) {
|
|
|
32
29
|
});
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
|
-
|
|
36
32
|
if (children === null || children === undefined) {
|
|
37
33
|
return null;
|
|
38
34
|
}
|
|
39
|
-
|
|
40
35
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
41
36
|
className: className,
|
|
42
37
|
style: style
|
package/es/space/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const SpaceContext: React.Context<{
|
|
|
6
6
|
verticalSize: number;
|
|
7
7
|
supportFlexGap: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
9
|
+
export type SpaceSize = SizeType | number;
|
|
10
10
|
export interface SpaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
11
|
prefixCls?: string;
|
|
12
12
|
className?: string;
|
package/es/space/index.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
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
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
5
|
var t = {};
|
|
7
|
-
|
|
8
|
-
for (var p in s) {
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
11
|
-
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
7
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
9
|
}
|
|
15
10
|
return t;
|
|
16
11
|
};
|
|
17
|
-
|
|
18
12
|
import classNames from 'classnames';
|
|
19
13
|
import toArray from "rc-util/es/Children/toArray";
|
|
20
14
|
import * as React from 'react';
|
|
@@ -32,44 +26,37 @@ var spaceSize = {
|
|
|
32
26
|
middle: 16,
|
|
33
27
|
large: 24
|
|
34
28
|
};
|
|
35
|
-
|
|
36
29
|
function getNumberSize(size) {
|
|
37
30
|
return typeof size === 'string' ? spaceSize[size] : size || 0;
|
|
38
31
|
}
|
|
39
|
-
|
|
40
32
|
var Space = function Space(props) {
|
|
41
33
|
var _classNames;
|
|
42
|
-
|
|
43
34
|
var _React$useContext = React.useContext(ConfigContext),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
36
|
+
space = _React$useContext.space,
|
|
37
|
+
directionConfig = _React$useContext.direction;
|
|
48
38
|
var _props$size = props.size,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
39
|
+
size = _props$size === void 0 ? (space === null || space === void 0 ? void 0 : space.size) || 'small' : _props$size,
|
|
40
|
+
align = props.align,
|
|
41
|
+
className = props.className,
|
|
42
|
+
children = props.children,
|
|
43
|
+
_props$direction = props.direction,
|
|
44
|
+
direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
45
|
+
customizePrefixCls = props.prefixCls,
|
|
46
|
+
split = props.split,
|
|
47
|
+
style = props.style,
|
|
48
|
+
_props$wrap = props.wrap,
|
|
49
|
+
wrap = _props$wrap === void 0 ? false : _props$wrap,
|
|
50
|
+
otherProps = __rest(props, ["size", "align", "className", "children", "direction", "prefixCls", "split", "style", "wrap"]);
|
|
62
51
|
var supportFlexGap = useFlexGapSupport();
|
|
63
|
-
|
|
64
52
|
var _React$useMemo = React.useMemo(function () {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
return (Array.isArray(size) ? size : [size, size]).map(function (item) {
|
|
54
|
+
return getNumberSize(item);
|
|
55
|
+
});
|
|
56
|
+
}, [size]),
|
|
57
|
+
_React$useMemo2 = _slicedToArray(_React$useMemo, 2),
|
|
58
|
+
horizontalSize = _React$useMemo2[0],
|
|
59
|
+
verticalSize = _React$useMemo2[1];
|
|
73
60
|
var childNodes = toArray(children, {
|
|
74
61
|
keepEmpty: true
|
|
75
62
|
});
|
|
@@ -77,14 +64,13 @@ var Space = function Space(props) {
|
|
|
77
64
|
var prefixCls = getPrefixCls('space', customizePrefixCls);
|
|
78
65
|
var cn = classNames(prefixCls, "".concat(prefixCls, "-").concat(direction), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), directionConfig === 'rtl'), _defineProperty(_classNames, "".concat(prefixCls, "-align-").concat(mergedAlign), mergedAlign), _classNames), className);
|
|
79
66
|
var itemClassName = "".concat(prefixCls, "-item");
|
|
80
|
-
var marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
81
|
-
|
|
67
|
+
var marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
68
|
+
// Calculate latest one
|
|
82
69
|
var latestIndex = 0;
|
|
83
70
|
var nodes = childNodes.map(function (child, i) {
|
|
84
71
|
if (child !== null && child !== undefined) {
|
|
85
72
|
latestIndex = i;
|
|
86
73
|
}
|
|
87
|
-
|
|
88
74
|
var key = child && child.key || "".concat(itemClassName, "-").concat(i);
|
|
89
75
|
return /*#__PURE__*/React.createElement(Item, {
|
|
90
76
|
className: itemClassName,
|
|
@@ -103,27 +89,23 @@ var Space = function Space(props) {
|
|
|
103
89
|
latestIndex: latestIndex,
|
|
104
90
|
supportFlexGap: supportFlexGap
|
|
105
91
|
};
|
|
106
|
-
}, [horizontalSize, verticalSize, latestIndex, supportFlexGap]);
|
|
107
|
-
|
|
92
|
+
}, [horizontalSize, verticalSize, latestIndex, supportFlexGap]);
|
|
93
|
+
// =========================== Render ===========================
|
|
108
94
|
if (childNodes.length === 0) {
|
|
109
95
|
return null;
|
|
110
96
|
}
|
|
111
|
-
|
|
112
97
|
var gapStyle = {};
|
|
113
|
-
|
|
114
98
|
if (wrap) {
|
|
115
|
-
gapStyle.flexWrap = 'wrap';
|
|
116
|
-
|
|
99
|
+
gapStyle.flexWrap = 'wrap';
|
|
100
|
+
// Patch for gap not support
|
|
117
101
|
if (!supportFlexGap) {
|
|
118
102
|
gapStyle.marginBottom = -verticalSize;
|
|
119
103
|
}
|
|
120
104
|
}
|
|
121
|
-
|
|
122
105
|
if (supportFlexGap) {
|
|
123
106
|
gapStyle.columnGap = horizontalSize;
|
|
124
107
|
gapStyle.rowGap = verticalSize;
|
|
125
108
|
}
|
|
126
|
-
|
|
127
109
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
128
110
|
className: cn,
|
|
129
111
|
style: _extends(_extends({}, gapStyle), style)
|
|
@@ -131,5 +113,4 @@ var Space = function Space(props) {
|
|
|
131
113
|
value: spaceContext
|
|
132
114
|
}, nodes));
|
|
133
115
|
};
|
|
134
|
-
|
|
135
116
|
export default Space;
|
package/es/steps/index.d.ts
CHANGED
package/es/steps/index.js
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
// import omit from 'rc-util/lib/omit';
|
|
5
5
|
import RcSteps from './src/steps';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import { ConfigContext } from '../config-provider';
|
|
7
|
+
import { ConfigContext } from '../config-provider';
|
|
8
|
+
// Progress组件依赖 目前已满足UE要求,不需要使用进度条
|
|
8
9
|
// import Progress from '../progress';
|
|
9
|
-
|
|
10
10
|
import OutlinedCloseSmall from "acud-icon/es/icons/OutlinedCloseSmall";
|
|
11
11
|
import OutlinedCheckSmall from "acud-icon/es/icons/OutlinedCheckSmall";
|
|
12
12
|
import useBreakpoint from '../grid/hooks/useBreakpoint';
|
|
13
|
-
|
|
14
13
|
var Steps = function Steps(props) {
|
|
15
14
|
var className = props.className,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
direction = props.direction,
|
|
16
|
+
responsive = props.responsive;
|
|
19
17
|
var _useBreakpoint = useBreakpoint(),
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
xs = _useBreakpoint.xs;
|
|
22
19
|
var _React$useContext = React.useContext(ConfigContext),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
21
|
+
rtlDirection = _React$useContext.direction;
|
|
26
22
|
var getDirection = React.useCallback(function () {
|
|
27
23
|
return responsive && xs ? 'vertical' : direction;
|
|
28
24
|
}, [responsive, xs, direction]);
|
|
@@ -37,11 +33,9 @@ var Steps = function Steps(props) {
|
|
|
37
33
|
className: "".concat(prefixCls, "-error-icon")
|
|
38
34
|
})
|
|
39
35
|
};
|
|
40
|
-
|
|
41
36
|
var stepIconRender = function stepIconRender(_ref) {
|
|
42
37
|
var node = _ref.node,
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
status = _ref.status;
|
|
45
39
|
if (status === 'process') {
|
|
46
40
|
// currently it's hard-coded, since we can't easily read the actually width of icon
|
|
47
41
|
// const progressWidth = size === 'small' ? 32 : 40;
|
|
@@ -50,10 +44,8 @@ var Steps = function Steps(props) {
|
|
|
50
44
|
}, node);
|
|
51
45
|
return iconWithProgress;
|
|
52
46
|
}
|
|
53
|
-
|
|
54
47
|
return node;
|
|
55
48
|
};
|
|
56
|
-
|
|
57
49
|
return /*#__PURE__*/React.createElement(RcSteps, _extends({
|
|
58
50
|
icons: icons
|
|
59
51
|
}, props, {
|
|
@@ -64,7 +56,6 @@ var Steps = function Steps(props) {
|
|
|
64
56
|
className: stepsClassName
|
|
65
57
|
}));
|
|
66
58
|
};
|
|
67
|
-
|
|
68
59
|
Steps.Step = RcSteps.Step;
|
|
69
60
|
Steps.defaultProps = {
|
|
70
61
|
current: 0
|
package/es/steps/interface.d.ts
CHANGED