@foodpilot/foods 0.1.56 → 0.1.58
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.d.ts +1 -2
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +1 -9
- package/dist/components/Checkbox/helperFunctions.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/types.d.ts +9 -0
- package/dist/components/CustomTypography/CustomTypography.d.ts +6 -0
- package/dist/components/CustomTypography/index.d.ts +1 -0
- package/dist/components/Form/FormBase.d.ts +2 -7
- package/dist/components/Form/FormTopBar.d.ts +1 -1
- package/dist/components/Grid/Cell/ArrayCell.d.ts +1 -1
- package/dist/components/Grid/Cell/GreyCell.d.ts +1 -1
- package/dist/components/Navigation/IconThread.d.ts +0 -4
- package/dist/components/Radio/RadioList.d.ts +5 -1
- package/dist/components/Text/TextTitle.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +1836 -1823
- package/dist/main.umd.cjs +82 -82
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BoxProps } from "@mui/material";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
export type BadgeProps = Omit<BoxProps, "content"> & {
|
|
4
|
-
value?: number;
|
|
5
4
|
size?: "small" | "medium" | "big";
|
|
6
|
-
children
|
|
5
|
+
children: ReactNode;
|
|
7
6
|
};
|
|
8
7
|
export declare const Badge: (props: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { CheckboxProps } from "@mui/material";
|
|
2
|
-
|
|
3
|
-
export type CheckboxPropertyValue = {
|
|
4
|
-
name: string;
|
|
5
|
-
state: boolean;
|
|
6
|
-
};
|
|
2
|
+
import { CheckboxProperties } from "./types";
|
|
7
3
|
type PrimaryCheckboxProps = Omit<CheckboxProps, "onChange"> & {
|
|
8
4
|
values: CheckboxProperties;
|
|
9
5
|
onChange: (newCheckbox: CheckboxProperties) => void;
|
|
10
6
|
};
|
|
11
7
|
export declare const PrimaryCheckbox: (props: PrimaryCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export type MandatoryFields = {
|
|
13
|
-
id: number;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
8
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
1
|
+
import { CheckboxProperties, MandatoryFields } from "./types";
|
|
2
|
+
export declare const checkboxToAny: <T extends MandatoryFields, U extends T>(startingValues: T[], checkboxProperties: CheckboxProperties, defaultValue: (fields: MandatoryFields) => U) => T[];
|
|
3
|
+
export declare const anyToCheckbox: <T extends MandatoryFields, U extends MandatoryFields>(allValues: T[], selectedValues: U[]) => CheckboxProperties;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CustomTypography";
|
|
@@ -2,20 +2,15 @@ import { ReactNode } from "react";
|
|
|
2
2
|
import { SavingStateProps } from "./FormTopBar";
|
|
3
3
|
export type Page = {
|
|
4
4
|
title: string;
|
|
5
|
-
subTitle?:
|
|
5
|
+
subTitle?: ReactNode;
|
|
6
6
|
info?: JSX.Element;
|
|
7
7
|
bigIcon: JSX.Element;
|
|
8
|
-
|
|
9
|
-
selected: JSX.Element;
|
|
10
|
-
unselected: JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
icon: ReactNode;
|
|
8
|
+
icon?: ReactNode;
|
|
13
9
|
content: JSX.Element | JSX.Element[];
|
|
14
10
|
usesBaseLayout?: boolean;
|
|
15
11
|
};
|
|
16
12
|
export type FormBaseProps = {
|
|
17
13
|
title: string;
|
|
18
|
-
icon?: JSX.Element;
|
|
19
14
|
subtitle?: string;
|
|
20
15
|
pages: Page[];
|
|
21
16
|
pageIndexToDisplay?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RadioProps } from "@mui/material";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
2
3
|
export type RadioProperties = Record<string, RadioPropertyValue>;
|
|
3
4
|
export type RadioPropertyValue = {
|
|
4
5
|
name: string;
|
|
@@ -8,7 +9,10 @@ export type RadioPropertyValue = {
|
|
|
8
9
|
type RadioListProps = Omit<RadioProps, "onChange"> & {
|
|
9
10
|
values: RadioProperties;
|
|
10
11
|
onChange: (newRadio: RadioProperties) => void;
|
|
11
|
-
|
|
12
|
+
flexDirection?: CSSProperties["flexDirection"];
|
|
13
|
+
variant?: "primary" | "secondary";
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
12
16
|
};
|
|
13
17
|
export declare const RadioList: (props: RadioListProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
export {};
|
|
@@ -3,6 +3,6 @@ import { customTypographyVariants } from "../../themes/ThemeExtensions";
|
|
|
3
3
|
export type TextTitleProps = {
|
|
4
4
|
title: string;
|
|
5
5
|
titleSize?: customTypographyVariants;
|
|
6
|
-
badge: ReactNode
|
|
6
|
+
badge: ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export declare const TextTitle: (props: TextTitleProps) => import("react/jsx-runtime").JSX.Element;
|