react-ecosistema-unp 1.0.0-pre-release.4 → 1.0.0-pre-release.5
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,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useNavigate as
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useNavigate as i } from "react-router-dom";
|
|
3
3
|
import { h as s, i as n } from "../../index-D_9gBL0I.js";
|
|
4
4
|
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
@@ -7,30 +7,30 @@ function m(l) {
|
|
|
7
7
|
return c({ tag: "svg", attr: { viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M 15 4 L 15 20.5625 L 9.71875 15.28125 L 8.28125 16.71875 L 15.28125 23.71875 L 16 24.40625 L 16.71875 23.71875 L 23.71875 16.71875 L 22.28125 15.28125 L 17 20.5625 L 17 4 Z M 7 26 L 7 28 L 25 28 L 25 26 Z" }, child: [] }] })(l);
|
|
8
8
|
}
|
|
9
9
|
const N = ({ sections: l }) => {
|
|
10
|
-
const e =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
10
|
+
const e = i();
|
|
11
|
+
return /* @__PURE__ */ t("div", { className: "listado-tarjetas", children: l.map((a, r) => /* @__PURE__ */ o("div", { className: "tarjeta-listado-row", children: [
|
|
12
|
+
/* @__PURE__ */ o(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
className: "tarjeta-listado-container",
|
|
16
|
-
onClick: () => e(a.route),
|
|
16
|
+
onClick: () => e(a.route, { state: a.state }),
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ o("div", { className: "tarjeta-listado-label-container", children: [
|
|
19
|
+
/* @__PURE__ */ t(a.icon, { className: "tarjeta-listado-process-menu" }),
|
|
20
|
+
/* @__PURE__ */ t("span", { children: a.label })
|
|
21
21
|
] }),
|
|
22
|
-
"closed" in a && /* @__PURE__ */
|
|
22
|
+
"closed" in a && /* @__PURE__ */ t("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ t(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ t(n, { style: { color: "#E2E2E2" } }) })
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
a.handleDownload && /* @__PURE__ */
|
|
26
|
+
a.handleDownload && /* @__PURE__ */ t(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
className: "tarjeta-listado-download-container",
|
|
30
|
-
onClick: (
|
|
31
|
-
|
|
30
|
+
onClick: (d) => {
|
|
31
|
+
d.stopPropagation(), a.handleDownload && a.handleDownload();
|
|
32
32
|
},
|
|
33
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ t(m, { className: "tarjeta-listado-download-icon" })
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] }, r)) });
|
package/package.json
CHANGED