@foodpilot/foods 2.3.10 → 2.4.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.
@@ -1,16 +1,7 @@
1
- import { BoxProps } from '@mui/material';
2
1
  import { ReactNode } from 'react';
3
- import { iconMapping } from '../Icons';
4
- export type MessageVariant = "info" | "error";
5
- type StylePreset = {
6
- icon: keyof typeof iconMapping;
7
- color: string;
8
- };
2
+ import { BannerVariantProps } from './banner.types';
9
3
  type BannerProps = {
10
4
  children?: ReactNode;
11
- BoxProps?: BoxProps;
12
- variant?: MessageVariant;
13
- stylePresetOverride?: Partial<StylePreset>;
14
- };
15
- export declare const Banner: (props: BannerProps) => import("react/jsx-runtime").JSX.Element;
5
+ } & BannerVariantProps;
6
+ export declare const Banner: (props: BannerProps) => import("react/jsx-runtime").JSX.Element | undefined;
16
7
  export {};
@@ -0,0 +1,14 @@
1
+ import { iconMapping } from '../Icons';
2
+ export type MessageVariant = ClassicBannerType | ThemedBannerType;
3
+ export type ClassicBannerType = "info" | "error";
4
+ export type ThemedBannerType = "themed";
5
+ export type StylePreset = {
6
+ icon: keyof typeof iconMapping;
7
+ color: string;
8
+ };
9
+ export type BannerVariantProps = {
10
+ variant?: ClassicBannerType;
11
+ stylePresetOverride?: Partial<StylePreset>;
12
+ } | {
13
+ variant?: ThemedBannerType;
14
+ };
@@ -0,0 +1,11 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ import { ClassicBannerType, StylePreset } from '../banner.types';
4
+ type Props = {
5
+ children?: ReactNode;
6
+ BoxProps?: BoxProps;
7
+ variant?: ClassicBannerType;
8
+ stylePresetOverride?: Partial<StylePreset>;
9
+ };
10
+ export declare const ClassicBanner: (props: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ThemedBannerType } from '../banner.types';
2
+ import { ReactNode } from 'react';
3
+ type Props = {
4
+ children?: ReactNode;
5
+ variant?: ThemedBannerType;
6
+ };
7
+ export declare const ThemedBanner: (props: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,4 +1,9 @@
1
+ import { SxProps } from '@mui/material';
2
+ type DottedBoxVariants = "default" | "themed";
1
3
  export type DottedBoxProps = {
2
4
  children: JSX.Element | JSX.Element[];
5
+ variant?: DottedBoxVariants;
6
+ BoxPropsSxOverride?: SxProps;
3
7
  };
4
8
  export declare const DottedBox: (props: DottedBoxProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -146,9 +146,6 @@ export declare const iconMapping: {
146
146
  readonly uploadFile: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
147
147
  title?: string;
148
148
  }>;
149
- readonly askor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
150
- title?: string;
151
- }>;
152
149
  readonly analyzeData: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
153
150
  title?: string;
154
151
  }>;
@@ -158,6 +155,69 @@ export declare const iconMapping: {
158
155
  readonly lock: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
159
156
  title?: string;
160
157
  }>;
158
+ readonly carbonSSQ: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
159
+ title?: string;
160
+ }>;
161
+ readonly socialSSQ: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
162
+ title?: string;
163
+ }>;
164
+ readonly environment: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
165
+ title?: string;
166
+ }>;
167
+ readonly commitment: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
168
+ title?: string;
169
+ }>;
170
+ readonly checkList: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
171
+ title?: string;
172
+ }>;
173
+ readonly travel: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
174
+ title?: string;
175
+ }>;
176
+ readonly dot: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
177
+ title?: string;
178
+ }>;
179
+ readonly start: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
180
+ title?: string;
181
+ }>;
182
+ readonly cheer: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
183
+ title?: string;
184
+ }>;
185
+ readonly calculate: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
186
+ title?: string;
187
+ }>;
188
+ readonly noCalculation: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
189
+ title?: string;
190
+ }>;
191
+ readonly reference: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
192
+ title?: string;
193
+ }>;
194
+ readonly webhook: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
195
+ title?: string;
196
+ }>;
197
+ readonly wand: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
198
+ title?: string;
199
+ }>;
200
+ readonly graphLink: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
201
+ title?: string;
202
+ }>;
203
+ readonly handshake: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
204
+ title?: string;
205
+ }>;
206
+ readonly biodiversity: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
207
+ title?: string;
208
+ }>;
209
+ readonly utilisation: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
210
+ title?: string;
211
+ }>;
212
+ readonly rulesObject: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
213
+ title?: string;
214
+ }>;
215
+ readonly supportObject: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
216
+ title?: string;
217
+ }>;
218
+ readonly forum: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
219
+ title?: string;
220
+ }>;
161
221
  readonly actionPlan: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
162
222
  title?: string;
163
223
  }>;