@popmenu/ordering-ui 0.126.1 → 0.126.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.
- package/build/cjs/components/Button/Button.d.ts +3 -0
- package/build/cjs/components/Button/ButtonProps.d.ts +5 -0
- package/build/cjs/components/Button/index.d.ts +2 -0
- package/build/cjs/components/Checkbox/Checkbox.d.ts +2 -0
- package/build/cjs/components/Checkbox/index.d.ts +1 -0
- package/build/cjs/components/DialogSection/DialogSection.d.ts +8 -0
- package/build/cjs/components/DialogSection/index.d.ts +1 -0
- package/build/cjs/components/DialogTitle/DialogTitle.d.ts +9 -0
- package/build/cjs/components/DialogTitle/index.d.ts +1 -0
- package/build/cjs/components/DishCheckoutCard/DishCheckoutCard.d.ts +3 -0
- package/build/cjs/components/DishCheckoutCard/DishCheckoutCard.styles.d.ts +2 -0
- package/build/cjs/components/DishCheckoutCard/DishCheckoutCardProps.d.ts +44 -0
- package/build/cjs/components/DishCheckoutCard/index.d.ts +2 -0
- package/build/cjs/components/DishDetailsReview/DishDetailsReview.d.ts +3 -0
- package/build/cjs/components/DishDetailsReview/DishDetailsReviewProps.d.ts +12 -0
- package/build/cjs/components/DishDetailsReview/index.d.ts +2 -0
- package/build/cjs/components/DishModifierCard/DishModifierCard.d.ts +6 -0
- package/build/cjs/components/DishModifierCard/DishModifierCard.styles.d.ts +5 -0
- package/build/cjs/components/DishModifierCard/DishModifierCardProps.d.ts +71 -0
- package/build/cjs/components/DishModifierCard/ModifierControls.d.ts +3 -0
- package/build/cjs/components/DishModifierCard/ModifierForm.d.ts +4 -0
- package/build/cjs/components/DishModifierCard/index.d.ts +2 -0
- package/build/cjs/components/ItemTag/ItemTag.d.ts +3 -0
- package/build/cjs/components/ItemTag/ItemTagProps.d.ts +5 -0
- package/build/cjs/components/ItemTag/index.d.ts +2 -0
- package/build/cjs/components/ItemTag/itemTag.styles.d.ts +1 -0
- package/build/cjs/components/ItemTagGroup/ItemTagGroup.d.ts +2 -0
- package/build/cjs/components/ItemTagGroup/index.d.ts +1 -0
- package/build/cjs/components/LocationCard/LocationCard.d.ts +3 -0
- package/build/cjs/components/LocationCard/LocationCard.styles.d.ts +2 -0
- package/build/cjs/components/LocationCard/LocationCardProps.d.ts +27 -0
- package/build/cjs/components/LocationCard/index.d.ts +2 -0
- package/build/cjs/components/MenuBanner/MenuBanner.d.ts +3 -0
- package/build/cjs/components/MenuBanner/MenuBanner.styles.d.ts +2 -0
- package/build/cjs/components/MenuBanner/MenuBannerIcons.d.ts +6 -0
- package/build/cjs/components/MenuBanner/MenuBannerProps.d.ts +15 -0
- package/build/cjs/components/MenuBanner/index.d.ts +2 -0
- package/build/cjs/components/MenuDropdown/MenuDropdown.d.ts +3 -0
- package/build/cjs/components/MenuDropdown/MenuDropdown.styles.d.ts +2 -0
- package/build/cjs/components/MenuDropdown/MenuDropdownProps.d.ts +15 -0
- package/build/cjs/components/MenuDropdown/index.d.ts +2 -0
- package/build/cjs/components/MenuFilter/LeafIcon.d.ts +1 -0
- package/build/cjs/components/MenuFilter/MenuFilter.d.ts +3 -0
- package/build/cjs/components/MenuFilter/MenuFilter.styles.d.ts +1 -0
- package/build/cjs/components/MenuFilter/MenuFilterProps.d.ts +23 -0
- package/build/cjs/components/MenuFilter/index.d.ts +2 -0
- package/build/cjs/components/MenuItem/MenuItem.d.ts +3 -0
- package/build/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/build/cjs/components/MenuItem/MenuItemImg.d.ts +3 -0
- package/build/cjs/components/MenuItem/MenuItemInfo.d.ts +4 -0
- package/build/cjs/components/MenuItem/MenuItemPrice.d.ts +3 -0
- package/build/cjs/components/MenuItem/MenuItemProps.d.ts +41 -0
- package/build/cjs/components/MenuItem/MenuItemReactions.d.ts +3 -0
- package/build/cjs/components/MenuItem/MenuItemTags.d.ts +3 -0
- package/build/cjs/components/MenuItem/index.d.ts +2 -0
- package/build/cjs/components/MenuItemGroup/MenuItemGroup.d.ts +5 -0
- package/build/cjs/components/MenuItemGroup/MenuItemGroupStyles.d.ts +1 -0
- package/build/cjs/components/MenuItemGroup/index.d.ts +1 -0
- package/build/cjs/components/MenuSection/MenuSection.d.ts +3 -0
- package/build/cjs/components/MenuSection/MenuSectionProps.d.ts +9 -0
- package/build/cjs/components/MenuSection/MenuSectionStyles.d.ts +1 -0
- package/build/cjs/components/MenuSection/index.d.ts +2 -0
- package/build/cjs/components/MenuSectionGroup/MenuSectionGroup.d.ts +5 -0
- package/build/cjs/components/MenuSectionGroup/index.d.ts +1 -0
- package/build/cjs/components/OrderingAppContext/OrderingAppContext.d.ts +18 -0
- package/build/cjs/components/OrderingAppContext/index.d.ts +1 -0
- package/build/cjs/components/PageSection/PageSection.d.ts +4 -0
- package/build/cjs/components/PageSection/index.d.ts +1 -0
- package/build/cjs/components/QuantityPicker/QuantityPicker.d.ts +3 -0
- package/build/cjs/components/QuantityPicker/QuantityPicker.styles.d.ts +5 -0
- package/build/cjs/components/QuantityPicker/QuantityPickerProps.d.ts +21 -0
- package/build/cjs/components/QuantityPicker/index.d.ts +2 -0
- package/build/cjs/components/Radio/Radio.d.ts +2 -0
- package/build/cjs/components/Radio/index.d.ts +1 -0
- package/build/cjs/components/ReactionCounter/ReactionCounter.d.ts +3 -0
- package/build/cjs/components/ReactionCounter/ReactionCounterProps.d.ts +6 -0
- package/build/cjs/components/ReactionCounter/index.d.ts +2 -0
- package/build/cjs/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +4 -0
- package/build/cjs/components/ReactionCounterGroup/index.d.ts +1 -0
- package/build/cjs/components/SelectableChip/SelectableChip.d.ts +3 -0
- package/build/cjs/components/SelectableChip/SelectableChip.styles.d.ts +2 -0
- package/build/cjs/components/SelectableChip/SelectableChipProps.d.ts +2 -0
- package/build/cjs/components/SelectableChip/index.d.ts +2 -0
- package/build/cjs/components/SelectableChipGroup/SelectableChipGroup.d.ts +3 -0
- package/build/cjs/components/SelectableChipGroup/SelectableChipGroup.styles.d.ts +1 -0
- package/build/cjs/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +5 -0
- package/build/cjs/components/SelectableChipGroup/index.d.ts +2 -0
- package/build/cjs/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +3 -0
- package/build/cjs/components/SelectedMenuFiltersList/SelectedMenuFiltersListProps.d.ts +6 -0
- package/build/cjs/components/SelectedMenuFiltersList/index.d.ts +2 -0
- package/build/cjs/components/StatusTag/StatusTag.d.ts +10 -0
- package/build/cjs/components/StatusTag/StatusTag.styles.d.ts +2 -0
- package/build/cjs/components/StatusTag/StatusTagProps.d.ts +10 -0
- package/build/cjs/components/StatusTag/index.d.ts +2 -0
- package/build/cjs/components/Switch/Switch.d.ts +2 -0
- package/build/cjs/components/Switch/index.d.ts +1 -0
- package/build/cjs/components/index.d.ts +29 -0
- package/build/cjs/index.d.ts +2 -0
- package/build/{index.js → cjs/index.js} +31 -35
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/theme/index.d.ts +1 -0
- package/build/cjs/theme/overrides.d.ts +2 -0
- package/build/cjs/theme/palette.d.ts +26 -0
- package/build/cjs/theme/props.d.ts +2 -0
- package/build/cjs/theme/theme.d.ts +2 -0
- package/build/cjs/theme/typography.d.ts +2 -0
- package/build/esm/assets/leaf-icon.svg.js +2 -1
- package/build/esm/assets/leaf-icon.svg.js.map +1 -1
- package/build/esm/components/DialogTitle/DialogTitle.js +5 -4
- package/build/esm/components/DialogTitle/DialogTitle.js.map +1 -1
- package/build/esm/components/DishCheckoutCard/DishCheckoutCard.styles.js +1 -1
- package/build/esm/components/DishCheckoutCard/DishCheckoutCard.styles.js.map +1 -1
- package/build/esm/components/DishModifierCard/DishModifierCard.styles.js +1 -1
- package/build/esm/components/DishModifierCard/DishModifierCard.styles.js.map +1 -1
- package/build/esm/components/DishModifierCard/ModifierForm.d.ts +1 -1
- package/build/esm/components/ItemTag/itemTag.styles.js +1 -1
- package/build/esm/components/ItemTag/itemTag.styles.js.map +1 -1
- package/build/esm/components/LocationCard/LocationCard.styles.js +1 -1
- package/build/esm/components/LocationCard/LocationCard.styles.js.map +1 -1
- package/build/esm/components/LocationCard/LocationCardProps.d.ts +1 -2
- package/build/esm/components/MenuBanner/MenuBannerIcons.js +1 -4
- package/build/esm/components/MenuBanner/MenuBannerIcons.js.map +1 -1
- package/build/esm/components/MenuDropdown/MenuDropdown.styles.js +1 -1
- package/build/esm/components/MenuDropdown/MenuDropdown.styles.js.map +1 -1
- package/build/esm/components/MenuFilter/LeafIcon.d.ts +1 -0
- package/build/esm/components/MenuFilter/MenuFilter.js +6 -5
- package/build/esm/components/MenuFilter/MenuFilter.js.map +1 -1
- package/build/esm/components/MenuFilter/MenuFilter.styles.js +1 -1
- package/build/esm/components/MenuFilter/MenuFilter.styles.js.map +1 -1
- package/build/esm/components/MenuItem/MenuItem.styles.js +1 -1
- package/build/esm/components/MenuItem/MenuItem.styles.js.map +1 -1
- package/build/esm/components/QuantityPicker/QuantityPicker.styles.js +1 -1
- package/build/esm/components/QuantityPicker/QuantityPicker.styles.js.map +1 -1
- package/build/esm/components/SelectableChip/SelectableChip.js +1 -1
- package/build/esm/components/SelectableChip/SelectableChip.js.map +1 -1
- package/build/esm/components/SelectableChip/SelectableChip.styles.js +1 -1
- package/build/esm/components/SelectableChip/SelectableChip.styles.js.map +1 -1
- package/build/esm/components/SelectableChip/SelectableChipProps.d.ts +1 -1
- package/build/esm/components/SelectableChipGroup/SelectableChipGroup.styles.js +1 -1
- package/build/esm/components/SelectableChipGroup/SelectableChipGroup.styles.js.map +1 -1
- package/build/esm/components/SelectableChipGroup/SelectableChipGroupProps.d.ts +1 -1
- package/build/esm/components/StatusTag/StatusTag.styles.js +1 -1
- package/build/esm/components/StatusTag/StatusTag.styles.js.map +1 -1
- package/build/esm/theme/overrides.d.ts +2 -2
- package/build/esm/theme/overrides.js.map +1 -1
- package/build/esm/theme/props.d.ts +2 -2
- package/build/esm/theme/props.js.map +1 -1
- package/build/esm/theme/typography.d.ts +2 -2
- package/build/esm/theme/typography.js.map +1 -1
- package/package.json +3 -3
- package/build/index.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './ButtonProps';
|
|
3
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "className" | "style" | "classes" | "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" | "children" | "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" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "variation" | "disableFocusRipple" | "href" | "size" | "variant" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './Checkbox';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '@material-ui/core';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
interface DialogSectionProps extends BoxProps {
|
|
4
|
+
edgeToEdge?: boolean;
|
|
5
|
+
borderBottom?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DialogSection: (props: PropsWithChildren<DialogSectionProps>) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogSection } from './DialogSection';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogTitle } from './DialogTitle';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface DishCheckoutCardProps {
|
|
2
|
+
/** Adds a border to the bottom of the card */
|
|
3
|
+
borderBottom?: boolean;
|
|
4
|
+
/** disables all interactive elements in the card, like "edit" or "delete" */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Id of the dish */
|
|
7
|
+
id: number;
|
|
8
|
+
/** Dish image information */
|
|
9
|
+
image: {
|
|
10
|
+
alt?: string;
|
|
11
|
+
src?: string | null;
|
|
12
|
+
};
|
|
13
|
+
/** Edit and remove button text and aria-label */
|
|
14
|
+
messages: Record<'edit' | 'ariaEdit' | 'ariaDelete', string>;
|
|
15
|
+
/** Modifier group object of the dish */
|
|
16
|
+
modifierGroups?: ModifierGroupsType[];
|
|
17
|
+
/** Name of the dish */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Callback for edit button */
|
|
20
|
+
onEdit: () => void;
|
|
21
|
+
/** Callback for delete button */
|
|
22
|
+
onDelete: () => void;
|
|
23
|
+
/** Callback for change of select element */
|
|
24
|
+
onQuantityChange: (id: number, value: number) => void;
|
|
25
|
+
/** Price of an item. numbers will be prepended with the currencySymbol from OrderingAppContext. */
|
|
26
|
+
price: number | string;
|
|
27
|
+
/** Quantity of dish selected */
|
|
28
|
+
quantity: number;
|
|
29
|
+
/** Special instructions text */
|
|
30
|
+
specialInstructions?: string | null;
|
|
31
|
+
/** If item is in cart but is not unavailable */
|
|
32
|
+
warningMessage?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare type ModifierGroupsType = {
|
|
35
|
+
id: number;
|
|
36
|
+
menuItemModifierGroupName?: string | null;
|
|
37
|
+
selectedModifiers: ModifiersType[];
|
|
38
|
+
};
|
|
39
|
+
export declare type ModifiersType = {
|
|
40
|
+
id: number;
|
|
41
|
+
modifierName?: string | null;
|
|
42
|
+
quantity: number;
|
|
43
|
+
selectedModifierGroups?: ModifierGroupsType[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DishDetailsReviewProps {
|
|
2
|
+
/** name of the restaurant follower user who posted the review */
|
|
3
|
+
userName?: string;
|
|
4
|
+
/** url information for follower profile picture that may be provided */
|
|
5
|
+
userAvatarUrl?: string;
|
|
6
|
+
/** the text of the review */
|
|
7
|
+
content: string;
|
|
8
|
+
/** time since the review was created */
|
|
9
|
+
createdAgo: string;
|
|
10
|
+
/** image description, a11y requirement */
|
|
11
|
+
alt: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useDishModifierCardStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
2
|
+
export declare const useRadioModifierFormStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
3
|
+
export declare const useCheckboxModifierFormStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
4
|
+
export declare const useLabelStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
5
|
+
export declare const useOptionsStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare type ModifierValue = {
|
|
2
|
+
groupId: number;
|
|
3
|
+
modifierId: number;
|
|
4
|
+
parentModifierId?: number | null;
|
|
5
|
+
price: number;
|
|
6
|
+
quantity: number;
|
|
7
|
+
isRadio?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare type Modifier = {
|
|
10
|
+
id: number;
|
|
11
|
+
hasModifiers: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
outOfStock: boolean;
|
|
14
|
+
price: number;
|
|
15
|
+
formattedPrice: string;
|
|
16
|
+
quantity: number;
|
|
17
|
+
parentModifierGroupId: number;
|
|
18
|
+
parentModifierGroupItemId?: number | null;
|
|
19
|
+
};
|
|
20
|
+
export declare type OnChangeValueType = ModifierValue;
|
|
21
|
+
interface Base {
|
|
22
|
+
/** Modifier options */
|
|
23
|
+
modifiers: Array<Modifier>;
|
|
24
|
+
/** The values of the modifier form */
|
|
25
|
+
value: Array<ModifierValue>;
|
|
26
|
+
/** Handles the change event */
|
|
27
|
+
onChange: (value: OnChangeValueType) => void;
|
|
28
|
+
isOutOfStock: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare type DishModifierCardProps = {
|
|
31
|
+
/** Aggregate price of the modifier and its nested children modifiers */
|
|
32
|
+
aggregatePrice: Record<number, string>;
|
|
33
|
+
/** Modifier options */
|
|
34
|
+
modifiers: Array<Modifier>;
|
|
35
|
+
/** The values of the modifier form */
|
|
36
|
+
value: Array<ModifierValue>;
|
|
37
|
+
/** Handles the change event */
|
|
38
|
+
onChange: (value: OnChangeValueType) => void;
|
|
39
|
+
/** Name of the modifier */
|
|
40
|
+
name: string;
|
|
41
|
+
/** Denotes the max amount of selections have been reached */
|
|
42
|
+
disableNewSelections?: boolean;
|
|
43
|
+
/** Denotes if modifier has an error */
|
|
44
|
+
error: boolean;
|
|
45
|
+
/** Denotes if modifier is required */
|
|
46
|
+
isRequired: boolean;
|
|
47
|
+
/** Denotes if modifier is out of stock */
|
|
48
|
+
isOutOfStock: boolean;
|
|
49
|
+
/** Selection type for modifier group */
|
|
50
|
+
type: 'singleSelect' | 'multipleSelect' | 'multipleQuantitySelect';
|
|
51
|
+
/** Renders the text of the dish modifiers */
|
|
52
|
+
messages: {
|
|
53
|
+
optionalText: string;
|
|
54
|
+
outOfStockText: string;
|
|
55
|
+
requiredText: string;
|
|
56
|
+
helperText: string;
|
|
57
|
+
};
|
|
58
|
+
/** Handles the dialog change for nested modifiers */
|
|
59
|
+
handleOptionsClick: (id: number) => void;
|
|
60
|
+
/** Used by parent modifier quantity tracking: parent modifier quantity denotes requiredSelectionCount and currentSelectionCount is the total quantity of the child modifier */
|
|
61
|
+
selectionQuantity: Record<number, {
|
|
62
|
+
requiredSelectionCount: number;
|
|
63
|
+
currentSelectionCount: number;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
export declare type RadioModifierFormProps = Base;
|
|
67
|
+
export declare type CheckboxModifierFormProps = Base & {
|
|
68
|
+
disableNewSelections?: boolean;
|
|
69
|
+
};
|
|
70
|
+
export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxModifierFormProps, RadioModifierFormProps } from './DishModifierCardProps';
|
|
3
|
+
export declare const CheckboxGroup: (props: CheckboxModifierFormProps) => JSX.Element;
|
|
4
|
+
export declare const RadioGroup: (props: RadioModifierFormProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useItemTagStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "text">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ItemTagGroup as default } from './ItemTagGroup';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CardActionAreaProps, CardProps as MuiCardProps } from '@material-ui/core';
|
|
2
|
+
export interface LocationCardProps extends Omit<MuiCardProps, 'onClick'> {
|
|
3
|
+
/** Renders the name of the restaurant location */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Renders the address of the restaurant location */
|
|
6
|
+
address?: string;
|
|
7
|
+
/** Renders the general availability hours of the restaurant location. */
|
|
8
|
+
generalAvailability?: string;
|
|
9
|
+
/** Renders the pickup availability hours of the restaurant location */
|
|
10
|
+
pickupAvailability?: string;
|
|
11
|
+
/** Renders the delivery availability hours of the restaurant location */
|
|
12
|
+
deliveryAvailability?: string;
|
|
13
|
+
/** Renders the distance of the restaurant location (if applicable) */
|
|
14
|
+
distance?: string;
|
|
15
|
+
/** Callback for when the LocationCard is clicked */
|
|
16
|
+
onClick: (value: number) => void;
|
|
17
|
+
/** Disables the card and adds out of range message */
|
|
18
|
+
outOfRange: boolean;
|
|
19
|
+
/** Message for out of range locations */
|
|
20
|
+
outOfRangeMessage: string;
|
|
21
|
+
/** Sets card selection state */
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
/** The value of a card in respects to selection state. */
|
|
24
|
+
value: number;
|
|
25
|
+
/** Props passed to the CardActionArea rendered by SelectableCard. */
|
|
26
|
+
CardActionAreaProps?: CardActionAreaProps & Record<`data-${string}`, string>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LinkProps } from '@material-ui/core';
|
|
2
|
+
export declare type MenuBannerProps = {
|
|
3
|
+
/** Controls the icon and font color for banner title */
|
|
4
|
+
type: 'alert' | 'info' | 'offer';
|
|
5
|
+
/** Message displayed as the banner's title */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Message displayed as the banner's description */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Message displayed as the banner button's label */
|
|
10
|
+
buttonLabel?: string;
|
|
11
|
+
/** Props for the banner's button, ie. onClick */
|
|
12
|
+
ButtonProps?: LinkProps;
|
|
13
|
+
/** Determines if the banner should be displayed */
|
|
14
|
+
show: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type MenuDropdownOption = {
|
|
2
|
+
id: number | string;
|
|
3
|
+
name: string;
|
|
4
|
+
isUnavailable?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface MenuDropdownProps {
|
|
7
|
+
/** Callback for selecting active menu */
|
|
8
|
+
onSelect: (id: number | string) => void;
|
|
9
|
+
/** selectable menu options */
|
|
10
|
+
menuOptions: MenuDropdownOption[];
|
|
11
|
+
/** current menu select value */
|
|
12
|
+
selectedOptionId: number | string;
|
|
13
|
+
/** label for the dropdown */
|
|
14
|
+
label: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LeafIcon } from '../../assets/leaf-icon.svg';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMenuFilterStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"triggerLabel">;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type MenuFilterOption = {
|
|
3
|
+
id: string;
|
|
4
|
+
abbr: string;
|
|
5
|
+
color: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type MenuFilterChangeHandler = (value: MenuFilterOption, event: React.MouseEvent<HTMLElement>) => void;
|
|
9
|
+
export declare type MenuFilterClearHandler = () => void;
|
|
10
|
+
export interface MenuFilterProps {
|
|
11
|
+
/** Callback for setting menu filters */
|
|
12
|
+
onChange: MenuFilterChangeHandler;
|
|
13
|
+
/** Callback for setting menu filters */
|
|
14
|
+
onClear: MenuFilterClearHandler;
|
|
15
|
+
/** options to set menu filter with */
|
|
16
|
+
options: MenuFilterOption[];
|
|
17
|
+
/** selected options to set menu filter with */
|
|
18
|
+
value: MenuFilterOption[];
|
|
19
|
+
/** label for menu filter button */
|
|
20
|
+
triggerLabel?: string;
|
|
21
|
+
/** label used when no options are available for selection */
|
|
22
|
+
noOptionsLabel?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMenuItemStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"cardActionArea" | "card" | "cardTitle" | "cardDescription" | "outOfStockTag">;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type Maybe<T> = T | null;
|
|
3
|
+
export interface MenuItemProps {
|
|
4
|
+
/** Label for the CardActionArea. */
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
/** Renders the title of the dish */
|
|
7
|
+
title?: Maybe<string>;
|
|
8
|
+
/** Renders the price of the dish */
|
|
9
|
+
price?: Maybe<string>;
|
|
10
|
+
/** Renders the description of the dish */
|
|
11
|
+
description?: Maybe<string>;
|
|
12
|
+
/** The item's additional CSS class name */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** The item's id */
|
|
15
|
+
id: string;
|
|
16
|
+
/** The image to be displayed. */
|
|
17
|
+
image?: {
|
|
18
|
+
alt?: Maybe<string>;
|
|
19
|
+
src?: Maybe<string>;
|
|
20
|
+
};
|
|
21
|
+
/** List of item tags for a dish */
|
|
22
|
+
itemTags?: Array<{
|
|
23
|
+
abbr: string;
|
|
24
|
+
color: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}>;
|
|
27
|
+
/** Number of likes */
|
|
28
|
+
likeCount?: Maybe<number>;
|
|
29
|
+
/** when true, shows a skeleton in place of content */
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
/** Number of reviews */
|
|
32
|
+
reviewCount?: Maybe<number>;
|
|
33
|
+
/** Callback for when MenuItem is clicked */
|
|
34
|
+
onClick: (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
35
|
+
/** Whether or not the menu item is available for ordering */
|
|
36
|
+
available: boolean;
|
|
37
|
+
/** Renders out of stock tag */
|
|
38
|
+
isOutOfStock?: Maybe<boolean>;
|
|
39
|
+
/** Renders the featured tag when true */
|
|
40
|
+
isFeatured?: Maybe<boolean>;
|
|
41
|
+
}
|
|
@@ -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,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@material-ui/core';
|
|
3
|
+
export interface MenuSectionProps extends BoxProps {
|
|
4
|
+
/** when true, will render a skeleton in place of the section title */
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
/** the name of a section, will render as the section's title */
|
|
7
|
+
name: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"title">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MenuSectionGroup } from './MenuSectionGroup';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
declare type OrderingAppContextValue = {
|
|
3
|
+
currencySymbol?: string;
|
|
4
|
+
basePath: string;
|
|
5
|
+
restaurantId: number;
|
|
6
|
+
isCatering: boolean;
|
|
7
|
+
isOrderingEvent: boolean;
|
|
8
|
+
isStandard: boolean;
|
|
9
|
+
orderingEventSlug?: string;
|
|
10
|
+
};
|
|
11
|
+
declare type OrderingAppContextType = [OrderingAppContextValue, React.Dispatch<React.SetStateAction<OrderingAppContextValue>>];
|
|
12
|
+
export declare const OrderingAppContext: React.Context<OrderingAppContextType | null>;
|
|
13
|
+
export declare const useOrderingAppContext: () => OrderingAppContextType;
|
|
14
|
+
declare type OrderingAppContextProviderProps = PropsWithChildren<{
|
|
15
|
+
defaultContext: OrderingAppContextValue;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const OrderingAppContextProvider: (props: OrderingAppContextProviderProps) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OrderingAppContext, useOrderingAppContext, OrderingAppContextProvider } from './OrderingAppContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSection } from './PageSection';
|