@foodpilot/foods 0.3.125 → 0.3.127
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/Cards/ScoreCard/Header/ScoreCardHeader.d.ts +4 -1
- package/dist/components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.d.ts +4 -1
- package/dist/components/Chart/HorizontalGauge/HorizontalGaugeChart.d.ts +1 -1
- package/dist/components/Chart/HorizontalGauge/components/GaugeLabels.d.ts +1 -1
- package/dist/components/Chart/HorizontalGauge/components/GaugeMarkers.d.ts +1 -1
- package/dist/components/Chart/HorizontalGauge/components/GaugeTooltip.d.ts +2 -1
- package/dist/components/Chart/HorizontalGauge/types.d.ts +3 -0
- package/dist/main.js +4386 -4310
- package/dist/main.umd.cjs +105 -105
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Orientation } from '@mui/material';
|
|
2
|
+
import { Variant } from './ValueSwitcher/ValueSwitcher';
|
|
1
3
|
import { OptionsPopoverOption } from '../../../Popover';
|
|
2
4
|
export type HeaderOptions = {
|
|
3
5
|
id: number;
|
|
@@ -9,6 +11,7 @@ export type ScoreCardHeaderProps = {
|
|
|
9
11
|
selectedItemId: number | null;
|
|
10
12
|
options: HeaderOptions[];
|
|
11
13
|
information?: string;
|
|
12
|
-
variant?:
|
|
14
|
+
variant?: Variant;
|
|
15
|
+
orientation?: Orientation;
|
|
13
16
|
};
|
|
14
17
|
export declare const ScoreCardHeader: (props: ScoreCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { OptionsPopoverSection } from '../../../../Popover';
|
|
2
2
|
import { HeaderOptions } from '../ScoreCardHeader';
|
|
3
|
+
export type Orientation = "horizontal" | "vertical";
|
|
4
|
+
export type Variant = "primary" | "secondary";
|
|
3
5
|
export type OptionsPopoverType = {
|
|
4
6
|
content: OptionsPopoverSection[];
|
|
5
7
|
onChange: (optionId: number) => void;
|
|
@@ -7,6 +9,7 @@ export type OptionsPopoverType = {
|
|
|
7
9
|
export type ValueSwitcherProps = {
|
|
8
10
|
selectedItem: HeaderOptions | undefined;
|
|
9
11
|
optionsProps: OptionsPopoverType;
|
|
10
|
-
variant?:
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
orientation?: Orientation;
|
|
11
14
|
};
|
|
12
15
|
export declare const ValueSwitcher: (props: ValueSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HorizontalGaugeChartProps } from './types';
|
|
2
|
-
export declare const HorizontalGaugeChart: ({ minValue, maxValue, averageValue, companyValue, labelAverage, labelCompany, width, height, label, animated, backgroundProps, precision, unit, }: HorizontalGaugeChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const HorizontalGaugeChart: ({ minValue, maxValue, averageValue, companyValue, labelAverage, labelCompany, width, height, label, animated, backgroundProps, precision, unit, valueFormatter, }: HorizontalGaugeChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GaugeLabelsProps } from '../types';
|
|
2
|
-
export declare const GaugeLabels: ({ minValue, maxValue, companyValue, averageValue, companyPosition, averagePosition, labelCompany, labelAverage, labelYPositions, labelPositions, animated, precision, unit }: GaugeLabelsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const GaugeLabels: ({ minValue, maxValue, companyValue, averageValue, companyPosition, averagePosition, labelCompany, labelAverage, labelYPositions, labelPositions, animated, precision, unit, valueFormatter }: GaugeLabelsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GaugeMarkersProps } from '../types';
|
|
2
|
-
export declare const GaugeMarkers: ({ scale, companyValue, averageValue, markersYPosition, companyMarkerY, averageMarkerY, animated, minValue, maxValue, precision, unit, labelCompany, labelAverage, }: GaugeMarkersProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const GaugeMarkers: ({ scale, companyValue, averageValue, markersYPosition, companyMarkerY, averageMarkerY, animated, minValue, maxValue, precision, unit, labelCompany, labelAverage, valueFormatter, }: GaugeMarkersProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,7 @@ interface GaugeTooltipProps {
|
|
|
4
4
|
value: number;
|
|
5
5
|
unit: string;
|
|
6
6
|
precision?: number;
|
|
7
|
+
valueFormatter?: (value: number) => string;
|
|
7
8
|
}
|
|
8
|
-
export declare const GaugeTooltip: ({ label, value, unit, precision }: GaugeTooltipProps) => ReactNode;
|
|
9
|
+
export declare const GaugeTooltip: ({ label, value, unit, precision, valueFormatter }: GaugeTooltipProps) => ReactNode;
|
|
9
10
|
export {};
|
|
@@ -12,6 +12,7 @@ export type HorizontalGaugeChartProps = {
|
|
|
12
12
|
backgroundProps?: BackgroundProps;
|
|
13
13
|
precision?: number;
|
|
14
14
|
unit?: string;
|
|
15
|
+
valueFormatter?: (value: number) => string;
|
|
15
16
|
};
|
|
16
17
|
export type TextAnchor = 'start' | 'middle' | 'end';
|
|
17
18
|
export type LabelPosition = {
|
|
@@ -97,6 +98,7 @@ export type GaugeMarkersProps = {
|
|
|
97
98
|
unit?: string;
|
|
98
99
|
labelCompany?: string;
|
|
99
100
|
labelAverage?: string;
|
|
101
|
+
valueFormatter?: (value: number) => string;
|
|
100
102
|
};
|
|
101
103
|
export type GaugeLabelsProps = {
|
|
102
104
|
minValue: number;
|
|
@@ -112,4 +114,5 @@ export type GaugeLabelsProps = {
|
|
|
112
114
|
animated: boolean;
|
|
113
115
|
precision?: number;
|
|
114
116
|
unit?: string;
|
|
117
|
+
valueFormatter?: (value: number) => string;
|
|
115
118
|
};
|