@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.
Files changed (98) hide show
  1. package/dist/components/Accordion/FormAccordion.d.ts +39 -0
  2. package/dist/components/Accordion/ProductAccordion.d.ts +3 -2
  3. package/dist/components/Accordion/index.d.ts +1 -0
  4. package/dist/components/Badge.d.ts +7 -0
  5. package/dist/components/Box/AdditionalContentBox.d.ts +10 -0
  6. package/dist/components/Box/CategoryBox.d.ts +1 -0
  7. package/dist/components/Box/ContextualContentBox.d.ts +8 -0
  8. package/dist/components/Box/HelperBox.d.ts +2 -0
  9. package/dist/components/Box/SectionBox.d.ts +8 -0
  10. package/dist/components/Box/WhiteBox.d.ts +2 -0
  11. package/dist/components/Box/index.d.ts +5 -0
  12. package/dist/components/Button/TertiaryToggleButton.d.ts +6 -2
  13. package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +13 -0
  14. package/dist/components/Button/index.d.ts +1 -0
  15. package/dist/components/Chart/DoughnutChart.d.ts +12 -0
  16. package/dist/components/Chart/ScatterPlot.d.ts +22 -0
  17. package/dist/components/Chart/index.d.ts +2 -0
  18. package/dist/components/Checkbox/BaseCheckbox.d.ts +21 -0
  19. package/dist/components/Checkbox/FoodsCheckbox.d.ts +9 -0
  20. package/dist/components/Checkbox/PrimaryCheckbox.d.ts +2 -2
  21. package/dist/components/Checkbox/helperFunctions.d.ts +3 -0
  22. package/dist/components/Checkbox/index.d.ts +3 -0
  23. package/dist/components/Checkbox/types.d.ts +9 -0
  24. package/dist/components/CustomTypography/CustomTypography.d.ts +6 -0
  25. package/dist/components/CustomTypography/TypographyList.d.ts +7 -0
  26. package/dist/components/CustomTypography/index.d.ts +2 -0
  27. package/dist/components/Dialog/PrimaryDialog.d.ts +2 -2
  28. package/dist/components/Field/NumberField.d.ts +1 -1
  29. package/dist/components/Form/FoodsFormBase/ConfirmDialog.d.ts +8 -0
  30. package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +40 -0
  31. package/dist/components/Form/FoodsFormBase/FormBaseContext.d.ts +24 -0
  32. package/dist/components/Form/FoodsFormBase/FormTopBar/ActionButtons.d.ts +1 -0
  33. package/dist/components/Form/FoodsFormBase/FormTopBar/BarTitle.d.ts +1 -0
  34. package/dist/components/Form/FoodsFormBase/FormTopBar/FormTopBar.d.ts +1 -0
  35. package/dist/components/Form/FoodsFormBase/FormTopBar/IconThread.d.ts +1 -0
  36. package/dist/components/Form/FoodsFormBase/FormTopBar/SavingCloudStatus.d.ts +1 -0
  37. package/dist/components/Form/FoodsFormBase/FormTopBar/index.d.ts +1 -0
  38. package/dist/components/Form/FoodsFormBase/MainPageLayout.d.ts +1 -0
  39. package/dist/components/Form/FoodsFormBase/index.d.ts +3 -0
  40. package/dist/components/Form/FoodsFormBase/usePageLock.d.ts +17 -0
  41. package/dist/components/Form/FormBase.d.ts +22 -13
  42. package/dist/components/Form/FormBox.d.ts +7 -0
  43. package/dist/components/Form/FormPropertyBox.d.ts +14 -0
  44. package/dist/components/Form/FormTopBar.d.ts +21 -6
  45. package/dist/components/Form/FormUnit.d.ts +7 -0
  46. package/dist/components/Form/index.d.ts +5 -0
  47. package/dist/components/Grid/Cell/GreyCell.d.ts +2 -1
  48. package/dist/components/Grid/Cell/index.d.ts +0 -2
  49. package/dist/components/Indicator/ComparaisonIndicator.d.ts +4 -0
  50. package/dist/components/Indicator/index.d.ts +1 -0
  51. package/dist/components/LinearProgress.d.ts +8 -3
  52. package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +52 -0
  53. package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +11 -0
  54. package/dist/components/Navigation/FoodsNavBar/Footer/UserButton.d.ts +10 -0
  55. package/dist/components/Navigation/FoodsNavBar/Footer/UserPopover.d.ts +12 -0
  56. package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +1 -0
  57. package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +8 -0
  58. package/dist/components/Navigation/FoodsNavBar/Organization.d.ts +7 -0
  59. package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -0
  60. package/dist/components/Navigation/IconThread.d.ts +5 -6
  61. package/dist/components/Navigation/Navbar.d.ts +50 -7
  62. package/dist/components/Navigation/index.d.ts +1 -1
  63. package/dist/components/Number/NumberUnit.d.ts +7 -0
  64. package/dist/components/Number/Score.d.ts +7 -0
  65. package/dist/components/Number/index.d.ts +2 -0
  66. package/dist/components/Popover/AnchoredPopover.d.ts +2 -0
  67. package/dist/components/Popover/BigPopoverLayout.d.ts +5 -5
  68. package/dist/components/Popover/CoordinatePopover.d.ts +9 -0
  69. package/dist/components/Popover/OptionsPopover.d.ts +16 -0
  70. package/dist/components/Popover/WhitePopover.d.ts +8 -0
  71. package/dist/components/Popover/index.d.ts +3 -0
  72. package/dist/components/Radio/BaseRadio.d.ts +22 -0
  73. package/dist/components/Radio/FoodsRadioList.d.ts +9 -0
  74. package/dist/components/Radio/RadioBoolean.d.ts +8 -0
  75. package/dist/components/Radio/RadioList.d.ts +18 -0
  76. package/dist/components/Radio/index.d.ts +3 -0
  77. package/dist/components/{SsqCard.d.ts → Ssq/SsqCard.d.ts} +10 -6
  78. package/dist/components/Ssq/index.d.ts +1 -0
  79. package/dist/components/Tabs/ButtonTabs.d.ts +10 -0
  80. package/dist/components/Tabs/SectionTabs.d.ts +20 -0
  81. package/dist/components/Tabs/index.d.ts +2 -0
  82. package/dist/components/Text/TextBlock.d.ts +13 -0
  83. package/dist/components/Text/TextTitle.d.ts +2 -2
  84. package/dist/components/Text/index.d.ts +1 -0
  85. package/dist/components/Textarea/Textarea.d.ts +6 -0
  86. package/dist/components/index.d.ts +9 -1
  87. package/dist/main.d.ts +2 -18
  88. package/dist/main.js +47244 -31358
  89. package/dist/main.umd.cjs +253 -182
  90. package/dist/themes/FoodPilotTheme.d.ts +3 -1
  91. package/dist/themes/ThemeExtensions.d.ts +53 -2
  92. package/dist/themes/WinePilotTheme.d.ts +3 -1
  93. package/package.json +6 -2
  94. package/dist/components/Grid/Cell/ArrayCell.d.ts +0 -3
  95. package/dist/components/Grid/Cell/LinkCell.d.ts +0 -5
  96. package/dist/components/Grid/MaterialGrid.d.ts +0 -6
  97. package/dist/types/Product.d.ts +0 -18
  98. 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 {};
@@ -0,0 +1,7 @@
1
+ type OrganizationProps = {
2
+ isOpen: boolean;
3
+ name: string;
4
+ picture?: string;
5
+ };
6
+ export declare const Organization: (props: OrganizationProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export { FoodsNavbar } from "./FoodsNavbar";
2
+ export type { FoodsNavbarProps } from "./FoodsNavbar";
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
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: Icon[];
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
- /// <reference types="react" />
2
- export interface INavBarLink {
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
- isCurrent: boolean;
6
- }
7
- export interface INavBarProps {
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 function NavBarLink(props: INavBarLink): import("react/jsx-runtime").JSX.Element;
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,3 +1,3 @@
1
- export * from "../Form/FormTopBar";
2
1
  export * from "./IconThread";
3
2
  export * from "./Navbar";
3
+ export * from "./FoodsNavBar";
@@ -0,0 +1,7 @@
1
+ export type NumberProps = {
2
+ label: number;
3
+ unit: string;
4
+ size?: number;
5
+ direction?: "row" | "column";
6
+ };
7
+ export declare const NumberUnit: (props: NumberProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type ScoreProps = {
2
+ score: "A" | "B" | "C" | "D" | "E";
3
+ value: number;
4
+ size?: number;
5
+ direction?: "row" | "column";
6
+ };
7
+ export declare const Score: (props: ScoreProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./NumberUnit";
2
+ export * from "./Score";
@@ -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
- /// <reference types="react" />
2
- export interface IBigPopoverLayout {
1
+ import { ReactNode } from "react";
2
+ export type IBigPopoverLayout = {
3
3
  headerText: string;
4
4
  headerIcon?: JSX.Element;
5
- children: JSX.Element | JSX.Element[];
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 function BigPopoverLayout(props: IBigPopoverLayout): import("react/jsx-runtime").JSX.Element;
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,8 @@
1
+ /// <reference types="react" />
2
+ type WhitePopoverProps = {
3
+ icon: JSX.Element;
4
+ body: JSX.Element;
5
+ size: string;
6
+ };
7
+ export declare const WhitePopover: (props: WhitePopoverProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,3 +1,6 @@
1
1
  export * from "./AnchoredPopover";
2
2
  export * from "./BigPopoverLayout";
3
+ export * from "./OptionsPopover";
3
4
  export * from "./WhitePopoverOnIcon";
5
+ export * from "./WhitePopover";
6
+ export * from "./CoordinatePopover";
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ export * from "./RadioList";
2
+ export * from "./FoodsRadioList";
3
+ export * from "./RadioBoolean";
@@ -1,10 +1,10 @@
1
1
  import { ElementType } from "react";
2
- export interface SsqCardProps {
2
+ export type SsqCardProps = {
3
3
  heading: {
4
4
  title: string;
5
5
  description: string;
6
- contentUrl: string;
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: number;
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) => import("react/jsx-runtime").JSX.Element;
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,2 @@
1
+ export * from "./ButtonTabs";
2
+ export * from "./SectionTabs";
@@ -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
- /// <reference types="react" />
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
- icon: JSX.Element;
6
+ badge: ReactNode;
7
7
  };
8
8
  export declare const TextTitle: (props: TextTitleProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from "./TextArrowList";
2
+ export * from "./TextBlock";
2
3
  export * from "./TextTitle";
3
4
  export * from "./TextTitleGreyIcon";
@@ -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 { AccordionProduct, GenericAccordion } from "./components/Accordion";
2
- export { CategoryBox, DottedBox, InfoBox, LineGroupBox, QuoteBox, SolidGreyBox, WarningBox } from "./components/Box";
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";