unifyedx-storybook-new 0.1.6 → 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.
|
@@ -3508,6 +3508,48 @@
|
|
|
3508
3508
|
gap: 0.75rem; /* flex gap-3 */
|
|
3509
3509
|
margin-right: 50px;
|
|
3510
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
|
+
}
|
|
3511
3553
|
.avatar-container {
|
|
3512
3554
|
display: inline-flex;
|
|
3513
3555
|
align-items: center;
|
|
@@ -6665,3 +6707,43 @@
|
|
|
6665
6707
|
gap: 0.75rem; /* flex gap-3 */
|
|
6666
6708
|
margin-right: 50px;
|
|
6667
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
|
|
@@ -43185,4 +43199,31 @@ const PageLayout = ({
|
|
|
43185
43199
|
] });
|
|
43186
43200
|
};
|
|
43187
43201
|
|
|
43188
|
-
|
|
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",
|