@egovernments/digit-ui-components-css 0.0.2-beta.11 → 0.0.2-beta.13

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 (51) hide show
  1. package/CHANGELOG.md +92 -88
  2. package/README.md +80 -80
  3. package/dist/index.css +810 -16
  4. package/dist/index.min.css +2 -2
  5. package/package.json +69 -69
  6. package/src/digitv2/components/FormComposerV2.scss +118 -118
  7. package/src/digitv2/components/actionbarV2.scss +206 -206
  8. package/src/digitv2/components/backLinkV2.scss +36 -36
  9. package/src/digitv2/components/bodyContainerV2.scss +39 -39
  10. package/src/digitv2/components/breadcrumbV2.scss +56 -56
  11. package/src/digitv2/components/buttonsV2.scss +450 -451
  12. package/src/digitv2/components/cardV2.scss +497 -497
  13. package/src/digitv2/components/cardbasedoptionsV2.scss +46 -46
  14. package/src/digitv2/components/cardlabelV2.scss +7 -7
  15. package/src/digitv2/components/checkboxV2.scss +83 -83
  16. package/src/digitv2/components/chipV2.scss +129 -129
  17. package/src/digitv2/components/dividerV2.scss +10 -10
  18. package/src/digitv2/components/errorMessageV2.scss +20 -20
  19. package/src/digitv2/components/fieldV1.scss +96 -96
  20. package/src/digitv2/components/headerdropdownV2.scss +151 -151
  21. package/src/digitv2/components/infoCardV2.scss +139 -139
  22. package/src/digitv2/components/infobuttonV2.scss +75 -75
  23. package/src/digitv2/components/labelFieldPairV2.scss +66 -66
  24. package/src/digitv2/components/mobileNumberV2.scss +65 -65
  25. package/src/digitv2/components/mobilesidebarV2.scss +439 -0
  26. package/src/digitv2/components/multiSelectDropdownV2.scss +315 -315
  27. package/src/digitv2/components/panelCardV2.scss +160 -160
  28. package/src/digitv2/components/panelV2.scss +114 -114
  29. package/src/digitv2/components/popUpV2.scss +330 -330
  30. package/src/digitv2/components/radiobtnV2.scss +115 -115
  31. package/src/digitv2/components/selectDropdownV2.scss +364 -364
  32. package/src/digitv2/components/sidebarV2.scss +409 -0
  33. package/src/digitv2/components/stepperV2.scss +147 -147
  34. package/src/digitv2/components/textInputV2.scss +462 -462
  35. package/src/digitv2/components/textareaV2.scss +99 -99
  36. package/src/digitv2/components/textblockV2.scss +46 -46
  37. package/src/digitv2/components/timelineV2.scss +170 -170
  38. package/src/digitv2/components/toastV2.scss +80 -80
  39. package/src/digitv2/components/toggleV2.scss +72 -72
  40. package/src/digitv2/components/tooltipwrapperV2.scss +96 -0
  41. package/src/digitv2/components/topbarV2.scss +387 -387
  42. package/src/digitv2/components/treeSelectV2.scss +132 -132
  43. package/src/digitv2/components/uploaderV2.scss +556 -556
  44. package/src/digitv2/components/viewCardFieldPairV2.scss +44 -44
  45. package/src/digitv2/index.scss +172 -169
  46. package/src/digitv2/pages/employee/index.scss +1 -1
  47. package/src/digitv2/pages/employee/workbench.scss +615 -615
  48. package/src/digitv2/typography.scss +638 -638
  49. package/src/index.scss +677 -681
  50. package/src/pages/employee/index.scss +625 -625
  51. package/src/pages/employee/login.scss +220 -220
@@ -1,557 +1,557 @@
1
- .digit-upload-image-drawer {
2
- @apply w-full fixed left-0 right-0 flex-col;
3
- display: flex;
4
- background-color: theme(digitv2.lightTheme.paper-primary);
5
- border-radius: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
6
- z-index: 1000;
7
- border-radius: theme(digitv2.spacers.spacer1);
8
- gap: theme(digitv2.spacers.spacer6);
9
- padding: theme(digitv2.spacers.spacer6);
10
-
11
- .image-upload-options {
12
- @apply h-full;
13
- display: flex;
14
-
15
- .upload-options {
16
- @apply items-center flex-col;
17
- display: flex;
18
- flex: 1;
19
- justify-content: center;
20
- gap: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
21
- }
22
-
23
- .upload-options-label {
24
- @extend .typography.label;
25
- @apply cursor-pointer;
26
- color: theme(digitv2.lightTheme.primary-1);
27
- }
28
- }
29
-
30
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
31
- height: 14.25rem;
32
- width: 27.5rem;
33
- left: 50%;
34
- top: 25%;
35
- transform: translateX(-50%);
36
- }
37
-
38
- @media (min-width: 48rem) {
39
- width: 37.5rem;
40
- height: 15rem;
41
- left: 50%;
42
- top: 25%;
43
- transform: translateX(-50%);
44
- }
45
-
46
- @media (max-width: 30rem) {
47
- height: 7.625rem;
48
- animation: slideInFromBottom 0.5s ease-out forwards;
49
- }
50
-
51
-
52
- .capture-close {
53
- @apply w-8 h-8 absolute top-0 right-0 cursor-pointer mt-sm mr-sm;
54
- display: flex;
55
-
56
- svg {
57
- flex-shrink: 0;
58
- }
59
- }
60
- }
61
-
62
-
63
- .digit-uploader-wrap {
64
- @apply flex flex-col;
65
- gap: theme(digitv2.spacers.spacer3);
66
-
67
- @media (max-width: 30rem) {
68
- gap: theme(digitv2.spacers.spacer2);
69
- }
70
-
71
- &.error{
72
- gap:theme(digitv2.spacers.spacer1);
73
- }
74
-
75
- .digit-upload-label {
76
- @extend .typography.label;
77
- @apply text-left;
78
- margin: theme(digitv2.spacers.spacer0);
79
- color: theme(digitv2.lightTheme.text-primary);
80
- }
81
-
82
- .digit-uploader-content {
83
- @apply flex w-full;
84
- gap: theme(digitv2.spacers.spacer3);
85
-
86
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
87
- max-width: 27.5rem;
88
- min-width: 21rem;
89
- }
90
-
91
- @media (max-width: 30rem) {
92
- max-width: 20.563rem;
93
- min-width: 18rem;
94
- }
95
-
96
- @media (min-width: 48rem) {
97
- max-width: 37.5rem;
98
- min-width: 20.75rem;
99
- }
100
-
101
- }
102
-
103
- label {
104
- outline: none !important;
105
- }
106
-
107
- .digit-uploader-content-uploadpopup {
108
- @apply flex flex-col w-full items-center justify-center max-w-full;
109
- gap: theme(digitv2.spacers.spacer4);
110
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
111
- background: theme(digitv2.lightTheme.paper-secondary);
112
- padding: theme(digitv2.spacers.spacer4);
113
- height: 9rem;
114
- border-style: dashed;
115
-
116
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
117
- min-width: 18.75rem;
118
- }
119
-
120
- @media (max-width: 30rem) {
121
- min-width: 17.938rem;
122
- }
123
-
124
- @media (min-width: 48rem) {
125
- min-width: 18.75rem;
126
- }
127
-
128
- svg {
129
- flex-shrink: 0;
130
- }
131
-
132
- .drag-drop-text {
133
- @extend .typography.body-s;
134
- @apply items-center;
135
- color: theme(digitv2.lightTheme.text-disabled);
136
- display: flex;
137
- margin: theme(digitv2.spacers.spacer0);
138
-
139
- @media (max-width: 30rem) {
140
- @apply flex-col;
141
- }
142
- }
143
-
144
- &.error {
145
- border-style: dashed !important;
146
- border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
147
- }
148
- }
149
-
150
- .digit-uploadpopup-label {
151
- @extend .typography.body-s;
152
- color: theme(digitv2.lightTheme.text-disabled);
153
- }
154
-
155
- .digit-upload {
156
- @apply h-10;
157
- }
158
-
159
- .digit-uploader-input {
160
- @extend .typography.body-s;
161
- @apply h-10;
162
- background-color: transparent;
163
- border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
164
- padding: theme(digitv2.spacers.spacer2);
165
- color: theme(digitv2.lightTheme.text-primary) !important;
166
-
167
- &:focus {
168
- @apply outline-none;
169
- }
170
-
171
- &.error {
172
- border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
173
- }
174
-
175
- }
176
-
177
- input::placeholder {
178
- color: theme(digitv2.lightTheme.text-disabled) !important;
179
- }
180
-
181
- .digit-upload,
182
- .digit-uploader-input {
183
-
184
- @apply w-full;
185
-
186
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
187
- max-width: 19rem;
188
- min-width: 12.5rem;
189
- }
190
-
191
- @media (max-width: 30rem) {
192
- max-width: 12.313rem;
193
- min-width: 9.75rem;
194
- }
195
-
196
- @media (min-width: 48rem) {
197
- max-width: 29.25rem;
198
- min-width: 12.5rem;
199
- }
200
-
201
- }
202
-
203
- .digit-img-container {
204
- @apply flex flex-wrap max-w-full;
205
- gap: theme(digitv2.spacers.spacer3);
206
-
207
- .preview-container {
208
- @apply relative cursor-pointer h-auto;
209
- width: 6.25rem;
210
- min-height: 6.25rem;
211
-
212
- .overlay {
213
- position: absolute;
214
- top: 0;
215
- left: 0;
216
- width: 6.25rem !important;
217
- height: 6.25rem !important;
218
- background: #6f6f6fb2;
219
- display: flex;
220
- justify-content: center;
221
- align-items: center;
222
-
223
- &.error{
224
- background: rgba(185, 25, 0, 0.2);
225
-
226
- &:hover{
227
- background: transparent;
228
- }
229
- }
230
-
231
- &:hover{
232
- background: transparent;
233
- }
234
- }
235
-
236
- .digit-docupload-icon{
237
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
238
-
239
- &:hover{
240
- box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
241
- }
242
- }
243
-
244
- .preview-file-name{
245
- @extend .typography.body-xs;
246
- @apply whitespace-pre-wrap break-words;
247
- color: theme(digitv2.lightTheme.text-secondary);
248
- word-break: break-word;
249
- cursor: default;
250
- }
251
-
252
- img {
253
- width: 6.25rem !important;
254
- height: 6.25rem !important;
255
- }
256
-
257
- &.inprogress {
258
- background: #6F6F6FB2;
259
- }
260
-
261
- &.error {
262
- img {
263
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
264
- }
265
- }
266
-
267
- &.single.imageFile{
268
- width: 100%;
269
-
270
- img{
271
- width: 100% !important;
272
- }
273
-
274
- .overlay{
275
- width: 100% !important;
276
- }
277
- }
278
- }
279
-
280
- .preview-container.uploadImage.singleUpload {
281
- width: 100%;
282
- height: 100%;
283
-
284
- img{
285
- width: 100% !important;
286
- height: 100% !important;
287
- object-fit: cover;
288
- }
289
- }
290
-
291
- &:not(.uploadImage){
292
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
293
- max-width: 27.5rem;
294
- min-width: 21rem;
295
- }
296
-
297
- @media (max-width: 30rem) {
298
- max-width: 20.563rem;
299
- min-width: 18rem;
300
- }
301
-
302
- @media (min-width: 48rem) {
303
- max-width: 37.5rem;
304
- min-width: 20.75rem;
305
- }
306
- }
307
- }
308
-
309
- .digit-uploader-close-icon {
310
- @apply absolute top-0 right-0 w-6 h-6 cursor-pointer;
311
- background-color: theme(digitv2.lightTheme.primary-2);
312
- padding: theme(digitv2.spacers.spacer1);
313
-
314
- &.error {
315
- background-color: theme(digitv2.lightTheme.alert-error);
316
- }
317
- }
318
-
319
- .digit-upload-helptext {
320
- @extend .typography.body-s;
321
- @apply text-left;
322
- margin: theme(digitv2.spacers.spacer0);
323
- color: theme(digitv2.lightTheme.text-secondary);
324
- }
325
-
326
- .digit-uploaded-file-container {
327
- @apply items-start relative w-full max-w-full flex-wrap;
328
- display: flex !important;
329
- gap: theme(digitv2.spacers.spacer3);
330
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
331
- background-color: theme(digitv2.lightTheme.paper-secondary);
332
- margin: theme(digitv2.spacers.spacer0);
333
- padding: theme(digitv2.spacers.spacer4);
334
- border-radius: theme(digitv2.spacers.spacer0);
335
-
336
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
337
- min-width: 18.75rem;
338
- }
339
-
340
- @media (max-width: 30rem) {
341
- min-width: 17.938rem;
342
- }
343
-
344
- @media (min-width: 48rem) {
345
- min-width: 18.75rem;
346
- }
347
-
348
- .uploaded-file-container-sub {
349
- @apply items-center cursor-pointer;
350
- display: flex !important;
351
- gap: theme(digitv2.spacers.spacer2);
352
-
353
- .uploaded-file-details {
354
- @extend .typography.heading-s;
355
- color: theme(digitv2.lightTheme.text-secondary);
356
- }
357
-
358
- svg {
359
- flex-shrink: 0;
360
- }
361
- }
362
-
363
- .digit-upload-and-download-button {
364
- @apply flex-wrap;
365
- display: flex !important;
366
- gap: theme(digitv2.spacers.spacer4);
367
- margin-left: auto;
368
- margin-right: theme(digitv2.spacers.spacer6);
369
-
370
- &.error-card{
371
- margin-right: theme(digitv2.spacers.spacer0);
372
- }
373
- }
374
-
375
- .digit-uploadpopup-close-icon {
376
- @apply absolute top-0 right-0 w-6 h-6 items-center cursor-pointer;
377
- background: theme(digitv2.lightTheme.generic-background);
378
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
379
- display: flex !important;
380
- justify-content: center;
381
- border-top: none;
382
- border-right: none;
383
-
384
- svg {
385
- flex-shrink: 0;
386
- }
387
- }
388
-
389
- &.error {
390
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
391
-
392
- .digit-uploadpopup-close-icon {
393
- background: theme(digitv2.lightTheme.alert-error);
394
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
395
- border-top: none;
396
- border-right: none;
397
- }
398
-
399
- .uploaded-file-container-sub {
400
-
401
- .uploaded-file-details {
402
- @apply flex-col;
403
- color: theme(digitv2.lightTheme.alert-error);
404
- display: flex;
405
- gap: theme(digitv2.spacers.spacer1);
406
- }
407
- }
408
-
409
- .uploadpopup-error-card {
410
- @apply w-full max-w-full;
411
- margin: theme(digitv2.spacers.spacer0);
412
- }
413
- }
414
- }
415
-
416
- .image-background {
417
- @apply fixed top-0 left-0 right-0 bottom-0 w-full;
418
- height: 100vh;
419
- background-color: theme(digitv2.lightTheme.text-color-primary);
420
- }
421
-
422
- .digit-image-uploader {
423
- @apply flex-col items-center cursor-pointer;
424
- display: flex;
425
- border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
426
- background-color: transparent;
427
- justify-content: center;
428
- gap: 0.188rem;
429
- padding: theme(digitv2.spacers.spacer10);
430
-
431
- width: 100%;
432
-
433
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
434
- min-width: 18.75rem;
435
- }
436
-
437
- @media (max-width: 30rem) {
438
- min-width: 17.938rem;
439
- }
440
-
441
- @media (min-width: 48rem) {
442
- min-width: 18.75rem;
443
- }
444
-
445
- .upload-image-label {
446
- @extend .typography.body-xs;
447
- color: theme(digitv2.lightTheme.primary-1);
448
- }
449
- }
450
-
451
- .webcam-container {
452
- @apply fixed flex-col;
453
- z-index: 1001;
454
- left: 50%;
455
- top: 25%;
456
- transform: translateX(-50%);
457
- gap: theme(digitv2.spacers.spacer6);
458
- background-color: theme(digitv2.lightTheme.paper-primary);
459
- border-radius: theme(digitv2.spacers.spacer1);
460
- padding: theme(digitv2.spacers.spacer6);
461
-
462
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
463
- max-height: 31.25rem;
464
- max-width: 27.5rem;
465
- top:15%;
466
- }
467
-
468
- @media (min-width: 48rem) {
469
- max-width: 45rem;
470
- max-height: 28rem;
471
- }
472
-
473
- @media (max-width: 30rem) {
474
- max-width: 20.5rem;
475
- max-height: 39rem;
476
- top: 4%;
477
- }
478
-
479
-
480
- .video-stream {
481
- width: 100% !important;
482
- height: 100% !important;
483
- max-width: 100%;
484
-
485
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
486
- max-height: 24.5rem;
487
- }
488
-
489
- @media (min-width: 48rem) {
490
- max-height: 17.875rem;
491
- }
492
-
493
- @media (max-width: 30rem) {
494
- max-height: 26rem;
495
- }
496
-
497
- video {
498
- border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
499
- width: 100% !important;
500
- height: 100% !important;
501
- max-width: 100% !important;
502
- }
503
- }
504
-
505
- .cancel-capture-button-wrap {
506
- gap: theme(digitv2.spacers.spacer6);
507
- margin-left: auto;
508
-
509
- @media (max-width: 30rem) {
510
- justify-content: space-between;
511
- margin-left: theme(digitv2.spacers.spacer0);
512
- flex-direction: column;
513
-
514
- button {
515
- @apply w-full;
516
- }
517
- }
518
- }
519
- }
520
-
521
- .capture-heading {
522
- @extend .typography.heading-m;
523
- @apply items-center;
524
- color: #000000;
525
- display: flex;
526
- justify-content: space-between;
527
- }
528
-
529
- .react-doc-viewer {
530
- .image-render {
531
- background-color: transparent;
532
- }
533
- }
534
-
535
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
536
- .digit-upload-image-drawer {
537
- @apply relative;
538
- }
539
- }
540
-
541
- @media (min-width: 48rem) {
542
- .digit-upload-image-drawer {
543
- @apply relative;
544
- }
545
- }
546
-
547
- }
548
-
549
- @keyframes slideInFromBottom {
550
- from {
551
- transform: translateY(100%);
552
- }
553
-
554
- to {
555
- transform: translateY(0);
556
- }
1
+ .digit-upload-image-drawer {
2
+ @apply w-full fixed left-0 right-0 flex-col;
3
+ display: flex;
4
+ background-color: theme(digitv2.lightTheme.paper-primary);
5
+ border-radius: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
6
+ z-index: 1000;
7
+ border-radius: theme(digitv2.spacers.spacer1);
8
+ gap: theme(digitv2.spacers.spacer6);
9
+ padding: theme(digitv2.spacers.spacer6);
10
+
11
+ .image-upload-options {
12
+ @apply h-full;
13
+ display: flex;
14
+
15
+ .upload-options {
16
+ @apply items-center flex-col;
17
+ display: flex;
18
+ flex: 1;
19
+ justify-content: center;
20
+ gap: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
21
+ }
22
+
23
+ .upload-options-label {
24
+ @extend .typography.label;
25
+ @apply cursor-pointer;
26
+ color: theme(digitv2.lightTheme.primary-1);
27
+ }
28
+ }
29
+
30
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
31
+ height: 14.25rem;
32
+ width: 27.5rem;
33
+ left: 50%;
34
+ top: 25%;
35
+ transform: translateX(-50%);
36
+ }
37
+
38
+ @media (min-width: 48rem) {
39
+ width: 37.5rem;
40
+ height: 15rem;
41
+ left: 50%;
42
+ top: 25%;
43
+ transform: translateX(-50%);
44
+ }
45
+
46
+ @media (max-width: 30rem) {
47
+ height: 7.625rem;
48
+ animation: slideInFromBottom 0.5s ease-out forwards;
49
+ }
50
+
51
+
52
+ .capture-close {
53
+ @apply w-8 h-8 absolute top-0 right-0 cursor-pointer mt-sm mr-sm;
54
+ display: flex;
55
+
56
+ svg {
57
+ flex-shrink: 0;
58
+ }
59
+ }
60
+ }
61
+
62
+
63
+ .digit-uploader-wrap {
64
+ @apply flex flex-col;
65
+ gap: theme(digitv2.spacers.spacer3);
66
+
67
+ @media (max-width: 30rem) {
68
+ gap: theme(digitv2.spacers.spacer2);
69
+ }
70
+
71
+ &.error{
72
+ gap:theme(digitv2.spacers.spacer1);
73
+ }
74
+
75
+ .digit-upload-label {
76
+ @extend .typography.label;
77
+ @apply text-left;
78
+ margin: theme(digitv2.spacers.spacer0);
79
+ color: theme(digitv2.lightTheme.text-primary);
80
+ }
81
+
82
+ .digit-uploader-content {
83
+ @apply flex w-full;
84
+ gap: theme(digitv2.spacers.spacer3);
85
+
86
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
87
+ max-width: 27.5rem;
88
+ min-width: 21rem;
89
+ }
90
+
91
+ @media (max-width: 30rem) {
92
+ max-width: 20.563rem;
93
+ min-width: 18rem;
94
+ }
95
+
96
+ @media (min-width: 48rem) {
97
+ max-width: 37.5rem;
98
+ min-width: 20.75rem;
99
+ }
100
+
101
+ }
102
+
103
+ label {
104
+ outline: none !important;
105
+ }
106
+
107
+ .digit-uploader-content-uploadpopup {
108
+ @apply flex flex-col w-full items-center justify-center max-w-full;
109
+ gap: theme(digitv2.spacers.spacer4);
110
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
111
+ background: theme(digitv2.lightTheme.paper-secondary);
112
+ padding: theme(digitv2.spacers.spacer4);
113
+ height: 9rem;
114
+ border-style: dashed;
115
+
116
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
117
+ min-width: 18.75rem;
118
+ }
119
+
120
+ @media (max-width: 30rem) {
121
+ min-width: 17.938rem;
122
+ }
123
+
124
+ @media (min-width: 48rem) {
125
+ min-width: 18.75rem;
126
+ }
127
+
128
+ svg {
129
+ flex-shrink: 0;
130
+ }
131
+
132
+ .drag-drop-text {
133
+ @extend .typography.body-s;
134
+ @apply items-center;
135
+ color: theme(digitv2.lightTheme.text-disabled);
136
+ display: flex;
137
+ margin: theme(digitv2.spacers.spacer0);
138
+
139
+ @media (max-width: 30rem) {
140
+ @apply flex-col;
141
+ }
142
+ }
143
+
144
+ &.error {
145
+ border-style: dashed !important;
146
+ border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
147
+ }
148
+ }
149
+
150
+ .digit-uploadpopup-label {
151
+ @extend .typography.body-s;
152
+ color: theme(digitv2.lightTheme.text-disabled);
153
+ }
154
+
155
+ .digit-upload {
156
+ @apply h-10;
157
+ }
158
+
159
+ .digit-uploader-input {
160
+ @extend .typography.body-s;
161
+ @apply h-10;
162
+ background-color: transparent;
163
+ border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
164
+ padding: theme(digitv2.spacers.spacer2);
165
+ color: theme(digitv2.lightTheme.text-primary) !important;
166
+
167
+ &:focus {
168
+ @apply outline-none;
169
+ }
170
+
171
+ &.error {
172
+ border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
173
+ }
174
+
175
+ }
176
+
177
+ input::placeholder {
178
+ color: theme(digitv2.lightTheme.text-disabled) !important;
179
+ }
180
+
181
+ .digit-upload,
182
+ .digit-uploader-input {
183
+
184
+ @apply w-full;
185
+
186
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
187
+ max-width: 19rem;
188
+ min-width: 12.5rem;
189
+ }
190
+
191
+ @media (max-width: 30rem) {
192
+ max-width: 12.313rem;
193
+ min-width: 9.75rem;
194
+ }
195
+
196
+ @media (min-width: 48rem) {
197
+ max-width: 29.25rem;
198
+ min-width: 12.5rem;
199
+ }
200
+
201
+ }
202
+
203
+ .digit-img-container {
204
+ @apply flex flex-wrap max-w-full;
205
+ gap: theme(digitv2.spacers.spacer3);
206
+
207
+ .preview-container {
208
+ @apply relative cursor-pointer h-auto;
209
+ width: 6.25rem;
210
+ min-height: 6.25rem;
211
+
212
+ .overlay {
213
+ position: absolute;
214
+ top: 0;
215
+ left: 0;
216
+ width: 6.25rem !important;
217
+ height: 6.25rem !important;
218
+ background: #6f6f6fb2;
219
+ display: flex;
220
+ justify-content: center;
221
+ align-items: center;
222
+
223
+ &.error{
224
+ background: rgba(185, 25, 0, 0.2);
225
+
226
+ &:hover{
227
+ background: transparent;
228
+ }
229
+ }
230
+
231
+ &:hover{
232
+ background: transparent;
233
+ }
234
+ }
235
+
236
+ .digit-docupload-icon{
237
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
238
+
239
+ &:hover{
240
+ box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
241
+ }
242
+ }
243
+
244
+ .preview-file-name{
245
+ @extend .typography.body-xs;
246
+ @apply whitespace-pre-wrap break-words;
247
+ color: theme(digitv2.lightTheme.text-secondary);
248
+ word-break: break-word;
249
+ cursor: default;
250
+ }
251
+
252
+ img {
253
+ width: 6.25rem !important;
254
+ height: 6.25rem !important;
255
+ }
256
+
257
+ &.inprogress {
258
+ background: #6F6F6FB2;
259
+ }
260
+
261
+ &.error {
262
+ img {
263
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
264
+ }
265
+ }
266
+
267
+ &.single.imageFile{
268
+ width: 100%;
269
+
270
+ img{
271
+ width: 100% !important;
272
+ }
273
+
274
+ .overlay{
275
+ width: 100% !important;
276
+ }
277
+ }
278
+ }
279
+
280
+ .preview-container.uploadImage.singleUpload {
281
+ width: 100%;
282
+ height: 100%;
283
+
284
+ img{
285
+ width: 100% !important;
286
+ height: 100% !important;
287
+ object-fit: cover;
288
+ }
289
+ }
290
+
291
+ &:not(.uploadImage){
292
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
293
+ max-width: 27.5rem;
294
+ min-width: 21rem;
295
+ }
296
+
297
+ @media (max-width: 30rem) {
298
+ max-width: 20.563rem;
299
+ min-width: 18rem;
300
+ }
301
+
302
+ @media (min-width: 48rem) {
303
+ max-width: 37.5rem;
304
+ min-width: 20.75rem;
305
+ }
306
+ }
307
+ }
308
+
309
+ .digit-uploader-close-icon {
310
+ @apply absolute top-0 right-0 w-6 h-6 cursor-pointer;
311
+ background-color: theme(digitv2.lightTheme.primary-2);
312
+ padding: theme(digitv2.spacers.spacer1);
313
+
314
+ &.error {
315
+ background-color: theme(digitv2.lightTheme.alert-error);
316
+ }
317
+ }
318
+
319
+ .digit-upload-helptext {
320
+ @extend .typography.body-s;
321
+ @apply text-left;
322
+ margin: theme(digitv2.spacers.spacer0);
323
+ color: theme(digitv2.lightTheme.text-secondary);
324
+ }
325
+
326
+ .digit-uploaded-file-container {
327
+ @apply items-start relative w-full max-w-full flex-wrap;
328
+ display: flex !important;
329
+ gap: theme(digitv2.spacers.spacer3);
330
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
331
+ background-color: theme(digitv2.lightTheme.paper-secondary);
332
+ margin: theme(digitv2.spacers.spacer0);
333
+ padding: theme(digitv2.spacers.spacer4);
334
+ border-radius: theme(digitv2.spacers.spacer0);
335
+
336
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
337
+ min-width: 18.75rem;
338
+ }
339
+
340
+ @media (max-width: 30rem) {
341
+ min-width: 17.938rem;
342
+ }
343
+
344
+ @media (min-width: 48rem) {
345
+ min-width: 18.75rem;
346
+ }
347
+
348
+ .uploaded-file-container-sub {
349
+ @apply items-center cursor-pointer;
350
+ display: flex !important;
351
+ gap: theme(digitv2.spacers.spacer2);
352
+
353
+ .uploaded-file-details {
354
+ @extend .typography.heading-s;
355
+ color: theme(digitv2.lightTheme.text-secondary);
356
+ }
357
+
358
+ svg {
359
+ flex-shrink: 0;
360
+ }
361
+ }
362
+
363
+ .digit-upload-and-download-button {
364
+ @apply flex-wrap;
365
+ display: flex !important;
366
+ gap: theme(digitv2.spacers.spacer4);
367
+ margin-left: auto;
368
+ margin-right: theme(digitv2.spacers.spacer6);
369
+
370
+ &.error-card{
371
+ margin-right: theme(digitv2.spacers.spacer0);
372
+ }
373
+ }
374
+
375
+ .digit-uploadpopup-close-icon {
376
+ @apply absolute top-0 right-0 w-6 h-6 items-center cursor-pointer;
377
+ background: theme(digitv2.lightTheme.generic-background);
378
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
379
+ display: flex !important;
380
+ justify-content: center;
381
+ border-top: none;
382
+ border-right: none;
383
+
384
+ svg {
385
+ flex-shrink: 0;
386
+ }
387
+ }
388
+
389
+ &.error {
390
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
391
+
392
+ .digit-uploadpopup-close-icon {
393
+ background: theme(digitv2.lightTheme.alert-error);
394
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
395
+ border-top: none;
396
+ border-right: none;
397
+ }
398
+
399
+ .uploaded-file-container-sub {
400
+
401
+ .uploaded-file-details {
402
+ @apply flex-col;
403
+ color: theme(digitv2.lightTheme.alert-error);
404
+ display: flex;
405
+ gap: theme(digitv2.spacers.spacer1);
406
+ }
407
+ }
408
+
409
+ .uploadpopup-error-card {
410
+ @apply w-full max-w-full;
411
+ margin: theme(digitv2.spacers.spacer0);
412
+ }
413
+ }
414
+ }
415
+
416
+ .image-background {
417
+ @apply fixed top-0 left-0 right-0 bottom-0 w-full;
418
+ height: 100vh;
419
+ background-color: theme(digitv2.lightTheme.text-color-primary);
420
+ }
421
+
422
+ .digit-image-uploader {
423
+ @apply flex-col items-center cursor-pointer;
424
+ display: flex;
425
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
426
+ background-color: transparent;
427
+ justify-content: center;
428
+ gap: 0.188rem;
429
+ padding: theme(digitv2.spacers.spacer10);
430
+
431
+ width: 100%;
432
+
433
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
434
+ min-width: 18.75rem;
435
+ }
436
+
437
+ @media (max-width: 30rem) {
438
+ min-width: 17.938rem;
439
+ }
440
+
441
+ @media (min-width: 48rem) {
442
+ min-width: 18.75rem;
443
+ }
444
+
445
+ .upload-image-label {
446
+ @extend .typography.body-xs;
447
+ color: theme(digitv2.lightTheme.primary-1);
448
+ }
449
+ }
450
+
451
+ .webcam-container {
452
+ @apply fixed flex-col;
453
+ z-index: 1001;
454
+ left: 50%;
455
+ top: 25%;
456
+ transform: translateX(-50%);
457
+ gap: theme(digitv2.spacers.spacer6);
458
+ background-color: theme(digitv2.lightTheme.paper-primary);
459
+ border-radius: theme(digitv2.spacers.spacer1);
460
+ padding: theme(digitv2.spacers.spacer6);
461
+
462
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
463
+ max-height: 31.25rem;
464
+ max-width: 27.5rem;
465
+ top:15%;
466
+ }
467
+
468
+ @media (min-width: 48rem) {
469
+ max-width: 45rem;
470
+ max-height: 28rem;
471
+ }
472
+
473
+ @media (max-width: 30rem) {
474
+ max-width: 20.5rem;
475
+ max-height: 39rem;
476
+ top: 4%;
477
+ }
478
+
479
+
480
+ .video-stream {
481
+ width: 100% !important;
482
+ height: 100% !important;
483
+ max-width: 100%;
484
+
485
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
486
+ max-height: 24.5rem;
487
+ }
488
+
489
+ @media (min-width: 48rem) {
490
+ max-height: 17.875rem;
491
+ }
492
+
493
+ @media (max-width: 30rem) {
494
+ max-height: 26rem;
495
+ }
496
+
497
+ video {
498
+ border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
499
+ width: 100% !important;
500
+ height: 100% !important;
501
+ max-width: 100% !important;
502
+ }
503
+ }
504
+
505
+ .cancel-capture-button-wrap {
506
+ gap: theme(digitv2.spacers.spacer6);
507
+ margin-left: auto;
508
+
509
+ @media (max-width: 30rem) {
510
+ justify-content: space-between;
511
+ margin-left: theme(digitv2.spacers.spacer0);
512
+ flex-direction: column;
513
+
514
+ button {
515
+ @apply w-full;
516
+ }
517
+ }
518
+ }
519
+ }
520
+
521
+ .capture-heading {
522
+ @extend .typography.heading-m;
523
+ @apply items-center;
524
+ color: #000000;
525
+ display: flex;
526
+ justify-content: space-between;
527
+ }
528
+
529
+ .react-doc-viewer {
530
+ .image-render {
531
+ background-color: transparent;
532
+ }
533
+ }
534
+
535
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
536
+ .digit-upload-image-drawer {
537
+ @apply relative;
538
+ }
539
+ }
540
+
541
+ @media (min-width: 48rem) {
542
+ .digit-upload-image-drawer {
543
+ @apply relative;
544
+ }
545
+ }
546
+
547
+ }
548
+
549
+ @keyframes slideInFromBottom {
550
+ from {
551
+ transform: translateY(100%);
552
+ }
553
+
554
+ to {
555
+ transform: translateY(0);
556
+ }
557
557
  }