ordering-ui-react-native 0.11.60 → 0.12.2
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/src/components/BusinessBasicInformation/index.tsx +6 -2
- package/src/components/SingleProductCard/index.tsx +14 -4
- package/src/config.json +1 -1
- package/themes/business/index.tsx +2 -1
- package/themes/business/src/components/MapView/index.tsx +52 -21
- package/themes/business/src/components/shared/OFab.tsx +8 -3
- package/themes/business/src/types/index.tsx +3 -1
- package/themes/kiosk/src/components/BusinessMenu/index.tsx +49 -5
- package/themes/kiosk/src/components/BusinessProductsListing/index.tsx +6 -2
- package/themes/kiosk/src/components/CartBottomSheet/index.tsx +10 -1
- package/themes/kiosk/src/components/CartContent/index.tsx +7 -1
- package/themes/kiosk/src/components/CategoriesMenu/index.tsx +11 -1
- package/themes/kiosk/src/components/CustomerName/index.tsx +91 -64
- package/themes/kiosk/src/components/UpsellingProducts/index.tsx +13 -3
- package/themes/kiosk/src/types/index.d.ts +5 -0
- package/themes/single-business/index.tsx +108 -16
- package/themes/single-business/src/components/BusinessBasicInformation/index.tsx +13 -3
- package/themes/single-business/src/components/BusinessBasicInformation/styles.tsx +1 -1
- package/themes/single-business/src/components/BusinessInformation/index.tsx +59 -13
- package/themes/single-business/src/components/BusinessInformation/styles.tsx +2 -2
- package/themes/single-business/src/components/Checkout/index.tsx +5 -6
- package/themes/single-business/src/components/DriverTips/index.tsx +1 -0
- package/themes/single-business/src/components/DriverTips/styles.tsx +10 -9
- package/themes/single-business/src/components/PaymentOptions/index.tsx +16 -14
- package/themes/single-business/src/components/PaymentOptions/styles.tsx +4 -6
- package/themes/single-business/src/components/shared/index.tsx +10 -8
|
@@ -13,21 +13,22 @@ export const DTWrapperTips = styled.View`
|
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
width: 100%;
|
|
16
|
-
justify-content: space-
|
|
16
|
+
justify-content: space-evenly;
|
|
17
17
|
align-items: center;
|
|
18
18
|
flex-wrap: wrap;
|
|
19
19
|
`
|
|
20
20
|
|
|
21
21
|
export const DTCard = styled.View`
|
|
22
|
+
display: flex;
|
|
22
23
|
justify-content: center;
|
|
23
24
|
align-items: center;
|
|
24
|
-
padding:
|
|
25
|
-
border: 1px solid ${(props: any) => props.
|
|
25
|
+
padding: 15px;
|
|
26
|
+
border: 1px solid ${(props: any) => props.theme.colors.whiteGray};
|
|
26
27
|
text-transform: capitalize;
|
|
27
|
-
min-height:
|
|
28
|
-
min-width:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
min-height: 60px;
|
|
29
|
+
min-width: 60px;
|
|
30
|
+
margin-right: 10px;
|
|
31
|
+
margin-top: 10px;
|
|
31
32
|
|
|
32
33
|
${(props: any) => props.isActive && css`
|
|
33
34
|
background-color: ${(props: any) => props.theme.colors.primary};
|
|
@@ -45,11 +46,11 @@ export const DTForm = styled.View`
|
|
|
45
46
|
export const DTLabel = styled.Text`
|
|
46
47
|
font-size: 10px;
|
|
47
48
|
align-self: flex-start;
|
|
48
|
-
color: ${(props: any) => props.theme.colors.textSecondary}
|
|
49
|
+
color: ${(props: any) => props.theme.colors.textSecondary};
|
|
49
50
|
${(props: any) => props.theme?.rtl && css`
|
|
50
51
|
margin-left: 20px;
|
|
51
52
|
margin-right: 0;
|
|
52
|
-
`}
|
|
53
|
+
`};
|
|
53
54
|
margin-top: 5px;
|
|
54
55
|
margin-bottom: 17px;
|
|
55
56
|
`
|
|
@@ -134,7 +134,7 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
134
134
|
/>
|
|
135
135
|
<OText
|
|
136
136
|
size={10}
|
|
137
|
-
style={{
|
|
137
|
+
style={{ marginLeft: 12 }}
|
|
138
138
|
color={paymethodSelected?.id === item.id ? theme.colors.white : '#000'}
|
|
139
139
|
>
|
|
140
140
|
{t(item.gateway.toUpperCase(), item.name)}
|
|
@@ -151,19 +151,21 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
151
151
|
return (
|
|
152
152
|
<PMContainer>
|
|
153
153
|
{paymethodsList.paymethods.length > 0 && (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
154
|
+
<View style={{ flexDirection: 'column' }}>
|
|
155
|
+
<PMDropDownWrapper onPress={() => setShowMethods(!isShowMethods)}>
|
|
156
|
+
<OText color={theme.colors.textSecondary} style={{marginLeft: 14}}>{paymethodSelected?.paymethod?.name || t('SELECT_PAYMENT_METHOD', 'Select Paymethod')}</OText>
|
|
157
|
+
<OIcon color={theme.colors.textSecondary} width={16} src={theme.images.general.chevron_right} style={{transform: [{rotate: '90deg'}], marginEnd: 14}} />
|
|
158
|
+
</PMDropDownWrapper>
|
|
159
|
+
{isShowMethods && (
|
|
160
|
+
<PMDropDownCont>
|
|
161
|
+
{pmData.map((item: any, idx: number) =>
|
|
162
|
+
<TouchableOpacity key={idx} onPress={() => console.log('asdasdasda')}>
|
|
163
|
+
{renderPaymethods({item})}
|
|
164
|
+
</TouchableOpacity>
|
|
165
|
+
)}
|
|
166
|
+
</PMDropDownCont>
|
|
167
|
+
)}
|
|
168
|
+
</View>
|
|
167
169
|
)}
|
|
168
170
|
|
|
169
171
|
{(paymethodsList.loading || isLoading) && (
|
|
@@ -66,11 +66,9 @@ export const PMDropDownWrapper = styled.TouchableOpacity`
|
|
|
66
66
|
`;
|
|
67
67
|
|
|
68
68
|
export const PMDropDownCont = styled.View`
|
|
69
|
-
|
|
70
|
-
border-radius: 7.6px;
|
|
71
|
-
position: absolute;
|
|
72
|
-
top: 44px;
|
|
69
|
+
border-radius: 8px;
|
|
73
70
|
width: 100%;
|
|
74
|
-
padding: 10px
|
|
71
|
+
padding: 10px 0 0;
|
|
75
72
|
box-shadow: 0 2px 3px #0000004D;
|
|
76
|
-
|
|
73
|
+
z-index: 99999;
|
|
74
|
+
`;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import OAlert from './OAlert'
|
|
2
|
+
import OBottomPopup from './OBottomPopup'
|
|
2
3
|
import OButton from './OButton'
|
|
3
|
-
import OInput from './OInput'
|
|
4
4
|
import ODropDown from './ODropDown'
|
|
5
5
|
import OIcon from './OIcon'
|
|
6
|
-
import OIconText from './OIconText'
|
|
7
6
|
import OIconButton from './OIconButton'
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import OIconText from './OIconText'
|
|
8
|
+
import OInput from './OInput'
|
|
10
9
|
import OKeyButton from './OKeyButton'
|
|
11
10
|
import OModal from './OModal'
|
|
12
|
-
import
|
|
13
|
-
import
|
|
11
|
+
import OText from './OText'
|
|
12
|
+
import OTextarea from './OTextarea'
|
|
13
|
+
import { Toast } from './OToast'
|
|
14
|
+
import OToggle from './OToggle'
|
|
14
15
|
|
|
15
16
|
export {
|
|
16
17
|
OText,
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
OToggle,
|
|
25
26
|
OKeyButton,
|
|
26
27
|
OAlert,
|
|
27
|
-
|
|
28
|
+
OModal,
|
|
28
29
|
OBottomPopup,
|
|
30
|
+
Toast
|
|
29
31
|
}
|