react-ecosistema-unp 0.4.0 → 0.4.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.
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/TituloModal.css +1 -0
- package/dist/index-D3su-uEQ.js +15 -0
- package/dist/lib/tables/components/TituloModal.d.ts +16 -0
- package/dist/lib/ui/components/Encabezado.d.ts +1 -1
- package/dist/lib/ui.d.ts +2 -0
- package/dist/tables/components/Buscador.js +3 -3
- package/dist/tables/components/Tabla.js +1 -1
- package/dist/tables/components/TituloModal.js +51 -0
- package/dist/ui/components/Encabezado.js +5 -5
- package/dist/ui.js +6 -2
- package/package.json +1 -1
- package/dist/index-cWXT6a2B.js +0 -11
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +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:
|
|
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:40%!important}}@media (max-width: 1800px){.modal-container{width:42.5%!important}}@media (max-width: 1650px){.modal-container{width:45%!important}}@media (max-width: 1500px){.modal-container{width:50%!important}}@media (max-width: 1425px){.modal-container{width:55%!important}}@media (max-width: 1275px){.modal-container{width:57.5%!important}}@media (max-width: 1150px){.modal-container{width:60%!important}}@media (max-width: 992px){.modal-container{width:70%!important}}@media (max-width: 768px){.modal-container{width:80%!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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.modal-title-container{display:flex;justify-content:space-between;align-items:center}.red-item{height:30px;width:8px;background-color:#d13c47;border-top-right-radius:5px;border-bottom-right-radius:5px}.modal-subtitle-container-left{display:flex;justify-content:center;align-items:center;font-weight:500;gap:.5rem}.modal-subtitle{margin:0;padding:0;font-size:1.1rem;color:#303d50;font-weight:600}.modal-subtitle-container-right{display:flex;justify-content:flex-end;overflow:visible}.animation-wrapper{position:relative;display:grid;grid-template-columns:1fr;width:100%}.buttons-group,.close-group{grid-row-start:1;grid-column-start:1;display:flex;gap:1rem;align-items:center;transition:all .2s cubic-bezier(.1,0,.1,1)}.buttons-group{opacity:1}.close-group{opacity:0;justify-content:flex-end}.buttons-group.hide{opacity:0}.close-group.show{opacity:1}.icon-registro{font-size:1.66rem;transition:all .3s ease-in-out;color:#646c73}.icon-registro:hover{color:#1f79ef;transition:all .3s ease-in-out;cursor:pointer}.icon-close-registro{font-size:1.66rem;transition:all .3s ease-in-out;color:#d13c47}.icon-close-registro:hover{color:#a31a23;transition:all .3s ease-in-out;cursor:pointer}.modal-horizontal-line{border-radius:10px;border-top:2px solid #D13C47;margin-top:.5rem;opacity:.75}.modal-title-body{height:calc(100% - 72px);overflow-y:auto}.modal-title-body::-webkit-scrollbar{width:10px}.modal-title-body::-webkit-scrollbar-track{background:transparent}.modal-title-body::-webkit-scrollbar-thumb{background-color:#303d50;border-radius:10px;border:3px solid transparent;background-clip:padding-box}.icon-container{position:relative;display:inline-block}.tooltip-text{z-index:9999;visibility:hidden;width:max-content;background-color:#737a83c0;color:#fff;text-align:center;border-radius:7px;padding:6px 10px;position:absolute;z-index:1000;top:100%;right:0;margin-top:8px;opacity:0;transition:opacity .1s;pointer-events:none;font-size:.9rem;transition:all .1s ease-in-out}.icon-container:hover .tooltip-text{visibility:visible;opacity:1}
|
|
@@ -0,0 +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);
|
|
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);
|
|
7
|
+
}
|
|
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);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as F,
|
|
13
|
+
s as a,
|
|
14
|
+
r as b
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from 'react-icons';
|
|
3
|
+
interface ButtonArray {
|
|
4
|
+
title: string;
|
|
5
|
+
icon: IconType;
|
|
6
|
+
onShow: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface TituloModalProps {
|
|
9
|
+
title: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
buttons?: ButtonArray[];
|
|
12
|
+
isShowing?: boolean;
|
|
13
|
+
setIsShowing?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
}
|
|
15
|
+
declare const TituloModal: React.FC<TituloModalProps>;
|
|
16
|
+
export { TituloModal };
|
package/dist/lib/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as w } from "../../index-D3su-uEQ.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";
|
|
@@ -80,7 +80,7 @@ const z = Object.assign(u, {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
f.displayName = "FormGroup";
|
|
83
|
-
const
|
|
83
|
+
const D = ({ onSearch: e }) => {
|
|
84
84
|
const r = (o) => o.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
85
85
|
return /* @__PURE__ */ n("div", { className: "search-container", children: /* @__PURE__ */ C(f, { className: "d-flex align-items-center mx-1 position-relative", children: [
|
|
86
86
|
/* @__PURE__ */ n(
|
|
@@ -99,5 +99,5 @@ const E = ({ onSearch: e }) => {
|
|
|
99
99
|
] }) });
|
|
100
100
|
};
|
|
101
101
|
export {
|
|
102
|
-
|
|
102
|
+
D as default
|
|
103
103
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import x from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { a as $ } from "../../index-D3su-uEQ.js";
|
|
5
5
|
import { u as k, c as N } from "../../ThemeProvider-CFCmmLJC.js";
|
|
6
6
|
import '../../assets/Tabla.css';const v = /* @__PURE__ */ C.forwardRef(({
|
|
7
7
|
bsPrefix: n,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as p } from "react";
|
|
3
|
+
import { F as v } from "../../index-D3su-uEQ.js";
|
|
4
|
+
import '../../assets/TituloModal.css';const x = ({ title: m, children: h, buttons: i, isShowing: s, setIsShowing: u = () => {
|
|
5
|
+
} }) => {
|
|
6
|
+
const [a, o] = d(0), [r, c] = d(!0);
|
|
7
|
+
return p(() => {
|
|
8
|
+
}, [a]), /* @__PURE__ */ t(N, { children: [
|
|
9
|
+
/* @__PURE__ */ t("div", { style: { marginBottom: "2rem" }, children: [
|
|
10
|
+
/* @__PURE__ */ t("div", { className: "modal-title-container", children: [
|
|
11
|
+
/* @__PURE__ */ t("div", { className: "modal-subtitle-container-left", children: [
|
|
12
|
+
/* @__PURE__ */ e("div", { className: "red-item" }),
|
|
13
|
+
/* @__PURE__ */ e("div", { className: "modal-subtitle", children: s && i && a ? i[a - 1].title : m })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ e("div", { className: "modal-subtitle-container-right", children: /* @__PURE__ */ t("div", { className: "animation-wrapper", children: [
|
|
16
|
+
r && /* @__PURE__ */ e("div", { className: `buttons-group ${s ? "hide" : "show"}`, children: i && i.map((l, n) => /* @__PURE__ */ t("div", { className: "icon-container", children: [
|
|
17
|
+
/* @__PURE__ */ e(
|
|
18
|
+
l.icon,
|
|
19
|
+
{
|
|
20
|
+
className: "icon-registro",
|
|
21
|
+
onClick: () => {
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
c(!1);
|
|
24
|
+
}, 200), l.onShow(), o(n + 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ e("span", { className: "tooltip-text", children: l.title })
|
|
29
|
+
] }, n)) }),
|
|
30
|
+
!r && /* @__PURE__ */ e("div", { className: `close-group ${s ? "show" : "hide"}`, children: /* @__PURE__ */ e(
|
|
31
|
+
v,
|
|
32
|
+
{
|
|
33
|
+
className: "icon-close-registro",
|
|
34
|
+
onClick: () => {
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
c(!0);
|
|
37
|
+
}, 200), u(!1), o(0);
|
|
38
|
+
},
|
|
39
|
+
style: { position: "absolute", right: 0 }
|
|
40
|
+
}
|
|
41
|
+
) })
|
|
42
|
+
] }) })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ e("hr", { className: "modal-horizontal-line" })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ e("div", { className: "modal-title-body", children: h })
|
|
47
|
+
] });
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
x as TituloModal
|
|
51
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const i = {
|
|
3
3
|
borderLeft: "8px solid",
|
|
4
4
|
borderLeftColor: "#d13c47",
|
|
5
5
|
height: "65px",
|
|
@@ -7,13 +7,13 @@ const l = {
|
|
|
7
7
|
display: "flex",
|
|
8
8
|
alignItems: "center",
|
|
9
9
|
marginLeft: "0px"
|
|
10
|
-
},
|
|
10
|
+
}, l = {
|
|
11
11
|
height: "60px",
|
|
12
12
|
marginLeft: "12px",
|
|
13
13
|
marginRight: "15px",
|
|
14
14
|
alignSelf: "center"
|
|
15
|
-
}, r = ({ dependencia: n }) => /* @__PURE__ */ e("div", { style:
|
|
16
|
-
/* @__PURE__ */ e("img", { src: "https://i.imgur.com/MYXJbgg.png", style:
|
|
15
|
+
}, r = ({ dependencia: n }) => /* @__PURE__ */ e("div", { style: i, children: /* @__PURE__ */ t("div", { style: { display: "flex", justifyContent: "flex-start", alignItems: "center" }, children: [
|
|
16
|
+
/* @__PURE__ */ e("img", { src: "https://i.imgur.com/MYXJbgg.png", style: l }),
|
|
17
17
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", justifyContent: "start" }, children: [
|
|
18
18
|
/* @__PURE__ */ e("h4", { className: "d-none d-md-block", style: { margin: "0px 0px 4px 0px", fontWeight: "700" }, children: " Unidad Nacional de Protección " }),
|
|
19
19
|
/* @__PURE__ */ e("h5", { className: "d-block d-md-none", style: { margin: "0px 0px 4px 0px", fontWeight: "700", fontSize: "1rem" }, children: " Unidad Nacional de Protección " }),
|
|
@@ -30,5 +30,5 @@ const l = {
|
|
|
30
30
|
] })
|
|
31
31
|
] }) });
|
|
32
32
|
export {
|
|
33
|
-
r as
|
|
33
|
+
r as Encabezado
|
|
34
34
|
};
|
package/dist/ui.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Encabezado as t } from "./ui/components/Encabezado.js";
|
|
2
|
+
import { Subtitulo as a } from "./ui/components/Subtitulo.js";
|
|
3
|
+
import { TituloModal as l } from "./tables/components/TituloModal.js";
|
|
2
4
|
export {
|
|
3
|
-
|
|
5
|
+
t as Encabezado,
|
|
6
|
+
a as Subtitulo,
|
|
7
|
+
l as TituloModal
|
|
4
8
|
};
|
package/package.json
CHANGED
package/dist/index-cWXT6a2B.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { G as a } from "./iconBase-LROS5hdG.js";
|
|
2
|
-
function i(t) {
|
|
3
|
-
return a({ 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: [] }] })(t);
|
|
4
|
-
}
|
|
5
|
-
function s(t) {
|
|
6
|
-
return a({ 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: [] }] })(t);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
i as F,
|
|
10
|
-
s as a
|
|
11
|
-
};
|