@foodpilot/foods 0.3.37 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Box/BlockList/BlockItemContainer.d.ts +2 -0
- package/dist/components/Box/BlockList/BlockListContainer.d.ts +4 -0
- package/dist/components/Box/BlockList/BlockListHeader.d.ts +12 -0
- package/dist/components/Box/BlockList/Blocks/CheckboxBlock.d.ts +1 -0
- package/dist/components/Box/BlockList/Blocks/GroupBlock.d.ts +1 -0
- package/dist/components/Box/BlockList/Blocks/NumericalBlock.d.ts +1 -0
- package/dist/components/Box/BlockList/Blocks/RadioBlock.d.ts +1 -0
- package/dist/components/Box/BlockList/Blocks/SelectBlock.d.ts +1 -0
- package/dist/components/Box/BlockList/index.d.ts +1 -0
- package/dist/components/Box/InfoBox.d.ts +4 -2
- package/dist/components/Box/index.d.ts +1 -0
- package/dist/components/Cards/TrajectoryCards/TrajectoryCards.d.ts +18 -0
- package/dist/components/Cards/index.d.ts +1 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlock.d.ts +33 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlockHorizontalLarge.d.ts +23 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlockHorizontalMedium.d.ts +23 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlockHorizontalSmall.d.ts +17 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlockVerticalLarge.d.ts +23 -0
- package/dist/components/ComparisonBlock/FoodsComparisonBlockVerticalMedium.d.ts +23 -0
- package/dist/components/ComparisonBlock/index.d.ts +1 -0
- package/dist/components/Icons/iconConfig.d.ts +3 -0
- package/dist/main.js +5874 -5902
- package/dist/main.umd.cjs +38 -38
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type BlockListHeaderProps = {
|
|
2
|
+
title: JSX.Element;
|
|
3
|
+
cancel: {
|
|
4
|
+
label: string;
|
|
5
|
+
action: () => void;
|
|
6
|
+
};
|
|
7
|
+
confirm: {
|
|
8
|
+
label: string;
|
|
9
|
+
action: () => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const BlockListHeader: (_props: BlockListHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CheckboxBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GroupBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NumericalBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RadioBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectBlock: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BlockListContainer';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type InfoBoxProps = {
|
|
2
|
-
|
|
2
|
+
header: JSX.Element;
|
|
3
|
+
info?: JSX.Element;
|
|
4
|
+
children: JSX.Element;
|
|
3
5
|
};
|
|
4
|
-
export declare const InfoBox: (
|
|
6
|
+
export declare const InfoBox: (_props: InfoBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Step = {
|
|
2
|
+
year: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: number | null;
|
|
5
|
+
unit: string;
|
|
6
|
+
incomplete: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type TrajectorySteps = {
|
|
9
|
+
start: Step;
|
|
10
|
+
current: Step | null;
|
|
11
|
+
target: Step;
|
|
12
|
+
};
|
|
13
|
+
export type TrajectoryCardsProps = {
|
|
14
|
+
steps: TrajectorySteps;
|
|
15
|
+
position: "horizontal" | "vertical";
|
|
16
|
+
comparisonDirection: "up" | "down";
|
|
17
|
+
};
|
|
18
|
+
export declare const TrajectoryCards: (_props: TrajectoryCardsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TrajectoryCards/TrajectoryCards';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type Improvement = "increase" | "decrease" | "equal";
|
|
2
|
+
type HorizontalLayout = {
|
|
3
|
+
direction: "horizontal";
|
|
4
|
+
size: "L" | "M" | "S";
|
|
5
|
+
};
|
|
6
|
+
type VerticalLayout = {
|
|
7
|
+
direction: "vertical";
|
|
8
|
+
size: "L" | "M";
|
|
9
|
+
};
|
|
10
|
+
export type ColorSet = {
|
|
11
|
+
primaryColor: string;
|
|
12
|
+
secondaryColor: string;
|
|
13
|
+
};
|
|
14
|
+
export type ColorsType = Record<string, ColorSet>;
|
|
15
|
+
export declare const Colors: ColorsType;
|
|
16
|
+
type Layout = HorizontalLayout | VerticalLayout;
|
|
17
|
+
type ComparisonBlockProps = {
|
|
18
|
+
currentValue: {
|
|
19
|
+
value: number;
|
|
20
|
+
unit: string;
|
|
21
|
+
sign?: "+" | "-";
|
|
22
|
+
};
|
|
23
|
+
comparedTo: {
|
|
24
|
+
value: number;
|
|
25
|
+
unit: string;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
improvement: Improvement;
|
|
29
|
+
comparisonText?: string;
|
|
30
|
+
layout?: Layout;
|
|
31
|
+
};
|
|
32
|
+
export declare const FoodsComparisonBlock: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconMapping } from '../Icons';
|
|
2
|
+
import { ColorSet } from './FoodsComparisonBlock.tsx';
|
|
3
|
+
|
|
4
|
+
type ComparisonBlockProps = {
|
|
5
|
+
currentValue: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
sign?: "+" | "-";
|
|
9
|
+
};
|
|
10
|
+
comparedTo: {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
iconName: keyof IconMapping;
|
|
16
|
+
colors: ColorSet;
|
|
17
|
+
comparisonText?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const FoodsComparisonBlockHorizontalLarge: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColorSet } from './FoodsComparisonBlock.tsx';
|
|
2
|
+
import { IconMapping } from '../Icons';
|
|
3
|
+
|
|
4
|
+
type ComparisonBlockProps = {
|
|
5
|
+
currentValue: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
sign?: "+" | "-";
|
|
9
|
+
};
|
|
10
|
+
comparedTo: {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
iconName: keyof IconMapping;
|
|
16
|
+
colors: ColorSet;
|
|
17
|
+
comparisonText?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const FoodsComparisonBlockHorizontalMedium: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IconMapping } from '../Icons';
|
|
2
|
+
import { ColorSet } from './FoodsComparisonBlock.tsx';
|
|
3
|
+
|
|
4
|
+
type ComparisonBlockProps = {
|
|
5
|
+
currentValue: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
sign?: "+" | "-";
|
|
9
|
+
};
|
|
10
|
+
iconName: keyof IconMapping;
|
|
11
|
+
colors: ColorSet;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const FoodsComparisonBlockHorizontalSmall: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconMapping } from '../Icons';
|
|
2
|
+
import { ColorSet } from './FoodsComparisonBlock.tsx';
|
|
3
|
+
|
|
4
|
+
type ComparisonBlockProps = {
|
|
5
|
+
currentValue: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
sign?: "+" | "-";
|
|
9
|
+
};
|
|
10
|
+
comparedTo: {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
iconName: keyof IconMapping;
|
|
16
|
+
colors: ColorSet;
|
|
17
|
+
comparisonText?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const FoodsComparisonBlockVerticalLarge: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconMapping } from '../Icons';
|
|
2
|
+
import { ColorSet } from './FoodsComparisonBlock.tsx';
|
|
3
|
+
|
|
4
|
+
type ComparisonBlockProps = {
|
|
5
|
+
currentValue: {
|
|
6
|
+
value: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
sign?: "+" | "-";
|
|
9
|
+
};
|
|
10
|
+
comparedTo: {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
iconName: keyof IconMapping;
|
|
16
|
+
colors: ColorSet;
|
|
17
|
+
comparisonText?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const FoodsComparisonBlockVerticalMedium: (props: ComparisonBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FoodsComparisonBlock';
|
|
@@ -41,6 +41,9 @@ export declare const iconMapping: {
|
|
|
41
41
|
readonly energy: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
42
42
|
title?: string;
|
|
43
43
|
}>;
|
|
44
|
+
readonly equal: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
45
|
+
title?: string;
|
|
46
|
+
}>;
|
|
44
47
|
readonly euros: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
45
48
|
title?: string;
|
|
46
49
|
}>;
|