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.
- package/dist/Anchor-D8f6vg0T.js +40 -0
- package/dist/Bootstrap-Bjgu14O1.js +1136 -0
- package/dist/Button-DD8y8HBa.js +78 -0
- package/dist/Button-t4PJaubx.js +33 -0
- package/dist/{NotificacionUsuario-uif1f5Yt.js → NotificacionUsuario-BQ655oML.js} +371 -401
- package/dist/TabContext-CdjYJzMB.js +125 -0
- package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +52 -0
- package/dist/accessibility.js +1 -1
- package/dist/assets/BarraAccesibilidad.css +1 -1
- package/dist/assets/Bootstrap.css +1 -1
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/ContenedorTarjeta.css +1 -0
- package/dist/assets/ContenidoModal.css +1 -1
- package/dist/assets/Encabezado.css +1 -1
- package/dist/assets/IconoTabla.css +1 -0
- package/dist/assets/Logo.css +1 -0
- package/dist/assets/MenuLateral.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/NotificacionUsuario.css +1 -1
- package/dist/assets/SeccionTarjeta.css +1 -0
- package/dist/assets/SeccionTarjetaLectura.css +1 -0
- package/dist/assets/TabVentana.css +1 -1
- package/dist/assets/Tabla.css +1 -1
- package/dist/assets/Tarjeta.css +1 -1
- package/dist/assets/TarjetaInfo.css +1 -0
- package/dist/assets/TarjetaLectura.css +1 -0
- package/dist/assets/TarjetaListado.css +1 -0
- package/dist/auth/hooks/useFinalizarSesion.js +7 -7
- package/dist/index-PYPwtOs4.js +55 -0
- package/dist/lib/accessibility/barra-accesibilidad/BarraAccesibilidad.d.ts +2 -0
- package/dist/lib/accessibility.d.ts +1 -1
- package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
- package/dist/lib/shared.d.ts +3 -4
- package/dist/lib/tables/{components → tabla-registros/buscador}/Buscador.d.ts +1 -1
- package/dist/lib/tables/tabla-registros/contenido-modal/ContenidoModal.d.ts +18 -0
- package/dist/lib/tables/{components → tabla-registros/encabezado}/EncabezadoTabla.d.ts +1 -1
- package/dist/lib/tables/tabla-registros/icono-tabla/IconoTabla.d.ts +14 -0
- package/dist/lib/tables.d.ts +2 -1
- package/dist/lib/ui/logo/Logo.d.ts +14 -0
- package/dist/lib/ui/{components → paginador}/Paginador.d.ts +3 -1
- package/dist/lib/ui/{components → tarjeta/contenedor-tarjeta}/ContenedorTarjeta.d.ts +0 -1
- package/dist/lib/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.d.ts +8 -0
- package/dist/lib/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.d.ts +2 -1
- package/dist/lib/ui/tarjeta-info/TarjetaInfo.d.ts +9 -0
- package/dist/lib/ui/tarjeta-lectura/TarjetaLectura.d.ts +22 -0
- package/dist/lib/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.d.ts +7 -0
- package/dist/lib/ui/tarjeta-listado/TarjetaListado.d.ts +14 -0
- package/dist/lib/ui.d.ts +13 -8
- package/dist/logo_escudo_blanco-DaOI8SGq.js +4 -0
- package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
- package/dist/shared/{components → menu-lateral}/MenuLateral.js +37 -36
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +5 -0
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +22 -0
- package/dist/shared/{components → ventana-tabs}/TabVentana.js +1 -1
- package/dist/shared/{components → ventana-tabs}/VentanaTabs.js +22 -22
- package/dist/shared.js +4 -6
- package/dist/tables/{components → tabla-registros}/TablaRegistros.js +3 -3
- package/dist/tables/{components → tabla-registros/buscador}/Buscador.js +6 -6
- package/dist/tables/tabla-registros/contenido-modal/ContenidoModal.js +57 -0
- package/dist/{ui/components/ContenidoModal.js → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.js} +2 -2
- package/dist/tables/tabla-registros/encabezado/EncabezadoTabla.js +30 -0
- package/dist/tables/tabla-registros/icono-tabla/IconoTabla.js +68 -0
- package/dist/tables/{components → tabla-registros/modal}/Modal.js +1 -1
- package/dist/tables/{components → tabla-registros/tabla}/Tabla.js +19 -19
- package/dist/tables.js +3 -1
- package/dist/ui/encabezado/Encabezado.js +15 -0
- package/dist/ui/logo/Logo.js +12 -0
- package/dist/ui/paginador/Paginador.js +66 -0
- package/dist/ui/{components → subtitulo}/Subtitulo.js +2 -2
- package/dist/ui/{components → tarjeta}/Tarjeta.js +21 -21
- package/dist/ui/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +15 -0
- package/dist/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js +7 -0
- package/dist/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.js +8 -9
- package/dist/ui/tarjeta-info/TarjetaInfo.js +42 -0
- package/dist/ui/tarjeta-lectura/TarjetaLectura.js +66 -0
- package/dist/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +9 -0
- package/dist/ui/tarjeta-listado/TarjetaListado.js +40 -0
- package/dist/ui.js +23 -13
- package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
- package/dist/utils/components/ProtectedRoute.js +6 -6
- package/dist/utils/components/UserRoute.js +4 -4
- package/package.json +13 -15
- package/dist/Bootstrap-alDYHlwa.js +0 -19871
- package/dist/Button-Gn1tKaoW.js +0 -106
- package/dist/TabContext-BvNFEruk.js +0 -138
- package/dist/accessibility/components/BarraAccesibilidad.js +0 -52
- package/dist/assets/IconoTipoSolicitud.css +0 -1
- package/dist/index-DHX2gxCC.js +0 -27
- package/dist/lib/accessibility/components/BarraAccesibilidad.d.ts +0 -2
- package/dist/lib/shared/components/LoadingPage.d.ts +0 -3
- package/dist/lib/ui/components/IconoTipoSolicitud.d.ts +0 -7
- package/dist/shared/components/LoadingPage.js +0 -16
- package/dist/shared/components/NotificacionUsuario.js +0 -5
- package/dist/shared/components/VentanaLienzo.js +0 -16
- package/dist/tables/components/EncabezadoTabla.js +0 -24
- package/dist/ui/components/ContenedorTarjeta.js +0 -7
- package/dist/ui/components/Encabezado.js +0 -14
- package/dist/ui/components/IconoTipoSolicitud.js +0 -59
- package/dist/ui/components/Paginador.js +0 -56
- /package/dist/lib/{tables/assets → assets}/animations/isLoading.json.d.ts +0 -0
- /package/dist/lib/{tables/assets → assets}/animations/noData.json.d.ts +0 -0
- /package/dist/lib/{tables/assets → assets}/animations/noInfo.json.d.ts +0 -0
- /package/dist/lib/shared/{components → menu-lateral}/MenuLateral.d.ts +0 -0
- /package/dist/lib/shared/{components → notificacion-usuario}/NotificacionUsuario.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-lienzo}/VentanaLienzo.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-tabs}/TabVentana.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-tabs}/VentanaTabs.d.ts +0 -0
- /package/dist/lib/tables/{components → tabla-registros}/TablaRegistros.d.ts +0 -0
- /package/dist/lib/{ui/components/ContenidoModal.d.ts → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.d.ts} +0 -0
- /package/dist/lib/tables/{components → tabla-registros/modal}/Modal.d.ts +0 -0
- /package/dist/lib/tables/{components → tabla-registros/tabla}/Tabla.d.ts +0 -0
- /package/dist/lib/ui/{components → encabezado}/Encabezado.d.ts +0 -0
- /package/dist/lib/ui/{components → subtitulo}/Subtitulo.d.ts +0 -0
- /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
|
+
};
|
package/dist/accessibility.js
CHANGED