@foodpilot/foods 0.3.63 → 0.3.64

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,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { BoxProps } from '@mui/material';
2
3
 
3
4
  type ScoreContainerProps = {
4
5
  children: ReactNode;
5
- className?: string;
6
+ boxProps?: BoxProps;
6
7
  };
7
8
  export declare const ScoreContainer: (props: ScoreContainerProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -0,0 +1,14 @@
1
+ import { SxProps } from '@mui/system';
2
+
3
+ export type ContentBlockProps = {
4
+ title: string;
5
+ subtitle?: string;
6
+ callToAction?: {
7
+ text: string;
8
+ onClick: () => void;
9
+ };
10
+ children?: JSX.Element | JSX.Element[];
11
+ image?: JSX.Element;
12
+ sxProps?: SxProps;
13
+ };
14
+ export declare const ContentBlock: (props: ContentBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ type IndicatorBoxProps = {
2
+ title: string;
3
+ children: JSX.Element | JSX.Element[];
4
+ objectives: {
5
+ objective: string;
6
+ component: JSX.Element;
7
+ }[];
8
+ tooltipMessage?: string;
9
+ };
10
+ export declare const IndicatorBox: (props: IndicatorBoxProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,8 +1,10 @@
1
1
  export * from './AdditionalContentBox';
2
2
  export * from './CategoryBox';
3
3
  export * from './ContextualContentBox';
4
+ export * from './ContentBlock';
4
5
  export * from './DottedBox';
5
6
  export * from './HelperBox';
7
+ export * from './IndicatorBox';
6
8
  export * from './InfoBox';
7
9
  export * from './LineGroupBox';
8
10
  export * from './QuoteBox';
@@ -2,7 +2,7 @@ import { ToggleButtonProps } from '@mui/material';
2
2
 
3
3
  export declare const CustomToggleButton: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
5
- }, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
+ }, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
6
  type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
7
7
  export type TertiaryToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
8
8
  choices: string[];
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
 
4
4
  export declare const CustomToggleButtonNodeTitle: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
6
- }, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
6
+ }, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
7
7
  type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
8
8
  export type TertiaryToggleButtonPropsNodeTitle = ToggleButtonsPropsWithoutEnforcedKeys & {
9
9
  choices: ReactNode[];
@@ -12,5 +12,6 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
12
12
  icons?: ReactNode[];
13
13
  children?: ReactNode;
14
14
  className?: string;
15
+ valuesFormatterFn?: (value: number) => string;
15
16
  };
16
17
  export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -324,6 +324,7 @@ export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend
324
324
  updateMode?: import('chart.js').UpdateMode | undefined;
325
325
  valuesUnit?: string | undefined;
326
326
  icons?: import('react').ReactNode[] | undefined;
327
+ valuesFormatterFn?: ((value: number) => string) | undefined;
327
328
  };
328
329
  export declare const extractPaletteFromTheme: (theme: Theme, min: number, max: number) => Property.Color[];
329
330
  export declare const createPalette: (colors: Property.Color[], values: number[]) => Property.Color[];
@@ -1,4 +1,4 @@
1
- import { RoundInputProps } from '../Input/RoundInput';
1
+ import { RoundInputProps } from '../Input';
2
2
 
3
3
  export type TextFieldProps = RoundInputProps & {
4
4
  title: string;
@@ -0,0 +1,7 @@
1
+ export type NumberWithUnitProps = {
2
+ value: number | null;
3
+ unit: string;
4
+ size?: "micro" | "small" | "inter" | "big";
5
+ position?: "default-side" | "below-left-aligned" | "below-center-aligned";
6
+ };
7
+ export declare const NumberWithUnit: (props: NumberWithUnitProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from './NumberUnit';
1
+ export * from './NumberWithUnit.tsx';
2
2
  export * from './Score';
@@ -6,7 +6,6 @@ export * from './CardImage';
6
6
  export * from './Cards';
7
7
  export * from './Chart';
8
8
  export * from './Checkbox';
9
- export * from './ComparisonBlock';
10
9
  export * from './CustomTypography';
11
10
  export * from './Dialog';
12
11
  export * from './Field';
@@ -27,3 +26,4 @@ export * from './Ssq';
27
26
  export * from './Tabs';
28
27
  export * from './Text';
29
28
  export * from './Treeview';
29
+ export * from './ComparisonBlock';