@ttoss/layouts 0.11.20 → 0.11.21
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/index.cjs +2244 -0
- package/dist/index.d.cts +98 -0
- package/dist/index.d.mts +98 -0
- package/dist/index.mjs +2210 -0
- package/package.json +11 -11
- package/dist/esm/index.js +0 -2641
- package/dist/index.d.ts +0 -64
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
|
|
2
|
+
import { BoxProps, BoxProps as BoxProps$1, StackProps } from "@ttoss/ui";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/MainHeader.d.ts
|
|
6
|
+
type MainHeaderProps = BoxProps & {
|
|
7
|
+
containerSx?: BoxProps['sx'];
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/MainBody.d.ts
|
|
11
|
+
type MainBodyProps = BoxProps & {
|
|
12
|
+
containerSx?: BoxProps['sx'];
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/MainFooter.d.ts
|
|
16
|
+
type MainFooterProps = BoxProps & {
|
|
17
|
+
containerSx?: BoxProps['sx'];
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/Layout.d.ts
|
|
21
|
+
declare const Layout: {
|
|
22
|
+
({
|
|
23
|
+
children
|
|
24
|
+
}: React.PropsWithChildren<StackProps>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
Header: {
|
|
26
|
+
({
|
|
27
|
+
showSidebarButton,
|
|
28
|
+
sidebarSlot,
|
|
29
|
+
children,
|
|
30
|
+
...boxProps
|
|
31
|
+
}: BoxProps$1 & {
|
|
32
|
+
showSidebarButton?: boolean;
|
|
33
|
+
sidebarSlot?: React.ReactNode;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
Sidebar: {
|
|
38
|
+
({
|
|
39
|
+
drawerSlot,
|
|
40
|
+
showSidebarButtonInDrawer,
|
|
41
|
+
children,
|
|
42
|
+
...boxProps
|
|
43
|
+
}: BoxProps$1 & {
|
|
44
|
+
showSidebarButtonInDrawer?: boolean;
|
|
45
|
+
drawerSlot?: React.ReactNode;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
Main: {
|
|
50
|
+
(props: BoxProps$1): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
Header: {
|
|
53
|
+
({
|
|
54
|
+
containerSx,
|
|
55
|
+
...props
|
|
56
|
+
}: MainHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
Body: {
|
|
60
|
+
({
|
|
61
|
+
containerSx,
|
|
62
|
+
...props
|
|
63
|
+
}: MainBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
};
|
|
66
|
+
Footer: {
|
|
67
|
+
({
|
|
68
|
+
containerSx,
|
|
69
|
+
...props
|
|
70
|
+
}: MainFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
Footer: {
|
|
75
|
+
(props: BoxProps$1): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
Container: import("react").ForwardRefExoticComponent<BoxProps$1 & import("react").RefAttributes<HTMLDivElement>>;
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/SidebarCollapseLayout.d.ts
|
|
82
|
+
declare const SidebarCollapseLayout: ({
|
|
83
|
+
children,
|
|
84
|
+
...props
|
|
85
|
+
}: React.PropsWithChildren<StackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/StackedLayout.d.ts
|
|
88
|
+
declare const StackedLayout: ({
|
|
89
|
+
children,
|
|
90
|
+
...props
|
|
91
|
+
}: React$1.PropsWithChildren<StackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/useIsDesktop.d.ts
|
|
94
|
+
declare const useIsDesktop: () => {
|
|
95
|
+
isDesktop: boolean;
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { Layout, SidebarCollapseLayout, StackedLayout, useIsDesktop };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
|
|
2
|
+
import { BoxProps, BoxProps as BoxProps$1, StackProps } from "@ttoss/ui";
|
|
3
|
+
import * as React$2 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/MainHeader.d.ts
|
|
6
|
+
type MainHeaderProps = BoxProps & {
|
|
7
|
+
containerSx?: BoxProps['sx'];
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/MainBody.d.ts
|
|
11
|
+
type MainBodyProps = BoxProps & {
|
|
12
|
+
containerSx?: BoxProps['sx'];
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/MainFooter.d.ts
|
|
16
|
+
type MainFooterProps = BoxProps & {
|
|
17
|
+
containerSx?: BoxProps['sx'];
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/Layout.d.ts
|
|
21
|
+
declare const Layout: {
|
|
22
|
+
({
|
|
23
|
+
children
|
|
24
|
+
}: React.PropsWithChildren<StackProps>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
Header: {
|
|
26
|
+
({
|
|
27
|
+
showSidebarButton,
|
|
28
|
+
sidebarSlot,
|
|
29
|
+
children,
|
|
30
|
+
...boxProps
|
|
31
|
+
}: BoxProps$1 & {
|
|
32
|
+
showSidebarButton?: boolean;
|
|
33
|
+
sidebarSlot?: React.ReactNode;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
Sidebar: {
|
|
38
|
+
({
|
|
39
|
+
drawerSlot,
|
|
40
|
+
showSidebarButtonInDrawer,
|
|
41
|
+
children,
|
|
42
|
+
...boxProps
|
|
43
|
+
}: BoxProps$1 & {
|
|
44
|
+
showSidebarButtonInDrawer?: boolean;
|
|
45
|
+
drawerSlot?: React.ReactNode;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
Main: {
|
|
50
|
+
(props: BoxProps$1): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
Header: {
|
|
53
|
+
({
|
|
54
|
+
containerSx,
|
|
55
|
+
...props
|
|
56
|
+
}: MainHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
Body: {
|
|
60
|
+
({
|
|
61
|
+
containerSx,
|
|
62
|
+
...props
|
|
63
|
+
}: MainBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
};
|
|
66
|
+
Footer: {
|
|
67
|
+
({
|
|
68
|
+
containerSx,
|
|
69
|
+
...props
|
|
70
|
+
}: MainFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
Footer: {
|
|
75
|
+
(props: BoxProps$1): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
Container: import("react").ForwardRefExoticComponent<BoxProps$1 & import("react").RefAttributes<HTMLDivElement>>;
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/SidebarCollapseLayout.d.ts
|
|
82
|
+
declare const SidebarCollapseLayout: ({
|
|
83
|
+
children,
|
|
84
|
+
...props
|
|
85
|
+
}: React.PropsWithChildren<StackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/StackedLayout.d.ts
|
|
88
|
+
declare const StackedLayout: ({
|
|
89
|
+
children,
|
|
90
|
+
...props
|
|
91
|
+
}: React$2.PropsWithChildren<StackProps>) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/useIsDesktop.d.ts
|
|
94
|
+
declare const useIsDesktop: () => {
|
|
95
|
+
isDesktop: boolean;
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { Layout, SidebarCollapseLayout, StackedLayout, useIsDesktop };
|