listpage-next 0.0.69 → 0.0.71
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/features/ChatClient/components/ClientContent/Content.d.ts +12 -0
- package/dist/features/ChatClient/components/ClientContent/Content.js +30 -0
- package/dist/features/ChatClient/components/ClientContent/Header.js +2 -0
- package/dist/features/ChatClient/components/ClientContent/index.d.ts +1 -0
- package/dist/features/ChatClient/components/ClientContent/index.js +10 -3
- package/dist/features/ChatClient/components/ClientContent/styles.d.ts +0 -1
- package/dist/features/ChatClient/components/ClientContent/styles.js +2 -6
- package/dist/features/ChatClient/components/Layout/ChatPage.js +1 -1
- package/dist/features/ChatClient/components/Logo/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
interface ContentProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
styles?: {
|
|
5
|
+
topPlaceholder?: CSSProperties;
|
|
6
|
+
bottomPlaceholder?: CSSProperties;
|
|
7
|
+
content?: CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const Content: (props: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
|
+
const Content = (props)=>{
|
|
4
|
+
const { children, styles } = props;
|
|
5
|
+
return /*#__PURE__*/ jsxs(ContentContainer, {
|
|
6
|
+
children: [
|
|
7
|
+
/*#__PURE__*/ jsx("div", {
|
|
8
|
+
style: styles?.topPlaceholder ?? {
|
|
9
|
+
height: 20
|
|
10
|
+
}
|
|
11
|
+
}),
|
|
12
|
+
/*#__PURE__*/ jsx("div", {
|
|
13
|
+
style: styles?.content ?? {
|
|
14
|
+
padding: "0 200px"
|
|
15
|
+
},
|
|
16
|
+
children: children
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ jsx("div", {
|
|
19
|
+
style: styles?.bottomPlaceholder ?? {
|
|
20
|
+
height: 60
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const ContentContainer = styled.div`
|
|
27
|
+
min-height: 100px;
|
|
28
|
+
flex-grow: 1; overflow: auto;
|
|
29
|
+
`;
|
|
30
|
+
export { Content, ContentContainer };
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Spin } from "antd";
|
|
2
3
|
import { Footer } from "./Footer.js";
|
|
3
4
|
import { Header } from "./Header.js";
|
|
4
|
-
import { Container
|
|
5
|
+
import { Container } from "./styles.js";
|
|
6
|
+
import { Content } from "./Content.js";
|
|
5
7
|
const ClientContent = (props)=>{
|
|
6
|
-
const { style, className, children, headerProps, footerProps } = props;
|
|
8
|
+
const { style, className, children, headerProps, footerProps, loading } = props;
|
|
9
|
+
if (loading) return /*#__PURE__*/ jsx(Container, {
|
|
10
|
+
style: style,
|
|
11
|
+
className: className,
|
|
12
|
+
children: /*#__PURE__*/ jsx(Spin, {})
|
|
13
|
+
});
|
|
7
14
|
return /*#__PURE__*/ jsxs(Container, {
|
|
8
15
|
style: style,
|
|
9
16
|
className: className,
|
|
@@ -11,7 +18,7 @@ const ClientContent = (props)=>{
|
|
|
11
18
|
/*#__PURE__*/ jsx(Header, {
|
|
12
19
|
...headerProps
|
|
13
20
|
}),
|
|
14
|
-
/*#__PURE__*/ jsx(
|
|
21
|
+
/*#__PURE__*/ jsx(Content, {
|
|
15
22
|
children: children
|
|
16
23
|
}),
|
|
17
24
|
/*#__PURE__*/ jsx(Footer, {
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const Inter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -2,11 +2,7 @@ import styled_components from "styled-components";
|
|
|
2
2
|
const Container = styled_components.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
`;
|
|
6
|
-
const Inter = styled_components.div`
|
|
7
|
-
min-height: 100px;
|
|
8
|
-
flex-grow: 1;
|
|
9
5
|
|
|
10
|
-
|
|
6
|
+
height: 100%;
|
|
11
7
|
`;
|
|
12
|
-
export { Container
|
|
8
|
+
export { Container };
|