ordering-ui-admin-external 1.43.20 → 1.43.22
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.93ac710b95858715130d.js → ordering-ui-admin.3f67563d0aa434e9729f.js} +2 -2
- package/_modules/components/Delivery/DriverGroupSelectorHeader/index.js +130 -0
- package/_modules/components/Delivery/DriverGroupSelectorHeader/styles.js +32 -0
- package/_modules/components/Delivery/DriversGroupGeneralForm/index.js +14 -5
- package/_modules/components/Delivery/DriversTimeDisplay/DriverBlockAddForm.js +212 -0
- package/_modules/components/Delivery/DriversTimeDisplay/UserList.js +226 -0
- package/_modules/components/Delivery/DriversTimeDisplay/index.js +485 -0
- package/_modules/components/Delivery/DriversTimeDisplay/styles.js +198 -0
- package/_modules/components/Delivery/index.js +8 -1
- package/_modules/components/Settings/SettingsLogs/index.js +28 -16
- package/_modules/components/SidebarMenu/index.js +30 -24
- package/_modules/components/Stores/BusinessDetails/index.js +2 -0
- package/_modules/components/Stores/BusinessSummary/index.js +16 -1
- package/_modules/index.js +6 -0
- package/_modules/utils/index.js +4 -2
- package/package.json +3 -2
- package/src/components/Delivery/DriverGroupSelectorHeader/index.js +124 -0
- package/src/components/Delivery/DriverGroupSelectorHeader/styles.js +97 -0
- package/src/components/Delivery/DriversGroupGeneralForm/index.js +12 -2
- package/src/components/Delivery/DriversTimeDisplay/DriverBlockAddForm.js +271 -0
- package/src/components/Delivery/DriversTimeDisplay/UserList.js +292 -0
- package/src/components/Delivery/DriversTimeDisplay/index.js +535 -0
- package/src/components/Delivery/DriversTimeDisplay/styles.js +853 -0
- package/src/components/Delivery/index.js +2 -0
- package/src/components/Settings/SettingsLogs/index.js +13 -0
- package/src/components/SidebarMenu/index.js +9 -1
- package/src/components/Stores/BusinessDetails/index.js +2 -0
- package/src/components/Stores/BusinessSummary/index.js +29 -8
- package/src/index.js +2 -0
- package/src/utils/index.js +54 -0
- package/template/app.js +4 -1
- package/template/components/ListenPageChanges/index.js +1 -0
- package/template/helmetdata.json +7 -0
- package/template/pages/DriverTimeDisplay/index.js +12 -0
- /package/_bundles/{ordering-ui-admin.93ac710b95858715130d.js.LICENSE.txt → ordering-ui-admin.3f67563d0aa434e9729f.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,853 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import styled, { css } from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
flex: 1;
|
|
6
|
+
padding: 20px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
transition: all 0.5s;
|
|
9
|
+
max-height: 100vh;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
position: relative;
|
|
14
|
+
`
|
|
15
|
+
export const SpinnerLoaderWrapper = styled.div`
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
z-index: 100;
|
|
22
|
+
|
|
23
|
+
> div {
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
`
|
|
27
|
+
export const Header = styled.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
`
|
|
33
|
+
export const HeaderTitleContainer = styled.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
width: 100%;
|
|
37
|
+
h1 {
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
margin: 0px;
|
|
40
|
+
line-height: 30px;
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
}
|
|
43
|
+
> button {
|
|
44
|
+
${props => props.theme?.rtl ? css`
|
|
45
|
+
margin-left: 8px;
|
|
46
|
+
margin-right: -8px;
|
|
47
|
+
` : css`
|
|
48
|
+
margin-right: 8px;
|
|
49
|
+
margin-left: -8px;
|
|
50
|
+
`}
|
|
51
|
+
|
|
52
|
+
svg {
|
|
53
|
+
width: 25px;
|
|
54
|
+
height: 25px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`
|
|
58
|
+
export const DriverGroupName = styled.span`
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
`
|
|
61
|
+
export const DriverGroupSelectorWrapper = styled.div`
|
|
62
|
+
position: relative;
|
|
63
|
+
width: fit-content;
|
|
64
|
+
margin: 3px 0;
|
|
65
|
+
|
|
66
|
+
> span {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
69
|
+
&.calendar {
|
|
70
|
+
color: ${props => props.theme.colors.primary};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
> svg {
|
|
75
|
+
margin: 0 10px;
|
|
76
|
+
}
|
|
77
|
+
`
|
|
78
|
+
|
|
79
|
+
export const CalendarHeaderContainer = styled.div`
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
margin-bottom: 15px;
|
|
84
|
+
`
|
|
85
|
+
export const CalendarLabelContainer = styled.div`
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
|
|
89
|
+
span.label {
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
margin: 0 3px;
|
|
93
|
+
color: ${props => props.theme.colors.headingColor};
|
|
94
|
+
}
|
|
95
|
+
> button {
|
|
96
|
+
> svg {
|
|
97
|
+
width: 16px;
|
|
98
|
+
height: 16px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`
|
|
102
|
+
export const ViewButtonsWrapper = styled.div`
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
button {
|
|
106
|
+
margin: 0 3px;
|
|
107
|
+
}
|
|
108
|
+
`
|
|
109
|
+
export const EventContainer = styled.div`
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
border: 1px solid ${props => props.theme.colors.gray};
|
|
113
|
+
padding: 2px 5px;
|
|
114
|
+
border-radius: 8px;
|
|
115
|
+
height: 100%;
|
|
116
|
+
|
|
117
|
+
> div.info {
|
|
118
|
+
width: calc(100% - 42px);
|
|
119
|
+
p {
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
p.name {
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
line-height: 18px;
|
|
128
|
+
margin: 0;
|
|
129
|
+
}
|
|
130
|
+
p.date {
|
|
131
|
+
font-size: 10px;
|
|
132
|
+
line-height: 15px;
|
|
133
|
+
color: ${props => props.theme.colors.lightGray};
|
|
134
|
+
margin: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`
|
|
138
|
+
|
|
139
|
+
export const HeaderWrapper = styled.div`
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
width: 100%;
|
|
144
|
+
`
|
|
145
|
+
|
|
146
|
+
export const EventProfessionalPhoto = styled.div`
|
|
147
|
+
width: 32px;
|
|
148
|
+
height: 32px;
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
img {
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: 100%;
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
object-fit: cover;
|
|
159
|
+
}
|
|
160
|
+
svg {
|
|
161
|
+
width: 85%;
|
|
162
|
+
height: 85%;
|
|
163
|
+
}
|
|
164
|
+
`
|
|
165
|
+
|
|
166
|
+
export const Option = styled.div`
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
padding: 5px 10px;
|
|
170
|
+
column-gap: 5px;
|
|
171
|
+
|
|
172
|
+
p {
|
|
173
|
+
margin: 0px;
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
font-size: 14px;
|
|
176
|
+
line-height: 26px;
|
|
177
|
+
color: ${props => props.theme.colors.secundaryContrast};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
${({ noPadding }) => noPadding && css`
|
|
181
|
+
padding: 0px;
|
|
182
|
+
`}
|
|
183
|
+
`
|
|
184
|
+
|
|
185
|
+
export const DeleteWrapper = styled.div`
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: 20px;
|
|
189
|
+
`
|
|
190
|
+
|
|
191
|
+
export const OrderStatusTypeSelectWrapper = styled.div`
|
|
192
|
+
position: relative;
|
|
193
|
+
|
|
194
|
+
.select {
|
|
195
|
+
font-size: 14px;
|
|
196
|
+
background: ${props => props.theme.colors?.secundary};
|
|
197
|
+
height: 44px;
|
|
198
|
+
border: 1px solid ${props => props.theme.colors?.secundary};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.list {
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
204
|
+
`
|
|
205
|
+
|
|
206
|
+
export const DriversGroupFilterWrapper = styled.div`
|
|
207
|
+
> button {
|
|
208
|
+
background: #F8F9FA;
|
|
209
|
+
border-radius: 7.6px;
|
|
210
|
+
padding: 7px 12px;
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
color: #748194;
|
|
213
|
+
border: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (min-width: 600px) {
|
|
217
|
+
margin-left: 25px;
|
|
218
|
+
${props => props.theme.rtl && css`
|
|
219
|
+
margin-right: 25px;
|
|
220
|
+
margin-left: 0;
|
|
221
|
+
`}
|
|
222
|
+
}
|
|
223
|
+
`
|
|
224
|
+
|
|
225
|
+
export const DriversGroupCalendarWrapper = styled(DriversGroupFilterWrapper)`
|
|
226
|
+
position: relative;
|
|
227
|
+
|
|
228
|
+
> button {
|
|
229
|
+
svg {
|
|
230
|
+
font-size: 16px;
|
|
231
|
+
margin-right: 12px;
|
|
232
|
+
${props => props.theme.rtl && css`
|
|
233
|
+
margin-left: 12px;
|
|
234
|
+
margin-right: 0;
|
|
235
|
+
`}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@media only screen and (min-width: 374px) and (max-width: 450px) {
|
|
240
|
+
.ordering-calendar {
|
|
241
|
+
right: calc((100vw - 374px) / 2);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
`
|
|
245
|
+
|
|
246
|
+
export const AnalyticsTimeZoneWrapper = styled(DriversGroupFilterWrapper)``
|
|
247
|
+
|
|
248
|
+
export const UsersConatiner = styled.div`
|
|
249
|
+
margin-top: 20px;
|
|
250
|
+
`
|
|
251
|
+
|
|
252
|
+
export const UserTableWrapper = styled.div`
|
|
253
|
+
overflow: auto;
|
|
254
|
+
`
|
|
255
|
+
|
|
256
|
+
export const UsersTable = styled.table`
|
|
257
|
+
color: ${props => props.theme.colors?.headingColor};
|
|
258
|
+
overflow: auto;
|
|
259
|
+
|
|
260
|
+
td {
|
|
261
|
+
padding: 10px 0;
|
|
262
|
+
font-size: 14px;
|
|
263
|
+
border-right: 1px solid ${props => props.theme.colors.borderColor};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
th {
|
|
267
|
+
padding: 10px 0;
|
|
268
|
+
font-size: 14px;
|
|
269
|
+
white-space: nowrap;
|
|
270
|
+
padding: 0 10px;
|
|
271
|
+
border-right: 1px solid ${props => props.theme.colors.disabled};
|
|
272
|
+
border-left: 1px solid ${props => props.theme.colors.disabled};
|
|
273
|
+
text-align: center;
|
|
274
|
+
&:first-child {
|
|
275
|
+
border-left: none;
|
|
276
|
+
border-right: none;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
thead {
|
|
281
|
+
tr {
|
|
282
|
+
border-bottom: 1px solid ${props => props.theme.colors.disabled};
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
tbody {
|
|
287
|
+
border-bottom: 1px solid ${props => props.theme.colors.borderColor};
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
`
|
|
291
|
+
|
|
292
|
+
export const UserName = styled.span`
|
|
293
|
+
font-size: 14px;
|
|
294
|
+
font-weight: 600;
|
|
295
|
+
max-width: 190px;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
white-space: nowrap;
|
|
298
|
+
overflow: hidden;
|
|
299
|
+
color: ${props => props.theme.colors.headingColor};
|
|
300
|
+
`
|
|
301
|
+
|
|
302
|
+
export const TimeOptions = styled.div`
|
|
303
|
+
white-space: nowrap;
|
|
304
|
+
font-size: 15px;
|
|
305
|
+
`
|
|
306
|
+
|
|
307
|
+
export const SplitLine = styled.div`
|
|
308
|
+
height: 1px;
|
|
309
|
+
width: 8px;
|
|
310
|
+
margin: 0 8px;
|
|
311
|
+
background-color: ${props => props.theme.colors.disabled};
|
|
312
|
+
`
|
|
313
|
+
|
|
314
|
+
export const SelectWrapper = styled.div`
|
|
315
|
+
border: 1px solid ${props => props.theme.colors.borderColor};
|
|
316
|
+
border-radius: 8px;
|
|
317
|
+
width: 70px;
|
|
318
|
+
display: flex;
|
|
319
|
+
margin-left: 10px;
|
|
320
|
+
justify-content: center;
|
|
321
|
+
.select {
|
|
322
|
+
border: none;
|
|
323
|
+
svg {
|
|
324
|
+
display: none;
|
|
325
|
+
}
|
|
326
|
+
> div {
|
|
327
|
+
padding-left: 13px;
|
|
328
|
+
padding-right: 13px;
|
|
329
|
+
font-size: 13px;
|
|
330
|
+
> div:last-child {
|
|
331
|
+
margin: 0px;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.list {
|
|
337
|
+
.options {
|
|
338
|
+
> div {
|
|
339
|
+
> div {
|
|
340
|
+
min-width: initial;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@media (min-width: 450px) {
|
|
347
|
+
width: 95px;
|
|
348
|
+
.select {
|
|
349
|
+
> div {
|
|
350
|
+
font-size: 16px;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
`
|
|
355
|
+
|
|
356
|
+
export const SelectTitleWrappre = styled.div`
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: space-between;
|
|
360
|
+
width: 300px;
|
|
361
|
+
`
|
|
362
|
+
|
|
363
|
+
export const SelectTitle = styled.span``
|
|
364
|
+
|
|
365
|
+
export const WrapperImage = styled.div`
|
|
366
|
+
max-width: 45px;
|
|
367
|
+
max-height: 45px;
|
|
368
|
+
height: 45px;
|
|
369
|
+
width: 45px;
|
|
370
|
+
min-width: 45px;
|
|
371
|
+
${({ isSkeleton }) => !isSkeleton && css`
|
|
372
|
+
border: 1px solid #E3E3E3;
|
|
373
|
+
`}
|
|
374
|
+
border-radius: 10px;
|
|
375
|
+
|
|
376
|
+
svg {
|
|
377
|
+
width: 100%;
|
|
378
|
+
height: 100%;
|
|
379
|
+
padding: 7px;
|
|
380
|
+
box-sizing: border-box;
|
|
381
|
+
border-radius: 50%;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
${props => props.theme?.rtl ? css`
|
|
385
|
+
margin-left: 10px;
|
|
386
|
+
` : css`
|
|
387
|
+
margin-right: 0px;
|
|
388
|
+
`}
|
|
389
|
+
`
|
|
390
|
+
|
|
391
|
+
const ImageStyled = styled.div`
|
|
392
|
+
display: flex;
|
|
393
|
+
width: 100%;
|
|
394
|
+
height: 100%;
|
|
395
|
+
box-sizing: border-box;
|
|
396
|
+
position: relative;
|
|
397
|
+
background-repeat: no-repeat, repeat;
|
|
398
|
+
background-size: cover;
|
|
399
|
+
object-fit: cover;
|
|
400
|
+
background-position: center;
|
|
401
|
+
border-radius: 8px;
|
|
402
|
+
`
|
|
403
|
+
export const Image = (props) => {
|
|
404
|
+
return (
|
|
405
|
+
<ImageStyled
|
|
406
|
+
{...props}
|
|
407
|
+
style={{ backgroundImage: `url(${props.bgimage})` }}
|
|
408
|
+
>
|
|
409
|
+
{props.children}
|
|
410
|
+
</ImageStyled>
|
|
411
|
+
)
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export const UserMainInfo = styled.div`
|
|
415
|
+
display: flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
position: relative;
|
|
418
|
+
gap: 10px;
|
|
419
|
+
|
|
420
|
+
${props => props.theme?.rtl ? css`
|
|
421
|
+
margin-left: 20px;
|
|
422
|
+
padding-left: 10px;
|
|
423
|
+
` : css`
|
|
424
|
+
padding: 0px 5px;
|
|
425
|
+
`}
|
|
426
|
+
|
|
427
|
+
> div:last-child {
|
|
428
|
+
flex: 1;
|
|
429
|
+
}
|
|
430
|
+
`
|
|
431
|
+
|
|
432
|
+
export const CheckBoxWrapper = styled.div`
|
|
433
|
+
cursor: pointer;
|
|
434
|
+
${props => props.theme?.rtl ? css`
|
|
435
|
+
margin-left: 10px;
|
|
436
|
+
` : css`
|
|
437
|
+
margin-right: 10px;
|
|
438
|
+
`}
|
|
439
|
+
svg {
|
|
440
|
+
font-size: 24px;
|
|
441
|
+
color: #B1BCCC;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
${({ isChecked }) => isChecked && css`
|
|
445
|
+
svg {
|
|
446
|
+
color: ${props => props.theme.colors?.primary};
|
|
447
|
+
}
|
|
448
|
+
`}
|
|
449
|
+
`
|
|
450
|
+
|
|
451
|
+
export const DeleteBlock = styled.span`
|
|
452
|
+
color: ${props => props.theme.colors.lightGray};
|
|
453
|
+
`
|
|
454
|
+
|
|
455
|
+
export const DeleteButtons = styled.div`
|
|
456
|
+
display: flex;
|
|
457
|
+
align-items: center;
|
|
458
|
+
justify-content: flex-end;
|
|
459
|
+
gap: 10px;
|
|
460
|
+
position: absolute;
|
|
461
|
+
bottom: 20px;
|
|
462
|
+
right: 20px;
|
|
463
|
+
`
|
|
464
|
+
|
|
465
|
+
export const InfoBlock = styled.div`
|
|
466
|
+
text-overflow: ellipsis;
|
|
467
|
+
overflow: hidden;
|
|
468
|
+
white-space: nowrap;
|
|
469
|
+
display: flex;
|
|
470
|
+
flex-direction: column;
|
|
471
|
+
|
|
472
|
+
span {
|
|
473
|
+
margin: 5px 0 0 0;
|
|
474
|
+
font-size: 12px;
|
|
475
|
+
color: ${props => props.theme.colors.lightGray};
|
|
476
|
+
text-overflow: ellipsis;
|
|
477
|
+
overflow: hidden;
|
|
478
|
+
}
|
|
479
|
+
span.bold {
|
|
480
|
+
margin: 0px;
|
|
481
|
+
font-size: 14px;
|
|
482
|
+
font-weight: 600;
|
|
483
|
+
color: ${props => props.theme.colors.headingColor};
|
|
484
|
+
}
|
|
485
|
+
`
|
|
486
|
+
export const UserTypeWrapper = styled.div`
|
|
487
|
+
${props => props.theme?.rtl ? css`
|
|
488
|
+
border-left: 1px solid ${props => props.theme.colors.borderColor};
|
|
489
|
+
margin-left: 20px;
|
|
490
|
+
` : css`
|
|
491
|
+
border-right: 1px solid ${props => props.theme.colors.borderColor};
|
|
492
|
+
margin-right: 20px;
|
|
493
|
+
`}
|
|
494
|
+
> div {
|
|
495
|
+
display: flex;
|
|
496
|
+
|
|
497
|
+
.select {
|
|
498
|
+
border: none;
|
|
499
|
+
padding: 0px;
|
|
500
|
+
|
|
501
|
+
> div {
|
|
502
|
+
padding: 0px;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.list {
|
|
507
|
+
.options {
|
|
508
|
+
border: 1px solid #E9ECEF;
|
|
509
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
|
|
510
|
+
border-radius: 8px;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
> p {
|
|
515
|
+
margin: 5px 0 0 0;
|
|
516
|
+
font-size: 12px;
|
|
517
|
+
color: ${props => props.theme.colors.lightGray};
|
|
518
|
+
}
|
|
519
|
+
`
|
|
520
|
+
|
|
521
|
+
export const UserEnableWrapper = styled.div`
|
|
522
|
+
display: flex;
|
|
523
|
+
align-items: center;
|
|
524
|
+
width: fit-content;
|
|
525
|
+
|
|
526
|
+
span {
|
|
527
|
+
font-size: 14px;
|
|
528
|
+
|
|
529
|
+
${props => props.theme?.rtl ? css`
|
|
530
|
+
padding-left: 10px;
|
|
531
|
+
` : css`
|
|
532
|
+
padding-right: 10px;
|
|
533
|
+
`}
|
|
534
|
+
}
|
|
535
|
+
`
|
|
536
|
+
export const WrapperPagination = styled.div`
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
`
|
|
540
|
+
|
|
541
|
+
export const UsersBottomContainer = styled.div`
|
|
542
|
+
display: flex;
|
|
543
|
+
flex-wrap: wrap;
|
|
544
|
+
justify-content: flex-end;
|
|
545
|
+
align-items: center;
|
|
546
|
+
margin-top: 10px;
|
|
547
|
+
margin-bottom: 38px;
|
|
548
|
+
`
|
|
549
|
+
|
|
550
|
+
export const VerifiedItem = styled.span`
|
|
551
|
+
font-size: 10px;
|
|
552
|
+
background-color: ${props => props.theme.colors.lightGreen};
|
|
553
|
+
padding: 3px 10px;
|
|
554
|
+
border-radius: 50px;
|
|
555
|
+
color: ${props => props.theme.colors.green};
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
|
|
559
|
+
svg {
|
|
560
|
+
font-size: 12px;
|
|
561
|
+
${props => props.theme?.rtl ? css`
|
|
562
|
+
margin-left: 3px;
|
|
563
|
+
` : css`
|
|
564
|
+
margin-right: 3px;
|
|
565
|
+
`}
|
|
566
|
+
}
|
|
567
|
+
`
|
|
568
|
+
export const VerifiedItemsContainer = styled.div`
|
|
569
|
+
position: absolute;
|
|
570
|
+
top: 0;
|
|
571
|
+
display: flex;
|
|
572
|
+
flex-direction: column;
|
|
573
|
+
|
|
574
|
+
${props => props.theme?.rtl ? css`
|
|
575
|
+
left: 10px;
|
|
576
|
+
` : css`
|
|
577
|
+
right: 10px;
|
|
578
|
+
`}
|
|
579
|
+
|
|
580
|
+
> span {
|
|
581
|
+
&:not(:first-child) {
|
|
582
|
+
margin-top: 5px;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
`
|
|
586
|
+
export const UserIdWrapper = styled.div`
|
|
587
|
+
display: flex;
|
|
588
|
+
align-items: center;
|
|
589
|
+
font-size: 12px;
|
|
590
|
+
`
|
|
591
|
+
export const ActionsContainer = styled.div`
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
> div {
|
|
595
|
+
&:not(:first-child) {
|
|
596
|
+
${props => props.theme?.rtl ? css`
|
|
597
|
+
margin-right: 25px;
|
|
598
|
+
` : css`
|
|
599
|
+
margin-left: 25px;
|
|
600
|
+
`}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
`
|
|
604
|
+
|
|
605
|
+
export const UsersListingContainer = styled.div`
|
|
606
|
+
flex: 1;
|
|
607
|
+
padding: 20px;
|
|
608
|
+
box-sizing: border-box;
|
|
609
|
+
transition: all 0.5s;
|
|
610
|
+
max-height: 100vh;
|
|
611
|
+
overflow: auto;
|
|
612
|
+
|
|
613
|
+
@media print {
|
|
614
|
+
display: none;
|
|
615
|
+
}
|
|
616
|
+
`
|
|
617
|
+
|
|
618
|
+
export const ButtonWrapper = styled.div`
|
|
619
|
+
position: absolute;
|
|
620
|
+
display: flex;
|
|
621
|
+
flex-direction: column;
|
|
622
|
+
align-items: flex-start;
|
|
623
|
+
justify-content: center;
|
|
624
|
+
height: 70%;
|
|
625
|
+
top: 11px;
|
|
626
|
+
z-index: 80;
|
|
627
|
+
|
|
628
|
+
${props => (props.rowPosition || props.rowPosition === 0) && css`
|
|
629
|
+
left: ${(props.rowPosition * props.cellWidth + 285)}px;
|
|
630
|
+
`}
|
|
631
|
+
`
|
|
632
|
+
|
|
633
|
+
export const StackedBlock = styled.div`
|
|
634
|
+
border: 1px solid #B1BCCC;
|
|
635
|
+
border-radius: 6px;
|
|
636
|
+
padding: 6px;
|
|
637
|
+
cursor: pointer;
|
|
638
|
+
|
|
639
|
+
&:hover {
|
|
640
|
+
box-shadow: 0px 0px 3px 4px rgba(238,250,255);
|
|
641
|
+
}
|
|
642
|
+
`
|
|
643
|
+
|
|
644
|
+
export const Block = styled.div`
|
|
645
|
+
position: absolute;
|
|
646
|
+
display: flex;
|
|
647
|
+
flex-direction: column;
|
|
648
|
+
align-items: flex-start;
|
|
649
|
+
justify-content: center;
|
|
650
|
+
height: 70%;
|
|
651
|
+
border: 1px solid #B1BCCC;
|
|
652
|
+
border-radius: 6px;
|
|
653
|
+
min-height: 40px;
|
|
654
|
+
padding: 5px 10px;
|
|
655
|
+
background-color: #FFF;
|
|
656
|
+
cursor: pointer;
|
|
657
|
+
top: 11px;
|
|
658
|
+
z-index: 80;
|
|
659
|
+
${props => props.innerWidth && css`
|
|
660
|
+
width: ${props.innerWidth}px;
|
|
661
|
+
`}
|
|
662
|
+
${props => (props.rowPosition || props.rowPosition === 0) && css`
|
|
663
|
+
left: ${(props.rowPosition * props.cellWidth + 249 + (props.cellPosition === 0 ? 0 : props.cellSections * props.cellPosition))}px;
|
|
664
|
+
`}
|
|
665
|
+
|
|
666
|
+
&:hover {
|
|
667
|
+
box-shadow: 0px 0px 3px 4px rgba(238,250,255);
|
|
668
|
+
z-index: 90;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
p {
|
|
672
|
+
margin: 0px;
|
|
673
|
+
font-size: 12px;
|
|
674
|
+
color: #B1BCCC;
|
|
675
|
+
}
|
|
676
|
+
`
|
|
677
|
+
|
|
678
|
+
export const EmptyBlock = styled.div`
|
|
679
|
+
height: 100%;
|
|
680
|
+
min-height: 50px;
|
|
681
|
+
cursor: pointer;
|
|
682
|
+
`
|
|
683
|
+
|
|
684
|
+
export const UserRow = styled.tr`
|
|
685
|
+
position: relative;
|
|
686
|
+
|
|
687
|
+
td {
|
|
688
|
+
max-width: 214.2px;
|
|
689
|
+
}
|
|
690
|
+
`
|
|
691
|
+
|
|
692
|
+
export const HoursHeader = styled.th`
|
|
693
|
+
max-width: 86px;
|
|
694
|
+
min-width: 86px;
|
|
695
|
+
`
|
|
696
|
+
|
|
697
|
+
export const ThId = styled.th`
|
|
698
|
+
max-width: 34.6px;
|
|
699
|
+
min-width: 34.6px;
|
|
700
|
+
`
|
|
701
|
+
|
|
702
|
+
export const ThName = styled.th`
|
|
703
|
+
max-width: 214.2px;
|
|
704
|
+
min-width: 214.2px;
|
|
705
|
+
`
|
|
706
|
+
|
|
707
|
+
export const WeekHeader = styled.th`
|
|
708
|
+
max-width: 160px;
|
|
709
|
+
min-width: 160px;
|
|
710
|
+
|
|
711
|
+
span {
|
|
712
|
+
text-transform: uppercase;
|
|
713
|
+
font-weight: 300;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
h4 {
|
|
717
|
+
font-weight: bold;
|
|
718
|
+
}
|
|
719
|
+
`
|
|
720
|
+
|
|
721
|
+
export const FormWrapper = styled.div`
|
|
722
|
+
display: flex;
|
|
723
|
+
flex-direction: column;
|
|
724
|
+
align-items: flex-start;
|
|
725
|
+
justify-content: center;
|
|
726
|
+
gap: 10px;
|
|
727
|
+
position: relative;
|
|
728
|
+
min-height: 500px;
|
|
729
|
+
.react-datepicker-popper {
|
|
730
|
+
z-index: 1000;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
span {
|
|
734
|
+
font-weight: 600;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
input {
|
|
738
|
+
margin: 5px 0 10px 0;
|
|
739
|
+
border: 1px solid #DEE2E6;
|
|
740
|
+
color: ${props => props.theme.colors.headingColor};
|
|
741
|
+
width: 100%;
|
|
742
|
+
&:focus {
|
|
743
|
+
border: 1px solid #B1BCCC;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
textarea {
|
|
748
|
+
margin-bottom: 10px;
|
|
749
|
+
width: 100%;
|
|
750
|
+
}
|
|
751
|
+
`
|
|
752
|
+
|
|
753
|
+
export const FormControl = styled.div`
|
|
754
|
+
> label {
|
|
755
|
+
font-weight: 400;
|
|
756
|
+
font-size: 14px;
|
|
757
|
+
line-height: 24px;
|
|
758
|
+
margin-bottom: 10px;
|
|
759
|
+
}
|
|
760
|
+
input {
|
|
761
|
+
width: 100%;
|
|
762
|
+
height: 44px;
|
|
763
|
+
}
|
|
764
|
+
`
|
|
765
|
+
|
|
766
|
+
export const RrulesListWrapper = styled.div`
|
|
767
|
+
display: flex;
|
|
768
|
+
gap: 20px;
|
|
769
|
+
`
|
|
770
|
+
|
|
771
|
+
export const RrulesItem = styled.div`
|
|
772
|
+
display: flex;
|
|
773
|
+
align-items: center;
|
|
774
|
+
padding: 8px 0;
|
|
775
|
+
cursor: pointer;
|
|
776
|
+
|
|
777
|
+
svg {
|
|
778
|
+
font-size: 16px;
|
|
779
|
+
color: ${props => props.theme.colors.secundaryLight};
|
|
780
|
+
&.active {
|
|
781
|
+
color: ${props => props.theme.colors.primary};
|
|
782
|
+
}
|
|
783
|
+
margin-right: 10px;
|
|
784
|
+
${props => props.theme.rtl && css`
|
|
785
|
+
margin-left: 20px;
|
|
786
|
+
margin-right: 0px;
|
|
787
|
+
`}
|
|
788
|
+
}
|
|
789
|
+
span {
|
|
790
|
+
font-weight: 400;
|
|
791
|
+
font-size: 14px;
|
|
792
|
+
line-height: 24px;
|
|
793
|
+
}
|
|
794
|
+
`
|
|
795
|
+
|
|
796
|
+
export const ButtonsWrapper = styled.div`
|
|
797
|
+
display: flex;
|
|
798
|
+
justify-content: flex-end;
|
|
799
|
+
margin-top: 20px;
|
|
800
|
+
width: 100%;
|
|
801
|
+
button:nth-child(2){
|
|
802
|
+
margin-left: 10px;
|
|
803
|
+
}
|
|
804
|
+
`
|
|
805
|
+
|
|
806
|
+
export const WeekDayCheckWrapper = styled.div`
|
|
807
|
+
display: flex;
|
|
808
|
+
align-items: center;
|
|
809
|
+
margin-bottom: 15px;
|
|
810
|
+
gap: 10px;
|
|
811
|
+
|
|
812
|
+
> input {
|
|
813
|
+
${props => props.theme?.rtl ? css`
|
|
814
|
+
margin-left: 5px;
|
|
815
|
+
` : css`
|
|
816
|
+
margin-right: 5px;
|
|
817
|
+
`}
|
|
818
|
+
}
|
|
819
|
+
h4 {
|
|
820
|
+
font-size: 12px;
|
|
821
|
+
margin: 0px;
|
|
822
|
+
text-transform: capitalize;
|
|
823
|
+
}
|
|
824
|
+
`
|
|
825
|
+
|
|
826
|
+
export const ShowBreakBlocksWrapper = styled.div`
|
|
827
|
+
display: flex;
|
|
828
|
+
align-items: center;
|
|
829
|
+
gap: 20px;
|
|
830
|
+
`
|
|
831
|
+
|
|
832
|
+
export const ChecksWrapper = styled.div`
|
|
833
|
+
display: flex;
|
|
834
|
+
justify-content: space-between;
|
|
835
|
+
width: 100%;
|
|
836
|
+
`
|
|
837
|
+
|
|
838
|
+
export const SelectsWrapper = styled.div`
|
|
839
|
+
display: grid;
|
|
840
|
+
grid-template-columns: repeat(2, 2fr);
|
|
841
|
+
gap: 20px;
|
|
842
|
+
`
|
|
843
|
+
|
|
844
|
+
export const BlocksWrapper = styled.div`
|
|
845
|
+
display: flex;
|
|
846
|
+
justifyContent: space-between;
|
|
847
|
+
gap: 60px;
|
|
848
|
+
`
|
|
849
|
+
|
|
850
|
+
export const DateBlockWrapper = styled.div`
|
|
851
|
+
display: flex;
|
|
852
|
+
flex-direction: column;
|
|
853
|
+
`
|