ordering-ui-react-native 0.12.84 → 0.12.88
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/AcceptOrRejectOrder/index.tsx +15 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +5 -1
- package/themes/business/src/components/shared/OTextarea.tsx +1 -0
- package/themes/business/src/types/index.tsx +4 -1
- package/themes/single-business/src/components/BusinessProductsList/index.tsx +1 -1
- package/themes/single-business/src/components/BusinessProductsListing/index.tsx +8 -0
- package/themes/single-business/src/components/BusinessReviews/index.tsx +9 -3
- package/themes/single-business/src/components/BusinessesListing/index.tsx +12 -9
- package/themes/single-business/src/components/BusinessesListing/styles.tsx +5 -3
- package/themes/single-business/src/components/MomentOption/index.tsx +41 -72
- package/themes/single-business/src/components/MomentOption/styles.tsx +12 -13
- package/themes/single-business/src/components/OrderTypeSelector/index.tsx +39 -5
- package/themes/single-business/src/components/ProductForm/index.tsx +286 -324
- package/themes/single-business/src/components/ProductForm/styles.tsx +4 -6
- package/themes/single-business/src/components/SearchBar/index.tsx +2 -6
- package/themes/single-business/src/types/index.tsx +3 -0
|
@@ -3,6 +3,7 @@ import styled, { css } from 'styled-components/native'
|
|
|
3
3
|
export const WrapHeader = styled.View`
|
|
4
4
|
position: relative;
|
|
5
5
|
z-index: 1;
|
|
6
|
+
margin-bottom: 20px;
|
|
6
7
|
`
|
|
7
8
|
|
|
8
9
|
export const TopHeader = styled.View`
|
|
@@ -26,11 +27,8 @@ export const ProductHeader = styled.ImageBackground`
|
|
|
26
27
|
`
|
|
27
28
|
|
|
28
29
|
export const WrapContent = styled.View`
|
|
29
|
-
padding:
|
|
30
|
-
|
|
31
|
-
bottom: 20px;
|
|
32
|
-
background-color: white;
|
|
33
|
-
z-index: 100;
|
|
30
|
+
padding: 0 40px;
|
|
31
|
+
background-color: #FFF;
|
|
34
32
|
`
|
|
35
33
|
|
|
36
34
|
export const ProductTitle = styled.View`
|
|
@@ -39,7 +37,7 @@ export const ProductTitle = styled.View`
|
|
|
39
37
|
`
|
|
40
38
|
|
|
41
39
|
export const ProductDescription = styled.View`
|
|
42
|
-
margin-bottom:
|
|
40
|
+
margin-bottom: 10px;
|
|
43
41
|
`
|
|
44
42
|
|
|
45
43
|
export const ProductEditions = styled.View`
|
|
@@ -4,7 +4,6 @@ import { OInput, OButton } from '../shared'
|
|
|
4
4
|
import { useLanguage } from 'ordering-components/native'
|
|
5
5
|
import { useTheme } from 'styled-components/native';
|
|
6
6
|
import Icon from 'react-native-vector-icons/Feather'
|
|
7
|
-
import { useEffect } from 'hoist-non-react-statics/node_modules/@types/react';
|
|
8
7
|
|
|
9
8
|
export const SearchBar = (props: any) => {
|
|
10
9
|
const {
|
|
@@ -31,8 +30,6 @@ export const SearchBar = (props: any) => {
|
|
|
31
30
|
padding: 1,
|
|
32
31
|
maxHeight: 47,
|
|
33
32
|
height: 47,
|
|
34
|
-
borderBottomColor: theme.colors.border,
|
|
35
|
-
borderBottomWidth: 1,
|
|
36
33
|
},
|
|
37
34
|
borderStyle: {
|
|
38
35
|
borderColor: theme.colors.primary,
|
|
@@ -74,16 +71,15 @@ export const SearchBar = (props: any) => {
|
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
return (
|
|
77
|
-
<View style={[styles.container
|
|
74
|
+
<View style={[styles.container]}>
|
|
78
75
|
<OInput
|
|
79
76
|
value={searchValue}
|
|
80
77
|
onChange={onChangeSearch}
|
|
81
|
-
style={styles.inputStyle}
|
|
78
|
+
style={{ ...styles.inputStyle, ...inputStyle }}
|
|
82
79
|
placeholder={placeholder}
|
|
83
80
|
icon={theme.images.general.search}
|
|
84
81
|
iconStyle={{ width: 17 }}
|
|
85
82
|
returnKeyType='done'
|
|
86
|
-
inputStyle={inputStyle}
|
|
87
83
|
/>
|
|
88
84
|
{isCancelButtonShow && (
|
|
89
85
|
<OButton
|
|
@@ -161,6 +161,7 @@ export interface BusinessProductsListingParams {
|
|
|
161
161
|
categorySelected: any;
|
|
162
162
|
handleSearchRedirect: any;
|
|
163
163
|
errorQuantityProducts?: boolean;
|
|
164
|
+
isSingleBusiness?: boolean;
|
|
164
165
|
isFranchiseApp?: boolean;
|
|
165
166
|
header?: any;
|
|
166
167
|
logo?: any;
|
|
@@ -207,6 +208,7 @@ export interface BusinessProductsListParams {
|
|
|
207
208
|
handleClearSearch?: (value: any) => {};
|
|
208
209
|
isBusinessLoading?: any,
|
|
209
210
|
errorQuantityProducts?: boolean,
|
|
211
|
+
isSingleBusiness?: boolean,
|
|
210
212
|
handleCancelSearch?: () => void
|
|
211
213
|
categoriesLayout?: any
|
|
212
214
|
setCategoriesLayout?: any
|
|
@@ -227,6 +229,7 @@ export interface BusinessInformationParams {
|
|
|
227
229
|
export interface BusinessReviewsParams {
|
|
228
230
|
businessState: { business: any, loading: boolean, error: null };
|
|
229
231
|
reviewsList: { reviews: any, loading: boolean, error: null };
|
|
232
|
+
handleChangeSearch?: any;
|
|
230
233
|
}
|
|
231
234
|
export interface SearchBarParams {
|
|
232
235
|
searchValue?: any;
|