@popmenu/ordering-ui 0.127.1 → 0.127.2

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 (103) hide show
  1. package/build/cjs/components/Checkbox/Checkbox.d.ts +1 -0
  2. package/build/cjs/components/DishCheckoutCard/DishCheckoutCard.d.ts +1 -0
  3. package/build/cjs/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +2 -2
  4. package/build/cjs/components/DishModifierCard/DishModifierCard.d.ts +1 -0
  5. package/build/cjs/components/DishModifierCard/DishModifierCardProps.d.ts +7 -7
  6. package/build/cjs/components/DishModifierCard/ModifierControls.d.ts +1 -0
  7. package/build/cjs/components/DishModifierCard/ModifierForm.d.ts +1 -0
  8. package/build/cjs/components/LocationCard/LocationCard.d.ts +1 -0
  9. package/build/cjs/components/MenuBanner/MenuBanner.d.ts +1 -0
  10. package/build/cjs/components/MenuBanner/MenuBannerIcons.d.ts +1 -0
  11. package/build/cjs/components/MenuBanner/MenuBannerProps.d.ts +1 -1
  12. package/build/cjs/components/MenuDropdown/MenuDropdown.d.ts +1 -0
  13. package/build/cjs/components/MenuDropdown/MenuDropdownProps.d.ts +1 -1
  14. package/build/cjs/components/MenuFilter/MenuFilter.d.ts +1 -0
  15. package/build/cjs/components/MenuFilter/MenuFilterProps.d.ts +4 -3
  16. package/build/cjs/components/MenuItem/MenuItemImg.d.ts +2 -1
  17. package/build/cjs/components/MenuItem/MenuItemPrice.d.ts +2 -1
  18. package/build/cjs/components/MenuItem/MenuItemProps.d.ts +1 -1
  19. package/build/cjs/components/MenuItem/MenuItemReactions.d.ts +2 -1
  20. package/build/cjs/components/MenuItem/MenuItemTags.d.ts +2 -1
  21. package/build/cjs/components/MenuItemGroup/MenuItemGroup.d.ts +1 -1
  22. package/build/cjs/components/MenuSection/MenuSectionProps.d.ts +1 -0
  23. package/build/cjs/components/MenuTab/MenuTab.d.ts +1 -0
  24. package/build/cjs/components/MenuTab/MenuTab.styles.d.ts +4 -1
  25. package/build/cjs/components/MenuTab/MenuTabProps.d.ts +1 -1
  26. package/build/cjs/components/MenuTabGroup/MenuTabGroup.d.ts +1 -0
  27. package/build/cjs/components/MenuTabGroup/MenuTabGroupProps.d.ts +1 -1
  28. package/build/cjs/components/OrderingAppContext/OrderingAppContext.d.ts +3 -3
  29. package/build/cjs/components/QuantityPicker/QuantityPicker.d.ts +1 -0
  30. package/build/cjs/components/QuantityPicker/QuantityPickerProps.d.ts +1 -1
  31. package/build/cjs/components/Radio/Radio.d.ts +1 -0
  32. package/build/cjs/components/ReactionCounter/ReactionCounter.d.ts +1 -0
  33. package/build/cjs/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +1 -1
  34. package/build/cjs/components/SelectableChip/SelectableChip.d.ts +1 -0
  35. package/build/cjs/components/SelectableChip/SelectableChipProps.d.ts +1 -1
  36. package/build/cjs/components/SelectableChipGroup/SelectableChipGroup.d.ts +1 -0
  37. package/build/cjs/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +1 -1
  38. package/build/cjs/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +1 -0
  39. package/build/cjs/components/StatusTag/StatusTag.d.ts +1 -0
  40. package/build/cjs/components/Switch/Switch.d.ts +1 -0
  41. package/build/cjs/index.js +9 -11
  42. package/build/cjs/index.js.map +1 -1
  43. package/build/esm/components/Button/Button.js.map +1 -1
  44. package/build/esm/components/Checkbox/Checkbox.d.ts +1 -0
  45. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.d.ts +1 -0
  46. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.js.map +1 -1
  47. package/build/esm/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +2 -2
  48. package/build/esm/components/DishModifierCard/DishModifierCard.d.ts +1 -0
  49. package/build/esm/components/DishModifierCard/DishModifierCard.js.map +1 -1
  50. package/build/esm/components/DishModifierCard/DishModifierCardProps.d.ts +7 -7
  51. package/build/esm/components/DishModifierCard/ModifierControls.d.ts +1 -0
  52. package/build/esm/components/DishModifierCard/ModifierControls.js.map +1 -1
  53. package/build/esm/components/DishModifierCard/ModifierForm.d.ts +1 -0
  54. package/build/esm/components/LocationCard/LocationCard.d.ts +1 -0
  55. package/build/esm/components/MenuBanner/MenuBanner.d.ts +1 -0
  56. package/build/esm/components/MenuBanner/MenuBanner.js +1 -1
  57. package/build/esm/components/MenuBanner/MenuBanner.js.map +1 -1
  58. package/build/esm/components/MenuBanner/MenuBannerIcons.d.ts +1 -0
  59. package/build/esm/components/MenuBanner/MenuBannerProps.d.ts +1 -1
  60. package/build/esm/components/MenuDropdown/MenuDropdown.d.ts +1 -0
  61. package/build/esm/components/MenuDropdown/MenuDropdownProps.d.ts +1 -1
  62. package/build/esm/components/MenuFilter/MenuFilter.d.ts +1 -0
  63. package/build/esm/components/MenuFilter/MenuFilter.js.map +1 -1
  64. package/build/esm/components/MenuFilter/MenuFilterProps.d.ts +4 -3
  65. package/build/esm/components/MenuItem/MenuItemImg.d.ts +2 -1
  66. package/build/esm/components/MenuItem/MenuItemImg.js.map +1 -1
  67. package/build/esm/components/MenuItem/MenuItemPrice.d.ts +2 -1
  68. package/build/esm/components/MenuItem/MenuItemProps.d.ts +1 -1
  69. package/build/esm/components/MenuItem/MenuItemReactions.d.ts +2 -1
  70. package/build/esm/components/MenuItem/MenuItemTags.d.ts +2 -1
  71. package/build/esm/components/MenuItemGroup/MenuItemGroup.d.ts +1 -1
  72. package/build/esm/components/MenuItemGroup/MenuItemGroup.js +1 -1
  73. package/build/esm/components/MenuItemGroup/MenuItemGroup.js.map +1 -1
  74. package/build/esm/components/MenuSection/MenuSection.js +1 -1
  75. package/build/esm/components/MenuSection/MenuSection.js.map +1 -1
  76. package/build/esm/components/MenuSection/MenuSectionProps.d.ts +1 -0
  77. package/build/esm/components/MenuSectionGroup/MenuSectionGroup.js +1 -1
  78. package/build/esm/components/MenuSectionGroup/MenuSectionGroup.js.map +1 -1
  79. package/build/esm/components/MenuTab/MenuTab.d.ts +1 -0
  80. package/build/esm/components/MenuTab/MenuTab.js +2 -2
  81. package/build/esm/components/MenuTab/MenuTab.js.map +1 -1
  82. package/build/esm/components/MenuTab/MenuTab.styles.d.ts +4 -1
  83. package/build/esm/components/MenuTab/MenuTab.styles.js +3 -5
  84. package/build/esm/components/MenuTab/MenuTab.styles.js.map +1 -1
  85. package/build/esm/components/MenuTab/MenuTabProps.d.ts +1 -1
  86. package/build/esm/components/MenuTabGroup/MenuTabGroup.d.ts +1 -0
  87. package/build/esm/components/MenuTabGroup/MenuTabGroupProps.d.ts +1 -1
  88. package/build/esm/components/OrderingAppContext/OrderingAppContext.d.ts +3 -3
  89. package/build/esm/components/OrderingAppContext/OrderingAppContext.js.map +1 -1
  90. package/build/esm/components/QuantityPicker/QuantityPicker.d.ts +1 -0
  91. package/build/esm/components/QuantityPicker/QuantityPicker.js.map +1 -1
  92. package/build/esm/components/QuantityPicker/QuantityPickerProps.d.ts +1 -1
  93. package/build/esm/components/Radio/Radio.d.ts +1 -0
  94. package/build/esm/components/ReactionCounter/ReactionCounter.d.ts +1 -0
  95. package/build/esm/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +1 -1
  96. package/build/esm/components/SelectableChip/SelectableChip.d.ts +1 -0
  97. package/build/esm/components/SelectableChip/SelectableChipProps.d.ts +1 -1
  98. package/build/esm/components/SelectableChipGroup/SelectableChipGroup.d.ts +1 -0
  99. package/build/esm/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +1 -1
  100. package/build/esm/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +1 -0
  101. package/build/esm/components/StatusTag/StatusTag.d.ts +1 -0
  102. package/build/esm/components/Switch/Switch.d.ts +1 -0
  103. package/package.json +2 -2
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Checkbox: import("react").ComponentType<Pick<import("@material-ui/core").CheckboxProps, "className" | "style" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "disableFocusRipple" | "size" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checked" | "readOnly" | "required" | "icon" | "edge" | "inputProps" | "inputRef" | "checkedIcon" | "indeterminate" | "indeterminateIcon"> & import("@material-ui/core").StyledComponentProps<"root" | "checked">>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { DishCheckoutCardProps } from './DishCheckoutCardProps';
2
3
  export declare const DishCheckoutCard: ({ id, borderBottom, name, quantity, modifierGroups, onDelete, onEdit, onQuantityChange, price, specialInstructions, disabled, warningMessage, image, messages, maxQuantity, minQuantity, }: DishCheckoutCardProps) => JSX.Element;
@@ -35,12 +35,12 @@ export interface DishCheckoutCardProps {
35
35
  /** If item is in cart but is not unavailable */
36
36
  warningMessage?: string;
37
37
  }
38
- export type ModifierGroupsType = {
38
+ export declare type ModifierGroupsType = {
39
39
  id: number;
40
40
  menuItemModifierGroupName?: string | null;
41
41
  selectedModifiers: ModifiersType[];
42
42
  };
43
- export type ModifiersType = {
43
+ export declare type ModifiersType = {
44
44
  id: number;
45
45
  modifierName?: string | null;
46
46
  quantity: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DishModifierCardProps } from './DishModifierCardProps';
2
3
  export declare const DishModifierCard: {
3
4
  (props: DishModifierCardProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- export type ModifierValue = {
1
+ export declare type ModifierValue = {
2
2
  groupId: number;
3
3
  modifierId: number;
4
4
  parentModifierId?: number | null;
@@ -6,7 +6,7 @@ export type ModifierValue = {
6
6
  quantity: number;
7
7
  isRadio?: boolean;
8
8
  };
9
- export type Modifier = {
9
+ export declare type Modifier = {
10
10
  id: number;
11
11
  hasModifiers: boolean;
12
12
  name: string;
@@ -17,7 +17,7 @@ export type Modifier = {
17
17
  parentModifierGroupId: number;
18
18
  parentModifierGroupItemId?: number | null;
19
19
  };
20
- export type OnChangeValueType = ModifierValue;
20
+ export declare type OnChangeValueType = ModifierValue;
21
21
  interface Base {
22
22
  /** Modifier options */
23
23
  modifiers: Array<Modifier>;
@@ -27,7 +27,7 @@ interface Base {
27
27
  onChange: (value: OnChangeValueType) => void;
28
28
  isOutOfStock: boolean;
29
29
  }
30
- export type DishModifierCardProps = {
30
+ export declare type DishModifierCardProps = {
31
31
  /** Aggregate price of the modifier and its nested children modifiers */
32
32
  aggregatePrice: Record<number, string>;
33
33
  /** Modifier options */
@@ -63,9 +63,9 @@ export type DishModifierCardProps = {
63
63
  currentSelectionCount: number;
64
64
  }>;
65
65
  };
66
- export type RadioModifierFormProps = Base;
67
- export type CheckboxModifierFormProps = Base & {
66
+ export declare type RadioModifierFormProps = Base;
67
+ export declare type CheckboxModifierFormProps = Base & {
68
68
  disableNewSelections?: boolean;
69
69
  };
70
- export type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
70
+ export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
71
71
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ModifierOptionsControlProps } from './DishModifierCardProps';
2
3
  export declare const ModifierControls: (props: ModifierOptionsControlProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxModifierFormProps, RadioModifierFormProps } from './DishModifierCardProps';
2
3
  export declare const CheckboxGroup: (props: CheckboxModifierFormProps) => JSX.Element;
3
4
  export declare const RadioGroup: (props: RadioModifierFormProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { LocationCardProps } from './LocationCardProps';
2
3
  export declare const LocationCard: (props: LocationCardProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuBannerProps } from './MenuBannerProps';
2
3
  export declare const MenuBanner: (props: MenuBannerProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const BannerTypeIcons: {
2
3
  alert: JSX.Element;
3
4
  info: JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { LinkProps } from '@material-ui/core';
2
- export type MenuBannerProps = {
2
+ export declare type MenuBannerProps = {
3
3
  /** Controls the icon and font color for banner title */
4
4
  type: 'alert' | 'info' | 'offer';
5
5
  /** Message displayed as the banner's title */
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuDropdownProps } from './MenuDropdownProps';
2
3
  export declare const MenuDropdown: (props: MenuDropdownProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export type MenuDropdownOption = {
1
+ export declare type MenuDropdownOption = {
2
2
  id: number | string;
3
3
  name: string;
4
4
  isUnavailable?: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuFilterProps } from './MenuFilterProps';
2
3
  export declare const MenuFilter: (props: MenuFilterProps) => JSX.Element;
@@ -1,11 +1,12 @@
1
- export type MenuFilterOption = {
1
+ /// <reference types="react" />
2
+ export declare type MenuFilterOption = {
2
3
  id: string;
3
4
  abbr: string;
4
5
  color: string;
5
6
  name: string;
6
7
  };
7
- export type MenuFilterChangeHandler = (value: MenuFilterOption, event: React.MouseEvent<HTMLElement>) => void;
8
- export type MenuFilterClearHandler = () => void;
8
+ export declare type MenuFilterChangeHandler = (value: MenuFilterOption, event: React.MouseEvent<HTMLElement>) => void;
9
+ export declare type MenuFilterClearHandler = () => void;
9
10
  export interface MenuFilterProps {
10
11
  /** Callback for setting menu filters */
11
12
  onChange: MenuFilterChangeHandler;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from './MenuItemProps';
2
- export declare const MenuItemImg: (props: Pick<MenuItemProps, "image">) => JSX.Element | null;
3
+ export declare const MenuItemImg: (props: Pick<MenuItemProps, 'image'>) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from './MenuItemProps';
2
- export declare const MenuItemPrice: (props: Pick<MenuItemProps, "price" | "available">) => JSX.Element;
3
+ export declare const MenuItemPrice: (props: Pick<MenuItemProps, 'price' | 'available'>) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export type Maybe<T> = T | null;
2
+ export declare type Maybe<T> = T | null;
3
3
  export interface MenuItemProps {
4
4
  /** Label for the CardActionArea. */
5
5
  ariaLabel: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from './MenuItemProps';
2
- export declare const MenuItemReactions: (props: Pick<MenuItemProps, "likeCount" | "reviewCount">) => JSX.Element;
3
+ export declare const MenuItemReactions: (props: Pick<MenuItemProps, 'likeCount' | 'reviewCount'>) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from './MenuItemProps';
2
- export declare const MenuItemTags: (props: Pick<MenuItemProps, "itemTags">) => JSX.Element;
3
+ export declare const MenuItemTags: (props: Pick<MenuItemProps, 'itemTags'>) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const MenuItemGroup: React.ForwardRefExoticComponent<{
3
3
  children: React.ReactNode;
4
- className?: string;
4
+ className?: string | undefined;
5
5
  } & React.RefAttributes<unknown>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BoxProps } from '@material-ui/core';
2
3
  export interface MenuSectionProps extends BoxProps {
3
4
  /** when true, will render a skeleton in place of the section title */
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuTabProps } from './MenuTabProps';
2
3
  export declare const MenuTab: (props: MenuTabProps) => JSX.Element;
@@ -1 +1,4 @@
1
- export declare const useMenuTabStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
1
+ export interface MenuTabStylesProps {
2
+ isUnavailable: boolean | undefined;
3
+ }
4
+ export declare const useMenuTabStyles: (props: MenuTabStylesProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -1,4 +1,4 @@
1
1
  import { TabProps } from '@material-ui/core/Tab';
2
- export type MenuTabProps = TabProps & {
2
+ export declare type MenuTabProps = TabProps & {
3
3
  isUnavailable: boolean;
4
4
  };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuTabGroupProps } from './MenuTabGroupProps';
2
3
  export declare const MenuTabGroup: (props: MenuTabGroupProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TabsProps } from '@material-ui/core/Tabs';
2
- export type MenuTabGroupProps = TabsProps;
2
+ export declare type MenuTabGroupProps = TabsProps;
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- type OrderingAppContextValue = {
2
+ declare type OrderingAppContextValue = {
3
3
  currencySymbol?: string;
4
4
  basePath: string;
5
5
  restaurantId: number;
@@ -8,10 +8,10 @@ type OrderingAppContextValue = {
8
8
  isStandard: boolean;
9
9
  orderingEventSlug?: string;
10
10
  };
11
- type OrderingAppContextType = [OrderingAppContextValue, React.Dispatch<React.SetStateAction<OrderingAppContextValue>>];
11
+ declare type OrderingAppContextType = [OrderingAppContextValue, React.Dispatch<React.SetStateAction<OrderingAppContextValue>>];
12
12
  export declare const OrderingAppContext: React.Context<OrderingAppContextType | null>;
13
13
  export declare const useOrderingAppContext: () => OrderingAppContextType;
14
- type OrderingAppContextProviderProps = PropsWithChildren<{
14
+ declare type OrderingAppContextProviderProps = PropsWithChildren<{
15
15
  defaultContext: OrderingAppContextValue;
16
16
  }>;
17
17
  export declare const OrderingAppContextProvider: (props: OrderingAppContextProviderProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { QuantityPickerProps } from './QuantityPickerProps';
2
3
  export declare const QuantityPicker: ({ value, onChange, disabled, preventManualChange, disableIncrement, variation, name, min, max, }: QuantityPickerProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent } from 'react';
2
- export type QuantityChangeEvent = {
2
+ export declare type QuantityChangeEvent = {
3
3
  quantity: number;
4
4
  reason: string;
5
5
  };
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Radio: import("react").ComponentType<Pick<import("@material-ui/core").RadioProps, "className" | "style" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "disableFocusRipple" | "size" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checked" | "readOnly" | "required" | "icon" | "edge" | "inputProps" | "inputRef" | "checkedIcon"> & import("@material-ui/core").StyledComponentProps<"root" | "checked">>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ReactionCounterProps } from './ReactionCounterProps';
2
3
  export declare const ReactionCounter: (props: ReactionCounterProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes, PropsWithChildren } from 'react';
2
- type ReactionCounterGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
2
+ declare type ReactionCounterGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
3
3
  export declare const ReactionCounterGroup: (props: ReactionCounterGroupProps) => JSX.Element;
4
4
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SelectableChipProps } from './SelectableChipProps';
2
3
  export declare const SelectableChip: (props: SelectableChipProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TabProps } from '@material-ui/core';
2
- export type SelectableChipProps = TabProps;
2
+ export declare type SelectableChipProps = TabProps;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SelectableChipGroupProps } from './SelectableChipGroupProps';
2
3
  export declare const SelectableChipGroup: (props: SelectableChipGroupProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TabsProps } from '@material-ui/core';
2
- export type SelectableChipGroupProps = TabsProps;
2
+ export declare type SelectableChipGroupProps = TabsProps;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SelectedMenuFiltersListProps } from './SelectedMenuFiltersListProps';
2
3
  export declare const SelectedMenuFiltersList: (props: SelectedMenuFiltersListProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusTagProps } from './StatusTagProps';
2
3
  export declare const StatusTag: {
3
4
  ({ color, label, size, variant }: StatusTagProps): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Switch: import("react").ComponentType<Pick<import("@material-ui/core").SwitchProps, "className" | "style" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "disableFocusRipple" | "size" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checked" | "readOnly" | "required" | "icon" | "edge" | "inputProps" | "inputRef" | "checkedIcon"> & import("@material-ui/core").StyledComponentProps<"track" | "checked" | "switchBase" | "thumb">>;
@@ -265,7 +265,8 @@ const MenuItem = React.forwardRef((props, ref) => {
265
265
  MenuItem.displayName = 'MenuItem';
266
266
 
267
267
  const useMenuTabStyles = core.makeStyles(({ palette, spacing }) => ({
268
- root: {
268
+ root: ({ isUnavailable }) => ({
269
+ color: isUnavailable ? `${palette.grey[700]} !important` : 'inherit',
269
270
  '& > .MuiTab-wrapper': {
270
271
  flexDirection: 'row-reverse',
271
272
  gridGap: spacing(1),
@@ -274,18 +275,15 @@ const useMenuTabStyles = core.makeStyles(({ palette, spacing }) => ({
274
275
  marginBottom: '0 !important',
275
276
  },
276
277
  },
277
- },
278
- isUnavailable: {
279
- color: palette.grey[700],
280
- },
278
+ }),
281
279
  }));
282
280
 
283
281
  const MenuTab = (props) => {
284
282
  const { isUnavailable, value } = props;
285
- const classes = useMenuTabStyles(props);
283
+ const classes = useMenuTabStyles({ isUnavailable });
286
284
  return (React.createElement(core.Tab, { "data-tab-for-section-id": value, classes: {
287
285
  root: classes.root,
288
- }, disabled: isUnavailable, icon: isUnavailable ? React.createElement(commonUi.Icon, { icon: webIcons.Clock, size: "large" }) : undefined, ...props }));
286
+ }, icon: isUnavailable ? React.createElement(commonUi.Icon, { icon: webIcons.Clock, size: "large" }) : undefined, ...props }));
289
287
  };
290
288
 
291
289
  const MenuTabGroup = (props) => {
@@ -1101,7 +1099,7 @@ const useStyles$3 = core.makeStyles(() => ({
1101
1099
  const MenuSection = React.forwardRef((props, ref) => {
1102
1100
  const { name, children, loading, ...restProps } = props;
1103
1101
  const classes = useStyles$3();
1104
- return (React.createElement(core.Box, { ...restProps, ref, component: 'section', "data-component-type": "menu-section", style: { scrollMarginTop: '70px' } },
1102
+ return (React.createElement(core.Box, { ...restProps, ...{ ref, component: 'section' }, "data-component-type": "menu-section", style: { scrollMarginTop: '70px' } },
1105
1103
  React.createElement(core.Box, { marginTop: 1, marginBottom: 4 },
1106
1104
  React.createElement(core.Typography, { component: "h1", className: classes.title }, loading ? React.createElement(lab.Skeleton, null) : name)),
1107
1105
  children));
@@ -1110,7 +1108,7 @@ MenuSection.displayName = 'MenuSection';
1110
1108
 
1111
1109
  const MenuSectionGroup = React.forwardRef((props, ref) => {
1112
1110
  const { children, ...restProps } = props;
1113
- return (React.createElement(core.Box, { display: "flex", flexDirection: "column", gridGap: 40, marginBottom: 4, ...restProps, ref, "data-component-type": "menu-section-group" }, children));
1111
+ return (React.createElement(core.Box, { display: "flex", flexDirection: "column", gridGap: 40, marginBottom: 4, ...restProps, ...{ ref }, "data-component-type": "menu-section-group" }, children));
1114
1112
  });
1115
1113
  MenuSectionGroup.displayName = 'MenuSectionGroup';
1116
1114
 
@@ -1130,7 +1128,7 @@ const useStyles$2 = core.makeStyles(({ breakpoints }) => ({
1130
1128
  const MenuItemGroup = React.forwardRef((props, ref) => {
1131
1129
  const classes = useStyles$2();
1132
1130
  const { children, className, ...restProps } = props;
1133
- return (React.createElement(core.Box, { className: classNames(classes.main, className), ref, "data-component-type": "menu-item-group", ...restProps }, props.children));
1131
+ return (React.createElement(core.Box, { className: classNames(classes.main, className), ...{ ref }, "data-component-type": "menu-item-group", ...restProps }, props.children));
1134
1132
  });
1135
1133
  MenuItemGroup.displayName = 'MenuItemGroup';
1136
1134
 
@@ -1263,7 +1261,7 @@ function MenuBannerButton(props) {
1263
1261
  if (!props.buttonLabel)
1264
1262
  return null;
1265
1263
  return (React.createElement(core.CardContent, { classes: { root: classes.content } },
1266
- React.createElement(core.Link, { component: 'button', variant: 'body2', className: classes.button, ...props.ButtonProps }, props.buttonLabel)));
1264
+ React.createElement(core.Link, { ...{ component: 'button', variant: 'body2', className: classes.button }, ...props.ButtonProps }, props.buttonLabel)));
1267
1265
  }
1268
1266
 
1269
1267
  const palette = {