@popmenu/ordering-ui 0.125.0 → 0.125.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/index.js
CHANGED
|
@@ -1993,7 +1993,7 @@ var MultipleSelectControl = function (props) {
|
|
|
1993
1993
|
}))));
|
|
1994
1994
|
};
|
|
1995
1995
|
var MultipleQuantitySelectControl = function (props) {
|
|
1996
|
-
var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity
|
|
1996
|
+
var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity;
|
|
1997
1997
|
var makeHandleChange = function (modifier) { return function (_e, customEvent) {
|
|
1998
1998
|
onChange({
|
|
1999
1999
|
isRadio: false,
|
|
@@ -2010,7 +2010,7 @@ var MultipleQuantitySelectControl = function (props) {
|
|
|
2010
2010
|
React__default['default'].createElement(Label, { name: modifier.name, price: modifier.formattedPrice, disabled: isOutOfStock || modifier.outOfStock }),
|
|
2011
2011
|
modifier.outOfStock && (React__default['default'].createElement(core.Box, { minWidth: "90px", marginLeft: 2 },
|
|
2012
2012
|
React__default['default'].createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" }))),
|
|
2013
|
-
!modifier.outOfStock && (React__default['default'].createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock, name: name }))),
|
|
2013
|
+
!modifier.outOfStock && (React__default['default'].createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock, name: modifier.name }))),
|
|
2014
2014
|
React__default['default'].createElement(core.Box, { display: "flex", alignItems: "flex-start", gridGap: 4 },
|
|
2015
2015
|
modifier.hasModifiers && !modifier.outOfStock && (React__default['default'].createElement(Options, { handleOptionsClick: function () { return handleOptionsClick(modifier.id); } })),
|
|
2016
2016
|
selectionQuantity[modifier.id] &&
|
|
@@ -2069,7 +2069,7 @@ var DishModifierCard = function (props) {
|
|
|
2069
2069
|
!isOutOfStock && (React__default['default'].createElement(Typography, { variant: "subtitle1", className: classNames((_a = {}, _a[classes.error] = error, _a[classes.helperText] = !error, _a)) }, messages.helperText))),
|
|
2070
2070
|
React__default['default'].createElement(Typography, { className: classes.name }, name),
|
|
2071
2071
|
React__default['default'].createElement(core.Box, null,
|
|
2072
|
-
React__default['default'].createElement(ModifierControls, {
|
|
2072
|
+
React__default['default'].createElement(ModifierControls, { value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, isRequired: isRequired, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice, selectionQuantity: selectionQuantity }))));
|
|
2073
2073
|
};
|
|
2074
2074
|
DishModifierCard.displayName = 'DishModifierCard';
|
|
2075
2075
|
|
|
@@ -2696,6 +2696,21 @@ var typography = {
|
|
|
2696
2696
|
fontSize: '1.25rem',
|
|
2697
2697
|
lineHeight: '1.875rem',
|
|
2698
2698
|
},
|
|
2699
|
+
h4: {
|
|
2700
|
+
fontWeight: 500,
|
|
2701
|
+
fontSize: '1.125rem',
|
|
2702
|
+
lineHeight: '1.6875rem',
|
|
2703
|
+
},
|
|
2704
|
+
h5: {
|
|
2705
|
+
fontWeight: 500,
|
|
2706
|
+
fontSize: '1.125rem',
|
|
2707
|
+
lineHeight: '1.6875rem',
|
|
2708
|
+
},
|
|
2709
|
+
h6: {
|
|
2710
|
+
fontWeight: 500,
|
|
2711
|
+
fontSize: '1.125rem',
|
|
2712
|
+
lineHeight: '1.6875rem',
|
|
2713
|
+
},
|
|
2699
2714
|
body1: {
|
|
2700
2715
|
fontWeight: 400,
|
|
2701
2716
|
fontSize: '1rem',
|