@lincros-ui/components 0.2.16 → 0.2.18

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.js CHANGED
@@ -5442,9 +5442,10 @@ function MainLayout({
5442
5442
  appName,
5443
5443
  appSubtitle,
5444
5444
  logoUrl,
5445
- faviconUrl
5445
+ faviconUrl,
5446
+ sidebarDefaultOpen
5446
5447
  }) {
5447
- return /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "h-screen w-full flex", children: [
5448
+ return /* @__PURE__ */ jsx(SidebarProvider, { defaultOpen: sidebarDefaultOpen, children: /* @__PURE__ */ jsxs("div", { className: "h-screen w-full flex", children: [
5448
5449
  /* @__PURE__ */ jsx(
5449
5450
  ControlSidebar,
5450
5451
  {
@@ -5465,7 +5466,7 @@ function MainLayout({
5465
5466
  /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "h-full overflow-y-auto", children }) })
5466
5467
  ] }) });
5467
5468
  }
5468
- function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, onResetPassword, resetPasswordLoading, resetPasswordError, appName, appSubtitle, logoUrl, faviconUrl }) {
5469
+ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, onResetPassword, resetPasswordLoading, resetPasswordError, appName, appSubtitle, logoUrl, faviconUrl, sidebarDefaultOpen }) {
5469
5470
  const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
5470
5471
  const location = useLocation();
5471
5472
  const sso = useSSO(tenantId || void 0);
@@ -5513,6 +5514,7 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
5513
5514
  appSubtitle,
5514
5515
  logoUrl,
5515
5516
  faviconUrl,
5517
+ sidebarDefaultOpen,
5516
5518
  children: /* @__PURE__ */ jsx(EnsureTenant, { useTenant, tenantService, children })
5517
5519
  }
5518
5520
  );