@foodpilot/foods 0.3.66 → 0.3.68

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,4 +1,4 @@
1
- import { PopoverOrigin } from '@mui/material';
1
+ import { PopoverOrigin, SxProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  export type CoordinatePopoverProps = {
@@ -8,5 +8,6 @@ export type CoordinatePopoverProps = {
8
8
  open: boolean;
9
9
  setOpen: (value: boolean) => void;
10
10
  transformOrigin?: PopoverOrigin;
11
+ paperOverrides?: SxProps;
11
12
  };
12
13
  export declare const CoordinatePopover: (props: CoordinatePopoverProps) => import("react/jsx-runtime").JSX.Element;
package/dist/main.js CHANGED
@@ -31666,7 +31666,7 @@ const dl = (e) => {
31666
31666
  {
31667
31667
  defaultOptions: { variant: "text" },
31668
31668
  buttonOptions: {
31669
- onClick: () => e.onCancel,
31669
+ onClick: () => e.onCancel && e.onCancel(),
31670
31670
  label: e.cancelLabel || t("Annuler")
31671
31671
  }
31672
31672
  }
@@ -31676,7 +31676,7 @@ const dl = (e) => {
31676
31676
  {
31677
31677
  defaultOptions: { variant: "primary" },
31678
31678
  buttonOptions: {
31679
- onClick: () => e.onValidate,
31679
+ onClick: () => e.onValidate && e.onValidate(),
31680
31680
  label: e.validateLabel || t("Valider")
31681
31681
  }
31682
31682
  }
@@ -31882,7 +31882,7 @@ const aie = (e) => {
31882
31882
  }
31883
31883
  );
31884
31884
  }, lie = (e) => {
31885
- const { content: t, x: n, y: o, open: r, setOpen: i, transformOrigin: a } = e, l = Oe();
31885
+ const { content: t, x: n, y: o, open: r, setOpen: i, transformOrigin: a, paperOverrides: l } = e, c = Oe();
31886
31886
  return /* @__PURE__ */ p.jsx(
31887
31887
  Vo,
31888
31888
  {
@@ -31906,7 +31906,8 @@ const aie = (e) => {
31906
31906
  marginTop: 1.5,
31907
31907
  overflow: "visible",
31908
31908
  boxShadow: "0px 4px 20px 0px rgba(81, 78, 78, 0.12)",
31909
- border: `1px solid ${l.custom.grey[500]}`
31909
+ border: `1px solid ${c.custom.grey[500]}`,
31910
+ ...l
31910
31911
  }
31911
31912
  }
31912
31913
  },