react-ecosistema-unp 1.0.0-pre-release.4 → 1.0.0

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.
@@ -6,6 +6,7 @@ interface Listado {
6
6
  route: string;
7
7
  closed?: boolean;
8
8
  handleDownload?: (...args: any[]) => any;
9
+ state?: Record<string, any>;
9
10
  }
10
11
  interface ItemsModalProps {
11
12
  sections: Listado[];
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
- import { useNavigate as d } from "react-router-dom";
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 = d();
11
- return /* @__PURE__ */ o("div", { className: "listado-tarjetas", children: l.map((a, r) => /* @__PURE__ */ t("div", { className: "tarjeta-listado-row", children: [
12
- /* @__PURE__ */ t(
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__ */ t("div", { className: "tarjeta-listado-label-container", children: [
19
- /* @__PURE__ */ o(a.icon, { className: "tarjeta-listado-process-menu" }),
20
- /* @__PURE__ */ o("span", { children: a.label })
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__ */ o("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ o(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ o(n, { style: { color: "#E2E2E2" } }) })
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__ */ o(
26
+ a.handleDownload && /* @__PURE__ */ t(
27
27
  "div",
28
28
  {
29
29
  className: "tarjeta-listado-download-container",
30
- onClick: (i) => {
31
- i.stopPropagation(), a.handleDownload && a.handleDownload();
30
+ onClick: (d) => {
31
+ d.stopPropagation(), a.handleDownload && a.handleDownload();
32
32
  },
33
- children: /* @__PURE__ */ o(m, { className: "tarjeta-listado-download-icon" })
33
+ children: /* @__PURE__ */ t(m, { className: "tarjeta-listado-download-icon" })
34
34
  }
35
35
  )
36
36
  ] }, r)) });
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.0.0-pre-release.4",
5
+ "version": "1.0.0",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {