dumi-theme-lobehub 3.0.1 → 4.0.0

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.
@@ -1,41 +1,46 @@
1
1
  'use client';
2
2
 
3
+ import { ConfigProvider as LobehubConfigProvider } from '@lobehub/ui';
3
4
  import { ConfigProvider } from 'antd';
4
5
  import { useTheme } from 'antd-style';
6
+ import * as motion from 'motion/react-m';
5
7
  import { memo } from 'react';
6
8
  import { jsx as _jsx } from "react/jsx-runtime";
7
9
  var Config = /*#__PURE__*/memo(function (_ref) {
8
10
  var children = _ref.children;
9
11
  var theme = useTheme();
10
- return /*#__PURE__*/_jsx(ConfigProvider, {
11
- theme: {
12
- components: {
13
- Button: {
14
- contentFontSizeSM: 12
15
- },
16
- DatePicker: {
17
- activeBorderColor: theme.colorBorder,
18
- hoverBorderColor: theme.colorBorder
19
- },
20
- Input: {
21
- activeBorderColor: theme.colorBorder,
22
- hoverBorderColor: theme.colorBorder
23
- },
24
- InputNumber: {
25
- activeBorderColor: theme.colorBorder,
26
- hoverBorderColor: theme.colorBorder
27
- },
28
- Mentions: {
29
- activeBorderColor: theme.colorBorder,
30
- hoverBorderColor: theme.colorBorder
31
- },
32
- Select: {
33
- activeBorderColor: theme.colorBorder,
34
- hoverBorderColor: theme.colorBorder
12
+ return /*#__PURE__*/_jsx(LobehubConfigProvider, {
13
+ motion: motion,
14
+ children: /*#__PURE__*/_jsx(ConfigProvider, {
15
+ theme: {
16
+ components: {
17
+ Button: {
18
+ contentFontSizeSM: 12
19
+ },
20
+ DatePicker: {
21
+ activeBorderColor: theme.colorBorder,
22
+ hoverBorderColor: theme.colorBorder
23
+ },
24
+ Input: {
25
+ activeBorderColor: theme.colorBorder,
26
+ hoverBorderColor: theme.colorBorder
27
+ },
28
+ InputNumber: {
29
+ activeBorderColor: theme.colorBorder,
30
+ hoverBorderColor: theme.colorBorder
31
+ },
32
+ Mentions: {
33
+ activeBorderColor: theme.colorBorder,
34
+ hoverBorderColor: theme.colorBorder
35
+ },
36
+ Select: {
37
+ activeBorderColor: theme.colorBorder,
38
+ hoverBorderColor: theme.colorBorder
39
+ }
35
40
  }
36
- }
37
- },
38
- children: children
41
+ },
42
+ children: children
43
+ })
39
44
  });
40
45
  });
41
46
  export default Config;
@@ -1,6 +1,7 @@
1
1
  import { ThemeProvider } from '@lobehub/ui';
2
2
  import 'antd/dist/reset.css';
3
3
  import isEqual from 'fast-deep-equal';
4
+ import { LazyMotion, domMax } from 'motion/react';
4
5
  import { memo } from 'react';
5
6
  import { siteSelectors, useSiteStore, useThemeStore } from "../../store";
6
7
  import _customToken from "../../styles/customToken";
@@ -23,7 +24,10 @@ export default /*#__PURE__*/memo(function (_ref) {
23
24
  },
24
25
  themeMode: themeMode,
25
26
  children: [/*#__PURE__*/_jsx(AntdStaticMethods, {}), /*#__PURE__*/_jsx(ConfigProvider, {
26
- children: children
27
+ children: /*#__PURE__*/_jsx(LazyMotion, {
28
+ features: domMax,
29
+ children: children
30
+ })
27
31
  })]
28
32
  })
29
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi-theme-lobehub",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -27,14 +27,15 @@
27
27
  "dependencies": {
28
28
  "@floating-ui/react": "^0.27.16",
29
29
  "@giscus/react": "^3.1.0",
30
- "@lobehub/ui": "^3.1.0",
30
+ "@lobehub/ui": "^4.1.1",
31
31
  "ahooks": "^3.9.6",
32
32
  "animated-scroll-to": "^2.3.2",
33
- "antd-style": "^3.7.1",
33
+ "antd-style": "^4.0.0",
34
34
  "chalk": "^5.6.2",
35
35
  "fast-deep-equal": "^3.1.3",
36
36
  "lodash-es": "^4.17.22",
37
37
  "lucide-react": "^0.562.0",
38
+ "motion": "^12.23.26",
38
39
  "polished": "^4.3.1",
39
40
  "rc-footer": "^0.6.8",
40
41
  "react-layout-kit": "^2.0.1",