ordering-ui-react-native 0.17.66 → 0.17.67-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 (207) hide show
  1. package/package.json +8 -7
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/BusinessInformation/index.tsx +10 -9
  4. package/src/components/BusinessesListing/index.tsx +1 -1
  5. package/src/components/OrderCreating/index.tsx +1 -21
  6. package/src/components/PaymentOptionsWebView/index.tsx +29 -8
  7. package/src/components/PhoneInputNumber/index.tsx +6 -2
  8. package/src/components/StripeMethodForm/index.tsx +136 -102
  9. package/src/components/VerifyPhone/styles.tsx +1 -2
  10. package/src/components/shared/OToast.tsx +2 -1
  11. package/src/types/index.tsx +5 -0
  12. package/src/utils/index.tsx +5 -0
  13. package/themes/business/index.tsx +2 -0
  14. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +270 -245
  15. package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
  16. package/themes/business/src/components/BusinessController/index.tsx +0 -1
  17. package/themes/business/src/components/Chat/index.tsx +123 -111
  18. package/themes/business/src/components/DriverMap/index.tsx +17 -6
  19. package/themes/business/src/components/DriverSchedule/index.tsx +42 -5
  20. package/themes/business/src/components/GoogleMap/index.tsx +58 -57
  21. package/themes/business/src/components/LoginForm/Otp/index.tsx +31 -3
  22. package/themes/business/src/components/LoginForm/index.tsx +15 -22
  23. package/themes/business/src/components/MapView/index.tsx +10 -10
  24. package/themes/business/src/components/NewOrderNotification/index.tsx +35 -21
  25. package/themes/business/src/components/NotFoundSource/index.tsx +2 -2
  26. package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
  27. package/themes/business/src/components/OrderDetails/Delivery.tsx +191 -6
  28. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +133 -65
  29. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +64 -63
  30. package/themes/business/src/components/OrderDetailsLogistic/index.tsx +195 -0
  31. package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
  32. package/themes/business/src/components/OrderMessage/index.tsx +19 -18
  33. package/themes/business/src/components/OrderSummary/index.tsx +114 -123
  34. package/themes/business/src/components/OrdersOption/index.tsx +32 -75
  35. package/themes/business/src/components/PreviousOrders/OrderItem.tsx +249 -0
  36. package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
  37. package/themes/business/src/components/PreviousOrders/index.tsx +444 -242
  38. package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
  39. package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
  40. package/themes/business/src/components/ReviewCustomer/index.tsx +30 -15
  41. package/themes/business/src/components/StoresList/index.tsx +3 -4
  42. package/themes/business/src/components/UserProfileForm/index.tsx +11 -13
  43. package/themes/business/src/components/shared/OLink.tsx +33 -13
  44. package/themes/business/src/components/shared/OModal.tsx +16 -9
  45. package/themes/business/src/components/shared/OText.tsx +8 -2
  46. package/themes/business/src/types/index.tsx +28 -12
  47. package/themes/business/src/utils/index.tsx +29 -2
  48. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  49. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  50. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  51. package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
  52. package/themes/kiosk/src/components/Intro/index.tsx +16 -1
  53. package/themes/kiosk/src/components/LoginForm/index.tsx +7 -9
  54. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  55. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  56. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  57. package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +2 -2
  58. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  59. package/themes/original/index.tsx +4 -0
  60. package/themes/original/src/components/AddressDetails/index.tsx +19 -3
  61. package/themes/original/src/components/AddressForm/index.tsx +61 -39
  62. package/themes/original/src/components/AddressList/index.tsx +27 -22
  63. package/themes/original/src/components/AddressList/styles.tsx +4 -2
  64. package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
  65. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  66. package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
  67. package/themes/original/src/components/BusinessBasicInformation/index.tsx +153 -96
  68. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +10 -12
  69. package/themes/original/src/components/BusinessController/index.tsx +94 -66
  70. package/themes/original/src/components/BusinessController/styles.tsx +22 -3
  71. package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
  72. package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
  73. package/themes/original/src/components/BusinessInformation/index.tsx +142 -109
  74. package/themes/original/src/components/BusinessItemAccordion/index.tsx +15 -20
  75. package/themes/original/src/components/BusinessListingSearch/index.tsx +349 -339
  76. package/themes/original/src/components/BusinessListingSearch/styles.tsx +0 -18
  77. package/themes/original/src/components/BusinessPreorder/index.tsx +103 -19
  78. package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -2
  79. package/themes/original/src/components/BusinessProductsList/index.tsx +15 -7
  80. package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
  81. package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
  82. package/themes/original/src/components/BusinessProductsListing/index.tsx +684 -555
  83. package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
  84. package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
  85. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
  86. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +69 -38
  87. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +0 -1
  88. package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
  89. package/themes/original/src/components/Cart/index.tsx +77 -50
  90. package/themes/original/src/components/CartContent/index.tsx +117 -20
  91. package/themes/original/src/components/CartContent/styles.tsx +17 -7
  92. package/themes/original/src/components/Checkout/index.tsx +356 -124
  93. package/themes/original/src/components/CitiesControl/index.tsx +1 -1
  94. package/themes/original/src/components/CouponControl/index.tsx +10 -3
  95. package/themes/original/src/components/DriverTips/index.tsx +52 -34
  96. package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
  97. package/themes/original/src/components/Favorite/index.tsx +8 -9
  98. package/themes/original/src/components/Favorite/styles.tsx +1 -1
  99. package/themes/original/src/components/FavoriteList/index.tsx +1 -35
  100. package/themes/original/src/components/FloatingButton/index.tsx +1 -2
  101. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  102. package/themes/original/src/components/GPSButton/index.tsx +6 -4
  103. package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +96 -0
  104. package/themes/original/src/components/GiftCard/GiftCardUI/styles.tsx +5 -0
  105. package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +100 -0
  106. package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +8 -0
  107. package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +191 -0
  108. package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +8 -0
  109. package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +165 -0
  110. package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +9 -0
  111. package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
  112. package/themes/original/src/components/GoogleMap/index.tsx +60 -5
  113. package/themes/original/src/components/Help/index.tsx +8 -8
  114. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +10 -31
  115. package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +5 -3
  116. package/themes/original/src/components/HelpGuide/index.tsx +6 -6
  117. package/themes/original/src/components/HelpGuide/styles.tsx +6 -0
  118. package/themes/original/src/components/HelpOrder/index.tsx +6 -15
  119. package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
  120. package/themes/original/src/components/Home/index.tsx +13 -4
  121. package/themes/original/src/components/LastOrder/index.tsx +1 -34
  122. package/themes/original/src/components/LoginForm/Otp/index.tsx +91 -31
  123. package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
  124. package/themes/original/src/components/LoginForm/index.tsx +64 -34
  125. package/themes/original/src/components/LottieAnimation/index.tsx +89 -55
  126. package/themes/original/src/components/MessageListing/index.tsx +16 -42
  127. package/themes/original/src/components/Messages/index.tsx +29 -7
  128. package/themes/original/src/components/MomentOption/index.tsx +195 -90
  129. package/themes/original/src/components/MomentSelector/index.tsx +1 -1
  130. package/themes/original/src/components/MultiCart/index.tsx +50 -0
  131. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +162 -51
  132. package/themes/original/src/components/MultiCheckout/index.tsx +330 -99
  133. package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
  134. package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +37 -224
  135. package/themes/original/src/components/MultiOrdersDetails/index.tsx +68 -21
  136. package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
  137. package/themes/original/src/components/MyOrders/index.tsx +40 -29
  138. package/themes/original/src/components/NavBar/index.tsx +20 -17
  139. package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
  140. package/themes/original/src/components/Notifications/index.tsx +46 -50
  141. package/themes/original/src/components/Notifications/styles.tsx +6 -3
  142. package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
  143. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +21 -5
  144. package/themes/original/src/components/OrderDetails/index.tsx +191 -363
  145. package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
  146. package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
  147. package/themes/original/src/components/OrderProgress/index.tsx +30 -56
  148. package/themes/original/src/components/OrderSummary/index.tsx +88 -59
  149. package/themes/original/src/components/OrderTypeSelector/index.tsx +2 -1
  150. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +14 -14
  151. package/themes/original/src/components/OrdersOption/index.tsx +78 -67
  152. package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
  153. package/themes/original/src/components/PageBanner/index.tsx +98 -38
  154. package/themes/original/src/components/PageBanner/styles.tsx +0 -10
  155. package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -0
  156. package/themes/original/src/components/PaymentOptionStripe/styles.tsx +1 -1
  157. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  158. package/themes/original/src/components/PaymentOptions/index.tsx +78 -35
  159. package/themes/original/src/components/PhoneInputNumber/index.tsx +3 -3
  160. package/themes/original/src/components/ProductForm/index.tsx +105 -30
  161. package/themes/original/src/components/ProductForm/styles.tsx +5 -5
  162. package/themes/original/src/components/ProductItemAccordion/index.tsx +14 -11
  163. package/themes/original/src/components/ProductOptionSubOption/index.tsx +20 -18
  164. package/themes/original/src/components/ProductOptionSubOption/styles.tsx +5 -9
  165. package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
  166. package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
  167. package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
  168. package/themes/original/src/components/Promotions/index.tsx +5 -4
  169. package/themes/original/src/components/Promotions/styles.tsx +3 -1
  170. package/themes/original/src/components/ReviewOrder/index.tsx +26 -9
  171. package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
  172. package/themes/original/src/components/ReviewProducts/index.tsx +16 -7
  173. package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
  174. package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
  175. package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
  176. package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
  177. package/themes/original/src/components/ServiceForm/index.tsx +66 -17
  178. package/themes/original/src/components/Sessions/index.tsx +11 -8
  179. package/themes/original/src/components/Sessions/styles.tsx +5 -0
  180. package/themes/original/src/components/SignupForm/index.tsx +43 -27
  181. package/themes/original/src/components/SingleOrderCard/index.tsx +130 -56
  182. package/themes/original/src/components/SingleOrderCard/styles.tsx +11 -2
  183. package/themes/original/src/components/SingleProductCard/index.tsx +72 -31
  184. package/themes/original/src/components/SingleProductCard/styles.tsx +20 -4
  185. package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
  186. package/themes/original/src/components/StripeCardsList/index.tsx +49 -5
  187. package/themes/original/src/components/StripeElementsForm/index.tsx +48 -34
  188. package/themes/original/src/components/StripeElementsForm/naked.tsx +12 -1
  189. package/themes/original/src/components/UpsellingProducts/index.tsx +238 -224
  190. package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
  191. package/themes/original/src/components/UserDetails/index.tsx +3 -1
  192. package/themes/original/src/components/UserFormDetails/index.tsx +76 -7
  193. package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
  194. package/themes/original/src/components/UserProfile/index.tsx +88 -79
  195. package/themes/original/src/components/UserProfileForm/index.tsx +27 -29
  196. package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
  197. package/themes/original/src/components/UserVerification/index.tsx +52 -49
  198. package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
  199. package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
  200. package/themes/original/src/components/Wallets/index.tsx +66 -30
  201. package/themes/original/src/components/Wallets/styles.tsx +3 -4
  202. package/themes/original/src/components/shared/OButton.tsx +6 -2
  203. package/themes/original/src/components/shared/OInput.tsx +6 -1
  204. package/themes/original/src/components/shared/OModal.tsx +3 -3
  205. package/themes/original/src/types/index.tsx +42 -10
  206. package/themes/original/src/utils/index.tsx +273 -1
  207. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
@@ -63,12 +63,12 @@ export const WalletTransactions = (props: any) => {
63
63
  (transactionsList?.error ||
64
64
  !transactionsList.list?.[`wallet:${currentWalletSelected?.id}`]?.length) &&
65
65
  (
66
- <NotFoundSource
67
- content={transactionsList?.error
66
+ <OText color={theme.colors.disabled} size={16} style={{ textAlign: 'center' }}>
67
+ {transactionsList?.error
68
68
  ? t('ERROR_NOT_FOUND_TRANSACTIONS', 'Sorry, an error has occurred')
69
69
  : t('NOT_FOUND_TRANSACTIONS', 'No transactions to show at this time.')
70
70
  }
71
- />
71
+ </OText>
72
72
  )}
73
73
  </View>
74
74
  </Container>
@@ -3,6 +3,7 @@ import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity, Platform } f
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?.toLowerCase() === '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,27 +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
115
- size={20}
116
- style={{
117
- marginTop: 30,
118
- color: theme.colors.textNormal,
119
- }}
120
- weight={Platform.OS === 'ios' ? '600' : 'bold'}
121
- >{t('WALLETS', 'Wallets')}</OText>
122
- {isChewLayout && (
123
- <OButton
124
- text={t('WALLET_HISTORY', 'Wallet history')}
125
- bgColor={theme.colors.white}
126
- borderColor={theme.colors.lightGray}
127
- imgRightSrc={null}
128
- textStyle={{ fontSize: 12, color: theme.colors.disabled }}
129
- onClick={() => setOpenHistory(true)}
130
- 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}
131
145
  />
132
- )}
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>
133
158
  </Header>
134
159
 
135
160
  {!walletList.loading &&
@@ -153,8 +178,8 @@ const WalletsUI = (props: any) => {
153
178
  borderBottomWidth: 1,
154
179
  borderBottomColor:
155
180
  tabSelected === wallet.type
156
- ? theme.colors.textNormal
157
- : theme.colors.border
181
+ ? theme.colors.textNormal
182
+ : theme.colors.border
158
183
  }}
159
184
  >
160
185
  <OText>
@@ -170,9 +195,9 @@ const WalletsUI = (props: any) => {
170
195
  <LoyaltyContent>
171
196
  <LoyaltyWrapp>
172
197
  <OText size={20}>
173
- {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}:`}
198
+ {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}`}
174
199
  </OText>
175
- {/* {loyaltyLevel.image ? (
200
+ {loyaltyLevel.image ? (
176
201
  <FastImage
177
202
  style={styles.logoStyle}
178
203
  source={{
@@ -187,7 +212,7 @@ const WalletsUI = (props: any) => {
187
212
  source={theme.images.dummies.loyaltyLevel}
188
213
  resizeMode='contain'
189
214
  />
190
- )} */}
215
+ )}
191
216
  <OText
192
217
  size={22}
193
218
  weight='bold'
@@ -213,6 +238,14 @@ const WalletsUI = (props: any) => {
213
238
  </OText>
214
239
  </BalanceElement>
215
240
 
241
+ {currentWalletSelected?.type === 'cash' && (
242
+ <>
243
+ <View style={styles.dividerStyle} />
244
+ <GiftCardUI navigation={navigation} />
245
+ <View style={styles.dividerStyle} />
246
+ </>
247
+ )}
248
+
216
249
  {!isChewLayout && (
217
250
  <WalletTransactions
218
251
  transactionsList={transactionsList}
@@ -266,15 +299,18 @@ const WalletsUI = (props: any) => {
266
299
  <ScrollView>
267
300
  <WalletTransactionsWrapper>
268
301
  <OButton
302
+ imgLeftStyle={{ width: 18 }}
269
303
  imgRightSrc={null}
270
304
  style={{
271
305
  borderWidth: 0,
272
- backgroundColor: theme.colors.white,
273
- padding: 0,
274
- paddingHorizontal: 0,
275
- width: 30,
306
+ width: 26,
307
+ height: 26,
308
+ backgroundColor: '#FFF',
309
+ borderColor: '#FFF',
310
+ shadowColor: '#FFF',
276
311
  paddingLeft: 0,
277
- paddingRight: 0
312
+ paddingRight: 0,
313
+ marginBottom: 10
278
314
  }}
279
315
  onClick={() => setOpenHistory(false)}
280
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%;
@@ -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
  );
@@ -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;
@@ -222,6 +225,7 @@ export interface BusinessControllerParams {
222
225
  handleUpdateBusinessList?: any;
223
226
  enableIntersection?: boolean;
224
227
  isCustomLayout?: boolean;
228
+ getBusinessOffer?: any;
225
229
  handleCustomUpdate?: (businessId: number, changes: any) => {};
226
230
  }
227
231
  export interface BusinessProductsListingParams {
@@ -248,6 +252,11 @@ export interface BusinessProductsListingParams {
248
252
  handleUpdateProducts?: any;
249
253
  professionalSelected?: any;
250
254
  handleChangeProfessionalSelected?: any;
255
+ handleUpdateProfessionals?: any;
256
+ onBusinessClick?: any;
257
+ onNavigationRedirect?: any;
258
+ businessSingleId?: number | string
259
+ fromMulti?: boolean
251
260
  }
252
261
  export interface BusinessBasicInformationParams {
253
262
  navigation?: any;
@@ -299,6 +308,7 @@ export interface BusinessProductsListParams {
299
308
  handleUpdateProducts?: any,
300
309
  navigation?: any;
301
310
  previouslyProducts?: any;
311
+ businessSingleId?: number | string
302
312
  }
303
313
  export interface SingleProductCardParams {
304
314
  businessId: any;
@@ -314,6 +324,8 @@ export interface SingleProductCardParams {
314
324
  navigation?: any;
315
325
  isPreviously?: any;
316
326
  isProductId?: any;
327
+ viewString?: string;
328
+ businessSingleId?: number
317
329
  }
318
330
  export interface BusinessInformationParams {
319
331
  navigation?: any,
@@ -342,6 +354,8 @@ export interface NotFoundSourceParams {
342
354
  conditioned?: boolean,
343
355
  onClickButton?: any,
344
356
  children?: any
357
+ hideImage?: any
358
+ btnStyle?: any
345
359
  }
346
360
  export interface OrdersOptionParams {
347
361
  orderList?: any,
@@ -360,8 +374,8 @@ export interface OrdersOptionParams {
360
374
  preOrders?: boolean,
361
375
  reorderState?: any,
362
376
  handleReorder?: (orderId: number) => {},
363
- setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
364
- ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
377
+ setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
378
+ ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
365
379
  setSelectedOrderId?: any,
366
380
  setOpenMessges?: any,
367
381
  loadMoreStatus?: boolean,
@@ -379,6 +393,7 @@ export interface OrdersOptionParams {
379
393
  BusinessControllerSkeletons?: any,
380
394
  businessPaginationProps?: any,
381
395
  businesses?: any
396
+ businessId?: any;
382
397
  }
383
398
  export interface ActiveOrdersParams {
384
399
  orders?: any,
@@ -422,6 +437,7 @@ export interface OrderDetailsParams {
422
437
  onNavigationRedirect?: any,
423
438
  reorderState?: any,
424
439
  handleReorder?: any,
440
+ hideViaText?: boolean,
425
441
  }
426
442
  export interface ProductItemAccordionParams {
427
443
  key?: any;
@@ -433,7 +449,8 @@ export interface ProductItemAccordionParams {
433
449
  onDeleteProduct?: (product: any) => void,
434
450
  onEditProduct?: (product: any) => void,
435
451
  offsetDisabled?: any,
436
- isFromCheckout?: any
452
+ isFromCheckout?: any,
453
+ isDisabledEdit?: any
437
454
  }
438
455
  export interface ReviewOrderParams {
439
456
  order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
@@ -532,6 +549,7 @@ export interface FloatingButtonParams {
532
549
  }
533
550
  export interface MomentOptionParams {
534
551
  navigation: any;
552
+ isCart?: any;
535
553
  nopadding?: boolean;
536
554
  datesList: Array<any>;
537
555
  hoursList: Array<any>;
@@ -555,6 +573,9 @@ export interface BusinessPreorderParams {
555
573
  goToBack: any;
556
574
  business: any;
557
575
  handleBusinessClick: (value: any) => {};
576
+ getActualSchedule?: any;
577
+ cateringPreorder?: boolean;
578
+ preorderLeadTime?: number
558
579
  }
559
580
  export interface BusinessMenuListParams {
560
581
  menu: any;
@@ -578,7 +599,7 @@ export interface UpsellingProductsParams {
578
599
  business?: any;
579
600
  businessId?: number;
580
601
  cartProducts?: Array<any>;
581
- handleUpsellingPage: () => void;
602
+ handleUpsellingPage: (cart ?: any) => void;
582
603
  openUpselling: boolean;
583
604
  canOpenUpselling?: boolean;
584
605
  setCanOpenUpselling?: (value: any) => void;
@@ -589,6 +610,8 @@ export interface UpsellingProductsParams {
589
610
  products?: any;
590
611
  onNavigationRedirect?: any;
591
612
  onGoBack?: any;
613
+ singleBusiness?: any;
614
+ isFranchiseApp?: any;
592
615
  }
593
616
 
594
617
  export interface GoogleMapsParams {
@@ -602,7 +625,8 @@ export interface GoogleMapsParams {
602
625
  isSetInputs?: boolean,
603
626
  locations?: Array<any>,
604
627
  setSaveLocation?: (val: boolean) => void,
605
- handleToggleMap?: () => void
628
+ handleToggleMap?: () => void,
629
+ isIntGeoCoder: boolean
606
630
  }
607
631
 
608
632
  export interface HelpParams {
@@ -698,6 +722,10 @@ export interface otpParams {
698
722
  handleLoginOtp: (code: string) => void,
699
723
  setAlertState: any;
700
724
  pinCount: number;
725
+ otpError: any,
726
+ setOtpError: any
727
+ isCheckingCode: boolean
728
+ setCheckingCode: (value: boolean) => void
701
729
  }
702
730
 
703
731
  export interface FavoriteParams {
@@ -724,7 +752,7 @@ export interface SingleOrderCardParams {
724
752
  pastOrders: any,
725
753
  isMessageView?: any,
726
754
  handleClickOrder: (value: any) => {},
727
- handleRemoveCart: () => {},
755
+ handleRemoveCart: (value: any) => {},
728
756
  cartState: any
729
757
  }
730
758
 
@@ -753,13 +781,16 @@ export interface ServiceFormParams {
753
781
  professionalList: any,
754
782
  productObject?: any,
755
783
  professionalListState?: any,
756
- isCartProduct?: any
784
+ isCartProduct?: any,
785
+ actionStatus?: any,
786
+ handleCreateGuestUser?: any
757
787
  }
758
788
 
759
789
  export interface ProfessionalFilterParams {
760
790
  professionals?: any,
761
791
  professionalSelected?: any,
762
- handleChangeProfessionalSelected: any
792
+ handleChangeProfessionalSelected: any,
793
+ handleUpdateProfessionals?: any
763
794
  }
764
795
 
765
796
  export interface ProfessionalProfileParams {
@@ -776,7 +807,8 @@ export interface OrderItAgainParams {
776
807
  currentCart: any,
777
808
  handleUpdateProducts: any,
778
809
  navigation: any,
779
- searchValue?: string
810
+ searchValue?: string,
811
+ businessSingleId?: number | string
780
812
  }
781
813
 
782
814
  export interface PreviousProductsOrderedParams {