@popmenu/ordering-ui 0.125.0 → 0.125.1

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.
@@ -67,5 +67,5 @@ export declare type RadioModifierFormProps = Base;
67
67
  export declare type CheckboxModifierFormProps = Base & {
68
68
  disableNewSelections?: boolean;
69
69
  };
70
- export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity' | 'name'>;
70
+ export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'isRequired' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity'>;
71
71
  export {};
package/build/index.es.js CHANGED
@@ -1956,7 +1956,7 @@ var MultipleSelectControl = function (props) {
1956
1956
  }))));
1957
1957
  };
1958
1958
  var MultipleQuantitySelectControl = function (props) {
1959
- var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity, name = props.name;
1959
+ var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity;
1960
1960
  var makeHandleChange = function (modifier) { return function (_e, customEvent) {
1961
1961
  onChange({
1962
1962
  isRadio: false,
@@ -1973,7 +1973,7 @@ var MultipleQuantitySelectControl = function (props) {
1973
1973
  React__default.createElement(Label, { name: modifier.name, price: modifier.formattedPrice, disabled: isOutOfStock || modifier.outOfStock }),
1974
1974
  modifier.outOfStock && (React__default.createElement(Box, { minWidth: "90px", marginLeft: 2 },
1975
1975
  React__default.createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" }))),
1976
- !modifier.outOfStock && (React__default.createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock, name: name }))),
1976
+ !modifier.outOfStock && (React__default.createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock, name: modifier.name }))),
1977
1977
  React__default.createElement(Box, { display: "flex", alignItems: "flex-start", gridGap: 4 },
1978
1978
  modifier.hasModifiers && !modifier.outOfStock && (React__default.createElement(Options, { handleOptionsClick: function () { return handleOptionsClick(modifier.id); } })),
1979
1979
  selectionQuantity[modifier.id] &&
@@ -2032,7 +2032,7 @@ var DishModifierCard = function (props) {
2032
2032
  !isOutOfStock && (React__default.createElement(Typography, { variant: "subtitle1", className: classNames((_a = {}, _a[classes.error] = error, _a[classes.helperText] = !error, _a)) }, messages.helperText))),
2033
2033
  React__default.createElement(Typography, { className: classes.name }, name),
2034
2034
  React__default.createElement(Box, null,
2035
- React__default.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 }))));
2035
+ React__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 }))));
2036
2036
  };
2037
2037
  DishModifierCard.displayName = 'DishModifierCard';
2038
2038
 
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, name = props.name;
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, { name: name, value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, isRequired: isRequired, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice, selectionQuantity: selectionQuantity }))));
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/ordering-ui",
3
- "version": "0.125.0",
3
+ "version": "0.125.1",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components specifically for the popmenu Online Ordering web app.",
@@ -32,5 +32,5 @@
32
32
  "acorn-jsx": "^5.3.2"
33
33
  },
34
34
  "sideEffects": false,
35
- "gitHead": "29a7ed10bcc157ce7445dfc0795c37892936915a"
35
+ "gitHead": "543c75dde6b193431ca2f090902d5f00f48515b3"
36
36
  }