@open-tender/store 1.1.6 → 1.1.7

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.
Files changed (141) hide show
  1. package/dist/cjs/components/Allergen.d.ts +1 -1
  2. package/dist/cjs/components/Allergen.js +1 -2
  3. package/dist/cjs/components/Applied.d.ts +1 -1
  4. package/dist/cjs/components/Applied.js +1 -2
  5. package/dist/cjs/components/ButtonLink.d.ts +1 -1
  6. package/dist/cjs/components/ButtonLink.js +1 -2
  7. package/dist/cjs/components/Card.d.ts +1 -1
  8. package/dist/cjs/components/Card.js +1 -2
  9. package/dist/cjs/components/Cart.d.ts +1 -1
  10. package/dist/cjs/components/Cart.js +2 -2
  11. package/dist/cjs/components/CartItem.d.ts +1 -1
  12. package/dist/cjs/components/CartItem.js +1 -1
  13. package/dist/cjs/components/CartUpsellItem.d.ts +1 -1
  14. package/dist/cjs/components/CartUpsellItem.js +2 -3
  15. package/dist/cjs/components/CartUpsells.d.ts +1 -1
  16. package/dist/cjs/components/CartUpsells.js +2 -2
  17. package/dist/cjs/components/CategoryItem.d.ts +1 -1
  18. package/dist/cjs/components/CategoryItem.js +2 -3
  19. package/dist/cjs/components/CategoryNav.d.ts +1 -1
  20. package/dist/cjs/components/CategoryNav.js +2 -2
  21. package/dist/cjs/components/CategoryNavItem.d.ts +1 -1
  22. package/dist/cjs/components/CategoryNavItem.js +2 -2
  23. package/dist/cjs/components/CategoryNavOther.d.ts +1 -1
  24. package/dist/cjs/components/CategoryNavOther.js +2 -3
  25. package/dist/cjs/components/CheckTotals.d.ts +1 -1
  26. package/dist/cjs/components/CheckTotals.js +1 -2
  27. package/dist/cjs/components/Discount.d.ts +1 -1
  28. package/dist/cjs/components/Discount.js +2 -3
  29. package/dist/cjs/components/ErrorMessage.d.ts +1 -1
  30. package/dist/cjs/components/ErrorMessage.js +1 -2
  31. package/dist/cjs/components/Header.d.ts +1 -1
  32. package/dist/cjs/components/Header.js +1 -1
  33. package/dist/cjs/components/Ingredients.d.ts +1 -1
  34. package/dist/cjs/components/Ingredients.js +1 -2
  35. package/dist/cjs/components/Input.d.ts +1 -1
  36. package/dist/cjs/components/Input.js +2 -3
  37. package/dist/cjs/components/ItemGroup.d.ts +1 -1
  38. package/dist/cjs/components/ItemGroup.js +2 -3
  39. package/dist/cjs/components/ItemGroups.d.ts +1 -1
  40. package/dist/cjs/components/ItemGroups.js +1 -1
  41. package/dist/cjs/components/ItemOption.d.ts +1 -1
  42. package/dist/cjs/components/ItemOption.js +2 -3
  43. package/dist/cjs/components/ItemSelections.d.ts +1 -1
  44. package/dist/cjs/components/ItemSelections.js +1 -1
  45. package/dist/cjs/components/Label.d.ts +1 -1
  46. package/dist/cjs/components/Label.js +1 -2
  47. package/dist/cjs/components/Loader.d.ts +1 -1
  48. package/dist/cjs/components/Loader.js +1 -2
  49. package/dist/cjs/components/MadeForNotes.d.ts +1 -1
  50. package/dist/cjs/components/MadeForNotes.js +2 -2
  51. package/dist/cjs/components/MenuCategory.d.ts +1 -1
  52. package/dist/cjs/components/MenuCategory.js +1 -2
  53. package/dist/cjs/components/MenuOther.d.ts +1 -1
  54. package/dist/cjs/components/MenuOther.js +1 -2
  55. package/dist/cjs/components/Modal.d.ts +1 -1
  56. package/dist/cjs/components/Modal.js +1 -2
  57. package/dist/cjs/components/ModalContent.d.ts +1 -1
  58. package/dist/cjs/components/ModalContent.js +1 -2
  59. package/dist/cjs/components/ModalHeader.d.ts +1 -1
  60. package/dist/cjs/components/ModalHeader.js +1 -2
  61. package/dist/cjs/components/NutritionalInfo.d.ts +1 -1
  62. package/dist/cjs/components/NutritionalInfo.js +2 -3
  63. package/dist/cjs/components/Option.d.ts +1 -1
  64. package/dist/cjs/components/Option.js +2 -2
  65. package/dist/cjs/components/OrderCard.d.ts +1 -1
  66. package/dist/cjs/components/OrderCard.js +6 -6
  67. package/dist/cjs/components/PointsReward.d.ts +1 -1
  68. package/dist/cjs/components/PointsReward.js +4 -4
  69. package/dist/cjs/components/PointsRewards.d.ts +1 -1
  70. package/dist/cjs/components/PointsRewards.js +2 -2
  71. package/dist/esm/components/Allergen.d.ts +1 -1
  72. package/dist/esm/components/Allergen.js +1 -2
  73. package/dist/esm/components/Applied.d.ts +1 -1
  74. package/dist/esm/components/Applied.js +1 -2
  75. package/dist/esm/components/ButtonLink.d.ts +1 -1
  76. package/dist/esm/components/ButtonLink.js +1 -2
  77. package/dist/esm/components/Card.d.ts +1 -1
  78. package/dist/esm/components/Card.js +1 -2
  79. package/dist/esm/components/Cart.d.ts +1 -1
  80. package/dist/esm/components/Cart.js +3 -3
  81. package/dist/esm/components/CartItem.d.ts +1 -1
  82. package/dist/esm/components/CartItem.js +2 -2
  83. package/dist/esm/components/CartUpsellItem.d.ts +1 -1
  84. package/dist/esm/components/CartUpsellItem.js +2 -3
  85. package/dist/esm/components/CartUpsells.d.ts +1 -1
  86. package/dist/esm/components/CartUpsells.js +3 -3
  87. package/dist/esm/components/CategoryItem.d.ts +1 -1
  88. package/dist/esm/components/CategoryItem.js +2 -3
  89. package/dist/esm/components/CategoryNav.d.ts +1 -1
  90. package/dist/esm/components/CategoryNav.js +3 -3
  91. package/dist/esm/components/CategoryNavItem.d.ts +1 -1
  92. package/dist/esm/components/CategoryNavItem.js +3 -3
  93. package/dist/esm/components/CategoryNavOther.d.ts +1 -1
  94. package/dist/esm/components/CategoryNavOther.js +2 -3
  95. package/dist/esm/components/CheckTotals.d.ts +1 -1
  96. package/dist/esm/components/CheckTotals.js +1 -2
  97. package/dist/esm/components/Discount.d.ts +1 -1
  98. package/dist/esm/components/Discount.js +2 -3
  99. package/dist/esm/components/ErrorMessage.d.ts +1 -1
  100. package/dist/esm/components/ErrorMessage.js +1 -2
  101. package/dist/esm/components/Header.d.ts +1 -1
  102. package/dist/esm/components/Header.js +2 -2
  103. package/dist/esm/components/Ingredients.d.ts +1 -1
  104. package/dist/esm/components/Ingredients.js +1 -2
  105. package/dist/esm/components/Input.d.ts +1 -1
  106. package/dist/esm/components/Input.js +2 -3
  107. package/dist/esm/components/ItemGroup.d.ts +1 -1
  108. package/dist/esm/components/ItemGroup.js +2 -3
  109. package/dist/esm/components/ItemGroups.d.ts +1 -1
  110. package/dist/esm/components/ItemGroups.js +2 -2
  111. package/dist/esm/components/ItemOption.d.ts +1 -1
  112. package/dist/esm/components/ItemOption.js +2 -3
  113. package/dist/esm/components/ItemSelections.d.ts +1 -1
  114. package/dist/esm/components/ItemSelections.js +2 -2
  115. package/dist/esm/components/Label.d.ts +1 -1
  116. package/dist/esm/components/Label.js +1 -2
  117. package/dist/esm/components/Loader.d.ts +1 -1
  118. package/dist/esm/components/Loader.js +1 -2
  119. package/dist/esm/components/MadeForNotes.d.ts +1 -1
  120. package/dist/esm/components/MadeForNotes.js +3 -3
  121. package/dist/esm/components/MenuCategory.d.ts +1 -1
  122. package/dist/esm/components/MenuCategory.js +1 -2
  123. package/dist/esm/components/MenuOther.d.ts +1 -1
  124. package/dist/esm/components/MenuOther.js +1 -2
  125. package/dist/esm/components/Modal.d.ts +1 -1
  126. package/dist/esm/components/Modal.js +1 -2
  127. package/dist/esm/components/ModalContent.d.ts +1 -1
  128. package/dist/esm/components/ModalContent.js +1 -2
  129. package/dist/esm/components/ModalHeader.d.ts +1 -1
  130. package/dist/esm/components/ModalHeader.js +1 -2
  131. package/dist/esm/components/NutritionalInfo.d.ts +1 -1
  132. package/dist/esm/components/NutritionalInfo.js +2 -3
  133. package/dist/esm/components/Option.d.ts +1 -1
  134. package/dist/esm/components/Option.js +3 -3
  135. package/dist/esm/components/OrderCard.d.ts +1 -1
  136. package/dist/esm/components/OrderCard.js +7 -7
  137. package/dist/esm/components/PointsReward.d.ts +1 -1
  138. package/dist/esm/components/PointsReward.js +5 -5
  139. package/dist/esm/components/PointsRewards.d.ts +1 -1
  140. package/dist/esm/components/PointsRewards.js +3 -3
  141. package/package.json +1 -1
@@ -3,6 +3,6 @@ import { AllergenProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
4
  declare const Allergen: ({ allergen, children }: {
5
5
  allergen: AllergenType;
6
- children?: (props: AllergenProps) => ReactNode;
6
+ children: (props: AllergenProps) => ReactNode;
7
7
  }) => ReactNode;
8
8
  export default Allergen;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Allergen = function (_a) {
7
- var allergen = _a.allergen, _b = _a.children, children = _b === void 0 ? ui_1.Allergen : _b;
6
+ var allergen = _a.allergen, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).allergen;
9
8
  return children({ config: config, allergen: allergen });
10
9
  };
@@ -1,6 +1,6 @@
1
1
  import { AppliedProps } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
3
  declare const Applied: ({ children }: {
4
- children?: (props: AppliedProps) => ReactNode;
4
+ children: (props: AppliedProps) => ReactNode;
5
5
  }) => ReactNode;
6
6
  export default Applied;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Applied = function (_a) {
7
- var _b = _a.children, children = _b === void 0 ? ui_1.Applied : _b;
6
+ var children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).applied;
9
8
  return children({ config: config });
10
9
  };
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  declare const ButtonLink: ({ onClick, label, children, style }: {
4
4
  onClick: () => void;
5
5
  label: string;
6
- children?: (props: ButtonLinkProps) => ReactNode;
6
+ children: (props: ButtonLinkProps) => ReactNode;
7
7
  style?: Styles;
8
8
  }) => ReactNode;
9
9
  export default ButtonLink;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var ButtonLink = function (_a) {
7
- var onClick = _a.onClick, label = _a.label, _b = _a.children, children = _b === void 0 ? ui_1.ButtonLink : _b, style = _a.style;
6
+ var onClick = _a.onClick, label = _a.label, children = _a.children, style = _a.style;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).buttonLink;
9
8
  return children({ config: config, style: style, children: label, onClick: onClick });
10
9
  };
@@ -2,6 +2,6 @@ import { CardProps } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
3
  declare const Card: ({ children, content }: {
4
4
  content: ReactNode;
5
- children?: (props: CardProps) => ReactNode;
5
+ children: (props: CardProps) => ReactNode;
6
6
  }) => ReactNode;
7
7
  export default Card;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Card = function (_a) {
7
- var _b = _a.children, children = _b === void 0 ? ui_1.Card : _b, content = _a.content;
6
+ var children = _a.children, content = _a.content;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).card;
9
8
  return children({ config: config, children: content });
10
9
  };
@@ -2,6 +2,6 @@ import { CartProps } from '@open-tender/ui';
2
2
  import React, { ReactNode } from 'react';
3
3
  declare const Cart: ({ navigate, children }: {
4
4
  navigate: (route: string) => void;
5
- children?: (props: CartProps) => ReactNode;
5
+ children: (props: CartProps) => ReactNode;
6
6
  }) => React.ReactNode;
7
7
  export default Cart;
@@ -8,11 +8,11 @@ var slices_1 = require("../slices");
8
8
  var CartItem_1 = tslib_1.__importDefault(require("./CartItem"));
9
9
  var CartUpsells_1 = tslib_1.__importDefault(require("./CartUpsells"));
10
10
  var Cart = function (_a) {
11
- var navigate = _a.navigate, _b = _a.children, children = _b === void 0 ? ui_1.Cart : _b;
11
+ var navigate = _a.navigate, children = _a.children;
12
12
  var dispatch = (0, hooks_1.useAppDispatch)();
13
13
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).cart;
14
14
  var cart = (0, hooks_1.useAppSelector)(slices_1.selectOrder).cart;
15
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectCartTotals), count = _c.count, total = _c.total;
15
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectCartTotals), count = _b.count, total = _b.total;
16
16
  var isOpen = (0, hooks_1.useAppSelector)(slices_1.selectCartSummary).isOpen;
17
17
  var isEmpty = !cart.length;
18
18
  var toggleCart = function () { return dispatch((0, slices_1.toggleCartSummary)()); };
@@ -6,6 +6,6 @@ declare const CartItem: ({ item, isLast, isEditable, navigate, children }: {
6
6
  isLast?: boolean;
7
7
  isEditable?: boolean;
8
8
  navigate: (route: string) => void;
9
- children?: (props: CartItemProps) => ReactNode;
9
+ children: (props: CartItemProps) => ReactNode;
10
10
  }) => React.ReactNode;
11
11
  export default CartItem;
@@ -7,7 +7,7 @@ var hooks_1 = require("../app/hooks");
7
7
  var slices_1 = require("../slices");
8
8
  var Quantity_1 = tslib_1.__importDefault(require("./Quantity"));
9
9
  var CartItem = function (_a) {
10
- var item = _a.item, _b = _a.isLast, isLast = _b === void 0 ? false : _b, _c = _a.isEditable, isEditable = _c === void 0 ? true : _c, navigate = _a.navigate, _d = _a.children, children = _d === void 0 ? ui_1.CartItem : _d;
10
+ var item = _a.item, _b = _a.isLast, isLast = _b === void 0 ? false : _b, _c = _a.isEditable, isEditable = _c === void 0 ? true : _c, navigate = _a.navigate, children = _a.children;
11
11
  var dispatch = (0, hooks_1.useAppDispatch)();
12
12
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).cartItem;
13
13
  var increment = function () { return dispatch((0, slices_1.incrementItemInCart)(item)); };
@@ -5,6 +5,6 @@ declare const CartUpsellItem: ({ item, callback, isLast, children }: {
5
5
  item: CartItem;
6
6
  callback?: () => void;
7
7
  isLast?: boolean;
8
- children?: (props: CartUpsellItemProps) => ReactNode;
8
+ children: (props: CartUpsellItemProps) => ReactNode;
9
9
  }) => ReactNode;
10
10
  export default CartUpsellItem;
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var utils_1 = require("@open-tender/utils");
5
4
  var hooks_1 = require("../app/hooks");
6
5
  var slices_1 = require("../slices");
7
6
  var CartUpsellItem = function (_a) {
8
- var item = _a.item, callback = _a.callback, isLast = _a.isLast, _b = _a.children, children = _b === void 0 ? ui_1.CartUpsellItem : _b;
7
+ var item = _a.item, callback = _a.callback, isLast = _a.isLast, children = _a.children;
9
8
  var dispatch = (0, hooks_1.useAppDispatch)();
10
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.cartUpsellItem, cardConfig = _c.card;
9
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.cartUpsellItem, cardConfig = _b.card;
11
10
  var builtItem = (0, utils_1.useBuilder)(item).item;
12
11
  var quantity = builtItem.quantity, groups = builtItem.groups;
13
12
  var groupsBelowMin = (0, utils_1.hasGroupsBelowMin)(null, groups);
@@ -1,6 +1,6 @@
1
1
  import { CartUpsellsProps } from '@open-tender/ui';
2
2
  import React, { ReactNode } from 'react';
3
3
  declare const CartUpsells: ({ children }: {
4
- children?: (props: CartUpsellsProps) => ReactNode;
4
+ children: (props: CartUpsellsProps) => ReactNode;
5
5
  }) => React.ReactNode;
6
6
  export default CartUpsells;
@@ -8,10 +8,10 @@ var hooks_1 = require("../app/hooks");
8
8
  var slices_1 = require("../slices");
9
9
  var CartUpsellItem_1 = tslib_1.__importDefault(require("./CartUpsellItem"));
10
10
  var CartUpsells = function (_a) {
11
- var _b = _a.children, children = _b === void 0 ? ui_1.CartUpsells : _b;
11
+ var children = _a.children;
12
12
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).cartUpsells;
13
13
  var cartIds = (0, hooks_1.useAppSelector)(slices_1.selectCartIds);
14
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectMenu), categories = _c.categories, soldOut = _c.soldOut;
14
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectMenu), categories = _b.categories, soldOut = _b.soldOut;
15
15
  var upsellItems = (0, react_1.useMemo)(function () { return (0, utils_1.makeUpsellItemsForCart)(categories, cartIds, soldOut); }, [categories, cartIds, soldOut]);
16
16
  var renderCartUpsellItem = function (item, isLast) { return (react_1.default.createElement(CartUpsellItem_1.default, { item: item, isLast: isLast, children: ui_1.CartUpsellItem })); };
17
17
  if (!upsellItems.length)
@@ -6,6 +6,6 @@ declare const CategoryItem: ({ item, favorite, allergenAlerts, navigate, childre
6
6
  favorite?: MenuItemFavorite;
7
7
  allergenAlerts?: string[];
8
8
  navigate: (route: string) => void;
9
- children?: (props: CategoryItemProps) => ReactNode;
9
+ children: (props: CategoryItemProps) => ReactNode;
10
10
  }) => ReactNode;
11
11
  export default CategoryItem;
@@ -1,19 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var ui_1 = require("@open-tender/ui");
5
4
  var utils_1 = require("@open-tender/utils");
6
5
  var hooks_1 = require("../app/hooks");
7
6
  var slices_1 = require("../slices");
8
7
  var CategoryItem = function (_a) {
9
- var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, navigate = _a.navigate, _b = _a.children, children = _b === void 0 ? ui_1.CategoryItem : _b;
8
+ var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, navigate = _a.navigate, children = _a.children;
10
9
  var dispatch = (0, hooks_1.useAppDispatch)();
11
10
  var categoryItem = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).categoryItem;
12
11
  var soldOut = (0, hooks_1.useAppSelector)(slices_1.selectMenu).soldOut;
13
12
  var cartCounts = (0, hooks_1.useAppSelector)(slices_1.selectCartCounts);
14
13
  var hasPoints = false;
15
14
  var displaySettings = {};
16
- var _c = displaySettings || {}, _d = _c.calories, showCals = _d === void 0 ? false : _d, _e = _c.tags, showTags = _e === void 0 ? false : _e, _f = _c.allergens, showAllergens = _f === void 0 ? false : _f;
15
+ var _b = displaySettings || {}, _c = _b.calories, showCals = _c === void 0 ? false : _c, _d = _b.tags, showTags = _d === void 0 ? false : _d, _e = _b.allergens, showAllergens = _e === void 0 ? false : _e;
17
16
  var showDesc = 'SHOW';
18
17
  var orderItem = favorite
19
18
  ? tslib_1.__assign(tslib_1.__assign({}, (0, utils_1.rehydrateOrderItem)(item, favorite.item)), { index: -1 }) : (0, utils_1.makeOrderItem)(item, undefined, soldOut, undefined, hasPoints);
@@ -1,7 +1,7 @@
1
1
  import { CategoryNavProps } from '@open-tender/ui';
2
2
  import React, { ReactNode } from 'react';
3
3
  declare const CategoryNav: ({ children, navigate }: {
4
- children?: (props: CategoryNavProps) => ReactNode;
4
+ children: (props: CategoryNavProps) => ReactNode;
5
5
  navigate: (route: string) => void;
6
6
  }) => React.ReactNode;
7
7
  export default CategoryNav;
@@ -8,9 +8,9 @@ var slices_1 = require("../slices");
8
8
  var CategoryNavItem_1 = tslib_1.__importDefault(require("./CategoryNavItem"));
9
9
  var CategoryNavOther_1 = tslib_1.__importDefault(require("./CategoryNavOther"));
10
10
  var CategoryNav = function (_a) {
11
- var _b = _a.children, children = _b === void 0 ? ui_1.CategoryNav : _b, navigate = _a.navigate;
11
+ var children = _a.children, navigate = _a.navigate;
12
12
  var categoryNav = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).categoryNav;
13
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectMenu), categories = _c.categories, featured = _c.featured, favorites = _c.favorites, recents = _c.recents;
13
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectMenu), categories = _b.categories, featured = _b.featured, favorites = _b.favorites, recents = _b.recents;
14
14
  var renderCategoryNavOther = function (title, path) { return (react_1.default.createElement(CategoryNavOther_1.default, { navigate: navigate, title: title, path: path, children: ui_1.CategoryNavOther })); };
15
15
  var renderCategoryNavItem = function (item) { return (react_1.default.createElement(CategoryNavItem_1.default, { navigate: navigate, category: item, children: ui_1.CategoryNavItem })); };
16
16
  return children({
@@ -4,6 +4,6 @@ import { ReactNode } from 'react';
4
4
  declare const CategoryNavItem: ({ category, children, navigate }: {
5
5
  category: MenuCategory;
6
6
  navigate: (route: string) => void;
7
- children?: (props: CategoryNavItemProps) => ReactNode;
7
+ children: (props: CategoryNavItemProps) => ReactNode;
8
8
  }) => ReactNode;
9
9
  export default CategoryNavItem;
@@ -4,11 +4,11 @@ var ui_1 = require("@open-tender/ui");
4
4
  var hooks_1 = require("../app/hooks");
5
5
  var slices_1 = require("../slices");
6
6
  var CategoryNavItem = function (_a) {
7
- var category = _a.category, _b = _a.children, children = _b === void 0 ? ui_1.CategoryNavItem : _b, navigate = _a.navigate;
7
+ var category = _a.category, children = _a.children, navigate = _a.navigate;
8
8
  var dispatch = (0, hooks_1.useAppDispatch)();
9
9
  var current = (0, hooks_1.useAppSelector)(slices_1.selectCurrentCategory);
10
10
  var isCurrent = (current === null || current === void 0 ? void 0 : current.id) === category.id;
11
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), categoryNavItem = _c.categoryNavItem, categoryNavItemSelected = _c.categoryNavItemSelected;
11
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), categoryNavItem = _b.categoryNavItem, categoryNavItemSelected = _b.categoryNavItemSelected;
12
12
  var config = isCurrent ? categoryNavItemSelected : categoryNavItem;
13
13
  var name = category.name;
14
14
  var imageUrl = (0, ui_1.makeImageUrl)(category);
@@ -4,6 +4,6 @@ declare const CategoryNavOther: ({ title, path, navigate, children }: {
4
4
  title: string;
5
5
  path: string;
6
6
  navigate: (route: string) => void;
7
- children?: (props: CategoryNavOtherProps) => ReactNode;
7
+ children: (props: CategoryNavOtherProps) => ReactNode;
8
8
  }) => ReactNode;
9
9
  export default CategoryNavOther;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var CategoryNavOther = function (_a) {
7
- var title = _a.title, path = _a.path, navigate = _a.navigate, _b = _a.children, children = _b === void 0 ? ui_1.CategoryNavOther : _b;
6
+ var title = _a.title, path = _a.path, navigate = _a.navigate, children = _a.children;
8
7
  var dispatch = (0, hooks_1.useAppDispatch)();
9
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), categoryNavItem = _c.categoryNavItem, categoryNavItemSelected = _c.categoryNavItemSelected;
8
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), categoryNavItem = _b.categoryNavItem, categoryNavItemSelected = _b.categoryNavItemSelected;
10
9
  var currentSection = (0, hooks_1.useAppSelector)(slices_1.selectCurrentSection);
11
10
  var isCurrent = path === currentSection;
12
11
  var config = isCurrent ? categoryNavItemSelected : categoryNavItem;
@@ -3,6 +3,6 @@ import { CheckTotalsProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
4
  declare const CheckTotals: ({ check, children }: {
5
5
  check: Order;
6
- children?: (props: CheckTotalsProps) => ReactNode;
6
+ children: (props: CheckTotalsProps) => ReactNode;
7
7
  }) => ReactNode;
8
8
  export default CheckTotals;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var CheckTotals = function (_a) {
7
- var check = _a.check, _b = _a.children, children = _b === void 0 ? ui_1.CheckTotals : _b;
6
+ var check = _a.check, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkTotals;
9
8
  return children({ config: config, check: check });
10
9
  };
@@ -3,6 +3,6 @@ import { DiscountProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
4
  declare const Discount: ({ discount, children }: {
5
5
  discount: DiscountType;
6
- children?: (props: DiscountProps) => ReactNode;
6
+ children: (props: DiscountProps) => ReactNode;
7
7
  }) => ReactNode;
8
8
  export default Discount;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Discount = function (_a) {
7
- var discount = _a.discount, _b = _a.children, children = _b === void 0 ? ui_1.Discount : _b;
8
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.discount, cardConfig = _c.card;
6
+ var discount = _a.discount, children = _a.children;
7
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.discount, cardConfig = _b.card;
9
8
  if (!config)
10
9
  return null;
11
10
  return children({ config: config, discount: discount, cardConfig: cardConfig });
@@ -4,6 +4,6 @@ declare const ErrorMessage: ({ content, icon, style, children }: {
4
4
  content: string;
5
5
  icon?: ReactNode;
6
6
  style?: Styles;
7
- children?: (props: ErrorMessageProps) => ReactNode;
7
+ children: (props: ErrorMessageProps) => ReactNode;
8
8
  }) => ReactNode;
9
9
  export default ErrorMessage;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var ErrorMessage = function (_a) {
7
- var content = _a.content, icon = _a.icon, style = _a.style, _b = _a.children, children = _b === void 0 ? ui_1.ErrorMessage : _b;
6
+ var content = _a.content, icon = _a.icon, style = _a.style, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).errorMessage;
9
8
  return children({ config: config, icon: icon, style: style, children: content });
10
9
  };
@@ -4,6 +4,6 @@ declare const Header: ({ to, pathname, navigate, children }: {
4
4
  to?: string;
5
5
  pathname: string;
6
6
  navigate: (route: string) => void;
7
- children?: (props: HeaderProps) => ReactNode;
7
+ children: (props: HeaderProps) => ReactNode;
8
8
  }) => React.ReactNode;
9
9
  export default Header;
@@ -7,7 +7,7 @@ var hooks_1 = require("../app/hooks");
7
7
  var slices_1 = require("../slices");
8
8
  var SignInButton_1 = tslib_1.__importDefault(require("./SignInButton"));
9
9
  var Header = function (_a) {
10
- var to = _a.to, pathname = _a.pathname, navigate = _a.navigate, _b = _a.children, children = _b === void 0 ? ui_1.Header : _b;
10
+ var to = _a.to, pathname = _a.pathname, navigate = _a.navigate, children = _a.children;
11
11
  var dispatch = (0, hooks_1.useAppDispatch)();
12
12
  var header = ((0, hooks_1.useAppSelector)(slices_1.selectKioskConfig) || {}).header;
13
13
  var back = function () {
@@ -5,6 +5,6 @@ declare const Ingredients: ({ title, subtitle, ingredients, close, children }: {
5
5
  subtitle?: string;
6
6
  ingredients: string;
7
7
  close: () => void;
8
- children?: (props: IngredientsProps) => ReactNode;
8
+ children: (props: IngredientsProps) => ReactNode;
9
9
  }) => ReactNode;
10
10
  export default Ingredients;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Ingredients = function (_a) {
7
- var title = _a.title, subtitle = _a.subtitle, ingredients = _a.ingredients, close = _a.close, _b = _a.children, children = _b === void 0 ? ui_1.Ingredients : _b;
6
+ var title = _a.title, subtitle = _a.subtitle, ingredients = _a.ingredients, close = _a.close, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).ingredients;
9
8
  var handlers = { close: close };
10
9
  return children({ config: config, handlers: handlers, title: title, subtitle: subtitle, ingredients: ingredients });
@@ -6,6 +6,6 @@ declare const Input: ({ label, value, setValue, isRequired, style, children }: {
6
6
  setValue: (value: string) => void;
7
7
  isRequired?: boolean;
8
8
  style?: Styles;
9
- children?: (props: InputProps) => ReactNode;
9
+ children: (props: InputProps) => ReactNode;
10
10
  }) => ReactNode;
11
11
  export default Input;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Input = function (_a) {
7
- var label = _a.label, value = _a.value, setValue = _a.setValue, isRequired = _a.isRequired, style = _a.style, _b = _a.children, children = _b === void 0 ? ui_1.Input : _b;
8
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.input, labelConfig = _c.label;
6
+ var label = _a.label, value = _a.value, setValue = _a.setValue, isRequired = _a.isRequired, style = _a.style, children = _a.children;
7
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.input, labelConfig = _b.label;
9
8
  var update = function (evt) {
10
9
  setValue(evt.target.value);
11
10
  };
@@ -4,6 +4,6 @@ import { ReactNode } from 'react';
4
4
  declare const ItemGroup: ({ group, content, children }: {
5
5
  group: CartItemGroup;
6
6
  content: ReactNode;
7
- children?: (props: ItemGroupProps) => ReactNode;
7
+ children: (props: ItemGroupProps) => ReactNode;
8
8
  }) => ReactNode;
9
9
  export default ItemGroup;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var utils_1 = require("@open-tender/utils");
5
4
  var hooks_1 = require("../app/hooks");
6
5
  var slices_1 = require("../slices");
7
6
  var ItemGroup = function (_a) {
8
- var group = _a.group, content = _a.content, _b = _a.children, children = _b === void 0 ? ui_1.ItemGroup : _b;
9
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.itemGroup, errorMessageConfig = _c.errorMessage, successMessageConfig = _c.successMessage;
7
+ var group = _a.group, content = _a.content, children = _a.children;
8
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.itemGroup, errorMessageConfig = _b.errorMessage, successMessageConfig = _b.successMessage;
10
9
  var modifierGroup = (0, utils_1.useModifierGroup)(group);
11
10
  return children({
12
11
  config: config,
@@ -6,6 +6,6 @@ declare const ItemGroups: ({ handlers, groups, levels, excludeSize, children }:
6
6
  groups: CartItemGroups;
7
7
  levels: CartLevels;
8
8
  excludeSize?: boolean;
9
- children?: (props: ItemGroupsProps) => ReactNode;
9
+ children: (props: ItemGroupsProps) => ReactNode;
10
10
  }) => React.ReactNode;
11
11
  export default ItemGroups;
@@ -8,7 +8,7 @@ var slices_1 = require("../slices");
8
8
  var ItemGroup_1 = tslib_1.__importDefault(require("./ItemGroup"));
9
9
  var ItemOption_1 = tslib_1.__importDefault(require("./ItemOption"));
10
10
  var ItemGroups = function (_a) {
11
- var handlers = _a.handlers, groups = _a.groups, levels = _a.levels, _b = _a.excludeSize, excludeSize = _b === void 0 ? true : _b, _c = _a.children, children = _c === void 0 ? ui_1.ItemGroups : _c;
11
+ var handlers = _a.handlers, groups = _a.groups, levels = _a.levels, _b = _a.excludeSize, excludeSize = _b === void 0 ? true : _b, children = _a.children;
12
12
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).itemGroups;
13
13
  var renderItemOption = function (group, option) { return (react_1.default.createElement(ItemOption_1.default, { levels: levels, handlers: handlers, group: group, option: option, children: ui_1.ItemOption })); };
14
14
  var renderItemGroup = function (group, content) { return (react_1.default.createElement(ItemGroup_1.default, { group: group, content: content, children: ui_1.ItemGroup })); };
@@ -6,6 +6,6 @@ declare const ItemOption: ({ handlers, group, option, levels, children }: {
6
6
  group: CartItemGroup;
7
7
  option: CartItemOption;
8
8
  levels: CartLevels;
9
- children?: (props: ItemOptionProps) => ReactNode;
9
+ children: (props: ItemOptionProps) => ReactNode;
10
10
  }) => ReactNode;
11
11
  export default ItemOption;
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var utils_1 = require("@open-tender/utils");
5
4
  var hooks_1 = require("../app/hooks");
6
5
  var slices_1 = require("../slices");
7
6
  var ItemOption = function (_a) {
8
- var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, _b = _a.children, children = _b === void 0 ? ui_1.ItemOption : _b;
7
+ var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, children = _a.children;
9
8
  var dispatch = (0, hooks_1.useAppDispatch)();
10
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.itemOption, cardConfig = _c.card;
9
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.itemOption, cardConfig = _b.card;
11
10
  var toggleOption = handlers.toggleOption, incrementOption = handlers.incrementOption, decrementOption = handlers.decrementOption, setOptionQuantity = handlers.setOptionQuantity;
12
11
  var allergenAlerts = [];
13
12
  var modifier = (0, utils_1.useModifier)(group, option, levels, toggleOption, incrementOption, decrementOption, setOptionQuantity, allergenAlerts);
@@ -6,6 +6,6 @@ declare const ItemSelections: ({ handlers, groups, levels, isIncomplete, childre
6
6
  groups: CartItemGroups;
7
7
  levels: CartLevels;
8
8
  isIncomplete: boolean;
9
- children?: (props: ItemSelectionsProps) => ReactNode;
9
+ children: (props: ItemSelectionsProps) => ReactNode;
10
10
  }) => React.ReactNode;
11
11
  export default ItemSelections;
@@ -8,7 +8,7 @@ var slices_1 = require("../slices");
8
8
  var ErrorMessage_1 = tslib_1.__importDefault(require("./ErrorMessage"));
9
9
  var ItemOption_1 = tslib_1.__importDefault(require("./ItemOption"));
10
10
  var ItemSelections = function (_a) {
11
- var handlers = _a.handlers, groups = _a.groups, levels = _a.levels, isIncomplete = _a.isIncomplete, _b = _a.children, children = _b === void 0 ? ui_1.ItemSelections : _b;
11
+ var handlers = _a.handlers, groups = _a.groups, levels = _a.levels, isIncomplete = _a.isIncomplete, children = _a.children;
12
12
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).itemSelections;
13
13
  var renderErrorMessage = function (icon, children) { return (react_1.default.createElement(ErrorMessage_1.default, { icon: icon, content: children, children: ui_1.ErrorMessage })); };
14
14
  var renderItemOption = function (group, option) { return (react_1.default.createElement(ItemOption_1.default, { levels: levels, handlers: handlers, group: group, option: option, children: ui_1.ItemOption })); };
@@ -5,6 +5,6 @@ declare const Label: ({ content, label, isRequired, style, children }: {
5
5
  label?: string;
6
6
  isRequired?: boolean;
7
7
  style?: Styles;
8
- children?: (props: LabelProps) => ReactNode;
8
+ children: (props: LabelProps) => ReactNode;
9
9
  }) => ReactNode;
10
10
  export default Label;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Label = function (_a) {
7
- var content = _a.content, label = _a.label, isRequired = _a.isRequired, style = _a.style, _b = _a.children, children = _b === void 0 ? ui_1.Label : _b;
6
+ var content = _a.content, label = _a.label, isRequired = _a.isRequired, style = _a.style, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).label;
9
8
  return children({ config: config, label: label, isRequired: isRequired, style: style, children: content });
10
9
  };
@@ -3,6 +3,6 @@ import { ReactNode } from 'react';
3
3
  declare const Loader: ({ text, style, children }: {
4
4
  text?: string;
5
5
  style?: Styles;
6
- children?: (props: LoaderProps) => ReactNode;
6
+ children: (props: LoaderProps) => ReactNode;
7
7
  }) => ReactNode;
8
8
  export default Loader;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var slices_1 = require("../slices");
6
5
  var Loader = function (_a) {
7
- var text = _a.text, style = _a.style, _b = _a.children, children = _b === void 0 ? ui_1.Loader : _b;
6
+ var text = _a.text, style = _a.style, children = _a.children;
8
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).loader;
9
8
  return children({ config: config, text: text, style: style });
10
9
  };
@@ -9,6 +9,6 @@ declare const MadeForNotes: ({ subtitle, hasMadeFor, madeFor, setMadeFor, hasNot
9
9
  notes: string | null;
10
10
  setNotes: (notes: string) => void;
11
11
  close: () => void;
12
- children?: (props: MadeForNotesProps) => ReactNode;
12
+ children: (props: MadeForNotesProps) => ReactNode;
13
13
  }) => React.ReactNode;
14
14
  export default MadeForNotes;
@@ -8,8 +8,8 @@ var slices_1 = require("../slices");
8
8
  var Input_1 = tslib_1.__importDefault(require("./Input"));
9
9
  var TextArea_1 = tslib_1.__importDefault(require("./TextArea"));
10
10
  var MadeForNotes = function (_a) {
11
- var subtitle = _a.subtitle, hasMadeFor = _a.hasMadeFor, madeFor = _a.madeFor, setMadeFor = _a.setMadeFor, hasNotes = _a.hasNotes, notes = _a.notes, setNotes = _a.setNotes, close = _a.close, _b = _a.children, children = _b === void 0 ? ui_1.MadeForNotes : _b;
12
- var _c = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _c.madeForNotes, modalContentConfig = _c.modalContent;
11
+ var subtitle = _a.subtitle, hasMadeFor = _a.hasMadeFor, madeFor = _a.madeFor, setMadeFor = _a.setMadeFor, hasNotes = _a.hasNotes, notes = _a.notes, setNotes = _a.setNotes, close = _a.close, children = _a.children;
12
+ var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.madeForNotes, modalContentConfig = _b.modalContent;
13
13
  var handlers = { submit: close };
14
14
  var renderInput = function (label, value, isRequired, style) { return (react_1.default.createElement(Input_1.default, { label: label, setValue: setMadeFor, value: value, isRequired: isRequired, style: style, children: ui_1.Input })); };
15
15
  var renderTextArea = function (label, value, isRequired, style) { return (react_1.default.createElement(TextArea_1.default, { label: label, setValue: setNotes, value: value, isRequired: isRequired, style: style, children: ui_1.Input })); };
@@ -4,6 +4,6 @@ import { ReactNode } from 'react';
4
4
  declare const MenuCategory: ({ category, navigate, children }: {
5
5
  category: MenuCategoryType;
6
6
  navigate: (route: string) => void;
7
- children?: (props: MenuCategoryProps) => ReactNode;
7
+ children: (props: MenuCategoryProps) => ReactNode;
8
8
  }) => ReactNode;
9
9
  export default MenuCategory;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var ui_1 = require("@open-tender/ui");
4
3
  var hooks_1 = require("../app/hooks");
5
4
  var hooks_2 = require("../hooks");
6
5
  var slices_1 = require("../slices");
7
6
  var MenuCategory = function (_a) {
8
- var category = _a.category, navigate = _a.navigate, _b = _a.children, children = _b === void 0 ? ui_1.MenuCategory : _b;
7
+ var category = _a.category, navigate = _a.navigate, children = _a.children;
9
8
  var dispatch = (0, hooks_1.useAppDispatch)();
10
9
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).menuCategory;
11
10
  var imageUrl = (0, hooks_2.useKioskImageUrl)(category);