react-ecosistema-unp 0.9.2 → 0.9.4
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/{Bootstrap-yLMFDuQq.js → TabPane-Q7bzCwAs.js} +1 -1
- package/dist/logo_escudo_blanco-DaOI8SGq.js +4 -0
- package/dist/shared/menu-lateral/MenuLateral.js +127 -127
- package/dist/shared/tab-ventana/TabVentana.js +13 -12
- package/dist/shared/ventana-tabs/VentanaTabs.js +43 -42
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +4 -3
- package/dist/ui/logo/Logo.js +9 -5
- package/dist/ui/paginador/Paginador.js +33 -26
- package/dist/ui/tarjeta/Tarjeta.js +9 -8
- package/dist/ui/tarjeta/nuevo-elemento/NuevoElemento.js +5 -4
- package/dist/ui/tarjeta-lectura/TarjetaLectura.js +16 -15
- package/package.json +1 -1
|
@@ -3,11 +3,12 @@ import * as b from "react";
|
|
|
3
3
|
import T, { useRef as O, useContext as S, useEffect as M } from "react";
|
|
4
4
|
import { MenuLateral as H } from "../menu-lateral/MenuLateral.js";
|
|
5
5
|
import { IconosSistema as F } from "../iconos-sistema/IconosSistema.js";
|
|
6
|
-
import
|
|
7
|
-
import { a as
|
|
6
|
+
import '../../assets/Bootstrap.css';/* empty css */
|
|
7
|
+
import { a as W, u as Y, b as z, d as G, c as J, q as Q, e as B, f as D, g as X } from "../../NotificacionUsuario-xD2pyELE.js";
|
|
8
|
+
import { u as Z, T as ee, g as te, a as ne, b as ae } from "../../TabPane-Q7bzCwAs.js";
|
|
8
9
|
import { u as L, c as k } from "../../ThemeProvider-CFCmmLJC.js";
|
|
9
|
-
import { S as I, T as re, m as
|
|
10
|
-
import { c as
|
|
10
|
+
import { S as I, T as re, m as oe } from "../../TabContext-CdjYJzMB.js";
|
|
11
|
+
import { c as se } from "../../CardHeaderContext-DVw0yHuy.js";
|
|
11
12
|
import { B as le } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
12
13
|
function P(n, e) {
|
|
13
14
|
let a = 0;
|
|
@@ -30,22 +31,22 @@ function de(n, e) {
|
|
|
30
31
|
return a;
|
|
31
32
|
}
|
|
32
33
|
const R = () => {
|
|
33
|
-
}, A =
|
|
34
|
+
}, A = G("event-key"), V = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
34
35
|
let {
|
|
35
36
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
36
37
|
as: a = "div",
|
|
37
38
|
onSelect: t,
|
|
38
|
-
activeKey:
|
|
39
|
+
activeKey: o,
|
|
39
40
|
role: c,
|
|
40
41
|
onKeyDown: u
|
|
41
|
-
} = n,
|
|
42
|
-
const N =
|
|
42
|
+
} = n, s = de(n, ce);
|
|
43
|
+
const N = Y(), m = O(!1), y = S(I), l = S(re);
|
|
43
44
|
let v, x;
|
|
44
|
-
l && (c = c || "tablist",
|
|
45
|
+
l && (c = c || "tablist", o = l.activeKey, v = l.getControlledId, x = l.getControllerId);
|
|
45
46
|
const f = O(null), p = (i) => {
|
|
46
47
|
const d = f.current;
|
|
47
48
|
if (!d) return null;
|
|
48
|
-
const K =
|
|
49
|
+
const K = Q(d, `[${A}]:not([aria-disabled=true])`), E = d.querySelector("[aria-selected=true]");
|
|
49
50
|
if (!E || E !== document.activeElement) return null;
|
|
50
51
|
const w = K.indexOf(E);
|
|
51
52
|
if (w === -1) return null;
|
|
@@ -69,7 +70,7 @@ const R = () => {
|
|
|
69
70
|
default:
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
d && (i.preventDefault(), h(d.dataset[
|
|
73
|
+
d && (i.preventDefault(), h(d.dataset[J("EventKey")] || null, i), m.current = !0, N());
|
|
73
74
|
};
|
|
74
75
|
M(() => {
|
|
75
76
|
if (f.current && m.current) {
|
|
@@ -78,18 +79,18 @@ const R = () => {
|
|
|
78
79
|
}
|
|
79
80
|
m.current = !1;
|
|
80
81
|
});
|
|
81
|
-
const U =
|
|
82
|
+
const U = Z(e, f);
|
|
82
83
|
return /* @__PURE__ */ r(I.Provider, {
|
|
83
84
|
value: h,
|
|
84
|
-
children: /* @__PURE__ */ r(
|
|
85
|
+
children: /* @__PURE__ */ r(z.Provider, {
|
|
85
86
|
value: {
|
|
86
87
|
role: c,
|
|
87
88
|
// used by NavLink to determine it's role
|
|
88
|
-
activeKey:
|
|
89
|
+
activeKey: oe(o),
|
|
89
90
|
getControlledId: v || R,
|
|
90
91
|
getControllerId: x || R
|
|
91
92
|
},
|
|
92
|
-
children: /* @__PURE__ */ r(a, Object.assign({},
|
|
93
|
+
children: /* @__PURE__ */ r(a, Object.assign({}, s, {
|
|
93
94
|
onKeyDown: C,
|
|
94
95
|
ref: U,
|
|
95
96
|
role: c
|
|
@@ -99,14 +100,14 @@ const R = () => {
|
|
|
99
100
|
});
|
|
100
101
|
V.displayName = "Nav";
|
|
101
102
|
const ue = Object.assign(V, {
|
|
102
|
-
Item:
|
|
103
|
+
Item: W
|
|
103
104
|
}), $ = /* @__PURE__ */ b.forwardRef(({
|
|
104
105
|
className: n,
|
|
105
106
|
bsPrefix: e,
|
|
106
107
|
as: a = "div",
|
|
107
108
|
...t
|
|
108
|
-
},
|
|
109
|
-
ref:
|
|
109
|
+
}, o) => (e = L(e, "nav-item"), /* @__PURE__ */ r(a, {
|
|
110
|
+
ref: o,
|
|
110
111
|
className: k(n, e),
|
|
111
112
|
...t
|
|
112
113
|
})));
|
|
@@ -115,10 +116,10 @@ const _ = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
115
116
|
const {
|
|
116
117
|
as: a = "div",
|
|
117
118
|
bsPrefix: t,
|
|
118
|
-
variant:
|
|
119
|
+
variant: o,
|
|
119
120
|
fill: c = !1,
|
|
120
121
|
justify: u = !1,
|
|
121
|
-
navbar:
|
|
122
|
+
navbar: s,
|
|
122
123
|
navbarScroll: N,
|
|
123
124
|
className: m,
|
|
124
125
|
activeKey: y,
|
|
@@ -127,8 +128,8 @@ const _ = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
127
128
|
activeKey: "onSelect"
|
|
128
129
|
}), v = L(t, "nav");
|
|
129
130
|
let x, f, p = !1;
|
|
130
|
-
const h = S(
|
|
131
|
-
return h ? (x = h.bsPrefix, p =
|
|
131
|
+
const h = S(X), C = S(se);
|
|
132
|
+
return h ? (x = h.bsPrefix, p = s ?? !0) : C && ({
|
|
132
133
|
cardHeaderBsPrefix: f
|
|
133
134
|
} = C), /* @__PURE__ */ r(ue, {
|
|
134
135
|
as: a,
|
|
@@ -138,8 +139,8 @@ const _ = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
138
139
|
[v]: !p,
|
|
139
140
|
[`${x}-nav`]: p,
|
|
140
141
|
[`${x}-nav-scroll`]: p && N,
|
|
141
|
-
[`${f}-${
|
|
142
|
-
[`${v}-${
|
|
142
|
+
[`${f}-${o}`]: !!f,
|
|
143
|
+
[`${v}-${o}`]: !!o,
|
|
143
144
|
[`${v}-fill`]: c,
|
|
144
145
|
[`${v}-justified`]: u
|
|
145
146
|
}),
|
|
@@ -162,7 +163,7 @@ function ve(n) {
|
|
|
162
163
|
title: e,
|
|
163
164
|
eventKey: a,
|
|
164
165
|
disabled: t,
|
|
165
|
-
tabClassName:
|
|
166
|
+
tabClassName: o,
|
|
166
167
|
tabAttrs: c,
|
|
167
168
|
id: u
|
|
168
169
|
} = n.props;
|
|
@@ -175,7 +176,7 @@ function ve(n) {
|
|
|
175
176
|
eventKey: a,
|
|
176
177
|
disabled: t,
|
|
177
178
|
id: u,
|
|
178
|
-
className:
|
|
179
|
+
className: o,
|
|
179
180
|
...c,
|
|
180
181
|
children: e
|
|
181
182
|
})
|
|
@@ -186,21 +187,21 @@ const q = (n) => {
|
|
|
186
187
|
id: e,
|
|
187
188
|
onSelect: a,
|
|
188
189
|
transition: t,
|
|
189
|
-
mountOnEnter:
|
|
190
|
+
mountOnEnter: o = !1,
|
|
190
191
|
unmountOnExit: c = !1,
|
|
191
192
|
variant: u = "tabs",
|
|
192
|
-
children:
|
|
193
|
-
activeKey: N = me(
|
|
193
|
+
children: s,
|
|
194
|
+
activeKey: N = me(s),
|
|
194
195
|
...m
|
|
195
196
|
} = D(n, {
|
|
196
197
|
activeKey: "onSelect"
|
|
197
198
|
});
|
|
198
|
-
return /* @__PURE__ */ j(
|
|
199
|
+
return /* @__PURE__ */ j(ee, {
|
|
199
200
|
id: e,
|
|
200
201
|
activeKey: N,
|
|
201
202
|
onSelect: a,
|
|
202
|
-
transition:
|
|
203
|
-
mountOnEnter:
|
|
203
|
+
transition: te(t),
|
|
204
|
+
mountOnEnter: o,
|
|
204
205
|
unmountOnExit: c,
|
|
205
206
|
children: [/* @__PURE__ */ r(fe, {
|
|
206
207
|
id: e,
|
|
@@ -208,13 +209,13 @@ const q = (n) => {
|
|
|
208
209
|
role: "tablist",
|
|
209
210
|
as: "ul",
|
|
210
211
|
variant: u,
|
|
211
|
-
children: P(
|
|
212
|
-
}), /* @__PURE__ */ r(
|
|
213
|
-
children: P(
|
|
212
|
+
children: P(s, ve)
|
|
213
|
+
}), /* @__PURE__ */ r(ne, {
|
|
214
|
+
children: P(s, (y) => {
|
|
214
215
|
const l = {
|
|
215
216
|
...y.props
|
|
216
217
|
};
|
|
217
|
-
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(
|
|
218
|
+
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(ae, {
|
|
218
219
|
...l
|
|
219
220
|
});
|
|
220
221
|
})
|
|
@@ -222,8 +223,8 @@ const q = (n) => {
|
|
|
222
223
|
});
|
|
223
224
|
};
|
|
224
225
|
q.displayName = "Tabs";
|
|
225
|
-
const
|
|
226
|
-
const [a, t] = T.useState(!1), [
|
|
226
|
+
const Ee = ({ children: n, extraInput: e }) => {
|
|
227
|
+
const [a, t] = T.useState(!1), [o, c] = T.useState(void 0);
|
|
227
228
|
return /* @__PURE__ */ j(le, { children: [
|
|
228
229
|
/* @__PURE__ */ r(F, { elements: e }),
|
|
229
230
|
/* @__PURE__ */ r(H, { onToggle: () => {
|
|
@@ -233,13 +234,13 @@ const Se = ({ children: n, extraInput: e }) => {
|
|
|
233
234
|
q,
|
|
234
235
|
{
|
|
235
236
|
id: "controlled-tab",
|
|
236
|
-
activeKey:
|
|
237
|
-
onSelect: (
|
|
238
|
-
children: T.Children.map(n, (
|
|
237
|
+
activeKey: o,
|
|
238
|
+
onSelect: (s) => c(s !== null ? s : void 0),
|
|
239
|
+
children: T.Children.map(n, (s) => T.isValidElement(s) ? s : null)
|
|
239
240
|
}
|
|
240
241
|
) }) })
|
|
241
242
|
] });
|
|
242
243
|
};
|
|
243
244
|
export {
|
|
244
|
-
|
|
245
|
+
Ee as VentanaTabs
|
|
245
246
|
};
|
|
@@ -2,8 +2,9 @@ import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { Encabezado as a } from "../../../ui/encabezado/Encabezado.js";
|
|
3
3
|
import "../../../ui/subtitulo/Subtitulo.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import '../../../assets/IconoTooltip.css';import '../../../assets/TarjetaInfo.css';import '../../../assets/ItemsModal.css';import '../../../assets/SeccionTarjetaLectura.css';import '../../../assets/TarjetaLectura.css';import '../../../assets/Paginador.css';import '../../../assets/ContenedorTarjeta.css';import '../../../assets/Tarjeta.css';import '../../../assets/ContenidoModal.css';/* empty css */
|
|
5
|
+
import '../../../assets/IconoTooltip.css';import '../../../assets/TarjetaInfo.css';import '../../../assets/ItemsModal.css';import '../../../assets/SeccionTarjetaLectura.css';import '../../../assets/TarjetaLectura.css';import '../../../assets/Paginador.css';import '../../../assets/ContenedorTarjeta.css';import '../../../assets/Bootstrap.css';import '../../../assets/Tarjeta.css';import '../../../assets/ContenidoModal.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
7
8
|
import "../../../ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
8
9
|
/* empty css */
|
|
9
10
|
/* empty css */
|
|
@@ -14,7 +15,7 @@ import "../../../ui/logo/Logo.js";
|
|
|
14
15
|
/* empty css */
|
|
15
16
|
/* empty css */
|
|
16
17
|
import { BusquedaInput as e } from "../buscador/Buscador.js";
|
|
17
|
-
const
|
|
18
|
+
const B = ({
|
|
18
19
|
title: m,
|
|
19
20
|
subtitle: t,
|
|
20
21
|
data: p,
|
|
@@ -28,5 +29,5 @@ const w = ({
|
|
|
28
29
|
] })
|
|
29
30
|
] });
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
B as EncabezadoTabla
|
|
32
33
|
};
|