ordering-ui-external 1.5.1 → 1.5.3

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.
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "AccordionDropdown", {
9
9
  return _AccordionDropdown.AccordionDropdown;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "ActionsSection", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _ActionsSection.ActionsSection;
16
+ }
17
+ });
12
18
  Object.defineProperty(exports, "AddressDetails", {
13
19
  enumerable: true,
14
20
  get: function get() {
@@ -357,6 +363,12 @@ Object.defineProperty(exports, "NotNetworkConnectivity", {
357
363
  return _NotNetworkConnectivity.NotNetworkConnectivity;
358
364
  }
359
365
  });
366
+ Object.defineProperty(exports, "OrderBillSection", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _OrderBillSection.OrderBillSection;
370
+ }
371
+ });
360
372
  Object.defineProperty(exports, "OrderDetails", {
361
373
  enumerable: true,
362
374
  get: function get() {
@@ -369,12 +381,24 @@ Object.defineProperty(exports, "OrderDetailsKiosk", {
369
381
  return _Kiosk2.OrderDetails;
370
382
  }
371
383
  });
384
+ Object.defineProperty(exports, "OrderHistory", {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _OrderHistory.OrderHistory;
388
+ }
389
+ });
372
390
  Object.defineProperty(exports, "OrderItAgain", {
373
391
  enumerable: true,
374
392
  get: function get() {
375
393
  return _OrderItAgain.OrderItAgain;
376
394
  }
377
395
  });
396
+ Object.defineProperty(exports, "OrderPreferencesSection", {
397
+ enumerable: true,
398
+ get: function get() {
399
+ return _OrderPreferencesSections.OrderPreferencesSection;
400
+ }
401
+ });
378
402
  Object.defineProperty(exports, "OrderProgress", {
379
403
  enumerable: true,
380
404
  get: function get() {
@@ -471,6 +495,12 @@ Object.defineProperty(exports, "ProductOptionSubOption", {
471
495
  return _ProductOptionSubOption.ProductOptionSubOption;
472
496
  }
473
497
  });
498
+ Object.defineProperty(exports, "ProductShare", {
499
+ enumerable: true,
500
+ get: function get() {
501
+ return _ProductShare.ProductShare;
502
+ }
503
+ });
474
504
  Object.defineProperty(exports, "ProfessionalFilter", {
475
505
  enumerable: true,
476
506
  get: function get() {
@@ -627,6 +657,12 @@ Object.defineProperty(exports, "StripeRedirectForm", {
627
657
  return _StripeRedirectForm.StripeRedirectForm;
628
658
  }
629
659
  });
660
+ Object.defineProperty(exports, "Switch", {
661
+ enumerable: true,
662
+ get: function get() {
663
+ return _Switch.Switch;
664
+ }
665
+ });
630
666
  Object.defineProperty(exports, "TextArea", {
631
667
  enumerable: true,
632
668
  get: function get() {
@@ -788,8 +824,14 @@ var _ProfessionalFilter = require("./src/components/ProfessionalFilter");
788
824
  var _SearchProducts = require("./src/components/SearchProducts");
789
825
  var _MultiCartsPaymethodsAndWallets = require("./src/components/MultiCartsPaymethodsAndWallets");
790
826
  var _ProfessionalProfile = require("./src/components/ProfessionalProfile");
827
+ var _OrderHistory = require("./src/components/OrderDetails/OrderHistory");
828
+ var _OrderBillSection = require("./src/components/OrderDetails/OrderBillSection");
829
+ var _OrderPreferencesSections = require("./src/components/OrderDetails/OrderPreferencesSections");
830
+ var _ActionsSection = require("./src/components/OrderDetails/ActionsSection");
831
+ var _ProductShare = require("./src/components/ProductShare");
791
832
  var _Buttons = require("./src/styles/Buttons");
792
833
  var _Inputs = require("./src/styles/Inputs");
793
834
  var _Select = require("./src/styles/Select");
794
835
  var _Checkbox = require("../../styles/Checkbox");
836
+ var _Switch = require("../../styles/Switch");
795
837
  var _NavigationBar = require("./src/components/NavigationBar");
@@ -277,7 +277,7 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
277
277
  });
278
278
  })))), /*#__PURE__*/_react.default.createElement(_styles.ProductsList, null, (_businessesSearchList6 = businessesSearchList.businesses) === null || _businessesSearchList6 === void 0 ? void 0 : _businessesSearchList6.filter(function (business) {
279
279
  var _business$categories;
280
- return (business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) > 0;
280
+ return (business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) >= 0;
281
281
  }).map(function (business) {
282
282
  var _theme$images, _theme$images$dummies, _theme$images2, _theme$images2$dummie, _orderState$options8, _orderState$options9, _business$categories2;
283
283
  return /*#__PURE__*/_react.default.createElement(_styles.SingleBusinessSearch, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -105,11 +105,17 @@ import { ProfessionalFilter } from './src/components/ProfessionalFilter'
105
105
  import { SearchProducts } from './src/components/SearchProducts'
106
106
  import { MultiCartsPaymethodsAndWallets } from './src/components/MultiCartsPaymethodsAndWallets'
107
107
  import { ProfessionalProfile } from './src/components/ProfessionalProfile'
108
+ import { OrderHistory } from './src/components/OrderDetails/OrderHistory'
109
+ import { OrderBillSection } from './src/components/OrderDetails/OrderBillSection'
110
+ import { OrderPreferencesSection } from './src/components/OrderDetails/OrderPreferencesSections'
111
+ import { ActionsSection } from './src/components/OrderDetails/ActionsSection'
112
+ import { ProductShare } from './src/components/ProductShare'
108
113
 
109
114
  import { Button } from './src/styles/Buttons'
110
115
  import { Input, TextArea } from './src/styles/Inputs'
111
116
  import { Select } from './src/styles/Select'
112
117
  import { Checkbox } from '../../styles/Checkbox'
118
+ import { Switch } from '../../styles/Switch'
113
119
  import { NavigationBar } from './src/components/NavigationBar'
114
120
 
115
121
  export {
@@ -220,6 +226,11 @@ export {
220
226
  SearchProducts,
221
227
  MultiCartsPaymethodsAndWallets,
222
228
  ProfessionalProfile,
229
+ OrderHistory,
230
+ OrderBillSection,
231
+ OrderPreferencesSection,
232
+ ActionsSection,
233
+ ProductShare,
223
234
 
224
235
  // styles
225
236
  Button,
@@ -227,5 +238,6 @@ export {
227
238
  TextArea,
228
239
  Select,
229
240
  Checkbox,
230
- NavigationBar
241
+ NavigationBar,
242
+ Switch
231
243
  }
@@ -321,7 +321,7 @@ export const BusinessListingSearchUI = (props) => {
321
321
  </BusinessList>
322
322
  </BusinessListWrapper>
323
323
  <ProductsList>
324
- {businessesSearchList.businesses?.filter(business => business?.categories?.length > 0).map(business => (
324
+ {businessesSearchList.businesses?.filter(business => business?.categories?.length >= 0).map(business => (
325
325
  <SingleBusinessSearch key={`card-${business?.id}`}>
326
326
  <BusinessInfo>
327
327
  {(business?.logo || theme.images?.dummies?.businessLogo) && (