@foodpilot/foods 2.7.3 → 2.7.4
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.
|
@@ -16,7 +16,7 @@ const SeeMoreCard = (props) => {
|
|
|
16
16
|
return /* @__PURE__ */ jsxs(
|
|
17
17
|
Stack,
|
|
18
18
|
{
|
|
19
|
-
padding: theme.spacing(4),
|
|
19
|
+
padding: { xs: theme.spacing(2), sm: theme.spacing(4) },
|
|
20
20
|
gap: theme.spacing(3),
|
|
21
21
|
border: `1px solid ${theme.custom.grey[500]}`,
|
|
22
22
|
borderRadius: "12px",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
1
2
|
import { BarsOptions } from './useBars';
|
|
2
3
|
import { Improvement } from '../../ComparisonBlock/ComparisonBlock';
|
|
3
4
|
import { TextOptions } from './TrajectoryLegend/types';
|
|
@@ -12,5 +13,6 @@ export type TrajectoryChartProps = BarsOptions & {
|
|
|
12
13
|
precision?: number;
|
|
13
14
|
textOptions: TextOptions;
|
|
14
15
|
forceGoalLegend?: boolean;
|
|
16
|
+
sx?: SxProps<Theme>;
|
|
15
17
|
};
|
|
16
18
|
export declare const TrajectoryChart: (props: TrajectoryChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,6 +26,7 @@ const TrajectoryChart = (props) => {
|
|
|
26
26
|
precision = DEFAULT_PRECISION,
|
|
27
27
|
textOptions,
|
|
28
28
|
forceGoalLegend,
|
|
29
|
+
sx,
|
|
29
30
|
...allChartsData
|
|
30
31
|
} = props;
|
|
31
32
|
const chartData = useBars(allChartsData);
|
|
@@ -113,7 +114,8 @@ const TrajectoryChart = (props) => {
|
|
|
113
114
|
borderRadius: theme.spacing(BORDER_RADIUS_SPACING),
|
|
114
115
|
height: "100%",
|
|
115
116
|
width: "100%",
|
|
116
|
-
padding: theme.spacing(PADDING_SPACING)
|
|
117
|
+
padding: theme.spacing(PADDING_SPACING),
|
|
118
|
+
...sx
|
|
117
119
|
},
|
|
118
120
|
ref: chartContainerRef,
|
|
119
121
|
children: /* @__PURE__ */ jsx(
|