react-ecosistema-unp 0.5.8 → 0.5.10

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
- .paginador-card{z-index:0!important;border-radius:12px!important;box-shadow:1px 4px 12px 1px #00000018;margin-top:2rem;margin-bottom:2rem;background-color:#f9f9f9}.paginador-content,.paginador-buttons{margin-top:2rem;margin-bottom:2rem}#progressbar{overflow:hidden;display:flex;justify-content:center;margin-top:21px;padding:0;list-style-type:none;color:#d3d3d3}#progressbar .active{color:#d36269}#progressbar li{font-size:12px;width:10%;position:relative;text-align:center;font-weight:400}#progressbar li .step{font-size:15px;color:gray;width:60px;height:60px;border-radius:50%;background-color:#d3d3d3;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;font-weight:400;color:#fff;cursor:pointer}#progressbar li:before{width:50px;height:50px;line-height:45px;display:block;font-size:12px;color:#fff;background:#d3d3d3;border-radius:50%;margin:0 auto 10px;padding:2px}#progressbar li:after{content:"";width:100%;height:3px;background:#d3d3d3;position:absolute;left:0;top:30px;z-index:-1;font-size:12px}#progressbar li.active:before,#progressbar li.active:after{background:#d36269}#progressbar li.active .step{background:#dc4f58;color:#fff}
1
+ .paginador-card{z-index:0!important;border-radius:12px!important;box-shadow:1px 4px 12px 1px #00000018;margin-top:2rem;margin-bottom:2rem;background-color:#f7f7f7!important}.paginador-content,.paginador-buttons{margin-top:2rem;margin-bottom:2rem}#progressbar{overflow:hidden;display:flex;justify-content:center;margin-top:21px;padding:0;list-style-type:none;color:#d3d3d3}#progressbar .active{color:#d36269}#progressbar li{font-size:12px;width:10%;position:relative;text-align:center;font-weight:400}#progressbar li .step{font-size:15px;color:gray;width:60px;height:60px;border-radius:50%;background-color:#d3d3d3;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;font-weight:400;color:#fff;cursor:pointer}#progressbar li:before{width:50px;height:50px;line-height:45px;display:block;font-size:12px;color:#fff;background:#d3d3d3;border-radius:50%;margin:0 auto 10px;padding:2px}#progressbar li:after{content:"";width:100%;height:3px;background:#d3d3d3;position:absolute;left:0;top:30px;z-index:-1;font-size:12px}#progressbar li.active:before,#progressbar li.active:after{background:#d36269}#progressbar li.active .step{background:#dc4f58;color:#fff}
@@ -1,15 +1,15 @@
1
- import { G as t } from "./iconBase-LROS5hdG.js";
2
- function i(c) {
3
- return t({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z" }, child: [] }] })(c);
1
+ import { G as l } from "./iconBase-LROS5hdG.js";
2
+ function a(c) {
3
+ return l({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z" }, child: [] }] })(c);
4
4
  }
5
- function s(c) {
6
- return t({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M32 288c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 288zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z" }, child: [] }] })(c);
5
+ function i(c) {
6
+ return l({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M128 136c0-22.1-17.9-40-40-40L40 96C17.9 96 0 113.9 0 136l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm32-192l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM288 328c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm32-192l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM448 328c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z" }, child: [] }] })(c);
7
7
  }
8
8
  function r(c) {
9
- return t({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" }, child: [] }] })(c);
9
+ return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" }, child: [] }] })(c);
10
10
  }
11
11
  export {
12
- i as F,
13
- s as a,
12
+ a as F,
13
+ i as a,
14
14
  r as b
15
15
  };
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface VentanaLienzoProps {
3
- children?: React.ReactElement | React.ReactElement[];
3
+ children?: React.ReactNode;
4
4
  }
5
5
  declare const VentanaLienzo: React.FC<VentanaLienzoProps>;
6
6
  export { VentanaLienzo };
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface VentanaUsuarioProps {
3
- children?: React.ReactElement | React.ReactElement[];
3
+ children?: React.ReactNode;
4
4
  }
5
5
  declare const VentanaTabs: React.FC<VentanaUsuarioProps>;
6
6
  export { VentanaTabs };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
- import { b as w } from "../../index-D3su-uEQ.js";
2
+ import { b as w } from "../../index-Cwunu_N_.js";
3
3
  import * as s from "react";
4
4
  import { useContext as $, useMemo as T } from "react";
5
5
  import { c as p, u as R } from "../../ThemeProvider-CFCmmLJC.js";
@@ -1,24 +1,24 @@
1
1
  import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
- import * as C from "react";
3
- import x from "react";
4
- import { a as $ } from "../../index-D3su-uEQ.js";
5
- import { u as k, c as N } from "../../ThemeProvider-CFCmmLJC.js";
6
- import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
2
+ import * as y from "react";
3
+ import $ from "react";
4
+ import { a as k } from "../../index-Cwunu_N_.js";
5
+ import { u as x, c as N } from "../../ThemeProvider-CFCmmLJC.js";
6
+ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
7
7
  bsPrefix: n,
8
8
  className: a,
9
9
  striped: i,
10
10
  bordered: c,
11
- borderless: g,
12
- hover: f,
11
+ borderless: p,
12
+ hover: g,
13
13
  size: d,
14
14
  variant: h,
15
15
  responsive: s,
16
16
  ...b
17
- }, p) => {
18
- const o = k(n, "table"), t = N(a, o, h && `${o}-${h}`, d && `${o}-${d}`, i && `${o}-${typeof i == "string" ? `striped-${i}` : "striped"}`, c && `${o}-bordered`, g && `${o}-borderless`, f && `${o}-hover`), l = /* @__PURE__ */ e("table", {
17
+ }, f) => {
18
+ const o = x(n, "table"), t = N(a, o, h && `${o}-${h}`, d && `${o}-${d}`, i && `${o}-${typeof i == "string" ? `striped-${i}` : "striped"}`, c && `${o}-bordered`, p && `${o}-borderless`, g && `${o}-hover`), l = /* @__PURE__ */ e("table", {
19
19
  ...b,
20
20
  className: t,
21
- ref: p
21
+ ref: f
22
22
  });
23
23
  if (s) {
24
24
  let r = `${o}-responsive`;
@@ -28,19 +28,19 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
28
28
  });
29
29
  }
30
30
  return l;
31
- }), S = ({
31
+ }), B = ({
32
32
  columns: n,
33
33
  filteredData: a,
34
34
  tableData: i,
35
35
  hasMoreData: c,
36
- setHasMoreData: g,
37
- visibleData: f,
36
+ setHasMoreData: p,
37
+ visibleData: g,
38
38
  setVisibleData: d,
39
39
  handleCellClick: h,
40
40
  totalDias: s,
41
41
  isShared: b
42
42
  }) => {
43
- const p = (t) => {
43
+ const f = (t) => {
44
44
  if (s) {
45
45
  const l = t / s * 100;
46
46
  return l <= 25 ? { backgroundColor: "#3AB34A", color: "#FFFFFF" } : l <= 50 ? { backgroundColor: "#F8EB10", color: "#000000" } : l <= 75 ? { backgroundColor: "#F79122", color: "#000000" } : { backgroundColor: "#E91720", color: "#FFFFFF" };
@@ -49,14 +49,14 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
49
49
  };
50
50
  return /* @__PURE__ */ e("div", { className: "table_container", children: /* @__PURE__ */ e("div", { className: "table-scroll", onScroll: (t) => {
51
51
  const { scrollTop: l, clientHeight: r, scrollHeight: m } = t.currentTarget;
52
- m - l <= r + 50 && c && d((y) => {
53
- const F = y + 5;
54
- return F >= a.length && g(!1), Math.min(F, a.length);
52
+ m - l <= r + 50 && c && d((F) => {
53
+ const C = F + 5;
54
+ return C >= a.length && p(!1), Math.min(C, a.length);
55
55
  });
56
56
  }, children: /* @__PURE__ */ u(v, { striped: !0, hover: !0, children: [
57
57
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: n.map((t, l) => /* @__PURE__ */ e("th", { className: "table-header-unp", children: t.label }, l)) }) }),
58
58
  /* @__PURE__ */ u("tbody", { children: [
59
- i.slice(0, f).map((t, l) => /* @__PURE__ */ u(x.Fragment, { children: [
59
+ i.slice(0, g).map((t, l) => /* @__PURE__ */ u($.Fragment, { children: [
60
60
  /* @__PURE__ */ e("tr", { children: n.map((r, m) => /* @__PURE__ */ e(
61
61
  "td",
62
62
  {
@@ -79,10 +79,10 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
79
79
  padding: "8px",
80
80
  borderRadius: "100px",
81
81
  width: "40px",
82
- backgroundColor: p(
82
+ backgroundColor: f(
83
83
  t.diasHabiles
84
84
  ).backgroundColor,
85
- color: p(
85
+ color: f(
86
86
  t.diasHabiles
87
87
  ).color
88
88
  },
@@ -94,20 +94,21 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
94
94
  },
95
95
  m
96
96
  )) }),
97
- b && t.estadoRegistro === "en_gestion" && !a.some((r) => r.estadoRegistro === "en_gestion" && a.indexOf(r) > l) && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", style: { padding: "0 2rem 0 2rem" }, children: /* @__PURE__ */ e("div", { style: {
98
- minHeight: 20,
97
+ b && t.estadoRegistro === "en_gestion" && !a.some((r) => r.estadoRegistro === "en_gestion" && a.indexOf(r) > l) && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", style: { padding: "0 0 0 0" }, children: /* @__PURE__ */ e("div", { style: {
98
+ height: "3rem",
99
99
  display: "flex",
100
100
  flexDirection: "row",
101
101
  justifyContent: "center",
102
102
  alignItems: "center",
103
103
  fontWeight: "600",
104
- color: "#303D50"
105
- }, children: /* @__PURE__ */ e($, { style: { color: "#a1a1a1" } }) }) }) })
104
+ color: l % 2 === 0 ? "#365072" : "#303D50",
105
+ backgroundColor: l % 2 === 0 ? "#fefefe" : "#f7f7f9"
106
+ }, children: /* @__PURE__ */ e(k, { style: { fontSize: "1.3rem" } }) }) }) })
106
107
  ] }, l)),
107
108
  c && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", children: "Cargando más datos..." }) })
108
109
  ] })
109
110
  ] }) }) });
110
111
  };
111
112
  export {
112
- S as Tabla
113
+ B as Tabla
113
114
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as n, useEffect as p } from "react";
3
- import { F as v } from "../../index-D3su-uEQ.js";
3
+ import { F as v } from "../../index-Cwunu_N_.js";
4
4
  import '../../assets/TituloModal.css';/* empty css */
5
5
  const y = ({ title: d, children: h, buttons: s, isShowing: i, setIsShowing: u = () => {
6
6
  } }) => {
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": "0.5.8",
5
+ "version": "0.5.10",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {