From 046ddd66b36a90235ad0176f0b699bfb1801930a Mon Sep 17 00:00:00 2001 From: Dunqing Date: Mon, 4 Sep 2023 19:51:07 +0800 Subject: [PATCH] :bug: fix: the MappingAlgorithm type doesn't exported (#103) * fix: the MappingAlgorithm type doesn't exported * chore: update peer --- docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx | 2 +- package.json | 2 +- src/types/theme.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx b/docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx index d883a033..ef090580 100644 --- a/docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx +++ b/docs/demos/guide/switch-theme/AntdTheme/CustomDark.tsx @@ -1,6 +1,6 @@ import { theme } from 'antd'; import { ThemeProvider } from 'antd-style'; -import { MappingAlgorithm, ThemeConfig } from 'antd/es/config-provider/context'; +import { MappingAlgorithm, ThemeConfig } from 'antd'; import App from '../../../common/demo'; diff --git a/package.json b/package.json index adb26274..2ac7a227 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "zustand": "^4" }, "peerDependencies": { - "antd": "^5", + "antd": ">=5.8.1", "react": ">=18" }, "publishConfig": { diff --git a/src/types/theme.ts b/src/types/theme.ts index 8741fd2c..8b1005bd 100644 --- a/src/types/theme.ts +++ b/src/types/theme.ts @@ -1,5 +1,5 @@ -import { ThemeConfig } from 'antd'; -import { AliasToken, MappingAlgorithm } from 'antd/es/theme/interface'; +import { ThemeConfig, MappingAlgorithm } from 'antd'; +import { AliasToken } from 'antd/es/theme/interface'; import { BrowserPrefers, ThemeAppearance, ThemeMode } from './appearance';