@popmenu/ordering-ui 0.73.0 → 0.74.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.
|
@@ -15,4 +15,6 @@ export interface DishCheckoutCardProps {
|
|
|
15
15
|
onDelete: () => void;
|
|
16
16
|
/** Callback that runs when the select value is changed. Expects two arguments, the id of the selected dish and the new value that is being changed from the dropdown. Callback should update the dish */
|
|
17
17
|
onChange: (id: number, value: number | string) => void;
|
|
18
|
+
/** Special instructions text */
|
|
19
|
+
specialInstructions?: string | undefined;
|
|
18
20
|
}
|
package/build/index.es.js
CHANGED
|
@@ -1470,7 +1470,7 @@ var useDishCheckoutCardStyles = makeStyles$1(function (theme) { return ({
|
|
|
1470
1470
|
padding: theme.spacing(2, 0),
|
|
1471
1471
|
display: 'flex',
|
|
1472
1472
|
flexDirection: 'column',
|
|
1473
|
-
|
|
1473
|
+
width: '100%',
|
|
1474
1474
|
gridGap: theme.spacing(2),
|
|
1475
1475
|
border: '1px',
|
|
1476
1476
|
},
|
|
@@ -1510,7 +1510,7 @@ var useDishCheckoutCardStyles = makeStyles$1(function (theme) { return ({
|
|
|
1510
1510
|
}); });
|
|
1511
1511
|
|
|
1512
1512
|
var DishCheckoutCard = function (props) {
|
|
1513
|
-
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price;
|
|
1513
|
+
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price, specialInstructions = props.specialInstructions;
|
|
1514
1514
|
var classes = useDishCheckoutCardStyles(props);
|
|
1515
1515
|
var _a = useState(false), open = _a[0], setOpen = _a[1];
|
|
1516
1516
|
return (React__default.createElement(Box, { className: classes.root },
|
|
@@ -1521,7 +1521,11 @@ var DishCheckoutCard = function (props) {
|
|
|
1521
1521
|
modifiers.map(function (modifier, i) { return (React__default.createElement(Typography, { key: i, variant: "body2" },
|
|
1522
1522
|
modifier[0],
|
|
1523
1523
|
": ",
|
|
1524
|
-
modifier[1])); })
|
|
1524
|
+
modifier[1])); }),
|
|
1525
|
+
specialInstructions && React__default.createElement(Typography, { variant: "body2" },
|
|
1526
|
+
"\"",
|
|
1527
|
+
specialInstructions,
|
|
1528
|
+
"\"")),
|
|
1525
1529
|
React__default.createElement(Box, { display: "flex", gridGap: 1, height: "100%" },
|
|
1526
1530
|
React__default.createElement(Button, { variant: "text", onClick: onEdit }, "Edit"),
|
|
1527
1531
|
React__default.createElement(IconButton, { onClick: onDelete },
|