@lincros-ui/components 0.2.16 → 0.2.17

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.cjs CHANGED
@@ -5499,9 +5499,10 @@ function MainLayout({
5499
5499
  appName,
5500
5500
  appSubtitle,
5501
5501
  logoUrl,
5502
- faviconUrl
5502
+ faviconUrl,
5503
+ sidebarDefaultOpen
5503
5504
  }) {
5504
- return /* @__PURE__ */ jsxRuntime.jsx(SidebarProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen w-full flex", children: [
5505
+ return /* @__PURE__ */ jsxRuntime.jsx(SidebarProvider, { defaultOpen: sidebarDefaultOpen, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-screen w-full flex", children: [
5505
5506
  /* @__PURE__ */ jsxRuntime.jsx(
5506
5507
  ControlSidebar,
5507
5508
  {
@@ -5522,7 +5523,7 @@ function MainLayout({
5522
5523
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-y-auto", children }) })
5523
5524
  ] }) });
5524
5525
  }
5525
- function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, onResetPassword, resetPasswordLoading, resetPasswordError, appName, appSubtitle, logoUrl, faviconUrl }) {
5526
+ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, onResetPassword, resetPasswordLoading, resetPasswordError, appName, appSubtitle, logoUrl, faviconUrl, sidebarDefaultOpen }) {
5526
5527
  const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
5527
5528
  const location = reactRouterDom.useLocation();
5528
5529
  const sso = useSSO(tenantId || void 0);
@@ -5570,6 +5571,7 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
5570
5571
  appSubtitle,
5571
5572
  logoUrl,
5572
5573
  faviconUrl,
5574
+ sidebarDefaultOpen,
5573
5575
  children: /* @__PURE__ */ jsxRuntime.jsx(EnsureTenant, { useTenant, tenantService, children })
5574
5576
  }
5575
5577
  );