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,125 @@
1
+ import * as w from "react";
2
+ import a, { useMemo as M, useRef as x, useState as S, useCallback as P, useContext as b } from "react";
3
+ function X(e, t) {
4
+ if (e == null) return {};
5
+ var r = {};
6
+ for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
7
+ if (t.indexOf(n) !== -1) continue;
8
+ r[n] = e[n];
9
+ }
10
+ return r;
11
+ }
12
+ function Z(e) {
13
+ return e && e.ownerDocument || document;
14
+ }
15
+ const h = !!(typeof window < "u" && window.document && window.document.createElement);
16
+ var $ = !1, v = !1;
17
+ try {
18
+ var d = {
19
+ get passive() {
20
+ return $ = !0;
21
+ },
22
+ get once() {
23
+ return v = $ = !0;
24
+ }
25
+ };
26
+ h && (window.addEventListener("test", d, d), window.removeEventListener("test", d, !0));
27
+ } catch {
28
+ }
29
+ function k(e, t, r, n) {
30
+ if (n && typeof n != "boolean" && !v) {
31
+ var o = n.once, c = n.capture, u = r;
32
+ !v && o && (u = r.__once || function s(f) {
33
+ this.removeEventListener(t, s, c), r.call(this, f);
34
+ }, r.__once = u), e.addEventListener(t, u, $ ? n : c);
35
+ }
36
+ e.addEventListener(t, r, n);
37
+ }
38
+ function z(e, t, r, n) {
39
+ var o = n && typeof n != "boolean" ? n.capture : n;
40
+ e.removeEventListener(t, r, o), r.__once && e.removeEventListener(t, r.__once, o);
41
+ }
42
+ function H(e, t, r, n) {
43
+ return k(e, t, r, n), function() {
44
+ z(e, t, r, n);
45
+ };
46
+ }
47
+ const p = (e) => !e || typeof e == "function" ? e : (t) => {
48
+ e.current = t;
49
+ };
50
+ function L(e, t) {
51
+ const r = p(e), n = p(t);
52
+ return (o) => {
53
+ r && r(o), n && n(o);
54
+ };
55
+ }
56
+ function F(e, t) {
57
+ return M(() => L(e, t), [e, t]);
58
+ }
59
+ function B(e, t, r) {
60
+ const n = x(e !== void 0), [o, c] = S(t), u = e !== void 0, s = n.current;
61
+ return n.current = u, !u && s && o !== t && c(t), [u ? e : o, P((...f) => {
62
+ const [m, ...g] = f;
63
+ let C = r == null ? void 0 : r(m, ...g);
64
+ return c(m), C;
65
+ }, [r])];
66
+ }
67
+ const i = {
68
+ prefix: String(Math.round(Math.random() * 1e10)),
69
+ current: 0
70
+ }, y = /* @__PURE__ */ a.createContext(i), j = /* @__PURE__ */ a.createContext(!1);
71
+ let V = !!(typeof window < "u" && window.document && window.document.createElement), l = /* @__PURE__ */ new WeakMap();
72
+ function q(e = !1) {
73
+ let t = b(y), r = x(null);
74
+ if (r.current === null && !e) {
75
+ var n, o;
76
+ let c = (o = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (n = o.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
77
+ if (c) {
78
+ let u = l.get(c);
79
+ u == null ? l.set(c, {
80
+ id: t.current,
81
+ state: c.memoizedState
82
+ }) : c.memoizedState !== u.state && (t.current = u.id, l.delete(c));
83
+ }
84
+ r.current = ++t.current;
85
+ }
86
+ return r.current;
87
+ }
88
+ function D(e) {
89
+ let t = b(y);
90
+ t === i && !V && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
91
+ let r = q(!!e), n = t === i && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
92
+ return e || `${n}-${r}`;
93
+ }
94
+ function E(e) {
95
+ let t = a.useId(), [r] = S(Q()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${i.prefix}`;
96
+ return e || `${n}-${t}`;
97
+ }
98
+ const U = typeof a.useId == "function" ? E : D;
99
+ function G() {
100
+ return !1;
101
+ }
102
+ function J() {
103
+ return !0;
104
+ }
105
+ function K(e) {
106
+ return () => {
107
+ };
108
+ }
109
+ function Q() {
110
+ return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(K, G, J) : b(j);
111
+ }
112
+ const Y = /* @__PURE__ */ w.createContext(null), A = (e, t = null) => e != null ? String(e) : t || null, I = /* @__PURE__ */ w.createContext(null);
113
+ export {
114
+ U as $,
115
+ Y as S,
116
+ I as T,
117
+ X as _,
118
+ B as a,
119
+ k as b,
120
+ h as c,
121
+ H as l,
122
+ A as m,
123
+ Z as o,
124
+ F as u
125
+ };
@@ -0,0 +1,52 @@
1
+ import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
+ import { useState as i, useEffect as m } from "react";
3
+ import '../../assets/BarraAccesibilidad.css';const h = () => {
4
+ const [s, u] = i(!1), [r, f] = i(0), [c, l] = i(null), t = { MIN: -2, MAX: 5 };
5
+ m(() => {
6
+ s ? document.body.classList.add("contrast-govco") : document.body.classList.remove("contrast-govco");
7
+ }, [s]), m(() => {
8
+ document.documentElement.style.fontSize = `${100 + r * 10}%`;
9
+ }, [r]);
10
+ const b = () => {
11
+ u(!s), l((a) => a === "contrast" ? null : "contrast");
12
+ }, d = (a) => {
13
+ f((n) => {
14
+ const o = a === "increase" ? n + 1 : n - 1;
15
+ return o < t.MIN || o > t.MAX ? n : (l(a), o);
16
+ });
17
+ };
18
+ return /* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ v("div", { className: "barra-accesibilidad-govco", children: [
19
+ /* @__PURE__ */ e(
20
+ "button",
21
+ {
22
+ className: `contrast ${c === "contrast" ? "active" : ""}`,
23
+ "aria-label": "Cambiar contraste",
24
+ onClick: b,
25
+ children: /* @__PURE__ */ e("span", { className: "govco-contrast" })
26
+ }
27
+ ),
28
+ /* @__PURE__ */ e(
29
+ "button",
30
+ {
31
+ className: `decrease-font-size ${c === "decrease" ? "active" : ""}`,
32
+ "aria-label": "Disminuir letra",
33
+ onClick: () => d("decrease"),
34
+ "data-decrease-limit": t.MIN,
35
+ children: /* @__PURE__ */ e("span", { className: "govco-font-minimize" })
36
+ }
37
+ ),
38
+ /* @__PURE__ */ e(
39
+ "button",
40
+ {
41
+ className: `increase-font-size ${c === "increase" ? "active" : ""}`,
42
+ "aria-label": "Aumentar letra",
43
+ onClick: () => d("increase"),
44
+ "data-increase-limit": t.MAX,
45
+ children: /* @__PURE__ */ e("span", { className: "govco-font-maximize" })
46
+ }
47
+ )
48
+ ] }) });
49
+ };
50
+ export {
51
+ h as BarraAccesibilidad
52
+ };
@@ -1,4 +1,4 @@
1
- import { BarraAccesibilidad as i } from "./accessibility/components/BarraAccesibilidad.js";
1
+ import { BarraAccesibilidad as i } from "./accessibility/barra-accesibilidad/BarraAccesibilidad.js";
2
2
  export {
3
3
  i as BarraAccesibilidad
4
4
  };