@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 CHANGED
@@ -1,4 +1,13 @@
1
- export declare function Layout({ children }: {
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
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.tsx"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAQjE"}
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
- export function Layout({ children }) {
3
- return (_jsx("div", { className: "flex min-h-dvh flex-col bg-accent p-2", children: _jsx("div", { className: "relative flex grow items-center justify-center overflow-hidden p-6 lg:rounded-lg lg:bg-background lg:p-10 lg:shadow-xs lg:ring-1 lg:ring-foreground/5", children: children }) }));
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
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kayleai/ui",
3
3
  "description": "Kayle's UI library",
4
4
  "author": "Arsen Shkrumelyak <arsen@kayle.ai>",
5
- "version": "0.0.5",
5
+ "version": "0.0.7",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",