@foodpilot/foods 0.3.119 → 0.3.120
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/Cards/TrajectoryCards/Blocks/horizontal/index.d.ts +2 -0
- package/dist/components/Cards/TrajectoryCards/Blocks/types.d.ts +22 -0
- package/dist/components/Cards/TrajectoryCards/Blocks/vertical/index.d.ts +2 -0
- package/dist/components/Cards/TrajectoryCards/TrajectoryCards.d.ts +6 -6
- package/dist/components/Cards/TrajectoryCards/components/Comparisons.d.ts +4 -0
- package/dist/components/Cards/TrajectoryCards/{Step.d.ts → components/Step.d.ts} +4 -2
- package/dist/components/Cards/TrajectoryCards/components/TargetToGoalComparison.d.ts +7 -0
- package/dist/components/Cards/TrajectoryCards/{Blocks → components}/TrajectoryComparison.d.ts +1 -3
- package/dist/components/Cards/TrajectoryCards/styles/index.d.ts +39 -0
- package/dist/components/ComparisonBlock/ComparisonBlock.d.ts +0 -1
- package/dist/components/ComparisonBlock/useColorAndArrow.d.ts +1 -2
- package/dist/main.js +12407 -12530
- package/dist/main.umd.cjs +124 -124
- package/package.json +1 -1
- package/dist/components/Cards/TrajectoryCards/Blocks/ThreeHorizontal.d.ts +0 -13
- package/dist/components/Cards/TrajectoryCards/Blocks/ThreeVertical.d.ts +0 -13
- package/dist/components/Cards/TrajectoryCards/Blocks/TwoHorizontal.d.ts +0 -12
- package/dist/components/Cards/TrajectoryCards/Blocks/TwoVertical.d.ts +0 -12
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
2
|
+
import { StepProps, TrajectoryStepsText } from '../TrajectoryCards';
|
|
3
|
+
export interface TargetoryCardsProps {
|
|
4
|
+
steps: {
|
|
5
|
+
start: StepProps;
|
|
6
|
+
last: StepProps;
|
|
7
|
+
target?: StepProps;
|
|
8
|
+
goal?: StepProps;
|
|
9
|
+
};
|
|
10
|
+
textOptions: TrajectoryStepsText;
|
|
11
|
+
}
|
|
12
|
+
export interface ComparisonProps {
|
|
13
|
+
currentValue: number | null;
|
|
14
|
+
targetValue: number | null;
|
|
15
|
+
orientation?: "horizontal" | "vertical";
|
|
16
|
+
}
|
|
17
|
+
export interface TargetComparisonProps {
|
|
18
|
+
currentValue: number | null;
|
|
19
|
+
targetValue: number | null;
|
|
20
|
+
label?: FlexibleString;
|
|
21
|
+
orientation?: "horizontal" | "vertical";
|
|
22
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StepType } from './Step';
|
|
1
|
+
import { StepType } from './components/Step.tsx';
|
|
3
2
|
import { FlexibleString } from '../../../innerComponents/FlexibleTypography.tsx';
|
|
4
3
|
export type StepProps = Omit<StepType, "label">;
|
|
5
4
|
export type TrajectoryPosition = "horizontal" | "vertical";
|
|
6
5
|
export type TrajectorySteps = {
|
|
7
6
|
start: StepProps;
|
|
8
|
-
|
|
7
|
+
last: StepProps;
|
|
9
8
|
target: StepProps;
|
|
9
|
+
goal: StepProps;
|
|
10
10
|
};
|
|
11
11
|
export type TrajectoryStepsText = {
|
|
12
12
|
startingStep: FlexibleString;
|
|
13
|
-
|
|
13
|
+
lastStep: FlexibleString;
|
|
14
14
|
targetStep: FlexibleString;
|
|
15
|
+
goalStep: FlexibleString;
|
|
15
16
|
};
|
|
16
17
|
export type TrajectoryCardsProps = {
|
|
17
18
|
steps: TrajectorySteps;
|
|
18
19
|
position: TrajectoryPosition;
|
|
19
|
-
improvement: Improvement;
|
|
20
20
|
textOptions?: TrajectoryStepsText;
|
|
21
21
|
};
|
|
22
|
-
export declare const TrajectoryCards: (props: TrajectoryCardsProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const TrajectoryCards: (props: TrajectoryCardsProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComparisonProps, TargetComparisonProps } from '../Blocks/types';
|
|
2
|
+
export declare const StartCurrentComparison: ({ currentValue, targetValue, orientation }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const LastTargetComparison: ({ currentValue, targetValue, orientation }: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const CurrentToGoalComparison: ({ currentValue, targetValue, label }: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
-
import { FlexibleString } from '
|
|
2
|
+
import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
3
3
|
export type StepType = {
|
|
4
|
-
year
|
|
4
|
+
year?: FlexibleString;
|
|
5
5
|
label: FlexibleString;
|
|
6
6
|
value: number | null;
|
|
7
7
|
unit: string;
|
|
@@ -12,6 +12,8 @@ type StepsProps = {
|
|
|
12
12
|
isLast: boolean;
|
|
13
13
|
isHorizontal?: boolean;
|
|
14
14
|
extra?: SxProps;
|
|
15
|
+
orientation?: 'horizontal' | 'vertical';
|
|
16
|
+
children?: React.ReactNode;
|
|
15
17
|
};
|
|
16
18
|
export declare const Step: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
2
|
+
export declare const TargetToGoalComparaison: (props: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
currentValue: number | null;
|
|
5
|
+
targetValue: number | null;
|
|
6
|
+
label?: FlexibleString;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/components/Cards/TrajectoryCards/{Blocks → components}/TrajectoryComparison.d.ts
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StepType } from '../Step';
|
|
1
|
+
import { StepType } from './Step.tsx';
|
|
3
2
|
type TrajectoryComparisonProps = {
|
|
4
|
-
improvement: Improvement;
|
|
5
3
|
value: StepType["value"];
|
|
6
4
|
comparedTo: StepType["value"];
|
|
7
5
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { StepType } from '../components/Step';
|
|
2
|
+
import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
3
|
+
interface StepsProps {
|
|
4
|
+
step: StepType;
|
|
5
|
+
isLast: boolean;
|
|
6
|
+
isHorizontal?: boolean;
|
|
7
|
+
orientation?: 'horizontal' | 'vertical';
|
|
8
|
+
extra?: Record<string, unknown>;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/material').GridOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, "position" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "children" | "spacing" | "sx" | "wrap" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "zeroMinWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
14
|
+
export declare const StartToCurrentArrow: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
17
|
+
orientation?: "horizontal" | "vertical";
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
export declare const CurrentToTargetArrow: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
22
|
+
orientation?: "horizontal" | "vertical";
|
|
23
|
+
}, {}, {}>;
|
|
24
|
+
export declare const LabelComparison: (props: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
currentValue: number | null;
|
|
27
|
+
targetValue: number | null;
|
|
28
|
+
label?: FlexibleString;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const LeftColumn: import('@emotion/styled').StyledComponent<import('@mui/material').GridOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
31
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
+
}, "position" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "children" | "spacing" | "sx" | "wrap" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "zeroMinWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
33
|
+
export declare const RightColumn: import('@emotion/styled').StyledComponent<import('@mui/material').GridOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
35
|
+
}, "position" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "direction" | "columns" | "container" | "children" | "spacing" | "sx" | "wrap" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "zeroMinWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
36
|
+
export declare const StyledStartStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const StyledLastStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const StyledTargetStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconMapping } from '../Icons/index.ts';
|
|
2
|
-
import { Improvement } from './ComparisonBlock.tsx';
|
|
3
2
|
export type ColorSet = {
|
|
4
3
|
primaryColor: string;
|
|
5
4
|
secondaryColor: string;
|
|
@@ -8,5 +7,5 @@ type IconAndColor = {
|
|
|
8
7
|
icon: keyof IconMapping;
|
|
9
8
|
color: ColorSet;
|
|
10
9
|
};
|
|
11
|
-
export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number
|
|
10
|
+
export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number) => IconAndColor;
|
|
12
11
|
export {};
|