@foodpilot/foods 0.3.57 → 0.3.59
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/ScoreContainer.d.ts +8 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/FoodsToggleButton.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChart.d.ts +3 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegend.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendRight.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart/doughnutChartAdditions.d.ts +3 -0
- package/dist/components/Popover/AnchoredPopover.d.ts +1 -0
- package/dist/main.js +10977 -10557
- package/dist/main.umd.cjs +101 -101
- package/package.json +2 -1
|
@@ -13,6 +13,7 @@ export type FoodsToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
|
13
13
|
ToggleButtonProps?: ToggleButtonsPropsWithoutEnforcedKeys;
|
|
14
14
|
buttonGroup?: boolean;
|
|
15
15
|
unselectable?: boolean;
|
|
16
|
+
className?: string;
|
|
16
17
|
};
|
|
17
18
|
export declare const FoodsToggleButton: import('react').ForwardRefExoticComponent<Omit<FoodsToggleButtonProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
18
19
|
export {};
|
|
@@ -5,9 +5,12 @@ import { Legend } from './DoughnutChartLegend';
|
|
|
5
5
|
|
|
6
6
|
export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> & {
|
|
7
7
|
values?: number[];
|
|
8
|
+
valuesUnit?: string;
|
|
8
9
|
labels?: string[];
|
|
9
10
|
colors?: Property.Color[];
|
|
10
11
|
legend?: Legend;
|
|
12
|
+
icons?: ReactNode[];
|
|
11
13
|
children?: ReactNode;
|
|
14
|
+
className?: string;
|
|
12
15
|
};
|
|
13
16
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend
|
|
|
10
10
|
palette: Property.Color[];
|
|
11
11
|
hoveredArcIndex: number | null;
|
|
12
12
|
setHoveredArcIndex: Dispatch<SetStateAction<number | null>>;
|
|
13
|
+
handleChartHover: (x: number | null, y: number | null) => void;
|
|
13
14
|
}) => {
|
|
14
15
|
data: {
|
|
15
16
|
datasets: {
|
|
@@ -321,6 +322,8 @@ export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend
|
|
|
321
322
|
datasetIdKey?: string | undefined;
|
|
322
323
|
fallbackContent?: import('react').ReactNode;
|
|
323
324
|
updateMode?: import('chart.js').UpdateMode | undefined;
|
|
325
|
+
valuesUnit?: string | undefined;
|
|
326
|
+
icons?: import('react').ReactNode[] | undefined;
|
|
324
327
|
};
|
|
325
328
|
export declare const extractPaletteFromTheme: (theme: Theme, min: number, max: number) => Property.Color[];
|
|
326
329
|
export declare const createPalette: (colors: Property.Color[], values: number[]) => Property.Color[];
|
|
@@ -4,6 +4,7 @@ export interface IAnchoredPopoverProps {
|
|
|
4
4
|
open: boolean;
|
|
5
5
|
anchor: HTMLElement | null;
|
|
6
6
|
onClose: () => void;
|
|
7
|
+
showCloseButton?: boolean;
|
|
7
8
|
anchorPosition?: "leftside" | "center" | "rightside";
|
|
8
9
|
children: JSX.Element | JSX.Element[];
|
|
9
10
|
variant?: "themed" | "headless";
|