benivo-ui-library 1.7.27 → 1.7.29

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.
@@ -0,0 +1,576 @@
1
+ @white: #fff;
2
+ @home-grey: @gray-bg;
3
+ @hover-color: #f4f5f7;
4
+ @table-row-radius: 4px;
5
+ @th-border-color: #ced0da;
6
+ @green: #04bf6a;
7
+
8
+ .spinner-wrapper {
9
+ position: relative;
10
+
11
+ .table-spinner-overlay {
12
+ position: absolute;
13
+ top: 0;
14
+ z-index: 1;
15
+ left: 5px;
16
+ width: auto;
17
+ right: 15px;
18
+ height: ~"calc(100% - 85px)";
19
+ }
20
+ }
21
+
22
+ .data-table {
23
+ overflow-x: auto;
24
+ overflow-y: hidden;
25
+ position: relative;
26
+ min-height: ~"calc(100vh - 220px)";
27
+
28
+ &.on-loading {
29
+ overflow-x: hidden;
30
+ overflow-y: hidden;
31
+ }
32
+
33
+ table {
34
+ border-collapse: separate;
35
+ border-spacing: 0 12px;
36
+ table-layout: unset;
37
+ margin-bottom: 0;
38
+
39
+ thead th,
40
+ tbody td {
41
+ border-bottom: none;
42
+ padding: 10px 24px;
43
+ }
44
+
45
+ thead {
46
+ padding: 0;
47
+
48
+ tr {
49
+ th {
50
+ border: none;
51
+ //background-color: @home-grey;
52
+ text-transform: unset;
53
+ font-size: @font-size;
54
+ text-align: left;
55
+ padding: 1px 24px;
56
+
57
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
58
+ vertical-align: top;
59
+ }
60
+
61
+ &:not(:first-child) {
62
+ min-width: 190px;
63
+
64
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
65
+ width: 210px;
66
+ vertical-align: top;
67
+ }
68
+ }
69
+
70
+ &.empty-col {
71
+ min-width: unset;
72
+ }
73
+
74
+ &:first-child {
75
+ width: 60px;
76
+ border-right: none !important;
77
+
78
+ &:not(.visible-xs) {
79
+ @media @md-max {
80
+ display: none;
81
+ }
82
+ }
83
+ }
84
+
85
+ &:not(:last-child) {
86
+ border-right: 1px solid @th-border-color;
87
+ }
88
+
89
+ &.left-space {
90
+ padding-left: 44px;
91
+ }
92
+
93
+ .required-point {
94
+ color: @error-color;
95
+ }
96
+
97
+ &.long-cell {
98
+ min-width: 270px;
99
+ }
100
+
101
+ .checkbox-cell-wrapper {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ align-items: baseline;
105
+
106
+ .form-check {
107
+ margin-bottom: 0;
108
+ padding-left: 0;
109
+ min-height: 1rem;
110
+
111
+ &:before {
112
+ top: 0;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ tbody {
121
+ tr {
122
+ cursor: pointer;
123
+ padding: 10px;
124
+ .border-radius(4px);
125
+ .box-shadow(0 1px 0 0 rgba(0, 0, 0, 0.06));
126
+ background-color: #ffffff;
127
+ position: relative;
128
+
129
+ @media (hover: hover) {
130
+ &:hover {
131
+ .sticky {
132
+ position: sticky;
133
+ right: 20px;
134
+ top: 0;
135
+ min-width: 0;
136
+ display: table-cell;
137
+ vertical-align: middle;
138
+
139
+
140
+ .icon-wraper {
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ height: 30px;
145
+ width: 30px;
146
+ background: #ffffff;
147
+ border: 1px solid #CED0DA;
148
+ .border-radius(4px);
149
+ .box-shadow(0 1px 0 0 rgba(0,0,0,0.06));
150
+
151
+ .icon-Delete {
152
+ &:before {
153
+ color: @primary-color;
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
161
+ &.is-new {
162
+ @media @lg-max {
163
+ z-index: 1;
164
+ overflow: hidden;
165
+
166
+ .sticky {
167
+ position: sticky;
168
+ right: 0;
169
+ top: 0;
170
+ min-width: 0;
171
+ display: table-cell;
172
+ vertical-align: middle;
173
+ background-color: transparent;
174
+
175
+ .icon-wraper {
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ height: 30px;
180
+ width: 30px;
181
+ background: #ffffff;
182
+ border: 1px solid #CED0DA;
183
+ .border-radius(4px);
184
+ .box-shadow(0 1px 0 0 rgba(0,0,0,0.06));
185
+
186
+ .icon-Delete {
187
+ &:before {
188
+ color: @primary-color;
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+
197
+ &:hover {
198
+ background-color: @hover-color;
199
+
200
+ td {
201
+ background-color: @hover-color;
202
+ }
203
+
204
+ .status-cell {
205
+ a:not(.nav-link) {
206
+ visibility: visible;
207
+ }
208
+ }
209
+ }
210
+
211
+ .sticky {
212
+ display: none;
213
+ }
214
+
215
+ td {
216
+ border-right: none;
217
+ border-left: none;
218
+ background-color: @white;
219
+ text-overflow: ellipsis;
220
+ white-space: nowrap;
221
+ font-size: @font-size;
222
+
223
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
224
+ width: 210px;
225
+ vertical-align: top;
226
+ white-space: normal;
227
+ word-break: break-all;
228
+ }
229
+
230
+ &.has-preview {
231
+ display: flex;
232
+ justify-content: space-between;
233
+ align-items: baseline;
234
+ }
235
+
236
+ &.select-cell {
237
+ max-width: 210px;
238
+ }
239
+
240
+ &.checkbox-cell {
241
+ display: flex;
242
+ justify-content: space-between;
243
+ align-items: baseline;
244
+
245
+ .form-check {
246
+ margin-bottom: 0;
247
+ padding-left: 0;
248
+ min-height: 1rem;
249
+
250
+ &:before {
251
+ top: 0;
252
+ }
253
+ }
254
+ }
255
+
256
+ &.employee-cell {
257
+ color: @gray-text;
258
+
259
+ &.cell-top {
260
+ vertical-align: top;
261
+ padding-top: 5px;
262
+ padding-bottom: 5px;
263
+ }
264
+
265
+ small {
266
+ display: block;
267
+ font-size: 80%;
268
+ }
269
+ }
270
+
271
+ &.status-cell {
272
+
273
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
274
+ white-space: normal;
275
+ word-break: normal;
276
+ }
277
+
278
+ > span {
279
+ align-self: center;
280
+ display: flex;
281
+ justify-content: space-between;
282
+ align-items: baseline;
283
+ padding-right: 22px;
284
+
285
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
286
+ position: relative;
287
+ }
288
+
289
+ a:not(.nav-link) {
290
+ visibility: hidden;
291
+ display: inline-block;
292
+ margin-left: 150px;
293
+ text-decoration: none;
294
+
295
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
296
+ position: absolute;
297
+ height: 100%;
298
+ display: flex;
299
+ align-items: center;
300
+ width: 100%;
301
+ left: 0px;
302
+ }
303
+ }
304
+ }
305
+
306
+ &.cell-top {
307
+ vertical-align: top;
308
+ padding-top: 5px;
309
+ padding-bottom: 5px;
310
+ }
311
+
312
+ small {
313
+ display: block;
314
+ font-size: 80%;
315
+ }
316
+ }
317
+
318
+ &:first-child {
319
+ border-top-left-radius: @table-row-radius;
320
+ border-bottom-left-radius: @table-row-radius;
321
+ color: @gray-text;
322
+ padding-left: 10px;
323
+ padding-right: 2px;
324
+
325
+ &:not(.checkbox-cell) {
326
+ @media @md-max {
327
+ display: none;
328
+ }
329
+ }
330
+ }
331
+
332
+ &:last-child {
333
+ border-top-right-radius: @table-row-radius;
334
+ border-bottom-right-radius: @table-row-radius;
335
+ }
336
+
337
+ .form-group {
338
+ margin-bottom: 0;
339
+ }
340
+
341
+ .field-invalid-msg {
342
+ display: none;
343
+ }
344
+
345
+ &.row-menu {
346
+ border: 1px solid @gray-divider;
347
+ position: relative;
348
+ cursor: pointer;
349
+ padding: 0;
350
+ width: 50px;
351
+ text-align: center;
352
+
353
+ &.disable {
354
+ opacity: .5;
355
+ pointer-events: none;
356
+ }
357
+
358
+ .icon-dot-menu {
359
+ font-size: 21px;
360
+ width: 50px;
361
+ display: inline-block;
362
+ }
363
+
364
+
365
+ .menu-box {
366
+ z-index: 10;
367
+ position: absolute;
368
+ top: 10px;
369
+ right: 30px;
370
+ background-color: #fff;
371
+ .border-radius(4px);
372
+ .box-shadow(@box-shadow);
373
+ padding: 12px 0 12px 0;
374
+
375
+ &.top {
376
+ top: unset;
377
+ bottom: 6px;
378
+ }
379
+
380
+ .icon {
381
+ &:before {
382
+ color: #94979B;
383
+ width: 15px;
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+
390
+ .vip-label {
391
+ font-size: 12px;
392
+ color: @green;
393
+ font-weight: @font-weight-semibold;
394
+ margin-left: 5px;
395
+ letter-spacing: 2px;
396
+
397
+ .icon-task-star-rating-default {
398
+ font-weight: @font-weight-semibold;
399
+
400
+ &:before {
401
+ color: @green
402
+ }
403
+ }
404
+ }
405
+
406
+ .assignment-cell {
407
+ display: flex;
408
+ align-items: center;
409
+
410
+ .count {
411
+ display: inline-flex;
412
+ justify-content: center;
413
+ align-items: center;
414
+ width: 18px;
415
+ height: 18px;
416
+ .border-radius(50%);
417
+ background-color: @primary-color;
418
+ color: #fff;
419
+ font-size: @extra-small-font-size;
420
+ line-height: 1;
421
+ margin-left: 12px;
422
+ padding-right: 1px;
423
+ }
424
+ }
425
+
426
+ .avatar-icon {
427
+ display: inline-block;
428
+ height: 30px;
429
+ width: 30px;
430
+ .border-radius(50%);
431
+ border: 1px solid;
432
+ text-align: center;
433
+ line-height: 2.3;
434
+ font-size: 12px;
435
+ font-weight: @font-weight-semibold;
436
+ position: relative;
437
+ text-transform: uppercase;
438
+
439
+ .icon {
440
+ line-height: 2.4;
441
+ }
442
+
443
+ .tooltip-inner {
444
+ white-space: initial;
445
+ text-align: left;
446
+ line-height: 1.3;
447
+ }
448
+
449
+ .icon-initiation {
450
+ position: absolute;
451
+ bottom: -6px;
452
+ right: -6px;
453
+ display: flex;
454
+ justify-content: center;
455
+ align-items: center;
456
+ width: 20px;
457
+ height: 20px;
458
+ background: #ffffff;
459
+ padding: 4px;
460
+ .border-radius(6px);
461
+
462
+ & > span {
463
+ background-position: center;
464
+ background-size: contain;
465
+ background-repeat: no-repeat;
466
+ display: inline-block;
467
+ width: 100%;
468
+ height: 100%;
469
+ }
470
+
471
+ .tooltip {
472
+ color: @text-color;
473
+
474
+ p {
475
+ margin-bottom: 0;
476
+
477
+ &:last-child {
478
+ color: #94979B;
479
+ margin-top: 3px;
480
+ }
481
+
482
+ .capitalize {
483
+ text-transform: capitalize;
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+
490
+ &.is-new {
491
+ background-color: @hover-color;
492
+ color: #94979B;
493
+
494
+ td {
495
+ background-color: @hover-color;
496
+ color: #94979B;
497
+
498
+ &.id-cell {
499
+ min-height: 52px;
500
+
501
+ &.has-preview {
502
+ align-items: center;
503
+ }
504
+ }
505
+
506
+ .draft-badge {
507
+ display: inline-block;
508
+ padding: 3px 5px;
509
+ margin-left: 5px;
510
+ border-radius: @border-radius;
511
+ background-color: @gray-bg;
512
+ border: 1px solid @light-gray-border;
513
+ }
514
+
515
+ &:nth-last-child(2) {
516
+ border-top-right-radius: @table-row-radius;
517
+ border-bottom-right-radius: @table-row-radius;
518
+ }
519
+ }
520
+
521
+ &:hover {
522
+ .id-cell.has-preview {
523
+ .draft-badge {
524
+ display: none;
525
+ }
526
+ }
527
+ }
528
+ }
529
+ }
530
+ }
531
+ }
532
+
533
+ &::-webkit-scrollbar {
534
+ width: 17px;
535
+ height: 4px;
536
+ }
537
+
538
+ &::-webkit-scrollbar-track,
539
+ &::-webkit-scrollbar-thumb {
540
+ opacity: 0.5;
541
+ .border-radius(8px);
542
+ background-clip: padding-box;
543
+ }
544
+
545
+ &::-webkit-scrollbar-track {
546
+ background-color: @custom-scrollbar-track-color;
547
+ }
548
+
549
+ &::-webkit-scrollbar-thumb {
550
+ background-color: @custom-scrollbar-thumb-color;
551
+ }
552
+
553
+ &::-webkit-scrollbar-corner {
554
+ background-color: transparent;
555
+ }
556
+
557
+ &.increase-scroll-height::-webkit-scrollbar {
558
+ height: 8px;
559
+ }
560
+ }
561
+
562
+ .data-table-skeleton {
563
+ padding-top: 56px;
564
+
565
+ .react-loading-skeleton {
566
+ margin-top: 14px;
567
+ }
568
+ }
569
+
570
+ .table-cell-ellipsis {
571
+ &:extend(.ellipsis-text);
572
+ max-width: 200px;
573
+ display: inline-block;
574
+ vertical-align: middle;
575
+ margin-right: 6px;
576
+ }