@ah-automation.nl/component-lib 0.0.29 → 0.0.30
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,4 @@
|
|
|
1
1
|
import type { AppShellProps } from "@/types/app-shell";
|
|
2
|
-
declare function AppShell({ header, sidebar, className, children }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function AppShell({ header, sidebar, className, children, }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { AppShell };
|
|
4
4
|
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/components/app-shell.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,iBAAS,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/components/app-shell.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,iBAAS,QAAQ,CAAC,EAChB,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,aAAa,2CA8Ef;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6807,8 +6807,13 @@ function Xr({
|
|
|
6807
6807
|
}
|
|
6808
6808
|
);
|
|
6809
6809
|
}
|
|
6810
|
-
function If({
|
|
6811
|
-
|
|
6810
|
+
function If({
|
|
6811
|
+
header: e,
|
|
6812
|
+
sidebar: n,
|
|
6813
|
+
className: t,
|
|
6814
|
+
children: r
|
|
6815
|
+
}) {
|
|
6816
|
+
const [o, i] = m.useState(!1), a = m.useCallback(() => i(!1), []), s = N(e.className, "pl-16 lg:pl-4");
|
|
6812
6817
|
return /* @__PURE__ */ D(
|
|
6813
6818
|
"div",
|
|
6814
6819
|
{
|
|
@@ -6819,7 +6824,7 @@ function If({ header: e, sidebar: n, className: t, children: r }) {
|
|
|
6819
6824
|
"button",
|
|
6820
6825
|
{
|
|
6821
6826
|
type: "button",
|
|
6822
|
-
className: "absolute left-4 top-1/2 z-50 -translate-y-1/2 rounded-md border border-border bg-background/95 p-2 text-muted-foreground shadow-sm hover:bg-accent
|
|
6827
|
+
className: "absolute left-4 top-1/2 z-50 -translate-y-1/2 rounded-md border border-border bg-background/95 p-2 text-muted-foreground shadow-sm hover:bg-accent lg:hidden",
|
|
6823
6828
|
"aria-label": "Open menu",
|
|
6824
6829
|
onClick: () => i(!0),
|
|
6825
6830
|
children: /* @__PURE__ */ g(Es, { className: "size-5" })
|
|
@@ -6828,10 +6833,10 @@ function If({ header: e, sidebar: n, className: t, children: r }) {
|
|
|
6828
6833
|
/* @__PURE__ */ g(js, { ...e, className: s })
|
|
6829
6834
|
] }),
|
|
6830
6835
|
/* @__PURE__ */ D("div", { className: "flex w-full flex-1 min-h-0 overflow-hidden", children: [
|
|
6831
|
-
n ? /* @__PURE__ */ g("aside", { className: "hidden
|
|
6836
|
+
n ? /* @__PURE__ */ g("aside", { className: "hidden lg:flex lg:w-80 lg:shrink-0 lg:flex-col lg:border-r lg:border-border/70 lg:bg-background", children: /* @__PURE__ */ g(Xr, { ...n, embedded: !0, className: "h-full" }) }) : null,
|
|
6832
6837
|
/* @__PURE__ */ g("main", { className: "min-w-0 flex-1 min-h-0 overflow-y-auto overflow-x-hidden bg-background", children: r })
|
|
6833
6838
|
] }),
|
|
6834
|
-
o && n ? /* @__PURE__ */ D("div", { className: "absolute inset-0 z-50 flex
|
|
6839
|
+
o && n ? /* @__PURE__ */ D("div", { className: "absolute inset-0 z-50 flex lg:hidden", children: [
|
|
6835
6840
|
/* @__PURE__ */ g(
|
|
6836
6841
|
"div",
|
|
6837
6842
|
{
|
|
@@ -6841,7 +6846,7 @@ function If({ header: e, sidebar: n, className: t, children: r }) {
|
|
|
6841
6846
|
),
|
|
6842
6847
|
/* @__PURE__ */ D("div", { className: "relative z-10 flex h-full w-80 max-w-[80vw] flex-col border-r border-border/70 bg-background shadow-xl", children: [
|
|
6843
6848
|
/* @__PURE__ */ D("div", { className: "flex items-center gap-3 border-b border-border/70 p-3", children: [
|
|
6844
|
-
/* @__PURE__ */ g("div", { className: "min-w-0 flex-1
|
|
6849
|
+
/* @__PURE__ */ g("div", { className: "min-w-0 flex-1 lg:hidden", children: e.logo }),
|
|
6845
6850
|
/* @__PURE__ */ g(
|
|
6846
6851
|
$e,
|
|
6847
6852
|
{
|