@foodpilot/foods 0.3.63 → 0.3.65
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.
- package/dist/components/Badge/ScoreContainer.d.ts +2 -1
- package/dist/components/Box/IndicatorBox.d.ts +11 -0
- package/dist/components/Box/index.d.ts +1 -0
- package/dist/components/Button/TertiaryToggleButton.d.ts +1 -1
- package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +1 -1
- package/dist/components/CMS/ContentBlock.d.ts +13 -0
- package/dist/components/CMS/index.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChart.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart/doughnutChartAdditions.d.ts +1 -0
- package/dist/components/Field/TextField.d.ts +1 -1
- package/dist/components/Number/NumberWithUnit.d.ts +7 -0
- package/dist/components/Number/index.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/main.js +5633 -5480
- package/dist/main.umd.cjs +100 -100
- package/dist/themes/ThemeExtensions.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/Number/NumberUnit.d.ts +0 -7
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
2
3
|
|
|
3
4
|
type ScoreContainerProps = {
|
|
4
5
|
children: ReactNode;
|
|
5
|
-
|
|
6
|
+
boxProps?: BoxProps;
|
|
6
7
|
};
|
|
7
8
|
export declare const ScoreContainer: (props: ScoreContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type IndicatorBoxProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
children: JSX.Element | JSX.Element[];
|
|
4
|
+
objectives: {
|
|
5
|
+
objective: string;
|
|
6
|
+
component: JSX.Element;
|
|
7
|
+
}[];
|
|
8
|
+
tooltipMessage?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const IndicatorBox: (props: IndicatorBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { ToggleButtonProps } from '@mui/material';
|
|
|
2
2
|
|
|
3
3
|
export declare const CustomToggleButton: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
-
}, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "
|
|
5
|
+
}, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
6
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
7
|
export type TertiaryToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
8
|
choices: string[];
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
|
|
4
4
|
export declare const CustomToggleButtonNodeTitle: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
-
}, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "
|
|
6
|
+
}, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
7
7
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
8
8
|
export type TertiaryToggleButtonPropsNodeTitle = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
9
9
|
choices: ReactNode[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SxProps } from '@mui/system';
|
|
2
|
+
import { FlexibleString } from '../../innerComponents/FlexibleTypography';
|
|
3
|
+
import { FlexibleButtonType } from '../../innerComponents/FlexibleButton';
|
|
4
|
+
|
|
5
|
+
export type ContentBlockProps = {
|
|
6
|
+
title: FlexibleString;
|
|
7
|
+
subtitle?: FlexibleString;
|
|
8
|
+
description?: JSX.Element;
|
|
9
|
+
callToAction?: FlexibleButtonType;
|
|
10
|
+
image?: JSX.Element;
|
|
11
|
+
sxProps?: SxProps;
|
|
12
|
+
};
|
|
13
|
+
export declare const ContentBlock: (props: ContentBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentBlock';
|
|
@@ -12,5 +12,6 @@ export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> &
|
|
|
12
12
|
icons?: ReactNode[];
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
className?: string;
|
|
15
|
+
valuesFormatterFn?: (value: number) => string;
|
|
15
16
|
};
|
|
16
17
|
export declare const DoughnutChart: (props: DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -324,6 +324,7 @@ export declare const getDoughnutConfig: (props: Omit<DoughnutChartProps, "legend
|
|
|
324
324
|
updateMode?: import('chart.js').UpdateMode | undefined;
|
|
325
325
|
valuesUnit?: string | undefined;
|
|
326
326
|
icons?: import('react').ReactNode[] | undefined;
|
|
327
|
+
valuesFormatterFn?: ((value: number) => string) | undefined;
|
|
327
328
|
};
|
|
328
329
|
export declare const extractPaletteFromTheme: (theme: Theme, min: number, max: number) => Property.Color[];
|
|
329
330
|
export declare const createPalette: (colors: Property.Color[], values: number[]) => Property.Color[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type NumberWithUnitProps = {
|
|
2
|
+
value: number | null;
|
|
3
|
+
unit: string;
|
|
4
|
+
size?: "micro" | "small" | "inter" | "big";
|
|
5
|
+
position?: "default-side" | "below-left-aligned" | "below-center-aligned";
|
|
6
|
+
};
|
|
7
|
+
export declare const NumberWithUnit: (props: NumberWithUnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './NumberWithUnit.tsx';
|
|
2
2
|
export * from './Score';
|
|
@@ -6,7 +6,7 @@ export * from './CardImage';
|
|
|
6
6
|
export * from './Cards';
|
|
7
7
|
export * from './Chart';
|
|
8
8
|
export * from './Checkbox';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './CMS';
|
|
10
10
|
export * from './CustomTypography';
|
|
11
11
|
export * from './Dialog';
|
|
12
12
|
export * from './Field';
|
|
@@ -27,3 +27,4 @@ export * from './Ssq';
|
|
|
27
27
|
export * from './Tabs';
|
|
28
28
|
export * from './Text';
|
|
29
29
|
export * from './Treeview';
|
|
30
|
+
export * from './ComparisonBlock';
|