react-ecosistema-unp 0.7.3 → 0.8.15-react-19

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 (114) hide show
  1. package/dist/Anchor-D8f6vg0T.js +40 -0
  2. package/dist/Bootstrap-Bjgu14O1.js +1136 -0
  3. package/dist/Button-DD8y8HBa.js +78 -0
  4. package/dist/Button-t4PJaubx.js +33 -0
  5. package/dist/{NotificacionUsuario-uif1f5Yt.js → NotificacionUsuario-BQ655oML.js} +371 -401
  6. package/dist/TabContext-CdjYJzMB.js +125 -0
  7. package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +52 -0
  8. package/dist/accessibility.js +1 -1
  9. package/dist/assets/BarraAccesibilidad.css +1 -1
  10. package/dist/assets/Bootstrap.css +1 -1
  11. package/dist/assets/Breadcrumb.css +1 -0
  12. package/dist/assets/ContenedorTarjeta.css +1 -0
  13. package/dist/assets/ContenidoModal.css +1 -1
  14. package/dist/assets/Encabezado.css +1 -1
  15. package/dist/assets/IconoTabla.css +1 -0
  16. package/dist/assets/Logo.css +1 -0
  17. package/dist/assets/MenuLateral.css +1 -1
  18. package/dist/assets/Modal.css +1 -1
  19. package/dist/assets/NotificacionUsuario.css +1 -1
  20. package/dist/assets/SeccionTarjeta.css +1 -0
  21. package/dist/assets/SeccionTarjetaLectura.css +1 -0
  22. package/dist/assets/TabVentana.css +1 -1
  23. package/dist/assets/Tabla.css +1 -1
  24. package/dist/assets/Tarjeta.css +1 -1
  25. package/dist/assets/TarjetaInfo.css +1 -0
  26. package/dist/assets/TarjetaLectura.css +1 -0
  27. package/dist/assets/TarjetaListado.css +1 -0
  28. package/dist/auth/hooks/useFinalizarSesion.js +7 -7
  29. package/dist/index-PYPwtOs4.js +55 -0
  30. package/dist/lib/accessibility/barra-accesibilidad/BarraAccesibilidad.d.ts +2 -0
  31. package/dist/lib/accessibility.d.ts +1 -1
  32. package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
  33. package/dist/lib/shared.d.ts +3 -4
  34. package/dist/lib/tables/{components → tabla-registros/buscador}/Buscador.d.ts +1 -1
  35. package/dist/lib/tables/tabla-registros/contenido-modal/ContenidoModal.d.ts +18 -0
  36. package/dist/lib/tables/{components → tabla-registros/encabezado}/EncabezadoTabla.d.ts +1 -1
  37. package/dist/lib/tables/tabla-registros/icono-tabla/IconoTabla.d.ts +14 -0
  38. package/dist/lib/tables.d.ts +2 -1
  39. package/dist/lib/ui/logo/Logo.d.ts +14 -0
  40. package/dist/lib/ui/{components → paginador}/Paginador.d.ts +3 -1
  41. package/dist/lib/ui/{components → tarjeta/contenedor-tarjeta}/ContenedorTarjeta.d.ts +0 -1
  42. package/dist/lib/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.d.ts +8 -0
  43. package/dist/lib/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.d.ts +2 -1
  44. package/dist/lib/ui/tarjeta-info/TarjetaInfo.d.ts +9 -0
  45. package/dist/lib/ui/tarjeta-lectura/TarjetaLectura.d.ts +22 -0
  46. package/dist/lib/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.d.ts +7 -0
  47. package/dist/lib/ui/tarjeta-listado/TarjetaListado.d.ts +14 -0
  48. package/dist/lib/ui.d.ts +13 -8
  49. package/dist/logo_escudo_blanco-DaOI8SGq.js +4 -0
  50. package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
  51. package/dist/shared/{components → menu-lateral}/MenuLateral.js +37 -36
  52. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +5 -0
  53. package/dist/shared/ventana-lienzo/VentanaLienzo.js +22 -0
  54. package/dist/shared/{components → ventana-tabs}/TabVentana.js +1 -1
  55. package/dist/shared/{components → ventana-tabs}/VentanaTabs.js +22 -22
  56. package/dist/shared.js +4 -6
  57. package/dist/tables/{components → tabla-registros}/TablaRegistros.js +3 -3
  58. package/dist/tables/{components → tabla-registros/buscador}/Buscador.js +6 -6
  59. package/dist/tables/tabla-registros/contenido-modal/ContenidoModal.js +57 -0
  60. package/dist/{ui/components/ContenidoModal.js → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.js} +2 -2
  61. package/dist/tables/tabla-registros/encabezado/EncabezadoTabla.js +30 -0
  62. package/dist/tables/tabla-registros/icono-tabla/IconoTabla.js +68 -0
  63. package/dist/tables/{components → tabla-registros/modal}/Modal.js +1 -1
  64. package/dist/tables/{components → tabla-registros/tabla}/Tabla.js +19 -19
  65. package/dist/tables.js +3 -1
  66. package/dist/ui/encabezado/Encabezado.js +15 -0
  67. package/dist/ui/logo/Logo.js +12 -0
  68. package/dist/ui/paginador/Paginador.js +66 -0
  69. package/dist/ui/{components → subtitulo}/Subtitulo.js +2 -2
  70. package/dist/ui/{components → tarjeta}/Tarjeta.js +21 -21
  71. package/dist/ui/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +15 -0
  72. package/dist/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js +7 -0
  73. package/dist/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.js +8 -9
  74. package/dist/ui/tarjeta-info/TarjetaInfo.js +42 -0
  75. package/dist/ui/tarjeta-lectura/TarjetaLectura.js +66 -0
  76. package/dist/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +9 -0
  77. package/dist/ui/tarjeta-listado/TarjetaListado.js +40 -0
  78. package/dist/ui.js +23 -13
  79. package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
  80. package/dist/utils/components/ProtectedRoute.js +6 -6
  81. package/dist/utils/components/UserRoute.js +4 -4
  82. package/package.json +13 -15
  83. package/dist/Bootstrap-alDYHlwa.js +0 -19871
  84. package/dist/Button-Gn1tKaoW.js +0 -106
  85. package/dist/TabContext-BvNFEruk.js +0 -138
  86. package/dist/accessibility/components/BarraAccesibilidad.js +0 -52
  87. package/dist/assets/IconoTipoSolicitud.css +0 -1
  88. package/dist/index-DHX2gxCC.js +0 -27
  89. package/dist/lib/accessibility/components/BarraAccesibilidad.d.ts +0 -2
  90. package/dist/lib/shared/components/LoadingPage.d.ts +0 -3
  91. package/dist/lib/ui/components/IconoTipoSolicitud.d.ts +0 -7
  92. package/dist/shared/components/LoadingPage.js +0 -16
  93. package/dist/shared/components/NotificacionUsuario.js +0 -5
  94. package/dist/shared/components/VentanaLienzo.js +0 -16
  95. package/dist/tables/components/EncabezadoTabla.js +0 -24
  96. package/dist/ui/components/ContenedorTarjeta.js +0 -7
  97. package/dist/ui/components/Encabezado.js +0 -14
  98. package/dist/ui/components/IconoTipoSolicitud.js +0 -59
  99. package/dist/ui/components/Paginador.js +0 -56
  100. /package/dist/lib/{tables/assets → assets}/animations/isLoading.json.d.ts +0 -0
  101. /package/dist/lib/{tables/assets → assets}/animations/noData.json.d.ts +0 -0
  102. /package/dist/lib/{tables/assets → assets}/animations/noInfo.json.d.ts +0 -0
  103. /package/dist/lib/shared/{components → menu-lateral}/MenuLateral.d.ts +0 -0
  104. /package/dist/lib/shared/{components → notificacion-usuario}/NotificacionUsuario.d.ts +0 -0
  105. /package/dist/lib/shared/{components → ventana-lienzo}/VentanaLienzo.d.ts +0 -0
  106. /package/dist/lib/shared/{components → ventana-tabs}/TabVentana.d.ts +0 -0
  107. /package/dist/lib/shared/{components → ventana-tabs}/VentanaTabs.d.ts +0 -0
  108. /package/dist/lib/tables/{components → tabla-registros}/TablaRegistros.d.ts +0 -0
  109. /package/dist/lib/{ui/components/ContenidoModal.d.ts → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.d.ts} +0 -0
  110. /package/dist/lib/tables/{components → tabla-registros/modal}/Modal.d.ts +0 -0
  111. /package/dist/lib/tables/{components → tabla-registros/tabla}/Tabla.d.ts +0 -0
  112. /package/dist/lib/ui/{components → encabezado}/Encabezado.d.ts +0 -0
  113. /package/dist/lib/ui/{components → subtitulo}/Subtitulo.d.ts +0 -0
  114. /package/dist/lib/ui/{components → tarjeta}/Tarjeta.d.ts +0 -0
@@ -0,0 +1,68 @@
1
+ import { jsxs as g, jsx as r } from "react/jsx-runtime";
2
+ import { useState as C } from "react";
3
+ import { f as h, g as m, h as k, i as p, j as x } from "../../../index-PYPwtOs4.js";
4
+ import '../../../assets/IconoTabla.css';const S = ({ tipoSolicitud: t, porGestionar: o = !1 }) => {
5
+ const [c, s] = C(!1);
6
+ let e = "", l = {}, a = null, n = { color: o ? "#c8c8c8" : "#287cd1" };
7
+ const d = "#28a19d", u = "#ed7e3e", f = "#3e52edf8", v = "#ed3e49f8", b = "#d4c146", i = "#666666f4";
8
+ switch (t) {
9
+ case "Individual":
10
+ e = o ? "Nuevo registro" : "Individual", l = { backgroundColor: o ? i : d, color: "#f7f7f7" }, a = x;
11
+ break;
12
+ case "Colectivo":
13
+ e = o ? "Nuevo registro" : "Colectivo", l = { backgroundColor: o ? i : u, color: "#f7f7f7" }, a = p;
14
+ break;
15
+ case "Jurídico":
16
+ e = o ? "Nuevo registro" : "Jurídico", l = { backgroundColor: o ? i : f, color: "#f7f7f7" }, a = k;
17
+ break;
18
+ case "Emergencia":
19
+ e = o ? "Nuevo registro" : "Emergencia", l = { backgroundColor: o ? i : v, color: "#f7f7f7" }, a = m;
20
+ break;
21
+ case "Reasignación":
22
+ e = o ? "Nuevo registro" : "Reasignación", l = { backgroundColor: o ? i : b, color: "#f7f7f7" }, a = h;
23
+ break;
24
+ default:
25
+ return null;
26
+ }
27
+ return /* @__PURE__ */ g("div", { style: { position: "relative", display: "inline-block" }, children: [
28
+ /* @__PURE__ */ r(
29
+ "div",
30
+ {
31
+ onMouseEnter: () => s(!0),
32
+ onMouseLeave: () => s(!1),
33
+ style: {
34
+ ...n
35
+ },
36
+ className: "icon-solicitud",
37
+ children: /* @__PURE__ */ r(a, {})
38
+ }
39
+ ),
40
+ c && /* @__PURE__ */ r(
41
+ "div",
42
+ {
43
+ style: {
44
+ position: "absolute",
45
+ top: "50%",
46
+ left: "110%",
47
+ transform: "translateY(-50%)",
48
+ backgroundColor: "#eb7575",
49
+ color: "#fff",
50
+ padding: "8px 12px",
51
+ borderRadius: "8px",
52
+ fontSize: "0.9em",
53
+ whiteSpace: "nowrap",
54
+ boxShadow: "0 2px 6px rgba(0, 0, 0, 0.15)",
55
+ opacity: c ? 1 : 0,
56
+ visibility: c ? "visible" : "hidden",
57
+ zIndex: 1e3,
58
+ transition: "opacity 0.3s ease, visibility 0.3s ease",
59
+ ...l
60
+ },
61
+ children: e
62
+ }
63
+ )
64
+ ] });
65
+ };
66
+ export {
67
+ S as IconoTabla
68
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, jsxs as d } from "react/jsx-runtime";
2
2
  import { useState as n, useEffect as f } from "react";
3
- import '../../assets/Modal.css';const C = ({
3
+ import '../../../assets/Modal.css';const C = ({
4
4
  show: o,
5
5
  onHide: l,
6
6
  title: c,
@@ -1,28 +1,28 @@
1
1
  import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
- import $ from "react";
4
- import { d as k } from "../../index-DHX2gxCC.js";
5
- import { u as x, c as N } from "../../ThemeProvider-DwZMEupk.js";
6
- import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
3
+ import k from "react";
4
+ import { k as $ } from "../../../index-PYPwtOs4.js";
5
+ import { u as x, c as N } from "../../../ThemeProvider-DwZMEupk.js";
6
+ import '../../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
7
7
  bsPrefix: n,
8
- className: s,
8
+ className: a,
9
9
  striped: i,
10
10
  bordered: c,
11
11
  borderless: p,
12
12
  hover: g,
13
13
  size: d,
14
14
  variant: h,
15
- responsive: a,
15
+ responsive: s,
16
16
  ...b
17
17
  }, f) => {
18
- const o = x(n, "table"), t = N(s, o, h && `${o}-${h}`, d && `${o}-${d}`, i && `${o}-${typeof i == "string" ? `striped-${i}` : "striped"}`, c && `${o}-bordered`, p && `${o}-borderless`, g && `${o}-hover`), l = /* @__PURE__ */ e("table", {
18
+ const o = x(n, "table"), t = N(a, o, h && `${o}-${h}`, d && `${o}-${d}`, i && `${o}-${typeof i == "string" ? `striped-${i}` : "striped"}`, c && `${o}-bordered`, p && `${o}-borderless`, g && `${o}-hover`), l = /* @__PURE__ */ e("table", {
19
19
  ...b,
20
20
  className: t,
21
21
  ref: f
22
22
  });
23
- if (a) {
23
+ if (s) {
24
24
  let r = `${o}-responsive`;
25
- return typeof a == "string" && (r = `${r}-${a}`), /* @__PURE__ */ e("div", {
25
+ return typeof s == "string" && (r = `${r}-${s}`), /* @__PURE__ */ e("div", {
26
26
  className: r,
27
27
  children: l
28
28
  });
@@ -30,19 +30,19 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
30
30
  return l;
31
31
  }), B = ({
32
32
  columns: n,
33
- filteredData: s,
33
+ filteredData: a,
34
34
  tableData: i,
35
35
  hasMoreData: c,
36
36
  setHasMoreData: p,
37
37
  visibleData: g,
38
38
  setVisibleData: d,
39
39
  handleCellClick: h,
40
- totalDias: a,
40
+ totalDias: s,
41
41
  isShared: b
42
42
  }) => {
43
43
  const f = (t) => {
44
- if (a) {
45
- const l = t / a * 100;
44
+ if (s) {
45
+ const l = t / s * 100;
46
46
  return l <= 25 ? { backgroundColor: "#3AB34A", color: "#FFFFFF" } : l <= 50 ? { backgroundColor: "#F8EB10", color: "#000000" } : l <= 75 ? { backgroundColor: "#F79122", color: "#000000" } : { backgroundColor: "#E91720", color: "#FFFFFF" };
47
47
  }
48
48
  return { backgroundColor: "transparent", color: "inherit" };
@@ -51,12 +51,12 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
51
51
  const { scrollTop: l, clientHeight: r, scrollHeight: m } = t.currentTarget;
52
52
  m - l <= r + 50 && c && d((F) => {
53
53
  const C = F + 5;
54
- return C >= s.length && p(!1), Math.min(C, s.length);
54
+ return C >= a.length && p(!1), Math.min(C, a.length);
55
55
  });
56
56
  }, children: /* @__PURE__ */ u(v, { striped: !0, hover: !0, children: [
57
57
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: n.map((t, l) => /* @__PURE__ */ e("th", { className: "table-header-unp", children: t.label }, l)) }) }),
58
58
  /* @__PURE__ */ u("tbody", { children: [
59
- i.slice(0, g).map((t, l) => /* @__PURE__ */ u($.Fragment, { children: [
59
+ i.slice(0, g).map((t, l) => /* @__PURE__ */ u(k.Fragment, { children: [
60
60
  /* @__PURE__ */ e("tr", { children: n.map((r, m) => /* @__PURE__ */ e(
61
61
  "td",
62
62
  {
@@ -94,16 +94,16 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
94
94
  },
95
95
  m
96
96
  )) }),
97
- b && t.estadoRegistro === "en_gestion" && !s.some((r) => r.estadoRegistro === "en_gestion" && s.indexOf(r) > l) && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", style: { padding: "0 0 0 0" }, children: /* @__PURE__ */ e("div", { style: {
98
- height: "3rem",
97
+ b && t.estadoRegistro === "en_gestion" && !a.some((r) => r.estadoRegistro === "en_gestion" && a.indexOf(r) > l) && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", style: { padding: "0 0 0 0" }, children: /* @__PURE__ */ e("div", { style: {
98
+ height: "2rem",
99
99
  display: "flex",
100
100
  flexDirection: "row",
101
101
  justifyContent: "center",
102
102
  alignItems: "center",
103
103
  fontWeight: "600",
104
104
  color: l % 2 === 0 ? "#365072" : "#303D50",
105
- backgroundColor: l % 2 === 0 ? "#fefefe" : "#f7f7f9"
106
- }, children: /* @__PURE__ */ e(k, { style: { fontSize: "1.3rem" } }) }) }) })
105
+ backgroundColor: l % 2 === 0 ? "#fefefe" : "#f9fafa"
106
+ }, children: /* @__PURE__ */ e($, { style: { fontSize: "1.3rem" } }) }) }) })
107
107
  ] }, l)),
108
108
  c && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", children: "Cargando más datos..." }) })
109
109
  ] })
package/dist/tables.js CHANGED
@@ -1,4 +1,6 @@
1
- import { TablaRegistros as a } from "./tables/components/TablaRegistros.js";
1
+ import { TablaRegistros as a } from "./tables/tabla-registros/TablaRegistros.js";
2
+ import { IconoTabla as t } from "./tables/tabla-registros/icono-tabla/IconoTabla.js";
2
3
  export {
4
+ t as IconoTabla,
3
5
  a as TablaRegistros
4
6
  };
@@ -0,0 +1,15 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { Logo as s } from "../logo/Logo.js";
3
+ import '../../assets/Encabezado.css';const r = ({ titulo: a = "", subtitulo: n = "" }) => /* @__PURE__ */ i("div", { className: "title-container", children: [
4
+ /* @__PURE__ */ i("div", { className: "logo-subtitle-container", children: [
5
+ /* @__PURE__ */ e("div", { className: "red-section" }),
6
+ /* @__PURE__ */ e(s, { type: "entidad", variant: "unp", color: "gris", height: "62" })
7
+ ] }),
8
+ /* @__PURE__ */ i("div", { className: "subtitle-container", children: [
9
+ /* @__PURE__ */ e("span", { className: "title", children: a || "Unidad Nacional de Protección" }),
10
+ /* @__PURE__ */ e("span", { className: "subtitle", children: n })
11
+ ] })
12
+ ] });
13
+ export {
14
+ r as Encabezado
15
+ };