@gobolt/genesis 0.3.10 → 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
|
@@ -64,6 +64,17 @@ const genBasicInputStyle = (token) => Object.assign(Object.assign({
|
|
|
64
64
|
borderRadius: token.borderRadius,
|
|
65
65
|
transition: `all ${token.motionDurationMid}`
|
|
66
66
|
}, genPlaceholderStyle(token.colorTextPlaceholder)), {
|
|
67
|
+
// Reset height for `textarea`s
|
|
68
|
+
"textarea&": {
|
|
69
|
+
maxWidth: "100%",
|
|
70
|
+
// prevent textarea resize from coming out of its container
|
|
71
|
+
height: "auto",
|
|
72
|
+
minHeight: token.controlHeight,
|
|
73
|
+
lineHeight: token.lineHeight,
|
|
74
|
+
verticalAlign: "bottom",
|
|
75
|
+
transition: `all ${token.motionDurationSlow}, height 0s`,
|
|
76
|
+
resize: "vertical"
|
|
77
|
+
},
|
|
67
78
|
// Size
|
|
68
79
|
"&-lg": Object.assign({}, genInputLargeStyle(token)),
|
|
69
80
|
"&-sm": Object.assign({}, genInputSmallStyle(token)),
|
|
@@ -328,7 +339,7 @@ const genInputStyle = (token) => {
|
|
|
328
339
|
}
|
|
329
340
|
},
|
|
330
341
|
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
|
|
331
|
-
appearance: "none"
|
|
342
|
+
"-webkit-appearance": "none"
|
|
332
343
|
}
|
|
333
344
|
})
|
|
334
345
|
};
|
|
@@ -354,7 +365,7 @@ const genAllowClearStyle = (token) => {
|
|
|
354
365
|
outline: "none",
|
|
355
366
|
backgroundColor: "transparent",
|
|
356
367
|
"&:hover": {
|
|
357
|
-
color: token.
|
|
368
|
+
color: token.colorTextTertiary
|
|
358
369
|
},
|
|
359
370
|
"&:active": {
|
|
360
371
|
color: token.colorText
|
|
@@ -425,8 +436,7 @@ const genAffixStyle = (token) => {
|
|
|
425
436
|
}
|
|
426
437
|
},
|
|
427
438
|
"&-show-count-suffix": {
|
|
428
|
-
color: colorTextDescription
|
|
429
|
-
direction: "ltr"
|
|
439
|
+
color: colorTextDescription
|
|
430
440
|
},
|
|
431
441
|
"&-show-count-has-suffix": {
|
|
432
442
|
marginInlineEnd: token.paddingXXS
|
|
@@ -551,7 +561,7 @@ const genSearchInputStyle = (token) => {
|
|
|
551
561
|
[searchPrefixCls]: {
|
|
552
562
|
[componentCls]: {
|
|
553
563
|
"&:hover, &:focus": {
|
|
554
|
-
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-
|
|
564
|
+
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
555
565
|
borderInlineStartColor: token.colorPrimaryHover
|
|
556
566
|
}
|
|
557
567
|
}
|
|
@@ -577,7 +587,7 @@ const genSearchInputStyle = (token) => {
|
|
|
577
587
|
borderEndStartRadius: 0,
|
|
578
588
|
boxShadow: "none"
|
|
579
589
|
},
|
|
580
|
-
[`${searchPrefixCls}-button:not(${antCls}-btn-
|
|
590
|
+
[`${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
581
591
|
color: token.colorTextDescription,
|
|
582
592
|
"&:hover": {
|
|
583
593
|
color: token.colorPrimaryHover
|
|
@@ -586,7 +596,10 @@ const genSearchInputStyle = (token) => {
|
|
|
586
596
|
color: token.colorPrimaryActive
|
|
587
597
|
},
|
|
588
598
|
[`&${antCls}-btn-loading::before`]: {
|
|
589
|
-
|
|
599
|
+
insetInlineStart: 0,
|
|
600
|
+
insetInlineEnd: 0,
|
|
601
|
+
insetBlockStart: 0,
|
|
602
|
+
insetBlockEnd: 0
|
|
590
603
|
}
|
|
591
604
|
}
|
|
592
605
|
}
|
|
@@ -27,28 +27,6 @@ const genOTPStyle = (token2) => {
|
|
|
27
27
|
alignItems: "center",
|
|
28
28
|
flexWrap: "nowrap",
|
|
29
29
|
columnGap: paddingXS,
|
|
30
|
-
[`${componentCls}-input-wrapper`]: {
|
|
31
|
-
position: "relative",
|
|
32
|
-
[`${componentCls}-mask-icon`]: {
|
|
33
|
-
position: "absolute",
|
|
34
|
-
zIndex: "1",
|
|
35
|
-
top: "50%",
|
|
36
|
-
right: "50%",
|
|
37
|
-
transform: "translate(50%, -50%)",
|
|
38
|
-
pointerEvents: "none"
|
|
39
|
-
},
|
|
40
|
-
[`${componentCls}-mask-input`]: {
|
|
41
|
-
color: "transparent",
|
|
42
|
-
caretColor: token2.colorText
|
|
43
|
-
},
|
|
44
|
-
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
|
|
45
|
-
"-webkit-appearance": "none",
|
|
46
|
-
margin: 0
|
|
47
|
-
},
|
|
48
|
-
[`${componentCls}-mask-input[type=number]`]: {
|
|
49
|
-
"-moz-appearance": "textfield"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
30
|
"&-rtl": {
|
|
53
31
|
direction: "rtl"
|
|
54
32
|
},
|
|
@@ -68,6 +46,6 @@ const genOTPStyle = (token2) => {
|
|
|
68
46
|
};
|
|
69
47
|
var useStyle = genStyleUtils.genStyleHooks(["Input", "OTP"], (token$1) => {
|
|
70
48
|
const inputToken = statistic.merge(token$1, token.initInputToken(token$1));
|
|
71
|
-
return genOTPStyle(inputToken);
|
|
49
|
+
return [genOTPStyle(inputToken)];
|
|
72
50
|
}, token.initComponentToken);
|
|
73
51
|
module.exports = useStyle;
|
|
@@ -26,28 +26,6 @@ const genOTPStyle = (token) => {
|
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
flexWrap: "nowrap",
|
|
28
28
|
columnGap: paddingXS,
|
|
29
|
-
[`${componentCls}-input-wrapper`]: {
|
|
30
|
-
position: "relative",
|
|
31
|
-
[`${componentCls}-mask-icon`]: {
|
|
32
|
-
position: "absolute",
|
|
33
|
-
zIndex: "1",
|
|
34
|
-
top: "50%",
|
|
35
|
-
right: "50%",
|
|
36
|
-
transform: "translate(50%, -50%)",
|
|
37
|
-
pointerEvents: "none"
|
|
38
|
-
},
|
|
39
|
-
[`${componentCls}-mask-input`]: {
|
|
40
|
-
color: "transparent",
|
|
41
|
-
caretColor: token.colorText
|
|
42
|
-
},
|
|
43
|
-
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
|
|
44
|
-
"-webkit-appearance": "none",
|
|
45
|
-
margin: 0
|
|
46
|
-
},
|
|
47
|
-
[`${componentCls}-mask-input[type=number]`]: {
|
|
48
|
-
"-moz-appearance": "textfield"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
29
|
"&-rtl": {
|
|
52
30
|
direction: "rtl"
|
|
53
31
|
},
|
|
@@ -67,7 +45,7 @@ const genOTPStyle = (token) => {
|
|
|
67
45
|
};
|
|
68
46
|
var useStyle = genStyleHooks(["Input", "OTP"], (token) => {
|
|
69
47
|
const inputToken = merge(token, initInputToken(token));
|
|
70
|
-
return genOTPStyle(inputToken);
|
|
48
|
+
return [genOTPStyle(inputToken)];
|
|
71
49
|
}, initComponentToken);
|
|
72
50
|
export {
|
|
73
51
|
useStyle as default
|
|
@@ -24,27 +24,13 @@ const genTextAreaStyle = (token2) => {
|
|
|
24
24
|
} = token2;
|
|
25
25
|
const textareaPrefixCls = `${componentCls}-textarea`;
|
|
26
26
|
return {
|
|
27
|
-
// Raw Textarea
|
|
28
|
-
[`textarea${componentCls}`]: {
|
|
29
|
-
maxWidth: "100%",
|
|
30
|
-
// prevent textarea resize from coming out of its container
|
|
31
|
-
height: "auto",
|
|
32
|
-
minHeight: token2.controlHeight,
|
|
33
|
-
lineHeight: token2.lineHeight,
|
|
34
|
-
verticalAlign: "bottom",
|
|
35
|
-
transition: `all ${token2.motionDurationSlow}`,
|
|
36
|
-
resize: "vertical",
|
|
37
|
-
[`&${componentCls}-mouse-active`]: {
|
|
38
|
-
transition: `all ${token2.motionDurationSlow}, height 0s, width 0s`
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
// Wrapper for resize
|
|
42
|
-
[`${componentCls}-textarea-affix-wrapper-resize-dirty`]: {
|
|
43
|
-
width: "auto"
|
|
44
|
-
},
|
|
45
27
|
[textareaPrefixCls]: {
|
|
46
28
|
position: "relative",
|
|
47
29
|
"&-show-count": {
|
|
30
|
+
// https://github.com/ant-design/ant-design/issues/33049
|
|
31
|
+
[`> ${componentCls}`]: {
|
|
32
|
+
height: "100%"
|
|
33
|
+
},
|
|
48
34
|
[`${componentCls}-data-count`]: {
|
|
49
35
|
position: "absolute",
|
|
50
36
|
bottom: token2.calc(token2.fontSize).mul(token2.lineHeight).mul(-1).equal(),
|
|
@@ -97,14 +83,6 @@ const genTextAreaStyle = (token2) => {
|
|
|
97
83
|
}
|
|
98
84
|
}
|
|
99
85
|
},
|
|
100
|
-
[`&-affix-wrapper${componentCls}-affix-wrapper-rtl`]: {
|
|
101
|
-
[`${componentCls}-suffix`]: {
|
|
102
|
-
[`${componentCls}-data-count`]: {
|
|
103
|
-
direction: "ltr",
|
|
104
|
-
insetInlineStart: 0
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
86
|
[`&-affix-wrapper${componentCls}-affix-wrapper-sm`]: {
|
|
109
87
|
[`${componentCls}-suffix`]: {
|
|
110
88
|
[`${componentCls}-clear-icon`]: {
|
|
@@ -117,7 +95,7 @@ const genTextAreaStyle = (token2) => {
|
|
|
117
95
|
};
|
|
118
96
|
var useStyle = genStyleUtils.genStyleHooks(["Input", "TextArea"], (token$1) => {
|
|
119
97
|
const inputToken = statistic.merge(token$1, token.initInputToken(token$1));
|
|
120
|
-
return genTextAreaStyle(inputToken);
|
|
98
|
+
return [genTextAreaStyle(inputToken)];
|
|
121
99
|
}, token.initComponentToken, {
|
|
122
100
|
resetFont: false
|
|
123
101
|
});
|
|
@@ -22,27 +22,13 @@ const genTextAreaStyle = (token) => {
|
|
|
22
22
|
} = token;
|
|
23
23
|
const textareaPrefixCls = `${componentCls}-textarea`;
|
|
24
24
|
return {
|
|
25
|
-
// Raw Textarea
|
|
26
|
-
[`textarea${componentCls}`]: {
|
|
27
|
-
maxWidth: "100%",
|
|
28
|
-
// prevent textarea resize from coming out of its container
|
|
29
|
-
height: "auto",
|
|
30
|
-
minHeight: token.controlHeight,
|
|
31
|
-
lineHeight: token.lineHeight,
|
|
32
|
-
verticalAlign: "bottom",
|
|
33
|
-
transition: `all ${token.motionDurationSlow}`,
|
|
34
|
-
resize: "vertical",
|
|
35
|
-
[`&${componentCls}-mouse-active`]: {
|
|
36
|
-
transition: `all ${token.motionDurationSlow}, height 0s, width 0s`
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
// Wrapper for resize
|
|
40
|
-
[`${componentCls}-textarea-affix-wrapper-resize-dirty`]: {
|
|
41
|
-
width: "auto"
|
|
42
|
-
},
|
|
43
25
|
[textareaPrefixCls]: {
|
|
44
26
|
position: "relative",
|
|
45
27
|
"&-show-count": {
|
|
28
|
+
// https://github.com/ant-design/ant-design/issues/33049
|
|
29
|
+
[`> ${componentCls}`]: {
|
|
30
|
+
height: "100%"
|
|
31
|
+
},
|
|
46
32
|
[`${componentCls}-data-count`]: {
|
|
47
33
|
position: "absolute",
|
|
48
34
|
bottom: token.calc(token.fontSize).mul(token.lineHeight).mul(-1).equal(),
|
|
@@ -95,14 +81,6 @@ const genTextAreaStyle = (token) => {
|
|
|
95
81
|
}
|
|
96
82
|
}
|
|
97
83
|
},
|
|
98
|
-
[`&-affix-wrapper${componentCls}-affix-wrapper-rtl`]: {
|
|
99
|
-
[`${componentCls}-suffix`]: {
|
|
100
|
-
[`${componentCls}-data-count`]: {
|
|
101
|
-
direction: "ltr",
|
|
102
|
-
insetInlineStart: 0
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
84
|
[`&-affix-wrapper${componentCls}-affix-wrapper-sm`]: {
|
|
107
85
|
[`${componentCls}-suffix`]: {
|
|
108
86
|
[`${componentCls}-clear-icon`]: {
|
|
@@ -115,7 +93,7 @@ const genTextAreaStyle = (token) => {
|
|
|
115
93
|
};
|
|
116
94
|
var useStyle = genStyleHooks(["Input", "TextArea"], (token) => {
|
|
117
95
|
const inputToken = merge(token, initInputToken(token));
|
|
118
|
-
return genTextAreaStyle(inputToken);
|
|
96
|
+
return [genTextAreaStyle(inputToken)];
|
|
119
97
|
}, initComponentToken, {
|
|
120
98
|
resetFont: false
|
|
121
99
|
});
|
|
@@ -150,26 +150,23 @@ const genBorderlessStyle = (token, extraStyles) => {
|
|
|
150
150
|
}, extraStyles)
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
|
-
const genBaseFilledStyle = (token, options) => {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
};
|
|
153
|
+
const genBaseFilledStyle = (token, options) => ({
|
|
154
|
+
background: options.bg,
|
|
155
|
+
borderWidth: token.lineWidth,
|
|
156
|
+
borderStyle: token.lineType,
|
|
157
|
+
borderColor: "transparent",
|
|
158
|
+
"input&, & input, textarea&, & textarea": {
|
|
159
|
+
color: options === null || options === void 0 ? void 0 : options.inputColor
|
|
160
|
+
},
|
|
161
|
+
"&:hover": {
|
|
162
|
+
background: options.hoverBg
|
|
163
|
+
},
|
|
164
|
+
"&:focus, &:focus-within": {
|
|
165
|
+
outline: 0,
|
|
166
|
+
borderColor: options.activeBorderColor,
|
|
167
|
+
backgroundColor: token.activeBg
|
|
168
|
+
}
|
|
169
|
+
});
|
|
173
170
|
const genFilledStatusStyle = (token, options) => ({
|
|
174
171
|
[`&${token.componentCls}-status-${options.status}:not(${token.componentCls}-disabled)`]: Object.assign(Object.assign({}, genBaseFilledStyle(token, options)), {
|
|
175
172
|
[`${token.componentCls}-prefix, ${token.componentCls}-suffix`]: {
|
|
@@ -210,10 +207,17 @@ const genFilledGroupStatusStyle = (token, options) => ({
|
|
|
210
207
|
});
|
|
211
208
|
const genFilledGroupStyle = (token) => ({
|
|
212
209
|
"&-filled": Object.assign(Object.assign(Object.assign({
|
|
213
|
-
[`${token.componentCls}-group
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
210
|
+
[`${token.componentCls}-group`]: {
|
|
211
|
+
"&-addon": {
|
|
212
|
+
background: token.colorFillTertiary
|
|
213
|
+
},
|
|
214
|
+
[`${token.componentCls}-filled:not(:focus):not(:focus-within)`]: {
|
|
215
|
+
"&:not(:first-child)": {
|
|
216
|
+
borderInlineStart: `${index.unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
|
217
|
+
},
|
|
218
|
+
"&:not(:last-child)": {
|
|
219
|
+
borderInlineEnd: `${index.unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
|
220
|
+
}
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
223
|
}, genFilledGroupStatusStyle(token, {
|
|
@@ -256,7 +260,7 @@ const genBaseUnderlinedStyle = (token, options) => ({
|
|
|
256
260
|
backgroundColor: token.hoverBg
|
|
257
261
|
},
|
|
258
262
|
"&:focus, &:focus-within": {
|
|
259
|
-
borderColor: `transparent transparent ${options.
|
|
263
|
+
borderColor: `transparent transparent ${options.borderColor} transparent`,
|
|
260
264
|
outline: 0,
|
|
261
265
|
backgroundColor: token.activeBg
|
|
262
266
|
}
|
|
@@ -149,26 +149,23 @@ const genBorderlessStyle = (token, extraStyles) => {
|
|
|
149
149
|
}, extraStyles)
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
|
-
const genBaseFilledStyle = (token, options) => {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
};
|
|
152
|
+
const genBaseFilledStyle = (token, options) => ({
|
|
153
|
+
background: options.bg,
|
|
154
|
+
borderWidth: token.lineWidth,
|
|
155
|
+
borderStyle: token.lineType,
|
|
156
|
+
borderColor: "transparent",
|
|
157
|
+
"input&, & input, textarea&, & textarea": {
|
|
158
|
+
color: options === null || options === void 0 ? void 0 : options.inputColor
|
|
159
|
+
},
|
|
160
|
+
"&:hover": {
|
|
161
|
+
background: options.hoverBg
|
|
162
|
+
},
|
|
163
|
+
"&:focus, &:focus-within": {
|
|
164
|
+
outline: 0,
|
|
165
|
+
borderColor: options.activeBorderColor,
|
|
166
|
+
backgroundColor: token.activeBg
|
|
167
|
+
}
|
|
168
|
+
});
|
|
172
169
|
const genFilledStatusStyle = (token, options) => ({
|
|
173
170
|
[`&${token.componentCls}-status-${options.status}:not(${token.componentCls}-disabled)`]: Object.assign(Object.assign({}, genBaseFilledStyle(token, options)), {
|
|
174
171
|
[`${token.componentCls}-prefix, ${token.componentCls}-suffix`]: {
|
|
@@ -209,10 +206,17 @@ const genFilledGroupStatusStyle = (token, options) => ({
|
|
|
209
206
|
});
|
|
210
207
|
const genFilledGroupStyle = (token) => ({
|
|
211
208
|
"&-filled": Object.assign(Object.assign(Object.assign({
|
|
212
|
-
[`${token.componentCls}-group
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
209
|
+
[`${token.componentCls}-group`]: {
|
|
210
|
+
"&-addon": {
|
|
211
|
+
background: token.colorFillTertiary
|
|
212
|
+
},
|
|
213
|
+
[`${token.componentCls}-filled:not(:focus):not(:focus-within)`]: {
|
|
214
|
+
"&:not(:first-child)": {
|
|
215
|
+
borderInlineStart: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
|
216
|
+
},
|
|
217
|
+
"&:not(:last-child)": {
|
|
218
|
+
borderInlineEnd: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
|
219
|
+
}
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
222
|
}, genFilledGroupStatusStyle(token, {
|
|
@@ -255,7 +259,7 @@ const genBaseUnderlinedStyle = (token, options) => ({
|
|
|
255
259
|
backgroundColor: token.hoverBg
|
|
256
260
|
},
|
|
257
261
|
"&:focus, &:focus-within": {
|
|
258
|
-
borderColor: `transparent transparent ${options.
|
|
262
|
+
borderColor: `transparent transparent ${options.borderColor} transparent`,
|
|
259
263
|
outline: 0,
|
|
260
264
|
backgroundColor: token.activeBg
|
|
261
265
|
}
|
|
@@ -6,7 +6,6 @@ var LeftOutlined = require("../../../@ant-design/icons/es/icons/LeftOutlined.cjs
|
|
|
6
6
|
var RightOutlined = require("../../../@ant-design/icons/es/icons/RightOutlined.cjs");
|
|
7
7
|
var index = require("../../../../_virtual/index.cjs");
|
|
8
8
|
var omit = require("../../../rc-util/es/omit.cjs");
|
|
9
|
-
var mediaQueryUtil = require("../_util/mediaQueryUtil.cjs");
|
|
10
9
|
require("../config-provider/index.cjs");
|
|
11
10
|
var context = require("./context.cjs");
|
|
12
11
|
var sider = require("./style/sider.cjs");
|
|
@@ -50,7 +49,8 @@ const isNumeric = (value) => !Number.isNaN(Number.parseFloat(value)) && isFinite
|
|
|
50
49
|
const SiderContext = /* @__PURE__ */ React__namespace.createContext({});
|
|
51
50
|
const generateId = /* @__PURE__ */ (() => {
|
|
52
51
|
let i = 0;
|
|
53
|
-
return (
|
|
52
|
+
return function() {
|
|
53
|
+
let prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
54
54
|
i += 1;
|
|
55
55
|
return `${prefix}${i}`;
|
|
56
56
|
};
|
|
@@ -105,17 +105,29 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
105
105
|
};
|
|
106
106
|
React.useEffect(() => {
|
|
107
107
|
function responsiveHandler(mql2) {
|
|
108
|
-
|
|
109
|
-
return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql2);
|
|
108
|
+
return responsiveHandlerRef.current(mql2);
|
|
110
109
|
}
|
|
111
110
|
let mql;
|
|
112
|
-
if (typeof
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
if (typeof window !== "undefined") {
|
|
112
|
+
const {
|
|
113
|
+
matchMedia
|
|
114
|
+
} = window;
|
|
115
|
+
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
|
116
|
+
mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
|
117
|
+
try {
|
|
118
|
+
mql.addEventListener("change", responsiveHandler);
|
|
119
|
+
} catch (_a) {
|
|
120
|
+
mql.addListener(responsiveHandler);
|
|
121
|
+
}
|
|
122
|
+
responsiveHandler(mql);
|
|
123
|
+
}
|
|
116
124
|
}
|
|
117
125
|
return () => {
|
|
118
|
-
|
|
126
|
+
try {
|
|
127
|
+
mql === null || mql === void 0 ? void 0 : mql.removeEventListener("change", responsiveHandler);
|
|
128
|
+
} catch (_a) {
|
|
129
|
+
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
|
130
|
+
}
|
|
119
131
|
};
|
|
120
132
|
}, [breakpoint]);
|
|
121
133
|
React.useEffect(() => {
|
|
@@ -5,7 +5,6 @@ import RefIcon$1 from "../../../@ant-design/icons/es/icons/LeftOutlined.js";
|
|
|
5
5
|
import RefIcon$2 from "../../../@ant-design/icons/es/icons/RightOutlined.js";
|
|
6
6
|
import classNames from "../../../../_virtual/index.js";
|
|
7
7
|
import omit from "../../../rc-util/es/omit.js";
|
|
8
|
-
import { addMediaQueryListener, removeMediaQueryListener } from "../_util/mediaQueryUtil.js";
|
|
9
8
|
import "../config-provider/index.js";
|
|
10
9
|
import { LayoutContext } from "./context.js";
|
|
11
10
|
import useStyle from "./style/sider.js";
|
|
@@ -30,7 +29,8 @@ const isNumeric = (value) => !Number.isNaN(Number.parseFloat(value)) && isFinite
|
|
|
30
29
|
const SiderContext = /* @__PURE__ */ React.createContext({});
|
|
31
30
|
const generateId = /* @__PURE__ */ (() => {
|
|
32
31
|
let i = 0;
|
|
33
|
-
return (
|
|
32
|
+
return function() {
|
|
33
|
+
let prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
34
34
|
i += 1;
|
|
35
35
|
return `${prefix}${i}`;
|
|
36
36
|
};
|
|
@@ -85,17 +85,29 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
85
85
|
};
|
|
86
86
|
useEffect(() => {
|
|
87
87
|
function responsiveHandler(mql2) {
|
|
88
|
-
|
|
89
|
-
return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql2);
|
|
88
|
+
return responsiveHandlerRef.current(mql2);
|
|
90
89
|
}
|
|
91
90
|
let mql;
|
|
92
|
-
if (typeof
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
if (typeof window !== "undefined") {
|
|
92
|
+
const {
|
|
93
|
+
matchMedia
|
|
94
|
+
} = window;
|
|
95
|
+
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
|
96
|
+
mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
|
97
|
+
try {
|
|
98
|
+
mql.addEventListener("change", responsiveHandler);
|
|
99
|
+
} catch (_a) {
|
|
100
|
+
mql.addListener(responsiveHandler);
|
|
101
|
+
}
|
|
102
|
+
responsiveHandler(mql);
|
|
103
|
+
}
|
|
96
104
|
}
|
|
97
105
|
return () => {
|
|
98
|
-
|
|
106
|
+
try {
|
|
107
|
+
mql === null || mql === void 0 ? void 0 : mql.removeEventListener("change", responsiveHandler);
|
|
108
|
+
} catch (_a) {
|
|
109
|
+
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
|
110
|
+
}
|
|
99
111
|
};
|
|
100
112
|
}, [breakpoint]);
|
|
101
113
|
useEffect(() => {
|
|
@@ -123,7 +123,7 @@ const prepareComponentToken = (token) => {
|
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
126
|
-
genStyleUtils.genStyleHooks("Layout", genLayoutStyle, prepareComponentToken, {
|
|
126
|
+
genStyleUtils.genStyleHooks("Layout", (token) => [genLayoutStyle(token)], prepareComponentToken, {
|
|
127
127
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
128
128
|
});
|
|
129
129
|
exports.DEPRECATED_TOKENS = DEPRECATED_TOKENS;
|
|
@@ -122,7 +122,7 @@ const prepareComponentToken = (token) => {
|
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
125
|
-
genStyleHooks("Layout", genLayoutStyle, prepareComponentToken, {
|
|
125
|
+
genStyleHooks("Layout", (token) => [genLayoutStyle(token)], prepareComponentToken, {
|
|
126
126
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
127
127
|
});
|
|
128
128
|
export {
|
|
@@ -124,7 +124,7 @@ const genSiderStyle = (token) => {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
-
var useStyle = genStyleUtils.genStyleHooks(["Layout", "Sider"], genSiderStyle, index.prepareComponentToken, {
|
|
127
|
+
var useStyle = genStyleUtils.genStyleHooks(["Layout", "Sider"], (token) => [genSiderStyle(token)], index.prepareComponentToken, {
|
|
128
128
|
deprecatedTokens: index.DEPRECATED_TOKENS
|
|
129
129
|
});
|
|
130
130
|
module.exports = useStyle;
|
|
@@ -123,7 +123,7 @@ const genSiderStyle = (token) => {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
var useStyle = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken, {
|
|
126
|
+
var useStyle = genStyleHooks(["Layout", "Sider"], (token) => [genSiderStyle(token)], prepareComponentToken, {
|
|
127
127
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
128
128
|
});
|
|
129
129
|
export {
|
|
@@ -85,7 +85,7 @@ const MenuItem = (props) => {
|
|
|
85
85
|
}, className),
|
|
86
86
|
title: typeof title === "string" ? title : void 0
|
|
87
87
|
}), reactNode.cloneElement(icon, {
|
|
88
|
-
className: index(/* @__PURE__ */ React__namespace.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className :
|
|
88
|
+
className: index(/* @__PURE__ */ React__namespace.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : "", `${prefixCls}-item-icon`)
|
|
89
89
|
}), renderItemChildren(isInlineCollapsed));
|
|
90
90
|
if (!disableMenuItemTitleTooltip) {
|
|
91
91
|
returnNode = /* @__PURE__ */ React__namespace.createElement(index$1, Object.assign({}, tooltipProps, {
|
|
@@ -65,7 +65,7 @@ const MenuItem = (props) => {
|
|
|
65
65
|
}, className),
|
|
66
66
|
title: typeof title === "string" ? title : void 0
|
|
67
67
|
}), cloneElement(icon, {
|
|
68
|
-
className: classNames(/* @__PURE__ */ React.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className :
|
|
68
|
+
className: classNames(/* @__PURE__ */ React.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : "", `${prefixCls}-item-icon`)
|
|
69
69
|
}), renderItemChildren(isInlineCollapsed));
|
|
70
70
|
if (!disableMenuItemTitleTooltip) {
|
|
71
71
|
returnNode = /* @__PURE__ */ React.createElement(Tooltip, Object.assign({}, tooltipProps, {
|
|
@@ -52,7 +52,7 @@ const SubMenu = (props) => {
|
|
|
52
52
|
} else {
|
|
53
53
|
const titleIsSpan = /* @__PURE__ */ React__namespace.isValidElement(title) && title.type === "span";
|
|
54
54
|
titleNode = /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, reactNode.cloneElement(icon, {
|
|
55
|
-
className: index(/* @__PURE__ */ React__namespace.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className :
|
|
55
|
+
className: index(/* @__PURE__ */ React__namespace.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : "", `${prefixCls}-item-icon`)
|
|
56
56
|
}), titleIsSpan ? title : /* @__PURE__ */ React__namespace.createElement("span", {
|
|
57
57
|
className: `${prefixCls}-title-content`
|
|
58
58
|
}, title));
|
|
@@ -32,7 +32,7 @@ const SubMenu = (props) => {
|
|
|
32
32
|
} else {
|
|
33
33
|
const titleIsSpan = /* @__PURE__ */ React.isValidElement(title) && title.type === "span";
|
|
34
34
|
titleNode = /* @__PURE__ */ React.createElement(React.Fragment, null, cloneElement(icon, {
|
|
35
|
-
className: classNames(/* @__PURE__ */ React.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className :
|
|
35
|
+
className: classNames(/* @__PURE__ */ React.isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : "", `${prefixCls}-item-icon`)
|
|
36
36
|
}), titleIsSpan ? title : /* @__PURE__ */ React.createElement("span", {
|
|
37
37
|
className: `${prefixCls}-title-content`
|
|
38
38
|
}, title));
|
|
@@ -87,9 +87,9 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
87
87
|
(_a = overrideObj.validator) === null || _a === void 0 ? void 0 : _a.call(overrideObj, {
|
|
88
88
|
mode
|
|
89
89
|
});
|
|
90
|
-
const onItemClick = useEvent((
|
|
90
|
+
const onItemClick = useEvent(function() {
|
|
91
91
|
var _a2;
|
|
92
|
-
onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0,
|
|
92
|
+
onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, arguments);
|
|
93
93
|
(_a2 = overrideObj.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(overrideObj);
|
|
94
94
|
});
|
|
95
95
|
const mergedMode = overrideObj.mode || mode;
|
|
@@ -68,9 +68,9 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
68
68
|
(_a = overrideObj.validator) === null || _a === void 0 ? void 0 : _a.call(overrideObj, {
|
|
69
69
|
mode
|
|
70
70
|
});
|
|
71
|
-
const onItemClick = useEvent((
|
|
71
|
+
const onItemClick = useEvent(function() {
|
|
72
72
|
var _a2;
|
|
73
|
-
onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0,
|
|
73
|
+
onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, arguments);
|
|
74
74
|
(_a2 = overrideObj.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(overrideObj);
|
|
75
75
|
});
|
|
76
76
|
const mergedMode = overrideObj.mode || mode;
|