@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
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const useMenuItemStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"cardActionArea" | "card" | "cardTitle" | "cardDescription">;
|
|
@@ -26,7 +26,7 @@ export interface MenuItemProps {
|
|
|
26
26
|
loading?: boolean;
|
|
27
27
|
/** Number of reviews */
|
|
28
28
|
reviewCount?: Maybe<number>;
|
|
29
|
-
/** Callback for when
|
|
29
|
+
/** Callback for when MenuItem is clicked */
|
|
30
30
|
onClick: (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
31
31
|
/** Whether or not the menu item is available for ordering */
|
|
32
32
|
available: boolean;
|
package/build/index.es.js
CHANGED
|
@@ -114,7 +114,7 @@ var Button = forwardRef(function (props, ref) {
|
|
|
114
114
|
});
|
|
115
115
|
Button.displayName = 'Button';
|
|
116
116
|
|
|
117
|
-
var
|
|
117
|
+
var useMenuItemStyles = makeStyles(function (theme) {
|
|
118
118
|
var _a, _b;
|
|
119
119
|
return ({
|
|
120
120
|
cardActionArea: (_a = {
|
|
@@ -1430,7 +1430,7 @@ StatusTag.displayName = 'StatusTag';
|
|
|
1430
1430
|
|
|
1431
1431
|
var MenuItem = forwardRef(function (props, ref) {
|
|
1432
1432
|
var onClick = props.onClick, id = props.id, description = props.description, isOutOfStock = props.isOutOfStock, title = props.title, loading = props.loading;
|
|
1433
|
-
var classes =
|
|
1433
|
+
var classes = useMenuItemStyles(props);
|
|
1434
1434
|
var handleClick = function (event) {
|
|
1435
1435
|
onClick(id, event);
|
|
1436
1436
|
};
|
|
@@ -1942,7 +1942,7 @@ function SvgRestaurantMenuIcon(props) {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
1944
|
var useMenuDropdownStyles = makeStyles(function (theme) {
|
|
1945
|
-
var _a;
|
|
1945
|
+
var _a, _b;
|
|
1946
1946
|
return ({
|
|
1947
1947
|
formControl: (_a = {},
|
|
1948
1948
|
_a[theme.breakpoints.up('lg')] = {
|
|
@@ -1955,11 +1955,17 @@ var useMenuDropdownStyles = makeStyles(function (theme) {
|
|
|
1955
1955
|
gridGap: theme.spacing(1),
|
|
1956
1956
|
},
|
|
1957
1957
|
select: {
|
|
1958
|
-
'& .MuiSelect-root': {
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1958
|
+
'& .MuiSelect-root': (_b = {
|
|
1959
|
+
color: '#212121',
|
|
1960
|
+
padding: theme.spacing(1, 0.5, 1, 0.5),
|
|
1961
|
+
zIndex: 10
|
|
1962
|
+
},
|
|
1963
|
+
_b[theme.breakpoints.down('md')] = {
|
|
1964
|
+
width: 0,
|
|
1965
|
+
minWidth: 0,
|
|
1966
|
+
padding: 0,
|
|
1967
|
+
},
|
|
1968
|
+
_b),
|
|
1963
1969
|
},
|
|
1964
1970
|
unavailable: {
|
|
1965
1971
|
color: theme.palette.grey[700],
|