@popmenu/ordering-ui 0.94.0 → 0.96.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/components/MenuItem/MenuItem.styles.d.ts +1 -1
- package/build/components/MenuItem/MenuItemProps.d.ts +1 -1
- package/build/index.es.js +14 -8
- package/build/index.es.js.map +1 -1
- package/build/index.js +14 -8
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/build/components/DishCard/DishCard.d.ts +0 -3
- package/build/components/DishCard/DishCard.styles.d.ts +0 -2
- package/build/components/DishCard/DishCardProps.d.ts +0 -29
- package/build/components/DishCard/index.d.ts +0 -2
package/build/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var Button = React.forwardRef(function (props, ref) {
|
|
|
154
154
|
});
|
|
155
155
|
Button.displayName = 'Button';
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var useMenuItemStyles = styles.makeStyles(function (theme) {
|
|
158
158
|
var _a, _b;
|
|
159
159
|
return ({
|
|
160
160
|
cardActionArea: (_a = {
|
|
@@ -1470,7 +1470,7 @@ StatusTag.displayName = 'StatusTag';
|
|
|
1470
1470
|
|
|
1471
1471
|
var MenuItem = React.forwardRef(function (props, ref) {
|
|
1472
1472
|
var onClick = props.onClick, id = props.id, description = props.description, isOutOfStock = props.isOutOfStock, title = props.title, loading = props.loading;
|
|
1473
|
-
var classes =
|
|
1473
|
+
var classes = useMenuItemStyles(props);
|
|
1474
1474
|
var handleClick = function (event) {
|
|
1475
1475
|
onClick(id, event);
|
|
1476
1476
|
};
|
|
@@ -1982,7 +1982,7 @@ function SvgRestaurantMenuIcon(props) {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
|
|
1984
1984
|
var useMenuDropdownStyles = styles.makeStyles(function (theme) {
|
|
1985
|
-
var _a;
|
|
1985
|
+
var _a, _b;
|
|
1986
1986
|
return ({
|
|
1987
1987
|
formControl: (_a = {},
|
|
1988
1988
|
_a[theme.breakpoints.up('lg')] = {
|
|
@@ -1995,11 +1995,17 @@ var useMenuDropdownStyles = styles.makeStyles(function (theme) {
|
|
|
1995
1995
|
gridGap: theme.spacing(1),
|
|
1996
1996
|
},
|
|
1997
1997
|
select: {
|
|
1998
|
-
'& .MuiSelect-root': {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
1998
|
+
'& .MuiSelect-root': (_b = {
|
|
1999
|
+
color: '#212121',
|
|
2000
|
+
padding: theme.spacing(1, 0.5, 1, 0.5),
|
|
2001
|
+
zIndex: 10
|
|
2002
|
+
},
|
|
2003
|
+
_b[theme.breakpoints.down('md')] = {
|
|
2004
|
+
width: 0,
|
|
2005
|
+
minWidth: 0,
|
|
2006
|
+
padding: 0,
|
|
2007
|
+
},
|
|
2008
|
+
_b),
|
|
2003
2009
|
},
|
|
2004
2010
|
unavailable: {
|
|
2005
2011
|
color: theme.palette.grey[700],
|