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/tabs/tabs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TabsProps as RcTabsProps, TabPaneProps } from './src';
|
|
3
3
|
import { SizeType } from '../config-provider/SizeContext';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type TabsType = 'line' | 'card' | 'editable-card';
|
|
5
|
+
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
6
6
|
export { TabPaneProps };
|
|
7
7
|
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
8
8
|
type?: TabsType;
|
|
@@ -12,7 +12,7 @@ export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
|
12
12
|
addIcon?: React.ReactNode;
|
|
13
13
|
onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
|
|
14
14
|
}
|
|
15
|
-
declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, ...props }: TabsProps): JSX.Element;
|
|
15
|
+
declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, ...props }: TabsProps): React.JSX.Element;
|
|
16
16
|
declare namespace Tabs {
|
|
17
17
|
var TabPane: typeof import("./src").TabPane;
|
|
18
18
|
}
|
package/es/tabs/tabs.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
5
4
|
var t = {};
|
|
6
|
-
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
8
|
}
|
|
14
9
|
return t;
|
|
15
10
|
};
|
|
16
|
-
|
|
17
11
|
import * as React from 'react';
|
|
18
12
|
import RcTabs, { TabPane } from './src';
|
|
19
13
|
import classNames from 'classnames';
|
|
@@ -22,30 +16,25 @@ import OutlinedCloseSmall from "acud-icon/es/icons/OutlinedCloseSmall";
|
|
|
22
16
|
import devWarning from '../_util/devWarning';
|
|
23
17
|
import { ConfigContext } from '../config-provider';
|
|
24
18
|
import SizeContext from '../config-provider/SizeContext';
|
|
25
|
-
|
|
26
19
|
function Tabs(_a) {
|
|
27
20
|
var type = _a.type,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
className = _a.className,
|
|
22
|
+
propSize = _a.size,
|
|
23
|
+
_onEdit = _a.onEdit,
|
|
24
|
+
hideAdd = _a.hideAdd,
|
|
25
|
+
centered = _a.centered,
|
|
26
|
+
addIcon = _a.addIcon,
|
|
27
|
+
props = __rest(_a, ["type", "className", "size", "onEdit", "hideAdd", "centered", "addIcon"]);
|
|
36
28
|
var customizePrefixCls = props.prefixCls;
|
|
37
|
-
|
|
38
29
|
var _React$useContext = React.useContext(ConfigContext),
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
41
31
|
var prefixCls = getPrefixCls('tabs', customizePrefixCls);
|
|
42
32
|
var editable;
|
|
43
|
-
|
|
44
33
|
if (type === 'editable-card') {
|
|
45
34
|
editable = {
|
|
46
35
|
onEdit: function onEdit(editType, _ref) {
|
|
47
36
|
var key = _ref.key,
|
|
48
|
-
|
|
37
|
+
event = _ref.event;
|
|
49
38
|
_onEdit === null || _onEdit === void 0 ? void 0 : _onEdit(editType === 'add' ? event : key, editType);
|
|
50
39
|
},
|
|
51
40
|
removeIcon: /*#__PURE__*/React.createElement(OutlinedCloseSmall, null),
|
|
@@ -53,12 +42,10 @@ function Tabs(_a) {
|
|
|
53
42
|
showAdd: hideAdd !== true
|
|
54
43
|
};
|
|
55
44
|
}
|
|
56
|
-
|
|
57
45
|
var rootPrefixCls = getPrefixCls();
|
|
58
46
|
devWarning(!('onPrevClick' in props) && !('onNextClick' in props), 'Tabs', '`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.');
|
|
59
47
|
return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (contextSize) {
|
|
60
48
|
var _classNames;
|
|
61
|
-
|
|
62
49
|
var size = propSize !== undefined ? propSize : contextSize;
|
|
63
50
|
return /*#__PURE__*/React.createElement(RcTabs, _extends({
|
|
64
51
|
moreTransitionName: "".concat(rootPrefixCls, "-slide-up")
|
|
@@ -69,6 +56,5 @@ function Tabs(_a) {
|
|
|
69
56
|
}));
|
|
70
57
|
});
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
Tabs.TabPane = TabPane;
|
|
74
60
|
export default Tabs;
|
package/es/tag/CheckableTag.js
CHANGED
|
@@ -1,41 +1,30 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
5
4
|
var t = {};
|
|
6
|
-
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
8
|
}
|
|
14
9
|
return t;
|
|
15
10
|
};
|
|
16
|
-
|
|
17
11
|
import * as React from 'react';
|
|
18
12
|
import classNames from 'classnames';
|
|
19
13
|
import { ConfigContext } from '../config-provider';
|
|
20
|
-
|
|
21
14
|
var CheckableTag = function CheckableTag(_a) {
|
|
22
15
|
var _classNames;
|
|
23
|
-
|
|
24
16
|
var customizePrefixCls = _a.prefixCls,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
className = _a.className,
|
|
18
|
+
checked = _a.checked,
|
|
19
|
+
onChange = _a.onChange,
|
|
20
|
+
onClick = _a.onClick,
|
|
21
|
+
restProps = __rest(_a, ["prefixCls", "className", "checked", "onChange", "onClick"]);
|
|
31
22
|
var _React$useContext = React.useContext(ConfigContext),
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
34
24
|
var handleClick = function handleClick(e) {
|
|
35
25
|
onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
|
|
36
26
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
37
27
|
};
|
|
38
|
-
|
|
39
28
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
40
29
|
var cls = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-checkable"), !checked), _defineProperty(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
|
|
41
30
|
return /*#__PURE__*/React.createElement("span", _extends({}, restProps, {
|
|
@@ -43,5 +32,4 @@ var CheckableTag = function CheckableTag(_a) {
|
|
|
43
32
|
onClick: handleClick
|
|
44
33
|
}));
|
|
45
34
|
};
|
|
46
|
-
|
|
47
35
|
export default CheckableTag;
|
package/es/tag/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PresetStatusType } from '../_util/colors';
|
|
|
4
4
|
import { LiteralUnion, ElementOf } from '../_util/type';
|
|
5
5
|
export { CheckableTagProps } from './CheckableTag';
|
|
6
6
|
export declare const PresetColorTypes: ["red", "orange", "yellow", "grey"];
|
|
7
|
-
export
|
|
7
|
+
export type PresetColorType = ElementOf<typeof PresetColorTypes>;
|
|
8
8
|
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
9
9
|
prefixCls?: string;
|
|
10
10
|
className?: string;
|
package/es/tag/index.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
|
|
5
4
|
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 * as React from 'react';
|
|
19
13
|
import classNames from 'classnames';
|
|
20
14
|
import omit from "rc-util/es/omit";
|
|
@@ -26,47 +20,39 @@ import { tuple } from '../_util/type';
|
|
|
26
20
|
export var PresetColorTypes = tuple('red', 'orange', 'yellow', 'grey');
|
|
27
21
|
var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-inverse)?$"));
|
|
28
22
|
var PresetStatusRegex = new RegExp("^(".concat(PresetStatusTypes.join('|'), ")(-solid|-outline)?$"));
|
|
29
|
-
|
|
30
23
|
var InternalTag = function InternalTag(_a, ref) {
|
|
31
24
|
var _classNames;
|
|
32
|
-
|
|
33
25
|
var customizePrefixCls = _a.prefixCls,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
className = _a.className,
|
|
27
|
+
style = _a.style,
|
|
28
|
+
children = _a.children,
|
|
29
|
+
icon = _a.icon,
|
|
30
|
+
color = _a.color,
|
|
31
|
+
onClose = _a.onClose,
|
|
32
|
+
closeIcon = _a.closeIcon,
|
|
33
|
+
type = _a.type,
|
|
34
|
+
_a$closable = _a.closable,
|
|
35
|
+
closable = _a$closable === void 0 ? false : _a$closable,
|
|
36
|
+
props = __rest(_a, ["prefixCls", "className", "style", "children", "icon", "color", "onClose", "closeIcon", "type", "closable"]);
|
|
46
37
|
var _React$useContext = React.useContext(ConfigContext),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
39
|
+
direction = _React$useContext.direction;
|
|
50
40
|
var _React$useState = React.useState(true),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
42
|
+
visible = _React$useState2[0],
|
|
43
|
+
setVisible = _React$useState2[1];
|
|
55
44
|
React.useEffect(function () {
|
|
56
45
|
if ('visible' in props) {
|
|
57
46
|
setVisible(props.visible);
|
|
58
|
-
}
|
|
59
|
-
|
|
47
|
+
}
|
|
48
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
49
|
}, [props.visible]);
|
|
61
|
-
|
|
62
50
|
var isPresetColor = function isPresetColor() {
|
|
63
51
|
if (!color) {
|
|
64
52
|
return false;
|
|
65
53
|
}
|
|
66
|
-
|
|
67
54
|
return PresetColorRegex.test(color) || PresetStatusRegex.test(color);
|
|
68
55
|
};
|
|
69
|
-
|
|
70
56
|
var colorVal = color && !isPresetColor() ? color : undefined;
|
|
71
57
|
var tagStyle = type && type.length ? {
|
|
72
58
|
borderBottomColor: colorVal
|
|
@@ -76,20 +62,16 @@ var InternalTag = function InternalTag(_a, ref) {
|
|
|
76
62
|
var presetColor = isPresetColor();
|
|
77
63
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
78
64
|
var tagClassName = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(color), presetColor), _defineProperty(_classNames, "".concat(prefixCls, "-has-color"), color && !presetColor), _defineProperty(_classNames, "".concat(prefixCls, "-hidden"), !visible), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "".concat(prefixCls, "-type-").concat(type), type && type.length), _classNames), className);
|
|
79
|
-
|
|
80
65
|
var handleCloseClick = function handleCloseClick(e) {
|
|
81
66
|
e.stopPropagation();
|
|
82
67
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
83
|
-
|
|
84
68
|
if (e.defaultPrevented) {
|
|
85
69
|
return;
|
|
86
70
|
}
|
|
87
|
-
|
|
88
71
|
if (!('visible' in props) && !props.disabled) {
|
|
89
72
|
setVisible(false);
|
|
90
73
|
}
|
|
91
74
|
};
|
|
92
|
-
|
|
93
75
|
var renderCloseIcon = function renderCloseIcon() {
|
|
94
76
|
if (closable) {
|
|
95
77
|
return closeIcon ? /*#__PURE__*/React.createElement("span", {
|
|
@@ -100,10 +82,8 @@ var InternalTag = function InternalTag(_a, ref) {
|
|
|
100
82
|
onClick: handleCloseClick
|
|
101
83
|
});
|
|
102
84
|
}
|
|
103
|
-
|
|
104
85
|
return null;
|
|
105
86
|
};
|
|
106
|
-
|
|
107
87
|
var tagProps = omit(props, ['visible']);
|
|
108
88
|
var iconNode = icon || null;
|
|
109
89
|
var kids = iconNode ? /*#__PURE__*/React.createElement(React.Fragment, null, iconNode, /*#__PURE__*/React.createElement("span", null, children)) : children;
|
|
@@ -115,7 +95,6 @@ var InternalTag = function InternalTag(_a, ref) {
|
|
|
115
95
|
className: "".concat(prefixCls, "-render-container")
|
|
116
96
|
}, kids, renderCloseIcon()));
|
|
117
97
|
};
|
|
118
|
-
|
|
119
98
|
var Tag = /*#__PURE__*/React.forwardRef(InternalTag);
|
|
120
99
|
Tag.displayName = 'Tag';
|
|
121
100
|
Tag.CheckableTag = CheckableTag;
|
package/es/tag/style/index.css
CHANGED
|
@@ -385,18 +385,7 @@
|
|
|
385
385
|
background: #FF9326;
|
|
386
386
|
}
|
|
387
387
|
.acud-tag .circle.status-processing::after {
|
|
388
|
-
|
|
389
|
-
animation: flash 0.4s ease-in infinite alternate;
|
|
390
|
-
}
|
|
391
|
-
@-webkit-keyframes flash {
|
|
392
|
-
from {
|
|
393
|
-
transform: scale(0.7);
|
|
394
|
-
box-shadow: 0 0 0 3px #d4e5ff;
|
|
395
|
-
}
|
|
396
|
-
to {
|
|
397
|
-
transform: scale(1);
|
|
398
|
-
box-shadow: 0 0 0 0px #d4e5ff;
|
|
399
|
-
}
|
|
388
|
+
animation: flash 0.4s ease-in infinite alternate;
|
|
400
389
|
}
|
|
401
390
|
@keyframes flash {
|
|
402
391
|
from {
|
|
@@ -23,7 +23,7 @@ export interface TimePickerProps extends Omit<PickerTimeProps<Moment>, 'picker'>
|
|
|
23
23
|
popupClassName?: string;
|
|
24
24
|
}
|
|
25
25
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
26
|
-
|
|
26
|
+
type MergedTimePicker = typeof TimePicker & {
|
|
27
27
|
RangePicker: typeof RangePicker;
|
|
28
28
|
};
|
|
29
29
|
declare const _default: MergedTimePicker;
|
package/es/time-picker/index.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
|
|
3
2
|
var __rest = this && this.__rest || function (s, e) {
|
|
4
3
|
var t = {};
|
|
5
|
-
|
|
6
|
-
for (var p in s) {
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
5
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
6
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
7
|
}
|
|
13
8
|
return t;
|
|
14
9
|
};
|
|
15
|
-
|
|
16
10
|
import * as React from 'react';
|
|
17
11
|
import classNames from 'classnames';
|
|
18
12
|
import DatePicker from '../date-picker';
|
|
19
13
|
import { ConfigContext } from '../config-provider';
|
|
20
14
|
import devWarning from '../_util/devWarning';
|
|
21
15
|
var InternalTimePicker = DatePicker.TimePicker,
|
|
22
|
-
|
|
16
|
+
InternalRangePicker = DatePicker.RangePicker;
|
|
23
17
|
var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24
18
|
var customizePrefixCls = props.prefixCls,
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
popupClassName = props.popupClassName;
|
|
27
20
|
var _React$useContext = React.useContext(ConfigContext),
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
30
22
|
var prefixCls = getPrefixCls('time', customizePrefixCls);
|
|
31
23
|
var classes = classNames("".concat(prefixCls, "-panel-wrap"), "".concat(prefixCls, "-input-wrap"));
|
|
32
24
|
var dropdownClasses = classNames("".concat(prefixCls, "-panel-wrap"), popupClassName);
|
|
@@ -41,27 +33,22 @@ var RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
41
33
|
});
|
|
42
34
|
var TimePicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
43
35
|
var customizePrefixCls = _a.prefixCls,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
addon = _a.addon,
|
|
37
|
+
renderExtraFooter = _a.renderExtraFooter,
|
|
38
|
+
popupClassName = _a.popupClassName,
|
|
39
|
+
restProps = __rest(_a, ["prefixCls", "addon", "renderExtraFooter", "popupClassName"]);
|
|
49
40
|
var internalRenderExtraFooter = React.useMemo(function () {
|
|
50
41
|
if (renderExtraFooter) {
|
|
51
42
|
return renderExtraFooter;
|
|
52
43
|
}
|
|
53
|
-
|
|
54
44
|
if (addon) {
|
|
55
45
|
devWarning(false, 'TimePicker', '`addon` is deprecated. Please use `renderExtraFooter` instead.');
|
|
56
46
|
return addon;
|
|
57
47
|
}
|
|
58
|
-
|
|
59
48
|
return undefined;
|
|
60
49
|
}, [addon, renderExtraFooter]);
|
|
61
|
-
|
|
62
50
|
var _React$useContext2 = React.useContext(ConfigContext),
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
getPrefixCls = _React$useContext2.getPrefixCls;
|
|
65
52
|
var prefixCls = getPrefixCls('time', customizePrefixCls);
|
|
66
53
|
var classes = classNames("".concat(prefixCls, "-panel-wrap"), "".concat(prefixCls, "-input-wrap"));
|
|
67
54
|
var dropdownClasses = classNames("".concat(prefixCls, "-panel-wrap"), popupClassName);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../../style/index.css';
|
|
2
|
-
|
|
3
|
-
import '../../date-picker/style/css';
|
|
4
|
-
|
|
1
|
+
import '../../style/index.css';
|
|
2
|
+
// style dependencies
|
|
3
|
+
import '../../date-picker/style/css';
|
|
4
|
+
// 覆盖date-picker的样式
|
|
5
5
|
import './index.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../../style/index.less';
|
|
2
|
-
|
|
3
|
-
import '../../date-picker/style';
|
|
4
|
-
|
|
1
|
+
import '../../style/index.less';
|
|
2
|
+
// style dependencies
|
|
3
|
+
import '../../date-picker/style';
|
|
4
|
+
// 覆盖date-picker的样式
|
|
5
5
|
import './index.less';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type Status = 'default' | 'success' | 'error' | 'warning' | 'unavailable' | 'pending';
|
|
3
3
|
export interface TimeLineItemProps {
|
|
4
4
|
prefixCls?: string;
|
|
5
5
|
color?: string;
|
|
@@ -46,16 +46,7 @@
|
|
|
46
46
|
border-right: 1px solid #2468F2;
|
|
47
47
|
border-bottom: 1px solid #2468F2;
|
|
48
48
|
border-left: 1px solid transparent;
|
|
49
|
-
|
|
50
|
-
animation: rotate 1s linear infinite;
|
|
51
|
-
}
|
|
52
|
-
@-webkit-keyframes rotate {
|
|
53
|
-
from {
|
|
54
|
-
transform: rotate(0);
|
|
55
|
-
}
|
|
56
|
-
to {
|
|
57
|
-
transform: rotate(360deg);
|
|
58
|
-
}
|
|
49
|
+
animation: rotate 1s linear infinite;
|
|
59
50
|
}
|
|
60
51
|
@keyframes rotate {
|
|
61
52
|
from {
|
|
@@ -66,21 +57,9 @@
|
|
|
66
57
|
}
|
|
67
58
|
}
|
|
68
59
|
.theme .dot-pending {
|
|
69
|
-
|
|
70
|
-
animation: breath 1.5s linear infinite;
|
|
60
|
+
animation: breath 1.5s linear infinite;
|
|
71
61
|
color: #2468F2;
|
|
72
62
|
}
|
|
73
|
-
@-webkit-keyframes breath {
|
|
74
|
-
0% {
|
|
75
|
-
transform: scale(1);
|
|
76
|
-
}
|
|
77
|
-
50% {
|
|
78
|
-
transform: scale(1.2);
|
|
79
|
-
}
|
|
80
|
-
100% {
|
|
81
|
-
transform: scale(1);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
63
|
@keyframes breath {
|
|
85
64
|
0% {
|
|
86
65
|
transform: scale(1);
|
|
@@ -529,8 +508,7 @@
|
|
|
529
508
|
border-right: 1px solid #2468F2;
|
|
530
509
|
border-bottom: 1px solid #2468F2;
|
|
531
510
|
border-left: 1px solid transparent;
|
|
532
|
-
|
|
533
|
-
animation: rotate 1s linear infinite;
|
|
511
|
+
animation: rotate 1s linear infinite;
|
|
534
512
|
}
|
|
535
513
|
@keyframes rotate {
|
|
536
514
|
from {
|
|
@@ -541,8 +519,7 @@
|
|
|
541
519
|
}
|
|
542
520
|
}
|
|
543
521
|
.acud-timeline .dot-pending {
|
|
544
|
-
|
|
545
|
-
animation: breath 1.5s linear infinite;
|
|
522
|
+
animation: breath 1.5s linear infinite;
|
|
546
523
|
color: #2468F2;
|
|
547
524
|
}
|
|
548
525
|
@keyframes breath {
|
package/es/timeline/timeline.js
CHANGED
|
@@ -15,35 +15,31 @@ var _number = {
|
|
|
15
15
|
vertical: ' number-vertical',
|
|
16
16
|
horizontal: ' number-horizontal'
|
|
17
17
|
};
|
|
18
|
-
|
|
19
18
|
var Timeline = function Timeline(_ref) {
|
|
20
19
|
var customizePrefixCls = _ref.prefixCls,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
_ref$mode = _ref.mode,
|
|
21
|
+
mode = _ref$mode === void 0 ? 'vertical' : _ref$mode,
|
|
22
|
+
_ref$reverse = _ref.reverse,
|
|
23
|
+
reverse = _ref$reverse === void 0 ? false : _ref$reverse,
|
|
24
|
+
_ref$isNumber = _ref.isNumber,
|
|
25
|
+
isNumber = _ref$isNumber === void 0 ? false : _ref$isNumber,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
style = _ref.style,
|
|
28
|
+
children = _ref.children;
|
|
31
29
|
var _React$useContext = React.useContext(ConfigContext),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
31
|
+
var prefixCls = getPrefixCls('timeline', customizePrefixCls);
|
|
32
|
+
// 整体样式布局
|
|
36
33
|
var layout = useMemo(function () {
|
|
37
34
|
var layoutClass = _layout[mode] || ' is-vertical';
|
|
38
35
|
var numberClass = '';
|
|
39
|
-
|
|
40
36
|
if (isNumber) {
|
|
41
37
|
numberClass = _number[mode] || ' number-vertical';
|
|
42
38
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, [mode, className, prefixCls]);
|
|
46
|
-
|
|
39
|
+
return cls(prefixCls, layoutClass, numberClass, className);
|
|
40
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
|
+
}, [mode, className, prefixCls]);
|
|
42
|
+
// 列表
|
|
47
43
|
var listContext = useMemo(function () {
|
|
48
44
|
if (Array.isArray(children) && reverse) {
|
|
49
45
|
return map(children.reverse(), function (node, key) {
|
|
@@ -52,7 +48,6 @@ var Timeline = function Timeline(_ref) {
|
|
|
52
48
|
});
|
|
53
49
|
});
|
|
54
50
|
}
|
|
55
|
-
|
|
56
51
|
if (Array.isArray(children)) {
|
|
57
52
|
return map(children, function (node, key) {
|
|
58
53
|
return /*#__PURE__*/React.cloneElement(node, {
|
|
@@ -60,7 +55,6 @@ var Timeline = function Timeline(_ref) {
|
|
|
60
55
|
});
|
|
61
56
|
});
|
|
62
57
|
}
|
|
63
|
-
|
|
64
58
|
return /*#__PURE__*/React.cloneElement(children);
|
|
65
59
|
}, [children, reverse]);
|
|
66
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -68,6 +62,5 @@ var Timeline = function Timeline(_ref) {
|
|
|
68
62
|
style: style
|
|
69
63
|
}, listContext);
|
|
70
64
|
};
|
|
71
|
-
|
|
72
65
|
Timeline.Item = TimelineItem;
|
|
73
66
|
export default Timeline;
|