ordering-ui-react-native 0.12.86 → 0.12.87
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/single-business/src/components/BusinessProductsListing/index.tsx +7 -0
- 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/SearchBar/index.tsx +2 -6
package/package.json
CHANGED
|
@@ -210,6 +210,13 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
|
|
|
210
210
|
noBorderShow
|
|
211
211
|
placeholder={t('SEARCH', 'Search')}
|
|
212
212
|
lazyLoad={businessState?.business?.lazy_load_products_recommended}
|
|
213
|
+
inputStyle={{
|
|
214
|
+
borderRadius: 8,
|
|
215
|
+
borderBottomWidth: 1,
|
|
216
|
+
borderBottomColor: theme.colors.border,
|
|
217
|
+
borderBottomLeftRadius: 0,
|
|
218
|
+
borderBottomRightRadius: 0,
|
|
219
|
+
}}
|
|
213
220
|
/>
|
|
214
221
|
</WrapSearchBar>
|
|
215
222
|
{!(business?.categories?.length === 0) && (
|
|
@@ -106,10 +106,6 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
106
106
|
color: theme.colors.warning5,
|
|
107
107
|
marginRight: 8
|
|
108
108
|
},
|
|
109
|
-
farAwayMsg: {
|
|
110
|
-
paddingVertical: 6,
|
|
111
|
-
paddingHorizontal: 20
|
|
112
|
-
}
|
|
113
109
|
});
|
|
114
110
|
|
|
115
111
|
|
|
@@ -199,11 +195,11 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
199
195
|
</OText>
|
|
200
196
|
</AddressInput>
|
|
201
197
|
{isFarAway && (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
<FarAwayMessage>
|
|
199
|
+
<Ionicons name='md-warning-outline' style={styles.iconStyle} />
|
|
200
|
+
<OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address')}</OText>
|
|
201
|
+
</FarAwayMessage>
|
|
202
|
+
)}
|
|
207
203
|
<OrderControlContainer>
|
|
208
204
|
<View style={styles.wrapperOrderOptions}>
|
|
209
205
|
<DropOptionButton
|
|
@@ -256,6 +252,13 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
256
252
|
noBorderShow
|
|
257
253
|
placeholder={t('SEARCH', 'Search')}
|
|
258
254
|
lazyLoad
|
|
255
|
+
inputStyle={{
|
|
256
|
+
borderRadius: 8,
|
|
257
|
+
borderBottomWidth: 1,
|
|
258
|
+
borderBottomColor: theme.colors.border,
|
|
259
|
+
borderBottomLeftRadius: 0,
|
|
260
|
+
borderBottomRightRadius: 0,
|
|
261
|
+
}}
|
|
259
262
|
/>
|
|
260
263
|
</WrapSearchBar>
|
|
261
264
|
<View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100 }} />
|
|
@@ -23,7 +23,7 @@ export const AddressInput = styled.TouchableOpacity`
|
|
|
23
23
|
justify-content: flex-start;
|
|
24
24
|
background-color: white;
|
|
25
25
|
padding-horizontal: 15px;
|
|
26
|
-
border-radius:
|
|
26
|
+
border-radius: 8px;
|
|
27
27
|
height: 44px;
|
|
28
28
|
min-height: 44px;
|
|
29
29
|
`
|
|
@@ -93,14 +93,16 @@ export const WrapSearchBar = styled.View`
|
|
|
93
93
|
padding: 10px 30px;
|
|
94
94
|
margin-bottom: 10px;
|
|
95
95
|
background-color: ${(props: any) => props.theme.colors.white};
|
|
96
|
-
flex: 1;
|
|
97
96
|
`
|
|
98
97
|
|
|
99
98
|
export const FarAwayMessage = styled.View`
|
|
99
|
+
display: flex;
|
|
100
100
|
flex-direction: row;
|
|
101
101
|
align-items: center;
|
|
102
102
|
background-color: ${(props: any) => props.theme.colors.warning1};
|
|
103
|
-
border-radius:
|
|
103
|
+
border-radius: 8px;
|
|
104
104
|
border: 1px solid ${(props: any) => props.theme.colors.warning5};
|
|
105
105
|
width: 100%;
|
|
106
|
+
padding: 6px 20px;
|
|
107
|
+
margin-top: 20px;
|
|
106
108
|
`
|
|
@@ -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
|