@foodpilot/foods 0.1.113 → 0.3.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.
- package/dist/components/Accordion/ProductAccordion.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Chart/DoughnutChart.d.ts +1 -0
- package/dist/components/Dialog/PrimaryDialog.d.ts +4 -13
- package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +0 -2
- package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +6 -1
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +2 -3
- package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +2 -3
- package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +2 -3
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -2
- package/dist/components/Popover/AnchoredPopover.d.ts +0 -1
- package/dist/components/Popover/OptionsPopover.d.ts +0 -1
- package/dist/components/Popover/WhitePopover.d.ts +0 -1
- package/dist/components/index.d.ts +7 -10
- package/dist/main.js +14877 -15685
- package/dist/main.umd.cjs +109 -109
- package/dist/themes/ThemeExtensions.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/Badge/FoodsBadge.d.ts +0 -8
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Button/FoodsIconButton.d.ts +0 -5
- package/dist/components/Button/FoodsToggleButton.d.ts +0 -14
- package/dist/components/Icons/FoodsIcon.d.ts +0 -9
- package/dist/components/Icons/FoodsIllustrations.d.ts +0 -6
- package/dist/components/Icons/Illustrations/Actions.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Carbon emissions reduction.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Carbon neutrality.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Data analysis.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Inputs & chemicals.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Questionnaire.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Scores & indicators.d.ts +0 -1
- package/dist/components/Icons/Illustrations/Under construction.d.ts +0 -1
- package/dist/components/Icons/iconConfig.d.ts +0 -368
- package/dist/components/Icons/illustrationsConfig.d.ts +0 -10
- package/dist/components/Icons/index.d.ts +0 -4
- package/dist/components/Navigation/FoodsNavBar/Footer/DefaultUserAction.d.ts +0 -7
- package/dist/components/Search/FoodsSearch.d.ts +0 -1
- package/dist/components/Search/index.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +0 -29
- package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +0 -8
- package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +0 -14
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +0 -8
- package/dist/components/Select/FoodsSelect/Options/Header/SearchBar.d.ts +0 -0
- package/dist/components/Select/FoodsSelect/Options/Line/Default.d.ts +0 -6
- package/dist/components/Select/FoodsSelect/Options/Line/LineBox.d.ts +0 -2
- package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +0 -8
- package/dist/components/Select/FoodsSelect/Options/Line/Selected.d.ts +0 -6
- package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +0 -10
- package/dist/components/Select/FoodsSelect/Select.d.ts +0 -10
- package/dist/components/Select/FoodsSelect/index.d.ts +0 -1
- package/dist/components/Select/index.d.ts +0 -1
- /package/dist/components/{Badge/Badge.d.ts → Badge.d.ts} +0 -0
|
@@ -7,5 +7,6 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
|
|
|
7
7
|
colors?: Property.Color[];
|
|
8
8
|
legend?: boolean;
|
|
9
9
|
children?: ReactNode;
|
|
10
|
+
emptyMessage?: string;
|
|
10
11
|
};
|
|
11
12
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { Dispatch,
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
2
|
import { DialogProps } from "@mui/material/Dialog";
|
|
3
3
|
type Settings = {
|
|
4
|
-
title:
|
|
5
|
-
content:
|
|
6
|
-
error?:
|
|
7
|
-
};
|
|
8
|
-
type ConfirmAction = {
|
|
9
|
-
title: ReactNode;
|
|
10
|
-
content: ReactNode;
|
|
11
|
-
cancelText?: string;
|
|
12
|
-
validateText?: string;
|
|
4
|
+
title: JSX.Element;
|
|
5
|
+
content: JSX.Element;
|
|
6
|
+
error?: JSX.Element;
|
|
13
7
|
};
|
|
14
8
|
type PrimaryDialogProps = DialogProps & {
|
|
15
9
|
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
@@ -17,9 +11,6 @@ type PrimaryDialogProps = DialogProps & {
|
|
|
17
11
|
onValidate?: () => void;
|
|
18
12
|
onCancel?: () => void;
|
|
19
13
|
canValidate?: boolean;
|
|
20
|
-
confirmAction?: ConfirmAction;
|
|
21
|
-
cancelText: string;
|
|
22
|
-
validateText: string;
|
|
23
14
|
};
|
|
24
15
|
export declare const PrimaryDialog: (props: PrimaryDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
16
|
export {};
|
|
@@ -13,7 +13,6 @@ export type DisplayTextOptions = {
|
|
|
13
13
|
finalPage?: string;
|
|
14
14
|
syncingMessage?: string;
|
|
15
15
|
savingDefaultMessage?: string;
|
|
16
|
-
warningText?: string;
|
|
17
16
|
};
|
|
18
17
|
export type ConfirmOptionsType = {
|
|
19
18
|
titleText: string;
|
|
@@ -37,6 +36,5 @@ export type FoodsFormBaseProps = ConfirmOptions & {
|
|
|
37
36
|
onValidate?: () => void;
|
|
38
37
|
onPageChange?: (newPageIndex: number, previousPageIndex: number) => void;
|
|
39
38
|
showSync?: boolean;
|
|
40
|
-
isLoading?: boolean;
|
|
41
39
|
};
|
|
42
40
|
export declare const FoodsFormBase: (props: FoodsFormBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,6 +15,11 @@ export type NavbarLinkType = {
|
|
|
15
15
|
action: () => void;
|
|
16
16
|
label: string;
|
|
17
17
|
};
|
|
18
|
+
export type UserActionType = {
|
|
19
|
+
icon: JSX.Element;
|
|
20
|
+
action: () => void;
|
|
21
|
+
label: string;
|
|
22
|
+
};
|
|
18
23
|
export type NavbarDrawerType = {
|
|
19
24
|
label: string;
|
|
20
25
|
icon: JSX.Element;
|
|
@@ -42,6 +47,6 @@ export type FoodsNavbarProps = {
|
|
|
42
47
|
sidebarOptions?: SidebarOptions;
|
|
43
48
|
logoutAction: () => void;
|
|
44
49
|
sidebarStatusHandler: (isExpanded: boolean) => void;
|
|
45
|
-
userActions:
|
|
50
|
+
userActions: UserActionType[];
|
|
46
51
|
};
|
|
47
52
|
export declare const FoodsNavbar: (props: FoodsNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { SidebarTexts, User } from "../FoodsNavbar";
|
|
1
|
+
import { SidebarTexts, User, UserActionType } from "../FoodsNavbar";
|
|
3
2
|
type FooterProps = {
|
|
4
3
|
user: User;
|
|
5
|
-
userActions:
|
|
4
|
+
userActions: UserActionType[];
|
|
6
5
|
isExpanded: boolean;
|
|
7
6
|
toggleSidebar: () => void;
|
|
8
7
|
textOptions: SidebarTexts;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { SidebarTexts, User } from "../FoodsNavbar";
|
|
1
|
+
import { SidebarTexts, User, UserActionType } from "../FoodsNavbar";
|
|
3
2
|
type UserButtonProps = {
|
|
4
3
|
user: User;
|
|
5
|
-
userActions:
|
|
4
|
+
userActions: UserActionType[];
|
|
6
5
|
isExpanded: boolean;
|
|
7
6
|
textOptions: SidebarTexts;
|
|
8
7
|
logout: () => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { SidebarTexts } from "../FoodsNavbar";
|
|
1
|
+
import { SidebarTexts, UserActionType } from "../FoodsNavbar";
|
|
3
2
|
type UserPopoverProps = {
|
|
4
3
|
isExpanded: boolean;
|
|
5
|
-
userActions:
|
|
4
|
+
userActions: UserActionType[];
|
|
6
5
|
isPopoverOpen: boolean;
|
|
7
6
|
anchor: HTMLElement | null;
|
|
8
7
|
onClose: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { FoodsNavbar } from "./FoodsNavbar";
|
|
2
|
+
export type { FoodsNavbarProps } from "./FoodsNavbar";
|
|
@@ -7,7 +7,6 @@ export interface IAnchoredPopoverProps {
|
|
|
7
7
|
anchorPosition?: "leftside" | "center" | "rightside";
|
|
8
8
|
children: JSX.Element | JSX.Element[];
|
|
9
9
|
variant?: "themed" | "headless";
|
|
10
|
-
paperProps?: SxProps;
|
|
11
10
|
sx?: SxProps;
|
|
12
11
|
}
|
|
13
12
|
export declare function AnchoredPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
export * from "./Accordion";
|
|
2
|
-
export * from "./Badge";
|
|
3
2
|
export * from "./Box";
|
|
4
3
|
export * from "./Button";
|
|
5
|
-
export * from "./CardImage";
|
|
6
4
|
export * from "./Chart";
|
|
7
5
|
export * from "./Checkbox";
|
|
8
|
-
export * from "./CustomTypography";
|
|
9
6
|
export * from "./Dialog";
|
|
10
7
|
export * from "./Field";
|
|
11
8
|
export * from "./Filter";
|
|
12
9
|
export * from "./Form";
|
|
13
10
|
export * from "./Grid";
|
|
14
|
-
export * from "./Icons";
|
|
15
|
-
export * from "./Indicator";
|
|
16
11
|
export * from "./Input";
|
|
17
|
-
export * from "./LinearProgress";
|
|
18
12
|
export * from "./Navigation";
|
|
19
|
-
export * from "./Number";
|
|
20
13
|
export * from "./Popover";
|
|
21
|
-
export * from "./Radio";
|
|
22
|
-
export * from "./Search";
|
|
23
|
-
export * from "./Select";
|
|
24
14
|
export * from "./Ssq";
|
|
25
15
|
export * from "./Tabs";
|
|
26
16
|
export * from "./Text";
|
|
17
|
+
export * from "./CustomTypography";
|
|
18
|
+
export * from "./Number";
|
|
19
|
+
export * from "./Radio";
|
|
20
|
+
export * from "./Indicator";
|
|
21
|
+
export * from "./Badge";
|
|
22
|
+
export * from "./CardImage";
|
|
23
|
+
export * from "./LinearProgress";
|