@foodpilot/foods 2.29.0 → 2.29.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,4 +1,4 @@
1
- import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useTheme as i,Stack as r,Box as t,Typography as n}from"@mui/material";import{forwardRef as l}from"react";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";import{greyTheme as a}from"../../../themes/common/colors.js";const c=l((l,c)=>{const{title:s,description:p,icon:m,selected:x=!1,disabled:b=!1,fullWidth:h=!1,onClick:f,id:u,tabIndex:g,onKeyDown:y}=l,k=i(),C=k.palette.primary,w=k.palette.grey,I=w[100],j=C[50]??I,v=C[200]??C.main,S=C[600]??C.main,W=w[600],D=b?a[1400]:k.palette.text.primary,F=b?w[300]:x?C[100]??j:j;/* @__PURE__ */
2
- return o(r,{component:"button",ref:c,id:u,type:"button",role:"radio","aria-checked":x,"aria-disabled":b,disabled:b,tabIndex:g,onClick:()=>{b||f?.()},onKeyDown:y,direction:"row",alignItems:"center",gap:k.spacing(2),sx:{width:h?"100%":"306px",flex:h?1:"0 0 auto",minWidth:0,minHeight:"82px",padding:k.spacing(2),border:`1px solid ${b?W:x?S:v}`,borderRadius:"12px",backgroundColor:x?j:I,boxShadow:"0px 2px 8px 0px rgba(42, 43, 39, 0.04)",color:D,cursor:b?"not-allowed":"pointer",font:"inherit",textAlign:"left",transition:"background-color 150ms ease, border-color 150ms ease","&:hover":b?void 0:{backgroundColor:j,borderColor:S},"&:focus-visible":{outline:`2px solid ${S}`,outlineOffset:"2px"}},children:[m&&/* @__PURE__ */e(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,padding:k.spacing(1),borderRadius:"12px",backgroundColor:F,color:D},children:m}),
3
- /* @__PURE__ */o(r,{flex:1,justifyContent:"center",minWidth:0,children:[
4
- /* @__PURE__ */e(n,{variant:"body-semibold",color:"inherit",children:s}),p&&/* @__PURE__ */e(n,{variant:"small",color:"inherit",children:p})]}),x&&/* @__PURE__ */e(t,{flexShrink:0,color:S,children:/* @__PURE__ */e(d,{icon:"checkCircleFilled",size:2})})]})});c.displayName="SelectionCard";export{c as SelectionCard};
1
+ import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useTheme as r,Stack as i,Box as t,Typography as n}from"@mui/material";import{forwardRef as l}from"react";import{FoodsIcon as a}from"../../Icons/FoodsIcon.js";import{greyTheme as d}from"../../../themes/common/colors.js";import{focusRingStyles as c}from"../../../themes/common/focusRing.js";const s=l((l,s)=>{const{title:m,description:p,icon:x,selected:h=!1,disabled:b=!1,fullWidth:f=!1,onClick:u,id:g,tabIndex:y,onKeyDown:k}=l,C=r(),j=C.palette.primary,w=C.palette.grey,I=w[100],v=j[50]??I,S=j[200]??j.main,R=j[600]??j.main,W=w[600],D=b?d[1400]:C.palette.text.primary,F=b?w[300]:h?j[100]??v:v;/* @__PURE__ */
2
+ return o(i,{component:"button",ref:s,id:g,type:"button",role:"radio","aria-checked":h,"aria-disabled":b,disabled:b,tabIndex:y,onClick:()=>{b||u?.()},onKeyDown:k,direction:"row",alignItems:"center",gap:C.spacing(2),sx:{width:f?"100%":"306px",flex:f?1:"0 0 auto",minWidth:0,minHeight:"82px",padding:C.spacing(2),border:`1px solid ${b?W:h?R:S}`,borderRadius:"12px",backgroundColor:h?v:I,boxShadow:"0px 2px 8px 0px rgba(42, 43, 39, 0.04)",color:D,cursor:b?"not-allowed":"pointer",font:"inherit",textAlign:"left",transition:"background-color 150ms ease, border-color 150ms ease","&:hover":b?void 0:{backgroundColor:v,borderColor:R},...c(C,"outer")},children:[x&&/* @__PURE__ */e(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,padding:C.spacing(1),borderRadius:"12px",backgroundColor:F,color:D},children:x}),
3
+ /* @__PURE__ */o(i,{flex:1,justifyContent:"center",minWidth:0,children:[
4
+ /* @__PURE__ */e(n,{variant:"body-semibold",color:"inherit",children:m}),p&&/* @__PURE__ */e(n,{variant:"small",color:"inherit",children:p})]}),h&&/* @__PURE__ */e(t,{flexShrink:0,color:R,children:/* @__PURE__ */e(a,{icon:"checkCircleFilled",size:2})})]})});s.displayName="SelectionCard";export{s as SelectionCard};
@@ -1,5 +1,5 @@
1
- import{jsx as o,jsxs as e,Fragment as i}from"react/jsx-runtime";import{useTheme as r,Stack as t,ButtonBase as n,Typography as a,Skeleton as l,alpha as d}from"@mui/material";import{useRef as c}from"react";const s=s=>{const{tabs:b,activeId:u,onChange:g,isLoading:h=!1,ariaLabel:p}=s,m=r(),f=c([]),y=m.custom.countTabs,v=b.some(o=>void 0!==o.count);/* @__PURE__ */
2
- return o(t,{role:"tablist","aria-label":p,"aria-busy":!(!h||!v)||void 0,direction:"row",flexWrap:"wrap",gap:y.gap,children:b.map((r,t)=>{const c=r.id===u,s=void 0!==r.count,p=c?y.selected:y.default;/* @__PURE__ */
3
- return e(n,{action:o=>{f.current[t]=o},role:"tab",id:r.tabProps?.id,"aria-controls":r.tabProps?.["aria-controls"],"aria-label":h||!s?r.label:`${r.label} - ${r.count}`,"aria-selected":c,tabIndex:c?0:-1,onKeyDown:o=>((o,e)=>{let i;"ArrowRight"===o.key&&(i=(e+1)%b.length),"ArrowLeft"===o.key&&(i=(e-1+b.length)%b.length),"Home"===o.key&&(i=0),"End"===o.key&&(i=b.length-1),void 0!==i&&(o.preventDefault(),f.current[i]?.focusVisible())})(o,t),onClick:()=>g(r.id),sx:{alignItems:"center",background:p.background,border:`${m.custom.strokes.containerDivider.width} ${m.custom.strokes.containerDivider.style} ${p.borderColor}`,borderRadius:y.borderRadius,boxShadow:p.boxShadow,color:p.color,display:"inline-flex",fontFamily:m.typography.fontFamily,minHeight:y.minHeight,padding:y.padding,"&:hover":{background:p.hoverBackground},"&.Mui-focusVisible":{outline:`${y.focusRing.width} solid ${y.focusRing.color}`,outlineOffset:y.focusRing.offset}},children:[
1
+ import{jsx as o,jsxs as e,Fragment as i}from"react/jsx-runtime";import{useTheme as r,Stack as t,ButtonBase as n,Typography as a,Skeleton as l,alpha as d}from"@mui/material";import{useRef as c}from"react";const s=s=>{const{tabs:u,activeId:b,onChange:g,isLoading:m=!1,ariaLabel:h}=s,p=r(),f=c([]),y=p.custom.countTabs,v=u.some(o=>void 0!==o.count);/* @__PURE__ */
2
+ return o(t,{role:"tablist","aria-label":h,"aria-busy":!(!m||!v)||void 0,direction:"row",flexWrap:"wrap",gap:y.gap,children:u.map((r,t)=>{const c=r.id===b,s=void 0!==r.count,h=c?y.selected:y.default;/* @__PURE__ */
3
+ return e(n,{action:o=>{f.current[t]=o},role:"tab",id:r.tabProps?.id,"aria-controls":r.tabProps?.["aria-controls"],"aria-label":m||!s?r.label:`${r.label} - ${r.count}`,"aria-selected":c,tabIndex:c?0:-1,onKeyDown:o=>((o,e)=>{let i;"ArrowRight"===o.key&&(i=(e+1)%u.length),"ArrowLeft"===o.key&&(i=(e-1+u.length)%u.length),"Home"===o.key&&(i=0),"End"===o.key&&(i=u.length-1),void 0!==i&&(o.preventDefault(),f.current[i]?.focusVisible())})(o,t),onClick:()=>g(r.id),sx:{alignItems:"center",background:h.background,border:`${p.custom.strokes.containerDivider.width} ${p.custom.strokes.containerDivider.style} ${h.borderColor}`,borderRadius:y.borderRadius,boxShadow:h.boxShadow,color:h.color,display:"inline-flex",fontFamily:p.typography.fontFamily,minHeight:y.minHeight,padding:y.padding,"&:hover":{background:h.hoverBackground},"&.Mui-focusVisible":{outline:`${p.custom.focusRing.width} solid ${p.custom.focusRing.color}`,outlineOffset:p.custom.focusRing.offset}},children:[
4
4
  /* @__PURE__ */o(a,{component:"span",variant:"body-bold",color:"inherit",children:r.label}),s&&/* @__PURE__ */e(i,{children:[
5
- /* @__PURE__ */o(a,{component:"span",variant:"body-bold",color:"inherit",sx:{px:y.separatorPaddingInline},children:"-"}),h?/* @__PURE__ */o(l,{variant:"text",width:y.loadingWidth,sx:{bgcolor:c?d(m.custom.grey[100],y.loadingSelectedOpacity):void 0}}):/* @__PURE__ */o(a,{component:"span",variant:"body-bold",color:"inherit",children:r.count})]})]},r.id)})})};export{s as CountTabs};
5
+ /* @__PURE__ */o(a,{component:"span",variant:"body-bold",color:"inherit",sx:{px:y.separatorPaddingInline},children:"-"}),m?/* @__PURE__ */o(l,{variant:"text",width:y.loadingWidth,sx:{bgcolor:c?d(p.custom.grey[100],y.loadingSelectedOpacity):void 0}}):/* @__PURE__ */o(a,{component:"span",variant:"body-bold",color:"inherit",children:r.count})]})]},r.id)})})};export{s as CountTabs};
@@ -1,3 +1,3 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useTheme as r,Stack as t,Typography as a,styled as i,TextareaAutosize as l}from"@mui/material";import{useId as n,useState as s}from"react";import{useResponsiveBreakpoints as c}from"../../themes/responsive/useResponsiveBreakpoints.js";const d=i=>{const l=r(),{isMobile:d}=c(),m=n(),{value:g,onChange:h,onBlur:p,onFocus:y,id:b=m,name:f,"aria-label":x,"aria-labelledby":v,"aria-describedby":w,placeholder:z,disabled:C=!1,error:S=!1,errorMessage:F,maxLength:A,minRows:R,maxRows:k=14,content:H}=i,[$,j]=s(H??""),B=void 0!==g,E=B?g.length:$.length,L=!C&&(S||void 0!==A&&E>A),T=void 0!==A||L&&!!F,W=`${b}-error`,G=[w,L&&F?W:void 0].filter(Boolean).join(" ")||void 0,M=B?{value:g,onChange:e=>h?.(e.currentTarget.value)}:{defaultValue:H,onChange:e=>{j(e.currentTarget.value),h?.(e.currentTarget.value)}};/* @__PURE__ */
2
- return e(t,{gap:l.custom.textArea.footerGap,width:"100%",children:[
3
- /* @__PURE__ */o(t,{minHeight:l.custom.textArea.minHeight,children:/* @__PURE__ */o(u,{...M,id:b,name:f,"aria-label":x,"aria-labelledby":v,"aria-describedby":G,"aria-invalid":L||void 0,onBlur:p,onFocus:y,placeholder:z,disabled:C,minRows:R,maxRows:k,maxLength:A,$hasError:L})}),T&&/* @__PURE__ */e(t,{flexDirection:"row",justifyContent:"space-between",alignItems:"baseline",gap:l.spacing(4),children:[L&&F&&/* @__PURE__ */o(a,{id:W,variant:"inherit",color:l.custom.red[600],sx:{minWidth:0,fontSize:l.custom.textArea.errorFontSize,lineHeight:l.typography["small-regular"].lineHeight},children:F}),void 0!==A&&/* @__PURE__ */e(a,{variant:"inherit",color:l.custom.grey[2e3],sx:{marginLeft:"auto",fontSize:d?l.custom.textArea.mobileCounterFontSize:l.typography["small-regular"].fontSize,fontWeight:l.typography["small-regular"].fontWeight,lineHeight:l.typography["small-regular"].lineHeight,whiteSpace:"nowrap"},children:[E," / ",A]})]})]})},u=i(l,{shouldForwardProp:e=>"$hasError"!==e})(({theme:e,$hasError:o})=>({boxSizing:"border-box",width:"100%",flexGrow:1,padding:e.custom.textArea.padding,borderRadius:e.custom.textArea.borderRadius,border:`1px solid ${o?e.custom.red[600]:e.custom.grey[600]}`,resize:"none",...e.typography["body-regular"],fontFamily:e.typography.fontFamily,fontSize:e.typography["body-regular"].fontSize,[e.breakpoints.down("md")]:{fontSize:e.custom.textArea.mobileFontSize},color:e.custom.grey[2800],backgroundColor:o?e.custom.red[100]:e.custom.grey[100],"&::placeholder":{color:o?e.custom.grey[2200]:e.custom.grey[2e3],opacity:1},"&:hover:not(:disabled):not(:focus)":{backgroundColor:o?e.custom.red[200]:e.custom.grey[300]},"&:hover:not(:disabled):not(:focus)::placeholder":{color:o?e.custom.grey[2400]:e.custom.grey[2100]},"&:focus":{outline:0,borderColor:o?e.custom.red[600]:e.custom.grey[2800],backgroundColor:e.custom.grey[100]},"&:focus::placeholder":{color:e.custom.grey[2e3]},"&:disabled":{color:e.custom.grey[1400],backgroundColor:e.custom.grey[500],borderColor:e.custom.grey[600]}}));export{d as Textarea};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useTheme as r,Stack as t,Typography as a,styled as i,TextareaAutosize as n}from"@mui/material";import{useId as l,useState as s}from"react";import{useResponsiveBreakpoints as c}from"../../themes/responsive/useResponsiveBreakpoints.js";const d=i=>{const n=r(),{isMobile:d}=c(),m=l(),{value:g,onChange:h,onBlur:p,onFocus:y,id:b=m,name:f,"aria-label":x,"aria-labelledby":v,"aria-describedby":w,placeholder:z,disabled:C=!1,error:S=!1,errorMessage:R,maxLength:F,minRows:A,maxRows:k=14,content:H}=i,[$,j]=s(H??""),B=void 0!==g,W=B?g.length:$.length,E=!C&&(S||void 0!==F&&W>F),L=void 0!==F||E&&!!R,T=`${b}-error`,G=[w,E&&R?T:void 0].filter(Boolean).join(" ")||void 0,M=B?{value:g,onChange:e=>h?.(e.currentTarget.value)}:{defaultValue:H,onChange:e=>{j(e.currentTarget.value),h?.(e.currentTarget.value)}};/* @__PURE__ */
2
+ return e(t,{gap:n.custom.textArea.footerGap,width:"100%",children:[
3
+ /* @__PURE__ */o(t,{minHeight:n.custom.textArea.minHeight,children:/* @__PURE__ */o(u,{...M,id:b,name:f,"aria-label":x,"aria-labelledby":v,"aria-describedby":G,"aria-invalid":E||void 0,onBlur:p,onFocus:y,placeholder:z,disabled:C,minRows:A,maxRows:k,maxLength:F,$hasError:E})}),L&&/* @__PURE__ */e(t,{flexDirection:"row",justifyContent:"space-between",alignItems:"baseline",gap:n.spacing(4),children:[E&&R&&/* @__PURE__ */o(a,{id:T,variant:"inherit",color:n.custom.red[600],sx:{minWidth:0,fontSize:n.custom.textArea.errorFontSize,lineHeight:n.typography["small-regular"].lineHeight},children:R}),void 0!==F&&/* @__PURE__ */e(a,{variant:"inherit",color:n.custom.grey[2e3],sx:{marginLeft:"auto",fontSize:d?n.custom.textArea.mobileCounterFontSize:n.typography["small-regular"].fontSize,fontWeight:n.typography["small-regular"].fontWeight,lineHeight:n.typography["small-regular"].lineHeight,whiteSpace:"nowrap"},children:[W," / ",F]})]})]})},u=i(n,{shouldForwardProp:e=>"$hasError"!==e})(({theme:e,$hasError:o})=>({boxSizing:"border-box",width:"100%",flexGrow:1,padding:e.custom.textArea.padding,borderRadius:e.custom.textArea.borderRadius,border:`1px solid ${o?e.custom.red[600]:e.custom.grey[600]}`,resize:"none",...e.typography["body-regular"],fontFamily:e.typography.fontFamily,fontSize:e.typography["body-regular"].fontSize,[e.breakpoints.down("md")]:{fontSize:e.custom.textArea.mobileFontSize},color:e.custom.grey[2800],backgroundColor:o?e.custom.red[100]:e.custom.grey[100],"&::placeholder":{color:o?e.custom.grey[2200]:e.custom.grey[2e3],opacity:1},"&:hover:not(:disabled):not(:focus)":{backgroundColor:o?e.custom.red[200]:e.custom.grey[300]},"&:hover:not(:disabled):not(:focus)::placeholder":{color:o?e.custom.grey[2400]:e.custom.grey[2100]},"&:focus":{outline:0,borderWidth:e.custom.focusRing.width,borderColor:o?e.custom.red[600]:e.custom.focusRing.color,backgroundColor:e.custom.grey[100]},"&:focus::placeholder":{color:e.custom.grey[2e3]},"&:disabled":{color:e.custom.grey[1400],backgroundColor:e.custom.grey[500],borderColor:e.custom.grey[600]}}));export{d as Textarea};
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- import{getThemeLogo as o,isTheme as r,themeLogos as t,themeOptions as m,themes as s}from"./themes/index.js";import{Button as n,Typography as e}from"@mui/material";import{AccordionProduct as i}from"./components/Accordion/ProductAccordion.js";import{ActionPlanIndicatorBreakdownPopover as p}from"./components/ActionPlan/ActionPlanIndicatorBreakdownPopover.js";import{ActionPlanNetImpactBody as c}from"./components/ActionPlan/ActionPlanNetImpactBody.js";import{AdditionalContentBox as a}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as f,HeadlessPopover as j,ThemedPopover as l}from"./components/Popover/AnchoredPopover.js";import{Article as d}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as B}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as C}from"./components/Badge/Badge.js";import{Banner as u}from"./components/Banner/Banner.js";import{BigPopoverLayout as h}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as g}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as F}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as T}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as k}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as P,SecondaryTabs as S}from"./components/Tabs/SecondaryTabs.js";import{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as v}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as I}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as y}from"./components/Tabs/ButtonTabs.js";import{CardImage as L}from"./components/CardImage.js";import{CategoryBox as b}from"./components/Box/CategoryBox.js";import{CheckboxBlock as N}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as A,CollectiveThemeOptions as H}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as D}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as G}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as R}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as w}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as U}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as M}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as W}from"./components/Popover/CoordinatePopover.js";import{CountTabs as E}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as V}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as O,TertiaryToggleButton as z}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as Q,TertiaryToggleButtonNodeTitle as q}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as J}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as K}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as X}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as Y}from"./components/Box/DottedBox.js";import{DoughnutCard as Z}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as $}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as _}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as oo}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as ro}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as to}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as mo}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as so}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as no}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as eo,FoodpilotThemeOptions as io}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as po}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as co}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as ao}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as fo}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as jo}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as lo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as Bo}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as Co}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as uo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as ho}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as go}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as Fo}from"./components/Search/FoodsSearch.js";import{FoodsSelect as To,FoodsSelectServerPagination as ko}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as Po,SpecialTabs as So}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as xo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as vo}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Io,FoodsThemeProvider as yo}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as Lo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as bo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as No}from"./components/Treeview/Treeview.js";import{FoodsUserTags as Ao}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as Ho}from"./components/Accordion/FormAccordion.js";import{FormBase as Do}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Go,useFormBaseContext as Ro}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as wo}from"./components/Form/FormBox.js";import{FormPropertyBox as Uo}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Mo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Wo}from"./components/Form/FormUnit.js";import{GenericAccordion as Eo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Vo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Oo,NavBarLink as zo,Navbar as Qo,SubMenu as qo,UserNav as Jo}from"./components/Navigation/Navbar.js";import{HelperBox as Ko}from"./components/Box/HelperBox.js";import{HeroBlock as Xo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Yo}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Zo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as $o}from"./components/Navigation/IconThread.js";import{IndicatorBlock as _o}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as or}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as rr}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as tr}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as mr}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as sr}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as nr}from"./components/Box/LineGroupBox.js";import{LinearProgress as er}from"./components/LinearProgress.js";import{LinkAction as ir}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as pr}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as cr}from"./components/Grid/MRTGrid.js";import{MRT_GRID_HUB_LAYOUT as ar}from"./components/Grid/mrtGridLayout.js";import{MultiValueFilter as fr}from"./components/Filter/MultiValueFilter.js";import{NumberField as jr}from"./components/Field/NumberField.js";import{NumberWithUnit as lr}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as dr}from"./components/Popover/OptionsPopover.js";import{PageItem as Br}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as Cr}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as ur}from"./components/Input/Pills/Pills.js";import{PointsCell as hr}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as gr}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as Fr}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as Tr}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as kr}from"./components/Dialog/PrimaryDialog.js";import{Progress as Pr}from"./components/Progress/Progress.js";import{ProgressCard as Sr}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as xr}from"./components/Box/QuoteBox.js";import{RadioBlock as vr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as Ir}from"./components/Radio/RadioBoolean.js";import{RadioList as yr}from"./components/Radio/RadioList.js";import{RichTextEditor as Lr}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as br}from"./components/Input/RoundInput.js";import{RoundNumberInput as Nr}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Ar}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as Hr}from"./components/Number/Score.js";import{ScoreCard as Dr}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Gr}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Rr}from"./components/Badge/ScoreContainer.js";import{ScoreDistribution as wr}from"./components/Chart/ScoreDistribution/ScoreDistribution.js";import{ScoreOverviewCard as Ur}from"./components/Cards/ScoreOverviewCard/ScoreOverviewCard.js";import{ScoreSelect as Mr}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Wr}from"./components/Number/ScoreValue.js";import{SearchBox as Er}from"./components/Input/SearchBox.js";import{SectionBox as Vr}from"./components/Box/SectionBox.js";import{SectionTabs as Or}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as zr}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Qr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as qr}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Jr}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as Kr}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Xr}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Yr}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as Zr}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as $r}from"./components/Text/TextArrowList.js";import{TextField as _r}from"./components/Field/TextField.js";import{TextTitle as ot}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as rt}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as tt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as mt}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as st}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as nt}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as et}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as it}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPanel as pt}from"./components/UnitConverterPanel/UnitConverterPanel.js";import{UnsavedChangesDialog as ct}from"./components/Dialog/UnsavedChangesDialog.js";import{ValueDisplay as at}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as ft}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as jt}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as lt}from"./components/Box/WarningBox.js";import{WaterfallChart as dt}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as Bt}from"./components/Box/WhiteBox.js";import{WhiteGrid as Ct}from"./components/Box/WhiteGrid.js";import{WhitePopover as ut}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as ht}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as gt,WinepilotThemeOptions as Ft}from"./themes/themes/WinePilotTheme.js";import{allColors as Tt,allMainColors as kt,blueTheme as Pt,coralTheme as St,dataVisualizationColors as xt,extraColors as vt,greenTheme as It,greyTheme as yt,orangeTheme as Lt,redTheme as bt,shadows as Nt,yellowTheme as At}from"./themes/common/colors.js";import{allTypographyVariants as Ht,deprecatedVariants as Dt,typographyConfig as Gt}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as Rt,checkboxToAny as wt}from"./components/Checkbox/helperFunctions.js";import{barChart as Ut,breadcrumb as Mt,countTabs as Wt,custom as Et,deleteButton as Vt,doughnutCard as Ot,formField as zt,ingredientCard as Qt,mediaUpload as qt,numberWithUnit as Jt,numbers as Kt,scoreCard as Xt,scoreDetail as Yt,scoreOverviewCard as Zt,scoreValue as $t,select as _t,status as om,strokes as rm,tabs as tm,tags as mm,textArea as sm,textInput as nm,toggleSwitch as em,tooltip as im}from"./themes/common/custom.js";import{components as pm}from"./themes/common/components.js";import{computeSize as cm,iconMapping as am}from"./components/Icons/iconConfig.js";import{illustationsMapping as fm}from"./components/Icons/illustrationsConfig.js";import{spacing as jm}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as lm}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as dm}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as ActionPlanIndicatorBreakdownPopover,c as ActionPlanNetImpactBody,a as AdditionalContentBox,f as AnchoredPopover,d as Article,B as ArticlesBox,C as Badge,u as Banner,h as BigPopoverLayout,g as BlockItemContainer,F as BlockItemInner,T as BlockListContainer,k as BottomSheetDialog,P as BoxStyled,x as BreadcrumbItem,v as Breadcrumbs,I as BreakdownTable,n as Button,y as ButtonTabs,L as CardImage,b as CategoryBox,N as CheckboxBlock,A as CollectiveTheme,H as CollectiveThemeOptions,D as ComingSoonBadge,G as ComparisonArrow,R as ComparisonBlock,w as ComparisonLabel,U as ConfirmDialog,M as ContextualContentBox,W as CoordinatePopover,E as CountTabs,V as CustomRender,O as CustomToggleButton,Q as CustomToggleButtonNodeTitle,J as CustomTypography,K as CustomizedAxisTick,X as DefaultUserAction,Y as DottedBox,Z as DoughnutCard,$ as DoughnutChart,_ as DrawerAction,oo as EcoScoreCell,ro as EditHeader,to as EllipsisItem,mo as EmptyForm,so as EvolutionChart,no as FixedMultiValueFilter,eo as FoodPilotTheme,io as FoodpilotThemeOptions,po as FoodsBadge,co as FoodsCheckbox,ao as FoodsDeleteButton,fo as FoodsFormBase,jo as FoodsIcon,lo as FoodsIconButton,Bo as FoodsIllustrations,Co as FoodsNavbar,uo as FoodsPagination,ho as FoodsPaginationItem,go as FoodsRadioList,Fo as FoodsSearch,To as FoodsSelect,ko as FoodsSelectServerPagination,Po as FoodsTabs,xo as FoodsTags,vo as FoodsTextInput,Io as FoodsThemeOptionsProvider,yo as FoodsThemeProvider,Lo as FoodsToggleButton,bo as FoodsTooltip,No as FoodsTreeview,Ao as FoodsUserTags,Ho as FormAccordion,Do as FormBase,Go as FormBaseContextProvider,wo as FormBox,Uo as FormPropertyBox,Mo as FormTopBar,Wo as FormUnit,Eo as GenericAccordion,Vo as GreyTextCell,Oo as HeaderNav,j as HeadlessPopover,Ko as HelperBox,Xo as HeroBlock,Yo as HistogramComparisonChart,Zo as HorizontalGaugeChart,$o as IconThread,_o as IndicatorBlock,or as InfoBox,rr as InfoHeaderWithIllustration,tr as InitHeader,mr as LeftComparisonPart,sr as LightIndicatorBlock,nr as LineGroupBox,er as LinearProgress,ir as LinkAction,pr as ListHeader,cr as MRTGrid,ar as MRT_GRID_HUB_LAYOUT,fr as MultiValueFilter,zo as NavBarLink,Qo as Navbar,jr as NumberField,lr as NumberWithUnit,dr as OptionsPopover,Br as PageItem,Cr as PageUpAndDownItem,ur as Pills,hr as PointsCell,gr as PolymorphicChart,Fr as PolymorphicChartRenderer,Tr as PrimaryCheckbox,kr as PrimaryDialog,Pr as Progress,Sr as ProgressCard,xr as QuoteBox,vr as RadioBlock,Ir as RadioBoolean,yr as RadioList,Lr as RichTextEditor,br as RoundInput,Nr as RoundNumberInput,Ar as ScatterPlot,Hr as Score,Dr as ScoreCard,Gr as ScoreCardHeader,Rr as ScoreContainer,wr as ScoreDistribution,Ur as ScoreOverviewCard,Mr as ScoreSelect,Wr as ScoreValue,Er as SearchBox,S as SecondaryTabs,Vr as SectionBox,Or as SectionTabs,zr as SeeMoreCard,Qr as SelectBlock,qr as SelectionCard,Jr as SelectionCardGroup,Kr as Separator,Xr as SolidGreyBox,Yr as SpecialTab,So as SpecialTabs,qo as SubMenu,Zr as SuggestionBlock,z as TertiaryToggleButton,q as TertiaryToggleButtonNodeTitle,$r as TextArrowList,_r as TextField,ot as TextTitle,rt as TextTitleGreyIcon,tt as Textarea,l as ThemedPopover,mt as ToggleSwitch,st as TopLinkAction,nt as TrajectoryCards,et as TrajectoryChart,e as Typography,it as TypographyList,pt as UnitConverterPanel,ct as UnsavedChangesDialog,Jo as UserNav,at as ValueDisplay,ft as ValueLabel,jt as ValueSwitcher,lt as WarningBox,dt as WaterfallChart,Bt as WhiteBox,Ct as WhiteGrid,ut as WhitePopover,ht as WhitePopoverOnIcon,gt as WinePilotTheme,Ft as WinepilotThemeOptions,Tt as allColors,kt as allMainColors,Ht as allTypographyVariants,Rt as anyToCheckbox,Ut as barChart,Pt as blueTheme,Mt as breadcrumb,wt as checkboxToAny,pm as components,cm as computeSize,St as coralTheme,Wt as countTabs,Et as custom,xt as dataVisualizationColors,Vt as deleteButton,Dt as deprecatedVariants,Ot as doughnutCard,vt as extraColors,zt as formField,o as getThemeLogo,It as greenTheme,yt as greyTheme,am as iconMapping,fm as illustationsMapping,Qt as ingredientCard,r as isTheme,qt as mediaUpload,Jt as numberWithUnit,Kt as numbers,Lt as orangeTheme,bt as redTheme,Xt as scoreCard,Yt as scoreDetail,Zt as scoreOverviewCard,$t as scoreValue,_t as select,Nt as shadows,jm as spacing,om as status,rm as strokes,tm as tabs,mm as tags,sm as textArea,nm as textInput,t as themeLogos,m as themeOptions,s as themes,em as toggleSwitch,im as tooltip,Gt as typographyConfig,Ro as useFormBaseContext,lm as useResponsiveBreakpoints,dm as useResponsivePadding,At as yellowTheme};
1
+ import{getThemeLogo as o,isTheme as r,themeLogos as t,themeOptions as m,themes as s}from"./themes/index.js";import{Button as n,Typography as e}from"@mui/material";import{AccordionProduct as i}from"./components/Accordion/ProductAccordion.js";import{ActionPlanIndicatorBreakdownPopover as p}from"./components/ActionPlan/ActionPlanIndicatorBreakdownPopover.js";import{ActionPlanNetImpactBody as c}from"./components/ActionPlan/ActionPlanNetImpactBody.js";import{AdditionalContentBox as a}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as f,HeadlessPopover as j,ThemedPopover as l}from"./components/Popover/AnchoredPopover.js";import{Article as d}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as B}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as C}from"./components/Badge/Badge.js";import{Banner as u}from"./components/Banner/Banner.js";import{BigPopoverLayout as h}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as g}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as F}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as T}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as k}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as P,SecondaryTabs as S}from"./components/Tabs/SecondaryTabs.js";import{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as v}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as I}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as y}from"./components/Tabs/ButtonTabs.js";import{CardImage as L}from"./components/CardImage.js";import{CategoryBox as b}from"./components/Box/CategoryBox.js";import{CheckboxBlock as N}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as A,CollectiveThemeOptions as H}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as D}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as R}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as G}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as w}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as U}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as M}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as W}from"./components/Popover/CoordinatePopover.js";import{CountTabs as E}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as V}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as O,TertiaryToggleButton as z}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as Q,TertiaryToggleButtonNodeTitle as q}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as J}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as K}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as X}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as Y}from"./components/Box/DottedBox.js";import{DoughnutCard as Z}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as $}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as _}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as oo}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as ro}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as to}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as mo}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as so}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as no}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as eo,FoodpilotThemeOptions as io}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as po}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as co}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as ao}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as fo}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as jo}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as lo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as Bo}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as Co}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as uo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as ho}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as go}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as Fo}from"./components/Search/FoodsSearch.js";import{FoodsSelect as To,FoodsSelectServerPagination as ko}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as Po,SpecialTabs as So}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as xo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as vo}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Io,FoodsThemeProvider as yo}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as Lo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as bo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as No}from"./components/Treeview/Treeview.js";import{FoodsUserTags as Ao}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as Ho}from"./components/Accordion/FormAccordion.js";import{FormBase as Do}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Ro,useFormBaseContext as Go}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as wo}from"./components/Form/FormBox.js";import{FormPropertyBox as Uo}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Mo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Wo}from"./components/Form/FormUnit.js";import{GenericAccordion as Eo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Vo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Oo,NavBarLink as zo,Navbar as Qo,SubMenu as qo,UserNav as Jo}from"./components/Navigation/Navbar.js";import{HelperBox as Ko}from"./components/Box/HelperBox.js";import{HeroBlock as Xo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Yo}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Zo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as $o}from"./components/Navigation/IconThread.js";import{IndicatorBlock as _o}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as or}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as rr}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as tr}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as mr}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as sr}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as nr}from"./components/Box/LineGroupBox.js";import{LinearProgress as er}from"./components/LinearProgress.js";import{LinkAction as ir}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as pr}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as cr}from"./components/Grid/MRTGrid.js";import{MRT_GRID_HUB_LAYOUT as ar}from"./components/Grid/mrtGridLayout.js";import{MultiValueFilter as fr}from"./components/Filter/MultiValueFilter.js";import{NumberField as jr}from"./components/Field/NumberField.js";import{NumberWithUnit as lr}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as dr}from"./components/Popover/OptionsPopover.js";import{PageItem as Br}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as Cr}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as ur}from"./components/Input/Pills/Pills.js";import{PointsCell as hr}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as gr}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as Fr}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as Tr}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as kr}from"./components/Dialog/PrimaryDialog.js";import{Progress as Pr}from"./components/Progress/Progress.js";import{ProgressCard as Sr}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as xr}from"./components/Box/QuoteBox.js";import{RadioBlock as vr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as Ir}from"./components/Radio/RadioBoolean.js";import{RadioList as yr}from"./components/Radio/RadioList.js";import{RichTextEditor as Lr}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as br}from"./components/Input/RoundInput.js";import{RoundNumberInput as Nr}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Ar}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as Hr}from"./components/Number/Score.js";import{ScoreCard as Dr}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Rr}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Gr}from"./components/Badge/ScoreContainer.js";import{ScoreDistribution as wr}from"./components/Chart/ScoreDistribution/ScoreDistribution.js";import{ScoreOverviewCard as Ur}from"./components/Cards/ScoreOverviewCard/ScoreOverviewCard.js";import{ScoreSelect as Mr}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Wr}from"./components/Number/ScoreValue.js";import{SearchBox as Er}from"./components/Input/SearchBox.js";import{SectionBox as Vr}from"./components/Box/SectionBox.js";import{SectionTabs as Or}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as zr}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Qr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as qr}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Jr}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as Kr}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Xr}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Yr}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as Zr}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as $r}from"./components/Text/TextArrowList.js";import{TextField as _r}from"./components/Field/TextField.js";import{TextTitle as ot}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as rt}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as tt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as mt}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as st}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as nt}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as et}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as it}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPanel as pt}from"./components/UnitConverterPanel/UnitConverterPanel.js";import{UnsavedChangesDialog as ct}from"./components/Dialog/UnsavedChangesDialog.js";import{ValueDisplay as at}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as ft}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as jt}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as lt}from"./components/Box/WarningBox.js";import{WaterfallChart as dt}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as Bt}from"./components/Box/WhiteBox.js";import{WhiteGrid as Ct}from"./components/Box/WhiteGrid.js";import{WhitePopover as ut}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as ht}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as gt,WinepilotThemeOptions as Ft}from"./themes/themes/WinePilotTheme.js";import{allColors as Tt,allMainColors as kt,blueTheme as Pt,coralTheme as St,dataVisualizationColors as xt,extraColors as vt,greenTheme as It,greyTheme as yt,orangeTheme as Lt,redTheme as bt,shadows as Nt,yellowTheme as At}from"./themes/common/colors.js";import{allTypographyVariants as Ht,deprecatedVariants as Dt,typographyConfig as Rt}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as Gt,checkboxToAny as wt}from"./components/Checkbox/helperFunctions.js";import{barChart as Ut,breadcrumb as Mt,countTabs as Wt,custom as Et,deleteButton as Vt,doughnutCard as Ot,focusRing as zt,formField as Qt,ingredientCard as qt,mediaUpload as Jt,numberWithUnit as Kt,numbers as Xt,scoreCard as Yt,scoreDetail as Zt,scoreOverviewCard as $t,scoreValue as _t,select as om,status as rm,strokes as tm,tabs as mm,tags as sm,textArea as nm,textInput as em,toggleSwitch as im,tooltip as pm}from"./themes/common/custom.js";import{components as cm}from"./themes/common/components.js";import{computeSize as am,iconMapping as fm}from"./components/Icons/iconConfig.js";import{focusRingStyles as jm}from"./themes/common/focusRing.js";import{illustationsMapping as lm}from"./components/Icons/illustrationsConfig.js";import{spacing as dm}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as Bm}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as Cm}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as ActionPlanIndicatorBreakdownPopover,c as ActionPlanNetImpactBody,a as AdditionalContentBox,f as AnchoredPopover,d as Article,B as ArticlesBox,C as Badge,u as Banner,h as BigPopoverLayout,g as BlockItemContainer,F as BlockItemInner,T as BlockListContainer,k as BottomSheetDialog,P as BoxStyled,x as BreadcrumbItem,v as Breadcrumbs,I as BreakdownTable,n as Button,y as ButtonTabs,L as CardImage,b as CategoryBox,N as CheckboxBlock,A as CollectiveTheme,H as CollectiveThemeOptions,D as ComingSoonBadge,R as ComparisonArrow,G as ComparisonBlock,w as ComparisonLabel,U as ConfirmDialog,M as ContextualContentBox,W as CoordinatePopover,E as CountTabs,V as CustomRender,O as CustomToggleButton,Q as CustomToggleButtonNodeTitle,J as CustomTypography,K as CustomizedAxisTick,X as DefaultUserAction,Y as DottedBox,Z as DoughnutCard,$ as DoughnutChart,_ as DrawerAction,oo as EcoScoreCell,ro as EditHeader,to as EllipsisItem,mo as EmptyForm,so as EvolutionChart,no as FixedMultiValueFilter,eo as FoodPilotTheme,io as FoodpilotThemeOptions,po as FoodsBadge,co as FoodsCheckbox,ao as FoodsDeleteButton,fo as FoodsFormBase,jo as FoodsIcon,lo as FoodsIconButton,Bo as FoodsIllustrations,Co as FoodsNavbar,uo as FoodsPagination,ho as FoodsPaginationItem,go as FoodsRadioList,Fo as FoodsSearch,To as FoodsSelect,ko as FoodsSelectServerPagination,Po as FoodsTabs,xo as FoodsTags,vo as FoodsTextInput,Io as FoodsThemeOptionsProvider,yo as FoodsThemeProvider,Lo as FoodsToggleButton,bo as FoodsTooltip,No as FoodsTreeview,Ao as FoodsUserTags,Ho as FormAccordion,Do as FormBase,Ro as FormBaseContextProvider,wo as FormBox,Uo as FormPropertyBox,Mo as FormTopBar,Wo as FormUnit,Eo as GenericAccordion,Vo as GreyTextCell,Oo as HeaderNav,j as HeadlessPopover,Ko as HelperBox,Xo as HeroBlock,Yo as HistogramComparisonChart,Zo as HorizontalGaugeChart,$o as IconThread,_o as IndicatorBlock,or as InfoBox,rr as InfoHeaderWithIllustration,tr as InitHeader,mr as LeftComparisonPart,sr as LightIndicatorBlock,nr as LineGroupBox,er as LinearProgress,ir as LinkAction,pr as ListHeader,cr as MRTGrid,ar as MRT_GRID_HUB_LAYOUT,fr as MultiValueFilter,zo as NavBarLink,Qo as Navbar,jr as NumberField,lr as NumberWithUnit,dr as OptionsPopover,Br as PageItem,Cr as PageUpAndDownItem,ur as Pills,hr as PointsCell,gr as PolymorphicChart,Fr as PolymorphicChartRenderer,Tr as PrimaryCheckbox,kr as PrimaryDialog,Pr as Progress,Sr as ProgressCard,xr as QuoteBox,vr as RadioBlock,Ir as RadioBoolean,yr as RadioList,Lr as RichTextEditor,br as RoundInput,Nr as RoundNumberInput,Ar as ScatterPlot,Hr as Score,Dr as ScoreCard,Rr as ScoreCardHeader,Gr as ScoreContainer,wr as ScoreDistribution,Ur as ScoreOverviewCard,Mr as ScoreSelect,Wr as ScoreValue,Er as SearchBox,S as SecondaryTabs,Vr as SectionBox,Or as SectionTabs,zr as SeeMoreCard,Qr as SelectBlock,qr as SelectionCard,Jr as SelectionCardGroup,Kr as Separator,Xr as SolidGreyBox,Yr as SpecialTab,So as SpecialTabs,qo as SubMenu,Zr as SuggestionBlock,z as TertiaryToggleButton,q as TertiaryToggleButtonNodeTitle,$r as TextArrowList,_r as TextField,ot as TextTitle,rt as TextTitleGreyIcon,tt as Textarea,l as ThemedPopover,mt as ToggleSwitch,st as TopLinkAction,nt as TrajectoryCards,et as TrajectoryChart,e as Typography,it as TypographyList,pt as UnitConverterPanel,ct as UnsavedChangesDialog,Jo as UserNav,at as ValueDisplay,ft as ValueLabel,jt as ValueSwitcher,lt as WarningBox,dt as WaterfallChart,Bt as WhiteBox,Ct as WhiteGrid,ut as WhitePopover,ht as WhitePopoverOnIcon,gt as WinePilotTheme,Ft as WinepilotThemeOptions,Tt as allColors,kt as allMainColors,Ht as allTypographyVariants,Gt as anyToCheckbox,Ut as barChart,Pt as blueTheme,Mt as breadcrumb,wt as checkboxToAny,cm as components,am as computeSize,St as coralTheme,Wt as countTabs,Et as custom,xt as dataVisualizationColors,Vt as deleteButton,Dt as deprecatedVariants,Ot as doughnutCard,vt as extraColors,zt as focusRing,jm as focusRingStyles,Qt as formField,o as getThemeLogo,It as greenTheme,yt as greyTheme,fm as iconMapping,lm as illustationsMapping,qt as ingredientCard,r as isTheme,Jt as mediaUpload,Kt as numberWithUnit,Xt as numbers,Lt as orangeTheme,bt as redTheme,Yt as scoreCard,Zt as scoreDetail,$t as scoreOverviewCard,_t as scoreValue,om as select,Nt as shadows,dm as spacing,rm as status,tm as strokes,mm as tabs,sm as tags,nm as textArea,em as textInput,t as themeLogos,m as themeOptions,s as themes,im as toggleSwitch,pm as tooltip,Rt as typographyConfig,Go as useFormBaseContext,Bm as useResponsiveBreakpoints,Cm as useResponsivePadding,At as yellowTheme};
@@ -1,5 +1,5 @@
1
- import { Themes } from './index';
2
1
  import { ThemeOptions } from '@mui/material';
2
+ import { Themes } from './index';
3
3
  type FoodsThemeProviderProps = {
4
4
  children?: React.JSX.Element | React.JSX.Element[];
5
5
  theme?: Themes;
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{createTheme as r,ThemeProvider as t}from"@mui/material/styles";import{themeOptions as o,themes as i}from"./index.js";const m=r=>{const{theme:o="foodpilot"}=r,m={...i[o]};return void 0!==r.typographyOverride&&(m.typography=r.typographyOverride),/* @__PURE__ */e(t,{theme:m,children:r.children})},h=i=>{const{theme:m="foodpilot",themeOverride:h={}}=i,p=o[m],d=r(p,h);/* @__PURE__ */
1
+ import{jsx as e}from"react/jsx-runtime";import{createTheme as r,ThemeProvider as t}from"@mui/material";import{themeOptions as o,themes as i}from"./index.js";const m=r=>{const{theme:o="foodpilot"}=r,m={...i[o]};return void 0!==r.typographyOverride&&(m.typography=r.typographyOverride),/* @__PURE__ */e(t,{theme:m,children:r.children})},h=i=>{const{theme:m="foodpilot",themeOverride:h={}}=i,p=o[m],d=r(p,h);/* @__PURE__ */
2
2
  return e(t,{theme:d,children:i.children})};export{h as FoodsThemeOptionsProvider,m as FoodsThemeProvider};
@@ -276,6 +276,13 @@ export declare const tags: {
276
276
  readonly height: "26px";
277
277
  };
278
278
  };
279
+ /** Keyboard focus indicator shared by controls and their Storybook previews. */
280
+ export declare const focusRing: {
281
+ readonly color: "#393A36";
282
+ readonly width: "2px";
283
+ readonly offset: "2px";
284
+ readonly gapColor: "#FFFFFF";
285
+ };
279
286
  /**
280
287
  * Shared count-tab contract.
281
288
  * Figma provenance: Packaging count filters `12885:70126` and `13407:62429`.
@@ -289,6 +296,7 @@ export declare const countTabs: {
289
296
  readonly color: "#393A36";
290
297
  readonly width: "2px";
291
298
  readonly offset: "2px";
299
+ readonly gapColor: "#FFFFFF";
292
300
  };
293
301
  readonly separatorPaddingInline: "4px";
294
302
  readonly loadingWidth: 24;
@@ -524,6 +532,7 @@ type CustomThemeKeys = {
524
532
  barChart: typeof barChart;
525
533
  mediaUpload: typeof mediaUpload;
526
534
  tags: typeof tags;
535
+ focusRing: typeof focusRing;
527
536
  countTabs: typeof countTabs;
528
537
  tabs: typeof tabs;
529
538
  scoreDetail: typeof scoreDetail;
@@ -1 +1 @@
1
- import e from"i18next";import{greyTheme as i,shadows as o,redTheme as r,allMainColors as t,allColors as d,extraColors as a,dataVisualizationColors as p,coralTheme as n,blueTheme as x,yellowTheme as h,orangeTheme as l,greenTheme as c}from"./colors.js";const s={containerDivider:{color:i[600],style:"solid",width:"1px"}},g={width:"300px"},u={green:{surface:"#F2FFF9"}},b={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},m={width:"300px",heights:{inactive:"215px",selected:"231px"},icon:{containerSize:"48px",glyphSize:{width:40,height:40}},carouselControl:{inlineEndOffset:"-5px"},details:{chartHeight:"481px"}},w={stroke:{...s.containerDivider,color:"#E5E3E0"}},k={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},y={emptyIndicator:{micro:{size:"20px",iconSize:{width:11,height:11}},small:{size:"24px",iconSize:{width:13,height:13}},inter:{size:"30px",iconSize:{width:20,height:20}},big:{size:"38px",iconSize:{width:28,height:28}}},unitOffset:{compact:"-1px",regular:"-2px"}},S={compact:{width:"100px",optionWidth:"130px"}},z={desktopHeight:"40px",mobileHeight:"48px",fixedWidth:{desktop:"300px",mobile:"220px"},mobileResetHeight:"40px"},v={minHeight:"200px",padding:"16px",borderRadius:"12px",footerGap:"8px",mobileFontSize:"16px",mobileCounterFontSize:"14px",errorFontSize:"12px"},f={desktopWidth:"300px",desktopHeight:"40px",desktopResetGap:"16px",desktopResetActionWidth:"44px",mobileHeight:"48px",mobileResetHeight:"40px",mobileResetFontSize:"14px",desktopValueFontSize:"14px",mobileValueFontSize:"16px",desktopSupportingFontSize:"12px",mobileSupportingFontSize:"14px",border:i[600],background:i[100],hoverBackground:i[300],disabledBackground:i[500],selectedText:i[2500],placeholderText:i[2e3],errorPlaceholderText:i[2800],disabledText:i[1400],defaultText:i[2e3],errorBackground:r[100],errorBorder:r[600],errorText:r[600]},B={zeroValueWidth:"1px"},$={borderRadius:"8px",loadingIndicatorSize:28,errorMaxWidth:"260px",default:{size:120,stroke:s.containerDivider,emptyCopy:{typographyVariant:"body-regular",lineHeight:1.3}},compact:{size:110,contentInset:"6px",stroke:{...s.containerDivider,style:"dashed"},boxShadow:o.grey,emptyCopy:{width:"76px",typographyVariant:"small-regular"}},thumbnail:{size:70,contentInset:"4px",stroke:s.containerDivider,boxShadow:o.grey}},R={display:{height:"26px"}},C={gap:"8px",minHeight:"36px",padding:"8px 12px",borderRadius:"8px",focusRing:{color:i[2800],width:"2px",offset:"2px"},separatorPaddingInline:"4px",loadingWidth:24,loadingSelectedOpacity:.3,default:{background:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,hoverBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[400]} 154.5%)`,borderColor:i[500],boxShadow:o.grey,color:i[2800]},selected:{background:`linear-gradient(180deg, ${i[2600]} 0%, ${i[3e3]} 100%)`,hoverBackground:i[2800],borderColor:i[2800],boxShadow:o.hard,color:i[100]}},F={primary:{height:"60px"},secondary:{height:"60px"}},W={summaryWidth:"250px",barWidth:"250px",lifecycleBreakdownWidth:"364px",subscoreBreakdownWidth:"346px",impactBreakdownWidth:"318px",impactZeroBreakdownWidth:"292px",impactBenefitBreakdownWidth:"551px"},D={handleBorderRadius:"50%",legacyTrackBackground:"rgba(0,0,0,.25)",sizes:{default:{width:"52px",height:"28px",thumbSize:"20px",thumbInset:"4px",thumbTravel:"24px",trackBorderRadius:"16px"},medium:{width:"44px",height:"24px",thumbSize:"16px",thumbInset:"4px",thumbTravel:"20px",trackBorderRadius:"14px"},small:{width:"36px",height:"20px",thumbSize:"12px",thumbInset:"4px",thumbTravel:"16px",trackBorderRadius:"10px"}},status:{uncheckedColor:i[1400],uncheckedIconColor:i[2e3],handleBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 100%)`,iconSize:{width:14,height:14},trackBorderRadius:"20px"}},I=`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,H={size:"40px",iconSize:{width:20,height:20},borderRadius:"44px",default:{background:I,borderColor:r[500],color:r[500]},hovered:{background:r[400],borderColor:r[500],color:i[100]},pressed:{background:r[600],borderColor:r[600],color:i[100]},disabled:{background:I,borderColor:r[200],color:r[200]}},T=`inset 0 0 0 ${s.containerDivider.width} ${s.containerDivider.color}`,V={gap:"4px",separatorIconSize:{width:16,height:16},pageLink:{height:"26px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",maxWidth:"226px",stroke:{default:T,hover:`inset 0 0 0 ${s.containerDivider.width} ${i[2800]}`},collapsed:{width:"24px",height:"16px",paddingInline:"4px",borderRadius:"4px"}},overflowMenu:{offset:"4px",padding:"16px",gap:"8px",borderRadius:"12px",boxShadow:`${T}, ${o.popover}`}},E=`${s.containerDivider.width} ${s.containerDivider.style} ${i[500]}`,A=`${s.containerDivider.width} ${s.containerDivider.style} ${s.containerDivider.color}`,M={contentAlignment:"center",default:{maxCharacters:100,width:"202px",maxWidth:"unset",padding:"12px 16px 12px 16px",borderRadius:"0.5rem",border:E,backgroundColor:i[100],boxShadow:`0px 4px 20px 0px ${i[500]}`,color:i[2800],margin:"8px",typographyVariant:"body-medium",arrow:{color:i[100],border:E}},simple:{width:"300px",maxWidth:"300px",contentMinHeight:"53px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",border:A,backgroundColor:i[100],boxShadow:o.popover,color:i[2500],margin:"8px",typographyVariant:"body-medium",arrow:{width:"16px",height:"8px",color:i[100],border:A}}},L={grey:i,red:r,green:c,orange:l,yellow:h,blue:x,coral:n,shadows:o,dataviz:{colors:p,extra:a,colorsWithExtra:d,onlyMainFromAll:t},doughnutCard:g,strokes:s,status:u,scoreCard:b,scoreOverviewCard:m,ingredientCard:w,scoreValue:k,numberWithUnit:y,formField:S,textInput:z,textArea:v,select:f,barChart:B,mediaUpload:$,tags:R,countTabs:C,tabs:F,scoreDetail:W,toggleSwitch:D,deleteButton:H,breadcrumb:V,tooltip:M,searchBox:{borderRadius:"24px",border:e=>"1px solid "+e.custom.grey[500],background:"white",boxShadow:e=>"0px 2px 8px 0px "+e.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},N={valueFormatterFn:(i,o=void 0)=>{const r=Number(i);return Number.isNaN(r)?"":o?r.toLocaleString(e.language,{maximumFractionDigits:o}):r.toLocaleString(e.language)}};export{B as barChart,V as breadcrumb,C as countTabs,L as custom,H as deleteButton,g as doughnutCard,S as formField,w as ingredientCard,$ as mediaUpload,y as numberWithUnit,N as numbers,b as scoreCard,W as scoreDetail,m as scoreOverviewCard,k as scoreValue,f as select,u as status,s as strokes,F as tabs,R as tags,v as textArea,z as textInput,D as toggleSwitch,M as tooltip};
1
+ import e from"i18next";import{greyTheme as i,shadows as o,redTheme as r,allMainColors as t,allColors as d,extraColors as a,dataVisualizationColors as p,coralTheme as n,blueTheme as x,yellowTheme as h,orangeTheme as l,greenTheme as c}from"./colors.js";const g={containerDivider:{color:i[600],style:"solid",width:"1px"}},s={width:"300px"},u={green:{surface:"#F2FFF9"}},b={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},m={width:"300px",heights:{inactive:"215px",selected:"231px"},icon:{containerSize:"48px",glyphSize:{width:40,height:40}},carouselControl:{inlineEndOffset:"-5px"},details:{chartHeight:"481px"}},w={stroke:{...g.containerDivider,color:"#E5E3E0"}},k={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},y={emptyIndicator:{micro:{size:"20px",iconSize:{width:11,height:11}},small:{size:"24px",iconSize:{width:13,height:13}},inter:{size:"30px",iconSize:{width:20,height:20}},big:{size:"38px",iconSize:{width:28,height:28}}},unitOffset:{compact:"-1px",regular:"-2px"}},S={compact:{width:"100px",optionWidth:"130px"}},z={desktopHeight:"40px",mobileHeight:"48px",fixedWidth:{desktop:"300px",mobile:"220px"},mobileResetHeight:"40px"},f={minHeight:"200px",padding:"16px",borderRadius:"12px",footerGap:"8px",mobileFontSize:"16px",mobileCounterFontSize:"14px",errorFontSize:"12px"},v={desktopWidth:"300px",desktopHeight:"40px",desktopResetGap:"16px",desktopResetActionWidth:"44px",mobileHeight:"48px",mobileResetHeight:"40px",mobileResetFontSize:"14px",desktopValueFontSize:"14px",mobileValueFontSize:"16px",desktopSupportingFontSize:"12px",mobileSupportingFontSize:"14px",border:i[600],background:i[100],hoverBackground:i[300],disabledBackground:i[500],selectedText:i[2500],placeholderText:i[2e3],errorPlaceholderText:i[2800],disabledText:i[1400],defaultText:i[2e3],errorBackground:r[100],errorBorder:r[600],errorText:r[600]},B={zeroValueWidth:"1px"},R={borderRadius:"8px",loadingIndicatorSize:28,errorMaxWidth:"260px",default:{size:120,stroke:g.containerDivider,emptyCopy:{typographyVariant:"body-regular",lineHeight:1.3}},compact:{size:110,contentInset:"6px",stroke:{...g.containerDivider,style:"dashed"},boxShadow:o.grey,emptyCopy:{width:"76px",typographyVariant:"small-regular"}},thumbnail:{size:70,contentInset:"4px",stroke:g.containerDivider,boxShadow:o.grey}},$={display:{height:"26px"}},C={color:i[2800],width:"2px",offset:"2px",gapColor:i[100]},F={gap:"8px",minHeight:"36px",padding:"8px 12px",borderRadius:"8px",focusRing:C,separatorPaddingInline:"4px",loadingWidth:24,loadingSelectedOpacity:.3,default:{background:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,hoverBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[400]} 154.5%)`,borderColor:i[500],boxShadow:o.grey,color:i[2800]},selected:{background:`linear-gradient(180deg, ${i[2600]} 0%, ${i[3e3]} 100%)`,hoverBackground:i[2800],borderColor:i[2800],boxShadow:o.hard,color:i[100]}},W={primary:{height:"60px"},secondary:{height:"60px"}},D={summaryWidth:"250px",barWidth:"250px",lifecycleBreakdownWidth:"364px",subscoreBreakdownWidth:"346px",impactBreakdownWidth:"318px",impactZeroBreakdownWidth:"292px",impactBenefitBreakdownWidth:"551px"},I={handleBorderRadius:"50%",legacyTrackBackground:"rgba(0,0,0,.25)",sizes:{default:{width:"52px",height:"28px",thumbSize:"20px",thumbInset:"4px",thumbTravel:"24px",trackBorderRadius:"16px"},medium:{width:"44px",height:"24px",thumbSize:"16px",thumbInset:"4px",thumbTravel:"20px",trackBorderRadius:"14px"},small:{width:"36px",height:"20px",thumbSize:"12px",thumbInset:"4px",thumbTravel:"16px",trackBorderRadius:"10px"}},status:{uncheckedColor:i[1400],uncheckedIconColor:i[2e3],handleBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 100%)`,iconSize:{width:14,height:14},trackBorderRadius:"20px"}},H=`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,T={size:"40px",iconSize:{width:20,height:20},borderRadius:"44px",default:{background:H,borderColor:r[500],color:r[500]},hovered:{background:r[400],borderColor:r[500],color:i[100]},pressed:{background:r[600],borderColor:r[600],color:i[100]},disabled:{background:H,borderColor:r[200],color:r[200]}},V=`inset 0 0 0 ${g.containerDivider.width} ${g.containerDivider.color}`,E={gap:"4px",separatorIconSize:{width:16,height:16},pageLink:{height:"26px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",maxWidth:"226px",stroke:{default:V,hover:`inset 0 0 0 ${g.containerDivider.width} ${i[2800]}`},collapsed:{width:"24px",height:"16px",paddingInline:"4px",borderRadius:"4px"}},overflowMenu:{offset:"4px",padding:"16px",gap:"8px",borderRadius:"12px",boxShadow:`${V}, ${o.popover}`}},A=`${g.containerDivider.width} ${g.containerDivider.style} ${i[500]}`,M=`${g.containerDivider.width} ${g.containerDivider.style} ${g.containerDivider.color}`,L={contentAlignment:"center",default:{maxCharacters:100,width:"202px",maxWidth:"unset",padding:"12px 16px 12px 16px",borderRadius:"0.5rem",border:A,backgroundColor:i[100],boxShadow:`0px 4px 20px 0px ${i[500]}`,color:i[2800],margin:"8px",typographyVariant:"body-medium",arrow:{color:i[100],border:A}},simple:{width:"300px",maxWidth:"300px",contentMinHeight:"53px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",border:M,backgroundColor:i[100],boxShadow:o.popover,color:i[2500],margin:"8px",typographyVariant:"body-medium",arrow:{width:"16px",height:"8px",color:i[100],border:M}}},N={grey:i,red:r,green:c,orange:l,yellow:h,blue:x,coral:n,shadows:o,dataviz:{colors:p,extra:a,colorsWithExtra:d,onlyMainFromAll:t},doughnutCard:s,strokes:g,status:u,scoreCard:b,scoreOverviewCard:m,ingredientCard:w,scoreValue:k,numberWithUnit:y,formField:S,textInput:z,textArea:f,select:v,barChart:B,mediaUpload:R,tags:$,focusRing:C,countTabs:F,tabs:W,scoreDetail:D,toggleSwitch:I,deleteButton:T,breadcrumb:E,tooltip:L,searchBox:{borderRadius:"24px",border:e=>"1px solid "+e.custom.grey[500],background:"white",boxShadow:e=>"0px 2px 8px 0px "+e.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},O={valueFormatterFn:(i,o=void 0)=>{const r=Number(i);return Number.isNaN(r)?"":o?r.toLocaleString(e.language,{maximumFractionDigits:o}):r.toLocaleString(e.language)}};export{B as barChart,E as breadcrumb,F as countTabs,N as custom,T as deleteButton,s as doughnutCard,C as focusRing,S as formField,w as ingredientCard,R as mediaUpload,y as numberWithUnit,O as numbers,b as scoreCard,D as scoreDetail,m as scoreOverviewCard,k as scoreValue,v as select,u as status,g as strokes,W as tabs,$ as tags,f as textArea,z as textInput,I as toggleSwitch,L as tooltip};
@@ -0,0 +1,8 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ /** Apply to the focusable element; the browser decides when focus is keyboard-visible. */
3
+ export declare const focusRingStyles: (theme: Theme, form: "outer" | "inner") => {
4
+ "&:focus-visible, &.Mui-focusVisible": {
5
+ outline: number;
6
+ boxShadow: string;
7
+ };
8
+ };
@@ -0,0 +1 @@
1
+ const o=(o,e)=>{const{color:s,width:t,offset:r,gapColor:u}=o.custom.focusRing,i=`${Number.parseFloat(r)+Number.parseFloat(t)}px`;return{"&:focus-visible, &.Mui-focusVisible":{outline:0,boxShadow:"outer"===e?`0 0 0 ${r} ${u}, 0 0 0 ${i} ${s}`:`inset 0 0 0 ${t} ${s}`}}};export{o as focusRingStyles};
@@ -2,4 +2,5 @@ export * from './MUIComponents';
2
2
  export * from './colors';
3
3
  export * from './components';
4
4
  export * from './custom';
5
+ export * from './focusRing';
5
6
  export * from './spacing';
@@ -1 +1 @@
1
- import o from"../assets/logos/foodpilot.svg.js";import e from"../assets/logos/winepilot.svg.js";import i from"../assets/logos/positive.svg.js";import{CollectiveThemeOptions as t,CollectiveTheme as s}from"./themes/CollectiveTheme.js";import{WinepilotThemeOptions as l,WinePilotTheme as m}from"./themes/WinePilotTheme.js";import{FoodpilotThemeOptions as p,FoodPilotTheme as r}from"./themes/FoodPilotTheme.js";const c=["foodpilot","winepilot","collective"],f=o=>c.includes(o),v={foodpilot:r,winepilot:m,collective:s},n={foodpilot:p,winepilot:l,collective:t},d={foodpilot:o,winepilot:e,collective:i},g=e=>f(e)?d[e]:o;export{s as CollectiveTheme,t as CollectiveThemeOptions,r as FoodPilotTheme,p as FoodpilotThemeOptions,m as WinePilotTheme,l as WinepilotThemeOptions,g as getThemeLogo,f as isTheme,d as themeLogos,n as themeOptions,v as themes};
1
+ import{FoodsThemeOptionsProvider as o,FoodsThemeProvider as s}from"./FoodsThemeProvider.js";import m from"../assets/logos/foodpilot.svg.js";import e from"../assets/logos/winepilot.svg.js";import i from"../assets/logos/positive.svg.js";import{CollectiveThemeOptions as t,CollectiveTheme as r}from"./themes/CollectiveTheme.js";import{WinepilotThemeOptions as p,WinePilotTheme as l}from"./themes/WinePilotTheme.js";import{FoodpilotThemeOptions as n,FoodPilotTheme as c}from"./themes/FoodPilotTheme.js";import{allColors as f,allMainColors as j,blueTheme as v,coralTheme as d,dataVisualizationColors as g,extraColors as h,greenTheme as a,greyTheme as u,orangeTheme as w,redTheme as P,shadows as T,yellowTheme as R}from"./common/colors.js";import{allTypographyVariants as y,deprecatedVariants as C,typographyConfig as F}from"./common/MUIComponents/typography.js";import{barChart as k,breadcrumb as x,countTabs as B,custom as I,deleteButton as M,doughnutCard as U,focusRing as W,formField as b,ingredientCard as q,mediaUpload as z,numberWithUnit as A,numbers as D,scoreCard as E,scoreDetail as G,scoreOverviewCard as H,scoreValue as J,select as K,status as L,strokes as N,tabs as O,tags as Q,textArea as S,textInput as V,toggleSwitch as X,tooltip as Y}from"./common/custom.js";import{components as Z}from"./common/components.js";import{focusRingStyles as $}from"./common/focusRing.js";import{spacing as _}from"./common/spacing.js";import{useResponsiveBreakpoints as oo}from"./responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as so}from"./responsive/useResponsivePadding.js";const mo=["foodpilot","winepilot","collective"],eo=o=>mo.includes(o),io={foodpilot:c,winepilot:l,collective:r},to={foodpilot:n,winepilot:p,collective:t},ro={foodpilot:m,winepilot:e,collective:i},po=o=>eo(o)?ro[o]:m;export{r as CollectiveTheme,t as CollectiveThemeOptions,c as FoodPilotTheme,n as FoodpilotThemeOptions,o as FoodsThemeOptionsProvider,s as FoodsThemeProvider,l as WinePilotTheme,p as WinepilotThemeOptions,f as allColors,j as allMainColors,y as allTypographyVariants,k as barChart,v as blueTheme,x as breadcrumb,Z as components,d as coralTheme,B as countTabs,I as custom,g as dataVisualizationColors,M as deleteButton,C as deprecatedVariants,U as doughnutCard,h as extraColors,W as focusRing,$ as focusRingStyles,b as formField,po as getThemeLogo,a as greenTheme,u as greyTheme,q as ingredientCard,eo as isTheme,z as mediaUpload,A as numberWithUnit,D as numbers,w as orangeTheme,P as redTheme,E as scoreCard,G as scoreDetail,H as scoreOverviewCard,J as scoreValue,K as select,T as shadows,_ as spacing,L as status,N as strokes,O as tabs,Q as tags,S as textArea,V as textInput,ro as themeLogos,to as themeOptions,io as themes,X as toggleSwitch,Y as tooltip,F as typographyConfig,oo as useResponsiveBreakpoints,so as useResponsivePadding,R as yellowTheme};
@@ -1 +1 @@
1
- import{useTheme as e}from"@mui/material/styles";import{useMediaQuery as t}from"@mui/material";const i=()=>{const i=e();return{isExtraSmall:t(i.breakpoints.down("sm")),isMobile:t(i.breakpoints.down("md")),isTablet:t(i.breakpoints.between("md","lg")),isDesktop:t(i.breakpoints.between("lg","xl")),isUltrawide:t(i.breakpoints.up("xl"))}};export{i as useResponsiveBreakpoints};
1
+ import{useTheme as e,useMediaQuery as t}from"@mui/material";const i=()=>{const i=e();return{isExtraSmall:t(i.breakpoints.down("sm")),isMobile:t(i.breakpoints.down("md")),isTablet:t(i.breakpoints.between("md","lg")),isDesktop:t(i.breakpoints.between("lg","xl")),isUltrawide:t(i.breakpoints.up("xl"))}};export{i as useResponsiveBreakpoints};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "2.29.0",
4
+ "version": "2.29.1",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "module": "./dist/main.js",