@foodpilot/foods 0.5.35 → 0.5.37

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,7 +1,8 @@
1
1
  import { BoxProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
+ import { NumberWithUnitValue } from '../Number';
3
4
  type PropertyIndicator = {
4
- value: number;
5
+ value: NonNullable<NumberWithUnitValue>;
5
6
  unit: string;
6
7
  };
7
8
  type FormPropertyBoxProps = BoxProps & {
@@ -6,7 +6,7 @@ type Comparison = {
6
6
  improvement: Improvement;
7
7
  };
8
8
  type FormUnitProps = BoxProps & {
9
- value: number;
9
+ value: NonNullable<number | string>;
10
10
  unit: string;
11
11
  comparison?: Comparison;
12
12
  };
@@ -0,0 +1 @@
1
+ export declare const ANIMATION_SIDEBAR_DURATION = 300;
@@ -1,5 +1,6 @@
1
+ export type NumberWithUnitValue = number | string | null;
1
2
  export type NumberWithUnitProps = {
2
- value: number | string | null;
3
+ value: NumberWithUnitValue;
3
4
  unit: string;
4
5
  size?: "micro" | "small" | "inter" | "big";
5
6
  position?: "default-side" | "below-left-aligned" | "below-center-aligned";