@axzydev/axzy_ui_system 1.2.9 → 1.2.12

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.
Files changed (66) hide show
  1. package/README.md +6 -0
  2. package/dist/index.cjs +313 -242
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.d.cts +142 -6
  7. package/dist/index.d.ts +142 -6
  8. package/dist/index.js +313 -242
  9. package/dist/index.js.map +1 -1
  10. package/package.json +4 -3
  11. package/snippets/axzy-ui-system.code-snippets +547 -0
  12. package/src/App.tsx +37 -34
  13. package/src/components/avatar/avatar.props.ts +12 -1
  14. package/src/components/avatar/avatar.stories.tsx +19 -0
  15. package/src/components/avatar/avatar.tsx +27 -4
  16. package/src/components/calendar/calendar.tsx +1 -1
  17. package/src/components/card/card.tsx +11 -8
  18. package/src/components/confirm-dialog/confirm-dialog.tsx +1 -1
  19. package/src/components/data-table/dataTable.props.ts +10 -0
  20. package/src/components/data-table/dataTable.tsx +27 -16
  21. package/src/components/date-picker/datePicker.tsx +1 -1
  22. package/src/components/dialog/dialog.tsx +3 -2
  23. package/src/components/divider/divider.tsx +1 -1
  24. package/src/components/drawer/drawer.tsx +1 -1
  25. package/src/components/dropfile/dropfile.props.ts +6 -0
  26. package/src/components/dropfile/dropfile.tsx +65 -30
  27. package/src/components/form-builder/fieldRenderer.tsx +3 -3
  28. package/src/components/input/input.tsx +7 -7
  29. package/src/components/layout/layout.tsx +1 -1
  30. package/src/components/loader/loader.tsx +1 -1
  31. package/src/components/navbar/navbar.tsx +10 -10
  32. package/src/components/pagination/pagination.tsx +11 -11
  33. package/src/components/popover/popover.tsx +1 -1
  34. package/src/components/search-select/search-select.tsx +11 -11
  35. package/src/components/searchTable/components/EditableCell.tsx +1 -1
  36. package/src/components/searchTable/components/PaginationControls.tsx +2 -2
  37. package/src/components/searchTable/components/PaginationInfo.tsx +1 -1
  38. package/src/components/searchTable/components/SearchAndSortBar.tsx +1 -1
  39. package/src/components/searchTable/components/SearchInput.tsx +1 -1
  40. package/src/components/searchTable/components/SortButton.tsx +3 -3
  41. package/src/components/searchTable/components/TableHeader.tsx +1 -1
  42. package/src/components/searchTable/components/TableRow.tsx +4 -4
  43. package/src/components/searchTable/searchTable.tsx +2 -2
  44. package/src/components/select/select.tsx +8 -10
  45. package/src/components/sidebar/sidebar.tsx +29 -29
  46. package/src/components/slider/slider.tsx +3 -3
  47. package/src/components/stepper/stepper.props.ts +4 -0
  48. package/src/components/stepper/stepper.tsx +5 -5
  49. package/src/components/table/table.props.ts +21 -3
  50. package/src/components/table/table.tsx +27 -16
  51. package/src/components/tabs/tabs.tsx +4 -4
  52. package/src/components/textarea/textarea.tsx +3 -3
  53. package/src/components/theme-provider/themeProvider.props.ts +21 -3
  54. package/src/components/theme-provider/themeProvider.tsx +32 -32
  55. package/src/components/time-picker/timePicker.tsx +5 -5
  56. package/src/components/toast/toast.tsx +1 -1
  57. package/src/components/tooltip/tooltip.tsx +1 -1
  58. package/src/components/topbar/topbar.tsx +7 -7
  59. package/src/dev.css +1 -1
  60. package/src/hooks/useClickOutside.ts +8 -0
  61. package/src/hooks/useTableState.ts +5 -2
  62. package/src/index.css +24 -1
  63. package/src/showcases/HomeShowcase.tsx +95 -3
  64. package/src/theme/theme.ts +38 -17
  65. package/src/types/field.types.ts +70 -7
  66. package/src/utils/styles.ts +5 -5
package/dist/index.cjs CHANGED
@@ -99,6 +99,10 @@ var import_react = require("react");
99
99
  var useClickOutside = (ref, callback) => {
100
100
  (0, import_react.useEffect)(() => {
101
101
  const handleClickOutside = (event) => {
102
+ const target = event.target;
103
+ const clickedDialog = target?.closest("[data-it-dialog]");
104
+ const currentDialog = ref.current?.closest("[data-it-dialog]");
105
+ if (clickedDialog && clickedDialog !== currentDialog) return;
102
106
  if (ref.current && !ref.current.contains(event.target)) {
103
107
  callback();
104
108
  }
@@ -285,11 +289,11 @@ function useTableState({
285
289
  const [totalPages, setTotalPages] = (0, import_react4.useState)(1);
286
290
  const goToPage = (0, import_react4.useCallback)(
287
291
  (page) => {
288
- if (page >= 1 && page <= totalPages) {
292
+ if (page >= 1) {
289
293
  setCurrentPage(page);
290
294
  }
291
295
  },
292
- [totalPages]
296
+ []
293
297
  );
294
298
  const handleItemsPerPageChange = (0, import_react4.useCallback)((value) => {
295
299
  setItemsPerPage(value);
@@ -442,7 +446,8 @@ var sizeMap = {
442
446
  };
443
447
  var DEFAULT_COLOR = "bg-primary-600";
444
448
  var DEFAULT_BG = "var(--color-primary-600)";
445
- var DEFAULT_SHADOW = "0 4px 14px 0 rgba(37, 99, 235, 0.35)";
449
+ var DEFAULT_SHADOW = "0 6px 16px -2px rgba(37, 99, 235, 0.25)";
450
+ var isRawColorValue = (value) => /^#|^rgb|^hsl|^var\(/i.test(value.trim());
446
451
  function ITAvatar({
447
452
  src,
448
453
  alt = "",
@@ -454,17 +459,18 @@ function ITAvatar({
454
459
  onClick
455
460
  }) {
456
461
  const { container, text } = sizeMap[size];
457
- const useInlineStyle = !color || color === DEFAULT_COLOR;
462
+ const useDefaultStyle = !color || color === DEFAULT_COLOR;
463
+ const useRawColorStyle = !useDefaultStyle && isRawColorValue(color);
458
464
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
459
465
  "div",
460
466
  {
461
467
  className: (0, import_clsx2.default)(
462
468
  "relative inline-flex items-center justify-center rounded-full flex-shrink-0 overflow-hidden text-white font-bold tracking-wide",
463
469
  container,
464
- !useInlineStyle && color,
470
+ !useDefaultStyle && !useRawColorStyle && color,
465
471
  className
466
472
  ),
467
- style: useInlineStyle ? { backgroundColor: DEFAULT_BG, boxShadow: DEFAULT_SHADOW } : void 0,
473
+ style: useDefaultStyle ? { backgroundColor: DEFAULT_BG, boxShadow: DEFAULT_SHADOW } : useRawColorStyle ? { backgroundColor: color } : void 0,
468
474
  onClick,
469
475
  role: onClick ? "button" : void 0,
470
476
  tabIndex: onClick ? 0 : void 0,
@@ -686,7 +692,7 @@ var components = {
686
692
  hover: semanticColors.primary[600],
687
693
  active: semanticColors.primary[700],
688
694
  focus: `0 0 0 2px ${semanticColors.primary[200]}`,
689
- borderRadius: "0.375rem",
695
+ borderRadius: "var(--radius-md)",
690
696
  padding: "0.5rem 1rem",
691
697
  fontSize: "0.875rem",
692
698
  fontWeight: "600",
@@ -697,7 +703,7 @@ var components = {
697
703
  color: "#ffffff",
698
704
  hover: semanticColors.secondary[600],
699
705
  focus: `0 0 0 2px ${semanticColors.secondary[200]}`,
700
- borderRadius: "0.375rem",
706
+ borderRadius: "var(--radius-md)",
701
707
  padding: "0.5rem 1rem",
702
708
  fontSize: "0.875rem",
703
709
  fontWeight: "600"
@@ -707,41 +713,41 @@ var components = {
707
713
  color: "#ffffff",
708
714
  hover: semanticColors.success[600],
709
715
  focus: `0 0 0 2px ${semanticColors.success[200]}`,
710
- borderRadius: "0.375rem"
716
+ borderRadius: "var(--radius-md)"
711
717
  },
712
718
  danger: {
713
719
  backgroundColor: semanticColors.danger[500],
714
720
  color: "#ffffff",
715
721
  hover: semanticColors.danger[600],
716
722
  focus: `0 0 0 2px ${semanticColors.danger[200]}`,
717
- borderRadius: "0.375rem"
723
+ borderRadius: "var(--radius-md)"
718
724
  },
719
725
  error: {
720
726
  backgroundColor: semanticColors.danger[500],
721
727
  color: "#ffffff",
722
728
  hover: semanticColors.danger[600],
723
- borderRadius: "0.375rem"
729
+ borderRadius: "var(--radius-md)"
724
730
  },
725
731
  warning: {
726
732
  backgroundColor: semanticColors.warning[500],
727
733
  color: "#ffffff",
728
734
  hover: semanticColors.warning[600],
729
735
  focus: `0 0 0 2px ${semanticColors.warning[200]}`,
730
- borderRadius: "0.375rem"
736
+ borderRadius: "var(--radius-md)"
731
737
  },
732
738
  info: {
733
739
  backgroundColor: semanticColors.info[500],
734
740
  color: "#ffffff",
735
741
  hover: semanticColors.info[600],
736
742
  focus: `0 0 0 2px ${semanticColors.info[200]}`,
737
- borderRadius: "0.375rem"
743
+ borderRadius: "var(--radius-md)"
738
744
  },
739
745
  purple: {
740
746
  backgroundColor: semanticColors.purple[500],
741
747
  color: "#ffffff",
742
748
  hover: semanticColors.purple[600],
743
749
  focus: `0 0 0 2px ${semanticColors.purple[200]}`,
744
- borderRadius: "0.375rem"
750
+ borderRadius: "var(--radius-md)"
745
751
  },
746
752
  outline: {
747
753
  backgroundColor: "transparent",
@@ -749,7 +755,7 @@ var components = {
749
755
  borderColor: semanticColors.primary[600],
750
756
  borderWidth: "2px",
751
757
  hover: semanticColors.primary[50],
752
- borderRadius: "0.375rem"
758
+ borderRadius: "var(--radius-md)"
753
759
  }
754
760
  },
755
761
  badge: {
@@ -807,19 +813,19 @@ var components = {
807
813
  },
808
814
  card: {
809
815
  backgroundColor: "var(--card-bg, #ffffff)",
810
- borderRadius: "1rem",
816
+ borderRadius: "var(--radius-2xl)",
811
817
  borderColor: `var(--card-border, ${semanticColors.gray[200]})`,
812
818
  borderWidth: "1px",
813
- shadow: "var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))",
819
+ shadow: "var(--card-shadow, var(--shadow-md))",
814
820
  hover: {
815
- shadow: "var(--card-shadow-hover, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))"
821
+ shadow: "var(--card-shadow-hover, var(--shadow-lg))"
816
822
  },
817
823
  header: {
818
824
  backgroundColor: `var(--card-header-bg, ${semanticColors.gray[50]})`,
819
825
  borderBottom: `1px solid var(--card-header-border, var(--color-secondary-200))`,
820
826
  padding: "1rem 1.5rem",
821
- borderTopLeftRadius: "1rem",
822
- borderTopRightRadius: "1rem"
827
+ borderTopLeftRadius: "var(--radius-2xl)",
828
+ borderTopRightRadius: "var(--radius-2xl)"
823
829
  },
824
830
  body: {
825
831
  padding: "1.5rem"
@@ -828,7 +834,7 @@ var components = {
828
834
  input: {
829
835
  backgroundColor: "var(--input-bg, #ffffff)",
830
836
  borderColor: `var(--input-border, ${semanticColors.gray[300]})`,
831
- borderRadius: "0.5rem",
837
+ borderRadius: "var(--radius-md)",
832
838
  padding: "0.5rem 0.75rem",
833
839
  fontSize: "0.875rem",
834
840
  focus: {
@@ -894,8 +900,8 @@ var components = {
894
900
  },
895
901
  content: {
896
902
  backgroundColor: "var(--modal-bg, #ffffff)",
897
- borderRadius: "1rem",
898
- shadow: "var(--modal-shadow, 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))"
903
+ borderRadius: "var(--radius-2xl)",
904
+ shadow: "var(--modal-shadow, var(--shadow-xl))"
899
905
  },
900
906
  header: {
901
907
  padding: "1.5rem 1.5rem 0.5rem 1.5rem",
@@ -958,10 +964,23 @@ var typography = {
958
964
  relaxed: "1.75"
959
965
  }
960
966
  };
967
+ var zIndex = {
968
+ /** Barras sticky (ITTopbar) y overlays de navegación (sidebar/aside móvil). */
969
+ navOverlay: 40,
970
+ /** Paneles deslizantes (ITDrawer). */
971
+ drawer: 50,
972
+ /** Diálogos modales (ITDialog, ITConfirmDialog). */
973
+ modal: 60,
974
+ /** UI flotante contextual: dropdowns, ITPopover, ITTooltip, ITDatePicker/ITTimePicker. */
975
+ floating: 70,
976
+ /** Notificaciones globales (ITToast) — siempre por encima de todo lo demás. */
977
+ toast: 80
978
+ };
961
979
  var theme = {
962
980
  palette,
963
981
  colors: semanticColors,
964
982
  typography,
983
+ zIndex,
965
984
  ...components
966
985
  };
967
986
 
@@ -1427,7 +1446,7 @@ var ITCalendar = ({
1427
1446
  },
1428
1447
  year
1429
1448
  )) }) : mode === "month" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "p-4", children: [
1430
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "grid grid-cols-7 mb-2", children: ["Lun", "Mar", "Mi\xE9", "Jue", "Vie", "S\xE1b", "Dom"].map((day) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ITText, { as: "div", className: "text-center text-xs font-semibold text-gray-400 uppercase py-1", children: day }, day)) }),
1449
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "grid grid-cols-7 mb-2", children: ["Lun", "Mar", "Mi\xE9", "Jue", "Vie", "S\xE1b", "Dom"].map((day) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ITText, { as: "div", className: "text-center text-xs font-semibold text-secondary-400 uppercase py-1", children: day }, day)) }),
1431
1450
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "grid grid-cols-7 gap-1", children: monthDays.map((day) => {
1432
1451
  const isDisabled = isDateDisabled(day);
1433
1452
  const isCurrentMonth = (0, import_date_fns.isSameMonth)(day, currentDate);
@@ -1668,11 +1687,14 @@ function ITCard({
1668
1687
  const [isHovered, setIsHovered] = (0, import_react7.useState)(false);
1669
1688
  const containerStyle = {
1670
1689
  backgroundColor: "var(--card-bg, #ffffff)",
1671
- borderColor: "var(--card-border, #e2e8f0)",
1690
+ borderColor: "var(--card-border, rgba(15, 23, 42, 0.06))",
1672
1691
  borderWidth: "1px",
1673
- borderRadius: "var(--card-radius, 0.75rem)",
1674
- boxShadow: onClick ? isHovered ? "0 8px 25px -5px rgba(0, 0, 0, 0.1)" : "0 1px 3px 0 rgba(0, 0, 0, 0.05)" : "none",
1675
- transition: onClick ? "all 0.2s ease-in-out" : "none",
1692
+ borderRadius: "var(--card-radius, var(--radius-2xl))",
1693
+ // Soft depth: every card floats a little at rest; interactive cards
1694
+ // gain visual weight on hover instead of appearing flat until clicked.
1695
+ boxShadow: onClick ? isHovered ? "var(--shadow-lg)" : "var(--shadow-sm)" : "var(--shadow-sm)",
1696
+ transition: onClick ? "box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out" : "none",
1697
+ transform: onClick && isHovered ? "translateY(-2px)" : "translateY(0)",
1676
1698
  cursor: onClick ? "pointer" : "default"
1677
1699
  };
1678
1700
  const bodyStyle = {
@@ -1704,13 +1726,13 @@ function ITCard({
1704
1726
  children: title
1705
1727
  }
1706
1728
  ),
1707
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ITText, { as: "div", className: "text-gray-600", children })
1729
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ITText, { as: "div", className: "text-secondary-600", children })
1708
1730
  ] }),
1709
1731
  actions && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1710
1732
  "div",
1711
1733
  {
1712
1734
  className: (0, import_clsx7.default)(
1713
- "p-4 border-t border-gray-100 mt-auto",
1735
+ "p-4 border-t border-secondary-100 mt-auto",
1714
1736
  actionClassName
1715
1737
  ),
1716
1738
  children: actions
@@ -1792,7 +1814,7 @@ function ITConfirmDialog({
1792
1814
  loading = false
1793
1815
  }) {
1794
1816
  if (!isOpen) return null;
1795
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fixed inset-0 z-[300] flex items-center justify-center p-4", children: [
1817
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fixed inset-0 z-[60] flex items-center justify-center p-4", children: [
1796
1818
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "absolute inset-0 bg-black/40 backdrop-blur-sm", onClick: onClose }),
1797
1819
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1798
1820
  "div",
@@ -1846,12 +1868,25 @@ var import_clsx10 = __toESM(require("clsx"), 1);
1846
1868
  function inputLabel(error) {
1847
1869
  return (0, import_clsx10.default)(
1848
1870
  "text-sm font-medium",
1849
- error ? "text-red-500" : "text-gray-700 dark:text-slate-300"
1871
+ error ? "text-danger-500" : "text-secondary-700 dark:text-secondary-300"
1850
1872
  );
1851
1873
  }
1852
- var inputError = "text-red-500 text-xs mt-1";
1874
+ var inputError = "text-danger-500 text-xs mt-1";
1853
1875
  var iconAbsoluteLeft = "absolute inset-y-0 left-0 flex items-center pl-3 z-10";
1854
1876
  var iconAbsoluteRight = "absolute inset-y-0 right-0 flex items-center pr-3 z-10";
1877
+ var tableContainer = "rounded-xl shadow-sm border border-secondary-200 overflow-hidden";
1878
+ var tableHeaderRow = "bg-secondary-50 border-b border-secondary-200 text-xs uppercase tracking-wider font-semibold text-secondary-500";
1879
+ function tableHeaderCell(className) {
1880
+ return (0, import_clsx10.default)("px-4 py-4 align-top", className);
1881
+ }
1882
+ var tableBody = "divide-y divide-secondary-100";
1883
+ var tableRow = "hover:bg-secondary-50/50 transition-colors duration-150 group";
1884
+ function tableCell(className) {
1885
+ return (0, import_clsx10.default)("px-4 py-3 align-middle", className);
1886
+ }
1887
+ var tableActionsCell = "flex items-center justify-center gap-2";
1888
+ var tableCellText = "text-secondary-700 font-medium";
1889
+ var tableEmptyContent = "flex flex-col items-center justify-center text-secondary-400";
1855
1890
  var gridColsClasses = {
1856
1891
  1: "grid-cols-1",
1857
1892
  2: "grid-cols-2",
@@ -2240,14 +2275,14 @@ function ITInput({
2240
2275
  type === "checkbox" && "form-checkbox rounded",
2241
2276
  className,
2242
2277
  { [disabledOverlay]: disabled },
2243
- { "border-red-500": hasError }
2278
+ { "border-danger-500": hasError }
2244
2279
  )
2245
2280
  }
2246
2281
  ),
2247
- label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { htmlFor: name, className: "text-sm text-gray-700 dark:text-slate-300 select-none", children: [
2282
+ label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { htmlFor: name, className: "text-sm text-secondary-700 dark:text-slate-300 select-none", children: [
2248
2283
  label,
2249
2284
  " ",
2250
- required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "span", className: "text-red-500", children: "*" })
2285
+ required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "span", className: "text-danger-500", children: "*" })
2251
2286
  ] })
2252
2287
  ] })
2253
2288
  ) : (
@@ -2263,7 +2298,7 @@ function ITInput({
2263
2298
  ),
2264
2299
  children: [
2265
2300
  label,
2266
- required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
2301
+ required && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
2267
2302
  ]
2268
2303
  }
2269
2304
  ),
@@ -2342,7 +2377,7 @@ function ITInput({
2342
2377
  "button",
2343
2378
  {
2344
2379
  type: "button",
2345
- className: "absolute inset-y-0 right-0 flex items-center pr-3 z-10 text-gray-400 hover:text-gray-600 focus:outline-none",
2380
+ className: "absolute inset-y-0 right-0 flex items-center pr-3 z-10 text-secondary-400 hover:text-secondary-600 focus:outline-none",
2346
2381
  onClick: () => setShowPassword(!showPassword),
2347
2382
  tabIndex: -1,
2348
2383
  children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
@@ -2362,11 +2397,11 @@ function ITInput({
2362
2397
  ] })
2363
2398
  ),
2364
2399
  hasError && !isCheckboxOrRadio && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "p", className: inputError, children: errorMessage }) }),
2365
- showHintLength && (minLength || maxLength) && !isCheckboxOrRadio && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(ITText, { as: "p", className: "text-gray-500", children: [
2400
+ showHintLength && (minLength || maxLength) && !isCheckboxOrRadio && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(ITText, { as: "p", className: "text-secondary-500", children: [
2366
2401
  currentLength,
2367
2402
  maxLength && `/${maxLength}`
2368
2403
  ] }) }),
2369
- isCheckboxOrRadio && hasError && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "p", className: "text-red-500", children: errorMessage }) })
2404
+ isCheckboxOrRadio && hasError && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ITText, { as: "p", className: "text-danger-500", children: errorMessage }) })
2370
2405
  ] });
2371
2406
  }
2372
2407
 
@@ -2442,13 +2477,10 @@ function ITSelect({
2442
2477
  {
2443
2478
  as: "label",
2444
2479
  htmlFor: name,
2445
- className: (0, import_clsx12.default)(
2446
- "text-sm font-medium text-gray-700 dark:text-slate-300 pt-0",
2447
- { "text-red-500": hasError }
2448
- ),
2480
+ className: inputLabel(hasError),
2449
2481
  children: [
2450
2482
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", children: label }),
2451
- required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
2483
+ required && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
2452
2484
  ]
2453
2485
  }
2454
2486
  ),
@@ -2476,22 +2508,22 @@ function ITSelect({
2476
2508
  ),
2477
2509
  style: getStyle(),
2478
2510
  children: [
2479
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", children: placeholder || "Selecciona una opci\xF3n" }) }),
2480
- readOnly ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value, disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", children: options.find((option) => option[valueField] === value)?.[labelField] }) }) : options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2511
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value: "", children: placeholder || "Selecciona una opci\xF3n" }),
2512
+ readOnly ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("option", { value, disabled: true, children: options.find((option) => option[valueField] === value)?.[labelField] }) : options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2481
2513
  "option",
2482
2514
  {
2483
2515
  value: option[valueField],
2484
2516
  title: option[labelField],
2485
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "span", children: option[labelField] })
2517
+ children: option[labelField]
2486
2518
  },
2487
2519
  option[valueField]
2488
2520
  ))
2489
2521
  ]
2490
2522
  }
2491
2523
  ),
2492
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-gray-500", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_fa5.FaAngleDown, {}) })
2524
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-secondary-500", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_fa5.FaAngleDown, {}) })
2493
2525
  ] }),
2494
- hasError && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "p", className: "text-red-500 text-xs", children: errorMessage }) })
2526
+ hasError && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ITText, { as: "p", className: inputError, children: errorMessage }) })
2495
2527
  ] })
2496
2528
  ] }) });
2497
2529
  }
@@ -2577,7 +2609,7 @@ function ITPagination({
2577
2609
  {
2578
2610
  className: (0, import_clsx13.default)(
2579
2611
  baseItemClass,
2580
- currentPage === 1 ? "text-gray-300 cursor-not-allowed" : "text-gray-500 hover:bg-gray-100"
2612
+ currentPage === 1 ? "text-secondary-300 cursor-not-allowed" : "text-secondary-500 hover:bg-secondary-100"
2581
2613
  ),
2582
2614
  onClick: handlePrevious,
2583
2615
  "aria-disabled": currentPage === 1,
@@ -2590,7 +2622,7 @@ function ITPagination({
2590
2622
  ITText,
2591
2623
  {
2592
2624
  as: "div",
2593
- className: "flex items-center justify-center w-8 h-8 select-none text-gray-400",
2625
+ className: "flex items-center justify-center w-8 h-8 select-none text-secondary-400",
2594
2626
  children: "\u2026"
2595
2627
  },
2596
2628
  `dots-${idx}`
@@ -2603,7 +2635,7 @@ function ITPagination({
2603
2635
  as: "div",
2604
2636
  className: (0, import_clsx13.default)(
2605
2637
  baseItemClass,
2606
- isActive ? "text-white" : "text-gray-600 hover:bg-gray-100"
2638
+ isActive ? "text-white" : "text-secondary-600 hover:bg-secondary-100"
2607
2639
  ),
2608
2640
  style: {
2609
2641
  backgroundColor: isActive ? resolvedBgColor : void 0,
@@ -2621,7 +2653,7 @@ function ITPagination({
2621
2653
  {
2622
2654
  className: (0, import_clsx13.default)(
2623
2655
  baseItemClass,
2624
- currentPage === totalPages ? "text-gray-300 cursor-not-allowed" : "text-gray-500 hover:bg-gray-100"
2656
+ currentPage === totalPages ? "text-secondary-300 cursor-not-allowed" : "text-secondary-500 hover:bg-secondary-100"
2625
2657
  ),
2626
2658
  onClick: handleNext,
2627
2659
  "aria-disabled": currentPage === totalPages,
@@ -2633,8 +2665,8 @@ function ITPagination({
2633
2665
  const startItem = Math.min((currentPage - 1) * itemsPerPage + 1, totalItems || 0);
2634
2666
  const endItem = Math.min(currentPage * itemsPerPage, totalItems || 0);
2635
2667
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_clsx13.default)("flex flex-col sm:flex-row justify-between items-center gap-4 w-full", className), children: [
2636
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-4 text-sm text-gray-500", children: [
2637
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-2 bg-gray-50 px-3 py-1 rounded-lg border border-gray-200", children: [
2668
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-4 text-sm text-secondary-500", children: [
2669
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-2 bg-secondary-50 px-3 py-1 rounded-lg border border-secondary-200", children: [
2638
2670
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "text-xs font-medium", children: "Mostrar" }),
2639
2671
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2640
2672
  ITSelect,
@@ -2649,19 +2681,19 @@ function ITPagination({
2649
2681
  onBlur: () => {
2650
2682
  },
2651
2683
  size: "small",
2652
- className: "!w-14 !h-6 !text-xs !py-0 !px-1! !border-none !bg-transparent !ring-0 focus:!ring-0 cursor-pointer font-bold text-gray-700",
2684
+ className: "!w-14 !h-6 !text-xs !py-0 !px-1! !border-none !bg-transparent !ring-0 focus:!ring-0 cursor-pointer font-bold text-secondary-700",
2653
2685
  placeholder: ""
2654
2686
  }
2655
2687
  )
2656
2688
  ] }),
2657
2689
  totalItems !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
2658
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "text-gray-300", children: "|" }),
2690
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "text-secondary-300", children: "|" }),
2659
2691
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ITText, { as: "span", className: "text-xs", children: [
2660
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-gray-700", children: startItem }),
2692
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-secondary-700", children: startItem }),
2661
2693
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", children: " - " }),
2662
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-gray-700", children: endItem }),
2694
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-secondary-700", children: endItem }),
2663
2695
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", children: " de " }),
2664
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-gray-900", children: totalItems })
2696
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ITText, { as: "span", className: "font-semibold text-secondary-900", children: totalItems })
2665
2697
  ] })
2666
2698
  ] })
2667
2699
  ] }),
@@ -2798,15 +2830,15 @@ function ITTable({
2798
2830
  onClick: () => handleFilterChange(col.key, nextValue),
2799
2831
  "aria-label": `${getToggleLabel()} para ${col.label}`,
2800
2832
  title: `${getToggleLabel()} para ${col.label}`,
2801
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative w-10 h-5 bg-gray-300 rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2833
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative w-10 h-5 bg-secondary-300 rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2802
2834
  "div",
2803
2835
  {
2804
2836
  className: (0, import_clsx14.default)(
2805
2837
  "absolute top-0.5 w-4 h-4 rounded-full transition-all duration-300 shadow-sm",
2806
2838
  {
2807
- "left-0.5 bg-gray-400": currentValue === void 0,
2839
+ "left-0.5 bg-secondary-400": currentValue === void 0,
2808
2840
  "left-5 bg-slate-500": currentValue === true,
2809
- "left-0.5 bg-gray-500": currentValue === false
2841
+ "left-0.5 bg-secondary-500": currentValue === false
2810
2842
  }
2811
2843
  )
2812
2844
  }
@@ -2826,7 +2858,7 @@ function ITTable({
2826
2858
  );
2827
2859
  }
2828
2860
  if (col.catalogOptions.error) {
2829
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-red-500 text-xs", children: "Error cargando" });
2861
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-danger-500 text-xs", children: "Error cargando" });
2830
2862
  }
2831
2863
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2832
2864
  ITSelect,
@@ -2875,14 +2907,14 @@ function ITTable({
2875
2907
  return value ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2876
2908
  import_fa7.FaCheck,
2877
2909
  {
2878
- className: "text-green-500",
2910
+ className: "text-success-500",
2879
2911
  "aria-label": "Verdadero",
2880
2912
  title: "Verdadero"
2881
2913
  }
2882
2914
  ) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2883
2915
  import_fa7.FaTimes,
2884
2916
  {
2885
- className: "text-red-500",
2917
+ className: "text-danger-500",
2886
2918
  "aria-label": "Falso",
2887
2919
  title: "Falso"
2888
2920
  }
@@ -2912,7 +2944,7 @@ function ITTable({
2912
2944
  actionCol?.actions && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex items-center justify-end gap-2 pt-2 border-t border-slate-100 dark:border-slate-700", children: actionCol.actions(row) })
2913
2945
  ] });
2914
2946
  };
2915
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: (0, import_clsx14.default)("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "rounded-xl shadow-sm overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2947
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: (0, import_clsx14.default)("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: tableContainer, style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2916
2948
  title && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "px-6 py-5 flex items-center justify-between", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2917
2949
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "h2", className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
2918
2950
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center bg-slate-100 dark:bg-slate-800/80 rounded-lg p-0.5 border border-slate-200 dark:border-slate-700/50", children: [
@@ -2964,7 +2996,7 @@ function ITTable({
2964
2996
  }
2965
2997
  )
2966
2998
  ] }) }),
2967
- viewMode === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: currentData.length > 0 ? currentData.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 text-secondary-400", children: [
2999
+ viewMode === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: currentData.length > 0 ? currentData.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: (0, import_clsx14.default)(tableEmptyContent, "py-12"), children: [
2968
3000
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
2969
3001
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
2970
3002
  ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
@@ -2978,11 +3010,11 @@ function ITTable({
2978
3010
  sizeStyles[size]
2979
3011
  ),
2980
3012
  children: [
2981
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tr", { className: "bg-secondary-50 text-xs uppercase tracking-wider font-semibold text-slate-700 dark:text-slate-200", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3013
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tr", { className: (0, import_clsx14.default)(tableHeaderRow, "dark:text-slate-200"), children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2982
3014
  "th",
2983
3015
  {
2984
3016
  scope: "col",
2985
- className: (0, import_clsx14.default)("px-4 py-4 align-top", col.className),
3017
+ className: tableHeaderCell(col.className),
2986
3018
  children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
2987
3019
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
2988
3020
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-slate-900 dark:text-white font-bold", children: col.label }),
@@ -3001,21 +3033,21 @@ function ITTable({
3001
3033
  },
3002
3034
  col.key
3003
3035
  )) }) }),
3004
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tbody", { className: "divide-y divide-slate-100 dark:divide-slate-700/30", children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3036
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tbody", { className: (0, import_clsx14.default)(tableBody, "dark:divide-slate-700/30"), children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3005
3037
  "tr",
3006
3038
  {
3007
- className: (0, import_clsx14.default)("hover:bg-secondary-50/50 transition-colors duration-150 group", variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"),
3039
+ className: (0, import_clsx14.default)(tableRow, variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"),
3008
3040
  children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3009
3041
  "td",
3010
3042
  {
3011
- className: (0, import_clsx14.default)("px-4 py-3 align-middle", col.className),
3012
- children: col.type === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) })
3043
+ className: tableCell(col.className),
3044
+ children: col.type === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: tableActionsCell, children: renderCellContent(col, row) }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: tableCellText, children: renderCellContent(col, row) })
3013
3045
  },
3014
3046
  `${rowIndex}-${col.key}`
3015
3047
  ))
3016
3048
  },
3017
3049
  rowIndex
3018
- )) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
3050
+ )) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: tableEmptyContent, children: [
3019
3051
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
3020
3052
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3021
3053
  ] }) }) }) })
@@ -3128,15 +3160,15 @@ function ITDataTable({
3128
3160
  "aria-label": `${getToggleLabel()} para ${col.label}`,
3129
3161
  title: `${getToggleLabel()} para ${col.label}`,
3130
3162
  disabled: isLoading,
3131
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "relative w-10 h-5 bg-gray-300 rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3163
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "relative w-10 h-5 bg-secondary-300 rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3132
3164
  "div",
3133
3165
  {
3134
3166
  className: (0, import_clsx15.default)(
3135
3167
  "absolute top-0.5 w-4 h-4 rounded-full transition-all duration-300 shadow-sm",
3136
3168
  {
3137
- "left-0.5 bg-gray-400": currentValue === void 0,
3169
+ "left-0.5 bg-secondary-400": currentValue === void 0,
3138
3170
  "left-5 bg-slate-500": currentValue === true,
3139
- "left-0.5 bg-gray-500": currentValue === false
3171
+ "left-0.5 bg-secondary-500": currentValue === false
3140
3172
  }
3141
3173
  )
3142
3174
  }
@@ -3149,7 +3181,7 @@ function ITDataTable({
3149
3181
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaSpinner, { className: "animate-spin", "aria-label": "Cargando opciones", title: "Cargando opciones" });
3150
3182
  }
3151
3183
  if (col.catalogOptions.error) {
3152
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-red-500 text-xs", children: "Error cargando" });
3184
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-danger-500 text-xs", children: "Error cargando" });
3153
3185
  }
3154
3186
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3155
3187
  ITSelect,
@@ -3195,7 +3227,7 @@ function ITDataTable({
3195
3227
  case "number":
3196
3228
  return typeof value === "number" && col.currencyMX ? formatCurrencyMX(value) : value;
3197
3229
  case "boolean":
3198
- return value ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaCheck, { className: "text-green-500", "aria-label": "Verdadero", title: "Verdadero" }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaTimes, { className: "text-red-500", "aria-label": "Falso", title: "Falso" });
3230
+ return value ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaCheck, { className: "text-success-500", "aria-label": "Verdadero", title: "Verdadero" }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaTimes, { className: "text-danger-500", "aria-label": "Falso", title: "Falso" });
3199
3231
  case "actions":
3200
3232
  return col.actions ? col.actions(row) : null;
3201
3233
  case "catalog":
@@ -3221,7 +3253,7 @@ function ITDataTable({
3221
3253
  };
3222
3254
  const segCtrlClass = (mode) => `flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-semibold transition-all ${viewMode === mode ? "bg-white dark:bg-slate-900 text-slate-900 dark:text-white shadow-sm border border-slate-200/50 dark:border-slate-700" : "text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200"}`;
3223
3255
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: (0, import_clsx15.default)("space-y-4 w-full relative", containerClassName), children: [
3224
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "rounded-xl shadow-sm overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3256
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: tableContainer, style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3225
3257
  title && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "px-6 py-5 flex items-center justify-between", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3226
3258
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "h2", className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
3227
3259
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-3", children: [
@@ -3253,7 +3285,7 @@ function ITDataTable({
3253
3285
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_fa8.FaSpinner, { className: "animate-spin text-primary-500 text-4xl" }),
3254
3286
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-sm font-semibold text-secondary-600 animate-pulse", children: "Cargando datos..." })
3255
3287
  ] }) }) }),
3256
- viewMode === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: data.length > 0 ? data.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 text-secondary-400", children: [
3288
+ viewMode === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: data.length > 0 ? data.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : !isLoading && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: (0, import_clsx15.default)(tableEmptyContent, "py-12"), children: [
3257
3289
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
3258
3290
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3259
3291
  ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
@@ -3269,7 +3301,7 @@ function ITDataTable({
3269
3301
  className
3270
3302
  ),
3271
3303
  children: [
3272
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: "bg-secondary-50 text-xs uppercase tracking-wider font-semibold text-slate-700 dark:text-slate-200", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { scope: "col", className: (0, import_clsx15.default)("px-4 py-4 align-top", col.className), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3304
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: (0, import_clsx15.default)(tableHeaderRow, "dark:text-slate-200"), children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { scope: "col", className: tableHeaderCell(col.className), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3273
3305
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
3274
3306
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-slate-900 dark:text-white font-bold", children: col.label }),
3275
3307
  col.sortable && col.type !== "actions" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
@@ -3285,7 +3317,7 @@ function ITDataTable({
3285
3317
  ] }),
3286
3318
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-full", children: col.filter ? renderFilterInput(col) : null })
3287
3319
  ] }) }, col.key)) }) }),
3288
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { className: "divide-y divide-slate-100 dark:divide-slate-700/30", children: data.length > 0 ? data.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: (0, import_clsx15.default)("hover:bg-secondary-50/50 transition-colors duration-150 group", variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"), children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: (0, import_clsx15.default)("px-4 py-3 align-middle", col.className), children: col.type === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) }) }, `${rowIndex}-${col.key}`)) }, rowIndex)) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: !isLoading && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
3320
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { className: (0, import_clsx15.default)(tableBody, "dark:divide-slate-700/30"), children: data.length > 0 ? data.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { className: (0, import_clsx15.default)(tableRow, variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"), children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { className: tableCell(col.className), children: col.type === "actions" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: tableActionsCell, children: renderCellContent(col, row) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: tableCellText, children: renderCellContent(col, row) }) }, `${rowIndex}-${col.key}`)) }, rowIndex)) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: !isLoading && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: tableEmptyContent, children: [
3289
3321
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
3290
3322
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3291
3323
  ] }) }) }) })
@@ -3536,7 +3568,7 @@ function ITDatePicker({
3536
3568
  "div",
3537
3569
  {
3538
3570
  className: (0, import_clsx16.default)(
3539
- "fixed z-[9999]",
3571
+ "fixed z-[70]",
3540
3572
  calendarClassName,
3541
3573
  range ? "w-[320px]" : "w-[280px]"
3542
3574
  ),
@@ -3603,8 +3635,8 @@ var ITTabs = ({
3603
3635
  const activeContent = items.find((item) => item.id === activeId)?.content;
3604
3636
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_clsx17.clsx)("w-full", containerClassName), children: [
3605
3637
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: (0, import_clsx17.clsx)(
3606
- "flex border-gray-200 mb-4",
3607
- variant === "line" ? "border-b" : "gap-2 p-1 bg-gray-100 rounded-lg w-fit",
3638
+ "flex border-secondary-200 mb-4",
3639
+ variant === "line" ? "border-b" : "gap-2 p-1 bg-secondary-100 rounded-lg w-fit",
3608
3640
  className
3609
3641
  ), children: items.map((item) => {
3610
3642
  const isActive = item.id === activeId;
@@ -3618,12 +3650,12 @@ var ITTabs = ({
3618
3650
  // LINE VARIANT
3619
3651
  variant === "line" && [
3620
3652
  "border-b-2 -mb-[2px]",
3621
- isActive ? "border-primary-500 text-primary-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"
3653
+ isActive ? "border-primary-500 text-primary-600" : "border-transparent text-secondary-500 hover:text-secondary-700 hover:border-secondary-300"
3622
3654
  ],
3623
3655
  // PILL VARIANT
3624
3656
  variant === "pill" && [
3625
3657
  "rounded-md",
3626
- isActive ? "bg-white text-primary-600 shadow-sm" : "text-gray-500 hover:text-gray-700"
3658
+ isActive ? "bg-white text-primary-600 shadow-sm" : "text-secondary-500 hover:text-secondary-700"
3627
3659
  ],
3628
3660
  item.disabled && "opacity-50 cursor-not-allowed"
3629
3661
  ),
@@ -4429,23 +4461,23 @@ function ITThemeProvider({
4429
4461
  color: #cbd5e1;
4430
4462
  }
4431
4463
  .dark .text-slate-800, [data-theme="dark"] .text-slate-800,
4432
- .dark .text-gray-800, [data-theme="dark"] .text-gray-800 {
4464
+ .dark .text-secondary-800, [data-theme="dark"] .text-secondary-800 {
4433
4465
  color: #f8fafc !important;
4434
4466
  }
4435
4467
  .dark .text-slate-700, [data-theme="dark"] .text-slate-700,
4436
- .dark .text-gray-700, [data-theme="dark"] .text-gray-700 {
4468
+ .dark .text-secondary-700, [data-theme="dark"] .text-secondary-700 {
4437
4469
  color: #cbd5e1 !important;
4438
4470
  }
4439
4471
  .dark .text-slate-600, [data-theme="dark"] .text-slate-600,
4440
- .dark .text-gray-600, [data-theme="dark"] .text-gray-600 {
4472
+ .dark .text-secondary-600, [data-theme="dark"] .text-secondary-600 {
4441
4473
  color: #cbd5e1 !important;
4442
4474
  }
4443
4475
  .dark .text-slate-500, [data-theme="dark"] .text-slate-500,
4444
- .dark .text-gray-500, [data-theme="dark"] .text-gray-500 {
4476
+ .dark .text-secondary-500, [data-theme="dark"] .text-secondary-500 {
4445
4477
  color: #94a3b8 !important;
4446
4478
  }
4447
4479
  .dark .text-slate-400, [data-theme="dark"] .text-slate-400,
4448
- .dark .text-gray-400, [data-theme="dark"] .text-gray-400 {
4480
+ .dark .text-secondary-400, [data-theme="dark"] .text-secondary-400 {
4449
4481
  color: #64748b !important;
4450
4482
  }
4451
4483
 
@@ -4453,25 +4485,25 @@ function ITThemeProvider({
4453
4485
  background-color: var(--card-bg, #111827) !important;
4454
4486
  }
4455
4487
  .dark .bg-slate-50, [data-theme="dark"] .bg-slate-50,
4456
- .dark .bg-gray-50, [data-theme="dark"] .bg-gray-50 {
4488
+ .dark .bg-secondary-50, [data-theme="dark"] .bg-secondary-50 {
4457
4489
  background-color: #1f2937 !important;
4458
4490
  }
4459
4491
  .dark .border-slate-100, [data-theme="dark"] .border-slate-100,
4460
- .dark .border-gray-100, [data-theme="dark"] .border-gray-100,
4492
+ .dark .border-secondary-100, [data-theme="dark"] .border-secondary-100,
4461
4493
  .dark .border-slate-200, [data-theme="dark"] .border-slate-200,
4462
- .dark .border-gray-200, [data-theme="dark"] .border-gray-200 {
4494
+ .dark .border-secondary-200, [data-theme="dark"] .border-secondary-200 {
4463
4495
  border-color: #374151 !important;
4464
4496
  }
4465
4497
 
4466
- .dark .bg-gray-100, [data-theme="dark"] .bg-gray-100,
4498
+ .dark .bg-secondary-100, [data-theme="dark"] .bg-secondary-100,
4467
4499
  .dark .bg-slate-100, [data-theme="dark"] .bg-slate-100 {
4468
4500
  background-color: #1f2937 !important;
4469
4501
  }
4470
- .dark .border-gray-300, [data-theme="dark"] .border-gray-300,
4502
+ .dark .border-secondary-300, [data-theme="dark"] .border-secondary-300,
4471
4503
  .dark .border-slate-300, [data-theme="dark"] .border-slate-300 {
4472
4504
  border-color: #4b5563 !important;
4473
4505
  }
4474
- .dark .bg-gray-200, [data-theme="dark"] .bg-gray-200,
4506
+ .dark .bg-secondary-200, [data-theme="dark"] .bg-secondary-200,
4475
4507
  .dark .bg-slate-200, [data-theme="dark"] .bg-slate-200 {
4476
4508
  background-color: #374151 !important;
4477
4509
  }
@@ -4539,23 +4571,23 @@ function ITThemeProvider({
4539
4571
  }
4540
4572
 
4541
4573
  [data-theme="light"] .text-slate-800,
4542
- [data-theme="light"] .text-gray-800 {
4574
+ [data-theme="light"] .text-secondary-800 {
4543
4575
  color: #1e293b !important;
4544
4576
  }
4545
4577
  [data-theme="light"] .text-slate-700,
4546
- [data-theme="light"] .text-gray-700 {
4578
+ [data-theme="light"] .text-secondary-700 {
4547
4579
  color: #334155 !important;
4548
4580
  }
4549
4581
  [data-theme="light"] .text-slate-600,
4550
- [data-theme="light"] .text-gray-600 {
4582
+ [data-theme="light"] .text-secondary-600 {
4551
4583
  color: #475569 !important;
4552
4584
  }
4553
4585
  [data-theme="light"] .text-slate-500,
4554
- [data-theme="light"] .text-gray-500 {
4586
+ [data-theme="light"] .text-secondary-500 {
4555
4587
  color: #64748b !important;
4556
4588
  }
4557
4589
  [data-theme="light"] .text-slate-400,
4558
- [data-theme="light"] .text-gray-400 {
4590
+ [data-theme="light"] .text-secondary-400 {
4559
4591
  color: #94a3b8 !important;
4560
4592
  }
4561
4593
 
@@ -4563,24 +4595,24 @@ function ITThemeProvider({
4563
4595
  background-color: #ffffff !important;
4564
4596
  }
4565
4597
  [data-theme="light"] .bg-slate-50,
4566
- [data-theme="light"] .bg-gray-50 {
4598
+ [data-theme="light"] .bg-secondary-50 {
4567
4599
  background-color: #f8fafc !important;
4568
4600
  }
4569
4601
  [data-theme="light"] .border-slate-100,
4570
- [data-theme="light"] .border-gray-100,
4602
+ [data-theme="light"] .border-secondary-100,
4571
4603
  [data-theme="light"] .border-slate-200,
4572
- [data-theme="light"] .border-gray-200 {
4604
+ [data-theme="light"] .border-secondary-200 {
4573
4605
  border-color: #e2e8f0 !important;
4574
4606
  }
4575
- [data-theme="light"] .bg-gray-100,
4607
+ [data-theme="light"] .bg-secondary-100,
4576
4608
  [data-theme="light"] .bg-slate-100 {
4577
4609
  background-color: #f1f5f9 !important;
4578
4610
  }
4579
- [data-theme="light"] .border-gray-300,
4611
+ [data-theme="light"] .border-secondary-300,
4580
4612
  [data-theme="light"] .border-slate-300 {
4581
4613
  border-color: #cbd5e1 !important;
4582
4614
  }
4583
- [data-theme="light"] .bg-gray-200,
4615
+ [data-theme="light"] .bg-secondary-200,
4584
4616
  [data-theme="light"] .bg-slate-200 {
4585
4617
  background-color: #e2e8f0 !important;
4586
4618
  }
@@ -4608,13 +4640,13 @@ function ITThemeProvider({
4608
4640
  .hover\\:bg-green-600:hover { background-color: var(--color-success-hover) !important; }
4609
4641
 
4610
4642
  /* Danger overrides (red mappings in UI library) */
4611
- .bg-red-700 { background-color: var(--color-danger) !important; }
4612
- .hover\\:bg-red-800:hover { background-color: var(--color-danger-hover) !important; }
4613
- .focus\\:ring-red-300:focus { --tw-ring-color: var(--color-danger-ring) !important; }
4614
- .text-red-700 { color: var(--color-danger) !important; }
4615
- .border-red-700 { border-color: var(--color-danger) !important; }
4616
- .bg-red-500 { background-color: var(--color-danger) !important; }
4617
- .hover\\:bg-red-600:hover { background-color: var(--color-danger-hover) !important; }
4643
+ .bg-danger-700 { background-color: var(--color-danger) !important; }
4644
+ .hover\\:bg-danger-800:hover { background-color: var(--color-danger-hover) !important; }
4645
+ .focus\\:ring-danger-300:focus { --tw-ring-color: var(--color-danger-ring) !important; }
4646
+ .text-danger-700 { color: var(--color-danger) !important; }
4647
+ .border-danger-700 { border-color: var(--color-danger) !important; }
4648
+ .bg-danger-500 { background-color: var(--color-danger) !important; }
4649
+ .hover\\:bg-danger-600:hover { background-color: var(--color-danger-hover) !important; }
4618
4650
 
4619
4651
  /* Warning overrides (yellow mappings in UI library) */
4620
4652
  .bg-yellow-400 { background-color: var(--color-warning) !important; }
@@ -4644,12 +4676,12 @@ function ITThemeProvider({
4644
4676
  .border-blue-500 { border-color: var(--color-info) !important; }
4645
4677
 
4646
4678
  /* Secondary elements overrides */
4647
- button[class*="bg-white"][class*="hover:bg-gray-100"] {
4679
+ button[class*="bg-white"][class*="hover:bg-secondary-100"] {
4648
4680
  background-color: var(--color-secondary) !important;
4649
4681
  border-color: var(--color-secondary-soft-border) !important;
4650
4682
  color: #111827 !important;
4651
4683
  }
4652
- button[class*="bg-white"][class*="hover:bg-gray-100"]:hover {
4684
+ button[class*="bg-white"][class*="hover:bg-secondary-100"]:hover {
4653
4685
  background-color: var(--color-secondary-hover) !important;
4654
4686
  }
4655
4687
 
@@ -5248,7 +5280,7 @@ function ITThemeProvider({
5248
5280
  e.stopPropagation();
5249
5281
  handleDeletePreset(preset.name, e);
5250
5282
  },
5251
- className: "absolute top-1.5 right-1.5 opacity-0 group-hover:opacity-100 p-0.5 rounded-md hover:bg-red-500/10 hover:text-red-500 text-slate-400 dark:text-slate-500 cursor-pointer transition-all z-10",
5283
+ className: "absolute top-1.5 right-1.5 opacity-0 group-hover:opacity-100 p-0.5 rounded-md hover:bg-danger-500/10 hover:text-danger-500 text-slate-400 dark:text-slate-500 cursor-pointer transition-all z-10",
5252
5284
  title: "Eliminar",
5253
5285
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_md3.MdClose, { size: 12 })
5254
5286
  }
@@ -5594,7 +5626,8 @@ function ITDialog({
5594
5626
  const content = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5595
5627
  "div",
5596
5628
  {
5597
- className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-black/50 z-[9999]`,
5629
+ "data-it-dialog": "true",
5630
+ className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-slate-900/50 z-[60]`,
5598
5631
  children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5599
5632
  "div",
5600
5633
  {
@@ -5615,7 +5648,7 @@ function ITDialog({
5615
5648
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5616
5649
  "button",
5617
5650
  {
5618
- className: "absolute top-2 right-2 text-gray-600 hover:text-gray-900",
5651
+ className: "absolute top-2 right-2 text-secondary-600 hover:text-secondary-900",
5619
5652
  onClick: onClose,
5620
5653
  children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fa11.FaRegTimesCircle, {})
5621
5654
  }
@@ -5647,7 +5680,7 @@ function ITDrawer({
5647
5680
  }) {
5648
5681
  const panelRef = (0, import_react17.useRef)(null);
5649
5682
  useClickOutside_default(panelRef, onClose);
5650
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fixed inset-0 z-[100] flex", children: [
5683
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fixed inset-0 z-[50] flex", children: [
5651
5684
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "absolute inset-0 bg-black/40 backdrop-blur-sm transition-opacity" }),
5652
5685
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
5653
5686
  "div",
@@ -5985,14 +6018,14 @@ function ITTimePicker({
5985
6018
  "div",
5986
6019
  {
5987
6020
  ref: dropdownRef,
5988
- className: "fixed z-[9999] bg-white border border-gray-100 shadow-xl rounded-xl w-64 overflow-hidden flex flex-col animate-in fade-in zoom-in-95 duration-200 origin-top it-timepicker-dropdown",
6021
+ className: "fixed z-[70] bg-white border border-secondary-100 shadow-xl rounded-xl w-64 overflow-hidden flex flex-col animate-in fade-in zoom-in-95 duration-200 origin-top it-timepicker-dropdown",
5989
6022
  style: {
5990
6023
  top: `${dropdownPosition.top}px`,
5991
6024
  left: `${dropdownPosition.left}px`
5992
6025
  },
5993
6026
  children: [
5994
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex bg-gray-50 border-b border-gray-100 text-xs font-semibold text-gray-500 uppercase tracking-wider", children: [
5995
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ITText, { as: "div", className: "flex-1 text-center py-2 border-r border-gray-100", children: "Horas" }),
6027
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex bg-secondary-50 border-b border-secondary-100 text-xs font-semibold text-secondary-500 uppercase tracking-wider", children: [
6028
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ITText, { as: "div", className: "flex-1 text-center py-2 border-r border-secondary-100", children: "Horas" }),
5996
6029
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ITText, { as: "div", className: "flex-1 text-center py-2", children: "Minutos" })
5997
6030
  ] }),
5998
6031
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex h-56 relative bg-white", children: [
@@ -6000,7 +6033,7 @@ function ITTimePicker({
6000
6033
  "div",
6001
6034
  {
6002
6035
  ref: hoursRef,
6003
- className: "flex-1 overflow-y-auto no-scrollbar border-r border-gray-50 scroll-smooth relative",
6036
+ className: "flex-1 overflow-y-auto no-scrollbar border-r border-secondary-50 scroll-smooth relative",
6004
6037
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "py-2", children: hoursList.map((h) => {
6005
6038
  const isSelected = currentHour === h;
6006
6039
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
@@ -6066,7 +6099,7 @@ function ITTimePicker({
6066
6099
  ),
6067
6100
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "absolute top-1/2 left-0 right-0 h-10 -mt-5 bg-black/5 pointer-events-none border-y border-black/10 z-10" })
6068
6101
  ] }),
6069
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "p-3 bg-gray-50 border-t border-gray-100 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6102
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "p-3 bg-secondary-50 border-t border-secondary-100 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6070
6103
  ITButton,
6071
6104
  {
6072
6105
  variant: "solid",
@@ -6176,7 +6209,7 @@ function ITSearchSelect({
6176
6209
  const getInputStyle = () => {
6177
6210
  const style = {
6178
6211
  backgroundColor: inputTheme.backgroundColor || "#ffffff",
6179
- borderColor: inputTheme.borderColor || "#e2e8f0",
6212
+ borderColor: inputTheme.borderColor || "var(--color-secondary-300)",
6180
6213
  borderRadius: inputTheme.borderRadius || "0.5rem",
6181
6214
  padding: inputTheme.padding || "0.5rem 0.75rem",
6182
6215
  fontSize: inputTheme.fontSize || "0.875rem",
@@ -6187,8 +6220,8 @@ function ITSearchSelect({
6187
6220
  width: "100%"
6188
6221
  };
6189
6222
  if (disabled) {
6190
- style.backgroundColor = inputTheme.disabled?.backgroundColor || "#f1f5f9";
6191
- style.borderColor = inputTheme.disabled?.borderColor || "#e2e8f0";
6223
+ style.backgroundColor = inputTheme.disabled?.backgroundColor || "var(--color-secondary-100)";
6224
+ style.borderColor = inputTheme.disabled?.borderColor || "var(--color-secondary-200)";
6192
6225
  style.opacity = 0.7;
6193
6226
  style.cursor = "not-allowed";
6194
6227
  }
@@ -6208,12 +6241,12 @@ function ITSearchSelect({
6208
6241
  ITText,
6209
6242
  {
6210
6243
  as: "label",
6211
- className: (0, import_clsx24.default)("text-sm font-medium text-gray-700 dark:text-slate-300", {
6212
- "text-red-500": hasError
6244
+ className: (0, import_clsx24.default)("text-sm font-medium text-secondary-700 dark:text-slate-300", {
6245
+ "text-danger-500": hasError
6213
6246
  }),
6214
6247
  children: [
6215
6248
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "span", children: label }),
6216
- required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
6249
+ required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
6217
6250
  ]
6218
6251
  }
6219
6252
  ),
@@ -6236,26 +6269,26 @@ function ITSearchSelect({
6236
6269
  autoComplete: "off"
6237
6270
  }
6238
6271
  ),
6239
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "absolute right-3 flex items-center gap-2 text-gray-400 pointer-events-none", children: [
6272
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "absolute right-3 flex items-center gap-2 text-secondary-400 pointer-events-none", children: [
6240
6273
  isLoading && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "animate-spin h-4 w-4 border-2 border-primary-500 border-t-transparent rounded-full" }),
6241
6274
  !isLoading && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_fa15.FaSearch, { size: 14, className: (0, import_clsx24.default)({ "text-primary-500": isFocused }) })
6242
6275
  ] })
6243
6276
  ] }),
6244
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "absolute z-50 w-full mt-1 bg-white dark:bg-slate-900 border border-gray-200 dark:border-slate-800 rounded-lg shadow-xl overflow-hidden animate-in fade-in zoom-in duration-200 origin-top", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "max-h-60 overflow-y-auto", children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6277
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "absolute z-[70] w-full mt-1 bg-white dark:bg-slate-900 border border-secondary-200 dark:border-slate-800 rounded-lg shadow-xl overflow-hidden animate-in fade-in zoom-in duration-200 origin-top", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "max-h-60 overflow-y-auto", children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6245
6278
  ITText,
6246
6279
  {
6247
6280
  as: "div",
6248
6281
  onClick: () => handleSelect(option),
6249
6282
  className: (0, import_clsx24.default)(
6250
6283
  "px-4 py-2 text-sm cursor-pointer transition-colors",
6251
- value === option[valueField] ? "bg-primary-50 dark:bg-primary-950/40 text-primary-700 dark:text-primary-300 font-medium" : "hover:bg-gray-50 dark:hover:bg-slate-800 text-gray-700 dark:text-slate-300"
6284
+ value === option[valueField] ? "bg-primary-50 dark:bg-primary-950/40 text-primary-700 dark:text-primary-300 font-medium" : "hover:bg-secondary-50 dark:hover:bg-slate-800 text-secondary-700 dark:text-slate-300"
6252
6285
  ),
6253
6286
  children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "span", children: option[labelField] })
6254
6287
  },
6255
6288
  option[valueField]
6256
- )) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "div", className: "px-4 py-6 text-sm text-center text-gray-500 italic", children: isLoading ? "Cargando..." : noResultsMessage }) }) })
6289
+ )) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "div", className: "px-4 py-6 text-sm text-center text-secondary-500 italic", children: isLoading ? "Cargando..." : noResultsMessage }) }) })
6257
6290
  ] }),
6258
- hasError && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "p", className: "text-red-500 text-xs mt-1", children: errorMessage })
6291
+ hasError && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ITText, { as: "p", className: "text-danger-500 text-xs mt-1", children: errorMessage })
6259
6292
  ] });
6260
6293
  }
6261
6294
 
@@ -6484,7 +6517,7 @@ var ITFieldRenderer = ({
6484
6517
  return null;
6485
6518
  case "section":
6486
6519
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: (0, import_clsx25.default)("w-full col-span-full", activeConfig.className), children: [
6487
- label && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ITText, { as: "h4", className: "text-lg font-semibold text-gray-800 mb-4", children: label }),
6520
+ label && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ITText, { as: "h4", className: "text-lg font-semibold text-secondary-800 mb-4", children: label }),
6488
6521
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: (0, import_clsx25.default)("grid gap-y-6 gap-x-5", getGridColsClass(columns)), children: activeConfig.fields?.map((childConfig) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6489
6522
  ITFieldRenderer,
6490
6523
  {
@@ -6495,7 +6528,7 @@ var ITFieldRenderer = ({
6495
6528
  )) })
6496
6529
  ] });
6497
6530
  case "array":
6498
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "p-4 border-2 border-dashed border-gray-200 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ITText, { as: "p", className: "text-sm text-gray-500 text-center", children: [
6531
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "p-4 border-2 border-dashed border-secondary-200 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ITText, { as: "p", className: "text-sm text-secondary-500 text-center", children: [
6499
6532
  "Array Field: ",
6500
6533
  label
6501
6534
  ] }) });
@@ -6811,10 +6844,10 @@ function ITNavbar({
6811
6844
  const shouldUseLegacy = !navigationItems.length && (navItems || sidebarItems);
6812
6845
  if (shouldUseLegacy) {
6813
6846
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col h-screen", children: [
6814
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("nav", { className: "bg-white border-b border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between mx-auto p-4", children: [
6847
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("nav", { className: "bg-white border-b border-secondary-200", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between mx-auto p-4", children: [
6815
6848
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center space-x-3 rtl:space-x-reverse", children: [
6816
6849
  logo && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-8", children: logo }),
6817
- logoText && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "self-center text-2xl font-semibold whitespace-nowrap text-gray-900", children: logoText })
6850
+ logoText && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "self-center text-2xl font-semibold whitespace-nowrap text-secondary-900", children: logoText })
6818
6851
  ] }),
6819
6852
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex items-center justify-end w-full md:w-auto md:order-2", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center space-x-4 md:order-2", children: [
6820
6853
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "hidden md:flex space-x-4", children: navItems }),
@@ -6823,7 +6856,7 @@ function ITNavbar({
6823
6856
  "button",
6824
6857
  {
6825
6858
  type: "button",
6826
- className: "flex text-sm bg-gray-200 rounded-full md:me-0 focus:ring-4 focus:ring-gray-300",
6859
+ className: "flex text-sm bg-secondary-200 rounded-full md:me-0 focus:ring-4 focus:ring-secondary-300",
6827
6860
  onClick: toggleUserMenu,
6828
6861
  children: userMenu.userImage ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6829
6862
  "img",
@@ -6832,18 +6865,18 @@ function ITNavbar({
6832
6865
  src: userMenu.userImage,
6833
6866
  alt: "user photo"
6834
6867
  }
6835
- ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fa17.FaUserCircle, { className: "w-8 h-8 text-gray-500" })
6868
+ ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fa17.FaUserCircle, { className: "w-8 h-8 text-secondary-500" })
6836
6869
  }
6837
6870
  ),
6838
6871
  isUserMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6839
6872
  "div",
6840
6873
  {
6841
6874
  ref: userMenuRef,
6842
- className: "z-50 absolute right-0 mt-2 text-base list-none bg-white divide-y divide-gray-100 rounded-lg shadow-sm",
6875
+ className: "z-[70] absolute right-0 mt-2 text-base list-none bg-white divide-y divide-secondary-100 rounded-lg shadow-sm",
6843
6876
  children: [
6844
6877
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "px-4 py-3", children: [
6845
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "block text-sm text-gray-900", children: userMenu.userName }),
6846
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "block text-sm text-gray-500 truncate", children: userMenu.userEmail })
6878
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "block text-sm text-secondary-900", children: userMenu.userName }),
6879
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", className: "block text-sm text-secondary-500 truncate", children: userMenu.userEmail })
6847
6880
  ] }),
6848
6881
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "py-2", children: userMenu.menuItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6849
6882
  "button",
@@ -6852,7 +6885,7 @@ function ITNavbar({
6852
6885
  item.onClick();
6853
6886
  setIsUserMenuOpen(false);
6854
6887
  },
6855
- className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left",
6888
+ className: "block px-4 py-2 text-sm text-secondary-700 hover:bg-secondary-100 w-full text-left",
6856
6889
  children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ITText, { as: "span", children: item.label })
6857
6890
  }
6858
6891
  ) }, index)) })
@@ -6863,8 +6896,8 @@ function ITNavbar({
6863
6896
  ] }) })
6864
6897
  ] }) }),
6865
6898
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex-1 flex overflow-hidden relative", children: [
6866
- (showSidebar || showSidebarOnMobile) && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("aside", { className: "fixed inset-y-0 left-0 w-64 bg-gray-50 transform transition-transform duration-300 ease-in-out z-50 shadow-lg md:static md:transform-none md:shadow-none md:border-r md:border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-full overflow-y-auto py-4 px-3", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "space-y-2 font-medium", children: sidebarItems }) }) }),
6867
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("main", { className: "flex-1 bg-gray-100 overflow-y-auto", children })
6899
+ (showSidebar || showSidebarOnMobile) && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("aside", { className: "fixed inset-y-0 left-0 w-64 bg-secondary-50 transform transition-transform duration-300 ease-in-out z-[40] shadow-lg md:static md:transform-none md:shadow-none md:border-r md:border-secondary-200", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-full overflow-y-auto py-4 px-3", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "space-y-2 font-medium", children: sidebarItems }) }) }),
6900
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("main", { className: "flex-1 bg-secondary-100 overflow-y-auto", children })
6868
6901
  ] })
6869
6902
  ] });
6870
6903
  }
@@ -7312,7 +7345,7 @@ function ITPopover({
7312
7345
  });
7313
7346
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref, className: (0, import_clsx30.default)("relative inline-flex", className), children: [
7314
7347
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { onClick: () => isControlled ? onClose?.() : setInternalOpen((p) => !p), className: "cursor-pointer", children: trigger }),
7315
- open && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_clsx30.default)("absolute z-[200]", positionClasses[position]), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "bg-white dark:bg-slate-800 rounded-xl shadow-xl border border-slate-200 dark:border-slate-700 p-3 min-w-[160px]", children }) })
7348
+ open && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_clsx30.default)("absolute z-[70]", positionClasses[position]), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "bg-white dark:bg-slate-800 rounded-xl shadow-xl border border-slate-200 dark:border-slate-700 p-3 min-w-[160px]", children }) })
7316
7349
  ] });
7317
7350
  }
7318
7351
 
@@ -7445,7 +7478,7 @@ function SearchInput({
7445
7478
  className = ""
7446
7479
  }) {
7447
7480
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: `relative flex-1 ${className}`, children: [
7448
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_fa19.FaSearch, { className: "h-5 w-5 text-gray-400" }) }),
7481
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_fa19.FaSearch, { className: "h-5 w-5 text-secondary-400" }) }),
7449
7482
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7450
7483
  ITInput,
7451
7484
  {
@@ -7473,12 +7506,12 @@ function SortButton({
7473
7506
  "button",
7474
7507
  {
7475
7508
  onClick,
7476
- className: `p-3 rounded-lg bg-white border border-gray-300 hover:bg-gray-50 transition-colors duration-200 flex items-center gap-2 min-w-[120px] ${className}`,
7509
+ className: `p-3 rounded-lg bg-white border border-secondary-300 hover:bg-secondary-50 transition-colors duration-200 flex items-center gap-2 min-w-[120px] ${className}`,
7477
7510
  "aria-label": `Ordenar tabla ${sortConfig ? sortConfig.direction === "asc" ? "descendente" : "ascendente" : "ascendente"}`,
7478
7511
  title: "Ordenar tabla",
7479
7512
  children: [
7480
- sortConfig ? sortConfig.direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSortUp, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSortDown, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSort, { className: "w-4 h-4 text-gray-500" }),
7481
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ITText, { as: "span", className: "text-sm font-medium text-gray-700", children: sortConfig ? sortConfig.direction === "asc" ? "Asc \u2191" : "Desc \u2193" : "Ordenar" })
7513
+ sortConfig ? sortConfig.direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSortUp, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSortDown, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_fa20.FaSort, { className: "w-4 h-4 text-secondary-500" }),
7514
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ITText, { as: "span", className: "text-sm font-medium text-secondary-700", children: sortConfig ? sortConfig.direction === "asc" ? "Asc \u2191" : "Desc \u2193" : "Ordenar" })
7482
7515
  ]
7483
7516
  }
7484
7517
  );
@@ -7494,7 +7527,7 @@ function SearchAndSortBar({
7494
7527
  sortConfig,
7495
7528
  searchInputPlaceholder = "Buscar en todos los campos..."
7496
7529
  }) {
7497
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "bg-gray-50 px-6 py-4 border-b border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-4", children: [
7530
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "bg-secondary-50 px-6 py-4 border-b border-secondary-200", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-4", children: [
7498
7531
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7499
7532
  SearchInput,
7500
7533
  {
@@ -7554,7 +7587,7 @@ function TableHeader({
7554
7587
  onSort,
7555
7588
  sortConfig
7556
7589
  }) {
7557
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { className: "bg-white border-b border-gray-200", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7590
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { className: "bg-white border-b border-secondary-200", children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7558
7591
  TableHeaderCell,
7559
7592
  {
7560
7593
  label: col.label,
@@ -7697,7 +7730,7 @@ function EditableCell({
7697
7730
  };
7698
7731
  return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "w-full", children: [
7699
7732
  renderInput(),
7700
- error && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-red-500 text-xs mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ITText, { as: "span", children: error }) })
7733
+ error && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-danger-500 text-xs mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ITText, { as: "span", children: error }) })
7701
7734
  ] });
7702
7735
  }
7703
7736
 
@@ -7742,7 +7775,7 @@ function TableRow({
7742
7775
  "aria-label": "Verdadero",
7743
7776
  title: "Verdadero"
7744
7777
  }
7745
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_fa21.FaTimes, { className: "text-red-500", "aria-label": "Falso", title: "Falso" });
7778
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_fa21.FaTimes, { className: "text-danger-500", "aria-label": "Falso", title: "Falso" });
7746
7779
  case "actions":
7747
7780
  if (isEditing && col.saveActions) {
7748
7781
  return col.saveActions(rowData, {
@@ -7771,7 +7804,7 @@ function TableRow({
7771
7804
  {
7772
7805
  onMouseEnter: () => setIsHovered(true),
7773
7806
  onMouseLeave: () => setIsHovered(false),
7774
- className: `border-b border-gray-200 transition-colors duration-150 ${isEditing ? "bg-slate-50" : rowIndex % 2 === 0 ? "bg-white" : "bg-gray-50"} ${isHovered && !isEditing ? "bg-gray-100" : ""}`,
7807
+ className: `border-b border-secondary-200 transition-colors duration-150 ${isEditing ? "bg-slate-50" : rowIndex % 2 === 0 ? "bg-white" : "bg-secondary-50"} ${isHovered && !isEditing ? "bg-secondary-100" : ""}`,
7775
7808
  children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7776
7809
  "td",
7777
7810
  {
@@ -7825,7 +7858,7 @@ function PaginationInfo({
7825
7858
  totalCount,
7826
7859
  className = ""
7827
7860
  }) {
7828
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ITText, { as: "span", className: `text-sm text-gray-700 ${className}`, children: [
7861
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(ITText, { as: "span", className: `text-sm text-secondary-700 ${className}`, children: [
7829
7862
  "Mostrando ",
7830
7863
  currentCount,
7831
7864
  " de ",
@@ -7852,7 +7885,7 @@ function PaginationControls({
7852
7885
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center space-x-4", children: [
7853
7886
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(PaginationInfo, { currentCount, totalCount }),
7854
7887
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center space-x-2", children: [
7855
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ITText, { as: "span", className: "text-sm text-gray-700", children: "Mostrar:" }),
7888
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ITText, { as: "span", className: "text-sm text-secondary-700", children: "Mostrar:" }),
7856
7889
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7857
7890
  ITSelect,
7858
7891
  {
@@ -7885,7 +7918,7 @@ function PaginationControls({
7885
7918
  children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_fa22.FaArrowLeft, { "aria-hidden": "true" })
7886
7919
  }
7887
7920
  ),
7888
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ITText, { as: "span", className: "px-4 py-2 text-sm text-gray-700", "aria-live": "polite", children: [
7921
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(ITText, { as: "span", className: "px-4 py-2 text-sm text-secondary-700", "aria-live": "polite", children: [
7889
7922
  "P\xE1gina ",
7890
7923
  pageIndex,
7891
7924
  " de ",
@@ -7979,7 +8012,7 @@ function ITSearchTable({
7979
8012
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "shadow-md sm:rounded-lg overflow-hidden", children: [
7980
8013
  title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-teal-500 text-white px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ITText, { as: "h2", className: "text-xl font-bold text-center whitespace-nowrap", children: title }) }),
7981
8014
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "bg-white", children: [
7982
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "p-4 border-b border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8015
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "p-4 border-b border-secondary-200", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7983
8016
  SearchAndSortBar,
7984
8017
  {
7985
8018
  searchTerm,
@@ -7994,7 +8027,7 @@ function ITSearchTable({
7994
8027
  "table",
7995
8028
  {
7996
8029
  className: (0, import_clsx34.default)(
7997
- "min-w-full text-sm text-left bg-white text-gray-900 table-auto",
8030
+ "min-w-full text-sm text-left bg-white text-secondary-900 table-auto",
7998
8031
  variantStyles[variant],
7999
8032
  sizeStyles[size]
8000
8033
  ),
@@ -8142,12 +8175,12 @@ function ITSidebar({
8142
8175
  ${sidebarWidth}
8143
8176
  ${className}
8144
8177
  ${!visibleOnMobile ? "hidden lg:flex" : "flex"}
8145
- shadow-[4px_0_24px_rgba(0,0,0,0.02)]
8178
+ shadow-[4px_0_32px_rgba(15,23,42,0.04)]
8146
8179
  `,
8147
8180
  style: {
8148
8181
  zIndex: 50,
8149
8182
  backgroundColor: "var(--sidebar-bg, rgba(255, 255, 255, 0.90))",
8150
- borderRight: "1px solid var(--sidebar-border, #e2e8f0)",
8183
+ borderRight: "1px solid var(--sidebar-border, var(--color-secondary-200))",
8151
8184
  WebkitBackdropFilter: "blur(12px)",
8152
8185
  backdropFilter: "blur(12px)"
8153
8186
  },
@@ -8161,12 +8194,12 @@ function ITSidebar({
8161
8194
  ${isSidebarCollapsed ? "justify-center p-2.5 mb-2" : "justify-between px-3.5 py-3 mb-1"}
8162
8195
  `,
8163
8196
  style: {
8164
- backgroundColor: item.isActive ? "var(--sidebar-active-bg, #f8fafc)" : "transparent",
8165
- boxShadow: item.isActive ? "0 1px 2px 0 rgba(0, 0, 0, 0.05)" : "none",
8166
- border: item.isActive ? "1px solid var(--sidebar-border, #e2e8f0)" : "1px solid transparent"
8197
+ backgroundColor: item.isActive ? "var(--sidebar-active-bg, var(--color-secondary-50))" : "transparent",
8198
+ boxShadow: item.isActive ? "var(--shadow-xs)" : "none",
8199
+ border: item.isActive ? "1px solid var(--sidebar-border, var(--color-secondary-200))" : "1px solid transparent"
8167
8200
  },
8168
8201
  onMouseEnter: (e) => {
8169
- if (!item.isActive) e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, #f1f5f9)";
8202
+ if (!item.isActive) e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, var(--color-secondary-100))";
8170
8203
  },
8171
8204
  onMouseLeave: (e) => {
8172
8205
  if (!item.isActive) e.currentTarget.style.backgroundColor = "transparent";
@@ -8177,7 +8210,7 @@ function ITSidebar({
8177
8210
  "div",
8178
8211
  {
8179
8212
  className: "absolute left-0 top-1/4 bottom-1/4 w-[3px] rounded-r-full transition-all",
8180
- style: { backgroundColor: "var(--sidebar-active-icon, #10b981)", boxShadow: "0 0 10px var(--sidebar-active-icon, #10b981)" }
8213
+ style: { backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))", boxShadow: "0 0 10px var(--sidebar-active-icon, var(--color-primary-500))" }
8181
8214
  }
8182
8215
  ),
8183
8216
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `flex items-center ${!isSidebarCollapsed ? "gap-3.5" : "justify-center"} relative z-10 w-full`, children: [
@@ -8186,7 +8219,7 @@ function ITSidebar({
8186
8219
  {
8187
8220
  className: `transition-all duration-300 flex-shrink-0 flex items-center justify-center`,
8188
8221
  style: {
8189
- color: item.isActive ? "var(--sidebar-active-icon, #10b981)" : "var(--sidebar-icon-color, #9ca3af)",
8222
+ color: item.isActive ? "var(--sidebar-active-icon, var(--color-primary-500))" : "var(--sidebar-icon-color, #9ca3af)",
8190
8223
  opacity: item.isActive ? 1 : 0.8,
8191
8224
  fontSize: item.isActive ? "1.35rem" : "1.25rem",
8192
8225
  filter: item.isActive ? "drop-shadow(0 0 8px rgba(255,255,255,0.2))" : "none"
@@ -8200,7 +8233,7 @@ function ITSidebar({
8200
8233
  as: "span",
8201
8234
  className: `transition-all duration-300 truncate tracking-wide`,
8202
8235
  style: {
8203
- color: item.isActive ? "var(--sidebar-active-color, #ffffff)" : "var(--sidebar-label-color, #d1d5db)",
8236
+ color: item.isActive ? "var(--sidebar-active-color, #ffffff)" : "var(--sidebar-label-color, var(--color-secondary-300))",
8204
8237
  fontSize: "0.9rem",
8205
8238
  fontWeight: item.isActive ? "600" : "500"
8206
8239
  },
@@ -8212,7 +8245,7 @@ function ITSidebar({
8212
8245
  "div",
8213
8246
  {
8214
8247
  className: `flex-shrink-0 transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "rotate-180" : ""}`,
8215
- style: { color: item.isActive ? "var(--sidebar-active-color, #0f172a)" : "var(--sidebar-icon-color, #64748b)", opacity: 0.7 },
8248
+ style: { color: item.isActive ? "var(--sidebar-active-color, var(--color-secondary-900))" : "var(--sidebar-icon-color, var(--color-secondary-500))", opacity: 0.7 },
8216
8249
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_fa23.FaChevronDown, { className: "w-3 h-3" })
8217
8250
  }
8218
8251
  ),
@@ -8224,9 +8257,9 @@ function ITSidebar({
8224
8257
  ${isSidebarCollapsed ? "top-1 right-1 w-2.5 h-2.5 rounded-full ring-2 ring-white" : "right-3 top-1/2 transform -translate-y-1/2 px-2 py-0.5 text-[10px] rounded-full backdrop-blur-sm"}
8225
8258
  `,
8226
8259
  style: {
8227
- backgroundColor: "var(--sidebar-badge-bg, #10b981)",
8260
+ backgroundColor: "var(--sidebar-badge-bg, var(--color-primary-500))",
8228
8261
  color: "var(--sidebar-badge-color, #ffffff)",
8229
- boxShadow: isSidebarCollapsed ? "0 0 0 2px var(--sidebar-bg, #111827)" : "none"
8262
+ boxShadow: isSidebarCollapsed ? "0 0 0 2px var(--sidebar-bg, var(--color-secondary-900))" : "none"
8230
8263
  },
8231
8264
  children: isSidebarCollapsed ? "" : item.badge
8232
8265
  }
@@ -8237,16 +8270,16 @@ function ITSidebar({
8237
8270
  isSidebarCollapsed && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
8238
8271
  "div",
8239
8272
  {
8240
- className: "absolute left-full top-0 ml-4 rounded-2xl opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-all duration-300 pointer-events-none z-50 min-w-[220px] overflow-hidden -translate-x-2 group-hover/navitem:translate-x-0 shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)]",
8273
+ className: "absolute left-full top-0 ml-4 rounded-2xl opacity-0 invisible group-hover/navitem:opacity-100 group-hover/navitem:visible transition-all duration-300 pointer-events-none z-[70] min-w-[220px] overflow-hidden -translate-x-2 group-hover/navitem:translate-x-0 shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)]",
8241
8274
  style: {
8242
8275
  backgroundColor: "var(--sidebar-bg, #ffffff)",
8243
- border: "1px solid var(--sidebar-border, #e2e8f0)",
8276
+ border: "1px solid var(--sidebar-border, var(--color-secondary-200))",
8244
8277
  WebkitBackdropFilter: "blur(16px)",
8245
8278
  backdropFilter: "blur(16px)"
8246
8279
  },
8247
8280
  children: [
8248
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "px-5 py-4 flex items-center gap-3 font-semibold border-b", style: { borderColor: "var(--sidebar-border, #e2e8f0)", color: "var(--sidebar-active-color, #0f172a)" }, children: [
8249
- item.icon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { style: { color: "var(--sidebar-active-icon, #10b981)" }, className: "text-xl drop-shadow-sm", children: item.icon }),
8281
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "px-5 py-4 flex items-center gap-3 font-semibold border-b", style: { borderColor: "var(--sidebar-border, var(--color-secondary-200))", color: "var(--sidebar-active-color, var(--color-secondary-900))" }, children: [
8282
+ item.icon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { style: { color: "var(--sidebar-active-icon, var(--color-primary-500))" }, className: "text-xl drop-shadow-sm", children: item.icon }),
8250
8283
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ITText, { as: "span", className: "tracking-wide text-[15px]", children: item.label })
8251
8284
  ] }),
8252
8285
  item.subitems && item.subitems.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "py-2", children: item.subitems.map((subitem) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
@@ -8259,17 +8292,17 @@ function ITSidebar({
8259
8292
  {
8260
8293
  className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full",
8261
8294
  style: {
8262
- backgroundColor: "var(--sidebar-active-icon, #10b981)",
8263
- boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, #10b981) 25%, transparent)"
8295
+ backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))",
8296
+ boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
8264
8297
  }
8265
8298
  }
8266
8299
  ),
8267
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: `w-1.5 h-1.5 rounded-full transition-all ${subitem.isActive ? "scale-125" : ""}`, style: { backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, #10b981)" : "var(--sidebar-icon-color, #94a3b8)" } }),
8268
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ITText, { as: "span", style: { color: subitem.isActive ? "var(--sidebar-active-color, #0f172a)" : "var(--sidebar-label-color, #475569)", fontWeight: subitem.isActive ? 600 : 500 }, children: subitem.label })
8300
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: `w-1.5 h-1.5 rounded-full transition-all ${subitem.isActive ? "scale-125" : ""}`, style: { backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, var(--color-primary-500))" : "var(--sidebar-icon-color, var(--color-secondary-400))" } }),
8301
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ITText, { as: "span", style: { color: subitem.isActive ? "var(--sidebar-active-color, var(--color-secondary-900))" : "var(--sidebar-label-color, var(--color-secondary-600))", fontWeight: subitem.isActive ? 600 : 500 }, children: subitem.label })
8269
8302
  ]
8270
8303
  },
8271
8304
  subitem.id
8272
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ITText, { as: "div", className: "px-5 py-3 text-sm italic", style: { color: "var(--sidebar-label-color, #71717a)" }, children: "No hay submen\xFA" })
8305
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ITText, { as: "div", className: "px-5 py-3 text-sm italic", style: { color: "var(--sidebar-label-color, var(--color-secondary-400))" }, children: "No hay submen\xFA" })
8273
8306
  ]
8274
8307
  }
8275
8308
  ),
@@ -8278,7 +8311,7 @@ function ITSidebar({
8278
8311
  {
8279
8312
  className: "ml-5 flex flex-col gap-0.5 py-1",
8280
8313
  style: {
8281
- borderLeft: subitemConnector === "|" ? "1px solid var(--sidebar-border, #e2e8f0)" : "none"
8314
+ borderLeft: subitemConnector === "|" ? "1px solid var(--sidebar-border, var(--color-secondary-200))" : "none"
8282
8315
  },
8283
8316
  children: item.subitems.map((subitem) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
8284
8317
  "button",
@@ -8289,8 +8322,8 @@ function ITSidebar({
8289
8322
  },
8290
8323
  className: `flex items-center gap-2.5 w-full text-left px-3 py-2 rounded-xl transition-all duration-300`,
8291
8324
  style: {
8292
- color: subitem.isActive ? "var(--sidebar-active-color, #0f172a)" : "var(--sidebar-label-color, #475569)",
8293
- backgroundColor: subitem.isActive ? "var(--sidebar-active-bg, #f8fafc)" : "transparent",
8325
+ color: subitem.isActive ? "var(--sidebar-active-color, var(--color-secondary-900))" : "var(--sidebar-label-color, var(--color-secondary-600))",
8326
+ backgroundColor: subitem.isActive ? "var(--sidebar-active-bg, var(--color-secondary-50))" : "transparent",
8294
8327
  fontSize: "0.85rem",
8295
8328
  fontWeight: subitem.isActive ? 600 : 500,
8296
8329
  letterSpacing: "0.01em",
@@ -8298,7 +8331,7 @@ function ITSidebar({
8298
8331
  },
8299
8332
  onMouseEnter: (e) => {
8300
8333
  if (!subitem.isActive) {
8301
- e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, #f1f5f9)";
8334
+ e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, var(--color-secondary-100))";
8302
8335
  e.currentTarget.style.transform = "translateX(3px)";
8303
8336
  }
8304
8337
  },
@@ -8314,8 +8347,8 @@ function ITSidebar({
8314
8347
  {
8315
8348
  className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full transition-all",
8316
8349
  style: {
8317
- backgroundColor: "var(--sidebar-active-icon, #10b981)",
8318
- boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, #10b981) 25%, transparent)"
8350
+ backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))",
8351
+ boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
8319
8352
  }
8320
8353
  }
8321
8354
  ),
@@ -8324,7 +8357,7 @@ function ITSidebar({
8324
8357
  {
8325
8358
  className: `w-1.5 h-1.5 rounded-full flex-shrink-0 transition-all duration-300 ${subitem.isActive ? "scale-125" : ""}`,
8326
8359
  style: {
8327
- backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, #10b981)" : "var(--sidebar-icon-color, #94a3b8)"
8360
+ backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, var(--color-primary-500))" : "var(--sidebar-icon-color, var(--color-secondary-400))"
8328
8361
  }
8329
8362
  }
8330
8363
  ),
@@ -8443,7 +8476,7 @@ function ITSlider({
8443
8476
  className
8444
8477
  }) {
8445
8478
  return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: (0, import_clsx36.default)("flex flex-col gap-1.5", className), children: [
8446
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ITText, { as: "label", className: "text-xs font-semibold text-gray-600 dark:text-gray-400", children: [
8479
+ label && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ITText, { as: "label", className: "text-xs font-semibold text-secondary-600 dark:text-secondary-400", children: [
8447
8480
  label,
8448
8481
  ": ",
8449
8482
  value
@@ -8460,7 +8493,7 @@ function ITSlider({
8460
8493
  disabled,
8461
8494
  className: (0, import_clsx36.default)(
8462
8495
  "w-full h-1.5 appearance-none rounded-full outline-none cursor-pointer",
8463
- "bg-gray-200 dark:bg-gray-700",
8496
+ "bg-secondary-200 dark:bg-secondary-700",
8464
8497
  "accent-primary-500",
8465
8498
  "disabled:opacity-50 disabled:cursor-not-allowed",
8466
8499
  "[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4",
@@ -8469,7 +8502,7 @@ function ITSlider({
8469
8502
  "[&::-webkit-slider-thumb]:hover:bg-primary-600 [&::-webkit-slider-thumb]:transition-colors",
8470
8503
  "[&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:rounded-full",
8471
8504
  "[&::-moz-range-thumb]:bg-primary-500 [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-white",
8472
- "[&::-moz-range-track]:bg-gray-200 dark:[&::-moz-range-track]:bg-gray-700",
8505
+ "[&::-moz-range-track]:bg-secondary-200 dark:[&::-moz-range-track]:bg-secondary-700",
8473
8506
  "[&::-moz-range-track]:rounded-full [&::-moz-range-track]:h-1.5"
8474
8507
  )
8475
8508
  }
@@ -8557,8 +8590,8 @@ function ITTextarea({
8557
8590
  "w-full border border-solid transition-all duration-200 rounded-lg px-3 py-2 text-sm outline-none",
8558
8591
  "focus:ring-2",
8559
8592
  resizeMap[resize],
8560
- error ? "border-red-500 ring-red-100 focus:border-red-500 focus:ring-red-100" : "border-gray-300 focus:border-primary-500 focus:ring-primary-100",
8561
- disabled && "opacity-50 cursor-not-allowed bg-gray-100 dark:bg-slate-800"
8593
+ error ? "border-danger-500 ring-danger-100 focus:border-danger-500 focus:ring-danger-100" : "border-secondary-300 focus:border-primary-500 focus:ring-primary-100",
8594
+ disabled && "opacity-50 cursor-not-allowed bg-secondary-100 dark:bg-slate-800"
8562
8595
  )
8563
8596
  }
8564
8597
  ),
@@ -8666,7 +8699,7 @@ function ITToast({
8666
8699
  "div",
8667
8700
  {
8668
8701
  className: (0, import_clsx40.default)(
8669
- "fixed z-50 p-4 rounded-xl shadow-xl flex items-center justify-between gap-4 transition-all duration-300 text-white min-w-[300px]",
8702
+ "fixed z-[80] p-4 rounded-xl shadow-xl flex items-center justify-between gap-4 transition-all duration-300 text-white min-w-[300px]",
8670
8703
  positionStyles[position],
8671
8704
  {
8672
8705
  "opacity-100 translate-y-0 scale-100": isVisible,
@@ -8710,6 +8743,12 @@ var FileTypeEnum = /* @__PURE__ */ ((FileTypeEnum2) => {
8710
8743
  FileTypeEnum2["PNG"] = "image/png";
8711
8744
  FileTypeEnum2["JPG"] = "image/jpg";
8712
8745
  FileTypeEnum2["JPEG"] = "image/jpeg";
8746
+ FileTypeEnum2["MP4"] = "video/mp4";
8747
+ FileTypeEnum2["MOV"] = "video/quicktime";
8748
+ FileTypeEnum2["AVI"] = "video/x-msvideo";
8749
+ FileTypeEnum2["MKV"] = "video/x-matroska";
8750
+ FileTypeEnum2["VIDEO_3GPP"] = "video/3gpp";
8751
+ FileTypeEnum2["WEBM"] = "video/webm";
8713
8752
  return FileTypeEnum2;
8714
8753
  })(FileTypeEnum || {});
8715
8754
  var UploadStatus = /* @__PURE__ */ ((UploadStatus2) => {
@@ -8780,6 +8819,24 @@ var ITDropfile = ({
8780
8819
  case "image/jpeg" /* JPEG */:
8781
8820
  accept["image/jpeg" /* JPEG */] = [".jpeg", ".jpg"];
8782
8821
  break;
8822
+ case "video/mp4" /* MP4 */:
8823
+ accept["video/mp4" /* MP4 */] = [".mp4"];
8824
+ break;
8825
+ case "video/quicktime" /* MOV */:
8826
+ accept["video/quicktime" /* MOV */] = [".mov"];
8827
+ break;
8828
+ case "video/x-msvideo" /* AVI */:
8829
+ accept["video/x-msvideo" /* AVI */] = [".avi"];
8830
+ break;
8831
+ case "video/x-matroska" /* MKV */:
8832
+ accept["video/x-matroska" /* MKV */] = [".mkv"];
8833
+ break;
8834
+ case "video/3gpp" /* VIDEO_3GPP */:
8835
+ accept["video/3gpp" /* VIDEO_3GPP */] = [".3gp"];
8836
+ break;
8837
+ case "video/webm" /* WEBM */:
8838
+ accept["video/webm" /* WEBM */] = [".webm"];
8839
+ break;
8783
8840
  }
8784
8841
  });
8785
8842
  return accept;
@@ -8803,6 +8860,14 @@ var ITDropfile = ({
8803
8860
  case "image/jpeg" /* JPEG */:
8804
8861
  if (!extensions.includes("IMAGEN")) extensions.push("IMAGEN");
8805
8862
  break;
8863
+ case "video/mp4" /* MP4 */:
8864
+ case "video/quicktime" /* MOV */:
8865
+ case "video/x-msvideo" /* AVI */:
8866
+ case "video/x-matroska" /* MKV */:
8867
+ case "video/3gpp" /* VIDEO_3GPP */:
8868
+ case "video/webm" /* WEBM */:
8869
+ if (!extensions.includes("VIDEO")) extensions.push("VIDEO");
8870
+ break;
8806
8871
  }
8807
8872
  });
8808
8873
  return extensions.join(", ");
@@ -8910,9 +8975,9 @@ var ITDropfile = ({
8910
8975
  const isImage = fileType && fileType.startsWith("image/");
8911
8976
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0, import_clsx41.default)("w-full transition-all duration-300", containerClassName), children: [
8912
8977
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [
8913
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block text-sm font-semibold text-gray-700", children: [
8978
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block text-sm font-semibold text-secondary-700", children: [
8914
8979
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", children: "Subir archivo " }),
8915
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ITText, { as: "span", className: "text-gray-400 font-normal text-xs", children: [
8980
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ITText, { as: "span", className: "text-secondary-400 font-normal text-xs", children: [
8916
8981
  "(",
8917
8982
  getFileExtensions(),
8918
8983
  ")"
@@ -8927,77 +8992,83 @@ var ITDropfile = ({
8927
8992
  className: `
8928
8993
  relative group flex flex-col items-center justify-center w-full p-6
8929
8994
  border-2 border-dashed rounded-xl cursor-pointer transition-all duration-300 ease-in-out
8930
- ${isDragActive ? "border-primary-500 bg-primary-50 scale-[1.01]" : "border-gray-300 bg-white hover:border-primary-400 hover:bg-gray-50"}
8995
+ ${isDragActive ? "border-primary-500 bg-primary-50 scale-[1.01]" : "border-secondary-300 bg-white hover:border-primary-400 hover:bg-secondary-50"}
8931
8996
  `,
8932
8997
  children: [
8933
8998
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { ...getInputProps() }),
8934
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `mb-3 p-3 rounded-full transition-colors duration-300 ${isDragActive ? "bg-primary-100" : "bg-gray-100 group-hover:bg-primary-50"}`, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8999
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `mb-3 p-3 rounded-full transition-colors duration-300 ${isDragActive ? "bg-primary-100" : "bg-secondary-100 group-hover:bg-primary-50"}`, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8935
9000
  "svg",
8936
9001
  {
8937
- className: `w-6 h-6 transition-colors duration-300 ${isDragActive ? "text-primary-600" : "text-gray-400 group-hover:text-primary-500"}`,
9002
+ className: `w-6 h-6 transition-colors duration-300 ${isDragActive ? "text-primary-600" : "text-secondary-400 group-hover:text-primary-500"}`,
8938
9003
  fill: "none",
8939
9004
  viewBox: "0 0 24 24",
8940
9005
  stroke: "currentColor",
8941
9006
  children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" })
8942
9007
  }
8943
9008
  ) }),
8944
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "text-center space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: `text-sm font-medium transition-colors duration-300 ${isDragActive ? "text-primary-700" : "text-gray-700"}`, children: isDragActive ? "\xA1Suelta aqu\xED!" : "Haz clic o arrastra" }) })
9009
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "text-center space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: `text-sm font-medium transition-colors duration-300 ${isDragActive ? "text-primary-700" : "text-secondary-700"}`, children: isDragActive ? "\xA1Suelta aqu\xED!" : "Haz clic o arrastra" }) })
8945
9010
  ]
8946
9011
  }
8947
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "w-full bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden animate-fade-in", children: [
8948
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center justify-between p-3 bg-gray-50 border-b border-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-3 overflow-hidden", children: [
9012
+ ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "w-full bg-white border border-secondary-200 rounded-xl shadow-sm overflow-hidden animate-fade-in", children: [
9013
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center justify-between p-3 bg-secondary-50 border-b border-secondary-100", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-3 overflow-hidden", children: [
8949
9014
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex-shrink-0 w-8 h-8 rounded-lg bg-primary-100 flex items-center justify-center text-primary-600", children: selectedFile && fileType?.startsWith("image/") || !selectedFile && imagePreview ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) }) }),
8950
9015
  /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "min-w-0", children: [
8951
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: "text-xs font-medium text-gray-900 truncate", title: selectedFile?.name || "Imagen cargada", children: selectedFile?.name || "Imagen cargada" }),
8952
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: "text-[10px] text-gray-500", children: selectedFile ? (selectedFile.size / 1024 / 1024).toFixed(2) + " MB" : "" })
9016
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: "text-xs font-medium text-secondary-900 truncate", title: selectedFile?.name || "Imagen cargada", children: selectedFile?.name || "Imagen cargada" }),
9017
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: "text-[10px] text-secondary-500", children: selectedFile ? (selectedFile.size / 1024 / 1024).toFixed(2) + " MB" : "" })
8953
9018
  ] })
8954
9019
  ] }) }),
8955
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0, import_clsx41.default)("relative bg-gray-100 flex items-center justify-center", !contentClassName ? "max-h-[200px] min-h-[100px] overflow-auto" : contentClassName), children: selectedFile && fileType?.startsWith("image/") || !selectedFile && imagePreview ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9020
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0, import_clsx41.default)("relative bg-secondary-100 flex items-center justify-center", !contentClassName ? "max-h-[200px] min-h-[100px] overflow-auto" : contentClassName), children: selectedFile && fileType?.startsWith("image/") || !selectedFile && imagePreview ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8956
9021
  "img",
8957
9022
  {
8958
9023
  src: imagePreview,
8959
9024
  alt: "Vista previa",
8960
9025
  className: "w-full h-full object-contain max-h-[200px]"
8961
9026
  }
8962
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "py-8 flex flex-col items-center text-gray-400", children: [
9027
+ ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "py-8 flex flex-col items-center text-secondary-400", children: [
8963
9028
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-10 h-10 mb-2 opacity-50", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }) }),
8964
9029
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", className: "text-xs", children: "Sin vista previa" })
8965
9030
  ] }) }),
8966
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-2 bg-white border-t border-gray-100 flex justify-end gap-2", children: !isConfirmed ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
9031
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-2 bg-white border-t border-secondary-100 flex justify-end gap-2", children: !isConfirmed ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
8967
9032
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8968
- "button",
9033
+ ITButton,
8969
9034
  {
8970
9035
  type: "button",
9036
+ variant: "outlined",
9037
+ color: "secondary",
9038
+ size: "small",
8971
9039
  onClick: handleCancel,
8972
- className: "px-3 py-1.5 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",
8973
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", children: "Cancelar" })
9040
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { children: "Cancelar" })
8974
9041
  }
8975
9042
  ),
8976
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
8977
- "button",
9043
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9044
+ ITButton,
8978
9045
  {
8979
9046
  type: "button",
9047
+ variant: "filled",
9048
+ color: "primary",
9049
+ size: "small",
8980
9050
  onClick: handleConfirm,
8981
- className: "px-3 py-1.5 text-xs font-medium text-white bg-primary-600 rounded-lg hover:bg-primary-700 shadow-sm transition-colors flex items-center gap-1",
8982
- children: [
8983
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", children: "Confirmar" }),
9051
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2", children: [
9052
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { children: "Confirmar" }),
8984
9053
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-3 h-3", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) })
8985
- ]
9054
+ ] })
8986
9055
  }
8987
9056
  )
8988
9057
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
8989
- "button",
9058
+ ITButton,
8990
9059
  {
8991
9060
  type: "button",
9061
+ variant: "outlined",
9062
+ color: "danger",
9063
+ size: "small",
8992
9064
  onClick: handleDelete,
8993
- className: "px-3 py-1.5 text-xs font-medium text-danger-600 bg-danger-50 border border-danger-100 rounded-lg hover:bg-danger-100 transition-colors flex items-center gap-1",
8994
9065
  children: [
8995
9066
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { className: "w-3 h-3", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" }) }),
8996
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", children: "Eliminar" })
9067
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { children: "Eliminar" })
8997
9068
  ]
8998
9069
  }
8999
9070
  ) }),
9000
- uploadStatus === "subiendo" /* UPLOADING */ && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-4 pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "w-full bg-gray-200 rounded-full h-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9071
+ uploadStatus === "subiendo" /* UPLOADING */ && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-4 pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "w-full bg-secondary-200 rounded-full h-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9001
9072
  "div",
9002
9073
  {
9003
9074
  className: "bg-primary-600 h-1.5 rounded-full transition-all duration-1000 ease-out",
@@ -9038,8 +9109,8 @@ function ITTopBar({
9038
9109
  className: "sticky top-0 z-40 backdrop-blur-md transition-all duration-300",
9039
9110
  style: {
9040
9111
  backgroundColor: "var(--topbar-bg, rgba(255, 255, 255, 0.9))",
9041
- borderBottom: "1px solid var(--topbar-border, #e2e8f0)",
9042
- boxShadow: "none"
9112
+ borderBottom: "1px solid var(--topbar-border, rgba(15, 23, 42, 0.06))",
9113
+ boxShadow: "var(--shadow-xs)"
9043
9114
  },
9044
9115
  children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center justify-between h-[72px] px-6 lg:px-8", children: [
9045
9116
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center gap-5", children: [
@@ -9068,7 +9139,7 @@ function ITTopBar({
9068
9139
  }
9069
9140
  )
9070
9141
  ] }),
9071
- navItems && navItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("nav", { className: "hidden md:flex ml-8 space-x-1 border-l pl-8", style: { borderColor: "var(--topbar-border, #e2e8f0)" }, children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9142
+ navItems && navItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("nav", { className: "hidden md:flex ml-8 space-x-1 border-l pl-8", style: { borderColor: "var(--topbar-border, rgba(15, 23, 42, 0.06))" }, children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9072
9143
  "button",
9073
9144
  {
9074
9145
  onClick: () => onNavItemClick?.(item.id),
@@ -9095,7 +9166,7 @@ function ITTopBar({
9095
9166
  "button",
9096
9167
  {
9097
9168
  type: "button",
9098
- className: "flex items-center gap-3 rounded-full pl-2 pr-4 py-1.5 transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)] border border-transparent hover:border-gray-200",
9169
+ className: "flex items-center gap-3 rounded-full pl-2 pr-4 py-1.5 transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)] border border-transparent hover:border-secondary-200",
9099
9170
  style: {
9100
9171
  backgroundColor: isUserMenuOpen ? "var(--topbar-user-hover, #f1f5f9)" : "transparent"
9101
9172
  },
@@ -9146,7 +9217,7 @@ function ITTopBar({
9146
9217
  {
9147
9218
  ref: userMenuRef,
9148
9219
  className: `
9149
- absolute right-0 mt-3 w-64 rounded-2xl shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)] z-50 overflow-hidden transform origin-top-right transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)]
9220
+ absolute right-0 mt-3 w-64 rounded-2xl shadow-[0_10px_40px_-10px_rgba(0,0,0,0.15)] z-[70] overflow-hidden transform origin-top-right transition-all duration-200 ease-[cubic-bezier(0.2,0,0,1)]
9150
9221
  ${isUserMenuOpen ? "scale-100 opacity-100 translate-y-0" : "scale-95 opacity-0 -translate-y-2 pointer-events-none"}
9151
9222
  `,
9152
9223
  style: {
@@ -9170,9 +9241,9 @@ function ITTopBar({
9170
9241
  setIsUserMenuOpen(false);
9171
9242
  },
9172
9243
  className: "block w-full text-left px-3 py-2.5 rounded-xl text-[0.875rem] font-medium transition-colors duration-150",
9173
- style: { color: isDestructive ? "#ef4444" : "var(--topbar-user-text, #334155)" },
9244
+ style: { color: isDestructive ? "var(--color-danger-500)" : "var(--topbar-user-text, #334155)" },
9174
9245
  onMouseEnter: (e) => {
9175
- e.currentTarget.style.backgroundColor = isDestructive ? "#fef2f2" : "var(--topbar-user-item-hover, #f8fafc)";
9246
+ e.currentTarget.style.backgroundColor = isDestructive ? "var(--color-danger-50)" : "var(--topbar-user-item-hover, #f8fafc)";
9176
9247
  },
9177
9248
  onMouseLeave: (e) => {
9178
9249
  e.currentTarget.style.backgroundColor = "transparent";
@@ -9238,7 +9309,7 @@ function ITLayout({
9238
9309
  mobileSidebarOpen && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9239
9310
  "div",
9240
9311
  {
9241
- className: "lg:hidden fixed inset-0 z-50 transition-opacity duration-300 backdrop-blur-sm bg-black/40",
9312
+ className: "lg:hidden fixed inset-0 z-[40] transition-opacity duration-300 backdrop-blur-sm bg-black/40",
9242
9313
  onClick: () => setMobileSidebarOpen(false),
9243
9314
  children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9244
9315
  "div",
@@ -9325,7 +9396,7 @@ function ITLoader({
9325
9396
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9326
9397
  "div",
9327
9398
  {
9328
- className: `w-full ${size === "sm" ? "h-1" : size === "md" ? "h-1.5" : size === "lg" ? "h-2" : "h-2.5"} bg-gray-200 rounded-full overflow-hidden ${className}`,
9399
+ className: `w-full ${size === "sm" ? "h-1" : size === "md" ? "h-1.5" : size === "lg" ? "h-2" : "h-2.5"} bg-secondary-200 rounded-full overflow-hidden ${className}`,
9329
9400
  children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9330
9401
  "div",
9331
9402
  {
@@ -9436,7 +9507,7 @@ function ITStepper({
9436
9507
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9437
9508
  "div",
9438
9509
  {
9439
- className: "absolute left-6 right-6 top-5 h-1 bg-gray-200 rounded-full z-0",
9510
+ className: "absolute left-6 right-6 top-5 h-1 bg-secondary-200 rounded-full z-0",
9440
9511
  "aria-hidden": true
9441
9512
  }
9442
9513
  ),
@@ -9471,7 +9542,7 @@ function ITStepper({
9471
9542
  hasIcon && "p-2",
9472
9543
  isCompleted && "bg-slate-400 border-slate-400 text-white scale-100 shadow",
9473
9544
  isActive && "text-white scale-110 shadow-lg",
9474
- !isActive && !isCompleted && "bg-white border-gray-300 text-gray-400"
9545
+ !isActive && !isCompleted && "bg-white border-secondary-300 text-secondary-400"
9475
9546
  ),
9476
9547
  style: isActive ? { backgroundColor: resolvedColor, borderColor: resolvedColor } : void 0,
9477
9548
  children: renderStepContent(idx, isCompleted, isActive)
@@ -9483,7 +9554,7 @@ function ITStepper({
9483
9554
  as: "span",
9484
9555
  className: (0, import_clsx43.default)(
9485
9556
  "mt-2 text-xs sm:text-sm font-medium transition-colors text-center",
9486
- isCompleted ? "text-slate-400" : !isActive && "text-gray-400"
9557
+ isCompleted ? "text-slate-400" : !isActive && "text-secondary-400"
9487
9558
  ),
9488
9559
  style: isActive ? { color: resolvedColor } : void 0,
9489
9560
  children: step.label
@@ -9504,7 +9575,7 @@ function ITStepper({
9504
9575
  "aria-labelledby": `step-${currentStep}`,
9505
9576
  className: (0, import_clsx43.default)(
9506
9577
  stepClassName,
9507
- "bg-white border border-gray-100 rounded-2xl shadow-lg min-h-[280px] transition-transform duration-400 no-scrollbar p-6",
9578
+ "bg-white border border-secondary-100 rounded-2xl shadow-lg min-h-[280px] transition-transform duration-400 no-scrollbar p-6",
9508
9579
  scrollableContent && "overflow-y-auto hide-scrollbar"
9509
9580
  ),
9510
9581
  style: scrollableContent && maxContentHeight ? { maxHeight: maxContentHeight } : void 0,
@@ -9526,7 +9597,7 @@ function ITStepper({
9526
9597
  }
9527
9598
  ),
9528
9599
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center gap-3", children: [
9529
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(ITText, { as: "div", className: "text-sm text-gray-500 mr-2 hidden sm:block", children: [
9600
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(ITText, { as: "div", className: "text-sm text-secondary-500 mr-2 hidden sm:block", children: [
9530
9601
  "Paso ",
9531
9602
  currentStep + 1,
9532
9603
  " de ",