unifyedx-storybook-new 0.1.5 → 0.1.7
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/dist/unifyedx-storybook-new.css +176 -0
- package/dist/unifyedx-storybook-new.es.js +145 -54
- package/package.json +2 -1
|
@@ -1407,6 +1407,7 @@
|
|
|
1407
1407
|
padding: 1rem;
|
|
1408
1408
|
font-family: sans-serif;
|
|
1409
1409
|
border-top: 1px solid #e5e7eb;
|
|
1410
|
+
margin-right: 50px;
|
|
1410
1411
|
}
|
|
1411
1412
|
|
|
1412
1413
|
.pagination-left,
|
|
@@ -3459,6 +3460,96 @@
|
|
|
3459
3460
|
.loader-spin {
|
|
3460
3461
|
animation: spin 1s linear infinite;
|
|
3461
3462
|
}
|
|
3463
|
+
|
|
3464
|
+
.page-layout {
|
|
3465
|
+
position: relative;
|
|
3466
|
+
width: 100%;
|
|
3467
|
+
padding: 1.25rem; /* py-5 */
|
|
3468
|
+
z-index: 0;
|
|
3469
|
+
box-sizing: border-box;
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
/* Modifier to add space for the fixed footer */
|
|
3473
|
+
|
|
3474
|
+
.page-layout--with-footer {
|
|
3475
|
+
padding-bottom: 80px; /* Space for the footer height */
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
/* Modifier to make the layout fill the viewport height */
|
|
3479
|
+
|
|
3480
|
+
.page-layout--full-height {
|
|
3481
|
+
height: calc(100vh - 52px); /* Example height, adjust as needed */
|
|
3482
|
+
overflow-y: auto;
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
.page-layout-content {
|
|
3486
|
+
/* This ensures content flows naturally */
|
|
3487
|
+
width: 100%;
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
/* The fixed footer bar */
|
|
3491
|
+
|
|
3492
|
+
.page-layout-footer {
|
|
3493
|
+
position: fixed;
|
|
3494
|
+
bottom: 0;
|
|
3495
|
+
left: 0;
|
|
3496
|
+
width: 100%;
|
|
3497
|
+
z-index: 30;
|
|
3498
|
+
background-color: white;
|
|
3499
|
+
padding: 0.75rem 1.75rem; /* p-3 pr-7 */
|
|
3500
|
+
/* This is the custom shadow from your original component */
|
|
3501
|
+
box-shadow: 2px -10px 14px -7px rgba(56, 56, 56, 0.25);
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.footer-actions {
|
|
3505
|
+
display: flex;
|
|
3506
|
+
justify-content: flex-end;
|
|
3507
|
+
align-items: center;
|
|
3508
|
+
gap: 0.75rem; /* flex gap-3 */
|
|
3509
|
+
margin-right: 50px;
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.page-header-wrapper {
|
|
3513
|
+
display: flex;
|
|
3514
|
+
align-items: flex-start;
|
|
3515
|
+
gap: 0.75rem; /* 12px */
|
|
3516
|
+
margin-bottom: 1.25rem; /* 20px */
|
|
3517
|
+
font-family: sans-serif;
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
.page-header-back-button {
|
|
3521
|
+
background: none;
|
|
3522
|
+
border: none;
|
|
3523
|
+
cursor: pointer;
|
|
3524
|
+
margin-top: 0.25rem; /* Aligns with heading */
|
|
3525
|
+
color: #4b5563; /* gray-600 */
|
|
3526
|
+
padding: 0;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
.page-header-back-button:hover {
|
|
3530
|
+
color: #111827;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.page-header-content {
|
|
3534
|
+
display: flex;
|
|
3535
|
+
flex-direction: column;
|
|
3536
|
+
gap: 2px;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
.page-header-heading {
|
|
3540
|
+
font-size: 1.25rem; /* text-xl */
|
|
3541
|
+
font-weight: 600;
|
|
3542
|
+
color: #374151; /* text-darkGrey-200 */
|
|
3543
|
+
margin: 0;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
.page-header-subheading {
|
|
3547
|
+
font-size: 0.875rem; /* 14px */
|
|
3548
|
+
font-weight: 400;
|
|
3549
|
+
color: #4b5563;
|
|
3550
|
+
opacity: 0.9;
|
|
3551
|
+
margin: 0;
|
|
3552
|
+
}
|
|
3462
3553
|
.avatar-container {
|
|
3463
3554
|
display: inline-flex;
|
|
3464
3555
|
align-items: center;
|
|
@@ -5294,6 +5385,7 @@
|
|
|
5294
5385
|
padding: 1rem;
|
|
5295
5386
|
font-family: sans-serif;
|
|
5296
5387
|
border-top: 1px solid #e5e7eb;
|
|
5388
|
+
margin-right: 50px;
|
|
5297
5389
|
}
|
|
5298
5390
|
|
|
5299
5391
|
.pagination-left,
|
|
@@ -6571,3 +6663,87 @@
|
|
|
6571
6663
|
white-space: nowrap;
|
|
6572
6664
|
border-width: 0;
|
|
6573
6665
|
}
|
|
6666
|
+
.page-layout {
|
|
6667
|
+
position: relative;
|
|
6668
|
+
width: 100%;
|
|
6669
|
+
padding: 1.25rem; /* py-5 */
|
|
6670
|
+
z-index: 0;
|
|
6671
|
+
box-sizing: border-box;
|
|
6672
|
+
}
|
|
6673
|
+
|
|
6674
|
+
/* Modifier to add space for the fixed footer */
|
|
6675
|
+
.page-layout--with-footer {
|
|
6676
|
+
padding-bottom: 80px; /* Space for the footer height */
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
/* Modifier to make the layout fill the viewport height */
|
|
6680
|
+
.page-layout--full-height {
|
|
6681
|
+
height: calc(100vh - 52px); /* Example height, adjust as needed */
|
|
6682
|
+
overflow-y: auto;
|
|
6683
|
+
}
|
|
6684
|
+
|
|
6685
|
+
.page-layout-content {
|
|
6686
|
+
/* This ensures content flows naturally */
|
|
6687
|
+
width: 100%;
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
/* The fixed footer bar */
|
|
6691
|
+
.page-layout-footer {
|
|
6692
|
+
position: fixed;
|
|
6693
|
+
bottom: 0;
|
|
6694
|
+
left: 0;
|
|
6695
|
+
width: 100%;
|
|
6696
|
+
z-index: 30;
|
|
6697
|
+
background-color: white;
|
|
6698
|
+
padding: 0.75rem 1.75rem; /* p-3 pr-7 */
|
|
6699
|
+
/* This is the custom shadow from your original component */
|
|
6700
|
+
box-shadow: 2px -10px 14px -7px rgba(56, 56, 56, 0.25);
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
.footer-actions {
|
|
6704
|
+
display: flex;
|
|
6705
|
+
justify-content: flex-end;
|
|
6706
|
+
align-items: center;
|
|
6707
|
+
gap: 0.75rem; /* flex gap-3 */
|
|
6708
|
+
margin-right: 50px;
|
|
6709
|
+
}
|
|
6710
|
+
.page-header-wrapper {
|
|
6711
|
+
display: flex;
|
|
6712
|
+
align-items: flex-start;
|
|
6713
|
+
gap: 0.75rem; /* 12px */
|
|
6714
|
+
margin-bottom: 1.25rem; /* 20px */
|
|
6715
|
+
font-family: sans-serif;
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
.page-header-back-button {
|
|
6719
|
+
background: none;
|
|
6720
|
+
border: none;
|
|
6721
|
+
cursor: pointer;
|
|
6722
|
+
margin-top: 0.25rem; /* Aligns with heading */
|
|
6723
|
+
color: #4b5563; /* gray-600 */
|
|
6724
|
+
padding: 0;
|
|
6725
|
+
}
|
|
6726
|
+
.page-header-back-button:hover {
|
|
6727
|
+
color: #111827;
|
|
6728
|
+
}
|
|
6729
|
+
|
|
6730
|
+
.page-header-content {
|
|
6731
|
+
display: flex;
|
|
6732
|
+
flex-direction: column;
|
|
6733
|
+
gap: 2px;
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6736
|
+
.page-header-heading {
|
|
6737
|
+
font-size: 1.25rem; /* text-xl */
|
|
6738
|
+
font-weight: 600;
|
|
6739
|
+
color: #374151; /* text-darkGrey-200 */
|
|
6740
|
+
margin: 0;
|
|
6741
|
+
}
|
|
6742
|
+
|
|
6743
|
+
.page-header-subheading {
|
|
6744
|
+
font-size: 0.875rem; /* 14px */
|
|
6745
|
+
font-weight: 400;
|
|
6746
|
+
color: #4b5563;
|
|
6747
|
+
opacity: 0.9;
|
|
6748
|
+
margin: 0;
|
|
6749
|
+
}
|
|
@@ -581,11 +581,11 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
581
581
|
*/
|
|
582
582
|
|
|
583
583
|
|
|
584
|
-
const __iconNode$
|
|
584
|
+
const __iconNode$l = [
|
|
585
585
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
586
586
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
587
587
|
];
|
|
588
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$
|
|
588
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$l);
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
591
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -595,13 +595,13 @@ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$k);
|
|
|
595
595
|
*/
|
|
596
596
|
|
|
597
597
|
|
|
598
|
-
const __iconNode$
|
|
598
|
+
const __iconNode$k = [
|
|
599
599
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
600
600
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
601
601
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
602
602
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
603
603
|
];
|
|
604
|
-
const Calendar$1 = createLucideIcon("calendar", __iconNode$
|
|
604
|
+
const Calendar$1 = createLucideIcon("calendar", __iconNode$k);
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
607
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -611,8 +611,8 @@ const Calendar$1 = createLucideIcon("calendar", __iconNode$j);
|
|
|
611
611
|
*/
|
|
612
612
|
|
|
613
613
|
|
|
614
|
-
const __iconNode$
|
|
615
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
614
|
+
const __iconNode$j = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
615
|
+
const Check = createLucideIcon("check", __iconNode$j);
|
|
616
616
|
|
|
617
617
|
/**
|
|
618
618
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -622,8 +622,8 @@ const Check = createLucideIcon("check", __iconNode$i);
|
|
|
622
622
|
*/
|
|
623
623
|
|
|
624
624
|
|
|
625
|
-
const __iconNode$
|
|
626
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
625
|
+
const __iconNode$i = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
626
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$i);
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
629
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -633,8 +633,8 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$h);
|
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
635
|
|
|
636
|
-
const __iconNode$
|
|
637
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$
|
|
636
|
+
const __iconNode$h = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
637
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$h);
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
640
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -644,8 +644,8 @@ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$g);
|
|
|
644
644
|
*/
|
|
645
645
|
|
|
646
646
|
|
|
647
|
-
const __iconNode$
|
|
648
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
647
|
+
const __iconNode$g = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
648
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$g);
|
|
649
649
|
|
|
650
650
|
/**
|
|
651
651
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -655,11 +655,11 @@ const ChevronRight = createLucideIcon("chevron-right", __iconNode$f);
|
|
|
655
655
|
*/
|
|
656
656
|
|
|
657
657
|
|
|
658
|
-
const __iconNode$
|
|
658
|
+
const __iconNode$f = [
|
|
659
659
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
660
660
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
661
661
|
];
|
|
662
|
-
const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$
|
|
662
|
+
const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$f);
|
|
663
663
|
|
|
664
664
|
/**
|
|
665
665
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -669,11 +669,11 @@ const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$e);
|
|
|
669
669
|
*/
|
|
670
670
|
|
|
671
671
|
|
|
672
|
-
const __iconNode$
|
|
672
|
+
const __iconNode$e = [
|
|
673
673
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
674
674
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
675
675
|
];
|
|
676
|
-
const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$
|
|
676
|
+
const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$e);
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -683,11 +683,11 @@ const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$d);
|
|
|
683
683
|
*/
|
|
684
684
|
|
|
685
685
|
|
|
686
|
-
const __iconNode$
|
|
686
|
+
const __iconNode$d = [
|
|
687
687
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
688
688
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
689
689
|
];
|
|
690
|
-
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$
|
|
690
|
+
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$d);
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
693
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -697,11 +697,11 @@ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$c);
|
|
|
697
697
|
*/
|
|
698
698
|
|
|
699
699
|
|
|
700
|
-
const __iconNode$
|
|
700
|
+
const __iconNode$c = [
|
|
701
701
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
702
702
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
703
703
|
];
|
|
704
|
-
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$
|
|
704
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$c);
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
707
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -711,12 +711,12 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$b);
|
|
|
711
711
|
*/
|
|
712
712
|
|
|
713
713
|
|
|
714
|
-
const __iconNode$
|
|
714
|
+
const __iconNode$b = [
|
|
715
715
|
["path", { d: "M12 13v8", key: "1l5pq0" }],
|
|
716
716
|
["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
|
|
717
717
|
["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
|
|
718
718
|
];
|
|
719
|
-
const CloudUpload = createLucideIcon("cloud-upload", __iconNode$
|
|
719
|
+
const CloudUpload = createLucideIcon("cloud-upload", __iconNode$b);
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -726,12 +726,12 @@ const CloudUpload = createLucideIcon("cloud-upload", __iconNode$a);
|
|
|
726
726
|
*/
|
|
727
727
|
|
|
728
728
|
|
|
729
|
-
const __iconNode$
|
|
729
|
+
const __iconNode$a = [
|
|
730
730
|
["path", { d: "M12 17h.01", key: "p32p05" }],
|
|
731
731
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
|
|
732
732
|
["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
|
|
733
733
|
];
|
|
734
|
-
const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$
|
|
734
|
+
const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$a);
|
|
735
735
|
|
|
736
736
|
/**
|
|
737
737
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -741,12 +741,12 @@ const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$9);
|
|
|
741
741
|
*/
|
|
742
742
|
|
|
743
743
|
|
|
744
|
-
const __iconNode$
|
|
744
|
+
const __iconNode$9 = [
|
|
745
745
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
746
746
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
747
747
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
748
748
|
];
|
|
749
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
749
|
+
const Info = createLucideIcon("info", __iconNode$9);
|
|
750
750
|
|
|
751
751
|
/**
|
|
752
752
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -756,8 +756,8 @@ const Info = createLucideIcon("info", __iconNode$8);
|
|
|
756
756
|
*/
|
|
757
757
|
|
|
758
758
|
|
|
759
|
-
const __iconNode$
|
|
760
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
759
|
+
const __iconNode$8 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
760
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$8);
|
|
761
761
|
|
|
762
762
|
/**
|
|
763
763
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -767,12 +767,12 @@ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$7);
|
|
|
767
767
|
*/
|
|
768
768
|
|
|
769
769
|
|
|
770
|
-
const __iconNode$
|
|
770
|
+
const __iconNode$7 = [
|
|
771
771
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
772
772
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
773
773
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
774
774
|
];
|
|
775
|
-
const LogOut = createLucideIcon("log-out", __iconNode$
|
|
775
|
+
const LogOut = createLucideIcon("log-out", __iconNode$7);
|
|
776
776
|
|
|
777
777
|
/**
|
|
778
778
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -782,12 +782,26 @@ const LogOut = createLucideIcon("log-out", __iconNode$6);
|
|
|
782
782
|
*/
|
|
783
783
|
|
|
784
784
|
|
|
785
|
-
const __iconNode$
|
|
785
|
+
const __iconNode$6 = [
|
|
786
786
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
787
787
|
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
788
788
|
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
789
789
|
];
|
|
790
|
-
const Menu = createLucideIcon("menu", __iconNode$
|
|
790
|
+
const Menu = createLucideIcon("menu", __iconNode$6);
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* @license lucide-react v0.525.0 - ISC
|
|
794
|
+
*
|
|
795
|
+
* This source code is licensed under the ISC license.
|
|
796
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
797
|
+
*/
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
const __iconNode$5 = [
|
|
801
|
+
["path", { d: "M6 8L2 12L6 16", key: "kyvwex" }],
|
|
802
|
+
["path", { d: "M2 12H22", key: "1m8cig" }]
|
|
803
|
+
];
|
|
804
|
+
const MoveLeft = createLucideIcon("move-left", __iconNode$5);
|
|
791
805
|
|
|
792
806
|
/**
|
|
793
807
|
* @license lucide-react v0.525.0 - ISC
|
|
@@ -954,7 +968,7 @@ function requireClassnames () {
|
|
|
954
968
|
}
|
|
955
969
|
|
|
956
970
|
var classnamesExports = requireClassnames();
|
|
957
|
-
const
|
|
971
|
+
const classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
958
972
|
|
|
959
973
|
// Helper function to generate a random pastel color
|
|
960
974
|
const generatePastelColor = () => {
|
|
@@ -984,7 +998,7 @@ const Avatar = ({
|
|
|
984
998
|
const showImage = src && !hasError;
|
|
985
999
|
const showInitials = !showImage && name;
|
|
986
1000
|
const showIcon = !showImage && !name;
|
|
987
|
-
const avatarClasses =
|
|
1001
|
+
const avatarClasses = classNames(
|
|
988
1002
|
"avatar-container",
|
|
989
1003
|
`avatar--size-${size}`,
|
|
990
1004
|
className
|
|
@@ -1035,7 +1049,7 @@ const Badge = ({
|
|
|
1035
1049
|
className,
|
|
1036
1050
|
...props
|
|
1037
1051
|
}) => {
|
|
1038
|
-
const badgeClasses =
|
|
1052
|
+
const badgeClasses = classNames(
|
|
1039
1053
|
"badge",
|
|
1040
1054
|
`badge--variant-${variant}`,
|
|
1041
1055
|
`badge--size-${size}`,
|
|
@@ -2315,7 +2329,7 @@ const UnifyedCoreButton = ({
|
|
|
2315
2329
|
}) => {
|
|
2316
2330
|
const isButtonDisabled = disabled || loader;
|
|
2317
2331
|
const isIconOnly = Icon && !label;
|
|
2318
|
-
const combinedClasses =
|
|
2332
|
+
const combinedClasses = classNames(
|
|
2319
2333
|
"btn-base",
|
|
2320
2334
|
sizeClasses[size],
|
|
2321
2335
|
categoryClasses[category],
|
|
@@ -2404,7 +2418,7 @@ const Checkbox = ({
|
|
|
2404
2418
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2405
2419
|
"div",
|
|
2406
2420
|
{
|
|
2407
|
-
className:
|
|
2421
|
+
className: classNames("checkbox-box", {
|
|
2408
2422
|
"checkbox-box--checked": checked,
|
|
2409
2423
|
"checkbox-box--error": !!error
|
|
2410
2424
|
}),
|
|
@@ -9739,7 +9753,7 @@ const DatePicker = ({
|
|
|
9739
9753
|
e.preventDefault();
|
|
9740
9754
|
onClear?.();
|
|
9741
9755
|
};
|
|
9742
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
9756
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames("datepicker-wrapper", className), children: [
|
|
9743
9757
|
label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "datepicker-label", htmlFor: "datepicker-input", children: label }),
|
|
9744
9758
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Popover, { children: [
|
|
9745
9759
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "datepicker-input-container", children: [
|
|
@@ -9748,7 +9762,7 @@ const DatePicker = ({
|
|
|
9748
9762
|
{
|
|
9749
9763
|
id: "datepicker-input",
|
|
9750
9764
|
type: "button",
|
|
9751
|
-
className:
|
|
9765
|
+
className: classNames("datepicker-trigger", {
|
|
9752
9766
|
"datepicker-trigger--error": !!error,
|
|
9753
9767
|
"datepicker-trigger--disabled": disabled
|
|
9754
9768
|
}),
|
|
@@ -9809,7 +9823,7 @@ const DateRangePicker$1 = ({
|
|
|
9809
9823
|
" - ",
|
|
9810
9824
|
format$1(to, "MMM d, y")
|
|
9811
9825
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "datepicker-placeholder", children: placeholder });
|
|
9812
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
9826
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames("datepicker-wrapper", className), children: [
|
|
9813
9827
|
label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: label }),
|
|
9814
9828
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Popover, { children: [
|
|
9815
9829
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "datepicker-input-container", children: [
|
|
@@ -9818,7 +9832,7 @@ const DateRangePicker$1 = ({
|
|
|
9818
9832
|
{
|
|
9819
9833
|
id: "daterangepicker-input",
|
|
9820
9834
|
type: "button",
|
|
9821
|
-
className:
|
|
9835
|
+
className: classNames("datepicker-trigger", {
|
|
9822
9836
|
"datepicker-trigger--error": !!error,
|
|
9823
9837
|
"datepicker-trigger--disabled": disabled
|
|
9824
9838
|
}),
|
|
@@ -40008,7 +40022,7 @@ const Input = ({
|
|
|
40008
40022
|
id: inputId,
|
|
40009
40023
|
type,
|
|
40010
40024
|
ref,
|
|
40011
|
-
className:
|
|
40025
|
+
className: classNames("input-field", {
|
|
40012
40026
|
"input-field--error": !!error,
|
|
40013
40027
|
"input-field--with-icon": !!Icon
|
|
40014
40028
|
}),
|
|
@@ -40242,7 +40256,7 @@ const RadioGroup = ({
|
|
|
40242
40256
|
RadioGroup$1.Option,
|
|
40243
40257
|
{
|
|
40244
40258
|
value: option.value,
|
|
40245
|
-
className: ({ active, checked }) =>
|
|
40259
|
+
className: ({ active, checked }) => classNames("radiogroup-option", {
|
|
40246
40260
|
"radiogroup-option--active": active,
|
|
40247
40261
|
"radiogroup-option--checked": checked,
|
|
40248
40262
|
"radiogroup-option--error": !!error
|
|
@@ -40294,7 +40308,7 @@ const Select = ({
|
|
|
40294
40308
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
40295
40309
|
ListboxButton,
|
|
40296
40310
|
{
|
|
40297
|
-
className:
|
|
40311
|
+
className: classNames("select-button", {
|
|
40298
40312
|
"select-button--error": !!error
|
|
40299
40313
|
}),
|
|
40300
40314
|
children: [
|
|
@@ -40411,7 +40425,7 @@ const NavItem = ({ item, isCollapsed, level = 0 }) => {
|
|
|
40411
40425
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
40412
40426
|
"div",
|
|
40413
40427
|
{
|
|
40414
|
-
className:
|
|
40428
|
+
className: classNames("nav-item-container", {
|
|
40415
40429
|
"nav-item-container--parent-active": isParentActive,
|
|
40416
40430
|
[`nav-item-container--level-${level}`]: level > 0
|
|
40417
40431
|
}),
|
|
@@ -40422,7 +40436,7 @@ const NavItem = ({ item, isCollapsed, level = 0 }) => {
|
|
|
40422
40436
|
href: itemPath,
|
|
40423
40437
|
target: item.target,
|
|
40424
40438
|
rel: item.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
40425
|
-
className:
|
|
40439
|
+
className: classNames("nav-item", {
|
|
40426
40440
|
"nav-item--active": isActive,
|
|
40427
40441
|
"nav-item--collapsed": isCollapsed
|
|
40428
40442
|
}),
|
|
@@ -40440,7 +40454,7 @@ const NavItem = ({ item, isCollapsed, level = 0 }) => {
|
|
|
40440
40454
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
40441
40455
|
ChevronDown,
|
|
40442
40456
|
{
|
|
40443
|
-
className:
|
|
40457
|
+
className: classNames("nav-chevron", {
|
|
40444
40458
|
"nav-chevron--open": isSubMenuOpen
|
|
40445
40459
|
})
|
|
40446
40460
|
}
|
|
@@ -40453,7 +40467,7 @@ const NavItem = ({ item, isCollapsed, level = 0 }) => {
|
|
|
40453
40467
|
item.children && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
40454
40468
|
"div",
|
|
40455
40469
|
{
|
|
40456
|
-
className:
|
|
40470
|
+
className: classNames("sub-menu", {
|
|
40457
40471
|
"sub-menu--open": isSubMenuOpen,
|
|
40458
40472
|
"sub-menu--collapsed": isCollapsed
|
|
40459
40473
|
}),
|
|
@@ -40495,7 +40509,7 @@ const Sidebar = ({
|
|
|
40495
40509
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
40496
40510
|
"aside",
|
|
40497
40511
|
{
|
|
40498
|
-
className:
|
|
40512
|
+
className: classNames("sidebar", {
|
|
40499
40513
|
"sidebar--collapsed": isCollapsed,
|
|
40500
40514
|
"sidebar--mobile-open": isMobileOpen
|
|
40501
40515
|
}),
|
|
@@ -40556,7 +40570,7 @@ const Spinner = ({
|
|
|
40556
40570
|
className,
|
|
40557
40571
|
...props
|
|
40558
40572
|
}) => {
|
|
40559
|
-
const spinnerClasses =
|
|
40573
|
+
const spinnerClasses = classNames(
|
|
40560
40574
|
"spinner",
|
|
40561
40575
|
`spinner--size-${size}`,
|
|
40562
40576
|
`spinner--color-${color}`,
|
|
@@ -40625,7 +40639,7 @@ const Textarea = ({
|
|
|
40625
40639
|
{
|
|
40626
40640
|
id: textareaId,
|
|
40627
40641
|
ref,
|
|
40628
|
-
className:
|
|
40642
|
+
className: classNames("textarea-field", {
|
|
40629
40643
|
"textarea-field--error": !!error
|
|
40630
40644
|
}),
|
|
40631
40645
|
maxLength,
|
|
@@ -40653,7 +40667,7 @@ const ToggleSwitch = ({
|
|
|
40653
40667
|
{
|
|
40654
40668
|
checked,
|
|
40655
40669
|
onChange,
|
|
40656
|
-
className:
|
|
40670
|
+
className: classNames("switch-element", {
|
|
40657
40671
|
// Renamed from switch-wrapper
|
|
40658
40672
|
"switch-element--error": !!error
|
|
40659
40673
|
}),
|
|
@@ -42267,7 +42281,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
42267
42281
|
* @copyright ReactTooltip Team
|
|
42268
42282
|
* @license MIT
|
|
42269
42283
|
*/
|
|
42270
|
-
const h="react-tooltip-core-styles",w="react-tooltip-base-styles",b={core:false,base:false};function S({css:e,id:t=w,type:o="base",ref:l}){var r,n;if(!e||"undefined"==typeof document||b[o])return;if("core"===o&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==o&&"undefined"!=typeof process&&(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===o&&(t=h),l||(l={});const{insertAt:i}=l;if(document.getElementById(t))return;const c=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===i&&c.firstChild?c.insertBefore(s,c.firstChild):c.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),b[o]=true;}const E=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:o=null,place:l="top",offset:r=10,strategy:n="absolute",middlewares:i=[offset(Number(r)),flip({fallbackAxisSideDirection:"start"}),shift({padding:5})],border:c,arrowSize:s=8})=>{if(!e)return {tooltipStyles:{},tooltipArrowStyles:{},place:l};if(null===t)return {tooltipStyles:{},tooltipArrowStyles:{},place:l};const a=i;return o?(a.push(arrow({element:o,padding:5})),computePosition(e,t,{placement:l,strategy:n,middleware:a}).then((({x:e,y:t,placement:o,middlewareData:l})=>{var r,n;const i={left:`${e}px`,top:`${t}px`,border:c},{x:a,y:u}=null!==(r=l.arrow)&&void 0!==r?r:{x:0,y:0},d=null!==(n={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]])&&void 0!==n?n:"bottom",p=c&&{borderBottom:c,borderRight:c};let v=0;if(c){const e=`${c}`.match(/(\d+)px/);v=(null==e?void 0:e[1])?Number(e[1]):1;}return {tooltipStyles:i,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...p,[d]:`-${s/2+v}px`},place:o}}))):computePosition(e,t,{placement:"bottom",strategy:n,middleware:a}).then((({x:e,y:t,placement:o})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:o})))},A=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),_=(e,t,o)=>{let l=null;const r=function(...r){const n=()=>{l=null;};!l&&(e.apply(this,r),l=setTimeout(n,t));};return r.cancel=()=>{l&&(clearTimeout(l),l=null);},r},O=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,k=(e,t)=>{if(e===t)return true;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,o)=>k(e,t[o])));if(Array.isArray(e)!==Array.isArray(t))return false;if(!O(e)||!O(t))return e===t;const o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every((o=>k(e[o],t[o])))},T=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return false;const t=getComputedStyle(e);return ["overflow","overflow-x","overflow-y"].some((e=>{const o=t.getPropertyValue(e);return "auto"===o||"scroll"===o}))},L=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(T(t))return t;t=t.parentElement;}return document.scrollingElement||document.documentElement},C="undefined"!=typeof window?useLayoutEffect:useEffect,R=e=>{e.current&&(clearTimeout(e.current),e.current=null);},x="DEFAULT_TOOLTIP_ID",N={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},$=createContext({getTooltipData:()=>N});function z(e=x){return useContext($).getTooltipData(e)}var B={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},D={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const q=({forwardRef:t,id:l,className:i,classNameArrow:c,variant:u="dark",anchorId:d,anchorSelect:p,place:v="top",offset:m=10,events:h=["hover"],openOnClick:w=false,positionStrategy:b="absolute",middlewares:S,wrapper:g,delayShow:A=0,delayHide:O=0,float:T=false,hidden:x=false,noArrow:N=false,clickable:$=false,closeOnEsc:I=false,closeOnScroll:j=false,closeOnResize:q=false,openEvents:H,closeEvents:M,globalCloseEvents:W,imperativeModeOnly:P,style:V,position:F,afterShow:K,afterHide:U,disableTooltip:X,content:Y,contentWrapperRef:G,isOpen:Z,defaultIsOpen:J=false,setIsOpen:Q,activeAnchor:ee,setActiveAnchor:te,border:oe,opacity:le,arrowColor:re,arrowSize:ne=8,role:ie="tooltip"})=>{var ce;const se=useRef(null),ae=useRef(null),ue=useRef(null),de=useRef(null),pe=useRef(null),[ve,me]=useState({tooltipStyles:{},tooltipArrowStyles:{},place:v}),[fe,ye]=useState(false),[he,we]=useState(false),[be,Se]=useState(null),ge=useRef(false),Ee=useRef(null),{anchorRefs:Ae,setActiveAnchor:_e}=z(l),Oe=useRef(false),[ke,Te]=useState([]),Le=useRef(false),Ce=w||h.includes("click"),Re=Ce||(null==H?void 0:H.click)||(null==H?void 0:H.dblclick)||(null==H?void 0:H.mousedown),xe=H?{...H}:{mouseover:true,focus:true,mouseenter:false,click:false,dblclick:false,mousedown:false};!H&&Ce&&Object.assign(xe,{mouseenter:false,focus:false,mouseover:false,click:true});const Ne=M?{...M}:{mouseout:true,blur:true,mouseleave:false,click:false,dblclick:false,mouseup:false};!M&&Ce&&Object.assign(Ne,{mouseleave:false,blur:false,mouseout:false});const $e=W?{...W}:{escape:I||false,scroll:j||false,resize:q||false,clickOutsideAnchor:Re||false};P&&(Object.assign(xe,{mouseover:false,focus:false,mouseenter:false,click:false,dblclick:false,mousedown:false}),Object.assign(Ne,{mouseout:false,blur:false,mouseleave:false,click:false,dblclick:false,mouseup:false}),Object.assign($e,{escape:false,scroll:false,resize:false,clickOutsideAnchor:false})),C((()=>(Le.current=true,()=>{Le.current=false;})),[]);const Ie=e=>{Le.current&&(e&&we(true),setTimeout((()=>{Le.current&&(null==Q||Q(e),void 0===Z&&ye(e));}),10));};useEffect((()=>{if(void 0===Z)return ()=>null;Z&&we(true);const e=setTimeout((()=>{ye(Z);}),10);return ()=>{clearTimeout(e);}}),[Z]),useEffect((()=>{if(fe!==ge.current)if(R(pe),ge.current=fe,fe)null==K||K();else {const e=(e=>{const t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,o,l]=t;return Number(o)*("ms"===l?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));pe.current=setTimeout((()=>{we(false),Se(null),null==U||U();}),e+25);}}),[fe]);const ze=e=>{me((t=>k(t,e)?t:e));},je=(e=A)=>{R(ue),he?Ie(true):ue.current=setTimeout((()=>{Ie(true);}),e);},Be=(e=O)=>{R(de),de.current=setTimeout((()=>{Oe.current||Ie(false);}),e);},De=e=>{var t;if(!e)return;const o=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==o?void 0:o.isConnected))return te(null),void _e({current:null});A?je():Ie(true),te(o),_e({current:o}),R(de);},qe=()=>{$?Be(O||100):O?Be():Ie(false),R(ue);},He=({x:e,y:t})=>{var o;const l={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};E({place:null!==(o=null==be?void 0:be.place)&&void 0!==o?o:v,offset:m,elementReference:l,tooltipReference:se.current,tooltipArrowReference:ae.current,strategy:b,middlewares:S,border:oe,arrowSize:ne}).then((e=>{ze(e);}));},Me=e=>{if(!e)return;const t=e,o={x:t.clientX,y:t.clientY};He(o),Ee.current=o;},We=e=>{var t;if(!fe)return;const o=e.target;if(!o.isConnected)return;if(null===(t=se.current)||void 0===t?void 0:t.contains(o))return;[document.querySelector(`[id='${d}']`),...ke].some((e=>null==e?void 0:e.contains(o)))||(Ie(false),R(ue));},Pe=_(De,50),Ve=_(qe,50),Fe=e=>{Ve.cancel(),Pe(e);},Ke=()=>{Pe.cancel(),Ve();},Ue=useCallback((()=>{var e,t;const o=null!==(e=null==be?void 0:be.position)&&void 0!==e?e:F;o?He(o):T?Ee.current&&He(Ee.current):(null==ee?void 0:ee.isConnected)&&E({place:null!==(t=null==be?void 0:be.place)&&void 0!==t?t:v,offset:m,elementReference:ee,tooltipReference:se.current,tooltipArrowReference:ae.current,strategy:b,middlewares:S,border:oe,arrowSize:ne}).then((e=>{Le.current&&ze(e);}));}),[fe,ee,Y,V,v,null==be?void 0:be.place,m,b,F,null==be?void 0:be.position,T,ne]);useEffect((()=>{var e,t;const o=new Set(Ae);ke.forEach((e=>{(null==X?void 0:X(e))||o.add({current:e});}));const l=document.querySelector(`[id='${d}']`);l&&!(null==X?void 0:X(l))&&o.add({current:l});const r=()=>{Ie(false);},n=L(ee),i=L(se.current);$e.scroll&&(window.addEventListener("scroll",r),null==n||n.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r));let c=null;$e.resize?window.addEventListener("resize",r):ee&&se.current&&(c=autoUpdate(ee,se.current,Ue,{ancestorResize:true,elementResize:true,layoutShift:true}));const s=e=>{"Escape"===e.key&&Ie(false);};$e.escape&&window.addEventListener("keydown",s),$e.clickOutsideAnchor&&window.addEventListener("click",We);const a=[],u=e=>Boolean((null==e?void 0:e.target)&&(null==ee?void 0:ee.contains(e.target))),p=e=>{fe&&u(e)||De(e);},v=e=>{fe&&u(e)&&qe();},m=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(xe).forEach((([e,t])=>{t&&(m.includes(e)?a.push({event:e,listener:Fe}):y.includes(e)&&a.push({event:e,listener:p}));})),Object.entries(Ne).forEach((([e,t])=>{t&&(m.includes(e)?a.push({event:e,listener:Ke}):y.includes(e)&&a.push({event:e,listener:v}));})),T&&a.push({event:"pointermove",listener:Me});const h=()=>{Oe.current=true;},w=()=>{Oe.current=false,qe();},b=$&&(Ne.mouseout||Ne.mouseleave);return b&&(null===(e=se.current)||void 0===e||e.addEventListener("mouseover",h),null===(t=se.current)||void 0===t||t.addEventListener("mouseout",w)),a.forEach((({event:e,listener:t})=>{o.forEach((o=>{var l;null===(l=o.current)||void 0===l||l.addEventListener(e,t);}));})),()=>{var e,t;$e.scroll&&(window.removeEventListener("scroll",r),null==n||n.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r)),$e.resize?window.removeEventListener("resize",r):null==c||c(),$e.clickOutsideAnchor&&window.removeEventListener("click",We),$e.escape&&window.removeEventListener("keydown",s),b&&(null===(e=se.current)||void 0===e||e.removeEventListener("mouseover",h),null===(t=se.current)||void 0===t||t.removeEventListener("mouseout",w)),a.forEach((({event:e,listener:t})=>{o.forEach((o=>{var l;null===(l=o.current)||void 0===l||l.removeEventListener(e,t);}));}));}}),[ee,Ue,he,Ae,ke,H,M,W,Ce,A,O]),useEffect((()=>{var e,t;let o=null!==(t=null!==(e=null==be?void 0:be.anchorSelect)&&void 0!==e?e:p)&&void 0!==t?t:"";!o&&l&&(o=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName){e.target.getAttribute("data-tooltip-id")===l?t.push(e.target):e.oldValue===l&&r.push(e.target);}if("childList"===e.type){if(ee){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])));}catch(e){}t.some((e=>{var t;return !!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,ee))&&(we(false),Ie(false),te(null),R(ue),R(de),true)}));}if(o)try{const l=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...l.filter((e=>e.matches(o)))),t.push(...l.flatMap((e=>[...e.querySelectorAll(o)])));}catch(e){}}})),(t.length||r.length)&&Te((e=>[...e.filter((e=>!r.includes(e))),...t]));}));return r.observe(document.body,{childList:true,subtree:true,attributes:true,attributeFilter:["data-tooltip-id"],attributeOldValue:true}),()=>{r.disconnect();}}),[l,p,null==be?void 0:be.anchorSelect,ee]),useEffect((()=>{Ue();}),[Ue]),useEffect((()=>{if(!(null==G?void 0:G.current))return ()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ue()));}));return e.observe(G.current),()=>{e.disconnect();}}),[Y,null==G?void 0:G.current]),useEffect((()=>{var e;const t=document.querySelector(`[id='${d}']`),o=[...ke,t];ee&&o.includes(ee)||te(null!==(e=ke[0])&&void 0!==e?e:t);}),[d,ke,ee]),useEffect((()=>(J&&Ie(true),()=>{R(ue),R(de);})),[]),useEffect((()=>{var e;let t=null!==(e=null==be?void 0:be.anchorSelect)&&void 0!==e?e:p;if(!t&&l&&(t=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Te(e);}catch(e){Te([]);}}),[l,p,null==be?void 0:be.anchorSelect]),useEffect((()=>{ue.current&&(R(ue),je(A));}),[A]);const Xe=null!==(ce=null==be?void 0:be.content)&&void 0!==ce?ce:Y,Ye=fe&&Object.keys(ve.tooltipStyles).length>0;return useImperativeHandle(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect);}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}Se(null!=e?e:null),(null==e?void 0:e.delay)?je(e.delay):Ie(true);},close:e=>{(null==e?void 0:e.delay)?Be(e.delay):Ie(false);},activeAnchor:ee,place:ve.place,isOpen:Boolean(he&&!x&&Xe&&Ye)}))),he&&!x&&Xe?React.createElement(g,{id:l,role:ie,className:y$1("react-tooltip",B.tooltip,D.tooltip,D[u],i,`react-tooltip__place-${ve.place}`,B[Ye?"show":"closing"],Ye?"react-tooltip__show":"react-tooltip__closing","fixed"===b&&B.fixed,$&&B.clickable),onTransitionEnd:e=>{R(pe),fe||"opacity"!==e.propertyName||(we(false),Se(null),null==U||U());},style:{...V,...ve.tooltipStyles,opacity:void 0!==le&&Ye?le:void 0},ref:se},Xe,React.createElement(g,{className:y$1("react-tooltip-arrow",B.arrow,D.arrow,c,N&&B.noArrow),style:{...ve.tooltipArrowStyles,background:re?`linear-gradient(to right bottom, transparent 50%, ${re} 50%)`:void 0,"--rt-arrow-size":`${ne}px`},ref:ae})):null},H=({content:t})=>React.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),M=React.forwardRef((({id:t,anchorId:l,anchorSelect:n,content:i,html:c,render:a,className:u,classNameArrow:d,variant:p="dark",place:v="top",offset:m=10,wrapper:f="div",children:h=null,events:w=["hover"],openOnClick:b=false,positionStrategy:S="absolute",middlewares:g,delayShow:E=0,delayHide:_=0,float:O=false,hidden:k=false,noArrow:T=false,clickable:L=false,closeOnEsc:C=false,closeOnScroll:R=false,closeOnResize:x=false,openEvents:N,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:j=false,style:B,position:D,isOpen:M,defaultIsOpen:W=false,disableStyleInjection:P=false,border:V,opacity:F,arrowColor:K,arrowSize:U,setIsOpen:X,afterShow:Y,afterHide:G,disableTooltip:Z,role:J="tooltip"},Q)=>{const[ee,te]=useState(i),[oe,le]=useState(c),[re,ne]=useState(v),[ie,ce]=useState(p),[se,ae]=useState(m),[ue,de]=useState(E),[pe,ve]=useState(_),[me,fe]=useState(O),[ye,he]=useState(k),[we,be]=useState(f),[Se,ge]=useState(w),[Ee,Ae]=useState(S),[_e,Oe]=useState(null),[ke,Te]=useState(null),Le=useRef(P),{anchorRefs:Ce,activeAnchor:Re}=z(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,o)=>{var l;if(o.startsWith("data-tooltip-")){t[o.replace(/^data-tooltip-/,"")]=null!==(l=null==e?void 0:e.getAttribute(o))&&void 0!==l?l:null;}return t}),{}),Ne=e=>{const t={place:e=>{var t;ne(null!==(t=e)&&void 0!==t?t:v);},content:e=>{te(null!=e?e:i);},html:e=>{le(null!=e?e:c);},variant:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p);},offset:e=>{ae(null===e?m:Number(e));},wrapper:e=>{var t;be(null!==(t=e)&&void 0!==t?t:f);},events:e=>{const t=null==e?void 0:e.split(" ");ge(null!=t?t:w);},"position-strategy":e=>{var t;Ae(null!==(t=e)&&void 0!==t?t:S);},"delay-show":e=>{de(null===e?E:Number(e));},"delay-hide":e=>{ve(null===e?_:Number(e));},float:e=>{fe(null===e?O:"true"===e);},hidden:e=>{he(null===e?k:"true"===e);},"class-name":e=>{Oe(e);}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,o])=>{var l;null===(l=t[e])||void 0===l||l.call(t,o);}));};useEffect((()=>{te(i);}),[i]),useEffect((()=>{le(c);}),[c]),useEffect((()=>{ne(v);}),[v]),useEffect((()=>{ce(p);}),[p]),useEffect((()=>{ae(m);}),[m]),useEffect((()=>{de(E);}),[E]),useEffect((()=>{ve(_);}),[_]),useEffect((()=>{fe(O);}),[O]),useEffect((()=>{he(k);}),[k]),useEffect((()=>{Ae(S);}),[S]),useEffect((()=>{Le.current!==P&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");}),[P]),useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===P,disableBase:P}}));}),[]),useEffect((()=>{var e;const o=new Set(Ce);let r=n;if(!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),r)try{document.querySelectorAll(r).forEach((e=>{o.add({current:e});}));}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`);}const i=document.querySelector(`[id='${l}']`);if(i&&o.add({current:i}),!o.size)return ()=>null;const c=null!==(e=null!=ke?ke:i)&&void 0!==e?e:Re.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const o=xe(c);Ne(o);}));})),a={attributes:true,childList:false,subtree:false};if(c){const e=xe(c);Ne(e),s.observe(c,a);}return ()=>{s.disconnect();}}),[Ce,Re,ke,l,n]),useEffect((()=>{(null==B?void 0:B.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),V&&!A("border",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`),(null==B?void 0:B.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!A("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`);}),[]);let $e=h;const Ie=useRef(null);if(a){const t=a({content:(null==ke?void 0:ke.getAttribute("data-tooltip-content"))||ee||null,activeAnchor:ke});$e=t?React.createElement("div",{ref:Ie,className:"react-tooltip-content-wrapper"},t):null;}else ee&&($e=ee);oe&&($e=React.createElement(H,{content:oe}));const ze={forwardRef:Q,id:t,anchorId:l,anchorSelect:n,className:y$1(u,_e),classNameArrow:d,content:$e,contentWrapperRef:Ie,place:re,variant:ie,offset:se,wrapper:we,events:Se,openOnClick:b,positionStrategy:Ee,middlewares:g,delayShow:ue,delayHide:pe,float:me,hidden:ye,noArrow:T,clickable:L,closeOnEsc:C,closeOnScroll:R,closeOnResize:x,openEvents:N,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:j,style:B,position:D,isOpen:M,defaultIsOpen:W,border:V,opacity:F,arrowColor:K,arrowSize:U,setIsOpen:X,afterShow:Y,afterHide:G,disableTooltip:Z,activeAnchor:ke,setActiveAnchor:e=>Te(e),role:J};return React.createElement(q,{...ze})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||S({css:`:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}`,type:"core"}),e.detail.disableBase||S({css:`
|
|
42284
|
+
const h="react-tooltip-core-styles",w="react-tooltip-base-styles",b={core:false,base:false};function S({css:e,id:t=w,type:o="base",ref:l}){var r,n;if(!e||"undefined"==typeof document||b[o])return;if("core"===o&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==o&&"undefined"!=typeof process&&(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===o&&(t=h),l||(l={});const{insertAt:i}=l;if(document.getElementById(t))return;const c=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===i&&c.firstChild?c.insertBefore(s,c.firstChild):c.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),b[o]=true;}const E=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:o=null,place:l="top",offset:r=10,strategy:n="absolute",middlewares:i=[offset(Number(r)),flip({fallbackAxisSideDirection:"start"}),shift({padding:5})],border:c,arrowSize:s=8})=>{if(!e)return {tooltipStyles:{},tooltipArrowStyles:{},place:l};if(null===t)return {tooltipStyles:{},tooltipArrowStyles:{},place:l};const a=i;return o?(a.push(arrow({element:o,padding:5})),computePosition(e,t,{placement:l,strategy:n,middleware:a}).then((({x:e,y:t,placement:o,middlewareData:l})=>{var r,n;const i={left:`${e}px`,top:`${t}px`,border:c},{x:a,y:u}=null!==(r=l.arrow)&&void 0!==r?r:{x:0,y:0},d=null!==(n={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]])&&void 0!==n?n:"bottom",p=c&&{borderBottom:c,borderRight:c};let v=0;if(c){const e=`${c}`.match(/(\d+)px/);v=(null==e?void 0:e[1])?Number(e[1]):1;}return {tooltipStyles:i,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...p,[d]:`-${s/2+v}px`},place:o}}))):computePosition(e,t,{placement:"bottom",strategy:n,middleware:a}).then((({x:e,y:t,placement:o})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:o})))},A=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),_=(e,t,o)=>{let l=null;const r=function(...r){const n=()=>{l=null;};!l&&(e.apply(this,r),l=setTimeout(n,t));};return r.cancel=()=>{l&&(clearTimeout(l),l=null);},r},O=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,k=(e,t)=>{if(e===t)return true;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,o)=>k(e,t[o])));if(Array.isArray(e)!==Array.isArray(t))return false;if(!O(e)||!O(t))return e===t;const o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every((o=>k(e[o],t[o])))},T=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return false;const t=getComputedStyle(e);return ["overflow","overflow-x","overflow-y"].some((e=>{const o=t.getPropertyValue(e);return "auto"===o||"scroll"===o}))},L=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(T(t))return t;t=t.parentElement;}return document.scrollingElement||document.documentElement},C="undefined"!=typeof window?useLayoutEffect:useEffect,R=e=>{e.current&&(clearTimeout(e.current),e.current=null);},x="DEFAULT_TOOLTIP_ID",N={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},$=createContext({getTooltipData:()=>N});function z(e=x){return useContext($).getTooltipData(e)}var B={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},D={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const q=({forwardRef:t,id:l,className:i,classNameArrow:c,variant:u="dark",anchorId:d,anchorSelect:p,place:v="top",offset:m=10,events:h=["hover"],openOnClick:w=false,positionStrategy:b="absolute",middlewares:S,wrapper:g,delayShow:A=0,delayHide:O=0,float:T=false,hidden:x=false,noArrow:N=false,clickable:$=false,closeOnEsc:I=false,closeOnScroll:j=false,closeOnResize:q=false,openEvents:H,closeEvents:M,globalCloseEvents:W,imperativeModeOnly:P,style:V,position:F,afterShow:K,afterHide:U,disableTooltip:X,content:Y,contentWrapperRef:G,isOpen:Z,defaultIsOpen:J=false,setIsOpen:Q,activeAnchor:ee,setActiveAnchor:te,border:oe,opacity:le,arrowColor:re,arrowSize:ne=8,role:ie="tooltip"})=>{var ce;const se=useRef(null),ae=useRef(null),ue=useRef(null),de=useRef(null),pe=useRef(null),[ve,me]=useState({tooltipStyles:{},tooltipArrowStyles:{},place:v}),[fe,ye]=useState(false),[he,we]=useState(false),[be,Se]=useState(null),ge=useRef(false),Ee=useRef(null),{anchorRefs:Ae,setActiveAnchor:_e}=z(l),Oe=useRef(false),[ke,Te]=useState([]),Le=useRef(false),Ce=w||h.includes("click"),Re=Ce||(null==H?void 0:H.click)||(null==H?void 0:H.dblclick)||(null==H?void 0:H.mousedown),xe=H?{...H}:{mouseover:true,focus:true,mouseenter:false,click:false,dblclick:false,mousedown:false};!H&&Ce&&Object.assign(xe,{mouseenter:false,focus:false,mouseover:false,click:true});const Ne=M?{...M}:{mouseout:true,blur:true,mouseleave:false,click:false,dblclick:false,mouseup:false};!M&&Ce&&Object.assign(Ne,{mouseleave:false,blur:false,mouseout:false});const $e=W?{...W}:{escape:I||false,scroll:j||false,resize:q||false,clickOutsideAnchor:Re||false};P&&(Object.assign(xe,{mouseover:false,focus:false,mouseenter:false,click:false,dblclick:false,mousedown:false}),Object.assign(Ne,{mouseout:false,blur:false,mouseleave:false,click:false,dblclick:false,mouseup:false}),Object.assign($e,{escape:false,scroll:false,resize:false,clickOutsideAnchor:false})),C((()=>(Le.current=true,()=>{Le.current=false;})),[]);const Ie=e=>{Le.current&&(e&&we(true),setTimeout((()=>{Le.current&&(null==Q||Q(e),void 0===Z&&ye(e));}),10));};useEffect((()=>{if(void 0===Z)return ()=>null;Z&&we(true);const e=setTimeout((()=>{ye(Z);}),10);return ()=>{clearTimeout(e);}}),[Z]),useEffect((()=>{if(fe!==ge.current)if(R(pe),ge.current=fe,fe)null==K||K();else {const e=(e=>{const t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,o,l]=t;return Number(o)*("ms"===l?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));pe.current=setTimeout((()=>{we(false),Se(null),null==U||U();}),e+25);}}),[fe]);const ze=e=>{me((t=>k(t,e)?t:e));},je=(e=A)=>{R(ue),he?Ie(true):ue.current=setTimeout((()=>{Ie(true);}),e);},Be=(e=O)=>{R(de),de.current=setTimeout((()=>{Oe.current||Ie(false);}),e);},De=e=>{var t;if(!e)return;const o=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==o?void 0:o.isConnected))return te(null),void _e({current:null});A?je():Ie(true),te(o),_e({current:o}),R(de);},qe=()=>{$?Be(O||100):O?Be():Ie(false),R(ue);},He=({x:e,y:t})=>{var o;const l={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};E({place:null!==(o=null==be?void 0:be.place)&&void 0!==o?o:v,offset:m,elementReference:l,tooltipReference:se.current,tooltipArrowReference:ae.current,strategy:b,middlewares:S,border:oe,arrowSize:ne}).then((e=>{ze(e);}));},Me=e=>{if(!e)return;const t=e,o={x:t.clientX,y:t.clientY};He(o),Ee.current=o;},We=e=>{var t;if(!fe)return;const o=e.target;if(!o.isConnected)return;if(null===(t=se.current)||void 0===t?void 0:t.contains(o))return;[document.querySelector(`[id='${d}']`),...ke].some((e=>null==e?void 0:e.contains(o)))||(Ie(false),R(ue));},Pe=_(De,50),Ve=_(qe,50),Fe=e=>{Ve.cancel(),Pe(e);},Ke=()=>{Pe.cancel(),Ve();},Ue=useCallback((()=>{var e,t;const o=null!==(e=null==be?void 0:be.position)&&void 0!==e?e:F;o?He(o):T?Ee.current&&He(Ee.current):(null==ee?void 0:ee.isConnected)&&E({place:null!==(t=null==be?void 0:be.place)&&void 0!==t?t:v,offset:m,elementReference:ee,tooltipReference:se.current,tooltipArrowReference:ae.current,strategy:b,middlewares:S,border:oe,arrowSize:ne}).then((e=>{Le.current&&ze(e);}));}),[fe,ee,Y,V,v,null==be?void 0:be.place,m,b,F,null==be?void 0:be.position,T,ne]);useEffect((()=>{var e,t;const o=new Set(Ae);ke.forEach((e=>{(null==X?void 0:X(e))||o.add({current:e});}));const l=document.querySelector(`[id='${d}']`);l&&!(null==X?void 0:X(l))&&o.add({current:l});const r=()=>{Ie(false);},n=L(ee),i=L(se.current);$e.scroll&&(window.addEventListener("scroll",r),null==n||n.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r));let c=null;$e.resize?window.addEventListener("resize",r):ee&&se.current&&(c=autoUpdate(ee,se.current,Ue,{ancestorResize:true,elementResize:true,layoutShift:true}));const s=e=>{"Escape"===e.key&&Ie(false);};$e.escape&&window.addEventListener("keydown",s),$e.clickOutsideAnchor&&window.addEventListener("click",We);const a=[],u=e=>Boolean((null==e?void 0:e.target)&&(null==ee?void 0:ee.contains(e.target))),p=e=>{fe&&u(e)||De(e);},v=e=>{fe&&u(e)&&qe();},m=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(xe).forEach((([e,t])=>{t&&(m.includes(e)?a.push({event:e,listener:Fe}):y.includes(e)&&a.push({event:e,listener:p}));})),Object.entries(Ne).forEach((([e,t])=>{t&&(m.includes(e)?a.push({event:e,listener:Ke}):y.includes(e)&&a.push({event:e,listener:v}));})),T&&a.push({event:"pointermove",listener:Me});const h=()=>{Oe.current=true;},w=()=>{Oe.current=false,qe();},b=$&&(Ne.mouseout||Ne.mouseleave);return b&&(null===(e=se.current)||void 0===e||e.addEventListener("mouseover",h),null===(t=se.current)||void 0===t||t.addEventListener("mouseout",w)),a.forEach((({event:e,listener:t})=>{o.forEach((o=>{var l;null===(l=o.current)||void 0===l||l.addEventListener(e,t);}));})),()=>{var e,t;$e.scroll&&(window.removeEventListener("scroll",r),null==n||n.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r)),$e.resize?window.removeEventListener("resize",r):null==c||c(),$e.clickOutsideAnchor&&window.removeEventListener("click",We),$e.escape&&window.removeEventListener("keydown",s),b&&(null===(e=se.current)||void 0===e||e.removeEventListener("mouseover",h),null===(t=se.current)||void 0===t||t.removeEventListener("mouseout",w)),a.forEach((({event:e,listener:t})=>{o.forEach((o=>{var l;null===(l=o.current)||void 0===l||l.removeEventListener(e,t);}));}));}}),[ee,Ue,he,Ae,ke,H,M,W,Ce,A,O]),useEffect((()=>{var e,t;let o=null!==(t=null!==(e=null==be?void 0:be.anchorSelect)&&void 0!==e?e:p)&&void 0!==t?t:"";!o&&l&&(o=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName){e.target.getAttribute("data-tooltip-id")===l?t.push(e.target):e.oldValue===l&&r.push(e.target);}if("childList"===e.type){if(ee){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])));}catch(e){}t.some((e=>{var t;return !!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,ee))&&(we(false),Ie(false),te(null),R(ue),R(de),true)}));}if(o)try{const l=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...l.filter((e=>e.matches(o)))),t.push(...l.flatMap((e=>[...e.querySelectorAll(o)])));}catch(e){}}})),(t.length||r.length)&&Te((e=>[...e.filter((e=>!r.includes(e))),...t]));}));return r.observe(document.body,{childList:true,subtree:true,attributes:true,attributeFilter:["data-tooltip-id"],attributeOldValue:true}),()=>{r.disconnect();}}),[l,p,null==be?void 0:be.anchorSelect,ee]),useEffect((()=>{Ue();}),[Ue]),useEffect((()=>{if(!(null==G?void 0:G.current))return ()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ue()));}));return e.observe(G.current),()=>{e.disconnect();}}),[Y,null==G?void 0:G.current]),useEffect((()=>{var e;const t=document.querySelector(`[id='${d}']`),o=[...ke,t];ee&&o.includes(ee)||te(null!==(e=ke[0])&&void 0!==e?e:t);}),[d,ke,ee]),useEffect((()=>(J&&Ie(true),()=>{R(ue),R(de);})),[]),useEffect((()=>{var e;let t=null!==(e=null==be?void 0:be.anchorSelect)&&void 0!==e?e:p;if(!t&&l&&(t=`[data-tooltip-id='${l.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Te(e);}catch(e){Te([]);}}),[l,p,null==be?void 0:be.anchorSelect]),useEffect((()=>{ue.current&&(R(ue),je(A));}),[A]);const Xe=null!==(ce=null==be?void 0:be.content)&&void 0!==ce?ce:Y,Ye=fe&&Object.keys(ve.tooltipStyles).length>0;return useImperativeHandle(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect);}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}Se(null!=e?e:null),(null==e?void 0:e.delay)?je(e.delay):Ie(true);},close:e=>{(null==e?void 0:e.delay)?Be(e.delay):Ie(false);},activeAnchor:ee,place:ve.place,isOpen:Boolean(he&&!x&&Xe&&Ye)}))),he&&!x&&Xe?React.createElement(g,{id:l,role:ie,className:classNames("react-tooltip",B.tooltip,D.tooltip,D[u],i,`react-tooltip__place-${ve.place}`,B[Ye?"show":"closing"],Ye?"react-tooltip__show":"react-tooltip__closing","fixed"===b&&B.fixed,$&&B.clickable),onTransitionEnd:e=>{R(pe),fe||"opacity"!==e.propertyName||(we(false),Se(null),null==U||U());},style:{...V,...ve.tooltipStyles,opacity:void 0!==le&&Ye?le:void 0},ref:se},Xe,React.createElement(g,{className:classNames("react-tooltip-arrow",B.arrow,D.arrow,c,N&&B.noArrow),style:{...ve.tooltipArrowStyles,background:re?`linear-gradient(to right bottom, transparent 50%, ${re} 50%)`:void 0,"--rt-arrow-size":`${ne}px`},ref:ae})):null},H=({content:t})=>React.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),M=React.forwardRef((({id:t,anchorId:l,anchorSelect:n,content:i,html:c,render:a,className:u,classNameArrow:d,variant:p="dark",place:v="top",offset:m=10,wrapper:f="div",children:h=null,events:w=["hover"],openOnClick:b=false,positionStrategy:S="absolute",middlewares:g,delayShow:E=0,delayHide:_=0,float:O=false,hidden:k=false,noArrow:T=false,clickable:L=false,closeOnEsc:C=false,closeOnScroll:R=false,closeOnResize:x=false,openEvents:N,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:j=false,style:B,position:D,isOpen:M,defaultIsOpen:W=false,disableStyleInjection:P=false,border:V,opacity:F,arrowColor:K,arrowSize:U,setIsOpen:X,afterShow:Y,afterHide:G,disableTooltip:Z,role:J="tooltip"},Q)=>{const[ee,te]=useState(i),[oe,le]=useState(c),[re,ne]=useState(v),[ie,ce]=useState(p),[se,ae]=useState(m),[ue,de]=useState(E),[pe,ve]=useState(_),[me,fe]=useState(O),[ye,he]=useState(k),[we,be]=useState(f),[Se,ge]=useState(w),[Ee,Ae]=useState(S),[_e,Oe]=useState(null),[ke,Te]=useState(null),Le=useRef(P),{anchorRefs:Ce,activeAnchor:Re}=z(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,o)=>{var l;if(o.startsWith("data-tooltip-")){t[o.replace(/^data-tooltip-/,"")]=null!==(l=null==e?void 0:e.getAttribute(o))&&void 0!==l?l:null;}return t}),{}),Ne=e=>{const t={place:e=>{var t;ne(null!==(t=e)&&void 0!==t?t:v);},content:e=>{te(null!=e?e:i);},html:e=>{le(null!=e?e:c);},variant:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p);},offset:e=>{ae(null===e?m:Number(e));},wrapper:e=>{var t;be(null!==(t=e)&&void 0!==t?t:f);},events:e=>{const t=null==e?void 0:e.split(" ");ge(null!=t?t:w);},"position-strategy":e=>{var t;Ae(null!==(t=e)&&void 0!==t?t:S);},"delay-show":e=>{de(null===e?E:Number(e));},"delay-hide":e=>{ve(null===e?_:Number(e));},float:e=>{fe(null===e?O:"true"===e);},hidden:e=>{he(null===e?k:"true"===e);},"class-name":e=>{Oe(e);}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,o])=>{var l;null===(l=t[e])||void 0===l||l.call(t,o);}));};useEffect((()=>{te(i);}),[i]),useEffect((()=>{le(c);}),[c]),useEffect((()=>{ne(v);}),[v]),useEffect((()=>{ce(p);}),[p]),useEffect((()=>{ae(m);}),[m]),useEffect((()=>{de(E);}),[E]),useEffect((()=>{ve(_);}),[_]),useEffect((()=>{fe(O);}),[O]),useEffect((()=>{he(k);}),[k]),useEffect((()=>{Ae(S);}),[S]),useEffect((()=>{Le.current!==P&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");}),[P]),useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===P,disableBase:P}}));}),[]),useEffect((()=>{var e;const o=new Set(Ce);let r=n;if(!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),r)try{document.querySelectorAll(r).forEach((e=>{o.add({current:e});}));}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`);}const i=document.querySelector(`[id='${l}']`);if(i&&o.add({current:i}),!o.size)return ()=>null;const c=null!==(e=null!=ke?ke:i)&&void 0!==e?e:Re.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const o=xe(c);Ne(o);}));})),a={attributes:true,childList:false,subtree:false};if(c){const e=xe(c);Ne(e),s.observe(c,a);}return ()=>{s.disconnect();}}),[Ce,Re,ke,l,n]),useEffect((()=>{(null==B?void 0:B.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),V&&!A("border",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`),(null==B?void 0:B.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!A("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`);}),[]);let $e=h;const Ie=useRef(null);if(a){const t=a({content:(null==ke?void 0:ke.getAttribute("data-tooltip-content"))||ee||null,activeAnchor:ke});$e=t?React.createElement("div",{ref:Ie,className:"react-tooltip-content-wrapper"},t):null;}else ee&&($e=ee);oe&&($e=React.createElement(H,{content:oe}));const ze={forwardRef:Q,id:t,anchorId:l,anchorSelect:n,className:classNames(u,_e),classNameArrow:d,content:$e,contentWrapperRef:Ie,place:re,variant:ie,offset:se,wrapper:we,events:Se,openOnClick:b,positionStrategy:Ee,middlewares:g,delayShow:ue,delayHide:pe,float:me,hidden:ye,noArrow:T,clickable:L,closeOnEsc:C,closeOnScroll:R,closeOnResize:x,openEvents:N,closeEvents:$,globalCloseEvents:I,imperativeModeOnly:j,style:B,position:D,isOpen:M,defaultIsOpen:W,border:V,opacity:F,arrowColor:K,arrowSize:U,setIsOpen:X,afterShow:Y,afterHide:G,disableTooltip:Z,activeAnchor:ke,setActiveAnchor:e=>Te(e),role:J};return React.createElement(q,{...ze})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||S({css:`:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}`,type:"core"}),e.detail.disableBase||S({css:`
|
|
42271
42285
|
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"});}));
|
|
42272
42286
|
|
|
42273
42287
|
const Tooltip = ({
|
|
@@ -43135,4 +43149,81 @@ const SearchBar = ({
|
|
|
43135
43149
|
] });
|
|
43136
43150
|
};
|
|
43137
43151
|
|
|
43138
|
-
|
|
43152
|
+
const PageLayout = ({
|
|
43153
|
+
content,
|
|
43154
|
+
isFooter = false,
|
|
43155
|
+
footerContent,
|
|
43156
|
+
save,
|
|
43157
|
+
cancel,
|
|
43158
|
+
tertiary,
|
|
43159
|
+
fullHeight = false,
|
|
43160
|
+
// A clearer prop name
|
|
43161
|
+
...props
|
|
43162
|
+
}) => {
|
|
43163
|
+
const wrapperClasses = classNames(
|
|
43164
|
+
"page-layout",
|
|
43165
|
+
{
|
|
43166
|
+
"page-layout--with-footer": isFooter,
|
|
43167
|
+
"page-layout--full-height": fullHeight
|
|
43168
|
+
},
|
|
43169
|
+
props.className
|
|
43170
|
+
);
|
|
43171
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: wrapperClasses, ...props, children: [
|
|
43172
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "page-layout-content", children: content }),
|
|
43173
|
+
isFooter && /* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: "page-layout-footer", children: footerContent ? footerContent : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "footer-actions", children: [
|
|
43174
|
+
tertiary?.show && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43175
|
+
UnifyedCoreButton,
|
|
43176
|
+
{
|
|
43177
|
+
category: "secondary",
|
|
43178
|
+
label: tertiary.label || "Tertiary",
|
|
43179
|
+
...tertiary
|
|
43180
|
+
}
|
|
43181
|
+
),
|
|
43182
|
+
cancel?.show && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43183
|
+
UnifyedCoreButton,
|
|
43184
|
+
{
|
|
43185
|
+
category: "secondary",
|
|
43186
|
+
label: cancel.label || "Cancel",
|
|
43187
|
+
...cancel
|
|
43188
|
+
}
|
|
43189
|
+
),
|
|
43190
|
+
save?.show && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43191
|
+
UnifyedCoreButton,
|
|
43192
|
+
{
|
|
43193
|
+
category: "primary",
|
|
43194
|
+
label: save.label || "Save",
|
|
43195
|
+
...save
|
|
43196
|
+
}
|
|
43197
|
+
)
|
|
43198
|
+
] }) })
|
|
43199
|
+
] });
|
|
43200
|
+
};
|
|
43201
|
+
|
|
43202
|
+
const PageHeader = ({
|
|
43203
|
+
heading,
|
|
43204
|
+
subHeading,
|
|
43205
|
+
breadcrumbItems = [],
|
|
43206
|
+
// Expects the breadcrumb data as a prop
|
|
43207
|
+
isLeftArrow = false,
|
|
43208
|
+
onBackClick,
|
|
43209
|
+
// Expects a handler for the back button
|
|
43210
|
+
...props
|
|
43211
|
+
}) => {
|
|
43212
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "page-header-wrapper", ...props, children: [
|
|
43213
|
+
isLeftArrow && onBackClick && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43214
|
+
"button",
|
|
43215
|
+
{
|
|
43216
|
+
className: "page-header-back-button",
|
|
43217
|
+
"aria-label": "Go back",
|
|
43218
|
+
onClick: onBackClick,
|
|
43219
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoveLeft, { size: 30 })
|
|
43220
|
+
}
|
|
43221
|
+
),
|
|
43222
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "page-header-content", children: [
|
|
43223
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "page-header-heading", children: heading }),
|
|
43224
|
+
breadcrumbItems.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumbs, { crumbs: breadcrumbItems }) : subHeading ? /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "page-header-subheading", children: subHeading }) : null
|
|
43225
|
+
] })
|
|
43226
|
+
] });
|
|
43227
|
+
};
|
|
43228
|
+
|
|
43229
|
+
export { Avatar, AvatarGroup, Badge, Breadcrumbs, Button$1 as Button, Checkbox, DatePicker, DateRangePicker$1 as DateRangePicker, FileUploadModal, FullScreenLoader, GenericFilter, Input, Modal, PageHeader, PageLayout, Pagination, RadioGroup, SearchBar, Select, Sidebar, Spinner, Textarea, ToggleSwitch, Tooltip, UnifyedCoreButton, WizardModal };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unifyedx-storybook-new",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/unifyedx-storybook-new.es.js",
|
|
7
7
|
"module": "dist/unifyedx-storybook-new.es.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"react-dropzone": "^14.3.8",
|
|
38
38
|
"react-file-icon": "^1.6.0",
|
|
39
39
|
"react-hook-form": "^7.60.0",
|
|
40
|
+
"react-router-dom": "^7.7.0",
|
|
40
41
|
"react-tooltip": "^5.29.1",
|
|
41
42
|
"simplebar-react": "^3.3.2",
|
|
42
43
|
"tailwindcss": "^4.1.11",
|