@gobolt/genesis 0.3.11 → 0.3.12
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/dist/bundle.css +41 -41
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Tabs/styles.d.ts +1 -3
- package/dist/components/index.d.ts +7 -7
- package/dist/index.cjs +3 -6
- package/dist/index.js +4 -7
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.cjs +2 -3
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +2 -3
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.js +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.cjs +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.cjs +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.cjs +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +3 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.cjs +275 -62
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +275 -62
- package/dist/node_modules/@fontsource/inter/300.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/300.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/400.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/400.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/500.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/500.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/600.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/600.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/700.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/700.css.js +1 -0
- package/dist/node_modules/@fontsource/roboto-mono/400.css.cjs +1 -0
- package/dist/node_modules/@fontsource/roboto-mono/400.css.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/index.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.js +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.cjs +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.js +2 -2
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.cjs +1 -2
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +1 -2
- package/dist/node_modules/@rc-component/trigger/es/index.cjs +1 -3
- package/dist/node_modules/@rc-component/trigger/es/index.js +1 -3
- package/dist/node_modules/antd/es/_util/ActionButton.cjs +4 -4
- package/dist/node_modules/antd/es/_util/ActionButton.js +4 -4
- package/dist/node_modules/antd/es/_util/colors.cjs +2 -1
- package/dist/node_modules/antd/es/_util/colors.js +2 -1
- package/dist/node_modules/antd/es/_util/extendsObject.cjs +13 -11
- package/dist/node_modules/antd/es/_util/extendsObject.js +13 -11
- package/dist/node_modules/antd/es/_util/motion.cjs +16 -13
- package/dist/node_modules/antd/es/_util/motion.js +16 -13
- package/dist/node_modules/antd/es/_util/placements.cjs +4 -4
- package/dist/node_modules/antd/es/_util/placements.js +4 -4
- package/dist/node_modules/antd/es/_util/responsiveObserver.cjs +20 -18
- package/dist/node_modules/antd/es/_util/responsiveObserver.js +20 -18
- package/dist/node_modules/antd/es/_util/scrollTo.cjs +2 -1
- package/dist/node_modules/antd/es/_util/scrollTo.js +2 -1
- package/dist/node_modules/antd/es/_util/toList.cjs +4 -5
- package/dist/node_modules/antd/es/_util/toList.js +4 -5
- package/dist/node_modules/antd/es/_util/warning.cjs +6 -8
- package/dist/node_modules/antd/es/_util/warning.js +2 -3
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.cjs +13 -10
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +14 -11
- package/dist/node_modules/antd/es/_util/wave/style.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
- package/dist/node_modules/antd/es/avatar/Avatar.cjs +28 -22
- package/dist/node_modules/antd/es/avatar/Avatar.js +28 -22
- package/dist/node_modules/antd/es/avatar/AvatarGroup.cjs +3 -2
- package/dist/node_modules/antd/es/avatar/AvatarGroup.js +3 -2
- package/dist/node_modules/antd/es/avatar/style/index.cjs +7 -14
- package/dist/node_modules/antd/es/avatar/style/index.js +7 -14
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.cjs +4 -3
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js +4 -3
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.cjs +5 -4
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.js +5 -4
- package/dist/node_modules/antd/es/button/button.cjs +9 -20
- package/dist/node_modules/antd/es/button/button.js +10 -21
- package/dist/node_modules/antd/es/button/style/index.cjs +8 -15
- package/dist/node_modules/antd/es/button/style/index.js +8 -15
- package/dist/node_modules/antd/es/button/style/token.cjs +0 -1
- package/dist/node_modules/antd/es/button/style/token.js +0 -1
- package/dist/node_modules/antd/es/card/Card.cjs +2 -1
- package/dist/node_modules/antd/es/card/Card.js +2 -1
- package/dist/node_modules/antd/es/card/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +1 -1
- package/dist/node_modules/antd/es/checkbox/Checkbox.cjs +3 -3
- package/dist/node_modules/antd/es/checkbox/Checkbox.js +3 -3
- package/dist/node_modules/antd/es/checkbox/Group.cjs +4 -4
- package/dist/node_modules/antd/es/checkbox/Group.js +4 -4
- package/dist/node_modules/antd/es/checkbox/style/index.cjs +27 -26
- package/dist/node_modules/antd/es/checkbox/style/index.js +27 -26
- package/dist/node_modules/antd/es/color-picker/color.cjs +12 -9
- package/dist/node_modules/antd/es/color-picker/color.js +12 -9
- package/dist/node_modules/antd/es/config-provider/DisabledContext.cjs +5 -4
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +5 -4
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.cjs +3 -10
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.js +3 -10
- package/dist/node_modules/antd/es/config-provider/PropWarning.cjs +4 -3
- package/dist/node_modules/antd/es/config-provider/PropWarning.js +4 -3
- package/dist/node_modules/antd/es/config-provider/SizeContext.cjs +5 -4
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +5 -4
- package/dist/node_modules/antd/es/config-provider/UnstableContext.cjs +2 -2
- package/dist/node_modules/antd/es/config-provider/UnstableContext.js +2 -2
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.cjs +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.js +1 -1
- package/dist/node_modules/antd/es/config-provider/index.cjs +2 -3
- package/dist/node_modules/antd/es/config-provider/index.js +2 -3
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.cjs +9 -23
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +9 -23
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.cjs +10 -22
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +10 -22
- package/dist/node_modules/antd/es/date-picker/style/index.cjs +16 -18
- package/dist/node_modules/antd/es/date-picker/style/index.js +16 -18
- package/dist/node_modules/antd/es/date-picker/style/panel.cjs +40 -30
- package/dist/node_modules/antd/es/date-picker/style/panel.js +40 -30
- package/dist/node_modules/antd/es/dropdown/dropdown-button.cjs +4 -10
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +4 -10
- package/dist/node_modules/antd/es/dropdown/dropdown.cjs +23 -25
- package/dist/node_modules/antd/es/dropdown/dropdown.js +23 -25
- package/dist/node_modules/antd/es/dropdown/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
- package/dist/node_modules/antd/es/empty/index.cjs +9 -11
- package/dist/node_modules/antd/es/empty/index.js +9 -11
- package/dist/node_modules/antd/es/empty/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js +1 -1
- package/dist/node_modules/antd/es/form/ErrorList.cjs +16 -13
- package/dist/node_modules/antd/es/form/ErrorList.js +16 -13
- package/dist/node_modules/antd/es/form/Form.cjs +3 -4
- package/dist/node_modules/antd/es/form/Form.js +1 -2
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.cjs +7 -9
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.js +7 -9
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.cjs +13 -16
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.js +13 -16
- package/dist/node_modules/antd/es/form/FormItem/index.cjs +12 -8
- package/dist/node_modules/antd/es/form/FormItem/index.js +12 -8
- package/dist/node_modules/antd/es/form/FormItemLabel.cjs +26 -22
- package/dist/node_modules/antd/es/form/FormItemLabel.js +26 -22
- package/dist/node_modules/antd/es/form/context.cjs +7 -6
- package/dist/node_modules/antd/es/form/context.js +7 -6
- package/dist/node_modules/antd/es/form/hooks/useForm.cjs +3 -4
- package/dist/node_modules/antd/es/form/hooks/useForm.js +3 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.cjs +4 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.js +4 -3
- package/dist/node_modules/antd/es/form/hooks/useVariants.cjs +2 -1
- package/dist/node_modules/antd/es/form/hooks/useVariants.js +2 -1
- package/dist/node_modules/antd/es/form/index.cjs +1 -1
- package/dist/node_modules/antd/es/form/style/fallbackCmp.cjs +5 -4
- package/dist/node_modules/antd/es/form/style/fallbackCmp.js +5 -4
- package/dist/node_modules/antd/es/form/style/index.cjs +92 -62
- package/dist/node_modules/antd/es/form/style/index.js +92 -62
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.cjs +3 -1
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.js +3 -1
- package/dist/node_modules/antd/es/input/Input.cjs +3 -3
- package/dist/node_modules/antd/es/input/Input.js +3 -3
- package/dist/node_modules/antd/es/input/OTP/OTPInput.cjs +13 -31
- package/dist/node_modules/antd/es/input/OTP/OTPInput.js +8 -26
- package/dist/node_modules/antd/es/input/OTP/index.cjs +1 -2
- package/dist/node_modules/antd/es/input/OTP/index.js +1 -2
- package/dist/node_modules/antd/es/input/Password.cjs +2 -3
- package/dist/node_modules/antd/es/input/Password.js +2 -3
- package/dist/node_modules/antd/es/input/Search.cjs +14 -18
- package/dist/node_modules/antd/es/input/Search.js +14 -18
- package/dist/node_modules/antd/es/input/TextArea.cjs +6 -42
- package/dist/node_modules/antd/es/input/TextArea.js +6 -42
- package/dist/node_modules/antd/es/input/style/index.cjs +20 -7
- package/dist/node_modules/antd/es/input/style/index.js +20 -7
- package/dist/node_modules/antd/es/input/style/otp.cjs +1 -23
- package/dist/node_modules/antd/es/input/style/otp.js +1 -23
- package/dist/node_modules/antd/es/input/style/textarea.cjs +5 -27
- package/dist/node_modules/antd/es/input/style/textarea.js +5 -27
- package/dist/node_modules/antd/es/input/style/variants.cjs +29 -25
- package/dist/node_modules/antd/es/input/style/variants.js +29 -25
- package/dist/node_modules/antd/es/layout/Sider.cjs +21 -9
- package/dist/node_modules/antd/es/layout/Sider.js +21 -9
- package/dist/node_modules/antd/es/layout/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.js +1 -1
- package/dist/node_modules/antd/es/locale/en_US.cjs +1 -2
- package/dist/node_modules/antd/es/locale/en_US.js +1 -2
- package/dist/node_modules/antd/es/menu/MenuItem.cjs +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.cjs +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/node_modules/antd/es/menu/menu.cjs +2 -2
- package/dist/node_modules/antd/es/menu/menu.js +2 -2
- package/dist/node_modules/antd/es/menu/style/index.cjs +3 -1
- package/dist/node_modules/antd/es/menu/style/index.js +3 -1
- package/dist/node_modules/antd/es/menu/style/rtl.cjs +24 -21
- package/dist/node_modules/antd/es/menu/style/rtl.js +24 -21
- package/dist/node_modules/antd/es/menu/style/theme.cjs +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.cjs +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.cjs +11 -2
- package/dist/node_modules/antd/es/pagination/style/index.js +11 -2
- package/dist/node_modules/antd/es/popover/PurePanel.cjs +6 -5
- package/dist/node_modules/antd/es/popover/PurePanel.js +6 -5
- package/dist/node_modules/antd/es/popover/index.cjs +2 -2
- package/dist/node_modules/antd/es/popover/index.js +2 -3
- package/dist/node_modules/antd/es/progress/Line.cjs +7 -4
- package/dist/node_modules/antd/es/progress/Line.js +7 -4
- package/dist/node_modules/antd/es/progress/utils.cjs +16 -13
- package/dist/node_modules/antd/es/progress/utils.js +16 -13
- package/dist/node_modules/antd/es/radio/group.cjs +4 -10
- package/dist/node_modules/antd/es/radio/group.js +2 -8
- package/dist/node_modules/antd/es/radio/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/radio/style/index.js +2 -2
- package/dist/node_modules/antd/es/result/index.cjs +24 -21
- package/dist/node_modules/antd/es/result/index.js +24 -21
- package/dist/node_modules/antd/es/result/noFound.cjs +139 -117
- package/dist/node_modules/antd/es/result/noFound.js +139 -117
- package/dist/node_modules/antd/es/result/serverError.cjs +154 -131
- package/dist/node_modules/antd/es/result/serverError.js +154 -131
- package/dist/node_modules/antd/es/result/unauthorized.cjs +125 -113
- package/dist/node_modules/antd/es/result/unauthorized.js +125 -113
- package/dist/node_modules/antd/es/segmented/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/segmented/style/index.js +2 -2
- package/dist/node_modules/antd/es/select/index.cjs +15 -42
- package/dist/node_modules/antd/es/select/index.js +15 -42
- package/dist/node_modules/antd/es/select/style/index.cjs +11 -17
- package/dist/node_modules/antd/es/select/style/index.js +11 -17
- package/dist/node_modules/antd/es/select/style/multiple.cjs +1 -2
- package/dist/node_modules/antd/es/select/style/multiple.js +1 -2
- package/dist/node_modules/antd/es/select/useIcons.cjs +20 -18
- package/dist/node_modules/antd/es/select/useIcons.js +20 -18
- package/dist/node_modules/antd/es/skeleton/Title.cjs +17 -14
- package/dist/node_modules/antd/es/skeleton/Title.js +17 -14
- package/dist/node_modules/antd/es/skeleton/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/skeleton/style/index.js +1 -1
- package/dist/node_modules/antd/es/space/Item.cjs +8 -7
- package/dist/node_modules/antd/es/space/Item.js +8 -7
- package/dist/node_modules/antd/es/spin/Indicator/Progress.cjs +6 -4
- package/dist/node_modules/antd/es/spin/Indicator/Progress.js +6 -4
- package/dist/node_modules/antd/es/spin/Indicator/index.cjs +1 -2
- package/dist/node_modules/antd/es/spin/Indicator/index.js +1 -2
- package/dist/node_modules/antd/es/spin/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/spin/style/index.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.cjs +3 -6
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +3 -6
- package/dist/node_modules/antd/es/style/compact-item.cjs +8 -10
- package/dist/node_modules/antd/es/style/compact-item.js +8 -10
- package/dist/node_modules/antd/es/style/index.cjs +16 -13
- package/dist/node_modules/antd/es/style/index.js +16 -13
- package/dist/node_modules/antd/es/style/motion/motion.cjs +2 -1
- package/dist/node_modules/antd/es/style/motion/motion.js +2 -1
- package/dist/node_modules/antd/es/switch/index.cjs +3 -3
- package/dist/node_modules/antd/es/switch/index.js +3 -3
- package/dist/node_modules/antd/es/table/InternalTable.cjs +2 -1
- package/dist/node_modules/antd/es/table/InternalTable.js +2 -1
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.cjs +64 -51
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +66 -53
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.cjs +30 -20
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.js +30 -20
- package/dist/node_modules/antd/es/table/hooks/usePagination.js +2 -2
- package/dist/node_modules/antd/es/table/hooks/useSelection.cjs +34 -29
- package/dist/node_modules/antd/es/table/hooks/useSelection.js +34 -29
- package/dist/node_modules/antd/es/table/hooks/useSorter.cjs +44 -26
- package/dist/node_modules/antd/es/table/hooks/useSorter.js +44 -26
- package/dist/node_modules/antd/es/table/style/filter.cjs +2 -2
- package/dist/node_modules/antd/es/table/style/filter.js +2 -2
- package/dist/node_modules/antd/es/table/style/index.cjs +1 -3
- package/dist/node_modules/antd/es/table/style/index.js +1 -3
- package/dist/node_modules/antd/es/table/style/sticky.cjs +1 -1
- package/dist/node_modules/antd/es/table/style/sticky.js +1 -1
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.cjs +5 -4
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.js +5 -4
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.cjs +1 -8
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.js +1 -8
- package/dist/node_modules/antd/es/tabs/index.cjs +10 -20
- package/dist/node_modules/antd/es/tabs/index.js +10 -20
- package/dist/node_modules/antd/es/tabs/style/index.cjs +14 -42
- package/dist/node_modules/antd/es/tabs/style/index.js +14 -42
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.cjs +5 -4
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +5 -4
- package/dist/node_modules/antd/es/theme/useToken.cjs +13 -1
- package/dist/node_modules/antd/es/theme/useToken.js +13 -1
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.cjs +1 -1
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.js +1 -1
- package/dist/node_modules/antd/es/tooltip/index.cjs +5 -6
- package/dist/node_modules/antd/es/tooltip/index.js +5 -6
- package/dist/node_modules/antd/es/tooltip/style/index.cjs +17 -13
- package/dist/node_modules/antd/es/tooltip/style/index.js +17 -13
- package/dist/node_modules/antd/es/tooltip/util.cjs +0 -5
- package/dist/node_modules/antd/es/tooltip/util.js +0 -5
- package/dist/node_modules/antd/es/tree/DirectoryTree.cjs +5 -4
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +5 -4
- package/dist/node_modules/antd/es/tree/style/directory.cjs +48 -50
- package/dist/node_modules/antd/es/tree/style/directory.js +48 -50
- package/dist/node_modules/antd/es/tree/style/index.cjs +13 -12
- package/dist/node_modules/antd/es/tree/style/index.js +13 -12
- package/dist/node_modules/antd/es/tree/utils/dictUtil.cjs +8 -7
- package/dist/node_modules/antd/es/tree/utils/dictUtil.js +8 -7
- package/dist/node_modules/antd/es/tree/utils/iconUtil.cjs +2 -3
- package/dist/node_modules/antd/es/tree/utils/iconUtil.js +2 -3
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.cjs +13 -13
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.js +13 -13
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.cjs +5 -4
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.js +5 -4
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.cjs +7 -6
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.js +7 -6
- package/dist/node_modules/antd/es/typography/Base/index.cjs +16 -16
- package/dist/node_modules/antd/es/typography/Base/index.js +16 -16
- package/dist/node_modules/antd/es/typography/Editable.cjs +16 -13
- package/dist/node_modules/antd/es/typography/Editable.js +16 -13
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +5 -4
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +5 -4
- package/dist/node_modules/antd/es/typography/style/index.cjs +6 -6
- package/dist/node_modules/antd/es/typography/style/index.js +6 -6
- package/dist/node_modules/antd/es/typography/style/mixins.cjs +2 -2
- package/dist/node_modules/antd/es/typography/style/mixins.js +2 -2
- package/dist/node_modules/antd/es/version/version.cjs +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/d3-ease/src/elastic.cjs +2 -2
- package/dist/node_modules/d3-ease/src/elastic.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.cjs +13 -13
- package/dist/node_modules/dayjs/dayjs.min.js +13 -13
- package/dist/node_modules/dayjs/plugin/advancedFormat.cjs +5 -5
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +5 -5
- package/dist/node_modules/dayjs/plugin/customParseFormat.cjs +15 -15
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +15 -15
- package/dist/node_modules/dayjs/plugin/localeData.cjs +11 -11
- package/dist/node_modules/dayjs/plugin/localeData.js +11 -11
- package/dist/node_modules/dayjs/plugin/weekOfYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekOfYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.js +3 -3
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.cjs +2 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +2 -2
- package/dist/node_modules/rc-field-form/es/Field.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/Field.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +2 -2
- package/dist/node_modules/rc-input/es/Input.cjs +1 -2
- package/dist/node_modules/rc-input/es/Input.js +1 -2
- package/dist/node_modules/rc-menu/es/MenuItem.cjs +2 -2
- package/dist/node_modules/rc-menu/es/MenuItem.js +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.cjs +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.js +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.cjs +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.js +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.cjs +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.js +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +2 -2
- package/dist/node_modules/rc-select/es/OptionList.cjs +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.cjs +47 -8
- package/dist/node_modules/rc-select/es/Selector/Input.js +47 -8
- package/dist/node_modules/rc-select/es/hooks/useCache.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useCache.js +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +2 -2
- package/dist/node_modules/rc-table/es/Body/BodyRow.cjs +8 -22
- package/dist/node_modules/rc-table/es/Body/BodyRow.js +8 -22
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.cjs +3 -3
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.js +3 -3
- package/dist/node_modules/rc-table/es/Body/MeasureCell.cjs +1 -2
- package/dist/node_modules/rc-table/es/Body/MeasureCell.js +1 -2
- package/dist/node_modules/rc-table/es/Body/MeasureRow.cjs +5 -10
- package/dist/node_modules/rc-table/es/Body/MeasureRow.js +5 -10
- package/dist/node_modules/rc-table/es/Body/index.cjs +6 -24
- package/dist/node_modules/rc-table/es/Body/index.js +6 -24
- package/dist/node_modules/rc-table/es/FixedHolder/index.cjs +4 -3
- package/dist/node_modules/rc-table/es/FixedHolder/index.js +4 -3
- package/dist/node_modules/rc-table/es/Table.cjs +15 -17
- package/dist/node_modules/rc-table/es/Table.js +16 -18
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.cjs +4 -10
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.js +4 -10
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.cjs +3 -5
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.js +3 -5
- package/dist/node_modules/rc-table/es/hooks/useFrame.js +1 -1
- package/dist/node_modules/rc-tabs/es/TabNavList/index.cjs +21 -30
- package/dist/node_modules/rc-tabs/es/TabNavList/index.js +22 -31
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.cjs +2 -9
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.js +2 -9
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.cjs +1 -1
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +13 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +13 -1
- package/dist/node_modules/rc-tree/es/Tree.cjs +2 -2
- package/dist/node_modules/rc-tree/es/Tree.js +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.cjs +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.js +2 -2
- package/dist/node_modules/rc-util/es/isMobile.cjs +2 -2
- package/dist/node_modules/rc-util/es/isMobile.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/List.cjs +2 -3
- package/dist/node_modules/rc-virtual-list/es/List.js +2 -3
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.cjs +23 -21
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +23 -21
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.cjs +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.cjs +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.cjs +6 -6
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +6 -6
- package/dist/node_modules/react-icons/hi/index.cjs +0 -16
- package/dist/node_modules/react-icons/hi/index.js +0 -16
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.cjs +1 -0
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.js +1 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +26 -26
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +26 -26
- package/dist/node_modules/unified/lib/callable-instance.cjs +2 -2
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unist-util-is/lib/index.cjs +2 -2
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.cjs +5 -5
- package/dist/node_modules/vfile-message/lib/index.js +5 -5
- package/dist/providers/ToastProvider.cjs +1 -1
- package/dist/providers/ToastProvider.js +1 -1
- package/dist/styles/global-styles.cjs +6 -6
- package/dist/styles/global-styles.js +6 -6
- package/dist/utils/icon-util.cjs +0 -19
- package/dist/utils/icon-util.js +1 -20
- package/package.json +1 -2
- package/dist/components/Button/IconButton.cjs +0 -29
- package/dist/components/Button/IconButton.js +0 -30
- package/dist/components/Button/icon-button-styles.cjs +0 -76
- package/dist/components/Button/icon-button-styles.js +0 -77
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +0 -162
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +0 -163
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.cjs +0 -80
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.js +0 -81
- package/dist/components/Table/TableControls/TableControls.cjs +0 -38
- package/dist/components/Table/TableControls/TableControls.js +0 -39
- package/dist/components/Table/TableWithControls/TableWithControls.cjs +0 -41
- package/dist/components/Table/TableWithControls/TableWithControls.js +0 -42
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.cjs +0 -5
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.cjs +0 -78
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -79
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.cjs +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.cjs +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.cjs +0 -33
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -34
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.cjs +0 -23
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.cjs +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.cjs +0 -19
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -20
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.cjs +0 -14
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.js +0 -15
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.cjs +0 -80
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.js +0 -61
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.cjs +0 -17
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.js +0 -18
- package/dist/node_modules/antd/es/color-picker/util.cjs +0 -12
- package/dist/node_modules/antd/es/color-picker/util.js +0 -13
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.cjs +0 -50
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.js +0 -32
- package/dist/node_modules/antd/es/select/usePopupRender.cjs +0 -14
- package/dist/node_modules/antd/es/select/usePopupRender.js +0 -15
- package/dist/node_modules/rc-util/es/composeProps.cjs +0 -20
- package/dist/node_modules/rc-util/es/composeProps.js +0 -21
- package/dist/node_modules/react-icons/fi/index.cjs +0 -7
- package/dist/node_modules/react-icons/fi/index.js +0 -8
- package/dist/node_modules/react-icons/hi2/index.cjs +0 -7
- package/dist/node_modules/react-icons/hi2/index.js +0 -8
- package/dist/node_modules/react-icons/lu/index.cjs +0 -7
- package/dist/node_modules/react-icons/lu/index.js +0 -8
- package/dist/node_modules/react-icons/tb/index.cjs +0 -7
- package/dist/node_modules/react-icons/tb/index.js +0 -8
|
@@ -39,24 +39,7 @@ var __rest = function(s, e) {
|
|
|
39
39
|
}
|
|
40
40
|
return t;
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
const {
|
|
44
|
-
prefixCls: customizePrefixCls,
|
|
45
|
-
shape,
|
|
46
|
-
size: customSize,
|
|
47
|
-
src,
|
|
48
|
-
srcSet,
|
|
49
|
-
icon,
|
|
50
|
-
className,
|
|
51
|
-
rootClassName,
|
|
52
|
-
style,
|
|
53
|
-
alt,
|
|
54
|
-
draggable,
|
|
55
|
-
children,
|
|
56
|
-
crossOrigin,
|
|
57
|
-
gap = 4,
|
|
58
|
-
onError
|
|
59
|
-
} = props, others = __rest(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
|
|
42
|
+
const InternalAvatar = (props, ref$1) => {
|
|
60
43
|
const [scale, setScale] = React__namespace.useState(1);
|
|
61
44
|
const [mounted, setMounted] = React__namespace.useState(false);
|
|
62
45
|
const [isImgExist, setIsImgExist] = React__namespace.useState(true);
|
|
@@ -75,6 +58,9 @@ const Avatar = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
75
58
|
const childrenWidth = avatarChildrenRef.current.offsetWidth;
|
|
76
59
|
const nodeWidth = avatarNodeRef.current.offsetWidth;
|
|
77
60
|
if (childrenWidth !== 0 && nodeWidth !== 0) {
|
|
61
|
+
const {
|
|
62
|
+
gap = 4
|
|
63
|
+
} = props;
|
|
78
64
|
if (gap * 2 < nodeWidth) {
|
|
79
65
|
setScale(nodeWidth - gap * 2 < childrenWidth ? (nodeWidth - gap * 2) / childrenWidth : 1);
|
|
80
66
|
}
|
|
@@ -86,14 +72,31 @@ const Avatar = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
86
72
|
React__namespace.useEffect(() => {
|
|
87
73
|
setIsImgExist(true);
|
|
88
74
|
setScale(1);
|
|
89
|
-
}, [src]);
|
|
90
|
-
React__namespace.useEffect(setScaleParam, [gap]);
|
|
75
|
+
}, [props.src]);
|
|
76
|
+
React__namespace.useEffect(setScaleParam, [props.gap]);
|
|
91
77
|
const handleImgLoadError = () => {
|
|
78
|
+
const {
|
|
79
|
+
onError
|
|
80
|
+
} = props;
|
|
92
81
|
const errorFlag = onError === null || onError === void 0 ? void 0 : onError();
|
|
93
82
|
if (errorFlag !== false) {
|
|
94
83
|
setIsImgExist(false);
|
|
95
84
|
}
|
|
96
85
|
};
|
|
86
|
+
const {
|
|
87
|
+
prefixCls: customizePrefixCls,
|
|
88
|
+
shape,
|
|
89
|
+
size: customSize,
|
|
90
|
+
src,
|
|
91
|
+
srcSet,
|
|
92
|
+
icon,
|
|
93
|
+
className,
|
|
94
|
+
rootClassName,
|
|
95
|
+
alt,
|
|
96
|
+
draggable,
|
|
97
|
+
children,
|
|
98
|
+
crossOrigin
|
|
99
|
+
} = props, others = __rest(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]);
|
|
97
100
|
const size = useSize((ctxSize) => {
|
|
98
101
|
var _a, _b;
|
|
99
102
|
return (_b = (_a = customSize !== null && customSize !== void 0 ? customSize : avatarCtx === null || avatarCtx === void 0 ? void 0 : avatarCtx.size) !== null && _a !== void 0 ? _a : ctxSize) !== null && _b !== void 0 ? _b : "default";
|
|
@@ -171,12 +174,15 @@ const Avatar = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
171
174
|
ref: avatarChildrenRef
|
|
172
175
|
}, children);
|
|
173
176
|
}
|
|
177
|
+
delete others.onError;
|
|
178
|
+
delete others.gap;
|
|
174
179
|
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement("span", Object.assign({}, others, {
|
|
175
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({}, sizeStyle), responsiveSizeStyle), avatar === null || avatar === void 0 ? void 0 : avatar.style), style),
|
|
180
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, sizeStyle), responsiveSizeStyle), avatar === null || avatar === void 0 ? void 0 : avatar.style), others.style),
|
|
176
181
|
className: classString,
|
|
177
182
|
ref: avatarNodeMergedRef
|
|
178
183
|
}), childrenToRender));
|
|
179
|
-
}
|
|
184
|
+
};
|
|
185
|
+
const Avatar = /* @__PURE__ */ React__namespace.forwardRef(InternalAvatar);
|
|
180
186
|
if (process.env.NODE_ENV !== "production") {
|
|
181
187
|
Avatar.displayName = "Avatar";
|
|
182
188
|
}
|
|
@@ -19,24 +19,7 @@ var __rest = function(s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
const
|
|
23
|
-
const {
|
|
24
|
-
prefixCls: customizePrefixCls,
|
|
25
|
-
shape,
|
|
26
|
-
size: customSize,
|
|
27
|
-
src,
|
|
28
|
-
srcSet,
|
|
29
|
-
icon,
|
|
30
|
-
className,
|
|
31
|
-
rootClassName,
|
|
32
|
-
style,
|
|
33
|
-
alt,
|
|
34
|
-
draggable,
|
|
35
|
-
children,
|
|
36
|
-
crossOrigin,
|
|
37
|
-
gap = 4,
|
|
38
|
-
onError
|
|
39
|
-
} = props, others = __rest(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
|
|
22
|
+
const InternalAvatar = (props, ref) => {
|
|
40
23
|
const [scale, setScale] = React.useState(1);
|
|
41
24
|
const [mounted, setMounted] = React.useState(false);
|
|
42
25
|
const [isImgExist, setIsImgExist] = React.useState(true);
|
|
@@ -55,6 +38,9 @@ const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
55
38
|
const childrenWidth = avatarChildrenRef.current.offsetWidth;
|
|
56
39
|
const nodeWidth = avatarNodeRef.current.offsetWidth;
|
|
57
40
|
if (childrenWidth !== 0 && nodeWidth !== 0) {
|
|
41
|
+
const {
|
|
42
|
+
gap = 4
|
|
43
|
+
} = props;
|
|
58
44
|
if (gap * 2 < nodeWidth) {
|
|
59
45
|
setScale(nodeWidth - gap * 2 < childrenWidth ? (nodeWidth - gap * 2) / childrenWidth : 1);
|
|
60
46
|
}
|
|
@@ -66,14 +52,31 @@ const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
66
52
|
React.useEffect(() => {
|
|
67
53
|
setIsImgExist(true);
|
|
68
54
|
setScale(1);
|
|
69
|
-
}, [src]);
|
|
70
|
-
React.useEffect(setScaleParam, [gap]);
|
|
55
|
+
}, [props.src]);
|
|
56
|
+
React.useEffect(setScaleParam, [props.gap]);
|
|
71
57
|
const handleImgLoadError = () => {
|
|
58
|
+
const {
|
|
59
|
+
onError
|
|
60
|
+
} = props;
|
|
72
61
|
const errorFlag = onError === null || onError === void 0 ? void 0 : onError();
|
|
73
62
|
if (errorFlag !== false) {
|
|
74
63
|
setIsImgExist(false);
|
|
75
64
|
}
|
|
76
65
|
};
|
|
66
|
+
const {
|
|
67
|
+
prefixCls: customizePrefixCls,
|
|
68
|
+
shape,
|
|
69
|
+
size: customSize,
|
|
70
|
+
src,
|
|
71
|
+
srcSet,
|
|
72
|
+
icon,
|
|
73
|
+
className,
|
|
74
|
+
rootClassName,
|
|
75
|
+
alt,
|
|
76
|
+
draggable,
|
|
77
|
+
children,
|
|
78
|
+
crossOrigin
|
|
79
|
+
} = props, others = __rest(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]);
|
|
77
80
|
const size = useSize((ctxSize) => {
|
|
78
81
|
var _a, _b;
|
|
79
82
|
return (_b = (_a = customSize !== null && customSize !== void 0 ? customSize : avatarCtx === null || avatarCtx === void 0 ? void 0 : avatarCtx.size) !== null && _a !== void 0 ? _a : ctxSize) !== null && _b !== void 0 ? _b : "default";
|
|
@@ -151,12 +154,15 @@ const Avatar = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
151
154
|
ref: avatarChildrenRef
|
|
152
155
|
}, children);
|
|
153
156
|
}
|
|
157
|
+
delete others.onError;
|
|
158
|
+
delete others.gap;
|
|
154
159
|
return wrapCSSVar(/* @__PURE__ */ React.createElement("span", Object.assign({}, others, {
|
|
155
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({}, sizeStyle), responsiveSizeStyle), avatar === null || avatar === void 0 ? void 0 : avatar.style), style),
|
|
160
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, sizeStyle), responsiveSizeStyle), avatar === null || avatar === void 0 ? void 0 : avatar.style), others.style),
|
|
156
161
|
className: classString,
|
|
157
162
|
ref: avatarNodeMergedRef
|
|
158
163
|
}), childrenToRender));
|
|
159
|
-
}
|
|
164
|
+
};
|
|
165
|
+
const Avatar = /* @__PURE__ */ React.forwardRef(InternalAvatar);
|
|
160
166
|
if (process.env.NODE_ENV !== "production") {
|
|
161
167
|
Avatar.displayName = "Avatar";
|
|
162
168
|
}
|
|
@@ -65,7 +65,8 @@ const AvatarGroup = (props) => {
|
|
|
65
65
|
} = props;
|
|
66
66
|
if (process.env.NODE_ENV !== "production") {
|
|
67
67
|
const warning$1 = warning.devUseWarning("Avatar.Group");
|
|
68
|
-
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((
|
|
68
|
+
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((_ref) => {
|
|
69
|
+
let [deprecatedName, newName] = _ref;
|
|
69
70
|
warning$1.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
70
71
|
});
|
|
71
72
|
}
|
|
@@ -99,7 +100,7 @@ const AvatarGroup = (props) => {
|
|
|
99
100
|
});
|
|
100
101
|
childrenShow.push(/* @__PURE__ */ React__namespace.createElement(index$2, Object.assign({
|
|
101
102
|
key: "avatar-popover-key",
|
|
102
|
-
|
|
103
|
+
destroyTooltipOnHide: true
|
|
103
104
|
}, mergeProps), /* @__PURE__ */ React__namespace.createElement(Avatar, {
|
|
104
105
|
style: mergeStyle
|
|
105
106
|
}, `+${numOfChildren - mergeCount}`)));
|
|
@@ -45,7 +45,8 @@ const AvatarGroup = (props) => {
|
|
|
45
45
|
} = props;
|
|
46
46
|
if (process.env.NODE_ENV !== "production") {
|
|
47
47
|
const warning = devUseWarning("Avatar.Group");
|
|
48
|
-
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((
|
|
48
|
+
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((_ref) => {
|
|
49
|
+
let [deprecatedName, newName] = _ref;
|
|
49
50
|
warning.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
50
51
|
});
|
|
51
52
|
}
|
|
@@ -79,7 +80,7 @@ const AvatarGroup = (props) => {
|
|
|
79
80
|
});
|
|
80
81
|
childrenShow.push(/* @__PURE__ */ React.createElement(Popover, Object.assign({
|
|
81
82
|
key: "avatar-popover-key",
|
|
82
|
-
|
|
83
|
+
destroyTooltipOnHide: true
|
|
83
84
|
}, mergeProps), /* @__PURE__ */ React.createElement(Avatar, {
|
|
84
85
|
style: mergeStyle
|
|
85
86
|
}, `+${numOfChildren - mergeCount}`)));
|
|
@@ -31,25 +31,21 @@ const genBaseStyle = (token) => {
|
|
|
31
31
|
textFontSize,
|
|
32
32
|
textFontSizeLG,
|
|
33
33
|
textFontSizeSM,
|
|
34
|
-
iconFontSize,
|
|
35
|
-
iconFontSizeLG,
|
|
36
|
-
iconFontSizeSM,
|
|
37
34
|
borderRadius,
|
|
38
35
|
borderRadiusLG,
|
|
39
36
|
borderRadiusSM,
|
|
40
37
|
lineWidth,
|
|
41
38
|
lineType
|
|
42
39
|
} = token;
|
|
43
|
-
const avatarSizeStyle = (size, fontSize,
|
|
40
|
+
const avatarSizeStyle = (size, fontSize, radius) => ({
|
|
44
41
|
width: size,
|
|
45
42
|
height: size,
|
|
46
43
|
borderRadius: "50%",
|
|
47
|
-
fontSize,
|
|
48
44
|
[`&${componentCls}-square`]: {
|
|
49
45
|
borderRadius: radius
|
|
50
46
|
},
|
|
51
47
|
[`&${componentCls}-icon`]: {
|
|
52
|
-
fontSize
|
|
48
|
+
fontSize,
|
|
53
49
|
[`> ${iconCls}`]: {
|
|
54
50
|
margin: 0
|
|
55
51
|
}
|
|
@@ -74,9 +70,9 @@ const genBaseStyle = (token) => {
|
|
|
74
70
|
[`${antCls}-image-img`]: {
|
|
75
71
|
display: "block"
|
|
76
72
|
}
|
|
77
|
-
}), avatarSizeStyle(containerSize, textFontSize,
|
|
78
|
-
"&-lg": Object.assign({}, avatarSizeStyle(containerSizeLG, textFontSizeLG,
|
|
79
|
-
"&-sm": Object.assign({}, avatarSizeStyle(containerSizeSM, textFontSizeSM,
|
|
73
|
+
}), avatarSizeStyle(containerSize, textFontSize, borderRadius)), {
|
|
74
|
+
"&-lg": Object.assign({}, avatarSizeStyle(containerSizeLG, textFontSizeLG, borderRadiusLG)),
|
|
75
|
+
"&-sm": Object.assign({}, avatarSizeStyle(containerSizeSM, textFontSizeSM, borderRadiusSM)),
|
|
80
76
|
"> img": {
|
|
81
77
|
display: "block",
|
|
82
78
|
width: "100%",
|
|
@@ -127,12 +123,9 @@ const prepareComponentToken = (token) => {
|
|
|
127
123
|
containerSize: controlHeight,
|
|
128
124
|
containerSizeLG: controlHeightLG,
|
|
129
125
|
containerSizeSM: controlHeightSM,
|
|
130
|
-
textFontSize:
|
|
131
|
-
textFontSizeLG:
|
|
126
|
+
textFontSize: Math.round((fontSizeLG + fontSizeXL) / 2),
|
|
127
|
+
textFontSizeLG: fontSizeHeading3,
|
|
132
128
|
textFontSizeSM: fontSize,
|
|
133
|
-
iconFontSize: Math.round((fontSizeLG + fontSizeXL) / 2),
|
|
134
|
-
iconFontSizeLG: fontSizeHeading3,
|
|
135
|
-
iconFontSizeSM: fontSize,
|
|
136
129
|
groupSpace: marginXXS,
|
|
137
130
|
groupOverlapping: -marginXS,
|
|
138
131
|
groupBorderColor: colorBorderBg
|
|
@@ -29,25 +29,21 @@ const genBaseStyle = (token) => {
|
|
|
29
29
|
textFontSize,
|
|
30
30
|
textFontSizeLG,
|
|
31
31
|
textFontSizeSM,
|
|
32
|
-
iconFontSize,
|
|
33
|
-
iconFontSizeLG,
|
|
34
|
-
iconFontSizeSM,
|
|
35
32
|
borderRadius,
|
|
36
33
|
borderRadiusLG,
|
|
37
34
|
borderRadiusSM,
|
|
38
35
|
lineWidth,
|
|
39
36
|
lineType
|
|
40
37
|
} = token;
|
|
41
|
-
const avatarSizeStyle = (size, fontSize,
|
|
38
|
+
const avatarSizeStyle = (size, fontSize, radius) => ({
|
|
42
39
|
width: size,
|
|
43
40
|
height: size,
|
|
44
41
|
borderRadius: "50%",
|
|
45
|
-
fontSize,
|
|
46
42
|
[`&${componentCls}-square`]: {
|
|
47
43
|
borderRadius: radius
|
|
48
44
|
},
|
|
49
45
|
[`&${componentCls}-icon`]: {
|
|
50
|
-
fontSize
|
|
46
|
+
fontSize,
|
|
51
47
|
[`> ${iconCls}`]: {
|
|
52
48
|
margin: 0
|
|
53
49
|
}
|
|
@@ -72,9 +68,9 @@ const genBaseStyle = (token) => {
|
|
|
72
68
|
[`${antCls}-image-img`]: {
|
|
73
69
|
display: "block"
|
|
74
70
|
}
|
|
75
|
-
}), avatarSizeStyle(containerSize, textFontSize,
|
|
76
|
-
"&-lg": Object.assign({}, avatarSizeStyle(containerSizeLG, textFontSizeLG,
|
|
77
|
-
"&-sm": Object.assign({}, avatarSizeStyle(containerSizeSM, textFontSizeSM,
|
|
71
|
+
}), avatarSizeStyle(containerSize, textFontSize, borderRadius)), {
|
|
72
|
+
"&-lg": Object.assign({}, avatarSizeStyle(containerSizeLG, textFontSizeLG, borderRadiusLG)),
|
|
73
|
+
"&-sm": Object.assign({}, avatarSizeStyle(containerSizeSM, textFontSizeSM, borderRadiusSM)),
|
|
78
74
|
"> img": {
|
|
79
75
|
display: "block",
|
|
80
76
|
width: "100%",
|
|
@@ -125,12 +121,9 @@ const prepareComponentToken = (token) => {
|
|
|
125
121
|
containerSize: controlHeight,
|
|
126
122
|
containerSizeLG: controlHeightLG,
|
|
127
123
|
containerSizeSM: controlHeightSM,
|
|
128
|
-
textFontSize:
|
|
129
|
-
textFontSizeLG:
|
|
124
|
+
textFontSize: Math.round((fontSizeLG + fontSizeXL) / 2),
|
|
125
|
+
textFontSizeLG: fontSizeHeading3,
|
|
130
126
|
textFontSizeSM: fontSize,
|
|
131
|
-
iconFontSize: Math.round((fontSizeLG + fontSizeXL) / 2),
|
|
132
|
-
iconFontSizeLG: fontSizeHeading3,
|
|
133
|
-
iconFontSizeSM: fontSize,
|
|
134
127
|
groupSpace: marginXXS,
|
|
135
128
|
groupOverlapping: -marginXS,
|
|
136
129
|
groupBorderColor: colorBorderBg
|
|
@@ -21,9 +21,10 @@ function _interopNamespaceDefault(e) {
|
|
|
21
21
|
return Object.freeze(n);
|
|
22
22
|
}
|
|
23
23
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
-
const BreadcrumbSeparator = ({
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const BreadcrumbSeparator = (_ref) => {
|
|
25
|
+
let {
|
|
26
|
+
children
|
|
27
|
+
} = _ref;
|
|
27
28
|
const {
|
|
28
29
|
getPrefixCls
|
|
29
30
|
} = React__namespace.useContext(context.ConfigContext);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "../config-provider/index.js";
|
|
3
3
|
import { ConfigContext } from "../config-provider/context.js";
|
|
4
|
-
const BreadcrumbSeparator = ({
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const BreadcrumbSeparator = (_ref) => {
|
|
5
|
+
let {
|
|
6
|
+
children
|
|
7
|
+
} = _ref;
|
|
7
8
|
const {
|
|
8
9
|
getPrefixCls
|
|
9
10
|
} = React.useContext(ConfigContext);
|
|
@@ -63,10 +63,11 @@ const DefaultLoadingIcon = (props) => {
|
|
|
63
63
|
onEnterActive: getRealWidth,
|
|
64
64
|
onLeaveStart: getRealWidth,
|
|
65
65
|
onLeaveActive: getCollapsedWidth
|
|
66
|
-
}, ({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
}, (_ref, ref) => {
|
|
67
|
+
let {
|
|
68
|
+
className: motionCls,
|
|
69
|
+
style: motionStyle
|
|
70
|
+
} = _ref;
|
|
70
71
|
const mergedStyle = Object.assign(Object.assign({}, style), motionStyle);
|
|
71
72
|
return /* @__PURE__ */ React.createElement(InnerLoadingIcon, {
|
|
72
73
|
prefixCls,
|
|
@@ -62,10 +62,11 @@ const DefaultLoadingIcon = (props) => {
|
|
|
62
62
|
onEnterActive: getRealWidth,
|
|
63
63
|
onLeaveStart: getRealWidth,
|
|
64
64
|
onLeaveActive: getCollapsedWidth
|
|
65
|
-
}, ({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
}, (_ref, ref) => {
|
|
66
|
+
let {
|
|
67
|
+
className: motionCls,
|
|
68
|
+
style: motionStyle
|
|
69
|
+
} = _ref;
|
|
69
70
|
const mergedStyle = Object.assign(Object.assign({}, style), motionStyle);
|
|
70
71
|
return /* @__PURE__ */ React__default.createElement(InnerLoadingIcon, {
|
|
71
72
|
prefixCls,
|
|
@@ -3,7 +3,6 @@ var React = require("react");
|
|
|
3
3
|
var index$1 = require("../../../../_virtual/index.cjs");
|
|
4
4
|
var omit = require("../../../rc-util/es/omit.cjs");
|
|
5
5
|
var ref = require("../../../rc-util/es/ref.cjs");
|
|
6
|
-
var useLayoutEffect = require("../../../rc-util/es/hooks/useLayoutEffect.cjs");
|
|
7
6
|
var warning = require("../_util/warning.cjs");
|
|
8
7
|
var index$2 = require("../_util/wave/index.cjs");
|
|
9
8
|
var context = require("../config-provider/context.cjs");
|
|
@@ -55,7 +54,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref$1)
|
|
|
55
54
|
variant,
|
|
56
55
|
type,
|
|
57
56
|
danger = false,
|
|
58
|
-
shape
|
|
57
|
+
shape = "default",
|
|
59
58
|
size: customizeSize,
|
|
60
59
|
styles,
|
|
61
60
|
disabled: customDisabled,
|
|
@@ -74,26 +73,16 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref$1)
|
|
|
74
73
|
autoFocus
|
|
75
74
|
} = props, rest = __rest(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
76
75
|
const mergedType = type || "default";
|
|
77
|
-
const {
|
|
78
|
-
button
|
|
79
|
-
} = React.useContext(context.ConfigContext);
|
|
80
|
-
const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || "default";
|
|
81
76
|
const [mergedColor, mergedVariant] = React.useMemo(() => {
|
|
82
77
|
if (color && variant) {
|
|
83
78
|
return [color, variant];
|
|
84
79
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return ["danger", colorVariantPair[1]];
|
|
89
|
-
}
|
|
90
|
-
return colorVariantPair;
|
|
91
|
-
}
|
|
92
|
-
if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {
|
|
93
|
-
return [button.color, button.variant];
|
|
80
|
+
const colorVariantPair = ButtonTypeMap[mergedType] || [];
|
|
81
|
+
if (danger) {
|
|
82
|
+
return ["danger", colorVariantPair[1]];
|
|
94
83
|
}
|
|
95
|
-
return
|
|
96
|
-
}, [type, color, variant, danger
|
|
84
|
+
return colorVariantPair;
|
|
85
|
+
}, [type, color, variant, danger]);
|
|
97
86
|
const isDanger = mergedColor === "danger";
|
|
98
87
|
const mergedColorText = isDanger ? "dangerous" : mergedColor;
|
|
99
88
|
const {
|
|
@@ -124,7 +113,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref$1)
|
|
|
124
113
|
isMountRef.current = true;
|
|
125
114
|
};
|
|
126
115
|
}, []);
|
|
127
|
-
|
|
116
|
+
React.useEffect(() => {
|
|
128
117
|
let delayTimer = null;
|
|
129
118
|
if (loadingOrDelay.delay > 0) {
|
|
130
119
|
delayTimer = setTimeout(() => {
|
|
@@ -141,7 +130,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref$1)
|
|
|
141
130
|
}
|
|
142
131
|
}
|
|
143
132
|
return cleanupTimer;
|
|
144
|
-
}, [loadingOrDelay
|
|
133
|
+
}, [loadingOrDelay]);
|
|
145
134
|
React.useEffect(() => {
|
|
146
135
|
if (!buttonRef.current || !mergedInsertSpace) {
|
|
147
136
|
return;
|
|
@@ -191,7 +180,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref$1)
|
|
|
191
180
|
const linkButtonRestProps = omit(rest, ["navigate"]);
|
|
192
181
|
const classes = index$1(prefixCls, hashId, cssVarCls, {
|
|
193
182
|
[`${prefixCls}-${shape}`]: shape !== "default" && shape,
|
|
194
|
-
// Compatible with versions earlier than 5.21.0
|
|
183
|
+
// line(253 - 254): Compatible with versions earlier than 5.21.0
|
|
195
184
|
[`${prefixCls}-${mergedType}`]: mergedType,
|
|
196
185
|
[`${prefixCls}-dangerous`]: danger,
|
|
197
186
|
[`${prefixCls}-color-${mergedColorText}`]: mergedColorText,
|
|
@@ -2,10 +2,9 @@ import React__default, { useMemo, useContext, useState, useRef, Children, useEff
|
|
|
2
2
|
import classNames from "../../../../_virtual/index.js";
|
|
3
3
|
import omit from "../../../rc-util/es/omit.js";
|
|
4
4
|
import { useComposeRef } from "../../../rc-util/es/ref.js";
|
|
5
|
-
import useLayoutEffect from "../../../rc-util/es/hooks/useLayoutEffect.js";
|
|
6
5
|
import { devUseWarning } from "../_util/warning.js";
|
|
7
6
|
import Wave from "../_util/wave/index.js";
|
|
8
|
-
import {
|
|
7
|
+
import { useComponentConfig } from "../config-provider/context.js";
|
|
9
8
|
import DisabledContext from "../config-provider/DisabledContext.js";
|
|
10
9
|
import useSize from "../config-provider/hooks/useSize.js";
|
|
11
10
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
@@ -54,7 +53,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
54
53
|
variant,
|
|
55
54
|
type,
|
|
56
55
|
danger = false,
|
|
57
|
-
shape
|
|
56
|
+
shape = "default",
|
|
58
57
|
size: customizeSize,
|
|
59
58
|
styles,
|
|
60
59
|
disabled: customDisabled,
|
|
@@ -73,26 +72,16 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
73
72
|
autoFocus
|
|
74
73
|
} = props, rest = __rest(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
75
74
|
const mergedType = type || "default";
|
|
76
|
-
const {
|
|
77
|
-
button
|
|
78
|
-
} = React__default.useContext(ConfigContext);
|
|
79
|
-
const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || "default";
|
|
80
75
|
const [mergedColor, mergedVariant] = useMemo(() => {
|
|
81
76
|
if (color && variant) {
|
|
82
77
|
return [color, variant];
|
|
83
78
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return ["danger", colorVariantPair[1]];
|
|
88
|
-
}
|
|
89
|
-
return colorVariantPair;
|
|
90
|
-
}
|
|
91
|
-
if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {
|
|
92
|
-
return [button.color, button.variant];
|
|
79
|
+
const colorVariantPair = ButtonTypeMap[mergedType] || [];
|
|
80
|
+
if (danger) {
|
|
81
|
+
return ["danger", colorVariantPair[1]];
|
|
93
82
|
}
|
|
94
|
-
return
|
|
95
|
-
}, [type, color, variant, danger
|
|
83
|
+
return colorVariantPair;
|
|
84
|
+
}, [type, color, variant, danger]);
|
|
96
85
|
const isDanger = mergedColor === "danger";
|
|
97
86
|
const mergedColorText = isDanger ? "dangerous" : mergedColor;
|
|
98
87
|
const {
|
|
@@ -123,7 +112,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
123
112
|
isMountRef.current = true;
|
|
124
113
|
};
|
|
125
114
|
}, []);
|
|
126
|
-
|
|
115
|
+
useEffect(() => {
|
|
127
116
|
let delayTimer = null;
|
|
128
117
|
if (loadingOrDelay.delay > 0) {
|
|
129
118
|
delayTimer = setTimeout(() => {
|
|
@@ -140,7 +129,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
140
129
|
}
|
|
141
130
|
}
|
|
142
131
|
return cleanupTimer;
|
|
143
|
-
}, [loadingOrDelay
|
|
132
|
+
}, [loadingOrDelay]);
|
|
144
133
|
useEffect(() => {
|
|
145
134
|
if (!buttonRef.current || !mergedInsertSpace) {
|
|
146
135
|
return;
|
|
@@ -190,7 +179,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
190
179
|
const linkButtonRestProps = omit(rest, ["navigate"]);
|
|
191
180
|
const classes = classNames(prefixCls, hashId, cssVarCls, {
|
|
192
181
|
[`${prefixCls}-${shape}`]: shape !== "default" && shape,
|
|
193
|
-
// Compatible with versions earlier than 5.21.0
|
|
182
|
+
// line(253 - 254): Compatible with versions earlier than 5.21.0
|
|
194
183
|
[`${prefixCls}-${mergedType}`]: mergedType,
|
|
195
184
|
[`${prefixCls}-dangerous`]: danger,
|
|
196
185
|
[`${prefixCls}-color-${mergedColorText}`]: mergedColorText,
|
|
@@ -28,7 +28,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
28
28
|
opacityLoading,
|
|
29
29
|
motionDurationSlow,
|
|
30
30
|
motionEaseInOut,
|
|
31
|
-
|
|
31
|
+
marginXS,
|
|
32
32
|
calc
|
|
33
33
|
} = token2;
|
|
34
34
|
return {
|
|
@@ -36,7 +36,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
36
36
|
outline: "none",
|
|
37
37
|
position: "relative",
|
|
38
38
|
display: "inline-flex",
|
|
39
|
-
gap:
|
|
39
|
+
gap: token2.marginXS,
|
|
40
40
|
alignItems: "center",
|
|
41
41
|
justifyContent: "center",
|
|
42
42
|
fontWeight,
|
|
@@ -88,7 +88,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
88
88
|
[`&:not(${componentCls}-icon-end)`]: {
|
|
89
89
|
[`${componentCls}-loading-icon-motion`]: {
|
|
90
90
|
"&-appear-start, &-enter-start": {
|
|
91
|
-
marginInlineEnd: calc(
|
|
91
|
+
marginInlineEnd: calc(marginXS).mul(-1).equal()
|
|
92
92
|
},
|
|
93
93
|
"&-appear-active, &-enter-active": {
|
|
94
94
|
marginInlineEnd: 0
|
|
@@ -97,7 +97,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
97
97
|
marginInlineEnd: 0
|
|
98
98
|
},
|
|
99
99
|
"&-leave-active": {
|
|
100
|
-
marginInlineEnd: calc(
|
|
100
|
+
marginInlineEnd: calc(marginXS).mul(-1).equal()
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
},
|
|
@@ -105,7 +105,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
105
105
|
flexDirection: "row-reverse",
|
|
106
106
|
[`${componentCls}-loading-icon-motion`]: {
|
|
107
107
|
"&-appear-start, &-enter-start": {
|
|
108
|
-
marginInlineStart: calc(
|
|
108
|
+
marginInlineStart: calc(marginXS).mul(-1).equal()
|
|
109
109
|
},
|
|
110
110
|
"&-appear-active, &-enter-active": {
|
|
111
111
|
marginInlineStart: 0
|
|
@@ -114,7 +114,7 @@ const genSharedButtonStyle = (token2) => {
|
|
|
114
114
|
marginInlineStart: 0
|
|
115
115
|
},
|
|
116
116
|
"&-leave-active": {
|
|
117
|
-
marginInlineStart: calc(
|
|
117
|
+
marginInlineStart: calc(marginXS).mul(-1).equal()
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -234,10 +234,8 @@ const genPresetColorStyle = (token2) => {
|
|
|
234
234
|
borderColor: activeColor,
|
|
235
235
|
background: token2.colorBgContainer
|
|
236
236
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, lightColor, {
|
|
237
|
-
color: darkColor,
|
|
238
237
|
background: lightHoverColor
|
|
239
238
|
}, {
|
|
240
|
-
color: darkColor,
|
|
241
239
|
background: lightBorderColor
|
|
242
240
|
})), genTextLinkButtonStyle(token2, darkColor, "link", {
|
|
243
241
|
color: hoverColor
|
|
@@ -263,10 +261,8 @@ const genDefaultButtonStyle = (token2) => Object.assign(Object.assign(Object.ass
|
|
|
263
261
|
color: token2.solidTextColor,
|
|
264
262
|
background: token2.colorBgSolidActive
|
|
265
263
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorFillTertiary, {
|
|
266
|
-
color: token2.defaultColor,
|
|
267
264
|
background: token2.colorFillSecondary
|
|
268
265
|
}, {
|
|
269
|
-
color: token2.defaultColor,
|
|
270
266
|
background: token2.colorFill
|
|
271
267
|
})), genGhostButtonStyle(token2.componentCls, token2.ghostBg, token2.defaultGhostColor, token2.defaultGhostBorderColor, token2.colorTextDisabled, token2.colorBorder)), genTextLinkButtonStyle(token2, token2.textTextColor, "link", {
|
|
272
268
|
color: token2.colorLinkHover,
|
|
@@ -286,10 +282,8 @@ const genPrimaryButtonStyle = (token2) => Object.assign(Object.assign(Object.ass
|
|
|
286
282
|
borderColor: token2.colorPrimaryActive,
|
|
287
283
|
background: token2.colorBgContainer
|
|
288
284
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorPrimaryBg, {
|
|
289
|
-
color: token2.colorPrimary,
|
|
290
285
|
background: token2.colorPrimaryBgHover
|
|
291
286
|
}, {
|
|
292
|
-
color: token2.colorPrimary,
|
|
293
287
|
background: token2.colorPrimaryBorder
|
|
294
288
|
})), genTextLinkButtonStyle(token2, token2.colorPrimaryText, "text", {
|
|
295
289
|
color: token2.colorPrimaryTextHover,
|
|
@@ -323,10 +317,8 @@ const genDangerousStyle = (token2) => Object.assign(Object.assign(Object.assign(
|
|
|
323
317
|
color: token2.colorErrorActive,
|
|
324
318
|
borderColor: token2.colorErrorActive
|
|
325
319
|
})), genDashedButtonStyle(token2)), genFilledButtonStyle(token2, token2.colorErrorBg, {
|
|
326
|
-
color: token2.colorError,
|
|
327
320
|
background: token2.colorErrorBgFilledHover
|
|
328
321
|
}, {
|
|
329
|
-
color: token2.colorError,
|
|
330
322
|
background: token2.colorErrorBgActive
|
|
331
323
|
})), genTextLinkButtonStyle(token2, token2.colorError, "text", {
|
|
332
324
|
color: token2.colorErrorHover,
|
|
@@ -393,7 +385,8 @@ const genCompatibleButtonStyle = (token2) => Object.assign(Object.assign(Object.
|
|
|
393
385
|
}, {
|
|
394
386
|
color: token2.colorLinkActive
|
|
395
387
|
}));
|
|
396
|
-
const genButtonStyle = (token2
|
|
388
|
+
const genButtonStyle = function(token2) {
|
|
389
|
+
let prefixCls = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
397
390
|
const {
|
|
398
391
|
componentCls,
|
|
399
392
|
controlHeight,
|