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,556 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = void 0;
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
|
+
|
|
16
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
17
|
+
|
|
18
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
19
|
+
|
|
20
|
+
var React = _interopRequireWildcard(require("react"));
|
|
21
|
+
|
|
22
|
+
var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
|
|
23
|
+
|
|
24
|
+
var _pickAttrs = _interopRequireDefault(require("rc-util/lib/pickAttrs"));
|
|
25
|
+
|
|
26
|
+
var _useMemo = _interopRequireDefault(require("rc-util/lib/hooks/useMemo"));
|
|
27
|
+
|
|
28
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
|
+
|
|
30
|
+
var _acudIcon = require("acud-icon");
|
|
31
|
+
|
|
32
|
+
var _valueUtil = require("./utils/valueUtil");
|
|
33
|
+
|
|
34
|
+
var _virtualList = _interopRequireDefault(require("../../virtual-list"));
|
|
35
|
+
|
|
36
|
+
var _checkbox = _interopRequireDefault(require("../../checkbox"));
|
|
37
|
+
|
|
38
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
|
+
|
|
40
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
|
+
|
|
42
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
43
|
+
var t = {};
|
|
44
|
+
|
|
45
|
+
for (var p in s) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
50
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var formatContent = function formatContent(content, searchValue, prefixCls) {
|
|
56
|
+
var lowerContent = (0, _valueUtil.toRawString)(content).toLowerCase();
|
|
57
|
+
var lowerSearch = searchValue.toLowerCase();
|
|
58
|
+
var searchStartIndex = lowerContent.indexOf(lowerSearch);
|
|
59
|
+
var len = lowerSearch.length; // 存在搜索值不在content的情况,比如key与children不一致时
|
|
60
|
+
|
|
61
|
+
if (searchStartIndex === -1) {
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, content);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, content.slice(0, searchStartIndex), /*#__PURE__*/React.createElement("span", {
|
|
66
|
+
className: "".concat(prefixCls, "-search-highlight")
|
|
67
|
+
}, content.slice(searchStartIndex, searchStartIndex + len)), content.slice(searchStartIndex + len));
|
|
68
|
+
};
|
|
69
|
+
/**{afterSearch}
|
|
70
|
+
* ;list of option display.
|
|
71
|
+
* Will fallback to dom if use customize render.
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var OptionList = function OptionList(_ref, ref) {
|
|
76
|
+
var prefixCls = _ref.prefixCls,
|
|
77
|
+
id = _ref.id,
|
|
78
|
+
flattenOptions = _ref.flattenOptions,
|
|
79
|
+
childrenAsData = _ref.childrenAsData,
|
|
80
|
+
values = _ref.values,
|
|
81
|
+
searchValue = _ref.searchValue,
|
|
82
|
+
multiple = _ref.multiple,
|
|
83
|
+
defaultActiveFirstOption = _ref.defaultActiveFirstOption,
|
|
84
|
+
height = _ref.height,
|
|
85
|
+
itemHeight = _ref.itemHeight,
|
|
86
|
+
notFoundContent = _ref.notFoundContent,
|
|
87
|
+
mode = _ref.mode,
|
|
88
|
+
open = _ref.open,
|
|
89
|
+
virtual = _ref.virtual,
|
|
90
|
+
_ref$defaultExpandGro = _ref.defaultExpandGroupKey,
|
|
91
|
+
defaultExpandGroupKey = _ref$defaultExpandGro === void 0 ? false : _ref$defaultExpandGro,
|
|
92
|
+
renderEmpty = _ref.renderEmpty,
|
|
93
|
+
onSelect = _ref.onSelect,
|
|
94
|
+
onToggleOpen = _ref.onToggleOpen,
|
|
95
|
+
onActiveValue = _ref.onActiveValue,
|
|
96
|
+
onScroll = _ref.onScroll,
|
|
97
|
+
onMouseEnter = _ref.onMouseEnter,
|
|
98
|
+
triggerChange = _ref.triggerChange,
|
|
99
|
+
setInnerOpen = _ref.setInnerOpen;
|
|
100
|
+
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
101
|
+
var memoFlattenOptions = (0, _useMemo["default"])(function () {
|
|
102
|
+
return flattenOptions;
|
|
103
|
+
}, [open, flattenOptions], function (prev, next) {
|
|
104
|
+
return next[0] && prev[1] !== next[1];
|
|
105
|
+
}); // =========================== List ===========================
|
|
106
|
+
|
|
107
|
+
var listRef = React.useRef(null);
|
|
108
|
+
|
|
109
|
+
var onListMouseDown = function onListMouseDown(event) {
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
var scrollIntoView = function scrollIntoView(index) {
|
|
114
|
+
if (listRef.current) {
|
|
115
|
+
listRef.current.scrollTo({
|
|
116
|
+
index: index
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}; // ========================== Active ==========================
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
var getEnabledActiveIndex = function getEnabledActiveIndex(index) {
|
|
123
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
124
|
+
var len = memoFlattenOptions.length;
|
|
125
|
+
|
|
126
|
+
for (var i = 0; i < len; i += 1) {
|
|
127
|
+
var current = (index + i * offset + len) % len;
|
|
128
|
+
var _memoFlattenOptions$c = memoFlattenOptions[current],
|
|
129
|
+
group = _memoFlattenOptions$c.group,
|
|
130
|
+
data = _memoFlattenOptions$c.data;
|
|
131
|
+
|
|
132
|
+
if (!group && !data.disabled) {
|
|
133
|
+
return current;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return -1;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
var _React$useState = React.useState(function () {
|
|
141
|
+
return getEnabledActiveIndex(0);
|
|
142
|
+
}),
|
|
143
|
+
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
144
|
+
activeIndex = _React$useState2[0],
|
|
145
|
+
setActiveIndex = _React$useState2[1];
|
|
146
|
+
|
|
147
|
+
var setActive = function setActive(index) {
|
|
148
|
+
var fromKeyboard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
149
|
+
setActiveIndex(index);
|
|
150
|
+
var info = {
|
|
151
|
+
source: fromKeyboard ? 'keyboard' : 'mouse'
|
|
152
|
+
}; // Trigger active event
|
|
153
|
+
|
|
154
|
+
var flattenItem = memoFlattenOptions[index];
|
|
155
|
+
|
|
156
|
+
if (!flattenItem) {
|
|
157
|
+
onActiveValue(null, -1, info);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
onActiveValue(flattenItem.data.value, index, info);
|
|
162
|
+
}; // Auto active first item when list length or searchValue changed
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
React.useEffect(function () {
|
|
166
|
+
setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
|
|
167
|
+
}, [memoFlattenOptions.length, searchValue]); // Auto scroll to item position in single mode
|
|
168
|
+
|
|
169
|
+
React.useEffect(function () {
|
|
170
|
+
var _a;
|
|
171
|
+
/**
|
|
172
|
+
* React will skip `onChange` when component update.
|
|
173
|
+
* `setActive` function will call root accessibility state update which makes re-render.
|
|
174
|
+
* So we need to delay to let Input component trigger onChange first.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
var timeoutId = setTimeout(function () {
|
|
179
|
+
if (!multiple && open && values.size === 1) {
|
|
180
|
+
var value = Array.from(values)[0];
|
|
181
|
+
var index = memoFlattenOptions.findIndex(function (_ref2) {
|
|
182
|
+
var data = _ref2.data;
|
|
183
|
+
return data.value === value;
|
|
184
|
+
});
|
|
185
|
+
setActive(index);
|
|
186
|
+
scrollIntoView(index);
|
|
187
|
+
}
|
|
188
|
+
}); // Force trigger scrollbar visible when open
|
|
189
|
+
|
|
190
|
+
if (open) {
|
|
191
|
+
(_a = listRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo(undefined);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return function () {
|
|
195
|
+
return clearTimeout(timeoutId);
|
|
196
|
+
};
|
|
197
|
+
}, [open]); // ========================== Values ==========================
|
|
198
|
+
|
|
199
|
+
var onSelectValue = function onSelectValue(value) {
|
|
200
|
+
if (value !== undefined) {
|
|
201
|
+
onSelect(value, {
|
|
202
|
+
selected: !values.has(value)
|
|
203
|
+
});
|
|
204
|
+
} // Single mode should always close by select
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
if (!multiple) {
|
|
208
|
+
onToggleOpen(false);
|
|
209
|
+
}
|
|
210
|
+
}; // ========================= Keyboard =========================
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
React.useImperativeHandle(ref, function () {
|
|
214
|
+
return {
|
|
215
|
+
onKeyDown: function onKeyDown(event) {
|
|
216
|
+
var which = event.which;
|
|
217
|
+
|
|
218
|
+
switch (which) {
|
|
219
|
+
// >>> Arrow keys
|
|
220
|
+
case _KeyCode["default"].UP:
|
|
221
|
+
case _KeyCode["default"].DOWN:
|
|
222
|
+
{
|
|
223
|
+
var offset = 0;
|
|
224
|
+
|
|
225
|
+
if (which === _KeyCode["default"].UP) {
|
|
226
|
+
offset = -1;
|
|
227
|
+
} else if (which === _KeyCode["default"].DOWN) {
|
|
228
|
+
offset = 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (offset !== 0) {
|
|
232
|
+
var nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);
|
|
233
|
+
scrollIntoView(nextActiveIndex);
|
|
234
|
+
setActive(nextActiveIndex, true);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
// >>> Select
|
|
240
|
+
|
|
241
|
+
case _KeyCode["default"].ENTER:
|
|
242
|
+
{
|
|
243
|
+
// value
|
|
244
|
+
var item = memoFlattenOptions[activeIndex];
|
|
245
|
+
|
|
246
|
+
if (item && !item.data.disabled) {
|
|
247
|
+
onSelectValue(item.data.value);
|
|
248
|
+
} else {
|
|
249
|
+
onSelectValue(undefined);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (open) {
|
|
253
|
+
event.preventDefault();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
// >>> Close
|
|
259
|
+
|
|
260
|
+
case _KeyCode["default"].ESC:
|
|
261
|
+
{
|
|
262
|
+
onToggleOpen(false);
|
|
263
|
+
|
|
264
|
+
if (open) {
|
|
265
|
+
event.stopPropagation();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
onKeyUp: function onKeyUp() {},
|
|
271
|
+
scrollTo: function scrollTo(index) {
|
|
272
|
+
scrollIntoView(index);
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
}); // ===================== Empty =====================
|
|
276
|
+
|
|
277
|
+
var mergedNotFound;
|
|
278
|
+
|
|
279
|
+
if (notFoundContent !== undefined) {
|
|
280
|
+
mergedNotFound = notFoundContent;
|
|
281
|
+
} else if (mode === 'combobox') {
|
|
282
|
+
mergedNotFound = null;
|
|
283
|
+
} else {
|
|
284
|
+
mergedNotFound = renderEmpty('Select', searchValue ? '未查找到任何结果' : undefined);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function renderItem(index) {
|
|
288
|
+
var item = memoFlattenOptions[index];
|
|
289
|
+
|
|
290
|
+
if (!item) {
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
var itemData = item.data || {};
|
|
295
|
+
var value = itemData.value,
|
|
296
|
+
label = itemData.label,
|
|
297
|
+
children = itemData.children;
|
|
298
|
+
var attrs = (0, _pickAttrs["default"])(itemData, true);
|
|
299
|
+
var mergedLabel = childrenAsData ? children : label;
|
|
300
|
+
return item ? /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
301
|
+
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
302
|
+
}, attrs, {
|
|
303
|
+
key: index,
|
|
304
|
+
role: "option",
|
|
305
|
+
id: "".concat(id, "_list_").concat(index),
|
|
306
|
+
"aria-selected": values.has(value)
|
|
307
|
+
}), value) : null;
|
|
308
|
+
} // 是否全选状态
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
var selectAllChecked = false; // 半选状态
|
|
312
|
+
|
|
313
|
+
var indeterminate = false; // 所有enable项的值
|
|
314
|
+
|
|
315
|
+
var enableAllValues = []; // 已选中的disabled项的值
|
|
316
|
+
|
|
317
|
+
var disabledValues = []; // 已选中的enable项的值
|
|
318
|
+
|
|
319
|
+
var enableValues = []; // 所有group key
|
|
320
|
+
|
|
321
|
+
var groupKeys = [];
|
|
322
|
+
|
|
323
|
+
if (multiple) {
|
|
324
|
+
var enableOptions = memoFlattenOptions.filter(function (option) {
|
|
325
|
+
return !option.data.disabled && !option.group;
|
|
326
|
+
});
|
|
327
|
+
var disabledOptions = memoFlattenOptions.filter(function (option) {
|
|
328
|
+
return option.data.disabled;
|
|
329
|
+
});
|
|
330
|
+
enableAllValues = enableOptions.map(function (option) {
|
|
331
|
+
return option.key;
|
|
332
|
+
});
|
|
333
|
+
enableValues = (0, _toConsumableArray2["default"])(values).filter(function (value) {
|
|
334
|
+
return enableOptions.find(function (option) {
|
|
335
|
+
return option.key === value;
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
disabledValues = (0, _toConsumableArray2["default"])(values).filter(function (value) {
|
|
339
|
+
return disabledOptions.find(function (option) {
|
|
340
|
+
return option.key === value;
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
selectAllChecked = enableValues.length === enableOptions.length;
|
|
344
|
+
indeterminate = !selectAllChecked && !!enableValues.length;
|
|
345
|
+
groupKeys = memoFlattenOptions.filter(function (option) {
|
|
346
|
+
return option.group;
|
|
347
|
+
}).map(function (option) {
|
|
348
|
+
return option.key;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
var expandGroupKeys = [];
|
|
353
|
+
|
|
354
|
+
if (defaultExpandGroupKey === true) {
|
|
355
|
+
// 默认展开所有折叠项
|
|
356
|
+
expandGroupKeys = groupKeys;
|
|
357
|
+
} else if (Array.isArray(defaultExpandGroupKey)) {
|
|
358
|
+
expandGroupKeys = defaultExpandGroupKey;
|
|
359
|
+
} else if (typeof defaultExpandGroupKey === 'string' || typeof defaultExpandGroupKey === 'number') {
|
|
360
|
+
expandGroupKeys = [defaultExpandGroupKey];
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
var _React$useState3 = React.useState(expandGroupKeys),
|
|
364
|
+
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
|
365
|
+
expandGroupKey = _React$useState4[0],
|
|
366
|
+
setExpandGroupKey = _React$useState4[1];
|
|
367
|
+
|
|
368
|
+
var handleCheckAll = function handleCheckAll() {
|
|
369
|
+
if (searchValue === '' || searchValue === undefined) {
|
|
370
|
+
triggerChange(selectAllChecked ? disabledValues : [].concat((0, _toConsumableArray2["default"])(enableAllValues), (0, _toConsumableArray2["default"])(disabledValues)));
|
|
371
|
+
} else {
|
|
372
|
+
triggerChange(selectAllChecked ? (0, _toConsumableArray2["default"])(values).filter(function (v) {
|
|
373
|
+
return !enableAllValues.includes(v);
|
|
374
|
+
}) : Array.from(new Set([].concat((0, _toConsumableArray2["default"])(values), (0, _toConsumableArray2["default"])(enableAllValues)))));
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (!selectAllChecked && setInnerOpen) {
|
|
378
|
+
setInnerOpen(false);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
var getCheckStatus = function getCheckStatus(groupKey, type) {
|
|
383
|
+
var groupOptions = memoFlattenOptions.filter(function (option) {
|
|
384
|
+
return option.groupKey === groupKey;
|
|
385
|
+
});
|
|
386
|
+
var groupEnableOptions = groupOptions.filter(function (option) {
|
|
387
|
+
return !option.data.disabled;
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
if (type === 'all') {
|
|
391
|
+
return groupEnableOptions.every(function (option) {
|
|
392
|
+
return values.has(option.key);
|
|
393
|
+
});
|
|
394
|
+
} else if (type === 'indeterminate') {
|
|
395
|
+
return !groupEnableOptions.every(function (option) {
|
|
396
|
+
return values.has(option.key);
|
|
397
|
+
}) && groupEnableOptions.some(function (option) {
|
|
398
|
+
return values.has(option.key);
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
return false;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
var handleCheckGroup = function handleCheckGroup(e, groupKey) {
|
|
406
|
+
var groupOptions = memoFlattenOptions.filter(function (option) {
|
|
407
|
+
return !option.disabled && option.groupKey === groupKey;
|
|
408
|
+
});
|
|
409
|
+
var groupEnableOptions = groupOptions.filter(function (option) {
|
|
410
|
+
return !option.data.disabled;
|
|
411
|
+
});
|
|
412
|
+
var allValues = groupEnableOptions.map(function (option) {
|
|
413
|
+
return option.key;
|
|
414
|
+
});
|
|
415
|
+
var checkAll = getCheckStatus(groupKey, 'all');
|
|
416
|
+
|
|
417
|
+
if (checkAll) {
|
|
418
|
+
triggerChange((0, _toConsumableArray2["default"])(Array.from(values).filter(function (value) {
|
|
419
|
+
return !allValues.includes(value);
|
|
420
|
+
})));
|
|
421
|
+
} else {
|
|
422
|
+
triggerChange(Array.from(new Set([].concat((0, _toConsumableArray2["default"])(values), (0, _toConsumableArray2["default"])(allValues)))));
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
e.stopPropagation();
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
var renderOption = function renderOption(data, values, groupOption, label, itemIndex, groupKey) {
|
|
429
|
+
var _classNames;
|
|
430
|
+
|
|
431
|
+
var _a = data,
|
|
432
|
+
disabled = _a.disabled,
|
|
433
|
+
value = _a.value,
|
|
434
|
+
title = _a.title,
|
|
435
|
+
children = _a.children,
|
|
436
|
+
style = _a.style,
|
|
437
|
+
className = _a.className,
|
|
438
|
+
maxLabelLength = _a.maxLabelLength,
|
|
439
|
+
extra = _a.extra,
|
|
440
|
+
otherProps = __rest(_a, ["disabled", "value", "title", "children", "style", "className", "maxLabelLength", "extra"]); // Option
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
var selected = values.has(value);
|
|
444
|
+
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
445
|
+
var optionClassName = (0, _classnames["default"])(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
446
|
+
var mergedLabel = childrenAsData ? children : label; // const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
447
|
+
|
|
448
|
+
var content = mergedLabel || value;
|
|
449
|
+
var optionTitle = typeof content === 'string' || typeof content === 'number' ? content.toString() : undefined;
|
|
450
|
+
|
|
451
|
+
if (title !== undefined) {
|
|
452
|
+
optionTitle = title;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
var fContent = (typeof content === 'string' || typeof content === 'number') && searchValue ? formatContent(content, searchValue, prefixCls) : content;
|
|
456
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, otherProps, {
|
|
457
|
+
"aria-selected": selected,
|
|
458
|
+
className: optionClassName,
|
|
459
|
+
title: optionTitle,
|
|
460
|
+
onMouseMove: function onMouseMove() {
|
|
461
|
+
if (activeIndex === itemIndex || disabled) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
setActive(itemIndex);
|
|
466
|
+
},
|
|
467
|
+
onClick: function onClick() {
|
|
468
|
+
if (!disabled) {
|
|
469
|
+
onSelectValue(value);
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
style: (0, _extends2["default"])({
|
|
473
|
+
display: groupOption && !expandGroupKey.includes(groupKey) ? 'none' : ''
|
|
474
|
+
}, style)
|
|
475
|
+
}), multiple && /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
476
|
+
checked: selected,
|
|
477
|
+
disabled: disabled
|
|
478
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
479
|
+
className: "".concat(optionPrefixCls, "-content")
|
|
480
|
+
}, fContent), extra);
|
|
481
|
+
}; // ========================== Render ==========================
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
if (memoFlattenOptions.length === 0) {
|
|
485
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
486
|
+
role: "listbox",
|
|
487
|
+
id: "".concat(id, "_list"),
|
|
488
|
+
className: "".concat(itemPrefixCls, "-empty"),
|
|
489
|
+
onMouseDown: onListMouseDown
|
|
490
|
+
}, mergedNotFound);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
494
|
+
role: "listbox",
|
|
495
|
+
id: "".concat(id, "_list"),
|
|
496
|
+
style: {
|
|
497
|
+
height: 0,
|
|
498
|
+
width: 0,
|
|
499
|
+
overflow: 'hidden'
|
|
500
|
+
}
|
|
501
|
+
}, renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), multiple && /*#__PURE__*/React.createElement("div", {
|
|
502
|
+
className: "".concat(itemPrefixCls, "-checkall"),
|
|
503
|
+
onClick: handleCheckAll
|
|
504
|
+
}, /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
505
|
+
indeterminate: indeterminate,
|
|
506
|
+
checked: selectAllChecked
|
|
507
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
508
|
+
className: "".concat(itemPrefixCls, "-option-content")
|
|
509
|
+
}, "\u5168\u9009")), /*#__PURE__*/React.createElement(_virtualList["default"], {
|
|
510
|
+
itemKey: "key",
|
|
511
|
+
ref: listRef,
|
|
512
|
+
data: memoFlattenOptions,
|
|
513
|
+
height: height,
|
|
514
|
+
itemHeight: itemHeight,
|
|
515
|
+
fullHeight: false,
|
|
516
|
+
onMouseDown: onListMouseDown,
|
|
517
|
+
onScroll: onScroll,
|
|
518
|
+
virtual: virtual,
|
|
519
|
+
onMouseEnter: onMouseEnter
|
|
520
|
+
}, function (_ref3, itemIndex) {
|
|
521
|
+
var group = _ref3.group,
|
|
522
|
+
groupOption = _ref3.groupOption,
|
|
523
|
+
data = _ref3.data,
|
|
524
|
+
groupKey = _ref3.groupKey;
|
|
525
|
+
var label = data.label,
|
|
526
|
+
key = data.key; // Group
|
|
527
|
+
|
|
528
|
+
if (group) {
|
|
529
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
530
|
+
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
|
|
531
|
+
onClick: function onClick() {
|
|
532
|
+
var gIndex = expandGroupKey.indexOf(key);
|
|
533
|
+
var newGroupKey = (0, _toConsumableArray2["default"])(expandGroupKey);
|
|
534
|
+
gIndex !== -1 ? newGroupKey.splice(gIndex, 1) : newGroupKey.push(key);
|
|
535
|
+
setExpandGroupKey(newGroupKey);
|
|
536
|
+
}
|
|
537
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
538
|
+
className: "".concat(itemPrefixCls, "-group-arrow")
|
|
539
|
+
}, expandGroupKey.includes(key) ? /*#__PURE__*/React.createElement(_acudIcon.OutlinedDown, null) : /*#__PURE__*/React.createElement(_acudIcon.OutlinedRight, null)), multiple && /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
540
|
+
className: "".concat(itemPrefixCls, "-group-checkbox"),
|
|
541
|
+
indeterminate: getCheckStatus(key, 'indeterminate'),
|
|
542
|
+
checked: getCheckStatus(key, 'all'),
|
|
543
|
+
onClick: function onClick(e) {
|
|
544
|
+
return handleCheckGroup(e, key);
|
|
545
|
+
}
|
|
546
|
+
}), /*#__PURE__*/React.createElement("span", null, label !== undefined ? label : key));
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
return renderOption(data, values, groupOption, label, itemIndex, groupKey);
|
|
550
|
+
}));
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
var RefOptionList = /*#__PURE__*/React.forwardRef(OptionList);
|
|
554
|
+
RefOptionList.displayName = 'OptionList';
|
|
555
|
+
var _default = RefOptionList;
|
|
556
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* To match accessibility requirement, we always provide an input in the component.
|
|
3
|
+
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
|
|
4
|
+
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
|
5
|
+
*
|
|
6
|
+
* ref:
|
|
7
|
+
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
|
8
|
+
*
|
|
9
|
+
* New api:
|
|
10
|
+
* - listHeight
|
|
11
|
+
* - listItemHeight
|
|
12
|
+
* - component
|
|
13
|
+
*
|
|
14
|
+
* Remove deprecated api:
|
|
15
|
+
* - multiple
|
|
16
|
+
* - tags
|
|
17
|
+
* - combobox
|
|
18
|
+
* - firstActiveValue
|
|
19
|
+
* - dropdownMenuStyle
|
|
20
|
+
* - openClassName (Not list in api)
|
|
21
|
+
*
|
|
22
|
+
* Update:
|
|
23
|
+
* - `backfill` only support `combobox` mode
|
|
24
|
+
* - `combobox` mode not support `labelInValue` since it's meaningless
|
|
25
|
+
* - `getInputElement` only support `combobox` mode
|
|
26
|
+
* - `onChange` return OptionData instead of ReactNode
|
|
27
|
+
* - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
|
|
28
|
+
* - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
|
|
29
|
+
* - `combobox` mode not support `optionLabelProp`
|
|
30
|
+
*/
|
|
31
|
+
import * as React from 'react';
|
|
32
|
+
import { OptionsType as SelectOptionsType } from './interface';
|
|
33
|
+
import Option from './Option';
|
|
34
|
+
import OptGroup from './OptGroup';
|
|
35
|
+
import { SelectProps, RefSelectProps } from './generate';
|
|
36
|
+
import { DefaultValueType } from './interface/generator';
|
|
37
|
+
export declare type ExportedSelectProps<ValueType extends DefaultValueType = DefaultValueType> = SelectProps<SelectOptionsType, ValueType>;
|
|
38
|
+
/**
|
|
39
|
+
* Typescript not support generic with function component,
|
|
40
|
+
* we have to wrap an class component to handle this.
|
|
41
|
+
*/
|
|
42
|
+
declare class Select<VT> extends React.Component<SelectProps<SelectOptionsType, VT>> {
|
|
43
|
+
static Option: typeof Option;
|
|
44
|
+
static OptGroup: typeof OptGroup;
|
|
45
|
+
selectRef: React.RefObject<RefSelectProps>;
|
|
46
|
+
focus: () => void;
|
|
47
|
+
blur: () => void;
|
|
48
|
+
render(): JSX.Element;
|
|
49
|
+
}
|
|
50
|
+
export default Select;
|