@foodpilot/foods 0.3.74 → 0.3.76
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/Badge/Badge.d.ts +5 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegend.d.ts +1 -0
- package/dist/components/Chart/EvolutionChart.d.ts +3 -8
- package/dist/components/Chart/WaterfallChart/barXOffsetPlugin.d.ts +3 -0
- package/dist/components/Chart/WaterfallChart.d.ts +21 -0
- package/dist/components/Chart/index.d.ts +9 -0
- package/dist/components/Tooltip/StyledTooltip.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/main.js +6076 -5907
- package/dist/main.umd.cjs +99 -99
- package/dist/themes/common/MUIComponents/index.d.ts +3 -0
- package/dist/themes/common/index.d.ts +5 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/themes/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,5 +4,10 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
export type BadgeProps = Omit<BoxProps, "content"> & {
|
|
5
5
|
size?: "small" | "medium" | "big";
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
};
|
|
9
|
+
export type BagdeTooltipProps = {
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
children: JSX.Element;
|
|
7
12
|
};
|
|
8
13
|
export declare const Badge: (props: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ChartDataset
|
|
1
|
+
import { ChartDataset } from 'chart.js';
|
|
2
2
|
import { IconMapping } from '../Icons';
|
|
3
3
|
import { DoughnutChartLegendProps } from './DoughnutChart/DoughnutChartLegend';
|
|
4
4
|
|
|
5
5
|
export type MixedChartDataset = ChartDataset<"line" | "bar">;
|
|
6
|
-
export type
|
|
6
|
+
export type EvolutionDataset = {
|
|
7
7
|
label: string;
|
|
8
8
|
data: number[];
|
|
9
9
|
};
|
|
10
10
|
export type EvolutionChartProps = {
|
|
11
|
-
values:
|
|
11
|
+
values: EvolutionDataset[];
|
|
12
12
|
labels: string[];
|
|
13
13
|
icons?: (keyof IconMapping)[];
|
|
14
14
|
positiveArrowIcon?: keyof IconMapping;
|
|
@@ -19,8 +19,3 @@ export type EvolutionChartProps = {
|
|
|
19
19
|
legend?: DoughnutChartLegendProps["legend"];
|
|
20
20
|
};
|
|
21
21
|
export declare const EvolutionChart: (props: EvolutionChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare module "chart.js" {
|
|
23
|
-
interface ChartDatasetProperties<TType extends ChartType, TData> {
|
|
24
|
-
kind?: "bottom" | "top";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type WaterfallDataset = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
export type Colors = {
|
|
6
|
+
reference?: string;
|
|
7
|
+
target?: string;
|
|
8
|
+
values?: string;
|
|
9
|
+
diff?: string;
|
|
10
|
+
};
|
|
11
|
+
type High = number;
|
|
12
|
+
type Low = number;
|
|
13
|
+
export type WaterfallChartProps = {
|
|
14
|
+
reference: WaterfallDataset;
|
|
15
|
+
target: WaterfallDataset;
|
|
16
|
+
labels: string[];
|
|
17
|
+
values: [Low, High][];
|
|
18
|
+
colors?: Colors;
|
|
19
|
+
};
|
|
20
|
+
export declare const WaterfallChart: (props: WaterfallChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { ChartType } from 'chart.js';
|
|
2
|
+
|
|
1
3
|
export * from './DoughnutChart/DoughnutChart';
|
|
2
4
|
export * from './ScatterPlot';
|
|
3
5
|
export * from './EvolutionChart';
|
|
6
|
+
export * from './WaterfallChart';
|
|
7
|
+
declare module "chart.js" {
|
|
8
|
+
interface ChartDatasetProperties<TType extends ChartType, TData> {
|
|
9
|
+
kind?: "bottom" | "top";
|
|
10
|
+
xoffset?: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StyledTooltip } from './StyledTooltip';
|