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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/BusinessBasicInformation/index.tsx +6 -2
  3. package/src/components/SingleProductCard/index.tsx +14 -4
  4. package/src/config.json +1 -1
  5. package/themes/business/index.tsx +2 -1
  6. package/themes/business/src/components/MapView/index.tsx +52 -21
  7. package/themes/business/src/components/shared/OFab.tsx +8 -3
  8. package/themes/business/src/types/index.tsx +3 -1
  9. package/themes/kiosk/src/components/BusinessMenu/index.tsx +49 -5
  10. package/themes/kiosk/src/components/BusinessProductsListing/index.tsx +6 -2
  11. package/themes/kiosk/src/components/CartBottomSheet/index.tsx +10 -1
  12. package/themes/kiosk/src/components/CartContent/index.tsx +7 -1
  13. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +11 -1
  14. package/themes/kiosk/src/components/CustomerName/index.tsx +91 -64
  15. package/themes/kiosk/src/components/UpsellingProducts/index.tsx +13 -3
  16. package/themes/kiosk/src/types/index.d.ts +5 -0
  17. package/themes/single-business/index.tsx +108 -16
  18. package/themes/single-business/src/components/BusinessBasicInformation/index.tsx +13 -3
  19. package/themes/single-business/src/components/BusinessBasicInformation/styles.tsx +1 -1
  20. package/themes/single-business/src/components/BusinessInformation/index.tsx +59 -13
  21. package/themes/single-business/src/components/BusinessInformation/styles.tsx +2 -2
  22. package/themes/single-business/src/components/Checkout/index.tsx +5 -6
  23. package/themes/single-business/src/components/DriverTips/index.tsx +1 -0
  24. package/themes/single-business/src/components/DriverTips/styles.tsx +10 -9
  25. package/themes/single-business/src/components/PaymentOptions/index.tsx +16 -14
  26. package/themes/single-business/src/components/PaymentOptions/styles.tsx +4 -6
  27. 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-between;
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: 10px;
25
- border: 1px solid ${(props: any) => props.isActive ? props.theme.colors.primary : props.theme.colors.border};
25
+ padding: 15px;
26
+ border: 1px solid ${(props: any) => props.theme.colors.whiteGray};
26
27
  text-transform: capitalize;
27
- min-height: 48px;
28
- min-width: 48px;
29
- width: 48px;
30
- height: 48px;
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={{ marginStart: 12 }}
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
- <PMDropDownWrapper onPress={() => setShowMethods(true)}>
155
- <OText color={theme.colors.textSecondary} style={{marginStart: 14}}>{paymethodSelected?.paymethod?.name || t('SELECT_PAYMENT_METHOD', 'Select Paymethod')}</OText>
156
- <OIcon color={theme.colors.textSecondary} width={16} src={theme.images.general.chevron_right} style={{transform: [{rotate: '90deg'}], marginEnd: 14}} />
157
- {isShowMethods && <PMDropDownCont>
158
- {
159
- pmData.map((item: any, idx: number) =>
160
- <React.Fragment key={idx}>
161
- {renderPaymethods({item})}
162
- </React.Fragment>
163
- )
164
- }
165
- </PMDropDownCont>}
166
- </PMDropDownWrapper>
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
- background-color: white;
70
- border-radius: 7.6px;
71
- position: absolute;
72
- top: 44px;
69
+ border-radius: 8px;
73
70
  width: 100%;
74
- padding: 10px 16px;
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 OText from './OText'
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 OTextarea from './OTextarea'
9
- import OToggle from './OToggle'
7
+ import OIconText from './OIconText'
8
+ import OInput from './OInput'
10
9
  import OKeyButton from './OKeyButton'
11
10
  import OModal from './OModal'
12
- import OAlert from './OAlert'
13
- import OBottomPopup from './OBottomPopup'
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
- OModal,
28
+ OModal,
28
29
  OBottomPopup,
30
+ Toast
29
31
  }