@gobolt/genesis 0.3.11 → 0.3.13
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
|
@@ -74,8 +74,6 @@ const genBaseStyle = (prefixCls, token) => {
|
|
|
74
74
|
} = token;
|
|
75
75
|
return {
|
|
76
76
|
[treeCls]: Object.assign(Object.assign({}, resetComponent(token)), {
|
|
77
|
-
// fix https://github.com/ant-design/ant-design/issues/50316
|
|
78
|
-
["--rc-virtual-list-scrollbar-bg"]: token.colorSplit,
|
|
79
77
|
background: token.colorBgContainer,
|
|
80
78
|
borderRadius: token.borderRadius,
|
|
81
79
|
transition: `background-color ${token.motionDurationSlow}`,
|
|
@@ -85,7 +83,7 @@ const genBaseStyle = (prefixCls, token) => {
|
|
|
85
83
|
[`&${treeCls}-rtl ${treeCls}-switcher_close ${treeCls}-switcher-icon svg`]: {
|
|
86
84
|
transform: "rotate(90deg)"
|
|
87
85
|
},
|
|
88
|
-
[`&-focused:not(:hover):not(${treeCls}-active-focused)`]: genFocusOutline(token),
|
|
86
|
+
[`&-focused:not(:hover):not(${treeCls}-active-focused)`]: Object.assign({}, genFocusOutline(token)),
|
|
89
87
|
// =================== Virtual List ===================
|
|
90
88
|
[`${treeCls}-list-holder-inner`]: {
|
|
91
89
|
alignItems: "flex-start"
|
|
@@ -160,7 +158,7 @@ const genBaseStyle = (prefixCls, token) => {
|
|
|
160
158
|
},
|
|
161
159
|
[`&:not(${treeNodeCls}-disabled).filter-node ${treeCls}-title`]: {
|
|
162
160
|
color: token.colorPrimary,
|
|
163
|
-
fontWeight:
|
|
161
|
+
fontWeight: 500
|
|
164
162
|
},
|
|
165
163
|
"&-draggable": {
|
|
166
164
|
cursor: "grab",
|
|
@@ -329,7 +327,7 @@ const genBaseStyle = (prefixCls, token) => {
|
|
|
329
327
|
})
|
|
330
328
|
};
|
|
331
329
|
};
|
|
332
|
-
const genTreeStyle = (prefixCls, token
|
|
330
|
+
const genTreeStyle = (prefixCls, token) => {
|
|
333
331
|
const treeCls = `.${prefixCls}`;
|
|
334
332
|
const treeNodeCls = `${treeCls}-treenode`;
|
|
335
333
|
const treeNodePadding = token.calc(token.paddingXS).div(2).equal();
|
|
@@ -342,8 +340,8 @@ const genTreeStyle = (prefixCls, token, enableDirectory = true) => {
|
|
|
342
340
|
// Basic
|
|
343
341
|
genBaseStyle(prefixCls, treeToken),
|
|
344
342
|
// Directory
|
|
345
|
-
|
|
346
|
-
]
|
|
343
|
+
genDirectoryStyle(treeToken)
|
|
344
|
+
];
|
|
347
345
|
};
|
|
348
346
|
const initComponentToken = (token) => {
|
|
349
347
|
const {
|
|
@@ -371,11 +369,14 @@ const prepareComponentToken = (token) => {
|
|
|
371
369
|
directoryNodeSelectedBg: colorPrimary
|
|
372
370
|
});
|
|
373
371
|
};
|
|
374
|
-
var useStyle = genStyleHooks("Tree", (token, {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
372
|
+
var useStyle = genStyleHooks("Tree", (token, _ref) => {
|
|
373
|
+
let {
|
|
374
|
+
prefixCls
|
|
375
|
+
} = _ref;
|
|
376
|
+
return [{
|
|
377
|
+
[token.componentCls]: getStyle(`${prefixCls}-checkbox`, token)
|
|
378
|
+
}, genTreeStyle(prefixCls, token), genCollapseMotion(token)];
|
|
379
|
+
}, prepareComponentToken);
|
|
379
380
|
export {
|
|
380
381
|
useStyle as default,
|
|
381
382
|
genBaseStyle,
|
|
@@ -18,13 +18,14 @@ function traverseNodesKey(treeData, callback, fieldNames) {
|
|
|
18
18
|
}
|
|
19
19
|
treeData.forEach(processNode);
|
|
20
20
|
}
|
|
21
|
-
function calcRangeKeys({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
function calcRangeKeys(_ref) {
|
|
22
|
+
let {
|
|
23
|
+
treeData,
|
|
24
|
+
expandedKeys,
|
|
25
|
+
startKey,
|
|
26
|
+
endKey,
|
|
27
|
+
fieldNames
|
|
28
|
+
} = _ref;
|
|
28
29
|
const keys = [];
|
|
29
30
|
let record = RECORD_NONE;
|
|
30
31
|
if (startKey && startKey === endKey) {
|
|
@@ -17,13 +17,14 @@ function traverseNodesKey(treeData, callback, fieldNames) {
|
|
|
17
17
|
}
|
|
18
18
|
treeData.forEach(processNode);
|
|
19
19
|
}
|
|
20
|
-
function calcRangeKeys({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
function calcRangeKeys(_ref) {
|
|
21
|
+
let {
|
|
22
|
+
treeData,
|
|
23
|
+
expandedKeys,
|
|
24
|
+
startKey,
|
|
25
|
+
endKey,
|
|
26
|
+
fieldNames
|
|
27
|
+
} = _ref;
|
|
27
28
|
const keys = [];
|
|
28
29
|
let record = RECORD_NONE;
|
|
29
30
|
if (startKey && startKey === endKey) {
|
|
@@ -27,7 +27,6 @@ function _interopNamespaceDefault(e) {
|
|
|
27
27
|
}
|
|
28
28
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
29
29
|
const SwitcherIconCom = (props) => {
|
|
30
|
-
var _a, _b;
|
|
31
30
|
const {
|
|
32
31
|
prefixCls,
|
|
33
32
|
switcherIcon,
|
|
@@ -61,7 +60,7 @@ const SwitcherIconCom = (props) => {
|
|
|
61
60
|
const leafCls = `${prefixCls}-switcher-line-custom-icon`;
|
|
62
61
|
if (/* @__PURE__ */ React__namespace.isValidElement(leafIcon)) {
|
|
63
62
|
return reactNode.cloneElement(leafIcon, {
|
|
64
|
-
className: index(
|
|
63
|
+
className: index(leafIcon.props.className || "", leafCls)
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
66
|
return leafIcon;
|
|
@@ -76,7 +75,7 @@ const SwitcherIconCom = (props) => {
|
|
|
76
75
|
const switcher = typeof switcherIcon === "function" ? switcherIcon(treeNodeProps) : switcherIcon;
|
|
77
76
|
if (/* @__PURE__ */ React__namespace.isValidElement(switcher)) {
|
|
78
77
|
return reactNode.cloneElement(switcher, {
|
|
79
|
-
className: index(
|
|
78
|
+
className: index(switcher.props.className || "", switcherCls)
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
if (switcher !== void 0) {
|
|
@@ -7,7 +7,6 @@ import RefIcon$3 from "../../../../@ant-design/icons/es/icons/PlusSquareOutlined
|
|
|
7
7
|
import classNames from "../../../../../_virtual/index.js";
|
|
8
8
|
import { cloneElement } from "../../_util/reactNode.js";
|
|
9
9
|
const SwitcherIconCom = (props) => {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const {
|
|
12
11
|
prefixCls,
|
|
13
12
|
switcherIcon,
|
|
@@ -41,7 +40,7 @@ const SwitcherIconCom = (props) => {
|
|
|
41
40
|
const leafCls = `${prefixCls}-switcher-line-custom-icon`;
|
|
42
41
|
if (/* @__PURE__ */ React.isValidElement(leafIcon)) {
|
|
43
42
|
return cloneElement(leafIcon, {
|
|
44
|
-
className: classNames(
|
|
43
|
+
className: classNames(leafIcon.props.className || "", leafCls)
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
return leafIcon;
|
|
@@ -56,7 +55,7 @@ const SwitcherIconCom = (props) => {
|
|
|
56
55
|
const switcher = typeof switcherIcon === "function" ? switcherIcon(treeNodeProps) : switcherIcon;
|
|
57
56
|
if (/* @__PURE__ */ React.isValidElement(switcher)) {
|
|
58
57
|
return cloneElement(switcher, {
|
|
59
|
-
className: classNames(
|
|
58
|
+
className: classNames(switcher.props.className || "", switcherCls)
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
61
|
if (switcher !== void 0) {
|
|
@@ -25,17 +25,18 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
return Object.freeze(n);
|
|
26
26
|
}
|
|
27
27
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
28
|
-
const CopyBtn = ({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
const CopyBtn = (_ref) => {
|
|
29
|
+
let {
|
|
30
|
+
prefixCls,
|
|
31
|
+
copied,
|
|
32
|
+
locale,
|
|
33
|
+
iconOnly,
|
|
34
|
+
tooltips,
|
|
35
|
+
icon,
|
|
36
|
+
tabIndex,
|
|
37
|
+
onCopy,
|
|
38
|
+
loading: btnLoading
|
|
39
|
+
} = _ref;
|
|
39
40
|
const tooltipNodes = util.toList(tooltips);
|
|
40
41
|
const iconNodes = util.toList(icon);
|
|
41
42
|
const {
|
|
@@ -46,8 +47,7 @@ const CopyBtn = ({
|
|
|
46
47
|
const copyTitle = util.getNode(tooltipNodes[copied ? 1 : 0], systemStr);
|
|
47
48
|
const ariaLabel = typeof copyTitle === "string" ? copyTitle : systemStr;
|
|
48
49
|
return /* @__PURE__ */ React__namespace.createElement(index, {
|
|
49
|
-
title: copyTitle
|
|
50
|
-
getPopupContainer: (node) => node.parentNode
|
|
50
|
+
title: copyTitle
|
|
51
51
|
}, /* @__PURE__ */ React__namespace.createElement("button", {
|
|
52
52
|
type: "button",
|
|
53
53
|
className: index$1(`${prefixCls}-copy`, {
|
|
@@ -5,17 +5,18 @@ import RefIcon$1 from "../../../../@ant-design/icons/es/icons/LoadingOutlined.js
|
|
|
5
5
|
import classNames from "../../../../../_virtual/index.js";
|
|
6
6
|
import Tooltip from "../../tooltip/index.js";
|
|
7
7
|
import { getNode, toList } from "./util.js";
|
|
8
|
-
const CopyBtn = ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const CopyBtn = (_ref) => {
|
|
9
|
+
let {
|
|
10
|
+
prefixCls,
|
|
11
|
+
copied,
|
|
12
|
+
locale,
|
|
13
|
+
iconOnly,
|
|
14
|
+
tooltips,
|
|
15
|
+
icon,
|
|
16
|
+
tabIndex,
|
|
17
|
+
onCopy,
|
|
18
|
+
loading: btnLoading
|
|
19
|
+
} = _ref;
|
|
19
20
|
const tooltipNodes = toList(tooltips);
|
|
20
21
|
const iconNodes = toList(icon);
|
|
21
22
|
const {
|
|
@@ -26,8 +27,7 @@ const CopyBtn = ({
|
|
|
26
27
|
const copyTitle = getNode(tooltipNodes[copied ? 1 : 0], systemStr);
|
|
27
28
|
const ariaLabel = typeof copyTitle === "string" ? copyTitle : systemStr;
|
|
28
29
|
return /* @__PURE__ */ React.createElement(Tooltip, {
|
|
29
|
-
title: copyTitle
|
|
30
|
-
getPopupContainer: (node) => node.parentNode
|
|
30
|
+
title: copyTitle
|
|
31
31
|
}, /* @__PURE__ */ React.createElement("button", {
|
|
32
32
|
type: "button",
|
|
33
33
|
className: classNames(`${prefixCls}-copy`, {
|
|
@@ -23,10 +23,11 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
return Object.freeze(n);
|
|
24
24
|
}
|
|
25
25
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
|
-
const MeasureText = /* @__PURE__ */ React__namespace.forwardRef(({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
const MeasureText = /* @__PURE__ */ React__namespace.forwardRef((_ref, ref) => {
|
|
27
|
+
let {
|
|
28
|
+
style,
|
|
29
|
+
children
|
|
30
|
+
} = _ref;
|
|
30
31
|
const spanRef = React__namespace.useRef(null);
|
|
31
32
|
React__namespace.useImperativeHandle(ref, () => ({
|
|
32
33
|
isExceed: () => {
|
|
@@ -3,10 +3,11 @@ import * as React from "react";
|
|
|
3
3
|
import toArray from "../../../../rc-util/es/Children/toArray.js";
|
|
4
4
|
import useLayoutEffect from "../../../../rc-util/es/hooks/useLayoutEffect.js";
|
|
5
5
|
import { isValidText } from "./util.js";
|
|
6
|
-
const MeasureText = /* @__PURE__ */ React.forwardRef(({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const MeasureText = /* @__PURE__ */ React.forwardRef((_ref, ref) => {
|
|
7
|
+
let {
|
|
8
|
+
style,
|
|
9
|
+
children
|
|
10
|
+
} = _ref;
|
|
10
11
|
const spanRef = React.useRef(null);
|
|
11
12
|
React.useImperativeHandle(ref, () => ({
|
|
12
13
|
isExceed: () => {
|
|
@@ -20,12 +20,13 @@ function _interopNamespaceDefault(e) {
|
|
|
20
20
|
return Object.freeze(n);
|
|
21
21
|
}
|
|
22
22
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
-
const EllipsisTooltip = ({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
const EllipsisTooltip = (_ref) => {
|
|
24
|
+
let {
|
|
25
|
+
enableEllipsis,
|
|
26
|
+
isEllipsis,
|
|
27
|
+
children,
|
|
28
|
+
tooltipProps
|
|
29
|
+
} = _ref;
|
|
29
30
|
if (!(tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.title) || !enableEllipsis) {
|
|
30
31
|
return children;
|
|
31
32
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import Tooltip from "../../tooltip/index.js";
|
|
3
|
-
const EllipsisTooltip = ({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const EllipsisTooltip = (_ref) => {
|
|
4
|
+
let {
|
|
5
|
+
enableEllipsis,
|
|
6
|
+
isEllipsis,
|
|
7
|
+
children,
|
|
8
|
+
tooltipProps
|
|
9
|
+
} = _ref;
|
|
9
10
|
if (!(tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.title) || !enableEllipsis) {
|
|
10
11
|
return children;
|
|
11
12
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var toConsumableArray = require("../../../../@babel/runtime/helpers/esm/toConsumableArray.cjs");
|
|
3
2
|
var React = require("react");
|
|
4
3
|
var EditOutlined = require("../../../../@ant-design/icons/es/icons/EditOutlined.cjs");
|
|
5
4
|
var index$1 = require("../../../../../_virtual/index.cjs");
|
|
@@ -51,15 +50,16 @@ var __rest = function(s, e) {
|
|
|
51
50
|
}
|
|
52
51
|
return t;
|
|
53
52
|
};
|
|
54
|
-
function wrapperDecorations({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
function wrapperDecorations(_ref, content) {
|
|
54
|
+
let {
|
|
55
|
+
mark,
|
|
56
|
+
code,
|
|
57
|
+
underline,
|
|
58
|
+
delete: del,
|
|
59
|
+
strong,
|
|
60
|
+
keyboard,
|
|
61
|
+
italic
|
|
62
|
+
} = _ref;
|
|
63
63
|
let currentContent = content;
|
|
64
64
|
function wrap(tag, needed) {
|
|
65
65
|
if (!needed) {
|
|
@@ -77,7 +77,6 @@ function wrapperDecorations({
|
|
|
77
77
|
return currentContent;
|
|
78
78
|
}
|
|
79
79
|
const ELLIPSIS_STR = "...";
|
|
80
|
-
const DECORATION_PROPS = ["delete", "mark", "code", "underline", "strong", "keyboard", "italic"];
|
|
81
80
|
const Base = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
82
81
|
var _a;
|
|
83
82
|
const {
|
|
@@ -101,7 +100,7 @@ const Base = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
101
100
|
const typographyRef = React__namespace.useRef(null);
|
|
102
101
|
const editIconRef = React__namespace.useRef(null);
|
|
103
102
|
const prefixCls = getPrefixCls("typography", customizePrefixCls);
|
|
104
|
-
const textProps = omit(restProps,
|
|
103
|
+
const textProps = omit(restProps, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]);
|
|
105
104
|
const [enableEdit, editConfig] = useMergedConfig(editable);
|
|
106
105
|
const [editing, setEditing] = useMergedState(false, {
|
|
107
106
|
value: editConfig.editing
|
|
@@ -196,9 +195,10 @@ const Base = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
196
195
|
(_a2 = ellipsisConfig.onExpand) === null || _a2 === void 0 ? void 0 : _a2.call(ellipsisConfig, e, info);
|
|
197
196
|
};
|
|
198
197
|
const [ellipsisWidth, setEllipsisWidth] = React__namespace.useState(0);
|
|
199
|
-
const onResize = ({
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
const onResize = (_ref2) => {
|
|
199
|
+
let {
|
|
200
|
+
offsetWidth
|
|
201
|
+
} = _ref2;
|
|
202
202
|
setEllipsisWidth(offsetWidth);
|
|
203
203
|
};
|
|
204
204
|
const onJsEllipsis = (jsEllipsis) => {
|
|
@@ -345,7 +345,7 @@ const Base = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
345
345
|
width: ellipsisWidth,
|
|
346
346
|
onEllipsis: onJsEllipsis,
|
|
347
347
|
expanded,
|
|
348
|
-
miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale]
|
|
348
|
+
miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale]
|
|
349
349
|
}, (node, canEllipsis) => wrapperDecorations(props, /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? /* @__PURE__ */ React__namespace.createElement("span", {
|
|
350
350
|
key: "show-content",
|
|
351
351
|
"aria-hidden": true
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _toConsumableArray from "../../../../@babel/runtime/helpers/esm/toConsumableArray.js";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import RefIcon from "../../../../@ant-design/icons/es/icons/EditOutlined.js";
|
|
4
3
|
import classNames from "../../../../../_virtual/index.js";
|
|
@@ -31,15 +30,16 @@ var __rest = function(s, e) {
|
|
|
31
30
|
}
|
|
32
31
|
return t;
|
|
33
32
|
};
|
|
34
|
-
function wrapperDecorations({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
function wrapperDecorations(_ref, content) {
|
|
34
|
+
let {
|
|
35
|
+
mark,
|
|
36
|
+
code,
|
|
37
|
+
underline,
|
|
38
|
+
delete: del,
|
|
39
|
+
strong,
|
|
40
|
+
keyboard,
|
|
41
|
+
italic
|
|
42
|
+
} = _ref;
|
|
43
43
|
let currentContent = content;
|
|
44
44
|
function wrap(tag, needed) {
|
|
45
45
|
if (!needed) {
|
|
@@ -57,7 +57,6 @@ function wrapperDecorations({
|
|
|
57
57
|
return currentContent;
|
|
58
58
|
}
|
|
59
59
|
const ELLIPSIS_STR = "...";
|
|
60
|
-
const DECORATION_PROPS = ["delete", "mark", "code", "underline", "strong", "keyboard", "italic"];
|
|
61
60
|
const Base = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
62
61
|
var _a;
|
|
63
62
|
const {
|
|
@@ -81,7 +80,7 @@ const Base = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
81
80
|
const typographyRef = React.useRef(null);
|
|
82
81
|
const editIconRef = React.useRef(null);
|
|
83
82
|
const prefixCls = getPrefixCls("typography", customizePrefixCls);
|
|
84
|
-
const textProps = omit(restProps,
|
|
83
|
+
const textProps = omit(restProps, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]);
|
|
85
84
|
const [enableEdit, editConfig] = useMergedConfig(editable);
|
|
86
85
|
const [editing, setEditing] = useMergedState(false, {
|
|
87
86
|
value: editConfig.editing
|
|
@@ -176,9 +175,10 @@ const Base = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
176
175
|
(_a2 = ellipsisConfig.onExpand) === null || _a2 === void 0 ? void 0 : _a2.call(ellipsisConfig, e, info);
|
|
177
176
|
};
|
|
178
177
|
const [ellipsisWidth, setEllipsisWidth] = React.useState(0);
|
|
179
|
-
const onResize = ({
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
const onResize = (_ref2) => {
|
|
179
|
+
let {
|
|
180
|
+
offsetWidth
|
|
181
|
+
} = _ref2;
|
|
182
182
|
setEllipsisWidth(offsetWidth);
|
|
183
183
|
};
|
|
184
184
|
const onJsEllipsis = (jsEllipsis) => {
|
|
@@ -325,7 +325,7 @@ const Base = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
325
325
|
width: ellipsisWidth,
|
|
326
326
|
onEllipsis: onJsEllipsis,
|
|
327
327
|
expanded,
|
|
328
|
-
miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale]
|
|
328
|
+
miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale]
|
|
329
329
|
}, (node, canEllipsis) => wrapperDecorations(props, /* @__PURE__ */ React.createElement(React.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? /* @__PURE__ */ React.createElement("span", {
|
|
330
330
|
key: "show-content",
|
|
331
331
|
"aria-hidden": true
|
|
@@ -61,9 +61,10 @@ const Editable = (props) => {
|
|
|
61
61
|
textArea.setSelectionRange(length, length);
|
|
62
62
|
}
|
|
63
63
|
}, []);
|
|
64
|
-
const onChange = ({
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
const onChange = (_ref) => {
|
|
65
|
+
let {
|
|
66
|
+
target
|
|
67
|
+
} = _ref;
|
|
67
68
|
setCurrent(target.value.replace(/[\n\r]/g, ""));
|
|
68
69
|
};
|
|
69
70
|
const onCompositionStart = () => {
|
|
@@ -72,22 +73,24 @@ const Editable = (props) => {
|
|
|
72
73
|
const onCompositionEnd = () => {
|
|
73
74
|
inComposition.current = false;
|
|
74
75
|
};
|
|
75
|
-
const onKeyDown = ({
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
const onKeyDown = (_ref2) => {
|
|
77
|
+
let {
|
|
78
|
+
keyCode
|
|
79
|
+
} = _ref2;
|
|
78
80
|
if (inComposition.current) return;
|
|
79
81
|
lastKeyCode.current = keyCode;
|
|
80
82
|
};
|
|
81
83
|
const confirmChange = () => {
|
|
82
84
|
onSave(current.trim());
|
|
83
85
|
};
|
|
84
|
-
const onKeyUp = ({
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
const onKeyUp = (_ref3) => {
|
|
87
|
+
let {
|
|
88
|
+
keyCode,
|
|
89
|
+
ctrlKey,
|
|
90
|
+
altKey,
|
|
91
|
+
metaKey,
|
|
92
|
+
shiftKey
|
|
93
|
+
} = _ref3;
|
|
91
94
|
if (lastKeyCode.current !== keyCode || inComposition.current || ctrlKey || altKey || metaKey || shiftKey) {
|
|
92
95
|
return;
|
|
93
96
|
}
|
|
@@ -41,9 +41,10 @@ const Editable = (props) => {
|
|
|
41
41
|
textArea.setSelectionRange(length, length);
|
|
42
42
|
}
|
|
43
43
|
}, []);
|
|
44
|
-
const onChange = ({
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const onChange = (_ref) => {
|
|
45
|
+
let {
|
|
46
|
+
target
|
|
47
|
+
} = _ref;
|
|
47
48
|
setCurrent(target.value.replace(/[\n\r]/g, ""));
|
|
48
49
|
};
|
|
49
50
|
const onCompositionStart = () => {
|
|
@@ -52,22 +53,24 @@ const Editable = (props) => {
|
|
|
52
53
|
const onCompositionEnd = () => {
|
|
53
54
|
inComposition.current = false;
|
|
54
55
|
};
|
|
55
|
-
const onKeyDown = ({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
const onKeyDown = (_ref2) => {
|
|
57
|
+
let {
|
|
58
|
+
keyCode
|
|
59
|
+
} = _ref2;
|
|
58
60
|
if (inComposition.current) return;
|
|
59
61
|
lastKeyCode.current = keyCode;
|
|
60
62
|
};
|
|
61
63
|
const confirmChange = () => {
|
|
62
64
|
onSave(current.trim());
|
|
63
65
|
};
|
|
64
|
-
const onKeyUp = ({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
const onKeyUp = (_ref3) => {
|
|
67
|
+
let {
|
|
68
|
+
keyCode,
|
|
69
|
+
ctrlKey,
|
|
70
|
+
altKey,
|
|
71
|
+
metaKey,
|
|
72
|
+
shiftKey
|
|
73
|
+
} = _ref3;
|
|
71
74
|
if (lastKeyCode.current !== keyCode || inComposition.current || ctrlKey || altKey || metaKey || shiftKey) {
|
|
72
75
|
return;
|
|
73
76
|
}
|
|
@@ -49,10 +49,11 @@ var __awaiter = function(thisArg, _arguments, P, generator) {
|
|
|
49
49
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
const useCopyClick = ({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
const useCopyClick = (_ref) => {
|
|
53
|
+
let {
|
|
54
|
+
copyConfig,
|
|
55
|
+
children
|
|
56
|
+
} = _ref;
|
|
56
57
|
const [copied, setCopied] = React__namespace.useState(false);
|
|
57
58
|
const [copyLoading, setCopyLoading] = React__namespace.useState(false);
|
|
58
59
|
const copyIdRef = React__namespace.useRef(null);
|
|
@@ -29,10 +29,11 @@ var __awaiter = function(thisArg, _arguments, P, generator) {
|
|
|
29
29
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const useCopyClick = ({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const useCopyClick = (_ref) => {
|
|
33
|
+
let {
|
|
34
|
+
copyConfig,
|
|
35
|
+
children
|
|
36
|
+
} = _ref;
|
|
36
37
|
const [copied, setCopied] = React.useState(false);
|
|
37
38
|
const [copyLoading, setCopyLoading] = React.useState(false);
|
|
38
39
|
const copyIdRef = React.useRef(null);
|
|
@@ -32,18 +32,18 @@ const genTypographyStyle = (token) => {
|
|
|
32
32
|
color: token.colorTextDescription
|
|
33
33
|
},
|
|
34
34
|
[`&${componentCls}-success`]: {
|
|
35
|
-
color: token.
|
|
35
|
+
color: token.colorSuccess
|
|
36
36
|
},
|
|
37
37
|
[`&${componentCls}-warning`]: {
|
|
38
|
-
color: token.
|
|
38
|
+
color: token.colorWarning
|
|
39
39
|
},
|
|
40
40
|
[`&${componentCls}-danger`]: {
|
|
41
|
-
color: token.
|
|
41
|
+
color: token.colorError,
|
|
42
42
|
"a&:active, a&:focus": {
|
|
43
|
-
color: token.
|
|
43
|
+
color: token.colorErrorActive
|
|
44
44
|
},
|
|
45
45
|
"a&:hover": {
|
|
46
|
-
color: token.
|
|
46
|
+
color: token.colorErrorHover
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
[`&${componentCls}-disabled`]: {
|
|
@@ -108,6 +108,6 @@ const prepareComponentToken = () => ({
|
|
|
108
108
|
titleMarginTop: "1.2em",
|
|
109
109
|
titleMarginBottom: "0.5em"
|
|
110
110
|
});
|
|
111
|
-
var useStyle = genStyleUtils.genStyleHooks("Typography", genTypographyStyle, prepareComponentToken);
|
|
111
|
+
var useStyle = genStyleUtils.genStyleHooks("Typography", (token) => [genTypographyStyle(token)], prepareComponentToken);
|
|
112
112
|
exports.default = useStyle;
|
|
113
113
|
exports.prepareComponentToken = prepareComponentToken;
|
|
@@ -30,18 +30,18 @@ const genTypographyStyle = (token) => {
|
|
|
30
30
|
color: token.colorTextDescription
|
|
31
31
|
},
|
|
32
32
|
[`&${componentCls}-success`]: {
|
|
33
|
-
color: token.
|
|
33
|
+
color: token.colorSuccess
|
|
34
34
|
},
|
|
35
35
|
[`&${componentCls}-warning`]: {
|
|
36
|
-
color: token.
|
|
36
|
+
color: token.colorWarning
|
|
37
37
|
},
|
|
38
38
|
[`&${componentCls}-danger`]: {
|
|
39
|
-
color: token.
|
|
39
|
+
color: token.colorError,
|
|
40
40
|
"a&:active, a&:focus": {
|
|
41
|
-
color: token.
|
|
41
|
+
color: token.colorErrorActive
|
|
42
42
|
},
|
|
43
43
|
"a&:hover": {
|
|
44
|
-
color: token.
|
|
44
|
+
color: token.colorErrorHover
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
[`&${componentCls}-disabled`]: {
|
|
@@ -106,7 +106,7 @@ const prepareComponentToken = () => ({
|
|
|
106
106
|
titleMarginTop: "1.2em",
|
|
107
107
|
titleMarginBottom: "0.5em"
|
|
108
108
|
});
|
|
109
|
-
var useStyle = genStyleHooks("Typography", genTypographyStyle, prepareComponentToken);
|
|
109
|
+
var useStyle = genStyleHooks("Typography", (token) => [genTypographyStyle(token)], prepareComponentToken);
|
|
110
110
|
export {
|
|
111
111
|
useStyle as default,
|
|
112
112
|
prepareComponentToken
|