@kayleai/ui 0.0.5 → 0.0.7
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/layout.d.ts +10 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/layout.js +10 -2
- package/package.json +1 -1
package/dist/layout.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* App Layout
|
|
3
|
+
*
|
|
4
|
+
* @param children - The children to render.
|
|
5
|
+
* @param notCenter - Pass this to not center the content.
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function Layout({ children, notCenter, className, }: {
|
|
2
9
|
children: React.ReactNode;
|
|
10
|
+
notCenter?: boolean;
|
|
11
|
+
className?: string;
|
|
3
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
4
13
|
//# sourceMappingURL=layout.d.ts.map
|
package/dist/layout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAiB,EACjB,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAcA"}
|
package/dist/layout.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { cn } from "./utils/cn";
|
|
3
|
+
/**
|
|
4
|
+
* App Layout
|
|
5
|
+
*
|
|
6
|
+
* @param children - The children to render.
|
|
7
|
+
* @param notCenter - Pass this to not center the content.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export function Layout({ children, notCenter = false, className, }) {
|
|
11
|
+
return (_jsx("div", { className: "flex min-h-dvh flex-col bg-accent p-2", children: _jsx("div", { className: cn("relative flex grow overflow-hidden p-6 lg:rounded-lg lg:bg-background lg:p-10 lg:shadow-xs lg:ring-1 lg:ring-foreground/5", notCenter ? null : "items-center justify-center", className), children: children }) }));
|
|
4
12
|
}
|