@axzydev/axzy_ui_system 1.0.169 → 1.0.170
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 +196 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +196 -86
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -935,7 +935,7 @@ declare const useITTheme: () => ITThemeContextType;
|
|
|
935
935
|
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
936
936
|
*/
|
|
937
937
|
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
938
|
-
declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
938
|
+
declare function ITThemeProvider({ children, theme, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
939
939
|
|
|
940
940
|
interface ITTimePickerProps {
|
|
941
941
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -935,7 +935,7 @@ declare const useITTheme: () => ITThemeContextType;
|
|
|
935
935
|
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
936
936
|
*/
|
|
937
937
|
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
938
|
-
declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
938
|
+
declare function ITThemeProvider({ children, theme, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
939
939
|
|
|
940
940
|
interface ITTimePickerProps {
|
|
941
941
|
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: "#
|
|
1376
|
-
//
|
|
1377
|
-
sidebarText: "#
|
|
1378
|
-
// Slate-
|
|
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: "#
|
|
1404
|
-
// Purple
|
|
1403
|
+
ternary: "#f472b6",
|
|
1404
|
+
// Pink (was Purple — now distinct from primary)
|
|
1405
1405
|
danger: "#ef4444",
|
|
1406
|
-
|
|
1406
|
+
// Red
|
|
1407
|
+
success: "#34d399",
|
|
1408
|
+
// Emerald (distinct green tone)
|
|
1407
1409
|
info: "#38bdf8",
|
|
1408
|
-
|
|
1409
|
-
|
|
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: "#
|
|
1419
|
-
headerText: "#
|
|
1420
|
-
rowBg: "#
|
|
1421
|
-
rowText: "#
|
|
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: "#
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
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: "#
|
|
1447
|
-
headerText: "#
|
|
1448
|
-
rowBg: "#
|
|
1449
|
-
rowText: "#
|
|
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
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
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: "#
|
|
1475
|
-
headerText: "#
|
|
1476
|
-
rowBg: "#
|
|
1477
|
-
rowText: "#
|
|
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
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
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: "#
|
|
1503
|
-
headerText: "#
|
|
1504
|
-
rowBg: "#
|
|
1505
|
-
rowText: "#
|
|
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: "#
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
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: "#
|
|
1531
|
-
headerText: "#
|
|
1532
|
-
rowBg: "#
|
|
1533
|
-
rowText: "#
|
|
1554
|
+
headerBg: "#f8fafc",
|
|
1555
|
+
headerText: "#334155",
|
|
1556
|
+
rowBg: "#ffffff",
|
|
1557
|
+
rowText: "#1e293b"
|
|
1534
1558
|
}
|
|
1535
1559
|
}
|
|
1536
1560
|
}
|
|
@@ -1567,7 +1591,28 @@ var isLightColor2 = (hex) => {
|
|
|
1567
1591
|
const brightness = (r * 299 + g * 587 + b * 114) / 1e3;
|
|
1568
1592
|
return brightness > 140;
|
|
1569
1593
|
};
|
|
1570
|
-
|
|
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
|
+
}) {
|
|
1571
1616
|
const [palette2, setPaletteState] = useState4(() => {
|
|
1572
1617
|
const basePalette = {
|
|
1573
1618
|
...DEFAULT_PALETTE,
|
|
@@ -1624,13 +1669,15 @@ function ITThemeProvider({ children, theme: theme2 }) {
|
|
|
1624
1669
|
localStorage.setItem("it-theme-custom-presets", JSON.stringify(updated));
|
|
1625
1670
|
};
|
|
1626
1671
|
const [resolvedTheme, setResolvedTheme] = useState4("light");
|
|
1627
|
-
const [darkModeMode, setDarkModeMode] = useState4(
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1672
|
+
const [darkModeMode, setDarkModeMode] = useState4(
|
|
1673
|
+
() => {
|
|
1674
|
+
const saved = localStorage.getItem("it-theme-dark-mode");
|
|
1675
|
+
if (saved === "light" || saved === "dark" || saved === "system") {
|
|
1676
|
+
return saved;
|
|
1677
|
+
}
|
|
1678
|
+
return "system";
|
|
1631
1679
|
}
|
|
1632
|
-
|
|
1633
|
-
});
|
|
1680
|
+
);
|
|
1634
1681
|
useEffect4(() => {
|
|
1635
1682
|
localStorage.setItem("it-theme-dark-mode", darkModeMode);
|
|
1636
1683
|
const applyDarkMode = (isDark) => {
|
|
@@ -1662,16 +1709,24 @@ function ITThemeProvider({ children, theme: theme2 }) {
|
|
|
1662
1709
|
if (typeof val === "object" && val !== null) {
|
|
1663
1710
|
injectStyles(val, prefix + key + "-");
|
|
1664
1711
|
} else {
|
|
1665
|
-
document.documentElement.style.setProperty(
|
|
1712
|
+
document.documentElement.style.setProperty(
|
|
1713
|
+
`--color-${prefix}${key}`,
|
|
1714
|
+
val
|
|
1715
|
+
);
|
|
1666
1716
|
if (prefix === "layout-") {
|
|
1667
|
-
document.documentElement.style.setProperty(
|
|
1717
|
+
document.documentElement.style.setProperty(
|
|
1718
|
+
`--color-${key}`,
|
|
1719
|
+
val
|
|
1720
|
+
);
|
|
1668
1721
|
}
|
|
1669
1722
|
}
|
|
1670
1723
|
});
|
|
1671
1724
|
};
|
|
1672
1725
|
injectStyles(palette2);
|
|
1673
1726
|
localStorage.setItem(STORAGE_KEY, JSON.stringify(palette2));
|
|
1674
|
-
let styleTag = document.getElementById(
|
|
1727
|
+
let styleTag = document.getElementById(
|
|
1728
|
+
"it-theme-dynamic-overrides"
|
|
1729
|
+
);
|
|
1675
1730
|
if (!styleTag) {
|
|
1676
1731
|
styleTag = document.createElement("style");
|
|
1677
1732
|
styleTag.id = "it-theme-dynamic-overrides";
|
|
@@ -1713,29 +1768,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
|
|
|
1713
1768
|
}
|
|
1714
1769
|
} else {
|
|
1715
1770
|
if (!isLightColor2(tableRowBg)) {
|
|
1716
|
-
tableRowBg = `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
|
|
1771
|
+
tableRowBg = isVeryDarkColor(palette2.table.rowBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.table.rowBg} 8%, #ffffff)`;
|
|
1717
1772
|
}
|
|
1718
1773
|
if (isLightColor2(tableRowText)) {
|
|
1719
1774
|
tableRowText = `color-mix(in srgb, ${palette2.table.rowText} 30%, #1e293b)`;
|
|
1775
|
+
} else if (!isLightColor2(tableRowText) && isVeryDarkColor(palette2.table.rowText)) {
|
|
1720
1776
|
}
|
|
1721
1777
|
if (!isLightColor2(tableHeaderBg)) {
|
|
1722
|
-
tableHeaderBg = `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
|
|
1778
|
+
tableHeaderBg = isVeryDarkColor(palette2.table.headerBg) ? "#f1f5f9" : `color-mix(in srgb, ${palette2.table.headerBg} 12%, #f8fafc)`;
|
|
1723
1779
|
}
|
|
1724
1780
|
if (isLightColor2(tableHeaderText)) {
|
|
1725
1781
|
tableHeaderText = `color-mix(in srgb, ${palette2.table.headerText} 30%, #334155)`;
|
|
1782
|
+
} else if (!isLightColor2(tableHeaderText) && isVeryDarkColor(palette2.table.headerText)) {
|
|
1726
1783
|
}
|
|
1727
1784
|
if (!isLightColor2(navbarBg)) {
|
|
1728
|
-
navbarBg = `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
|
|
1785
|
+
navbarBg = isVeryDarkColor(palette2.layout.navbarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
|
|
1729
1786
|
}
|
|
1730
1787
|
if (isLightColor2(navbarText)) {
|
|
1731
1788
|
navbarText = `color-mix(in srgb, ${palette2.layout.navbarText} 30%, #1e293b)`;
|
|
1732
1789
|
}
|
|
1733
1790
|
if (!isLightColor2(sidebarBg)) {
|
|
1734
|
-
sidebarBg = `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
|
|
1791
|
+
sidebarBg = isVeryDarkColor(palette2.layout.sidebarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.sidebarBg} 8%, #ffffff)`;
|
|
1735
1792
|
}
|
|
1736
1793
|
if (isLightColor2(sidebarText)) {
|
|
1737
1794
|
sidebarText = `color-mix(in srgb, ${palette2.layout.sidebarText} 30%, #1e293b)`;
|
|
1738
1795
|
}
|
|
1796
|
+
if (sidebarBg === "#ffffff" || isLightColor2(sidebarBg)) {
|
|
1797
|
+
sidebarText = "#334155";
|
|
1798
|
+
}
|
|
1739
1799
|
}
|
|
1740
1800
|
styleTag.innerHTML = `
|
|
1741
1801
|
:root {
|
|
@@ -2904,10 +2964,36 @@ function ITThemeProvider({ children, theme: theme2 }) {
|
|
|
2904
2964
|
),
|
|
2905
2965
|
/* @__PURE__ */ jsx7("span", { className: "text-[10px] font-semibold truncate w-full mb-1 pr-4", children: preset.name }),
|
|
2906
2966
|
/* @__PURE__ */ jsxs5("div", { className: "flex gap-1", children: [
|
|
2907
|
-
/* @__PURE__ */ jsx7(
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2967
|
+
/* @__PURE__ */ jsx7(
|
|
2968
|
+
"span",
|
|
2969
|
+
{
|
|
2970
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
2971
|
+
style: { backgroundColor: preset.colors.primary }
|
|
2972
|
+
}
|
|
2973
|
+
),
|
|
2974
|
+
/* @__PURE__ */ jsx7(
|
|
2975
|
+
"span",
|
|
2976
|
+
{
|
|
2977
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
2978
|
+
style: {
|
|
2979
|
+
backgroundColor: preset.colors.secondary
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
),
|
|
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.ternary }
|
|
2988
|
+
}
|
|
2989
|
+
),
|
|
2990
|
+
/* @__PURE__ */ jsx7(
|
|
2991
|
+
"span",
|
|
2992
|
+
{
|
|
2993
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
2994
|
+
style: { backgroundColor: preset.colors.success }
|
|
2995
|
+
}
|
|
2996
|
+
)
|
|
2911
2997
|
] })
|
|
2912
2998
|
]
|
|
2913
2999
|
},
|
|
@@ -2928,10 +3014,34 @@ function ITThemeProvider({ children, theme: theme2 }) {
|
|
|
2928
3014
|
children: [
|
|
2929
3015
|
/* @__PURE__ */ jsx7("span", { className: "text-[10px] font-semibold truncate w-full mb-1", children: preset.name }),
|
|
2930
3016
|
/* @__PURE__ */ jsxs5("div", { className: "flex gap-1", children: [
|
|
2931
|
-
/* @__PURE__ */ jsx7(
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
3017
|
+
/* @__PURE__ */ jsx7(
|
|
3018
|
+
"span",
|
|
3019
|
+
{
|
|
3020
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
3021
|
+
style: { backgroundColor: preset.colors.primary }
|
|
3022
|
+
}
|
|
3023
|
+
),
|
|
3024
|
+
/* @__PURE__ */ jsx7(
|
|
3025
|
+
"span",
|
|
3026
|
+
{
|
|
3027
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
3028
|
+
style: { backgroundColor: preset.colors.secondary }
|
|
3029
|
+
}
|
|
3030
|
+
),
|
|
3031
|
+
/* @__PURE__ */ jsx7(
|
|
3032
|
+
"span",
|
|
3033
|
+
{
|
|
3034
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
3035
|
+
style: { backgroundColor: preset.colors.ternary }
|
|
3036
|
+
}
|
|
3037
|
+
),
|
|
3038
|
+
/* @__PURE__ */ jsx7(
|
|
3039
|
+
"span",
|
|
3040
|
+
{
|
|
3041
|
+
className: "w-2.5 h-2.5 rounded-full border border-black/10",
|
|
3042
|
+
style: { backgroundColor: preset.colors.success }
|
|
3043
|
+
}
|
|
3044
|
+
)
|
|
2935
3045
|
] })
|
|
2936
3046
|
]
|
|
2937
3047
|
},
|
|
@@ -4199,8 +4309,8 @@ function ITTable({
|
|
|
4199
4309
|
return value;
|
|
4200
4310
|
}
|
|
4201
4311
|
};
|
|
4202
|
-
return /* @__PURE__ */ jsx12("div", { className: clsx9("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs10("div", { className: "
|
|
4203
|
-
title && /* @__PURE__ */ jsx12("div", { className: "
|
|
4312
|
+
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: [
|
|
4313
|
+
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
4314
|
/* @__PURE__ */ jsx12("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs10(
|
|
4205
4315
|
"table",
|
|
4206
4316
|
{
|
|
@@ -4254,7 +4364,7 @@ function ITTable({
|
|
|
4254
4364
|
]
|
|
4255
4365
|
}
|
|
4256
4366
|
) }),
|
|
4257
|
-
/* @__PURE__ */ jsx12("div", { className: "
|
|
4367
|
+
/* @__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
4368
|
ITPagination,
|
|
4259
4369
|
{
|
|
4260
4370
|
currentPage,
|
|
@@ -4463,13 +4573,13 @@ function ITDataTable({
|
|
|
4463
4573
|
}
|
|
4464
4574
|
};
|
|
4465
4575
|
return /* @__PURE__ */ jsxs11("div", { className: clsx10("space-y-4 w-full relative", containerClassName), children: [
|
|
4466
|
-
/* @__PURE__ */ jsxs11("div", { className: "
|
|
4467
|
-
title && /* @__PURE__ */ jsxs11("div", { className: "
|
|
4576
|
+
/* @__PURE__ */ jsxs11("div", { className: "rounded-xl shadow-sm border border-secondary-200 overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
|
|
4577
|
+
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
4578
|
/* @__PURE__ */ jsx13("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
|
|
4469
4579
|
isLoading && /* @__PURE__ */ jsx13("div", { className: "text-secondary-400", children: loadingIndicator || /* @__PURE__ */ jsx13(FaSpinner2, { className: "animate-spin text-primary-500 text-xl" }) })
|
|
4470
4580
|
] }),
|
|
4471
4581
|
/* @__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
|
|
4582
|
+
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
4583
|
/* @__PURE__ */ jsx13(FaSpinner2, { className: "animate-spin text-primary-500 text-4xl" }),
|
|
4474
4584
|
/* @__PURE__ */ jsx13("span", { className: "text-sm font-semibold text-secondary-600 animate-pulse", children: "Cargando datos..." })
|
|
4475
4585
|
] }) }) }),
|
|
@@ -4509,7 +4619,7 @@ function ITDataTable({
|
|
|
4509
4619
|
)
|
|
4510
4620
|
] })
|
|
4511
4621
|
] }),
|
|
4512
|
-
/* @__PURE__ */ jsx13("div", { className: "
|
|
4622
|
+
/* @__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
4623
|
ITPagination,
|
|
4514
4624
|
{
|
|
4515
4625
|
currentPage,
|