ordering-ui-external 1.6.5 → 1.6.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.
@@ -153,6 +153,12 @@ Object.defineProperty(exports, "Checkout", {
153
153
  return _Checkout.Checkout;
154
154
  }
155
155
  });
156
+ Object.defineProperty(exports, "Confirm", {
157
+ enumerable: true,
158
+ get: function get() {
159
+ return _Confirm.Confirm;
160
+ }
161
+ });
156
162
  Object.defineProperty(exports, "DriverTips", {
157
163
  enumerable: true,
158
164
  get: function get() {
@@ -225,6 +231,12 @@ Object.defineProperty(exports, "InputPhoneNumber", {
225
231
  return _InputPhoneNumber.InputPhoneNumber;
226
232
  }
227
233
  });
234
+ Object.defineProperty(exports, "LanguageSelector", {
235
+ enumerable: true,
236
+ get: function get() {
237
+ return _LanguageSelector.LanguageSelector;
238
+ }
239
+ });
228
240
  Object.defineProperty(exports, "LastOrders", {
229
241
  enumerable: true,
230
242
  get: function get() {
@@ -524,6 +536,8 @@ var _UpsellingPage = require("./src/components/UpsellingPage");
524
536
  var _UserDetails = require("./src/components/UserDetails");
525
537
  var _UserPopover = require("./src/components/UserPopover");
526
538
  var _UserProfileForm = require("./src/components/UserProfileForm");
539
+ var _Confirm = require("./src/components/Confirm");
540
+ var _LanguageSelector = require("./src/components/LanguageSelector");
527
541
  var _Buttons = require("./src/styles/Buttons");
528
542
  var _Inputs = require("./src/styles/Inputs");
529
543
  var _Select = require("./src/styles/Select");
@@ -51,7 +51,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
51
51
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
52
52
  var PIXELS_TO_SCROLL = 300;
53
53
  var BusinessesListingUI = function BusinessesListingUI(props) {
54
- var _theme$business_listi, _theme$business_listi2, _theme$business_listi3, _theme$business_listi4, _theme$business_listi5, _theme$business_listi6, _theme$business_listi7, _theme$business_listi8, _theme$business_listi9, _theme$business_listi10, _businessesList$busin, _businessesList$busin3, _props$beforeElements, _props$beforeComponen, _orderState$options3, _orderState$options3$, _theme$images2, _theme$images2$genera, _theme$business_listi11, _theme$business_listi12, _theme$business_listi13, _theme$business_listi14, _Object$values, _citiesState$cities2, _citiesState$cities3, _citiesState$cities3$, _configs$advanced_bus, _orderState$options5, _orderState$options5$, _configs$advanced_bus2, _orderState$options6, _orderState$options6$, _businessesList$busin6, _businessesList$busin7, _orderState$options9, _citiesState$cities4, _props$afterComponent, _props$afterElements;
54
+ var _theme$business_listi, _theme$business_listi2, _theme$business_listi3, _theme$business_listi4, _theme$business_listi5, _theme$business_listi6, _theme$business_listi7, _theme$business_listi8, _theme$business_listi9, _theme$business_listi10, _businessesList$busin, _businessesList$busin3, _props$beforeElements, _props$beforeComponen, _orderState$options3, _orderState$options3$, _configs$business_lis, _theme$images2, _theme$images2$genera, _theme$business_listi11, _theme$business_listi12, _theme$business_listi13, _theme$business_listi14, _Object$values, _citiesState$cities2, _citiesState$cities3, _citiesState$cities3$, _configs$advanced_bus, _orderState$options5, _orderState$options5$, _configs$advanced_bus2, _orderState$options6, _orderState$options6$, _businessesList$busin6, _businessesList$busin7, _orderState$options9, _citiesState$cities4, _props$afterComponent, _props$afterElements;
55
55
  var businessesList = props.businessesList,
56
56
  paginationProps = props.paginationProps,
57
57
  searchValue = props.searchValue,
@@ -306,7 +306,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
306
306
  return handleClosePopover('moment');
307
307
  },
308
308
  isBanner: true
309
- })))), /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
309
+ })))), (configs === null || configs === void 0 ? void 0 : (_configs$business_lis = configs.business_listing_hide_image) === null || _configs$business_lis === void 0 ? void 0 : _configs$business_lis.value) !== '1' && /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
310
310
  bgimage: (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.businessHero,
311
311
  height: theme === null || theme === void 0 ? void 0 : (_theme$business_listi11 = theme.business_listing_view) === null || _theme$business_listi11 === void 0 ? void 0 : (_theme$business_listi12 = _theme$business_listi11.components) === null || _theme$business_listi12 === void 0 ? void 0 : (_theme$business_listi13 = _theme$business_listi12.business_hero) === null || _theme$business_listi13 === void 0 ? void 0 : (_theme$business_listi14 = _theme$business_listi13.style) === null || _theme$business_listi14 === void 0 ? void 0 : _theme$business_listi14.height
312
312
  })), !!((_Object$values = Object.values(orderState === null || orderState === void 0 ? void 0 : orderState.carts)) !== null && _Object$values !== void 0 && _Object$values.length) && /*#__PURE__*/_react.default.createElement(_styles.OrderProgressWrapper, null, /*#__PURE__*/_react.default.createElement(_OrderProgress.OrderProgress, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -69,6 +69,8 @@ import { UpsellingPage } from './src/components/UpsellingPage'
69
69
  import { UserDetails } from './src/components/UserDetails'
70
70
  import { UserPopover } from './src/components/UserPopover'
71
71
  import { UserProfileForm } from './src/components/UserProfileForm'
72
+ import { Confirm } from './src/components/Confirm'
73
+ import { LanguageSelector } from './src/components/LanguageSelector'
72
74
 
73
75
  import { Button } from './src/styles/Buttons'
74
76
  import { Input, TextArea } from './src/styles/Inputs'
@@ -146,6 +148,8 @@ export {
146
148
  UserDetails,
147
149
  UserPopover,
148
150
  UserProfileForm,
151
+ Confirm,
152
+ LanguageSelector,
149
153
 
150
154
  // styles
151
155
  Button,
@@ -298,10 +298,12 @@ const BusinessesListingUI = (props) => {
298
298
  </FeatureItems>
299
299
  </BusinessFeatures>
300
300
  )}
301
- <BusinessHeroImg
302
- bgimage={theme.images?.general?.businessHero}
303
- height={theme?.business_listing_view?.components?.business_hero?.style?.height}
304
- />
301
+ {configs?.business_listing_hide_image?.value !== '1' && (
302
+ <BusinessHeroImg
303
+ bgimage={theme.images?.general?.businessHero}
304
+ height={theme?.business_listing_view?.components?.business_hero?.style?.height}
305
+ />
306
+ )}
305
307
  </BusinessBanner>
306
308
  {!!Object.values(orderState?.carts)?.length && (
307
309
  <OrderProgressWrapper>