@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.
@@ -0,0 +1,2 @@
1
+ import { TargetoryCardsProps } from '../types';
2
+ export declare const Horizontal: ({ steps, textOptions }: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ import { TargetoryCardsProps } from '../types';
2
+ export declare const Vertical: ({ steps, textOptions }: TargetoryCardsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,22 @@
1
- import { Improvement } from '../../ComparisonBlock/ComparisonBlock.tsx';
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
- current: StepProps | null;
7
+ last: StepProps;
9
8
  target: StepProps;
9
+ goal: StepProps;
10
10
  };
11
11
  export type TrajectoryStepsText = {
12
12
  startingStep: FlexibleString;
13
- currentStep: FlexibleString;
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 '../../../innerComponents/FlexibleTypography';
2
+ import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
3
3
  export type StepType = {
4
- year: FlexibleString;
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;
@@ -1,7 +1,5 @@
1
- import { Improvement } from '../../../ComparisonBlock/ComparisonBlock.tsx';
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 {};
@@ -15,7 +15,6 @@ type ComparisonBlockProps = {
15
15
  unit?: string;
16
16
  label?: string;
17
17
  };
18
- improvement: Improvement;
19
18
  disableText?: boolean;
20
19
  comparisonText?: string;
21
20
  layout?: Layout;
@@ -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, improvement: Improvement) => IconAndColor;
10
+ export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number) => IconAndColor;
12
11
  export {};