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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/README.md +11 -2
  3. package/dist/index.css +10295 -3600
  4. package/dist/index.min.css +3 -3
  5. package/package.json +8 -8
  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 +82 -31
  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 +47 -2
  20. package/src/digitv2/components/{uploaderV2.scss → fileUploadV2.scss} +209 -22
  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 +37 -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 +219 -8
  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 +257 -13
  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 +144 -14
  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 +171 -5
  59. package/src/digitv2/pages/employee/workbench.scss +9 -9
  60. package/src/digitv2/typography.scss +24 -9
  61. 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
+ &.serachable{
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;
@@ -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
  }
@@ -134,7 +216,7 @@
134
216
  }
135
217
  }
136
218
  }
137
- &.nestedmultiselect {
219
+ &.nestedmultiselect:not(.unsuccessfulresults){
138
220
  position: relative;
139
221
  &:not(.selectAll)::before {
140
222
  content: "";
@@ -165,6 +247,25 @@
165
247
  border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
166
248
  p {
167
249
  @extend .typography.heading-s;
250
+ font-family: theme(digitv2.fontFamily.sans);
251
+ font-style: theme(digitv2.fontStyle.normal);
252
+ font-weight: theme(digitv2.fontWeight.bold);
253
+ line-height: theme(digitv2.lineHeight.lineheight1);
254
+
255
+ @media (max-aspect-ratio: 9/16) {
256
+ /* Media query for mobile */
257
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
258
+ }
259
+
260
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
261
+ /* Media query for tablets */
262
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
263
+ }
264
+
265
+ @media (min-aspect-ratio: 3/4) {
266
+ /* Media query for desktop */
267
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
268
+ }
168
269
  color: theme(digitv2.lightTheme.paper-primary);
169
270
  }
170
271
  .digit-label {
@@ -181,6 +282,25 @@
181
282
  p {
182
283
  @extend .typography.body-s;
183
284
  @apply w-full overflow-hidden whitespace-no-wrap max-w-full;
285
+ font-family: theme(digitv2.fontFamily.sans);
286
+ font-style: theme(digitv2.fontStyle.normal);
287
+ font-weight: theme(digitv2.fontWeight.regular);
288
+ line-height: theme(digitv2.lineHeight.lineheight2);
289
+
290
+ @media (max-aspect-ratio: 9/16) {
291
+ /* Media query for mobile */
292
+ font-size: theme(digitv2.fontSize.body-s.mobile);
293
+ }
294
+
295
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
296
+ /* Media query for tablets */
297
+ font-size: theme(digitv2.fontSize.body-s.tablet);
298
+ }
299
+
300
+ @media (min-aspect-ratio: 3/4) {
301
+ /* Media query for desktop */
302
+ font-size: theme(digitv2.fontSize.body-s.desktop);
303
+ }
184
304
  color: theme(digitv2.lightTheme.text-primary);
185
305
  margin: theme(digitv2.spacers.spacer0);
186
306
  text-overflow: ellipsis;
@@ -189,6 +309,25 @@
189
309
  background: theme(digitv2.lightTheme.primary-1);
190
310
  p {
191
311
  @extend .typography.heading-s;
312
+ font-family: theme(digitv2.fontFamily.sans);
313
+ font-style: theme(digitv2.fontStyle.normal);
314
+ font-weight: theme(digitv2.fontWeight.bold);
315
+ line-height: theme(digitv2.lineHeight.lineheight1);
316
+
317
+ @media (max-aspect-ratio: 9/16) {
318
+ /* Media query for mobile */
319
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
320
+ }
321
+
322
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
323
+ /* Media query for tablets */
324
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
325
+ }
326
+
327
+ @media (min-aspect-ratio: 3/4) {
328
+ /* Media query for desktop */
329
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
330
+ }
192
331
  color: theme(digitv2.lightTheme.paper-primary);
193
332
  }
194
333
  .digit-label {
@@ -272,6 +411,25 @@
272
411
  .option-des-container {
273
412
  p {
274
413
  @extend .typography.heading-s;
414
+ font-family: theme(digitv2.fontFamily.sans);
415
+ font-style: theme(digitv2.fontStyle.normal);
416
+ font-weight: theme(digitv2.fontWeight.bold);
417
+ line-height: theme(digitv2.lineHeight.lineheight1);
418
+
419
+ @media (max-aspect-ratio: 9/16) {
420
+ /* Media query for mobile */
421
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
422
+ }
423
+
424
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
425
+ /* Media query for tablets */
426
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
427
+ }
428
+
429
+ @media (min-aspect-ratio: 3/4) {
430
+ /* Media query for desktop */
431
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
432
+ }
275
433
  }
276
434
  }
277
435
  .digit-multiselectdropodwn-custom-checkbox {
@@ -296,6 +454,34 @@
296
454
  color: theme(digitv2.lightTheme.primary-1);
297
455
  }
298
456
  }
457
+ &.unsuccessfulresults {
458
+ background-color: theme(digitv2.lightTheme.paper-secondary);
459
+ pointer-events: none;
460
+ span {
461
+ @extend .typography.body-s;
462
+ font-family: theme(digitv2.fontFamily.sans);
463
+ font-style: theme(digitv2.fontStyle.normal);
464
+ font-weight: theme(digitv2.fontWeight.regular);
465
+ line-height: theme(digitv2.lineHeight.lineheight2);
466
+ padding-left: theme(digitv2.spacers.spacer3);
467
+
468
+ @media (max-aspect-ratio: 9/16) {
469
+ /* Media query for mobile */
470
+ font-size: theme(digitv2.fontSize.body-s.mobile);
471
+ }
472
+
473
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
474
+ /* Media query for tablets */
475
+ font-size: theme(digitv2.fontSize.body-s.tablet);
476
+ }
477
+
478
+ @media (min-aspect-ratio: 3/4) {
479
+ /* Media query for desktop */
480
+ font-size: theme(digitv2.fontSize.body-s.desktop);
481
+ }
482
+ color: theme(digitv2.lightTheme.text-disabled);
483
+ }
484
+ }
299
485
  }
300
486
  .digit-cursorPointer {
301
487
  @apply cursor-pointer;
@@ -304,12 +490,37 @@
304
490
  .digit-multiselectdropdown-master-active {
305
491
  .digit-multiselectdropdown-label {
306
492
  p {
493
+ @extend .typography.body-s;
494
+ @media (max-aspect-ratio: 9/16) {
495
+ /* Media query for mobile */
496
+ font-size: theme(digitv2.fontSize.body-s.mobile);
497
+ font-family: theme(digitv2.fontFamily.sans);
498
+ font-style: theme(digitv2.fontStyle.normal);
499
+ font-weight: theme(digitv2.fontWeight.regular);
500
+ line-height: theme(digitv2.lineHeight.lineheight2);
501
+ }
502
+
503
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
504
+ /* Media query for tablets */
505
+ font-size: theme(digitv2.fontSize.body-s.tablet);
506
+ font-family: theme(digitv2.fontFamily.sans);
507
+ font-style: theme(digitv2.fontStyle.normal);
508
+ font-weight: theme(digitv2.fontWeight.regular);
509
+ line-height: theme(digitv2.lineHeight.lineheight2);
510
+ }
511
+
512
+ @media (min-aspect-ratio: 3/4) {
513
+ /* Media query for desktop */
514
+ font-size: theme(digitv2.fontSize.body-s.desktop);
515
+ font-family: theme(digitv2.fontFamily.sans);
516
+ font-style: theme(digitv2.fontStyle.normal);
517
+ font-weight: theme(digitv2.fontWeight.regular);
518
+ line-height: theme(digitv2.lineHeight.lineheight2);
519
+ }
307
520
  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);
521
+ margin: auto;
522
+ margin-left: theme(digitv2.spacers.spacer0);
523
+ text-align: left;
313
524
  }
314
525
  }
315
526
  }
@@ -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.input-border);
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
  }