@bubo-squared/ui-framework 0.2.0 → 0.2.1
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.js
CHANGED
|
@@ -408,9 +408,9 @@ var avatarInitialsVariants = cva6(
|
|
|
408
408
|
size: {
|
|
409
409
|
"20": "footnote-xs-medium",
|
|
410
410
|
"24": "footnote-medium",
|
|
411
|
-
"32": "paragraph-
|
|
412
|
-
"40": "paragraph-
|
|
413
|
-
"48": "paragraph-
|
|
411
|
+
"32": "paragraph-sm font-medium",
|
|
412
|
+
"40": "paragraph-md font-medium",
|
|
413
|
+
"48": "paragraph-lg font-medium",
|
|
414
414
|
"56": "subtitle font-medium",
|
|
415
415
|
"64": "h6-title font-medium"
|
|
416
416
|
}
|
|
@@ -477,18 +477,67 @@ var Avatar = React6.forwardRef(
|
|
|
477
477
|
);
|
|
478
478
|
Avatar.displayName = "Avatar";
|
|
479
479
|
|
|
480
|
+
// src/components/Content/Typography.tsx
|
|
481
|
+
import "react";
|
|
482
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
483
|
+
var mbCapableBaseClasses = /* @__PURE__ */ new Set([
|
|
484
|
+
"h1-intro",
|
|
485
|
+
"h2-intro",
|
|
486
|
+
"h3-intro",
|
|
487
|
+
"h1-title",
|
|
488
|
+
"h2-title",
|
|
489
|
+
"h3-title",
|
|
490
|
+
"h4-title",
|
|
491
|
+
"h5-title",
|
|
492
|
+
"h6-title",
|
|
493
|
+
"subtitle",
|
|
494
|
+
"paragraph-lg",
|
|
495
|
+
"paragraph-md",
|
|
496
|
+
"paragraph-sm",
|
|
497
|
+
"caption",
|
|
498
|
+
"footnote",
|
|
499
|
+
"footnote-xs"
|
|
500
|
+
]);
|
|
501
|
+
var getMbClassName = (variant) => {
|
|
502
|
+
if (!mbCapableBaseClasses.has(variant)) return null;
|
|
503
|
+
return `${variant}-mb`;
|
|
504
|
+
};
|
|
505
|
+
var Typography = (props) => {
|
|
506
|
+
const {
|
|
507
|
+
as = "span",
|
|
508
|
+
variant,
|
|
509
|
+
weight = "regular",
|
|
510
|
+
useMargin = false,
|
|
511
|
+
className,
|
|
512
|
+
children,
|
|
513
|
+
...rest
|
|
514
|
+
} = props;
|
|
515
|
+
const Comp = as ?? "span";
|
|
516
|
+
const mbClassName = useMargin ? getMbClassName(variant) : null;
|
|
517
|
+
const weightClassName = weight === "regular" ? null : `${variant}-${weight}`;
|
|
518
|
+
return /* @__PURE__ */ jsx9(
|
|
519
|
+
Comp,
|
|
520
|
+
{
|
|
521
|
+
className: cn(variant, weightClassName, mbClassName, className),
|
|
522
|
+
...rest,
|
|
523
|
+
children
|
|
524
|
+
}
|
|
525
|
+
);
|
|
526
|
+
};
|
|
527
|
+
Typography.displayName = "Typography";
|
|
528
|
+
|
|
480
529
|
// src/components/Content/Badge.tsx
|
|
481
|
-
import * as
|
|
530
|
+
import * as React8 from "react";
|
|
482
531
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
483
532
|
import { cva as cva7 } from "class-variance-authority";
|
|
484
|
-
import { Fragment, jsx as
|
|
533
|
+
import { Fragment, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
485
534
|
var badgeVariants = cva7(
|
|
486
535
|
"inline-flex items-center justify-center rounded-4 leading-none whitespace-nowrap gap-1 px-1 py-0",
|
|
487
536
|
{
|
|
488
537
|
variants: {
|
|
489
538
|
size: {
|
|
490
|
-
sm: "px-1 paragraph-
|
|
491
|
-
md: "px-1 paragraph-
|
|
539
|
+
sm: "px-1 paragraph-sm",
|
|
540
|
+
md: "px-1 paragraph-md",
|
|
492
541
|
lg: "px-1.5 subtitle",
|
|
493
542
|
xl: "px-2 h6-title"
|
|
494
543
|
},
|
|
@@ -511,7 +560,7 @@ var badgeVariants = cva7(
|
|
|
511
560
|
}
|
|
512
561
|
}
|
|
513
562
|
);
|
|
514
|
-
var Badge =
|
|
563
|
+
var Badge = React8.forwardRef(
|
|
515
564
|
(props, ref) => {
|
|
516
565
|
const {
|
|
517
566
|
asChild = false,
|
|
@@ -523,17 +572,17 @@ var Badge = React7.forwardRef(
|
|
|
523
572
|
...rest
|
|
524
573
|
} = props;
|
|
525
574
|
const Comp = asChild ? Slot5 : "div";
|
|
526
|
-
return /* @__PURE__ */
|
|
575
|
+
return /* @__PURE__ */ jsx10(
|
|
527
576
|
Comp,
|
|
528
577
|
{
|
|
529
578
|
ref,
|
|
530
579
|
className: cn(badgeVariants({ size, variant }), className),
|
|
531
580
|
...rest,
|
|
532
581
|
children: value ? /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
] }) : /* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ jsx10("span", { className: "font-normal", children: label }),
|
|
583
|
+
/* @__PURE__ */ jsx10("span", { className: "font-normal", children: ":" }),
|
|
584
|
+
/* @__PURE__ */ jsx10("span", { className: "font-medium", children: value })
|
|
585
|
+
] }) : /* @__PURE__ */ jsx10("span", { className: "font-normal", children: label })
|
|
537
586
|
}
|
|
538
587
|
);
|
|
539
588
|
}
|
|
@@ -541,16 +590,16 @@ var Badge = React7.forwardRef(
|
|
|
541
590
|
Badge.displayName = "Badge";
|
|
542
591
|
|
|
543
592
|
// src/components/Content/BadgeDigit.tsx
|
|
544
|
-
import * as
|
|
593
|
+
import * as React9 from "react";
|
|
545
594
|
import { cva as cva8 } from "class-variance-authority";
|
|
546
|
-
import { jsx as
|
|
595
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
547
596
|
var badgeDigitVariants = cva8(
|
|
548
597
|
"inline-flex items-center justify-center leading-none whitespace-nowrap text-(--color-b-white)",
|
|
549
598
|
{
|
|
550
599
|
variants: {
|
|
551
600
|
size: {
|
|
552
601
|
sm: "px-[6px] rounded-2 caption-medium",
|
|
553
|
-
md: "px-2 py-[2px] rounded-4 paragraph-
|
|
602
|
+
md: "px-2 py-[2px] rounded-4 paragraph-sm-medium"
|
|
554
603
|
},
|
|
555
604
|
variant: {
|
|
556
605
|
primary: "bg-(--background-brand)",
|
|
@@ -568,7 +617,7 @@ var badgeDigitVariants = cva8(
|
|
|
568
617
|
}
|
|
569
618
|
}
|
|
570
619
|
);
|
|
571
|
-
var BadgeDigit =
|
|
620
|
+
var BadgeDigit = React9.forwardRef(
|
|
572
621
|
(props, ref) => {
|
|
573
622
|
const {
|
|
574
623
|
value,
|
|
@@ -577,7 +626,7 @@ var BadgeDigit = React8.forwardRef(
|
|
|
577
626
|
className,
|
|
578
627
|
...rest
|
|
579
628
|
} = props;
|
|
580
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ jsx11(
|
|
581
630
|
"div",
|
|
582
631
|
{
|
|
583
632
|
ref,
|
|
@@ -593,7 +642,7 @@ BadgeDigit.displayName = "BadgeDigit";
|
|
|
593
642
|
// src/components/Content/BadgeDot.tsx
|
|
594
643
|
import "react";
|
|
595
644
|
import { cva as cva9 } from "class-variance-authority";
|
|
596
|
-
import { jsx as
|
|
645
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
597
646
|
var badgeDotVariants = cva9("rounded-12 size-3", {
|
|
598
647
|
variants: {
|
|
599
648
|
status: {
|
|
@@ -609,14 +658,14 @@ var badgeDotVariants = cva9("rounded-12 size-3", {
|
|
|
609
658
|
}
|
|
610
659
|
});
|
|
611
660
|
var BadgeDot = ({ status, className }) => {
|
|
612
|
-
return /* @__PURE__ */
|
|
661
|
+
return /* @__PURE__ */ jsx12("div", { className: cn(badgeDotVariants({ status }), className) });
|
|
613
662
|
};
|
|
614
663
|
BadgeDot.displayName = "BadgeDot";
|
|
615
664
|
|
|
616
665
|
// src/components/Content/BadgeStatus.tsx
|
|
617
|
-
import * as
|
|
618
|
-
import { jsx as
|
|
619
|
-
var BadgeStatus =
|
|
666
|
+
import * as React11 from "react";
|
|
667
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
668
|
+
var BadgeStatus = React11.forwardRef(
|
|
620
669
|
(props, ref) => {
|
|
621
670
|
const {
|
|
622
671
|
label,
|
|
@@ -634,7 +683,7 @@ var BadgeStatus = React10.forwardRef(
|
|
|
634
683
|
className: cn("inline-flex items-center gap-2", className),
|
|
635
684
|
...rest,
|
|
636
685
|
children: [
|
|
637
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ jsx13(
|
|
638
687
|
"span",
|
|
639
688
|
{
|
|
640
689
|
className: cn(
|
|
@@ -644,7 +693,7 @@ var BadgeStatus = React10.forwardRef(
|
|
|
644
693
|
)
|
|
645
694
|
}
|
|
646
695
|
),
|
|
647
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ jsx13("span", { className: textClasses, children: label })
|
|
648
697
|
]
|
|
649
698
|
}
|
|
650
699
|
);
|
|
@@ -655,7 +704,7 @@ BadgeStatus.displayName = "BadgeStatus";
|
|
|
655
704
|
// src/components/Content/Divider.tsx
|
|
656
705
|
import "react";
|
|
657
706
|
import { TargetIcon } from "@bubo-squared/icons";
|
|
658
|
-
import { jsx as
|
|
707
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
659
708
|
var gapBySize = {
|
|
660
709
|
sm: "gap-2",
|
|
661
710
|
md: "gap-3",
|
|
@@ -665,8 +714,8 @@ var gapBySize = {
|
|
|
665
714
|
var textClassBySize = {
|
|
666
715
|
sm: "footnote",
|
|
667
716
|
md: "caption",
|
|
668
|
-
lg: "paragraph-
|
|
669
|
-
xl: "paragraph-
|
|
717
|
+
lg: "paragraph-sm",
|
|
718
|
+
xl: "paragraph-md"
|
|
670
719
|
};
|
|
671
720
|
var Divider = (props) => {
|
|
672
721
|
const resolvedType = props.type ?? "default";
|
|
@@ -690,14 +739,14 @@ var Divider = (props) => {
|
|
|
690
739
|
className: _className,
|
|
691
740
|
...divProps
|
|
692
741
|
} = props;
|
|
693
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx14(
|
|
694
743
|
"div",
|
|
695
744
|
{
|
|
696
745
|
className: wrapperClass,
|
|
697
746
|
role: "separator",
|
|
698
747
|
"aria-orientation": ariaOrientation,
|
|
699
748
|
...divProps,
|
|
700
|
-
children: /* @__PURE__ */
|
|
749
|
+
children: /* @__PURE__ */ jsx14("div", { className: lineClass })
|
|
701
750
|
}
|
|
702
751
|
);
|
|
703
752
|
}
|
|
@@ -719,8 +768,8 @@ var Divider = (props) => {
|
|
|
719
768
|
"aria-orientation": ariaOrientation,
|
|
720
769
|
...divProps,
|
|
721
770
|
children: [
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass }),
|
|
772
|
+
/* @__PURE__ */ jsx14(
|
|
724
773
|
"span",
|
|
725
774
|
{
|
|
726
775
|
className: cn(
|
|
@@ -730,7 +779,7 @@ var Divider = (props) => {
|
|
|
730
779
|
children: textLabel
|
|
731
780
|
}
|
|
732
781
|
),
|
|
733
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass })
|
|
734
783
|
]
|
|
735
784
|
}
|
|
736
785
|
);
|
|
@@ -755,18 +804,18 @@ var Divider = (props) => {
|
|
|
755
804
|
"aria-orientation": ariaOrientation,
|
|
756
805
|
...divProps,
|
|
757
806
|
children: [
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass }),
|
|
808
|
+
/* @__PURE__ */ jsx14(
|
|
760
809
|
IconButton,
|
|
761
810
|
{
|
|
762
811
|
variant: iconButtonVariant ?? "secondary",
|
|
763
812
|
size: resolvedSize,
|
|
764
813
|
"aria-label": ariaLabel ?? "More options",
|
|
765
|
-
icon: icon ?? /* @__PURE__ */
|
|
814
|
+
icon: icon ?? /* @__PURE__ */ jsx14(TargetIcon, {}),
|
|
766
815
|
onClick: onIconClick
|
|
767
816
|
}
|
|
768
817
|
),
|
|
769
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass })
|
|
770
819
|
]
|
|
771
820
|
}
|
|
772
821
|
);
|
|
@@ -788,8 +837,8 @@ var Divider = (props) => {
|
|
|
788
837
|
"aria-orientation": ariaOrientation,
|
|
789
838
|
...divProps,
|
|
790
839
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass }),
|
|
841
|
+
/* @__PURE__ */ jsx14(
|
|
793
842
|
IconButtonGroup,
|
|
794
843
|
{
|
|
795
844
|
className: resolvedOrientation === "vertical" ? "flex-col" : "flex-row",
|
|
@@ -797,7 +846,7 @@ var Divider = (props) => {
|
|
|
797
846
|
size: resolvedSize
|
|
798
847
|
}
|
|
799
848
|
),
|
|
800
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass })
|
|
801
850
|
]
|
|
802
851
|
}
|
|
803
852
|
);
|
|
@@ -821,8 +870,8 @@ var Divider = (props) => {
|
|
|
821
870
|
"aria-orientation": ariaOrientation,
|
|
822
871
|
...divProps,
|
|
823
872
|
children: [
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass }),
|
|
874
|
+
/* @__PURE__ */ jsx14(
|
|
826
875
|
Button,
|
|
827
876
|
{
|
|
828
877
|
variant: buttonVariant ?? "secondary",
|
|
@@ -831,7 +880,7 @@ var Divider = (props) => {
|
|
|
831
880
|
children: buttonLabel
|
|
832
881
|
}
|
|
833
882
|
),
|
|
834
|
-
/* @__PURE__ */
|
|
883
|
+
/* @__PURE__ */ jsx14("div", { className: lineClass })
|
|
835
884
|
]
|
|
836
885
|
}
|
|
837
886
|
);
|
|
@@ -841,14 +890,14 @@ var Divider = (props) => {
|
|
|
841
890
|
Divider.displayName = "Divider";
|
|
842
891
|
|
|
843
892
|
// src/components/Content/Progress.tsx
|
|
844
|
-
import * as
|
|
845
|
-
import { jsx as
|
|
893
|
+
import * as React13 from "react";
|
|
894
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
846
895
|
var sizeToBarClasses = {
|
|
847
896
|
lg: "h-4 rounded-16",
|
|
848
897
|
md: "h-2 rounded-8",
|
|
849
898
|
sm: "h-1 rounded-4"
|
|
850
899
|
};
|
|
851
|
-
var Progress =
|
|
900
|
+
var Progress = React13.forwardRef(
|
|
852
901
|
(props, ref) => {
|
|
853
902
|
const {
|
|
854
903
|
value,
|
|
@@ -876,10 +925,10 @@ var Progress = React12.forwardRef(
|
|
|
876
925
|
...rest,
|
|
877
926
|
children: [
|
|
878
927
|
showLabel && label && /* @__PURE__ */ jsxs8("div", { className: "flex w-full items-center justify-between", children: [
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
928
|
+
/* @__PURE__ */ jsx15("span", { className: "paragraph-sm-bold text-primary", children: label }),
|
|
929
|
+
/* @__PURE__ */ jsx15("span", { className: "footnote text-(--color-secondary)", children: percentageLabel })
|
|
881
930
|
] }),
|
|
882
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ jsx15("div", { className: cn("w-full bg-(--chart-mono) overflow-hidden", barHeightClasses), children: /* @__PURE__ */ jsx15(
|
|
883
932
|
"div",
|
|
884
933
|
{
|
|
885
934
|
className: cn(
|
|
@@ -889,7 +938,7 @@ var Progress = React12.forwardRef(
|
|
|
889
938
|
style: { width: `${clamped}%` }
|
|
890
939
|
}
|
|
891
940
|
) }),
|
|
892
|
-
showHint && hint && /* @__PURE__ */
|
|
941
|
+
showHint && hint && /* @__PURE__ */ jsx15("p", { className: "caption text-(--color-secondary)", children: hint })
|
|
893
942
|
]
|
|
894
943
|
}
|
|
895
944
|
);
|
|
@@ -898,7 +947,7 @@ var Progress = React12.forwardRef(
|
|
|
898
947
|
Progress.displayName = "Progress";
|
|
899
948
|
|
|
900
949
|
// src/components/Content/StatusAvatar.tsx
|
|
901
|
-
import * as
|
|
950
|
+
import * as React14 from "react";
|
|
902
951
|
import { cva as cva10 } from "class-variance-authority";
|
|
903
952
|
import {
|
|
904
953
|
BookmarkCheckIcon,
|
|
@@ -907,7 +956,7 @@ import {
|
|
|
907
956
|
PlusIcon,
|
|
908
957
|
StarIcon
|
|
909
958
|
} from "@bubo-squared/icons";
|
|
910
|
-
import { jsx as
|
|
959
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
911
960
|
var iconStatusVariants = cva10(
|
|
912
961
|
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--color-primary-inverse) p-1",
|
|
913
962
|
{
|
|
@@ -932,11 +981,11 @@ var presenceDotByVariant = {
|
|
|
932
981
|
away: "bg-(--background-warning) border-1 border-(--color-primary-inverse)",
|
|
933
982
|
busy: "bg-(--background-error) border-1 border-(--color-primary-inverse)"
|
|
934
983
|
};
|
|
935
|
-
var StatusAvatar =
|
|
984
|
+
var StatusAvatar = React14.forwardRef((props, ref) => {
|
|
936
985
|
const { variant = "verified", className, ...rest } = props;
|
|
937
986
|
if (variant === "offline" || variant === "online" || variant === "away" || variant === "busy") {
|
|
938
987
|
const dotClasses = presenceDotByVariant[variant];
|
|
939
|
-
return /* @__PURE__ */
|
|
988
|
+
return /* @__PURE__ */ jsx16(
|
|
940
989
|
"div",
|
|
941
990
|
{
|
|
942
991
|
ref,
|
|
@@ -945,7 +994,7 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
945
994
|
className
|
|
946
995
|
),
|
|
947
996
|
...rest,
|
|
948
|
-
children: /* @__PURE__ */
|
|
997
|
+
children: /* @__PURE__ */ jsx16("div", { className: cn(dotClasses, "size-3.5 rounded-full") })
|
|
949
998
|
}
|
|
950
999
|
);
|
|
951
1000
|
}
|
|
@@ -957,11 +1006,11 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
957
1006
|
className: cn(iconStatusVariants({ variant: iconVariant }), className),
|
|
958
1007
|
...rest,
|
|
959
1008
|
children: [
|
|
960
|
-
iconVariant === "verified" && /* @__PURE__ */
|
|
961
|
-
iconVariant === "bookmark" && /* @__PURE__ */
|
|
962
|
-
iconVariant === "favorite" && /* @__PURE__ */
|
|
963
|
-
iconVariant === "add" && /* @__PURE__ */
|
|
964
|
-
iconVariant === "remove" && /* @__PURE__ */
|
|
1009
|
+
iconVariant === "verified" && /* @__PURE__ */ jsx16(CheckIcon, { className: "size-3 text-button-white" }),
|
|
1010
|
+
iconVariant === "bookmark" && /* @__PURE__ */ jsx16(BookmarkCheckIcon, { className: "size-3 text-button-white" }),
|
|
1011
|
+
iconVariant === "favorite" && /* @__PURE__ */ jsx16(StarIcon, { className: "size-3 text-button-white" }),
|
|
1012
|
+
iconVariant === "add" && /* @__PURE__ */ jsx16(PlusIcon, { className: "size-3 text-button-white" }),
|
|
1013
|
+
iconVariant === "remove" && /* @__PURE__ */ jsx16(CrossIcon, { className: "size-3 text-button-white" })
|
|
965
1014
|
]
|
|
966
1015
|
}
|
|
967
1016
|
);
|
|
@@ -969,10 +1018,10 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
969
1018
|
StatusAvatar.displayName = "StatusAvatar";
|
|
970
1019
|
|
|
971
1020
|
// src/components/Content/Tag.tsx
|
|
972
|
-
import * as
|
|
1021
|
+
import * as React15 from "react";
|
|
973
1022
|
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
974
1023
|
import { cva as cva11 } from "class-variance-authority";
|
|
975
|
-
import { jsx as
|
|
1024
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
976
1025
|
var tagVariants = cva11(
|
|
977
1026
|
"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 ",
|
|
978
1027
|
{
|
|
@@ -989,7 +1038,7 @@ var tagVariants = cva11(
|
|
|
989
1038
|
);
|
|
990
1039
|
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
|
|
991
1040
|
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
|
|
992
|
-
var Tag =
|
|
1041
|
+
var Tag = React15.forwardRef(
|
|
993
1042
|
(props, ref) => {
|
|
994
1043
|
const {
|
|
995
1044
|
size = "sm",
|
|
@@ -1001,8 +1050,8 @@ var Tag = React14.forwardRef(
|
|
|
1001
1050
|
...rest
|
|
1002
1051
|
} = props;
|
|
1003
1052
|
const Comp = asChild ? Slot6 : "div";
|
|
1004
|
-
const leading = props.leadingIcon &&
|
|
1005
|
-
const trailing = props.trailingIcon &&
|
|
1053
|
+
const leading = props.leadingIcon && React15.isValidElement(props.leadingIcon) ? React15.cloneElement(props.leadingIcon, { disabled, ...props.leadingIcon.props }) : null;
|
|
1054
|
+
const trailing = props.trailingIcon && React15.isValidElement(props.trailingIcon) ? React15.cloneElement(props.trailingIcon, { disabled, ...props.trailingIcon.props }) : null;
|
|
1006
1055
|
return /* @__PURE__ */ jsxs10(
|
|
1007
1056
|
Comp,
|
|
1008
1057
|
{
|
|
@@ -1010,13 +1059,13 @@ var Tag = React14.forwardRef(
|
|
|
1010
1059
|
ref,
|
|
1011
1060
|
...rest,
|
|
1012
1061
|
children: [
|
|
1013
|
-
leading && /* @__PURE__ */
|
|
1062
|
+
leading && /* @__PURE__ */ jsx17("div", { className: iconClasses, children: leading }),
|
|
1014
1063
|
value ? /* @__PURE__ */ jsxs10("div", { className: "flex flex-row gap-1 items-center", children: [
|
|
1015
|
-
/* @__PURE__ */
|
|
1016
|
-
/* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */
|
|
1018
|
-
] }) : /* @__PURE__ */
|
|
1019
|
-
trailing && /* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ jsx17("span", { className: "text-primary paragraph-lg mb-0! cursor-default font-normal", children: label }),
|
|
1065
|
+
/* @__PURE__ */ jsx17("span", { className: "text-primary paragraph-lg mb-0! cursor-default font-normal", children: ":" }),
|
|
1066
|
+
/* @__PURE__ */ jsx17("span", { className: "text-primary paragraph-lg-medium mb-0! cursor-default font-medium", children: value })
|
|
1067
|
+
] }) : /* @__PURE__ */ jsx17("span", { className: "text-primary paragraph-lg mb-0! cursor-default", children: label }),
|
|
1068
|
+
trailing && /* @__PURE__ */ jsx17("div", { className: iconClasses, children: trailing })
|
|
1020
1069
|
]
|
|
1021
1070
|
}
|
|
1022
1071
|
);
|
|
@@ -1028,10 +1077,10 @@ import "react";
|
|
|
1028
1077
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1029
1078
|
import { CheckIcon as CheckIcon2 } from "@bubo-squared/icons";
|
|
1030
1079
|
import { MinusIcon } from "@bubo-squared/icons";
|
|
1031
|
-
import { jsx as
|
|
1080
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1032
1081
|
function Checkbox({ label, className, ...props }) {
|
|
1033
1082
|
return /* @__PURE__ */ jsxs11("label", { className: "inline-flex items-center gap-(--space-12) cursor-pointer select-none", children: [
|
|
1034
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ jsx18(
|
|
1035
1084
|
CheckboxPrimitive.Root,
|
|
1036
1085
|
{
|
|
1037
1086
|
className: cn(
|
|
@@ -1048,20 +1097,20 @@ function Checkbox({ label, className, ...props }) {
|
|
|
1048
1097
|
),
|
|
1049
1098
|
...props,
|
|
1050
1099
|
children: /* @__PURE__ */ jsxs11(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current", children: [
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ jsx18(CheckIcon2, { className: "h-5 w-5 hidden group-data-[state=checked]:block" }),
|
|
1101
|
+
/* @__PURE__ */ jsx18(MinusIcon, { className: "h-5 w-5 hidden group-data-[state=indeterminate]:block" })
|
|
1053
1102
|
] })
|
|
1054
1103
|
}
|
|
1055
1104
|
),
|
|
1056
|
-
label && /* @__PURE__ */
|
|
1105
|
+
label && /* @__PURE__ */ jsx18("span", { className: "paragraph-md-medium text-primary", children: label })
|
|
1057
1106
|
] });
|
|
1058
1107
|
}
|
|
1059
1108
|
|
|
1060
1109
|
// src/components/Inputs/Dropdown.tsx
|
|
1061
|
-
import * as
|
|
1110
|
+
import * as React17 from "react";
|
|
1062
1111
|
import { cva as cva12 } from "class-variance-authority";
|
|
1063
1112
|
import { ChevronDownIcon } from "@bubo-squared/icons";
|
|
1064
|
-
import { jsx as
|
|
1113
|
+
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1065
1114
|
var dropdownWrapperBase = "flex flex-col gap-2 items-start";
|
|
1066
1115
|
var dropdownTriggerVariants = cva12(
|
|
1067
1116
|
"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",
|
|
@@ -1088,8 +1137,8 @@ var dropdownTriggerVariants = cva12(
|
|
|
1088
1137
|
var dropdownTextVariants = cva12("truncate", {
|
|
1089
1138
|
variants: {
|
|
1090
1139
|
size: {
|
|
1091
|
-
sm: "paragraph-
|
|
1092
|
-
md: "paragraph-
|
|
1140
|
+
sm: "paragraph-md",
|
|
1141
|
+
md: "paragraph-lg",
|
|
1093
1142
|
lg: "subtitle",
|
|
1094
1143
|
xl: "h6-title"
|
|
1095
1144
|
},
|
|
@@ -1142,12 +1191,12 @@ var Dropdown = (props) => {
|
|
|
1142
1191
|
showMenu,
|
|
1143
1192
|
...buttonProps
|
|
1144
1193
|
} = props;
|
|
1145
|
-
const dropdownRef =
|
|
1194
|
+
const dropdownRef = React17.useRef(null);
|
|
1146
1195
|
const isControlled = value !== void 0;
|
|
1147
|
-
const [internalValue, setInternalValue] =
|
|
1196
|
+
const [internalValue, setInternalValue] = React17.useState(
|
|
1148
1197
|
defaultValue
|
|
1149
1198
|
);
|
|
1150
|
-
const [open, setOpen] =
|
|
1199
|
+
const [open, setOpen] = React17.useState(false);
|
|
1151
1200
|
const currentValue = isControlled ? value : internalValue;
|
|
1152
1201
|
const selectedOption = options.find((opt) => opt.value === currentValue);
|
|
1153
1202
|
const hasValue = !!selectedOption;
|
|
@@ -1167,10 +1216,10 @@ var Dropdown = (props) => {
|
|
|
1167
1216
|
setOpen(false);
|
|
1168
1217
|
}
|
|
1169
1218
|
};
|
|
1170
|
-
const triggerId =
|
|
1219
|
+
const triggerId = React17.useId();
|
|
1171
1220
|
const labelId = `${triggerId}-label`;
|
|
1172
1221
|
const hintId = `${triggerId}-hint`;
|
|
1173
|
-
|
|
1222
|
+
React17.useEffect(() => {
|
|
1174
1223
|
if (showMenu !== void 0) return;
|
|
1175
1224
|
const handleClickOutside = (event) => {
|
|
1176
1225
|
if (!dropdownRef.current) return;
|
|
@@ -1184,13 +1233,13 @@ var Dropdown = (props) => {
|
|
|
1184
1233
|
};
|
|
1185
1234
|
}, [showMenu]);
|
|
1186
1235
|
return /* @__PURE__ */ jsxs12("div", { ref: dropdownRef, className: dropdownWrapperBase, children: [
|
|
1187
|
-
showLabel && /* @__PURE__ */
|
|
1236
|
+
showLabel && /* @__PURE__ */ jsx19(
|
|
1188
1237
|
"label",
|
|
1189
1238
|
{
|
|
1190
1239
|
htmlFor: triggerId,
|
|
1191
1240
|
id: labelId,
|
|
1192
1241
|
className: cn(
|
|
1193
|
-
"paragraph-
|
|
1242
|
+
"paragraph-sm",
|
|
1194
1243
|
disabled ? "text-primary-disabled" : "text-primary"
|
|
1195
1244
|
),
|
|
1196
1245
|
children: label
|
|
@@ -1215,7 +1264,7 @@ var Dropdown = (props) => {
|
|
|
1215
1264
|
"data-open": isOpen || void 0,
|
|
1216
1265
|
...buttonProps,
|
|
1217
1266
|
children: [
|
|
1218
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ jsx19(
|
|
1219
1268
|
"span",
|
|
1220
1269
|
{
|
|
1221
1270
|
className: cn(
|
|
@@ -1228,32 +1277,32 @@ var Dropdown = (props) => {
|
|
|
1228
1277
|
children: hasValue ? selectedOption?.label : placeholder
|
|
1229
1278
|
}
|
|
1230
1279
|
),
|
|
1231
|
-
/* @__PURE__ */
|
|
1280
|
+
/* @__PURE__ */ jsx19(
|
|
1232
1281
|
"span",
|
|
1233
1282
|
{
|
|
1234
1283
|
className: cn(
|
|
1235
1284
|
dropdownIconVariants({ size, disabled: !!disabled })
|
|
1236
1285
|
),
|
|
1237
|
-
children: /* @__PURE__ */
|
|
1286
|
+
children: /* @__PURE__ */ jsx19(ChevronDownIcon, {})
|
|
1238
1287
|
}
|
|
1239
1288
|
)
|
|
1240
1289
|
]
|
|
1241
1290
|
}
|
|
1242
1291
|
),
|
|
1243
|
-
isOpen && options.length > 0 && /* @__PURE__ */
|
|
1292
|
+
isOpen && options.length > 0 && /* @__PURE__ */ jsx19("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__ */ jsx19("ul", { role: "listbox", className: "flex flex-1 flex-col", children: options.map((opt) => {
|
|
1244
1293
|
const selected = opt.value === currentValue;
|
|
1245
|
-
return /* @__PURE__ */
|
|
1294
|
+
return /* @__PURE__ */ jsx19(
|
|
1246
1295
|
"li",
|
|
1247
1296
|
{
|
|
1248
1297
|
className: cn(
|
|
1249
1298
|
"bg-(--background-neutral) border-b border-(--border-secondary) last:border-b-0",
|
|
1250
1299
|
selected && "bg-(--background-secondary)"
|
|
1251
1300
|
),
|
|
1252
|
-
children: /* @__PURE__ */
|
|
1301
|
+
children: /* @__PURE__ */ jsx19(
|
|
1253
1302
|
"button",
|
|
1254
1303
|
{
|
|
1255
1304
|
type: "button",
|
|
1256
|
-
className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-
|
|
1305
|
+
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)",
|
|
1257
1306
|
role: "option",
|
|
1258
1307
|
"aria-selected": selected,
|
|
1259
1308
|
onClick: () => handleSelect(opt.value),
|
|
@@ -1265,7 +1314,7 @@ var Dropdown = (props) => {
|
|
|
1265
1314
|
);
|
|
1266
1315
|
}) }) })
|
|
1267
1316
|
] }),
|
|
1268
|
-
!hideHint && /* @__PURE__ */
|
|
1317
|
+
!hideHint && /* @__PURE__ */ jsx19(
|
|
1269
1318
|
"p",
|
|
1270
1319
|
{
|
|
1271
1320
|
id: hintId,
|
|
@@ -1281,8 +1330,8 @@ var Dropdown = (props) => {
|
|
|
1281
1330
|
Dropdown.displayName = "Dropdown";
|
|
1282
1331
|
|
|
1283
1332
|
// src/components/Inputs/Field.tsx
|
|
1284
|
-
import * as
|
|
1285
|
-
import { jsx as
|
|
1333
|
+
import * as React18 from "react";
|
|
1334
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1286
1335
|
var fieldBase = "flex flex-col gap-2 items-start";
|
|
1287
1336
|
var Field = (props) => {
|
|
1288
1337
|
const {
|
|
@@ -1294,22 +1343,22 @@ var Field = (props) => {
|
|
|
1294
1343
|
className,
|
|
1295
1344
|
children
|
|
1296
1345
|
} = props;
|
|
1297
|
-
const fieldId =
|
|
1346
|
+
const fieldId = React18.useId();
|
|
1298
1347
|
const labelId = label ? `${fieldId}-label` : void 0;
|
|
1299
1348
|
const hintId = hint ? `${fieldId}-hint` : void 0;
|
|
1300
1349
|
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
1301
1350
|
const labelColorClass = disabled ? "text-primary-disabled" : "text-primary";
|
|
1302
1351
|
return /* @__PURE__ */ jsxs13("div", { className: cn(fieldBase, className), children: [
|
|
1303
|
-
label && /* @__PURE__ */
|
|
1352
|
+
label && /* @__PURE__ */ jsx20(
|
|
1304
1353
|
"label",
|
|
1305
1354
|
{
|
|
1306
1355
|
id: labelId,
|
|
1307
|
-
className: cn("paragraph-
|
|
1356
|
+
className: cn("paragraph-sm", labelColorClass),
|
|
1308
1357
|
children: label
|
|
1309
1358
|
}
|
|
1310
1359
|
),
|
|
1311
|
-
/* @__PURE__ */
|
|
1312
|
-
!hideHint && /* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ jsx20("div", { className: "relative w-full", children }),
|
|
1361
|
+
!hideHint && /* @__PURE__ */ jsx20(
|
|
1313
1362
|
"p",
|
|
1314
1363
|
{
|
|
1315
1364
|
id: hint ? hintId : void 0,
|
|
@@ -1322,18 +1371,18 @@ var Field = (props) => {
|
|
|
1322
1371
|
Field.displayName = "Field";
|
|
1323
1372
|
|
|
1324
1373
|
// src/components/Inputs/PasswordInput.tsx
|
|
1325
|
-
import * as
|
|
1374
|
+
import * as React21 from "react";
|
|
1326
1375
|
import { cva as cva14 } from "class-variance-authority";
|
|
1327
1376
|
|
|
1328
1377
|
// src/components/ui/input.tsx
|
|
1329
|
-
import * as
|
|
1330
|
-
import { jsx as
|
|
1331
|
-
var Input =
|
|
1378
|
+
import * as React19 from "react";
|
|
1379
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1380
|
+
var Input = React19.forwardRef(
|
|
1332
1381
|
({ className, type, variant = "default", ...props }, ref) => {
|
|
1333
1382
|
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";
|
|
1334
1383
|
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";
|
|
1335
1384
|
const bareStyles = "bg-transparent outline-none w-full";
|
|
1336
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx21(
|
|
1337
1386
|
"input",
|
|
1338
1387
|
{
|
|
1339
1388
|
ref,
|
|
@@ -1352,9 +1401,9 @@ var Input = React18.forwardRef(
|
|
|
1352
1401
|
Input.displayName = "Input";
|
|
1353
1402
|
|
|
1354
1403
|
// src/components/Inputs/InputShell.tsx
|
|
1355
|
-
import * as
|
|
1404
|
+
import * as React20 from "react";
|
|
1356
1405
|
import { cva as cva13 } from "class-variance-authority";
|
|
1357
|
-
import { jsx as
|
|
1406
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1358
1407
|
var inputShellVariants = cva13(
|
|
1359
1408
|
"group flex w-full items-center rounded-4 border bg-(--background-primary) text-left cursor-text border-(--border-secondary)",
|
|
1360
1409
|
{
|
|
@@ -1380,9 +1429,9 @@ var inputShellVariants = cva13(
|
|
|
1380
1429
|
}
|
|
1381
1430
|
}
|
|
1382
1431
|
);
|
|
1383
|
-
var InputShell =
|
|
1432
|
+
var InputShell = React20.forwardRef(
|
|
1384
1433
|
({ size, status, disabled, className, ...rest }, ref) => {
|
|
1385
|
-
return /* @__PURE__ */
|
|
1434
|
+
return /* @__PURE__ */ jsx22(
|
|
1386
1435
|
"div",
|
|
1387
1436
|
{
|
|
1388
1437
|
ref,
|
|
@@ -1399,12 +1448,12 @@ var InputShell = React19.forwardRef(
|
|
|
1399
1448
|
InputShell.displayName = "InputShell";
|
|
1400
1449
|
|
|
1401
1450
|
// src/components/Inputs/PasswordInput.tsx
|
|
1402
|
-
import { jsx as
|
|
1451
|
+
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1403
1452
|
var passwordTextVariants = cva14("truncate", {
|
|
1404
1453
|
variants: {
|
|
1405
1454
|
size: {
|
|
1406
|
-
sm: "paragraph-
|
|
1407
|
-
md: "paragraph-
|
|
1455
|
+
sm: "paragraph-md",
|
|
1456
|
+
md: "paragraph-lg",
|
|
1408
1457
|
lg: "subtitle",
|
|
1409
1458
|
xl: "h6-title"
|
|
1410
1459
|
},
|
|
@@ -1438,14 +1487,14 @@ var iconWrapperVariants = cva14(
|
|
|
1438
1487
|
}
|
|
1439
1488
|
);
|
|
1440
1489
|
var actionButtonVariants = cva14(
|
|
1441
|
-
"flex items-center justify-center shrink-0 cursor-pointer bg-transparent border-0 p-0 text-left paragraph-
|
|
1490
|
+
"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 ",
|
|
1442
1491
|
{
|
|
1443
1492
|
variants: {
|
|
1444
1493
|
size: {
|
|
1445
|
-
sm: "paragraph-
|
|
1446
|
-
md: "paragraph-
|
|
1447
|
-
lg: "paragraph-
|
|
1448
|
-
xl: "paragraph-
|
|
1494
|
+
sm: "paragraph-sm",
|
|
1495
|
+
md: "paragraph-sm",
|
|
1496
|
+
lg: "paragraph-sm",
|
|
1497
|
+
xl: "paragraph-md"
|
|
1449
1498
|
},
|
|
1450
1499
|
disabled: {
|
|
1451
1500
|
true: "cursor-default text-primary-disabled hover:text-primary-disabled"
|
|
@@ -1477,11 +1526,11 @@ var PasswordInput = (props) => {
|
|
|
1477
1526
|
...inputProps
|
|
1478
1527
|
} = props;
|
|
1479
1528
|
const isControlled = value !== void 0;
|
|
1480
|
-
const [internalValue, setInternalValue] =
|
|
1529
|
+
const [internalValue, setInternalValue] = React21.useState(
|
|
1481
1530
|
defaultValue ?? ""
|
|
1482
1531
|
);
|
|
1483
1532
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
1484
|
-
const inputRef =
|
|
1533
|
+
const inputRef = React21.useRef(null);
|
|
1485
1534
|
const handleContainerClick = () => {
|
|
1486
1535
|
if (disabled) return;
|
|
1487
1536
|
inputRef.current?.focus();
|
|
@@ -1495,7 +1544,7 @@ var PasswordInput = (props) => {
|
|
|
1495
1544
|
const showLeadingIcon = variant === "icons" && !!leadingIcon;
|
|
1496
1545
|
const showTrailingIcon = variant === "icons" && !!trailingIcon;
|
|
1497
1546
|
const showAction = variant === "action" && !!actionLabel;
|
|
1498
|
-
return /* @__PURE__ */
|
|
1547
|
+
return /* @__PURE__ */ jsx23(
|
|
1499
1548
|
Field,
|
|
1500
1549
|
{
|
|
1501
1550
|
label,
|
|
@@ -1512,7 +1561,7 @@ var PasswordInput = (props) => {
|
|
|
1512
1561
|
className,
|
|
1513
1562
|
onClick: handleContainerClick,
|
|
1514
1563
|
children: [
|
|
1515
|
-
showLeadingIcon && /* @__PURE__ */
|
|
1564
|
+
showLeadingIcon && /* @__PURE__ */ jsx23(
|
|
1516
1565
|
"span",
|
|
1517
1566
|
{
|
|
1518
1567
|
className: cn(
|
|
@@ -1521,7 +1570,7 @@ var PasswordInput = (props) => {
|
|
|
1521
1570
|
children: leadingIcon
|
|
1522
1571
|
}
|
|
1523
1572
|
),
|
|
1524
|
-
/* @__PURE__ */
|
|
1573
|
+
/* @__PURE__ */ jsx23(
|
|
1525
1574
|
Input,
|
|
1526
1575
|
{
|
|
1527
1576
|
ref: inputRef,
|
|
@@ -1538,7 +1587,7 @@ var PasswordInput = (props) => {
|
|
|
1538
1587
|
...inputProps
|
|
1539
1588
|
}
|
|
1540
1589
|
),
|
|
1541
|
-
showTrailingIcon && /* @__PURE__ */
|
|
1590
|
+
showTrailingIcon && /* @__PURE__ */ jsx23(
|
|
1542
1591
|
"span",
|
|
1543
1592
|
{
|
|
1544
1593
|
className: cn(
|
|
@@ -1547,7 +1596,7 @@ var PasswordInput = (props) => {
|
|
|
1547
1596
|
children: trailingIcon
|
|
1548
1597
|
}
|
|
1549
1598
|
),
|
|
1550
|
-
showAction && /* @__PURE__ */
|
|
1599
|
+
showAction && /* @__PURE__ */ jsx23(
|
|
1551
1600
|
"button",
|
|
1552
1601
|
{
|
|
1553
1602
|
type: "button",
|
|
@@ -1567,7 +1616,7 @@ var PasswordInput = (props) => {
|
|
|
1567
1616
|
PasswordInput.displayName = "PasswordInput";
|
|
1568
1617
|
|
|
1569
1618
|
// src/components/Inputs/PhoneInput.tsx
|
|
1570
|
-
import * as
|
|
1619
|
+
import * as React27 from "react";
|
|
1571
1620
|
import { CheckIcon as CheckIcon3, CodeIcon } from "@bubo-squared/icons";
|
|
1572
1621
|
import * as RPNInput from "react-phone-number-input";
|
|
1573
1622
|
import flags from "react-phone-number-input/flags";
|
|
@@ -1576,7 +1625,7 @@ import flags from "react-phone-number-input/flags";
|
|
|
1576
1625
|
import "react";
|
|
1577
1626
|
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
1578
1627
|
import { cva as cva15 } from "class-variance-authority";
|
|
1579
|
-
import { jsx as
|
|
1628
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1580
1629
|
var buttonVariants2 = cva15(
|
|
1581
1630
|
"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",
|
|
1582
1631
|
{
|
|
@@ -1612,7 +1661,7 @@ function Button2({
|
|
|
1612
1661
|
...props
|
|
1613
1662
|
}) {
|
|
1614
1663
|
const Comp = asChild ? Slot7 : "button";
|
|
1615
|
-
return /* @__PURE__ */
|
|
1664
|
+
return /* @__PURE__ */ jsx24(
|
|
1616
1665
|
Comp,
|
|
1617
1666
|
{
|
|
1618
1667
|
"data-slot": "button",
|
|
@@ -1632,15 +1681,15 @@ import { SearchIcon } from "@bubo-squared/icons";
|
|
|
1632
1681
|
// src/components/ui/dialog.tsx
|
|
1633
1682
|
import "react";
|
|
1634
1683
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1635
|
-
import { jsx as
|
|
1684
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1636
1685
|
|
|
1637
1686
|
// src/components/ui/command.tsx
|
|
1638
|
-
import { jsx as
|
|
1687
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1639
1688
|
function Command({
|
|
1640
1689
|
className,
|
|
1641
1690
|
...props
|
|
1642
1691
|
}) {
|
|
1643
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ jsx26(
|
|
1644
1693
|
CommandPrimitive,
|
|
1645
1694
|
{
|
|
1646
1695
|
"data-slot": "command",
|
|
@@ -1662,8 +1711,8 @@ function CommandInput({
|
|
|
1662
1711
|
"data-slot": "command-input-wrapper",
|
|
1663
1712
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1664
1713
|
children: [
|
|
1665
|
-
/* @__PURE__ */
|
|
1666
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ jsx26(SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--color-secondary)" }),
|
|
1715
|
+
/* @__PURE__ */ jsx26(
|
|
1667
1716
|
CommandPrimitive.Input,
|
|
1668
1717
|
{
|
|
1669
1718
|
"data-slot": "command-input",
|
|
@@ -1682,7 +1731,7 @@ function CommandList({
|
|
|
1682
1731
|
className,
|
|
1683
1732
|
...props
|
|
1684
1733
|
}) {
|
|
1685
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ jsx26(
|
|
1686
1735
|
CommandPrimitive.List,
|
|
1687
1736
|
{
|
|
1688
1737
|
"data-slot": "command-list",
|
|
@@ -1697,7 +1746,7 @@ function CommandList({
|
|
|
1697
1746
|
function CommandEmpty({
|
|
1698
1747
|
...props
|
|
1699
1748
|
}) {
|
|
1700
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ jsx26(
|
|
1701
1750
|
CommandPrimitive.Empty,
|
|
1702
1751
|
{
|
|
1703
1752
|
"data-slot": "command-empty",
|
|
@@ -1710,7 +1759,7 @@ function CommandGroup({
|
|
|
1710
1759
|
className,
|
|
1711
1760
|
...props
|
|
1712
1761
|
}) {
|
|
1713
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ jsx26(
|
|
1714
1763
|
CommandPrimitive.Group,
|
|
1715
1764
|
{
|
|
1716
1765
|
"data-slot": "command-group",
|
|
@@ -1726,7 +1775,7 @@ function CommandItem({
|
|
|
1726
1775
|
className,
|
|
1727
1776
|
...props
|
|
1728
1777
|
}) {
|
|
1729
|
-
return /* @__PURE__ */
|
|
1778
|
+
return /* @__PURE__ */ jsx26(
|
|
1730
1779
|
CommandPrimitive.Item,
|
|
1731
1780
|
{
|
|
1732
1781
|
"data-slot": "command-item",
|
|
@@ -1742,16 +1791,16 @@ function CommandItem({
|
|
|
1742
1791
|
// src/components/ui/popover.tsx
|
|
1743
1792
|
import "react";
|
|
1744
1793
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1745
|
-
import { jsx as
|
|
1794
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1746
1795
|
function Popover({
|
|
1747
1796
|
...props
|
|
1748
1797
|
}) {
|
|
1749
|
-
return /* @__PURE__ */
|
|
1798
|
+
return /* @__PURE__ */ jsx27(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
1750
1799
|
}
|
|
1751
1800
|
function PopoverTrigger({
|
|
1752
1801
|
...props
|
|
1753
1802
|
}) {
|
|
1754
|
-
return /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ jsx27(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
1755
1804
|
}
|
|
1756
1805
|
function PopoverContent({
|
|
1757
1806
|
className,
|
|
@@ -1759,7 +1808,7 @@ function PopoverContent({
|
|
|
1759
1808
|
sideOffset = 4,
|
|
1760
1809
|
...props
|
|
1761
1810
|
}) {
|
|
1762
|
-
return /* @__PURE__ */
|
|
1811
|
+
return /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
|
|
1763
1812
|
PopoverPrimitive.Content,
|
|
1764
1813
|
{
|
|
1765
1814
|
"data-slot": "popover-content",
|
|
@@ -1777,7 +1826,7 @@ function PopoverContent({
|
|
|
1777
1826
|
// src/components/ui/scroll-area.tsx
|
|
1778
1827
|
import "react";
|
|
1779
1828
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
1780
|
-
import { jsx as
|
|
1829
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1781
1830
|
function ScrollArea({
|
|
1782
1831
|
className,
|
|
1783
1832
|
children,
|
|
@@ -1790,7 +1839,7 @@ function ScrollArea({
|
|
|
1790
1839
|
className: cn("relative", className),
|
|
1791
1840
|
...props,
|
|
1792
1841
|
children: [
|
|
1793
|
-
/* @__PURE__ */
|
|
1842
|
+
/* @__PURE__ */ jsx28(
|
|
1794
1843
|
ScrollAreaPrimitive.Viewport,
|
|
1795
1844
|
{
|
|
1796
1845
|
"data-slot": "scroll-area-viewport",
|
|
@@ -1798,8 +1847,8 @@ function ScrollArea({
|
|
|
1798
1847
|
children
|
|
1799
1848
|
}
|
|
1800
1849
|
),
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
/* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ jsx28(ScrollBar, {}),
|
|
1851
|
+
/* @__PURE__ */ jsx28(ScrollAreaPrimitive.Corner, {})
|
|
1803
1852
|
]
|
|
1804
1853
|
}
|
|
1805
1854
|
);
|
|
@@ -1809,7 +1858,7 @@ function ScrollBar({
|
|
|
1809
1858
|
orientation = "vertical",
|
|
1810
1859
|
...props
|
|
1811
1860
|
}) {
|
|
1812
|
-
return /* @__PURE__ */
|
|
1861
|
+
return /* @__PURE__ */ jsx28(
|
|
1813
1862
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1814
1863
|
{
|
|
1815
1864
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -1822,7 +1871,7 @@ function ScrollBar({
|
|
|
1822
1871
|
className
|
|
1823
1872
|
),
|
|
1824
1873
|
...props,
|
|
1825
|
-
children: /* @__PURE__ */
|
|
1874
|
+
children: /* @__PURE__ */ jsx28(
|
|
1826
1875
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
1827
1876
|
{
|
|
1828
1877
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1835,7 +1884,7 @@ function ScrollBar({
|
|
|
1835
1884
|
|
|
1836
1885
|
// src/components/Inputs/PhoneInput.tsx
|
|
1837
1886
|
import { cva as cva16 } from "class-variance-authority";
|
|
1838
|
-
import { jsx as
|
|
1887
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1839
1888
|
var inputBase = "h-full rounded-4 border-(--border-secondary) bg-(--background-primary) hover:border-(--border-secondary-hover)";
|
|
1840
1889
|
var sizeBase = cva16(
|
|
1841
1890
|
"flex w-full",
|
|
@@ -1853,8 +1902,8 @@ var sizeBase = cva16(
|
|
|
1853
1902
|
var inputTextVariants = cva16("", {
|
|
1854
1903
|
variants: {
|
|
1855
1904
|
size: {
|
|
1856
|
-
sm: "paragraph-
|
|
1857
|
-
md: "paragraph-
|
|
1905
|
+
sm: "paragraph-md",
|
|
1906
|
+
md: "paragraph-lg",
|
|
1858
1907
|
lg: "subtitle",
|
|
1859
1908
|
xl: "h6-title"
|
|
1860
1909
|
},
|
|
@@ -1871,7 +1920,7 @@ var wrapperStatusClass = {
|
|
|
1871
1920
|
success: "input-success-nested",
|
|
1872
1921
|
error: "input-error-nested"
|
|
1873
1922
|
};
|
|
1874
|
-
var PhoneInput =
|
|
1923
|
+
var PhoneInput = React27.forwardRef(
|
|
1875
1924
|
(props, ref) => {
|
|
1876
1925
|
const {
|
|
1877
1926
|
className,
|
|
@@ -1886,7 +1935,7 @@ var PhoneInput = React26.forwardRef(
|
|
|
1886
1935
|
status = "default",
|
|
1887
1936
|
...rest
|
|
1888
1937
|
} = props;
|
|
1889
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ jsx29(
|
|
1890
1939
|
Field,
|
|
1891
1940
|
{
|
|
1892
1941
|
label,
|
|
@@ -1895,7 +1944,7 @@ var PhoneInput = React26.forwardRef(
|
|
|
1895
1944
|
status,
|
|
1896
1945
|
disabled,
|
|
1897
1946
|
className,
|
|
1898
|
-
children: /* @__PURE__ */
|
|
1947
|
+
children: /* @__PURE__ */ jsx29("div", { className: cn("w-full", wrapperStatusClass[status]), children: /* @__PURE__ */ jsx29(
|
|
1899
1948
|
RPNInput.default,
|
|
1900
1949
|
{
|
|
1901
1950
|
ref,
|
|
@@ -1921,9 +1970,9 @@ var PhoneInput = React26.forwardRef(
|
|
|
1921
1970
|
}
|
|
1922
1971
|
);
|
|
1923
1972
|
PhoneInput.displayName = "PhoneInput";
|
|
1924
|
-
var InputComponent =
|
|
1973
|
+
var InputComponent = React27.forwardRef((props, ref) => {
|
|
1925
1974
|
const { className, ...rest } = props;
|
|
1926
|
-
return /* @__PURE__ */
|
|
1975
|
+
return /* @__PURE__ */ jsx29(
|
|
1927
1976
|
Input,
|
|
1928
1977
|
{
|
|
1929
1978
|
ref,
|
|
@@ -1940,9 +1989,9 @@ var CountrySelect = ({
|
|
|
1940
1989
|
options: countryList,
|
|
1941
1990
|
onChange
|
|
1942
1991
|
}) => {
|
|
1943
|
-
const scrollAreaRef =
|
|
1944
|
-
const [searchValue, setSearchValue] =
|
|
1945
|
-
const [isOpen, setIsOpen] =
|
|
1992
|
+
const scrollAreaRef = React27.useRef(null);
|
|
1993
|
+
const [searchValue, setSearchValue] = React27.useState("");
|
|
1994
|
+
const [isOpen, setIsOpen] = React27.useState(false);
|
|
1946
1995
|
return /* @__PURE__ */ jsxs18(
|
|
1947
1996
|
Popover,
|
|
1948
1997
|
{
|
|
@@ -1953,7 +2002,7 @@ var CountrySelect = ({
|
|
|
1953
2002
|
open && setSearchValue("");
|
|
1954
2003
|
},
|
|
1955
2004
|
children: [
|
|
1956
|
-
/* @__PURE__ */
|
|
2005
|
+
/* @__PURE__ */ jsx29(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs18(
|
|
1957
2006
|
Button2,
|
|
1958
2007
|
{
|
|
1959
2008
|
type: "button",
|
|
@@ -1961,14 +2010,14 @@ var CountrySelect = ({
|
|
|
1961
2010
|
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)"),
|
|
1962
2011
|
disabled,
|
|
1963
2012
|
children: [
|
|
1964
|
-
/* @__PURE__ */
|
|
2013
|
+
/* @__PURE__ */ jsx29(
|
|
1965
2014
|
FlagComponent,
|
|
1966
2015
|
{
|
|
1967
2016
|
country: selectedCountry,
|
|
1968
2017
|
countryName: selectedCountry
|
|
1969
2018
|
}
|
|
1970
2019
|
),
|
|
1971
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx29(
|
|
1972
2021
|
CodeIcon,
|
|
1973
2022
|
{
|
|
1974
2023
|
className: cn(
|
|
@@ -1980,13 +2029,13 @@ var CountrySelect = ({
|
|
|
1980
2029
|
]
|
|
1981
2030
|
}
|
|
1982
2031
|
) }),
|
|
1983
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ jsx29(
|
|
1984
2033
|
PopoverContent,
|
|
1985
2034
|
{
|
|
1986
2035
|
align: "start",
|
|
1987
2036
|
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)",
|
|
1988
2037
|
children: /* @__PURE__ */ jsxs18(Command, { children: [
|
|
1989
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx29(
|
|
1990
2039
|
CommandInput,
|
|
1991
2040
|
{
|
|
1992
2041
|
value: searchValue,
|
|
@@ -2006,10 +2055,10 @@ var CountrySelect = ({
|
|
|
2006
2055
|
placeholder: "Search country..."
|
|
2007
2056
|
}
|
|
2008
2057
|
),
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
({ value, label }) => value ? /* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsx29(CommandList, { children: /* @__PURE__ */ jsxs18(ScrollArea, { ref: scrollAreaRef, className: "h-72", children: [
|
|
2059
|
+
/* @__PURE__ */ jsx29(CommandEmpty, { children: "No country found." }),
|
|
2060
|
+
/* @__PURE__ */ jsx29(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(
|
|
2061
|
+
({ value, label }) => value ? /* @__PURE__ */ jsx29(
|
|
2013
2062
|
CountrySelectOption,
|
|
2014
2063
|
{
|
|
2015
2064
|
country: value,
|
|
@@ -2047,10 +2096,10 @@ var CountrySelectOption = (props) => {
|
|
|
2047
2096
|
className: "gap-2 data-[selected=true]:text-primary",
|
|
2048
2097
|
onSelect: handleSelect,
|
|
2049
2098
|
children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ jsx29(FlagComponent, { country, countryName }),
|
|
2100
|
+
/* @__PURE__ */ jsx29("span", { className: "flex-1 text-sm", children: countryName }),
|
|
2101
|
+
/* @__PURE__ */ jsx29("span", { className: "text-sm text-foreground/50", children: `+${RPNInput.getCountryCallingCode(country)}` }),
|
|
2102
|
+
/* @__PURE__ */ jsx29(
|
|
2054
2103
|
CheckIcon3,
|
|
2055
2104
|
{
|
|
2056
2105
|
className: `ml-auto size-4 ${country === selectedCountry ? "opacity-100" : "opacity-0"}`
|
|
@@ -2062,13 +2111,13 @@ var CountrySelectOption = (props) => {
|
|
|
2062
2111
|
};
|
|
2063
2112
|
var FlagComponent = ({ country, countryName }) => {
|
|
2064
2113
|
const Flag = flags[country];
|
|
2065
|
-
return /* @__PURE__ */
|
|
2114
|
+
return /* @__PURE__ */ jsx29("span", { className: "flex h-4 w-6 overflow-hidden rounded-2 bg-foreground/20 [&_svg:not([class*='size-'])]:size-full", children: Flag && /* @__PURE__ */ jsx29(Flag, { title: countryName }) });
|
|
2066
2115
|
};
|
|
2067
2116
|
|
|
2068
2117
|
// src/components/Inputs/RadioGroup.tsx
|
|
2069
|
-
import * as
|
|
2118
|
+
import * as React28 from "react";
|
|
2070
2119
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2071
|
-
import { jsx as
|
|
2120
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2072
2121
|
var wrapperBase = "flex flex-col gap-2 items-start";
|
|
2073
2122
|
var RadioGroup = ({
|
|
2074
2123
|
label,
|
|
@@ -2083,24 +2132,24 @@ var RadioGroup = ({
|
|
|
2083
2132
|
className,
|
|
2084
2133
|
...rootProps
|
|
2085
2134
|
}) => {
|
|
2086
|
-
const groupId =
|
|
2135
|
+
const groupId = React28.useId();
|
|
2087
2136
|
const hintId = hint ? `${groupId}-hint` : void 0;
|
|
2088
2137
|
const handleValueChange = (next) => {
|
|
2089
2138
|
onValueChange?.(next);
|
|
2090
2139
|
};
|
|
2091
2140
|
const isHorizontal = orientation === "horizontal";
|
|
2092
2141
|
return /* @__PURE__ */ jsxs19("div", { className: wrapperBase, children: [
|
|
2093
|
-
label && /* @__PURE__ */
|
|
2142
|
+
label && /* @__PURE__ */ jsx30(
|
|
2094
2143
|
"span",
|
|
2095
2144
|
{
|
|
2096
2145
|
className: cn(
|
|
2097
|
-
"paragraph-
|
|
2146
|
+
"paragraph-sm text-primary",
|
|
2098
2147
|
disabled && "text-primary-disabled"
|
|
2099
2148
|
),
|
|
2100
2149
|
children: label
|
|
2101
2150
|
}
|
|
2102
2151
|
),
|
|
2103
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx30(
|
|
2104
2153
|
RadioGroupPrimitive.Root,
|
|
2105
2154
|
{
|
|
2106
2155
|
...rootProps,
|
|
@@ -2113,7 +2162,7 @@ var RadioGroup = ({
|
|
|
2113
2162
|
isHorizontal ? "flex-row gap-6" : "flex-col gap-2",
|
|
2114
2163
|
className
|
|
2115
2164
|
),
|
|
2116
|
-
children: options.map((option) => /* @__PURE__ */
|
|
2165
|
+
children: options.map((option) => /* @__PURE__ */ jsx30(
|
|
2117
2166
|
RadioGroupPrimitive.Item,
|
|
2118
2167
|
{
|
|
2119
2168
|
value: option.value,
|
|
@@ -2129,7 +2178,7 @@ var RadioGroup = ({
|
|
|
2129
2178
|
disabled || option.disabled ? "cursor-default" : "cursor-pointer"
|
|
2130
2179
|
),
|
|
2131
2180
|
children: [
|
|
2132
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ jsx30(
|
|
2133
2182
|
"span",
|
|
2134
2183
|
{
|
|
2135
2184
|
className: cn(
|
|
@@ -2155,7 +2204,7 @@ var RadioGroup = ({
|
|
|
2155
2204
|
"group-[&[data-disabled][data-state=checked]]:border-(--border-primary-disabled)",
|
|
2156
2205
|
"group-[&[data-disabled][data-state=checked]]:bg-(--background-primary-disabled)"
|
|
2157
2206
|
),
|
|
2158
|
-
children: /* @__PURE__ */
|
|
2207
|
+
children: /* @__PURE__ */ jsx30(
|
|
2159
2208
|
"span",
|
|
2160
2209
|
{
|
|
2161
2210
|
className: cn(
|
|
@@ -2170,11 +2219,11 @@ var RadioGroup = ({
|
|
|
2170
2219
|
)
|
|
2171
2220
|
}
|
|
2172
2221
|
),
|
|
2173
|
-
/* @__PURE__ */
|
|
2222
|
+
/* @__PURE__ */ jsx30(
|
|
2174
2223
|
"span",
|
|
2175
2224
|
{
|
|
2176
2225
|
className: cn(
|
|
2177
|
-
"paragraph-
|
|
2226
|
+
"paragraph-sm text-primary",
|
|
2178
2227
|
"group-data-[disabled]:text-primary-disabled whitespace-nowrap"
|
|
2179
2228
|
),
|
|
2180
2229
|
children: option.label
|
|
@@ -2188,7 +2237,7 @@ var RadioGroup = ({
|
|
|
2188
2237
|
))
|
|
2189
2238
|
}
|
|
2190
2239
|
),
|
|
2191
|
-
!hideHint && /* @__PURE__ */
|
|
2240
|
+
!hideHint && /* @__PURE__ */ jsx30(
|
|
2192
2241
|
"p",
|
|
2193
2242
|
{
|
|
2194
2243
|
id: hintId,
|
|
@@ -2203,15 +2252,15 @@ var RadioGroup = ({
|
|
|
2203
2252
|
};
|
|
2204
2253
|
|
|
2205
2254
|
// src/components/Inputs/SearchInput.tsx
|
|
2206
|
-
import * as
|
|
2255
|
+
import * as React29 from "react";
|
|
2207
2256
|
import { cva as cva17 } from "class-variance-authority";
|
|
2208
2257
|
import { SearchIcon as SearchIcon2 } from "@bubo-squared/icons";
|
|
2209
|
-
import { jsx as
|
|
2258
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2210
2259
|
var searchTextVariants = cva17("truncate", {
|
|
2211
2260
|
variants: {
|
|
2212
2261
|
size: {
|
|
2213
|
-
sm: "paragraph-
|
|
2214
|
-
md: "paragraph-
|
|
2262
|
+
sm: "paragraph-md",
|
|
2263
|
+
md: "paragraph-lg",
|
|
2215
2264
|
lg: "subtitle",
|
|
2216
2265
|
xl: "h6-title"
|
|
2217
2266
|
}
|
|
@@ -2247,13 +2296,13 @@ var SearchInput = (props) => {
|
|
|
2247
2296
|
trailingIcon,
|
|
2248
2297
|
...inputProps
|
|
2249
2298
|
} = props;
|
|
2250
|
-
const inputRef =
|
|
2299
|
+
const inputRef = React29.useRef(null);
|
|
2251
2300
|
const handleContainerClick = () => {
|
|
2252
2301
|
if (disabled) return;
|
|
2253
2302
|
inputRef.current?.focus();
|
|
2254
2303
|
};
|
|
2255
2304
|
const showTrailingIcon = !!trailingIcon;
|
|
2256
|
-
return /* @__PURE__ */
|
|
2305
|
+
return /* @__PURE__ */ jsx31("div", { className: "flex flex-col gap-2 items-start", children: /* @__PURE__ */ jsx31("div", { className: "relative w-full", children: /* @__PURE__ */ jsxs20(
|
|
2257
2306
|
InputShell,
|
|
2258
2307
|
{
|
|
2259
2308
|
size,
|
|
@@ -2262,8 +2311,8 @@ var SearchInput = (props) => {
|
|
|
2262
2311
|
className,
|
|
2263
2312
|
onClick: handleContainerClick,
|
|
2264
2313
|
children: [
|
|
2265
|
-
showLeadingIcon && /* @__PURE__ */
|
|
2266
|
-
/* @__PURE__ */
|
|
2314
|
+
showLeadingIcon && /* @__PURE__ */ jsx31("span", { className: cn(iconWrapperVariants2({ size, disabled: !!disabled })), children: leadingIcon ?? /* @__PURE__ */ jsx31(SearchIcon2, {}) }),
|
|
2315
|
+
/* @__PURE__ */ jsx31(
|
|
2267
2316
|
Input,
|
|
2268
2317
|
{
|
|
2269
2318
|
ref: inputRef,
|
|
@@ -2277,7 +2326,7 @@ var SearchInput = (props) => {
|
|
|
2277
2326
|
...inputProps
|
|
2278
2327
|
}
|
|
2279
2328
|
),
|
|
2280
|
-
showTrailingIcon && /* @__PURE__ */
|
|
2329
|
+
showTrailingIcon && /* @__PURE__ */ jsx31("span", { className: cn("cursor-pointer", iconWrapperVariants2({ size, disabled: !!disabled })), children: trailingIcon })
|
|
2281
2330
|
]
|
|
2282
2331
|
}
|
|
2283
2332
|
) }) });
|
|
@@ -2285,8 +2334,8 @@ var SearchInput = (props) => {
|
|
|
2285
2334
|
SearchInput.displayName = "SearchInput";
|
|
2286
2335
|
|
|
2287
2336
|
// src/components/Inputs/Slider.tsx
|
|
2288
|
-
import * as
|
|
2289
|
-
import { jsx as
|
|
2337
|
+
import * as React30 from "react";
|
|
2338
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2290
2339
|
var wrapperBase2 = "flex flex-col gap-2 items-start";
|
|
2291
2340
|
var isRangeProps = (props) => {
|
|
2292
2341
|
return Array.isArray(props.value) || Array.isArray(props.defaultValue);
|
|
@@ -2312,7 +2361,7 @@ var Slider = (props) => {
|
|
|
2312
2361
|
const isRange = isRangeProps(props);
|
|
2313
2362
|
const isControlled = value !== void 0;
|
|
2314
2363
|
const expectedLength = isRange ? 2 : 1;
|
|
2315
|
-
const normalizeArray =
|
|
2364
|
+
const normalizeArray = React30.useCallback(
|
|
2316
2365
|
(arr, fallback) => {
|
|
2317
2366
|
if (!arr || arr.length === 0) return fallback;
|
|
2318
2367
|
if (arr.length === expectedLength) return arr;
|
|
@@ -2324,16 +2373,16 @@ var Slider = (props) => {
|
|
|
2324
2373
|
},
|
|
2325
2374
|
[expectedLength, max]
|
|
2326
2375
|
);
|
|
2327
|
-
const defaultInternal =
|
|
2376
|
+
const defaultInternal = React30.useMemo(() => {
|
|
2328
2377
|
const defaultValueArray = toArray(defaultValue);
|
|
2329
2378
|
if (defaultValueArray) return normalizeArray(defaultValueArray, []);
|
|
2330
2379
|
if (isRange) return [min, Math.min(min + (max - min) / 4, max)];
|
|
2331
2380
|
return [min + (max - min) / 3];
|
|
2332
2381
|
}, [defaultValue, min, max, isRange, normalizeArray]);
|
|
2333
|
-
const [internalValue, setInternalValue] =
|
|
2382
|
+
const [internalValue, setInternalValue] = React30.useState(
|
|
2334
2383
|
() => normalizeArray(isControlled ? toArray(value) : defaultInternal, defaultInternal)
|
|
2335
2384
|
);
|
|
2336
|
-
|
|
2385
|
+
React30.useEffect(() => {
|
|
2337
2386
|
if (isControlled) {
|
|
2338
2387
|
setInternalValue(
|
|
2339
2388
|
(current2) => normalizeArray(toArray(value), current2.length ? current2 : defaultInternal)
|
|
@@ -2341,15 +2390,15 @@ var Slider = (props) => {
|
|
|
2341
2390
|
}
|
|
2342
2391
|
}, [isControlled, value, normalizeArray, defaultInternal]);
|
|
2343
2392
|
const current = internalValue;
|
|
2344
|
-
const trackRef =
|
|
2345
|
-
const [draggingThumbIndex, setDraggingThumbIndex] =
|
|
2346
|
-
const [hoveredThumbIndex, setHoveredThumbIndex] =
|
|
2393
|
+
const trackRef = React30.useRef(null);
|
|
2394
|
+
const [draggingThumbIndex, setDraggingThumbIndex] = React30.useState(null);
|
|
2395
|
+
const [hoveredThumbIndex, setHoveredThumbIndex] = React30.useState(null);
|
|
2347
2396
|
const clamp = (val) => {
|
|
2348
2397
|
if (val < min) return min;
|
|
2349
2398
|
if (val > max) return max;
|
|
2350
2399
|
return val;
|
|
2351
2400
|
};
|
|
2352
|
-
|
|
2401
|
+
React30.useEffect(() => {
|
|
2353
2402
|
if (!isControlled) {
|
|
2354
2403
|
setInternalValue((prev) => {
|
|
2355
2404
|
const clamped = prev.map((v) => clamp(v));
|
|
@@ -2542,7 +2591,7 @@ var Slider = (props) => {
|
|
|
2542
2591
|
const trackHeight = 32;
|
|
2543
2592
|
const thumbWidth = 18;
|
|
2544
2593
|
const thumbRadius = thumbWidth / 2;
|
|
2545
|
-
const renderTooltipBubble = (key, percent, labelText, isVisible) => /* @__PURE__ */
|
|
2594
|
+
const renderTooltipBubble = (key, percent, labelText, isVisible) => /* @__PURE__ */ jsx32(
|
|
2546
2595
|
"div",
|
|
2547
2596
|
{
|
|
2548
2597
|
className: cn(
|
|
@@ -2562,17 +2611,17 @@ var Slider = (props) => {
|
|
|
2562
2611
|
{
|
|
2563
2612
|
className: cn("relative rounded-4 shadow-card-md px-(--space-8) py-(--space-4) bg-(--background-tooltip)"),
|
|
2564
2613
|
children: [
|
|
2565
|
-
/* @__PURE__ */
|
|
2614
|
+
/* @__PURE__ */ jsx32(
|
|
2566
2615
|
"p",
|
|
2567
2616
|
{
|
|
2568
2617
|
className: cn(
|
|
2569
|
-
"paragraph-
|
|
2618
|
+
"paragraph-sm",
|
|
2570
2619
|
disabled ? "text-secondary" : "text-primary"
|
|
2571
2620
|
),
|
|
2572
2621
|
children: labelText
|
|
2573
2622
|
}
|
|
2574
2623
|
),
|
|
2575
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ jsx32(
|
|
2576
2625
|
"div",
|
|
2577
2626
|
{
|
|
2578
2627
|
className: cn(
|
|
@@ -2590,7 +2639,7 @@ var Slider = (props) => {
|
|
|
2590
2639
|
const renderHandle = (index, percent, ariaValueText) => {
|
|
2591
2640
|
const val = index === 0 ? primary : secondary;
|
|
2592
2641
|
const isDragging = draggingThumbIndex === index;
|
|
2593
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ jsx32(
|
|
2594
2643
|
"button",
|
|
2595
2644
|
{
|
|
2596
2645
|
type: "button",
|
|
@@ -2630,7 +2679,7 @@ var Slider = (props) => {
|
|
|
2630
2679
|
index
|
|
2631
2680
|
);
|
|
2632
2681
|
};
|
|
2633
|
-
return /* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ jsx32(
|
|
2634
2683
|
"div",
|
|
2635
2684
|
{
|
|
2636
2685
|
className: wrapperBase2,
|
|
@@ -2660,7 +2709,7 @@ var Slider = (props) => {
|
|
|
2660
2709
|
ref: trackRef,
|
|
2661
2710
|
onPointerDown: handleTrackPointerDown,
|
|
2662
2711
|
children: [
|
|
2663
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ jsx32(
|
|
2664
2713
|
"div",
|
|
2665
2714
|
{
|
|
2666
2715
|
className: cn(
|
|
@@ -2679,11 +2728,11 @@ var Slider = (props) => {
|
|
|
2679
2728
|
}
|
|
2680
2729
|
)
|
|
2681
2730
|
] }),
|
|
2682
|
-
showNumeric && /* @__PURE__ */
|
|
2731
|
+
showNumeric && /* @__PURE__ */ jsx32(
|
|
2683
2732
|
"p",
|
|
2684
2733
|
{
|
|
2685
2734
|
className: cn(
|
|
2686
|
-
"paragraph-
|
|
2735
|
+
"paragraph-sm text-primary",
|
|
2687
2736
|
disabled && "text-primary-disabled"
|
|
2688
2737
|
),
|
|
2689
2738
|
children: formatNumericLabel()
|
|
@@ -2696,9 +2745,9 @@ var Slider = (props) => {
|
|
|
2696
2745
|
Slider.displayName = "Slider";
|
|
2697
2746
|
|
|
2698
2747
|
// src/components/Inputs/TextArea.tsx
|
|
2699
|
-
import * as
|
|
2748
|
+
import * as React31 from "react";
|
|
2700
2749
|
import { MaximizeIcon } from "@bubo-squared/icons";
|
|
2701
|
-
import { jsx as
|
|
2750
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2702
2751
|
var wrapperBase3 = "flex flex-col gap-2 items-start w-full";
|
|
2703
2752
|
var TextArea = (props) => {
|
|
2704
2753
|
const {
|
|
@@ -2717,7 +2766,7 @@ var TextArea = (props) => {
|
|
|
2717
2766
|
...textareaProps
|
|
2718
2767
|
} = props;
|
|
2719
2768
|
const isControlled = value !== void 0;
|
|
2720
|
-
const [internalValue, setInternalValue] =
|
|
2769
|
+
const [internalValue, setInternalValue] = React31.useState(
|
|
2721
2770
|
defaultValue ?? ""
|
|
2722
2771
|
);
|
|
2723
2772
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
@@ -2725,10 +2774,10 @@ var TextArea = (props) => {
|
|
|
2725
2774
|
const currentLength = currentValue.length;
|
|
2726
2775
|
const effectiveMaxLength = type === "character-limit" ? maxLength ?? 144 : void 0;
|
|
2727
2776
|
const showCharacterLimit = type === "character-limit" && typeof effectiveMaxLength === "number";
|
|
2728
|
-
const textareaRef =
|
|
2729
|
-
const containerRef =
|
|
2730
|
-
const [height, setHeight] =
|
|
2731
|
-
const [width, setWidth] =
|
|
2777
|
+
const textareaRef = React31.useRef(null);
|
|
2778
|
+
const containerRef = React31.useRef(null);
|
|
2779
|
+
const [height, setHeight] = React31.useState(void 0);
|
|
2780
|
+
const [width, setWidth] = React31.useState(void 0);
|
|
2732
2781
|
const minHeight = 80;
|
|
2733
2782
|
const minWidth = 240;
|
|
2734
2783
|
const handleContainerClick = () => {
|
|
@@ -2741,7 +2790,7 @@ var TextArea = (props) => {
|
|
|
2741
2790
|
}
|
|
2742
2791
|
onChange?.(event);
|
|
2743
2792
|
};
|
|
2744
|
-
const inputId =
|
|
2793
|
+
const inputId = React31.useId();
|
|
2745
2794
|
const labelId = `${inputId}-label`;
|
|
2746
2795
|
const hintId = `${inputId}-hint`;
|
|
2747
2796
|
const statusBorderClass = {
|
|
@@ -2781,19 +2830,19 @@ var TextArea = (props) => {
|
|
|
2781
2830
|
window.addEventListener("pointerup", handlePointerUp);
|
|
2782
2831
|
};
|
|
2783
2832
|
return /* @__PURE__ */ jsxs22("div", { className: wrapperBase3, children: [
|
|
2784
|
-
label && /* @__PURE__ */
|
|
2833
|
+
label && /* @__PURE__ */ jsx33(
|
|
2785
2834
|
"label",
|
|
2786
2835
|
{
|
|
2787
2836
|
htmlFor: inputId,
|
|
2788
2837
|
id: labelId,
|
|
2789
2838
|
className: cn(
|
|
2790
|
-
"paragraph-
|
|
2839
|
+
"paragraph-sm",
|
|
2791
2840
|
disabled ? "text-primary-disabled" : "text-primary"
|
|
2792
2841
|
),
|
|
2793
2842
|
children: label
|
|
2794
2843
|
}
|
|
2795
2844
|
),
|
|
2796
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ jsx33("div", { className: "relative w-full", children: /* @__PURE__ */ jsxs22(
|
|
2797
2846
|
"div",
|
|
2798
2847
|
{
|
|
2799
2848
|
className: cn(
|
|
@@ -2812,7 +2861,7 @@ var TextArea = (props) => {
|
|
|
2812
2861
|
onClick: handleContainerClick,
|
|
2813
2862
|
"aria-disabled": disabled || void 0,
|
|
2814
2863
|
children: [
|
|
2815
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx33(
|
|
2816
2865
|
"textarea",
|
|
2817
2866
|
{
|
|
2818
2867
|
id: inputId,
|
|
@@ -2826,7 +2875,7 @@ var TextArea = (props) => {
|
|
|
2826
2875
|
rows,
|
|
2827
2876
|
maxLength: effectiveMaxLength,
|
|
2828
2877
|
className: cn(
|
|
2829
|
-
"paragraph-
|
|
2878
|
+
"paragraph-md bg-transparent outline-none w-full h-full resize-none px-2 py-2 pr-8",
|
|
2830
2879
|
disabled ? "text-primary-disabled" : hasValue ? "text-primary" : "text-(--color-secondary)",
|
|
2831
2880
|
showCharacterLimit && "pr-16"
|
|
2832
2881
|
),
|
|
@@ -2847,19 +2896,19 @@ var TextArea = (props) => {
|
|
|
2847
2896
|
]
|
|
2848
2897
|
}
|
|
2849
2898
|
),
|
|
2850
|
-
type === "responsive" && /* @__PURE__ */
|
|
2899
|
+
type === "responsive" && /* @__PURE__ */ jsx33(
|
|
2851
2900
|
"div",
|
|
2852
2901
|
{
|
|
2853
2902
|
className: "absolute bottom-1 right-1 h-3 w-3 " + (disabled ? "cursor-auto" : "cursor-nwse-resize"),
|
|
2854
2903
|
onPointerDown: disabled ? void 0 : handleResizePointerDown,
|
|
2855
|
-
children: /* @__PURE__ */
|
|
2904
|
+
children: /* @__PURE__ */ jsx33(
|
|
2856
2905
|
"span",
|
|
2857
2906
|
{
|
|
2858
2907
|
className: cn(
|
|
2859
2908
|
"absolute bottom-0 right-0 flex h-4 w-4 items-center justify-center text-(--icon-primary)",
|
|
2860
2909
|
disabled && "text-(--icon-primary-disabled)"
|
|
2861
2910
|
),
|
|
2862
|
-
children: /* @__PURE__ */
|
|
2911
|
+
children: /* @__PURE__ */ jsx33(MaximizeIcon, {})
|
|
2863
2912
|
}
|
|
2864
2913
|
)
|
|
2865
2914
|
}
|
|
@@ -2867,7 +2916,7 @@ var TextArea = (props) => {
|
|
|
2867
2916
|
]
|
|
2868
2917
|
}
|
|
2869
2918
|
) }),
|
|
2870
|
-
hint && !hideHint && /* @__PURE__ */
|
|
2919
|
+
hint && !hideHint && /* @__PURE__ */ jsx33(
|
|
2871
2920
|
"p",
|
|
2872
2921
|
{
|
|
2873
2922
|
id: hint ? hintId : void 0,
|
|
@@ -2880,14 +2929,14 @@ var TextArea = (props) => {
|
|
|
2880
2929
|
TextArea.displayName = "TextArea";
|
|
2881
2930
|
|
|
2882
2931
|
// src/components/Inputs/TextInput.tsx
|
|
2883
|
-
import * as
|
|
2932
|
+
import * as React32 from "react";
|
|
2884
2933
|
import { cva as cva18 } from "class-variance-authority";
|
|
2885
|
-
import { jsx as
|
|
2934
|
+
import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2886
2935
|
var inputTextVariants2 = cva18("truncate", {
|
|
2887
2936
|
variants: {
|
|
2888
2937
|
size: {
|
|
2889
|
-
sm: "paragraph-
|
|
2890
|
-
md: "paragraph-
|
|
2938
|
+
sm: "paragraph-md",
|
|
2939
|
+
md: "paragraph-lg",
|
|
2891
2940
|
lg: "subtitle",
|
|
2892
2941
|
xl: "h6-title"
|
|
2893
2942
|
}
|
|
@@ -2933,11 +2982,11 @@ var TextInput = (props) => {
|
|
|
2933
2982
|
...inputProps
|
|
2934
2983
|
} = props;
|
|
2935
2984
|
const isControlled = value !== void 0;
|
|
2936
|
-
const [internalValue, setInternalValue] =
|
|
2985
|
+
const [internalValue, setInternalValue] = React32.useState(
|
|
2937
2986
|
defaultValue ?? ""
|
|
2938
2987
|
);
|
|
2939
2988
|
const currentValue = (isControlled ? value : internalValue) ?? "";
|
|
2940
|
-
const inputRef =
|
|
2989
|
+
const inputRef = React32.useRef(null);
|
|
2941
2990
|
const handleContainerClick = () => {
|
|
2942
2991
|
if (disabled) return;
|
|
2943
2992
|
inputRef.current?.focus();
|
|
@@ -2950,7 +2999,7 @@ var TextInput = (props) => {
|
|
|
2950
2999
|
};
|
|
2951
3000
|
const showLeadingIcon = !!leadingIcon;
|
|
2952
3001
|
const showTrailingIcon = !!trailingIcon;
|
|
2953
|
-
return /* @__PURE__ */
|
|
3002
|
+
return /* @__PURE__ */ jsx34(
|
|
2954
3003
|
Field,
|
|
2955
3004
|
{
|
|
2956
3005
|
label,
|
|
@@ -2967,7 +3016,7 @@ var TextInput = (props) => {
|
|
|
2967
3016
|
className,
|
|
2968
3017
|
onClick: handleContainerClick,
|
|
2969
3018
|
children: [
|
|
2970
|
-
showLeadingIcon && /* @__PURE__ */
|
|
3019
|
+
showLeadingIcon && /* @__PURE__ */ jsx34(
|
|
2971
3020
|
"span",
|
|
2972
3021
|
{
|
|
2973
3022
|
className: cn(
|
|
@@ -2976,7 +3025,7 @@ var TextInput = (props) => {
|
|
|
2976
3025
|
children: leadingIcon
|
|
2977
3026
|
}
|
|
2978
3027
|
),
|
|
2979
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ jsx34(
|
|
2980
3029
|
Input,
|
|
2981
3030
|
{
|
|
2982
3031
|
ref: inputRef,
|
|
@@ -2994,7 +3043,7 @@ var TextInput = (props) => {
|
|
|
2994
3043
|
...inputProps
|
|
2995
3044
|
}
|
|
2996
3045
|
),
|
|
2997
|
-
showTrailingIcon && /* @__PURE__ */
|
|
3046
|
+
showTrailingIcon && /* @__PURE__ */ jsx34(
|
|
2998
3047
|
"span",
|
|
2999
3048
|
{
|
|
3000
3049
|
className: cn(
|
|
@@ -3013,7 +3062,7 @@ TextInput.displayName = "TextInput";
|
|
|
3013
3062
|
|
|
3014
3063
|
// src/components/Inputs/Toggle.tsx
|
|
3015
3064
|
import "react";
|
|
3016
|
-
import { jsx as
|
|
3065
|
+
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3017
3066
|
var Toggle = (props) => {
|
|
3018
3067
|
const { label, className, disabled, ...inputProps } = props;
|
|
3019
3068
|
return /* @__PURE__ */ jsxs24(
|
|
@@ -3025,7 +3074,7 @@ var Toggle = (props) => {
|
|
|
3025
3074
|
),
|
|
3026
3075
|
children: [
|
|
3027
3076
|
/* @__PURE__ */ jsxs24("span", { className: "relative inline-flex items-center", children: [
|
|
3028
|
-
/* @__PURE__ */
|
|
3077
|
+
/* @__PURE__ */ jsx35(
|
|
3029
3078
|
"input",
|
|
3030
3079
|
{
|
|
3031
3080
|
type: "checkbox",
|
|
@@ -3034,7 +3083,7 @@ var Toggle = (props) => {
|
|
|
3034
3083
|
...inputProps
|
|
3035
3084
|
}
|
|
3036
3085
|
),
|
|
3037
|
-
/* @__PURE__ */
|
|
3086
|
+
/* @__PURE__ */ jsx35(
|
|
3038
3087
|
"span",
|
|
3039
3088
|
{
|
|
3040
3089
|
className: cn(
|
|
@@ -3074,7 +3123,7 @@ var Toggle = (props) => {
|
|
|
3074
3123
|
"peer-disabled:[&>.knob]:peer-checked:bg-(--background-primary-hover)",
|
|
3075
3124
|
className
|
|
3076
3125
|
),
|
|
3077
|
-
children: /* @__PURE__ */
|
|
3126
|
+
children: /* @__PURE__ */ jsx35(
|
|
3078
3127
|
"span",
|
|
3079
3128
|
{
|
|
3080
3129
|
className: cn(
|
|
@@ -3086,11 +3135,11 @@ var Toggle = (props) => {
|
|
|
3086
3135
|
}
|
|
3087
3136
|
)
|
|
3088
3137
|
] }),
|
|
3089
|
-
label && /* @__PURE__ */
|
|
3138
|
+
label && /* @__PURE__ */ jsx35(
|
|
3090
3139
|
"span",
|
|
3091
3140
|
{
|
|
3092
3141
|
className: cn(
|
|
3093
|
-
"paragraph-
|
|
3142
|
+
"paragraph-sm text-primary",
|
|
3094
3143
|
disabled && "text-primary-disabled"
|
|
3095
3144
|
),
|
|
3096
3145
|
children: label
|
|
@@ -3104,7 +3153,7 @@ Toggle.displayName = "Toggle";
|
|
|
3104
3153
|
|
|
3105
3154
|
// src/components/Inputs/WebsiteInput.tsx
|
|
3106
3155
|
import "react";
|
|
3107
|
-
import { jsx as
|
|
3156
|
+
import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3108
3157
|
var WebsiteInput = (props) => {
|
|
3109
3158
|
const {
|
|
3110
3159
|
hierarchy = "leading",
|
|
@@ -3125,7 +3174,7 @@ var WebsiteInput = (props) => {
|
|
|
3125
3174
|
);
|
|
3126
3175
|
const addonTextClass = cn(
|
|
3127
3176
|
"flex mb-0!",
|
|
3128
|
-
size === "xl" ? "paragraph-
|
|
3177
|
+
size === "xl" ? "paragraph-md" : size === "sm" ? "paragraph-md" : "paragraph-sm",
|
|
3129
3178
|
disabled ? "text-primary-disabled" : "text-primary group-hover:text-(--color-primary-hover) group-focus-within:text-(--color-primary-focus)"
|
|
3130
3179
|
);
|
|
3131
3180
|
const baseAddonClass = cn(
|
|
@@ -3142,14 +3191,14 @@ var WebsiteInput = (props) => {
|
|
|
3142
3191
|
disabled ? "text-(--icon-primary-disabled)" : "text-(--icon-primary) group-hover:text-(--icon-primary-hover) group-focus-within:text-(--icon-primary-focus)"
|
|
3143
3192
|
);
|
|
3144
3193
|
const leadingAddon = /* @__PURE__ */ jsxs25("div", { className: baseAddonClass, children: [
|
|
3145
|
-
/* @__PURE__ */
|
|
3146
|
-
icon != null && /* @__PURE__ */
|
|
3194
|
+
/* @__PURE__ */ jsx36("div", { className: addonTextClass, children: protocolLabel }),
|
|
3195
|
+
icon != null && /* @__PURE__ */ jsx36("span", { className: iconWrapperClass, children: icon })
|
|
3147
3196
|
] });
|
|
3148
3197
|
const trailingAddon = /* @__PURE__ */ jsxs25("div", { className: baseAddonClass, children: [
|
|
3149
|
-
icon != null && /* @__PURE__ */
|
|
3150
|
-
/* @__PURE__ */
|
|
3198
|
+
icon != null && /* @__PURE__ */ jsx36("span", { className: iconWrapperClass, children: icon }),
|
|
3199
|
+
/* @__PURE__ */ jsx36("div", { className: addonTextClass, children: protocolLabel })
|
|
3151
3200
|
] });
|
|
3152
|
-
return /* @__PURE__ */
|
|
3201
|
+
return /* @__PURE__ */ jsx36(
|
|
3153
3202
|
TextInput,
|
|
3154
3203
|
{
|
|
3155
3204
|
...rest,
|
|
@@ -3164,9 +3213,9 @@ var WebsiteInput = (props) => {
|
|
|
3164
3213
|
WebsiteInput.displayName = "WebsiteInput";
|
|
3165
3214
|
|
|
3166
3215
|
// src/components/Feedback/Popover.tsx
|
|
3167
|
-
import * as
|
|
3216
|
+
import * as React35 from "react";
|
|
3168
3217
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
|
3169
|
-
import { jsx as
|
|
3218
|
+
import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3170
3219
|
var PopoverArrow = PopoverPrimitive2.Arrow;
|
|
3171
3220
|
var Popover2 = (props) => {
|
|
3172
3221
|
const {
|
|
@@ -3183,7 +3232,7 @@ var Popover2 = (props) => {
|
|
|
3183
3232
|
offset = 10,
|
|
3184
3233
|
children
|
|
3185
3234
|
} = props;
|
|
3186
|
-
const [open, setOpen] =
|
|
3235
|
+
const [open, setOpen] = React35.useState(false);
|
|
3187
3236
|
const handleCancel = () => {
|
|
3188
3237
|
onCancel?.();
|
|
3189
3238
|
setOpen(false);
|
|
@@ -3226,7 +3275,7 @@ var Popover2 = (props) => {
|
|
|
3226
3275
|
};
|
|
3227
3276
|
const { side, align } = mapPlacementToSideAndAlign(placement);
|
|
3228
3277
|
return /* @__PURE__ */ jsxs26(Popover, { open, onOpenChange: setOpen, children: [
|
|
3229
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsx37(PopoverTrigger, { asChild: true, children }),
|
|
3230
3279
|
/* @__PURE__ */ jsxs26(
|
|
3231
3280
|
PopoverContent,
|
|
3232
3281
|
{
|
|
@@ -3235,16 +3284,16 @@ var Popover2 = (props) => {
|
|
|
3235
3284
|
sideOffset: offset,
|
|
3236
3285
|
className: cn(popoverClasses, className),
|
|
3237
3286
|
children: [
|
|
3238
|
-
showArrow && /* @__PURE__ */
|
|
3287
|
+
showArrow && /* @__PURE__ */ jsx37(PopoverArrow, { className: popoverArrowClasses }),
|
|
3239
3288
|
/* @__PURE__ */ jsxs26("div", { className: "grid gap-4", children: [
|
|
3240
3289
|
/* @__PURE__ */ jsxs26("div", { className: "space-y-2", children: [
|
|
3241
|
-
/* @__PURE__ */
|
|
3242
|
-
/* @__PURE__ */
|
|
3243
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ jsx37("span", { className: "caption text-secondary", children: strapline }),
|
|
3291
|
+
/* @__PURE__ */ jsx37("h4", { className: "subtitle-medium text-primary", children: title }),
|
|
3292
|
+
/* @__PURE__ */ jsx37("p", { className: "paragraph-sm text-primary", children: description })
|
|
3244
3293
|
] }),
|
|
3245
3294
|
/* @__PURE__ */ jsxs26("div", { className: "flex justify-start items-center gap-4 flex-wrap", children: [
|
|
3246
|
-
/* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3295
|
+
/* @__PURE__ */ jsx37(Button, { size: "sm", variant: "secondary", onClick: handleCancel, children: cancelText || "Cancel" }),
|
|
3296
|
+
/* @__PURE__ */ jsx37(Button, { size: "sm", variant: "primary", onClick: handleOk, children: okText || "Ok" })
|
|
3248
3297
|
] })
|
|
3249
3298
|
] })
|
|
3250
3299
|
]
|
|
@@ -3255,11 +3304,11 @@ var Popover2 = (props) => {
|
|
|
3255
3304
|
Popover2.displayName = "Popover";
|
|
3256
3305
|
|
|
3257
3306
|
// src/components/Navigation/Breadcrumb.tsx
|
|
3258
|
-
import * as
|
|
3307
|
+
import * as React36 from "react";
|
|
3259
3308
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
3260
3309
|
import { cva as cva19 } from "class-variance-authority";
|
|
3261
3310
|
import { ChevronRightIcon } from "@bubo-squared/icons";
|
|
3262
|
-
import { jsx as
|
|
3311
|
+
import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3263
3312
|
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";
|
|
3264
3313
|
var breadcrumbIconVariants = cva19(
|
|
3265
3314
|
"flex shrink-0 items-center justify-center w-5 h-5 *:w-5 *:h-5",
|
|
@@ -3276,7 +3325,7 @@ var breadcrumbIconVariants = cva19(
|
|
|
3276
3325
|
}
|
|
3277
3326
|
);
|
|
3278
3327
|
var breadcrumbTextVariants = cva19(
|
|
3279
|
-
"font-normal text-[length:var(--font-size-paragraph-
|
|
3328
|
+
"font-normal text-[length:var(--font-size-paragraph-lg-18)] leading-[var(--font-line-height-28)] tracking-[var(--font-letter-spacing-02)] whitespace-nowrap",
|
|
3280
3329
|
{
|
|
3281
3330
|
variants: {
|
|
3282
3331
|
variant: {
|
|
@@ -3289,7 +3338,7 @@ var breadcrumbTextVariants = cva19(
|
|
|
3289
3338
|
}
|
|
3290
3339
|
}
|
|
3291
3340
|
);
|
|
3292
|
-
var Breadcrumb =
|
|
3341
|
+
var Breadcrumb = React36.forwardRef((props, ref) => {
|
|
3293
3342
|
const {
|
|
3294
3343
|
asChild = false,
|
|
3295
3344
|
variant = "flat",
|
|
@@ -3311,8 +3360,8 @@ var Breadcrumb = React35.forwardRef((props, ref) => {
|
|
|
3311
3360
|
ref,
|
|
3312
3361
|
...rest,
|
|
3313
3362
|
children: [
|
|
3314
|
-
showIcon && /* @__PURE__ */
|
|
3315
|
-
content && /* @__PURE__ */
|
|
3363
|
+
showIcon && /* @__PURE__ */ jsx38("span", { className: cn(breadcrumbIconVariants({ variant })), children: icon ?? /* @__PURE__ */ jsx38(ChevronRightIcon, {}) }),
|
|
3364
|
+
content && /* @__PURE__ */ jsx38("span", { className: cn(breadcrumbTextVariants({ variant })), children: content })
|
|
3316
3365
|
]
|
|
3317
3366
|
}
|
|
3318
3367
|
);
|
|
@@ -3321,13 +3370,13 @@ Breadcrumb.displayName = "Breadcrumb";
|
|
|
3321
3370
|
|
|
3322
3371
|
// src/components/Logo/LogoIcon.tsx
|
|
3323
3372
|
import { cva as cva20 } from "class-variance-authority";
|
|
3324
|
-
import { jsx as
|
|
3373
|
+
import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3325
3374
|
var LogoIconSvg = (props) => /* @__PURE__ */ jsxs28("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3326
|
-
/* @__PURE__ */
|
|
3327
|
-
/* @__PURE__ */
|
|
3328
|
-
/* @__PURE__ */
|
|
3329
|
-
/* @__PURE__ */
|
|
3330
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ jsx39("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" }),
|
|
3376
|
+
/* @__PURE__ */ jsx39("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" }),
|
|
3377
|
+
/* @__PURE__ */ jsx39("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" }),
|
|
3378
|
+
/* @__PURE__ */ jsx39("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" }),
|
|
3379
|
+
/* @__PURE__ */ jsx39("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" })
|
|
3331
3380
|
] });
|
|
3332
3381
|
var logoIconVariants = cva20(
|
|
3333
3382
|
"relative bg-linear-to-t from-gray-800 to-gray-950 overflow-hidden flex justify-center items-center",
|
|
@@ -3354,26 +3403,26 @@ var logoIconSizeClass = {
|
|
|
3354
3403
|
xl: "size-96"
|
|
3355
3404
|
};
|
|
3356
3405
|
var LogoIcon = ({ className, size = "md" }) => {
|
|
3357
|
-
return /* @__PURE__ */
|
|
3406
|
+
return /* @__PURE__ */ jsx39("div", { className: cn(logoIconVariants({ size }), className), children: /* @__PURE__ */ jsx39(LogoIconSvg, { className: logoIconSizeClass[size] }) });
|
|
3358
3407
|
};
|
|
3359
3408
|
|
|
3360
3409
|
// src/components/Logo/Logo.tsx
|
|
3361
3410
|
import { cva as cva21 } from "class-variance-authority";
|
|
3362
|
-
import { jsx as
|
|
3411
|
+
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3363
3412
|
var LogoIconSvg2 = (props) => /* @__PURE__ */ jsxs29("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3364
|
-
/* @__PURE__ */
|
|
3365
|
-
/* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */
|
|
3367
|
-
/* @__PURE__ */
|
|
3368
|
-
/* @__PURE__ */
|
|
3413
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3414
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3415
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3416
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3417
|
+
/* @__PURE__ */ jsx40("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" })
|
|
3369
3418
|
] });
|
|
3370
3419
|
var LogoTextSvg = (props) => /* @__PURE__ */ jsxs29("svg", { width: "111", height: "32", viewBox: "0 0 111 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3371
|
-
/* @__PURE__ */
|
|
3372
|
-
/* @__PURE__ */
|
|
3373
|
-
/* @__PURE__ */
|
|
3374
|
-
/* @__PURE__ */
|
|
3375
|
-
/* @__PURE__ */
|
|
3376
|
-
/* @__PURE__ */
|
|
3420
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3421
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3422
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3423
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3424
|
+
/* @__PURE__ */ jsx40("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" }),
|
|
3425
|
+
/* @__PURE__ */ jsx40("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" })
|
|
3377
3426
|
] });
|
|
3378
3427
|
var logoWrapperVariants = cva21("inline-flex", {
|
|
3379
3428
|
variants: {
|
|
@@ -3414,8 +3463,8 @@ var logoTextSizeVariants = cva21("", {
|
|
|
3414
3463
|
var Logo = ({ className, textColor, variant = "inline" }) => {
|
|
3415
3464
|
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-primary";
|
|
3416
3465
|
return /* @__PURE__ */ jsxs29("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
|
|
3417
|
-
/* @__PURE__ */
|
|
3418
|
-
/* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ jsx40(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
|
|
3467
|
+
/* @__PURE__ */ jsx40(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })
|
|
3419
3468
|
] });
|
|
3420
3469
|
};
|
|
3421
3470
|
export {
|
|
@@ -3449,6 +3498,7 @@ export {
|
|
|
3449
3498
|
TextArea,
|
|
3450
3499
|
TextInput,
|
|
3451
3500
|
Toggle,
|
|
3501
|
+
Typography,
|
|
3452
3502
|
WebsiteInput,
|
|
3453
3503
|
cn
|
|
3454
3504
|
};
|