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