react-ecosistema-unp 0.3.1 → 0.4.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.
- package/dist/{Bootstrap-nyDWFTXk.js → Bootstrap-B6mAgGTS.js} +8144 -8806
- package/dist/{NotificacionUsuario-BAYfK-nd.js → NotificacionUsuario-BA4-axVh.js} +571 -609
- package/dist/TabContext-BvNFEruk.js +138 -0
- package/dist/ThemeProvider-CFCmmLJC.js +69 -0
- package/dist/assets/Buscador.css +1 -0
- package/dist/assets/Modal.css +1 -0
- package/dist/assets/NotificacionUsuario.css +1 -1
- package/dist/assets/Tabla.css +1 -0
- package/dist/assets/TablaRegistros.css +1 -0
- package/dist/index-Bk5C3cP1.js +667 -0
- package/dist/index-cWXT6a2B.js +11 -0
- package/dist/lib/tables/assets/animations/isLoading.json.d.ts +3 -0
- package/dist/lib/tables/assets/animations/noData.json.d.ts +5869 -0
- package/dist/lib/tables/assets/animations/noInfo.json.d.ts +2984 -0
- package/dist/lib/tables/components/Buscador.d.ts +6 -0
- package/dist/lib/tables/components/EncabezadoTabla.d.ts +9 -0
- package/dist/lib/tables/components/Modal.d.ts +10 -0
- package/dist/lib/tables/components/Tabla.d.ts +22 -0
- package/dist/lib/tables/components/TablaRegistros.d.ts +23 -0
- package/dist/lib/tables.d.ts +1 -0
- package/dist/shared/components/NotificacionUsuario.js +1 -1
- package/dist/shared/components/TabVentana.js +10 -9
- package/dist/shared/components/VentanaTabs.js +26 -25
- package/dist/tables/components/Buscador.js +103 -0
- package/dist/tables/components/EncabezadoTabla.js +27 -0
- package/dist/tables/components/Modal.js +43 -0
- package/dist/tables/components/Tabla.js +113 -0
- package/dist/tables/components/TablaRegistros.js +8171 -0
- package/dist/tables.js +4 -0
- package/dist/warning-BMiIoRBk.js +41 -0
- package/package.json +5 -2
- package/dist/TabContext-C1blj64Y.js +0 -204
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as x from "react";
|
|
2
|
+
import a, { useMemo as P, useRef as m, useEffect as k, useCallback as S, useState as y, useContext as b } from "react";
|
|
3
|
+
function H(e, t) {
|
|
4
|
+
if (e == null) return {};
|
|
5
|
+
var r = {};
|
|
6
|
+
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
|
7
|
+
if (t.indexOf(n) !== -1) continue;
|
|
8
|
+
r[n] = e[n];
|
|
9
|
+
}
|
|
10
|
+
return r;
|
|
11
|
+
}
|
|
12
|
+
function F(e) {
|
|
13
|
+
return e && e.ownerDocument || document;
|
|
14
|
+
}
|
|
15
|
+
const h = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
16
|
+
var $ = !1, v = !1;
|
|
17
|
+
try {
|
|
18
|
+
var d = {
|
|
19
|
+
get passive() {
|
|
20
|
+
return $ = !0;
|
|
21
|
+
},
|
|
22
|
+
get once() {
|
|
23
|
+
return v = $ = !0;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
h && (window.addEventListener("test", d, d), window.removeEventListener("test", d, !0));
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
function z(e, t, r, n) {
|
|
30
|
+
if (n && typeof n != "boolean" && !v) {
|
|
31
|
+
var c = n.once, o = n.capture, u = r;
|
|
32
|
+
!v && c && (u = r.__once || function i(f) {
|
|
33
|
+
this.removeEventListener(t, i, o), r.call(this, f);
|
|
34
|
+
}, r.__once = u), e.addEventListener(t, u, $ ? n : o);
|
|
35
|
+
}
|
|
36
|
+
e.addEventListener(t, r, n);
|
|
37
|
+
}
|
|
38
|
+
function E(e, t, r, n) {
|
|
39
|
+
var c = n && typeof n != "boolean" ? n.capture : n;
|
|
40
|
+
e.removeEventListener(t, r, c), r.__once && e.removeEventListener(t, r.__once, c);
|
|
41
|
+
}
|
|
42
|
+
function B(e, t, r, n) {
|
|
43
|
+
return z(e, t, r, n), function() {
|
|
44
|
+
E(e, t, r, n);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const w = (e) => !e || typeof e == "function" ? e : (t) => {
|
|
48
|
+
e.current = t;
|
|
49
|
+
};
|
|
50
|
+
function L(e, t) {
|
|
51
|
+
const r = w(e), n = w(t);
|
|
52
|
+
return (c) => {
|
|
53
|
+
r && r(c), n && n(c);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function R(e, t) {
|
|
57
|
+
return P(() => L(e, t), [e, t]);
|
|
58
|
+
}
|
|
59
|
+
function j(e) {
|
|
60
|
+
const t = m(e);
|
|
61
|
+
return k(() => {
|
|
62
|
+
t.current = e;
|
|
63
|
+
}, [e]), t;
|
|
64
|
+
}
|
|
65
|
+
function U(e) {
|
|
66
|
+
const t = j(e);
|
|
67
|
+
return S(function(...r) {
|
|
68
|
+
return t.current && t.current(...r);
|
|
69
|
+
}, [t]);
|
|
70
|
+
}
|
|
71
|
+
function Y(e, t, r) {
|
|
72
|
+
const n = m(e !== void 0), [c, o] = y(t), u = e !== void 0, i = n.current;
|
|
73
|
+
return n.current = u, !u && i && c !== t && o(t), [u ? e : c, S((...f) => {
|
|
74
|
+
const [p, ...C] = f;
|
|
75
|
+
let M = r == null ? void 0 : r(p, ...C);
|
|
76
|
+
return o(p), M;
|
|
77
|
+
}, [r])];
|
|
78
|
+
}
|
|
79
|
+
const s = {
|
|
80
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
81
|
+
current: 0
|
|
82
|
+
}, g = /* @__PURE__ */ a.createContext(s), V = /* @__PURE__ */ a.createContext(!1);
|
|
83
|
+
let q = !!(typeof window < "u" && window.document && window.document.createElement), l = /* @__PURE__ */ new WeakMap();
|
|
84
|
+
function D(e = !1) {
|
|
85
|
+
let t = b(g), r = m(null);
|
|
86
|
+
if (r.current === null && !e) {
|
|
87
|
+
var n, c;
|
|
88
|
+
let o = (c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || c === void 0 || (n = c.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
89
|
+
if (o) {
|
|
90
|
+
let u = l.get(o);
|
|
91
|
+
u == null ? l.set(o, {
|
|
92
|
+
id: t.current,
|
|
93
|
+
state: o.memoizedState
|
|
94
|
+
}) : o.memoizedState !== u.state && (t.current = u.id, l.delete(o));
|
|
95
|
+
}
|
|
96
|
+
r.current = ++t.current;
|
|
97
|
+
}
|
|
98
|
+
return r.current;
|
|
99
|
+
}
|
|
100
|
+
function G(e) {
|
|
101
|
+
let t = b(g);
|
|
102
|
+
t === s && !q && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
103
|
+
let r = D(!!e), n = t === s && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
104
|
+
return e || `${n}-${r}`;
|
|
105
|
+
}
|
|
106
|
+
function J(e) {
|
|
107
|
+
let t = a.useId(), [r] = y(X()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${s.prefix}`;
|
|
108
|
+
return e || `${n}-${t}`;
|
|
109
|
+
}
|
|
110
|
+
const A = typeof a.useId == "function" ? J : G;
|
|
111
|
+
function K() {
|
|
112
|
+
return !1;
|
|
113
|
+
}
|
|
114
|
+
function Q() {
|
|
115
|
+
return !0;
|
|
116
|
+
}
|
|
117
|
+
function W(e) {
|
|
118
|
+
return () => {
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function X() {
|
|
122
|
+
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(W, K, Q) : b(V);
|
|
123
|
+
}
|
|
124
|
+
const I = /* @__PURE__ */ x.createContext(null), O = (e, t = null) => e != null ? String(e) : t || null, T = /* @__PURE__ */ x.createContext(null);
|
|
125
|
+
export {
|
|
126
|
+
A as $,
|
|
127
|
+
I as S,
|
|
128
|
+
T,
|
|
129
|
+
H as _,
|
|
130
|
+
U as a,
|
|
131
|
+
Y as b,
|
|
132
|
+
h as c,
|
|
133
|
+
z as d,
|
|
134
|
+
B as l,
|
|
135
|
+
O as m,
|
|
136
|
+
F as o,
|
|
137
|
+
R as u
|
|
138
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.input-with-icon{border-radius:12px;padding-right:40px;box-shadow:0 1px 6px #00000012}.input-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:1.66rem;color:#303d50}.search-container{width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:flex-end;align-items:center;transition:opacity .4s ease;opacity:0;visibility:hidden;z-index:1000}.modal-overlay.show{opacity:1;visibility:visible}.modal-overlay.hide{opacity:0;visibility:none}.modal-container{width:42%;height:95vh;background:#fff;box-shadow:0 4px 8px #0003;position:relative;transform:translate(100%);transition:transform .4s ease,opacity .4s ease;border-radius:12px;margin:1.75em}.modal-container.show{transform:translate(0);opacity:1}.modal-container.hide{transform:translate(100%);opacity:0}@media (max-width: 1920px){.modal-container{width:45%!important}}@media (max-width: 1800px){.modal-container{width:47.5%!important}}@media (max-width: 1650px){.modal-container{width:50%!important}}@media (max-width: 1500px){.modal-container{width:52.5%!important}}@media (max-width: 1425px){.modal-container{width:57.5%!important}}@media (max-width: 1275px){.modal-container{width:65%!important}}@media (max-width: 1150px){.modal-container{width:75%!important}}@media (max-width: 992px){.modal-container{width:80%!important}}@media (max-width: 768px){.modal-container{width:90%!important}}.modal_header{display:flex;justify-content:space-between;align-items:center;padding:10px 30px;background-color:#303d50;color:#fff;font-weight:500;font-size:16px;border-radius:12px 12px 0 0}.modal_body{padding:35px;height:calc(100% - 56px);border-radius:0 0 12px 12px;overflow-y:auto}.close_button{background:none;border:none;font-size:1.5em;cursor:pointer;color:#fff}.close_button:hover{color:#d36269}.unp-row-subtitle{margin-bottom:4rem}.modal_subtitle_container{display:flex;gap:.5rem;font-size:18px;font-weight:400;align-items:center}.modal_body::-webkit-scrollbar{width:10px}.modal_body::-webkit-scrollbar-track{background:transparent}.modal_body::-webkit-scrollbar-thumb{background-color:#303d50;border-radius:10px;border:3px solid transparent;background-clip:padding-box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dropdown-toggle:after{display:none!important}.dropdown-menu.show{margin-right:2rem;border-radius:10px;border:0;box-shadow:0 6px 12px #0000002d}
|
|
1
|
+
.dropdown-toggle{padding-right:1rem!important}.dropdown-toggle:after{display:none!important}.dropdown-menu.show{margin-right:2rem;border-radius:10px;border:0;box-shadow:0 6px 12px #0000002d}.icono-notificaciones{width:25px;height:25px;color:#142338}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table_container{display:flex;flex-direction:column;gap:1.5rem;text-align:center;margin-top:2rem}.table-scroll{position:relative;max-height:70vh;overflow-y:auto;overflow-x:auto;margin-right:5px;margin-left:5px;border-radius:10px;box-shadow:0 2px 12px #00000016;background:#ececec}.table-scroll th,.table-scroll td{white-space:nowrap;word-wrap:normal;min-width:100px;padding-left:15px;padding-right:15px}.table-scroll::-webkit-scrollbar{width:20px}.table-scroll::-webkit-scrollbar-track{background:linear-gradient(to bottom right,#ececec,#f8f8f8,#fff);border-top-right-radius:10px;border-bottom-right-radius:10px}.table-scroll::-webkit-scrollbar-thumb{background-color:#303d50;border-radius:10px;border:6px solid transparent;background-clip:padding-box}thead tr th{background-color:#fff!important;border-bottom:1px solid #DEE2E6!important;position:sticky;top:0;z-index:2}.table td,.table th{text-align:center;vertical-align:middle}.table{margin-bottom:0!important}.table-header-unp{background-color:#ebecee!important;color:#2c2c2c!important;font-weight:600;font-size:1.1rem;padding:1.25rem 0!important}.cell-with-modal{transition:background-color .3s ease}.cell-with-modal:hover{background-color:#303d50!important;color:#fff;font-weight:600}.data-count,.data-unp{font-weight:500;font-size:.85rem;margin-top:1rem;margin-left:5px;margin-right:5px;color:#8c8c8f}.animation-container{gap:2rem;height:73vh;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#919191}@media (min-width: 1800px){.table-scroll{max-height:75vh}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.unp-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-left:5px;margin-right:5px;margin-top:2rem;margin-bottom:2rem}.title-container{display:flex;gap:1rem;align-items:center;align-content:center}.logo-subtitle-container{height:100%;display:flex;gap:.66rem;align-items:center}.red-section{height:60px;width:10px;background-color:#d13c47;border-top-right-radius:7px;border-bottom-right-radius:7px}.img-logo{height:52px;object-fit:cover}.title{font-weight:500;font-size:1.55rem;color:#232323}.subtitle{font-size:1.05rem;color:#3f3f3f}.subtitle-container{display:flex;flex-direction:column}.inputs-container{display:flex;justify-content:end;width:35%;gap:1rem}@media (max-width: 1400px){.inputs-container{width:40%}}@media (max-width: 1300px){.inputs-container{width:42.5%}}@media (max-width: 1200px){.inputs-container{width:45%}}@media (max-width: 992px){.inputs-container{width:50%}}@media (max-width: 768px){.inputs-container{width:60%}}
|