@foodpilot/foods 2.3.9 → 2.4.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/Banner/Banner.d.ts +3 -12
- package/dist/components/Banner/banner.types.d.ts +14 -0
- package/dist/components/Banner/variants/ClassicBanner.d.ts +11 -0
- package/dist/components/Banner/variants/ThemedBanner.d.ts +8 -0
- package/dist/components/Button/FoodsIconButton.d.ts +2 -1
- package/dist/main.js +4359 -4333
- package/dist/main.umd.cjs +57 -57
- package/package.json +1 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
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
|
-
|
|
12
|
-
|
|
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,11 +1,12 @@
|
|
|
1
1
|
import { ButtonProps, TooltipProps } from '@mui/material';
|
|
2
2
|
import { IconMapping } from '../Icons';
|
|
3
3
|
type IconButtonSize = "xs" | "s" | "m";
|
|
4
|
+
type AllButtonProps = ButtonProps<"a"> & ButtonProps<"button">;
|
|
4
5
|
export type FoodsIconButtonProps = {
|
|
5
6
|
size: IconButtonSize;
|
|
6
7
|
withBackground?: boolean;
|
|
7
8
|
icon: keyof IconMapping;
|
|
8
|
-
buttonProps
|
|
9
|
+
buttonProps?: Omit<AllButtonProps, "variant">;
|
|
9
10
|
tooltip?: {
|
|
10
11
|
text?: string;
|
|
11
12
|
props?: Omit<TooltipProps, "children" | "title">;
|