tango-ui-cw 1.0.10 → 1.2.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.
Files changed (36) hide show
  1. package/README.md +133 -126
  2. package/dist/component/CSSFab/index.d.ts +61 -55
  3. package/dist/component/CSSFab/useTangoStyle.d.ts +1 -1
  4. package/dist/component/TBanner/index.d.ts +53 -50
  5. package/dist/component/TButton/index.d.ts +109 -107
  6. package/dist/component/TCard/index.d.ts +40 -0
  7. package/dist/component/TColorPicker/index.d.ts +42 -41
  8. package/dist/component/TDate/index.d.ts +42 -41
  9. package/dist/component/TDatePicker/index.d.ts +54 -49
  10. package/dist/component/TDrawer/index.d.ts +59 -58
  11. package/dist/component/TInput/index.d.ts +111 -81
  12. package/dist/component/TLayout/index.d.ts +136 -133
  13. package/dist/component/TLine/index.d.ts +36 -33
  14. package/dist/component/TMark/index.d.ts +41 -38
  15. package/dist/component/TModal/index.d.ts +107 -52
  16. package/dist/component/TNotice/index.d.ts +47 -30
  17. package/dist/component/TSearch/index.d.ts +56 -42
  18. package/dist/component/TSpace/index.d.ts +60 -59
  19. package/dist/component/TTable/index.d.ts +117 -76
  20. package/dist/component/TTooltip/index.d.ts +34 -31
  21. package/dist/component/TUpload/index.d.ts +74 -45
  22. package/dist/component/index.d.ts +167 -146
  23. package/dist/index.cjs +26 -8
  24. package/dist/index.d.cts +18 -18
  25. package/dist/index.d.ts +18 -18
  26. package/dist/index.js +3334 -2305
  27. package/dist/providers/NoticeProvider/NoticeProvider.d.ts +43 -19
  28. package/dist/providers/TangoI18nProvider/TangoI18nProvider.d.ts +27 -27
  29. package/dist/providers/ThemeProvider/ThemeProvider.d.ts +21 -21
  30. package/dist/scripts/check-peers.js +82 -82
  31. package/dist/styles/base.css +383 -353
  32. package/dist/styles/global.css +383 -353
  33. package/dist/styles/style.css +1 -1
  34. package/dist/styles/theme.css +13 -13
  35. package/dist/styles/utilities.css +1 -1
  36. package/package.json +68 -68
@@ -1,58 +1,59 @@
1
- import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
2
- import type { SxValue } from "../CSSFab";
3
-
4
- export type DrawerType = "top" | "bottom" | "left" | "right";
5
-
6
- export type DrawerI18nKey = "title" | "okText" | "cancelText" | "closeAriaLabel" | (string & {});
7
-
8
- export type DrawerLocaleText = Partial<{
9
- title: string;
10
- okText: string;
11
- cancelText: string;
12
- closeAriaLabel: string;
13
- }>;
14
-
15
- export type DrawerFooterButton = {
16
- key: string;
17
- text: string;
18
- onClick: () => void;
19
- };
20
-
21
- export interface DrawerProps
22
- extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "style" | "className"> {
23
- /** 抽屉内容 */
24
- children?: ReactNode;
25
- /** 标题,优先级高于 i18n */
26
- title?: string;
27
- /** 确定按钮文案,优先级高于 i18n */
28
- okText?: string;
29
- /** 取消按钮文案,优先级高于 i18n */
30
- cancelText?: string;
31
- /** 是否打开 */
32
- open?: boolean;
33
- /** 关闭回调 */
34
- onClose?: () => void;
35
- /** 确定回调,若未传则默认调用 onClose */
36
- onOk?: () => void;
37
- /** 抽屉方向 */
38
- type?: DrawerType;
39
- /** 容器宽度(left/right 生效) */
40
- width?: string | number;
41
- /** 容器高度(top/bottom 生效) */
42
- height?: string | number;
43
- /** Style extension via CSSFab sx */
44
- sx?: SxValue;
45
- style?: CSSProperties;
46
- className?: string;
47
- /** 点击遮罩是否关闭 */
48
- maskClosable?: boolean;
49
- /** 自定义底部按钮,传入后替代默认的取消/确定 */
50
- footerButtons?: DrawerFooterButton[];
51
- /** 覆盖 locale 文案 */
52
- localeText?: DrawerLocaleText;
53
- }
54
-
55
- declare function Drawer(props: DrawerProps): JSX.Element;
56
-
57
- export { Drawer };
58
- export default Drawer;
1
+ import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
2
+ import type { SxValue } from "../CSSFab";
3
+
4
+ export type DrawerSlotNames = readonly ["overlay", "container", "header", "title", "closeBtn", "content", "footer"];
5
+ export type DrawerType = "top" | "bottom" | "left" | "right";
6
+
7
+ export type DrawerI18nKey = "title" | "okText" | "cancelText" | "closeAriaLabel" | (string & {});
8
+
9
+ export type DrawerLocaleText = Partial<{
10
+ title: string;
11
+ okText: string;
12
+ cancelText: string;
13
+ closeAriaLabel: string;
14
+ }>;
15
+
16
+ export type DrawerFooterButton = {
17
+ key: string;
18
+ text: string;
19
+ onClick: () => void;
20
+ };
21
+
22
+ export interface DrawerProps
23
+ extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "style" | "className"> {
24
+ /** 抽屉内容 */
25
+ children?: ReactNode;
26
+ /** 标题,优先级高于 i18n */
27
+ title?: string;
28
+ /** 确定按钮文案,优先级高于 i18n */
29
+ okText?: string;
30
+ /** 取消按钮文案,优先级高于 i18n */
31
+ cancelText?: string;
32
+ /** 是否打开 */
33
+ open?: boolean;
34
+ /** 关闭回调 */
35
+ onClose?: () => void;
36
+ /** 确定回调,若未传则默认调用 onClose */
37
+ onOk?: () => void;
38
+ /** 抽屉方向 */
39
+ type?: DrawerType;
40
+ /** 容器宽度(left/right 生效) */
41
+ width?: string | number;
42
+ /** 容器高度(top/bottom 生效) */
43
+ height?: string | number;
44
+ /** Style extension via CSSFab sx */
45
+ sx?: SxValue;
46
+ style?: CSSProperties;
47
+ className?: string;
48
+ /** 点击遮罩是否关闭 */
49
+ maskClosable?: boolean;
50
+ /** 自定义底部按钮,传入后替代默认的取消/确定 */
51
+ footerButtons?: DrawerFooterButton[];
52
+ /** 覆盖 locale 文案 */
53
+ localeText?: DrawerLocaleText;
54
+ }
55
+
56
+ declare function Drawer(props: DrawerProps): JSX.Element;
57
+
58
+ export { Drawer };
59
+ export default Drawer;
@@ -1,81 +1,111 @@
1
- import type { CSSProperties, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
2
- import type { SxValue } from "../CSSFab";
3
-
4
- export type InputType = "default" | "textarea" | "password";
5
- export type InputSize = "small" | "medium" | "large" | "huge";
6
- export type InputStatus = "default" | "error";
7
-
8
- export interface InputProps
9
- extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "style" | "className" | "size" | "type" | "onChange"> {
10
- /** 输入类型 */
11
- type?: InputType;
12
- /** 尺寸 */
13
- size?: InputSize;
14
- /** 校验状态 */
15
- status?: InputStatus;
16
- /** Style extension via CSSFab sx */
17
- sx?: SxValue;
18
- style?: CSSProperties;
19
- className?: string;
20
- /** 点击事件 */
21
- onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
22
- /** 值变化回调,参数为当前输入值 */
23
- onChange?: (value: string) => void;
24
- /** 受控值 */
25
- value?: string;
26
- /** 非受控默认值 */
27
- defaultValue?: string;
28
- /** 是否禁用 */
29
- disabled?: boolean;
30
- /** 占位文案 */
31
- placeholder?: string;
32
- /** 最大字符数 */
33
- maxlength?: number;
34
- }
35
-
36
- declare function Input(props: InputProps): JSX.Element;
37
-
38
- // antd 风格:Input.MaterialInput / const { MaterialInput } = Input
39
- interface InputNamespace {
40
- (props: InputProps): JSX.Element;
41
- MaterialInput: typeof MaterialInput;
42
- }
43
-
44
- declare const InputWithType: InputNamespace;
45
- export { InputWithType as Input };
46
- export default Input;
47
-
48
- // MaterialInput 类型
49
- export type MaterialInputSize = "small" | "medium" | "large" | "huge";
50
-
51
- export interface MaterialInputLocaleText {
52
- label?: string;
53
- }
54
-
55
- export interface MaterialInputProps
56
- extends Omit<InputHTMLAttributes<HTMLInputElement>, "style" | "className" | "size" | "onChange" | "type"> {
57
- /** 浮动标签文案 */
58
- label?: string;
59
- /** 原生 input type */
60
- type?: string;
61
- /** 尺寸 */
62
- size?: MaterialInputSize;
63
- /** Style extension via CSSFab sx */
64
- sx?: SxValue;
65
- style?: CSSProperties;
66
- className?: string;
67
- /** 值变化回调,参数为当前输入值 */
68
- onChange?: (value: string) => void;
69
- /** 受控值 */
70
- value?: string;
71
- /** 非受控默认值 */
72
- defaultValue?: string;
73
- /** 是否禁用 */
74
- disabled?: boolean;
75
- /** 覆盖标签文案 */
76
- localeText?: MaterialInputLocaleText;
77
- }
78
-
79
- declare function MaterialInput(props: MaterialInputProps): JSX.Element;
80
-
81
- export { MaterialInput };
1
+ import type { CSSProperties, InputHTMLAttributes, ReactNode, TextareaHTMLAttributes } from "react";
2
+ import type { SxValue } from "../CSSFab";
3
+
4
+ export type InputSlotNames = readonly ["root", "input", "prefix", "suffix", "clearIcon"];
5
+ export type InputType = "default" | "textarea" | "password";
6
+ export type InputSize = "small" | "medium" | "large" | "huge";
7
+ export type InputStatus = "default" | "error";
8
+
9
+ // added by clayw on 20260624: Input localeText 类型
10
+ export type InputLocaleText = Partial<{
11
+ clearAriaLabel: string;
12
+ countTemplate: string;
13
+ }>;
14
+
15
+ export interface InputProps
16
+ extends Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, "style" | "className" | "size" | "type" | "onChange"> {
17
+ /** 输入类型 */
18
+ type?: InputType;
19
+ /** 尺寸 */
20
+ size?: InputSize;
21
+ /** 校验状态 */
22
+ status?: InputStatus;
23
+ /** Style extension via CSSFab sx */
24
+ sx?: SxValue;
25
+ style?: CSSProperties;
26
+ className?: string;
27
+ /** 点击事件 */
28
+ onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
29
+ /** 值变化回调,参数为当前输入值 */
30
+ onChange?: (value: string) => void;
31
+ /** 受控值 */
32
+ value?: string;
33
+ /** 非受控默认值 */
34
+ defaultValue?: string;
35
+ /** 是否禁用 */
36
+ disabled?: boolean;
37
+ /** 占位文案 */
38
+ placeholder?: string;
39
+ /** 最大字符数 */
40
+ maxLength?: number;
41
+ /** 前缀图标/文字,位于输入框内左侧 added by clayw on 20260624 */
42
+ prefix?: ReactNode;
43
+ /** 后缀图标/文字,位于输入框内右侧 added by clayw on 20260624 */
44
+ suffix?: ReactNode;
45
+ /** 是否显示清除按钮,默认 true,值为空时隐藏图标 added by clayw on 20260624 */
46
+ allowClear?: boolean;
47
+ /** 是否显示字数统计,默认 false,支持 i18n added by clayw on 20260624 */
48
+ showCount?: boolean;
49
+ /** 覆盖内置文案 added by clayw on 20260624 */
50
+ localeText?: InputLocaleText;
51
+ }
52
+
53
+ declare function Input(props: InputProps): JSX.Element;
54
+
55
+ // antd 风格:Input.MaterialInput / const { MaterialInput } = Input
56
+ interface InputNamespace {
57
+ (props: InputProps): JSX.Element;
58
+ MaterialInput: typeof MaterialInput;
59
+ }
60
+
61
+ declare const InputWithType: InputNamespace;
62
+ export { InputWithType as Input };
63
+ export default Input;
64
+
65
+ // MaterialInput 类型
66
+ export type MaterialInputSlotNames = readonly ["root", "input", "label", "prefix", "suffix", "clearIcon"];
67
+ export type MaterialInputSize = "small" | "medium" | "large" | "huge";
68
+
69
+ export type MaterialInputLocaleText = Partial<{
70
+ label?: string;
71
+ clearAriaLabel?: string;
72
+ countTemplate?: string;
73
+ }>;
74
+
75
+ export interface MaterialInputProps
76
+ extends Omit<InputHTMLAttributes<HTMLInputElement>, "style" | "className" | "size" | "onChange" | "type"> {
77
+ /** 浮动标签文案 */
78
+ label?: string;
79
+ /** 原生 input type */
80
+ type?: string;
81
+ /** 尺寸 */
82
+ size?: MaterialInputSize;
83
+ /** Style extension via CSSFab sx */
84
+ sx?: SxValue;
85
+ style?: CSSProperties;
86
+ className?: string;
87
+ /** 值变化回调,参数为当前输入值 */
88
+ onChange?: (value: string) => void;
89
+ /** 受控值 */
90
+ value?: string;
91
+ /** 非受控默认值 */
92
+ defaultValue?: string;
93
+ /** 是否禁用 */
94
+ disabled?: boolean;
95
+ /** 覆盖标签文案 */
96
+ localeText?: MaterialInputLocaleText;
97
+ /** 前缀图标/文字 added by clayw on 20260624 */
98
+ prefix?: ReactNode;
99
+ /** 后缀图标/文字 added by clayw on 20260624 */
100
+ suffix?: ReactNode;
101
+ /** 是否显示清除按钮,默认 true added by clayw on 20260624 */
102
+ allowClear?: boolean;
103
+ /** 是否显示字数统计,默认 false added by clayw on 20260624 */
104
+ showCount?: boolean;
105
+ /** 最大字符数 added by clayw on 20260624 */
106
+ maxLength?: number;
107
+ }
108
+
109
+ declare function MaterialInput(props: MaterialInputProps): JSX.Element;
110
+
111
+ export { MaterialInput };
@@ -1,133 +1,136 @@
1
- import type {
2
- CSSProperties,
3
- HTMLAttributes,
4
- ReactNode,
5
- Ref,
6
- } from "react";
7
-
8
- /** sx 值类型(引用自 CSSFab) */
9
- export type SxValue =
10
- | string
11
- | { tw?: string; className?: string; css?: CSSProperties; style?: CSSProperties }
12
- | Record<string, unknown>;
13
-
14
- /** Layout 主容器 Props */
15
- export interface LayoutProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
16
- /** 是否包含侧边栏(不传则自动检测 Sider 子组件) */
17
- hasSider?: boolean;
18
- /** 样式扩展 */
19
- sx?: SxValue;
20
- /** 行内样式 */
21
- style?: CSSProperties;
22
- /** 额外 CSS 类名 */
23
- className?: string;
24
- /** 子元素 */
25
- children?: ReactNode;
26
- /** ref 转发 */
27
- ref?: Ref<HTMLElement>;
28
- }
29
-
30
- /** Header Props */
31
- export interface LayoutHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
32
- /** 样式扩展 */
33
- sx?: SxValue;
34
- /** 行内样式 */
35
- style?: CSSProperties;
36
- /** 额外 CSS 类名 */
37
- className?: string;
38
- /** 子元素 */
39
- children?: ReactNode;
40
- /** ref 转发 */
41
- ref?: Ref<HTMLElement>;
42
- }
43
-
44
- /** Footer Props */
45
- export interface LayoutFooterProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
46
- /** 样式扩展 */
47
- sx?: SxValue;
48
- /** 行内样式 */
49
- style?: CSSProperties;
50
- /** 额外 CSS 类名 */
51
- className?: string;
52
- /** 子元素 */
53
- children?: ReactNode;
54
- /** ref 转发 */
55
- ref?: Ref<HTMLElement>;
56
- }
57
-
58
- /** Sider Props */
59
- export interface LayoutSiderProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
60
- /** 侧边栏宽度,默认取 --layout-sider-width */
61
- width?: string | number;
62
- /** 样式扩展 */
63
- sx?: SxValue;
64
- /** 行内样式 */
65
- style?: CSSProperties;
66
- /** 额外 CSS 类名 */
67
- className?: string;
68
- /** 子元素 */
69
- children?: ReactNode;
70
- /** ref 转发 */
71
- ref?: Ref<HTMLElement>;
72
- }
73
-
74
- /** Content Props */
75
- export interface LayoutContentProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
76
- /** 样式扩展 */
77
- sx?: SxValue;
78
- /** 行内样式 */
79
- style?: CSSProperties;
80
- /** 额外 CSS 类名 */
81
- className?: string;
82
- /** 子元素 */
83
- children?: ReactNode;
84
- /** ref 转发 */
85
- ref?: Ref<HTMLElement>;
86
- }
87
-
88
- /** Toc Props(右侧目录导航) */
89
- export interface LayoutTocProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
90
- /** 目录导航宽度,默认取 --layout-toc-width */
91
- width?: string | number;
92
- /** 样式扩展 */
93
- sx?: SxValue;
94
- /** 行内样式 */
95
- style?: CSSProperties;
96
- /** 额外 CSS 类名 */
97
- className?: string;
98
- /** 子元素 */
99
- children?: ReactNode;
100
- /** ref 转发 */
101
- ref?: Ref<HTMLElement>;
102
- }
103
-
104
- /** Layout 复合组件类型 */
105
- interface LayoutComponent
106
- extends React.ForwardRefExoticComponent<
107
- LayoutProps & React.RefAttributes<HTMLElement>
108
- > {
109
- Header: React.ForwardRefExoticComponent<
110
- LayoutHeaderProps & React.RefAttributes<HTMLElement>
111
- >;
112
- Footer: React.ForwardRefExoticComponent<
113
- LayoutFooterProps & React.RefAttributes<HTMLElement>
114
- >;
115
- Sider: React.ForwardRefExoticComponent<
116
- LayoutSiderProps & React.RefAttributes<HTMLElement>
117
- >;
118
- Content: React.ForwardRefExoticComponent<
119
- LayoutContentProps & React.RefAttributes<HTMLElement>
120
- >;
121
- Toc: React.ForwardRefExoticComponent<
122
- LayoutTocProps & React.RefAttributes<HTMLElement>
123
- >;
124
- }
125
-
126
- export declare const Header: LayoutComponent["Header"];
127
- export declare const Footer: LayoutComponent["Footer"];
128
- export declare const Sider: LayoutComponent["Sider"];
129
- export declare const Content: LayoutComponent["Content"];
130
- export declare const Toc: LayoutComponent["Toc"];
131
-
132
- declare const Layout: LayoutComponent;
133
- export default Layout;
1
+ import type {
2
+ CSSProperties,
3
+ HTMLAttributes,
4
+ ReactNode,
5
+ Ref,
6
+ } from "react";
7
+
8
+ /** Layout sx slot 名列表 */
9
+ export type LayoutSlotNames = readonly ["root"];
10
+
11
+ /** sx 值类型(引用自 CSSFab) */
12
+ export type SxValue =
13
+ | string
14
+ | { tw?: string; className?: string; css?: CSSProperties; style?: CSSProperties }
15
+ | Record<string, unknown>;
16
+
17
+ /** Layout 主容器 Props */
18
+ export interface LayoutProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
19
+ /** 是否包含侧边栏(不传则自动检测 Sider 子组件) */
20
+ hasSider?: boolean;
21
+ /** 样式扩展 */
22
+ sx?: SxValue;
23
+ /** 行内样式 */
24
+ style?: CSSProperties;
25
+ /** 额外 CSS 类名 */
26
+ className?: string;
27
+ /** 子元素 */
28
+ children?: ReactNode;
29
+ /** ref 转发 */
30
+ ref?: Ref<HTMLElement>;
31
+ }
32
+
33
+ /** Header Props */
34
+ export interface LayoutHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
35
+ /** 样式扩展 */
36
+ sx?: SxValue;
37
+ /** 行内样式 */
38
+ style?: CSSProperties;
39
+ /** 额外 CSS 类名 */
40
+ className?: string;
41
+ /** 子元素 */
42
+ children?: ReactNode;
43
+ /** ref 转发 */
44
+ ref?: Ref<HTMLElement>;
45
+ }
46
+
47
+ /** Footer Props */
48
+ export interface LayoutFooterProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
49
+ /** 样式扩展 */
50
+ sx?: SxValue;
51
+ /** 行内样式 */
52
+ style?: CSSProperties;
53
+ /** 额外 CSS 类名 */
54
+ className?: string;
55
+ /** 子元素 */
56
+ children?: ReactNode;
57
+ /** ref 转发 */
58
+ ref?: Ref<HTMLElement>;
59
+ }
60
+
61
+ /** Sider Props */
62
+ export interface LayoutSiderProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
63
+ /** 侧边栏宽度,默认取 --layout-sider-width */
64
+ width?: string | number;
65
+ /** 样式扩展 */
66
+ sx?: SxValue;
67
+ /** 行内样式 */
68
+ style?: CSSProperties;
69
+ /** 额外 CSS 类名 */
70
+ className?: string;
71
+ /** 子元素 */
72
+ children?: ReactNode;
73
+ /** ref 转发 */
74
+ ref?: Ref<HTMLElement>;
75
+ }
76
+
77
+ /** Content Props */
78
+ export interface LayoutContentProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
79
+ /** 样式扩展 */
80
+ sx?: SxValue;
81
+ /** 行内样式 */
82
+ style?: CSSProperties;
83
+ /** 额外 CSS 类名 */
84
+ className?: string;
85
+ /** 子元素 */
86
+ children?: ReactNode;
87
+ /** ref 转发 */
88
+ ref?: Ref<HTMLElement>;
89
+ }
90
+
91
+ /** Toc Props(右侧目录导航) */
92
+ export interface LayoutTocProps extends Omit<HTMLAttributes<HTMLElement>, "style"> {
93
+ /** 目录导航宽度,默认取 --layout-toc-width */
94
+ width?: string | number;
95
+ /** 样式扩展 */
96
+ sx?: SxValue;
97
+ /** 行内样式 */
98
+ style?: CSSProperties;
99
+ /** 额外 CSS 类名 */
100
+ className?: string;
101
+ /** 子元素 */
102
+ children?: ReactNode;
103
+ /** ref 转发 */
104
+ ref?: Ref<HTMLElement>;
105
+ }
106
+
107
+ /** Layout 复合组件类型 */
108
+ interface LayoutComponent
109
+ extends React.ForwardRefExoticComponent<
110
+ LayoutProps & React.RefAttributes<HTMLElement>
111
+ > {
112
+ Header: React.ForwardRefExoticComponent<
113
+ LayoutHeaderProps & React.RefAttributes<HTMLElement>
114
+ >;
115
+ Footer: React.ForwardRefExoticComponent<
116
+ LayoutFooterProps & React.RefAttributes<HTMLElement>
117
+ >;
118
+ Sider: React.ForwardRefExoticComponent<
119
+ LayoutSiderProps & React.RefAttributes<HTMLElement>
120
+ >;
121
+ Content: React.ForwardRefExoticComponent<
122
+ LayoutContentProps & React.RefAttributes<HTMLElement>
123
+ >;
124
+ Toc: React.ForwardRefExoticComponent<
125
+ LayoutTocProps & React.RefAttributes<HTMLElement>
126
+ >;
127
+ }
128
+
129
+ export declare const Header: LayoutComponent["Header"];
130
+ export declare const Footer: LayoutComponent["Footer"];
131
+ export declare const Sider: LayoutComponent["Sider"];
132
+ export declare const Content: LayoutComponent["Content"];
133
+ export declare const Toc: LayoutComponent["Toc"];
134
+
135
+ declare const Layout: LayoutComponent;
136
+ export default Layout;