@popmenu/ordering-ui 0.78.0 → 0.79.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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MenuItemProps } from './MenuItemProps';
3
+ export declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const useDishCardStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"cardActionArea" | "card" | "cardTitle" | "cardDescription">;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuItemProps } from './MenuItemProps';
3
+ export declare const MenuItemImg: (props: Pick<MenuItemProps, 'image'>) => JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const MenuItemInfo: (props: {
3
+ children: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuItemProps } from './MenuItemProps';
3
+ export declare const MenuItemPrice: (props: Pick<MenuItemProps, 'price'>) => JSX.Element;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export declare type Maybe<T> = T | null;
3
+ export interface MenuItemProps {
4
+ /** Renders the title of the dish */
5
+ title?: Maybe<string>;
6
+ /** Renders the price of the dish */
7
+ price?: Maybe<string>;
8
+ /** Renders the description of the dish */
9
+ description?: Maybe<string>;
10
+ /** The item's id */
11
+ id: string;
12
+ /** The image to be displayed. */
13
+ image?: {
14
+ alt?: Maybe<string>;
15
+ src?: Maybe<string>;
16
+ };
17
+ /** List of item tags for a dish */
18
+ itemTags?: Array<{
19
+ abbr: string;
20
+ color: string;
21
+ name: string;
22
+ }>;
23
+ /** Number of likes */
24
+ likeCount?: Maybe<number>;
25
+ /** Number of reviews */
26
+ reviewCount?: Maybe<number>;
27
+ /** Callback for when the DishCard is clicked */
28
+ onClick: (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
29
+ /** Boolean for whether or not the view is in mobile */
30
+ isMobile: boolean;
31
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuItemProps } from './MenuItemProps';
3
+ export declare const MenuItemReactions: (props: Pick<MenuItemProps, 'likeCount' | 'reviewCount'>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuItemProps } from './MenuItemProps';
3
+ export declare const MenuItemTags: (props: Pick<MenuItemProps, 'itemTags'>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { MenuItem } from './MenuItem';
2
+ export { MenuItemProps } from './MenuItemProps';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const MenuItemGroup: React.ForwardRefExoticComponent<{
3
+ children: React.ReactNode;
4
+ } & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"main">;
@@ -0,0 +1 @@
1
+ export { MenuItemGroup } from './MenuItemGroup';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MenuSectionProps } from './MenuSectionProps';
3
+ export declare const MenuSection: React.ForwardRefExoticComponent<MenuSectionProps & React.RefAttributes<unknown>>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface MenuSectionProps {
3
+ name: string;
4
+ children: React.ReactNode;
5
+ }
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"title">;
@@ -0,0 +1,2 @@
1
+ export { MenuSection } from './MenuSection';
2
+ export { MenuSectionProps } from './MenuSectionProps';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const MenuSectionGroup: React.ForwardRefExoticComponent<{
3
+ id: string;
4
+ children: React.ReactNode;
5
+ } & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export { MenuSectionGroup } from './MenuSectionGroup';
@@ -1,5 +1,5 @@
1
- import { ChangeEvent } from 'react';
1
+ import { ChangeEvent, FormEvent } from 'react';
2
2
  import { TabsProps } from '@material-ui/core/Tabs';
3
3
  export interface SelectableChipGroupProps extends Omit<TabsProps, 'onChange'> {
4
- onChange: (event: ChangeEvent, value: any) => void;
4
+ onChange: ((event: ChangeEvent<unknown>, value: number) => void) | ((event: FormEvent<HTMLButtonElement>) => void);
5
5
  }
@@ -1,6 +1,6 @@
1
1
  export * from '@material-ui/core';
2
2
  export { Button, ButtonProps } from './Button';
3
- export { default as DishCard, DishCardProps } from './DishCard';
3
+ export { MenuItem, MenuItemProps } from './MenuItem';
4
4
  export { default as DishCheckoutCard, DishCheckoutCardProps } from './DishCheckoutCard';
5
5
  export { default as DishDetailsReview, DishDetailsReviewProps } from './DishDetailsReview';
6
6
  export { default as DishModifierCard, DishModifierCardProps } from './DishModifierCard';
@@ -16,3 +16,6 @@ export { default as SelectableChip } from './SelectableChip';
16
16
  export { default as SelectableChipGroup, SelectableChipGroupProps } from './SelectableChipGroup';
17
17
  export { default as StatusTag, StatusTagProps } from './StatusTag';
18
18
  export { SelectedMenuFiltersList, SelectedMenuFiltersListProps } from './SelectedMenuFiltersList';
19
+ export { MenuSectionGroup } from './MenuSectionGroup';
20
+ export { MenuSection, MenuSectionProps } from './MenuSection';
21
+ export { MenuItemGroup } from './MenuItemGroup';