@foodpilot/foods 0.3.61 → 0.3.62
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/main.js +13 -28
- package/dist/main.umd.cjs +27 -27
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -42758,15 +42758,7 @@ const VU = AU(Vo), $U = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
42758
42758
|
});
|
|
42759
42759
|
Ul.register(xi);
|
|
42760
42760
|
const eie = (e) => {
|
|
42761
|
-
const {
|
|
42762
|
-
values: t,
|
|
42763
|
-
labels: n,
|
|
42764
|
-
colors: o,
|
|
42765
|
-
legend: r,
|
|
42766
|
-
children: i,
|
|
42767
|
-
valuesUnit: a,
|
|
42768
|
-
className: l
|
|
42769
|
-
} = e, [c, d] = Ye(null), [u, f] = Ye(!1), [h, g] = Ye(), [m, b] = Ye(null), [v, x] = Ye(null), C = (E, k) => {
|
|
42761
|
+
const { values: t, labels: n, colors: o, legend: r, children: i, valuesUnit: a, className: l } = e, [c, d] = Ye(null), [u, f] = Ye(!1), [h, g] = Ye(), [m, b] = Ye(null), [v, x] = Ye(null), C = (E, k) => {
|
|
42770
42762
|
b(E), x(k);
|
|
42771
42763
|
};
|
|
42772
42764
|
qt(() => {
|
|
@@ -42782,23 +42774,16 @@ const eie = (e) => {
|
|
|
42782
42774
|
handleChartHover: C
|
|
42783
42775
|
});
|
|
42784
42776
|
qt(() => {
|
|
42785
|
-
c !== null && n && n[c] !== void 0 && t && t[c] !== void 0 ? g(
|
|
42786
|
-
/* @__PURE__ */ p.
|
|
42787
|
-
|
|
42788
|
-
|
|
42789
|
-
|
|
42790
|
-
|
|
42791
|
-
me,
|
|
42792
|
-
|
|
42793
|
-
component: "span",
|
|
42794
|
-
fontWeight: 500,
|
|
42795
|
-
fontSize: "0.75rem",
|
|
42796
|
-
color: Me[1400],
|
|
42797
|
-
children: a
|
|
42798
|
-
}
|
|
42799
|
-
)
|
|
42777
|
+
c !== null && n && n[c] !== void 0 && t && t[c] !== void 0 ? g(
|
|
42778
|
+
/* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
42779
|
+
/* @__PURE__ */ p.jsx(me, { fontWeight: 700, fontSize: "0.75rem", children: n[c] }),
|
|
42780
|
+
/* @__PURE__ */ p.jsxs(me, { fontWeight: 700, fontSize: "1.5rem", children: [
|
|
42781
|
+
t[c],
|
|
42782
|
+
" ",
|
|
42783
|
+
a && /* @__PURE__ */ p.jsx(me, { component: "span", fontWeight: 500, fontSize: "0.75rem", color: Me[1400], children: a })
|
|
42784
|
+
] })
|
|
42800
42785
|
] })
|
|
42801
|
-
|
|
42786
|
+
) : f(!1);
|
|
42802
42787
|
}, [a, c, n, t]);
|
|
42803
42788
|
const O = t == null ? void 0 : t.reduce((E, k) => E + k, 0);
|
|
42804
42789
|
return /* @__PURE__ */ p.jsx(
|
|
@@ -42809,7 +42794,7 @@ const eie = (e) => {
|
|
|
42809
42794
|
gap: "3rem",
|
|
42810
42795
|
className: `doughnut-chart ${l}`,
|
|
42811
42796
|
children: /* @__PURE__ */ p.jsx(nb, { variant: "popover", popupId: "demoPopover", disableAutoFocus: !0, children: (E) => /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
42812
|
-
/* @__PURE__ */ p.
|
|
42797
|
+
/* @__PURE__ */ p.jsx(
|
|
42813
42798
|
ie,
|
|
42814
42799
|
{
|
|
42815
42800
|
position: "relative",
|
|
@@ -42817,7 +42802,7 @@ const eie = (e) => {
|
|
|
42817
42802
|
sx: w === "bottom" ? { maxWidth: "300px" } : { minWidth: "300px" },
|
|
42818
42803
|
className: "doughnut-chart-wrapper",
|
|
42819
42804
|
id: "doughnut-chart-wrapper",
|
|
42820
|
-
children: [
|
|
42805
|
+
children: /* @__PURE__ */ p.jsxs(ie, { position: "relative", children: [
|
|
42821
42806
|
/* @__PURE__ */ p.jsx(Hz, { ...M, style: { maxWidth: "100%" } }),
|
|
42822
42807
|
/* @__PURE__ */ p.jsx(
|
|
42823
42808
|
$U,
|
|
@@ -42871,7 +42856,7 @@ const eie = (e) => {
|
|
|
42871
42856
|
] })
|
|
42872
42857
|
}
|
|
42873
42858
|
)
|
|
42874
|
-
]
|
|
42859
|
+
] })
|
|
42875
42860
|
}
|
|
42876
42861
|
),
|
|
42877
42862
|
/* @__PURE__ */ p.jsx(ie, { display: "flex", onMouseEnter: () => f(!1), children: /* @__PURE__ */ p.jsx(
|