@egovernments/digit-ui-components-css 0.0.2-beta.11 → 0.0.2-beta.13

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 (51) hide show
  1. package/CHANGELOG.md +92 -88
  2. package/README.md +80 -80
  3. package/dist/index.css +810 -16
  4. package/dist/index.min.css +2 -2
  5. package/package.json +69 -69
  6. package/src/digitv2/components/FormComposerV2.scss +118 -118
  7. package/src/digitv2/components/actionbarV2.scss +206 -206
  8. package/src/digitv2/components/backLinkV2.scss +36 -36
  9. package/src/digitv2/components/bodyContainerV2.scss +39 -39
  10. package/src/digitv2/components/breadcrumbV2.scss +56 -56
  11. package/src/digitv2/components/buttonsV2.scss +450 -451
  12. package/src/digitv2/components/cardV2.scss +497 -497
  13. package/src/digitv2/components/cardbasedoptionsV2.scss +46 -46
  14. package/src/digitv2/components/cardlabelV2.scss +7 -7
  15. package/src/digitv2/components/checkboxV2.scss +83 -83
  16. package/src/digitv2/components/chipV2.scss +129 -129
  17. package/src/digitv2/components/dividerV2.scss +10 -10
  18. package/src/digitv2/components/errorMessageV2.scss +20 -20
  19. package/src/digitv2/components/fieldV1.scss +96 -96
  20. package/src/digitv2/components/headerdropdownV2.scss +151 -151
  21. package/src/digitv2/components/infoCardV2.scss +139 -139
  22. package/src/digitv2/components/infobuttonV2.scss +75 -75
  23. package/src/digitv2/components/labelFieldPairV2.scss +66 -66
  24. package/src/digitv2/components/mobileNumberV2.scss +65 -65
  25. package/src/digitv2/components/mobilesidebarV2.scss +439 -0
  26. package/src/digitv2/components/multiSelectDropdownV2.scss +315 -315
  27. package/src/digitv2/components/panelCardV2.scss +160 -160
  28. package/src/digitv2/components/panelV2.scss +114 -114
  29. package/src/digitv2/components/popUpV2.scss +330 -330
  30. package/src/digitv2/components/radiobtnV2.scss +115 -115
  31. package/src/digitv2/components/selectDropdownV2.scss +364 -364
  32. package/src/digitv2/components/sidebarV2.scss +409 -0
  33. package/src/digitv2/components/stepperV2.scss +147 -147
  34. package/src/digitv2/components/textInputV2.scss +462 -462
  35. package/src/digitv2/components/textareaV2.scss +99 -99
  36. package/src/digitv2/components/textblockV2.scss +46 -46
  37. package/src/digitv2/components/timelineV2.scss +170 -170
  38. package/src/digitv2/components/toastV2.scss +80 -80
  39. package/src/digitv2/components/toggleV2.scss +72 -72
  40. package/src/digitv2/components/tooltipwrapperV2.scss +96 -0
  41. package/src/digitv2/components/topbarV2.scss +387 -387
  42. package/src/digitv2/components/treeSelectV2.scss +132 -132
  43. package/src/digitv2/components/uploaderV2.scss +556 -556
  44. package/src/digitv2/components/viewCardFieldPairV2.scss +44 -44
  45. package/src/digitv2/index.scss +172 -169
  46. package/src/digitv2/pages/employee/index.scss +1 -1
  47. package/src/digitv2/pages/employee/workbench.scss +615 -615
  48. package/src/digitv2/typography.scss +638 -638
  49. package/src/index.scss +677 -681
  50. package/src/pages/employee/index.scss +625 -625
  51. package/src/pages/employee/login.scss +220 -220
@@ -1,65 +1,65 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-mobile-number-container {
5
- @apply flex items-center;
6
- width: 100%;
7
-
8
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
9
- /* Media query for tablets */
10
- max-width: 27.5rem;
11
- min-width: 12.5rem;
12
- }
13
-
14
- @media (max-aspect-ratio: 9/16) {
15
- /* Media query for mobile */
16
- max-width:100%;
17
- min-width: 9.75rem;
18
- width: 100%;
19
- }
20
-
21
- @media (min-aspect-ratio: 3/4) {
22
- /* Media query for desktop */
23
- max-width: 37.5rem;
24
- min-width: 12.5rem;
25
- }
26
-
27
- .digit-text-mobile-input-width {
28
- .digit-text-input-width {
29
- width: calc(540px - 41px);
30
- }
31
- }
32
- .digit-citizen-card-input--front {
33
- @extend .typography.text-body-s;
34
- @extend .light-background;
35
- width: fit-content !important;
36
- display: flex;
37
- align-items: center;
38
- /* background: theme(colors.grey.mid); */
39
- border-right: 0;
40
- padding-right: 5px;
41
- }
42
-
43
- .digit-citizen-card-input {
44
- @extend .typography.text-body-s;
45
- @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
46
- border: 1px solid theme(digitv2.lightTheme.text-secondary);
47
- color: theme(digitv2.lightTheme.text-primary);
48
- }
49
-
50
- .digit-citizen-card-input--front {
51
- @extend .typography.text-body-s;
52
- width: fit-content !important;
53
- display: flex;
54
- align-items: center;
55
- background: theme(colors.grey.mid);
56
- border-right: 0;
57
- padding-right: 5px;
58
- }
59
- .digit-employee-card-input-error {
60
- @extend .typography.text-body-s;
61
- @extend .light-input-border;
62
- @extend .alert-error;
63
- @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
64
- }
65
- }
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-mobile-number-container {
5
+ @apply flex items-center;
6
+ width: 100%;
7
+
8
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
9
+ /* Media query for tablets */
10
+ max-width: 27.5rem;
11
+ min-width: 12.5rem;
12
+ }
13
+
14
+ @media (max-aspect-ratio: 9/16) {
15
+ /* Media query for mobile */
16
+ max-width:100%;
17
+ min-width: 9.75rem;
18
+ width: 100%;
19
+ }
20
+
21
+ @media (min-aspect-ratio: 3/4) {
22
+ /* Media query for desktop */
23
+ max-width: 37.5rem;
24
+ min-width: 12.5rem;
25
+ }
26
+
27
+ .digit-text-mobile-input-width {
28
+ .digit-text-input-width {
29
+ width: calc(540px - 41px);
30
+ }
31
+ }
32
+ .digit-citizen-card-input--front {
33
+ @extend .typography.text-body-s;
34
+ @extend .light-background;
35
+ width: fit-content !important;
36
+ display: flex;
37
+ align-items: center;
38
+ /* background: theme(colors.grey.mid); */
39
+ border-right: 0;
40
+ padding-right: 5px;
41
+ }
42
+
43
+ .digit-citizen-card-input {
44
+ @extend .typography.text-body-s;
45
+ @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
46
+ border: 1px solid theme(digitv2.lightTheme.text-secondary);
47
+ color: theme(digitv2.lightTheme.text-primary);
48
+ }
49
+
50
+ .digit-citizen-card-input--front {
51
+ @extend .typography.text-body-s;
52
+ width: fit-content !important;
53
+ display: flex;
54
+ align-items: center;
55
+ background: theme(colors.grey.mid);
56
+ border-right: 0;
57
+ padding-right: 5px;
58
+ }
59
+ .digit-employee-card-input-error {
60
+ @extend .typography.text-body-s;
61
+ @extend .light-input-border;
62
+ @extend .alert-error;
63
+ @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
64
+ }
65
+ }
@@ -0,0 +1,439 @@
1
+ .msb-sidebar {
2
+ background-color: theme(digitv2.lightTheme.paper-primary);
3
+ color: theme(digitv2.lightTheme.primary-2);
4
+ display: flex;
5
+ flex-direction: column;
6
+ transition: width 0.3s;
7
+ position: fixed;
8
+ height: 100%;
9
+ overflow-x: hidden;
10
+ left: 0;
11
+ top: 0;
12
+ min-width: 17.5rem;
13
+ flex-direction: column;
14
+
15
+ &.dark {
16
+ background-color: theme(digitv2.lightTheme.primary-2);
17
+ color: theme(digitv2.lightTheme.paper-primary);
18
+ }
19
+ }
20
+
21
+ .msb-profile {
22
+ display: flex;
23
+ align-items: center;
24
+ padding: theme(digitv2.spacers.spacer6);
25
+ flex-direction: column;
26
+ gap: theme(digitv2.spacers.spacer3);
27
+ }
28
+
29
+ .msb-profile-icon {
30
+ width: 3.875rem;
31
+ height: 4rem;
32
+ margin-right: theme(digitv2.spacers.spacer4);
33
+ }
34
+
35
+ .msb-profile-details {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: theme(digitv2.spacers.spacer1);
39
+ ;
40
+ text-align: center;
41
+ }
42
+
43
+ .msb-profile-name {
44
+ font-family: theme(digitv2.fontFamily.sans);
45
+ font-style: theme(digitv2.fontStyle.normal);
46
+ font-weight: theme(digitv2.fontWeight.bold);
47
+ line-height: theme(digitv2.lineHeight.lineheight1);
48
+
49
+ @media (max-aspect-ratio: 9/16) {
50
+ /* Media query for mobile */
51
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
52
+ }
53
+
54
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
55
+ /* Media query for tablets */
56
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
57
+ }
58
+
59
+ @media (min-aspect-ratio: 3/4) {
60
+ /* Media query for desktop */
61
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
62
+ }
63
+
64
+ color: theme(digitv2.lightTheme.text-primary);
65
+
66
+ &.dark {
67
+ color: theme(digitv2.lightTheme.paper-primary);
68
+ }
69
+ }
70
+
71
+ .msb-profile-phone {
72
+ font-family: theme(digitv2.fontFamily.sans);
73
+ font-style: theme(digitv2.fontStyle.normal);
74
+ font-weight: theme(digitv2.fontWeight.regular);
75
+ line-height: theme(digitv2.lineHeight.lineheight2);
76
+
77
+ @media (max-aspect-ratio: 9/16) {
78
+ /* Media query for mobile */
79
+ font-size: theme(digitv2.fontSize.body-s.mobile);
80
+ }
81
+
82
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
83
+ /* Media query for tablets */
84
+ font-size: theme(digitv2.fontSize.body-s.tablet);
85
+ }
86
+
87
+ @media (min-aspect-ratio: 3/4) {
88
+ /* Media query for desktop */
89
+ font-size: theme(digitv2.fontSize.body-s.desktop);
90
+ }
91
+
92
+ color: theme(digitv2.lightTheme.text-secondary);
93
+
94
+ &.dark {
95
+ color: theme(digitv2.lightTheme.paper-primary);
96
+ }
97
+ }
98
+
99
+ .msb-sidebar-items {
100
+ flex: 1;
101
+ overflow-y: auto;
102
+ overflow-x: hidden;
103
+ }
104
+
105
+ .msb-item-child-wrapper {
106
+ display: flex;
107
+ flex-direction: column;
108
+ height: theme(digitv2.spacers.spacer12);
109
+ padding: theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer6);
110
+ ;
111
+ justify-content: space-between;
112
+ border-top: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
113
+ }
114
+
115
+ .msb-item-child-wrapper:last-child,
116
+ .msb-item-child-wrapper.expanded {
117
+ border-bottom: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
118
+ }
119
+
120
+ .msb-item-child-wrapper:not(.dark):nth-child(2n+1) {
121
+ background-color: theme(digitv2.lightTheme.paper-secondary);
122
+ }
123
+
124
+ .msb-item-child-wrapper.expanded {
125
+ height: auto;
126
+ }
127
+
128
+ .msb-sidebar-item {
129
+ display: flex;
130
+ align-items: center;
131
+ cursor: pointer;
132
+ }
133
+
134
+ .msb-sidebar-item.msb-parentLevel {
135
+ height: theme(digitv2.spacers.spacer6);
136
+
137
+ .msb-item-label {
138
+ font-family: theme(digitv2.fontFamily.sans);
139
+ font-style: theme(digitv2.fontStyle.normal);
140
+ font-weight: theme(digitv2.fontWeight.bold);
141
+ line-height: theme(digitv2.lineHeight.lineheight1);
142
+
143
+ @media (max-aspect-ratio: 9/16) {
144
+ /* Media query for mobile */
145
+ font-size: theme(digitv2.fontSize.heading-s.mobile);
146
+ }
147
+
148
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
149
+ /* Media query for tablets */
150
+ font-size: theme(digitv2.fontSize.heading-s.tablet);
151
+ }
152
+
153
+ @media (min-aspect-ratio: 3/4) {
154
+ /* Media query for desktop */
155
+ font-size: theme(digitv2.fontSize.heading-s.desktop);
156
+ }
157
+ }
158
+ }
159
+
160
+ .msb-sidebar-item .msb-icon {
161
+ margin-right: theme(digitv2.spacers.spacer4);
162
+ }
163
+
164
+ .msb-expand-icon {
165
+ margin-left: auto;
166
+ }
167
+
168
+ .msb-sidebar-children {
169
+ width: "100%";
170
+ transition: height 0.3s ease;
171
+
172
+ .inner-level-child {
173
+ margin-left: 3.5rem;
174
+ border-left: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
175
+
176
+ &.dark {
177
+ border-left: 0.063rem solid theme(digitv2.lightTheme.paper-primary);
178
+ }
179
+ }
180
+ }
181
+
182
+
183
+ .msb-sidebar-children.expanded {
184
+ height: auto;
185
+ }
186
+
187
+
188
+ .mb-search-container {
189
+ height: 4.5rem;
190
+ min-width: 15rem;
191
+ width: auto;
192
+ padding: theme(digitv2.spacers.spacer4) !important;
193
+
194
+ .mb-search {
195
+ height: theme(digitv2.spacers.spacer10) !important;
196
+ min-width: 13rem;
197
+
198
+ .digit-text-input-customIcon {
199
+ height: theme(digitv2.spacers.spacer6);
200
+ width: theme(digitv2.spacers.spacer6);
201
+ top: theme(digitv2.spacers.spacer2);
202
+ right: theme(digitv2.spacers.spacer2);
203
+ }
204
+
205
+ .input-container {
206
+ max-height: 100%;
207
+ }
208
+
209
+ input {
210
+ max-height: 100%;
211
+ background-color: theme(digitv2.lightTheme.paper-primary);
212
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
213
+ color: theme(digitv2.lightTheme.text-primary);
214
+ height: theme(digitv2.spacers.spacer8) !important;
215
+
216
+ ::placeholder {
217
+ color: theme(digitv2.lightTheme.text-disabled);
218
+ }
219
+ }
220
+
221
+ .input-container:focus-within {
222
+ input {
223
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider) !important;
224
+ }
225
+ }
226
+ }
227
+
228
+ ::placeholder {
229
+ content: attr(placeholder);
230
+ @extend .typography.body-s;
231
+ color: theme(digitv2.lightTheme.text-disabled);
232
+ }
233
+ }
234
+
235
+ .mb-search-container.dark {
236
+ height: 4.5rem;
237
+ min-width: 15rem;
238
+ width: auto;
239
+ padding: theme(digitv2.spacers.spacer4) !important;
240
+
241
+ .mb-search {
242
+ height: theme(digitv2.spacers.spacer10) !important;
243
+ min-width: 13rem;
244
+
245
+ .digit-text-input-customIcon {
246
+ height: theme(digitv2.spacers.spacer6);
247
+ width: theme(digitv2.spacers.spacer6);
248
+ top: theme(digitv2.spacers.spacer2);
249
+ right: theme(digitv2.spacers.spacer2);
250
+ }
251
+
252
+ .input-container {
253
+ max-height: 100%;
254
+ }
255
+
256
+ input {
257
+ max-height: 100%;
258
+ background-color: transparent;
259
+ border: 0.063rem solid theme(digitv2.lightTheme.paper-secondary);
260
+ color: theme(digitv2.lightTheme.generic-background);
261
+
262
+ ::placeholder {
263
+ color: theme(digitv2.lightTheme.generic-background);
264
+ }
265
+ }
266
+
267
+ .input-container:focus-within {
268
+ input {
269
+ border: 0.063rem solid theme(digitv2.lightTheme.paper-secondary) !important;
270
+ }
271
+ }
272
+ }
273
+
274
+ ::placeholder {
275
+ content: attr(placeholder);
276
+ @extend .typography.body-s;
277
+ color: theme(digitv2.lightTheme.generic-background);
278
+ }
279
+ }
280
+
281
+ .msb-sidebar-bottom {
282
+ background-color: theme(digitv2.lightTheme.paper-secondary);
283
+ z-index: 5;
284
+ padding: theme(digitv2.spacers.spacer4);
285
+ display: flex;
286
+ flex-direction: column;
287
+ gap: theme(digitv2.spacers.spacer4);
288
+ border-top: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
289
+ height: 4rem;
290
+
291
+
292
+ button {
293
+ width: 100%;
294
+
295
+ .icon-label-container .digit-button-customIcon {
296
+ width: theme(digitv2.spacers.spacer5);
297
+ height: theme(digitv2.spacers.spacer5);
298
+ ;
299
+ }
300
+ }
301
+
302
+ &.dark {
303
+ background-color: theme(digitv2.lightTheme.primary-2);
304
+ }
305
+ }
306
+
307
+ .icon-msb {
308
+ margin-right: theme(digitv2.spacers.spacer3);
309
+ width: theme(digitv2.spacers.spacer6);
310
+ height: theme(digitv2.spacers.spacer6);
311
+ margin-left: theme(digitv2.spacers.spacer7);
312
+ }
313
+
314
+ .item-label-msb {
315
+
316
+ font-family: theme(digitv2.fontFamily.sans);
317
+ font-style: theme(digitv2.fontStyle.normal);
318
+ font-weight: theme(digitv2.fontWeight.regular);
319
+ line-height: theme(digitv2.lineHeight.lineheight2);
320
+
321
+ @media (max-aspect-ratio: 9/16) {
322
+ /* Media query for mobile */
323
+ font-size: theme(digitv2.fontSize.body-s.mobile);
324
+ }
325
+
326
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
327
+ /* Media query for tablets */
328
+ font-size: theme(digitv2.fontSize.body-s.tablet);
329
+ }
330
+
331
+ @media (min-aspect-ratio: 3/4) {
332
+ /* Media query for desktop */
333
+ font-size: theme(digitv2.fontSize.body-s.desktop);
334
+ }
335
+ }
336
+
337
+ .expand-icon-msb {
338
+ width: theme(digitv2.spacers.spacer6);
339
+ height: theme(digitv2.spacers.spacer6);
340
+ margin-left: auto !important;
341
+
342
+ &.child-level{
343
+ margin-right:1.5rem;
344
+ }
345
+ }
346
+
347
+ .sidebar-item-msb {
348
+ display: flex;
349
+ align-items: center;
350
+ text-decoration: none;
351
+ transition: background-color 0.3s;
352
+ cursor: pointer;
353
+ outline: none;
354
+ height: 100%;
355
+ width: 100%;
356
+ position: relative;
357
+ }
358
+
359
+
360
+ .item-child-wrapper-msb {
361
+ width: 100%;
362
+ height: theme(digitv2.spacers.spacer12);
363
+ display: flex;
364
+ align-items: center;
365
+ justify-content: center;
366
+
367
+ .sidebar-item-msb:hover {
368
+ background-color: #FFFFFF4D;
369
+ }
370
+
371
+ .sidebar-item-msb:active,
372
+ .sidebar-item-msb.selected,
373
+ .sidebar-item-msb.selectedAsParent {
374
+ background: #c84c0e1a;
375
+
376
+ .item-label-msb {
377
+ color: theme(digitv2.lightTheme.primary-2);
378
+ }
379
+ }
380
+
381
+ .sidebar-item-msb.selected::before,
382
+ .sidebar-item-msb:active::before,
383
+ .sidebar-item-msb:active:hover::before,
384
+ .sidebar-item-msb.selected:hover::before,
385
+ .sidebar-item-msb.selectedAsParent::before,
386
+ .sidebar-item-msb.selectedAsParent:hover::before {
387
+ content: '';
388
+ position: absolute;
389
+ top: 0.062rem;
390
+ left: 0;
391
+ bottom: 0.063rem;
392
+ width: theme(digitv2.spacers.spacer2);
393
+ background: theme(digitv2.lightTheme.primary-1);
394
+ border-top-right-radius: theme(digitv2.spacers.spacer1);
395
+ border-bottom-right-radius: theme(digitv2.spacers.spacer1);
396
+ }
397
+
398
+ .sidebar-item-msb.dark:active,
399
+ .sidebar-item-msb.dark.selected,
400
+ .sidebar-item-msb.dark.selectedAsParent {
401
+ background: theme(digitv2.lightTheme.primary-1);
402
+ .item-label-msb {
403
+ color: theme(digitv2.lightTheme.paper-primary);
404
+ }
405
+ }
406
+
407
+ .sidebar-item-msb.dark.selected::before,
408
+ .sidebar-item-msb.dark:active::before,
409
+ .sidebar-item-msb.dark.selectedAsParent::before,
410
+ .sidebar-item-msb.dark:active:hover::before,
411
+ .sidebar-item-msb.dark.selected:hover::before,
412
+ .sidebar-item-msb.dark.selectedAsParent:hover::before {
413
+ content: '';
414
+ position: absolute;
415
+ top: 0.062rem;
416
+ left: 0;
417
+ bottom: 0.063rem;
418
+ width: theme(digitv2.spacers.spacer2);
419
+ background: theme(digitv2.lightTheme.paper-primary);
420
+ border-top-right-radius: theme(digitv2.spacers.spacer1);
421
+ border-bottom-right-radius: theme(digitv2.spacers.spacer1);
422
+ }
423
+ }
424
+
425
+
426
+ .msb-sidebar-items::-webkit-scrollbar {
427
+ width: 0.375rem;
428
+ background-color: theme(digitv2.lightTheme.generic-background);
429
+ }
430
+
431
+ .msb-sidebar-items::-webkit-scrollbar-track {
432
+ background-color: theme(digitv2.lightTheme.generic-background);
433
+ border-radius: 0.563rem;
434
+ }
435
+
436
+ .msb-sidebar-items::-webkit-scrollbar-thumb {
437
+ background-color: theme(digitv2.lightTheme.generic-divider);
438
+ border-radius: 0.563rem;
439
+ }