@foodpilot/foods 0.1.88 → 0.1.89
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.
|
@@ -20,6 +20,7 @@ export declare const StyledAccordion: import("@emotion/styled").StyledComponent<
|
|
|
20
20
|
export type AccordionContent = {
|
|
21
21
|
title: JSX.Element;
|
|
22
22
|
content: JSX.Element;
|
|
23
|
+
onOpenAction?: () => void;
|
|
23
24
|
};
|
|
24
25
|
export type AccordionProductProps = {
|
|
25
26
|
pages: AccordionContent[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { ToggleButtonProps } from "@mui/material";
|
|
3
|
-
|
|
3
|
+
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
4
|
+
export type ButtonTabsProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
4
5
|
choices: ReactNode[];
|
|
5
6
|
onClick?: (index: number) => void;
|
|
6
7
|
defaultIndex?: number;
|
|
7
8
|
};
|
|
8
9
|
export declare const ButtonTabs: (props: ButtonTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/main.js
CHANGED
|
@@ -30782,7 +30782,9 @@ const rB = {
|
|
|
30782
30782
|
sx: { minHeight: "80px" },
|
|
30783
30783
|
expandIcon: /* @__PURE__ */ g.jsx(lB, {}),
|
|
30784
30784
|
"aria-controls": "panel1a-content",
|
|
30785
|
-
onClick: () =>
|
|
30785
|
+
onClick: () => {
|
|
30786
|
+
o(i), r.onOpenAction && r.onOpenAction();
|
|
30787
|
+
},
|
|
30786
30788
|
children: r.title
|
|
30787
30789
|
}
|
|
30788
30790
|
),
|