@foodpilot/foods 0.1.48 → 0.1.50

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.
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from "react";
2
2
  import { ChartProps } from "react-chartjs-2";
3
3
  import { Property } from "csstype";
4
4
  export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> & {
5
5
  values?: number[];
6
6
  labels?: string[];
7
- startColor?: Property.Color;
8
- endColor?: Property.Color;
7
+ colors?: Property.Color[];
9
8
  legend?: boolean;
10
- children?: JSX.Element | JSX.Element[];
9
+ children?: ReactNode;
11
10
  emptyMessage?: string;
12
11
  };
13
12
  export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- export interface IBigPopoverLayout {
1
+ import { ReactNode } from "react";
2
+ export type IBigPopoverLayout = {
3
3
  headerText: string;
4
4
  headerIcon?: JSX.Element;
5
- children: JSX.Element | JSX.Element[];
5
+ children: ReactNode;
6
6
  bottomActions?: boolean;
7
7
  width?: string;
8
8
  onClose: () => void;
9
9
  onCancel?: () => void;
10
10
  onValidate?: () => void;
11
- }
12
- export declare function BigPopoverLayout(props: IBigPopoverLayout): import("react/jsx-runtime").JSX.Element;
11
+ };
12
+ export declare const BigPopoverLayout: (props: IBigPopoverLayout) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { BoxProps } from "@mui/material";
2
+ export type OptionsPopoverOption = {
3
+ label: string;
4
+ active?: boolean;
5
+ };
6
+ export type OptionsPopoverSection = {
7
+ header?: string;
8
+ options: OptionsPopoverOption[];
9
+ };
10
+ export type OptionsPopoverProps = Omit<BoxProps, "content" | "onChange"> & {
11
+ content: OptionsPopoverSection[];
12
+ onChange?: (option: OptionsPopoverOption, section: OptionsPopoverSection) => void;
13
+ };
14
+ export declare function OptionsPopover(props: OptionsPopoverProps): import("react/jsx-runtime").JSX.Element;