@lincros-ui/components 0.2.15 → 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
@@ -5182,12 +5182,6 @@ function ControlSidebar({
5182
5182
  icon: lucideReact.Monitor,
5183
5183
  permission: menuPermissions.MenuPermissionLevel.ALL
5184
5184
  },
5185
- {
5186
- title: "Monitoramento de Rotas",
5187
- url: routePaths.ROUTE_MONITORING,
5188
- icon: lucideReact.Navigation,
5189
- permission: menuPermissions.MenuPermissionLevel.MASTER_TENANT_ONLY
5190
- },
5191
5185
  {
5192
5186
  title: "Monitoramento de Rotas",
5193
5187
  url: routePaths.ROUTE_MONITORING,
@@ -5505,9 +5499,10 @@ function MainLayout({
5505
5499
  appName,
5506
5500
  appSubtitle,
5507
5501
  logoUrl,
5508
- faviconUrl
5502
+ faviconUrl,
5503
+ sidebarDefaultOpen
5509
5504
  }) {
5510
- 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: [
5511
5506
  /* @__PURE__ */ jsxRuntime.jsx(
5512
5507
  ControlSidebar,
5513
5508
  {
@@ -5528,7 +5523,7 @@ function MainLayout({
5528
5523
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-y-auto", children }) })
5529
5524
  ] }) });
5530
5525
  }
5531
- 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 }) {
5532
5527
  const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
5533
5528
  const location = reactRouterDom.useLocation();
5534
5529
  const sso = useSSO(tenantId || void 0);
@@ -5576,6 +5571,7 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
5576
5571
  appSubtitle,
5577
5572
  logoUrl,
5578
5573
  faviconUrl,
5574
+ sidebarDefaultOpen,
5579
5575
  children: /* @__PURE__ */ jsxRuntime.jsx(EnsureTenant, { useTenant, tenantService, children })
5580
5576
  }
5581
5577
  );