@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.js CHANGED
@@ -3,6 +3,10 @@ import { useEffect } from "react";
3
3
  var useClickOutside = (ref, callback) => {
4
4
  useEffect(() => {
5
5
  const handleClickOutside = (event) => {
6
+ const target = event.target;
7
+ const clickedDialog = target?.closest("[data-it-dialog]");
8
+ const currentDialog = ref.current?.closest("[data-it-dialog]");
9
+ if (clickedDialog && clickedDialog !== currentDialog) return;
6
10
  if (ref.current && !ref.current.contains(event.target)) {
7
11
  callback();
8
12
  }
@@ -189,11 +193,11 @@ function useTableState({
189
193
  const [totalPages, setTotalPages] = useState3(1);
190
194
  const goToPage = useCallback3(
191
195
  (page) => {
192
- if (page >= 1 && page <= totalPages) {
196
+ if (page >= 1) {
193
197
  setCurrentPage(page);
194
198
  }
195
199
  },
196
- [totalPages]
200
+ []
197
201
  );
198
202
  const handleItemsPerPageChange = useCallback3((value) => {
199
203
  setItemsPerPage(value);
@@ -346,7 +350,8 @@ var sizeMap = {
346
350
  };
347
351
  var DEFAULT_COLOR = "bg-primary-600";
348
352
  var DEFAULT_BG = "var(--color-primary-600)";
349
- var DEFAULT_SHADOW = "0 4px 14px 0 rgba(37, 99, 235, 0.35)";
353
+ var DEFAULT_SHADOW = "0 6px 16px -2px rgba(37, 99, 235, 0.25)";
354
+ var isRawColorValue = (value) => /^#|^rgb|^hsl|^var\(/i.test(value.trim());
350
355
  function ITAvatar({
351
356
  src,
352
357
  alt = "",
@@ -358,17 +363,18 @@ function ITAvatar({
358
363
  onClick
359
364
  }) {
360
365
  const { container, text } = sizeMap[size];
361
- const useInlineStyle = !color || color === DEFAULT_COLOR;
366
+ const useDefaultStyle = !color || color === DEFAULT_COLOR;
367
+ const useRawColorStyle = !useDefaultStyle && isRawColorValue(color);
362
368
  return /* @__PURE__ */ jsxs2(
363
369
  "div",
364
370
  {
365
371
  className: clsx2(
366
372
  "relative inline-flex items-center justify-center rounded-full flex-shrink-0 overflow-hidden text-white font-bold tracking-wide",
367
373
  container,
368
- !useInlineStyle && color,
374
+ !useDefaultStyle && !useRawColorStyle && color,
369
375
  className
370
376
  ),
371
- style: useInlineStyle ? { backgroundColor: DEFAULT_BG, boxShadow: DEFAULT_SHADOW } : void 0,
377
+ style: useDefaultStyle ? { backgroundColor: DEFAULT_BG, boxShadow: DEFAULT_SHADOW } : useRawColorStyle ? { backgroundColor: color } : void 0,
372
378
  onClick,
373
379
  role: onClick ? "button" : void 0,
374
380
  tabIndex: onClick ? 0 : void 0,
@@ -590,7 +596,7 @@ var components = {
590
596
  hover: semanticColors.primary[600],
591
597
  active: semanticColors.primary[700],
592
598
  focus: `0 0 0 2px ${semanticColors.primary[200]}`,
593
- borderRadius: "0.375rem",
599
+ borderRadius: "var(--radius-md)",
594
600
  padding: "0.5rem 1rem",
595
601
  fontSize: "0.875rem",
596
602
  fontWeight: "600",
@@ -601,7 +607,7 @@ var components = {
601
607
  color: "#ffffff",
602
608
  hover: semanticColors.secondary[600],
603
609
  focus: `0 0 0 2px ${semanticColors.secondary[200]}`,
604
- borderRadius: "0.375rem",
610
+ borderRadius: "var(--radius-md)",
605
611
  padding: "0.5rem 1rem",
606
612
  fontSize: "0.875rem",
607
613
  fontWeight: "600"
@@ -611,41 +617,41 @@ var components = {
611
617
  color: "#ffffff",
612
618
  hover: semanticColors.success[600],
613
619
  focus: `0 0 0 2px ${semanticColors.success[200]}`,
614
- borderRadius: "0.375rem"
620
+ borderRadius: "var(--radius-md)"
615
621
  },
616
622
  danger: {
617
623
  backgroundColor: semanticColors.danger[500],
618
624
  color: "#ffffff",
619
625
  hover: semanticColors.danger[600],
620
626
  focus: `0 0 0 2px ${semanticColors.danger[200]}`,
621
- borderRadius: "0.375rem"
627
+ borderRadius: "var(--radius-md)"
622
628
  },
623
629
  error: {
624
630
  backgroundColor: semanticColors.danger[500],
625
631
  color: "#ffffff",
626
632
  hover: semanticColors.danger[600],
627
- borderRadius: "0.375rem"
633
+ borderRadius: "var(--radius-md)"
628
634
  },
629
635
  warning: {
630
636
  backgroundColor: semanticColors.warning[500],
631
637
  color: "#ffffff",
632
638
  hover: semanticColors.warning[600],
633
639
  focus: `0 0 0 2px ${semanticColors.warning[200]}`,
634
- borderRadius: "0.375rem"
640
+ borderRadius: "var(--radius-md)"
635
641
  },
636
642
  info: {
637
643
  backgroundColor: semanticColors.info[500],
638
644
  color: "#ffffff",
639
645
  hover: semanticColors.info[600],
640
646
  focus: `0 0 0 2px ${semanticColors.info[200]}`,
641
- borderRadius: "0.375rem"
647
+ borderRadius: "var(--radius-md)"
642
648
  },
643
649
  purple: {
644
650
  backgroundColor: semanticColors.purple[500],
645
651
  color: "#ffffff",
646
652
  hover: semanticColors.purple[600],
647
653
  focus: `0 0 0 2px ${semanticColors.purple[200]}`,
648
- borderRadius: "0.375rem"
654
+ borderRadius: "var(--radius-md)"
649
655
  },
650
656
  outline: {
651
657
  backgroundColor: "transparent",
@@ -653,7 +659,7 @@ var components = {
653
659
  borderColor: semanticColors.primary[600],
654
660
  borderWidth: "2px",
655
661
  hover: semanticColors.primary[50],
656
- borderRadius: "0.375rem"
662
+ borderRadius: "var(--radius-md)"
657
663
  }
658
664
  },
659
665
  badge: {
@@ -711,19 +717,19 @@ var components = {
711
717
  },
712
718
  card: {
713
719
  backgroundColor: "var(--card-bg, #ffffff)",
714
- borderRadius: "1rem",
720
+ borderRadius: "var(--radius-2xl)",
715
721
  borderColor: `var(--card-border, ${semanticColors.gray[200]})`,
716
722
  borderWidth: "1px",
717
- shadow: "var(--card-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))",
723
+ shadow: "var(--card-shadow, var(--shadow-md))",
718
724
  hover: {
719
- 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))"
725
+ shadow: "var(--card-shadow-hover, var(--shadow-lg))"
720
726
  },
721
727
  header: {
722
728
  backgroundColor: `var(--card-header-bg, ${semanticColors.gray[50]})`,
723
729
  borderBottom: `1px solid var(--card-header-border, var(--color-secondary-200))`,
724
730
  padding: "1rem 1.5rem",
725
- borderTopLeftRadius: "1rem",
726
- borderTopRightRadius: "1rem"
731
+ borderTopLeftRadius: "var(--radius-2xl)",
732
+ borderTopRightRadius: "var(--radius-2xl)"
727
733
  },
728
734
  body: {
729
735
  padding: "1.5rem"
@@ -732,7 +738,7 @@ var components = {
732
738
  input: {
733
739
  backgroundColor: "var(--input-bg, #ffffff)",
734
740
  borderColor: `var(--input-border, ${semanticColors.gray[300]})`,
735
- borderRadius: "0.5rem",
741
+ borderRadius: "var(--radius-md)",
736
742
  padding: "0.5rem 0.75rem",
737
743
  fontSize: "0.875rem",
738
744
  focus: {
@@ -798,8 +804,8 @@ var components = {
798
804
  },
799
805
  content: {
800
806
  backgroundColor: "var(--modal-bg, #ffffff)",
801
- borderRadius: "1rem",
802
- shadow: "var(--modal-shadow, 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))"
807
+ borderRadius: "var(--radius-2xl)",
808
+ shadow: "var(--modal-shadow, var(--shadow-xl))"
803
809
  },
804
810
  header: {
805
811
  padding: "1.5rem 1.5rem 0.5rem 1.5rem",
@@ -862,10 +868,23 @@ var typography = {
862
868
  relaxed: "1.75"
863
869
  }
864
870
  };
871
+ var zIndex = {
872
+ /** Barras sticky (ITTopbar) y overlays de navegación (sidebar/aside móvil). */
873
+ navOverlay: 40,
874
+ /** Paneles deslizantes (ITDrawer). */
875
+ drawer: 50,
876
+ /** Diálogos modales (ITDialog, ITConfirmDialog). */
877
+ modal: 60,
878
+ /** UI flotante contextual: dropdowns, ITPopover, ITTooltip, ITDatePicker/ITTimePicker. */
879
+ floating: 70,
880
+ /** Notificaciones globales (ITToast) — siempre por encima de todo lo demás. */
881
+ toast: 80
882
+ };
865
883
  var theme = {
866
884
  palette,
867
885
  colors: semanticColors,
868
886
  typography,
887
+ zIndex,
869
888
  ...components
870
889
  };
871
890
 
@@ -1349,7 +1368,7 @@ var ITCalendar = ({
1349
1368
  },
1350
1369
  year
1351
1370
  )) }) : mode === "month" ? /* @__PURE__ */ jsxs5("div", { className: "p-4", children: [
1352
- /* @__PURE__ */ jsx7("div", { className: "grid grid-cols-7 mb-2", children: ["Lun", "Mar", "Mi\xE9", "Jue", "Vie", "S\xE1b", "Dom"].map((day) => /* @__PURE__ */ jsx7(ITText, { as: "div", className: "text-center text-xs font-semibold text-gray-400 uppercase py-1", children: day }, day)) }),
1371
+ /* @__PURE__ */ jsx7("div", { className: "grid grid-cols-7 mb-2", children: ["Lun", "Mar", "Mi\xE9", "Jue", "Vie", "S\xE1b", "Dom"].map((day) => /* @__PURE__ */ jsx7(ITText, { as: "div", className: "text-center text-xs font-semibold text-secondary-400 uppercase py-1", children: day }, day)) }),
1353
1372
  /* @__PURE__ */ jsx7("div", { className: "grid grid-cols-7 gap-1", children: monthDays.map((day) => {
1354
1373
  const isDisabled = isDateDisabled(day);
1355
1374
  const isCurrentMonth = isSameMonth(day, currentDate);
@@ -1590,11 +1609,14 @@ function ITCard({
1590
1609
  const [isHovered, setIsHovered] = useState6(false);
1591
1610
  const containerStyle = {
1592
1611
  backgroundColor: "var(--card-bg, #ffffff)",
1593
- borderColor: "var(--card-border, #e2e8f0)",
1612
+ borderColor: "var(--card-border, rgba(15, 23, 42, 0.06))",
1594
1613
  borderWidth: "1px",
1595
- borderRadius: "var(--card-radius, 0.75rem)",
1596
- boxShadow: onClick ? isHovered ? "0 8px 25px -5px rgba(0, 0, 0, 0.1)" : "0 1px 3px 0 rgba(0, 0, 0, 0.05)" : "none",
1597
- transition: onClick ? "all 0.2s ease-in-out" : "none",
1614
+ borderRadius: "var(--card-radius, var(--radius-2xl))",
1615
+ // Soft depth: every card floats a little at rest; interactive cards
1616
+ // gain visual weight on hover instead of appearing flat until clicked.
1617
+ boxShadow: onClick ? isHovered ? "var(--shadow-lg)" : "var(--shadow-sm)" : "var(--shadow-sm)",
1618
+ transition: onClick ? "box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out" : "none",
1619
+ transform: onClick && isHovered ? "translateY(-2px)" : "translateY(0)",
1598
1620
  cursor: onClick ? "pointer" : "default"
1599
1621
  };
1600
1622
  const bodyStyle = {
@@ -1626,13 +1648,13 @@ function ITCard({
1626
1648
  children: title
1627
1649
  }
1628
1650
  ),
1629
- /* @__PURE__ */ jsx8(ITText, { as: "div", className: "text-gray-600", children })
1651
+ /* @__PURE__ */ jsx8(ITText, { as: "div", className: "text-secondary-600", children })
1630
1652
  ] }),
1631
1653
  actions && /* @__PURE__ */ jsx8(
1632
1654
  "div",
1633
1655
  {
1634
1656
  className: clsx7(
1635
- "p-4 border-t border-gray-100 mt-auto",
1657
+ "p-4 border-t border-secondary-100 mt-auto",
1636
1658
  actionClassName
1637
1659
  ),
1638
1660
  children: actions
@@ -1714,7 +1736,7 @@ function ITConfirmDialog({
1714
1736
  loading = false
1715
1737
  }) {
1716
1738
  if (!isOpen) return null;
1717
- return /* @__PURE__ */ jsxs8("div", { className: "fixed inset-0 z-[300] flex items-center justify-center p-4", children: [
1739
+ return /* @__PURE__ */ jsxs8("div", { className: "fixed inset-0 z-[60] flex items-center justify-center p-4", children: [
1718
1740
  /* @__PURE__ */ jsx10("div", { className: "absolute inset-0 bg-black/40 backdrop-blur-sm", onClick: onClose }),
1719
1741
  /* @__PURE__ */ jsxs8(
1720
1742
  "div",
@@ -1768,12 +1790,25 @@ import clsx10 from "clsx";
1768
1790
  function inputLabel(error) {
1769
1791
  return clsx10(
1770
1792
  "text-sm font-medium",
1771
- error ? "text-red-500" : "text-gray-700 dark:text-slate-300"
1793
+ error ? "text-danger-500" : "text-secondary-700 dark:text-secondary-300"
1772
1794
  );
1773
1795
  }
1774
- var inputError = "text-red-500 text-xs mt-1";
1796
+ var inputError = "text-danger-500 text-xs mt-1";
1775
1797
  var iconAbsoluteLeft = "absolute inset-y-0 left-0 flex items-center pl-3 z-10";
1776
1798
  var iconAbsoluteRight = "absolute inset-y-0 right-0 flex items-center pr-3 z-10";
1799
+ var tableContainer = "rounded-xl shadow-sm border border-secondary-200 overflow-hidden";
1800
+ var tableHeaderRow = "bg-secondary-50 border-b border-secondary-200 text-xs uppercase tracking-wider font-semibold text-secondary-500";
1801
+ function tableHeaderCell(className) {
1802
+ return clsx10("px-4 py-4 align-top", className);
1803
+ }
1804
+ var tableBody = "divide-y divide-secondary-100";
1805
+ var tableRow = "hover:bg-secondary-50/50 transition-colors duration-150 group";
1806
+ function tableCell(className) {
1807
+ return clsx10("px-4 py-3 align-middle", className);
1808
+ }
1809
+ var tableActionsCell = "flex items-center justify-center gap-2";
1810
+ var tableCellText = "text-secondary-700 font-medium";
1811
+ var tableEmptyContent = "flex flex-col items-center justify-center text-secondary-400";
1777
1812
  var gridColsClasses = {
1778
1813
  1: "grid-cols-1",
1779
1814
  2: "grid-cols-2",
@@ -2162,14 +2197,14 @@ function ITInput({
2162
2197
  type === "checkbox" && "form-checkbox rounded",
2163
2198
  className,
2164
2199
  { [disabledOverlay]: disabled },
2165
- { "border-red-500": hasError }
2200
+ { "border-danger-500": hasError }
2166
2201
  )
2167
2202
  }
2168
2203
  ),
2169
- label && /* @__PURE__ */ jsxs9("label", { htmlFor: name, className: "text-sm text-gray-700 dark:text-slate-300 select-none", children: [
2204
+ label && /* @__PURE__ */ jsxs9("label", { htmlFor: name, className: "text-sm text-secondary-700 dark:text-slate-300 select-none", children: [
2170
2205
  label,
2171
2206
  " ",
2172
- required && /* @__PURE__ */ jsx11(ITText, { as: "span", className: "text-red-500", children: "*" })
2207
+ required && /* @__PURE__ */ jsx11(ITText, { as: "span", className: "text-danger-500", children: "*" })
2173
2208
  ] })
2174
2209
  ] })
2175
2210
  ) : (
@@ -2185,7 +2220,7 @@ function ITInput({
2185
2220
  ),
2186
2221
  children: [
2187
2222
  label,
2188
- required && /* @__PURE__ */ jsx11(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
2223
+ required && /* @__PURE__ */ jsx11(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
2189
2224
  ]
2190
2225
  }
2191
2226
  ),
@@ -2264,7 +2299,7 @@ function ITInput({
2264
2299
  "button",
2265
2300
  {
2266
2301
  type: "button",
2267
- className: "absolute inset-y-0 right-0 flex items-center pr-3 z-10 text-gray-400 hover:text-gray-600 focus:outline-none",
2302
+ className: "absolute inset-y-0 right-0 flex items-center pr-3 z-10 text-secondary-400 hover:text-secondary-600 focus:outline-none",
2268
2303
  onClick: () => setShowPassword(!showPassword),
2269
2304
  tabIndex: -1,
2270
2305
  children: showPassword ? /* @__PURE__ */ jsxs9("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: [
@@ -2284,11 +2319,11 @@ function ITInput({
2284
2319
  ] })
2285
2320
  ),
2286
2321
  hasError && !isCheckboxOrRadio && /* @__PURE__ */ jsx11("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ jsx11(ITText, { as: "p", className: inputError, children: errorMessage }) }),
2287
- showHintLength && (minLength || maxLength) && !isCheckboxOrRadio && /* @__PURE__ */ jsx11("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ jsxs9(ITText, { as: "p", className: "text-gray-500", children: [
2322
+ showHintLength && (minLength || maxLength) && !isCheckboxOrRadio && /* @__PURE__ */ jsx11("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ jsxs9(ITText, { as: "p", className: "text-secondary-500", children: [
2288
2323
  currentLength,
2289
2324
  maxLength && `/${maxLength}`
2290
2325
  ] }) }),
2291
- isCheckboxOrRadio && hasError && /* @__PURE__ */ jsx11("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ jsx11(ITText, { as: "p", className: "text-red-500", children: errorMessage }) })
2326
+ isCheckboxOrRadio && hasError && /* @__PURE__ */ jsx11("div", { className: "mt-1 text-xs", children: /* @__PURE__ */ jsx11(ITText, { as: "p", className: "text-danger-500", children: errorMessage }) })
2292
2327
  ] });
2293
2328
  }
2294
2329
 
@@ -2364,13 +2399,10 @@ function ITSelect({
2364
2399
  {
2365
2400
  as: "label",
2366
2401
  htmlFor: name,
2367
- className: clsx12(
2368
- "text-sm font-medium text-gray-700 dark:text-slate-300 pt-0",
2369
- { "text-red-500": hasError }
2370
- ),
2402
+ className: inputLabel(hasError),
2371
2403
  children: [
2372
2404
  /* @__PURE__ */ jsx12(ITText, { as: "span", children: label }),
2373
- required && /* @__PURE__ */ jsx12(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
2405
+ required && /* @__PURE__ */ jsx12(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
2374
2406
  ]
2375
2407
  }
2376
2408
  ),
@@ -2398,22 +2430,22 @@ function ITSelect({
2398
2430
  ),
2399
2431
  style: getStyle(),
2400
2432
  children: [
2401
- /* @__PURE__ */ jsx12("option", { value: "", children: /* @__PURE__ */ jsx12(ITText, { as: "span", children: placeholder || "Selecciona una opci\xF3n" }) }),
2402
- readOnly ? /* @__PURE__ */ jsx12("option", { value, disabled: true, children: /* @__PURE__ */ jsx12(ITText, { as: "span", children: options.find((option) => option[valueField] === value)?.[labelField] }) }) : options.map((option) => /* @__PURE__ */ jsx12(
2433
+ /* @__PURE__ */ jsx12("option", { value: "", children: placeholder || "Selecciona una opci\xF3n" }),
2434
+ readOnly ? /* @__PURE__ */ jsx12("option", { value, disabled: true, children: options.find((option) => option[valueField] === value)?.[labelField] }) : options.map((option) => /* @__PURE__ */ jsx12(
2403
2435
  "option",
2404
2436
  {
2405
2437
  value: option[valueField],
2406
2438
  title: option[labelField],
2407
- children: /* @__PURE__ */ jsx12(ITText, { as: "span", children: option[labelField] })
2439
+ children: option[labelField]
2408
2440
  },
2409
2441
  option[valueField]
2410
2442
  ))
2411
2443
  ]
2412
2444
  }
2413
2445
  ),
2414
- /* @__PURE__ */ jsx12("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-gray-500", children: /* @__PURE__ */ jsx12(FaAngleDown, {}) })
2446
+ /* @__PURE__ */ jsx12("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-secondary-500", children: /* @__PURE__ */ jsx12(FaAngleDown, {}) })
2415
2447
  ] }),
2416
- hasError && /* @__PURE__ */ jsx12("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ jsx12(ITText, { as: "p", className: "text-red-500 text-xs", children: errorMessage }) })
2448
+ hasError && /* @__PURE__ */ jsx12("div", { className: "flex-shrink-0 min-w-[140px] flex items-center pt-3", children: /* @__PURE__ */ jsx12(ITText, { as: "p", className: inputError, children: errorMessage }) })
2417
2449
  ] })
2418
2450
  ] }) });
2419
2451
  }
@@ -2499,7 +2531,7 @@ function ITPagination({
2499
2531
  {
2500
2532
  className: clsx13(
2501
2533
  baseItemClass,
2502
- currentPage === 1 ? "text-gray-300 cursor-not-allowed" : "text-gray-500 hover:bg-gray-100"
2534
+ currentPage === 1 ? "text-secondary-300 cursor-not-allowed" : "text-secondary-500 hover:bg-secondary-100"
2503
2535
  ),
2504
2536
  onClick: handlePrevious,
2505
2537
  "aria-disabled": currentPage === 1,
@@ -2512,7 +2544,7 @@ function ITPagination({
2512
2544
  ITText,
2513
2545
  {
2514
2546
  as: "div",
2515
- className: "flex items-center justify-center w-8 h-8 select-none text-gray-400",
2547
+ className: "flex items-center justify-center w-8 h-8 select-none text-secondary-400",
2516
2548
  children: "\u2026"
2517
2549
  },
2518
2550
  `dots-${idx}`
@@ -2525,7 +2557,7 @@ function ITPagination({
2525
2557
  as: "div",
2526
2558
  className: clsx13(
2527
2559
  baseItemClass,
2528
- isActive ? "text-white" : "text-gray-600 hover:bg-gray-100"
2560
+ isActive ? "text-white" : "text-secondary-600 hover:bg-secondary-100"
2529
2561
  ),
2530
2562
  style: {
2531
2563
  backgroundColor: isActive ? resolvedBgColor : void 0,
@@ -2543,7 +2575,7 @@ function ITPagination({
2543
2575
  {
2544
2576
  className: clsx13(
2545
2577
  baseItemClass,
2546
- currentPage === totalPages ? "text-gray-300 cursor-not-allowed" : "text-gray-500 hover:bg-gray-100"
2578
+ currentPage === totalPages ? "text-secondary-300 cursor-not-allowed" : "text-secondary-500 hover:bg-secondary-100"
2547
2579
  ),
2548
2580
  onClick: handleNext,
2549
2581
  "aria-disabled": currentPage === totalPages,
@@ -2555,8 +2587,8 @@ function ITPagination({
2555
2587
  const startItem = Math.min((currentPage - 1) * itemsPerPage + 1, totalItems || 0);
2556
2588
  const endItem = Math.min(currentPage * itemsPerPage, totalItems || 0);
2557
2589
  return /* @__PURE__ */ jsxs11("div", { className: clsx13("flex flex-col sm:flex-row justify-between items-center gap-4 w-full", className), children: [
2558
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-4 text-sm text-gray-500", children: [
2559
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2 bg-gray-50 px-3 py-1 rounded-lg border border-gray-200", children: [
2590
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-4 text-sm text-secondary-500", children: [
2591
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2 bg-secondary-50 px-3 py-1 rounded-lg border border-secondary-200", children: [
2560
2592
  /* @__PURE__ */ jsx13(ITText, { as: "span", className: "text-xs font-medium", children: "Mostrar" }),
2561
2593
  /* @__PURE__ */ jsx13(
2562
2594
  ITSelect,
@@ -2571,19 +2603,19 @@ function ITPagination({
2571
2603
  onBlur: () => {
2572
2604
  },
2573
2605
  size: "small",
2574
- 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",
2606
+ 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",
2575
2607
  placeholder: ""
2576
2608
  }
2577
2609
  )
2578
2610
  ] }),
2579
2611
  totalItems !== void 0 && /* @__PURE__ */ jsxs11(Fragment2, { children: [
2580
- /* @__PURE__ */ jsx13(ITText, { as: "span", className: "text-gray-300", children: "|" }),
2612
+ /* @__PURE__ */ jsx13(ITText, { as: "span", className: "text-secondary-300", children: "|" }),
2581
2613
  /* @__PURE__ */ jsxs11(ITText, { as: "span", className: "text-xs", children: [
2582
- /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-gray-700", children: startItem }),
2614
+ /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-secondary-700", children: startItem }),
2583
2615
  /* @__PURE__ */ jsx13(ITText, { as: "span", children: " - " }),
2584
- /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-gray-700", children: endItem }),
2616
+ /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-secondary-700", children: endItem }),
2585
2617
  /* @__PURE__ */ jsx13(ITText, { as: "span", children: " de " }),
2586
- /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-gray-900", children: totalItems })
2618
+ /* @__PURE__ */ jsx13(ITText, { as: "span", className: "font-semibold text-secondary-900", children: totalItems })
2587
2619
  ] })
2588
2620
  ] })
2589
2621
  ] }),
@@ -2726,15 +2758,15 @@ function ITTable({
2726
2758
  onClick: () => handleFilterChange(col.key, nextValue),
2727
2759
  "aria-label": `${getToggleLabel()} para ${col.label}`,
2728
2760
  title: `${getToggleLabel()} para ${col.label}`,
2729
- children: /* @__PURE__ */ jsx14("div", { className: "relative w-10 h-5 bg-gray-300 rounded-full", children: /* @__PURE__ */ jsx14(
2761
+ children: /* @__PURE__ */ jsx14("div", { className: "relative w-10 h-5 bg-secondary-300 rounded-full", children: /* @__PURE__ */ jsx14(
2730
2762
  "div",
2731
2763
  {
2732
2764
  className: clsx14(
2733
2765
  "absolute top-0.5 w-4 h-4 rounded-full transition-all duration-300 shadow-sm",
2734
2766
  {
2735
- "left-0.5 bg-gray-400": currentValue === void 0,
2767
+ "left-0.5 bg-secondary-400": currentValue === void 0,
2736
2768
  "left-5 bg-slate-500": currentValue === true,
2737
- "left-0.5 bg-gray-500": currentValue === false
2769
+ "left-0.5 bg-secondary-500": currentValue === false
2738
2770
  }
2739
2771
  )
2740
2772
  }
@@ -2754,7 +2786,7 @@ function ITTable({
2754
2786
  );
2755
2787
  }
2756
2788
  if (col.catalogOptions.error) {
2757
- return /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-red-500 text-xs", children: "Error cargando" });
2789
+ return /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-danger-500 text-xs", children: "Error cargando" });
2758
2790
  }
2759
2791
  return /* @__PURE__ */ jsx14(
2760
2792
  ITSelect,
@@ -2803,14 +2835,14 @@ function ITTable({
2803
2835
  return value ? /* @__PURE__ */ jsx14(
2804
2836
  FaCheck,
2805
2837
  {
2806
- className: "text-green-500",
2838
+ className: "text-success-500",
2807
2839
  "aria-label": "Verdadero",
2808
2840
  title: "Verdadero"
2809
2841
  }
2810
2842
  ) : /* @__PURE__ */ jsx14(
2811
2843
  FaTimes2,
2812
2844
  {
2813
- className: "text-red-500",
2845
+ className: "text-danger-500",
2814
2846
  "aria-label": "Falso",
2815
2847
  title: "Falso"
2816
2848
  }
@@ -2840,7 +2872,7 @@ function ITTable({
2840
2872
  actionCol?.actions && /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-end gap-2 pt-2 border-t border-slate-100 dark:border-slate-700", children: actionCol.actions(row) })
2841
2873
  ] });
2842
2874
  };
2843
- return /* @__PURE__ */ jsx14("div", { className: clsx14("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs12("div", { className: "rounded-xl shadow-sm overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2875
+ return /* @__PURE__ */ jsx14("div", { className: clsx14("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs12("div", { className: tableContainer, style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2844
2876
  title && /* @__PURE__ */ jsxs12("div", { className: "px-6 py-5 flex items-center justify-between", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
2845
2877
  /* @__PURE__ */ jsx14(ITText, { as: "h2", className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
2846
2878
  /* @__PURE__ */ jsxs12("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: [
@@ -2892,7 +2924,7 @@ function ITTable({
2892
2924
  }
2893
2925
  )
2894
2926
  ] }) }),
2895
- viewMode === "cards" ? /* @__PURE__ */ jsx14("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: currentData.length > 0 ? currentData.map((row, i) => /* @__PURE__ */ jsx14("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 text-secondary-400", children: [
2927
+ viewMode === "cards" ? /* @__PURE__ */ jsx14("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: currentData.length > 0 ? currentData.map((row, i) => /* @__PURE__ */ jsx14("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : /* @__PURE__ */ jsxs12("div", { className: clsx14(tableEmptyContent, "py-12"), children: [
2896
2928
  /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
2897
2929
  /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
2898
2930
  ] }) }) : /* @__PURE__ */ jsx14("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs12(
@@ -2906,11 +2938,11 @@ function ITTable({
2906
2938
  sizeStyles[size]
2907
2939
  ),
2908
2940
  children: [
2909
- /* @__PURE__ */ jsx14("thead", { children: /* @__PURE__ */ jsx14("tr", { className: "bg-secondary-50 text-xs uppercase tracking-wider font-semibold text-slate-700 dark:text-slate-200", children: columns.map((col) => /* @__PURE__ */ jsx14(
2941
+ /* @__PURE__ */ jsx14("thead", { children: /* @__PURE__ */ jsx14("tr", { className: clsx14(tableHeaderRow, "dark:text-slate-200"), children: columns.map((col) => /* @__PURE__ */ jsx14(
2910
2942
  "th",
2911
2943
  {
2912
2944
  scope: "col",
2913
- className: clsx14("px-4 py-4 align-top", col.className),
2945
+ className: tableHeaderCell(col.className),
2914
2946
  children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
2915
2947
  /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between gap-2", children: [
2916
2948
  /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-slate-900 dark:text-white font-bold", children: col.label }),
@@ -2929,21 +2961,21 @@ function ITTable({
2929
2961
  },
2930
2962
  col.key
2931
2963
  )) }) }),
2932
- /* @__PURE__ */ jsx14("tbody", { className: "divide-y divide-slate-100 dark:divide-slate-700/30", children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ jsx14(
2964
+ /* @__PURE__ */ jsx14("tbody", { className: clsx14(tableBody, "dark:divide-slate-700/30"), children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ jsx14(
2933
2965
  "tr",
2934
2966
  {
2935
- className: clsx14("hover:bg-secondary-50/50 transition-colors duration-150 group", variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"),
2967
+ className: clsx14(tableRow, variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"),
2936
2968
  children: columns.map((col) => /* @__PURE__ */ jsx14(
2937
2969
  "td",
2938
2970
  {
2939
- className: clsx14("px-4 py-3 align-middle", col.className),
2940
- children: col.type === "actions" ? /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx14("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) })
2971
+ className: tableCell(col.className),
2972
+ children: col.type === "actions" ? /* @__PURE__ */ jsx14("div", { className: tableActionsCell, children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx14("div", { className: tableCellText, children: renderCellContent(col, row) })
2941
2973
  },
2942
2974
  `${rowIndex}-${col.key}`
2943
2975
  ))
2944
2976
  },
2945
2977
  rowIndex
2946
- )) : /* @__PURE__ */ jsx14("tr", { children: /* @__PURE__ */ jsx14("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
2978
+ )) : /* @__PURE__ */ jsx14("tr", { children: /* @__PURE__ */ jsx14("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ jsxs12("div", { className: tableEmptyContent, children: [
2947
2979
  /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
2948
2980
  /* @__PURE__ */ jsx14(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
2949
2981
  ] }) }) }) })
@@ -3056,15 +3088,15 @@ function ITDataTable({
3056
3088
  "aria-label": `${getToggleLabel()} para ${col.label}`,
3057
3089
  title: `${getToggleLabel()} para ${col.label}`,
3058
3090
  disabled: isLoading,
3059
- children: /* @__PURE__ */ jsx15("div", { className: "relative w-10 h-5 bg-gray-300 rounded-full", children: /* @__PURE__ */ jsx15(
3091
+ children: /* @__PURE__ */ jsx15("div", { className: "relative w-10 h-5 bg-secondary-300 rounded-full", children: /* @__PURE__ */ jsx15(
3060
3092
  "div",
3061
3093
  {
3062
3094
  className: clsx15(
3063
3095
  "absolute top-0.5 w-4 h-4 rounded-full transition-all duration-300 shadow-sm",
3064
3096
  {
3065
- "left-0.5 bg-gray-400": currentValue === void 0,
3097
+ "left-0.5 bg-secondary-400": currentValue === void 0,
3066
3098
  "left-5 bg-slate-500": currentValue === true,
3067
- "left-0.5 bg-gray-500": currentValue === false
3099
+ "left-0.5 bg-secondary-500": currentValue === false
3068
3100
  }
3069
3101
  )
3070
3102
  }
@@ -3077,7 +3109,7 @@ function ITDataTable({
3077
3109
  return /* @__PURE__ */ jsx15(FaSpinner2, { className: "animate-spin", "aria-label": "Cargando opciones", title: "Cargando opciones" });
3078
3110
  }
3079
3111
  if (col.catalogOptions.error) {
3080
- return /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-red-500 text-xs", children: "Error cargando" });
3112
+ return /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-danger-500 text-xs", children: "Error cargando" });
3081
3113
  }
3082
3114
  return /* @__PURE__ */ jsx15(
3083
3115
  ITSelect,
@@ -3123,7 +3155,7 @@ function ITDataTable({
3123
3155
  case "number":
3124
3156
  return typeof value === "number" && col.currencyMX ? formatCurrencyMX(value) : value;
3125
3157
  case "boolean":
3126
- return value ? /* @__PURE__ */ jsx15(FaCheck2, { className: "text-green-500", "aria-label": "Verdadero", title: "Verdadero" }) : /* @__PURE__ */ jsx15(FaTimes3, { className: "text-red-500", "aria-label": "Falso", title: "Falso" });
3158
+ return value ? /* @__PURE__ */ jsx15(FaCheck2, { className: "text-success-500", "aria-label": "Verdadero", title: "Verdadero" }) : /* @__PURE__ */ jsx15(FaTimes3, { className: "text-danger-500", "aria-label": "Falso", title: "Falso" });
3127
3159
  case "actions":
3128
3160
  return col.actions ? col.actions(row) : null;
3129
3161
  case "catalog":
@@ -3149,7 +3181,7 @@ function ITDataTable({
3149
3181
  };
3150
3182
  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"}`;
3151
3183
  return /* @__PURE__ */ jsxs13("div", { className: clsx15("space-y-4 w-full relative", containerClassName), children: [
3152
- /* @__PURE__ */ jsxs13("div", { className: "rounded-xl shadow-sm overflow-hidden", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3184
+ /* @__PURE__ */ jsxs13("div", { className: tableContainer, style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3153
3185
  title && /* @__PURE__ */ jsxs13("div", { className: "px-6 py-5 flex items-center justify-between", style: { backgroundColor: "var(--color-table-rowBg, #ffffff)" }, children: [
3154
3186
  /* @__PURE__ */ jsx15(ITText, { as: "h2", className: "text-xl font-bold text-secondary-900 leading-tight", children: title }),
3155
3187
  /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3", children: [
@@ -3181,7 +3213,7 @@ function ITDataTable({
3181
3213
  /* @__PURE__ */ jsx15(FaSpinner2, { className: "animate-spin text-primary-500 text-4xl" }),
3182
3214
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-sm font-semibold text-secondary-600 animate-pulse", children: "Cargando datos..." })
3183
3215
  ] }) }) }),
3184
- viewMode === "cards" ? /* @__PURE__ */ jsx15("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: data.length > 0 ? data.map((row, i) => /* @__PURE__ */ jsx15("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : !isLoading && /* @__PURE__ */ jsxs13("div", { className: "flex flex-col items-center justify-center py-12 text-secondary-400", children: [
3216
+ viewMode === "cards" ? /* @__PURE__ */ jsx15("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: data.length > 0 ? data.map((row, i) => /* @__PURE__ */ jsx15("div", { children: renderCard ? renderCard(row) : renderDefaultCard(row) }, i)) : !isLoading && /* @__PURE__ */ jsxs13("div", { className: clsx15(tableEmptyContent, "py-12"), children: [
3185
3217
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
3186
3218
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3187
3219
  ] }) }) : /* @__PURE__ */ jsxs13(
@@ -3197,7 +3229,7 @@ function ITDataTable({
3197
3229
  className
3198
3230
  ),
3199
3231
  children: [
3200
- /* @__PURE__ */ jsx15("thead", { children: /* @__PURE__ */ jsx15("tr", { className: "bg-secondary-50 text-xs uppercase tracking-wider font-semibold text-slate-700 dark:text-slate-200", children: columns.map((col) => /* @__PURE__ */ jsx15("th", { scope: "col", className: clsx15("px-4 py-4 align-top", col.className), children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3232
+ /* @__PURE__ */ jsx15("thead", { children: /* @__PURE__ */ jsx15("tr", { className: clsx15(tableHeaderRow, "dark:text-slate-200"), children: columns.map((col) => /* @__PURE__ */ jsx15("th", { scope: "col", className: tableHeaderCell(col.className), children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3201
3233
  /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between gap-2", children: [
3202
3234
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-slate-900 dark:text-white font-bold", children: col.label }),
3203
3235
  col.sortable && col.type !== "actions" && /* @__PURE__ */ jsx15(
@@ -3213,7 +3245,7 @@ function ITDataTable({
3213
3245
  ] }),
3214
3246
  /* @__PURE__ */ jsx15("div", { className: "w-full", children: col.filter ? renderFilterInput(col) : null })
3215
3247
  ] }) }, col.key)) }) }),
3216
- /* @__PURE__ */ jsx15("tbody", { className: "divide-y divide-slate-100 dark:divide-slate-700/30", children: data.length > 0 ? data.map((row, rowIndex) => /* @__PURE__ */ jsx15("tr", { className: clsx15("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__ */ jsx15("td", { className: clsx15("px-4 py-3 align-middle", col.className), children: col.type === "actions" ? /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx15("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) }) }, `${rowIndex}-${col.key}`)) }, rowIndex)) : /* @__PURE__ */ jsx15("tr", { children: /* @__PURE__ */ jsx15("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: !isLoading && /* @__PURE__ */ jsxs13("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
3248
+ /* @__PURE__ */ jsx15("tbody", { className: clsx15(tableBody, "dark:divide-slate-700/30"), children: data.length > 0 ? data.map((row, rowIndex) => /* @__PURE__ */ jsx15("tr", { className: clsx15(tableRow, variant === "striped" && "odd:bg-secondary-50/40 dark:odd:bg-slate-800/20"), children: columns.map((col) => /* @__PURE__ */ jsx15("td", { className: tableCell(col.className), children: col.type === "actions" ? /* @__PURE__ */ jsx15("div", { className: tableActionsCell, children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx15("div", { className: tableCellText, children: renderCellContent(col, row) }) }, `${rowIndex}-${col.key}`)) }, rowIndex)) : /* @__PURE__ */ jsx15("tr", { children: /* @__PURE__ */ jsx15("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: !isLoading && /* @__PURE__ */ jsxs13("div", { className: tableEmptyContent, children: [
3217
3249
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-lg", children: "No se encontraron resultados" }),
3218
3250
  /* @__PURE__ */ jsx15(ITText, { as: "span", className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3219
3251
  ] }) }) }) })
@@ -3464,7 +3496,7 @@ function ITDatePicker({
3464
3496
  "div",
3465
3497
  {
3466
3498
  className: clsx16(
3467
- "fixed z-[9999]",
3499
+ "fixed z-[70]",
3468
3500
  calendarClassName,
3469
3501
  range ? "w-[320px]" : "w-[280px]"
3470
3502
  ),
@@ -3531,8 +3563,8 @@ var ITTabs = ({
3531
3563
  const activeContent = items.find((item) => item.id === activeId)?.content;
3532
3564
  return /* @__PURE__ */ jsxs15("div", { className: clsx17("w-full", containerClassName), children: [
3533
3565
  /* @__PURE__ */ jsx17("div", { className: clsx17(
3534
- "flex border-gray-200 mb-4",
3535
- variant === "line" ? "border-b" : "gap-2 p-1 bg-gray-100 rounded-lg w-fit",
3566
+ "flex border-secondary-200 mb-4",
3567
+ variant === "line" ? "border-b" : "gap-2 p-1 bg-secondary-100 rounded-lg w-fit",
3536
3568
  className
3537
3569
  ), children: items.map((item) => {
3538
3570
  const isActive = item.id === activeId;
@@ -3546,12 +3578,12 @@ var ITTabs = ({
3546
3578
  // LINE VARIANT
3547
3579
  variant === "line" && [
3548
3580
  "border-b-2 -mb-[2px]",
3549
- isActive ? "border-primary-500 text-primary-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"
3581
+ isActive ? "border-primary-500 text-primary-600" : "border-transparent text-secondary-500 hover:text-secondary-700 hover:border-secondary-300"
3550
3582
  ],
3551
3583
  // PILL VARIANT
3552
3584
  variant === "pill" && [
3553
3585
  "rounded-md",
3554
- isActive ? "bg-white text-primary-600 shadow-sm" : "text-gray-500 hover:text-gray-700"
3586
+ isActive ? "bg-white text-primary-600 shadow-sm" : "text-secondary-500 hover:text-secondary-700"
3555
3587
  ],
3556
3588
  item.disabled && "opacity-50 cursor-not-allowed"
3557
3589
  ),
@@ -4357,23 +4389,23 @@ function ITThemeProvider({
4357
4389
  color: #cbd5e1;
4358
4390
  }
4359
4391
  .dark .text-slate-800, [data-theme="dark"] .text-slate-800,
4360
- .dark .text-gray-800, [data-theme="dark"] .text-gray-800 {
4392
+ .dark .text-secondary-800, [data-theme="dark"] .text-secondary-800 {
4361
4393
  color: #f8fafc !important;
4362
4394
  }
4363
4395
  .dark .text-slate-700, [data-theme="dark"] .text-slate-700,
4364
- .dark .text-gray-700, [data-theme="dark"] .text-gray-700 {
4396
+ .dark .text-secondary-700, [data-theme="dark"] .text-secondary-700 {
4365
4397
  color: #cbd5e1 !important;
4366
4398
  }
4367
4399
  .dark .text-slate-600, [data-theme="dark"] .text-slate-600,
4368
- .dark .text-gray-600, [data-theme="dark"] .text-gray-600 {
4400
+ .dark .text-secondary-600, [data-theme="dark"] .text-secondary-600 {
4369
4401
  color: #cbd5e1 !important;
4370
4402
  }
4371
4403
  .dark .text-slate-500, [data-theme="dark"] .text-slate-500,
4372
- .dark .text-gray-500, [data-theme="dark"] .text-gray-500 {
4404
+ .dark .text-secondary-500, [data-theme="dark"] .text-secondary-500 {
4373
4405
  color: #94a3b8 !important;
4374
4406
  }
4375
4407
  .dark .text-slate-400, [data-theme="dark"] .text-slate-400,
4376
- .dark .text-gray-400, [data-theme="dark"] .text-gray-400 {
4408
+ .dark .text-secondary-400, [data-theme="dark"] .text-secondary-400 {
4377
4409
  color: #64748b !important;
4378
4410
  }
4379
4411
 
@@ -4381,25 +4413,25 @@ function ITThemeProvider({
4381
4413
  background-color: var(--card-bg, #111827) !important;
4382
4414
  }
4383
4415
  .dark .bg-slate-50, [data-theme="dark"] .bg-slate-50,
4384
- .dark .bg-gray-50, [data-theme="dark"] .bg-gray-50 {
4416
+ .dark .bg-secondary-50, [data-theme="dark"] .bg-secondary-50 {
4385
4417
  background-color: #1f2937 !important;
4386
4418
  }
4387
4419
  .dark .border-slate-100, [data-theme="dark"] .border-slate-100,
4388
- .dark .border-gray-100, [data-theme="dark"] .border-gray-100,
4420
+ .dark .border-secondary-100, [data-theme="dark"] .border-secondary-100,
4389
4421
  .dark .border-slate-200, [data-theme="dark"] .border-slate-200,
4390
- .dark .border-gray-200, [data-theme="dark"] .border-gray-200 {
4422
+ .dark .border-secondary-200, [data-theme="dark"] .border-secondary-200 {
4391
4423
  border-color: #374151 !important;
4392
4424
  }
4393
4425
 
4394
- .dark .bg-gray-100, [data-theme="dark"] .bg-gray-100,
4426
+ .dark .bg-secondary-100, [data-theme="dark"] .bg-secondary-100,
4395
4427
  .dark .bg-slate-100, [data-theme="dark"] .bg-slate-100 {
4396
4428
  background-color: #1f2937 !important;
4397
4429
  }
4398
- .dark .border-gray-300, [data-theme="dark"] .border-gray-300,
4430
+ .dark .border-secondary-300, [data-theme="dark"] .border-secondary-300,
4399
4431
  .dark .border-slate-300, [data-theme="dark"] .border-slate-300 {
4400
4432
  border-color: #4b5563 !important;
4401
4433
  }
4402
- .dark .bg-gray-200, [data-theme="dark"] .bg-gray-200,
4434
+ .dark .bg-secondary-200, [data-theme="dark"] .bg-secondary-200,
4403
4435
  .dark .bg-slate-200, [data-theme="dark"] .bg-slate-200 {
4404
4436
  background-color: #374151 !important;
4405
4437
  }
@@ -4467,23 +4499,23 @@ function ITThemeProvider({
4467
4499
  }
4468
4500
 
4469
4501
  [data-theme="light"] .text-slate-800,
4470
- [data-theme="light"] .text-gray-800 {
4502
+ [data-theme="light"] .text-secondary-800 {
4471
4503
  color: #1e293b !important;
4472
4504
  }
4473
4505
  [data-theme="light"] .text-slate-700,
4474
- [data-theme="light"] .text-gray-700 {
4506
+ [data-theme="light"] .text-secondary-700 {
4475
4507
  color: #334155 !important;
4476
4508
  }
4477
4509
  [data-theme="light"] .text-slate-600,
4478
- [data-theme="light"] .text-gray-600 {
4510
+ [data-theme="light"] .text-secondary-600 {
4479
4511
  color: #475569 !important;
4480
4512
  }
4481
4513
  [data-theme="light"] .text-slate-500,
4482
- [data-theme="light"] .text-gray-500 {
4514
+ [data-theme="light"] .text-secondary-500 {
4483
4515
  color: #64748b !important;
4484
4516
  }
4485
4517
  [data-theme="light"] .text-slate-400,
4486
- [data-theme="light"] .text-gray-400 {
4518
+ [data-theme="light"] .text-secondary-400 {
4487
4519
  color: #94a3b8 !important;
4488
4520
  }
4489
4521
 
@@ -4491,24 +4523,24 @@ function ITThemeProvider({
4491
4523
  background-color: #ffffff !important;
4492
4524
  }
4493
4525
  [data-theme="light"] .bg-slate-50,
4494
- [data-theme="light"] .bg-gray-50 {
4526
+ [data-theme="light"] .bg-secondary-50 {
4495
4527
  background-color: #f8fafc !important;
4496
4528
  }
4497
4529
  [data-theme="light"] .border-slate-100,
4498
- [data-theme="light"] .border-gray-100,
4530
+ [data-theme="light"] .border-secondary-100,
4499
4531
  [data-theme="light"] .border-slate-200,
4500
- [data-theme="light"] .border-gray-200 {
4532
+ [data-theme="light"] .border-secondary-200 {
4501
4533
  border-color: #e2e8f0 !important;
4502
4534
  }
4503
- [data-theme="light"] .bg-gray-100,
4535
+ [data-theme="light"] .bg-secondary-100,
4504
4536
  [data-theme="light"] .bg-slate-100 {
4505
4537
  background-color: #f1f5f9 !important;
4506
4538
  }
4507
- [data-theme="light"] .border-gray-300,
4539
+ [data-theme="light"] .border-secondary-300,
4508
4540
  [data-theme="light"] .border-slate-300 {
4509
4541
  border-color: #cbd5e1 !important;
4510
4542
  }
4511
- [data-theme="light"] .bg-gray-200,
4543
+ [data-theme="light"] .bg-secondary-200,
4512
4544
  [data-theme="light"] .bg-slate-200 {
4513
4545
  background-color: #e2e8f0 !important;
4514
4546
  }
@@ -4536,13 +4568,13 @@ function ITThemeProvider({
4536
4568
  .hover\\:bg-green-600:hover { background-color: var(--color-success-hover) !important; }
4537
4569
 
4538
4570
  /* Danger overrides (red mappings in UI library) */
4539
- .bg-red-700 { background-color: var(--color-danger) !important; }
4540
- .hover\\:bg-red-800:hover { background-color: var(--color-danger-hover) !important; }
4541
- .focus\\:ring-red-300:focus { --tw-ring-color: var(--color-danger-ring) !important; }
4542
- .text-red-700 { color: var(--color-danger) !important; }
4543
- .border-red-700 { border-color: var(--color-danger) !important; }
4544
- .bg-red-500 { background-color: var(--color-danger) !important; }
4545
- .hover\\:bg-red-600:hover { background-color: var(--color-danger-hover) !important; }
4571
+ .bg-danger-700 { background-color: var(--color-danger) !important; }
4572
+ .hover\\:bg-danger-800:hover { background-color: var(--color-danger-hover) !important; }
4573
+ .focus\\:ring-danger-300:focus { --tw-ring-color: var(--color-danger-ring) !important; }
4574
+ .text-danger-700 { color: var(--color-danger) !important; }
4575
+ .border-danger-700 { border-color: var(--color-danger) !important; }
4576
+ .bg-danger-500 { background-color: var(--color-danger) !important; }
4577
+ .hover\\:bg-danger-600:hover { background-color: var(--color-danger-hover) !important; }
4546
4578
 
4547
4579
  /* Warning overrides (yellow mappings in UI library) */
4548
4580
  .bg-yellow-400 { background-color: var(--color-warning) !important; }
@@ -4572,12 +4604,12 @@ function ITThemeProvider({
4572
4604
  .border-blue-500 { border-color: var(--color-info) !important; }
4573
4605
 
4574
4606
  /* Secondary elements overrides */
4575
- button[class*="bg-white"][class*="hover:bg-gray-100"] {
4607
+ button[class*="bg-white"][class*="hover:bg-secondary-100"] {
4576
4608
  background-color: var(--color-secondary) !important;
4577
4609
  border-color: var(--color-secondary-soft-border) !important;
4578
4610
  color: #111827 !important;
4579
4611
  }
4580
- button[class*="bg-white"][class*="hover:bg-gray-100"]:hover {
4612
+ button[class*="bg-white"][class*="hover:bg-secondary-100"]:hover {
4581
4613
  background-color: var(--color-secondary-hover) !important;
4582
4614
  }
4583
4615
 
@@ -5176,7 +5208,7 @@ function ITThemeProvider({
5176
5208
  e.stopPropagation();
5177
5209
  handleDeletePreset(preset.name, e);
5178
5210
  },
5179
- 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",
5211
+ 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",
5180
5212
  title: "Eliminar",
5181
5213
  children: /* @__PURE__ */ jsx20(MdClose, { size: 12 })
5182
5214
  }
@@ -5522,7 +5554,8 @@ function ITDialog({
5522
5554
  const content = /* @__PURE__ */ jsx22(
5523
5555
  "div",
5524
5556
  {
5525
- className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-black/50 z-[9999]`,
5557
+ "data-it-dialog": "true",
5558
+ className: `fixed inset-0 flex ${fullScreen ? "items-stretch" : "items-center justify-center"} bg-slate-900/50 z-[60]`,
5526
5559
  children: /* @__PURE__ */ jsx22(
5527
5560
  "div",
5528
5561
  {
@@ -5543,7 +5576,7 @@ function ITDialog({
5543
5576
  /* @__PURE__ */ jsx22(
5544
5577
  "button",
5545
5578
  {
5546
- className: "absolute top-2 right-2 text-gray-600 hover:text-gray-900",
5579
+ className: "absolute top-2 right-2 text-secondary-600 hover:text-secondary-900",
5547
5580
  onClick: onClose,
5548
5581
  children: /* @__PURE__ */ jsx22(FaRegTimesCircle, {})
5549
5582
  }
@@ -5575,7 +5608,7 @@ function ITDrawer({
5575
5608
  }) {
5576
5609
  const panelRef = useRef7(null);
5577
5610
  useClickOutside_default(panelRef, onClose);
5578
- return /* @__PURE__ */ jsx23(Fragment5, { children: isOpen && /* @__PURE__ */ jsxs20("div", { className: "fixed inset-0 z-[100] flex", children: [
5611
+ return /* @__PURE__ */ jsx23(Fragment5, { children: isOpen && /* @__PURE__ */ jsxs20("div", { className: "fixed inset-0 z-[50] flex", children: [
5579
5612
  /* @__PURE__ */ jsx23("div", { className: "absolute inset-0 bg-black/40 backdrop-blur-sm transition-opacity" }),
5580
5613
  /* @__PURE__ */ jsxs20(
5581
5614
  "div",
@@ -5913,14 +5946,14 @@ function ITTimePicker({
5913
5946
  "div",
5914
5947
  {
5915
5948
  ref: dropdownRef,
5916
- 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",
5949
+ 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",
5917
5950
  style: {
5918
5951
  top: `${dropdownPosition.top}px`,
5919
5952
  left: `${dropdownPosition.left}px`
5920
5953
  },
5921
5954
  children: [
5922
- /* @__PURE__ */ jsxs22("div", { className: "flex bg-gray-50 border-b border-gray-100 text-xs font-semibold text-gray-500 uppercase tracking-wider", children: [
5923
- /* @__PURE__ */ jsx27(ITText, { as: "div", className: "flex-1 text-center py-2 border-r border-gray-100", children: "Horas" }),
5955
+ /* @__PURE__ */ jsxs22("div", { className: "flex bg-secondary-50 border-b border-secondary-100 text-xs font-semibold text-secondary-500 uppercase tracking-wider", children: [
5956
+ /* @__PURE__ */ jsx27(ITText, { as: "div", className: "flex-1 text-center py-2 border-r border-secondary-100", children: "Horas" }),
5924
5957
  /* @__PURE__ */ jsx27(ITText, { as: "div", className: "flex-1 text-center py-2", children: "Minutos" })
5925
5958
  ] }),
5926
5959
  /* @__PURE__ */ jsxs22("div", { className: "flex h-56 relative bg-white", children: [
@@ -5928,7 +5961,7 @@ function ITTimePicker({
5928
5961
  "div",
5929
5962
  {
5930
5963
  ref: hoursRef,
5931
- className: "flex-1 overflow-y-auto no-scrollbar border-r border-gray-50 scroll-smooth relative",
5964
+ className: "flex-1 overflow-y-auto no-scrollbar border-r border-secondary-50 scroll-smooth relative",
5932
5965
  children: /* @__PURE__ */ jsx27("div", { className: "py-2", children: hoursList.map((h) => {
5933
5966
  const isSelected = currentHour === h;
5934
5967
  return /* @__PURE__ */ jsx27(
@@ -5994,7 +6027,7 @@ function ITTimePicker({
5994
6027
  ),
5995
6028
  /* @__PURE__ */ jsx27("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" })
5996
6029
  ] }),
5997
- /* @__PURE__ */ jsx27("div", { className: "p-3 bg-gray-50 border-t border-gray-100 flex justify-end", children: /* @__PURE__ */ jsx27(
6030
+ /* @__PURE__ */ jsx27("div", { className: "p-3 bg-secondary-50 border-t border-secondary-100 flex justify-end", children: /* @__PURE__ */ jsx27(
5998
6031
  ITButton,
5999
6032
  {
6000
6033
  variant: "solid",
@@ -6104,7 +6137,7 @@ function ITSearchSelect({
6104
6137
  const getInputStyle = () => {
6105
6138
  const style = {
6106
6139
  backgroundColor: inputTheme.backgroundColor || "#ffffff",
6107
- borderColor: inputTheme.borderColor || "#e2e8f0",
6140
+ borderColor: inputTheme.borderColor || "var(--color-secondary-300)",
6108
6141
  borderRadius: inputTheme.borderRadius || "0.5rem",
6109
6142
  padding: inputTheme.padding || "0.5rem 0.75rem",
6110
6143
  fontSize: inputTheme.fontSize || "0.875rem",
@@ -6115,8 +6148,8 @@ function ITSearchSelect({
6115
6148
  width: "100%"
6116
6149
  };
6117
6150
  if (disabled) {
6118
- style.backgroundColor = inputTheme.disabled?.backgroundColor || "#f1f5f9";
6119
- style.borderColor = inputTheme.disabled?.borderColor || "#e2e8f0";
6151
+ style.backgroundColor = inputTheme.disabled?.backgroundColor || "var(--color-secondary-100)";
6152
+ style.borderColor = inputTheme.disabled?.borderColor || "var(--color-secondary-200)";
6120
6153
  style.opacity = 0.7;
6121
6154
  style.cursor = "not-allowed";
6122
6155
  }
@@ -6136,12 +6169,12 @@ function ITSearchSelect({
6136
6169
  ITText,
6137
6170
  {
6138
6171
  as: "label",
6139
- className: clsx24("text-sm font-medium text-gray-700 dark:text-slate-300", {
6140
- "text-red-500": hasError
6172
+ className: clsx24("text-sm font-medium text-secondary-700 dark:text-slate-300", {
6173
+ "text-danger-500": hasError
6141
6174
  }),
6142
6175
  children: [
6143
6176
  /* @__PURE__ */ jsx28(ITText, { as: "span", children: label }),
6144
- required && /* @__PURE__ */ jsx28(ITText, { as: "span", className: "text-red-500 ml-1", children: "*" })
6177
+ required && /* @__PURE__ */ jsx28(ITText, { as: "span", className: "text-danger-500 ml-1", children: "*" })
6145
6178
  ]
6146
6179
  }
6147
6180
  ),
@@ -6164,26 +6197,26 @@ function ITSearchSelect({
6164
6197
  autoComplete: "off"
6165
6198
  }
6166
6199
  ),
6167
- /* @__PURE__ */ jsxs23("div", { className: "absolute right-3 flex items-center gap-2 text-gray-400 pointer-events-none", children: [
6200
+ /* @__PURE__ */ jsxs23("div", { className: "absolute right-3 flex items-center gap-2 text-secondary-400 pointer-events-none", children: [
6168
6201
  isLoading && /* @__PURE__ */ jsx28("div", { className: "animate-spin h-4 w-4 border-2 border-primary-500 border-t-transparent rounded-full" }),
6169
6202
  !isLoading && /* @__PURE__ */ jsx28(FaSearch, { size: 14, className: clsx24({ "text-primary-500": isFocused }) })
6170
6203
  ] })
6171
6204
  ] }),
6172
- isOpen && /* @__PURE__ */ jsx28("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__ */ jsx28("div", { className: "max-h-60 overflow-y-auto", children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ jsx28(
6205
+ isOpen && /* @__PURE__ */ jsx28("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__ */ jsx28("div", { className: "max-h-60 overflow-y-auto", children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ jsx28(
6173
6206
  ITText,
6174
6207
  {
6175
6208
  as: "div",
6176
6209
  onClick: () => handleSelect(option),
6177
6210
  className: clsx24(
6178
6211
  "px-4 py-2 text-sm cursor-pointer transition-colors",
6179
- 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"
6212
+ 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"
6180
6213
  ),
6181
6214
  children: /* @__PURE__ */ jsx28(ITText, { as: "span", children: option[labelField] })
6182
6215
  },
6183
6216
  option[valueField]
6184
- )) : /* @__PURE__ */ jsx28(ITText, { as: "div", className: "px-4 py-6 text-sm text-center text-gray-500 italic", children: isLoading ? "Cargando..." : noResultsMessage }) }) })
6217
+ )) : /* @__PURE__ */ jsx28(ITText, { as: "div", className: "px-4 py-6 text-sm text-center text-secondary-500 italic", children: isLoading ? "Cargando..." : noResultsMessage }) }) })
6185
6218
  ] }),
6186
- hasError && /* @__PURE__ */ jsx28(ITText, { as: "p", className: "text-red-500 text-xs mt-1", children: errorMessage })
6219
+ hasError && /* @__PURE__ */ jsx28(ITText, { as: "p", className: "text-danger-500 text-xs mt-1", children: errorMessage })
6187
6220
  ] });
6188
6221
  }
6189
6222
 
@@ -6412,7 +6445,7 @@ var ITFieldRenderer = ({
6412
6445
  return null;
6413
6446
  case "section":
6414
6447
  return /* @__PURE__ */ jsxs24("div", { className: clsx25("w-full col-span-full", activeConfig.className), children: [
6415
- label && /* @__PURE__ */ jsx29(ITText, { as: "h4", className: "text-lg font-semibold text-gray-800 mb-4", children: label }),
6448
+ label && /* @__PURE__ */ jsx29(ITText, { as: "h4", className: "text-lg font-semibold text-secondary-800 mb-4", children: label }),
6416
6449
  /* @__PURE__ */ jsx29("div", { className: clsx25("grid gap-y-6 gap-x-5", getGridColsClass(columns)), children: activeConfig.fields?.map((childConfig) => /* @__PURE__ */ jsx29(
6417
6450
  ITFieldRenderer,
6418
6451
  {
@@ -6423,7 +6456,7 @@ var ITFieldRenderer = ({
6423
6456
  )) })
6424
6457
  ] });
6425
6458
  case "array":
6426
- return /* @__PURE__ */ jsx29("div", { className: "p-4 border-2 border-dashed border-gray-200 rounded-xl", children: /* @__PURE__ */ jsxs24(ITText, { as: "p", className: "text-sm text-gray-500 text-center", children: [
6459
+ return /* @__PURE__ */ jsx29("div", { className: "p-4 border-2 border-dashed border-secondary-200 rounded-xl", children: /* @__PURE__ */ jsxs24(ITText, { as: "p", className: "text-sm text-secondary-500 text-center", children: [
6427
6460
  "Array Field: ",
6428
6461
  label
6429
6462
  ] }) });
@@ -6739,10 +6772,10 @@ function ITNavbar({
6739
6772
  const shouldUseLegacy = !navigationItems.length && (navItems || sidebarItems);
6740
6773
  if (shouldUseLegacy) {
6741
6774
  return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col h-screen", children: [
6742
- /* @__PURE__ */ jsx33("nav", { className: "bg-white border-b border-gray-200", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between mx-auto p-4", children: [
6775
+ /* @__PURE__ */ jsx33("nav", { className: "bg-white border-b border-secondary-200", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between mx-auto p-4", children: [
6743
6776
  /* @__PURE__ */ jsxs25("div", { className: "flex items-center space-x-3 rtl:space-x-reverse", children: [
6744
6777
  logo && /* @__PURE__ */ jsx33("div", { className: "h-8", children: logo }),
6745
- logoText && /* @__PURE__ */ jsx33(ITText, { as: "span", className: "self-center text-2xl font-semibold whitespace-nowrap text-gray-900", children: logoText })
6778
+ logoText && /* @__PURE__ */ jsx33(ITText, { as: "span", className: "self-center text-2xl font-semibold whitespace-nowrap text-secondary-900", children: logoText })
6746
6779
  ] }),
6747
6780
  /* @__PURE__ */ jsx33("div", { className: "flex items-center justify-end w-full md:w-auto md:order-2", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center space-x-4 md:order-2", children: [
6748
6781
  /* @__PURE__ */ jsx33("ul", { className: "hidden md:flex space-x-4", children: navItems }),
@@ -6751,7 +6784,7 @@ function ITNavbar({
6751
6784
  "button",
6752
6785
  {
6753
6786
  type: "button",
6754
- className: "flex text-sm bg-gray-200 rounded-full md:me-0 focus:ring-4 focus:ring-gray-300",
6787
+ className: "flex text-sm bg-secondary-200 rounded-full md:me-0 focus:ring-4 focus:ring-secondary-300",
6755
6788
  onClick: toggleUserMenu,
6756
6789
  children: userMenu.userImage ? /* @__PURE__ */ jsx33(
6757
6790
  "img",
@@ -6760,18 +6793,18 @@ function ITNavbar({
6760
6793
  src: userMenu.userImage,
6761
6794
  alt: "user photo"
6762
6795
  }
6763
- ) : /* @__PURE__ */ jsx33(FaUserCircle, { className: "w-8 h-8 text-gray-500" })
6796
+ ) : /* @__PURE__ */ jsx33(FaUserCircle, { className: "w-8 h-8 text-secondary-500" })
6764
6797
  }
6765
6798
  ),
6766
6799
  isUserMenuOpen && /* @__PURE__ */ jsxs25(
6767
6800
  "div",
6768
6801
  {
6769
6802
  ref: userMenuRef,
6770
- className: "z-50 absolute right-0 mt-2 text-base list-none bg-white divide-y divide-gray-100 rounded-lg shadow-sm",
6803
+ className: "z-[70] absolute right-0 mt-2 text-base list-none bg-white divide-y divide-secondary-100 rounded-lg shadow-sm",
6771
6804
  children: [
6772
6805
  /* @__PURE__ */ jsxs25("div", { className: "px-4 py-3", children: [
6773
- /* @__PURE__ */ jsx33(ITText, { as: "span", className: "block text-sm text-gray-900", children: userMenu.userName }),
6774
- /* @__PURE__ */ jsx33(ITText, { as: "span", className: "block text-sm text-gray-500 truncate", children: userMenu.userEmail })
6806
+ /* @__PURE__ */ jsx33(ITText, { as: "span", className: "block text-sm text-secondary-900", children: userMenu.userName }),
6807
+ /* @__PURE__ */ jsx33(ITText, { as: "span", className: "block text-sm text-secondary-500 truncate", children: userMenu.userEmail })
6775
6808
  ] }),
6776
6809
  /* @__PURE__ */ jsx33("ul", { className: "py-2", children: userMenu.menuItems.map((item, index) => /* @__PURE__ */ jsx33("li", { children: /* @__PURE__ */ jsx33(
6777
6810
  "button",
@@ -6780,7 +6813,7 @@ function ITNavbar({
6780
6813
  item.onClick();
6781
6814
  setIsUserMenuOpen(false);
6782
6815
  },
6783
- className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full text-left",
6816
+ className: "block px-4 py-2 text-sm text-secondary-700 hover:bg-secondary-100 w-full text-left",
6784
6817
  children: /* @__PURE__ */ jsx33(ITText, { as: "span", children: item.label })
6785
6818
  }
6786
6819
  ) }, index)) })
@@ -6791,8 +6824,8 @@ function ITNavbar({
6791
6824
  ] }) })
6792
6825
  ] }) }),
6793
6826
  /* @__PURE__ */ jsxs25("div", { className: "flex-1 flex overflow-hidden relative", children: [
6794
- (showSidebar || showSidebarOnMobile) && /* @__PURE__ */ jsx33("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__ */ jsx33("div", { className: "h-full overflow-y-auto py-4 px-3", children: /* @__PURE__ */ jsx33("ul", { className: "space-y-2 font-medium", children: sidebarItems }) }) }),
6795
- /* @__PURE__ */ jsx33("main", { className: "flex-1 bg-gray-100 overflow-y-auto", children })
6827
+ (showSidebar || showSidebarOnMobile) && /* @__PURE__ */ jsx33("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__ */ jsx33("div", { className: "h-full overflow-y-auto py-4 px-3", children: /* @__PURE__ */ jsx33("ul", { className: "space-y-2 font-medium", children: sidebarItems }) }) }),
6828
+ /* @__PURE__ */ jsx33("main", { className: "flex-1 bg-secondary-100 overflow-y-auto", children })
6796
6829
  ] })
6797
6830
  ] });
6798
6831
  }
@@ -7240,7 +7273,7 @@ function ITPopover({
7240
7273
  });
7241
7274
  return /* @__PURE__ */ jsxs29("div", { ref, className: clsx30("relative inline-flex", className), children: [
7242
7275
  /* @__PURE__ */ jsx38("div", { onClick: () => isControlled ? onClose?.() : setInternalOpen((p) => !p), className: "cursor-pointer", children: trigger }),
7243
- open && /* @__PURE__ */ jsx38("div", { className: clsx30("absolute z-[200]", positionClasses[position]), children: /* @__PURE__ */ jsx38("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 }) })
7276
+ open && /* @__PURE__ */ jsx38("div", { className: clsx30("absolute z-[70]", positionClasses[position]), children: /* @__PURE__ */ jsx38("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 }) })
7244
7277
  ] });
7245
7278
  }
7246
7279
 
@@ -7373,7 +7406,7 @@ function SearchInput({
7373
7406
  className = ""
7374
7407
  }) {
7375
7408
  return /* @__PURE__ */ jsxs31("div", { className: `relative flex-1 ${className}`, children: [
7376
- /* @__PURE__ */ jsx41("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx41(FaSearch2, { className: "h-5 w-5 text-gray-400" }) }),
7409
+ /* @__PURE__ */ jsx41("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx41(FaSearch2, { className: "h-5 w-5 text-secondary-400" }) }),
7377
7410
  /* @__PURE__ */ jsx41(
7378
7411
  ITInput,
7379
7412
  {
@@ -7401,12 +7434,12 @@ function SortButton({
7401
7434
  "button",
7402
7435
  {
7403
7436
  onClick,
7404
- 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}`,
7437
+ 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}`,
7405
7438
  "aria-label": `Ordenar tabla ${sortConfig ? sortConfig.direction === "asc" ? "descendente" : "ascendente" : "ascendente"}`,
7406
7439
  title: "Ordenar tabla",
7407
7440
  children: [
7408
- sortConfig ? sortConfig.direction === "asc" ? /* @__PURE__ */ jsx42(FaSortUp, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ jsx42(FaSortDown, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ jsx42(FaSort, { className: "w-4 h-4 text-gray-500" }),
7409
- /* @__PURE__ */ jsx42(ITText, { as: "span", className: "text-sm font-medium text-gray-700", children: sortConfig ? sortConfig.direction === "asc" ? "Asc \u2191" : "Desc \u2193" : "Ordenar" })
7441
+ sortConfig ? sortConfig.direction === "asc" ? /* @__PURE__ */ jsx42(FaSortUp, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ jsx42(FaSortDown, { className: "w-4 h-4 text-slate-500" }) : /* @__PURE__ */ jsx42(FaSort, { className: "w-4 h-4 text-secondary-500" }),
7442
+ /* @__PURE__ */ jsx42(ITText, { as: "span", className: "text-sm font-medium text-secondary-700", children: sortConfig ? sortConfig.direction === "asc" ? "Asc \u2191" : "Desc \u2193" : "Ordenar" })
7410
7443
  ]
7411
7444
  }
7412
7445
  );
@@ -7422,7 +7455,7 @@ function SearchAndSortBar({
7422
7455
  sortConfig,
7423
7456
  searchInputPlaceholder = "Buscar en todos los campos..."
7424
7457
  }) {
7425
- return /* @__PURE__ */ jsx43("div", { className: "bg-gray-50 px-6 py-4 border-b border-gray-200", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-4", children: [
7458
+ return /* @__PURE__ */ jsx43("div", { className: "bg-secondary-50 px-6 py-4 border-b border-secondary-200", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-4", children: [
7426
7459
  /* @__PURE__ */ jsx43(
7427
7460
  SearchInput,
7428
7461
  {
@@ -7482,7 +7515,7 @@ function TableHeader({
7482
7515
  onSort,
7483
7516
  sortConfig
7484
7517
  }) {
7485
- return /* @__PURE__ */ jsx45("thead", { children: /* @__PURE__ */ jsx45("tr", { className: "bg-white border-b border-gray-200", children: columns.map((col) => /* @__PURE__ */ jsx45(
7518
+ return /* @__PURE__ */ jsx45("thead", { children: /* @__PURE__ */ jsx45("tr", { className: "bg-white border-b border-secondary-200", children: columns.map((col) => /* @__PURE__ */ jsx45(
7486
7519
  TableHeaderCell,
7487
7520
  {
7488
7521
  label: col.label,
@@ -7625,7 +7658,7 @@ function EditableCell({
7625
7658
  };
7626
7659
  return /* @__PURE__ */ jsxs35("div", { className: "w-full", children: [
7627
7660
  renderInput(),
7628
- error && /* @__PURE__ */ jsx46("div", { className: "text-red-500 text-xs mt-1", children: /* @__PURE__ */ jsx46(ITText, { as: "span", children: error }) })
7661
+ error && /* @__PURE__ */ jsx46("div", { className: "text-danger-500 text-xs mt-1", children: /* @__PURE__ */ jsx46(ITText, { as: "span", children: error }) })
7629
7662
  ] });
7630
7663
  }
7631
7664
 
@@ -7670,7 +7703,7 @@ function TableRow({
7670
7703
  "aria-label": "Verdadero",
7671
7704
  title: "Verdadero"
7672
7705
  }
7673
- ) : /* @__PURE__ */ jsx47(FaTimes7, { className: "text-red-500", "aria-label": "Falso", title: "Falso" });
7706
+ ) : /* @__PURE__ */ jsx47(FaTimes7, { className: "text-danger-500", "aria-label": "Falso", title: "Falso" });
7674
7707
  case "actions":
7675
7708
  if (isEditing && col.saveActions) {
7676
7709
  return col.saveActions(rowData, {
@@ -7699,7 +7732,7 @@ function TableRow({
7699
7732
  {
7700
7733
  onMouseEnter: () => setIsHovered(true),
7701
7734
  onMouseLeave: () => setIsHovered(false),
7702
- 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" : ""}`,
7735
+ 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" : ""}`,
7703
7736
  children: columns.map((col) => /* @__PURE__ */ jsx47(
7704
7737
  "td",
7705
7738
  {
@@ -7753,7 +7786,7 @@ function PaginationInfo({
7753
7786
  totalCount,
7754
7787
  className = ""
7755
7788
  }) {
7756
- return /* @__PURE__ */ jsxs36(ITText, { as: "span", className: `text-sm text-gray-700 ${className}`, children: [
7789
+ return /* @__PURE__ */ jsxs36(ITText, { as: "span", className: `text-sm text-secondary-700 ${className}`, children: [
7757
7790
  "Mostrando ",
7758
7791
  currentCount,
7759
7792
  " de ",
@@ -7780,7 +7813,7 @@ function PaginationControls({
7780
7813
  /* @__PURE__ */ jsxs37("div", { className: "flex items-center space-x-4", children: [
7781
7814
  /* @__PURE__ */ jsx49(PaginationInfo, { currentCount, totalCount }),
7782
7815
  /* @__PURE__ */ jsxs37("div", { className: "flex items-center space-x-2", children: [
7783
- /* @__PURE__ */ jsx49(ITText, { as: "span", className: "text-sm text-gray-700", children: "Mostrar:" }),
7816
+ /* @__PURE__ */ jsx49(ITText, { as: "span", className: "text-sm text-secondary-700", children: "Mostrar:" }),
7784
7817
  /* @__PURE__ */ jsx49(
7785
7818
  ITSelect,
7786
7819
  {
@@ -7813,7 +7846,7 @@ function PaginationControls({
7813
7846
  children: /* @__PURE__ */ jsx49(FaArrowLeft, { "aria-hidden": "true" })
7814
7847
  }
7815
7848
  ),
7816
- /* @__PURE__ */ jsxs37(ITText, { as: "span", className: "px-4 py-2 text-sm text-gray-700", "aria-live": "polite", children: [
7849
+ /* @__PURE__ */ jsxs37(ITText, { as: "span", className: "px-4 py-2 text-sm text-secondary-700", "aria-live": "polite", children: [
7817
7850
  "P\xE1gina ",
7818
7851
  pageIndex,
7819
7852
  " de ",
@@ -7907,7 +7940,7 @@ function ITSearchTable({
7907
7940
  /* @__PURE__ */ jsxs38("div", { className: "shadow-md sm:rounded-lg overflow-hidden", children: [
7908
7941
  title && /* @__PURE__ */ jsx50("div", { className: "bg-teal-500 text-white px-6 py-4", children: /* @__PURE__ */ jsx50(ITText, { as: "h2", className: "text-xl font-bold text-center whitespace-nowrap", children: title }) }),
7909
7942
  /* @__PURE__ */ jsxs38("div", { className: "bg-white", children: [
7910
- /* @__PURE__ */ jsx50("div", { className: "p-4 border-b border-gray-200", children: /* @__PURE__ */ jsx50(
7943
+ /* @__PURE__ */ jsx50("div", { className: "p-4 border-b border-secondary-200", children: /* @__PURE__ */ jsx50(
7911
7944
  SearchAndSortBar,
7912
7945
  {
7913
7946
  searchTerm,
@@ -7922,7 +7955,7 @@ function ITSearchTable({
7922
7955
  "table",
7923
7956
  {
7924
7957
  className: clsx34(
7925
- "min-w-full text-sm text-left bg-white text-gray-900 table-auto",
7958
+ "min-w-full text-sm text-left bg-white text-secondary-900 table-auto",
7926
7959
  variantStyles[variant],
7927
7960
  sizeStyles[size]
7928
7961
  ),
@@ -8070,12 +8103,12 @@ function ITSidebar({
8070
8103
  ${sidebarWidth}
8071
8104
  ${className}
8072
8105
  ${!visibleOnMobile ? "hidden lg:flex" : "flex"}
8073
- shadow-[4px_0_24px_rgba(0,0,0,0.02)]
8106
+ shadow-[4px_0_32px_rgba(15,23,42,0.04)]
8074
8107
  `,
8075
8108
  style: {
8076
8109
  zIndex: 50,
8077
8110
  backgroundColor: "var(--sidebar-bg, rgba(255, 255, 255, 0.90))",
8078
- borderRight: "1px solid var(--sidebar-border, #e2e8f0)",
8111
+ borderRight: "1px solid var(--sidebar-border, var(--color-secondary-200))",
8079
8112
  WebkitBackdropFilter: "blur(12px)",
8080
8113
  backdropFilter: "blur(12px)"
8081
8114
  },
@@ -8089,12 +8122,12 @@ function ITSidebar({
8089
8122
  ${isSidebarCollapsed ? "justify-center p-2.5 mb-2" : "justify-between px-3.5 py-3 mb-1"}
8090
8123
  `,
8091
8124
  style: {
8092
- backgroundColor: item.isActive ? "var(--sidebar-active-bg, #f8fafc)" : "transparent",
8093
- boxShadow: item.isActive ? "0 1px 2px 0 rgba(0, 0, 0, 0.05)" : "none",
8094
- border: item.isActive ? "1px solid var(--sidebar-border, #e2e8f0)" : "1px solid transparent"
8125
+ backgroundColor: item.isActive ? "var(--sidebar-active-bg, var(--color-secondary-50))" : "transparent",
8126
+ boxShadow: item.isActive ? "var(--shadow-xs)" : "none",
8127
+ border: item.isActive ? "1px solid var(--sidebar-border, var(--color-secondary-200))" : "1px solid transparent"
8095
8128
  },
8096
8129
  onMouseEnter: (e) => {
8097
- if (!item.isActive) e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, #f1f5f9)";
8130
+ if (!item.isActive) e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, var(--color-secondary-100))";
8098
8131
  },
8099
8132
  onMouseLeave: (e) => {
8100
8133
  if (!item.isActive) e.currentTarget.style.backgroundColor = "transparent";
@@ -8105,7 +8138,7 @@ function ITSidebar({
8105
8138
  "div",
8106
8139
  {
8107
8140
  className: "absolute left-0 top-1/4 bottom-1/4 w-[3px] rounded-r-full transition-all",
8108
- style: { backgroundColor: "var(--sidebar-active-icon, #10b981)", boxShadow: "0 0 10px var(--sidebar-active-icon, #10b981)" }
8141
+ style: { backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))", boxShadow: "0 0 10px var(--sidebar-active-icon, var(--color-primary-500))" }
8109
8142
  }
8110
8143
  ),
8111
8144
  /* @__PURE__ */ jsxs39("div", { className: `flex items-center ${!isSidebarCollapsed ? "gap-3.5" : "justify-center"} relative z-10 w-full`, children: [
@@ -8114,7 +8147,7 @@ function ITSidebar({
8114
8147
  {
8115
8148
  className: `transition-all duration-300 flex-shrink-0 flex items-center justify-center`,
8116
8149
  style: {
8117
- color: item.isActive ? "var(--sidebar-active-icon, #10b981)" : "var(--sidebar-icon-color, #9ca3af)",
8150
+ color: item.isActive ? "var(--sidebar-active-icon, var(--color-primary-500))" : "var(--sidebar-icon-color, #9ca3af)",
8118
8151
  opacity: item.isActive ? 1 : 0.8,
8119
8152
  fontSize: item.isActive ? "1.35rem" : "1.25rem",
8120
8153
  filter: item.isActive ? "drop-shadow(0 0 8px rgba(255,255,255,0.2))" : "none"
@@ -8128,7 +8161,7 @@ function ITSidebar({
8128
8161
  as: "span",
8129
8162
  className: `transition-all duration-300 truncate tracking-wide`,
8130
8163
  style: {
8131
- color: item.isActive ? "var(--sidebar-active-color, #ffffff)" : "var(--sidebar-label-color, #d1d5db)",
8164
+ color: item.isActive ? "var(--sidebar-active-color, #ffffff)" : "var(--sidebar-label-color, var(--color-secondary-300))",
8132
8165
  fontSize: "0.9rem",
8133
8166
  fontWeight: item.isActive ? "600" : "500"
8134
8167
  },
@@ -8140,7 +8173,7 @@ function ITSidebar({
8140
8173
  "div",
8141
8174
  {
8142
8175
  className: `flex-shrink-0 transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)] ${expandedItems.has(item.id) ? "rotate-180" : ""}`,
8143
- style: { color: item.isActive ? "var(--sidebar-active-color, #0f172a)" : "var(--sidebar-icon-color, #64748b)", opacity: 0.7 },
8176
+ style: { color: item.isActive ? "var(--sidebar-active-color, var(--color-secondary-900))" : "var(--sidebar-icon-color, var(--color-secondary-500))", opacity: 0.7 },
8144
8177
  children: /* @__PURE__ */ jsx51(FaChevronDown2, { className: "w-3 h-3" })
8145
8178
  }
8146
8179
  ),
@@ -8152,9 +8185,9 @@ function ITSidebar({
8152
8185
  ${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"}
8153
8186
  `,
8154
8187
  style: {
8155
- backgroundColor: "var(--sidebar-badge-bg, #10b981)",
8188
+ backgroundColor: "var(--sidebar-badge-bg, var(--color-primary-500))",
8156
8189
  color: "var(--sidebar-badge-color, #ffffff)",
8157
- boxShadow: isSidebarCollapsed ? "0 0 0 2px var(--sidebar-bg, #111827)" : "none"
8190
+ boxShadow: isSidebarCollapsed ? "0 0 0 2px var(--sidebar-bg, var(--color-secondary-900))" : "none"
8158
8191
  },
8159
8192
  children: isSidebarCollapsed ? "" : item.badge
8160
8193
  }
@@ -8165,16 +8198,16 @@ function ITSidebar({
8165
8198
  isSidebarCollapsed && /* @__PURE__ */ jsxs39(
8166
8199
  "div",
8167
8200
  {
8168
- 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)]",
8201
+ 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)]",
8169
8202
  style: {
8170
8203
  backgroundColor: "var(--sidebar-bg, #ffffff)",
8171
- border: "1px solid var(--sidebar-border, #e2e8f0)",
8204
+ border: "1px solid var(--sidebar-border, var(--color-secondary-200))",
8172
8205
  WebkitBackdropFilter: "blur(16px)",
8173
8206
  backdropFilter: "blur(16px)"
8174
8207
  },
8175
8208
  children: [
8176
- /* @__PURE__ */ jsxs39("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: [
8177
- item.icon && /* @__PURE__ */ jsx51("span", { style: { color: "var(--sidebar-active-icon, #10b981)" }, className: "text-xl drop-shadow-sm", children: item.icon }),
8209
+ /* @__PURE__ */ jsxs39("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: [
8210
+ item.icon && /* @__PURE__ */ jsx51("span", { style: { color: "var(--sidebar-active-icon, var(--color-primary-500))" }, className: "text-xl drop-shadow-sm", children: item.icon }),
8178
8211
  /* @__PURE__ */ jsx51(ITText, { as: "span", className: "tracking-wide text-[15px]", children: item.label })
8179
8212
  ] }),
8180
8213
  item.subitems && item.subitems.length > 0 ? /* @__PURE__ */ jsx51("div", { className: "py-2", children: item.subitems.map((subitem) => /* @__PURE__ */ jsxs39(
@@ -8187,17 +8220,17 @@ function ITSidebar({
8187
8220
  {
8188
8221
  className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full",
8189
8222
  style: {
8190
- backgroundColor: "var(--sidebar-active-icon, #10b981)",
8191
- boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, #10b981) 25%, transparent)"
8223
+ backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))",
8224
+ boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
8192
8225
  }
8193
8226
  }
8194
8227
  ),
8195
- /* @__PURE__ */ jsx51("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)" } }),
8196
- /* @__PURE__ */ jsx51(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 })
8228
+ /* @__PURE__ */ jsx51("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))" } }),
8229
+ /* @__PURE__ */ jsx51(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 })
8197
8230
  ]
8198
8231
  },
8199
8232
  subitem.id
8200
- )) }) : /* @__PURE__ */ jsx51(ITText, { as: "div", className: "px-5 py-3 text-sm italic", style: { color: "var(--sidebar-label-color, #71717a)" }, children: "No hay submen\xFA" })
8233
+ )) }) : /* @__PURE__ */ jsx51(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" })
8201
8234
  ]
8202
8235
  }
8203
8236
  ),
@@ -8206,7 +8239,7 @@ function ITSidebar({
8206
8239
  {
8207
8240
  className: "ml-5 flex flex-col gap-0.5 py-1",
8208
8241
  style: {
8209
- borderLeft: subitemConnector === "|" ? "1px solid var(--sidebar-border, #e2e8f0)" : "none"
8242
+ borderLeft: subitemConnector === "|" ? "1px solid var(--sidebar-border, var(--color-secondary-200))" : "none"
8210
8243
  },
8211
8244
  children: item.subitems.map((subitem) => /* @__PURE__ */ jsx51("li", { className: "relative", children: /* @__PURE__ */ jsxs39(
8212
8245
  "button",
@@ -8217,8 +8250,8 @@ function ITSidebar({
8217
8250
  },
8218
8251
  className: `flex items-center gap-2.5 w-full text-left px-3 py-2 rounded-xl transition-all duration-300`,
8219
8252
  style: {
8220
- color: subitem.isActive ? "var(--sidebar-active-color, #0f172a)" : "var(--sidebar-label-color, #475569)",
8221
- backgroundColor: subitem.isActive ? "var(--sidebar-active-bg, #f8fafc)" : "transparent",
8253
+ color: subitem.isActive ? "var(--sidebar-active-color, var(--color-secondary-900))" : "var(--sidebar-label-color, var(--color-secondary-600))",
8254
+ backgroundColor: subitem.isActive ? "var(--sidebar-active-bg, var(--color-secondary-50))" : "transparent",
8222
8255
  fontSize: "0.85rem",
8223
8256
  fontWeight: subitem.isActive ? 600 : 500,
8224
8257
  letterSpacing: "0.01em",
@@ -8226,7 +8259,7 @@ function ITSidebar({
8226
8259
  },
8227
8260
  onMouseEnter: (e) => {
8228
8261
  if (!subitem.isActive) {
8229
- e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, #f1f5f9)";
8262
+ e.currentTarget.style.backgroundColor = "var(--sidebar-hover-bg, var(--color-secondary-100))";
8230
8263
  e.currentTarget.style.transform = "translateX(3px)";
8231
8264
  }
8232
8265
  },
@@ -8242,8 +8275,8 @@ function ITSidebar({
8242
8275
  {
8243
8276
  className: "absolute left-0 top-1/3 bottom-1/3 w-[2.5px] rounded-r-full transition-all",
8244
8277
  style: {
8245
- backgroundColor: "var(--sidebar-active-icon, #10b981)",
8246
- boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, #10b981) 25%, transparent)"
8278
+ backgroundColor: "var(--sidebar-active-icon, var(--color-primary-500))",
8279
+ boxShadow: "0 0 6px color-mix(in srgb, var(--sidebar-active-icon, var(--color-primary-500)) 25%, transparent)"
8247
8280
  }
8248
8281
  }
8249
8282
  ),
@@ -8252,7 +8285,7 @@ function ITSidebar({
8252
8285
  {
8253
8286
  className: `w-1.5 h-1.5 rounded-full flex-shrink-0 transition-all duration-300 ${subitem.isActive ? "scale-125" : ""}`,
8254
8287
  style: {
8255
- backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, #10b981)" : "var(--sidebar-icon-color, #94a3b8)"
8288
+ backgroundColor: subitem.isActive ? "var(--sidebar-active-icon, var(--color-primary-500))" : "var(--sidebar-icon-color, var(--color-secondary-400))"
8256
8289
  }
8257
8290
  }
8258
8291
  ),
@@ -8371,7 +8404,7 @@ function ITSlider({
8371
8404
  className
8372
8405
  }) {
8373
8406
  return /* @__PURE__ */ jsxs40("div", { className: clsx36("flex flex-col gap-1.5", className), children: [
8374
- label && /* @__PURE__ */ jsxs40(ITText, { as: "label", className: "text-xs font-semibold text-gray-600 dark:text-gray-400", children: [
8407
+ label && /* @__PURE__ */ jsxs40(ITText, { as: "label", className: "text-xs font-semibold text-secondary-600 dark:text-secondary-400", children: [
8375
8408
  label,
8376
8409
  ": ",
8377
8410
  value
@@ -8388,7 +8421,7 @@ function ITSlider({
8388
8421
  disabled,
8389
8422
  className: clsx36(
8390
8423
  "w-full h-1.5 appearance-none rounded-full outline-none cursor-pointer",
8391
- "bg-gray-200 dark:bg-gray-700",
8424
+ "bg-secondary-200 dark:bg-secondary-700",
8392
8425
  "accent-primary-500",
8393
8426
  "disabled:opacity-50 disabled:cursor-not-allowed",
8394
8427
  "[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4",
@@ -8397,7 +8430,7 @@ function ITSlider({
8397
8430
  "[&::-webkit-slider-thumb]:hover:bg-primary-600 [&::-webkit-slider-thumb]:transition-colors",
8398
8431
  "[&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:rounded-full",
8399
8432
  "[&::-moz-range-thumb]:bg-primary-500 [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-white",
8400
- "[&::-moz-range-track]:bg-gray-200 dark:[&::-moz-range-track]:bg-gray-700",
8433
+ "[&::-moz-range-track]:bg-secondary-200 dark:[&::-moz-range-track]:bg-secondary-700",
8401
8434
  "[&::-moz-range-track]:rounded-full [&::-moz-range-track]:h-1.5"
8402
8435
  )
8403
8436
  }
@@ -8485,8 +8518,8 @@ function ITTextarea({
8485
8518
  "w-full border border-solid transition-all duration-200 rounded-lg px-3 py-2 text-sm outline-none",
8486
8519
  "focus:ring-2",
8487
8520
  resizeMap[resize],
8488
- 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",
8489
- disabled && "opacity-50 cursor-not-allowed bg-gray-100 dark:bg-slate-800"
8521
+ 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",
8522
+ disabled && "opacity-50 cursor-not-allowed bg-secondary-100 dark:bg-slate-800"
8490
8523
  )
8491
8524
  }
8492
8525
  ),
@@ -8594,7 +8627,7 @@ function ITToast({
8594
8627
  "div",
8595
8628
  {
8596
8629
  className: clsx40(
8597
- "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]",
8630
+ "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]",
8598
8631
  positionStyles[position],
8599
8632
  {
8600
8633
  "opacity-100 translate-y-0 scale-100": isVisible,
@@ -8638,6 +8671,12 @@ var FileTypeEnum = /* @__PURE__ */ ((FileTypeEnum2) => {
8638
8671
  FileTypeEnum2["PNG"] = "image/png";
8639
8672
  FileTypeEnum2["JPG"] = "image/jpg";
8640
8673
  FileTypeEnum2["JPEG"] = "image/jpeg";
8674
+ FileTypeEnum2["MP4"] = "video/mp4";
8675
+ FileTypeEnum2["MOV"] = "video/quicktime";
8676
+ FileTypeEnum2["AVI"] = "video/x-msvideo";
8677
+ FileTypeEnum2["MKV"] = "video/x-matroska";
8678
+ FileTypeEnum2["VIDEO_3GPP"] = "video/3gpp";
8679
+ FileTypeEnum2["WEBM"] = "video/webm";
8641
8680
  return FileTypeEnum2;
8642
8681
  })(FileTypeEnum || {});
8643
8682
  var UploadStatus = /* @__PURE__ */ ((UploadStatus2) => {
@@ -8708,6 +8747,24 @@ var ITDropfile = ({
8708
8747
  case "image/jpeg" /* JPEG */:
8709
8748
  accept["image/jpeg" /* JPEG */] = [".jpeg", ".jpg"];
8710
8749
  break;
8750
+ case "video/mp4" /* MP4 */:
8751
+ accept["video/mp4" /* MP4 */] = [".mp4"];
8752
+ break;
8753
+ case "video/quicktime" /* MOV */:
8754
+ accept["video/quicktime" /* MOV */] = [".mov"];
8755
+ break;
8756
+ case "video/x-msvideo" /* AVI */:
8757
+ accept["video/x-msvideo" /* AVI */] = [".avi"];
8758
+ break;
8759
+ case "video/x-matroska" /* MKV */:
8760
+ accept["video/x-matroska" /* MKV */] = [".mkv"];
8761
+ break;
8762
+ case "video/3gpp" /* VIDEO_3GPP */:
8763
+ accept["video/3gpp" /* VIDEO_3GPP */] = [".3gp"];
8764
+ break;
8765
+ case "video/webm" /* WEBM */:
8766
+ accept["video/webm" /* WEBM */] = [".webm"];
8767
+ break;
8711
8768
  }
8712
8769
  });
8713
8770
  return accept;
@@ -8731,6 +8788,14 @@ var ITDropfile = ({
8731
8788
  case "image/jpeg" /* JPEG */:
8732
8789
  if (!extensions.includes("IMAGEN")) extensions.push("IMAGEN");
8733
8790
  break;
8791
+ case "video/mp4" /* MP4 */:
8792
+ case "video/quicktime" /* MOV */:
8793
+ case "video/x-msvideo" /* AVI */:
8794
+ case "video/x-matroska" /* MKV */:
8795
+ case "video/3gpp" /* VIDEO_3GPP */:
8796
+ case "video/webm" /* WEBM */:
8797
+ if (!extensions.includes("VIDEO")) extensions.push("VIDEO");
8798
+ break;
8734
8799
  }
8735
8800
  });
8736
8801
  return extensions.join(", ");
@@ -8838,9 +8903,9 @@ var ITDropfile = ({
8838
8903
  const isImage = fileType && fileType.startsWith("image/");
8839
8904
  return /* @__PURE__ */ jsxs44("div", { className: clsx41("w-full transition-all duration-300", containerClassName), children: [
8840
8905
  /* @__PURE__ */ jsxs44("div", { className: "flex items-center justify-between mb-2", children: [
8841
- /* @__PURE__ */ jsxs44("label", { className: "block text-sm font-semibold text-gray-700", children: [
8906
+ /* @__PURE__ */ jsxs44("label", { className: "block text-sm font-semibold text-secondary-700", children: [
8842
8907
  /* @__PURE__ */ jsx58(ITText, { as: "span", children: "Subir archivo " }),
8843
- /* @__PURE__ */ jsxs44(ITText, { as: "span", className: "text-gray-400 font-normal text-xs", children: [
8908
+ /* @__PURE__ */ jsxs44(ITText, { as: "span", className: "text-secondary-400 font-normal text-xs", children: [
8844
8909
  "(",
8845
8910
  getFileExtensions(),
8846
8911
  ")"
@@ -8855,77 +8920,83 @@ var ITDropfile = ({
8855
8920
  className: `
8856
8921
  relative group flex flex-col items-center justify-center w-full p-6
8857
8922
  border-2 border-dashed rounded-xl cursor-pointer transition-all duration-300 ease-in-out
8858
- ${isDragActive ? "border-primary-500 bg-primary-50 scale-[1.01]" : "border-gray-300 bg-white hover:border-primary-400 hover:bg-gray-50"}
8923
+ ${isDragActive ? "border-primary-500 bg-primary-50 scale-[1.01]" : "border-secondary-300 bg-white hover:border-primary-400 hover:bg-secondary-50"}
8859
8924
  `,
8860
8925
  children: [
8861
8926
  /* @__PURE__ */ jsx58("input", { ...getInputProps() }),
8862
- /* @__PURE__ */ jsx58("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__ */ jsx58(
8927
+ /* @__PURE__ */ jsx58("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__ */ jsx58(
8863
8928
  "svg",
8864
8929
  {
8865
- className: `w-6 h-6 transition-colors duration-300 ${isDragActive ? "text-primary-600" : "text-gray-400 group-hover:text-primary-500"}`,
8930
+ className: `w-6 h-6 transition-colors duration-300 ${isDragActive ? "text-primary-600" : "text-secondary-400 group-hover:text-primary-500"}`,
8866
8931
  fill: "none",
8867
8932
  viewBox: "0 0 24 24",
8868
8933
  stroke: "currentColor",
8869
8934
  children: /* @__PURE__ */ jsx58("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" })
8870
8935
  }
8871
8936
  ) }),
8872
- /* @__PURE__ */ jsx58("div", { className: "text-center space-y-1", children: /* @__PURE__ */ jsx58(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" }) })
8937
+ /* @__PURE__ */ jsx58("div", { className: "text-center space-y-1", children: /* @__PURE__ */ jsx58(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" }) })
8873
8938
  ]
8874
8939
  }
8875
- ) : /* @__PURE__ */ jsxs44("div", { className: "w-full bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden animate-fade-in", children: [
8876
- /* @__PURE__ */ jsx58("div", { className: "flex items-center justify-between p-3 bg-gray-50 border-b border-gray-100", children: /* @__PURE__ */ jsxs44("div", { className: "flex items-center gap-3 overflow-hidden", children: [
8940
+ ) : /* @__PURE__ */ jsxs44("div", { className: "w-full bg-white border border-secondary-200 rounded-xl shadow-sm overflow-hidden animate-fade-in", children: [
8941
+ /* @__PURE__ */ jsx58("div", { className: "flex items-center justify-between p-3 bg-secondary-50 border-b border-secondary-100", children: /* @__PURE__ */ jsxs44("div", { className: "flex items-center gap-3 overflow-hidden", children: [
8877
8942
  /* @__PURE__ */ jsx58("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__ */ jsx58("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx58("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__ */ jsx58("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx58("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" }) }) }),
8878
8943
  /* @__PURE__ */ jsxs44("div", { className: "min-w-0", children: [
8879
- /* @__PURE__ */ jsx58(ITText, { as: "p", className: "text-xs font-medium text-gray-900 truncate", title: selectedFile?.name || "Imagen cargada", children: selectedFile?.name || "Imagen cargada" }),
8880
- /* @__PURE__ */ jsx58(ITText, { as: "p", className: "text-[10px] text-gray-500", children: selectedFile ? (selectedFile.size / 1024 / 1024).toFixed(2) + " MB" : "" })
8944
+ /* @__PURE__ */ jsx58(ITText, { as: "p", className: "text-xs font-medium text-secondary-900 truncate", title: selectedFile?.name || "Imagen cargada", children: selectedFile?.name || "Imagen cargada" }),
8945
+ /* @__PURE__ */ jsx58(ITText, { as: "p", className: "text-[10px] text-secondary-500", children: selectedFile ? (selectedFile.size / 1024 / 1024).toFixed(2) + " MB" : "" })
8881
8946
  ] })
8882
8947
  ] }) }),
8883
- /* @__PURE__ */ jsx58("div", { className: clsx41("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__ */ jsx58(
8948
+ /* @__PURE__ */ jsx58("div", { className: clsx41("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__ */ jsx58(
8884
8949
  "img",
8885
8950
  {
8886
8951
  src: imagePreview,
8887
8952
  alt: "Vista previa",
8888
8953
  className: "w-full h-full object-contain max-h-[200px]"
8889
8954
  }
8890
- ) : /* @__PURE__ */ jsxs44("div", { className: "py-8 flex flex-col items-center text-gray-400", children: [
8955
+ ) : /* @__PURE__ */ jsxs44("div", { className: "py-8 flex flex-col items-center text-secondary-400", children: [
8891
8956
  /* @__PURE__ */ jsx58("svg", { className: "w-10 h-10 mb-2 opacity-50", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx58("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" }) }),
8892
8957
  /* @__PURE__ */ jsx58(ITText, { as: "span", className: "text-xs", children: "Sin vista previa" })
8893
8958
  ] }) }),
8894
- /* @__PURE__ */ jsx58("div", { className: "px-3 py-2 bg-white border-t border-gray-100 flex justify-end gap-2", children: !isConfirmed ? /* @__PURE__ */ jsxs44(Fragment8, { children: [
8959
+ /* @__PURE__ */ jsx58("div", { className: "px-3 py-2 bg-white border-t border-secondary-100 flex justify-end gap-2", children: !isConfirmed ? /* @__PURE__ */ jsxs44(Fragment8, { children: [
8895
8960
  /* @__PURE__ */ jsx58(
8896
- "button",
8961
+ ITButton,
8897
8962
  {
8898
8963
  type: "button",
8964
+ variant: "outlined",
8965
+ color: "secondary",
8966
+ size: "small",
8899
8967
  onClick: handleCancel,
8900
- 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",
8901
- children: /* @__PURE__ */ jsx58(ITText, { as: "span", children: "Cancelar" })
8968
+ children: /* @__PURE__ */ jsx58(ITText, { children: "Cancelar" })
8902
8969
  }
8903
8970
  ),
8904
- /* @__PURE__ */ jsxs44(
8905
- "button",
8971
+ /* @__PURE__ */ jsx58(
8972
+ ITButton,
8906
8973
  {
8907
8974
  type: "button",
8975
+ variant: "filled",
8976
+ color: "primary",
8977
+ size: "small",
8908
8978
  onClick: handleConfirm,
8909
- 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",
8910
- children: [
8911
- /* @__PURE__ */ jsx58(ITText, { as: "span", children: "Confirmar" }),
8979
+ children: /* @__PURE__ */ jsxs44("div", { className: "flex items-center gap-2", children: [
8980
+ /* @__PURE__ */ jsx58(ITText, { children: "Confirmar" }),
8912
8981
  /* @__PURE__ */ jsx58("svg", { className: "w-3 h-3", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx58("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) })
8913
- ]
8982
+ ] })
8914
8983
  }
8915
8984
  )
8916
8985
  ] }) : /* @__PURE__ */ jsxs44(
8917
- "button",
8986
+ ITButton,
8918
8987
  {
8919
8988
  type: "button",
8989
+ variant: "outlined",
8990
+ color: "danger",
8991
+ size: "small",
8920
8992
  onClick: handleDelete,
8921
- 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",
8922
8993
  children: [
8923
8994
  /* @__PURE__ */ jsx58("svg", { className: "w-3 h-3", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx58("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" }) }),
8924
- /* @__PURE__ */ jsx58(ITText, { as: "span", children: "Eliminar" })
8995
+ /* @__PURE__ */ jsx58(ITText, { children: "Eliminar" })
8925
8996
  ]
8926
8997
  }
8927
8998
  ) }),
8928
- uploadStatus === "subiendo" /* UPLOADING */ && /* @__PURE__ */ jsx58("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsx58("div", { className: "w-full bg-gray-200 rounded-full h-1.5", children: /* @__PURE__ */ jsx58(
8999
+ uploadStatus === "subiendo" /* UPLOADING */ && /* @__PURE__ */ jsx58("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsx58("div", { className: "w-full bg-secondary-200 rounded-full h-1.5", children: /* @__PURE__ */ jsx58(
8929
9000
  "div",
8930
9001
  {
8931
9002
  className: "bg-primary-600 h-1.5 rounded-full transition-all duration-1000 ease-out",
@@ -8966,8 +9037,8 @@ function ITTopBar({
8966
9037
  className: "sticky top-0 z-40 backdrop-blur-md transition-all duration-300",
8967
9038
  style: {
8968
9039
  backgroundColor: "var(--topbar-bg, rgba(255, 255, 255, 0.9))",
8969
- borderBottom: "1px solid var(--topbar-border, #e2e8f0)",
8970
- boxShadow: "none"
9040
+ borderBottom: "1px solid var(--topbar-border, rgba(15, 23, 42, 0.06))",
9041
+ boxShadow: "var(--shadow-xs)"
8971
9042
  },
8972
9043
  children: /* @__PURE__ */ jsxs45("div", { className: "flex items-center justify-between h-[72px] px-6 lg:px-8", children: [
8973
9044
  /* @__PURE__ */ jsxs45("div", { className: "flex items-center gap-5", children: [
@@ -8996,7 +9067,7 @@ function ITTopBar({
8996
9067
  }
8997
9068
  )
8998
9069
  ] }),
8999
- navItems && navItems.length > 0 && /* @__PURE__ */ jsx59("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__ */ jsx59(
9070
+ navItems && navItems.length > 0 && /* @__PURE__ */ jsx59("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__ */ jsx59(
9000
9071
  "button",
9001
9072
  {
9002
9073
  onClick: () => onNavItemClick?.(item.id),
@@ -9023,7 +9094,7 @@ function ITTopBar({
9023
9094
  "button",
9024
9095
  {
9025
9096
  type: "button",
9026
- 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",
9097
+ 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",
9027
9098
  style: {
9028
9099
  backgroundColor: isUserMenuOpen ? "var(--topbar-user-hover, #f1f5f9)" : "transparent"
9029
9100
  },
@@ -9074,7 +9145,7 @@ function ITTopBar({
9074
9145
  {
9075
9146
  ref: userMenuRef,
9076
9147
  className: `
9077
- 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)]
9148
+ 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)]
9078
9149
  ${isUserMenuOpen ? "scale-100 opacity-100 translate-y-0" : "scale-95 opacity-0 -translate-y-2 pointer-events-none"}
9079
9150
  `,
9080
9151
  style: {
@@ -9098,9 +9169,9 @@ function ITTopBar({
9098
9169
  setIsUserMenuOpen(false);
9099
9170
  },
9100
9171
  className: "block w-full text-left px-3 py-2.5 rounded-xl text-[0.875rem] font-medium transition-colors duration-150",
9101
- style: { color: isDestructive ? "#ef4444" : "var(--topbar-user-text, #334155)" },
9172
+ style: { color: isDestructive ? "var(--color-danger-500)" : "var(--topbar-user-text, #334155)" },
9102
9173
  onMouseEnter: (e) => {
9103
- e.currentTarget.style.backgroundColor = isDestructive ? "#fef2f2" : "var(--topbar-user-item-hover, #f8fafc)";
9174
+ e.currentTarget.style.backgroundColor = isDestructive ? "var(--color-danger-50)" : "var(--topbar-user-item-hover, #f8fafc)";
9104
9175
  },
9105
9176
  onMouseLeave: (e) => {
9106
9177
  e.currentTarget.style.backgroundColor = "transparent";
@@ -9166,7 +9237,7 @@ function ITLayout({
9166
9237
  mobileSidebarOpen && /* @__PURE__ */ jsx60(
9167
9238
  "div",
9168
9239
  {
9169
- className: "lg:hidden fixed inset-0 z-50 transition-opacity duration-300 backdrop-blur-sm bg-black/40",
9240
+ className: "lg:hidden fixed inset-0 z-[40] transition-opacity duration-300 backdrop-blur-sm bg-black/40",
9170
9241
  onClick: () => setMobileSidebarOpen(false),
9171
9242
  children: /* @__PURE__ */ jsx60(
9172
9243
  "div",
@@ -9253,7 +9324,7 @@ function ITLoader({
9253
9324
  return /* @__PURE__ */ jsx61(
9254
9325
  "div",
9255
9326
  {
9256
- 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}`,
9327
+ 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}`,
9257
9328
  children: /* @__PURE__ */ jsx61(
9258
9329
  "div",
9259
9330
  {
@@ -9364,7 +9435,7 @@ function ITStepper({
9364
9435
  /* @__PURE__ */ jsx62(
9365
9436
  "div",
9366
9437
  {
9367
- className: "absolute left-6 right-6 top-5 h-1 bg-gray-200 rounded-full z-0",
9438
+ className: "absolute left-6 right-6 top-5 h-1 bg-secondary-200 rounded-full z-0",
9368
9439
  "aria-hidden": true
9369
9440
  }
9370
9441
  ),
@@ -9399,7 +9470,7 @@ function ITStepper({
9399
9470
  hasIcon && "p-2",
9400
9471
  isCompleted && "bg-slate-400 border-slate-400 text-white scale-100 shadow",
9401
9472
  isActive && "text-white scale-110 shadow-lg",
9402
- !isActive && !isCompleted && "bg-white border-gray-300 text-gray-400"
9473
+ !isActive && !isCompleted && "bg-white border-secondary-300 text-secondary-400"
9403
9474
  ),
9404
9475
  style: isActive ? { backgroundColor: resolvedColor, borderColor: resolvedColor } : void 0,
9405
9476
  children: renderStepContent(idx, isCompleted, isActive)
@@ -9411,7 +9482,7 @@ function ITStepper({
9411
9482
  as: "span",
9412
9483
  className: clsx43(
9413
9484
  "mt-2 text-xs sm:text-sm font-medium transition-colors text-center",
9414
- isCompleted ? "text-slate-400" : !isActive && "text-gray-400"
9485
+ isCompleted ? "text-slate-400" : !isActive && "text-secondary-400"
9415
9486
  ),
9416
9487
  style: isActive ? { color: resolvedColor } : void 0,
9417
9488
  children: step.label
@@ -9432,7 +9503,7 @@ function ITStepper({
9432
9503
  "aria-labelledby": `step-${currentStep}`,
9433
9504
  className: clsx43(
9434
9505
  stepClassName,
9435
- "bg-white border border-gray-100 rounded-2xl shadow-lg min-h-[280px] transition-transform duration-400 no-scrollbar p-6",
9506
+ "bg-white border border-secondary-100 rounded-2xl shadow-lg min-h-[280px] transition-transform duration-400 no-scrollbar p-6",
9436
9507
  scrollableContent && "overflow-y-auto hide-scrollbar"
9437
9508
  ),
9438
9509
  style: scrollableContent && maxContentHeight ? { maxHeight: maxContentHeight } : void 0,
@@ -9454,7 +9525,7 @@ function ITStepper({
9454
9525
  }
9455
9526
  ),
9456
9527
  /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-3", children: [
9457
- /* @__PURE__ */ jsxs47(ITText, { as: "div", className: "text-sm text-gray-500 mr-2 hidden sm:block", children: [
9528
+ /* @__PURE__ */ jsxs47(ITText, { as: "div", className: "text-sm text-secondary-500 mr-2 hidden sm:block", children: [
9458
9529
  "Paso ",
9459
9530
  currentStep + 1,
9460
9531
  " de ",