ordering-ui-react-native 0.16.19 → 0.16.20-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 (204) 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 +2 -20
  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 +25 -19
  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 +8 -6
  98. package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
  99. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
  100. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
  101. package/themes/original/src/components/BusinessListingSearch/index.tsx +106 -126
  102. package/themes/original/src/components/BusinessListingSearch/styles.tsx +18 -13
  103. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
  104. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
  105. package/themes/original/src/components/BusinessProductsList/index.tsx +49 -52
  106. package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
  107. package/themes/original/src/components/BusinessProductsListing/index.tsx +287 -175
  108. package/themes/original/src/components/BusinessProductsListing/styles.tsx +22 -8
  109. package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
  110. package/themes/original/src/components/BusinessTypeFilter/index.tsx +109 -40
  111. package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
  112. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
  113. package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -10
  114. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +676 -0
  115. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
  116. package/themes/original/src/components/BusinessesListing/index.tsx +105 -519
  117. package/themes/original/src/components/Cart/index.tsx +42 -10
  118. package/themes/original/src/components/Cart/styles.tsx +4 -0
  119. package/themes/original/src/components/CartContent/index.tsx +22 -16
  120. package/themes/original/src/components/Checkout/index.tsx +106 -66
  121. package/themes/original/src/components/Checkout/styles.tsx +0 -1
  122. package/themes/original/src/components/DriverTips/index.tsx +4 -4
  123. package/themes/original/src/components/DriverTips/styles.tsx +2 -1
  124. package/themes/original/src/components/Favorite/index.tsx +1 -0
  125. package/themes/original/src/components/Favorite/styles.tsx +1 -0
  126. package/themes/original/src/components/FavoriteList/index.tsx +142 -93
  127. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  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 +82 -44
  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/MultiCheckout/index.tsx +6 -0
  140. package/themes/original/src/components/MultiOrdersDetails/index.tsx +20 -16
  141. package/themes/original/src/components/MyOrders/index.tsx +68 -6
  142. package/themes/original/src/components/NavBar/index.tsx +15 -9
  143. package/themes/original/src/components/NetworkError/index.tsx +5 -3
  144. package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
  145. package/themes/original/src/components/Notifications/index.tsx +148 -0
  146. package/themes/original/src/components/Notifications/styles.tsx +17 -0
  147. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
  148. package/themes/original/src/components/OrderDetails/index.tsx +200 -42
  149. package/themes/original/src/components/OrderDetails/styles.tsx +15 -2
  150. package/themes/original/src/components/OrderItAgain/index.tsx +75 -0
  151. package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
  152. package/themes/original/src/components/OrderProgress/index.tsx +8 -2
  153. package/themes/original/src/components/OrderSummary/index.tsx +1 -34
  154. package/themes/original/src/components/OrderTypeSelector/index.tsx +85 -36
  155. package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
  156. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +100 -106
  157. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +17 -12
  158. package/themes/original/src/components/OrdersOption/index.tsx +71 -55
  159. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  160. package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
  161. package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
  162. package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
  163. package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
  164. package/themes/original/src/components/PreviousOrders/index.tsx +3 -2
  165. package/themes/original/src/components/ProductForm/index.tsx +712 -655
  166. package/themes/original/src/components/ProductForm/styles.tsx +9 -7
  167. package/themes/original/src/components/ProductItemAccordion/index.tsx +170 -128
  168. package/themes/original/src/components/ProductOption/index.tsx +1 -1
  169. package/themes/original/src/components/ProfessionalFilter/index.tsx +129 -0
  170. package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
  171. package/themes/original/src/components/ProfessionalProfile/index.tsx +309 -0
  172. package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
  173. package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
  174. package/themes/original/src/components/ReviewOrder/index.tsx +18 -3
  175. package/themes/original/src/components/ReviewProducts/index.tsx +1 -1
  176. package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
  177. package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
  178. package/themes/original/src/components/SearchBar/index.tsx +5 -3
  179. package/themes/original/src/components/ServiceForm/index.tsx +631 -0
  180. package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
  181. package/themes/original/src/components/SignupForm/index.tsx +350 -206
  182. package/themes/original/src/components/SingleOrderCard/index.tsx +214 -179
  183. package/themes/original/src/components/SingleProductCard/index.tsx +194 -108
  184. package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
  185. package/themes/original/src/components/SingleProductReview/index.tsx +38 -5
  186. package/themes/original/src/components/SingleProductReview/styles.tsx +12 -0
  187. package/themes/original/src/components/StripeElementsForm/index.tsx +15 -7
  188. package/themes/original/src/components/UpsellingProducts/index.tsx +14 -4
  189. package/themes/original/src/components/UserDetails/index.tsx +31 -17
  190. package/themes/original/src/components/UserFormDetails/index.tsx +74 -81
  191. package/themes/original/src/components/UserProfile/index.tsx +57 -29
  192. package/themes/original/src/components/UserProfile/styles.ts +17 -0
  193. package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
  194. package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
  195. package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
  196. package/themes/original/src/components/Wallets/index.tsx +174 -162
  197. package/themes/original/src/components/Wallets/styles.tsx +10 -8
  198. package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
  199. package/themes/original/src/components/shared/OButton.tsx +10 -3
  200. package/themes/original/src/components/shared/OInput.tsx +3 -2
  201. package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
  202. package/themes/original/src/types/index.tsx +124 -30
  203. package/themes/original/src/utils/index.tsx +77 -0
  204. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
@@ -0,0 +1,137 @@
1
+ import styled, { css } from 'styled-components/native'
2
+
3
+ export const WelcomeTitle = styled.View`
4
+ flex: 1;
5
+ flex-direction: row;
6
+ align-items: center;
7
+ margin-bottom: 15px;
8
+ `
9
+
10
+ export const BusinessList = styled.View`
11
+ flex-wrap: wrap;
12
+ `
13
+
14
+ export const Search = styled.View`
15
+ justify-content: flex-end;
16
+ align-items: center;
17
+ margin-vertical: 10px;
18
+ margin-horizontal: 20px;
19
+ ${(props: any) => props.isChewLayout && css`
20
+ margin-horizontal: 30px;
21
+ `}
22
+ `
23
+
24
+ export const AddressInput = styled.TouchableOpacity`
25
+ flex-direction: row;
26
+ background-color: ${(props: any) => props.theme.colors.white};
27
+ border-radius: 22px;
28
+ padding-horizontal: 20px;
29
+ align-items: center;
30
+ width: 100%;
31
+ height: 44px;
32
+ max-height: 44px;
33
+ ${(props: any) => props.isChewLayout && css`
34
+ border-radius: 8px;
35
+ `}
36
+ `
37
+
38
+ export const OrderControlContainer = styled.View`
39
+ width: 100%;
40
+ flex-direction: column;
41
+ align-items: center;
42
+ justify-content: space-between;
43
+ z-index: 10;
44
+ padding-bottom: 20px;
45
+ flex: 1;
46
+ `
47
+
48
+ export const WrapMomentOption = styled.TouchableOpacity`
49
+ background-color: ${(props: any) => props.theme.colors.white};
50
+ border-radius: 7.6px;
51
+ font-size: 12px;
52
+ max-width: 240px;
53
+ height: 26px;
54
+ align-items: center;
55
+ justify-content: center;
56
+ padding-horizontal: 8px;
57
+ flex-direction: row;
58
+ margin-end: 12px;
59
+ `
60
+
61
+ export const HeaderWrapper = styled.ImageBackground`
62
+ width: 100%;
63
+ height: 270px;
64
+ padding: 20px 40px;
65
+ background-color: transparent;
66
+ `;
67
+
68
+ export const ListWrapper = styled.View`
69
+ background-color: ${(props: any) => props.theme.colors.backgroundLight};
70
+ padding-horizontal: 40px;
71
+ `;
72
+
73
+ export const FeaturedWrapper = styled.View`
74
+ background-color: ${(props: any) => props.theme.colors.backgroundLight};
75
+ height: 220px;
76
+ paddingVertical: 30px;
77
+ `;
78
+
79
+ export const OrderProgressWrapper = styled.View`
80
+ margin-top: 37px;
81
+ margin-bottom: 20px;
82
+ padding-horizontal: 40px;
83
+ `
84
+
85
+ export const FarAwayMessage = styled.View`
86
+ flex-direction: row;
87
+ align-items: center;
88
+ background-color: ${(props: any) => props.theme.colors.warning1};
89
+ margin-bottom: 10px;
90
+ border-radius: 7.6px;
91
+ border: 1px solid ${(props: any) => props.theme.colors.warning5};
92
+ `
93
+
94
+ export const AddressInputContainer = styled.View`
95
+ flex-direction: row;
96
+ width: 100%;
97
+ align-items: center;
98
+ justify-content: center;
99
+ ${(props: any) => props.isChewLayout && css`
100
+ flex-direction: row-reverse;
101
+ `}
102
+ `
103
+
104
+ export const PreorderInput = styled(AddressInput)`
105
+ justify-content: center;
106
+ `
107
+
108
+ export const OTabs = styled.View`
109
+ flex-direction: row;
110
+ justify-content: space-between;
111
+ align-items: center;
112
+ margin-bottom: -1px;
113
+ width: 100%;
114
+ `;
115
+
116
+ export const OTab = styled.TouchableOpacity`
117
+ padding-bottom: 10px;
118
+ border-bottom-width: 1px;
119
+ margin-end: 14px;
120
+ padding-horizontal: 5px;
121
+ `;
122
+
123
+ export const OrderTypesContainer = styled.View`
124
+ flex-direction: row;
125
+ font-size: 14px;
126
+ width: 180px;
127
+ justify-content: space-between;
128
+ align-items: center;
129
+ border-bottom-width: 1px;
130
+ border-bottom-color: ${(props: any) => props.theme.colors.border};
131
+ margin-top: 10px;
132
+ align-self: center;
133
+ `
134
+
135
+ export const BusinessLogosContainer = styled.ScrollView`
136
+ padding-bottom: 10px;
137
+ `