ordering-ui-external 2.1.4 → 2.2.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.
Files changed (107) hide show
  1. package/_bundles/{0.ordering-ui.28ae84b35994ed466773.js → 0.ordering-ui.bdd6b221a4d558a752fc.js} +1 -1
  2. package/_bundles/{1.ordering-ui.28ae84b35994ed466773.js → 1.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  3. package/_bundles/{2.ordering-ui.28ae84b35994ed466773.js → 2.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  4. package/_bundles/{4.ordering-ui.28ae84b35994ed466773.js → 4.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  5. package/_bundles/{5.ordering-ui.28ae84b35994ed466773.js → 5.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  6. package/_bundles/{6.ordering-ui.28ae84b35994ed466773.js → 6.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  7. package/_bundles/{7.ordering-ui.28ae84b35994ed466773.js → 7.ordering-ui.bdd6b221a4d558a752fc.js} +1 -1
  8. package/_bundles/{7.ordering-ui.28ae84b35994ed466773.js.LICENSE.txt → 7.ordering-ui.bdd6b221a4d558a752fc.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.28ae84b35994ed466773.js → 8.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  10. package/_bundles/{9.ordering-ui.28ae84b35994ed466773.js → 9.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
  11. package/_bundles/{ordering-ui.28ae84b35994ed466773.js → ordering-ui.bdd6b221a4d558a752fc.js} +2 -2
  12. package/_bundles/{ordering-ui.28ae84b35994ed466773.js.LICENSE.txt → ordering-ui.bdd6b221a4d558a752fc.js.LICENSE.txt} +0 -0
  13. package/_modules/hooks/useIntersectionObserver.js +6 -5
  14. package/_modules/styles/Toast/index.js +4 -3
  15. package/_modules/themes/five/src/components/AddressDetails/index.js +1 -1
  16. package/_modules/themes/five/src/components/AddressDetails/styles.js +1 -1
  17. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +1 -1
  18. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +1 -1
  19. package/_modules/themes/five/src/components/BusinessListingSearch/Accordion/index.js +43 -0
  20. package/_modules/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +16 -4
  21. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +26 -13
  22. package/_modules/themes/five/src/components/BusinessListingSearch/styles.js +43 -41
  23. package/_modules/themes/five/src/components/BusinessPreorder/index.js +23 -4
  24. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +38 -22
  25. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +2 -2
  26. package/_modules/themes/five/src/components/BusinessProductsList/styles.js +1 -1
  27. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +10 -1
  28. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +23 -17
  29. package/_modules/themes/five/src/components/Cart/styles.js +1 -1
  30. package/_modules/themes/five/src/components/Checkout/index.js +23 -18
  31. package/_modules/themes/five/src/components/Checkout/styles.js +1 -1
  32. package/_modules/themes/five/src/components/DriverTips/index.js +6 -2
  33. package/_modules/themes/five/src/components/Header/styles.js +2 -2
  34. package/_modules/themes/five/src/components/Help/index.js +1 -1
  35. package/_modules/themes/five/src/components/LastOrders/index.js +3 -8
  36. package/_modules/themes/five/src/components/MessagesListing/index.js +2 -2
  37. package/_modules/themes/five/src/components/MessagesListing/styles.js +1 -1
  38. package/_modules/themes/five/src/components/MyOrders/index.js +1 -3
  39. package/_modules/themes/five/src/components/NotFoundSource/index.js +3 -11
  40. package/_modules/themes/five/src/components/NotFoundSource/styles.js +2 -2
  41. package/_modules/themes/five/src/components/OrderContextUI/index.js +2 -1
  42. package/_modules/themes/five/src/components/OrderContextUI/styles.js +14 -11
  43. package/_modules/themes/five/src/components/PageBanner/styles.js +1 -1
  44. package/_modules/themes/five/src/components/ReviewProduct/styles.js +1 -1
  45. package/_modules/themes/five/src/components/ServiceForm/index.js +16 -11
  46. package/_modules/themes/five/src/components/ServiceForm/styles.js +16 -5
  47. package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
  48. package/_modules/themes/five/src/components/UserDetails/styles.js +1 -1
  49. package/_modules/themes/five/src/components/UserFormDetails/index.js +1 -1
  50. package/_modules/themes/five/src/components/UserPopover/index.js +6 -0
  51. package/_modules/themes/five/src/components/UserProfileForm/index.js +0 -2
  52. package/_modules/themes/five/src/components/UserProfileForm/styles.js +1 -1
  53. package/_modules/themes/five/src/components/WalletTransactionItem/index.js +4 -2
  54. package/_modules/themes/five/src/components/Wallets/index.js +4 -4
  55. package/_modules/themes/five/src/components/Wallets/styles.js +33 -12
  56. package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
  57. package/_modules/themes/pwa/src/components/MomentControl/index.js +7 -9
  58. package/_modules/utils/index.js +28 -2
  59. package/package.json +2 -2
  60. package/src/hooks/useIntersectionObserver.js +7 -6
  61. package/src/styles/Toast/index.js +4 -2
  62. package/src/themes/five/src/components/AddressDetails/index.js +1 -1
  63. package/src/themes/five/src/components/AddressDetails/styles.js +4 -1
  64. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +3 -1
  65. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +9 -3
  66. package/src/themes/five/src/components/BusinessListingSearch/Accordion/index.js +23 -0
  67. package/src/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +28 -17
  68. package/src/themes/five/src/components/BusinessListingSearch/index.js +65 -66
  69. package/src/themes/five/src/components/BusinessListingSearch/styles.js +21 -2
  70. package/src/themes/five/src/components/BusinessPreorder/index.js +24 -0
  71. package/src/themes/five/src/components/BusinessPreorder/styles.js +11 -1
  72. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -3
  73. package/src/themes/five/src/components/BusinessProductsList/styles.js +3 -1
  74. package/src/themes/five/src/components/BusinessProductsListing/index.js +11 -1
  75. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +11 -1
  76. package/src/themes/five/src/components/Cart/styles.js +3 -1
  77. package/src/themes/five/src/components/Checkout/index.js +48 -61
  78. package/src/themes/five/src/components/Checkout/styles.js +3 -1
  79. package/src/themes/five/src/components/DriverTips/index.js +7 -2
  80. package/src/themes/five/src/components/Header/styles.js +4 -2
  81. package/src/themes/five/src/components/Help/index.js +0 -1
  82. package/src/themes/five/src/components/LastOrders/index.js +25 -28
  83. package/src/themes/five/src/components/MessagesListing/index.js +2 -2
  84. package/src/themes/five/src/components/MessagesListing/styles.js +3 -1
  85. package/src/themes/five/src/components/MultiCheckout/index.js +12 -12
  86. package/src/themes/five/src/components/MyOrders/index.js +0 -3
  87. package/src/themes/five/src/components/NotFoundSource/index.js +5 -10
  88. package/src/themes/five/src/components/NotFoundSource/styles.js +7 -2
  89. package/src/themes/five/src/components/OrderContextUI/index.js +1 -1
  90. package/src/themes/five/src/components/OrderContextUI/styles.js +4 -2
  91. package/src/themes/five/src/components/PageBanner/styles.js +1 -0
  92. package/src/themes/five/src/components/ReviewProduct/styles.js +3 -3
  93. package/src/themes/five/src/components/ServiceForm/index.js +20 -14
  94. package/src/themes/five/src/components/ServiceForm/styles.js +11 -3
  95. package/src/themes/five/src/components/UserDetails/index.js +2 -2
  96. package/src/themes/five/src/components/UserDetails/styles.js +3 -1
  97. package/src/themes/five/src/components/UserFormDetails/index.js +0 -1
  98. package/src/themes/five/src/components/UserPopover/index.js +2 -0
  99. package/src/themes/five/src/components/UserProfileForm/index.js +0 -3
  100. package/src/themes/five/src/components/UserProfileForm/styles.js +0 -5
  101. package/src/themes/five/src/components/WalletTransactionItem/index.js +4 -1
  102. package/src/themes/five/src/components/Wallets/index.js +101 -95
  103. package/src/themes/five/src/components/Wallets/styles.js +37 -17
  104. package/src/themes/five/src/styles/Buttons/index.js +4 -0
  105. package/src/themes/pwa/src/components/MomentControl/index.js +6 -11
  106. package/src/utils/index.js +38 -12
  107. package/template/pages/Home/index.js +3 -0
@@ -136,21 +136,21 @@ export const bytesConverter = bytes => {
136
136
  */
137
137
  export const lightenDarkenColor = (color) => {
138
138
 
139
- let r, g, b, hsp;
139
+ let r, g, b, hsp
140
140
  if (color.match(/^rgb/)) {
141
141
  // If HEX --> store the red, green, blue values in separate variables
142
- color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);
142
+ color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)
143
143
 
144
- r = color[1];
145
- g = color[2];
146
- b = color[3];
144
+ r = color[1]
145
+ g = color[2]
146
+ b = color[3]
147
147
  } else {
148
148
  // If RGB --> Convert it to HEX
149
- color = +("0x" + color.slice(1).replace(color.length < 5 && /./g, '$&$&'));
149
+ color = +("0x" + color.slice(1).replace(color.length < 5 && /./g, '$&$&'))
150
150
 
151
- r = color >> 16;
152
- g = color >> 8 & 255;
153
- b = color & 255;
151
+ r = color >> 16
152
+ g = color >> 8 & 255
153
+ b = color & 255
154
154
  }
155
155
 
156
156
  // HSP (Highly Sensitive Poo) equation
@@ -158,13 +158,13 @@ export const lightenDarkenColor = (color) => {
158
158
  0.299 * (r * r) +
159
159
  0.587 * (g * g) +
160
160
  0.114 * (b * b)
161
- );
161
+ )
162
162
 
163
163
  // Using the HSP value, determine whether the color is light or dark
164
164
  if (hsp > 197) {
165
- return true; //is light color
165
+ return true //is light color
166
166
  } else {
167
- return false;
167
+ return false
168
168
  }
169
169
  }
170
170
 
@@ -650,3 +650,29 @@ export const getOrderStatus = (s) => {
650
650
  const objectStatus = orderStatus.find((o) => o.key === status)
651
651
  return objectStatus && objectStatus
652
652
  }
653
+
654
+ export const calendarLanguages = {
655
+ months: {
656
+ January: 'MONTH1',
657
+ February: 'MONTH2',
658
+ March: 'MONTH3',
659
+ April: 'MONTH4',
660
+ May: 'MONTH5',
661
+ June: 'MONTH6',
662
+ July: 'MONTH7',
663
+ August: 'MONTH8',
664
+ September: 'MONTH9',
665
+ October: 'MONTH10',
666
+ November: 'MONTH11',
667
+ December: 'MONTH12'
668
+ },
669
+ week: {
670
+ Mo: 'DAYMIN1',
671
+ Tu: 'DAYMIN2',
672
+ We: 'DAYMIN3',
673
+ Th: 'DAYMIN4',
674
+ Fr: 'DAYMIN5',
675
+ Sa: 'DAYMIN6',
676
+ Su: 'DAYMIN7'
677
+ }
678
+ }
@@ -7,6 +7,8 @@ import { HelmetTags } from '../../components/HelmetTags'
7
7
  import Skeleton from 'react-loading-skeleton'
8
8
  import settings from '../../config'
9
9
 
10
+ import { PageBanner } from '../../../src/themes/five/src/components/PageBanner'
11
+
10
12
  import {
11
13
  HomeContainer,
12
14
  SkeletonContainer,
@@ -115,6 +117,7 @@ export const HomePage = (props) => {
115
117
  />
116
118
  )
117
119
  }
120
+ <PageBanner position='web_home_page' />
118
121
  </HomeContainer>
119
122
  )}
120
123
  </>