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,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ResizeObserver from 'rc-resize-observer';
|
|
3
|
+
export default function MeasureCell(_ref) {
|
|
4
|
+
var columnKey = _ref.columnKey,
|
|
5
|
+
onColumnResize = _ref.onColumnResize;
|
|
6
|
+
var cellRef = React.useRef();
|
|
7
|
+
React.useEffect(function () {
|
|
8
|
+
if (cellRef.current) {
|
|
9
|
+
onColumnResize(columnKey, cellRef.current.offsetWidth);
|
|
10
|
+
}
|
|
11
|
+
}, []);
|
|
12
|
+
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
13
|
+
data: columnKey
|
|
14
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
15
|
+
ref: cellRef,
|
|
16
|
+
style: {
|
|
17
|
+
padding: 0,
|
|
18
|
+
border: 0,
|
|
19
|
+
height: 0
|
|
20
|
+
}
|
|
21
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
style: {
|
|
23
|
+
height: 0,
|
|
24
|
+
overflow: 'hidden'
|
|
25
|
+
}
|
|
26
|
+
}, "\xA0")));
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MeasureCellProps {
|
|
3
|
+
prefixCls: string;
|
|
4
|
+
onColumnResize: (key: React.Key, width: number) => void;
|
|
5
|
+
columnsKey: React.Key[];
|
|
6
|
+
}
|
|
7
|
+
export default function MeasureRow({ prefixCls, columnsKey, onColumnResize }: MeasureCellProps): JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ResizeObserver from 'rc-resize-observer';
|
|
3
|
+
import MeasureCell from './MeasureCell';
|
|
4
|
+
import raf from "rc-util/es/raf";
|
|
5
|
+
export default function MeasureRow(_ref) {
|
|
6
|
+
var prefixCls = _ref.prefixCls,
|
|
7
|
+
columnsKey = _ref.columnsKey,
|
|
8
|
+
onColumnResize = _ref.onColumnResize;
|
|
9
|
+
// delay state update while resize continuously, e.g. window resize
|
|
10
|
+
var resizedColumnsRef = React.useRef(new Map());
|
|
11
|
+
var rafIdRef = React.useRef(null);
|
|
12
|
+
|
|
13
|
+
var delayOnColumnResize = function delayOnColumnResize() {
|
|
14
|
+
if (rafIdRef.current === null) {
|
|
15
|
+
rafIdRef.current = raf(function () {
|
|
16
|
+
resizedColumnsRef.current.forEach(function (width, columnKey) {
|
|
17
|
+
onColumnResize(columnKey, width);
|
|
18
|
+
});
|
|
19
|
+
resizedColumnsRef.current.clear();
|
|
20
|
+
rafIdRef.current = null;
|
|
21
|
+
}, 2);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
React.useEffect(function () {
|
|
26
|
+
return function () {
|
|
27
|
+
raf.cancel(rafIdRef.current);
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
className: "".concat(prefixCls, "-measure-row"),
|
|
33
|
+
style: {
|
|
34
|
+
height: 0,
|
|
35
|
+
fontSize: 0
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(ResizeObserver.Collection, {
|
|
38
|
+
onBatchResize: function onBatchResize(infoList) {
|
|
39
|
+
infoList.forEach(function (_ref2) {
|
|
40
|
+
var columnKey = _ref2.data,
|
|
41
|
+
size = _ref2.size;
|
|
42
|
+
resizedColumnsRef.current.set(columnKey, size.offsetWidth);
|
|
43
|
+
});
|
|
44
|
+
delayOnColumnResize();
|
|
45
|
+
}
|
|
46
|
+
}, columnsKey.map(function (columnKey) {
|
|
47
|
+
return /*#__PURE__*/React.createElement(MeasureCell, {
|
|
48
|
+
key: columnKey,
|
|
49
|
+
columnKey: columnKey,
|
|
50
|
+
onColumnResize: onColumnResize
|
|
51
|
+
});
|
|
52
|
+
})));
|
|
53
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { GetRowKey, Key, GetComponentProps } from '../interface';
|
|
3
|
+
export interface BodyProps<RecordType> {
|
|
4
|
+
data: readonly RecordType[];
|
|
5
|
+
getRowKey: GetRowKey<RecordType>;
|
|
6
|
+
measureColumnWidth: boolean;
|
|
7
|
+
expandedKeys: Set<Key>;
|
|
8
|
+
onRow: GetComponentProps<RecordType>;
|
|
9
|
+
rowExpandable: (record: RecordType) => boolean;
|
|
10
|
+
emptyNode: React.ReactNode;
|
|
11
|
+
childrenColumnName: string;
|
|
12
|
+
}
|
|
13
|
+
declare function Body<RecordType>({ data, getRowKey, measureColumnWidth, expandedKeys, onRow, rowExpandable, emptyNode, childrenColumnName }: BodyProps<RecordType>): JSX.Element;
|
|
14
|
+
declare const MemoBody: React.MemoExoticComponent<typeof Body>;
|
|
15
|
+
export default MemoBody;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import TableContext from '../context/TableContext';
|
|
4
|
+
import ExpandedRow from './ExpandedRow';
|
|
5
|
+
import BodyContext from '../context/BodyContext';
|
|
6
|
+
import { getColumnsKey } from '../utils/valueUtil';
|
|
7
|
+
import ResizeContext from '../context/ResizeContext';
|
|
8
|
+
import BodyRow from './BodyRow';
|
|
9
|
+
import useFlattenRecords from '../hooks/useFlattenRecords';
|
|
10
|
+
import HoverContext from '../context/HoverContext';
|
|
11
|
+
import MeasureRow from './MeasureRow';
|
|
12
|
+
|
|
13
|
+
function Body(_ref) {
|
|
14
|
+
var data = _ref.data,
|
|
15
|
+
getRowKey = _ref.getRowKey,
|
|
16
|
+
measureColumnWidth = _ref.measureColumnWidth,
|
|
17
|
+
expandedKeys = _ref.expandedKeys,
|
|
18
|
+
onRow = _ref.onRow,
|
|
19
|
+
rowExpandable = _ref.rowExpandable,
|
|
20
|
+
emptyNode = _ref.emptyNode,
|
|
21
|
+
childrenColumnName = _ref.childrenColumnName;
|
|
22
|
+
|
|
23
|
+
var _React$useContext = React.useContext(ResizeContext),
|
|
24
|
+
onColumnResize = _React$useContext.onColumnResize;
|
|
25
|
+
|
|
26
|
+
var _React$useContext2 = React.useContext(TableContext),
|
|
27
|
+
prefixCls = _React$useContext2.prefixCls,
|
|
28
|
+
getComponent = _React$useContext2.getComponent;
|
|
29
|
+
|
|
30
|
+
var _React$useContext3 = React.useContext(BodyContext),
|
|
31
|
+
flattenColumns = _React$useContext3.flattenColumns;
|
|
32
|
+
|
|
33
|
+
var flattenData = useFlattenRecords(data, childrenColumnName, expandedKeys, getRowKey); // ====================== Hover =======================
|
|
34
|
+
|
|
35
|
+
var _React$useState = React.useState(-1),
|
|
36
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37
|
+
startRow = _React$useState2[0],
|
|
38
|
+
setStartRow = _React$useState2[1];
|
|
39
|
+
|
|
40
|
+
var _React$useState3 = React.useState(-1),
|
|
41
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
42
|
+
endRow = _React$useState4[0],
|
|
43
|
+
setEndRow = _React$useState4[1];
|
|
44
|
+
|
|
45
|
+
var onHover = React.useCallback(function (start, end) {
|
|
46
|
+
setStartRow(start);
|
|
47
|
+
setEndRow(end);
|
|
48
|
+
}, []);
|
|
49
|
+
var hoverContext = React.useMemo(function () {
|
|
50
|
+
return {
|
|
51
|
+
startRow: startRow,
|
|
52
|
+
endRow: endRow,
|
|
53
|
+
onHover: onHover
|
|
54
|
+
};
|
|
55
|
+
}, [onHover, startRow, endRow]); // ====================== Render ======================
|
|
56
|
+
|
|
57
|
+
var bodyNode = React.useMemo(function () {
|
|
58
|
+
var WrapperComponent = getComponent(['body', 'wrapper'], 'tbody');
|
|
59
|
+
var trComponent = getComponent(['body', 'row'], 'tr');
|
|
60
|
+
var tdComponent = getComponent(['body', 'cell'], 'td');
|
|
61
|
+
var rows;
|
|
62
|
+
|
|
63
|
+
if (data.length) {
|
|
64
|
+
rows = flattenData.map(function (item, idx) {
|
|
65
|
+
var record = item.record,
|
|
66
|
+
indent = item.indent,
|
|
67
|
+
renderIndex = item.index;
|
|
68
|
+
var key = getRowKey(record, idx);
|
|
69
|
+
return /*#__PURE__*/React.createElement(BodyRow, {
|
|
70
|
+
key: key,
|
|
71
|
+
rowKey: key,
|
|
72
|
+
record: record,
|
|
73
|
+
recordKey: key,
|
|
74
|
+
index: idx,
|
|
75
|
+
renderIndex: renderIndex,
|
|
76
|
+
rowComponent: trComponent,
|
|
77
|
+
cellComponent: tdComponent,
|
|
78
|
+
expandedKeys: expandedKeys,
|
|
79
|
+
onRow: onRow,
|
|
80
|
+
getRowKey: getRowKey,
|
|
81
|
+
rowExpandable: rowExpandable,
|
|
82
|
+
childrenColumnName: childrenColumnName,
|
|
83
|
+
indent: indent
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
} else {
|
|
87
|
+
rows = /*#__PURE__*/React.createElement(ExpandedRow, {
|
|
88
|
+
expanded: true,
|
|
89
|
+
className: "".concat(prefixCls, "-placeholder"),
|
|
90
|
+
prefixCls: prefixCls,
|
|
91
|
+
component: trComponent,
|
|
92
|
+
cellComponent: tdComponent,
|
|
93
|
+
colSpan: flattenColumns.length,
|
|
94
|
+
isEmpty: true
|
|
95
|
+
}, emptyNode);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var columnsKey = getColumnsKey(flattenColumns);
|
|
99
|
+
return /*#__PURE__*/React.createElement(WrapperComponent, {
|
|
100
|
+
className: "".concat(prefixCls, "-tbody")
|
|
101
|
+
}, measureColumnWidth && /*#__PURE__*/React.createElement(MeasureRow, {
|
|
102
|
+
prefixCls: prefixCls,
|
|
103
|
+
columnsKey: columnsKey,
|
|
104
|
+
onColumnResize: onColumnResize
|
|
105
|
+
}), rows);
|
|
106
|
+
}, [data, prefixCls, onRow, measureColumnWidth, expandedKeys, getRowKey, getComponent, emptyNode, flattenColumns, childrenColumnName, onColumnResize, rowExpandable, flattenData]);
|
|
107
|
+
return /*#__PURE__*/React.createElement(HoverContext.Provider, {
|
|
108
|
+
value: hoverContext
|
|
109
|
+
}, bodyNode);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
var MemoBody = /*#__PURE__*/React.memo(Body);
|
|
113
|
+
MemoBody.displayName = 'Body';
|
|
114
|
+
export default MemoBody;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DataIndex, ColumnType, CustomizeComponent, DefaultRecordType, AlignType, CellEllipsisType } from '../interface';
|
|
3
|
+
import type { HoverContextProps } from '../context/HoverContext';
|
|
4
|
+
interface InternalCellProps<RecordType extends DefaultRecordType> extends Pick<HoverContextProps, 'onHover'> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
record?: RecordType;
|
|
8
|
+
/** `column` index is the real show rowIndex */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** the index of the record. For the render(value, record, renderIndex) */
|
|
11
|
+
renderIndex?: number;
|
|
12
|
+
dataIndex?: DataIndex;
|
|
13
|
+
render?: ColumnType<RecordType>['render'];
|
|
14
|
+
component?: CustomizeComponent;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
colSpan?: number;
|
|
17
|
+
rowSpan?: number;
|
|
18
|
+
ellipsis?: CellEllipsisType;
|
|
19
|
+
align?: AlignType;
|
|
20
|
+
shouldCellUpdate?: (record: RecordType, prevRecord: RecordType) => boolean;
|
|
21
|
+
fixLeft?: number | false;
|
|
22
|
+
fixRight?: number | false;
|
|
23
|
+
firstFixLeft?: boolean;
|
|
24
|
+
lastFixLeft?: boolean;
|
|
25
|
+
firstFixRight?: boolean;
|
|
26
|
+
lastFixRight?: boolean;
|
|
27
|
+
/** @private Used for `expandable` with nest tree */
|
|
28
|
+
appendNode?: React.ReactNode;
|
|
29
|
+
additionalProps?: React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
30
|
+
/** @private Fixed for user use `shouldCellUpdate` which block the render */
|
|
31
|
+
expanded?: boolean;
|
|
32
|
+
rowType?: 'header' | 'body' | 'footer';
|
|
33
|
+
isSticky?: boolean;
|
|
34
|
+
hovering?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare type CellProps<RecordType extends DefaultRecordType> = Omit<InternalCellProps<RecordType>, keyof HoverContextProps>;
|
|
37
|
+
/** Inject hover data here, we still wish MemoCell keep simple `shouldCellUpdate` logic */
|
|
38
|
+
declare const WrappedCell: React.ForwardRefExoticComponent<CellProps<any> & React.RefAttributes<any>>;
|
|
39
|
+
export default WrappedCell;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
|
+
|
|
5
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
6
|
+
var t = {};
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import classNames from 'classnames';
|
|
20
|
+
import shallowEqual from 'shallowequal';
|
|
21
|
+
import { supportRef } from "rc-util/es/ref";
|
|
22
|
+
import { getPathValue, validateValue } from '../utils/valueUtil';
|
|
23
|
+
import StickyContext from '../context/StickyContext';
|
|
24
|
+
import HoverContext from '../context/HoverContext';
|
|
25
|
+
import warning from "rc-util/es/warning";
|
|
26
|
+
/** Check if cell is in hover range */
|
|
27
|
+
|
|
28
|
+
function inHoverRange(cellStartRow, cellRowSpan, startRow, endRow) {
|
|
29
|
+
var cellEndRow = cellStartRow + cellRowSpan - 1;
|
|
30
|
+
return cellStartRow <= endRow && cellEndRow >= startRow;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function isRenderCell(data) {
|
|
34
|
+
return data && _typeof(data) === 'object' && !Array.isArray(data) && ! /*#__PURE__*/React.isValidElement(data);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function isRefComponent(component) {
|
|
38
|
+
// String tag component also support ref
|
|
39
|
+
if (typeof component === 'string') {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return supportRef(component);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function Cell(_ref, ref) {
|
|
47
|
+
var _classNames;
|
|
48
|
+
|
|
49
|
+
var prefixCls = _ref.prefixCls,
|
|
50
|
+
className = _ref.className,
|
|
51
|
+
record = _ref.record,
|
|
52
|
+
index = _ref.index,
|
|
53
|
+
renderIndex = _ref.renderIndex,
|
|
54
|
+
dataIndex = _ref.dataIndex,
|
|
55
|
+
render = _ref.render,
|
|
56
|
+
children = _ref.children,
|
|
57
|
+
_ref$component = _ref.component,
|
|
58
|
+
Component = _ref$component === void 0 ? 'td' : _ref$component,
|
|
59
|
+
colSpan = _ref.colSpan,
|
|
60
|
+
rowSpan = _ref.rowSpan,
|
|
61
|
+
fixLeft = _ref.fixLeft,
|
|
62
|
+
fixRight = _ref.fixRight,
|
|
63
|
+
firstFixLeft = _ref.firstFixLeft,
|
|
64
|
+
lastFixLeft = _ref.lastFixLeft,
|
|
65
|
+
firstFixRight = _ref.firstFixRight,
|
|
66
|
+
lastFixRight = _ref.lastFixRight,
|
|
67
|
+
appendNode = _ref.appendNode,
|
|
68
|
+
_ref$additionalProps = _ref.additionalProps,
|
|
69
|
+
additionalProps = _ref$additionalProps === void 0 ? {} : _ref$additionalProps,
|
|
70
|
+
ellipsis = _ref.ellipsis,
|
|
71
|
+
align = _ref.align,
|
|
72
|
+
rowType = _ref.rowType,
|
|
73
|
+
isSticky = _ref.isSticky,
|
|
74
|
+
hovering = _ref.hovering,
|
|
75
|
+
onHover = _ref.onHover;
|
|
76
|
+
|
|
77
|
+
var _a, _b;
|
|
78
|
+
|
|
79
|
+
var cellPrefixCls = "".concat(prefixCls, "-cell");
|
|
80
|
+
var supportSticky = React.useContext(StickyContext); // ==================== Child Node ====================
|
|
81
|
+
|
|
82
|
+
var cellProps;
|
|
83
|
+
var childNode;
|
|
84
|
+
|
|
85
|
+
if (validateValue(children)) {
|
|
86
|
+
childNode = children;
|
|
87
|
+
} else {
|
|
88
|
+
var value = getPathValue(record, dataIndex); // Customize render node
|
|
89
|
+
|
|
90
|
+
childNode = value;
|
|
91
|
+
|
|
92
|
+
if (render) {
|
|
93
|
+
var renderData = render(value, record, renderIndex);
|
|
94
|
+
|
|
95
|
+
if (isRenderCell(renderData)) {
|
|
96
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
97
|
+
warning(false, '`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead.');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
childNode = renderData.children;
|
|
101
|
+
cellProps = renderData.props;
|
|
102
|
+
} else {
|
|
103
|
+
childNode = renderData;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
} // Not crash if final `childNode` is not validate ReactNode
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
if (_typeof(childNode) === 'object' && !Array.isArray(childNode) && ! /*#__PURE__*/React.isValidElement(childNode)) {
|
|
110
|
+
childNode = null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (ellipsis && (lastFixLeft || firstFixRight)) {
|
|
114
|
+
childNode = /*#__PURE__*/React.createElement("span", {
|
|
115
|
+
className: "".concat(cellPrefixCls, "-content")
|
|
116
|
+
}, childNode);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var _c = cellProps || {},
|
|
120
|
+
cellColSpan = _c.colSpan,
|
|
121
|
+
cellRowSpan = _c.rowSpan,
|
|
122
|
+
cellStyle = _c.style,
|
|
123
|
+
cellClassName = _c.className,
|
|
124
|
+
restCellProps = __rest(_c, ["colSpan", "rowSpan", "style", "className"]);
|
|
125
|
+
|
|
126
|
+
var mergedColSpan = (_a = cellColSpan !== undefined ? cellColSpan : colSpan) !== null && _a !== void 0 ? _a : 1;
|
|
127
|
+
var mergedRowSpan = (_b = cellRowSpan !== undefined ? cellRowSpan : rowSpan) !== null && _b !== void 0 ? _b : 1;
|
|
128
|
+
|
|
129
|
+
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
130
|
+
return null;
|
|
131
|
+
} // ====================== Fixed =======================
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
var fixedStyle = {};
|
|
135
|
+
var isFixLeft = typeof fixLeft === 'number' && supportSticky;
|
|
136
|
+
var isFixRight = typeof fixRight === 'number' && supportSticky;
|
|
137
|
+
|
|
138
|
+
if (isFixLeft) {
|
|
139
|
+
fixedStyle.position = 'sticky';
|
|
140
|
+
fixedStyle.left = fixLeft;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (isFixRight) {
|
|
144
|
+
fixedStyle.position = 'sticky';
|
|
145
|
+
fixedStyle.right = fixRight;
|
|
146
|
+
} // ====================== Align =======================
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
var alignStyle = {};
|
|
150
|
+
|
|
151
|
+
if (align) {
|
|
152
|
+
alignStyle.textAlign = align;
|
|
153
|
+
} // ====================== Hover =======================
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
var onMouseEnter = function onMouseEnter(event) {
|
|
157
|
+
var _a;
|
|
158
|
+
|
|
159
|
+
if (record) {
|
|
160
|
+
onHover(index, index + mergedRowSpan - 1);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
(_a = additionalProps === null || additionalProps === void 0 ? void 0 : additionalProps.onMouseEnter) === null || _a === void 0 ? void 0 : _a.call(additionalProps, event);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
var onMouseLeave = function onMouseLeave(event) {
|
|
167
|
+
var _a;
|
|
168
|
+
|
|
169
|
+
if (record) {
|
|
170
|
+
onHover(-1, -1);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
(_a = additionalProps === null || additionalProps === void 0 ? void 0 : additionalProps.onMouseLeave) === null || _a === void 0 ? void 0 : _a.call(additionalProps, event);
|
|
174
|
+
}; // ====================== Render ======================
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
var title;
|
|
178
|
+
var ellipsisConfig = ellipsis === true ? {
|
|
179
|
+
showTitle: true
|
|
180
|
+
} : ellipsis;
|
|
181
|
+
|
|
182
|
+
if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === 'header')) {
|
|
183
|
+
if (typeof childNode === 'string' || typeof childNode === 'number') {
|
|
184
|
+
title = childNode.toString();
|
|
185
|
+
} else if ( /*#__PURE__*/React.isValidElement(childNode) && typeof childNode.props.children === 'string') {
|
|
186
|
+
title = childNode.props.children;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
var componentProps = _extends(_extends(_extends({
|
|
191
|
+
title: title
|
|
192
|
+
}, restCellProps), additionalProps), {
|
|
193
|
+
colSpan: mergedColSpan !== 1 ? mergedColSpan : null,
|
|
194
|
+
rowSpan: mergedRowSpan !== 1 ? mergedRowSpan : null,
|
|
195
|
+
className: classNames(cellPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), _defineProperty(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky && supportSticky), _defineProperty(_classNames, "".concat(cellPrefixCls, "-row-hover"), !cellProps && hovering), _classNames), additionalProps.className, cellClassName),
|
|
196
|
+
style: _extends(_extends(_extends(_extends({}, additionalProps.style), alignStyle), fixedStyle), cellStyle),
|
|
197
|
+
onMouseEnter: onMouseEnter,
|
|
198
|
+
onMouseLeave: onMouseLeave,
|
|
199
|
+
ref: isRefComponent(Component) ? ref : null
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
return /*#__PURE__*/React.createElement(Component, componentProps, appendNode, childNode);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
var RefCell = /*#__PURE__*/React.forwardRef(Cell);
|
|
206
|
+
RefCell.displayName = 'Cell';
|
|
207
|
+
var comparePropList = ['expanded', 'className', 'hovering'];
|
|
208
|
+
var MemoCell = /*#__PURE__*/React.memo(RefCell, function (prev, next) {
|
|
209
|
+
if (next.shouldCellUpdate) {
|
|
210
|
+
return (// Additional handle of expanded logic
|
|
211
|
+
comparePropList.every(function (propName) {
|
|
212
|
+
return prev[propName] === next[propName];
|
|
213
|
+
}) && // User control update logic
|
|
214
|
+
!next.shouldCellUpdate(next.record, prev.record)
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return shallowEqual(prev, next);
|
|
219
|
+
});
|
|
220
|
+
/** Inject hover data here, we still wish MemoCell keep simple `shouldCellUpdate` logic */
|
|
221
|
+
|
|
222
|
+
var WrappedCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
223
|
+
var _React$useContext = React.useContext(HoverContext),
|
|
224
|
+
onHover = _React$useContext.onHover,
|
|
225
|
+
startRow = _React$useContext.startRow,
|
|
226
|
+
endRow = _React$useContext.endRow;
|
|
227
|
+
|
|
228
|
+
var index = props.index,
|
|
229
|
+
_props$additionalProp = props.additionalProps,
|
|
230
|
+
additionalProps = _props$additionalProp === void 0 ? {} : _props$additionalProp,
|
|
231
|
+
colSpan = props.colSpan,
|
|
232
|
+
rowSpan = props.rowSpan;
|
|
233
|
+
var cellColSpan = additionalProps.colSpan,
|
|
234
|
+
cellRowSpan = additionalProps.rowSpan;
|
|
235
|
+
var mergedColSpan = colSpan !== null && colSpan !== void 0 ? colSpan : cellColSpan;
|
|
236
|
+
var mergedRowSpan = rowSpan !== null && rowSpan !== void 0 ? rowSpan : cellRowSpan;
|
|
237
|
+
var hovering = inHoverRange(index, mergedRowSpan || 1, startRow, endRow);
|
|
238
|
+
return /*#__PURE__*/React.createElement(MemoCell, _extends({}, props, {
|
|
239
|
+
colSpan: mergedColSpan,
|
|
240
|
+
rowSpan: mergedRowSpan,
|
|
241
|
+
hovering: hovering,
|
|
242
|
+
ref: ref,
|
|
243
|
+
onHover: onHover
|
|
244
|
+
}));
|
|
245
|
+
});
|
|
246
|
+
WrappedCell.displayName = 'WrappedCell';
|
|
247
|
+
export default WrappedCell;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColumnType } from './interface';
|
|
3
|
+
export interface ColGroupProps<RecordType> {
|
|
4
|
+
colWidths: readonly (number | string)[];
|
|
5
|
+
columns?: readonly ColumnType<RecordType>[];
|
|
6
|
+
columCount?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function ColGroup<RecordType>({ colWidths, columns, columCount }: ColGroupProps<RecordType>): JSX.Element;
|
|
9
|
+
export default ColGroup;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
|
|
3
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
import * as React from 'react';
|
|
17
|
+
import { INTERNAL_COL_DEFINE } from './utils/legacyUtil';
|
|
18
|
+
|
|
19
|
+
function ColGroup(_ref) {
|
|
20
|
+
var colWidths = _ref.colWidths,
|
|
21
|
+
columns = _ref.columns,
|
|
22
|
+
columCount = _ref.columCount;
|
|
23
|
+
var cols = [];
|
|
24
|
+
var len = columCount || columns.length; // Only insert col with width & additional props
|
|
25
|
+
// Skip if rest col do not have any useful info
|
|
26
|
+
|
|
27
|
+
var mustInsert = false;
|
|
28
|
+
|
|
29
|
+
for (var i = len - 1; i >= 0; i -= 1) {
|
|
30
|
+
var width = colWidths[i];
|
|
31
|
+
var column = columns && columns[i];
|
|
32
|
+
var additionalProps = column && column[INTERNAL_COL_DEFINE];
|
|
33
|
+
|
|
34
|
+
if (width || additionalProps || mustInsert) {
|
|
35
|
+
var _a = additionalProps || {},
|
|
36
|
+
columnType = _a.columnType,
|
|
37
|
+
restAdditionalProps = __rest(_a, ["columnType"]);
|
|
38
|
+
|
|
39
|
+
cols.unshift( /*#__PURE__*/React.createElement("col", _extends({
|
|
40
|
+
key: i,
|
|
41
|
+
style: {
|
|
42
|
+
width: width
|
|
43
|
+
}
|
|
44
|
+
}, restAdditionalProps)));
|
|
45
|
+
mustInsert = true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return /*#__PURE__*/React.createElement("colgroup", null, cols);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default ColGroup;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { HeaderProps } from '../Header/Header';
|
|
3
|
+
export interface FixedHeaderProps<RecordType> extends HeaderProps<RecordType> {
|
|
4
|
+
className: string;
|
|
5
|
+
noData: boolean;
|
|
6
|
+
maxContentScroll: boolean;
|
|
7
|
+
colWidths: readonly number[];
|
|
8
|
+
columCount: number;
|
|
9
|
+
direction: 'ltr' | 'rtl';
|
|
10
|
+
fixHeader: boolean;
|
|
11
|
+
stickyTopOffset?: number;
|
|
12
|
+
stickyBottomOffset?: number;
|
|
13
|
+
stickyClassName?: string;
|
|
14
|
+
onScroll: (info: {
|
|
15
|
+
currentTarget: HTMLDivElement;
|
|
16
|
+
scrollLeft?: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
children: (info: HeaderProps<RecordType>) => React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const FixedHolder: React.ForwardRefExoticComponent<FixedHeaderProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export default FixedHolder;
|