@egovernments/digit-ui-components-css 0.0.2-beta.9 → 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 +150 -0
  2. package/README.md +11 -2
  3. package/dist/index.css +10268 -3591
  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 +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} +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 +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
@@ -7,15 +7,36 @@
7
7
  word-break: break-word;
8
8
  cursor: default;
9
9
 
10
- .digit-error-icon{
11
- @apply flex items-center;
12
- width: theme(digitv2.spacers.spacer4);
13
- height: theme(digitv2.lineHeight.lineheight2);
10
+ .digit-error-icon {
11
+ @apply flex items-center;
12
+ width: theme(digitv2.spacers.spacer4);
13
+ height: theme(digitv2.lineHeight.lineheight2);
14
14
  }
15
+
15
16
  .digit-error-message {
16
- @extend .typography.body-s;
17
- @apply w-full;
18
- margin: theme(digitv2.spacers.spacer0);
19
- color: theme(digitv2.lightTheme.alert-error)
17
+ @extend .typography.body-s;
18
+ @apply w-full;
19
+ font-family: theme(digitv2.fontFamily.sans);
20
+ font-style: theme(digitv2.fontStyle.normal);
21
+ font-weight: theme(digitv2.fontWeight.regular);
22
+ line-height: theme(digitv2.lineHeight.lineheight2);
23
+
24
+ @media (max-aspect-ratio: 9/16) {
25
+ /* Media query for mobile */
26
+ font-size: theme(digitv2.fontSize.body-s.mobile);
27
+ }
28
+
29
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
30
+ /* Media query for tablets */
31
+ font-size: theme(digitv2.fontSize.body-s.tablet);
32
+ }
33
+
34
+ @media (min-aspect-ratio: 3/4) {
35
+ /* Media query for desktop */
36
+ font-size: theme(digitv2.fontSize.body-s.desktop);
37
+ }
38
+
39
+ margin: theme(digitv2.spacers.spacer0);
40
+ color: theme(digitv2.lightTheme.alert-error)
20
41
  }
21
42
  }
@@ -1,9 +1,16 @@
1
1
  @import url("../index.scss");
2
2
 
3
+ .label-field-wrapper{
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: flex-start;
7
+ gap: theme(digitv2.spacers.spacer1);
8
+ }
9
+
3
10
  .digit-header-content {
4
11
 
5
12
  &.label {
6
- @extend .typography.body-l;
13
+ @extend .typography.label;
7
14
  @apply flex ;
8
15
  color: theme(digitv2.lightTheme.text-primary);
9
16
  gap: theme(digitv2.spacers.spacer1);
@@ -35,6 +42,25 @@
35
42
  .info-icon .infotext {
36
43
  @extend .typography.body-s;
37
44
  @apply absolute text-center;
45
+ font-family: theme(digitv2.fontFamily.sans);
46
+ font-style: theme(digitv2.fontStyle.normal);
47
+ font-weight: theme(digitv2.fontWeight.regular);
48
+ line-height: theme(digitv2.lineHeight.lineheight2);
49
+
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
+ }
38
64
  visibility: hidden;
39
65
  width: 7.5rem;
40
66
  background-color: #555555;
@@ -75,6 +101,25 @@
75
101
  @apply flex justify-between items-baseline;
76
102
  color: theme(digitv2.lightTheme.text-secondary);
77
103
  gap: theme(digitv2.spacers.spacer2);
104
+ font-family: theme(digitv2.fontFamily.sans);
105
+ font-style: theme(digitv2.fontStyle.normal);
106
+ font-weight: theme(digitv2.fontWeight.regular);
107
+ line-height: theme(digitv2.lineHeight.lineheight2);
108
+
109
+ @media (max-aspect-ratio: 9/16) {
110
+ /* Media query for mobile */
111
+ font-size: theme(digitv2.fontSize.body-s.mobile);
112
+ }
113
+
114
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
115
+ /* Media query for tablets */
116
+ font-size: theme(digitv2.fontSize.body-s.tablet);
117
+ }
118
+
119
+ @media (min-aspect-ratio: 3/4) {
120
+ /* Media query for desktop */
121
+ font-size: theme(digitv2.fontSize.body-s.desktop);
122
+ }
78
123
 
79
124
 
80
125
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
@@ -82,7 +127,7 @@
82
127
  }
83
128
 
84
129
  @media (max-aspect-ratio: 9/16) {
85
- max-width: 20.5rem;
130
+ max-width: 100%;
86
131
  width: 100%;
87
132
  }
88
133
 
@@ -20,8 +20,14 @@
20
20
  gap: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
21
21
  }
22
22
 
23
+ .upload-options-svg-wrap{
24
+ width: theme(digitv2.spacers.spacer10);
25
+ height: theme(digitv2.spacers.spacer10);
26
+ cursor: pointer;
27
+ }
28
+
23
29
  .upload-options-label {
24
- @extend .typography.label;
30
+ @extend .typography.button.large;
25
31
  @apply cursor-pointer;
26
32
  color: theme(digitv2.lightTheme.primary-1);
27
33
  }
@@ -45,7 +51,7 @@
45
51
 
46
52
  @media (max-width: 30rem) {
47
53
  height: 7.625rem;
48
- animation: slideInFromBottom 0.5s ease-out forwards;
54
+ animation: slideInFromBottomUploader 0.5s ease-out forwards;
49
55
  }
50
56
 
51
57
 
@@ -72,6 +78,10 @@
72
78
  gap:theme(digitv2.spacers.spacer1);
73
79
  }
74
80
 
81
+ &.inline{
82
+ flex-direction: row;
83
+ }
84
+
75
85
  .digit-upload-label {
76
86
  @extend .typography.label;
77
87
  @apply text-left;
@@ -104,7 +114,7 @@
104
114
  outline: none !important;
105
115
  }
106
116
 
107
- .digit-uploader-content-uploadpopup {
117
+ .digit-uploader-content-uploadWidget {
108
118
  @apply flex flex-col w-full items-center justify-center max-w-full;
109
119
  gap: theme(digitv2.spacers.spacer4);
110
120
  border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
@@ -131,6 +141,25 @@
131
141
 
132
142
  .drag-drop-text {
133
143
  @extend .typography.body-s;
144
+ font-family: theme(digitv2.fontFamily.sans);
145
+ font-style: theme(digitv2.fontStyle.normal);
146
+ font-weight: theme(digitv2.fontWeight.regular);
147
+ line-height: theme(digitv2.lineHeight.lineheight2);
148
+
149
+ @media (max-aspect-ratio: 9/16) {
150
+ /* Media query for mobile */
151
+ font-size: theme(digitv2.fontSize.body-s.mobile);
152
+ }
153
+
154
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
155
+ /* Media query for tablets */
156
+ font-size: theme(digitv2.fontSize.body-s.tablet);
157
+ }
158
+
159
+ @media (min-aspect-ratio: 3/4) {
160
+ /* Media query for desktop */
161
+ font-size: theme(digitv2.fontSize.body-s.desktop);
162
+ }
134
163
  @apply items-center;
135
164
  color: theme(digitv2.lightTheme.text-disabled);
136
165
  display: flex;
@@ -141,14 +170,40 @@
141
170
  }
142
171
  }
143
172
 
173
+ .drag-drop-link{
174
+ @extend .typography.link-S;
175
+ margin-left: theme(digitv2.spacers.spacer1);
176
+ color: theme(digitv2.lightTheme.primary-1);
177
+ cursor: pointer;
178
+ }
179
+
144
180
  &.error {
145
181
  border-style: dashed !important;
146
182
  border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
147
183
  }
148
184
  }
149
185
 
150
- .digit-uploadpopup-label {
186
+ .digit-uploadWidget-label {
151
187
  @extend .typography.body-s;
188
+ font-family: theme(digitv2.fontFamily.sans);
189
+ font-style: theme(digitv2.fontStyle.normal);
190
+ font-weight: theme(digitv2.fontWeight.regular);
191
+ line-height: theme(digitv2.lineHeight.lineheight2);
192
+
193
+ @media (max-aspect-ratio: 9/16) {
194
+ /* Media query for mobile */
195
+ font-size: theme(digitv2.fontSize.body-s.mobile);
196
+ }
197
+
198
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
199
+ /* Media query for tablets */
200
+ font-size: theme(digitv2.fontSize.body-s.tablet);
201
+ }
202
+
203
+ @media (min-aspect-ratio: 3/4) {
204
+ /* Media query for desktop */
205
+ font-size: theme(digitv2.fontSize.body-s.desktop);
206
+ }
152
207
  color: theme(digitv2.lightTheme.text-disabled);
153
208
  }
154
209
 
@@ -158,6 +213,25 @@
158
213
 
159
214
  .digit-uploader-input {
160
215
  @extend .typography.body-s;
216
+ font-family: theme(digitv2.fontFamily.sans);
217
+ font-style: theme(digitv2.fontStyle.normal);
218
+ font-weight: theme(digitv2.fontWeight.regular);
219
+ line-height: theme(digitv2.lineHeight.lineheight2);
220
+
221
+ @media (max-aspect-ratio: 9/16) {
222
+ /* Media query for mobile */
223
+ font-size: theme(digitv2.fontSize.body-s.mobile);
224
+ }
225
+
226
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
227
+ /* Media query for tablets */
228
+ font-size: theme(digitv2.fontSize.body-s.tablet);
229
+ }
230
+
231
+ @media (min-aspect-ratio: 3/4) {
232
+ /* Media query for desktop */
233
+ font-size: theme(digitv2.fontSize.body-s.desktop);
234
+ }
161
235
  @apply h-10;
162
236
  background-color: transparent;
163
237
  border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
@@ -318,6 +392,25 @@
318
392
 
319
393
  .digit-upload-helptext {
320
394
  @extend .typography.body-s;
395
+ font-family: theme(digitv2.fontFamily.sans);
396
+ font-style: theme(digitv2.fontStyle.normal);
397
+ font-weight: theme(digitv2.fontWeight.regular);
398
+ line-height: theme(digitv2.lineHeight.lineheight2);
399
+
400
+ @media (max-aspect-ratio: 9/16) {
401
+ /* Media query for mobile */
402
+ font-size: theme(digitv2.fontSize.body-s.mobile);
403
+ }
404
+
405
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
406
+ /* Media query for tablets */
407
+ font-size: theme(digitv2.fontSize.body-s.tablet);
408
+ }
409
+
410
+ @media (min-aspect-ratio: 3/4) {
411
+ /* Media query for desktop */
412
+ font-size: theme(digitv2.fontSize.body-s.desktop);
413
+ }
321
414
  @apply text-left;
322
415
  margin: theme(digitv2.spacers.spacer0);
323
416
  color: theme(digitv2.lightTheme.text-secondary);
@@ -352,6 +445,25 @@
352
445
 
353
446
  .uploaded-file-details {
354
447
  @extend .typography.heading-s;
448
+ font-family: theme(digitv2.fontFamily.sans);
449
+ font-style: theme(digitv2.fontStyle.normal);
450
+ font-weight: theme(digitv2.fontWeight.bold);
451
+ line-height: theme(digitv2.lineHeight.lineheight1);
452
+
453
+ @media (max-aspect-ratio: 9/16) {
454
+ /* Media query for mobile */
455
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
456
+ }
457
+
458
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
459
+ /* Media query for tablets */
460
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
461
+ }
462
+
463
+ @media (min-aspect-ratio: 3/4) {
464
+ /* Media query for desktop */
465
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
466
+ }
355
467
  color: theme(digitv2.lightTheme.text-secondary);
356
468
  }
357
469
 
@@ -372,7 +484,7 @@
372
484
  }
373
485
  }
374
486
 
375
- .digit-uploadpopup-close-icon {
487
+ .digit-uploadWidget-close-icon {
376
488
  @apply absolute top-0 right-0 w-6 h-6 items-center cursor-pointer;
377
489
  background: theme(digitv2.lightTheme.generic-background);
378
490
  border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
@@ -389,7 +501,7 @@
389
501
  &.error {
390
502
  border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
391
503
 
392
- .digit-uploadpopup-close-icon {
504
+ .digit-uploadWidget-close-icon {
393
505
  background: theme(digitv2.lightTheme.alert-error);
394
506
  border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
395
507
  border-top: none;
@@ -406,7 +518,7 @@
406
518
  }
407
519
  }
408
520
 
409
- .uploadpopup-error-card {
521
+ .uploadWidget-error-card {
410
522
  @apply w-full max-w-full;
411
523
  margin: theme(digitv2.spacers.spacer0);
412
524
  }
@@ -520,6 +632,25 @@
520
632
 
521
633
  .capture-heading {
522
634
  @extend .typography.heading-m;
635
+ font-family: theme(digitv2.fontFamily.sans);
636
+ font-style: theme(digitv2.fontStyle.normal);
637
+ font-weight: theme(digitv2.fontWeight.bold);
638
+ line-height: theme(digitv2.lineHeight.lineheight1);
639
+
640
+ @media (max-aspect-ratio: 9/16) {
641
+ /* Media query for mobile */
642
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
643
+ }
644
+
645
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
646
+ /* Media query for tablets */
647
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
648
+ }
649
+
650
+ @media (min-aspect-ratio: 3/4) {
651
+ /* Media query for desktop */
652
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
653
+ }
523
654
  @apply items-center;
524
655
  color: #000000;
525
656
  display: flex;
@@ -546,7 +677,7 @@
546
677
 
547
678
  }
548
679
 
549
- @keyframes slideInFromBottom {
680
+ @keyframes slideInFromBottomUploader {
550
681
  from {
551
682
  transform: translateY(100%);
552
683
  }
@@ -554,4 +685,27 @@
554
685
  to {
555
686
  transform: translateY(0);
556
687
  }
557
- }
688
+ }
689
+
690
+
691
+ .digit-upload-file-composer-wrapper{
692
+ display: flex;
693
+ flex-direction: column;
694
+
695
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
696
+ gap:theme(digitv2.spacers.spacer5);
697
+ }
698
+
699
+ @media (max-width: 30rem) {
700
+ gap:theme(digitv2.spacers.spacer4);
701
+ }
702
+
703
+ @media (min-width: 48rem) {
704
+ gap:theme(digitv2.spacers.spacer6);
705
+ }
706
+
707
+ .upload-filecomposer-header{
708
+ color: theme(digitv2.lightTheme.text-primary) !important;
709
+ }
710
+
711
+ }