@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.
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ interface DialogSectionProps {
3
+ edgeToEdge?: boolean;
4
+ borderBottom?: boolean;
5
+ }
6
+ export declare const DialogSection: (props: PropsWithChildren<DialogSectionProps>) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { DialogSection } from './DialogSection';
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ interface DialogTitleProps {
3
+ title: string;
4
+ Icon?: ReactNode;
5
+ onClose: () => void;
6
+ }
7
+ export declare const DialogTitle: (props: DialogTitleProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { DialogTitle } from './DialogTitle';
@@ -1,4 +1,6 @@
1
1
  export interface DishCheckoutCardProps {
2
+ /** Adds a border to the bottom of the card */
3
+ borderBottom?: boolean;
2
4
  /** Modifiers of the dish in tuple format */
3
5
  modifiers?: [string, string][];
4
6
  /** Id of the dish */
@@ -1,10 +1,10 @@
1
1
  export interface DishDetailsReviewProps {
2
2
  /** name of the restaurant follower user who posted the review */
3
- userName: string;
3
+ userName?: string;
4
4
  /** url information for follower profile picture that may be provided */
5
- userAvatarUrl: string | undefined;
5
+ userAvatarUrl?: string;
6
6
  /** the text of the review */
7
7
  content: string;
8
- /** the text represeantation of the relative current time since the review was created */
9
- timeSinceCreated: string;
8
+ /** time since the review was created */
9
+ createdAgo: string;
10
10
  }
@@ -1,12 +1,12 @@
1
1
  declare type ModifierValue = {
2
- id: number | string;
3
- price?: number | null;
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: string | null;
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: string;
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
- /** Boolean for whether or not the view is in mobile */
30
- isMobile: boolean;
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';