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
- export default function PageContainer({ title, children }: {
1
+ type PageContainerProps = {
2
2
  title: string;
3
3
  children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
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: 'w-full page-container', children: _jsxs("div", { className: 'flex flex-col col-start-3', children: [_jsx("h1", { className: 'heading', children: title }), children] }) }));
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,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -1,7 +1,14 @@
1
- export default function PageContainer({ title, children }: { title: string; children: React.ReactNode }) {
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='w-full page-container'>
4
- <div className='flex flex-col col-start-3'>
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>