@foodpilot/foods 2.25.0 → 2.25.1
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.
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as r,Fragment as e,jsx as o}from"react/jsx-runtime";import{useTheme as a,IconButton as i,Popover as l,Box as t,Typography as n,Stack as c}from"@mui/material";import s from"@mui/icons-material/InfoOutlined";import{useState as d}from"react";const m=m=>{const{title:p,lines:u,totalLabel:g,totalFormattedValue:x,totalUnit:b,totalColor:f,ariaLabel:h}=m,y=a(),[z,v]=d(null),S=null!==z;/* @__PURE__ */
|
|
2
|
+
return r(e,{children:[
|
|
3
|
+
/* @__PURE__ */o(i,{size:"small",onClick:r=>{v(S?null:r.currentTarget)},"aria-label":h,"aria-expanded":S,sx:{padding:0,marginLeft:y.spacing(.5)},children:/* @__PURE__ */o(s,{fontSize:"small"})}),
|
|
4
|
+
/* @__PURE__ */o(l,{open:S,anchorEl:z,onClose:()=>v(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{sx:{padding:y.spacing(1),borderRadius:y.spacing(1),border:`1px solid ${y.custom.grey[600]}`,boxShadow:"0px 4px 20px 0px rgba(81, 78, 78, 0.12)"}}},children:/* @__PURE__ */r(t,{sx:{display:"flex",flexDirection:"column",gap:y.spacing(.5)},children:[
|
|
5
|
+
/* @__PURE__ */o(n,{variant:"small-regular",sx:{color:y.custom.grey[2e3]},children:p}),
|
|
6
|
+
/* @__PURE__ */o(c,{gap:y.spacing(.5),children:u.map(e=>/* @__PURE__ */r(c,{direction:"row",justifyContent:"space-between",gap:1,children:[
|
|
7
|
+
/* @__PURE__ */o(n,{variant:"body-regular",sx:{fontSize:"0.75rem",color:y.custom.grey[2500]},children:e.label}),
|
|
8
|
+
/* @__PURE__ */o(n,{variant:"body-medium",sx:{fontSize:"0.75rem",color:e.color},children:e.formattedValue})]},e.label))}),
|
|
9
|
+
/* @__PURE__ */o(t,{sx:{borderTop:`1px solid ${y.custom.grey[600]}`}}),
|
|
10
|
+
/* @__PURE__ */r(c,{direction:"row",justifyContent:"space-between",gap:1,children:[
|
|
11
|
+
/* @__PURE__ */o(n,{variant:"body-regular",sx:{fontSize:"0.75rem"},children:g}),
|
|
12
|
+
/* @__PURE__ */r(n,{variant:"body-medium",sx:{fontSize:"0.75rem",color:f},children:[x," ",b]})]})]})})]})};export{m as ActionPlanIndicatorBreakdownPopover};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
2
|
-
return e(
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */e(a,{sx:{display:"flex",alignItems:"
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useTheme as t,Stack as i,Typography as n,Box as a}from"@mui/material";const l=l=>{const{message:c,formattedValue:o,unit:s,valueColor:m}=l,g=t();/* @__PURE__ */
|
|
2
|
+
return e(i,{alignItems:"center",justifyContent:"center",sx:{flex:1,minHeight:g.spacing(20),textAlign:"center",padding:g.spacing(2),gap:g.spacing(1)},children:[
|
|
3
|
+
/* @__PURE__ */r(n,{variant:"small-bold",color:"text.primary",children:c}),
|
|
4
|
+
/* @__PURE__ */e(a,{sx:{display:"flex",alignItems:"flex-end",gap:g.spacing(1)},children:[
|
|
5
|
+
/* @__PURE__ */r(n,{variant:"number-big",sx:{color:m??g.palette.text.primary},children:o??"—"}),
|
|
6
|
+
/* @__PURE__ */r(n,{variant:"big-regular",sx:{color:g.custom.grey[2e3]},children:s})]})]})};export{l as ActionPlanNetImpactBody};
|