@egovernments/digit-ui-components-css 0.0.1-pucar.3 → 0.0.2-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.
Files changed (53) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/index.css +6391 -4208
  3. package/dist/index.min.css +2 -2
  4. package/package.json +4 -2
  5. package/src/digitv2/components/actionbarV2.scss +207 -0
  6. package/src/digitv2/components/backLinkV2.scss +37 -0
  7. package/src/digitv2/components/breadcrumbV2.scss +57 -0
  8. package/src/digitv2/components/buttonsV2.scss +45 -2
  9. package/src/digitv2/components/cardV2.scss +498 -0
  10. package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
  11. package/src/digitv2/components/cardlabelV2.scss +8 -0
  12. package/src/digitv2/components/checkboxV2.scss +4 -0
  13. package/src/digitv2/components/{removeableTagV2.scss → chipV2.scss} +5 -0
  14. package/src/digitv2/components/dividerV2.scss +11 -0
  15. package/src/digitv2/components/errorMessageV2.scss +2 -0
  16. package/src/digitv2/components/fieldV1.scss +1 -1
  17. package/src/digitv2/components/headerdropdownV2.scss +152 -0
  18. package/src/digitv2/components/infoCardV2.scss +1 -4
  19. package/src/digitv2/components/labelFieldPairV2.scss +20 -11
  20. package/src/digitv2/components/mobileNumberV2.scss +1 -1
  21. package/src/digitv2/components/mobilesidebarV2.scss +439 -0
  22. package/src/digitv2/components/multiSelectDropdownV2.scss +1 -1
  23. package/src/digitv2/components/popUpV2.scss +29 -7
  24. package/src/digitv2/components/radiobtnV2.scss +6 -4
  25. package/src/digitv2/components/selectDropdownV2.scss +3 -3
  26. package/src/digitv2/components/sidebarV2.scss +409 -0
  27. package/src/digitv2/components/stepperV2.scss +30 -9
  28. package/src/digitv2/components/textInputV2.scss +1 -1
  29. package/src/digitv2/components/textareaV2.scss +1 -1
  30. package/src/digitv2/components/timelineV2.scss +55 -11
  31. package/src/digitv2/components/tooltipwrapperV2.scss +96 -0
  32. package/src/digitv2/components/topbarV2.scss +388 -0
  33. package/src/digitv2/components/uploaderV2.scss +98 -10
  34. package/src/digitv2/components/viewCardFieldPairV2.scss +45 -0
  35. package/src/digitv2/index.scss +14 -4
  36. package/src/digitv2/typography.scss +1 -1
  37. package/src/index.scss +0 -4
  38. package/src/pages/employee/index.scss +1 -1
  39. package/img/browser-icon.png +0 -0
  40. package/img/m_seva_white_logo.png +0 -0
  41. package/img/mseva-demo.png +0 -0
  42. package/svg/arrowdown.svg +0 -1
  43. package/svg/arrowleft.svg +0 -1
  44. package/svg/calendar.svg +0 -1
  45. package/svg/camera.svg +0 -4
  46. package/svg/check.svg +0 -4
  47. package/svg/close.svg +0 -4
  48. package/svg/error.svg +0 -4
  49. package/svg/error2.svg +0 -5
  50. package/svg/searchicon.svg +0 -4
  51. package/svg/starempty.svg +0 -4
  52. package/svg/starfilled.svg +0 -5
  53. package/svg/success.svg +0 -4
@@ -0,0 +1,498 @@
1
+ @import url("../index.scss");
2
+
3
+ .digit-card {
4
+ @apply bg-white m-sm px-md pt-md pb-lg shadow-card;
5
+ @extend .light-paper-primary;
6
+ border-radius: 4px;
7
+ max-width: 960px;
8
+
9
+ .digit-card-header {
10
+ @extend .light-primary;
11
+ @apply text-heading-xl font-bold font-rc align-middle text-left mb-md;
12
+ }
13
+
14
+ .digit-card-sub-header {
15
+ @extend .light-primary;
16
+ @apply text-caption-xl font-bold align-middle text-left mb-sm;
17
+ }
18
+
19
+ .digit-card-caption {
20
+ @extend .light-text-color-secondary;
21
+ @apply text-caption-xl mb-sm;
22
+ }
23
+
24
+ .digit-card-text {
25
+ @extend .light-text-color-secondary;
26
+ @apply text-body-l align-middle text-left mb-lg;
27
+
28
+ span {
29
+ @extend .light-text-color-primary;
30
+ }
31
+ }
32
+
33
+ .digit-card-text-primary {
34
+ @extend .light-primary;
35
+ @apply text-body-l;
36
+ }
37
+
38
+ .digit-card-text-button {
39
+ @extend .light-primary;
40
+ @apply text-text-btn;
41
+ }
42
+
43
+ .digit-card-label {
44
+ @extend .light-primary;
45
+ @apply text-legend mb-sm;
46
+ }
47
+
48
+ .digit-card-label-error {
49
+ @extend .alert-error;
50
+ @apply block text-body-s text-error mb-md;
51
+ }
52
+
53
+ .digit-card-label-desc {
54
+ @extend .light-text-color-secondary;
55
+ @apply font-bold text-heading-s mb-md;
56
+ }
57
+
58
+ .digit-card-link {
59
+ @extend .light-primary;
60
+ @apply block text-center text-link mt-md cursor-pointer;
61
+ }
62
+ }
63
+
64
+ .digit-validation-error {
65
+ @extend .alert-error;
66
+ @apply block text-body-s text-error;
67
+ }
68
+
69
+ .digit-docsDescription {
70
+ @extend .light-text-color-primary;
71
+ }
72
+
73
+ .digit-field-container {
74
+ @apply flex items-center;
75
+ }
76
+
77
+ .digit-employee-card {
78
+ @extend .light-paper-primary;
79
+ @apply bg-white shadow-card p-md mb-xl;
80
+ border-radius: 4px;
81
+
82
+ .digit-card-header {
83
+ @extend .light-primary;
84
+ @apply text-heading-xl font-bold font-rc align-middle text-left mb-md;
85
+ }
86
+
87
+ .digit-card-sub-header,
88
+ .digit-employee-card-sub-header {
89
+ @extend .light-primary;
90
+ @apply text-caption-xl font-bold align-middle text-left;
91
+ }
92
+
93
+ .digit-card-section-header {
94
+ @apply text-heading-m font-bold;
95
+ }
96
+
97
+ .digit-card-section-sub-text {
98
+ @extend .light-primary;
99
+ @apply text-body-s;
100
+ }
101
+
102
+ .digit-card-caption {
103
+ @extend .light-text-color-secondary;
104
+ @apply text-caption-xl mb-sm;
105
+ }
106
+
107
+ .digit-card-text {
108
+ @extend .light-text-color-secondary;
109
+ @apply text-body-l align-middle text-left mb-lg;
110
+
111
+ span {
112
+ @extend .light-text-color-primary;
113
+ }
114
+ }
115
+
116
+ .card-text-primary {
117
+ @extend .light-primary;
118
+ @apply text-body-l;
119
+ }
120
+
121
+ .card-text-button {
122
+ @extend .light-primary;
123
+ @apply text-text-btn;
124
+ }
125
+
126
+ .card-label {
127
+ @extend .light-primary;
128
+ @apply text-legend mb-md;
129
+ }
130
+
131
+ .card-label-error {
132
+ @extend .alert-error;
133
+ @apply block text-body-s text-error mb-md;
134
+ }
135
+
136
+ .card-label-desc {
137
+ @extend .light-text-color-secondary;
138
+ @apply font-bold text-heading-s mb-md;
139
+ }
140
+
141
+ .card-link {
142
+ @extend .light-primary;
143
+ @apply block text-center text-link text-link-normal mt-md;
144
+ }
145
+
146
+ .card-search-heading {
147
+ margin-right: 0px !important;
148
+ margin-left: 0px !important;
149
+ margin-bottom: 0px !important;
150
+ padding-bottom: 0px;
151
+ padding-left: 25px;
152
+ }
153
+ }
154
+
155
+ .header-wrap {
156
+ @apply flex mb-md;
157
+
158
+ .header-start {
159
+ margin-right: auto;
160
+ }
161
+
162
+ .header-content {}
163
+
164
+ .header-end {
165
+ margin-left: auto;
166
+ }
167
+ }
168
+
169
+ .card-emp {
170
+ @extend .card;
171
+ padding-right: 0;
172
+ padding-top: 0;
173
+ padding-left: 0;
174
+ @apply bg-white m-sm;
175
+ @extend .light-background;
176
+ }
177
+
178
+ .submit-bar {
179
+ @extend .light-primary-button;
180
+ @apply h-10 text-center w-full outline-none;
181
+ box-shadow: inset 0px -2px 0px theme(colors.text.primary);
182
+ cursor: pointer;
183
+
184
+ &:focus {
185
+ @apply outline-none;
186
+ }
187
+
188
+ header {
189
+ @apply font-rc font-medium text-legend text-white leading-10;
190
+ }
191
+ }
192
+
193
+ .submit-bar-disabled {
194
+ @apply h-10 bg-primary-main text-center w-full outline-none opacity-50;
195
+
196
+ &:focus {
197
+ @apply outline-none;
198
+ }
199
+
200
+ header {
201
+ @apply font-rc font-medium text-legend text-white leading-10;
202
+ }
203
+ }
204
+
205
+ @screen dt {
206
+
207
+ .submit-bar,
208
+ .submit-bar-disabled {
209
+ width: 240px;
210
+ }
211
+
212
+ .card {
213
+ display: flex;
214
+ flex-direction: column;
215
+
216
+ .card-header {
217
+ @apply text-heading-xl-dt;
218
+ }
219
+
220
+ .card-sub-header {
221
+ @apply text-heading-l-dt;
222
+ }
223
+
224
+ .card-caption {
225
+ @apply text-caption-xl-dt;
226
+ }
227
+
228
+ .card-text,
229
+ .card-text-primary {
230
+ @apply text-body-l-dt;
231
+ }
232
+
233
+ .card-link {
234
+ @apply text-left;
235
+ }
236
+ }
237
+
238
+ .digit-employee-card {
239
+ @apply mb-md mx-md !important;
240
+
241
+ &.digit-filter {
242
+ margin-left: auto;
243
+ margin-right: auto;
244
+ }
245
+
246
+ .digit-card-header {
247
+ @apply text-heading-xl-dt;
248
+ }
249
+
250
+ .digit-card-sub-header {
251
+ @apply text-heading-l-dt;
252
+ }
253
+
254
+ .digit-employee-card-sub-header {
255
+ margin-bottom: 40px;
256
+ @apply text-heading-l-dt;
257
+ }
258
+
259
+ .digit-card-section-header {
260
+ margin-bottom: 40px;
261
+ @apply text-heading-m-dt;
262
+ }
263
+
264
+ .digit-card-section-sub-text {
265
+ @apply text-text-primary text-body-s-dt;
266
+ }
267
+
268
+ .digit-card-search-heading {
269
+ margin-right: 0px !important;
270
+ margin-left: 0px !important;
271
+ margin-bottom: 0px !important;
272
+ padding-bottom: 0px;
273
+ padding-left: 25px;
274
+ }
275
+
276
+ .digit-card-caption {
277
+ @apply text-caption-xl-dt;
278
+ }
279
+
280
+ .digit-card-text,
281
+ .digit-card-text-primary {
282
+ @apply text-body-l-dt;
283
+ }
284
+
285
+ .digit-card-link {
286
+ @apply text-left;
287
+ }
288
+
289
+ .digit-label-field-pair {
290
+ @apply flex;
291
+
292
+ h2 {
293
+ width: 30%;
294
+ }
295
+
296
+ .field {
297
+ width: 50%;
298
+ margin-right: 20%;
299
+
300
+ .field {
301
+ margin-right: unset;
302
+ }
303
+ }
304
+ }
305
+
306
+ .digit-field-container {
307
+ span {
308
+ border: 2px solid black;
309
+ background: rgb(247, 247, 247);
310
+ width: 40px;
311
+ height: 40px;
312
+ display: flex;
313
+ justify-content: center;
314
+ align-items: center;
315
+ margin-top: -16px;
316
+ border-right: none;
317
+ }
318
+ }
319
+ }
320
+
321
+ .digit-header-wrap {
322
+ @apply flex mb-md;
323
+
324
+ .header-start {
325
+ margin-right: auto;
326
+ }
327
+
328
+ .header-content {}
329
+
330
+ .header-end {
331
+ margin-left: auto;
332
+ }
333
+ }
334
+ }
335
+
336
+ .digit-card-section-header {
337
+ @apply text-text-primary text-heading-m font-bold;
338
+ }
339
+
340
+ .digit-card-search-heading {
341
+ margin-right: 0px !important;
342
+ margin-left: 0px !important;
343
+ margin-bottom: 0px !important;
344
+ padding-bottom: 0px;
345
+ padding-left: 25px;
346
+ }
347
+
348
+ .digit-card-label-error {
349
+ @extend .alert-error;
350
+ @apply block text-body-s text-error mb-md;
351
+ }
352
+
353
+ .digit-employee-card-override {
354
+ margin-left: 0px !important;
355
+ }
356
+
357
+ .digit-employee-application-details {
358
+ display: flex !important;
359
+ justify-content: space-between !important;
360
+ max-height: 60px !important;
361
+ height: 60px !important;
362
+ }
363
+
364
+ .digit-employee-main-application-details {
365
+ padding: 10px !important;
366
+ }
367
+
368
+ .digit-employee-mulitlink-main-div {
369
+ @extend .light-primary;
370
+ z-index: 10 !important;
371
+ max-width: 41% !important;
372
+ }
373
+
374
+ .digit-employee-download-btn-className {
375
+ position: unset !important;
376
+ display: flex !important;
377
+ justify-content: flex-end !important;
378
+ }
379
+
380
+ .digit-employee-options-btn-className {
381
+ position: unset !important;
382
+ margin: 0 !important;
383
+ width: 100% !important;
384
+ }
385
+
386
+
387
+ .digit-card-component {
388
+
389
+ width: 100%;
390
+ height: auto;
391
+ background-color: #ffffff;
392
+ border-radius: theme(digitv2.spacers.spacer1);
393
+ box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
394
+ display: flex;
395
+ gap: theme(digitv2.spacers.spacer4);
396
+ flex-direction: column;
397
+
398
+ &.secondary {
399
+ background-color: #FAFAFA;
400
+ border: 0.063em solid #d6d5d4;
401
+ }
402
+
403
+ &.secondary.search,
404
+ &.search {
405
+ flex-direction: row;
406
+
407
+ h2 {
408
+ margin: 0rem;
409
+ margin-bottom: 0.5rem;
410
+ }
411
+
412
+
413
+ .digit-buttons-group {
414
+ gap: 1rem;
415
+ margin-top: 1.875rem;
416
+
417
+ button {
418
+ h2 {
419
+ margin: 0rem;
420
+ }
421
+ }
422
+ }
423
+
424
+
425
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
426
+ flex-direction: row;
427
+
428
+ .digit-buttons-group {
429
+ margin-top: 2.75rem;
430
+
431
+ button {
432
+ h2 {
433
+ margin: 0rem;
434
+ }
435
+ }
436
+ }
437
+ }
438
+
439
+ @media (min-width: 48rem) {
440
+ flex-direction: row;
441
+ }
442
+
443
+ @media (max-width: 30rem) {
444
+ flex-direction: column;
445
+
446
+ .digit-buttons-group {
447
+ margin-top: 0rem;
448
+
449
+ button {
450
+ margin-top: 0rem;
451
+
452
+ h2 {
453
+ margin: 0rem;
454
+ }
455
+ }
456
+
457
+ }
458
+ }
459
+ }
460
+
461
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
462
+ padding: theme(digitv2.spacers.spacer5);
463
+ }
464
+
465
+ @media (min-width: 48rem) {
466
+ padding: theme(digitv2.spacers.spacer6);
467
+ }
468
+
469
+ @media (max-width: 30rem) {
470
+ padding: theme(digitv2.spacers.spacer4);
471
+ }
472
+
473
+ &.action {
474
+ padding: theme(digitv2.spacers.spacer6);
475
+ gap: theme(digitv2.spacers.spacer6);
476
+
477
+ button {
478
+ width: 100%;
479
+ }
480
+ }
481
+
482
+ &.viewcard{
483
+
484
+ .digit-text-block-wrap .digit-text-block-header-content .digit-text-block-subheader{
485
+ color: theme(digitv2.lightTheme.primary-2);
486
+ }
487
+ }
488
+
489
+ &.form{
490
+ .digit-label-field-pair {
491
+ margin-bottom: unset;
492
+ }
493
+
494
+ .digit-radio-options-wrap {
495
+ margin-bottom: unset;
496
+ }
497
+ }
498
+ }
@@ -0,0 +1,47 @@
1
+ .digit-card-based-options {
2
+ box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.16);
3
+ @apply bg-white mb-md px-sm py-md mx-sm rounded w-full;
4
+ .digit-head-content {
5
+ @apply flex justify-between mb-lg;
6
+ h2 {
7
+ @apply text-heading-s font-bold text-text-primary;
8
+ }
9
+ p {
10
+ @apply text-link text-primary-main font-medium cursor-pointer;
11
+ }
12
+ }
13
+
14
+ .digit-main-content {
15
+ @apply flex justify-evenly;
16
+ .digit-card-based-options-main-child-option {
17
+ width: 25%;
18
+ @apply text-center;
19
+ .digit-child-option-image-wrapper {
20
+ margin: auto !important;
21
+ background: rgba(244, 119, 56, 0.12);
22
+ mix-blend-mode: normal;
23
+ padding-top: 14px;
24
+ @apply h-12 w-12 rounded-full cursor-pointer;
25
+ svg {
26
+ height: 20px;
27
+ width: 20px;
28
+ fill: theme(colors.primary.main);
29
+ margin: auto;
30
+ }
31
+ }
32
+ .digit-child-option-name {
33
+ font-size: 12px;
34
+ line-height: 14px;
35
+ padding-top: 1rem;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ @screen dt {
42
+ .digit-card-based-options {
43
+ width: calc(50% - 16px);
44
+ @apply p-md;
45
+ }
46
+ }
47
+
@@ -0,0 +1,8 @@
1
+ @import url("../typography.scss");
2
+
3
+ .digit-card-label {
4
+ font-weight: theme(digitv2.fontWeight.regular);
5
+ font-size: 16px;
6
+ line-height: 19px;
7
+ color: theme(digitv2.lightTheme.text-primary);
8
+ }
@@ -26,6 +26,10 @@
26
26
  @apply opacity-0;
27
27
  }
28
28
 
29
+ svg{
30
+ flex-shrink: 0;
31
+ }
32
+
29
33
  &:hover {
30
34
  @apply border-2 ;
31
35
  border-color: theme(digitv2.lightTheme.primary-1);
@@ -122,4 +122,9 @@
122
122
 
123
123
  .cp{
124
124
  cursor: pointer;
125
+ }
126
+
127
+ .nonclickable{
128
+ pointer-events: none;
129
+ cursor:none;
125
130
  }
@@ -0,0 +1,11 @@
1
+ .digit-divider {
2
+ border: theme(digitv2.divider.dividerS);
3
+
4
+ &.medium {
5
+ border: theme(digitv2.divider.dividerM);
6
+ }
7
+
8
+ &.large {
9
+ border: theme(digitv2.divider.dividerL);
10
+ }
11
+ }
@@ -4,6 +4,8 @@
4
4
  .digit-error-icon-message-wrap {
5
5
  @apply flex w-full whitespace-pre-wrap break-words;
6
6
  gap: theme(digitv2.spacers.spacer1);
7
+ word-break: break-word;
8
+ cursor: default;
7
9
 
8
10
  .digit-error-icon{
9
11
  @apply flex items-center;
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  @media (max-aspect-ratio: 9/16) {
85
- max-width: 20.5rem;
85
+ max-width: 100%;
86
86
  width: 100%;
87
87
  }
88
88