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,692 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* @author: xuemin02
|
|
8
|
+
* @Date: 2021-05-11 15:52:07
|
|
9
|
+
*/
|
|
10
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
|
|
13
|
+
for (var p in s) {
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
import get from 'lodash/get';
|
|
24
|
+
import first from 'lodash/first';
|
|
25
|
+
import React, { useImperativeHandle, forwardRef, useRef, useCallback, useMemo, useState, useEffect, useLayoutEffect, Fragment } from 'react';
|
|
26
|
+
import classnames from 'classnames';
|
|
27
|
+
import KeyCode from "rc-util/es/KeyCode";
|
|
28
|
+
import omit from "rc-util/es/omit";
|
|
29
|
+
import arrayTreeFilter from 'array-tree-filter';
|
|
30
|
+
import OutlinedLeft from "acud-icon/es/icons/OutlinedLeft";
|
|
31
|
+
import OutlinedRight from "acud-icon/es/icons/OutlinedRight";
|
|
32
|
+
import OutlinedRefresh from "acud-icon/es/icons/OutlinedRefresh";
|
|
33
|
+
import OutlinedClose from "acud-icon/es/icons/OutlinedClose";
|
|
34
|
+
import OutlinedDown from "acud-icon/es/icons/OutlinedDown";
|
|
35
|
+
import Input from '../input';
|
|
36
|
+
import Tag from '../tag';
|
|
37
|
+
import Tooltip from '../tooltip';
|
|
38
|
+
import RcCascader from './Cascader';
|
|
39
|
+
import renderEmpty from './renderEmpty';
|
|
40
|
+
import { ConfigConsumer } from '../config-provider';
|
|
41
|
+
import SizeContext from '../config-provider/SizeContext';
|
|
42
|
+
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
|
43
|
+
import { replaceElement } from '../_util/reactNode';
|
|
44
|
+
import devWarning from '../_util/devWarning';
|
|
45
|
+
import { getTransitionName } from '../_util/motion';
|
|
46
|
+
import { isEqualArrays, isIncludeArray } from './utils';
|
|
47
|
+
import './style';
|
|
48
|
+
var keepFilteredValueField = '__KEEP_FILTERED_OPTION_VALUE'; // limit the filtered item count by default
|
|
49
|
+
|
|
50
|
+
var defaultLimit = 50;
|
|
51
|
+
|
|
52
|
+
var highlightKeyword = function highlightKeyword(str, keyword, prefixCls) {
|
|
53
|
+
return str.split(keyword).map(function (node, index) {
|
|
54
|
+
return index === 0 ? node : [/*#__PURE__*/React.createElement("span", {
|
|
55
|
+
className: "".concat(prefixCls, "-menu-item-keyword"),
|
|
56
|
+
key: "seperator"
|
|
57
|
+
}, keyword), node];
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var flattenTree = function flattenTree(options, props) {
|
|
62
|
+
var ancestor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
63
|
+
var names = getFilledFieldNames(props);
|
|
64
|
+
var flattenOptions = [];
|
|
65
|
+
var childrenName = names.children;
|
|
66
|
+
options.forEach(function (option) {
|
|
67
|
+
var path = ancestor.concat(option);
|
|
68
|
+
|
|
69
|
+
if (props.changeOnSelect || !option[childrenName] || !option[childrenName].length) {
|
|
70
|
+
flattenOptions.push(path);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (option[childrenName]) {
|
|
74
|
+
flattenOptions = flattenOptions.concat(flattenTree(option[childrenName], props, path));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return flattenOptions;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var defaultDisplayRender = function defaultDisplayRender(label) {
|
|
81
|
+
return label.join('>');
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var defaultFilterOption = function defaultFilterOption(inputValue, path, names) {
|
|
85
|
+
return path.some(function (option) {
|
|
86
|
+
return option[names.label].indexOf(inputValue) > -1;
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
var defaultRenderFilteredOption = function defaultRenderFilteredOption(inputValue, path, prefixCls, names) {
|
|
91
|
+
return path.map(function (option, index) {
|
|
92
|
+
var label = option[names.label];
|
|
93
|
+
var node = label.indexOf(inputValue) > -1 ? highlightKeyword(label, inputValue, prefixCls) : label;
|
|
94
|
+
return index === 0 ? node : ['>', node];
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
var defaultSortFilteredOption = function defaultSortFilteredOption(a, b, inputValue, names) {
|
|
99
|
+
var callback = function callback(elem) {
|
|
100
|
+
return elem[names.label].indexOf(inputValue) > -1;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
return a.findIndex(callback) - b.findIndex(callback);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var getFieldNames = function getFieldNames(_ref) {
|
|
107
|
+
var fieldNames = _ref.fieldNames;
|
|
108
|
+
return fieldNames;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var getFilledFieldNames = function getFilledFieldNames(props) {
|
|
112
|
+
var fieldNames = getFieldNames(props) || {};
|
|
113
|
+
var names = {
|
|
114
|
+
children: fieldNames.children || 'children',
|
|
115
|
+
label: fieldNames.label || 'label',
|
|
116
|
+
value: fieldNames.value || 'value'
|
|
117
|
+
};
|
|
118
|
+
return names;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
var getEmptyNode = function getEmptyNode(renderEmpty, names, notFoundContent) {
|
|
122
|
+
var _ref2;
|
|
123
|
+
|
|
124
|
+
return _ref2 = {}, _defineProperty(_ref2, names.value, 'ANT_CASCADER_NOT_FOUND'), _defineProperty(_ref2, names.label, notFoundContent || renderEmpty('暂无数据')), _defineProperty(_ref2, "disabled", true), _defineProperty(_ref2, "isEmptyNode", true), _ref2;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
var Cascader = function Cascader(props, ref) {
|
|
128
|
+
var mode = props.mode,
|
|
129
|
+
popupPlacement = props.popupPlacement;
|
|
130
|
+
var inputRef = useRef();
|
|
131
|
+
var cachedRef = useRef({});
|
|
132
|
+
var measureRef = useRef();
|
|
133
|
+
var pickerRef = useRef();
|
|
134
|
+
var tagsRef = useRef();
|
|
135
|
+
|
|
136
|
+
var _useState = useState(props.value || props.defaultValue || []),
|
|
137
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
138
|
+
value = _useState2[0],
|
|
139
|
+
setValue = _useState2[1];
|
|
140
|
+
|
|
141
|
+
var _useState3 = useState(''),
|
|
142
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
143
|
+
inputValue = _useState4[0],
|
|
144
|
+
setInputValue = _useState4[1];
|
|
145
|
+
|
|
146
|
+
var _useState5 = useState(0),
|
|
147
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
148
|
+
inputWidth = _useState6[0],
|
|
149
|
+
setInputWidth = _useState6[1];
|
|
150
|
+
|
|
151
|
+
var _useState7 = useState(false),
|
|
152
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
153
|
+
inputFocused = _useState8[0],
|
|
154
|
+
setInputFocused = _useState8[1];
|
|
155
|
+
|
|
156
|
+
var _useState9 = useState(props.popupVisible),
|
|
157
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
158
|
+
popupVisible = _useState10[0],
|
|
159
|
+
setPopupVisible = _useState10[1];
|
|
160
|
+
|
|
161
|
+
var isMulti = mode === 'multiple';
|
|
162
|
+
var flattenOptions = useMemo(function () {
|
|
163
|
+
var showSearch = props.showSearch,
|
|
164
|
+
options = props.options;
|
|
165
|
+
return showSearch ? flattenTree(options, props) : undefined;
|
|
166
|
+
}, [props]);
|
|
167
|
+
var disabledValue = useMemo(function () {
|
|
168
|
+
var options = props.options;
|
|
169
|
+
var flattenOptions = flattenTree(options, props);
|
|
170
|
+
var disabledOptions = flattenOptions.filter(function (options) {
|
|
171
|
+
return options.some(function (option) {
|
|
172
|
+
return option.disabled;
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
var names = getFilledFieldNames(props);
|
|
176
|
+
return disabledOptions.map(function (options) {
|
|
177
|
+
return options.map(function (o) {
|
|
178
|
+
return o[names.value];
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}, [props]);
|
|
182
|
+
var focus = useCallback(function () {
|
|
183
|
+
var _a;
|
|
184
|
+
|
|
185
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
186
|
+
}, []);
|
|
187
|
+
var blur = useCallback(function () {
|
|
188
|
+
var _a;
|
|
189
|
+
|
|
190
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
191
|
+
}, []);
|
|
192
|
+
var getPopupPlacement = useCallback(function () {
|
|
193
|
+
var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'ltr';
|
|
194
|
+
|
|
195
|
+
if (popupPlacement !== undefined) {
|
|
196
|
+
return popupPlacement;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
200
|
+
}, [popupPlacement]);
|
|
201
|
+
var generateFilteredOptions = useCallback(function (prefixCls, renderEmpty) {
|
|
202
|
+
var showSearch = props.showSearch,
|
|
203
|
+
notFoundContent = props.notFoundContent;
|
|
204
|
+
var names = getFilledFieldNames(props);
|
|
205
|
+
var _showSearch$filter = showSearch.filter,
|
|
206
|
+
filter = _showSearch$filter === void 0 ? defaultFilterOption : _showSearch$filter,
|
|
207
|
+
_showSearch$render = showSearch.render,
|
|
208
|
+
render = _showSearch$render === void 0 ? defaultRenderFilteredOption : _showSearch$render,
|
|
209
|
+
_showSearch$sort = showSearch.sort,
|
|
210
|
+
sort = _showSearch$sort === void 0 ? defaultSortFilteredOption : _showSearch$sort,
|
|
211
|
+
_showSearch$limit = showSearch.limit,
|
|
212
|
+
limit = _showSearch$limit === void 0 ? defaultLimit : _showSearch$limit;
|
|
213
|
+
var filtered;
|
|
214
|
+
|
|
215
|
+
if (limit > 0) {
|
|
216
|
+
filtered = [];
|
|
217
|
+
var matchCount = 0;
|
|
218
|
+
flattenOptions.some(function (path) {
|
|
219
|
+
var match = filter(inputValue, path, names);
|
|
220
|
+
|
|
221
|
+
if (match) {
|
|
222
|
+
filtered.push(path);
|
|
223
|
+
matchCount += 1;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
return matchCount >= limit;
|
|
227
|
+
});
|
|
228
|
+
} else {
|
|
229
|
+
devWarning(typeof limit !== 'number', 'Cascader', "'limit' of showSearch should be positive number or false.");
|
|
230
|
+
filtered = flattenOptions.filter(function (path) {
|
|
231
|
+
return filter(inputValue, path, names);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
filtered = filtered.sort(function (a, b) {
|
|
236
|
+
return sort(a, b, inputValue, names);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
if (filtered.length > 0) {
|
|
240
|
+
var field = names.value === names.label ? keepFilteredValueField : names.value;
|
|
241
|
+
return filtered.map(function (path) {
|
|
242
|
+
var _ref3;
|
|
243
|
+
|
|
244
|
+
return _ref3 = {
|
|
245
|
+
__IS_FILTERED_OPTION: true,
|
|
246
|
+
path: path
|
|
247
|
+
}, _defineProperty(_ref3, field, path.map(function (o) {
|
|
248
|
+
return o[names.value];
|
|
249
|
+
})), _defineProperty(_ref3, names.label, render(inputValue, path, prefixCls, names)), _defineProperty(_ref3, "disabled", path.some(function (o) {
|
|
250
|
+
return !!o.disabled;
|
|
251
|
+
})), _defineProperty(_ref3, "isEmptyNode", true), _ref3;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return [getEmptyNode(renderEmpty, names, notFoundContent)];
|
|
256
|
+
}, [props, inputValue, flattenOptions]);
|
|
257
|
+
var updateValue = useCallback(function (value) {
|
|
258
|
+
var selectedOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
259
|
+
|
|
260
|
+
var _a;
|
|
261
|
+
|
|
262
|
+
if (!('value' in props)) {
|
|
263
|
+
setValue(value);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, value, selectedOptions);
|
|
267
|
+
}, [props]);
|
|
268
|
+
var handleMouseDown = useCallback(function (e) {
|
|
269
|
+
if (e.target !== inputRef.current) {
|
|
270
|
+
e.preventDefault();
|
|
271
|
+
}
|
|
272
|
+
}, []);
|
|
273
|
+
var handleClick = useCallback(function (e) {
|
|
274
|
+
if (e.target !== inputRef.current) {
|
|
275
|
+
var isIE = document.body.style.msTouchAction !== undefined;
|
|
276
|
+
|
|
277
|
+
if (isIE) {
|
|
278
|
+
setTimeout(function () {
|
|
279
|
+
focus();
|
|
280
|
+
});
|
|
281
|
+
} else {
|
|
282
|
+
focus();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}, [focus]);
|
|
286
|
+
var handlePopupVisibleChange = useCallback(function (popupVisible) {
|
|
287
|
+
var _a;
|
|
288
|
+
|
|
289
|
+
if (!('popupVisible' in props)) {
|
|
290
|
+
setPopupVisible(popupVisible);
|
|
291
|
+
setInputFocused(popupVisible);
|
|
292
|
+
setInputValue(function (prevInputValue) {
|
|
293
|
+
return popupVisible ? prevInputValue : '';
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
(_a = props.onPopupVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, popupVisible);
|
|
298
|
+
}, [props]);
|
|
299
|
+
var handleValueChange = useCallback(function (value, selectedOptions) {
|
|
300
|
+
!isMulti && setInputValue('');
|
|
301
|
+
var selectedOptionFirst = isMulti ? {} : selectedOptions[0];
|
|
302
|
+
|
|
303
|
+
if (selectedOptionFirst === null || selectedOptionFirst === void 0 ? void 0 : selectedOptionFirst.__IS_FILTERED_OPTION) {
|
|
304
|
+
var unwrappedValue = selectedOptionFirst[keepFilteredValueField] === undefined ? value[0] : selectedOptionFirst[keepFilteredValueField];
|
|
305
|
+
var unwrappedSelectedOptions = selectedOptionFirst.path;
|
|
306
|
+
updateValue(unwrappedValue, unwrappedSelectedOptions);
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
updateValue(value, selectedOptions);
|
|
311
|
+
|
|
312
|
+
if (isMulti) {
|
|
313
|
+
window.setTimeout(function () {
|
|
314
|
+
var _tagsRef$current = tagsRef.current,
|
|
315
|
+
scrollHeight = _tagsRef$current.scrollHeight,
|
|
316
|
+
clientHeight = _tagsRef$current.clientHeight;
|
|
317
|
+
var maxScrollTop = scrollHeight - clientHeight;
|
|
318
|
+
tagsRef.current.scrollTop = maxScrollTop > 0 ? maxScrollTop : 0;
|
|
319
|
+
}, 100);
|
|
320
|
+
}
|
|
321
|
+
}, [isMulti, updateValue]);
|
|
322
|
+
var handleInputClick = useCallback(function (e) {
|
|
323
|
+
if (inputFocused || popupVisible) {
|
|
324
|
+
e.stopPropagation();
|
|
325
|
+
}
|
|
326
|
+
}, [inputFocused, popupVisible]);
|
|
327
|
+
var handleInputBlur = useCallback(function () {
|
|
328
|
+
return setInputFocused(false);
|
|
329
|
+
}, []);
|
|
330
|
+
var handleInputFocus = useCallback(function () {
|
|
331
|
+
return setInputFocused(true);
|
|
332
|
+
}, []);
|
|
333
|
+
var handleInputKeyDown = useCallback(function (e, firstFilteredOptionValue) {
|
|
334
|
+
if (e.keyCode === KeyCode.BACKSPACE || e.keyCode === KeyCode.SPACE) {
|
|
335
|
+
e.stopPropagation();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (e.keyCode === KeyCode.ENTER && firstFilteredOptionValue) {
|
|
339
|
+
if (isMulti) {
|
|
340
|
+
setValue(function (prevValue) {
|
|
341
|
+
if (isIncludeArray(prevValue, firstFilteredOptionValue)) {
|
|
342
|
+
return prevValue;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
return [].concat(_toConsumableArray(prevValue), [firstFilteredOptionValue]);
|
|
346
|
+
});
|
|
347
|
+
} else {
|
|
348
|
+
setValue(firstFilteredOptionValue);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
setInputValue('');
|
|
352
|
+
handlePopupVisibleChange(false);
|
|
353
|
+
}
|
|
354
|
+
}, [isMulti, handlePopupVisibleChange]);
|
|
355
|
+
var handleInputChange = useCallback(function (e) {
|
|
356
|
+
if (!popupVisible) {
|
|
357
|
+
handlePopupVisibleChange(true);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
var inputValue = e.target.value;
|
|
361
|
+
setInputValue(inputValue);
|
|
362
|
+
}, [popupVisible, handlePopupVisibleChange]);
|
|
363
|
+
var handleSelectionItemClear = useCallback(function (e, valueIndex) {
|
|
364
|
+
e.preventDefault();
|
|
365
|
+
e.stopPropagation();
|
|
366
|
+
setValue(function (prevValue) {
|
|
367
|
+
return prevValue.filter(function (valueItem) {
|
|
368
|
+
return !isEqualArrays(valueItem, prevValue[valueIndex]);
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
}, []);
|
|
372
|
+
var handleSelectionClear = useCallback(function (e) {
|
|
373
|
+
e.preventDefault();
|
|
374
|
+
e.stopPropagation();
|
|
375
|
+
|
|
376
|
+
if (!inputValue) {
|
|
377
|
+
handlePopupVisibleChange(false);
|
|
378
|
+
cachedRef.current.clearSelectionTimeout = setTimeout(function () {
|
|
379
|
+
setValue([]);
|
|
380
|
+
}, 200);
|
|
381
|
+
} else {
|
|
382
|
+
setInputValue('');
|
|
383
|
+
}
|
|
384
|
+
}, [inputValue, handlePopupVisibleChange]);
|
|
385
|
+
var label = useMemo(function () {
|
|
386
|
+
var options = props.options,
|
|
387
|
+
_props$displayRender = props.displayRender,
|
|
388
|
+
displayRender = _props$displayRender === void 0 ? defaultDisplayRender : _props$displayRender;
|
|
389
|
+
var names = getFilledFieldNames(props);
|
|
390
|
+
|
|
391
|
+
if (isMulti) {
|
|
392
|
+
var _selectedOptions = value.map(function (valueItem) {
|
|
393
|
+
return arrayTreeFilter(options, function (o, level) {
|
|
394
|
+
return o[names.value] === valueItem[level];
|
|
395
|
+
}, {
|
|
396
|
+
childrenKeyName: names.children
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
var _label = _selectedOptions.length ? _selectedOptions.map(function (o) {
|
|
401
|
+
return o.map(function (q) {
|
|
402
|
+
return q[names.label];
|
|
403
|
+
});
|
|
404
|
+
}) : value;
|
|
405
|
+
|
|
406
|
+
return _label.map(function (labelItem) {
|
|
407
|
+
return displayRender(labelItem, _selectedOptions);
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
var unwrappedValue = Array.isArray(value[0]) ? value[0] : value;
|
|
412
|
+
var selectedOptions = arrayTreeFilter(options, function (o, level) {
|
|
413
|
+
return o[names.value] === unwrappedValue[level];
|
|
414
|
+
}, {
|
|
415
|
+
childrenKeyName: names.children
|
|
416
|
+
});
|
|
417
|
+
var label = selectedOptions.length ? selectedOptions.map(function (o) {
|
|
418
|
+
return o[names.label];
|
|
419
|
+
}) : value;
|
|
420
|
+
return displayRender(label, selectedOptions);
|
|
421
|
+
}, [isMulti, value, props]);
|
|
422
|
+
var renderCascader = useCallback(function (context, locale, size) {
|
|
423
|
+
var _classnames, _classnames2, _classnames3, _classnames5;
|
|
424
|
+
|
|
425
|
+
var _a, _b;
|
|
426
|
+
|
|
427
|
+
var customizePrefixCls = props.prefixCls,
|
|
428
|
+
customizeInputPrefixCls = props.inputPrefixCls,
|
|
429
|
+
className = props.className,
|
|
430
|
+
customizeSize = props.size,
|
|
431
|
+
_props$disabled = props.disabled,
|
|
432
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
433
|
+
_props$bordered = props.bordered,
|
|
434
|
+
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
435
|
+
_props$allowClear = props.allowClear,
|
|
436
|
+
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
|
437
|
+
_props$showSearch = props.showSearch,
|
|
438
|
+
showSearch = _props$showSearch === void 0 ? false : _props$showSearch,
|
|
439
|
+
style = props.style,
|
|
440
|
+
_props$placeholder = props.placeholder,
|
|
441
|
+
placeholder = _props$placeholder === void 0 ? locale.placeholder || 'Please select' : _props$placeholder,
|
|
442
|
+
expandIcon = props.expandIcon,
|
|
443
|
+
suffixIcon = props.suffixIcon,
|
|
444
|
+
popupClassName = props.popupClassName,
|
|
445
|
+
notFoundContent = props.notFoundContent,
|
|
446
|
+
_props$maxTagTextLeng = props.maxTagTextLength,
|
|
447
|
+
maxTagTextLength = _props$maxTagTextLeng === void 0 ? 8 : _props$maxTagTextLeng,
|
|
448
|
+
dropdownRender = props.dropdownRender,
|
|
449
|
+
children = props.children,
|
|
450
|
+
otherProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "disabled", "bordered", "allowClear", "showSearch", "style", "placeholder", "expandIcon", "suffixIcon", "popupClassName", "notFoundContent", "maxTagTextLength", "dropdownRender", "children"]);
|
|
451
|
+
|
|
452
|
+
var getContextPopupContainer = context.getPopupContainer,
|
|
453
|
+
getPrefixCls = context.getPrefixCls,
|
|
454
|
+
direction = context.direction;
|
|
455
|
+
var isRtlLayout = direction === 'rtl';
|
|
456
|
+
var mergedSize = customizeSize || size;
|
|
457
|
+
var prefixCls = getPrefixCls('cascader', customizePrefixCls);
|
|
458
|
+
var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
|
459
|
+
var sizeCls = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(inputPrefixCls, "-lg"), mergedSize === 'large'), _defineProperty(_classnames, "".concat(inputPrefixCls, "-sm"), mergedSize === 'small'), _classnames));
|
|
460
|
+
var pickerCls = classnames("".concat(prefixCls, "-picker"), (_classnames2 = {}, _defineProperty(_classnames2, "".concat(prefixCls, "-picker-multi"), isMulti), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-rtl"), isRtlLayout), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-with-input-value"), inputValue), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-disabled"), disabled), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-lg"), mergedSize === 'large'), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-sm"), mergedSize === 'small'), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-show-search"), !!showSearch), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-focused"), inputFocused), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-expand"), popupVisible), _defineProperty(_classnames2, "".concat(prefixCls, "-picker-borderless"), !bordered), _classnames2), className);
|
|
461
|
+
var arrowCls = classnames((_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefixCls, "-picker-arrow"), true), _defineProperty(_classnames3, "".concat(prefixCls, "-picker-arrow-expand"), popupVisible), _classnames3));
|
|
462
|
+
var options = props.options;
|
|
463
|
+
var names = getFilledFieldNames(props);
|
|
464
|
+
var isOptionsEmpty = !(options && options.length > 0);
|
|
465
|
+
|
|
466
|
+
if (!isOptionsEmpty) {
|
|
467
|
+
if (inputValue) {
|
|
468
|
+
options = generateFilteredOptions(prefixCls, function () {
|
|
469
|
+
return renderEmpty('未查找到任何结果');
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
} else {
|
|
473
|
+
options = [getEmptyNode(renderEmpty, names, notFoundContent)];
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (!popupVisible) {
|
|
477
|
+
options = ((_a = cachedRef.current) === null || _a === void 0 ? void 0 : _a.options) || [];
|
|
478
|
+
} else {
|
|
479
|
+
cachedRef.current.options = options;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
var expandIconNode = expandIcon || (isRtlLayout ? /*#__PURE__*/React.createElement(OutlinedLeft, null) : /*#__PURE__*/React.createElement(OutlinedRight, null));
|
|
483
|
+
var loadingIcon = /*#__PURE__*/React.createElement("span", {
|
|
484
|
+
className: "".concat(prefixCls, "-menu-item-loading-icon")
|
|
485
|
+
}, /*#__PURE__*/React.createElement(OutlinedRefresh, {
|
|
486
|
+
animation: "spin"
|
|
487
|
+
}));
|
|
488
|
+
var clearIcon = allowClear && !disabled && value.length > 0 || inputValue ? /*#__PURE__*/React.createElement(OutlinedClose, {
|
|
489
|
+
className: "".concat(prefixCls, "-picker-clear"),
|
|
490
|
+
onClick: handleSelectionClear
|
|
491
|
+
}) : null;
|
|
492
|
+
var inputIcon = suffixIcon ? replaceElement(suffixIcon, /*#__PURE__*/React.createElement("span", {
|
|
493
|
+
className: "".concat(prefixCls, "-picker-arrow"),
|
|
494
|
+
disabled: disabled
|
|
495
|
+
}, suffixIcon), function () {
|
|
496
|
+
var _classnames4;
|
|
497
|
+
|
|
498
|
+
return {
|
|
499
|
+
className: classnames((_classnames4 = {}, _defineProperty(_classnames4, suffixIcon.props.className, suffixIcon.props.className), _defineProperty(_classnames4, "".concat(prefixCls, "-picker-arrow"), true), _classnames4)),
|
|
500
|
+
disabled: disabled
|
|
501
|
+
};
|
|
502
|
+
}) : /*#__PURE__*/React.createElement(OutlinedDown, {
|
|
503
|
+
className: arrowCls,
|
|
504
|
+
disabled: disabled
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
var multiLabelContent = function () {
|
|
508
|
+
if (!isMulti) {
|
|
509
|
+
return null;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
return /*#__PURE__*/React.createElement(Fragment, null, label.map(function (labelItem, labelIndex) {
|
|
513
|
+
var displayLabel = labelItem;
|
|
514
|
+
|
|
515
|
+
if (typeof maxTagTextLength === 'number') {
|
|
516
|
+
if (typeof labelItem === 'string' || typeof labelItem === 'number') {
|
|
517
|
+
var strLabel = String(displayLabel);
|
|
518
|
+
|
|
519
|
+
if (strLabel.length > maxTagTextLength) {
|
|
520
|
+
displayLabel = "".concat(strLabel.slice(0, maxTagTextLength), "...");
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
var currentItemValue = value[labelIndex];
|
|
526
|
+
var closable = !isIncludeArray(disabledValue, currentItemValue);
|
|
527
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
528
|
+
className: "".concat(prefixCls, "-tag-wrap"),
|
|
529
|
+
key: labelIndex
|
|
530
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
531
|
+
title: labelItem
|
|
532
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
|
533
|
+
className: "".concat(prefixCls, "-tag"),
|
|
534
|
+
disabled: disabled,
|
|
535
|
+
closable: closable,
|
|
536
|
+
onClose: function onClose(e) {
|
|
537
|
+
return handleSelectionItemClear(e, labelIndex);
|
|
538
|
+
}
|
|
539
|
+
}, displayLabel)));
|
|
540
|
+
}));
|
|
541
|
+
}();
|
|
542
|
+
|
|
543
|
+
var getPopupContainer = props.getPopupContainer || getContextPopupContainer;
|
|
544
|
+
var rcCascaderPopupClassName = classnames(popupClassName, (_classnames5 = {}, _defineProperty(_classnames5, "".concat(prefixCls, "-menu-").concat(direction), direction === 'rtl'), _defineProperty(_classnames5, "".concat(prefixCls, "-menu-search"), showSearch && inputValue), _defineProperty(_classnames5, "".concat(prefixCls, "-menu-empty"), options.length === 1 && (options[0].value === 'ANT_CASCADER_NOT_FOUND' || /*#__PURE__*/React.isValidElement(options[0].value))), _classnames5));
|
|
545
|
+
var dropdownMenuColumnStyle = {};
|
|
546
|
+
var isNotFound = (options || []).length === 1 && options[0].isEmptyNode;
|
|
547
|
+
|
|
548
|
+
if (isNotFound) {
|
|
549
|
+
dropdownMenuColumnStyle.height = 'auto';
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
var resultListMatchInputWidth = showSearch.matchInputWidth !== false;
|
|
553
|
+
|
|
554
|
+
if (resultListMatchInputWidth && (inputValue || isNotFound) && pickerRef.current) {
|
|
555
|
+
dropdownMenuColumnStyle.width = (_b = pickerRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
var inputProps = omit( // Not know why these props left
|
|
559
|
+
otherProps, ['onChange', 'options', 'popupPlacement', 'transitionName', 'displayRender', 'onPopupVisibleChange', 'changeOnSelect', 'expandTrigger', 'popupVisible', 'getPopupContainer', 'loadData', 'filterOption', 'renderFilteredOption', 'sortFilteredOption', 'fieldNames', 'mode', 'menusEdgeBuffer']);
|
|
560
|
+
|
|
561
|
+
var firstFilteredOptionValue = function () {
|
|
562
|
+
var firstOption = first(options);
|
|
563
|
+
|
|
564
|
+
var _ref4 = firstOption || {},
|
|
565
|
+
isFilteredOption = _ref4.__IS_FILTERED_OPTION,
|
|
566
|
+
disabled = _ref4.disabled,
|
|
567
|
+
value = _ref4.value;
|
|
568
|
+
|
|
569
|
+
if (isFilteredOption && !disabled) {
|
|
570
|
+
return value;
|
|
571
|
+
}
|
|
572
|
+
}();
|
|
573
|
+
|
|
574
|
+
var customInput = isMulti ? /*#__PURE__*/React.createElement("div", {
|
|
575
|
+
ref: pickerRef,
|
|
576
|
+
style: style,
|
|
577
|
+
className: pickerCls,
|
|
578
|
+
disabled: disabled,
|
|
579
|
+
onClick: showSearch ? handleClick : undefined,
|
|
580
|
+
onMouseDown: showSearch ? handleMouseDown : undefined
|
|
581
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
582
|
+
className: "".concat(prefixCls, "-tags ").concat(sizeCls),
|
|
583
|
+
ref: tagsRef
|
|
584
|
+
}, multiLabelContent, /*#__PURE__*/React.createElement("div", {
|
|
585
|
+
className: "".concat(prefixCls, "-input-wrap"),
|
|
586
|
+
style: {
|
|
587
|
+
width: value && value.length ? inputWidth : '100%'
|
|
588
|
+
},
|
|
589
|
+
onFocus: showSearch ? focus : undefined,
|
|
590
|
+
onBlur: showSearch ? blur : undefined
|
|
591
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({}, inputProps, {
|
|
592
|
+
tabIndex: -1,
|
|
593
|
+
ref: inputRef,
|
|
594
|
+
prefixCls: inputPrefixCls,
|
|
595
|
+
placeholder: value && value.length > 0 ? null : placeholder,
|
|
596
|
+
className: "".concat(prefixCls, "-input ").concat(sizeCls),
|
|
597
|
+
value: inputValue,
|
|
598
|
+
disabled: disabled,
|
|
599
|
+
readOnly: !showSearch,
|
|
600
|
+
autoComplete: inputProps.autoComplete || 'off',
|
|
601
|
+
onClick: showSearch ? handleInputClick : undefined,
|
|
602
|
+
onBlur: showSearch ? handleInputBlur : undefined,
|
|
603
|
+
onFocus: showSearch ? handleInputFocus : undefined,
|
|
604
|
+
onKeyDown: function onKeyDown(e) {
|
|
605
|
+
return handleInputKeyDown(e, firstFilteredOptionValue);
|
|
606
|
+
},
|
|
607
|
+
onChange: showSearch ? handleInputChange : undefined
|
|
608
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
609
|
+
ref: measureRef,
|
|
610
|
+
className: "".concat(prefixCls, "-mirror"),
|
|
611
|
+
"aria-hidden": true
|
|
612
|
+
}, inputValue, "\xA0"))), clearIcon, inputIcon) : /*#__PURE__*/React.createElement("span", {
|
|
613
|
+
ref: pickerRef,
|
|
614
|
+
style: style,
|
|
615
|
+
className: pickerCls,
|
|
616
|
+
disabled: disabled
|
|
617
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
618
|
+
className: "".concat(prefixCls, "-picker-label"),
|
|
619
|
+
disabled: disabled
|
|
620
|
+
}, label), /*#__PURE__*/React.createElement(Input, _extends({}, inputProps, {
|
|
621
|
+
tabIndex: -1,
|
|
622
|
+
ref: inputRef,
|
|
623
|
+
prefixCls: inputPrefixCls,
|
|
624
|
+
placeholder: value && value.length > 0 ? null : placeholder,
|
|
625
|
+
className: "".concat(prefixCls, "-input ").concat(sizeCls),
|
|
626
|
+
value: inputValue,
|
|
627
|
+
disabled: disabled,
|
|
628
|
+
readOnly: !showSearch,
|
|
629
|
+
autoComplete: inputProps.autoComplete || 'off',
|
|
630
|
+
onClick: showSearch ? handleInputClick : undefined,
|
|
631
|
+
onBlur: showSearch ? handleInputBlur : undefined,
|
|
632
|
+
onKeyDown: function onKeyDown(e) {
|
|
633
|
+
return handleInputKeyDown(e, firstFilteredOptionValue);
|
|
634
|
+
},
|
|
635
|
+
onChange: showSearch ? handleInputChange : undefined
|
|
636
|
+
})), clearIcon, inputIcon);
|
|
637
|
+
var input = children || customInput;
|
|
638
|
+
var rcCascaderProps = omit(props, ['inputIcon', 'expandIcon', 'loadingIcon', 'bordered', 'className']);
|
|
639
|
+
var rootPrefixCls = getPrefixCls();
|
|
640
|
+
var firstOptionValue = get(props, 'options[0].value');
|
|
641
|
+
var initialActiveValue = firstOptionValue !== undefined ? [firstOptionValue] : undefined;
|
|
642
|
+
return /*#__PURE__*/React.createElement(RcCascader, _extends({}, rcCascaderProps, {
|
|
643
|
+
value: value,
|
|
644
|
+
initialActiveValue: initialActiveValue,
|
|
645
|
+
options: options,
|
|
646
|
+
keyword: inputValue,
|
|
647
|
+
prefixCls: prefixCls,
|
|
648
|
+
expandIcon: expandIconNode,
|
|
649
|
+
loadingIcon: loadingIcon,
|
|
650
|
+
size: mergedSize,
|
|
651
|
+
withCheckAll: !inputValue,
|
|
652
|
+
getPopupContainer: getPopupContainer,
|
|
653
|
+
popupVisible: popupVisible,
|
|
654
|
+
popupClassName: rcCascaderPopupClassName,
|
|
655
|
+
popupPlacement: getPopupPlacement(direction),
|
|
656
|
+
dropdownMenuColumnStyle: dropdownMenuColumnStyle,
|
|
657
|
+
dropdownRender: dropdownRender,
|
|
658
|
+
transitionName: getTransitionName(rootPrefixCls, 'slide-up', props.transitionName),
|
|
659
|
+
onPopupVisibleChange: handlePopupVisibleChange,
|
|
660
|
+
onChange: handleValueChange
|
|
661
|
+
}), input);
|
|
662
|
+
}, [props, isMulti, label, value, disabledValue, inputValue, inputWidth, inputFocused, popupVisible, blur, focus, getPopupPlacement, generateFilteredOptions, handleClick, handleMouseDown, handleInputClick, handleInputBlur, handleInputFocus, handleInputKeyDown, handleInputChange, handleSelectionClear, handleSelectionItemClear, handleValueChange, handlePopupVisibleChange]);
|
|
663
|
+
useImperativeHandle(ref, function () {
|
|
664
|
+
return {
|
|
665
|
+
focus: focus,
|
|
666
|
+
blur: blur
|
|
667
|
+
};
|
|
668
|
+
});
|
|
669
|
+
useLayoutEffect(function () {
|
|
670
|
+
measureRef.current && setInputWidth(measureRef.current.scrollWidth);
|
|
671
|
+
}, [inputValue]);
|
|
672
|
+
useEffect(function () {
|
|
673
|
+
return function () {
|
|
674
|
+
var _a;
|
|
675
|
+
|
|
676
|
+
var clearSelectionTimeout = (_a = cachedRef.current) === null || _a === void 0 ? void 0 : _a.clearSelectionTimeout;
|
|
677
|
+
|
|
678
|
+
if (clearSelectionTimeout) {
|
|
679
|
+
clearTimeout(clearSelectionTimeout);
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
}, []);
|
|
683
|
+
return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (context) {
|
|
684
|
+
return /*#__PURE__*/React.createElement(LocaleReceiver, null, function (locale) {
|
|
685
|
+
return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (size) {
|
|
686
|
+
return renderCascader(context, locale, size);
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
export default /*#__PURE__*/forwardRef(Cascader);
|