@foodpilot/foods 0.1.110 → 0.1.111

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.
Files changed (29) hide show
  1. package/dist/components/Badge/FoodsBadge.d.ts +8 -0
  2. package/dist/components/Badge/index.d.ts +2 -0
  3. package/dist/components/Icons/FoodsIcon.d.ts +9 -0
  4. package/dist/components/Icons/FoodsIllustrations.d.ts +6 -0
  5. package/dist/components/Icons/Illustrations/Actions.d.ts +1 -0
  6. package/dist/components/Icons/Illustrations/Carbon emissions reduction.d.ts +1 -0
  7. package/dist/components/Icons/Illustrations/Carbon neutrality.d.ts +1 -0
  8. package/dist/components/Icons/Illustrations/Data analysis.d.ts +1 -0
  9. package/dist/components/Icons/Illustrations/Inputs & chemicals.d.ts +1 -0
  10. package/dist/components/Icons/Illustrations/Questionnaire.d.ts +1 -0
  11. package/dist/components/Icons/Illustrations/Scores & indicators.d.ts +1 -0
  12. package/dist/components/Icons/Illustrations/Under construction.d.ts +1 -0
  13. package/dist/components/Icons/iconConfig.d.ts +368 -0
  14. package/dist/components/Icons/illustrationsConfig.d.ts +10 -0
  15. package/dist/components/Icons/index.d.ts +4 -0
  16. package/dist/components/Search/FoodsSearch.d.ts +1 -0
  17. package/dist/components/Search/index.d.ts +1 -0
  18. package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +29 -0
  19. package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +8 -0
  20. package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +5 -15
  21. package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +2 -3
  22. package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +1 -0
  23. package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +2 -3
  24. package/dist/components/Select/FoodsSelect/Select.d.ts +2 -7
  25. package/dist/components/index.d.ts +2 -0
  26. package/dist/main.js +14744 -14368
  27. package/dist/main.umd.cjs +109 -109
  28. package/package.json +1 -1
  29. /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,2 @@
1
+ export * from "./Badge";
2
+ export * from "./FoodsBadge";
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./FoodsIcon";
2
+ export * from "./FoodsIllustrations";
3
+ export * from "./iconConfig";
4
+ export * from "./illustrationsConfig";
@@ -0,0 +1 @@
1
+ export declare const FoodsSearch: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./FoodsSearch";
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from "react";
2
+ type TextOptions = {
3
+ placeholder: string;
4
+ searchPlaceholder: string;
5
+ emptyOptionsText: string;
6
+ defaultValueText?: string;
7
+ noResult: string;
8
+ };
9
+ export type ExtraSelectOptions = {
10
+ textOptions: TextOptions;
11
+ noValue?: string;
12
+ disabled?: boolean;
13
+ closeOnSelect?: boolean;
14
+ disableSearch?: boolean;
15
+ };
16
+ type FoodsSelectContextInitialValues = ExtraSelectOptions & {
17
+ disabled: boolean;
18
+ closeOnSelect: boolean;
19
+ disableSearch: boolean;
20
+ search: string;
21
+ setSearch: (value: string) => void;
22
+ isSearchFound: (value: string) => boolean;
23
+ };
24
+ export declare const FoodsSelectContext: import("react").Context<FoodsSelectContextInitialValues | null>;
25
+ type FoodsSelectContextProviderProps = ExtraSelectOptions & {
26
+ children: ReactNode;
27
+ };
28
+ export declare const FoodsSelectContextProvider: (props: FoodsSelectContextProviderProps) => import("react/jsx-runtime").JSX.Element;
29
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const useFoodsSelectContext: () => import("./Provider").ExtraSelectOptions & {
2
+ disabled: boolean;
3
+ closeOnSelect: boolean;
4
+ disableSearch: boolean;
5
+ search: string;
6
+ setSearch: (value: string) => void;
7
+ isSearchFound: (value: string) => boolean;
8
+ };
@@ -1,24 +1,14 @@
1
- import { SyntheticEvent } from "react";
2
- type TextOptions = {
3
- emptyOptionsText: string;
4
- placeholder: string;
5
- defaultValueText?: string;
6
- };
7
- type SelectConfiguration = {
8
- closeOnSelect?: boolean;
9
- };
1
+ /// <reference types="react" />
2
+ import { ExtraSelectOptions } from "./Context/Provider";
10
3
  export type FoodsSelectProps<T> = {
11
4
  selectedOption: T | null;
12
5
  options: T[];
13
- onChange: (event: SyntheticEvent<Element, Event>, selectedValue: T | null) => void;
6
+ onChange: (selectedValue: T | null) => void;
14
7
  getId: (item: T) => number | string;
15
8
  getName: (item: T) => string;
16
9
  getIcon?: (item: T) => JSX.Element;
17
- textOptions: TextOptions;
18
10
  originalValue?: T;
19
- noValue?: string;
20
- disabled?: boolean;
21
- config?: SelectConfiguration;
22
11
  };
23
- export declare const FoodsSelect: <T>(props: FoodsSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ type SelectWrapperProps<T> = FoodsSelectProps<T> & ExtraSelectOptions;
13
+ export declare const FoodsSelect: <T>(props: SelectWrapperProps<T>) => import("react/jsx-runtime").JSX.Element;
24
14
  export {};
@@ -1,9 +1,8 @@
1
- import { SyntheticEvent } from "react";
1
+ /// <reference types="react" />
2
2
  export type OptionHeaderProps<T> = {
3
- noValue: string | undefined;
4
3
  selectedOption: T | null;
5
4
  getName: (item: T) => string;
6
5
  getIcon?: (item: T) => JSX.Element;
7
- onChange: (event: SyntheticEvent<Element, Event>, selectedValue: T | null) => void;
6
+ onChange: (selectedValue: T | null) => void;
8
7
  };
9
8
  export declare const OptionsHeader: <T>(props: OptionHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,6 @@ export type OptionLineProps = {
3
3
  isSelected: boolean;
4
4
  icon: JSX.Element | null;
5
5
  displayText: string;
6
+ onClick?: () => void;
6
7
  };
7
8
  export declare const OptionLine: (props: OptionLineProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
- import { SyntheticEvent } from "react";
1
+ /// <reference types="react" />
2
2
  export type SelectOptionsProps<T> = {
3
3
  selectedOption: T | null;
4
4
  options: T[];
5
- noValue: string | undefined;
6
5
  getId: (item: T) => number | string;
7
6
  getName: (item: T) => string;
8
7
  getIcon?: (item: T) => JSX.Element;
9
- onChange: (event: SyntheticEvent<Element, Event>, selectedValue: T | null) => void;
8
+ onChange: (selectedValue: T | null) => void;
10
9
  };
11
10
  export declare const SelectOptions: <T>(props: SelectOptionsProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,10 @@
1
- import { SyntheticEvent } from "react";
1
+ /// <reference types="react" />
2
2
  export type SelectProps<T> = {
3
3
  options: T[];
4
- emptyOptionsText: string;
5
4
  getId: (item: T) => number | string;
6
5
  getName: (item: T) => string;
7
6
  getIcon?: (item: T) => JSX.Element;
8
- onChange: (event: SyntheticEvent<Element, Event>, selectedValue: T | null) => void;
9
- placeholder: string;
7
+ onChange: (selectedValue: T | null) => void;
10
8
  selectedOption: T | null;
11
- disabled: boolean;
12
- closeOnSelect: boolean;
13
- noValue: string | undefined;
14
9
  };
15
10
  export declare const Select: <T>(props: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -11,6 +11,7 @@ export * from "./Field";
11
11
  export * from "./Filter";
12
12
  export * from "./Form";
13
13
  export * from "./Grid";
14
+ export * from "./Icons";
14
15
  export * from "./Indicator";
15
16
  export * from "./Input";
16
17
  export * from "./LinearProgress";
@@ -18,6 +19,7 @@ export * from "./Navigation";
18
19
  export * from "./Number";
19
20
  export * from "./Popover";
20
21
  export * from "./Radio";
22
+ export * from "./Search";
21
23
  export * from "./Select";
22
24
  export * from "./Ssq";
23
25
  export * from "./Tabs";