@foodpilot/foods 2.17.7 → 2.17.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Tabs/FoodsTabs/FoodsTabTemplate.js +2 -2
- package/dist/components/Tabs/FoodsTabs/FoodsTabs.js +4 -4
- package/dist/components/Tabs/SecondaryTabs.js +5 -4
- package/dist/components/Tags/FoodsTags.d.ts +8 -1
- package/dist/components/Tags/FoodsTags.js +3 -2
- package/dist/main.js +1 -1
- package/dist/themes/common/custom.d.ts +67 -0
- package/dist/themes/common/custom.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{styled as r,Tab as t}from"@mui/material";const a=r(r=>{const{variant:a,isSelected:
|
|
2
|
-
return e(t,{disableRipple:!0,...(
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{styled as r,Tab as t}from"@mui/material";const a=r(r=>{const{variant:a,isSelected:i,textVariant:o,...n}=r;/* @__PURE__ */
|
|
2
|
+
return e(t,{disableRipple:!0,...(p=r.value,{id:`tab-${p}`,"aria-controls":`tabpanel-${p}`}),...n});var p})(e=>{const{theme:r,variant:t,textVariant:a="body-bold"}=e,i={textTransform:"unset",maxWidth:"none",..."inherit"===a?{}:r.typography[a]};return"primary"===t?{...i,height:r.custom.tabs.primary.height,minHeight:r.custom.tabs.primary.height,"&.Mui-selected":{color:r.palette.primary[600],background:r.palette.background.paper},"&.Mui-selected span":{color:r.palette.primary[600]},".MuiTab-icon":{marginRight:0},paddingInline:0}:"secondary"===t?{...i,borderRadius:0,borderRight:`1px solid ${r.custom.grey[500]}`,"&.Mui-selected":{color:r.palette.primary[600],background:r.palette.background.paper},"&.Mui-selected span":{color:r.palette.primary[600]}}:"buttons"===t?{minHeight:"36px",height:"36px",borderRadius:r.spacing(1),margin:"4px",background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${r.custom.grey[600]}`,":hover":{background:r.custom.grey[300]},"&.Mui-selected":{color:"white",background:r.custom.grey[2800],border:`1px solid ${r.custom.grey[2800]}`},"&.Mui-selected span":{color:"white"},...i}:{}});export{a as SpecialTab};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return o
|
|
3
|
-
return
|
|
4
|
-
return
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Box as o,styled as r,Tabs as a}from"@mui/material";import{useState as i,useEffect as e}from"react";import{useResponsiveBreakpoints as s}from"../../../themes/responsive/useResponsiveBreakpoints.js";import{SpecialTab as n}from"./FoodsTabTemplate.js";import{FoodsIcon as l}from"../../Icons/FoodsIcon.js";const c=r=>{const{forceScrollable:a,selectedTabIndex:c,tabs:p,BoxProps:d,TabsProps:m,TabProps:u,tabVariant:h,textVariant:g="body-bold"}=r,[x,y]=i(c),{isMobile:T}=s(),f=void 0===a&&!0===T||a;e(()=>{y(c)},[c]);const v="primary"===r.tabVariant?"20px":"0px";/* @__PURE__ */
|
|
2
|
+
return t(o,{sx:{width:"100%"},...d,children:/* @__PURE__ */t(b,{value:x,onChange:(t,o)=>{y(o)},role:"navigation","aria-label":"section-tabs",variant:f?"scrollable":"standard",tabVariant:h,slotProps:{list:{sx:{gap:v}}},...m,children:p.map((r,a)=>{const i={...u,...r.TabProps};/* @__PURE__ */
|
|
3
|
+
return t(n,{value:a,variant:h,textVariant:g,isSelected:a===x,label:r.name,icon:/* @__PURE__ */t(o,{display:"flex",alignItems:"center",children:/* @__PURE__ */t(l,{icon:r.icon,size:2})}),iconPosition:"start",...i},String(r.id??a))})})})},b=r(o=>{const{tabVariant:r,...i}=o,{variant:e}=i;/* @__PURE__ */
|
|
4
|
+
return t(a,{scrollButtons:"scrollable"===e&&"auto",allowScrollButtonsMobile:"scrollable"===e,...i})})(t=>{const{theme:o,variant:r,tabVariant:a}=t,i="scrollable"!==r?{}:{"& .MuiTabs-scrollButtons":{"&.Mui-disabled":{opacity:.3}}};return"primary"===a?{...i,height:o.custom.tabs.primary.height,minHeight:o.custom.tabs.primary.height,"& .MuiTabs-list":{height:o.custom.tabs.primary.height},".MuiTabs-indicator":{backgroundColor:o.palette.primary[600]}}:"secondary"===a?{borderTopLeftRadius:"12px",borderTopRightRadius:"12px",borderColor:`${o.custom.grey[500]}`,borderWidth:"1px 1px 0px 1px",borderStyle:"solid",background:o.custom.grey[200],".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer::after":{content:'" "',background:o.custom.grey[500],bottom:0,left:0,right:0,width:"100%",height:"1px",position:"absolute"},...i}:"buttons"===a?{minHeight:"36px",backgroundColor:"inherit",".MuiTabs-indicator":{backgroundColor:"inherit"},...i}:{...i}});export{c as FoodsTabs,b as SpecialTabs};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
2
|
-
/* @__PURE__ */
|
|
3
|
-
return
|
|
4
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{styled as a,Box as i,Tabs as s,Tab as n}from"@mui/material";const c=a(i)(({theme:e})=>()=>({"&.secondary-tabs-wrapper":{width:"100%",borderRadius:e.spacing(1.5),isolation:"isolate",position:"relative","& > .secondary-tabs":{borderTopLeftRadius:e.spacing(1.5),borderTopRightRadius:e.spacing(1.5),height:e.custom.tabs.secondary.height,minHeight:e.custom.tabs.secondary.height,"& .MuiTabs-indicator":{backgroundColor:e.palette.background.paper},"& .MuiTabs-list, & .MuiTabs-flexContainer":{height:e.custom.tabs.secondary.height},"& .MuiButtonBase-root":{height:e.custom.tabs.secondary.height,minHeight:e.custom.tabs.secondary.height,fontWeight:e.typography.fontWeightBold,borderRadius:0,background:e.custom.grey[200],textTransform:"unset",borderRightColor:e.custom.strokes.containerDivider.color,borderRightStyle:e.custom.strokes.containerDivider.style,borderRightWidth:e.custom.strokes.containerDivider.width,display:"flex",flexDirection:"row","& > svg":{marginRight:e.spacing(1)}},"& .MuiButtonBase-root::after":{content:'" "',background:e.custom.strokes.containerDivider.color,bottom:0,left:0,right:0,width:"100%",height:e.custom.strokes.containerDivider.width,position:"absolute"},"& .MuiButtonBase-root.Mui-selected":{color:e.palette.primary[600],background:e.palette.background.paper},"& .MuiButtonBase-root.Mui-selected::after":{background:e.palette.background.paper},"& .MuiTabs-flexContainer":{background:e.custom.grey[200]},"& .MuiTabs-flexContainer::after":{content:'" "',background:e.custom.strokes.containerDivider.color,bottom:0,left:0,right:0,width:"100%",height:e.custom.strokes.containerDivider.width,position:"absolute"}},"& .secondary-tabs-content":{borderBottomLeftRadius:e.spacing(1.5),borderBottomRightRadius:e.spacing(1.5),padding:e.spacing(3),backgroundColor:e.palette.background.paper},"& > .secondary-tabs-stroke":{borderColor:e.custom.strokes.containerDivider.color,borderRadius:e.spacing(1.5),borderStyle:e.custom.strokes.containerDivider.style,borderWidth:e.custom.strokes.containerDivider.width,boxSizing:"border-box",inset:0,pointerEvents:"none",position:"absolute"}}})),d=({children:e,value:o,index:r})=>/* @__PURE__ */t(i,{role:"tabpanel",hidden:o!==r,className:"secondary-tabs-tabpanel",children:o===r&&/* @__PURE__ */t(i,{children:e})}),l=a=>{const{tabs:l,selectedTabIndex:b,boxProps:u,tabProps:h,tabsProps:g}=a,[p,m]=o(b);return r(()=>{m(b)},[b]),/* @__PURE__ */e(c,{...u,className:"secondary-tabs-wrapper",children:[
|
|
2
|
+
/* @__PURE__ */t(s,{value:p,onChange:(e,t)=>{m(t)},className:"secondary-tabs",role:"navigation",...g,children:l.map((e,o)=>{const{href:r,hrefLang:a,isExternal:i=!1}=e.tabProps||{};/* @__PURE__ */
|
|
3
|
+
return t(n,{label:e.name,disabled:e.disabled,icon:e.icon,onClick:e.onClick,component:"a",href:r,hrefLang:a,target:i?"_blank":void 0,...h},o)})}),
|
|
4
|
+
/* @__PURE__ */t(i,{className:"secondary-tabs-content",children:l.map((e,o)=>/* @__PURE__ */t(d,{value:p,index:o,children:e.component},o))}),
|
|
5
|
+
/* @__PURE__ */t(i,{"aria-hidden":!0,className:"secondary-tabs-stroke"})]})};export{c as BoxStyled,l as SecondaryTabs};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
1
2
|
import { IconMapping } from '../Icons';
|
|
2
3
|
import { TagsButtonVariants } from '../../themes';
|
|
3
4
|
export type FoodsTagsProps = {
|
|
4
5
|
variant?: TagsButtonVariants;
|
|
5
6
|
label: string;
|
|
7
|
+
detail?: string;
|
|
8
|
+
size?: "compact" | "display";
|
|
9
|
+
colors?: {
|
|
10
|
+
background: string;
|
|
11
|
+
foreground: string;
|
|
12
|
+
};
|
|
6
13
|
startIcon?: keyof IconMapping;
|
|
7
14
|
endIcon?: keyof IconMapping;
|
|
8
15
|
onClick?: () => void;
|
|
9
16
|
disabled?: boolean;
|
|
10
|
-
sx?:
|
|
17
|
+
sx?: SxProps<Theme>;
|
|
11
18
|
};
|
|
12
19
|
export declare const FoodsTags: (props: FoodsTagsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useTheme as
|
|
2
|
-
return o(
|
|
1
|
+
import{jsx as o,jsxs as a}from"react/jsx-runtime";import{useTheme as n,Button as r,Stack as c,Typography as i}from"@mui/material";import{FoodsIcon as t}from"../Icons/FoodsIcon.js";const s=s=>{const{variant:e="tags-grey",label:d,detail:l,size:g="compact",colors:u,startIcon:p,endIcon:m,onClick:b,disabled:h,sx:k}=s,y=n(),I="display"===g,v={"tags-grey":y.custom.grey[2800],"tags-black":y.custom.grey[100],"tags-white":y.custom.grey[2800],"tags-green":y.custom.green[600],"tags-red":y.custom.red[600],"tags-blue":y.custom.blue[700],"tags-coral":y.custom.coral[700]},x=u?.foreground??v[e],f=Array.isArray(k)?k:[k],C=a=>/* @__PURE__ */o(i,{sx:{color:x},variant:"small-bold",children:/* @__PURE__ */o(t,{size:1,icon:a})});/* @__PURE__ */
|
|
2
|
+
return o(r,{"aria-label":I?[d,l].filter(Boolean).join(" "):void 0,startIcon:p&&C(p),endIcon:m&&C(m),variant:e,onClick:b,disabled:h,sx:[{borderColor:"transparent",...u&&{background:u.background,backgroundColor:u.background,color:u.foreground,"&:hover, &:active":{background:u.background,backgroundColor:u.background}},...I&&{borderRadius:y.spacing(.5),gap:y.spacing(.25),height:y.custom.tags.display.height,minWidth:"auto",paddingBlock:y.spacing(.25),paddingInlineStart:y.spacing(1),paddingInlineEnd:m?y.spacing(.25):y.spacing(1),"& .MuiButton-endIcon, & .MuiButton-startIcon":{color:x,margin:y.spacing(0),padding:y.spacing(.5)}}},...f],children:I?/* @__PURE__ */a(c,{component:"span",direction:"row",alignItems:"center",sx:{gap:y.spacing(.5)},children:[
|
|
3
|
+
/* @__PURE__ */o(i,{component:"span",sx:{color:x},variant:"body-semibold",children:d}),l&&/* @__PURE__ */o(i,{component:"span",sx:{color:x},variant:"body-regular",children:l})]}):/* @__PURE__ */o(i,{sx:{color:x},variant:"small-bold",children:d})})};export{s 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 p}from"./components/Accordion/ProductAccordion.js";import{AdditionalContentBox as i}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{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as S}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as P}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as I}from"./components/Tabs/ButtonTabs.js";import{CardImage as y}from"./components/CardImage.js";import{CategoryBox as v}from"./components/Box/CategoryBox.js";import{CheckboxBlock as L}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as b,CollectiveThemeOptions as N}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as A}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as H}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as R}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as D}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as G}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as w}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as U}from"./components/Popover/CoordinatePopover.js";import{CountTabs as M}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as W}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as E,TertiaryToggleButton as V}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as z,TertiaryToggleButtonNodeTitle as O}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as Q}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as q}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as J}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as K}from"./components/Box/DottedBox.js";import{DoughnutCard as X}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as Y}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as Z}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as $}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as _}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as oo}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as to}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as ro}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as mo}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as so,FoodpilotThemeOptions as no}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as eo}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as po}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as io}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as co}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as ao}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as fo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as jo}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as lo}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as Bo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as Co}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as uo}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as ho}from"./components/Search/FoodsSearch.js";import{FoodsSelect as go,FoodsSelectServerPagination as Fo}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as To,SpecialTabs as ko}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as xo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as So}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Po,FoodsThemeProvider as Io}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as yo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as vo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as Lo}from"./components/Treeview/Treeview.js";import{FoodsUserTags as bo}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as No}from"./components/Accordion/FormAccordion.js";import{FormBase as Ao}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Ho,useFormBaseContext as Ro}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as Do}from"./components/Form/FormBox.js";import{FormPropertyBox as Go}from"./components/Form/FormPropertyBox.js";import{FormTopBar as wo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Uo}from"./components/Form/FormUnit.js";import{GenericAccordion as Mo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Wo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Eo,NavBarLink as Vo,Navbar as zo,SubMenu as Oo,UserNav as Qo}from"./components/Navigation/Navbar.js";import{HelperBox as qo}from"./components/Box/HelperBox.js";import{HeroBlock as Jo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Ko}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Xo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as Yo}from"./components/Navigation/IconThread.js";import{IndicatorBlock as Zo}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as $o}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as _o}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as ot}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as tt}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as rt}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as mt}from"./components/Box/LineGroupBox.js";import{LinearProgress as st}from"./components/LinearProgress.js";import{LinkAction as nt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as et}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as pt}from"./components/Grid/MRTGrid.js";import{MultiValueFilter as it}from"./components/Filter/MultiValueFilter.js";import{NumberField as ct}from"./components/Field/NumberField.js";import{NumberWithUnit as at}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as ft}from"./components/Popover/OptionsPopover.js";import{PageItem as jt}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as lt}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as dt}from"./components/Input/Pills/Pills.js";import{PointsCell as Bt}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as Ct}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as ut}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as ht}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as gt}from"./components/Dialog/PrimaryDialog.js";import{Progress as Ft}from"./components/Progress/Progress.js";import{ProgressCard as Tt}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as kt}from"./components/Box/QuoteBox.js";import{RadioBlock as xt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as St}from"./components/Radio/RadioBoolean.js";import{RadioList as Pt}from"./components/Radio/RadioList.js";import{RichTextEditor as It}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as yt}from"./components/Input/RoundInput.js";import{RoundNumberInput as vt}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Lt}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as bt}from"./components/Number/Score.js";import{ScoreCard as Nt}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as At}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Ht}from"./components/Badge/ScoreContainer.js";import{ScoreSelect as Rt}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Dt}from"./components/Number/ScoreValue.js";import{SearchBox as Gt}from"./components/Input/SearchBox.js";import{SectionBox as wt}from"./components/Box/SectionBox.js";import{SectionTabs as Ut}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as Mt}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Wt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as Et}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Vt}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as zt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Ot}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Qt}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as qt}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as Jt}from"./components/Text/TextArrowList.js";import{TextField as Kt}from"./components/Field/TextField.js";import{TextTitle as Xt}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as Yt}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as Zt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as $t}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as _t}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as or}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as tr}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as rr}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPopover as mr}from"./components/Form/UnitConverterPopover.js";import{ValueDisplay as sr}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as nr}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as er}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as pr}from"./components/Box/WarningBox.js";import{WaterfallChart as ir}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as cr}from"./components/Box/WhiteBox.js";import{WhiteGrid as ar}from"./components/Box/WhiteGrid.js";import{WhitePopover as fr}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as jr}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as lr,WinepilotThemeOptions as dr}from"./themes/themes/WinePilotTheme.js";import{allColors as Br,allMainColors as Cr,blueTheme as ur,coralTheme as hr,dataVisualizationColors as gr,extraColors as Fr,greenTheme as Tr,greyTheme as kr,orangeTheme as xr,redTheme as Sr,shadows as Pr,yellowTheme as Ir}from"./themes/common/colors.js";import{allTypographyVariants as yr,deprecatedVariants as vr,typographyConfig as Lr}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as br,checkboxToAny as Nr}from"./components/Checkbox/helperFunctions.js";import{barChart as Ar,breadcrumb as Hr,custom as Rr,deleteButton as Dr,doughnutCard as Gr,formField as wr,mediaUpload as Ur,numberWithUnit as Mr,numbers as Wr,scoreCard as Er,scoreValue as Vr,status as zr,strokes as Or,toggleSwitch as Qr,tooltip as qr}from"./themes/common/custom.js";import{components as Jr}from"./themes/common/components.js";import{computeSize as Kr,iconMapping as Xr}from"./components/Icons/iconConfig.js";import{illustationsMapping as Yr}from"./components/Icons/illustrationsConfig.js";import{spacing as Zr}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as $r}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as _r}from"./themes/responsive/useResponsivePadding.js";export{p as AccordionProduct,i 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 BreadcrumbItem,S as Breadcrumbs,P as BreakdownTable,n as Button,I as ButtonTabs,y as CardImage,v as CategoryBox,L as CheckboxBlock,b as CollectiveTheme,N as CollectiveThemeOptions,A as ComingSoonBadge,H as ComparisonArrow,R as ComparisonBlock,D as ComparisonLabel,G as ConfirmDialog,w as ContextualContentBox,U as CoordinatePopover,M as CountTabs,W as CustomRender,E as CustomToggleButton,z as CustomToggleButtonNodeTitle,Q as CustomTypography,q as CustomizedAxisTick,J as DefaultUserAction,K as DottedBox,X as DoughnutCard,Y as DoughnutChart,Z as DrawerAction,$ as EcoScoreCell,_ as EditHeader,oo as EllipsisItem,to as EmptyForm,ro as EvolutionChart,mo as FixedMultiValueFilter,so as FoodPilotTheme,no as FoodpilotThemeOptions,eo as FoodsBadge,po as FoodsCheckbox,io as FoodsDeleteButton,co as FoodsFormBase,ao as FoodsIcon,fo as FoodsIconButton,jo as FoodsIllustrations,lo as FoodsNavbar,Bo as FoodsPagination,Co as FoodsPaginationItem,uo as FoodsRadioList,ho as FoodsSearch,go as FoodsSelect,Fo as FoodsSelectServerPagination,To as FoodsTabs,xo as FoodsTags,So as FoodsTextInput,Po as FoodsThemeOptionsProvider,Io as FoodsThemeProvider,yo as FoodsToggleButton,vo as FoodsTooltip,Lo as FoodsTreeview,bo as FoodsUserTags,No as FormAccordion,Ao as FormBase,Ho as FormBaseContextProvider,Do as FormBox,Go as FormPropertyBox,wo as FormTopBar,Uo as FormUnit,Mo as GenericAccordion,Wo as GreyTextCell,Eo as HeaderNav,a as HeadlessPopover,qo as HelperBox,Jo as HeroBlock,Ko as HistogramComparisonChart,Xo as HorizontalGaugeChart,Yo as IconThread,Zo as IndicatorBlock,$o as InfoBox,_o as InfoHeaderWithIllustration,ot as InitHeader,tt as LeftComparisonPart,rt as LightIndicatorBlock,mt as LineGroupBox,st as LinearProgress,nt as LinkAction,et as ListHeader,pt as MRTGrid,it as MultiValueFilter,Vo as NavBarLink,zo as Navbar,ct as NumberField,at as NumberWithUnit,ft as OptionsPopover,jt as PageItem,lt as PageUpAndDownItem,dt as Pills,Bt as PointsCell,Ct as PolymorphicChart,ut as PolymorphicChartRenderer,ht as PrimaryCheckbox,gt as PrimaryDialog,Ft as Progress,Tt as ProgressCard,kt as QuoteBox,xt as RadioBlock,St as RadioBoolean,Pt as RadioList,It as RichTextEditor,yt as RoundInput,vt as RoundNumberInput,Lt as ScatterPlot,bt as Score,Nt as ScoreCard,At as ScoreCardHeader,Ht as ScoreContainer,Rt as ScoreSelect,Dt as ScoreValue,Gt as SearchBox,k as SecondaryTabs,wt as SectionBox,Ut as SectionTabs,Mt as SeeMoreCard,Wt as SelectBlock,Et as SelectionCard,Vt as SelectionCardGroup,zt as Separator,Ot as SolidGreyBox,Qt as SpecialTab,ko as SpecialTabs,Oo as SubMenu,qt as SuggestionBlock,V as TertiaryToggleButton,O as TertiaryToggleButtonNodeTitle,Jt as TextArrowList,Kt as TextField,Xt as TextTitle,Yt as TextTitleGreyIcon,Zt as Textarea,f as ThemedPopover,$t as ToggleSwitch,_t as TopLinkAction,or as TrajectoryCards,tr as TrajectoryChart,e as Typography,rr as TypographyList,mr as UnitConverterPopover,Qo as UserNav,sr as ValueDisplay,nr as ValueLabel,er as ValueSwitcher,pr as WarningBox,ir as WaterfallChart,cr as WhiteBox,ar as WhiteGrid,fr as WhitePopover,jr as WhitePopoverOnIcon,lr as WinePilotTheme,dr as WinepilotThemeOptions,Br as allColors,Cr as allMainColors,yr as allTypographyVariants,br as anyToCheckbox,Ar as barChart,ur as blueTheme,Hr as breadcrumb,Nr as checkboxToAny,Jr as components,Kr as computeSize,hr as coralTheme,Rr as custom,gr as dataVisualizationColors,Dr as deleteButton,vr as deprecatedVariants,Gr as doughnutCard,Fr as extraColors,wr as formField,o as getThemeLogo,Tr as greenTheme,kr as greyTheme,Xr as iconMapping,Yr as illustationsMapping,t as isTheme,Ur as mediaUpload,Mr as numberWithUnit,Wr as numbers,xr as orangeTheme,Sr as redTheme,Er as scoreCard,Vr as scoreValue,Pr as shadows,Zr as spacing,zr as status,Or as strokes,r as themeLogos,m as themeOptions,s as themes,Qr as toggleSwitch,qr as tooltip,Lr as typographyConfig,Ro as useFormBaseContext,$r as useResponsiveBreakpoints,_r as useResponsivePadding,Ir 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 p}from"./components/Accordion/ProductAccordion.js";import{AdditionalContentBox as i}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{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as S}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as P}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as I}from"./components/Tabs/ButtonTabs.js";import{CardImage as y}from"./components/CardImage.js";import{CategoryBox as v}from"./components/Box/CategoryBox.js";import{CheckboxBlock as L}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as b,CollectiveThemeOptions as N}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as A}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as H}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as R}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as D}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as G}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as w}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as U}from"./components/Popover/CoordinatePopover.js";import{CountTabs as M}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as W}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as E,TertiaryToggleButton as V}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as z,TertiaryToggleButtonNodeTitle as O}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as Q}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as q}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as J}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as K}from"./components/Box/DottedBox.js";import{DoughnutCard as X}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as Y}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as Z}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as $}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as _}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as oo}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as to}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as ro}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as mo}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as so,FoodpilotThemeOptions as no}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as eo}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as po}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as io}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as co}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as ao}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as fo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as jo}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as lo}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as Bo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as Co}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as uo}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as ho}from"./components/Search/FoodsSearch.js";import{FoodsSelect as go,FoodsSelectServerPagination as Fo}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as To,SpecialTabs as ko}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as xo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as So}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Po,FoodsThemeProvider as Io}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as yo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as vo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as Lo}from"./components/Treeview/Treeview.js";import{FoodsUserTags as bo}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as No}from"./components/Accordion/FormAccordion.js";import{FormBase as Ao}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Ho,useFormBaseContext as Ro}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as Do}from"./components/Form/FormBox.js";import{FormPropertyBox as Go}from"./components/Form/FormPropertyBox.js";import{FormTopBar as wo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Uo}from"./components/Form/FormUnit.js";import{GenericAccordion as Mo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Wo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Eo,NavBarLink as Vo,Navbar as zo,SubMenu as Oo,UserNav as Qo}from"./components/Navigation/Navbar.js";import{HelperBox as qo}from"./components/Box/HelperBox.js";import{HeroBlock as Jo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Ko}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Xo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as Yo}from"./components/Navigation/IconThread.js";import{IndicatorBlock as Zo}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as $o}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as _o}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as ot}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as tt}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as rt}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as mt}from"./components/Box/LineGroupBox.js";import{LinearProgress as st}from"./components/LinearProgress.js";import{LinkAction as nt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as et}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as pt}from"./components/Grid/MRTGrid.js";import{MultiValueFilter as it}from"./components/Filter/MultiValueFilter.js";import{NumberField as ct}from"./components/Field/NumberField.js";import{NumberWithUnit as at}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as ft}from"./components/Popover/OptionsPopover.js";import{PageItem as jt}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as lt}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as dt}from"./components/Input/Pills/Pills.js";import{PointsCell as Bt}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as Ct}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as ut}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as ht}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as gt}from"./components/Dialog/PrimaryDialog.js";import{Progress as Ft}from"./components/Progress/Progress.js";import{ProgressCard as Tt}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as kt}from"./components/Box/QuoteBox.js";import{RadioBlock as xt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as St}from"./components/Radio/RadioBoolean.js";import{RadioList as Pt}from"./components/Radio/RadioList.js";import{RichTextEditor as It}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as yt}from"./components/Input/RoundInput.js";import{RoundNumberInput as vt}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Lt}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as bt}from"./components/Number/Score.js";import{ScoreCard as Nt}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as At}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Ht}from"./components/Badge/ScoreContainer.js";import{ScoreSelect as Rt}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Dt}from"./components/Number/ScoreValue.js";import{SearchBox as Gt}from"./components/Input/SearchBox.js";import{SectionBox as wt}from"./components/Box/SectionBox.js";import{SectionTabs as Ut}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as Mt}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Wt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as Et}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Vt}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as zt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Ot}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Qt}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as qt}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as Jt}from"./components/Text/TextArrowList.js";import{TextField as Kt}from"./components/Field/TextField.js";import{TextTitle as Xt}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as Yt}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as Zt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as $t}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as _t}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as or}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as tr}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as rr}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPopover as mr}from"./components/Form/UnitConverterPopover.js";import{ValueDisplay as sr}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as nr}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as er}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as pr}from"./components/Box/WarningBox.js";import{WaterfallChart as ir}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as cr}from"./components/Box/WhiteBox.js";import{WhiteGrid as ar}from"./components/Box/WhiteGrid.js";import{WhitePopover as fr}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as jr}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as lr,WinepilotThemeOptions as dr}from"./themes/themes/WinePilotTheme.js";import{allColors as Br,allMainColors as Cr,blueTheme as ur,coralTheme as hr,dataVisualizationColors as gr,extraColors as Fr,greenTheme as Tr,greyTheme as kr,orangeTheme as xr,redTheme as Sr,shadows as Pr,yellowTheme as Ir}from"./themes/common/colors.js";import{allTypographyVariants as yr,deprecatedVariants as vr,typographyConfig as Lr}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as br,checkboxToAny as Nr}from"./components/Checkbox/helperFunctions.js";import{barChart as Ar,breadcrumb as Hr,custom as Rr,deleteButton as Dr,doughnutCard as Gr,formField as wr,ingredientCard as Ur,mediaUpload as Mr,numberWithUnit as Wr,numbers as Er,scoreCard as Vr,scoreDetail as zr,scoreValue as Or,status as Qr,strokes as qr,tabs as Jr,tags as Kr,toggleSwitch as Xr,tooltip as Yr}from"./themes/common/custom.js";import{components as Zr}from"./themes/common/components.js";import{computeSize as $r,iconMapping as _r}from"./components/Icons/iconConfig.js";import{illustationsMapping as om}from"./components/Icons/illustrationsConfig.js";import{spacing as tm}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as rm}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as mm}from"./themes/responsive/useResponsivePadding.js";export{p as AccordionProduct,i 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 BreadcrumbItem,S as Breadcrumbs,P as BreakdownTable,n as Button,I as ButtonTabs,y as CardImage,v as CategoryBox,L as CheckboxBlock,b as CollectiveTheme,N as CollectiveThemeOptions,A as ComingSoonBadge,H as ComparisonArrow,R as ComparisonBlock,D as ComparisonLabel,G as ConfirmDialog,w as ContextualContentBox,U as CoordinatePopover,M as CountTabs,W as CustomRender,E as CustomToggleButton,z as CustomToggleButtonNodeTitle,Q as CustomTypography,q as CustomizedAxisTick,J as DefaultUserAction,K as DottedBox,X as DoughnutCard,Y as DoughnutChart,Z as DrawerAction,$ as EcoScoreCell,_ as EditHeader,oo as EllipsisItem,to as EmptyForm,ro as EvolutionChart,mo as FixedMultiValueFilter,so as FoodPilotTheme,no as FoodpilotThemeOptions,eo as FoodsBadge,po as FoodsCheckbox,io as FoodsDeleteButton,co as FoodsFormBase,ao as FoodsIcon,fo as FoodsIconButton,jo as FoodsIllustrations,lo as FoodsNavbar,Bo as FoodsPagination,Co as FoodsPaginationItem,uo as FoodsRadioList,ho as FoodsSearch,go as FoodsSelect,Fo as FoodsSelectServerPagination,To as FoodsTabs,xo as FoodsTags,So as FoodsTextInput,Po as FoodsThemeOptionsProvider,Io as FoodsThemeProvider,yo as FoodsToggleButton,vo as FoodsTooltip,Lo as FoodsTreeview,bo as FoodsUserTags,No as FormAccordion,Ao as FormBase,Ho as FormBaseContextProvider,Do as FormBox,Go as FormPropertyBox,wo as FormTopBar,Uo as FormUnit,Mo as GenericAccordion,Wo as GreyTextCell,Eo as HeaderNav,a as HeadlessPopover,qo as HelperBox,Jo as HeroBlock,Ko as HistogramComparisonChart,Xo as HorizontalGaugeChart,Yo as IconThread,Zo as IndicatorBlock,$o as InfoBox,_o as InfoHeaderWithIllustration,ot as InitHeader,tt as LeftComparisonPart,rt as LightIndicatorBlock,mt as LineGroupBox,st as LinearProgress,nt as LinkAction,et as ListHeader,pt as MRTGrid,it as MultiValueFilter,Vo as NavBarLink,zo as Navbar,ct as NumberField,at as NumberWithUnit,ft as OptionsPopover,jt as PageItem,lt as PageUpAndDownItem,dt as Pills,Bt as PointsCell,Ct as PolymorphicChart,ut as PolymorphicChartRenderer,ht as PrimaryCheckbox,gt as PrimaryDialog,Ft as Progress,Tt as ProgressCard,kt as QuoteBox,xt as RadioBlock,St as RadioBoolean,Pt as RadioList,It as RichTextEditor,yt as RoundInput,vt as RoundNumberInput,Lt as ScatterPlot,bt as Score,Nt as ScoreCard,At as ScoreCardHeader,Ht as ScoreContainer,Rt as ScoreSelect,Dt as ScoreValue,Gt as SearchBox,k as SecondaryTabs,wt as SectionBox,Ut as SectionTabs,Mt as SeeMoreCard,Wt as SelectBlock,Et as SelectionCard,Vt as SelectionCardGroup,zt as Separator,Ot as SolidGreyBox,Qt as SpecialTab,ko as SpecialTabs,Oo as SubMenu,qt as SuggestionBlock,V as TertiaryToggleButton,O as TertiaryToggleButtonNodeTitle,Jt as TextArrowList,Kt as TextField,Xt as TextTitle,Yt as TextTitleGreyIcon,Zt as Textarea,f as ThemedPopover,$t as ToggleSwitch,_t as TopLinkAction,or as TrajectoryCards,tr as TrajectoryChart,e as Typography,rr as TypographyList,mr as UnitConverterPopover,Qo as UserNav,sr as ValueDisplay,nr as ValueLabel,er as ValueSwitcher,pr as WarningBox,ir as WaterfallChart,cr as WhiteBox,ar as WhiteGrid,fr as WhitePopover,jr as WhitePopoverOnIcon,lr as WinePilotTheme,dr as WinepilotThemeOptions,Br as allColors,Cr as allMainColors,yr as allTypographyVariants,br as anyToCheckbox,Ar as barChart,ur as blueTheme,Hr as breadcrumb,Nr as checkboxToAny,Zr as components,$r as computeSize,hr as coralTheme,Rr as custom,gr as dataVisualizationColors,Dr as deleteButton,vr as deprecatedVariants,Gr as doughnutCard,Fr as extraColors,wr as formField,o as getThemeLogo,Tr as greenTheme,kr as greyTheme,_r as iconMapping,om as illustationsMapping,Ur as ingredientCard,t as isTheme,Mr as mediaUpload,Wr as numberWithUnit,Er as numbers,xr as orangeTheme,Sr as redTheme,Vr as scoreCard,zr as scoreDetail,Or as scoreValue,Pr as shadows,tm as spacing,Qr as status,qr as strokes,Jr as tabs,Kr as tags,r as themeLogos,m as themeOptions,s as themes,Xr as toggleSwitch,Yr as tooltip,Lr as typographyConfig,Ro as useFormBaseContext,rm as useResponsiveBreakpoints,mm as useResponsivePadding,Ir as yellowTheme};
|
|
@@ -44,6 +44,17 @@ export declare const scoreCard: {
|
|
|
44
44
|
readonly transition: "opacity 120ms ease-out";
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Shared Ingredient card surface stroke.
|
|
49
|
+
* Figma provenance: Product filled Ingredient card `13154:221702`.
|
|
50
|
+
*/
|
|
51
|
+
export declare const ingredientCard: {
|
|
52
|
+
readonly stroke: {
|
|
53
|
+
readonly color: "#E5E3E0";
|
|
54
|
+
readonly style: "solid";
|
|
55
|
+
readonly width: "1px";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
47
58
|
/**
|
|
48
59
|
* Shared Score value geometry.
|
|
49
60
|
* Figma provenance: Number empty state `13603:94567`, instantiated by
|
|
@@ -165,6 +176,58 @@ export declare const mediaUpload: {
|
|
|
165
176
|
readonly typographyVariant: "small-regular";
|
|
166
177
|
};
|
|
167
178
|
};
|
|
179
|
+
/**
|
|
180
|
+
* Figma provenance: Product information header thumbnail
|
|
181
|
+
* `13407:63114` / image `13407:63115`.
|
|
182
|
+
*/
|
|
183
|
+
readonly thumbnail: {
|
|
184
|
+
readonly size: 70;
|
|
185
|
+
readonly contentInset: "4px";
|
|
186
|
+
readonly stroke: {
|
|
187
|
+
readonly color: "#E0DEDD";
|
|
188
|
+
readonly style: "solid";
|
|
189
|
+
readonly width: "1px";
|
|
190
|
+
};
|
|
191
|
+
readonly boxShadow: "0px 2px 8px 0px #2A2B270A";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Shared read-only tag geometry.
|
|
196
|
+
* Figma provenance: Product information neutral tag `13314:83282` and
|
|
197
|
+
* custom-color tag `13314:83272`.
|
|
198
|
+
*/
|
|
199
|
+
export declare const tags: {
|
|
200
|
+
readonly display: {
|
|
201
|
+
readonly height: "26px";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Shared navigation-tab geometry.
|
|
206
|
+
* Figma provenance: Product Information primary tabs `13314:83199` and
|
|
207
|
+
* Product score-detail secondary tabs `13140:99648`.
|
|
208
|
+
*/
|
|
209
|
+
export declare const tabs: {
|
|
210
|
+
readonly primary: {
|
|
211
|
+
readonly height: "60px";
|
|
212
|
+
};
|
|
213
|
+
readonly secondary: {
|
|
214
|
+
readonly height: "60px";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Shared score-detail layout geometry.
|
|
219
|
+
* Figma provenance: Product score details lifecycle `13140:99648`,
|
|
220
|
+
* sub-scores `13140:100217`, impacts `13140:100596`, zero-impact bars
|
|
221
|
+
* `13162:67454`/`13162:67459`/`13162:67464`, and benefit bar `13162:67440`.
|
|
222
|
+
*/
|
|
223
|
+
export declare const scoreDetail: {
|
|
224
|
+
readonly summaryWidth: "250px";
|
|
225
|
+
readonly barWidth: "250px";
|
|
226
|
+
readonly lifecycleBreakdownWidth: "364px";
|
|
227
|
+
readonly subscoreBreakdownWidth: "346px";
|
|
228
|
+
readonly impactBreakdownWidth: "318px";
|
|
229
|
+
readonly impactZeroBreakdownWidth: "292px";
|
|
230
|
+
readonly impactBenefitBreakdownWidth: "551px";
|
|
168
231
|
};
|
|
169
232
|
/**
|
|
170
233
|
* Shared Toggle switch geometry and neutral state colors.
|
|
@@ -343,11 +406,15 @@ type CustomThemeKeys = {
|
|
|
343
406
|
strokes: typeof strokes;
|
|
344
407
|
status: typeof status;
|
|
345
408
|
scoreCard: typeof scoreCard;
|
|
409
|
+
ingredientCard: typeof ingredientCard;
|
|
346
410
|
scoreValue: typeof scoreValue;
|
|
347
411
|
numberWithUnit: typeof numberWithUnit;
|
|
348
412
|
formField: typeof formField;
|
|
349
413
|
barChart: typeof barChart;
|
|
350
414
|
mediaUpload: typeof mediaUpload;
|
|
415
|
+
tags: typeof tags;
|
|
416
|
+
tabs: typeof tabs;
|
|
417
|
+
scoreDetail: typeof scoreDetail;
|
|
351
418
|
toggleSwitch: typeof toggleSwitch;
|
|
352
419
|
deleteButton: typeof deleteButton;
|
|
353
420
|
breadcrumb: typeof breadcrumb;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"i18next";import{greyTheme as i,shadows as r,redTheme as o,allMainColors as t,allColors as a,extraColors as d,dataVisualizationColors as n,coralTheme as p,blueTheme as h,yellowTheme as x,orangeTheme as c,greenTheme as l}from"./colors.js";const s={containerDivider:{color:i[600],style:"solid",width:"1px"}},g={width:"300px"},u={green:{surface:"#F2FFF9"}},m={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},b={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},
|
|
1
|
+
import e from"i18next";import{greyTheme as i,shadows as r,redTheme as o,allMainColors as t,allColors as a,extraColors as d,dataVisualizationColors as n,coralTheme as p,blueTheme as h,yellowTheme as x,orangeTheme as c,greenTheme as l}from"./colors.js";const s={containerDivider:{color:i[600],style:"solid",width:"1px"}},g={width:"300px"},u={green:{surface:"#F2FFF9"}},m={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},b={stroke:{...s.containerDivider,color:"#E5E3E0"}},w={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},y={emptyIndicator:{micro:{size:"20px",iconSize:{width:11,height:11}},small:{size:"24px",iconSize:{width:13,height:13}},inter:{size:"30px",iconSize:{width:20,height:20}},big:{size:"38px",iconSize:{width:28,height:28}}},unitOffset:{compact:"-1px",regular:"-2px"}},k={compact:{width:"100px",optionWidth:"130px"}},z={zeroValueWidth:"1px"},v={borderRadius:"8px",loadingIndicatorSize:28,errorMaxWidth:"260px",default:{size:120,stroke:s.containerDivider,emptyCopy:{typographyVariant:"body-regular",lineHeight:1.3}},compact:{size:110,contentInset:"6px",stroke:{...s.containerDivider,style:"dashed"},boxShadow:r.grey,emptyCopy:{width:"76px",typographyVariant:"small-regular"}},thumbnail:{size:70,contentInset:"4px",stroke:s.containerDivider,boxShadow:r.grey}},S={display:{height:"26px"}},f={primary:{height:"60px"},secondary:{height:"60px"}},B={summaryWidth:"250px",barWidth:"250px",lifecycleBreakdownWidth:"364px",subscoreBreakdownWidth:"346px",impactBreakdownWidth:"318px",impactZeroBreakdownWidth:"292px",impactBenefitBreakdownWidth:"551px"},$={handleBorderRadius:"50%",legacyTrackBackground:"rgba(0,0,0,.25)",sizes:{default:{width:"52px",height:"28px",thumbSize:"20px",thumbInset:"4px",thumbTravel:"24px",trackBorderRadius:"16px"},medium:{width:"44px",height:"24px",thumbSize:"16px",thumbInset:"4px",thumbTravel:"20px",trackBorderRadius:"14px"},small:{width:"36px",height:"20px",thumbSize:"12px",thumbInset:"4px",thumbTravel:"16px",trackBorderRadius:"10px"}},status:{uncheckedColor:i[1400],uncheckedIconColor:i[2e3],handleBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 100%)`,iconSize:{width:14,height:14},trackBorderRadius:"20px"}},D={size:"40px",iconSize:{width:20,height:20},borderRadius:"44px",default:{background:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,borderColor:o[500],color:o[500]},hovered:{background:o[400],borderColor:o[500],color:i[100]},pressed:{background:o[600],borderColor:o[600],color:i[100]}},W=`inset 0 0 0 ${s.containerDivider.width} ${s.containerDivider.color}`,C={gap:"4px",separatorIconSize:{width:16,height:16},pageLink:{height:"26px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",maxWidth:"226px",stroke:{default:W,hover:`inset 0 0 0 ${s.containerDivider.width} ${i[2800]}`},collapsed:{width:"24px",height:"16px",paddingInline:"4px",borderRadius:"4px"}},overflowMenu:{offset:"4px",padding:"16px",gap:"8px",borderRadius:"12px",boxShadow:`${W}, ${r.popover}`}},R=`${s.containerDivider.width} ${s.containerDivider.style} ${i[500]}`,I=`${s.containerDivider.width} ${s.containerDivider.style} ${s.containerDivider.color}`,F={contentAlignment:"center",default:{maxCharacters:100,width:"202px",maxWidth:"unset",padding:"12px 16px 12px 16px",borderRadius:"0.5rem",border:R,backgroundColor:i[100],boxShadow:`0px 4px 20px 0px ${i[500]}`,color:i[2800],margin:"8px",typographyVariant:"body-medium",arrow:{color:i[100],border:R}},simple:{width:"300px",maxWidth:"300px",contentMinHeight:"53px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",border:I,backgroundColor:i[100],boxShadow:r.popover,color:i[2500],margin:"8px",typographyVariant:"body-medium",arrow:{width:"16px",height:"8px",color:i[100],border:I}}},E={grey:i,red:o,green:l,orange:c,yellow:x,blue:h,coral:p,shadows:r,dataviz:{colors:n,extra:d,colorsWithExtra:a,onlyMainFromAll:t},doughnutCard:g,strokes:s,status:u,scoreCard:m,ingredientCard:b,scoreValue:w,numberWithUnit:y,formField:k,barChart:z,mediaUpload:v,tags:S,tabs:f,scoreDetail:B,toggleSwitch:$,deleteButton:D,breadcrumb:C,tooltip:F,searchBox:{borderRadius:"24px",border:e=>"1px solid "+e.custom.grey[500],background:"white",boxShadow:e=>"0px 2px 8px 0px "+e.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},V={valueFormatterFn:(i,r=void 0)=>{const o=Number(i);return Number.isNaN(o)?"":r?o.toLocaleString(e.language,{maximumFractionDigits:r}):o.toLocaleString(e.language)}};export{z as barChart,C as breadcrumb,E as custom,D as deleteButton,g as doughnutCard,k as formField,b as ingredientCard,v as mediaUpload,y as numberWithUnit,V as numbers,m as scoreCard,B as scoreDetail,w as scoreValue,u as status,s as strokes,f as tabs,S as tags,$ as toggleSwitch,F as tooltip};
|