@egovernments/digit-ui-components-css 0.0.2-beta.9 → 0.2.0-beta.1

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 (64) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/README.md +11 -2
  3. package/dist/index.css +10775 -3688
  4. package/dist/index.min.css +3 -3
  5. package/package.json +8 -9
  6. package/src/digitv2/components/accordionV2.scss +214 -0
  7. package/src/digitv2/components/{infoCardV2.scss → alertCardV2.scss} +1 -4
  8. package/src/digitv2/components/backLinkV2.scss +1 -1
  9. package/src/digitv2/components/bottomSheetV2.scss +121 -0
  10. package/src/digitv2/components/breadcrumbV2.scss +38 -0
  11. package/src/digitv2/components/buttonsV2.scss +85 -29
  12. package/src/digitv2/components/cardV2.scss +498 -0
  13. package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
  14. package/src/digitv2/components/cardlabelV2.scss +8 -0
  15. package/src/digitv2/components/checkboxV2.scss +54 -6
  16. package/src/digitv2/components/chipV2.scss +39 -0
  17. package/src/digitv2/components/dividerV2.scss +13 -0
  18. package/src/digitv2/components/errorMessageV2.scss +29 -8
  19. package/src/digitv2/components/fieldV1.scss +52 -2
  20. package/src/digitv2/components/{uploaderV2.scss → fileUploadV2.scss} +163 -9
  21. package/src/digitv2/components/filterCardV2.scss +417 -0
  22. package/src/digitv2/components/footerV2.scss +208 -0
  23. package/src/digitv2/components/formCardV2.scss +234 -0
  24. package/src/digitv2/components/hamburgerV2.scss +555 -0
  25. package/src/digitv2/components/headerV2.scss +426 -0
  26. package/src/digitv2/components/headerdropdownV2.scss +233 -0
  27. package/src/digitv2/components/labelFieldPairV2.scss +45 -11
  28. package/src/digitv2/components/landingpagecardV2.scss +278 -0
  29. package/src/digitv2/components/loaderV2.scss +47 -0
  30. package/src/digitv2/components/menuCardV2.scss +116 -0
  31. package/src/digitv2/components/metricCardV2.scss +151 -0
  32. package/src/digitv2/components/mobileNumberV2.scss +1 -1
  33. package/src/digitv2/components/multiSelectDropdownV2.scss +225 -9
  34. package/src/digitv2/components/otpInputV2.scss +99 -0
  35. package/src/digitv2/components/panelCardV2.scss +19 -0
  36. package/src/digitv2/components/panelV2.scss +19 -0
  37. package/src/digitv2/components/popUpV2.scss +86 -2
  38. package/src/digitv2/components/radiobtnV2.scss +35 -6
  39. package/src/digitv2/components/selectDropdownV2.scss +258 -14
  40. package/src/digitv2/components/selectionTagV2.scss +102 -0
  41. package/src/digitv2/components/sidePanelV2.scss +222 -0
  42. package/src/digitv2/components/sidenavV2.scss +516 -0
  43. package/src/digitv2/components/stepperV2.scss +106 -6
  44. package/src/digitv2/components/summaryCardFieldPairV2.scss +83 -0
  45. package/src/digitv2/components/summaryCardV2.scss +100 -0
  46. package/src/digitv2/components/switchV2.scss +112 -0
  47. package/src/digitv2/components/tabV2.scss +126 -0
  48. package/src/digitv2/components/tableV2.scss +697 -0
  49. package/src/digitv2/components/tagV2.scss +108 -0
  50. package/src/digitv2/components/textInputV2.scss +5 -3
  51. package/src/digitv2/components/textareaV2.scss +1 -1
  52. package/src/digitv2/components/textblockV2.scss +38 -0
  53. package/src/digitv2/components/timelineV2.scss +145 -15
  54. package/src/digitv2/components/toastV2.scss +79 -1
  55. package/src/digitv2/components/toggleV2.scss +38 -0
  56. package/src/digitv2/components/tooltipwrapperV2.scss +365 -0
  57. package/src/digitv2/components/treeSelectV2.scss +58 -1
  58. package/src/digitv2/index.scss +175 -9
  59. package/src/digitv2/pages/employee/inboxsearchcomposer.scss +409 -0
  60. package/src/digitv2/pages/employee/index.scss +2 -0
  61. package/src/digitv2/pages/employee/reactdatatable.scss +132 -0
  62. package/src/digitv2/pages/employee/workbench.scss +10 -10
  63. package/src/digitv2/typography.scss +24 -9
  64. package/src/index.scss +0 -4
@@ -9,7 +9,7 @@
9
9
 
10
10
  @media (max-aspect-ratio: 9/16) {
11
11
  /* Media query for mobile */
12
- max-width: 20.5rem;
12
+ max-width: 100%;
13
13
  width: 100%;
14
14
  }
15
15
 
@@ -24,9 +24,36 @@
24
24
  @apply relative h-10 w-full bg-white;
25
25
  border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
26
26
  input[type="text"] {
27
- @extend .typography.body-l;
27
+ @extend .typography.body-s;
28
+ @media (max-aspect-ratio: 9/16) {
29
+ /* Media query for mobile */
30
+ font-size: theme(digitv2.fontSize.body-s.mobile);
31
+ font-family: theme(digitv2.fontFamily.sans);
32
+ font-style: theme(digitv2.fontStyle.normal);
33
+ font-weight: theme(digitv2.fontWeight.regular);
34
+ line-height: theme(digitv2.lineHeight.lineheight2);
35
+ }
36
+
37
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
38
+ /* Media query for tablets */
39
+ font-size: theme(digitv2.fontSize.body-s.tablet);
40
+ font-family: theme(digitv2.fontFamily.sans);
41
+ font-style: theme(digitv2.fontStyle.normal);
42
+ font-weight: theme(digitv2.fontWeight.regular);
43
+ line-height: theme(digitv2.lineHeight.lineheight2);
44
+ }
45
+
46
+ @media (min-aspect-ratio: 3/4) {
47
+ /* Media query for desktop */
48
+ font-size: theme(digitv2.fontSize.body-s.desktop);
49
+ font-family: theme(digitv2.fontFamily.sans);
50
+ font-style: theme(digitv2.fontStyle.normal);
51
+ font-weight: theme(digitv2.fontWeight.regular);
52
+ line-height: theme(digitv2.lineHeight.lineheight2);
53
+ }
28
54
  @apply absolute top-0 left-0 p-sm min-h-full min-w-full opacity-0;
29
55
  letter-spacing: theme(digitv2.spacers.spacer0);
56
+ padding-left: 1%;
30
57
  &:focus {
31
58
  @apply outline-none;
32
59
  }
@@ -38,6 +65,23 @@
38
65
  }
39
66
  }
40
67
  }
68
+
69
+ .digit-multiselectdropdown-master-active{
70
+ &.searchable{
71
+ input[type="text"]{
72
+ opacity: 1;
73
+ width: calc(100%-24px);
74
+ }
75
+
76
+ .digit-multiselectdropdown-label {
77
+ svg {
78
+ z-index: 1;
79
+ cursor: pointer;
80
+ }
81
+ }
82
+ }
83
+ }
84
+
41
85
  .digit-multiselectdropdown-master {
42
86
  &.disabled {
43
87
  pointer-events: none !important;
@@ -69,7 +113,7 @@
69
113
  }
70
114
  .digit-nested-category {
71
115
  @apply flex items-center flex-shrink-0;
72
- background: theme(digitv2.lightTheme.background);
116
+ background: theme(digitv2.lightTheme.generic-background);
73
117
  height: 2.4375rem;
74
118
  padding: theme(digitv2.spacers.spacer4) 0.625rem;
75
119
  gap: 0.625rem;
@@ -83,6 +127,25 @@
83
127
  }
84
128
  .digit-category-name {
85
129
  @extend .typography.heading-s;
130
+ font-family: theme(digitv2.fontFamily.sans);
131
+ font-style: theme(digitv2.fontStyle.normal);
132
+ font-weight: theme(digitv2.fontWeight.bold);
133
+ line-height: theme(digitv2.lineHeight.lineheight1);
134
+
135
+ @media (max-aspect-ratio: 9/16) {
136
+ /* Media query for mobile */
137
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
138
+ }
139
+
140
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
141
+ /* Media query for tablets */
142
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
143
+ }
144
+
145
+ @media (min-aspect-ratio: 3/4) {
146
+ /* Media query for desktop */
147
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
148
+ }
86
149
  color: theme(digitv2.lightTheme.text-primary);
87
150
  }
88
151
  .digit-category-selectAll {
@@ -92,6 +155,25 @@
92
155
  align-items: center;
93
156
  .category-selectAll-label {
94
157
  @extend .typography.body-s;
158
+ font-family: theme(digitv2.fontFamily.sans);
159
+ font-style: theme(digitv2.fontStyle.normal);
160
+ font-weight: theme(digitv2.fontWeight.regular);
161
+ line-height: theme(digitv2.lineHeight.lineheight2);
162
+
163
+ @media (max-aspect-ratio: 9/16) {
164
+ /* Media query for mobile */
165
+ font-size: theme(digitv2.fontSize.body-s.mobile);
166
+ }
167
+
168
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
169
+ /* Media query for tablets */
170
+ font-size: theme(digitv2.fontSize.body-s.tablet);
171
+ }
172
+
173
+ @media (min-aspect-ratio: 3/4) {
174
+ /* Media query for desktop */
175
+ font-size: theme(digitv2.fontSize.body-s.desktop);
176
+ }
95
177
  text-align: left;
96
178
  color: theme(digitv2.lightTheme.primary-1);
97
179
  }
@@ -121,6 +203,11 @@
121
203
  }
122
204
  .digit-multiselectdropodwn-menuitem {
123
205
  @apply flex w-full bg-white justify-start items-center;
206
+
207
+ &.frozen{
208
+ pointer-events: none;
209
+ opacity: 0.6;
210
+ }
124
211
  min-height: 2.438rem;
125
212
  .option-des-container {
126
213
  @apply w-full max-w-full overflow-hidden box-border;
@@ -134,7 +221,7 @@
134
221
  }
135
222
  }
136
223
  }
137
- &.nestedmultiselect {
224
+ &.nestedmultiselect:not(.unsuccessfulresults){
138
225
  position: relative;
139
226
  &:not(.selectAll)::before {
140
227
  content: "";
@@ -165,6 +252,25 @@
165
252
  border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
166
253
  p {
167
254
  @extend .typography.heading-s;
255
+ font-family: theme(digitv2.fontFamily.sans);
256
+ font-style: theme(digitv2.fontStyle.normal);
257
+ font-weight: theme(digitv2.fontWeight.bold);
258
+ line-height: theme(digitv2.lineHeight.lineheight1);
259
+
260
+ @media (max-aspect-ratio: 9/16) {
261
+ /* Media query for mobile */
262
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
263
+ }
264
+
265
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
266
+ /* Media query for tablets */
267
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
268
+ }
269
+
270
+ @media (min-aspect-ratio: 3/4) {
271
+ /* Media query for desktop */
272
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
273
+ }
168
274
  color: theme(digitv2.lightTheme.paper-primary);
169
275
  }
170
276
  .digit-label {
@@ -181,6 +287,25 @@
181
287
  p {
182
288
  @extend .typography.body-s;
183
289
  @apply w-full overflow-hidden whitespace-no-wrap max-w-full;
290
+ font-family: theme(digitv2.fontFamily.sans);
291
+ font-style: theme(digitv2.fontStyle.normal);
292
+ font-weight: theme(digitv2.fontWeight.regular);
293
+ line-height: theme(digitv2.lineHeight.lineheight2);
294
+
295
+ @media (max-aspect-ratio: 9/16) {
296
+ /* Media query for mobile */
297
+ font-size: theme(digitv2.fontSize.body-s.mobile);
298
+ }
299
+
300
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
301
+ /* Media query for tablets */
302
+ font-size: theme(digitv2.fontSize.body-s.tablet);
303
+ }
304
+
305
+ @media (min-aspect-ratio: 3/4) {
306
+ /* Media query for desktop */
307
+ font-size: theme(digitv2.fontSize.body-s.desktop);
308
+ }
184
309
  color: theme(digitv2.lightTheme.text-primary);
185
310
  margin: theme(digitv2.spacers.spacer0);
186
311
  text-overflow: ellipsis;
@@ -189,6 +314,25 @@
189
314
  background: theme(digitv2.lightTheme.primary-1);
190
315
  p {
191
316
  @extend .typography.heading-s;
317
+ font-family: theme(digitv2.fontFamily.sans);
318
+ font-style: theme(digitv2.fontStyle.normal);
319
+ font-weight: theme(digitv2.fontWeight.bold);
320
+ line-height: theme(digitv2.lineHeight.lineheight1);
321
+
322
+ @media (max-aspect-ratio: 9/16) {
323
+ /* Media query for mobile */
324
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
325
+ }
326
+
327
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
328
+ /* Media query for tablets */
329
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
330
+ }
331
+
332
+ @media (min-aspect-ratio: 3/4) {
333
+ /* Media query for desktop */
334
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
335
+ }
192
336
  color: theme(digitv2.lightTheme.paper-primary);
193
337
  }
194
338
  .digit-label {
@@ -272,6 +416,25 @@
272
416
  .option-des-container {
273
417
  p {
274
418
  @extend .typography.heading-s;
419
+ font-family: theme(digitv2.fontFamily.sans);
420
+ font-style: theme(digitv2.fontStyle.normal);
421
+ font-weight: theme(digitv2.fontWeight.bold);
422
+ line-height: theme(digitv2.lineHeight.lineheight1);
423
+
424
+ @media (max-aspect-ratio: 9/16) {
425
+ /* Media query for mobile */
426
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
427
+ }
428
+
429
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
430
+ /* Media query for tablets */
431
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
432
+ }
433
+
434
+ @media (min-aspect-ratio: 3/4) {
435
+ /* Media query for desktop */
436
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
437
+ }
275
438
  }
276
439
  }
277
440
  .digit-multiselectdropodwn-custom-checkbox {
@@ -296,6 +459,34 @@
296
459
  color: theme(digitv2.lightTheme.primary-1);
297
460
  }
298
461
  }
462
+ &.unsuccessfulresults {
463
+ background-color: theme(digitv2.lightTheme.paper-secondary);
464
+ pointer-events: none;
465
+ span {
466
+ @extend .typography.body-s;
467
+ font-family: theme(digitv2.fontFamily.sans);
468
+ font-style: theme(digitv2.fontStyle.normal);
469
+ font-weight: theme(digitv2.fontWeight.regular);
470
+ line-height: theme(digitv2.lineHeight.lineheight2);
471
+ padding-left: theme(digitv2.spacers.spacer3);
472
+
473
+ @media (max-aspect-ratio: 9/16) {
474
+ /* Media query for mobile */
475
+ font-size: theme(digitv2.fontSize.body-s.mobile);
476
+ }
477
+
478
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
479
+ /* Media query for tablets */
480
+ font-size: theme(digitv2.fontSize.body-s.tablet);
481
+ }
482
+
483
+ @media (min-aspect-ratio: 3/4) {
484
+ /* Media query for desktop */
485
+ font-size: theme(digitv2.fontSize.body-s.desktop);
486
+ }
487
+ color: theme(digitv2.lightTheme.text-disabled);
488
+ }
489
+ }
299
490
  }
300
491
  .digit-cursorPointer {
301
492
  @apply cursor-pointer;
@@ -304,12 +495,37 @@
304
495
  .digit-multiselectdropdown-master-active {
305
496
  .digit-multiselectdropdown-label {
306
497
  p {
498
+ @extend .typography.body-s;
499
+ @media (max-aspect-ratio: 9/16) {
500
+ /* Media query for mobile */
501
+ font-size: theme(digitv2.fontSize.body-s.mobile);
502
+ font-family: theme(digitv2.fontFamily.sans);
503
+ font-style: theme(digitv2.fontStyle.normal);
504
+ font-weight: theme(digitv2.fontWeight.regular);
505
+ line-height: theme(digitv2.lineHeight.lineheight2);
506
+ }
507
+
508
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
509
+ /* Media query for tablets */
510
+ font-size: theme(digitv2.fontSize.body-s.tablet);
511
+ font-family: theme(digitv2.fontFamily.sans);
512
+ font-style: theme(digitv2.fontStyle.normal);
513
+ font-weight: theme(digitv2.fontWeight.regular);
514
+ line-height: theme(digitv2.lineHeight.lineheight2);
515
+ }
516
+
517
+ @media (min-aspect-ratio: 3/4) {
518
+ /* Media query for desktop */
519
+ font-size: theme(digitv2.fontSize.body-s.desktop);
520
+ font-family: theme(digitv2.fontFamily.sans);
521
+ font-style: theme(digitv2.fontStyle.normal);
522
+ font-weight: theme(digitv2.fontWeight.regular);
523
+ line-height: theme(digitv2.lineHeight.lineheight2);
524
+ }
307
525
  white-space: pre;
308
- margin: auto;
309
- margin-left: theme(digitv2.spacers.spacer0);
310
- padding-left: 1%;
311
- font-size: theme(digitv2.spacers.spacer4);
312
- line-height: theme(digitv2.spacers.spacer6);
526
+ margin: auto;
527
+ margin-left: theme(digitv2.spacers.spacer0);
528
+ text-align: left;
313
529
  }
314
530
  }
315
531
  }
@@ -0,0 +1,99 @@
1
+ .digit-label-otp-wrapper {
2
+ display: flex !important;
3
+ align-items: center;
4
+ flex-direction: column;
5
+ gap: theme(digitv2.spacers.spacer4);
6
+ justify-content: flex-start;
7
+
8
+ &.inline {
9
+ flex-direction: row;
10
+ align-items: center;
11
+ }
12
+
13
+ .digit-otp-label {
14
+ @extend .typography.body-l;
15
+ color: theme(digitv2.lightTheme.text-primary);
16
+ }
17
+
18
+ .otp-input-container {
19
+ justify-content: center;
20
+ gap: theme(digitv2.spacers.spacer3);
21
+ display: flex !important;
22
+ }
23
+
24
+
25
+ .otp-error-wrapper{
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ gap:theme(digitv2.spacers.spacer2);
30
+ flex-direction: column !important;
31
+
32
+ .digit-error-icon-message-wrap {
33
+ width: fit-content;
34
+ }
35
+ }
36
+
37
+ .otp-input {
38
+ @extend .typography.heading-m;
39
+ width: 3.125rem;
40
+ height: 3.125rem;
41
+ text-align: center;
42
+ color: theme(digitv2.lightTheme.text-primary);
43
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
44
+ outline: none;
45
+ transition: border-color 0.3s ease-in-out;
46
+ font-family: theme(digitv2.fontFamily.sans);
47
+ font-style: theme(digitv2.fontStyle.normal);
48
+ font-weight: theme(digitv2.fontWeight.bold);
49
+ line-height: theme(digitv2.lineHeight.lineheight1);
50
+
51
+ &.error {
52
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
53
+ }
54
+
55
+ @media (max-aspect-ratio: 9/16) {
56
+ /* Media query for mobile */
57
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
58
+ }
59
+
60
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
61
+ /* Media query for tablets */
62
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
63
+ }
64
+
65
+ @media (min-aspect-ratio: 3/4) {
66
+ /* Media query for desktop */
67
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
68
+ }
69
+ }
70
+
71
+ .otp-input:focus {
72
+ border-color: theme(digitv2.lightTheme.primary-1);
73
+ }
74
+
75
+ .otp-input::placeholder {
76
+ @extend .typography.heading-m;
77
+ color: theme(digitv2.lightTheme.text-disabled);
78
+ font-family: theme(digitv2.fontFamily.sans);
79
+ font-style: theme(digitv2.fontStyle.normal);
80
+ font-weight: theme(digitv2.fontWeight.bold);
81
+ line-height: theme(digitv2.lineHeight.lineheight1);
82
+
83
+ @media (max-aspect-ratio: 9/16) {
84
+ /* Media query for mobile */
85
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
86
+ }
87
+
88
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
89
+ /* Media query for tablets */
90
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
91
+ }
92
+
93
+ @media (min-aspect-ratio: 3/4) {
94
+ /* Media query for desktop */
95
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
96
+ }
97
+ }
98
+
99
+ }
@@ -84,6 +84,25 @@
84
84
 
85
85
  .digit-panelcard-description {
86
86
  @extend .typography.body-s;
87
+ font-family: theme(digitv2.fontFamily.sans);
88
+ font-style: theme(digitv2.fontStyle.normal);
89
+ font-weight: theme(digitv2.fontWeight.regular);
90
+ line-height: theme(digitv2.lineHeight.lineheight2);
91
+
92
+ @media (max-aspect-ratio: 9/16) {
93
+ /* Media query for mobile */
94
+ font-size: theme(digitv2.fontSize.body-s.mobile);
95
+ }
96
+
97
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
98
+ /* Media query for tablets */
99
+ font-size: theme(digitv2.fontSize.body-s.tablet);
100
+ }
101
+
102
+ @media (min-aspect-ratio: 3/4) {
103
+ /* Media query for desktop */
104
+ font-size: theme(digitv2.fontSize.body-s.desktop);
105
+ }
87
106
  color: theme(digitv2.lightTheme.generic-inputborder);
88
107
  }
89
108
 
@@ -107,6 +107,25 @@
107
107
 
108
108
  .digit-panel-response {
109
109
  @extend .typography.heading-m;
110
+ font-family: theme(digitv2.fontFamily.sans);
111
+ font-style: theme(digitv2.fontStyle.normal);
112
+ font-weight: theme(digitv2.fontWeight.bold);
113
+ line-height: theme(digitv2.lineHeight.lineheight1);
114
+
115
+ @media (max-aspect-ratio: 9/16) {
116
+ /* Media query for mobile */
117
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
118
+ }
119
+
120
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
121
+ /* Media query for tablets */
122
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
123
+ }
124
+
125
+ @media (min-aspect-ratio: 3/4) {
126
+ /* Media query for desktop */
127
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
128
+ }
110
129
  color: theme(digitv2.lightTheme.paper-primary);
111
130
  line-height: normal;
112
131
  }
@@ -21,7 +21,9 @@
21
21
  display: flex;
22
22
  top: 50%;
23
23
  left: 50%;
24
- transform: translate(-50%, -50%);
24
+ transform: translate(-50%, -50%) scale(0);
25
+ opacity: 0;
26
+ animation: scaleIn 300ms ease-in-out forwards;
25
27
 
26
28
  @media (min-width: 48rem) {
27
29
  max-height: 86%;
@@ -141,6 +143,25 @@
141
143
 
142
144
  .digit-popup-children-wrap {
143
145
  @extend .typography.body-s;
146
+ font-family: theme(digitv2.fontFamily.sans);
147
+ font-style: theme(digitv2.fontStyle.normal);
148
+ font-weight: theme(digitv2.fontWeight.regular);
149
+ line-height: theme(digitv2.lineHeight.lineheight2);
150
+
151
+ @media (max-aspect-ratio: 9/16) {
152
+ /* Media query for mobile */
153
+ font-size: theme(digitv2.fontSize.body-s.mobile);
154
+ }
155
+
156
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
157
+ /* Media query for tablets */
158
+ font-size: theme(digitv2.fontSize.body-s.tablet);
159
+ }
160
+
161
+ @media (min-aspect-ratio: 3/4) {
162
+ /* Media query for desktop */
163
+ font-size: theme(digitv2.fontSize.body-s.desktop);
164
+ }
144
165
  @apply overflow-hidden overflow-y-auto flex-col;
145
166
  display: flex;
146
167
  flex: 1;
@@ -148,6 +169,32 @@
148
169
 
149
170
  .digit-popup-description {
150
171
  @extend .typography.body-s;
172
+ @media (max-aspect-ratio: 9/16) {
173
+ /* Media query for mobile */
174
+ font-size: theme(digitv2.fontSize.body-s.mobile);
175
+ font-family: theme(digitv2.fontFamily.sans);
176
+ font-style: theme(digitv2.fontStyle.normal);
177
+ font-weight: theme(digitv2.fontWeight.regular);
178
+ line-height: theme(digitv2.lineHeight.lineheight2);
179
+ }
180
+
181
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
182
+ /* Media query for tablets */
183
+ font-size: theme(digitv2.fontSize.body-s.tablet);
184
+ font-family: theme(digitv2.fontFamily.sans);
185
+ font-style: theme(digitv2.fontStyle.normal);
186
+ font-weight: theme(digitv2.fontWeight.regular);
187
+ line-height: theme(digitv2.lineHeight.lineheight2);
188
+ }
189
+
190
+ @media (min-aspect-ratio: 3/4) {
191
+ /* Media query for desktop */
192
+ font-size: theme(digitv2.fontSize.body-s.desktop);
193
+ font-family: theme(digitv2.fontFamily.sans);
194
+ font-style: theme(digitv2.fontStyle.normal);
195
+ font-weight: theme(digitv2.fontWeight.regular);
196
+ line-height: theme(digitv2.lineHeight.lineheight2);
197
+ }
151
198
  color: theme(digitv2.lightTheme.text-primary);
152
199
  }
153
200
 
@@ -234,6 +281,17 @@
234
281
  width: 100%;
235
282
  }
236
283
  }
284
+
285
+ &.equal-buttons{
286
+ width: 100%;
287
+
288
+ @media (min-width: 30.063rem) {
289
+
290
+ button {
291
+ flex: 1;
292
+ }
293
+ }
294
+ }
237
295
  }
238
296
 
239
297
 
@@ -304,6 +362,10 @@
304
362
  }
305
363
  }
306
364
 
365
+ .digit-popup-wrapper.closing{
366
+ animation: scaleOut 300ms ease-in-out forwards;
367
+ }
368
+
307
369
  .digit-popup-children-wrap::-webkit-scrollbar {
308
370
  width: theme(digitv2.spacers.spacer2);
309
371
  background-color: theme(digitv2.lightTheme.generic-background);
@@ -317,4 +379,26 @@
317
379
  .digit-popup-children-wrap::-webkit-scrollbar-thumb {
318
380
  background-color: theme(digitv2.lightTheme.generic-divider);
319
381
  border-radius: 0.563rem;
320
- }
382
+ }
383
+
384
+ @keyframes popupscaleIn {
385
+ 0% {
386
+ transform: translate(-50%, -50%) scale(0);
387
+ opacity: 0;
388
+ }
389
+ 100% {
390
+ transform: translate(-50%, -50%) scale(1);
391
+ opacity: 1;
392
+ }
393
+ }
394
+
395
+ @keyframes popupscaleOut {
396
+ 0% {
397
+ transform: translate(-50%, -50%) scale(1);
398
+ opacity: 1;
399
+ }
400
+ 100% {
401
+ transform: translate(-50%, -50%) scale(0);
402
+ opacity: 0;
403
+ }
404
+ }
@@ -12,6 +12,10 @@
12
12
  @apply block mb-md;
13
13
  }
14
14
 
15
+ &.vertical{
16
+ flex-direction: column
17
+ }
18
+
15
19
  .digit-radio-btn-wrap {
16
20
  @apply block float-left relative;
17
21
 
@@ -51,13 +55,16 @@
51
55
  pointer-events: none !important;
52
56
  }
53
57
 
54
- &.disabled,
55
- &.preselected {
58
+ &:not(.preselected):not(.has-preselected).disabled{
56
59
  label {
57
60
  color: theme(digitv2.lightTheme.text-disabled);
58
61
  }
59
62
  }
60
63
 
64
+ &.label-first{
65
+ flex-direction: row-reverse;
66
+ }
67
+
61
68
  }
62
69
 
63
70
  .radio-option-container label:only-child {
@@ -76,6 +83,26 @@
76
83
 
77
84
  label {
78
85
  @extend .typography.body-s;
86
+ font-family: theme(digitv2.fontFamily.sans);
87
+ font-style: theme(digitv2.fontStyle.normal);
88
+ font-weight: theme(digitv2.fontWeight.regular);
89
+ line-height: theme(digitv2.lineHeight.lineheight2);
90
+ margin-top: 0.065rem;
91
+
92
+ @media (max-aspect-ratio: 9/16) {
93
+ /* Media query for mobile */
94
+ font-size: theme(digitv2.fontSize.body-s.mobile);
95
+ }
96
+
97
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
98
+ /* Media query for tablets */
99
+ font-size: theme(digitv2.fontSize.body-s.tablet);
100
+ }
101
+
102
+ @media (min-aspect-ratio: 3/4) {
103
+ /* Media query for desktop */
104
+ font-size: theme(digitv2.fontSize.body-s.desktop);
105
+ }
79
106
  color: theme(digitv2.lightTheme.text-primary);
80
107
  overflow-wrap: anywhere;
81
108
  }
@@ -89,9 +116,10 @@
89
116
  }
90
117
 
91
118
  .digit-radio-btn-wrap input:checked~.digit-radio-btn-checkmark:after {
92
- @apply block h-3 w-3 rounded-full absolute;
119
+ @apply flex h-3 w-3 rounded-full absolute items-center;
120
+ left: 50%;
121
+ transform: translate(-50%);
93
122
  top: 25%;
94
- left: 25%;
95
123
  background-color: theme(digitv2.lightTheme.primary-1);
96
124
  }
97
125
 
@@ -100,9 +128,10 @@
100
128
  }
101
129
 
102
130
  .preselected .digit-radio-btn-wrap input:checked~.digit-radio-btn-checkmark:after {
103
- @apply block h-3 w-3 rounded-full absolute;
131
+ @apply flex h-3 w-3 rounded-full absolute items-center;
132
+ left: 50%;
133
+ transform: translate(-50%);
104
134
  top: 25%;
105
- left: 25%;
106
135
  background-color: theme(digitv2.lightTheme.text-disabled);
107
136
  }
108
137
  }