@popmenu/ordering-ui 0.84.2 → 0.85.1
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/build/components/DialogSection/DialogSection.d.ts +7 -0
- package/build/components/DialogSection/index.d.ts +1 -0
- package/build/components/DialogTitle/DialogTitle.d.ts +8 -0
- package/build/components/DialogTitle/index.d.ts +1 -0
- package/build/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +2 -0
- package/build/components/DishDetailsReview/DishDetailsReviewProps.d.ts +4 -4
- package/build/components/DishModifierCard/DishModifierCardProps.d.ts +3 -3
- package/build/components/LocationCard/LocationCardProps.d.ts +1 -1
- package/build/components/MenuItem/MenuItemPrice.d.ts +1 -1
- package/build/components/MenuItem/MenuItemProps.d.ts +2 -2
- package/build/components/index.d.ts +2 -0
- package/build/index.es.js +252 -100
- package/build/index.es.js.map +1 -1
- package/build/index.js +252 -98
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogSection } from './DialogSection';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogTitle } from './DialogTitle';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface DishDetailsReviewProps {
|
|
2
2
|
/** name of the restaurant follower user who posted the review */
|
|
3
|
-
userName
|
|
3
|
+
userName?: string;
|
|
4
4
|
/** url information for follower profile picture that may be provided */
|
|
5
|
-
userAvatarUrl
|
|
5
|
+
userAvatarUrl?: string;
|
|
6
6
|
/** the text of the review */
|
|
7
7
|
content: string;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** time since the review was created */
|
|
9
|
+
createdAgo: string;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare type ModifierValue = {
|
|
2
|
-
id: number
|
|
3
|
-
price?: number
|
|
2
|
+
id: number;
|
|
3
|
+
price?: number;
|
|
4
4
|
quantity?: number;
|
|
5
5
|
};
|
|
6
6
|
declare type Modifier = {
|
|
7
7
|
id: number;
|
|
8
8
|
name: string;
|
|
9
|
-
price
|
|
9
|
+
price?: string;
|
|
10
10
|
};
|
|
11
11
|
declare type OnChange = (value: Array<ModifierValue>, checked?: boolean) => void;
|
|
12
12
|
interface Base {
|
|
@@ -5,7 +5,7 @@ export interface LocationCardProps extends Omit<MuiCardProps, 'onClick'> {
|
|
|
5
5
|
/** Renders the name of the restaurant location */
|
|
6
6
|
name: string;
|
|
7
7
|
/** Renders the address of the restaurant location */
|
|
8
|
-
address
|
|
8
|
+
address?: string;
|
|
9
9
|
/** Renders the appropriate availability of the restaurant location */
|
|
10
10
|
availability?: string | ReactNode;
|
|
11
11
|
/** Renders the distance of the restaurant location (if applicable) */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuItemProps } from './MenuItemProps';
|
|
3
|
-
export declare const MenuItemPrice: (props: Pick<MenuItemProps, 'price'>) => JSX.Element;
|
|
3
|
+
export declare const MenuItemPrice: (props: Pick<MenuItemProps, 'price' | 'available'>) => JSX.Element;
|
|
@@ -26,6 +26,6 @@ export interface MenuItemProps {
|
|
|
26
26
|
reviewCount?: Maybe<number>;
|
|
27
27
|
/** Callback for when the DishCard is clicked */
|
|
28
28
|
onClick: (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/** Whether or not the menu item is available for ordering */
|
|
30
|
+
available: boolean;
|
|
31
31
|
}
|
|
@@ -21,3 +21,5 @@ export { MenuSectionGroup } from './MenuSectionGroup';
|
|
|
21
21
|
export { MenuSection, MenuSectionProps } from './MenuSection';
|
|
22
22
|
export { MenuItemGroup } from './MenuItemGroup';
|
|
23
23
|
export { PageSection } from './PageSection';
|
|
24
|
+
export { DialogTitle } from './DialogTitle';
|
|
25
|
+
export { DialogSection } from './DialogSection';
|