react-ecosistema-unp 0.8.1 → 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 (30) 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-DRuxRQ6q.js → NotificacionUsuario-BQ655oML.js} +370 -400
  6. package/dist/TabContext-CdjYJzMB.js +125 -0
  7. package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +13 -13
  8. package/dist/assets/BarraAccesibilidad.css +1 -1
  9. package/dist/assets/Breadcrumb.css +1 -0
  10. package/dist/assets/TabVentana.css +1 -1
  11. package/dist/auth/hooks/useFinalizarSesion.js +7 -7
  12. package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
  13. package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
  14. package/dist/shared/menu-lateral/MenuLateral.js +7 -7
  15. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +1 -1
  16. package/dist/shared/ventana-lienzo/VentanaLienzo.js +18 -12
  17. package/dist/shared/ventana-tabs/TabVentana.js +1 -1
  18. package/dist/shared/ventana-tabs/VentanaTabs.js +22 -22
  19. package/dist/ui/paginador/Paginador.js +1 -1
  20. package/dist/ui/tarjeta/Tarjeta.js +1 -1
  21. package/dist/ui/tarjeta/tarjeta-agregar/TarjetaAgregar.js +1 -1
  22. package/dist/ui/tarjeta-lectura/TarjetaLectura.js +1 -1
  23. package/dist/ui/tarjeta-listado/TarjetaListado.js +6 -6
  24. package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
  25. package/dist/utils/components/ProtectedRoute.js +6 -6
  26. package/dist/utils/components/UserRoute.js +4 -4
  27. package/package.json +13 -15
  28. package/dist/Bootstrap-alDYHlwa.js +0 -19871
  29. package/dist/Button-Gn1tKaoW.js +0 -106
  30. package/dist/TabContext-BvNFEruk.js +0 -138
@@ -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
+ };
@@ -1,25 +1,25 @@
1
1
  import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as m } from "react";
3
- import '../../assets/BarraAccesibilidad.css';const g = () => {
4
- const [s, u] = i(!1), [l, f] = i(0), [n, r] = i(null), t = { MIN: -2, MAX: 5 };
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
5
  m(() => {
6
6
  s ? document.body.classList.add("contrast-govco") : document.body.classList.remove("contrast-govco");
7
7
  }, [s]), m(() => {
8
- document.documentElement.style.fontSize = `${100 + l * 10}%`;
9
- }, [l]);
8
+ document.documentElement.style.fontSize = `${100 + r * 10}%`;
9
+ }, [r]);
10
10
  const b = () => {
11
- u(!s), r((a) => a === "contrast" ? null : "contrast");
11
+ u(!s), l((a) => a === "contrast" ? null : "contrast");
12
12
  }, d = (a) => {
13
- f((c) => {
14
- const o = a === "increase" ? c + 1 : c - 1;
15
- return o < t.MIN || o > t.MAX ? c : (r(a), o);
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
16
  });
17
17
  };
18
- return /* @__PURE__ */ e("div", { className: "position-fixed top-50 translate-middle-y", style: { right: 0, zIndex: 1200 }, children: /* @__PURE__ */ v("div", { className: "barra-accesibilidad-govco d-none d-lg-flex", children: [
18
+ return /* @__PURE__ */ e("div", { className: "", children: /* @__PURE__ */ v("div", { className: "barra-accesibilidad-govco", children: [
19
19
  /* @__PURE__ */ e(
20
20
  "button",
21
21
  {
22
- className: `contrast ${n === "contrast" ? "active" : ""}`,
22
+ className: `contrast ${c === "contrast" ? "active" : ""}`,
23
23
  "aria-label": "Cambiar contraste",
24
24
  onClick: b,
25
25
  children: /* @__PURE__ */ e("span", { className: "govco-contrast" })
@@ -28,7 +28,7 @@ import '../../assets/BarraAccesibilidad.css';const g = () => {
28
28
  /* @__PURE__ */ e(
29
29
  "button",
30
30
  {
31
- className: `decrease-font-size ${n === "decrease" ? "active" : ""}`,
31
+ className: `decrease-font-size ${c === "decrease" ? "active" : ""}`,
32
32
  "aria-label": "Disminuir letra",
33
33
  onClick: () => d("decrease"),
34
34
  "data-decrease-limit": t.MIN,
@@ -38,7 +38,7 @@ import '../../assets/BarraAccesibilidad.css';const g = () => {
38
38
  /* @__PURE__ */ e(
39
39
  "button",
40
40
  {
41
- className: `increase-font-size ${n === "increase" ? "active" : ""}`,
41
+ className: `increase-font-size ${c === "increase" ? "active" : ""}`,
42
42
  "aria-label": "Aumentar letra",
43
43
  onClick: () => d("increase"),
44
44
  "data-increase-limit": t.MAX,
@@ -48,5 +48,5 @@ import '../../assets/BarraAccesibilidad.css';const g = () => {
48
48
  ] }) });
49
49
  };
50
50
  export {
51
- g as BarraAccesibilidad
51
+ h as BarraAccesibilidad
52
52
  };