@foodpilot/foods 0.3.31 → 0.3.32
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/Chart/{DoughnutChart.d.ts → DoughnutChart/DoughnutChart.d.ts} +1 -6
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegend.d.ts +19 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendBottom.d.ts +16 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendRight.d.ts +16 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendSeeMoreLink.d.ts +6 -0
- package/dist/components/Chart/{doughnutChartAdditions.d.ts → DoughnutChart/doughnutChartAdditions.d.ts} +1 -1
- package/dist/components/Chart/index.d.ts +1 -1
- package/dist/main.js +5678 -5615
- package/dist/main.umd.cjs +90 -90
- package/package.json +1 -1
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ChartProps } from 'react-chartjs-2';
|
|
3
3
|
import { Property } from 'csstype';
|
|
4
|
+
import { Legend } from './DoughnutChartLegend';
|
|
4
5
|
|
|
5
|
-
type Legend = {
|
|
6
|
-
position: "bottom" | "right";
|
|
7
|
-
urls?: Array<string | undefined>;
|
|
8
|
-
seeMoreLabel?: string;
|
|
9
|
-
};
|
|
10
6
|
export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> & {
|
|
11
7
|
values?: number[];
|
|
12
8
|
labels?: string[];
|
|
@@ -15,4 +11,3 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
|
|
|
15
11
|
children?: ReactNode;
|
|
16
12
|
};
|
|
17
13
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
|
|
4
|
+
export type Legend = {
|
|
5
|
+
position: "bottom" | "right";
|
|
6
|
+
urls?: Array<string | undefined>;
|
|
7
|
+
seeMoreLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
export type DoughnutChartLegendProps = {
|
|
10
|
+
setHoveredArcIndex: (index: number | null) => void;
|
|
11
|
+
hoveredArcIndex: number | null;
|
|
12
|
+
labels?: string[];
|
|
13
|
+
values?: number[];
|
|
14
|
+
colors?: Property.Color[];
|
|
15
|
+
legend?: Legend;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
palette: Property.Color[];
|
|
18
|
+
};
|
|
19
|
+
export declare const DoughnutChartLegend: (props: DoughnutChartLegendProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { Legend } from './DoughnutChartLegend';
|
|
4
|
+
|
|
5
|
+
type DoughnutChartLegendBottomProps = {
|
|
6
|
+
labels: string[];
|
|
7
|
+
setHoveredArcIndex: (index: number | null) => void;
|
|
8
|
+
hoveredArcIndex: number | null;
|
|
9
|
+
values?: number[];
|
|
10
|
+
colors?: Property.Color[];
|
|
11
|
+
legend?: Legend;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
palette: Property.Color[];
|
|
14
|
+
};
|
|
15
|
+
export declare const DoughnutChartLegendBottom: (props: DoughnutChartLegendBottomProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { Legend } from './DoughnutChartLegend';
|
|
4
|
+
|
|
5
|
+
type DoughnutChartLegendRightProps = {
|
|
6
|
+
labels: string[];
|
|
7
|
+
setHoveredArcIndex: (index: number | null) => void;
|
|
8
|
+
hoveredArcIndex: number | null;
|
|
9
|
+
values?: number[];
|
|
10
|
+
colors?: Property.Color[];
|
|
11
|
+
legend?: Legend;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
palette: Property.Color[];
|
|
14
|
+
};
|
|
15
|
+
export declare const DoughnutChartLegendRight: (props: DoughnutChartLegendRightProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { Theme } from '@mui/material';
|
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { ActiveElement, Chart, ChartEvent } from 'chart.js';
|
|
5
|
-
import { DoughnutChartProps } from './DoughnutChart
|
|
5
|
+
import { DoughnutChartProps } from './DoughnutChart';
|
|
6
6
|
|
|
7
7
|
export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend"> & {
|
|
8
8
|
legend: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DoughnutChart';
|
|
1
|
+
export * from './DoughnutChart/DoughnutChart';
|
|
2
2
|
export * from './ScatterPlot';
|