@foodpilot/foods 0.3.0 → 0.3.1
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 -0
- package/dist/components/Badge/FoodsBadge.d.ts +8 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Button/FoodsIconButton.d.ts +5 -0
- package/dist/components/Button/FoodsToggleButton.d.ts +14 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart.d.ts +0 -1
- package/dist/components/Dialog/PrimaryDialog.d.ts +13 -4
- package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +2 -0
- package/dist/components/Icons/FoodsIcon.d.ts +9 -0
- package/dist/components/Icons/FoodsIllustrations.d.ts +6 -0
- package/dist/components/Icons/Illustrations/Actions.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Carbon emissions reduction.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Carbon neutrality.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Data analysis.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Inputs & chemicals.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Questionnaire.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Scores & indicators.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Under construction.d.ts +1 -0
- package/dist/components/Icons/iconConfig.d.ts +368 -0
- package/dist/components/Icons/illustrationsConfig.d.ts +10 -0
- package/dist/components/Icons/index.d.ts +4 -0
- package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +1 -6
- package/dist/components/Navigation/FoodsNavBar/Footer/DefaultUserAction.d.ts +7 -0
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +3 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +3 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +3 -2
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -2
- package/dist/components/Popover/AnchoredPopover.d.ts +1 -0
- package/dist/components/Popover/OptionsPopover.d.ts +1 -0
- package/dist/components/Popover/WhitePopover.d.ts +1 -0
- package/dist/components/Search/FoodsSearch.d.ts +1 -0
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +29 -0
- package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +8 -0
- package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +14 -0
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +8 -0
- package/dist/components/Select/FoodsSelect/Options/Header/SearchBar.d.ts +0 -0
- package/dist/components/Select/FoodsSelect/Options/Line/Default.d.ts +6 -0
- package/dist/components/Select/FoodsSelect/Options/Line/LineBox.d.ts +2 -0
- package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +8 -0
- package/dist/components/Select/FoodsSelect/Options/Line/Selected.d.ts +6 -0
- package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +10 -0
- package/dist/components/Select/FoodsSelect/Select.d.ts +10 -0
- package/dist/components/Select/FoodsSelect/index.d.ts +1 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/index.d.ts +10 -7
- package/dist/main.js +15685 -14877
- package/dist/main.umd.cjs +109 -109
- package/dist/themes/ThemeExtensions.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{Badge.d.ts → Badge/Badge.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from "@mui/material";
|
|
2
|
+
import { FoodsIconProps } from "../Icons/FoodsIcon";
|
|
3
|
+
export type FoodsBadgeProps = {
|
|
4
|
+
size: number;
|
|
5
|
+
icon: FoodsIconProps["icon"];
|
|
6
|
+
boxProps?: BoxProps;
|
|
7
|
+
};
|
|
8
|
+
export declare const FoodsBadge: (props: FoodsBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToggleButtonProps } from "@mui/material";
|
|
2
|
+
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "key" | "value" | "onClick" | "selected">;
|
|
3
|
+
type ToggleChoice = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export type FoodsToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
|
+
selectedChoice: ToggleChoice | null;
|
|
9
|
+
choices: ToggleChoice[];
|
|
10
|
+
onSelection: (selectedChoiceId: number) => void;
|
|
11
|
+
ToggleButtonProps?: ToggleButtonsPropsWithoutEnforcedKeys;
|
|
12
|
+
};
|
|
13
|
+
export declare const FoodsToggleButton: (props: FoodsToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -7,6 +7,5 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
|
|
|
7
7
|
colors?: Property.Color[];
|
|
8
8
|
legend?: boolean;
|
|
9
9
|
children?: ReactNode;
|
|
10
|
-
emptyMessage?: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from "react";
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
2
2
|
import { DialogProps } from "@mui/material/Dialog";
|
|
3
3
|
type Settings = {
|
|
4
|
-
title:
|
|
5
|
-
content:
|
|
6
|
-
error?:
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
error?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type ConfirmAction = {
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
content: ReactNode;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
validateText?: string;
|
|
7
13
|
};
|
|
8
14
|
type PrimaryDialogProps = DialogProps & {
|
|
9
15
|
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
@@ -11,6 +17,9 @@ type PrimaryDialogProps = DialogProps & {
|
|
|
11
17
|
onValidate?: () => void;
|
|
12
18
|
onCancel?: () => void;
|
|
13
19
|
canValidate?: boolean;
|
|
20
|
+
confirmAction?: ConfirmAction;
|
|
21
|
+
cancelText: string;
|
|
22
|
+
validateText: string;
|
|
14
23
|
};
|
|
15
24
|
export declare const PrimaryDialog: (props: PrimaryDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
25
|
export {};
|
|
@@ -13,6 +13,7 @@ export type DisplayTextOptions = {
|
|
|
13
13
|
finalPage?: string;
|
|
14
14
|
syncingMessage?: string;
|
|
15
15
|
savingDefaultMessage?: string;
|
|
16
|
+
warningText?: string;
|
|
16
17
|
};
|
|
17
18
|
export type ConfirmOptionsType = {
|
|
18
19
|
titleText: string;
|
|
@@ -36,5 +37,6 @@ export type FoodsFormBaseProps = ConfirmOptions & {
|
|
|
36
37
|
onValidate?: () => void;
|
|
37
38
|
onPageChange?: (newPageIndex: number, previousPageIndex: number) => void;
|
|
38
39
|
showSync?: boolean;
|
|
40
|
+
isLoading?: boolean;
|
|
39
41
|
};
|
|
40
42
|
export declare const FoodsFormBase: (props: FoodsFormBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidthHeight, iconMapping } from "./iconConfig";
|
|
2
|
+
export type IconMapping = typeof iconMapping;
|
|
3
|
+
type Size = WidthHeight | number;
|
|
4
|
+
export type FoodsIconProps = {
|
|
5
|
+
size: Size;
|
|
6
|
+
icon: keyof IconMapping;
|
|
7
|
+
};
|
|
8
|
+
export declare const FoodsIcon: (props: FoodsIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { illustationsMapping } from "./illustrationsConfig";
|
|
2
|
+
export type IllustrationMapping = typeof illustationsMapping;
|
|
3
|
+
export type FoodsIllustrationsProps = {
|
|
4
|
+
illustration: keyof IllustrationMapping;
|
|
5
|
+
};
|
|
6
|
+
export declare const FoodsIllustrations: (props: FoodsIllustrationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Actions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CarbonEmissions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CarbonNeutrality: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DataAnalysis: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Chemicals: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Questionnaire: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ScoresIndicators: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UnderConstruction: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const iconMapping: {
|
|
3
|
+
readonly default: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
}>;
|
|
6
|
+
readonly agriculture: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
readonly animation: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
readonly brand: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
readonly businessTrips: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
16
|
+
title?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
readonly carbonEmission: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
readonly carbonNeutrality: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
readonly collective: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
readonly communication: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
readonly consumption: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
readonly corporate: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
readonly diagnostic: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
37
|
+
title?: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
readonly distribution: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
readonly energy: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
43
|
+
title?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
readonly euros: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
readonly events: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
readonly forestWoods: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
52
|
+
title?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
readonly hedgesPlantCovers: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
55
|
+
title?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
readonly ingredients: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
58
|
+
title?: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
readonly inputsChemicals: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
61
|
+
title?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
readonly labels: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
64
|
+
title?: string | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
readonly organization: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
67
|
+
title?: string | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
readonly packaging: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
70
|
+
title?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
readonly productionSite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
73
|
+
title?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
readonly production: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
readonly productsBying: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
readonly products: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
readonly projectManager: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
85
|
+
title?: string | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
readonly publications: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
88
|
+
title?: string | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
readonly rangesSectors: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
readonly recipe: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
readonly sectors: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
97
|
+
title?: string | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
readonly socialMedia: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
100
|
+
title?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
readonly strategy: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
103
|
+
title?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
readonly supplier: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
106
|
+
title?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
readonly territories: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
109
|
+
title?: string | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
readonly trajectory: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
112
|
+
title?: string | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
readonly transformationSteps: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
115
|
+
title?: string | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
readonly transportation: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
118
|
+
title?: string | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
readonly users: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
readonly vineyard: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
124
|
+
title?: string | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
readonly webinard: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
127
|
+
title?: string | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
readonly wineTourism: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
130
|
+
title?: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
readonly actionPlan: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
readonly actions: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
readonly activityData: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
139
|
+
title?: string | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
readonly addRemove: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
142
|
+
title?: string | undefined;
|
|
143
|
+
}>;
|
|
144
|
+
readonly addUser: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
145
|
+
title?: string | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
readonly add: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
148
|
+
title?: string | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
readonly analytics: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
151
|
+
title?: string | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
readonly arrowTrajectory: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
154
|
+
title?: string | undefined;
|
|
155
|
+
}>;
|
|
156
|
+
readonly arrowDownShort: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
157
|
+
title?: string | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
readonly arrowDown: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
160
|
+
title?: string | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
readonly arrowLeftShort: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
163
|
+
title?: string | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
readonly arrowLeft: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
166
|
+
title?: string | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
readonly arrowRightShort: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
169
|
+
title?: string | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
readonly arrowRight: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
172
|
+
title?: string | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
readonly arrowUpShort: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
175
|
+
title?: string | undefined;
|
|
176
|
+
}>;
|
|
177
|
+
readonly arrowUp: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
178
|
+
title?: string | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
readonly calendar: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
181
|
+
title?: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
readonly callback: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
184
|
+
title?: string | undefined;
|
|
185
|
+
}>;
|
|
186
|
+
readonly cancel: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
187
|
+
title?: string | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
readonly check: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
190
|
+
title?: string | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
readonly clickIndicator: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
193
|
+
title?: string | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
readonly closePanel: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
196
|
+
title?: string | undefined;
|
|
197
|
+
}>;
|
|
198
|
+
readonly close: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
199
|
+
title?: string | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
readonly comparison: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
202
|
+
title?: string | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
readonly columns: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
205
|
+
title?: string | undefined;
|
|
206
|
+
}>;
|
|
207
|
+
readonly compare: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
208
|
+
title?: string | undefined;
|
|
209
|
+
}>;
|
|
210
|
+
readonly congrats: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
211
|
+
title?: string | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
readonly dashboard: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
214
|
+
title?: string | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
readonly delete: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
217
|
+
title?: string | undefined;
|
|
218
|
+
}>;
|
|
219
|
+
readonly documentation: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
220
|
+
title?: string | undefined;
|
|
221
|
+
}>;
|
|
222
|
+
readonly drag: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
223
|
+
title?: string | undefined;
|
|
224
|
+
}>;
|
|
225
|
+
readonly duplicate: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
226
|
+
title?: string | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
readonly edit: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
229
|
+
title?: string | undefined;
|
|
230
|
+
}>;
|
|
231
|
+
readonly evolution: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
232
|
+
title?: string | undefined;
|
|
233
|
+
}>;
|
|
234
|
+
readonly empty: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
235
|
+
title?: string | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
readonly exportDownload: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
238
|
+
title?: string | undefined;
|
|
239
|
+
}>;
|
|
240
|
+
readonly favAdded: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
241
|
+
title?: string | undefined;
|
|
242
|
+
}>;
|
|
243
|
+
readonly favNonAdded: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
244
|
+
title?: string | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
readonly filter: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
247
|
+
title?: string | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
readonly hamburgerMenu: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
250
|
+
title?: string | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
readonly hidePwd: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
253
|
+
title?: string | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
readonly home: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
256
|
+
title?: string | undefined;
|
|
257
|
+
}>;
|
|
258
|
+
readonly importUpload: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
259
|
+
title?: string | undefined;
|
|
260
|
+
}>;
|
|
261
|
+
readonly information: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
262
|
+
title?: string | undefined;
|
|
263
|
+
}>;
|
|
264
|
+
readonly informations: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
265
|
+
title?: string | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
readonly list: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
268
|
+
title?: string | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
readonly logout: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
271
|
+
title?: string | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
readonly mail: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
274
|
+
title?: string | undefined;
|
|
275
|
+
}>;
|
|
276
|
+
readonly minus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
277
|
+
title?: string | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
readonly openNewTab: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
280
|
+
title?: string | undefined;
|
|
281
|
+
}>;
|
|
282
|
+
readonly openPanel: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
283
|
+
title?: string | undefined;
|
|
284
|
+
}>;
|
|
285
|
+
readonly previousCampaign: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
286
|
+
title?: string | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
readonly questionMark: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
289
|
+
title?: string | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
readonly plus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
292
|
+
title?: string | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
readonly questionnaires: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
295
|
+
title?: string | undefined;
|
|
296
|
+
}>;
|
|
297
|
+
readonly reminder: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
298
|
+
title?: string | undefined;
|
|
299
|
+
}>;
|
|
300
|
+
readonly removeUser: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
301
|
+
title?: string | undefined;
|
|
302
|
+
}>;
|
|
303
|
+
readonly remove: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
304
|
+
title?: string | undefined;
|
|
305
|
+
}>;
|
|
306
|
+
readonly repartition: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
307
|
+
title?: string | undefined;
|
|
308
|
+
}>;
|
|
309
|
+
readonly repositories: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
310
|
+
title?: string | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
readonly reset: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
313
|
+
title?: string | undefined;
|
|
314
|
+
}>;
|
|
315
|
+
readonly save: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
316
|
+
title?: string | undefined;
|
|
317
|
+
}>;
|
|
318
|
+
readonly savedOnline: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
319
|
+
title?: string | undefined;
|
|
320
|
+
}>;
|
|
321
|
+
readonly scoresIndicators: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
322
|
+
title?: string | undefined;
|
|
323
|
+
}>;
|
|
324
|
+
readonly search: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
325
|
+
title?: string | undefined;
|
|
326
|
+
}>;
|
|
327
|
+
readonly sendMessage: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
328
|
+
title?: string | undefined;
|
|
329
|
+
}>;
|
|
330
|
+
readonly settings: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
331
|
+
title?: string | undefined;
|
|
332
|
+
}>;
|
|
333
|
+
readonly sortAscending: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
334
|
+
title?: string | undefined;
|
|
335
|
+
}>;
|
|
336
|
+
readonly sortDescending: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
337
|
+
title?: string | undefined;
|
|
338
|
+
}>;
|
|
339
|
+
readonly sortNoSorting: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
340
|
+
title?: string | undefined;
|
|
341
|
+
}>;
|
|
342
|
+
readonly suggestions: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
343
|
+
title?: string | undefined;
|
|
344
|
+
}>;
|
|
345
|
+
readonly sync: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
346
|
+
title?: string | undefined;
|
|
347
|
+
}>;
|
|
348
|
+
readonly timer: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
349
|
+
title?: string | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
readonly userAccount: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
352
|
+
title?: string | undefined;
|
|
353
|
+
}>;
|
|
354
|
+
readonly viewPwd: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
355
|
+
title?: string | undefined;
|
|
356
|
+
}>;
|
|
357
|
+
readonly visio: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
358
|
+
title?: string | undefined;
|
|
359
|
+
}>;
|
|
360
|
+
readonly warning: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
361
|
+
title?: string | undefined;
|
|
362
|
+
}>;
|
|
363
|
+
};
|
|
364
|
+
export type WidthHeight = {
|
|
365
|
+
width: number;
|
|
366
|
+
height: number;
|
|
367
|
+
};
|
|
368
|
+
export declare const computeSize: (size: number) => WidthHeight;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const illustationsMapping: {
|
|
2
|
+
readonly actions: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
readonly carbonEmissions: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
readonly carbonNeutrality: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
readonly dataAnalysis: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
readonly chemicals: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
readonly questionnaire: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
readonly scoresIndicators: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
readonly underConstruction: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
@@ -15,11 +15,6 @@ 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
|
-
};
|
|
23
18
|
export type NavbarDrawerType = {
|
|
24
19
|
label: string;
|
|
25
20
|
icon: JSX.Element;
|
|
@@ -47,6 +42,6 @@ export type FoodsNavbarProps = {
|
|
|
47
42
|
sidebarOptions?: SidebarOptions;
|
|
48
43
|
logoutAction: () => void;
|
|
49
44
|
sidebarStatusHandler: (isExpanded: boolean) => void;
|
|
50
|
-
userActions:
|
|
45
|
+
userActions: JSX.Element[];
|
|
51
46
|
};
|
|
52
47
|
export declare const FoodsNavbar: (props: FoodsNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarTexts, User } from "../FoodsNavbar";
|
|
2
3
|
type FooterProps = {
|
|
3
4
|
user: User;
|
|
4
|
-
userActions:
|
|
5
|
+
userActions: JSX.Element[];
|
|
5
6
|
isExpanded: boolean;
|
|
6
7
|
toggleSidebar: () => void;
|
|
7
8
|
textOptions: SidebarTexts;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarTexts, User } from "../FoodsNavbar";
|
|
2
3
|
type UserButtonProps = {
|
|
3
4
|
user: User;
|
|
4
|
-
userActions:
|
|
5
|
+
userActions: JSX.Element[];
|
|
5
6
|
isExpanded: boolean;
|
|
6
7
|
textOptions: SidebarTexts;
|
|
7
8
|
logout: () => void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarTexts } from "../FoodsNavbar";
|
|
2
3
|
type UserPopoverProps = {
|
|
3
4
|
isExpanded: boolean;
|
|
4
|
-
userActions:
|
|
5
|
+
userActions: JSX.Element[];
|
|
5
6
|
isPopoverOpen: boolean;
|
|
6
7
|
anchor: HTMLElement | null;
|
|
7
8
|
onClose: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./FoodsNavbar";
|
|
2
|
+
export * from "./Footer/DefaultUserAction";
|
|
@@ -7,6 +7,7 @@ export interface IAnchoredPopoverProps {
|
|
|
7
7
|
anchorPosition?: "leftside" | "center" | "rightside";
|
|
8
8
|
children: JSX.Element | JSX.Element[];
|
|
9
9
|
variant?: "themed" | "headless";
|
|
10
|
+
paperProps?: SxProps;
|
|
10
11
|
sx?: SxProps;
|
|
11
12
|
}
|
|
12
13
|
export declare function AnchoredPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FoodsSearch: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FoodsSearch";
|