ordering-ui-external 14.1.44 → 14.1.46
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/_bundles/{7.ordering-ui.d9252dcccf4ce0155028.js → 7.ordering-ui.247fbb361bb31d72a262.js} +1 -1
- package/_bundles/{ordering-ui.d9252dcccf4ce0155028.js → ordering-ui.247fbb361bb31d72a262.js} +2 -2
- package/_modules/components/BusinessesMap/index.js +7 -22
- package/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +1 -13
- package/_modules/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Header/index.js +9 -1
- package/_modules/themes/callcenterOriginal/src/components/UserDetails/styles.js +3 -3
- package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +1 -1
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +25 -21
- package/_modules/themes/five/src/components/BusinessController/index.js +3 -1
- package/_modules/themes/five/src/components/BusinessController/styles.js +7 -4
- package/_modules/themes/five/src/components/Checkout/index.js +5 -8
- package/package.json +2 -2
- package/src/components/BusinessesMap/index.js +24 -38
- package/src/themes/callcenterOriginal/src/components/AddressForm/index.js +0 -13
- package/src/themes/callcenterOriginal/src/components/AddressList/index.js +0 -1
- package/src/themes/callcenterOriginal/src/components/AddressList/styles.js +10 -4
- package/src/themes/callcenterOriginal/src/components/Header/index.js +6 -1
- package/src/themes/callcenterOriginal/src/components/UserDetails/styles.js +8 -2
- package/src/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +3 -0
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +13 -1
- package/src/themes/five/src/components/BusinessController/index.js +15 -1
- package/src/themes/five/src/components/BusinessController/styles.js +12 -1
- package/src/themes/five/src/components/Checkout/index.js +1 -2
- /package/_bundles/{0.ordering-ui.d9252dcccf4ce0155028.js → 0.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{1.ordering-ui.d9252dcccf4ce0155028.js → 1.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{2.ordering-ui.d9252dcccf4ce0155028.js → 2.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{4.ordering-ui.d9252dcccf4ce0155028.js → 4.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{5.ordering-ui.d9252dcccf4ce0155028.js → 5.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{6.ordering-ui.d9252dcccf4ce0155028.js → 6.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{7.ordering-ui.d9252dcccf4ce0155028.js.LICENSE.txt → 7.ordering-ui.247fbb361bb31d72a262.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.d9252dcccf4ce0155028.js → 8.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{9.ordering-ui.d9252dcccf4ce0155028.js → 9.ordering-ui.247fbb361bb31d72a262.js} +0 -0
- /package/_bundles/{ordering-ui.d9252dcccf4ce0155028.js.LICENSE.txt → ordering-ui.247fbb361bb31d72a262.js.LICENSE.txt} +0 -0
|
@@ -140,6 +140,8 @@ export const Header = (props) => {
|
|
|
140
140
|
events.emit('go_to_page', { page: 'business', params: { store: business.slug } })
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
const cutCharactersName = ({ str, maxSize = 8 }) => str.length <= maxSize ? str : str.slice(0, maxSize) + '...'
|
|
144
|
+
|
|
143
145
|
useEffect(() => {
|
|
144
146
|
if (isCustomerMode) {
|
|
145
147
|
setCustomerModalOpen(false)
|
|
@@ -177,7 +179,10 @@ export const Header = (props) => {
|
|
|
177
179
|
onClick={(e) => handleClickUserCustomer(e)}
|
|
178
180
|
>
|
|
179
181
|
<span>
|
|
180
|
-
<p>
|
|
182
|
+
<p>
|
|
183
|
+
{windowSize.width > 940 ? userCustomer?.name : cutCharactersName({ str: userCustomer?.name })}
|
|
184
|
+
{' '}{windowSize.width > 940 ? userCustomer?.lastname : null}
|
|
185
|
+
</p>
|
|
181
186
|
</span>
|
|
182
187
|
<span
|
|
183
188
|
ref={clearCustomer}
|
|
@@ -2,6 +2,12 @@ import styled, { css } from 'styled-components'
|
|
|
2
2
|
|
|
3
3
|
export const Container = styled.div`
|
|
4
4
|
height: ${({ isEdit }) => isEdit ? 'auto' : '145px'};
|
|
5
|
+
|
|
6
|
+
@media (max-width: 930px) {
|
|
7
|
+
h1 {
|
|
8
|
+
font-size: 18px !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
5
11
|
`
|
|
6
12
|
|
|
7
13
|
export const Header = styled.div`
|
|
@@ -13,7 +19,7 @@ export const Header = styled.div`
|
|
|
13
19
|
h1 {
|
|
14
20
|
font-weight: 500;
|
|
15
21
|
font-size: 20px;
|
|
16
|
-
color: ${props => props.theme.colors.darkTextColor};
|
|
22
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
17
23
|
margin: 0px 10px 0px 0px;
|
|
18
24
|
${props => props.theme?.rtl && css`
|
|
19
25
|
margin: 0px 0px 0px 10px;
|
|
@@ -114,7 +120,7 @@ export const PhoneContainer = styled.div`
|
|
|
114
120
|
display: flex;
|
|
115
121
|
align-items: center;
|
|
116
122
|
height: 30px;
|
|
117
|
-
|
|
123
|
+
|
|
118
124
|
p {
|
|
119
125
|
margin: 0;
|
|
120
126
|
}
|
|
@@ -59,6 +59,9 @@ export const BusinessInfoComponent = (props) => {
|
|
|
59
59
|
{!loading ? (
|
|
60
60
|
<TitleWrapper isCustomLayout={isCustomLayout} disableLeftSpace={singleBusinessRedirect}>
|
|
61
61
|
<h2 className='bold' id='business_name'>{business?.name}</h2>
|
|
62
|
+
{isCustomerMode && business?.address && (
|
|
63
|
+
<h3>{business?.address}</h3>
|
|
64
|
+
)}
|
|
62
65
|
<span id='business_name_feedback' />
|
|
63
66
|
{business?.ribbon?.enabled && (
|
|
64
67
|
<RibbonBox
|
|
@@ -411,11 +411,23 @@ export const TitleWrapper = styled.div`
|
|
|
411
411
|
`}
|
|
412
412
|
`}
|
|
413
413
|
}
|
|
414
|
+
|
|
414
415
|
@media (min-width: 768px) {
|
|
415
416
|
font-size: 32px;
|
|
416
|
-
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
+
|
|
420
|
+
h3 {
|
|
421
|
+
font-size: 16px;
|
|
422
|
+
line-height: 36px;
|
|
423
|
+
margin: 0px;
|
|
424
|
+
font-weight: 500;
|
|
425
|
+
width: 100%;
|
|
426
|
+
overflow: hidden;
|
|
427
|
+
white-space: nowrap;
|
|
428
|
+
text-overflow: ellipsis;
|
|
429
|
+
background: ${({ theme }) => theme?.colors?.backgroundPage};
|
|
430
|
+
}
|
|
419
431
|
`
|
|
420
432
|
|
|
421
433
|
export const RibbonBox = styled.div`
|
|
@@ -33,7 +33,8 @@ import {
|
|
|
33
33
|
FavoriteWrapper,
|
|
34
34
|
BusinessHeaderClosedContainer,
|
|
35
35
|
ScheduleContainer,
|
|
36
|
-
ClosedContainer
|
|
36
|
+
ClosedContainer,
|
|
37
|
+
BusinessAddress
|
|
37
38
|
// CardOverlay
|
|
38
39
|
} from './styles'
|
|
39
40
|
import GoPrimitiveDot from '@meronex/icons/go/GoPrimitiveDot'
|
|
@@ -258,6 +259,19 @@ const BusinessControllerUI = (props) => {
|
|
|
258
259
|
<Skeleton width={100} />
|
|
259
260
|
)}
|
|
260
261
|
</div>
|
|
262
|
+
{isCustomerMode && (
|
|
263
|
+
<>
|
|
264
|
+
{business?.address ? (
|
|
265
|
+
<div>
|
|
266
|
+
<BusinessAddress>{business?.address}</BusinessAddress>
|
|
267
|
+
</div>
|
|
268
|
+
) : (
|
|
269
|
+
<div>
|
|
270
|
+
<Skeleton width={100} />
|
|
271
|
+
</div>
|
|
272
|
+
)}
|
|
273
|
+
</>
|
|
274
|
+
)}
|
|
261
275
|
<Medadata isCustomerMode={isCustomerMode} isSkeleton={isSkeleton}>
|
|
262
276
|
{!hideBusinessFee && orderType === 1 && (
|
|
263
277
|
<>
|
|
@@ -310,7 +310,7 @@ export const BusinessInfoItem = styled.div`
|
|
|
310
310
|
}
|
|
311
311
|
`
|
|
312
312
|
|
|
313
|
-
export const BusinessName = styled.
|
|
313
|
+
export const BusinessName = styled.h5`
|
|
314
314
|
font-size: 16px;
|
|
315
315
|
overflow: hidden;
|
|
316
316
|
text-overflow: ellipsis;
|
|
@@ -533,3 +533,14 @@ export const ClosedContainer = styled.div`
|
|
|
533
533
|
width: 100%;
|
|
534
534
|
line-break: anywhere;
|
|
535
535
|
`
|
|
536
|
+
|
|
537
|
+
export const BusinessAddress = styled.h6`
|
|
538
|
+
font-size: 14px;
|
|
539
|
+
overflow: hidden;
|
|
540
|
+
text-overflow: ellipsis;
|
|
541
|
+
white-space: nowrap;
|
|
542
|
+
margin-block-start: 0;
|
|
543
|
+
margin-block-end: 0;
|
|
544
|
+
font-weight: 400;
|
|
545
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
546
|
+
`
|
|
@@ -108,7 +108,6 @@ const CheckoutUI = (props) => {
|
|
|
108
108
|
} = props
|
|
109
109
|
|
|
110
110
|
const theme = useTheme()
|
|
111
|
-
const [ordering] = useApi()
|
|
112
111
|
const [{ options, loading }] = useOrder()
|
|
113
112
|
const [, t] = useLanguage()
|
|
114
113
|
const [{ parsePrice }] = useUtils()
|
|
@@ -134,7 +133,7 @@ const CheckoutUI = (props) => {
|
|
|
134
133
|
const [paymethodClicked, setPaymethodClicked] = useState(null)
|
|
135
134
|
const [productLoading, setProductLoading] = useState(false)
|
|
136
135
|
|
|
137
|
-
const shouldActivateOrderDetailModal =
|
|
136
|
+
const shouldActivateOrderDetailModal = isCustomerMode
|
|
138
137
|
const cardsMethods = ['stripe', 'credomatic']
|
|
139
138
|
const stripePaymethods = ['stripe', 'stripe_connect', 'stripe_redirect']
|
|
140
139
|
const businessConfigs = businessDetails?.business?.configs ?? []
|
/package/_bundles/{0.ordering-ui.d9252dcccf4ce0155028.js → 0.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.d9252dcccf4ce0155028.js → 1.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.d9252dcccf4ce0155028.js → 2.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.d9252dcccf4ce0155028.js → 4.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.d9252dcccf4ce0155028.js → 5.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.d9252dcccf4ce0155028.js → 6.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.d9252dcccf4ce0155028.js → 8.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.d9252dcccf4ce0155028.js → 9.ordering-ui.247fbb361bb31d72a262.js}
RENAMED
|
File without changes
|