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,66 @@
1
+ import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
2
+ import { useState as u, useRef as f, useEffect as h } from "react";
3
+ import '../../assets/Paginador.css';/* empty css */
4
+ import { C as p } from "../../Card-aTqC9rSK.js";
5
+ import { B as c } from "../../Button-t4PJaubx.js";
6
+ const N = ({ stepContent: a, onSubmit: d, canJump: s = !0 }) => {
7
+ const [r, l] = u(0), n = f(null);
8
+ return h(() => {
9
+ n.current && n.current.scrollIntoView({
10
+ behavior: "smooth",
11
+ block: "start"
12
+ });
13
+ }, [r]), /* @__PURE__ */ t(m, { children: [
14
+ /* @__PURE__ */ e(p, { ref: n, className: "border-0 paginador-card", children: /* @__PURE__ */ e("ul", { id: "progressbar", children: a.map((o, i) => /* @__PURE__ */ t(
15
+ "li",
16
+ {
17
+ className: i <= r ? "active" : "",
18
+ onClick: () => {
19
+ s ? s && l(i) : (i === r + 1 || i < r) && l(i);
20
+ },
21
+ children: [
22
+ /* @__PURE__ */ e("div", { className: `step ${i <= r ? "active" : ""}`, children: /* @__PURE__ */ e(o.icon, {}) }),
23
+ /* @__PURE__ */ e("strong", { children: o.label })
24
+ ]
25
+ },
26
+ i
27
+ )) }) }),
28
+ /* @__PURE__ */ e("div", { className: "paginador-content", children: a[r].content }),
29
+ /* @__PURE__ */ t("div", { className: "paginador-buttons", style: { display: "flex", justifyContent: "end" }, children: [
30
+ r > 0 && /* @__PURE__ */ e(
31
+ c,
32
+ {
33
+ variant: "unp_secondary",
34
+ onClick: () => l(r - 1),
35
+ style: {
36
+ marginRight: "1rem"
37
+ },
38
+ children: "Anterior"
39
+ }
40
+ ),
41
+ r < a.length - 1 && /* @__PURE__ */ e(
42
+ c,
43
+ {
44
+ variant: "unp_primary",
45
+ style: { justifySelf: "end" },
46
+ onClick: () => {
47
+ a[r].handleNextClick && a[r].handleNextClick(), l(r + 1);
48
+ },
49
+ children: "Siguiente"
50
+ }
51
+ ),
52
+ r === a.length - 1 && /* @__PURE__ */ e(
53
+ c,
54
+ {
55
+ type: "submit",
56
+ variant: "unp_send",
57
+ onClick: d,
58
+ children: "Enviar"
59
+ }
60
+ )
61
+ ] })
62
+ ] });
63
+ };
64
+ export {
65
+ N as Paginador
66
+ };
@@ -3,8 +3,8 @@ const i = {
3
3
  display: "flex",
4
4
  justifyContent: "start",
5
5
  alignItems: "center",
6
- marginTop: "1rem",
7
- marginBottom: "1.25rem"
6
+ marginTop: "1.2rem",
7
+ marginBottom: "0.9rem"
8
8
  }, l = {
9
9
  fontColor: "#303d50s",
10
10
  fontSize: "1.1rem",
@@ -1,19 +1,19 @@
1
- import { jsx as e, jsxs as d, Fragment as j } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m, Fragment as j } from "react/jsx-runtime";
2
2
  import '../../assets/Tarjeta.css';/* empty css */
3
- import { ContenedorTarjeta as b } from "./ContenedorTarjeta.js";
4
- import { C, a as N } from "../../Card-aTqC9rSK.js";
5
- import { C as g } from "../../CardBody-B9vvCH8g.js";
6
- import { u as w, a as E, b as T, c as $ } from "../../ThemeProvider-DwZMEupk.js";
3
+ import { SeccionTarjeta as b } from "./seccion-tarjeta/SeccionTarjeta.js";
4
+ import { C as N, a as g } from "../../Card-aTqC9rSK.js";
5
+ import { C as w } from "../../CardBody-B9vvCH8g.js";
6
+ import { u as C, a as E, b as T, c as $ } from "../../ThemeProvider-DwZMEupk.js";
7
7
  import * as v from "react";
8
- import { B as p } from "../../Button-Gn1tKaoW.js";
9
- const m = /* @__PURE__ */ v.forwardRef(({
10
- bsPrefix: l,
8
+ import { B as p } from "../../Button-t4PJaubx.js";
9
+ const d = /* @__PURE__ */ v.forwardRef(({
10
+ bsPrefix: c,
11
11
  className: r,
12
12
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
13
13
  as: t = "div",
14
14
  ...a
15
- }, c) => {
16
- const s = w(l, "row"), x = E(), h = T(), y = `${s}-cols`, f = [];
15
+ }, l) => {
16
+ const s = C(c, "row"), x = E(), h = T(), y = `${s}-cols`, f = [];
17
17
  return x.forEach((o) => {
18
18
  const n = a[o];
19
19
  delete a[o];
@@ -24,12 +24,12 @@ const m = /* @__PURE__ */ v.forwardRef(({
24
24
  const B = o !== h ? `-${o}` : "";
25
25
  i != null && f.push(`${y}${B}-${i}`);
26
26
  }), /* @__PURE__ */ e(t, {
27
- ref: c,
27
+ ref: l,
28
28
  ...a,
29
29
  className: $(r, s, ...f)
30
30
  });
31
31
  });
32
- m.displayName = "Row";
32
+ d.displayName = "Row";
33
33
  const u = {
34
34
  color: "#f3f3f3",
35
35
  backgroundColor: "#38a729",
@@ -38,28 +38,28 @@ const u = {
38
38
  marginBottom: "15px",
39
39
  width: "100px"
40
40
  }, H = ({
41
- title: l,
41
+ title: c,
42
42
  children: r,
43
43
  method: t = "GET",
44
44
  validated: a = !1,
45
- onSubmit: c = () => {
45
+ onSubmit: l = () => {
46
46
  },
47
47
  hasBody: s = !0
48
- }) => /* @__PURE__ */ d(C, { className: "border-0 mb-4 tarjeta-unp", children: [
49
- /* @__PURE__ */ e(N, { className: "d-flex justify-content-between align-items-center bg-unp text-light py-3 tarjeta-header-unp", children: l }),
48
+ }) => /* @__PURE__ */ m(N, { className: "border-0 mb-4 tarjeta-unp", children: [
49
+ /* @__PURE__ */ e(g, { className: "d-flex justify-content-between align-items-center bg-unp text-light py-3 tarjeta-header-unp", children: c }),
50
50
  /* @__PURE__ */ e(
51
51
  "form",
52
52
  {
53
53
  method: t,
54
- onSubmit: c,
54
+ onSubmit: l,
55
55
  noValidate: !0,
56
56
  className: a ? "was-validated" : "",
57
- children: s ? /* @__PURE__ */ d(g, { children: [
57
+ children: s ? /* @__PURE__ */ m(w, { className: "pt-0", children: [
58
58
  r,
59
- t !== "GET" && /* @__PURE__ */ e(m, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) })
60
- ] }) : /* @__PURE__ */ d(j, { children: [
59
+ t !== "GET" && /* @__PURE__ */ e(d, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) })
60
+ ] }) : /* @__PURE__ */ m(j, { children: [
61
61
  r,
62
- t !== "GET" && /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(m, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) }) })
62
+ t !== "GET" && /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(d, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) }) })
63
63
  ] })
64
64
  }
65
65
  )
@@ -0,0 +1,15 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import '../../../assets/ContenedorTarjeta.css';/* empty css */
3
+ const a = ({ isGray: r = !0, children: o }) => /* @__PURE__ */ t(
4
+ "div",
5
+ {
6
+ className: "contenedor-gris-tarjeta",
7
+ style: {
8
+ backgroundColor: r ? "#f7f7f7" : "#ffffff"
9
+ },
10
+ children: o
11
+ }
12
+ );
13
+ export {
14
+ a as ContenedorTarjeta
15
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import '../../../assets/SeccionTarjeta.css';/* empty css */
3
+ import { C as o } from "../../../CardBody-B9vvCH8g.js";
4
+ const i = ({ isGray: a = !1, children: t, isLast: r = !1 }) => /* @__PURE__ */ e(o, { className: `${a ? "tarjeta-container-section" : ""} ${r ? "tarjeta-container-last" : ""} tarjeta-container`, children: t });
5
+ export {
6
+ i as SeccionTarjeta
7
+ };
@@ -1,14 +1,13 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import { F as i } from "../../index-DHX2gxCC.js";
3
- import '../../assets/Tarjeta.css';/* empty css */
4
- import { B as a } from "../../Button-Gn1tKaoW.js";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { b as a } from "../../../index-PYPwtOs4.js";
3
+ import { B as s } from "../../../Button-t4PJaubx.js";
5
4
  const d = {
6
5
  fontColor: "#303d50s",
7
6
  fontSize: "1.1rem",
8
7
  fontWeight: "700",
9
8
  // marginBottom: '6.66rem',
10
9
  color: "#303d50"
11
- }, f = ({ title: o, children: e, onClick: t }) => /* @__PURE__ */ n(
10
+ }, p = ({ title: o, children: e, onClose: t, isGray: n = !1 }) => /* @__PURE__ */ i(
12
11
  "div",
13
12
  {
14
13
  className: "border border-gray-300 rounded-3",
@@ -17,11 +16,11 @@ const d = {
17
16
  padding: "1rem",
18
17
  marginTop: "0.5rem",
19
18
  marginBottom: "0.5rem",
20
- background: "#ffffff"
19
+ background: n ? "#f7f7f7" : "#ffffff"
21
20
  },
22
21
  children: [
23
22
  /* @__PURE__ */ r(
24
- a,
23
+ s,
25
24
  {
26
25
  variant: "link",
27
26
  onClick: t,
@@ -33,7 +32,7 @@ const d = {
33
32
  background: "transparent",
34
33
  border: "none"
35
34
  },
36
- children: /* @__PURE__ */ r(i, { size: 16, color: "red" })
35
+ children: /* @__PURE__ */ r(a, { size: 16, color: "red" })
37
36
  }
38
37
  ),
39
38
  o && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("span", { style: d, children: o }) }),
@@ -42,5 +41,5 @@ const d = {
42
41
  }
43
42
  );
44
43
  export {
45
- f as TarjetaAgregar
44
+ p as TarjetaAgregar
46
45
  };
@@ -0,0 +1,42 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { useState as s, useRef as m, useEffect as d } from "react";
3
+ import { F as j, a as u } from "../../index-PYPwtOs4.js";
4
+ import '../../assets/TarjetaInfo.css';/* empty css */
5
+ const C = ({ icon: r, label: c, show: l = !1, children: h }) => {
6
+ const [t, o] = s(l), [f, i] = s(0), a = m(null);
7
+ return d(() => {
8
+ t && a.current ? i(a.current.scrollHeight) : i(0);
9
+ }, [t]), /* @__PURE__ */ n("div", { className: "tarjeta-info-container", children: [
10
+ /* @__PURE__ */ n("div", { className: "tarjeta-info-titulo-container", children: [
11
+ /* @__PURE__ */ n("div", { className: "tarjeta-info-label-container", children: [
12
+ /* @__PURE__ */ e(r, { className: "tarjeta-info-icon" }),
13
+ /* @__PURE__ */ e("span", { children: c })
14
+ ] }),
15
+ /* @__PURE__ */ e("div", { className: "tarjeta-info-show-container", children: t ? /* @__PURE__ */ e(
16
+ j,
17
+ {
18
+ className: "tarjeta-info-show-button",
19
+ onClick: () => o(!t)
20
+ }
21
+ ) : /* @__PURE__ */ e(
22
+ u,
23
+ {
24
+ className: "tarjeta-info-show-button",
25
+ onClick: () => o(!t)
26
+ }
27
+ ) })
28
+ ] }),
29
+ /* @__PURE__ */ e(
30
+ "div",
31
+ {
32
+ className: "tarjeta-info-children-container",
33
+ style: { height: `${f}px` },
34
+ ref: a,
35
+ children: /* @__PURE__ */ e("div", { className: "tarjeta-info-content", children: h })
36
+ }
37
+ )
38
+ ] });
39
+ };
40
+ export {
41
+ C as TarjetaInfo
42
+ };
@@ -0,0 +1,66 @@
1
+ import { jsxs as i, Fragment as t, jsx as e } from "react/jsx-runtime";
2
+ import { useState as f, useRef as p, useEffect as v } from "react";
3
+ import '../../assets/TarjetaLectura.css';/* empty css */
4
+ import { Logo as y } from "../logo/Logo.js";
5
+ import { SeccionTarjetaLectura as _ } from "./seccion-tarjeta-lectura/SeccionTarjetaLectura.js";
6
+ import { B as d } from "../../Button-t4PJaubx.js";
7
+ const k = ({ title: h, subtitle: m, headerContent: u, stepContent: n, children: o }) => {
8
+ const [r, c] = f(0), l = p(null);
9
+ return v(() => {
10
+ l.current && l.current.scrollIntoView({
11
+ behavior: "smooth",
12
+ block: "start"
13
+ });
14
+ }, [r]), /* @__PURE__ */ i(t, { children: [
15
+ /* @__PURE__ */ i("form", { className: "form_qy", children: [
16
+ /* @__PURE__ */ i("div", { className: "main_title_container_qy", children: [
17
+ /* @__PURE__ */ i("div", { className: "subtitle_container_qy", children: [
18
+ /* @__PURE__ */ e("h3", { children: h }),
19
+ /* @__PURE__ */ e("h5", { children: m })
20
+ ] }),
21
+ /* @__PURE__ */ e("div", { className: "logo_container_qy", children: /* @__PURE__ */ e(y, { type: "entidad", variant: "unidad", color: "rojo", height: "80px" }) })
22
+ ] }),
23
+ /* @__PURE__ */ e("div", { className: "section_header_container_qy", children: u }),
24
+ n ? /* @__PURE__ */ i(t, { children: [
25
+ /* @__PURE__ */ e(_, { title: "Secciones", children: /* @__PURE__ */ e("ul", { ref: l, id: "paginador-tarjeta-lectura", children: n.map((s, a) => /* @__PURE__ */ i(
26
+ "li",
27
+ {
28
+ className: a <= r ? "active" : "",
29
+ onClick: () => c(a),
30
+ children: [
31
+ /* @__PURE__ */ e("div", { className: `step ${a <= r ? "active" : ""}`, children: /* @__PURE__ */ e(s.icon, {}) }),
32
+ /* @__PURE__ */ e("strong", { children: s.label })
33
+ ]
34
+ },
35
+ a
36
+ )) }) }),
37
+ /* @__PURE__ */ e("div", { children: n[r].content })
38
+ ] }) : o && /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e("div", { children: o }) })
39
+ ] }),
40
+ n && /* @__PURE__ */ e(t, { children: /* @__PURE__ */ i("div", { className: "paginador-buttons", style: { display: "flex", justifyContent: "end" }, children: [
41
+ r > 0 && /* @__PURE__ */ e(
42
+ d,
43
+ {
44
+ variant: "unp_secondary",
45
+ onClick: () => c(r - 1),
46
+ style: {
47
+ marginRight: "1rem"
48
+ },
49
+ children: "Anterior"
50
+ }
51
+ ),
52
+ r < n.length - 1 && /* @__PURE__ */ e(
53
+ d,
54
+ {
55
+ variant: "unp_primary",
56
+ style: { justifySelf: "end" },
57
+ onClick: () => c(r + 1),
58
+ children: "Siguiente"
59
+ }
60
+ )
61
+ ] }) })
62
+ ] });
63
+ };
64
+ export {
65
+ k as TarjetaLectura
66
+ };
@@ -0,0 +1,9 @@
1
+ import { jsxs as n, Fragment as a, jsx as e } from "react/jsx-runtime";
2
+ import '../../../assets/SeccionTarjetaLectura.css';/* empty css */
3
+ const t = ({ title: r, children: c }) => /* @__PURE__ */ n(a, { children: [
4
+ /* @__PURE__ */ e("div", { className: "section_header_qy", children: /* @__PURE__ */ e("span", { children: r }) }),
5
+ /* @__PURE__ */ e("div", { className: "section_container_qy", children: c })
6
+ ] });
7
+ export {
8
+ t as SeccionTarjetaLectura
9
+ };
@@ -0,0 +1,40 @@
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
+ import { d as s, e as d } from "../../index-PYPwtOs4.js";
3
+ import { G as n } from "../../iconBase-LROS5hdG.js";
4
+ import '../../assets/TarjetaListado.css';/* empty css */
5
+ import { a as c } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
6
+ function m(o) {
7
+ return n({ tag: "svg", attr: { viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M 15 4 L 15 20.5625 L 9.71875 15.28125 L 8.28125 16.71875 L 15.28125 23.71875 L 16 24.40625 L 16.71875 23.71875 L 23.71875 16.71875 L 22.28125 15.28125 L 17 20.5625 L 17 4 Z M 7 26 L 7 28 L 25 28 L 25 26 Z" }, child: [] }] })(o);
8
+ }
9
+ const N = ({ sections: o }) => {
10
+ const e = c();
11
+ return /* @__PURE__ */ a("div", { className: "listado-tarjetas", children: o.map((t, r) => /* @__PURE__ */ l("div", { className: "tarjeta-listado-row", children: [
12
+ /* @__PURE__ */ l(
13
+ "div",
14
+ {
15
+ className: "tarjeta-listado-container",
16
+ onClick: () => e(t.route),
17
+ children: [
18
+ /* @__PURE__ */ l("div", { className: "tarjeta-listado-label-container", children: [
19
+ /* @__PURE__ */ a(t.icon, { className: "tarjeta-listado-process-menu" }),
20
+ /* @__PURE__ */ a("span", { children: t.label })
21
+ ] }),
22
+ "closed" in t && /* @__PURE__ */ a("div", { className: "tarjeta-listado-state-container", children: t.closed ? /* @__PURE__ */ a(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ a(d, { style: { color: "#E2E2E2" } }) })
23
+ ]
24
+ }
25
+ ),
26
+ t.handleDownload && /* @__PURE__ */ a(
27
+ "div",
28
+ {
29
+ className: "tarjeta-listado-download-container",
30
+ onClick: (i) => {
31
+ i.stopPropagation(), t.handleDownload();
32
+ },
33
+ children: /* @__PURE__ */ a(m, { className: "tarjeta-listado-download-icon" })
34
+ }
35
+ )
36
+ ] }, r)) });
37
+ };
38
+ export {
39
+ N as TarjetaListado
40
+ };
package/dist/ui.js CHANGED
@@ -1,18 +1,28 @@
1
- import { Encabezado as e } from "./ui/components/Encabezado.js";
2
- import { Subtitulo as a } from "./ui/components/Subtitulo.js";
3
- import { ContenidoModal as f } from "./ui/components/ContenidoModal.js";
4
- import { Tarjeta as x } from "./ui/components/Tarjeta.js";
5
- import { ContenedorTarjeta as d } from "./ui/components/ContenedorTarjeta.js";
6
- import { TarjetaAgregar as T } from "./ui/components/TarjetaAgregar.js";
7
- import { Paginador as g } from "./ui/components/Paginador.js";
8
- import { IconoTipoSolicitud as l } from "./ui/components/IconoTipoSolicitud.js";
1
+ import { Encabezado as e } from "./ui/encabezado/Encabezado.js";
2
+ import { Subtitulo as a } from "./ui/subtitulo/Subtitulo.js";
3
+ import { ContenidoModal as m } from "./tables/tabla-registros/contenido-modal/ContenidoModal.js";
4
+ import { Tarjeta as x } from "./ui/tarjeta/Tarjeta.js";
5
+ import { SeccionTarjeta as j } from "./ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
6
+ import { TarjetaAgregar as c } from "./ui/tarjeta/tarjeta-agregar/TarjetaAgregar.js";
7
+ import { ContenedorTarjeta as i } from "./ui/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js";
8
+ import { Paginador as u } from "./ui/paginador/Paginador.js";
9
+ import { Logo as S } from "./ui/logo/Logo.js";
10
+ import { TarjetaLectura as l } from "./ui/tarjeta-lectura/TarjetaLectura.js";
11
+ import { SeccionTarjetaLectura as s } from "./ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js";
12
+ import { TarjetaListado as A } from "./ui/tarjeta-listado/TarjetaListado.js";
13
+ import { TarjetaInfo as I } from "./ui/tarjeta-info/TarjetaInfo.js";
9
14
  export {
10
- d as ContenedorTarjeta,
11
- f as ContenidoModal,
15
+ i as ContenedorTarjeta,
16
+ m as ContenidoModal,
12
17
  e as Encabezado,
13
- l as IconoTipoSolicitud,
14
- g as Paginador,
18
+ S as Logo,
19
+ u as Paginador,
20
+ j as SeccionTarjeta,
21
+ s as SeccionTarjetaLectura,
15
22
  a as Subtitulo,
16
23
  x as Tarjeta,
17
- T as TarjetaAgregar
24
+ c as TarjetaAgregar,
25
+ I as TarjetaInfo,
26
+ l as TarjetaLectura,
27
+ A as TarjetaListado
18
28
  };
@@ -0,0 +1,16 @@
1
+ import { useRef as n, useEffect as u, useCallback as c } from "react";
2
+ function f(r) {
3
+ const e = n(r);
4
+ return u(() => {
5
+ e.current = r;
6
+ }, [r]), e;
7
+ }
8
+ function s(r) {
9
+ const e = f(r);
10
+ return c(function(...t) {
11
+ return e.current && e.current(...t);
12
+ }, [e]);
13
+ }
14
+ export {
15
+ s as u
16
+ };
@@ -1,21 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { u as d, N as r, O as p } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
3
- import { useAuthId as f } from "../../auth/hooks/AuthHook.js";
4
- import { j as h } from "../../index-CuHybtft.js";
2
+ import { useAuthId as d } from "../../auth/hooks/AuthHook.js";
3
+ import { j as p } from "../../index-CuHybtft.js";
4
+ import { u as f, N as r, O as h } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
5
5
  const T = () => {
6
- const { authToken: c, userToken: n } = f(), i = d(), a = n || localStorage.getItem("user_token");
6
+ const { authToken: c, userToken: n } = d(), i = f(), a = n || localStorage.getItem("user_token");
7
7
  if (!(c || localStorage.getItem("access_token")) || !a)
8
8
  return /* @__PURE__ */ e(r, { to: "/", replace: !0 });
9
9
  let s;
10
10
  try {
11
- s = h(a);
11
+ s = p(a);
12
12
  } catch (t) {
13
13
  return console.error("Error decoding token:", t), /* @__PURE__ */ e(r, { to: "/", replace: !0 });
14
14
  }
15
15
  const u = s.access_url, o = i.pathname, l = u.map(
16
16
  (t) => t.startsWith("/") ? t : `/${t}`
17
17
  ), m = o.startsWith("/") ? o : `/${o}`;
18
- return l.includes(m) ? /* @__PURE__ */ e(p, {}) : /* @__PURE__ */ e(r, { to: "/sistema/pagina-no-permitida", replace: !0 });
18
+ return l.includes(m) ? /* @__PURE__ */ e(h, {}) : /* @__PURE__ */ e(r, { to: "/sistema/pagina-no-permitida", replace: !0 });
19
19
  };
20
20
  export {
21
21
  T as ProtectedRoute
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { N as a, O as s } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
3
- import { useAuthId as n } from "../../auth/hooks/AuthHook.js";
2
+ import { useAuthId as a } from "../../auth/hooks/AuthHook.js";
3
+ import { N as s, O as n } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
4
4
  const p = () => {
5
- const { authToken: e, userToken: o } = n(), r = o || localStorage.getItem("user_token");
6
- return !(e || localStorage.getItem("access_token")) || !r ? /* @__PURE__ */ t(a, { to: "/sistema/pagina-no-permitida", replace: !0 }) : /* @__PURE__ */ t(s, {});
5
+ const { authToken: e, userToken: o } = a(), r = o || localStorage.getItem("user_token");
6
+ return !(e || localStorage.getItem("access_token")) || !r ? /* @__PURE__ */ t(s, { to: "/sistema/pagina-no-permitida", replace: !0 }) : /* @__PURE__ */ t(n, {});
7
7
  };
8
8
  export {
9
9
  p as UserRoute
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "0.7.3",
5
+ "version": "0.8.15-react-19",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
@@ -52,30 +52,28 @@
52
52
  "deploy:storybook": "gh-pages -d .storybook-build -b gh-pages -t"
53
53
  },
54
54
  "peerDependencies": {
55
- "react": "^18.3.1",
56
- "react-dom": "^18.3.1"
55
+ "react": "19.0.0",
56
+ "react-dom": "19.0.0"
57
57
  },
58
58
  "dependencies": {
59
59
  "bootstrap": "^5.3.3",
60
60
  "jwt-decode": "^4.0.0",
61
61
  "lottie-react": "^2.4.1",
62
- "react": "^18.3.1",
63
62
  "react-bootstrap": "^2.10.9",
64
- "react-dom": "^18.3.1",
65
63
  "react-icons": "^5.4.0",
66
- "react-router": "^7.1.5",
64
+ "react-router-dom": "^7.1.5",
67
65
  "react-toastify": "^11.0.3"
68
66
  },
69
67
  "devDependencies": {
70
68
  "@chromatic-com/storybook": "^3.2.4",
71
69
  "@eslint/js": "^9.17.0",
72
- "@storybook/addon-essentials": "^8.5.3",
73
- "@storybook/addon-interactions": "^8.5.3",
74
- "@storybook/addon-onboarding": "^8.5.3",
75
- "@storybook/blocks": "^8.5.3",
76
- "@storybook/react": "^8.5.3",
77
- "@storybook/react-vite": "^8.5.3",
78
- "@storybook/test": "^8.5.3",
70
+ "@storybook/addon-essentials": "^8.5.5",
71
+ "@storybook/addon-interactions": "^8.5.5",
72
+ "@storybook/addon-onboarding": "^8.5.5",
73
+ "@storybook/blocks": "^8.5.5",
74
+ "@storybook/react": "^8.5.5",
75
+ "@storybook/react-vite": "^8.5.5",
76
+ "@storybook/test": "^8.5.5",
79
77
  "@types/node": "^22.10.10",
80
78
  "@types/react": "^18.3.18",
81
79
  "@types/react-dom": "^18.3.5",
@@ -87,10 +85,10 @@
87
85
  "gh-pages": "^6.3.0",
88
86
  "glob": "^11.0.1",
89
87
  "globals": "^15.14.0",
90
- "storybook": "^8.5.3",
88
+ "storybook": "^8.5.5",
91
89
  "typescript": "~5.6.2",
92
90
  "typescript-eslint": "^8.18.2",
93
- "vite": "^6.0.5",
91
+ "vite": "^6.1.0",
94
92
  "vite-plugin-dts": "^4.5.0",
95
93
  "vite-plugin-lib-inject-css": "^2.2.1"
96
94
  },