@foodpilot/foods 0.1.47 → 0.1.49
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/Accordion/ProductAccordion.d.ts +1 -1
- package/dist/components/Button/TertiaryToggleButton.d.ts +1 -1
- package/dist/components/Chart/DoughnutChart.d.ts +3 -4
- package/dist/components/Navigation/Navbar.d.ts +4 -2
- package/dist/components/Popover/BigPopoverLayout.d.ts +5 -5
- package/dist/components/Popover/OptionsPopover.d.ts +14 -0
- package/dist/main.js +9758 -9491
- package/dist/main.umd.cjs +104 -104
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare const StyledAccordion: import("@emotion/styled").StyledComponent<
|
|
|
14
14
|
TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
|
|
15
15
|
} & import("@mui/material/Accordion").AccordionSlotsAndSlotProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
16
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "disabled" | "
|
|
17
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "disabled" | "variant" | "sx" | "onChange" | "elevation" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import("@mui/material/Accordion").AccordionSlotsAndSlotProps> & {
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
}, {}, {}>;
|
|
20
20
|
export type AccordionContent = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ToggleButtonProps } from "@mui/material";
|
|
3
3
|
export declare const CustomToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
-
}, "color" | "className" | "style" | "classes" | "
|
|
5
|
+
}, "color" | "className" | "style" | "classes" | "children" | "disabled" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "size" | "sx" | "tabIndex" | "onChange" | "onClick" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
6
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
7
|
export type TertiaryToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
8
|
choices: string[];
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
8
|
-
endColor?: Property.Color;
|
|
7
|
+
colors?: Property.Color[];
|
|
9
8
|
legend?: boolean;
|
|
10
|
-
children?:
|
|
9
|
+
children?: ReactNode;
|
|
11
10
|
emptyMessage?: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,10 +7,10 @@ export type INavBarLink = {
|
|
|
7
7
|
};
|
|
8
8
|
type NavBarLinkProps = INavBarLink & {
|
|
9
9
|
isOpen: boolean;
|
|
10
|
-
isCurrent: boolean;
|
|
11
10
|
isSubMenuOpen?: boolean;
|
|
12
11
|
onClick?: () => void;
|
|
13
12
|
navigate: (link: string) => void;
|
|
13
|
+
isCurrent: (link: string) => boolean;
|
|
14
14
|
};
|
|
15
15
|
export type IUser = {
|
|
16
16
|
firstname: string;
|
|
@@ -26,15 +26,17 @@ export type INavBarProps = {
|
|
|
26
26
|
connectedUser: IUser;
|
|
27
27
|
organization: IOrganization;
|
|
28
28
|
navigate: (link: string) => void;
|
|
29
|
+
isCurrent: (link: string) => boolean;
|
|
29
30
|
};
|
|
30
31
|
type LayoutNavProps = INavBarProps & {
|
|
31
32
|
isOpen: boolean;
|
|
32
33
|
};
|
|
33
34
|
export declare const Navbar: (props: INavBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
export declare function NavBarLink(props: NavBarLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export declare function SubMenu({ sublinks, navigate }: {
|
|
36
|
+
export declare function SubMenu({ sublinks, navigate, isCurrent, }: {
|
|
36
37
|
sublinks?: INavBarLink[];
|
|
37
38
|
navigate: (link: string) => void;
|
|
39
|
+
isCurrent: (link: string) => boolean;
|
|
38
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
39
41
|
export declare function HeaderNav(props: LayoutNavProps): import("react/jsx-runtime").JSX.Element;
|
|
40
42
|
export declare function UserNav(props: LayoutNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type IBigPopoverLayout = {
|
|
3
3
|
headerText: string;
|
|
4
4
|
headerIcon?: JSX.Element;
|
|
5
|
-
children:
|
|
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
|
|
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;
|