@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.cjs CHANGED
@@ -1422,10 +1422,10 @@ var DEFAULT_PALETTE = {
1422
1422
  warning: "#eab308",
1423
1423
  // Yellow
1424
1424
  layout: {
1425
- sidebarBg: "#0f172a",
1426
- // Dark slate-900
1427
- sidebarText: "#94a3b8",
1428
- // Slate-400
1425
+ sidebarBg: "#ffffff",
1426
+ // White (light mode default)
1427
+ sidebarText: "#334155",
1428
+ // Slate-700 (dark text for light sidebar)
1429
1429
  navbarBg: "#ffffff",
1430
1430
  // White
1431
1431
  navbarText: "#1e293b"
@@ -1450,25 +1450,29 @@ var PRESETS = [
1450
1450
  // Indigo
1451
1451
  secondary: "#475569",
1452
1452
  // Slate
1453
- ternary: "#a855f7",
1454
- // Purple
1453
+ ternary: "#f472b6",
1454
+ // Pink (was Purple — now distinct from primary)
1455
1455
  danger: "#ef4444",
1456
- success: "#22c55e",
1456
+ // Red
1457
+ success: "#34d399",
1458
+ // Emerald (distinct green tone)
1457
1459
  info: "#38bdf8",
1458
- alert: "#f97316",
1459
- warning: "#eab308",
1460
+ // Sky
1461
+ alert: "#fb923c",
1462
+ // Orange
1463
+ warning: "#fbbf24",
1464
+ // Amber
1460
1465
  layout: {
1461
1466
  sidebarBg: "#020617",
1462
- // Slate-950
1463
1467
  sidebarText: "#cbd5e1",
1464
1468
  navbarBg: "#0f172a",
1465
1469
  navbarText: "#f8fafc"
1466
1470
  },
1467
1471
  table: {
1468
- headerBg: "#1e293b",
1469
- headerText: "#e2e8f0",
1470
- rowBg: "#0f172a",
1471
- rowText: "#cbd5e1"
1472
+ headerBg: "#f8fafc",
1473
+ headerText: "#334155",
1474
+ rowBg: "#ffffff",
1475
+ rowText: "#1e293b"
1472
1476
  }
1473
1477
  }
1474
1478
  },
@@ -1478,25 +1482,30 @@ var PRESETS = [
1478
1482
  primary: "#f43f5e",
1479
1483
  // Rose
1480
1484
  secondary: "#64748b",
1485
+ // Slate
1481
1486
  ternary: "#fb923c",
1482
1487
  // Orange
1483
- danger: "#dc2626",
1484
- success: "#16a34a",
1485
- info: "#0ea5e9",
1486
- alert: "#f97316",
1487
- warning: "#facc15",
1488
+ danger: "#b91c1c",
1489
+ // Dark Red (distinct from Rose primary)
1490
+ success: "#2dd4bf",
1491
+ // Teal (NOT green — avoids confusion with primary hue)
1492
+ info: "#818cf8",
1493
+ // Indigo (distinct from sky/cyan)
1494
+ alert: "#f59e0b",
1495
+ // Amber (distinct from orange ternary)
1496
+ warning: "#fde047",
1497
+ // Yellow
1488
1498
  layout: {
1489
1499
  sidebarBg: "#0f050b",
1490
- // Deep rose-slate
1491
1500
  sidebarText: "#fda4af",
1492
1501
  navbarBg: "#1c0a15",
1493
1502
  navbarText: "#ffe4e6"
1494
1503
  },
1495
1504
  table: {
1496
- headerBg: "#2e1022",
1497
- headerText: "#fecdd3",
1498
- rowBg: "#1c0a15",
1499
- rowText: "#ffe4e6"
1505
+ headerBg: "#f8fafc",
1506
+ headerText: "#334155",
1507
+ rowBg: "#ffffff",
1508
+ rowText: "#1e293b"
1500
1509
  }
1501
1510
  }
1502
1511
  },
@@ -1506,25 +1515,30 @@ var PRESETS = [
1506
1515
  primary: "#0ea5e9",
1507
1516
  // Sky
1508
1517
  secondary: "#64748b",
1509
- ternary: "#14b8a6",
1510
- // Teal
1511
- danger: "#ef4444",
1512
- success: "#10b981",
1513
- info: "#3b82f6",
1514
- alert: "#f97316",
1515
- warning: "#eab308",
1518
+ // Slate
1519
+ ternary: "#a78bfa",
1520
+ // Violet (distinct from Sky primary)
1521
+ danger: "#f43f5e",
1522
+ // Rose (distinct red, not plain red)
1523
+ success: "#34d399",
1524
+ // Emerald
1525
+ info: "#6366f1",
1526
+ // Indigo (distinct from Sky primary)
1527
+ alert: "#fb923c",
1528
+ // Orange
1529
+ warning: "#fbbf24",
1530
+ // Amber
1516
1531
  layout: {
1517
1532
  sidebarBg: "#031b2f",
1518
- // Deep ocean blue
1519
1533
  sidebarText: "#7dd3fc",
1520
1534
  navbarBg: "#0b253c",
1521
1535
  navbarText: "#e0f2fe"
1522
1536
  },
1523
1537
  table: {
1524
- headerBg: "#0c2e4b",
1525
- headerText: "#bae6fd",
1526
- rowBg: "#0b253c",
1527
- rowText: "#e0f2fe"
1538
+ headerBg: "#f8fafc",
1539
+ headerText: "#334155",
1540
+ rowBg: "#ffffff",
1541
+ rowText: "#1e293b"
1528
1542
  }
1529
1543
  }
1530
1544
  },
@@ -1534,25 +1548,30 @@ var PRESETS = [
1534
1548
  primary: "#10b981",
1535
1549
  // Emerald
1536
1550
  secondary: "#64748b",
1551
+ // Slate
1537
1552
  ternary: "#84cc16",
1538
- // Lime
1553
+ // Lime (yellow-green, distinct from emerald)
1539
1554
  danger: "#ef4444",
1540
- success: "#16a34a",
1541
- info: "#06b6d4",
1542
- alert: "#f59e0b",
1543
- warning: "#eab308",
1555
+ // Red
1556
+ success: "#2dd4bf",
1557
+ // Teal (distinct cyan-green, NOT another green)
1558
+ info: "#38bdf8",
1559
+ // Sky blue (distinct from greens)
1560
+ alert: "#f97316",
1561
+ // Orange
1562
+ warning: "#fbbf24",
1563
+ // Amber (distinct from orange)
1544
1564
  layout: {
1545
1565
  sidebarBg: "#022c1b",
1546
- // Deep forest green
1547
1566
  sidebarText: "#6ee7b7",
1548
1567
  navbarBg: "#043e26",
1549
1568
  navbarText: "#d1fae5"
1550
1569
  },
1551
1570
  table: {
1552
- headerBg: "#064e3b",
1553
- headerText: "#a7f3d0",
1554
- rowBg: "#043e26",
1555
- rowText: "#d1fae5"
1571
+ headerBg: "#f8fafc",
1572
+ headerText: "#334155",
1573
+ rowBg: "#ffffff",
1574
+ rowText: "#1e293b"
1556
1575
  }
1557
1576
  }
1558
1577
  },
@@ -1562,25 +1581,30 @@ var PRESETS = [
1562
1581
  primary: "#8b5cf6",
1563
1582
  // Violet
1564
1583
  secondary: "#64748b",
1584
+ // Slate
1565
1585
  ternary: "#ec4899",
1566
- // Pink
1567
- danger: "#e11d48",
1568
- success: "#22c55e",
1569
- info: "#3b82f6",
1570
- alert: "#f97316",
1571
- warning: "#facc15",
1586
+ // Pink (distinct from violet)
1587
+ danger: "#ef4444",
1588
+ // Red
1589
+ success: "#34d399",
1590
+ // Emerald (clean green, distinct from violet)
1591
+ info: "#38bdf8",
1592
+ // Sky (distinct from violet/pink)
1593
+ alert: "#fb923c",
1594
+ // Orange
1595
+ warning: "#fbbf24",
1596
+ // Amber
1572
1597
  layout: {
1573
1598
  sidebarBg: "#1e0b36",
1574
- // Deep royal purple
1575
1599
  sidebarText: "#c084fc",
1576
1600
  navbarBg: "#291048",
1577
1601
  navbarText: "#f3e8ff"
1578
1602
  },
1579
1603
  table: {
1580
- headerBg: "#3b1764",
1581
- headerText: "#e9d5ff",
1582
- rowBg: "#291048",
1583
- rowText: "#f3e8ff"
1604
+ headerBg: "#f8fafc",
1605
+ headerText: "#334155",
1606
+ rowBg: "#ffffff",
1607
+ rowText: "#1e293b"
1584
1608
  }
1585
1609
  }
1586
1610
  }
@@ -1617,7 +1641,29 @@ var isLightColor2 = (hex) => {
1617
1641
  const brightness = (r * 299 + g * 587 + b * 114) / 1e3;
1618
1642
  return brightness > 140;
1619
1643
  };
1620
- function ITThemeProvider({ children, theme: theme2 }) {
1644
+ var isVeryDarkColor = (hex) => {
1645
+ if (!hex || typeof hex !== "string") return false;
1646
+ const color = hex.replace("#", "");
1647
+ let r = 0, g = 0, b = 0;
1648
+ if (color.length === 3) {
1649
+ r = parseInt(color[0] + color[0], 16);
1650
+ g = parseInt(color[1] + color[1], 16);
1651
+ b = parseInt(color[2] + color[2], 16);
1652
+ } else if (color.length === 6) {
1653
+ r = parseInt(color.substring(0, 2), 16);
1654
+ g = parseInt(color.substring(2, 4), 16);
1655
+ b = parseInt(color.substring(4, 6), 16);
1656
+ } else {
1657
+ return false;
1658
+ }
1659
+ const brightness = (r * 299 + g * 587 + b * 114) / 1e3;
1660
+ return brightness < 50;
1661
+ };
1662
+ function ITThemeProvider({
1663
+ children,
1664
+ theme: theme2,
1665
+ showFab = true
1666
+ }) {
1621
1667
  const [palette2, setPaletteState] = (0, import_react6.useState)(() => {
1622
1668
  const basePalette = {
1623
1669
  ...DEFAULT_PALETTE,
@@ -1625,6 +1671,9 @@ function ITThemeProvider({ children, theme: theme2 }) {
1625
1671
  layout: { ...DEFAULT_PALETTE.layout, ...theme2?.layout },
1626
1672
  table: { ...DEFAULT_PALETTE.table, ...theme2?.table }
1627
1673
  };
1674
+ if (!showFab) {
1675
+ return basePalette;
1676
+ }
1628
1677
  try {
1629
1678
  const saved = localStorage.getItem(STORAGE_KEY);
1630
1679
  if (saved) {
@@ -1674,13 +1723,15 @@ function ITThemeProvider({ children, theme: theme2 }) {
1674
1723
  localStorage.setItem("it-theme-custom-presets", JSON.stringify(updated));
1675
1724
  };
1676
1725
  const [resolvedTheme, setResolvedTheme] = (0, import_react6.useState)("light");
1677
- const [darkModeMode, setDarkModeMode] = (0, import_react6.useState)(() => {
1678
- const saved = localStorage.getItem("it-theme-dark-mode");
1679
- if (saved === "light" || saved === "dark" || saved === "system") {
1680
- return saved;
1726
+ const [darkModeMode, setDarkModeMode] = (0, import_react6.useState)(
1727
+ () => {
1728
+ const saved = localStorage.getItem("it-theme-dark-mode");
1729
+ if (saved === "light" || saved === "dark" || saved === "system") {
1730
+ return saved;
1731
+ }
1732
+ return "system";
1681
1733
  }
1682
- return "system";
1683
- });
1734
+ );
1684
1735
  (0, import_react6.useEffect)(() => {
1685
1736
  localStorage.setItem("it-theme-dark-mode", darkModeMode);
1686
1737
  const applyDarkMode = (isDark) => {
@@ -1706,22 +1757,42 @@ function ITThemeProvider({ children, theme: theme2 }) {
1706
1757
  applyDarkMode(darkModeMode === "dark");
1707
1758
  }
1708
1759
  }, [darkModeMode]);
1760
+ (0, import_react6.useEffect)(() => {
1761
+ if (!showFab) {
1762
+ setPaletteState({
1763
+ ...DEFAULT_PALETTE,
1764
+ ...theme2,
1765
+ layout: { ...DEFAULT_PALETTE.layout, ...theme2?.layout },
1766
+ table: { ...DEFAULT_PALETTE.table, ...theme2?.table }
1767
+ });
1768
+ }
1769
+ }, [theme2, showFab]);
1709
1770
  (0, import_react6.useEffect)(() => {
1710
1771
  const injectStyles = (obj, prefix = "") => {
1711
1772
  Object.entries(obj).forEach(([key, val]) => {
1712
1773
  if (typeof val === "object" && val !== null) {
1713
1774
  injectStyles(val, prefix + key + "-");
1714
1775
  } else {
1715
- document.documentElement.style.setProperty(`--color-${prefix}${key}`, val);
1776
+ document.documentElement.style.setProperty(
1777
+ `--color-${prefix}${key}`,
1778
+ val
1779
+ );
1716
1780
  if (prefix === "layout-") {
1717
- document.documentElement.style.setProperty(`--color-${key}`, val);
1781
+ document.documentElement.style.setProperty(
1782
+ `--color-${key}`,
1783
+ val
1784
+ );
1718
1785
  }
1719
1786
  }
1720
1787
  });
1721
1788
  };
1722
1789
  injectStyles(palette2);
1723
- localStorage.setItem(STORAGE_KEY, JSON.stringify(palette2));
1724
- let styleTag = document.getElementById("it-theme-dynamic-overrides");
1790
+ if (showFab) {
1791
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(palette2));
1792
+ }
1793
+ let styleTag = document.getElementById(
1794
+ "it-theme-dynamic-overrides"
1795
+ );
1725
1796
  if (!styleTag) {
1726
1797
  styleTag = document.createElement("style");
1727
1798
  styleTag.id = "it-theme-dynamic-overrides";
@@ -1763,29 +1834,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
1763
1834
  }
1764
1835
  } else {
1765
1836
  if (!isLightColor2(tableRowBg)) {
1766
- tableRowBg = `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
1837
+ tableRowBg = isVeryDarkColor(palette2.table.rowBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
1767
1838
  }
1768
1839
  if (isLightColor2(tableRowText)) {
1769
1840
  tableRowText = `color-mix(in srgb, ${palette2.table.rowText} 30%, #1e293b)`;
1841
+ } else if (!isLightColor2(tableRowText) && isVeryDarkColor(palette2.table.rowText)) {
1770
1842
  }
1771
1843
  if (!isLightColor2(tableHeaderBg)) {
1772
- tableHeaderBg = `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
1844
+ tableHeaderBg = isVeryDarkColor(palette2.table.headerBg) ? "#f1f5f9" : `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
1773
1845
  }
1774
1846
  if (isLightColor2(tableHeaderText)) {
1775
1847
  tableHeaderText = `color-mix(in srgb, ${palette2.table.headerText} 30%, #334155)`;
1848
+ } else if (!isLightColor2(tableHeaderText) && isVeryDarkColor(palette2.table.headerText)) {
1776
1849
  }
1777
1850
  if (!isLightColor2(navbarBg)) {
1778
- navbarBg = `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
1851
+ navbarBg = isVeryDarkColor(palette2.layout.navbarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
1779
1852
  }
1780
1853
  if (isLightColor2(navbarText)) {
1781
1854
  navbarText = `color-mix(in srgb, ${palette2.layout.navbarText} 30%, #1e293b)`;
1782
1855
  }
1783
1856
  if (!isLightColor2(sidebarBg)) {
1784
- sidebarBg = `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
1857
+ sidebarBg = isVeryDarkColor(palette2.layout.sidebarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
1785
1858
  }
1786
1859
  if (isLightColor2(sidebarText)) {
1787
1860
  sidebarText = `color-mix(in srgb, ${palette2.layout.sidebarText} 30%, #1e293b)`;
1788
1861
  }
1862
+ if (sidebarBg === "#ffffff" || isLightColor2(sidebarBg)) {
1863
+ sidebarText = "#334155";
1864
+ }
1789
1865
  }
1790
1866
  styleTag.innerHTML = `
1791
1867
  :root {
@@ -2887,7 +2963,7 @@ function ITThemeProvider({ children, theme: theme2 }) {
2887
2963
  },
2888
2964
  children: [
2889
2965
  children,
2890
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2966
+ showFab && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2891
2967
  "button",
2892
2968
  {
2893
2969
  onClick: () => setIsOpen((prev) => !prev),
@@ -2906,7 +2982,7 @@ function ITThemeProvider({ children, theme: theme2 }) {
2906
2982
  children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_md.MdPalette, { style: { width: "28px", height: "28px" } })
2907
2983
  }
2908
2984
  ),
2909
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2985
+ showFab && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2910
2986
  ITDialog,
2911
2987
  {
2912
2988
  isOpen,
@@ -2954,10 +3030,36 @@ function ITThemeProvider({ children, theme: theme2 }) {
2954
3030
  ),
2955
3031
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[10px] font-semibold truncate w-full mb-1 pr-4", children: preset.name }),
2956
3032
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-1", children: [
2957
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.primary } }),
2958
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.secondary } }),
2959
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.ternary } }),
2960
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.success } })
3033
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
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__ */ (0, import_jsx_runtime7.jsx)(
3041
+ "span",
3042
+ {
3043
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3044
+ style: {
3045
+ backgroundColor: preset.colors.secondary
3046
+ }
3047
+ }
3048
+ ),
3049
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3050
+ "span",
3051
+ {
3052
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3053
+ style: { backgroundColor: preset.colors.ternary }
3054
+ }
3055
+ ),
3056
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3057
+ "span",
3058
+ {
3059
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3060
+ style: { backgroundColor: preset.colors.success }
3061
+ }
3062
+ )
2961
3063
  ] })
2962
3064
  ]
2963
3065
  },
@@ -2978,10 +3080,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
2978
3080
  children: [
2979
3081
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-[10px] font-semibold truncate w-full mb-1", children: preset.name }),
2980
3082
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex gap-1", children: [
2981
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.primary } }),
2982
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.secondary } }),
2983
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.ternary } }),
2984
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "w-2.5 h-2.5 rounded-full border border-black/10", style: { backgroundColor: preset.colors.success } })
3083
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3084
+ "span",
3085
+ {
3086
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3087
+ style: { backgroundColor: preset.colors.primary }
3088
+ }
3089
+ ),
3090
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3091
+ "span",
3092
+ {
3093
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3094
+ style: { backgroundColor: preset.colors.secondary }
3095
+ }
3096
+ ),
3097
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3098
+ "span",
3099
+ {
3100
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3101
+ style: { backgroundColor: preset.colors.ternary }
3102
+ }
3103
+ ),
3104
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3105
+ "span",
3106
+ {
3107
+ className: "w-2.5 h-2.5 rounded-full border border-black/10",
3108
+ style: { backgroundColor: preset.colors.success }
3109
+ }
3110
+ )
2985
3111
  ] })
2986
3112
  ]
2987
3113
  },
@@ -4245,8 +4371,8 @@ function ITTable({
4245
4371
  return value;
4246
4372
  }
4247
4373
  };
4248
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_clsx9.default)("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
4249
- title && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "bg-white px-6 py-5 border-b border-secondary-100", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
4374
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: (0, import_clsx9.default)("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "rounded-xl shadow-sm border border-secondary-200 overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4375
+ title && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "px-6 py-5 border-b border-secondary-100", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
4250
4376
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
4251
4377
  "table",
4252
4378
  {
@@ -4300,7 +4426,7 @@ function ITTable({
4300
4426
  ]
4301
4427
  }
4302
4428
  ) }),
4303
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "bg-white rounded-b-xl border-t border-secondary-200 px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4429
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "rounded-b-xl border-t border-secondary-200 px-6 py-4", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4304
4430
  ITPagination,
4305
4431
  {
4306
4432
  currentPage,
@@ -4509,13 +4635,13 @@ function ITDataTable({
4509
4635
  }
4510
4636
  };
4511
4637
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_clsx10.default)("space-y-4 w-full relative", containerClassName), children: [
4512
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
4513
- title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "bg-white px-6 py-5 border-b border-secondary-100 flex justify-between items-center", children: [
4638
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "rounded-xl shadow-sm border border-secondary-200 overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4639
+ title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "px-6 py-5 border-b border-secondary-100 flex justify-between items-center", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
4514
4640
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
4515
4641
  isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "text-secondary-400", children: loadingIndicator || /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fa7.FaSpinner, { className: "animate-spin text-primary-500 text-xl" }) })
4516
4642
  ] }),
4517
4643
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "overflow-x-auto relative min-h-[200px]", children: [
4518
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-white/40 backdrop-blur-[2px] transition-all duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("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__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
4644
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-white/40 backdrop-blur-[2px] transition-all duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("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__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
4519
4645
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fa7.FaSpinner, { className: "animate-spin text-primary-500 text-4xl" }),
4520
4646
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "text-sm font-semibold text-secondary-600 animate-pulse", children: "Cargando datos..." })
4521
4647
  ] }) }) }),
@@ -4555,7 +4681,7 @@ function ITDataTable({
4555
4681
  )
4556
4682
  ] })
4557
4683
  ] }),
4558
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "bg-white rounded-b-xl border-t border-secondary-200 px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4684
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "rounded-b-xl border-t border-secondary-200 px-6 py-4", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4559
4685
  ITPagination,
4560
4686
  {
4561
4687
  currentPage,