@foodpilot/foods 0.3.125 → 0.3.126
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,3 +1,5 @@
|
|
|
1
|
+
import { Orientation } from '@mui/material';
|
|
2
|
+
import { Variant } from './ValueSwitcher/ValueSwitcher';
|
|
1
3
|
import { OptionsPopoverOption } from '../../../Popover';
|
|
2
4
|
export type HeaderOptions = {
|
|
3
5
|
id: number;
|
|
@@ -9,6 +11,7 @@ export type ScoreCardHeaderProps = {
|
|
|
9
11
|
selectedItemId: number | null;
|
|
10
12
|
options: HeaderOptions[];
|
|
11
13
|
information?: string;
|
|
12
|
-
variant?:
|
|
14
|
+
variant?: Variant;
|
|
15
|
+
orientation?: Orientation;
|
|
13
16
|
};
|
|
14
17
|
export declare const ScoreCardHeader: (props: ScoreCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { OptionsPopoverSection } from '../../../../Popover';
|
|
2
2
|
import { HeaderOptions } from '../ScoreCardHeader';
|
|
3
|
+
export type Orientation = "horizontal" | "vertical";
|
|
4
|
+
export type Variant = "primary" | "secondary";
|
|
3
5
|
export type OptionsPopoverType = {
|
|
4
6
|
content: OptionsPopoverSection[];
|
|
5
7
|
onChange: (optionId: number) => void;
|
|
@@ -7,6 +9,7 @@ export type OptionsPopoverType = {
|
|
|
7
9
|
export type ValueSwitcherProps = {
|
|
8
10
|
selectedItem: HeaderOptions | undefined;
|
|
9
11
|
optionsProps: OptionsPopoverType;
|
|
10
|
-
variant?:
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
orientation?: Orientation;
|
|
11
14
|
};
|
|
12
15
|
export declare const ValueSwitcher: (props: ValueSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|