@popmenu/ordering-ui 0.121.0 → 0.122.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/index.js
CHANGED
|
@@ -949,6 +949,8 @@ var getBorder = function (theme) { return function (props) {
|
|
|
949
949
|
}
|
|
950
950
|
return borderColor;
|
|
951
951
|
}; };
|
|
952
|
+
// using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on
|
|
953
|
+
// any component-specific props
|
|
952
954
|
styles.makeStyles(function (theme) { return ({
|
|
953
955
|
root: {
|
|
954
956
|
background: getBackground(theme),
|
|
@@ -1135,6 +1137,7 @@ var useLinkStyles = styles.makeStyles(function (theme) { return ({
|
|
|
1135
1137
|
},
|
|
1136
1138
|
}); });
|
|
1137
1139
|
|
|
1140
|
+
// eslint-disable-next-line react/display-name -- false positive
|
|
1138
1141
|
var Link = React.forwardRef(function (props, ref) {
|
|
1139
1142
|
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
1140
1143
|
var classes = useLinkStyles(props);
|
|
@@ -1655,7 +1658,7 @@ var OrderingAppContextProvider = function (props) {
|
|
|
1655
1658
|
|
|
1656
1659
|
var DishCheckoutCard = function (props) {
|
|
1657
1660
|
var _a;
|
|
1658
|
-
var id = props.id, name = props.name, quantity = props.quantity, modifierGroups = props.modifierGroups, onDelete = props.onDelete, onEdit = props.onEdit, onQuantityChange = props.onQuantityChange, price = props.price, specialInstructions = props.specialInstructions, disabled = props.disabled, warningMessage = props.warningMessage, _b = props.image, image = _b === void 0 ? {} : _b;
|
|
1661
|
+
var id = props.id, name = props.name, quantity = props.quantity, modifierGroups = props.modifierGroups, onDelete = props.onDelete, onEdit = props.onEdit, onQuantityChange = props.onQuantityChange, price = props.price, specialInstructions = props.specialInstructions, disabled = props.disabled, warningMessage = props.warningMessage, _b = props.image, image = _b === void 0 ? {} : _b, messages = props.messages;
|
|
1659
1662
|
var src = image.src, alt = image.alt;
|
|
1660
1663
|
var classes = useDishCheckoutCardStyles(props);
|
|
1661
1664
|
var appContext = useOrderingAppContext()[0];
|
|
@@ -1711,8 +1714,8 @@ var DishCheckoutCard = function (props) {
|
|
|
1711
1714
|
specialInstructions,
|
|
1712
1715
|
"\"")),
|
|
1713
1716
|
React__default['default'].createElement(core.Box, { display: "flex", gridGap: 1, height: "100%", alignItems: "center" },
|
|
1714
|
-
React__default['default'].createElement(Button, { disabled: disabled, className: classes.editButton, variant: "text", onClick: onEdit },
|
|
1715
|
-
React__default['default'].createElement(IconButton, { disabled: disabled, onClick: onDelete, classes: { root: classes.deleteButton } },
|
|
1717
|
+
React__default['default'].createElement(Button, { "aria-label": messages.ariaEdit, disabled: disabled, className: classes.editButton, variant: "text", onClick: onEdit }, messages.edit),
|
|
1718
|
+
React__default['default'].createElement(IconButton, { "aria-label": messages.ariaDelete, disabled: disabled, onClick: onDelete, classes: { root: classes.deleteButton } },
|
|
1716
1719
|
React__default['default'].createElement(Icon, { icon: SvgTrash, size: "large" })))),
|
|
1717
1720
|
React__default['default'].createElement(core.Box, { display: "flex", gridGap: 16, alignItems: "center" },
|
|
1718
1721
|
React__default['default'].createElement(core.FormControl, { variant: "outlined", hiddenLabel: true },
|