acud 0.0.60
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/CHANGELOG.md +4 -0
- package/README.md +65 -0
- package/dist/acud.css +24775 -0
- package/dist/acud.css.map +1 -0
- package/dist/acud.dark.less +2 -0
- package/dist/acud.js +130054 -0
- package/dist/acud.js.map +1 -0
- package/dist/acud.less +2 -0
- package/dist/acud.min.css +2 -0
- package/dist/acud.min.css.map +1 -0
- package/dist/acud.min.js +25 -0
- package/dist/acud.min.js.map +1 -0
- package/dist/dark-theme.js +7 -0
- package/dist/default-theme.js +69 -0
- package/dist/theme.js +20 -0
- package/es/_util/colors.d.ts +7 -0
- package/es/_util/colors.js +5 -0
- package/es/_util/devWarning.d.ts +4 -0
- package/es/_util/devWarning.js +5 -0
- package/es/_util/easings.d.ts +1 -0
- package/es/_util/easings.js +12 -0
- package/es/_util/getDataOrAriaProps.d.ts +1 -0
- package/es/_util/getDataOrAriaProps.js +9 -0
- package/es/_util/getRenderPropValue.d.ts +3 -0
- package/es/_util/getRenderPropValue.js +13 -0
- package/es/_util/getScroll.d.ts +2 -0
- package/es/_util/getScroll.js +25 -0
- package/es/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/es/_util/hooks/useFlexGapSupport.js +14 -0
- package/es/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/_util/hooks/useForceUpdate.js +11 -0
- package/es/_util/hooks/useMergedState.d.ts +6 -0
- package/es/_util/hooks/useMergedState.js +52 -0
- package/es/_util/hooks/usePatchElement.d.ts +5 -0
- package/es/_util/hooks/usePatchElement.js +26 -0
- package/es/_util/hooks/useSyncState.d.ts +3 -0
- package/es/_util/hooks/useSyncState.js +13 -0
- package/es/_util/lengthLimit.d.ts +1 -0
- package/es/_util/lengthLimit.js +6 -0
- package/es/_util/motion.d.ts +5 -0
- package/es/_util/motion.js +49 -0
- package/es/_util/reactNode.d.ts +7 -0
- package/es/_util/reactNode.js +13 -0
- package/es/_util/responsiveObserve.d.ts +21 -0
- package/es/_util/responsiveObserve.js +76 -0
- package/es/_util/scrollTo.d.ts +10 -0
- package/es/_util/scrollTo.js +38 -0
- package/es/_util/styleChecker.d.ts +3 -0
- package/es/_util/styleChecker.js +40 -0
- package/es/_util/throttleByAnimationFrame.d.ts +5 -0
- package/es/_util/throttleByAnimationFrame.js +57 -0
- package/es/_util/type.d.ts +10 -0
- package/es/_util/type.js +15 -0
- package/es/affix/index.d.ts +49 -0
- package/es/affix/index.js +313 -0
- package/es/affix/style/css.js +2 -0
- package/es/affix/style/index.css +15 -0
- package/es/affix/style/index.d.ts +2 -0
- package/es/affix/style/index.js +2 -0
- package/es/affix/style/index.less +7 -0
- package/es/affix/utils.d.ts +17 -0
- package/es/affix/utils.js +88 -0
- package/es/alert/ErrorBoundary.d.ts +25 -0
- package/es/alert/ErrorBoundary.js +70 -0
- package/es/alert/index.d.ts +40 -0
- package/es/alert/index.js +184 -0
- package/es/alert/style/css.js +2 -0
- package/es/alert/style/index.css +161 -0
- package/es/alert/style/index.d.ts +2 -0
- package/es/alert/style/index.js +2 -0
- package/es/alert/style/index.less +157 -0
- package/es/alert/style/rtl.less +39 -0
- package/es/anchor/Anchor.d.ts +78 -0
- package/es/anchor/Anchor.js +307 -0
- package/es/anchor/AnchorLink.d.ts +28 -0
- package/es/anchor/AnchorLink.js +141 -0
- package/es/anchor/context.d.ts +4 -0
- package/es/anchor/context.js +3 -0
- package/es/anchor/index.d.ts +4 -0
- package/es/anchor/index.js +4 -0
- package/es/anchor/style/css.js +3 -0
- package/es/anchor/style/index.css +138 -0
- package/es/anchor/style/index.d.ts +2 -0
- package/es/anchor/style/index.js +3 -0
- package/es/anchor/style/index.less +97 -0
- package/es/anchor/style/rtl.less +35 -0
- package/es/back-top/index.d.ts +14 -0
- package/es/back-top/index.js +123 -0
- package/es/back-top/style/css.js +2 -0
- package/es/back-top/style/index.css +113 -0
- package/es/back-top/style/index.d.ts +2 -0
- package/es/back-top/style/index.js +2 -0
- package/es/back-top/style/index.less +67 -0
- package/es/back-top/style/responsive.less +11 -0
- package/es/badge/Ribbon.d.ts +19 -0
- package/es/badge/Ribbon.js +53 -0
- package/es/badge/ScrollNumber.d.ts +22 -0
- package/es/badge/ScrollNumber.js +87 -0
- package/es/badge/SingleNumber.d.ts +17 -0
- package/es/badge/SingleNumber.js +128 -0
- package/es/badge/index.d.ts +33 -0
- package/es/badge/index.js +199 -0
- package/es/badge/style/css.js +2 -0
- package/es/badge/style/index.css +480 -0
- package/es/badge/style/index.d.ts +2 -0
- package/es/badge/style/index.js +2 -0
- package/es/badge/style/index.less +268 -0
- package/es/badge/style/ribbon.less +81 -0
- package/es/badge/style/rtl.less +104 -0
- package/es/badge/utils.d.ts +5 -0
- package/es/badge/utils.js +9 -0
- package/es/breadcrumb/Breadcrumb.d.ts +26 -0
- package/es/breadcrumb/Breadcrumb.js +95 -0
- package/es/breadcrumb/BreadcrumbItem.d.ts +16 -0
- package/es/breadcrumb/BreadcrumbItem.js +75 -0
- package/es/breadcrumb/index.d.ts +6 -0
- package/es/breadcrumb/index.js +6 -0
- package/es/breadcrumb/style/css.js +2 -0
- package/es/breadcrumb/style/index.css +72 -0
- package/es/breadcrumb/style/index.d.ts +2 -0
- package/es/breadcrumb/style/index.js +2 -0
- package/es/breadcrumb/style/index.less +44 -0
- package/es/button/LoadingIcon.d.ts +2 -0
- package/es/button/LoadingIcon.js +10 -0
- package/es/button/button-group.d.ts +20 -0
- package/es/button/button-group.js +39 -0
- package/es/button/button.d.ts +36 -0
- package/es/button/button.js +113 -0
- package/es/button/index.d.ts +7 -0
- package/es/button/index.js +6 -0
- package/es/button/style/css.js +2 -0
- package/es/button/style/index.css +332 -0
- package/es/button/style/index.d.ts +2 -0
- package/es/button/style/index.js +2 -0
- package/es/button/style/index.less +97 -0
- package/es/button/style/mixin.less +146 -0
- package/es/card/Card.d.ts +62 -0
- package/es/card/Card.js +241 -0
- package/es/card/Grid.d.ts +13 -0
- package/es/card/Grid.js +42 -0
- package/es/card/Meta.d.ts +16 -0
- package/es/card/Meta.js +62 -0
- package/es/card/index.d.ts +6 -0
- package/es/card/index.js +6 -0
- package/es/card/style/css.js +6 -0
- package/es/card/style/index.css +816 -0
- package/es/card/style/index.d.ts +5 -0
- package/es/card/style/index.js +6 -0
- package/es/card/style/index.less +526 -0
- package/es/card/style/mixins.less +11 -0
- package/es/card/style/size.less +20 -0
- package/es/carousel/carousel.d.ts +32 -0
- package/es/carousel/carousel.js +201 -0
- package/es/carousel/index.d.ts +2 -0
- package/es/carousel/index.js +2 -0
- package/es/carousel/indicator.d.ts +20 -0
- package/es/carousel/indicator.js +97 -0
- package/es/carousel/style/css.js +2 -0
- package/es/carousel/style/index.css +206 -0
- package/es/carousel/style/index.d.ts +2 -0
- package/es/carousel/style/index.js +2 -0
- package/es/carousel/style/index.less +210 -0
- package/es/carousel/style/mixin.less +6 -0
- package/es/carousel/switch.d.ts +8 -0
- package/es/carousel/switch.js +20 -0
- package/es/cascader/Cascader.d.ts +90 -0
- package/es/cascader/Cascader.js +641 -0
- package/es/cascader/MenuItem.d.ts +9 -0
- package/es/cascader/MenuItem.js +77 -0
- package/es/cascader/Menus.d.ts +62 -0
- package/es/cascader/Menus.js +492 -0
- package/es/cascader/index.d.ts +77 -0
- package/es/cascader/index.js +692 -0
- package/es/cascader/placements.d.ts +3 -0
- package/es/cascader/placements.js +35 -0
- package/es/cascader/renderEmpty.d.ts +8 -0
- package/es/cascader/renderEmpty.js +21 -0
- package/es/cascader/style/css.js +5 -0
- package/es/cascader/style/index.css +501 -0
- package/es/cascader/style/index.d.ts +4 -0
- package/es/cascader/style/index.js +5 -0
- package/es/cascader/style/index.less +388 -0
- package/es/cascader/style/mixin.less +35 -0
- package/es/cascader/style/rtl.less +98 -0
- package/es/cascader/utils.d.ts +3 -0
- package/es/cascader/utils.js +36 -0
- package/es/checkbox/BaseCheckbox.d.ts +59 -0
- package/es/checkbox/BaseCheckbox.js +180 -0
- package/es/checkbox/ButtonCheckbox.d.ts +30 -0
- package/es/checkbox/ButtonCheckbox.js +142 -0
- package/es/checkbox/Checkbox.d.ts +37 -0
- package/es/checkbox/Checkbox.js +105 -0
- package/es/checkbox/Group.d.ts +36 -0
- package/es/checkbox/Group.js +164 -0
- package/es/checkbox/GroupButtonCheckbox.d.ts +7 -0
- package/es/checkbox/GroupButtonCheckbox.js +79 -0
- package/es/checkbox/index.d.ts +17 -0
- package/es/checkbox/index.js +12 -0
- package/es/checkbox/style/css.js +2 -0
- package/es/checkbox/style/index.css +446 -0
- package/es/checkbox/style/index.d.ts +2 -0
- package/es/checkbox/style/index.js +2 -0
- package/es/checkbox/style/index.less +6 -0
- package/es/checkbox/style/mixin.less +404 -0
- package/es/col/index.d.ts +3 -0
- package/es/col/index.js +2 -0
- package/es/col/style/css.js +4 -0
- package/es/col/style/index.d.ts +2 -0
- package/es/col/style/index.js +4 -0
- package/es/collapse/Collapse.d.ts +19 -0
- package/es/collapse/Collapse.js +67 -0
- package/es/collapse/CollapsePanel.d.ts +13 -0
- package/es/collapse/CollapsePanel.js +20 -0
- package/es/collapse/index.d.ts +4 -0
- package/es/collapse/index.js +2 -0
- package/es/collapse/style/css.js +2 -0
- package/es/collapse/style/index.css +119 -0
- package/es/collapse/style/index.d.ts +2 -0
- package/es/collapse/style/index.js +2 -0
- package/es/collapse/style/index.less +97 -0
- package/es/collapse/style/minxin.less +9 -0
- package/es/config-provider/SizeContext.d.ts +12 -0
- package/es/config-provider/SizeContext.js +16 -0
- package/es/config-provider/context.d.ts +51 -0
- package/es/config-provider/context.js +46 -0
- package/es/config-provider/index.d.ts +46 -0
- package/es/config-provider/index.js +143 -0
- package/es/config-provider/renderEmpty.d.ts +8 -0
- package/es/config-provider/renderEmpty.js +40 -0
- package/es/config-provider/style/css.js +1 -0
- package/es/config-provider/style/index.css +11 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/config-provider/style/index.js +1 -0
- package/es/config-provider/style/index.less +2 -0
- package/es/date-picker/PickerButton.d.ts +3 -0
- package/es/date-picker/PickerButton.js +9 -0
- package/es/date-picker/PickerTag.d.ts +3 -0
- package/es/date-picker/PickerTag.js +8 -0
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +4 -0
- package/es/date-picker/generatePicker/generateRangePicker.js +147 -0
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/es/date-picker/generatePicker/generateSinglePicker.js +172 -0
- package/es/date-picker/generatePicker/index.d.ts +66 -0
- package/es/date-picker/generatePicker/index.js +85 -0
- package/es/date-picker/index.d.ts +16 -0
- package/es/date-picker/index.js +4 -0
- package/es/date-picker/locale/en_US.d.ts +3 -0
- package/es/date-picker/locale/en_US.js +20 -0
- package/es/date-picker/locale/zh_CN.d.ts +3 -0
- package/es/date-picker/locale/zh_CN.js +22 -0
- package/es/date-picker/src/PanelContext.d.ts +24 -0
- package/es/date-picker/src/PanelContext.js +3 -0
- package/es/date-picker/src/Picker.d.ts +81 -0
- package/es/date-picker/src/Picker.js +470 -0
- package/es/date-picker/src/PickerPanel.d.ts +60 -0
- package/es/date-picker/src/PickerPanel.js +428 -0
- package/es/date-picker/src/PickerTrigger.d.ts +19 -0
- package/es/date-picker/src/PickerTrigger.js +81 -0
- package/es/date-picker/src/RangeContext.d.ts +14 -0
- package/es/date-picker/src/RangeContext.js +3 -0
- package/es/date-picker/src/RangePicker.d.ts +53 -0
- package/es/date-picker/src/RangePicker.js +1028 -0
- package/es/date-picker/src/generate/dateFns.d.ts +3 -0
- package/es/date-picker/src/generate/dateFns.js +140 -0
- package/es/date-picker/src/generate/dayjs.d.ts +4 -0
- package/es/date-picker/src/generate/dayjs.js +170 -0
- package/es/date-picker/src/generate/index.d.ts +35 -0
- package/es/date-picker/src/generate/index.js +1 -0
- package/es/date-picker/src/generate/moment.d.ts +4 -0
- package/es/date-picker/src/generate/moment.js +152 -0
- package/es/date-picker/src/hooks/useCellClassName.d.ts +15 -0
- package/es/date-picker/src/hooks/useCellClassName.js +42 -0
- package/es/date-picker/src/hooks/useHoverValue.d.ts +2 -0
- package/es/date-picker/src/hooks/useHoverValue.js +56 -0
- package/es/date-picker/src/hooks/usePickerInput.d.ts +17 -0
- package/es/date-picker/src/hooks/usePickerInput.js +166 -0
- package/es/date-picker/src/hooks/useRangeDisabled.d.ts +10 -0
- package/es/date-picker/src/hooks/useRangeDisabled.js +89 -0
- package/es/date-picker/src/hooks/useRangeViewDates.d.ts +8 -0
- package/es/date-picker/src/hooks/useRangeViewDates.js +117 -0
- package/es/date-picker/src/hooks/useTextValueMapping.d.ts +5 -0
- package/es/date-picker/src/hooks/useTextValueMapping.js +32 -0
- package/es/date-picker/src/hooks/useValueTexts.d.ts +8 -0
- package/es/date-picker/src/hooks/useValueTexts.js +35 -0
- package/es/date-picker/src/index.d.ts +5 -0
- package/es/date-picker/src/index.js +5 -0
- package/es/date-picker/src/interface.d.ts +88 -0
- package/es/date-picker/src/interface.js +1 -0
- package/es/date-picker/src/locale/en_US.d.ts +3 -0
- package/es/date-picker/src/locale/en_US.js +30 -0
- package/es/date-picker/src/locale/zh_CN.d.ts +3 -0
- package/es/date-picker/src/locale/zh_CN.js +29 -0
- package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +21 -0
- package/es/date-picker/src/panels/DatePanel/DateBody.js +83 -0
- package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +18 -0
- package/es/date-picker/src/panels/DatePanel/DateHeader.js +62 -0
- package/es/date-picker/src/panels/DatePanel/index.d.ts +12 -0
- package/es/date-picker/src/panels/DatePanel/index.js +93 -0
- package/es/date-picker/src/panels/DatetimePanel/index.d.ts +11 -0
- package/es/date-picker/src/panels/DatetimePanel/index.js +73 -0
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +12 -0
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.js +44 -0
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +11 -0
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.js +32 -0
- package/es/date-picker/src/panels/DecadePanel/index.d.ts +7 -0
- package/es/date-picker/src/panels/DecadePanel/index.js +65 -0
- package/es/date-picker/src/panels/Header.d.ts +19 -0
- package/es/date-picker/src/panels/Header.js +58 -0
- package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +17 -0
- package/es/date-picker/src/panels/MonthPanel/MonthBody.js +68 -0
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +14 -0
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.js +39 -0
- package/es/date-picker/src/panels/MonthPanel/index.d.ts +8 -0
- package/es/date-picker/src/panels/MonthPanel/index.js +66 -0
- package/es/date-picker/src/panels/PanelBody.d.ts +22 -0
- package/es/date-picker/src/panels/PanelBody.js +99 -0
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +15 -0
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.js +64 -0
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +14 -0
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.js +39 -0
- package/es/date-picker/src/panels/QuarterPanel/index.d.ts +5 -0
- package/es/date-picker/src/panels/QuarterPanel/index.js +61 -0
- package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +18 -0
- package/es/date-picker/src/panels/TimePanel/TimeBody.js +211 -0
- package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +12 -0
- package/es/date-picker/src/panels/TimePanel/TimeHeader.js +29 -0
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +16 -0
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.js +80 -0
- package/es/date-picker/src/panels/TimePanel/index.d.ts +21 -0
- package/es/date-picker/src/panels/TimePanel/index.js +74 -0
- package/es/date-picker/src/panels/WeekPanel/index.d.ts +5 -0
- package/es/date-picker/src/panels/WeekPanel/index.js +40 -0
- package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +15 -0
- package/es/date-picker/src/panels/YearPanel/YearBody.js +65 -0
- package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +13 -0
- package/es/date-picker/src/panels/YearPanel/YearHeader.js +37 -0
- package/es/date-picker/src/panels/YearPanel/index.d.ts +8 -0
- package/es/date-picker/src/panels/YearPanel/index.js +68 -0
- package/es/date-picker/src/utils/dateUtil.d.ts +33 -0
- package/es/date-picker/src/utils/dateUtil.js +238 -0
- package/es/date-picker/src/utils/getExtraFooter.d.ts +3 -0
- package/es/date-picker/src/utils/getExtraFooter.js +10 -0
- package/es/date-picker/src/utils/getRanges.d.ts +14 -0
- package/es/date-picker/src/utils/getRanges.js +42 -0
- package/es/date-picker/src/utils/miscUtil.d.ts +8 -0
- package/es/date-picker/src/utils/miscUtil.js +46 -0
- package/es/date-picker/src/utils/timeUtil.d.ts +6 -0
- package/es/date-picker/src/utils/timeUtil.js +41 -0
- package/es/date-picker/src/utils/uiUtil.d.ts +22 -0
- package/es/date-picker/src/utils/uiUtil.js +263 -0
- package/es/date-picker/style/css.js +5 -0
- package/es/date-picker/style/index.css +1280 -0
- package/es/date-picker/style/index.d.ts +4 -0
- package/es/date-picker/style/index.js +5 -0
- package/es/date-picker/style/index.less +379 -0
- package/es/date-picker/style/panel.less +972 -0
- package/es/date-picker/style/rtl.less +251 -0
- package/es/date-picker/util.d.ts +4 -0
- package/es/date-picker/util.js +50 -0
- package/es/dialog-box/dialogbox.d.ts +52 -0
- package/es/dialog-box/dialogbox.js +150 -0
- package/es/dialog-box/index.d.ts +2 -0
- package/es/dialog-box/index.js +2 -0
- package/es/dialog-box/style/css.js +2 -0
- package/es/dialog-box/style/index.css +188 -0
- package/es/dialog-box/style/index.d.ts +2 -0
- package/es/dialog-box/style/index.js +2 -0
- package/es/dialog-box/style/index.less +147 -0
- package/es/dialog-box/style/mixin.less +48 -0
- package/es/drawer/index.d.ts +46 -0
- package/es/drawer/index.js +285 -0
- package/es/drawer/style/css.js +2 -0
- package/es/drawer/style/drawer.less +282 -0
- package/es/drawer/style/index.css +263 -0
- package/es/drawer/style/index.d.ts +2 -0
- package/es/drawer/style/index.js +2 -0
- package/es/drawer/style/index.less +3 -0
- package/es/dropdown/dropdown-button.d.ts +22 -0
- package/es/dropdown/dropdown-button.js +74 -0
- package/es/dropdown/dropdown.d.ts +36 -0
- package/es/dropdown/dropdown.js +130 -0
- package/es/dropdown/index.d.ts +6 -0
- package/es/dropdown/index.js +6 -0
- package/es/dropdown/rc-dropdown/Dropdown.d.ts +30 -0
- package/es/dropdown/rc-dropdown/Dropdown.js +179 -0
- package/es/dropdown/rc-dropdown/index.d.ts +1 -0
- package/es/dropdown/rc-dropdown/index.js +1 -0
- package/es/dropdown/rc-dropdown/placements.d.ts +88 -0
- package/es/dropdown/rc-dropdown/placements.js +66 -0
- package/es/dropdown/style/css.js +2 -0
- package/es/dropdown/style/index.css +283 -0
- package/es/dropdown/style/index.d.ts +2 -0
- package/es/dropdown/style/index.js +2 -0
- package/es/dropdown/style/index.less +182 -0
- package/es/empty/index.d.ts +22 -0
- package/es/empty/index.js +76 -0
- package/es/empty/style/css.js +2 -0
- package/es/empty/style/index.css +81 -0
- package/es/empty/style/index.d.ts +2 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/index.less +137 -0
- package/es/flow/index.d.ts +75 -0
- package/es/flow/index.js +50 -0
- package/es/form/ErrorList.d.ts +13 -0
- package/es/form/ErrorList.js +70 -0
- package/es/form/Form.d.ts +38 -0
- package/es/form/Form.js +138 -0
- package/es/form/FormItem.d.ts +34 -0
- package/es/form/FormItem.js +327 -0
- package/es/form/FormItemInput.d.ts +32 -0
- package/es/form/FormItemInput.js +86 -0
- package/es/form/FormItemLabel.d.ts +28 -0
- package/es/form/FormItemLabel.js +135 -0
- package/es/form/FormList.d.ts +27 -0
- package/es/form/FormList.js +53 -0
- package/es/form/context.d.ts +36 -0
- package/es/form/context.js +22 -0
- package/es/form/hooks/useCacheErrors.d.ts +7 -0
- package/es/form/hooks/useCacheErrors.js +46 -0
- package/es/form/hooks/useForm.d.ts +17 -0
- package/es/form/hooks/useForm.js +59 -0
- package/es/form/hooks/useFrameState.d.ts +7 -0
- package/es/form/hooks/useFrameState.js +48 -0
- package/es/form/hooks/useItemRef.d.ts +7 -0
- package/es/form/hooks/useItemRef.js +30 -0
- package/es/form/index.d.ts +23 -0
- package/es/form/index.js +22 -0
- package/es/form/interface.d.ts +7 -0
- package/es/form/interface.js +5 -0
- package/es/form/style/cols.less +18 -0
- package/es/form/style/components.less +85 -0
- package/es/form/style/css.js +8 -0
- package/es/form/style/horizontal.less +28 -0
- package/es/form/style/index.css +996 -0
- package/es/form/style/index.d.ts +7 -0
- package/es/form/style/index.js +8 -0
- package/es/form/style/index.less +276 -0
- package/es/form/style/inline.less +40 -0
- package/es/form/style/mixin.less +139 -0
- package/es/form/style/rtl.less +179 -0
- package/es/form/style/status.less +280 -0
- package/es/form/style/vertical.less +94 -0
- package/es/form/util.d.ts +8 -0
- package/es/form/util.js +30 -0
- package/es/grid/RowContext.d.ts +7 -0
- package/es/grid/RowContext.js +3 -0
- package/es/grid/col.d.ts +28 -0
- package/es/grid/col.js +108 -0
- package/es/grid/hooks/useBreakpoint.d.ts +3 -0
- package/es/grid/hooks/useBreakpoint.js +22 -0
- package/es/grid/index.d.ts +10 -0
- package/es/grid/index.js +7 -0
- package/es/grid/row.d.ts +14 -0
- package/es/grid/row.js +124 -0
- package/es/grid/style/css.js +2 -0
- package/es/grid/style/index.css +5188 -0
- package/es/grid/style/index.d.ts +2 -0
- package/es/grid/style/index.js +2 -0
- package/es/grid/style/index.less +118 -0
- package/es/grid/style/mixin.less +53 -0
- package/es/grid/style/rtl.less +68 -0
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.js +10 -0
- package/es/index.d.ts +50 -0
- package/es/index.js +54 -0
- package/es/input/Input.d.ts +48 -0
- package/es/input/Input.js +314 -0
- package/es/input/Label.d.ts +8 -0
- package/es/input/Label.js +128 -0
- package/es/input/MultiSelectInput.d.ts +11 -0
- package/es/input/MultiSelectInput.js +30 -0
- package/es/input/Password.d.ts +24 -0
- package/es/input/Password.js +149 -0
- package/es/input/TextArea.d.ts +21 -0
- package/es/input/TextArea.js +161 -0
- package/es/input/index.d.ts +15 -0
- package/es/input/index.js +11 -0
- package/es/input/style/css.js +2 -0
- package/es/input/style/index.css +886 -0
- package/es/input/style/index.d.ts +2 -0
- package/es/input/style/index.js +2 -0
- package/es/input/style/index.less +379 -0
- package/es/input/style/mixin.less +169 -0
- package/es/input-number/index.d.ts +26 -0
- package/es/input-number/index.js +89 -0
- package/es/input-number/src/InputNumber.d.ts +46 -0
- package/es/input-number/src/InputNumber.js +509 -0
- package/es/input-number/src/StepHandler.d.ts +11 -0
- package/es/input-number/src/StepHandler.js +92 -0
- package/es/input-number/src/hooks/useCursor.d.ts +5 -0
- package/es/input-number/src/hooks/useCursor.js +69 -0
- package/es/input-number/src/hooks/useFrame.d.ts +5 -0
- package/es/input-number/src/hooks/useFrame.js +23 -0
- package/es/input-number/src/hooks/useLayoutEffect.d.ts +2 -0
- package/es/input-number/src/hooks/useLayoutEffect.js +3 -0
- package/es/input-number/src/hooks/useUpdateEffect.d.ts +4 -0
- package/es/input-number/src/hooks/useUpdateEffect.js +17 -0
- package/es/input-number/src/index.d.ts +3 -0
- package/es/input-number/src/index.js +2 -0
- package/es/input-number/src/utils/MiniDecimal.d.ts +75 -0
- package/es/input-number/src/utils/MiniDecimal.js +333 -0
- package/es/input-number/src/utils/numberUtil.d.ts +22 -0
- package/es/input-number/src/utils/numberUtil.js +103 -0
- package/es/input-number/src/utils/supportUtil.d.ts +1 -0
- package/es/input-number/src/utils/supportUtil.js +3 -0
- package/es/input-number/style/css.js +2 -0
- package/es/input-number/style/index.css +503 -0
- package/es/input-number/style/index.d.ts +2 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/style/index.less +224 -0
- package/es/input-number/style/rtl.less +105 -0
- package/es/link/index.d.ts +6 -0
- package/es/link/index.js +6 -0
- package/es/link/link.d.ts +29 -0
- package/es/link/link.js +54 -0
- package/es/link/style/css.js +2 -0
- package/es/link/style/index.css +75 -0
- package/es/link/style/index.d.ts +2 -0
- package/es/link/style/index.js +2 -0
- package/es/link/style/index.less +37 -0
- package/es/loading/icon.d.ts +9 -0
- package/es/loading/icon.js +61 -0
- package/es/loading/index.d.ts +18 -0
- package/es/loading/index.js +45 -0
- package/es/loading/style/css.js +2 -0
- package/es/loading/style/index.css +287 -0
- package/es/loading/style/index.d.ts +2 -0
- package/es/loading/style/index.js +2 -0
- package/es/loading/style/index.less +191 -0
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +2 -0
- package/es/locale/en_US.js +125 -0
- package/es/locale/zh_CN.d.ts +2 -0
- package/es/locale/zh_CN.js +129 -0
- package/es/locale-provider/LocaleReceiver.d.ts +31 -0
- package/es/locale-provider/LocaleReceiver.js +72 -0
- package/es/locale-provider/context.d.ts +10 -0
- package/es/locale-provider/context.js +7 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/index.d.ts +31 -0
- package/es/locale-provider/index.js +52 -0
- package/es/menu/MenuContext.d.ts +11 -0
- package/es/menu/MenuContext.js +10 -0
- package/es/menu/MenuHead.d.ts +15 -0
- package/es/menu/MenuHead.js +64 -0
- package/es/menu/MenuItem.d.ts +14 -0
- package/es/menu/MenuItem.js +74 -0
- package/es/menu/SubMenu.d.ts +15 -0
- package/es/menu/SubMenu.js +64 -0
- package/es/menu/baseMenu.d.ts +14 -0
- package/es/menu/baseMenu.js +53 -0
- package/es/menu/globalSilderBar.d.ts +14 -0
- package/es/menu/globalSilderBar.js +94 -0
- package/es/menu/header.d.ts +30 -0
- package/es/menu/header.js +71 -0
- package/es/menu/index.d.ts +6 -0
- package/es/menu/index.js +6 -0
- package/es/menu/menu.d.ts +26 -0
- package/es/menu/menu.js +82 -0
- package/es/menu/rc-menu/Divider.d.ts +6 -0
- package/es/menu/rc-menu/Divider.js +22 -0
- package/es/menu/rc-menu/Icon.d.ts +9 -0
- package/es/menu/rc-menu/Icon.js +17 -0
- package/es/menu/rc-menu/Menu.d.ts +46 -0
- package/es/menu/rc-menu/Menu.js +423 -0
- package/es/menu/rc-menu/MenuItem.d.ts +18 -0
- package/es/menu/rc-menu/MenuItem.js +220 -0
- package/es/menu/rc-menu/MenuItemGroup.d.ts +11 -0
- package/es/menu/rc-menu/MenuItemGroup.js +60 -0
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +8 -0
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.js +81 -0
- package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +14 -0
- package/es/menu/rc-menu/SubMenu/PopupTrigger.js +83 -0
- package/es/menu/rc-menu/SubMenu/SubMenuList.d.ts +6 -0
- package/es/menu/rc-menu/SubMenu/SubMenuList.js +39 -0
- package/es/menu/rc-menu/SubMenu/index.d.ts +28 -0
- package/es/menu/rc-menu/SubMenu/index.js +308 -0
- package/es/menu/rc-menu/context/IdContext.d.ts +7 -0
- package/es/menu/rc-menu/context/IdContext.js +17 -0
- package/es/menu/rc-menu/context/MenuContext.d.ts +37 -0
- package/es/menu/rc-menu/context/MenuContext.js +48 -0
- package/es/menu/rc-menu/context/PathContext.d.ts +13 -0
- package/es/menu/rc-menu/context/PathContext.js +16 -0
- package/es/menu/rc-menu/hooks/useAccessibility.d.ts +3 -0
- package/es/menu/rc-menu/hooks/useAccessibility.js +279 -0
- package/es/menu/rc-menu/hooks/useActive.d.ts +9 -0
- package/es/menu/rc-menu/hooks/useActive.js +32 -0
- package/es/menu/rc-menu/hooks/useDirectionStyle.d.ts +2 -0
- package/es/menu/rc-menu/hooks/useDirectionStyle.js +19 -0
- package/es/menu/rc-menu/hooks/useKeyRecords.d.ts +10 -0
- package/es/menu/rc-menu/hooks/useKeyRecords.js +125 -0
- package/es/menu/rc-menu/hooks/useMemoCallback.d.ts +5 -0
- package/es/menu/rc-menu/hooks/useMemoCallback.js +22 -0
- package/es/menu/rc-menu/hooks/useUUID.d.ts +1 -0
- package/es/menu/rc-menu/hooks/useUUID.js +20 -0
- package/es/menu/rc-menu/index.d.ts +17 -0
- package/es/menu/rc-menu/index.js +16 -0
- package/es/menu/rc-menu/interface.d.ts +31 -0
- package/es/menu/rc-menu/interface.js +1 -0
- package/es/menu/rc-menu/placements.d.ts +77 -0
- package/es/menu/rc-menu/placements.js +54 -0
- package/es/menu/rc-menu/utils/motionUtil.d.ts +2 -0
- package/es/menu/rc-menu/utils/motionUtil.js +11 -0
- package/es/menu/rc-menu/utils/nodeUtil.d.ts +2 -0
- package/es/menu/rc-menu/utils/nodeUtil.js +31 -0
- package/es/menu/rc-menu/utils/timeUtil.d.ts +1 -0
- package/es/menu/rc-menu/utils/timeUtil.js +4 -0
- package/es/menu/rc-menu/utils/warnUtil.d.ts +8 -0
- package/es/menu/rc-menu/utils/warnUtil.js +31 -0
- package/es/menu/style/config.less +5 -0
- package/es/menu/style/css.js +5 -0
- package/es/menu/style/header.less +76 -0
- package/es/menu/style/index.css +746 -0
- package/es/menu/style/index.d.ts +3 -0
- package/es/menu/style/index.js +5 -0
- package/es/menu/style/index.less +533 -0
- package/es/menu/style/sider.less +109 -0
- package/es/modal/Modal.d.ts +50 -0
- package/es/modal/Modal.js +101 -0
- package/es/modal/index.d.ts +2 -0
- package/es/modal/index.js +2 -0
- package/es/modal/style/css.js +2 -0
- package/es/modal/style/index.css +152 -0
- package/es/modal/style/index.d.ts +2 -0
- package/es/modal/style/index.js +2 -0
- package/es/modal/style/index.less +125 -0
- package/es/modal/style/mixin.less +47 -0
- package/es/pagination/index.d.ts +4 -0
- package/es/pagination/index.js +2 -0
- package/es/pagination/locale/zh_CN.d.ts +2 -0
- package/es/pagination/locale/zh_CN.js +15 -0
- package/es/pagination/pagination.d.ts +14 -0
- package/es/pagination/pagination.js +107 -0
- package/es/pagination/rc-pagination/Goto.d.ts +19 -0
- package/es/pagination/rc-pagination/Goto.js +107 -0
- package/es/pagination/rc-pagination/Interface.d.ts +30 -0
- package/es/pagination/rc-pagination/Interface.js +1 -0
- package/es/pagination/rc-pagination/KeyCode.d.ts +15 -0
- package/es/pagination/rc-pagination/KeyCode.js +15 -0
- package/es/pagination/rc-pagination/Options.d.ts +24 -0
- package/es/pagination/rc-pagination/Options.js +81 -0
- package/es/pagination/rc-pagination/Pager.d.ts +21 -0
- package/es/pagination/rc-pagination/Pager.js +43 -0
- package/es/pagination/rc-pagination/Pagination.d.ts +24 -0
- package/es/pagination/rc-pagination/Pagination.js +608 -0
- package/es/pagination/rc-pagination/index.d.ts +2 -0
- package/es/pagination/rc-pagination/index.js +2 -0
- package/es/pagination/rc-pagination/locale/gl_ES.d.ts +13 -0
- package/es/pagination/rc-pagination/locale/gl_ES.js +14 -0
- package/es/pagination/style/css.js +2 -0
- package/es/pagination/style/index.css +774 -0
- package/es/pagination/style/index.d.ts +2 -0
- package/es/pagination/style/index.js +2 -0
- package/es/pagination/style/index.less +278 -0
- package/es/pagination/style/mix.less +31 -0
- package/es/popconfirm/index.d.ts +22 -0
- package/es/popconfirm/index.js +143 -0
- package/es/popconfirm/style/css.js +2 -0
- package/es/popconfirm/style/index.css +17 -0
- package/es/popconfirm/style/index.d.ts +2 -0
- package/es/popconfirm/style/index.js +2 -0
- package/es/popconfirm/style/index.less +14 -0
- package/es/popover/index.d.ts +13 -0
- package/es/popover/index.js +60 -0
- package/es/popover/style/css.js +2 -0
- package/es/popover/style/customize.less +3 -0
- package/es/popover/style/index.css +215 -0
- package/es/popover/style/index.d.ts +2 -0
- package/es/popover/style/index.js +2 -0
- package/es/popover/style/index.less +215 -0
- package/es/popover/style/rtl.less +33 -0
- package/es/progress/CircleProgress.d.ts +8 -0
- package/es/progress/CircleProgress.js +124 -0
- package/es/progress/LineProgress.d.ts +8 -0
- package/es/progress/LineProgress.js +98 -0
- package/es/progress/common/index.d.ts +16 -0
- package/es/progress/common/index.js +24 -0
- package/es/progress/index.d.ts +9 -0
- package/es/progress/index.js +86 -0
- package/es/progress/interface.d.ts +39 -0
- package/es/progress/interface.js +7 -0
- package/es/progress/style/circleProgress.less +39 -0
- package/es/progress/style/common.less +34 -0
- package/es/progress/style/css.js +2 -0
- package/es/progress/style/index.css +150 -0
- package/es/progress/style/index.d.ts +2 -0
- package/es/progress/style/index.js +2 -0
- package/es/progress/style/index.less +4 -0
- package/es/progress/style/lineProgress.less +74 -0
- package/es/radio/Radio.d.ts +18 -0
- package/es/radio/Radio.js +79 -0
- package/es/radio/RadioButton.d.ts +3 -0
- package/es/radio/RadioButton.js +61 -0
- package/es/radio/RadioGroup.d.ts +14 -0
- package/es/radio/RadioGroup.js +51 -0
- package/es/radio/context.d.ts +9 -0
- package/es/radio/context.js +3 -0
- package/es/radio/index.d.ts +2 -0
- package/es/radio/index.js +2 -0
- package/es/radio/style/css.js +2 -0
- package/es/radio/style/index.css +273 -0
- package/es/radio/style/index.d.ts +2 -0
- package/es/radio/style/index.js +2 -0
- package/es/radio/style/index.less +197 -0
- package/es/radio/style/mixin.less +16 -0
- package/es/rate/index.d.ts +2 -0
- package/es/rate/index.js +2 -0
- package/es/rate/interface.d.ts +20 -0
- package/es/rate/interface.js +2 -0
- package/es/rate/rate.d.ts +9 -0
- package/es/rate/rate.js +292 -0
- package/es/rate/style/css.js +2 -0
- package/es/rate/style/index.css +181 -0
- package/es/rate/style/index.d.ts +2 -0
- package/es/rate/style/index.js +2 -0
- package/es/rate/style/index.less +167 -0
- package/es/row/index.d.ts +3 -0
- package/es/row/index.js +2 -0
- package/es/row/style/css.js +4 -0
- package/es/row/style/index.d.ts +2 -0
- package/es/row/style/index.js +4 -0
- package/es/search/Search.d.ts +14 -0
- package/es/search/Search.js +164 -0
- package/es/search/index.d.ts +2 -0
- package/es/search/index.js +2 -0
- package/es/search/style/css.js +2 -0
- package/es/search/style/index.css +146 -0
- package/es/search/style/index.d.ts +2 -0
- package/es/search/style/index.js +2 -0
- package/es/search/style/index.less +97 -0
- package/es/select/index.d.ts +38 -0
- package/es/select/index.js +112 -0
- package/es/select/src/OptGroup.d.ts +12 -0
- package/es/select/src/OptGroup.js +7 -0
- package/es/select/src/Option.d.ts +14 -0
- package/es/select/src/Option.js +7 -0
- package/es/select/src/OptionList.d.ts +41 -0
- package/es/select/src/OptionList.js +531 -0
- package/es/select/src/Select.d.ts +50 -0
- package/es/select/src/Select.js +102 -0
- package/es/select/src/SelectTrigger.d.ts +27 -0
- package/es/select/src/SelectTrigger.js +138 -0
- package/es/select/src/Selector/Input.d.ts +26 -0
- package/es/select/src/Selector/Input.js +101 -0
- package/es/select/src/Selector/MultipleSelector.d.ts +19 -0
- package/es/select/src/Selector/MultipleSelector.js +194 -0
- package/es/select/src/Selector/SingleSelector.d.ts +9 -0
- package/es/select/src/Selector/SingleSelector.js +89 -0
- package/es/select/src/Selector/index.d.ts +82 -0
- package/es/select/src/Selector/index.js +173 -0
- package/es/select/src/TransBtn.d.ts +13 -0
- package/es/select/src/TransBtn.js +44 -0
- package/es/select/src/generate.d.ts +147 -0
- package/es/select/src/generate.js +913 -0
- package/es/select/src/hooks/useCacheDisplayValue.d.ts +2 -0
- package/es/select/src/hooks/useCacheDisplayValue.js +31 -0
- package/es/select/src/hooks/useCacheOptions.d.ts +8 -0
- package/es/select/src/hooks/useCacheOptions.js +21 -0
- package/es/select/src/hooks/useDelayReset.d.ts +5 -0
- package/es/select/src/hooks/useDelayReset.js +38 -0
- package/es/select/src/hooks/useLayoutEffect.d.ts +5 -0
- package/es/select/src/hooks/useLayoutEffect.js +17 -0
- package/es/select/src/hooks/useLock.d.ts +7 -0
- package/es/select/src/hooks/useLock.js +34 -0
- package/es/select/src/hooks/useSelectTriggerControl.d.ts +1 -0
- package/es/select/src/hooks/useSelectTriggerControl.js +32 -0
- package/es/select/src/index.d.ts +10 -0
- package/es/select/src/index.js +9 -0
- package/es/select/src/interface/generator.d.ts +45 -0
- package/es/select/src/interface/generator.js +1 -0
- package/es/select/src/interface/index.d.ts +42 -0
- package/es/select/src/interface/index.js +1 -0
- package/es/select/src/utils/commonUtil.d.ts +30 -0
- package/es/select/src/utils/commonUtil.js +105 -0
- package/es/select/src/utils/legacyUtil.d.ts +3 -0
- package/es/select/src/utils/legacyUtil.js +61 -0
- package/es/select/src/utils/valueUtil.d.ts +25 -0
- package/es/select/src/utils/valueUtil.js +273 -0
- package/es/select/src/utils/warningPropsUtil.d.ts +3 -0
- package/es/select/src/utils/warningPropsUtil.js +111 -0
- package/es/select/style/css.js +4 -0
- package/es/select/style/index.css +717 -0
- package/es/select/style/index.d.ts +3 -0
- package/es/select/style/index.js +4 -0
- package/es/select/style/index.less +352 -0
- package/es/select/style/mixin.less +12 -0
- package/es/select/style/multiple.less +262 -0
- package/es/select/style/single.less +185 -0
- package/es/select/utils/iconUtil.d.ts +16 -0
- package/es/select/utils/iconUtil.js +74 -0
- package/es/slider/SliderTooltip.d.ts +4 -0
- package/es/slider/SliderTooltip.js +38 -0
- package/es/slider/index.d.ts +4 -0
- package/es/slider/index.js +151 -0
- package/es/slider/interface.d.ts +63 -0
- package/es/slider/interface.js +1 -0
- package/es/slider/style/css.js +2 -0
- package/es/slider/style/index.css +309 -0
- package/es/slider/style/index.d.ts +2 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/style/index.less +208 -0
- package/es/steps/index.d.ts +38 -0
- package/es/steps/index.js +71 -0
- package/es/steps/interface.d.ts +6 -0
- package/es/steps/interface.js +1 -0
- package/es/steps/src/step.d.ts +30 -0
- package/es/steps/src/step.js +199 -0
- package/es/steps/src/steps.d.ts +51 -0
- package/es/steps/src/steps.js +136 -0
- package/es/steps/style/css.js +4 -0
- package/es/steps/style/custom-icon.less +37 -0
- package/es/steps/style/index.css +876 -0
- package/es/steps/style/index.d.ts +2 -0
- package/es/steps/style/index.js +4 -0
- package/es/steps/style/index.less +267 -0
- package/es/steps/style/label-placement.less +40 -0
- package/es/steps/style/nav.less +122 -0
- package/es/steps/style/progress-dot.less +107 -0
- package/es/steps/style/progress.less +23 -0
- package/es/steps/style/rtl.less +244 -0
- package/es/steps/style/small.less +58 -0
- package/es/steps/style/vertical.less +81 -0
- package/es/style/core/global.less +63 -0
- package/es/style/core/index.less +2 -0
- package/es/style/core/motion/fade.less +33 -0
- package/es/style/core/motion/slide.less +122 -0
- package/es/style/core/motion/zoom.less +168 -0
- package/es/style/core/motion.less +3 -0
- package/es/style/css.js +1 -0
- package/es/style/index.css +1072 -0
- package/es/style/index.d.ts +1 -0
- package/es/style/index.js +1 -0
- package/es/style/index.less +3 -0
- package/es/style/mixins/index.less +3 -0
- package/es/style/mixins/motion.less +31 -0
- package/es/style/mixins/utils.less +83 -0
- package/es/style/themes/dark/colors.less +72 -0
- package/es/style/themes/dark/components/button.less +31 -0
- package/es/style/themes/dark/components/checkbox.less +1 -0
- package/es/style/themes/dark/components/index.less +3 -0
- package/es/style/themes/dark/components/modal.less +47 -0
- package/es/style/themes/dark/config.less +252 -0
- package/es/style/themes/dark/index.less +3 -0
- package/es/style/themes/default/colors.less +73 -0
- package/es/style/themes/default/components/affix.less +4 -0
- package/es/style/themes/default/components/alert.less +28 -0
- package/es/style/themes/default/components/anchor.less +21 -0
- package/es/style/themes/default/components/backtop.less +9 -0
- package/es/style/themes/default/components/badge.less +28 -0
- package/es/style/themes/default/components/breadcrumb.less +10 -0
- package/es/style/themes/default/components/button.less +45 -0
- package/es/style/themes/default/components/card.less +82 -0
- package/es/style/themes/default/components/carousel.less +35 -0
- package/es/style/themes/default/components/cascader.less +55 -0
- package/es/style/themes/default/components/checkbox.less +26 -0
- package/es/style/themes/default/components/collapse.less +19 -0
- package/es/style/themes/default/components/datePicker.less +36 -0
- package/es/style/themes/default/components/dialogbox.less +4 -0
- package/es/style/themes/default/components/drawer.less +11 -0
- package/es/style/themes/default/components/dropdown.less +34 -0
- package/es/style/themes/default/components/empty.less +4 -0
- package/es/style/themes/default/components/form.less +64 -0
- package/es/style/themes/default/components/grid.less +5 -0
- package/es/style/themes/default/components/index.less +45 -0
- package/es/style/themes/default/components/input.less +57 -0
- package/es/style/themes/default/components/inputNumber.less +23 -0
- package/es/style/themes/default/components/link.less +13 -0
- package/es/style/themes/default/components/loading.less +18 -0
- package/es/style/themes/default/components/menu.less +64 -0
- package/es/style/themes/default/components/modal.less +55 -0
- package/es/style/themes/default/components/pagination.less +51 -0
- package/es/style/themes/default/components/popconfirm.less +3 -0
- package/es/style/themes/default/components/popover.less +40 -0
- package/es/style/themes/default/components/progress.less +13 -0
- package/es/style/themes/default/components/radio.less +32 -0
- package/es/style/themes/default/components/rate.less +26 -0
- package/es/style/themes/default/components/search.less +18 -0
- package/es/style/themes/default/components/select.less +107 -0
- package/es/style/themes/default/components/slider.less +28 -0
- package/es/style/themes/default/components/steps.less +53 -0
- package/es/style/themes/default/components/switch.less +24 -0
- package/es/style/themes/default/components/table.less +37 -0
- package/es/style/themes/default/components/tabs.less +37 -0
- package/es/style/themes/default/components/tag.less +32 -0
- package/es/style/themes/default/components/timePicker.less +28 -0
- package/es/style/themes/default/components/timeline.less +64 -0
- package/es/style/themes/default/components/toast.less +9 -0
- package/es/style/themes/default/components/transfer.less +8 -0
- package/es/style/themes/default/components/tree.less +20 -0
- package/es/style/themes/default/components/upload.less +13 -0
- package/es/style/themes/default/config.less +1184 -0
- package/es/style/themes/default/index.less +3 -0
- package/es/style/themes/index.less +1 -0
- package/es/switch/index.d.ts +4 -0
- package/es/switch/index.js +76 -0
- package/es/switch/interface.d.ts +18 -0
- package/es/switch/interface.js +1 -0
- package/es/switch/style/css.js +2 -0
- package/es/switch/style/index.css +209 -0
- package/es/switch/style/index.d.ts +2 -0
- package/es/switch/style/index.js +2 -0
- package/es/switch/style/index.less +142 -0
- package/es/table/Column.d.ts +7 -0
- package/es/table/Column.js +9 -0
- package/es/table/ColumnGroup.d.ts +9 -0
- package/es/table/ColumnGroup.js +9 -0
- package/es/table/ExpandIcon.d.ts +11 -0
- package/es/table/ExpandIcon.js +29 -0
- package/es/table/Space.d.ts +8 -0
- package/es/table/Space.js +27 -0
- package/es/table/Table.d.ts +50 -0
- package/es/table/Table.js +423 -0
- package/es/table/baseTable/Body/BodyRow.d.ts +26 -0
- package/es/table/baseTable/Body/BodyRow.js +175 -0
- package/es/table/baseTable/Body/ExpandedRow.d.ts +14 -0
- package/es/table/baseTable/Body/ExpandedRow.js +54 -0
- package/es/table/baseTable/Body/MeasureCell.d.ts +6 -0
- package/es/table/baseTable/Body/MeasureCell.js +27 -0
- package/es/table/baseTable/Body/MeasureRow.d.ts +7 -0
- package/es/table/baseTable/Body/MeasureRow.js +53 -0
- package/es/table/baseTable/Body/index.d.ts +15 -0
- package/es/table/baseTable/Body/index.js +114 -0
- package/es/table/baseTable/Cell/index.d.ts +39 -0
- package/es/table/baseTable/Cell/index.js +247 -0
- package/es/table/baseTable/ColGroup.d.ts +9 -0
- package/es/table/baseTable/ColGroup.js +52 -0
- package/es/table/baseTable/FixedHolder/index.d.ts +21 -0
- package/es/table/baseTable/FixedHolder/index.js +159 -0
- package/es/table/baseTable/Footer/Cell.d.ts +11 -0
- package/es/table/baseTable/Footer/Cell.js +42 -0
- package/es/table/baseTable/Footer/Row.d.ts +7 -0
- package/es/table/baseTable/Footer/Row.js +20 -0
- package/es/table/baseTable/Footer/Summary.d.ts +14 -0
- package/es/table/baseTable/Footer/Summary.js +14 -0
- package/es/table/baseTable/Footer/index.d.ts +19 -0
- package/es/table/baseTable/Footer/index.js +29 -0
- package/es/table/baseTable/Header/Header.d.ts +10 -0
- package/es/table/baseTable/Header/Header.js +102 -0
- package/es/table/baseTable/Header/HeaderRow.d.ts +16 -0
- package/es/table/baseTable/Header/HeaderRow.js +55 -0
- package/es/table/baseTable/Panel/index.d.ts +7 -0
- package/es/table/baseTable/Panel/index.js +11 -0
- package/es/table/baseTable/Table.d.ts +90 -0
- package/es/table/baseTable/Table.js +697 -0
- package/es/table/baseTable/constant.d.ts +1 -0
- package/es/table/baseTable/constant.js +1 -0
- package/es/table/baseTable/context/BodyContext.d.ts +18 -0
- package/es/table/baseTable/context/BodyContext.js +3 -0
- package/es/table/baseTable/context/ExpandedRowContext.d.ts +9 -0
- package/es/table/baseTable/context/ExpandedRowContext.js +3 -0
- package/es/table/baseTable/context/HoverContext.d.ts +8 -0
- package/es/table/baseTable/context/HoverContext.js +3 -0
- package/es/table/baseTable/context/ResizeContext.d.ts +6 -0
- package/es/table/baseTable/context/ResizeContext.js +3 -0
- package/es/table/baseTable/context/StickyContext.d.ts +3 -0
- package/es/table/baseTable/context/StickyContext.js +4 -0
- package/es/table/baseTable/context/TableContext.d.ts +13 -0
- package/es/table/baseTable/context/TableContext.js +3 -0
- package/es/table/baseTable/hooks/useColumns.d.ts +23 -0
- package/es/table/baseTable/hooks/useColumns.js +253 -0
- package/es/table/baseTable/hooks/useFlattenRecords.d.ts +17 -0
- package/es/table/baseTable/hooks/useFlattenRecords.js +59 -0
- package/es/table/baseTable/hooks/useFrame.d.ts +7 -0
- package/es/table/baseTable/hooks/useFrame.js +72 -0
- package/es/table/baseTable/hooks/useSticky.d.ts +10 -0
- package/es/table/baseTable/hooks/useSticky.js +33 -0
- package/es/table/baseTable/hooks/useStickyOffsets.d.ts +6 -0
- package/es/table/baseTable/hooks/useStickyOffsets.js +42 -0
- package/es/table/baseTable/index.d.ts +7 -0
- package/es/table/baseTable/index.js +7 -0
- package/es/table/baseTable/interface.d.ts +149 -0
- package/es/table/baseTable/interface.js +1 -0
- package/es/table/baseTable/stickyScrollBar.d.ts +11 -0
- package/es/table/baseTable/stickyScrollBar.js +180 -0
- package/es/table/baseTable/sugar/Column.d.ts +10 -0
- package/es/table/baseTable/sugar/Column.js +12 -0
- package/es/table/baseTable/sugar/ColumnGroup.d.ts +12 -0
- package/es/table/baseTable/sugar/ColumnGroup.js +12 -0
- package/es/table/baseTable/utils/expandUtil.d.ts +4 -0
- package/es/table/baseTable/utils/expandUtil.js +42 -0
- package/es/table/baseTable/utils/fixUtil.d.ts +13 -0
- package/es/table/baseTable/utils/fixUtil.js +45 -0
- package/es/table/baseTable/utils/legacyUtil.d.ts +5 -0
- package/es/table/baseTable/utils/legacyUtil.js +41 -0
- package/es/table/baseTable/utils/valueUtil.d.ts +11 -0
- package/es/table/baseTable/utils/valueUtil.js +83 -0
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +20 -0
- package/es/table/hooks/useFilter/FilterDropdown.js +382 -0
- package/es/table/hooks/useFilter/FilterSearch.d.ts +11 -0
- package/es/table/hooks/useFilter/FilterSearch.js +29 -0
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +7 -0
- package/es/table/hooks/useFilter/FilterWrapper.js +12 -0
- package/es/table/hooks/useFilter/index.d.ts +23 -0
- package/es/table/hooks/useFilter/index.js +207 -0
- package/es/table/hooks/useLazyKVMap.d.ts +2 -0
- package/es/table/hooks/useLazyKVMap.js +36 -0
- package/es/table/hooks/usePagination.d.ts +4 -0
- package/es/table/hooks/usePagination.js +110 -0
- package/es/table/hooks/useSelection.d.ts +19 -0
- package/es/table/hooks/useSelection.js +600 -0
- package/es/table/hooks/useSorter.d.ts +24 -0
- package/es/table/hooks/useSorter.js +343 -0
- package/es/table/hooks/useTitleColumns.d.ts +2 -0
- package/es/table/hooks/useTitleColumns.js +24 -0
- package/es/table/index.d.ts +5 -0
- package/es/table/index.js +2 -0
- package/es/table/interface.d.ts +140 -0
- package/es/table/interface.js +2 -0
- package/es/table/style/base.less +238 -0
- package/es/table/style/bordered.less +135 -0
- package/es/table/style/css.js +15 -0
- package/es/table/style/index.css +1115 -0
- package/es/table/style/index.d.ts +12 -0
- package/es/table/style/index.js +15 -0
- package/es/table/style/index.less +798 -0
- package/es/table/style/radius.less +45 -0
- package/es/table/style/rtl.less +168 -0
- package/es/table/style/size.less +46 -0
- package/es/table/style/space.less +5 -0
- package/es/table/util.d.ts +4 -0
- package/es/table/util.js +21 -0
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +2 -0
- package/es/tabs/src/TabContext.d.ts +8 -0
- package/es/tabs/src/TabContext.js +2 -0
- package/es/tabs/src/TabNavList/AddButton.d.ts +10 -0
- package/es/tabs/src/TabNavList/AddButton.js +27 -0
- package/es/tabs/src/TabNavList/OperationNode.d.ts +21 -0
- package/es/tabs/src/TabNavList/OperationNode.js +234 -0
- package/es/tabs/src/TabNavList/TabNode.d.ts +23 -0
- package/es/tabs/src/TabNavList/TabNode.js +190 -0
- package/es/tabs/src/TabNavList/index.d.ts +25 -0
- package/es/tabs/src/TabNavList/index.js +575 -0
- package/es/tabs/src/TabPanelList/TabPane.d.ts +18 -0
- package/es/tabs/src/TabPanelList/TabPane.js +50 -0
- package/es/tabs/src/TabPanelList/index.d.ts +11 -0
- package/es/tabs/src/TabPanelList/index.js +37 -0
- package/es/tabs/src/Tabs.d.ts +34 -0
- package/es/tabs/src/Tabs.js +238 -0
- package/es/tabs/src/hooks/useOffsets.d.ts +2 -0
- package/es/tabs/src/hooks/useOffsets.js +37 -0
- package/es/tabs/src/hooks/useRaf.d.ts +4 -0
- package/es/tabs/src/hooks/useRaf.js +53 -0
- package/es/tabs/src/hooks/useRefs.d.ts +5 -0
- package/es/tabs/src/hooks/useRefs.js +19 -0
- package/es/tabs/src/hooks/useSyncState.d.ts +3 -0
- package/es/tabs/src/hooks/useSyncState.js +22 -0
- package/es/tabs/src/hooks/useTouchMove.d.ts +2 -0
- package/es/tabs/src/hooks/useTouchMove.js +160 -0
- package/es/tabs/src/hooks/useVisibleRange.d.ts +16 -0
- package/es/tabs/src/hooks/useVisibleRange.js +68 -0
- package/es/tabs/src/index.d.ts +7 -0
- package/es/tabs/src/index.js +4 -0
- package/es/tabs/src/interface.d.ts +47 -0
- package/es/tabs/src/interface.js +1 -0
- package/es/tabs/style/card.less +105 -0
- package/es/tabs/style/css.js +2 -0
- package/es/tabs/style/dropdown.less +70 -0
- package/es/tabs/style/index.css +635 -0
- package/es/tabs/style/index.d.ts +2 -0
- package/es/tabs/style/index.js +2 -0
- package/es/tabs/style/index.less +262 -0
- package/es/tabs/style/position.less +208 -0
- package/es/tabs/style/rtl.less +84 -0
- package/es/tabs/style/size.less +41 -0
- package/es/tabs/tabs.d.ts +19 -0
- package/es/tabs/tabs.js +74 -0
- package/es/tag/CheckableTag.d.ts +16 -0
- package/es/tag/CheckableTag.js +47 -0
- package/es/tag/index.d.ts +24 -0
- package/es/tag/index.js +119 -0
- package/es/tag/style/css.js +2 -0
- package/es/tag/style/index.css +339 -0
- package/es/tag/style/index.d.ts +2 -0
- package/es/tag/style/index.js +2 -0
- package/es/tag/style/index.less +201 -0
- package/es/tag/style/rtl.less +28 -0
- package/es/time-picker/index.d.ts +30 -0
- package/es/time-picker/index.js +60 -0
- package/es/time-picker/locale/en_US.d.ts +3 -0
- package/es/time-picker/locale/en_US.js +14 -0
- package/es/time-picker/locale/zh_CN.d.ts +3 -0
- package/es/time-picker/locale/zh_CN.js +14 -0
- package/es/time-picker/style/css.js +5 -0
- package/es/time-picker/style/index.css +519 -0
- package/es/time-picker/style/index.d.ts +3 -0
- package/es/time-picker/style/index.js +5 -0
- package/es/time-picker/style/index.less +380 -0
- package/es/timeline/index.d.ts +2 -0
- package/es/timeline/index.js +2 -0
- package/es/timeline/interface.d.ts +27 -0
- package/es/timeline/interface.js +1 -0
- package/es/timeline/style/common.less +118 -0
- package/es/timeline/style/css.js +2 -0
- package/es/timeline/style/horizontal.less +27 -0
- package/es/timeline/style/index.css +861 -0
- package/es/timeline/style/index.d.ts +2 -0
- package/es/timeline/style/index.js +2 -0
- package/es/timeline/style/index.less +34 -0
- package/es/timeline/style/numberHorizontal.less +32 -0
- package/es/timeline/style/numberVertical.less +35 -0
- package/es/timeline/style/theme.less +60 -0
- package/es/timeline/style/vertical.less +38 -0
- package/es/timeline/timeline.d.ts +8 -0
- package/es/timeline/timeline.js +71 -0
- package/es/timeline/timelineItem.d.ts +9 -0
- package/es/timeline/timelineItem.js +133 -0
- package/es/toast/base.d.ts +55 -0
- package/es/toast/base.js +308 -0
- package/es/toast/hooks/useNotification.d.ts +7 -0
- package/es/toast/hooks/useNotification.js +55 -0
- package/es/toast/index.d.ts +6 -0
- package/es/toast/index.js +173 -0
- package/es/toast/style/css.js +2 -0
- package/es/toast/style/index.css +263 -0
- package/es/toast/style/index.d.ts +2 -0
- package/es/toast/style/index.js +2 -0
- package/es/toast/style/index.less +270 -0
- package/es/tooltip/index.d.ts +48 -0
- package/es/tooltip/index.js +223 -0
- package/es/tooltip/placements.d.ts +21 -0
- package/es/tooltip/placements.js +92 -0
- package/es/tooltip/style/css.js +2 -0
- package/es/tooltip/style/index.css +191 -0
- package/es/tooltip/style/index.d.ts +2 -0
- package/es/tooltip/style/index.js +2 -0
- package/es/tooltip/style/index.less +233 -0
- package/es/tooltip/style/rtl.less +14 -0
- package/es/transfer/dataSource.d.ts +8 -0
- package/es/transfer/dataSource.js +139 -0
- package/es/transfer/index.d.ts +46 -0
- package/es/transfer/index.js +80 -0
- package/es/transfer/sourceList.d.ts +7 -0
- package/es/transfer/sourceList.js +166 -0
- package/es/transfer/style/css.js +2 -0
- package/es/transfer/style/index.css +347 -0
- package/es/transfer/style/index.d.ts +2 -0
- package/es/transfer/style/index.js +2 -0
- package/es/transfer/style/index.less +210 -0
- package/es/transfer/target.d.ts +8 -0
- package/es/transfer/target.js +133 -0
- package/es/transfer/targetList.d.ts +7 -0
- package/es/transfer/targetList.js +124 -0
- package/es/transfer/util.d.ts +2 -0
- package/es/transfer/util.js +25 -0
- package/es/tree/index.d.ts +3 -0
- package/es/tree/index.js +2 -0
- package/es/tree/style/css.js +2 -0
- package/es/tree/style/index.css +476 -0
- package/es/tree/style/index.d.ts +2 -0
- package/es/tree/style/index.js +2 -0
- package/es/tree/style/index.less +201 -0
- package/es/tree/style/mixin.less +41 -0
- package/es/tree/tree.d.ts +43 -0
- package/es/tree/tree.js +390 -0
- package/es/tree/utils/dragHelper.d.ts +8 -0
- package/es/tree/utils/dragHelper.js +36 -0
- package/es/tree/utils/iconHelper.d.ts +3 -0
- package/es/tree/utils/iconHelper.js +16 -0
- package/es/tree/utils/nodeHelper.d.ts +8 -0
- package/es/tree/utils/nodeHelper.js +139 -0
- package/es/upload/BaseUpload/AjaxUploader.d.ts +33 -0
- package/es/upload/BaseUpload/AjaxUploader.js +469 -0
- package/es/upload/BaseUpload/Upload.d.ts +27 -0
- package/es/upload/BaseUpload/Upload.js +70 -0
- package/es/upload/BaseUpload/attr-accept.d.ts +3 -0
- package/es/upload/BaseUpload/attr-accept.js +55 -0
- package/es/upload/BaseUpload/index.d.ts +4 -0
- package/es/upload/BaseUpload/index.js +6 -0
- package/es/upload/BaseUpload/interface.d.ts +59 -0
- package/es/upload/BaseUpload/interface.js +5 -0
- package/es/upload/BaseUpload/request.d.ts +4 -0
- package/es/upload/BaseUpload/request.js +107 -0
- package/es/upload/BaseUpload/traverseFileTree.d.ts +14 -0
- package/es/upload/BaseUpload/traverseFileTree.js +68 -0
- package/es/upload/BaseUpload/uid.d.ts +1 -0
- package/es/upload/BaseUpload/uid.js +10 -0
- package/es/upload/Dragger.d.ts +7 -0
- package/es/upload/Dragger.js +40 -0
- package/es/upload/Upload.d.ts +10 -0
- package/es/upload/Upload.js +507 -0
- package/es/upload/UploadList/ListItem.d.ts +29 -0
- package/es/upload/UploadList/ListItem.js +219 -0
- package/es/upload/UploadList/index.d.ts +4 -0
- package/es/upload/UploadList/index.js +299 -0
- package/es/upload/index.d.ts +4 -0
- package/es/upload/index.js +8 -0
- package/es/upload/interface.d.ts +139 -0
- package/es/upload/interface.js +1 -0
- package/es/upload/style/css.js +6 -0
- package/es/upload/style/index.css +645 -0
- package/es/upload/style/index.d.ts +5 -0
- package/es/upload/style/index.js +6 -0
- package/es/upload/style/index.less +637 -0
- package/es/upload/utils.d.ts +9 -0
- package/es/upload/utils.js +144 -0
- package/es/virtual-list/Filler.d.ts +15 -0
- package/es/virtual-list/Filler.js +54 -0
- package/es/virtual-list/Item.d.ts +6 -0
- package/es/virtual-list/Item.js +11 -0
- package/es/virtual-list/List.d.ts +39 -0
- package/es/virtual-list/List.js +354 -0
- package/es/virtual-list/ScrollBar.d.ts +43 -0
- package/es/virtual-list/ScrollBar.js +257 -0
- package/es/virtual-list/hooks/useChildren.d.ts +3 -0
- package/es/virtual-list/hooks/useChildren.js +17 -0
- package/es/virtual-list/hooks/useDiffItem.d.ts +2 -0
- package/es/virtual-list/hooks/useDiffItem.js +26 -0
- package/es/virtual-list/hooks/useFrameWheel.d.ts +6 -0
- package/es/virtual-list/hooks/useFrameWheel.js +43 -0
- package/es/virtual-list/hooks/useHeights.d.ts +3 -0
- package/es/virtual-list/hooks/useHeights.js +61 -0
- package/es/virtual-list/hooks/useMobileTouchMove.d.ts +2 -0
- package/es/virtual-list/hooks/useMobileTouchMove.js +71 -0
- package/es/virtual-list/hooks/useOriginScroll.d.ts +2 -0
- package/es/virtual-list/hooks/useOriginScroll.js +38 -0
- package/es/virtual-list/hooks/useScrollTo.d.ts +5 -0
- package/es/virtual-list/hooks/useScrollTo.js +104 -0
- package/es/virtual-list/index.d.ts +3 -0
- package/es/virtual-list/index.js +2 -0
- package/es/virtual-list/interface.d.ts +8 -0
- package/es/virtual-list/interface.js +1 -0
- package/es/virtual-list/mock.d.ts +8 -0
- package/es/virtual-list/mock.js +10 -0
- package/es/virtual-list/utils/CacheMap.d.ts +8 -0
- package/es/virtual-list/utils/CacheMap.js +27 -0
- package/es/virtual-list/utils/algorithmUtil.d.ts +23 -0
- package/es/virtual-list/utils/algorithmUtil.js +90 -0
- package/es/virtual-list/utils/isFirefox.d.ts +2 -0
- package/es/virtual-list/utils/isFirefox.js +3 -0
- package/lib/_util/colors.d.ts +7 -0
- package/lib/_util/colors.js +16 -0
- package/lib/_util/devWarning.d.ts +4 -0
- package/lib/_util/devWarning.js +26 -0
- package/lib/_util/easings.d.ts +1 -0
- package/lib/_util/easings.js +19 -0
- package/lib/_util/getDataOrAriaProps.d.ts +1 -0
- package/lib/_util/getDataOrAriaProps.js +16 -0
- package/lib/_util/getRenderPropValue.d.ts +3 -0
- package/lib/_util/getRenderPropValue.js +22 -0
- package/lib/_util/getScroll.d.ts +2 -0
- package/lib/_util/getScroll.js +34 -0
- package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/lib/_util/hooks/useFlexGapSupport.js +34 -0
- package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
- package/lib/_util/hooks/useForceUpdate.js +28 -0
- package/lib/_util/hooks/useMergedState.d.ts +6 -0
- package/lib/_util/hooks/useMergedState.js +63 -0
- package/lib/_util/hooks/usePatchElement.d.ts +5 -0
- package/lib/_util/hooks/usePatchElement.js +44 -0
- package/lib/_util/hooks/useSyncState.d.ts +3 -0
- package/lib/_util/hooks/useSyncState.js +30 -0
- package/lib/_util/lengthLimit.d.ts +1 -0
- package/lib/_util/lengthLimit.js +15 -0
- package/lib/_util/motion.d.ts +5 -0
- package/lib/_util/motion.js +57 -0
- package/lib/_util/reactNode.d.ts +7 -0
- package/lib/_util/reactNode.js +31 -0
- package/lib/_util/responsiveObserve.d.ts +21 -0
- package/lib/_util/responsiveObserve.js +90 -0
- package/lib/_util/scrollTo.d.ts +10 -0
- package/lib/_util/scrollTo.js +56 -0
- package/lib/_util/styleChecker.d.ts +3 -0
- package/lib/_util/styleChecker.js +58 -0
- package/lib/_util/throttleByAnimationFrame.d.ts +5 -0
- package/lib/_util/throttleByAnimationFrame.js +70 -0
- package/lib/_util/type.d.ts +10 -0
- package/lib/_util/type.js +27 -0
- package/lib/affix/index.d.ts +49 -0
- package/lib/affix/index.js +339 -0
- package/lib/affix/style/css.js +5 -0
- package/lib/affix/style/index.css +15 -0
- package/lib/affix/style/index.d.ts +2 -0
- package/lib/affix/style/index.js +5 -0
- package/lib/affix/style/index.less +7 -0
- package/lib/affix/utils.d.ts +17 -0
- package/lib/affix/utils.js +109 -0
- package/lib/alert/ErrorBoundary.d.ts +25 -0
- package/lib/alert/ErrorBoundary.js +87 -0
- package/lib/alert/index.d.ts +40 -0
- package/lib/alert/index.js +214 -0
- package/lib/alert/style/css.js +5 -0
- package/lib/alert/style/index.css +161 -0
- package/lib/alert/style/index.d.ts +2 -0
- package/lib/alert/style/index.js +5 -0
- package/lib/alert/style/index.less +157 -0
- package/lib/alert/style/rtl.less +39 -0
- package/lib/anchor/Anchor.d.ts +78 -0
- package/lib/anchor/Anchor.js +332 -0
- package/lib/anchor/AnchorLink.d.ts +28 -0
- package/lib/anchor/AnchorLink.js +163 -0
- package/lib/anchor/context.d.ts +4 -0
- package/lib/anchor/context.js +18 -0
- package/lib/anchor/index.d.ts +4 -0
- package/lib/anchor/index.js +16 -0
- package/lib/anchor/style/css.js +5 -0
- package/lib/anchor/style/index.css +138 -0
- package/lib/anchor/style/index.d.ts +2 -0
- package/lib/anchor/style/index.js +5 -0
- package/lib/anchor/style/index.less +97 -0
- package/lib/anchor/style/rtl.less +35 -0
- package/lib/back-top/index.d.ts +14 -0
- package/lib/back-top/index.js +155 -0
- package/lib/back-top/style/css.js +5 -0
- package/lib/back-top/style/index.css +113 -0
- package/lib/back-top/style/index.d.ts +2 -0
- package/lib/back-top/style/index.js +5 -0
- package/lib/back-top/style/index.less +67 -0
- package/lib/back-top/style/responsive.less +11 -0
- package/lib/badge/Ribbon.d.ts +19 -0
- package/lib/badge/Ribbon.js +73 -0
- package/lib/badge/ScrollNumber.d.ts +22 -0
- package/lib/badge/ScrollNumber.js +106 -0
- package/lib/badge/SingleNumber.d.ts +17 -0
- package/lib/badge/SingleNumber.js +145 -0
- package/lib/badge/index.d.ts +33 -0
- package/lib/badge/index.js +222 -0
- package/lib/badge/style/css.js +5 -0
- package/lib/badge/style/index.css +480 -0
- package/lib/badge/style/index.d.ts +2 -0
- package/lib/badge/style/index.js +5 -0
- package/lib/badge/style/index.less +268 -0
- package/lib/badge/style/ribbon.less +81 -0
- package/lib/badge/style/rtl.less +104 -0
- package/lib/badge/utils.d.ts +5 -0
- package/lib/badge/utils.js +17 -0
- package/lib/breadcrumb/Breadcrumb.d.ts +26 -0
- package/lib/breadcrumb/Breadcrumb.js +113 -0
- package/lib/breadcrumb/BreadcrumbItem.d.ts +16 -0
- package/lib/breadcrumb/BreadcrumbItem.js +94 -0
- package/lib/breadcrumb/index.d.ts +6 -0
- package/lib/breadcrumb/index.js +17 -0
- package/lib/breadcrumb/style/css.js +5 -0
- package/lib/breadcrumb/style/index.css +72 -0
- package/lib/breadcrumb/style/index.d.ts +2 -0
- package/lib/breadcrumb/style/index.js +5 -0
- package/lib/breadcrumb/style/index.less +44 -0
- package/lib/button/LoadingIcon.d.ts +2 -0
- package/lib/button/LoadingIcon.js +21 -0
- package/lib/button/button-group.d.ts +20 -0
- package/lib/button/button-group.js +58 -0
- package/lib/button/button.d.ts +36 -0
- package/lib/button/button.js +137 -0
- package/lib/button/index.d.ts +7 -0
- package/lib/button/index.js +17 -0
- package/lib/button/style/css.js +5 -0
- package/lib/button/style/index.css +332 -0
- package/lib/button/style/index.d.ts +2 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/style/index.less +97 -0
- package/lib/button/style/mixin.less +146 -0
- package/lib/card/Card.d.ts +62 -0
- package/lib/card/Card.js +274 -0
- package/lib/card/Grid.d.ts +13 -0
- package/lib/card/Grid.js +61 -0
- package/lib/card/Meta.d.ts +16 -0
- package/lib/card/Meta.js +82 -0
- package/lib/card/index.d.ts +6 -0
- package/lib/card/index.js +17 -0
- package/lib/card/style/css.js +11 -0
- package/lib/card/style/index.css +816 -0
- package/lib/card/style/index.d.ts +5 -0
- package/lib/card/style/index.js +11 -0
- package/lib/card/style/index.less +526 -0
- package/lib/card/style/mixins.less +11 -0
- package/lib/card/style/size.less +20 -0
- package/lib/carousel/carousel.d.ts +32 -0
- package/lib/carousel/carousel.js +224 -0
- package/lib/carousel/index.d.ts +2 -0
- package/lib/carousel/index.js +13 -0
- package/lib/carousel/indicator.d.ts +20 -0
- package/lib/carousel/indicator.js +115 -0
- package/lib/carousel/style/css.js +5 -0
- package/lib/carousel/style/index.css +206 -0
- package/lib/carousel/style/index.d.ts +2 -0
- package/lib/carousel/style/index.js +5 -0
- package/lib/carousel/style/index.less +210 -0
- package/lib/carousel/style/mixin.less +6 -0
- package/lib/carousel/switch.d.ts +8 -0
- package/lib/carousel/switch.js +32 -0
- package/lib/cascader/Cascader.d.ts +90 -0
- package/lib/cascader/Cascader.js +665 -0
- package/lib/cascader/MenuItem.d.ts +9 -0
- package/lib/cascader/MenuItem.js +97 -0
- package/lib/cascader/Menus.d.ts +62 -0
- package/lib/cascader/Menus.js +519 -0
- package/lib/cascader/index.d.ts +77 -0
- package/lib/cascader/index.js +739 -0
- package/lib/cascader/placements.d.ts +3 -0
- package/lib/cascader/placements.js +42 -0
- package/lib/cascader/renderEmpty.d.ts +8 -0
- package/lib/cascader/renderEmpty.js +39 -0
- package/lib/cascader/style/css.js +9 -0
- package/lib/cascader/style/index.css +501 -0
- package/lib/cascader/style/index.d.ts +4 -0
- package/lib/cascader/style/index.js +9 -0
- package/lib/cascader/style/index.less +388 -0
- package/lib/cascader/style/mixin.less +35 -0
- package/lib/cascader/style/rtl.less +98 -0
- package/lib/cascader/utils.d.ts +3 -0
- package/lib/cascader/utils.js +47 -0
- package/lib/checkbox/BaseCheckbox.d.ts +59 -0
- package/lib/checkbox/BaseCheckbox.js +201 -0
- package/lib/checkbox/ButtonCheckbox.d.ts +30 -0
- package/lib/checkbox/ButtonCheckbox.js +164 -0
- package/lib/checkbox/Checkbox.d.ts +37 -0
- package/lib/checkbox/Checkbox.js +125 -0
- package/lib/checkbox/Group.d.ts +36 -0
- package/lib/checkbox/Group.js +190 -0
- package/lib/checkbox/GroupButtonCheckbox.d.ts +7 -0
- package/lib/checkbox/GroupButtonCheckbox.js +97 -0
- package/lib/checkbox/index.d.ts +17 -0
- package/lib/checkbox/index.js +25 -0
- package/lib/checkbox/style/css.js +5 -0
- package/lib/checkbox/style/index.css +446 -0
- package/lib/checkbox/style/index.d.ts +2 -0
- package/lib/checkbox/style/index.js +5 -0
- package/lib/checkbox/style/index.less +6 -0
- package/lib/checkbox/style/mixin.less +404 -0
- package/lib/col/index.d.ts +3 -0
- package/lib/col/index.js +11 -0
- package/lib/col/style/css.js +5 -0
- package/lib/col/style/index.d.ts +2 -0
- package/lib/col/style/index.js +5 -0
- package/lib/collapse/Collapse.d.ts +19 -0
- package/lib/collapse/Collapse.js +90 -0
- package/lib/collapse/CollapsePanel.d.ts +13 -0
- package/lib/collapse/CollapsePanel.js +39 -0
- package/lib/collapse/index.d.ts +4 -0
- package/lib/collapse/index.js +13 -0
- package/lib/collapse/style/css.js +5 -0
- package/lib/collapse/style/index.css +119 -0
- package/lib/collapse/style/index.d.ts +2 -0
- package/lib/collapse/style/index.js +5 -0
- package/lib/collapse/style/index.less +97 -0
- package/lib/collapse/style/minxin.less +9 -0
- package/lib/config-provider/SizeContext.d.ts +12 -0
- package/lib/config-provider/SizeContext.js +34 -0
- package/lib/config-provider/context.d.ts +51 -0
- package/lib/config-provider/context.js +66 -0
- package/lib/config-provider/index.d.ts +46 -0
- package/lib/config-provider/index.js +178 -0
- package/lib/config-provider/renderEmpty.d.ts +8 -0
- package/lib/config-provider/renderEmpty.js +58 -0
- package/lib/config-provider/style/css.js +3 -0
- package/lib/config-provider/style/index.css +11 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/config-provider/style/index.js +3 -0
- package/lib/config-provider/style/index.less +2 -0
- package/lib/date-picker/PickerButton.d.ts +3 -0
- package/lib/date-picker/PickerButton.js +27 -0
- package/lib/date-picker/PickerTag.d.ts +3 -0
- package/lib/date-picker/PickerTag.js +26 -0
- package/lib/date-picker/generatePicker/generateRangePicker.d.ts +4 -0
- package/lib/date-picker/generatePicker/generateRangePicker.js +182 -0
- package/lib/date-picker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/lib/date-picker/generatePicker/generateSinglePicker.js +207 -0
- package/lib/date-picker/generatePicker/index.d.ts +66 -0
- package/lib/date-picker/generatePicker/index.js +102 -0
- package/lib/date-picker/index.d.ts +16 -0
- package/lib/date-picker/index.js +16 -0
- package/lib/date-picker/locale/en_US.d.ts +3 -0
- package/lib/date-picker/locale/en_US.js +33 -0
- package/lib/date-picker/locale/zh_CN.d.ts +3 -0
- package/lib/date-picker/locale/zh_CN.js +35 -0
- package/lib/date-picker/src/PanelContext.d.ts +24 -0
- package/lib/date-picker/src/PanelContext.js +18 -0
- package/lib/date-picker/src/Picker.d.ts +81 -0
- package/lib/date-picker/src/Picker.js +502 -0
- package/lib/date-picker/src/PickerPanel.d.ts +60 -0
- package/lib/date-picker/src/PickerPanel.js +465 -0
- package/lib/date-picker/src/PickerTrigger.d.ts +19 -0
- package/lib/date-picker/src/PickerTrigger.js +101 -0
- package/lib/date-picker/src/RangeContext.d.ts +14 -0
- package/lib/date-picker/src/RangeContext.js +18 -0
- package/lib/date-picker/src/RangePicker.d.ts +53 -0
- package/lib/date-picker/src/RangePicker.js +1067 -0
- package/lib/date-picker/src/generate/dateFns.d.ts +3 -0
- package/lib/date-picker/src/generate/dateFns.js +155 -0
- package/lib/date-picker/src/generate/dayjs.d.ts +4 -0
- package/lib/date-picker/src/generate/dayjs.js +195 -0
- package/lib/date-picker/src/generate/index.d.ts +35 -0
- package/lib/date-picker/src/generate/index.js +5 -0
- package/lib/date-picker/src/generate/moment.d.ts +4 -0
- package/lib/date-picker/src/generate/moment.js +164 -0
- package/lib/date-picker/src/hooks/useCellClassName.d.ts +15 -0
- package/lib/date-picker/src/hooks/useCellClassName.js +54 -0
- package/lib/date-picker/src/hooks/useHoverValue.d.ts +2 -0
- package/lib/date-picker/src/hooks/useHoverValue.js +68 -0
- package/lib/date-picker/src/hooks/usePickerInput.d.ts +17 -0
- package/lib/date-picker/src/hooks/usePickerInput.js +179 -0
- package/lib/date-picker/src/hooks/useRangeDisabled.d.ts +10 -0
- package/lib/date-picker/src/hooks/useRangeDisabled.js +105 -0
- package/lib/date-picker/src/hooks/useRangeViewDates.d.ts +8 -0
- package/lib/date-picker/src/hooks/useRangeViewDates.js +135 -0
- package/lib/date-picker/src/hooks/useTextValueMapping.d.ts +5 -0
- package/lib/date-picker/src/hooks/useTextValueMapping.js +49 -0
- package/lib/date-picker/src/hooks/useValueTexts.d.ts +8 -0
- package/lib/date-picker/src/hooks/useValueTexts.js +47 -0
- package/lib/date-picker/src/index.d.ts +5 -0
- package/lib/date-picker/src/index.js +29 -0
- package/lib/date-picker/src/interface.d.ts +88 -0
- package/lib/date-picker/src/interface.js +5 -0
- package/lib/date-picker/src/locale/en_US.d.ts +3 -0
- package/lib/date-picker/src/locale/en_US.js +37 -0
- package/lib/date-picker/src/locale/zh_CN.d.ts +3 -0
- package/lib/date-picker/src/locale/zh_CN.js +36 -0
- package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +21 -0
- package/lib/date-picker/src/panels/DatePanel/DateBody.js +104 -0
- package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +18 -0
- package/lib/date-picker/src/panels/DatePanel/DateHeader.js +82 -0
- package/lib/date-picker/src/panels/DatePanel/index.d.ts +12 -0
- package/lib/date-picker/src/panels/DatePanel/index.js +117 -0
- package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +11 -0
- package/lib/date-picker/src/panels/DatetimePanel/index.js +99 -0
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +12 -0
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.js +69 -0
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +11 -0
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.js +54 -0
- package/lib/date-picker/src/panels/DecadePanel/index.d.ts +7 -0
- package/lib/date-picker/src/panels/DecadePanel/index.js +88 -0
- package/lib/date-picker/src/panels/Header.d.ts +19 -0
- package/lib/date-picker/src/panels/Header.js +76 -0
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +17 -0
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.js +91 -0
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +14 -0
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.js +59 -0
- package/lib/date-picker/src/panels/MonthPanel/index.d.ts +8 -0
- package/lib/date-picker/src/panels/MonthPanel/index.js +86 -0
- package/lib/date-picker/src/panels/PanelBody.d.ts +22 -0
- package/lib/date-picker/src/panels/PanelBody.js +121 -0
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +15 -0
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.js +87 -0
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +14 -0
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.js +59 -0
- package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +5 -0
- package/lib/date-picker/src/panels/QuarterPanel/index.js +81 -0
- package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +18 -0
- package/lib/date-picker/src/panels/TimePanel/TimeBody.js +233 -0
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +12 -0
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.js +48 -0
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +16 -0
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.js +99 -0
- package/lib/date-picker/src/panels/TimePanel/index.d.ts +21 -0
- package/lib/date-picker/src/panels/TimePanel/index.js +97 -0
- package/lib/date-picker/src/panels/WeekPanel/index.d.ts +5 -0
- package/lib/date-picker/src/panels/WeekPanel/index.js +61 -0
- package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +15 -0
- package/lib/date-picker/src/panels/YearPanel/YearBody.js +91 -0
- package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +13 -0
- package/lib/date-picker/src/panels/YearPanel/YearHeader.js +59 -0
- package/lib/date-picker/src/panels/YearPanel/index.d.ts +8 -0
- package/lib/date-picker/src/panels/YearPanel/index.js +90 -0
- package/lib/date-picker/src/utils/dateUtil.d.ts +33 -0
- package/lib/date-picker/src/utils/dateUtil.js +281 -0
- package/lib/date-picker/src/utils/getExtraFooter.d.ts +3 -0
- package/lib/date-picker/src/utils/getExtraFooter.js +24 -0
- package/lib/date-picker/src/utils/getRanges.d.ts +14 -0
- package/lib/date-picker/src/utils/getRanges.js +56 -0
- package/lib/date-picker/src/utils/miscUtil.d.ts +8 -0
- package/lib/date-picker/src/utils/miscUtil.js +65 -0
- package/lib/date-picker/src/utils/timeUtil.d.ts +6 -0
- package/lib/date-picker/src/utils/timeUtil.js +54 -0
- package/lib/date-picker/src/utils/uiUtil.d.ts +22 -0
- package/lib/date-picker/src/utils/uiUtil.js +294 -0
- package/lib/date-picker/style/css.js +9 -0
- package/lib/date-picker/style/index.css +1280 -0
- package/lib/date-picker/style/index.d.ts +4 -0
- package/lib/date-picker/style/index.js +9 -0
- package/lib/date-picker/style/index.less +379 -0
- package/lib/date-picker/style/panel.less +972 -0
- package/lib/date-picker/style/rtl.less +251 -0
- package/lib/date-picker/util.d.ts +4 -0
- package/lib/date-picker/util.js +59 -0
- package/lib/dialog-box/dialogbox.d.ts +52 -0
- package/lib/dialog-box/dialogbox.js +179 -0
- package/lib/dialog-box/index.d.ts +2 -0
- package/lib/dialog-box/index.js +13 -0
- package/lib/dialog-box/style/css.js +5 -0
- package/lib/dialog-box/style/index.css +188 -0
- package/lib/dialog-box/style/index.d.ts +2 -0
- package/lib/dialog-box/style/index.js +5 -0
- package/lib/dialog-box/style/index.less +147 -0
- package/lib/dialog-box/style/mixin.less +48 -0
- package/lib/drawer/index.d.ts +46 -0
- package/lib/drawer/index.js +310 -0
- package/lib/drawer/style/css.js +5 -0
- package/lib/drawer/style/drawer.less +282 -0
- package/lib/drawer/style/index.css +263 -0
- package/lib/drawer/style/index.d.ts +2 -0
- package/lib/drawer/style/index.js +5 -0
- package/lib/drawer/style/index.less +3 -0
- package/lib/dropdown/dropdown-button.d.ts +22 -0
- package/lib/dropdown/dropdown-button.js +97 -0
- package/lib/dropdown/dropdown.d.ts +36 -0
- package/lib/dropdown/dropdown.js +160 -0
- package/lib/dropdown/index.d.ts +6 -0
- package/lib/dropdown/index.js +17 -0
- package/lib/dropdown/rc-dropdown/Dropdown.d.ts +30 -0
- package/lib/dropdown/rc-dropdown/Dropdown.js +201 -0
- package/lib/dropdown/rc-dropdown/index.d.ts +1 -0
- package/lib/dropdown/rc-dropdown/index.js +15 -0
- package/lib/dropdown/rc-dropdown/placements.d.ts +88 -0
- package/lib/dropdown/rc-dropdown/placements.js +74 -0
- package/lib/dropdown/style/css.js +5 -0
- package/lib/dropdown/style/index.css +283 -0
- package/lib/dropdown/style/index.d.ts +2 -0
- package/lib/dropdown/style/index.js +5 -0
- package/lib/dropdown/style/index.less +182 -0
- package/lib/empty/index.d.ts +22 -0
- package/lib/empty/index.js +98 -0
- package/lib/empty/style/css.js +5 -0
- package/lib/empty/style/index.css +81 -0
- package/lib/empty/style/index.d.ts +2 -0
- package/lib/empty/style/index.js +5 -0
- package/lib/empty/style/index.less +137 -0
- package/lib/flow/index.d.ts +75 -0
- package/lib/flow/index.js +70 -0
- package/lib/form/ErrorList.d.ts +13 -0
- package/lib/form/ErrorList.js +93 -0
- package/lib/form/Form.d.ts +38 -0
- package/lib/form/Form.js +173 -0
- package/lib/form/FormItem.d.ts +34 -0
- package/lib/form/FormItem.js +362 -0
- package/lib/form/FormItemInput.d.ts +32 -0
- package/lib/form/FormItemInput.js +110 -0
- package/lib/form/FormItemLabel.d.ts +28 -0
- package/lib/form/FormItemLabel.js +162 -0
- package/lib/form/FormList.d.ts +27 -0
- package/lib/form/FormList.js +73 -0
- package/lib/form/context.d.ts +36 -0
- package/lib/form/context.js +46 -0
- package/lib/form/hooks/useCacheErrors.d.ts +7 -0
- package/lib/form/hooks/useCacheErrors.js +63 -0
- package/lib/form/hooks/useForm.d.ts +17 -0
- package/lib/form/hooks/useForm.js +78 -0
- package/lib/form/hooks/useFrameState.d.ts +7 -0
- package/lib/form/hooks/useFrameState.js +66 -0
- package/lib/form/hooks/useItemRef.d.ts +7 -0
- package/lib/form/hooks/useItemRef.js +48 -0
- package/lib/form/index.d.ts +23 -0
- package/lib/form/index.js +44 -0
- package/lib/form/interface.d.ts +7 -0
- package/lib/form/interface.js +5 -0
- package/lib/form/style/cols.less +18 -0
- package/lib/form/style/components.less +85 -0
- package/lib/form/style/css.js +7 -0
- package/lib/form/style/horizontal.less +28 -0
- package/lib/form/style/index.css +996 -0
- package/lib/form/style/index.d.ts +7 -0
- package/lib/form/style/index.js +7 -0
- package/lib/form/style/index.less +276 -0
- package/lib/form/style/inline.less +40 -0
- package/lib/form/style/mixin.less +139 -0
- package/lib/form/style/rtl.less +179 -0
- package/lib/form/style/status.less +280 -0
- package/lib/form/style/vertical.less +94 -0
- package/lib/form/util.d.ts +8 -0
- package/lib/form/util.js +41 -0
- package/lib/grid/RowContext.d.ts +7 -0
- package/lib/grid/RowContext.js +12 -0
- package/lib/grid/col.d.ts +28 -0
- package/lib/grid/col.js +130 -0
- package/lib/grid/hooks/useBreakpoint.d.ts +3 -0
- package/lib/grid/hooks/useBreakpoint.js +35 -0
- package/lib/grid/index.d.ts +10 -0
- package/lib/grid/index.js +31 -0
- package/lib/grid/row.d.ts +14 -0
- package/lib/grid/row.js +151 -0
- package/lib/grid/style/css.js +5 -0
- package/lib/grid/style/index.css +5188 -0
- package/lib/grid/style/index.d.ts +2 -0
- package/lib/grid/style/index.js +5 -0
- package/lib/grid/style/index.less +118 -0
- package/lib/grid/style/mixin.less +53 -0
- package/lib/grid/style/rtl.less +68 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +18 -0
- package/lib/index.d.ts +50 -0
- package/lib/index.js +407 -0
- package/lib/input/Input.d.ts +48 -0
- package/lib/input/Input.js +345 -0
- package/lib/input/Label.d.ts +8 -0
- package/lib/input/Label.js +147 -0
- package/lib/input/MultiSelectInput.d.ts +11 -0
- package/lib/input/MultiSelectInput.js +41 -0
- package/lib/input/Password.d.ts +24 -0
- package/lib/input/Password.js +170 -0
- package/lib/input/TextArea.d.ts +21 -0
- package/lib/input/TextArea.js +184 -0
- package/lib/input/index.d.ts +15 -0
- package/lib/input/index.js +26 -0
- package/lib/input/style/css.js +5 -0
- package/lib/input/style/index.css +886 -0
- package/lib/input/style/index.d.ts +2 -0
- package/lib/input/style/index.js +5 -0
- package/lib/input/style/index.less +379 -0
- package/lib/input/style/mixin.less +169 -0
- package/lib/input-number/index.d.ts +26 -0
- package/lib/input-number/index.js +114 -0
- package/lib/input-number/src/InputNumber.d.ts +46 -0
- package/lib/input-number/src/InputNumber.js +537 -0
- package/lib/input-number/src/StepHandler.d.ts +11 -0
- package/lib/input-number/src/StepHandler.js +112 -0
- package/lib/input-number/src/hooks/useCursor.d.ts +5 -0
- package/lib/input-number/src/hooks/useCursor.js +79 -0
- package/lib/input-number/src/hooks/useFrame.d.ts +5 -0
- package/lib/input-number/src/hooks/useFrame.js +35 -0
- package/lib/input-number/src/hooks/useLayoutEffect.d.ts +2 -0
- package/lib/input-number/src/hooks/useLayoutEffect.js +21 -0
- package/lib/input-number/src/hooks/useUpdateEffect.d.ts +4 -0
- package/lib/input-number/src/hooks/useUpdateEffect.js +31 -0
- package/lib/input-number/src/index.d.ts +3 -0
- package/lib/input-number/src/index.js +13 -0
- package/lib/input-number/src/utils/MiniDecimal.d.ts +75 -0
- package/lib/input-number/src/utils/MiniDecimal.js +354 -0
- package/lib/input-number/src/utils/numberUtil.d.ts +22 -0
- package/lib/input-number/src/utils/numberUtil.js +118 -0
- package/lib/input-number/src/utils/supportUtil.d.ts +1 -0
- package/lib/input-number/src/utils/supportUtil.js +10 -0
- package/lib/input-number/style/css.js +5 -0
- package/lib/input-number/style/index.css +503 -0
- package/lib/input-number/style/index.d.ts +2 -0
- package/lib/input-number/style/index.js +5 -0
- package/lib/input-number/style/index.less +224 -0
- package/lib/input-number/style/rtl.less +105 -0
- package/lib/link/index.d.ts +6 -0
- package/lib/link/index.js +17 -0
- package/lib/link/link.d.ts +29 -0
- package/lib/link/link.js +70 -0
- package/lib/link/style/css.js +5 -0
- package/lib/link/style/index.css +75 -0
- package/lib/link/style/index.d.ts +2 -0
- package/lib/link/style/index.js +5 -0
- package/lib/link/style/index.less +37 -0
- package/lib/loading/icon.d.ts +9 -0
- package/lib/loading/icon.js +78 -0
- package/lib/loading/index.d.ts +18 -0
- package/lib/loading/index.js +59 -0
- package/lib/loading/style/css.js +5 -0
- package/lib/loading/style/index.css +287 -0
- package/lib/loading/style/index.d.ts +2 -0
- package/lib/loading/style/index.js +5 -0
- package/lib/loading/style/index.less +191 -0
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +2 -0
- package/lib/locale/en_US.js +133 -0
- package/lib/locale/zh_CN.d.ts +2 -0
- package/lib/locale/zh_CN.js +137 -0
- package/lib/locale-provider/LocaleReceiver.d.ts +31 -0
- package/lib/locale-provider/LocaleReceiver.js +93 -0
- package/lib/locale-provider/context.d.ts +10 -0
- package/lib/locale-provider/context.js +16 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/index.d.ts +31 -0
- package/lib/locale-provider/index.js +70 -0
- package/lib/menu/MenuContext.d.ts +11 -0
- package/lib/menu/MenuContext.js +19 -0
- package/lib/menu/MenuHead.d.ts +15 -0
- package/lib/menu/MenuHead.js +85 -0
- package/lib/menu/MenuItem.d.ts +14 -0
- package/lib/menu/MenuItem.js +97 -0
- package/lib/menu/SubMenu.d.ts +15 -0
- package/lib/menu/SubMenu.js +84 -0
- package/lib/menu/baseMenu.d.ts +14 -0
- package/lib/menu/baseMenu.js +67 -0
- package/lib/menu/globalSilderBar.d.ts +14 -0
- package/lib/menu/globalSilderBar.js +117 -0
- package/lib/menu/header.d.ts +30 -0
- package/lib/menu/header.js +83 -0
- package/lib/menu/index.d.ts +6 -0
- package/lib/menu/index.js +17 -0
- package/lib/menu/menu.d.ts +26 -0
- package/lib/menu/menu.js +109 -0
- package/lib/menu/rc-menu/Divider.d.ts +6 -0
- package/lib/menu/rc-menu/Divider.js +41 -0
- package/lib/menu/rc-menu/Icon.d.ts +9 -0
- package/lib/menu/rc-menu/Icon.js +34 -0
- package/lib/menu/rc-menu/Menu.d.ts +46 -0
- package/lib/menu/rc-menu/Menu.js +458 -0
- package/lib/menu/rc-menu/MenuItem.d.ts +18 -0
- package/lib/menu/rc-menu/MenuItem.js +251 -0
- package/lib/menu/rc-menu/MenuItemGroup.d.ts +11 -0
- package/lib/menu/rc-menu/MenuItemGroup.js +80 -0
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +8 -0
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.js +102 -0
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +14 -0
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.js +107 -0
- package/lib/menu/rc-menu/SubMenu/SubMenuList.d.ts +6 -0
- package/lib/menu/rc-menu/SubMenu/SubMenuList.js +57 -0
- package/lib/menu/rc-menu/SubMenu/index.d.ts +28 -0
- package/lib/menu/rc-menu/SubMenu/index.js +340 -0
- package/lib/menu/rc-menu/context/IdContext.d.ts +7 -0
- package/lib/menu/rc-menu/context/IdContext.js +36 -0
- package/lib/menu/rc-menu/context/MenuContext.d.ts +37 -0
- package/lib/menu/rc-menu/context/MenuContext.js +67 -0
- package/lib/menu/rc-menu/context/PathContext.d.ts +13 -0
- package/lib/menu/rc-menu/context/PathContext.js +42 -0
- package/lib/menu/rc-menu/hooks/useAccessibility.d.ts +3 -0
- package/lib/menu/rc-menu/hooks/useAccessibility.js +300 -0
- package/lib/menu/rc-menu/hooks/useActive.d.ts +9 -0
- package/lib/menu/rc-menu/hooks/useActive.js +47 -0
- package/lib/menu/rc-menu/hooks/useDirectionStyle.d.ts +2 -0
- package/lib/menu/rc-menu/hooks/useDirectionStyle.js +34 -0
- package/lib/menu/rc-menu/hooks/useKeyRecords.d.ts +10 -0
- package/lib/menu/rc-menu/hooks/useKeyRecords.js +145 -0
- package/lib/menu/rc-menu/hooks/useMemoCallback.d.ts +5 -0
- package/lib/menu/rc-menu/hooks/useMemoCallback.js +35 -0
- package/lib/menu/rc-menu/hooks/useUUID.d.ts +1 -0
- package/lib/menu/rc-menu/hooks/useUUID.js +39 -0
- package/lib/menu/rc-menu/index.d.ts +17 -0
- package/lib/menu/rc-menu/index.js +67 -0
- package/lib/menu/rc-menu/interface.d.ts +31 -0
- package/lib/menu/rc-menu/interface.js +5 -0
- package/lib/menu/rc-menu/placements.d.ts +77 -0
- package/lib/menu/rc-menu/placements.js +63 -0
- package/lib/menu/rc-menu/utils/motionUtil.d.ts +2 -0
- package/lib/menu/rc-menu/utils/motionUtil.js +18 -0
- package/lib/menu/rc-menu/utils/nodeUtil.d.ts +2 -0
- package/lib/menu/rc-menu/utils/nodeUtil.js +49 -0
- package/lib/menu/rc-menu/utils/timeUtil.d.ts +1 -0
- package/lib/menu/rc-menu/utils/timeUtil.js +11 -0
- package/lib/menu/rc-menu/utils/warnUtil.d.ts +8 -0
- package/lib/menu/rc-menu/utils/warnUtil.js +40 -0
- package/lib/menu/style/config.less +5 -0
- package/lib/menu/style/css.js +7 -0
- package/lib/menu/style/header.less +76 -0
- package/lib/menu/style/index.css +746 -0
- package/lib/menu/style/index.d.ts +3 -0
- package/lib/menu/style/index.js +7 -0
- package/lib/menu/style/index.less +533 -0
- package/lib/menu/style/sider.less +109 -0
- package/lib/modal/Modal.d.ts +50 -0
- package/lib/modal/Modal.js +126 -0
- package/lib/modal/index.d.ts +2 -0
- package/lib/modal/index.js +13 -0
- package/lib/modal/style/css.js +5 -0
- package/lib/modal/style/index.css +152 -0
- package/lib/modal/style/index.d.ts +2 -0
- package/lib/modal/style/index.js +5 -0
- package/lib/modal/style/index.less +125 -0
- package/lib/modal/style/mixin.less +47 -0
- package/lib/pagination/index.d.ts +4 -0
- package/lib/pagination/index.js +13 -0
- package/lib/pagination/locale/zh_CN.d.ts +2 -0
- package/lib/pagination/locale/zh_CN.js +22 -0
- package/lib/pagination/pagination.d.ts +14 -0
- package/lib/pagination/pagination.js +133 -0
- package/lib/pagination/rc-pagination/Goto.d.ts +19 -0
- package/lib/pagination/rc-pagination/Goto.js +125 -0
- package/lib/pagination/rc-pagination/Interface.d.ts +30 -0
- package/lib/pagination/rc-pagination/Interface.js +5 -0
- package/lib/pagination/rc-pagination/KeyCode.d.ts +15 -0
- package/lib/pagination/rc-pagination/KeyCode.js +23 -0
- package/lib/pagination/rc-pagination/Options.d.ts +24 -0
- package/lib/pagination/rc-pagination/Options.js +97 -0
- package/lib/pagination/rc-pagination/Pager.d.ts +21 -0
- package/lib/pagination/rc-pagination/Pager.js +58 -0
- package/lib/pagination/rc-pagination/Pagination.d.ts +24 -0
- package/lib/pagination/rc-pagination/Pagination.js +633 -0
- package/lib/pagination/rc-pagination/index.d.ts +2 -0
- package/lib/pagination/rc-pagination/index.js +13 -0
- package/lib/pagination/rc-pagination/locale/gl_ES.d.ts +13 -0
- package/lib/pagination/rc-pagination/locale/gl_ES.js +21 -0
- package/lib/pagination/style/css.js +5 -0
- package/lib/pagination/style/index.css +774 -0
- package/lib/pagination/style/index.d.ts +2 -0
- package/lib/pagination/style/index.js +5 -0
- package/lib/pagination/style/index.less +278 -0
- package/lib/pagination/style/mix.less +31 -0
- package/lib/popconfirm/index.d.ts +22 -0
- package/lib/popconfirm/index.js +169 -0
- package/lib/popconfirm/style/css.js +5 -0
- package/lib/popconfirm/style/index.css +17 -0
- package/lib/popconfirm/style/index.d.ts +2 -0
- package/lib/popconfirm/style/index.js +5 -0
- package/lib/popconfirm/style/index.less +14 -0
- package/lib/popover/index.d.ts +13 -0
- package/lib/popover/index.js +81 -0
- package/lib/popover/style/css.js +5 -0
- package/lib/popover/style/customize.less +3 -0
- package/lib/popover/style/index.css +215 -0
- package/lib/popover/style/index.d.ts +2 -0
- package/lib/popover/style/index.js +5 -0
- package/lib/popover/style/index.less +215 -0
- package/lib/popover/style/rtl.less +33 -0
- package/lib/progress/CircleProgress.d.ts +8 -0
- package/lib/progress/CircleProgress.js +139 -0
- package/lib/progress/LineProgress.d.ts +8 -0
- package/lib/progress/LineProgress.js +113 -0
- package/lib/progress/common/index.d.ts +16 -0
- package/lib/progress/common/index.js +39 -0
- package/lib/progress/index.d.ts +9 -0
- package/lib/progress/index.js +107 -0
- package/lib/progress/interface.d.ts +39 -0
- package/lib/progress/interface.js +12 -0
- package/lib/progress/style/circleProgress.less +39 -0
- package/lib/progress/style/common.less +34 -0
- package/lib/progress/style/css.js +5 -0
- package/lib/progress/style/index.css +150 -0
- package/lib/progress/style/index.d.ts +2 -0
- package/lib/progress/style/index.js +5 -0
- package/lib/progress/style/index.less +4 -0
- package/lib/progress/style/lineProgress.less +74 -0
- package/lib/radio/Radio.d.ts +18 -0
- package/lib/radio/Radio.js +102 -0
- package/lib/radio/RadioButton.d.ts +3 -0
- package/lib/radio/RadioButton.js +82 -0
- package/lib/radio/RadioGroup.d.ts +14 -0
- package/lib/radio/RadioGroup.js +75 -0
- package/lib/radio/context.d.ts +9 -0
- package/lib/radio/context.js +12 -0
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio/index.js +13 -0
- package/lib/radio/style/css.js +5 -0
- package/lib/radio/style/index.css +273 -0
- package/lib/radio/style/index.d.ts +2 -0
- package/lib/radio/style/index.js +5 -0
- package/lib/radio/style/index.less +197 -0
- package/lib/radio/style/mixin.less +16 -0
- package/lib/rate/index.d.ts +2 -0
- package/lib/rate/index.js +13 -0
- package/lib/rate/interface.d.ts +20 -0
- package/lib/rate/interface.js +6 -0
- package/lib/rate/rate.d.ts +9 -0
- package/lib/rate/rate.js +313 -0
- package/lib/rate/style/css.js +5 -0
- package/lib/rate/style/index.css +181 -0
- package/lib/rate/style/index.d.ts +2 -0
- package/lib/rate/style/index.js +5 -0
- package/lib/rate/style/index.less +167 -0
- package/lib/row/index.d.ts +3 -0
- package/lib/row/index.js +11 -0
- package/lib/row/style/css.js +5 -0
- package/lib/row/style/index.d.ts +2 -0
- package/lib/row/style/index.js +5 -0
- package/lib/search/Search.d.ts +14 -0
- package/lib/search/Search.js +193 -0
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +13 -0
- package/lib/search/style/css.js +5 -0
- package/lib/search/style/index.css +146 -0
- package/lib/search/style/index.d.ts +2 -0
- package/lib/search/style/index.js +5 -0
- package/lib/search/style/index.less +97 -0
- package/lib/select/index.d.ts +38 -0
- package/lib/select/index.js +138 -0
- package/lib/select/src/OptGroup.d.ts +12 -0
- package/lib/select/src/OptGroup.js +15 -0
- package/lib/select/src/Option.d.ts +14 -0
- package/lib/select/src/Option.js +15 -0
- package/lib/select/src/OptionList.d.ts +41 -0
- package/lib/select/src/OptionList.js +556 -0
- package/lib/select/src/Select.d.ts +50 -0
- package/lib/select/src/Select.js +128 -0
- package/lib/select/src/SelectTrigger.d.ts +27 -0
- package/lib/select/src/SelectTrigger.js +156 -0
- package/lib/select/src/Selector/Input.d.ts +26 -0
- package/lib/select/src/Selector/Input.js +119 -0
- package/lib/select/src/Selector/MultipleSelector.d.ts +19 -0
- package/lib/select/src/Selector/MultipleSelector.js +218 -0
- package/lib/select/src/Selector/SingleSelector.d.ts +9 -0
- package/lib/select/src/Selector/SingleSelector.js +109 -0
- package/lib/select/src/Selector/index.d.ts +82 -0
- package/lib/select/src/Selector/index.js +193 -0
- package/lib/select/src/TransBtn.d.ts +13 -0
- package/lib/select/src/TransBtn.js +61 -0
- package/lib/select/src/generate.d.ts +147 -0
- package/lib/select/src/generate.js +946 -0
- package/lib/select/src/hooks/useCacheDisplayValue.d.ts +2 -0
- package/lib/select/src/hooks/useCacheDisplayValue.js +48 -0
- package/lib/select/src/hooks/useCacheOptions.d.ts +8 -0
- package/lib/select/src/hooks/useCacheOptions.js +35 -0
- package/lib/select/src/hooks/useDelayReset.d.ts +5 -0
- package/lib/select/src/hooks/useDelayReset.js +54 -0
- package/lib/select/src/hooks/useLayoutEffect.d.ts +5 -0
- package/lib/select/src/hooks/useLayoutEffect.js +32 -0
- package/lib/select/src/hooks/useLock.d.ts +7 -0
- package/lib/select/src/hooks/useLock.js +47 -0
- package/lib/select/src/hooks/useSelectTriggerControl.d.ts +1 -0
- package/lib/select/src/hooks/useSelectTriggerControl.js +46 -0
- package/lib/select/src/index.d.ts +10 -0
- package/lib/select/src/index.js +33 -0
- package/lib/select/src/interface/generator.d.ts +45 -0
- package/lib/select/src/interface/generator.js +8 -0
- package/lib/select/src/interface/index.d.ts +42 -0
- package/lib/select/src/interface/index.js +5 -0
- package/lib/select/src/utils/commonUtil.d.ts +30 -0
- package/lib/select/src/utils/commonUtil.js +125 -0
- package/lib/select/src/utils/legacyUtil.d.ts +3 -0
- package/lib/select/src/utils/legacyUtil.js +77 -0
- package/lib/select/src/utils/valueUtil.d.ts +25 -0
- package/lib/select/src/utils/valueUtil.js +302 -0
- package/lib/select/src/utils/warningPropsUtil.d.ts +3 -0
- package/lib/select/src/utils/warningPropsUtil.js +132 -0
- package/lib/select/style/css.js +7 -0
- package/lib/select/style/index.css +717 -0
- package/lib/select/style/index.d.ts +3 -0
- package/lib/select/style/index.js +7 -0
- package/lib/select/style/index.less +352 -0
- package/lib/select/style/mixin.less +12 -0
- package/lib/select/style/multiple.less +262 -0
- package/lib/select/style/single.less +185 -0
- package/lib/select/utils/iconUtil.d.ts +16 -0
- package/lib/select/utils/iconUtil.js +89 -0
- package/lib/slider/SliderTooltip.d.ts +4 -0
- package/lib/slider/SliderTooltip.js +60 -0
- package/lib/slider/index.d.ts +4 -0
- package/lib/slider/index.js +176 -0
- package/lib/slider/interface.d.ts +63 -0
- package/lib/slider/interface.js +5 -0
- package/lib/slider/style/css.js +5 -0
- package/lib/slider/style/index.css +309 -0
- package/lib/slider/style/index.d.ts +2 -0
- package/lib/slider/style/index.js +5 -0
- package/lib/slider/style/index.less +208 -0
- package/lib/steps/index.d.ts +38 -0
- package/lib/steps/index.js +94 -0
- package/lib/steps/interface.d.ts +6 -0
- package/lib/steps/interface.js +5 -0
- package/lib/steps/src/step.d.ts +30 -0
- package/lib/steps/src/step.js +212 -0
- package/lib/steps/src/steps.d.ts +51 -0
- package/lib/steps/src/steps.js +155 -0
- package/lib/steps/style/css.js +5 -0
- package/lib/steps/style/custom-icon.less +37 -0
- package/lib/steps/style/index.css +876 -0
- package/lib/steps/style/index.d.ts +2 -0
- package/lib/steps/style/index.js +5 -0
- package/lib/steps/style/index.less +267 -0
- package/lib/steps/style/label-placement.less +40 -0
- package/lib/steps/style/nav.less +122 -0
- package/lib/steps/style/progress-dot.less +107 -0
- package/lib/steps/style/progress.less +23 -0
- package/lib/steps/style/rtl.less +244 -0
- package/lib/steps/style/small.less +58 -0
- package/lib/steps/style/vertical.less +81 -0
- package/lib/style/components.less +47 -0
- package/lib/style/core/global.less +63 -0
- package/lib/style/core/index.less +2 -0
- package/lib/style/core/motion/fade.less +33 -0
- package/lib/style/core/motion/slide.less +122 -0
- package/lib/style/core/motion/zoom.less +168 -0
- package/lib/style/core/motion.less +3 -0
- package/lib/style/css.js +3 -0
- package/lib/style/index.css +1072 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/style/index.js +3 -0
- package/lib/style/index.less +3 -0
- package/lib/style/mixins/index.less +3 -0
- package/lib/style/mixins/motion.less +31 -0
- package/lib/style/mixins/utils.less +83 -0
- package/lib/style/themes/dark/colors.less +72 -0
- package/lib/style/themes/dark/components/button.less +31 -0
- package/lib/style/themes/dark/components/checkbox.less +1 -0
- package/lib/style/themes/dark/components/index.less +3 -0
- package/lib/style/themes/dark/components/modal.less +47 -0
- package/lib/style/themes/dark/config.less +252 -0
- package/lib/style/themes/dark/index.less +3 -0
- package/lib/style/themes/default/colors.less +73 -0
- package/lib/style/themes/default/components/affix.less +4 -0
- package/lib/style/themes/default/components/alert.less +28 -0
- package/lib/style/themes/default/components/anchor.less +21 -0
- package/lib/style/themes/default/components/backtop.less +9 -0
- package/lib/style/themes/default/components/badge.less +28 -0
- package/lib/style/themes/default/components/breadcrumb.less +10 -0
- package/lib/style/themes/default/components/button.less +45 -0
- package/lib/style/themes/default/components/card.less +82 -0
- package/lib/style/themes/default/components/carousel.less +35 -0
- package/lib/style/themes/default/components/cascader.less +55 -0
- package/lib/style/themes/default/components/checkbox.less +26 -0
- package/lib/style/themes/default/components/collapse.less +19 -0
- package/lib/style/themes/default/components/datePicker.less +36 -0
- package/lib/style/themes/default/components/dialogbox.less +4 -0
- package/lib/style/themes/default/components/drawer.less +11 -0
- package/lib/style/themes/default/components/dropdown.less +34 -0
- package/lib/style/themes/default/components/empty.less +4 -0
- package/lib/style/themes/default/components/form.less +64 -0
- package/lib/style/themes/default/components/grid.less +5 -0
- package/lib/style/themes/default/components/index.less +45 -0
- package/lib/style/themes/default/components/input.less +57 -0
- package/lib/style/themes/default/components/inputNumber.less +23 -0
- package/lib/style/themes/default/components/link.less +13 -0
- package/lib/style/themes/default/components/loading.less +18 -0
- package/lib/style/themes/default/components/menu.less +64 -0
- package/lib/style/themes/default/components/modal.less +55 -0
- package/lib/style/themes/default/components/pagination.less +51 -0
- package/lib/style/themes/default/components/popconfirm.less +3 -0
- package/lib/style/themes/default/components/popover.less +40 -0
- package/lib/style/themes/default/components/progress.less +13 -0
- package/lib/style/themes/default/components/radio.less +32 -0
- package/lib/style/themes/default/components/rate.less +26 -0
- package/lib/style/themes/default/components/search.less +18 -0
- package/lib/style/themes/default/components/select.less +107 -0
- package/lib/style/themes/default/components/slider.less +28 -0
- package/lib/style/themes/default/components/steps.less +53 -0
- package/lib/style/themes/default/components/switch.less +24 -0
- package/lib/style/themes/default/components/table.less +37 -0
- package/lib/style/themes/default/components/tabs.less +37 -0
- package/lib/style/themes/default/components/tag.less +32 -0
- package/lib/style/themes/default/components/timePicker.less +28 -0
- package/lib/style/themes/default/components/timeline.less +64 -0
- package/lib/style/themes/default/components/toast.less +9 -0
- package/lib/style/themes/default/components/transfer.less +8 -0
- package/lib/style/themes/default/components/tree.less +20 -0
- package/lib/style/themes/default/components/upload.less +13 -0
- package/lib/style/themes/default/config.less +1184 -0
- package/lib/style/themes/default/index.less +3 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/switch/index.d.ts +4 -0
- package/lib/switch/index.js +92 -0
- package/lib/switch/interface.d.ts +18 -0
- package/lib/switch/interface.js +5 -0
- package/lib/switch/style/css.js +5 -0
- package/lib/switch/style/index.css +209 -0
- package/lib/switch/style/index.d.ts +2 -0
- package/lib/switch/style/index.js +5 -0
- package/lib/switch/style/index.less +142 -0
- package/lib/table/Column.d.ts +7 -0
- package/lib/table/Column.js +17 -0
- package/lib/table/ColumnGroup.d.ts +9 -0
- package/lib/table/ColumnGroup.js +17 -0
- package/lib/table/ExpandIcon.d.ts +11 -0
- package/lib/table/ExpandIcon.js +47 -0
- package/lib/table/Space.d.ts +8 -0
- package/lib/table/Space.js +44 -0
- package/lib/table/Table.d.ts +50 -0
- package/lib/table/Table.js +462 -0
- package/lib/table/baseTable/Body/BodyRow.d.ts +26 -0
- package/lib/table/baseTable/Body/BodyRow.js +199 -0
- package/lib/table/baseTable/Body/ExpandedRow.d.ts +14 -0
- package/lib/table/baseTable/Body/ExpandedRow.js +73 -0
- package/lib/table/baseTable/Body/MeasureCell.d.ts +6 -0
- package/lib/table/baseTable/Body/MeasureCell.js +44 -0
- package/lib/table/baseTable/Body/MeasureRow.d.ts +7 -0
- package/lib/table/baseTable/Body/MeasureRow.js +72 -0
- package/lib/table/baseTable/Body/index.d.ts +15 -0
- package/lib/table/baseTable/Body/index.js +140 -0
- package/lib/table/baseTable/Cell/index.d.ts +39 -0
- package/lib/table/baseTable/Cell/index.js +271 -0
- package/lib/table/baseTable/ColGroup.d.ts +9 -0
- package/lib/table/baseTable/ColGroup.js +69 -0
- package/lib/table/baseTable/FixedHolder/index.d.ts +21 -0
- package/lib/table/baseTable/FixedHolder/index.js +180 -0
- package/lib/table/baseTable/Footer/Cell.d.ts +11 -0
- package/lib/table/baseTable/Footer/Cell.js +63 -0
- package/lib/table/baseTable/Footer/Row.d.ts +7 -0
- package/lib/table/baseTable/Footer/Row.js +34 -0
- package/lib/table/baseTable/Footer/Summary.d.ts +14 -0
- package/lib/table/baseTable/Footer/Summary.js +25 -0
- package/lib/table/baseTable/Footer/index.d.ts +19 -0
- package/lib/table/baseTable/Footer/index.js +50 -0
- package/lib/table/baseTable/Header/Header.d.ts +10 -0
- package/lib/table/baseTable/Header/Header.js +120 -0
- package/lib/table/baseTable/Header/HeaderRow.d.ts +16 -0
- package/lib/table/baseTable/Header/HeaderRow.js +76 -0
- package/lib/table/baseTable/Panel/index.d.ts +7 -0
- package/lib/table/baseTable/Panel/index.js +25 -0
- package/lib/table/baseTable/Table.d.ts +90 -0
- package/lib/table/baseTable/Table.js +750 -0
- package/lib/table/baseTable/constant.d.ts +1 -0
- package/lib/table/baseTable/constant.js +8 -0
- package/lib/table/baseTable/context/BodyContext.d.ts +18 -0
- package/lib/table/baseTable/context/BodyContext.js +18 -0
- package/lib/table/baseTable/context/ExpandedRowContext.d.ts +9 -0
- package/lib/table/baseTable/context/ExpandedRowContext.js +18 -0
- package/lib/table/baseTable/context/HoverContext.d.ts +8 -0
- package/lib/table/baseTable/context/HoverContext.js +18 -0
- package/lib/table/baseTable/context/ResizeContext.d.ts +6 -0
- package/lib/table/baseTable/context/ResizeContext.js +18 -0
- package/lib/table/baseTable/context/StickyContext.d.ts +3 -0
- package/lib/table/baseTable/context/StickyContext.js +19 -0
- package/lib/table/baseTable/context/TableContext.d.ts +13 -0
- package/lib/table/baseTable/context/TableContext.js +18 -0
- package/lib/table/baseTable/hooks/useColumns.d.ts +23 -0
- package/lib/table/baseTable/hooks/useColumns.js +277 -0
- package/lib/table/baseTable/hooks/useFlattenRecords.d.ts +17 -0
- package/lib/table/baseTable/hooks/useFlattenRecords.js +76 -0
- package/lib/table/baseTable/hooks/useFrame.d.ts +7 -0
- package/lib/table/baseTable/hooks/useFrame.js +84 -0
- package/lib/table/baseTable/hooks/useSticky.d.ts +10 -0
- package/lib/table/baseTable/hooks/useSticky.js +51 -0
- package/lib/table/baseTable/hooks/useStickyOffsets.d.ts +6 -0
- package/lib/table/baseTable/hooks/useStickyOffsets.js +50 -0
- package/lib/table/baseTable/index.d.ts +7 -0
- package/lib/table/baseTable/index.js +45 -0
- package/lib/table/baseTable/interface.d.ts +149 -0
- package/lib/table/baseTable/interface.js +5 -0
- package/lib/table/baseTable/stickyScrollBar.d.ts +11 -0
- package/lib/table/baseTable/stickyScrollBar.js +206 -0
- package/lib/table/baseTable/sugar/Column.d.ts +10 -0
- package/lib/table/baseTable/sugar/Column.js +20 -0
- package/lib/table/baseTable/sugar/ColumnGroup.d.ts +12 -0
- package/lib/table/baseTable/sugar/ColumnGroup.js +20 -0
- package/lib/table/baseTable/utils/expandUtil.d.ts +4 -0
- package/lib/table/baseTable/utils/expandUtil.js +62 -0
- package/lib/table/baseTable/utils/fixUtil.d.ts +13 -0
- package/lib/table/baseTable/utils/fixUtil.js +52 -0
- package/lib/table/baseTable/utils/legacyUtil.d.ts +5 -0
- package/lib/table/baseTable/utils/legacyUtil.js +54 -0
- package/lib/table/baseTable/utils/valueUtil.d.ts +11 -0
- package/lib/table/baseTable/utils/valueUtil.js +99 -0
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +20 -0
- package/lib/table/hooks/useFilter/FilterDropdown.js +414 -0
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +11 -0
- package/lib/table/hooks/useFilter/FilterSearch.js +47 -0
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +7 -0
- package/lib/table/hooks/useFilter/FilterWrapper.js +26 -0
- package/lib/table/hooks/useFilter/index.d.ts +23 -0
- package/lib/table/hooks/useFilter/index.js +231 -0
- package/lib/table/hooks/useLazyKVMap.d.ts +2 -0
- package/lib/table/hooks/useLazyKVMap.js +53 -0
- package/lib/table/hooks/usePagination.d.ts +4 -0
- package/lib/table/hooks/usePagination.js +126 -0
- package/lib/table/hooks/useSelection.d.ts +19 -0
- package/lib/table/hooks/useSelection.js +635 -0
- package/lib/table/hooks/useSorter.d.ts +24 -0
- package/lib/table/hooks/useSorter.js +370 -0
- package/lib/table/hooks/useTitleColumns.d.ts +2 -0
- package/lib/table/hooks/useTitleColumns.js +40 -0
- package/lib/table/index.d.ts +5 -0
- package/lib/table/index.js +13 -0
- package/lib/table/interface.d.ts +140 -0
- package/lib/table/interface.js +5 -0
- package/lib/table/style/base.less +238 -0
- package/lib/table/style/bordered.less +135 -0
- package/lib/table/style/css.js +25 -0
- package/lib/table/style/index.css +1115 -0
- package/lib/table/style/index.d.ts +12 -0
- package/lib/table/style/index.js +25 -0
- package/lib/table/style/index.less +798 -0
- package/lib/table/style/radius.less +45 -0
- package/lib/table/style/rtl.less +168 -0
- package/lib/table/style/size.less +46 -0
- package/lib/table/style/space.less +5 -0
- package/lib/table/util.d.ts +4 -0
- package/lib/table/util.js +32 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +13 -0
- package/lib/tabs/src/TabContext.d.ts +8 -0
- package/lib/tabs/src/TabContext.js +12 -0
- package/lib/tabs/src/TabNavList/AddButton.d.ts +10 -0
- package/lib/tabs/src/TabNavList/AddButton.js +42 -0
- package/lib/tabs/src/TabNavList/OperationNode.d.ts +21 -0
- package/lib/tabs/src/TabNavList/OperationNode.js +258 -0
- package/lib/tabs/src/TabNavList/TabNode.d.ts +23 -0
- package/lib/tabs/src/TabNavList/TabNode.js +212 -0
- package/lib/tabs/src/TabNavList/index.d.ts +25 -0
- package/lib/tabs/src/TabNavList/index.js +609 -0
- package/lib/tabs/src/TabPanelList/TabPane.d.ts +18 -0
- package/lib/tabs/src/TabPanelList/TabPane.js +69 -0
- package/lib/tabs/src/TabPanelList/index.d.ts +11 -0
- package/lib/tabs/src/TabPanelList/index.js +56 -0
- package/lib/tabs/src/Tabs.d.ts +34 -0
- package/lib/tabs/src/Tabs.js +263 -0
- package/lib/tabs/src/hooks/useOffsets.d.ts +2 -0
- package/lib/tabs/src/hooks/useOffsets.js +48 -0
- package/lib/tabs/src/hooks/useRaf.d.ts +4 -0
- package/lib/tabs/src/hooks/useRaf.js +69 -0
- package/lib/tabs/src/hooks/useRefs.d.ts +5 -0
- package/lib/tabs/src/hooks/useRefs.js +32 -0
- package/lib/tabs/src/hooks/useSyncState.d.ts +3 -0
- package/lib/tabs/src/hooks/useSyncState.js +39 -0
- package/lib/tabs/src/hooks/useTouchMove.d.ts +2 -0
- package/lib/tabs/src/hooks/useTouchMove.js +176 -0
- package/lib/tabs/src/hooks/useVisibleRange.d.ts +16 -0
- package/lib/tabs/src/hooks/useVisibleRange.js +77 -0
- package/lib/tabs/src/index.d.ts +7 -0
- package/lib/tabs/src/index.js +21 -0
- package/lib/tabs/src/interface.d.ts +47 -0
- package/lib/tabs/src/interface.js +5 -0
- package/lib/tabs/style/card.less +105 -0
- package/lib/tabs/style/css.js +5 -0
- package/lib/tabs/style/dropdown.less +70 -0
- package/lib/tabs/style/index.css +635 -0
- package/lib/tabs/style/index.d.ts +2 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/style/index.less +262 -0
- package/lib/tabs/style/position.less +208 -0
- package/lib/tabs/style/rtl.less +84 -0
- package/lib/tabs/style/size.less +41 -0
- package/lib/tabs/tabs.d.ts +19 -0
- package/lib/tabs/tabs.js +98 -0
- package/lib/tag/CheckableTag.d.ts +16 -0
- package/lib/tag/CheckableTag.js +66 -0
- package/lib/tag/index.d.ts +24 -0
- package/lib/tag/index.js +146 -0
- package/lib/tag/style/css.js +5 -0
- package/lib/tag/style/index.css +339 -0
- package/lib/tag/style/index.d.ts +2 -0
- package/lib/tag/style/index.js +5 -0
- package/lib/tag/style/index.less +201 -0
- package/lib/tag/style/rtl.less +28 -0
- package/lib/time-picker/index.d.ts +30 -0
- package/lib/time-picker/index.js +79 -0
- package/lib/time-picker/locale/en_US.d.ts +3 -0
- package/lib/time-picker/locale/en_US.js +21 -0
- package/lib/time-picker/locale/zh_CN.d.ts +3 -0
- package/lib/time-picker/locale/zh_CN.js +21 -0
- package/lib/time-picker/style/css.js +7 -0
- package/lib/time-picker/style/index.css +519 -0
- package/lib/time-picker/style/index.d.ts +3 -0
- package/lib/time-picker/style/index.js +7 -0
- package/lib/time-picker/style/index.less +380 -0
- package/lib/timeline/index.d.ts +2 -0
- package/lib/timeline/index.js +13 -0
- package/lib/timeline/interface.d.ts +27 -0
- package/lib/timeline/interface.js +5 -0
- package/lib/timeline/style/common.less +118 -0
- package/lib/timeline/style/css.js +5 -0
- package/lib/timeline/style/horizontal.less +27 -0
- package/lib/timeline/style/index.css +861 -0
- package/lib/timeline/style/index.d.ts +2 -0
- package/lib/timeline/style/index.js +5 -0
- package/lib/timeline/style/index.less +34 -0
- package/lib/timeline/style/numberHorizontal.less +32 -0
- package/lib/timeline/style/numberVertical.less +35 -0
- package/lib/timeline/style/theme.less +60 -0
- package/lib/timeline/style/vertical.less +38 -0
- package/lib/timeline/timeline.d.ts +8 -0
- package/lib/timeline/timeline.js +92 -0
- package/lib/timeline/timelineItem.d.ts +9 -0
- package/lib/timeline/timelineItem.js +153 -0
- package/lib/toast/base.d.ts +55 -0
- package/lib/toast/base.js +338 -0
- package/lib/toast/hooks/useNotification.d.ts +7 -0
- package/lib/toast/hooks/useNotification.js +75 -0
- package/lib/toast/index.d.ts +6 -0
- package/lib/toast/index.js +194 -0
- package/lib/toast/style/css.js +5 -0
- package/lib/toast/style/index.css +263 -0
- package/lib/toast/style/index.d.ts +2 -0
- package/lib/toast/style/index.js +5 -0
- package/lib/toast/style/index.less +270 -0
- package/lib/tooltip/index.d.ts +48 -0
- package/lib/tooltip/index.js +245 -0
- package/lib/tooltip/placements.d.ts +21 -0
- package/lib/tooltip/placements.js +105 -0
- package/lib/tooltip/style/css.js +5 -0
- package/lib/tooltip/style/index.css +191 -0
- package/lib/tooltip/style/index.d.ts +2 -0
- package/lib/tooltip/style/index.js +5 -0
- package/lib/tooltip/style/index.less +233 -0
- package/lib/tooltip/style/rtl.less +14 -0
- package/lib/transfer/dataSource.d.ts +8 -0
- package/lib/transfer/dataSource.js +160 -0
- package/lib/transfer/index.d.ts +46 -0
- package/lib/transfer/index.js +101 -0
- package/lib/transfer/sourceList.d.ts +7 -0
- package/lib/transfer/sourceList.js +190 -0
- package/lib/transfer/style/css.js +5 -0
- package/lib/transfer/style/index.css +347 -0
- package/lib/transfer/style/index.d.ts +2 -0
- package/lib/transfer/style/index.js +5 -0
- package/lib/transfer/style/index.less +210 -0
- package/lib/transfer/target.d.ts +8 -0
- package/lib/transfer/target.js +153 -0
- package/lib/transfer/targetList.d.ts +7 -0
- package/lib/transfer/targetList.js +148 -0
- package/lib/transfer/util.d.ts +2 -0
- package/lib/transfer/util.js +36 -0
- package/lib/tree/index.d.ts +3 -0
- package/lib/tree/index.js +13 -0
- package/lib/tree/style/css.js +5 -0
- package/lib/tree/style/index.css +476 -0
- package/lib/tree/style/index.d.ts +2 -0
- package/lib/tree/style/index.js +5 -0
- package/lib/tree/style/index.less +201 -0
- package/lib/tree/style/mixin.less +41 -0
- package/lib/tree/tree.d.ts +43 -0
- package/lib/tree/tree.js +421 -0
- package/lib/tree/utils/dragHelper.d.ts +8 -0
- package/lib/tree/utils/dragHelper.js +48 -0
- package/lib/tree/utils/iconHelper.d.ts +3 -0
- package/lib/tree/utils/iconHelper.js +28 -0
- package/lib/tree/utils/nodeHelper.d.ts +8 -0
- package/lib/tree/utils/nodeHelper.js +167 -0
- package/lib/upload/BaseUpload/AjaxUploader.d.ts +33 -0
- package/lib/upload/BaseUpload/AjaxUploader.js +496 -0
- package/lib/upload/BaseUpload/Upload.d.ts +27 -0
- package/lib/upload/BaseUpload/Upload.js +89 -0
- package/lib/upload/BaseUpload/attr-accept.d.ts +3 -0
- package/lib/upload/BaseUpload/attr-accept.js +67 -0
- package/lib/upload/BaseUpload/index.d.ts +4 -0
- package/lib/upload/BaseUpload/index.js +17 -0
- package/lib/upload/BaseUpload/interface.d.ts +59 -0
- package/lib/upload/BaseUpload/interface.js +5 -0
- package/lib/upload/BaseUpload/request.d.ts +4 -0
- package/lib/upload/BaseUpload/request.js +114 -0
- package/lib/upload/BaseUpload/traverseFileTree.d.ts +14 -0
- package/lib/upload/BaseUpload/traverseFileTree.js +76 -0
- package/lib/upload/BaseUpload/uid.d.ts +1 -0
- package/lib/upload/BaseUpload/uid.js +18 -0
- package/lib/upload/Dragger.d.ts +7 -0
- package/lib/upload/Dragger.js +57 -0
- package/lib/upload/Upload.d.ts +10 -0
- package/lib/upload/Upload.js +534 -0
- package/lib/upload/UploadList/ListItem.d.ts +29 -0
- package/lib/upload/UploadList/ListItem.js +248 -0
- package/lib/upload/UploadList/index.d.ts +4 -0
- package/lib/upload/UploadList/index.js +333 -0
- package/lib/upload/index.d.ts +4 -0
- package/lib/upload/index.js +20 -0
- package/lib/upload/interface.d.ts +139 -0
- package/lib/upload/interface.js +5 -0
- package/lib/upload/style/css.js +11 -0
- package/lib/upload/style/index.css +645 -0
- package/lib/upload/style/index.d.ts +5 -0
- package/lib/upload/style/index.js +11 -0
- package/lib/upload/style/index.less +637 -0
- package/lib/upload/utils.d.ts +9 -0
- package/lib/upload/utils.js +169 -0
- package/lib/virtual-list/Filler.d.ts +15 -0
- package/lib/virtual-list/Filler.js +74 -0
- package/lib/virtual-list/Item.d.ts +6 -0
- package/lib/virtual-list/Item.js +25 -0
- package/lib/virtual-list/List.d.ts +39 -0
- package/lib/virtual-list/List.js +386 -0
- package/lib/virtual-list/ScrollBar.d.ts +43 -0
- package/lib/virtual-list/ScrollBar.js +279 -0
- package/lib/virtual-list/hooks/useChildren.d.ts +3 -0
- package/lib/virtual-list/hooks/useChildren.js +32 -0
- package/lib/virtual-list/hooks/useDiffItem.d.ts +2 -0
- package/lib/virtual-list/hooks/useDiffItem.js +44 -0
- package/lib/virtual-list/hooks/useFrameWheel.d.ts +6 -0
- package/lib/virtual-list/hooks/useFrameWheel.js +58 -0
- package/lib/virtual-list/hooks/useHeights.d.ts +3 -0
- package/lib/virtual-list/hooks/useHeights.js +79 -0
- package/lib/virtual-list/hooks/useMobileTouchMove.d.ts +2 -0
- package/lib/virtual-list/hooks/useMobileTouchMove.js +83 -0
- package/lib/virtual-list/hooks/useOriginScroll.d.ts +2 -0
- package/lib/virtual-list/hooks/useOriginScroll.js +48 -0
- package/lib/virtual-list/hooks/useScrollTo.d.ts +5 -0
- package/lib/virtual-list/hooks/useScrollTo.js +121 -0
- package/lib/virtual-list/index.d.ts +3 -0
- package/lib/virtual-list/index.js +13 -0
- package/lib/virtual-list/interface.d.ts +8 -0
- package/lib/virtual-list/interface.js +5 -0
- package/lib/virtual-list/mock.d.ts +8 -0
- package/lib/virtual-list/mock.js +29 -0
- package/lib/virtual-list/utils/CacheMap.d.ts +8 -0
- package/lib/virtual-list/utils/CacheMap.js +36 -0
- package/lib/virtual-list/utils/algorithmUtil.d.ts +23 -0
- package/lib/virtual-list/utils/algorithmUtil.js +99 -0
- package/lib/virtual-list/utils/isFirefox.d.ts +2 -0
- package/lib/virtual-list/utils/isFirefox.js +14 -0
- package/package.json +193 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* upload 上传
|
|
7
|
+
* author zhousheng
|
|
8
|
+
*/
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import CSSMotion from 'rc-motion';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import EyeOutlined from "acud-icon/es/icons/OutlinedEye";
|
|
13
|
+
import DeleteOutlined from "acud-icon/es/icons/OutlinedDelete";
|
|
14
|
+
import OutlinedClose from "acud-icon/es/icons/OutlinedClose";
|
|
15
|
+
import DownloadOutlined from "acud-icon/es/icons/OutlinedCloudDownload";
|
|
16
|
+
import OutlinedRefresh from "acud-icon/es/icons/OutlinedRefresh";
|
|
17
|
+
import Tooltip from '../../tooltip';
|
|
18
|
+
import Progress from '../../progress';
|
|
19
|
+
import { ConfigContext } from '../../config-provider';
|
|
20
|
+
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21
|
+
var _classNames3;
|
|
22
|
+
|
|
23
|
+
var prefixCls = _ref.prefixCls,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
style = _ref.style,
|
|
26
|
+
locale = _ref.locale,
|
|
27
|
+
listType = _ref.listType,
|
|
28
|
+
file = _ref.file,
|
|
29
|
+
items = _ref.items,
|
|
30
|
+
progressProps = _ref.progress,
|
|
31
|
+
iconRender = _ref.iconRender,
|
|
32
|
+
actionIconRender = _ref.actionIconRender,
|
|
33
|
+
itemRender = _ref.itemRender,
|
|
34
|
+
isImgUrl = _ref.isImgUrl,
|
|
35
|
+
showPreviewIcon = _ref.showPreviewIcon,
|
|
36
|
+
showRemoveIcon = _ref.showRemoveIcon,
|
|
37
|
+
showDownloadIcon = _ref.showDownloadIcon,
|
|
38
|
+
internalShowUploadIcon = _ref.showUploadIcon,
|
|
39
|
+
customRemoveIcon = _ref.removeIcon,
|
|
40
|
+
customUploadIcon = _ref.uploadIcon,
|
|
41
|
+
customDownloadIcon = _ref.downloadIcon,
|
|
42
|
+
onPreview = _ref.onPreview,
|
|
43
|
+
onDownload = _ref.onDownload,
|
|
44
|
+
onClose = _ref.onClose,
|
|
45
|
+
onUpload = _ref.onUpload;
|
|
46
|
+
|
|
47
|
+
var _a, _b; // Delay to show the progress bar
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
var _React$useState = React.useState(false),
|
|
51
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
52
|
+
showProgress = _React$useState2[0],
|
|
53
|
+
setShowProgress = _React$useState2[1];
|
|
54
|
+
|
|
55
|
+
var progressRafRef = React.useRef(); // 外部传入的file 无法重传,根据originFileObj来判断是本地选中的
|
|
56
|
+
|
|
57
|
+
var showUploadIcon = React.useMemo(function () {
|
|
58
|
+
return !!(file === null || file === void 0 ? void 0 : file.originFileObj) && internalShowUploadIcon;
|
|
59
|
+
}, [file, internalShowUploadIcon]);
|
|
60
|
+
React.useEffect(function () {
|
|
61
|
+
progressRafRef.current = setTimeout(function () {
|
|
62
|
+
setShowProgress(true);
|
|
63
|
+
}, 300);
|
|
64
|
+
return function () {
|
|
65
|
+
window.clearTimeout(progressRafRef.current);
|
|
66
|
+
};
|
|
67
|
+
}, []); // This is used for legacy span make scrollHeight the wrong value.
|
|
68
|
+
// We will force these to be `display: block` with non `picture-card`
|
|
69
|
+
|
|
70
|
+
var spanClassName = "".concat(prefixCls, "-span");
|
|
71
|
+
var iconNode = iconRender(file);
|
|
72
|
+
var icon = /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "".concat(prefixCls, "-text-icon")
|
|
74
|
+
}, iconNode);
|
|
75
|
+
|
|
76
|
+
if (listType === 'picture' || listType === 'picture-card') {
|
|
77
|
+
if (file.status === 'uploading' || !file.thumbUrl && !file.url) {
|
|
78
|
+
var _classNames;
|
|
79
|
+
|
|
80
|
+
var uploadingClassName = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-list-item-thumbnail"), true), _defineProperty(_classNames, "".concat(prefixCls, "-list-item-file"), file.status !== 'uploading'), _classNames));
|
|
81
|
+
icon = /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: uploadingClassName
|
|
83
|
+
}, iconNode);
|
|
84
|
+
} else {
|
|
85
|
+
var _classNames2;
|
|
86
|
+
|
|
87
|
+
var thumbnail = (isImgUrl === null || isImgUrl === void 0 ? void 0 : isImgUrl(file)) ? /*#__PURE__*/React.createElement("img", {
|
|
88
|
+
src: file.thumbUrl || file.url,
|
|
89
|
+
alt: file.name,
|
|
90
|
+
className: "".concat(prefixCls, "-list-item-image")
|
|
91
|
+
}) : iconNode;
|
|
92
|
+
var aClassName = classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-list-item-thumbnail"), true), _defineProperty(_classNames2, "".concat(prefixCls, "-list-item-file"), isImgUrl && !isImgUrl(file)), _classNames2));
|
|
93
|
+
icon = /*#__PURE__*/React.createElement("a", {
|
|
94
|
+
className: aClassName,
|
|
95
|
+
onClick: function onClick(e) {
|
|
96
|
+
return onPreview(file, e);
|
|
97
|
+
},
|
|
98
|
+
href: file.url || file.thumbUrl,
|
|
99
|
+
target: "_blank",
|
|
100
|
+
rel: "noopener noreferrer"
|
|
101
|
+
}, thumbnail);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var infoUploadingClass = classNames((_classNames3 = {}, _defineProperty(_classNames3, "".concat(prefixCls, "-list-item"), true), _defineProperty(_classNames3, "".concat(prefixCls, "-list-item-").concat(file.status), true), _defineProperty(_classNames3, "".concat(prefixCls, "-list-item-list-type-").concat(listType), true), _classNames3));
|
|
106
|
+
var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
|
|
107
|
+
var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || listType === 'text' ? /*#__PURE__*/React.createElement(OutlinedClose, null) : /*#__PURE__*/React.createElement(DeleteOutlined, null), function () {
|
|
108
|
+
return onClose(file);
|
|
109
|
+
}, prefixCls, locale.removeFile) : null;
|
|
110
|
+
var downloadIcon = showDownloadIcon ? actionIconRender((typeof customDownloadIcon === 'function' ? customDownloadIcon(file) : customDownloadIcon) || /*#__PURE__*/React.createElement(DownloadOutlined, null), function () {
|
|
111
|
+
return onDownload(file);
|
|
112
|
+
}, prefixCls, locale.downloadFile) : null; // 下载icon
|
|
113
|
+
|
|
114
|
+
var downloadOrDelete = listType !== 'picture-card' && /*#__PURE__*/React.createElement("span", {
|
|
115
|
+
key: "download-delete",
|
|
116
|
+
className: classNames("".concat(prefixCls, "-list-item-card-actions"), {
|
|
117
|
+
picture: listType === 'picture'
|
|
118
|
+
})
|
|
119
|
+
}, downloadIcon, removeIcon);
|
|
120
|
+
var listItemNameClass = classNames("".concat(prefixCls, "-list-item-name"));
|
|
121
|
+
var preview = file.url ? [/*#__PURE__*/React.createElement("a", _extends({
|
|
122
|
+
key: "view",
|
|
123
|
+
target: "_blank",
|
|
124
|
+
rel: "noopener noreferrer",
|
|
125
|
+
className: listItemNameClass,
|
|
126
|
+
title: file.name
|
|
127
|
+
}, linkProps, {
|
|
128
|
+
href: file.url,
|
|
129
|
+
onClick: function onClick(e) {
|
|
130
|
+
return onPreview(file, e);
|
|
131
|
+
}
|
|
132
|
+
}), file.name), downloadOrDelete] : [/*#__PURE__*/React.createElement("span", {
|
|
133
|
+
key: "view",
|
|
134
|
+
className: listItemNameClass,
|
|
135
|
+
onClick: function onClick(e) {
|
|
136
|
+
return onPreview(file, e);
|
|
137
|
+
},
|
|
138
|
+
title: file.name
|
|
139
|
+
}, file.name), downloadOrDelete];
|
|
140
|
+
var previewStyle = {
|
|
141
|
+
pointerEvents: 'none',
|
|
142
|
+
opacity: 0.5
|
|
143
|
+
}; // 预览icon
|
|
144
|
+
|
|
145
|
+
var previewIcon = showPreviewIcon ? /*#__PURE__*/React.createElement("a", {
|
|
146
|
+
href: file.url || file.thumbUrl,
|
|
147
|
+
target: "_blank",
|
|
148
|
+
rel: "noopener noreferrer",
|
|
149
|
+
style: file.url || file.thumbUrl ? undefined : previewStyle,
|
|
150
|
+
onClick: function onClick(e) {
|
|
151
|
+
return onPreview(file, e);
|
|
152
|
+
},
|
|
153
|
+
title: locale.previewFile
|
|
154
|
+
}, /*#__PURE__*/React.createElement(EyeOutlined, null)) : null; // 上传icon
|
|
155
|
+
|
|
156
|
+
var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(OutlinedRefresh, null), function () {
|
|
157
|
+
return onUpload(file);
|
|
158
|
+
}, prefixCls, locale.uploadFile) : null;
|
|
159
|
+
var actions = listType === 'picture-card' && file.status !== 'uploading' && /*#__PURE__*/React.createElement("span", {
|
|
160
|
+
className: "".concat(prefixCls, "-list-item-actions")
|
|
161
|
+
}, file.status === 'done' && previewIcon, file.status === 'done' && downloadIcon, ['error', 'done'].includes(file.status) && uploadIcon, removeIcon);
|
|
162
|
+
var message;
|
|
163
|
+
|
|
164
|
+
if (file.response && typeof file.response === 'string') {
|
|
165
|
+
message = file.response;
|
|
166
|
+
} else {
|
|
167
|
+
message = ((_a = file.error) === null || _a === void 0 ? void 0 : _a.statusText) || ((_b = file.error) === null || _b === void 0 ? void 0 : _b.message) || locale.uploadError;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
var iconAndPreview = /*#__PURE__*/React.createElement("span", {
|
|
171
|
+
className: spanClassName
|
|
172
|
+
}, icon, preview);
|
|
173
|
+
|
|
174
|
+
var _React$useContext = React.useContext(ConfigContext),
|
|
175
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
176
|
+
|
|
177
|
+
var rootPrefixCls = getPrefixCls();
|
|
178
|
+
var dom = /*#__PURE__*/React.createElement("div", {
|
|
179
|
+
className: infoUploadingClass
|
|
180
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
181
|
+
className: "".concat(prefixCls, "-list-item-info")
|
|
182
|
+
}, iconAndPreview), actions, showProgress && /*#__PURE__*/React.createElement(CSSMotion, {
|
|
183
|
+
motionName: "".concat(rootPrefixCls, "-fade"),
|
|
184
|
+
visible: file.status === 'uploading',
|
|
185
|
+
motionDeadline: 2000
|
|
186
|
+
}, function (_ref2) {
|
|
187
|
+
var motionClassName = _ref2.className;
|
|
188
|
+
// show loading icon if upload progress listener is disabled
|
|
189
|
+
var loadingProgress = 'percent' in file ? /*#__PURE__*/React.createElement(Progress, _extends({
|
|
190
|
+
trailColor: "#DADBDD",
|
|
191
|
+
strokeColor: "#2468F2",
|
|
192
|
+
infoType: "none",
|
|
193
|
+
type: "line",
|
|
194
|
+
percent: file.percent
|
|
195
|
+
}, progressProps)) : null;
|
|
196
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197
|
+
className: classNames("".concat(prefixCls, "-list-item-progress"), motionClassName)
|
|
198
|
+
}, loadingProgress);
|
|
199
|
+
}));
|
|
200
|
+
var listContainerNameClass = classNames("".concat(prefixCls, "-list-").concat(listType, "-container"), className);
|
|
201
|
+
var item = file.status === 'error' ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
202
|
+
title: message,
|
|
203
|
+
overlayClassName: "error-tooltip",
|
|
204
|
+
getPopupContainer: function getPopupContainer(node) {
|
|
205
|
+
return node.parentNode;
|
|
206
|
+
}
|
|
207
|
+
}, dom) : dom;
|
|
208
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
209
|
+
className: listContainerNameClass,
|
|
210
|
+
style: style,
|
|
211
|
+
ref: ref
|
|
212
|
+
}, itemRender ? itemRender(item, file, items, {
|
|
213
|
+
download: onDownload.bind(null, file),
|
|
214
|
+
preview: onPreview.bind(null, file),
|
|
215
|
+
upload: onUpload.bind(null, file),
|
|
216
|
+
remove: onClose.bind(null, file)
|
|
217
|
+
}) : item);
|
|
218
|
+
});
|
|
219
|
+
export default ListItem;
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* upload 上传
|
|
8
|
+
* author zhousheng
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
import CSSMotion, { CSSMotionList } from 'rc-motion';
|
|
12
|
+
import classNames from 'classnames';
|
|
13
|
+
import LoadingOutlined from "acud-icon/es/icons/OutlinedLoading";
|
|
14
|
+
import PaperClipOutlined from "acud-icon/es/icons/OutlinedFileDoc";
|
|
15
|
+
import OutlinedFileImage from "acud-icon/es/icons/OutlinedFileImage";
|
|
16
|
+
import OutlinedFileVideo from "acud-icon/es/icons/OutlinedFileVideo";
|
|
17
|
+
import OutlinedFileMusic from "acud-icon/es/icons/OutlinedFileMusic";
|
|
18
|
+
import OutlinedFileZip from "acud-icon/es/icons/OutlinedFileZip";
|
|
19
|
+
import OutlinedPhoto from "acud-icon/es/icons/OutlinedPhoto";
|
|
20
|
+
import FileTwoTone from "acud-icon/es/icons/OutlinedFile";
|
|
21
|
+
import { cloneElement, isValidElement } from '../../_util/reactNode';
|
|
22
|
+
import { previewImage, isImageUrl, getFiletypeByName } from '../utils';
|
|
23
|
+
import collapseMotion from '../../_util/motion';
|
|
24
|
+
import { ConfigContext } from '../../config-provider';
|
|
25
|
+
import Button from '../../button';
|
|
26
|
+
import useForceUpdate from '../../_util/hooks/useForceUpdate';
|
|
27
|
+
import ListItem from './ListItem';
|
|
28
|
+
|
|
29
|
+
var listItemMotion = _extends({}, collapseMotion);
|
|
30
|
+
|
|
31
|
+
delete listItemMotion.onAppearEnd;
|
|
32
|
+
delete listItemMotion.onEnterEnd;
|
|
33
|
+
delete listItemMotion.onLeaveEnd;
|
|
34
|
+
|
|
35
|
+
var renderIcon = function renderIcon(fileName) {
|
|
36
|
+
var type = getFiletypeByName(fileName);
|
|
37
|
+
var Icon = PaperClipOutlined;
|
|
38
|
+
|
|
39
|
+
switch (type) {
|
|
40
|
+
case 'image':
|
|
41
|
+
Icon = OutlinedFileImage;
|
|
42
|
+
break;
|
|
43
|
+
|
|
44
|
+
case 'video':
|
|
45
|
+
Icon = OutlinedFileVideo;
|
|
46
|
+
break;
|
|
47
|
+
|
|
48
|
+
case 'audio':
|
|
49
|
+
Icon = OutlinedFileMusic;
|
|
50
|
+
break;
|
|
51
|
+
|
|
52
|
+
case 'zip':
|
|
53
|
+
Icon = OutlinedFileZip;
|
|
54
|
+
break;
|
|
55
|
+
|
|
56
|
+
default:
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
61
|
+
width: 14
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
66
|
+
var _classNames;
|
|
67
|
+
|
|
68
|
+
var listType = _ref.listType,
|
|
69
|
+
previewFile = _ref.previewFile,
|
|
70
|
+
onPreview = _ref.onPreview,
|
|
71
|
+
onDownload = _ref.onDownload,
|
|
72
|
+
onRemove = _ref.onRemove,
|
|
73
|
+
onUpload = _ref.onUpload,
|
|
74
|
+
locale = _ref.locale,
|
|
75
|
+
iconRender = _ref.iconRender,
|
|
76
|
+
isImgUrl = _ref.isImageUrl,
|
|
77
|
+
customizePrefixCls = _ref.prefixCls,
|
|
78
|
+
_ref$items = _ref.items,
|
|
79
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
80
|
+
showPreviewIcon = _ref.showPreviewIcon,
|
|
81
|
+
showUploadIcon = _ref.showUploadIcon,
|
|
82
|
+
showRemoveIcon = _ref.showRemoveIcon,
|
|
83
|
+
showDownloadIcon = _ref.showDownloadIcon,
|
|
84
|
+
removeIcon = _ref.removeIcon,
|
|
85
|
+
downloadIcon = _ref.downloadIcon,
|
|
86
|
+
uploadIcon = _ref.uploadIcon,
|
|
87
|
+
progress = _ref.progress,
|
|
88
|
+
appendAction = _ref.appendAction,
|
|
89
|
+
itemRender = _ref.itemRender;
|
|
90
|
+
var forceUpdate = useForceUpdate();
|
|
91
|
+
|
|
92
|
+
var _React$useState = React.useState(false),
|
|
93
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
94
|
+
motionAppear = _React$useState2[0],
|
|
95
|
+
setMotionAppear = _React$useState2[1];
|
|
96
|
+
|
|
97
|
+
var _React$useContext = React.useContext(ConfigContext),
|
|
98
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
99
|
+
direction = _React$useContext.direction; // ============================= Render =============================
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
var prefixCls = getPrefixCls('upload', customizePrefixCls); // ============================= Effect =============================
|
|
103
|
+
|
|
104
|
+
React.useEffect(function () {
|
|
105
|
+
if (listType !== 'picture' && listType !== 'picture-card') {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
(items || []).forEach(function (file) {
|
|
110
|
+
if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
file.thumbUrl = '';
|
|
115
|
+
|
|
116
|
+
if (previewFile) {
|
|
117
|
+
previewFile(file.originFileObj).then(function (previewDataUrl) {
|
|
118
|
+
// Need append '' to avoid dead loop
|
|
119
|
+
file.thumbUrl = previewDataUrl || '';
|
|
120
|
+
forceUpdate();
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}, [listType, items, previewFile]);
|
|
125
|
+
React.useEffect(function () {
|
|
126
|
+
setMotionAppear(true);
|
|
127
|
+
}, []); // ============================= Events =============================
|
|
128
|
+
|
|
129
|
+
var onInternalPreview = function onInternalPreview(file, e) {
|
|
130
|
+
if (!onPreview) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
135
|
+
return onPreview(file);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var onInternalDownload = function onInternalDownload(file) {
|
|
139
|
+
if (typeof onDownload === 'function') {
|
|
140
|
+
onDownload(file);
|
|
141
|
+
} else if (file.url) {
|
|
142
|
+
window.open(file.url);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var onInternalClose = function onInternalClose(file) {
|
|
147
|
+
onRemove === null || onRemove === void 0 ? void 0 : onRemove(file);
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
var onInternalUpload = function onInternalUpload(file) {
|
|
151
|
+
onUpload === null || onUpload === void 0 ? void 0 : onUpload(file);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
var internalIconRender = function internalIconRender(file) {
|
|
155
|
+
if (iconRender) {
|
|
156
|
+
return iconRender(file, listType);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
var isLoading = file.status === 'uploading';
|
|
160
|
+
var fileIcon = isImgUrl && isImgUrl(file) ? /*#__PURE__*/React.createElement(OutlinedPhoto, {
|
|
161
|
+
width: 24
|
|
162
|
+
}) : /*#__PURE__*/React.createElement(FileTwoTone, {
|
|
163
|
+
width: 24
|
|
164
|
+
});
|
|
165
|
+
var icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
166
|
+
animation: "spin"
|
|
167
|
+
}) : renderIcon(file.name || file.fileName);
|
|
168
|
+
|
|
169
|
+
if (listType === 'picture') {
|
|
170
|
+
icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
171
|
+
animation: "spin"
|
|
172
|
+
}) : fileIcon;
|
|
173
|
+
} else if (listType === 'picture-card') {
|
|
174
|
+
icon = isLoading ? locale.uploading : fileIcon;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return icon;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
var actionIconRender = function actionIconRender(customIcon, callback, prefixCls, title) {
|
|
181
|
+
var btnProps = {
|
|
182
|
+
type: 'text',
|
|
183
|
+
size: 'small',
|
|
184
|
+
title: title,
|
|
185
|
+
onClick: function onClick(e) {
|
|
186
|
+
callback();
|
|
187
|
+
|
|
188
|
+
if (isValidElement(customIcon) && customIcon.props.onClick) {
|
|
189
|
+
customIcon.props.onClick(e);
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
className: "".concat(prefixCls, "-list-item-card-actions-btn")
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
if (isValidElement(customIcon)) {
|
|
196
|
+
var btnIcon = cloneElement(customIcon, _extends(_extends({}, customIcon.props), {
|
|
197
|
+
onClick: function onClick() {}
|
|
198
|
+
}));
|
|
199
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, btnProps, {
|
|
200
|
+
icon: btnIcon
|
|
201
|
+
}));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return /*#__PURE__*/React.createElement(Button, btnProps, /*#__PURE__*/React.createElement("span", null, customIcon));
|
|
205
|
+
}; // ============================== Ref ===============================
|
|
206
|
+
// Test needs
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
React.useImperativeHandle(ref, function () {
|
|
210
|
+
return {
|
|
211
|
+
handlePreview: onInternalPreview,
|
|
212
|
+
handleDownload: onInternalDownload
|
|
213
|
+
};
|
|
214
|
+
}); // >>> Motion config
|
|
215
|
+
|
|
216
|
+
var motionKeyList = _toConsumableArray(items.map(function (file) {
|
|
217
|
+
return {
|
|
218
|
+
key: file.uid,
|
|
219
|
+
file: file
|
|
220
|
+
};
|
|
221
|
+
}));
|
|
222
|
+
|
|
223
|
+
var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate'; // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;
|
|
224
|
+
|
|
225
|
+
var motionConfig = {
|
|
226
|
+
motionDeadline: 2000,
|
|
227
|
+
motionName: "".concat(prefixCls, "-").concat(animationDirection),
|
|
228
|
+
keys: motionKeyList,
|
|
229
|
+
motionAppear: motionAppear
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
if (listType !== 'picture-card') {
|
|
233
|
+
motionConfig = _extends(_extends({}, listItemMotion), motionConfig);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
var listClassNames = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-list"), true), _defineProperty(_classNames, "".concat(prefixCls, "-list-").concat(listType), true), _defineProperty(_classNames, "".concat(prefixCls, "-list-rtl"), direction === 'rtl'), _classNames));
|
|
237
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
238
|
+
className: listClassNames
|
|
239
|
+
}, appendAction && /*#__PURE__*/React.createElement(CSSMotion, motionConfig, function (_ref2) {
|
|
240
|
+
var motionClassName = _ref2.className,
|
|
241
|
+
motionStyle = _ref2.style;
|
|
242
|
+
return cloneElement(appendAction, function (oriProps) {
|
|
243
|
+
return {
|
|
244
|
+
className: classNames(oriProps.className, motionClassName),
|
|
245
|
+
style: _extends(_extends({}, motionStyle), oriProps.style)
|
|
246
|
+
};
|
|
247
|
+
});
|
|
248
|
+
}), /*#__PURE__*/React.createElement(CSSMotionList, _extends({}, motionConfig, {
|
|
249
|
+
component: false
|
|
250
|
+
}), function (_ref3) {
|
|
251
|
+
var key = _ref3.key,
|
|
252
|
+
file = _ref3.file,
|
|
253
|
+
motionClassName = _ref3.className,
|
|
254
|
+
motionStyle = _ref3.style;
|
|
255
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
256
|
+
key: key,
|
|
257
|
+
locale: locale,
|
|
258
|
+
prefixCls: prefixCls,
|
|
259
|
+
className: motionClassName,
|
|
260
|
+
style: motionStyle,
|
|
261
|
+
file: file,
|
|
262
|
+
items: items,
|
|
263
|
+
progress: progress,
|
|
264
|
+
listType: listType,
|
|
265
|
+
isImgUrl: isImgUrl,
|
|
266
|
+
showPreviewIcon: showPreviewIcon,
|
|
267
|
+
showUploadIcon: showUploadIcon,
|
|
268
|
+
showRemoveIcon: showRemoveIcon,
|
|
269
|
+
showDownloadIcon: showDownloadIcon,
|
|
270
|
+
removeIcon: removeIcon,
|
|
271
|
+
downloadIcon: downloadIcon,
|
|
272
|
+
uploadIcon: uploadIcon,
|
|
273
|
+
iconRender: internalIconRender,
|
|
274
|
+
actionIconRender: actionIconRender,
|
|
275
|
+
itemRender: itemRender,
|
|
276
|
+
onPreview: onInternalPreview,
|
|
277
|
+
onDownload: onInternalDownload,
|
|
278
|
+
onClose: onInternalClose,
|
|
279
|
+
onUpload: onInternalUpload
|
|
280
|
+
});
|
|
281
|
+
}));
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
var UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);
|
|
285
|
+
UploadList.displayName = 'UploadList';
|
|
286
|
+
UploadList.defaultProps = {
|
|
287
|
+
listType: 'text',
|
|
288
|
+
progress: {
|
|
289
|
+
strokeWidth: 2 // showInfo: false
|
|
290
|
+
|
|
291
|
+
},
|
|
292
|
+
showUploadIcon: true,
|
|
293
|
+
showRemoveIcon: true,
|
|
294
|
+
showDownloadIcon: false,
|
|
295
|
+
showPreviewIcon: true,
|
|
296
|
+
previewFile: previewImage,
|
|
297
|
+
isImageUrl: isImageUrl
|
|
298
|
+
};
|
|
299
|
+
export default UploadList;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RcFile as OriRcFile, UploadRequestOption as RcCustomRequestOptions } from './BaseUpload/interface';
|
|
3
|
+
import { ProgressProps } from '../progress';
|
|
4
|
+
export interface RcFile extends OriRcFile {
|
|
5
|
+
readonly lastModifiedDate: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
|
|
8
|
+
export interface HttpRequestHeader {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UploadFile<T = any> {
|
|
12
|
+
uid: string;
|
|
13
|
+
size?: number;
|
|
14
|
+
name: string;
|
|
15
|
+
fileName?: string;
|
|
16
|
+
lastModified?: number;
|
|
17
|
+
lastModifiedDate?: Date;
|
|
18
|
+
url?: string;
|
|
19
|
+
status?: UploadFileStatus;
|
|
20
|
+
percent?: number;
|
|
21
|
+
thumbUrl?: string;
|
|
22
|
+
originFileObj?: RcFile;
|
|
23
|
+
response?: T;
|
|
24
|
+
error?: any;
|
|
25
|
+
linkProps?: any;
|
|
26
|
+
type?: string;
|
|
27
|
+
xhr?: T;
|
|
28
|
+
preview?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface InternalUploadFile<T = any> extends UploadFile<T> {
|
|
31
|
+
originFileObj: RcFile;
|
|
32
|
+
}
|
|
33
|
+
export interface UploadChangeParam<T extends object = UploadFile> {
|
|
34
|
+
file: T;
|
|
35
|
+
fileList: UploadFile[];
|
|
36
|
+
event?: {
|
|
37
|
+
percent: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface ShowUploadListInterface {
|
|
41
|
+
showRemoveIcon?: boolean;
|
|
42
|
+
showPreviewIcon?: boolean;
|
|
43
|
+
showDownloadIcon?: boolean;
|
|
44
|
+
showUploadIcon?: boolean;
|
|
45
|
+
uploadIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
46
|
+
removeIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
47
|
+
downloadIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
48
|
+
}
|
|
49
|
+
export interface UploadLocale {
|
|
50
|
+
uploading?: string;
|
|
51
|
+
removeFile?: string;
|
|
52
|
+
downloadFile?: string;
|
|
53
|
+
uploadFile?: string;
|
|
54
|
+
uploadError?: string;
|
|
55
|
+
previewFile?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type UploadType = 'drag' | 'select';
|
|
58
|
+
export declare type UploadListType = 'text' | 'picture' | 'picture-card';
|
|
59
|
+
export declare type UploadListProgressProps = Omit<ProgressProps, 'percent' | 'type'>;
|
|
60
|
+
export declare type ItemRender<T = any> = (originNode: React.ReactElement, file: UploadFile, fileList: Array<UploadFile<T>>, actions: {
|
|
61
|
+
download: () => void;
|
|
62
|
+
preview: () => void;
|
|
63
|
+
remove: () => void;
|
|
64
|
+
upload: () => void;
|
|
65
|
+
}) => React.ReactNode;
|
|
66
|
+
declare type PreviewFileHandler = (file: File | Blob) => PromiseLike<string>;
|
|
67
|
+
declare type TransformFileHandler = (file: RcFile) => string | Blob | File | PromiseLike<string | Blob | File>;
|
|
68
|
+
declare type BeforeUploadValueType = void | boolean | string | Blob | File;
|
|
69
|
+
export interface UploadProps<T = any> {
|
|
70
|
+
type?: UploadType;
|
|
71
|
+
name?: string;
|
|
72
|
+
defaultFileList?: Array<UploadFile<T>>;
|
|
73
|
+
fileList?: Array<UploadFile<T>>;
|
|
74
|
+
action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike<string>);
|
|
75
|
+
directory?: boolean;
|
|
76
|
+
data?: Record<string, unknown> | ((file: UploadFile<T> | string | Blob) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
77
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'post' | 'put' | 'patch';
|
|
78
|
+
headers?: HttpRequestHeader;
|
|
79
|
+
showUploadList?: boolean | ShowUploadListInterface;
|
|
80
|
+
multiple?: boolean;
|
|
81
|
+
accept?: string;
|
|
82
|
+
beforeUpload?: (file: RcFile, FileList: RcFile[]) => BeforeUploadValueType | Promise<BeforeUploadValueType>;
|
|
83
|
+
onChange?: (info: UploadChangeParam) => void;
|
|
84
|
+
onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
85
|
+
listType?: UploadListType;
|
|
86
|
+
className?: string;
|
|
87
|
+
onPreview?: (file: UploadFile<T>) => void;
|
|
88
|
+
onUpload?: (file: UploadFile<T>) => void;
|
|
89
|
+
onDownload?: (file: UploadFile<T>) => void;
|
|
90
|
+
onRemove?: (file: UploadFile<T>) => void | boolean | Promise<void | boolean>;
|
|
91
|
+
supportServerRender?: boolean;
|
|
92
|
+
style?: React.CSSProperties;
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
prefixCls?: string;
|
|
95
|
+
customRequest?: (options: RcCustomRequestOptions) => void;
|
|
96
|
+
withCredentials?: boolean;
|
|
97
|
+
openFileDialogOnClick?: boolean;
|
|
98
|
+
locale?: UploadLocale;
|
|
99
|
+
id?: string;
|
|
100
|
+
previewFile?: PreviewFileHandler;
|
|
101
|
+
/** @deprecated Please use `beforeUpload` directly */
|
|
102
|
+
transformFile?: TransformFileHandler;
|
|
103
|
+
iconRender?: (file: UploadFile<T>, listType?: UploadListType) => React.ReactNode;
|
|
104
|
+
isImageUrl?: (file: UploadFile) => boolean;
|
|
105
|
+
progress?: UploadListProgressProps;
|
|
106
|
+
itemRender?: ItemRender<T>;
|
|
107
|
+
/** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
|
|
108
|
+
maxCount?: number;
|
|
109
|
+
description?: React.ReactNode;
|
|
110
|
+
desPosition?: 'bottom' | 'right';
|
|
111
|
+
}
|
|
112
|
+
export interface UploadState<T = any> {
|
|
113
|
+
fileList: UploadFile<T>[];
|
|
114
|
+
dragState: string;
|
|
115
|
+
}
|
|
116
|
+
export interface UploadListProps<T = any> {
|
|
117
|
+
listType?: UploadListType;
|
|
118
|
+
onPreview?: (file: UploadFile<T>) => void;
|
|
119
|
+
onUpload?: (file: UploadFile<T>) => void;
|
|
120
|
+
onDownload?: (file: UploadFile<T>) => void;
|
|
121
|
+
onRemove?: (file: UploadFile<T>) => void | boolean;
|
|
122
|
+
items?: Array<UploadFile<T>>;
|
|
123
|
+
progress?: UploadListProgressProps;
|
|
124
|
+
prefixCls?: string;
|
|
125
|
+
showRemoveIcon?: boolean;
|
|
126
|
+
showDownloadIcon?: boolean;
|
|
127
|
+
showPreviewIcon?: boolean;
|
|
128
|
+
showUploadIcon?: boolean;
|
|
129
|
+
removeIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
130
|
+
downloadIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
131
|
+
uploadIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode);
|
|
132
|
+
locale: UploadLocale;
|
|
133
|
+
previewFile?: PreviewFileHandler;
|
|
134
|
+
iconRender?: (file: UploadFile<T>, listType?: UploadListType) => React.ReactNode;
|
|
135
|
+
isImageUrl?: (file: UploadFile) => boolean;
|
|
136
|
+
appendAction?: React.ReactNode;
|
|
137
|
+
itemRender?: ItemRender<T>;
|
|
138
|
+
}
|
|
139
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|