ordering-ui-react-native 0.17.54 → 0.17.55-release

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 (221) hide show
  1. package/package.json +8 -7
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/BusinessesListing/index.tsx +1 -1
  4. package/src/components/OrderCreating/index.tsx +1 -21
  5. package/src/components/PaymentOptionsWebView/index.tsx +29 -8
  6. package/src/components/PhoneInputNumber/index.tsx +6 -2
  7. package/src/components/StripeMethodForm/index.tsx +136 -102
  8. package/src/components/VerifyPhone/styles.tsx +1 -2
  9. package/src/components/shared/OToast.tsx +4 -4
  10. package/src/types/index.tsx +5 -0
  11. package/src/utils/index.tsx +5 -0
  12. package/themes/business/index.tsx +2 -0
  13. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +265 -240
  14. package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
  15. package/themes/business/src/components/BusinessController/index.tsx +0 -1
  16. package/themes/business/src/components/Chat/index.tsx +125 -113
  17. package/themes/business/src/components/DriverMap/index.tsx +17 -6
  18. package/themes/business/src/components/DriverSchedule/index.tsx +29 -2
  19. package/themes/business/src/components/GoogleMap/index.tsx +58 -57
  20. package/themes/business/src/components/LoginForm/Otp/index.tsx +120 -0
  21. package/themes/business/src/components/LoginForm/Otp/styles.tsx +7 -0
  22. package/themes/business/src/components/LoginForm/index.tsx +240 -82
  23. package/themes/business/src/components/LoginForm/styles.tsx +10 -0
  24. package/themes/business/src/components/MapView/index.tsx +10 -10
  25. package/themes/business/src/components/NewOrderNotification/index.tsx +35 -21
  26. package/themes/business/src/components/NotFoundSource/index.tsx +2 -2
  27. package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
  28. package/themes/business/src/components/OrderDetails/Delivery.tsx +191 -6
  29. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +93 -50
  30. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +64 -63
  31. package/themes/business/src/components/OrderDetailsLogistic/index.tsx +195 -0
  32. package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
  33. package/themes/business/src/components/OrderMessage/index.tsx +19 -18
  34. package/themes/business/src/components/OrderSummary/index.tsx +113 -121
  35. package/themes/business/src/components/OrdersOption/index.tsx +32 -75
  36. package/themes/business/src/components/PreviousOrders/OrderItem.tsx +249 -0
  37. package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
  38. package/themes/business/src/components/PreviousOrders/index.tsx +445 -243
  39. package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
  40. package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
  41. package/themes/business/src/components/ReviewCustomer/index.tsx +30 -15
  42. package/themes/business/src/components/StoresList/index.tsx +3 -4
  43. package/themes/business/src/components/UserProfileForm/index.tsx +11 -13
  44. package/themes/business/src/components/shared/OLink.tsx +33 -13
  45. package/themes/business/src/components/shared/OModal.tsx +16 -9
  46. package/themes/business/src/components/shared/OText.tsx +8 -2
  47. package/themes/business/src/types/index.tsx +32 -2
  48. package/themes/business/src/utils/index.tsx +44 -1
  49. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  50. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  51. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  52. package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
  53. package/themes/kiosk/src/components/Intro/index.tsx +16 -1
  54. package/themes/kiosk/src/components/LoginForm/Otp/index.tsx +92 -0
  55. package/themes/kiosk/src/components/LoginForm/Otp/styles.tsx +7 -0
  56. package/themes/kiosk/src/components/LoginForm/index.tsx +480 -156
  57. package/themes/kiosk/src/components/LoginForm/styles.tsx +14 -1
  58. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  59. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  60. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  61. package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +3 -2
  62. package/themes/kiosk/src/components/PhoneInputNumber/styles.tsx +1 -3
  63. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  64. package/themes/kiosk/src/components/shared/OModal.tsx +14 -11
  65. package/themes/kiosk/src/layouts/Container.tsx +7 -1
  66. package/themes/kiosk/src/types/index.d.ts +13 -0
  67. package/themes/kiosk/src/utils/index.tsx +15 -0
  68. package/themes/original/index.tsx +4 -0
  69. package/themes/original/src/components/AddressDetails/index.tsx +28 -10
  70. package/themes/original/src/components/AddressForm/index.tsx +68 -40
  71. package/themes/original/src/components/AddressList/index.tsx +27 -22
  72. package/themes/original/src/components/AddressList/styles.tsx +4 -2
  73. package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
  74. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  75. package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
  76. package/themes/original/src/components/BusinessBasicInformation/index.tsx +153 -96
  77. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +10 -12
  78. package/themes/original/src/components/BusinessController/index.tsx +122 -68
  79. package/themes/original/src/components/BusinessController/styles.tsx +23 -4
  80. package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
  81. package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
  82. package/themes/original/src/components/BusinessInformation/index.tsx +110 -108
  83. package/themes/original/src/components/BusinessItemAccordion/index.tsx +15 -20
  84. package/themes/original/src/components/BusinessListingSearch/index.tsx +352 -326
  85. package/themes/original/src/components/BusinessListingSearch/styles.tsx +0 -18
  86. package/themes/original/src/components/BusinessPreorder/index.tsx +103 -19
  87. package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -2
  88. package/themes/original/src/components/BusinessProductsList/index.tsx +25 -15
  89. package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
  90. package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
  91. package/themes/original/src/components/BusinessProductsListing/index.tsx +683 -535
  92. package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
  93. package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
  94. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
  95. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +96 -91
  96. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -4
  97. package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
  98. package/themes/original/src/components/Cart/index.tsx +77 -50
  99. package/themes/original/src/components/CartContent/index.tsx +115 -19
  100. package/themes/original/src/components/CartContent/styles.tsx +17 -7
  101. package/themes/original/src/components/Checkout/index.tsx +359 -171
  102. package/themes/original/src/components/Checkout/styles.tsx +4 -2
  103. package/themes/original/src/components/CitiesControl/index.tsx +89 -0
  104. package/themes/original/src/components/CitiesControl/styles.tsx +17 -0
  105. package/themes/original/src/components/CouponControl/index.tsx +10 -3
  106. package/themes/original/src/components/DriverTips/index.tsx +52 -34
  107. package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
  108. package/themes/original/src/components/Favorite/index.tsx +8 -9
  109. package/themes/original/src/components/Favorite/styles.tsx +1 -1
  110. package/themes/original/src/components/FavoriteList/index.tsx +51 -80
  111. package/themes/original/src/components/FloatingButton/index.tsx +1 -2
  112. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  113. package/themes/original/src/components/GPSButton/index.tsx +6 -4
  114. package/themes/original/src/components/GPSButton/styles.ts +3 -3
  115. package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +96 -0
  116. package/themes/original/src/components/GiftCard/GiftCardUI/styles.tsx +5 -0
  117. package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +100 -0
  118. package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +8 -0
  119. package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +191 -0
  120. package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +8 -0
  121. package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +165 -0
  122. package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +9 -0
  123. package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
  124. package/themes/original/src/components/GoogleMap/index.tsx +15 -4
  125. package/themes/original/src/components/Help/index.tsx +8 -8
  126. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +10 -31
  127. package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +5 -3
  128. package/themes/original/src/components/HelpGuide/index.tsx +6 -6
  129. package/themes/original/src/components/HelpGuide/styles.tsx +6 -0
  130. package/themes/original/src/components/HelpOrder/index.tsx +6 -15
  131. package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
  132. package/themes/original/src/components/Home/index.tsx +13 -4
  133. package/themes/original/src/components/LastOrder/index.tsx +1 -34
  134. package/themes/original/src/components/LoginForm/Otp/index.tsx +55 -13
  135. package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
  136. package/themes/original/src/components/LoginForm/index.tsx +64 -26
  137. package/themes/original/src/components/LottieAnimation/index.tsx +89 -55
  138. package/themes/original/src/components/MessageListing/index.tsx +16 -42
  139. package/themes/original/src/components/Messages/index.tsx +32 -10
  140. package/themes/original/src/components/MomentOption/index.tsx +194 -89
  141. package/themes/original/src/components/MultiCart/index.tsx +50 -0
  142. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +151 -49
  143. package/themes/original/src/components/MultiCheckout/index.tsx +308 -88
  144. package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
  145. package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +37 -224
  146. package/themes/original/src/components/MultiOrdersDetails/index.tsx +68 -21
  147. package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
  148. package/themes/original/src/components/MyOrders/index.tsx +77 -52
  149. package/themes/original/src/components/NavBar/index.tsx +18 -18
  150. package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
  151. package/themes/original/src/components/Notifications/index.tsx +46 -50
  152. package/themes/original/src/components/Notifications/styles.tsx +6 -3
  153. package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
  154. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +15 -3
  155. package/themes/original/src/components/OrderDetails/index.tsx +190 -358
  156. package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
  157. package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
  158. package/themes/original/src/components/OrderProgress/index.tsx +33 -59
  159. package/themes/original/src/components/OrderSummary/index.tsx +85 -57
  160. package/themes/original/src/components/OrderTypeSelector/index.tsx +1 -1
  161. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +24 -19
  162. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +14 -14
  163. package/themes/original/src/components/OrdersOption/index.tsx +76 -66
  164. package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
  165. package/themes/original/src/components/PageBanner/index.tsx +106 -31
  166. package/themes/original/src/components/PageBanner/styles.tsx +4 -4
  167. package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -0
  168. package/themes/original/src/components/PaymentOptionStripe/styles.tsx +1 -1
  169. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  170. package/themes/original/src/components/PaymentOptions/index.tsx +64 -7
  171. package/themes/original/src/components/PhoneInputNumber/index.tsx +3 -3
  172. package/themes/original/src/components/PlaceSpot/index.tsx +12 -6
  173. package/themes/original/src/components/ProductForm/index.tsx +109 -33
  174. package/themes/original/src/components/ProductForm/styles.tsx +5 -7
  175. package/themes/original/src/components/ProductItemAccordion/index.tsx +22 -19
  176. package/themes/original/src/components/ProductOptionSubOption/index.tsx +24 -14
  177. package/themes/original/src/components/ProductOptionSubOption/styles.tsx +3 -4
  178. package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
  179. package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
  180. package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
  181. package/themes/original/src/components/Promotions/index.tsx +234 -220
  182. package/themes/original/src/components/Promotions/styles.tsx +10 -3
  183. package/themes/original/src/components/ReviewDriver/index.tsx +3 -3
  184. package/themes/original/src/components/ReviewOrder/index.tsx +26 -9
  185. package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
  186. package/themes/original/src/components/ReviewProducts/index.tsx +23 -11
  187. package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
  188. package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
  189. package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
  190. package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
  191. package/themes/original/src/components/ServiceForm/index.tsx +66 -17
  192. package/themes/original/src/components/Sessions/index.tsx +11 -8
  193. package/themes/original/src/components/Sessions/styles.tsx +5 -0
  194. package/themes/original/src/components/SignupForm/index.tsx +43 -20
  195. package/themes/original/src/components/SingleOrderCard/index.tsx +130 -52
  196. package/themes/original/src/components/SingleOrderCard/styles.tsx +11 -2
  197. package/themes/original/src/components/SingleProductCard/index.tsx +71 -34
  198. package/themes/original/src/components/SingleProductCard/styles.tsx +21 -4
  199. package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
  200. package/themes/original/src/components/StripeCardsList/index.tsx +13 -3
  201. package/themes/original/src/components/StripeElementsForm/index.tsx +48 -34
  202. package/themes/original/src/components/UpsellingProducts/index.tsx +238 -224
  203. package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
  204. package/themes/original/src/components/UserDetails/index.tsx +8 -4
  205. package/themes/original/src/components/UserFormDetails/index.tsx +76 -7
  206. package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
  207. package/themes/original/src/components/UserProfile/index.tsx +88 -79
  208. package/themes/original/src/components/UserProfileForm/index.tsx +27 -29
  209. package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
  210. package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
  211. package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
  212. package/themes/original/src/components/Wallets/index.tsx +67 -24
  213. package/themes/original/src/components/Wallets/styles.tsx +3 -4
  214. package/themes/original/src/components/shared/HeaderTitle.tsx +8 -3
  215. package/themes/original/src/components/shared/OButton.tsx +6 -2
  216. package/themes/original/src/components/shared/OInput.tsx +6 -1
  217. package/themes/original/src/components/shared/OModal.tsx +3 -3
  218. package/themes/original/src/layouts/Container.tsx +1 -1
  219. package/themes/original/src/types/index.tsx +40 -11
  220. package/themes/original/src/utils/index.tsx +273 -1
  221. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
@@ -1,8 +1,9 @@
1
1
  import React, { useState, useEffect } from 'react'
2
- import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity } from 'react-native';
2
+ import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity, Platform } from 'react-native';
3
3
  import { useTheme } from 'styled-components/native'
4
4
  import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
5
5
  import FastImage from 'react-native-fast-image'
6
+ import NavBar from '../NavBar'
6
7
  import {
7
8
  WalletList,
8
9
  useLanguage,
@@ -27,6 +28,7 @@ import {
27
28
  import { OButton, OIcon, OText, OModal } from '../shared';
28
29
  import { NotFoundSource } from '../NotFoundSource';
29
30
  import { WalletTransactions } from '../WalletTransactions'
31
+ import { GiftCardUI } from '../GiftCard/GiftCardUI'
30
32
 
31
33
  const WalletsUI = (props: any) => {
32
34
  const {
@@ -47,6 +49,7 @@ const WalletsUI = (props: any) => {
47
49
  const [{ parsePrice }] = useUtils()
48
50
  const [{ configs }] = useConfig()
49
51
 
52
+
50
53
  const styles = StyleSheet.create({
51
54
  logoStyle: {
52
55
  width: 120,
@@ -57,12 +60,20 @@ const WalletsUI = (props: any) => {
57
60
  flexDirection: 'column',
58
61
  justifyContent: 'center',
59
62
  alignItems: 'center',
63
+ },
64
+ dividerStyle: {
65
+ height: 8,
66
+ backgroundColor: theme.colors.backgroundGray100,
67
+ marginVertical: 25,
68
+ marginHorizontal: -40,
69
+ width: '100%'
60
70
  }
61
71
  });
62
72
 
63
73
  const [tabSelected, setTabSelected] = useState(isWalletCashEnabled ? 'cash' : 'credit_point')
64
74
  const [openHistory, setOpenHistory] = useState(false)
65
- const isChewLayout = theme?.wallets_view?.components?.layout?.type === 'chew'
75
+ const isChewLayout = theme?.header?.components?.layout?.type === 'chew'
76
+ const hideWalletsTheme = theme?.bar_menu?.components?.wallets?.hidden
66
77
 
67
78
  const isWalletEnabled = configs?.cash_wallet?.value && configs?.wallet_enabled?.value === '1' && (isWalletCashEnabled || isWalletPointsEnabled)
68
79
 
@@ -109,20 +120,41 @@ const WalletsUI = (props: any) => {
109
120
 
110
121
  return (
111
122
  <>
112
- <Container>
123
+ <Container
124
+ pdng={Platform.OS === 'ios' ? '10px' : '0'}
125
+ >
113
126
  <Header>
114
- <OText size={24} style={{ marginTop: 30 }}>{t('WALLETS', 'Wallets')}</OText>
115
- {isChewLayout && (
116
- <OButton
117
- text={t('WALLET_HISTORY', 'Wallet history')}
118
- bgColor={theme.colors.white}
119
- borderColor={theme.colors.lightGray}
120
- imgRightSrc={null}
121
- textStyle={{ fontSize: 12, color: theme.colors.disabled }}
122
- onClick={() => setOpenHistory(true)}
123
- style={{ borderRadius: 8, height: 40 }}
127
+ <View style={{
128
+ ...{
129
+ width: '100%',
130
+ display: 'flex',
131
+ flexDirection: hideWalletsTheme ? 'column' : 'row',
132
+ justifyContent: hideWalletsTheme ? 'flex-start' : 'space-between',
133
+ alignItems: hideWalletsTheme ? 'flex-start' : 'center',
134
+ marginTop: hideWalletsTheme ? 0 : 10,
135
+ },
136
+ }}>
137
+ <NavBar
138
+ title={t('WALLETS', 'Wallets')}
139
+ titleAlign={'center'}
140
+ onActionLeft={goToBack}
141
+ showCall={false}
142
+ paddingTop={10}
143
+ btnStyle={{ paddingLeft: 0 }}
144
+ hideArrowLeft={!hideWalletsTheme}
124
145
  />
125
- )}
146
+ {isChewLayout && !openHistory && (
147
+ <OButton
148
+ text={t('WALLET_HISTORY', 'Wallet history')}
149
+ bgColor={theme.colors.white}
150
+ borderColor={theme.colors.lightGray}
151
+ imgRightSrc={null}
152
+ textStyle={{ fontSize: 12, color: theme.colors.disabled }}
153
+ onClick={() => setOpenHistory(true)}
154
+ style={{ borderRadius: 8, height: 40, width: hideWalletsTheme ? '100%' : 150, marginTop: hideWalletsTheme ? 10 : 0 }}
155
+ />
156
+ )}
157
+ </View>
126
158
  </Header>
127
159
 
128
160
  {!walletList.loading &&
@@ -146,8 +178,8 @@ const WalletsUI = (props: any) => {
146
178
  borderBottomWidth: 1,
147
179
  borderBottomColor:
148
180
  tabSelected === wallet.type
149
- ? theme.colors.textNormal
150
- : theme.colors.border
181
+ ? theme.colors.textNormal
182
+ : theme.colors.border
151
183
  }}
152
184
  >
153
185
  <OText>
@@ -163,9 +195,9 @@ const WalletsUI = (props: any) => {
163
195
  <LoyaltyContent>
164
196
  <LoyaltyWrapp>
165
197
  <OText size={20}>
166
- {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}:`}
198
+ {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}`}
167
199
  </OText>
168
- {/* {loyaltyLevel.image ? (
200
+ {loyaltyLevel.image ? (
169
201
  <FastImage
170
202
  style={styles.logoStyle}
171
203
  source={{
@@ -180,7 +212,7 @@ const WalletsUI = (props: any) => {
180
212
  source={theme.images.dummies.loyaltyLevel}
181
213
  resizeMode='contain'
182
214
  />
183
- )} */}
215
+ )}
184
216
  <OText
185
217
  size={22}
186
218
  weight='bold'
@@ -206,6 +238,14 @@ const WalletsUI = (props: any) => {
206
238
  </OText>
207
239
  </BalanceElement>
208
240
 
241
+ {currentWalletSelected?.type === 'cash' && (
242
+ <>
243
+ <View style={styles.dividerStyle} />
244
+ <GiftCardUI navigation={navigation} />
245
+ <View style={styles.dividerStyle} />
246
+ </>
247
+ )}
248
+
209
249
  {!isChewLayout && (
210
250
  <WalletTransactions
211
251
  transactionsList={transactionsList}
@@ -259,15 +299,18 @@ const WalletsUI = (props: any) => {
259
299
  <ScrollView>
260
300
  <WalletTransactionsWrapper>
261
301
  <OButton
302
+ imgLeftStyle={{ width: 18 }}
262
303
  imgRightSrc={null}
263
304
  style={{
264
305
  borderWidth: 0,
265
- backgroundColor: theme.colors.white,
266
- padding: 0,
267
- paddingHorizontal: 0,
268
- width: 30,
306
+ width: 26,
307
+ height: 26,
308
+ backgroundColor: '#FFF',
309
+ borderColor: '#FFF',
310
+ shadowColor: '#FFF',
269
311
  paddingLeft: 0,
270
- paddingRight: 0
312
+ paddingRight: 0,
313
+ marginBottom: 10
271
314
  }}
272
315
  onClick={() => setOpenHistory(false)}
273
316
  icon={AntDesignIcon}
@@ -1,13 +1,12 @@
1
1
  import styled from 'styled-components/native'
2
2
 
3
3
  export const Container = styled.View`
4
- display: flex;
5
- flex-direction: column;
4
+ padding-horizontal: 20px;
5
+ padding-bottom: 20px;
6
+ padding-top: ${(props: any) => props.pdng};
6
7
  `
7
8
  export const Header = styled.View`
8
9
  flex-direction: row;
9
- align-items: center;
10
- justify-content: space-between;
11
10
  `
12
11
  export const SectionContent = styled.View`
13
12
  width: 100%;
@@ -1,16 +1,21 @@
1
1
  import React from 'react';
2
2
  import { Platform } from 'react-native';
3
3
  import OText from './OText';
4
+ import { useTheme } from 'styled-components/native'
4
5
 
5
6
  const HeaderTitle = (props: any) => {
6
7
  const { text, style } = props
8
+ const theme = useTheme();
9
+
7
10
  return (
8
11
  <OText
9
- size={24}
12
+ size={20}
13
+ weight={Platform.OS === 'ios' ? '600' : 'bold'}
10
14
  style={style ?? {
11
15
  marginTop: Platform.OS === 'android' ? 50 : 30,
12
- paddingHorizontal: 40,
13
- textTransform: 'capitalize'
16
+ paddingHorizontal: props.ph ?? 40,
17
+ textTransform: 'capitalize',
18
+ color: props.titleColor || theme.colors.textNormal,
14
19
  }}
15
20
  >
16
21
  {text}
@@ -12,6 +12,7 @@ import {
12
12
  import * as React from 'react';
13
13
  import styled, { useTheme } from 'styled-components/native';
14
14
  import { OIcon } from './';
15
+ import { css } from 'styled-components';
15
16
 
16
17
  const StyledButton = styled.View<Props>`
17
18
  background-color: ${(props: any) => props.theme.colors.primary};
@@ -26,6 +27,9 @@ const StyledButton = styled.View<Props>`
26
27
  padding-left: 20px;
27
28
  padding-right: 20px;
28
29
  position: relative;
30
+ ${(props: any) => props?.theme?.general?.components?.buttons?.borderRadius && css`
31
+ border-radius: ${props?.theme?.general?.components?.buttons?.borderRadius}px;
32
+ `}
29
33
  `
30
34
  const StyledButtonDisabled = styled(StyledButton)`
31
35
  background-color: ${(props: any) => props.theme.colors.disabled};
@@ -115,12 +119,12 @@ const OButton = (props: Props): React.ReactElement => {
115
119
  style={{ width: props.isCircle ? 52 : props.style?.width, ...props.parentStyle }}
116
120
  disabled={props.isDisabledWithSameStyles}
117
121
  >
118
- <StyledButton style={props.bgColor ? { ...props.style, backgroundColor: props.bgColor, borderColor: props.borderColor } : props.style}>
122
+ <StyledButton style={props.bgColor ? { ...props.style, backgroundColor: props.bgColor, borderColor: props.borderColor, borderRadius: parseInt(theme?.general?.components?.buttons?.borderRadius) || props.style?.borderRadius } : { ...props.style, borderRadius: parseInt(theme?.general?.components?.buttons?.borderRadius) || props.style?.borderRadius }}>
119
123
  {props.icon ? (
120
124
  <props.icon {...props.iconProps} />
121
125
  ) : null}
122
126
  {props.imgLeftSrc ? (
123
- <OIcon style={props.imgLeftStyle} src={props.imgLeftSrc} />
127
+ <OIcon style={props.imgLeftStyle} src={props.imgLeftSrc} color={theme.colors.textNormal} />
124
128
  ) : null}
125
129
  {props.text ? (
126
130
  <StyledText style={props.textStyle}>{props.text}</StyledText>
@@ -100,7 +100,12 @@ const OInput = (props: Props): React.ReactElement => {
100
100
  ref={(e: any) => {
101
101
  props.forwardRef && (props.forwardRef.current = e)
102
102
  }}
103
- style={props?.inputStyle}
103
+ style={{
104
+ ...(theme?.general?.components?.inputs?.color && {
105
+ color: theme?.general?.components?.inputs?.color
106
+ }),
107
+ ...props?.inputStyle
108
+ }}
104
109
  onFocus={() => setInputFocused(true)}
105
110
  onBlur={() => setInputFocused(false)}
106
111
  />
@@ -52,7 +52,7 @@ const OModal = (props: Props): React.ReactElement => {
52
52
 
53
53
  const theme = useTheme();
54
54
 
55
- const RenderSafeAreaView = () => (
55
+ const renderSafeAreaView = () => (
56
56
  <SafeAreaView style={styles.container}>
57
57
  {!entireModal ? (
58
58
  <View style={styles.centeredView}>
@@ -101,10 +101,10 @@ const OModal = (props: Props): React.ReactElement => {
101
101
  enabled
102
102
  behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
103
103
  >
104
- <RenderSafeAreaView/>
104
+ {renderSafeAreaView()}
105
105
  </KeyboardView>
106
106
  ) : (
107
- <RenderSafeAreaView/>
107
+ renderSafeAreaView()
108
108
  )}
109
109
  </Modal>
110
110
  );
@@ -18,7 +18,7 @@ export const Container = (props: any) => {
18
18
  <View
19
19
  style={{
20
20
  flex: 1,
21
- paddingTop: insets.top,
21
+ paddingTop: props.pt ?? insets.top,
22
22
  backgroundColor: theme.colors.backgroundPage
23
23
  }}
24
24
  >
@@ -19,6 +19,7 @@ export interface LoginParams {
19
19
  notificationState?: any;
20
20
  handleReCaptcha?: any;
21
21
  enableReCaptcha?: any;
22
+ isGuest?: any;
22
23
  otpType?: string,
23
24
  setOtpType: (type: string) => void,
24
25
  generateOtpCode: (values?: any) => void,
@@ -91,7 +92,8 @@ export interface AddressFormParams {
91
92
  hasAddressDefault?: any,
92
93
  isFromCheckout?: boolean
93
94
  afterSignup?: boolean
94
- isGuestFromStore?: boolean
95
+ isGuestFromStore?: boolean,
96
+ businessSlug?: number | string
95
97
  }
96
98
  export interface SignupParams {
97
99
  navigation?: any;
@@ -118,6 +120,7 @@ export interface SignupParams {
118
120
  useSignUpOtpEmail?: boolean;
119
121
  useSignUpOtpCellphone?: boolean;
120
122
  willVerifyOtpState?: boolean;
123
+ isGuest?: any;
121
124
  numOtpInputs?: number;
122
125
  handleChangePromotions: () => void;
123
126
  handleChangeInput?: (in1: any, in2: any) => void;
@@ -173,6 +176,9 @@ export interface BusinessesListingParams {
173
176
  handleChangePriceLevel?: any;
174
177
  businessTypeSelected?: any;
175
178
  logosLayout?: boolean;
179
+ isCustomLayout?: boolean;
180
+ citiesState?: any;
181
+ actualSlug?: any;
176
182
  }
177
183
  export interface HighestRatedBusinessesParams {
178
184
  businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
@@ -218,6 +224,8 @@ export interface BusinessControllerParams {
218
224
  setFavoriteIds?: any;
219
225
  handleUpdateBusinessList?: any;
220
226
  enableIntersection?: boolean;
227
+ isCustomLayout?: boolean;
228
+ getBusinessOffer?: any;
221
229
  handleCustomUpdate?: (businessId: number, changes: any) => {};
222
230
  }
223
231
  export interface BusinessProductsListingParams {
@@ -244,6 +252,10 @@ export interface BusinessProductsListingParams {
244
252
  handleUpdateProducts?: any;
245
253
  professionalSelected?: any;
246
254
  handleChangeProfessionalSelected?: any;
255
+ handleUpdateProfessionals?: any;
256
+ onBusinessClick?: any;
257
+ onNavigationRedirect?: any;
258
+ businessSingleId?: number | string
247
259
  }
248
260
  export interface BusinessBasicInformationParams {
249
261
  navigation?: any;
@@ -295,6 +307,7 @@ export interface BusinessProductsListParams {
295
307
  handleUpdateProducts?: any,
296
308
  navigation?: any;
297
309
  previouslyProducts?: any;
310
+ businessSingleId?: number | string
298
311
  }
299
312
  export interface SingleProductCardParams {
300
313
  businessId: any;
@@ -310,6 +323,8 @@ export interface SingleProductCardParams {
310
323
  navigation?: any;
311
324
  isPreviously?: any;
312
325
  isProductId?: any;
326
+ viewString?: string;
327
+ businessSingleId?: number
313
328
  }
314
329
  export interface BusinessInformationParams {
315
330
  navigation?: any,
@@ -338,6 +353,8 @@ export interface NotFoundSourceParams {
338
353
  conditioned?: boolean,
339
354
  onClickButton?: any,
340
355
  children?: any
356
+ hideImage?: any
357
+ btnStyle?: any
341
358
  }
342
359
  export interface OrdersOptionParams {
343
360
  orderList?: any,
@@ -356,8 +373,8 @@ export interface OrdersOptionParams {
356
373
  preOrders?: boolean,
357
374
  reorderState?: any,
358
375
  handleReorder?: (orderId: number) => {},
359
- setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
360
- ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
376
+ setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
377
+ ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
361
378
  setSelectedOrderId?: any,
362
379
  setOpenMessges?: any,
363
380
  loadMoreStatus?: boolean,
@@ -429,7 +446,8 @@ export interface ProductItemAccordionParams {
429
446
  onDeleteProduct?: (product: any) => void,
430
447
  onEditProduct?: (product: any) => void,
431
448
  offsetDisabled?: any,
432
- isFromCheckout?: any
449
+ isFromCheckout?: any,
450
+ isDisabledEdit?: any
433
451
  }
434
452
  export interface ReviewOrderParams {
435
453
  order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
@@ -528,6 +546,7 @@ export interface FloatingButtonParams {
528
546
  }
529
547
  export interface MomentOptionParams {
530
548
  navigation: any;
549
+ isCart?: any;
531
550
  nopadding?: boolean;
532
551
  datesList: Array<any>;
533
552
  hoursList: Array<any>;
@@ -574,7 +593,7 @@ export interface UpsellingProductsParams {
574
593
  business?: any;
575
594
  businessId?: number;
576
595
  cartProducts?: Array<any>;
577
- handleUpsellingPage: () => void;
596
+ handleUpsellingPage: (cart ?: any) => void;
578
597
  openUpselling: boolean;
579
598
  canOpenUpselling?: boolean;
580
599
  setCanOpenUpselling?: (value: any) => void;
@@ -585,6 +604,8 @@ export interface UpsellingProductsParams {
585
604
  products?: any;
586
605
  onNavigationRedirect?: any;
587
606
  onGoBack?: any;
607
+ singleBusiness?: any;
608
+ isFranchiseApp?: any;
588
609
  }
589
610
 
590
611
  export interface GoogleMapsParams {
@@ -598,7 +619,8 @@ export interface GoogleMapsParams {
598
619
  isSetInputs?: boolean,
599
620
  locations?: Array<any>,
600
621
  setSaveLocation?: (val: boolean) => void,
601
- handleToggleMap?: () => void
622
+ handleToggleMap?: () => void,
623
+ isIntGeoCoder: boolean
602
624
  }
603
625
 
604
626
  export interface HelpParams {
@@ -667,6 +689,7 @@ export interface PlaceSpotParams {
667
689
  vehicle?: any,
668
690
  setVehicle?: any,
669
691
  handleChangeSpot?: any
692
+ setPlaceSpotNumber?: any
670
693
  }
671
694
 
672
695
  export interface PromotionParams {
@@ -693,6 +716,8 @@ export interface otpParams {
693
716
  handleLoginOtp: (code: string) => void,
694
717
  setAlertState: any;
695
718
  pinCount: number;
719
+ otpError: any,
720
+ setOtpError: any
696
721
  }
697
722
 
698
723
  export interface FavoriteParams {
@@ -719,7 +744,7 @@ export interface SingleOrderCardParams {
719
744
  pastOrders: any,
720
745
  isMessageView?: any,
721
746
  handleClickOrder: (value: any) => {},
722
- handleRemoveCart: () => {},
747
+ handleRemoveCart: (value: any) => {},
723
748
  cartState: any
724
749
  }
725
750
 
@@ -732,7 +757,7 @@ export interface PreviousBusinessOrderedParams {
732
757
  isBusinessesSearchList?: any,
733
758
  businessLoading?: boolean,
734
759
  businesses?: any
735
- handleUpdateBusinesses?: (businessId: number, changes: any) => {},
760
+ handleUpdateBusinesses?: (businessId: number, changes: any) => {},
736
761
  }
737
762
 
738
763
  export interface ServiceFormParams {
@@ -748,13 +773,16 @@ export interface ServiceFormParams {
748
773
  professionalList: any,
749
774
  productObject?: any,
750
775
  professionalListState?: any,
751
- isCartProduct?: any
776
+ isCartProduct?: any,
777
+ actionStatus?: any,
778
+ handleCreateGuestUser?: any
752
779
  }
753
780
 
754
781
  export interface ProfessionalFilterParams {
755
782
  professionals?: any,
756
783
  professionalSelected?: any,
757
- handleChangeProfessionalSelected: any
784
+ handleChangeProfessionalSelected: any,
785
+ handleUpdateProfessionals?: any
758
786
  }
759
787
 
760
788
  export interface ProfessionalProfileParams {
@@ -771,7 +799,8 @@ export interface OrderItAgainParams {
771
799
  currentCart: any,
772
800
  handleUpdateProducts: any,
773
801
  navigation: any,
774
- searchValue?: string
802
+ searchValue?: string,
803
+ businessSingleId?: number | string
775
804
  }
776
805
 
777
806
  export interface PreviousProductsOrderedParams {