react-ecosistema-unp 0.4.6 → 0.5.3
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/CardHeaderContext-DVw0yHuy.js +6 -0
- package/dist/Tarjeta-Big0dus2.js +17 -0
- package/dist/accessibility/components/BarraAccesibilidad.js +52 -0
- package/dist/accessibility.js +4 -0
- package/dist/assets/BarraAccesibilidad.css +1 -0
- package/dist/assets/Encabezado.css +1 -0
- package/dist/assets/Tabla.css +1 -1
- package/dist/assets/TablaRegistros.css +1 -1
- package/dist/assets/Tarjeta.css +1 -0
- package/dist/assets/TituloModal.css +1 -1
- package/dist/lib/accessibility/components/BarraAccesibilidad.d.ts +2 -0
- package/dist/lib/accessibility.d.ts +1 -0
- package/dist/lib/tables/components/Modal.d.ts +1 -1
- package/dist/lib/ui/components/ContenedorTarjeta.d.ts +8 -0
- package/dist/lib/ui/components/Encabezado.d.ts +2 -1
- package/dist/lib/ui/components/Tarjeta.d.ts +7 -0
- package/dist/lib/ui.d.ts +2 -0
- package/dist/shared/components/VentanaTabs.js +63 -64
- package/dist/tables/components/Modal.js +7 -7
- package/dist/tables/components/TablaRegistros.js +653 -653
- package/dist/tables/components/TituloModal.js +15 -12
- package/dist/ui/components/ContenedorTarjeta.js +6 -0
- package/dist/ui/components/Encabezado.js +11 -31
- package/dist/ui/components/Subtitulo.js +11 -9
- package/dist/ui/components/Tarjeta.js +154 -0
- package/dist/ui.js +6 -2
- package/package.json +5 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import { u as t, c as e } from "./ThemeProvider-CFCmmLJC.js";
|
|
3
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
4
|
+
import './assets/Tarjeta.css';const p = /* @__PURE__ */ m.forwardRef(({
|
|
5
|
+
className: r,
|
|
6
|
+
bsPrefix: a,
|
|
7
|
+
as: o = "div",
|
|
8
|
+
...s
|
|
9
|
+
}, d) => (a = t(a, "card-body"), /* @__PURE__ */ c(o, {
|
|
10
|
+
ref: d,
|
|
11
|
+
className: e(r, a),
|
|
12
|
+
...s
|
|
13
|
+
})));
|
|
14
|
+
p.displayName = "CardBody";
|
|
15
|
+
export {
|
|
16
|
+
p as C
|
|
17
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useEffect as m } from "react";
|
|
3
|
+
import '../../assets/BarraAccesibilidad.css';const g = () => {
|
|
4
|
+
const [s, u] = i(!1), [l, b] = i(0), [n, r] = i(null), e = { MIN: -5, MAX: 5 };
|
|
5
|
+
m(() => {
|
|
6
|
+
s ? document.body.classList.add("contrast-govco") : document.body.classList.remove("contrast-govco");
|
|
7
|
+
}, [s]), m(() => {
|
|
8
|
+
document.documentElement.style.fontSize = `${100 + l * 10}%`;
|
|
9
|
+
}, [l]);
|
|
10
|
+
const f = () => {
|
|
11
|
+
u(!s), r((a) => a === "contrast" ? null : "contrast");
|
|
12
|
+
}, d = (a) => {
|
|
13
|
+
b((c) => {
|
|
14
|
+
const o = a === "increase" ? c + 1 : c - 1;
|
|
15
|
+
return o < e.MIN || o > e.MAX ? c : (r(a), o);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ t("div", { className: "position-fixed top-50 translate-middle-y", style: { right: 0, zIndex: 1200 }, children: /* @__PURE__ */ v("div", { className: "barra-accesibilidad-govco", children: [
|
|
19
|
+
/* @__PURE__ */ t(
|
|
20
|
+
"button",
|
|
21
|
+
{
|
|
22
|
+
className: `${n === "contrast" ? "active" : ""}`,
|
|
23
|
+
"aria-label": "Cambiar contraste",
|
|
24
|
+
onClick: f,
|
|
25
|
+
children: /* @__PURE__ */ t("span", { className: "govco-contrast" })
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
"button",
|
|
30
|
+
{
|
|
31
|
+
className: `${n === "decrease" ? "active" : ""}`,
|
|
32
|
+
"aria-label": "Disminuir letra",
|
|
33
|
+
onClick: () => d("decrease"),
|
|
34
|
+
"data-decrease-limit": e.MIN,
|
|
35
|
+
children: /* @__PURE__ */ t("span", { className: "govco-font-minimize" })
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
"button",
|
|
40
|
+
{
|
|
41
|
+
className: `${n === "increase" ? "active" : ""}`,
|
|
42
|
+
"aria-label": "Aumentar letra",
|
|
43
|
+
onClick: () => d("increase"),
|
|
44
|
+
"data-increase-limit": e.MAX,
|
|
45
|
+
children: /* @__PURE__ */ t("span", { className: "govco-font-maximize" })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }) });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
g as BarraAccesibilidad
|
|
52
|
+
};
|