ordering-ui-react-native 0.16.15 → 0.16.16-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 (205) hide show
  1. package/package.json +7 -4
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/ActiveOrders/index.tsx +61 -63
  4. package/src/components/ActiveOrders/styles.tsx +8 -14
  5. package/src/components/AddressForm/index.tsx +18 -2
  6. package/src/components/BusinessBasicInformation/index.tsx +11 -19
  7. package/src/components/BusinessController/index.tsx +10 -8
  8. package/src/components/BusinessInformation/index.tsx +33 -4
  9. package/src/components/BusinessInformation/styles.tsx +2 -2
  10. package/src/components/BusinessProductsList/index.tsx +10 -10
  11. package/src/components/BusinessTypeFilter/index.tsx +1 -2
  12. package/src/components/BusinessesListing/index.tsx +1 -1
  13. package/src/components/Checkout/index.tsx +2 -1
  14. package/src/components/LanguageSelector/index.tsx +21 -16
  15. package/src/components/LoginForm/index.tsx +118 -30
  16. package/src/components/LoginForm/styles.tsx +6 -0
  17. package/src/components/Messages/index.tsx +2 -2
  18. package/src/components/NotificationSetting/index.tsx +85 -0
  19. package/src/components/OrderDetails/index.tsx +7 -21
  20. package/src/components/OrdersOption/index.tsx +54 -56
  21. package/src/components/PaymentOptions/index.tsx +335 -365
  22. package/src/components/PaymentOptionsWebView/index.tsx +120 -121
  23. package/src/components/ReviewDriver/index.tsx +1 -1
  24. package/src/components/ReviewOrder/index.tsx +2 -1
  25. package/src/components/ReviewProducts/index.tsx +11 -0
  26. package/src/components/SignupForm/index.tsx +143 -61
  27. package/src/components/SingleProductReview/index.tsx +8 -5
  28. package/src/components/StripeElementsForm/index.tsx +25 -16
  29. package/src/components/VerifyPhone/styles.tsx +1 -2
  30. package/src/components/shared/OBottomPopup.tsx +6 -2
  31. package/src/index.tsx +2 -0
  32. package/src/pages/BusinessesListing.tsx +7 -6
  33. package/src/pages/OrderDetails.tsx +1 -1
  34. package/src/pages/ReviewDriver.tsx +2 -2
  35. package/src/pages/ReviewOrder.tsx +2 -2
  36. package/src/theme.json +0 -1
  37. package/src/types/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
  38. package/src/types/index.tsx +13 -9
  39. package/src/utils/index.tsx +0 -1
  40. package/themes/business/index.tsx +4 -0
  41. package/themes/business/src/components/BusinessController/index.tsx +2 -2
  42. package/themes/business/src/components/Chat/index.tsx +42 -34
  43. package/themes/business/src/components/DriverMap/index.tsx +7 -5
  44. package/themes/business/src/components/DriverSchedule/index.tsx +71 -0
  45. package/themes/business/src/components/DriverSchedule/styles.tsx +6 -0
  46. package/themes/business/src/components/LoginForm/index.tsx +111 -74
  47. package/themes/business/src/components/MapView/index.tsx +12 -1
  48. package/themes/business/src/components/MessagesOption/index.tsx +11 -1
  49. package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
  50. package/themes/business/src/components/OrderDetails/Delivery.tsx +3 -3
  51. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +27 -21
  52. package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
  53. package/themes/business/src/components/OrdersOption/index.tsx +65 -21
  54. package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
  55. package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
  56. package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
  57. package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
  58. package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
  59. package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
  60. package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
  61. package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
  62. package/themes/business/src/components/PreviousMessages/index.tsx +17 -18
  63. package/themes/business/src/components/PreviousOrders/index.tsx +21 -23
  64. package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
  65. package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
  66. package/themes/business/src/components/ScheduleBlocked/index.tsx +53 -0
  67. package/themes/business/src/components/UserFormDetails/index.tsx +5 -2
  68. package/themes/business/src/components/UserProfileForm/index.tsx +28 -4
  69. package/themes/business/src/components/shared/ODropDown.tsx +42 -8
  70. package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
  71. package/themes/business/src/components/shared/OModal.tsx +40 -37
  72. package/themes/business/src/types/index.tsx +15 -9
  73. package/themes/business/src/utils/index.tsx +10 -0
  74. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  75. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  76. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  77. package/themes/kiosk/src/components/BusinessMenu/index.tsx +2 -1
  78. package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
  79. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +1 -0
  80. package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
  81. package/themes/kiosk/src/components/DrawerView/index.tsx +1 -0
  82. package/themes/kiosk/src/components/DrawerView/styles.tsx +2 -2
  83. package/themes/kiosk/src/components/LoginForm/index.tsx +121 -10
  84. package/themes/kiosk/src/components/LoginForm/styles.tsx +5 -0
  85. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  86. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  87. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  88. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  89. package/themes/kiosk/src/types/index.d.ts +2 -0
  90. package/themes/original/index.tsx +12 -0
  91. package/themes/original/src/components/AddressForm/index.tsx +136 -133
  92. package/themes/original/src/components/AddressList/index.tsx +1 -1
  93. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  94. package/themes/original/src/components/BusinessBasicInformation/index.tsx +302 -160
  95. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
  96. package/themes/original/src/components/BusinessController/index.tsx +173 -108
  97. package/themes/original/src/components/BusinessItemAccordion/index.tsx +9 -7
  98. package/themes/original/src/components/BusinessItemAccordion/styles.tsx +4 -0
  99. package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
  100. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
  101. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
  102. package/themes/original/src/components/BusinessListingSearch/index.tsx +106 -126
  103. package/themes/original/src/components/BusinessListingSearch/styles.tsx +18 -13
  104. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
  105. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
  106. package/themes/original/src/components/BusinessProductsList/index.tsx +53 -53
  107. package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
  108. package/themes/original/src/components/BusinessProductsListing/index.tsx +280 -175
  109. package/themes/original/src/components/BusinessProductsListing/styles.tsx +18 -4
  110. package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
  111. package/themes/original/src/components/BusinessTypeFilter/index.tsx +109 -40
  112. package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
  113. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
  114. package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -2
  115. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +676 -0
  116. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
  117. package/themes/original/src/components/BusinessesListing/index.tsx +100 -495
  118. package/themes/original/src/components/Cart/index.tsx +70 -34
  119. package/themes/original/src/components/Cart/styles.tsx +4 -0
  120. package/themes/original/src/components/CartContent/index.tsx +22 -16
  121. package/themes/original/src/components/Checkout/index.tsx +106 -66
  122. package/themes/original/src/components/Checkout/styles.tsx +0 -1
  123. package/themes/original/src/components/DriverTips/index.tsx +4 -4
  124. package/themes/original/src/components/DriverTips/styles.tsx +2 -1
  125. package/themes/original/src/components/Favorite/index.tsx +1 -0
  126. package/themes/original/src/components/Favorite/styles.tsx +1 -0
  127. package/themes/original/src/components/FavoriteList/index.tsx +143 -94
  128. package/themes/original/src/components/GPSButton/index.tsx +20 -19
  129. package/themes/original/src/components/GoogleMap/index.tsx +20 -12
  130. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +8 -3
  131. package/themes/original/src/components/HelpGuide/index.tsx +8 -3
  132. package/themes/original/src/components/HelpOrder/index.tsx +8 -3
  133. package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
  134. package/themes/original/src/components/LoginForm/Otp/index.tsx +3 -2
  135. package/themes/original/src/components/LoginForm/index.tsx +79 -42
  136. package/themes/original/src/components/Messages/index.tsx +17 -17
  137. package/themes/original/src/components/MomentSelector/index.tsx +197 -0
  138. package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
  139. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +2 -2
  140. package/themes/original/src/components/MultiCheckout/index.tsx +14 -1
  141. package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +13 -11
  142. package/themes/original/src/components/MultiOrdersDetails/index.tsx +31 -19
  143. package/themes/original/src/components/MyOrders/index.tsx +68 -6
  144. package/themes/original/src/components/NavBar/index.tsx +11 -5
  145. package/themes/original/src/components/NetworkError/index.tsx +5 -3
  146. package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
  147. package/themes/original/src/components/Notifications/index.tsx +148 -0
  148. package/themes/original/src/components/Notifications/styles.tsx +17 -0
  149. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
  150. package/themes/original/src/components/OrderDetails/index.tsx +209 -49
  151. package/themes/original/src/components/OrderDetails/styles.tsx +15 -2
  152. package/themes/original/src/components/OrderItAgain/index.tsx +75 -0
  153. package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
  154. package/themes/original/src/components/OrderProgress/index.tsx +8 -2
  155. package/themes/original/src/components/OrderSummary/index.tsx +1 -34
  156. package/themes/original/src/components/OrderTypeSelector/index.tsx +84 -36
  157. package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
  158. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +100 -106
  159. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +17 -12
  160. package/themes/original/src/components/OrdersOption/index.tsx +38 -23
  161. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  162. package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
  163. package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
  164. package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
  165. package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
  166. package/themes/original/src/components/ProductForm/index.tsx +712 -655
  167. package/themes/original/src/components/ProductForm/styles.tsx +9 -7
  168. package/themes/original/src/components/ProductItemAccordion/index.tsx +170 -128
  169. package/themes/original/src/components/ProductOption/index.tsx +1 -1
  170. package/themes/original/src/components/ProfessionalFilter/index.tsx +129 -0
  171. package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
  172. package/themes/original/src/components/ProfessionalProfile/index.tsx +309 -0
  173. package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
  174. package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
  175. package/themes/original/src/components/ReviewOrder/index.tsx +18 -3
  176. package/themes/original/src/components/ReviewProducts/index.tsx +1 -1
  177. package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
  178. package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
  179. package/themes/original/src/components/SearchBar/index.tsx +10 -5
  180. package/themes/original/src/components/ServiceForm/index.tsx +631 -0
  181. package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
  182. package/themes/original/src/components/SignupForm/index.tsx +301 -158
  183. package/themes/original/src/components/SingleOrderCard/index.tsx +213 -177
  184. package/themes/original/src/components/SingleProductCard/index.tsx +198 -110
  185. package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
  186. package/themes/original/src/components/SingleProductReview/index.tsx +30 -3
  187. package/themes/original/src/components/SingleProductReview/styles.tsx +12 -0
  188. package/themes/original/src/components/StripeElementsForm/index.tsx +15 -7
  189. package/themes/original/src/components/UpsellingProducts/index.tsx +14 -4
  190. package/themes/original/src/components/UserDetails/index.tsx +31 -17
  191. package/themes/original/src/components/UserFormDetails/index.tsx +74 -81
  192. package/themes/original/src/components/UserProfile/index.tsx +57 -29
  193. package/themes/original/src/components/UserProfile/styles.ts +17 -0
  194. package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
  195. package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
  196. package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
  197. package/themes/original/src/components/Wallets/index.tsx +174 -162
  198. package/themes/original/src/components/Wallets/styles.tsx +10 -8
  199. package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
  200. package/themes/original/src/components/shared/OButton.tsx +10 -3
  201. package/themes/original/src/components/shared/OInput.tsx +3 -2
  202. package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
  203. package/themes/original/src/types/index.tsx +123 -29
  204. package/themes/original/src/utils/index.tsx +77 -0
  205. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
@@ -56,7 +56,7 @@ const Wrapper = styled.Pressable`
56
56
  const OInput = (props: Props): React.ReactElement => {
57
57
  return (
58
58
  <Wrapper
59
- onPress={() => {props.forwardRef?.current?.focus?.(); props.onPress && props.onPress()}}
59
+ onPress={() => { props.forwardRef?.current?.focus?.(); props.onPress && props.onPress() }}
60
60
  style={{
61
61
  backgroundColor: props.bgColor,
62
62
  borderColor: props.borderColor,
@@ -75,6 +75,7 @@ const OInput = (props: Props): React.ReactElement => {
75
75
  <MaterialIcon name={props?.vertorIcon} size={20} color={props?.vectorIconColor} style={{ marginHorizontal: 10 }} />
76
76
  )}
77
77
  <Input
78
+ autoFocus={props?.autoFocus}
78
79
  name={props.name}
79
80
  secureTextEntry={props.isSecured}
80
81
  onChangeText={(txt: any) => props.name ? props.onChange({ target: { name: props.name, value: txt } }) : props.onChange(txt)}
@@ -90,7 +91,7 @@ const OInput = (props: Props): React.ReactElement => {
90
91
  returnKeyType={props.returnKeyType}
91
92
  onSubmitEditing={props.onSubmitEditing}
92
93
  blurOnSubmit={props.blurOnSubmit}
93
- ref={(e : any) => {
94
+ ref={(e: any) => {
94
95
  props.forwardRef && (props.forwardRef.current = e)
95
96
  }}
96
97
  style={props?.inputStyle}
@@ -19,7 +19,11 @@ export const Container = styled.View`
19
19
 
20
20
  export const FloatingBottomContainer = (props: any) => {
21
21
  return (
22
- <Container style={{ width: windowWidth }}>
22
+ <Container style={{
23
+ width: windowWidth,
24
+ borderTopWidth: props?.borderTopWidth ?? 1,
25
+ borderRadius: props?.borderRadius ?? 0
26
+ }}>
23
27
  {props.children}
24
28
  </Container>
25
29
  )
@@ -47,6 +47,8 @@ export interface ProfileParams {
47
47
  isVerifiedPhone?: any;
48
48
  handleRemoveAccount?: any;
49
49
  removeAccountState?: any;
50
+ handleChangePromotions?: any;
51
+ notificationsGroup?: any;
50
52
  }
51
53
 
52
54
  export interface AddressListParams {
@@ -80,6 +82,7 @@ export interface AddressFormParams {
80
82
  saveAddress?: any,
81
83
  userCustomerSetup?: boolean,
82
84
  isRequiredField?: (field: string) => {},
85
+ showField?: (field: string) => {},
83
86
  isGuestUser?: boolean,
84
87
  useValidationFileds?: boolean,
85
88
  isSelectedAfterAdd?: boolean,
@@ -110,9 +113,20 @@ export interface SignupParams {
110
113
  handleSendVerifyCode?: any;
111
114
  handleCheckPhoneCode?: any;
112
115
  notificationState?: any;
116
+ signUpTab?: string;
117
+ useSignUpFullDetails?: boolean;
118
+ useSignUpOtpEmail?: boolean;
119
+ useSignUpOtpCellphone?: boolean;
120
+ willVerifyOtpState?: boolean;
121
+ numOtpInputs?: number;
113
122
  handleChangePromotions: () => void;
123
+ handleChangeInput?: (in1: any, in2: any) => void;
114
124
  enableReCaptcha?: boolean;
115
- handleReCaptcha?: () => void;
125
+ generateOtpCode?: (in1?: any) => void;
126
+ handleReCaptcha?: (token?: any) => void;
127
+ setSignUpTab?: (in1: string) => void;
128
+ setWillVerifyOtpState?: (in1: boolean) => void;
129
+ setOtpState?: (in1: string) => void;
116
130
  }
117
131
 
118
132
  export interface PhoneInputParams {
@@ -155,6 +169,10 @@ export interface BusinessesListingParams {
155
169
  businessId?: any;
156
170
  isGuestUser?: any;
157
171
  handleUpdateBusinessList?: any;
172
+ priceLevelSelected?: any;
173
+ handleChangePriceLevel?: any;
174
+ businessTypeSelected?: any;
175
+ logosLayout?: boolean;
158
176
  }
159
177
  export interface HighestRatedBusinessesParams {
160
178
  businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
@@ -173,7 +191,8 @@ export interface BusinessTypeFilterParams {
173
191
  defaultBusinessType?: string | null;
174
192
  images?: any
175
193
  typesState?: any
176
- setBusinessTypes?: any
194
+ setBusinessTypes?: any,
195
+ isAppoint?: boolean | undefined
177
196
  }
178
197
  export interface BusinessControllerParams {
179
198
  key?: string | number;
@@ -198,6 +217,8 @@ export interface BusinessControllerParams {
198
217
  handleFavoriteBusiness?: any,
199
218
  setFavoriteIds?: any;
200
219
  handleUpdateBusinessList?: any;
220
+ enableIntersection?: boolean;
221
+ handleCustomUpdate?: (businessId: number, changes: any) => {};
201
222
  }
202
223
  export interface BusinessProductsListingParams {
203
224
  navigation?: any;
@@ -221,6 +242,8 @@ export interface BusinessProductsListingParams {
221
242
  setProductLogin?: () => {};
222
243
  updateProductModal?: (value: any) => {};
223
244
  handleUpdateProducts?: any;
245
+ professionalSelected?: any;
246
+ handleChangeProfessionalSelected?: any;
224
247
  }
225
248
  export interface BusinessBasicInformationParams {
226
249
  navigation?: any;
@@ -269,17 +292,24 @@ export interface BusinessProductsListParams {
269
292
  onClickCategory?: any,
270
293
  lazyLoadProductsRecommended?: boolean,
271
294
  isFiltMode?: boolean,
272
- handleUpdateProducts?: any
295
+ handleUpdateProducts?: any,
296
+ navigation?: any;
297
+ previouslyProducts?: any;
273
298
  }
274
299
  export interface SingleProductCardParams {
275
- businessId: any,
300
+ businessId: any;
276
301
  product: any;
277
302
  isSoldOut: boolean;
278
303
  onProductClick: any;
279
304
  productAddedToCartLength: number;
280
- style?: ViewStyle,
281
- handleFavoriteProduct?: any,
282
- handleUpdateProducts?: any
305
+ style?: ViewStyle;
306
+ categoryState?: any;
307
+ handleFavoriteProduct?: any;
308
+ handleUpdateProducts?: any;
309
+ enableIntersection?: boolean;
310
+ navigation?: any;
311
+ isPreviously?: any;
312
+ isProductId?: any;
283
313
  }
284
314
  export interface BusinessInformationParams {
285
315
  navigation?: any,
@@ -334,6 +364,8 @@ export interface OrdersOptionParams {
334
364
  refreshOrders?: boolean,
335
365
  setRefreshOrders?: (value: boolean) => void,
336
366
  handleUpdateOrderList?: (orderId: number, changes: any) => {},
367
+ handleUpdateProducts?: (productId: number, changes: any) => {},
368
+ handleUpdateBusinesses?: (businessId: number, changes: any) => {},
337
369
  isBusiness?: boolean,
338
370
  isProducts?: boolean,
339
371
  businessOrderIds?: any,
@@ -341,6 +373,8 @@ export interface OrdersOptionParams {
341
373
  businessesSearchList?: any,
342
374
  hideOrders?: boolean,
343
375
  BusinessControllerSkeletons?: any,
376
+ businessPaginationProps?: any,
377
+ businesses?: any
344
378
  }
345
379
  export interface ActiveOrdersParams {
346
380
  orders?: any,
@@ -397,25 +431,26 @@ export interface ProductItemAccordionParams {
397
431
  isFromCheckout?: any
398
432
  }
399
433
  export interface ReviewOrderParams {
400
- order?: { id: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
401
- stars?: any,
402
- handleChangeInput?: any,
403
- handleChangeRating?: any,
404
- handleSendReview?: any,
405
- formState?: any,
406
- navigation?: any,
407
- setIsReviewed?: (isReviewed: boolean) => {},
408
- handleReviewState?: any,
409
- setStars?: any,
410
- onNavigationRedirect?: any
434
+ order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
435
+ stars?: any;
436
+ defaultStar?: number;
437
+ handleChangeInput?: any;
438
+ handleChangeRating?: any;
439
+ handleSendReview?: any;
440
+ formState?: any;
441
+ navigation?: any;
442
+ setIsReviewed?: (isReviewed: boolean) => void;
443
+ handleReviewState?: any;
444
+ setStars?: any;
445
+ onNavigationRedirect?: any;
411
446
  }
412
447
  export interface ReviewProductParams {
413
448
  navigation?: any,
414
449
  onNavigationRedirect?: any,
415
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
450
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
416
451
  formState?: any,
417
452
  handleChangeFormState?: any,
418
- handleSendProductReview?: any
453
+ handleSendProductReview?: any;
419
454
  }
420
455
  export interface SingleProductReviewParams {
421
456
  product: any,
@@ -425,12 +460,12 @@ export interface SingleProductReviewParams {
425
460
  export interface ReviewDriverParams {
426
461
  navigation?: any,
427
462
  onNavigationRedirect?: any,
428
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
463
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
429
464
  formState?: any,
430
465
  setIsDriverReviewed?: (isReviewed: boolean) => {},
431
466
  dirverReviews?: any,
432
467
  setDriverReviews?: any,
433
- handleSendDriverReview?: any
468
+ handleSendDriverReview?: any;
434
469
  }
435
470
  export interface MessagesParams {
436
471
  type?: string,
@@ -528,7 +563,9 @@ export interface OrderTypeSelectParams {
528
563
  defaultValue?: number;
529
564
  configTypes?: Array<any>;
530
565
  orderTypes: Array<any>;
531
- setOrderTypeValue?: (value: number) => any
566
+ setOrderTypeValue?: (value: number) => any,
567
+ isChewLayout?: boolean;
568
+ chewOrderTypes?: any;
532
569
  }
533
570
  export interface UpsellingProductsParams {
534
571
  isCustomMode?: boolean;
@@ -604,6 +641,9 @@ export interface BusinessSearchParams {
604
641
  setFilters: (filters: any) => void,
605
642
  lazySearch?: boolean,
606
643
  brandList?: any;
644
+ onNavigationRedirect?: any,
645
+ handleUpdateProducts: any,
646
+ handleUpdateBusinessList?: any;
607
647
  }
608
648
 
609
649
  export interface NoNetworkParams {
@@ -611,12 +651,20 @@ export interface NoNetworkParams {
611
651
  }
612
652
 
613
653
  export interface PlaceSpotParams {
614
- isOpenPlaceSpot?: boolean,
654
+ isCheckout?: any,
655
+ isInputMode?: any,
615
656
  cart?: any,
657
+ spotNumberDefault?: any,
658
+ vehicleDefault?: any,
659
+ spotNumber?: any,
660
+ setSpotNumber?: any,
661
+ orderTypes?: any,
616
662
  placesState?: any,
617
663
  handleChangePlace?: any,
618
- getPlacesList?: any,
619
- setOpenPlaceModal?: any
664
+ spotState?: any,
665
+ vehicle?: any,
666
+ setVehicle?: any,
667
+ handleChangeSpot?: any
620
668
  }
621
669
 
622
670
  export interface PromotionParams {
@@ -641,7 +689,8 @@ export interface otpParams {
641
689
  setWillVerifyOtpState: (val: boolean) => void,
642
690
  onSubmit: () => void,
643
691
  handleLoginOtp: (code: string) => void,
644
- setAlertState: any
692
+ setAlertState: any;
693
+ pinCount: number;
645
694
  }
646
695
 
647
696
  export interface FavoriteParams {
@@ -667,7 +716,9 @@ export interface SingleOrderCardParams {
667
716
  onNavigationRedirect?: (route: string, params?: any) => {},
668
717
  pastOrders: any,
669
718
  isMessageView?: any,
670
- handleClickOrder: (value: any) => {}
719
+ handleClickOrder: (value: any) => {},
720
+ handleRemoveCart: () => {},
721
+ cartState: any
671
722
  }
672
723
 
673
724
  export interface PreviousBusinessOrderedParams {
@@ -677,11 +728,54 @@ export interface PreviousBusinessOrderedParams {
677
728
  businessId?: number,
678
729
  onNavigationRedirect?: any,
679
730
  isBusinessesSearchList?: any,
680
- businessLoading?: boolean
731
+ businessLoading?: boolean,
732
+ businesses?: any
733
+ handleUpdateBusinesses?: (businessId: number, changes: any) => {},
734
+ }
735
+
736
+ export interface ServiceFormParams {
737
+ navigation?: any,
738
+ professionalSelected: any,
739
+ product: any,
740
+ handleSave: (value?: any) => {}
741
+ productCart?: any
742
+ isSoldOut: boolean,
743
+ maxProductQuantity: any,
744
+ businessSlug?: string,
745
+ onClose: any,
746
+ professionalList: any,
747
+ productObject?: any,
748
+ professionalListState?: any,
749
+ isCartProduct?: any
750
+ }
751
+
752
+ export interface ProfessionalFilterParams {
753
+ professionals?: any,
754
+ professionalSelected?: any,
755
+ handleChangeProfessionalSelected: any
756
+ }
757
+
758
+ export interface ProfessionalProfileParams {
759
+ professional: any,
760
+ handleChangeProfessionalSelected: any,
761
+ onClose: any
762
+ }
763
+
764
+ export interface OrderItAgainParams {
765
+ onProductClick: any,
766
+ productList: any,
767
+ businessId: any,
768
+ categoryState: any,
769
+ currentCart: any,
770
+ handleUpdateProducts: any,
771
+ navigation: any,
772
+ searchValue?: string
681
773
  }
682
774
 
683
775
  export interface PreviousProductsOrderedParams {
684
776
  products?: any,
777
+ isProductId?: boolean
685
778
  onProductClick?: any,
686
779
  isBusinessesSearchList?: boolean
780
+ handleUpdateProducts?: any
687
781
  }
@@ -40,6 +40,72 @@ export const getTraduction = (key: string) => {
40
40
  return keyList[key] ? t(key, keyList[key]) : t(key)
41
41
  }
42
42
 
43
+ /**
44
+ * Change local moment variables
45
+ */
46
+ export const setLocalMoment = (moment : any, t : any) => {
47
+ moment.locale('custom', {
48
+ months: [
49
+ t('MONTH1','January'),
50
+ t('MONTH2','February'),
51
+ t('MONTH3','March'),
52
+ t('MONTH4','April'),
53
+ t('MONTH5','May'),
54
+ t('MONTH6','June'),
55
+ t('MONTH7','July'),
56
+ t('MONTH8','August'),
57
+ t('MONTH9','September'),
58
+ t('MONTH10','October'),
59
+ t('MONTH11','November'),
60
+ t('MONTH12','December')
61
+ ],
62
+ monthsShort: [
63
+ t('MONTHSHORT1','Jan'),
64
+ t('MONTHSHORT2','Feb'),
65
+ t('MONTHSHORT3','Mar'),
66
+ t('MONTHSHORT4','Apr'),
67
+ t('MONTHSHORT5','May'),
68
+ t('MONTHSHORT6','Jun'),
69
+ t('MONTHSHORT7','Jul'),
70
+ t('MONTHSHORT8','Aug'),
71
+ t('MONTHSHORT9','Sep'),
72
+ t('MONTHSHORT10','Oct'),
73
+ t('MONTHSHORT11','Nov'),
74
+ t('MONTHSHORT12','Dec')
75
+ ],
76
+ weekdays: [
77
+ t('DAY7','Sunday'),
78
+ t('DAY1','Monday'),
79
+ t('DAY2','Tuesday'),
80
+ t('DAY3','Wednesday'),
81
+ t('DAY4','Thursday'),
82
+ t('DAY5','Friday'),
83
+ t('DAY6','Saturday')
84
+ ],
85
+ weekdaysShort: [
86
+ t('DAYSHORT7','Sun'),
87
+ t('DAYSHORT1','Mon'),
88
+ t('DAYSHORT2','Tue'),
89
+ t('DAYSHORT3','Wed'),
90
+ t('DAYSHORT4','Thu'),
91
+ t('DAYSHORT5','Fri'),
92
+ t('DAYSHORT6','Sat')
93
+ ],
94
+ weekdaysMin: [
95
+ t('DAYMIN7','Su'),
96
+ t('DAYMIN1','Mo'),
97
+ t('DAYMIN2','Tu'),
98
+ t('DAYMIN3','We'),
99
+ t('DAYMIN4','Th'),
100
+ t('DAYMIN5','Fr'),
101
+ t('DAYMIN6','Sa')
102
+ ],
103
+ meridiem : function (hours : any) {
104
+ return hours < 12 ? t('AM', 'AM') : t('PM','PM');
105
+ }
106
+ })
107
+ }
108
+
43
109
  /**
44
110
  * Function to convert delivery time in minutes
45
111
  * @param {string} time business delivery time
@@ -229,3 +295,14 @@ export const formatSeconds = (seconds : number) => {
229
295
  ret += '' + secs
230
296
  return ret
231
297
  }
298
+
299
+ /**
300
+ * List of price to filter businesses
301
+ */
302
+ export const priceList = [
303
+ { level: '1', content: '$' },
304
+ { level: '2', content: '$$' },
305
+ { level: '3', content: '$$$' },
306
+ { level: '4', content: '$$$$' },
307
+ { level: '5', content: '$$$$$' }
308
+ ]
@@ -144,7 +144,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
144
144
  {isFarAway && (
145
145
  <FarAwayMessage style={styles.farAwayMsg}>
146
146
  <Ionicons name='md-warning-outline' style={styles.iconStyle} />
147
- <OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address')}</OText>
147
+ <OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'Your are far from this address')}</OText>
148
148
  </FarAwayMessage>
149
149
  )}
150
150
  <View style={styles.wrapperOrderOptions}>