@popmenu/ordering-ui 0.74.0 → 0.76.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/Button/Button.d.ts +1 -1
- package/build/components/Button/ButtonProps.d.ts +4 -5
- package/build/components/Button/index.d.ts +1 -1
- package/build/components/index.d.ts +2 -1
- package/build/index.d.ts +1 -0
- package/build/index.es.js +185 -150
- package/build/index.es.js.map +1 -1
- package/build/index.js +193 -150
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +1 -0
- package/build/theme/overrides.d.ts +2 -0
- package/build/theme/palette.d.ts +2 -0
- package/build/theme/props.d.ts +2 -0
- package/build/theme/theme.d.ts +2 -0
- package/build/theme/typography.d.ts +2 -0
- package/package.json +2 -2
- package/build/components/Button/Button.styles.d.ts +0 -6
- package/build/components/Button/util/deriveButtonProps.d.ts +0 -5
package/build/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var core = require('@material-ui/core');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
require('@material-ui/lab/Alert');
|
|
7
|
-
var core = require('@material-ui/core');
|
|
8
8
|
require('@material-ui/core/AppBar');
|
|
9
9
|
var MuiAvatar = require('@material-ui/core/Avatar');
|
|
10
10
|
var styles = require('@material-ui/core/styles');
|
|
@@ -132,6 +132,23 @@ function __rest$1(s, e) {
|
|
|
132
132
|
return t;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
var Button$1 = React.forwardRef(function (props, ref) {
|
|
136
|
+
var _a = props.variation, variation = _a === void 0 ? 'primary' : _a, muiProps = __rest$1(props, ["variation"]);
|
|
137
|
+
var variationProps = {};
|
|
138
|
+
switch (variation) {
|
|
139
|
+
case 'primary':
|
|
140
|
+
variationProps.variant = 'contained';
|
|
141
|
+
variationProps.color = 'primary';
|
|
142
|
+
break;
|
|
143
|
+
case 'secondary':
|
|
144
|
+
variationProps.variant = 'outlined';
|
|
145
|
+
variationProps.color = 'primary';
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
return React__default['default'].createElement(core.Button, __assign$1({}, variationProps, muiProps, { ref: ref }));
|
|
149
|
+
});
|
|
150
|
+
Button$1.displayName = 'Button';
|
|
151
|
+
|
|
135
152
|
/*! *****************************************************************************
|
|
136
153
|
Copyright (c) Microsoft Corporation.
|
|
137
154
|
|
|
@@ -170,7 +187,7 @@ function __rest(s, e) {
|
|
|
170
187
|
return t;
|
|
171
188
|
}
|
|
172
189
|
|
|
173
|
-
var _g$
|
|
190
|
+
var _g$1n;
|
|
174
191
|
|
|
175
192
|
function _extends$2r() { _extends$2r = 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$2r.apply(this, arguments); }
|
|
176
193
|
|
|
@@ -182,7 +199,7 @@ function SvgCheckCircle(props) {
|
|
|
182
199
|
strokeLinejoin: "round",
|
|
183
200
|
width: "1em",
|
|
184
201
|
height: "1em"
|
|
185
|
-
}, props), _g$
|
|
202
|
+
}, props), _g$1n || (_g$1n = /*#__PURE__*/React__namespace.createElement("g", {
|
|
186
203
|
stroke: "currentColor"
|
|
187
204
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
188
205
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
@@ -191,7 +208,7 @@ function SvgCheckCircle(props) {
|
|
|
191
208
|
}))));
|
|
192
209
|
}
|
|
193
210
|
|
|
194
|
-
var _g$
|
|
211
|
+
var _g$1l$1, _defs$J$1;
|
|
195
212
|
|
|
196
213
|
function _extends$2o$1() { _extends$2o$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$2o$1.apply(this, arguments); }
|
|
197
214
|
|
|
@@ -203,12 +220,12 @@ function SvgXCircle$1(props) {
|
|
|
203
220
|
strokeLinejoin: "round",
|
|
204
221
|
width: "1em",
|
|
205
222
|
height: "1em"
|
|
206
|
-
}, props), _g$
|
|
223
|
+
}, props), _g$1l$1 || (_g$1l$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
207
224
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
208
225
|
stroke: "currentColor"
|
|
209
226
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
210
227
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
211
|
-
}))), _defs$
|
|
228
|
+
}))), _defs$J$1 || (_defs$J$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
212
229
|
id: "x-circle_svg__clip0_8_6136"
|
|
213
230
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
214
231
|
fill: "currentColor",
|
|
@@ -216,7 +233,7 @@ function SvgXCircle$1(props) {
|
|
|
216
233
|
})))));
|
|
217
234
|
}
|
|
218
235
|
|
|
219
|
-
var _g$
|
|
236
|
+
var _g$1c, _defs$D;
|
|
220
237
|
|
|
221
238
|
function _extends$2c() { _extends$2c = 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$2c.apply(this, arguments); }
|
|
222
239
|
|
|
@@ -228,12 +245,12 @@ function SvgInfo(props) {
|
|
|
228
245
|
strokeLinejoin: "round",
|
|
229
246
|
width: "1em",
|
|
230
247
|
height: "1em"
|
|
231
|
-
}, props), _g$
|
|
248
|
+
}, props), _g$1c || (_g$1c = /*#__PURE__*/React__namespace.createElement("g", {
|
|
232
249
|
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
233
250
|
stroke: "currentColor"
|
|
234
251
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
235
252
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
236
|
-
}))), _defs$
|
|
253
|
+
}))), _defs$D || (_defs$D = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
237
254
|
id: "info_svg__clip0_8_5377"
|
|
238
255
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
239
256
|
fill: "currentColor",
|
|
@@ -241,7 +258,7 @@ function SvgInfo(props) {
|
|
|
241
258
|
})))));
|
|
242
259
|
}
|
|
243
260
|
|
|
244
|
-
var _path$
|
|
261
|
+
var _path$M;
|
|
245
262
|
|
|
246
263
|
function _extends$1L() { _extends$1L = 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$1L.apply(this, arguments); }
|
|
247
264
|
|
|
@@ -253,13 +270,13 @@ function SvgUser(props) {
|
|
|
253
270
|
strokeLinejoin: "round",
|
|
254
271
|
width: "1em",
|
|
255
272
|
height: "1em"
|
|
256
|
-
}, props), _path$
|
|
273
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
257
274
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
|
|
258
275
|
stroke: "currentColor"
|
|
259
276
|
})));
|
|
260
277
|
}
|
|
261
278
|
|
|
262
|
-
var _g$
|
|
279
|
+
var _g$Y, _defs$u;
|
|
263
280
|
|
|
264
281
|
function _extends$1H() { _extends$1H = 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$1H.apply(this, arguments); }
|
|
265
282
|
|
|
@@ -271,12 +288,12 @@ function SvgError(props) {
|
|
|
271
288
|
strokeLinejoin: "round",
|
|
272
289
|
width: "1em",
|
|
273
290
|
height: "1em"
|
|
274
|
-
}, props), _g$
|
|
291
|
+
}, props), _g$Y || (_g$Y = /*#__PURE__*/React__namespace.createElement("g", {
|
|
275
292
|
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
276
293
|
stroke: "currentColor"
|
|
277
294
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
278
295
|
d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
|
|
279
|
-
}))), _defs$
|
|
296
|
+
}))), _defs$u || (_defs$u = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
280
297
|
id: "error_svg__clip0_8_5411"
|
|
281
298
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
282
299
|
fill: "currentColor",
|
|
@@ -284,7 +301,7 @@ function SvgError(props) {
|
|
|
284
301
|
})))));
|
|
285
302
|
}
|
|
286
303
|
|
|
287
|
-
var _path$
|
|
304
|
+
var _path$J;
|
|
288
305
|
|
|
289
306
|
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); }
|
|
290
307
|
|
|
@@ -296,7 +313,7 @@ function SvgWarning(props) {
|
|
|
296
313
|
strokeLinejoin: "round",
|
|
297
314
|
width: "1em",
|
|
298
315
|
height: "1em"
|
|
299
|
-
}, props), _path$
|
|
316
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
300
317
|
d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
|
|
301
318
|
stroke: "currentColor"
|
|
302
319
|
})));
|
|
@@ -518,7 +535,7 @@ styles.makeStyles(function (theme) { return ({
|
|
|
518
535
|
},
|
|
519
536
|
}); });
|
|
520
537
|
|
|
521
|
-
var useButtonStyles
|
|
538
|
+
var useButtonStyles = styles.makeStyles(function () { return ({
|
|
522
539
|
root: {
|
|
523
540
|
minWidth: 'unset',
|
|
524
541
|
},
|
|
@@ -530,10 +547,10 @@ var useButtonStyles$1 = styles.makeStyles(function () { return ({
|
|
|
530
547
|
},
|
|
531
548
|
}); });
|
|
532
549
|
|
|
533
|
-
var Button
|
|
550
|
+
var Button = React.forwardRef(function (props, ref) {
|
|
534
551
|
props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, muiProps = __rest(props, ["textTransform", "loading", "classes", "className"]);
|
|
535
552
|
props.classes; var styleProps = __rest(props, ["classes"]);
|
|
536
|
-
var classes = useButtonStyles
|
|
553
|
+
var classes = useButtonStyles(styleProps);
|
|
537
554
|
var typography = styles.useTheme().typography;
|
|
538
555
|
var loadingIndicator = {
|
|
539
556
|
startIcon: React__default['default'].createElement(CircularProgress__default['default'], { color: "inherit", size: typography.button.fontSize }),
|
|
@@ -541,7 +558,7 @@ var Button$1 = React.forwardRef(function (props, ref) {
|
|
|
541
558
|
};
|
|
542
559
|
return (React__default['default'].createElement(MuiButton__default['default'], __assign({ ref: ref, classes: __assign(__assign({}, classes), classesOverride), className: classNames$1([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
|
|
543
560
|
});
|
|
544
|
-
Button
|
|
561
|
+
Button.displayName = 'Button';
|
|
545
562
|
|
|
546
563
|
var Checkbox = React.forwardRef(function (props, ref) {
|
|
547
564
|
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
|
|
@@ -550,7 +567,7 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
550
567
|
});
|
|
551
568
|
Checkbox.displayName = 'Checkbox';
|
|
552
569
|
|
|
553
|
-
var getBackground
|
|
570
|
+
var getBackground = function (theme) { return function (props) {
|
|
554
571
|
var variant = props.variant, severity = props.severity;
|
|
555
572
|
var background = theme.palette.grey[100];
|
|
556
573
|
var backgrounds = {
|
|
@@ -569,7 +586,7 @@ var getBackground$1 = function (theme) { return function (props) {
|
|
|
569
586
|
}
|
|
570
587
|
return background;
|
|
571
588
|
}; };
|
|
572
|
-
var getColor
|
|
589
|
+
var getColor = function (theme) { return function (props) {
|
|
573
590
|
var variant = props.variant, severity = props.severity;
|
|
574
591
|
var textColor;
|
|
575
592
|
if (variant === 'outlined' && severity) {
|
|
@@ -611,8 +628,8 @@ var getBorder = function (theme) { return function (props) {
|
|
|
611
628
|
}; };
|
|
612
629
|
var useChipStyles = styles.makeStyles(function (theme) { return ({
|
|
613
630
|
root: {
|
|
614
|
-
background: getBackground
|
|
615
|
-
color: getColor
|
|
631
|
+
background: getBackground(theme),
|
|
632
|
+
color: getColor(theme),
|
|
616
633
|
borderColor: getBorder(theme),
|
|
617
634
|
borderRadius: theme.spacing(0.5),
|
|
618
635
|
},
|
|
@@ -978,104 +995,7 @@ core.makeStyles(function (theme) { return ({
|
|
|
978
995
|
},
|
|
979
996
|
}); });
|
|
980
997
|
|
|
981
|
-
var
|
|
982
|
-
var variant = props.variant;
|
|
983
|
-
if (variant === 'primary') {
|
|
984
|
-
return theme.palette.common.white;
|
|
985
|
-
}
|
|
986
|
-
else if (variant === 'text') {
|
|
987
|
-
return theme.palette.info.main;
|
|
988
|
-
}
|
|
989
|
-
return theme.palette.common.black;
|
|
990
|
-
}; };
|
|
991
|
-
var getBackground = function (theme) { return function (props) {
|
|
992
|
-
var variant = props.variant;
|
|
993
|
-
if (variant === 'primary') {
|
|
994
|
-
return '#0A202F';
|
|
995
|
-
}
|
|
996
|
-
else {
|
|
997
|
-
return theme.palette.common.white;
|
|
998
|
-
}
|
|
999
|
-
}; };
|
|
1000
|
-
var getFontSize = function () { return function (props) {
|
|
1001
|
-
var variant = props.variant;
|
|
1002
|
-
if (variant === 'primary') {
|
|
1003
|
-
return '1rem';
|
|
1004
|
-
}
|
|
1005
|
-
else {
|
|
1006
|
-
return '0.875rem';
|
|
1007
|
-
}
|
|
1008
|
-
}; };
|
|
1009
|
-
var buttonTypography = {
|
|
1010
|
-
fontWeight: 400,
|
|
1011
|
-
lineHeight: '1.25rem',
|
|
1012
|
-
};
|
|
1013
|
-
var useButtonStyles = styles.makeStyles(function (theme) { return ({
|
|
1014
|
-
root: {
|
|
1015
|
-
borderRadius: theme.spacing(6),
|
|
1016
|
-
color: getColor(theme),
|
|
1017
|
-
background: getBackground(theme),
|
|
1018
|
-
fontSize: getFontSize(),
|
|
1019
|
-
textTransform: 'none',
|
|
1020
|
-
minWidth: 'unset',
|
|
1021
|
-
},
|
|
1022
|
-
disabled: {
|
|
1023
|
-
'&$root': {
|
|
1024
|
-
background: theme.palette.grey[300],
|
|
1025
|
-
},
|
|
1026
|
-
},
|
|
1027
|
-
contained: {
|
|
1028
|
-
padding: theme.spacing(2),
|
|
1029
|
-
'&:hover': {
|
|
1030
|
-
background: getBackground(theme),
|
|
1031
|
-
},
|
|
1032
|
-
},
|
|
1033
|
-
outlined: {
|
|
1034
|
-
padding: theme.spacing(2),
|
|
1035
|
-
},
|
|
1036
|
-
sizeSmall: {
|
|
1037
|
-
padding: theme.spacing(1, 2),
|
|
1038
|
-
},
|
|
1039
|
-
text: {
|
|
1040
|
-
padding: theme.spacing(1),
|
|
1041
|
-
margin: 'auto',
|
|
1042
|
-
},
|
|
1043
|
-
label: __assign$1({}, buttonTypography),
|
|
1044
|
-
}); });
|
|
1045
|
-
|
|
1046
|
-
var deriveButtonProps = function (buttonProps) {
|
|
1047
|
-
var variant = buttonProps.variant;
|
|
1048
|
-
var derived = {};
|
|
1049
|
-
switch (variant) {
|
|
1050
|
-
case 'primary':
|
|
1051
|
-
derived.variant = 'contained';
|
|
1052
|
-
break;
|
|
1053
|
-
case 'secondary':
|
|
1054
|
-
derived.variant = 'outlined';
|
|
1055
|
-
break;
|
|
1056
|
-
case 'text':
|
|
1057
|
-
derived.variant = 'text';
|
|
1058
|
-
break;
|
|
1059
|
-
default:
|
|
1060
|
-
derived.variant = variant;
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
return derived;
|
|
1064
|
-
};
|
|
1065
|
-
|
|
1066
|
-
var Button = React.forwardRef(function (props, ref) {
|
|
1067
|
-
var children = props.children; props.variant; var classesOverride = props.classes, commonProps = __rest$1(props, ["children", "variant", "classes"]);
|
|
1068
|
-
var classes = useButtonStyles(props);
|
|
1069
|
-
var derivedProps = deriveButtonProps(props);
|
|
1070
|
-
var mergedProps = __assign$1(__assign$1({}, derivedProps), commonProps);
|
|
1071
|
-
return (React__default['default'].createElement(Button$1, __assign$1({ ref: ref, classes: __assign$1(__assign$1({}, classes), classesOverride), disableElevation: true }, mergedProps), children));
|
|
1072
|
-
});
|
|
1073
|
-
Button.defaultProps = {
|
|
1074
|
-
variant: 'primary',
|
|
1075
|
-
};
|
|
1076
|
-
Button.displayName = 'Button';
|
|
1077
|
-
|
|
1078
|
-
var _path$1g;
|
|
998
|
+
var _path$1f;
|
|
1079
999
|
|
|
1080
1000
|
function _extends$2M() { _extends$2M = 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$2M.apply(this, arguments); }
|
|
1081
1001
|
|
|
@@ -1087,13 +1007,13 @@ function SvgChevronDown(props) {
|
|
|
1087
1007
|
strokeLinejoin: "round",
|
|
1088
1008
|
width: "1em",
|
|
1089
1009
|
height: "1em"
|
|
1090
|
-
}, props), _path$
|
|
1010
|
+
}, props), _path$1f || (_path$1f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1091
1011
|
d: "M4 6l4 4 4-4",
|
|
1092
1012
|
stroke: "currentColor"
|
|
1093
1013
|
})));
|
|
1094
1014
|
}
|
|
1095
1015
|
|
|
1096
|
-
var _path$
|
|
1016
|
+
var _path$1e;
|
|
1097
1017
|
|
|
1098
1018
|
function _extends$2L() { _extends$2L = 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$2L.apply(this, arguments); }
|
|
1099
1019
|
|
|
@@ -1105,13 +1025,13 @@ function SvgChevronUp(props) {
|
|
|
1105
1025
|
strokeLinejoin: "round",
|
|
1106
1026
|
width: "1em",
|
|
1107
1027
|
height: "1em"
|
|
1108
|
-
}, props), _path$
|
|
1028
|
+
}, props), _path$1e || (_path$1e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1109
1029
|
d: "M12 10L8 6l-4 4",
|
|
1110
1030
|
stroke: "currentColor"
|
|
1111
1031
|
})));
|
|
1112
1032
|
}
|
|
1113
1033
|
|
|
1114
|
-
var _path$
|
|
1034
|
+
var _path$13;
|
|
1115
1035
|
|
|
1116
1036
|
function _extends$2s() { _extends$2s = 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$2s.apply(this, arguments); }
|
|
1117
1037
|
|
|
@@ -1123,13 +1043,13 @@ function SvgCheck(props) {
|
|
|
1123
1043
|
strokeLinejoin: "round",
|
|
1124
1044
|
width: "1em",
|
|
1125
1045
|
height: "1em"
|
|
1126
|
-
}, props), _path$
|
|
1046
|
+
}, props), _path$13 || (_path$13 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1127
1047
|
d: "M13.333 4L6 11.333 2.667 8",
|
|
1128
1048
|
stroke: "currentColor"
|
|
1129
1049
|
})));
|
|
1130
1050
|
}
|
|
1131
1051
|
|
|
1132
|
-
var _g$
|
|
1052
|
+
var _g$1m, _defs$K;
|
|
1133
1053
|
|
|
1134
1054
|
function _extends$2q() { _extends$2q = 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$2q.apply(this, arguments); }
|
|
1135
1055
|
|
|
@@ -1141,14 +1061,14 @@ function SvgClock(props) {
|
|
|
1141
1061
|
strokeLinejoin: "round",
|
|
1142
1062
|
width: "1em",
|
|
1143
1063
|
height: "1em"
|
|
1144
|
-
}, props), _g$
|
|
1064
|
+
}, props), _g$1m || (_g$1m = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1145
1065
|
clipPath: "url(#clock_svg__clip0_8_5092)",
|
|
1146
1066
|
stroke: "currentColor"
|
|
1147
1067
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1148
1068
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
1149
1069
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1150
1070
|
d: "M8 4v4l2.667 1.333"
|
|
1151
|
-
}))), _defs$
|
|
1071
|
+
}))), _defs$K || (_defs$K = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1152
1072
|
id: "clock_svg__clip0_8_5092"
|
|
1153
1073
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1154
1074
|
fill: "currentColor",
|
|
@@ -1156,7 +1076,7 @@ function SvgClock(props) {
|
|
|
1156
1076
|
})))));
|
|
1157
1077
|
}
|
|
1158
1078
|
|
|
1159
|
-
var _g$
|
|
1079
|
+
var _g$1l, _defs$J;
|
|
1160
1080
|
|
|
1161
1081
|
function _extends$2o() { _extends$2o = 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$2o.apply(this, arguments); }
|
|
1162
1082
|
|
|
@@ -1168,12 +1088,12 @@ function SvgXCircle(props) {
|
|
|
1168
1088
|
strokeLinejoin: "round",
|
|
1169
1089
|
width: "1em",
|
|
1170
1090
|
height: "1em"
|
|
1171
|
-
}, props), _g$
|
|
1091
|
+
}, props), _g$1l || (_g$1l = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1172
1092
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
1173
1093
|
stroke: "currentColor"
|
|
1174
1094
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1175
1095
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
1176
|
-
}))), _defs$
|
|
1096
|
+
}))), _defs$J || (_defs$J = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1177
1097
|
id: "x-circle_svg__clip0_8_6136"
|
|
1178
1098
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1179
1099
|
fill: "currentColor",
|
|
@@ -1181,7 +1101,7 @@ function SvgXCircle(props) {
|
|
|
1181
1101
|
})))));
|
|
1182
1102
|
}
|
|
1183
1103
|
|
|
1184
|
-
var _path
|
|
1104
|
+
var _path$$;
|
|
1185
1105
|
|
|
1186
1106
|
function _extends$2g() { _extends$2g = 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$2g.apply(this, arguments); }
|
|
1187
1107
|
|
|
@@ -1193,13 +1113,13 @@ function SvgHeart(props) {
|
|
|
1193
1113
|
strokeLinejoin: "round",
|
|
1194
1114
|
width: "1em",
|
|
1195
1115
|
height: "1em"
|
|
1196
|
-
}, props), _path
|
|
1116
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1197
1117
|
d: "M13.893 3.074a3.667 3.667 0 00-5.186 0L8 3.78l-.707-.706A3.668 3.668 0 002.107 8.26l.706.707L8 14.154l5.187-5.187.706-.707a3.667 3.667 0 000-5.186v0z",
|
|
1198
1118
|
stroke: "currentColor"
|
|
1199
1119
|
})));
|
|
1200
1120
|
}
|
|
1201
1121
|
|
|
1202
|
-
var _g$
|
|
1122
|
+
var _g$18, _defs$C;
|
|
1203
1123
|
|
|
1204
1124
|
function _extends$22() { _extends$22 = 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$22.apply(this, arguments); }
|
|
1205
1125
|
|
|
@@ -1211,12 +1131,12 @@ function SvgMinusCircle(props) {
|
|
|
1211
1131
|
strokeLinejoin: "round",
|
|
1212
1132
|
width: "1em",
|
|
1213
1133
|
height: "1em"
|
|
1214
|
-
}, props), _g$
|
|
1134
|
+
}, props), _g$18 || (_g$18 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1215
1135
|
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
1216
1136
|
stroke: "currentColor"
|
|
1217
1137
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1218
1138
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
1219
|
-
}))), _defs$
|
|
1139
|
+
}))), _defs$C || (_defs$C = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1220
1140
|
id: "minus-circle_svg__clip0_8_5970"
|
|
1221
1141
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1222
1142
|
fill: "currentColor",
|
|
@@ -1224,7 +1144,7 @@ function SvgMinusCircle(props) {
|
|
|
1224
1144
|
})))));
|
|
1225
1145
|
}
|
|
1226
1146
|
|
|
1227
|
-
var _path$
|
|
1147
|
+
var _path$R;
|
|
1228
1148
|
|
|
1229
1149
|
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); }
|
|
1230
1150
|
|
|
@@ -1236,13 +1156,13 @@ function SvgPlus(props) {
|
|
|
1236
1156
|
strokeLinejoin: "round",
|
|
1237
1157
|
width: "1em",
|
|
1238
1158
|
height: "1em"
|
|
1239
|
-
}, props), _path$
|
|
1159
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1240
1160
|
d: "M8 3.333v9.334M3.333 8h9.334",
|
|
1241
1161
|
stroke: "currentColor"
|
|
1242
1162
|
})));
|
|
1243
1163
|
}
|
|
1244
1164
|
|
|
1245
|
-
var _g$
|
|
1165
|
+
var _g$17, _defs$B;
|
|
1246
1166
|
|
|
1247
1167
|
function _extends$1Z() { _extends$1Z = 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$1Z.apply(this, arguments); }
|
|
1248
1168
|
|
|
@@ -1254,12 +1174,12 @@ function SvgPlusCircle(props) {
|
|
|
1254
1174
|
strokeLinejoin: "round",
|
|
1255
1175
|
width: "1em",
|
|
1256
1176
|
height: "1em"
|
|
1257
|
-
}, props), _g$
|
|
1177
|
+
}, props), _g$17 || (_g$17 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1258
1178
|
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
1259
1179
|
stroke: "currentColor"
|
|
1260
1180
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1261
1181
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
|
|
1262
|
-
}))), _defs$
|
|
1182
|
+
}))), _defs$B || (_defs$B = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1263
1183
|
id: "plus-circle_svg__clip0_8_5870"
|
|
1264
1184
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1265
1185
|
fill: "currentColor",
|
|
@@ -1267,7 +1187,7 @@ function SvgPlusCircle(props) {
|
|
|
1267
1187
|
})))));
|
|
1268
1188
|
}
|
|
1269
1189
|
|
|
1270
|
-
var _path$
|
|
1190
|
+
var _path$N;
|
|
1271
1191
|
|
|
1272
1192
|
function _extends$1R() { _extends$1R = 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$1R.apply(this, arguments); }
|
|
1273
1193
|
|
|
@@ -1279,13 +1199,13 @@ function SvgTag(props) {
|
|
|
1279
1199
|
strokeLinejoin: "round",
|
|
1280
1200
|
width: "1em",
|
|
1281
1201
|
height: "1em"
|
|
1282
|
-
}, props), _path$
|
|
1202
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1283
1203
|
d: "M13.727 8.94l-4.78 4.78a1.334 1.334 0 01-1.887 0L1.333 8V1.333H8l5.727 5.727a1.333 1.333 0 010 1.88v0zm-9.06-4.273h.007",
|
|
1284
1204
|
stroke: "currentColor"
|
|
1285
1205
|
})));
|
|
1286
1206
|
}
|
|
1287
1207
|
|
|
1288
|
-
var _path$
|
|
1208
|
+
var _path$y;
|
|
1289
1209
|
|
|
1290
1210
|
function _extends$1m() { _extends$1m = 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$1m.apply(this, arguments); }
|
|
1291
1211
|
|
|
@@ -1297,7 +1217,7 @@ function SvgTrash(props) {
|
|
|
1297
1217
|
strokeLinejoin: "round",
|
|
1298
1218
|
width: "1em",
|
|
1299
1219
|
height: "1em"
|
|
1300
|
-
}, props), _path$
|
|
1220
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1301
1221
|
d: "M2 4h12M5.333 4V2.667a1.333 1.333 0 011.334-1.333h2.666a1.333 1.333 0 011.334 1.333V4m2 0v9.334a1.333 1.333 0 01-1.334 1.333H4.667a1.333 1.333 0 01-1.334-1.333V4h9.334zm-6 3.333v4m2.666-4v4",
|
|
1302
1222
|
stroke: "currentColor"
|
|
1303
1223
|
})));
|
|
@@ -1573,7 +1493,7 @@ var DishCheckoutCard = function (props) {
|
|
|
1573
1493
|
specialInstructions,
|
|
1574
1494
|
"\"")),
|
|
1575
1495
|
React__default['default'].createElement(core.Box, { display: "flex", gridGap: 1, height: "100%" },
|
|
1576
|
-
React__default['default'].createElement(Button, { variant: "text", onClick: onEdit }, "Edit"),
|
|
1496
|
+
React__default['default'].createElement(Button$1, { variant: "text", onClick: onEdit }, "Edit"),
|
|
1577
1497
|
React__default['default'].createElement(IconButton, { onClick: onDelete },
|
|
1578
1498
|
React__default['default'].createElement(Icon, { icon: SvgTrash, className: classes.deleteIcon })))),
|
|
1579
1499
|
React__default['default'].createElement(core.Box, { display: "flex", gridGap: 16, alignItems: "center" },
|
|
@@ -1785,7 +1705,7 @@ DishModifierCard.displayName = 'DishModifierCard';
|
|
|
1785
1705
|
var useLocationCardStyles = styles.makeStyles(function (theme) {
|
|
1786
1706
|
var _a = theme.palette, info = _a.info, grey = _a.grey, secondary = _a.secondary, spacing = theme.spacing;
|
|
1787
1707
|
var selectedBackgroundColor = styles.lighten(theme.palette.info.light, 0.9);
|
|
1788
|
-
var backgroundColor = theme.palette.
|
|
1708
|
+
var backgroundColor = theme.palette.background.default;
|
|
1789
1709
|
return {
|
|
1790
1710
|
root: {
|
|
1791
1711
|
background: '#FFF',
|
|
@@ -2120,7 +2040,121 @@ var SelectableChipGroup = function (props) {
|
|
|
2120
2040
|
React__default['default'].createElement(core.Box, { minWidth: "1px" })));
|
|
2121
2041
|
};
|
|
2122
2042
|
|
|
2123
|
-
|
|
2043
|
+
var palette = {
|
|
2044
|
+
primary: {
|
|
2045
|
+
light: '#7B7FA3',
|
|
2046
|
+
main: '#2E3042',
|
|
2047
|
+
dark: '#1A1D20',
|
|
2048
|
+
},
|
|
2049
|
+
secondary: {
|
|
2050
|
+
light: '#DA777E',
|
|
2051
|
+
main: '#F04649',
|
|
2052
|
+
dark: '#B3212B',
|
|
2053
|
+
},
|
|
2054
|
+
info: {
|
|
2055
|
+
light: '#52B7FF',
|
|
2056
|
+
main: '#0076CB',
|
|
2057
|
+
dark: '#164B54',
|
|
2058
|
+
},
|
|
2059
|
+
success: {
|
|
2060
|
+
light: '#48D3AB',
|
|
2061
|
+
main: '#00B485',
|
|
2062
|
+
dark: '#00663E',
|
|
2063
|
+
contrastText: '#FFFFFF',
|
|
2064
|
+
},
|
|
2065
|
+
error: {
|
|
2066
|
+
light: '#DA777E',
|
|
2067
|
+
main: '#E52021',
|
|
2068
|
+
dark: '#A80005',
|
|
2069
|
+
},
|
|
2070
|
+
warning: {
|
|
2071
|
+
light: '#F0DFBA',
|
|
2072
|
+
main: '#F5C364',
|
|
2073
|
+
dark: '#E57E45',
|
|
2074
|
+
},
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
var overrides = {
|
|
2078
|
+
MuiButton: {
|
|
2079
|
+
root: {
|
|
2080
|
+
borderRadius: 32,
|
|
2081
|
+
textTransform: 'none',
|
|
2082
|
+
},
|
|
2083
|
+
},
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
var props = {
|
|
2087
|
+
MuiButton: {
|
|
2088
|
+
disableElevation: true,
|
|
2089
|
+
},
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
var fonts = ['"Poppins"', '"sans-serif"'];
|
|
2093
|
+
var typography = {
|
|
2094
|
+
htmlFontSize: 16,
|
|
2095
|
+
fontFamily: fonts.join(', '),
|
|
2096
|
+
h1: {
|
|
2097
|
+
fontWeight: 400,
|
|
2098
|
+
fontSize: '6rem',
|
|
2099
|
+
lineHeight: '9rem',
|
|
2100
|
+
},
|
|
2101
|
+
h2: {
|
|
2102
|
+
fontWeight: 400,
|
|
2103
|
+
fontSize: '3.75rem',
|
|
2104
|
+
lineHeight: '5.625rem',
|
|
2105
|
+
},
|
|
2106
|
+
h3: {
|
|
2107
|
+
fontWeight: 400,
|
|
2108
|
+
fontSize: '3rem',
|
|
2109
|
+
lineHeight: '4.5rem',
|
|
2110
|
+
},
|
|
2111
|
+
h4: {
|
|
2112
|
+
fontWeight: 400,
|
|
2113
|
+
fontSize: '2.125rem',
|
|
2114
|
+
lineHeight: '3.25rem',
|
|
2115
|
+
},
|
|
2116
|
+
h5: {
|
|
2117
|
+
fontWeight: 500,
|
|
2118
|
+
fontSize: '1.5rem',
|
|
2119
|
+
lineHeight: '2.25rem',
|
|
2120
|
+
},
|
|
2121
|
+
h6: {
|
|
2122
|
+
fontWeight: 500,
|
|
2123
|
+
fontSize: '1.25rem',
|
|
2124
|
+
lineHeight: '1.875rem',
|
|
2125
|
+
},
|
|
2126
|
+
body1: {
|
|
2127
|
+
fontWeight: 400,
|
|
2128
|
+
fontSize: '1rem',
|
|
2129
|
+
lineHeight: '1.5rem',
|
|
2130
|
+
},
|
|
2131
|
+
body2: {
|
|
2132
|
+
fontWeight: 400,
|
|
2133
|
+
fontSize: '0.875rem',
|
|
2134
|
+
lineHeight: '1.25rem',
|
|
2135
|
+
},
|
|
2136
|
+
subtitle1: {
|
|
2137
|
+
fontWeight: 400,
|
|
2138
|
+
fontSize: '0.75rem',
|
|
2139
|
+
lineHeight: '1.125rem',
|
|
2140
|
+
color: '#9E9E9E',
|
|
2141
|
+
},
|
|
2142
|
+
button: {
|
|
2143
|
+
fontWeight: 500,
|
|
2144
|
+
fontSize: '0.875rem',
|
|
2145
|
+
lineHeight: '1.25rem',
|
|
2146
|
+
textTransform: 'capitalize',
|
|
2147
|
+
},
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
var orderingTheme = {
|
|
2151
|
+
typography: typography,
|
|
2152
|
+
palette: palette,
|
|
2153
|
+
overrides: overrides,
|
|
2154
|
+
props: props,
|
|
2155
|
+
};
|
|
2156
|
+
|
|
2157
|
+
exports.Button = Button$1;
|
|
2124
2158
|
exports.DishCard = DishCard;
|
|
2125
2159
|
exports.DishCheckoutCard = DishCheckoutCard;
|
|
2126
2160
|
exports.DishDetailsReview = DishDetailsReview;
|
|
@@ -2136,4 +2170,13 @@ exports.ReactionCounterGroup = ReactionCounterGroup;
|
|
|
2136
2170
|
exports.SelectableChip = SelectableChip;
|
|
2137
2171
|
exports.SelectableChipGroup = SelectableChipGroup;
|
|
2138
2172
|
exports.StatusTag = StatusTag;
|
|
2173
|
+
exports.orderingTheme = orderingTheme;
|
|
2174
|
+
Object.keys(core).forEach(function (k) {
|
|
2175
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
2176
|
+
enumerable: true,
|
|
2177
|
+
get: function () {
|
|
2178
|
+
return core[k];
|
|
2179
|
+
}
|
|
2180
|
+
});
|
|
2181
|
+
});
|
|
2139
2182
|
//# sourceMappingURL=index.js.map
|