react-ecosistema-unp 1.2.3 → 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}
@@ -1,26 +1,27 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import e from "react";
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 j, a as C } from "../../Card-BXqmurzN.js";
6
- import { C as N } from "../../CardBody-RoDe1y90.js";
7
- import { B as S } from "../../Button-DMwpnJlD.js";
8
- const h = {
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
- }, L = ({
11
+ }, A = ({
12
12
  title: c,
13
13
  header: s = !1,
14
- children: i,
14
+ children: n,
15
15
  method: l = "get",
16
16
  validated: d = !1,
17
17
  onSubmit: u,
18
18
  hasPaddingTop: y = !0,
19
- onClose: a
19
+ onClose: r,
20
+ hasBody: f = !0
20
21
  }) => {
21
- const n = e.Children.toArray(i), f = n[0] && e.isValidElement(n[0]) && n[0].type.displayName === "Subtitulo", m = n.filter(
22
- (t) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
23
- ), g = m.length > 0, b = e.Children.map(i, (t, p) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? e.cloneElement(t, {
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, {
24
25
  isGray: t.props.isGray ?? p % 2 === 1,
25
26
  isLast: t.props.isLast ?? p === m.length - 1
26
27
  }) : t);
@@ -32,14 +33,14 @@ const h = {
32
33
  onSubmit: u,
33
34
  className: d ? "was-validated" : "",
34
35
  children: [
35
- /* @__PURE__ */ o(j, { className: "border-0 tarjeta-unp", children: [
36
+ /* @__PURE__ */ o(N, { className: "border-0 tarjeta-unp", children: [
36
37
  /* @__PURE__ */ o(
37
- C,
38
+ S,
38
39
  {
39
40
  className: "bg-unp text-light tarjeta-header-unp",
40
41
  style: {
41
- paddingTop: a ? "0.55rem" : "1rem",
42
- paddingBottom: a ? "0.55rem" : "1rem",
42
+ paddingTop: r ? "0.55rem" : "1rem",
43
+ paddingBottom: r ? "0.55rem" : "1rem",
43
44
  fontSize: s ? "1.125rem" : "1.075rem",
44
45
  fontWeight: s ? 500 : "",
45
46
  display: "flex",
@@ -47,18 +48,18 @@ const h = {
47
48
  alignItems: "center"
48
49
  },
49
50
  children: [
50
- /* @__PURE__ */ r("span", { style: { marginLeft: s && a ? "auto" : "" }, children: c }),
51
- a && /* @__PURE__ */ r("button", { className: "card-close-button", onClick: a, type: "button", 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: "×" })
52
53
  ]
53
54
  }
54
55
  ),
55
- g ? b : /* @__PURE__ */ r(N, { className: `${f || !y ? "pt-0" : ""}`, children: i })
56
+ b ? j : f ? /* @__PURE__ */ e(x, { className: `${g || !y ? "pt-0" : ""}`, children: n }) : /* @__PURE__ */ e(C, { children: n })
56
57
  ] }),
57
- l === "post" && /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ r(S, { variant: "unp_send", style: h, type: "submit", children: "Enviar" }) })
58
+ l === "post" && /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ e(h, { variant: "unp_send", style: B, type: "submit", children: "Enviar" }) })
58
59
  ]
59
60
  }
60
61
  );
61
62
  };
62
63
  export {
63
- L as Tarjeta
64
+ A as Tarjeta
64
65
  };
@@ -9,6 +9,7 @@ interface TarjetaProps {
9
9
  onSubmit?: (...args: any[]) => any;
10
10
  hasPaddingTop?: boolean;
11
11
  onClose?: (...args: any[]) => any;
12
+ hasBody?: boolean;
12
13
  }
13
14
  declare const Tarjeta: React.FC<TarjetaProps>;
14
15
  export { Tarjeta };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "1.2.3",
5
+ "version": "1.2.4",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {