@foodpilot/foods 0.1.7 → 0.1.9
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/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +0 -5
- package/dist/components/Checkbox/functions.d.ts +6 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Dialog/index.d.ts +0 -4
- package/dist/components/{Fields → Field}/NumberField.d.ts +1 -1
- package/dist/components/{Fields → Field}/TextField.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +1 -2
- package/dist/components/Navigation/index.d.ts +1 -0
- package/dist/components/Popover/AnchoredPopover.d.ts +0 -4
- package/dist/components/Popover/index.d.ts +0 -2
- package/dist/components/index.d.ts +3 -5
- package/dist/main.d.ts +7 -8
- package/dist/main.js +11747 -15116
- package/dist/main.umd.cjs +102 -102
- package/package.json +6 -3
- package/dist/atoms/index.d.ts +0 -5
- package/dist/atoms/ingredientsAtom.d.ts +0 -7
- package/dist/atoms/productGridAtom.d.ts +0 -13
- package/dist/components/BaseTemplate/BaseTemplate.d.ts +0 -5
- package/dist/components/BaseTemplate/Footer.d.ts +0 -1
- package/dist/components/BaseTemplate/index.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -6
- package/dist/components/Popover/AddProductPopover.d.ts +0 -1
- package/dist/components/ProductGrid/Layout/ProductPageHeader.d.ts +0 -1
- package/dist/components/ProductGrid/Layout/TableHeader.d.ts +0 -1
- package/dist/components/ProductGrid/Layout/index.d.ts +0 -3
- package/dist/components/ProductGrid/Popovers/ColumnPositionPopover.d.ts +0 -4
- package/dist/components/ProductGrid/Popovers/DraggableColumn.d.ts +0 -8
- package/dist/components/ProductGrid/Popovers/FilterPopover.d.ts +0 -4
- package/dist/components/ProductGrid/Popovers/ProductCreationMenu.d.ts +0 -1
- package/dist/components/ProductGrid/Popovers/RowMenu.d.ts +0 -1
- package/dist/components/ProductGrid/Popovers/index.d.ts +0 -6
- package/dist/components/ProductGrid/ProductGrid.d.ts +0 -11
- package/dist/components/ProductGrid/index.d.ts +0 -4
- /package/dist/components/Accordion/{AccordionProduct.d.ts → ProductAccordion.d.ts} +0 -0
- /package/dist/components/{Fields → Field}/CategoryField.d.ts +0 -0
- /package/dist/components/{Fields → Field}/GammeField.d.ts +0 -0
- /package/dist/components/{Fields → Field}/index.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/ArrayCell.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/EcoScoreCell.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/GreyCell.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/LinkCell.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/PointsCell.d.ts +0 -0
- /package/dist/components/Grid/{Cells → Cell}/index.d.ts +0 -0
- /package/dist/components/{Inputs → Input}/RoundInput.d.ts +0 -0
- /package/dist/components/{Inputs → Input}/RoundNumberInput.d.ts +0 -0
- /package/dist/components/{Inputs → Input}/SearchBox.d.ts +0 -0
- /package/dist/components/{Inputs → Input}/index.d.ts +0 -0
- /package/dist/components/{BaseTemplate → Navigation}/Navbar.d.ts +0 -0
- /package/dist/components/{Texts → Text}/TextArrowList.d.ts +0 -0
- /package/dist/components/{Texts → Text}/TextTitle.d.ts +0 -0
- /package/dist/components/{Texts → Text}/TextTitleGreyIcon.d.ts +0 -0
- /package/dist/components/{Texts → Text}/index.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ProductAccordion";
|
|
2
2
|
export * from "./GenericAccordion";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from "@mui/material";
|
|
2
|
-
type ObjectWithName = {
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
2
|
export type CheckboxProperties = Record<string, boolean>;
|
|
6
|
-
export declare const checkboxToAny: <T extends ObjectWithName, U extends T>(startingValues: T[], allValues: CheckboxProperties, defaultValue: (name: string) => U) => T[];
|
|
7
|
-
export declare const anyToCheckbox: <T extends ObjectWithName>(values: T[], allValues: string[]) => CheckboxProperties;
|
|
8
3
|
type PrimaryCheckboxProps = Omit<CheckboxProps, "onChange"> & {
|
|
9
4
|
values: CheckboxProperties;
|
|
10
5
|
onChange: (label: string, isChecked: boolean) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckboxProperties } from ".";
|
|
2
|
+
export type ObjectWithName = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const checkboxToAny: <T extends ObjectWithName, U extends T>(startingValues: T[], allValues: CheckboxProperties, defaultValue: (name: string) => U) => T[];
|
|
6
|
+
export declare const anyToCheckbox: <T extends ObjectWithName>(values: T[], allValues: string[]) => CheckboxProperties;
|
|
@@ -7,10 +7,6 @@ export interface IAnchoredPopoverProps {
|
|
|
7
7
|
children: JSX.Element | JSX.Element[];
|
|
8
8
|
variant?: "themed" | "headless";
|
|
9
9
|
}
|
|
10
|
-
export declare enum AnchoredPopoverVariant {
|
|
11
|
-
"themed" = 0,
|
|
12
|
-
"headless" = 1
|
|
13
|
-
}
|
|
14
10
|
export declare function AnchoredPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
15
11
|
export declare function ThemedPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
16
12
|
export declare function HeadlessPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
export * from "./Accordion";
|
|
2
|
-
export * from "./BaseTemplate";
|
|
3
2
|
export * from "./Box";
|
|
4
3
|
export * from "./Button";
|
|
5
4
|
export * from "./Checkbox";
|
|
6
5
|
export * from "./Dialog";
|
|
7
|
-
export * from "./
|
|
6
|
+
export * from "./Field";
|
|
8
7
|
export * from "./Form";
|
|
9
8
|
export * from "./Grid";
|
|
10
|
-
export * from "./
|
|
9
|
+
export * from "./Input";
|
|
11
10
|
export * from "./Navigation";
|
|
12
11
|
export * from "./Popover";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./Texts";
|
|
12
|
+
export * from "./Text";
|
|
15
13
|
export * from "./CardImage";
|
|
16
14
|
export * from "./LinearProgress";
|
|
17
15
|
export * from "./SsqCard";
|
package/dist/main.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export { AccordionProduct, GenericAccordion } from "./components/Accordion";
|
|
2
|
-
export { BaseTemplate, Footer, Navbar } from "./components/BaseTemplate";
|
|
3
2
|
export { CategoryBox, DottedBox, InfoBox, LineGroupBox, QuoteBox, SolidGreyBox, WarningBox } from "./components/Box";
|
|
4
|
-
export {
|
|
5
|
-
export { TextArrowList, TextTitle, TextTitleGreyIcon } from "./components/
|
|
3
|
+
export { TertiaryToggleButton } from "./components/Button";
|
|
4
|
+
export { TextArrowList, TextTitle, TextTitleGreyIcon } from "./components/Text";
|
|
6
5
|
export { PrimaryCheckbox } from "./components/Checkbox";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
6
|
+
export { PrimaryDialog } from "./components/Dialog";
|
|
7
|
+
export { NumberField, TextField } from "./components/Field";
|
|
9
8
|
export { FormBase } from "./components/Form";
|
|
10
|
-
export {
|
|
11
|
-
export { RoundInput, RoundNumberInput, SearchBox } from "./components/
|
|
9
|
+
export { MRTGrid, LinkCell, ArrayCell, GreyTextCell, EcoScoreCell, PointsCell } from "./components/Grid";
|
|
10
|
+
export { RoundInput, RoundNumberInput, SearchBox } from "./components/Input";
|
|
12
11
|
export { FormTopBar, IconThread } from "./components/Navigation";
|
|
13
|
-
export {
|
|
12
|
+
export { AnchoredPopover, BigPopoverLayout, WhitePopoverOnIcon } from "./components/Popover";
|
|
14
13
|
export { MultiValueFilter, FixedMultiValueFilter } from "./components/Filter";
|