@kashifd/jwero-components 0.7.64 → 0.7.66
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/index.es.js
CHANGED
|
@@ -5497,7 +5497,7 @@ const Wp = (e) => {
|
|
|
5497
5497
|
return (t / 1e6).toFixed(1).replace(/\.0$/, "") + "M";
|
|
5498
5498
|
if (t >= 1e9)
|
|
5499
5499
|
return (t / 1e9).toFixed(1).replace(/\.0$/, "") + "B";
|
|
5500
|
-
}, LC = Te(q0)(({ stroke: e,
|
|
5500
|
+
}, LC = Te(q0)(({ stroke: e, badgeType: t, sx: r }) => ({
|
|
5501
5501
|
"& .MuiBadge-badge": {
|
|
5502
5502
|
backgroundColor: "#E30000",
|
|
5503
5503
|
color: "white",
|
|
@@ -5505,11 +5505,11 @@ const Wp = (e) => {
|
|
|
5505
5505
|
width: t === "off" ? "8px" : "auto",
|
|
5506
5506
|
height: t === "off" ? "8px" : "auto",
|
|
5507
5507
|
minWidth: t === "off" ? "8px" : "auto",
|
|
5508
|
-
padding: t === "off" ? "0.25rem 0.25rem" : "0.25rem 0.5rem",
|
|
5508
|
+
padding: t === "off" ? "0.25rem 0.25rem" : t === "formatted" ? "0.3rem 0.3rem" : "0.25rem 0.5rem",
|
|
5509
5509
|
...r
|
|
5510
5510
|
}
|
|
5511
5511
|
})), af = ({
|
|
5512
|
-
type: e,
|
|
5512
|
+
type: e = "single",
|
|
5513
5513
|
count: t = 0,
|
|
5514
5514
|
stroke: r = !1,
|
|
5515
5515
|
sx: a
|
|
@@ -5531,13 +5531,13 @@ const Wp = (e) => {
|
|
|
5531
5531
|
default:
|
|
5532
5532
|
s = " ";
|
|
5533
5533
|
}
|
|
5534
|
-
return
|
|
5534
|
+
return /* @__PURE__ */ v.jsx(
|
|
5535
5535
|
LC,
|
|
5536
5536
|
{
|
|
5537
5537
|
badgeContent: s,
|
|
5538
5538
|
max: 1 / 0,
|
|
5539
5539
|
stroke: r,
|
|
5540
|
-
|
|
5540
|
+
badgeType: e,
|
|
5541
5541
|
sx: a
|
|
5542
5542
|
}
|
|
5543
5543
|
);
|
|
@@ -47569,11 +47569,7 @@ const jF = ({
|
|
|
47569
47569
|
}) => {
|
|
47570
47570
|
var S;
|
|
47571
47571
|
const u = Ot(), [g, m] = Yr(!1), b = (O, I) => {
|
|
47572
|
-
|
|
47573
|
-
console.log(O);
|
|
47574
|
-
return;
|
|
47575
|
-
}
|
|
47576
|
-
s != null && s.onClick ? s == null || s.onClick() : m(!1);
|
|
47572
|
+
I !== "clickaway" && (s != null && s.onClick ? s == null || s.onClick() : m(!1));
|
|
47577
47573
|
};
|
|
47578
47574
|
Si(() => {
|
|
47579
47575
|
if (e) {
|
|
@@ -48731,10 +48727,7 @@ const yW = ({
|
|
|
48731
48727
|
if (!b) return t;
|
|
48732
48728
|
const E = r.find((j) => j.value === b);
|
|
48733
48729
|
return [...t].sort((j, B) => {
|
|
48734
|
-
|
|
48735
|
-
const P = E != null && E.sortValue ? E.sortValue(j) : j[b], V = E != null && E.sortValue ? E.sortValue(B) : B[b];
|
|
48736
|
-
console.log(P, V);
|
|
48737
|
-
const U = P ?? "", F = V ?? "";
|
|
48730
|
+
const P = E != null && E.sortValue ? E.sortValue(j) : j[b], V = E != null && E.sortValue ? E.sortValue(B) : B[b], U = P ?? "", F = V ?? "";
|
|
48738
48731
|
return typeof U == "number" && typeof F == "number" ? S === "asc" ? U - F : F - U : S === "asc" ? String(U).localeCompare(String(F)) : String(F).localeCompare(String(U));
|
|
48739
48732
|
});
|
|
48740
48733
|
}, [t, b, S, r]);
|