@egovernments/digit-ui-components-css 0.2.1 → 2.0.0-dev-01

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 (70) hide show
  1. package/dist/index.css +4 -14513
  2. package/package.json +33 -36
  3. package/src/digitv2/components/FormComposerV2.scss +6 -5
  4. package/src/digitv2/components/accordionV2.scss +59 -59
  5. package/src/digitv2/components/alertCardV2.scss +43 -43
  6. package/src/digitv2/components/backLinkV2.scss +11 -8
  7. package/src/digitv2/components/bodyContainerV2.scss +2 -1
  8. package/src/digitv2/components/bottomSheetV2.scss +22 -19
  9. package/src/digitv2/components/breadcrumbV2.scss +27 -25
  10. package/src/digitv2/components/buttonsV2.scss +72 -72
  11. package/src/digitv2/components/cardV2.scss +21 -14
  12. package/src/digitv2/components/cardbasedoptionsV2.scss +4 -1
  13. package/src/digitv2/components/cardlabelV2.scss +4 -3
  14. package/src/digitv2/components/checkboxV2.scss +33 -32
  15. package/src/digitv2/components/chipV2.scss +46 -43
  16. package/src/digitv2/components/dividerV2.scss +7 -4
  17. package/src/digitv2/components/errorMessageV2.scss +15 -15
  18. package/src/digitv2/components/fieldV1.scss +131 -28
  19. package/src/digitv2/components/fileUploadV2.scss +129 -126
  20. package/src/digitv2/components/filterCardV2.scss +54 -51
  21. package/src/digitv2/components/footerV2.scss +14 -13
  22. package/src/digitv2/components/formCardV2.scss +52 -49
  23. package/src/digitv2/components/hamburgerV2.scss +145 -142
  24. package/src/digitv2/components/headerV2.scss +60 -57
  25. package/src/digitv2/components/headerdropdownV2.scss +72 -69
  26. package/src/digitv2/components/infobuttonV2.scss +18 -15
  27. package/src/digitv2/components/labelFieldPairV2.scss +11 -8
  28. package/src/digitv2/components/landingpagecardV2.scss +73 -70
  29. package/src/digitv2/components/loaderV2.scss +7 -4
  30. package/src/digitv2/components/menuCardV2.scss +34 -31
  31. package/src/digitv2/components/metricCardV2.scss +55 -52
  32. package/src/digitv2/components/mobileNumberV2.scss +10 -10
  33. package/src/digitv2/components/multiSelectDropdownV2.scss +175 -168
  34. package/src/digitv2/components/otpInputV2.scss +29 -26
  35. package/src/digitv2/components/panelCardV2.scss +46 -43
  36. package/src/digitv2/components/panelV2.scss +34 -31
  37. package/src/digitv2/components/popUpV2.scss +94 -91
  38. package/src/digitv2/components/radiobtnV2.scss +24 -23
  39. package/src/digitv2/components/selectDropdownV2.scss +200 -197
  40. package/src/digitv2/components/selectionTagV2.scss +32 -29
  41. package/src/digitv2/components/sidePanelV2.scss +51 -48
  42. package/src/digitv2/components/sidenavV2.scss +119 -116
  43. package/src/digitv2/components/stepperV2.scss +61 -58
  44. package/src/digitv2/components/summaryCardFieldPairV2.scss +25 -22
  45. package/src/digitv2/components/summaryCardV2.scss +30 -27
  46. package/src/digitv2/components/switchV2.scss +34 -31
  47. package/src/digitv2/components/tabV2.scss +29 -26
  48. package/src/digitv2/components/tableV2.scss +152 -149
  49. package/src/digitv2/components/tagV2.scss +27 -24
  50. package/src/digitv2/components/textInputV2.scss +117 -101
  51. package/src/digitv2/components/textareaV2.scss +23 -20
  52. package/src/digitv2/components/textblockV2.scss +31 -28
  53. package/src/digitv2/components/timelineV2.scss +64 -61
  54. package/src/digitv2/components/toastV2.scss +28 -25
  55. package/src/digitv2/components/toggleV2.scss +121 -37
  56. package/src/digitv2/components/tooltipwrapperV2.scss +97 -94
  57. package/src/digitv2/components/treeSelectV2.scss +58 -55
  58. package/src/digitv2/index.scss +136 -134
  59. package/src/digitv2/pages/employee/boundaryFilter.scss +63 -0
  60. package/src/digitv2/pages/employee/inboxsearchcomposer.scss +156 -34
  61. package/src/digitv2/pages/employee/index.scss +4 -3
  62. package/src/digitv2/pages/employee/reactdatatable.scss +15 -15
  63. package/src/digitv2/pages/employee/workbench.scss +29 -28
  64. package/src/digitv2/typography.scss +633 -640
  65. package/src/index.scss +29 -19
  66. package/src/pages/employee/index.scss +26 -26
  67. package/src/pages/employee/login.scss +4 -4
  68. package/src/theme-variables.css +137 -0
  69. package/CHANGELOG.md +0 -231
  70. package/dist/index.min.css +0 -6
@@ -1,20 +1,21 @@
1
- @import url("../index.scss");
1
+ @import './theme-variables.css';
2
+ @import '../typography.scss';
2
3
 
3
4
  .label-field-wrapper{
4
5
  display: flex;
5
6
  flex-direction: column;
6
7
  justify-content: flex-start;
7
- gap: theme(digitv2.spacers.spacer1);
8
+ gap: theme("digitv2.spacers.spacer1");
8
9
  width: 100%;
9
10
  }
10
11
 
11
12
  .digit-header-content {
12
13
 
13
14
  &.label {
14
- @extend .typography.label;
15
+ @include typography-label;
15
16
  @apply flex ;
16
- color: theme(digitv2.lightTheme.text-primary);
17
- gap: theme(digitv2.spacers.spacer1);
17
+ color: theme("digitv2.lightTheme.text-primary");
18
+ gap: theme("digitv2.spacers.spacer1");
18
19
 
19
20
  &.wraplabel {
20
21
  @media (min-aspect-ratio: 9/16){
@@ -23,9 +24,13 @@
23
24
  }
24
25
  }
25
26
 
27
+ &.boldLabel{
28
+ font-weight: 700;
29
+ }
30
+
26
31
  .label-container {
27
32
  @apply flex items-center w-full;
28
- gap: theme(digitv2.spacers.spacer1);
33
+ gap: theme("digitv2.spacers.spacer1");
29
34
 
30
35
  &.wraplabel{
31
36
  @media (min-aspect-ratio: 9/16) {
@@ -41,32 +46,32 @@
41
46
  }
42
47
 
43
48
  .info-icon .infotext {
44
- @extend .typography.body-s;
49
+ @include typography-body-s;
45
50
  @apply absolute text-center;
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);
51
+ font-family: theme("digitv2.fontFamily.sans");
52
+ font-style: theme("digitv2.fontStyle.normal");
53
+ font-weight: theme("digitv2.fontWeight.regular");
54
+ line-height: theme("digitv2.lineHeight.lineheight2");
50
55
 
51
56
  @media (max-aspect-ratio: 9/16) {
52
57
  /* Media query for mobile */
53
- font-size: theme(digitv2.fontSize.body-s.mobile);
58
+ font-size: theme("digitv2.fontSize.body-s.mobile");
54
59
  }
55
60
 
56
61
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
57
62
  /* Media query for tablets */
58
- font-size: theme(digitv2.fontSize.body-s.tablet);
63
+ font-size: theme("digitv2.fontSize.body-s.tablet");
59
64
  }
60
65
 
61
66
  @media (min-aspect-ratio: 3/4) {
62
67
  /* Media query for desktop */
63
- font-size: theme(digitv2.fontSize.body-s.desktop);
68
+ font-size: theme("digitv2.fontSize.body-s.desktop");
64
69
  }
65
70
  visibility: hidden;
66
71
  width: 7.5rem;
67
72
  background-color: #555555;
68
- color: theme(digitv2.lightTheme.paper-primary);
69
- padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
73
+ color: theme("digitv2.lightTheme.paper-primary");
74
+ padding: theme("digitv2.spacers.spacer2") theme("digitv2.spacers.spacer0");
70
75
  z-index: 1;
71
76
  bottom: 100%;
72
77
  left: 50%;
@@ -79,7 +84,7 @@
79
84
  }
80
85
 
81
86
  .label-styles {
82
- @apply overflow-hidden whitespace-no-wrap;
87
+ @apply overflow-hidden whitespace-nowrap;
83
88
  text-overflow: ellipsis;
84
89
 
85
90
  &.wraplabel {
@@ -98,32 +103,32 @@
98
103
  .digit-field {
99
104
 
100
105
  @apply flex flex-col w-full;
101
- gap: theme(digitv2.spacers.spacer1);
106
+ gap: theme("digitv2.spacers.spacer1");
102
107
 
103
108
  .digit-description,
104
109
  .digit-charcount {
105
- @extend .typography.body-s;
110
+ @include typography-body-s;
106
111
  @apply flex justify-between items-baseline;
107
- color: theme(digitv2.lightTheme.text-secondary);
108
- gap: theme(digitv2.spacers.spacer2);
109
- font-family: theme(digitv2.fontFamily.sans);
110
- font-style: theme(digitv2.fontStyle.normal);
111
- font-weight: theme(digitv2.fontWeight.regular);
112
- line-height: theme(digitv2.lineHeight.lineheight2);
112
+ color: theme("digitv2.lightTheme.text-secondary");
113
+ gap: theme("digitv2.spacers.spacer2");
114
+ font-family: theme("digitv2.fontFamily.sans");
115
+ font-style: theme("digitv2.fontStyle.normal");
116
+ font-weight: theme("digitv2.fontWeight.regular");
117
+ line-height: theme("digitv2.lineHeight.lineheight2");
113
118
 
114
119
  @media (max-aspect-ratio: 9/16) {
115
120
  /* Media query for mobile */
116
- font-size: theme(digitv2.fontSize.body-s.mobile);
121
+ font-size: theme("digitv2.fontSize.body-s.mobile");
117
122
  }
118
123
 
119
124
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
120
125
  /* Media query for tablets */
121
- font-size: theme(digitv2.fontSize.body-s.tablet);
126
+ font-size: theme("digitv2.fontSize.body-s.tablet");
122
127
  }
123
128
 
124
129
  @media (min-aspect-ratio: 3/4) {
125
130
  /* Media query for desktop */
126
- font-size: theme(digitv2.fontSize.body-s.desktop);
131
+ font-size: theme("digitv2.fontSize.body-s.desktop");
127
132
  }
128
133
 
129
134
 
@@ -144,4 +149,102 @@
144
149
  .digit-charcount {
145
150
  @apply justify-end;
146
151
  }
152
+ }
153
+
154
+ .digit-form-card-subheader {
155
+ @include typography-caption-l;
156
+ font-family: theme("digitv2.fontFamily.sans");
157
+ font-style: theme("digitv2.fontStyle.normal");
158
+ font-weight: theme("digitv2.fontWeight.medium");
159
+ line-height: theme("digitv2.lineHeight.lineheight1");
160
+
161
+ @media (max-aspect-ratio: 9/16) {
162
+ /* Media query for mobile */
163
+ font-size: theme("digitv2.fontSize.caption-l.mobile");
164
+ }
165
+
166
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
167
+ /* Media query for tablets */
168
+ font-size: theme("digitv2.fontSize.caption-l.tablet");
169
+ }
170
+
171
+ @media (min-aspect-ratio: 3/4) {
172
+ /* Media query for desktop */
173
+ font-size: theme("digitv2.fontSize.caption-l.desktop");
174
+ }
175
+ color: theme("digitv2.lightTheme.text-primary");
176
+ }
177
+
178
+ .digit-form-card-description {
179
+ @include typography-heading-s;
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
+ }
199
+ color: theme("digitv2.lightTheme.text-secondary");
200
+ }
201
+
202
+ .digit-form-card-text {
203
+ @include typography-body-l;
204
+ font-family: theme("digitv2.fontFamily.sans");
205
+ font-style: theme("digitv2.fontStyle.normal");
206
+ font-weight: theme("digitv2.fontWeight.regular");
207
+ line-height: theme("digitv2.lineHeight.lineheight2");
208
+
209
+ @media (max-aspect-ratio: 9/16) {
210
+ /* Media query for mobile */
211
+ font-size: theme("digitv2.fontSize.body-l.mobile");
212
+ }
213
+
214
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
215
+ /* Media query for tablets */
216
+ font-size: theme("digitv2.fontSize.body-l.tablet");
217
+ }
218
+
219
+ @media (min-aspect-ratio: 3/4) {
220
+ /* Media query for desktop */
221
+ font-size: theme("digitv2.fontSize.body-l.desktop");
222
+ }
223
+ color: theme("digitv2.lightTheme.text-secondary");
224
+
225
+ }
226
+
227
+ .sectionSubHeaderStyle{
228
+ @include typography-body-s;
229
+ @apply flex justify-between items-baseline;
230
+ color: theme("digitv2.lightTheme.text-secondary");
231
+ font-family: theme("digitv2.fontFamily.sans");
232
+ font-style: theme("digitv2.fontStyle.normal");
233
+ font-weight: theme("digitv2.fontWeight.regular");
234
+ line-height: theme("digitv2.lineHeight.lineheight2");
235
+
236
+ @media (max-aspect-ratio: 9/16) {
237
+ /* Media query for mobile */
238
+ font-size: theme("digitv2.fontSize.body-s.mobile");
239
+ }
240
+
241
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
242
+ /* Media query for tablets */
243
+ font-size: theme("digitv2.fontSize.body-s.tablet");
244
+ }
245
+
246
+ @media (min-aspect-ratio: 3/4) {
247
+ /* Media query for desktop */
248
+ font-size: theme("digitv2.fontSize.body-s.desktop");
249
+ }
147
250
  }