ordering-ui-external 11.0.2 → 11.0.3

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/_bundles/{7.ordering-ui.2a82dc682c4cb5600d46.js → 7.ordering-ui.e2b473c389c824f5b4dd.js} +1 -1
  2. package/_bundles/{ordering-ui.2a82dc682c4cb5600d46.js → ordering-ui.e2b473c389c824f5b4dd.js} +2 -2
  3. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +15 -3
  4. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +7 -3
  5. package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +1 -1
  6. package/_modules/themes/five/src/components/BusinessController/index.js +11 -4
  7. package/_modules/themes/five/src/components/BusinessController/styles.js +77 -64
  8. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
  9. package/_modules/themes/five/src/components/HighestRated/index.js +1 -1
  10. package/package.json +2 -2
  11. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +19 -4
  12. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +20 -1
  13. package/src/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +1 -1
  14. package/src/themes/five/src/components/BusinessController/index.js +17 -8
  15. package/src/themes/five/src/components/BusinessController/styles.js +47 -13
  16. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
  17. package/src/themes/five/src/components/HighestRated/index.js +1 -1
  18. /package/_bundles/{0.ordering-ui.2a82dc682c4cb5600d46.js → 0.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  19. /package/_bundles/{1.ordering-ui.2a82dc682c4cb5600d46.js → 1.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  20. /package/_bundles/{2.ordering-ui.2a82dc682c4cb5600d46.js → 2.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  21. /package/_bundles/{4.ordering-ui.2a82dc682c4cb5600d46.js → 4.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  22. /package/_bundles/{5.ordering-ui.2a82dc682c4cb5600d46.js → 5.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  23. /package/_bundles/{6.ordering-ui.2a82dc682c4cb5600d46.js → 6.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  24. /package/_bundles/{7.ordering-ui.2a82dc682c4cb5600d46.js.LICENSE.txt → 7.ordering-ui.e2b473c389c824f5b4dd.js.LICENSE.txt} +0 -0
  25. /package/_bundles/{8.ordering-ui.2a82dc682c4cb5600d46.js → 8.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  26. /package/_bundles/{9.ordering-ui.2a82dc682c4cb5600d46.js → 9.ordering-ui.e2b473c389c824f5b4dd.js} +0 -0
  27. /package/_bundles/{ordering-ui.2a82dc682c4cb5600d46.js.LICENSE.txt → ordering-ui.e2b473c389c824f5b4dd.js.LICENSE.txt} +0 -0
@@ -28,11 +28,15 @@ export const ContainerCard = styled.div`
28
28
  padding: 10px 30px;
29
29
  }
30
30
  `}
31
-
31
+
32
32
  ${({ firstCard }) => firstCard && css`
33
33
  margin-left: 0;
34
34
  `}
35
-
35
+
36
+ ${({ disabled }) => disabled && css`
37
+ cursor: not-allowed;
38
+ `}
39
+
36
40
  ${({ businessRows }) => css`
37
41
  width: calc(100% - 40px);
38
42
 
@@ -52,13 +56,17 @@ export const ContainerCard = styled.div`
52
56
  width: ${() => businessRows === 4 ? 'calc(25% - 40px)' : businessRows === 3 ? 'calc(33% - 40px)' : 'calc(50% - 40px)'};
53
57
  }
54
58
  `}
55
-
59
+
56
60
  `
57
61
 
58
62
  export const WrapperBusinessCard = styled.div`
59
63
  height: 100%;
60
64
  position: relative;
61
65
  cursor: ${({ isSkeleton }) => isSkeleton ? 'default' : 'pointer'};
66
+ ${({ disabled }) => disabled && css`
67
+ pointer-events: none;
68
+ cursor: not-allowed;
69
+ `}
62
70
  `
63
71
 
64
72
  export const BusinessHero = styled.div`
@@ -84,21 +92,27 @@ const BusinessHeaderStyled = styled.div`
84
92
  align-items: center;
85
93
  border-radius: 7.6px 7.6px 0px 0px;
86
94
 
87
- h1 {
95
+ h1, h2 {
88
96
  color: #FFF;
89
97
  opacity: 0.7;
90
98
  }
91
99
 
92
- .closed {
100
+ .closed, .disabled {
93
101
  text-transform: uppercase;
94
102
  font-weight: 600;
95
- font-size: 28px;
96
- line-height: 42px;
103
+ font-size: 22px;
104
+ line-height: 35px;
97
105
  opacity: 1;
98
106
  position: relative;
99
107
  z-index: 2;
100
108
  }
101
109
 
110
+ .disabled {
111
+ font-size: 16px;
112
+ text-align: center;
113
+
114
+ }
115
+
102
116
  @media (min-width: 481px) {
103
117
  min-height: 165px;
104
118
  }
@@ -119,6 +133,20 @@ export const BusinessHeader = (props) => {
119
133
  )
120
134
  }
121
135
 
136
+ export const BusinessHeaderClosedContainer = styled.div`
137
+ display: flex;
138
+ flex-direction: column;
139
+ justify-content: center;
140
+ align-items: center;
141
+ width: 100%;
142
+ div {
143
+ text-align: center;
144
+ width: 100%;
145
+ line-break: anywhere;
146
+ }
147
+
148
+ `
149
+
122
150
  export const BusinessTags = styled.div`
123
151
  display: flex;
124
152
  position: absolute;
@@ -169,11 +197,13 @@ export const BusinessContent = styled.div`
169
197
  justify-content: space-between;
170
198
  max-height: 135px;
171
199
  padding: 0 20px 20px 20px;
172
- height: calc(100% - 145px);
200
+ ${({ isCustomerMode }) => !isCustomerMode && css`
201
+ height: calc(100% - 145px);
173
202
 
174
- @media (min-width: 481px) {
175
- height: calc(100% - 165px);
176
- }
203
+ @media (min-width: 481px) {
204
+ height: calc(100% - 165px);
205
+ }
206
+ `}
177
207
  `
178
208
 
179
209
  export const WrapperBusinessLogo = styled.div`
@@ -246,7 +276,11 @@ export const BusinessLogo = (props) => {
246
276
 
247
277
  export const BusinessInfo = styled.div`
248
278
  display: flex;
249
- width: 100%;
279
+ ${({ isCustomerMode }) => isCustomerMode ? css`
280
+ width: 90%;
281
+ ` : css`
282
+ width: 100%;
283
+ `}
250
284
  `
251
285
 
252
286
  export const BusinessInfoItem = styled.div`
@@ -306,7 +340,7 @@ export const Medadata = styled.div`
306
340
  font-size: 12px;
307
341
  color: #909BA9;
308
342
  flex-wrap: wrap;
309
-
343
+
310
344
 
311
345
  ${({ isCustomerMode }) => isCustomerMode && css`
312
346
  > div {
@@ -483,7 +483,7 @@ const BusinessesListingUI = (props) => {
483
483
  key={business.id}
484
484
  className='card'
485
485
  business={business}
486
- isBusinessOpen={business.open}
486
+ isBusinessOpen={business.open && business?.enabled !== false}
487
487
  handleCustomClick={handleBusinessClick}
488
488
  orderType={orderState?.options?.type}
489
489
  isCustomLayout={isCustomLayout}
@@ -103,7 +103,7 @@ const HighestRatedUI = (props) => {
103
103
  key={business.id}
104
104
  className='card'
105
105
  business={business}
106
- isBusinessOpen={business.open}
106
+ isBusinessOpen={business.open && business?.enabled !== false}
107
107
  handleCustomClick={handleBusinessClick}
108
108
  orderType={orderState?.options?.type}
109
109
  isCustomLayout={isCustomLayout}