@egovernments/digit-ui-components-css 0.0.2-beta.7 → 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.
- package/CHANGELOG.md +154 -0
- package/README.md +11 -2
- package/dist/index.css +10789 -3684
- package/dist/index.min.css +3 -3
- package/package.json +8 -8
- package/src/digitv2/components/accordionV2.scss +214 -0
- package/src/digitv2/components/{infoCardV2.scss → alertCardV2.scss} +1 -4
- package/src/digitv2/components/backLinkV2.scss +1 -1
- package/src/digitv2/components/bottomSheetV2.scss +121 -0
- package/src/digitv2/components/breadcrumbV2.scss +38 -0
- package/src/digitv2/components/buttonsV2.scss +85 -29
- package/src/digitv2/components/cardV2.scss +498 -0
- package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
- package/src/digitv2/components/cardlabelV2.scss +8 -0
- package/src/digitv2/components/checkboxV2.scss +54 -6
- package/src/digitv2/components/chipV2.scss +39 -0
- package/src/digitv2/components/dividerV2.scss +13 -0
- package/src/digitv2/components/errorMessageV2.scss +29 -8
- package/src/digitv2/components/fieldV1.scss +52 -2
- package/src/digitv2/components/{uploaderV2.scss → fileUploadV2.scss} +209 -22
- package/src/digitv2/components/filterCardV2.scss +417 -0
- package/src/digitv2/components/footerV2.scss +208 -0
- package/src/digitv2/components/formCardV2.scss +234 -0
- package/src/digitv2/components/hamburgerV2.scss +555 -0
- package/src/digitv2/components/headerV2.scss +426 -0
- package/src/digitv2/components/headerdropdownV2.scss +233 -0
- package/src/digitv2/components/labelFieldPairV2.scss +45 -11
- package/src/digitv2/components/landingpagecardV2.scss +278 -0
- package/src/digitv2/components/loaderV2.scss +47 -0
- package/src/digitv2/components/menuCardV2.scss +116 -0
- package/src/digitv2/components/metricCardV2.scss +151 -0
- package/src/digitv2/components/mobileNumberV2.scss +1 -1
- package/src/digitv2/components/multiSelectDropdownV2.scss +225 -9
- package/src/digitv2/components/otpInputV2.scss +99 -0
- package/src/digitv2/components/panelCardV2.scss +19 -0
- package/src/digitv2/components/panelV2.scss +19 -0
- package/src/digitv2/components/popUpV2.scss +86 -2
- package/src/digitv2/components/radiobtnV2.scss +35 -6
- package/src/digitv2/components/selectDropdownV2.scss +258 -14
- package/src/digitv2/components/selectionTagV2.scss +102 -0
- package/src/digitv2/components/sidePanelV2.scss +222 -0
- package/src/digitv2/components/sidenavV2.scss +516 -0
- package/src/digitv2/components/stepperV2.scss +106 -6
- package/src/digitv2/components/summaryCardFieldPairV2.scss +83 -0
- package/src/digitv2/components/summaryCardV2.scss +100 -0
- package/src/digitv2/components/switchV2.scss +112 -0
- package/src/digitv2/components/tabV2.scss +126 -0
- package/src/digitv2/components/tableV2.scss +697 -0
- package/src/digitv2/components/tagV2.scss +108 -0
- package/src/digitv2/components/textInputV2.scss +5 -3
- package/src/digitv2/components/textareaV2.scss +1 -1
- package/src/digitv2/components/textblockV2.scss +38 -0
- package/src/digitv2/components/timelineV2.scss +145 -15
- package/src/digitv2/components/toastV2.scss +79 -1
- package/src/digitv2/components/toggleV2.scss +38 -0
- package/src/digitv2/components/tooltipwrapperV2.scss +365 -0
- package/src/digitv2/components/treeSelectV2.scss +58 -1
- package/src/digitv2/index.scss +175 -9
- package/src/digitv2/pages/employee/inboxsearchcomposer.scss +409 -0
- package/src/digitv2/pages/employee/index.scss +2 -0
- package/src/digitv2/pages/employee/reactdatatable.scss +132 -0
- package/src/digitv2/pages/employee/workbench.scss +10 -10
- package/src/digitv2/typography.scss +24 -9
- package/src/index.scss +0 -4
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
@media (max-aspect-ratio: 9/16) {
|
|
8
8
|
/* Media query for mobile */
|
|
9
|
-
max-width:
|
|
9
|
+
max-width: 100%;
|
|
10
10
|
width: 100%;
|
|
11
11
|
}
|
|
12
12
|
@media (min-aspect-ratio: 3/4) {
|
|
@@ -27,7 +27,33 @@
|
|
|
27
27
|
color: theme(digitv2.lightTheme.generic-divider) !important;
|
|
28
28
|
}
|
|
29
29
|
input[type="text"] {
|
|
30
|
-
@extend .typography.body-
|
|
30
|
+
@extend .typography.body-s;
|
|
31
|
+
@media (max-aspect-ratio: 9/16) {
|
|
32
|
+
/* Media query for mobile */
|
|
33
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
34
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
35
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
36
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
37
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
41
|
+
/* Media query for tablets */
|
|
42
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
43
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
44
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
45
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
46
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (min-aspect-ratio: 3/4) {
|
|
50
|
+
/* Media query for desktop */
|
|
51
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
52
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
53
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
54
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
55
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
56
|
+
}
|
|
31
57
|
@apply absolute z-10 h-full outline-none;
|
|
32
58
|
width:calc(100%- (theme(digitv2.spacers.spacer7)));
|
|
33
59
|
background-color: transparent;
|
|
@@ -49,14 +75,39 @@
|
|
|
49
75
|
}
|
|
50
76
|
}
|
|
51
77
|
.digit-dropdown-select-active {
|
|
52
|
-
@apply relative block w-full h-10;
|
|
78
|
+
@apply relative block w-full h-10 bg-white;
|
|
53
79
|
border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
|
|
54
80
|
input[type="text"] {
|
|
55
|
-
@extend .typography.body-
|
|
81
|
+
@extend .typography.body-s;
|
|
82
|
+
@media (max-aspect-ratio: 9/16) {
|
|
83
|
+
/* Media query for mobile */
|
|
84
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
85
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
86
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
87
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
88
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
92
|
+
/* Media query for tablets */
|
|
93
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
94
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
95
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
96
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
97
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (min-aspect-ratio: 3/4) {
|
|
101
|
+
/* Media query for desktop */
|
|
102
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
103
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
104
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
105
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
106
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
107
|
+
}
|
|
56
108
|
@apply absolute z-10 h-full outline-none;
|
|
57
109
|
width:calc(100%- (theme(digitv2.spacers.spacer7)));
|
|
58
110
|
background-color: transparent;
|
|
59
|
-
font-size: theme(digitv2.spacers.spacer4);
|
|
60
111
|
padding-top: theme(digitv2.spacers.spacer2);
|
|
61
112
|
padding-bottom: theme(digitv2.spacers.spacer2);
|
|
62
113
|
padding-left: theme(digitv2.spacers.spacer3);
|
|
@@ -113,7 +164,7 @@
|
|
|
113
164
|
}
|
|
114
165
|
.digit-nested-category {
|
|
115
166
|
@apply flex items-center flex-shrink-0;
|
|
116
|
-
background: theme(digitv2.lightTheme.background);
|
|
167
|
+
background: theme(digitv2.lightTheme.generic-background);
|
|
117
168
|
height: 2.4375rem;
|
|
118
169
|
padding: theme(digitv2.spacers.spacer4) 0.625rem;
|
|
119
170
|
gap: 0.625rem;
|
|
@@ -126,10 +177,29 @@
|
|
|
126
177
|
@apply flex items-center overflow-hidden whitespace-no-wrap;
|
|
127
178
|
color: theme(digitv2.lightTheme.text-primary);
|
|
128
179
|
gap: theme(digitv2.spacers.spacer1);
|
|
180
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
181
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
182
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
183
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
184
|
+
|
|
185
|
+
@media (max-aspect-ratio: 9/16) {
|
|
186
|
+
/* Media query for mobile */
|
|
187
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
191
|
+
/* Media query for tablets */
|
|
192
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media (min-aspect-ratio: 3/4) {
|
|
196
|
+
/* Media query for desktop */
|
|
197
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
198
|
+
}
|
|
129
199
|
}
|
|
130
200
|
.digit-dropdown-item {
|
|
131
201
|
@apply flex flex-row;
|
|
132
|
-
padding:
|
|
202
|
+
padding: theme(digitv2.spacers.spacer3);
|
|
133
203
|
gap: 0.625rem;
|
|
134
204
|
min-height: 2.438rem;
|
|
135
205
|
color: theme(digitv2.lightTheme.text-primary) !important;
|
|
@@ -154,6 +224,25 @@
|
|
|
154
224
|
}
|
|
155
225
|
.main-option {
|
|
156
226
|
@extend .typography.body-s;
|
|
227
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
228
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
229
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
230
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
231
|
+
|
|
232
|
+
@media (max-aspect-ratio: 9/16) {
|
|
233
|
+
/* Media query for mobile */
|
|
234
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
238
|
+
/* Media query for tablets */
|
|
239
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media (min-aspect-ratio: 3/4) {
|
|
243
|
+
/* Media query for desktop */
|
|
244
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
245
|
+
}
|
|
157
246
|
@apply whitespace-no-wrap w-full max-w-full overflow-hidden;
|
|
158
247
|
text-overflow: ellipsis;
|
|
159
248
|
&.nestedtextdropdown,
|
|
@@ -170,7 +259,7 @@
|
|
|
170
259
|
&:not(.nesteddropdown, .treedropdown):not(:active):nth-of-type(even) {
|
|
171
260
|
background: theme(digitv2.lightTheme.paper-secondary);
|
|
172
261
|
}
|
|
173
|
-
|
|
262
|
+
&:not(.unsuccessfulresults).nesteddropdown {
|
|
174
263
|
position: relative;
|
|
175
264
|
height: 2.4375rem;
|
|
176
265
|
&::before {
|
|
@@ -205,12 +294,31 @@
|
|
|
205
294
|
.option-des-container {
|
|
206
295
|
.main-option {
|
|
207
296
|
@extend .typography.heading-s;
|
|
297
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
298
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
299
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
300
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
301
|
+
|
|
302
|
+
@media (max-aspect-ratio: 9/16) {
|
|
303
|
+
/* Media query for mobile */
|
|
304
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
308
|
+
/* Media query for tablets */
|
|
309
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@media (min-aspect-ratio: 3/4) {
|
|
313
|
+
/* Media query for desktop */
|
|
314
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
315
|
+
}
|
|
208
316
|
}
|
|
209
317
|
}
|
|
210
318
|
}
|
|
211
319
|
&.nestedtextdropdown {
|
|
212
320
|
min-height: 4.75rem;
|
|
213
|
-
padding: theme(digitv2.spacers.spacer2)
|
|
321
|
+
padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3);
|
|
214
322
|
color: theme(digitv2.lightTheme.text-secondary) !important;
|
|
215
323
|
&:hover {
|
|
216
324
|
border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
|
|
@@ -222,6 +330,25 @@
|
|
|
222
330
|
.option-des-container {
|
|
223
331
|
.main-option {
|
|
224
332
|
@extend .typography.heading-s;
|
|
333
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
334
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
335
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
336
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
337
|
+
|
|
338
|
+
@media (max-aspect-ratio: 9/16) {
|
|
339
|
+
/* Media query for mobile */
|
|
340
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
344
|
+
/* Media query for tablets */
|
|
345
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@media (min-aspect-ratio: 3/4) {
|
|
349
|
+
/* Media query for desktop */
|
|
350
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
351
|
+
}
|
|
225
352
|
color: theme(digitv2.lightTheme.paper-primary);
|
|
226
353
|
}
|
|
227
354
|
}
|
|
@@ -229,7 +356,7 @@
|
|
|
229
356
|
}
|
|
230
357
|
&.profiledropdown {
|
|
231
358
|
min-height: theme(digitv2.spacers.spacer12);
|
|
232
|
-
padding: theme(digitv2.spacers.spacer2)
|
|
359
|
+
padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3);
|
|
233
360
|
}
|
|
234
361
|
&.profilenestedtext {
|
|
235
362
|
min-height: 4.75rem;
|
|
@@ -241,6 +368,25 @@
|
|
|
241
368
|
.option-des-container {
|
|
242
369
|
.main-option {
|
|
243
370
|
@extend .typography.heading-s;
|
|
371
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
372
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
373
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
374
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
375
|
+
|
|
376
|
+
@media (max-aspect-ratio: 9/16) {
|
|
377
|
+
/* Media query for mobile */
|
|
378
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
382
|
+
/* Media query for tablets */
|
|
383
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (min-aspect-ratio: 3/4) {
|
|
387
|
+
/* Media query for desktop */
|
|
388
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
389
|
+
}
|
|
244
390
|
color: theme(digitv2.lightTheme.paper-primary);
|
|
245
391
|
}
|
|
246
392
|
}
|
|
@@ -251,11 +397,57 @@
|
|
|
251
397
|
pointer-events: none;
|
|
252
398
|
span {
|
|
253
399
|
@extend .typography.body-s;
|
|
400
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
401
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
402
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
403
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
404
|
+
|
|
405
|
+
@media (max-aspect-ratio: 9/16) {
|
|
406
|
+
/* Media query for mobile */
|
|
407
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
411
|
+
/* Media query for tablets */
|
|
412
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@media (min-aspect-ratio: 3/4) {
|
|
416
|
+
/* Media query for desktop */
|
|
417
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
418
|
+
}
|
|
254
419
|
color: theme(digitv2.lightTheme.text-disabled);
|
|
255
420
|
}
|
|
256
421
|
}
|
|
257
422
|
}
|
|
258
423
|
.digit-dropdown-employee-select-wrap--elipses {
|
|
424
|
+
@extend .typography.body-s;
|
|
425
|
+
@media (max-aspect-ratio: 9/16) {
|
|
426
|
+
/* Media query for mobile */
|
|
427
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
428
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
429
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
430
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
431
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
435
|
+
/* Media query for tablets */
|
|
436
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
437
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
438
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
439
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
440
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
@media (min-aspect-ratio: 3/4) {
|
|
444
|
+
/* Media query for desktop */
|
|
445
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
446
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
447
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
448
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
449
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
450
|
+
}
|
|
259
451
|
@apply overflow-hidden whitespace-no-wrap;
|
|
260
452
|
width:calc(100%- (theme(digitv2.spacers.spacer7)));
|
|
261
453
|
text-overflow: ellipsis;
|
|
@@ -265,7 +457,7 @@
|
|
|
265
457
|
}
|
|
266
458
|
}
|
|
267
459
|
.digit-dropdown-select-wrap {
|
|
268
|
-
@apply
|
|
460
|
+
@apply relative bg-white w-full;
|
|
269
461
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
270
462
|
/* Media query for tablets */
|
|
271
463
|
max-width: 27.5rem;
|
|
@@ -284,7 +476,33 @@
|
|
|
284
476
|
@apply relative block w-full h-10 bg-white;
|
|
285
477
|
border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
|
|
286
478
|
input[type="text"] {
|
|
287
|
-
@extend .typography.body-
|
|
479
|
+
@extend .typography.body-s;
|
|
480
|
+
@media (max-aspect-ratio: 9/16) {
|
|
481
|
+
/* Media query for mobile */
|
|
482
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
483
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
484
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
485
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
486
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
490
|
+
/* Media query for tablets */
|
|
491
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
492
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
493
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
494
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
495
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@media (min-aspect-ratio: 3/4) {
|
|
499
|
+
/* Media query for desktop */
|
|
500
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
501
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
502
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
503
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
504
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
505
|
+
}
|
|
288
506
|
@apply absolute z-10 h-full outline-none;
|
|
289
507
|
width:calc(100%- (theme(digitv2.spacers.spacer7)));
|
|
290
508
|
background-color: transparent;
|
|
@@ -314,7 +532,33 @@
|
|
|
314
532
|
@apply relative block w-full h-10;
|
|
315
533
|
border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
|
|
316
534
|
input[type="text"] {
|
|
317
|
-
@extend .typography.body-
|
|
535
|
+
@extend .typography.body-s;
|
|
536
|
+
@media (max-aspect-ratio: 9/16) {
|
|
537
|
+
/* Media query for mobile */
|
|
538
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
539
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
540
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
541
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
542
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
546
|
+
/* Media query for tablets */
|
|
547
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
548
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
549
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
550
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
551
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@media (min-aspect-ratio: 3/4) {
|
|
555
|
+
/* Media query for desktop */
|
|
556
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
557
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
558
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
559
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
560
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
561
|
+
}
|
|
318
562
|
@apply absolute z-10 h-full outline-none;
|
|
319
563
|
width:calc(100%- (theme(digitv2.spacers.spacer7)));
|
|
320
564
|
background-color: transparent;
|
|
@@ -347,7 +591,7 @@
|
|
|
347
591
|
.digit-dropdown-options-card {
|
|
348
592
|
width: 100% !important;
|
|
349
593
|
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
|
|
350
|
-
@apply z-20 bg-white overflow-y-auto overflow-x-hidden;
|
|
594
|
+
@apply absolute z-20 bg-white overflow-y-auto overflow-x-hidden;
|
|
351
595
|
max-height: 20vmax;
|
|
352
596
|
p {
|
|
353
597
|
@extend .light-text-color-primary;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
.selection-card-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap:theme(digitv2.spacers.spacer1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.selection-card {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
12
|
+
padding: theme(digitv2.spacers.spacer6);
|
|
13
|
+
border: 0.063rem solid #d6d5d4;
|
|
14
|
+
border-radius: theme(digitv2.spacers.spacer1);
|
|
15
|
+
background-color: theme(digitv2.lightTheme.paper-secondary);
|
|
16
|
+
width: fit-content;
|
|
17
|
+
|
|
18
|
+
@media (max-width: 30rem) {
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.hideContainer{
|
|
23
|
+
border: none;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border-radius: theme(digitv2.spacers.spacer0);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.selection-card.error {
|
|
31
|
+
border-color: theme(digitv2.lightTheme.alert-error);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.option {
|
|
35
|
+
@extend .typography.body-s;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer4);
|
|
39
|
+
border: 0.063rem solid #d6d5d4;
|
|
40
|
+
border-radius: theme(digitv2.spacers.spacer1);
|
|
41
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
height: theme(digitv2.spacers.spacer10);
|
|
44
|
+
gap:theme(digitv2.spacers.spacer2);
|
|
45
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
46
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
47
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
48
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
49
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
50
|
+
@media (max-aspect-ratio: 9/16) {
|
|
51
|
+
/* Media query for mobile */
|
|
52
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
56
|
+
/* Media query for tablets */
|
|
57
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (min-aspect-ratio: 3/4) {
|
|
61
|
+
/* Media query for desktop */
|
|
62
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.option.selected {
|
|
67
|
+
@extend .typography.heading-s;
|
|
68
|
+
background-color: theme(digitv2.lightTheme.primary-1);
|
|
69
|
+
color: theme(digitv2.lightTheme.paper-primary);
|
|
70
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
71
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
72
|
+
|
|
73
|
+
@media (max-aspect-ratio: 9/16) {
|
|
74
|
+
/* Media query for mobile */
|
|
75
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
79
|
+
/* Media query for tablets */
|
|
80
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (min-aspect-ratio: 3/4) {
|
|
84
|
+
/* Media query for desktop */
|
|
85
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.option .selectiontag-option-label {
|
|
90
|
+
width: 100%;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
.option .selectiontagicon {
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
}
|