@djb25/digit-ui-css 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -49,7 +49,6 @@
49
49
 
50
50
  @media (min-width: 780px) {
51
51
  .search-form-wrapper {
52
- display: flex;
53
52
  .pt-form-field {
54
53
  width: 30% !important;
55
54
  margin-bottom: 20px;
@@ -1,5 +1,5 @@
1
1
  body {
2
- background-color: #e7e7e7;
2
+ background-color: #f4f7f9;
3
3
  }
4
4
 
5
5
  .body-container {
@@ -14,14 +14,6 @@ body {
14
14
  }
15
15
  }
16
16
 
17
- /* .navbar-header{
18
- @apply text-navbarheader float-left px-sm
19
- }
20
-
21
- .navbar-subheader{
22
- @apply font-light px-sm border-solid border-l border-white border-opacity-100
23
- }*/
24
-
25
17
  .h1 {
26
18
  @apply text-heading-l text-text-primary font-bold mb-md ml-md;
27
19
  }
@@ -145,7 +137,7 @@ body {
145
137
  gap: 12px;
146
138
 
147
139
  @media (min-width: 768px) {
148
- /* padding-right: 55px; // commented by avinash as it was giving padding right in user */
140
+ /* padding-right: 55px; */
149
141
  }
150
142
 
151
143
  .header {
@@ -299,6 +291,8 @@ body {
299
291
  margin-top: 90px;
300
292
  }
301
293
 
294
+ /* ─── Core services carousel (unchanged) ───────────────────────────────────── */
295
+
302
296
  .module-carousel-section {
303
297
  display: flex;
304
298
  flex-direction: column;
@@ -307,18 +301,21 @@ body {
307
301
  }
308
302
 
309
303
  .module-carousel-header h3 {
310
- font-size: 20px;
311
- font-weight: 600;
312
- color: #ffffff;
304
+ font-size: 18px;
305
+ font-weight: 700;
306
+ color: inherit;
313
307
  margin: 0;
314
308
  }
315
309
 
316
- .module-carousel-header {
317
- background: linear-gradient(135deg, #3585c4, #6fa0f0 40%, #80b3ff);
318
- padding: 12px 16px;
319
- border-radius: 10px;
310
+ .core-carousel-section .module-carousel-header {
311
+ background: linear-gradient(135deg, #2a75b3, #5c93e8 50%, #7aaeff);
312
+ padding: 14px 20px;
313
+ border-radius: 12px;
320
314
  align-items: center;
321
- margin-top: 10px;
315
+ margin-top: 12px;
316
+ color: #ffffff;
317
+ box-shadow: 0 6px 16px rgba(42, 117, 179, 0.15);
318
+ border: 1px solid rgba(255, 255, 255, 0.2);
322
319
  }
323
320
 
324
321
  .module-carousel-actions {
@@ -345,7 +342,8 @@ body {
345
342
  width: 100%;
346
343
  -ms-overflow-style: none;
347
344
  scrollbar-width: none;
348
- padding-top: 10px;
345
+ padding: 12px 8px 32px 8px;
346
+ margin: 0px -8px -16px -8px;
349
347
  }
350
348
 
351
349
  @media (max-width: 1024px) {
@@ -364,7 +362,7 @@ body {
364
362
  display: none;
365
363
  }
366
364
 
367
- .carousel-track > div {
365
+ .carousel-track>div {
368
366
  scroll-snap-align: start;
369
367
  box-sizing: border-box;
370
368
  width: 100%;
@@ -412,6 +410,288 @@ body {
412
410
  box-shadow: none;
413
411
  }
414
412
 
413
+ /* ─── Engagement Panel ──────────────────────────────────────────────────────
414
+ * Replaces the old engagement-carousel-section block entirely.
415
+ * ─────────────────────────────────────────────────────────────────────────── */
416
+
417
+ .engagement-panel {
418
+ background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%);
419
+ border: 1px solid #e2e8f0;
420
+ border-radius: 16px;
421
+ padding: 20px 24px 24px;
422
+ margin-top: -28px;
423
+ margin-bottom: 24px;
424
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
425
+ background-image: linear-gradient(135deg, rgba(186, 230, 253, .2), rgba(243, 232, 255, .15));
426
+ }
427
+
428
+ .engagement-panel__header {
429
+ display: flex;
430
+ align-items: center;
431
+ justify-content: space-between;
432
+ margin-bottom: 0px; /* changed from 14px to accommodate padding below */
433
+ }
434
+
435
+ /* Used for smooth collapsible vertical animation */
436
+ .engagement-panel__content {
437
+ display: grid;
438
+ grid-template-rows: 1fr;
439
+ transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
440
+
441
+ &.collapsed {
442
+ grid-template-rows: 0fr;
443
+ }
444
+ }
445
+
446
+ .engagement-panel__content-inner {
447
+ overflow: hidden;
448
+ min-height: 0;
449
+ padding-top: 14px; /* Move the header bottom margin here to avoid collapse jump */
450
+ }
451
+
452
+ .engagement-panel__title-group {
453
+ display: flex;
454
+ align-items: center;
455
+ gap: 10px;
456
+ }
457
+
458
+ /* Pulsing live indicator dot */
459
+ .engagement-panel__pulse-dot {
460
+ width: 8px;
461
+ height: 8px;
462
+ border-radius: 50%;
463
+ background: #3b82f6;
464
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
465
+ animation: eng-pulse 2.4s ease-in-out infinite;
466
+ flex-shrink: 0;
467
+ }
468
+
469
+ @keyframes eng-pulse {
470
+
471
+ 0%,
472
+ 100% {
473
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
474
+ }
475
+
476
+ 50% {
477
+ box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.06);
478
+ }
479
+ }
480
+
481
+ .engagement-panel__title {
482
+ font-size: 13px;
483
+ font-weight: 600;
484
+ letter-spacing: 0.6px;
485
+ text-transform: uppercase;
486
+ color: #1e293b;
487
+ }
488
+
489
+ /* Chip / pill row */
490
+ .engagement-panel__chip-row {
491
+ display: flex;
492
+ flex-wrap: wrap;
493
+ gap: 8px;
494
+ margin-bottom: 0;
495
+ }
496
+
497
+ /* Has visible cards below — add spacing between chips and cards */
498
+ .engagement-panel__chip-row+.engagement-panel__cards {
499
+ margin-top: 16px;
500
+ }
501
+
502
+ .engagement-chip {
503
+ display: inline-flex;
504
+ align-items: center;
505
+ gap: 7px;
506
+ padding: 7px 15px;
507
+ border-radius: 100px;
508
+ border: 1px solid #e2e8f0;
509
+ background: #ffffff;
510
+ font-size: 13px;
511
+ font-weight: 500;
512
+ color: #475569;
513
+ cursor: pointer;
514
+ transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
515
+ line-height: 1;
516
+
517
+ i {
518
+ font-size: 15px;
519
+ color: #64748b;
520
+ transition: color 0.15s;
521
+ }
522
+
523
+ &:hover {
524
+ background: #f8fafc;
525
+ border-color: #cbd5e1;
526
+ transform: translateY(-1px);
527
+ }
528
+
529
+ &:active {
530
+ transform: translateY(0);
531
+ }
532
+ }
533
+
534
+ .engagement-chip--active {
535
+ background: #3b82f6;
536
+ border-color: #3b82f6;
537
+ color: #ffffff;
538
+
539
+ i {
540
+ color: rgba(255, 255, 255, 0.9);
541
+ }
542
+
543
+ &:hover {
544
+ background: #2563eb;
545
+ border-color: #2563eb;
546
+ }
547
+ }
548
+
549
+ /* Card grid — shown when registered module cards exist */
550
+ .engagement-panel__cards {
551
+ display: grid;
552
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
553
+ gap: 12px;
554
+
555
+ /* Ensure cards inside the grid fill their cells and don't have extra margins */
556
+ .new-employee-card {
557
+ &:nth-child(6n+1) {
558
+ --card-bg: #f2fbf7;
559
+ --card-border: #d1efe2;
560
+ --card-icon-color: #1d9e75;
561
+ --card-text-color: #0f6e56;
562
+ --card-hover-shadow: rgba(29, 158, 117, 0.12);
563
+ }
564
+ &:nth-child(6n+2) {
565
+ --card-bg: #f0f7ff;
566
+ --card-border: #cce3fd;
567
+ --card-icon-color: #2563eb;
568
+ --card-text-color: #1e3a8a;
569
+ --card-hover-shadow: rgba(37, 99, 235, 0.12);
570
+ }
571
+ &:nth-child(6n+3) {
572
+ --card-bg: #f5f3ff;
573
+ --card-border: #e5d5ff;
574
+ --card-icon-color: #7c3aed;
575
+ --card-text-color: #4c1d95;
576
+ --card-hover-shadow: rgba(124, 58, 237, 0.12);
577
+ }
578
+ &:nth-child(6n+4) {
579
+ --card-bg: #fffbeb;
580
+ --card-border: #fde08b;
581
+ --card-icon-color: #d97706;
582
+ --card-text-color: #78350f;
583
+ --card-hover-shadow: rgba(217, 119, 6, 0.12);
584
+ }
585
+ &:nth-child(6n+5) {
586
+ --card-bg: #fff1f2;
587
+ --card-border: #fecdd3;
588
+ --card-icon-color: #e11d48;
589
+ --card-text-color: #881337;
590
+ --card-hover-shadow: rgba(225, 29, 72, 0.12);
591
+ }
592
+ &:nth-child(6n+6) {
593
+ --card-bg: #ecfeff;
594
+ --card-border: #a5f3fc;
595
+ --card-icon-color: #0891b2;
596
+ --card-text-color: #164e63;
597
+ --card-hover-shadow: rgba(8, 145, 178, 0.12);
598
+ }
599
+
600
+ width: 100%;
601
+ height: 100%;
602
+ margin: 0 !important;
603
+ padding: 12px 14px;
604
+ border-radius: 12px;
605
+ background: linear-gradient(160deg, #ffffff, var(--card-bg));
606
+ border: 1px solid var(--card-border);
607
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
608
+ gap: 8px;
609
+
610
+ .card-header-row {
611
+ padding-bottom: 10px;
612
+ gap: 8px;
613
+
614
+ &::after {
615
+ background: linear-gradient(90deg, transparent 0%, var(--card-border) 50%, transparent 100%);
616
+ }
617
+ }
618
+
619
+ .module-icon-wrap {
620
+ width: 32px;
621
+ height: 32px;
622
+ border-radius: 8px;
623
+ background-color: var(--card-bg) !important;
624
+ color: var(--card-icon-color) !important;
625
+ svg {
626
+ width: 18px;
627
+ height: 18px;
628
+ }
629
+ }
630
+
631
+ .module-title {
632
+ font-size: 0.95rem;
633
+ color: var(--card-text-color);
634
+ }
635
+
636
+ .main-kpi-number {
637
+ font-size: 1.6rem;
638
+ color: var(--card-icon-color);
639
+ }
640
+
641
+ .main-kpi-label {
642
+ font-size: 0.75rem;
643
+ }
644
+
645
+ .trend-icon {
646
+ width: 14px;
647
+ height: 14px;
648
+ border-width: 1px;
649
+ svg {
650
+ width: 10px;
651
+ height: 10px;
652
+ }
653
+ }
654
+
655
+ .sec-kpi-label {
656
+ font-size: 0.7rem;
657
+ }
658
+
659
+ .sec-kpi-value {
660
+ font-size: 0.8rem;
661
+ }
662
+
663
+ .card-footer-row {
664
+ gap: 8px;
665
+ }
666
+
667
+ .pill-link {
668
+ padding: 4px 10px;
669
+ font-size: 11px;
670
+ background-color: var(--card-bg);
671
+ border-color: var(--card-border);
672
+ color: var(--card-text-color);
673
+
674
+ &:hover {
675
+ filter: brightness(0.95);
676
+ border-color: var(--card-icon-color);
677
+ }
678
+ }
679
+
680
+ .details-btn {
681
+ padding: 4px 10px;
682
+ font-size: 11px;
683
+ }
684
+
685
+ &:hover {
686
+ transform: translateY(-3px);
687
+ box-shadow: 0 6px 16px var(--card-hover-shadow);
688
+ border-color: var(--card-border);
689
+ }
690
+ }
691
+ }
692
+
693
+ /* ─── Header area (unchanged) ───────────────────────────────────────────────── */
694
+
415
695
  .header-right-area {
416
696
  display: flex;
417
697
  flex-wrap: wrap;
@@ -558,4 +838,4 @@ body {
558
838
  svg {
559
839
  fill: #ffffff !important;
560
840
  }
561
- }
841
+ }
@@ -1,4 +1,5 @@
1
- .toast-success {
1
+ .toast-success,
2
+ .toast-error {
2
3
  max-width: 480px;
3
4
  width: calc(100% - 20px);
4
5
  bottom: 100px;
@@ -7,11 +8,12 @@
7
8
  gap: 16px;
8
9
  border-radius: 4px;
9
10
  min-height: 48px;
10
- @apply fixed flex bg-success-gradient leading-7 z-20 items-center pl-md pr-sm;
11
+ @apply fixed flex leading-7 z-20 items-center pl-md pr-sm;
11
12
 
12
13
  svg {
13
14
  height: 20px;
14
15
  width: 20px;
16
+ fill: white;
15
17
  }
16
18
 
17
19
  .toast-close-btn {
@@ -23,33 +25,22 @@
23
25
  }
24
26
  }
25
27
 
28
+ .toast-success {
29
+ @apply bg-success-gradient;
30
+ }
31
+
32
+ .toast-error {
33
+ @apply bg-error-gradient;
34
+ }
35
+
26
36
  @screen dt {
27
- .toast-success {
37
+ .toast-success,
38
+ .toast-error {
28
39
  width: 100%;
29
40
  left: calc(50% - 240px);
30
41
  }
31
42
  }
32
43
 
33
- /* Toast base */
34
- .toast-success {
35
- display: flex;
36
- align-items: center;
37
- gap: 10px;
38
-
39
- padding: 12px 16px;
40
- border-radius: 8px;
41
-
42
- color: #fff;
43
- background-color: #22c55e;
44
-
45
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
46
-
47
- z-index: 9999;
48
-
49
- /* 👇 animation trigger */
50
- animation: slideInRight 0.4s ease forwards;
51
- }
52
-
53
44
  /* Slide-in from right */
54
45
  @keyframes slideInRight {
55
46
  from {