@foodpilot/foods 0.1.80 → 0.1.82

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,6 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { ChartProps } from "react-chartjs-2";
3
- export type ScatterPlotProps = ChartProps<"scatter"> & {
2
+ export type ScatterPlotProps = {
4
3
  values: Array<Point>;
5
4
  x: ReactNode;
6
5
  y: ReactNode;
@@ -9,6 +9,7 @@ export type INavBarLink = {
9
9
  type NavBarLinkProps = INavBarLink & {
10
10
  isOpen: boolean;
11
11
  isSubMenuOpen?: boolean;
12
+ isSubmenu: boolean;
12
13
  onClick?: () => void;
13
14
  navigate: (link: string) => void;
14
15
  isCurrent: (link: string) => boolean;
@@ -30,6 +31,7 @@ export type INavBarProps = {
30
31
  isCurrent: (link: string) => boolean;
31
32
  handleIsOpen: (isOpen: boolean) => void;
32
33
  settingsRoute?: string;
34
+ settingsText: string;
33
35
  userActions: UserActions[];
34
36
  };
35
37
  export type UserActions = {
@@ -40,12 +42,13 @@ type LayoutNavProps = INavBarProps & {
40
42
  isOpen: boolean;
41
43
  };
42
44
  export declare const Navbar: (props: INavBarProps) => import("react/jsx-runtime").JSX.Element;
43
- export declare function NavBarLink(props: NavBarLinkProps): import("react/jsx-runtime").JSX.Element;
44
- export declare function SubMenu({ sublinks, navigate, isCurrent, }: {
45
+ export declare const NavBarLink: (props: NavBarLinkProps) => import("react/jsx-runtime").JSX.Element;
46
+ type SubMenuProps = {
45
47
  sublinks?: INavBarLink[];
46
48
  navigate: (link: string) => void;
47
49
  isCurrent: (link: string) => boolean;
48
- }): import("react/jsx-runtime").JSX.Element;
49
- export declare function HeaderNav(props: LayoutNavProps): import("react/jsx-runtime").JSX.Element;
50
+ };
51
+ export declare const SubMenu: (props: SubMenuProps) => import("react/jsx-runtime").JSX.Element;
52
+ export declare const HeaderNav: (props: LayoutNavProps) => import("react/jsx-runtime").JSX.Element;
50
53
  export declare function UserNav(props: LayoutNavProps): import("react/jsx-runtime").JSX.Element;
51
54
  export {};