@foodpilot/foods 0.3.123 → 0.3.125

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.
@@ -1,2 +1,2 @@
1
1
  import { TargetoryCardsProps } from '../types';
2
- export declare const Horizontal: ({ steps, textOptions }: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Horizontal: (props: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,22 @@
1
1
  import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
2
+ import { Improvement } from '../../../ComparisonBlock/ComparisonBlock';
2
3
  import { StepProps, TrajectoryStepsText } from '../TrajectoryCards';
3
4
  export interface TargetoryCardsProps {
4
5
  steps: {
5
6
  start: StepProps;
6
- last: StepProps;
7
- target?: StepProps;
7
+ targetWithoutPlan?: StepProps;
8
+ targetWithPlan?: StepProps;
8
9
  goal?: StepProps;
9
10
  };
10
11
  textOptions: TrajectoryStepsText;
11
12
  noGoalLabel?: React.ReactNode;
13
+ improvement: Improvement;
12
14
  }
13
15
  export interface ComparisonProps {
14
16
  currentValue: number | null;
15
17
  targetValue: number | null;
16
18
  orientation?: "horizontal" | "vertical";
19
+ improvement: Improvement;
17
20
  }
18
21
  export interface TargetComparisonProps {
19
22
  currentValue: number | null;
@@ -21,4 +24,6 @@ export interface TargetComparisonProps {
21
24
  label?: FlexibleString;
22
25
  noObjectiveLabel?: string;
23
26
  orientation?: "horizontal" | "vertical";
27
+ improvement: Improvement;
28
+ outsideContainer?: boolean;
24
29
  }
@@ -1,2 +1,2 @@
1
1
  import { TargetoryCardsProps } from '../types';
2
- export declare const Vertical: ({ steps, textOptions, noGoalLabel }: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Vertical: (props: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,18 @@
1
1
  import { StepType } from './components/Step.tsx';
2
2
  import { FlexibleString } from '../../../innerComponents/FlexibleTypography.tsx';
3
+ import { Improvement } from '../../ComparisonBlock/ComparisonBlock.tsx';
3
4
  export type StepProps = Omit<StepType, "label">;
4
5
  export type TrajectoryPosition = "horizontal" | "vertical";
5
6
  export type TrajectorySteps = {
6
7
  start: StepProps;
7
- last: StepProps;
8
- target: StepProps;
8
+ targetWithoutPlan?: StepProps;
9
+ targetWithPlan: StepProps;
9
10
  goal: StepProps;
10
11
  };
11
12
  export type TrajectoryStepsText = {
12
13
  startingStep: FlexibleString;
13
- lastStep: FlexibleString;
14
- targetStep: FlexibleString;
14
+ targetWithoutPlanStep: FlexibleString;
15
+ targetWithPlanStep: FlexibleString;
15
16
  goalStep: FlexibleString;
16
17
  noGoalLabel?: string;
17
18
  };
@@ -19,5 +20,6 @@ export type TrajectoryCardsProps = {
19
20
  steps: TrajectorySteps;
20
21
  position: TrajectoryPosition;
21
22
  textOptions?: TrajectoryStepsText;
23
+ improvement: Improvement;
22
24
  };
23
25
  export declare const TrajectoryCards: (props: TrajectoryCardsProps) => import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,4 +1,4 @@
1
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, noObjectiveLabel, orientation }: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const StartCurrentComparison: ({ currentValue, targetValue, orientation, improvement }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const LastTargetComparison: ({ currentValue, targetValue, orientation, improvement }: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const CurrentToGoalComparison: ({ currentValue, targetValue, label, noObjectiveLabel, orientation, improvement, outsideContainer }: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,11 @@
1
1
  import { FlexibleString } from '../../../../../innerComponents/FlexibleTypography';
2
+ import { Improvement } from '../../../../ComparisonBlock/ComparisonBlock';
2
3
  export interface HorizontalTargetComparisonProps {
3
4
  currentValue: number | null;
4
5
  targetValue: number | null;
5
6
  label?: FlexibleString;
6
7
  noObjectiveLabel?: string;
8
+ improvement: Improvement;
9
+ outsideContainer?: boolean;
7
10
  }
8
11
  export declare const HorizontalTargetToGoalComparison: (props: HorizontalTargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import { FlexibleString } from '../../../../../innerComponents/FlexibleTypography';
2
+ import { Improvement } from '../../../../ComparisonBlock/ComparisonBlock';
2
3
  export interface VerticalTargetComparisonProps {
3
4
  currentValue: number | null;
4
5
  targetValue: number | null;
5
6
  label?: FlexibleString;
6
7
  noObjectiveLabel?: string;
8
+ improvement: Improvement;
7
9
  }
8
10
  export declare const VerticalTargetToGoalComparison: (props: VerticalTargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,13 @@
1
1
  import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
2
+ import { Improvement } from '../../../ComparisonBlock/ComparisonBlock';
2
3
  type TargetComparisonProps = {
3
4
  currentValue: number | null;
4
5
  targetValue: number | null;
5
6
  label?: FlexibleString;
6
7
  noObjectiveLabel?: string;
7
8
  orientation?: "vertical" | "horizontal";
9
+ improvement: Improvement;
10
+ outsideContainer?: boolean;
8
11
  };
9
12
  export declare const TargetToGoalComparaison: (props: TargetComparisonProps) => import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -1,7 +1,9 @@
1
+ import { Improvement } from '../../../ComparisonBlock/ComparisonBlock.tsx';
1
2
  import { StepType } from './Step.tsx';
2
3
  type TrajectoryComparisonProps = {
3
4
  value: StepType["value"];
4
5
  comparedTo: StepType["value"];
6
+ improvement: Improvement;
5
7
  };
6
8
  export declare const TrajectoryComparison: (props: TrajectoryComparisonProps) => import("react/jsx-runtime").JSX.Element | undefined;
7
9
  export {};
@@ -6,6 +6,7 @@ interface StepsProps {
6
6
  orientation?: 'horizontal' | 'vertical';
7
7
  extra?: Record<string, unknown>;
8
8
  children?: React.ReactNode;
9
+ fullHeight?: boolean;
9
10
  }
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"> & {
11
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;
@@ -27,5 +28,5 @@ export declare const RightColumn: import('@emotion/styled').StyledComponent<impo
27
28
  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;
28
29
  }, "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>, {}, {}>;
29
30
  export declare const StyledStartStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
30
- export declare const StyledLastStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const StyledWithoutPlanStep: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
31
32
  export {};
@@ -15,6 +15,7 @@ type ComparisonBlockProps = {
15
15
  unit?: string;
16
16
  label?: string;
17
17
  };
18
+ improvement: Improvement;
18
19
  disableText?: boolean;
19
20
  comparisonText?: string;
20
21
  layout?: Layout;
@@ -1,4 +1,5 @@
1
1
  import { IconMapping } from '../Icons/index.ts';
2
+ import { Improvement } from './ComparisonBlock.tsx';
2
3
  export type ColorSet = {
3
4
  primaryColor: string;
4
5
  secondaryColor: string;
@@ -7,5 +8,5 @@ type IconAndColor = {
7
8
  icon: keyof IconMapping;
8
9
  color: ColorSet;
9
10
  };
10
- export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number) => IconAndColor;
11
+ export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number, improvement: Improvement) => IconAndColor;
11
12
  export {};