ui-mathilde-web 0.1.21 → 0.1.22
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/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +5 -5
- package/dist/ui-mathilde-web.js +14 -14
- package/dist/ui-mathilde-web.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -175,11 +175,11 @@ declare interface MyDoughnutChartProps {
|
|
|
175
175
|
datasets: {
|
|
176
176
|
label: string;
|
|
177
177
|
data: number[];
|
|
178
|
-
backgroundColor: [
|
|
179
|
-
borderColor: [
|
|
180
|
-
borderWidth:
|
|
181
|
-
circumference:
|
|
182
|
-
rotation:
|
|
178
|
+
backgroundColor: string[];
|
|
179
|
+
borderColor: string[];
|
|
180
|
+
borderWidth: number;
|
|
181
|
+
circumference: number;
|
|
182
|
+
rotation: number;
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
185
|
}
|
package/dist/ui-mathilde-web.js
CHANGED
|
@@ -263,9 +263,7 @@ const Gy = {
|
|
|
263
263
|
current: r,
|
|
264
264
|
type: n
|
|
265
265
|
}) => {
|
|
266
|
-
const a = (r - t) / (e - t) * 100;
|
|
267
|
-
console.log(a);
|
|
268
|
-
const i = Math.min(Math.max(a, 0), 100);
|
|
266
|
+
const a = (r - t) / (e - t) * 100, i = Math.min(Math.max(a, 0), 100);
|
|
269
267
|
return /* @__PURE__ */ K("div", { className: "w-full p-1", children: [
|
|
270
268
|
/* @__PURE__ */ K("div", { className: "flex justify-between text-xs text-gray-400 mb-2", children: [
|
|
271
269
|
/* @__PURE__ */ y("span", { children: t.toLocaleString() }),
|
|
@@ -6764,7 +6762,7 @@ const Xu = (t) => new Intl.NumberFormat("es-CO", {
|
|
|
6764
6762
|
const e = t, r = {
|
|
6765
6763
|
responsive: !0,
|
|
6766
6764
|
maintainAspectRatio: !1,
|
|
6767
|
-
cutout: "
|
|
6765
|
+
cutout: "75%",
|
|
6768
6766
|
plugins: {
|
|
6769
6767
|
title: {
|
|
6770
6768
|
display: !0,
|
|
@@ -6806,7 +6804,7 @@ const Xu = (t) => new Intl.NumberFormat("es-CO", {
|
|
|
6806
6804
|
const {
|
|
6807
6805
|
ctx: s,
|
|
6808
6806
|
chartArea: { top: o, width: l, height: c }
|
|
6809
|
-
} = i, d = "Total", u = Xu(e.datasets[0].data[1]), f = o + c * 0.
|
|
6807
|
+
} = i, d = "Total", u = Xu(e.datasets[0].data[1]), f = o + c * 0.75;
|
|
6810
6808
|
s.save(), s.font = "30px Arial", s.fillStyle = "black", s.textAlign = "center", s.fillText(d, l / 2, f - 20), s.font = "bold 30px Arial", s.fillText(u, l / 2, f + 10), s.restore();
|
|
6811
6809
|
}
|
|
6812
6810
|
}, {
|
|
@@ -6816,7 +6814,7 @@ const Xu = (t) => new Intl.NumberFormat("es-CO", {
|
|
|
6816
6814
|
ctx: s,
|
|
6817
6815
|
chartArea: { top: o, width: l }
|
|
6818
6816
|
} = i;
|
|
6819
|
-
s.save(), s.font = "bold 15px Arial", s.textAlign = "right", s.fillText("MONEDA - COP", l + 85, o +
|
|
6817
|
+
s.save(), s.font = "bold 15px Arial", s.textAlign = "right", s.fillText("MONEDA - COP", l + 85, o + 40), s.restore();
|
|
6820
6818
|
}
|
|
6821
6819
|
}] }) });
|
|
6822
6820
|
}, D1 = "modal-module__overlay__cc2Es", M1 = "modal-module__modal__WAkuU", C1 = "modal-module__closeButton__1lo1j", el = {
|
|
@@ -10237,7 +10235,7 @@ const OI = ({
|
|
|
10237
10235
|
textColor: s = "#ffffff",
|
|
10238
10236
|
className: o = ""
|
|
10239
10237
|
}) => {
|
|
10240
|
-
const [l, c] = pe(a), [d, u] = pe(null), [f, h] = pe(/* @__PURE__ */ new Set()), [g, m] = pe(null), [p, w] = pe(null), b = e.filter((S) => S.position !== "bottom"), k = e.filter((S) => S.position === "bottom"), v = (S, F = "text-
|
|
10238
|
+
const [l, c] = pe(a), [d, u] = pe(null), [f, h] = pe(/* @__PURE__ */ new Set()), [g, m] = pe(null), [p, w] = pe(null), b = e.filter((S) => S.position !== "bottom"), k = e.filter((S) => S.position === "bottom"), v = (S, F = "text-xl") => typeof S == "string" ? /* @__PURE__ */ y("img", { src: S, style: { width: "25px", height: "25px" } }) : S ? ee.createElement(S, { className: F }) : null, x = (S = !1, F = !1) => ({
|
|
10241
10239
|
background: l ? "transparent" : F ? "#FFFFFF55" : S ? "#FFFFFF22" : "#FFFFFF33",
|
|
10242
10240
|
color: s,
|
|
10243
10241
|
borderRadius: S ? "15px" : "20px",
|
|
@@ -10307,7 +10305,7 @@ const OI = ({
|
|
|
10307
10305
|
}
|
|
10308
10306
|
},
|
|
10309
10307
|
children: [
|
|
10310
|
-
/* @__PURE__ */ y("div", { className: "mb-2 mt-5
|
|
10308
|
+
/* @__PURE__ */ y("div", { className: `${l ? "mx-auto" : ""} mb-2 mt-5 px-2`, children: /* @__PURE__ */ y("a", { href: "/", children: /* @__PURE__ */ y(
|
|
10311
10309
|
Tn,
|
|
10312
10310
|
{
|
|
10313
10311
|
classIm: "mx-3",
|
|
@@ -10318,19 +10316,21 @@ const OI = ({
|
|
|
10318
10316
|
}
|
|
10319
10317
|
) }) }),
|
|
10320
10318
|
/* @__PURE__ */ K("div", { className: "flex flex-col h-full", children: [
|
|
10321
|
-
/* @__PURE__ */ K(a_, { className: "flex-1 mx-
|
|
10319
|
+
/* @__PURE__ */ K(a_, { className: "flex-1 mx-5", children: [
|
|
10322
10320
|
/* @__PURE__ */ y("div", { className: "flex flex-col", children: T(b) }),
|
|
10323
|
-
/* @__PURE__ */ y("div", { className: "mt-
|
|
10321
|
+
/* @__PURE__ */ y("div", { className: "mt-20", children: T(k) })
|
|
10324
10322
|
] }),
|
|
10325
|
-
n && /* @__PURE__ */ y("div", { className: "w-full cursor-pointer py-4 px-
|
|
10323
|
+
n && /* @__PURE__ */ y("div", { className: "w-full cursor-pointer py-4 px-7 mt-auto", children: /* @__PURE__ */ y(
|
|
10326
10324
|
"div",
|
|
10327
10325
|
{
|
|
10328
|
-
className:
|
|
10326
|
+
className: "flex rounded-2xl p-2",
|
|
10329
10327
|
style: {
|
|
10330
|
-
background: l ? "transparent" : "#FFFFFF1A"
|
|
10328
|
+
background: l ? "transparent" : "#FFFFFF1A",
|
|
10329
|
+
float: l ? "none" : "right",
|
|
10330
|
+
width: l ? "" : "fit-content"
|
|
10331
10331
|
},
|
|
10332
10332
|
onClick: n,
|
|
10333
|
-
children: /* @__PURE__ */ y("button", {
|
|
10333
|
+
children: /* @__PURE__ */ y("button", { style: { color: s }, children: /* @__PURE__ */ y("img", { src: "https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg", width: "25px", height: "25px", alt: "logout" }) })
|
|
10334
10334
|
}
|
|
10335
10335
|
) })
|
|
10336
10336
|
] })
|