react-ecosistema-unp 0.7.0 → 0.7.2

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.
@@ -2,8 +2,8 @@ import * as ff from "react";
2
2
  import Bl, { useRef as gE, useCallback as Vu, useMemo as SE, useEffect as db, cloneElement as pb, useContext as vb } from "react";
3
3
  import { o as hb, _ as mb, l as y1, u as yb, a as gb, T as Vm, m as u1, S as xE, b as Sb, $ as Eb } from "./TabContext-BvNFEruk.js";
4
4
  import { jsx as ca } from "react/jsx-runtime";
5
- import { g as Cb, c as RE, u as g1 } from "./ThemeProvider-CFCmmLJC.js";
6
- import { P as je } from "./index-Bk5C3cP1.js";
5
+ import { g as Cb, c as RE, u as g1 } from "./ThemeProvider-DwZMEupk.js";
6
+ import { P as je } from "./index-B-HWDQSx.js";
7
7
  import './assets/Bootstrap.css';function EE(w, A) {
8
8
  return EE = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(C, Q) {
9
9
  return C.__proto__ = Q, C;
@@ -1,4 +1,4 @@
1
- import { u as y, c as P } from "./ThemeProvider-CFCmmLJC.js";
1
+ import { u as y, c as P } from "./ThemeProvider-DwZMEupk.js";
2
2
  import * as d from "react";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  const x = ["as", "disabled"];
@@ -1,7 +1,7 @@
1
- import { c as o, u as m } from "./ThemeProvider-CFCmmLJC.js";
1
+ import { c as o, u as m } from "./ThemeProvider-DwZMEupk.js";
2
2
  import * as c from "react";
3
3
  import { useMemo as $ } from "react";
4
- import { C as n } from "./CardBody-RoDe1y90.js";
4
+ import { C as n } from "./CardBody-B9vvCH8g.js";
5
5
  import { jsx as t } from "react/jsx-runtime";
6
6
  import { c as S } from "./CardHeaderContext-DVw0yHuy.js";
7
7
  const f = (e) => /* @__PURE__ */ c.forwardRef((a, r) => /* @__PURE__ */ t("div", {
@@ -1,5 +1,5 @@
1
1
  import * as m from "react";
2
- import { u as t, c as e } from "./ThemeProvider-CFCmmLJC.js";
2
+ import { u as t, c as e } from "./ThemeProvider-DwZMEupk.js";
3
3
  import { jsx as c } from "react/jsx-runtime";
4
4
  const p = /* @__PURE__ */ m.forwardRef(({
5
5
  className: r,
@@ -1,11 +1,11 @@
1
1
  import { jsx as j, Fragment as St, jsxs as bn } from "react/jsx-runtime";
2
2
  import { G as xn } from "./iconBase-LROS5hdG.js";
3
- import { g as On, u as J, c as Q, a as En } from "./ThemeProvider-CFCmmLJC.js";
3
+ import { g as On, u as J, c as Q, d as En } from "./ThemeProvider-DwZMEupk.js";
4
4
  import * as N from "react";
5
5
  import { useRef as H, useState as qe, useCallback as _, useEffect as X, useReducer as Dn, useMemo as Me, useContext as k, createContext as Pn, useLayoutEffect as Cn } from "react";
6
6
  import { _ as $n, a as Y, o as An, l as Ae, $ as Rn, S as Ne, m as Te, c as jn, b as Mn, d as Nn, u as ze, T as Tn } from "./TabContext-BvNFEruk.js";
7
- import { w as It } from "./warning-BMiIoRBk.js";
8
- import { u as Sn, a as kt, B as In } from "./Button-BLXN_4Tu.js";
7
+ import { w as It } from "./warning-b8Ghk8WQ.js";
8
+ import { u as Sn, a as kt, B as In } from "./Button-Gn1tKaoW.js";
9
9
  import './assets/NotificacionUsuario.css';function Ve() {
10
10
  return Ve = Object.assign ? Object.assign.bind() : function(e) {
11
11
  for (var t = 1; t < arguments.length; t++) {
@@ -0,0 +1,83 @@
1
+ import * as l from "react";
2
+ import { useContext as i } from "react";
3
+ import "react/jsx-runtime";
4
+ function m(r) {
5
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
+ }
7
+ var u = { exports: {} };
8
+ /*!
9
+ Copyright (c) 2018 Jed Watson.
10
+ Licensed under the MIT License (MIT), see
11
+ http://jedwatson.github.io/classnames
12
+ */
13
+ var p;
14
+ function x() {
15
+ return p || (p = 1, function(r) {
16
+ (function() {
17
+ var o = {}.hasOwnProperty;
18
+ function e() {
19
+ for (var t = "", n = 0; n < arguments.length; n++) {
20
+ var s = arguments[n];
21
+ s && (t = c(t, f(s)));
22
+ }
23
+ return t;
24
+ }
25
+ function f(t) {
26
+ if (typeof t == "string" || typeof t == "number")
27
+ return t;
28
+ if (typeof t != "object")
29
+ return "";
30
+ if (Array.isArray(t))
31
+ return e.apply(null, t);
32
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
33
+ return t.toString();
34
+ var n = "";
35
+ for (var s in t)
36
+ o.call(t, s) && t[s] && (n = c(n, s));
37
+ return n;
38
+ }
39
+ function c(t, n) {
40
+ return n ? t ? t + " " + n : t + n : t;
41
+ }
42
+ r.exports ? (e.default = e, r.exports = e) : window.classNames = e;
43
+ })();
44
+ }(u)), u.exports;
45
+ }
46
+ var d = x();
47
+ const O = /* @__PURE__ */ m(d), B = ["xxl", "xl", "lg", "md", "sm", "xs"], y = "xs", a = /* @__PURE__ */ l.createContext({
48
+ prefixes: {},
49
+ breakpoints: B,
50
+ minBreakpoint: y
51
+ });
52
+ function h(r, o) {
53
+ const {
54
+ prefixes: e
55
+ } = i(a);
56
+ return r || e[o] || o;
57
+ }
58
+ function A() {
59
+ const {
60
+ breakpoints: r
61
+ } = i(a);
62
+ return r;
63
+ }
64
+ function E() {
65
+ const {
66
+ minBreakpoint: r
67
+ } = i(a);
68
+ return r;
69
+ }
70
+ function N() {
71
+ const {
72
+ dir: r
73
+ } = i(a);
74
+ return r === "rtl";
75
+ }
76
+ export {
77
+ A as a,
78
+ E as b,
79
+ O as c,
80
+ N as d,
81
+ m as g,
82
+ h as u
83
+ };
@@ -1,4 +1,4 @@
1
- import { g as ge } from "./ThemeProvider-CFCmmLJC.js";
1
+ import { g as ge } from "./ThemeProvider-DwZMEupk.js";
2
2
  var V = { exports: {} }, N = { exports: {} }, T = {};
3
3
  /** @license React v16.13.1
4
4
  * react-is.production.min.js
@@ -2,6 +2,10 @@ import { default as React } from 'react';
2
2
  interface TarjetaProps {
3
3
  title: string;
4
4
  children: React.ReactNode;
5
+ method?: string;
6
+ validated?: boolean;
7
+ onSubmit?: any;
8
+ hasBody?: boolean;
5
9
  }
6
10
  declare const Tarjeta: React.FC<TarjetaProps>;
7
11
  export { Tarjeta };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { g as a } from "../../NotificacionUsuario-kzdhBqMF.js";
2
+ import { g as a } from "../../NotificacionUsuario-uif1f5Yt.js";
3
3
  export {
4
4
  a as default
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as i, g as b, a as p, b as T } from "../../Bootstrap-B6mAgGTS.js";
3
- import { P as t } from "../../index-Bk5C3cP1.js";
2
+ import { T as i, g as b, a as p, b as T } from "../../Bootstrap-alDYHlwa.js";
3
+ import { P as t } from "../../index-B-HWDQSx.js";
4
4
  import "react";
5
5
  import '../../assets/TabVentana.css';const o = ({
6
6
  transition: n,
@@ -3,9 +3,9 @@ import * as b from "react";
3
3
  import T, { useRef as O, useContext as E, useEffect as M } from "react";
4
4
  import { B as H } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
5
5
  import { MenuLateral as F } from "./MenuLateral.js";
6
- import { N as W, u as Y, a as z, d as G, b as J, q as Q, c as B, e as D, f as X, g as Z } from "../../NotificacionUsuario-kzdhBqMF.js";
7
- import { u as ee, T as te, g as ne, a as ae, b as re } from "../../Bootstrap-B6mAgGTS.js";
8
- import { u as L, c as k } from "../../ThemeProvider-CFCmmLJC.js";
6
+ import { N as W, u as Y, a as z, d as G, b as J, q as Q, c as B, e as D, f as X, g as Z } from "../../NotificacionUsuario-uif1f5Yt.js";
7
+ import { u as ee, T as te, g as ne, a as ae, b as re } from "../../Bootstrap-alDYHlwa.js";
8
+ import { u as L, c as k } from "../../ThemeProvider-DwZMEupk.js";
9
9
  import { S as P, T as se, m as oe } from "../../TabContext-BvNFEruk.js";
10
10
  import { c as le } from "../../CardHeaderContext-DVw0yHuy.js";
11
11
  function R(n, e) {
@@ -2,9 +2,9 @@ import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
2
  import { e as w } from "../../index-DHX2gxCC.js";
3
3
  import * as s from "react";
4
4
  import { useContext as $, useMemo as T } from "react";
5
- import { c as p, u as R } from "../../ThemeProvider-CFCmmLJC.js";
6
- import { w as j } from "../../warning-BMiIoRBk.js";
7
- import { P as l } from "../../index-Bk5C3cP1.js";
5
+ import { c as p, u as R } from "../../ThemeProvider-DwZMEupk.js";
6
+ import { w as j } from "../../warning-b8Ghk8WQ.js";
7
+ import { P as l } from "../../index-B-HWDQSx.js";
8
8
  import '../../assets/Buscador.css';const k = {
9
9
  /**
10
10
  * Specify whether the feedback is for valid or invalid fields
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
3
  import $ from "react";
4
4
  import { d as k } from "../../index-DHX2gxCC.js";
5
- import { u as x, c as N } from "../../ThemeProvider-CFCmmLJC.js";
5
+ import { u as x, c as N } from "../../ThemeProvider-DwZMEupk.js";
6
6
  import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
7
7
  bsPrefix: n,
8
8
  className: s,
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import React__default, { useEffect, useState, useRef } from "react";
3
- import { g as getDefaultExportFromCjs } from "../../ThemeProvider-CFCmmLJC.js";
3
+ import { g as getDefaultExportFromCjs } from "../../ThemeProvider-DwZMEupk.js";
4
4
  import { EncabezadoTabla } from "./EncabezadoTabla.js";
5
5
  import { Tabla } from "./Tabla.js";
6
6
  import { CustomModal } from "./Modal.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import '../../assets/Tarjeta.css';/* empty css */
3
- import { C as o } from "../../CardBody-RoDe1y90.js";
3
+ import { C as o } from "../../CardBody-B9vvCH8g.js";
4
4
  const c = ({ isGray: t = !1, children: a, isLast: r = !1 }) => /* @__PURE__ */ e(o, { className: `${t ? "tarjeta-container-section" : ""} ${r ? "tarjeta-container-last" : ""} tarjeta-container`, children: a });
5
5
  export {
6
6
  c as ContenedorTarjeta
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, Fragment as o, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as d } from "react";
3
3
  import '../../assets/Paginador.css';/* empty css */
4
- import { C as m } from "../../Card-BXqmurzN.js";
5
- import { B as c } from "../../Button-BLXN_4Tu.js";
4
+ import { C as m } from "../../Card-aTqC9rSK.js";
5
+ import { B as c } from "../../Button-Gn1tKaoW.js";
6
6
  const f = ({ stepContent: i, onSubmit: s }) => {
7
7
  const [e, n] = d(0);
8
8
  return /* @__PURE__ */ t(o, { children: [
@@ -1,10 +1,69 @@
1
- import { jsxs as t, jsx as a } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as d, Fragment as j } from "react/jsx-runtime";
2
2
  import '../../assets/Tarjeta.css';/* empty css */
3
- import { C as n, a as s } from "../../Card-BXqmurzN.js";
4
- const d = ({ title: e, children: r }) => /* @__PURE__ */ t(n, { className: "border-0 mb-4 tarjeta-unp", children: [
5
- /* @__PURE__ */ a(s, { className: "d-flex justify-content-between align-items-center bg-unp text-light py-3 tarjeta-header-unp", children: e }),
6
- r
3
+ import { ContenedorTarjeta as b } from "./ContenedorTarjeta.js";
4
+ import { C, a as N } from "../../Card-aTqC9rSK.js";
5
+ import { C as g } from "../../CardBody-B9vvCH8g.js";
6
+ import { u as w, a as E, b as T, c as $ } from "../../ThemeProvider-DwZMEupk.js";
7
+ import * as v from "react";
8
+ import { B as p } from "../../Button-Gn1tKaoW.js";
9
+ const m = /* @__PURE__ */ v.forwardRef(({
10
+ bsPrefix: l,
11
+ className: r,
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: t = "div",
14
+ ...a
15
+ }, c) => {
16
+ const s = w(l, "row"), x = E(), h = T(), y = `${s}-cols`, f = [];
17
+ return x.forEach((o) => {
18
+ const n = a[o];
19
+ delete a[o];
20
+ let i;
21
+ n != null && typeof n == "object" ? {
22
+ cols: i
23
+ } = n : i = n;
24
+ const B = o !== h ? `-${o}` : "";
25
+ i != null && f.push(`${y}${B}-${i}`);
26
+ }), /* @__PURE__ */ e(t, {
27
+ ref: c,
28
+ ...a,
29
+ className: $(r, s, ...f)
30
+ });
31
+ });
32
+ m.displayName = "Row";
33
+ const u = {
34
+ color: "#f3f3f3",
35
+ backgroundColor: "#38a729",
36
+ borderColor: "#33a024",
37
+ marginTop: "20px",
38
+ marginBottom: "15px",
39
+ width: "100px"
40
+ }, H = ({
41
+ title: l,
42
+ children: r,
43
+ method: t = "GET",
44
+ validated: a = !1,
45
+ onSubmit: c = () => {
46
+ },
47
+ hasBody: s = !0
48
+ }) => /* @__PURE__ */ d(C, { className: "border-0 mb-4 tarjeta-unp", children: [
49
+ /* @__PURE__ */ e(N, { className: "d-flex justify-content-between align-items-center bg-unp text-light py-3 tarjeta-header-unp", children: l }),
50
+ /* @__PURE__ */ e(
51
+ "form",
52
+ {
53
+ method: t,
54
+ onSubmit: c,
55
+ noValidate: !0,
56
+ className: a ? "was-validated" : "",
57
+ children: s ? /* @__PURE__ */ d(g, { children: [
58
+ r,
59
+ t !== "GET" && /* @__PURE__ */ e(m, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) })
60
+ ] }) : /* @__PURE__ */ d(j, { children: [
61
+ r,
62
+ /* @__PURE__ */ e(b, { children: t !== "GET" && /* @__PURE__ */ e(m, { className: "d-flex justify-content-end me-0", children: /* @__PURE__ */ e(p, { style: u, type: "submit", children: "Enviar" }) }) })
63
+ ] })
64
+ }
65
+ )
7
66
  ] });
8
67
  export {
9
- d as Tarjeta
68
+ H as Tarjeta
10
69
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { F as i } from "../../index-DHX2gxCC.js";
3
3
  import '../../assets/Tarjeta.css';/* empty css */
4
- import { B as a } from "../../Button-BLXN_4Tu.js";
4
+ import { B as a } from "../../Button-Gn1tKaoW.js";
5
5
  const d = {
6
6
  fontColor: "#303d50s",
7
7
  fontSize: "1.1rem",
@@ -1,4 +1,4 @@
1
- import { g as v } from "./ThemeProvider-CFCmmLJC.js";
1
+ import { g as v } from "./ThemeProvider-DwZMEupk.js";
2
2
  var t, g;
3
3
  function w() {
4
4
  if (g) return t;
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.7.0",
5
+ "version": "0.7.2",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {
@@ -1,69 +0,0 @@
1
- import * as l from "react";
2
- import { useContext as c } from "react";
3
- import "react/jsx-runtime";
4
- function m(r) {
5
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
- }
7
- var i = { exports: {} };
8
- /*!
9
- Copyright (c) 2018 Jed Watson.
10
- Licensed under the MIT License (MIT), see
11
- http://jedwatson.github.io/classnames
12
- */
13
- var u;
14
- function x() {
15
- return u || (u = 1, function(r) {
16
- (function() {
17
- var o = {}.hasOwnProperty;
18
- function s() {
19
- for (var t = "", e = 0; e < arguments.length; e++) {
20
- var n = arguments[e];
21
- n && (t = a(t, p(n)));
22
- }
23
- return t;
24
- }
25
- function p(t) {
26
- if (typeof t == "string" || typeof t == "number")
27
- return t;
28
- if (typeof t != "object")
29
- return "";
30
- if (Array.isArray(t))
31
- return s.apply(null, t);
32
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
33
- return t.toString();
34
- var e = "";
35
- for (var n in t)
36
- o.call(t, n) && t[n] && (e = a(e, n));
37
- return e;
38
- }
39
- function a(t, e) {
40
- return e ? t ? t + " " + e : t + e : t;
41
- }
42
- r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
43
- })();
44
- }(i)), i.exports;
45
- }
46
- var d = x();
47
- const A = /* @__PURE__ */ m(d), y = ["xxl", "xl", "lg", "md", "sm", "xs"], v = "xs", f = /* @__PURE__ */ l.createContext({
48
- prefixes: {},
49
- breakpoints: y,
50
- minBreakpoint: v
51
- });
52
- function E(r, o) {
53
- const {
54
- prefixes: s
55
- } = c(f);
56
- return r || s[o] || o;
57
- }
58
- function N() {
59
- const {
60
- dir: r
61
- } = c(f);
62
- return r === "rtl";
63
- }
64
- export {
65
- N as a,
66
- A as c,
67
- m as g,
68
- E as u
69
- };