@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/index.es.js CHANGED
@@ -1,7 +1,8 @@
1
+ import { Button as Button$2, makeStyles, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Box, Avatar as Avatar$1, useTheme as useTheme$1, FormControl, Select, InputAdornment, MenuItem, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Radio as Radio$1, Menu, TextField } from '@material-ui/core';
2
+ export * from '@material-ui/core';
1
3
  import * as React from 'react';
2
4
  import React__default, { forwardRef, createElement, useState } from 'react';
3
5
  import '@material-ui/lab/Alert';
4
- import { makeStyles, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Box, Avatar as Avatar$1, useTheme as useTheme$1, FormControl, Select, InputAdornment, MenuItem, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Radio as Radio$1, Button as Button$2, Menu, TextField } from '@material-ui/core';
5
6
  import '@material-ui/core/AppBar';
6
7
  import MuiAvatar from '@material-ui/core/Avatar';
7
8
  import { makeStyles as makeStyles$1, useTheme, lighten } from '@material-ui/core/styles';
@@ -86,6 +87,23 @@ function __rest$1(s, e) {
86
87
  return t;
87
88
  }
88
89
 
90
+ var Button$1 = forwardRef(function (props, ref) {
91
+ var _a = props.variation, variation = _a === void 0 ? 'primary' : _a, muiProps = __rest$1(props, ["variation"]);
92
+ var variationProps = {};
93
+ switch (variation) {
94
+ case 'primary':
95
+ variationProps.variant = 'contained';
96
+ variationProps.color = 'primary';
97
+ break;
98
+ case 'secondary':
99
+ variationProps.variant = 'outlined';
100
+ variationProps.color = 'primary';
101
+ break;
102
+ }
103
+ return React__default.createElement(Button$2, __assign$1({}, variationProps, muiProps, { ref: ref }));
104
+ });
105
+ Button$1.displayName = 'Button';
106
+
89
107
  /*! *****************************************************************************
90
108
  Copyright (c) Microsoft Corporation.
91
109
 
@@ -124,7 +142,7 @@ function __rest(s, e) {
124
142
  return t;
125
143
  }
126
144
 
127
- var _g$1m;
145
+ var _g$1n;
128
146
 
129
147
  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); }
130
148
 
@@ -136,7 +154,7 @@ function SvgCheckCircle(props) {
136
154
  strokeLinejoin: "round",
137
155
  width: "1em",
138
156
  height: "1em"
139
- }, props), _g$1m || (_g$1m = /*#__PURE__*/React.createElement("g", {
157
+ }, props), _g$1n || (_g$1n = /*#__PURE__*/React.createElement("g", {
140
158
  stroke: "currentColor"
141
159
  }, /*#__PURE__*/React.createElement("path", {
142
160
  d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
@@ -145,7 +163,7 @@ function SvgCheckCircle(props) {
145
163
  }))));
146
164
  }
147
165
 
148
- var _g$1k$1, _defs$I$1;
166
+ var _g$1l$1, _defs$J$1;
149
167
 
150
168
  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); }
151
169
 
@@ -157,12 +175,12 @@ function SvgXCircle$1(props) {
157
175
  strokeLinejoin: "round",
158
176
  width: "1em",
159
177
  height: "1em"
160
- }, props), _g$1k$1 || (_g$1k$1 = /*#__PURE__*/React.createElement("g", {
178
+ }, props), _g$1l$1 || (_g$1l$1 = /*#__PURE__*/React.createElement("g", {
161
179
  clipPath: "url(#x-circle_svg__clip0_8_6136)",
162
180
  stroke: "currentColor"
163
181
  }, /*#__PURE__*/React.createElement("path", {
164
182
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
165
- }))), _defs$I$1 || (_defs$I$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
183
+ }))), _defs$J$1 || (_defs$J$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
166
184
  id: "x-circle_svg__clip0_8_6136"
167
185
  }, /*#__PURE__*/React.createElement("path", {
168
186
  fill: "currentColor",
@@ -170,7 +188,7 @@ function SvgXCircle$1(props) {
170
188
  })))));
171
189
  }
172
190
 
173
- var _g$1b, _defs$C;
191
+ var _g$1c, _defs$D;
174
192
 
175
193
  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); }
176
194
 
@@ -182,12 +200,12 @@ function SvgInfo(props) {
182
200
  strokeLinejoin: "round",
183
201
  width: "1em",
184
202
  height: "1em"
185
- }, props), _g$1b || (_g$1b = /*#__PURE__*/React.createElement("g", {
203
+ }, props), _g$1c || (_g$1c = /*#__PURE__*/React.createElement("g", {
186
204
  clipPath: "url(#info_svg__clip0_8_5377)",
187
205
  stroke: "currentColor"
188
206
  }, /*#__PURE__*/React.createElement("path", {
189
207
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
190
- }))), _defs$C || (_defs$C = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
208
+ }))), _defs$D || (_defs$D = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
191
209
  id: "info_svg__clip0_8_5377"
192
210
  }, /*#__PURE__*/React.createElement("path", {
193
211
  fill: "currentColor",
@@ -195,7 +213,7 @@ function SvgInfo(props) {
195
213
  })))));
196
214
  }
197
215
 
198
- var _path$N;
216
+ var _path$M;
199
217
 
200
218
  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); }
201
219
 
@@ -207,13 +225,13 @@ function SvgUser(props) {
207
225
  strokeLinejoin: "round",
208
226
  width: "1em",
209
227
  height: "1em"
210
- }, props), _path$N || (_path$N = /*#__PURE__*/React.createElement("path", {
228
+ }, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
211
229
  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",
212
230
  stroke: "currentColor"
213
231
  })));
214
232
  }
215
233
 
216
- var _g$X, _defs$t;
234
+ var _g$Y, _defs$u;
217
235
 
218
236
  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); }
219
237
 
@@ -225,12 +243,12 @@ function SvgError(props) {
225
243
  strokeLinejoin: "round",
226
244
  width: "1em",
227
245
  height: "1em"
228
- }, props), _g$X || (_g$X = /*#__PURE__*/React.createElement("g", {
246
+ }, props), _g$Y || (_g$Y = /*#__PURE__*/React.createElement("g", {
229
247
  clipPath: "url(#error_svg__clip0_8_5411)",
230
248
  stroke: "currentColor"
231
249
  }, /*#__PURE__*/React.createElement("path", {
232
250
  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"
233
- }))), _defs$t || (_defs$t = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
251
+ }))), _defs$u || (_defs$u = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
234
252
  id: "error_svg__clip0_8_5411"
235
253
  }, /*#__PURE__*/React.createElement("path", {
236
254
  fill: "currentColor",
@@ -238,7 +256,7 @@ function SvgError(props) {
238
256
  })))));
239
257
  }
240
258
 
241
- var _path$K;
259
+ var _path$J;
242
260
 
243
261
  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); }
244
262
 
@@ -250,7 +268,7 @@ function SvgWarning(props) {
250
268
  strokeLinejoin: "round",
251
269
  width: "1em",
252
270
  height: "1em"
253
- }, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
271
+ }, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
254
272
  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",
255
273
  stroke: "currentColor"
256
274
  })));
@@ -472,7 +490,7 @@ makeStyles$1(function (theme) { return ({
472
490
  },
473
491
  }); });
474
492
 
475
- var useButtonStyles$1 = makeStyles$1(function () { return ({
493
+ var useButtonStyles = makeStyles$1(function () { return ({
476
494
  root: {
477
495
  minWidth: 'unset',
478
496
  },
@@ -484,10 +502,10 @@ var useButtonStyles$1 = makeStyles$1(function () { return ({
484
502
  },
485
503
  }); });
486
504
 
487
- var Button$1 = forwardRef(function (props, ref) {
505
+ var Button = forwardRef(function (props, ref) {
488
506
  props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, muiProps = __rest(props, ["textTransform", "loading", "classes", "className"]);
489
507
  props.classes; var styleProps = __rest(props, ["classes"]);
490
- var classes = useButtonStyles$1(styleProps);
508
+ var classes = useButtonStyles(styleProps);
491
509
  var typography = useTheme().typography;
492
510
  var loadingIndicator = {
493
511
  startIcon: React__default.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
@@ -495,7 +513,7 @@ var Button$1 = forwardRef(function (props, ref) {
495
513
  };
496
514
  return (React__default.createElement(MuiButton, __assign({ ref: ref, classes: __assign(__assign({}, classes), classesOverride), className: classNames$1([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
497
515
  });
498
- Button$1.displayName = 'Button';
516
+ Button.displayName = 'Button';
499
517
 
500
518
  var Checkbox = forwardRef(function (props, ref) {
501
519
  var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
@@ -504,7 +522,7 @@ var Checkbox = forwardRef(function (props, ref) {
504
522
  });
505
523
  Checkbox.displayName = 'Checkbox';
506
524
 
507
- var getBackground$1 = function (theme) { return function (props) {
525
+ var getBackground = function (theme) { return function (props) {
508
526
  var variant = props.variant, severity = props.severity;
509
527
  var background = theme.palette.grey[100];
510
528
  var backgrounds = {
@@ -523,7 +541,7 @@ var getBackground$1 = function (theme) { return function (props) {
523
541
  }
524
542
  return background;
525
543
  }; };
526
- var getColor$1 = function (theme) { return function (props) {
544
+ var getColor = function (theme) { return function (props) {
527
545
  var variant = props.variant, severity = props.severity;
528
546
  var textColor;
529
547
  if (variant === 'outlined' && severity) {
@@ -565,8 +583,8 @@ var getBorder = function (theme) { return function (props) {
565
583
  }; };
566
584
  var useChipStyles = makeStyles$1(function (theme) { return ({
567
585
  root: {
568
- background: getBackground$1(theme),
569
- color: getColor$1(theme),
586
+ background: getBackground(theme),
587
+ color: getColor(theme),
570
588
  borderColor: getBorder(theme),
571
589
  borderRadius: theme.spacing(0.5),
572
590
  },
@@ -932,104 +950,7 @@ makeStyles(function (theme) { return ({
932
950
  },
933
951
  }); });
934
952
 
935
- var getColor = function (theme) { return function (props) {
936
- var variant = props.variant;
937
- if (variant === 'primary') {
938
- return theme.palette.common.white;
939
- }
940
- else if (variant === 'text') {
941
- return theme.palette.info.main;
942
- }
943
- return theme.palette.common.black;
944
- }; };
945
- var getBackground = function (theme) { return function (props) {
946
- var variant = props.variant;
947
- if (variant === 'primary') {
948
- return '#0A202F';
949
- }
950
- else {
951
- return theme.palette.common.white;
952
- }
953
- }; };
954
- var getFontSize = function () { return function (props) {
955
- var variant = props.variant;
956
- if (variant === 'primary') {
957
- return '1rem';
958
- }
959
- else {
960
- return '0.875rem';
961
- }
962
- }; };
963
- var buttonTypography = {
964
- fontWeight: 400,
965
- lineHeight: '1.25rem',
966
- };
967
- var useButtonStyles = makeStyles$1(function (theme) { return ({
968
- root: {
969
- borderRadius: theme.spacing(6),
970
- color: getColor(theme),
971
- background: getBackground(theme),
972
- fontSize: getFontSize(),
973
- textTransform: 'none',
974
- minWidth: 'unset',
975
- },
976
- disabled: {
977
- '&$root': {
978
- background: theme.palette.grey[300],
979
- },
980
- },
981
- contained: {
982
- padding: theme.spacing(2),
983
- '&:hover': {
984
- background: getBackground(theme),
985
- },
986
- },
987
- outlined: {
988
- padding: theme.spacing(2),
989
- },
990
- sizeSmall: {
991
- padding: theme.spacing(1, 2),
992
- },
993
- text: {
994
- padding: theme.spacing(1),
995
- margin: 'auto',
996
- },
997
- label: __assign$1({}, buttonTypography),
998
- }); });
999
-
1000
- var deriveButtonProps = function (buttonProps) {
1001
- var variant = buttonProps.variant;
1002
- var derived = {};
1003
- switch (variant) {
1004
- case 'primary':
1005
- derived.variant = 'contained';
1006
- break;
1007
- case 'secondary':
1008
- derived.variant = 'outlined';
1009
- break;
1010
- case 'text':
1011
- derived.variant = 'text';
1012
- break;
1013
- default:
1014
- derived.variant = variant;
1015
- break;
1016
- }
1017
- return derived;
1018
- };
1019
-
1020
- var Button = forwardRef(function (props, ref) {
1021
- var children = props.children; props.variant; var classesOverride = props.classes, commonProps = __rest$1(props, ["children", "variant", "classes"]);
1022
- var classes = useButtonStyles(props);
1023
- var derivedProps = deriveButtonProps(props);
1024
- var mergedProps = __assign$1(__assign$1({}, derivedProps), commonProps);
1025
- return (React__default.createElement(Button$1, __assign$1({ ref: ref, classes: __assign$1(__assign$1({}, classes), classesOverride), disableElevation: true }, mergedProps), children));
1026
- });
1027
- Button.defaultProps = {
1028
- variant: 'primary',
1029
- };
1030
- Button.displayName = 'Button';
1031
-
1032
- var _path$1g;
953
+ var _path$1f;
1033
954
 
1034
955
  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); }
1035
956
 
@@ -1041,13 +962,13 @@ function SvgChevronDown(props) {
1041
962
  strokeLinejoin: "round",
1042
963
  width: "1em",
1043
964
  height: "1em"
1044
- }, props), _path$1g || (_path$1g = /*#__PURE__*/React.createElement("path", {
965
+ }, props), _path$1f || (_path$1f = /*#__PURE__*/React.createElement("path", {
1045
966
  d: "M4 6l4 4 4-4",
1046
967
  stroke: "currentColor"
1047
968
  })));
1048
969
  }
1049
970
 
1050
- var _path$1f;
971
+ var _path$1e;
1051
972
 
1052
973
  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); }
1053
974
 
@@ -1059,13 +980,13 @@ function SvgChevronUp(props) {
1059
980
  strokeLinejoin: "round",
1060
981
  width: "1em",
1061
982
  height: "1em"
1062
- }, props), _path$1f || (_path$1f = /*#__PURE__*/React.createElement("path", {
983
+ }, props), _path$1e || (_path$1e = /*#__PURE__*/React.createElement("path", {
1063
984
  d: "M12 10L8 6l-4 4",
1064
985
  stroke: "currentColor"
1065
986
  })));
1066
987
  }
1067
988
 
1068
- var _path$14;
989
+ var _path$13;
1069
990
 
1070
991
  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); }
1071
992
 
@@ -1077,13 +998,13 @@ function SvgCheck(props) {
1077
998
  strokeLinejoin: "round",
1078
999
  width: "1em",
1079
1000
  height: "1em"
1080
- }, props), _path$14 || (_path$14 = /*#__PURE__*/React.createElement("path", {
1001
+ }, props), _path$13 || (_path$13 = /*#__PURE__*/React.createElement("path", {
1081
1002
  d: "M13.333 4L6 11.333 2.667 8",
1082
1003
  stroke: "currentColor"
1083
1004
  })));
1084
1005
  }
1085
1006
 
1086
- var _g$1l, _defs$J;
1007
+ var _g$1m, _defs$K;
1087
1008
 
1088
1009
  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); }
1089
1010
 
@@ -1095,14 +1016,14 @@ function SvgClock(props) {
1095
1016
  strokeLinejoin: "round",
1096
1017
  width: "1em",
1097
1018
  height: "1em"
1098
- }, props), _g$1l || (_g$1l = /*#__PURE__*/React.createElement("g", {
1019
+ }, props), _g$1m || (_g$1m = /*#__PURE__*/React.createElement("g", {
1099
1020
  clipPath: "url(#clock_svg__clip0_8_5092)",
1100
1021
  stroke: "currentColor"
1101
1022
  }, /*#__PURE__*/React.createElement("path", {
1102
1023
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
1103
1024
  }), /*#__PURE__*/React.createElement("path", {
1104
1025
  d: "M8 4v4l2.667 1.333"
1105
- }))), _defs$J || (_defs$J = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1026
+ }))), _defs$K || (_defs$K = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1106
1027
  id: "clock_svg__clip0_8_5092"
1107
1028
  }, /*#__PURE__*/React.createElement("path", {
1108
1029
  fill: "currentColor",
@@ -1110,7 +1031,7 @@ function SvgClock(props) {
1110
1031
  })))));
1111
1032
  }
1112
1033
 
1113
- var _g$1k, _defs$I;
1034
+ var _g$1l, _defs$J;
1114
1035
 
1115
1036
  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); }
1116
1037
 
@@ -1122,12 +1043,12 @@ function SvgXCircle(props) {
1122
1043
  strokeLinejoin: "round",
1123
1044
  width: "1em",
1124
1045
  height: "1em"
1125
- }, props), _g$1k || (_g$1k = /*#__PURE__*/React.createElement("g", {
1046
+ }, props), _g$1l || (_g$1l = /*#__PURE__*/React.createElement("g", {
1126
1047
  clipPath: "url(#x-circle_svg__clip0_8_6136)",
1127
1048
  stroke: "currentColor"
1128
1049
  }, /*#__PURE__*/React.createElement("path", {
1129
1050
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
1130
- }))), _defs$I || (_defs$I = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1051
+ }))), _defs$J || (_defs$J = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1131
1052
  id: "x-circle_svg__clip0_8_6136"
1132
1053
  }, /*#__PURE__*/React.createElement("path", {
1133
1054
  fill: "currentColor",
@@ -1135,7 +1056,7 @@ function SvgXCircle(props) {
1135
1056
  })))));
1136
1057
  }
1137
1058
 
1138
- var _path$10;
1059
+ var _path$$;
1139
1060
 
1140
1061
  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); }
1141
1062
 
@@ -1147,13 +1068,13 @@ function SvgHeart(props) {
1147
1068
  strokeLinejoin: "round",
1148
1069
  width: "1em",
1149
1070
  height: "1em"
1150
- }, props), _path$10 || (_path$10 = /*#__PURE__*/React.createElement("path", {
1071
+ }, props), _path$$ || (_path$$ = /*#__PURE__*/React.createElement("path", {
1151
1072
  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",
1152
1073
  stroke: "currentColor"
1153
1074
  })));
1154
1075
  }
1155
1076
 
1156
- var _g$17, _defs$B;
1077
+ var _g$18, _defs$C;
1157
1078
 
1158
1079
  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); }
1159
1080
 
@@ -1165,12 +1086,12 @@ function SvgMinusCircle(props) {
1165
1086
  strokeLinejoin: "round",
1166
1087
  width: "1em",
1167
1088
  height: "1em"
1168
- }, props), _g$17 || (_g$17 = /*#__PURE__*/React.createElement("g", {
1089
+ }, props), _g$18 || (_g$18 = /*#__PURE__*/React.createElement("g", {
1169
1090
  clipPath: "url(#minus-circle_svg__clip0_8_5970)",
1170
1091
  stroke: "currentColor"
1171
1092
  }, /*#__PURE__*/React.createElement("path", {
1172
1093
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
1173
- }))), _defs$B || (_defs$B = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1094
+ }))), _defs$C || (_defs$C = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1174
1095
  id: "minus-circle_svg__clip0_8_5970"
1175
1096
  }, /*#__PURE__*/React.createElement("path", {
1176
1097
  fill: "currentColor",
@@ -1178,7 +1099,7 @@ function SvgMinusCircle(props) {
1178
1099
  })))));
1179
1100
  }
1180
1101
 
1181
- var _path$S;
1102
+ var _path$R;
1182
1103
 
1183
1104
  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); }
1184
1105
 
@@ -1190,13 +1111,13 @@ function SvgPlus(props) {
1190
1111
  strokeLinejoin: "round",
1191
1112
  width: "1em",
1192
1113
  height: "1em"
1193
- }, props), _path$S || (_path$S = /*#__PURE__*/React.createElement("path", {
1114
+ }, props), _path$R || (_path$R = /*#__PURE__*/React.createElement("path", {
1194
1115
  d: "M8 3.333v9.334M3.333 8h9.334",
1195
1116
  stroke: "currentColor"
1196
1117
  })));
1197
1118
  }
1198
1119
 
1199
- var _g$16, _defs$A;
1120
+ var _g$17, _defs$B;
1200
1121
 
1201
1122
  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); }
1202
1123
 
@@ -1208,12 +1129,12 @@ function SvgPlusCircle(props) {
1208
1129
  strokeLinejoin: "round",
1209
1130
  width: "1em",
1210
1131
  height: "1em"
1211
- }, props), _g$16 || (_g$16 = /*#__PURE__*/React.createElement("g", {
1132
+ }, props), _g$17 || (_g$17 = /*#__PURE__*/React.createElement("g", {
1212
1133
  clipPath: "url(#plus-circle_svg__clip0_8_5870)",
1213
1134
  stroke: "currentColor"
1214
1135
  }, /*#__PURE__*/React.createElement("path", {
1215
1136
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
1216
- }))), _defs$A || (_defs$A = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1137
+ }))), _defs$B || (_defs$B = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
1217
1138
  id: "plus-circle_svg__clip0_8_5870"
1218
1139
  }, /*#__PURE__*/React.createElement("path", {
1219
1140
  fill: "currentColor",
@@ -1221,7 +1142,7 @@ function SvgPlusCircle(props) {
1221
1142
  })))));
1222
1143
  }
1223
1144
 
1224
- var _path$O;
1145
+ var _path$N;
1225
1146
 
1226
1147
  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); }
1227
1148
 
@@ -1233,13 +1154,13 @@ function SvgTag(props) {
1233
1154
  strokeLinejoin: "round",
1234
1155
  width: "1em",
1235
1156
  height: "1em"
1236
- }, props), _path$O || (_path$O = /*#__PURE__*/React.createElement("path", {
1157
+ }, props), _path$N || (_path$N = /*#__PURE__*/React.createElement("path", {
1237
1158
  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",
1238
1159
  stroke: "currentColor"
1239
1160
  })));
1240
1161
  }
1241
1162
 
1242
- var _path$z;
1163
+ var _path$y;
1243
1164
 
1244
1165
  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); }
1245
1166
 
@@ -1251,7 +1172,7 @@ function SvgTrash(props) {
1251
1172
  strokeLinejoin: "round",
1252
1173
  width: "1em",
1253
1174
  height: "1em"
1254
- }, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
1175
+ }, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
1255
1176
  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",
1256
1177
  stroke: "currentColor"
1257
1178
  })));
@@ -1527,7 +1448,7 @@ var DishCheckoutCard = function (props) {
1527
1448
  specialInstructions,
1528
1449
  "\"")),
1529
1450
  React__default.createElement(Box, { display: "flex", gridGap: 1, height: "100%" },
1530
- React__default.createElement(Button, { variant: "text", onClick: onEdit }, "Edit"),
1451
+ React__default.createElement(Button$1, { variant: "text", onClick: onEdit }, "Edit"),
1531
1452
  React__default.createElement(IconButton, { onClick: onDelete },
1532
1453
  React__default.createElement(Icon, { icon: SvgTrash, className: classes.deleteIcon })))),
1533
1454
  React__default.createElement(Box, { display: "flex", gridGap: 16, alignItems: "center" },
@@ -1739,7 +1660,7 @@ DishModifierCard.displayName = 'DishModifierCard';
1739
1660
  var useLocationCardStyles = makeStyles$1(function (theme) {
1740
1661
  var _a = theme.palette, info = _a.info, grey = _a.grey, secondary = _a.secondary, spacing = theme.spacing;
1741
1662
  var selectedBackgroundColor = lighten(theme.palette.info.light, 0.9);
1742
- var backgroundColor = theme.palette.surface.light;
1663
+ var backgroundColor = theme.palette.background.default;
1743
1664
  return {
1744
1665
  root: {
1745
1666
  background: '#FFF',
@@ -2074,5 +1995,119 @@ var SelectableChipGroup = function (props) {
2074
1995
  React__default.createElement(Box, { minWidth: "1px" })));
2075
1996
  };
2076
1997
 
2077
- export { Button, DishCard, DishCheckoutCard, DishDetailsReview, DishModifierCard, ItemTag, ItemTagGroup, LocationCard, MenuDropdown, MenuFilter, QuantityPicker, ReactionCounter, ReactionCounterGroup, SelectableChip, SelectableChipGroup, StatusTag };
1998
+ var palette = {
1999
+ primary: {
2000
+ light: '#7B7FA3',
2001
+ main: '#2E3042',
2002
+ dark: '#1A1D20',
2003
+ },
2004
+ secondary: {
2005
+ light: '#DA777E',
2006
+ main: '#F04649',
2007
+ dark: '#B3212B',
2008
+ },
2009
+ info: {
2010
+ light: '#52B7FF',
2011
+ main: '#0076CB',
2012
+ dark: '#164B54',
2013
+ },
2014
+ success: {
2015
+ light: '#48D3AB',
2016
+ main: '#00B485',
2017
+ dark: '#00663E',
2018
+ contrastText: '#FFFFFF',
2019
+ },
2020
+ error: {
2021
+ light: '#DA777E',
2022
+ main: '#E52021',
2023
+ dark: '#A80005',
2024
+ },
2025
+ warning: {
2026
+ light: '#F0DFBA',
2027
+ main: '#F5C364',
2028
+ dark: '#E57E45',
2029
+ },
2030
+ };
2031
+
2032
+ var overrides = {
2033
+ MuiButton: {
2034
+ root: {
2035
+ borderRadius: 32,
2036
+ textTransform: 'none',
2037
+ },
2038
+ },
2039
+ };
2040
+
2041
+ var props = {
2042
+ MuiButton: {
2043
+ disableElevation: true,
2044
+ },
2045
+ };
2046
+
2047
+ var fonts = ['"Poppins"', '"sans-serif"'];
2048
+ var typography = {
2049
+ htmlFontSize: 16,
2050
+ fontFamily: fonts.join(', '),
2051
+ h1: {
2052
+ fontWeight: 400,
2053
+ fontSize: '6rem',
2054
+ lineHeight: '9rem',
2055
+ },
2056
+ h2: {
2057
+ fontWeight: 400,
2058
+ fontSize: '3.75rem',
2059
+ lineHeight: '5.625rem',
2060
+ },
2061
+ h3: {
2062
+ fontWeight: 400,
2063
+ fontSize: '3rem',
2064
+ lineHeight: '4.5rem',
2065
+ },
2066
+ h4: {
2067
+ fontWeight: 400,
2068
+ fontSize: '2.125rem',
2069
+ lineHeight: '3.25rem',
2070
+ },
2071
+ h5: {
2072
+ fontWeight: 500,
2073
+ fontSize: '1.5rem',
2074
+ lineHeight: '2.25rem',
2075
+ },
2076
+ h6: {
2077
+ fontWeight: 500,
2078
+ fontSize: '1.25rem',
2079
+ lineHeight: '1.875rem',
2080
+ },
2081
+ body1: {
2082
+ fontWeight: 400,
2083
+ fontSize: '1rem',
2084
+ lineHeight: '1.5rem',
2085
+ },
2086
+ body2: {
2087
+ fontWeight: 400,
2088
+ fontSize: '0.875rem',
2089
+ lineHeight: '1.25rem',
2090
+ },
2091
+ subtitle1: {
2092
+ fontWeight: 400,
2093
+ fontSize: '0.75rem',
2094
+ lineHeight: '1.125rem',
2095
+ color: '#9E9E9E',
2096
+ },
2097
+ button: {
2098
+ fontWeight: 500,
2099
+ fontSize: '0.875rem',
2100
+ lineHeight: '1.25rem',
2101
+ textTransform: 'capitalize',
2102
+ },
2103
+ };
2104
+
2105
+ var orderingTheme = {
2106
+ typography: typography,
2107
+ palette: palette,
2108
+ overrides: overrides,
2109
+ props: props,
2110
+ };
2111
+
2112
+ export { Button$1 as Button, DishCard, DishCheckoutCard, DishDetailsReview, DishModifierCard, ItemTag, ItemTagGroup, LocationCard, MenuDropdown, MenuFilter, QuantityPicker, ReactionCounter, ReactionCounterGroup, SelectableChip, SelectableChipGroup, StatusTag, orderingTheme };
2078
2113
  //# sourceMappingURL=index.es.js.map