@foodpilot/foods 2.29.0 → 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.
- package/dist/assets/checkbox-check.svg.js +1 -0
- package/dist/assets/checkbox-minus.svg.js +1 -0
- package/dist/components/Cards/SelectionCard/SelectionCard.js +4 -4
- package/dist/components/Cards/TrajectoryCards/styles/index.d.ts +3 -3
- package/dist/components/Checkbox/BaseCheckbox.d.ts +3 -1
- package/dist/components/Checkbox/BaseCheckbox.js +2 -2
- package/dist/components/Checkbox/FoodsCheckbox.d.ts +3 -1
- package/dist/components/Checkbox/FoodsCheckbox.js +2 -2
- package/dist/components/Checkbox/FoodsCheckboxControl.d.ts +2 -0
- package/dist/components/Checkbox/FoodsCheckboxControl.js +1 -0
- package/dist/components/Input/SearchBox.d.ts +2 -0
- package/dist/components/Input/SearchBox.js +3 -2
- package/dist/components/NumberInput/FoodsNumberInput.d.ts +18 -0
- package/dist/components/NumberInput/FoodsNumberInput.js +9 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/NumberInput/index.js +1 -0
- package/dist/components/Radio/BaseRadio.d.ts +5 -6
- package/dist/components/Radio/BaseRadio.js +2 -4
- package/dist/components/Radio/FoodsRadioList.d.ts +3 -0
- package/dist/components/Radio/FoodsRadioList.js +2 -2
- package/dist/components/Radio/RadioBoolean.d.ts +2 -0
- package/dist/components/Radio/RadioBoolean.js +2 -2
- package/dist/components/RichTextEditor/components/ColorInput/style/index.d.ts +2 -2
- package/dist/components/RichTextEditor/components/Toolbar/style/index.d.ts +1 -1
- package/dist/components/Search/FoodsSearch.js +2 -2
- package/dist/components/Select/FoodsMultiSelect/FoodsMultiSelect.d.ts +40 -0
- package/dist/components/Select/FoodsMultiSelect/FoodsMultiSelect.js +20 -0
- package/dist/components/Select/FoodsMultiSelect/index.d.ts +1 -0
- package/dist/components/Select/FoodsMultiSelect/index.js +1 -0
- package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +4 -0
- package/dist/components/Select/FoodsSelect/Context/Provider.js +2 -2
- package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +1 -0
- package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +6 -1
- package/dist/components/Select/FoodsSelect/FoodsSelect.js +6 -6
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +2 -1
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.js +4 -4
- package/dist/components/Select/FoodsSelect/Options/SelectOptions.js +13 -10
- package/dist/components/Select/FoodsSelect/Select.d.ts +1 -0
- package/dist/components/Select/FoodsSelect/Select.js +4 -4
- package/dist/components/Select/FoodsSelect/index.d.ts +1 -0
- package/dist/components/Select/FoodsSelect/search.d.ts +2 -0
- package/dist/components/Select/FoodsSelect/search.js +1 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Tabs/CountTabs/CountTabs.js +4 -4
- package/dist/components/Textarea/Textarea.js +3 -3
- package/dist/components/UnitConverterPanel/UnitConverterPanel.js +10 -10
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/node_modules/@csstools/color-helpers/dist/index.js +1 -0
- package/dist/themes/FoodsThemeProvider.d.ts +2 -2
- package/dist/themes/FoodsThemeProvider.js +2 -2
- package/dist/themes/common/colors.d.ts +1 -1
- package/dist/themes/common/components.js +1 -1
- package/dist/themes/common/custom.d.ts +51 -1
- package/dist/themes/common/custom.js +1 -1
- package/dist/themes/common/focusRing.d.ts +8 -0
- package/dist/themes/common/focusRing.js +1 -0
- package/dist/themes/common/index.d.ts +1 -0
- package/dist/themes/createFoodsTheme.d.ts +3 -0
- package/dist/themes/createFoodsTheme.js +1 -0
- package/dist/themes/index.js +1 -1
- package/dist/themes/responsive/useResponsiveBreakpoints.js +1 -1
- package/dist/themes/themes/CollectiveTheme.js +1 -1
- package/dist/themes/themes/FoodPilotTheme.js +1 -1
- package/dist/themes/themes/WinePilotTheme.js +1 -1
- package/dist/themes/themes/index.d.ts +1 -0
- package/package.json +12 -3
package/dist/themes/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"../assets/logos/foodpilot.svg.js";import e from"../assets/logos/winepilot.svg.js";import i from"../assets/logos/positive.svg.js";import{CollectiveThemeOptions as t,CollectiveTheme as
|
|
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{useTheme as e
|
|
1
|
+
import{useTheme as e,useMediaQuery as t}from"@mui/material";const i=()=>{const i=e();return{isExtraSmall:t(i.breakpoints.down("sm")),isMobile:t(i.breakpoints.down("md")),isTablet:t(i.breakpoints.between("md","lg")),isDesktop:t(i.breakpoints.between("lg","xl")),isUltrawide:t(i.breakpoints.up("xl"))}};export{i as useResponsiveBreakpoints};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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{
|
|
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{
|
|
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.
|
|
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": "
|
|
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": "
|
|
376
|
+
"limit": "283 KB"
|
|
368
377
|
},
|
|
369
378
|
{
|
|
370
379
|
"name": "Inner Components",
|