@foodpilot/foods 0.3.108 → 0.3.110

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,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { TypographyProps } from '@mui/material';
2
3
  import { ChartProps } from 'react-chartjs-2';
3
4
  import { Property } from 'csstype';
4
5
  import { Legend } from './DoughnutChartLegend';
@@ -14,5 +15,8 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
14
15
  className?: string;
15
16
  valuesFormatterFn?: (value: number) => string;
16
17
  createPalette?: boolean;
18
+ isLoading?: boolean;
19
+ displayTotal?: string | boolean;
20
+ displayTotalVariant?: TypographyProps["variant"];
17
21
  };
18
22
  export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -326,6 +326,9 @@ export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend
326
326
  icons?: import('react').ReactNode[] | undefined;
327
327
  valuesFormatterFn?: ((value: number) => string) | undefined;
328
328
  createPalette?: boolean | undefined;
329
+ isLoading?: boolean | undefined;
330
+ displayTotal?: (string | boolean) | undefined;
331
+ displayTotalVariant?: import('@mui/material').TypographyProps["variant"];
329
332
  };
330
333
  export declare const extractPaletteFromTheme: (theme: Theme, min: number, max: number) => Property.Color[];
331
334
  export declare const createPalette: (colors: Property.Color[], values: number[]) => Property.Color[];
@@ -2,13 +2,13 @@ import { InputBaseProps } from '@mui/material';
2
2
  import { FoodsIconButtonProps } from '../../Button/FoodsIconButton';
3
3
 
4
4
  type TextOptions = {
5
- defaultValue: string;
5
+ defaultValue?: string;
6
6
  };
7
7
  type OverridenProps = {
8
8
  value: string;
9
9
  onChange: (newValue: string) => void;
10
10
  defaultValue?: string;
11
- textOptions: TextOptions;
11
+ textOptions?: TextOptions;
12
12
  unit?: string;
13
13
  error?: boolean;
14
14
  disabled?: boolean;