@popmenu/ordering-ui 0.96.0 → 0.97.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.es.js +26 -34
- package/build/index.es.js.map +1 -1
- package/build/index.js +25 -33
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as Button$1, makeStyles as makeStyles$1, Box, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Avatar as Avatar$1, Card, CardActionArea, FormControl, Select, InputAdornment, MenuItem as MenuItem$1, TextField, RadioGroup, FormControlLabel as FormControlLabel$1, Radio as Radio$2, FormGroup, Checkbox as Checkbox$2, Menu, Tabs, Chip, DialogTitle as DialogTitle$1, IconButton as IconButton$1, withStyles, Switch as Switch$2 } from '@material-ui/core';
|
|
1
|
+
import { Button as Button$1, makeStyles as makeStyles$1, Box, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Avatar as Avatar$1, Card, CardActionArea, FormControl, Select, InputAdornment, MenuItem as MenuItem$1, TextField, RadioGroup, FormControlLabel as FormControlLabel$1, Radio as Radio$2, FormGroup, Checkbox as Checkbox$2, useMediaQuery, Menu, Tabs, Chip, DialogTitle as DialogTitle$1, IconButton as IconButton$1, withStyles, Switch as Switch$2 } from '@material-ui/core';
|
|
2
2
|
export * from '@material-ui/core';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { forwardRef, createContext, createElement, useContext, useState } from 'react';
|
|
@@ -160,6 +160,7 @@ var useMenuItemStyles = makeStyles(function (theme) {
|
|
|
160
160
|
fontWeight: 400,
|
|
161
161
|
fontSize: 14,
|
|
162
162
|
lineHeight: '20px',
|
|
163
|
+
marginBottom: theme.spacing(1),
|
|
163
164
|
color: theme.palette.grey[700],
|
|
164
165
|
'-webkit-line-clamp': 2,
|
|
165
166
|
display: '-webkit-box',
|
|
@@ -476,6 +477,25 @@ function SvgTrash(props) {
|
|
|
476
477
|
})));
|
|
477
478
|
}
|
|
478
479
|
|
|
480
|
+
var _g$11;
|
|
481
|
+
|
|
482
|
+
function _extends$1G() { _extends$1G = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1G.apply(this, arguments); }
|
|
483
|
+
|
|
484
|
+
function SvgRestaurantMenu(props) {
|
|
485
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1G({
|
|
486
|
+
viewBox: "0 0 16 16",
|
|
487
|
+
fill: "none",
|
|
488
|
+
strokeLinecap: "round",
|
|
489
|
+
strokeLinejoin: "round",
|
|
490
|
+
width: "1em",
|
|
491
|
+
height: "1em"
|
|
492
|
+
}, props), _g$11 || (_g$11 = /*#__PURE__*/React.createElement("g", {
|
|
493
|
+
stroke: "currentColor"
|
|
494
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
495
|
+
d: "M11.334.667l-8 2.666h8V.667zM3.333 3.333h9.333v11.333H3.333zM5.333 8h5.334m-5.334 2.333h1m2 0h2.334"
|
|
496
|
+
}))));
|
|
497
|
+
}
|
|
498
|
+
|
|
479
499
|
var _path$h, _path2$3;
|
|
480
500
|
|
|
481
501
|
function _extends$C() { _extends$C = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
@@ -1909,38 +1929,6 @@ var LocationCard = function (props) {
|
|
|
1909
1929
|
React__default.createElement(Typography, { variant: "body2" }, availability)))))));
|
|
1910
1930
|
};
|
|
1911
1931
|
|
|
1912
|
-
var _g, _defs;
|
|
1913
|
-
|
|
1914
|
-
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
1915
|
-
|
|
1916
|
-
function SvgRestaurantMenuIcon(props) {
|
|
1917
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
1918
|
-
width: 20,
|
|
1919
|
-
height: 21,
|
|
1920
|
-
fill: "none",
|
|
1921
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1922
|
-
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
1923
|
-
clipPath: "url(#restaurant-menu-icon_svg__clip0_3133_12817)",
|
|
1924
|
-
stroke: "#2E3042",
|
|
1925
|
-
strokeWidth: 1.667,
|
|
1926
|
-
strokeLinejoin: "round"
|
|
1927
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
1928
|
-
d: "M14.167 1.623l-10 3.333h10V1.623z",
|
|
1929
|
-
strokeLinecap: "round"
|
|
1930
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
1931
|
-
d: "M4.167 4.957h11.667v14.167H4.167z"
|
|
1932
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
1933
|
-
d: "M6.667 10.79h6.667m-6.667 2.916h1.25m2.5 0h2.917",
|
|
1934
|
-
strokeLinecap: "round"
|
|
1935
|
-
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
1936
|
-
id: "restaurant-menu-icon_svg__clip0_3133_12817"
|
|
1937
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
1938
|
-
fill: "#fff",
|
|
1939
|
-
transform: "translate(0 .79)",
|
|
1940
|
-
d: "M0 0h20v20H0z"
|
|
1941
|
-
})))));
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
1932
|
var useMenuDropdownStyles = makeStyles(function (theme) {
|
|
1945
1933
|
var _a, _b;
|
|
1946
1934
|
return ({
|
|
@@ -1977,9 +1965,13 @@ var MenuDropdown = function (props) {
|
|
|
1977
1965
|
var menuOptions = props.menuOptions, onSelect = props.onSelect, selectedOptionId = props.selectedOptionId;
|
|
1978
1966
|
var classes = useMenuDropdownStyles(props);
|
|
1979
1967
|
var _a = useState(false), open = _a[0], setOpen = _a[1];
|
|
1968
|
+
var isMobile = useMediaQuery(function (_a) {
|
|
1969
|
+
var breakpoints = _a.breakpoints;
|
|
1970
|
+
return breakpoints.down('md');
|
|
1971
|
+
});
|
|
1980
1972
|
return (React__default.createElement(FormControl, { hiddenLabel: true, classes: { root: classes.formControl } },
|
|
1981
1973
|
React__default.createElement(Select, { open: open, value: selectedOptionId, labelId: "menu-dropdown-select", onClick: function () { return setOpen(!open); }, disableUnderline: true, onChange: function (event) { return onSelect(event.target.value); }, fullWidth: true, startAdornment: React__default.createElement(InputAdornment, { position: "start" },
|
|
1982
|
-
React__default.createElement(Icon, { icon:
|
|
1974
|
+
React__default.createElement(Icon, { icon: SvgRestaurantMenu, size: isMobile ? 'extra-large' : 'large' })), IconComponent: function () { return (React__default.createElement(InputAdornment, { position: "end" },
|
|
1983
1975
|
React__default.createElement(Icon, { color: "#0076CB", icon: open ? SvgChevronUp : SvgChevronDown, size: "large" }))); }, MenuProps: {
|
|
1984
1976
|
disablePortal: true,
|
|
1985
1977
|
anchorOrigin: {
|