@tree-ia/design-system 1.5.5 → 1.5.6

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
1
+ import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createPortal } from "react-dom";
4
4
  import { AlertCircle, AlertOctagon, AlertTriangle, ArrowDown, ArrowUp, ArrowUpDown, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, File, GripVertical, Image, Inbox, Info, LogOut, Monitor, Moon, Search, Sun, Upload, User, X, XCircle } from "lucide-react";
@@ -394,19 +394,23 @@ function Modal({ isOpen, onClose, onSave, title = "", children, showFooter = fal
394
394
  }, 150);
395
395
  }, [onClose]);
396
396
  useEffect(() => {
397
- if (!closeOnOverlayClick) return;
397
+ if (!shouldRender || isClosing) return;
398
+ const previous = document.body.style.overflow;
399
+ document.body.style.overflow = "hidden";
400
+ return () => {
401
+ document.body.style.overflow = previous;
402
+ };
403
+ }, [shouldRender, isClosing]);
404
+ useEffect(() => {
405
+ if (!closeOnOverlayClick || !shouldRender || isClosing) return;
398
406
  const handleClickOutside = (event) => {
399
407
  const target = event.target;
400
- if (modalRef.current && !modalRef.current.contains(event.target) && !target.closest("[data-modal-ignore]")) handleClose();
401
- };
402
- if (shouldRender && !isClosing) {
403
- document.addEventListener("mousedown", handleClickOutside);
404
- document.body.style.overflow = "hidden";
405
- }
406
- return () => {
407
- document.removeEventListener("mousedown", handleClickOutside);
408
- if (!shouldRender) document.body.style.overflow = "auto";
408
+ if (target.closest("[data-modal-ignore]")) return;
409
+ for (const selector of [".dashboard-dropdown-portal", ".dc-combobox-portal"]) if (document.querySelector(selector)?.contains(target)) return;
410
+ if (modalRef.current && !modalRef.current.contains(target)) handleClose();
409
411
  };
412
+ document.addEventListener("mousedown", handleClickOutside);
413
+ return () => document.removeEventListener("mousedown", handleClickOutside);
410
414
  }, [
411
415
  shouldRender,
412
416
  isClosing,
@@ -1166,9 +1170,9 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1166
1170
  return groups;
1167
1171
  }
1168
1172
  function renderSectionHeader(section, collapsed) {
1169
- if (collapsed) return /* @__PURE__ */ jsx("div", { className: "my-2 mx-2 border-t border-[var(--dashboard-sidebar-border,#2A6510)]" });
1173
+ if (collapsed) return /* @__PURE__ */ jsx("div", { className: "my-2 mx-2 border-t border-[var(--dashboard-sidebar-border,#e0dfe3)]" });
1170
1174
  return /* @__PURE__ */ jsx("div", {
1171
- className: "mb-1 mt-5 px-4 text-[11px] font-bold uppercase tracking-wider text-[var(--dashboard-sidebar-text,#FFFFFF)]/80",
1175
+ className: "mb-1 mt-5 px-4 text-[11px] font-bold uppercase tracking-wider text-[var(--dashboard-sidebar-text,#403f52)]/80",
1172
1176
  children: section
1173
1177
  });
1174
1178
  }
@@ -1180,7 +1184,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1180
1184
  const isChildActive = item.children?.some((c) => currentPath === c.href);
1181
1185
  if (hasChildren) return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
1182
1186
  onClick: () => toggleExpand(item.id),
1183
- className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer", collapsed && !mobile ? "justify-center" : "justify-start", isChildActive ? "text-[var(--dashboard-sidebar-active-text,#5DD611)]" : "text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:bg-[var(--dashboard-primary,#37a501)]/10"),
1187
+ className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer", collapsed && !mobile ? "justify-center" : "justify-start", isChildActive ? "text-[var(--dashboard-sidebar-active-text,#ff521d)]" : "text-[var(--dashboard-sidebar-text,#403f52)] hover:bg-[var(--dashboard-primary,#ff521d)]/10"),
1184
1188
  style: { transition: "background-color 200ms, color 200ms" },
1185
1189
  title: collapsed && !mobile ? item.label : void 0,
1186
1190
  children: [/* @__PURE__ */ jsx(Icon, {
@@ -1198,7 +1202,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1198
1202
  className: cn$23("ml-auto flex-shrink-0 transition-transform duration-200", isExpanded ? "rotate-90" : "")
1199
1203
  })] })]
1200
1204
  }), (!collapsed || mobile) && /* @__PURE__ */ jsx("div", {
1201
- className: "overflow-hidden transition-all duration-200 ml-7 border-l-2 border-[var(--dashboard-sidebar-border,#2A6510)]",
1205
+ className: "overflow-hidden transition-all duration-200 ml-7 border-l-2 border-[var(--dashboard-sidebar-border,#e0dfe3)]",
1202
1206
  style: { maxHeight: isExpanded ? `${item.children.length * 40}px` : "0" },
1203
1207
  children: item.children.map((child) => {
1204
1208
  const ChildIcon = child.icon;
@@ -1207,7 +1211,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1207
1211
  href: child.href,
1208
1212
  className: "block",
1209
1213
  children: /* @__PURE__ */ jsxs("div", {
1210
- className: cn$23("w-full flex items-center pl-4 pr-4 py-2 rounded-r-lg text-[13px] cursor-pointer", childActive ? "text-[var(--dashboard-sidebar-active-text,#5DD611)] font-semibold border-l-2 border-[var(--dashboard-primary,#37a501)] -ml-[2px]" : "text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:text-[var(--dashboard-sidebar-active-text,#5DD611)]"),
1214
+ className: cn$23("w-full flex items-center pl-4 pr-4 py-2 rounded-r-lg text-[13px] cursor-pointer", childActive ? "text-[var(--dashboard-sidebar-active-text,#ff521d)] font-semibold border-l-2 border-[var(--dashboard-primary,#ff521d)] -ml-[2px]" : "text-[var(--dashboard-sidebar-text,#403f52)] hover:text-[var(--dashboard-sidebar-active-text,#ff521d)]"),
1211
1215
  style: { transition: "background-color 200ms, color 200ms" },
1212
1216
  children: [/* @__PURE__ */ jsx(ChildIcon, {
1213
1217
  size: 15,
@@ -1224,7 +1228,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1224
1228
  href: item.href,
1225
1229
  className: "block",
1226
1230
  children: /* @__PURE__ */ jsxs("div", {
1227
- className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer", collapsed && !mobile ? "justify-center" : "justify-start", isActive ? "bg-[var(--dashboard-primary,#37a501)]/25 text-[var(--dashboard-sidebar-active-text,#5DD611)]" : "text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:bg-[var(--dashboard-primary,#37a501)]/10"),
1231
+ className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer", collapsed && !mobile ? "justify-center" : "justify-start", isActive ? "bg-[var(--dashboard-primary,#ff521d)]/25 text-[var(--dashboard-sidebar-active-text,#ff521d)]" : "text-[var(--dashboard-sidebar-text,#403f52)] hover:bg-[var(--dashboard-primary,#ff521d)]/10"),
1228
1232
  style: { transition: "background-color 200ms, color 200ms" },
1229
1233
  title: collapsed && !mobile ? item.label : void 0,
1230
1234
  children: [/* @__PURE__ */ jsx(Icon, {
@@ -1253,7 +1257,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1253
1257
  }, group.section || `group-${i}`));
1254
1258
  }
1255
1259
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("header", {
1256
- className: "xl:hidden fixed top-0 left-0 right-0 z-40 bg-[var(--dashboard-sidebar-bg,#1B4D08)] border-b border-[var(--dashboard-sidebar-border,#2A6510)]",
1260
+ className: "xl:hidden fixed top-0 left-0 right-0 z-40 bg-[var(--dashboard-sidebar-bg,#f0f0f0)] border-b border-[var(--dashboard-sidebar-border,#e0dfe3)]",
1257
1261
  children: [/* @__PURE__ */ jsxs("div", {
1258
1262
  className: "flex items-center justify-center px-4 h-16 relative",
1259
1263
  children: [/* @__PURE__ */ jsx("div", {
@@ -1261,7 +1265,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1261
1265
  children: logo
1262
1266
  }), /* @__PURE__ */ jsx("button", {
1263
1267
  onClick: () => setIsMobileMenuOpen(!isMobileMenuOpen),
1264
- className: "absolute right-4 inline-flex items-center justify-center rounded-lg text-sm font-medium transition-colors cursor-pointer bg-white/10 text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:bg-white/20 h-10 w-10",
1268
+ className: "absolute right-4 inline-flex items-center justify-center rounded-lg text-sm font-medium transition-colors cursor-pointer bg-black/5 text-[var(--dashboard-sidebar-text,#403f52)] hover:bg-black/10 h-10 w-10",
1265
1269
  "aria-label": "Menu",
1266
1270
  "aria-expanded": isMobileMenuOpen,
1267
1271
  children: /* @__PURE__ */ jsx(ChevronDown, {
@@ -1270,31 +1274,31 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1270
1274
  })
1271
1275
  })]
1272
1276
  }), /* @__PURE__ */ jsx("nav", {
1273
- className: `absolute top-16 left-0 right-0 bg-[var(--dashboard-sidebar-bg,#1B4D08)] border-b border-[var(--dashboard-sidebar-border,#2A6510)] shadow-lg transition-all duration-200 ${isMobileMenuOpen ? "max-h-[calc(100vh-4rem)] overflow-y-auto" : "max-h-0 overflow-hidden"}`,
1277
+ className: `absolute top-16 left-0 right-0 bg-[var(--dashboard-sidebar-bg,#f0f0f0)] border-b border-[var(--dashboard-sidebar-border,#e0dfe3)] shadow-lg transition-all duration-200 ${isMobileMenuOpen ? "max-h-[calc(100vh-4rem)] overflow-y-auto" : "max-h-0 overflow-hidden"}`,
1274
1278
  children: /* @__PURE__ */ jsxs("div", {
1275
1279
  className: "px-4 py-2",
1276
1280
  children: [renderMenuGroups(false, true), /* @__PURE__ */ jsxs("div", {
1277
- className: "mt-2 pt-2 border-t border-[var(--dashboard-sidebar-border,#2A6510)] space-y-2",
1281
+ className: "mt-2 pt-2 border-t border-[var(--dashboard-sidebar-border,#e0dfe3)] space-y-2",
1278
1282
  children: [
1279
1283
  user && /* @__PURE__ */ jsxs("button", {
1280
1284
  onClick: onUserClick,
1281
- className: "w-full flex items-center px-4 py-3 rounded-lg bg-[var(--dashboard-primary,#37a501)]/5 hover:bg-[var(--dashboard-primary,#37a501)]/10 transition-colors cursor-pointer",
1285
+ className: "w-full flex items-center px-4 py-3 rounded-lg bg-[var(--dashboard-primary,#ff521d)]/5 hover:bg-[var(--dashboard-primary,#ff521d)]/10 transition-colors cursor-pointer",
1282
1286
  children: [/* @__PURE__ */ jsx("div", {
1283
- className: "flex items-center justify-center w-8 h-8 rounded-full bg-[var(--dashboard-primary,#37a501)]/30 text-[var(--dashboard-sidebar-text,#FFFFFF)] flex-shrink-0",
1287
+ className: "flex items-center justify-center w-8 h-8 rounded-full bg-[var(--dashboard-primary,#ff521d)]/30 text-[var(--dashboard-sidebar-text,#403f52)] flex-shrink-0",
1284
1288
  children: /* @__PURE__ */ jsx(User, { size: 16 })
1285
1289
  }), /* @__PURE__ */ jsxs("div", {
1286
1290
  className: "ml-3 text-left",
1287
1291
  children: [
1288
1292
  user.subtitle && /* @__PURE__ */ jsx("p", {
1289
- className: "text-xs text-[var(--dashboard-sidebar-text,#FFFFFF)]/60 whitespace-nowrap truncate",
1293
+ className: "text-xs text-[var(--dashboard-sidebar-text,#403f52)]/60 whitespace-nowrap truncate",
1290
1294
  children: user.subtitle
1291
1295
  }),
1292
1296
  /* @__PURE__ */ jsx("p", {
1293
- className: "text-sm font-medium text-[var(--dashboard-sidebar-text,#FFFFFF)] whitespace-nowrap truncate",
1297
+ className: "text-sm font-medium text-[var(--dashboard-sidebar-text,#403f52)] whitespace-nowrap truncate",
1294
1298
  children: user.name
1295
1299
  }),
1296
1300
  /* @__PURE__ */ jsx("p", {
1297
- className: "text-xs text-[var(--dashboard-sidebar-text,#FFFFFF)]/60 whitespace-nowrap truncate",
1301
+ className: "text-xs text-[var(--dashboard-sidebar-text,#403f52)]/60 whitespace-nowrap truncate",
1298
1302
  children: user.email
1299
1303
  })
1300
1304
  ]
@@ -1304,7 +1308,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1304
1308
  footerItems?.map((item) => renderMenuItem(item, false, true)),
1305
1309
  onLogout && /* @__PURE__ */ jsxs("button", {
1306
1310
  onClick: onLogout,
1307
- className: "w-full flex items-center justify-start px-4 py-3 rounded-lg text-sm font-medium transition-colors cursor-pointer text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:bg-[var(--dashboard-primary,#37a501)]/10",
1311
+ className: "w-full flex items-center justify-start px-4 py-3 rounded-lg text-sm font-medium transition-colors cursor-pointer text-[var(--dashboard-sidebar-text,#403f52)] hover:bg-[var(--dashboard-primary,#ff521d)]/10",
1308
1312
  children: [/* @__PURE__ */ jsx(LogOut, {
1309
1313
  size: 20,
1310
1314
  className: "mr-3 flex-shrink-0"
@@ -1318,7 +1322,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1318
1322
  })
1319
1323
  })]
1320
1324
  }), /* @__PURE__ */ jsxs("aside", {
1321
- className: cn$23("hidden xl:flex xl:flex-col xl:fixed xl:left-0 xl:top-0 xl:h-screen bg-[var(--dashboard-sidebar-bg,#1B4D08)] border-r border-[var(--dashboard-sidebar-border,#2A6510)] overflow-visible", isCollapsed ? "xl:w-[109px]" : "xl:w-[280px]", className),
1325
+ className: cn$23("hidden xl:flex xl:flex-col xl:fixed xl:left-0 xl:top-0 xl:h-screen bg-[var(--dashboard-sidebar-bg,#f0f0f0)] border-r border-[var(--dashboard-sidebar-border,#e0dfe3)] overflow-visible", isCollapsed ? "xl:w-[109px]" : "xl:w-[280px]", className),
1322
1326
  style: { transition: `width 400ms ${cubicBezier}` },
1323
1327
  children: [onToggleCollapse && /* @__PURE__ */ jsxs("button", {
1324
1328
  onClick: onToggleCollapse,
@@ -1328,17 +1332,22 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1328
1332
  width: "20px",
1329
1333
  height: "193px"
1330
1334
  },
1331
- children: [/* @__PURE__ */ jsx("svg", {
1335
+ children: [/* @__PURE__ */ jsxs("svg", {
1332
1336
  xmlns: "http://www.w3.org/2000/svg",
1333
1337
  width: "20",
1334
1338
  height: "193",
1335
1339
  viewBox: "0 0 20 193",
1336
1340
  fill: "none",
1337
1341
  className: "absolute inset-0",
1338
- children: /* @__PURE__ */ jsx("path", {
1339
- d: "M10.2036 118.86C14.8518 115.918 19.5 107.801 19.5 95.9116C19.5 84.0223 15.672 76.4939 10.2036 72.9634C4.73505 69.4329 2.54765 63.5488 1.72738 55.8994L1.72738 136.512C2.82108 125.921 5.55533 121.802 10.2036 118.86Z",
1340
- fill: "var(--dashboard-sidebar-bg,#1B4D08)"
1341
- })
1342
+ children: [/* @__PURE__ */ jsx("path", {
1343
+ d: "M10.2036 118.86C14.8518 115.918 19.5 107.801 19.5 95.9116C19.5 84.0223 15.672 76.4939 10.2036 72.9634C4.73505 69.4329 2.54765 63.5488 1.72738 55.8994L0 55.8994L0 136.512L1.72738 136.512C2.82108 125.921 5.55533 121.802 10.2036 118.86Z",
1344
+ fill: "var(--dashboard-sidebar-bg,#f0f0f0)"
1345
+ }), /* @__PURE__ */ jsx("path", {
1346
+ d: "M1.72738 55.8994C2.54765 63.5488 4.73505 69.4329 10.2036 72.9634C15.672 76.4939 19.5 84.0223 19.5 95.9116C19.5 107.801 14.8518 115.918 10.2036 118.86C5.55533 121.802 2.82108 125.921 1.72738 136.512",
1347
+ stroke: "var(--dashboard-sidebar-border,#e0dfe3)",
1348
+ strokeWidth: "1",
1349
+ fill: "none"
1350
+ })]
1342
1351
  }), /* @__PURE__ */ jsx("svg", {
1343
1352
  xmlns: "http://www.w3.org/2000/svg",
1344
1353
  width: "12",
@@ -1349,7 +1358,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1349
1358
  style: { transition: `transform 400ms ${cubicBezier}` },
1350
1359
  children: /* @__PURE__ */ jsx("path", {
1351
1360
  d: "M4.5 2L8.5 6L4.5 10",
1352
- stroke: "var(--dashboard-sidebar-text,#FFFFFF)",
1361
+ stroke: "var(--dashboard-sidebar-text,#403f52)",
1353
1362
  strokeWidth: "2",
1354
1363
  strokeLinecap: "round",
1355
1364
  strokeLinejoin: "round"
@@ -1359,7 +1368,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1359
1368
  className: "flex flex-col h-full overflow-y-auto",
1360
1369
  children: [
1361
1370
  /* @__PURE__ */ jsxs("div", {
1362
- className: "flex justify-center items-center py-6 px-4 border-b border-[var(--dashboard-sidebar-border,#2A6510)] overflow-hidden relative h-[88px]",
1371
+ className: "flex justify-center items-center py-6 px-4 border-b border-[var(--dashboard-sidebar-border,#e0dfe3)] overflow-hidden relative h-[88px]",
1363
1372
  children: [collapsedLogo && /* @__PURE__ */ jsx("div", {
1364
1373
  className: "absolute inset-0 flex items-center justify-center",
1365
1374
  style: {
@@ -1383,14 +1392,14 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1383
1392
  children: renderMenuGroups(isCollapsed, false)
1384
1393
  }),
1385
1394
  /* @__PURE__ */ jsxs("footer", {
1386
- className: "p-4 border-t border-[var(--dashboard-sidebar-border,#2A6510)] space-y-2",
1395
+ className: "p-4 border-t border-[var(--dashboard-sidebar-border,#e0dfe3)] space-y-2",
1387
1396
  children: [
1388
1397
  user && /* @__PURE__ */ jsxs("button", {
1389
1398
  onClick: onUserClick,
1390
- className: cn$23("w-full flex items-center px-4 py-3 rounded-lg bg-[var(--dashboard-primary,#37a501)]/5 hover:bg-[var(--dashboard-primary,#37a501)]/10 transition-colors cursor-pointer", isCollapsed ? "justify-center" : "justify-start"),
1399
+ className: cn$23("w-full flex items-center px-4 py-3 rounded-lg bg-[var(--dashboard-primary,#ff521d)]/5 hover:bg-[var(--dashboard-primary,#ff521d)]/10 transition-colors cursor-pointer", isCollapsed ? "justify-center" : "justify-start"),
1391
1400
  title: isCollapsed ? `${user.subtitle ? user.subtitle + " - " : ""}${user.name}` : void 0,
1392
1401
  children: [/* @__PURE__ */ jsx("div", {
1393
- className: "flex items-center justify-center w-8 h-8 rounded-full bg-[var(--dashboard-primary,#37a501)]/30 text-[var(--dashboard-sidebar-text,#FFFFFF)] flex-shrink-0",
1402
+ className: "flex items-center justify-center w-8 h-8 rounded-full bg-[var(--dashboard-primary,#ff521d)]/30 text-[var(--dashboard-sidebar-text,#403f52)] flex-shrink-0",
1394
1403
  children: /* @__PURE__ */ jsx(User, { size: 16 })
1395
1404
  }), /* @__PURE__ */ jsxs("div", {
1396
1405
  className: "overflow-hidden text-left",
@@ -1402,15 +1411,15 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1402
1411
  },
1403
1412
  children: [
1404
1413
  user.subtitle && /* @__PURE__ */ jsx("p", {
1405
- className: "text-xs text-[var(--dashboard-sidebar-text,#FFFFFF)]/60 whitespace-nowrap truncate",
1414
+ className: "text-xs text-[var(--dashboard-sidebar-text,#403f52)]/60 whitespace-nowrap truncate",
1406
1415
  children: user.subtitle
1407
1416
  }),
1408
1417
  /* @__PURE__ */ jsx("p", {
1409
- className: "text-sm font-medium text-[var(--dashboard-sidebar-text,#FFFFFF)] whitespace-nowrap truncate",
1418
+ className: "text-sm font-medium text-[var(--dashboard-sidebar-text,#403f52)] whitespace-nowrap truncate",
1410
1419
  children: user.name
1411
1420
  }),
1412
1421
  /* @__PURE__ */ jsx("p", {
1413
- className: "text-xs text-[var(--dashboard-sidebar-text,#FFFFFF)]/60 whitespace-nowrap truncate",
1422
+ className: "text-xs text-[var(--dashboard-sidebar-text,#403f52)]/60 whitespace-nowrap truncate",
1414
1423
  children: user.email
1415
1424
  })
1416
1425
  ]
@@ -1420,7 +1429,7 @@ function Sidebar({ menuItems, logo, collapsedLogo, currentPath, linkComponent: L
1420
1429
  footerItems?.map((item) => renderMenuItem(item, isCollapsed, false)),
1421
1430
  onLogout && /* @__PURE__ */ jsxs("button", {
1422
1431
  onClick: onLogout,
1423
- className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer text-[var(--dashboard-sidebar-text,#FFFFFF)] hover:bg-[var(--dashboard-primary,#37a501)]/10", isCollapsed ? "justify-center" : "justify-start"),
1432
+ className: cn$23("w-full flex items-center px-4 py-3 rounded-lg text-sm font-medium cursor-pointer text-[var(--dashboard-sidebar-text,#403f52)] hover:bg-[var(--dashboard-primary,#ff521d)]/10", isCollapsed ? "justify-center" : "justify-start"),
1424
1433
  style: { transition: "background-color 200ms" },
1425
1434
  title: isCollapsed ? logoutLabel : void 0,
1426
1435
  children: [/* @__PURE__ */ jsx(LogOut, {
@@ -4196,10 +4205,10 @@ const defaultConfig = {
4196
4205
  surface: "#FFFFFF",
4197
4206
  textPrimary: "#0F172A",
4198
4207
  textSecondary: "#64748B",
4199
- sidebarBg: "#0F172A",
4200
- sidebarBorder: "#1E293B",
4201
- sidebarText: "#CBD5E1",
4202
- sidebarActiveText: "#FFFFFF",
4208
+ sidebarBg: "#f0f0f0",
4209
+ sidebarBorder: "#e0dfe3",
4210
+ sidebarText: "#403f52",
4211
+ sidebarActiveText: "#ff521d",
4203
4212
  statusSuccess: "#059669",
4204
4213
  statusDanger: "#DC2626",
4205
4214
  statusWarning: "#D97706",
@@ -4400,7 +4409,7 @@ function NotificationsProvider({ children }) {
4400
4409
  //#endregion
4401
4410
  //#region src/providers/DashboardProvider.tsx
4402
4411
  function CSSVarsInjector({ config }) {
4403
- useEffect(() => {
4412
+ useLayoutEffect(() => {
4404
4413
  const root = document.documentElement;
4405
4414
  const { colors } = config;
4406
4415
  root.style.setProperty("--dashboard-primary", colors.primary);