@foodpilot/foods 2.3.9 → 2.3.10

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,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: Omit<ButtonProps, "variant"> | undefined;
9
+ buttonProps?: Omit<AllButtonProps, "variant">;
9
10
  tooltip?: {
10
11
  text?: string;
11
12
  props?: Omit<TooltipProps, "children" | "title">;
package/dist/main.js CHANGED
@@ -41029,7 +41029,7 @@ const N5 = {
41029
41029
  backgroundColor: e.theme.custom.grey[200]
41030
41030
  }
41031
41031
  })), kA = (e) => {
41032
- const { buttonProps: t, tooltip: n, icon: r, size: o, withBackground: i = !1 } = e, a = `icon-${o}-${i ? "withbackground" : "nobackground"}`, c = {
41032
+ const { buttonProps: t = {}, tooltip: n, icon: r, size: o, withBackground: i = !1 } = e, a = `icon-${o}-${i ? "withbackground" : "nobackground"}`, c = {
41033
41033
  xs: 1,
41034
41034
  s: 2,
41035
41035
  m: 4