@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.
Files changed (130) hide show
  1. package/dist/components/Accordion/FormAccordion.d.ts +23 -22
  2. package/dist/components/Accordion/GenericAccordion.d.ts +0 -1
  3. package/dist/components/Accordion/ProductAccordion.d.ts +18 -17
  4. package/dist/components/Accordion/index.d.ts +3 -3
  5. package/dist/components/Badge/Badge.d.ts +3 -2
  6. package/dist/components/Badge/FoodsBadge.d.ts +3 -2
  7. package/dist/components/Badge/index.d.ts +2 -2
  8. package/dist/components/Box/AdditionalContentBox.d.ts +2 -1
  9. package/dist/components/Box/ContextualContentBox.d.ts +2 -1
  10. package/dist/components/Box/DottedBox.d.ts +0 -1
  11. package/dist/components/Box/HelperBox.d.ts +2 -1
  12. package/dist/components/Box/InfoBox.d.ts +0 -1
  13. package/dist/components/Box/LineGroupBox.d.ts +0 -1
  14. package/dist/components/Box/QuoteBox.d.ts +0 -1
  15. package/dist/components/Box/SectionBox.d.ts +3 -2
  16. package/dist/components/Box/SolidGreyBox.d.ts +2 -2
  17. package/dist/components/Box/WarningBox.d.ts +0 -1
  18. package/dist/components/Box/WhiteBox.d.ts +2 -1
  19. package/dist/components/Box/index.d.ts +12 -12
  20. package/dist/components/Button/FoodsIconButton.d.ts +0 -1
  21. package/dist/components/Button/FoodsToggleButton.d.ts +2 -1
  22. package/dist/components/Button/TertiaryToggleButton.d.ts +5 -5
  23. package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +6 -5
  24. package/dist/components/Button/index.d.ts +3 -3
  25. package/dist/components/Chart/DoughnutChart.d.ts +4 -3
  26. package/dist/components/Chart/ScatterPlot.d.ts +2 -1
  27. package/dist/components/Chart/index.d.ts +2 -2
  28. package/dist/components/Chart/scatterPlotAdditions.d.ts +2 -1
  29. package/dist/components/Checkbox/BaseCheckbox.d.ts +2 -1
  30. package/dist/components/Checkbox/FoodsCheckbox.d.ts +2 -1
  31. package/dist/components/Checkbox/PrimaryCheckbox.d.ts +3 -2
  32. package/dist/components/Checkbox/helperFunctions.d.ts +2 -1
  33. package/dist/components/Checkbox/index.d.ts +4 -4
  34. package/dist/components/CustomTypography/CustomTypography.d.ts +2 -1
  35. package/dist/components/CustomTypography/TypographyList.d.ts +2 -1
  36. package/dist/components/CustomTypography/index.d.ts +2 -2
  37. package/dist/components/Dialog/PrimaryDialog.d.ts +3 -2
  38. package/dist/components/Dialog/index.d.ts +1 -1
  39. package/dist/components/Field/NumberField.d.ts +2 -1
  40. package/dist/components/Field/TextField.d.ts +3 -3
  41. package/dist/components/Field/index.d.ts +2 -2
  42. package/dist/components/Filter/index.d.ts +2 -2
  43. package/dist/components/Form/FoodsFormBase/ConfirmDialog.d.ts +2 -1
  44. package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +2 -1
  45. package/dist/components/Form/FoodsFormBase/FormBaseContext.d.ts +4 -4
  46. package/dist/components/Form/FoodsFormBase/FormTopBar/index.d.ts +1 -1
  47. package/dist/components/Form/FoodsFormBase/index.d.ts +3 -3
  48. package/dist/components/Form/FormBase.d.ts +3 -2
  49. package/dist/components/Form/FormBox.d.ts +2 -2
  50. package/dist/components/Form/FormPropertyBox.d.ts +3 -2
  51. package/dist/components/Form/FormTopBar.d.ts +2 -1
  52. package/dist/components/Form/FormUnit.d.ts +2 -1
  53. package/dist/components/Form/index.d.ts +6 -6
  54. package/dist/components/Grid/Cell/GreyCell.d.ts +2 -1
  55. package/dist/components/Grid/Cell/index.d.ts +3 -3
  56. package/dist/components/Grid/MRTGrid.d.ts +2 -1
  57. package/dist/components/Grid/index.d.ts +2 -2
  58. package/dist/components/Icons/FoodsIcon.d.ts +2 -1
  59. package/dist/components/Icons/FoodsIllustrations.d.ts +2 -1
  60. package/dist/components/Icons/iconConfig.d.ts +248 -249
  61. package/dist/components/Icons/index.d.ts +4 -4
  62. package/dist/components/Indicator/index.d.ts +1 -1
  63. package/dist/components/Input/RoundInput.d.ts +3 -3
  64. package/dist/components/Input/RoundNumberInput.d.ts +2 -1
  65. package/dist/components/Input/index.d.ts +3 -3
  66. package/dist/components/LinearProgress.d.ts +2 -1
  67. package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +2 -2
  68. package/dist/components/Navigation/FoodsNavBar/Footer/DefaultUserAction.d.ts +0 -1
  69. package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +2 -2
  70. package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +2 -2
  71. package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +2 -2
  72. package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +1 -1
  73. package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +2 -1
  74. package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -2
  75. package/dist/components/Navigation/IconThread.d.ts +2 -1
  76. package/dist/components/Navigation/Navbar.d.ts +3 -2
  77. package/dist/components/Navigation/index.d.ts +3 -3
  78. package/dist/components/Number/index.d.ts +2 -2
  79. package/dist/components/Popover/AnchoredPopover.d.ts +2 -2
  80. package/dist/components/Popover/BigPopoverLayout.d.ts +2 -1
  81. package/dist/components/Popover/CoordinatePopover.d.ts +3 -2
  82. package/dist/components/Popover/OptionsPopover.d.ts +2 -1
  83. package/dist/components/Popover/WhitePopover.d.ts +2 -1
  84. package/dist/components/Popover/WhitePopoverOnIcon.d.ts +0 -1
  85. package/dist/components/Popover/index.d.ts +6 -6
  86. package/dist/components/Radio/BaseRadio.d.ts +3 -2
  87. package/dist/components/Radio/FoodsRadioList.d.ts +2 -1
  88. package/dist/components/Radio/RadioBoolean.d.ts +2 -1
  89. package/dist/components/Radio/RadioList.d.ts +3 -2
  90. package/dist/components/Radio/index.d.ts +3 -3
  91. package/dist/components/Search/index.d.ts +1 -1
  92. package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +3 -2
  93. package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +1 -1
  94. package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +4 -4
  95. package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +0 -1
  96. package/dist/components/Select/FoodsSelect/Options/Line/Default.d.ts +0 -1
  97. package/dist/components/Select/FoodsSelect/Options/Line/LineBox.d.ts +2 -1
  98. package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +0 -1
  99. package/dist/components/Select/FoodsSelect/Options/Line/Selected.d.ts +0 -1
  100. package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +0 -1
  101. package/dist/components/Select/FoodsSelect/Select.d.ts +2 -2
  102. package/dist/components/Select/FoodsSelect/index.d.ts +1 -1
  103. package/dist/components/Select/index.d.ts +1 -1
  104. package/dist/components/Ssq/SsqCard.d.ts +2 -1
  105. package/dist/components/Ssq/index.d.ts +1 -1
  106. package/dist/components/Tabs/ButtonTabs.d.ts +3 -2
  107. package/dist/components/Tabs/SectionTabs.d.ts +3 -2
  108. package/dist/components/Tabs/index.d.ts +2 -2
  109. package/dist/components/Text/TextBlock.d.ts +2 -1
  110. package/dist/components/Text/TextTitle.d.ts +3 -2
  111. package/dist/components/Text/TextTitleGreyIcon.d.ts +2 -2
  112. package/dist/components/Text/index.d.ts +4 -4
  113. package/dist/components/Textarea/Textarea.d.ts +1 -1
  114. package/dist/components/Treeview/Item.d.ts +4 -0
  115. package/dist/components/Treeview/Label.d.ts +7 -0
  116. package/dist/components/Treeview/Treeview.d.ts +20 -0
  117. package/dist/components/Treeview/utils.d.ts +3 -0
  118. package/dist/components/index.d.ts +26 -26
  119. package/dist/main.d.ts +3 -3
  120. package/dist/main.js +24604 -24794
  121. package/dist/main.umd.cjs +115 -181
  122. package/dist/themes/BredTheme.d.ts +1 -1
  123. package/dist/themes/CollectiveTheme.d.ts +1 -1
  124. package/dist/themes/FoodPilotTheme.d.ts +1 -1
  125. package/dist/themes/FoodsThemeProvider.d.ts +2 -2
  126. package/dist/themes/ThemeExtensions.d.ts +4 -4
  127. package/dist/themes/WinePilotTheme.d.ts +1 -1
  128. package/dist/themes/common.d.ts +3 -2
  129. package/dist/themes/index.d.ts +4 -3
  130. package/package.json +6 -4
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
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("@emotion/styled").StyledComponent<{
14
+ export declare const StyledFormAccordion: import('@emotion/styled').StyledComponent<{
14
15
  children: NonNullable<ReactNode>;
15
- classes?: Partial<import("@mui/material").AccordionClasses> | undefined;
16
- defaultExpanded?: boolean | undefined;
17
- disabled?: boolean | undefined;
18
- disableGutters?: boolean | undefined;
19
- expanded?: boolean | undefined;
20
- onChange?: ((event: import("react").SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
21
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
22
- TransitionComponent?: import("react").JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
23
- children?: import("react").ReactElement<any, any> | undefined;
24
- }> | undefined;
25
- TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
26
- } & 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"> & {
27
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
28
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import("@mui/material").AccordionSlotsAndSlotProps> & {
29
- theme?: import("@emotion/react").Theme | undefined;
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("@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"> & {
32
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
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("@emotion/react").Theme | undefined;
35
+ theme?: import('@emotion/react').Theme;
35
36
  }, {}, {}>;
36
- export declare const StyledFormAccordionDetails: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionDetailsProps & {
37
- theme?: import("@emotion/react").Theme | undefined;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IGenericAccordionProps {
3
2
  children: JSX.Element | JSX.Element[];
4
3
  headerIcon: JSX.Element;
@@ -1,21 +1,22 @@
1
- import React from "react";
2
- export declare const StyledAccordion: import("@emotion/styled").StyledComponent<{
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("@mui/material/Accordion").AccordionClasses> | undefined;
5
- defaultExpanded?: boolean | undefined;
6
- disabled?: boolean | undefined;
7
- disableGutters?: boolean | undefined;
8
- expanded?: boolean | undefined;
9
- onChange?: ((event: React.SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
10
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
11
- TransitionComponent?: React.JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
12
- children?: React.ReactElement<any, any> | undefined;
13
- }> | undefined;
14
- TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
15
- } & 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"> & {
16
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
17
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import("@mui/material/Accordion").AccordionSlotsAndSlotProps> & {
18
- theme?: import("@emotion/react").Theme | undefined;
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 "./FormAccordion";
2
- export * from "./ProductAccordion";
3
- export * from "./GenericAccordion";
1
+ export * from './FormAccordion';
2
+ export * from './ProductAccordion';
3
+ export * from './GenericAccordion';
@@ -1,5 +1,6 @@
1
- import { BoxProps } from "@mui/material";
2
- import { ReactNode } from "react";
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 "@mui/material";
2
- import { FoodsIconProps } from "../Icons/FoodsIcon";
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 "./Badge";
2
- export * from "./FoodsBadge";
1
+ export * from './Badge';
2
+ export * from './FoodsBadge';
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  export type AdditionalContentBoxProps = {
3
4
  title: string;
4
5
  type?: "brand" | "default";
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  export type ContextualContentBoxProps = {
3
4
  title?: string;
4
5
  size?: "big" | "small";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type DottedBoxProps = {
3
2
  children: JSX.Element | JSX.Element[];
4
3
  };
@@ -1,2 +1,3 @@
1
- import { BoxProps } from "@mui/material";
1
+ import { BoxProps } from '@mui/material';
2
+
2
3
  export declare const HelperBox: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type InfoBoxProps = {
3
2
  children?: JSX.Element[];
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type LineGroupBoxProps = Omit<InnerLineGroupBoxProps, "children">;
3
2
  type InnerLineGroupBoxProps = {
4
3
  isFirst?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type QuoteBoxProps = {
3
2
  data: JSX.Element;
4
3
  };
@@ -1,5 +1,6 @@
1
- import { BoxProps } from "@mui/material";
2
- import { ReactNode } from "react";
1
+ import { BoxProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+
3
4
  export type SectionBoxProps = BoxProps & {
4
5
  size?: "big" | "small";
5
6
  header: ReactNode;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@mui/material/Box/Box";
1
+ import { BoxProps } from '@mui/material/Box/Box';
2
+
3
3
  export type SolidGreyBoxProps = {
4
4
  children: JSX.Element | JSX.Element[];
5
5
  } & BoxProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type WarningBoxProps = {
3
2
  children: JSX.Element | JSX.Element[];
4
3
  };
@@ -1,2 +1,3 @@
1
- import { BoxProps } from "@mui/material";
1
+ import { BoxProps } from '@mui/material';
2
+
2
3
  export declare const WhiteBox: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,12 @@
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
+ 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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FoodsIconButton = {
3
2
  icon: JSX.Element;
4
3
  };
@@ -1,4 +1,5 @@
1
- import { ToggleButtonProps } from "@mui/material";
1
+ import { ToggleButtonProps } from '@mui/material';
2
+
2
3
  type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "key" | "value" | "onClick" | "selected">;
3
4
  type ToggleChoice = {
4
5
  id: number;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import { ToggleButtonProps } from "@mui/material";
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").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>, {}, {}>;
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 "@mui/material";
2
- import { ReactNode } from "react";
3
- 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"> & {
4
- ref?: ((instance: HTMLButtonElement | null) => void) | 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>, {}, {}>;
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 "./TertiaryToggleButton";
2
- export * from "./TertiaryToggleButtonNodeTitle";
3
- export * from "./FoodsToggleButton";
1
+ export * from './TertiaryToggleButton';
2
+ export * from './TertiaryToggleButtonNodeTitle';
3
+ export * from './FoodsToggleButton';
@@ -1,6 +1,7 @@
1
- import { ReactNode } from "react";
2
- import { ChartProps } from "react-chartjs-2";
3
- import { Property } from "csstype";
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,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  export type ScatterPlotProps = {
3
4
  values: Array<Point>;
4
5
  x: ReactNode;
@@ -1,2 +1,2 @@
1
- export * from "./DoughnutChart";
2
- export * from "./ScatterPlot";
1
+ export * from './DoughnutChart';
2
+ export * from './ScatterPlot';
@@ -1,4 +1,5 @@
1
- import { Chart, Plugin, ChartType, TooltipModel } from "chart.js";
1
+ import { Chart, Plugin, ChartType, TooltipModel } from 'chart.js';
2
+
2
3
  export declare const externalTooltipHandler: (context: {
3
4
  chart: Chart;
4
5
  tooltip: TooltipModel<"scatter">;
@@ -1,4 +1,5 @@
1
- import { CheckboxProps, FormGroupProps, FormControlLabelProps } from "@mui/material";
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,4 +1,5 @@
1
- import { BaseCheckboxOverrides } from "./BaseCheckbox";
1
+ import { BaseCheckboxOverrides } from './BaseCheckbox';
2
+
2
3
  export type FoodsCheckboxProps<T> = BaseCheckboxOverrides & {
3
4
  selectedItems: T[] | undefined;
4
5
  values: T[];
@@ -1,5 +1,6 @@
1
- import { CheckboxProps } from "@mui/material";
2
- import { CheckboxProperties } from "./types";
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 "./types";
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 "./PrimaryCheckbox";
2
- export * from "./helperFunctions";
3
- export * from "./types";
4
- export * from "./FoodsCheckbox";
1
+ export * from './PrimaryCheckbox';
2
+ export * from './helperFunctions';
3
+ export * from './types';
4
+ export * from './FoodsCheckbox';
@@ -1,4 +1,5 @@
1
- import { TypographyProps } from "@mui/material";
1
+ import { TypographyProps } from '@mui/material';
2
+
2
3
  export type CustomTypographyProps = {
3
4
  value: string[];
4
5
  maxLength: number;
@@ -1,4 +1,5 @@
1
- import { TypographyProps } from "@mui/material";
1
+ import { TypographyProps } from '@mui/material';
2
+
2
3
  export type TypographyListProps = {
3
4
  value: string[];
4
5
  maxLength: number;
@@ -1,2 +1,2 @@
1
- export * from "./CustomTypography";
2
- export * from "./TypographyList";
1
+ export * from './CustomTypography';
2
+ export * from './TypographyList';
@@ -1,5 +1,6 @@
1
- import { Dispatch, ReactNode, SetStateAction } from "react";
2
- import { DialogProps } from "@mui/material/Dialog";
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 "./PrimaryDialog";
1
+ export * from './PrimaryDialog';
@@ -1,4 +1,5 @@
1
- import { RoundInputProps } from "../Input/RoundInput";
1
+ import { RoundInputProps } from '../Input/RoundInput';
2
+
2
3
  export type NumberFieldProps = RoundInputProps & {
3
4
  title: string;
4
5
  unit: string;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { RoundInputProps } from "../Input/RoundInput";
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("react").ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import("react").RefAttributes<unknown>>;
9
+ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import('react').RefAttributes<unknown>>;
@@ -1,2 +1,2 @@
1
- export * from "./NumberField";
2
- export * from "./TextField";
1
+ export * from './NumberField';
2
+ export * from './TextField';
@@ -1,2 +1,2 @@
1
- export * from "./FixedMultiValueFilter";
2
- export * from "./MultiValueFilter";
1
+ export * from './FixedMultiValueFilter';
2
+ export * from './MultiValueFilter';
@@ -1,4 +1,5 @@
1
- import { ConfirmOptionsType } from "./FoodsFormBase";
1
+ import { ConfirmOptionsType } from './FoodsFormBase';
2
+
2
3
  type ConfirmDialogProps = {
3
4
  open: boolean;
4
5
  onClose: () => void;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  export type FoodsPage = {
3
4
  title?: string;
4
5
  subtitle?: ReactNode;
@@ -1,7 +1,7 @@
1
- import { ReactNode } from "react";
2
- import { FoodsPage } from "./FoodsFormBase";
3
- import { PageLocks } from "./usePageLock";
4
- import { FoodsFormBaseProps } from "./FoodsFormBase";
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 "./FormTopBar";
1
+ export { FormTopBar } from './FormTopBar';
@@ -1,3 +1,3 @@
1
- export { FoodsFormBase } from "./FoodsFormBase";
2
- export type * from "./FoodsFormBase";
3
- export { useFormBaseContext, FormBaseContextProvider } from "./FormBaseContext";
1
+ export { FoodsFormBase } from './FoodsFormBase';
2
+ export type * from './FoodsFormBase';
3
+ export { useFormBaseContext, FormBaseContextProvider } from './FormBaseContext';
@@ -1,5 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { SavingStateProps } from "./FormTopBar";
1
+ import { ReactNode } from 'react';
2
+ import { SavingStateProps } from './FormTopBar';
3
+
3
4
  export type Page = {
4
5
  title?: string;
5
6
  subTitle?: ReactNode;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@mui/material";
1
+ import { BoxProps } from '@mui/material';
2
+
3
3
  interface FormBoxProps extends BoxProps {
4
4
  sx?: React.CSSProperties;
5
5
  }
@@ -1,5 +1,6 @@
1
- import { BoxProps } from "@mui/material";
2
- import { ReactNode } from "react";
1
+ import { BoxProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+
3
4
  type PropertyIndicator = {
4
5
  value: number;
5
6
  unit: string;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  type FormTopBarProps = {
3
4
  title: string;
4
5
  subtitle?: ReactNode;
@@ -1,4 +1,5 @@
1
- import { BoxProps } from "@mui/material";
1
+ import { BoxProps } from '@mui/material';
2
+
2
3
  type FormUnitProps = BoxProps & {
3
4
  value: number;
4
5
  unit: string;
@@ -1,6 +1,6 @@
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
+ export * from './FormBase';
2
+ export * from './FormBox';
3
+ export * from './FormPropertyBox';
4
+ export * from './FormTopBar';
5
+ export * from './FormUnit';
6
+ export * from './FoodsFormBase';
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  export declare function GreyTextCell(props: {
3
4
  value: ReactNode;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- export * from "./EcoScoreCell";
2
- export * from "./GreyCell";
3
- export * from "./PointsCell";
1
+ export * from './EcoScoreCell';
2
+ export * from './GreyCell';
3
+ export * from './PointsCell';