@foodpilot/foods 2.11.49 → 2.12.0

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.
Files changed (44) hide show
  1. package/dist/components/Banner/variants/ClassicBanner.js +3 -3
  2. package/dist/components/Button/FoodsIconButton.js +2 -2
  3. package/dist/components/CMS/ArticleBlock/Article.js +2 -2
  4. package/dist/components/CMS/ArticleBlock/ArticleContent.js +3 -3
  5. package/dist/components/CMS/HeroBlock/HeroBlock.js +4 -4
  6. package/dist/components/CMS/IndicatorBlock/IndicatorBlock.js +3 -3
  7. package/dist/components/CMS/IndicatorBlock/LightIndicatorBlock.js +2 -2
  8. package/dist/components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js +5 -5
  9. package/dist/components/Cards/ScoreCard/ScoreCard.js +4 -4
  10. package/dist/components/Cards/SelectionCard/SelectionCard.d.ts +13 -0
  11. package/dist/components/Cards/SelectionCard/SelectionCard.js +4 -0
  12. package/dist/components/Cards/SelectionCard/SelectionCardGroup.d.ts +16 -0
  13. package/dist/components/Cards/SelectionCard/SelectionCardGroup.js +3 -0
  14. package/dist/components/Cards/index.d.ts +2 -0
  15. package/dist/components/Chart/ScatterPlot/ScatterPlotTooltip.js +2 -2
  16. package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/LegendBlockComponent.js +3 -3
  17. package/dist/components/Icons/index.d.ts +7 -4
  18. package/dist/components/Icons/index.js +1 -0
  19. package/dist/components/Input/Pills/Pills.js +2 -2
  20. package/dist/components/Input/SearchBox.js +2 -2
  21. package/dist/components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js +3 -3
  22. package/dist/components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js +3 -3
  23. package/dist/components/Layout/BlockList/Headers/InitHeader.js +3 -3
  24. package/dist/components/Layout/BlockList/Headers/ListHeader.js +3 -3
  25. package/dist/components/Navigation/FoodsNavBar/Sections/ExpandButton/ExpandButton.js +3 -3
  26. package/dist/components/Navigation/FoodsNavBar/Sections/Organization/Organization.js +4 -4
  27. package/dist/components/Navigation/FoodsNavBar/Sections/Profile/UserButton.js +4 -4
  28. package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js +2 -2
  29. package/dist/components/Progress/Progress.js +3 -3
  30. package/dist/components/ProgressCard/ProgressCard.js +6 -6
  31. package/dist/components/Tabs/CountTabs/CountTabs.d.ts +12 -0
  32. package/dist/components/Tabs/CountTabs/CountTabs.js +5 -0
  33. package/dist/components/Tabs/CountTabs/index.d.ts +1 -0
  34. package/dist/components/Tabs/index.d.ts +1 -0
  35. package/dist/components/Tags/FoodsTags.js +2 -2
  36. package/dist/main.js +1 -1
  37. package/dist/themes/common/MUIComponents/buttons.d.ts +1 -1
  38. package/dist/themes/common/MUIComponents/typography.d.ts +2 -1
  39. package/dist/themes/common/colors.d.ts +25 -1
  40. package/dist/themes/common/colors.js +1 -1
  41. package/dist/themes/common/components.js +1 -1
  42. package/dist/themes/common/custom.d.ts +3 -1
  43. package/dist/themes/common/custom.js +1 -1
  44. package/package.json +10 -4
@@ -1,4 +1,4 @@
1
- import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useTheme as i,Stack as n,Typography as c}from"@mui/material";import{WhiteBox as t}from"../../Box/WhiteBox.js";import{FoodsIcon as e}from"../../Icons/FoodsIcon.js";const m=m=>{const a=i(),{BoxProps:l,children:s,variant:d="info"}=m,p={info:{icon:"information",color:a.custom.grey[2800]},error:{icon:"warning",color:a.custom.red[600]}}[d];/* @__PURE__ */
2
- return o(t,{padding:a.spacing(2),...l,children:/* @__PURE__ */r(n,{direction:"row",alignItems:"center",gap:a.spacing(1.5),color:p.color,children:[
3
- /* @__PURE__ */o(e,{icon:p.icon,size:3,color:p.color}),
1
+ import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useTheme as i,Stack as n,Typography as c}from"@mui/material";import{FoodsIcon as t}from"../../Icons/FoodsIcon.js";import{WhiteBox as e}from"../../Box/WhiteBox.js";const m=m=>{const a=i(),{BoxProps:l,children:s,variant:d="info"}=m,p={info:{icon:"information",color:a.custom.grey[2800]},error:{icon:"warning",color:a.custom.red[600]}}[d];/* @__PURE__ */
2
+ return o(e,{padding:a.spacing(2),...l,children:/* @__PURE__ */r(n,{direction:"row",alignItems:"center",gap:a.spacing(1.5),color:p.color,children:[
3
+ /* @__PURE__ */o(t,{icon:p.icon,size:3,color:p.color}),
4
4
  /* @__PURE__ */o(c,{variant:"body",color:p.color,children:s})]})})};export{m as ClassicBanner};
@@ -1,2 +1,2 @@
1
- import{jsx as o,Fragment as t}from"react/jsx-runtime";import{Button as r}from"@mui/material";import{FoodsTooltip as i}from"../Tooltip/FoodsTooltip.js";import{FoodsIcon as n}from"../Icons/FoodsIcon.js";const c=c=>{const{buttonProps:s={},tooltip:e,icon:m,size:p,withBackground:a=!1}=c,d=`icon-${p}-${a?"withbackground":"nobackground"}`,l=e?.props||{};/* @__PURE__ */
2
- return o(t,{children:/* @__PURE__ */o(i,{title:e?.text,arrow:!0,...l,width:"auto",children:/* @__PURE__ */o(r,{variant:d,...s,children:/* @__PURE__ */o(n,{icon:m,size:{xs:1,s:2,m:4}[p]})})})})};export{c as FoodsIconButton};
1
+ import{jsx as o,Fragment as t}from"react/jsx-runtime";import{Button as r}from"@mui/material";import{FoodsIcon as i}from"../Icons/FoodsIcon.js";import{FoodsTooltip as n}from"../Tooltip/FoodsTooltip.js";const c=c=>{const{buttonProps:s={},tooltip:e,icon:m,size:p,withBackground:a=!1}=c,d=`icon-${p}-${a?"withbackground":"nobackground"}`,l=e?.props||{};/* @__PURE__ */
2
+ return o(t,{children:/* @__PURE__ */o(n,{title:e?.text,arrow:!0,...l,width:"auto",children:/* @__PURE__ */o(r,{variant:d,...s,children:/* @__PURE__ */o(i,{icon:m,size:{xs:1,s:2,m:4}[p]})})})})};export{c as FoodsIconButton};
@@ -1,4 +1,4 @@
1
- import{jsxs as i,Fragment as e,jsx as o}from"react/jsx-runtime";import{styled as t}from"@mui/material/styles";import{Box as r,Typography as n,Stack as l,Link as s,Button as a}from"@mui/material";import{greyTheme as d}from"../../../themes/common/colors.js";import{useState as m}from"react";import{ArticleContent as c}from"./ArticleContent.js";import{FoodsIcon as p}from"../../Icons/FoodsIcon.js";const h=[3,5,9,3],g=t(l,{shouldForwardProp:i=>"isRightColumn"!==i})(({isRightColumn:i,theme:e})=>({border:`1px solid ${d[500]}`,borderRadius:e.spacing(1),overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",flexDirection:i?"row":"column",[e.breakpoints.down("md")]:{flexDirection:"column"},boxShadow:e.custom.shadows.grey})),b=t(r,{shouldForwardProp:i=>"isRightColumn"!==i})(({isRightColumn:i,theme:e})=>({flex:i?"0 0 35%":"1 1 auto",lineHeight:0,position:"relative",width:"100%",height:i?"100%":"380px",backgroundColor:e.palette.grey[400],overflow:"hidden","& img":{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",[e.breakpoints.down("md")]:{height:"200px"}},[e.breakpoints.down("md")]:{height:"140px"},[e.breakpoints.down("md")]:{flex:2}})),u=t(l)(({theme:i})=>({flex:"1 1 0",backgroundColor:i.palette.background.paper,padding:i.spacing(3,3,2,3),justifyContent:"space-between",gap:i.spacing(1),[i.breakpoints.down("md")]:{padding:i.spacing(2,2,1.5,2)},[i.breakpoints.down("md")]:{flex:"1 1 0"}})),f=t(s)({display:"block",width:"100%",height:"100%",cursor:"pointer"}),w=t(a)(({theme:i})=>({display:"inline-flex",alignSelf:"flex-start",fontWeight:700,gap:i.spacing(1)})),x=t(n,{shouldForwardProp:i=>"isFirst"!==i})(({isFirst:i,articlesNumber:e,theme:o})=>({display:"-webkit-box",WebkitLineClamp:i?5:h[e-1]||3,marginTop:o.spacing(2),WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",[o.breakpoints.down("md")]:{WebkitLineClamp:i?3:2,marginTop:o.spacing(1)}})),k=t=>{const[l,s]=m(!1),{title:a,description:d,imageSrc:h,content:k,onClick:C,isFirst:v=!1,articlesNumber:y=1,isRightColumn:F=!1,readMoreText:R="Lire l'article"}=t,j=()=>{C?C():s(!0)};/* @__PURE__ */
1
+ import{jsxs as i,Fragment as e,jsx as o}from"react/jsx-runtime";import{styled as t}from"@mui/material/styles";import{Box as r,Typography as n,Stack as l,Link as s,Button as a}from"@mui/material";import{greyTheme as d}from"../../../themes/common/colors.js";import{FoodsIcon as m}from"../../Icons/FoodsIcon.js";import{useState as c}from"react";import{ArticleContent as p}from"./ArticleContent.js";const h=[3,5,9,3],g=t(l,{shouldForwardProp:i=>"isRightColumn"!==i})(({isRightColumn:i,theme:e})=>({border:`1px solid ${d[500]}`,borderRadius:e.spacing(1),overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",flexDirection:i?"row":"column",[e.breakpoints.down("md")]:{flexDirection:"column"},boxShadow:e.custom.shadows.grey})),b=t(r,{shouldForwardProp:i=>"isRightColumn"!==i})(({isRightColumn:i,theme:e})=>({flex:i?"0 0 35%":"1 1 auto",lineHeight:0,position:"relative",width:"100%",height:i?"100%":"380px",backgroundColor:e.palette.grey[400],overflow:"hidden","& img":{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",[e.breakpoints.down("md")]:{height:"200px"}},[e.breakpoints.down("md")]:{height:"140px"},[e.breakpoints.down("md")]:{flex:2}})),u=t(l)(({theme:i})=>({flex:"1 1 0",backgroundColor:i.palette.background.paper,padding:i.spacing(3,3,2,3),justifyContent:"space-between",gap:i.spacing(1),[i.breakpoints.down("md")]:{padding:i.spacing(2,2,1.5,2)},[i.breakpoints.down("md")]:{flex:"1 1 0"}})),f=t(s)({display:"block",width:"100%",height:"100%",cursor:"pointer"}),w=t(a)(({theme:i})=>({display:"inline-flex",alignSelf:"flex-start",fontWeight:700,gap:i.spacing(1)})),x=t(n,{shouldForwardProp:i=>"isFirst"!==i})(({isFirst:i,articlesNumber:e,theme:o})=>({display:"-webkit-box",WebkitLineClamp:i?5:h[e-1]||3,marginTop:o.spacing(2),WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",[o.breakpoints.down("md")]:{WebkitLineClamp:i?3:2,marginTop:o.spacing(1)}})),k=t=>{const[l,s]=c(!1),{title:a,description:d,imageSrc:h,content:k,onClick:C,isFirst:v=!1,articlesNumber:y=1,isRightColumn:F=!1,readMoreText:R="Lire l'article"}=t,j=()=>{C?C():s(!0)};/* @__PURE__ */
2
2
  return i(e,{children:[
3
3
  /* @__PURE__ */i(g,{isRightColumn:F,children:[
4
4
  /* @__PURE__ */o(b,{isRightColumn:F,children:/* @__PURE__ */o(f,{onClick:j,children:/* @__PURE__ */o("img",{src:h,alt:a})})}),
@@ -8,4 +8,4 @@ return i(e,{children:[
8
8
  /* @__PURE__ */o(x,{variant:"body",mb:"1rem",isFirst:v,articlesNumber:y,dangerouslySetInnerHTML:{__html:d}})]}),
9
9
  /* @__PURE__ */i(w,{variant:"text",onClick:j,children:[
10
10
  /* @__PURE__ */o(n,{fontWeight:700,fontSize:"0.875rem",children:R}),
11
- /* @__PURE__ */o(p,{size:2,icon:"arrowRight"})]})]})]}),!C&&/* @__PURE__ */o(c,{isOpen:l,onClose:()=>s(!1),article:{title:a,description:d,imageSrc:h,content:k||d}})]})};export{k as Article};
11
+ /* @__PURE__ */o(m,{size:2,icon:"arrowRight"})]})]})]}),!C&&/* @__PURE__ */o(p,{isOpen:l,onClose:()=>s(!1),article:{title:a,description:d,imageSrc:h,content:k||d}})]})};export{k as Article};
@@ -1,8 +1,8 @@
1
- import{jsxs as i,Fragment as o,jsx as t}from"react/jsx-runtime";import{styled as e}from"@mui/material/styles";import{Typography as r,Box as n,IconButton as a,Stack as s}from"@mui/material";import{useEffect as l,Suspense as c}from"react";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";const b=e(n)(()=>({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0)",zIndex:1e3,transition:"background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1)",visibility:"hidden","&.open":{backgroundColor:"rgba(0, 0, 0, 0.5)",visibility:"visible"}})),p=e(n)(({theme:i})=>({position:"fixed",top:0,right:0,bottom:0,width:"75%",backgroundColor:i.palette.background.paper,zIndex:1001,overflowY:"auto",transform:"translateX(100%)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:0,borderRadius:`${i.spacing(1)} 0 0 ${i.spacing(1)}`,"&.open":{transform:"translateX(0)",opacity:1,visibility:"visible",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},[i.breakpoints.down("md")]:{width:"100%"}})),m=e(n)({width:"100%",height:"400px",backgroundColor:"#f0f0f0","& img":{width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.3s ease-in-out"}}),g=e(a)(({theme:i})=>({position:"fixed",top:i.spacing(2),right:i.spacing(2.5),zIndex:1002,backgroundColor:"white",visibility:"hidden",transform:"translateX(200%)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.8)"},"&.open":{transform:"translateX(0)",opacity:1,visibility:"visible",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})),h=e(s)({padding:"2rem 4rem"}),u=({isOpen:e,onClose:n,article:a})=>(l(()=>(document.body.style.overflow=e?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[e]),/* @__PURE__ */i(o,{children:[
1
+ import{jsxs as i,Fragment as o,jsx as t}from"react/jsx-runtime";import{styled as e}from"@mui/material/styles";import{Typography as r,Box as n,IconButton as a,Stack as s}from"@mui/material";import{FoodsIcon as l}from"../../Icons/FoodsIcon.js";import{useEffect as c,Suspense as d}from"react";const b=e(n)(()=>({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0)",zIndex:1e3,transition:"background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1)",visibility:"hidden","&.open":{backgroundColor:"rgba(0, 0, 0, 0.5)",visibility:"visible"}})),p=e(n)(({theme:i})=>({position:"fixed",top:0,right:0,bottom:0,width:"75%",backgroundColor:i.palette.background.paper,zIndex:1001,overflowY:"auto",transform:"translateX(100%)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:0,borderRadius:`${i.spacing(1)} 0 0 ${i.spacing(1)}`,"&.open":{transform:"translateX(0)",opacity:1,visibility:"visible",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},[i.breakpoints.down("md")]:{width:"100%"}})),m=e(n)({width:"100%",height:"400px",backgroundColor:"#f0f0f0","& img":{width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.3s ease-in-out"}}),g=e(a)(({theme:i})=>({position:"fixed",top:i.spacing(2),right:i.spacing(2.5),zIndex:1002,backgroundColor:"white",visibility:"hidden",transform:"translateX(200%)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.8)"},"&.open":{transform:"translateX(0)",opacity:1,visibility:"visible",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})),h=e(s)({padding:"2rem 4rem"}),u=({isOpen:e,onClose:n,article:a})=>(c(()=>(document.body.style.overflow=e?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[e]),/* @__PURE__ */i(o,{children:[
2
2
  /* @__PURE__ */t(b,{className:e?"open":"",onClick:n}),
3
- /* @__PURE__ */t(g,{className:e?"open":"",onClick:n,children:/* @__PURE__ */t(d,{size:2,icon:"close"})}),
3
+ /* @__PURE__ */t(g,{className:e?"open":"",onClick:n,children:/* @__PURE__ */t(l,{size:2,icon:"close"})}),
4
4
  /* @__PURE__ */i(p,{className:e?"open":"",children:[
5
- /* @__PURE__ */t(c,{fallback:/* @__PURE__ */t(m,{}),children:/* @__PURE__ */t(m,{children:/* @__PURE__ */t("img",{src:a.imageSrc,alt:a.title,loading:"lazy",onLoad:i=>{i.target.style.opacity="1"},style:{opacity:0}})})}),
5
+ /* @__PURE__ */t(d,{fallback:/* @__PURE__ */t(m,{}),children:/* @__PURE__ */t(m,{children:/* @__PURE__ */t("img",{src:a.imageSrc,alt:a.title,loading:"lazy",onLoad:i=>{i.target.style.opacity="1"},style:{opacity:0}})})}),
6
6
  /* @__PURE__ */i(h,{spacing:3,children:[
7
7
  /* @__PURE__ */t(r,{variant:"h2",children:a.title}),
8
8
  /* @__PURE__ */t(r,{variant:"body1",dangerouslySetInnerHTML:{__html:a.content}})]})]})]}));export{u as ArticleContent};
@@ -1,5 +1,5 @@
1
- import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useTheme as o}from"@mui/material";import{FlexibleTypography as r}from"../../../innerComponents/FlexibleTypography.js";import{FlexibleButton as n}from"../../../innerComponents/FlexibleButton.js";import{HeroContainer as e,ImageWrapper as s,HeroImage as a,ContentWrapper as p,TextContent as l,DescriptionWrapper as c,ActionWrapper as m}from"./styles.js";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";const g=g=>{const{title:h,subtitle:f,description:y,imageUrl:u,callToAction:x,sxProps:b={}}=g,j=o();/* @__PURE__ */
2
- return t(e,{sx:b,children:[u&&/* @__PURE__ */i(s,{children:/* @__PURE__ */i(a,{src:u,alt:"hero image"})}),
3
- /* @__PURE__ */t(p,{children:[
1
+ import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useTheme as o}from"@mui/material";import{FoodsIcon as r}from"../../Icons/FoodsIcon.js";import{FlexibleTypography as n}from"../../../innerComponents/FlexibleTypography.js";import{FlexibleButton as e}from"../../../innerComponents/FlexibleButton.js";import{HeroContainer as s,ImageWrapper as a,HeroImage as p,ContentWrapper as l,TextContent as c,DescriptionWrapper as m,ActionWrapper as d}from"./styles.js";const g=g=>{const{title:h,subtitle:f,description:y,imageUrl:u,callToAction:x,sxProps:b={}}=g,j=o();/* @__PURE__ */
2
+ return t(s,{sx:b,children:[u&&/* @__PURE__ */i(a,{children:/* @__PURE__ */i(p,{src:u,alt:"hero image"})}),
4
3
  /* @__PURE__ */t(l,{children:[
5
- /* @__PURE__ */i(r,{defaultVariant:"h2",text:h}),f&&/* @__PURE__ */i(r,{defaultVariant:"h5",text:f,typographyProps:{color:j.custom.grey[2e3],padding:j.spacing(.5,0,.5,0)}}),y&&/* @__PURE__ */i(c,{children:y})]}),x&&/* @__PURE__ */i(m,{children:/* @__PURE__ */i(n,{buttonOptions:x,defaultOptions:{sx:{display:"inline-flex",padding:j.spacing(3),letterSpacing:j.spacing(.02),fontWeight:j.typography["body-bold"].fontWeight},variant:"primary",endIcon:/* @__PURE__ */i(d,{size:2,icon:"arrowRight"})}})})]})]})};export{g as HeroBlock};
4
+ /* @__PURE__ */t(c,{children:[
5
+ /* @__PURE__ */i(n,{defaultVariant:"h2",text:h}),f&&/* @__PURE__ */i(n,{defaultVariant:"h5",text:f,typographyProps:{color:j.custom.grey[2e3],padding:j.spacing(.5,0,.5,0)}}),y&&/* @__PURE__ */i(m,{children:y})]}),x&&/* @__PURE__ */i(d,{children:/* @__PURE__ */i(e,{buttonOptions:x,defaultOptions:{sx:{display:"inline-flex",padding:j.spacing(3),letterSpacing:j.spacing(.02),fontWeight:j.typography["body-bold"].fontWeight},variant:"primary",endIcon:/* @__PURE__ */i(r,{size:2,icon:"arrowRight"})}})})]})]})};export{g as HeroBlock};
@@ -1,8 +1,8 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useTheme as i,Stack as o,Box as t,Typography as n}from"@mui/material";import{ScoreContainer as m}from"../../Badge/ScoreContainer.js";import{FoodsIcon as a}from"../../Icons/FoodsIcon.js";const d=d=>{const{title:p,children:c,objectives:l=[],tooltipMessage:s}=d,x=i();/* @__PURE__ */
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useTheme as i,Stack as o,Box as t,Typography as n}from"@mui/material";import{FoodsIcon as m}from"../../Icons/FoodsIcon.js";import{ScoreContainer as a}from"../../Badge/ScoreContainer.js";const d=d=>{const{title:p,children:c,objectives:l=[],tooltipMessage:s}=d,x=i();/* @__PURE__ */
2
2
  return e(o,{sx:{borderRadius:"12px",border:`1px solid ${x.palette.grey[500]}`,padding:"34px",maxWidth:"360px",background:x.palette.background.paper},children:[
3
3
  /* @__PURE__ */e(t,{display:"flex",children:[
4
- /* @__PURE__ */r(n,{variant:"h3",component:"h3",mb:"1.5rem",children:p}),s&&/* @__PURE__ */r(a,{size:3,icon:"information"})]}),
4
+ /* @__PURE__ */r(n,{variant:"h3",component:"h3",mb:"1.5rem",children:p}),s&&/* @__PURE__ */r(m,{size:3,icon:"information"})]}),
5
5
  /* @__PURE__ */r(t,{fontWeight:700,display:"flex",gap:"0.5rem",mb:"1rem",children:c}),
6
6
  /* @__PURE__ */r(o,{sx:{"> div:not(:last-of-type)":{mb:"1rem"}},children:l.map((i,t)=>/* @__PURE__ */e(o,{flexDirection:"row",alignItems:"center",gap:".5rem",children:[
7
7
  /* @__PURE__ */r(n,{variant:"small-medium",children:i.objective}),
8
- /* @__PURE__ */r(m,{boxProps:{sx:{padding:"0.1rem 0.5rem"}},children:i.component})]},t))})]})};export{d as IndicatorBlock};
8
+ /* @__PURE__ */r(a,{boxProps:{sx:{padding:"0.1rem 0.5rem"}},children:i.component})]},t))})]})};export{d as IndicatorBlock};
@@ -1,6 +1,6 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useTheme as r,Stack as n,Typography as o,Box as i}from"@mui/material";import{FoodsTooltip as c}from"../../Tooltip/FoodsTooltip.js";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";const a=c=>{const{title:d,subtitle:a,description:m}=c,p=r();/* @__PURE__ */
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useTheme as r,Stack as n,Typography as o,Box as i}from"@mui/material";import{FoodsIcon as c}from"../../Icons/FoodsIcon.js";import{FoodsTooltip as d}from"../../Tooltip/FoodsTooltip.js";const a=c=>{const{title:d,subtitle:a,description:m}=c,p=r();/* @__PURE__ */
2
2
  return t(n,{sx:{borderRadius:"12px",border:`1px solid ${p.palette.grey[500]}`,padding:"34px",maxWidth:"360px",background:p.palette.background.paper},children:[
3
3
  /* @__PURE__ */t(n,{flexDirection:"row",alignContent:"center",justifyContent:"space-between",children:[
4
4
  /* @__PURE__ */e(o,{variant:"h3",component:"h3",mb:"1.5rem",children:d}),a&&/* @__PURE__ */e(l,{text:a})]}),
5
5
  /* @__PURE__ */e(n,{children:/* @__PURE__ */e(o,{variant:"body-medium",children:/* @__PURE__ */e(i,{dangerouslySetInnerHTML:{__html:m}})})})]})};function l(t){const{text:r}=t;/* @__PURE__ */
6
- return e(c,{sx:{textAlign:"center"},arrow:!1,title:/* @__PURE__ */e(o,{variant:"body-medium",children:r}),placement:"top",children:/* @__PURE__ */e(i,{children:/* @__PURE__ */e(d,{size:3,icon:"information"})})})}export{a as LightIndicatorBlock};
6
+ return e(d,{sx:{textAlign:"center"},arrow:!1,title:/* @__PURE__ */e(o,{variant:"body-medium",children:r}),placement:"top",children:/* @__PURE__ */e(i,{children:/* @__PURE__ */e(c,{size:3,icon:"information"})})})}export{a as LightIndicatorBlock};
@@ -1,6 +1,6 @@
1
- import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{Stack as n,useTheme as t,Typography as i,Box as c}from"@mui/material";import{useState as s}from"react";import{ValuePopover as a}from"./ValuePopover.js";import{OptionsPopover as l}from"../../../../Popover/OptionsPopover.js";import{FoodsIcon as d}from"../../../../Icons/FoodsIcon.js";const p=e=>({"&:hover":{backgroundColor:e.custom.grey[600]},"&:active":{backgroundColor:e.custom.grey[1e3]},transition:"ease-in-out 0.2s all",borderRadius:e.spacing(2),display:"flex",alignItems:"center"}),m=r=>{const{selectedItem:c,disabled:s}=r,a=t();/* @__PURE__ */
2
- return e(n,{sx:{...s?{}:p(a),padding:a.spacing(0,1),marginLeft:a.spacing(-1),justifyContent:"space-between",gap:a.spacing(1),flexDirection:"row"},children:[
3
- /* @__PURE__ */o(i,{variant:"body",sx:{color:a.custom.grey[2500]},children:c?.label}),!s&&/* @__PURE__ */o(d,{size:1,icon:"arrowDownShort"})]})},u=()=>{const e=t();/* @__PURE__ */
4
- return o(c,{sx:{...p(e),width:e.spacing(4),height:e.spacing(4),justifyContent:"center"},children:/* @__PURE__ */o(d,{size:2,icon:"arrowDownShort"})})},g=t=>{const{optionsProps:i,selectedItem:c,setSelectedItem:d,variant:p="primary"}=t,[g,h]=s(null),f=Boolean(g),x=!i.content;/* @__PURE__ */
1
+ import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{Stack as n,useTheme as t,Typography as i,Box as c}from"@mui/material";import{useState as s}from"react";import{FoodsIcon as a}from"../../../../Icons/FoodsIcon.js";import{ValuePopover as l}from"./ValuePopover.js";import{OptionsPopover as d}from"../../../../Popover/OptionsPopover.js";const p=e=>({"&:hover":{backgroundColor:e.custom.grey[600]},"&:active":{backgroundColor:e.custom.grey[1e3]},transition:"ease-in-out 0.2s all",borderRadius:e.spacing(2),display:"flex",alignItems:"center"}),m=r=>{const{selectedItem:c,disabled:s}=r,l=t();/* @__PURE__ */
2
+ return e(n,{sx:{...s?{}:p(l),padding:l.spacing(0,1),marginLeft:l.spacing(-1),justifyContent:"space-between",gap:l.spacing(1),flexDirection:"row"},children:[
3
+ /* @__PURE__ */o(i,{variant:"body",sx:{color:l.custom.grey[2500]},children:c?.label}),!s&&/* @__PURE__ */o(a,{size:1,icon:"arrowDownShort"})]})},u=()=>{const e=t();/* @__PURE__ */
4
+ return o(c,{sx:{...p(e),width:e.spacing(4),height:e.spacing(4),justifyContent:"center"},children:/* @__PURE__ */o(a,{size:2,icon:"arrowDownShort"})})},g=t=>{const{optionsProps:i,selectedItem:c,setSelectedItem:a,variant:p="primary"}=t,[g,h]=s(null),f=Boolean(g),x=!i.content;/* @__PURE__ */
5
5
  return e(r,{children:[
6
- /* @__PURE__ */e(n,{direction:"row",alignItems:"center",gap:"4px",...x?{}:{onClick:e=>{h(f?null:e.currentTarget)},sx:{cursor:"pointer"}},children:["primary"===p&&/* @__PURE__ */o(m,{selectedItem:c,disabled:x}),"secondary"===p&&/* @__PURE__ */o(u,{})]}),f&&/* @__PURE__ */o(a,{anchor:g,setAnchor:h,paperOverrides:void 0,children:/* @__PURE__ */o(l,{content:i.content,onChange:e=>{d(Number(e.id));const r=Number(e.id);i.onChange?.(r),h(null)},defaultIndex:c?.id,minWidth:"287px"})})]})};export{g as ValueSwitcher};
6
+ /* @__PURE__ */e(n,{direction:"row",alignItems:"center",gap:"4px",...x?{}:{onClick:e=>{h(f?null:e.currentTarget)},sx:{cursor:"pointer"}},children:["primary"===p&&/* @__PURE__ */o(m,{selectedItem:c,disabled:x}),"secondary"===p&&/* @__PURE__ */o(u,{})]}),f&&/* @__PURE__ */o(l,{anchor:g,setAnchor:h,paperOverrides:void 0,children:/* @__PURE__ */o(d,{content:i.content,onChange:e=>{a(Number(e.id));const r=Number(e.id);i.onChange?.(r),h(null)},defaultIndex:c?.id,minWidth:"287px"})})]})};export{g as ValueSwitcher};
@@ -1,6 +1,6 @@
1
- import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useTheme as i,Box as r,Stack as t,Button as n}from"@mui/material";import{ScoreCardHeader as d}from"./Header/ScoreCardHeader.js";import{ComingSoonBadge as a}from"../../Badge/ComingSoonBadge.js";import{WhiteBox as s}from"../../Box/WhiteBox.js";import{FoodsIcon as c}from"../../Icons/FoodsIcon.js";const p=p=>{const{header:m,children:l,seeMoreText:x="Voir plus de détail",soonAvailableText:g,disableFooter:h=!1}=p,f=i();/* @__PURE__ */
2
- return o(s,{sx:{flex:"0 0 calc(33.33% - 14px)",minWidth:"fit-content"},children:[
1
+ import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useTheme as i,Box as r,Stack as t,Button as n}from"@mui/material";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";import{ScoreCardHeader as a}from"./Header/ScoreCardHeader.js";import{ComingSoonBadge as s}from"../../Badge/ComingSoonBadge.js";import{WhiteBox as c}from"../../Box/WhiteBox.js";const p=p=>{const{header:m,children:l,seeMoreText:x="Voir plus de détail",soonAvailableText:g,disableFooter:h=!1}=p,f=i();/* @__PURE__ */
2
+ return o(c,{sx:{flex:"0 0 calc(33.33% - 14px)",minWidth:"fit-content"},children:[
3
3
  /* @__PURE__ */o(r,{sx:{height:"70%"},children:[
4
- /* @__PURE__ */e(t,{sx:{..."secondary"===m.variant&&{backgroundColor:f.custom.grey[200],borderTopLeftRadius:f.spacing(2),borderTopRightRadius:f.spacing(2),borderBottom:`1px solid ${f.custom.grey[500]}`}},children:/* @__PURE__ */e(d,{...m})}),
4
+ /* @__PURE__ */e(t,{sx:{..."secondary"===m.variant&&{backgroundColor:f.custom.grey[200],borderTopLeftRadius:f.spacing(2),borderTopRightRadius:f.spacing(2),borderBottom:`1px solid ${f.custom.grey[500]}`}},children:/* @__PURE__ */e(a,{...m})}),
5
5
  /* @__PURE__ */e(t,{padding:{xs:"16px",md:"28px 32px"},paddingBottom:{xs:"16px",md:"37px"},gap:"40px",children:l})]}),!1===h&&/* @__PURE__ */o(t,{direction:"row",alignItems:"center",gap:f.spacing(3.5),padding:f.spacing(3.5,4),borderTop:`1px solid ${f.custom.grey[500]}`,children:[
6
- /* @__PURE__ */e(n,{variant:"ternary",endIcon:/* @__PURE__ */e(c,{size:2,icon:"arrowRight"}),disabled:void 0===p.moreDetailAction,onClick:p.moreDetailAction,sx:{width:"100%",justifyContent:"space-between",fontWeight:700},children:x}),void 0!==g&&/* @__PURE__ */e(a,{soonAvailableText:g})]})]})};export{p as ScoreCard};
6
+ /* @__PURE__ */e(n,{variant:"ternary",endIcon:/* @__PURE__ */e(d,{size:2,icon:"arrowRight"}),disabled:void 0===p.moreDetailAction,onClick:p.moreDetailAction,sx:{width:"100%",justifyContent:"space-between",fontWeight:700},children:x}),void 0!==g&&/* @__PURE__ */e(s,{soonAvailableText:g})]})]})};export{p as ScoreCard};
@@ -0,0 +1,13 @@
1
+ import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ export type SelectionCardProps = {
3
+ title: string;
4
+ description?: string;
5
+ icon?: ReactNode;
6
+ selected?: boolean;
7
+ disabled?: boolean;
8
+ onClick?: () => void;
9
+ id?: string;
10
+ tabIndex?: number;
11
+ onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
12
+ };
13
+ export declare const SelectionCard: ForwardRefExoticComponent<SelectionCardProps & RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,4 @@
1
+ import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useTheme as r,Stack as i,Box as n,Typography as t}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";const c=l((l,c)=>{const{title:s,description:p,icon:m,selected:x=!1,disabled:b=!1,onClick:h,id:f,tabIndex:u,onKeyDown:g}=l,y=r(),k=y.palette.primary,C=y.palette.grey,w=C[100],I=k[50]??w,j=k[200]??k.main,v=k[600]??k.main,S=C[600],D=b?d[1400]:y.palette.text.primary,F=b?C[300]:x?k[100]??I:I;/* @__PURE__ */
2
+ return o(i,{component:"button",ref:c,id:f,type:"button",role:"radio","aria-checked":x,"aria-disabled":b,disabled:b,tabIndex:u,onClick:()=>{b||h?.()},onKeyDown:g,direction:"row",alignItems:"center",gap:y.spacing(2),sx:{width:"306px",minHeight:"82px",padding:y.spacing(2),border:`1px solid ${b?S:x?v:j}`,borderRadius:"12px",backgroundColor:x?I:w,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:I,borderColor:v},"&:focus-visible":{outline:`2px solid ${v}`,outlineOffset:"2px"}},children:[m&&/* @__PURE__ */e(n,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,padding:y.spacing(1),borderRadius:"12px",backgroundColor:F,color:D},children:m}),
3
+ /* @__PURE__ */o(i,{flex:1,justifyContent:"center",minWidth:0,children:[
4
+ /* @__PURE__ */e(t,{variant:"body-semibold",color:"inherit",children:s}),p&&/* @__PURE__ */e(t,{variant:"small",color:"inherit",children:p})]}),x&&/* @__PURE__ */e(n,{flexShrink:0,color:v,children:/* @__PURE__ */e(a,{icon:"checkCircleFilled",size:2})})]})});c.displayName="SelectionCard";export{c as SelectionCard};
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export type SelectionCardOption<T extends string | number = string> = {
3
+ id: T;
4
+ title: string;
5
+ description?: string;
6
+ icon?: ReactNode;
7
+ disabled?: boolean;
8
+ };
9
+ export type SelectionCardGroupProps<T extends string | number = string> = {
10
+ options: SelectionCardOption<T>[];
11
+ value?: T;
12
+ onChange: (id: T) => void;
13
+ direction?: "row" | "column";
14
+ name?: string;
15
+ };
16
+ export declare const SelectionCardGroup: <T extends string | number = string>(props: SelectionCardGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{Stack as e}from"@mui/material";import{useRef as t,useMemo as i}from"react";import{SelectionCard as n}from"./SelectionCard.js";const o=o=>{const{options:d,value:c,onChange:l,direction:s="row",name:a}=o,u=t([]),f=i(()=>d.map((r,e)=>r.disabled?null:e).filter(r=>null!==r),[d]),p=d.findIndex(r=>r.id===c),w=f[0]??-1;/* @__PURE__ */
2
+ return r(e,{role:"radiogroup","aria-label":a,direction:s,gap:2,onKeyDown:r=>{const e="row"===s?["ArrowRight","ArrowDown"]:["ArrowDown","ArrowRight"],t="row"===s?["ArrowLeft","ArrowUp"]:["ArrowUp","ArrowLeft"];if(e.includes(r.key)||t.includes(r.key)){r.preventDefault();const t=(r=>{const e=u.current.findIndex(e=>e===r.target);return-1!==e?e:-1!==p?p:w})(r),i=((r,e)=>{if(0===f.length)return-1;const t=f.indexOf(r),i=((-1===t?0:t)+e+f.length)%f.length;return f[i]})(t,e.includes(r.key)?1:-1);(r=>{const e=d[r];e&&!e.disabled&&(l(e.id),u.current[r]?.focus())})(i)}},sx:{width:"fit-content"},children:d.map((e,t)=>{const i=e.id===c,o=i||-1===p&&t===w;/* @__PURE__ */
3
+ return r(n,{ref:r=>{u.current[t]=r},id:String(e.id),title:e.title,description:e.description,icon:e.icon,selected:i,disabled:e.disabled,tabIndex:e.disabled?void 0:o?0:-1,onClick:()=>l(e.id)},e.id)})})};export{o as SelectionCardGroup};
@@ -3,3 +3,5 @@ export * from './ScoreCard/ScoreCard';
3
3
  export * from './ScoreCard/Header/ScoreCardHeader';
4
4
  export * from './ScoreCard/Header/ValueSwitcher/ValueSwitcher';
5
5
  export * from './SeeMoreCard/SeeMoreCard';
6
+ export * from './SelectionCard/SelectionCard';
7
+ export * from './SelectionCard/SelectionCardGroup';
@@ -1,4 +1,4 @@
1
- import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useTheme as i,Stack as e,Typography as o,Box as r,Link as a,Button as s}from"@mui/material";import{calculateTooltipPosition as c,getTooltipContainerStyles as l}from"../shared/tooltipPositioning.js";import{forwardRef as p}from"react";import{FoodsTooltip as d}from"../../Tooltip/FoodsTooltip.js";import{FoodsIcon as g}from"../../Icons/FoodsIcon.js";const h={x:0,y:-5},u=p((p,u)=>{const m=i(),{point:x,coordinate:b,valueFormatterFn:f=m.numbers.valueFormatterFn,precision:y,unit:v,xUnit:w,yUnit:C,textOptions:I,showSeriesInTooltip:k=!0,tooltipOptions:j,onTooltipEnter:z,onTooltipLeave:H,handleDismissTooltip:F}=p,T=x.seriesName,E=C??v,P=w??v,$=I?.for??"for",L=()=>/* @__PURE__ */n(r,{role:"button",onClick:()=>F?.(),sx:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:m.spacing(.25),height:m.spacing(2.75),width:m.spacing(2.75),transform:`translate(${m.spacing(1.25)}, -${m.spacing(1.25)}) rotate(45deg)`,borderRadius:"50%","&:hover":{color:m.palette.common.white,backgroundColor:"text.secondary",boxShadow:"0px 0px 4px rgba(0, 0, 0, 0.1)"}},children:/* @__PURE__ */n(g,{icon:"plus",size:2})}),M=/* @__PURE__ */t(e,{direction:"column",spacing:m.spacing(.5),pb:m.spacing(.25),onClick:t=>t.stopPropagation(),onMouseLeave:()=>H?.(),sx:{pointerEvents:"auto"},children:[
1
+ import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useTheme as i,Stack as e,Typography as o,Box as r,Link as a,Button as s}from"@mui/material";import{calculateTooltipPosition as c,getTooltipContainerStyles as l}from"../shared/tooltipPositioning.js";import{forwardRef as p}from"react";import{FoodsIcon as d}from"../../Icons/FoodsIcon.js";import{FoodsTooltip as g}from"../../Tooltip/FoodsTooltip.js";const h={x:0,y:-5},u=p((p,u)=>{const m=i(),{point:x,coordinate:b,valueFormatterFn:f=m.numbers.valueFormatterFn,precision:y,unit:v,xUnit:w,yUnit:C,textOptions:I,showSeriesInTooltip:k=!0,tooltipOptions:j,onTooltipEnter:z,onTooltipLeave:H,handleDismissTooltip:F}=p,T=x.seriesName,E=C??v,P=w??v,$=I?.for??"for",L=()=>/* @__PURE__ */n(r,{role:"button",onClick:()=>F?.(),sx:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:m.spacing(.25),height:m.spacing(2.75),width:m.spacing(2.75),transform:`translate(${m.spacing(1.25)}, -${m.spacing(1.25)}) rotate(45deg)`,borderRadius:"50%","&:hover":{color:m.palette.common.white,backgroundColor:"text.secondary",boxShadow:"0px 0px 4px rgba(0, 0, 0, 0.1)"}},children:/* @__PURE__ */n(d,{icon:"plus",size:2})}),M=/* @__PURE__ */t(e,{direction:"column",spacing:m.spacing(.5),pb:m.spacing(.25),onClick:t=>t.stopPropagation(),onMouseLeave:()=>H?.(),sx:{pointerEvents:"auto"},children:[
2
2
  /* @__PURE__ */t(e,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:m.spacing(1),children:[
3
3
  /* @__PURE__ */n(o,{variant:"h4",lineHeight:m.spacing(2),children:x.label}),
4
4
  /* @__PURE__ */n(L,{})]}),
@@ -10,4 +10,4 @@ import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useTheme as i,Stack as
10
10
  /* @__PURE__ */n(o,{variant:"body2",lineHeight:m.spacing(2),color:"text.secondary",children:P?` ${P}`:""})]}),x.additionalContent&&/* @__PURE__ */n(r,{sx:{pt:m.spacing(2)},children:x.additionalContent}),T&&k&&/* @__PURE__ */n(e,{direction:"row",alignItems:"flex-end",justifyContent:"flex-end",spacing:m.spacing(1),pt:m.spacing(2),children:/* @__PURE__ */t(e,{direction:"row",alignItems:"center",spacing:m.spacing(1),children:[
11
11
  /* @__PURE__ */n(r,{sx:{width:m.spacing(1.5),height:m.spacing(1.5),borderRadius:"50%",backgroundColor:x.seriesColor}}),
12
12
  /* @__PURE__ */n(o,{variant:"body2",lineHeight:m.spacing(2),color:"text.secondary",fontWeight:500,children:T})]})}),j?.button?j.button.href?/* @__PURE__ */n(a,{href:j.button.href,target:"_blank",rel:"noopener noreferrer",children:/* @__PURE__ */n(s,{sx:{color:m.palette.text.primary,mt:m.spacing(2)},variant:j?.button?.variant,size:j?.button?.size,startIcon:j?.button?.startIcon,onClick:t=>{t.stopPropagation(),j?.button?.onClick?.()},children:j.button.text})}):/* @__PURE__ */n(s,{sx:{mt:m.spacing(2)},variant:j?.button?.variant,size:j?.button?.size,startIcon:j?.button?.startIcon,onClick:t=>{t.stopPropagation(),j?.button?.onClick?.()},children:j?.button?.text}):null]}),O=c({coordinate:{x:b.xValue,y:b.yValue},placement:"top",offset:h});/* @__PURE__ */
13
- return n(r,{ref:u,style:{position:"absolute",...O,zIndex:m.zIndex.tooltip,pointerEvents:"auto"},onMouseEnter:z,onMouseLeave:H,children:/* @__PURE__ */n(d,{width:"inherit",title:M,placement:"top",arrow:!0,open:!0,sx:{...l()},children:/* @__PURE__ */n("div",{style:{width:1,height:1,visibility:"hidden",pointerEvents:"none"}})})})});export{u as ScatterPlotTooltip};
13
+ return n(r,{ref:u,style:{position:"absolute",...O,zIndex:m.zIndex.tooltip,pointerEvents:"auto"},onMouseEnter:z,onMouseLeave:H,children:/* @__PURE__ */n(g,{width:"inherit",title:M,placement:"top",arrow:!0,open:!0,sx:{...l()},children:/* @__PURE__ */n("div",{style:{width:1,height:1,visibility:"hidden",pointerEvents:"none"}})})})});export{u as ScatterPlotTooltip};
@@ -1,10 +1,10 @@
1
- import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useTheme as t,Box as a,Stack as n,Typography as r,Link as o}from"@mui/material";import{FoodsTags as l}from"../../../Tags/FoodsTags.js";import{ComparisonBlock as s}from"../../../ComparisonBlock/ComparisonBlock.js";import{FoodsIcon as c}from"../../../Icons/FoodsIcon.js";const d=d=>{const{block:p,improvement:g,textOptions:m}=d,h=t();/* @__PURE__ */
1
+ import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useTheme as t,Box as a,Stack as n,Typography as r,Link as o}from"@mui/material";import{FoodsIcon as l}from"../../../Icons/FoodsIcon.js";import{FoodsTags as s}from"../../../Tags/FoodsTags.js";import{ComparisonBlock as c}from"../../../ComparisonBlock/ComparisonBlock.js";const d=d=>{const{block:p,improvement:g,textOptions:m}=d,h=t();/* @__PURE__ */
2
2
  return e(a,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",padding:h.spacing(2,3),border:`1px solid ${h.palette.divider}`,backgroundColor:h.palette.background.paper,borderRadius:h.spacing(1),height:"100%",position:"relative"},children:[
3
3
  /* @__PURE__ */e(n,{direction:"row",alignItems:"flex-start",justifyContent:"flex-start",spacing:h.spacing(2),minHeight:h.spacing(4),sx:{width:"100%"},children:[
4
4
  /* @__PURE__ */e(n,{direction:"row",alignItems:"flex-start",spacing:1.5,children:[p.isLine?/* @__PURE__ */i(a,{sx:{width:h.spacing(2),transform:`translateY(${h.spacing(1)})`,height:h.spacing(.25),backgroundColor:p.color}}):/* @__PURE__ */i(a,{sx:{minWidth:h.spacing(2),transform:`translateY(${h.spacing(.25)})`,height:h.spacing(2),backgroundColor:p.color,borderRadius:h.spacing(.5)}}),
5
5
  /* @__PURE__ */i(r,{variant:"body2",sx:{fontWeight:h.typography.fontWeightBold},children:p.label})]}),
6
- /* @__PURE__ */i(n,{children:p.complete&&/* @__PURE__ */i(l,{startIcon:"circleCheck",variant:"tags-green",label:m.complete||"",disabled:!0})})]}),p.dataPoints&&p.dataPoints.length>0&&/* @__PURE__ */i(n,{spacing:2,sx:{mt:p.dataPoints[0].startValue&&p.dataPoints[0].endValue?h.spacing(1):0},children:p.dataPoints.map((t,a)=>/* @__PURE__ */e(n,{direction:"row",alignItems:"center",spacing:.5,children:[!!t.startValue&&!!t.endValue&&/* @__PURE__ */i(s,{currentValue:t.endValue,comparedTo:{value:t.startValue,label:t.label},improvement:g,layout:{direction:"horizontal",size:"M"},disableText:!0}),
6
+ /* @__PURE__ */i(n,{children:p.complete&&/* @__PURE__ */i(s,{startIcon:"circleCheck",variant:"tags-green",label:m.complete||"",disabled:!0})})]}),p.dataPoints&&p.dataPoints.length>0&&/* @__PURE__ */i(n,{spacing:2,sx:{mt:p.dataPoints[0].startValue&&p.dataPoints[0].endValue?h.spacing(1):0},children:p.dataPoints.map((t,a)=>/* @__PURE__ */e(n,{direction:"row",alignItems:"center",spacing:.5,children:[!!t.startValue&&!!t.endValue&&/* @__PURE__ */i(c,{currentValue:t.endValue,comparedTo:{value:t.startValue,label:t.label},improvement:g,layout:{direction:"horizontal",size:"M"},disableText:!0}),
7
7
  /* @__PURE__ */i(n,{direction:"column",alignItems:"flex-start",spacing:1,children:t.label&&/* @__PURE__ */i(r,{variant:"small",children:t.label})})]},`${p.key}-${a}`))}),
8
8
  /* @__PURE__ */i(a,{children:p.dataPoints&&p.dataPoints.map((t,a)=>t.link&&/* @__PURE__ */i(o,{href:t.link.url,target:"_blank",rel:"noopener noreferrer",sx:{display:"flex",alignItems:"center",textDecoration:"none",gap:h.spacing(1),cursor:"pointer"},children:/* @__PURE__ */e(n,{direction:"row",alignItems:"center",spacing:h.spacing(1),color:h.palette.primary.main,mt:h.spacing(2),sx:{"&:hover":{opacity:.8}},children:[
9
- /* @__PURE__ */i(c,{icon:t.link.icon,size:1}),
9
+ /* @__PURE__ */i(l,{icon:t.link.icon,size:1}),
10
10
  /* @__PURE__ */i(r,{variant:"body-medium",sx:{fontWeight:h.typography.fontWeightBold},color:h.palette.primary.main,children:t.link.label})]})},`link-${p.key}-${a}`))})]})};export{d as LegendBlockComponent};
@@ -1,4 +1,7 @@
1
- export * from './FoodsIcon';
2
- export * from './FoodsIllustrations';
3
- export * from './iconConfig';
4
- export * from './illustrationsConfig';
1
+ export { FoodsIcon } from './FoodsIcon';
2
+ export type { FoodsIconProps, IconMapping, IconMappingProps } from './FoodsIcon';
3
+ export { FoodsIllustrations } from './FoodsIllustrations';
4
+ export type { FoodsIllustrationsProps, IllustrationMapping } from './FoodsIllustrations';
5
+ export { computeSize, iconMapping } from './iconConfig';
6
+ export type { WidthHeight } from './iconConfig';
7
+ export { illustationsMapping } from './illustrationsConfig';
@@ -0,0 +1 @@
1
+ import{FoodsIcon as o}from"./FoodsIcon.js";import{FoodsIllustrations as r}from"./FoodsIllustrations.js";import{computeSize as i,iconMapping as s}from"./iconConfig.js";import{illustationsMapping as t}from"./illustrationsConfig.js";export{o as FoodsIcon,r as FoodsIllustrations,i as computeSize,s as iconMapping,t as illustationsMapping};
@@ -1,2 +1,2 @@
1
- import{jsx as o}from"react/jsx-runtime";import{useTheme as r,Chip as t}from"@mui/material";import{FoodsIconButton as e}from"../../Button/FoodsIconButton.js";import{FoodsIcon as n}from"../../Icons/FoodsIcon.js";const i=i=>{const{icon:s,label:c,variant:a,onDelete:m,ChipProps:l}=i,p=r(),u="brand"===a?p.palette.primary[100]:p.custom.grey[600];/* @__PURE__ */
2
- return o(t,{icon:void 0===s?void 0:/* @__PURE__ */o(n,{size:1,icon:s}),variant:a,label:c,onDelete:m,deleteIcon:/* @__PURE__ */o(e,{buttonProps:{onClick:m,sx:{":hover":{backgroundColor:u}}},icon:"close",size:"xs"}),...l})};export{i as FoodsPills};
1
+ import{jsx as o}from"react/jsx-runtime";import{useTheme as r,Chip as t}from"@mui/material";import{FoodsIcon as e}from"../../Icons/FoodsIcon.js";import{FoodsIconButton as n}from"../../Button/FoodsIconButton.js";const i=i=>{const{icon:s,label:c,variant:a,onDelete:m,ChipProps:l}=i,p=r(),u="brand"===a?p.palette.primary[100]:p.custom.grey[600];/* @__PURE__ */
2
+ return o(t,{icon:void 0===s?void 0:/* @__PURE__ */o(e,{size:1,icon:s}),variant:a,label:c,onDelete:m,deleteIcon:/* @__PURE__ */o(n,{buttonProps:{onClick:m,sx:{":hover":{backgroundColor:u}}},icon:"close",size:"xs"}),...l})};export{i as FoodsPills};
@@ -1,2 +1,2 @@
1
- import{jsx as o}from"react/jsx-runtime";import{FoodsTextInput as e}from"../Form/FoodsFormFields/FoodsTextInput.js";import{FoodsIcon as r}from"../Icons/FoodsIcon.js";function n(n){/* @__PURE__ */
2
- return o(e,{value:n.value??"",onChange:o=>{n.onChange(o)},ExtraInputProps:{type:"search",placeholder:n.placeholder,endAdornment:/* @__PURE__ */o(r,{size:2,icon:"search"})}})}export{n as SearchBox};
1
+ import{jsx as o}from"react/jsx-runtime";import{FoodsIcon as e}from"../Icons/FoodsIcon.js";import{FoodsTextInput as r}from"../Form/FoodsFormFields/FoodsTextInput.js";function n(n){/* @__PURE__ */
2
+ return o(r,{value:n.value??"",onChange:o=>{n.onChange(o)},ExtraInputProps:{type:"search",placeholder:n.placeholder,endAdornment:/* @__PURE__ */o(e,{size:2,icon:"search"})}})}export{n as SearchBox};
@@ -1,4 +1,4 @@
1
- import{jsx as t,jsxs as i}from"react/jsx-runtime";import{useTheme as r,Stack as o,Box as n}from"@mui/material";import{WhiteBox as e}from"../../../../Box/WhiteBox.js";import{FoodsIllustrations as s}from"../../../../Icons/FoodsIllustrations.js";const m=m=>{const a=r(),{emptyText:c,illustration:l}=m;/* @__PURE__ */
2
- return t(e,{children:/* @__PURE__ */i(o,{justifyContent:"center",alignItems:"center",padding:a.spacing(2,0,2,0),gap:a.spacing(2.5),children:[
3
- /* @__PURE__ */t(s,{width:60,height:60,illustration:l}),
1
+ import{jsx as t,jsxs as i}from"react/jsx-runtime";import{useTheme as r,Stack as o,Box as n}from"@mui/material";import{FoodsIllustrations as e}from"../../../../Icons/FoodsIllustrations.js";import{WhiteBox as s}from"../../../../Box/WhiteBox.js";const m=m=>{const a=r(),{emptyText:c,illustration:l}=m;/* @__PURE__ */
2
+ return t(s,{children:/* @__PURE__ */i(o,{justifyContent:"center",alignItems:"center",padding:a.spacing(2,0,2,0),gap:a.spacing(2.5),children:[
3
+ /* @__PURE__ */t(e,{width:60,height:60,illustration:l}),
4
4
  /* @__PURE__ */t(n,{children:c})]})})};export{m as EmptyForm};
@@ -1,4 +1,4 @@
1
- import{jsx as o,jsxs as i}from"react/jsx-runtime";import{useTheme as t,Stack as e}from"@mui/material";import{ContextualContentBox as n}from"../../../../Box/ContextualContentBox.js";import{FoodsIcon as r}from"../../../../Icons/FoodsIcon.js";const s=s=>{const c=t(),{suggestionTitle:m,text:l}=s;/* @__PURE__ */
2
- return o(n,{size:"small",children:/* @__PURE__ */i(e,{flexDirection:"row",gap:c.spacing(3),children:[
3
- /* @__PURE__ */o(r,{size:8,icon:"suggestions"}),
1
+ import{jsx as o,jsxs as i}from"react/jsx-runtime";import{useTheme as t,Stack as e}from"@mui/material";import{FoodsIcon as n}from"../../../../Icons/FoodsIcon.js";import{ContextualContentBox as r}from"../../../../Box/ContextualContentBox.js";const s=s=>{const c=t(),{suggestionTitle:m,text:l}=s;/* @__PURE__ */
2
+ return o(r,{size:"small",children:/* @__PURE__ */i(e,{flexDirection:"row",gap:c.spacing(3),children:[
3
+ /* @__PURE__ */o(n,{size:8,icon:"suggestions"}),
4
4
  /* @__PURE__ */i(e,{flexDirection:"column",gap:c.spacing(1),children:[m,l]})]})})};export{s as SuggestionBlock};
@@ -1,4 +1,4 @@
1
- import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useTheme as o,Stack as i,Box as e}from"@mui/material";import{FlexibleTypography as r}from"../../../../innerComponents/FlexibleTypography.js";import{FlexibleButton as a}from"../../../../innerComponents/FlexibleButton.js";import{FoodsIcon as s}from"../../../Icons/FoodsIcon.js";const p=p=>{const{title:c,actionButton:m,cancelButton:l}=p,u=o();/* @__PURE__ */
1
+ import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useTheme as o,Stack as i,Box as e}from"@mui/material";import{FoodsIcon as r}from"../../../Icons/FoodsIcon.js";import{FlexibleTypography as a}from"../../../../innerComponents/FlexibleTypography.js";import{FlexibleButton as s}from"../../../../innerComponents/FlexibleButton.js";const p=p=>{const{title:c,actionButton:m,cancelButton:l}=p,u=o();/* @__PURE__ */
2
2
  return t(i,{flexDirection:"row",gap:u.spacing(4),sx:{justifyContent:"space-between",alignItems:"center",padding:u.spacing(3,4,3,4)},children:[
3
- /* @__PURE__ */n(r,{text:c,defaultVariant:"h3"}),
4
- /* @__PURE__ */t(e,{sx:{display:"flex",gap:u.spacing(2)},children:[l&&/* @__PURE__ */n(a,{buttonOptions:l,defaultOptions:{variant:"ternary"}}),m&&/* @__PURE__ */n(a,{buttonOptions:m,defaultOptions:{variant:"primary",endIcon:/* @__PURE__ */n(s,{size:2,icon:"arrowRight"})}})]})]})};export{p as InitHeader};
3
+ /* @__PURE__ */n(a,{text:c,defaultVariant:"h3"}),
4
+ /* @__PURE__ */t(e,{sx:{display:"flex",gap:u.spacing(2)},children:[l&&/* @__PURE__ */n(s,{buttonOptions:l,defaultOptions:{variant:"ternary"}}),m&&/* @__PURE__ */n(s,{buttonOptions:m,defaultOptions:{variant:"primary",endIcon:/* @__PURE__ */n(r,{size:2,icon:"arrowRight"})}})]})]})};export{p as InitHeader};
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useTheme as n,Stack as t,Box as a,Button as r}from"@mui/material";import{FlexibleTypography as o}from"../../../../innerComponents/FlexibleTypography.js";import{FoodsIcon as c}from"../../../Icons/FoodsIcon.js";const l=l=>{const{title:s,cancel:p,confirm:d}=l,m=n();/* @__PURE__ */
1
+ import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useTheme as n,Stack as t,Box as a,Button as r}from"@mui/material";import{FoodsIcon as o}from"../../../Icons/FoodsIcon.js";import{FlexibleTypography as c}from"../../../../innerComponents/FlexibleTypography.js";const l=l=>{const{title:s,cancel:p,confirm:d}=l,m=n();/* @__PURE__ */
2
2
  return e(t,{flexDirection:"row",gap:m.spacing(4),sx:{justifyContent:"space-between",alignItems:"center",padding:m.spacing(3,4,3,4)},children:[
3
- /* @__PURE__ */i(o,{text:s,defaultVariant:"h3"}),
3
+ /* @__PURE__ */i(c,{text:s,defaultVariant:"h3"}),
4
4
  /* @__PURE__ */e(a,{sx:{display:"flex",gap:m.spacing(2)},children:[
5
5
  /* @__PURE__ */i(r,{variant:"ternary",onClick:p.action,children:p.label}),
6
- /* @__PURE__ */i(r,{variant:"validate",onClick:d.action,disabled:d.disabled??!1,startIcon:/* @__PURE__ */i(c,{size:2,icon:"check"}),children:d.label})]})]})};export{l as ListHeader};
6
+ /* @__PURE__ */i(r,{variant:"validate",onClick:d.action,disabled:d.disabled??!1,startIcon:/* @__PURE__ */i(o,{size:2,icon:"check"}),children:d.label})]})]})};export{l as ListHeader};
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as o,Fragment as t}from"react/jsx-runtime";import{useTheme as r,Box as n,Typography as i}from"@mui/material";import{NAVBAR_EXPANDED_INLINE_PADDING as s}from"../../constants.js";import{FoodsIcon as c}from"../../../../Icons/FoodsIcon.js";const l=l=>{const d=r(),{isExpanded:a,toggleSidebar:m,textOptions:p}=l;/* @__PURE__ */
2
- return e(n,{sx:{display:"flex",alignItems:"center",width:"100%",height:"32px",paddingInline:a?s:0,...a?{justifyContent:"space-between"}:{justifyContent:"center"},borderBlock:"1px solid",borderColor:d.custom.grey[2700],"& > *":{color:d.custom.grey[100]},"&:hover > *":{cursor:"pointer",color:d.custom.grey[1e3]}},onClick:m,children:[!a&&/* @__PURE__ */o(c,{size:1,icon:"openPanel"}),a&&/* @__PURE__ */e(t,{children:[
1
+ import{jsxs as e,jsx as o,Fragment as t}from"react/jsx-runtime";import{useTheme as r,Box as n,Typography as i}from"@mui/material";import{FoodsIcon as s}from"../../../../Icons/FoodsIcon.js";import{NAVBAR_EXPANDED_INLINE_PADDING as c}from"../../constants.js";const l=l=>{const d=r(),{isExpanded:a,toggleSidebar:m,textOptions:p}=l;/* @__PURE__ */
2
+ return e(n,{sx:{display:"flex",alignItems:"center",width:"100%",height:"32px",paddingInline:a?c:0,...a?{justifyContent:"space-between"}:{justifyContent:"center"},borderBlock:"1px solid",borderColor:d.custom.grey[2700],"& > *":{color:d.custom.grey[100]},"&:hover > *":{cursor:"pointer",color:d.custom.grey[1e3]}},onClick:m,children:[!a&&/* @__PURE__ */o(s,{size:1,icon:"openPanel"}),a&&/* @__PURE__ */e(t,{children:[
3
3
  /* @__PURE__ */o(i,{title:p.shortenSidebar,variant:"small-bold",sx:{color:d.custom.grey[100],overflow:"hidden",width:"fit-content",maxWidth:"218px",whiteSpace:"nowrap"},children:p.shortenSidebar}),
4
- /* @__PURE__ */o(c,{size:1,icon:"closePanel"})]})]})};export{l as ExpandButton};
4
+ /* @__PURE__ */o(s,{size:1,icon:"closePanel"})]})]})};export{l as ExpandButton};
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{useTheme as t,Button as i,Box as n,Avatar as l,Typography as a}from"@mui/material";import{useState as d}from"react";import{ButtonPopover as s}from"./ButtonPopover.js";import{NavbarTooltip as c}from"../../NavbarTooltip.js";import{NAVBAR_ACTION_BUTTON_PADDING_BLOCK as p,NAVBAR_ACTION_BUTTON_PADDING_INLINE as m,NAVBAR_ACTION_BUTTON_MIN_HEIGHT as h,NAVBAR_COLLAPSED_ACTION_BUTTON_PADDING as g,NAVBAR_COLLAPSED_ACTION_BUTTON_SIZE as u}from"../../constants.js";import{FoodsIcon as x}from"../../../../Icons/FoodsIcon.js";const v=v=>{const{isExtended:f,name:b,picture:w,popover:y,tooltipLabel:k}=v,j=t(),[C,I]=d(null),W=Boolean(C),B={closePopover:()=>I(null)},P=k??b,A=y?.renderPopover?y.renderPopover(B):y?.element,L=void 0!==y,O=/* @__PURE__ */e(i,{fullWidth:f,sx:{justifyContent:f?"space-between":"center",alignItems:"center",color:j.custom.grey[100],border:"1px solid transparent",borderRadius:"12px",...f?{minHeight:h,paddingInline:m,paddingBlock:p}:{width:u,minWidth:u,height:u,padding:g},textTransform:"none",...L&&{"&:hover":{borderColor:j.custom.grey[600],backgroundColor:j.custom.grey[2e3]},"&:active":{backgroundColor:j.custom.grey[2500]},cursor:"pointer"},...!L&&{cursor:"default"}},onClick:e=>{void 0!==y&&I(e.currentTarget)},children:[
1
+ import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{useTheme as t,Button as i,Box as n,Avatar as l,Typography as a}from"@mui/material";import{useState as d}from"react";import{FoodsIcon as s}from"../../../../Icons/FoodsIcon.js";import{ButtonPopover as c}from"./ButtonPopover.js";import{NavbarTooltip as p}from"../../NavbarTooltip.js";import{NAVBAR_ACTION_BUTTON_PADDING_BLOCK as m,NAVBAR_ACTION_BUTTON_PADDING_INLINE as h,NAVBAR_ACTION_BUTTON_MIN_HEIGHT as g,NAVBAR_COLLAPSED_ACTION_BUTTON_PADDING as u,NAVBAR_COLLAPSED_ACTION_BUTTON_SIZE as x}from"../../constants.js";const v=v=>{const{isExtended:f,name:b,picture:w,popover:y,tooltipLabel:k}=v,j=t(),[C,I]=d(null),W=Boolean(C),B={closePopover:()=>I(null)},P=k??b,A=y?.renderPopover?y.renderPopover(B):y?.element,L=void 0!==y,O=/* @__PURE__ */e(i,{fullWidth:f,sx:{justifyContent:f?"space-between":"center",alignItems:"center",color:j.custom.grey[100],border:"1px solid transparent",borderRadius:"12px",...f?{minHeight:g,paddingInline:h,paddingBlock:m}:{width:x,minWidth:x,height:x,padding:u},textTransform:"none",...L&&{"&:hover":{borderColor:j.custom.grey[600],backgroundColor:j.custom.grey[2e3]},"&:active":{backgroundColor:j.custom.grey[2500]},cursor:"pointer"},...!L&&{cursor:"default"}},onClick:e=>{void 0!==y&&I(e.currentTarget)},children:[
2
2
  /* @__PURE__ */e(n,{lang:window.navigator.language,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:j.spacing(2),hyphens:"auto",overflowWrap:"break-word",wordBreak:"break-word",maxWidth:"100%",flex:f?"1":"0"},children:[
3
- /* @__PURE__ */r(l,{alt:"app-logo",src:w||"",sx:{width:"40px",height:"40px"},children:w??b.charAt(0)}),f&&/* @__PURE__ */r(a,{variant:"body-bold",sx:{color:j.custom.grey[100],display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"},children:b})]}),f&&void 0!==y&&/* @__PURE__ */r(x,{size:2,icon:W?"arrowUpShort":"arrowDownShort"})]});/* @__PURE__ */
3
+ /* @__PURE__ */r(l,{alt:"app-logo",src:w||"",sx:{width:"40px",height:"40px"},children:w??b.charAt(0)}),f&&/* @__PURE__ */r(a,{variant:"body-bold",sx:{color:j.custom.grey[100],display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"},children:b})]}),f&&void 0!==y&&/* @__PURE__ */r(s,{size:2,icon:W?"arrowUpShort":"arrowDownShort"})]});/* @__PURE__ */
4
4
  return e(o,{children:[
5
- /* @__PURE__ */r(n,{sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:f?"flex-start":"center"},children:void 0!==y?/* @__PURE__ */r(c,{title:/* @__PURE__ */r(a,{variant:"body-bold",children:P}),placement:"right",disableHoverListener:f||W,children:O}):O}),
6
- /* @__PURE__ */r(s,{anchor:C,setAnchor:I,paperOverrides:void 0,children:A})]})};export{v as Organization};
5
+ /* @__PURE__ */r(n,{sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:f?"flex-start":"center"},children:void 0!==y?/* @__PURE__ */r(p,{title:/* @__PURE__ */r(a,{variant:"body-bold",children:P}),placement:"right",disableHoverListener:f||W,children:O}):O}),
6
+ /* @__PURE__ */r(c,{anchor:C,setAnchor:I,paperOverrides:void 0,children:A})]})};export{v as Organization};
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import{useTheme as o,Box as i,Button as n,Avatar as l,Typography as a}from"@mui/material";import{UserPopover as s}from"./UserPopover.js";import{NavbarTooltip as c}from"../../NavbarTooltip.js";import{NAVBAR_ACTION_BUTTON_PADDING_BLOCK as d,NAVBAR_ACTION_BUTTON_PADDING_INLINE as p,NAVBAR_ACTION_BUTTON_MIN_HEIGHT as m,NAVBAR_COLLAPSED_ACTION_BUTTON_PADDING as h,NAVBAR_COLLAPSED_ACTION_BUTTON_SIZE as u}from"../../constants.js";import{FoodsIcon as x}from"../../../../Icons/FoodsIcon.js";const f=e=>e.firstname.charAt(0).concat(e.lastname.charAt(0)),g=g=>{const{user:b,userActions:y,isExpanded:v,textOptions:w,logout:C}=g,j=o(),[k,A]=r(null),I=Boolean(k),O=`${b.firstname} ${b.lastname}`,W=b.tooltipLabel??O,B=b.firstname.replaceAll(" "," "),D=b.lastname.replaceAll(" "," ");/* @__PURE__ */
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import{useTheme as o,Box as i,Button as n,Avatar as l,Typography as a}from"@mui/material";import{FoodsIcon as s}from"../../../../Icons/FoodsIcon.js";import{UserPopover as c}from"./UserPopover.js";import{NavbarTooltip as d}from"../../NavbarTooltip.js";import{NAVBAR_ACTION_BUTTON_PADDING_BLOCK as p,NAVBAR_ACTION_BUTTON_PADDING_INLINE as m,NAVBAR_ACTION_BUTTON_MIN_HEIGHT as h,NAVBAR_COLLAPSED_ACTION_BUTTON_PADDING as u,NAVBAR_COLLAPSED_ACTION_BUTTON_SIZE as x}from"../../constants.js";const f=e=>e.firstname.charAt(0).concat(e.lastname.charAt(0)),g=g=>{const{user:b,userActions:y,isExpanded:v,textOptions:w,logout:C}=g,j=o(),[k,A]=r(null),I=Boolean(k),O=`${b.firstname} ${b.lastname}`,W=b.tooltipLabel??O,B=b.firstname.replaceAll(" "," "),D=b.lastname.replaceAll(" "," ");/* @__PURE__ */
2
2
  return e(i,{sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:v?"flex-start":"center",color:j.custom.grey[100]},children:[
3
- /* @__PURE__ */t(c,{title:/* @__PURE__ */t(a,{variant:"body-bold",children:W}),placement:"right",disableHoverListener:v||I,children:/* @__PURE__ */e(n,{fullWidth:v,sx:{border:"1px solid transparent",borderRadius:"12px",...v?{minHeight:m,paddingInline:p,paddingBlock:d}:{width:u,minWidth:u,height:u,padding:h},textTransform:"none","&:hover":{borderColor:j.custom.grey[600],backgroundColor:j.custom.grey[2e3],textDecoration:"none"},"&:active":{backgroundColor:j.custom.grey[2500]},color:j.custom.grey[100],justifyContent:v?"space-between":"center"},onClick:e=>A(e.currentTarget),children:[
3
+ /* @__PURE__ */t(d,{title:/* @__PURE__ */t(a,{variant:"body-bold",children:W}),placement:"right",disableHoverListener:v||I,children:/* @__PURE__ */e(n,{fullWidth:v,sx:{border:"1px solid transparent",borderRadius:"12px",...v?{minHeight:h,paddingInline:m,paddingBlock:p}:{width:x,minWidth:x,height:x,padding:u},textTransform:"none","&:hover":{borderColor:j.custom.grey[600],backgroundColor:j.custom.grey[2e3],textDecoration:"none"},"&:active":{backgroundColor:j.custom.grey[2500]},color:j.custom.grey[100],justifyContent:v?"space-between":"center"},onClick:e=>A(e.currentTarget),children:[
4
4
  /* @__PURE__ */e(i,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"16px"},children:[
5
- /* @__PURE__ */t(l,{alt:"profile-picture",src:b.picture||"",children:b.picture??f(b)}),v&&/* @__PURE__ */e(a,{title:O,variant:"body-bold",sx:{color:j.custom.grey[100],textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",width:"fit-content",maxWidth:"150px"},children:[B," ",D]})]}),v&&/* @__PURE__ */t(x,{size:2,icon:I?"arrowUpShort":"arrowDownShort"})]})}),
6
- /* @__PURE__ */t(s,{isExpanded:v,userActions:y,isPopoverOpen:I,anchor:k,onClose:()=>A(null),logout:C,textOptions:w})]})};export{g as UserButton};
5
+ /* @__PURE__ */t(l,{alt:"profile-picture",src:b.picture||"",children:b.picture??f(b)}),v&&/* @__PURE__ */e(a,{title:O,variant:"body-bold",sx:{color:j.custom.grey[100],textOverflow:"ellipsis",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",width:"fit-content",maxWidth:"150px"},children:[B," ",D]})]}),v&&/* @__PURE__ */t(s,{size:2,icon:I?"arrowUpShort":"arrowDownShort"})]})}),
6
+ /* @__PURE__ */t(c,{isExpanded:v,userActions:y,isPopoverOpen:I,anchor:k,onClose:()=>A(null),logout:C,textOptions:w})]})};export{g as UserButton};
@@ -1,6 +1,6 @@
1
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import{ButtonGroup as t,Button as i,Box as n}from"@mui/material";import{useState as o,Fragment as l}from"react";import{LinkAction as s}from"./LinkAction.js";import{CustomRender as a}from"./CustomRender.js";import{Separator as d}from"./Separator.js";import{FoodsIcon as p}from"../../../../../Icons/FoodsIcon.js";const m=m=>{const{button:c,isExpanded:x,extendSidebar:f,onMobileDrawerClose:u}=m,b=c.items.some(e=>"separator"!==e.type&&e.isSelected),[h,w]=o(b),y=/* @__PURE__ */r(p,h?{icon:"arrowUpShort",size:2}:{icon:"arrowDownShort",size:2});/* @__PURE__ */
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{ButtonGroup as t,Button as i,Box as n}from"@mui/material";import{useState as o,Fragment as l}from"react";import{LinkAction as s}from"./LinkAction.js";import{FoodsIcon as a}from"../../../../../Icons/FoodsIcon.js";import{CustomRender as d}from"./CustomRender.js";import{Separator as p}from"./Separator.js";const m=m=>{const{button:c,isExpanded:x,extendSidebar:f,onMobileDrawerClose:u}=m,b=c.items.some(e=>"separator"!==e.type&&e.isSelected),[h,w]=o(b),y=/* @__PURE__ */r(a,h?{icon:"arrowUpShort",size:2}:{icon:"arrowDownShort",size:2});/* @__PURE__ */
2
2
  return e(l,{children:[
3
3
  /* @__PURE__ */r(t,{style:{display:"flex",justifyContent:"center"},children:/* @__PURE__ */e(i,{variant:b?"selected-menu":"default-menu","aria-label":"link",title:c.label,sx:x?{flex:1,gap:"8px",padding:"8px"}:{},onClick:()=>{if(x)return w(!h);f(),h||w(!0)},children:[
4
4
  /* @__PURE__ */e(n,{sx:{display:"flex",alignItems:"center",justifyContent:x?"none":"center",gap:".5rem",width:"100%"},children:[c.icon,x&&/* @__PURE__ */r(n,{sx:{display:"-webkit-box",WebkitLineClamp:1,flex:1,overflow:"hidden",WebkitBoxOrient:"vertical",textOverflow:"ellipsis",textAlign:"left"},children:c.label})]}),
5
5
  /* @__PURE__ */r(n,{sx:{display:"flex",alignItems:"center"},children:x&&y})]})}),x&&h&&/* @__PURE__ */r(n,{sx:{paddingLeft:"30px"},children:c.items.map((e,t)=>{if("custom"===e.type){const i=e.render({isExpanded:x,extendSidebar:f,onMobileDrawerClose:u});/* @__PURE__ */
6
- return r(a,{isExpanded:x,children:i},t)}return"separator"===e.type?/* @__PURE__ */r(d,{isExpanded:x},t):/* @__PURE__ */r(s,{button:e,isExpanded:x,onMobileDrawerClose:u},t)})})]})};export{m as DrawerAction};
6
+ return r(d,{isExpanded:x,children:i},t)}return"separator"===e.type?/* @__PURE__ */r(p,{isExpanded:x},t):/* @__PURE__ */r(s,{button:e,isExpanded:x,onMobileDrawerClose:u},t)})})]})};export{m as DrawerAction};
@@ -1,3 +1,3 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Stepper as o,Step as r,StepLabel as i,Stack as n,Typography as a,Box as l}from"@mui/material";import{useState as c,useEffect as p}from"react";import{FoodsIcon as m}from"../Icons/FoodsIcon.js";const s=s=>{const{steps:d=[],currentStep:f=0}=s,[u,h]=c("forward"),[g,b]=c(f);return p(()=>{h(f>g?"forward":"backward"),b(f)},[f]),/* @__PURE__ */e(o,{activeStep:f,sx:{width:"100%","& .MuiStepConnector-root":{position:"relative"},".MuiStepConnector-line":{height:e=>e.spacing(.125),backgroundColor:e=>e.palette.grey[500]},"& .MuiStepConnector-root.Mui-active .MuiStepConnector-line, & .MuiStepConnector-root.Mui-completed .MuiStepConnector-line":{"&::after":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:e=>e.palette.common.black}},"& .MuiStepConnector-root.Mui-active .MuiStepConnector-line::after":{animation:"fillLine 0.8s forwards "+("forward"===u?"normal":"none"),"@keyframes fillLine":{from:{transform:"scaleX(0)"},to:{transform:"scaleX(1)"}},transformOrigin:"left"}},children:d.map(({title:o,description:c},p)=>/* @__PURE__ */e(r,{children:/* @__PURE__ */e(i,{StepIconComponent:t=>{const o=t.active||t.completed;/* @__PURE__ */
2
- return e(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",border:e=>`1px solid ${e.palette.primary.main}`,borderColor:e=>o?e.palette.common.black:e.palette.grey[500],backgroundColor:e=>t.active?e.palette.primary[100]:e.palette.common.white,color:e=>e.palette.text.primary,borderRadius:"50%",width:e=>e.spacing(4.5),height:e=>e.spacing(4.5),fontWeight:e=>e.typography.fontWeightBold,...t.active&&"forward"===u&&{animation:"fillBackground 0.8s forwards","@keyframes fillBackground":{from:{backgroundColor:e=>e.palette.common.white},to:{backgroundColor:e=>e.palette.primary[100]}}}},children:t.completed?/* @__PURE__ */e(m,{icon:"check",size:2}):p+1})},sx:{"& .MuiStepLabel-label":{fontSize:"0.875rem",color:e=>e.palette.text.primary},"& .MuiStepLabel-iconContainer":{display:"flex",borderColor:"transparent"},"& .MuiStepLabel-completed":{color:e=>e.palette.primary[100]},"& .MuiStepLabel-active":{color:e=>e.palette.primary[100]}},children:/* @__PURE__ */t(n,{children:[
3
- /* @__PURE__ */e(a,{variant:"body-medium",children:o}),c&&/* @__PURE__ */e(a,{variant:"small",children:c})]})})},`progress-step-${p}`))})};export{s as Progress};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Stepper as o,Step as r,StepLabel as i,Stack as n,Typography as a,Box as l}from"@mui/material";import{FoodsIcon as c}from"../Icons/FoodsIcon.js";import{useState as p,useEffect as m}from"react";const s=s=>{const{steps:d=[],currentStep:f=0}=s,[u,h]=p("forward"),[g,b]=p(f);return m(()=>{h(f>g?"forward":"backward"),b(f)},[f]),/* @__PURE__ */e(o,{activeStep:f,sx:{width:"100%","& .MuiStepConnector-root":{position:"relative"},".MuiStepConnector-line":{height:e=>e.spacing(.125),backgroundColor:e=>e.palette.grey[500]},"& .MuiStepConnector-root.Mui-active .MuiStepConnector-line, & .MuiStepConnector-root.Mui-completed .MuiStepConnector-line":{"&::after":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:e=>e.palette.common.black}},"& .MuiStepConnector-root.Mui-active .MuiStepConnector-line::after":{animation:"fillLine 0.8s forwards "+("forward"===u?"normal":"none"),"@keyframes fillLine":{from:{transform:"scaleX(0)"},to:{transform:"scaleX(1)"}},transformOrigin:"left"}},children:d.map(({title:o,description:p},m)=>/* @__PURE__ */e(r,{children:/* @__PURE__ */e(i,{StepIconComponent:t=>{const o=t.active||t.completed;/* @__PURE__ */
2
+ return e(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",border:e=>`1px solid ${e.palette.primary.main}`,borderColor:e=>o?e.palette.common.black:e.palette.grey[500],backgroundColor:e=>t.active?e.palette.primary[100]:e.palette.common.white,color:e=>e.palette.text.primary,borderRadius:"50%",width:e=>e.spacing(4.5),height:e=>e.spacing(4.5),fontWeight:e=>e.typography.fontWeightBold,...t.active&&"forward"===u&&{animation:"fillBackground 0.8s forwards","@keyframes fillBackground":{from:{backgroundColor:e=>e.palette.common.white},to:{backgroundColor:e=>e.palette.primary[100]}}}},children:t.completed?/* @__PURE__ */e(c,{icon:"check",size:2}):m+1})},sx:{"& .MuiStepLabel-label":{fontSize:"0.875rem",color:e=>e.palette.text.primary},"& .MuiStepLabel-iconContainer":{display:"flex",borderColor:"transparent"},"& .MuiStepLabel-completed":{color:e=>e.palette.primary[100]},"& .MuiStepLabel-active":{color:e=>e.palette.primary[100]}},children:/* @__PURE__ */t(n,{children:[
3
+ /* @__PURE__ */e(a,{variant:"body-medium",children:o}),p&&/* @__PURE__ */e(a,{variant:"small",children:p})]})})},`progress-step-${m}`))})};export{s as Progress};
@@ -1,10 +1,10 @@
1
- import{jsx as e,jsxs as i,Fragment as o}from"react/jsx-runtime";import t from"@mui/material/Box";import n from"@mui/material/Typography";import r from"@mui/material/CardContent";import a from"@mui/material/Button";import{useTheme as l}from"@mui/material/styles";import{LinearProgress as s}from"../LinearProgress.js";import{Stack as m}from"@mui/material";import c from"i18next";import{WhiteBox as p}from"../Box/WhiteBox.js";import{FoodsIcon as d}from"../Icons/FoodsIcon.js";import{FoodsTags as g}from"../Tags/FoodsTags.js";const h=h=>{const{progress:u,onAction:f,isValidated:x=!1,textOptions:y,headingOptions:b,sx:C={}}=h,v=l(),{heading:w,actionText:j,progressLabel:I,validatedLabel:V}=y,k=!b||!0===b?.hidden,B=!(k||!b||!("showIcon"in b))&&b.showIcon,F=!k&&b&&"icon"in b&&b.icon?b.icon:"default",W=!k&&b&&"headingValue"in b&&void 0!==b.headingValue?b.headingValue:"",D=!k&&b&&"headingValueColor"in b&&b.headingValueColor?b.headingValueColor:v.palette.common.black,L=100===u?v.custom.green[600]:v.palette.primary.main;/* @__PURE__ */
2
- return e(p,{sx:{display:"flex",flexDirection:"column",borderRadius:v.spacing(1),width:"100%",minWidth:"280px",border:`1px solid ${v.palette.grey[100]}`,...C},children:/* @__PURE__ */i(r,{sx:{padding:v.spacing(2),"&:last-child":{paddingBottom:v.spacing(2)},display:"flex",flexDirection:"column",gap:v.spacing(1.25)},children:[k?/* @__PURE__ */e(o,{}):/* @__PURE__ */i(m,{flexDirection:"row",justifyContent:"space-between",children:[B?/* @__PURE__ */e(d,{icon:F,size:5}):/* @__PURE__ */e(t,{sx:{width:v.spacing(3),height:v.spacing(3),borderRadius:"50%",backgroundColor:v.palette.common.black||D,display:"flex",alignItems:"center",justifyContent:"center",color:v.palette.common.white,fontSize:"0.875rem",fontWeight:v.typography.fontWeightBold},children:W}),x&&/* @__PURE__ */e(g,{label:V||"",variant:"tags-green",startIcon:"check",sx:{pointerEvents:"none"}})]}),
1
+ import{jsx as e,jsxs as i,Fragment as o}from"react/jsx-runtime";import t from"@mui/material/Box";import n from"@mui/material/Typography";import r from"@mui/material/CardContent";import a from"@mui/material/Button";import{useTheme as l}from"@mui/material/styles";import{LinearProgress as s}from"../LinearProgress.js";import{FoodsIcon as m}from"../Icons/FoodsIcon.js";import{Stack as c}from"@mui/material";import p from"i18next";import{WhiteBox as d}from"../Box/WhiteBox.js";import{FoodsTags as g}from"../Tags/FoodsTags.js";const h=h=>{const{progress:u,onAction:f,isValidated:x=!1,textOptions:y,headingOptions:b,sx:C={}}=h,v=l(),{heading:w,actionText:j,progressLabel:I,validatedLabel:V}=y,k=!b||!0===b?.hidden,B=!(k||!b||!("showIcon"in b))&&b.showIcon,F=!k&&b&&"icon"in b&&b.icon?b.icon:"default",W=!k&&b&&"headingValue"in b&&void 0!==b.headingValue?b.headingValue:"",D=!k&&b&&"headingValueColor"in b&&b.headingValueColor?b.headingValueColor:v.palette.common.black,L=100===u?v.custom.green[600]:v.palette.primary.main;/* @__PURE__ */
2
+ return e(d,{sx:{display:"flex",flexDirection:"column",borderRadius:v.spacing(1),width:"100%",minWidth:"280px",border:`1px solid ${v.palette.grey[100]}`,...C},children:/* @__PURE__ */i(r,{sx:{padding:v.spacing(2),"&:last-child":{paddingBottom:v.spacing(2)},display:"flex",flexDirection:"column",gap:v.spacing(1.25)},children:[k?/* @__PURE__ */e(o,{}):/* @__PURE__ */i(c,{flexDirection:"row",justifyContent:"space-between",children:[B?/* @__PURE__ */e(m,{icon:F,size:5}):/* @__PURE__ */e(t,{sx:{width:v.spacing(3),height:v.spacing(3),borderRadius:"50%",backgroundColor:v.palette.common.black||D,display:"flex",alignItems:"center",justifyContent:"center",color:v.palette.common.white,fontSize:"0.875rem",fontWeight:v.typography.fontWeightBold},children:W}),x&&/* @__PURE__ */e(g,{label:V||"",variant:"tags-green",startIcon:"check",sx:{pointerEvents:"none"}})]}),
3
3
  /* @__PURE__ */e(n,{variant:"h3",children:w}),
4
- /* @__PURE__ */i(m,{gap:v.spacing(4),children:[
5
- /* @__PURE__ */e(t,{children:/* @__PURE__ */i(m,{gap:v.spacing(.5),children:[
4
+ /* @__PURE__ */i(c,{gap:v.spacing(4),children:[
5
+ /* @__PURE__ */e(t,{children:/* @__PURE__ */i(c,{gap:v.spacing(.5),children:[
6
6
  /* @__PURE__ */i(t,{children:[
7
- /* @__PURE__ */e(n,{variant:"big-bold",color:L,children:Intl.NumberFormat(c.language,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}).format(u/100)})," ",
7
+ /* @__PURE__ */e(n,{variant:"big-bold",color:L,children:Intl.NumberFormat(p.language,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}).format(u/100)})," ",
8
8
  /* @__PURE__ */e(n,{variant:"body-medium",color:"textSecondary",children:I})]}),
9
9
  /* @__PURE__ */e(s,{value:u,height:v.spacing(1.5),hideValueLabel:!0,styleProperties:{lineColor:v.palette.primary.main,fontColor:L,fullUpLineColor:v.custom.green[600],fullUpFontColor:v.custom.green[600]}})]})}),
10
- /* @__PURE__ */e(a,{onClick:f,variant:"ternary",endIcon:/* @__PURE__ */e(d,{icon:"arrowRight",size:1.5}),sx:{justifyContent:"space-between",mt:v.spacing(.25),textTransform:"none",fontWeight:v.typography.fontWeightMedium,fontSize:"0.875rem",lineHeight:v.spacing(.75),"&:hover":{backgroundColor:"transparent",color:v.palette.primary.dark,"& svg":{transform:"translateX(2px)",transition:"transform 0.2s ease-in-out"}},"& svg":{transition:"transform 0.2s ease-in-out"}},children:j})]})]})})};export{h as ProgressCard};
10
+ /* @__PURE__ */e(a,{onClick:f,variant:"ternary",endIcon:/* @__PURE__ */e(m,{icon:"arrowRight",size:1.5}),sx:{justifyContent:"space-between",mt:v.spacing(.25),textTransform:"none",fontWeight:v.typography.fontWeightMedium,fontSize:"0.875rem",lineHeight:v.spacing(.75),"&:hover":{backgroundColor:"transparent",color:v.palette.primary.dark,"& svg":{transform:"translateX(2px)",transition:"transform 0.2s ease-in-out"}},"& svg":{transition:"transform 0.2s ease-in-out"}},children:j})]})]})})};export{h as ProgressCard};
@@ -0,0 +1,12 @@
1
+ export type CountTab<Id extends string = string> = {
2
+ id: Id;
3
+ label: string;
4
+ count: number;
5
+ };
6
+ export type CountTabsProps<Id extends string = string> = {
7
+ tabs: CountTab<Id>[];
8
+ activeId: Id;
9
+ onChange: (id: Id) => void;
10
+ isLoading?: boolean;
11
+ };
12
+ export declare const CountTabs: <Id extends string = string>(props: CountTabsProps<Id>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{useTheme as e,Stack as i,ButtonBase as n,Typography as t,Skeleton as a}from"@mui/material";const d=d=>{const{tabs:c,activeId:p,onChange:s,isLoading:g=!1}=d,l=e();/* @__PURE__ */
2
+ return r(i,{direction:"row",flexWrap:"wrap",gap:"8px",children:c.map(e=>{const i=e.id===p;/* @__PURE__ */
3
+ return o(n,{"aria-pressed":i,onClick:()=>s(e.id),sx:{alignItems:"center",border:`1px solid ${i?l.custom.grey[2800]:l.custom.grey[500]}`,borderRadius:"8px",boxShadow:i?"0px 4px 8px 0px #2A2B2714":"0px 2px 8px 0px #2A2B270A",color:i?l.custom.grey[100]:l.custom.grey[2800],display:"inline-flex",minHeight:"36px",padding:"8px 12px",background:i?`linear-gradient(180deg, ${l.custom.grey[2600]} 0%, ${l.custom.grey[3e3]} 100%)`:`linear-gradient(180deg, ${l.custom.grey[100]} 0%, ${l.custom.grey[300]} 154.5%)`,"&:hover":{background:i?l.custom.grey[2800]:`linear-gradient(180deg, ${l.custom.grey[100]} 0%, ${l.custom.grey[400]} 154.5%)`}},children:[
4
+ /* @__PURE__ */r(t,{component:"span",variant:"body-bold",color:"inherit",children:e.label}),
5
+ /* @__PURE__ */r(t,{component:"span",variant:"body-bold",color:"inherit",sx:{px:"4px"},children:"-"}),g?/* @__PURE__ */r(a,{variant:"text",width:24,sx:{bgcolor:i?"rgba(255,255,255,0.3)":void 0}}):/* @__PURE__ */r(t,{component:"span",variant:"body-bold",color:"inherit",children:e.count})]},e.id)})})};export{d as CountTabs};
@@ -0,0 +1 @@
1
+ export * from './CountTabs';
@@ -1,4 +1,5 @@
1
1
  export * from './ButtonTabs';
2
+ export * from './CountTabs';
2
3
  export * from './SectionTabs/SectionTabs';
3
4
  export * from './SecondaryTabs';
4
5
  export * from './FoodsTabs';
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useTheme as o,Button as t,Typography as s}from"@mui/material";import{FoodsIcon as a}from"../Icons/FoodsIcon.js";const e=e=>{const{variant:n="tags-grey",label:c,startIcon:l,endIcon:i,onClick:d,disabled:m,sx:g}=e,b=o(),u={"tags-grey":b.custom.grey[2800],"tags-black":b.custom.grey[100],"tags-white":b.custom.grey[2800],"tags-green":b.custom.green[600],"tags-red":b.custom.red[600]};/* @__PURE__ */
2
- return r(t,{startIcon:l&&/* @__PURE__ */r(s,{sx:{color:u[n]},variant:"small-bold",children:/* @__PURE__ */r(a,{size:1,icon:l})}),endIcon:i&&/* @__PURE__ */r(s,{sx:{color:u[n]},variant:"small-bold",children:/* @__PURE__ */r(a,{size:1,icon:i})}),variant:n,onClick:d,disabled:m,sx:{borderColor:"transparent",...g},children:/* @__PURE__ */r(s,{sx:{color:u[n]},variant:"small-bold",children:c})})};export{e as FoodsTags};
1
+ import{jsx as o}from"react/jsx-runtime";import{useTheme as r,Button as t,Typography as s}from"@mui/material";import{FoodsIcon as a}from"../Icons/FoodsIcon.js";const e=e=>{const{variant:c="tags-grey",label:l,startIcon:n,endIcon:i,onClick:m,disabled:d,sx:g}=e,u=r(),b={"tags-grey":u.custom.grey[2800],"tags-black":u.custom.grey[100],"tags-white":u.custom.grey[2800],"tags-green":u.custom.green[600],"tags-red":u.custom.red[600],"tags-blue":u.custom.blue[700],"tags-coral":u.custom.coral[700]};/* @__PURE__ */
2
+ return o(t,{startIcon:n&&/* @__PURE__ */o(s,{sx:{color:b[c]},variant:"small-bold",children:/* @__PURE__ */o(a,{size:1,icon:n})}),endIcon:i&&/* @__PURE__ */o(s,{sx:{color:b[c]},variant:"small-bold",children:/* @__PURE__ */o(a,{size:1,icon:i})}),variant:c,onClick:m,disabled:d,sx:{borderColor:"transparent",...g},children:/* @__PURE__ */o(s,{sx:{color:b[c]},variant:"small-bold",children:l})})};export{e as FoodsTags};
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- import{getThemeLogo as o,isTheme as t,themeLogos as r,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{AdditionalContentBox as p}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as c,HeadlessPopover as a,ThemedPopover as f}from"./components/Popover/AnchoredPopover.js";import{Article as j}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as l}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as d}from"./components/Badge/Badge.js";import{Banner as B}from"./components/Banner/Banner.js";import{BigPopoverLayout as C}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as h}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as u}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as g}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as F}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as T,SecondaryTabs as k}from"./components/Tabs/SecondaryTabs.js";import{BreakdownTable as x}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as P}from"./components/Tabs/ButtonTabs.js";import{CardImage as I}from"./components/CardImage.js";import{CategoryBox as y}from"./components/Box/CategoryBox.js";import{CheckboxBlock as L}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as S,CollectiveThemeOptions as v}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as b}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as N}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as A}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as H}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as R}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as G}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as w}from"./components/Popover/CoordinatePopover.js";import{CustomRender as D}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as M,TertiaryToggleButton as U}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as W,TertiaryToggleButtonNodeTitle as E}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as V}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as z}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as O}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as Q}from"./components/Box/DottedBox.js";import{DoughnutChart as q}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as J}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as K}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as X}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as Y}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as Z}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as $}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as _}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as oo,FoodpilotThemeOptions as to}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as ro}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as mo}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsFormBase as so}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as no}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as eo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as io}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as po}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as co}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as ao}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as fo}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as jo}from"./components/Search/FoodsSearch.js";import{FoodsSelect as lo,FoodsSelectServerPagination as Bo}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as Co,SpecialTabs as ho}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as uo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as go}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Fo,FoodsThemeProvider as To}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as ko}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as xo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as Po}from"./components/Treeview/Treeview.js";import{FoodsUserTags as Io}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as yo}from"./components/Accordion/FormAccordion.js";import{FormBase as Lo}from"./components/Form/FormBase.js";import{FormBaseContextProvider as So,useFormBaseContext as vo}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as bo}from"./components/Form/FormBox.js";import{FormPropertyBox as No}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Ao}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Ho}from"./components/Form/FormUnit.js";import{GenericAccordion as Ro}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Go}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as wo,NavBarLink as Do,Navbar as Mo,SubMenu as Uo,UserNav as Wo}from"./components/Navigation/Navbar.js";import{HelperBox as Eo}from"./components/Box/HelperBox.js";import{HeroBlock as Vo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as zo}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Oo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as Qo}from"./components/Navigation/IconThread.js";import{IndicatorBlock as qo}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as Jo}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as Ko}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as Xo}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as Yo}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as Zo}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as $o}from"./components/Box/LineGroupBox.js";import{LinearProgress as _o}from"./components/LinearProgress.js";import{LinkAction as ot}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as tt}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as rt}from"./components/Grid/MRTGrid.js";import{MultiValueFilter as mt}from"./components/Filter/MultiValueFilter.js";import{NumberField as st}from"./components/Field/NumberField.js";import{NumberWithUnit as nt}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as et}from"./components/Popover/OptionsPopover.js";import{PageItem as it}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as pt}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as ct}from"./components/Input/Pills/Pills.js";import{PointsCell as at}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as ft}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as jt}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as lt}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as dt}from"./components/Dialog/PrimaryDialog.js";import{Progress as Bt}from"./components/Progress/Progress.js";import{ProgressCard as Ct}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as ht}from"./components/Box/QuoteBox.js";import{RadioBlock as ut}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as gt}from"./components/Radio/RadioBoolean.js";import{RadioList as Ft}from"./components/Radio/RadioList.js";import{RichTextEditor as Tt}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as kt}from"./components/Input/RoundInput.js";import{RoundNumberInput as xt}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Pt}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as It}from"./components/Number/Score.js";import{ScoreCard as yt}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Lt}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as St}from"./components/Badge/ScoreContainer.js";import{SearchBox as vt}from"./components/Input/SearchBox.js";import{SectionBox as bt}from"./components/Box/SectionBox.js";import{SectionTabs as Nt}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as At}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Ht}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{Separator as Rt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Gt}from"./components/Box/SolidGreyBox.js";import{SpecialTab as wt}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as Dt}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as Mt}from"./components/Text/TextArrowList.js";import{TextField as Ut}from"./components/Field/TextField.js";import{TextTitle as Wt}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as Et}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as Vt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as zt}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as Ot}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as Qt}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as qt}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as Jt}from"./components/CustomTypography/TypographyList.js";import{ValueDisplay as Kt}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as Xt}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as Yt}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as Zt}from"./components/Box/WarningBox.js";import{WaterfallChart as $t}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as _t}from"./components/Box/WhiteBox.js";import{WhiteGrid as or}from"./components/Box/WhiteGrid.js";import{WhitePopover as tr}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as rr}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as mr,WinepilotThemeOptions as sr}from"./themes/themes/WinePilotTheme.js";import{allColors as nr,allMainColors as er,dataVisualizationColors as ir,extraColors as pr,greenTheme as cr,greyTheme as ar,orangeTheme as fr,redTheme as jr,shadows as lr,yellowTheme as dr}from"./themes/common/colors.js";import{allTypographyVariants as Br,deprecatedVariants as Cr,typographyConfig as hr}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as ur,checkboxToAny as gr}from"./components/Checkbox/helperFunctions.js";import{components as Fr}from"./themes/common/components.js";import{computeSize as Tr,iconMapping as kr}from"./components/Icons/iconConfig.js";import{custom as xr,numbers as Pr}from"./themes/common/custom.js";import{illustationsMapping as Ir}from"./components/Icons/illustrationsConfig.js";import{spacing as yr}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as Lr}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as Sr}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as AdditionalContentBox,c as AnchoredPopover,j as Article,l as ArticlesBox,d as Badge,B as Banner,C as BigPopoverLayout,h as BlockItemContainer,u as BlockItemInner,g as BlockListContainer,F as BottomSheetDialog,T as BoxStyled,x as BreakdownTable,n as Button,P as ButtonTabs,I as CardImage,y as CategoryBox,L as CheckboxBlock,S as CollectiveTheme,v as CollectiveThemeOptions,b as ComingSoonBadge,N as ComparisonArrow,A as ComparisonBlock,H as ComparisonLabel,R as ConfirmDialog,G as ContextualContentBox,w as CoordinatePopover,D as CustomRender,M as CustomToggleButton,W as CustomToggleButtonNodeTitle,V as CustomTypography,z as CustomizedAxisTick,O as DefaultUserAction,Q as DottedBox,q as DoughnutChart,J as DrawerAction,K as EcoScoreCell,X as EditHeader,Y as EllipsisItem,Z as EmptyForm,$ as EvolutionChart,_ as FixedMultiValueFilter,oo as FoodPilotTheme,to as FoodpilotThemeOptions,ro as FoodsBadge,mo as FoodsCheckbox,so as FoodsFormBase,no as FoodsIcon,eo as FoodsIconButton,io as FoodsIllustrations,po as FoodsNavbar,co as FoodsPagination,ao as FoodsPaginationItem,fo as FoodsRadioList,jo as FoodsSearch,lo as FoodsSelect,Bo as FoodsSelectServerPagination,Co as FoodsTabs,uo as FoodsTags,go as FoodsTextInput,Fo as FoodsThemeOptionsProvider,To as FoodsThemeProvider,ko as FoodsToggleButton,xo as FoodsTooltip,Po as FoodsTreeview,Io as FoodsUserTags,yo as FormAccordion,Lo as FormBase,So as FormBaseContextProvider,bo as FormBox,No as FormPropertyBox,Ao as FormTopBar,Ho as FormUnit,Ro as GenericAccordion,Go as GreyTextCell,wo as HeaderNav,a as HeadlessPopover,Eo as HelperBox,Vo as HeroBlock,zo as HistogramComparisonChart,Oo as HorizontalGaugeChart,Qo as IconThread,qo as IndicatorBlock,Jo as InfoBox,Ko as InfoHeaderWithIllustration,Xo as InitHeader,Yo as LeftComparisonPart,Zo as LightIndicatorBlock,$o as LineGroupBox,_o as LinearProgress,ot as LinkAction,tt as ListHeader,rt as MRTGrid,mt as MultiValueFilter,Do as NavBarLink,Mo as Navbar,st as NumberField,nt as NumberWithUnit,et as OptionsPopover,it as PageItem,pt as PageUpAndDownItem,ct as Pills,at as PointsCell,ft as PolymorphicChart,jt as PolymorphicChartRenderer,lt as PrimaryCheckbox,dt as PrimaryDialog,Bt as Progress,Ct as ProgressCard,ht as QuoteBox,ut as RadioBlock,gt as RadioBoolean,Ft as RadioList,Tt as RichTextEditor,kt as RoundInput,xt as RoundNumberInput,Pt as ScatterPlot,It as Score,yt as ScoreCard,Lt as ScoreCardHeader,St as ScoreContainer,vt as SearchBox,k as SecondaryTabs,bt as SectionBox,Nt as SectionTabs,At as SeeMoreCard,Ht as SelectBlock,Rt as Separator,Gt as SolidGreyBox,wt as SpecialTab,ho as SpecialTabs,Uo as SubMenu,Dt as SuggestionBlock,U as TertiaryToggleButton,E as TertiaryToggleButtonNodeTitle,Mt as TextArrowList,Ut as TextField,Wt as TextTitle,Et as TextTitleGreyIcon,Vt as Textarea,f as ThemedPopover,zt as ToggleSwitch,Ot as TopLinkAction,Qt as TrajectoryCards,qt as TrajectoryChart,e as Typography,Jt as TypographyList,Wo as UserNav,Kt as ValueDisplay,Xt as ValueLabel,Yt as ValueSwitcher,Zt as WarningBox,$t as WaterfallChart,_t as WhiteBox,or as WhiteGrid,tr as WhitePopover,rr as WhitePopoverOnIcon,mr as WinePilotTheme,sr as WinepilotThemeOptions,nr as allColors,er as allMainColors,Br as allTypographyVariants,ur as anyToCheckbox,gr as checkboxToAny,Fr as components,Tr as computeSize,xr as custom,ir as dataVisualizationColors,Cr as deprecatedVariants,pr as extraColors,o as getThemeLogo,cr as greenTheme,ar as greyTheme,kr as iconMapping,Ir as illustationsMapping,t as isTheme,Pr as numbers,fr as orangeTheme,jr as redTheme,lr as shadows,yr as spacing,r as themeLogos,m as themeOptions,s as themes,hr as typographyConfig,vo as useFormBaseContext,Lr as useResponsiveBreakpoints,Sr as useResponsivePadding,dr as yellowTheme};
1
+ import{getThemeLogo as o,isTheme as t,themeLogos as r,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{AdditionalContentBox as p}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as c,HeadlessPopover as a,ThemedPopover as f}from"./components/Popover/AnchoredPopover.js";import{Article as j}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as l}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as d}from"./components/Badge/Badge.js";import{Banner as B}from"./components/Banner/Banner.js";import{BigPopoverLayout as C}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as u}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as h}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as g}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as F}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as T,SecondaryTabs as k}from"./components/Tabs/SecondaryTabs.js";import{BreakdownTable as x}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as P}from"./components/Tabs/ButtonTabs.js";import{CardImage as I}from"./components/CardImage.js";import{CategoryBox as S}from"./components/Box/CategoryBox.js";import{CheckboxBlock as y}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as L,CollectiveThemeOptions as v}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as b}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as N}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as A}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as H}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as R}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as G}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as w}from"./components/Popover/CoordinatePopover.js";import{CountTabs as D}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as M}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as U,TertiaryToggleButton as W}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as E,TertiaryToggleButtonNodeTitle as V}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as z}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as O}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as Q}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as q}from"./components/Box/DottedBox.js";import{DoughnutChart as J}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as K}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as X}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as Y}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as Z}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as $}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as _}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as oo}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as to,FoodpilotThemeOptions as ro}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as mo}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as so}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsFormBase as no}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as eo}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as io}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as po}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as co}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as ao}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as fo}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as jo}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as lo}from"./components/Search/FoodsSearch.js";import{FoodsSelect as Bo,FoodsSelectServerPagination as Co}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as uo,SpecialTabs as ho}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as go}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as Fo}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as To,FoodsThemeProvider as ko}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as xo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as Po}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as Io}from"./components/Treeview/Treeview.js";import{FoodsUserTags as So}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as yo}from"./components/Accordion/FormAccordion.js";import{FormBase as Lo}from"./components/Form/FormBase.js";import{FormBaseContextProvider as vo,useFormBaseContext as bo}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as No}from"./components/Form/FormBox.js";import{FormPropertyBox as Ao}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Ho}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Ro}from"./components/Form/FormUnit.js";import{GenericAccordion as Go}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as wo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Do,NavBarLink as Mo,Navbar as Uo,SubMenu as Wo,UserNav as Eo}from"./components/Navigation/Navbar.js";import{HelperBox as Vo}from"./components/Box/HelperBox.js";import{HeroBlock as zo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Oo}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Qo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as qo}from"./components/Navigation/IconThread.js";import{IndicatorBlock as Jo}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as Ko}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as Xo}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as Yo}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as Zo}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as $o}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as _o}from"./components/Box/LineGroupBox.js";import{LinearProgress as ot}from"./components/LinearProgress.js";import{LinkAction as tt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as rt}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as mt}from"./components/Grid/MRTGrid.js";import{MultiValueFilter as st}from"./components/Filter/MultiValueFilter.js";import{NumberField as nt}from"./components/Field/NumberField.js";import{NumberWithUnit as et}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as it}from"./components/Popover/OptionsPopover.js";import{PageItem as pt}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as ct}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as at}from"./components/Input/Pills/Pills.js";import{PointsCell as ft}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as jt}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as lt}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as dt}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as Bt}from"./components/Dialog/PrimaryDialog.js";import{Progress as Ct}from"./components/Progress/Progress.js";import{ProgressCard as ut}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as ht}from"./components/Box/QuoteBox.js";import{RadioBlock as gt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as Ft}from"./components/Radio/RadioBoolean.js";import{RadioList as Tt}from"./components/Radio/RadioList.js";import{RichTextEditor as kt}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as xt}from"./components/Input/RoundInput.js";import{RoundNumberInput as Pt}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as It}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as St}from"./components/Number/Score.js";import{ScoreCard as yt}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Lt}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as vt}from"./components/Badge/ScoreContainer.js";import{SearchBox as bt}from"./components/Input/SearchBox.js";import{SectionBox as Nt}from"./components/Box/SectionBox.js";import{SectionTabs as At}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as Ht}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Rt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as Gt}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as wt}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as Dt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Mt}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Ut}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as Wt}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as Et}from"./components/Text/TextArrowList.js";import{TextField as Vt}from"./components/Field/TextField.js";import{TextTitle as zt}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as Ot}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as Qt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as qt}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as Jt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as Kt}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as Xt}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as Yt}from"./components/CustomTypography/TypographyList.js";import{ValueDisplay as Zt}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as $t}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as _t}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as or}from"./components/Box/WarningBox.js";import{WaterfallChart as tr}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as rr}from"./components/Box/WhiteBox.js";import{WhiteGrid as mr}from"./components/Box/WhiteGrid.js";import{WhitePopover as sr}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as nr}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as er,WinepilotThemeOptions as ir}from"./themes/themes/WinePilotTheme.js";import{allColors as pr,allMainColors as cr,blueTheme as ar,coralTheme as fr,dataVisualizationColors as jr,extraColors as lr,greenTheme as dr,greyTheme as Br,orangeTheme as Cr,redTheme as ur,shadows as hr,yellowTheme as gr}from"./themes/common/colors.js";import{allTypographyVariants as Fr,deprecatedVariants as Tr,typographyConfig as kr}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as xr,checkboxToAny as Pr}from"./components/Checkbox/helperFunctions.js";import{components as Ir}from"./themes/common/components.js";import{computeSize as Sr,iconMapping as yr}from"./components/Icons/iconConfig.js";import{custom as Lr,numbers as vr}from"./themes/common/custom.js";import{illustationsMapping as br}from"./components/Icons/illustrationsConfig.js";import{spacing as Nr}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as Ar}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as Hr}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as AdditionalContentBox,c as AnchoredPopover,j as Article,l as ArticlesBox,d as Badge,B as Banner,C as BigPopoverLayout,u as BlockItemContainer,h as BlockItemInner,g as BlockListContainer,F as BottomSheetDialog,T as BoxStyled,x as BreakdownTable,n as Button,P as ButtonTabs,I as CardImage,S as CategoryBox,y as CheckboxBlock,L as CollectiveTheme,v as CollectiveThemeOptions,b as ComingSoonBadge,N as ComparisonArrow,A as ComparisonBlock,H as ComparisonLabel,R as ConfirmDialog,G as ContextualContentBox,w as CoordinatePopover,D as CountTabs,M as CustomRender,U as CustomToggleButton,E as CustomToggleButtonNodeTitle,z as CustomTypography,O as CustomizedAxisTick,Q as DefaultUserAction,q as DottedBox,J as DoughnutChart,K as DrawerAction,X as EcoScoreCell,Y as EditHeader,Z as EllipsisItem,$ as EmptyForm,_ as EvolutionChart,oo as FixedMultiValueFilter,to as FoodPilotTheme,ro as FoodpilotThemeOptions,mo as FoodsBadge,so as FoodsCheckbox,no as FoodsFormBase,eo as FoodsIcon,io as FoodsIconButton,po as FoodsIllustrations,co as FoodsNavbar,ao as FoodsPagination,fo as FoodsPaginationItem,jo as FoodsRadioList,lo as FoodsSearch,Bo as FoodsSelect,Co as FoodsSelectServerPagination,uo as FoodsTabs,go as FoodsTags,Fo as FoodsTextInput,To as FoodsThemeOptionsProvider,ko as FoodsThemeProvider,xo as FoodsToggleButton,Po as FoodsTooltip,Io as FoodsTreeview,So as FoodsUserTags,yo as FormAccordion,Lo as FormBase,vo as FormBaseContextProvider,No as FormBox,Ao as FormPropertyBox,Ho as FormTopBar,Ro as FormUnit,Go as GenericAccordion,wo as GreyTextCell,Do as HeaderNav,a as HeadlessPopover,Vo as HelperBox,zo as HeroBlock,Oo as HistogramComparisonChart,Qo as HorizontalGaugeChart,qo as IconThread,Jo as IndicatorBlock,Ko as InfoBox,Xo as InfoHeaderWithIllustration,Yo as InitHeader,Zo as LeftComparisonPart,$o as LightIndicatorBlock,_o as LineGroupBox,ot as LinearProgress,tt as LinkAction,rt as ListHeader,mt as MRTGrid,st as MultiValueFilter,Mo as NavBarLink,Uo as Navbar,nt as NumberField,et as NumberWithUnit,it as OptionsPopover,pt as PageItem,ct as PageUpAndDownItem,at as Pills,ft as PointsCell,jt as PolymorphicChart,lt as PolymorphicChartRenderer,dt as PrimaryCheckbox,Bt as PrimaryDialog,Ct as Progress,ut as ProgressCard,ht as QuoteBox,gt as RadioBlock,Ft as RadioBoolean,Tt as RadioList,kt as RichTextEditor,xt as RoundInput,Pt as RoundNumberInput,It as ScatterPlot,St as Score,yt as ScoreCard,Lt as ScoreCardHeader,vt as ScoreContainer,bt as SearchBox,k as SecondaryTabs,Nt as SectionBox,At as SectionTabs,Ht as SeeMoreCard,Rt as SelectBlock,Gt as SelectionCard,wt as SelectionCardGroup,Dt as Separator,Mt as SolidGreyBox,Ut as SpecialTab,ho as SpecialTabs,Wo as SubMenu,Wt as SuggestionBlock,W as TertiaryToggleButton,V as TertiaryToggleButtonNodeTitle,Et as TextArrowList,Vt as TextField,zt as TextTitle,Ot as TextTitleGreyIcon,Qt as Textarea,f as ThemedPopover,qt as ToggleSwitch,Jt as TopLinkAction,Kt as TrajectoryCards,Xt as TrajectoryChart,e as Typography,Yt as TypographyList,Eo as UserNav,Zt as ValueDisplay,$t as ValueLabel,_t as ValueSwitcher,or as WarningBox,tr as WaterfallChart,rr as WhiteBox,mr as WhiteGrid,sr as WhitePopover,nr as WhitePopoverOnIcon,er as WinePilotTheme,ir as WinepilotThemeOptions,pr as allColors,cr as allMainColors,Fr as allTypographyVariants,xr as anyToCheckbox,ar as blueTheme,Pr as checkboxToAny,Ir as components,Sr as computeSize,fr as coralTheme,Lr as custom,jr as dataVisualizationColors,Tr as deprecatedVariants,lr as extraColors,o as getThemeLogo,dr as greenTheme,Br as greyTheme,yr as iconMapping,br as illustationsMapping,t as isTheme,vr as numbers,Cr as orangeTheme,ur as redTheme,hr as shadows,Nr as spacing,r as themeLogos,m as themeOptions,s as themes,kr as typographyConfig,bo as useFormBaseContext,Ar as useResponsiveBreakpoints,Hr as useResponsivePadding,gr as yellowTheme};
@@ -1,6 +1,6 @@
1
1
  import { DatavizVariant } from '../../../components/Icons/illustrationProps';
2
2
  export type IconButtonVariants = "icon-xs-nobackground" | "icon-s-nobackground" | "icon-m-nobackground" | "icon-xs-withbackground" | "icon-s-withbackground" | "icon-m-withbackground";
3
- export type TagsButtonVariants = "tags-grey" | "tags-black" | "tags-white" | "tags-red" | "tags-green";
3
+ export type TagsButtonVariants = "tags-grey" | "tags-black" | "tags-white" | "tags-red" | "tags-green" | "tags-blue" | "tags-coral";
4
4
  export type customButtonVariants = "primary" | "secondary" | "ternary" | "text" | "black-text" | "selected-menu" | "selected-submenu" | "default-menu" | "black-filled" | "white-filled" | "white-filled-no-shadow" | "select" | "validate" | "error" | "delete" | IconButtonVariants | TagsButtonVariants | DatavizVariant;
5
5
  type ButtonNewVariants = Record<customButtonVariants, React.CSSProperties>;
6
6
  type ButtonPropsNewVariants = Record<customButtonVariants, true>;
@@ -2,7 +2,8 @@ import { ThemeOptions } from '@mui/material';
2
2
  export declare const deprecatedVariants: readonly ["small", "body", "big", "huge", "number-huge"];
3
3
  export declare const allTypographyVariants: readonly ["small", "body", "big", "huge", "number-huge", "h1", "h2", "h3", "h4", "h5", "h6", "small-regular", "small-medium", "small-semibold", "small-bold", "body-regular", "body-medium", "body-semibold", "body-bold", "big-regular", "big-medium", "big-semibold", "big-bold", "huge-regular", "huge-medium", "huge-semibold", "huge-bold", "cta", "number-big", "number-inter", "number-small", "number-micro"];
4
4
  export type customTypographyVariants = (typeof allTypographyVariants)[number];
5
- type TypographyNewVariants = Record<customTypographyVariants, React.CSSProperties>;
5
+ type customTypographyVariantsForAugmentation = Exclude<customTypographyVariants, "h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
6
+ type TypographyNewVariants = Record<customTypographyVariantsForAugmentation, React.CSSProperties>;
6
7
  type TypographyPropsNewVariants = Record<customTypographyVariants, true>;
7
8
  declare module "@mui/material/styles" {
8
9
  interface TypographyVariants extends TypographyNewVariants {
@@ -106,6 +106,30 @@ export declare const yellowTheme: {
106
106
  readonly 800: "#984A08";
107
107
  readonly 900: "#7C3D0B";
108
108
  };
109
+ export declare const blueTheme: {
110
+ readonly 50: "#F0FBFF";
111
+ readonly 100: "#DAF7FF";
112
+ readonly 200: "#A9EFFF";
113
+ readonly 300: "#77E4FB";
114
+ readonly 400: "#4DCDF0";
115
+ readonly 500: "#22B8DA";
116
+ readonly 600: "#159DC0";
117
+ readonly 700: "#0B83A4";
118
+ readonly 800: "#046987";
119
+ readonly 900: "#00506A";
120
+ };
121
+ export declare const coralTheme: {
122
+ readonly 50: "#FFF7F5";
123
+ readonly 100: "#FEEEEB";
124
+ readonly 200: "#FFD4CB";
125
+ readonly 300: "#FFB3A5";
126
+ readonly 400: "#FF967F";
127
+ readonly 500: "#FF816C";
128
+ readonly 600: "#DF6043";
129
+ readonly 700: "#BE472C";
130
+ readonly 800: "#9C311B";
131
+ readonly 900: "#7A1E0D";
132
+ };
109
133
  export declare const shadows: {
110
134
  readonly grey: "0px 2px 8px 0px #2A2B270A";
111
135
  };
@@ -499,4 +523,4 @@ export declare const allColors: {
499
523
  };
500
524
  };
501
525
  };
502
- export declare const allMainColors: ("#FF8024" | "#FFB400" | "#4DCDF0" | "#F98CC0" | "#2B59A4" | "#DB3D53" | "#47CD56" | "#B2B4FF" | "#BB7600" | "#B249C6" | "#30C7A3" | "#FF816C" | "#5268FF" | "#C8E25D" | "#EFB8FF" | "#A0B1AC")[];
526
+ export declare const allMainColors: ("#FF8024" | "#FFB400" | "#4DCDF0" | "#FF816C" | "#F98CC0" | "#2B59A4" | "#DB3D53" | "#47CD56" | "#B2B4FF" | "#BB7600" | "#B249C6" | "#30C7A3" | "#5268FF" | "#C8E25D" | "#EFB8FF" | "#A0B1AC")[];
@@ -1 +1 @@
1
- const F={gradientDark:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",gradientLight:"linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%)",100:"#FFFFFF",200:"#FEFCFB",300:"#F6F5F3",400:"#EFEDEC",500:"#E7E6E4",600:"#E0DEDD",700:"#D8D7D5",800:"#D1CFCE",900:"#C9C8C6",1e3:"#C1C0BE",1100:"#BAB9B7",1200:"#B2B1AF",1300:"#ABAAA8",1400:"#A3A2A0",1500:"#9C9B99",1600:"#949491",1700:"#8C8C89",1800:"#858582",1900:"#7D7D7A",2e3:"#767673",2100:"#6E6E6B",2200:"#676764",2300:"#5F5F5C",2400:"#575854",2500:"#50504D",2600:"#484945",2700:"#41413E",2800:"#393A36",2900:"#32322F",3e3:"#2A2B27"},a={50:"#FFF4F2",100:"#FFE4DE",200:"#FFC1B4",300:"#F5846B",400:"#F16040",500:"#EE3C15",600:"#D03210",700:"#B2290B",800:"#931F05",900:"#751500"},i={50:"#DFFFE6",100:"#B7F2C4",200:"#8FE5A2",300:"#67D980",400:"#3FCC5E",500:"#17BF3C",600:"#12A332",700:"#0D8728",800:"#086A1D",900:"#034E13"},C={50:"#FFF2E9",100:"#FFE5D3",200:"#FFCCA7",300:"#FFB27B",400:"#FF994F",500:"#FF8024",600:"#CC661C",700:"#994C15",800:"#66330E",900:"#331907"},m={50:"#FFFEEA",100:"#FFF9C5",200:"#FFF285",300:"#FFE546",400:"#FFD51B",500:"#FFB400",600:"#E28A00",700:"#BB6002",800:"#984A08",900:"#7C3D0B"},D={grey:"0px 2px 8px 0px #2A2B270A"},E={1:{main:"#FF8024",variant:{100:"#FFCCA7",700:"#E86303"},lv1:{max:"#FF3243",middle:"#FF8024",min:"#FFEDA6"},lv2:{max:"#A57100",middle:"#FF9243",min:"#FFD4CB"}},2:{main:"#4DCDF0",variant:{100:"#DAF7FF",700:"#22A9CD"},lv1:{max:"#007F70",middle:"#4DCDF0",min:"#DDEBFF"},lv2:{max:"#001B93",middle:"#4DCDF0",min:"#D5FBF2"}},3:{main:"#F98CC0",variant:{100:"#FFE7F2",700:"#E96DA8"},lv1:{max:"#720098",middle:"#F98CC0",min:"#FFDED9"},lv2:{max:"#9D0101",middle:"#F98CC0",min:"#EFDDFF"}},4:{main:"#2B59A4",variant:{100:"#E4EEFF",700:"#164694"},lv1:{max:"#03684B",middle:"#2B59A4",min:"#CFC9FF"},lv2:{max:"#3F027D",middle:"#2B59A4",min:"#C5FFF7"}},5:{main:"#FFB400",variant:{100:"#FFF7E4",700:"#CF960F"},lv1:{max:"#803202",middle:"#FFB400",min:"#F8F66E"},lv2:{max:"#97B408",middle:"#FFB400",min:"#FFE4D5"}},6:{main:"#DB3D53",variant:{100:"#FFE1E5",700:"#BC2439"},lv1:{max:"#730359",middle:"#DB3D53",min:"#FFD2BC"},lv2:{max:"#5A1800",middle:"#DB3D53",min:"#FFCFF5"}},7:{main:"#47CD56",variant:{100:"#E9FFEB",700:"#32AC40"},lv1:{max:"#6D7502",middle:"#47CD56",min:"#C5FCFF"},lv2:{max:"#01907A",middle:"#47CD56",min:"#F1F5B1"}},8:{main:"#B2B4FF",variant:{100:"#F2F2FF",700:"#8D8FE1"},lv1:{max:"#210191",middle:"#B2B4FF",min:"#F6D0FF"},lv2:{max:"#60017C",middle:"#B2B4FF",min:"#C5FCFF"}}},B={9:{main:"#BB7600",variant:{100:"#FFF7E9",700:"#8F5C02"}},10:{main:"#B249C6",variant:{100:"#FDF1FF",700:"#9B33B0"}},11:{main:"#30C7A3",variant:{100:"#DCFFF7",700:"#14A582"}},12:{main:"#FF816C",variant:{100:"#FEEEEB",700:"#DF6043"}},13:{main:"#5268FF",variant:{100:"#E9ECFF",700:"#3C4FD2"}},14:{main:"#C8E25D",variant:{100:"#F6FFD1",700:"#9CB72E"}},15:{main:"#EFB8FF",variant:{100:"#FAE7FF",700:"#CF8DE2"}},16:{main:"#A0B1AC",variant:{100:"#EEFFFA",700:"#7E928C"}}},n={...B,...E},A=Object.values(n).map(F=>F.main);export{n as allColors,A as allMainColors,E as dataVisualizationColors,B as extraColors,i as greenTheme,F as greyTheme,C as orangeTheme,a as redTheme,D as shadows,m as yellowTheme};
1
+ const F={gradientDark:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",gradientLight:"linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%)",100:"#FFFFFF",200:"#FEFCFB",300:"#F6F5F3",400:"#EFEDEC",500:"#E7E6E4",600:"#E0DEDD",700:"#D8D7D5",800:"#D1CFCE",900:"#C9C8C6",1e3:"#C1C0BE",1100:"#BAB9B7",1200:"#B2B1AF",1300:"#ABAAA8",1400:"#A3A2A0",1500:"#9C9B99",1600:"#949491",1700:"#8C8C89",1800:"#858582",1900:"#7D7D7A",2e3:"#767673",2100:"#6E6E6B",2200:"#676764",2300:"#5F5F5C",2400:"#575854",2500:"#50504D",2600:"#484945",2700:"#41413E",2800:"#393A36",2900:"#32322F",3e3:"#2A2B27"},a={50:"#FFF4F2",100:"#FFE4DE",200:"#FFC1B4",300:"#F5846B",400:"#F16040",500:"#EE3C15",600:"#D03210",700:"#B2290B",800:"#931F05",900:"#751500"},C={50:"#DFFFE6",100:"#B7F2C4",200:"#8FE5A2",300:"#67D980",400:"#3FCC5E",500:"#17BF3C",600:"#12A332",700:"#0D8728",800:"#086A1D",900:"#034E13"},i={50:"#FFF2E9",100:"#FFE5D3",200:"#FFCCA7",300:"#FFB27B",400:"#FF994F",500:"#FF8024",600:"#CC661C",700:"#994C15",800:"#66330E",900:"#331907"},D={50:"#FFFEEA",100:"#FFF9C5",200:"#FFF285",300:"#FFE546",400:"#FFD51B",500:"#FFB400",600:"#E28A00",700:"#BB6002",800:"#984A08",900:"#7C3D0B"},E={50:"#F0FBFF",100:"#DAF7FF",200:"#A9EFFF",300:"#77E4FB",400:"#4DCDF0",500:"#22B8DA",600:"#159DC0",700:"#0B83A4",800:"#046987",900:"#00506A"},B={50:"#FFF7F5",100:"#FEEEEB",200:"#FFD4CB",300:"#FFB3A5",400:"#FF967F",500:"#FF816C",600:"#DF6043",700:"#BE472C",800:"#9C311B",900:"#7A1E0D"},m={grey:"0px 2px 8px 0px #2A2B270A"},n={1:{main:"#FF8024",variant:{100:"#FFCCA7",700:"#E86303"},lv1:{max:"#FF3243",middle:"#FF8024",min:"#FFEDA6"},lv2:{max:"#A57100",middle:"#FF9243",min:"#FFD4CB"}},2:{main:"#4DCDF0",variant:{100:"#DAF7FF",700:"#22A9CD"},lv1:{max:"#007F70",middle:"#4DCDF0",min:"#DDEBFF"},lv2:{max:"#001B93",middle:"#4DCDF0",min:"#D5FBF2"}},3:{main:"#F98CC0",variant:{100:"#FFE7F2",700:"#E96DA8"},lv1:{max:"#720098",middle:"#F98CC0",min:"#FFDED9"},lv2:{max:"#9D0101",middle:"#F98CC0",min:"#EFDDFF"}},4:{main:"#2B59A4",variant:{100:"#E4EEFF",700:"#164694"},lv1:{max:"#03684B",middle:"#2B59A4",min:"#CFC9FF"},lv2:{max:"#3F027D",middle:"#2B59A4",min:"#C5FFF7"}},5:{main:"#FFB400",variant:{100:"#FFF7E4",700:"#CF960F"},lv1:{max:"#803202",middle:"#FFB400",min:"#F8F66E"},lv2:{max:"#97B408",middle:"#FFB400",min:"#FFE4D5"}},6:{main:"#DB3D53",variant:{100:"#FFE1E5",700:"#BC2439"},lv1:{max:"#730359",middle:"#DB3D53",min:"#FFD2BC"},lv2:{max:"#5A1800",middle:"#DB3D53",min:"#FFCFF5"}},7:{main:"#47CD56",variant:{100:"#E9FFEB",700:"#32AC40"},lv1:{max:"#6D7502",middle:"#47CD56",min:"#C5FCFF"},lv2:{max:"#01907A",middle:"#47CD56",min:"#F1F5B1"}},8:{main:"#B2B4FF",variant:{100:"#F2F2FF",700:"#8D8FE1"},lv1:{max:"#210191",middle:"#B2B4FF",min:"#F6D0FF"},lv2:{max:"#60017C",middle:"#B2B4FF",min:"#C5FCFF"}}},A={9:{main:"#BB7600",variant:{100:"#FFF7E9",700:"#8F5C02"}},10:{main:"#B249C6",variant:{100:"#FDF1FF",700:"#9B33B0"}},11:{main:"#30C7A3",variant:{100:"#DCFFF7",700:"#14A582"}},12:{main:"#FF816C",variant:{100:"#FEEEEB",700:"#DF6043"}},13:{main:"#5268FF",variant:{100:"#E9ECFF",700:"#3C4FD2"}},14:{main:"#C8E25D",variant:{100:"#F6FFD1",700:"#9CB72E"}},15:{main:"#EFB8FF",variant:{100:"#FAE7FF",700:"#CF8DE2"}},16:{main:"#A0B1AC",variant:{100:"#EEFFFA",700:"#7E928C"}}},d={...A,...n},l=Object.values(d).map(F=>F.main);export{d as allColors,l as allMainColors,E as blueTheme,B as coralTheme,n as dataVisualizationColors,A as extraColors,C as greenTheme,F as greyTheme,i as orangeTheme,a as redTheme,m as shadows,D as yellowTheme};
@@ -1 +1 @@
1
- import{alpha as o}from"@mui/material";const r={MuiDialog:{styleOverrides:{paper:{borderRadius:"1rem"}}},MuiAutocomplete:{styleOverrides:{root:()=>({})}},MuiAvatar:{defaultProps:{children:[]},styleOverrides:{root:({theme:o,ownerState:{alt:r=""}})=>{const e=r.split(" ").map(o=>o.charAt(0).toUpperCase()).join("");return{background:o.palette.primary[100],color:o.palette.primary[700],fontWeight:600,".MuiAvatar-img":{zIndex:1},":empty::before":{content:`"${e}"`}}}},variants:[{props:{variant:"small"},style:{width:"24px",height:"24px",fontSize:"10px"}},{props:{variant:"medium"},style:{width:"36px",height:"36px",fontSize:"13px"}},{props:{variant:"big"},style:{width:"40px",height:"40px",fontSize:"16px"}}]},MuiAvatarGroup:{defaultProps:{variant:"small",spacing:6,sx:{justifyContent:"flex-end"},slotProps:{additionalAvatar:{sx:{color:o=>o.custom.grey[2800],background:o=>o.custom.grey[400]}}}},styleOverrides:{root:({ownerState:{max:o=0}})=>({...[...Array(o)].reduce((r,e,t)=>({...r,[`& > .MuiAvatar-root:nth-of-type(${t+1})`]:{zIndex:o-t}}),{})})}},MuiButtonGroup:{defaultProps:{disableRipple:!0}},MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:r,ownerState:e})=>{const t=e.variant,d=e.variant?.startsWith("dataviz");if(d){const o=parseInt((t??"").split("-")[1]),e=r.custom.dataviz.colorsWithExtra[o];if(void 0!==e)return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:r.spacing(1),height:"40px",fontWeight:700,transition:"none",color:r.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714",background:e.main,":hover":{background:e.variant[700]},":disabled":{background:e.variant[100]},":active":{background:e.variant[700]}}}return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:r.spacing(1),height:"40px",fontWeight:700,..."primary"===t&&{transition:"none",background:`linear-gradient(${r.palette.primary[400]}, ${r.palette.primary[600]})`,color:r.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714"},..."secondary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:`linear-gradient(${r.custom.grey[100]}}, ${r.custom.grey[300]})`},..."ternary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:r.custom.grey.gradientLight},..."text"===t&&{transition:"none",paddingInline:"0",color:r.palette.primary[700],fontWeight:"700"},..."selected-menu"===t&&{color:"white",background:`linear-gradient(${r.palette.primary[400]}, ${r.palette.primary[600]})`,borderRadius:"8px",padding:0},..."selected-submenu"===t&&{color:"white",backgroundColor:r.custom.grey[2300],background:r.custom.grey[2300],borderRadius:"8px",padding:0},..."default-menu"===t&&{color:r.custom.grey[100],background:"inherit",borderRadius:"8px",padding:0},..."black-text"===t&&{color:r.custom.grey[2800],background:"none",fontWeight:"600"},..."black-filled"===t&&{borderRadius:"8px",background:`linear-gradient(180deg, ${r.custom.grey[2600]} 0%, ${r.custom.grey[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)",color:r.custom.grey[100]},..."white-filled"===t&&{borderRadius:"8px",border:"1px solid "+r.custom.grey[500],background:`linear-gradient(180deg, ${r.custom.grey[100]} 0%, ${r.custom.grey[200]} 100%)`,boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"},..."white-filled-no-shadow"===t&&{borderRadius:"44px",border:`1px solid ${r.custom.grey[500]}`,background:`linear-gradient(180deg, ${r.custom.grey[100]} 0%, ${r.custom.grey[200]} 100%)`},..."select"===t&&{backgroundColor:r.custom.grey[100],borderRadius:r.spacing(1),border:`1px solid ${r.custom.grey[500]}`},..."validate"===t&&{color:"#FFFFFF",transition:"none",background:`linear-gradient(180deg, ${r.custom.green[500]} 0%, ${r.custom.green[700]} 100%)`},..."delete"===t&&{color:"#FFFFFF",transition:"none",background:`${r.custom.red[600]}`},..."error"===t&&{transition:"none",paddingInline:"0",color:r.custom.red[600],fontWeight:"600"},":hover":{..."primary"===t&&{background:r.palette.primary[600]},..."secondary"===t&&{background:r.custom.grey[400]},..."ternary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:r.custom.grey[400]},..."text"===t&&{background:"none",textDecoration:"underline"},..."select"===t&&{backgroundColor:r.custom.grey[300]},..."default-menu"===t&&{backgroundColor:r.custom.grey[2500],borderRadius:"8px"},..."selected-menu"===t&&{borderRadius:"8px"},..."selected-submenu"===t&&{borderRadius:"8px"},..."validate"===t&&{background:r.custom.green[600]},..."delete"===t&&{background:r.custom.red[700]},..."error"===t&&{color:r.custom.red[900]}},":disabled":{..."primary"===t&&{color:r.custom.grey[100],background:o(r.palette.primary[600]??"",.36)},..."secondary"===t&&{color:o(r.custom.grey[2800],.36),border:`1px solid ${o(r.custom.grey[500],.36)}`,background:r.custom.grey[100]},..."ternary"===t&&{border:`1px solid ${r.custom.grey[100]}`,background:r.custom.grey[500]},..."select"===t&&{backgroundColor:r.custom.grey[500]},..."default-menu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."selected-menu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."selected-submenu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."validate"===t&&{background:o(r.custom.green[500],.36),color:"#FFFFFF"},..."delete"===t&&{background:r.custom.red[100],color:o(r.custom.red[600],.36)},..."error"===t&&{color:o(r.custom.red[700],.36)}},":active":{..."primary"===t&&{background:r.palette.primary[800]},..."secondary"===t&&{background:r.custom.grey[400]},..."secondary"===t&&{background:r.custom.grey[600]},..."default-menu"===t&&{backgroundColor:r.custom.grey[2e3],borderRadius:"8px"},..."selected-menu"===t&&{backgroundColor:r.custom.grey[2700],borderRadius:"8px"},..."selected-submenu"===t&&{borderRadius:"8px"},..."validate"===t&&{background:r.custom.green[800]},..."delete"===t&&{background:r.custom.red[800]}},..."tags-grey"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]}`,borderRadius:"4px",backgroundColor:r.custom.grey[400],color:r.custom.grey[2800],height:"24px",cursor:"default",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{":hover":{cursor:"default"}}},..."tags-black"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]}`,borderRadius:"4px",background:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",color:r.custom.grey[100],height:"24px",cursor:"default",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{":hover":{cursor:"default"}}},..."tags-white"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]} !important`,borderRadius:"4px",backgroundColor:r.custom.grey[100],color:r.custom.grey[2800],height:"24px",cursor:"default",...void 0!==e.onClick&&{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}},..."tags-red"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.red[100]}`,borderRadius:"4px",backgroundColor:r.custom.red[100],color:r.custom.red[600],height:"24px",cursor:"default",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{":hover":{cursor:"default"}}},..."tags-green"===t&&{padding:r.spacing(0,1),borderRadius:"4px",height:"24px",border:`1px solid ${r.custom.grey[400]}`,backgroundColor:r.custom.green[100],color:r.custom.green[600],cursor:"default",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[400]}`,backgroundColor:r.custom.green[100],color:r.custom.green[600]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{":hover":{cursor:"default"}}},..."icon-xs-nobackground"===t&&{padding:r.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-s-nobackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-m-nobackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-xs-withbackground"===t&&{padding:r.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}},..."icon-s-withbackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}},..."icon-m-withbackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}}}}},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}},MuiCircularProgress:{styleOverrides:{root:({theme:o})=>({color:o.custom.grey[800]})}},MuiIconButton:{styleOverrides:{root:({theme:o})=>({height:"44px",width:"44px",color:o.custom.grey[2800],backgroundColor:"inherit",":hover":{backgroundColor:o.custom.grey[600]},":focus":{backgroundColor:o.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:o.custom.grey[1400]}})}},MuiChip:{styleOverrides:{root:({theme:o,ownerState:r})=>({paddingTop:o.spacing(.5),paddingRight:o.spacing(.5),paddingBottom:o.spacing(.5),paddingLeft:o.spacing(1),..."brand"===r.variant&&{backgroundColor:o.palette.primary[50]},..."neutral"===r.variant&&{backgroundColor:o.custom.grey[300]}})}}};export{r as components};
1
+ import{alpha as o}from"@mui/material";const r={MuiDialog:{styleOverrides:{paper:{borderRadius:"1rem"}}},MuiAutocomplete:{styleOverrides:{root:()=>({})}},MuiAvatar:{defaultProps:{children:[]},styleOverrides:{root:({theme:o,ownerState:{alt:r=""}})=>{const e=r.split(" ").map(o=>o.charAt(0).toUpperCase()).join("");return{background:o.palette.primary[100],color:o.palette.primary[700],fontWeight:600,".MuiAvatar-img":{zIndex:1},":empty::before":{content:`"${e}"`}}}},variants:[{props:{variant:"small"},style:{width:"24px",height:"24px",fontSize:"10px"}},{props:{variant:"medium"},style:{width:"36px",height:"36px",fontSize:"13px"}},{props:{variant:"big"},style:{width:"40px",height:"40px",fontSize:"16px"}}]},MuiAvatarGroup:{defaultProps:{variant:"small",spacing:6,sx:{justifyContent:"flex-end"},slotProps:{additionalAvatar:{sx:{color:o=>o.custom.grey[2800],background:o=>o.custom.grey[400]}}}},styleOverrides:{root:({ownerState:{max:o=0}})=>({...[...Array(o)].reduce((r,e,t)=>({...r,[`& > .MuiAvatar-root:nth-of-type(${t+1})`]:{zIndex:o-t}}),{})})}},MuiButtonGroup:{defaultProps:{disableRipple:!0}},MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:r,ownerState:e})=>{const t=e.variant,d=e.variant?.startsWith("dataviz");if(d){const o=parseInt((t??"").split("-")[1]),e=r.custom.dataviz.colorsWithExtra[o];if(void 0!==e)return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:r.spacing(1),height:"40px",fontWeight:700,transition:"none",color:r.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714",background:e.main,":hover":{background:e.variant[700]},":disabled":{background:e.variant[100]},":active":{background:e.variant[700]}}}return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:r.spacing(1),height:"40px",fontWeight:700,..."primary"===t&&{transition:"none",background:`linear-gradient(${r.palette.primary[400]}, ${r.palette.primary[600]})`,color:r.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714"},..."secondary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:`linear-gradient(${r.custom.grey[100]}}, ${r.custom.grey[300]})`},..."ternary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:r.custom.grey.gradientLight},..."text"===t&&{transition:"none",paddingInline:"0",color:r.palette.primary[700],fontWeight:"700"},..."selected-menu"===t&&{color:"white",background:`linear-gradient(${r.palette.primary[400]}, ${r.palette.primary[600]})`,borderRadius:"8px",padding:0},..."selected-submenu"===t&&{color:"white",backgroundColor:r.custom.grey[2300],background:r.custom.grey[2300],borderRadius:"8px",padding:0},..."default-menu"===t&&{color:r.custom.grey[100],background:"inherit",borderRadius:"8px",padding:0},..."black-text"===t&&{color:r.custom.grey[2800],background:"none",fontWeight:"600"},..."black-filled"===t&&{borderRadius:"8px",background:`linear-gradient(180deg, ${r.custom.grey[2600]} 0%, ${r.custom.grey[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)",color:r.custom.grey[100]},..."white-filled"===t&&{borderRadius:"8px",border:"1px solid "+r.custom.grey[500],background:`linear-gradient(180deg, ${r.custom.grey[100]} 0%, ${r.custom.grey[200]} 100%)`,boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"},..."white-filled-no-shadow"===t&&{borderRadius:"44px",border:`1px solid ${r.custom.grey[500]}`,background:`linear-gradient(180deg, ${r.custom.grey[100]} 0%, ${r.custom.grey[200]} 100%)`},..."select"===t&&{backgroundColor:r.custom.grey[100],borderRadius:r.spacing(1),border:`1px solid ${r.custom.grey[500]}`},..."validate"===t&&{color:"#FFFFFF",transition:"none",background:`linear-gradient(180deg, ${r.custom.green[500]} 0%, ${r.custom.green[700]} 100%)`},..."delete"===t&&{color:"#FFFFFF",transition:"none",background:`${r.custom.red[600]}`},..."error"===t&&{transition:"none",paddingInline:"0",color:r.custom.red[600],fontWeight:"600"},":hover":{..."primary"===t&&{background:r.palette.primary[600]},..."secondary"===t&&{background:r.custom.grey[400]},..."ternary"===t&&{border:`1px solid ${r.custom.grey[500]}`,background:r.custom.grey[400]},..."text"===t&&{background:"none",textDecoration:"underline"},..."select"===t&&{backgroundColor:r.custom.grey[300]},..."default-menu"===t&&{backgroundColor:r.custom.grey[2500],borderRadius:"8px"},..."selected-menu"===t&&{borderRadius:"8px"},..."selected-submenu"===t&&{borderRadius:"8px"},..."validate"===t&&{background:r.custom.green[600]},..."delete"===t&&{background:r.custom.red[700]},..."error"===t&&{color:r.custom.red[900]}},":disabled":{..."primary"===t&&{color:r.custom.grey[100],background:o(r.palette.primary[600]??"",.36)},..."secondary"===t&&{color:o(r.custom.grey[2800],.36),border:`1px solid ${o(r.custom.grey[500],.36)}`,background:r.custom.grey[100]},..."ternary"===t&&{border:`1px solid ${r.custom.grey[100]}`,background:r.custom.grey[500]},..."select"===t&&{backgroundColor:r.custom.grey[500]},..."default-menu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."selected-menu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."selected-submenu"===t&&{color:r.custom.grey[2300],borderRadius:"8px"},..."validate"===t&&{background:o(r.custom.green[500],.36),color:"#FFFFFF"},..."delete"===t&&{background:r.custom.red[100],color:o(r.custom.red[600],.36)},..."error"===t&&{color:o(r.custom.red[700],.36)}},":active":{..."primary"===t&&{background:r.palette.primary[800]},..."secondary"===t&&{background:r.custom.grey[400]},..."secondary"===t&&{background:r.custom.grey[600]},..."default-menu"===t&&{backgroundColor:r.custom.grey[2e3],borderRadius:"8px"},..."selected-menu"===t&&{backgroundColor:r.custom.grey[2700],borderRadius:"8px"},..."selected-submenu"===t&&{borderRadius:"8px"},..."validate"===t&&{background:r.custom.green[800]},..."delete"===t&&{background:r.custom.red[800]}},..."tags-grey"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]}`,borderRadius:"4px",backgroundColor:r.custom.grey[400],color:r.custom.grey[2800],height:"24px",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."tags-black"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]}`,borderRadius:"4px",background:"linear-gradient(180deg, #484945 0%, #2A2B27 100%)",color:r.custom.grey[100],height:"24px",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."tags-white"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.grey[400]} !important`,borderRadius:"4px",backgroundColor:r.custom.grey[100],color:r.custom.grey[2800],height:"24px",cursor:"default",...void 0!==e.onClick&&{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}},..."tags-red"===t&&{padding:r.spacing(0,1),border:`1px solid ${r.custom.red[100]}`,borderRadius:"4px",backgroundColor:r.custom.red[100],color:r.custom.red[600],height:"24px",...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[300]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."tags-green"===t&&{padding:r.spacing(0,1),borderRadius:"4px",height:"24px",border:`1px solid ${r.custom.grey[400]}`,backgroundColor:r.custom.green[100],color:r.custom.green[600],...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.grey[400]}`,backgroundColor:r.custom.green[100],color:r.custom.green[600]},":active":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[500]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."tags-blue"===t&&{padding:r.spacing(0,1),borderRadius:"4px",height:"24px",border:`1px solid ${r.custom.blue[100]}`,backgroundColor:r.custom.blue[100],color:r.custom.blue[700],...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.blue[200]}`,backgroundColor:r.custom.blue[50],color:r.custom.blue[700]},":active":{border:`1px solid ${r.custom.blue[300]}`,backgroundColor:r.custom.blue[200]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."tags-coral"===t&&{padding:r.spacing(0,1),borderRadius:"4px",height:"24px",border:`1px solid ${r.custom.coral[100]}`,backgroundColor:r.custom.coral[100],color:r.custom.coral[700],...void 0!==e.onClick?{cursor:"pointer",":hover":{border:`1px solid ${r.custom.coral[200]}`,backgroundColor:r.custom.coral[50],color:r.custom.coral[700]},":active":{border:`1px solid ${r.custom.coral[300]}`,backgroundColor:r.custom.coral[200]},":disabled":{border:`1px solid ${r.custom.grey[500]}`,backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}:{cursor:"default",":hover":{cursor:"default"}}},..."icon-xs-nobackground"===t&&{padding:r.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-s-nobackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-m-nobackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:r.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:r.custom.grey[600]},":active":{backgroundColor:r.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:r.custom.grey[1400]}},..."icon-xs-withbackground"===t&&{padding:r.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}},..."icon-s-withbackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}},..."icon-m-withbackground"===t&&{padding:r.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:r.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:r.custom.grey[400]},":active":{background:"none",backgroundColor:r.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:r.custom.grey[100],color:r.custom.grey[1400]}}}}}},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}},MuiCircularProgress:{styleOverrides:{root:({theme:o})=>({color:o.custom.grey[800]})}},MuiIconButton:{styleOverrides:{root:({theme:o})=>({height:"44px",width:"44px",color:o.custom.grey[2800],backgroundColor:"inherit",":hover":{backgroundColor:o.custom.grey[600]},":focus":{backgroundColor:o.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:o.custom.grey[1400]}})}},MuiChip:{styleOverrides:{root:({theme:o,ownerState:r})=>({paddingTop:o.spacing(.5),paddingRight:o.spacing(.5),paddingBottom:o.spacing(.5),paddingLeft:o.spacing(1),..."brand"===r.variant&&{backgroundColor:o.palette.primary[50]},..."neutral"===r.variant&&{backgroundColor:o.custom.grey[300]}})}}};export{r as components};
@@ -1,5 +1,5 @@
1
1
  import { SxProps, Theme, ThemeOptions } from '@mui/material';
2
- import { greyTheme, redTheme, greenTheme, dataVisualizationColors, extraColors, allColors, allMainColors, orangeTheme, yellowTheme, shadows } from './colors';
2
+ import { greyTheme, redTheme, greenTheme, dataVisualizationColors, extraColors, allColors, allMainColors, orangeTheme, yellowTheme, blueTheme, coralTheme, shadows } from './colors';
3
3
  type CustomThemeKeys = {
4
4
  custom: {
5
5
  grey: typeof greyTheme;
@@ -7,6 +7,8 @@ type CustomThemeKeys = {
7
7
  green: typeof greenTheme;
8
8
  orange: typeof orangeTheme;
9
9
  yellow: typeof yellowTheme;
10
+ blue: typeof blueTheme;
11
+ coral: typeof coralTheme;
10
12
  shadows: typeof shadows;
11
13
  dataviz: {
12
14
  colors: typeof dataVisualizationColors;
@@ -1 +1 @@
1
- import o from"i18next";import{allMainColors as r,allColors as e,extraColors as t,dataVisualizationColors as a,shadows as i,yellowTheme as n,orangeTheme as g,greenTheme as x,redTheme as l,greyTheme as m}from"./colors.js";const s={grey:m,red:l,green:x,orange:g,yellow:n,shadows:i,dataviz:{colors:a,extra:t,colorsWithExtra:e,onlyMainFromAll:r},searchBox:{borderRadius:"24px",border:o=>"1px solid "+o.custom.grey[500],background:"white",boxShadow:o=>"0px 2px 8px 0px "+o.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},p={valueFormatterFn:(r,e=void 0)=>{const t=Number(r);return Number.isNaN(t)?"":e?t.toLocaleString(o.language,{maximumFractionDigits:e}):t.toLocaleString(o.language)}};export{s as custom,p as numbers};
1
+ import o from"i18next";import{allMainColors as r,allColors as e,extraColors as t,dataVisualizationColors as a,shadows as i,coralTheme as n,blueTheme as g,yellowTheme as l,orangeTheme as x,greenTheme as m,redTheme as s,greyTheme as p}from"./colors.js";const c={grey:p,red:s,green:m,orange:x,yellow:l,blue:g,coral:n,shadows:i,dataviz:{colors:a,extra:t,colorsWithExtra:e,onlyMainFromAll:r},searchBox:{borderRadius:"24px",border:o=>"1px solid "+o.custom.grey[500],background:"white",boxShadow:o=>"0px 2px 8px 0px "+o.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},u={valueFormatterFn:(r,e=void 0)=>{const t=Number(r);return Number.isNaN(t)?"":e?t.toLocaleString(o.language,{maximumFractionDigits:e}):t.toLocaleString(o.language)}};export{c as custom,u as numbers};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "2.11.49",
4
+ "version": "2.12.0",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "module": "./dist/main.js",
@@ -179,9 +179,9 @@
179
179
  ],
180
180
  "scripts": {
181
181
  "dev": "vite",
182
- "build": "tsc && vite build",
182
+ "build": "tsgo --incremental && vite build",
183
183
  "build:analyze": "ANALYZE=true npm run build",
184
- "type-check": "tsc --noEmit",
184
+ "type-check": "tsgo --noEmit",
185
185
  "lint": "eslint .",
186
186
  "lint:ignore": "eslint . --fix --suppress-all && eslint . --prune-suppressions",
187
187
  "depcruise:check": "depcruise -c .dependency-cruiser.cjs lib --include-only ^lib -T err-long",
@@ -195,7 +195,12 @@
195
195
  "build-storybook": "storybook build",
196
196
  "lint:fix": "npm run lint --fix",
197
197
  "prepare": "husky install",
198
- "tsc": "tsc",
198
+ "tsc-debug": "tsgo --incremental --generateTrace debugTypescript.out",
199
+ "tsc-diagnostics": "tsgo --incremental --extendedDiagnostics",
200
+ "tsc-command": "tsgo --incremental",
201
+ "tsc-command:classic": "tsc --incremental",
202
+ "tsc": "npm run tsc-command",
203
+ "ci:tsc": "npm run tsc-command",
199
204
  "publish:patch": "gh workflow run release.yml --ref main --field version_type=patch",
200
205
  "publish:minor": "gh workflow run release.yml --ref main --field version_type=minor",
201
206
  "publish:major": "gh workflow run release.yml --ref main --field version_type=major",
@@ -258,6 +263,7 @@
258
263
  "@types/react-dom": "^19.2.3",
259
264
  "@typescript-eslint/eslint-plugin": "^8.56.1",
260
265
  "@typescript-eslint/parser": "^8.56.1",
266
+ "@typescript/native-preview": "^7.0.0-dev.20260421.2",
261
267
  "@vitejs/plugin-react": "^5.1.4",
262
268
  "dependency-cruiser": "^17.3.10",
263
269
  "eslint": "^9.39.3",