@foodpilot/foods 0.1.2
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 +30 -0
- package/dist/atoms/gammeAtom.d.ts +12 -0
- package/dist/atoms/index.d.ts +5 -0
- package/dist/atoms/ingredientsAtom.d.ts +7 -0
- package/dist/atoms/productGridAtom.d.ts +13 -0
- package/dist/atoms/questionnaireAtom.d.ts +4 -0
- package/dist/components/Accordion/AccordionProduct.d.ts +27 -0
- package/dist/components/Accordion/GenericAccordion.d.ts +8 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/BaseTemplate/BaseTemplate.d.ts +4 -0
- package/dist/components/BaseTemplate/Footer.d.ts +1 -0
- package/dist/components/BaseTemplate/Navbar.d.ts +11 -0
- package/dist/components/BaseTemplate/index.d.ts +4 -0
- package/dist/components/Box/CategoryBox.d.ts +4 -0
- package/dist/components/Box/DottedBox.d.ts +5 -0
- package/dist/components/Box/InfoBox.d.ts +5 -0
- package/dist/components/Box/LineGroupBox.d.ts +9 -0
- package/dist/components/Box/QuoteBox.d.ts +5 -0
- package/dist/components/Box/SolidGreyBox.d.ts +5 -0
- package/dist/components/Box/WarningBox.d.ts +5 -0
- package/dist/components/Box/index.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +6 -0
- package/dist/components/Button/TertiaryToggleButton.d.ts +9 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/CardImage.d.ts +5 -0
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Dialog/ConsumptionModal.d.ts +11 -0
- package/dist/components/Dialog/MaterialModal.d.ts +11 -0
- package/dist/components/Dialog/PackagingModal.d.ts +11 -0
- package/dist/components/Dialog/PrimaryDialog.d.ts +16 -0
- package/dist/components/Dialog/TransformationModal.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Fields/CategoryField.d.ts +9 -0
- package/dist/components/Fields/GammeField.d.ts +9 -0
- package/dist/components/Fields/NumberField.d.ts +9 -0
- package/dist/components/Fields/TextField.d.ts +9 -0
- package/dist/components/Fields/index.d.ts +4 -0
- package/dist/components/Form/FormBase.d.ts +19 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Grid/MRTGrid.d.ts +4 -0
- package/dist/components/Grid/MaterialGrid.d.ts +6 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Inputs/RoundInput.d.ts +3 -0
- package/dist/components/Inputs/RoundNumberInput.d.ts +5 -0
- package/dist/components/Inputs/SearchBox.d.ts +7 -0
- package/dist/components/Inputs/index.d.ts +3 -0
- package/dist/components/LinearProgress.d.ts +9 -0
- package/dist/components/Navigation/FormTopBar.d.ts +11 -0
- package/dist/components/Navigation/IconThread.d.ts +10 -0
- package/dist/components/Navigation/index.d.ts +2 -0
- package/dist/components/Popover/AddProductPopover.d.ts +1 -0
- package/dist/components/Popover/AnchoredPopover.d.ts +16 -0
- package/dist/components/Popover/BigPopoverLayout.d.ts +12 -0
- package/dist/components/Popover/CommonSelectProductLine.d.ts +13 -0
- package/dist/components/Popover/WhitePopoverOnIcon.d.ts +8 -0
- package/dist/components/Popover/index.d.ts +6 -0
- package/dist/components/ProductGrid/Cells/ArrayCell.d.ts +3 -0
- package/dist/components/ProductGrid/Cells/EcoScoreCell.d.ts +6 -0
- package/dist/components/ProductGrid/Cells/GreyCell.d.ts +3 -0
- package/dist/components/ProductGrid/Cells/LinkCell.d.ts +4 -0
- package/dist/components/ProductGrid/Cells/PointsCell.d.ts +4 -0
- package/dist/components/ProductGrid/Cells/index.d.ts +6 -0
- package/dist/components/ProductGrid/Layout/ProductPageHeader.d.ts +1 -0
- package/dist/components/ProductGrid/Layout/TableHeader.d.ts +1 -0
- package/dist/components/ProductGrid/Layout/index.d.ts +3 -0
- package/dist/components/ProductGrid/Popovers/ColumnPositionPopover.d.ts +4 -0
- package/dist/components/ProductGrid/Popovers/DraggableColumn.d.ts +8 -0
- package/dist/components/ProductGrid/Popovers/FilterPopover.d.ts +4 -0
- package/dist/components/ProductGrid/Popovers/ProductCreationMenu.d.ts +1 -0
- package/dist/components/ProductGrid/Popovers/RowMenu.d.ts +1 -0
- package/dist/components/ProductGrid/Popovers/index.d.ts +6 -0
- package/dist/components/ProductGrid/ProductGrid.d.ts +11 -0
- package/dist/components/ProductGrid/index.d.ts +5 -0
- package/dist/components/SsqCard.d.ts +22 -0
- package/dist/components/Texts/TextArrowList.d.ts +4 -0
- package/dist/components/Texts/TextTitle.d.ts +8 -0
- package/dist/components/Texts/TextTitleGreyIcon.d.ts +8 -0
- package/dist/components/Texts/index.d.ts +3 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/main.d.ts +11 -0
- package/dist/main.js +54278 -0
- package/dist/main.umd.cjs +426 -0
- package/dist/themes/FoodPilotTheme.d.ts +3 -0
- package/dist/themes/ThemeExtensions.d.ts +99 -0
- package/dist/themes/WinePilotTheme.d.ts +3 -0
- package/dist/themes/index.d.ts +3 -0
- package/dist/types/Product.d.ts +18 -0
- package/dist/types/index.d.ts +42 -0
- package/package.json +77 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface IDraggableColumnProps {
|
|
2
|
+
columnName: string;
|
|
3
|
+
header: string;
|
|
4
|
+
visibility: boolean;
|
|
5
|
+
index: number;
|
|
6
|
+
moveColumn: (dragIndex: number, hoverIndex: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DraggableColumn(props: IDraggableColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProductCreationMenu(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RowMenu(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as ColumnPositionPopover from "./ColumnPositionPopover";
|
|
2
|
+
import * as DraggableColumn from "./DraggableColumn";
|
|
3
|
+
import * as FilterPopover from "./FilterPopover";
|
|
4
|
+
import * as ProductCreationMenu from "./ProductCreationMenu";
|
|
5
|
+
import * as RowMenu from "./RowMenu";
|
|
6
|
+
export { ColumnPositionPopover, DraggableColumn, FilterPopover, ProductCreationMenu, RowMenu };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Product } from "../../types";
|
|
2
|
+
export type ProductGrid = {
|
|
3
|
+
name: Product["name"];
|
|
4
|
+
brand: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
identifier: string;
|
|
7
|
+
upts: number | null;
|
|
8
|
+
hasUptsWarning: boolean;
|
|
9
|
+
isFavorite: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function ProductGrid(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementType } from "react";
|
|
2
|
+
export interface SsqCardProps {
|
|
3
|
+
heading: {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
contentUrl: string;
|
|
7
|
+
properties: {
|
|
8
|
+
"@id": string;
|
|
9
|
+
title: string;
|
|
10
|
+
fields: {
|
|
11
|
+
"@id": string;
|
|
12
|
+
type: string;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
progress: number;
|
|
17
|
+
link: {
|
|
18
|
+
component: ElementType;
|
|
19
|
+
to: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const SsqCard: (props: SsqCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { customTypographyVariants } from "../../themes/ThemeExtensions";
|
|
3
|
+
export type TextTitleProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
titleSize?: customTypographyVariants;
|
|
6
|
+
icon: JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const TextTitle: (props: TextTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { customTypographyVariants } from "../../themes/ThemeExtensions";
|
|
3
|
+
export type TextTitleGreyIconProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
titleSize?: customTypographyVariants;
|
|
6
|
+
icon: JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const TextTitleGreyIcon: (props: TextTitleGreyIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./Accordion";
|
|
2
|
+
export * from "./BaseTemplate";
|
|
3
|
+
export * from "./Box";
|
|
4
|
+
export * from "./Button";
|
|
5
|
+
export * from "./Checkbox";
|
|
6
|
+
export * from "./Dialog";
|
|
7
|
+
export * from "./Fields";
|
|
8
|
+
export * from "./Form";
|
|
9
|
+
export * from "./Grid";
|
|
10
|
+
export * from "./Inputs";
|
|
11
|
+
export * from "./Navigation";
|
|
12
|
+
export * from "./Popover";
|
|
13
|
+
export * from "./ProductGrid";
|
|
14
|
+
export * from "./Texts";
|
|
15
|
+
export * from "./CardImage";
|
|
16
|
+
export * from "./LinearProgress";
|
|
17
|
+
export * from "./SsqCard";
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { AccordionProduct, GenericAccordion } from "./components/Accordion";
|
|
2
|
+
export { BaseTemplate, Footer, Navbar } from "./components/BaseTemplate";
|
|
3
|
+
export { CategoryBox, DottedBox, InfoBox, LineGroupBox, QuoteBox, SolidGreyBox, WarningBox } from "./components/Box";
|
|
4
|
+
export { Button, TertiaryToggleButton } from "./components/Button";
|
|
5
|
+
export { TextArrowList, TextTitle, TextTitleGreyIcon } from "./components/Texts";
|
|
6
|
+
export { PrimaryCheckbox } from "./components/Checkbox";
|
|
7
|
+
export { ConsumptionModal, MaterialModal, PackagingModal, PrimaryDialog, TransformationModal } from "./components/Dialog";
|
|
8
|
+
export { CategoryField, GammeField, NumberField, TextField } from "./components/Fields";
|
|
9
|
+
export { FormBase } from "./components/Form";
|
|
10
|
+
export { MaterialGrid, MRTGrid } from "./components/Grid";
|
|
11
|
+
export { RoundInput, RoundNumberInput, SearchBox } from "./components/Inputs";
|