@foodpilot/foods 0.3.33 → 0.3.35
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/Navigation/FoodsNavBar/FoodsNavbar.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/NavbarTooltip.d.ts +3 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/ExpandButton/ExpandButton.d.ts +9 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/Organization/ButtonPopover.d.ts +11 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/Organization/Organization.d.ts +7 -0
- package/dist/components/Navigation/FoodsNavBar/{Footer → Sections/Profile}/UserButton.d.ts +1 -1
- package/dist/components/Navigation/FoodsNavBar/{Footer → Sections/Profile}/UserPopover.d.ts +1 -1
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.d.ts +9 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.d.ts +12 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/UserButtons.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +1 -1
- package/dist/main.js +4497 -4304
- package/dist/main.umd.cjs +90 -90
- package/package.json +1 -1
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +0 -12
- package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +0 -1
- package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +0 -9
- package/dist/components/Navigation/FoodsNavBar/Organization.d.ts +0 -7
- /package/dist/components/Navigation/FoodsNavBar/{Footer → Plugin}/DefaultUserAction.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
1
2
|
import { NormalCssProperties } from '@mui/material/styles/createMixins';
|
|
2
3
|
|
|
3
4
|
export type SidebarOptions = {
|
|
@@ -14,6 +15,7 @@ export type NavbarLinkType = {
|
|
|
14
15
|
isSelected: boolean;
|
|
15
16
|
action: () => void;
|
|
16
17
|
label: string;
|
|
18
|
+
disabled?: boolean;
|
|
17
19
|
};
|
|
18
20
|
export type NavbarDrawerType = {
|
|
19
21
|
label: string;
|
|
@@ -24,6 +26,8 @@ export type NavbarButtonType = {
|
|
|
24
26
|
type: "drawer";
|
|
25
27
|
} & NavbarDrawerType | {
|
|
26
28
|
type: "link";
|
|
29
|
+
} & NavbarLinkType | {
|
|
30
|
+
type: "topLink";
|
|
27
31
|
} & NavbarLinkType;
|
|
28
32
|
export type User = {
|
|
29
33
|
firstname: string;
|
|
@@ -33,6 +37,10 @@ export type User = {
|
|
|
33
37
|
export type Organization = {
|
|
34
38
|
name: string;
|
|
35
39
|
picture?: string;
|
|
40
|
+
popover?: {
|
|
41
|
+
element: JSX.Element;
|
|
42
|
+
paperSx?: SxProps;
|
|
43
|
+
};
|
|
36
44
|
};
|
|
37
45
|
export type FoodsNavbarProps = {
|
|
38
46
|
buttons: NavbarButtonType[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarTexts } from '../../FoodsNavbar';
|
|
2
|
+
|
|
3
|
+
type ExpandButtonProps = {
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
toggleSidebar: () => void;
|
|
6
|
+
textOptions: SidebarTexts;
|
|
7
|
+
};
|
|
8
|
+
export declare const ExpandButton: (props: ExpandButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
type Anchor = HTMLElement | null;
|
|
4
|
+
type ButtonPopoverProps = {
|
|
5
|
+
anchor: Anchor;
|
|
6
|
+
setAnchor: (elementToAttachTo: Anchor) => void;
|
|
7
|
+
children: JSX.Element | undefined;
|
|
8
|
+
paperOverrides: SxProps | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare const ButtonPopover: (props: ButtonPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Organization as OrganizationType } from '../../FoodsNavbar';
|
|
2
|
+
|
|
3
|
+
type OrganizationProps = OrganizationType & {
|
|
4
|
+
isExtended: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const Organization: (props: OrganizationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavbarDrawerType } from '../../../FoodsNavbar';
|
|
2
|
+
|
|
3
|
+
type DrawerActionProps = {
|
|
4
|
+
button: NavbarDrawerType;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
extendSidebar: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const DrawerAction: (props: DrawerActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NavbarLinkType } from '../../../FoodsNavbar';
|
|
2
|
+
|
|
3
|
+
type TopLinkActionProps = {
|
|
4
|
+
button: NavbarLinkType;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const TopLinkAction: (props: TopLinkActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
type ExpandedButtonProps = {
|
|
9
|
+
button: NavbarLinkType;
|
|
10
|
+
};
|
|
11
|
+
export declare const ExpandedButton: (props: ExpandedButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NavbarButtonType } from '../../FoodsNavbar';
|
|
2
|
+
|
|
3
|
+
export type UserButtonsProps = {
|
|
4
|
+
buttons: NavbarButtonType[];
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
extendSidebar: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const UserButtons: (props: UserButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FoodsNavbar';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './Plugin/DefaultUserAction';
|