@popmenu/ordering-ui 0.116.1 → 0.118.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.
|
@@ -57,10 +57,15 @@ export declare type DishModifierCardProps = {
|
|
|
57
57
|
};
|
|
58
58
|
/** Handles the dialog change for nested modifiers */
|
|
59
59
|
handleOptionsClick: (id: number) => void;
|
|
60
|
+
/** Used by parent modifier quantity tracking: parent modifier quantity denotes requiredSelectionCount and currentSelectionCount is the total quantity of the child modifier */
|
|
61
|
+
selectionQuantity: Record<number, {
|
|
62
|
+
requiredSelectionCount: number;
|
|
63
|
+
currentSelectionCount: number;
|
|
64
|
+
}>;
|
|
60
65
|
};
|
|
61
66
|
export declare type RadioModifierFormProps = Base;
|
|
62
67
|
export declare type CheckboxModifierFormProps = Base & {
|
|
63
68
|
disableNewSelections?: boolean;
|
|
64
69
|
};
|
|
65
|
-
export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice'>;
|
|
70
|
+
export declare type ModifierOptionsControlProps = Pick<DishModifierCardProps, 'value' | 'modifiers' | 'isOutOfStock' | 'onChange' | 'disableNewSelections' | 'type' | 'messages' | 'handleOptionsClick' | 'aggregatePrice' | 'selectionQuantity'>;
|
|
66
71
|
export {};
|
package/build/index.es.js
CHANGED
|
@@ -184,10 +184,10 @@ var MenuItemInfo = function (props) {
|
|
|
184
184
|
|
|
185
185
|
var _path$2p;
|
|
186
186
|
|
|
187
|
-
function _extends$
|
|
187
|
+
function _extends$5q() { _extends$5q = 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$5q.apply(this, arguments); }
|
|
188
188
|
|
|
189
189
|
function SvgChevronDown(props) {
|
|
190
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
190
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5q({
|
|
191
191
|
viewBox: "0 0 16 16",
|
|
192
192
|
fill: "none",
|
|
193
193
|
strokeLinecap: "round",
|
|
@@ -202,10 +202,10 @@ function SvgChevronDown(props) {
|
|
|
202
202
|
|
|
203
203
|
var _path$2o;
|
|
204
204
|
|
|
205
|
-
function _extends$
|
|
205
|
+
function _extends$5p() { _extends$5p = 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$5p.apply(this, arguments); }
|
|
206
206
|
|
|
207
207
|
function SvgChevronUp(props) {
|
|
208
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
208
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5p({
|
|
209
209
|
viewBox: "0 0 16 16",
|
|
210
210
|
fill: "none",
|
|
211
211
|
strokeLinecap: "round",
|
|
@@ -220,10 +220,10 @@ function SvgChevronUp(props) {
|
|
|
220
220
|
|
|
221
221
|
var _path$2m;
|
|
222
222
|
|
|
223
|
-
function _extends$
|
|
223
|
+
function _extends$5n() { _extends$5n = 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$5n.apply(this, arguments); }
|
|
224
224
|
|
|
225
225
|
function SvgChevronRight(props) {
|
|
226
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
226
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5n({
|
|
227
227
|
viewBox: "0 0 16 16",
|
|
228
228
|
fill: "none",
|
|
229
229
|
strokeLinecap: "round",
|
|
@@ -238,10 +238,10 @@ function SvgChevronRight(props) {
|
|
|
238
238
|
|
|
239
239
|
var _path$27;
|
|
240
240
|
|
|
241
|
-
function _extends$
|
|
241
|
+
function _extends$4L() { _extends$4L = 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$4L.apply(this, arguments); }
|
|
242
242
|
|
|
243
243
|
function SvgCheck(props) {
|
|
244
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
244
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4L({
|
|
245
245
|
viewBox: "0 0 16 16",
|
|
246
246
|
fill: "none",
|
|
247
247
|
strokeLinecap: "round",
|
|
@@ -254,26 +254,26 @@ function SvgCheck(props) {
|
|
|
254
254
|
})));
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
var _g$
|
|
257
|
+
var _g$2A, _defs$1E;
|
|
258
258
|
|
|
259
|
-
function _extends$
|
|
259
|
+
function _extends$4I() { _extends$4I = 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$4I.apply(this, arguments); }
|
|
260
260
|
|
|
261
261
|
function SvgClock(props) {
|
|
262
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
262
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4I({
|
|
263
263
|
viewBox: "0 0 16 16",
|
|
264
264
|
fill: "none",
|
|
265
265
|
strokeLinecap: "round",
|
|
266
266
|
strokeLinejoin: "round",
|
|
267
267
|
width: "1em",
|
|
268
268
|
height: "1em"
|
|
269
|
-
}, props), _g$
|
|
269
|
+
}, props), _g$2A || (_g$2A = /*#__PURE__*/React.createElement("g", {
|
|
270
270
|
clipPath: "url(#clock_svg__clip0_8_5092)",
|
|
271
271
|
stroke: "currentColor"
|
|
272
272
|
}, /*#__PURE__*/React.createElement("path", {
|
|
273
273
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
274
274
|
}), /*#__PURE__*/React.createElement("path", {
|
|
275
275
|
d: "M8 4v4l2.667 1.333"
|
|
276
|
-
}))), _defs$
|
|
276
|
+
}))), _defs$1E || (_defs$1E = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
277
277
|
id: "clock_svg__clip0_8_5092"
|
|
278
278
|
}, /*#__PURE__*/React.createElement("path", {
|
|
279
279
|
fill: "currentColor",
|
|
@@ -283,10 +283,10 @@ function SvgClock(props) {
|
|
|
283
283
|
|
|
284
284
|
var _path$26;
|
|
285
285
|
|
|
286
|
-
function _extends$
|
|
286
|
+
function _extends$4H() { _extends$4H = 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$4H.apply(this, arguments); }
|
|
287
287
|
|
|
288
288
|
function SvgX(props) {
|
|
289
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
289
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4H({
|
|
290
290
|
viewBox: "0 0 16 16",
|
|
291
291
|
fill: "none",
|
|
292
292
|
strokeLinecap: "round",
|
|
@@ -299,24 +299,24 @@ function SvgX(props) {
|
|
|
299
299
|
})));
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
var _g$
|
|
302
|
+
var _g$2z, _defs$1D;
|
|
303
303
|
|
|
304
|
-
function _extends$
|
|
304
|
+
function _extends$4G() { _extends$4G = 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$4G.apply(this, arguments); }
|
|
305
305
|
|
|
306
306
|
function SvgXCircle(props) {
|
|
307
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
307
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4G({
|
|
308
308
|
viewBox: "0 0 16 16",
|
|
309
309
|
fill: "none",
|
|
310
310
|
strokeLinecap: "round",
|
|
311
311
|
strokeLinejoin: "round",
|
|
312
312
|
width: "1em",
|
|
313
313
|
height: "1em"
|
|
314
|
-
}, props), _g$
|
|
314
|
+
}, props), _g$2z || (_g$2z = /*#__PURE__*/React.createElement("g", {
|
|
315
315
|
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
316
316
|
stroke: "currentColor"
|
|
317
317
|
}, /*#__PURE__*/React.createElement("path", {
|
|
318
318
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
319
|
-
}))), _defs$
|
|
319
|
+
}))), _defs$1D || (_defs$1D = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
320
320
|
id: "x-circle_svg__clip0_8_6136"
|
|
321
321
|
}, /*#__PURE__*/React.createElement("path", {
|
|
322
322
|
fill: "currentColor",
|
|
@@ -326,10 +326,10 @@ function SvgXCircle(props) {
|
|
|
326
326
|
|
|
327
327
|
var _path$1$;
|
|
328
328
|
|
|
329
|
-
function _extends$
|
|
329
|
+
function _extends$4q() { _extends$4q = 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$4q.apply(this, arguments); }
|
|
330
330
|
|
|
331
331
|
function SvgHeart(props) {
|
|
332
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
332
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4q({
|
|
333
333
|
viewBox: "0 0 16 16",
|
|
334
334
|
fill: "none",
|
|
335
335
|
strokeLinecap: "round",
|
|
@@ -342,24 +342,24 @@ function SvgHeart(props) {
|
|
|
342
342
|
})));
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
var _g$
|
|
345
|
+
var _g$2m, _defs$1t;
|
|
346
346
|
|
|
347
|
-
function _extends$
|
|
347
|
+
function _extends$4m() { _extends$4m = 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$4m.apply(this, arguments); }
|
|
348
348
|
|
|
349
349
|
function SvgInfo(props) {
|
|
350
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
350
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4m({
|
|
351
351
|
viewBox: "0 0 16 16",
|
|
352
352
|
fill: "none",
|
|
353
353
|
strokeLinecap: "round",
|
|
354
354
|
strokeLinejoin: "round",
|
|
355
355
|
width: "1em",
|
|
356
356
|
height: "1em"
|
|
357
|
-
}, props), _g$
|
|
357
|
+
}, props), _g$2m || (_g$2m = /*#__PURE__*/React.createElement("g", {
|
|
358
358
|
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
359
359
|
stroke: "currentColor"
|
|
360
360
|
}, /*#__PURE__*/React.createElement("path", {
|
|
361
361
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
362
|
-
}))), _defs$
|
|
362
|
+
}))), _defs$1t || (_defs$1t = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
363
363
|
id: "info_svg__clip0_8_5377"
|
|
364
364
|
}, /*#__PURE__*/React.createElement("path", {
|
|
365
365
|
fill: "currentColor",
|
|
@@ -367,19 +367,19 @@ function SvgInfo(props) {
|
|
|
367
367
|
})))));
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
var _g$
|
|
370
|
+
var _g$2l;
|
|
371
371
|
|
|
372
|
-
function _extends$
|
|
372
|
+
function _extends$4l() { _extends$4l = 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$4l.apply(this, arguments); }
|
|
373
373
|
|
|
374
374
|
function SvgLock(props) {
|
|
375
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
375
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4l({
|
|
376
376
|
viewBox: "0 0 16 16",
|
|
377
377
|
fill: "none",
|
|
378
378
|
strokeLinecap: "round",
|
|
379
379
|
strokeLinejoin: "round",
|
|
380
380
|
width: "1em",
|
|
381
381
|
height: "1em"
|
|
382
|
-
}, props), _g$
|
|
382
|
+
}, props), _g$2l || (_g$2l = /*#__PURE__*/React.createElement("g", {
|
|
383
383
|
stroke: "currentColor"
|
|
384
384
|
}, /*#__PURE__*/React.createElement("path", {
|
|
385
385
|
d: "M12.667 7.333H3.333C2.597 7.333 2 7.93 2 8.668v4.667c0 .736.597 1.333 1.333 1.333h9.334c.736 0 1.333-.597 1.333-1.333V8.667c0-.737-.597-1.333-1.333-1.333z"
|
|
@@ -388,24 +388,24 @@ function SvgLock(props) {
|
|
|
388
388
|
}))));
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
var _g$
|
|
391
|
+
var _g$2h, _defs$1r;
|
|
392
392
|
|
|
393
|
-
function _extends$
|
|
393
|
+
function _extends$47() { _extends$47 = 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$47.apply(this, arguments); }
|
|
394
394
|
|
|
395
395
|
function SvgMinusCircle(props) {
|
|
396
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
396
|
+
return /*#__PURE__*/React.createElement("svg", _extends$47({
|
|
397
397
|
viewBox: "0 0 16 16",
|
|
398
398
|
fill: "none",
|
|
399
399
|
strokeLinecap: "round",
|
|
400
400
|
strokeLinejoin: "round",
|
|
401
401
|
width: "1em",
|
|
402
402
|
height: "1em"
|
|
403
|
-
}, props), _g$
|
|
403
|
+
}, props), _g$2h || (_g$2h = /*#__PURE__*/React.createElement("g", {
|
|
404
404
|
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
405
405
|
stroke: "currentColor"
|
|
406
406
|
}, /*#__PURE__*/React.createElement("path", {
|
|
407
407
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
408
|
-
}))), _defs$
|
|
408
|
+
}))), _defs$1r || (_defs$1r = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
409
409
|
id: "minus-circle_svg__clip0_8_5970"
|
|
410
410
|
}, /*#__PURE__*/React.createElement("path", {
|
|
411
411
|
fill: "currentColor",
|
|
@@ -415,10 +415,10 @@ function SvgMinusCircle(props) {
|
|
|
415
415
|
|
|
416
416
|
var _path$1M;
|
|
417
417
|
|
|
418
|
-
function _extends$
|
|
418
|
+
function _extends$40() { _extends$40 = 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$40.apply(this, arguments); }
|
|
419
419
|
|
|
420
420
|
function SvgPlus(props) {
|
|
421
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
421
|
+
return /*#__PURE__*/React.createElement("svg", _extends$40({
|
|
422
422
|
viewBox: "0 0 16 16",
|
|
423
423
|
fill: "none",
|
|
424
424
|
strokeLinecap: "round",
|
|
@@ -431,24 +431,24 @@ function SvgPlus(props) {
|
|
|
431
431
|
})));
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
var _g$
|
|
434
|
+
var _g$2e, _defs$1o;
|
|
435
435
|
|
|
436
|
-
function _extends$
|
|
436
|
+
function _extends$3$() { _extends$3$ = 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$3$.apply(this, arguments); }
|
|
437
437
|
|
|
438
438
|
function SvgPlusCircle(props) {
|
|
439
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
439
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3$({
|
|
440
440
|
viewBox: "0 0 16 16",
|
|
441
441
|
fill: "none",
|
|
442
442
|
strokeLinecap: "round",
|
|
443
443
|
strokeLinejoin: "round",
|
|
444
444
|
width: "1em",
|
|
445
445
|
height: "1em"
|
|
446
|
-
}, props), _g$
|
|
446
|
+
}, props), _g$2e || (_g$2e = /*#__PURE__*/React.createElement("g", {
|
|
447
447
|
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
448
448
|
stroke: "currentColor"
|
|
449
449
|
}, /*#__PURE__*/React.createElement("path", {
|
|
450
450
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
|
|
451
|
-
}))), _defs$
|
|
451
|
+
}))), _defs$1o || (_defs$1o = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
452
452
|
id: "plus-circle_svg__clip0_8_5870"
|
|
453
453
|
}, /*#__PURE__*/React.createElement("path", {
|
|
454
454
|
fill: "currentColor",
|
|
@@ -458,10 +458,10 @@ function SvgPlusCircle(props) {
|
|
|
458
458
|
|
|
459
459
|
var _path$1u;
|
|
460
460
|
|
|
461
|
-
function _extends$
|
|
461
|
+
function _extends$3v() { _extends$3v = 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$3v.apply(this, arguments); }
|
|
462
462
|
|
|
463
463
|
function SvgWarning(props) {
|
|
464
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
464
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3v({
|
|
465
465
|
viewBox: "0 0 16 16",
|
|
466
466
|
fill: "none",
|
|
467
467
|
strokeLinecap: "round",
|
|
@@ -476,10 +476,10 @@ function SvgWarning(props) {
|
|
|
476
476
|
|
|
477
477
|
var _path$18;
|
|
478
478
|
|
|
479
|
-
function _extends$
|
|
479
|
+
function _extends$2V() { _extends$2V = 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$2V.apply(this, arguments); }
|
|
480
480
|
|
|
481
481
|
function SvgTrash(props) {
|
|
482
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
482
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2V({
|
|
483
483
|
viewBox: "0 0 16 16",
|
|
484
484
|
fill: "none",
|
|
485
485
|
strokeLinecap: "round",
|
|
@@ -492,19 +492,19 @@ function SvgTrash(props) {
|
|
|
492
492
|
})));
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
var _g$
|
|
495
|
+
var _g$12;
|
|
496
496
|
|
|
497
|
-
function _extends$
|
|
497
|
+
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); }
|
|
498
498
|
|
|
499
499
|
function SvgRestaurantMenu(props) {
|
|
500
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
500
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1H({
|
|
501
501
|
viewBox: "0 0 16 16",
|
|
502
502
|
fill: "none",
|
|
503
503
|
strokeLinecap: "round",
|
|
504
504
|
strokeLinejoin: "round",
|
|
505
505
|
width: "1em",
|
|
506
506
|
height: "1em"
|
|
507
|
-
}, props), _g$
|
|
507
|
+
}, props), _g$12 || (_g$12 = /*#__PURE__*/React.createElement("g", {
|
|
508
508
|
stroke: "currentColor"
|
|
509
509
|
}, /*#__PURE__*/React.createElement("path", {
|
|
510
510
|
d: "M11.334.667l-8 2.666h8V.667zM3.333 3.333h9.333v11.333H3.333zM5.333 8h5.334m-5.334 2.333h1m2 0h2.334"
|
|
@@ -513,10 +513,10 @@ function SvgRestaurantMenu(props) {
|
|
|
513
513
|
|
|
514
514
|
var _path$x;
|
|
515
515
|
|
|
516
|
-
function _extends$
|
|
516
|
+
function _extends$1q() { _extends$1q = 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$1q.apply(this, arguments); }
|
|
517
517
|
|
|
518
518
|
function SvgDollarSign(props) {
|
|
519
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
519
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1q({
|
|
520
520
|
viewBox: "0 0 16 16",
|
|
521
521
|
fill: "none",
|
|
522
522
|
strokeLinecap: "round",
|
|
@@ -531,10 +531,10 @@ function SvgDollarSign(props) {
|
|
|
531
531
|
|
|
532
532
|
var _path$h, _path2$3;
|
|
533
533
|
|
|
534
|
-
function _extends$
|
|
534
|
+
function _extends$D() { _extends$D = 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$D.apply(this, arguments); }
|
|
535
535
|
|
|
536
536
|
function SvgReviews(props) {
|
|
537
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
537
|
+
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
538
538
|
viewBox: "0 0 16 16",
|
|
539
539
|
fill: "none",
|
|
540
540
|
strokeLinecap: "round",
|
|
@@ -590,10 +590,10 @@ function __rest(s, e) {
|
|
|
590
590
|
|
|
591
591
|
var _path$1D;
|
|
592
592
|
|
|
593
|
-
function _extends$
|
|
593
|
+
function _extends$3H() { _extends$3H = 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$3H.apply(this, arguments); }
|
|
594
594
|
|
|
595
595
|
function SvgUser(props) {
|
|
596
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
596
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3H({
|
|
597
597
|
viewBox: "0 0 16 16",
|
|
598
598
|
fill: "none",
|
|
599
599
|
strokeLinecap: "round",
|
|
@@ -1910,7 +1910,7 @@ var MultipleSelectControl = function (props) {
|
|
|
1910
1910
|
}))));
|
|
1911
1911
|
};
|
|
1912
1912
|
var MultipleQuantitySelectControl = function (props) {
|
|
1913
|
-
var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections;
|
|
1913
|
+
var modifiers = props.modifiers, isOutOfStock = props.isOutOfStock, onChange = props.onChange, disableNewSelections = props.disableNewSelections, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity;
|
|
1914
1914
|
var makeHandleChange = function (modifier) { return function (_e, customEvent) {
|
|
1915
1915
|
onChange({
|
|
1916
1916
|
isRadio: false,
|
|
@@ -1922,12 +1922,22 @@ var MultipleQuantitySelectControl = function (props) {
|
|
|
1922
1922
|
});
|
|
1923
1923
|
}; };
|
|
1924
1924
|
return (React__default.createElement(FormControl, { fullWidth: true },
|
|
1925
|
-
React__default.createElement(FormGroup, null, modifiers.map(function (modifier) { return (React__default.createElement(Box, { key: modifier.id, style: { justifyContent: 'space-between',
|
|
1925
|
+
React__default.createElement(FormGroup, null, modifiers.map(function (modifier) { return (React__default.createElement(Box, { key: modifier.id, style: { justifyContent: 'space-between', flexDirection: 'column' }, display: "flex" },
|
|
1926
1926
|
React__default.createElement(Box, { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" },
|
|
1927
1927
|
React__default.createElement(Label, { name: modifier.name, price: modifier.formattedPrice, disabled: isOutOfStock || modifier.outOfStock }),
|
|
1928
1928
|
modifier.outOfStock && (React__default.createElement(Box, { minWidth: "90px", marginLeft: 2 },
|
|
1929
1929
|
React__default.createElement(StatusTag, { color: "warning", label: "Out of stock", variant: "outlined", size: "md" }))),
|
|
1930
|
-
!modifier.outOfStock && (React__default.createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock })))
|
|
1930
|
+
!modifier.outOfStock && (React__default.createElement(QuantityPicker, { variation: "modifierCount", value: modifier.quantity, disableIncrement: disableNewSelections, preventManualChange: true, onChange: makeHandleChange(modifier), disabled: isOutOfStock || modifier.outOfStock }))),
|
|
1931
|
+
React__default.createElement(Box, { display: "flex", alignItems: "flex-start", gridGap: 4 },
|
|
1932
|
+
modifier.hasModifiers && !modifier.outOfStock && (React__default.createElement(Options, { handleOptionsClick: function () { return handleOptionsClick(modifier.id); } })),
|
|
1933
|
+
selectionQuantity[modifier.id] &&
|
|
1934
|
+
selectionQuantity[modifier.id].requiredSelectionCount > 0 &&
|
|
1935
|
+
selectionQuantity[modifier.id].requiredSelectionCount !==
|
|
1936
|
+
selectionQuantity[modifier.id].currentSelectionCount && (React__default.createElement(Typography$1, { variant: "caption", color: "error" },
|
|
1937
|
+
selectionQuantity[modifier.id].currentSelectionCount,
|
|
1938
|
+
"/",
|
|
1939
|
+
selectionQuantity[modifier.id].requiredSelectionCount,
|
|
1940
|
+
" selected"))))); }))));
|
|
1931
1941
|
};
|
|
1932
1942
|
var ModifierControls = function (props) {
|
|
1933
1943
|
switch (props.type) {
|
|
@@ -1965,7 +1975,7 @@ var getStatusTagProps = function (props) {
|
|
|
1965
1975
|
return { color: color, label: label, variant: variant };
|
|
1966
1976
|
};
|
|
1967
1977
|
var DishModifierCard = function (props) {
|
|
1968
|
-
var aggregatePrice = props.aggregatePrice, name = props.name, disableNewSelections = props.disableNewSelections, modifiers = props.modifiers, value = props.value, messages = props.messages, onChange = props.onChange, type = props.type, error = props.error, isOutOfStock = props.isOutOfStock, handleOptionsClick = props.handleOptionsClick;
|
|
1978
|
+
var aggregatePrice = props.aggregatePrice, name = props.name, disableNewSelections = props.disableNewSelections, modifiers = props.modifiers, value = props.value, messages = props.messages, onChange = props.onChange, type = props.type, error = props.error, isOutOfStock = props.isOutOfStock, handleOptionsClick = props.handleOptionsClick, selectionQuantity = props.selectionQuantity;
|
|
1969
1979
|
var classes = useDishModifierCardStyles();
|
|
1970
1980
|
return (React__default.createElement(Box, { className: classes.root },
|
|
1971
1981
|
React__default.createElement(Box, { display: "flex", justifyContent: "space-between", width: "100%", alignItems: "center", height: "fit-content", marginBottom: 2 },
|
|
@@ -1973,7 +1983,7 @@ var DishModifierCard = function (props) {
|
|
|
1973
1983
|
!isOutOfStock && (React__default.createElement(Typography, { variant: "subtitle1", className: error ? classes.error : undefined }, messages.helperText))),
|
|
1974
1984
|
React__default.createElement(Typography, { className: classes.name }, name),
|
|
1975
1985
|
React__default.createElement(Box, null,
|
|
1976
|
-
React__default.createElement(ModifierControls, { value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice }))));
|
|
1986
|
+
React__default.createElement(ModifierControls, { value: value, modifiers: modifiers, isOutOfStock: isOutOfStock, onChange: onChange, disableNewSelections: disableNewSelections, type: type, messages: messages, handleOptionsClick: handleOptionsClick, aggregatePrice: aggregatePrice, selectionQuantity: selectionQuantity }))));
|
|
1977
1987
|
};
|
|
1978
1988
|
DishModifierCard.displayName = 'DishModifierCard';
|
|
1979
1989
|
|