@bubo-squared/ui-framework 0.2.0 → 0.2.11
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/index.cjs +397 -346
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +340 -290
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
TextArea: () => TextArea,
|
|
61
61
|
TextInput: () => TextInput,
|
|
62
62
|
Toggle: () => Toggle,
|
|
63
|
+
Typography: () => Typography,
|
|
63
64
|
WebsiteInput: () => WebsiteInput,
|
|
64
65
|
cn: () => cn
|
|
65
66
|
});
|
|
@@ -475,9 +476,9 @@ var avatarInitialsVariants = (0, import_class_variance_authority6.cva)(
|
|
|
475
476
|
size: {
|
|
476
477
|
"20": "footnote-xs-medium",
|
|
477
478
|
"24": "footnote-medium",
|
|
478
|
-
"32": "paragraph-
|
|
479
|
-
"40": "paragraph-
|
|
480
|
-
"48": "paragraph-
|
|
479
|
+
"32": "paragraph-sm font-medium",
|
|
480
|
+
"40": "paragraph-md font-medium",
|
|
481
|
+
"48": "paragraph-lg font-medium",
|
|
481
482
|
"56": "subtitle font-medium",
|
|
482
483
|
"64": "h6-title font-medium"
|
|
483
484
|
}
|
|
@@ -544,18 +545,67 @@ var Avatar = React6.forwardRef(
|
|
|
544
545
|
);
|
|
545
546
|
Avatar.displayName = "Avatar";
|
|
546
547
|
|
|
548
|
+
// src/components/Content/Typography.tsx
|
|
549
|
+
var React7 = require("react");
|
|
550
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
551
|
+
var mbCapableBaseClasses = /* @__PURE__ */ new Set([
|
|
552
|
+
"h1-intro",
|
|
553
|
+
"h2-intro",
|
|
554
|
+
"h3-intro",
|
|
555
|
+
"h1-title",
|
|
556
|
+
"h2-title",
|
|
557
|
+
"h3-title",
|
|
558
|
+
"h4-title",
|
|
559
|
+
"h5-title",
|
|
560
|
+
"h6-title",
|
|
561
|
+
"subtitle",
|
|
562
|
+
"paragraph-lg",
|
|
563
|
+
"paragraph-md",
|
|
564
|
+
"paragraph-sm",
|
|
565
|
+
"caption",
|
|
566
|
+
"footnote",
|
|
567
|
+
"footnote-xs"
|
|
568
|
+
]);
|
|
569
|
+
var getMbClassName = (variant) => {
|
|
570
|
+
if (!mbCapableBaseClasses.has(variant)) return null;
|
|
571
|
+
return `${variant}-mb`;
|
|
572
|
+
};
|
|
573
|
+
var Typography = (props) => {
|
|
574
|
+
const {
|
|
575
|
+
as = "span",
|
|
576
|
+
variant = "paragraph-md",
|
|
577
|
+
weight = "regular",
|
|
578
|
+
useMargin = false,
|
|
579
|
+
className,
|
|
580
|
+
children,
|
|
581
|
+
...rest
|
|
582
|
+
} = props;
|
|
583
|
+
const Comp = as ?? "span";
|
|
584
|
+
const mbClassName = useMargin ? getMbClassName(variant) : null;
|
|
585
|
+
const weightClassName = weight === "regular" ? null : `${variant}-${weight}`;
|
|
586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
587
|
+
Comp,
|
|
588
|
+
{
|
|
589
|
+
className: cn(variant, weightClassName, mbClassName, className),
|
|
590
|
+
...rest,
|
|
591
|
+
children
|
|
592
|
+
}
|
|
593
|
+
);
|
|
594
|
+
};
|
|
595
|
+
Typography.displayName = "Typography";
|
|
596
|
+
|
|
547
597
|
// src/components/Content/Badge.tsx
|
|
548
|
-
var
|
|
598
|
+
var React8 = __toESM(require("react"), 1);
|
|
549
599
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
550
600
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
551
|
-
var
|
|
601
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
552
602
|
var badgeVariants = (0, import_class_variance_authority7.cva)(
|
|
553
603
|
"inline-flex items-center justify-center rounded-4 leading-none whitespace-nowrap gap-1 px-1 py-0",
|
|
554
604
|
{
|
|
555
605
|
variants: {
|
|
556
606
|
size: {
|
|
557
|
-
sm: "px-1 paragraph-
|
|
558
|
-
md: "px-1 paragraph-
|
|
607
|
+
sm: "px-1 paragraph-sm",
|
|
608
|
+
md: "px-1 paragraph-md",
|
|
559
609
|
lg: "px-1.5 subtitle",
|
|
560
610
|
xl: "px-2 h6-title"
|
|
561
611
|
},
|
|
@@ -578,7 +628,7 @@ var badgeVariants = (0, import_class_variance_authority7.cva)(
|
|
|
578
628
|
}
|
|
579
629
|
}
|
|
580
630
|
);
|
|
581
|
-
var Badge =
|
|
631
|
+
var Badge = React8.forwardRef(
|
|
582
632
|
(props, ref) => {
|
|
583
633
|
const {
|
|
584
634
|
asChild = false,
|
|
@@ -590,17 +640,17 @@ var Badge = React7.forwardRef(
|
|
|
590
640
|
...rest
|
|
591
641
|
} = props;
|
|
592
642
|
const Comp = asChild ? import_react_slot5.Slot : "div";
|
|
593
|
-
return /* @__PURE__ */ (0,
|
|
643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
594
644
|
Comp,
|
|
595
645
|
{
|
|
596
646
|
ref,
|
|
597
647
|
className: cn(badgeVariants({ size, variant }), className),
|
|
598
648
|
...rest,
|
|
599
|
-
children: value ? /* @__PURE__ */ (0,
|
|
600
|
-
/* @__PURE__ */ (0,
|
|
601
|
-
/* @__PURE__ */ (0,
|
|
602
|
-
/* @__PURE__ */ (0,
|
|
603
|
-
] }) : /* @__PURE__ */ (0,
|
|
649
|
+
children: value ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
650
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "font-normal", children: label }),
|
|
651
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "font-normal", children: ":" }),
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "font-medium", children: value })
|
|
653
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "font-normal", children: label })
|
|
604
654
|
}
|
|
605
655
|
);
|
|
606
656
|
}
|
|
@@ -608,16 +658,16 @@ var Badge = React7.forwardRef(
|
|
|
608
658
|
Badge.displayName = "Badge";
|
|
609
659
|
|
|
610
660
|
// src/components/Content/BadgeDigit.tsx
|
|
611
|
-
var
|
|
661
|
+
var React9 = __toESM(require("react"), 1);
|
|
612
662
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
613
|
-
var
|
|
663
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
614
664
|
var badgeDigitVariants = (0, import_class_variance_authority8.cva)(
|
|
615
665
|
"inline-flex items-center justify-center leading-none whitespace-nowrap text-(--color-b-white)",
|
|
616
666
|
{
|
|
617
667
|
variants: {
|
|
618
668
|
size: {
|
|
619
669
|
sm: "px-[6px] rounded-2 caption-medium",
|
|
620
|
-
md: "px-2 py-[2px] rounded-4 paragraph-
|
|
670
|
+
md: "px-2 py-[2px] rounded-4 paragraph-sm-medium"
|
|
621
671
|
},
|
|
622
672
|
variant: {
|
|
623
673
|
primary: "bg-(--background-brand)",
|
|
@@ -635,7 +685,7 @@ var badgeDigitVariants = (0, import_class_variance_authority8.cva)(
|
|
|
635
685
|
}
|
|
636
686
|
}
|
|
637
687
|
);
|
|
638
|
-
var BadgeDigit =
|
|
688
|
+
var BadgeDigit = React9.forwardRef(
|
|
639
689
|
(props, ref) => {
|
|
640
690
|
const {
|
|
641
691
|
value,
|
|
@@ -644,7 +694,7 @@ var BadgeDigit = React8.forwardRef(
|
|
|
644
694
|
className,
|
|
645
695
|
...rest
|
|
646
696
|
} = props;
|
|
647
|
-
return /* @__PURE__ */ (0,
|
|
697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
648
698
|
"div",
|
|
649
699
|
{
|
|
650
700
|
ref,
|
|
@@ -658,9 +708,9 @@ var BadgeDigit = React8.forwardRef(
|
|
|
658
708
|
BadgeDigit.displayName = "BadgeDigit";
|
|
659
709
|
|
|
660
710
|
// src/components/Content/BadgeDot.tsx
|
|
661
|
-
var
|
|
711
|
+
var React10 = require("react");
|
|
662
712
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
663
|
-
var
|
|
713
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
664
714
|
var badgeDotVariants = (0, import_class_variance_authority9.cva)("rounded-12 size-3", {
|
|
665
715
|
variants: {
|
|
666
716
|
status: {
|
|
@@ -676,14 +726,14 @@ var badgeDotVariants = (0, import_class_variance_authority9.cva)("rounded-12 siz
|
|
|
676
726
|
}
|
|
677
727
|
});
|
|
678
728
|
var BadgeDot = ({ status, className }) => {
|
|
679
|
-
return /* @__PURE__ */ (0,
|
|
729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn(badgeDotVariants({ status }), className) });
|
|
680
730
|
};
|
|
681
731
|
BadgeDot.displayName = "BadgeDot";
|
|
682
732
|
|
|
683
733
|
// src/components/Content/BadgeStatus.tsx
|
|
684
|
-
var
|
|
685
|
-
var
|
|
686
|
-
var BadgeStatus =
|
|
734
|
+
var React11 = __toESM(require("react"), 1);
|
|
735
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
736
|
+
var BadgeStatus = React11.forwardRef(
|
|
687
737
|
(props, ref) => {
|
|
688
738
|
const {
|
|
689
739
|
label,
|
|
@@ -694,14 +744,14 @@ var BadgeStatus = React10.forwardRef(
|
|
|
694
744
|
} = props;
|
|
695
745
|
const textClasses = active ? "caption-medium text-primary" : "caption-medium text-primary-disabled";
|
|
696
746
|
const dotClasses = active ? "bg-(--background-informal)" : "bg-(--background-primary)";
|
|
697
|
-
return /* @__PURE__ */ (0,
|
|
747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
698
748
|
"div",
|
|
699
749
|
{
|
|
700
750
|
ref,
|
|
701
751
|
className: cn("inline-flex items-center gap-2", className),
|
|
702
752
|
...rest,
|
|
703
753
|
children: [
|
|
704
|
-
/* @__PURE__ */ (0,
|
|
754
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
705
755
|
"span",
|
|
706
756
|
{
|
|
707
757
|
className: cn(
|
|
@@ -711,7 +761,7 @@ var BadgeStatus = React10.forwardRef(
|
|
|
711
761
|
)
|
|
712
762
|
}
|
|
713
763
|
),
|
|
714
|
-
/* @__PURE__ */ (0,
|
|
764
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: textClasses, children: label })
|
|
715
765
|
]
|
|
716
766
|
}
|
|
717
767
|
);
|
|
@@ -720,9 +770,9 @@ var BadgeStatus = React10.forwardRef(
|
|
|
720
770
|
BadgeStatus.displayName = "BadgeStatus";
|
|
721
771
|
|
|
722
772
|
// src/components/Content/Divider.tsx
|
|
723
|
-
var
|
|
773
|
+
var React12 = require("react");
|
|
724
774
|
var import_icons2 = require("@bubo-squared/icons");
|
|
725
|
-
var
|
|
775
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
726
776
|
var gapBySize = {
|
|
727
777
|
sm: "gap-2",
|
|
728
778
|
md: "gap-3",
|
|
@@ -732,8 +782,8 @@ var gapBySize = {
|
|
|
732
782
|
var textClassBySize = {
|
|
733
783
|
sm: "footnote",
|
|
734
784
|
md: "caption",
|
|
735
|
-
lg: "paragraph-
|
|
736
|
-
xl: "paragraph-
|
|
785
|
+
lg: "paragraph-sm",
|
|
786
|
+
xl: "paragraph-md"
|
|
737
787
|
};
|
|
738
788
|
var Divider = (props) => {
|
|
739
789
|
const resolvedType = props.type ?? "default";
|
|
@@ -757,14 +807,14 @@ var Divider = (props) => {
|
|
|
757
807
|
className: _className,
|
|
758
808
|
...divProps
|
|
759
809
|
} = props;
|
|
760
|
-
return /* @__PURE__ */ (0,
|
|
810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
761
811
|
"div",
|
|
762
812
|
{
|
|
763
813
|
className: wrapperClass,
|
|
764
814
|
role: "separator",
|
|
765
815
|
"aria-orientation": ariaOrientation,
|
|
766
816
|
...divProps,
|
|
767
|
-
children: /* @__PURE__ */ (0,
|
|
817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass })
|
|
768
818
|
}
|
|
769
819
|
);
|
|
770
820
|
}
|
|
@@ -778,7 +828,7 @@ var Divider = (props) => {
|
|
|
778
828
|
...divProps
|
|
779
829
|
} = props;
|
|
780
830
|
const textLabel = label ? label : "OR";
|
|
781
|
-
return /* @__PURE__ */ (0,
|
|
831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
782
832
|
"div",
|
|
783
833
|
{
|
|
784
834
|
className: wrapperClass,
|
|
@@ -786,8 +836,8 @@ var Divider = (props) => {
|
|
|
786
836
|
"aria-orientation": ariaOrientation,
|
|
787
837
|
...divProps,
|
|
788
838
|
children: [
|
|
789
|
-
/* @__PURE__ */ (0,
|
|
790
|
-
/* @__PURE__ */ (0,
|
|
839
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass }),
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
791
841
|
"span",
|
|
792
842
|
{
|
|
793
843
|
className: cn(
|
|
@@ -797,7 +847,7 @@ var Divider = (props) => {
|
|
|
797
847
|
children: textLabel
|
|
798
848
|
}
|
|
799
849
|
),
|
|
800
|
-
/* @__PURE__ */ (0,
|
|
850
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass })
|
|
801
851
|
]
|
|
802
852
|
}
|
|
803
853
|
);
|
|
@@ -814,7 +864,7 @@ var Divider = (props) => {
|
|
|
814
864
|
className: _className,
|
|
815
865
|
...divProps
|
|
816
866
|
} = props;
|
|
817
|
-
return /* @__PURE__ */ (0,
|
|
867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
818
868
|
"div",
|
|
819
869
|
{
|
|
820
870
|
className: wrapperClass,
|
|
@@ -822,18 +872,18 @@ var Divider = (props) => {
|
|
|
822
872
|
"aria-orientation": ariaOrientation,
|
|
823
873
|
...divProps,
|
|
824
874
|
children: [
|
|
825
|
-
/* @__PURE__ */ (0,
|
|
826
|
-
/* @__PURE__ */ (0,
|
|
875
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass }),
|
|
876
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
827
877
|
IconButton,
|
|
828
878
|
{
|
|
829
879
|
variant: iconButtonVariant ?? "secondary",
|
|
830
880
|
size: resolvedSize,
|
|
831
881
|
"aria-label": ariaLabel ?? "More options",
|
|
832
|
-
icon: icon ?? /* @__PURE__ */ (0,
|
|
882
|
+
icon: icon ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons2.TargetIcon, {}),
|
|
833
883
|
onClick: onIconClick
|
|
834
884
|
}
|
|
835
885
|
),
|
|
836
|
-
/* @__PURE__ */ (0,
|
|
886
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass })
|
|
837
887
|
]
|
|
838
888
|
}
|
|
839
889
|
);
|
|
@@ -847,7 +897,7 @@ var Divider = (props) => {
|
|
|
847
897
|
className: _className,
|
|
848
898
|
...divProps
|
|
849
899
|
} = props;
|
|
850
|
-
return /* @__PURE__ */ (0,
|
|
900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
851
901
|
"div",
|
|
852
902
|
{
|
|
853
903
|
className: wrapperClass,
|
|
@@ -855,8 +905,8 @@ var Divider = (props) => {
|
|
|
855
905
|
"aria-orientation": ariaOrientation,
|
|
856
906
|
...divProps,
|
|
857
907
|
children: [
|
|
858
|
-
/* @__PURE__ */ (0,
|
|
859
|
-
/* @__PURE__ */ (0,
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass }),
|
|
909
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
860
910
|
IconButtonGroup,
|
|
861
911
|
{
|
|
862
912
|
className: resolvedOrientation === "vertical" ? "flex-col" : "flex-row",
|
|
@@ -864,7 +914,7 @@ var Divider = (props) => {
|
|
|
864
914
|
size: resolvedSize
|
|
865
915
|
}
|
|
866
916
|
),
|
|
867
|
-
/* @__PURE__ */ (0,
|
|
917
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass })
|
|
868
918
|
]
|
|
869
919
|
}
|
|
870
920
|
);
|
|
@@ -880,7 +930,7 @@ var Divider = (props) => {
|
|
|
880
930
|
className: _className,
|
|
881
931
|
...divProps
|
|
882
932
|
} = props;
|
|
883
|
-
return /* @__PURE__ */ (0,
|
|
933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
884
934
|
"div",
|
|
885
935
|
{
|
|
886
936
|
className: wrapperClass,
|
|
@@ -888,8 +938,8 @@ var Divider = (props) => {
|
|
|
888
938
|
"aria-orientation": ariaOrientation,
|
|
889
939
|
...divProps,
|
|
890
940
|
children: [
|
|
891
|
-
/* @__PURE__ */ (0,
|
|
892
|
-
/* @__PURE__ */ (0,
|
|
941
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass }),
|
|
942
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
893
943
|
Button,
|
|
894
944
|
{
|
|
895
945
|
variant: buttonVariant ?? "secondary",
|
|
@@ -898,7 +948,7 @@ var Divider = (props) => {
|
|
|
898
948
|
children: buttonLabel
|
|
899
949
|
}
|
|
900
950
|
),
|
|
901
|
-
/* @__PURE__ */ (0,
|
|
951
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: lineClass })
|
|
902
952
|
]
|
|
903
953
|
}
|
|
904
954
|
);
|
|
@@ -908,14 +958,14 @@ var Divider = (props) => {
|
|
|
908
958
|
Divider.displayName = "Divider";
|
|
909
959
|
|
|
910
960
|
// src/components/Content/Progress.tsx
|
|
911
|
-
var
|
|
912
|
-
var
|
|
961
|
+
var React13 = __toESM(require("react"), 1);
|
|
962
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
913
963
|
var sizeToBarClasses = {
|
|
914
964
|
lg: "h-4 rounded-16",
|
|
915
965
|
md: "h-2 rounded-8",
|
|
916
966
|
sm: "h-1 rounded-4"
|
|
917
967
|
};
|
|
918
|
-
var Progress =
|
|
968
|
+
var Progress = React13.forwardRef(
|
|
919
969
|
(props, ref) => {
|
|
920
970
|
const {
|
|
921
971
|
value,
|
|
@@ -930,7 +980,7 @@ var Progress = React12.forwardRef(
|
|
|
930
980
|
const clamped = Number.isFinite(value) ? Math.min(100, Math.max(0, value)) : 0;
|
|
931
981
|
const percentageLabel = `${Math.round(clamped)}%`;
|
|
932
982
|
const barHeightClasses = sizeToBarClasses[size];
|
|
933
|
-
return /* @__PURE__ */ (0,
|
|
983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
934
984
|
"div",
|
|
935
985
|
{
|
|
936
986
|
ref,
|
|
@@ -942,11 +992,11 @@ var Progress = React12.forwardRef(
|
|
|
942
992
|
"aria-label": label,
|
|
943
993
|
...rest,
|
|
944
994
|
children: [
|
|
945
|
-
showLabel && label && /* @__PURE__ */ (0,
|
|
946
|
-
/* @__PURE__ */ (0,
|
|
947
|
-
/* @__PURE__ */ (0,
|
|
995
|
+
showLabel && label && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
|
|
996
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "paragraph-sm-bold text-primary", children: label }),
|
|
997
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "footnote text-(--color-secondary)", children: percentageLabel })
|
|
948
998
|
] }),
|
|
949
|
-
/* @__PURE__ */ (0,
|
|
999
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("w-full bg-(--chart-mono) overflow-hidden", barHeightClasses), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
950
1000
|
"div",
|
|
951
1001
|
{
|
|
952
1002
|
className: cn(
|
|
@@ -956,7 +1006,7 @@ var Progress = React12.forwardRef(
|
|
|
956
1006
|
style: { width: `${clamped}%` }
|
|
957
1007
|
}
|
|
958
1008
|
) }),
|
|
959
|
-
showHint && hint && /* @__PURE__ */ (0,
|
|
1009
|
+
showHint && hint && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "caption text-(--color-secondary)", children: hint })
|
|
960
1010
|
]
|
|
961
1011
|
}
|
|
962
1012
|
);
|
|
@@ -965,10 +1015,10 @@ var Progress = React12.forwardRef(
|
|
|
965
1015
|
Progress.displayName = "Progress";
|
|
966
1016
|
|
|
967
1017
|
// src/components/Content/StatusAvatar.tsx
|
|
968
|
-
var
|
|
1018
|
+
var React14 = __toESM(require("react"), 1);
|
|
969
1019
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
970
1020
|
var import_icons3 = require("@bubo-squared/icons");
|
|
971
|
-
var
|
|
1021
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
972
1022
|
var iconStatusVariants = (0, import_class_variance_authority10.cva)(
|
|
973
1023
|
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--color-primary-inverse) p-1",
|
|
974
1024
|
{
|
|
@@ -993,11 +1043,11 @@ var presenceDotByVariant = {
|
|
|
993
1043
|
away: "bg-(--background-warning) border-1 border-(--color-primary-inverse)",
|
|
994
1044
|
busy: "bg-(--background-error) border-1 border-(--color-primary-inverse)"
|
|
995
1045
|
};
|
|
996
|
-
var StatusAvatar =
|
|
1046
|
+
var StatusAvatar = React14.forwardRef((props, ref) => {
|
|
997
1047
|
const { variant = "verified", className, ...rest } = props;
|
|
998
1048
|
if (variant === "offline" || variant === "online" || variant === "away" || variant === "busy") {
|
|
999
1049
|
const dotClasses = presenceDotByVariant[variant];
|
|
1000
|
-
return /* @__PURE__ */ (0,
|
|
1050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1001
1051
|
"div",
|
|
1002
1052
|
{
|
|
1003
1053
|
ref,
|
|
@@ -1006,23 +1056,23 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
1006
1056
|
className
|
|
1007
1057
|
),
|
|
1008
1058
|
...rest,
|
|
1009
|
-
children: /* @__PURE__ */ (0,
|
|
1059
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn(dotClasses, "size-3.5 rounded-full") })
|
|
1010
1060
|
}
|
|
1011
1061
|
);
|
|
1012
1062
|
}
|
|
1013
1063
|
const iconVariant = variant;
|
|
1014
|
-
return /* @__PURE__ */ (0,
|
|
1064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1015
1065
|
"div",
|
|
1016
1066
|
{
|
|
1017
1067
|
ref,
|
|
1018
1068
|
className: cn(iconStatusVariants({ variant: iconVariant }), className),
|
|
1019
1069
|
...rest,
|
|
1020
1070
|
children: [
|
|
1021
|
-
iconVariant === "verified" && /* @__PURE__ */ (0,
|
|
1022
|
-
iconVariant === "bookmark" && /* @__PURE__ */ (0,
|
|
1023
|
-
iconVariant === "favorite" && /* @__PURE__ */ (0,
|
|
1024
|
-
iconVariant === "add" && /* @__PURE__ */ (0,
|
|
1025
|
-
iconVariant === "remove" && /* @__PURE__ */ (0,
|
|
1071
|
+
iconVariant === "verified" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.CheckIcon, { className: "size-3 text-button-white" }),
|
|
1072
|
+
iconVariant === "bookmark" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.BookmarkCheckIcon, { className: "size-3 text-button-white" }),
|
|
1073
|
+
iconVariant === "favorite" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.StarIcon, { className: "size-3 text-button-white" }),
|
|
1074
|
+
iconVariant === "add" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.PlusIcon, { className: "size-3 text-button-white" }),
|
|
1075
|
+
iconVariant === "remove" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.CrossIcon, { className: "size-3 text-button-white" })
|
|
1026
1076
|
]
|
|
1027
1077
|
}
|
|
1028
1078
|
);
|
|
@@ -1030,10 +1080,10 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
1030
1080
|
StatusAvatar.displayName = "StatusAvatar";
|
|
1031
1081
|
|
|
1032
1082
|
// src/components/Content/Tag.tsx
|
|
1033
|
-
var
|
|
1083
|
+
var React15 = __toESM(require("react"), 1);
|
|
1034
1084
|
var import_react_slot6 = require("@radix-ui/react-slot");
|
|
1035
1085
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
1036
|
-
var
|
|
1086
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1037
1087
|
var tagVariants = (0, import_class_variance_authority11.cva)(
|
|
1038
1088
|
"inline-flex flex-row items-center justify-center rounded-6 gap-2 px-3 overflow-hidden border-1 border-(--border-secondary) bg-(--background-neutral) hover:border-(--border-secondary-hover) focus:border-(--border-brand) focus-ring-primary ",
|
|
1039
1089
|
{
|
|
@@ -1050,7 +1100,7 @@ var tagVariants = (0, import_class_variance_authority11.cva)(
|
|
|
1050
1100
|
);
|
|
1051
1101
|
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
|
|
1052
1102
|
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
|
|
1053
|
-
var Tag =
|
|
1103
|
+
var Tag = React15.forwardRef(
|
|
1054
1104
|
(props, ref) => {
|
|
1055
1105
|
const {
|
|
1056
1106
|
size = "sm",
|
|
@@ -1062,22 +1112,22 @@ var Tag = React14.forwardRef(
|
|
|
1062
1112
|
...rest
|
|
1063
1113
|
} = props;
|
|
1064
1114
|
const Comp = asChild ? import_react_slot6.Slot : "div";
|
|
1065
|
-
const leading = props.leadingIcon &&
|
|
1066
|
-
const trailing = props.trailingIcon &&
|
|
1067
|
-
return /* @__PURE__ */ (0,
|
|
1115
|
+
const leading = props.leadingIcon && React15.isValidElement(props.leadingIcon) ? React15.cloneElement(props.leadingIcon, { disabled, ...props.leadingIcon.props }) : null;
|
|
1116
|
+
const trailing = props.trailingIcon && React15.isValidElement(props.trailingIcon) ? React15.cloneElement(props.trailingIcon, { disabled, ...props.trailingIcon.props }) : null;
|
|
1117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1068
1118
|
Comp,
|
|
1069
1119
|
{
|
|
1070
1120
|
className: cn(tagVariants({ size }), disabled && disabledTag, className),
|
|
1071
1121
|
ref,
|
|
1072
1122
|
...rest,
|
|
1073
1123
|
children: [
|
|
1074
|
-
leading && /* @__PURE__ */ (0,
|
|
1075
|
-
value ? /* @__PURE__ */ (0,
|
|
1076
|
-
/* @__PURE__ */ (0,
|
|
1077
|
-
/* @__PURE__ */ (0,
|
|
1078
|
-
/* @__PURE__ */ (0,
|
|
1079
|
-
] }) : /* @__PURE__ */ (0,
|
|
1080
|
-
trailing && /* @__PURE__ */ (0,
|
|
1124
|
+
leading && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: iconClasses, children: leading }),
|
|
1125
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-row gap-1 items-center", children: [
|
|
1126
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-primary paragraph-lg mb-0! cursor-default font-normal", children: label }),
|
|
1127
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-primary paragraph-lg mb-0! cursor-default font-normal", children: ":" }),
|
|
1128
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-primary paragraph-lg-medium mb-0! cursor-default font-medium", children: value })
|
|
1129
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-primary paragraph-lg mb-0! cursor-default", children: label }),
|
|
1130
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: iconClasses, children: trailing })
|
|
1081
1131
|
]
|
|
1082
1132
|
}
|
|
1083
1133
|
);
|
|
@@ -1085,14 +1135,14 @@ var Tag = React14.forwardRef(
|
|
|
1085
1135
|
);
|
|
1086
1136
|
|
|
1087
1137
|
// src/components/Inputs/Checkbox.tsx
|
|
1088
|
-
var
|
|
1138
|
+
var React16 = require("react");
|
|
1089
1139
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1090
1140
|
var import_icons4 = require("@bubo-squared/icons");
|
|
1091
1141
|
var import_icons5 = require("@bubo-squared/icons");
|
|
1092
|
-
var
|
|
1142
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1093
1143
|
function Checkbox({ label, className, ...props }) {
|
|
1094
|
-
return /* @__PURE__ */ (0,
|
|
1095
|
-
/* @__PURE__ */ (0,
|
|
1144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("label", { className: "inline-flex items-center gap-(--space-12) cursor-pointer select-none", children: [
|
|
1145
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1096
1146
|
CheckboxPrimitive.Root,
|
|
1097
1147
|
{
|
|
1098
1148
|
className: cn(
|
|
@@ -1108,21 +1158,21 @@ function Checkbox({ label, className, ...props }) {
|
|
|
1108
1158
|
className
|
|
1109
1159
|
),
|
|
1110
1160
|
...props,
|
|
1111
|
-
children: /* @__PURE__ */ (0,
|
|
1112
|
-
/* @__PURE__ */ (0,
|
|
1113
|
-
/* @__PURE__ */ (0,
|
|
1161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current", children: [
|
|
1162
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_icons4.CheckIcon, { className: "h-5 w-5 hidden group-data-[state=checked]:block" }),
|
|
1163
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_icons5.MinusIcon, { className: "h-5 w-5 hidden group-data-[state=indeterminate]:block" })
|
|
1114
1164
|
] })
|
|
1115
1165
|
}
|
|
1116
1166
|
),
|
|
1117
|
-
label && /* @__PURE__ */ (0,
|
|
1167
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "paragraph-md-medium text-primary", children: label })
|
|
1118
1168
|
] });
|
|
1119
1169
|
}
|
|
1120
1170
|
|
|
1121
1171
|
// src/components/Inputs/Dropdown.tsx
|
|
1122
|
-
var
|
|
1172
|
+
var React17 = __toESM(require("react"), 1);
|
|
1123
1173
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
1124
1174
|
var import_icons6 = require("@bubo-squared/icons");
|
|
1125
|
-
var
|
|
1175
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1126
1176
|
var dropdownWrapperBase = "flex flex-col gap-2 items-start";
|
|
1127
1177
|
var dropdownTriggerVariants = (0, import_class_variance_authority12.cva)(
|
|
1128
1178
|
"group flex w-full items-center justify-between rounded-4 border bg-(--background-primary) px-3 py-2 text-left transition-colors cursor-pointer focus-ring-primary focus:border-(--border-brand) hover:bg-(--background-primary-hover) disabled:bg-(--background-primary) disabled:border-(--border-secondary-disabled) disabled:text-primary-disabled disabled:cursor-default",
|
|
@@ -1149,8 +1199,8 @@ var dropdownTriggerVariants = (0, import_class_variance_authority12.cva)(
|
|
|
1149
1199
|
var dropdownTextVariants = (0, import_class_variance_authority12.cva)("truncate", {
|
|
1150
1200
|
variants: {
|
|
1151
1201
|
size: {
|
|
1152
|
-
sm: "paragraph-
|
|
1153
|
-
md: "paragraph-
|
|
1202
|
+
sm: "paragraph-md",
|
|
1203
|
+
md: "paragraph-lg",
|
|
1154
1204
|
lg: "subtitle",
|
|
1155
1205
|
xl: "h6-title"
|
|
1156
1206
|
},
|
|
@@ -1203,12 +1253,12 @@ var Dropdown = (props) => {
|
|
|
1203
1253
|
showMenu,
|
|
1204
1254
|
...buttonProps
|
|
1205
1255
|
} = props;
|
|
1206
|
-
const dropdownRef =
|
|
1256
|
+
const dropdownRef = React17.useRef(null);
|
|
1207
1257
|
const isControlled = value !== void 0;
|
|
1208
|
-
const [internalValue, setInternalValue] =
|
|
1258
|
+
const [internalValue, setInternalValue] = React17.useState(
|
|
1209
1259
|
defaultValue
|
|
1210
1260
|
);
|
|
1211
|
-
const [open, setOpen] =
|
|
1261
|
+
const [open, setOpen] = React17.useState(false);
|
|
1212
1262
|
const currentValue = isControlled ? value : internalValue;
|
|
1213
1263
|
const selectedOption = options.find((opt) => opt.value === currentValue);
|
|
1214
1264
|
const hasValue = !!selectedOption;
|
|
@@ -1228,10 +1278,10 @@ var Dropdown = (props) => {
|
|
|
1228
1278
|
setOpen(false);
|
|
1229
1279
|
}
|
|
1230
1280
|
};
|
|
1231
|
-
const triggerId =
|
|
1281
|
+
const triggerId = React17.useId();
|
|
1232
1282
|
const labelId = `${triggerId}-label`;
|
|
1233
1283
|
const hintId = `${triggerId}-hint`;
|
|
1234
|
-
|
|
1284
|
+
React17.useEffect(() => {
|
|
1235
1285
|
if (showMenu !== void 0) return;
|
|
1236
1286
|
const handleClickOutside = (event) => {
|
|
1237
1287
|
if (!dropdownRef.current) return;
|
|
@@ -1244,21 +1294,21 @@ var Dropdown = (props) => {
|
|
|
1244
1294
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
1245
1295
|
};
|
|
1246
1296
|
}, [showMenu]);
|
|
1247
|
-
return /* @__PURE__ */ (0,
|
|
1248
|
-
showLabel && /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ref: dropdownRef, className: dropdownWrapperBase, children: [
|
|
1298
|
+
showLabel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1249
1299
|
"label",
|
|
1250
1300
|
{
|
|
1251
1301
|
htmlFor: triggerId,
|
|
1252
1302
|
id: labelId,
|
|
1253
1303
|
className: cn(
|
|
1254
|
-
"paragraph-
|
|
1304
|
+
"paragraph-sm",
|
|
1255
1305
|
disabled ? "text-primary-disabled" : "text-primary"
|
|
1256
1306
|
),
|
|
1257
1307
|
children: label
|
|
1258
1308
|
}
|
|
1259
1309
|
),
|
|
1260
|
-
/* @__PURE__ */ (0,
|
|
1261
|
-
/* @__PURE__ */ (0,
|
|
1310
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "relative w-full", children: [
|
|
1311
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1262
1312
|
"button",
|
|
1263
1313
|
{
|
|
1264
1314
|
type: "button",
|
|
@@ -1276,7 +1326,7 @@ var Dropdown = (props) => {
|
|
|
1276
1326
|
"data-open": isOpen || void 0,
|
|
1277
1327
|
...buttonProps,
|
|
1278
1328
|
children: [
|
|
1279
|
-
/* @__PURE__ */ (0,
|
|
1329
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1280
1330
|
"span",
|
|
1281
1331
|
{
|
|
1282
1332
|
className: cn(
|
|
@@ -1289,32 +1339,32 @@ var Dropdown = (props) => {
|
|
|
1289
1339
|
children: hasValue ? selectedOption?.label : placeholder
|
|
1290
1340
|
}
|
|
1291
1341
|
),
|
|
1292
|
-
/* @__PURE__ */ (0,
|
|
1342
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1293
1343
|
"span",
|
|
1294
1344
|
{
|
|
1295
1345
|
className: cn(
|
|
1296
1346
|
dropdownIconVariants({ size, disabled: !!disabled })
|
|
1297
1347
|
),
|
|
1298
|
-
children: /* @__PURE__ */ (0,
|
|
1348
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_icons6.ChevronDownIcon, {})
|
|
1299
1349
|
}
|
|
1300
1350
|
)
|
|
1301
1351
|
]
|
|
1302
1352
|
}
|
|
1303
1353
|
),
|
|
1304
|
-
isOpen && options.length > 0 && /* @__PURE__ */ (0,
|
|
1354
|
+
isOpen && options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "absolute z-10 mt-1 w-full min-w-343 rounded-4 border border-(--border-primary-hover) bg-(--background-neutral) shadow-card-md flex overflow-y-scroll dropdown-scrollbar max-h-79", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("ul", { role: "listbox", className: "flex flex-1 flex-col", children: options.map((opt) => {
|
|
1305
1355
|
const selected = opt.value === currentValue;
|
|
1306
|
-
return /* @__PURE__ */ (0,
|
|
1356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1307
1357
|
"li",
|
|
1308
1358
|
{
|
|
1309
1359
|
className: cn(
|
|
1310
1360
|
"bg-(--background-neutral) border-b border-(--border-secondary) last:border-b-0",
|
|
1311
1361
|
selected && "bg-(--background-secondary)"
|
|
1312
1362
|
),
|
|
1313
|
-
children: /* @__PURE__ */ (0,
|
|
1363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1314
1364
|
"button",
|
|
1315
1365
|
{
|
|
1316
1366
|
type: "button",
|
|
1317
|
-
className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-
|
|
1367
|
+
className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-lg text-primary hover:bg-(--background-secondary)",
|
|
1318
1368
|
role: "option",
|
|
1319
1369
|
"aria-selected": selected,
|
|
1320
1370
|
onClick: () => handleSelect(opt.value),
|
|
@@ -1326,7 +1376,7 @@ var Dropdown = (props) => {
|
|
|
1326
1376
|
);
|
|
1327
1377
|
}) }) })
|
|
1328
1378
|
] }),
|
|
1329
|
-
!hideHint && /* @__PURE__ */ (0,
|
|
1379
|
+
!hideHint && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1330
1380
|
"p",
|
|
1331
1381
|
{
|
|
1332
1382
|
id: hintId,
|
|
@@ -1342,8 +1392,8 @@ var Dropdown = (props) => {
|
|
|
1342
1392
|
Dropdown.displayName = "Dropdown";
|
|
1343
1393
|
|
|
1344
1394
|
// src/components/Inputs/Field.tsx
|
|
1345
|
-
var
|
|
1346
|
-
var
|
|
1395
|
+
var React18 = __toESM(require("react"), 1);
|
|
1396
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1347
1397
|
var fieldBase = "flex flex-col gap-2 items-start";
|
|
1348
1398
|
var Field = (props) => {
|
|
1349
1399
|
const {
|
|
@@ -1355,22 +1405,22 @@ var Field = (props) => {
|
|
|
1355
1405
|
className,
|
|
1356
1406
|
children
|
|
1357
1407
|
} = props;
|
|
1358
|
-
const fieldId =
|
|
1408
|
+
const fieldId = React18.useId();
|
|
1359
1409
|
const labelId = label ? `${fieldId}-label` : void 0;
|
|
1360
1410
|
const hintId = hint ? `${fieldId}-hint` : void 0;
|
|
1361
1411
|
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
1362
1412
|
const labelColorClass = disabled ? "text-primary-disabled" : "text-primary";
|
|
1363
|
-
return /* @__PURE__ */ (0,
|
|
1364
|
-
label && /* @__PURE__ */ (0,
|
|
1413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn(fieldBase, className), children: [
|
|
1414
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1365
1415
|
"label",
|
|
1366
1416
|
{
|
|
1367
1417
|
id: labelId,
|
|
1368
|
-
className: cn("paragraph-
|
|
1418
|
+
className: cn("paragraph-sm", labelColorClass),
|
|
1369
1419
|
children: label
|
|
1370
1420
|
}
|
|
1371
1421
|
),
|
|
1372
|
-
/* @__PURE__ */ (0,
|
|
1373
|
-
!hideHint && /* @__PURE__ */ (0,
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative w-full", children }),
|
|
1423
|
+
!hideHint && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1374
1424
|
"p",
|
|
1375
1425
|
{
|
|
1376
1426
|
id: hint ? hintId : void 0,
|
|
@@ -1383,18 +1433,18 @@ var Field = (props) => {
|
|
|
1383
1433
|
Field.displayName = "Field";
|
|
1384
1434
|
|
|
1385
1435
|
// src/components/Inputs/PasswordInput.tsx
|
|
1386
|
-
var
|
|
1436
|
+
var React21 = __toESM(require("react"), 1);
|
|
1387
1437
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
1388
1438
|
|
|
1389
1439
|
// src/components/ui/input.tsx
|
|
1390
|
-
var
|
|
1391
|
-
var
|
|
1392
|
-
var Input =
|
|
1440
|
+
var React19 = __toESM(require("react"), 1);
|
|
1441
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1442
|
+
var Input = React19.forwardRef(
|
|
1393
1443
|
({ className, type, variant = "default", ...props }, ref) => {
|
|
1394
1444
|
const base = "text-primary placeholder:text-(--color-secondary) disabled:text-primary-disabled disabled:placeholder:text-primary-disabled selection:bg-primary selection:text-primary-foreground file:text-foreground";
|
|
1395
1445
|
const defaultStyles = "dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 shadow-xs transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 focus-visible:border-ring focus-visible:ring-0 focus-visible:shadow-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive";
|
|
1396
1446
|
const bareStyles = "bg-transparent outline-none w-full";
|
|
1397
|
-
return /* @__PURE__ */ (0,
|
|
1447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1398
1448
|
"input",
|
|
1399
1449
|
{
|
|
1400
1450
|
ref,
|
|
@@ -1413,9 +1463,9 @@ var Input = React18.forwardRef(
|
|
|
1413
1463
|
Input.displayName = "Input";
|
|
1414
1464
|
|
|
1415
1465
|
// src/components/Inputs/InputShell.tsx
|
|
1416
|
-
var
|
|
1466
|
+
var React20 = __toESM(require("react"), 1);
|
|
1417
1467
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
1418
|
-
var
|
|
1468
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1419
1469
|
var inputShellVariants = (0, import_class_variance_authority13.cva)(
|
|
1420
1470
|
"group flex w-full items-center rounded-4 border bg-(--background-primary) text-left cursor-text border-(--border-secondary)",
|
|
1421
1471
|
{
|
|
@@ -1441,9 +1491,9 @@ var inputShellVariants = (0, import_class_variance_authority13.cva)(
|
|
|
1441
1491
|
}
|
|
1442
1492
|
}
|
|
1443
1493
|
);
|
|
1444
|
-
var InputShell =
|
|
1494
|
+
var InputShell = React20.forwardRef(
|
|
1445
1495
|
({ size, status, disabled, className, ...rest }, ref) => {
|
|
1446
|
-
return /* @__PURE__ */ (0,
|
|
1496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1447
1497
|
"div",
|
|
1448
1498
|
{
|
|
1449
1499
|
ref,
|
|
@@ -1460,12 +1510,12 @@ var InputShell = React19.forwardRef(
|
|
|
1460
1510
|
InputShell.displayName = "InputShell";
|
|
1461
1511
|
|
|
1462
1512
|
// src/components/Inputs/PasswordInput.tsx
|
|
1463
|
-
var
|
|
1513
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1464
1514
|
var passwordTextVariants = (0, import_class_variance_authority14.cva)("truncate", {
|
|
1465
1515
|
variants: {
|
|
1466
1516
|
size: {
|
|
1467
|
-
sm: "paragraph-
|
|
1468
|
-
md: "paragraph-
|
|
1517
|
+
sm: "paragraph-md",
|
|
1518
|
+
md: "paragraph-lg",
|
|
1469
1519
|
lg: "subtitle",
|
|
1470
1520
|
xl: "h6-title"
|
|
1471
1521
|
},
|
|
@@ -1499,14 +1549,14 @@ var iconWrapperVariants = (0, import_class_variance_authority14.cva)(
|
|
|
1499
1549
|
}
|
|
1500
1550
|
);
|
|
1501
1551
|
var actionButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
1502
|
-
"flex items-center justify-center shrink-0 cursor-pointer bg-transparent border-0 p-0 text-left paragraph-
|
|
1552
|
+
"flex items-center justify-center shrink-0 cursor-pointer bg-transparent border-0 p-0 text-left paragraph-sm text-(--icon-primary) hover:text-(--icon-primary-hover) focus:outline-none ",
|
|
1503
1553
|
{
|
|
1504
1554
|
variants: {
|
|
1505
1555
|
size: {
|
|
1506
|
-
sm: "paragraph-
|
|
1507
|
-
md: "paragraph-
|
|
1508
|
-
lg: "paragraph-
|
|
1509
|
-
xl: "paragraph-
|
|
1556
|
+
sm: "paragraph-sm",
|
|
1557
|
+
md: "paragraph-sm",
|
|
1558
|
+
lg: "paragraph-sm",
|
|
1559
|
+
xl: "paragraph-md"
|
|
1510
1560
|
},
|
|
1511
1561
|
disabled: {
|
|
1512
1562
|
true: "cursor-default text-primary-disabled hover:text-primary-disabled"
|
|
@@ -1538,11 +1588,11 @@ var PasswordInput = (props) => {
|
|
|
1538
1588
|
...inputProps
|
|
1539
1589
|
} = props;
|
|
1540
1590
|
const isControlled = value !== void 0;
|
|
1541
|
-
const [internalValue, setInternalValue] =
|
|
1591
|
+
const [internalValue, setInternalValue] = React21.useState(
|
|
1542
1592
|
defaultValue ?? ""
|
|
1543
1593
|
);
|
|
1544
1594
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
1545
|
-
const inputRef =
|
|
1595
|
+
const inputRef = React21.useRef(null);
|
|
1546
1596
|
const handleContainerClick = () => {
|
|
1547
1597
|
if (disabled) return;
|
|
1548
1598
|
inputRef.current?.focus();
|
|
@@ -1556,7 +1606,7 @@ var PasswordInput = (props) => {
|
|
|
1556
1606
|
const showLeadingIcon = variant === "icons" && !!leadingIcon;
|
|
1557
1607
|
const showTrailingIcon = variant === "icons" && !!trailingIcon;
|
|
1558
1608
|
const showAction = variant === "action" && !!actionLabel;
|
|
1559
|
-
return /* @__PURE__ */ (0,
|
|
1609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1560
1610
|
Field,
|
|
1561
1611
|
{
|
|
1562
1612
|
label,
|
|
@@ -1564,7 +1614,7 @@ var PasswordInput = (props) => {
|
|
|
1564
1614
|
hideHint,
|
|
1565
1615
|
status,
|
|
1566
1616
|
disabled,
|
|
1567
|
-
children: /* @__PURE__ */ (0,
|
|
1617
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1568
1618
|
InputShell,
|
|
1569
1619
|
{
|
|
1570
1620
|
size,
|
|
@@ -1573,7 +1623,7 @@ var PasswordInput = (props) => {
|
|
|
1573
1623
|
className,
|
|
1574
1624
|
onClick: handleContainerClick,
|
|
1575
1625
|
children: [
|
|
1576
|
-
showLeadingIcon && /* @__PURE__ */ (0,
|
|
1626
|
+
showLeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1577
1627
|
"span",
|
|
1578
1628
|
{
|
|
1579
1629
|
className: cn(
|
|
@@ -1582,7 +1632,7 @@ var PasswordInput = (props) => {
|
|
|
1582
1632
|
children: leadingIcon
|
|
1583
1633
|
}
|
|
1584
1634
|
),
|
|
1585
|
-
/* @__PURE__ */ (0,
|
|
1635
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1586
1636
|
Input,
|
|
1587
1637
|
{
|
|
1588
1638
|
ref: inputRef,
|
|
@@ -1599,7 +1649,7 @@ var PasswordInput = (props) => {
|
|
|
1599
1649
|
...inputProps
|
|
1600
1650
|
}
|
|
1601
1651
|
),
|
|
1602
|
-
showTrailingIcon && /* @__PURE__ */ (0,
|
|
1652
|
+
showTrailingIcon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1603
1653
|
"span",
|
|
1604
1654
|
{
|
|
1605
1655
|
className: cn(
|
|
@@ -1608,7 +1658,7 @@ var PasswordInput = (props) => {
|
|
|
1608
1658
|
children: trailingIcon
|
|
1609
1659
|
}
|
|
1610
1660
|
),
|
|
1611
|
-
showAction && /* @__PURE__ */ (0,
|
|
1661
|
+
showAction && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1612
1662
|
"button",
|
|
1613
1663
|
{
|
|
1614
1664
|
type: "button",
|
|
@@ -1628,16 +1678,16 @@ var PasswordInput = (props) => {
|
|
|
1628
1678
|
PasswordInput.displayName = "PasswordInput";
|
|
1629
1679
|
|
|
1630
1680
|
// src/components/Inputs/PhoneInput.tsx
|
|
1631
|
-
var
|
|
1681
|
+
var React27 = __toESM(require("react"), 1);
|
|
1632
1682
|
var import_icons8 = require("@bubo-squared/icons");
|
|
1633
1683
|
var RPNInput = __toESM(require("react-phone-number-input"), 1);
|
|
1634
1684
|
var import_flags = __toESM(require("react-phone-number-input/flags"), 1);
|
|
1635
1685
|
|
|
1636
1686
|
// src/components/ui/button.tsx
|
|
1637
|
-
var
|
|
1687
|
+
var React22 = require("react");
|
|
1638
1688
|
var import_react_slot7 = require("@radix-ui/react-slot");
|
|
1639
1689
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
1640
|
-
var
|
|
1690
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1641
1691
|
var buttonVariants2 = (0, import_class_variance_authority15.cva)(
|
|
1642
1692
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-0 focus-visible:shadow-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
1643
1693
|
{
|
|
@@ -1673,7 +1723,7 @@ function Button2({
|
|
|
1673
1723
|
...props
|
|
1674
1724
|
}) {
|
|
1675
1725
|
const Comp = asChild ? import_react_slot7.Slot : "button";
|
|
1676
|
-
return /* @__PURE__ */ (0,
|
|
1726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1677
1727
|
Comp,
|
|
1678
1728
|
{
|
|
1679
1729
|
"data-slot": "button",
|
|
@@ -1686,22 +1736,22 @@ function Button2({
|
|
|
1686
1736
|
}
|
|
1687
1737
|
|
|
1688
1738
|
// src/components/ui/command.tsx
|
|
1689
|
-
var
|
|
1739
|
+
var React24 = require("react");
|
|
1690
1740
|
var import_cmdk = require("cmdk");
|
|
1691
1741
|
var import_icons7 = require("@bubo-squared/icons");
|
|
1692
1742
|
|
|
1693
1743
|
// src/components/ui/dialog.tsx
|
|
1694
|
-
var
|
|
1744
|
+
var React23 = require("react");
|
|
1695
1745
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1696
|
-
var
|
|
1746
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1697
1747
|
|
|
1698
1748
|
// src/components/ui/command.tsx
|
|
1699
|
-
var
|
|
1749
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1700
1750
|
function Command({
|
|
1701
1751
|
className,
|
|
1702
1752
|
...props
|
|
1703
1753
|
}) {
|
|
1704
|
-
return /* @__PURE__ */ (0,
|
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1705
1755
|
import_cmdk.Command,
|
|
1706
1756
|
{
|
|
1707
1757
|
"data-slot": "command",
|
|
@@ -1717,14 +1767,14 @@ function CommandInput({
|
|
|
1717
1767
|
className,
|
|
1718
1768
|
...props
|
|
1719
1769
|
}) {
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1721
1771
|
"div",
|
|
1722
1772
|
{
|
|
1723
1773
|
"data-slot": "command-input-wrapper",
|
|
1724
1774
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1725
1775
|
children: [
|
|
1726
|
-
/* @__PURE__ */ (0,
|
|
1727
|
-
/* @__PURE__ */ (0,
|
|
1776
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_icons7.SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--color-secondary)" }),
|
|
1777
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1728
1778
|
import_cmdk.Command.Input,
|
|
1729
1779
|
{
|
|
1730
1780
|
"data-slot": "command-input",
|
|
@@ -1743,7 +1793,7 @@ function CommandList({
|
|
|
1743
1793
|
className,
|
|
1744
1794
|
...props
|
|
1745
1795
|
}) {
|
|
1746
|
-
return /* @__PURE__ */ (0,
|
|
1796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1747
1797
|
import_cmdk.Command.List,
|
|
1748
1798
|
{
|
|
1749
1799
|
"data-slot": "command-list",
|
|
@@ -1758,7 +1808,7 @@ function CommandList({
|
|
|
1758
1808
|
function CommandEmpty({
|
|
1759
1809
|
...props
|
|
1760
1810
|
}) {
|
|
1761
|
-
return /* @__PURE__ */ (0,
|
|
1811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1762
1812
|
import_cmdk.Command.Empty,
|
|
1763
1813
|
{
|
|
1764
1814
|
"data-slot": "command-empty",
|
|
@@ -1771,7 +1821,7 @@ function CommandGroup({
|
|
|
1771
1821
|
className,
|
|
1772
1822
|
...props
|
|
1773
1823
|
}) {
|
|
1774
|
-
return /* @__PURE__ */ (0,
|
|
1824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1775
1825
|
import_cmdk.Command.Group,
|
|
1776
1826
|
{
|
|
1777
1827
|
"data-slot": "command-group",
|
|
@@ -1787,7 +1837,7 @@ function CommandItem({
|
|
|
1787
1837
|
className,
|
|
1788
1838
|
...props
|
|
1789
1839
|
}) {
|
|
1790
|
-
return /* @__PURE__ */ (0,
|
|
1840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1791
1841
|
import_cmdk.Command.Item,
|
|
1792
1842
|
{
|
|
1793
1843
|
"data-slot": "command-item",
|
|
@@ -1801,18 +1851,18 @@ function CommandItem({
|
|
|
1801
1851
|
}
|
|
1802
1852
|
|
|
1803
1853
|
// src/components/ui/popover.tsx
|
|
1804
|
-
var
|
|
1854
|
+
var React25 = require("react");
|
|
1805
1855
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1806
|
-
var
|
|
1856
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1807
1857
|
function Popover({
|
|
1808
1858
|
...props
|
|
1809
1859
|
}) {
|
|
1810
|
-
return /* @__PURE__ */ (0,
|
|
1860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
1811
1861
|
}
|
|
1812
1862
|
function PopoverTrigger({
|
|
1813
1863
|
...props
|
|
1814
1864
|
}) {
|
|
1815
|
-
return /* @__PURE__ */ (0,
|
|
1865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
1816
1866
|
}
|
|
1817
1867
|
function PopoverContent({
|
|
1818
1868
|
className,
|
|
@@ -1820,7 +1870,7 @@ function PopoverContent({
|
|
|
1820
1870
|
sideOffset = 4,
|
|
1821
1871
|
...props
|
|
1822
1872
|
}) {
|
|
1823
|
-
return /* @__PURE__ */ (0,
|
|
1873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1824
1874
|
PopoverPrimitive.Content,
|
|
1825
1875
|
{
|
|
1826
1876
|
"data-slot": "popover-content",
|
|
@@ -1836,22 +1886,22 @@ function PopoverContent({
|
|
|
1836
1886
|
}
|
|
1837
1887
|
|
|
1838
1888
|
// src/components/ui/scroll-area.tsx
|
|
1839
|
-
var
|
|
1889
|
+
var React26 = require("react");
|
|
1840
1890
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
1841
|
-
var
|
|
1891
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1842
1892
|
function ScrollArea({
|
|
1843
1893
|
className,
|
|
1844
1894
|
children,
|
|
1845
1895
|
...props
|
|
1846
1896
|
}) {
|
|
1847
|
-
return /* @__PURE__ */ (0,
|
|
1897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1848
1898
|
ScrollAreaPrimitive.Root,
|
|
1849
1899
|
{
|
|
1850
1900
|
"data-slot": "scroll-area",
|
|
1851
1901
|
className: cn("relative", className),
|
|
1852
1902
|
...props,
|
|
1853
1903
|
children: [
|
|
1854
|
-
/* @__PURE__ */ (0,
|
|
1904
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1855
1905
|
ScrollAreaPrimitive.Viewport,
|
|
1856
1906
|
{
|
|
1857
1907
|
"data-slot": "scroll-area-viewport",
|
|
@@ -1859,8 +1909,8 @@ function ScrollArea({
|
|
|
1859
1909
|
children
|
|
1860
1910
|
}
|
|
1861
1911
|
),
|
|
1862
|
-
/* @__PURE__ */ (0,
|
|
1863
|
-
/* @__PURE__ */ (0,
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ScrollBar, {}),
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
1864
1914
|
]
|
|
1865
1915
|
}
|
|
1866
1916
|
);
|
|
@@ -1870,7 +1920,7 @@ function ScrollBar({
|
|
|
1870
1920
|
orientation = "vertical",
|
|
1871
1921
|
...props
|
|
1872
1922
|
}) {
|
|
1873
|
-
return /* @__PURE__ */ (0,
|
|
1923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1874
1924
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1875
1925
|
{
|
|
1876
1926
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -1883,7 +1933,7 @@ function ScrollBar({
|
|
|
1883
1933
|
className
|
|
1884
1934
|
),
|
|
1885
1935
|
...props,
|
|
1886
|
-
children: /* @__PURE__ */ (0,
|
|
1936
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1887
1937
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
1888
1938
|
{
|
|
1889
1939
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1896,7 +1946,7 @@ function ScrollBar({
|
|
|
1896
1946
|
|
|
1897
1947
|
// src/components/Inputs/PhoneInput.tsx
|
|
1898
1948
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
1899
|
-
var
|
|
1949
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1900
1950
|
var inputBase = "h-full rounded-4 border-(--border-secondary) bg-(--background-primary) hover:border-(--border-secondary-hover)";
|
|
1901
1951
|
var sizeBase = (0, import_class_variance_authority16.cva)(
|
|
1902
1952
|
"flex w-full",
|
|
@@ -1914,8 +1964,8 @@ var sizeBase = (0, import_class_variance_authority16.cva)(
|
|
|
1914
1964
|
var inputTextVariants = (0, import_class_variance_authority16.cva)("", {
|
|
1915
1965
|
variants: {
|
|
1916
1966
|
size: {
|
|
1917
|
-
sm: "paragraph-
|
|
1918
|
-
md: "paragraph-
|
|
1967
|
+
sm: "paragraph-md",
|
|
1968
|
+
md: "paragraph-lg",
|
|
1919
1969
|
lg: "subtitle",
|
|
1920
1970
|
xl: "h6-title"
|
|
1921
1971
|
},
|
|
@@ -1932,7 +1982,7 @@ var wrapperStatusClass = {
|
|
|
1932
1982
|
success: "input-success-nested",
|
|
1933
1983
|
error: "input-error-nested"
|
|
1934
1984
|
};
|
|
1935
|
-
var PhoneInput =
|
|
1985
|
+
var PhoneInput = React27.forwardRef(
|
|
1936
1986
|
(props, ref) => {
|
|
1937
1987
|
const {
|
|
1938
1988
|
className,
|
|
@@ -1947,7 +1997,7 @@ var PhoneInput = React26.forwardRef(
|
|
|
1947
1997
|
status = "default",
|
|
1948
1998
|
...rest
|
|
1949
1999
|
} = props;
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
2000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1951
2001
|
Field,
|
|
1952
2002
|
{
|
|
1953
2003
|
label,
|
|
@@ -1956,7 +2006,7 @@ var PhoneInput = React26.forwardRef(
|
|
|
1956
2006
|
status,
|
|
1957
2007
|
disabled,
|
|
1958
2008
|
className,
|
|
1959
|
-
children: /* @__PURE__ */ (0,
|
|
2009
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: cn("w-full", wrapperStatusClass[status]), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1960
2010
|
RPNInput.default,
|
|
1961
2011
|
{
|
|
1962
2012
|
ref,
|
|
@@ -1982,9 +2032,9 @@ var PhoneInput = React26.forwardRef(
|
|
|
1982
2032
|
}
|
|
1983
2033
|
);
|
|
1984
2034
|
PhoneInput.displayName = "PhoneInput";
|
|
1985
|
-
var InputComponent =
|
|
2035
|
+
var InputComponent = React27.forwardRef((props, ref) => {
|
|
1986
2036
|
const { className, ...rest } = props;
|
|
1987
|
-
return /* @__PURE__ */ (0,
|
|
2037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1988
2038
|
Input,
|
|
1989
2039
|
{
|
|
1990
2040
|
ref,
|
|
@@ -2001,10 +2051,10 @@ var CountrySelect = ({
|
|
|
2001
2051
|
options: countryList,
|
|
2002
2052
|
onChange
|
|
2003
2053
|
}) => {
|
|
2004
|
-
const scrollAreaRef =
|
|
2005
|
-
const [searchValue, setSearchValue] =
|
|
2006
|
-
const [isOpen, setIsOpen] =
|
|
2007
|
-
return /* @__PURE__ */ (0,
|
|
2054
|
+
const scrollAreaRef = React27.useRef(null);
|
|
2055
|
+
const [searchValue, setSearchValue] = React27.useState("");
|
|
2056
|
+
const [isOpen, setIsOpen] = React27.useState(false);
|
|
2057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2008
2058
|
Popover,
|
|
2009
2059
|
{
|
|
2010
2060
|
open: isOpen,
|
|
@@ -2014,7 +2064,7 @@ var CountrySelect = ({
|
|
|
2014
2064
|
open && setSearchValue("");
|
|
2015
2065
|
},
|
|
2016
2066
|
children: [
|
|
2017
|
-
/* @__PURE__ */ (0,
|
|
2067
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2018
2068
|
Button2,
|
|
2019
2069
|
{
|
|
2020
2070
|
type: "button",
|
|
@@ -2022,14 +2072,14 @@ var CountrySelect = ({
|
|
|
2022
2072
|
className: cn(inputBase, "flex gap-1 rounded-4 px-3 focus:z-10 mr-(--space-12) text-primary-disabled hover:text-(--color-primary-hover) focus:text-(--color-primary-focus)"),
|
|
2023
2073
|
disabled,
|
|
2024
2074
|
children: [
|
|
2025
|
-
/* @__PURE__ */ (0,
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2026
2076
|
FlagComponent,
|
|
2027
2077
|
{
|
|
2028
2078
|
country: selectedCountry,
|
|
2029
2079
|
countryName: selectedCountry
|
|
2030
2080
|
}
|
|
2031
2081
|
),
|
|
2032
|
-
/* @__PURE__ */ (0,
|
|
2082
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2033
2083
|
import_icons8.CodeIcon,
|
|
2034
2084
|
{
|
|
2035
2085
|
className: cn(
|
|
@@ -2041,13 +2091,13 @@ var CountrySelect = ({
|
|
|
2041
2091
|
]
|
|
2042
2092
|
}
|
|
2043
2093
|
) }),
|
|
2044
|
-
/* @__PURE__ */ (0,
|
|
2094
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2045
2095
|
PopoverContent,
|
|
2046
2096
|
{
|
|
2047
2097
|
align: "start",
|
|
2048
2098
|
className: "p-0 bg-(--background-primary) shadow-card-md rounded-4 border-none outline-1 outline-solid outline-(--border-secondary-hover) **:data-[slot='command-input-wrapper']:border-b-(--border-secondary)",
|
|
2049
|
-
children: /* @__PURE__ */ (0,
|
|
2050
|
-
/* @__PURE__ */ (0,
|
|
2099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Command, { children: [
|
|
2100
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2051
2101
|
CommandInput,
|
|
2052
2102
|
{
|
|
2053
2103
|
value: searchValue,
|
|
@@ -2067,10 +2117,10 @@ var CountrySelect = ({
|
|
|
2067
2117
|
placeholder: "Search country..."
|
|
2068
2118
|
}
|
|
2069
2119
|
),
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2071
|
-
/* @__PURE__ */ (0,
|
|
2072
|
-
/* @__PURE__ */ (0,
|
|
2073
|
-
({ value, label }) => value ? /* @__PURE__ */ (0,
|
|
2120
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CommandList, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ScrollArea, { ref: scrollAreaRef, className: "h-72", children: [
|
|
2121
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CommandEmpty, { children: "No country found." }),
|
|
2122
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CommandGroup, { className: "[&>div>div]:pl-4 [&>div>div]:pr-2 [&>div>div]:py-2 [&>div>div]:border-b [&>div>div]:border-b-(--border-secondary) [&>div>div]:cursor-pointer [&>div>div]:hover:bg-(--background-primary-hover) [&>div>div]:text-primary [&>div>div]:hover:text-primary p-0 pr-4", children: countryList.map(
|
|
2123
|
+
({ value, label }) => value ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2074
2124
|
CountrySelectOption,
|
|
2075
2125
|
{
|
|
2076
2126
|
country: value,
|
|
@@ -2102,16 +2152,16 @@ var CountrySelectOption = (props) => {
|
|
|
2102
2152
|
onChange(country);
|
|
2103
2153
|
onSelectComplete();
|
|
2104
2154
|
};
|
|
2105
|
-
return /* @__PURE__ */ (0,
|
|
2155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2106
2156
|
CommandItem,
|
|
2107
2157
|
{
|
|
2108
2158
|
className: "gap-2 data-[selected=true]:text-primary",
|
|
2109
2159
|
onSelect: handleSelect,
|
|
2110
2160
|
children: [
|
|
2111
|
-
/* @__PURE__ */ (0,
|
|
2112
|
-
/* @__PURE__ */ (0,
|
|
2113
|
-
/* @__PURE__ */ (0,
|
|
2114
|
-
/* @__PURE__ */ (0,
|
|
2161
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FlagComponent, { country, countryName }),
|
|
2162
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "flex-1 text-sm", children: countryName }),
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm text-foreground/50", children: `+${RPNInput.getCountryCallingCode(country)}` }),
|
|
2164
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2115
2165
|
import_icons8.CheckIcon,
|
|
2116
2166
|
{
|
|
2117
2167
|
className: `ml-auto size-4 ${country === selectedCountry ? "opacity-100" : "opacity-0"}`
|
|
@@ -2123,13 +2173,13 @@ var CountrySelectOption = (props) => {
|
|
|
2123
2173
|
};
|
|
2124
2174
|
var FlagComponent = ({ country, countryName }) => {
|
|
2125
2175
|
const Flag = import_flags.default[country];
|
|
2126
|
-
return /* @__PURE__ */ (0,
|
|
2176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "flex h-4 w-6 overflow-hidden rounded-2 bg-foreground/20 [&_svg:not([class*='size-'])]:size-full", children: Flag && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Flag, { title: countryName }) });
|
|
2127
2177
|
};
|
|
2128
2178
|
|
|
2129
2179
|
// src/components/Inputs/RadioGroup.tsx
|
|
2130
|
-
var
|
|
2180
|
+
var React28 = __toESM(require("react"), 1);
|
|
2131
2181
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
2132
|
-
var
|
|
2182
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2133
2183
|
var wrapperBase = "flex flex-col gap-2 items-start";
|
|
2134
2184
|
var RadioGroup = ({
|
|
2135
2185
|
label,
|
|
@@ -2144,24 +2194,24 @@ var RadioGroup = ({
|
|
|
2144
2194
|
className,
|
|
2145
2195
|
...rootProps
|
|
2146
2196
|
}) => {
|
|
2147
|
-
const groupId =
|
|
2197
|
+
const groupId = React28.useId();
|
|
2148
2198
|
const hintId = hint ? `${groupId}-hint` : void 0;
|
|
2149
2199
|
const handleValueChange = (next) => {
|
|
2150
2200
|
onValueChange?.(next);
|
|
2151
2201
|
};
|
|
2152
2202
|
const isHorizontal = orientation === "horizontal";
|
|
2153
|
-
return /* @__PURE__ */ (0,
|
|
2154
|
-
label && /* @__PURE__ */ (0,
|
|
2203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: wrapperBase, children: [
|
|
2204
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2155
2205
|
"span",
|
|
2156
2206
|
{
|
|
2157
2207
|
className: cn(
|
|
2158
|
-
"paragraph-
|
|
2208
|
+
"paragraph-sm text-primary",
|
|
2159
2209
|
disabled && "text-primary-disabled"
|
|
2160
2210
|
),
|
|
2161
2211
|
children: label
|
|
2162
2212
|
}
|
|
2163
2213
|
),
|
|
2164
|
-
/* @__PURE__ */ (0,
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2165
2215
|
RadioGroupPrimitive.Root,
|
|
2166
2216
|
{
|
|
2167
2217
|
...rootProps,
|
|
@@ -2174,13 +2224,13 @@ var RadioGroup = ({
|
|
|
2174
2224
|
isHorizontal ? "flex-row gap-6" : "flex-col gap-2",
|
|
2175
2225
|
className
|
|
2176
2226
|
),
|
|
2177
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
2227
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2178
2228
|
RadioGroupPrimitive.Item,
|
|
2179
2229
|
{
|
|
2180
2230
|
value: option.value,
|
|
2181
2231
|
disabled: disabled || option.disabled,
|
|
2182
2232
|
asChild: true,
|
|
2183
|
-
children: /* @__PURE__ */ (0,
|
|
2233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2184
2234
|
"button",
|
|
2185
2235
|
{
|
|
2186
2236
|
type: "button",
|
|
@@ -2190,7 +2240,7 @@ var RadioGroup = ({
|
|
|
2190
2240
|
disabled || option.disabled ? "cursor-default" : "cursor-pointer"
|
|
2191
2241
|
),
|
|
2192
2242
|
children: [
|
|
2193
|
-
/* @__PURE__ */ (0,
|
|
2243
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2194
2244
|
"span",
|
|
2195
2245
|
{
|
|
2196
2246
|
className: cn(
|
|
@@ -2216,7 +2266,7 @@ var RadioGroup = ({
|
|
|
2216
2266
|
"group-[&[data-disabled][data-state=checked]]:border-(--border-primary-disabled)",
|
|
2217
2267
|
"group-[&[data-disabled][data-state=checked]]:bg-(--background-primary-disabled)"
|
|
2218
2268
|
),
|
|
2219
|
-
children: /* @__PURE__ */ (0,
|
|
2269
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2220
2270
|
"span",
|
|
2221
2271
|
{
|
|
2222
2272
|
className: cn(
|
|
@@ -2231,11 +2281,11 @@ var RadioGroup = ({
|
|
|
2231
2281
|
)
|
|
2232
2282
|
}
|
|
2233
2283
|
),
|
|
2234
|
-
/* @__PURE__ */ (0,
|
|
2284
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2235
2285
|
"span",
|
|
2236
2286
|
{
|
|
2237
2287
|
className: cn(
|
|
2238
|
-
"paragraph-
|
|
2288
|
+
"paragraph-sm text-primary",
|
|
2239
2289
|
"group-data-[disabled]:text-primary-disabled whitespace-nowrap"
|
|
2240
2290
|
),
|
|
2241
2291
|
children: option.label
|
|
@@ -2249,7 +2299,7 @@ var RadioGroup = ({
|
|
|
2249
2299
|
))
|
|
2250
2300
|
}
|
|
2251
2301
|
),
|
|
2252
|
-
!hideHint && /* @__PURE__ */ (0,
|
|
2302
|
+
!hideHint && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2253
2303
|
"p",
|
|
2254
2304
|
{
|
|
2255
2305
|
id: hintId,
|
|
@@ -2264,15 +2314,15 @@ var RadioGroup = ({
|
|
|
2264
2314
|
};
|
|
2265
2315
|
|
|
2266
2316
|
// src/components/Inputs/SearchInput.tsx
|
|
2267
|
-
var
|
|
2317
|
+
var React29 = __toESM(require("react"), 1);
|
|
2268
2318
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2269
2319
|
var import_icons9 = require("@bubo-squared/icons");
|
|
2270
|
-
var
|
|
2320
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2271
2321
|
var searchTextVariants = (0, import_class_variance_authority17.cva)("truncate", {
|
|
2272
2322
|
variants: {
|
|
2273
2323
|
size: {
|
|
2274
|
-
sm: "paragraph-
|
|
2275
|
-
md: "paragraph-
|
|
2324
|
+
sm: "paragraph-md",
|
|
2325
|
+
md: "paragraph-lg",
|
|
2276
2326
|
lg: "subtitle",
|
|
2277
2327
|
xl: "h6-title"
|
|
2278
2328
|
}
|
|
@@ -2308,13 +2358,13 @@ var SearchInput = (props) => {
|
|
|
2308
2358
|
trailingIcon,
|
|
2309
2359
|
...inputProps
|
|
2310
2360
|
} = props;
|
|
2311
|
-
const inputRef =
|
|
2361
|
+
const inputRef = React29.useRef(null);
|
|
2312
2362
|
const handleContainerClick = () => {
|
|
2313
2363
|
if (disabled) return;
|
|
2314
2364
|
inputRef.current?.focus();
|
|
2315
2365
|
};
|
|
2316
2366
|
const showTrailingIcon = !!trailingIcon;
|
|
2317
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex flex-col gap-2 items-start", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "relative w-full", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2318
2368
|
InputShell,
|
|
2319
2369
|
{
|
|
2320
2370
|
size,
|
|
@@ -2323,8 +2373,8 @@ var SearchInput = (props) => {
|
|
|
2323
2373
|
className,
|
|
2324
2374
|
onClick: handleContainerClick,
|
|
2325
2375
|
children: [
|
|
2326
|
-
showLeadingIcon && /* @__PURE__ */ (0,
|
|
2327
|
-
/* @__PURE__ */ (0,
|
|
2376
|
+
showLeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: cn(iconWrapperVariants2({ size, disabled: !!disabled })), children: leadingIcon ?? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_icons9.SearchIcon, {}) }),
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2328
2378
|
Input,
|
|
2329
2379
|
{
|
|
2330
2380
|
ref: inputRef,
|
|
@@ -2338,7 +2388,7 @@ var SearchInput = (props) => {
|
|
|
2338
2388
|
...inputProps
|
|
2339
2389
|
}
|
|
2340
2390
|
),
|
|
2341
|
-
showTrailingIcon && /* @__PURE__ */ (0,
|
|
2391
|
+
showTrailingIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: cn("cursor-pointer", iconWrapperVariants2({ size, disabled: !!disabled })), children: trailingIcon })
|
|
2342
2392
|
]
|
|
2343
2393
|
}
|
|
2344
2394
|
) }) });
|
|
@@ -2346,8 +2396,8 @@ var SearchInput = (props) => {
|
|
|
2346
2396
|
SearchInput.displayName = "SearchInput";
|
|
2347
2397
|
|
|
2348
2398
|
// src/components/Inputs/Slider.tsx
|
|
2349
|
-
var
|
|
2350
|
-
var
|
|
2399
|
+
var React30 = __toESM(require("react"), 1);
|
|
2400
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2351
2401
|
var wrapperBase2 = "flex flex-col gap-2 items-start";
|
|
2352
2402
|
var isRangeProps = (props) => {
|
|
2353
2403
|
return Array.isArray(props.value) || Array.isArray(props.defaultValue);
|
|
@@ -2373,7 +2423,7 @@ var Slider = (props) => {
|
|
|
2373
2423
|
const isRange = isRangeProps(props);
|
|
2374
2424
|
const isControlled = value !== void 0;
|
|
2375
2425
|
const expectedLength = isRange ? 2 : 1;
|
|
2376
|
-
const normalizeArray =
|
|
2426
|
+
const normalizeArray = React30.useCallback(
|
|
2377
2427
|
(arr, fallback) => {
|
|
2378
2428
|
if (!arr || arr.length === 0) return fallback;
|
|
2379
2429
|
if (arr.length === expectedLength) return arr;
|
|
@@ -2385,16 +2435,16 @@ var Slider = (props) => {
|
|
|
2385
2435
|
},
|
|
2386
2436
|
[expectedLength, max]
|
|
2387
2437
|
);
|
|
2388
|
-
const defaultInternal =
|
|
2438
|
+
const defaultInternal = React30.useMemo(() => {
|
|
2389
2439
|
const defaultValueArray = toArray(defaultValue);
|
|
2390
2440
|
if (defaultValueArray) return normalizeArray(defaultValueArray, []);
|
|
2391
2441
|
if (isRange) return [min, Math.min(min + (max - min) / 4, max)];
|
|
2392
2442
|
return [min + (max - min) / 3];
|
|
2393
2443
|
}, [defaultValue, min, max, isRange, normalizeArray]);
|
|
2394
|
-
const [internalValue, setInternalValue] =
|
|
2444
|
+
const [internalValue, setInternalValue] = React30.useState(
|
|
2395
2445
|
() => normalizeArray(isControlled ? toArray(value) : defaultInternal, defaultInternal)
|
|
2396
2446
|
);
|
|
2397
|
-
|
|
2447
|
+
React30.useEffect(() => {
|
|
2398
2448
|
if (isControlled) {
|
|
2399
2449
|
setInternalValue(
|
|
2400
2450
|
(current2) => normalizeArray(toArray(value), current2.length ? current2 : defaultInternal)
|
|
@@ -2402,15 +2452,15 @@ var Slider = (props) => {
|
|
|
2402
2452
|
}
|
|
2403
2453
|
}, [isControlled, value, normalizeArray, defaultInternal]);
|
|
2404
2454
|
const current = internalValue;
|
|
2405
|
-
const trackRef =
|
|
2406
|
-
const [draggingThumbIndex, setDraggingThumbIndex] =
|
|
2407
|
-
const [hoveredThumbIndex, setHoveredThumbIndex] =
|
|
2455
|
+
const trackRef = React30.useRef(null);
|
|
2456
|
+
const [draggingThumbIndex, setDraggingThumbIndex] = React30.useState(null);
|
|
2457
|
+
const [hoveredThumbIndex, setHoveredThumbIndex] = React30.useState(null);
|
|
2408
2458
|
const clamp = (val) => {
|
|
2409
2459
|
if (val < min) return min;
|
|
2410
2460
|
if (val > max) return max;
|
|
2411
2461
|
return val;
|
|
2412
2462
|
};
|
|
2413
|
-
|
|
2463
|
+
React30.useEffect(() => {
|
|
2414
2464
|
if (!isControlled) {
|
|
2415
2465
|
setInternalValue((prev) => {
|
|
2416
2466
|
const clamped = prev.map((v) => clamp(v));
|
|
@@ -2603,7 +2653,7 @@ var Slider = (props) => {
|
|
|
2603
2653
|
const trackHeight = 32;
|
|
2604
2654
|
const thumbWidth = 18;
|
|
2605
2655
|
const thumbRadius = thumbWidth / 2;
|
|
2606
|
-
const renderTooltipBubble = (key, percent, labelText, isVisible) => /* @__PURE__ */ (0,
|
|
2656
|
+
const renderTooltipBubble = (key, percent, labelText, isVisible) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2607
2657
|
"div",
|
|
2608
2658
|
{
|
|
2609
2659
|
className: cn(
|
|
@@ -2618,22 +2668,22 @@ var Slider = (props) => {
|
|
|
2618
2668
|
marginBottom: isTooltipAbove ? 8 : void 0,
|
|
2619
2669
|
marginTop: isTooltipAbove ? void 0 : 8
|
|
2620
2670
|
},
|
|
2621
|
-
children: /* @__PURE__ */ (0,
|
|
2671
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2622
2672
|
"div",
|
|
2623
2673
|
{
|
|
2624
2674
|
className: cn("relative rounded-4 shadow-card-md px-(--space-8) py-(--space-4) bg-(--background-tooltip)"),
|
|
2625
2675
|
children: [
|
|
2626
|
-
/* @__PURE__ */ (0,
|
|
2676
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2627
2677
|
"p",
|
|
2628
2678
|
{
|
|
2629
2679
|
className: cn(
|
|
2630
|
-
"paragraph-
|
|
2680
|
+
"paragraph-sm",
|
|
2631
2681
|
disabled ? "text-secondary" : "text-primary"
|
|
2632
2682
|
),
|
|
2633
2683
|
children: labelText
|
|
2634
2684
|
}
|
|
2635
2685
|
),
|
|
2636
|
-
/* @__PURE__ */ (0,
|
|
2686
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2637
2687
|
"div",
|
|
2638
2688
|
{
|
|
2639
2689
|
className: cn(
|
|
@@ -2651,7 +2701,7 @@ var Slider = (props) => {
|
|
|
2651
2701
|
const renderHandle = (index, percent, ariaValueText) => {
|
|
2652
2702
|
const val = index === 0 ? primary : secondary;
|
|
2653
2703
|
const isDragging = draggingThumbIndex === index;
|
|
2654
|
-
return /* @__PURE__ */ (0,
|
|
2704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2655
2705
|
"button",
|
|
2656
2706
|
{
|
|
2657
2707
|
type: "button",
|
|
@@ -2691,13 +2741,13 @@ var Slider = (props) => {
|
|
|
2691
2741
|
index
|
|
2692
2742
|
);
|
|
2693
2743
|
};
|
|
2694
|
-
return /* @__PURE__ */ (0,
|
|
2744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2695
2745
|
"div",
|
|
2696
2746
|
{
|
|
2697
2747
|
className: wrapperBase2,
|
|
2698
2748
|
style: { marginInline: `${thumbRadius}px` },
|
|
2699
|
-
children: /* @__PURE__ */ (0,
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("w-full flex flex-col gap-1", className), children: [
|
|
2750
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative w-full", children: [
|
|
2701
2751
|
showTooltip && primary !== void 0 && renderTooltipBubble(
|
|
2702
2752
|
"primary",
|
|
2703
2753
|
primaryPercent,
|
|
@@ -2710,7 +2760,7 @@ var Slider = (props) => {
|
|
|
2710
2760
|
formatDisplayValue(secondary),
|
|
2711
2761
|
hoveredThumbIndex === 1 || draggingThumbIndex === 1
|
|
2712
2762
|
),
|
|
2713
|
-
/* @__PURE__ */ (0,
|
|
2763
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2714
2764
|
"div",
|
|
2715
2765
|
{
|
|
2716
2766
|
className: cn(
|
|
@@ -2721,7 +2771,7 @@ var Slider = (props) => {
|
|
|
2721
2771
|
ref: trackRef,
|
|
2722
2772
|
onPointerDown: handleTrackPointerDown,
|
|
2723
2773
|
children: [
|
|
2724
|
-
/* @__PURE__ */ (0,
|
|
2774
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2725
2775
|
"div",
|
|
2726
2776
|
{
|
|
2727
2777
|
className: cn(
|
|
@@ -2740,11 +2790,11 @@ var Slider = (props) => {
|
|
|
2740
2790
|
}
|
|
2741
2791
|
)
|
|
2742
2792
|
] }),
|
|
2743
|
-
showNumeric && /* @__PURE__ */ (0,
|
|
2793
|
+
showNumeric && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2744
2794
|
"p",
|
|
2745
2795
|
{
|
|
2746
2796
|
className: cn(
|
|
2747
|
-
"paragraph-
|
|
2797
|
+
"paragraph-sm text-primary",
|
|
2748
2798
|
disabled && "text-primary-disabled"
|
|
2749
2799
|
),
|
|
2750
2800
|
children: formatNumericLabel()
|
|
@@ -2757,9 +2807,9 @@ var Slider = (props) => {
|
|
|
2757
2807
|
Slider.displayName = "Slider";
|
|
2758
2808
|
|
|
2759
2809
|
// src/components/Inputs/TextArea.tsx
|
|
2760
|
-
var
|
|
2810
|
+
var React31 = __toESM(require("react"), 1);
|
|
2761
2811
|
var import_icons10 = require("@bubo-squared/icons");
|
|
2762
|
-
var
|
|
2812
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2763
2813
|
var wrapperBase3 = "flex flex-col gap-2 items-start w-full";
|
|
2764
2814
|
var TextArea = (props) => {
|
|
2765
2815
|
const {
|
|
@@ -2778,7 +2828,7 @@ var TextArea = (props) => {
|
|
|
2778
2828
|
...textareaProps
|
|
2779
2829
|
} = props;
|
|
2780
2830
|
const isControlled = value !== void 0;
|
|
2781
|
-
const [internalValue, setInternalValue] =
|
|
2831
|
+
const [internalValue, setInternalValue] = React31.useState(
|
|
2782
2832
|
defaultValue ?? ""
|
|
2783
2833
|
);
|
|
2784
2834
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
@@ -2786,10 +2836,10 @@ var TextArea = (props) => {
|
|
|
2786
2836
|
const currentLength = currentValue.length;
|
|
2787
2837
|
const effectiveMaxLength = type === "character-limit" ? maxLength ?? 144 : void 0;
|
|
2788
2838
|
const showCharacterLimit = type === "character-limit" && typeof effectiveMaxLength === "number";
|
|
2789
|
-
const textareaRef =
|
|
2790
|
-
const containerRef =
|
|
2791
|
-
const [height, setHeight] =
|
|
2792
|
-
const [width, setWidth] =
|
|
2839
|
+
const textareaRef = React31.useRef(null);
|
|
2840
|
+
const containerRef = React31.useRef(null);
|
|
2841
|
+
const [height, setHeight] = React31.useState(void 0);
|
|
2842
|
+
const [width, setWidth] = React31.useState(void 0);
|
|
2793
2843
|
const minHeight = 80;
|
|
2794
2844
|
const minWidth = 240;
|
|
2795
2845
|
const handleContainerClick = () => {
|
|
@@ -2802,7 +2852,7 @@ var TextArea = (props) => {
|
|
|
2802
2852
|
}
|
|
2803
2853
|
onChange?.(event);
|
|
2804
2854
|
};
|
|
2805
|
-
const inputId =
|
|
2855
|
+
const inputId = React31.useId();
|
|
2806
2856
|
const labelId = `${inputId}-label`;
|
|
2807
2857
|
const hintId = `${inputId}-hint`;
|
|
2808
2858
|
const statusBorderClass = {
|
|
@@ -2841,20 +2891,20 @@ var TextArea = (props) => {
|
|
|
2841
2891
|
window.addEventListener("pointermove", handlePointerMove);
|
|
2842
2892
|
window.addEventListener("pointerup", handlePointerUp);
|
|
2843
2893
|
};
|
|
2844
|
-
return /* @__PURE__ */ (0,
|
|
2845
|
-
label && /* @__PURE__ */ (0,
|
|
2894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: wrapperBase3, children: [
|
|
2895
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2846
2896
|
"label",
|
|
2847
2897
|
{
|
|
2848
2898
|
htmlFor: inputId,
|
|
2849
2899
|
id: labelId,
|
|
2850
2900
|
className: cn(
|
|
2851
|
-
"paragraph-
|
|
2901
|
+
"paragraph-sm",
|
|
2852
2902
|
disabled ? "text-primary-disabled" : "text-primary"
|
|
2853
2903
|
),
|
|
2854
2904
|
children: label
|
|
2855
2905
|
}
|
|
2856
2906
|
),
|
|
2857
|
-
/* @__PURE__ */ (0,
|
|
2907
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "relative w-full", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2858
2908
|
"div",
|
|
2859
2909
|
{
|
|
2860
2910
|
className: cn(
|
|
@@ -2873,7 +2923,7 @@ var TextArea = (props) => {
|
|
|
2873
2923
|
onClick: handleContainerClick,
|
|
2874
2924
|
"aria-disabled": disabled || void 0,
|
|
2875
2925
|
children: [
|
|
2876
|
-
/* @__PURE__ */ (0,
|
|
2926
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2877
2927
|
"textarea",
|
|
2878
2928
|
{
|
|
2879
2929
|
id: inputId,
|
|
@@ -2887,14 +2937,14 @@ var TextArea = (props) => {
|
|
|
2887
2937
|
rows,
|
|
2888
2938
|
maxLength: effectiveMaxLength,
|
|
2889
2939
|
className: cn(
|
|
2890
|
-
"paragraph-
|
|
2940
|
+
"paragraph-md bg-transparent outline-none w-full h-full resize-none px-2 py-2 pr-8",
|
|
2891
2941
|
disabled ? "text-primary-disabled" : hasValue ? "text-primary" : "text-(--color-secondary)",
|
|
2892
2942
|
showCharacterLimit && "pr-16"
|
|
2893
2943
|
),
|
|
2894
2944
|
...textareaProps
|
|
2895
2945
|
}
|
|
2896
2946
|
),
|
|
2897
|
-
showCharacterLimit && /* @__PURE__ */ (0,
|
|
2947
|
+
showCharacterLimit && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2898
2948
|
"span",
|
|
2899
2949
|
{
|
|
2900
2950
|
className: cn(
|
|
@@ -2908,19 +2958,19 @@ var TextArea = (props) => {
|
|
|
2908
2958
|
]
|
|
2909
2959
|
}
|
|
2910
2960
|
),
|
|
2911
|
-
type === "responsive" && /* @__PURE__ */ (0,
|
|
2961
|
+
type === "responsive" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2912
2962
|
"div",
|
|
2913
2963
|
{
|
|
2914
2964
|
className: "absolute bottom-1 right-1 h-3 w-3 " + (disabled ? "cursor-auto" : "cursor-nwse-resize"),
|
|
2915
2965
|
onPointerDown: disabled ? void 0 : handleResizePointerDown,
|
|
2916
|
-
children: /* @__PURE__ */ (0,
|
|
2966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2917
2967
|
"span",
|
|
2918
2968
|
{
|
|
2919
2969
|
className: cn(
|
|
2920
2970
|
"absolute bottom-0 right-0 flex h-4 w-4 items-center justify-center text-(--icon-primary)",
|
|
2921
2971
|
disabled && "text-(--icon-primary-disabled)"
|
|
2922
2972
|
),
|
|
2923
|
-
children: /* @__PURE__ */ (0,
|
|
2973
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons10.MaximizeIcon, {})
|
|
2924
2974
|
}
|
|
2925
2975
|
)
|
|
2926
2976
|
}
|
|
@@ -2928,7 +2978,7 @@ var TextArea = (props) => {
|
|
|
2928
2978
|
]
|
|
2929
2979
|
}
|
|
2930
2980
|
) }),
|
|
2931
|
-
hint && !hideHint && /* @__PURE__ */ (0,
|
|
2981
|
+
hint && !hideHint && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2932
2982
|
"p",
|
|
2933
2983
|
{
|
|
2934
2984
|
id: hint ? hintId : void 0,
|
|
@@ -2941,14 +2991,14 @@ var TextArea = (props) => {
|
|
|
2941
2991
|
TextArea.displayName = "TextArea";
|
|
2942
2992
|
|
|
2943
2993
|
// src/components/Inputs/TextInput.tsx
|
|
2944
|
-
var
|
|
2994
|
+
var React32 = __toESM(require("react"), 1);
|
|
2945
2995
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2946
|
-
var
|
|
2996
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2947
2997
|
var inputTextVariants2 = (0, import_class_variance_authority18.cva)("truncate", {
|
|
2948
2998
|
variants: {
|
|
2949
2999
|
size: {
|
|
2950
|
-
sm: "paragraph-
|
|
2951
|
-
md: "paragraph-
|
|
3000
|
+
sm: "paragraph-md",
|
|
3001
|
+
md: "paragraph-lg",
|
|
2952
3002
|
lg: "subtitle",
|
|
2953
3003
|
xl: "h6-title"
|
|
2954
3004
|
}
|
|
@@ -2994,11 +3044,11 @@ var TextInput = (props) => {
|
|
|
2994
3044
|
...inputProps
|
|
2995
3045
|
} = props;
|
|
2996
3046
|
const isControlled = value !== void 0;
|
|
2997
|
-
const [internalValue, setInternalValue] =
|
|
3047
|
+
const [internalValue, setInternalValue] = React32.useState(
|
|
2998
3048
|
defaultValue ?? ""
|
|
2999
3049
|
);
|
|
3000
3050
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
3001
|
-
const inputRef =
|
|
3051
|
+
const inputRef = React32.useRef(null);
|
|
3002
3052
|
const handleContainerClick = () => {
|
|
3003
3053
|
if (disabled) return;
|
|
3004
3054
|
inputRef.current?.focus();
|
|
@@ -3011,7 +3061,7 @@ var TextInput = (props) => {
|
|
|
3011
3061
|
};
|
|
3012
3062
|
const showLeadingIcon = !!leadingIcon;
|
|
3013
3063
|
const showTrailingIcon = !!trailingIcon;
|
|
3014
|
-
return /* @__PURE__ */ (0,
|
|
3064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3015
3065
|
Field,
|
|
3016
3066
|
{
|
|
3017
3067
|
label,
|
|
@@ -3019,7 +3069,7 @@ var TextInput = (props) => {
|
|
|
3019
3069
|
hideHint,
|
|
3020
3070
|
status,
|
|
3021
3071
|
disabled,
|
|
3022
|
-
children: /* @__PURE__ */ (0,
|
|
3072
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3023
3073
|
InputShell,
|
|
3024
3074
|
{
|
|
3025
3075
|
size,
|
|
@@ -3028,7 +3078,7 @@ var TextInput = (props) => {
|
|
|
3028
3078
|
className,
|
|
3029
3079
|
onClick: handleContainerClick,
|
|
3030
3080
|
children: [
|
|
3031
|
-
showLeadingIcon && /* @__PURE__ */ (0,
|
|
3081
|
+
showLeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3032
3082
|
"span",
|
|
3033
3083
|
{
|
|
3034
3084
|
className: cn(
|
|
@@ -3037,7 +3087,7 @@ var TextInput = (props) => {
|
|
|
3037
3087
|
children: leadingIcon
|
|
3038
3088
|
}
|
|
3039
3089
|
),
|
|
3040
|
-
/* @__PURE__ */ (0,
|
|
3090
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3041
3091
|
Input,
|
|
3042
3092
|
{
|
|
3043
3093
|
ref: inputRef,
|
|
@@ -3055,7 +3105,7 @@ var TextInput = (props) => {
|
|
|
3055
3105
|
...inputProps
|
|
3056
3106
|
}
|
|
3057
3107
|
),
|
|
3058
|
-
showTrailingIcon && /* @__PURE__ */ (0,
|
|
3108
|
+
showTrailingIcon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3059
3109
|
"span",
|
|
3060
3110
|
{
|
|
3061
3111
|
className: cn(
|
|
@@ -3073,11 +3123,11 @@ var TextInput = (props) => {
|
|
|
3073
3123
|
TextInput.displayName = "TextInput";
|
|
3074
3124
|
|
|
3075
3125
|
// src/components/Inputs/Toggle.tsx
|
|
3076
|
-
var
|
|
3077
|
-
var
|
|
3126
|
+
var React33 = require("react");
|
|
3127
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3078
3128
|
var Toggle = (props) => {
|
|
3079
3129
|
const { label, className, disabled, ...inputProps } = props;
|
|
3080
|
-
return /* @__PURE__ */ (0,
|
|
3130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
3081
3131
|
"label",
|
|
3082
3132
|
{
|
|
3083
3133
|
className: cn(
|
|
@@ -3085,8 +3135,8 @@ var Toggle = (props) => {
|
|
|
3085
3135
|
disabled ? "cursor-default" : "cursor-pointer"
|
|
3086
3136
|
),
|
|
3087
3137
|
children: [
|
|
3088
|
-
/* @__PURE__ */ (0,
|
|
3089
|
-
/* @__PURE__ */ (0,
|
|
3138
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "relative inline-flex items-center", children: [
|
|
3139
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3090
3140
|
"input",
|
|
3091
3141
|
{
|
|
3092
3142
|
type: "checkbox",
|
|
@@ -3095,7 +3145,7 @@ var Toggle = (props) => {
|
|
|
3095
3145
|
...inputProps
|
|
3096
3146
|
}
|
|
3097
3147
|
),
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
3148
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3099
3149
|
"span",
|
|
3100
3150
|
{
|
|
3101
3151
|
className: cn(
|
|
@@ -3135,7 +3185,7 @@ var Toggle = (props) => {
|
|
|
3135
3185
|
"peer-disabled:[&>.knob]:peer-checked:bg-(--background-primary-hover)",
|
|
3136
3186
|
className
|
|
3137
3187
|
),
|
|
3138
|
-
children: /* @__PURE__ */ (0,
|
|
3188
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3139
3189
|
"span",
|
|
3140
3190
|
{
|
|
3141
3191
|
className: cn(
|
|
@@ -3147,11 +3197,11 @@ var Toggle = (props) => {
|
|
|
3147
3197
|
}
|
|
3148
3198
|
)
|
|
3149
3199
|
] }),
|
|
3150
|
-
label && /* @__PURE__ */ (0,
|
|
3200
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3151
3201
|
"span",
|
|
3152
3202
|
{
|
|
3153
3203
|
className: cn(
|
|
3154
|
-
"paragraph-
|
|
3204
|
+
"paragraph-sm text-primary",
|
|
3155
3205
|
disabled && "text-primary-disabled"
|
|
3156
3206
|
),
|
|
3157
3207
|
children: label
|
|
@@ -3164,8 +3214,8 @@ var Toggle = (props) => {
|
|
|
3164
3214
|
Toggle.displayName = "Toggle";
|
|
3165
3215
|
|
|
3166
3216
|
// src/components/Inputs/WebsiteInput.tsx
|
|
3167
|
-
var
|
|
3168
|
-
var
|
|
3217
|
+
var React34 = require("react");
|
|
3218
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3169
3219
|
var WebsiteInput = (props) => {
|
|
3170
3220
|
const {
|
|
3171
3221
|
hierarchy = "leading",
|
|
@@ -3186,7 +3236,7 @@ var WebsiteInput = (props) => {
|
|
|
3186
3236
|
);
|
|
3187
3237
|
const addonTextClass = cn(
|
|
3188
3238
|
"flex mb-0!",
|
|
3189
|
-
size === "xl" ? "paragraph-
|
|
3239
|
+
size === "xl" ? "paragraph-md" : size === "sm" ? "paragraph-md" : "paragraph-sm",
|
|
3190
3240
|
disabled ? "text-primary-disabled" : "text-primary group-hover:text-(--color-primary-hover) group-focus-within:text-(--color-primary-focus)"
|
|
3191
3241
|
);
|
|
3192
3242
|
const baseAddonClass = cn(
|
|
@@ -3202,15 +3252,15 @@ var WebsiteInput = (props) => {
|
|
|
3202
3252
|
size === "xl" ? "[&>svg]:w-6 [&>svg]:h-6" : size === "sm" ? "[&>svg]:w-4 [&>svg]:h-4" : "[&>svg]:w-5 [&>svg]:h-5",
|
|
3203
3253
|
disabled ? "text-(--icon-primary-disabled)" : "text-(--icon-primary) group-hover:text-(--icon-primary-hover) group-focus-within:text-(--icon-primary-focus)"
|
|
3204
3254
|
);
|
|
3205
|
-
const leadingAddon = /* @__PURE__ */ (0,
|
|
3206
|
-
/* @__PURE__ */ (0,
|
|
3207
|
-
icon != null && /* @__PURE__ */ (0,
|
|
3255
|
+
const leadingAddon = /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: baseAddonClass, children: [
|
|
3256
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: addonTextClass, children: protocolLabel }),
|
|
3257
|
+
icon != null && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: iconWrapperClass, children: icon })
|
|
3208
3258
|
] });
|
|
3209
|
-
const trailingAddon = /* @__PURE__ */ (0,
|
|
3210
|
-
icon != null && /* @__PURE__ */ (0,
|
|
3211
|
-
/* @__PURE__ */ (0,
|
|
3259
|
+
const trailingAddon = /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: baseAddonClass, children: [
|
|
3260
|
+
icon != null && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: iconWrapperClass, children: icon }),
|
|
3261
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: addonTextClass, children: protocolLabel })
|
|
3212
3262
|
] });
|
|
3213
|
-
return /* @__PURE__ */ (0,
|
|
3263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3214
3264
|
TextInput,
|
|
3215
3265
|
{
|
|
3216
3266
|
...rest,
|
|
@@ -3225,9 +3275,9 @@ var WebsiteInput = (props) => {
|
|
|
3225
3275
|
WebsiteInput.displayName = "WebsiteInput";
|
|
3226
3276
|
|
|
3227
3277
|
// src/components/Feedback/Popover.tsx
|
|
3228
|
-
var
|
|
3278
|
+
var React35 = __toESM(require("react"), 1);
|
|
3229
3279
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"), 1);
|
|
3230
|
-
var
|
|
3280
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3231
3281
|
var PopoverArrow = PopoverPrimitive2.Arrow;
|
|
3232
3282
|
var Popover2 = (props) => {
|
|
3233
3283
|
const {
|
|
@@ -3244,7 +3294,7 @@ var Popover2 = (props) => {
|
|
|
3244
3294
|
offset = 10,
|
|
3245
3295
|
children
|
|
3246
3296
|
} = props;
|
|
3247
|
-
const [open, setOpen] =
|
|
3297
|
+
const [open, setOpen] = React35.useState(false);
|
|
3248
3298
|
const handleCancel = () => {
|
|
3249
3299
|
onCancel?.();
|
|
3250
3300
|
setOpen(false);
|
|
@@ -3286,9 +3336,9 @@ var Popover2 = (props) => {
|
|
|
3286
3336
|
}
|
|
3287
3337
|
};
|
|
3288
3338
|
const { side, align } = mapPlacementToSideAndAlign(placement);
|
|
3289
|
-
return /* @__PURE__ */ (0,
|
|
3290
|
-
/* @__PURE__ */ (0,
|
|
3291
|
-
/* @__PURE__ */ (0,
|
|
3339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
3340
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverTrigger, { asChild: true, children }),
|
|
3341
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3292
3342
|
PopoverContent,
|
|
3293
3343
|
{
|
|
3294
3344
|
side,
|
|
@@ -3296,16 +3346,16 @@ var Popover2 = (props) => {
|
|
|
3296
3346
|
sideOffset: offset,
|
|
3297
3347
|
className: cn(popoverClasses, className),
|
|
3298
3348
|
children: [
|
|
3299
|
-
showArrow && /* @__PURE__ */ (0,
|
|
3300
|
-
/* @__PURE__ */ (0,
|
|
3301
|
-
/* @__PURE__ */ (0,
|
|
3302
|
-
/* @__PURE__ */ (0,
|
|
3303
|
-
/* @__PURE__ */ (0,
|
|
3304
|
-
/* @__PURE__ */ (0,
|
|
3349
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PopoverArrow, { className: popoverArrowClasses }),
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid gap-4", children: [
|
|
3351
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-2", children: [
|
|
3352
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "caption text-secondary", children: strapline }),
|
|
3353
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h4", { className: "subtitle-medium text-primary", children: title }),
|
|
3354
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "paragraph-sm text-primary", children: description })
|
|
3305
3355
|
] }),
|
|
3306
|
-
/* @__PURE__ */ (0,
|
|
3307
|
-
/* @__PURE__ */ (0,
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
3356
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-start items-center gap-4 flex-wrap", children: [
|
|
3357
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { size: "sm", variant: "secondary", onClick: handleCancel, children: cancelText || "Cancel" }),
|
|
3358
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { size: "sm", variant: "primary", onClick: handleOk, children: okText || "Ok" })
|
|
3309
3359
|
] })
|
|
3310
3360
|
] })
|
|
3311
3361
|
]
|
|
@@ -3316,11 +3366,11 @@ var Popover2 = (props) => {
|
|
|
3316
3366
|
Popover2.displayName = "Popover";
|
|
3317
3367
|
|
|
3318
3368
|
// src/components/Navigation/Breadcrumb.tsx
|
|
3319
|
-
var
|
|
3369
|
+
var React36 = __toESM(require("react"), 1);
|
|
3320
3370
|
var import_react_slot8 = require("@radix-ui/react-slot");
|
|
3321
3371
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
3322
3372
|
var import_icons11 = require("@bubo-squared/icons");
|
|
3323
|
-
var
|
|
3373
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3324
3374
|
var breadcrumbBase = "group inline-flex items-center gap-[var(--space-8)] pl-0 pr-[var(--space-8)] py-[6px] rounded-full transition-colors select-none disabled:cursor-default disabled:pointer-events-none";
|
|
3325
3375
|
var breadcrumbIconVariants = (0, import_class_variance_authority19.cva)(
|
|
3326
3376
|
"flex shrink-0 items-center justify-center w-5 h-5 *:w-5 *:h-5",
|
|
@@ -3337,7 +3387,7 @@ var breadcrumbIconVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3337
3387
|
}
|
|
3338
3388
|
);
|
|
3339
3389
|
var breadcrumbTextVariants = (0, import_class_variance_authority19.cva)(
|
|
3340
|
-
"font-normal text-[length:var(--font-size-paragraph-
|
|
3390
|
+
"font-normal text-[length:var(--font-size-paragraph-lg-18)] leading-[var(--font-line-height-28)] tracking-[var(--font-letter-spacing-02)] whitespace-nowrap",
|
|
3341
3391
|
{
|
|
3342
3392
|
variants: {
|
|
3343
3393
|
variant: {
|
|
@@ -3350,7 +3400,7 @@ var breadcrumbTextVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3350
3400
|
}
|
|
3351
3401
|
}
|
|
3352
3402
|
);
|
|
3353
|
-
var Breadcrumb =
|
|
3403
|
+
var Breadcrumb = React36.forwardRef((props, ref) => {
|
|
3354
3404
|
const {
|
|
3355
3405
|
asChild = false,
|
|
3356
3406
|
variant = "flat",
|
|
@@ -3364,7 +3414,7 @@ var Breadcrumb = React35.forwardRef((props, ref) => {
|
|
|
3364
3414
|
} = props;
|
|
3365
3415
|
const Comp = asChild ? import_react_slot8.Slot : "button";
|
|
3366
3416
|
const content = showText ? children ?? label : null;
|
|
3367
|
-
return /* @__PURE__ */ (0,
|
|
3417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3368
3418
|
Comp,
|
|
3369
3419
|
{
|
|
3370
3420
|
type: asChild ? void 0 : "button",
|
|
@@ -3372,8 +3422,8 @@ var Breadcrumb = React35.forwardRef((props, ref) => {
|
|
|
3372
3422
|
ref,
|
|
3373
3423
|
...rest,
|
|
3374
3424
|
children: [
|
|
3375
|
-
showIcon && /* @__PURE__ */ (0,
|
|
3376
|
-
content && /* @__PURE__ */ (0,
|
|
3425
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: cn(breadcrumbIconVariants({ variant })), children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_icons11.ChevronRightIcon, {}) }),
|
|
3426
|
+
content && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: cn(breadcrumbTextVariants({ variant })), children: content })
|
|
3377
3427
|
]
|
|
3378
3428
|
}
|
|
3379
3429
|
);
|
|
@@ -3382,13 +3432,13 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
3382
3432
|
|
|
3383
3433
|
// src/components/Logo/LogoIcon.tsx
|
|
3384
3434
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
3385
|
-
var
|
|
3386
|
-
var LogoIconSvg = (props) => /* @__PURE__ */ (0,
|
|
3387
|
-
/* @__PURE__ */ (0,
|
|
3388
|
-
/* @__PURE__ */ (0,
|
|
3389
|
-
/* @__PURE__ */ (0,
|
|
3390
|
-
/* @__PURE__ */ (0,
|
|
3391
|
-
/* @__PURE__ */ (0,
|
|
3435
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3436
|
+
var LogoIconSvg = (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3437
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M83.7156 3.88535C78.5352 -1.29512 70.136 -1.29512 64.9555 3.88535L43.9999 24.8409L43.9995 24.8405L62.3536 6.48637C52.2379 16.5949 35.8584 16.6179 25.7142 6.55523L23.4434 4.28438C18.2629 -0.896082 9.86373 -0.89608 4.68327 4.28438C-0.497191 9.46484 -0.49719 17.864 4.68327 23.0445L6.88526 25.2465C17.0191 35.3875 17.0168 51.8235 6.87859 61.9618L25.2395 43.6008L25.2398 43.601L3.88534 64.9555C-1.29512 70.136 -1.29511 78.5351 3.88535 83.7156C9.06581 88.8961 17.465 88.8961 22.6455 83.7156L25.6458 80.7151L25.6864 80.6747C35.7981 70.6137 52.1313 70.597 62.2636 80.6248L65.7534 84.1146C70.9339 89.2951 79.3331 89.2951 84.5135 84.1146C89.694 78.9342 89.694 70.535 84.5135 65.3545L62.76 43.601L62.7602 43.6009L81.1144 61.9552C70.9806 51.8142 70.9829 35.3782 81.1211 25.24L83.7156 22.6455C88.8961 17.465 88.8961 9.06581 83.7156 3.88535Z", fill: "#1685FF" }),
|
|
3438
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M44.0667 50.4863C44.1213 50.4317 44.21 50.4317 44.2646 50.4863L48.6465 54.8682C48.6942 54.9158 48.7011 54.9907 48.663 55.0463L44.2812 61.4453C44.2256 61.5265 44.1057 61.5265 44.0501 61.4453L39.6683 55.0463C39.6302 54.9907 39.6371 54.9158 39.6848 54.8682L44.0667 50.4863Z", fill: "white" }),
|
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44.107 45.3938C44.0536 45.289 43.9013 45.289 43.8479 45.3938C41.8622 49.293 37.8104 51.9638 33.1347 51.9638C26.4991 51.9638 21.1199 46.5846 21.1199 39.9489C21.1199 33.3133 26.4991 27.9341 33.1347 27.9341C37.8104 27.9341 41.8622 30.6049 43.8479 34.5041C43.9013 34.6089 44.0536 34.6089 44.107 34.5041C46.0926 30.6049 50.1445 27.9341 54.8201 27.9341C61.4558 27.9341 66.835 33.3133 66.835 39.9489C66.835 46.5846 61.4558 51.9638 54.8201 51.9638C50.1445 51.9638 46.0926 49.293 44.107 45.3938Z", fill: "white" }),
|
|
3440
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M60.1113 40.0006C60.1113 43.052 57.6377 45.5256 54.5863 45.5256C51.535 45.5256 49.0614 43.052 49.0614 40.0006C49.0614 36.9493 51.535 34.4757 54.5863 34.4757C57.6377 34.4757 60.1113 36.9493 60.1113 40.0006Z", fill: "#1685FF" }),
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M38.8954 40.0006C38.8954 43.052 36.4218 45.5256 33.3705 45.5256C30.3192 45.5256 27.8456 43.052 27.8456 40.0006C27.8456 36.9493 30.3192 34.4757 33.3705 34.4757C36.4218 34.4757 38.8954 36.9493 38.8954 40.0006Z", fill: "#1685FF" })
|
|
3392
3442
|
] });
|
|
3393
3443
|
var logoIconVariants = (0, import_class_variance_authority20.cva)(
|
|
3394
3444
|
"relative bg-linear-to-t from-gray-800 to-gray-950 overflow-hidden flex justify-center items-center",
|
|
@@ -3415,26 +3465,26 @@ var logoIconSizeClass = {
|
|
|
3415
3465
|
xl: "size-96"
|
|
3416
3466
|
};
|
|
3417
3467
|
var LogoIcon = ({ className, size = "md" }) => {
|
|
3418
|
-
return /* @__PURE__ */ (0,
|
|
3468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: cn(logoIconVariants({ size }), className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoIconSvg, { className: logoIconSizeClass[size] }) });
|
|
3419
3469
|
};
|
|
3420
3470
|
|
|
3421
3471
|
// src/components/Logo/Logo.tsx
|
|
3422
3472
|
var import_class_variance_authority21 = require("class-variance-authority");
|
|
3423
|
-
var
|
|
3424
|
-
var LogoIconSvg2 = (props) => /* @__PURE__ */ (0,
|
|
3425
|
-
/* @__PURE__ */ (0,
|
|
3426
|
-
/* @__PURE__ */ (0,
|
|
3427
|
-
/* @__PURE__ */ (0,
|
|
3428
|
-
/* @__PURE__ */ (0,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3473
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3474
|
+
var LogoIconSvg2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3475
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M83.7156 3.88535C78.5352 -1.29512 70.136 -1.29512 64.9555 3.88535L43.9999 24.8409L43.9995 24.8405L62.3536 6.48637C52.2379 16.5949 35.8584 16.6179 25.7142 6.55523L23.4434 4.28438C18.2629 -0.896082 9.86373 -0.89608 4.68327 4.28438C-0.497191 9.46484 -0.49719 17.864 4.68327 23.0445L6.88526 25.2465C17.0191 35.3875 17.0168 51.8235 6.87859 61.9618L25.2395 43.6008L25.2398 43.601L3.88534 64.9555C-1.29512 70.136 -1.29511 78.5351 3.88535 83.7156C9.06581 88.8961 17.465 88.8961 22.6455 83.7156L25.6458 80.7151L25.6864 80.6747C35.7981 70.6137 52.1313 70.597 62.2636 80.6248L65.7534 84.1146C70.9339 89.2951 79.3331 89.2951 84.5135 84.1146C89.694 78.9342 89.694 70.535 84.5135 65.3545L62.76 43.601L62.7602 43.6009L81.1144 61.9552C70.9806 51.8142 70.9829 35.3782 81.1211 25.24L83.7156 22.6455C88.8961 17.465 88.8961 9.06581 83.7156 3.88535Z", fill: "#1685FF" }),
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M44.0667 50.4863C44.1213 50.4317 44.21 50.4317 44.2646 50.4863L48.6465 54.8682C48.6942 54.9158 48.7011 54.9907 48.663 55.0463L44.2812 61.4453C44.2256 61.5265 44.1057 61.5265 44.0501 61.4453L39.6683 55.0463C39.6302 54.9907 39.6371 54.9158 39.6848 54.8682L44.0667 50.4863Z", fill: "white" }),
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44.107 45.3938C44.0536 45.289 43.9013 45.289 43.8479 45.3938C41.8622 49.293 37.8104 51.9638 33.1347 51.9638C26.4991 51.9638 21.1199 46.5846 21.1199 39.9489C21.1199 33.3133 26.4991 27.9341 33.1347 27.9341C37.8104 27.9341 41.8622 30.6049 43.8479 34.5041C43.9013 34.6089 44.0536 34.6089 44.107 34.5041C46.0926 30.6049 50.1445 27.9341 54.8201 27.9341C61.4558 27.9341 66.835 33.3133 66.835 39.9489C66.835 46.5846 61.4558 51.9638 54.8201 51.9638C50.1445 51.9638 46.0926 49.293 44.107 45.3938Z", fill: "white" }),
|
|
3478
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M60.1113 40.0006C60.1113 43.052 57.6377 45.5256 54.5863 45.5256C51.535 45.5256 49.0614 43.052 49.0614 40.0006C49.0614 36.9493 51.535 34.4757 54.5863 34.4757C57.6377 34.4757 60.1113 36.9493 60.1113 40.0006Z", fill: "#1685FF" }),
|
|
3479
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M38.8954 40.0006C38.8954 43.052 36.4218 45.5256 33.3705 45.5256C30.3192 45.5256 27.8456 43.052 27.8456 40.0006C27.8456 36.9493 30.3192 34.4757 33.3705 34.4757C36.4218 34.4757 38.8954 36.9493 38.8954 40.0006Z", fill: "#1685FF" })
|
|
3430
3480
|
] });
|
|
3431
|
-
var LogoTextSvg = (props) => /* @__PURE__ */ (0,
|
|
3432
|
-
/* @__PURE__ */ (0,
|
|
3433
|
-
/* @__PURE__ */ (0,
|
|
3434
|
-
/* @__PURE__ */ (0,
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3436
|
-
/* @__PURE__ */ (0,
|
|
3437
|
-
/* @__PURE__ */ (0,
|
|
3481
|
+
var LogoTextSvg = (props) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("svg", { width: "111", height: "32", viewBox: "0 0 111 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3482
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M72.7324 20.9658C72.7324 14.4559 77.4246 9.9751 83.8922 9.9751C90.3598 9.9751 95.052 14.4559 95.052 20.9658C95.052 27.4757 90.3598 31.9565 83.8922 31.9565C77.4246 31.9565 72.7324 27.4757 72.7324 20.9658ZM77.8896 20.9658C77.8896 24.7703 80.3414 27.3489 83.8922 27.3489C87.4431 27.3489 89.8948 24.7703 89.8948 20.9658C89.8948 17.1613 87.4431 14.5827 83.8922 14.5827C80.3414 14.5827 77.8896 17.1613 77.8896 20.9658Z", fill: "currentColor" }),
|
|
3483
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M53.4056 31.4503H48.6289V0H53.7861V13.6116C55.1388 11.2866 57.9287 9.89163 61.0991 9.89163C67.0595 9.89163 70.6949 14.5415 70.6949 21.136C70.6949 27.5613 66.7636 31.9998 60.761 31.9998C57.6328 31.9998 54.9697 30.6049 53.7438 28.1954L53.4056 31.4503ZM53.8284 20.9246C53.8284 24.6868 56.1533 27.2654 59.7042 27.2654C63.3395 27.2654 65.4954 24.6445 65.4954 20.9246C65.4954 17.2047 63.3395 14.5415 59.7042 14.5415C56.1533 14.5415 53.8284 17.1624 53.8284 20.9246Z", fill: "currentColor" }),
|
|
3484
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M38.9929 10.5681H44.15V31.4504H39.3733L38.9929 28.6605C37.7247 30.6473 35.0193 32 32.2293 32C27.4103 32 24.5781 28.745 24.5781 23.6301V10.5681H29.7353V21.8124C29.7353 25.786 31.2994 27.3923 34.1739 27.3923C37.4288 27.3923 38.9929 25.4901 38.9929 21.5165V10.5681Z", fill: "currentColor" }),
|
|
3485
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M4.77673 31.4503H0V0H5.15718V13.6116C6.50988 11.2866 9.29983 9.89163 12.4702 9.89163C18.4306 9.89163 22.066 14.5415 22.066 21.136C22.066 27.5613 18.1347 31.9998 12.132 31.9998C9.00392 31.9998 6.34079 30.6049 5.1149 28.1954L4.77673 31.4503ZM5.19945 20.9246C5.19945 24.6868 7.52441 27.2654 11.0752 27.2654C14.7106 27.2654 16.8665 24.6445 16.8665 20.9246C16.8665 17.2047 14.7106 14.5415 11.0752 14.5415C7.52441 14.5415 5.19945 17.1624 5.19945 20.9246Z", fill: "currentColor" }),
|
|
3486
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M103.555 0.5C107.084 0.5 109.944 3.36029 109.944 6.88867C109.944 10.4172 107.084 13.2773 103.555 13.2773C100.027 13.2772 97.1667 10.4171 97.1667 6.88867C97.1669 3.36036 100.027 0.500118 103.555 0.5Z", stroke: "currentColor" }),
|
|
3487
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M105.778 9.98355L101.687 10.0001V9.00978L103.578 7.33457C104.19 6.79817 104.445 6.41856 104.445 5.91517C104.445 5.29625 104.159 4.96616 103.647 4.96616C103.113 4.96616 102.803 5.35402 102.803 6.03896H101.556C101.556 4.66908 102.377 3.77783 103.64 3.77783C104.949 3.77783 105.731 4.52879 105.731 5.83265C105.731 6.66613 105.259 7.34282 104.546 7.97825L103.686 8.74571H105.778V9.98355Z", fill: "currentColor" })
|
|
3438
3488
|
] });
|
|
3439
3489
|
var logoWrapperVariants = (0, import_class_variance_authority21.cva)("inline-flex", {
|
|
3440
3490
|
variants: {
|
|
@@ -3474,9 +3524,9 @@ var logoTextSizeVariants = (0, import_class_variance_authority21.cva)("", {
|
|
|
3474
3524
|
});
|
|
3475
3525
|
var Logo = ({ className, textColor, variant = "inline" }) => {
|
|
3476
3526
|
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-primary";
|
|
3477
|
-
return /* @__PURE__ */ (0,
|
|
3478
|
-
/* @__PURE__ */ (0,
|
|
3479
|
-
/* @__PURE__ */ (0,
|
|
3527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
|
|
3529
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })
|
|
3480
3530
|
] });
|
|
3481
3531
|
};
|
|
3482
3532
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -3511,6 +3561,7 @@ var Logo = ({ className, textColor, variant = "inline" }) => {
|
|
|
3511
3561
|
TextArea,
|
|
3512
3562
|
TextInput,
|
|
3513
3563
|
Toggle,
|
|
3564
|
+
Typography,
|
|
3514
3565
|
WebsiteInput,
|
|
3515
3566
|
cn
|
|
3516
3567
|
});
|