@foodpilot/foods 0.1.16 → 0.2.0

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,5 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { BoxProps } from "@mui/material/Box/Box";
2
3
  export type SolidGreyBoxProps = {
3
4
  children: JSX.Element | JSX.Element[];
4
- };
5
+ } & BoxProps;
5
6
  export declare const SolidGreyBox: (props: SolidGreyBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,4 @@ export type TextFieldProps = RoundInputProps & {
6
6
  value?: string;
7
7
  description?: string;
8
8
  };
9
- export declare function TextField(props: TextFieldProps): JSX.Element;
9
+ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -15,5 +15,7 @@ export type FormBaseProps = {
15
15
  title: string;
16
16
  icon: JSX.Element;
17
17
  pages: Page[];
18
+ onPageChange?: (page: number) => void;
19
+ onSaveDraft?: () => void;
18
20
  };
19
21
  export declare const FormBase: (props: FormBaseProps) => JSX.Element;
@@ -1,11 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { Icon } from "./IconThread";
2
+ import { Icon } from "../Navigation/IconThread";
3
3
  type FormTopBarProps = {
4
4
  title: string;
5
5
  icon: JSX.Element;
6
6
  pageIcons: Icon[];
7
7
  currentPage: number;
8
8
  setPage: (value: number) => void;
9
+ onSaveDraft?: () => void;
9
10
  };
10
11
  export declare const FormTopBar: (props: FormTopBarProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { InputBaseProps } from "@mui/material";
2
3
  export type RoundInputProps = InputBaseProps;
3
- export declare const RoundInput: (props: RoundInputProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const RoundInput: import("react").ForwardRefExoticComponent<Omit<InputBaseProps, "ref"> & import("react").RefAttributes<unknown>>;
@@ -1,3 +1,3 @@
1
- export * from "./FormTopBar";
1
+ export * from "../Form/FormTopBar";
2
2
  export * from "./IconThread";
3
3
  export * from "./Navbar";