uibee 2.3.5 → 2.3.6
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,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type PageContainerProps = {
|
|
2
2
|
title: string;
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
|
+
innerClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function PageContainer({ title, children, className, innerClassName }: PageContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export default function PageContainer({ title, children }) {
|
|
3
|
-
return (_jsx("div", { className:
|
|
2
|
+
export default function PageContainer({ title, children, className, innerClassName }) {
|
|
3
|
+
return (_jsx("div", { className: `w-full page-container ${className}`, children: _jsxs("div", { className: `flex flex-col col-start-3 ${innerClassName}`, children: [_jsx("h1", { className: 'heading', children: title }), children] }) }));
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
type PageContainerProps = {
|
|
2
|
+
title: string
|
|
3
|
+
children: React.ReactNode
|
|
4
|
+
className?: string
|
|
5
|
+
innerClassName?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function PageContainer({ title, children, className, innerClassName }: PageContainerProps) {
|
|
2
9
|
return (
|
|
3
|
-
<div className=
|
|
4
|
-
<div className=
|
|
10
|
+
<div className={`w-full page-container ${className}`}>
|
|
11
|
+
<div className={`flex flex-col col-start-3 ${innerClassName}`}>
|
|
5
12
|
<h1 className='heading'>{title}</h1>
|
|
6
13
|
{children}
|
|
7
14
|
</div>
|