react-ecosistema-unp 1.2.2 → 1.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.subtitulo-contenedor-fila{display:flex;justify-content:space-between;align-items:center}.subtitulo-contenedor-icon-subtitle{display:flex;justify-content:start;align-items:center}.subtitulo-icon{font-size:1.25rem;color:#303d50;margin-right:.66rem}.subtitulo-subtitle{font-size:1.1rem;font-weight:700;color:#303d50}
|
|
1
|
+
.subtitulo-contenedor-fila{display:flex;justify-content:space-between;align-items:center}.subtitulo-contenedor-icon-subtitle{display:flex;justify-content:start;align-items:center}.subtitulo-icon{font-size:1.25rem;color:#303d50;margin-right:.66rem;flex-shrink:0}.subtitulo-subtitle{font-size:1.1rem;font-weight:700;color:#303d50}
|
package/dist/assets/Tarjeta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bg-unp{border-radius:6px 6px 0 0!important;background-color:#303d50!important}.tarjeta-unp{border-radius:12px!important;box-shadow:0 6px 10px #00000019;border-bottom-left-radius:12px;margin-bottom:1.5rem}.tarjeta-header-unp{border-top-left-radius:12px!important;border-top-right-radius:12px!important}
|
|
1
|
+
.bg-unp{border-radius:6px 6px 0 0!important;background-color:#303d50!important}.tarjeta-unp{border-radius:12px!important;box-shadow:0 6px 10px #00000019;border-bottom-left-radius:12px;margin-bottom:1.5rem}.tarjeta-header-unp{border-top-left-radius:12px!important;border-top-right-radius:12px!important}.card-close-button{background:none;border:none;font-size:1.5em;cursor:pointer;color:#fff;margin-left:auto}.card-close-button:hover{color:#d36269}
|
|
@@ -1,59 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
3
|
import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
7
|
-
import { B as
|
|
8
|
-
const
|
|
5
|
+
import { C as N, a as S } from "../../Card-BXqmurzN.js";
|
|
6
|
+
import { C as x } from "../../CardBody-RoDe1y90.js";
|
|
7
|
+
import { B as h } from "../../Button-DMwpnJlD.js";
|
|
8
|
+
const B = {
|
|
9
9
|
marginBottom: "20px",
|
|
10
10
|
width: "100px"
|
|
11
|
-
},
|
|
12
|
-
title:
|
|
13
|
-
header:
|
|
11
|
+
}, A = ({
|
|
12
|
+
title: c,
|
|
13
|
+
header: s = !1,
|
|
14
14
|
children: n,
|
|
15
|
-
method:
|
|
15
|
+
method: l = "get",
|
|
16
16
|
validated: d = !1,
|
|
17
|
-
onSubmit:
|
|
18
|
-
hasPaddingTop: y = !0
|
|
17
|
+
onSubmit: u,
|
|
18
|
+
hasPaddingTop: y = !0,
|
|
19
|
+
onClose: r,
|
|
20
|
+
hasBody: f = !0
|
|
19
21
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
(t) =>
|
|
22
|
-
),
|
|
23
|
-
isGray: t.props.isGray ??
|
|
24
|
-
isLast: t.props.isLast ??
|
|
22
|
+
const i = a.Children.toArray(n), g = i[0] && a.isValidElement(i[0]) && i[0].type.displayName === "Subtitulo", m = i.filter(
|
|
23
|
+
(t) => a.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
|
|
24
|
+
), b = m.length > 0, j = a.Children.map(n, (t, p) => a.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? a.cloneElement(t, {
|
|
25
|
+
isGray: t.props.isGray ?? p % 2 === 1,
|
|
26
|
+
isLast: t.props.isLast ?? p === m.length - 1
|
|
25
27
|
}) : t);
|
|
26
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
27
29
|
"form",
|
|
28
30
|
{
|
|
29
|
-
method:
|
|
31
|
+
method: l,
|
|
30
32
|
noValidate: !0,
|
|
31
|
-
onSubmit:
|
|
33
|
+
onSubmit: u,
|
|
32
34
|
className: d ? "was-validated" : "",
|
|
33
35
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
36
|
+
/* @__PURE__ */ o(N, { className: "border-0 tarjeta-unp", children: [
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
S,
|
|
37
39
|
{
|
|
38
40
|
className: "bg-unp text-light tarjeta-header-unp",
|
|
39
41
|
style: {
|
|
40
|
-
paddingTop: "1rem",
|
|
41
|
-
paddingBottom: "1rem",
|
|
42
|
-
fontSize:
|
|
43
|
-
fontWeight:
|
|
44
|
-
display:
|
|
45
|
-
justifyContent:
|
|
42
|
+
paddingTop: r ? "0.55rem" : "1rem",
|
|
43
|
+
paddingBottom: r ? "0.55rem" : "1rem",
|
|
44
|
+
fontSize: s ? "1.125rem" : "1.075rem",
|
|
45
|
+
fontWeight: s ? 500 : "",
|
|
46
|
+
display: "flex",
|
|
47
|
+
justifyContent: s ? "center" : "space-between",
|
|
48
|
+
alignItems: "center"
|
|
46
49
|
},
|
|
47
|
-
children:
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ e("span", { style: { marginLeft: s && r ? "auto" : "" }, children: c }),
|
|
52
|
+
r && /* @__PURE__ */ e("button", { className: "card-close-button", onClick: r, type: "button", children: "×" })
|
|
53
|
+
]
|
|
48
54
|
}
|
|
49
55
|
),
|
|
50
|
-
|
|
56
|
+
b ? j : f ? /* @__PURE__ */ e(x, { className: `${g || !y ? "pt-0" : ""}`, children: n }) : /* @__PURE__ */ e(C, { children: n })
|
|
51
57
|
] }),
|
|
52
|
-
|
|
58
|
+
l === "post" && /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ e(h, { variant: "unp_send", style: B, type: "submit", children: "Enviar" }) })
|
|
53
59
|
]
|
|
54
60
|
}
|
|
55
61
|
);
|
|
56
62
|
};
|
|
57
63
|
export {
|
|
58
|
-
|
|
64
|
+
A as Tarjeta
|
|
59
65
|
};
|