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
|
@@ -1,52 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import '../../assets/Paginador.css';/* empty css */
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as c, Fragment as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as p, useEffect as h } from "react";
|
|
3
|
+
import '../../assets/Bootstrap.css';import '../../assets/Paginador.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { C as g } from "../../Card-BXqmurzN.js";
|
|
6
|
+
import { B as o } from "../../Button-DMwpnJlD.js";
|
|
7
|
+
const j = ({ stepContent: t, onSubmit: s, canJump: d = !0 }) => {
|
|
8
|
+
const [r, n] = u(0), l = p(null);
|
|
8
9
|
return h(() => {
|
|
9
|
-
|
|
10
|
+
l.current && r > 0 && l.current.scrollIntoView({
|
|
10
11
|
behavior: "smooth"
|
|
11
12
|
});
|
|
12
|
-
}, [r]), /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
13
|
+
}, [r]), /* @__PURE__ */ c(m, { children: [
|
|
14
|
+
/* @__PURE__ */ i(g, { ref: l, className: "border-0 paginador-card", children: /* @__PURE__ */ i("ul", { id: "progressbar", children: t.map((a, e) => /* @__PURE__ */ c(
|
|
14
15
|
"li",
|
|
15
16
|
{
|
|
16
|
-
className:
|
|
17
|
+
className: e <= r ? "active" : "",
|
|
17
18
|
onClick: () => {
|
|
18
|
-
|
|
19
|
+
d ? d && n(e) : (e === r + 1 || e < r) && n(e);
|
|
19
20
|
},
|
|
20
21
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ i("div", { className: `step ${e <= r ? "active" : ""}`, children: /* @__PURE__ */ i(a.icon, { size: 18 }) }),
|
|
23
|
+
/* @__PURE__ */ i("strong", { children: a.label })
|
|
23
24
|
]
|
|
24
25
|
},
|
|
25
|
-
|
|
26
|
+
e
|
|
26
27
|
)) }) }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
r > 0 && /* @__PURE__ */
|
|
30
|
-
|
|
28
|
+
/* @__PURE__ */ i("div", { className: "paginador-content", children: t[r].content }),
|
|
29
|
+
/* @__PURE__ */ c("div", { className: "paginador-buttons", style: { display: "flex", justifyContent: "end" }, children: [
|
|
30
|
+
r > 0 && /* @__PURE__ */ i(
|
|
31
|
+
o,
|
|
31
32
|
{
|
|
32
33
|
variant: "unp_secondary",
|
|
33
|
-
onClick: () =>
|
|
34
|
+
onClick: () => n(r - 1),
|
|
34
35
|
children: "Anterior"
|
|
35
36
|
}
|
|
36
37
|
),
|
|
37
|
-
r <
|
|
38
|
-
|
|
38
|
+
r < t.length - 1 && /* @__PURE__ */ i(
|
|
39
|
+
o,
|
|
39
40
|
{
|
|
40
41
|
variant: "unp_primary",
|
|
41
42
|
style: { justifySelf: "end", marginLeft: "1rem" },
|
|
42
43
|
onClick: () => {
|
|
43
|
-
a
|
|
44
|
+
const a = t[r].handleNextClick;
|
|
45
|
+
let e = !0;
|
|
46
|
+
if (a) {
|
|
47
|
+
const f = a();
|
|
48
|
+
typeof f == "boolean" && (e = f);
|
|
49
|
+
}
|
|
50
|
+
e && n(r + 1);
|
|
44
51
|
},
|
|
45
52
|
children: "Siguiente"
|
|
46
53
|
}
|
|
47
54
|
),
|
|
48
|
-
r ===
|
|
49
|
-
|
|
55
|
+
r === t.length - 1 && s && /* @__PURE__ */ i(
|
|
56
|
+
o,
|
|
50
57
|
{
|
|
51
58
|
type: "submit",
|
|
52
59
|
variant: "unp_send",
|
|
@@ -59,5 +66,5 @@ const b = ({ stepContent: a, onSubmit: s, canJump: o = !0 }) => {
|
|
|
59
66
|
] });
|
|
60
67
|
};
|
|
61
68
|
export {
|
|
62
|
-
|
|
69
|
+
j as Paginador
|
|
63
70
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as u, jsx as
|
|
1
|
+
import { jsxs as l, Fragment as u, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import '../../assets/Tarjeta.css';/* empty css */
|
|
3
|
+
import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
4
5
|
import { C as f, a as C } from "../../Card-BXqmurzN.js";
|
|
5
6
|
import { C as j } from "../../CardBody-RoDe1y90.js";
|
|
6
7
|
import { B as S } from "../../Button-DMwpnJlD.js";
|
|
7
8
|
const b = {
|
|
8
9
|
marginBottom: "20px",
|
|
9
10
|
width: "100px"
|
|
10
|
-
},
|
|
11
|
+
}, v = ({
|
|
11
12
|
title: p,
|
|
12
13
|
children: s,
|
|
13
14
|
method: n,
|
|
14
15
|
onSubmit: m
|
|
15
16
|
}) => {
|
|
16
|
-
const
|
|
17
|
+
const r = e.Children.toArray(s), c = r[0] && e.isValidElement(r[0]) && r[0].type.displayName === "Subtitulo", i = r.filter(
|
|
17
18
|
(t) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
|
|
18
19
|
), d = i.length > 0, y = e.Children.map(s, (t, o) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? e.cloneElement(t, {
|
|
19
20
|
isGray: t.props.isGray ?? o % 2 === 1,
|
|
@@ -21,12 +22,12 @@ const b = {
|
|
|
21
22
|
}) : t);
|
|
22
23
|
return /* @__PURE__ */ l(u, { children: [
|
|
23
24
|
/* @__PURE__ */ l(f, { className: "border-0 mb-4 tarjeta-unp", children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
d ? y : /* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ a(C, { className: "d-flex justify-content-between align-items-center bg-unp text-light py-3 tarjeta-header-unp", children: p }),
|
|
26
|
+
d ? y : /* @__PURE__ */ a(j, { className: `${c ? "pt-0" : ""}`, children: s })
|
|
26
27
|
] }),
|
|
27
|
-
n === "POST" || n === "post" && /* @__PURE__ */
|
|
28
|
+
n === "POST" || n === "post" && /* @__PURE__ */ a("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ a(S, { variant: "unp_send", style: b, onClick: m, children: "Enviar" }) })
|
|
28
29
|
] });
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
v as Tarjeta
|
|
32
33
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { b as s } from "../../../index-DAgOFOds.js";
|
|
3
|
+
import '../../../assets/Bootstrap.css';/* empty css */
|
|
3
4
|
import { B as a } from "../../../Button-DMwpnJlD.js";
|
|
4
5
|
const d = {
|
|
5
6
|
fontColor: "#303d50s",
|
|
@@ -7,7 +8,7 @@ const d = {
|
|
|
7
8
|
fontWeight: "700",
|
|
8
9
|
// marginBottom: '6.66rem',
|
|
9
10
|
color: "#303d50"
|
|
10
|
-
},
|
|
11
|
+
}, c = ({ label: o, children: e, onClose: t, isGray: i = !1 }) => /* @__PURE__ */ n(
|
|
11
12
|
"div",
|
|
12
13
|
{
|
|
13
14
|
className: "border border-gray-300",
|
|
@@ -16,7 +17,7 @@ const d = {
|
|
|
16
17
|
padding: "1rem",
|
|
17
18
|
marginTop: "0.5rem",
|
|
18
19
|
marginBottom: "0.5rem",
|
|
19
|
-
background:
|
|
20
|
+
background: i ? "#f7f7f7" : "#ffffff",
|
|
20
21
|
borderRadius: "10px"
|
|
21
22
|
},
|
|
22
23
|
children: [
|
|
@@ -42,5 +43,5 @@ const d = {
|
|
|
42
43
|
}
|
|
43
44
|
);
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
c as NuevoElemento
|
|
46
47
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as v, useRef as d, useEffect as y } from "react";
|
|
3
|
-
import '../../assets/TarjetaLectura.css';/* empty css */
|
|
3
|
+
import '../../assets/Bootstrap.css';import '../../assets/TarjetaLectura.css';/* empty css */
|
|
4
4
|
import { Logo as _ } from "../logo/Logo.js";
|
|
5
5
|
import { SeccionTarjetaLectura as g } from "./seccion-tarjeta-lectura/SeccionTarjetaLectura.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { B as m } from "../../Button-DMwpnJlD.js";
|
|
8
|
+
const L = ({ title: h, subtitle: u, headerContent: f, stepContent: n, children: o }) => {
|
|
9
|
+
const [r, a] = v(0), p = d(null), c = d(null);
|
|
9
10
|
return y(() => {
|
|
10
11
|
c.current && r > 0 && c.current.scrollIntoView({
|
|
11
12
|
behavior: "smooth"
|
|
@@ -14,34 +15,34 @@ const k = ({ title: m, subtitle: u, headerContent: f, stepContent: n, children:
|
|
|
14
15
|
/* @__PURE__ */ i("form", { ref: p, className: "form_qy", children: [
|
|
15
16
|
/* @__PURE__ */ i("div", { className: "main_title_container_qy", children: [
|
|
16
17
|
/* @__PURE__ */ i("div", { className: "subtitle_container_qy", children: [
|
|
17
|
-
/* @__PURE__ */ e("h3", { children:
|
|
18
|
+
/* @__PURE__ */ e("h3", { children: h }),
|
|
18
19
|
/* @__PURE__ */ e("h5", { children: u })
|
|
19
20
|
] }),
|
|
20
21
|
/* @__PURE__ */ e("div", { className: "logo_container_qy", children: /* @__PURE__ */ e(_, { type: "entidad", variant: "unidad", color: "rojo", height: "80px" }) })
|
|
21
22
|
] }),
|
|
22
23
|
/* @__PURE__ */ e("div", { className: "section_header_container_qy", children: f }),
|
|
23
24
|
n ? /* @__PURE__ */ i("div", { ref: c, children: [
|
|
24
|
-
/* @__PURE__ */ e(g, { title: "Secciones", children: /* @__PURE__ */ e("ul", { id: "paginador-tarjeta-lectura", children: n.map((s,
|
|
25
|
+
/* @__PURE__ */ e(g, { title: "Secciones", children: /* @__PURE__ */ e("ul", { id: "paginador-tarjeta-lectura", children: n.map((s, t) => /* @__PURE__ */ i(
|
|
25
26
|
"li",
|
|
26
27
|
{
|
|
27
|
-
className:
|
|
28
|
-
onClick: () => t
|
|
28
|
+
className: t <= r ? "active" : "",
|
|
29
|
+
onClick: () => a(t),
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */ e("div", { className: `step ${
|
|
31
|
+
/* @__PURE__ */ e("div", { className: `step ${t <= r ? "active" : ""}`, children: /* @__PURE__ */ e(s.icon, { size: 18 }) }),
|
|
31
32
|
/* @__PURE__ */ e("strong", { children: s.label })
|
|
32
33
|
]
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
t
|
|
35
36
|
)) }) }),
|
|
36
37
|
/* @__PURE__ */ e("div", { children: n[r].content })
|
|
37
38
|
] }) : o && /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { children: o }) })
|
|
38
39
|
] }),
|
|
39
40
|
n && /* @__PURE__ */ e(l, { children: /* @__PURE__ */ i("div", { className: "paginador-buttons", style: { display: "flex", justifyContent: "end" }, children: [
|
|
40
41
|
r > 0 && /* @__PURE__ */ e(
|
|
41
|
-
|
|
42
|
+
m,
|
|
42
43
|
{
|
|
43
44
|
variant: "unp_secondary",
|
|
44
|
-
onClick: () =>
|
|
45
|
+
onClick: () => a(r - 1),
|
|
45
46
|
style: {
|
|
46
47
|
marginRight: "1rem"
|
|
47
48
|
},
|
|
@@ -49,11 +50,11 @@ const k = ({ title: m, subtitle: u, headerContent: f, stepContent: n, children:
|
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
52
|
r < n.length - 1 && /* @__PURE__ */ e(
|
|
52
|
-
|
|
53
|
+
m,
|
|
53
54
|
{
|
|
54
55
|
variant: "unp_primary",
|
|
55
56
|
style: { justifySelf: "end" },
|
|
56
|
-
onClick: () =>
|
|
57
|
+
onClick: () => a(r + 1),
|
|
57
58
|
children: "Siguiente"
|
|
58
59
|
}
|
|
59
60
|
)
|
|
@@ -61,5 +62,5 @@ const k = ({ title: m, subtitle: u, headerContent: f, stepContent: n, children:
|
|
|
61
62
|
] });
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
L as TarjetaLectura
|
|
65
66
|
};
|