ordering-ui-react-native 0.21.25 → 0.21.26-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 (237) hide show
  1. package/package.json +7 -6
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/BusinessesListing/index.tsx +1 -1
  4. package/src/components/PaymentOptionsWebView/index.tsx +1 -0
  5. package/src/components/StripeMethodForm/index.tsx +6 -4
  6. package/src/components/VerifyPhone/styles.tsx +1 -2
  7. package/src/types/index.tsx +3 -1
  8. package/src/utils/index.tsx +2 -2
  9. package/themes/business/index.tsx +4 -0
  10. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +9 -2
  11. package/themes/business/src/components/BusinessController/index.tsx +19 -17
  12. package/themes/business/src/components/BusinessProductList/AccordionDropdown.tsx +63 -0
  13. package/themes/business/src/components/BusinessProductList/IterateCategories.tsx +108 -0
  14. package/themes/business/src/components/BusinessProductList/ProductList.tsx +196 -0
  15. package/themes/business/src/components/BusinessProductList/index.tsx +196 -0
  16. package/themes/business/src/components/BusinessProductList/styles.tsx +10 -0
  17. package/themes/business/src/components/Chat/index.tsx +23 -14
  18. package/themes/business/src/components/DriverMap/index.tsx +36 -23
  19. package/themes/business/src/components/FloatingButton/index.tsx +34 -31
  20. package/themes/business/src/components/GoogleMap/index.tsx +15 -8
  21. package/themes/business/src/components/Home/index.tsx +5 -1
  22. package/themes/business/src/components/LanguageSelector/index.tsx +1 -2
  23. package/themes/business/src/components/LanguageSelector/lang_country.json +515 -70
  24. package/themes/business/src/components/MapView/index.tsx +11 -7
  25. package/themes/business/src/components/MessagesOption/index.tsx +2 -1
  26. package/themes/business/src/components/NewOrderNotification/index.tsx +163 -115
  27. package/themes/business/src/components/OrderDetails/Business.tsx +50 -2
  28. package/themes/business/src/components/OrderDetails/Delivery.tsx +23 -11
  29. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +61 -54
  30. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +58 -24
  31. package/themes/business/src/components/OrderDetails/usePrinterCommands.tsx +220 -0
  32. package/themes/business/src/components/OrderDetailsLogistic/index.tsx +6 -1
  33. package/themes/business/src/components/OrderSummary/index.tsx +240 -76
  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 +125 -48
  37. package/themes/business/src/components/PhoneInputNumber/index.tsx +8 -5
  38. package/themes/business/src/components/PreviousOrders/OrderItem.tsx +36 -38
  39. package/themes/business/src/components/PreviousOrders/OrderList.tsx +18 -13
  40. package/themes/business/src/components/PreviousOrders/index.tsx +80 -66
  41. package/themes/business/src/components/PreviousOrders/styles.tsx +10 -0
  42. package/themes/business/src/components/PrinterSettings/index.tsx +279 -0
  43. package/themes/business/src/components/PrinterSettings/styles.tsx +17 -0
  44. package/themes/business/src/components/ProductItemAccordion/index.tsx +2 -2
  45. package/themes/business/src/components/ReviewCustomer/index.tsx +2 -0
  46. package/themes/business/src/components/SearchBar/index.tsx +2 -1
  47. package/themes/business/src/components/Sessions/index.tsx +187 -0
  48. package/themes/business/src/components/Sessions/styles.tsx +20 -0
  49. package/themes/business/src/components/StoresList/index.tsx +5 -3
  50. package/themes/business/src/components/UserFormDetails/index.tsx +111 -107
  51. package/themes/business/src/components/UserProfileForm/index.tsx +105 -47
  52. package/themes/business/src/components/WebsocketStatus/index.tsx +171 -0
  53. package/themes/business/src/components/WebsocketStatus/styles.tsx +28 -0
  54. package/themes/business/src/components/shared/OInput.tsx +2 -0
  55. package/themes/business/src/hooks/useLocation.tsx +5 -4
  56. package/themes/business/src/types/index.tsx +15 -2
  57. package/themes/business/src/utils/index.tsx +5 -0
  58. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  59. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  60. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  61. package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
  62. package/themes/kiosk/src/components/LoginForm/index.tsx +7 -4
  63. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  64. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  65. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  66. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  67. package/themes/original/index.tsx +9 -4
  68. package/themes/original/src/components/AddressDetails/index.tsx +20 -10
  69. package/themes/original/src/components/AddressForm/index.tsx +10 -6
  70. package/themes/original/src/components/AddressForm/styles.tsx +1 -1
  71. package/themes/original/src/components/AddressList/styles.tsx +4 -4
  72. package/themes/original/src/components/AnalyticsSegment/index.tsx +6 -6
  73. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  74. package/themes/original/src/components/BusinessBasicInformation/index.tsx +3 -3
  75. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +1 -1
  76. package/themes/original/src/components/BusinessController/index.tsx +18 -10
  77. package/themes/original/src/components/BusinessController/styles.tsx +8 -7
  78. package/themes/original/src/components/BusinessInformation/styles.tsx +2 -2
  79. package/themes/original/src/components/BusinessItemAccordion/index.tsx +11 -7
  80. package/themes/original/src/components/BusinessListingSearch/BusinessSearchFooter.tsx +317 -0
  81. package/themes/original/src/components/BusinessListingSearch/BusinessSearchHeader.tsx +96 -0
  82. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +1 -1
  83. package/themes/original/src/components/BusinessListingSearch/index.tsx +47 -358
  84. package/themes/original/src/components/BusinessListingSearch/styles.tsx +1 -1
  85. package/themes/original/src/components/BusinessPreorder/index.tsx +2 -3
  86. package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -1
  87. package/themes/original/src/components/BusinessProductsList/index.tsx +3 -3
  88. package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
  89. package/themes/original/src/components/BusinessProductsListing/index.tsx +35 -19
  90. package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
  91. package/themes/original/src/components/BusinessReviews/index.tsx +1 -1
  92. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
  93. package/themes/original/src/components/BusinessesListing/Layout/Appointment/styles.tsx +5 -5
  94. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +69 -0
  95. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +406 -0
  96. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListing.tsx +76 -0
  97. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +24 -404
  98. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -1
  99. package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
  100. package/themes/original/src/components/Cart/index.tsx +32 -9
  101. package/themes/original/src/components/CartContent/index.tsx +96 -58
  102. package/themes/original/src/components/CartStoresListing/styles.tsx +2 -2
  103. package/themes/original/src/components/Checkout/index.tsx +173 -66
  104. package/themes/original/src/components/Checkout/styles.tsx +17 -0
  105. package/themes/original/src/components/CitiesControl/styles.tsx +1 -1
  106. package/themes/original/src/components/DatePicker/index.tsx +33 -0
  107. package/themes/original/src/components/DatePicker/styles.tsx +20 -0
  108. package/themes/original/src/components/Favorite/index.tsx +4 -9
  109. package/themes/original/src/components/Favorite/styles.tsx +0 -2
  110. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  111. package/themes/original/src/components/GPSButton/index.tsx +1 -1
  112. package/themes/original/src/components/GiftCard/GiftCardOrdersList/index.tsx +64 -0
  113. package/themes/original/src/components/GiftCard/GiftCardOrdersList/styles.tsx +8 -0
  114. package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +8 -3
  115. package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +36 -3
  116. package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +1 -1
  117. package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +67 -4
  118. package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +1 -1
  119. package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +2 -2
  120. package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +1 -1
  121. package/themes/original/src/components/GiftCard/SingleGiftCard/index.tsx +101 -0
  122. package/themes/original/src/components/GiftCard/SingleGiftCard/styles.tsx +4 -0
  123. package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.tsx +83 -0
  124. package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/styles.tsx +9 -0
  125. package/themes/original/src/components/GoogleMap/index.tsx +6 -5
  126. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +2 -2
  127. package/themes/original/src/components/HighestRatedBusinesses/styles.tsx +1 -1
  128. package/themes/original/src/components/Home/index.tsx +2 -1
  129. package/themes/original/src/components/LastOrder/index.tsx +2 -1
  130. package/themes/original/src/components/LastOrders/index.tsx +2 -1
  131. package/themes/original/src/components/LoginForm/Otp/index.tsx +4 -16
  132. package/themes/original/src/components/Messages/index.tsx +2 -1
  133. package/themes/original/src/components/Messages/styles.tsx +1 -1
  134. package/themes/original/src/components/MomentOption/index.tsx +4 -3
  135. package/themes/original/src/components/MultiCart/index.tsx +1 -1
  136. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +1 -0
  137. package/themes/original/src/components/MultiCheckout/index.tsx +208 -21
  138. package/themes/original/src/components/MultiCheckout/styles.tsx +17 -0
  139. package/themes/original/src/components/MultiOrdersDetails/index.tsx +20 -15
  140. package/themes/original/src/components/MyOrders/index.tsx +24 -29
  141. package/themes/original/src/components/NavBar/index.tsx +3 -1
  142. package/themes/original/src/components/NetworkError/index.tsx +2 -3
  143. package/themes/original/src/components/NetworkError/styles.tsx +2 -2
  144. package/themes/original/src/components/Notifications/index.tsx +4 -8
  145. package/themes/original/src/components/Notifications/styles.tsx +0 -1
  146. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +1 -1
  147. package/themes/original/src/components/OrderDetails/index.tsx +706 -667
  148. package/themes/original/src/components/OrderDetails/styles.tsx +24 -8
  149. package/themes/original/src/components/OrderProgress/index.tsx +28 -6
  150. package/themes/original/src/components/OrderProgress/styles.tsx +1 -1
  151. package/themes/original/src/components/OrderSummary/index.tsx +3 -1
  152. package/themes/original/src/components/OrderTypeSelector/index.tsx +5 -6
  153. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +1 -1
  154. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +1 -1
  155. package/themes/original/src/components/OrdersOption/index.tsx +3 -5
  156. package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
  157. package/themes/original/src/components/PaymentOptionCard/index.tsx +4 -2
  158. package/themes/original/src/components/PaymentOptionStripe/styles.tsx +3 -0
  159. package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
  160. package/themes/original/src/components/PaymentOptions/index.tsx +72 -6
  161. package/themes/original/src/components/ProductForm/ActionButton.tsx +120 -0
  162. package/themes/original/src/components/ProductForm/ExtraOptions.tsx +56 -0
  163. package/themes/original/src/components/ProductForm/index.tsx +68 -156
  164. package/themes/original/src/components/ProductItemAccordion/index.tsx +54 -44
  165. package/themes/original/src/components/ProductItemAccordion/styles.tsx +3 -4
  166. package/themes/original/src/components/ProductOptionSubOption/index.tsx +105 -91
  167. package/themes/original/src/components/ProfessionalProfile/styles.tsx +3 -3
  168. package/themes/original/src/components/Promotions/index.tsx +4 -4
  169. package/themes/original/src/components/Promotions/styles.tsx +0 -2
  170. package/themes/original/src/components/ReviewDriver/styles.tsx +1 -1
  171. package/themes/original/src/components/ReviewOrder/styles.tsx +1 -1
  172. package/themes/original/src/components/ReviewProducts/styles.tsx +1 -1
  173. package/themes/original/src/components/ServiceForm/index.tsx +2 -2
  174. package/themes/original/src/components/ServiceForm/styles.tsx +4 -4
  175. package/themes/original/src/components/SignupForm/index.tsx +60 -58
  176. package/themes/original/src/components/SingleOrderCard/index.tsx +3 -2
  177. package/themes/original/src/components/SingleProductCard/index.tsx +2 -2
  178. package/themes/original/src/components/SingleProductCard/styles.tsx +0 -3
  179. package/themes/original/src/components/StripeCardsList/index.tsx +17 -36
  180. package/themes/original/src/components/StripeElementsForm/index.tsx +74 -59
  181. package/themes/original/src/components/StripeElementsForm/naked.tsx +47 -0
  182. package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +170 -0
  183. package/themes/original/src/components/UpsellingProducts/UpsellingLayout.tsx +86 -0
  184. package/themes/original/src/components/UpsellingProducts/index.tsx +15 -199
  185. package/themes/original/src/components/UpsellingProducts/styles.tsx +19 -0
  186. package/themes/original/src/components/UserFormDetails/index.tsx +123 -75
  187. package/themes/original/src/components/UserFormDetails/styles.tsx +7 -0
  188. package/themes/original/src/components/UserProfile/index.tsx +3 -2
  189. package/themes/original/src/components/WalletTransactions/styles.tsx +1 -0
  190. package/themes/original/src/components/Wallets/index.tsx +3 -4
  191. package/themes/original/src/components/Wallets/styles.tsx +1 -1
  192. package/themes/original/src/components/WebsocketStatus/index.tsx +172 -0
  193. package/themes/original/src/components/WebsocketStatus/styles.tsx +28 -0
  194. package/themes/original/src/components/shared/HeaderTitle.tsx +1 -1
  195. package/themes/original/src/components/shared/OButton.tsx +5 -5
  196. package/themes/original/src/components/shared/OInput.tsx +1 -4
  197. package/themes/original/src/components/shared/OModal.tsx +12 -14
  198. package/themes/original/src/layouts/Container.tsx +5 -3
  199. package/themes/original/src/types/index.tsx +1 -0
  200. package/themes/original/src/utils/index.tsx +125 -1
  201. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
  202. package/src/navigators/BottomNavigator.tsx +0 -117
  203. package/src/navigators/CheckoutNavigator.tsx +0 -66
  204. package/src/navigators/HomeNavigator.tsx +0 -202
  205. package/src/navigators/NavigationRef.tsx +0 -7
  206. package/src/navigators/RootNavigator.tsx +0 -269
  207. package/src/pages/Account.tsx +0 -34
  208. package/src/pages/AddressForm.tsx +0 -62
  209. package/src/pages/AddressList.tsx +0 -24
  210. package/src/pages/BusinessProductsList.tsx +0 -81
  211. package/src/pages/BusinessesListing.tsx +0 -43
  212. package/src/pages/CartList.tsx +0 -49
  213. package/src/pages/Checkout.tsx +0 -101
  214. package/src/pages/ForgotPassword.tsx +0 -24
  215. package/src/pages/Help.tsx +0 -23
  216. package/src/pages/HelpAccountAndPayment.tsx +0 -23
  217. package/src/pages/HelpGuide.tsx +0 -23
  218. package/src/pages/HelpOrder.tsx +0 -23
  219. package/src/pages/Home.tsx +0 -36
  220. package/src/pages/IntroductoryTutorial.tsx +0 -170
  221. package/src/pages/Login.tsx +0 -47
  222. package/src/pages/MomentOption.tsx +0 -30
  223. package/src/pages/MultiCheckout.tsx +0 -31
  224. package/src/pages/MultiOrdersDetails.tsx +0 -27
  225. package/src/pages/MyOrders.tsx +0 -40
  226. package/src/pages/NetworkError.tsx +0 -24
  227. package/src/pages/NotFound.tsx +0 -22
  228. package/src/pages/OrderDetails.tsx +0 -25
  229. package/src/pages/ProductDetails.tsx +0 -55
  230. package/src/pages/Profile.tsx +0 -36
  231. package/src/pages/ReviewDriver.tsx +0 -30
  232. package/src/pages/ReviewOrder.tsx +0 -32
  233. package/src/pages/ReviewProducts.tsx +0 -30
  234. package/src/pages/Sessions.tsx +0 -22
  235. package/src/pages/Signup.tsx +0 -53
  236. package/src/pages/SpinnerLoader.tsx +0 -10
  237. package/src/pages/Splash.tsx +0 -21
@@ -1,32 +0,0 @@
1
- import React from 'react'
2
- import { Platform } from 'react-native';
3
- import styled from 'styled-components/native';
4
- import { ReviewOrder as ReviewOrderController } from '../components/ReviewOrder'
5
- import { SafeAreaContainer } from '../layouts/SafeAreaContainer';
6
-
7
- const KeyboardView = styled.KeyboardAvoidingView`
8
- flex: 1;
9
- `;
10
-
11
- const ReviewOrder = ({ navigation, route }: any) => {
12
- const reviewOrderProps = {
13
- navigation,
14
- order: route?.params?.order,
15
- setIsReviewed: route?.params?.setIsReviewed,
16
- handleReviewState: route?.params?.handleReviewState,
17
- onNavigationRedirect: (route: string, params: any) => navigation.navigate(route, params)
18
- }
19
-
20
- return (
21
- <KeyboardView
22
- enabled
23
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
24
- >
25
- <SafeAreaContainer>
26
- <ReviewOrderController {...reviewOrderProps} />
27
- </SafeAreaContainer>
28
- </KeyboardView>
29
- )
30
- }
31
-
32
- export default ReviewOrder
@@ -1,30 +0,0 @@
1
- import React from 'react'
2
- import { Platform } from 'react-native';
3
- import styled from 'styled-components/native';
4
- import {ReviewProducts as ReviewProductsController} from '../components/ReviewProducts'
5
- import { SafeAreaContainer } from '../layouts/SafeAreaContainer';
6
-
7
- const KeyboardView = styled.KeyboardAvoidingView`
8
- flex: 1;
9
- `;
10
-
11
- const ReviewProducts = ({navigation, route} : any) => {
12
- const reviewProductProps = {
13
- navigation,
14
- order: route?.params?.order,
15
- onNavigationRedirect: (route: string, params: any) => navigation.navigate(route, params)
16
- }
17
-
18
- return (
19
- <KeyboardView
20
- enabled
21
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
22
- >
23
- <SafeAreaContainer>
24
- <ReviewProductsController {...reviewProductProps} />
25
- </SafeAreaContainer>
26
- </KeyboardView>
27
- )
28
- }
29
-
30
- export default ReviewProducts
@@ -1,22 +0,0 @@
1
- import React from 'react'
2
- import { Container } from '../../themes/original/src/layouts/Container'
3
- import { Sessions as SessionsController } from '../../themes/original/src/components/Sessions'
4
-
5
- interface Props {
6
- navigation: any;
7
- route: any;
8
- }
9
-
10
- const Sessions = (props: Props) => {
11
- const sessionsProps = {
12
- ...props
13
- }
14
-
15
- return (
16
- <Container>
17
- <SessionsController {...sessionsProps} />
18
- </Container>
19
- )
20
- }
21
-
22
- export default Sessions
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { SignupForm } from '../components/SignupForm';
3
- import { Container } from '../layouts/Container'
4
- import styled from 'styled-components/native';
5
- import { useLanguage, useSession } from 'ordering-components/native';
6
- import { Platform } from 'react-native';
7
- import { _setStoreData, _removeStoreData } from '../providers/StoreUtil';
8
-
9
- const KeyboardView = styled.KeyboardAvoidingView`
10
- flex: 1;
11
- `;
12
-
13
- export const Signup = (props: any) => {
14
- const [, t] = useLanguage()
15
- const [, { login }] = useSession()
16
-
17
- const signupProps = {
18
- ...props,
19
- useChekoutFileds: true,
20
- loginButtonText: t('LOGIN', 'Login'),
21
- signupButtonText: t('SIGNUP', 'Signup'),
22
- useSignupByEmail: true,
23
- notificationState: props.route?.params?.notification_state,
24
- onNavigationRedirect: (page: string) => {
25
- if (!page) return
26
- props.navigation.navigate(page);
27
- },
28
- handleSuccessSignup: (user: any) => {
29
- _removeStoreData('isGuestUser')
30
- if (user?.id) {
31
- login({
32
- user,
33
- token: user.session.access_token
34
- })
35
- }
36
- }
37
- }
38
-
39
- _setStoreData('notification_state', props.route?.params?.notification_state);
40
-
41
- return (
42
- <KeyboardView
43
- enabled
44
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
45
- >
46
- <Container>
47
- <SignupForm {...signupProps} />
48
- </Container>
49
- </KeyboardView>
50
- );
51
- };
52
-
53
- export default Signup;
@@ -1,10 +0,0 @@
1
- import React from 'react'
2
- import Spinner from 'react-native-loading-spinner-overlay';
3
-
4
- const SpinnerLoader = () => {
5
- return (
6
- <Spinner visible />
7
- )
8
- }
9
-
10
- export default SpinnerLoader
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import styled, { useTheme } from 'styled-components/native';
3
-
4
- const LogoSplash = styled.ImageBackground`
5
- width: 100%;
6
- height: 100%;
7
- background-color: ${(props: any) => props.theme.colors.backgroundPage};
8
- `
9
-
10
- const Splash = () => {
11
- const theme = useTheme();
12
-
13
- return (
14
- <LogoSplash
15
- source={theme.images.general.loadingSplash}
16
- resizeMode='contain'
17
- />
18
- )
19
- }
20
-
21
- export default Splash;