@djb25/digit-ui-css 1.0.22 → 1.0.23

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.22",
3
+ "version": "1.0.23",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -94,9 +94,9 @@ body {
94
94
  padding-inline: 24px;
95
95
  }
96
96
 
97
- .app-container{
98
- height: 100%;
99
- }
97
+ .app-container {
98
+ height: 100%;
99
+ }
100
100
 
101
101
  @screen dt {
102
102
  .employee-app-homepage-container {
@@ -231,14 +231,14 @@ body {
231
231
  }
232
232
  }
233
233
 
234
- .form-container{
235
- gap:12px
236
- }
237
-
234
+ .form-container {
235
+ gap: 12px
236
+ }
237
+
238
238
  .app-container {
239
239
  width: 100%;
240
240
 
241
-
241
+
242
242
  form {
243
243
  .card {
244
244
  max-width: 960px;
@@ -296,6 +296,7 @@ body {
296
296
  width: 100%;
297
297
  padding-bottom: 20px;
298
298
  }
299
+
299
300
  .module-carousel-header h3 {
300
301
  font-size: 20px;
301
302
  font-weight: 600;
@@ -313,12 +314,13 @@ body {
313
314
  background: #3B82F6;
314
315
  border-radius: 4px;
315
316
  }
317
+
316
318
  .module-carousel-header {
317
319
  background: linear-gradient(135deg, #3585c4, #6fa0f0 40%, #80b3ff);
318
320
  padding: 12px 16px;
319
321
  border-radius: 10px;
320
322
  align-items: center;
321
- margin-top:10px;
323
+ margin-top: 10px;
322
324
  }
323
325
 
324
326
  .module-carousel-actions {
@@ -335,34 +337,35 @@ body {
335
337
 
336
338
  .carousel-track {
337
339
  display: grid;
338
- grid-template-columns: repeat(4, minmax(0, 1fr));
339
- grid-auto-flow: row;
340
+ grid-template-rows: repeat(2, minmax(0, 1fr));
341
+ grid-auto-flow: column;
342
+ grid-auto-columns: 100%;
340
343
  gap: 20px;
341
344
  overflow-x: auto;
342
345
  scroll-behavior: smooth;
343
346
  scroll-snap-type: x mandatory;
344
347
  width: 100%;
345
348
  padding: 10px 0px;
346
- column-gap: 20px;
349
+ column-gap: 20px;
347
350
  -ms-overflow-style: none;
348
351
  scrollbar-width: none;
349
352
  }
350
353
 
354
+
351
355
  .carousel-track::-webkit-scrollbar {
352
356
  display: none;
353
357
  }
354
358
 
355
- .carousel-track > div {
359
+ .carousel-track>div {
356
360
  scroll-snap-align: start;
357
361
  box-sizing: border-box;
358
362
  width: 100%;
359
363
  height: 100%;
360
- margin: 0 !important;
364
+ margin: 0 !important;
361
365
  }
362
366
 
363
- .carousel-track {
364
- grid-template-columns: repeat(4, minmax(0, 1fr));
365
- }
367
+
368
+
366
369
 
367
370
  @media (min-width: 640px) {
368
371
 
@@ -370,6 +373,7 @@ grid-template-columns: repeat(4, minmax(0, 1fr));
370
373
  grid-auto-columns: calc((100% - 20px) / 2);
371
374
  }
372
375
  }
376
+
373
377
  @media (min-width: 1024px) {
374
378
  .carousel-track {
375
379
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
@@ -416,6 +420,12 @@ grid-template-columns: repeat(4, minmax(0, 1fr));
416
420
  box-shadow: none;
417
421
  }
418
422
 
423
+ @screen dt {
424
+ .carousel-track {
425
+ grid-auto-columns: calc((100% - 3 * 20px) / 4);
426
+ }
427
+ }
428
+
419
429
  @screen dt {
420
430
  .carousel-track {
421
431
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
@@ -162,6 +162,7 @@
162
162
  cursor: pointer;
163
163
  height: 36px !important;
164
164
  border: none !important;
165
+
165
166
  &:focus {
166
167
  @apply outline-none;
167
168
  }
@@ -185,6 +186,7 @@
185
186
  }
186
187
 
187
188
  @screen dt {
189
+
188
190
  .submit-bar,
189
191
  .submit-bar-disabled {
190
192
  width: 240px;
@@ -346,7 +348,7 @@
346
348
  }
347
349
 
348
350
  /* Remove any default margins that might interfere */
349
- .label-field-pair > * {
351
+ .label-field-pair>* {
350
352
  margin: 0;
351
353
  width: 100%;
352
354
  }
@@ -378,8 +380,7 @@
378
380
  margin-right: auto;
379
381
  }
380
382
 
381
- .header-content {
382
- }
383
+ .header-content {}
383
384
 
384
385
  .header-end {
385
386
  margin-left: auto;
@@ -469,76 +470,152 @@
469
470
 
470
471
  .new-employee-card {
471
472
  position: relative;
472
- border: 1px solid #f3f4f6;
473
- border-radius: 12px;
474
- padding: 15px;
473
+ background-color: #ffffff;
474
+ background-image:
475
+ radial-gradient(circle at 0% 0%, rgba(186, 230, 253, 0.6) 0%, transparent 60%),
476
+ radial-gradient(circle at 100% 0%, rgba(243, 232, 255, 0.5) 0%, transparent 60%),
477
+ radial-gradient(circle at 100% 100%, rgba(255, 237, 213, 0.4) 0%, transparent 60%);
478
+ border: 1px solid #eef1f5;
479
+ border-radius: 20px;
480
+ padding: 10px;
475
481
  display: flex;
476
482
  flex-direction: column;
477
- gap: 24px;
483
+ gap: 13px;
478
484
  width: 100%;
479
485
  max-width: 426px;
480
- min-height: 210px;
481
- box-shadow: 0 14px 10px -6px rgba(0, 0, 0, 0.12), 0 8px 12px -8px rgba(0, 0, 0, 0.08);
482
- font-family: "Inter", -apple-system, sans-serif;
486
+ max-height: 180px;
487
+ box-shadow:
488
+ 0 10px 25px -5px rgba(0, 0, 0, 0.04),
489
+ 0 8px 10px -6px rgba(0, 0, 0, 0.02);
490
+ font-family: inherit;
483
491
  overflow: hidden;
484
- transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
492
+ transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
485
493
  }
486
494
 
487
- .new-employee-card:hover {
488
- transform: translateY(-6px);
489
- box-shadow: 0 24px 36px -8px rgba(0, 0, 0, 0.18), 0 12px 20px -10px rgba(0, 0, 0, 0.12);
495
+ .new-employee-card::after {
496
+ content: "";
497
+ position: absolute;
498
+ top: -10%;
499
+ right: -5%;
500
+ width: 200px;
501
+ height: 200px;
502
+ background: radial-gradient(circle, rgba(235, 244, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
503
+ filter: blur(40px);
504
+ border-radius: 50%;
505
+ z-index: 0;
506
+ pointer-events: none;
490
507
  }
491
508
 
492
509
  .new-employee-card::before {
493
510
  content: "";
494
511
  position: absolute;
495
- inset: 0;
496
- background-image: url("https://objectstorage.ap-hyderabad-1.oraclecloud.com/n/axn3czn1s06y/b/djb-dev-asset-bucket/o/dashboard_card_img.png");
497
- background-size: cover;
498
- background-position: center;
499
- opacity: 0.5;
512
+ bottom: -15%;
513
+ left: -10%;
514
+ width: 250px;
515
+ height: 250px;
516
+ background: radial-gradient(circle, rgba(245, 243, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
517
+ filter: blur(50px);
518
+ border-radius: 50%;
500
519
  z-index: 0;
520
+ pointer-events: none;
521
+ }
522
+
523
+ .new-employee-card:hover {
524
+ transform: translateY(-4px);
525
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
501
526
  }
502
527
 
503
- .new-employee-card > * {
528
+ .new-employee-card>* {
504
529
  position: relative;
505
530
  z-index: 1;
506
531
  }
507
532
 
508
533
  .card-header-row {
509
534
  display: flex;
510
- justify-content: space-between;
535
+ justify-content: flex-start;
511
536
  align-items: center;
537
+ gap: 12px;
512
538
  position: relative;
513
- padding-bottom: 12px;
514
- }
515
- .card-header-row::after {
516
- content: "";
517
- position: absolute;
518
- bottom: 0;
519
- left: 0;
520
- width: 100%;
521
- height: 2px;
522
- background: linear-gradient(90deg, #1a67a3 0%, rgba(26, 103, 163, 0) 100%);
523
- border-radius: 2px;
539
+ padding-bottom: 16px;
540
+
541
+ &::after {
542
+ content: "";
543
+ position: absolute;
544
+ bottom: 0;
545
+ left: 0;
546
+ right: 0;
547
+ height: 1px;
548
+ background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
549
+ }
524
550
  }
525
551
 
526
552
  .module-title {
527
- font-size: 1.25rem;
528
- font-weight: 700;
553
+ font-size: 1.15rem;
554
+ font-weight: 600;
529
555
  color: #111827;
530
556
  margin: 0;
531
557
  }
532
558
 
533
559
  .module-icon-wrap {
534
- width: 36px;
535
- height: 36px;
536
- background-color: #1a67a3;
537
- border-radius: 8px;
560
+ width: 44px;
561
+ height: 44px;
562
+ border-radius: 12px;
538
563
  display: flex;
539
564
  justify-content: center;
540
565
  align-items: center;
541
- color: #ffffff;
566
+ flex-shrink: 0;
567
+ transition: all 0.3s ease;
568
+ z-index: 1;
569
+
570
+ &.icon-blue {
571
+ background-color: #f0f9ff;
572
+ color: #0c4a6e;
573
+ }
574
+
575
+ &.icon-purple {
576
+ background-color: #faf5ff;
577
+ color: #581c87;
578
+ }
579
+
580
+ &.icon-orange {
581
+ background-color: #fff7ed;
582
+ color: #7c2d12;
583
+ }
584
+
585
+ &.icon-green {
586
+ background-color: #f0fdf4;
587
+ color: #14532d;
588
+ }
589
+
590
+ &.icon-brown {
591
+ background-color: #fffbeb;
592
+ color: #713f12;
593
+ }
594
+
595
+ &.icon-violet {
596
+ background-color: #f5f3ff;
597
+ color: #4c1d95;
598
+ }
599
+
600
+ &.icon-teal {
601
+ background-color: #f0fdfa;
602
+ color: #134e4a;
603
+ }
604
+
605
+ &.icon-default {
606
+ background-color: #f8fafc;
607
+ color: #334155;
608
+ }
609
+
610
+ svg {
611
+ width: 26px;
612
+ height: 26px;
613
+ display: block;
614
+ }
615
+ }
616
+
617
+ .new-employee-card:hover .module-icon-wrap {
618
+ transform: scale(1.05);
542
619
  }
543
620
 
544
621
  .card-body-row {
@@ -554,11 +631,10 @@
554
631
  }
555
632
 
556
633
  .main-kpi-number {
557
- font-size: 4.5rem;
634
+ font-size: 2.5rem;
558
635
  font-weight: 700;
559
- color: #1a67a3;
560
- line-height: 0.8;
561
- letter-spacing: -2px;
636
+ color: #111827;
637
+ line-height: 1;
562
638
  }
563
639
 
564
640
  .main-kpi-label-wrap {
@@ -581,9 +657,9 @@
581
657
  }
582
658
 
583
659
  .main-kpi-label {
584
- color: #1a67a3;
585
- font-weight: 500;
586
- font-size: 1.1rem;
660
+ color: #6b7280;
661
+ font-weight: 400;
662
+ font-size: 0.9rem;
587
663
  }
588
664
 
589
665
  .secondary-kpi-section {
@@ -649,34 +725,37 @@
649
725
  }
650
726
 
651
727
  .pill-link {
652
- background-color: #eff6ff;
653
- color: #1a67a3;
654
- padding: 6px 12px;
655
- border-radius: 6px;
656
- font-size: 9px;
657
- font-weight: 600;
728
+ color: #2563eb;
729
+ padding: 6px 14px;
730
+ font-size: 13px;
731
+ font-weight: 500;
658
732
  text-decoration: none;
659
- transition: background-color 0.2s;
733
+ transition: all 0.2s;
660
734
  display: inline-flex;
661
735
  align-items: center;
662
736
  justify-content: center;
663
737
  text-align: center;
738
+ border: 1px solid #dbeafe;
739
+ border-radius: 20px;
740
+ background-color: #f8fbff;
664
741
  }
665
742
 
666
743
  .pill-link:hover {
667
- background-color: #dbeafe;
744
+ background-color: #eff6ff;
745
+ border-color: #bfdbfe;
746
+ transform: translateY(-1px);
668
747
  }
669
748
 
670
749
  .details-btn {
671
- background-color: #1e293b;
672
- color: #ffffff;
673
- padding: 6px 20px;
750
+ background-color: transparent;
751
+ color: #111827;
752
+ padding: 6px 16px;
674
753
  border-radius: 6px;
675
- font-size: 0.75rem;
676
- font-weight: 600;
677
- border: none;
754
+ font-size: 0.85rem;
755
+ font-weight: 500;
756
+ border: 1px solid #e5e7eb;
678
757
  cursor: pointer;
679
- transition: background-color 0.2s;
758
+ transition: all 0.2s;
680
759
  display: inline-flex;
681
760
  align-items: center;
682
761
  justify-content: center;
@@ -685,7 +764,8 @@
685
764
  }
686
765
 
687
766
  .details-btn:hover {
688
- background-color: #0f172a;
767
+ background-color: #f9fafb;
768
+ border-color: #d1d5db;
689
769
  }
690
770
 
691
771
  /* --- NEW: EXPANDED VIEW OVERLAY --- */
@@ -1184,6 +1264,7 @@
1184
1264
  justify-content: center;
1185
1265
  transition: background-color 0.2s, color 0.2s;
1186
1266
  flex-shrink: 0;
1267
+ outline: none !important;
1187
1268
  }
1188
1269
 
1189
1270
  .collapse-toggle:hover {
@@ -1297,4 +1378,4 @@
1297
1378
  .collapsed .nav-item-content {
1298
1379
  justify-content: center;
1299
1380
  padding: 12px 0;
1300
- }
1381
+ }