@foodpilot/foods 2.2.4 → 2.2.6
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.
- package/dist/components/Banner/Banner.d.ts +16 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Chart/HistogramComparisonChart/ComparisonLabel.d.ts +0 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +3180 -3161
- package/dist/main.umd.cjs +90 -90
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { iconMapping } from '../Icons';
|
|
4
|
+
export type MessageVariant = "info" | "error";
|
|
5
|
+
type StylePreset = {
|
|
6
|
+
icon: keyof typeof iconMapping;
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
type BannerProps = {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
BoxProps?: BoxProps;
|
|
12
|
+
variant?: MessageVariant;
|
|
13
|
+
stylePresetOverride?: Partial<StylePreset>;
|
|
14
|
+
};
|
|
15
|
+
export declare const Banner: (props: BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Banner } from './Banner';
|
|
@@ -9,7 +9,6 @@ export type ComparisonLabelProps = LabelProps & {
|
|
|
9
9
|
language?: string;
|
|
10
10
|
improvementType?: "increase" | "decrease";
|
|
11
11
|
chartHeight?: number;
|
|
12
|
-
valuesFormatterFn?: (value: number) => string;
|
|
13
12
|
};
|
|
14
13
|
export declare const ComparisonLabel: (props: ComparisonLabelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
14
|
export default ComparisonLabel;
|