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,78 @@
1
+ import * as p from "react";
2
+ import { jsx as b } from "react/jsx-runtime";
3
+ const y = ["as", "disabled"];
4
+ function P(n, t) {
5
+ if (n == null) return {};
6
+ var o = {};
7
+ for (var u in n) if ({}.hasOwnProperty.call(n, u)) {
8
+ if (t.indexOf(u) >= 0) continue;
9
+ o[u] = n[u];
10
+ }
11
+ return o;
12
+ }
13
+ function x(n) {
14
+ return !n || n.trim() === "#";
15
+ }
16
+ function j({
17
+ tagName: n,
18
+ disabled: t,
19
+ href: o,
20
+ target: u,
21
+ rel: e,
22
+ role: r,
23
+ onClick: s,
24
+ tabIndex: a = 0,
25
+ type: d
26
+ }) {
27
+ n || (o != null || u != null || e != null ? n = "a" : n = "button");
28
+ const f = {
29
+ tagName: n
30
+ };
31
+ if (n === "button")
32
+ return [{
33
+ type: d || "button",
34
+ disabled: t
35
+ }, f];
36
+ const l = (i) => {
37
+ if ((t || n === "a" && x(o)) && i.preventDefault(), t) {
38
+ i.stopPropagation();
39
+ return;
40
+ }
41
+ s == null || s(i);
42
+ }, c = (i) => {
43
+ i.key === " " && (i.preventDefault(), l(i));
44
+ };
45
+ return n === "a" && (o || (o = "#"), t && (o = void 0)), [{
46
+ role: r ?? "button",
47
+ // explicitly undefined so that it overrides the props disabled in a spread
48
+ // e.g. <Tag {...props} {...hookProps} />
49
+ disabled: void 0,
50
+ tabIndex: t ? void 0 : a,
51
+ href: o,
52
+ target: n === "a" ? u : void 0,
53
+ "aria-disabled": t || void 0,
54
+ rel: n === "a" ? e : void 0,
55
+ onClick: l,
56
+ onKeyDown: c
57
+ }, f];
58
+ }
59
+ const w = /* @__PURE__ */ p.forwardRef((n, t) => {
60
+ let {
61
+ as: o,
62
+ disabled: u
63
+ } = n, e = P(n, y);
64
+ const [r, {
65
+ tagName: s
66
+ }] = j(Object.assign({
67
+ tagName: o,
68
+ disabled: u
69
+ }, e));
70
+ return /* @__PURE__ */ b(s, Object.assign({}, e, r, {
71
+ ref: t
72
+ }));
73
+ });
74
+ w.displayName = "Button";
75
+ export {
76
+ w as B,
77
+ j as u
78
+ };
@@ -0,0 +1,33 @@
1
+ import { u as i, c as l } from "./ThemeProvider-DwZMEupk.js";
2
+ import * as B from "react";
3
+ import { u as N } from "./Button-DD8y8HBa.js";
4
+ import { jsx as x } from "react/jsx-runtime";
5
+ const $ = /* @__PURE__ */ B.forwardRef(({
6
+ as: r,
7
+ bsPrefix: m,
8
+ variant: s = "primary",
9
+ size: e,
10
+ active: n = !1,
11
+ disabled: t = !1,
12
+ className: f,
13
+ ...o
14
+ }, c) => {
15
+ const a = i(m, "btn"), [p, {
16
+ tagName: u
17
+ }] = N({
18
+ tagName: r,
19
+ disabled: t,
20
+ ...o
21
+ });
22
+ return /* @__PURE__ */ x(u, {
23
+ ...p,
24
+ ...o,
25
+ ref: c,
26
+ disabled: t,
27
+ className: l(f, a, n && "active", s && `${a}-${s}`, e && `${a}-${e}`, o.href && t && "disabled")
28
+ });
29
+ });
30
+ $.displayName = "Button";
31
+ export {
32
+ $ as B
33
+ };