@foodpilot/foods 0.3.136 → 0.3.138
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.
|
@@ -2,7 +2,7 @@ import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
|
2
2
|
import { FlexibleButtonType } from '../../../../innerComponents/FlexibleButton';
|
|
3
3
|
export type InitHeaderProps = {
|
|
4
4
|
title: FlexibleString;
|
|
5
|
-
actionButton
|
|
5
|
+
actionButton?: FlexibleButtonType;
|
|
6
6
|
cancelButton?: FlexibleButtonType;
|
|
7
7
|
};
|
|
8
8
|
export declare const InitHeader: (props: InitHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/main.js
CHANGED
|
@@ -43700,8 +43700,10 @@ const ite = (e) => {
|
|
|
43700
43700
|
"&:hover": {
|
|
43701
43701
|
textDecoration: "none"
|
|
43702
43702
|
}
|
|
43703
|
+
}, i = (s) => {
|
|
43704
|
+
s.stopPropagation(), t();
|
|
43703
43705
|
};
|
|
43704
|
-
return /* @__PURE__ */ f.jsx(ct, { onClick:
|
|
43706
|
+
return /* @__PURE__ */ f.jsx(ct, { onClick: i, sx: r, children: n });
|
|
43705
43707
|
}, lte = (e) => {
|
|
43706
43708
|
const {
|
|
43707
43709
|
values: t,
|
|
@@ -43725,7 +43727,7 @@ const ite = (e) => {
|
|
|
43725
43727
|
},
|
|
43726
43728
|
onMouseLeave: () => s(null),
|
|
43727
43729
|
sx: {
|
|
43728
|
-
|
|
43730
|
+
backgroundColor: i !== u ? "unset" : a.custom.grey[500]
|
|
43729
43731
|
},
|
|
43730
43732
|
className: "doughnut-chart-legend-item",
|
|
43731
43733
|
children: [
|
|
@@ -43805,7 +43807,7 @@ const ite = (e) => {
|
|
|
43805
43807
|
alignItems: "center"
|
|
43806
43808
|
}
|
|
43807
43809
|
) : null, dte = (e) => {
|
|
43808
|
-
const { values: t, labels: n, palette: o, icons: r = [], legend: i,
|
|
43810
|
+
const { values: t, labels: n, palette: o, icons: r = [], legend: i, setHoveredArcIndex: s } = e, a = Rw(t ?? []);
|
|
43809
43811
|
return /* @__PURE__ */ f.jsx(
|
|
43810
43812
|
ve,
|
|
43811
43813
|
{
|
|
@@ -43813,8 +43815,8 @@ const ite = (e) => {
|
|
|
43813
43815
|
justifyContent: "center",
|
|
43814
43816
|
sx: { width: "100%", alignItems: "flex-start" },
|
|
43815
43817
|
className: "doughnut-chart-legend-wrapper",
|
|
43816
|
-
children: /* @__PURE__ */ f.jsx(ve, { width: "100%", children: n.map((
|
|
43817
|
-
const
|
|
43818
|
+
children: /* @__PURE__ */ f.jsx(ve, { width: "100%", children: n.map((c, d) => {
|
|
43819
|
+
const u = t && t[d] !== void 0, p = (i == null ? void 0 : i.actions) && (i == null ? void 0 : i.seeMore) && (i == null ? void 0 : i.actions[d]) && i;
|
|
43818
43820
|
return /* @__PURE__ */ f.jsx(
|
|
43819
43821
|
ve,
|
|
43820
43822
|
{
|
|
@@ -43822,11 +43824,14 @@ const ite = (e) => {
|
|
|
43822
43824
|
alignItems: "center",
|
|
43823
43825
|
gap: "12px",
|
|
43824
43826
|
onMouseEnter: () => {
|
|
43825
|
-
|
|
43827
|
+
u && s(d);
|
|
43828
|
+
},
|
|
43829
|
+
onMouseLeave: () => s(null),
|
|
43830
|
+
onClick: () => {
|
|
43831
|
+
var h, g;
|
|
43832
|
+
p && (h = i == null ? void 0 : i.actions) != null && h[d] && ((g = i == null ? void 0 : i.actions) == null || g[d]());
|
|
43826
43833
|
},
|
|
43827
|
-
onMouseLeave: () => a(null),
|
|
43828
43834
|
sx: {
|
|
43829
|
-
opacity: s === null || s === u ? 1 : 0.4,
|
|
43830
43835
|
borderBottom: "1px solid #e3e2e0",
|
|
43831
43836
|
"&:last-of-type": {
|
|
43832
43837
|
borderBottom: "none"
|
|
@@ -43848,7 +43853,7 @@ const ite = (e) => {
|
|
|
43848
43853
|
},
|
|
43849
43854
|
className: "doughnut-chart-legend-item",
|
|
43850
43855
|
children: [
|
|
43851
|
-
cte(
|
|
43856
|
+
cte(d, o, r, t),
|
|
43852
43857
|
/* @__PURE__ */ f.jsx(
|
|
43853
43858
|
ie,
|
|
43854
43859
|
{
|
|
@@ -43857,7 +43862,7 @@ const ite = (e) => {
|
|
|
43857
43862
|
marginLeft: "4px"
|
|
43858
43863
|
},
|
|
43859
43864
|
className: "doughnut-chart-legend-item-label",
|
|
43860
|
-
children:
|
|
43865
|
+
children: c
|
|
43861
43866
|
}
|
|
43862
43867
|
),
|
|
43863
43868
|
/* @__PURE__ */ f.jsxs(
|
|
@@ -43873,7 +43878,7 @@ const ite = (e) => {
|
|
|
43873
43878
|
},
|
|
43874
43879
|
className: "doughnut-chart-legend-item-value",
|
|
43875
43880
|
children: [
|
|
43876
|
-
|
|
43881
|
+
c ? "- " : "",
|
|
43877
43882
|
/* @__PURE__ */ f.jsx(
|
|
43878
43883
|
X,
|
|
43879
43884
|
{
|
|
@@ -43887,24 +43892,24 @@ const ite = (e) => {
|
|
|
43887
43892
|
fontWeight: 500,
|
|
43888
43893
|
fontSize: "0.75rem"
|
|
43889
43894
|
},
|
|
43890
|
-
children:
|
|
43895
|
+
children: u ? `${a[d]} %` : "--%"
|
|
43891
43896
|
}
|
|
43892
43897
|
)
|
|
43893
43898
|
]
|
|
43894
43899
|
}
|
|
43895
43900
|
),
|
|
43896
|
-
|
|
43901
|
+
p && /* @__PURE__ */ f.jsx(
|
|
43897
43902
|
d4,
|
|
43898
43903
|
{
|
|
43899
|
-
action: i
|
|
43900
|
-
seeMore: i
|
|
43904
|
+
action: i.actions[d],
|
|
43905
|
+
seeMore: i.seeMore
|
|
43901
43906
|
}
|
|
43902
43907
|
)
|
|
43903
43908
|
]
|
|
43904
43909
|
}
|
|
43905
43910
|
)
|
|
43906
43911
|
},
|
|
43907
|
-
|
|
43912
|
+
d
|
|
43908
43913
|
);
|
|
43909
43914
|
}) })
|
|
43910
43915
|
}
|
|
@@ -43927,8 +43932,8 @@ const ite = (e) => {
|
|
|
43927
43932
|
dte,
|
|
43928
43933
|
{
|
|
43929
43934
|
labels: n,
|
|
43930
|
-
hoveredArcIndex: i,
|
|
43931
43935
|
setHoveredArcIndex: s,
|
|
43936
|
+
hoveredArcIndex: i,
|
|
43932
43937
|
values: t,
|
|
43933
43938
|
palette: o,
|
|
43934
43939
|
legend: r,
|
|
@@ -67568,7 +67573,7 @@ const _T = (e) => {
|
|
|
67568
67573
|
}
|
|
67569
67574
|
}
|
|
67570
67575
|
),
|
|
67571
|
-
/* @__PURE__ */ f.jsx(
|
|
67576
|
+
n && /* @__PURE__ */ f.jsx(
|
|
67572
67577
|
uc,
|
|
67573
67578
|
{
|
|
67574
67579
|
buttonOptions: n,
|