@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.
@@ -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
 
@@ -2659,6 +2659,21 @@ var typography = {
2659
2659
  fontSize: '1.25rem',
2660
2660
  lineHeight: '1.875rem',
2661
2661
  },
2662
+ h4: {
2663
+ fontWeight: 500,
2664
+ fontSize: '1.125rem',
2665
+ lineHeight: '1.6875rem',
2666
+ },
2667
+ h5: {
2668
+ fontWeight: 500,
2669
+ fontSize: '1.125rem',
2670
+ lineHeight: '1.6875rem',
2671
+ },
2672
+ h6: {
2673
+ fontWeight: 500,
2674
+ fontSize: '1.125rem',
2675
+ lineHeight: '1.6875rem',
2676
+ },
2662
2677
  body1: {
2663
2678
  fontWeight: 400,
2664
2679
  fontSize: '1rem',