@djb25/digit-ui-css 1.0.39 → 1.0.41

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@djb25/digit-ui-css",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -68,7 +68,7 @@
68
68
  .formcomposer-section-grid {
69
69
  display: grid;
70
70
  grid-template-columns: 1fr 1fr;
71
- gap: 8px;
71
+ gap: 16px;
72
72
  column-gap: 24px;
73
73
  width: 100%;
74
74
  .grid-title {
@@ -1,9 +1,9 @@
1
1
  body {
2
- @apply bg-grey-bg;
2
+ background-color: #e7e7e7;
3
3
  }
4
4
 
5
5
  .body-container {
6
- @apply bg-grey-bg h-full min-h-screen overflow-x-hidden;
6
+ @apply h-full min-h-screen overflow-x-hidden;
7
7
  }
8
8
 
9
9
  .navbar {
@@ -214,6 +214,24 @@
214
214
  background: linear-gradient(278deg, rgba(110, 191, 221, 0.925) -24.44%, rgba(97, 119, 236, 0.9) 93.53%);
215
215
  }
216
216
  }
217
+
218
+ .label-field-pair .field .text-input .select .select-active .master-active input:focus {
219
+ outline: none;
220
+ border-color: #007bff;
221
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
222
+ }
223
+ .label-field-pair .field .text-input .select .master-active .select-active input:focus-within {
224
+ outline: none;
225
+ border-color: #007bff;
226
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
227
+ }
228
+
229
+ .employee-card-input:focus-within {
230
+ outline: none;
231
+ border-color: #007bff !important;
232
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
233
+ }
234
+
217
235
  @screen dt {
218
236
  .submit-bar,
219
237
  .submit-bar-disabled {
@@ -247,7 +265,9 @@
247
265
  }
248
266
 
249
267
  .label-field-pair {
250
- align-items: center;
268
+ display: flex;
269
+ gap: 4px;
270
+ flex-direction: column;
251
271
  }
252
272
 
253
273
  .employeeCard {
@@ -331,7 +351,7 @@
331
351
  .label-field-pair {
332
352
  display: flex;
333
353
  flex-direction: column;
334
- gap: 8px;
354
+ gap: 4px;
335
355
  justify-content: flex-start;
336
356
  align-items: center;
337
357
  /* Adjust spacing between label and field */
@@ -846,7 +866,7 @@
846
866
  }
847
867
 
848
868
  .sidebar-item.active {
849
- background-color: #00adef;
869
+ background-color: #667eea;
850
870
  color: #ffffff;
851
871
  box-shadow: 0 4px 6px rgba(0, 173, 239, 0.2);
852
872
  padding: 6px;
@@ -1050,7 +1070,7 @@
1050
1070
  }
1051
1071
 
1052
1072
  .sidebar-item.active {
1053
- background-color: #00adef;
1073
+ background-color: #667eea;
1054
1074
  color: #ffffff;
1055
1075
  box-shadow: 0 4px 6px rgba(0, 173, 239, 0.2);
1056
1076
  }
@@ -33,7 +33,22 @@
33
33
  }
34
34
 
35
35
  .employee-data-table {
36
+ .employee-role-list-value {
37
+ max-height: 150px;
38
+ overflow-y: scroll;
39
+ }
40
+ .row-content {
41
+ display: flex !important;
42
+ width: 30% !important;
43
+ @media (max-width: 768px) {
44
+ width: fit-content !important;
45
+ }
46
+ }
47
+
36
48
  .row {
49
+ @media (max-width: 768px) {
50
+ justify-content: space-between;
51
+ }
37
52
  @apply flex pb-sm mb-sm;
38
53
 
39
54
  span {
@@ -51,7 +66,10 @@
51
66
  @apply text-heading-s;
52
67
  white-space: break-spaces !important;
53
68
  word-break: break-all;
54
- text-align: center;
69
+ text-align: start;
70
+ @media (max-width: 768px) {
71
+ width: fit-content !important;
72
+ }
55
73
  }
56
74
 
57
75
  .caption {
@@ -2,9 +2,10 @@
2
2
  @apply relative text-form-field text-text-primary w-full;
3
3
  .master,
4
4
  .master-active {
5
- @apply relative border border-solid border-input-border h-10 w-full;
5
+ border: 2px solid #e5e5e7;
6
+ @apply rounded-md relative h-10 w-full;
6
7
  input[type="text"] {
7
- @apply absolute top-0 left-0 min-h-full opacity-0;
8
+ @apply rounded-l-md absolute top-0 left-0 min-h-full opacity-0;
8
9
  &:focus {
9
10
  @apply outline-none;
10
11
  }
@@ -17,12 +18,24 @@
17
18
  }
18
19
 
19
20
  &:hover {
20
- @apply border-2 border-solid border-primary-main;
21
+ border: 2px solid #a1a1aa;
22
+ @apply rounded-md;
23
+ }
24
+ &:focus-within {
25
+ border: 2px solid #007bff !important;
26
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
21
27
  }
22
28
  }
23
29
 
24
30
  .master-active {
25
- @apply border-2 border-primary-main;
31
+ &:hover {
32
+ border: 2px solid #a1a1aa;
33
+ @apply rounded-md;
34
+ }
35
+ &:focus-within {
36
+ border: 2px solid #007bff !important;
37
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
38
+ }
26
39
  input[type="text"] {
27
40
  @apply opacity-100;
28
41
  }
@@ -1,10 +1,10 @@
1
1
  .radio-wrap {
2
2
  flex-wrap: wrap;
3
3
  .radio-btn-outer-wrap {
4
- display: flex;
5
- align-items: center;
4
+ display: flex;
5
+ align-items: center;
6
6
  }
7
- @apply my-sm block leading-10 mb-lg;
7
+ @apply block leading-10;
8
8
 
9
9
  .radio-btn-wrap {
10
10
  @apply block float-left relative;
@@ -35,16 +35,16 @@
35
35
  @apply border-2 border-primary-main;
36
36
  }
37
37
 
38
- .radio-btn-wrap input:checked ~ .radio-btn-checkmark:after {
39
- @apply block bg-primary-main h-3 w-3 rounded-full absolute;
38
+ .radio-btn-wrap input:checked ~ .radio-btn-checkmark:after {
39
+ @apply block bg-primary-main h-3 w-3 rounded-full absolute;
40
40
 
41
- top: 50%;
42
- left: 50%;
43
- transform: translate(-50%, -50%);
44
- }
41
+ top: 50%;
42
+ left: 50%;
43
+ transform: translate(-50%, -50%);
44
+ }
45
45
  }
46
- .reverse-radio-selection-wrapper{
47
- div{
48
- @apply flex flex-row-reverse place-content-between items-center; ;
46
+ .reverse-radio-selection-wrapper {
47
+ div {
48
+ @apply flex flex-row-reverse place-content-between items-center;
49
49
  }
50
- }
50
+ }
@@ -50,7 +50,10 @@
50
50
  }
51
51
 
52
52
  .select-active {
53
- @apply relative block w-full h-10 border-2 border-solid border-primary-main rounded-md;
53
+ outline: none;
54
+ border: 2px solid #007bff;
55
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
56
+ @apply relative block w-full h-10 rounded-md;
54
57
 
55
58
  input[type="text"] {
56
59
  width: calc(100% - 32px);
@@ -130,7 +133,10 @@
130
133
  }
131
134
 
132
135
  .select-active {
133
- @apply relative block w-full h-10 border-2 border-solid border-primary-main rounded-md;
136
+ outline: none;
137
+ border: 2px solid #007bff;
138
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
139
+ @apply relative block w-full h-10 rounded-md;
134
140
 
135
141
  input[type="text"] {
136
142
  width: calc(100% - 32px);
@@ -9,6 +9,9 @@
9
9
  .employee-card-input {
10
10
  border: 2px solid #e5e5e7;
11
11
  @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field text-text-primary rounded-md;
12
+ &:hover {
13
+ border: 2px solid #a1a1aa;
14
+ }
12
15
  }
13
16
 
14
17
  .employee-card-input:disabled {
@@ -31,7 +34,11 @@
31
34
 
32
35
  .card-textarea,
33
36
  .employee-card-textarea {
34
- @apply block outline-none border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm rounded-md;
37
+ border: 2px solid #e5e5e7;
38
+ @apply block outline-none w-full bg-white h-24 text-form-field text-text-primary p-sm rounded-md;
39
+ &:hover {
40
+ border: 2px solid #a1a1aa;
41
+ }
35
42
  }
36
43
 
37
44
  .inputWrapper {
@@ -15,6 +15,26 @@
15
15
  width: 100%;
16
16
  }
17
17
 
18
+
19
+ .btx {
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ gap: 2px; /* controls space between lines */
24
+
25
+ h1 {
26
+ margin: 0;
27
+ line-height: 1.1;
28
+ }
29
+
30
+ p {
31
+ margin: 0;
32
+ line-height: 1.1;
33
+ }
34
+
35
+
36
+ }
37
+
18
38
  img {
19
39
  display: inline;
20
40
 
@@ -110,6 +130,27 @@
110
130
  }
111
131
  }
112
132
  }
133
+
134
+ @media (max-width: 780px) {
135
+ padding: 10px 16px; // Reduce padding for mobile
136
+
137
+ .brand-mark {
138
+ width: 40px !important;
139
+ height: 40px !important;
140
+ img {
141
+ max-width: 32px;
142
+ }
143
+ }
144
+
145
+ .btx {
146
+ h1 {
147
+ font-size: 15px !important;
148
+ }
149
+ p {
150
+ font-size: 9px !important;
151
+ }
152
+ }
153
+ }
113
154
  }
114
155
 
115
156
  .cp {
@@ -235,3 +276,155 @@ video::-webkit-media-controls-panel {
235
276
  flex-shrink: 0;
236
277
  }
237
278
  }
279
+
280
+ .topbar-right-section {
281
+ display: flex;
282
+ align-items: center;
283
+ justify-content: flex-end;
284
+ flex: 1;
285
+ gap: 15px;
286
+
287
+ @media (max-width: 1024px) {
288
+ gap: 8px;
289
+ margin-right: 0px !important;
290
+ margin-left: 0px !important;
291
+ }
292
+ }
293
+
294
+ .topbar-item-wrapper {
295
+ display: flex !important;
296
+ align-items: center !important;
297
+ gap: 10px !important;
298
+ padding: 8px 14px !important;
299
+ border-radius: 8px !important;
300
+ border: 1px solid #e5e7eb !important;
301
+ background-color: #ffffff !important;
302
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
303
+ font-size: 14px !important;
304
+ font-weight: 500 !important;
305
+ color: #1f2937 !important;
306
+ white-space: nowrap !important;
307
+
308
+ @media (max-width: 1024px) {
309
+ padding: 6px 10px !important;
310
+ gap: 6px !important;
311
+ font-size: 12px !important;
312
+ }
313
+
314
+ @media (max-width: 780px) {
315
+ padding: 4px 6px !important;
316
+ font-size: 11px !important;
317
+ svg {
318
+ width: 14px !important;
319
+ height: 14px !important;
320
+ }
321
+ }
322
+
323
+ @media (max-width: 450px) {
324
+ padding: 3px 5px !important;
325
+ font-size: 10px !important;
326
+ gap: 4px !important;
327
+ svg {
328
+ width: 12px !important;
329
+ height: 12px !important;
330
+ }
331
+ }
332
+ }
333
+
334
+ .hide-on-mobile {
335
+ @media (max-width: 500px) {
336
+ display: none !important;
337
+ }
338
+ }
339
+
340
+ .vertical-divider {
341
+ width: 2px;
342
+ height: 28px;
343
+ background-color: rgb(203, 213, 225);
344
+
345
+ @media (max-width: 1024px) {
346
+ height: 20px;
347
+ }
348
+ @media (max-width: 780px) {
349
+ height: 16px;
350
+ }
351
+ }
352
+
353
+ @media (max-width: 1024px) {
354
+ .user-profile-pill {
355
+ padding: 4px !important;
356
+ gap: 0 !important;
357
+ .user-profile-info {
358
+ display: none !important;
359
+ }
360
+ }
361
+
362
+ .topbar img.spect-icon {
363
+ max-height: 40px !important;
364
+ padding-right: 10px !important;
365
+ }
366
+ }
367
+
368
+ @media (max-width: 780px) {
369
+ .topbar img.spect-icon {
370
+ display: none !important;
371
+ }
372
+
373
+ .user-profile-pill {
374
+ .user-profile-avatar,
375
+ .user-profile-img {
376
+ width: 32px !important;
377
+ height: 32px !important;
378
+ font-size: 14px !important;
379
+ }
380
+ }
381
+ }
382
+
383
+ @media (max-width: 360px) {
384
+ .topbar {
385
+ padding: 8px 10px !important;
386
+ }
387
+ .topbar-content {
388
+ gap: 0 !important;
389
+ }
390
+ .topbar .brand {
391
+ gap: 6px !important;
392
+ }
393
+ .topbar .brand-mark {
394
+ width: 34px !important;
395
+ height: 34px !important;
396
+ border-radius: 6px !important;
397
+ min-width: 34px !important;
398
+ display: flex !important;
399
+ align-items: center !important;
400
+ justify-content: center !important;
401
+ }
402
+ .topbar .brand-mark img {
403
+ max-width: 24px !important;
404
+ height: auto !important;
405
+ object-fit: contain !important;
406
+ }
407
+ .topbar .btx p {
408
+ display: none !important;
409
+ }
410
+ .topbar .btx h1 {
411
+ font-size: 14px !important;
412
+ line-height: 1 !important;
413
+ white-space: nowrap !important;
414
+ }
415
+ .user-profile-pill {
416
+ padding: 2px 6px 2px 2px !important;
417
+ gap: 4px !important;
418
+ border: none !important;
419
+ .user-profile-avatar,
420
+ .user-profile-img {
421
+ width: 28px !important;
422
+ height: 28px !important;
423
+ font-size: 13px !important;
424
+ }
425
+ }
426
+ .topbar-item-wrapper {
427
+ padding: 4px !important;
428
+ border: none !important;
429
+ }
430
+ }
@@ -75,7 +75,7 @@
75
75
 
76
76
  .card-textarea,
77
77
  .employee-card-textarea {
78
- @apply block outline-none border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm;
78
+ @apply block outline-none w-full bg-white h-24 text-form-field text-text-primary p-sm;
79
79
  @extend .light-input-border;
80
80
  }
81
81
 
@@ -718,9 +718,6 @@ button:hover {
718
718
  display: block;
719
719
  width: 100%;
720
720
  height: 2.5rem;
721
- --border-opacity: 1;
722
- border: 1px solid #f47738;
723
- border-color: rgba(244, 119, 56, var(--border-opacity));
724
721
  }
725
722
 
726
723
  .modal-content .label-field-pair {
package/src/index.scss CHANGED
@@ -308,6 +308,10 @@ input[readonly] {
308
308
  @apply border-grey-dark text-grey-dark !important;
309
309
  pointer-events: none !important;
310
310
  }
311
+ .disabled-label {
312
+ @apply border-grey-dark text-grey-dark !important;
313
+ pointer-events: none !important;
314
+ }
311
315
 
312
316
  .card-date-input {
313
317
  @apply absolute top-0 left-0 w-3/4 bg-white pl-sm border border-input-border border-solid border-r-0;
@@ -342,7 +346,7 @@ input[readonly] {
342
346
  .border-none {
343
347
  border: none;
344
348
  justify-content: space-between;
345
- max-width: 450px;
349
+ max-width: 600px;
346
350
  }
347
351
 
348
352
  input[type="number"]::-webkit-inner-spin-button,
@@ -489,7 +493,28 @@ input[type="number"] {
489
493
  }
490
494
 
491
495
  input {
492
- border: 1px solid #e5e5e7;
496
+ border: 2px solid #a1a1aa;
497
+ color: #a1a1aa;
498
+ &:focus-within {
499
+ outline: none;
500
+ border-color: #007bff;
501
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
502
+ }
503
+ }
504
+ }
505
+
506
+ .phone-input-wrapper:focus-within {
507
+ .employee-card-input--front {
508
+ outline: none;
509
+ border-color: #007bff;
510
+ border-right: 0;
511
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
512
+ z-index: 1;
513
+ }
514
+ input {
515
+ outline: none;
516
+ border-color: #007bff;
517
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
493
518
  }
494
519
  }
495
520
 
@@ -216,6 +216,26 @@
216
216
  }
217
217
  }
218
218
 
219
+ .hover-button {
220
+ &:hover {
221
+ height: 32px;
222
+ border-radius: 9999999px;
223
+ border: 2px solid #a82227;
224
+ padding: 0 32px;
225
+ display: flex;
226
+ align-items: center;
227
+ justify-content: center;
228
+ cursor: pointer;
229
+ transition: all 0.2s ease;
230
+ width: fit-content;
231
+ text-decoration: none;
232
+
233
+ @media (max-width: 768px) {
234
+ padding: 0 12px;
235
+ }
236
+ }
237
+ }
238
+
219
239
  .generic-button {
220
240
  height: 32px;
221
241
  border-radius: 9999999px;
@@ -658,6 +658,14 @@
658
658
  }
659
659
  }
660
660
 
661
+ .hover-button:hover {
662
+ border: 2px solid #a82227 !important;
663
+ }
664
+
665
+ .hover-button-round:hover {
666
+ padding: 4px !important;
667
+ }
668
+
661
669
  @media (min-width: 640px) {
662
670
  .employee {
663
671
  display: flex;
@@ -684,6 +692,18 @@
684
692
  /* width: calc(100%-83px); */
685
693
  }
686
694
 
695
+ .add-details-link {
696
+ color: #a82227;
697
+ cursor: pointer;
698
+ text-decoration: underline;
699
+ display: flex;
700
+ width: fit-content;
701
+ &:hover {
702
+ padding: 0 32px;
703
+ margin-left: 0;
704
+ }
705
+ }
706
+
687
707
  .citizen-home-container {
688
708
  display: flex;
689
709
  flex-direction: unset !important;
@@ -9,6 +9,7 @@
9
9
 
10
10
  &.employee {
11
11
  @media (min-width: 768px) {
12
+ overflow-y: scroll;
12
13
  width: 33.33%;
13
14
  height: fit-content;
14
15
  min-width: 250px;
@@ -104,16 +105,16 @@
104
105
  flex-direction: column;
105
106
  gap: 16px;
106
107
  width: 100%;
107
- padding-top: 16px;
108
- padding-inline: 20px;
109
- margin-bottom: 88px;
110
-
108
+ height: 100%;
109
+ @media (min-width: 768px) {
110
+ padding-inline: 20px;
111
+ }
111
112
  .generic-button {
112
113
  color: #fff;
113
114
  cursor: pointer;
114
115
  position: relative;
115
116
  border-radius: 10px;
116
- background-color: #171f1d;
117
+ background-color: #7696e7;
117
118
  }
118
119
  }
119
120
 
@@ -128,6 +129,15 @@
128
129
  position: relative;
129
130
  }
130
131
 
132
+ .login {
133
+ .user-profile-wrapper {
134
+ padding-bottom: 16px;
135
+ @media (max-width: 768px) {
136
+ padding-bottom: 76px;
137
+ }
138
+ }
139
+ }
140
+
131
141
  .user-profile-wrapper {
132
142
  display: flex;
133
143
  flex: 1;
@@ -135,6 +145,7 @@
135
145
 
136
146
  @media (min-width: 768px) {
137
147
  flex-direction: row;
148
+ overflow-y: scroll;
138
149
  }
139
150
  @media (max-width: 768px) {
140
151
  align-items: center;
@@ -192,7 +203,7 @@
192
203
  gap: 8px;
193
204
 
194
205
  &.employee {
195
- flex: 7.5;
206
+ overflow-y: scroll;
196
207
  padding: 24px;
197
208
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
198
209
  }