@lincros-ui/components 0.2.3 → 0.2.5

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/README.md CHANGED
File without changes
package/dist/index.js CHANGED
@@ -4905,6 +4905,7 @@ function ControlSidebar({
4905
4905
  onLogout,
4906
4906
  getCurrentTenantId,
4907
4907
  logoUrl = "/lovable-uploads/632ebc32-3ae3-4944-8e70-0e9c2539494a.png",
4908
+ faviconUrl,
4908
4909
  appName = "App",
4909
4910
  appSubtitle = "Sistema"
4910
4911
  }) {
@@ -5084,7 +5085,7 @@ function ControlSidebar({
5084
5085
  isCollapsed && /* @__PURE__ */ jsx("div", { className: "flex justify-center px-2 py-2", children: /* @__PURE__ */ jsx(
5085
5086
  "img",
5086
5087
  {
5087
- src: logoUrl,
5088
+ src: faviconUrl || logoUrl,
5088
5089
  alt: `${appName} Logo`,
5089
5090
  className: "w-8 h-8 object-contain"
5090
5091
  }
@@ -5206,7 +5207,8 @@ function MainLayout({
5206
5207
  currentTime,
5207
5208
  appName,
5208
5209
  appSubtitle,
5209
- logoUrl
5210
+ logoUrl,
5211
+ faviconUrl
5210
5212
  }) {
5211
5213
  return /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "h-screen w-full flex", children: [
5212
5214
  /* @__PURE__ */ jsx(
@@ -5219,13 +5221,14 @@ function MainLayout({
5219
5221
  currentTime,
5220
5222
  appName,
5221
5223
  appSubtitle,
5222
- logoUrl
5224
+ logoUrl,
5225
+ faviconUrl
5223
5226
  }
5224
5227
  ),
5225
5228
  /* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "h-full overflow-y-auto", children }) })
5226
5229
  ] }) });
5227
5230
  }
5228
- function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, appName, appSubtitle, logoUrl }) {
5231
+ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, appName, appSubtitle, logoUrl, faviconUrl }) {
5229
5232
  const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
5230
5233
  const location = useLocation();
5231
5234
  const sso = useSSO(tenantId || void 0);
@@ -5268,6 +5271,7 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
5268
5271
  appName,
5269
5272
  appSubtitle,
5270
5273
  logoUrl,
5274
+ faviconUrl,
5271
5275
  children: /* @__PURE__ */ jsx(EnsureTenant, { useTenant, tenantService, children })
5272
5276
  }
5273
5277
  );