ordering-ui-react-native 0.17.94 → 0.17.95-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 (224) hide show
  1. package/package.json +9 -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 +0 -20
  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 +3 -2
  11. package/src/types/index.tsx +5 -0
  12. package/src/utils/index.tsx +7 -2
  13. package/themes/business/index.tsx +2 -0
  14. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +36 -26
  15. package/themes/business/src/components/BusinessController/index.tsx +0 -1
  16. package/themes/business/src/components/Chat/index.tsx +163 -123
  17. package/themes/business/src/components/DriverMap/index.tsx +17 -6
  18. package/themes/business/src/components/DriverSchedule/index.tsx +45 -8
  19. package/themes/business/src/components/FloatingButton/index.tsx +34 -31
  20. package/themes/business/src/components/GoogleMap/index.tsx +58 -57
  21. package/themes/business/src/components/LoginForm/index.tsx +5 -2
  22. package/themes/business/src/components/MapView/index.tsx +14 -10
  23. package/themes/business/src/components/MessagesOption/index.tsx +22 -94
  24. package/themes/business/src/components/NewOrderNotification/index.tsx +123 -96
  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 +202 -12
  28. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +84 -37
  29. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +87 -66
  30. package/themes/business/src/components/OrderDetailsLogistic/index.tsx +200 -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/OrdersListManager/index.tsx +7 -2
  35. package/themes/business/src/components/OrdersListManager/utils.tsx +1 -1
  36. package/themes/business/src/components/OrdersOption/index.tsx +44 -47
  37. package/themes/business/src/components/PreviousMessages/FooterMessageComponent.tsx +103 -0
  38. package/themes/business/src/components/PreviousMessages/index.tsx +97 -55
  39. package/themes/business/src/components/PreviousOrders/OrderItem.tsx +21 -29
  40. package/themes/business/src/components/PreviousOrders/OrderList.tsx +93 -0
  41. package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +1 -1
  42. package/themes/business/src/components/PreviousOrders/index.tsx +198 -221
  43. package/themes/business/src/components/PreviousOrders/styles.tsx +10 -0
  44. package/themes/business/src/components/ProductItemAccordion/index.tsx +7 -1
  45. package/themes/business/src/components/ReviewCustomer/index.tsx +18 -13
  46. package/themes/business/src/components/StoresList/index.tsx +3 -4
  47. package/themes/business/src/components/UserProfileForm/index.tsx +14 -15
  48. package/themes/business/src/components/WebsocketStatus/index.tsx +171 -0
  49. package/themes/business/src/components/WebsocketStatus/styles.tsx +28 -0
  50. package/themes/business/src/components/shared/OModal.tsx +16 -9
  51. package/themes/business/src/types/index.tsx +24 -10
  52. package/themes/business/src/utils/index.tsx +29 -2
  53. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  54. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  55. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  56. package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
  57. package/themes/kiosk/src/components/Intro/index.tsx +16 -1
  58. package/themes/kiosk/src/components/LoginForm/index.tsx +7 -5
  59. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  60. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  61. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  62. package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +2 -2
  63. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  64. package/themes/original/index.tsx +7 -3
  65. package/themes/original/src/components/AddressDetails/index.tsx +19 -3
  66. package/themes/original/src/components/AddressForm/index.tsx +35 -17
  67. package/themes/original/src/components/AddressList/index.tsx +5 -8
  68. package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
  69. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  70. package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
  71. package/themes/original/src/components/BusinessBasicInformation/index.tsx +72 -36
  72. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +10 -12
  73. package/themes/original/src/components/BusinessController/index.tsx +35 -44
  74. package/themes/original/src/components/BusinessController/styles.tsx +12 -5
  75. package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
  76. package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
  77. package/themes/original/src/components/BusinessInformation/index.tsx +140 -85
  78. package/themes/original/src/components/BusinessItemAccordion/index.tsx +21 -23
  79. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +1 -1
  80. package/themes/original/src/components/BusinessListingSearch/index.tsx +346 -340
  81. package/themes/original/src/components/BusinessListingSearch/styles.tsx +0 -18
  82. package/themes/original/src/components/BusinessPreorder/index.tsx +103 -19
  83. package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -2
  84. package/themes/original/src/components/BusinessProductsList/index.tsx +15 -7
  85. package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
  86. package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
  87. package/themes/original/src/components/BusinessProductsListing/index.tsx +137 -32
  88. package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -3
  89. package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
  90. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +69 -0
  91. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +406 -0
  92. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListing.tsx +76 -0
  93. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +36 -403
  94. package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
  95. package/themes/original/src/components/Cart/index.tsx +51 -87
  96. package/themes/original/src/components/CartContent/index.tsx +70 -30
  97. package/themes/original/src/components/CartContent/styles.tsx +6 -6
  98. package/themes/original/src/components/Checkout/index.tsx +265 -32
  99. package/themes/original/src/components/CitiesControl/index.tsx +1 -1
  100. package/themes/original/src/components/CouponControl/index.tsx +10 -3
  101. package/themes/original/src/components/DatePicker/index.tsx +17 -0
  102. package/themes/original/src/components/DatePicker/styles.tsx +20 -0
  103. package/themes/original/src/components/DriverTips/index.tsx +12 -4
  104. package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
  105. package/themes/original/src/components/Favorite/index.tsx +1 -5
  106. package/themes/original/src/components/GPSButton/index.tsx +6 -4
  107. package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +8 -3
  108. package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +42 -5
  109. package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +2 -0
  110. package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +84 -8
  111. package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
  112. package/themes/original/src/components/GoogleMap/index.tsx +63 -7
  113. package/themes/original/src/components/Home/index.tsx +13 -4
  114. package/themes/original/src/components/LastOrder/index.tsx +2 -1
  115. package/themes/original/src/components/LastOrders/index.tsx +2 -1
  116. package/themes/original/src/components/LoginForm/Otp/index.tsx +91 -25
  117. package/themes/original/src/components/LoginForm/index.tsx +64 -34
  118. package/themes/original/src/components/LottieAnimation/index.tsx +88 -63
  119. package/themes/original/src/components/MessageListing/index.tsx +9 -2
  120. package/themes/original/src/components/Messages/index.tsx +15 -4
  121. package/themes/original/src/components/MomentOption/index.tsx +41 -36
  122. package/themes/original/src/components/MomentOption/styles.tsx +0 -15
  123. package/themes/original/src/components/MomentSelector/index.tsx +1 -1
  124. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +161 -49
  125. package/themes/original/src/components/MultiCheckout/index.tsx +347 -69
  126. package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
  127. package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -1
  128. package/themes/original/src/components/MyOrders/index.tsx +12 -1
  129. package/themes/original/src/components/NavBar/index.tsx +20 -13
  130. package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
  131. package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
  132. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +21 -5
  133. package/themes/original/src/components/OrderDetails/index.tsx +50 -38
  134. package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
  135. package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
  136. package/themes/original/src/components/OrderProgress/index.tsx +34 -25
  137. package/themes/original/src/components/OrderSummary/index.tsx +59 -56
  138. package/themes/original/src/components/OrderTypeSelector/index.tsx +5 -6
  139. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +13 -13
  140. package/themes/original/src/components/OrdersOption/index.tsx +43 -20
  141. package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
  142. package/themes/original/src/components/PageBanner/index.tsx +65 -29
  143. package/themes/original/src/components/PageBanner/styles.tsx +0 -3
  144. package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -0
  145. package/themes/original/src/components/PaymentOptionStripe/styles.tsx +3 -0
  146. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  147. package/themes/original/src/components/PaymentOptions/index.tsx +100 -34
  148. package/themes/original/src/components/PhoneInputNumber/index.tsx +18 -4
  149. package/themes/original/src/components/ProductForm/index.tsx +86 -30
  150. package/themes/original/src/components/ProductForm/styles.tsx +3 -3
  151. package/themes/original/src/components/ProductItemAccordion/index.tsx +8 -6
  152. package/themes/original/src/components/ProductOptionSubOption/index.tsx +49 -20
  153. package/themes/original/src/components/ProductOptionSubOption/styles.tsx +10 -9
  154. package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
  155. package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
  156. package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
  157. package/themes/original/src/components/Promotions/index.tsx +2 -2
  158. package/themes/original/src/components/Promotions/styles.tsx +3 -1
  159. package/themes/original/src/components/ReviewProducts/index.tsx +16 -7
  160. package/themes/original/src/components/ScheduleAccordion/index.tsx +3 -3
  161. package/themes/original/src/components/ServiceForm/index.tsx +63 -20
  162. package/themes/original/src/components/SignupForm/index.tsx +43 -27
  163. package/themes/original/src/components/SingleOrderCard/index.tsx +44 -20
  164. package/themes/original/src/components/SingleOrderCard/styles.tsx +1 -1
  165. package/themes/original/src/components/SingleProductCard/index.tsx +13 -10
  166. package/themes/original/src/components/SingleProductCard/styles.tsx +8 -3
  167. package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
  168. package/themes/original/src/components/StripeCardsList/index.tsx +61 -5
  169. package/themes/original/src/components/StripeElementsForm/index.tsx +48 -34
  170. package/themes/original/src/components/StripeElementsForm/naked.tsx +12 -1
  171. package/themes/original/src/components/UpsellingProducts/index.tsx +5 -10
  172. package/themes/original/src/components/UserDetails/index.tsx +3 -1
  173. package/themes/original/src/components/UserFormDetails/index.tsx +113 -10
  174. package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
  175. package/themes/original/src/components/UserProfile/index.tsx +7 -25
  176. package/themes/original/src/components/UserProfileForm/index.tsx +30 -31
  177. package/themes/original/src/components/UserVerification/index.tsx +55 -50
  178. package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
  179. package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
  180. package/themes/original/src/components/Wallets/index.tsx +51 -61
  181. package/themes/original/src/components/Wallets/styles.tsx +2 -4
  182. package/themes/original/src/components/shared/OButton.tsx +3 -3
  183. package/themes/original/src/components/shared/OInput.tsx +4 -5
  184. package/themes/original/src/components/shared/OModal.tsx +3 -3
  185. package/themes/original/src/config/constants.tsx +0 -10
  186. package/themes/original/src/types/index.tsx +36 -17
  187. package/themes/original/src/utils/index.tsx +185 -13
  188. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
  189. package/src/navigators/BottomNavigator.tsx +0 -117
  190. package/src/navigators/CheckoutNavigator.tsx +0 -66
  191. package/src/navigators/HomeNavigator.tsx +0 -202
  192. package/src/navigators/NavigationRef.tsx +0 -7
  193. package/src/navigators/RootNavigator.tsx +0 -269
  194. package/src/pages/Account.tsx +0 -34
  195. package/src/pages/AddressForm.tsx +0 -62
  196. package/src/pages/AddressList.tsx +0 -24
  197. package/src/pages/BusinessProductsList.tsx +0 -81
  198. package/src/pages/BusinessesListing.tsx +0 -43
  199. package/src/pages/CartList.tsx +0 -49
  200. package/src/pages/Checkout.tsx +0 -101
  201. package/src/pages/ForgotPassword.tsx +0 -24
  202. package/src/pages/Help.tsx +0 -23
  203. package/src/pages/HelpAccountAndPayment.tsx +0 -23
  204. package/src/pages/HelpGuide.tsx +0 -23
  205. package/src/pages/HelpOrder.tsx +0 -23
  206. package/src/pages/Home.tsx +0 -36
  207. package/src/pages/IntroductoryTutorial.tsx +0 -170
  208. package/src/pages/Login.tsx +0 -47
  209. package/src/pages/MomentOption.tsx +0 -30
  210. package/src/pages/MultiCheckout.tsx +0 -31
  211. package/src/pages/MultiOrdersDetails.tsx +0 -27
  212. package/src/pages/MyOrders.tsx +0 -40
  213. package/src/pages/NetworkError.tsx +0 -24
  214. package/src/pages/NotFound.tsx +0 -22
  215. package/src/pages/OrderDetails.tsx +0 -25
  216. package/src/pages/ProductDetails.tsx +0 -55
  217. package/src/pages/Profile.tsx +0 -36
  218. package/src/pages/ReviewDriver.tsx +0 -30
  219. package/src/pages/ReviewOrder.tsx +0 -32
  220. package/src/pages/ReviewProducts.tsx +0 -30
  221. package/src/pages/Sessions.tsx +0 -22
  222. package/src/pages/Signup.tsx +0 -53
  223. package/src/pages/SpinnerLoader.tsx +0 -10
  224. package/src/pages/Splash.tsx +0 -21
@@ -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,
@@ -72,7 +73,7 @@ const WalletsUI = (props: any) => {
72
73
  const [tabSelected, setTabSelected] = useState(isWalletCashEnabled ? 'cash' : 'credit_point')
73
74
  const [openHistory, setOpenHistory] = useState(false)
74
75
  const isChewLayout = theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
75
- const hideWalletsTheme = theme?.bar_menu?.components?.wallets?.hidden
76
+ const hideWalletsTheme = theme?.bar_menu?.components?.wallet?.hidden === true
76
77
 
77
78
  const isWalletEnabled = configs?.cash_wallet?.value && configs?.wallet_enabled?.value === '1' && (isWalletCashEnabled || isWalletPointsEnabled)
78
79
 
@@ -119,60 +120,42 @@ const WalletsUI = (props: any) => {
119
120
 
120
121
  return (
121
122
  <>
122
- <Container>
123
+ <Container
124
+ pdng={Platform.OS === 'ios' ? '10px' : '0'}
125
+ >
123
126
  <Header>
124
- <View style={{
125
- ...{
126
- width: '100%',
127
- display: 'flex',
128
- flexDirection: 'row',
129
- alignItems: 'center',
130
- },
131
- }}>
132
- {(!props.hideBackBtn || !hideWalletsTheme) && !isChewLayout && (
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
+ isVertical={!hideWalletsTheme}
145
+ hideArrowLeft={!hideWalletsTheme}
146
+ />
147
+ {isChewLayout && !openHistory && (
133
148
  <OButton
134
- imgLeftStyle={{ width: 18 }}
149
+ text={t('WALLET_HISTORY', 'Wallet history')}
150
+ bgColor={theme.colors.white}
151
+ borderColor={theme.colors.lightGray}
135
152
  imgRightSrc={null}
136
- style={{
137
- borderWidth: 0,
138
- width: 26,
139
- height: 26,
140
- backgroundColor: '#FFF',
141
- borderColor: '#FFF',
142
- shadowColor: '#FFF',
143
- paddingLeft: 0,
144
- paddingRight: 0,
145
- marginTop: 30,
146
- }}
147
- onClick={goToBack}
148
- icon={AntDesignIcon}
149
- iconProps={{
150
- name: 'arrowleft',
151
- size: 26
152
- }}
153
+ textStyle={{ fontSize: 12, color: theme.colors.disabled }}
154
+ onClick={() => setOpenHistory(true)}
155
+ style={{ borderRadius: 8, height: 40, width: !hideWalletsTheme ? '100%' : 150, marginTop: !hideWalletsTheme ? 10 : 0 }}
153
156
  />
154
157
  )}
155
- <OText
156
- size={20}
157
- style={{
158
- marginTop: 30,
159
- marginLeft: (!props.hideBackBtn || !hideWalletsTheme) && !isChewLayout ? 10 : 0,
160
- color: theme.colors.textNormal,
161
- }}
162
- weight={Platform.OS === 'ios' ? '600' : 'bold'}
163
- >{t('WALLETS', 'Wallets')}</OText>
164
- </View>
165
- {isChewLayout && (
166
- <OButton
167
- text={t('WALLET_HISTORY', 'Wallet history')}
168
- bgColor={theme.colors.white}
169
- borderColor={theme.colors.lightGray}
170
- imgRightSrc={null}
171
- textStyle={{ fontSize: 12, color: theme.colors.disabled }}
172
- onClick={() => setOpenHistory(true)}
173
- style={{ borderRadius: 8, height: 40 }}
174
- />
175
- )}
158
+ </View>
176
159
  </Header>
177
160
 
178
161
  {!walletList.loading &&
@@ -213,9 +196,9 @@ const WalletsUI = (props: any) => {
213
196
  <LoyaltyContent>
214
197
  <LoyaltyWrapp>
215
198
  <OText size={20}>
216
- {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}:`}
199
+ {`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}`}
217
200
  </OText>
218
- {/* {loyaltyLevel.image ? (
201
+ {loyaltyLevel.image ? (
219
202
  <FastImage
220
203
  style={styles.logoStyle}
221
204
  source={{
@@ -230,7 +213,7 @@ const WalletsUI = (props: any) => {
230
213
  source={theme.images.dummies.loyaltyLevel}
231
214
  resizeMode='contain'
232
215
  />
233
- )} */}
216
+ )}
234
217
  <OText
235
218
  size={22}
236
219
  weight='bold'
@@ -256,9 +239,13 @@ const WalletsUI = (props: any) => {
256
239
  </OText>
257
240
  </BalanceElement>
258
241
 
259
- <View style={styles.dividerStyle} />
260
- <GiftCardUI navigation={navigation} />
261
- <View style={styles.dividerStyle} />
242
+ {currentWalletSelected?.type === 'cash' && (
243
+ <>
244
+ <View style={styles.dividerStyle} />
245
+ <GiftCardUI navigation={navigation} />
246
+ <View style={styles.dividerStyle} />
247
+ </>
248
+ )}
262
249
 
263
250
  {!isChewLayout && (
264
251
  <WalletTransactions
@@ -313,15 +300,18 @@ const WalletsUI = (props: any) => {
313
300
  <ScrollView>
314
301
  <WalletTransactionsWrapper>
315
302
  <OButton
303
+ imgLeftStyle={{ width: 18 }}
316
304
  imgRightSrc={null}
317
305
  style={{
318
306
  borderWidth: 0,
319
- backgroundColor: theme.colors.white,
320
- padding: 0,
321
- paddingHorizontal: 0,
322
- width: 30,
307
+ width: 26,
308
+ height: 26,
309
+ backgroundColor: '#FFF',
310
+ borderColor: '#FFF',
311
+ shadowColor: '#FFF',
323
312
  paddingLeft: 0,
324
- paddingRight: 0
313
+ paddingRight: 0,
314
+ marginBottom: 10
325
315
  }}
326
316
  onClick={() => setOpenHistory(false)}
327
317
  icon={AntDesignIcon}
@@ -1,13 +1,11 @@
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-bottom: 20px;
5
+ padding-top: ${(props: any) => props.pdng};
6
6
  `
7
7
  export const Header = styled.View`
8
8
  flex-direction: row;
9
- align-items: center;
10
- justify-content: space-between;
11
9
  `
12
10
  export const SectionContent = styled.View`
13
11
  width: 100%;
@@ -27,8 +27,8 @@ const StyledButton = styled.View<Props>`
27
27
  padding-left: 20px;
28
28
  padding-right: 20px;
29
29
  position: relative;
30
- ${(props : any) => props?.theme?.general?.components?.buttons?.borderRadius && css`
31
- border-radius: ${props?.theme?.general?.components?.buttons?.borderRadius};
30
+ ${(props: any) => props?.theme?.general?.components?.buttons?.borderRadius && css`
31
+ border-radius: ${props?.theme?.general?.components?.buttons?.borderRadius}px;
32
32
  `}
33
33
  `
34
34
  const StyledButtonDisabled = styled(StyledButton)`
@@ -119,7 +119,7 @@ const OButton = (props: Props): React.ReactElement => {
119
119
  style={{ width: props.isCircle ? 52 : props.style?.width, ...props.parentStyle }}
120
120
  disabled={props.isDisabledWithSameStyles}
121
121
  >
122
- <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 }}>
123
123
  {props.icon ? (
124
124
  <props.icon {...props.iconProps} />
125
125
  ) : null}
@@ -3,7 +3,7 @@ import { ImageSourcePropType, ImageStyle, ViewStyle, TextInputProps, TextStyle }
3
3
  import styled from 'styled-components/native';
4
4
  import OIcon from './OIcon';
5
5
  import MaterialIcon from 'react-native-vector-icons/MaterialIcons'
6
- import { useTheme, css } from 'styled-components/native';
6
+ import { useTheme } from 'styled-components/native';
7
7
 
8
8
  const Input = styled.TextInput`
9
9
  flex-grow: 1;
@@ -53,9 +53,6 @@ const Wrapper = styled.Pressable`
53
53
  align-items: center;
54
54
  justify-content: center;
55
55
  width: 100%;
56
- ${(props: any) => props.theme?.general?.components?.inputs?.borderRadius && css`
57
- border-radius: ${props?.theme?.general?.components?.inputs?.borderRadius};
58
- `}
59
56
  `;
60
57
 
61
58
  const OInput = (props: Props): React.ReactElement => {
@@ -104,7 +101,9 @@ const OInput = (props: Props): React.ReactElement => {
104
101
  props.forwardRef && (props.forwardRef.current = e)
105
102
  }}
106
103
  style={{
107
- color: theme?.general?.components?.inputs?.color,
104
+ ...(theme?.general?.components?.inputs?.color && {
105
+ color: theme?.general?.components?.inputs?.color
106
+ }),
108
107
  ...props?.inputStyle
109
108
  }}
110
109
  onFocus={() => setInputFocused(true)}
@@ -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
  );
@@ -29,15 +29,5 @@ export const ORDER_TYPES = [
29
29
  value: 5,
30
30
  content: 'DRIVE_THRU',
31
31
  description: 'ORDERTYPE_DESCRIPTION_DRIVETHRU',
32
- },
33
- {
34
- value: 7,
35
- content: 'CATERING_DELIVERY',
36
- description: 'ORDERTYPE_DESCRIPTION_CATERING_DELIVERY',
37
- },
38
- {
39
- value: 8,
40
- content: 'CATERING_PICKUP',
41
- description: 'ORDERTYPE_DESCRIPTION_CATERING_PICKUP',
42
32
  }
43
33
  ]
@@ -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;
@@ -144,6 +147,7 @@ export interface PhoneInputParams {
144
147
  isDisabled?: any;
145
148
  isStartValidation?: any;
146
149
  changeCountry?: any;
150
+ updateStateWithSubmit?: boolean
147
151
  }
148
152
 
149
153
  export interface LanguageSelectorParams {
@@ -252,6 +256,8 @@ export interface BusinessProductsListingParams {
252
256
  handleUpdateProfessionals?: any;
253
257
  onBusinessClick?: any;
254
258
  onNavigationRedirect?: any;
259
+ businessSingleId?: number | string
260
+ fromMulti?: boolean
255
261
  }
256
262
  export interface BusinessBasicInformationParams {
257
263
  navigation?: any;
@@ -303,6 +309,7 @@ export interface BusinessProductsListParams {
303
309
  handleUpdateProducts?: any,
304
310
  navigation?: any;
305
311
  previouslyProducts?: any;
312
+ businessSingleId?: number | string
306
313
  }
307
314
  export interface SingleProductCardParams {
308
315
  businessId: any;
@@ -319,6 +326,7 @@ export interface SingleProductCardParams {
319
326
  isPreviously?: any;
320
327
  isProductId?: any;
321
328
  viewString?: string;
329
+ businessSingleId?: number
322
330
  }
323
331
  export interface BusinessInformationParams {
324
332
  navigation?: any,
@@ -347,6 +355,8 @@ export interface NotFoundSourceParams {
347
355
  conditioned?: boolean,
348
356
  onClickButton?: any,
349
357
  children?: any
358
+ hideImage?: any
359
+ btnStyle?: any
350
360
  }
351
361
  export interface OrdersOptionParams {
352
362
  orderList?: any,
@@ -365,8 +375,8 @@ export interface OrdersOptionParams {
365
375
  preOrders?: boolean,
366
376
  reorderState?: any,
367
377
  handleReorder?: (orderId: number) => {},
368
- setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
369
- ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
378
+ setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
379
+ ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
370
380
  setSelectedOrderId?: any,
371
381
  setOpenMessges?: any,
372
382
  loadMoreStatus?: boolean,
@@ -384,6 +394,7 @@ export interface OrdersOptionParams {
384
394
  BusinessControllerSkeletons?: any,
385
395
  businessPaginationProps?: any,
386
396
  businesses?: any
397
+ businessId?: any;
387
398
  }
388
399
  export interface ActiveOrdersParams {
389
400
  orders?: any,
@@ -427,6 +438,7 @@ export interface OrderDetailsParams {
427
438
  onNavigationRedirect?: any,
428
439
  reorderState?: any,
429
440
  handleReorder?: any,
441
+ hideViaText?: boolean,
430
442
  }
431
443
  export interface ProductItemAccordionParams {
432
444
  key?: any;
@@ -538,20 +550,13 @@ export interface FloatingButtonParams {
538
550
  }
539
551
  export interface MomentOptionParams {
540
552
  navigation: any;
553
+ isCart?: any;
541
554
  nopadding?: boolean;
542
555
  datesList: Array<any>;
543
556
  hoursList: Array<any>;
544
557
  dateSelected?: any;
545
558
  timeSelected?: any;
546
559
  isAsap?: boolean;
547
- cateringPreorder?: boolean,
548
- isCart?: boolean,
549
- preorderLeadTime?: number,
550
- business?: any,
551
- getActualSchedule?: any,
552
- preorderMaximumDays?: number,
553
- preorderMinimumDays?: number,
554
- isPage?: boolean,
555
560
  handleAsap: () => {};
556
561
  handleChangeDate: (value: any) => {};
557
562
  handleChangeTime: (value: any) => {};
@@ -569,6 +574,9 @@ export interface BusinessPreorderParams {
569
574
  goToBack: any;
570
575
  business: any;
571
576
  handleBusinessClick: (value: any) => {};
577
+ getActualSchedule?: any;
578
+ cateringPreorder?: boolean;
579
+ preorderLeadTime?: number
572
580
  }
573
581
  export interface BusinessMenuListParams {
574
582
  menu: any;
@@ -592,7 +600,7 @@ export interface UpsellingProductsParams {
592
600
  business?: any;
593
601
  businessId?: number;
594
602
  cartProducts?: Array<any>;
595
- handleUpsellingPage: () => void;
603
+ handleUpsellingPage: (cart ?: any) => void;
596
604
  openUpselling: boolean;
597
605
  canOpenUpselling?: boolean;
598
606
  setCanOpenUpselling?: (value: any) => void;
@@ -618,7 +626,10 @@ export interface GoogleMapsParams {
618
626
  isSetInputs?: boolean,
619
627
  locations?: Array<any>,
620
628
  setSaveLocation?: (val: boolean) => void,
621
- handleToggleMap?: () => void
629
+ handleToggleMap?: () => void,
630
+ isIntGeoCoder: boolean,
631
+ businessZones?: any
632
+ delta?: number
622
633
  }
623
634
 
624
635
  export interface HelpParams {
@@ -714,6 +725,10 @@ export interface otpParams {
714
725
  handleLoginOtp: (code: string) => void,
715
726
  setAlertState: any;
716
727
  pinCount: number;
728
+ otpError: any,
729
+ setOtpError: any
730
+ isCheckingCode: boolean
731
+ setCheckingCode: (value: boolean) => void
717
732
  }
718
733
 
719
734
  export interface FavoriteParams {
@@ -740,7 +755,7 @@ export interface SingleOrderCardParams {
740
755
  pastOrders: any,
741
756
  isMessageView?: any,
742
757
  handleClickOrder: (value: any) => {},
743
- handleRemoveCart: () => {},
758
+ handleRemoveCart: (value: any) => {},
744
759
  cartState: any
745
760
  }
746
761
 
@@ -769,13 +784,16 @@ export interface ServiceFormParams {
769
784
  professionalList: any,
770
785
  productObject?: any,
771
786
  professionalListState?: any,
772
- isCartProduct?: any
787
+ isCartProduct?: any,
788
+ actionStatus?: any,
789
+ handleCreateGuestUser?: any
773
790
  }
774
791
 
775
792
  export interface ProfessionalFilterParams {
776
793
  professionals?: any,
777
794
  professionalSelected?: any,
778
- handleChangeProfessionalSelected: any
795
+ handleChangeProfessionalSelected: any,
796
+ handleUpdateProfessionals?: any
779
797
  }
780
798
 
781
799
  export interface ProfessionalProfileParams {
@@ -792,7 +810,8 @@ export interface OrderItAgainParams {
792
810
  currentCart: any,
793
811
  handleUpdateProducts: any,
794
812
  navigation: any,
795
- searchValue?: string
813
+ searchValue?: string,
814
+ businessSingleId?: number | string
796
815
  }
797
816
 
798
817
  export interface PreviousProductsOrderedParams {