ordering-ui-external 2.0.4 → 2.1.0

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 (99) hide show
  1. package/_bundles/{0.ordering-ui.a228aa8797d9d0fc5a6c.js → 0.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  2. package/_bundles/{1.ordering-ui.a228aa8797d9d0fc5a6c.js → 1.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  3. package/_bundles/{2.ordering-ui.a228aa8797d9d0fc5a6c.js → 2.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  4. package/_bundles/{4.ordering-ui.a228aa8797d9d0fc5a6c.js → 4.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  5. package/_bundles/{5.ordering-ui.a228aa8797d9d0fc5a6c.js → 5.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  6. package/_bundles/{6.ordering-ui.a228aa8797d9d0fc5a6c.js → 6.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  7. package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js → 7.ordering-ui.3861d1cf52cf041c74c5.js} +1 -1
  8. package/_bundles/{7.ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → 7.ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.a228aa8797d9d0fc5a6c.js → 8.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  10. package/_bundles/{9.ordering-ui.a228aa8797d9d0fc5a6c.js → 9.ordering-ui.3861d1cf52cf041c74c5.js} +0 -0
  11. package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js → ordering-ui.3861d1cf52cf041c74c5.js} +2 -2
  12. package/_bundles/{ordering-ui.a228aa8797d9d0fc5a6c.js.LICENSE.txt → ordering-ui.3861d1cf52cf041c74c5.js.LICENSE.txt} +0 -0
  13. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +36 -28
  14. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -34
  15. package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +3 -1
  16. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +8 -1
  17. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +1 -1
  18. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +2 -1
  19. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
  20. package/_modules/themes/five/src/components/Cart/index.js +73 -25
  21. package/_modules/themes/five/src/components/CartContent/index.js +3 -1
  22. package/_modules/themes/five/src/components/Checkout/index.js +25 -15
  23. package/_modules/themes/five/src/components/DriverTips/index.js +26 -15
  24. package/_modules/themes/five/src/components/GiftCard/GiftCardUI/index.js +63 -0
  25. package/_modules/themes/five/src/components/GiftCard/GiftCardUI/styles.js +27 -0
  26. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +69 -0
  27. package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +29 -0
  28. package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +123 -0
  29. package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +20 -0
  30. package/_modules/themes/five/src/components/GiftCard/SendGiftCard/index.js +114 -0
  31. package/_modules/themes/five/src/components/GiftCard/SendGiftCard/styles.js +14 -0
  32. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +3 -1
  33. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
  34. package/_modules/themes/five/src/components/LoginForm/index.js +6 -0
  35. package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +69 -0
  36. package/_modules/themes/five/src/components/OrderDetails/index.js +84 -76
  37. package/_modules/themes/five/src/components/OrderDetails/styles.js +1 -1
  38. package/_modules/themes/five/src/components/OrderItAgain/styles.js +3 -3
  39. package/_modules/themes/five/src/components/OrderProgress/index.js +5 -14
  40. package/_modules/themes/five/src/components/PaymentOptions/index.js +22 -8
  41. package/_modules/themes/five/src/components/PaymentOptions/styles.js +9 -7
  42. package/_modules/themes/five/src/components/ProductOptionSubOption/styles.js +20 -14
  43. package/_modules/themes/five/src/components/ProfessionalFilter/index.js +23 -25
  44. package/_modules/themes/five/src/components/ProfessionalFilter/styles.js +6 -32
  45. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +38 -22
  46. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +3 -9
  47. package/_modules/themes/five/src/components/ServiceForm/index.js +10 -4
  48. package/_modules/themes/five/src/components/ServiceForm/styles.js +23 -25
  49. package/_modules/themes/five/src/components/SignUpForm/index.js +6 -0
  50. package/_modules/themes/five/src/components/SingleOrderCard/index.js +22 -16
  51. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +13 -2
  52. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +73 -51
  53. package/_modules/themes/five/src/components/SingleProfessionalCard/index.js +23 -7
  54. package/_modules/themes/five/src/components/SingleProfessionalCard/styles.js +29 -10
  55. package/_modules/themes/five/src/components/Wallets/index.js +2 -1
  56. package/package.json +2 -2
  57. package/src/themes/five/src/components/BusinessBasicInformation/index.js +49 -35
  58. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +26 -4
  59. package/src/themes/five/src/components/BusinessItemAccordion/index.js +1 -1
  60. package/src/themes/five/src/components/BusinessProductsCategories/index.js +7 -1
  61. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +2 -2
  62. package/src/themes/five/src/components/BusinessProductsListing/index.js +1 -0
  63. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +1 -1
  64. package/src/themes/five/src/components/Cart/index.js +44 -14
  65. package/src/themes/five/src/components/CartContent/index.js +1 -0
  66. package/src/themes/five/src/components/Checkout/index.js +67 -51
  67. package/src/themes/five/src/components/DriverTips/index.js +52 -40
  68. package/src/themes/five/src/components/GiftCard/GiftCardUI/index.js +59 -0
  69. package/src/themes/five/src/components/GiftCard/GiftCardUI/styles.js +41 -0
  70. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +70 -0
  71. package/src/themes/five/src/components/GiftCard/PurchaseGiftCard/styles.js +52 -0
  72. package/src/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +122 -0
  73. package/src/themes/five/src/components/GiftCard/RedeemGiftCard/styles.js +41 -0
  74. package/src/themes/five/src/components/GiftCard/SendGiftCard/index.js +103 -0
  75. package/src/themes/five/src/components/GiftCard/SendGiftCard/styles.js +27 -0
  76. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +7 -4
  77. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +0 -1
  78. package/src/themes/five/src/components/LoginForm/index.js +7 -0
  79. package/src/themes/five/src/components/OrderDetails/OrderEta.js +59 -0
  80. package/src/themes/five/src/components/OrderDetails/index.js +141 -133
  81. package/src/themes/five/src/components/OrderDetails/styles.js +0 -1
  82. package/src/themes/five/src/components/OrderItAgain/styles.js +6 -6
  83. package/src/themes/five/src/components/OrderProgress/index.js +3 -12
  84. package/src/themes/five/src/components/PaymentOptions/index.js +26 -5
  85. package/src/themes/five/src/components/PaymentOptions/styles.js +4 -0
  86. package/src/themes/five/src/components/ProductOptionSubOption/styles.js +24 -4
  87. package/src/themes/five/src/components/ProfessionalFilter/index.js +18 -30
  88. package/src/themes/five/src/components/ProfessionalFilter/styles.js +1 -57
  89. package/src/themes/five/src/components/RenderProductsLayout/index.js +33 -17
  90. package/src/themes/five/src/components/RenderProductsLayout/styles.js +0 -18
  91. package/src/themes/five/src/components/ServiceForm/index.js +11 -5
  92. package/src/themes/five/src/components/ServiceForm/styles.js +1 -9
  93. package/src/themes/five/src/components/SignUpForm/index.js +7 -0
  94. package/src/themes/five/src/components/SingleOrderCard/index.js +43 -26
  95. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +12 -2
  96. package/src/themes/five/src/components/SingleProductCard/layouts/original/styles.js +51 -4
  97. package/src/themes/five/src/components/SingleProfessionalCard/index.js +17 -6
  98. package/src/themes/five/src/components/SingleProfessionalCard/styles.js +33 -6
  99. package/src/themes/five/src/components/Wallets/index.js +2 -1
@@ -18,6 +18,14 @@ export const CardContainer = styled.div`
18
18
  > div {
19
19
  display: flex;
20
20
  justify-content: space-between;
21
+ ${({ theme }) => theme?.business_view?.components?.products?.components?.product?.components?.image?.position === 'right'
22
+ ? css`
23
+ flex-direction: row-reverse;
24
+ `
25
+ : css`
26
+ flex-direction: row;
27
+ `
28
+ }
21
29
  align-items: center;
22
30
  width: 100%;
23
31
  }
@@ -31,7 +39,7 @@ export const CardContainer = styled.div`
31
39
  margin: 10px;
32
40
  ` : css`
33
41
  width: 100%;
34
- margin: 10px 0px;
42
+ margin: 10px;
35
43
  @media (min-width: 576px) {
36
44
  margin: 10px;
37
45
  width: calc(100% - 20px);
@@ -133,13 +141,45 @@ export const WrapLogo = styled.div`
133
141
  ${({ isBgimage }) => isBgimage && css`
134
142
  width: 86px;
135
143
  `}
136
- margin-left: 5px;
144
+ ${({ theme }) => theme?.business_view?.components?.products?.components?.product?.components?.image?.position === 'right'
145
+ ? css`
146
+ margin-left: 5px;
147
+ `
148
+ : css`
149
+ margin-right: 5px;
150
+ `}
137
151
  ${props => props.theme?.rtl && css`
138
152
  margin-right: 5px;
139
153
  margin-left: 0px;
140
154
  `}
141
155
  `
142
156
 
157
+ export const WrapTags = styled.div`
158
+ display: flex;
159
+ margin-left: 10px;
160
+ margin-right: 10px;
161
+ overflow-x: auto;
162
+ ${({ isBgimage }) => isBgimage && css`
163
+ width: 50px;
164
+ `}
165
+ ${props => props.theme?.rtl && css`
166
+ margin-right: 5px;
167
+ margin-left: 0px;
168
+ `}
169
+ div {
170
+ display: flex;
171
+ margin: auto;
172
+ }
173
+ ::-webkit-scrollbar {
174
+ display: none;
175
+ }
176
+ img {
177
+ width: 30px;
178
+ height: 30px;
179
+ margin-right: 5px;
180
+ }
181
+ `
182
+
143
183
  const CardLogoStyled = styled.div`
144
184
  box-sizing: border-box;
145
185
  position: relative;
@@ -168,17 +208,26 @@ export const CardLogo = (props) => {
168
208
  export const PriceWrapper = styled.div`
169
209
  display: flex;
170
210
  align-items: center;
211
+ .current-price {
212
+ min-width: 64px
213
+ }
171
214
  .off-price {
172
215
  font-size: 10px;
173
216
  color: #909BA9;
174
217
  margin-left: 5px;
175
218
  text-decoration: line-through;
219
+ ${({ isOffPrice }) => isOffPrice && css`
220
+ min-width: 46px;
221
+ `}
176
222
  ${props => props.theme.rtl && css`
177
223
  margin-right: 5px;
178
224
  margin-left: 0;
179
225
  `}
180
226
  @media (min-width: 1024px) {
181
227
  font-size: 13px;
228
+ ${({ isOffPrice }) => isOffPrice && css`
229
+ min-width: 64px;
230
+ `}
182
231
  }
183
232
  }
184
233
  `
@@ -194,7 +243,6 @@ export const QuantityContainer = styled.div`
194
243
  text-align: center;
195
244
  border-radius: 50%;
196
245
  transform: translate(-20px, 50%);
197
-
198
246
  @media (min-width: 768px) {
199
247
  transform: translate(-50%, 50%);
200
248
  }
@@ -218,7 +266,6 @@ export const RibbonBox = styled.div`
218
266
  overflow: hidden;
219
267
  max-width: 70px;
220
268
  word-break: break-all;
221
-
222
269
  ${props => props.theme.rtl && css`
223
270
  left: -3px;
224
271
  right: initial;
@@ -4,18 +4,23 @@ import { useSession, SingleProfessionalCard as SingleProfessionalCardController
4
4
  import Skeleton from 'react-loading-skeleton'
5
5
  import { ProfessionalInfo } from '../ProfessionalInfo'
6
6
  import { Modal } from '../Modal'
7
+ import FaUserAlt from '@meronex/icons/fa/FaUserAlt'
7
8
  import {
8
9
  Container,
9
10
  UserPhoto,
10
11
  InfoWrapper,
11
- ActionWrapper
12
+ ActionWrapper,
13
+ UserDummyAvatarWrapper
12
14
  } from './styles'
13
15
 
14
16
  const SingleProfessionalCardUI = (props) => {
15
17
  const {
16
18
  professional,
17
19
  isSkeleton,
18
- handleFavoriteProfessional
20
+ handleFavoriteProfessional,
21
+ isSmallPhoto,
22
+ active,
23
+ handleProfessionalClick
19
24
  } = props
20
25
 
21
26
  const [{ auth }] = useSession()
@@ -33,16 +38,22 @@ const SingleProfessionalCardUI = (props) => {
33
38
 
34
39
  return (
35
40
  <>
36
- <Container>
41
+ <Container
42
+ active={active}
43
+ isCursor={!!handleProfessionalClick}
44
+ onClick={e => handleProfessionalClick && handleProfessionalClick(e, professional)}
45
+ >
37
46
  {isSkeleton ? (
38
47
  <Skeleton style={{ width: '86px', height: '86px' }} />
39
48
  ) : (
40
- <UserPhoto bgimage={professional?.photo} />
49
+ professional?.photo
50
+ ? <UserPhoto bgimage={professional?.photo} isSmallPhoto={isSmallPhoto} />
51
+ : <UserDummyAvatarWrapper isSmallPhoto={isSmallPhoto}><FaUserAlt /></UserDummyAvatarWrapper>
41
52
  )}
42
53
  <InfoWrapper>
43
54
  <h4>{isSkeleton ? <Skeleton height={18} width={120} /> : <>{professional?.name} {professional?.last_name}</>}</h4>
44
55
  {isSkeleton ? <Skeleton height={15} width={80} /> : <>{professional?.occupation?.name && <p>{professional?.occupation?.name}</p>}</>}
45
- <ActionWrapper>
56
+ <ActionWrapper isSmallPhoto={isSmallPhoto}>
46
57
  {isSkeleton ? (
47
58
  <>
48
59
  <Skeleton width={16} height={16} />
@@ -51,7 +62,7 @@ const SingleProfessionalCardUI = (props) => {
51
62
  ) : (
52
63
  <>
53
64
  <InfoCircle className='info' onClick={() => handleOpenProfileInfo()} />
54
- <span onClick={() => handleChangeFavorite()}>
65
+ <span onClick={() => handleChangeFavorite()} className='favorite'>
55
66
  {professional?.favorite ? <Like /> : <DisLike />}
56
67
  </span>
57
68
  </>
@@ -3,7 +3,7 @@ import React from 'react'
3
3
 
4
4
  export const Container = styled.div`
5
5
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
6
- border-radius: 4px;
6
+ border-radius: 7.6px;
7
7
  padding: 12px 14px;
8
8
  display: flex;
9
9
  align-items: center;
@@ -11,6 +11,13 @@ export const Container = styled.div`
11
11
  border: 1px solid ${props => props.theme.colors.gray200};
12
12
  box-sizing: border-box;
13
13
  margin: 10px;
14
+ min-width: 205px;
15
+ ${({ active }) => active && css`
16
+ border: 1px solid ${props => props.theme.colors.primary};
17
+ `}
18
+ ${({ isCursor }) => isCursor && css`
19
+ cursor: pointer;
20
+ `}
14
21
  `
15
22
 
16
23
  const UserPhotoStyled = styled.div`
@@ -20,11 +27,18 @@ const UserPhotoStyled = styled.div`
20
27
  background-size: cover;
21
28
  background-position: center;
22
29
  object-fit: cover;
23
- min-height: 86px;
24
- width: 86px;
25
- height: 86px;
26
30
  border-radius: 4px;
27
31
 
32
+ ${({ isSmallPhoto }) => isSmallPhoto ? css`
33
+ min-height: 42px;
34
+ width: 42px;
35
+ height: 42px;
36
+ ` : css`
37
+ min-height: 86px;
38
+ width: 86px;
39
+ height: 86px;
40
+ `}
41
+
28
42
  ${({ isSkeleton }) => isSkeleton && css`
29
43
  background-color: ${props => props.theme.colors.gray200};
30
44
  `}
@@ -40,9 +54,20 @@ export const UserPhoto = (props) => {
40
54
  </UserPhotoStyled>
41
55
  )
42
56
  }
57
+ export const UserDummyAvatarWrapper = styled.div`
58
+ svg {
59
+ ${({ isSmallPhoto }) => isSmallPhoto ? css`
60
+ width: 42px;
61
+ height: 42px;
62
+ ` : css`
63
+ width: 86px;
64
+ height: 86px;
65
+ `}
66
+ }
67
+ `
43
68
 
44
69
  export const InfoWrapper = styled.div`
45
- width: calc(100% - 106px);
70
+ width: calc(100% - 60px);
46
71
  margin-left: 20px;
47
72
  ${props => props.theme.rtl && css`
48
73
  margin-left: 0px;
@@ -66,7 +91,9 @@ export const InfoWrapper = styled.div`
66
91
  `
67
92
 
68
93
  export const ActionWrapper = styled.div`
69
- margin-top: 15px;
94
+ ${({ isSmallPhoto }) => !isSmallPhoto && css`
95
+ margin-top: 15px;
96
+ `}
70
97
  display: flex;
71
98
  align-items: center;
72
99
  > .info {
@@ -22,6 +22,7 @@ import {
22
22
  import { WalletTransactionItem } from '../WalletTransactionItem'
23
23
  import { NotFoundSource } from '../../../../../components/NotFoundSource'
24
24
  import { Tabs, Tab } from '../../styles/Tabs'
25
+ import { GiftCardUI } from '../GiftCard/GiftCardUI'
25
26
 
26
27
  const WalletsUI = (props) => {
27
28
  const {
@@ -102,7 +103,7 @@ const WalletsUI = (props) => {
102
103
  </span>
103
104
  </BalanceElement>
104
105
  </SectionWrapper>
105
-
106
+ <GiftCardUI />
106
107
  <div className='transactions_list'>
107
108
  {!transactionsList?.loading && transactionsList.list?.[`wallet:${currentWalletSelected?.id}`]?.length > 0 && (
108
109
  <>