uibee 2.3.5 → 2.3.8
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/src/components/container/page.d.ts +6 -2
- package/dist/src/components/container/page.js +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/scripts/buildCss.js +1 -1
- package/dist/src/styles/index.d.ts +1 -0
- package/dist/src/styles/index.js +1 -0
- package/package.json +4 -4
- package/src/components/container/page.tsx +10 -3
- package/src/index.ts +1 -0
- package/src/scripts/buildCss.ts +1 -1
- package/src/styles/index.ts +1 -0
- package/tsconfig.json +4 -1
- /package/dist/{globals.css → src/globals.css} +0 -0
|
@@ -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/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export default async function buildCss() {
|
|
|
6
6
|
const tailwindConfig = tailwindModule.default ?? tailwindModule;
|
|
7
7
|
const tailwindPostcss = (await import('@tailwindcss/postcss')).default;
|
|
8
8
|
const inputPath = path.resolve('./src/globals.css');
|
|
9
|
-
const outputPath = path.resolve('./dist/globals.css');
|
|
9
|
+
const outputPath = path.resolve('./dist/src/globals.css');
|
|
10
10
|
const inputCss = readFileSync(inputPath, 'utf-8');
|
|
11
11
|
const result = await postcss([tailwindPostcss(tailwindConfig)]).process(inputCss, {
|
|
12
12
|
from: inputPath,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../globals.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../globals.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uibee",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
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": {
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"author": "",
|
|
15
15
|
"type": "module",
|
|
16
|
-
"main": "dist/index.js",
|
|
17
|
-
"types": "dist/index.d.ts",
|
|
16
|
+
"main": "./dist/src/index.js",
|
|
17
|
+
"types": "./dist/src/index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": "./dist/src/index.js",
|
|
20
20
|
"./hooks": "./dist/src/hooks/index.js",
|
|
21
21
|
"./components": "./dist/src/components/index.js",
|
|
22
22
|
"./scripts": "./dist/src/scripts/index.js",
|
|
23
23
|
"./utils": "./dist/src/utils/index.js",
|
|
24
|
-
"./styles": "./dist/
|
|
24
|
+
"./styles": "./dist/src/styles/index.js"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build:clean": "rm -rf dist",
|
|
@@ -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>
|
package/src/index.ts
CHANGED
package/src/scripts/buildCss.ts
CHANGED
|
@@ -7,7 +7,7 @@ export default async function buildCss() {
|
|
|
7
7
|
const tailwindConfig = tailwindModule.default ?? tailwindModule
|
|
8
8
|
const tailwindPostcss = (await import('@tailwindcss/postcss')).default
|
|
9
9
|
const inputPath = path.resolve('./src/globals.css')
|
|
10
|
-
const outputPath = path.resolve('./dist/globals.css')
|
|
10
|
+
const outputPath = path.resolve('./dist/src/globals.css')
|
|
11
11
|
const inputCss = readFileSync(inputPath, 'utf-8')
|
|
12
12
|
const result = await postcss([tailwindPostcss(tailwindConfig)]).process(inputCss, {
|
|
13
13
|
from: inputPath,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../globals.css'
|
package/tsconfig.json
CHANGED
|
File without changes
|