react-ecosistema-unp 0.8.1 → 0.9.0

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 (85) hide show
  1. package/dist/Anchor-D8f6vg0T.js +40 -0
  2. package/dist/Bootstrap-yLMFDuQq.js +1136 -0
  3. package/dist/Button-DD8y8HBa.js +78 -0
  4. package/dist/Button-DMwpnJlD.js +33 -0
  5. package/dist/{Card-aTqC9rSK.js → Card-BXqmurzN.js} +2 -2
  6. package/dist/{CardBody-B9vvCH8g.js → CardBody-RoDe1y90.js} +1 -1
  7. package/dist/{NotificacionUsuario-DRuxRQ6q.js → NotificacionUsuario-WGsdHnu2.js} +372 -402
  8. package/dist/TabContext-CdjYJzMB.js +125 -0
  9. package/dist/ThemeProvider-CFCmmLJC.js +69 -0
  10. package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +13 -13
  11. package/dist/assets/BarraAccesibilidad.css +1 -1
  12. package/dist/assets/Breadcrumb.css +1 -0
  13. package/dist/assets/MenuLateral.css +1 -1
  14. package/dist/assets/NotificacionUsuario.css +1 -1
  15. package/dist/assets/SeccionTarjeta.css +1 -1
  16. package/dist/assets/SeccionTarjetaLectura.css +1 -1
  17. package/dist/assets/Subtitulo.css +1 -0
  18. package/dist/assets/TabVentana.css +1 -1
  19. package/dist/assets/TarjetaLectura.css +1 -1
  20. package/dist/assets/VentanaLienzo.css +1 -0
  21. package/dist/auth/hooks/useFinalizarSesion.js +7 -7
  22. package/dist/{index-B-HWDQSx.js → index-Bk5C3cP1.js} +1 -1
  23. package/dist/{index-PYPwtOs4.js → index-DAgOFOds.js} +18 -14
  24. package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
  25. package/dist/lib/shared/ventana-lienzo/VentanaLienzo.d.ts +3 -0
  26. package/dist/lib/shared.d.ts +1 -1
  27. package/dist/lib/tables/tabla-registros/TablaRegistros.d.ts +2 -2
  28. package/dist/lib/tables/tabla-registros/{encabezado → encabezado-tabla}/EncabezadoTabla.d.ts +3 -4
  29. package/dist/lib/tables.d.ts +0 -1
  30. package/dist/lib/ui/encabezado/Encabezado.d.ts +2 -2
  31. package/dist/lib/ui/icono-tooltip/IconoTooltip.d.ts +18 -0
  32. package/dist/lib/ui/{tarjeta-listado/TarjetaListado.d.ts → items-modal/ItemsModal.d.ts} +4 -4
  33. package/dist/lib/ui/paginador/Paginador.d.ts +1 -1
  34. package/dist/lib/ui/subtitulo/Subtitulo.d.ts +3 -2
  35. package/dist/lib/ui/tarjeta/Tarjeta.d.ts +1 -3
  36. package/dist/lib/ui/tarjeta/nuevo-elemento/NuevoElemento.d.ts +9 -0
  37. package/dist/lib/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.d.ts +1 -1
  38. package/dist/lib/ui.d.ts +4 -3
  39. package/dist/shared/breadcrumb/Breadcrumb.js +79 -0
  40. package/dist/shared/menu-lateral/MenuLateral.js +127 -127
  41. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +1 -1
  42. package/dist/shared/{ventana-tabs → tab-ventana}/TabVentana.js +2 -2
  43. package/dist/shared/ventana-lienzo/VentanaLienzo.js +17 -11
  44. package/dist/shared/ventana-tabs/VentanaTabs.js +23 -23
  45. package/dist/shared.js +1 -1
  46. package/dist/tables/tabla-registros/TablaRegistros.js +5485 -3869
  47. package/dist/tables/tabla-registros/buscador/Buscador.js +4 -4
  48. package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +32 -0
  49. package/dist/tables/tabla-registros/tabla/Tabla.js +5 -5
  50. package/dist/tables.js +0 -2
  51. package/dist/{tables/tabla-registros → ui}/contenido-modal/ContenidoModal.js +2 -2
  52. package/dist/{tables/tabla-registros → ui}/contenido-modal/ContenidoModalv0.1.js +2 -2
  53. package/dist/ui/encabezado/Encabezado.js +1 -1
  54. package/dist/ui/icono-tooltip/IconoTooltip.js +95 -0
  55. package/dist/ui/items-modal/ItemsModal.js +40 -0
  56. package/dist/ui/logo/Logo.js +5 -9
  57. package/dist/ui/paginador/Paginador.js +16 -19
  58. package/dist/ui/subtitulo/Subtitulo.js +14 -24
  59. package/dist/ui/tarjeta/Tarjeta.js +28 -65
  60. package/dist/ui/tarjeta/{tarjeta-agregar/TarjetaAgregar.js → nuevo-elemento/NuevoElemento.js} +9 -8
  61. package/dist/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js +11 -5
  62. package/dist/ui/tarjeta-info/TarjetaInfo.js +1 -1
  63. package/dist/ui/tarjeta-lectura/TarjetaLectura.js +26 -27
  64. package/dist/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +10 -6
  65. package/dist/ui.js +20 -18
  66. package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
  67. package/dist/utils/components/ProtectedRoute.js +6 -6
  68. package/dist/utils/components/UserRoute.js +4 -4
  69. package/dist/{warning-b8Ghk8WQ.js → warning-BMiIoRBk.js} +1 -1
  70. package/package.json +15 -16
  71. package/dist/Bootstrap-alDYHlwa.js +0 -19871
  72. package/dist/Button-Gn1tKaoW.js +0 -106
  73. package/dist/TabContext-BvNFEruk.js +0 -138
  74. package/dist/ThemeProvider-DwZMEupk.js +0 -83
  75. package/dist/lib/tables/tabla-registros/icono-tabla/IconoTabla.d.ts +0 -14
  76. package/dist/lib/ui/tarjeta/tarjeta-agregar/TarjetaAgregar.d.ts +0 -9
  77. package/dist/logo_escudo_blanco-DaOI8SGq.js +0 -4
  78. package/dist/tables/tabla-registros/encabezado/EncabezadoTabla.js +0 -30
  79. package/dist/tables/tabla-registros/icono-tabla/IconoTabla.js +0 -68
  80. package/dist/ui/tarjeta-listado/TarjetaListado.js +0 -40
  81. /package/dist/assets/{IconoTabla.css → IconoTooltip.css} +0 -0
  82. /package/dist/assets/{TarjetaListado.css → ItemsModal.css} +0 -0
  83. /package/dist/lib/shared/{ventana-tabs → tab-ventana}/TabVentana.d.ts +0 -0
  84. /package/dist/lib/{tables/tabla-registros → ui}/contenido-modal/ContenidoModal.d.ts +0 -0
  85. /package/dist/lib/{tables/tabla-registros → ui}/contenido-modal/ContenidoModalv0.1.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,69 @@
1
+ import * as l from "react";
2
+ import { useContext as c } from "react";
3
+ import "react/jsx-runtime";
4
+ function m(r) {
5
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
+ }
7
+ var i = { exports: {} };
8
+ /*!
9
+ Copyright (c) 2018 Jed Watson.
10
+ Licensed under the MIT License (MIT), see
11
+ http://jedwatson.github.io/classnames
12
+ */
13
+ var u;
14
+ function x() {
15
+ return u || (u = 1, function(r) {
16
+ (function() {
17
+ var o = {}.hasOwnProperty;
18
+ function s() {
19
+ for (var t = "", e = 0; e < arguments.length; e++) {
20
+ var n = arguments[e];
21
+ n && (t = a(t, p(n)));
22
+ }
23
+ return t;
24
+ }
25
+ function p(t) {
26
+ if (typeof t == "string" || typeof t == "number")
27
+ return t;
28
+ if (typeof t != "object")
29
+ return "";
30
+ if (Array.isArray(t))
31
+ return s.apply(null, t);
32
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
33
+ return t.toString();
34
+ var e = "";
35
+ for (var n in t)
36
+ o.call(t, n) && t[n] && (e = a(e, n));
37
+ return e;
38
+ }
39
+ function a(t, e) {
40
+ return e ? t ? t + " " + e : t + e : t;
41
+ }
42
+ r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
43
+ })();
44
+ }(i)), i.exports;
45
+ }
46
+ var d = x();
47
+ const A = /* @__PURE__ */ m(d), y = ["xxl", "xl", "lg", "md", "sm", "xs"], v = "xs", f = /* @__PURE__ */ l.createContext({
48
+ prefixes: {},
49
+ breakpoints: y,
50
+ minBreakpoint: v
51
+ });
52
+ function E(r, o) {
53
+ const {
54
+ prefixes: s
55
+ } = c(f);
56
+ return r || s[o] || o;
57
+ }
58
+ function N() {
59
+ const {
60
+ dir: r
61
+ } = c(f);
62
+ return r === "rtl";
63
+ }
64
+ export {
65
+ N as a,
66
+ A as c,
67
+ m as g,
68
+ E as u
69
+ };
@@ -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
  };