@foodpilot/foods 0.3.18 → 0.3.20
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/Accordion/FormAccordion.d.ts +23 -22
- package/dist/components/Accordion/GenericAccordion.d.ts +0 -1
- package/dist/components/Accordion/ProductAccordion.d.ts +18 -17
- package/dist/components/Accordion/index.d.ts +3 -3
- package/dist/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Badge/FoodsBadge.d.ts +3 -2
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/Box/AdditionalContentBox.d.ts +2 -1
- package/dist/components/Box/ContextualContentBox.d.ts +2 -1
- package/dist/components/Box/DottedBox.d.ts +0 -1
- package/dist/components/Box/HelperBox.d.ts +2 -1
- package/dist/components/Box/InfoBox.d.ts +0 -1
- package/dist/components/Box/LineGroupBox.d.ts +0 -1
- package/dist/components/Box/QuoteBox.d.ts +0 -1
- package/dist/components/Box/SectionBox.d.ts +3 -2
- package/dist/components/Box/SolidGreyBox.d.ts +2 -2
- package/dist/components/Box/WarningBox.d.ts +0 -1
- package/dist/components/Box/WhiteBox.d.ts +2 -1
- package/dist/components/Box/index.d.ts +12 -12
- package/dist/components/Button/FoodsIconButton.d.ts +0 -1
- package/dist/components/Button/FoodsToggleButton.d.ts +2 -1
- package/dist/components/Button/TertiaryToggleButton.d.ts +5 -5
- package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +6 -5
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Chart/DoughnutChart.d.ts +4 -3
- package/dist/components/Chart/ScatterPlot.d.ts +2 -1
- package/dist/components/Chart/index.d.ts +2 -2
- package/dist/components/Chart/scatterPlotAdditions.d.ts +2 -1
- package/dist/components/Checkbox/BaseCheckbox.d.ts +2 -1
- package/dist/components/Checkbox/FoodsCheckbox.d.ts +2 -1
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +3 -2
- package/dist/components/Checkbox/helperFunctions.d.ts +2 -1
- package/dist/components/Checkbox/index.d.ts +4 -4
- package/dist/components/CustomTypography/CustomTypography.d.ts +2 -1
- package/dist/components/CustomTypography/TypographyList.d.ts +2 -1
- package/dist/components/CustomTypography/index.d.ts +2 -2
- package/dist/components/Dialog/PrimaryDialog.d.ts +3 -2
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Field/NumberField.d.ts +2 -1
- package/dist/components/Field/TextField.d.ts +3 -3
- package/dist/components/Field/index.d.ts +2 -2
- package/dist/components/Filter/index.d.ts +2 -2
- package/dist/components/Form/FoodsFormBase/ConfirmDialog.d.ts +2 -1
- package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +2 -1
- package/dist/components/Form/FoodsFormBase/FormBaseContext.d.ts +4 -4
- package/dist/components/Form/FoodsFormBase/FormTopBar/index.d.ts +1 -1
- package/dist/components/Form/FoodsFormBase/index.d.ts +3 -3
- package/dist/components/Form/FormBase.d.ts +3 -2
- package/dist/components/Form/FormBox.d.ts +2 -2
- package/dist/components/Form/FormPropertyBox.d.ts +3 -2
- package/dist/components/Form/FormTopBar.d.ts +2 -1
- package/dist/components/Form/FormUnit.d.ts +2 -1
- package/dist/components/Form/index.d.ts +6 -6
- package/dist/components/Grid/Cell/GreyCell.d.ts +2 -1
- package/dist/components/Grid/Cell/index.d.ts +3 -3
- package/dist/components/Grid/MRTGrid.d.ts +2 -1
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/Icons/FoodsIcon.d.ts +2 -1
- package/dist/components/Icons/FoodsIllustrations.d.ts +2 -1
- package/dist/components/Icons/iconConfig.d.ts +248 -249
- package/dist/components/Icons/index.d.ts +4 -4
- package/dist/components/Indicator/index.d.ts +1 -1
- package/dist/components/Input/RoundInput.d.ts +3 -3
- package/dist/components/Input/RoundNumberInput.d.ts +2 -1
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/LinearProgress.d.ts +2 -1
- package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +2 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/DefaultUserAction.d.ts +0 -1
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +2 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +2 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +2 -2
- package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +1 -1
- package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +2 -1
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -2
- package/dist/components/Navigation/IconThread.d.ts +2 -1
- package/dist/components/Navigation/Navbar.d.ts +3 -2
- package/dist/components/Navigation/index.d.ts +3 -3
- package/dist/components/Number/index.d.ts +2 -2
- package/dist/components/Popover/AnchoredPopover.d.ts +2 -2
- package/dist/components/Popover/BigPopoverLayout.d.ts +2 -1
- package/dist/components/Popover/CoordinatePopover.d.ts +3 -2
- package/dist/components/Popover/OptionsPopover.d.ts +2 -1
- package/dist/components/Popover/WhitePopover.d.ts +2 -1
- package/dist/components/Popover/WhitePopoverOnIcon.d.ts +0 -1
- package/dist/components/Popover/index.d.ts +6 -6
- package/dist/components/Radio/BaseRadio.d.ts +3 -2
- package/dist/components/Radio/FoodsRadioList.d.ts +2 -1
- package/dist/components/Radio/RadioBoolean.d.ts +2 -1
- package/dist/components/Radio/RadioList.d.ts +3 -2
- package/dist/components/Radio/index.d.ts +3 -3
- package/dist/components/Search/index.d.ts +1 -1
- package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +3 -2
- package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +1 -1
- package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +4 -4
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/Default.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/LineBox.d.ts +2 -1
- package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/Selected.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Select.d.ts +2 -2
- package/dist/components/Select/FoodsSelect/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Ssq/SsqCard.d.ts +2 -1
- package/dist/components/Ssq/index.d.ts +1 -1
- package/dist/components/Tabs/ButtonTabs.d.ts +3 -2
- package/dist/components/Tabs/SectionTabs.d.ts +3 -2
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Text/TextBlock.d.ts +2 -1
- package/dist/components/Text/TextTitle.d.ts +3 -2
- package/dist/components/Text/TextTitleGreyIcon.d.ts +2 -2
- package/dist/components/Text/index.d.ts +4 -4
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Treeview/Item.d.ts +4 -0
- package/dist/components/Treeview/Label.d.ts +7 -0
- package/dist/components/Treeview/Treeview.d.ts +20 -0
- package/dist/components/Treeview/utils.d.ts +3 -0
- package/dist/components/index.d.ts +26 -26
- package/dist/main.d.ts +3 -3
- package/dist/main.js +24604 -24794
- package/dist/main.umd.cjs +115 -181
- package/dist/themes/BredTheme.d.ts +1 -1
- package/dist/themes/CollectiveTheme.d.ts +1 -1
- package/dist/themes/FoodPilotTheme.d.ts +1 -1
- package/dist/themes/FoodsThemeProvider.d.ts +2 -2
- package/dist/themes/ThemeExtensions.d.ts +4 -4
- package/dist/themes/WinePilotTheme.d.ts +1 -1
- package/dist/themes/common.d.ts +3 -2
- package/dist/themes/index.d.ts +4 -3
- package/package.json +6 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
export type FormAccordionContent = {
|
|
3
4
|
title: ReactNode;
|
|
4
5
|
content: ReactNode;
|
|
@@ -10,30 +11,30 @@ export type FormAccordionContent = {
|
|
|
10
11
|
export type FormAccordionProps = {
|
|
11
12
|
pages: FormAccordionContent[];
|
|
12
13
|
};
|
|
13
|
-
export declare const StyledFormAccordion: import(
|
|
14
|
+
export declare const StyledFormAccordion: import('@emotion/styled').StyledComponent<{
|
|
14
15
|
children: NonNullable<ReactNode>;
|
|
15
|
-
classes?: Partial<import(
|
|
16
|
-
defaultExpanded?: boolean
|
|
17
|
-
disabled?: boolean
|
|
18
|
-
disableGutters?: boolean
|
|
19
|
-
expanded?: boolean
|
|
20
|
-
onChange?: (
|
|
21
|
-
sx?: import(
|
|
22
|
-
TransitionComponent?: import(
|
|
23
|
-
children?: import(
|
|
24
|
-
}
|
|
25
|
-
TransitionProps?: import(
|
|
26
|
-
} & import(
|
|
27
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(
|
|
28
|
-
}, keyof import(
|
|
29
|
-
theme?: import(
|
|
16
|
+
classes?: Partial<import('@mui/material').AccordionClasses>;
|
|
17
|
+
defaultExpanded?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
disableGutters?: boolean;
|
|
20
|
+
expanded?: boolean;
|
|
21
|
+
onChange?: (event: import('react').SyntheticEvent, expanded: boolean) => void;
|
|
22
|
+
sx?: import('@mui/material').SxProps<import('@mui/material').Theme>;
|
|
23
|
+
TransitionComponent?: import('react').JSXElementConstructor<import('@mui/material/transitions').TransitionProps & {
|
|
24
|
+
children?: import('react').ReactElement<any, any>;
|
|
25
|
+
}>;
|
|
26
|
+
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
27
|
+
} & import('@mui/material').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
29
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & {
|
|
30
|
+
theme?: import('@emotion/react').Theme;
|
|
30
31
|
}, {}, {}>;
|
|
31
|
-
export declare const StyledFormAccordionSummary: import(
|
|
32
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(
|
|
32
|
+
export declare const StyledFormAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
33
34
|
}, "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
34
|
-
theme?: import(
|
|
35
|
+
theme?: import('@emotion/react').Theme;
|
|
35
36
|
}, {}, {}>;
|
|
36
|
-
export declare const StyledFormAccordionDetails: import(
|
|
37
|
-
theme?: import(
|
|
37
|
+
export declare const StyledFormAccordionDetails: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionDetailsProps & {
|
|
38
|
+
theme?: import('@emotion/react').Theme;
|
|
38
39
|
}, {}, {}>;
|
|
39
40
|
export declare const FormAccordion: (props: FormAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const StyledAccordion: import('@emotion/styled').StyledComponent<{
|
|
3
4
|
children: NonNullable<React.ReactNode>;
|
|
4
|
-
classes?: Partial<import(
|
|
5
|
-
defaultExpanded?: boolean
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
disableGutters?: boolean
|
|
8
|
-
expanded?: boolean
|
|
9
|
-
onChange?: (
|
|
10
|
-
sx?: import(
|
|
11
|
-
TransitionComponent?: React.JSXElementConstructor<import(
|
|
12
|
-
children?: React.ReactElement<any, any
|
|
13
|
-
}
|
|
14
|
-
TransitionProps?: import(
|
|
15
|
-
} & import(
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, keyof import(
|
|
18
|
-
theme?: import(
|
|
5
|
+
classes?: Partial<import('@mui/material/Accordion').AccordionClasses>;
|
|
6
|
+
defaultExpanded?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
disableGutters?: boolean;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
|
|
11
|
+
sx?: import('@mui/system').SxProps<import('@mui/material').Theme>;
|
|
12
|
+
TransitionComponent?: React.JSXElementConstructor<import('@mui/material/transitions').TransitionProps & {
|
|
13
|
+
children?: React.ReactElement<any, any>;
|
|
14
|
+
}>;
|
|
15
|
+
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
16
|
+
} & import('@mui/material/Accordion').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material/Accordion').AccordionSlotsAndSlotProps> & {
|
|
19
|
+
theme?: import('@emotion/react').Theme;
|
|
19
20
|
}, {}, {}>;
|
|
20
21
|
export type AccordionContent = {
|
|
21
22
|
title: JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './FormAccordion';
|
|
2
|
+
export * from './ProductAccordion';
|
|
3
|
+
export * from './GenericAccordion';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
export type BadgeProps = Omit<BoxProps, "content"> & {
|
|
4
5
|
size?: "small" | "medium" | "big";
|
|
5
6
|
children: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
2
|
-
import { FoodsIconProps } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { FoodsIconProps } from '../Icons/FoodsIcon';
|
|
3
|
+
|
|
3
4
|
export type FoodsBadgeProps = {
|
|
4
5
|
size: number;
|
|
5
6
|
icon: FoodsIconProps["icon"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Badge';
|
|
2
|
+
export * from './FoodsBadge';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * from './AdditionalContentBox';
|
|
2
|
+
export * from './CategoryBox';
|
|
3
|
+
export * from './ContextualContentBox';
|
|
4
|
+
export * from './DottedBox';
|
|
5
|
+
export * from './HelperBox';
|
|
6
|
+
export * from './InfoBox';
|
|
7
|
+
export * from './LineGroupBox';
|
|
8
|
+
export * from './QuoteBox';
|
|
9
|
+
export * from './SectionBox';
|
|
10
|
+
export * from './SolidGreyBox';
|
|
11
|
+
export * from './WarningBox';
|
|
12
|
+
export * from './WhiteBox';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const CustomToggleButton: import(
|
|
4
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import(
|
|
5
|
-
}, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import(
|
|
1
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
2
|
+
|
|
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
|
+
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" | "value" | "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[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ToggleButtonProps } from
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
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
|
+
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" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
7
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
8
|
export type TertiaryToggleButtonPropsNodeTitle = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
9
|
choices: ReactNode[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './TertiaryToggleButton';
|
|
2
|
+
export * from './TertiaryToggleButtonNodeTitle';
|
|
3
|
+
export * from './FoodsToggleButton';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ChartProps } from
|
|
3
|
-
import { Property } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChartProps } from 'react-chartjs-2';
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
|
+
|
|
4
5
|
export type DoughnutChartProps = Omit<ChartProps<"doughnut">, "data" | "type"> & {
|
|
5
6
|
values?: number[];
|
|
6
7
|
labels?: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './DoughnutChart';
|
|
2
|
+
export * from './ScatterPlot';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CheckboxProps, FormGroupProps, FormControlLabelProps } from
|
|
1
|
+
import { CheckboxProps, FormGroupProps, FormControlLabelProps } from '@mui/material';
|
|
2
|
+
|
|
2
3
|
export type CheckboxId = string | number;
|
|
3
4
|
export type CheckboxName = string | number;
|
|
4
5
|
export type CheckboxProperties<T> = Record<CheckboxId, CheckboxPropertyValue<T>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CheckboxProps } from
|
|
2
|
-
import { CheckboxProperties } from
|
|
1
|
+
import { CheckboxProps } from '@mui/material';
|
|
2
|
+
import { CheckboxProperties } from './types';
|
|
3
|
+
|
|
3
4
|
type PrimaryCheckboxProps = Omit<CheckboxProps, "onChange"> & {
|
|
4
5
|
values: CheckboxProperties;
|
|
5
6
|
onChange: (newCheckbox: CheckboxProperties) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { CheckboxProperties, MandatoryFields } from
|
|
1
|
+
import { CheckboxProperties, MandatoryFields } from './types';
|
|
2
|
+
|
|
2
3
|
export declare const checkboxToAny: <T extends MandatoryFields, U extends T>(startingValues: T[], checkboxProperties: CheckboxProperties, defaultValue: (fields: MandatoryFields) => U) => T[];
|
|
3
4
|
export declare const anyToCheckbox: <T extends MandatoryFields, U extends MandatoryFields>(allValues: T[], selectedValues: U[]) => CheckboxProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './PrimaryCheckbox';
|
|
2
|
+
export * from './helperFunctions';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './FoodsCheckbox';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './CustomTypography';
|
|
2
|
+
export * from './TypographyList';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from
|
|
2
|
-
import { DialogProps } from
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
3
|
+
|
|
3
4
|
type Settings = {
|
|
4
5
|
title: ReactNode;
|
|
5
6
|
content: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './PrimaryDialog';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { RoundInputProps } from '../Input/RoundInput';
|
|
2
|
+
|
|
3
3
|
export type TextFieldProps = RoundInputProps & {
|
|
4
4
|
title: string;
|
|
5
5
|
placeholder: string;
|
|
6
6
|
value?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const TextField: import(
|
|
9
|
+
export declare const TextField: import('react').ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './NumberField';
|
|
2
|
+
export * from './TextField';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './FixedMultiValueFilter';
|
|
2
|
+
export * from './MultiValueFilter';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { FoodsPage } from
|
|
3
|
-
import { PageLocks } from
|
|
4
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FoodsPage, FoodsFormBaseProps } from './FoodsFormBase';
|
|
3
|
+
import { PageLocks } from './usePageLock';
|
|
4
|
+
|
|
5
5
|
type FormBasePropsBlackList = Omit<FoodsFormBaseProps, "startingPage">;
|
|
6
6
|
type ExtraFormOptions = {
|
|
7
7
|
isSaving: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormTopBar } from
|
|
1
|
+
export { FormTopBar } from './FormTopBar';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FoodsFormBase } from
|
|
2
|
-
export type * from
|
|
3
|
-
export { useFormBaseContext, FormBaseContextProvider } from
|
|
1
|
+
export { FoodsFormBase } from './FoodsFormBase';
|
|
2
|
+
export type * from './FoodsFormBase';
|
|
3
|
+
export { useFormBaseContext, FormBaseContextProvider } from './FormBaseContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './FormBase';
|
|
2
|
+
export * from './FormBox';
|
|
3
|
+
export * from './FormPropertyBox';
|
|
4
|
+
export * from './FormTopBar';
|
|
5
|
+
export * from './FormUnit';
|
|
6
|
+
export * from './FoodsFormBase';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './EcoScoreCell';
|
|
2
|
+
export * from './GreyCell';
|
|
3
|
+
export * from './PointsCell';
|