@bergetai/ui 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +479 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +460 -360
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -771,21 +771,112 @@ var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
|
771
771
|
};
|
|
772
772
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
773
773
|
|
|
774
|
+
// src/components/navigation-menu/NavigationMenu.tsx
|
|
775
|
+
import * as React13 from "react";
|
|
776
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
777
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
778
|
+
import { ChevronDown } from "lucide-react";
|
|
779
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
780
|
+
var NavigationMenu = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
781
|
+
NavigationMenuPrimitive.Root,
|
|
782
|
+
{
|
|
783
|
+
ref,
|
|
784
|
+
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
|
|
785
|
+
...props,
|
|
786
|
+
children: [
|
|
787
|
+
children,
|
|
788
|
+
/* @__PURE__ */ jsx14(NavigationMenuViewport, {})
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
));
|
|
792
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
793
|
+
var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
794
|
+
NavigationMenuPrimitive.List,
|
|
795
|
+
{
|
|
796
|
+
ref,
|
|
797
|
+
className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
|
|
798
|
+
...props
|
|
799
|
+
}
|
|
800
|
+
));
|
|
801
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
802
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
803
|
+
var navigationMenuTriggerStyle = cva7(
|
|
804
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-berget-xs px-4 py-2 text-sm font-medium transition-colors hover:bg-berget-surface-02 hover:text-berget-foreground focus:bg-berget-surface-02 focus:text-berget-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-berget-foreground data-[state=open]:bg-berget-border data-[state=open]:hover:bg-berget-border data-[state=open]:focus:bg-berget-border"
|
|
805
|
+
);
|
|
806
|
+
var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
807
|
+
NavigationMenuPrimitive.Trigger,
|
|
808
|
+
{
|
|
809
|
+
ref,
|
|
810
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
811
|
+
...props,
|
|
812
|
+
children: [
|
|
813
|
+
children,
|
|
814
|
+
" ",
|
|
815
|
+
/* @__PURE__ */ jsx14(
|
|
816
|
+
ChevronDown,
|
|
817
|
+
{
|
|
818
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
819
|
+
"aria-hidden": "true"
|
|
820
|
+
}
|
|
821
|
+
)
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
));
|
|
825
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
826
|
+
var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
827
|
+
NavigationMenuPrimitive.Content,
|
|
828
|
+
{
|
|
829
|
+
ref,
|
|
830
|
+
className: cn(
|
|
831
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
832
|
+
className
|
|
833
|
+
),
|
|
834
|
+
...props
|
|
835
|
+
}
|
|
836
|
+
));
|
|
837
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
838
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
839
|
+
var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx14(
|
|
840
|
+
NavigationMenuPrimitive.Viewport,
|
|
841
|
+
{
|
|
842
|
+
className: cn(
|
|
843
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
844
|
+
className
|
|
845
|
+
),
|
|
846
|
+
ref,
|
|
847
|
+
...props
|
|
848
|
+
}
|
|
849
|
+
) }));
|
|
850
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
851
|
+
var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
852
|
+
NavigationMenuPrimitive.Indicator,
|
|
853
|
+
{
|
|
854
|
+
ref,
|
|
855
|
+
className: cn(
|
|
856
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
857
|
+
className
|
|
858
|
+
),
|
|
859
|
+
...props,
|
|
860
|
+
children: /* @__PURE__ */ jsx14("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
|
|
861
|
+
}
|
|
862
|
+
));
|
|
863
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
864
|
+
|
|
774
865
|
// src/components/table/Table.tsx
|
|
775
|
-
import * as
|
|
866
|
+
import * as React15 from "react";
|
|
776
867
|
|
|
777
868
|
// src/primitives/table.tsx
|
|
778
|
-
import * as
|
|
779
|
-
import { jsx as
|
|
780
|
-
var Table =
|
|
781
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
869
|
+
import * as React14 from "react";
|
|
870
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
871
|
+
var Table = React14.forwardRef(
|
|
872
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx15("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
782
873
|
);
|
|
783
874
|
Table.displayName = "Table";
|
|
784
|
-
var TableHeader =
|
|
875
|
+
var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
785
876
|
TableHeader.displayName = "TableHeader";
|
|
786
|
-
var TableBody =
|
|
877
|
+
var TableBody = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
787
878
|
TableBody.displayName = "TableBody";
|
|
788
|
-
var TableFooter =
|
|
879
|
+
var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
789
880
|
"tfoot",
|
|
790
881
|
{
|
|
791
882
|
ref,
|
|
@@ -794,8 +885,8 @@ var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
794
885
|
}
|
|
795
886
|
));
|
|
796
887
|
TableFooter.displayName = "TableFooter";
|
|
797
|
-
var TableRow =
|
|
798
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
888
|
+
var TableRow = React14.forwardRef(
|
|
889
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
799
890
|
"tr",
|
|
800
891
|
{
|
|
801
892
|
ref,
|
|
@@ -808,7 +899,7 @@ var TableRow = React13.forwardRef(
|
|
|
808
899
|
)
|
|
809
900
|
);
|
|
810
901
|
TableRow.displayName = "TableRow";
|
|
811
|
-
var TableHead =
|
|
902
|
+
var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
812
903
|
"th",
|
|
813
904
|
{
|
|
814
905
|
ref,
|
|
@@ -820,7 +911,7 @@ var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
820
911
|
}
|
|
821
912
|
));
|
|
822
913
|
TableHead.displayName = "TableHead";
|
|
823
|
-
var TableCell =
|
|
914
|
+
var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
824
915
|
"td",
|
|
825
916
|
{
|
|
826
917
|
ref,
|
|
@@ -829,16 +920,16 @@ var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
829
920
|
}
|
|
830
921
|
));
|
|
831
922
|
TableCell.displayName = "TableCell";
|
|
832
|
-
var TableCaption =
|
|
923
|
+
var TableCaption = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
833
924
|
TableCaption.displayName = "TableCaption";
|
|
834
925
|
|
|
835
926
|
// src/components/table/Table.tsx
|
|
836
|
-
import { jsx as
|
|
837
|
-
var Table2 =
|
|
838
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
927
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
928
|
+
var Table2 = React15.forwardRef(
|
|
929
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx16(Table, { ref, className, ...props })
|
|
839
930
|
);
|
|
840
931
|
Table2.displayName = "Table";
|
|
841
|
-
var TableHeader2 =
|
|
932
|
+
var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
842
933
|
TableHeader,
|
|
843
934
|
{
|
|
844
935
|
ref,
|
|
@@ -847,7 +938,7 @@ var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
847
938
|
}
|
|
848
939
|
));
|
|
849
940
|
TableHeader2.displayName = "TableHeader";
|
|
850
|
-
var TableBody2 =
|
|
941
|
+
var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
851
942
|
TableBody,
|
|
852
943
|
{
|
|
853
944
|
ref,
|
|
@@ -856,7 +947,7 @@ var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
856
947
|
}
|
|
857
948
|
));
|
|
858
949
|
TableBody2.displayName = "TableBody";
|
|
859
|
-
var TableFooter2 =
|
|
950
|
+
var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
860
951
|
TableFooter,
|
|
861
952
|
{
|
|
862
953
|
ref,
|
|
@@ -868,8 +959,8 @@ var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
868
959
|
}
|
|
869
960
|
));
|
|
870
961
|
TableFooter2.displayName = "TableFooter";
|
|
871
|
-
var TableRow2 =
|
|
872
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
962
|
+
var TableRow2 = React15.forwardRef(
|
|
963
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
873
964
|
TableRow,
|
|
874
965
|
{
|
|
875
966
|
ref,
|
|
@@ -882,7 +973,7 @@ var TableRow2 = React14.forwardRef(
|
|
|
882
973
|
)
|
|
883
974
|
);
|
|
884
975
|
TableRow2.displayName = "TableRow";
|
|
885
|
-
var TableHead2 =
|
|
976
|
+
var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
886
977
|
TableHead,
|
|
887
978
|
{
|
|
888
979
|
ref,
|
|
@@ -894,7 +985,7 @@ var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
894
985
|
}
|
|
895
986
|
));
|
|
896
987
|
TableHead2.displayName = "TableHead";
|
|
897
|
-
var TableCell2 =
|
|
988
|
+
var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
898
989
|
TableCell,
|
|
899
990
|
{
|
|
900
991
|
ref,
|
|
@@ -903,7 +994,7 @@ var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
903
994
|
}
|
|
904
995
|
));
|
|
905
996
|
TableCell2.displayName = "TableCell";
|
|
906
|
-
var TableCaption2 =
|
|
997
|
+
var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
907
998
|
TableCaption,
|
|
908
999
|
{
|
|
909
1000
|
ref,
|
|
@@ -914,17 +1005,17 @@ var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
914
1005
|
TableCaption2.displayName = "TableCaption";
|
|
915
1006
|
|
|
916
1007
|
// src/components/item/Item.tsx
|
|
917
|
-
import * as
|
|
1008
|
+
import * as React17 from "react";
|
|
918
1009
|
|
|
919
1010
|
// src/primitives/item.tsx
|
|
920
1011
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
921
|
-
import { cva as
|
|
1012
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
922
1013
|
|
|
923
1014
|
// src/primitives/separator.tsx
|
|
924
|
-
import * as
|
|
1015
|
+
import * as React16 from "react";
|
|
925
1016
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
926
|
-
import { jsx as
|
|
927
|
-
var Separator2 =
|
|
1017
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1018
|
+
var Separator2 = React16.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
928
1019
|
SeparatorPrimitive.Root,
|
|
929
1020
|
{
|
|
930
1021
|
ref,
|
|
@@ -941,9 +1032,9 @@ var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", de
|
|
|
941
1032
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
942
1033
|
|
|
943
1034
|
// src/primitives/item.tsx
|
|
944
|
-
import { jsx as
|
|
1035
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
945
1036
|
function ItemGroup({ className, ...props }) {
|
|
946
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ jsx18(
|
|
947
1038
|
"div",
|
|
948
1039
|
{
|
|
949
1040
|
role: "list",
|
|
@@ -954,7 +1045,7 @@ function ItemGroup({ className, ...props }) {
|
|
|
954
1045
|
);
|
|
955
1046
|
}
|
|
956
1047
|
function ItemSeparator({ className, ...props }) {
|
|
957
|
-
return /* @__PURE__ */
|
|
1048
|
+
return /* @__PURE__ */ jsx18(
|
|
958
1049
|
Separator2,
|
|
959
1050
|
{
|
|
960
1051
|
"data-slot": "item-separator",
|
|
@@ -964,7 +1055,7 @@ function ItemSeparator({ className, ...props }) {
|
|
|
964
1055
|
}
|
|
965
1056
|
);
|
|
966
1057
|
}
|
|
967
|
-
var itemVariants =
|
|
1058
|
+
var itemVariants = cva8(
|
|
968
1059
|
"group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
|
|
969
1060
|
{
|
|
970
1061
|
variants: {
|
|
@@ -984,7 +1075,7 @@ var itemVariants = cva7(
|
|
|
984
1075
|
}
|
|
985
1076
|
}
|
|
986
1077
|
);
|
|
987
|
-
function
|
|
1078
|
+
function Item3({
|
|
988
1079
|
className,
|
|
989
1080
|
variant = "default",
|
|
990
1081
|
size = "default",
|
|
@@ -992,7 +1083,7 @@ function Item2({
|
|
|
992
1083
|
...props
|
|
993
1084
|
}) {
|
|
994
1085
|
const Comp = asChild ? Slot2 : "div";
|
|
995
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsx18(
|
|
996
1087
|
Comp,
|
|
997
1088
|
{
|
|
998
1089
|
"data-slot": "item",
|
|
@@ -1003,7 +1094,7 @@ function Item2({
|
|
|
1003
1094
|
}
|
|
1004
1095
|
);
|
|
1005
1096
|
}
|
|
1006
|
-
var itemMediaVariants =
|
|
1097
|
+
var itemMediaVariants = cva8(
|
|
1007
1098
|
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
1008
1099
|
{
|
|
1009
1100
|
variants: {
|
|
@@ -1023,7 +1114,7 @@ function ItemMedia({
|
|
|
1023
1114
|
variant = "default",
|
|
1024
1115
|
...props
|
|
1025
1116
|
}) {
|
|
1026
|
-
return /* @__PURE__ */
|
|
1117
|
+
return /* @__PURE__ */ jsx18(
|
|
1027
1118
|
"div",
|
|
1028
1119
|
{
|
|
1029
1120
|
"data-slot": "item-media",
|
|
@@ -1034,7 +1125,7 @@ function ItemMedia({
|
|
|
1034
1125
|
);
|
|
1035
1126
|
}
|
|
1036
1127
|
function ItemContent({ className, ...props }) {
|
|
1037
|
-
return /* @__PURE__ */
|
|
1128
|
+
return /* @__PURE__ */ jsx18(
|
|
1038
1129
|
"div",
|
|
1039
1130
|
{
|
|
1040
1131
|
"data-slot": "item-content",
|
|
@@ -1044,7 +1135,7 @@ function ItemContent({ className, ...props }) {
|
|
|
1044
1135
|
);
|
|
1045
1136
|
}
|
|
1046
1137
|
function ItemTitle({ className, ...props }) {
|
|
1047
|
-
return /* @__PURE__ */
|
|
1138
|
+
return /* @__PURE__ */ jsx18(
|
|
1048
1139
|
"div",
|
|
1049
1140
|
{
|
|
1050
1141
|
"data-slot": "item-title",
|
|
@@ -1054,7 +1145,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
1054
1145
|
);
|
|
1055
1146
|
}
|
|
1056
1147
|
function ItemDescription({ className, ...props }) {
|
|
1057
|
-
return /* @__PURE__ */
|
|
1148
|
+
return /* @__PURE__ */ jsx18(
|
|
1058
1149
|
"p",
|
|
1059
1150
|
{
|
|
1060
1151
|
"data-slot": "item-description",
|
|
@@ -1068,10 +1159,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
1068
1159
|
);
|
|
1069
1160
|
}
|
|
1070
1161
|
function ItemActions({ className, ...props }) {
|
|
1071
|
-
return /* @__PURE__ */
|
|
1162
|
+
return /* @__PURE__ */ jsx18("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
1072
1163
|
}
|
|
1073
1164
|
function ItemHeader({ className, ...props }) {
|
|
1074
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ jsx18(
|
|
1075
1166
|
"div",
|
|
1076
1167
|
{
|
|
1077
1168
|
"data-slot": "item-header",
|
|
@@ -1081,7 +1172,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
1081
1172
|
);
|
|
1082
1173
|
}
|
|
1083
1174
|
function ItemFooter({ className, ...props }) {
|
|
1084
|
-
return /* @__PURE__ */
|
|
1175
|
+
return /* @__PURE__ */ jsx18(
|
|
1085
1176
|
"div",
|
|
1086
1177
|
{
|
|
1087
1178
|
"data-slot": "item-footer",
|
|
@@ -1092,10 +1183,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
1092
1183
|
}
|
|
1093
1184
|
|
|
1094
1185
|
// src/components/item/Item.tsx
|
|
1095
|
-
import { jsx as
|
|
1096
|
-
function
|
|
1097
|
-
return /* @__PURE__ */
|
|
1098
|
-
|
|
1186
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1187
|
+
function Item4({ className, asChild, ...props }) {
|
|
1188
|
+
return /* @__PURE__ */ jsx19(
|
|
1189
|
+
Item3,
|
|
1099
1190
|
{
|
|
1100
1191
|
asChild,
|
|
1101
1192
|
className: cn(
|
|
@@ -1112,8 +1203,8 @@ function Item3({ className, asChild, ...props }) {
|
|
|
1112
1203
|
}
|
|
1113
1204
|
);
|
|
1114
1205
|
}
|
|
1115
|
-
var ItemMedia2 =
|
|
1116
|
-
return /* @__PURE__ */
|
|
1206
|
+
var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1207
|
+
return /* @__PURE__ */ jsx19(
|
|
1117
1208
|
ItemMedia,
|
|
1118
1209
|
{
|
|
1119
1210
|
ref,
|
|
@@ -1123,8 +1214,8 @@ var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1123
1214
|
);
|
|
1124
1215
|
});
|
|
1125
1216
|
ItemMedia2.displayName = "ItemMedia";
|
|
1126
|
-
var ItemTitle2 =
|
|
1127
|
-
return /* @__PURE__ */
|
|
1217
|
+
var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1218
|
+
return /* @__PURE__ */ jsx19(
|
|
1128
1219
|
ItemTitle,
|
|
1129
1220
|
{
|
|
1130
1221
|
ref,
|
|
@@ -1134,8 +1225,8 @@ var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1134
1225
|
);
|
|
1135
1226
|
});
|
|
1136
1227
|
ItemTitle2.displayName = "ItemTitle";
|
|
1137
|
-
var ItemDescription2 =
|
|
1138
|
-
return /* @__PURE__ */
|
|
1228
|
+
var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1229
|
+
return /* @__PURE__ */ jsx19(
|
|
1139
1230
|
ItemDescription,
|
|
1140
1231
|
{
|
|
1141
1232
|
ref,
|
|
@@ -1145,8 +1236,8 @@ var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1145
1236
|
);
|
|
1146
1237
|
});
|
|
1147
1238
|
ItemDescription2.displayName = "ItemDescription";
|
|
1148
|
-
var ItemSeparator2 =
|
|
1149
|
-
return /* @__PURE__ */
|
|
1239
|
+
var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1240
|
+
return /* @__PURE__ */ jsx19(
|
|
1150
1241
|
ItemSeparator,
|
|
1151
1242
|
{
|
|
1152
1243
|
ref,
|
|
@@ -1158,14 +1249,14 @@ var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1158
1249
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
1159
1250
|
|
|
1160
1251
|
// src/components/input/Input.tsx
|
|
1161
|
-
import * as
|
|
1252
|
+
import * as React19 from "react";
|
|
1162
1253
|
|
|
1163
1254
|
// src/primitives/input.tsx
|
|
1164
|
-
import * as
|
|
1165
|
-
import { jsx as
|
|
1166
|
-
var Input =
|
|
1255
|
+
import * as React18 from "react";
|
|
1256
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1257
|
+
var Input = React18.forwardRef(
|
|
1167
1258
|
({ className, type, ...props }, ref) => {
|
|
1168
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ jsx20(
|
|
1169
1260
|
"input",
|
|
1170
1261
|
{
|
|
1171
1262
|
type,
|
|
@@ -1182,14 +1273,14 @@ var Input = React17.forwardRef(
|
|
|
1182
1273
|
Input.displayName = "Input";
|
|
1183
1274
|
|
|
1184
1275
|
// src/components/input/Input.tsx
|
|
1185
|
-
import { jsx as
|
|
1186
|
-
var Input2 =
|
|
1276
|
+
import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1277
|
+
var Input2 = React19.forwardRef(
|
|
1187
1278
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1188
|
-
const generatedId =
|
|
1279
|
+
const generatedId = React19.useId();
|
|
1189
1280
|
const inputId = id || generatedId;
|
|
1190
1281
|
const errorId = `${inputId}-error`;
|
|
1191
1282
|
const descriptionId = `${inputId}-description`;
|
|
1192
|
-
const inputElement = /* @__PURE__ */
|
|
1283
|
+
const inputElement = /* @__PURE__ */ jsx21(
|
|
1193
1284
|
Input,
|
|
1194
1285
|
{
|
|
1195
1286
|
ref,
|
|
@@ -1209,8 +1300,8 @@ var Input2 = React18.forwardRef(
|
|
|
1209
1300
|
}
|
|
1210
1301
|
);
|
|
1211
1302
|
if (!icon && !actionButton) {
|
|
1212
|
-
return /* @__PURE__ */
|
|
1213
|
-
label && /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
|
|
1304
|
+
label && /* @__PURE__ */ jsx21(
|
|
1214
1305
|
"label",
|
|
1215
1306
|
{
|
|
1216
1307
|
htmlFor: inputId,
|
|
@@ -1223,9 +1314,9 @@ var Input2 = React18.forwardRef(
|
|
|
1223
1314
|
}
|
|
1224
1315
|
),
|
|
1225
1316
|
inputElement,
|
|
1226
|
-
(description || error) && /* @__PURE__ */
|
|
1227
|
-
description && /* @__PURE__ */
|
|
1228
|
-
error && /* @__PURE__ */
|
|
1317
|
+
(description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1318
|
+
description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1319
|
+
error && /* @__PURE__ */ jsx21(
|
|
1229
1320
|
Typography,
|
|
1230
1321
|
{
|
|
1231
1322
|
variant: "xs",
|
|
@@ -1237,8 +1328,8 @@ var Input2 = React18.forwardRef(
|
|
|
1237
1328
|
] })
|
|
1238
1329
|
] });
|
|
1239
1330
|
}
|
|
1240
|
-
return /* @__PURE__ */
|
|
1241
|
-
label && /* @__PURE__ */
|
|
1331
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
|
|
1332
|
+
label && /* @__PURE__ */ jsx21(
|
|
1242
1333
|
"label",
|
|
1243
1334
|
{
|
|
1244
1335
|
htmlFor: inputId,
|
|
@@ -1250,14 +1341,14 @@ var Input2 = React18.forwardRef(
|
|
|
1250
1341
|
children: label
|
|
1251
1342
|
}
|
|
1252
1343
|
),
|
|
1253
|
-
/* @__PURE__ */
|
|
1254
|
-
icon && /* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ jsxs7("div", { className: "relative w-full", children: [
|
|
1345
|
+
icon && /* @__PURE__ */ jsx21("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1255
1346
|
inputElement,
|
|
1256
|
-
actionButton && /* @__PURE__ */
|
|
1347
|
+
actionButton && /* @__PURE__ */ jsx21("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1257
1348
|
] }),
|
|
1258
|
-
(description || error) && /* @__PURE__ */
|
|
1259
|
-
description && /* @__PURE__ */
|
|
1260
|
-
error && /* @__PURE__ */
|
|
1349
|
+
(description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1350
|
+
description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1351
|
+
error && /* @__PURE__ */ jsx21(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1261
1352
|
] })
|
|
1262
1353
|
] });
|
|
1263
1354
|
}
|
|
@@ -1265,17 +1356,17 @@ var Input2 = React18.forwardRef(
|
|
|
1265
1356
|
Input2.displayName = "Input";
|
|
1266
1357
|
|
|
1267
1358
|
// src/components/checkbox/Checkbox.tsx
|
|
1268
|
-
import * as
|
|
1359
|
+
import * as React21 from "react";
|
|
1269
1360
|
import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
|
|
1270
1361
|
import { Check as Check3 } from "lucide-react";
|
|
1271
|
-
import { cva as
|
|
1362
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1272
1363
|
|
|
1273
1364
|
// src/primitives/checkbox.tsx
|
|
1274
|
-
import * as
|
|
1365
|
+
import * as React20 from "react";
|
|
1275
1366
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1276
1367
|
import { Check as Check2 } from "lucide-react";
|
|
1277
|
-
import { jsx as
|
|
1278
|
-
var Checkbox =
|
|
1368
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1369
|
+
var Checkbox = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1279
1370
|
CheckboxPrimitive.Root,
|
|
1280
1371
|
{
|
|
1281
1372
|
ref,
|
|
@@ -1284,24 +1375,24 @@ var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1284
1375
|
className
|
|
1285
1376
|
),
|
|
1286
1377
|
...props,
|
|
1287
|
-
children: children ?? /* @__PURE__ */
|
|
1378
|
+
children: children ?? /* @__PURE__ */ jsx22(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" }) })
|
|
1288
1379
|
}
|
|
1289
1380
|
));
|
|
1290
1381
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1291
|
-
var CheckboxIndicator =
|
|
1382
|
+
var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1292
1383
|
CheckboxPrimitive.Indicator,
|
|
1293
1384
|
{
|
|
1294
1385
|
ref,
|
|
1295
1386
|
className: cn("grid place-content-center", className),
|
|
1296
1387
|
...props,
|
|
1297
|
-
children: children ?? /* @__PURE__ */
|
|
1388
|
+
children: children ?? /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" })
|
|
1298
1389
|
}
|
|
1299
1390
|
));
|
|
1300
1391
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1301
1392
|
|
|
1302
1393
|
// src/components/checkbox/Checkbox.tsx
|
|
1303
|
-
import { jsx as
|
|
1304
|
-
var checkboxVariants =
|
|
1394
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1395
|
+
var checkboxVariants = cva9(
|
|
1305
1396
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1306
1397
|
{
|
|
1307
1398
|
variants: {
|
|
@@ -1322,7 +1413,7 @@ var checkboxVariants = cva8(
|
|
|
1322
1413
|
}
|
|
1323
1414
|
}
|
|
1324
1415
|
);
|
|
1325
|
-
var Checkbox2 =
|
|
1416
|
+
var Checkbox2 = React21.forwardRef(
|
|
1326
1417
|
({
|
|
1327
1418
|
"aria-label": ariaLabel,
|
|
1328
1419
|
className,
|
|
@@ -1335,11 +1426,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1335
1426
|
disabled,
|
|
1336
1427
|
...props
|
|
1337
1428
|
}, ref) => {
|
|
1338
|
-
const generatedId =
|
|
1429
|
+
const generatedId = React21.useId();
|
|
1339
1430
|
const checkboxId = id || generatedId;
|
|
1340
1431
|
const errorId = `${checkboxId}-error`;
|
|
1341
|
-
return /* @__PURE__ */
|
|
1342
|
-
/* @__PURE__ */
|
|
1432
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-3", children: [
|
|
1433
|
+
/* @__PURE__ */ jsx23("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx23(
|
|
1343
1434
|
Checkbox,
|
|
1344
1435
|
{
|
|
1345
1436
|
ref,
|
|
@@ -1355,7 +1446,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1355
1446
|
className
|
|
1356
1447
|
),
|
|
1357
1448
|
...props,
|
|
1358
|
-
children: /* @__PURE__ */
|
|
1449
|
+
children: /* @__PURE__ */ jsx23(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx23(
|
|
1359
1450
|
Check3,
|
|
1360
1451
|
{
|
|
1361
1452
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -1364,8 +1455,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1364
1455
|
) })
|
|
1365
1456
|
}
|
|
1366
1457
|
) }),
|
|
1367
|
-
(label || description || error) && /* @__PURE__ */
|
|
1368
|
-
label && /* @__PURE__ */
|
|
1458
|
+
(label || description || error) && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
|
|
1459
|
+
label && /* @__PURE__ */ jsx23(
|
|
1369
1460
|
"label",
|
|
1370
1461
|
{
|
|
1371
1462
|
htmlFor: checkboxId,
|
|
@@ -1377,8 +1468,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1377
1468
|
children: label
|
|
1378
1469
|
}
|
|
1379
1470
|
),
|
|
1380
|
-
description && /* @__PURE__ */
|
|
1381
|
-
error && /* @__PURE__ */
|
|
1471
|
+
description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1472
|
+
error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1382
1473
|
] })
|
|
1383
1474
|
] });
|
|
1384
1475
|
}
|
|
@@ -1386,11 +1477,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1386
1477
|
Checkbox2.displayName = "Checkbox";
|
|
1387
1478
|
|
|
1388
1479
|
// src/components/switch/Switch.tsx
|
|
1389
|
-
import * as
|
|
1480
|
+
import * as React22 from "react";
|
|
1390
1481
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1391
|
-
import { cva as
|
|
1392
|
-
import { jsx as
|
|
1393
|
-
var switchRootVariants =
|
|
1482
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
1483
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1484
|
+
var switchRootVariants = cva10(
|
|
1394
1485
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-berget-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
1395
1486
|
{
|
|
1396
1487
|
variants: {
|
|
@@ -1411,7 +1502,7 @@ var switchRootVariants = cva9(
|
|
|
1411
1502
|
}
|
|
1412
1503
|
}
|
|
1413
1504
|
);
|
|
1414
|
-
var switchThumbVariants =
|
|
1505
|
+
var switchThumbVariants = cva10(
|
|
1415
1506
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
1416
1507
|
{
|
|
1417
1508
|
variants: {
|
|
@@ -1426,7 +1517,7 @@ var switchThumbVariants = cva9(
|
|
|
1426
1517
|
}
|
|
1427
1518
|
}
|
|
1428
1519
|
);
|
|
1429
|
-
var Switch =
|
|
1520
|
+
var Switch = React22.forwardRef(
|
|
1430
1521
|
({
|
|
1431
1522
|
"aria-label": ariaLabel,
|
|
1432
1523
|
className,
|
|
@@ -1439,11 +1530,11 @@ var Switch = React21.forwardRef(
|
|
|
1439
1530
|
disabled,
|
|
1440
1531
|
...props
|
|
1441
1532
|
}, ref) => {
|
|
1442
|
-
const generatedId =
|
|
1533
|
+
const generatedId = React22.useId();
|
|
1443
1534
|
const switchId = id || generatedId;
|
|
1444
1535
|
const errorId = `${switchId}-error`;
|
|
1445
|
-
return /* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-3", children: [
|
|
1537
|
+
/* @__PURE__ */ jsx24(
|
|
1447
1538
|
SwitchPrimitives.Root,
|
|
1448
1539
|
{
|
|
1449
1540
|
ref,
|
|
@@ -1458,11 +1549,11 @@ var Switch = React21.forwardRef(
|
|
|
1458
1549
|
className
|
|
1459
1550
|
),
|
|
1460
1551
|
...props,
|
|
1461
|
-
children: /* @__PURE__ */
|
|
1552
|
+
children: /* @__PURE__ */ jsx24(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1462
1553
|
}
|
|
1463
1554
|
),
|
|
1464
|
-
(label || description || error) && /* @__PURE__ */
|
|
1465
|
-
label && /* @__PURE__ */
|
|
1555
|
+
(label || description || error) && /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-1", children: [
|
|
1556
|
+
label && /* @__PURE__ */ jsx24(
|
|
1466
1557
|
"label",
|
|
1467
1558
|
{
|
|
1468
1559
|
htmlFor: switchId,
|
|
@@ -1473,8 +1564,8 @@ var Switch = React21.forwardRef(
|
|
|
1473
1564
|
children: label
|
|
1474
1565
|
}
|
|
1475
1566
|
),
|
|
1476
|
-
description && /* @__PURE__ */
|
|
1477
|
-
error && /* @__PURE__ */
|
|
1567
|
+
description && /* @__PURE__ */ jsx24(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1568
|
+
error && /* @__PURE__ */ jsx24(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1478
1569
|
] })
|
|
1479
1570
|
] });
|
|
1480
1571
|
}
|
|
@@ -1482,17 +1573,17 @@ var Switch = React21.forwardRef(
|
|
|
1482
1573
|
Switch.displayName = "Switch";
|
|
1483
1574
|
|
|
1484
1575
|
// src/components/select/Select.tsx
|
|
1485
|
-
import * as
|
|
1486
|
-
import { cva as
|
|
1576
|
+
import * as React24 from "react";
|
|
1577
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
1487
1578
|
|
|
1488
1579
|
// src/primitives/select.tsx
|
|
1489
|
-
import * as
|
|
1580
|
+
import * as React23 from "react";
|
|
1490
1581
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1491
|
-
import { Check as Check4, ChevronDown, ChevronUp } from "lucide-react";
|
|
1492
|
-
import { jsx as
|
|
1582
|
+
import { Check as Check4, ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
1583
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1493
1584
|
var Select = SelectPrimitive.Root;
|
|
1494
1585
|
var SelectValue = SelectPrimitive.Value;
|
|
1495
|
-
var SelectTrigger =
|
|
1586
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1496
1587
|
SelectPrimitive.Trigger,
|
|
1497
1588
|
{
|
|
1498
1589
|
ref,
|
|
@@ -1503,32 +1594,32 @@ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref)
|
|
|
1503
1594
|
...props,
|
|
1504
1595
|
children: [
|
|
1505
1596
|
children,
|
|
1506
|
-
/* @__PURE__ */
|
|
1597
|
+
/* @__PURE__ */ jsx25(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4 opacity-50" }) })
|
|
1507
1598
|
]
|
|
1508
1599
|
}
|
|
1509
1600
|
));
|
|
1510
1601
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1511
|
-
var SelectScrollUpButton =
|
|
1602
|
+
var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1512
1603
|
SelectPrimitive.ScrollUpButton,
|
|
1513
1604
|
{
|
|
1514
1605
|
ref,
|
|
1515
1606
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1516
1607
|
...props,
|
|
1517
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ jsx25(ChevronUp, { className: "h-4 w-4" })
|
|
1518
1609
|
}
|
|
1519
1610
|
));
|
|
1520
1611
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1521
|
-
var SelectScrollDownButton =
|
|
1612
|
+
var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1522
1613
|
SelectPrimitive.ScrollDownButton,
|
|
1523
1614
|
{
|
|
1524
1615
|
ref,
|
|
1525
1616
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1526
1617
|
...props,
|
|
1527
|
-
children: /* @__PURE__ */
|
|
1618
|
+
children: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4" })
|
|
1528
1619
|
}
|
|
1529
1620
|
));
|
|
1530
1621
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1531
|
-
var SelectContent =
|
|
1622
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx25(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs10(
|
|
1532
1623
|
SelectPrimitive.Content,
|
|
1533
1624
|
{
|
|
1534
1625
|
ref,
|
|
@@ -1540,8 +1631,8 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
1540
1631
|
position,
|
|
1541
1632
|
...props,
|
|
1542
1633
|
children: [
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
1634
|
+
/* @__PURE__ */ jsx25(SelectScrollUpButton, {}),
|
|
1635
|
+
/* @__PURE__ */ jsx25(
|
|
1545
1636
|
SelectPrimitive.Viewport,
|
|
1546
1637
|
{
|
|
1547
1638
|
className: cn(
|
|
@@ -1551,12 +1642,12 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
1551
1642
|
children
|
|
1552
1643
|
}
|
|
1553
1644
|
),
|
|
1554
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ jsx25(SelectScrollDownButton, {})
|
|
1555
1646
|
]
|
|
1556
1647
|
}
|
|
1557
1648
|
) }));
|
|
1558
1649
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1559
|
-
var SelectLabel =
|
|
1650
|
+
var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1560
1651
|
SelectPrimitive.Label,
|
|
1561
1652
|
{
|
|
1562
1653
|
ref,
|
|
@@ -1565,7 +1656,7 @@ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1565
1656
|
}
|
|
1566
1657
|
));
|
|
1567
1658
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1568
|
-
var SelectItem =
|
|
1659
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1569
1660
|
SelectPrimitive.Item,
|
|
1570
1661
|
{
|
|
1571
1662
|
ref,
|
|
@@ -1575,13 +1666,13 @@ var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1575
1666
|
),
|
|
1576
1667
|
...props,
|
|
1577
1668
|
children: [
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ jsx25("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Check4, { className: "h-4 w-4" }) }) }),
|
|
1670
|
+
/* @__PURE__ */ jsx25(SelectPrimitive.ItemText, { children })
|
|
1580
1671
|
]
|
|
1581
1672
|
}
|
|
1582
1673
|
));
|
|
1583
1674
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1584
|
-
var SelectSeparator =
|
|
1675
|
+
var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1585
1676
|
SelectPrimitive.Separator,
|
|
1586
1677
|
{
|
|
1587
1678
|
ref,
|
|
@@ -1592,8 +1683,8 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1592
1683
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1593
1684
|
|
|
1594
1685
|
// src/components/select/Select.tsx
|
|
1595
|
-
import { jsx as
|
|
1596
|
-
var selectVariants =
|
|
1686
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1687
|
+
var selectVariants = cva11(
|
|
1597
1688
|
"flex w-full items-center justify-between rounded-berget-xs border bg-card px-4 py-3 text-sm transition-colors duration-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border disabled:cursor-not-allowed disabled:opacity-50",
|
|
1598
1689
|
{
|
|
1599
1690
|
variants: {
|
|
@@ -1615,7 +1706,7 @@ var selectVariants = cva10(
|
|
|
1615
1706
|
}
|
|
1616
1707
|
}
|
|
1617
1708
|
);
|
|
1618
|
-
var Select2 =
|
|
1709
|
+
var Select2 = React24.forwardRef(
|
|
1619
1710
|
({
|
|
1620
1711
|
className,
|
|
1621
1712
|
variant,
|
|
@@ -1633,12 +1724,12 @@ var Select2 = React23.forwardRef(
|
|
|
1633
1724
|
name,
|
|
1634
1725
|
required
|
|
1635
1726
|
}, ref) => {
|
|
1636
|
-
const generatedId =
|
|
1727
|
+
const generatedId = React24.useId();
|
|
1637
1728
|
const selectId = id || generatedId;
|
|
1638
1729
|
const errorId = `${selectId}-error`;
|
|
1639
1730
|
const descriptionId = `${selectId}-description`;
|
|
1640
|
-
return /* @__PURE__ */
|
|
1641
|
-
label && /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-2", children: [
|
|
1732
|
+
label && /* @__PURE__ */ jsx26(
|
|
1642
1733
|
"label",
|
|
1643
1734
|
{
|
|
1644
1735
|
htmlFor: selectId,
|
|
@@ -1650,7 +1741,7 @@ var Select2 = React23.forwardRef(
|
|
|
1650
1741
|
children: label
|
|
1651
1742
|
}
|
|
1652
1743
|
),
|
|
1653
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsxs11(
|
|
1654
1745
|
Select,
|
|
1655
1746
|
{
|
|
1656
1747
|
value,
|
|
@@ -1660,7 +1751,7 @@ var Select2 = React23.forwardRef(
|
|
|
1660
1751
|
name,
|
|
1661
1752
|
required,
|
|
1662
1753
|
children: [
|
|
1663
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx26(
|
|
1664
1755
|
SelectTrigger,
|
|
1665
1756
|
{
|
|
1666
1757
|
ref,
|
|
@@ -1672,33 +1763,33 @@ var Select2 = React23.forwardRef(
|
|
|
1672
1763
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1673
1764
|
className
|
|
1674
1765
|
),
|
|
1675
|
-
children: /* @__PURE__ */
|
|
1766
|
+
children: /* @__PURE__ */ jsx26(SelectValue, { placeholder })
|
|
1676
1767
|
}
|
|
1677
1768
|
),
|
|
1678
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ jsx26(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx26(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1679
1770
|
]
|
|
1680
1771
|
}
|
|
1681
1772
|
),
|
|
1682
|
-
description && /* @__PURE__ */
|
|
1683
|
-
error && /* @__PURE__ */
|
|
1773
|
+
description && /* @__PURE__ */ jsx26(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1774
|
+
error && /* @__PURE__ */ jsx26(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1684
1775
|
] });
|
|
1685
1776
|
}
|
|
1686
1777
|
);
|
|
1687
1778
|
Select2.displayName = "Select";
|
|
1688
1779
|
|
|
1689
1780
|
// src/components/country-select/CountrySelect.tsx
|
|
1690
|
-
import * as
|
|
1691
|
-
import { ChevronDown as
|
|
1781
|
+
import * as React29 from "react";
|
|
1782
|
+
import { ChevronDown as ChevronDown3, Globe } from "lucide-react";
|
|
1692
1783
|
|
|
1693
1784
|
// src/components/icon/Icon.tsx
|
|
1694
|
-
import * as
|
|
1695
|
-
import { jsx as
|
|
1785
|
+
import * as React25 from "react";
|
|
1786
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1696
1787
|
var iconStrokeMap = {
|
|
1697
1788
|
16: 1.4,
|
|
1698
1789
|
24: 1.6,
|
|
1699
1790
|
32: 1.8
|
|
1700
1791
|
};
|
|
1701
|
-
var Icon2 =
|
|
1792
|
+
var Icon2 = React25.forwardRef(
|
|
1702
1793
|
({
|
|
1703
1794
|
icon: IconComponent,
|
|
1704
1795
|
size,
|
|
@@ -1710,7 +1801,7 @@ var Icon2 = React24.forwardRef(
|
|
|
1710
1801
|
const strokeWidth = iconStrokeMap[size];
|
|
1711
1802
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1712
1803
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1713
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ jsx27(
|
|
1714
1805
|
IconComponent,
|
|
1715
1806
|
{
|
|
1716
1807
|
ref,
|
|
@@ -1725,12 +1816,12 @@ var Icon2 = React24.forwardRef(
|
|
|
1725
1816
|
Icon2.displayName = "Icon";
|
|
1726
1817
|
|
|
1727
1818
|
// src/primitives/popover.tsx
|
|
1728
|
-
import * as
|
|
1819
|
+
import * as React26 from "react";
|
|
1729
1820
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1730
|
-
import { jsx as
|
|
1821
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1731
1822
|
var Popover = PopoverPrimitive.Root;
|
|
1732
1823
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1733
|
-
var PopoverContent =
|
|
1824
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx28(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1734
1825
|
PopoverPrimitive.Content,
|
|
1735
1826
|
{
|
|
1736
1827
|
ref,
|
|
@@ -1746,17 +1837,17 @@ var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffs
|
|
|
1746
1837
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1747
1838
|
|
|
1748
1839
|
// src/primitives/command.tsx
|
|
1749
|
-
import * as
|
|
1840
|
+
import * as React28 from "react";
|
|
1750
1841
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1751
1842
|
import { Search } from "lucide-react";
|
|
1752
1843
|
|
|
1753
1844
|
// src/primitives/dialog.tsx
|
|
1754
|
-
import * as
|
|
1845
|
+
import * as React27 from "react";
|
|
1755
1846
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1756
1847
|
import { X as X2 } from "lucide-react";
|
|
1757
|
-
import { jsx as
|
|
1848
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1758
1849
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1759
|
-
var DialogOverlay2 =
|
|
1850
|
+
var DialogOverlay2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1760
1851
|
DialogPrimitive2.Overlay,
|
|
1761
1852
|
{
|
|
1762
1853
|
ref,
|
|
@@ -1768,9 +1859,9 @@ var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1768
1859
|
}
|
|
1769
1860
|
));
|
|
1770
1861
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1771
|
-
var DialogContent2 =
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1862
|
+
var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(DialogPortal2, { children: [
|
|
1863
|
+
/* @__PURE__ */ jsx29(DialogOverlay2, {}),
|
|
1864
|
+
/* @__PURE__ */ jsxs12(
|
|
1774
1865
|
DialogPrimitive2.Content,
|
|
1775
1866
|
{
|
|
1776
1867
|
ref,
|
|
@@ -1781,18 +1872,18 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
1781
1872
|
...props,
|
|
1782
1873
|
children: [
|
|
1783
1874
|
children,
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1875
|
+
/* @__PURE__ */ jsxs12(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1876
|
+
/* @__PURE__ */ jsx29(X2, { className: "h-4 w-4" }),
|
|
1877
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "Close" })
|
|
1787
1878
|
] })
|
|
1788
1879
|
]
|
|
1789
1880
|
}
|
|
1790
1881
|
)
|
|
1791
1882
|
] }));
|
|
1792
1883
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1793
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1884
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx29("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1794
1885
|
DialogHeader2.displayName = "DialogHeader";
|
|
1795
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1886
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx29(
|
|
1796
1887
|
"div",
|
|
1797
1888
|
{
|
|
1798
1889
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1800,7 +1891,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx28(
|
|
|
1800
1891
|
}
|
|
1801
1892
|
);
|
|
1802
1893
|
DialogFooter2.displayName = "DialogFooter";
|
|
1803
|
-
var DialogTitle2 =
|
|
1894
|
+
var DialogTitle2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1804
1895
|
DialogPrimitive2.Title,
|
|
1805
1896
|
{
|
|
1806
1897
|
ref,
|
|
@@ -1809,7 +1900,7 @@ var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1809
1900
|
}
|
|
1810
1901
|
));
|
|
1811
1902
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1812
|
-
var DialogDescription2 =
|
|
1903
|
+
var DialogDescription2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1813
1904
|
DialogPrimitive2.Description,
|
|
1814
1905
|
{
|
|
1815
1906
|
ref,
|
|
@@ -1820,8 +1911,8 @@ var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1820
1911
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1821
1912
|
|
|
1822
1913
|
// src/primitives/command.tsx
|
|
1823
|
-
import { jsx as
|
|
1824
|
-
var Command =
|
|
1914
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1915
|
+
var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1825
1916
|
CommandPrimitive,
|
|
1826
1917
|
{
|
|
1827
1918
|
ref,
|
|
@@ -1833,9 +1924,9 @@ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1833
1924
|
}
|
|
1834
1925
|
));
|
|
1835
1926
|
Command.displayName = CommandPrimitive.displayName;
|
|
1836
|
-
var CommandInput =
|
|
1837
|
-
/* @__PURE__ */
|
|
1838
|
-
/* @__PURE__ */
|
|
1927
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1928
|
+
/* @__PURE__ */ jsx30(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1929
|
+
/* @__PURE__ */ jsx30(
|
|
1839
1930
|
CommandPrimitive.Input,
|
|
1840
1931
|
{
|
|
1841
1932
|
ref,
|
|
@@ -1848,7 +1939,7 @@ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1848
1939
|
)
|
|
1849
1940
|
] }));
|
|
1850
1941
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1851
|
-
var CommandList =
|
|
1942
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1852
1943
|
CommandPrimitive.List,
|
|
1853
1944
|
{
|
|
1854
1945
|
ref,
|
|
@@ -1857,9 +1948,9 @@ var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1857
1948
|
}
|
|
1858
1949
|
));
|
|
1859
1950
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1860
|
-
var CommandEmpty =
|
|
1951
|
+
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ jsx30(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1861
1952
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1862
|
-
var CommandGroup =
|
|
1953
|
+
var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1863
1954
|
CommandPrimitive.Group,
|
|
1864
1955
|
{
|
|
1865
1956
|
ref,
|
|
@@ -1871,7 +1962,7 @@ var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1871
1962
|
}
|
|
1872
1963
|
));
|
|
1873
1964
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1874
|
-
var CommandSeparator =
|
|
1965
|
+
var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1875
1966
|
CommandPrimitive.Separator,
|
|
1876
1967
|
{
|
|
1877
1968
|
ref,
|
|
@@ -1880,7 +1971,7 @@ var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1880
1971
|
}
|
|
1881
1972
|
));
|
|
1882
1973
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1883
|
-
var CommandItem =
|
|
1974
|
+
var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1884
1975
|
CommandPrimitive.Item,
|
|
1885
1976
|
{
|
|
1886
1977
|
ref,
|
|
@@ -1893,7 +1984,7 @@ var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1893
1984
|
));
|
|
1894
1985
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1895
1986
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1896
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ jsx30(
|
|
1897
1988
|
"span",
|
|
1898
1989
|
{
|
|
1899
1990
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -2044,8 +2135,8 @@ var isEUCountry = (countryCode) => {
|
|
|
2044
2135
|
};
|
|
2045
2136
|
|
|
2046
2137
|
// src/components/country-select/CountrySelect.tsx
|
|
2047
|
-
import { Fragment, jsx as
|
|
2048
|
-
var CountrySelect =
|
|
2138
|
+
import { Fragment, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2139
|
+
var CountrySelect = React29.forwardRef(
|
|
2049
2140
|
({
|
|
2050
2141
|
value,
|
|
2051
2142
|
onValueChange,
|
|
@@ -2055,10 +2146,10 @@ var CountrySelect = React28.forwardRef(
|
|
|
2055
2146
|
align = "center",
|
|
2056
2147
|
sideOffset = 4
|
|
2057
2148
|
}, ref) => {
|
|
2058
|
-
const [open, setOpen] =
|
|
2059
|
-
const selectedCountry =
|
|
2060
|
-
return /* @__PURE__ */
|
|
2061
|
-
/* @__PURE__ */
|
|
2149
|
+
const [open, setOpen] = React29.useState(false);
|
|
2150
|
+
const selectedCountry = React29.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2151
|
+
return /* @__PURE__ */ jsxs14(Popover, { open, onOpenChange: setOpen, children: [
|
|
2152
|
+
/* @__PURE__ */ jsx31(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
2062
2153
|
"button",
|
|
2063
2154
|
{
|
|
2064
2155
|
ref,
|
|
@@ -2079,16 +2170,16 @@ var CountrySelect = React28.forwardRef(
|
|
|
2079
2170
|
className
|
|
2080
2171
|
),
|
|
2081
2172
|
children: [
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
/* @__PURE__ */
|
|
2084
|
-
/* @__PURE__ */
|
|
2085
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
2174
|
+
/* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2175
|
+
/* @__PURE__ */ jsx31("span", { className: "truncate", children: selectedCountry.name }),
|
|
2176
|
+
/* @__PURE__ */ jsxs14("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
2086
2177
|
"(",
|
|
2087
2178
|
selectedCountry.code,
|
|
2088
2179
|
")"
|
|
2089
2180
|
] })
|
|
2090
|
-
] }) : /* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2181
|
+
] }) : /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
2182
|
+
/* @__PURE__ */ jsx31(
|
|
2092
2183
|
Icon2,
|
|
2093
2184
|
{
|
|
2094
2185
|
icon: Globe,
|
|
@@ -2096,12 +2187,12 @@ var CountrySelect = React28.forwardRef(
|
|
|
2096
2187
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
2097
2188
|
}
|
|
2098
2189
|
),
|
|
2099
|
-
/* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ jsx31("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
2100
2191
|
] }) }),
|
|
2101
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ jsx31(
|
|
2102
2193
|
Icon2,
|
|
2103
2194
|
{
|
|
2104
|
-
icon:
|
|
2195
|
+
icon: ChevronDown3,
|
|
2105
2196
|
size: 16,
|
|
2106
2197
|
className: cn(
|
|
2107
2198
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -2113,17 +2204,17 @@ var CountrySelect = React28.forwardRef(
|
|
|
2113
2204
|
]
|
|
2114
2205
|
}
|
|
2115
2206
|
) }),
|
|
2116
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ jsx31(
|
|
2117
2208
|
PopoverContent,
|
|
2118
2209
|
{
|
|
2119
2210
|
align,
|
|
2120
2211
|
sideOffset,
|
|
2121
2212
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2122
|
-
children: /* @__PURE__ */
|
|
2123
|
-
/* @__PURE__ */
|
|
2124
|
-
/* @__PURE__ */
|
|
2125
|
-
/* @__PURE__ */
|
|
2126
|
-
/* @__PURE__ */
|
|
2213
|
+
children: /* @__PURE__ */ jsxs14(Command, { children: [
|
|
2214
|
+
/* @__PURE__ */ jsx31(CommandInput, { placeholder: "Search country..." }),
|
|
2215
|
+
/* @__PURE__ */ jsxs14(CommandList, { children: [
|
|
2216
|
+
/* @__PURE__ */ jsx31(CommandEmpty, { children: "No countries found." }),
|
|
2217
|
+
/* @__PURE__ */ jsx31(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs14(
|
|
2127
2218
|
CommandItem,
|
|
2128
2219
|
{
|
|
2129
2220
|
value: `${country.name} ${country.code}`,
|
|
@@ -2137,12 +2228,12 @@ var CountrySelect = React28.forwardRef(
|
|
|
2137
2228
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
2138
2229
|
),
|
|
2139
2230
|
children: [
|
|
2140
|
-
/* @__PURE__ */
|
|
2141
|
-
/* @__PURE__ */
|
|
2142
|
-
/* @__PURE__ */
|
|
2143
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2232
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex-1 min-w-0", children: [
|
|
2233
|
+
/* @__PURE__ */ jsx31("div", { className: "text-sm truncate", children: country.name }),
|
|
2234
|
+
/* @__PURE__ */ jsx31("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
2144
2235
|
] }),
|
|
2145
|
-
value === country.code && /* @__PURE__ */
|
|
2236
|
+
value === country.code && /* @__PURE__ */ jsx31("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
2146
2237
|
]
|
|
2147
2238
|
},
|
|
2148
2239
|
country.code
|
|
@@ -2157,15 +2248,15 @@ var CountrySelect = React28.forwardRef(
|
|
|
2157
2248
|
CountrySelect.displayName = "CountrySelect";
|
|
2158
2249
|
|
|
2159
2250
|
// src/components/text-area/TextArea.tsx
|
|
2160
|
-
import * as
|
|
2161
|
-
import { cva as
|
|
2251
|
+
import * as React31 from "react";
|
|
2252
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
2162
2253
|
|
|
2163
2254
|
// src/primitives/textarea.tsx
|
|
2164
|
-
import * as
|
|
2165
|
-
import { jsx as
|
|
2166
|
-
var Textarea =
|
|
2255
|
+
import * as React30 from "react";
|
|
2256
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2257
|
+
var Textarea = React30.forwardRef(
|
|
2167
2258
|
({ className, ...props }, ref) => {
|
|
2168
|
-
return /* @__PURE__ */
|
|
2259
|
+
return /* @__PURE__ */ jsx32(
|
|
2169
2260
|
"textarea",
|
|
2170
2261
|
{
|
|
2171
2262
|
className: cn(
|
|
@@ -2181,8 +2272,8 @@ var Textarea = React29.forwardRef(
|
|
|
2181
2272
|
Textarea.displayName = "Textarea";
|
|
2182
2273
|
|
|
2183
2274
|
// src/components/text-area/TextArea.tsx
|
|
2184
|
-
import { jsx as
|
|
2185
|
-
var textAreaVariants =
|
|
2275
|
+
import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2276
|
+
var textAreaVariants = cva12(
|
|
2186
2277
|
"rounded-berget-xs bg-card px-4 py-3 transition-colors duration-200 focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",
|
|
2187
2278
|
{
|
|
2188
2279
|
variants: {
|
|
@@ -2204,7 +2295,7 @@ var textAreaVariants = cva11(
|
|
|
2204
2295
|
}
|
|
2205
2296
|
}
|
|
2206
2297
|
);
|
|
2207
|
-
var TextArea =
|
|
2298
|
+
var TextArea = React31.forwardRef(
|
|
2208
2299
|
({
|
|
2209
2300
|
className,
|
|
2210
2301
|
variant,
|
|
@@ -2224,13 +2315,13 @@ var TextArea = React30.forwardRef(
|
|
|
2224
2315
|
actionButton,
|
|
2225
2316
|
...props
|
|
2226
2317
|
}, ref) => {
|
|
2227
|
-
const generatedId =
|
|
2318
|
+
const generatedId = React31.useId();
|
|
2228
2319
|
const textareaId = id || generatedId;
|
|
2229
2320
|
const errorId = `${textareaId}-error`;
|
|
2230
2321
|
const descriptionId = `${textareaId}-description`;
|
|
2231
2322
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2232
|
-
return /* @__PURE__ */
|
|
2233
|
-
label && /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-2", children: [
|
|
2324
|
+
label && /* @__PURE__ */ jsx33(
|
|
2234
2325
|
"label",
|
|
2235
2326
|
{
|
|
2236
2327
|
htmlFor: textareaId,
|
|
@@ -2242,9 +2333,9 @@ var TextArea = React30.forwardRef(
|
|
|
2242
2333
|
children: label
|
|
2243
2334
|
}
|
|
2244
2335
|
),
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
icon && /* @__PURE__ */
|
|
2247
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ jsxs15("div", { className: "relative", children: [
|
|
2337
|
+
icon && /* @__PURE__ */ jsx33("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2338
|
+
/* @__PURE__ */ jsx33(
|
|
2248
2339
|
Textarea,
|
|
2249
2340
|
{
|
|
2250
2341
|
ref,
|
|
@@ -2269,13 +2360,13 @@ var TextArea = React30.forwardRef(
|
|
|
2269
2360
|
...props
|
|
2270
2361
|
}
|
|
2271
2362
|
),
|
|
2272
|
-
secondaryIcon && /* @__PURE__ */
|
|
2273
|
-
actionButton && /* @__PURE__ */
|
|
2363
|
+
secondaryIcon && /* @__PURE__ */ jsx33("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2364
|
+
actionButton && /* @__PURE__ */ jsx33("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2274
2365
|
] }),
|
|
2275
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */
|
|
2276
|
-
description && /* @__PURE__ */
|
|
2277
|
-
(error || showCount && maxLength) && /* @__PURE__ */
|
|
2278
|
-
showCount && maxLength && /* @__PURE__ */
|
|
2366
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2367
|
+
description && /* @__PURE__ */ jsx33(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2368
|
+
(error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2369
|
+
showCount && maxLength && /* @__PURE__ */ jsxs15(
|
|
2279
2370
|
Typography,
|
|
2280
2371
|
{
|
|
2281
2372
|
variant: "xs",
|
|
@@ -2289,7 +2380,7 @@ var TextArea = React30.forwardRef(
|
|
|
2289
2380
|
]
|
|
2290
2381
|
}
|
|
2291
2382
|
),
|
|
2292
|
-
error && /* @__PURE__ */
|
|
2383
|
+
error && /* @__PURE__ */ jsx33(
|
|
2293
2384
|
Typography,
|
|
2294
2385
|
{
|
|
2295
2386
|
variant: "xs",
|
|
@@ -2306,22 +2397,22 @@ var TextArea = React30.forwardRef(
|
|
|
2306
2397
|
TextArea.displayName = "TextArea";
|
|
2307
2398
|
|
|
2308
2399
|
// src/primitives/label.tsx
|
|
2309
|
-
import * as
|
|
2400
|
+
import * as React32 from "react";
|
|
2310
2401
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2311
|
-
import { cva as
|
|
2312
|
-
import { jsx as
|
|
2313
|
-
var labelVariants =
|
|
2402
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
2403
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2404
|
+
var labelVariants = cva13(
|
|
2314
2405
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2315
2406
|
);
|
|
2316
|
-
var Label3 =
|
|
2407
|
+
var Label3 = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2317
2408
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2318
2409
|
|
|
2319
2410
|
// src/primitives/field.tsx
|
|
2320
2411
|
import { useMemo as useMemo3 } from "react";
|
|
2321
|
-
import { cva as
|
|
2322
|
-
import { jsx as
|
|
2412
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
2413
|
+
import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2323
2414
|
function FieldSet({ className, ...props }) {
|
|
2324
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx35(
|
|
2325
2416
|
"fieldset",
|
|
2326
2417
|
{
|
|
2327
2418
|
"data-slot": "field-set",
|
|
@@ -2339,7 +2430,7 @@ function FieldLegend({
|
|
|
2339
2430
|
variant = "legend",
|
|
2340
2431
|
...props
|
|
2341
2432
|
}) {
|
|
2342
|
-
return /* @__PURE__ */
|
|
2433
|
+
return /* @__PURE__ */ jsx35(
|
|
2343
2434
|
"legend",
|
|
2344
2435
|
{
|
|
2345
2436
|
"data-slot": "field-legend",
|
|
@@ -2355,7 +2446,7 @@ function FieldLegend({
|
|
|
2355
2446
|
);
|
|
2356
2447
|
}
|
|
2357
2448
|
function FieldGroup({ className, ...props }) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2449
|
+
return /* @__PURE__ */ jsx35(
|
|
2359
2450
|
"div",
|
|
2360
2451
|
{
|
|
2361
2452
|
"data-slot": "field-group",
|
|
@@ -2367,7 +2458,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
2367
2458
|
}
|
|
2368
2459
|
);
|
|
2369
2460
|
}
|
|
2370
|
-
var fieldVariants =
|
|
2461
|
+
var fieldVariants = cva14(
|
|
2371
2462
|
"group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
|
|
2372
2463
|
{
|
|
2373
2464
|
variants: {
|
|
@@ -2395,7 +2486,7 @@ function Field({
|
|
|
2395
2486
|
orientation = "vertical",
|
|
2396
2487
|
...props
|
|
2397
2488
|
}) {
|
|
2398
|
-
return /* @__PURE__ */
|
|
2489
|
+
return /* @__PURE__ */ jsx35(
|
|
2399
2490
|
"div",
|
|
2400
2491
|
{
|
|
2401
2492
|
role: "group",
|
|
@@ -2407,7 +2498,7 @@ function Field({
|
|
|
2407
2498
|
);
|
|
2408
2499
|
}
|
|
2409
2500
|
function FieldContent({ className, ...props }) {
|
|
2410
|
-
return /* @__PURE__ */
|
|
2501
|
+
return /* @__PURE__ */ jsx35(
|
|
2411
2502
|
"div",
|
|
2412
2503
|
{
|
|
2413
2504
|
"data-slot": "field-content",
|
|
@@ -2417,7 +2508,7 @@ function FieldContent({ className, ...props }) {
|
|
|
2417
2508
|
);
|
|
2418
2509
|
}
|
|
2419
2510
|
function FieldLabel({ className, ...props }) {
|
|
2420
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ jsx35(
|
|
2421
2512
|
Label3,
|
|
2422
2513
|
{
|
|
2423
2514
|
"data-slot": "field-label",
|
|
@@ -2432,7 +2523,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2432
2523
|
);
|
|
2433
2524
|
}
|
|
2434
2525
|
function FieldTitle({ className, ...props }) {
|
|
2435
|
-
return /* @__PURE__ */
|
|
2526
|
+
return /* @__PURE__ */ jsx35(
|
|
2436
2527
|
"div",
|
|
2437
2528
|
{
|
|
2438
2529
|
"data-slot": "field-label",
|
|
@@ -2445,7 +2536,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2445
2536
|
);
|
|
2446
2537
|
}
|
|
2447
2538
|
function FieldDescription({ className, ...props }) {
|
|
2448
|
-
return /* @__PURE__ */
|
|
2539
|
+
return /* @__PURE__ */ jsx35(
|
|
2449
2540
|
"p",
|
|
2450
2541
|
{
|
|
2451
2542
|
"data-slot": "field-description",
|
|
@@ -2464,7 +2555,7 @@ function FieldSeparator({
|
|
|
2464
2555
|
className,
|
|
2465
2556
|
...props
|
|
2466
2557
|
}) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsxs16(
|
|
2468
2559
|
"div",
|
|
2469
2560
|
{
|
|
2470
2561
|
"data-slot": "field-separator",
|
|
@@ -2475,8 +2566,8 @@ function FieldSeparator({
|
|
|
2475
2566
|
),
|
|
2476
2567
|
...props,
|
|
2477
2568
|
children: [
|
|
2478
|
-
/* @__PURE__ */
|
|
2479
|
-
children && /* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ jsx35(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2570
|
+
children && /* @__PURE__ */ jsx35(
|
|
2480
2571
|
"span",
|
|
2481
2572
|
{
|
|
2482
2573
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2504,12 +2595,12 @@ function FieldError({
|
|
|
2504
2595
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2505
2596
|
return errors[0].message;
|
|
2506
2597
|
}
|
|
2507
|
-
return /* @__PURE__ */
|
|
2598
|
+
return /* @__PURE__ */ jsx35("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx35("li", { children: error.message }, index)) });
|
|
2508
2599
|
}, [children, errors]);
|
|
2509
2600
|
if (!content) {
|
|
2510
2601
|
return null;
|
|
2511
2602
|
}
|
|
2512
|
-
return /* @__PURE__ */
|
|
2603
|
+
return /* @__PURE__ */ jsx35(
|
|
2513
2604
|
"div",
|
|
2514
2605
|
{
|
|
2515
2606
|
role: "alert",
|
|
@@ -2522,11 +2613,11 @@ function FieldError({
|
|
|
2522
2613
|
}
|
|
2523
2614
|
|
|
2524
2615
|
// src/components/link/Link.tsx
|
|
2525
|
-
import * as
|
|
2526
|
-
import { cva as
|
|
2616
|
+
import * as React33 from "react";
|
|
2617
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
2527
2618
|
import { ExternalLink } from "lucide-react";
|
|
2528
|
-
import { jsx as
|
|
2529
|
-
var linkVariants =
|
|
2619
|
+
import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2620
|
+
var linkVariants = cva15(
|
|
2530
2621
|
"inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
2531
2622
|
{
|
|
2532
2623
|
variants: {
|
|
@@ -2550,7 +2641,7 @@ var linkVariants = cva14(
|
|
|
2550
2641
|
}
|
|
2551
2642
|
}
|
|
2552
2643
|
);
|
|
2553
|
-
var
|
|
2644
|
+
var Link2 = React33.forwardRef(
|
|
2554
2645
|
({
|
|
2555
2646
|
className,
|
|
2556
2647
|
variant,
|
|
@@ -2563,7 +2654,7 @@ var Link = React32.forwardRef(
|
|
|
2563
2654
|
...props
|
|
2564
2655
|
}, ref) => {
|
|
2565
2656
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2566
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ jsxs17(
|
|
2567
2658
|
"a",
|
|
2568
2659
|
{
|
|
2569
2660
|
ref,
|
|
@@ -2579,21 +2670,21 @@ var Link = React32.forwardRef(
|
|
|
2579
2670
|
},
|
|
2580
2671
|
children: [
|
|
2581
2672
|
children,
|
|
2582
|
-
icon && /* @__PURE__ */
|
|
2583
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
2673
|
+
icon && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center", children: icon }),
|
|
2674
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx36(Icon2, { icon: ExternalLink, size: 16 }) })
|
|
2584
2675
|
]
|
|
2585
2676
|
}
|
|
2586
2677
|
);
|
|
2587
2678
|
}
|
|
2588
2679
|
);
|
|
2589
|
-
|
|
2680
|
+
Link2.displayName = "Link";
|
|
2590
2681
|
|
|
2591
2682
|
// src/components/container/Container.tsx
|
|
2592
|
-
import * as
|
|
2683
|
+
import * as React34 from "react";
|
|
2593
2684
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2594
|
-
import { cva as
|
|
2595
|
-
import { jsx as
|
|
2596
|
-
var containerVariants =
|
|
2685
|
+
import { cva as cva16 } from "class-variance-authority";
|
|
2686
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2687
|
+
var containerVariants = cva16("w-full mx-auto", {
|
|
2597
2688
|
variants: {
|
|
2598
2689
|
size: {
|
|
2599
2690
|
sm: "max-w-3xl",
|
|
@@ -2614,10 +2705,10 @@ var containerVariants = cva15("w-full mx-auto", {
|
|
|
2614
2705
|
padding: "md"
|
|
2615
2706
|
}
|
|
2616
2707
|
});
|
|
2617
|
-
var Container =
|
|
2708
|
+
var Container = React34.forwardRef(
|
|
2618
2709
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2619
2710
|
const Component = asChild ? Slot3 : "div";
|
|
2620
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ jsx37(
|
|
2621
2712
|
Component,
|
|
2622
2713
|
{
|
|
2623
2714
|
ref,
|
|
@@ -2631,11 +2722,11 @@ var Container = React33.forwardRef(
|
|
|
2631
2722
|
Container.displayName = "Container";
|
|
2632
2723
|
|
|
2633
2724
|
// src/components/grid/Grid.tsx
|
|
2634
|
-
import * as
|
|
2635
|
-
import { cva as
|
|
2725
|
+
import * as React35 from "react";
|
|
2726
|
+
import { cva as cva17 } from "class-variance-authority";
|
|
2636
2727
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2637
|
-
import { jsx as
|
|
2638
|
-
var gridVariants =
|
|
2728
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2729
|
+
var gridVariants = cva17("grid", {
|
|
2639
2730
|
variants: {
|
|
2640
2731
|
align: {
|
|
2641
2732
|
start: "items-start",
|
|
@@ -2657,10 +2748,10 @@ var gridVariants = cva16("grid", {
|
|
|
2657
2748
|
justify: "start"
|
|
2658
2749
|
}
|
|
2659
2750
|
});
|
|
2660
|
-
var Grid =
|
|
2751
|
+
var Grid = React35.forwardRef(
|
|
2661
2752
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2662
2753
|
const Component = asChild ? Slot4 : "div";
|
|
2663
|
-
return /* @__PURE__ */
|
|
2754
|
+
return /* @__PURE__ */ jsx38(
|
|
2664
2755
|
Component,
|
|
2665
2756
|
{
|
|
2666
2757
|
ref,
|
|
@@ -2682,11 +2773,11 @@ var Grid = React34.forwardRef(
|
|
|
2682
2773
|
Grid.displayName = "Grid";
|
|
2683
2774
|
|
|
2684
2775
|
// src/components/box/Box.tsx
|
|
2685
|
-
import * as
|
|
2686
|
-
import { cva as
|
|
2776
|
+
import * as React36 from "react";
|
|
2777
|
+
import { cva as cva18 } from "class-variance-authority";
|
|
2687
2778
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
2688
|
-
import { jsx as
|
|
2689
|
-
var boxVariants =
|
|
2779
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2780
|
+
var boxVariants = cva18("flex", {
|
|
2690
2781
|
variants: {
|
|
2691
2782
|
direction: {
|
|
2692
2783
|
row: "flex-row",
|
|
@@ -2722,10 +2813,10 @@ var boxVariants = cva17("flex", {
|
|
|
2722
2813
|
wrap: "nowrap"
|
|
2723
2814
|
}
|
|
2724
2815
|
});
|
|
2725
|
-
var Box =
|
|
2816
|
+
var Box = React36.forwardRef(
|
|
2726
2817
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2727
2818
|
const Component = asChild ? Slot5 : "div";
|
|
2728
|
-
return /* @__PURE__ */
|
|
2819
|
+
return /* @__PURE__ */ jsx39(
|
|
2729
2820
|
Component,
|
|
2730
2821
|
{
|
|
2731
2822
|
ref,
|
|
@@ -2743,16 +2834,16 @@ var Box = React35.forwardRef(
|
|
|
2743
2834
|
Box.displayName = "Box";
|
|
2744
2835
|
|
|
2745
2836
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2746
|
-
import * as
|
|
2747
|
-
import { jsx as
|
|
2748
|
-
var BergetLogo =
|
|
2837
|
+
import * as React37 from "react";
|
|
2838
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2839
|
+
var BergetLogo = React37.forwardRef(
|
|
2749
2840
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2750
2841
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2751
2842
|
if (variant === "symbol") {
|
|
2752
2843
|
const aspectRatio2 = 463 / 419;
|
|
2753
2844
|
const width2 = size * aspectRatio2;
|
|
2754
2845
|
const height2 = size;
|
|
2755
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ jsx40(
|
|
2756
2847
|
"svg",
|
|
2757
2848
|
{
|
|
2758
2849
|
ref,
|
|
@@ -2765,7 +2856,7 @@ var BergetLogo = React36.forwardRef(
|
|
|
2765
2856
|
"aria-label": "Berget symbol",
|
|
2766
2857
|
className: cn("inline-block", className),
|
|
2767
2858
|
...props,
|
|
2768
|
-
children: /* @__PURE__ */
|
|
2859
|
+
children: /* @__PURE__ */ jsx40(
|
|
2769
2860
|
"path",
|
|
2770
2861
|
{
|
|
2771
2862
|
d: "M208.739 17L255.261 17L446 403L398 403L313.5 255L261.5 176L233.163 96.1677L237.815 98.6522H226.185L230.837 96.1677L113 331L64.5 403L18 403L208.739 17Z",
|
|
@@ -2778,7 +2869,7 @@ var BergetLogo = React36.forwardRef(
|
|
|
2778
2869
|
const aspectRatio = 793.63 / 204.37;
|
|
2779
2870
|
const width = size * aspectRatio;
|
|
2780
2871
|
const height = size;
|
|
2781
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ jsxs18(
|
|
2782
2873
|
"svg",
|
|
2783
2874
|
{
|
|
2784
2875
|
ref,
|
|
@@ -2792,59 +2883,59 @@ var BergetLogo = React36.forwardRef(
|
|
|
2792
2883
|
className: cn("inline-block", className),
|
|
2793
2884
|
...props,
|
|
2794
2885
|
children: [
|
|
2795
|
-
/* @__PURE__ */
|
|
2796
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ jsxs18("g", { style: { fill: fillColor }, children: [
|
|
2887
|
+
/* @__PURE__ */ jsx40(
|
|
2797
2888
|
"path",
|
|
2798
2889
|
{
|
|
2799
2890
|
className: "berget-logotype-fill",
|
|
2800
2891
|
d: "M268.78,172.54v-96.04h37.74c10.39,0,18.26,2.33,23.6,7,5.33,4.67,8.01,10.52,8.01,17.56,0,6.13-1.72,11-5.15,14.61-3.43,3.61-7.58,6.06-12.44,7.34,3.81.73,7.22,2.2,10.22,4.39,3.01,2.2,5.36,4.94,7.08,8.23,1.72,3.29,2.58,6.86,2.58,10.7,0,4.94-1.27,9.4-3.79,13.38-2.53,3.98-6.22,7.11-11.08,9.4-4.86,2.29-10.82,3.43-17.87,3.43h-38.89ZM283.93,117.66h20.74c5.81,0,10.24-1.3,13.29-3.91,3.05-2.61,4.58-6.19,4.58-10.77s-1.51-8.05-4.51-10.7c-3-2.65-7.55-3.98-13.65-3.98h-20.45v29.36ZM283.93,160.61h21.74c6.1,0,10.84-1.37,14.22-4.11,3.38-2.75,5.08-6.59,5.08-11.53s-1.76-8.85-5.29-11.73-8.29-4.32-14.3-4.32h-21.45v31.69Z"
|
|
2801
2892
|
}
|
|
2802
2893
|
),
|
|
2803
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ jsx40(
|
|
2804
2895
|
"path",
|
|
2805
2896
|
{
|
|
2806
2897
|
className: "berget-logotype-fill",
|
|
2807
2898
|
d: "M382.45,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81,2.91-1.88,5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM382.45,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2808
2899
|
}
|
|
2809
2900
|
),
|
|
2810
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ jsx40(
|
|
2811
2902
|
"path",
|
|
2812
2903
|
{
|
|
2813
2904
|
className: "berget-logotype-fill",
|
|
2814
2905
|
d: "M425.62,172.54v-68.05h13.59l1.29,12.9c2.47-4.48,5.93-8.03,10.37-10.63,4.43-2.61,9.79-3.91,16.08-3.91v15.23h-4.15c-4.19,0-7.93.67-11.22,1.99-3.29,1.33-5.91,3.57-7.86,6.72-1.96,3.16-2.93,7.53-2.93,13.1v32.65h-15.16Z"
|
|
2815
2906
|
}
|
|
2816
2907
|
),
|
|
2817
|
-
/* @__PURE__ */
|
|
2908
|
+
/* @__PURE__ */ jsx40(
|
|
2818
2909
|
"path",
|
|
2819
2910
|
{
|
|
2820
2911
|
className: "berget-logotype-fill",
|
|
2821
2912
|
d: "M500.25,151.69c-3.72,0-7.14-.41-10.29-1.24l-6.15,5.76c1.05.64,2.34,1.19,3.86,1.65,1.52.46,3.66.87,6.43,1.23,2.76.37,6.53.73,11.29,1.1,9.43.82,16.25,3,20.44,6.52,4.2,3.52,6.29,8.21,6.29,14.06,0,4.02-1.12,7.84-3.35,11.45-2.24,3.61-5.72,6.54-10.44,8.78s-10.74,3.36-18.09,3.36c-9.91,0-17.94-1.8-24.09-5.42-6.15-3.62-9.22-9.08-9.22-16.4,0-2.84.78-5.65,2.35-8.44,1.57-2.79,4.08-5.42,7.51-7.89-2-.83-3.74-1.72-5.22-2.68-1.48-.96-2.79-1.94-3.94-2.95v-3.29l12.3-12.07c-5.53-4.57-8.29-10.56-8.29-17.97,0-4.48,1.12-8.58,3.36-12.28,2.24-3.7,5.5-6.65,9.79-8.85,4.29-2.2,9.43-3.29,15.44-3.29,4.01,0,7.72.55,11.15,1.64h26.45v9.6l-12.58.69c2.28,3.75,3.43,7.91,3.43,12.49s-1.13,8.69-3.36,12.35c-2.24,3.66-5.48,6.59-9.72,8.78-4.25,2.2-9.37,3.29-15.37,3.29ZM481.24,181.19c0,3.93,1.81,6.88,5.44,8.85,3.62,1.97,8.15,2.95,13.58,2.95s9.48-1.07,12.72-3.22c3.24-2.15,4.86-5,4.86-8.57,0-2.65-1.09-4.92-3.29-6.79-2.19-1.87-6.34-3.04-12.44-3.5-4.57-.27-8.63-.68-12.15-1.23-3.34,1.74-5.63,3.61-6.86,5.63-1.25,2.01-1.86,3.98-1.86,5.9ZM500.25,140.3c4.38,0,7.93-1.12,10.66-3.36,2.71-2.24,4.07-5.42,4.07-9.53s-1.36-7.41-4.07-9.6c-2.72-2.2-6.27-3.29-10.66-3.29s-8.08,1.1-10.79,3.29c-2.71,2.2-4.08,5.4-4.08,9.6s1.36,7.3,4.08,9.53c2.71,2.24,6.31,3.36,10.79,3.36Z"
|
|
2822
2913
|
}
|
|
2823
2914
|
),
|
|
2824
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx40(
|
|
2825
2916
|
"path",
|
|
2826
2917
|
{
|
|
2827
2918
|
className: "berget-logotype-fill",
|
|
2828
2919
|
d: "M574.61,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79c3-5.4,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81s5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM574.61,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2829
2920
|
}
|
|
2830
2921
|
),
|
|
2831
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx40(
|
|
2832
2923
|
"path",
|
|
2833
2924
|
{
|
|
2834
2925
|
className: "berget-logotype-fill",
|
|
2835
2926
|
d: "M646.23,172.54c-6.96,0-12.49-1.62-16.59-4.87-4.1-3.25-6.15-9.03-6.15-17.36v-33.61h-12.16v-12.21h12.16l1.86-17.29h13.29v17.29h20.02v12.21h-20.02v33.61c0,3.75.84,6.33,2.51,7.75,1.67,1.42,4.55,2.13,8.65,2.13h8.14v12.35h-11.72Z"
|
|
2836
2927
|
}
|
|
2837
2928
|
),
|
|
2838
|
-
/* @__PURE__ */
|
|
2929
|
+
/* @__PURE__ */ jsx40(
|
|
2839
2930
|
"path",
|
|
2840
2931
|
{
|
|
2841
2932
|
className: "berget-logotype-fill",
|
|
2842
2933
|
d: "M684.4,172.54l36.89-96.04h16.59l36.6,96.04h-16.01l-8.58-23.46h-40.88l-8.58,23.46h-16.01ZM713.28,137.56h32.31l-16.16-43.77-16.16,43.77Z"
|
|
2843
2934
|
}
|
|
2844
2935
|
),
|
|
2845
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsx40("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2846
2937
|
] }),
|
|
2847
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ jsx40(
|
|
2848
2939
|
"path",
|
|
2849
2940
|
{
|
|
2850
2941
|
style: { fill: fillColor },
|
|
@@ -2859,13 +2950,13 @@ var BergetLogo = React36.forwardRef(
|
|
|
2859
2950
|
BergetLogo.displayName = "BergetLogo";
|
|
2860
2951
|
|
|
2861
2952
|
// src/components/language-select/LanguageSelect.tsx
|
|
2862
|
-
import * as
|
|
2953
|
+
import * as React38 from "react";
|
|
2863
2954
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
2864
2955
|
import { Globe as Globe2 } from "lucide-react";
|
|
2865
|
-
import { jsx as
|
|
2866
|
-
var LanguageSelect =
|
|
2867
|
-
return /* @__PURE__ */
|
|
2868
|
-
/* @__PURE__ */
|
|
2956
|
+
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2957
|
+
var LanguageSelect = React38.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
2958
|
+
return /* @__PURE__ */ jsxs19(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
2959
|
+
/* @__PURE__ */ jsxs19(
|
|
2869
2960
|
SelectPrimitive2.Trigger,
|
|
2870
2961
|
{
|
|
2871
2962
|
ref,
|
|
@@ -2888,12 +2979,12 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
2888
2979
|
className
|
|
2889
2980
|
),
|
|
2890
2981
|
children: [
|
|
2891
|
-
/* @__PURE__ */
|
|
2892
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Select language" }),
|
|
2983
|
+
/* @__PURE__ */ jsx41(Icon2, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
2893
2984
|
]
|
|
2894
2985
|
}
|
|
2895
2986
|
),
|
|
2896
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ jsx41(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx41(
|
|
2897
2988
|
SelectPrimitive2.Content,
|
|
2898
2989
|
{
|
|
2899
2990
|
className: cn(
|
|
@@ -2921,7 +3012,7 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
2921
3012
|
"origin-[--radix-select-content-transform-origin]"
|
|
2922
3013
|
),
|
|
2923
3014
|
position: "popper",
|
|
2924
|
-
children: /* @__PURE__ */
|
|
3015
|
+
children: /* @__PURE__ */ jsx41(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx41(
|
|
2925
3016
|
SelectPrimitive2.Item,
|
|
2926
3017
|
{
|
|
2927
3018
|
value: option.value,
|
|
@@ -2938,7 +3029,7 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
2938
3029
|
// Disabled state
|
|
2939
3030
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2940
3031
|
),
|
|
2941
|
-
children: /* @__PURE__ */
|
|
3032
|
+
children: /* @__PURE__ */ jsx41(SelectPrimitive2.ItemText, { children: option.label })
|
|
2942
3033
|
},
|
|
2943
3034
|
option.value
|
|
2944
3035
|
)) })
|
|
@@ -2949,13 +3040,13 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
2949
3040
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2950
3041
|
|
|
2951
3042
|
// src/components/list/List.tsx
|
|
2952
|
-
import * as
|
|
3043
|
+
import * as React40 from "react";
|
|
2953
3044
|
|
|
2954
3045
|
// src/components/divider/Divider.tsx
|
|
2955
|
-
import * as
|
|
2956
|
-
import { cva as
|
|
2957
|
-
import { jsx as
|
|
2958
|
-
var dividerVariants =
|
|
3046
|
+
import * as React39 from "react";
|
|
3047
|
+
import { cva as cva19 } from "class-variance-authority";
|
|
3048
|
+
import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3049
|
+
var dividerVariants = cva19("", {
|
|
2959
3050
|
variants: {
|
|
2960
3051
|
variant: {
|
|
2961
3052
|
default: "bg-berget-separator",
|
|
@@ -2975,7 +3066,7 @@ var dividerVariants = cva18("", {
|
|
|
2975
3066
|
size: "thin"
|
|
2976
3067
|
}
|
|
2977
3068
|
});
|
|
2978
|
-
var Divider =
|
|
3069
|
+
var Divider = React39.forwardRef(
|
|
2979
3070
|
({
|
|
2980
3071
|
className,
|
|
2981
3072
|
orientation = "horizontal",
|
|
@@ -2986,16 +3077,16 @@ var Divider = React38.forwardRef(
|
|
|
2986
3077
|
...props
|
|
2987
3078
|
}, ref) => {
|
|
2988
3079
|
if (label) {
|
|
2989
|
-
return /* @__PURE__ */
|
|
2990
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsxs20("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3081
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx42(
|
|
2991
3082
|
Separator2,
|
|
2992
3083
|
{
|
|
2993
3084
|
orientation: "horizontal",
|
|
2994
3085
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2995
3086
|
}
|
|
2996
3087
|
),
|
|
2997
|
-
/* @__PURE__ */
|
|
2998
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
3088
|
+
/* @__PURE__ */ jsx42(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3089
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx42(
|
|
2999
3090
|
Separator2,
|
|
3000
3091
|
{
|
|
3001
3092
|
orientation: "horizontal",
|
|
@@ -3004,7 +3095,7 @@ var Divider = React38.forwardRef(
|
|
|
3004
3095
|
)
|
|
3005
3096
|
] });
|
|
3006
3097
|
}
|
|
3007
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ jsx42(
|
|
3008
3099
|
Separator2,
|
|
3009
3100
|
{
|
|
3010
3101
|
ref,
|
|
@@ -3022,19 +3113,19 @@ Divider.displayName = "Divider";
|
|
|
3022
3113
|
|
|
3023
3114
|
// src/components/list/List.tsx
|
|
3024
3115
|
import { Check as Check5 } from "lucide-react";
|
|
3025
|
-
import { jsx as
|
|
3026
|
-
var
|
|
3116
|
+
import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3117
|
+
var List2 = React40.forwardRef(
|
|
3027
3118
|
({ className, children, ...props }, ref) => {
|
|
3028
|
-
const childrenArray =
|
|
3029
|
-
return /* @__PURE__ */
|
|
3119
|
+
const childrenArray = React40.Children.toArray(children);
|
|
3120
|
+
return /* @__PURE__ */ jsx43("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs21(React40.Fragment, { children: [
|
|
3030
3121
|
child,
|
|
3031
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
3122
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx43(Divider, { variant: "subtle" })
|
|
3032
3123
|
] }, index)) });
|
|
3033
3124
|
}
|
|
3034
3125
|
);
|
|
3035
|
-
|
|
3036
|
-
var ListItem =
|
|
3037
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */
|
|
3126
|
+
List2.displayName = "List";
|
|
3127
|
+
var ListItem = React40.forwardRef(
|
|
3128
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
3038
3129
|
"div",
|
|
3039
3130
|
{
|
|
3040
3131
|
ref,
|
|
@@ -3045,15 +3136,15 @@ var ListItem = React39.forwardRef(
|
|
|
3045
3136
|
),
|
|
3046
3137
|
...props,
|
|
3047
3138
|
children: [
|
|
3048
|
-
icon && /* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */
|
|
3139
|
+
icon && /* @__PURE__ */ jsx43("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3140
|
+
/* @__PURE__ */ jsx43("div", { className: "flex-1 min-w-0", children })
|
|
3050
3141
|
]
|
|
3051
3142
|
}
|
|
3052
3143
|
)
|
|
3053
3144
|
);
|
|
3054
3145
|
ListItem.displayName = "ListItem";
|
|
3055
|
-
var ListHeader =
|
|
3056
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
3146
|
+
var ListHeader = React40.forwardRef(
|
|
3147
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3057
3148
|
"div",
|
|
3058
3149
|
{
|
|
3059
3150
|
ref,
|
|
@@ -3064,21 +3155,21 @@ var ListHeader = React39.forwardRef(
|
|
|
3064
3155
|
)
|
|
3065
3156
|
);
|
|
3066
3157
|
ListHeader.displayName = "ListHeader";
|
|
3067
|
-
var FeatureList =
|
|
3158
|
+
var FeatureList = React40.forwardRef(
|
|
3068
3159
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
3069
|
-
return /* @__PURE__ */
|
|
3070
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3160
|
+
return /* @__PURE__ */ jsx43("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs21("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3161
|
+
variant === "bullet" ? /* @__PURE__ */ jsx43("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx43("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx43(Icon2, { icon: Check5, size: 24, className: "text-berget-logo-light" }) }),
|
|
3162
|
+
/* @__PURE__ */ jsx43(Typography, { variant: "body", color: "muted", children: item })
|
|
3072
3163
|
] }, index)) });
|
|
3073
3164
|
}
|
|
3074
3165
|
);
|
|
3075
3166
|
FeatureList.displayName = "FeatureList";
|
|
3076
3167
|
|
|
3077
3168
|
// src/components/hero-block/HeroBlock.tsx
|
|
3078
|
-
import * as
|
|
3079
|
-
import { cva as
|
|
3080
|
-
import { jsx as
|
|
3081
|
-
var heroBlockVariants =
|
|
3169
|
+
import * as React41 from "react";
|
|
3170
|
+
import { cva as cva20 } from "class-variance-authority";
|
|
3171
|
+
import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3172
|
+
var heroBlockVariants = cva20(
|
|
3082
3173
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3083
3174
|
{
|
|
3084
3175
|
variants: {
|
|
@@ -3098,7 +3189,7 @@ var heroBlockVariants = cva19(
|
|
|
3098
3189
|
}
|
|
3099
3190
|
}
|
|
3100
3191
|
);
|
|
3101
|
-
var HeroBlock =
|
|
3192
|
+
var HeroBlock = React41.forwardRef(
|
|
3102
3193
|
({
|
|
3103
3194
|
className,
|
|
3104
3195
|
variant,
|
|
@@ -3110,26 +3201,26 @@ var HeroBlock = React40.forwardRef(
|
|
|
3110
3201
|
actions,
|
|
3111
3202
|
...props
|
|
3112
3203
|
}, ref) => {
|
|
3113
|
-
return /* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsx44(
|
|
3114
3205
|
"div",
|
|
3115
3206
|
{
|
|
3116
3207
|
ref,
|
|
3117
3208
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
3118
3209
|
...props,
|
|
3119
|
-
children: /* @__PURE__ */
|
|
3120
|
-
tagline && /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ jsx44("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs22("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3211
|
+
tagline && /* @__PURE__ */ jsx44(
|
|
3121
3212
|
Badge,
|
|
3122
3213
|
{
|
|
3123
3214
|
variant: "default",
|
|
3124
|
-
icon: TaglineIcon ? /* @__PURE__ */
|
|
3215
|
+
icon: TaglineIcon ? /* @__PURE__ */ jsx44(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
3125
3216
|
iconGap: 2,
|
|
3126
3217
|
className: "mb-fluid-md",
|
|
3127
3218
|
children: tagline
|
|
3128
3219
|
}
|
|
3129
3220
|
),
|
|
3130
|
-
/* @__PURE__ */
|
|
3131
|
-
/* @__PURE__ */
|
|
3132
|
-
actions && /* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx44(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3222
|
+
/* @__PURE__ */ jsx44(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3223
|
+
actions && /* @__PURE__ */ jsx44("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
3133
3224
|
] }) })
|
|
3134
3225
|
}
|
|
3135
3226
|
);
|
|
@@ -3140,7 +3231,7 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
3140
3231
|
// src/components/code-block/CodeBlock.tsx
|
|
3141
3232
|
import { useState as useState3, useEffect as useEffect2, useCallback as useCallback3 } from "react";
|
|
3142
3233
|
import { Copy, Check as Check6 } from "lucide-react";
|
|
3143
|
-
import { jsx as
|
|
3234
|
+
import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3144
3235
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
3145
3236
|
const [html, setHtml] = useState3(null);
|
|
3146
3237
|
const [copied, setCopied] = useState3(false);
|
|
@@ -3156,16 +3247,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3156
3247
|
setCopied(true);
|
|
3157
3248
|
setTimeout(() => setCopied(false), 2e3);
|
|
3158
3249
|
}, [code]);
|
|
3159
|
-
const copyButton = /* @__PURE__ */
|
|
3250
|
+
const copyButton = /* @__PURE__ */ jsx45(
|
|
3160
3251
|
"button",
|
|
3161
3252
|
{
|
|
3162
3253
|
onClick: handleCopy,
|
|
3163
3254
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
3164
3255
|
"aria-label": "Copy code",
|
|
3165
|
-
children: copied ? /* @__PURE__ */
|
|
3256
|
+
children: copied ? /* @__PURE__ */ jsx45(Check6, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx45(Copy, { className: "w-3.5 h-3.5" })
|
|
3166
3257
|
}
|
|
3167
3258
|
);
|
|
3168
|
-
return /* @__PURE__ */
|
|
3259
|
+
return /* @__PURE__ */ jsxs23(
|
|
3169
3260
|
"div",
|
|
3170
3261
|
{
|
|
3171
3262
|
className: cn(
|
|
@@ -3173,25 +3264,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3173
3264
|
className
|
|
3174
3265
|
),
|
|
3175
3266
|
children: [
|
|
3176
|
-
title && /* @__PURE__ */
|
|
3177
|
-
/* @__PURE__ */
|
|
3178
|
-
html ? /* @__PURE__ */
|
|
3267
|
+
title && /* @__PURE__ */ jsx45("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ jsx45("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3268
|
+
/* @__PURE__ */ jsx45("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3269
|
+
html ? /* @__PURE__ */ jsx45(
|
|
3179
3270
|
"div",
|
|
3180
3271
|
{
|
|
3181
3272
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
3182
3273
|
dangerouslySetInnerHTML: { __html: html }
|
|
3183
3274
|
}
|
|
3184
|
-
) : /* @__PURE__ */
|
|
3275
|
+
) : /* @__PURE__ */ jsx45("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx45("code", { children: code }) })
|
|
3185
3276
|
]
|
|
3186
3277
|
}
|
|
3187
3278
|
);
|
|
3188
3279
|
}
|
|
3189
3280
|
|
|
3190
3281
|
// src/components/window-frame/WindowFrame.tsx
|
|
3191
|
-
import * as
|
|
3282
|
+
import * as React42 from "react";
|
|
3192
3283
|
import { useState as useState4 } from "react";
|
|
3193
|
-
import { jsx as
|
|
3194
|
-
var WindowFrame =
|
|
3284
|
+
import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3285
|
+
var WindowFrame = React42.forwardRef(
|
|
3195
3286
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3196
3287
|
const [internalActive, setInternalActive] = useState4(tabs?.[0]?.id ?? "");
|
|
3197
3288
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3202,7 +3293,7 @@ var WindowFrame = React41.forwardRef(
|
|
|
3202
3293
|
setInternalActive(id);
|
|
3203
3294
|
}
|
|
3204
3295
|
};
|
|
3205
|
-
return /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsxs24(
|
|
3206
3297
|
"div",
|
|
3207
3298
|
{
|
|
3208
3299
|
ref,
|
|
@@ -3212,13 +3303,13 @@ var WindowFrame = React41.forwardRef(
|
|
|
3212
3303
|
),
|
|
3213
3304
|
...props,
|
|
3214
3305
|
children: [
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */
|
|
3218
|
-
/* @__PURE__ */
|
|
3219
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3307
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3308
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3309
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3310
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3220
3311
|
] }),
|
|
3221
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */
|
|
3312
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx46("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx46(
|
|
3222
3313
|
"button",
|
|
3223
3314
|
{
|
|
3224
3315
|
type: "button",
|
|
@@ -3230,9 +3321,9 @@ var WindowFrame = React41.forwardRef(
|
|
|
3230
3321
|
children: tab.label
|
|
3231
3322
|
},
|
|
3232
3323
|
tab.id
|
|
3233
|
-
)) }) : /* @__PURE__ */
|
|
3324
|
+
)) }) : /* @__PURE__ */ jsx46("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3234
3325
|
] }),
|
|
3235
|
-
/* @__PURE__ */
|
|
3326
|
+
/* @__PURE__ */ jsx46("div", { children })
|
|
3236
3327
|
]
|
|
3237
3328
|
}
|
|
3238
3329
|
);
|
|
@@ -3310,7 +3401,7 @@ export {
|
|
|
3310
3401
|
HeroBlock,
|
|
3311
3402
|
Icon2 as Icon,
|
|
3312
3403
|
Input2 as Input,
|
|
3313
|
-
|
|
3404
|
+
Item4 as Item,
|
|
3314
3405
|
ItemActions,
|
|
3315
3406
|
ItemContent,
|
|
3316
3407
|
ItemDescription2 as ItemDescription,
|
|
@@ -3322,10 +3413,18 @@ export {
|
|
|
3322
3413
|
ItemTitle2 as ItemTitle,
|
|
3323
3414
|
Label3 as Label,
|
|
3324
3415
|
LanguageSelect,
|
|
3325
|
-
Link,
|
|
3326
|
-
List,
|
|
3416
|
+
Link2 as Link,
|
|
3417
|
+
List2 as List,
|
|
3327
3418
|
ListHeader,
|
|
3328
3419
|
ListItem,
|
|
3420
|
+
NavigationMenu,
|
|
3421
|
+
NavigationMenuContent,
|
|
3422
|
+
NavigationMenuIndicator,
|
|
3423
|
+
NavigationMenuItem,
|
|
3424
|
+
NavigationMenuLink,
|
|
3425
|
+
NavigationMenuList,
|
|
3426
|
+
NavigationMenuTrigger,
|
|
3427
|
+
NavigationMenuViewport,
|
|
3329
3428
|
Select2 as Select,
|
|
3330
3429
|
Switch,
|
|
3331
3430
|
Table2 as Table,
|
|
@@ -3353,6 +3452,7 @@ export {
|
|
|
3353
3452
|
gridVariants,
|
|
3354
3453
|
isEUCountry,
|
|
3355
3454
|
linkVariants,
|
|
3455
|
+
navigationMenuTriggerStyle,
|
|
3356
3456
|
selectVariants,
|
|
3357
3457
|
switchRootVariants,
|
|
3358
3458
|
switchThumbVariants,
|