@lincros-ui/components 0.2.2 → 0.2.4
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 +0 -0
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/sidebar-custom-EZBDGCBW.css +0 -0
- package/dist/styles/App.css +0 -0
- package/dist/styles/credentials.css +0 -0
- package/dist/styles/flow-editor.css +0 -0
- package/dist/styles/global.css +0 -0
- package/dist/styles/index.js +0 -0
- package/dist/styles/index.js.map +0 -0
- package/package.json +1 -1
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
|
}
|
|
@@ -5203,7 +5204,10 @@ function MainLayout({
|
|
|
5203
5204
|
user,
|
|
5204
5205
|
onLogout,
|
|
5205
5206
|
getCurrentTenantId,
|
|
5206
|
-
currentTime
|
|
5207
|
+
currentTime,
|
|
5208
|
+
appName,
|
|
5209
|
+
appSubtitle,
|
|
5210
|
+
logoUrl
|
|
5207
5211
|
}) {
|
|
5208
5212
|
return /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "h-screen w-full flex", children: [
|
|
5209
5213
|
/* @__PURE__ */ jsx(
|
|
@@ -5213,13 +5217,16 @@ function MainLayout({
|
|
|
5213
5217
|
user,
|
|
5214
5218
|
onLogout,
|
|
5215
5219
|
getCurrentTenantId,
|
|
5216
|
-
currentTime
|
|
5220
|
+
currentTime,
|
|
5221
|
+
appName,
|
|
5222
|
+
appSubtitle,
|
|
5223
|
+
logoUrl
|
|
5217
5224
|
}
|
|
5218
5225
|
),
|
|
5219
5226
|
/* @__PURE__ */ jsx("main", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "h-full overflow-y-auto", children }) })
|
|
5220
5227
|
] }) });
|
|
5221
5228
|
}
|
|
5222
|
-
function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService }) {
|
|
5229
|
+
function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths, useTenant, tenantService, appName, appSubtitle, logoUrl }) {
|
|
5223
5230
|
const { isAuthenticated, isLoading, logout, user, getCurrentTenantId } = useAuthContext();
|
|
5224
5231
|
const location = useLocation();
|
|
5225
5232
|
const sso = useSSO(tenantId || void 0);
|
|
@@ -5259,6 +5266,9 @@ function ProtectedRoute({ children, useAuthContext, tenantId, useSSO, routePaths
|
|
|
5259
5266
|
user,
|
|
5260
5267
|
onLogout: logout,
|
|
5261
5268
|
getCurrentTenantId,
|
|
5269
|
+
appName,
|
|
5270
|
+
appSubtitle,
|
|
5271
|
+
logoUrl,
|
|
5262
5272
|
children: /* @__PURE__ */ jsx(EnsureTenant, { useTenant, tenantService, children })
|
|
5263
5273
|
}
|
|
5264
5274
|
);
|