@marcoschwartz/lite-ui 0.24.6 → 0.24.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/index.d.mts CHANGED
@@ -79,6 +79,7 @@ interface AppShellHeaderConfig {
79
79
  variant?: 'solid' | 'glass' | 'transparent';
80
80
  collapsed?: boolean;
81
81
  withBorder?: boolean;
82
+ contained?: boolean;
82
83
  }
83
84
  interface AppShellNavbarConfig {
84
85
  content: React.ReactNode;
@@ -108,6 +109,7 @@ interface AppShellFooterConfig {
108
109
  variant?: 'solid' | 'glass' | 'transparent';
109
110
  collapsed?: boolean;
110
111
  withBorder?: boolean;
112
+ contained?: boolean;
111
113
  }
112
114
  interface AppShellProps {
113
115
  children: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -79,6 +79,7 @@ interface AppShellHeaderConfig {
79
79
  variant?: 'solid' | 'glass' | 'transparent';
80
80
  collapsed?: boolean;
81
81
  withBorder?: boolean;
82
+ contained?: boolean;
82
83
  }
83
84
  interface AppShellNavbarConfig {
84
85
  content: React.ReactNode;
@@ -108,6 +109,7 @@ interface AppShellFooterConfig {
108
109
  variant?: 'solid' | 'glass' | 'transparent';
109
110
  collapsed?: boolean;
110
111
  withBorder?: boolean;
112
+ contained?: boolean;
111
113
  }
112
114
  interface AppShellProps {
113
115
  children: React.ReactNode;
package/dist/index.js CHANGED
@@ -1390,10 +1390,12 @@ var AppShell = ({
1390
1390
  const headerVariant = header?.variant || "solid";
1391
1391
  const headerWithBorder = header?.withBorder ?? true;
1392
1392
  const headerCollapsed = header?.collapsed ?? false;
1393
+ const headerContained = header?.contained ?? false;
1393
1394
  const footerHeight = footer?.height || "md";
1394
1395
  const footerVariant = footer?.variant || "solid";
1395
1396
  const footerWithBorder = footer?.withBorder ?? true;
1396
1397
  const footerCollapsed = footer?.collapsed ?? false;
1398
+ const footerContained = footer?.contained ?? false;
1397
1399
  const showNavbarHamburger = navbar && !navbarCollapsedMobile;
1398
1400
  const showAsideHamburger = aside && !asideCollapsedMobile;
1399
1401
  const showHeaderOnlyHamburger = header && !navbar && !aside && !headerCollapsed;
@@ -1403,6 +1405,7 @@ var AppShell = ({
1403
1405
  const mobileHideClass = getBreakpointHideClass(mobileBreakpoint);
1404
1406
  const desktopShowClass = getBreakpointShowClass(mobileBreakpoint);
1405
1407
  const asideDesktopShowClass = getBreakpointShowClass(asideBreakpoint);
1408
+ const containerClass = "max-w-7xl mx-auto w-full";
1406
1409
  const contextValue = {
1407
1410
  navbarOpen,
1408
1411
  setNavbarOpen,
@@ -1454,9 +1457,9 @@ var AppShell = ({
1454
1457
  )
1455
1458
  ] })
1456
1459
  ] }),
1457
- header && !headerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("header", { className: `${needsMobileHeader ? desktopShowClass : "flex"} sticky top-0 z-20 ${heightClasses[headerHeight]} ${getVariantClasses(headerVariant, headerWithBorder)} ${headerWithBorder ? "border-b" : ""} px-4 items-center shrink-0`, children: header.content }),
1460
+ header && !headerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("header", { className: `${needsMobileHeader ? desktopShowClass : "flex"} sticky top-0 z-20 ${heightClasses[headerHeight]} ${getVariantClasses(headerVariant, headerWithBorder)} ${headerWithBorder ? "border-b" : ""} px-4 items-center shrink-0`, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: headerContained ? containerClass : "flex-1 flex items-center", children: header.content }) }),
1458
1461
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("main", { className: `flex-1 overflow-y-auto ${paddingClasses[padding]}`, children }),
1459
- footer && !footerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("footer", { className: `${heightClasses[footerHeight]} ${getVariantClasses(footerVariant, footerWithBorder)} ${footerWithBorder ? "border-t" : ""} px-4 flex items-center shrink-0`, children: footer.content })
1462
+ footer && !footerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("footer", { className: `${heightClasses[footerHeight]} ${getVariantClasses(footerVariant, footerWithBorder)} ${footerWithBorder ? "border-t" : ""} px-4 flex items-center shrink-0`, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: footerContained ? containerClass : "flex-1 flex items-center", children: footer.content }) })
1460
1463
  ] }),
1461
1464
  aside && !asideCollapsedDesktop && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
1462
1465
  "aside",
@@ -1535,10 +1538,10 @@ var AppShell = ({
1535
1538
  )
1536
1539
  ] })
1537
1540
  ] }),
1538
- header && !headerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("header", { className: `${needsMobileHeader ? desktopShowClass : "flex"} sticky top-0 z-20 ${heightClasses[headerHeight]} ${getVariantClasses(headerVariant, headerWithBorder)} ${headerWithBorder ? "border-b" : ""} px-4 items-center`, children: [
1541
+ header && !headerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("header", { className: `${needsMobileHeader ? desktopShowClass : "flex"} sticky top-0 z-20 ${heightClasses[headerHeight]} ${getVariantClasses(headerVariant, headerWithBorder)} ${headerWithBorder ? "border-b" : ""} px-4 items-center`, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `flex items-center ${headerContained ? containerClass : "flex-1"}`, children: [
1539
1542
  (logo || title) && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "mr-4 shrink-0", children: logo || /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-xl font-bold text-[hsl(var(--foreground))]", children: title }) }),
1540
1543
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex-1", children: header.content })
1541
- ] }),
1544
+ ] }) }),
1542
1545
  /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-1 min-h-0", children: [
1543
1546
  navbar && !navbarCollapsedDesktop && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
1544
1547
  "nav",
@@ -1556,7 +1559,7 @@ var AppShell = ({
1556
1559
  }
1557
1560
  )
1558
1561
  ] }),
1559
- footer && !footerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("footer", { className: `${heightClasses[footerHeight]} ${getVariantClasses(footerVariant, footerWithBorder)} ${footerWithBorder ? "border-t" : ""} px-4 flex items-center shrink-0`, children: footer.content }),
1562
+ footer && !footerCollapsed && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("footer", { className: `${heightClasses[footerHeight]} ${getVariantClasses(footerVariant, footerWithBorder)} ${footerWithBorder ? "border-t" : ""} px-4 flex items-center shrink-0`, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: footerContained ? containerClass : "flex-1 flex items-center", children: footer.content }) }),
1560
1563
  navbar && !navbarCollapsedMobile && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
1561
1564
  MobileDrawer,
1562
1565
  {