@foodpilot/foods 2.1.7 → 2.1.8
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/README.md +1 -30
- package/dist/components/Accordion/FormAccordion.d.ts +2 -2
- package/dist/components/Accordion/ProductAccordion.d.ts +1 -1
- package/dist/components/Button/TertiaryToggleButton.d.ts +1 -1
- package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +1 -1
- package/dist/components/Icons/IllustrationBackgrounds.d.ts +1 -0
- package/dist/components/Icons/Illustrations/Informations.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Waving Hand.d.ts +2 -0
- package/dist/components/Icons/illustrationProps.d.ts +7 -1
- package/dist/components/Icons/illustrationsConfig.d.ts +2 -0
- package/dist/components/RichTextEditor/components/ColorInput/style/index.d.ts +2 -2
- package/dist/components/RichTextEditor/components/Toolbar/style/index.d.ts +1 -1
- package/dist/main.js +5841 -5672
- package/dist/main.umd.cjs +95 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
-
|
|
5
|
-
Currently, two official plugins are available:
|
|
6
|
-
|
|
7
|
-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
-
|
|
10
|
-
## Expanding the ESLint configuration
|
|
11
|
-
|
|
12
|
-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
-
|
|
14
|
-
- Configure the top-level `parserOptions` property like this:
|
|
15
|
-
|
|
16
|
-
```js
|
|
17
|
-
export default {
|
|
18
|
-
// other rules...
|
|
19
|
-
parserOptions: {
|
|
20
|
-
ecmaVersion: 'latest',
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
project: ['./tsconfig.json', './tsconfig.node.json'],
|
|
23
|
-
tsconfigRootDir: __dirname,
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
29
|
-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
30
|
-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
1
|
+
<img width="2560" height="1024" alt="foods_logo_banner_clean-min" src="https://github.com/user-attachments/assets/4cfbd824-f8fe-473e-aa7a-7c789b8d2b9d" />
|
|
@@ -26,12 +26,12 @@ export declare const StyledFormAccordion: import('@emotion/styled').StyledCompon
|
|
|
26
26
|
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
27
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
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
|
-
}, "children" | "onChange" | "sx" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material/OverridableComponent').CommonProps | "variant" | "elevation" | "disabled" | "expanded" | "square" | "
|
|
29
|
+
}, "children" | "onChange" | "sx" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material/OverridableComponent').CommonProps | "variant" | "elevation" | "disabled" | "expanded" | "square" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & {
|
|
30
30
|
theme?: import('@emotion/react').Theme;
|
|
31
31
|
}, {}, {}>;
|
|
32
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
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;
|
|
34
|
-
}, "className" | "classes" | "style" | "tabIndex" | "children" | "sx" | "slots" | "slotProps" | "disabled" | "action" | "
|
|
34
|
+
}, "className" | "classes" | "style" | "tabIndex" | "children" | "sx" | "slots" | "slotProps" | "disabled" | "action" | "disableRipple" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
35
35
|
theme?: import('@emotion/react').Theme;
|
|
36
36
|
}, {}, {}>;
|
|
37
37
|
export declare const StyledFormAccordionDetails: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionDetailsProps & {
|
|
@@ -14,7 +14,7 @@ export declare const StyledAccordion: import('@emotion/styled').StyledComponent<
|
|
|
14
14
|
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
15
15
|
} & import('@mui/material').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
16
|
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;
|
|
17
|
-
}, "children" | "onChange" | "sx" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material/OverridableComponent').CommonProps | "variant" | "elevation" | "disabled" | "expanded" | "square" | "
|
|
17
|
+
}, "children" | "onChange" | "sx" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material/OverridableComponent').CommonProps | "variant" | "elevation" | "disabled" | "expanded" | "square" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & {
|
|
18
18
|
theme?: import('@emotion/react').Theme;
|
|
19
19
|
}, {}, {}>;
|
|
20
20
|
export type AccordionContent = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToggleButtonProps } from '@mui/material';
|
|
2
2
|
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"> & {
|
|
3
3
|
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;
|
|
4
|
-
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "sx" | "size" | "disabled" | "value" | "action" | "selected" | "
|
|
4
|
+
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "sx" | "size" | "disabled" | "value" | "action" | "selected" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
5
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
6
6
|
export type TertiaryToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
7
7
|
choices: string[];
|
|
@@ -2,7 +2,7 @@ import { ToggleButtonProps } from '@mui/material';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
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
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
|
-
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "sx" | "size" | "disabled" | "value" | "action" | "selected" | "
|
|
5
|
+
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "sx" | "size" | "disabled" | "value" | "action" | "selected" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
6
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
7
|
export type TertiaryToggleButtonPropsNodeTitle = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
8
|
choices: ReactNode[];
|
|
@@ -2,6 +2,7 @@ import { IllustrationPropsInput } from './illustrationProps';
|
|
|
2
2
|
type SvgProps = {
|
|
3
3
|
width: NonNullable<IllustrationPropsInput["width"]>;
|
|
4
4
|
height: IllustrationPropsInput["height"];
|
|
5
|
+
backgroundColor: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const SvgCircle: (props: SvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const SvgRect: (props: SvgProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { allColors } from '../../themes';
|
|
2
|
+
export type AllDatavizIndex = keyof typeof allColors;
|
|
3
|
+
export type DatavizVariant = `dataviz-${AllDatavizIndex}`;
|
|
4
|
+
export type IllustrationVariant = "theme" | DatavizVariant;
|
|
1
5
|
export type CommonIllustationProps = {
|
|
2
6
|
width?: number;
|
|
3
7
|
height?: number;
|
|
8
|
+
variant: IllustrationVariant;
|
|
4
9
|
};
|
|
5
|
-
export type IllustrationPropsInput = CommonIllustationProps & {
|
|
10
|
+
export type IllustrationPropsInput = Omit<CommonIllustationProps, "variant"> & {
|
|
11
|
+
variant?: IllustrationVariant;
|
|
6
12
|
backgroundShape?: "circle" | "rect";
|
|
7
13
|
};
|
|
8
14
|
export type IllustrationProps = CommonIllustationProps & {
|
|
@@ -19,4 +19,6 @@ export declare const illustationsMapping: {
|
|
|
19
19
|
readonly underConstruction: (props: import('./illustrationProps').IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
readonly notEnoughData: (props: import('./illustrationProps').IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
readonly consents: (props: import('./illustrationProps').IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
readonly wavingHand: (props: import('./illustrationProps').IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
readonly informations: (props: import('./illustrationProps').IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
};
|
|
@@ -17,12 +17,12 @@ export declare const ColorInputContainer: import('@emotion/styled').StyledCompon
|
|
|
17
17
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
18
18
|
export declare const ColorButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
19
19
|
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;
|
|
20
|
-
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "
|
|
20
|
+
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "disableElevation" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
21
21
|
currentColor?: string;
|
|
22
22
|
}, {}, {}>;
|
|
23
23
|
export declare const ColorButtonBackground: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
24
24
|
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;
|
|
25
|
-
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "
|
|
25
|
+
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "disableElevation" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
26
26
|
currentColor?: string;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const HiddenInput: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ToolbarButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
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;
|
|
3
|
-
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "
|
|
3
|
+
}, "className" | "classes" | "style" | "tabIndex" | "color" | "children" | "sx" | "size" | "variant" | "href" | "disabled" | "action" | "loading" | "disableElevation" | "disableFocusRipple" | "disableRipple" | "fullWidth" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
4
|
export declare const TextCommandsContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
5
|
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;
|
|
6
6
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|