@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
@@ -68,6 +68,10 @@
68
68
  gap: theme(digitv2.spacers.spacer2);
69
69
  }
70
70
 
71
+ &.error{
72
+ gap:theme(digitv2.spacers.spacer1);
73
+ }
74
+
71
75
  .digit-upload-label {
72
76
  @extend .typography.label;
73
77
  @apply text-left;
@@ -78,6 +82,22 @@
78
82
  .digit-uploader-content {
79
83
  @apply flex w-full;
80
84
  gap: theme(digitv2.spacers.spacer3);
85
+
86
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
87
+ max-width: 27.5rem;
88
+ min-width: 21rem;
89
+ }
90
+
91
+ @media (max-width: 30rem) {
92
+ max-width: 20.563rem;
93
+ min-width: 18rem;
94
+ }
95
+
96
+ @media (min-width: 48rem) {
97
+ max-width: 37.5rem;
98
+ min-width: 20.75rem;
99
+ }
100
+
81
101
  }
82
102
 
83
103
  label {
@@ -85,12 +105,13 @@
85
105
  }
86
106
 
87
107
  .digit-uploader-content-uploadpopup {
88
- @apply flex flex-col w-full items-center justify-center max-w-full border-dashed;
108
+ @apply flex flex-col w-full items-center justify-center max-w-full;
89
109
  gap: theme(digitv2.spacers.spacer4);
90
110
  border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
91
111
  background: theme(digitv2.lightTheme.paper-secondary);
92
112
  padding: theme(digitv2.spacers.spacer4);
93
113
  height: 9rem;
114
+ border-style: dashed;
94
115
 
95
116
  @media (min-width: 30.063rem) and (max-width: 47.938rem) {
96
117
  min-width: 18.75rem;
@@ -121,7 +142,7 @@
121
142
  }
122
143
 
123
144
  &.error {
124
- @apply border-dashed;
145
+ border-style: dashed !important;
125
146
  border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
126
147
  }
127
148
  }
@@ -188,9 +209,44 @@
188
209
  width: 6.25rem;
189
210
  min-height: 6.25rem;
190
211
 
212
+ .overlay {
213
+ position: absolute;
214
+ top: 0;
215
+ left: 0;
216
+ width: 6.25rem !important;
217
+ height: 6.25rem !important;
218
+ background: #6f6f6fb2;
219
+ display: flex;
220
+ justify-content: center;
221
+ align-items: center;
222
+
223
+ &.error{
224
+ background: rgba(185, 25, 0, 0.2);
225
+
226
+ &:hover{
227
+ background: transparent;
228
+ }
229
+ }
230
+
231
+ &:hover{
232
+ background: transparent;
233
+ }
234
+ }
235
+
236
+ .digit-docupload-icon{
237
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
238
+
239
+ &:hover{
240
+ box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
241
+ }
242
+ }
243
+
191
244
  .preview-file-name{
245
+ @extend .typography.body-xs;
192
246
  @apply whitespace-pre-wrap break-words;
193
- color: theme(digitv2.lightTheme.text-primary);
247
+ color: theme(digitv2.lightTheme.text-secondary);
248
+ word-break: break-word;
249
+ cursor: default;
194
250
  }
195
251
 
196
252
  img {
@@ -207,18 +263,46 @@
207
263
  border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
208
264
  }
209
265
  }
210
- }
211
266
 
212
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
213
- min-width: 20.75rem;
267
+ &.single.imageFile{
268
+ width: 100%;
269
+
270
+ img{
271
+ width: 100% !important;
272
+ }
273
+
274
+ .overlay{
275
+ width: 100% !important;
276
+ }
277
+ }
214
278
  }
215
279
 
216
- @media (max-width: 30rem) {
217
- min-width: 18rem;
280
+ .preview-container.uploadImage.singleUpload {
281
+ width: 100%;
282
+ height: 100%;
283
+
284
+ img{
285
+ width: 100% !important;
286
+ height: 100% !important;
287
+ object-fit: cover;
288
+ }
218
289
  }
219
290
 
220
- @media (min-width: 48rem) {
221
- min-width: 20.75rem;
291
+ &:not(.uploadImage){
292
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
293
+ max-width: 27.5rem;
294
+ min-width: 21rem;
295
+ }
296
+
297
+ @media (max-width: 30rem) {
298
+ max-width: 20.563rem;
299
+ min-width: 18rem;
300
+ }
301
+
302
+ @media (min-width: 48rem) {
303
+ max-width: 37.5rem;
304
+ min-width: 20.75rem;
305
+ }
222
306
  }
223
307
  }
224
308
 
@@ -282,6 +366,10 @@
282
366
  gap: theme(digitv2.spacers.spacer4);
283
367
  margin-left: auto;
284
368
  margin-right: theme(digitv2.spacers.spacer6);
369
+
370
+ &.error-card{
371
+ margin-right: theme(digitv2.spacers.spacer0);
372
+ }
285
373
  }
286
374
 
287
375
  .digit-uploadpopup-close-icon {
@@ -0,0 +1,45 @@
1
+ .digit-viewcard-field-pair{
2
+ @apply w-full flex-col;
3
+ display: flex;
4
+ height: fit-content;
5
+ background-color: transparent;
6
+ gap: theme(digitv2.spacers.spacer1);
7
+
8
+ .digit-viewcard-label{
9
+ @extend .typography.heading-s;
10
+ @apply whitespace-pre-wrap break-words w-full;
11
+ word-break: break-word;
12
+ color: theme(digitv2.lightTheme.text-primary);
13
+ }
14
+
15
+ .digit-viewcard-value{
16
+ @extend .typography.body-s;
17
+ @apply whitespace-pre-wrap break-words w-full;
18
+ color: theme(digitv2.lightTheme.text-primary);
19
+ }
20
+
21
+ &.inline{
22
+ flex-direction: row;
23
+
24
+ @media (min-width: 48rem) {
25
+ gap: theme(digitv2.spacers.spacer6);
26
+ }
27
+
28
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
29
+ gap: theme(digitv2.spacers.spacer5);
30
+ }
31
+
32
+ @media (max-width: 30rem) {
33
+ gap: theme(digitv2.spacers.spacer4);
34
+ }
35
+
36
+ .digit-viewcard-label{
37
+ width: 20%;
38
+ }
39
+
40
+ .digit-viewcard-value{
41
+ width: 80%;
42
+ }
43
+
44
+ }
45
+ }
@@ -1,6 +1,12 @@
1
+ @import url("./components/backLinkV2.scss");
1
2
  @import url("./components/bodyContainerV2.scss");
3
+ @import url("./components/breadcrumbV2.scss");
2
4
  @import url("./components/buttonsV2.scss");
5
+ @import url("./components/cardlabelV2.scss");
6
+ @import url("./components/cardbasedoptionsV2.scss");
7
+ @import url("./components/cardV2.scss");
3
8
  @import url("./components/checkboxV2.scss");
9
+ @import url("./components/dividerV2.scss");
4
10
  @import url("./components/errorMessageV2.scss");
5
11
  @import url("./components/fieldV1.scss");
6
12
  @import url("./components/FormComposerV2.scss");
@@ -13,7 +19,7 @@
13
19
  @import url("./components/panelV2.scss");
14
20
  @import url("./components/popUpV2.scss");
15
21
  @import url("./components/radiobtnV2.scss");
16
- @import url("./components/removeableTagV2.scss");
22
+ @import url("./components/chipV2.scss");
17
23
  @import url("./components/selectDropdownV2.scss");
18
24
  @import url("./components/stepperV2.scss");
19
25
  @import url("./components/textareaV2.scss");
@@ -24,9 +30,13 @@
24
30
  @import url("./components/toggleV2.scss");
25
31
  @import url("./components/treeSelectV2.scss");
26
32
  @import url("./components/uploaderV2.scss");
27
-
28
-
29
-
33
+ @import url("./components/viewCardFieldPairV2.scss");
34
+ @import url("./components/actionbarV2.scss");
35
+ @import url("./components/headerdropdownV2.scss");
36
+ @import url("./components/topbarV2.scss");
37
+ @import url("./components/sidebarV2.scss");
38
+ @import url("./components/mobilesidebarV2.scss");
39
+ @import url("./components/tooltipwrapperV2.scss");
30
40
 
31
41
  /* pages */
32
42
  @import url("./pages/employee/index.scss");
@@ -242,7 +242,7 @@
242
242
 
243
243
 
244
244
  &.heading-xl {
245
- font-family: theme(digitv2.fontFamily.sans);
245
+ font-family: theme(digitv2.fontFamily.rc);
246
246
  font-style: theme(digitv2.fontStyle.normal);
247
247
  font-weight: theme(digitv2.fontWeight.bold);
248
248
  line-height: theme(digitv2.lineHeight.lineheight1);
package/src/index.scss CHANGED
@@ -74,10 +74,6 @@ h1, h2, h3, h4, h5, h6 {
74
74
  }
75
75
  }
76
76
 
77
- .dark {
78
- @apply text-text-primary;
79
- }
80
-
81
77
  .mrlg {
82
78
  @apply mr-lg;
83
79
  }
@@ -133,7 +133,7 @@
133
133
  height: 100%;
134
134
  color: theme(colors.white);
135
135
  margin-top: 83px;
136
- z-index: 10000;
136
+ z-index: 999;
137
137
  transition: 0.3s ease all;
138
138
  white-space: nowrap;
139
139
  height: calc(100vh - 36px);
Binary file
Binary file
Binary file
package/svg/arrowdown.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>
package/svg/arrowleft.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="19px"><path d="M24 0v24H0V0h24z" fill="none" opacity=".87"/><path d="M14 7l-5 5 5 5V7z"/></svg>
package/svg/calendar.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>
package/svg/camera.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="46px" height="42px">
2
- <rect fill="none" height="24" width="24"/>
3
- <path d="M3,4V1h2v3h3v2H5v3H3V6H0V4H3z M6,10V7h3V4h7l1.83,2H21c1.1,0,2,0.9,2,2v12c0,1.1-0.9,2-2,2H5c-1.1,0-2-0.9-2-2V10H6z M13,19c2.76,0,5-2.24,5-5s-2.24-5-5-5s-5,2.24-5,5S10.24,19,13,19z M9.8,14c0,1.77,1.43,3.2,3.2,3.2s3.2-1.43,3.2-3.2 s-1.43-3.2-3.2-3.2S9.8,12.23,9.8,14z"/>
4
- </svg>
package/svg/check.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#F47738" >
2
- <path d="M0 0h24v24H0z" fill="none"/>
3
- <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>
4
- </svg>
package/svg/close.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="18px" height="18px">
2
- <path d="M0 0h24v24H0V0z" fill="#d4351c"/>
3
- <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>
4
- </svg>
package/svg/error.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" >
2
- <path d="M0 0h24v24H0z" fill="none"/>
3
- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
4
- </svg>
package/svg/error2.svg DELETED
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#d4351c">
2
- <path d="M0 0h24v24H0V0z" fill="none"/>
3
- <circle cx="12" cy="19" r="2"/>
4
- <path d="M10 3h4v12h-4z"/>
5
- </svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#505A5F" width="48px" height="48px" >
2
- <path d="M0 0h24v24H0z" fill="none"/>
3
- <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
4
- </svg>
package/svg/starempty.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#F47738" width="48px" height="48px">
2
- <path d="M0 0h24v24H0V0z" fill="none"/>
3
- <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/>
4
- </svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 24 24" viewBox="0 0 24 24" fill="#F47738" width="48px" height="48px" >
2
- <g><path d="M0,0h24v24H0V0z" fill="none"/>
3
- <path d="M0,0h24v24H0V0z" fill="none"/></g>
4
- <g><path d="M12,17.27L18.18,21l-1.64-7.03L22,9.24l-7.19-0.61L12,2L9.19,8.63L2,9.24l5.46,4.73L5.82,21L12,17.27z"/></g>
5
- </svg>
package/svg/success.svg DELETED
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#00703C" >
2
- <path d="M0 0h24v24H0V0z" fill="none"/>
3
- <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"/>
4
- </svg>