ordering-ui-react-native 0.17.99-release → 0.18.0-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 (75) hide show
  1. package/package.json +1 -1
  2. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +7 -6
  3. package/themes/original/src/components/AddressForm/index.tsx +2 -2
  4. package/themes/original/src/components/AddressForm/styles.tsx +1 -1
  5. package/themes/original/src/components/AddressList/styles.tsx +4 -4
  6. package/themes/original/src/components/BusinessBasicInformation/index.tsx +2 -2
  7. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +1 -1
  8. package/themes/original/src/components/BusinessInformation/styles.tsx +2 -2
  9. package/themes/original/src/components/BusinessItemAccordion/index.tsx +4 -3
  10. package/themes/original/src/components/BusinessListingSearch/index.tsx +4 -5
  11. package/themes/original/src/components/BusinessListingSearch/styles.tsx +1 -1
  12. package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -1
  13. package/themes/original/src/components/BusinessProductsListing/index.tsx +31 -12
  14. package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
  15. package/themes/original/src/components/BusinessReviews/index.tsx +1 -1
  16. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
  17. package/themes/original/src/components/BusinessesListing/Layout/Appointment/styles.tsx +5 -5
  18. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +1 -1
  19. package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +7 -7
  20. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -1
  21. package/themes/original/src/components/CartStoresListing/styles.tsx +2 -2
  22. package/themes/original/src/components/Checkout/index.tsx +1 -1
  23. package/themes/original/src/components/Checkout/styles.tsx +17 -0
  24. package/themes/original/src/components/CitiesControl/styles.tsx +1 -1
  25. package/themes/original/src/components/Favorite/index.tsx +3 -4
  26. package/themes/original/src/components/Favorite/styles.tsx +0 -2
  27. package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
  28. package/themes/original/src/components/GPSButton/index.tsx +1 -1
  29. package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +1 -1
  30. package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +1 -1
  31. package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +1 -1
  32. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +1 -1
  33. package/themes/original/src/components/HighestRatedBusinesses/styles.tsx +1 -1
  34. package/themes/original/src/components/Home/index.tsx +1 -1
  35. package/themes/original/src/components/Messages/styles.tsx +1 -1
  36. package/themes/original/src/components/MultiCart/index.tsx +1 -1
  37. package/themes/original/src/components/MultiCheckout/index.tsx +4 -4
  38. package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -1
  39. package/themes/original/src/components/MyOrders/index.tsx +5 -5
  40. package/themes/original/src/components/NetworkError/styles.tsx +2 -2
  41. package/themes/original/src/components/Notifications/index.tsx +2 -4
  42. package/themes/original/src/components/Notifications/styles.tsx +0 -1
  43. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +1 -1
  44. package/themes/original/src/components/OrderDetails/index.tsx +702 -663
  45. package/themes/original/src/components/OrderDetails/styles.tsx +24 -7
  46. package/themes/original/src/components/OrderProgress/styles.tsx +1 -1
  47. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +1 -1
  48. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +1 -1
  49. package/themes/original/src/components/OrdersOption/index.tsx +1 -1
  50. package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
  51. package/themes/original/src/components/ProductForm/ExtraOptions.tsx +56 -0
  52. package/themes/original/src/components/ProductForm/index.tsx +51 -146
  53. package/themes/original/src/components/ProductItemAccordion/index.tsx +5 -0
  54. package/themes/original/src/components/ProductOptionSubOption/index.tsx +1 -1
  55. package/themes/original/src/components/ProfessionalProfile/styles.tsx +3 -3
  56. package/themes/original/src/components/Promotions/index.tsx +4 -4
  57. package/themes/original/src/components/Promotions/styles.tsx +0 -2
  58. package/themes/original/src/components/ReviewDriver/styles.tsx +1 -1
  59. package/themes/original/src/components/ReviewOrder/styles.tsx +1 -1
  60. package/themes/original/src/components/ReviewProducts/styles.tsx +1 -1
  61. package/themes/original/src/components/ServiceForm/index.tsx +1 -1
  62. package/themes/original/src/components/ServiceForm/styles.tsx +4 -4
  63. package/themes/original/src/components/StripeElementsForm/index.tsx +1 -1
  64. package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +170 -0
  65. package/themes/original/src/components/UpsellingProducts/UpsellingLayout.tsx +86 -0
  66. package/themes/original/src/components/UpsellingProducts/index.tsx +15 -199
  67. package/themes/original/src/components/UpsellingProducts/styles.tsx +19 -0
  68. package/themes/original/src/components/UserFormDetails/index.tsx +16 -3
  69. package/themes/original/src/components/UserProfile/index.tsx +1 -1
  70. package/themes/original/src/components/WalletTransactions/styles.tsx +1 -0
  71. package/themes/original/src/components/Wallets/index.tsx +1 -3
  72. package/themes/original/src/components/Wallets/styles.tsx +1 -0
  73. package/themes/original/src/components/shared/HeaderTitle.tsx +1 -1
  74. package/themes/original/src/components/shared/OModal.tsx +12 -14
  75. package/themes/original/src/layouts/Container.tsx +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Modal, StyleSheet, Text, SafeAreaView, View, TouchableOpacity, Platform } from "react-native";
3
- import { OIcon } from '.';
4
- import styled, { useTheme } from 'styled-components/native';
3
+ import styled from 'styled-components/native';
4
+ import AntDesignIcon from 'react-native-vector-icons/AntDesign'
5
5
 
6
6
  interface Props {
7
7
  open?: boolean;
@@ -50,17 +50,15 @@ const OModal = (props: Props): React.ReactElement => {
50
50
  isAvoidKeyBoardView
51
51
  } = props
52
52
 
53
- const theme = useTheme();
54
-
55
53
  const renderSafeAreaView = () => (
56
54
  <SafeAreaView style={styles.container}>
57
55
  {!entireModal ? (
58
56
  <View style={styles.centeredView}>
59
57
  <View style={titleSectionStyle ? titleSectionStyle : styles.titleSection}>
60
- <TouchableOpacity style={{...styles.wrapperIcon, ...styleContainerCloseButton}} onPress={onClose}>
61
- <OIcon
62
- src={theme.images.general.close}
63
- width={16}
58
+ <TouchableOpacity style={{ ...styles.wrapperIcon, ...styleContainerCloseButton }} onPress={onClose}>
59
+ <AntDesignIcon
60
+ name='close'
61
+ size={26}
64
62
  style={isNotDecoration && (styleCloseButton || styles.cancelBtn)}
65
63
  />
66
64
  </TouchableOpacity>
@@ -73,9 +71,9 @@ const OModal = (props: Props): React.ReactElement => {
73
71
  {!customClose && (
74
72
  <View style={titleSectionStyle ? titleSectionStyle : styles.titleSection}>
75
73
  <TouchableOpacity style={styles.wrapperIcon} onPress={onClose}>
76
- <OIcon
77
- src={theme.images.general.close}
78
- width={16}
74
+ <AntDesignIcon
75
+ name='close'
76
+ size={26}
79
77
  style={styleCloseButton || styles.cancelBtn}
80
78
  />
81
79
  </TouchableOpacity>
@@ -93,7 +91,7 @@ const OModal = (props: Props): React.ReactElement => {
93
91
  animationType="slide"
94
92
  transparent={isTransparent}
95
93
  visible={open}
96
- onRequestClose={() => onClose && onClose()}
94
+ onRequestClose={() => onClose && onClose()}
97
95
  style={{ height: '100%', flex: 1, position: 'absolute', ...style, zIndex: 9999 }}
98
96
  >
99
97
  {isAvoidKeyBoardView ? (
@@ -125,8 +123,8 @@ const styles = StyleSheet.create({
125
123
  flex: 1,
126
124
  justifyContent: 'space-between',
127
125
  alignItems: 'flex-start',
128
- paddingLeft: 40,
129
- paddingRight: 40,
126
+ paddingLeft: 20,
127
+ paddingRight: 20,
130
128
  marginBottom: 40
131
129
  },
132
130
  cancelBtn: {
@@ -6,7 +6,7 @@ import { Platform, View } from 'react-native';
6
6
  const ContainerStyled = styled.ScrollView`
7
7
  flex: 1;
8
8
  ${(props: any) => !props.noPadding && css`
9
- padding: ${Platform.OS === 'ios' ? '0px 40px' : '20px 40px'};
9
+ padding: ${Platform.OS === 'ios' ? '0px 20px' : '20px 20px'};
10
10
  `}
11
11
  background-color: ${(props: any) => props.theme.colors.backgroundPage};
12
12
  `;