@foodpilot/foods 2.29.1 → 2.30.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 (61) hide show
  1. package/dist/assets/checkbox-check.svg.js +1 -0
  2. package/dist/assets/checkbox-minus.svg.js +1 -0
  3. package/dist/components/Cards/TrajectoryCards/styles/index.d.ts +3 -3
  4. package/dist/components/Checkbox/BaseCheckbox.d.ts +3 -1
  5. package/dist/components/Checkbox/BaseCheckbox.js +2 -2
  6. package/dist/components/Checkbox/FoodsCheckbox.d.ts +3 -1
  7. package/dist/components/Checkbox/FoodsCheckbox.js +2 -2
  8. package/dist/components/Checkbox/FoodsCheckboxControl.d.ts +2 -0
  9. package/dist/components/Checkbox/FoodsCheckboxControl.js +1 -0
  10. package/dist/components/Input/SearchBox.d.ts +2 -0
  11. package/dist/components/Input/SearchBox.js +3 -2
  12. package/dist/components/NumberInput/FoodsNumberInput.d.ts +18 -0
  13. package/dist/components/NumberInput/FoodsNumberInput.js +9 -0
  14. package/dist/components/NumberInput/index.d.ts +1 -0
  15. package/dist/components/NumberInput/index.js +1 -0
  16. package/dist/components/Radio/BaseRadio.d.ts +5 -6
  17. package/dist/components/Radio/BaseRadio.js +2 -4
  18. package/dist/components/Radio/FoodsRadioList.d.ts +3 -0
  19. package/dist/components/Radio/FoodsRadioList.js +2 -2
  20. package/dist/components/Radio/RadioBoolean.d.ts +2 -0
  21. package/dist/components/Radio/RadioBoolean.js +2 -2
  22. package/dist/components/RichTextEditor/components/ColorInput/style/index.d.ts +2 -2
  23. package/dist/components/RichTextEditor/components/Toolbar/style/index.d.ts +1 -1
  24. package/dist/components/Search/FoodsSearch.js +2 -2
  25. package/dist/components/Select/FoodsMultiSelect/FoodsMultiSelect.d.ts +40 -0
  26. package/dist/components/Select/FoodsMultiSelect/FoodsMultiSelect.js +20 -0
  27. package/dist/components/Select/FoodsMultiSelect/index.d.ts +1 -0
  28. package/dist/components/Select/FoodsMultiSelect/index.js +1 -0
  29. package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +4 -0
  30. package/dist/components/Select/FoodsSelect/Context/Provider.js +2 -2
  31. package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +1 -0
  32. package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +6 -1
  33. package/dist/components/Select/FoodsSelect/FoodsSelect.js +6 -6
  34. package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +2 -1
  35. package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.js +4 -4
  36. package/dist/components/Select/FoodsSelect/Options/SelectOptions.js +13 -10
  37. package/dist/components/Select/FoodsSelect/Select.d.ts +1 -0
  38. package/dist/components/Select/FoodsSelect/Select.js +4 -4
  39. package/dist/components/Select/FoodsSelect/index.d.ts +1 -0
  40. package/dist/components/Select/FoodsSelect/search.d.ts +2 -0
  41. package/dist/components/Select/FoodsSelect/search.js +1 -0
  42. package/dist/components/Select/index.d.ts +1 -0
  43. package/dist/components/Select/index.js +1 -1
  44. package/dist/components/UnitConverterPanel/UnitConverterPanel.js +10 -10
  45. package/dist/components/index.d.ts +1 -0
  46. package/dist/main.js +1 -1
  47. package/dist/node_modules/@csstools/color-helpers/dist/index.js +1 -0
  48. package/dist/themes/FoodsThemeProvider.d.ts +1 -1
  49. package/dist/themes/FoodsThemeProvider.js +2 -2
  50. package/dist/themes/common/colors.d.ts +1 -1
  51. package/dist/themes/common/components.js +1 -1
  52. package/dist/themes/common/custom.d.ts +42 -1
  53. package/dist/themes/common/custom.js +1 -1
  54. package/dist/themes/createFoodsTheme.d.ts +3 -0
  55. package/dist/themes/createFoodsTheme.js +1 -0
  56. package/dist/themes/index.js +1 -1
  57. package/dist/themes/themes/CollectiveTheme.js +1 -1
  58. package/dist/themes/themes/FoodPilotTheme.js +1 -1
  59. package/dist/themes/themes/WinePilotTheme.js +1 -1
  60. package/dist/themes/themes/index.d.ts +1 -0
  61. package/package.json +12 -3
@@ -1,5 +1,5 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useTheme as t,Button as r,Typography as s}from"@mui/material";import{useState as i,Fragment as l}from"react";import{FoodsIcon as c}from"../../Icons/FoodsIcon.js";import{useResponsiveBreakpoints as n}from"../../../themes/responsive/useResponsiveBreakpoints.js";import{AnchoredPopover as a}from"../../Popover/AnchoredPopover.js";import{SelectOptions as d}from"./Options/SelectOptions.js";import{useFoodsSelectContext as p}from"./Context/useSelect.js";const u=u=>{const{textOptions:m,disabled:g,closeOnSelect:h,setSearch:x,disableOnEmpty:b}=p(),f=t(),{isMobile:v}=n(),[y,k]=i(null),S=()=>k(null),w=null!==y,{selectedOption:O,infiniteScroll:C}=u,I=g||b&&0===u.options.length,T=Boolean(u.error&&!I),B=/* @__PURE__ */o(c,{icon:w?"arrowUpShort":"arrowDownShort",size:2}),P=((e,o,t,r,s)=>0===e.length?null!==t?r(t):o:null===t?s:r(t))(u.options,m.emptyOptionsText,O,u.getName,m.placeholder);/* @__PURE__ */
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useTheme as t,Button as r,Typography as s}from"@mui/material";import{useState as i,Fragment as l}from"react";import{FoodsIcon as c}from"../../Icons/FoodsIcon.js";import{useResponsiveBreakpoints as n}from"../../../themes/responsive/useResponsiveBreakpoints.js";import{AnchoredPopover as a}from"../../Popover/AnchoredPopover.js";import{SelectOptions as d}from"./Options/SelectOptions.js";import{useFoodsSelectContext as p}from"./Context/useSelect.js";const u=u=>{const{textOptions:m,closeOnSelect:g,search:h,setSearch:x,isSearching:b}=p(),f=t(),{isMobile:v}=n(),[S,k]=i(null),y=()=>k(null),w=null!==S,{selectedOption:C,infiniteScroll:I}=u,O=Boolean(u.error&&!u.disabled),T=/* @__PURE__ */o(c,{icon:w?"arrowUpShort":"arrowDownShort",size:2}),B=((e,o,t,r,s,i)=>0!==e.length||i?null===t?s:r(t):null!==t?r(t):o)(u.options,m.emptyOptionsText,C,u.getName,m.placeholder,b||""!==h);/* @__PURE__ */
2
2
  return e(l,{children:[
3
- /* @__PURE__ */e(r,{variant:"select",id:u.id,"aria-invalid":T||void 0,"aria-describedby":T?u.errorMessageId:void 0,"aria-expanded":w,"aria-haspopup":"listbox",onClick:e=>w?S():k(e.currentTarget),sx:{width:"100%",minWidth:0,height:v?f.custom.select.mobileHeight:f.custom.select.desktopHeight,display:"flex",alignItems:"center",justifyContent:"space-between",gap:f.spacing(1.5),padding:`0 ${f.spacing(1.5)} 0 ${f.spacing(2)}`,color:f.custom.grey[2800],border:`${w?2:1}px solid ${T?f.custom.select.errorBorder:w?f.custom.grey[2800]:f.custom.select.border}`,backgroundColor:w?f.custom.select.background:T?f.custom.select.errorBackground:f.custom.select.background,"&:hover":{backgroundColor:w?f.custom.select.background:T?f.custom.select.errorBackground:f.custom.select.hoverBackground},"&.Mui-disabled":{color:f.custom.select.disabledText,backgroundColor:f.custom.select.disabledBackground,borderColor:f.custom.select.border}},disabled:I,children:[u.getIcon&&O&&u.getIcon(O),
4
- /* @__PURE__ */o(s,{variant:"inherit",style:{fontSize:v?f.custom.select.mobileValueFontSize:f.custom.select.desktopValueFontSize,fontWeight:f.typography["body-regular"].fontWeight,lineHeight:f.typography["body-regular"].lineHeight},sx:{minWidth:0,flex:1,textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:I?f.custom.select.disabledText:null===O&&T&&!w?f.custom.select.errorPlaceholderText:null===O?f.custom.select.placeholderText:f.custom.select.selectedText},children:P}),B]}),
5
- /* @__PURE__ */o(a,{sx:{top:"5px"},paperProps:{width:"280px",maxHeight:"min(480px, calc(100% - 32px))",...C?{overflow:"hidden",display:"flex",flexDirection:"column"}:{},border:`1px solid ${f.custom.select.border}`,borderRadius:"12px",boxShadow:f.custom.shadows.popover,...u.BoxOptionsProps},variant:"headless",anchor:y,open:w,onClose:()=>{S(),x("")},anchorPosition:"rightside",children:/* @__PURE__ */o(d,{selectedOption:u.selectedOption,options:u.options,getId:u.getId,getName:u.getName,getIcon:u.getIcon,getGroupName:u.getGroupName,onChange:e=>{u.onChange(e),x(""),!0===h&&S()},infiniteScroll:C,onScroll:C?e=>{if(!0!==C?.hasNextPage||C.isFetchingNextPage)return;const o=e.currentTarget;o.scrollHeight-o.scrollTop-o.clientHeight<=32&&C.onLoadMore()}:void 0})})]})};export{u as Select};
3
+ /* @__PURE__ */e(r,{variant:"select",id:u.id,"aria-invalid":O||void 0,"aria-describedby":O?u.errorMessageId:void 0,"aria-expanded":w,"aria-haspopup":"dialog",onClick:e=>w?y():k(e.currentTarget),sx:{width:"100%",minWidth:0,height:v?f.custom.select.mobileHeight:f.custom.select.desktopHeight,display:"flex",alignItems:"center",justifyContent:"space-between",gap:f.spacing(1.5),padding:`0 ${f.spacing(1.5)} 0 ${f.spacing(2)}`,color:f.custom.grey[2800],border:`${w?2:1}px solid ${O?f.custom.select.errorBorder:w?f.custom.grey[2800]:f.custom.select.border}`,backgroundColor:w?f.custom.select.background:O?f.custom.select.errorBackground:f.custom.select.background,"&:hover":{backgroundColor:w?f.custom.select.background:O?f.custom.select.errorBackground:f.custom.select.hoverBackground},"&.Mui-disabled":{color:f.custom.select.disabledText,backgroundColor:f.custom.select.disabledBackground,borderColor:f.custom.select.border}},disabled:u.disabled,children:[u.getIcon&&C&&u.getIcon(C),
4
+ /* @__PURE__ */o(s,{variant:"inherit",style:{fontSize:v?f.custom.select.mobileValueFontSize:f.custom.select.desktopValueFontSize,fontWeight:f.typography["body-regular"].fontWeight,lineHeight:f.typography["body-regular"].lineHeight},sx:{minWidth:0,flex:1,textAlign:"left",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:u.disabled?f.custom.select.disabledText:null===C&&O&&!w?f.custom.select.errorPlaceholderText:null===C?f.custom.select.placeholderText:f.custom.select.selectedText},children:B}),T]}),
5
+ /* @__PURE__ */o(a,{sx:{top:"5px"},paperProps:{width:"280px",maxHeight:"min(480px, calc(100% - 32px))",...I?{overflow:"hidden",display:"flex",flexDirection:"column"}:{},border:`1px solid ${f.custom.select.border}`,borderRadius:"12px",boxShadow:f.custom.shadows.popover,...u.BoxOptionsProps},variant:"headless",anchor:S,open:w,onClose:()=>{y(),x("")},anchorPosition:"rightside",children:/* @__PURE__ */o(d,{selectedOption:u.selectedOption,options:u.options,getId:u.getId,getName:u.getName,getIcon:u.getIcon,getGroupName:u.getGroupName,onChange:e=>{u.onChange(e),x(""),!0===g&&y()},infiniteScroll:I,onScroll:I?e=>{if(b||!0!==I?.hasNextPage||I.isFetchingNextPage)return;const o=e.currentTarget;o.scrollHeight-o.scrollTop-o.clientHeight<=32&&I.onLoadMore()}:void 0})})]})};export{u as Select};
@@ -1 +1,2 @@
1
1
  export * from './FoodsSelect';
2
+ export * from './search';
@@ -0,0 +1,2 @@
1
+ /** Match an option name against a query without case or accent differences. */
2
+ export declare const matchesSelectSearch: (value: string, query: string) => boolean;
@@ -0,0 +1 @@
1
+ const e=e=>e.normalize("NFD").replace(new RegExp("\\p{M}","gu"),"").toLowerCase(),o=(o,n)=>e(o).includes(e(n));export{o as matchesSelectSearch};
@@ -1,2 +1,3 @@
1
1
  export * from './FoodsSelect';
2
+ export * from './FoodsMultiSelect';
2
3
  export * from './ScoreSelect';
@@ -1 +1 @@
1
- import{FoodsSelect as e,FoodsSelectServerPagination as o}from"./FoodsSelect/FoodsSelect.js";import{ScoreSelect as r}from"./ScoreSelect/ScoreSelect.js";export{e as FoodsSelect,o as FoodsSelectServerPagination,r as ScoreSelect};
1
+ import{FoodsMultiSelect as o,FoodsMultiSelectServerPagination as e}from"./FoodsMultiSelect/FoodsMultiSelect.js";import{FoodsSelect as t,FoodsSelectServerPagination as r}from"./FoodsSelect/FoodsSelect.js";import{ScoreSelect as c}from"./ScoreSelect/ScoreSelect.js";import{matchesSelectSearch as s}from"./FoodsSelect/search.js";export{o as FoodsMultiSelect,e as FoodsMultiSelectServerPagination,t as FoodsSelect,r as FoodsSelectServerPagination,c as ScoreSelect,s as matchesSelectSearch};
@@ -1,10 +1,10 @@
1
- import{jsx as e,jsxs as o,Fragment as r}from"react/jsx-runtime";import{useTheme as l,Button as i,Stack as n,Typography as a}from"@mui/material";import{useRef as t,useEffect as d}from"react";import{FoodsTextInput as s}from"../Form/FoodsFormFields/FoodsTextInput.js";import{useResponsiveBreakpoints as c}from"../../themes/responsive/useResponsiveBreakpoints.js";import{FoodsSelect as p}from"../Select/FoodsSelect/FoodsSelect.js";const u=u=>{const{id:m,title:g,options:h,selectedOptionId:b,onSelectedOptionIdChange:y,sourceValue:v,onSourceValueChange:x,result:P,applyLabel:f,applyDisabled:C,applying:k=!1,onApply:w,onCancel:S,labels:F}=u,O=l(),{isMobile:j}=c(),I=t(null);d(()=>{I.current?.focus()},[]);const R=h.find(e=>e.id===b)??null,D=!C&&!k,B=/* @__PURE__ */e(i,{variant:"primary",onClick:w,disabled:C,loading:k,loadingPosition:"start",children:f}),E=/* @__PURE__ */e(i,{variant:"secondary",onClick:S,disabled:k,children:F.cancel});/* @__PURE__ */
2
- return o(n,{id:m,role:"region","aria-label":g,gap:O.spacing(1.5),onKeyDown:e=>{"Escape"!==e.key||k||(e.stopPropagation(),S())},sx:{width:"100%",padding:O.spacing(2),backgroundColor:O.custom.grey[300],border:`1px solid ${O.custom.grey[600]}`,borderRadius:O.spacing(1)},children:[
3
- /* @__PURE__ */e(a,{variant:"body-semibold",children:g}),
4
- /* @__PURE__ */o(n,{direction:j?"column":"row",gap:O.spacing(1.5),children:[
5
- /* @__PURE__ */e(s,{value:v,onChange:x,disabled:k,ExtraInputProps:{inputRef:I,placeholder:F.valuePlaceholder,inputProps:{inputMode:"decimal","aria-label":F.valuePlaceholder},onKeyDown:e=>{"Enter"===e.key&&D&&(e.preventDefault(),w())}},StackProps:{sx:{width:j?"100%":"200px"}}}),
6
- /* @__PURE__ */e(p,{options:h,selectedOption:R,onChange:e=>{e&&y(e.id)},getId:e=>e.id,getName:e=>e.label,getGroupName:e=>e.groupName,disabled:k||0===h.length,disableSearch:!0,closeOnSelect:!0,textOptions:{placeholder:F.unitPlaceholder,searchPlaceholder:F.unitPlaceholder,emptyOptionsText:F.unitPlaceholder,noResult:F.unitPlaceholder},BoxProps:{width:j?"100%":"280px"}})]}),null===P?/* @__PURE__ */e(a,{variant:"small-regular",color:O.custom.grey[2e3],children:F.emptyHint}):/* @__PURE__ */o(n,{role:"status",gap:O.spacing(.5),sx:{padding:O.spacing(1.5,2),borderRadius:O.spacing(1),backgroundColor:P.error?O.custom.red[50]:O.custom.grey[100],border:P.error?`1px solid ${O.custom.red[500]}`:"none"},children:[
7
- /* @__PURE__ */e(a,{variant:"small-medium",color:O.custom.grey[2e3],children:P.title}),
8
- /* @__PURE__ */e(a,{variant:"big-bold",color:P.error?O.custom.red[500]:void 0,children:P.value}),
9
- /* @__PURE__ */e(a,{variant:"small-regular",color:P.error?O.custom.red[500]:O.custom.grey[2e3],children:P.detail})]}),
10
- /* @__PURE__ */e(n,{direction:j?"column":"row",gap:O.spacing(1),justifyContent:"flex-end",sx:j?{"& > .MuiButton-root":{width:"100%"}}:void 0,children:/* @__PURE__ */o(r,j?{children:[B,E]}:{children:[E,B]})})]})};export{u as UnitConverterPanel};
1
+ import{jsx as e,jsxs as o,Fragment as r}from"react/jsx-runtime";import{useTheme as l,Button as i,Stack as a,Typography as n}from"@mui/material";import{useRef as t,useEffect as d}from"react";import{FoodsTextInput as c}from"../Form/FoodsFormFields/FoodsTextInput.js";import{useResponsiveBreakpoints as s}from"../../themes/responsive/useResponsiveBreakpoints.js";import{FoodsSelect as p}from"../Select/FoodsSelect/FoodsSelect.js";const u=u=>{const{id:m,title:g,options:h,selectedOptionId:b,onSelectedOptionIdChange:y,sourceValue:v,onSourceValueChange:x,result:P,applyLabel:f,applyDisabled:C,applying:S=!1,onApply:k,onCancel:w,labels:F}=u,O=l(),{isMobile:j}=s(),I=t(null);d(()=>{I.current?.focus()},[]);const R=h.find(e=>e.id===b)??null,D=!C&&!S,B=/* @__PURE__ */e(i,{variant:"primary",onClick:k,disabled:C,loading:S,loadingPosition:"start",children:f}),E=/* @__PURE__ */e(i,{variant:"secondary",onClick:w,disabled:S,children:F.cancel});/* @__PURE__ */
2
+ return o(a,{id:m,role:"region","aria-label":g,gap:O.spacing(1.5),onKeyDown:e=>{"Escape"!==e.key||S||(e.stopPropagation(),w())},sx:{width:"100%",padding:O.spacing(2),backgroundColor:O.custom.grey[300],border:`1px solid ${O.custom.grey[600]}`,borderRadius:O.spacing(1)},children:[
3
+ /* @__PURE__ */e(n,{variant:"body-semibold",children:g}),
4
+ /* @__PURE__ */o(a,{direction:j?"column":"row",gap:O.spacing(1.5),children:[
5
+ /* @__PURE__ */e(c,{value:v,onChange:x,disabled:S,ExtraInputProps:{inputRef:I,placeholder:F.valuePlaceholder,inputProps:{inputMode:"decimal","aria-label":F.valuePlaceholder},onKeyDown:e=>{"Enter"===e.key&&D&&(e.preventDefault(),k())}},StackProps:{sx:{width:j?"100%":"200px"}}}),
6
+ /* @__PURE__ */e(p,{options:h,selectedOption:R,onChange:e=>{e&&y(e.id)},getId:e=>e.id,getName:e=>e.label,getGroupName:e=>e.groupName,disabled:S||0===h.length,disableSearch:!0,closeOnSelect:!0,textOptions:{placeholder:F.unitPlaceholder,searchPlaceholder:F.unitPlaceholder,clearSearchLabel:F.unitPlaceholder,emptyOptionsText:F.unitPlaceholder,noResult:F.unitPlaceholder},BoxProps:{width:j?"100%":"280px"}})]}),null===P?/* @__PURE__ */e(n,{variant:"small-regular",color:O.custom.grey[2e3],children:F.emptyHint}):/* @__PURE__ */o(a,{role:"status",gap:O.spacing(.5),sx:{padding:O.spacing(1.5,2),borderRadius:O.spacing(1),backgroundColor:P.error?O.custom.red[50]:O.custom.grey[100],border:P.error?`1px solid ${O.custom.red[500]}`:"none"},children:[
7
+ /* @__PURE__ */e(n,{variant:"small-medium",color:O.custom.grey[2e3],children:P.title}),
8
+ /* @__PURE__ */e(n,{variant:"big-bold",color:P.error?O.custom.red[500]:void 0,children:P.value}),
9
+ /* @__PURE__ */e(n,{variant:"small-regular",color:P.error?O.custom.red[500]:O.custom.grey[2e3],children:P.detail})]}),
10
+ /* @__PURE__ */e(a,{direction:j?"column":"row",gap:O.spacing(1),justifyContent:"flex-end",sx:j?{"& > .MuiButton-root":{width:"100%"}}:void 0,children:/* @__PURE__ */o(r,j?{children:[B,E]}:{children:[E,B]})})]})};export{u as UnitConverterPanel};
@@ -22,6 +22,7 @@ export * from './Layout';
22
22
  export * from './LinearProgress';
23
23
  export * from './Navigation';
24
24
  export * from './Number';
25
+ export * from './NumberInput';
25
26
  export * from './Pagination';
26
27
  export * from './Popover';
27
28
  export * from './Progress';
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- import{getThemeLogo as o,isTheme as r,themeLogos as t,themeOptions as m,themes as s}from"./themes/index.js";import{Button as n,Typography as e}from"@mui/material";import{AccordionProduct as i}from"./components/Accordion/ProductAccordion.js";import{ActionPlanIndicatorBreakdownPopover as p}from"./components/ActionPlan/ActionPlanIndicatorBreakdownPopover.js";import{ActionPlanNetImpactBody as c}from"./components/ActionPlan/ActionPlanNetImpactBody.js";import{AdditionalContentBox as a}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as f,HeadlessPopover as j,ThemedPopover as l}from"./components/Popover/AnchoredPopover.js";import{Article as d}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as B}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as C}from"./components/Badge/Badge.js";import{Banner as u}from"./components/Banner/Banner.js";import{BigPopoverLayout as h}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as g}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as F}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as T}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as k}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as P,SecondaryTabs as S}from"./components/Tabs/SecondaryTabs.js";import{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as v}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as I}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as y}from"./components/Tabs/ButtonTabs.js";import{CardImage as L}from"./components/CardImage.js";import{CategoryBox as b}from"./components/Box/CategoryBox.js";import{CheckboxBlock as N}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as A,CollectiveThemeOptions as H}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as D}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as R}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as G}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as w}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as U}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as M}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as W}from"./components/Popover/CoordinatePopover.js";import{CountTabs as E}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as V}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as O,TertiaryToggleButton as z}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as Q,TertiaryToggleButtonNodeTitle as q}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as J}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as K}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as X}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as Y}from"./components/Box/DottedBox.js";import{DoughnutCard as Z}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as $}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as _}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as oo}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as ro}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as to}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as mo}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as so}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as no}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as eo,FoodpilotThemeOptions as io}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as po}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as co}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as ao}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as fo}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as jo}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as lo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as Bo}from"./components/Icons/FoodsIllustrations.js";import{FoodsNavbar as Co}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsPagination as uo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as ho}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as go}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as Fo}from"./components/Search/FoodsSearch.js";import{FoodsSelect as To,FoodsSelectServerPagination as ko}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as Po,SpecialTabs as So}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as xo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as vo}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as Io,FoodsThemeProvider as yo}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as Lo}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as bo}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as No}from"./components/Treeview/Treeview.js";import{FoodsUserTags as Ao}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as Ho}from"./components/Accordion/FormAccordion.js";import{FormBase as Do}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Ro,useFormBaseContext as Go}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as wo}from"./components/Form/FormBox.js";import{FormPropertyBox as Uo}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Mo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Wo}from"./components/Form/FormUnit.js";import{GenericAccordion as Eo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Vo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as Oo,NavBarLink as zo,Navbar as Qo,SubMenu as qo,UserNav as Jo}from"./components/Navigation/Navbar.js";import{HelperBox as Ko}from"./components/Box/HelperBox.js";import{HeroBlock as Xo}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as Yo}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as Zo}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as $o}from"./components/Navigation/IconThread.js";import{IndicatorBlock as _o}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as or}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as rr}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as tr}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as mr}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as sr}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as nr}from"./components/Box/LineGroupBox.js";import{LinearProgress as er}from"./components/LinearProgress.js";import{LinkAction as ir}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as pr}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as cr}from"./components/Grid/MRTGrid.js";import{MRT_GRID_HUB_LAYOUT as ar}from"./components/Grid/mrtGridLayout.js";import{MultiValueFilter as fr}from"./components/Filter/MultiValueFilter.js";import{NumberField as jr}from"./components/Field/NumberField.js";import{NumberWithUnit as lr}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as dr}from"./components/Popover/OptionsPopover.js";import{PageItem as Br}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as Cr}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as ur}from"./components/Input/Pills/Pills.js";import{PointsCell as hr}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as gr}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as Fr}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as Tr}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as kr}from"./components/Dialog/PrimaryDialog.js";import{Progress as Pr}from"./components/Progress/Progress.js";import{ProgressCard as Sr}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as xr}from"./components/Box/QuoteBox.js";import{RadioBlock as vr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as Ir}from"./components/Radio/RadioBoolean.js";import{RadioList as yr}from"./components/Radio/RadioList.js";import{RichTextEditor as Lr}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as br}from"./components/Input/RoundInput.js";import{RoundNumberInput as Nr}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Ar}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as Hr}from"./components/Number/Score.js";import{ScoreCard as Dr}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Rr}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Gr}from"./components/Badge/ScoreContainer.js";import{ScoreDistribution as wr}from"./components/Chart/ScoreDistribution/ScoreDistribution.js";import{ScoreOverviewCard as Ur}from"./components/Cards/ScoreOverviewCard/ScoreOverviewCard.js";import{ScoreSelect as Mr}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Wr}from"./components/Number/ScoreValue.js";import{SearchBox as Er}from"./components/Input/SearchBox.js";import{SectionBox as Vr}from"./components/Box/SectionBox.js";import{SectionTabs as Or}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as zr}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Qr}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as qr}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Jr}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as Kr}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as Xr}from"./components/Box/SolidGreyBox.js";import{SpecialTab as Yr}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as Zr}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as $r}from"./components/Text/TextArrowList.js";import{TextField as _r}from"./components/Field/TextField.js";import{TextTitle as ot}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as rt}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as tt}from"./components/Textarea/Textarea.js";import{ToggleSwitch as mt}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as st}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as nt}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as et}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as it}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPanel as pt}from"./components/UnitConverterPanel/UnitConverterPanel.js";import{UnsavedChangesDialog as ct}from"./components/Dialog/UnsavedChangesDialog.js";import{ValueDisplay as at}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as ft}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as jt}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as lt}from"./components/Box/WarningBox.js";import{WaterfallChart as dt}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as Bt}from"./components/Box/WhiteBox.js";import{WhiteGrid as Ct}from"./components/Box/WhiteGrid.js";import{WhitePopover as ut}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as ht}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as gt,WinepilotThemeOptions as Ft}from"./themes/themes/WinePilotTheme.js";import{allColors as Tt,allMainColors as kt,blueTheme as Pt,coralTheme as St,dataVisualizationColors as xt,extraColors as vt,greenTheme as It,greyTheme as yt,orangeTheme as Lt,redTheme as bt,shadows as Nt,yellowTheme as At}from"./themes/common/colors.js";import{allTypographyVariants as Ht,deprecatedVariants as Dt,typographyConfig as Rt}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as Gt,checkboxToAny as wt}from"./components/Checkbox/helperFunctions.js";import{barChart as Ut,breadcrumb as Mt,countTabs as Wt,custom as Et,deleteButton as Vt,doughnutCard as Ot,focusRing as zt,formField as Qt,ingredientCard as qt,mediaUpload as Jt,numberWithUnit as Kt,numbers as Xt,scoreCard as Yt,scoreDetail as Zt,scoreOverviewCard as $t,scoreValue as _t,select as om,status as rm,strokes as tm,tabs as mm,tags as sm,textArea as nm,textInput as em,toggleSwitch as im,tooltip as pm}from"./themes/common/custom.js";import{components as cm}from"./themes/common/components.js";import{computeSize as am,iconMapping as fm}from"./components/Icons/iconConfig.js";import{focusRingStyles as jm}from"./themes/common/focusRing.js";import{illustationsMapping as lm}from"./components/Icons/illustrationsConfig.js";import{spacing as dm}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as Bm}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as Cm}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as ActionPlanIndicatorBreakdownPopover,c as ActionPlanNetImpactBody,a as AdditionalContentBox,f as AnchoredPopover,d as Article,B as ArticlesBox,C as Badge,u as Banner,h as BigPopoverLayout,g as BlockItemContainer,F as BlockItemInner,T as BlockListContainer,k as BottomSheetDialog,P as BoxStyled,x as BreadcrumbItem,v as Breadcrumbs,I as BreakdownTable,n as Button,y as ButtonTabs,L as CardImage,b as CategoryBox,N as CheckboxBlock,A as CollectiveTheme,H as CollectiveThemeOptions,D as ComingSoonBadge,R as ComparisonArrow,G as ComparisonBlock,w as ComparisonLabel,U as ConfirmDialog,M as ContextualContentBox,W as CoordinatePopover,E as CountTabs,V as CustomRender,O as CustomToggleButton,Q as CustomToggleButtonNodeTitle,J as CustomTypography,K as CustomizedAxisTick,X as DefaultUserAction,Y as DottedBox,Z as DoughnutCard,$ as DoughnutChart,_ as DrawerAction,oo as EcoScoreCell,ro as EditHeader,to as EllipsisItem,mo as EmptyForm,so as EvolutionChart,no as FixedMultiValueFilter,eo as FoodPilotTheme,io as FoodpilotThemeOptions,po as FoodsBadge,co as FoodsCheckbox,ao as FoodsDeleteButton,fo as FoodsFormBase,jo as FoodsIcon,lo as FoodsIconButton,Bo as FoodsIllustrations,Co as FoodsNavbar,uo as FoodsPagination,ho as FoodsPaginationItem,go as FoodsRadioList,Fo as FoodsSearch,To as FoodsSelect,ko as FoodsSelectServerPagination,Po as FoodsTabs,xo as FoodsTags,vo as FoodsTextInput,Io as FoodsThemeOptionsProvider,yo as FoodsThemeProvider,Lo as FoodsToggleButton,bo as FoodsTooltip,No as FoodsTreeview,Ao as FoodsUserTags,Ho as FormAccordion,Do as FormBase,Ro as FormBaseContextProvider,wo as FormBox,Uo as FormPropertyBox,Mo as FormTopBar,Wo as FormUnit,Eo as GenericAccordion,Vo as GreyTextCell,Oo as HeaderNav,j as HeadlessPopover,Ko as HelperBox,Xo as HeroBlock,Yo as HistogramComparisonChart,Zo as HorizontalGaugeChart,$o as IconThread,_o as IndicatorBlock,or as InfoBox,rr as InfoHeaderWithIllustration,tr as InitHeader,mr as LeftComparisonPart,sr as LightIndicatorBlock,nr as LineGroupBox,er as LinearProgress,ir as LinkAction,pr as ListHeader,cr as MRTGrid,ar as MRT_GRID_HUB_LAYOUT,fr as MultiValueFilter,zo as NavBarLink,Qo as Navbar,jr as NumberField,lr as NumberWithUnit,dr as OptionsPopover,Br as PageItem,Cr as PageUpAndDownItem,ur as Pills,hr as PointsCell,gr as PolymorphicChart,Fr as PolymorphicChartRenderer,Tr as PrimaryCheckbox,kr as PrimaryDialog,Pr as Progress,Sr as ProgressCard,xr as QuoteBox,vr as RadioBlock,Ir as RadioBoolean,yr as RadioList,Lr as RichTextEditor,br as RoundInput,Nr as RoundNumberInput,Ar as ScatterPlot,Hr as Score,Dr as ScoreCard,Rr as ScoreCardHeader,Gr as ScoreContainer,wr as ScoreDistribution,Ur as ScoreOverviewCard,Mr as ScoreSelect,Wr as ScoreValue,Er as SearchBox,S as SecondaryTabs,Vr as SectionBox,Or as SectionTabs,zr as SeeMoreCard,Qr as SelectBlock,qr as SelectionCard,Jr as SelectionCardGroup,Kr as Separator,Xr as SolidGreyBox,Yr as SpecialTab,So as SpecialTabs,qo as SubMenu,Zr as SuggestionBlock,z as TertiaryToggleButton,q as TertiaryToggleButtonNodeTitle,$r as TextArrowList,_r as TextField,ot as TextTitle,rt as TextTitleGreyIcon,tt as Textarea,l as ThemedPopover,mt as ToggleSwitch,st as TopLinkAction,nt as TrajectoryCards,et as TrajectoryChart,e as Typography,it as TypographyList,pt as UnitConverterPanel,ct as UnsavedChangesDialog,Jo as UserNav,at as ValueDisplay,ft as ValueLabel,jt as ValueSwitcher,lt as WarningBox,dt as WaterfallChart,Bt as WhiteBox,Ct as WhiteGrid,ut as WhitePopover,ht as WhitePopoverOnIcon,gt as WinePilotTheme,Ft as WinepilotThemeOptions,Tt as allColors,kt as allMainColors,Ht as allTypographyVariants,Gt as anyToCheckbox,Ut as barChart,Pt as blueTheme,Mt as breadcrumb,wt as checkboxToAny,cm as components,am as computeSize,St as coralTheme,Wt as countTabs,Et as custom,xt as dataVisualizationColors,Vt as deleteButton,Dt as deprecatedVariants,Ot as doughnutCard,vt as extraColors,zt as focusRing,jm as focusRingStyles,Qt as formField,o as getThemeLogo,It as greenTheme,yt as greyTheme,fm as iconMapping,lm as illustationsMapping,qt as ingredientCard,r as isTheme,Jt as mediaUpload,Kt as numberWithUnit,Xt as numbers,Lt as orangeTheme,bt as redTheme,Yt as scoreCard,Zt as scoreDetail,$t as scoreOverviewCard,_t as scoreValue,om as select,Nt as shadows,dm as spacing,rm as status,tm as strokes,mm as tabs,sm as tags,nm as textArea,em as textInput,t as themeLogos,m as themeOptions,s as themes,im as toggleSwitch,pm as tooltip,Rt as typographyConfig,Go as useFormBaseContext,Bm as useResponsiveBreakpoints,Cm as useResponsivePadding,At as yellowTheme};
1
+ 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{ActionPlanIndicatorBreakdownPopover as p}from"./components/ActionPlan/ActionPlanIndicatorBreakdownPopover.js";import{ActionPlanNetImpactBody as c}from"./components/ActionPlan/ActionPlanNetImpactBody.js";import{AdditionalContentBox as a}from"./components/Box/AdditionalContentBox.js";import{AnchoredPopover as f,HeadlessPopover as j,ThemedPopover as l}from"./components/Popover/AnchoredPopover.js";import{Article as d}from"./components/CMS/ArticleBlock/Article.js";import{ArticlesBox as B}from"./components/CMS/ArticleBlock/ArticlesBox.js";import{Badge as C}from"./components/Badge/Badge.js";import{Banner as u}from"./components/Banner/Banner.js";import{BigPopoverLayout as h}from"./components/Popover/BigPopoverLayout.js";import{BlockItemContainer as g}from"./components/Layout/BlockList/Blocks/Container/BlockItemContainer.js";import{BlockItemInner as F}from"./components/Layout/BlockList/Blocks/Container/BlockItemInner.js";import{BlockListContainer as T}from"./components/Layout/BlockList/BlockListContainer.js";import{BottomSheetDialog as S}from"./components/Dialog/BottomSheetDialog.js";import{BoxStyled as k,SecondaryTabs as P}from"./components/Tabs/SecondaryTabs.js";import{BreadcrumbItem as x}from"./components/Navigation/Breadcrumbs/BreadcrumbItem.js";import{Breadcrumbs as I}from"./components/Navigation/Breadcrumbs/Breadcrumbs.js";import{BreakdownTable as v}from"./components/Chart/BreakdownTable/BreakdownTable.js";import{ButtonTabs as y}from"./components/Tabs/ButtonTabs.js";import{CardImage as L}from"./components/CardImage.js";import{CategoryBox as b}from"./components/Box/CategoryBox.js";import{CheckboxBlock as N}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.js";import{CollectiveTheme as A,CollectiveThemeOptions as H}from"./themes/themes/CollectiveTheme.js";import{ComingSoonBadge as D}from"./components/Badge/ComingSoonBadge.js";import{ComparisonArrow as R}from"./components/ComparisonBlock/ComparisonArrow.js";import{ComparisonBlock as G}from"./components/ComparisonBlock/ComparisonBlock.js";import{ComparisonLabel as w}from"./components/Chart/HistogramComparisonChart/ComparisonLabel.js";import{ConfirmDialog as U}from"./components/Form/FoodsFormBase/ConfirmDialog.js";import{ContextualContentBox as M}from"./components/Box/ContextualContentBox.js";import{CoordinatePopover as W}from"./components/Popover/CoordinatePopover.js";import{CountTabs as E}from"./components/Tabs/CountTabs/CountTabs.js";import{CustomRender as V}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/CustomRender.js";import{CustomToggleButton as O,TertiaryToggleButton as z}from"./components/Button/TertiaryToggleButton.js";import{CustomToggleButtonNodeTitle as Q,TertiaryToggleButtonNodeTitle as q}from"./components/Button/TertiaryToggleButtonNodeTitle.js";import{CustomTypography as J}from"./components/CustomTypography/CustomTypography.js";import{CustomizedAxisTick as K}from"./components/Chart/HistogramComparisonChart/CustomizedAxisTick.js";import{DefaultUserAction as X}from"./components/Navigation/FoodsNavBar/Plugin/DefaultUserAction.js";import{DottedBox as Y}from"./components/Box/DottedBox.js";import{DoughnutCard as Z}from"./components/Cards/DoughnutCard/DoughnutCard.js";import{DoughnutChart as $}from"./components/Chart/DoughnutChart/DoughnutChart.js";import{DrawerAction as _}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.js";import{EcoScoreCell as oo}from"./components/Grid/Cell/EcoScoreCell.js";import{EditHeader as to}from"./components/Layout/BlockList/Headers/EditHeader.js";import{EllipsisItem as ro}from"./components/Pagination/PageItems/EllipsisItem.js";import{EmptyForm as mo}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.js";import{EvolutionChart as so}from"./components/Chart/EvolutionChart/EvolutionChart.js";import{FixedMultiValueFilter as no}from"./components/Filter/FixedMultiValueFilter.js";import{FoodPilotTheme as eo,FoodpilotThemeOptions as io}from"./themes/themes/FoodPilotTheme.js";import{FoodsBadge as po}from"./components/Badge/FoodsBadge.js";import{FoodsCheckbox as co}from"./components/Checkbox/FoodsCheckbox.js";import{FoodsDeleteButton as ao}from"./components/Button/FoodsDeleteButton.js";import{FoodsFormBase as fo}from"./components/Form/FoodsFormBase/FoodsFormBase.js";import{FoodsIcon as jo}from"./components/Icons/FoodsIcon.js";import{FoodsIconButton as lo}from"./components/Button/FoodsIconButton.js";import{FoodsIllustrations as Bo}from"./components/Icons/FoodsIllustrations.js";import{FoodsMultiSelect as Co,FoodsMultiSelectServerPagination as uo}from"./components/Select/FoodsMultiSelect/FoodsMultiSelect.js";import{FoodsNavbar as ho}from"./components/Navigation/FoodsNavBar/FoodsNavbar.js";import{FoodsNumberInput as go}from"./components/NumberInput/FoodsNumberInput.js";import{FoodsPagination as Fo}from"./components/Pagination/FoodsPagination.js";import{FoodsPaginationItem as To}from"./components/Pagination/FoodsPaginationItem.js";import{FoodsRadioList as So}from"./components/Radio/FoodsRadioList.js";import{FoodsSearch as ko}from"./components/Search/FoodsSearch.js";import{FoodsSelect as Po,FoodsSelectServerPagination as xo}from"./components/Select/FoodsSelect/FoodsSelect.js";import{FoodsTabs as Io,SpecialTabs as vo}from"./components/Tabs/FoodsTabs/FoodsTabs.js";import{FoodsTags as yo}from"./components/Tags/FoodsTags.js";import{FoodsTextInput as Lo}from"./components/Form/FoodsFormFields/FoodsTextInput.js";import{FoodsThemeOptionsProvider as bo,FoodsThemeProvider as No}from"./themes/FoodsThemeProvider.js";import{FoodsToggleButton as Ao}from"./components/Button/FoodsToggleButton.js";import{FoodsTooltip as Ho}from"./components/Tooltip/FoodsTooltip.js";import{FoodsTreeview as Do}from"./components/Treeview/Treeview.js";import{FoodsUserTags as Ro}from"./components/Tags/FoodsUserTags.js";import{FormAccordion as Go}from"./components/Accordion/FormAccordion.js";import{FormBase as wo}from"./components/Form/FormBase.js";import{FormBaseContextProvider as Uo,useFormBaseContext as Mo}from"./components/Form/FoodsFormBase/FormBaseContext.js";import{FormBox as Wo}from"./components/Form/FormBox.js";import{FormPropertyBox as Eo}from"./components/Form/FormPropertyBox.js";import{FormTopBar as Vo}from"./components/Form/FoodsFormBase/FormTopBar/FormTopBar.js";import{FormUnit as Oo}from"./components/Form/FormUnit.js";import{GenericAccordion as zo}from"./components/Accordion/GenericAccordion.js";import{GreyTextCell as Qo}from"./components/Grid/Cell/GreyCell.js";import{HeaderNav as qo,NavBarLink as Jo,Navbar as Ko,SubMenu as Xo,UserNav as Yo}from"./components/Navigation/Navbar.js";import{HelperBox as Zo}from"./components/Box/HelperBox.js";import{HeroBlock as $o}from"./components/CMS/HeroBlock/HeroBlock.js";import{HistogramComparisonChart as _o}from"./components/Chart/HistogramComparisonChart/HistogramComparisonChart.js";import{HorizontalGaugeChart as ot}from"./components/Chart/HorizontalGauge/HorizontalGaugeChart.js";import{IconThread as tt}from"./components/Navigation/IconThread.js";import{IndicatorBlock as rt}from"./components/CMS/IndicatorBlock/IndicatorBlock.js";import{InfoBox as mt}from"./components/Box/InfoBox.js";import{InfoHeaderWithIllustration as st}from"./components/Layout/InfoHeaderWithIllustration.js";import{InitHeader as nt}from"./components/Layout/BlockList/Headers/InitHeader.js";import{LeftComparisonPart as et}from"./components/Layout/BlockList/Blocks/Common/LeftComparisonPart.js";import{LightIndicatorBlock as it}from"./components/CMS/IndicatorBlock/LightIndicatorBlock.js";import{LineGroupBox as pt}from"./components/Box/LineGroupBox.js";import{LinearProgress as ct}from"./components/LinearProgress.js";import{LinkAction as at}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.js";import{ListHeader as ft}from"./components/Layout/BlockList/Headers/ListHeader.js";import{MRTGrid as jt}from"./components/Grid/MRTGrid.js";import{MRT_GRID_HUB_LAYOUT as lt}from"./components/Grid/mrtGridLayout.js";import{MultiValueFilter as dt}from"./components/Filter/MultiValueFilter.js";import{NumberField as Bt}from"./components/Field/NumberField.js";import{NumberWithUnit as Ct}from"./components/Number/NumberWithUnit.js";import{OptionsPopover as ut}from"./components/Popover/OptionsPopover.js";import{PageItem as ht}from"./components/Pagination/PageItems/PageItem.js";import{PageUpAndDownItem as gt}from"./components/Pagination/PageItems/PageUpAndDownItem.js";import{FoodsPills as Ft}from"./components/Input/Pills/Pills.js";import{PointsCell as Tt}from"./components/Grid/Cell/PointsCell.js";import{PolymorphicChart as St}from"./components/Chart/PolymorphicChart/PolymorphicChart.js";import{PolymorphicChartRenderer as kt}from"./components/Chart/PolymorphicChart/PolymorphicChartRenderer.js";import{PrimaryCheckbox as Pt}from"./components/Checkbox/PrimaryCheckbox.js";import{PrimaryDialog as xt}from"./components/Dialog/PrimaryDialog.js";import{Progress as It}from"./components/Progress/Progress.js";import{ProgressCard as vt}from"./components/ProgressCard/ProgressCard.js";import{QuoteBox as yt}from"./components/Box/QuoteBox.js";import{RadioBlock as Lt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.js";import{RadioBoolean as bt}from"./components/Radio/RadioBoolean.js";import{RadioList as Nt}from"./components/Radio/RadioList.js";import{RichTextEditor as At}from"./components/RichTextEditor/RichTextEditor.js";import{RoundInput as Ht}from"./components/Input/RoundInput.js";import{RoundNumberInput as Dt}from"./components/Input/RoundNumberInput.js";import{ScatterPlot as Rt}from"./components/Chart/ScatterPlot/ScatterPlot.js";import{Score as Gt}from"./components/Number/Score.js";import{ScoreCard as wt}from"./components/Cards/ScoreCard/ScoreCard.js";import{ScoreCardHeader as Ut}from"./components/Cards/ScoreCard/Header/ScoreCardHeader.js";import{ScoreContainer as Mt}from"./components/Badge/ScoreContainer.js";import{ScoreDistribution as Wt}from"./components/Chart/ScoreDistribution/ScoreDistribution.js";import{ScoreOverviewCard as Et}from"./components/Cards/ScoreOverviewCard/ScoreOverviewCard.js";import{ScoreSelect as Vt}from"./components/Select/ScoreSelect/ScoreSelect.js";import{ScoreValue as Ot}from"./components/Number/ScoreValue.js";import{SearchBox as zt}from"./components/Input/SearchBox.js";import{SectionBox as Qt}from"./components/Box/SectionBox.js";import{SectionTabs as qt}from"./components/Tabs/SectionTabs/SectionTabs.js";import{SeeMoreCard as Jt}from"./components/Cards/SeeMoreCard/SeeMoreCard.js";import{SelectBlock as Kt}from"./components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.js";import{SelectionCard as Xt}from"./components/Cards/SelectionCard/SelectionCard.js";import{SelectionCardGroup as Yt}from"./components/Cards/SelectionCard/SelectionCardGroup.js";import{Separator as Zt}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/Separator.js";import{SolidGreyBox as $t}from"./components/Box/SolidGreyBox.js";import{SpecialTab as _t}from"./components/Tabs/FoodsTabs/FoodsTabTemplate.js";import{SuggestionBlock as or}from"./components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.js";import{TextArrowList as tr}from"./components/Text/TextArrowList.js";import{TextField as rr}from"./components/Field/TextField.js";import{TextTitle as mr}from"./components/Text/TextTitle.js";import{TextTitleGreyIcon as sr}from"./components/Text/TextTitleGreyIcon.js";import{Textarea as nr}from"./components/Textarea/Textarea.js";import{ToggleSwitch as er}from"./components/ToggleSwitch/ToggleSwitch.js";import{TopLinkAction as ir}from"./components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.js";import{TrajectoryCards as pr}from"./components/Cards/TrajectoryCards/TrajectoryCards.js";import{TrajectoryChart as cr}from"./components/Chart/TrajectoryChart/TrajectoryChart.js";import{TypographyList as ar}from"./components/CustomTypography/TypographyList.js";import{UnitConverterPanel as fr}from"./components/UnitConverterPanel/UnitConverterPanel.js";import{UnsavedChangesDialog as jr}from"./components/Dialog/UnsavedChangesDialog.js";import{ValueDisplay as lr}from"./components/Layout/BlockList/Blocks/Common/ValueDisplay.js";import{ValueLabel as dr}from"./components/Chart/HistogramComparisonChart/ValueLabel.js";import{ValueSwitcher as Br}from"./components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.js";import{WarningBox as Cr}from"./components/Box/WarningBox.js";import{WaterfallChart as ur}from"./components/Chart/WaterfallChart/WaterfallChart.js";import{WhiteBox as hr}from"./components/Box/WhiteBox.js";import{WhiteGrid as gr}from"./components/Box/WhiteGrid.js";import{WhitePopover as Fr}from"./components/Popover/WhitePopover.js";import{WhitePopoverOnIcon as Tr}from"./components/Popover/WhitePopoverOnIcon.js";import{WinePilotTheme as Sr,WinepilotThemeOptions as kr}from"./themes/themes/WinePilotTheme.js";import{allColors as Pr,allMainColors as xr,blueTheme as Ir,coralTheme as vr,dataVisualizationColors as yr,extraColors as Lr,greenTheme as br,greyTheme as Nr,orangeTheme as Ar,redTheme as Hr,shadows as Dr,yellowTheme as Rr}from"./themes/common/colors.js";import{allTypographyVariants as Gr,deprecatedVariants as wr,typographyConfig as Ur}from"./themes/common/MUIComponents/typography.js";import{anyToCheckbox as Mr,checkboxToAny as Wr}from"./components/Checkbox/helperFunctions.js";import{barChart as Er,breadcrumb as Vr,checkbox as Or,countTabs as zr,custom as Qr,deleteButton as qr,doughnutCard as Jr,focusRing as Kr,formField as Xr,ingredientCard as Yr,mediaUpload as Zr,multiSelect as $r,numberInput as _r,numberWithUnit as om,numbers as tm,scoreCard as rm,scoreDetail as mm,scoreOverviewCard as sm,scoreValue as nm,select as em,status as im,strokes as pm,tabs as cm,tags as am,textArea as fm,textInput as jm,toggleSwitch as lm,tooltip as dm}from"./themes/common/custom.js";import{components as Bm}from"./themes/common/components.js";import{computeSize as Cm,iconMapping as um}from"./components/Icons/iconConfig.js";import{createFoodsTheme as hm}from"./themes/createFoodsTheme.js";import{focusRingStyles as gm}from"./themes/common/focusRing.js";import{illustationsMapping as Fm}from"./components/Icons/illustrationsConfig.js";import{matchesSelectSearch as Tm}from"./components/Select/FoodsSelect/search.js";import{spacing as Sm}from"./themes/common/spacing.js";import{useResponsiveBreakpoints as km}from"./themes/responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as Pm}from"./themes/responsive/useResponsivePadding.js";export{i as AccordionProduct,p as ActionPlanIndicatorBreakdownPopover,c as ActionPlanNetImpactBody,a as AdditionalContentBox,f as AnchoredPopover,d as Article,B as ArticlesBox,C as Badge,u as Banner,h as BigPopoverLayout,g as BlockItemContainer,F as BlockItemInner,T as BlockListContainer,S as BottomSheetDialog,k as BoxStyled,x as BreadcrumbItem,I as Breadcrumbs,v as BreakdownTable,n as Button,y as ButtonTabs,L as CardImage,b as CategoryBox,N as CheckboxBlock,A as CollectiveTheme,H as CollectiveThemeOptions,D as ComingSoonBadge,R as ComparisonArrow,G as ComparisonBlock,w as ComparisonLabel,U as ConfirmDialog,M as ContextualContentBox,W as CoordinatePopover,E as CountTabs,V as CustomRender,O as CustomToggleButton,Q as CustomToggleButtonNodeTitle,J as CustomTypography,K as CustomizedAxisTick,X as DefaultUserAction,Y as DottedBox,Z as DoughnutCard,$ as DoughnutChart,_ as DrawerAction,oo as EcoScoreCell,to as EditHeader,ro as EllipsisItem,mo as EmptyForm,so as EvolutionChart,no as FixedMultiValueFilter,eo as FoodPilotTheme,io as FoodpilotThemeOptions,po as FoodsBadge,co as FoodsCheckbox,ao as FoodsDeleteButton,fo as FoodsFormBase,jo as FoodsIcon,lo as FoodsIconButton,Bo as FoodsIllustrations,Co as FoodsMultiSelect,uo as FoodsMultiSelectServerPagination,ho as FoodsNavbar,go as FoodsNumberInput,Fo as FoodsPagination,To as FoodsPaginationItem,So as FoodsRadioList,ko as FoodsSearch,Po as FoodsSelect,xo as FoodsSelectServerPagination,Io as FoodsTabs,yo as FoodsTags,Lo as FoodsTextInput,bo as FoodsThemeOptionsProvider,No as FoodsThemeProvider,Ao as FoodsToggleButton,Ho as FoodsTooltip,Do as FoodsTreeview,Ro as FoodsUserTags,Go as FormAccordion,wo as FormBase,Uo as FormBaseContextProvider,Wo as FormBox,Eo as FormPropertyBox,Vo as FormTopBar,Oo as FormUnit,zo as GenericAccordion,Qo as GreyTextCell,qo as HeaderNav,j as HeadlessPopover,Zo as HelperBox,$o as HeroBlock,_o as HistogramComparisonChart,ot as HorizontalGaugeChart,tt as IconThread,rt as IndicatorBlock,mt as InfoBox,st as InfoHeaderWithIllustration,nt as InitHeader,et as LeftComparisonPart,it as LightIndicatorBlock,pt as LineGroupBox,ct as LinearProgress,at as LinkAction,ft as ListHeader,jt as MRTGrid,lt as MRT_GRID_HUB_LAYOUT,dt as MultiValueFilter,Jo as NavBarLink,Ko as Navbar,Bt as NumberField,Ct as NumberWithUnit,ut as OptionsPopover,ht as PageItem,gt as PageUpAndDownItem,Ft as Pills,Tt as PointsCell,St as PolymorphicChart,kt as PolymorphicChartRenderer,Pt as PrimaryCheckbox,xt as PrimaryDialog,It as Progress,vt as ProgressCard,yt as QuoteBox,Lt as RadioBlock,bt as RadioBoolean,Nt as RadioList,At as RichTextEditor,Ht as RoundInput,Dt as RoundNumberInput,Rt as ScatterPlot,Gt as Score,wt as ScoreCard,Ut as ScoreCardHeader,Mt as ScoreContainer,Wt as ScoreDistribution,Et as ScoreOverviewCard,Vt as ScoreSelect,Ot as ScoreValue,zt as SearchBox,P as SecondaryTabs,Qt as SectionBox,qt as SectionTabs,Jt as SeeMoreCard,Kt as SelectBlock,Xt as SelectionCard,Yt as SelectionCardGroup,Zt as Separator,$t as SolidGreyBox,_t as SpecialTab,vo as SpecialTabs,Xo as SubMenu,or as SuggestionBlock,z as TertiaryToggleButton,q as TertiaryToggleButtonNodeTitle,tr as TextArrowList,rr as TextField,mr as TextTitle,sr as TextTitleGreyIcon,nr as Textarea,l as ThemedPopover,er as ToggleSwitch,ir as TopLinkAction,pr as TrajectoryCards,cr as TrajectoryChart,e as Typography,ar as TypographyList,fr as UnitConverterPanel,jr as UnsavedChangesDialog,Yo as UserNav,lr as ValueDisplay,dr as ValueLabel,Br as ValueSwitcher,Cr as WarningBox,ur as WaterfallChart,hr as WhiteBox,gr as WhiteGrid,Fr as WhitePopover,Tr as WhitePopoverOnIcon,Sr as WinePilotTheme,kr as WinepilotThemeOptions,Pr as allColors,xr as allMainColors,Gr as allTypographyVariants,Mr as anyToCheckbox,Er as barChart,Ir as blueTheme,Vr as breadcrumb,Or as checkbox,Wr as checkboxToAny,Bm as components,Cm as computeSize,vr as coralTheme,zr as countTabs,hm as createFoodsTheme,Qr as custom,yr as dataVisualizationColors,qr as deleteButton,wr as deprecatedVariants,Jr as doughnutCard,Lr as extraColors,Kr as focusRing,gm as focusRingStyles,Xr as formField,o as getThemeLogo,br as greenTheme,Nr as greyTheme,um as iconMapping,Fm as illustationsMapping,Yr as ingredientCard,t as isTheme,Tm as matchesSelectSearch,Zr as mediaUpload,$r as multiSelect,_r as numberInput,om as numberWithUnit,tm as numbers,Ar as orangeTheme,Hr as redTheme,rm as scoreCard,mm as scoreDetail,sm as scoreOverviewCard,nm as scoreValue,em as select,Dr as shadows,Sm as spacing,im as status,pm as strokes,cm as tabs,am as tags,fm as textArea,jm as textInput,r as themeLogos,m as themeOptions,s as themes,lm as toggleSwitch,dm as tooltip,Ur as typographyConfig,Mo as useFormBaseContext,km as useResponsiveBreakpoints,Pm as useResponsivePadding,Rr as yellowTheme};
@@ -0,0 +1 @@
1
+ function n(n,t){return[n[0]*t[0]+n[1]*t[1]+n[2]*t[2],n[3]*t[0]+n[4]*t[1]+n[5]*t[2],n[6]*t[0]+n[7]*t[1]+n[8]*t[2]]}const t=[.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],r=[12831/3959,-329/214,-1974/3959,-851781/878810,1648619/878810,36519/878810,705/12673,-2585/12673,705/667];function u(t){return n(r,t)}function o(n){return[c(n[0]),c(n[1]),c(n[2])]}function c(n){const t=n<0?-1:1,r=Math.abs(n);return r>.0031308?t*(1.055*Math.pow(r,1/2.4)-.055):12.92*n}function e(n){const t=n<0?-1:1,r=Math.abs(n);return t*Math.pow(r,2.4)}const f=[63426534/99577255,20160776/139408157,47086771/278816314,26158966/99577255,.677998071518871,8267143/139408157,0,19567812/697040785,1.0609850577107909];function i(n){return[a(n[0]),a(n[1]),a(n[2])]}function a(n){const t=n<0?-1:1,r=Math.abs(n);return r<=.04045?n/12.92:t*Math.pow((r+.055)/1.055,2.4)}function s(n){return i(n)}const h=[608311/1250200,189793/714400,198249/1000160,35783/156275,247089/357200,198249/2500400,0,32229/714400,5220557/5000800];function M(t){return n(h,t)}function p(n){const t=n<0?-1:1,r=Math.abs(n);return r<=.03125?n/16:t*Math.pow(r,1.8)}const b=[.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602];function l(n){const t=n<0?-1:1,r=Math.abs(n);return t*Math.pow(r,563/256)}const w=[573536/994567,263643/1420810,187206/994567,591459/1989134,6239551/9945670,374412/4972835,53769/1989134,351524/4972835,4929758/4972835];function x(n){let t=n;return t=u(t),t=o(t),t}function d(t){let r=t;return r=function(n){return[l(n[0]),l(n[1]),l(n[2])]}(r),r=function(t){return n(w,t)}(r),r}function g(n){let t=n;return t=s(t),t=M(t),t}function j(t){let r=t;return r=function(n){return[e(n[0]),e(n[1]),e(n[2])]}(r),r=function(t){return n(f,t)}(r),r}function k(r){let u=r;return u=function(n){return[p(n[0]),p(n[1]),p(n[2])]}(u),u=function(t){return n(b,t)}(u),u=function(r){return n(t,r)}(u),u}export{g as P3_to_XYZ_D65,k as ProPhoto_RGB_to_XYZ_D65,x as XYZ_D65_to_sRGB,u as XYZ_to_lin_sRGB,d as a98_RGB_to_XYZ_D65,o as gam_sRGB,s as lin_P3,M as lin_P3_to_XYZ,i as lin_sRGB,j as rec_2020_to_XYZ_D65};
@@ -9,7 +9,7 @@ export declare const FoodsThemeProvider: (props: FoodsThemeProviderProps) => imp
9
9
  type FoodsThemeOptionsProviderProps = {
10
10
  children?: React.JSX.Element | React.JSX.Element[];
11
11
  theme?: Themes;
12
- themeOverride?: ThemeOptions;
12
+ themeOverride?: Partial<ThemeOptions>;
13
13
  };
14
14
  export declare const FoodsThemeOptionsProvider: (props: FoodsThemeOptionsProviderProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{createTheme as r,ThemeProvider as t}from"@mui/material";import{themeOptions as o,themes as i}from"./index.js";const m=r=>{const{theme:o="foodpilot"}=r,m={...i[o]};return void 0!==r.typographyOverride&&(m.typography=r.typographyOverride),/* @__PURE__ */e(t,{theme:m,children:r.children})},h=i=>{const{theme:m="foodpilot",themeOverride:h={}}=i,p=o[m],d=r(p,h);/* @__PURE__ */
2
- return e(t,{theme:d,children:i.children})};export{h as FoodsThemeOptionsProvider,m as FoodsThemeProvider};
1
+ import{jsx as e}from"react/jsx-runtime";import{ThemeProvider as r}from"@mui/material";import{themeOptions as o,themes as t}from"./index.js";import{createFoodsTheme as i}from"./createFoodsTheme.js";const m=o=>{const{theme:i="foodpilot"}=o,m={...t[i]};return void 0!==o.typographyOverride&&(m.typography=o.typographyOverride),/* @__PURE__ */e(r,{theme:m,children:o.children})},h=t=>{const{theme:m="foodpilot",themeOverride:h={}}=t,p=o[m],d=i(p,h);/* @__PURE__ */
2
+ return e(r,{theme:d,children:t.children})};export{h as FoodsThemeOptionsProvider,m as FoodsThemeProvider};
@@ -525,4 +525,4 @@ export declare const allColors: {
525
525
  };
526
526
  };
527
527
  };
528
- export declare const allMainColors: ("#FF8024" | "#FFB400" | "#4DCDF0" | "#FF816C" | "#F98CC0" | "#2B59A4" | "#DB3D53" | "#47CD56" | "#B2B4FF" | "#BB7600" | "#B249C6" | "#30C7A3" | "#5268FF" | "#C8E25D" | "#EFB8FF" | "#A0B1AC")[];
528
+ export declare const allMainColors: ("#BB7600" | "#B249C6" | "#30C7A3" | "#FF816C" | "#5268FF" | "#C8E25D" | "#EFB8FF" | "#A0B1AC" | "#FF8024" | "#4DCDF0" | "#F98CC0" | "#2B59A4" | "#FFB400" | "#DB3D53" | "#47CD56" | "#B2B4FF")[];
@@ -1 +1 @@
1
- import{alpha as o}from"@mui/material";import{isTagVariant as r,getTagStyle as e}from"./MUIComponents/tagsStyles.js";const t={MuiDialog:{styleOverrides:{paper:{borderRadius:"1rem",whiteSpace:"pre-line"}}},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,loadingPosition:"start"},styleOverrides:{root:({theme:t,ownerState:d})=>{const n=d.variant,a=d.variant?.startsWith("dataviz");if(a){const o=parseInt((n??"").split("-")[1]),r=t.custom.dataviz.colorsWithExtra[o];if(void 0!==r)return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:t.spacing(1),height:"40px",fontWeight:700,transition:"none",color:t.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714",background:r.main,":hover":{background:r.variant[700]},":disabled":!0===d.loading?{color:"center"===d.loadingPosition?"transparent":t.custom.grey[100],background:r.main}:{background:r.variant[100]},":active":{background:r.variant[700]}}}const i={..."primary"===n&&{transition:"none",background:`linear-gradient(${t.palette.primary[400]}, ${t.palette.primary[600]})`,color:t.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714"},..."secondary"===n&&{border:`1px solid ${t.custom.grey[500]}`,background:`linear-gradient(${t.custom.grey[100]}}, ${t.custom.grey[300]})`},..."ternary"===n&&{border:`1px solid ${t.custom.grey[500]}`,background:t.custom.grey.gradientLight},..."text"===n&&{transition:"none",paddingInline:"0",color:t.palette.primary[700],fontWeight:"700"},..."selected-menu"===n&&{color:"white",background:`linear-gradient(${t.palette.primary[400]}, ${t.palette.primary[600]})`,borderRadius:"8px",padding:0},..."selected-submenu"===n&&{color:"white",backgroundColor:t.custom.grey[2300],background:t.custom.grey[2300],borderRadius:"8px",padding:0},..."default-menu"===n&&{color:t.custom.grey[100],background:"inherit",borderRadius:"8px",padding:0},..."black-text"===n&&{color:t.custom.grey[2800],background:"none",fontWeight:"600"},..."black-filled"===n&&{borderRadius:"8px",background:`linear-gradient(180deg, ${t.custom.grey[2600]} 0%, ${t.custom.grey[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)",color:t.custom.grey[100]},..."white-filled"===n&&{borderRadius:"8px",border:"1px solid "+t.custom.grey[500],background:`linear-gradient(180deg, ${t.custom.grey[100]} 0%, ${t.custom.grey[200]} 100%)`,boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"},..."white-filled-no-shadow"===n&&{borderRadius:"44px",border:`1px solid ${t.custom.grey[500]}`,background:`linear-gradient(180deg, ${t.custom.grey[100]} 0%, ${t.custom.grey[200]} 100%)`},..."select"===n&&{backgroundColor:t.custom.select.background,borderRadius:t.spacing(1),border:`1px solid ${t.custom.select.border}`},..."validate"===n&&{color:"#FFFFFF",transition:"none",background:`linear-gradient(180deg, ${t.custom.green[500]} 0%, ${t.custom.green[700]} 100%)`},..."delete"===n&&{color:"#FFFFFF",transition:"none",background:`${t.custom.red[600]}`},..."error"===n&&{transition:"none",paddingInline:"0",color:t.custom.red[600],fontWeight:"600"},..."delete-outline"===n&&{color:t.custom.red[600],transition:"none",background:"transparent",border:`1px solid ${t.custom.red[600]}`}};return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:t.spacing(1),height:"40px",fontWeight:700,...i,...!0===d.loading&&("text"===n||"error"===n)&&{"& .MuiButton-loadingIndicator":{left:0}},":hover":{..."primary"===n&&{background:t.palette.primary[600]},..."secondary"===n&&{background:t.custom.grey[400]},..."ternary"===n&&{border:`1px solid ${t.custom.grey[500]}`,background:t.custom.grey[400]},..."text"===n&&{background:"none",textDecoration:"underline"},..."select"===n&&{backgroundColor:t.custom.select.hoverBackground},..."default-menu"===n&&{backgroundColor:t.custom.grey[2500],borderRadius:"8px"},..."selected-menu"===n&&{borderRadius:"8px"},..."selected-submenu"===n&&{borderRadius:"8px"},..."validate"===n&&{background:t.custom.green[600]},..."delete"===n&&{background:t.custom.red[700]},..."error"===n&&{color:t.custom.red[900]},..."delete-outline"===n&&{background:t.custom.red[100],borderColor:t.custom.red[700],color:t.custom.red[700]}},":disabled":!0===d.loading?{color:"inherit",...i,..."center"===d.loadingPosition&&{color:"transparent"}}:{..."primary"===n&&{color:t.custom.grey[100],background:o(t.palette.primary[600]??"",.36)},..."secondary"===n&&{color:o(t.custom.grey[2800],.36),border:`1px solid ${o(t.custom.grey[500],.36)}`,background:t.custom.grey[100]},..."ternary"===n&&{border:`1px solid ${t.custom.grey[100]}`,background:t.custom.grey[500]},..."select"===n&&{backgroundColor:t.custom.select.disabledBackground,color:t.custom.select.disabledText},..."default-menu"===n&&{color:t.custom.grey[2300],borderRadius:"8px"},..."selected-menu"===n&&{color:t.custom.grey[2300],borderRadius:"8px"},..."selected-submenu"===n&&{color:t.custom.grey[2300],borderRadius:"8px"},..."validate"===n&&{background:o(t.custom.green[500],.36),color:"#FFFFFF"},..."delete"===n&&{background:t.custom.red[100],color:o(t.custom.red[600],.36)},..."error"===n&&{color:o(t.custom.red[700],.36)},..."delete-outline"===n&&{color:o(t.custom.red[600],.36),borderColor:o(t.custom.red[600],.36),background:"transparent"}},":active":{..."primary"===n&&{background:t.palette.primary[800]},..."secondary"===n&&{background:t.custom.grey[400]},..."secondary"===n&&{background:t.custom.grey[600]},..."default-menu"===n&&{backgroundColor:t.custom.grey[2e3],borderRadius:"8px"},..."selected-menu"===n&&{backgroundColor:t.custom.grey[2700],borderRadius:"8px"},..."selected-submenu"===n&&{borderRadius:"8px"},..."validate"===n&&{background:t.custom.green[800]},..."delete"===n&&{background:t.custom.red[800]},..."delete-outline"===n&&{background:t.custom.red[100],borderColor:t.custom.red[800]}},...r(n)&&e(n,t,d),..."icon-xs-nobackground"===n&&{padding:t.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:t.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:t.custom.grey[600]},":active":{backgroundColor:t.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:t.custom.grey[1400]}},..."icon-s-nobackground"===n&&{padding:t.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:t.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:t.custom.grey[600]},":active":{backgroundColor:t.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:t.custom.grey[1400]}},..."icon-m-nobackground"===n&&{padding:t.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:t.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:t.custom.grey[600]},":active":{backgroundColor:t.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:t.custom.grey[1400]}},..."icon-xs-withbackground"===n&&{padding:t.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:t.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${t.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:t.custom.grey[400]},":active":{background:"none",backgroundColor:t.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:t.custom.grey[100],color:t.custom.grey[1400]}},..."icon-s-withbackground"===n&&{padding:t.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:t.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${t.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:t.custom.grey[400]},":active":{background:"none",backgroundColor:t.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:t.custom.grey[100],color:t.custom.grey[1400]}},..."icon-m-withbackground"===n&&{padding:t.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:t.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${t.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:t.custom.grey[400]},":active":{background:"none",backgroundColor:t.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:t.custom.grey[100],color:t.custom.grey[1400]}}}}}},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}},MuiCircularProgress:{styleOverrides:{root:({theme:o,ownerState:r})=>({..."inherit"!==r.color&&{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{t as components};
1
+ import{alpha as o}from"@mui/material";import{isTagVariant as r,getTagStyle as e}from"./MUIComponents/tagsStyles.js";import{focusRingStyles as t}from"./focusRing.js";const n={MuiDialog:{styleOverrides:{paper:{borderRadius:"1rem",whiteSpace:"pre-line"}}},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,loadingPosition:"start"},styleOverrides:{root:({theme:n,ownerState:a})=>{const d=a.variant,i="text"===d,c="secondary"===d;let u="",s="";if(i)switch(a.color){case"warning":u=n.custom.yellow[700],s=n.custom.yellow[600];break;case"inherit":u=n.custom.grey[2500],s=n.custom.grey[1400];break;default:u=n.custom.textIconBrand,s=n.palette.primary[700]??u}const g=a.variant?.startsWith("dataviz");if(g){const o=parseInt((d??"").split("-")[1]),r=n.custom.dataviz.colorsWithExtra[o];if(void 0!==r)return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:n.spacing(1),height:"40px",fontWeight:700,transition:"none",color:n.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714",background:r.main,":hover":{background:r.variant[700]},":disabled":!0===a.loading?{color:"center"===a.loadingPosition?"transparent":n.custom.grey[100],background:r.main}:{background:r.variant[100]},":active":{background:r.variant[700]}}}const l={..."primary"===d&&{transition:"none",background:`linear-gradient(${n.palette.primary[400]}, ${n.palette.primary[600]})`,color:n.custom.grey[100],boxShadow:"0px 4px 8px 0px #2A2B2714"},...c&&{border:`1px solid ${n.custom.grey[500]}`,background:`linear-gradient(${n.custom.grey[100]}}, ${n.custom.grey[300]})`},..."ternary"===d&&{border:`1px solid ${n.custom.grey[500]}`,background:n.custom.grey.gradientLight},...i&&{minWidth:n.spacing(3),height:n.spacing(3),padding:0,gap:"8px",borderRadius:"4px",fontSize:"14px",lineHeight:1.5,color:u,"& .MuiButton-icon":{margin:0},"& .MuiButton-icon svg":{width:16,height:16},[n.breakpoints.down("lg")]:{height:n.spacing(5),fontSize:"16px","& .MuiButton-icon svg":{width:20,height:20}},...t(n,"outer")},..."selected-menu"===d&&{color:"white",background:`linear-gradient(${n.palette.primary[400]}, ${n.palette.primary[600]})`,borderRadius:"8px",padding:0},..."selected-submenu"===d&&{color:"white",backgroundColor:n.custom.grey[2300],background:n.custom.grey[2300],borderRadius:"8px",padding:0},..."default-menu"===d&&{color:n.custom.grey[100],background:"inherit",borderRadius:"8px",padding:0},..."black-text"===d&&{color:n.custom.grey[2800],background:"none",fontWeight:"600"},..."black-filled"===d&&{borderRadius:"8px",background:`linear-gradient(180deg, ${n.custom.grey[2600]} 0%, ${n.custom.grey[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)",color:n.custom.grey[100]},..."white-filled"===d&&{borderRadius:"8px",border:"1px solid "+n.custom.grey[500],background:`linear-gradient(180deg, ${n.custom.grey[100]} 0%, ${n.custom.grey[200]} 100%)`,boxShadow:" 0px 2px 8px 0px rgba(42, 43, 39, 0.04)"},..."white-filled-no-shadow"===d&&{borderRadius:"44px",border:`1px solid ${n.custom.grey[500]}`,background:`linear-gradient(180deg, ${n.custom.grey[100]} 0%, ${n.custom.grey[200]} 100%)`},..."select"===d&&{backgroundColor:n.custom.select.background,borderRadius:n.spacing(1),border:`1px solid ${n.custom.select.border}`},..."validate"===d&&{color:"#FFFFFF",transition:"none",background:`linear-gradient(180deg, ${n.custom.green[500]} 0%, ${n.custom.green[700]} 100%)`},..."delete"===d&&{color:"#FFFFFF",transition:"none",background:`${n.custom.red[600]}`},..."error"===d&&{transition:"none",paddingInline:"0",color:n.custom.red[600],fontWeight:"600"},..."delete-outline"===d&&{color:n.custom.red[600],transition:"none",background:"transparent",border:`1px solid ${n.custom.red[600]}`}};return{textTransform:"none",fontSize:"0.9rem",lineHeight:"1rem",borderRadius:n.spacing(1),height:"40px",fontWeight:700,...l,...!0===a.loading&&(i||"error"===d)&&{"& .MuiButton-loadingIndicator":{left:0}},":hover":{..."primary"===d&&{background:n.palette.primary[600]},...c&&{background:n.custom.grey[400]},..."ternary"===d&&{border:`1px solid ${n.custom.grey[500]}`,background:n.custom.grey[400]},...i&&{background:"none",textDecoration:"underline"},..."select"===d&&{backgroundColor:n.custom.select.hoverBackground},..."default-menu"===d&&{backgroundColor:n.custom.grey[2500],borderRadius:"8px"},..."selected-menu"===d&&{borderRadius:"8px"},..."selected-submenu"===d&&{borderRadius:"8px"},..."validate"===d&&{background:n.custom.green[600]},..."delete"===d&&{background:n.custom.red[700]},..."error"===d&&{color:n.custom.red[900]},..."delete-outline"===d&&{background:n.custom.red[100],borderColor:n.custom.red[700],color:n.custom.red[700]}},":disabled":!0===a.loading?{color:"inherit",...l,..."center"===a.loadingPosition&&{color:"transparent"}}:{..."primary"===d&&{color:n.custom.grey[100],background:o(n.palette.primary[600]??"",.36)},...c&&{color:o(n.custom.grey[2800],.36),border:`1px solid ${o(n.custom.grey[500],.36)}`,background:n.custom.grey[100]},..."ternary"===d&&{border:`1px solid ${n.custom.grey[100]}`,background:n.custom.grey[500]},..."select"===d&&{backgroundColor:n.custom.select.disabledBackground,color:n.custom.select.disabledText},..."default-menu"===d&&{color:n.custom.grey[2300],borderRadius:"8px"},..."selected-menu"===d&&{color:n.custom.grey[2300],borderRadius:"8px"},..."selected-submenu"===d&&{color:n.custom.grey[2300],borderRadius:"8px"},..."validate"===d&&{background:o(n.custom.green[500],.36),color:"#FFFFFF"},..."delete"===d&&{background:n.custom.red[100],color:o(n.custom.red[600],.36)},..."error"===d&&{color:o(n.custom.red[700],.36)},...i&&{color:o(s,.36)},..."delete-outline"===d&&{color:o(n.custom.red[600],.36),borderColor:o(n.custom.red[600],.36),background:"transparent"}},":active":{..."primary"===d&&{background:n.palette.primary[800]},...c&&{background:n.custom.grey[600]},..."default-menu"===d&&{backgroundColor:n.custom.grey[2e3],borderRadius:"8px"},..."selected-menu"===d&&{backgroundColor:n.custom.grey[2700],borderRadius:"8px"},..."selected-submenu"===d&&{borderRadius:"8px"},..."validate"===d&&{background:n.custom.green[800]},..."delete"===d&&{background:n.custom.red[800]},..."delete-outline"===d&&{background:n.custom.red[100],borderColor:n.custom.red[800]}},...r(d)&&e(d,n,a),..."icon-xs-nobackground"===d&&{padding:n.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:n.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:n.custom.grey[600]},":active":{backgroundColor:n.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:n.custom.grey[1400]}},..."icon-s-nobackground"===d&&{padding:n.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:n.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:n.custom.grey[600]},":active":{backgroundColor:n.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:n.custom.grey[1400]}},..."icon-m-nobackground"===d&&{padding:n.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:n.custom.grey[2800],backgroundColor:"inherit",borderRadius:"32px",":hover":{backgroundColor:n.custom.grey[600]},":active":{backgroundColor:n.custom.grey[1e3]},":disabled":{backgroundColor:"inherit",color:n.custom.grey[1400]}},..."icon-xs-withbackground"===d&&{padding:n.spacing(.5),minWidth:"auto",width:"24px",height:"24px",color:n.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${n.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:n.custom.grey[400]},":active":{background:"none",backgroundColor:n.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:n.custom.grey[100],color:n.custom.grey[1400]}},..."icon-s-withbackground"===d&&{padding:n.spacing(1),minWidth:"auto",width:"36px",height:"36px",color:n.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${n.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:n.custom.grey[400]},":active":{background:"none",backgroundColor:n.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:n.custom.grey[100],color:n.custom.grey[1400]}},..."icon-m-withbackground"===d&&{padding:n.spacing(1),minWidth:"auto",width:"44px",height:"44px",color:n.custom.grey[2800],background:"linear-gradient(180deg, #FFFFFF 0%, #F6F5F3 154.5%)",border:`1px solid ${n.custom.grey[500]}`,borderRadius:"32px",":hover":{background:"none",backgroundColor:n.custom.grey[400]},":active":{background:"none",backgroundColor:n.custom.grey[600],border:"none"},":disabled":{background:"none",backgroundColor:n.custom.grey[100],color:n.custom.grey[1400]}}}}}},MuiButtonBase:{styleOverrides:{root:{borderRadius:"15px"}}},MuiCircularProgress:{styleOverrides:{root:({theme:o,ownerState:r})=>({..."inherit"!==r.color&&{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{n as components};
@@ -171,6 +171,12 @@ export declare const textInput: {
171
171
  };
172
172
  readonly mobileResetHeight: "40px";
173
173
  };
174
+ /** PPD-2233: 24px stepper targets take precedence over the 40px Figma field. */
175
+ export declare const numberInput: {
176
+ readonly height: "48px";
177
+ readonly stepperWidth: "28px";
178
+ readonly stepperButtonHeight: "24px";
179
+ };
174
180
  /** Figma Text area component set `3660:814`. */
175
181
  export declare const textArea: {
176
182
  readonly minHeight: "200px";
@@ -207,6 +213,11 @@ export declare const select: {
207
213
  readonly errorBorder: "#D03210";
208
214
  readonly errorText: "#D03210";
209
215
  };
216
+ /** Figma Dropdown / Multi-select component set `11712:48404`. */
217
+ export declare const multiSelect: {
218
+ readonly dropdownWidth: "315px";
219
+ readonly optionMinHeight: "38px";
220
+ };
210
221
  /**
211
222
  * Shared bar-chart geometry.
212
223
  * Figma provenance: zero-value Product life-cycle segments `13154:221949`
@@ -283,6 +294,26 @@ export declare const focusRing: {
283
294
  readonly offset: "2px";
284
295
  readonly gapColor: "#FFFFFF";
285
296
  };
297
+ /** Checkbox geometry and states from the standalone and labelled Figma sets. */
298
+ export declare const checkbox: {
299
+ readonly boxSize: "20px";
300
+ readonly markSize: "16px";
301
+ readonly targetSize: "24px";
302
+ readonly controlInset: "2px";
303
+ readonly mobileRowHeight: "40px";
304
+ readonly borderRadius: "4px";
305
+ readonly borderWidth: "2px";
306
+ readonly labelGap: "10px";
307
+ readonly mobileLabelFontSize: "14px";
308
+ readonly uncheckedBorder: "#949491";
309
+ readonly hoverBorder: "#393A36";
310
+ readonly disabledBorder: "#D1CFCE";
311
+ readonly disabledBackground: "#EFEDEC";
312
+ readonly selectedBackground: "linear-gradient(180deg, #484945 0%, #2A2B27 100%)";
313
+ readonly selectedHoverBackground: "#767673";
314
+ readonly selectedDisabledBackground: "#D1CFCE";
315
+ readonly labelColor: "#50504D";
316
+ };
286
317
  /**
287
318
  * Shared count-tab contract.
288
319
  * Figma provenance: Packaging count filters `12885:70126` and `13407:62429`.
@@ -503,6 +534,8 @@ export declare const tooltip: {
503
534
  };
504
535
  type CustomThemeKeys = {
505
536
  custom: {
537
+ /** Figma `text-icon-brand`; derived from the final tenant palette. */
538
+ textIconBrand: string;
506
539
  grey: typeof greyTheme;
507
540
  red: typeof redTheme;
508
541
  green: typeof greenTheme;
@@ -527,12 +560,15 @@ type CustomThemeKeys = {
527
560
  numberWithUnit: typeof numberWithUnit;
528
561
  formField: typeof formField;
529
562
  textInput: typeof textInput;
563
+ numberInput: typeof numberInput;
530
564
  textArea: typeof textArea;
531
565
  select: typeof select;
566
+ multiSelect: typeof multiSelect;
532
567
  barChart: typeof barChart;
533
568
  mediaUpload: typeof mediaUpload;
534
569
  tags: typeof tags;
535
570
  focusRing: typeof focusRing;
571
+ checkbox: typeof checkbox;
536
572
  countTabs: typeof countTabs;
537
573
  tabs: typeof tabs;
538
574
  scoreDetail: typeof scoreDetail;
@@ -547,10 +583,15 @@ type CustomThemeKeys = {
547
583
  valueFormatterFn: (value: number, precision?: number) => string;
548
584
  };
549
585
  };
586
+ type CustomThemeOptionsKeys = Omit<CustomThemeKeys, "custom"> & {
587
+ custom: Omit<CustomThemeKeys["custom"], "textIconBrand"> & {
588
+ textIconBrand?: string;
589
+ };
590
+ };
550
591
  declare module "@mui/material/styles" {
551
592
  interface Theme extends CustomThemeKeys {
552
593
  }
553
- interface ThemeOptions extends CustomThemeKeys {
594
+ interface ThemeOptions extends CustomThemeOptionsKeys {
554
595
  }
555
596
  }
556
597
  export declare const custom: ThemeOptions["custom"];
@@ -1 +1 @@
1
- import e from"i18next";import{greyTheme as i,shadows as o,redTheme as r,allMainColors as t,allColors as d,extraColors as a,dataVisualizationColors as p,coralTheme as n,blueTheme as x,yellowTheme as h,orangeTheme as l,greenTheme as c}from"./colors.js";const g={containerDivider:{color:i[600],style:"solid",width:"1px"}},s={width:"300px"},u={green:{surface:"#F2FFF9"}},b={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},m={width:"300px",heights:{inactive:"215px",selected:"231px"},icon:{containerSize:"48px",glyphSize:{width:40,height:40}},carouselControl:{inlineEndOffset:"-5px"},details:{chartHeight:"481px"}},w={stroke:{...g.containerDivider,color:"#E5E3E0"}},k={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},y={emptyIndicator:{micro:{size:"20px",iconSize:{width:11,height:11}},small:{size:"24px",iconSize:{width:13,height:13}},inter:{size:"30px",iconSize:{width:20,height:20}},big:{size:"38px",iconSize:{width:28,height:28}}},unitOffset:{compact:"-1px",regular:"-2px"}},S={compact:{width:"100px",optionWidth:"130px"}},z={desktopHeight:"40px",mobileHeight:"48px",fixedWidth:{desktop:"300px",mobile:"220px"},mobileResetHeight:"40px"},f={minHeight:"200px",padding:"16px",borderRadius:"12px",footerGap:"8px",mobileFontSize:"16px",mobileCounterFontSize:"14px",errorFontSize:"12px"},v={desktopWidth:"300px",desktopHeight:"40px",desktopResetGap:"16px",desktopResetActionWidth:"44px",mobileHeight:"48px",mobileResetHeight:"40px",mobileResetFontSize:"14px",desktopValueFontSize:"14px",mobileValueFontSize:"16px",desktopSupportingFontSize:"12px",mobileSupportingFontSize:"14px",border:i[600],background:i[100],hoverBackground:i[300],disabledBackground:i[500],selectedText:i[2500],placeholderText:i[2e3],errorPlaceholderText:i[2800],disabledText:i[1400],defaultText:i[2e3],errorBackground:r[100],errorBorder:r[600],errorText:r[600]},B={zeroValueWidth:"1px"},R={borderRadius:"8px",loadingIndicatorSize:28,errorMaxWidth:"260px",default:{size:120,stroke:g.containerDivider,emptyCopy:{typographyVariant:"body-regular",lineHeight:1.3}},compact:{size:110,contentInset:"6px",stroke:{...g.containerDivider,style:"dashed"},boxShadow:o.grey,emptyCopy:{width:"76px",typographyVariant:"small-regular"}},thumbnail:{size:70,contentInset:"4px",stroke:g.containerDivider,boxShadow:o.grey}},$={display:{height:"26px"}},C={color:i[2800],width:"2px",offset:"2px",gapColor:i[100]},F={gap:"8px",minHeight:"36px",padding:"8px 12px",borderRadius:"8px",focusRing:C,separatorPaddingInline:"4px",loadingWidth:24,loadingSelectedOpacity:.3,default:{background:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,hoverBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[400]} 154.5%)`,borderColor:i[500],boxShadow:o.grey,color:i[2800]},selected:{background:`linear-gradient(180deg, ${i[2600]} 0%, ${i[3e3]} 100%)`,hoverBackground:i[2800],borderColor:i[2800],boxShadow:o.hard,color:i[100]}},W={primary:{height:"60px"},secondary:{height:"60px"}},D={summaryWidth:"250px",barWidth:"250px",lifecycleBreakdownWidth:"364px",subscoreBreakdownWidth:"346px",impactBreakdownWidth:"318px",impactZeroBreakdownWidth:"292px",impactBenefitBreakdownWidth:"551px"},I={handleBorderRadius:"50%",legacyTrackBackground:"rgba(0,0,0,.25)",sizes:{default:{width:"52px",height:"28px",thumbSize:"20px",thumbInset:"4px",thumbTravel:"24px",trackBorderRadius:"16px"},medium:{width:"44px",height:"24px",thumbSize:"16px",thumbInset:"4px",thumbTravel:"20px",trackBorderRadius:"14px"},small:{width:"36px",height:"20px",thumbSize:"12px",thumbInset:"4px",thumbTravel:"16px",trackBorderRadius:"10px"}},status:{uncheckedColor:i[1400],uncheckedIconColor:i[2e3],handleBackground:`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 100%)`,iconSize:{width:14,height:14},trackBorderRadius:"20px"}},H=`linear-gradient(180deg, ${i[100]} 0%, ${i[300]} 154.5%)`,T={size:"40px",iconSize:{width:20,height:20},borderRadius:"44px",default:{background:H,borderColor:r[500],color:r[500]},hovered:{background:r[400],borderColor:r[500],color:i[100]},pressed:{background:r[600],borderColor:r[600],color:i[100]},disabled:{background:H,borderColor:r[200],color:r[200]}},V=`inset 0 0 0 ${g.containerDivider.width} ${g.containerDivider.color}`,E={gap:"4px",separatorIconSize:{width:16,height:16},pageLink:{height:"26px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",maxWidth:"226px",stroke:{default:V,hover:`inset 0 0 0 ${g.containerDivider.width} ${i[2800]}`},collapsed:{width:"24px",height:"16px",paddingInline:"4px",borderRadius:"4px"}},overflowMenu:{offset:"4px",padding:"16px",gap:"8px",borderRadius:"12px",boxShadow:`${V}, ${o.popover}`}},A=`${g.containerDivider.width} ${g.containerDivider.style} ${i[500]}`,M=`${g.containerDivider.width} ${g.containerDivider.style} ${g.containerDivider.color}`,L={contentAlignment:"center",default:{maxCharacters:100,width:"202px",maxWidth:"unset",padding:"12px 16px 12px 16px",borderRadius:"0.5rem",border:A,backgroundColor:i[100],boxShadow:`0px 4px 20px 0px ${i[500]}`,color:i[2800],margin:"8px",typographyVariant:"body-medium",arrow:{color:i[100],border:A}},simple:{width:"300px",maxWidth:"300px",contentMinHeight:"53px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",border:M,backgroundColor:i[100],boxShadow:o.popover,color:i[2500],margin:"8px",typographyVariant:"body-medium",arrow:{width:"16px",height:"8px",color:i[100],border:M}}},N={grey:i,red:r,green:c,orange:l,yellow:h,blue:x,coral:n,shadows:o,dataviz:{colors:p,extra:a,colorsWithExtra:d,onlyMainFromAll:t},doughnutCard:s,strokes:g,status:u,scoreCard:b,scoreOverviewCard:m,ingredientCard:w,scoreValue:k,numberWithUnit:y,formField:S,textInput:z,textArea:f,select:v,barChart:B,mediaUpload:R,tags:$,focusRing:C,countTabs:F,tabs:W,scoreDetail:D,toggleSwitch:I,deleteButton:T,breadcrumb:E,tooltip:L,searchBox:{borderRadius:"24px",border:e=>"1px solid "+e.custom.grey[500],background:"white",boxShadow:e=>"0px 2px 8px 0px "+e.custom.grey[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"}},O={valueFormatterFn:(i,o=void 0)=>{const r=Number(i);return Number.isNaN(r)?"":o?r.toLocaleString(e.language,{maximumFractionDigits:o}):r.toLocaleString(e.language)}};export{B as barChart,E as breadcrumb,F as countTabs,N as custom,T as deleteButton,s as doughnutCard,C as focusRing,S as formField,w as ingredientCard,R as mediaUpload,y as numberWithUnit,O as numbers,b as scoreCard,D as scoreDetail,m as scoreOverviewCard,k as scoreValue,v as select,u as status,g as strokes,W as tabs,$ as tags,f as textArea,z as textInput,I as toggleSwitch,L as tooltip};
1
+ import e from"i18next";import{greyTheme as o,shadows as i,redTheme as r,allMainColors as t,allColors as d,extraColors as a,dataVisualizationColors as p,coralTheme as n,blueTheme as x,yellowTheme as h,orangeTheme as l,greenTheme as c}from"./colors.js";const g={containerDivider:{color:o[600],style:"solid",width:"1px"}},s={width:"300px"},u={green:{surface:"#F2FFF9"}},b={surface:"#025155",emptyGuidanceForeground:"#EDF9FA",loading:{opacity:.7,transition:"opacity 120ms ease-out"}},m={width:"300px",heights:{inactive:"215px",selected:"231px"},icon:{containerSize:"48px",glyphSize:{width:40,height:40}},carouselControl:{inlineEndOffset:"-5px"},details:{chartHeight:"481px"}},k={stroke:{...g.containerDivider,color:"#E5E3E0"}},w={emptyIndicator:{size:"44px",iconSize:{width:26,height:26}},inline:{width:"70px"}},S={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"}},y={compact:{width:"100px",optionWidth:"130px"}},z={desktopHeight:"40px",mobileHeight:"48px",fixedWidth:{desktop:"300px",mobile:"220px"},mobileResetHeight:"40px"},v={height:"48px",stepperWidth:"28px",stepperButtonHeight:"24px"},B={minHeight:"200px",padding:"16px",borderRadius:"12px",footerGap:"8px",mobileFontSize:"16px",mobileCounterFontSize:"14px",errorFontSize:"12px"},f={desktopWidth:"300px",desktopHeight:"40px",desktopResetGap:"16px",desktopResetActionWidth:"44px",mobileHeight:"48px",mobileResetHeight:"40px",mobileResetFontSize:"14px",desktopValueFontSize:"14px",mobileValueFontSize:"16px",desktopSupportingFontSize:"12px",mobileSupportingFontSize:"14px",border:o[600],background:o[100],hoverBackground:o[300],disabledBackground:o[500],selectedText:o[2500],placeholderText:o[2e3],errorPlaceholderText:o[2800],disabledText:o[1400],defaultText:o[2e3],errorBackground:r[100],errorBorder:r[600],errorText:r[600]},R={dropdownWidth:"315px",optionMinHeight:"38px"},$={zeroValueWidth:"1px"},W={borderRadius:"8px",loadingIndicatorSize:28,errorMaxWidth:"260px",default:{size:120,stroke:g.containerDivider,emptyCopy:{typographyVariant:"body-regular",lineHeight:1.3}},compact:{size:110,contentInset:"6px",stroke:{...g.containerDivider,style:"dashed"},boxShadow:i.grey,emptyCopy:{width:"76px",typographyVariant:"small-regular"}},thumbnail:{size:70,contentInset:"4px",stroke:g.containerDivider,boxShadow:i.grey}},C={display:{height:"26px"}},F={color:o[2800],width:"2px",offset:"2px",gapColor:o[100]},D={boxSize:"20px",markSize:"16px",targetSize:"24px",controlInset:"2px",mobileRowHeight:"40px",borderRadius:"4px",borderWidth:"2px",labelGap:"10px",mobileLabelFontSize:"14px",uncheckedBorder:o[1600],hoverBorder:o[2800],disabledBorder:o[800],disabledBackground:o[400],selectedBackground:`linear-gradient(180deg, ${o[2600]} 0%, ${o[3e3]} 100%)`,selectedHoverBackground:o[2e3],selectedDisabledBackground:o[800],labelColor:o[2500]},I={gap:"8px",minHeight:"36px",padding:"8px 12px",borderRadius:"8px",focusRing:F,separatorPaddingInline:"4px",loadingWidth:24,loadingSelectedOpacity:.3,default:{background:`linear-gradient(180deg, ${o[100]} 0%, ${o[300]} 154.5%)`,hoverBackground:`linear-gradient(180deg, ${o[100]} 0%, ${o[400]} 154.5%)`,borderColor:o[500],boxShadow:i.grey,color:o[2800]},selected:{background:`linear-gradient(180deg, ${o[2600]} 0%, ${o[3e3]} 100%)`,hoverBackground:o[2800],borderColor:o[2800],boxShadow:i.hard,color:o[100]}},H={primary:{height:"60px"},secondary:{height:"60px"}},T={summaryWidth:"250px",barWidth:"250px",lifecycleBreakdownWidth:"364px",subscoreBreakdownWidth:"346px",impactBreakdownWidth:"318px",impactZeroBreakdownWidth:"292px",impactBenefitBreakdownWidth:"551px"},V={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:o[1400],uncheckedIconColor:o[2e3],handleBackground:`linear-gradient(180deg, ${o[100]} 0%, ${o[300]} 100%)`,iconSize:{width:14,height:14},trackBorderRadius:"20px"}},E=`linear-gradient(180deg, ${o[100]} 0%, ${o[300]} 154.5%)`,M={size:"40px",iconSize:{width:20,height:20},borderRadius:"44px",default:{background:E,borderColor:r[500],color:r[500]},hovered:{background:r[400],borderColor:r[500],color:o[100]},pressed:{background:r[600],borderColor:r[600],color:o[100]},disabled:{background:E,borderColor:r[200],color:r[200]}},A=`inset 0 0 0 ${g.containerDivider.width} ${g.containerDivider.color}`,L={gap:"4px",separatorIconSize:{width:16,height:16},pageLink:{height:"26px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",maxWidth:"226px",stroke:{default:A,hover:`inset 0 0 0 ${g.containerDivider.width} ${o[2800]}`},collapsed:{width:"24px",height:"16px",paddingInline:"4px",borderRadius:"4px"}},overflowMenu:{offset:"4px",padding:"16px",gap:"8px",borderRadius:"12px",boxShadow:`${A}, ${i.popover}`}},G=`${g.containerDivider.width} ${g.containerDivider.style} ${o[500]}`,N=`${g.containerDivider.width} ${g.containerDivider.style} ${g.containerDivider.color}`,O={contentAlignment:"center",default:{maxCharacters:100,width:"202px",maxWidth:"unset",padding:"12px 16px 12px 16px",borderRadius:"0.5rem",border:G,backgroundColor:o[100],boxShadow:`0px 4px 20px 0px ${o[500]}`,color:o[2800],margin:"8px",typographyVariant:"body-medium",arrow:{color:o[100],border:G}},simple:{width:"300px",maxWidth:"300px",contentMinHeight:"53px",paddingBlock:"2px",paddingInline:"8px",borderRadius:"8px",border:N,backgroundColor:o[100],boxShadow:i.popover,color:o[2500],margin:"8px",typographyVariant:"body-medium",arrow:{width:"16px",height:"8px",color:o[100],border:N}}},P={grey:o,red:r,green:c,orange:l,yellow:h,blue:x,coral:n,shadows:i,dataviz:{colors:p,extra:a,colorsWithExtra:d,onlyMainFromAll:t},doughnutCard:s,strokes:g,status:u,scoreCard:b,scoreOverviewCard:m,ingredientCard:k,scoreValue:w,numberWithUnit:S,formField:y,textInput:z,numberInput:v,textArea:B,select:f,multiSelect:R,barChart:$,mediaUpload:W,tags:C,focusRing:F,checkbox:D,countTabs:I,tabs:H,scoreDetail:T,toggleSwitch:V,deleteButton:M,breadcrumb:L,tooltip:O,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"}},U={valueFormatterFn:(o,i=void 0)=>{const r=Number(o);return Number.isNaN(r)?"":i?r.toLocaleString(e.language,{maximumFractionDigits:i}):r.toLocaleString(e.language)}};export{$ as barChart,L as breadcrumb,D as checkbox,I as countTabs,P as custom,M as deleteButton,s as doughnutCard,F as focusRing,y as formField,k as ingredientCard,W as mediaUpload,R as multiSelect,v as numberInput,S as numberWithUnit,U as numbers,b as scoreCard,T as scoreDetail,m as scoreOverviewCard,w as scoreValue,f as select,u as status,g as strokes,H as tabs,C as tags,B as textArea,z as textInput,V as toggleSwitch,O as tooltip};
@@ -0,0 +1,3 @@
1
+ import { Theme, ThemeOptions } from '@mui/material';
2
+ /** Create a Foods theme with semantic colors derived from its final palette. */
3
+ export declare const createFoodsTheme: (options: ThemeOptions, override?: Partial<ThemeOptions>) => Theme;
@@ -0,0 +1 @@
1
+ import{createTheme as r}from"@mui/material";import{rec_2020_to_XYZ_D65 as e,ProPhoto_RGB_to_XYZ_D65 as t,a98_RGB_to_XYZ_D65 as n,P3_to_XYZ_D65 as s,XYZ_D65_to_sRGB as o}from"../node_modules/@csstools/color-helpers/dist/index.js";const a=[600,700,800,900],i=r=>`#${r.map(r=>r.toString(16).padStart(2,"0")).join("")}`,c=(r,e)=>{if(!Number.isFinite(e)||e<0||e>1)throw new Error("Invalid brand color alpha");return r.map(r=>Math.round(r*e+255*(1-e)))},l=r=>{const a=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i.exec(r)?.[1];if(a){const e=a.length<=4?[...a].map(r=>r+r).join(""):a,t=[0,2,4].map(r=>parseInt(e.slice(r,r+2),16)),n=8===e.length?parseInt(e.slice(6),16)/255:1,s=c(t,n);return{channels:s,value:1===n?r:i(s)}}const l=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)(?:\s*,\s*(0(?:\.\d+)?|1(?:\.0+)?))?\s*\)$/i.exec(r);if(l){const e=l.slice(1,4).map(Number),t=e.map(Math.round);if(e.every(r=>r<=255)&&r.toLowerCase().startsWith("rgba")===Boolean(l[4])){const n=void 0===l[4]?1:Number(l[4]),s=c(t,n);return{channels:s,value:1===n&&e.every(Number.isInteger)?r:i(s)}}}const d=/^hsla?\(\s*(-?\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%(?:\s*,\s*(0(?:\.\d+)?|1(?:\.0+)?))?\s*\)$/i.exec(r);if(d&&r.toLowerCase().startsWith("hsla")===Boolean(d[4])){const[,r,e,t,n]=d,s=Number(r),o=Number(e)/100,a=Number(t)/100;if(o<=1&&a<=1){const r=o*Math.min(a,1-a),e=e=>{const t=((e+s/30)%12+12)%12;return Math.round(255*(a-r*Math.max(Math.min(t-3,9-t,1),-1)))},t=[e(0),e(8),e(4)],l=void 0===n?1:Number(n),d=c(t,l);return{channels:d,value:i(d)}}}const u=/^color\(\s*(srgb|display-p3|a98-rgb|prophoto-rgb|rec-2020)\s+([^)]*)\)$/i.exec(r);if(u){const r=u[2].trim().split(/\s*\/\s*|\s+/);if((3===r.length||4===r.length)&&r.every(r=>""!==r&&Number.isFinite(Number(r)))){const a=r.slice(0,3).map(Number),l=4===r.length?Number(r[3]):1,d={"display-p3":s,"a98-rgb":n,"prophoto-rgb":t,"rec-2020":e}[u[1].toLowerCase()],m=(d?o(d(a)):a).map(r=>Math.round(255*Math.max(0,Math.min(1,r)))),p=c(m,l);return{channels:p,value:i(p)}}}throw new Error("Expected a supported CSS brand color")},d=r=>{const[e,t,n]=r.map(r=>{const e=r/255;return e<=.04045?e/12.92:((e+.055)/1.055)**2.4});return 1.05/(.2126*e+.7152*t+.0722*n+.05)},u=(r,e)=>`#${r.map(r=>Math.round(r*(1-e/255)).toString(16).padStart(2,"0")).join("")}`,m=(e,t={})=>{const n=r(e,t);return n.custom.textIconBrand=(r=>{for(const t of a){const e=l(r[t]);if(d(e.channels)>=4.5)return e.value}const e=l(r[900]).channels;for(let t=1;t<=255;t+=1){const r=u(e,t);if(d(l(r).channels)>=4.5)return r}return"#000000"})(n.palette.primary),n};export{m as createFoodsTheme};
@@ -1 +1 @@
1
- import{FoodsThemeOptionsProvider as o,FoodsThemeProvider as s}from"./FoodsThemeProvider.js";import m from"../assets/logos/foodpilot.svg.js";import e from"../assets/logos/winepilot.svg.js";import i from"../assets/logos/positive.svg.js";import{CollectiveThemeOptions as t,CollectiveTheme as r}from"./themes/CollectiveTheme.js";import{WinepilotThemeOptions as p,WinePilotTheme as l}from"./themes/WinePilotTheme.js";import{FoodpilotThemeOptions as n,FoodPilotTheme as c}from"./themes/FoodPilotTheme.js";import{allColors as f,allMainColors as j,blueTheme as v,coralTheme as d,dataVisualizationColors as g,extraColors as h,greenTheme as a,greyTheme as u,orangeTheme as w,redTheme as P,shadows as T,yellowTheme as R}from"./common/colors.js";import{allTypographyVariants as y,deprecatedVariants as C,typographyConfig as F}from"./common/MUIComponents/typography.js";import{barChart as k,breadcrumb as x,countTabs as B,custom as I,deleteButton as M,doughnutCard as U,focusRing as W,formField as b,ingredientCard as q,mediaUpload as z,numberWithUnit as A,numbers as D,scoreCard as E,scoreDetail as G,scoreOverviewCard as H,scoreValue as J,select as K,status as L,strokes as N,tabs as O,tags as Q,textArea as S,textInput as V,toggleSwitch as X,tooltip as Y}from"./common/custom.js";import{components as Z}from"./common/components.js";import{focusRingStyles as $}from"./common/focusRing.js";import{spacing as _}from"./common/spacing.js";import{useResponsiveBreakpoints as oo}from"./responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as so}from"./responsive/useResponsivePadding.js";const mo=["foodpilot","winepilot","collective"],eo=o=>mo.includes(o),io={foodpilot:c,winepilot:l,collective:r},to={foodpilot:n,winepilot:p,collective:t},ro={foodpilot:m,winepilot:e,collective:i},po=o=>eo(o)?ro[o]:m;export{r as CollectiveTheme,t as CollectiveThemeOptions,c as FoodPilotTheme,n as FoodpilotThemeOptions,o as FoodsThemeOptionsProvider,s as FoodsThemeProvider,l as WinePilotTheme,p as WinepilotThemeOptions,f as allColors,j as allMainColors,y as allTypographyVariants,k as barChart,v as blueTheme,x as breadcrumb,Z as components,d as coralTheme,B as countTabs,I as custom,g as dataVisualizationColors,M as deleteButton,C as deprecatedVariants,U as doughnutCard,h as extraColors,W as focusRing,$ as focusRingStyles,b as formField,po as getThemeLogo,a as greenTheme,u as greyTheme,q as ingredientCard,eo as isTheme,z as mediaUpload,A as numberWithUnit,D as numbers,w as orangeTheme,P as redTheme,E as scoreCard,G as scoreDetail,H as scoreOverviewCard,J as scoreValue,K as select,T as shadows,_ as spacing,L as status,N as strokes,O as tabs,Q as tags,S as textArea,V as textInput,ro as themeLogos,to as themeOptions,io as themes,X as toggleSwitch,Y as tooltip,F as typographyConfig,oo as useResponsiveBreakpoints,so as useResponsivePadding,R as yellowTheme};
1
+ import{FoodsThemeOptionsProvider as o,FoodsThemeProvider as s}from"./FoodsThemeProvider.js";import m from"../assets/logos/foodpilot.svg.js";import e from"../assets/logos/winepilot.svg.js";import i from"../assets/logos/positive.svg.js";import{CollectiveThemeOptions as t,CollectiveTheme as r}from"./themes/CollectiveTheme.js";import{WinepilotThemeOptions as p,WinePilotTheme as l}from"./themes/WinePilotTheme.js";import{FoodpilotThemeOptions as n,FoodPilotTheme as c}from"./themes/FoodPilotTheme.js";import{allColors as f,allMainColors as j,blueTheme as v,coralTheme as d,dataVisualizationColors as g,extraColors as h,greenTheme as a,greyTheme as u,orangeTheme as w,redTheme as T,shadows as P,yellowTheme as F}from"./common/colors.js";import{allTypographyVariants as R,deprecatedVariants as y,typographyConfig as C}from"./common/MUIComponents/typography.js";import{barChart as k,breadcrumb as x,checkbox as B,countTabs as I,custom as M,deleteButton as U,doughnutCard as W,focusRing as b,formField as q,ingredientCard as z,mediaUpload as A,multiSelect as D,numberInput as E,numberWithUnit as G,numbers as H,scoreCard as J,scoreDetail as K,scoreOverviewCard as L,scoreValue as N,select as O,status as Q,strokes as S,tabs as V,tags as X,textArea as Y,textInput as Z,toggleSwitch as $,tooltip as _}from"./common/custom.js";import{components as oo}from"./common/components.js";import{createFoodsTheme as so}from"./createFoodsTheme.js";import{focusRingStyles as mo}from"./common/focusRing.js";import{spacing as eo}from"./common/spacing.js";import{useResponsiveBreakpoints as io}from"./responsive/useResponsiveBreakpoints.js";import{useResponsivePadding as to}from"./responsive/useResponsivePadding.js";const ro=["foodpilot","winepilot","collective"],po=o=>ro.includes(o),lo={foodpilot:c,winepilot:l,collective:r},no={foodpilot:n,winepilot:p,collective:t},co={foodpilot:m,winepilot:e,collective:i},fo=o=>po(o)?co[o]:m;export{r as CollectiveTheme,t as CollectiveThemeOptions,c as FoodPilotTheme,n as FoodpilotThemeOptions,o as FoodsThemeOptionsProvider,s as FoodsThemeProvider,l as WinePilotTheme,p as WinepilotThemeOptions,f as allColors,j as allMainColors,R as allTypographyVariants,k as barChart,v as blueTheme,x as breadcrumb,B as checkbox,oo as components,d as coralTheme,I as countTabs,so as createFoodsTheme,M as custom,g as dataVisualizationColors,U as deleteButton,y as deprecatedVariants,W as doughnutCard,h as extraColors,b as focusRing,mo as focusRingStyles,q as formField,fo as getThemeLogo,a as greenTheme,u as greyTheme,z as ingredientCard,po as isTheme,A as mediaUpload,D as multiSelect,E as numberInput,G as numberWithUnit,H as numbers,w as orangeTheme,T as redTheme,J as scoreCard,K as scoreDetail,L as scoreOverviewCard,N as scoreValue,O as select,P as shadows,eo as spacing,Q as status,S as strokes,V as tabs,X as tags,Y as textArea,Z as textInput,co as themeLogos,no as themeOptions,lo as themes,$ as toggleSwitch,_ as tooltip,C as typographyConfig,io as useResponsiveBreakpoints,to as useResponsivePadding,F as yellowTheme};
@@ -1 +1 @@
1
- import{createTheme as o}from"@mui/material";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as n}from"../common/custom.js";import{typographyConfig as s}from"../common/MUIComponents/typography.js";import{spacing as i}from"../common/spacing.js";const c={palette:{primary:{50:"#EDF9FA",100:"#BEEEF0",200:"#8EE2E7",300:"#5FD7DD",400:"#2FCBD4",500:"#00C0CA",600:"#01A4AD",700:"#018990",800:"#026D72",900:"#025155"},grey:r,text:{primary:"#393a36"},error:{light:m[100],main:m[600],dark:m[800]}},spacing:i,typography:s,custom:n,numbers:p,components:t},a=o(c);export{a as CollectiveTheme,c as CollectiveThemeOptions};
1
+ import{createFoodsTheme as o}from"../createFoodsTheme.js";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as s}from"../common/custom.js";import{typographyConfig as n}from"../common/MUIComponents/typography.js";import{spacing as c}from"../common/spacing.js";const e={palette:{primary:{50:"#EDF9FA",100:"#BEEEF0",200:"#8EE2E7",300:"#5FD7DD",400:"#2FCBD4",500:"#00C0CA",600:"#01A4AD",700:"#018990",800:"#026D72",900:"#025155"},grey:r,text:{primary:"#393a36"},error:{light:m[100],main:m[600],dark:m[800]}},spacing:c,typography:n,custom:s,numbers:p,components:t},i=o(e);export{i as CollectiveTheme,e as CollectiveThemeOptions};
@@ -1 +1 @@
1
- import{createTheme as o}from"@mui/material";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as n}from"../common/custom.js";import{typographyConfig as s}from"../common/MUIComponents/typography.js";import{spacing as i}from"../common/spacing.js";const c={palette:{primary:{50:"#FFF6E8",100:"#FDE6BA",200:"#FBD68B",300:"#FAC55D",400:"#F8B52E",500:"#F6A500",600:"#D38702",700:"#B06803",800:"#8D4A05",900:"#6A2B06"},grey:r,text:{primary:r[2800]},error:{light:m[100],main:m[600],dark:m[800]}},spacing:i,typography:s,custom:n,numbers:p,components:t},a=o(c);export{a as FoodPilotTheme,c as FoodpilotThemeOptions};
1
+ import{createFoodsTheme as o}from"../createFoodsTheme.js";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as s}from"../common/custom.js";import{typographyConfig as n}from"../common/MUIComponents/typography.js";import{spacing as c}from"../common/spacing.js";const e={palette:{primary:{50:"#FFF6E8",100:"#FDE6BA",200:"#FBD68B",300:"#FAC55D",400:"#F8B52E",500:"#F6A500",600:"#D38702",700:"#B06803",800:"#8D4A05",900:"#6A2B06"},grey:r,text:{primary:r[2800]},error:{light:m[100],main:m[600],dark:m[800]}},spacing:c,typography:n,custom:s,numbers:p,components:t},i=o(e);export{i as FoodPilotTheme,e as FoodpilotThemeOptions};
@@ -1 +1 @@
1
- import{createTheme as o}from"@mui/material";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as n}from"../common/custom.js";import{typographyConfig as s}from"../common/MUIComponents/typography.js";import{spacing as i}from"../common/spacing.js";const c={palette:{primary:{50:"#FFEDED",100:"#FCCBCB",200:"#F9A8A8",300:"#F58686",400:"#F26363",500:"#EF4141",600:"#CD2436",700:"#AA072B",800:"#900524",900:"#76031D"},grey:r,text:{primary:"#393a36"},error:{light:m[100],main:m[600],dark:m[800]}},spacing:i,typography:s,custom:n,numbers:p,components:t},a=o(c);export{a as WinePilotTheme,c as WinepilotThemeOptions};
1
+ import{createFoodsTheme as o}from"../createFoodsTheme.js";import{redTheme as m,greyTheme as r}from"../common/colors.js";import{components as t}from"../common/components.js";import{numbers as p,custom as s}from"../common/custom.js";import{typographyConfig as n}from"../common/MUIComponents/typography.js";import{spacing as c}from"../common/spacing.js";const e={palette:{primary:{50:"#FFEDED",100:"#FCCBCB",200:"#F9A8A8",300:"#F58686",400:"#F26363",500:"#EF4141",600:"#CD2436",700:"#AA072B",800:"#900524",900:"#76031D"},grey:r,text:{primary:"#393a36"},error:{light:m[100],main:m[600],dark:m[800]}},spacing:c,typography:n,custom:s,numbers:p,components:t},i=o(e);export{i as WinePilotTheme,e as WinepilotThemeOptions};
@@ -1,3 +1,4 @@
1
1
  export { CollectiveTheme, CollectiveThemeOptions } from './CollectiveTheme';
2
2
  export { FoodPilotTheme, FoodpilotThemeOptions } from './FoodPilotTheme';
3
3
  export { WinePilotTheme, WinepilotThemeOptions } from './WinePilotTheme';
4
+ export { createFoodsTheme } from '../createFoodsTheme';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "2.29.1",
4
+ "version": "2.30.0",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "module": "./dist/main.js",
@@ -51,6 +51,10 @@
51
51
  "types": "./dist/components/Number/index.d.ts",
52
52
  "import": "./dist/components/Number/index.js"
53
53
  },
54
+ "./NumberInput": {
55
+ "types": "./dist/components/NumberInput/index.d.ts",
56
+ "import": "./dist/components/NumberInput/index.js"
57
+ },
54
58
  "./Progress": {
55
59
  "types": "./dist/components/Progress/index.d.ts",
56
60
  "import": "./dist/components/Progress/index.js"
@@ -67,6 +71,10 @@
67
71
  "types": "./dist/components/Select/index.d.ts",
68
72
  "import": "./dist/components/Select/index.js"
69
73
  },
74
+ "./MultiSelect": {
75
+ "types": "./dist/components/Select/FoodsMultiSelect/index.d.ts",
76
+ "import": "./dist/components/Select/FoodsMultiSelect/index.js"
77
+ },
70
78
  "./UnitConverterPanel": {
71
79
  "types": "./dist/components/UnitConverterPanel/index.d.ts",
72
80
  "import": "./dist/components/UnitConverterPanel/index.js"
@@ -316,6 +324,7 @@
316
324
  "vitest": "^4.1.12"
317
325
  },
318
326
  "dependencies": {
327
+ "@csstools/color-helpers": "^6.1.0",
319
328
  "@lexical/react": "^0.41.0",
320
329
  "@mui/lab": "^6.0.0-beta.0",
321
330
  "@mui/x-data-grid": "^7.0.0",
@@ -352,7 +361,7 @@
352
361
  "name": "Main Bundle",
353
362
  "path": "dist/**/*.js",
354
363
  "gzip": true,
355
- "limit": "301 KB"
364
+ "limit": "305 KB"
356
365
  },
357
366
  {
358
367
  "name": "Assets",
@@ -364,7 +373,7 @@
364
373
  "name": "Components",
365
374
  "path": "dist/components/**/*.js",
366
375
  "gzip": true,
367
- "limit": "280 KB"
376
+ "limit": "283 KB"
368
377
  },
369
378
  {
370
379
  "name": "Inner Components",