@popmenu/ordering-ui 0.73.0 → 0.75.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.
|
@@ -15,4 +15,6 @@ export interface DishCheckoutCardProps {
|
|
|
15
15
|
onDelete: () => void;
|
|
16
16
|
/** Callback that runs when the select value is changed. Expects two arguments, the id of the selected dish and the new value that is being changed from the dropdown. Callback should update the dish */
|
|
17
17
|
onChange: (id: number, value: number | string) => void;
|
|
18
|
+
/** Special instructions text */
|
|
19
|
+
specialInstructions?: string | undefined;
|
|
18
20
|
}
|
package/build/index.es.js
CHANGED
|
@@ -124,7 +124,7 @@ function __rest(s, e) {
|
|
|
124
124
|
return t;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
var _g$
|
|
127
|
+
var _g$1n;
|
|
128
128
|
|
|
129
129
|
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
130
|
|
|
@@ -136,7 +136,7 @@ function SvgCheckCircle(props) {
|
|
|
136
136
|
strokeLinejoin: "round",
|
|
137
137
|
width: "1em",
|
|
138
138
|
height: "1em"
|
|
139
|
-
}, props), _g$
|
|
139
|
+
}, props), _g$1n || (_g$1n = /*#__PURE__*/React.createElement("g", {
|
|
140
140
|
stroke: "currentColor"
|
|
141
141
|
}, /*#__PURE__*/React.createElement("path", {
|
|
142
142
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
@@ -145,7 +145,7 @@ function SvgCheckCircle(props) {
|
|
|
145
145
|
}))));
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
var _g$
|
|
148
|
+
var _g$1l$1, _defs$J$1;
|
|
149
149
|
|
|
150
150
|
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
151
|
|
|
@@ -157,12 +157,12 @@ function SvgXCircle$1(props) {
|
|
|
157
157
|
strokeLinejoin: "round",
|
|
158
158
|
width: "1em",
|
|
159
159
|
height: "1em"
|
|
160
|
-
}, props), _g$
|
|
160
|
+
}, props), _g$1l$1 || (_g$1l$1 = /*#__PURE__*/React.createElement("g", {
|
|
161
161
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
162
162
|
stroke: "currentColor"
|
|
163
163
|
}, /*#__PURE__*/React.createElement("path", {
|
|
164
164
|
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$
|
|
165
|
+
}))), _defs$J$1 || (_defs$J$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
166
166
|
id: "x-circle_svg__clip0_8_6136"
|
|
167
167
|
}, /*#__PURE__*/React.createElement("path", {
|
|
168
168
|
fill: "currentColor",
|
|
@@ -170,7 +170,7 @@ function SvgXCircle$1(props) {
|
|
|
170
170
|
})))));
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
var _g$
|
|
173
|
+
var _g$1c, _defs$D;
|
|
174
174
|
|
|
175
175
|
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
176
|
|
|
@@ -182,12 +182,12 @@ function SvgInfo(props) {
|
|
|
182
182
|
strokeLinejoin: "round",
|
|
183
183
|
width: "1em",
|
|
184
184
|
height: "1em"
|
|
185
|
-
}, props), _g$
|
|
185
|
+
}, props), _g$1c || (_g$1c = /*#__PURE__*/React.createElement("g", {
|
|
186
186
|
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
187
187
|
stroke: "currentColor"
|
|
188
188
|
}, /*#__PURE__*/React.createElement("path", {
|
|
189
189
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
190
|
-
}))), _defs$
|
|
190
|
+
}))), _defs$D || (_defs$D = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
191
191
|
id: "info_svg__clip0_8_5377"
|
|
192
192
|
}, /*#__PURE__*/React.createElement("path", {
|
|
193
193
|
fill: "currentColor",
|
|
@@ -195,7 +195,7 @@ function SvgInfo(props) {
|
|
|
195
195
|
})))));
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
var _path$
|
|
198
|
+
var _path$M;
|
|
199
199
|
|
|
200
200
|
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
201
|
|
|
@@ -207,13 +207,13 @@ function SvgUser(props) {
|
|
|
207
207
|
strokeLinejoin: "round",
|
|
208
208
|
width: "1em",
|
|
209
209
|
height: "1em"
|
|
210
|
-
}, props), _path$
|
|
210
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
|
|
211
211
|
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
212
|
stroke: "currentColor"
|
|
213
213
|
})));
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
var _g$
|
|
216
|
+
var _g$Y, _defs$u;
|
|
217
217
|
|
|
218
218
|
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
219
|
|
|
@@ -225,12 +225,12 @@ function SvgError(props) {
|
|
|
225
225
|
strokeLinejoin: "round",
|
|
226
226
|
width: "1em",
|
|
227
227
|
height: "1em"
|
|
228
|
-
}, props), _g$
|
|
228
|
+
}, props), _g$Y || (_g$Y = /*#__PURE__*/React.createElement("g", {
|
|
229
229
|
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
230
230
|
stroke: "currentColor"
|
|
231
231
|
}, /*#__PURE__*/React.createElement("path", {
|
|
232
232
|
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$
|
|
233
|
+
}))), _defs$u || (_defs$u = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
234
234
|
id: "error_svg__clip0_8_5411"
|
|
235
235
|
}, /*#__PURE__*/React.createElement("path", {
|
|
236
236
|
fill: "currentColor",
|
|
@@ -238,7 +238,7 @@ function SvgError(props) {
|
|
|
238
238
|
})))));
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
var _path$
|
|
241
|
+
var _path$J;
|
|
242
242
|
|
|
243
243
|
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
244
|
|
|
@@ -250,7 +250,7 @@ function SvgWarning(props) {
|
|
|
250
250
|
strokeLinejoin: "round",
|
|
251
251
|
width: "1em",
|
|
252
252
|
height: "1em"
|
|
253
|
-
}, props), _path$
|
|
253
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
254
254
|
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
255
|
stroke: "currentColor"
|
|
256
256
|
})));
|
|
@@ -1029,7 +1029,7 @@ Button.defaultProps = {
|
|
|
1029
1029
|
};
|
|
1030
1030
|
Button.displayName = 'Button';
|
|
1031
1031
|
|
|
1032
|
-
var _path$
|
|
1032
|
+
var _path$1f;
|
|
1033
1033
|
|
|
1034
1034
|
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
1035
|
|
|
@@ -1041,13 +1041,13 @@ function SvgChevronDown(props) {
|
|
|
1041
1041
|
strokeLinejoin: "round",
|
|
1042
1042
|
width: "1em",
|
|
1043
1043
|
height: "1em"
|
|
1044
|
-
}, props), _path$
|
|
1044
|
+
}, props), _path$1f || (_path$1f = /*#__PURE__*/React.createElement("path", {
|
|
1045
1045
|
d: "M4 6l4 4 4-4",
|
|
1046
1046
|
stroke: "currentColor"
|
|
1047
1047
|
})));
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
var _path$
|
|
1050
|
+
var _path$1e;
|
|
1051
1051
|
|
|
1052
1052
|
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
1053
|
|
|
@@ -1059,13 +1059,13 @@ function SvgChevronUp(props) {
|
|
|
1059
1059
|
strokeLinejoin: "round",
|
|
1060
1060
|
width: "1em",
|
|
1061
1061
|
height: "1em"
|
|
1062
|
-
}, props), _path$
|
|
1062
|
+
}, props), _path$1e || (_path$1e = /*#__PURE__*/React.createElement("path", {
|
|
1063
1063
|
d: "M12 10L8 6l-4 4",
|
|
1064
1064
|
stroke: "currentColor"
|
|
1065
1065
|
})));
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
var _path$
|
|
1068
|
+
var _path$13;
|
|
1069
1069
|
|
|
1070
1070
|
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
1071
|
|
|
@@ -1077,13 +1077,13 @@ function SvgCheck(props) {
|
|
|
1077
1077
|
strokeLinejoin: "round",
|
|
1078
1078
|
width: "1em",
|
|
1079
1079
|
height: "1em"
|
|
1080
|
-
}, props), _path$
|
|
1080
|
+
}, props), _path$13 || (_path$13 = /*#__PURE__*/React.createElement("path", {
|
|
1081
1081
|
d: "M13.333 4L6 11.333 2.667 8",
|
|
1082
1082
|
stroke: "currentColor"
|
|
1083
1083
|
})));
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
|
-
var _g$
|
|
1086
|
+
var _g$1m, _defs$K;
|
|
1087
1087
|
|
|
1088
1088
|
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
1089
|
|
|
@@ -1095,14 +1095,14 @@ function SvgClock(props) {
|
|
|
1095
1095
|
strokeLinejoin: "round",
|
|
1096
1096
|
width: "1em",
|
|
1097
1097
|
height: "1em"
|
|
1098
|
-
}, props), _g$
|
|
1098
|
+
}, props), _g$1m || (_g$1m = /*#__PURE__*/React.createElement("g", {
|
|
1099
1099
|
clipPath: "url(#clock_svg__clip0_8_5092)",
|
|
1100
1100
|
stroke: "currentColor"
|
|
1101
1101
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1102
1102
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
1103
1103
|
}), /*#__PURE__*/React.createElement("path", {
|
|
1104
1104
|
d: "M8 4v4l2.667 1.333"
|
|
1105
|
-
}))), _defs$
|
|
1105
|
+
}))), _defs$K || (_defs$K = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
1106
1106
|
id: "clock_svg__clip0_8_5092"
|
|
1107
1107
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1108
1108
|
fill: "currentColor",
|
|
@@ -1110,7 +1110,7 @@ function SvgClock(props) {
|
|
|
1110
1110
|
})))));
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
|
-
var _g$
|
|
1113
|
+
var _g$1l, _defs$J;
|
|
1114
1114
|
|
|
1115
1115
|
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
1116
|
|
|
@@ -1122,12 +1122,12 @@ function SvgXCircle(props) {
|
|
|
1122
1122
|
strokeLinejoin: "round",
|
|
1123
1123
|
width: "1em",
|
|
1124
1124
|
height: "1em"
|
|
1125
|
-
}, props), _g$
|
|
1125
|
+
}, props), _g$1l || (_g$1l = /*#__PURE__*/React.createElement("g", {
|
|
1126
1126
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
1127
1127
|
stroke: "currentColor"
|
|
1128
1128
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1129
1129
|
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$
|
|
1130
|
+
}))), _defs$J || (_defs$J = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
1131
1131
|
id: "x-circle_svg__clip0_8_6136"
|
|
1132
1132
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1133
1133
|
fill: "currentColor",
|
|
@@ -1135,7 +1135,7 @@ function SvgXCircle(props) {
|
|
|
1135
1135
|
})))));
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
var _path
|
|
1138
|
+
var _path$$;
|
|
1139
1139
|
|
|
1140
1140
|
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
1141
|
|
|
@@ -1147,13 +1147,13 @@ function SvgHeart(props) {
|
|
|
1147
1147
|
strokeLinejoin: "round",
|
|
1148
1148
|
width: "1em",
|
|
1149
1149
|
height: "1em"
|
|
1150
|
-
}, props), _path
|
|
1150
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React.createElement("path", {
|
|
1151
1151
|
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
1152
|
stroke: "currentColor"
|
|
1153
1153
|
})));
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
var _g$
|
|
1156
|
+
var _g$18, _defs$C;
|
|
1157
1157
|
|
|
1158
1158
|
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
1159
|
|
|
@@ -1165,12 +1165,12 @@ function SvgMinusCircle(props) {
|
|
|
1165
1165
|
strokeLinejoin: "round",
|
|
1166
1166
|
width: "1em",
|
|
1167
1167
|
height: "1em"
|
|
1168
|
-
}, props), _g$
|
|
1168
|
+
}, props), _g$18 || (_g$18 = /*#__PURE__*/React.createElement("g", {
|
|
1169
1169
|
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
1170
1170
|
stroke: "currentColor"
|
|
1171
1171
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1172
1172
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
1173
|
-
}))), _defs$
|
|
1173
|
+
}))), _defs$C || (_defs$C = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
1174
1174
|
id: "minus-circle_svg__clip0_8_5970"
|
|
1175
1175
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1176
1176
|
fill: "currentColor",
|
|
@@ -1178,7 +1178,7 @@ function SvgMinusCircle(props) {
|
|
|
1178
1178
|
})))));
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
var _path$
|
|
1181
|
+
var _path$R;
|
|
1182
1182
|
|
|
1183
1183
|
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
1184
|
|
|
@@ -1190,13 +1190,13 @@ function SvgPlus(props) {
|
|
|
1190
1190
|
strokeLinejoin: "round",
|
|
1191
1191
|
width: "1em",
|
|
1192
1192
|
height: "1em"
|
|
1193
|
-
}, props), _path$
|
|
1193
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React.createElement("path", {
|
|
1194
1194
|
d: "M8 3.333v9.334M3.333 8h9.334",
|
|
1195
1195
|
stroke: "currentColor"
|
|
1196
1196
|
})));
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
-
var _g$
|
|
1199
|
+
var _g$17, _defs$B;
|
|
1200
1200
|
|
|
1201
1201
|
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
1202
|
|
|
@@ -1208,12 +1208,12 @@ function SvgPlusCircle(props) {
|
|
|
1208
1208
|
strokeLinejoin: "round",
|
|
1209
1209
|
width: "1em",
|
|
1210
1210
|
height: "1em"
|
|
1211
|
-
}, props), _g$
|
|
1211
|
+
}, props), _g$17 || (_g$17 = /*#__PURE__*/React.createElement("g", {
|
|
1212
1212
|
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
1213
1213
|
stroke: "currentColor"
|
|
1214
1214
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1215
1215
|
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$
|
|
1216
|
+
}))), _defs$B || (_defs$B = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
1217
1217
|
id: "plus-circle_svg__clip0_8_5870"
|
|
1218
1218
|
}, /*#__PURE__*/React.createElement("path", {
|
|
1219
1219
|
fill: "currentColor",
|
|
@@ -1221,7 +1221,7 @@ function SvgPlusCircle(props) {
|
|
|
1221
1221
|
})))));
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
|
-
var _path$
|
|
1224
|
+
var _path$N;
|
|
1225
1225
|
|
|
1226
1226
|
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
1227
|
|
|
@@ -1233,13 +1233,13 @@ function SvgTag(props) {
|
|
|
1233
1233
|
strokeLinejoin: "round",
|
|
1234
1234
|
width: "1em",
|
|
1235
1235
|
height: "1em"
|
|
1236
|
-
}, props), _path$
|
|
1236
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React.createElement("path", {
|
|
1237
1237
|
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
1238
|
stroke: "currentColor"
|
|
1239
1239
|
})));
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
|
-
var _path$
|
|
1242
|
+
var _path$y;
|
|
1243
1243
|
|
|
1244
1244
|
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
1245
|
|
|
@@ -1251,7 +1251,7 @@ function SvgTrash(props) {
|
|
|
1251
1251
|
strokeLinejoin: "round",
|
|
1252
1252
|
width: "1em",
|
|
1253
1253
|
height: "1em"
|
|
1254
|
-
}, props), _path$
|
|
1254
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
1255
1255
|
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
1256
|
stroke: "currentColor"
|
|
1257
1257
|
})));
|
|
@@ -1470,7 +1470,7 @@ var useDishCheckoutCardStyles = makeStyles$1(function (theme) { return ({
|
|
|
1470
1470
|
padding: theme.spacing(2, 0),
|
|
1471
1471
|
display: 'flex',
|
|
1472
1472
|
flexDirection: 'column',
|
|
1473
|
-
|
|
1473
|
+
width: '100%',
|
|
1474
1474
|
gridGap: theme.spacing(2),
|
|
1475
1475
|
border: '1px',
|
|
1476
1476
|
},
|
|
@@ -1510,7 +1510,7 @@ var useDishCheckoutCardStyles = makeStyles$1(function (theme) { return ({
|
|
|
1510
1510
|
}); });
|
|
1511
1511
|
|
|
1512
1512
|
var DishCheckoutCard = function (props) {
|
|
1513
|
-
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price;
|
|
1513
|
+
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price, specialInstructions = props.specialInstructions;
|
|
1514
1514
|
var classes = useDishCheckoutCardStyles(props);
|
|
1515
1515
|
var _a = useState(false), open = _a[0], setOpen = _a[1];
|
|
1516
1516
|
return (React__default.createElement(Box, { className: classes.root },
|
|
@@ -1521,7 +1521,11 @@ var DishCheckoutCard = function (props) {
|
|
|
1521
1521
|
modifiers.map(function (modifier, i) { return (React__default.createElement(Typography, { key: i, variant: "body2" },
|
|
1522
1522
|
modifier[0],
|
|
1523
1523
|
": ",
|
|
1524
|
-
modifier[1])); })
|
|
1524
|
+
modifier[1])); }),
|
|
1525
|
+
specialInstructions && React__default.createElement(Typography, { variant: "body2" },
|
|
1526
|
+
"\"",
|
|
1527
|
+
specialInstructions,
|
|
1528
|
+
"\"")),
|
|
1525
1529
|
React__default.createElement(Box, { display: "flex", gridGap: 1, height: "100%" },
|
|
1526
1530
|
React__default.createElement(Button, { variant: "text", onClick: onEdit }, "Edit"),
|
|
1527
1531
|
React__default.createElement(IconButton, { onClick: onDelete },
|