react-ecosistema-unp 1.0.0-pre-release → 1.0.0-pre-release.1
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/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}
|
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
3
|
import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
|
-
import { C
|
|
5
|
-
import { C } from "../../CardBody-RoDe1y90.js";
|
|
6
|
-
import { B as
|
|
7
|
-
const
|
|
4
|
+
import { C, a as j } from "../../Card-BXqmurzN.js";
|
|
5
|
+
import { C as S } from "../../CardBody-RoDe1y90.js";
|
|
6
|
+
import { B as g } from "../../Button-DMwpnJlD.js";
|
|
7
|
+
const x = {
|
|
8
8
|
marginBottom: "20px",
|
|
9
9
|
width: "100px"
|
|
10
10
|
}, v = ({
|
|
11
|
-
title:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
title: m,
|
|
12
|
+
header: a,
|
|
13
|
+
children: n,
|
|
14
|
+
method: i,
|
|
15
|
+
validated: d = !1,
|
|
16
|
+
onSubmit: c
|
|
16
17
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
(
|
|
19
|
-
),
|
|
20
|
-
isGray:
|
|
21
|
-
isLast:
|
|
22
|
-
}) :
|
|
23
|
-
return /* @__PURE__ */
|
|
18
|
+
const r = e.Children.toArray(n), y = r[0] && e.isValidElement(r[0]) && r[0].type.displayName === "Subtitulo", o = r.filter(
|
|
19
|
+
(t) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
|
|
20
|
+
), f = o.length > 0, u = e.Children.map(n, (t, l) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? e.cloneElement(t, {
|
|
21
|
+
isGray: t.props.isGray ?? l % 2 === 1,
|
|
22
|
+
isLast: t.props.isLast ?? l === o.length - 1
|
|
23
|
+
}) : t);
|
|
24
|
+
return /* @__PURE__ */ p(
|
|
24
25
|
"form",
|
|
25
26
|
{
|
|
26
|
-
method:
|
|
27
|
+
method: i,
|
|
27
28
|
noValidate: !0,
|
|
28
|
-
onSubmit:
|
|
29
|
-
className:
|
|
29
|
+
onSubmit: c,
|
|
30
|
+
className: d ? "was-validated" : "",
|
|
30
31
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
32
|
+
/* @__PURE__ */ p(C, { className: "border-0 tarjeta-unp", children: [
|
|
33
|
+
/* @__PURE__ */ s(
|
|
34
|
+
j,
|
|
35
|
+
{
|
|
36
|
+
className: "bg-unp text-light tarjeta-header-unp",
|
|
37
|
+
style: {
|
|
38
|
+
paddingTop: "1rem",
|
|
39
|
+
paddingBottom: "1rem",
|
|
40
|
+
fontSize: a ? "1.1rem" : "1.075rem",
|
|
41
|
+
fontWeight: a ? 500 : "",
|
|
42
|
+
display: a ? "flex" : "",
|
|
43
|
+
justifyContent: a ? "center" : ""
|
|
44
|
+
},
|
|
45
|
+
children: m
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
f ? u : /* @__PURE__ */ s(S, { className: `${y ? "pt-0" : ""}`, children: n })
|
|
34
49
|
] }),
|
|
35
|
-
|
|
50
|
+
i === "POST" || i === "post" && /* @__PURE__ */ s("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ s(g, { variant: "unp_send", style: x, type: "submit", children: "Enviar" }) })
|
|
36
51
|
]
|
|
37
52
|
}
|
|
38
53
|
);
|
package/package.json
CHANGED