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.
- package/package.json +1 -1
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +7 -6
- package/themes/original/src/components/AddressForm/index.tsx +2 -2
- package/themes/original/src/components/AddressForm/styles.tsx +1 -1
- package/themes/original/src/components/AddressList/styles.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +2 -2
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +1 -1
- package/themes/original/src/components/BusinessInformation/styles.tsx +2 -2
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +4 -3
- package/themes/original/src/components/BusinessListingSearch/index.tsx +4 -5
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +1 -1
- package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +31 -12
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
- package/themes/original/src/components/BusinessReviews/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/styles.tsx +5 -5
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +7 -7
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -1
- package/themes/original/src/components/CartStoresListing/styles.tsx +2 -2
- package/themes/original/src/components/Checkout/index.tsx +1 -1
- package/themes/original/src/components/Checkout/styles.tsx +17 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +1 -1
- package/themes/original/src/components/Favorite/index.tsx +3 -4
- package/themes/original/src/components/Favorite/styles.tsx +0 -2
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/GPSButton/index.tsx +1 -1
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +1 -1
- package/themes/original/src/components/HighestRatedBusinesses/index.tsx +1 -1
- package/themes/original/src/components/HighestRatedBusinesses/styles.tsx +1 -1
- package/themes/original/src/components/Home/index.tsx +1 -1
- package/themes/original/src/components/Messages/styles.tsx +1 -1
- package/themes/original/src/components/MultiCart/index.tsx +1 -1
- package/themes/original/src/components/MultiCheckout/index.tsx +4 -4
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +5 -5
- package/themes/original/src/components/NetworkError/styles.tsx +2 -2
- package/themes/original/src/components/Notifications/index.tsx +2 -4
- package/themes/original/src/components/Notifications/styles.tsx +0 -1
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +1 -1
- package/themes/original/src/components/OrderDetails/index.tsx +702 -663
- package/themes/original/src/components/OrderDetails/styles.tsx +24 -7
- package/themes/original/src/components/OrderProgress/styles.tsx +1 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +1 -1
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +1 -1
- package/themes/original/src/components/OrdersOption/index.tsx +1 -1
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/ProductForm/ExtraOptions.tsx +56 -0
- package/themes/original/src/components/ProductForm/index.tsx +51 -146
- package/themes/original/src/components/ProductItemAccordion/index.tsx +5 -0
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +1 -1
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +3 -3
- package/themes/original/src/components/Promotions/index.tsx +4 -4
- package/themes/original/src/components/Promotions/styles.tsx +0 -2
- package/themes/original/src/components/ReviewDriver/styles.tsx +1 -1
- package/themes/original/src/components/ReviewOrder/styles.tsx +1 -1
- package/themes/original/src/components/ReviewProducts/styles.tsx +1 -1
- package/themes/original/src/components/ServiceForm/index.tsx +1 -1
- package/themes/original/src/components/ServiceForm/styles.tsx +4 -4
- package/themes/original/src/components/StripeElementsForm/index.tsx +1 -1
- package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +170 -0
- package/themes/original/src/components/UpsellingProducts/UpsellingLayout.tsx +86 -0
- package/themes/original/src/components/UpsellingProducts/index.tsx +15 -199
- package/themes/original/src/components/UpsellingProducts/styles.tsx +19 -0
- package/themes/original/src/components/UserFormDetails/index.tsx +16 -3
- package/themes/original/src/components/UserProfile/index.tsx +1 -1
- package/themes/original/src/components/WalletTransactions/styles.tsx +1 -0
- package/themes/original/src/components/Wallets/index.tsx +1 -3
- package/themes/original/src/components/Wallets/styles.tsx +1 -0
- package/themes/original/src/components/shared/HeaderTitle.tsx +1 -1
- package/themes/original/src/components/shared/OModal.tsx +12 -14
- 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
|
|
4
|
-
import
|
|
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
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
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={() =>
|
|
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:
|
|
129
|
-
paddingRight:
|
|
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
|
|
9
|
+
padding: ${Platform.OS === 'ios' ? '0px 20px' : '20px 20px'};
|
|
10
10
|
`}
|
|
11
11
|
background-color: ${(props: any) => props.theme.colors.backgroundPage};
|
|
12
12
|
`;
|