react-ecosistema-unp 1.9.2 → 1.9.6

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,24 +1,54 @@
1
- import { jsx as a, jsxs as t } from "react/jsx-runtime";
2
- import { x as s } from "../../../index-DDjnZyBf.js";
3
- import { F as i, a as l } from "../../../FormGroup-BLpFcIN5.js";
4
- import '../../../assets/Buscador.css';const d = ({ onSearch: r }) => {
5
- const n = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
6
- return /* @__PURE__ */ a("div", { className: "search-container", children: /* @__PURE__ */ t(i, { className: "d-flex align-items-center mx-1 position-relative", children: [
7
- /* @__PURE__ */ a(
8
- l,
1
+ import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import { useState as c, useEffect as g } from "react";
4
+ import { y as N } from "../../../index-DV5CcUu9.js";
5
+ import { F as x, a as h } from "../../../FormGroup-BLpFcIN5.js";
6
+ import { u as $, c as v } from "../../../ThemeProvider-Bs1j1Nwi.js";
7
+ import '../../../assets/Buscador.css';const u = /* @__PURE__ */ d.forwardRef(({
8
+ bsPrefix: a,
9
+ variant: r,
10
+ animation: s = "border",
11
+ size: o,
12
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
13
+ as: i = "div",
14
+ className: t,
15
+ ...m
16
+ }, l) => {
17
+ a = $(a, "spinner");
18
+ const e = `${a}-${s}`;
19
+ return /* @__PURE__ */ n(i, {
20
+ ref: l,
21
+ ...m,
22
+ className: v(t, e, o && `${e}-${o}`, r && `text-${r}`)
23
+ });
24
+ });
25
+ u.displayName = "Spinner";
26
+ const j = ({ onSearch: a, onFetchTableSearch: r }) => {
27
+ const [s, o] = c(""), [i, t] = c(!1), m = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = (e) => {
28
+ const p = m(e.target.value);
29
+ a(p), o(e.target.value);
30
+ };
31
+ return g(() => {
32
+ if (t(!1), !r) return;
33
+ t(!0);
34
+ const e = setTimeout(() => {
35
+ r(s), t(!1);
36
+ }, 2500);
37
+ return () => clearTimeout(e);
38
+ }, [s]), /* @__PURE__ */ n("div", { className: "search-container", children: /* @__PURE__ */ f(x, { className: "d-flex align-items-center mx-1 position-relative", children: [
39
+ /* @__PURE__ */ n(
40
+ h,
9
41
  {
10
42
  type: "text",
11
43
  className: "me-0 input-with-icon",
12
44
  placeholder: "Ingrese un criterio de búsqueda...",
13
- onChange: (e) => {
14
- const o = n(e.target.value);
15
- r(o);
16
- }
45
+ value: s,
46
+ onChange: l
17
47
  }
18
48
  ),
19
- /* @__PURE__ */ a(s, { className: "input-icon" })
49
+ i ? /* @__PURE__ */ n(u, { animation: "grow", size: "sm", className: "input-icon" }) : /* @__PURE__ */ n(N, { className: "input-icon" })
20
50
  ] }) });
21
51
  };
22
52
  export {
23
- d as BusquedaInput
53
+ j as BusquedaInput
24
54
  };
@@ -1,5 +1,5 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { Encabezado as a } from "../../../ui/encabezado/Encabezado.js";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
+ import { Encabezado as s } from "../../../ui/encabezado/Encabezado.js";
3
3
  import "../../../ui/subtitulo/Subtitulo.js";
4
4
  import "react";
5
5
  import '../../../assets/EcoModalStyles.css';import '../../../assets/Modal.css';import '../../../assets/ContenedorVentana.css';import '../../../assets/IconoTooltip.css';import '../../../assets/ItemsModal.css';import '../../../assets/Logo.css';import '../../../assets/Bootstrap.css';import '../../../assets/Paginador.css';import '../../../assets/ContenidoModal.css';/* empty css */
@@ -14,22 +14,29 @@ import "react-router-dom";
14
14
  import "../../../index-BrykDZgK.js";
15
15
  /* empty css */
16
16
  import "../../../Animacion-ThNL9iiY.js";
17
- import { BusquedaInput as e } from "../buscador/Buscador.js";
18
- const B = ({
19
- title: m,
20
- subtitle: t,
21
- data: p,
22
- setSearchTerm: n,
23
- extraInput: o
24
- // enableColumnSearch
25
- }) => /* @__PURE__ */ i("div", { className: "unp-row", children: [
26
- /* @__PURE__ */ r(a, { title: m, subtitle: t }),
27
- /* @__PURE__ */ i("div", { className: "inputs-container", children: [
28
- p.length > 0 && // && !enableColumnSearch
29
- /* @__PURE__ */ r(e, { onSearch: n }),
17
+ import { BusquedaInput as d } from "../buscador/Buscador.js";
18
+ const k = ({
19
+ title: t,
20
+ subtitle: p,
21
+ data: n,
22
+ setSearchTerm: a,
23
+ extraInput: o,
24
+ // enableColumnSearch,
25
+ onFetchTableSearch: i
26
+ }) => /* @__PURE__ */ m("div", { className: "unp-row", children: [
27
+ /* @__PURE__ */ r(s, { title: t, subtitle: p }),
28
+ /* @__PURE__ */ m("div", { className: "inputs-container", children: [
29
+ (n.length > 0 || i) && // && !enableColumnSearch
30
+ /* @__PURE__ */ r(
31
+ d,
32
+ {
33
+ onSearch: a,
34
+ onFetchTableSearch: i
35
+ }
36
+ ),
30
37
  o && /* @__PURE__ */ r("div", { children: o })
31
38
  ] })
32
39
  ] });
33
40
  export {
34
- B as EncabezadoTabla
41
+ k as EncabezadoTabla
35
42
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
2
  import { useState as m, useRef as I, useEffect as u } from "react";
3
3
  import { R as M } from "../../../index-BrykDZgK.js";
4
- import { q as A, r as B } from "../../../index-DDjnZyBf.js";
4
+ import { q as A, r as B } from "../../../index-DV5CcUu9.js";
5
5
  import '../../../assets/EcoModalStyles.css';/* empty css */
6
6
  const X = ({
7
7
  show: r,
@@ -1,6 +1,6 @@
1
1
  import { jsx as s, jsxs as d } from "react/jsx-runtime";
2
2
  import Z, { useState as m, useEffect as L } from "react";
3
- import { v as S, w } from "../../../index-DDjnZyBf.js";
3
+ import { v as S, w } from "../../../index-DV5CcUu9.js";
4
4
  import { a as ee, b as te, c as re, d as se } from "../../../index-D3WseyJh.js";
5
5
  import { T as oe } from "../../../Table-C5ydZooy.js";
6
6
  import { F as ie, a as ne } from "../../../FormGroup-BLpFcIN5.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, Fragment as N, jsx as e } from "react/jsx-runtime";
2
2
  import p, { useState as o } from "react";
3
- import { n as v } from "../../index-DDjnZyBf.js";
3
+ import { n as v } from "../../index-DV5CcUu9.js";
4
4
  import '../../assets/ContenidoModal.css';/* empty css */
5
5
  const x = ({ title: u, modalContent: i, children: d }) => {
6
6
  const [a, l] = o(0), [m, c] = o(!0), [r, n] = o(!1);
@@ -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 m, useEffect as p } from "react";
3
- import { n as v } from "../../index-DDjnZyBf.js";
3
+ import { n as v } from "../../index-DV5CcUu9.js";
4
4
  import '../../assets/ContenidoModal.css';/* empty css */
5
5
  const y = ({ title: d, children: h, buttons: s, isShowing: i, setIsShowing: u = () => {
6
6
  } }) => {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as L, jsx as u } from "react/jsx-runtime";
2
2
  import { useState as M } from "react";
3
- import { F as A, a as U, b as j, c as B, d as J, e as W, f as z, g as P, h as Y, i as q, j as g, k as h, l as G, m as H } from "../../index-DDjnZyBf.js";
3
+ import { F as A, a as U, b as j, c as B, d as J, e as W, f as z, g as P, h as Y, i as q, j as g, k as h, l as G, m as H } from "../../index-DV5CcUu9.js";
4
4
  import '../../assets/IconoTooltip.css';/* empty css */
5
5
  const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
6
6
  const [a, b] = M(!1);
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { useNavigate as s } from "react-router-dom";
3
- import { t as i, u as n } from "../../index-DDjnZyBf.js";
3
+ import { t as i, u as n } from "../../index-DV5CcUu9.js";
4
4
  import { G as c } from "../../iconBase-LROS5hdG.js";
5
5
  import '../../assets/ItemsModal.css';/* empty css */
6
6
  function m(o) {
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.9.2",
5
+ "version": "1.9.6",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {