@foodpilot/foods 0.1.85 → 0.1.88

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.
@@ -12,6 +12,7 @@ type Coordinate = {
12
12
  };
13
13
  export type Point = {
14
14
  label: string;
15
+ id?: number;
15
16
  } & Coordinate;
16
17
  export type SelectedPoint = {
17
18
  point: Point;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ import { ToggleButtonProps } from "@mui/material";
3
+ export type ButtonTabsProps = ToggleButtonProps & {
4
+ choices: ReactNode[];
5
+ onClick?: (index: number) => void;
6
+ defaultIndex?: number;
7
+ };
8
+ export declare const ButtonTabs: (props: ButtonTabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from "react";
2
+ import { BoxProps } from "@mui/material";
3
+ export type SectionTab = {
4
+ name: string;
5
+ onClick?: () => void;
6
+ component?: ReactNode;
7
+ disabled?: boolean | false;
8
+ icon?: ReactNode;
9
+ };
10
+ export type SectionTabsProps = BoxProps & {
11
+ tabs: SectionTab[];
12
+ value?: number;
13
+ renderComponents?: boolean | true;
14
+ };
15
+ export declare const SectionTabs: (props: SectionTabsProps) => import("react/jsx-runtime").JSX.Element;
16
+ export type SectionTabPanelProps = {
17
+ children?: ReactNode;
18
+ index: number;
19
+ value: number;
20
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./ButtonTabs";
2
+ export * from "./SectionTabs";
@@ -12,6 +12,7 @@ export * from "./Input";
12
12
  export * from "./Navigation";
13
13
  export * from "./Popover";
14
14
  export * from "./Ssq";
15
+ export * from "./Tabs";
15
16
  export * from "./Text";
16
17
  export * from "./CustomTypography";
17
18
  export * from "./Number";