ordering-ui-external 2.1.3 → 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.
- package/_bundles/{0.ordering-ui.7ab84608232e3f5c3b4b.js → 0.ordering-ui.bdd6b221a4d558a752fc.js} +1 -1
- package/_bundles/{1.ordering-ui.7ab84608232e3f5c3b4b.js → 1.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{2.ordering-ui.7ab84608232e3f5c3b4b.js → 2.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{4.ordering-ui.7ab84608232e3f5c3b4b.js → 4.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{5.ordering-ui.7ab84608232e3f5c3b4b.js → 5.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{6.ordering-ui.7ab84608232e3f5c3b4b.js → 6.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{7.ordering-ui.7ab84608232e3f5c3b4b.js → 7.ordering-ui.bdd6b221a4d558a752fc.js} +1 -1
- package/_bundles/{7.ordering-ui.7ab84608232e3f5c3b4b.js.LICENSE.txt → 7.ordering-ui.bdd6b221a4d558a752fc.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.7ab84608232e3f5c3b4b.js → 8.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{9.ordering-ui.7ab84608232e3f5c3b4b.js → 9.ordering-ui.bdd6b221a4d558a752fc.js} +0 -0
- package/_bundles/{ordering-ui.7ab84608232e3f5c3b4b.js → ordering-ui.bdd6b221a4d558a752fc.js} +2 -2
- package/_bundles/{ordering-ui.7ab84608232e3f5c3b4b.js.LICENSE.txt → ordering-ui.bdd6b221a4d558a752fc.js.LICENSE.txt} +0 -0
- package/_modules/hooks/useIntersectionObserver.js +6 -5
- package/_modules/styles/Toast/index.js +4 -3
- package/_modules/themes/five/src/components/AddressDetails/index.js +1 -1
- package/_modules/themes/five/src/components/AddressDetails/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessListingSearch/Accordion/index.js +43 -0
- package/_modules/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +16 -4
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +26 -13
- package/_modules/themes/five/src/components/BusinessListingSearch/styles.js +43 -41
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +23 -4
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +38 -22
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessProductsList/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +10 -1
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +23 -17
- package/_modules/themes/five/src/components/Cart/styles.js +1 -1
- package/_modules/themes/five/src/components/Checkout/index.js +24 -19
- package/_modules/themes/five/src/components/Checkout/styles.js +1 -1
- package/_modules/themes/five/src/components/DriverTips/index.js +6 -2
- package/_modules/themes/five/src/components/Header/styles.js +2 -2
- package/_modules/themes/five/src/components/Help/index.js +1 -1
- package/_modules/themes/five/src/components/LastOrders/index.js +3 -8
- package/_modules/themes/five/src/components/MessagesListing/index.js +2 -2
- package/_modules/themes/five/src/components/MessagesListing/styles.js +1 -1
- package/_modules/themes/five/src/components/MultiCheckout/index.js +1 -1
- package/_modules/themes/five/src/components/MyOrders/index.js +1 -3
- package/_modules/themes/five/src/components/NotFoundSource/index.js +3 -11
- package/_modules/themes/five/src/components/NotFoundSource/styles.js +2 -2
- package/_modules/themes/five/src/components/OrderContextUI/index.js +2 -1
- package/_modules/themes/five/src/components/OrderContextUI/styles.js +14 -11
- package/_modules/themes/five/src/components/PageBanner/styles.js +1 -1
- package/_modules/themes/five/src/components/ReviewProduct/styles.js +1 -1
- package/_modules/themes/five/src/components/ServiceForm/index.js +16 -11
- package/_modules/themes/five/src/components/ServiceForm/styles.js +16 -5
- package/_modules/themes/five/src/components/UserDetails/index.js +1 -1
- package/_modules/themes/five/src/components/UserDetails/styles.js +1 -1
- package/_modules/themes/five/src/components/UserFormDetails/index.js +1 -1
- package/_modules/themes/five/src/components/UserPopover/index.js +6 -0
- package/_modules/themes/five/src/components/UserProfileForm/index.js +0 -2
- package/_modules/themes/five/src/components/UserProfileForm/styles.js +1 -1
- package/_modules/themes/five/src/components/WalletTransactionItem/index.js +4 -2
- package/_modules/themes/five/src/components/Wallets/index.js +4 -4
- package/_modules/themes/five/src/components/Wallets/styles.js +33 -12
- package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
- package/_modules/themes/pwa/src/components/MomentControl/index.js +7 -9
- package/_modules/utils/index.js +28 -2
- package/package.json +2 -2
- package/src/hooks/useIntersectionObserver.js +7 -6
- package/src/styles/Toast/index.js +4 -2
- package/src/themes/five/src/components/AddressDetails/index.js +1 -1
- package/src/themes/five/src/components/AddressDetails/styles.js +4 -1
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +3 -1
- package/src/themes/five/src/components/BusinessItemAccordion/styles.js +9 -3
- package/src/themes/five/src/components/BusinessListingSearch/Accordion/index.js +23 -0
- package/src/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +28 -17
- package/src/themes/five/src/components/BusinessListingSearch/index.js +65 -66
- package/src/themes/five/src/components/BusinessListingSearch/styles.js +21 -2
- package/src/themes/five/src/components/BusinessPreorder/index.js +24 -0
- package/src/themes/five/src/components/BusinessPreorder/styles.js +11 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -3
- package/src/themes/five/src/components/BusinessProductsList/styles.js +3 -1
- package/src/themes/five/src/components/BusinessProductsListing/index.js +11 -1
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +11 -1
- package/src/themes/five/src/components/Cart/styles.js +3 -1
- package/src/themes/five/src/components/Checkout/index.js +49 -62
- package/src/themes/five/src/components/Checkout/styles.js +3 -1
- package/src/themes/five/src/components/DriverTips/index.js +7 -2
- package/src/themes/five/src/components/Header/styles.js +4 -2
- package/src/themes/five/src/components/Help/index.js +0 -1
- package/src/themes/five/src/components/LastOrders/index.js +25 -28
- package/src/themes/five/src/components/MessagesListing/index.js +2 -2
- package/src/themes/five/src/components/MessagesListing/styles.js +3 -1
- package/src/themes/five/src/components/MultiCheckout/index.js +13 -13
- package/src/themes/five/src/components/MyOrders/index.js +0 -3
- package/src/themes/five/src/components/NotFoundSource/index.js +5 -10
- package/src/themes/five/src/components/NotFoundSource/styles.js +7 -2
- package/src/themes/five/src/components/OrderContextUI/index.js +1 -1
- package/src/themes/five/src/components/OrderContextUI/styles.js +4 -2
- package/src/themes/five/src/components/PageBanner/styles.js +1 -0
- package/src/themes/five/src/components/ReviewProduct/styles.js +3 -3
- package/src/themes/five/src/components/ServiceForm/index.js +20 -14
- package/src/themes/five/src/components/ServiceForm/styles.js +11 -3
- package/src/themes/five/src/components/UserDetails/index.js +2 -2
- package/src/themes/five/src/components/UserDetails/styles.js +3 -1
- package/src/themes/five/src/components/UserFormDetails/index.js +0 -1
- package/src/themes/five/src/components/UserPopover/index.js +2 -0
- package/src/themes/five/src/components/UserProfileForm/index.js +0 -3
- package/src/themes/five/src/components/UserProfileForm/styles.js +0 -5
- package/src/themes/five/src/components/WalletTransactionItem/index.js +4 -1
- package/src/themes/five/src/components/Wallets/index.js +101 -95
- package/src/themes/five/src/components/Wallets/styles.js +37 -17
- package/src/themes/five/src/styles/Buttons/index.js +4 -0
- package/src/themes/pwa/src/components/MomentControl/index.js +6 -11
- package/src/utils/index.js +38 -12
- package/template/pages/Home/index.js +3 -0
package/src/utils/index.js
CHANGED
|
@@ -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
|
|
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
|
</>
|