@ahooks.js/dumi-theme-antd 0.1.6 → 0.1.8

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.
Files changed (66) hide show
  1. package/README.md +7 -1
  2. package/dist/builtins/Alert/index.d.ts +6 -6
  3. package/dist/builtins/BashOSPlatform/index.d.ts +8 -8
  4. package/dist/builtins/BashOSPlatform/linux.d.ts +7 -7
  5. package/dist/builtins/BashOSPlatform/macos.d.ts +7 -7
  6. package/dist/builtins/BashOSPlatform/windows.d.ts +7 -7
  7. package/dist/builtins/HomeBaseLayout/components/Features/index.d.ts +3 -3
  8. package/dist/builtins/HomeBaseLayout/components/Group.d.ts +19 -19
  9. package/dist/builtins/HomeBaseLayout/index.d.ts +3 -3
  10. package/dist/builtins/ImagePreview/index.d.ts +3 -3
  11. package/dist/builtins/InstallDependencies/icons.d.ts +10 -10
  12. package/dist/builtins/InstallDependencies/index.d.ts +9 -9
  13. package/dist/common/CommonHelmet.d.ts +2 -2
  14. package/dist/common/EditLink.d.ts +2 -2
  15. package/dist/common/GlobalStyles.d.ts +2 -2
  16. package/dist/common/LastUpdated.d.ts +5 -5
  17. package/dist/common/Loading/index.d.ts +3 -3
  18. package/dist/common/PrevAndNext.d.ts +3 -3
  19. package/dist/common/ThemeSwitch/ThemeIcon.d.ts +5 -5
  20. package/dist/common/ThemeSwitch/index.d.ts +8 -8
  21. package/dist/common/styles/Common.d.ts +2 -2
  22. package/dist/common/styles/DumiDefaultStyleOverride.d.ts +2 -2
  23. package/dist/common/styles/HeadingAnchor.d.ts +2 -2
  24. package/dist/common/styles/Highlight.d.ts +2 -2
  25. package/dist/common/styles/Markdown.d.ts +2 -2
  26. package/dist/common/styles/PreviewImage.d.ts +2 -2
  27. package/dist/common/styles/Reset.d.ts +2 -2
  28. package/dist/common/styles/Responsive.d.ts +2 -2
  29. package/dist/common/styles/SearchBar.d.ts +2 -2
  30. package/dist/common/styles/index.d.ts +9 -9
  31. package/dist/hooks/useAdditionalThemeConfig.d.ts +3 -3
  32. package/dist/hooks/useAffixTop.d.ts +2 -2
  33. package/dist/hooks/useLocaleValue.d.ts +1 -1
  34. package/dist/hooks/useMenu.d.ts +8 -8
  35. package/dist/hooks/useSiteToken.d.ts +21 -21
  36. package/dist/hooks/uselocale.d.ts +5 -5
  37. package/dist/icons/LTRIcon.d.ts +5 -5
  38. package/dist/icons/RTLIcon.d.ts +5 -5
  39. package/dist/index.d.ts +11 -11
  40. package/dist/layouts/DocLayout/index.d.ts +4 -4
  41. package/dist/layouts/GlobalLayout.d.ts +3 -3
  42. package/dist/layouts/HomePageLayout/index.d.ts +3 -3
  43. package/dist/layouts/SidebarLayout/index.d.ts +3 -3
  44. package/dist/plugin/index.d.ts +3 -3
  45. package/dist/plugin.d.ts +4 -4
  46. package/dist/slots/Content/index.d.ts +5 -5
  47. package/dist/slots/Footer/index.d.ts +3 -3
  48. package/dist/slots/Header/{HeaderExtral.d.ts → HeaderExtra.d.ts} +3 -3
  49. package/dist/slots/Header/HeaderExtra.js +34 -0
  50. package/dist/slots/Header/Logo.d.ts +2 -2
  51. package/dist/slots/Header/More.d.ts +6 -6
  52. package/dist/slots/Header/Navigation.d.ts +6 -6
  53. package/dist/slots/Header/SwitchBtn.d.ts +11 -11
  54. package/dist/slots/Header/index.d.ts +4 -4
  55. package/dist/slots/Header/index.js +3 -3
  56. package/dist/slots/LangSwitch/index.d.ts +3 -3
  57. package/dist/slots/NotFound/index.d.ts +9 -9
  58. package/dist/slots/RtlSwitch/index.d.ts +3 -3
  59. package/dist/slots/Sidebar/index.d.ts +4 -4
  60. package/dist/slots/Sidebar/index.js +9 -14
  61. package/dist/slots/SiteContext.d.ts +11 -10
  62. package/dist/static/style.d.ts +1 -1
  63. package/dist/types.d.ts +105 -105
  64. package/dist/utils.d.ts +10 -10
  65. package/package.json +13 -6
  66. package/dist/slots/Header/HeaderExtral.js +0 -34
package/README.md CHANGED
@@ -28,7 +28,7 @@ $ pnpm i @ahooks.js/dumi-theme-antd -D
28
28
  # install deps
29
29
  pnpm install
30
30
  # start dumi server
31
- pnpm run docs
31
+ pnpm run dev
32
32
  ```
33
33
 
34
34
  Thank you to all the people who already contributed to `@ahooks.js/dumi-theme-antd` !
@@ -36,7 +36,13 @@ Thank you to all the people who already contributed to `@ahooks.js/dumi-theme-an
36
36
  ## Publish
37
37
 
38
38
  ```bash
39
+ # step 1
39
40
  npm login --registry=https://registry.npmjs.org/
41
+
42
+ # step 2
43
+ # update version in package.json and commit
44
+
45
+ # step 3 (will build before publish)
40
46
  npm publish
41
47
  ```
42
48
 
@@ -1,6 +1,6 @@
1
- import { AlertProps } from 'antd';
2
- import { FC, ReactNode } from 'react';
3
- declare const Alert: FC<AlertProps & {
4
- children?: ReactNode;
5
- }>;
6
- export default Alert;
1
+ import { AlertProps } from 'antd';
2
+ import { FC, ReactNode } from 'react';
3
+ declare const Alert: FC<AlertProps & {
4
+ children?: ReactNode;
5
+ }>;
6
+ export default Alert;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- interface BashOSPlatformProps {
3
- windows?: string;
4
- linux?: string;
5
- macos?: string;
6
- }
7
- declare const BashOSPlatform: React.FC<BashOSPlatformProps>;
8
- export default BashOSPlatform;
1
+ import React from 'react';
2
+ interface BashOSPlatformProps {
3
+ windows?: string;
4
+ linux?: string;
5
+ macos?: string;
6
+ }
7
+ declare const BashOSPlatform: React.FC<BashOSPlatformProps>;
8
+ export default BashOSPlatform;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface IconProps {
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- declare const LinuxIcon: React.FC<IconProps>;
7
- export default LinuxIcon;
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const LinuxIcon: React.FC<IconProps>;
7
+ export default LinuxIcon;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface IconProps {
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- declare const MacOSIcon: React.FC<IconProps>;
7
- export default MacOSIcon;
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const MacOSIcon: React.FC<IconProps>;
7
+ export default MacOSIcon;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface IconProps {
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- declare const WindowsIcon: React.FC<IconProps>;
7
- export default WindowsIcon;
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const WindowsIcon: React.FC<IconProps>;
7
+ export default WindowsIcon;
@@ -1,3 +1,3 @@
1
- import { type FC } from 'react';
2
- declare const Features: FC;
3
- export default Features;
1
+ import { type FC } from 'react';
2
+ declare const Features: FC;
3
+ export default Features;
@@ -1,19 +1,19 @@
1
- import * as React from 'react';
2
- export interface GroupMaskProps {
3
- style?: React.CSSProperties;
4
- children?: React.ReactNode;
5
- disabled?: boolean;
6
- }
7
- export declare function GroupMask({ children, style, disabled }: GroupMaskProps): import("@emotion/react/jsx-runtime").JSX.Element;
8
- export interface GroupProps {
9
- id?: string;
10
- title?: React.ReactNode;
11
- titleColor?: string;
12
- description?: React.ReactNode;
13
- children?: React.ReactNode;
14
- background?: string;
15
- /** 是否不使用两侧 margin */
16
- collapse?: boolean;
17
- decoration?: React.ReactNode;
18
- }
19
- export default function Group(props: GroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import * as React from 'react';
2
+ export interface GroupMaskProps {
3
+ style?: React.CSSProperties;
4
+ children?: React.ReactNode;
5
+ disabled?: boolean;
6
+ }
7
+ export declare function GroupMask({ children, style, disabled }: GroupMaskProps): import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export interface GroupProps {
9
+ id?: string;
10
+ title?: React.ReactNode;
11
+ titleColor?: string;
12
+ description?: React.ReactNode;
13
+ children?: React.ReactNode;
14
+ background?: string;
15
+ /** 是否不使用两侧 margin */
16
+ collapse?: boolean;
17
+ decoration?: React.ReactNode;
18
+ }
19
+ export default function Group(props: GroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { type FC } from 'react';
2
- declare const HomeBaseLayout: FC;
3
- export default HomeBaseLayout;
1
+ import { type FC } from 'react';
2
+ declare const HomeBaseLayout: FC;
3
+ export default HomeBaseLayout;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const ImagePreview: React.FC;
3
- export default ImagePreview;
1
+ import React from 'react';
2
+ declare const ImagePreview: React.FC;
3
+ export default ImagePreview;
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- interface IconProps {
3
- className?: string;
4
- style?: React.CSSProperties;
5
- }
6
- export declare const NpmIcon: React.FC<IconProps>;
7
- export declare const YarnIcon: React.FC<IconProps>;
8
- export declare const PnpmIcon: React.FC<IconProps>;
9
- export declare const BunIcon: React.FC<IconProps>;
10
- export {};
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare const NpmIcon: React.FC<IconProps>;
7
+ export declare const YarnIcon: React.FC<IconProps>;
8
+ export declare const PnpmIcon: React.FC<IconProps>;
9
+ export declare const BunIcon: React.FC<IconProps>;
10
+ export {};
@@ -1,9 +1,9 @@
1
- interface InstallProps {
2
- npm?: string;
3
- yarn?: string;
4
- pnpm?: string;
5
- bun?: string;
6
- [key: string]: string | undefined;
7
- }
8
- declare const InstallDependencies: (props: InstallProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
- export default InstallDependencies;
1
+ interface InstallProps {
2
+ npm?: string;
3
+ yarn?: string;
4
+ pnpm?: string;
5
+ bun?: string;
6
+ [key: string]: string | undefined;
7
+ }
8
+ declare const InstallDependencies: (props: InstallProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export default InstallDependencies;
@@ -1,2 +1,2 @@
1
- declare const CommonHelmet: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default CommonHelmet;
1
+ declare const CommonHelmet: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default CommonHelmet;
@@ -1,2 +1,2 @@
1
- declare const EditLink: () => any;
2
- export default EditLink;
1
+ declare const EditLink: () => any;
2
+ export default EditLink;
@@ -1,2 +1,2 @@
1
- declare const GlobalStyles: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default GlobalStyles;
1
+ declare const GlobalStyles: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default GlobalStyles;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- declare const LastUpdated: React.FC<{
3
- time?: number;
4
- }>;
5
- export default LastUpdated;
1
+ import React from 'react';
2
+ declare const LastUpdated: React.FC<{
3
+ time?: number;
4
+ }>;
5
+ export default LastUpdated;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const Loading: React.FC;
3
- export default Loading;
1
+ import React from 'react';
2
+ declare const Loading: React.FC;
3
+ export default Loading;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const PrevAndNext: React.FC;
3
- export default PrevAndNext;
1
+ import React from 'react';
2
+ declare const PrevAndNext: React.FC;
3
+ export default PrevAndNext;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- declare const ThemeIcon: React.FC<{
3
- className?: string;
4
- }>;
5
- export default ThemeIcon;
1
+ import React from 'react';
2
+ declare const ThemeIcon: React.FC<{
3
+ className?: string;
4
+ }>;
5
+ export default ThemeIcon;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- export declare type ThemeName = 'light' | 'dark' | 'compact';
3
- export declare type ThemeSwitchProps = {
4
- value?: ThemeName[];
5
- onChange: (value: ThemeName[]) => void;
6
- };
7
- declare const ThemeSwitch: React.FC<ThemeSwitchProps>;
8
- export default ThemeSwitch;
1
+ import React from 'react';
2
+ export declare type ThemeName = 'light' | 'dark' | 'compact';
3
+ export declare type ThemeSwitchProps = {
4
+ value?: ThemeName[];
5
+ onChange: (value: ThemeName[]) => void;
6
+ };
7
+ declare const ThemeSwitch: React.FC<ThemeSwitchProps>;
8
+ export default ThemeSwitch;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default _default;
1
+ declare const _default: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -1,9 +1,9 @@
1
- export { default as Common } from './Common';
2
- export { default as DumiDefaultStyleOverride } from './DumiDefaultStyleOverride';
3
- export { default as HeadingAnchor } from './HeadingAnchor';
4
- export { default as Highlight } from './Highlight';
5
- export { default as Markdown } from './Markdown';
6
- export { default as Reset } from './Reset';
7
- export { default as Responsive } from './Responsive';
8
- export { default as SearchBar } from './SearchBar';
9
- export { default as PreviewImage } from './PreviewImage';
1
+ export { default as Common } from './Common';
2
+ export { default as DumiDefaultStyleOverride } from './DumiDefaultStyleOverride';
3
+ export { default as HeadingAnchor } from './HeadingAnchor';
4
+ export { default as Highlight } from './Highlight';
5
+ export { default as Markdown } from './Markdown';
6
+ export { default as Reset } from './Reset';
7
+ export { default as Responsive } from './Responsive';
8
+ export { default as SearchBar } from './SearchBar';
9
+ export { default as PreviewImage } from './PreviewImage';
@@ -1,3 +1,3 @@
1
- import type { IAllThemeConfig } from '../types';
2
- declare const useAdditionalThemeConfig: () => IAllThemeConfig;
3
- export default useAdditionalThemeConfig;
1
+ import type { IAllThemeConfig } from '../types';
2
+ declare const useAdditionalThemeConfig: () => IAllThemeConfig;
3
+ export default useAdditionalThemeConfig;
@@ -1,2 +1,2 @@
1
- declare const useAffixTop: () => any;
2
- export default useAffixTop;
1
+ declare const useAffixTop: () => number;
2
+ export default useAffixTop;
@@ -1 +1 @@
1
- export default function useLocaleValue(key: string): any;
1
+ export default function useLocaleValue(key: string): any;
@@ -1,8 +1,8 @@
1
- import type { MenuProps } from 'antd';
2
- import type { ReactNode } from 'react';
3
- export declare type UseMenuOptions = {
4
- before?: ReactNode;
5
- after?: ReactNode;
6
- };
7
- declare const useMenu: (options?: UseMenuOptions) => [MenuProps['items'], string];
8
- export default useMenu;
1
+ import type { MenuProps } from 'antd';
2
+ import type { ReactNode } from 'react';
3
+ export declare type UseMenuOptions = {
4
+ before?: ReactNode;
5
+ after?: ReactNode;
6
+ };
7
+ declare const useMenu: (options?: UseMenuOptions) => [MenuProps['items'], string];
8
+ export default useMenu;
@@ -1,21 +1,21 @@
1
- import type { GlobalToken } from 'antd';
2
- import type { SiteContextProps } from '../slots/SiteContext';
3
- interface IUseSiteToken {
4
- token: GlobalToken & {
5
- headerHeight: number;
6
- menuItemBorder: number;
7
- mobileMaxWidth: number;
8
- siteMarkdownCodeBg: string;
9
- antCls: string;
10
- iconCls: string;
11
- marginFarXS: number;
12
- marginFarSM: number;
13
- marginFar: number;
14
- codeFamily: string;
15
- boxShadowCard: string;
16
- siteTheme: SiteContextProps['theme'];
17
- };
18
- siteCls: string;
19
- }
20
- declare const useSiteToken: () => IUseSiteToken;
21
- export default useSiteToken;
1
+ import type { GlobalToken } from 'antd';
2
+ import type { SiteContextProps } from '../slots/SiteContext';
3
+ interface IUseSiteToken {
4
+ token: GlobalToken & {
5
+ headerHeight: number;
6
+ menuItemBorder: number;
7
+ mobileMaxWidth: number;
8
+ siteMarkdownCodeBg: string;
9
+ antCls: string;
10
+ iconCls: string;
11
+ marginFarXS: number;
12
+ marginFarSM: number;
13
+ marginFar: number;
14
+ codeFamily: string;
15
+ boxShadowCard: string;
16
+ siteTheme: SiteContextProps['theme'];
17
+ };
18
+ siteCls: string;
19
+ }
20
+ declare const useSiteToken: () => IUseSiteToken;
21
+ export default useSiteToken;
@@ -1,5 +1,5 @@
1
- export interface LocaleMap<Key extends string> {
2
- cn: Record<Key, string>;
3
- en: Record<Key, string>;
4
- }
5
- export default function useLocale<Key extends string>(localeMap?: LocaleMap<Key>): [Record<Key, string>, 'cn' | 'en'];
1
+ export interface LocaleMap<Key extends string> {
2
+ cn: Record<Key, string>;
3
+ en: Record<Key, string>;
4
+ }
5
+ export default function useLocale<Key extends string>(localeMap?: LocaleMap<Key>): [Record<Key, string>, 'cn' | 'en'];
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- declare const LTRIcon: React.FC<{
3
- className?: string;
4
- }>;
5
- export default LTRIcon;
1
+ import React from 'react';
2
+ declare const LTRIcon: React.FC<{
3
+ className?: string;
4
+ }>;
5
+ export default LTRIcon;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- declare const RTLIcon: React.FC<{
3
- className?: string;
4
- }>;
5
- export default RTLIcon;
1
+ import React from 'react';
2
+ declare const RTLIcon: React.FC<{
3
+ className?: string;
4
+ }>;
5
+ export default RTLIcon;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import Footer from './slots/Footer';
2
- import type { IAllThemeConfig } from './types';
3
- import Loading from './common/Loading';
4
- import HomeBaseLayout from './builtins/HomeBaseLayout';
5
- /**
6
- * @description provider declaration of config files
7
- * @param {ThemeConfig} config theme config
8
- * @returns {ThemeConfig}
9
- */
10
- export declare function defineThemeConfig(config: IAllThemeConfig): IAllThemeConfig;
11
- export { Loading, Footer, HomeBaseLayout };
1
+ import Footer from './slots/Footer';
2
+ import type { IAllThemeConfig } from './types';
3
+ import Loading from './common/Loading';
4
+ import HomeBaseLayout from './builtins/HomeBaseLayout';
5
+ /**
6
+ * @description provider declaration of config files
7
+ * @param {ThemeConfig} config theme config
8
+ * @returns {ThemeConfig}
9
+ */
10
+ export declare function defineThemeConfig(config: IAllThemeConfig): IAllThemeConfig;
11
+ export { Loading, Footer, HomeBaseLayout };
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
2
- import '../../static/style';
3
- declare const DocLayout: FC;
4
- export default DocLayout;
1
+ import { type FC } from 'react';
2
+ import '../../static/style';
3
+ declare const DocLayout: FC;
4
+ export default DocLayout;
@@ -1,3 +1,3 @@
1
- import type { FC } from 'react';
2
- declare const GlobalLayout: FC;
3
- export default GlobalLayout;
1
+ import type { FC } from 'react';
2
+ declare const GlobalLayout: FC;
3
+ export default GlobalLayout;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const HomePageLayout: React.FC;
3
- export default HomePageLayout;
1
+ import React from 'react';
2
+ declare const HomePageLayout: React.FC;
3
+ export default HomePageLayout;
@@ -1,3 +1,3 @@
1
- import type { FC, PropsWithChildren } from 'react';
2
- declare const SidebarLayout: FC<PropsWithChildren>;
3
- export default SidebarLayout;
1
+ import type { FC, PropsWithChildren } from 'react';
2
+ declare const SidebarLayout: FC<PropsWithChildren>;
3
+ export default SidebarLayout;
@@ -1,3 +1,3 @@
1
- import type { IApi } from 'dumi';
2
- declare const _default: (api: IApi) => void;
3
- export default _default;
1
+ import type { IApi } from 'dumi';
2
+ declare const _default: (api: IApi) => void;
3
+ export default _default;
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IApi } from 'dumi';
2
- export declare const getHash: (str: string, length?: number) => string;
3
- declare const dumiThemeUmiPlugin: (api: IApi) => void;
4
- export default dumiThemeUmiPlugin;
1
+ import type { IApi } from 'dumi';
2
+ export declare const getHash: (str: string, length?: number) => string;
3
+ declare const dumiThemeUmiPlugin: (api: IApi) => void;
4
+ export default dumiThemeUmiPlugin;
@@ -1,5 +1,5 @@
1
- import type { FC, ReactNode } from 'react';
2
- declare const Content: FC<{
3
- children: ReactNode;
4
- }>;
5
- export default Content;
1
+ import type { FC, ReactNode } from 'react';
2
+ declare const Content: FC<{
3
+ children: ReactNode;
4
+ }>;
5
+ export default Content;
@@ -1,3 +1,3 @@
1
- import { type FC } from 'react';
2
- declare const Footer: FC;
3
- export default Footer;
1
+ import { type FC } from 'react';
2
+ declare const Footer: FC;
3
+ export default Footer;
@@ -1,3 +1,3 @@
1
- import { type FC } from 'react';
2
- declare const HeaderExtra: FC;
3
- export default HeaderExtra;
1
+ import { type FC } from 'react';
2
+ declare const HeaderExtra: FC;
3
+ export default HeaderExtra;