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.
- 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-DRuxRQ6q.js → NotificacionUsuario-BQ655oML.js} +370 -400
- package/dist/TabContext-CdjYJzMB.js +125 -0
- package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +13 -13
- package/dist/assets/BarraAccesibilidad.css +1 -1
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/TabVentana.css +1 -1
- package/dist/auth/hooks/useFinalizarSesion.js +7 -7
- package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
- package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
- package/dist/shared/menu-lateral/MenuLateral.js +7 -7
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +1 -1
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +18 -12
- package/dist/shared/ventana-tabs/TabVentana.js +1 -1
- package/dist/shared/ventana-tabs/VentanaTabs.js +22 -22
- package/dist/ui/paginador/Paginador.js +1 -1
- package/dist/ui/tarjeta/Tarjeta.js +1 -1
- package/dist/ui/tarjeta/tarjeta-agregar/TarjetaAgregar.js +1 -1
- package/dist/ui/tarjeta-lectura/TarjetaLectura.js +1 -1
- package/dist/ui/tarjeta-listado/TarjetaListado.js +6 -6
- 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/Button-Gn1tKaoW.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { u as y, c as P } from "./ThemeProvider-DwZMEupk.js";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
-
const x = ["as", "disabled"];
|
|
5
|
-
function B(n, o) {
|
|
6
|
-
if (n == null) return {};
|
|
7
|
-
var t = {};
|
|
8
|
-
for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
|
|
9
|
-
if (o.indexOf(e) >= 0) continue;
|
|
10
|
-
t[e] = n[e];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
}
|
|
14
|
-
function w(n) {
|
|
15
|
-
return !n || n.trim() === "#";
|
|
16
|
-
}
|
|
17
|
-
function b({
|
|
18
|
-
tagName: n,
|
|
19
|
-
disabled: o,
|
|
20
|
-
href: t,
|
|
21
|
-
target: e,
|
|
22
|
-
rel: s,
|
|
23
|
-
role: u,
|
|
24
|
-
onClick: i,
|
|
25
|
-
tabIndex: f = 0,
|
|
26
|
-
type: c
|
|
27
|
-
}) {
|
|
28
|
-
n || (t != null || e != null || s != null ? n = "a" : n = "button");
|
|
29
|
-
const a = {
|
|
30
|
-
tagName: n
|
|
31
|
-
};
|
|
32
|
-
if (n === "button")
|
|
33
|
-
return [{
|
|
34
|
-
type: c || "button",
|
|
35
|
-
disabled: o
|
|
36
|
-
}, a];
|
|
37
|
-
const l = (r) => {
|
|
38
|
-
if ((o || n === "a" && w(t)) && r.preventDefault(), o) {
|
|
39
|
-
r.stopPropagation();
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
i == null || i(r);
|
|
43
|
-
}, p = (r) => {
|
|
44
|
-
r.key === " " && (r.preventDefault(), l(r));
|
|
45
|
-
};
|
|
46
|
-
return n === "a" && (t || (t = "#"), o && (t = void 0)), [{
|
|
47
|
-
role: u ?? "button",
|
|
48
|
-
// explicitly undefined so that it overrides the props disabled in a spread
|
|
49
|
-
// e.g. <Tag {...props} {...hookProps} />
|
|
50
|
-
disabled: void 0,
|
|
51
|
-
tabIndex: o ? void 0 : f,
|
|
52
|
-
href: t,
|
|
53
|
-
target: n === "a" ? e : void 0,
|
|
54
|
-
"aria-disabled": o || void 0,
|
|
55
|
-
rel: n === "a" ? s : void 0,
|
|
56
|
-
onClick: l,
|
|
57
|
-
onKeyDown: p
|
|
58
|
-
}, a];
|
|
59
|
-
}
|
|
60
|
-
const $ = /* @__PURE__ */ d.forwardRef((n, o) => {
|
|
61
|
-
let {
|
|
62
|
-
as: t,
|
|
63
|
-
disabled: e
|
|
64
|
-
} = n, s = B(n, x);
|
|
65
|
-
const [u, {
|
|
66
|
-
tagName: i
|
|
67
|
-
}] = b(Object.assign({
|
|
68
|
-
tagName: t,
|
|
69
|
-
disabled: e
|
|
70
|
-
}, s));
|
|
71
|
-
return /* @__PURE__ */ m(i, Object.assign({}, s, u, {
|
|
72
|
-
ref: o
|
|
73
|
-
}));
|
|
74
|
-
});
|
|
75
|
-
$.displayName = "Button";
|
|
76
|
-
const j = /* @__PURE__ */ d.forwardRef(({
|
|
77
|
-
as: n,
|
|
78
|
-
bsPrefix: o,
|
|
79
|
-
variant: t = "primary",
|
|
80
|
-
size: e,
|
|
81
|
-
active: s = !1,
|
|
82
|
-
disabled: u = !1,
|
|
83
|
-
className: i,
|
|
84
|
-
...f
|
|
85
|
-
}, c) => {
|
|
86
|
-
const a = y(o, "btn"), [l, {
|
|
87
|
-
tagName: p
|
|
88
|
-
}] = b({
|
|
89
|
-
tagName: n,
|
|
90
|
-
disabled: u,
|
|
91
|
-
...f
|
|
92
|
-
});
|
|
93
|
-
return /* @__PURE__ */ m(p, {
|
|
94
|
-
...l,
|
|
95
|
-
...f,
|
|
96
|
-
ref: c,
|
|
97
|
-
disabled: u,
|
|
98
|
-
className: P(i, a, s && "active", t && `${a}-${t}`, e && `${a}-${e}`, f.href && u && "disabled")
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
j.displayName = "Button";
|
|
102
|
-
export {
|
|
103
|
-
j as B,
|
|
104
|
-
$ as a,
|
|
105
|
-
b as u
|
|
106
|
-
};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as x from "react";
|
|
2
|
-
import a, { useMemo as P, useRef as m, useEffect as k, useCallback as S, useState as y, useContext as b } from "react";
|
|
3
|
-
function H(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 F(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 z(e, t, r, n) {
|
|
30
|
-
if (n && typeof n != "boolean" && !v) {
|
|
31
|
-
var c = n.once, o = n.capture, u = r;
|
|
32
|
-
!v && c && (u = r.__once || function i(f) {
|
|
33
|
-
this.removeEventListener(t, i, o), r.call(this, f);
|
|
34
|
-
}, r.__once = u), e.addEventListener(t, u, $ ? n : o);
|
|
35
|
-
}
|
|
36
|
-
e.addEventListener(t, r, n);
|
|
37
|
-
}
|
|
38
|
-
function E(e, t, r, n) {
|
|
39
|
-
var c = n && typeof n != "boolean" ? n.capture : n;
|
|
40
|
-
e.removeEventListener(t, r, c), r.__once && e.removeEventListener(t, r.__once, c);
|
|
41
|
-
}
|
|
42
|
-
function B(e, t, r, n) {
|
|
43
|
-
return z(e, t, r, n), function() {
|
|
44
|
-
E(e, t, r, n);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const w = (e) => !e || typeof e == "function" ? e : (t) => {
|
|
48
|
-
e.current = t;
|
|
49
|
-
};
|
|
50
|
-
function L(e, t) {
|
|
51
|
-
const r = w(e), n = w(t);
|
|
52
|
-
return (c) => {
|
|
53
|
-
r && r(c), n && n(c);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function R(e, t) {
|
|
57
|
-
return P(() => L(e, t), [e, t]);
|
|
58
|
-
}
|
|
59
|
-
function j(e) {
|
|
60
|
-
const t = m(e);
|
|
61
|
-
return k(() => {
|
|
62
|
-
t.current = e;
|
|
63
|
-
}, [e]), t;
|
|
64
|
-
}
|
|
65
|
-
function U(e) {
|
|
66
|
-
const t = j(e);
|
|
67
|
-
return S(function(...r) {
|
|
68
|
-
return t.current && t.current(...r);
|
|
69
|
-
}, [t]);
|
|
70
|
-
}
|
|
71
|
-
function Y(e, t, r) {
|
|
72
|
-
const n = m(e !== void 0), [c, o] = y(t), u = e !== void 0, i = n.current;
|
|
73
|
-
return n.current = u, !u && i && c !== t && o(t), [u ? e : c, S((...f) => {
|
|
74
|
-
const [p, ...C] = f;
|
|
75
|
-
let M = r == null ? void 0 : r(p, ...C);
|
|
76
|
-
return o(p), M;
|
|
77
|
-
}, [r])];
|
|
78
|
-
}
|
|
79
|
-
const s = {
|
|
80
|
-
prefix: String(Math.round(Math.random() * 1e10)),
|
|
81
|
-
current: 0
|
|
82
|
-
}, g = /* @__PURE__ */ a.createContext(s), V = /* @__PURE__ */ a.createContext(!1);
|
|
83
|
-
let q = !!(typeof window < "u" && window.document && window.document.createElement), l = /* @__PURE__ */ new WeakMap();
|
|
84
|
-
function D(e = !1) {
|
|
85
|
-
let t = b(g), r = m(null);
|
|
86
|
-
if (r.current === null && !e) {
|
|
87
|
-
var n, c;
|
|
88
|
-
let o = (c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || c === void 0 || (n = c.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
89
|
-
if (o) {
|
|
90
|
-
let u = l.get(o);
|
|
91
|
-
u == null ? l.set(o, {
|
|
92
|
-
id: t.current,
|
|
93
|
-
state: o.memoizedState
|
|
94
|
-
}) : o.memoizedState !== u.state && (t.current = u.id, l.delete(o));
|
|
95
|
-
}
|
|
96
|
-
r.current = ++t.current;
|
|
97
|
-
}
|
|
98
|
-
return r.current;
|
|
99
|
-
}
|
|
100
|
-
function G(e) {
|
|
101
|
-
let t = b(g);
|
|
102
|
-
t === s && !q && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
103
|
-
let r = D(!!e), n = t === s && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
104
|
-
return e || `${n}-${r}`;
|
|
105
|
-
}
|
|
106
|
-
function J(e) {
|
|
107
|
-
let t = a.useId(), [r] = y(X()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${s.prefix}`;
|
|
108
|
-
return e || `${n}-${t}`;
|
|
109
|
-
}
|
|
110
|
-
const A = typeof a.useId == "function" ? J : G;
|
|
111
|
-
function K() {
|
|
112
|
-
return !1;
|
|
113
|
-
}
|
|
114
|
-
function Q() {
|
|
115
|
-
return !0;
|
|
116
|
-
}
|
|
117
|
-
function W(e) {
|
|
118
|
-
return () => {
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function X() {
|
|
122
|
-
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(W, K, Q) : b(V);
|
|
123
|
-
}
|
|
124
|
-
const I = /* @__PURE__ */ x.createContext(null), O = (e, t = null) => e != null ? String(e) : t || null, T = /* @__PURE__ */ x.createContext(null);
|
|
125
|
-
export {
|
|
126
|
-
A as $,
|
|
127
|
-
I as S,
|
|
128
|
-
T,
|
|
129
|
-
H as _,
|
|
130
|
-
U as a,
|
|
131
|
-
Y as b,
|
|
132
|
-
h as c,
|
|
133
|
-
z as d,
|
|
134
|
-
B as l,
|
|
135
|
-
O as m,
|
|
136
|
-
F as o,
|
|
137
|
-
R as u
|
|
138
|
-
};
|