@popmenu/ordering-ui 0.156.1 → 0.157.0
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 +1 -1
- package/build/cjs/components/DialogSection/DialogSection.d.ts +2 -2
- package/build/cjs/components/DialogTitle/DialogTitle.d.ts +2 -2
- package/build/cjs/components/DishCheckoutCard/DishCheckoutCard.d.ts +1 -2
- package/build/cjs/components/DishModifierCard/DishModifierCard.d.ts +1 -2
- package/build/cjs/components/DishModifierCard/ModifierControls.d.ts +1 -2
- package/build/cjs/components/DishModifierCard/ModifierForm.d.ts +2 -3
- package/build/cjs/components/ExpandableModifierGroup/ExpandableModifierGroup.d.ts +1 -2
- package/build/cjs/components/ItemTagGroup/ItemTagGroup.d.ts +2 -2
- package/build/cjs/components/LocationCard/LocationCard.d.ts +1 -2
- package/build/cjs/components/MenuBanner/MenuBanner.d.ts +1 -2
- package/build/cjs/components/MenuBanner/MenuBannerIcons.d.ts +3 -4
- package/build/cjs/components/MenuItemCard/MenuItemCardImg.d.ts +1 -2
- package/build/cjs/components/MenuItemCard/MenuItemCardInfo.d.ts +1 -1
- package/build/cjs/components/MenuItemCard/MenuItemCardPrice.d.ts +1 -2
- package/build/cjs/components/MenuItemCard/MenuItemCardReactions.d.ts +1 -2
- package/build/cjs/components/MenuItemCard/MenuItemCardTags.d.ts +1 -2
- package/build/cjs/components/MenuItemModifiersList/MenuItemModifiersList.d.ts +1 -2
- package/build/cjs/components/MenuItemModifiersList/ModifierGroup.d.ts +1 -2
- package/build/cjs/components/MenuTab/MenuTab.d.ts +1 -2
- package/build/cjs/components/MenuTabGroup/MenuTabGroup.d.ts +1 -2
- package/build/cjs/components/NestedModsV2DishModifierCard/DishModifierCardProps.d.ts +3 -1
- package/build/cjs/components/NestedModsV2DishModifierCard/ModifierControls.d.ts +1 -2
- package/build/cjs/components/NestedModsV2DishModifierCard/NestedModsV2DishModifierCard.d.ts +1 -2
- package/build/cjs/components/OrderingAppContext/OrderingAppContext.d.ts +1 -1
- package/build/cjs/components/PageSection/PageSection.d.ts +1 -1
- package/build/cjs/components/ReactionCounter/ReactionCounter.d.ts +1 -2
- package/build/cjs/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +2 -2
- package/build/cjs/components/SelectableChip/SelectableChip.d.ts +1 -2
- package/build/cjs/components/SelectableChipGroup/SelectableChipGroup.d.ts +1 -1
- package/build/cjs/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +1 -2
- package/build/cjs/components/StatusTag/StatusTag.d.ts +1 -2
- package/build/cjs/index.js +47 -21
- package/build/cjs/index.js.map +1 -1
- package/build/esm/components/Button/Button.d.ts +1 -1
- package/build/esm/components/DialogSection/DialogSection.d.ts +2 -2
- package/build/esm/components/DialogTitle/DialogTitle.d.ts +2 -2
- package/build/esm/components/DishCheckoutCard/DishCheckoutCard.d.ts +1 -2
- package/build/esm/components/DishModifierCard/DishModifierCard.d.ts +1 -2
- package/build/esm/components/DishModifierCard/ModifierControls.d.ts +1 -2
- package/build/esm/components/DishModifierCard/ModifierForm.d.ts +2 -3
- package/build/esm/components/ExpandableModifierGroup/ExpandableModifierGroup.d.ts +1 -2
- package/build/esm/components/ItemTagGroup/ItemTagGroup.d.ts +2 -2
- package/build/esm/components/LocationCard/LocationCard.d.ts +1 -2
- package/build/esm/components/MenuBanner/MenuBanner.d.ts +1 -2
- package/build/esm/components/MenuBanner/MenuBannerIcons.d.ts +3 -4
- package/build/esm/components/MenuItemCard/MenuItemCardImg.d.ts +1 -2
- package/build/esm/components/MenuItemCard/MenuItemCardInfo.d.ts +1 -1
- package/build/esm/components/MenuItemCard/MenuItemCardPrice.d.ts +1 -2
- package/build/esm/components/MenuItemCard/MenuItemCardReactions.d.ts +1 -2
- package/build/esm/components/MenuItemCard/MenuItemCardTags.d.ts +1 -2
- package/build/esm/components/MenuItemModifiersList/MenuItemModifiersList.d.ts +1 -2
- package/build/esm/components/MenuItemModifiersList/ModifierGroup.d.ts +1 -2
- package/build/esm/components/MenuTab/MenuTab.d.ts +1 -2
- package/build/esm/components/MenuTabGroup/MenuTabGroup.d.ts +1 -2
- package/build/esm/components/NestedModsV2DishModifierCard/DishModifierCard.styles.js +15 -2
- package/build/esm/components/NestedModsV2DishModifierCard/DishModifierCard.styles.js.map +1 -1
- package/build/esm/components/NestedModsV2DishModifierCard/DishModifierCardProps.d.ts +3 -1
- package/build/esm/components/NestedModsV2DishModifierCard/ModifierControls.d.ts +1 -2
- package/build/esm/components/NestedModsV2DishModifierCard/ModifierControls.js +30 -17
- package/build/esm/components/NestedModsV2DishModifierCard/ModifierControls.js.map +1 -1
- package/build/esm/components/NestedModsV2DishModifierCard/NestedModsV2DishModifierCard.d.ts +1 -2
- package/build/esm/components/NestedModsV2DishModifierCard/NestedModsV2DishModifierCard.js +2 -2
- package/build/esm/components/NestedModsV2DishModifierCard/NestedModsV2DishModifierCard.js.map +1 -1
- package/build/esm/components/OrderingAppContext/OrderingAppContext.d.ts +1 -1
- package/build/esm/components/PageSection/PageSection.d.ts +1 -1
- package/build/esm/components/ReactionCounter/ReactionCounter.d.ts +1 -2
- package/build/esm/components/ReactionCounterGroup/ReactionCounterGroup.d.ts +2 -2
- package/build/esm/components/SelectableChip/SelectableChip.d.ts +1 -2
- package/build/esm/components/SelectableChipGroup/SelectableChipGroup.d.ts +1 -1
- package/build/esm/components/SelectedMenuFiltersList/SelectedMenuFiltersList.d.ts +1 -2
- package/build/esm/components/StatusTag/StatusTag.d.ts +1 -2
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from './ButtonProps';
|
|
3
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
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>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BoxProps } from '@material-ui/core';
|
|
2
|
-
import
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
interface DialogSectionProps extends BoxProps {
|
|
4
4
|
edgeToEdge?: boolean;
|
|
5
5
|
borderBottom?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const DialogSection: (props: PropsWithChildren<DialogSectionProps>) =>
|
|
7
|
+
export declare const DialogSection: (props: PropsWithChildren<DialogSectionProps>) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
interface DialogTitleProps {
|
|
3
3
|
title: string;
|
|
4
4
|
titleId: string;
|
|
5
5
|
Icon?: ReactNode;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const DialogTitle: (props: DialogTitleProps) =>
|
|
8
|
+
export declare const DialogTitle: (props: DialogTitleProps) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DishCheckoutCardProps } from './DishCheckoutCardProps';
|
|
3
|
-
export declare const DishCheckoutCard: ({ id, borderBottom, name, quantity, modifierGroups, onDelete, onEdit, onQuantityChange, price, specialInstructions, disabled, warningMessage, warningMessageLevel, image, messages, maxQuantity, minQuantity, }: DishCheckoutCardProps) =>
|
|
2
|
+
export declare const DishCheckoutCard: ({ id, borderBottom, name, quantity, modifierGroups, onDelete, onEdit, onQuantityChange, price, specialInstructions, disabled, warningMessage, warningMessageLevel, image, messages, maxQuantity, minQuantity, }: DishCheckoutCardProps) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ModifierOptionsControlProps } from './DishModifierCardProps';
|
|
3
|
-
export declare const ModifierControls: (props: ModifierOptionsControlProps) =>
|
|
2
|
+
export declare const ModifierControls: (props: ModifierOptionsControlProps) => JSX.Element | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { CheckboxModifierFormProps, RadioModifierFormProps } from './DishModifierCardProps';
|
|
3
|
-
export declare const CheckboxGroup: (props: CheckboxModifierFormProps) =>
|
|
4
|
-
export declare const RadioGroup: (props: RadioModifierFormProps) =>
|
|
2
|
+
export declare const CheckboxGroup: (props: CheckboxModifierFormProps) => JSX.Element;
|
|
3
|
+
export declare const RadioGroup: (props: RadioModifierFormProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ExpandableModifierGroupProps } from './ExpandableModifierGroupProps';
|
|
3
2
|
export declare const ExpandableModifierGroup: {
|
|
4
|
-
({ name, children, defaultExpanded, selectedSummary, }: ExpandableModifierGroupProps):
|
|
3
|
+
({ name, children, defaultExpanded, selectedSummary, }: ExpandableModifierGroupProps): JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const ItemTagGroup: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) =>
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
export declare const ItemTagGroup: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { MenuItemCardProps } from './MenuItemCardProps';
|
|
3
|
-
export declare const MenuItemCardImg: (props: Pick<MenuItemCardProps, "image">) =>
|
|
2
|
+
export declare const MenuItemCardImg: (props: Pick<MenuItemCardProps, "image">) => JSX.Element | null;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { MenuItemCardProps } from './MenuItemCardProps';
|
|
3
|
-
export declare const MenuItemCardPrice: (props: Pick<MenuItemCardProps, "price" | "available">) =>
|
|
2
|
+
export declare const MenuItemCardPrice: (props: Pick<MenuItemCardProps, "price" | "available">) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { MenuItemCardProps } from './MenuItemCardProps';
|
|
3
|
-
export declare const MenuItemCardReactions: (props: Pick<MenuItemCardProps, "likeCount" | "reviewCount">) =>
|
|
2
|
+
export declare const MenuItemCardReactions: (props: Pick<MenuItemCardProps, "likeCount" | "reviewCount">) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { MenuItemCardProps } from './MenuItemCardProps';
|
|
3
|
-
export declare const MenuItemCardTags: (props: Pick<MenuItemCardProps, "itemTags">) =>
|
|
2
|
+
export declare const MenuItemCardTags: (props: Pick<MenuItemCardProps, "itemTags">) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ModifierGroupsType } from '../DishCheckoutCard/DishCheckoutCardProps';
|
|
3
2
|
export declare const MenuItemModifiersList: ({ modifierGroups, specialInstructions, }: {
|
|
4
3
|
modifierGroups: ModifierGroupsType[];
|
|
5
4
|
specialInstructions: string | null;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ModifierGroupsType } from '../DishCheckoutCard/DishCheckoutCardProps';
|
|
3
|
-
export declare const ModifierGroup: (group: ModifierGroupsType, isNested: boolean) =>
|
|
2
|
+
export declare const ModifierGroup: (group: ModifierGroupsType, isNested: boolean) => JSX.Element;
|
|
@@ -73,9 +73,11 @@ export type NestedModsV2DishModifierCardProps = {
|
|
|
73
73
|
}>;
|
|
74
74
|
/** Optional feature-gated options for nested modifier controls */
|
|
75
75
|
modifierControlsOptions?: ModifierControlsOptions;
|
|
76
|
+
/** Optional slot rendered directly after a modifier row, keyed by the parent modifier id */
|
|
77
|
+
renderAfterModifier?: (modifierId: number) => React.ReactNode;
|
|
76
78
|
/** Removes the card border and border-radius, for use inside a container that provides its own card styling */
|
|
77
79
|
disableCardStyle?: boolean;
|
|
78
80
|
/** Hides the group name heading, useful when the name is already shown by a parent container */
|
|
79
81
|
hideName?: boolean;
|
|
80
82
|
};
|
|
81
|
-
export type ModifierOptionsControlProps = Pick<NestedModsV2DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name' | 'modifierControlsOptions'>;
|
|
83
|
+
export type ModifierOptionsControlProps = Pick<NestedModsV2DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name' | 'modifierControlsOptions' | 'renderAfterModifier'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ModifierOptionsControlProps } from './DishModifierCardProps';
|
|
3
|
-
export declare const ModifierControls: (props: ModifierOptionsControlProps) =>
|
|
2
|
+
export declare const ModifierControls: (props: ModifierOptionsControlProps) => JSX.Element | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { NestedModsV2DishModifierCardProps } from './DishModifierCardProps';
|
|
3
2
|
export declare const NestedModsV2DishModifierCard: {
|
|
4
|
-
(props: NestedModsV2DishModifierCardProps):
|
|
3
|
+
(props: NestedModsV2DishModifierCardProps): JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
5
|
};
|
|
@@ -14,5 +14,5 @@ export declare const useOrderingAppContext: () => OrderingAppContextType;
|
|
|
14
14
|
type OrderingAppContextProviderProps = PropsWithChildren<{
|
|
15
15
|
defaultContext: OrderingAppContextValue;
|
|
16
16
|
}>;
|
|
17
|
-
export declare const OrderingAppContextProvider: (props: OrderingAppContextProviderProps) =>
|
|
17
|
+
export declare const OrderingAppContextProvider: (props: OrderingAppContextProviderProps) => JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
2
|
type ReactionCounterGroupProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
3
|
-
export declare const ReactionCounterGroup: (props: ReactionCounterGroupProps) =>
|
|
3
|
+
export declare const ReactionCounterGroup: (props: ReactionCounterGroupProps) => JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
type SelectableChipGroupProps = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
} & React.HTMLAttributes<HTMLElement>;
|
|
5
|
-
export declare const SelectableChipGroup: (props: SelectableChipGroupProps) =>
|
|
5
|
+
export declare const SelectableChipGroup: (props: SelectableChipGroupProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SelectedMenuFiltersListProps } from './SelectedMenuFiltersListProps';
|
|
3
|
-
export declare const SelectedMenuFiltersList: (props: SelectedMenuFiltersListProps) =>
|
|
2
|
+
export declare const SelectedMenuFiltersList: (props: SelectedMenuFiltersListProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StatusTagProps } from './StatusTagProps';
|
|
3
2
|
export declare const StatusTag: {
|
|
4
|
-
({ color, label, size, variant }: StatusTagProps):
|
|
3
|
+
({ color, label, size, variant }: StatusTagProps): JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
5
|
};
|
package/build/cjs/index.js
CHANGED
|
@@ -1700,6 +1700,7 @@ const useDishModifierCardStyles = core.makeStyles((theme) => ({
|
|
|
1700
1700
|
flexDirection: 'column',
|
|
1701
1701
|
padding: theme.spacing(2.5),
|
|
1702
1702
|
color: `${theme.palette.grey[900]} !important`,
|
|
1703
|
+
width: '100%',
|
|
1703
1704
|
},
|
|
1704
1705
|
card: {
|
|
1705
1706
|
borderRadius: '8px',
|
|
@@ -1785,9 +1786,11 @@ const useCheckboxModifierFormStyles = core.makeStyles((theme) => ({
|
|
|
1785
1786
|
const useLabelStyles = core.makeStyles((theme) => ({
|
|
1786
1787
|
label: {
|
|
1787
1788
|
margin: theme.spacing(0.5, 0),
|
|
1789
|
+
minWidth: 0,
|
|
1788
1790
|
},
|
|
1789
1791
|
selectedLabel: {
|
|
1790
1792
|
margin: theme.spacing(0.5, 0),
|
|
1793
|
+
minWidth: 0,
|
|
1791
1794
|
},
|
|
1792
1795
|
disabled: {
|
|
1793
1796
|
color: theme.palette.grey[500],
|
|
@@ -1797,6 +1800,10 @@ const useLabelStyles = core.makeStyles((theme) => ({
|
|
|
1797
1800
|
},
|
|
1798
1801
|
selectedSummary: {
|
|
1799
1802
|
color: theme.palette.grey[700],
|
|
1803
|
+
overflow: 'hidden',
|
|
1804
|
+
overflowWrap: 'anywhere',
|
|
1805
|
+
whiteSpace: 'normal',
|
|
1806
|
+
wordBreak: 'break-word',
|
|
1800
1807
|
},
|
|
1801
1808
|
selectedSummaryInlineRow: {
|
|
1802
1809
|
alignItems: 'center',
|
|
@@ -1821,11 +1828,16 @@ const useLabelStyles = core.makeStyles((theme) => ({
|
|
|
1821
1828
|
fontWeight: theme.typography.fontWeightRegular,
|
|
1822
1829
|
lineHeight: 1.2,
|
|
1823
1830
|
overflow: 'hidden',
|
|
1824
|
-
|
|
1825
|
-
whiteSpace: '
|
|
1831
|
+
overflowWrap: 'anywhere',
|
|
1832
|
+
whiteSpace: 'normal',
|
|
1833
|
+
wordBreak: 'break-word',
|
|
1834
|
+
},
|
|
1835
|
+
disabledText: {
|
|
1836
|
+
color: theme.palette.grey[500],
|
|
1826
1837
|
},
|
|
1827
1838
|
selectedSummaryIcon: {
|
|
1828
1839
|
color: theme.palette.success.main,
|
|
1840
|
+
flexShrink: 0,
|
|
1829
1841
|
},
|
|
1830
1842
|
}));
|
|
1831
1843
|
const useOptionsStyles = core.makeStyles((theme) => ({
|
|
@@ -1838,6 +1850,7 @@ const useOptionsStyles = core.makeStyles((theme) => ({
|
|
|
1838
1850
|
inlineOptions: {
|
|
1839
1851
|
alignItems: 'center',
|
|
1840
1852
|
display: 'inline-flex',
|
|
1853
|
+
flexShrink: 0,
|
|
1841
1854
|
justifyContent: 'center',
|
|
1842
1855
|
height: 'auto',
|
|
1843
1856
|
marginBottom: 0,
|
|
@@ -1859,13 +1872,13 @@ const Label = (props) => {
|
|
|
1859
1872
|
const numericPrice = price ? parseFloat(price.replace(/[^0-9.-]/g, '')) : NaN;
|
|
1860
1873
|
const shouldHidePrice = hidePrice || !price || numericPrice === 0 || isNaN(numericPrice);
|
|
1861
1874
|
const showSelectedSummary = Boolean(enableSelectedModifierStyles && isSelected && selectedSummary);
|
|
1862
|
-
return (React.createElement(core.Box, { display: "flex", flexDirection: "column", className: classNames({ [classes.label]: !showSelectedSummary, [classes.selectedLabel]: showSelectedSummary }) },
|
|
1875
|
+
return (React.createElement(core.Box, { display: "flex", flexDirection: "column", style: { flex: 1, minWidth: 0 }, className: classNames({ [classes.label]: !showSelectedSummary, [classes.selectedLabel]: showSelectedSummary }) },
|
|
1863
1876
|
React.createElement(core.Box, { display: "flex", alignItems: "center", gridGap: 8 },
|
|
1864
1877
|
React.createElement(core.Typography, { className: classNames({
|
|
1865
1878
|
[classes.disabled]: disabled,
|
|
1866
1879
|
}) }, name)),
|
|
1867
1880
|
!shouldHidePrice && (React.createElement(core.Typography, { className: classNames({ [classes.price]: !disabled }, { [classes.disabled]: disabled }) }, `+ ${price}`)),
|
|
1868
|
-
showSelectedSummary && React.createElement(core.Typography, { className: classes.selectedSummary }, selectedSummary)));
|
|
1881
|
+
showSelectedSummary && (React.createElement(core.Typography, { className: classNames(classes.selectedSummary, { [classes.disabledText]: disabled }) }, selectedSummary))));
|
|
1869
1882
|
};
|
|
1870
1883
|
const Options = (props) => {
|
|
1871
1884
|
const { handleOptionsClick, actionLabel, hidden = false, inline = false } = props;
|
|
@@ -1879,6 +1892,9 @@ const Options = (props) => {
|
|
|
1879
1892
|
!inline && React.createElement(commonUi.Icon, { icon: webIcons.ChevronRight }))));
|
|
1880
1893
|
};
|
|
1881
1894
|
const getIsSelected = (modifierId, value) => value.some((modifierValue) => modifierValue.modifierId === modifierId && modifierValue.quantity > 0);
|
|
1895
|
+
const getIsModifierDisabled = (modifier, props, isSelected) => Boolean(props.isOutOfStock ||
|
|
1896
|
+
modifier.outOfStock ||
|
|
1897
|
+
(!isSelected && props.disableNewSelections && props.type !== 'singleSelect'));
|
|
1882
1898
|
const getActionLabel = (isSelected, props) => props.modifierControlsOptions?.showUpdateButton && isSelected ? 'UPDATE' : 'OPTIONS';
|
|
1883
1899
|
const shouldHideNestedOptionsButton = (isSelected, props) => Boolean(props.modifierControlsOptions?.hideNestedOptionsButton ||
|
|
1884
1900
|
(props.modifierControlsOptions?.enableSelectedModifierStyles && !isSelected));
|
|
@@ -1893,7 +1909,7 @@ const getModifierActionState = (modifier, isSelected, props) => ({
|
|
|
1893
1909
|
selectedSummary: props.modifierControlsOptions?.selectedNestedSummaryByModifierId?.[modifier.id],
|
|
1894
1910
|
});
|
|
1895
1911
|
const NestedModifierActions = (props) => {
|
|
1896
|
-
const { modifier, handleOptionsClick, state, renderRegularButton = true } = props;
|
|
1912
|
+
const { modifier, handleOptionsClick, state, disabled = false, renderRegularButton = true } = props;
|
|
1897
1913
|
const labelClasses = useLabelStyles();
|
|
1898
1914
|
if (!modifier.hasModifiers || modifier.outOfStock)
|
|
1899
1915
|
return null;
|
|
@@ -1901,7 +1917,7 @@ const NestedModifierActions = (props) => {
|
|
|
1901
1917
|
state.showInlineAction && state.selectedSummary && (React.createElement(core.Box, { className: labelClasses.selectedSummaryInlineRow },
|
|
1902
1918
|
React.createElement(core.Box, { className: labelClasses.selectedSummaryPrimary },
|
|
1903
1919
|
React.createElement(commonUi.Icon, { icon: webIcons.CheckCircle, size: "medium", className: labelClasses.selectedSummaryIcon }),
|
|
1904
|
-
React.createElement(core.Typography, { variant: "caption", className: labelClasses.selectedSummaryPrimaryText }, state.selectedSummary)),
|
|
1920
|
+
React.createElement(core.Typography, { variant: "caption", className: classNames(labelClasses.selectedSummaryPrimaryText, { [labelClasses.disabledText]: disabled }) }, state.selectedSummary)),
|
|
1905
1921
|
React.createElement(Options, { handleOptionsClick: () => handleOptionsClick(modifier.id), actionLabel: state.actionLabel, inline: true, hidden: state.shouldHideNestedOptions }))),
|
|
1906
1922
|
renderRegularButton && (React.createElement(Options, { handleOptionsClick: () => handleOptionsClick(modifier.id), actionLabel: state.actionLabel, hidden: state.shouldHideNestedOptions || (state.showInlineAction && Boolean(state.selectedSummary)) }))));
|
|
1907
1923
|
};
|
|
@@ -1924,16 +1940,19 @@ const SingleSelectModifierControl = (props) => {
|
|
|
1924
1940
|
};
|
|
1925
1941
|
return (React.createElement(core.FormControl, { fullWidth: true },
|
|
1926
1942
|
React.createElement(core.RadioGroup, { className: radioClasses.radioGroup, "aria-label": name }, modifiers.map((modifier) => {
|
|
1927
|
-
const
|
|
1943
|
+
const isSelected = getIsSelected(modifier.id, value);
|
|
1944
|
+
const isModifierDisabled = getIsModifierDisabled(modifier, props, isSelected);
|
|
1945
|
+
const modifierActionState = getModifierActionState(modifier, isSelected, props);
|
|
1928
1946
|
return (React.createElement(core.Box, { key: modifier.id },
|
|
1929
1947
|
React.createElement(core.FormControlLabel, { key: modifier.id, value: modifier.id, className: radioClasses.root, control: React.createElement(core.Radio, { checked: value[0]?.modifierId === modifier.id, className: classNames({
|
|
1930
1948
|
[radioClasses.hideRadio]: modifier.outOfStock,
|
|
1931
1949
|
[radioClasses.radio]: !modifier.outOfStock,
|
|
1932
1950
|
}), disabled: isOutOfStock || modifier.outOfStock, onChange: makeHandleChange(modifier), required: isRequired }), label: React.createElement(core.Box, { className: radioClasses.label },
|
|
1933
|
-
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled:
|
|
1951
|
+
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled: isModifierDisabled, hidePrice: modifier.hidePrice, isSelected: modifierActionState.isSelected, enableSelectedModifierStyles: props.modifierControlsOptions?.enableSelectedModifierStyles, selectedSummary: modifierActionState.showInlineAction ? undefined : modifierActionState.selectedSummary }),
|
|
1934
1952
|
modifier.outOfStock && (React.createElement(core.Box, { minWidth: "90px", marginLeft: 2 },
|
|
1935
1953
|
React.createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" })))), labelPlacement: "start" }),
|
|
1936
|
-
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState })
|
|
1954
|
+
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, disabled: isModifierDisabled }),
|
|
1955
|
+
props.renderAfterModifier?.(modifier.id)));
|
|
1937
1956
|
}))));
|
|
1938
1957
|
};
|
|
1939
1958
|
const QuantityButtonControl = (props) => {
|
|
@@ -1957,18 +1976,20 @@ const QuantityButtonControl = (props) => {
|
|
|
1957
1976
|
React.createElement(core.FormGroup, { className: radioClasses.radioGroup, "aria-label": name }, modifiers.map((modifier) => {
|
|
1958
1977
|
const selectedModifier = value.find((v) => v.modifierId === modifier.id && v.quantity > 0);
|
|
1959
1978
|
const isSelected = Boolean(selectedModifier);
|
|
1979
|
+
const isModifierDisabled = getIsModifierDisabled(modifier, props, isSelected);
|
|
1960
1980
|
const modifierActionState = getModifierActionState(modifier, isSelected, props);
|
|
1961
1981
|
return (React.createElement(core.Box, { key: modifier.id },
|
|
1962
1982
|
React.createElement(core.Box, { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" },
|
|
1963
|
-
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled:
|
|
1983
|
+
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled: isModifierDisabled, hidePrice: modifier.hidePrice, isSelected: modifierActionState.isSelected, enableSelectedModifierStyles: props.modifierControlsOptions?.enableSelectedModifierStyles, selectedSummary: modifierActionState.showInlineAction ? undefined : modifierActionState.selectedSummary }),
|
|
1964
1984
|
modifier.outOfStock && (React.createElement(core.Box, { minWidth: "90px", marginLeft: 2 },
|
|
1965
1985
|
React.createElement(StatusTag, { color: "warning", label: props.messages.outOfStockText, variant: "outlined", size: "md" }))),
|
|
1966
1986
|
!modifier.outOfStock && (React.createElement(QuantityPicker, { incrementButtonTitle: `Add ${modifier.name}`, decrementButtonTitle: `Remove ${modifier.name}`, id: `${modifier.id}-quantity-picker`, variation: "modifierCount", value: selectedModifier?.quantity ?? 0, min: 0, max: isSingleSelect ? 1 : undefined, preventManualChange: true, disableIncrement: !isSingleSelect && disableNewSelections, onChange: makeHandleChange(modifier, isSelected), disabled: isOutOfStock || modifier.outOfStock, name: modifier.name }))),
|
|
1967
|
-
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, renderRegularButton: false })
|
|
1987
|
+
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, disabled: isModifierDisabled, renderRegularButton: false }),
|
|
1988
|
+
props.renderAfterModifier?.(modifier.id)));
|
|
1968
1989
|
}))));
|
|
1969
1990
|
};
|
|
1970
1991
|
const MultipleSelectControl = (props) => {
|
|
1971
|
-
const { modifiers, value,
|
|
1992
|
+
const { modifiers, value, onChange, handleOptionsClick, aggregatePrice } = props;
|
|
1972
1993
|
const classes = useCheckboxModifierFormStyles();
|
|
1973
1994
|
const makeHandleChange = (modifier) => () => {
|
|
1974
1995
|
const isModifierInValue = Boolean(value.find((v) => v.modifierId === modifier.id));
|
|
@@ -1986,13 +2007,16 @@ const MultipleSelectControl = (props) => {
|
|
|
1986
2007
|
};
|
|
1987
2008
|
return (React.createElement(core.FormControl, { fullWidth: true },
|
|
1988
2009
|
React.createElement(core.FormGroup, { className: classes.formGroup }, modifiers.map((modifier) => {
|
|
1989
|
-
const
|
|
2010
|
+
const isSelected = getIsSelected(modifier.id, value);
|
|
2011
|
+
const isModifierDisabled = getIsModifierDisabled(modifier, props, isSelected);
|
|
2012
|
+
const modifierActionState = getModifierActionState(modifier, isSelected, props);
|
|
1990
2013
|
return (React.createElement(core.Box, { key: modifier.id },
|
|
1991
|
-
React.createElement(core.FormControlLabel, { key: modifier.id, value: modifier.id, className: classes.root, checked: value.some((v) => v.modifierId === modifier.id), onChange: makeHandleChange(modifier), control: React.createElement(core.Checkbox, { className: classNames({ [classes.hideCheckbox]: modifier.outOfStock }, { [classes.checkbox]: !modifier.outOfStock }), disabled:
|
|
1992
|
-
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled:
|
|
2014
|
+
React.createElement(core.FormControlLabel, { key: modifier.id, value: modifier.id, className: classes.root, checked: value.some((v) => v.modifierId === modifier.id), onChange: makeHandleChange(modifier), control: React.createElement(core.Checkbox, { className: classNames({ [classes.hideCheckbox]: modifier.outOfStock }, { [classes.checkbox]: !modifier.outOfStock }), disabled: isModifierDisabled }), label: React.createElement(core.Box, { className: classes.label },
|
|
2015
|
+
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled: isModifierDisabled, hidePrice: modifier.hidePrice, isSelected: modifierActionState.isSelected, enableSelectedModifierStyles: props.modifierControlsOptions?.enableSelectedModifierStyles, selectedSummary: modifierActionState.showInlineAction ? undefined : modifierActionState.selectedSummary }),
|
|
1993
2016
|
modifier.outOfStock && (React.createElement(core.Box, { minWidth: "90px", marginLeft: 2 },
|
|
1994
2017
|
React.createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" })))), labelPlacement: "start" }),
|
|
1995
|
-
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState })
|
|
2018
|
+
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, disabled: isModifierDisabled }),
|
|
2019
|
+
props.renderAfterModifier?.(modifier.id)));
|
|
1996
2020
|
}))));
|
|
1997
2021
|
};
|
|
1998
2022
|
const MultipleQuantitySelectControl = (props) => {
|
|
@@ -2010,13 +2034,14 @@ const MultipleQuantitySelectControl = (props) => {
|
|
|
2010
2034
|
return (React.createElement(core.FormControl, { fullWidth: true },
|
|
2011
2035
|
React.createElement(core.FormGroup, null, modifiers.map((modifier) => {
|
|
2012
2036
|
const modifierActionState = getModifierActionState(modifier, modifier.quantity > 0, props);
|
|
2037
|
+
const isModifierDisabled = getIsModifierDisabled(modifier, props, modifierActionState.isSelected);
|
|
2013
2038
|
return (React.createElement(core.Box, { key: modifier.id, style: { justifyContent: 'space-between', flexDirection: 'column' }, display: "flex" },
|
|
2014
2039
|
React.createElement(core.Box, { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" },
|
|
2015
|
-
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled:
|
|
2040
|
+
React.createElement(Label, { name: modifier.name, price: aggregatePrice[modifier.id] || modifier.formattedPrice, disabled: isModifierDisabled, hidePrice: modifier.hidePrice, isSelected: modifierActionState.isSelected, enableSelectedModifierStyles: props.modifierControlsOptions?.enableSelectedModifierStyles, selectedSummary: modifierActionState.showInlineAction ? undefined : modifierActionState.selectedSummary }),
|
|
2016
2041
|
modifier.outOfStock && (React.createElement(core.Box, { minWidth: "90px", marginLeft: 2 },
|
|
2017
2042
|
React.createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" }))),
|
|
2018
2043
|
!modifier.outOfStock && (React.createElement(QuantityPicker, { incrementButtonTitle: `Add ${modifier.name}`, decrementButtonTitle: `Remove ${modifier.name}`, id: `${modifier.id}-quantity-picker`, variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock, name: modifier.name }))),
|
|
2019
|
-
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, renderRegularButton: false }),
|
|
2044
|
+
React.createElement(NestedModifierActions, { modifier: modifier, handleOptionsClick: handleOptionsClick, state: modifierActionState, disabled: isModifierDisabled, renderRegularButton: false }),
|
|
2020
2045
|
React.createElement(core.Box, { display: "flex", alignItems: "flex-start", gridGap: 4 },
|
|
2021
2046
|
modifier.hasModifiers && !modifier.outOfStock && (React.createElement(Options, { handleOptionsClick: () => handleOptionsClick(modifier.id), actionLabel: modifierActionState.actionLabel, hidden: modifierActionState.shouldHideNestedOptions ||
|
|
2022
2047
|
(modifierActionState.showInlineAction && Boolean(modifierActionState.selectedSummary)) })),
|
|
@@ -2027,7 +2052,8 @@ const MultipleQuantitySelectControl = (props) => {
|
|
|
2027
2052
|
selectionQuantity[modifier.id].currentSelectionCount,
|
|
2028
2053
|
"/",
|
|
2029
2054
|
selectionQuantity[modifier.id].requiredSelectionCount,
|
|
2030
|
-
" selected")))
|
|
2055
|
+
" selected"))),
|
|
2056
|
+
props.renderAfterModifier?.(modifier.id)));
|
|
2031
2057
|
}))));
|
|
2032
2058
|
};
|
|
2033
2059
|
const ModifierControls = (props) => {
|
|
@@ -2074,7 +2100,7 @@ const getStatusTagProps = (props) => {
|
|
|
2074
2100
|
return { color, label, variant };
|
|
2075
2101
|
};
|
|
2076
2102
|
const NestedModsV2DishModifierCard = (props) => {
|
|
2077
|
-
const { aggregatePrice, name, disableNewSelections, modifiers, value, messages, onChange, type, error, isOutOfStock, isRequired, handleOptionsClick, selectionQuantity, modifierControlsOptions, disableCardStyle = false, hideName = false, } = props;
|
|
2103
|
+
const { aggregatePrice, name, disableNewSelections, modifiers, value, messages, onChange, type, error, isOutOfStock, isRequired, handleOptionsClick, selectionQuantity, modifierControlsOptions, renderAfterModifier, disableCardStyle = false, hideName = false, } = props;
|
|
2078
2104
|
const classes = useDishModifierCardStyles();
|
|
2079
2105
|
return (React.createElement(commonUi.Box, { className: classNames(classes.root, { [classes.card]: !disableCardStyle }) },
|
|
2080
2106
|
React.createElement(commonUi.Box, { display: "flex", justifyContent: "space-between", width: "100%", alignItems: "center", height: "fit-content", marginBottom: 2 },
|
|
@@ -2083,7 +2109,7 @@ const NestedModsV2DishModifierCard = (props) => {
|
|
|
2083
2109
|
!isOutOfStock && (React.createElement(commonUi.Typography, { variant: "subtitle1", className: classNames({ [classes.error]: error, [classes.helperText]: !error }) }, messages.helperText))),
|
|
2084
2110
|
!hideName && (React.createElement(commonUi.Typography, { component: "h3", className: classes.name }, name)),
|
|
2085
2111
|
React.createElement(commonUi.Box, null,
|
|
2086
|
-
React.createElement(ModifierControls, { name: name, value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, isRequired: isRequired, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice, selectionQuantity: selectionQuantity, modifierControlsOptions: modifierControlsOptions }))));
|
|
2112
|
+
React.createElement(ModifierControls, { name: name, value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, isRequired: isRequired, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice, selectionQuantity: selectionQuantity, modifierControlsOptions: modifierControlsOptions, renderAfterModifier: renderAfterModifier }))));
|
|
2087
2113
|
};
|
|
2088
2114
|
NestedModsV2DishModifierCard.displayName = 'NestedModsV2DishModifierCard';
|
|
2089
2115
|
|