@popmenu/ordering-ui 0.127.2 → 0.127.3

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 (97) hide show
  1. package/build/cjs/components/Checkbox/Checkbox.d.ts +0 -1
  2. package/build/cjs/components/DishCheckoutCard/DishCheckoutCard.d.ts +0 -1
  3. package/build/cjs/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +2 -2
  4. package/build/cjs/components/DishModifierCard/DishModifierCard.d.ts +0 -1
  5. package/build/cjs/components/DishModifierCard/DishModifierCardProps.d.ts +7 -7
  6. package/build/cjs/components/DishModifierCard/ModifierControls.d.ts +0 -1
  7. package/build/cjs/components/DishModifierCard/ModifierForm.d.ts +0 -1
  8. package/build/cjs/components/LocationCard/LocationCard.d.ts +0 -1
  9. package/build/cjs/components/MenuBanner/MenuBanner.d.ts +0 -1
  10. package/build/cjs/components/MenuBanner/MenuBannerIcons.d.ts +0 -1
  11. package/build/cjs/components/MenuBanner/MenuBannerProps.d.ts +1 -1
  12. package/build/cjs/components/MenuDropdown/MenuDropdown.d.ts +0 -1
  13. package/build/cjs/components/MenuDropdown/MenuDropdownProps.d.ts +1 -1
  14. package/build/cjs/components/MenuFilter/MenuFilter.d.ts +0 -1
  15. package/build/cjs/components/MenuFilter/MenuFilterProps.d.ts +3 -4
  16. package/build/cjs/components/MenuItem/MenuItemImg.d.ts +1 -2
  17. package/build/cjs/components/MenuItem/MenuItemPrice.d.ts +1 -2
  18. package/build/cjs/components/MenuItem/MenuItemProps.d.ts +1 -1
  19. package/build/cjs/components/MenuItem/MenuItemReactions.d.ts +1 -2
  20. package/build/cjs/components/MenuItem/MenuItemTags.d.ts +1 -2
  21. package/build/cjs/components/MenuItemGroup/MenuItemGroup.d.ts +1 -1
  22. package/build/cjs/components/MenuSection/MenuSectionProps.d.ts +0 -1
  23. package/build/cjs/components/MenuTab/MenuTab.d.ts +0 -1
  24. package/build/cjs/components/MenuTab/MenuTabProps.d.ts +1 -1
  25. package/build/cjs/components/MenuTabGroup/MenuTabGroup.d.ts +0 -1
  26. package/build/cjs/components/MenuTabGroup/MenuTabGroupProps.d.ts +5 -1
  27. package/build/cjs/components/OrderingAppContext/OrderingAppContext.d.ts +3 -3
  28. package/build/cjs/components/QuantityPicker/QuantityPicker.d.ts +0 -1
  29. package/build/cjs/components/QuantityPicker/QuantityPickerProps.d.ts +1 -1
  30. package/build/cjs/components/Radio/Radio.d.ts +0 -1
  31. package/build/cjs/components/ReactionCounter/ReactionCounter.d.ts +0 -1
  32. package/build/cjs/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +1 -1
  33. package/build/cjs/components/SelectableChip/SelectableChip.d.ts +0 -1
  34. package/build/cjs/components/SelectableChip/SelectableChipProps.d.ts +1 -1
  35. package/build/cjs/components/SelectableChipGroup/SelectableChipGroup.d.ts +0 -1
  36. package/build/cjs/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +5 -1
  37. package/build/cjs/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +0 -1
  38. package/build/cjs/components/StatusTag/StatusTag.d.ts +0 -1
  39. package/build/cjs/components/Switch/Switch.d.ts +0 -1
  40. package/build/cjs/index.js +4 -4
  41. package/build/cjs/index.js.map +1 -1
  42. package/build/esm/components/Button/Button.js.map +1 -1
  43. package/build/esm/components/Checkbox/Checkbox.d.ts +0 -1
  44. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.d.ts +0 -1
  45. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.js.map +1 -1
  46. package/build/esm/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +2 -2
  47. package/build/esm/components/DishModifierCard/DishModifierCard.d.ts +0 -1
  48. package/build/esm/components/DishModifierCard/DishModifierCard.js.map +1 -1
  49. package/build/esm/components/DishModifierCard/DishModifierCardProps.d.ts +7 -7
  50. package/build/esm/components/DishModifierCard/ModifierControls.d.ts +0 -1
  51. package/build/esm/components/DishModifierCard/ModifierControls.js.map +1 -1
  52. package/build/esm/components/DishModifierCard/ModifierForm.d.ts +0 -1
  53. package/build/esm/components/LocationCard/LocationCard.d.ts +0 -1
  54. package/build/esm/components/MenuBanner/MenuBanner.d.ts +0 -1
  55. package/build/esm/components/MenuBanner/MenuBanner.js +1 -1
  56. package/build/esm/components/MenuBanner/MenuBanner.js.map +1 -1
  57. package/build/esm/components/MenuBanner/MenuBannerIcons.d.ts +0 -1
  58. package/build/esm/components/MenuBanner/MenuBannerProps.d.ts +1 -1
  59. package/build/esm/components/MenuDropdown/MenuDropdown.d.ts +0 -1
  60. package/build/esm/components/MenuDropdown/MenuDropdownProps.d.ts +1 -1
  61. package/build/esm/components/MenuFilter/MenuFilter.d.ts +0 -1
  62. package/build/esm/components/MenuFilter/MenuFilter.js.map +1 -1
  63. package/build/esm/components/MenuFilter/MenuFilterProps.d.ts +3 -4
  64. package/build/esm/components/MenuItem/MenuItemImg.d.ts +1 -2
  65. package/build/esm/components/MenuItem/MenuItemImg.js.map +1 -1
  66. package/build/esm/components/MenuItem/MenuItemPrice.d.ts +1 -2
  67. package/build/esm/components/MenuItem/MenuItemProps.d.ts +1 -1
  68. package/build/esm/components/MenuItem/MenuItemReactions.d.ts +1 -2
  69. package/build/esm/components/MenuItem/MenuItemTags.d.ts +1 -2
  70. package/build/esm/components/MenuItemGroup/MenuItemGroup.d.ts +1 -1
  71. package/build/esm/components/MenuItemGroup/MenuItemGroup.js +1 -1
  72. package/build/esm/components/MenuItemGroup/MenuItemGroup.js.map +1 -1
  73. package/build/esm/components/MenuSection/MenuSection.js +1 -1
  74. package/build/esm/components/MenuSection/MenuSection.js.map +1 -1
  75. package/build/esm/components/MenuSection/MenuSectionProps.d.ts +0 -1
  76. package/build/esm/components/MenuSectionGroup/MenuSectionGroup.js +1 -1
  77. package/build/esm/components/MenuSectionGroup/MenuSectionGroup.js.map +1 -1
  78. package/build/esm/components/MenuTab/MenuTab.d.ts +0 -1
  79. package/build/esm/components/MenuTab/MenuTabProps.d.ts +1 -1
  80. package/build/esm/components/MenuTabGroup/MenuTabGroup.d.ts +0 -1
  81. package/build/esm/components/MenuTabGroup/MenuTabGroupProps.d.ts +5 -1
  82. package/build/esm/components/OrderingAppContext/OrderingAppContext.d.ts +3 -3
  83. package/build/esm/components/OrderingAppContext/OrderingAppContext.js.map +1 -1
  84. package/build/esm/components/QuantityPicker/QuantityPicker.d.ts +0 -1
  85. package/build/esm/components/QuantityPicker/QuantityPicker.js.map +1 -1
  86. package/build/esm/components/QuantityPicker/QuantityPickerProps.d.ts +1 -1
  87. package/build/esm/components/Radio/Radio.d.ts +0 -1
  88. package/build/esm/components/ReactionCounter/ReactionCounter.d.ts +0 -1
  89. package/build/esm/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +1 -1
  90. package/build/esm/components/SelectableChip/SelectableChip.d.ts +0 -1
  91. package/build/esm/components/SelectableChip/SelectableChipProps.d.ts +1 -1
  92. package/build/esm/components/SelectableChipGroup/SelectableChipGroup.d.ts +0 -1
  93. package/build/esm/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +5 -1
  94. package/build/esm/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +0 -1
  95. package/build/esm/components/StatusTag/StatusTag.d.ts +0 -1
  96. package/build/esm/components/Switch/Switch.d.ts +0 -1
  97. package/package.json +2 -2
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { DishCheckoutCardProps } from './DishCheckoutCardProps';
3
2
  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 declare type ModifierGroupsType = {
38
+ export type ModifierGroupsType = {
39
39
  id: number;
40
40
  menuItemModifierGroupName?: string | null;
41
41
  selectedModifiers: ModifiersType[];
42
42
  };
43
- export declare type ModifiersType = {
43
+ export type ModifiersType = {
44
44
  id: number;
45
45
  modifierName?: string | null;
46
46
  quantity: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DishModifierCardProps } from './DishModifierCardProps';
3
2
  export declare const DishModifierCard: {
4
3
  (props: DishModifierCardProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare type ModifierValue = {
1
+ export type ModifierValue = {
2
2
  groupId: number;
3
3
  modifierId: number;
4
4
  parentModifierId?: number | null;
@@ -6,7 +6,7 @@ export declare type ModifierValue = {
6
6
  quantity: number;
7
7
  isRadio?: boolean;
8
8
  };
9
- export declare type Modifier = {
9
+ export type Modifier = {
10
10
  id: number;
11
11
  hasModifiers: boolean;
12
12
  name: string;
@@ -17,7 +17,7 @@ export declare type Modifier = {
17
17
  parentModifierGroupId: number;
18
18
  parentModifierGroupItemId?: number | null;
19
19
  };
20
- export declare type OnChangeValueType = ModifierValue;
20
+ export 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 declare type DishModifierCardProps = {
30
+ export 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 declare type DishModifierCardProps = {
63
63
  currentSelectionCount: number;
64
64
  }>;
65
65
  };
66
- export declare type RadioModifierFormProps = Base;
67
- export declare type CheckboxModifierFormProps = Base & {
66
+ export type RadioModifierFormProps = Base;
67
+ export type CheckboxModifierFormProps = Base & {
68
68
  disableNewSelections?: boolean;
69
69
  };
70
- export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
70
+ export type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
71
71
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ModifierOptionsControlProps } from './DishModifierCardProps';
3
2
  export declare const ModifierControls: (props: ModifierOptionsControlProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxModifierFormProps, RadioModifierFormProps } from './DishModifierCardProps';
3
2
  export declare const CheckboxGroup: (props: CheckboxModifierFormProps) => JSX.Element;
4
3
  export declare const RadioGroup: (props: RadioModifierFormProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LocationCardProps } from './LocationCardProps';
3
2
  export declare const LocationCard: (props: LocationCardProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuBannerProps } from './MenuBannerProps';
3
2
  export declare const MenuBanner: (props: MenuBannerProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const BannerTypeIcons: {
3
2
  alert: JSX.Element;
4
3
  info: JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { LinkProps } from '@material-ui/core';
2
- export declare type MenuBannerProps = {
2
+ export 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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuDropdownProps } from './MenuDropdownProps';
3
2
  export declare const MenuDropdown: (props: MenuDropdownProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare type MenuDropdownOption = {
1
+ export type MenuDropdownOption = {
2
2
  id: number | string;
3
3
  name: string;
4
4
  isUnavailable?: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuFilterProps } from './MenuFilterProps';
3
2
  export declare const MenuFilter: (props: MenuFilterProps) => JSX.Element;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- export declare type MenuFilterOption = {
1
+ export type MenuFilterOption = {
3
2
  id: string;
4
3
  abbr: string;
5
4
  color: string;
6
5
  name: string;
7
6
  };
8
- export declare type MenuFilterChangeHandler = (value: MenuFilterOption, event: React.MouseEvent<HTMLElement>) => void;
9
- export declare type MenuFilterClearHandler = () => void;
7
+ export type MenuFilterChangeHandler = (value: MenuFilterOption, event: React.MouseEvent<HTMLElement>) => void;
8
+ export type MenuFilterClearHandler = () => void;
10
9
  export interface MenuFilterProps {
11
10
  /** Callback for setting menu filters */
12
11
  onChange: MenuFilterChangeHandler;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuItemProps } from './MenuItemProps';
3
- export declare const MenuItemImg: (props: Pick<MenuItemProps, 'image'>) => JSX.Element | null;
2
+ export declare const MenuItemImg: (props: Pick<MenuItemProps, "image">) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuItemProps } from './MenuItemProps';
3
- export declare const MenuItemPrice: (props: Pick<MenuItemProps, 'price' | 'available'>) => JSX.Element;
2
+ export declare const MenuItemPrice: (props: Pick<MenuItemProps, "price" | "available">) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Maybe<T> = T | null;
2
+ export type Maybe<T> = T | null;
3
3
  export interface MenuItemProps {
4
4
  /** Label for the CardActionArea. */
5
5
  ariaLabel: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuItemProps } from './MenuItemProps';
3
- export declare const MenuItemReactions: (props: Pick<MenuItemProps, 'likeCount' | 'reviewCount'>) => JSX.Element;
2
+ export declare const MenuItemReactions: (props: Pick<MenuItemProps, "likeCount" | "reviewCount">) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuItemProps } from './MenuItemProps';
3
- export declare const MenuItemTags: (props: Pick<MenuItemProps, 'itemTags'>) => JSX.Element;
2
+ 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 | undefined;
4
+ className?: string;
5
5
  } & React.RefAttributes<unknown>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BoxProps } from '@material-ui/core';
3
2
  export interface MenuSectionProps extends BoxProps {
4
3
  /** when true, will render a skeleton in place of the section title */
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuTabProps } from './MenuTabProps';
3
2
  export declare const MenuTab: (props: MenuTabProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { TabProps } from '@material-ui/core/Tab';
2
- export declare type MenuTabProps = TabProps & {
2
+ export type MenuTabProps = TabProps & {
3
3
  isUnavailable: boolean;
4
4
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { MenuTabGroupProps } from './MenuTabGroupProps';
3
2
  export declare const MenuTabGroup: (props: MenuTabGroupProps) => JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import { TabsProps } from '@material-ui/core/Tabs';
2
- export declare type MenuTabGroupProps = TabsProps;
2
+ type MenuTabGroupOnChange = (event: React.ChangeEvent<Record<string, unknown>>, value: number) => void;
3
+ export type MenuTabGroupProps = Omit<TabsProps, 'onChange'> & {
4
+ onChange?: MenuTabGroupOnChange;
5
+ };
6
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- declare type OrderingAppContextValue = {
2
+ type OrderingAppContextValue = {
3
3
  currencySymbol?: string;
4
4
  basePath: string;
5
5
  restaurantId: number;
@@ -8,10 +8,10 @@ declare type OrderingAppContextValue = {
8
8
  isStandard: boolean;
9
9
  orderingEventSlug?: string;
10
10
  };
11
- declare type OrderingAppContextType = [OrderingAppContextValue, React.Dispatch<React.SetStateAction<OrderingAppContextValue>>];
11
+ 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
- declare type OrderingAppContextProviderProps = PropsWithChildren<{
14
+ type OrderingAppContextProviderProps = PropsWithChildren<{
15
15
  defaultContext: OrderingAppContextValue;
16
16
  }>;
17
17
  export declare const OrderingAppContextProvider: (props: OrderingAppContextProviderProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { QuantityPickerProps } from './QuantityPickerProps';
3
2
  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 declare type QuantityChangeEvent = {
2
+ export type QuantityChangeEvent = {
3
3
  quantity: number;
4
4
  reason: string;
5
5
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ReactionCounterProps } from './ReactionCounterProps';
3
2
  export declare const ReactionCounter: (props: ReactionCounterProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes, PropsWithChildren } from 'react';
2
- declare type ReactionCounterGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
2
+ type ReactionCounterGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
3
3
  export declare const ReactionCounterGroup: (props: ReactionCounterGroupProps) => JSX.Element;
4
4
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectableChipProps } from './SelectableChipProps';
3
2
  export declare const SelectableChip: (props: SelectableChipProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TabProps } from '@material-ui/core';
2
- export declare type SelectableChipProps = TabProps;
2
+ export type SelectableChipProps = TabProps;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectableChipGroupProps } from './SelectableChipGroupProps';
3
2
  export declare const SelectableChipGroup: (props: SelectableChipGroupProps) => JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import { TabsProps } from '@material-ui/core';
2
- export declare type SelectableChipGroupProps = TabsProps;
2
+ type SelectableChipGroupOnChange = (event: React.ChangeEvent<Record<string, unknown>>, value: number) => void;
3
+ export type SelectableChipGroupProps = Omit<TabsProps, 'onChange'> & {
4
+ onChange?: SelectableChipGroupOnChange;
5
+ };
6
+ export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SelectedMenuFiltersListProps } from './SelectedMenuFiltersListProps';
3
2
  export declare const SelectedMenuFiltersList: (props: SelectedMenuFiltersListProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusTagProps } from './StatusTagProps';
3
2
  export declare const StatusTag: {
4
3
  ({ color, label, size, variant }: StatusTagProps): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  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">>;
@@ -1099,7 +1099,7 @@ const useStyles$3 = core.makeStyles(() => ({
1099
1099
  const MenuSection = React.forwardRef((props, ref) => {
1100
1100
  const { name, children, loading, ...restProps } = props;
1101
1101
  const classes = useStyles$3();
1102
- 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' } },
1103
1103
  React.createElement(core.Box, { marginTop: 1, marginBottom: 4 },
1104
1104
  React.createElement(core.Typography, { component: "h1", className: classes.title }, loading ? React.createElement(lab.Skeleton, null) : name)),
1105
1105
  children));
@@ -1108,7 +1108,7 @@ MenuSection.displayName = 'MenuSection';
1108
1108
 
1109
1109
  const MenuSectionGroup = React.forwardRef((props, ref) => {
1110
1110
  const { children, ...restProps } = props;
1111
- 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));
1112
1112
  });
1113
1113
  MenuSectionGroup.displayName = 'MenuSectionGroup';
1114
1114
 
@@ -1128,7 +1128,7 @@ const useStyles$2 = core.makeStyles(({ breakpoints }) => ({
1128
1128
  const MenuItemGroup = React.forwardRef((props, ref) => {
1129
1129
  const classes = useStyles$2();
1130
1130
  const { children, className, ...restProps } = props;
1131
- 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));
1132
1132
  });
1133
1133
  MenuItemGroup.displayName = 'MenuItemGroup';
1134
1134
 
@@ -1261,7 +1261,7 @@ function MenuBannerButton(props) {
1261
1261
  if (!props.buttonLabel)
1262
1262
  return null;
1263
1263
  return (React.createElement(core.CardContent, { classes: { root: classes.content } },
1264
- 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)));
1265
1265
  }
1266
1266
 
1267
1267
  const palette = {