@axzydev/axzy_ui_system 1.0.169 → 1.1.0

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.d.cts CHANGED
@@ -916,6 +916,7 @@ interface ITThemePalette {
916
916
  interface ITThemeProviderProps {
917
917
  theme?: Partial<ITThemePalette>;
918
918
  children: React.ReactNode;
919
+ showFab?: boolean;
919
920
  }
920
921
 
921
922
  interface ITThemeContextType {
@@ -935,7 +936,7 @@ declare const useITTheme: () => ITThemeContextType;
935
936
  * si se usa fuera de ITThemeProvider (no lanza error).
936
937
  */
937
938
  declare const useITThemeSafe: () => ITThemeContextType | undefined;
938
- declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
939
+ declare function ITThemeProvider({ children, theme, showFab, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
939
940
 
940
941
  interface ITTimePickerProps {
941
942
  name: string;
package/dist/index.d.ts CHANGED
@@ -916,6 +916,7 @@ interface ITThemePalette {
916
916
  interface ITThemeProviderProps {
917
917
  theme?: Partial<ITThemePalette>;
918
918
  children: React.ReactNode;
919
+ showFab?: boolean;
919
920
  }
920
921
 
921
922
  interface ITThemeContextType {
@@ -935,7 +936,7 @@ declare const useITTheme: () => ITThemeContextType;
935
936
  * si se usa fuera de ITThemeProvider (no lanza error).
936
937
  */
937
938
  declare const useITThemeSafe: () => ITThemeContextType | undefined;
938
- declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
939
+ declare function ITThemeProvider({ children, theme, showFab, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
939
940
 
940
941
  interface ITTimePickerProps {
941
942
  name: string;
package/dist/index.js CHANGED
@@ -1372,10 +1372,10 @@ var DEFAULT_PALETTE = {
1372
1372
  warning: "#eab308",
1373
1373
  // Yellow
1374
1374
  layout: {
1375
- sidebarBg: "#0f172a",
1376
- // Dark slate-900
1377
- sidebarText: "#94a3b8",
1378
- // Slate-400
1375
+ sidebarBg: "#ffffff",
1376
+ // White (light mode default)
1377
+ sidebarText: "#334155",
1378
+ // Slate-700 (dark text for light sidebar)
1379
1379
  navbarBg: "#ffffff",
1380
1380
  // White
1381
1381
  navbarText: "#1e293b"
@@ -1400,25 +1400,29 @@ var PRESETS = [
1400
1400
  // Indigo
1401
1401
  secondary: "#475569",
1402
1402
  // Slate
1403
- ternary: "#a855f7",
1404
- // Purple
1403
+ ternary: "#f472b6",
1404
+ // Pink (was Purple — now distinct from primary)
1405
1405
  danger: "#ef4444",
1406
- success: "#22c55e",
1406
+ // Red
1407
+ success: "#34d399",
1408
+ // Emerald (distinct green tone)
1407
1409
  info: "#38bdf8",
1408
- alert: "#f97316",
1409
- warning: "#eab308",
1410
+ // Sky
1411
+ alert: "#fb923c",
1412
+ // Orange
1413
+ warning: "#fbbf24",
1414
+ // Amber
1410
1415
  layout: {
1411
1416
  sidebarBg: "#020617",
1412
- // Slate-950
1413
1417
  sidebarText: "#cbd5e1",
1414
1418
  navbarBg: "#0f172a",
1415
1419
  navbarText: "#f8fafc"
1416
1420
  },
1417
1421
  table: {
1418
- headerBg: "#1e293b",
1419
- headerText: "#e2e8f0",
1420
- rowBg: "#0f172a",
1421
- rowText: "#cbd5e1"
1422
+ headerBg: "#f8fafc",
1423
+ headerText: "#334155",
1424
+ rowBg: "#ffffff",
1425
+ rowText: "#1e293b"
1422
1426
  }
1423
1427
  }
1424
1428
  },
@@ -1428,25 +1432,30 @@ var PRESETS = [
1428
1432
  primary: "#f43f5e",
1429
1433
  // Rose
1430
1434
  secondary: "#64748b",
1435
+ // Slate
1431
1436
  ternary: "#fb923c",
1432
1437
  // Orange
1433
- danger: "#dc2626",
1434
- success: "#16a34a",
1435
- info: "#0ea5e9",
1436
- alert: "#f97316",
1437
- warning: "#facc15",
1438
+ danger: "#b91c1c",
1439
+ // Dark Red (distinct from Rose primary)
1440
+ success: "#2dd4bf",
1441
+ // Teal (NOT green — avoids confusion with primary hue)
1442
+ info: "#818cf8",
1443
+ // Indigo (distinct from sky/cyan)
1444
+ alert: "#f59e0b",
1445
+ // Amber (distinct from orange ternary)
1446
+ warning: "#fde047",
1447
+ // Yellow
1438
1448
  layout: {
1439
1449
  sidebarBg: "#0f050b",
1440
- // Deep rose-slate
1441
1450
  sidebarText: "#fda4af",
1442
1451
  navbarBg: "#1c0a15",
1443
1452
  navbarText: "#ffe4e6"
1444
1453
  },
1445
1454
  table: {
1446
- headerBg: "#2e1022",
1447
- headerText: "#fecdd3",
1448
- rowBg: "#1c0a15",
1449
- rowText: "#ffe4e6"
1455
+ headerBg: "#f8fafc",
1456
+ headerText: "#334155",
1457
+ rowBg: "#ffffff",
1458
+ rowText: "#1e293b"
1450
1459
  }
1451
1460
  }
1452
1461
  },
@@ -1456,25 +1465,30 @@ var PRESETS = [
1456
1465
  primary: "#0ea5e9",
1457
1466
  // Sky
1458
1467
  secondary: "#64748b",
1459
- ternary: "#14b8a6",
1460
- // Teal
1461
- danger: "#ef4444",
1462
- success: "#10b981",
1463
- info: "#3b82f6",
1464
- alert: "#f97316",
1465
- warning: "#eab308",
1468
+ // Slate
1469
+ ternary: "#a78bfa",
1470
+ // Violet (distinct from Sky primary)
1471
+ danger: "#f43f5e",
1472
+ // Rose (distinct red, not plain red)
1473
+ success: "#34d399",
1474
+ // Emerald
1475
+ info: "#6366f1",
1476
+ // Indigo (distinct from Sky primary)
1477
+ alert: "#fb923c",
1478
+ // Orange
1479
+ warning: "#fbbf24",
1480
+ // Amber
1466
1481
  layout: {
1467
1482
  sidebarBg: "#031b2f",
1468
- // Deep ocean blue
1469
1483
  sidebarText: "#7dd3fc",
1470
1484
  navbarBg: "#0b253c",
1471
1485
  navbarText: "#e0f2fe"
1472
1486
  },
1473
1487
  table: {
1474
- headerBg: "#0c2e4b",
1475
- headerText: "#bae6fd",
1476
- rowBg: "#0b253c",
1477
- rowText: "#e0f2fe"
1488
+ headerBg: "#f8fafc",
1489
+ headerText: "#334155",
1490
+ rowBg: "#ffffff",
1491
+ rowText: "#1e293b"
1478
1492
  }
1479
1493
  }
1480
1494
  },
@@ -1484,25 +1498,30 @@ var PRESETS = [
1484
1498
  primary: "#10b981",
1485
1499
  // Emerald
1486
1500
  secondary: "#64748b",
1501
+ // Slate
1487
1502
  ternary: "#84cc16",
1488
- // Lime
1503
+ // Lime (yellow-green, distinct from emerald)
1489
1504
  danger: "#ef4444",
1490
- success: "#16a34a",
1491
- info: "#06b6d4",
1492
- alert: "#f59e0b",
1493
- warning: "#eab308",
1505
+ // Red
1506
+ success: "#2dd4bf",
1507
+ // Teal (distinct cyan-green, NOT another green)
1508
+ info: "#38bdf8",
1509
+ // Sky blue (distinct from greens)
1510
+ alert: "#f97316",
1511
+ // Orange
1512
+ warning: "#fbbf24",
1513
+ // Amber (distinct from orange)
1494
1514
  layout: {
1495
1515
  sidebarBg: "#022c1b",
1496
- // Deep forest green
1497
1516
  sidebarText: "#6ee7b7",
1498
1517
  navbarBg: "#043e26",
1499
1518
  navbarText: "#d1fae5"
1500
1519
  },
1501
1520
  table: {
1502
- headerBg: "#064e3b",
1503
- headerText: "#a7f3d0",
1504
- rowBg: "#043e26",
1505
- rowText: "#d1fae5"
1521
+ headerBg: "#f8fafc",
1522
+ headerText: "#334155",
1523
+ rowBg: "#ffffff",
1524
+ rowText: "#1e293b"
1506
1525
  }
1507
1526
  }
1508
1527
  },
@@ -1512,25 +1531,30 @@ var PRESETS = [
1512
1531
  primary: "#8b5cf6",
1513
1532
  // Violet
1514
1533
  secondary: "#64748b",
1534
+ // Slate
1515
1535
  ternary: "#ec4899",
1516
- // Pink
1517
- danger: "#e11d48",
1518
- success: "#22c55e",
1519
- info: "#3b82f6",
1520
- alert: "#f97316",
1521
- warning: "#facc15",
1536
+ // Pink (distinct from violet)
1537
+ danger: "#ef4444",
1538
+ // Red
1539
+ success: "#34d399",
1540
+ // Emerald (clean green, distinct from violet)
1541
+ info: "#38bdf8",
1542
+ // Sky (distinct from violet/pink)
1543
+ alert: "#fb923c",
1544
+ // Orange
1545
+ warning: "#fbbf24",
1546
+ // Amber
1522
1547
  layout: {
1523
1548
  sidebarBg: "#1e0b36",
1524
- // Deep royal purple
1525
1549
  sidebarText: "#c084fc",
1526
1550
  navbarBg: "#291048",
1527
1551
  navbarText: "#f3e8ff"
1528
1552
  },
1529
1553
  table: {
1530
- headerBg: "#3b1764",
1531
- headerText: "#e9d5ff",
1532
- rowBg: "#291048",
1533
- rowText: "#f3e8ff"
1554
+ headerBg: "#f8fafc",
1555
+ headerText: "#334155",
1556
+ rowBg: "#ffffff",
1557
+ rowText: "#1e293b"
1534
1558
  }
1535
1559
  }
1536
1560
  }
@@ -1567,7 +1591,29 @@ var isLightColor2 = (hex) => {
1567
1591
  const brightness = (r * 299 + g * 587 + b * 114) / 1e3;
1568
1592
  return brightness > 140;
1569
1593
  };
1570
- function ITThemeProvider({ children, theme: theme2 }) {
1594
+ var isVeryDarkColor = (hex) => {
1595
+ if (!hex || typeof hex !== "string") return false;
1596
+ const color = hex.replace("#", "");
1597
+ let r = 0, g = 0, b = 0;
1598
+ if (color.length === 3) {
1599
+ r = parseInt(color[0] + color[0], 16);
1600
+ g = parseInt(color[1] + color[1], 16);
1601
+ b = parseInt(color[2] + color[2], 16);
1602
+ } else if (color.length === 6) {
1603
+ r = parseInt(color.substring(0, 2), 16);
1604
+ g = parseInt(color.substring(2, 4), 16);
1605
+ b = parseInt(color.substring(4, 6), 16);
1606
+ } else {
1607
+ return false;
1608
+ }
1609
+ const brightness = (r * 299 + g * 587 + b * 114) / 1e3;
1610
+ return brightness < 50;
1611
+ };
1612
+ function ITThemeProvider({
1613
+ children,
1614
+ theme: theme2,
1615
+ showFab = true
1616
+ }) {
1571
1617
  const [palette2, setPaletteState] = useState4(() => {
1572
1618
  const basePalette = {
1573
1619
  ...DEFAULT_PALETTE,
@@ -1575,6 +1621,9 @@ function ITThemeProvider({ children, theme: theme2 }) {
1575
1621
  layout: { ...DEFAULT_PALETTE.layout, ...theme2?.layout },
1576
1622
  table: { ...DEFAULT_PALETTE.table, ...theme2?.table }
1577
1623
  };
1624
+ if (!showFab) {
1625
+ return basePalette;
1626
+ }
1578
1627
  try {
1579
1628
  const saved = localStorage.getItem(STORAGE_KEY);
1580
1629
  if (saved) {
@@ -1624,13 +1673,15 @@ function ITThemeProvider({ children, theme: theme2 }) {
1624
1673
  localStorage.setItem("it-theme-custom-presets", JSON.stringify(updated));
1625
1674
  };
1626
1675
  const [resolvedTheme, setResolvedTheme] = useState4("light");
1627
- const [darkModeMode, setDarkModeMode] = useState4(() => {
1628
- const saved = localStorage.getItem("it-theme-dark-mode");
1629
- if (saved === "light" || saved === "dark" || saved === "system") {
1630
- return saved;
1676
+ const [darkModeMode, setDarkModeMode] = useState4(
1677
+ () => {
1678
+ const saved = localStorage.getItem("it-theme-dark-mode");
1679
+ if (saved === "light" || saved === "dark" || saved === "system") {
1680
+ return saved;
1681
+ }
1682
+ return "system";
1631
1683
  }
1632
- return "system";
1633
- });
1684
+ );
1634
1685
  useEffect4(() => {
1635
1686
  localStorage.setItem("it-theme-dark-mode", darkModeMode);
1636
1687
  const applyDarkMode = (isDark) => {
@@ -1656,22 +1707,42 @@ function ITThemeProvider({ children, theme: theme2 }) {
1656
1707
  applyDarkMode(darkModeMode === "dark");
1657
1708
  }
1658
1709
  }, [darkModeMode]);
1710
+ useEffect4(() => {
1711
+ if (!showFab) {
1712
+ setPaletteState({
1713
+ ...DEFAULT_PALETTE,
1714
+ ...theme2,
1715
+ layout: { ...DEFAULT_PALETTE.layout, ...theme2?.layout },
1716
+ table: { ...DEFAULT_PALETTE.table, ...theme2?.table }
1717
+ });
1718
+ }
1719
+ }, [theme2, showFab]);
1659
1720
  useEffect4(() => {
1660
1721
  const injectStyles = (obj, prefix = "") => {
1661
1722
  Object.entries(obj).forEach(([key, val]) => {
1662
1723
  if (typeof val === "object" && val !== null) {
1663
1724
  injectStyles(val, prefix + key + "-");
1664
1725
  } else {
1665
- document.documentElement.style.setProperty(`--color-${prefix}${key}`, val);
1726
+ document.documentElement.style.setProperty(
1727
+ `--color-${prefix}${key}`,
1728
+ val
1729
+ );
1666
1730
  if (prefix === "layout-") {
1667
- document.documentElement.style.setProperty(`--color-${key}`, val);
1731
+ document.documentElement.style.setProperty(
1732
+ `--color-${key}`,
1733
+ val
1734
+ );
1668
1735
  }
1669
1736
  }
1670
1737
  });
1671
1738
  };
1672
1739
  injectStyles(palette2);
1673
- localStorage.setItem(STORAGE_KEY, JSON.stringify(palette2));
1674
- let styleTag = document.getElementById("it-theme-dynamic-overrides");
1740
+ if (showFab) {
1741
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(palette2));
1742
+ }
1743
+ let styleTag = document.getElementById(
1744
+ "it-theme-dynamic-overrides"
1745
+ );
1675
1746
  if (!styleTag) {
1676
1747
  styleTag = document.createElement("style");
1677
1748
  styleTag.id = "it-theme-dynamic-overrides";
@@ -1713,29 +1784,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
1713
1784
  }
1714
1785
  } else {
1715
1786
  if (!isLightColor2(tableRowBg)) {
1716
- tableRowBg = `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
1787
+ tableRowBg = isVeryDarkColor(palette2.table.rowBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
1717
1788
  }
1718
1789
  if (isLightColor2(tableRowText)) {
1719
1790
  tableRowText = `color-mix(in srgb, ${palette2.table.rowText} 30%, #1e293b)`;
1791
+ } else if (!isLightColor2(tableRowText) && isVeryDarkColor(palette2.table.rowText)) {
1720
1792
  }
1721
1793
  if (!isLightColor2(tableHeaderBg)) {
1722
- tableHeaderBg = `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
1794
+ tableHeaderBg = isVeryDarkColor(palette2.table.headerBg) ? "#f1f5f9" : `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
1723
1795
  }
1724
1796
  if (isLightColor2(tableHeaderText)) {
1725
1797
  tableHeaderText = `color-mix(in srgb, ${palette2.table.headerText} 30%, #334155)`;
1798
+ } else if (!isLightColor2(tableHeaderText) && isVeryDarkColor(palette2.table.headerText)) {
1726
1799
  }
1727
1800
  if (!isLightColor2(navbarBg)) {
1728
- navbarBg = `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
1801
+ navbarBg = isVeryDarkColor(palette2.layout.navbarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
1729
1802
  }
1730
1803
  if (isLightColor2(navbarText)) {
1731
1804
  navbarText = `color-mix(in srgb, ${palette2.layout.navbarText} 30%, #1e293b)`;
1732
1805
  }
1733
1806
  if (!isLightColor2(sidebarBg)) {
1734
- sidebarBg = `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
1807
+ sidebarBg = isVeryDarkColor(palette2.layout.sidebarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
1735
1808
  }
1736
1809
  if (isLightColor2(sidebarText)) {
1737
1810
  sidebarText = `color-mix(in srgb, ${palette2.layout.sidebarText} 30%, #1e293b)`;
1738
1811
  }
1812
+ if (sidebarBg === "#ffffff" || isLightColor2(sidebarBg)) {
1813
+ sidebarText = "#334155";
1814
+ }
1739
1815
  }
1740
1816
  styleTag.innerHTML = `
1741
1817
  :root {
@@ -2837,7 +2913,7 @@ function ITThemeProvider({ children, theme: theme2 }) {
2837
2913
  },
2838
2914
  children: [
2839
2915
  children,
2840
- /* @__PURE__ */ jsx7(
2916
+ showFab && /* @__PURE__ */ jsx7(
2841
2917
  "button",
2842
2918
  {
2843
2919
  onClick: () => setIsOpen((prev) => !prev),
@@ -2856,7 +2932,7 @@ function ITThemeProvider({ children, theme: theme2 }) {
2856
2932
  children: /* @__PURE__ */ jsx7(MdPalette, { style: { width: "28px", height: "28px" } })
2857
2933
  }
2858
2934
  ),
2859
- /* @__PURE__ */ jsx7(
2935
+ showFab && /* @__PURE__ */ jsx7(
2860
2936
  ITDialog,
2861
2937
  {
2862
2938
  isOpen,
@@ -2904,10 +2980,36 @@ function ITThemeProvider({ children, theme: theme2 }) {
2904
2980
  ),
2905
2981
  /* @__PURE__ */ jsx7("span", { className: "text-[10px] font-semibold truncate w-full mb-1 pr-4", children: preset.name }),
2906
2982
  /* @__PURE__ */ jsxs5("div", { className: "flex gap-1", children: [
2907
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.primary } }),
2908
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.secondary } }),
2909
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.ternary } }),
2910
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.success } })
2983
+ /* @__PURE__ */ jsx7(
2984
+ "span",
2985
+ {
2986
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
2987
+ style: { backgroundColor: preset.colors.primary }
2988
+ }
2989
+ ),
2990
+ /* @__PURE__ */ jsx7(
2991
+ "span",
2992
+ {
2993
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
2994
+ style: {
2995
+ backgroundColor: preset.colors.secondary
2996
+ }
2997
+ }
2998
+ ),
2999
+ /* @__PURE__ */ jsx7(
3000
+ "span",
3001
+ {
3002
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3003
+ style: { backgroundColor: preset.colors.ternary }
3004
+ }
3005
+ ),
3006
+ /* @__PURE__ */ jsx7(
3007
+ "span",
3008
+ {
3009
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3010
+ style: { backgroundColor: preset.colors.success }
3011
+ }
3012
+ )
2911
3013
  ] })
2912
3014
  ]
2913
3015
  },
@@ -2928,10 +3030,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
2928
3030
  children: [
2929
3031
  /* @__PURE__ */ jsx7("span", { className: "text-[10px] font-semibold truncate w-full mb-1", children: preset.name }),
2930
3032
  /* @__PURE__ */ jsxs5("div", { className: "flex gap-1", children: [
2931
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.primary } }),
2932
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.secondary } }),
2933
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.ternary } }),
2934
- /* @__PURE__ */ jsx7("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.success } })
3033
+ /* @__PURE__ */ jsx7(
3034
+ "span",
3035
+ {
3036
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3037
+ style: { backgroundColor: preset.colors.primary }
3038
+ }
3039
+ ),
3040
+ /* @__PURE__ */ jsx7(
3041
+ "span",
3042
+ {
3043
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3044
+ style: { backgroundColor: preset.colors.secondary }
3045
+ }
3046
+ ),
3047
+ /* @__PURE__ */ jsx7(
3048
+ "span",
3049
+ {
3050
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3051
+ style: { backgroundColor: preset.colors.ternary }
3052
+ }
3053
+ ),
3054
+ /* @__PURE__ */ jsx7(
3055
+ "span",
3056
+ {
3057
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3058
+ style: { backgroundColor: preset.colors.success }
3059
+ }
3060
+ )
2935
3061
  ] })
2936
3062
  ]
2937
3063
  },
@@ -4199,8 +4325,8 @@ function ITTable({
4199
4325
  return value;
4200
4326
  }
4201
4327
  };
4202
- return /* @__PURE__ */ jsx12("div", { className: clsx9("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs10("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
4203
- title && /* @__PURE__ */ jsx12("div", { className: "bg-white px-6 py-5 border-b border-secondary-100", children: /* @__PURE__ */ jsx12("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
4328
+ return /* @__PURE__ */ jsx12("div", { className: clsx9("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs10("div", { className: "rounded-xl shadow-sm border border-secondary-200 overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4329
+ title && /* @__PURE__ */ jsx12("div", { className: "px-6 py-5 border-b border-secondary-100", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ jsx12("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
4204
4330
  /* @__PURE__ */ jsx12("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs10(
4205
4331
  "table",
4206
4332
  {
@@ -4254,7 +4380,7 @@ function ITTable({
4254
4380
  ]
4255
4381
  }
4256
4382
  ) }),
4257
- /* @__PURE__ */ jsx12("div", { className: "bg-white rounded-b-xl border-t border-secondary-200 px-6 py-4", children: /* @__PURE__ */ jsx12(
4383
+ /* @__PURE__ */ jsx12("div", { className: "rounded-b-xl border-t border-secondary-200 px-6 py-4", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ jsx12(
4258
4384
  ITPagination,
4259
4385
  {
4260
4386
  currentPage,
@@ -4463,13 +4589,13 @@ function ITDataTable({
4463
4589
  }
4464
4590
  };
4465
4591
  return /* @__PURE__ */ jsxs11("div", { className: clsx10("space-y-4 w-full relative", containerClassName), children: [
4466
- /* @__PURE__ */ jsxs11("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
4467
- title && /* @__PURE__ */ jsxs11("div", { className: "bg-white px-6 py-5 border-b border-secondary-100 flex justify-between items-center", children: [
4592
+ /* @__PURE__ */ jsxs11("div", { className: "rounded-xl shadow-sm border border-secondary-200 overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4593
+ title && /* @__PURE__ */ jsxs11("div", { className: "px-6 py-5 border-b border-secondary-100 flex justify-between items-center", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4468
4594
  /* @__PURE__ */ jsx13("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
4469
4595
  isLoading && /* @__PURE__ */ jsx13("div", { className: "text-secondary-400", children: loadingIndicator || /* @__PURE__ */ jsx13(FaSpinner2, { className: "animate-spin text-primary-500 text-xl" }) })
4470
4596
  ] }),
4471
4597
  /* @__PURE__ */ jsxs11("div", { className: "overflow-x-auto relative min-h-[200px]", children: [
4472
- isLoading && /* @__PURE__ */ jsx13("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-white/40 backdrop-blur-[2px] transition-all duration-300", children: /* @__PURE__ */ jsx13("div", { className: "flex flex-col items-center gap-3 bg-white p-6 rounded-2xl shadow-xl border border-secondary-100 animate-in fade-in zoom-in duration-300", children: loadingIndicator || /* @__PURE__ */ jsxs11(Fragment4, { children: [
4598
+ isLoading && /* @__PURE__ */ jsx13("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-white/40 backdrop-blur-[2px] transition-all duration-300", children: /* @__PURE__ */ jsx13("div", { className: "flex flex-col items-center gap-3 p-6 rounded-2xl shadow-xl border border-secondary-100 animate-in fade-in zoom-in duration-300", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: loadingIndicator || /* @__PURE__ */ jsxs11(Fragment4, { children: [
4473
4599
  /* @__PURE__ */ jsx13(FaSpinner2, { className: "animate-spin text-primary-500 text-4xl" }),
4474
4600
  /* @__PURE__ */ jsx13("span", { className: "text-sm font-semibold text-secondary-600 animate-pulse", children: "Cargando datos..." })
4475
4601
  ] }) }) }),
@@ -4509,7 +4635,7 @@ function ITDataTable({
4509
4635
  )
4510
4636
  ] })
4511
4637
  ] }),
4512
- /* @__PURE__ */ jsx13("div", { className: "bg-white rounded-b-xl border-t border-secondary-200 px-6 py-4", children: /* @__PURE__ */ jsx13(
4638
+ /* @__PURE__ */ jsx13("div", { className: "rounded-b-xl border-t border-secondary-200 px-6 py-4", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ jsx13(
4513
4639
  ITPagination,
4514
4640
  {
4515
4641
  currentPage,