@foodpilot/foods 0.2.0 → 0.3.0
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/FormAccordion.d.ts +39 -0
- package/dist/components/Accordion/ProductAccordion.d.ts +3 -2
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Badge.d.ts +7 -0
- package/dist/components/Box/AdditionalContentBox.d.ts +10 -0
- package/dist/components/Box/CategoryBox.d.ts +1 -0
- package/dist/components/Box/ContextualContentBox.d.ts +8 -0
- package/dist/components/Box/HelperBox.d.ts +2 -0
- package/dist/components/Box/SectionBox.d.ts +8 -0
- package/dist/components/Box/WhiteBox.d.ts +2 -0
- package/dist/components/Box/index.d.ts +5 -0
- package/dist/components/Button/TertiaryToggleButton.d.ts +6 -2
- package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +13 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Chart/DoughnutChart.d.ts +12 -0
- package/dist/components/Chart/ScatterPlot.d.ts +22 -0
- package/dist/components/Chart/index.d.ts +2 -0
- package/dist/components/Checkbox/BaseCheckbox.d.ts +21 -0
- package/dist/components/Checkbox/FoodsCheckbox.d.ts +9 -0
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +2 -2
- package/dist/components/Checkbox/helperFunctions.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/types.d.ts +9 -0
- package/dist/components/CustomTypography/CustomTypography.d.ts +6 -0
- package/dist/components/CustomTypography/TypographyList.d.ts +7 -0
- package/dist/components/CustomTypography/index.d.ts +2 -0
- package/dist/components/Dialog/PrimaryDialog.d.ts +2 -2
- package/dist/components/Field/NumberField.d.ts +1 -1
- package/dist/components/Form/FoodsFormBase/ConfirmDialog.d.ts +8 -0
- package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +40 -0
- package/dist/components/Form/FoodsFormBase/FormBaseContext.d.ts +24 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/ActionButtons.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/BarTitle.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/FormTopBar.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/IconThread.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/SavingCloudStatus.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/FormTopBar/index.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/MainPageLayout.d.ts +1 -0
- package/dist/components/Form/FoodsFormBase/index.d.ts +3 -0
- package/dist/components/Form/FoodsFormBase/usePageLock.d.ts +17 -0
- package/dist/components/Form/FormBase.d.ts +22 -13
- package/dist/components/Form/FormBox.d.ts +7 -0
- package/dist/components/Form/FormPropertyBox.d.ts +14 -0
- package/dist/components/Form/FormTopBar.d.ts +21 -6
- package/dist/components/Form/FormUnit.d.ts +7 -0
- package/dist/components/Form/index.d.ts +5 -0
- package/dist/components/Grid/Cell/GreyCell.d.ts +2 -1
- package/dist/components/Grid/Cell/index.d.ts +0 -2
- package/dist/components/Indicator/ComparaisonIndicator.d.ts +4 -0
- package/dist/components/Indicator/index.d.ts +1 -0
- package/dist/components/LinearProgress.d.ts +8 -3
- package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +52 -0
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +11 -0
- package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +10 -0
- package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +12 -0
- package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +1 -0
- package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/Organization.d.ts +7 -0
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -0
- package/dist/components/Navigation/IconThread.d.ts +5 -6
- package/dist/components/Navigation/Navbar.d.ts +50 -7
- package/dist/components/Navigation/index.d.ts +1 -1
- package/dist/components/Number/NumberUnit.d.ts +7 -0
- package/dist/components/Number/Score.d.ts +7 -0
- package/dist/components/Number/index.d.ts +2 -0
- package/dist/components/Popover/AnchoredPopover.d.ts +2 -0
- package/dist/components/Popover/BigPopoverLayout.d.ts +5 -5
- package/dist/components/Popover/CoordinatePopover.d.ts +9 -0
- package/dist/components/Popover/OptionsPopover.d.ts +16 -0
- package/dist/components/Popover/WhitePopover.d.ts +8 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Radio/BaseRadio.d.ts +22 -0
- package/dist/components/Radio/FoodsRadioList.d.ts +9 -0
- package/dist/components/Radio/RadioBoolean.d.ts +8 -0
- package/dist/components/Radio/RadioList.d.ts +18 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/{SsqCard.d.ts → Ssq/SsqCard.d.ts} +10 -6
- package/dist/components/Ssq/index.d.ts +1 -0
- package/dist/components/Tabs/ButtonTabs.d.ts +10 -0
- package/dist/components/Tabs/SectionTabs.d.ts +20 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Text/TextBlock.d.ts +13 -0
- package/dist/components/Text/TextTitle.d.ts +2 -2
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +6 -0
- package/dist/components/index.d.ts +9 -1
- package/dist/main.d.ts +2 -18
- package/dist/main.js +47244 -31358
- package/dist/main.umd.cjs +253 -182
- package/dist/themes/FoodPilotTheme.d.ts +3 -1
- package/dist/themes/ThemeExtensions.d.ts +53 -2
- package/dist/themes/WinePilotTheme.d.ts +3 -1
- package/package.json +6 -2
- package/dist/components/Grid/Cell/ArrayCell.d.ts +0 -3
- package/dist/components/Grid/Cell/LinkCell.d.ts +0 -5
- package/dist/components/Grid/MaterialGrid.d.ts +0 -6
- package/dist/types/Product.d.ts +0 -18
- package/dist/types/index.d.ts +0 -42
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NormalCssProperties } from "@mui/material/styles/createMixins";
|
|
3
|
+
export type SidebarOptions = {
|
|
4
|
+
isExpanded?: boolean;
|
|
5
|
+
notExpandedSize?: NormalCssProperties["width"];
|
|
6
|
+
expandedSize?: NormalCssProperties["width"];
|
|
7
|
+
};
|
|
8
|
+
export type SidebarTexts = {
|
|
9
|
+
shortenSidebar: string;
|
|
10
|
+
logout: string;
|
|
11
|
+
};
|
|
12
|
+
export type NavbarLinkType = {
|
|
13
|
+
icon: JSX.Element;
|
|
14
|
+
isSelected: boolean;
|
|
15
|
+
action: () => void;
|
|
16
|
+
label: string;
|
|
17
|
+
};
|
|
18
|
+
export type UserActionType = {
|
|
19
|
+
icon: JSX.Element;
|
|
20
|
+
action: () => void;
|
|
21
|
+
label: string;
|
|
22
|
+
};
|
|
23
|
+
export type NavbarDrawerType = {
|
|
24
|
+
label: string;
|
|
25
|
+
icon: JSX.Element;
|
|
26
|
+
items: NavbarLinkType[];
|
|
27
|
+
};
|
|
28
|
+
export type NavbarButtonType = {
|
|
29
|
+
type: "drawer";
|
|
30
|
+
} & NavbarDrawerType | {
|
|
31
|
+
type: "link";
|
|
32
|
+
} & NavbarLinkType;
|
|
33
|
+
export type User = {
|
|
34
|
+
firstname: string;
|
|
35
|
+
lastname: string;
|
|
36
|
+
picture?: string;
|
|
37
|
+
};
|
|
38
|
+
export type Organization = {
|
|
39
|
+
name: string;
|
|
40
|
+
picture?: string;
|
|
41
|
+
};
|
|
42
|
+
export type FoodsNavbarProps = {
|
|
43
|
+
buttons: NavbarButtonType[];
|
|
44
|
+
connectedUser: User;
|
|
45
|
+
organization: Organization;
|
|
46
|
+
sidebarTexts: SidebarTexts;
|
|
47
|
+
sidebarOptions?: SidebarOptions;
|
|
48
|
+
logoutAction: () => void;
|
|
49
|
+
sidebarStatusHandler: (isExpanded: boolean) => void;
|
|
50
|
+
userActions: UserActionType[];
|
|
51
|
+
};
|
|
52
|
+
export declare const FoodsNavbar: (props: FoodsNavbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SidebarTexts, User, UserActionType } from "../FoodsNavbar";
|
|
2
|
+
type FooterProps = {
|
|
3
|
+
user: User;
|
|
4
|
+
userActions: UserActionType[];
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
toggleSidebar: () => void;
|
|
7
|
+
textOptions: SidebarTexts;
|
|
8
|
+
logout: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const Footer: (props: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SidebarTexts, User, UserActionType } from "../FoodsNavbar";
|
|
2
|
+
type UserButtonProps = {
|
|
3
|
+
user: User;
|
|
4
|
+
userActions: UserActionType[];
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
textOptions: SidebarTexts;
|
|
7
|
+
logout: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const UserButton: (props: UserButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SidebarTexts, UserActionType } from "../FoodsNavbar";
|
|
2
|
+
type UserPopoverProps = {
|
|
3
|
+
isExpanded: boolean;
|
|
4
|
+
userActions: UserActionType[];
|
|
5
|
+
isPopoverOpen: boolean;
|
|
6
|
+
anchor: HTMLElement | null;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
logout: () => void;
|
|
9
|
+
textOptions: SidebarTexts;
|
|
10
|
+
};
|
|
11
|
+
export declare const UserPopover: (props: UserPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Footer } from "./Footer";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavbarButtonType } from "./FoodsNavbar";
|
|
2
|
+
type NavbarActionsProps = {
|
|
3
|
+
button: NavbarButtonType;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
extendSidebar: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const NavbarAction: (props: NavbarActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export type Icon = {
|
|
3
|
-
selected: JSX.Element;
|
|
4
|
-
unselected: JSX.Element;
|
|
5
|
-
};
|
|
1
|
+
import { ReactNode } from "react";
|
|
6
2
|
export type IconThreadProps = {
|
|
7
|
-
icons
|
|
3
|
+
icons?: ReactNode[];
|
|
4
|
+
steps?: number;
|
|
8
5
|
currentStep?: number;
|
|
6
|
+
clickable?: boolean;
|
|
7
|
+
onClick?: (index: number) => void;
|
|
9
8
|
};
|
|
10
9
|
export declare const IconThread: (props: IconThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonProps } from "@mui/material";
|
|
3
|
+
export type INavBarLink = {
|
|
3
4
|
icon: React.ReactElement;
|
|
4
5
|
link: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
label?: string;
|
|
7
|
+
sublinks?: INavBarLink[];
|
|
8
|
+
};
|
|
9
|
+
type NavBarLinkProps = INavBarLink & {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
isSubMenuOpen?: boolean;
|
|
12
|
+
isSubmenu: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
navigate: (link: string) => void;
|
|
15
|
+
isCurrent: (link: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
export type IUser = {
|
|
18
|
+
firstname: string;
|
|
19
|
+
lastname: string;
|
|
20
|
+
picture?: string;
|
|
21
|
+
};
|
|
22
|
+
export type IOrganization = {
|
|
23
|
+
name: string;
|
|
24
|
+
picture?: string;
|
|
25
|
+
};
|
|
26
|
+
export type INavBarProps = {
|
|
8
27
|
links: INavBarLink[];
|
|
9
|
-
|
|
28
|
+
connectedUser: IUser;
|
|
29
|
+
organization: IOrganization;
|
|
30
|
+
navigate: (link: string) => void;
|
|
31
|
+
isCurrent: (link: string) => boolean;
|
|
32
|
+
handleIsOpen: (isOpen: boolean) => void;
|
|
33
|
+
settingsRoute?: string;
|
|
34
|
+
settingsText: string;
|
|
35
|
+
userActions: UserActions[];
|
|
36
|
+
};
|
|
37
|
+
export type UserActions = {
|
|
38
|
+
label: string;
|
|
39
|
+
separator?: boolean;
|
|
40
|
+
} & ButtonProps;
|
|
41
|
+
type LayoutNavProps = INavBarProps & {
|
|
42
|
+
isOpen: boolean;
|
|
43
|
+
};
|
|
10
44
|
export declare const Navbar: (props: INavBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare
|
|
45
|
+
export declare const NavBarLink: (props: NavBarLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
type SubMenuProps = {
|
|
47
|
+
sublinks?: INavBarLink[];
|
|
48
|
+
navigate: (link: string) => void;
|
|
49
|
+
isCurrent: (link: string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
export declare const SubMenu: (props: SubMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const HeaderNav: (props: LayoutNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function UserNav(props: LayoutNavProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
2
3
|
export interface IAnchoredPopoverProps {
|
|
3
4
|
open: boolean;
|
|
4
5
|
anchor: HTMLElement | null;
|
|
@@ -6,6 +7,7 @@ export interface IAnchoredPopoverProps {
|
|
|
6
7
|
anchorPosition?: "leftside" | "center" | "rightside";
|
|
7
8
|
children: JSX.Element | JSX.Element[];
|
|
8
9
|
variant?: "themed" | "headless";
|
|
10
|
+
sx?: SxProps;
|
|
9
11
|
}
|
|
10
12
|
export declare function AnchoredPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export declare function ThemedPopover(props: IAnchoredPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type IBigPopoverLayout = {
|
|
3
3
|
headerText: string;
|
|
4
4
|
headerIcon?: JSX.Element;
|
|
5
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
6
6
|
bottomActions?: boolean;
|
|
7
7
|
width?: string;
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
onCancel?: () => void;
|
|
10
10
|
onValidate?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare
|
|
11
|
+
};
|
|
12
|
+
export declare const BigPopoverLayout: (props: IBigPopoverLayout) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type CoordinatePopoverProps = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
open: boolean;
|
|
7
|
+
setOpen: (value: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const CoordinatePopover: (props: CoordinatePopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoxProps } from "@mui/material";
|
|
2
|
+
export type OptionsPopoverOption = {
|
|
3
|
+
id: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type OptionsPopoverSection = {
|
|
8
|
+
header?: string;
|
|
9
|
+
options: OptionsPopoverOption[];
|
|
10
|
+
};
|
|
11
|
+
export type OptionsPopoverProps = Omit<BoxProps, "content" | "onChange"> & {
|
|
12
|
+
content: OptionsPopoverSection[];
|
|
13
|
+
onChange?: (option: OptionsPopoverOption, section: OptionsPopoverSection) => void;
|
|
14
|
+
defaultIndex?: string | number;
|
|
15
|
+
};
|
|
16
|
+
export declare function OptionsPopover(props: OptionsPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RadioProps, FormControlProps, FormControlLabelProps } from "@mui/material";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
3
|
+
export type RadioProperties<T> = Record<string | number, RadioPropertyValue<T>>;
|
|
4
|
+
export type RadioPropertyValue<T> = {
|
|
5
|
+
name: string | number;
|
|
6
|
+
state: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
rawData?: T;
|
|
9
|
+
};
|
|
10
|
+
export type BaseRadioOverrides = {
|
|
11
|
+
FormControlProps?: FormControlProps;
|
|
12
|
+
FormControlLabelProps?: Omit<FormControlLabelProps, "onChange" | "control" | "label" | "key">;
|
|
13
|
+
RadioProps?: RadioProps;
|
|
14
|
+
};
|
|
15
|
+
type BaseRadioProps<T> = BaseRadioOverrides & {
|
|
16
|
+
values: RadioProperties<T>;
|
|
17
|
+
onChange: (newRadio: RadioProperties<T>) => void;
|
|
18
|
+
flexDirection?: CSSProperties["flexDirection"];
|
|
19
|
+
variant?: "primary" | "secondary";
|
|
20
|
+
};
|
|
21
|
+
export declare const BaseRadio: <T>(props: BaseRadioProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseRadioOverrides } from "./BaseRadio";
|
|
2
|
+
export type FoodsRadioListProps<T> = BaseRadioOverrides & {
|
|
3
|
+
selectedItem: T | undefined;
|
|
4
|
+
values: T[];
|
|
5
|
+
onChange: (newValue: T) => void;
|
|
6
|
+
getId?: (item: T) => string | number;
|
|
7
|
+
getName?: (item: T) => string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare const FoodsRadioList: <T>(props: FoodsRadioListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRadioOverrides } from "./BaseRadio";
|
|
2
|
+
export type RadioBooleanProps = BaseRadioOverrides & {
|
|
3
|
+
value: boolean | undefined;
|
|
4
|
+
onChange: (value: boolean) => void;
|
|
5
|
+
trueKeyName?: string;
|
|
6
|
+
falseKeyName?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const RadioBoolean: (props: RadioBooleanProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RadioProps } from "@mui/material";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
3
|
+
export type RadioProperties = Record<string, RadioPropertyValue>;
|
|
4
|
+
export type RadioPropertyValue = {
|
|
5
|
+
name: string;
|
|
6
|
+
state: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type RadioListProps = Omit<RadioProps, "onChange"> & {
|
|
10
|
+
values: RadioProperties;
|
|
11
|
+
onChange: (newRadio: RadioProperties) => void;
|
|
12
|
+
flexDirection?: CSSProperties["flexDirection"];
|
|
13
|
+
variant?: "primary" | "secondary";
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const RadioList: (props: RadioListProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ElementType } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type SsqCardProps = {
|
|
3
3
|
heading: {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
|
-
contentUrl
|
|
7
|
-
properties
|
|
6
|
+
contentUrl?: string;
|
|
7
|
+
properties?: {
|
|
8
8
|
"@id": string;
|
|
9
9
|
title: string;
|
|
10
10
|
fields: {
|
|
@@ -13,10 +13,14 @@ export interface SsqCardProps {
|
|
|
13
13
|
}[];
|
|
14
14
|
}[];
|
|
15
15
|
};
|
|
16
|
-
progress:
|
|
16
|
+
progress: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
17
20
|
link: {
|
|
18
21
|
component: ElementType;
|
|
19
22
|
to: string;
|
|
23
|
+
label: string;
|
|
20
24
|
};
|
|
21
|
-
}
|
|
22
|
-
export declare const SsqCard: (props: SsqCardProps) =>
|
|
25
|
+
};
|
|
26
|
+
export declare const SsqCard: (props: SsqCardProps) => JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SsqCard";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ToggleButtonProps } from "@mui/material";
|
|
3
|
+
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
4
|
+
export type ButtonTabsProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
5
|
+
choices: ReactNode[];
|
|
6
|
+
onClick?: (index: number) => void;
|
|
7
|
+
defaultIndex?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ButtonTabs: (props: ButtonTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { BoxProps } from "@mui/material";
|
|
3
|
+
export type SectionTab = {
|
|
4
|
+
name: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
component?: ReactNode;
|
|
7
|
+
disabled?: boolean | false;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type SectionTabsProps = BoxProps & {
|
|
11
|
+
tabs: SectionTab[];
|
|
12
|
+
value?: number;
|
|
13
|
+
renderComponents?: boolean | true;
|
|
14
|
+
};
|
|
15
|
+
export declare const SectionTabs: (props: SectionTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type SectionTabPanelProps = {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
index: number;
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
export type TextBlockProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
size?: "big" | "small";
|
|
5
|
+
type?: "gray" | "brand" | "default";
|
|
6
|
+
orientation?: "vertical" | "horizontal";
|
|
7
|
+
icon: ReactNode;
|
|
8
|
+
children?: JSX.Element | JSX.Element[];
|
|
9
|
+
cta?: JSX.Element | JSX.Element[];
|
|
10
|
+
closeable?: boolean;
|
|
11
|
+
onClose?: MouseEventHandler;
|
|
12
|
+
};
|
|
13
|
+
export declare const TextBlock: (props: TextBlockProps) => JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { customTypographyVariants } from "../../themes/ThemeExtensions";
|
|
3
3
|
export type TextTitleProps = {
|
|
4
4
|
title: string;
|
|
5
5
|
titleSize?: customTypographyVariants;
|
|
6
|
-
|
|
6
|
+
badge: ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export declare const TextTitle: (props: TextTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type TextareaProps = {
|
|
2
|
+
content: string;
|
|
3
|
+
variant?: "primary" | "secondary" | "tertiary" | "disabled";
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const Textarea: import("@emotion/styled").StyledComponent<TextareaProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
export * from "./Accordion";
|
|
2
2
|
export * from "./Box";
|
|
3
3
|
export * from "./Button";
|
|
4
|
+
export * from "./Chart";
|
|
4
5
|
export * from "./Checkbox";
|
|
5
6
|
export * from "./Dialog";
|
|
6
7
|
export * from "./Field";
|
|
8
|
+
export * from "./Filter";
|
|
7
9
|
export * from "./Form";
|
|
8
10
|
export * from "./Grid";
|
|
9
11
|
export * from "./Input";
|
|
10
12
|
export * from "./Navigation";
|
|
11
13
|
export * from "./Popover";
|
|
14
|
+
export * from "./Ssq";
|
|
15
|
+
export * from "./Tabs";
|
|
12
16
|
export * from "./Text";
|
|
17
|
+
export * from "./CustomTypography";
|
|
18
|
+
export * from "./Number";
|
|
19
|
+
export * from "./Radio";
|
|
20
|
+
export * from "./Indicator";
|
|
21
|
+
export * from "./Badge";
|
|
13
22
|
export * from "./CardImage";
|
|
14
23
|
export * from "./LinearProgress";
|
|
15
|
-
export * from "./SsqCard";
|
package/dist/main.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { TertiaryToggleButton } from "./components/Button";
|
|
4
|
-
export { TextArrowList, TextTitle, TextTitleGreyIcon } from "./components/Text";
|
|
5
|
-
export { PrimaryCheckbox } from "./components/Checkbox";
|
|
6
|
-
export { PrimaryDialog } from "./components/Dialog";
|
|
7
|
-
export { NumberField, TextField } from "./components/Field";
|
|
8
|
-
export { FormBase } from "./components/Form";
|
|
9
|
-
export { MRTGrid, LinkCell, ArrayCell, GreyTextCell, EcoScoreCell, PointsCell } from "./components/Grid";
|
|
10
|
-
export { RoundInput, RoundNumberInput, SearchBox } from "./components/Input";
|
|
11
|
-
export { FormTopBar, IconThread } from "./components/Navigation";
|
|
12
|
-
export { AnchoredPopover, BigPopoverLayout, WhitePopoverOnIcon } from "./components/Popover";
|
|
13
|
-
export { MultiValueFilter, FixedMultiValueFilter } from "./components/Filter";
|
|
1
|
+
export * from "./components";
|
|
2
|
+
export * from "./themes";
|
|
14
3
|
export { Button, Typography } from "@mui/material";
|
|
15
|
-
export type { CheckboxProperties } from "./components/Checkbox";
|
|
16
|
-
export type { LineGroupBoxProps } from "./components/Box";
|
|
17
|
-
export type { AccordionContent } from "./components/Accordion";
|
|
18
|
-
export type { Page } from "./components/Form";
|
|
19
|
-
export { FoodsThemeProvider, FoodPilotTheme } from "./themes";
|