@egovernments/digit-ui-components-css 0.0.2-beta.12 → 0.0.2-beta.16

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.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@egovernments/digit-ui-components-css",
3
- "version": "0.0.2-beta.12",
3
+ "version": "0.0.2-beta.16",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
- "author": "Jagankumar <jagan.kumar@egov.org.in>",
6
+ "author": "Jagankumar <jagan.kumar@egovernments.org>",
7
7
  "engines": {
8
8
  "node": ">=14"
9
9
  },
@@ -144,6 +144,24 @@
144
144
  justify-content: space-between;
145
145
  flex-wrap: wrap;
146
146
 
147
+ &.toRight{
148
+ margin-left: auto;
149
+ }
150
+
151
+ &.toLeft{
152
+ justify-content: unset;
153
+ }
154
+
155
+ .action-bar-individual-action-field{
156
+ button{
157
+ flex: 1;
158
+ }
159
+ }
160
+
161
+ &:not(.toRight){
162
+ width: 100%;
163
+ }
164
+
147
165
  @media (min-width: 48rem) {
148
166
  gap: theme(digitv2.spacers.spacer6);
149
167
  }
@@ -155,6 +173,7 @@
155
173
  @media (max-width: 30rem) {
156
174
  gap: theme(digitv2.spacers.spacer4);
157
175
  flex-direction: column;
176
+ width: 100%;
158
177
 
159
178
  .action-bar-individual-action-field{
160
179
  button{
@@ -163,24 +182,6 @@
163
182
  }
164
183
  }
165
184
  }
166
-
167
- &.toRight{
168
- margin-left: auto;
169
- }
170
-
171
- &.toLeft{
172
- justify-content: unset;
173
- }
174
-
175
- .action-bar-individual-action-field{
176
- button{
177
- flex: 1;
178
- }
179
- }
180
-
181
- &:not(.toRight){
182
- width: 100%;
183
- }
184
185
  }
185
186
 
186
187
  .digit-dropdown-select-wrap,
@@ -165,7 +165,6 @@
165
165
  &.large{
166
166
  h2{
167
167
  @apply h-5;
168
- margin-top: theme(digitv2.spacers.spacer1);
169
168
  }
170
169
  }
171
170
 
@@ -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
+ }
@@ -0,0 +1,73 @@
1
+ .selection-card-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-start;
5
+ }
6
+
7
+ .selection-card {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ gap: theme(digitv2.spacers.spacer6);
11
+ padding: theme(digitv2.spacers.spacer6);
12
+ border: 0.063rem solid #d6d5d4;
13
+ border-radius: theme(digitv2.spacers.spacer1);
14
+ background-color: theme(digitv2.lightTheme.paper-secondary);
15
+ width: fit-content;
16
+ }
17
+
18
+ .selection-card.error {
19
+ border-color: theme(digitv2.lightTheme.alert-error);
20
+ }
21
+
22
+ .option {
23
+ display: flex;
24
+ align-items: center;
25
+ padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer4);
26
+ border: 0.063rem solid #d6d5d4;
27
+ border-radius: theme(digitv2.spacers.spacer1);
28
+ background-color: theme(digitv2.lightTheme.paper-primary);
29
+ cursor: pointer;
30
+ height: theme(digitv2.spacers.spacer10);
31
+ gap:theme(digitv2.spacers.spacer2);
32
+ color: theme(digitv2.lightTheme.text-primary);
33
+ font-family: theme(digitv2.fontFamily.sans);
34
+ font-style: theme(digitv2.fontStyle.normal);
35
+ font-weight: theme(digitv2.fontWeight.regular);
36
+ line-height: theme(digitv2.lineHeight.lineheight2);
37
+
38
+ @media (max-aspect-ratio: 9/16) {
39
+ /* Media query for mobile */
40
+ font-size: theme(digitv2.fontSize.body-l.mobile);
41
+ }
42
+
43
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
44
+ /* Media query for tablets */
45
+ font-size: theme(digitv2.fontSize.body-l.tablet);
46
+ }
47
+
48
+ @media (min-aspect-ratio: 3/4) {
49
+ /* Media query for desktop */
50
+ font-size: theme(digitv2.fontSize.body-l.desktop);
51
+ }
52
+ }
53
+
54
+ .option.selected {
55
+ background-color: theme(digitv2.lightTheme.primary-1);
56
+ color: theme(digitv2.lightTheme.paper-primary);
57
+ font-weight: theme(digitv2.fontWeight.bold);
58
+ }
59
+
60
+ .option .selectioncard-option-label {
61
+ width: 100%;
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+
67
+
68
+ .option .selectioncardicon {
69
+ flex-shrink: 0;
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ }