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,423 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
+
|
|
6
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
7
|
+
var t = {};
|
|
8
|
+
|
|
9
|
+
for (var p in s) {
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
import * as React from 'react';
|
|
20
|
+
import classNames from 'classnames';
|
|
21
|
+
import shallowEqual from 'shallowequal';
|
|
22
|
+
import useMergedState from "rc-util/es/hooks/useMergedState";
|
|
23
|
+
import warning from "rc-util/es/warning";
|
|
24
|
+
import Overflow from 'rc-overflow';
|
|
25
|
+
import MenuItem from './MenuItem';
|
|
26
|
+
import { parseChildren } from './utils/nodeUtil';
|
|
27
|
+
import MenuContextProvider from './context/MenuContext';
|
|
28
|
+
import useMemoCallback from './hooks/useMemoCallback';
|
|
29
|
+
import { warnItemProp } from './utils/warnUtil';
|
|
30
|
+
import SubMenu from './SubMenu';
|
|
31
|
+
import useAccessibility from './hooks/useAccessibility';
|
|
32
|
+
import useUUID from './hooks/useUUID';
|
|
33
|
+
import { PathRegisterContext, PathUserContext } from './context/PathContext';
|
|
34
|
+
import useKeyRecords, { OVERFLOW_KEY } from './hooks/useKeyRecords';
|
|
35
|
+
import { IdContext } from './context/IdContext';
|
|
36
|
+
/**
|
|
37
|
+
* Menu modify after refactor:
|
|
38
|
+
* ## Add
|
|
39
|
+
* - disabled
|
|
40
|
+
*
|
|
41
|
+
* ## Remove
|
|
42
|
+
* - openTransitionName
|
|
43
|
+
* - openAnimation
|
|
44
|
+
* - onDestroy
|
|
45
|
+
* - siderCollapsed: Seems antd do not use this prop (Need test in antd)
|
|
46
|
+
* - collapsedWidth: Seems this logic should be handle by antd Layout.Sider
|
|
47
|
+
*/
|
|
48
|
+
// optimize for render
|
|
49
|
+
|
|
50
|
+
var EMPTY_LIST = [];
|
|
51
|
+
|
|
52
|
+
var Menu = function Menu(props) {
|
|
53
|
+
var _classNames;
|
|
54
|
+
|
|
55
|
+
var _a;
|
|
56
|
+
|
|
57
|
+
var _b = props,
|
|
58
|
+
_b$prefixCls = _b.prefixCls,
|
|
59
|
+
prefixCls = _b$prefixCls === void 0 ? 'rc-menu' : _b$prefixCls,
|
|
60
|
+
style = _b.style,
|
|
61
|
+
className = _b.className,
|
|
62
|
+
_b$tabIndex = _b.tabIndex,
|
|
63
|
+
tabIndex = _b$tabIndex === void 0 ? 0 : _b$tabIndex,
|
|
64
|
+
children = _b.children,
|
|
65
|
+
direction = _b.direction,
|
|
66
|
+
id = _b.id,
|
|
67
|
+
_b$mode = _b.mode,
|
|
68
|
+
mode = _b$mode === void 0 ? 'vertical' : _b$mode,
|
|
69
|
+
inlineCollapsed = _b.inlineCollapsed,
|
|
70
|
+
disabled = _b.disabled,
|
|
71
|
+
disabledOverflow = _b.disabledOverflow,
|
|
72
|
+
_b$subMenuOpenDelay = _b.subMenuOpenDelay,
|
|
73
|
+
subMenuOpenDelay = _b$subMenuOpenDelay === void 0 ? 0.1 : _b$subMenuOpenDelay,
|
|
74
|
+
_b$subMenuCloseDelay = _b.subMenuCloseDelay,
|
|
75
|
+
subMenuCloseDelay = _b$subMenuCloseDelay === void 0 ? 0.1 : _b$subMenuCloseDelay,
|
|
76
|
+
forceSubMenuRender = _b.forceSubMenuRender,
|
|
77
|
+
defaultOpenKeys = _b.defaultOpenKeys,
|
|
78
|
+
openKeys = _b.openKeys,
|
|
79
|
+
activeKey = _b.activeKey,
|
|
80
|
+
defaultActiveFirst = _b.defaultActiveFirst,
|
|
81
|
+
_b$selectable = _b.selectable,
|
|
82
|
+
selectable = _b$selectable === void 0 ? true : _b$selectable,
|
|
83
|
+
_b$multiple = _b.multiple,
|
|
84
|
+
multiple = _b$multiple === void 0 ? false : _b$multiple,
|
|
85
|
+
defaultSelectedKeys = _b.defaultSelectedKeys,
|
|
86
|
+
selectedKeys = _b.selectedKeys,
|
|
87
|
+
onSelect = _b.onSelect,
|
|
88
|
+
onDeselect = _b.onDeselect,
|
|
89
|
+
_b$inlineIndent = _b.inlineIndent,
|
|
90
|
+
inlineIndent = _b$inlineIndent === void 0 ? 24 : _b$inlineIndent,
|
|
91
|
+
motion = _b.motion,
|
|
92
|
+
defaultMotions = _b.defaultMotions,
|
|
93
|
+
_b$triggerSubMenuActi = _b.triggerSubMenuAction,
|
|
94
|
+
triggerSubMenuAction = _b$triggerSubMenuActi === void 0 ? 'hover' : _b$triggerSubMenuActi,
|
|
95
|
+
builtinPlacements = _b.builtinPlacements,
|
|
96
|
+
itemIcon = _b.itemIcon,
|
|
97
|
+
expandIcon = _b.expandIcon,
|
|
98
|
+
_b$overflowedIndicato = _b.overflowedIndicator,
|
|
99
|
+
overflowedIndicator = _b$overflowedIndicato === void 0 ? '...' : _b$overflowedIndicato,
|
|
100
|
+
overflowedIndicatorPopupClassName = _b.overflowedIndicatorPopupClassName,
|
|
101
|
+
getPopupContainer = _b.getPopupContainer,
|
|
102
|
+
onClick = _b.onClick,
|
|
103
|
+
onOpenChange = _b.onOpenChange,
|
|
104
|
+
onKeyDown = _b.onKeyDown,
|
|
105
|
+
openAnimation = _b.openAnimation,
|
|
106
|
+
openTransitionName = _b.openTransitionName,
|
|
107
|
+
restProps = __rest(_b, ["prefixCls", "style", "className", "tabIndex", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName"]);
|
|
108
|
+
|
|
109
|
+
var childList = parseChildren(children, EMPTY_LIST);
|
|
110
|
+
|
|
111
|
+
var _React$useState = React.useState(false),
|
|
112
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
113
|
+
mounted = _React$useState2[0],
|
|
114
|
+
setMounted = _React$useState2[1];
|
|
115
|
+
|
|
116
|
+
var containerRef = React.useRef();
|
|
117
|
+
var uuid = useUUID(id);
|
|
118
|
+
var isRtl = direction === 'rtl'; // ========================= Warn =========================
|
|
119
|
+
|
|
120
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
121
|
+
warning(!openAnimation && !openTransitionName, '`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.');
|
|
122
|
+
} // ========================= Mode =========================
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
var _React$useMemo = React.useMemo(function () {
|
|
126
|
+
if ((mode === 'inline' || mode === 'vertical') && inlineCollapsed) {
|
|
127
|
+
return ['vertical', inlineCollapsed];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return [mode, false];
|
|
131
|
+
}, [mode, inlineCollapsed]),
|
|
132
|
+
_React$useMemo2 = _slicedToArray(_React$useMemo, 2),
|
|
133
|
+
mergedMode = _React$useMemo2[0],
|
|
134
|
+
mergedInlineCollapsed = _React$useMemo2[1]; // ====================== Responsive ======================
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
var _React$useState3 = React.useState(0),
|
|
138
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
139
|
+
lastVisibleIndex = _React$useState4[0],
|
|
140
|
+
setLastVisibleIndex = _React$useState4[1];
|
|
141
|
+
|
|
142
|
+
var allVisible = lastVisibleIndex >= childList.length - 1 || mergedMode !== 'horizontal' || disabledOverflow; // ========================= Open =========================
|
|
143
|
+
|
|
144
|
+
var _useMergedState = useMergedState(defaultOpenKeys, {
|
|
145
|
+
value: openKeys,
|
|
146
|
+
postState: function postState(keys) {
|
|
147
|
+
return keys || EMPTY_LIST;
|
|
148
|
+
}
|
|
149
|
+
}),
|
|
150
|
+
_useMergedState2 = _slicedToArray(_useMergedState, 2),
|
|
151
|
+
mergedOpenKeys = _useMergedState2[0],
|
|
152
|
+
setMergedOpenKeys = _useMergedState2[1];
|
|
153
|
+
|
|
154
|
+
var triggerOpenKeys = function triggerOpenKeys(keys) {
|
|
155
|
+
setMergedOpenKeys(keys);
|
|
156
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(keys);
|
|
157
|
+
}; // >>>>> Cache & Reset open keys when inlineCollapsed changed
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
var _React$useState5 = React.useState(mergedOpenKeys),
|
|
161
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
162
|
+
inlineCacheOpenKeys = _React$useState6[0],
|
|
163
|
+
setInlineCacheOpenKeys = _React$useState6[1];
|
|
164
|
+
|
|
165
|
+
var isInlineMode = mergedMode === 'inline';
|
|
166
|
+
var mountRef = React.useRef(false); // Cache
|
|
167
|
+
|
|
168
|
+
React.useEffect(function () {
|
|
169
|
+
if (isInlineMode) {
|
|
170
|
+
setInlineCacheOpenKeys(mergedOpenKeys);
|
|
171
|
+
}
|
|
172
|
+
}, [mergedOpenKeys]); // Restore
|
|
173
|
+
|
|
174
|
+
React.useEffect(function () {
|
|
175
|
+
if (!mountRef.current) {
|
|
176
|
+
mountRef.current = true;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (isInlineMode) {
|
|
181
|
+
setMergedOpenKeys(inlineCacheOpenKeys);
|
|
182
|
+
} else {
|
|
183
|
+
// Trigger open event in case its in control
|
|
184
|
+
triggerOpenKeys(EMPTY_LIST);
|
|
185
|
+
}
|
|
186
|
+
}, [isInlineMode]); // ========================= Path =========================
|
|
187
|
+
|
|
188
|
+
var _useKeyRecords = useKeyRecords(),
|
|
189
|
+
registerPath = _useKeyRecords.registerPath,
|
|
190
|
+
unregisterPath = _useKeyRecords.unregisterPath,
|
|
191
|
+
refreshOverflowKeys = _useKeyRecords.refreshOverflowKeys,
|
|
192
|
+
isSubPathKey = _useKeyRecords.isSubPathKey,
|
|
193
|
+
getKeyPath = _useKeyRecords.getKeyPath,
|
|
194
|
+
getKeys = _useKeyRecords.getKeys,
|
|
195
|
+
getSubPathKeys = _useKeyRecords.getSubPathKeys;
|
|
196
|
+
|
|
197
|
+
var registerPathContext = React.useMemo(function () {
|
|
198
|
+
return {
|
|
199
|
+
registerPath: registerPath,
|
|
200
|
+
unregisterPath: unregisterPath
|
|
201
|
+
};
|
|
202
|
+
}, [registerPath, unregisterPath]);
|
|
203
|
+
var pathUserContext = React.useMemo(function () {
|
|
204
|
+
return {
|
|
205
|
+
isSubPathKey: isSubPathKey
|
|
206
|
+
};
|
|
207
|
+
}, [isSubPathKey]);
|
|
208
|
+
React.useEffect(function () {
|
|
209
|
+
refreshOverflowKeys(allVisible ? EMPTY_LIST : childList.slice(lastVisibleIndex + 1).map(function (child) {
|
|
210
|
+
return child.key;
|
|
211
|
+
}));
|
|
212
|
+
}, [lastVisibleIndex, allVisible]); // ======================== Active ========================
|
|
213
|
+
|
|
214
|
+
var _useMergedState3 = useMergedState(activeKey || defaultActiveFirst && ((_a = childList[0]) === null || _a === void 0 ? void 0 : _a.key), {
|
|
215
|
+
value: activeKey
|
|
216
|
+
}),
|
|
217
|
+
_useMergedState4 = _slicedToArray(_useMergedState3, 2),
|
|
218
|
+
mergedActiveKey = _useMergedState4[0],
|
|
219
|
+
setMergedActiveKey = _useMergedState4[1];
|
|
220
|
+
|
|
221
|
+
var onActive = useMemoCallback(function (key) {
|
|
222
|
+
setMergedActiveKey(key);
|
|
223
|
+
});
|
|
224
|
+
var onInactive = useMemoCallback(function () {
|
|
225
|
+
setMergedActiveKey(undefined);
|
|
226
|
+
}); // ======================== Select ========================
|
|
227
|
+
// >>>>> Select keys
|
|
228
|
+
|
|
229
|
+
var _useMergedState5 = useMergedState(defaultSelectedKeys || [], {
|
|
230
|
+
value: selectedKeys,
|
|
231
|
+
// Legacy convert key to array
|
|
232
|
+
postState: function postState(keys) {
|
|
233
|
+
if (Array.isArray(keys)) {
|
|
234
|
+
return keys;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (keys === null || keys === undefined) {
|
|
238
|
+
return EMPTY_LIST;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return [keys];
|
|
242
|
+
}
|
|
243
|
+
}),
|
|
244
|
+
_useMergedState6 = _slicedToArray(_useMergedState5, 2),
|
|
245
|
+
mergedSelectKeys = _useMergedState6[0],
|
|
246
|
+
setMergedSelectKeys = _useMergedState6[1]; // >>>>> Trigger select
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
var triggerSelection = function triggerSelection(info) {
|
|
250
|
+
if (selectable) {
|
|
251
|
+
// Insert or Remove
|
|
252
|
+
var targetKey = info.key;
|
|
253
|
+
var exist = mergedSelectKeys.includes(targetKey);
|
|
254
|
+
var newSelectKeys;
|
|
255
|
+
|
|
256
|
+
if (multiple) {
|
|
257
|
+
if (exist) {
|
|
258
|
+
newSelectKeys = mergedSelectKeys.filter(function (key) {
|
|
259
|
+
return key !== targetKey;
|
|
260
|
+
});
|
|
261
|
+
} else {
|
|
262
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
263
|
+
}
|
|
264
|
+
} else {
|
|
265
|
+
newSelectKeys = [targetKey];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
269
|
+
|
|
270
|
+
var selectInfo = _extends(_extends({}, info), {
|
|
271
|
+
selectedKeys: newSelectKeys
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
if (exist) {
|
|
275
|
+
onDeselect === null || onDeselect === void 0 ? void 0 : onDeselect(selectInfo);
|
|
276
|
+
} else {
|
|
277
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectInfo);
|
|
278
|
+
}
|
|
279
|
+
} // Whatever selectable, always close it
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
if (!multiple && mergedOpenKeys.length && mergedMode !== 'inline') {
|
|
283
|
+
triggerOpenKeys(EMPTY_LIST);
|
|
284
|
+
}
|
|
285
|
+
}; // ========================= Open =========================
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Click for item. SubMenu do not have selection status
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
var onInternalClick = useMemoCallback(function (info) {
|
|
293
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
|
|
294
|
+
triggerSelection(info);
|
|
295
|
+
});
|
|
296
|
+
var onInternalOpenChange = useMemoCallback(function (key, open) {
|
|
297
|
+
var newOpenKeys = mergedOpenKeys.filter(function (k) {
|
|
298
|
+
return k !== key;
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
if (open) {
|
|
302
|
+
newOpenKeys.push(key);
|
|
303
|
+
} else if (mergedMode !== 'inline') {
|
|
304
|
+
// We need find all related popup to close
|
|
305
|
+
var subPathKeys = getSubPathKeys(key);
|
|
306
|
+
newOpenKeys = newOpenKeys.filter(function (k) {
|
|
307
|
+
return !subPathKeys.has(k);
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (!shallowEqual(mergedOpenKeys, newOpenKeys)) {
|
|
312
|
+
triggerOpenKeys(newOpenKeys);
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
var getInternalPopupContainer = useMemoCallback(getPopupContainer); // ==================== Accessibility =====================
|
|
316
|
+
|
|
317
|
+
var triggerAccessibilityOpen = function triggerAccessibilityOpen(key, open) {
|
|
318
|
+
var nextOpen = open !== null && open !== void 0 ? open : !mergedOpenKeys.includes(key);
|
|
319
|
+
onInternalOpenChange(key, nextOpen);
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
var onInternalKeyDown = useAccessibility(mergedMode, mergedActiveKey, isRtl, uuid, containerRef, getKeys, getKeyPath, setMergedActiveKey, triggerAccessibilityOpen, onKeyDown); // ======================== Effect ========================
|
|
323
|
+
|
|
324
|
+
React.useEffect(function () {
|
|
325
|
+
setMounted(true);
|
|
326
|
+
}, []); // ======================== Render ========================
|
|
327
|
+
// >>>>> Children
|
|
328
|
+
|
|
329
|
+
var wrappedChildList = mergedMode !== 'horizontal' || disabledOverflow ? childList : // Need wrap for overflow dropdown that do not response for open
|
|
330
|
+
childList.map(function (child, index) {
|
|
331
|
+
return (
|
|
332
|
+
/*#__PURE__*/
|
|
333
|
+
// Always wrap provider to avoid sub node re-mount
|
|
334
|
+
React.createElement(MenuContextProvider, {
|
|
335
|
+
key: child.key,
|
|
336
|
+
overflowDisabled: index > lastVisibleIndex
|
|
337
|
+
}, child)
|
|
338
|
+
);
|
|
339
|
+
}); // >>>>> Container
|
|
340
|
+
|
|
341
|
+
var container = /*#__PURE__*/React.createElement(Overflow, _extends({
|
|
342
|
+
id: id,
|
|
343
|
+
ref: containerRef,
|
|
344
|
+
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
345
|
+
component: "ul",
|
|
346
|
+
itemComponent: MenuItem,
|
|
347
|
+
className: classNames(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
348
|
+
dir: direction,
|
|
349
|
+
style: style,
|
|
350
|
+
role: "menu",
|
|
351
|
+
tabIndex: tabIndex,
|
|
352
|
+
data: wrappedChildList,
|
|
353
|
+
renderRawItem: function renderRawItem(node) {
|
|
354
|
+
return node;
|
|
355
|
+
},
|
|
356
|
+
renderRawRest: function renderRawRest(omitItems) {
|
|
357
|
+
// We use origin list since wrapped list use context to prevent open
|
|
358
|
+
var len = omitItems.length;
|
|
359
|
+
var originOmitItems = len ? childList.slice(-len) : null;
|
|
360
|
+
return /*#__PURE__*/React.createElement(SubMenu, {
|
|
361
|
+
eventKey: OVERFLOW_KEY,
|
|
362
|
+
title: overflowedIndicator,
|
|
363
|
+
disabled: allVisible,
|
|
364
|
+
internalPopupClose: len === 0,
|
|
365
|
+
popupClassName: overflowedIndicatorPopupClassName
|
|
366
|
+
}, originOmitItems);
|
|
367
|
+
},
|
|
368
|
+
maxCount: mergedMode !== 'horizontal' || disabledOverflow ? Overflow.INVALIDATE : Overflow.RESPONSIVE,
|
|
369
|
+
ssr: "full",
|
|
370
|
+
"data-menu-list": true,
|
|
371
|
+
onVisibleChange: function onVisibleChange(newLastIndex) {
|
|
372
|
+
setLastVisibleIndex(newLastIndex);
|
|
373
|
+
},
|
|
374
|
+
onKeyDown: onInternalKeyDown
|
|
375
|
+
}, restProps)); // >>>>> Render
|
|
376
|
+
|
|
377
|
+
return /*#__PURE__*/React.createElement(IdContext.Provider, {
|
|
378
|
+
value: uuid
|
|
379
|
+
}, /*#__PURE__*/React.createElement(MenuContextProvider, {
|
|
380
|
+
prefixCls: prefixCls,
|
|
381
|
+
mode: mergedMode,
|
|
382
|
+
inlineCollapsed: mergedInlineCollapsed,
|
|
383
|
+
openKeys: mergedOpenKeys,
|
|
384
|
+
rtl: isRtl // Disabled
|
|
385
|
+
,
|
|
386
|
+
disabled: disabled // Motion
|
|
387
|
+
,
|
|
388
|
+
motion: mounted ? motion : null,
|
|
389
|
+
defaultMotions: mounted ? defaultMotions : null // Active
|
|
390
|
+
,
|
|
391
|
+
activeKey: mergedActiveKey,
|
|
392
|
+
onActive: onActive,
|
|
393
|
+
onInactive: onInactive // Selection
|
|
394
|
+
,
|
|
395
|
+
selectedKeys: mergedSelectKeys // Level
|
|
396
|
+
,
|
|
397
|
+
inlineIndent: inlineIndent // Popup
|
|
398
|
+
,
|
|
399
|
+
subMenuOpenDelay: subMenuOpenDelay,
|
|
400
|
+
subMenuCloseDelay: subMenuCloseDelay,
|
|
401
|
+
forceSubMenuRender: forceSubMenuRender,
|
|
402
|
+
builtinPlacements: builtinPlacements,
|
|
403
|
+
triggerSubMenuAction: triggerSubMenuAction,
|
|
404
|
+
getPopupContainer: getInternalPopupContainer // Icon
|
|
405
|
+
,
|
|
406
|
+
itemIcon: itemIcon,
|
|
407
|
+
expandIcon: expandIcon // Events
|
|
408
|
+
,
|
|
409
|
+
onItemClick: onInternalClick,
|
|
410
|
+
onOpenChange: onInternalOpenChange
|
|
411
|
+
}, /*#__PURE__*/React.createElement(PathUserContext.Provider, {
|
|
412
|
+
value: pathUserContext
|
|
413
|
+
}, container), /*#__PURE__*/React.createElement("div", {
|
|
414
|
+
style: {
|
|
415
|
+
display: 'none'
|
|
416
|
+
},
|
|
417
|
+
"aria-hidden": true
|
|
418
|
+
}, /*#__PURE__*/React.createElement(PathRegisterContext.Provider, {
|
|
419
|
+
value: registerPathContext
|
|
420
|
+
}, childList))));
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
export default Menu;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MenuClickEventHandler, MenuHoverEventHandler, RenderIconType } from './interface';
|
|
3
|
+
export interface MenuItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onSelect'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** @private Internal filled key. Do not set it directly */
|
|
6
|
+
eventKey?: string;
|
|
7
|
+
/** @private Do not use. Private warning empty usage */
|
|
8
|
+
warnKey?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
itemIcon?: RenderIconType;
|
|
11
|
+
/** @deprecated No place to use this. Should remove */
|
|
12
|
+
attribute?: Record<string, string>;
|
|
13
|
+
onMouseEnter?: MenuHoverEventHandler;
|
|
14
|
+
onMouseLeave?: MenuHoverEventHandler;
|
|
15
|
+
onClick?: MenuClickEventHandler;
|
|
16
|
+
}
|
|
17
|
+
declare function MenuItem(props: MenuItemProps): React.ReactElement;
|
|
18
|
+
export default MenuItem;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
|
+
|
|
9
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
10
|
+
var t = {};
|
|
11
|
+
|
|
12
|
+
for (var p in s) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
import * as React from 'react';
|
|
23
|
+
import classNames from 'classnames';
|
|
24
|
+
import Overflow from 'rc-overflow';
|
|
25
|
+
import warning from "rc-util/es/warning";
|
|
26
|
+
import KeyCode from "rc-util/es/KeyCode";
|
|
27
|
+
import omit from "rc-util/es/omit";
|
|
28
|
+
import { MenuContext } from './context/MenuContext';
|
|
29
|
+
import useActive from './hooks/useActive';
|
|
30
|
+
import { warnItemProp } from './utils/warnUtil';
|
|
31
|
+
import Icon from './Icon'; // import useDirectionStyle from './hooks/useDirectionStyle';
|
|
32
|
+
|
|
33
|
+
import { useFullPath, useMeasure } from './context/PathContext';
|
|
34
|
+
import { useMenuId } from './context/IdContext'; // Since Menu event provide the `info.item` which point to the MenuItem node instance.
|
|
35
|
+
// We have to use class component here.
|
|
36
|
+
// This should be removed from doc & api in future.
|
|
37
|
+
|
|
38
|
+
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
39
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
40
|
+
|
|
41
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
42
|
+
|
|
43
|
+
function LegacyMenuItem() {
|
|
44
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
45
|
+
|
|
46
|
+
return _super.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_createClass(LegacyMenuItem, [{
|
|
50
|
+
key: "render",
|
|
51
|
+
value: function render() {
|
|
52
|
+
var _a = this.props,
|
|
53
|
+
title = _a.title,
|
|
54
|
+
attribute = _a.attribute,
|
|
55
|
+
elementRef = _a.elementRef,
|
|
56
|
+
restProps = __rest(_a, ["title", "attribute", "elementRef"]);
|
|
57
|
+
|
|
58
|
+
var passedProps = omit(restProps, ['eventKey']);
|
|
59
|
+
warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
60
|
+
return /*#__PURE__*/React.createElement(Overflow.Item, _extends({}, attribute, {
|
|
61
|
+
title: typeof title === 'string' ? title : undefined
|
|
62
|
+
}, passedProps, {
|
|
63
|
+
ref: elementRef
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
}]);
|
|
67
|
+
|
|
68
|
+
return LegacyMenuItem;
|
|
69
|
+
}(React.Component);
|
|
70
|
+
/**
|
|
71
|
+
* Real Menu Item component
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var InternalMenuItem = function InternalMenuItem(props) {
|
|
76
|
+
var _classNames;
|
|
77
|
+
|
|
78
|
+
var style = props.style,
|
|
79
|
+
className = props.className,
|
|
80
|
+
eventKey = props.eventKey,
|
|
81
|
+
warnKey = props.warnKey,
|
|
82
|
+
disabled = props.disabled,
|
|
83
|
+
itemIcon = props.itemIcon,
|
|
84
|
+
children = props.children,
|
|
85
|
+
role = props.role,
|
|
86
|
+
onMouseEnter = props.onMouseEnter,
|
|
87
|
+
onMouseLeave = props.onMouseLeave,
|
|
88
|
+
onClick = props.onClick,
|
|
89
|
+
onKeyDown = props.onKeyDown,
|
|
90
|
+
onFocus = props.onFocus,
|
|
91
|
+
restProps = __rest(props, ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"]);
|
|
92
|
+
|
|
93
|
+
var domDataId = useMenuId(eventKey);
|
|
94
|
+
|
|
95
|
+
var _React$useContext = React.useContext(MenuContext),
|
|
96
|
+
prefixCls = _React$useContext.prefixCls,
|
|
97
|
+
onItemClick = _React$useContext.onItemClick,
|
|
98
|
+
contextDisabled = _React$useContext.disabled,
|
|
99
|
+
overflowDisabled = _React$useContext.overflowDisabled,
|
|
100
|
+
contextItemIcon = _React$useContext.itemIcon,
|
|
101
|
+
selectedKeys = _React$useContext.selectedKeys,
|
|
102
|
+
onActive = _React$useContext.onActive;
|
|
103
|
+
|
|
104
|
+
var itemCls = "".concat(prefixCls, "-item");
|
|
105
|
+
var legacyMenuItemRef = React.useRef();
|
|
106
|
+
var elementRef = React.useRef();
|
|
107
|
+
var mergedDisabled = contextDisabled || disabled;
|
|
108
|
+
var connectedKeys = useFullPath(eventKey); // ================================ Warn ================================
|
|
109
|
+
|
|
110
|
+
if (process.env.NODE_ENV !== 'production' && warnKey) {
|
|
111
|
+
warning(false, 'MenuItem should not leave undefined `key`.');
|
|
112
|
+
} // ============================= Info =============================
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
var getEventInfo = function getEventInfo(e) {
|
|
116
|
+
return {
|
|
117
|
+
key: eventKey,
|
|
118
|
+
// Note: For legacy code is reversed which not like other antd component
|
|
119
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
120
|
+
item: legacyMenuItemRef.current,
|
|
121
|
+
domEvent: e
|
|
122
|
+
};
|
|
123
|
+
}; // ============================= Icon =============================
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var mergedItemIcon = itemIcon || contextItemIcon; // ============================ Active ============================
|
|
127
|
+
|
|
128
|
+
var _a = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
129
|
+
active = _a.active,
|
|
130
|
+
activeProps = __rest(_a, ["active"]); // ============================ Select ============================
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
134
|
+
// const directionStyle = useDirectionStyle(connectedKeys.length);
|
|
135
|
+
// ============================ Events ============================
|
|
136
|
+
|
|
137
|
+
var onInternalClick = function onInternalClick(e) {
|
|
138
|
+
if (mergedDisabled) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var info = getEventInfo(e);
|
|
143
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
|
|
144
|
+
onItemClick(info);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
var onInternalKeyDown = function onInternalKeyDown(e) {
|
|
148
|
+
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
149
|
+
|
|
150
|
+
if (e.which === KeyCode.ENTER) {
|
|
151
|
+
var info = getEventInfo(e); // Legacy. Key will also trigger click event
|
|
152
|
+
|
|
153
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
|
|
154
|
+
onItemClick(info);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Used for accessibility. Helper will focus element without key board.
|
|
159
|
+
* We should manually trigger an active
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
var onInternalFocus = function onInternalFocus(e) {
|
|
164
|
+
onActive(eventKey);
|
|
165
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
166
|
+
}; // ============================ Render ============================
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
var optionRoleProps = {};
|
|
170
|
+
|
|
171
|
+
if (props.role === 'option') {
|
|
172
|
+
optionRoleProps['aria-selected'] = selected;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return /*#__PURE__*/React.createElement(LegacyMenuItem, _extends({
|
|
176
|
+
ref: legacyMenuItemRef,
|
|
177
|
+
elementRef: elementRef,
|
|
178
|
+
role: role === null ? 'none' : role || 'menuitem',
|
|
179
|
+
tabIndex: disabled ? null : -1,
|
|
180
|
+
"data-menu-id": overflowDisabled && domDataId ? null : domDataId
|
|
181
|
+
}, restProps, activeProps, optionRoleProps, {
|
|
182
|
+
component: "li",
|
|
183
|
+
"aria-disabled": disabled,
|
|
184
|
+
style: _extends({}, style),
|
|
185
|
+
className: classNames(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
186
|
+
onClick: onInternalClick,
|
|
187
|
+
onKeyDown: onInternalKeyDown,
|
|
188
|
+
onFocus: onInternalFocus
|
|
189
|
+
}), children, /*#__PURE__*/React.createElement(Icon, {
|
|
190
|
+
props: _extends(_extends({}, props), {
|
|
191
|
+
isSelected: selected
|
|
192
|
+
}),
|
|
193
|
+
icon: mergedItemIcon
|
|
194
|
+
}));
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
function MenuItem(props) {
|
|
198
|
+
var eventKey = props.eventKey; // ==================== Record KeyPath ====================
|
|
199
|
+
|
|
200
|
+
var measure = useMeasure();
|
|
201
|
+
var connectedKeyPath = useFullPath(eventKey); // eslint-disable-next-line consistent-return
|
|
202
|
+
|
|
203
|
+
React.useEffect(function () {
|
|
204
|
+
if (measure) {
|
|
205
|
+
measure.registerPath(eventKey, connectedKeyPath);
|
|
206
|
+
return function () {
|
|
207
|
+
measure.unregisterPath(eventKey, connectedKeyPath);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}, [connectedKeyPath]);
|
|
211
|
+
|
|
212
|
+
if (measure) {
|
|
213
|
+
return null;
|
|
214
|
+
} // ======================== Render ========================
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
return /*#__PURE__*/React.createElement(InternalMenuItem, props);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export default MenuItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MenuItemGroupProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** @private Internal filled key. Do not set it directly */
|
|
7
|
+
eventKey?: string;
|
|
8
|
+
/** @private Do not use. Private warning empty usage */
|
|
9
|
+
warnKey?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function MenuItemGroup({ children, ...props }: MenuItemGroupProps): React.ReactElement;
|