ordering-ui-admin-external 1.8.5 → 1.10.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.
- package/_bundles/{ordering-ui-admin.66a745752c35fb204c80.js → ordering-ui-admin.e741ec718656ba6908ef.js} +2 -2
- package/_bundles/{ordering-ui-admin.66a745752c35fb204c80.js.LICENSE.txt → ordering-ui-admin.e741ec718656ba6908ef.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +2 -1
- package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +23 -5
- package/_modules/components/Delivery/DriversGroupDetails/index.js +6 -9
- package/_modules/components/Delivery/UsersList/index.js +2 -1
- package/_modules/components/MyProducts/OrderingWebsite/index.js +50 -8
- package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +2 -1
- package/_modules/components/Orders/OrderBill/index.js +17 -17
- package/_modules/components/Profile/ProfilePage/index.js +3 -1
- package/_modules/components/Profile/ProfilePage/styles.js +23 -6
- package/_modules/components/Settings/Deliverect/index.js +103 -0
- package/_modules/components/Settings/Deliverect/styles.js +115 -0
- package/_modules/components/Settings/DoordashConnect/index.js +1 -1
- package/_modules/components/Settings/IntegrationListing/index.js +41 -2
- package/_modules/components/Settings/IntegrationListing/styles.js +7 -4
- package/_modules/components/Settings/ItsaCheckmate/index.js +112 -0
- package/_modules/components/Settings/ItsaCheckmate/styles.js +118 -0
- package/_modules/components/Settings/PickerExpress/index.js +178 -0
- package/_modules/components/Settings/PickerExpress/styles.js +111 -0
- package/_modules/components/Settings/index.js +8 -1
- package/_modules/components/Shared/Modal/styles.js +1 -1
- package/_modules/components/SidebarMenu/index.js +14 -1
- package/_modules/components/SidebarMenu/styles.js +9 -3
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +95 -0
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/styles.js +43 -0
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +233 -0
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/styles.js +40 -0
- package/_modules/components/Stores/BusinessAdd/Images/index.js +181 -0
- package/_modules/components/Stores/BusinessAdd/Images/styles.js +42 -0
- package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +53 -0
- package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +31 -0
- package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +43 -0
- package/_modules/components/Stores/BusinessAdd/OtherDetails/styles.js +25 -0
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +48 -0
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/styles.js +31 -0
- package/_modules/components/Stores/BusinessAdd/Photos/index.js +174 -0
- package/_modules/components/Stores/BusinessAdd/Photos/styles.js +46 -0
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +48 -0
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/styles.js +24 -0
- package/_modules/components/Stores/BusinessAdd/Schedule/index.js +31 -0
- package/_modules/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
- package/_modules/components/Stores/BusinessAdd/index.js +170 -0
- package/_modules/components/Stores/BusinessAdd/styles.js +29 -0
- package/_modules/components/Stores/BusinessDeliveryDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessDeliveryPickupMore/index.js +4 -0
- package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessPickupDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessProductAddForm/index.js +5 -5
- package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +1 -6
- package/_modules/components/Stores/BusinessProductsListing/index.js +38 -14
- package/_modules/components/Stores/BusinessesList/index.js +5 -3
- package/_modules/components/Stores/BusinessesListing/index.js +51 -26
- package/_modules/components/Stores/BusinessesListing/styles.js +22 -15
- package/_modules/components/Stores/BusinessesListingHeader/index.js +6 -5
- package/_modules/components/Stores/ProductStartGuide/index.js +69 -0
- package/_modules/components/Stores/ProductStartGuide/styles.js +28 -0
- package/_modules/components/Stores/ProductStep/index.js +92 -0
- package/_modules/components/Stores/ProductStep/styles.js +18 -0
- package/_modules/components/Stores/RestaurantSelectGuide/index.js +104 -0
- package/_modules/components/Stores/RestaurantSelectGuide/styles.js +44 -0
- package/_modules/components/Stores/index.js +36 -1
- package/_modules/components/Users/ProfessionalAddForm/index.js +16 -3
- package/_modules/components/Users/ProfessionalList/index.js +2 -1
- package/_modules/components/Users/ProfessionalListing/index.js +2 -0
- package/_modules/components/Users/ProfessionalSchedule/Schedule/index.js +36 -0
- package/_modules/components/Users/ProfessionalSchedule/index.js +10 -120
- package/_modules/components/Users/ProfessionalSchedule/styles.js +4 -16
- package/_modules/components/Users/UserFormDetails/index.js +1 -1
- package/_modules/components/Users/UsersList/index.js +5 -4
- package/_modules/components/Users/UsersListingHeader/index.js +5 -2
- package/_modules/components/Users/UsersListingHeader/styles.js +18 -3
- package/_modules/index.js +36 -0
- package/index-template.js +64 -2
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
- package/src/components/BusinessIntelligence/UsersReviewList/index.js +1 -0
- package/src/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +20 -0
- package/src/components/Delivery/DriversGroupDetails/index.js +7 -7
- package/src/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
- package/src/components/Delivery/UsersList/index.js +1 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +45 -3
- package/src/components/OrderingProducts/OrderingProductsListing/index.js +1 -0
- package/src/components/Orders/OrderBill/index.js +20 -22
- package/src/components/Profile/ProfilePage/index.js +16 -2
- package/src/components/Profile/ProfilePage/styles.js +67 -1
- package/src/components/Settings/Deliverect/index.js +149 -0
- package/src/components/Settings/Deliverect/styles.js +344 -0
- package/src/components/Settings/DoordashConnect/index.js +1 -1
- package/src/components/Settings/IntegrationListing/index.js +47 -13
- package/src/components/Settings/IntegrationListing/styles.js +7 -1
- package/src/components/Settings/ItsaCheckmate/index.js +170 -0
- package/src/components/Settings/ItsaCheckmate/styles.js +366 -0
- package/src/components/Settings/PickerExpress/index.js +222 -0
- package/src/components/Settings/PickerExpress/styles.js +330 -0
- package/src/components/Settings/index.js +3 -1
- package/src/components/Shared/Modal/styles.js +1 -1
- package/src/components/SidebarMenu/index.js +21 -3
- package/src/components/SidebarMenu/styles.js +26 -0
- package/src/components/Stores/BusinessAdd/BusinessDetails/index.js +106 -0
- package/src/components/Stores/BusinessAdd/BusinessDetails/styles.js +107 -0
- package/src/components/Stores/BusinessAdd/DeliveryZone/index.js +250 -0
- package/src/components/Stores/BusinessAdd/DeliveryZone/styles.js +101 -0
- package/src/components/Stores/BusinessAdd/Images/index.js +168 -0
- package/src/components/Stores/BusinessAdd/Images/styles.js +94 -0
- package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +43 -0
- package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +70 -0
- package/src/components/Stores/BusinessAdd/OtherDetails/index.js +51 -0
- package/src/components/Stores/BusinessAdd/OtherDetails/styles.js +49 -0
- package/src/components/Stores/BusinessAdd/PaymentMethods/index.js +39 -0
- package/src/components/Stores/BusinessAdd/PaymentMethods/styles.js +46 -0
- package/src/components/Stores/BusinessAdd/Photos/index.js +156 -0
- package/src/components/Stores/BusinessAdd/Photos/styles.js +108 -0
- package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +46 -0
- package/src/components/Stores/BusinessAdd/ReceiveOrders/styles.js +69 -0
- package/src/components/Stores/BusinessAdd/Schedule/index.js +23 -0
- package/src/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
- package/src/components/Stores/BusinessAdd/index.js +184 -0
- package/src/components/Stores/BusinessAdd/styles.js +85 -0
- package/src/components/Stores/BusinessDeliveryDetails/styles.js +1 -0
- package/src/components/Stores/BusinessDeliveryPickupMore/index.js +9 -1
- package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +8 -10
- package/src/components/Stores/BusinessPickupDetails/styles.js +1 -0
- package/src/components/Stores/BusinessProductAddForm/index.js +13 -11
- package/src/components/Stores/BusinessProductsCategoyInfo/index.js +4 -7
- package/src/components/Stores/BusinessProductsListing/index.js +20 -0
- package/src/components/Stores/BusinessesList/index.js +4 -2
- package/src/components/Stores/BusinessesListing/index.js +101 -67
- package/src/components/Stores/BusinessesListing/styles.js +36 -0
- package/src/components/Stores/BusinessesListingHeader/index.js +58 -51
- package/src/components/Stores/ProductStartGuide/index.js +60 -0
- package/src/components/Stores/ProductStartGuide/styles.js +62 -0
- package/src/components/Stores/ProductStep/index.js +84 -0
- package/src/components/Stores/ProductStep/styles.js +29 -0
- package/src/components/Stores/RestaurantSelectGuide/index.js +119 -0
- package/src/components/Stores/RestaurantSelectGuide/styles.js +150 -0
- package/src/components/Stores/index.js +11 -1
- package/src/components/Users/ProfessionalAddForm/index.js +11 -1
- package/src/components/Users/ProfessionalList/index.js +1 -0
- package/src/components/Users/ProfessionalListing/index.js +2 -0
- package/src/components/Users/ProfessionalSchedule/Schedule/index.js +32 -0
- package/src/components/Users/ProfessionalSchedule/index.js +9 -49
- package/src/components/Users/ProfessionalSchedule/styles.js +0 -49
- package/src/components/Users/UserFormDetails/index.js +1 -1
- package/src/components/Users/UsersList/index.js +4 -2
- package/src/components/Users/UsersListingHeader/index.js +17 -2
- package/src/components/Users/UsersListingHeader/styles.js +59 -0
- package/src/index.js +14 -2
- package/template/app.js +4 -0
- package/template/assets/images/dummies/no-businesses.png +0 -0
- package/template/assets/images/import-menu.png +0 -0
- package/template/assets/images/imported-menu.png +0 -0
- package/template/assets/images/picker-express.png +0 -0
- package/template/components/ListenPageChanges/index.js +1 -0
- package/template/config.json +1 -1
- package/template/helmetdata.json +7 -0
- package/template/pages/BusinessAdd/index.js +11 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const PickerExpressContainer = styled.div`
|
|
4
|
+
padding: 26px 20px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
width: 100%;
|
|
7
|
+
overflow-x: hidden;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
@media (min-width: 768px) {
|
|
11
|
+
padding: 26px 40px;
|
|
12
|
+
}
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
export const Header = styled.div`
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
margin-bottom: 30px;
|
|
19
|
+
|
|
20
|
+
${props => props.theme?.rtl ? css`
|
|
21
|
+
margin-left: 35px;
|
|
22
|
+
` : css`
|
|
23
|
+
margin-right: 35px;
|
|
24
|
+
`}
|
|
25
|
+
|
|
26
|
+
h1 {
|
|
27
|
+
font-size: 20px;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
margin: 0px;
|
|
30
|
+
text-transform: capitalize;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
button {
|
|
34
|
+
line-height: 12px;
|
|
35
|
+
height: 16px;
|
|
36
|
+
font-size: 10px;
|
|
37
|
+
margin-left: 15px;
|
|
38
|
+
padding: 2px 8px;
|
|
39
|
+
border-radius: 50px;
|
|
40
|
+
${props => props.theme.rtl && css`
|
|
41
|
+
margin-right: 15px;
|
|
42
|
+
margin-left: 0px;
|
|
43
|
+
`}
|
|
44
|
+
}
|
|
45
|
+
`
|
|
46
|
+
|
|
47
|
+
export const ApiKeysListTable = styled.table`
|
|
48
|
+
width: 100%;
|
|
49
|
+
margin-top: 25px;
|
|
50
|
+
|
|
51
|
+
thead {
|
|
52
|
+
border-bottom: 1px solid ${props => props.theme.colors.secundaryLight};
|
|
53
|
+
th {
|
|
54
|
+
padding: 10px 0;
|
|
55
|
+
&:last-child {
|
|
56
|
+
padding-left: 20px;
|
|
57
|
+
padding-right: 20px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
tr {
|
|
62
|
+
width: 100%;
|
|
63
|
+
th,
|
|
64
|
+
td {
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
word-break: break-all;
|
|
67
|
+
|
|
68
|
+
&:last-child {
|
|
69
|
+
width: 100px;
|
|
70
|
+
> div {
|
|
71
|
+
padding-left: 20px;
|
|
72
|
+
padding-right: 20px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
tbody {
|
|
79
|
+
border-bottom: 1px solid ${props => props.theme.colors.borderColor};
|
|
80
|
+
td {
|
|
81
|
+
padding-top: 9px;
|
|
82
|
+
padding-bottom: 9px;
|
|
83
|
+
|
|
84
|
+
&:last-child {
|
|
85
|
+
> div {
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: flex-end;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`
|
|
93
|
+
|
|
94
|
+
export const DropdownButtonWrapper = styled.div`
|
|
95
|
+
${props => props?.theme?.rtl ? css`
|
|
96
|
+
border-right: 1px solid ${props => props.theme.colors.borderColor};
|
|
97
|
+
` : css`
|
|
98
|
+
border-left: 1px solid ${props => props.theme.colors.borderColor};
|
|
99
|
+
`}
|
|
100
|
+
padding: 5px 20px;
|
|
101
|
+
button {
|
|
102
|
+
background: transparent !important;
|
|
103
|
+
border: none;
|
|
104
|
+
padding: 0px;
|
|
105
|
+
&:active,
|
|
106
|
+
&:focus {
|
|
107
|
+
border-color: unset !important;
|
|
108
|
+
box-shadow: none !important;
|
|
109
|
+
}
|
|
110
|
+
svg {
|
|
111
|
+
color: ${props => props.theme.colors.headingColor};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:after {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.show {
|
|
120
|
+
button {
|
|
121
|
+
background: ${props => props.theme.colors.secundary} !important;
|
|
122
|
+
border-color: unset !important;
|
|
123
|
+
box-shadow: none !important;
|
|
124
|
+
}
|
|
125
|
+
>div {
|
|
126
|
+
border: 1px solid ${props => props.theme.colors.borderColor};
|
|
127
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
> div {
|
|
132
|
+
> div {
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
.dropdown-item {
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
color: ${props => props.theme.colors.headingColor};
|
|
137
|
+
}
|
|
138
|
+
.dropdown-item:last-child {
|
|
139
|
+
color: #E63757;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
`
|
|
144
|
+
export const AddNewButton = styled.div`
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
color: ${props => props.theme.colors.lightGray};
|
|
148
|
+
margin: 20px 0;
|
|
149
|
+
width: fit-content;
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
color: ${props => props.theme.colors.primary};
|
|
153
|
+
}
|
|
154
|
+
`
|
|
155
|
+
|
|
156
|
+
export const AllSetting = styled.div`
|
|
157
|
+
user-select: none;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
margin-top: 36px;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
span {
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
font-size: 14px;
|
|
164
|
+
color: ${props => props.theme.colors.primary};
|
|
165
|
+
}
|
|
166
|
+
svg {
|
|
167
|
+
color: ${props => props.theme.colors.primary};
|
|
168
|
+
margin-left: 5px;
|
|
169
|
+
transition: 0.2s linear;
|
|
170
|
+
${props => props.theme.rtl && css`
|
|
171
|
+
margin-right: 5px;
|
|
172
|
+
margin-left: 0px;
|
|
173
|
+
`}
|
|
174
|
+
}
|
|
175
|
+
&:hover {
|
|
176
|
+
svg {
|
|
177
|
+
transform: translateX(3px);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`
|
|
181
|
+
|
|
182
|
+
export const Description = styled.p`
|
|
183
|
+
margin-top: 40px;
|
|
184
|
+
font-size: 14px;
|
|
185
|
+
margin-bottom: 0px;
|
|
186
|
+
text-align: justify;
|
|
187
|
+
|
|
188
|
+
@media (min-width: 768px) {
|
|
189
|
+
text-align: initial;
|
|
190
|
+
}
|
|
191
|
+
`
|
|
192
|
+
|
|
193
|
+
export const CategoryExtraContent = styled.div`
|
|
194
|
+
position: relative;
|
|
195
|
+
padding: 26px 26px 60px 26px;
|
|
196
|
+
box-sizing: border-box;
|
|
197
|
+
width: 100%;
|
|
198
|
+
overflow: auto;
|
|
199
|
+
|
|
200
|
+
${props => props.theme?.rtl ? css`
|
|
201
|
+
border-right: 1px solid #E9ECEF;
|
|
202
|
+
` : css`
|
|
203
|
+
border-left: 1px solid #E9ECEF;
|
|
204
|
+
`}
|
|
205
|
+
|
|
206
|
+
> button {
|
|
207
|
+
z-index: 100;
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 25px;
|
|
210
|
+
${props => props.theme?.rtl ? css`
|
|
211
|
+
left: 20px;
|
|
212
|
+
` : css`
|
|
213
|
+
right: 20px;
|
|
214
|
+
`}
|
|
215
|
+
}
|
|
216
|
+
`
|
|
217
|
+
|
|
218
|
+
export const Container = styled.div`
|
|
219
|
+
display: flex;
|
|
220
|
+
width: 0;
|
|
221
|
+
position: fixed;
|
|
222
|
+
box-shadow: -4px 0px 7px #ccc;
|
|
223
|
+
|
|
224
|
+
${({ isDriverOrders }) => isDriverOrders && css`
|
|
225
|
+
position: absolute;
|
|
226
|
+
box-shadow: none;
|
|
227
|
+
|
|
228
|
+
${props => props.theme?.rtl ? css`
|
|
229
|
+
border-right: 1px solid #CCC;
|
|
230
|
+
` : css`
|
|
231
|
+
border-left: 1px solid #CCC;
|
|
232
|
+
`}
|
|
233
|
+
`}
|
|
234
|
+
background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
|
|
235
|
+
height: calc(var(--vh, 1vh) * 100);
|
|
236
|
+
top: 0px;
|
|
237
|
+
z-index: 1001;
|
|
238
|
+
overflow-x: hidden;
|
|
239
|
+
transition: 0.3s;
|
|
240
|
+
|
|
241
|
+
${props => props.theme?.rtl ? css`
|
|
242
|
+
left: 0px;
|
|
243
|
+
` : css`
|
|
244
|
+
right: 0px;
|
|
245
|
+
`}
|
|
246
|
+
@media print {
|
|
247
|
+
box-shadow: none;
|
|
248
|
+
}
|
|
249
|
+
`
|
|
250
|
+
|
|
251
|
+
export const DescriptionHeader = styled.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
justify-content: flex-end;
|
|
254
|
+
align-items: center;
|
|
255
|
+
`
|
|
256
|
+
|
|
257
|
+
export const HeaderIcons = styled.div`
|
|
258
|
+
display: flex;
|
|
259
|
+
position: absolute;
|
|
260
|
+
top: 25px;
|
|
261
|
+
right: 20px;
|
|
262
|
+
|
|
263
|
+
> button:first-child {
|
|
264
|
+
${props => props.theme?.rtl ? css`
|
|
265
|
+
margin-left: 8px;
|
|
266
|
+
` : css`
|
|
267
|
+
margin-right: 8px;
|
|
268
|
+
`}
|
|
269
|
+
}
|
|
270
|
+
`
|
|
271
|
+
|
|
272
|
+
export const SettingListConatiner = styled.div`
|
|
273
|
+
width: 100%;
|
|
274
|
+
margin: 20px 0;
|
|
275
|
+
border-bottom: 1px solid #E9ECEF;
|
|
276
|
+
`
|
|
277
|
+
|
|
278
|
+
export const Tab = styled.div`
|
|
279
|
+
user-select: none;
|
|
280
|
+
padding: 10px 0px;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
color: ${props => props.theme.colors?.headingColor};
|
|
283
|
+
font-size: 14px;
|
|
284
|
+
white-space: nowrap;
|
|
285
|
+
${props => props.theme?.rtl ? css`
|
|
286
|
+
margin-left: 30px;
|
|
287
|
+
` : css`
|
|
288
|
+
margin-right: 30px;
|
|
289
|
+
`}
|
|
290
|
+
|
|
291
|
+
${({ active }) => active && css`
|
|
292
|
+
border-bottom: 2px solid;
|
|
293
|
+
font-weight: 500;
|
|
294
|
+
`}
|
|
295
|
+
|
|
296
|
+
${({ active }) => !active && css`
|
|
297
|
+
color: #909BA9;
|
|
298
|
+
`}
|
|
299
|
+
`
|
|
300
|
+
|
|
301
|
+
export const Paragraph = styled.div`
|
|
302
|
+
margin-top: 20px;
|
|
303
|
+
h2{
|
|
304
|
+
font-size: 16px;
|
|
305
|
+
}
|
|
306
|
+
p{
|
|
307
|
+
white-space: pre-line;
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
margin: 0;
|
|
310
|
+
}
|
|
311
|
+
span {
|
|
312
|
+
font-size: 12px;
|
|
313
|
+
}
|
|
314
|
+
a {
|
|
315
|
+
text-decoration: underline !important;
|
|
316
|
+
cursor: pointer;
|
|
317
|
+
font-size: 12px;
|
|
318
|
+
color: ${props => props.theme.colors.primary} !important;
|
|
319
|
+
}
|
|
320
|
+
.bold {
|
|
321
|
+
font-weight: 600;
|
|
322
|
+
}
|
|
323
|
+
`
|
|
324
|
+
|
|
325
|
+
export const PurchaseWrapper = styled.div`
|
|
326
|
+
button {
|
|
327
|
+
border-radius: 5px;
|
|
328
|
+
}
|
|
329
|
+
margin-top: 15px;
|
|
330
|
+
`
|
|
@@ -29,6 +29,7 @@ import { InsertVideo } from './InsertVideo'
|
|
|
29
29
|
import { InsertImage } from './InsertImage'
|
|
30
30
|
import { LanguageTransSpread } from './LanguageTransSpread'
|
|
31
31
|
import { LanguageTransTable } from './LanguageTransTable'
|
|
32
|
+
import { MultiCountrySettings } from './MultiCountrySettings'
|
|
32
33
|
|
|
33
34
|
export {
|
|
34
35
|
Cms,
|
|
@@ -61,5 +62,6 @@ export {
|
|
|
61
62
|
InsertVideo,
|
|
62
63
|
InsertImage,
|
|
63
64
|
LanguageTransSpread,
|
|
64
|
-
LanguageTransTable
|
|
65
|
+
LanguageTransTable,
|
|
66
|
+
MultiCountrySettings
|
|
65
67
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useContext } from 'react'
|
|
1
|
+
import React, { useEffect, useContext, useState } from 'react'
|
|
2
2
|
import { useLocation } from 'react-router-dom'
|
|
3
3
|
import { LogoutButton } from '../LogoutButton'
|
|
4
4
|
import {
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
Cart3,
|
|
20
20
|
Cash,
|
|
21
21
|
BagCheck,
|
|
22
|
-
CloudDownload
|
|
22
|
+
CloudDownload,
|
|
23
|
+
X as CloseIcon
|
|
23
24
|
} from 'react-bootstrap-icons'
|
|
24
25
|
import { useTheme } from 'styled-components'
|
|
25
26
|
import { SidebarMenu as SidebarMenuController, useEvent, useLanguage, useSession, useConfig, useApi } from 'ordering-components-admin-external'
|
|
@@ -41,7 +42,8 @@ import {
|
|
|
41
42
|
SubMenu,
|
|
42
43
|
LanguageSelectorContainer,
|
|
43
44
|
LogoWrapper,
|
|
44
|
-
PoweredWrapper
|
|
45
|
+
PoweredWrapper,
|
|
46
|
+
MobileMessage
|
|
45
47
|
} from './styles'
|
|
46
48
|
|
|
47
49
|
const SidebarMenuUI = (props) => {
|
|
@@ -58,6 +60,8 @@ const SidebarMenuUI = (props) => {
|
|
|
58
60
|
const windowSize = useWindowSize()
|
|
59
61
|
const isPoweredByOrderingModule = configs?.powered_by_ordering_module?.value
|
|
60
62
|
|
|
63
|
+
const [showMessage, setShowMessage] = useState(false)
|
|
64
|
+
|
|
61
65
|
const ordersSubMenus = [
|
|
62
66
|
{
|
|
63
67
|
id: 1,
|
|
@@ -359,8 +363,22 @@ const SidebarMenuUI = (props) => {
|
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
|
|
366
|
+
useEffect(() => {
|
|
367
|
+
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
|
368
|
+
setShowMessage(true)
|
|
369
|
+
}
|
|
370
|
+
}, [])
|
|
371
|
+
|
|
362
372
|
return (
|
|
363
373
|
<>
|
|
374
|
+
{showMessage && (
|
|
375
|
+
<MobileMessage>
|
|
376
|
+
<div>
|
|
377
|
+
<CloseIcon onClick={() => setShowMessage(false)} />
|
|
378
|
+
{t('FOR_THE_BEST_EXPERIENCE_WHILE_SETTING_UP', 'For the best experience while setting up your project, we recommend using a computer.')}
|
|
379
|
+
</div>
|
|
380
|
+
</MobileMessage>
|
|
381
|
+
)}
|
|
364
382
|
<SidebarContainer
|
|
365
383
|
id='side_bar'
|
|
366
384
|
isCollapse={isCollapse}
|
|
@@ -240,3 +240,29 @@ export const PoweredWrapper = styled.div`
|
|
|
240
240
|
font-size: 14px;
|
|
241
241
|
font-weight: 600;
|
|
242
242
|
`
|
|
243
|
+
|
|
244
|
+
export const MobileMessage = styled.div`
|
|
245
|
+
position: fixed;
|
|
246
|
+
top: 100px;
|
|
247
|
+
left: calc(50% - 130px);
|
|
248
|
+
z-index: 999;
|
|
249
|
+
background: ${props => props.theme.colors.backgroundInfo};
|
|
250
|
+
border: 1px solid ${props => props.theme.colors.primary};
|
|
251
|
+
box-sizing: border-box;
|
|
252
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
|
|
253
|
+
border-radius: 7.6px;
|
|
254
|
+
width: 260px;
|
|
255
|
+
> div {
|
|
256
|
+
padding: 15px 15px 10px 15px;
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
line-height: 18px;
|
|
259
|
+
position: relative;
|
|
260
|
+
> svg {
|
|
261
|
+
position: absolute;
|
|
262
|
+
top: 3px;
|
|
263
|
+
right: 3px;
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
font-size: 21px;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
`
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage, useConfig, GoogleAutocompleteInput, GoogleMapsMap } from 'ordering-components-admin-external'
|
|
3
|
+
import {
|
|
4
|
+
BusinessDetailsContainer,
|
|
5
|
+
ContentWrapper,
|
|
6
|
+
FormControl,
|
|
7
|
+
WrapperMap,
|
|
8
|
+
GoogleMapContainer
|
|
9
|
+
} from './styles'
|
|
10
|
+
import { Input } from '../../../../styles'
|
|
11
|
+
import { stringToSlug } from '../../../../utils'
|
|
12
|
+
|
|
13
|
+
export const BusinessDetails = (props) => {
|
|
14
|
+
const {
|
|
15
|
+
formState,
|
|
16
|
+
handleChangeAddress,
|
|
17
|
+
handleChangeInput,
|
|
18
|
+
handleChangeCenter
|
|
19
|
+
} = props
|
|
20
|
+
|
|
21
|
+
const [, t] = useLanguage()
|
|
22
|
+
const [{ configs }] = useConfig()
|
|
23
|
+
|
|
24
|
+
const googleMapsApiKey = configs?.google_maps_api_key?.value
|
|
25
|
+
const googleMapsControls = {
|
|
26
|
+
defaultZoom: 15,
|
|
27
|
+
zoomControl: true,
|
|
28
|
+
streetViewControl: false,
|
|
29
|
+
fullscreenControl: false,
|
|
30
|
+
mapTypeId: 'roadmap', // 'roadmap', 'satellite', 'hybrid', 'terrain'
|
|
31
|
+
mapTypeControl: false,
|
|
32
|
+
mapTypeControlOptions: {
|
|
33
|
+
mapTypeIds: ['roadmap', 'satellite']
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const defaultPosition = { lat: 40.77473399999999, lng: -73.9653844 }
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<BusinessDetailsContainer>
|
|
41
|
+
<h2>{t('BUSINESS_DETAILS', 'Business details')}</h2>
|
|
42
|
+
<ContentWrapper>
|
|
43
|
+
<FormControl>
|
|
44
|
+
<label>{t('BUSINESS_NAME', 'Business Name')}</label>
|
|
45
|
+
<Input
|
|
46
|
+
name='name'
|
|
47
|
+
placeholder={t('NAME', 'Name')}
|
|
48
|
+
defaultValue={formState?.changes?.name ?? ''}
|
|
49
|
+
onChange={e => {
|
|
50
|
+
handleChangeInput([{ name: 'name', value: e.target.value }, { name: 'slug', value: stringToSlug(e.target.value) }], true)
|
|
51
|
+
}}
|
|
52
|
+
/>
|
|
53
|
+
</FormControl>
|
|
54
|
+
<FormControl>
|
|
55
|
+
<label>{t('ADDRESS', 'Address')}</label>
|
|
56
|
+
<GoogleAutocompleteInput
|
|
57
|
+
name='address'
|
|
58
|
+
className='input-autocomplete'
|
|
59
|
+
apiKey={googleMapsApiKey}
|
|
60
|
+
placeholder={t('ADDRESS', 'Address')}
|
|
61
|
+
onChangeAddress={(e) => {
|
|
62
|
+
handleChangeAddress(e)
|
|
63
|
+
}}
|
|
64
|
+
onChange={(e) => {
|
|
65
|
+
handleChangeInput(e)
|
|
66
|
+
}}
|
|
67
|
+
defaultValue={formState?.changes?.address ?? ''}
|
|
68
|
+
autoComplete='new-password'
|
|
69
|
+
countryCode={configs?.country_autocomplete?.value || '*'}
|
|
70
|
+
/>
|
|
71
|
+
</FormControl>
|
|
72
|
+
<FormControl>
|
|
73
|
+
<label>{t('ZIPCODE', 'Zipcode')}</label>
|
|
74
|
+
<Input
|
|
75
|
+
name='zipcode'
|
|
76
|
+
placeholder={t('ZIPCODE', 'Zipcode')}
|
|
77
|
+
defaultValue={formState?.changes?.zipcode ?? ''}
|
|
78
|
+
onChange={handleChangeInput}
|
|
79
|
+
/>
|
|
80
|
+
</FormControl>
|
|
81
|
+
<GoogleMapContainer>
|
|
82
|
+
<label>{t('GOOGLE_PLACE_ID', 'Google place ID')}</label>
|
|
83
|
+
<p>{googleMapsApiKey}</p>
|
|
84
|
+
<WrapperMap>
|
|
85
|
+
<GoogleMapsMap
|
|
86
|
+
apiKey={configs?.google_maps_api_key?.value}
|
|
87
|
+
location={formState?.changes?.location ?? defaultPosition}
|
|
88
|
+
mapControls={googleMapsControls}
|
|
89
|
+
handleChangeCenter={handleChangeCenter}
|
|
90
|
+
isFitCenter
|
|
91
|
+
/>
|
|
92
|
+
</WrapperMap>
|
|
93
|
+
</GoogleMapContainer>
|
|
94
|
+
<FormControl noBottom>
|
|
95
|
+
<label>{t('INT_NUMBER', 'Int. number')}</label>
|
|
96
|
+
<Input
|
|
97
|
+
name='cellphone'
|
|
98
|
+
placeholder={t('INT_NUMBER', 'Int. number')}
|
|
99
|
+
defaultValue={formState?.changes?.cellphone ?? ''}
|
|
100
|
+
onChange={handleChangeInput}
|
|
101
|
+
/>
|
|
102
|
+
</FormControl>
|
|
103
|
+
</ContentWrapper>
|
|
104
|
+
</BusinessDetailsContainer>
|
|
105
|
+
)
|
|
106
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
import { darken } from 'polished'
|
|
3
|
+
|
|
4
|
+
export const BusinessDetailsContainer = styled.div`
|
|
5
|
+
h2 {
|
|
6
|
+
font-weight: 600;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
line-height: 24px;
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
`
|
|
12
|
+
|
|
13
|
+
export const ContentWrapper = styled.div`
|
|
14
|
+
margin-top: 23px;
|
|
15
|
+
`
|
|
16
|
+
|
|
17
|
+
export const FormControl = styled.div`
|
|
18
|
+
margin-bottom: 23px;
|
|
19
|
+
label {
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
line-height: 24px;
|
|
23
|
+
margin-bottom: 12px;
|
|
24
|
+
}
|
|
25
|
+
input {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 44px;
|
|
28
|
+
}
|
|
29
|
+
.input-autocomplete {
|
|
30
|
+
width: 100%;
|
|
31
|
+
background: ${props => props.theme.colors?.backgroundPage || '#FFF'};
|
|
32
|
+
border: 1px solid ${props => props.theme.colors.borderColor};
|
|
33
|
+
border-radius: 8px;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
padding: 10px 15px;
|
|
36
|
+
outline: none;
|
|
37
|
+
::placeholder {
|
|
38
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:-ms-input-placeholder {
|
|
42
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::-ms-input-placeholder { /* Microsoft Edge */
|
|
46
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
47
|
+
}
|
|
48
|
+
&:focus {
|
|
49
|
+
border-color: ${() => darken(0.07, '#CCC')};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
${({ noBottom }) => noBottom && css`
|
|
54
|
+
margin-bottom: 0px;
|
|
55
|
+
`}
|
|
56
|
+
`
|
|
57
|
+
|
|
58
|
+
export const GoogleMapContainer = styled.div`
|
|
59
|
+
margin-bottom: 23px;
|
|
60
|
+
label {
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
line-height: 24px;
|
|
64
|
+
margin-bottom: 12px;
|
|
65
|
+
margin-bottom: 9px;
|
|
66
|
+
}
|
|
67
|
+
p {
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 24px;
|
|
71
|
+
margin: 0;
|
|
72
|
+
color: ${props => props.theme.colors.lightGray};
|
|
73
|
+
}
|
|
74
|
+
`
|
|
75
|
+
|
|
76
|
+
export const WrapperMap = styled.div`
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 150px;
|
|
79
|
+
margin-top: 30px;
|
|
80
|
+
|
|
81
|
+
> div {
|
|
82
|
+
position: relative !important;
|
|
83
|
+
width: 100% !important;
|
|
84
|
+
height: 100% !important;
|
|
85
|
+
border-radius: 8px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (min-width: 768px) {
|
|
89
|
+
height: 200px;
|
|
90
|
+
}
|
|
91
|
+
`
|
|
92
|
+
|
|
93
|
+
export const FormGroup = styled.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
> div {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (min-width: 576px) {
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
> div {
|
|
104
|
+
width: 48%;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`
|