@bergetai/ui 0.1.91 → 0.2.0

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.js CHANGED
@@ -528,15 +528,449 @@ var Alert2 = React9.forwardRef(
528
528
  );
529
529
  Alert2.displayName = "Alert";
530
530
 
531
- // src/components/input/Input.tsx
531
+ // src/components/dialog/Dialog.tsx
532
+ import * as React10 from "react";
533
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
534
+ import { X } from "lucide-react";
535
+ import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
536
+ var Dialog = DialogPrimitive.Root;
537
+ var DialogTrigger = DialogPrimitive.Trigger;
538
+ var DialogPortal = DialogPrimitive.Portal;
539
+ var DialogClose = DialogPrimitive.Close;
540
+ var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
541
+ DialogPrimitive.Overlay,
542
+ {
543
+ ref,
544
+ className: cn(
545
+ "fixed inset-0 z-50 bg-berget-dialog-overlay-bg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
546
+ className
547
+ ),
548
+ ...props
549
+ }
550
+ ));
551
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
552
+ var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
553
+ /* @__PURE__ */ jsx11(DialogOverlay, {}),
554
+ /* @__PURE__ */ jsxs3(
555
+ DialogPrimitive.Content,
556
+ {
557
+ ref,
558
+ className: cn(
559
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
560
+ className
561
+ ),
562
+ ...props,
563
+ children: [
564
+ children,
565
+ /* @__PURE__ */ jsxs3(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-berget-muted data-[state=open]:text-berget-muted-foreground", children: [
566
+ /* @__PURE__ */ jsx11(X, { className: "size-4" }),
567
+ /* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
568
+ ] })
569
+ ]
570
+ }
571
+ )
572
+ ] }));
573
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
574
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx11("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
575
+ DialogHeader.displayName = "DialogHeader";
576
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx11(
577
+ "div",
578
+ {
579
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
580
+ ...props
581
+ }
582
+ );
583
+ DialogFooter.displayName = "DialogFooter";
584
+ var DialogTitle = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
585
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
586
+ var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "small", color: "muted", className, children }) }));
587
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
588
+
589
+ // src/components/table/Table.tsx
590
+ import * as React12 from "react";
591
+
592
+ // src/primitives/table.tsx
532
593
  import * as React11 from "react";
594
+ import { jsx as jsx12 } from "react/jsx-runtime";
595
+ var Table = React11.forwardRef(
596
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx12("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx12("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
597
+ );
598
+ Table.displayName = "Table";
599
+ var TableHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
600
+ TableHeader.displayName = "TableHeader";
601
+ var TableBody = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
602
+ TableBody.displayName = "TableBody";
603
+ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
604
+ "tfoot",
605
+ {
606
+ ref,
607
+ className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
608
+ ...props
609
+ }
610
+ ));
611
+ TableFooter.displayName = "TableFooter";
612
+ var TableRow = React11.forwardRef(
613
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
614
+ "tr",
615
+ {
616
+ ref,
617
+ className: cn(
618
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
619
+ className
620
+ ),
621
+ ...props
622
+ }
623
+ )
624
+ );
625
+ TableRow.displayName = "TableRow";
626
+ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
627
+ "th",
628
+ {
629
+ ref,
630
+ className: cn(
631
+ "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
632
+ className
633
+ ),
634
+ ...props
635
+ }
636
+ ));
637
+ TableHead.displayName = "TableHead";
638
+ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
639
+ "td",
640
+ {
641
+ ref,
642
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
643
+ ...props
644
+ }
645
+ ));
646
+ TableCell.displayName = "TableCell";
647
+ var TableCaption = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
648
+ TableCaption.displayName = "TableCaption";
649
+
650
+ // src/components/table/Table.tsx
651
+ import { jsx as jsx13 } from "react/jsx-runtime";
652
+ var Table2 = React12.forwardRef(
653
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx13(Table, { ref, className, ...props })
654
+ );
655
+ Table2.displayName = "Table";
656
+ var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(TableHeader, { ref, className: cn("[&_tr]:border-b", className), ...props }));
657
+ TableHeader2.displayName = "TableHeader";
658
+ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
659
+ TableBody,
660
+ {
661
+ ref,
662
+ className: cn("[&_tr:last-child]:border-0", className),
663
+ ...props
664
+ }
665
+ ));
666
+ TableBody2.displayName = "TableBody";
667
+ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
668
+ TableFooter,
669
+ {
670
+ ref,
671
+ className: cn("border-t bg-berget-table-footer-bg font-medium [&>tr]:last:border-0", className),
672
+ ...props
673
+ }
674
+ ));
675
+ TableFooter2.displayName = "TableFooter";
676
+ var TableRow2 = React12.forwardRef(
677
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
678
+ TableRow,
679
+ {
680
+ ref,
681
+ className: cn(
682
+ "border-b transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
683
+ className
684
+ ),
685
+ ...props
686
+ }
687
+ )
688
+ );
689
+ TableRow2.displayName = "TableRow";
690
+ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
691
+ TableHead,
692
+ {
693
+ ref,
694
+ className: cn(
695
+ "h-12 px-4 text-left align-middle font-medium text-berget-table-head-text [&:has([role=checkbox])]:pr-0",
696
+ className
697
+ ),
698
+ ...props
699
+ }
700
+ ));
701
+ TableHead2.displayName = "TableHead";
702
+ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
703
+ TableCell,
704
+ {
705
+ ref,
706
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
707
+ ...props
708
+ }
709
+ ));
710
+ TableCell2.displayName = "TableCell";
711
+ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
712
+ TableCaption,
713
+ {
714
+ ref,
715
+ className: cn("mt-4 text-sm text-berget-table-caption-text", className),
716
+ ...props
717
+ }
718
+ ));
719
+ TableCaption2.displayName = "TableCaption";
720
+
721
+ // src/components/item/Item.tsx
722
+ import * as React14 from "react";
723
+
724
+ // src/primitives/item.tsx
725
+ import { Slot as Slot2 } from "@radix-ui/react-slot";
726
+ import { cva as cva7 } from "class-variance-authority";
727
+
728
+ // src/primitives/separator.tsx
729
+ import * as React13 from "react";
730
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
731
+ import { jsx as jsx14 } from "react/jsx-runtime";
732
+ var Separator = React13.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx14(
733
+ SeparatorPrimitive.Root,
734
+ {
735
+ ref,
736
+ decorative,
737
+ orientation,
738
+ className: cn(
739
+ "shrink-0 bg-border",
740
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
741
+ className
742
+ ),
743
+ ...props
744
+ }
745
+ ));
746
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
747
+
748
+ // src/primitives/item.tsx
749
+ import { jsx as jsx15 } from "react/jsx-runtime";
750
+ function ItemGroup({ className, ...props }) {
751
+ return /* @__PURE__ */ jsx15(
752
+ "div",
753
+ {
754
+ role: "list",
755
+ "data-slot": "item-group",
756
+ className: cn("group/item-group flex flex-col", className),
757
+ ...props
758
+ }
759
+ );
760
+ }
761
+ function ItemSeparator({ className, ...props }) {
762
+ return /* @__PURE__ */ jsx15(
763
+ Separator,
764
+ {
765
+ "data-slot": "item-separator",
766
+ orientation: "horizontal",
767
+ className: cn("my-0", className),
768
+ ...props
769
+ }
770
+ );
771
+ }
772
+ var itemVariants = cva7(
773
+ "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]",
774
+ {
775
+ variants: {
776
+ variant: {
777
+ default: "bg-transparent",
778
+ outline: "border-border",
779
+ muted: "bg-muted/50"
780
+ },
781
+ size: {
782
+ default: "gap-4 p-4 ",
783
+ sm: "gap-2.5 px-4 py-3"
784
+ }
785
+ },
786
+ defaultVariants: {
787
+ variant: "default",
788
+ size: "default"
789
+ }
790
+ }
791
+ );
792
+ function Item({
793
+ className,
794
+ variant = "default",
795
+ size = "default",
796
+ asChild = false,
797
+ ...props
798
+ }) {
799
+ const Comp = asChild ? Slot2 : "div";
800
+ return /* @__PURE__ */ jsx15(
801
+ Comp,
802
+ {
803
+ "data-slot": "item",
804
+ "data-variant": variant,
805
+ "data-size": size,
806
+ className: cn(itemVariants({ variant, size, className })),
807
+ ...props
808
+ }
809
+ );
810
+ }
811
+ var itemMediaVariants = cva7(
812
+ "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",
813
+ {
814
+ variants: {
815
+ variant: {
816
+ default: "bg-transparent",
817
+ icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
818
+ image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
819
+ }
820
+ },
821
+ defaultVariants: {
822
+ variant: "default"
823
+ }
824
+ }
825
+ );
826
+ function ItemMedia({
827
+ className,
828
+ variant = "default",
829
+ ...props
830
+ }) {
831
+ return /* @__PURE__ */ jsx15(
832
+ "div",
833
+ {
834
+ "data-slot": "item-media",
835
+ "data-variant": variant,
836
+ className: cn(itemMediaVariants({ variant, className })),
837
+ ...props
838
+ }
839
+ );
840
+ }
841
+ function ItemContent({ className, ...props }) {
842
+ return /* @__PURE__ */ jsx15(
843
+ "div",
844
+ {
845
+ "data-slot": "item-content",
846
+ className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
847
+ ...props
848
+ }
849
+ );
850
+ }
851
+ function ItemTitle({ className, ...props }) {
852
+ return /* @__PURE__ */ jsx15(
853
+ "div",
854
+ {
855
+ "data-slot": "item-title",
856
+ className: cn("flex w-fit items-center gap-2 text-sm font-medium leading-snug", className),
857
+ ...props
858
+ }
859
+ );
860
+ }
861
+ function ItemDescription({ className, ...props }) {
862
+ return /* @__PURE__ */ jsx15(
863
+ "p",
864
+ {
865
+ "data-slot": "item-description",
866
+ className: cn(
867
+ "text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal",
868
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
869
+ className
870
+ ),
871
+ ...props
872
+ }
873
+ );
874
+ }
875
+ function ItemActions({ className, ...props }) {
876
+ return /* @__PURE__ */ jsx15("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
877
+ }
878
+ function ItemHeader({ className, ...props }) {
879
+ return /* @__PURE__ */ jsx15(
880
+ "div",
881
+ {
882
+ "data-slot": "item-header",
883
+ className: cn("flex basis-full items-center justify-between gap-2", className),
884
+ ...props
885
+ }
886
+ );
887
+ }
888
+ function ItemFooter({ className, ...props }) {
889
+ return /* @__PURE__ */ jsx15(
890
+ "div",
891
+ {
892
+ "data-slot": "item-footer",
893
+ className: cn("flex basis-full items-center justify-between gap-2", className),
894
+ ...props
895
+ }
896
+ );
897
+ }
898
+
899
+ // src/components/item/Item.tsx
900
+ import { jsx as jsx16 } from "react/jsx-runtime";
901
+ function Item2({ className, asChild, ...props }) {
902
+ return /* @__PURE__ */ jsx16(
903
+ Item,
904
+ {
905
+ asChild,
906
+ className: cn(
907
+ /* Variant colours — override primitive defaults */
908
+ "data-[variant=outline]:border-berget-item-outline-border",
909
+ "data-[variant=muted]:bg-berget-item-muted-bg",
910
+ "data-[variant=muted]:text-berget-item-muted-fg",
911
+ /* Hover / focus */
912
+ "[&_a]:hover:bg-berget-item-link-hover-surface",
913
+ "focus-visible:border-berget-item-focus-ring focus-visible:ring-berget-item-focus-ring/50",
914
+ className
915
+ ),
916
+ ...props
917
+ }
918
+ );
919
+ }
920
+ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
921
+ return /* @__PURE__ */ jsx16(
922
+ ItemMedia,
923
+ {
924
+ ref,
925
+ className: cn("data-[variant=icon]:bg-berget-item-media-icon-bg", className),
926
+ ...props
927
+ }
928
+ );
929
+ });
930
+ ItemMedia2.displayName = "ItemMedia";
931
+ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
932
+ return /* @__PURE__ */ jsx16(
933
+ ItemTitle,
934
+ {
935
+ ref,
936
+ className: cn("text-berget-item-default-fg", className),
937
+ ...props
938
+ }
939
+ );
940
+ });
941
+ ItemTitle2.displayName = "ItemTitle";
942
+ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
943
+ return /* @__PURE__ */ jsx16(
944
+ ItemDescription,
945
+ {
946
+ ref,
947
+ className: cn("text-berget-item-description-fg", className),
948
+ ...props
949
+ }
950
+ );
951
+ });
952
+ ItemDescription2.displayName = "ItemDescription";
953
+ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
954
+ return /* @__PURE__ */ jsx16(
955
+ ItemSeparator,
956
+ {
957
+ ref,
958
+ className: cn("bg-berget-item-separator", className),
959
+ ...props
960
+ }
961
+ );
962
+ });
963
+ ItemSeparator2.displayName = "ItemSeparator";
964
+
965
+ // src/components/input/Input.tsx
966
+ import * as React16 from "react";
533
967
 
534
968
  // src/primitives/input.tsx
535
- import * as React10 from "react";
536
- import { jsx as jsx11 } from "react/jsx-runtime";
537
- var Input = React10.forwardRef(
969
+ import * as React15 from "react";
970
+ import { jsx as jsx17 } from "react/jsx-runtime";
971
+ var Input = React15.forwardRef(
538
972
  ({ className, type, ...props }, ref) => {
539
- return /* @__PURE__ */ jsx11(
973
+ return /* @__PURE__ */ jsx17(
540
974
  "input",
541
975
  {
542
976
  type,
@@ -553,14 +987,14 @@ var Input = React10.forwardRef(
553
987
  Input.displayName = "Input";
554
988
 
555
989
  // src/components/input/Input.tsx
556
- import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
557
- var Input2 = React11.forwardRef(
990
+ import { jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
991
+ var Input2 = React16.forwardRef(
558
992
  ({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
559
- const generatedId = React11.useId();
993
+ const generatedId = React16.useId();
560
994
  const inputId = id || generatedId;
561
995
  const errorId = `${inputId}-error`;
562
996
  const descriptionId = `${inputId}-description`;
563
- const inputElement = /* @__PURE__ */ jsx12(
997
+ const inputElement = /* @__PURE__ */ jsx18(
564
998
  Input,
565
999
  {
566
1000
  ref,
@@ -580,8 +1014,8 @@ var Input2 = React11.forwardRef(
580
1014
  }
581
1015
  );
582
1016
  if (!icon && !actionButton) {
583
- return /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-2", children: [
584
- label && /* @__PURE__ */ jsx12(
1017
+ return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2", children: [
1018
+ label && /* @__PURE__ */ jsx18(
585
1019
  "label",
586
1020
  {
587
1021
  htmlFor: inputId,
@@ -594,9 +1028,9 @@ var Input2 = React11.forwardRef(
594
1028
  }
595
1029
  ),
596
1030
  inputElement,
597
- (description || error) && /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1", children: [
598
- description && /* @__PURE__ */ jsx12(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
599
- error && /* @__PURE__ */ jsx12(
1031
+ (description || error) && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
1032
+ description && /* @__PURE__ */ jsx18(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1033
+ error && /* @__PURE__ */ jsx18(
600
1034
  Typography,
601
1035
  {
602
1036
  variant: "xs",
@@ -608,8 +1042,8 @@ var Input2 = React11.forwardRef(
608
1042
  ] })
609
1043
  ] });
610
1044
  }
611
- return /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-2", children: [
612
- label && /* @__PURE__ */ jsx12(
1045
+ return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2", children: [
1046
+ label && /* @__PURE__ */ jsx18(
613
1047
  "label",
614
1048
  {
615
1049
  htmlFor: inputId,
@@ -621,14 +1055,14 @@ var Input2 = React11.forwardRef(
621
1055
  children: label
622
1056
  }
623
1057
  ),
624
- /* @__PURE__ */ jsxs3("div", { className: "relative w-full", children: [
625
- icon && /* @__PURE__ */ jsx12("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
1058
+ /* @__PURE__ */ jsxs4("div", { className: "relative w-full", children: [
1059
+ icon && /* @__PURE__ */ jsx18("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
626
1060
  inputElement,
627
- actionButton && /* @__PURE__ */ jsx12("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
1061
+ actionButton && /* @__PURE__ */ jsx18("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
628
1062
  ] }),
629
- (description || error) && /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1", children: [
630
- description && /* @__PURE__ */ jsx12(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
631
- error && /* @__PURE__ */ jsx12(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1063
+ (description || error) && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
1064
+ description && /* @__PURE__ */ jsx18(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1065
+ error && /* @__PURE__ */ jsx18(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
632
1066
  ] })
633
1067
  ] });
634
1068
  }
@@ -636,17 +1070,17 @@ var Input2 = React11.forwardRef(
636
1070
  Input2.displayName = "Input";
637
1071
 
638
1072
  // src/components/checkbox/Checkbox.tsx
639
- import * as React13 from "react";
1073
+ import * as React18 from "react";
640
1074
  import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
641
1075
  import { Check as Check2 } from "lucide-react";
642
- import { cva as cva7 } from "class-variance-authority";
1076
+ import { cva as cva8 } from "class-variance-authority";
643
1077
 
644
1078
  // src/primitives/checkbox.tsx
645
- import * as React12 from "react";
1079
+ import * as React17 from "react";
646
1080
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
647
1081
  import { Check } from "lucide-react";
648
- import { jsx as jsx13 } from "react/jsx-runtime";
649
- var Checkbox = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx13(
1082
+ import { jsx as jsx19 } from "react/jsx-runtime";
1083
+ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx19(
650
1084
  CheckboxPrimitive.Root,
651
1085
  {
652
1086
  ref,
@@ -655,24 +1089,24 @@ var Checkbox = React12.forwardRef(({ className, children, ...props }, ref) => /*
655
1089
  className
656
1090
  ),
657
1091
  ...props,
658
- children: children ?? /* @__PURE__ */ jsx13(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx13(Check, { className: "h-4 w-4" }) })
1092
+ children: children ?? /* @__PURE__ */ jsx19(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx19(Check, { className: "h-4 w-4" }) })
659
1093
  }
660
1094
  ));
661
1095
  Checkbox.displayName = CheckboxPrimitive.Root.displayName;
662
- var CheckboxIndicator = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx13(
1096
+ var CheckboxIndicator = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx19(
663
1097
  CheckboxPrimitive.Indicator,
664
1098
  {
665
1099
  ref,
666
1100
  className: cn("grid place-content-center", className),
667
1101
  ...props,
668
- children: children ?? /* @__PURE__ */ jsx13(Check, { className: "h-4 w-4" })
1102
+ children: children ?? /* @__PURE__ */ jsx19(Check, { className: "h-4 w-4" })
669
1103
  }
670
1104
  ));
671
1105
  CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
672
1106
 
673
1107
  // src/components/checkbox/Checkbox.tsx
674
- import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
675
- var checkboxVariants = cva7(
1108
+ import { jsx as jsx20, jsxs as jsxs5 } from "react/jsx-runtime";
1109
+ var checkboxVariants = cva8(
676
1110
  "inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
677
1111
  {
678
1112
  variants: {
@@ -693,13 +1127,13 @@ var checkboxVariants = cva7(
693
1127
  }
694
1128
  }
695
1129
  );
696
- var Checkbox2 = React13.forwardRef(
1130
+ var Checkbox2 = React18.forwardRef(
697
1131
  ({ className, variant, size, label, description, error, id, disabled, ...props }, ref) => {
698
- const generatedId = React13.useId();
1132
+ const generatedId = React18.useId();
699
1133
  const checkboxId = id || generatedId;
700
1134
  const errorId = `${checkboxId}-error`;
701
- return /* @__PURE__ */ jsxs4("div", { className: "flex items-start gap-3", children: [
702
- /* @__PURE__ */ jsx14("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx14(
1135
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-start gap-3", children: [
1136
+ /* @__PURE__ */ jsx20("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx20(
703
1137
  Checkbox,
704
1138
  {
705
1139
  ref,
@@ -714,7 +1148,7 @@ var Checkbox2 = React13.forwardRef(
714
1148
  className
715
1149
  ),
716
1150
  ...props,
717
- children: /* @__PURE__ */ jsx14(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx14(
1151
+ children: /* @__PURE__ */ jsx20(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx20(
718
1152
  Check2,
719
1153
  {
720
1154
  className: "h-4 w-4 text-current stroke-current",
@@ -723,8 +1157,8 @@ var Checkbox2 = React13.forwardRef(
723
1157
  ) })
724
1158
  }
725
1159
  ) }),
726
- (label || description || error) && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
727
- label && /* @__PURE__ */ jsx14(
1160
+ (label || description || error) && /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1", children: [
1161
+ label && /* @__PURE__ */ jsx20(
728
1162
  "label",
729
1163
  {
730
1164
  htmlFor: checkboxId,
@@ -736,8 +1170,8 @@ var Checkbox2 = React13.forwardRef(
736
1170
  children: label
737
1171
  }
738
1172
  ),
739
- description && /* @__PURE__ */ jsx14(Typography, { variant: "xs", color: "muted", children: description }),
740
- error && /* @__PURE__ */ jsx14(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1173
+ description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", children: description }),
1174
+ error && /* @__PURE__ */ jsx20(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
741
1175
  ] })
742
1176
  ] });
743
1177
  }
@@ -745,11 +1179,11 @@ var Checkbox2 = React13.forwardRef(
745
1179
  Checkbox2.displayName = "Checkbox";
746
1180
 
747
1181
  // src/components/switch/Switch.tsx
748
- import * as React14 from "react";
1182
+ import * as React19 from "react";
749
1183
  import * as SwitchPrimitives from "@radix-ui/react-switch";
750
- import { cva as cva8 } from "class-variance-authority";
751
- import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
752
- var switchRootVariants = cva8(
1184
+ import { cva as cva9 } from "class-variance-authority";
1185
+ import { jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
1186
+ var switchRootVariants = cva9(
753
1187
  "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",
754
1188
  {
755
1189
  variants: {
@@ -770,7 +1204,7 @@ var switchRootVariants = cva8(
770
1204
  }
771
1205
  }
772
1206
  );
773
- var switchThumbVariants = cva8(
1207
+ var switchThumbVariants = cva9(
774
1208
  "pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
775
1209
  {
776
1210
  variants: {
@@ -785,13 +1219,13 @@ var switchThumbVariants = cva8(
785
1219
  }
786
1220
  }
787
1221
  );
788
- var Switch = React14.forwardRef(
1222
+ var Switch = React19.forwardRef(
789
1223
  ({ className, variant, size, label, description, error, id, disabled, ...props }, ref) => {
790
- const generatedId = React14.useId();
1224
+ const generatedId = React19.useId();
791
1225
  const switchId = id || generatedId;
792
1226
  const errorId = `${switchId}-error`;
793
- return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-3", children: [
794
- /* @__PURE__ */ jsx15(
1227
+ return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
1228
+ /* @__PURE__ */ jsx21(
795
1229
  SwitchPrimitives.Root,
796
1230
  {
797
1231
  ref,
@@ -805,11 +1239,11 @@ var Switch = React14.forwardRef(
805
1239
  className
806
1240
  ),
807
1241
  ...props,
808
- children: /* @__PURE__ */ jsx15(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
1242
+ children: /* @__PURE__ */ jsx21(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
809
1243
  }
810
1244
  ),
811
- (label || description || error) && /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1", children: [
812
- label && /* @__PURE__ */ jsx15(
1245
+ (label || description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
1246
+ label && /* @__PURE__ */ jsx21(
813
1247
  "label",
814
1248
  {
815
1249
  htmlFor: switchId,
@@ -820,8 +1254,8 @@ var Switch = React14.forwardRef(
820
1254
  children: label
821
1255
  }
822
1256
  ),
823
- description && /* @__PURE__ */ jsx15(Typography, { variant: "xs", color: "muted", children: description }),
824
- error && /* @__PURE__ */ jsx15(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1257
+ description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", children: description }),
1258
+ error && /* @__PURE__ */ jsx21(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
825
1259
  ] })
826
1260
  ] });
827
1261
  }
@@ -829,17 +1263,17 @@ var Switch = React14.forwardRef(
829
1263
  Switch.displayName = "Switch";
830
1264
 
831
1265
  // src/components/select/Select.tsx
832
- import * as React16 from "react";
833
- import { cva as cva9 } from "class-variance-authority";
1266
+ import * as React21 from "react";
1267
+ import { cva as cva10 } from "class-variance-authority";
834
1268
 
835
1269
  // src/primitives/select.tsx
836
- import * as React15 from "react";
1270
+ import * as React20 from "react";
837
1271
  import * as SelectPrimitive from "@radix-ui/react-select";
838
1272
  import { Check as Check3, ChevronDown, ChevronUp } from "lucide-react";
839
- import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
1273
+ import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
840
1274
  var Select = SelectPrimitive.Root;
841
1275
  var SelectValue = SelectPrimitive.Value;
842
- var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
1276
+ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
843
1277
  SelectPrimitive.Trigger,
844
1278
  {
845
1279
  ref,
@@ -850,199 +1284,669 @@ var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref)
850
1284
  ...props,
851
1285
  children: [
852
1286
  children,
853
- /* @__PURE__ */ jsx16(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx16(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
1287
+ /* @__PURE__ */ jsx22(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx22(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
854
1288
  ]
855
1289
  }
856
1290
  ));
857
1291
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
858
- var SelectScrollUpButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
1292
+ var SelectScrollUpButton = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
859
1293
  SelectPrimitive.ScrollUpButton,
860
1294
  {
861
1295
  ref,
862
- className: cn("flex cursor-default items-center justify-center py-1", className),
863
- ...props,
864
- children: /* @__PURE__ */ jsx16(ChevronUp, { className: "h-4 w-4" })
1296
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1297
+ ...props,
1298
+ children: /* @__PURE__ */ jsx22(ChevronUp, { className: "h-4 w-4" })
1299
+ }
1300
+ ));
1301
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1302
+ var SelectScrollDownButton = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1303
+ SelectPrimitive.ScrollDownButton,
1304
+ {
1305
+ ref,
1306
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1307
+ ...props,
1308
+ children: /* @__PURE__ */ jsx22(ChevronDown, { className: "h-4 w-4" })
1309
+ }
1310
+ ));
1311
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
1312
+ var SelectContent = React20.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx22(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs7(
1313
+ SelectPrimitive.Content,
1314
+ {
1315
+ ref,
1316
+ className: cn(
1317
+ "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
1318
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1319
+ className
1320
+ ),
1321
+ position,
1322
+ ...props,
1323
+ children: [
1324
+ /* @__PURE__ */ jsx22(SelectScrollUpButton, {}),
1325
+ /* @__PURE__ */ jsx22(
1326
+ SelectPrimitive.Viewport,
1327
+ {
1328
+ className: cn(
1329
+ "p-1",
1330
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1331
+ ),
1332
+ children
1333
+ }
1334
+ ),
1335
+ /* @__PURE__ */ jsx22(SelectScrollDownButton, {})
1336
+ ]
1337
+ }
1338
+ ) }));
1339
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
1340
+ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1341
+ SelectPrimitive.Label,
1342
+ {
1343
+ ref,
1344
+ className: cn("py-1.5 pl-8 pr-2 text-sm ", className),
1345
+ ...props
1346
+ }
1347
+ ));
1348
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
1349
+ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
1350
+ SelectPrimitive.Item,
1351
+ {
1352
+ ref,
1353
+ className: cn(
1354
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1355
+ className
1356
+ ),
1357
+ ...props,
1358
+ children: [
1359
+ /* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Check3, { className: "h-4 w-4" }) }) }),
1360
+ /* @__PURE__ */ jsx22(SelectPrimitive.ItemText, { children })
1361
+ ]
1362
+ }
1363
+ ));
1364
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
1365
+ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
1366
+ SelectPrimitive.Separator,
1367
+ {
1368
+ ref,
1369
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
1370
+ ...props
1371
+ }
1372
+ ));
1373
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1374
+
1375
+ // src/components/select/Select.tsx
1376
+ import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
1377
+ var selectVariants = cva10(
1378
+ "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",
1379
+ {
1380
+ variants: {
1381
+ variant: {
1382
+ default: "border-berget-border-interactive hover:bg-berget-surface-hover",
1383
+ primary: "border-berget-primary-border bg-berget-primary-tint hover:bg-berget-surface-hover",
1384
+ subtle: "border-berget-border-subtle hover:bg-berget-surface-hover",
1385
+ muted: "border-berget-border-subtle/50 hover:bg-berget-surface-hover"
1386
+ },
1387
+ size: {
1388
+ sm: "px-3 py-2 text-xs",
1389
+ default: "px-4 py-3 text-sm",
1390
+ lg: "px-5 py-4 text-base"
1391
+ }
1392
+ },
1393
+ defaultVariants: {
1394
+ variant: "default",
1395
+ size: "default"
1396
+ }
1397
+ }
1398
+ );
1399
+ var Select2 = React21.forwardRef(
1400
+ ({
1401
+ className,
1402
+ variant,
1403
+ size,
1404
+ label,
1405
+ description,
1406
+ error,
1407
+ placeholder,
1408
+ options,
1409
+ id,
1410
+ disabled,
1411
+ value,
1412
+ defaultValue,
1413
+ onValueChange,
1414
+ name,
1415
+ required
1416
+ }, ref) => {
1417
+ const generatedId = React21.useId();
1418
+ const selectId = id || generatedId;
1419
+ const errorId = `${selectId}-error`;
1420
+ const descriptionId = `${selectId}-description`;
1421
+ return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-2", children: [
1422
+ label && /* @__PURE__ */ jsx23(
1423
+ "label",
1424
+ {
1425
+ htmlFor: selectId,
1426
+ className: cn(
1427
+ "text-sm font-sans leading-none",
1428
+ disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
1429
+ error && "text-berget-destructive-foreground"
1430
+ ),
1431
+ children: label
1432
+ }
1433
+ ),
1434
+ /* @__PURE__ */ jsxs8(
1435
+ Select,
1436
+ {
1437
+ value,
1438
+ defaultValue,
1439
+ onValueChange,
1440
+ disabled,
1441
+ name,
1442
+ required,
1443
+ children: [
1444
+ /* @__PURE__ */ jsx23(
1445
+ SelectTrigger,
1446
+ {
1447
+ ref,
1448
+ id: selectId,
1449
+ "aria-invalid": !!error,
1450
+ "aria-describedby": cn(error && errorId, description && descriptionId),
1451
+ className: cn(
1452
+ selectVariants({ variant, size }),
1453
+ error && "border-berget-destructive-foreground/50 bg-berget-destructive",
1454
+ className
1455
+ ),
1456
+ children: /* @__PURE__ */ jsx23(SelectValue, { placeholder })
1457
+ }
1458
+ ),
1459
+ /* @__PURE__ */ jsx23(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx23(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
1460
+ ]
1461
+ }
1462
+ ),
1463
+ description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1464
+ error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1465
+ ] });
1466
+ }
1467
+ );
1468
+ Select2.displayName = "Select";
1469
+
1470
+ // src/components/country-select/CountrySelect.tsx
1471
+ import * as React26 from "react";
1472
+ import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
1473
+
1474
+ // src/components/icon/Icon.tsx
1475
+ import * as React22 from "react";
1476
+ import { jsx as jsx24 } from "react/jsx-runtime";
1477
+ var iconStrokeMap = {
1478
+ 16: 1.4,
1479
+ 24: 1.6,
1480
+ 32: 1.8
1481
+ };
1482
+ var Icon2 = React22.forwardRef(
1483
+ ({
1484
+ icon: IconComponent,
1485
+ size,
1486
+ className,
1487
+ "aria-label": ariaLabel,
1488
+ "aria-hidden": ariaHidden = true,
1489
+ ...props
1490
+ }, ref) => {
1491
+ const strokeWidth = iconStrokeMap[size];
1492
+ const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
1493
+ const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
1494
+ return /* @__PURE__ */ jsx24(
1495
+ IconComponent,
1496
+ {
1497
+ ref,
1498
+ className: cn(sizeClass, className),
1499
+ strokeWidth,
1500
+ ...ariaAttributes,
1501
+ ...props
1502
+ }
1503
+ );
1504
+ }
1505
+ );
1506
+ Icon2.displayName = "Icon";
1507
+
1508
+ // src/primitives/popover.tsx
1509
+ import * as React23 from "react";
1510
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
1511
+ import { jsx as jsx25 } from "react/jsx-runtime";
1512
+ var Popover = PopoverPrimitive.Root;
1513
+ var PopoverTrigger = PopoverPrimitive.Trigger;
1514
+ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx25(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
1515
+ PopoverPrimitive.Content,
1516
+ {
1517
+ ref,
1518
+ align,
1519
+ sideOffset,
1520
+ className: cn(
1521
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
1522
+ className
1523
+ ),
1524
+ ...props
1525
+ }
1526
+ ) }));
1527
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1528
+
1529
+ // src/primitives/command.tsx
1530
+ import * as React25 from "react";
1531
+ import { Command as CommandPrimitive } from "cmdk";
1532
+ import { Search } from "lucide-react";
1533
+
1534
+ // src/primitives/dialog.tsx
1535
+ import * as React24 from "react";
1536
+ import * as DialogPrimitive2 from "@radix-ui/react-dialog";
1537
+ import { X as X2 } from "lucide-react";
1538
+ import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
1539
+ var DialogPortal2 = DialogPrimitive2.Portal;
1540
+ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1541
+ DialogPrimitive2.Overlay,
1542
+ {
1543
+ ref,
1544
+ className: cn(
1545
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1546
+ className
1547
+ ),
1548
+ ...props
1549
+ }
1550
+ ));
1551
+ DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
1552
+ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(DialogPortal2, { children: [
1553
+ /* @__PURE__ */ jsx26(DialogOverlay2, {}),
1554
+ /* @__PURE__ */ jsxs9(
1555
+ DialogPrimitive2.Content,
1556
+ {
1557
+ ref,
1558
+ className: cn(
1559
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1560
+ className
1561
+ ),
1562
+ ...props,
1563
+ children: [
1564
+ children,
1565
+ /* @__PURE__ */ jsxs9(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: [
1566
+ /* @__PURE__ */ jsx26(X2, { className: "h-4 w-4" }),
1567
+ /* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Close" })
1568
+ ] })
1569
+ ]
1570
+ }
1571
+ )
1572
+ ] }));
1573
+ DialogContent2.displayName = DialogPrimitive2.Content.displayName;
1574
+ var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx26("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
1575
+ DialogHeader2.displayName = "DialogHeader";
1576
+ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx26(
1577
+ "div",
1578
+ {
1579
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
1580
+ ...props
1581
+ }
1582
+ );
1583
+ DialogFooter2.displayName = "DialogFooter";
1584
+ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1585
+ DialogPrimitive2.Title,
1586
+ {
1587
+ ref,
1588
+ className: cn("text-lg font-semibold leading-none tracking-tight", className),
1589
+ ...props
865
1590
  }
866
1591
  ));
867
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
868
- var SelectScrollDownButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
869
- SelectPrimitive.ScrollDownButton,
1592
+ DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
1593
+ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1594
+ DialogPrimitive2.Description,
870
1595
  {
871
1596
  ref,
872
- className: cn("flex cursor-default items-center justify-center py-1", className),
873
- ...props,
874
- children: /* @__PURE__ */ jsx16(ChevronDown, { className: "h-4 w-4" })
1597
+ className: cn("text-sm text-muted-foreground", className),
1598
+ ...props
875
1599
  }
876
1600
  ));
877
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
878
- var SelectContent = React15.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx16(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs6(
879
- SelectPrimitive.Content,
1601
+ DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
1602
+
1603
+ // src/primitives/command.tsx
1604
+ import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1605
+ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
1606
+ CommandPrimitive,
880
1607
  {
881
1608
  ref,
882
1609
  className: cn(
883
- "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
884
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1610
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
885
1611
  className
886
1612
  ),
887
- position,
888
- ...props,
889
- children: [
890
- /* @__PURE__ */ jsx16(SelectScrollUpButton, {}),
891
- /* @__PURE__ */ jsx16(
892
- SelectPrimitive.Viewport,
893
- {
894
- className: cn(
895
- "p-1",
896
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
897
- ),
898
- children
899
- }
900
- ),
901
- /* @__PURE__ */ jsx16(SelectScrollDownButton, {})
902
- ]
1613
+ ...props
903
1614
  }
904
- ) }));
905
- SelectContent.displayName = SelectPrimitive.Content.displayName;
906
- var SelectLabel = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
907
- SelectPrimitive.Label,
1615
+ ));
1616
+ Command.displayName = CommandPrimitive.displayName;
1617
+ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs10("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1618
+ /* @__PURE__ */ jsx27(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1619
+ /* @__PURE__ */ jsx27(
1620
+ CommandPrimitive.Input,
1621
+ {
1622
+ ref,
1623
+ className: cn(
1624
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1625
+ className
1626
+ ),
1627
+ ...props
1628
+ }
1629
+ )
1630
+ ] }));
1631
+ CommandInput.displayName = CommandPrimitive.Input.displayName;
1632
+ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
1633
+ CommandPrimitive.List,
908
1634
  {
909
1635
  ref,
910
- className: cn("py-1.5 pl-8 pr-2 text-sm ", className),
1636
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
911
1637
  ...props
912
1638
  }
913
1639
  ));
914
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
915
- var SelectItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
916
- SelectPrimitive.Item,
1640
+ CommandList.displayName = CommandPrimitive.List.displayName;
1641
+ var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ jsx27(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
1642
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1643
+ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
1644
+ CommandPrimitive.Group,
917
1645
  {
918
1646
  ref,
919
1647
  className: cn(
920
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1648
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
921
1649
  className
922
1650
  ),
923
- ...props,
924
- children: [
925
- /* @__PURE__ */ jsx16("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx16(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx16(Check3, { className: "h-4 w-4" }) }) }),
926
- /* @__PURE__ */ jsx16(SelectPrimitive.ItemText, { children })
927
- ]
1651
+ ...props
928
1652
  }
929
1653
  ));
930
- SelectItem.displayName = SelectPrimitive.Item.displayName;
931
- var SelectSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
932
- SelectPrimitive.Separator,
1654
+ CommandGroup.displayName = CommandPrimitive.Group.displayName;
1655
+ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
1656
+ CommandPrimitive.Separator,
933
1657
  {
934
1658
  ref,
935
- className: cn("-mx-1 my-1 h-px bg-muted", className),
1659
+ className: cn("-mx-1 h-px bg-border", className),
936
1660
  ...props
937
1661
  }
938
1662
  ));
939
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
940
-
941
- // src/components/select/Select.tsx
942
- import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
943
- var selectVariants = cva9(
944
- "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",
1663
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1664
+ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
1665
+ CommandPrimitive.Item,
945
1666
  {
946
- variants: {
947
- variant: {
948
- default: "border-berget-border-interactive hover:bg-berget-surface-hover",
949
- primary: "border-berget-primary-border bg-berget-primary-tint hover:bg-berget-surface-hover",
950
- subtle: "border-berget-border-subtle hover:bg-berget-surface-hover",
951
- muted: "border-berget-border-subtle/50 hover:bg-berget-surface-hover"
952
- },
953
- size: {
954
- sm: "px-3 py-2 text-xs",
955
- default: "px-4 py-3 text-sm",
956
- lg: "px-5 py-4 text-base"
957
- }
958
- },
959
- defaultVariants: {
960
- variant: "default",
961
- size: "default"
962
- }
1667
+ ref,
1668
+ className: cn(
1669
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1670
+ className
1671
+ ),
1672
+ ...props
963
1673
  }
964
- );
965
- var Select2 = React16.forwardRef(
1674
+ ));
1675
+ CommandItem.displayName = CommandPrimitive.Item.displayName;
1676
+ var CommandShortcut = ({ className, ...props }) => {
1677
+ return /* @__PURE__ */ jsx27(
1678
+ "span",
1679
+ {
1680
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
1681
+ ...props
1682
+ }
1683
+ );
1684
+ };
1685
+ CommandShortcut.displayName = "CommandShortcut";
1686
+
1687
+ // src/components/country-select/countries.ts
1688
+ var COUNTRIES = [
1689
+ { code: "DZ", name: "Algeria", flag: "\u{1F1E9}\u{1F1FF}" },
1690
+ { code: "AR", name: "Argentina", flag: "\u{1F1E6}\u{1F1F7}" },
1691
+ { code: "AU", name: "Australia", flag: "\u{1F1E6}\u{1F1FA}" },
1692
+ { code: "AT", name: "Austria", flag: "\u{1F1E6}\u{1F1F9}" },
1693
+ { code: "BE", name: "Belgium", flag: "\u{1F1E7}\u{1F1EA}" },
1694
+ { code: "BG", name: "Bulgaria", flag: "\u{1F1E7}\u{1F1EC}" },
1695
+ { code: "BO", name: "Bolivia", flag: "\u{1F1E7}\u{1F1F4}" },
1696
+ { code: "BR", name: "Brazil", flag: "\u{1F1E7}\u{1F1F7}" },
1697
+ { code: "CA", name: "Canada", flag: "\u{1F1E8}\u{1F1E6}" },
1698
+ { code: "CL", name: "Chile", flag: "\u{1F1E8}\u{1F1F1}" },
1699
+ { code: "CN", name: "China", flag: "\u{1F1E8}\u{1F1F3}" },
1700
+ { code: "CO", name: "Colombia", flag: "\u{1F1E8}\u{1F1F4}" },
1701
+ { code: "CR", name: "Costa Rica", flag: "\u{1F1E8}\u{1F1F7}" },
1702
+ { code: "CY", name: "Cyprus", flag: "\u{1F1E8}\u{1F1FE}" },
1703
+ { code: "HR", name: "Croatia", flag: "\u{1F1ED}\u{1F1F7}" },
1704
+ { code: "CZ", name: "Czech Republic", flag: "\u{1F1E8}\u{1F1FF}" },
1705
+ { code: "DK", name: "Denmark", flag: "\u{1F1E9}\u{1F1F0}" },
1706
+ { code: "DO", name: "Dominican Republic", flag: "\u{1F1E9}\u{1F1F4}" },
1707
+ { code: "EC", name: "Ecuador", flag: "\u{1F1EA}\u{1F1E8}" },
1708
+ { code: "EG", name: "Egypt", flag: "\u{1F1EA}\u{1F1EC}" },
1709
+ { code: "EE", name: "Estonia", flag: "\u{1F1EA}\u{1F1EA}" },
1710
+ { code: "ET", name: "Ethiopia", flag: "\u{1F1EA}\u{1F1F9}" },
1711
+ { code: "FI", name: "Finland", flag: "\u{1F1EB}\u{1F1EE}" },
1712
+ { code: "FR", name: "France", flag: "\u{1F1EB}\u{1F1F7}" },
1713
+ { code: "DE", name: "Germany", flag: "\u{1F1E9}\u{1F1EA}" },
1714
+ { code: "GR", name: "Greece", flag: "\u{1F1EC}\u{1F1F7}" },
1715
+ { code: "GT", name: "Guatemala", flag: "\u{1F1EC}\u{1F1F9}" },
1716
+ { code: "HN", name: "Honduras", flag: "\u{1F1ED}\u{1F1F3}" },
1717
+ { code: "HK", name: "Hong Kong", flag: "\u{1F1ED}\u{1F1F0}" },
1718
+ { code: "HU", name: "Hungary", flag: "\u{1F1ED}\u{1F1FA}" },
1719
+ { code: "IN", name: "India", flag: "\u{1F1EE}\u{1F1F3}" },
1720
+ { code: "ID", name: "Indonesia", flag: "\u{1F1EE}\u{1F1E9}" },
1721
+ { code: "IE", name: "Ireland", flag: "\u{1F1EE}\u{1F1EA}" },
1722
+ { code: "IL", name: "Israel", flag: "\u{1F1EE}\u{1F1F1}" },
1723
+ { code: "IT", name: "Italy", flag: "\u{1F1EE}\u{1F1F9}" },
1724
+ { code: "JP", name: "Japan", flag: "\u{1F1EF}\u{1F1F5}" },
1725
+ { code: "KE", name: "Kenya", flag: "\u{1F1F0}\u{1F1EA}" },
1726
+ { code: "LT", name: "Lithuania", flag: "\u{1F1F1}\u{1F1F9}" },
1727
+ { code: "LV", name: "Latvia", flag: "\u{1F1F1}\u{1F1FB}" },
1728
+ { code: "LU", name: "Luxembourg", flag: "\u{1F1F1}\u{1F1FA}" },
1729
+ { code: "MA", name: "Morocco", flag: "\u{1F1F2}\u{1F1E6}" },
1730
+ { code: "MT", name: "Malta", flag: "\u{1F1F2}\u{1F1F9}" },
1731
+ { code: "MX", name: "Mexico", flag: "\u{1F1F2}\u{1F1FD}" },
1732
+ { code: "MN", name: "Mongolia", flag: "\u{1F1F2}\u{1F1F3}" },
1733
+ { code: "NL", name: "Netherlands", flag: "\u{1F1F3}\u{1F1F1}" },
1734
+ { code: "NZ", name: "New Zealand", flag: "\u{1F1F3}\u{1F1FF}" },
1735
+ { code: "NO", name: "Norway", flag: "\u{1F1F3}\u{1F1F4}" },
1736
+ { code: "PK", name: "Pakistan", flag: "\u{1F1F5}\u{1F1F0}" },
1737
+ { code: "PA", name: "Panama", flag: "\u{1F1F5}\u{1F1E6}" },
1738
+ { code: "PE", name: "Peru", flag: "\u{1F1F5}\u{1F1EA}" },
1739
+ { code: "PL", name: "Poland", flag: "\u{1F1F5}\u{1F1F1}" },
1740
+ { code: "PT", name: "Portugal", flag: "\u{1F1F5}\u{1F1F9}" },
1741
+ { code: "RO", name: "Romania", flag: "\u{1F1F7}\u{1F1F4}" },
1742
+ { code: "SA", name: "Saudi Arabia", flag: "\u{1F1F8}\u{1F1E6}" },
1743
+ { code: "SG", name: "Singapore", flag: "\u{1F1F8}\u{1F1EC}" },
1744
+ { code: "SK", name: "Slovakia", flag: "\u{1F1F8}\u{1F1F0}" },
1745
+ { code: "SI", name: "Slovenia", flag: "\u{1F1F8}\u{1F1EE}" },
1746
+ { code: "ZA", name: "South Africa", flag: "\u{1F1FF}\u{1F1E6}" },
1747
+ { code: "ES", name: "Spain", flag: "\u{1F1EA}\u{1F1F8}" },
1748
+ { code: "SE", name: "Sweden", flag: "\u{1F1F8}\u{1F1EA}" },
1749
+ { code: "CH", name: "Switzerland", flag: "\u{1F1E8}\u{1F1ED}" },
1750
+ { code: "TW", name: "Taiwan", flag: "\u{1F1F9}\u{1F1FC}" },
1751
+ { code: "TH", name: "Thailand", flag: "\u{1F1F9}\u{1F1ED}" },
1752
+ { code: "TR", name: "Turkey", flag: "\u{1F1F9}\u{1F1F7}" },
1753
+ { code: "AE", name: "United Arab Emirates", flag: "\u{1F1E6}\u{1F1EA}" },
1754
+ { code: "GB", name: "United Kingdom", flag: "\u{1F1EC}\u{1F1E7}" },
1755
+ { code: "UA", name: "Ukraine", flag: "\u{1F1FA}\u{1F1E6}" },
1756
+ { code: "US", name: "United States", flag: "\u{1F1FA}\u{1F1F8}" },
1757
+ { code: "UY", name: "Uruguay", flag: "\u{1F1FA}\u{1F1FE}" },
1758
+ { code: "VE", name: "Venezuela", flag: "\u{1F1FB}\u{1F1EA}" },
1759
+ { code: "VN", name: "Vietnam", flag: "\u{1F1FB}\u{1F1F3}" }
1760
+ ];
1761
+ var getCountryByCode = (code) => {
1762
+ return COUNTRIES.find((country) => country.code === code);
1763
+ };
1764
+ var getCountryByName = (name) => {
1765
+ return COUNTRIES.find((country) => country.name.toLowerCase() === name.toLowerCase());
1766
+ };
1767
+ var EU_COUNTRY_CODES = [
1768
+ "AT",
1769
+ // Austria
1770
+ "BE",
1771
+ // Belgium
1772
+ "BG",
1773
+ // Bulgaria
1774
+ "HR",
1775
+ // Croatia
1776
+ "CY",
1777
+ // Cyprus
1778
+ "CZ",
1779
+ // Czech Republic
1780
+ "DK",
1781
+ // Denmark
1782
+ "EE",
1783
+ // Estonia
1784
+ "FI",
1785
+ // Finland
1786
+ "FR",
1787
+ // France
1788
+ "DE",
1789
+ // Germany
1790
+ "GR",
1791
+ // Greece
1792
+ "HU",
1793
+ // Hungary
1794
+ "IE",
1795
+ // Ireland
1796
+ "IT",
1797
+ // Italy
1798
+ "LV",
1799
+ // Latvia
1800
+ "LT",
1801
+ // Lithuania
1802
+ "LU",
1803
+ // Luxembourg
1804
+ "MT",
1805
+ // Malta
1806
+ "NL",
1807
+ // Netherlands
1808
+ "PL",
1809
+ // Poland
1810
+ "PT",
1811
+ // Portugal
1812
+ "RO",
1813
+ // Romania
1814
+ "SK",
1815
+ // Slovakia
1816
+ "SI",
1817
+ // Slovenia
1818
+ "ES",
1819
+ // Spain
1820
+ "SE"
1821
+ // Sweden
1822
+ ];
1823
+ var isEUCountry = (countryCode) => {
1824
+ return EU_COUNTRY_CODES.includes(countryCode);
1825
+ };
1826
+
1827
+ // src/components/country-select/CountrySelect.tsx
1828
+ import { Fragment, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1829
+ var CountrySelect = React26.forwardRef(
966
1830
  ({
967
- className,
968
- variant,
969
- size,
970
- label,
971
- description,
972
- error,
973
- placeholder,
974
- options,
975
- id,
976
- disabled,
977
1831
  value,
978
- defaultValue,
979
1832
  onValueChange,
980
- name,
981
- required
1833
+ placeholder = "Select country",
1834
+ disabled = false,
1835
+ className,
1836
+ align = "center",
1837
+ sideOffset = 4
982
1838
  }, ref) => {
983
- const generatedId = React16.useId();
984
- const selectId = id || generatedId;
985
- const errorId = `${selectId}-error`;
986
- const descriptionId = `${selectId}-description`;
987
- return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
988
- label && /* @__PURE__ */ jsx17(
989
- "label",
1839
+ const [open, setOpen] = React26.useState(false);
1840
+ const selectedCountry = React26.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
1841
+ return /* @__PURE__ */ jsxs11(Popover, { open, onOpenChange: setOpen, children: [
1842
+ /* @__PURE__ */ jsx28(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs11(
1843
+ "button",
990
1844
  {
991
- htmlFor: selectId,
1845
+ ref,
1846
+ type: "button",
1847
+ disabled,
1848
+ "aria-expanded": open,
992
1849
  className: cn(
993
- "text-sm font-sans leading-none",
994
- disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground",
995
- error && "text-berget-destructive-foreground"
1850
+ // Base layout — consistent with Select trigger
1851
+ "flex w-full items-center justify-between",
1852
+ "rounded-berget-xs border bg-card",
1853
+ "px-4 py-3 text-sm",
1854
+ "transition-colors duration-200",
1855
+ "focus-visible:outline-none focus-visible:ring-0",
1856
+ "focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border",
1857
+ "disabled:cursor-not-allowed disabled:opacity-50",
1858
+ // Default border & hover matching Select variant "default"
1859
+ "border-berget-border-interactive hover:bg-berget-surface-hover",
1860
+ className
996
1861
  ),
997
- children: label
998
- }
999
- ),
1000
- /* @__PURE__ */ jsxs7(
1001
- Select,
1002
- {
1003
- value,
1004
- defaultValue,
1005
- onValueChange,
1006
- disabled,
1007
- name,
1008
- required,
1009
1862
  children: [
1010
- /* @__PURE__ */ jsx17(
1011
- SelectTrigger,
1863
+ /* @__PURE__ */ jsx28("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs11(Fragment, { children: [
1864
+ /* @__PURE__ */ jsx28("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
1865
+ /* @__PURE__ */ jsx28("span", { className: "truncate", children: selectedCountry.name }),
1866
+ /* @__PURE__ */ jsxs11("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
1867
+ "(",
1868
+ selectedCountry.code,
1869
+ ")"
1870
+ ] })
1871
+ ] }) : /* @__PURE__ */ jsxs11(Fragment, { children: [
1872
+ /* @__PURE__ */ jsx28(
1873
+ Icon2,
1874
+ {
1875
+ icon: Globe,
1876
+ size: 16,
1877
+ className: "flex-shrink-0 text-berget-muted-foreground"
1878
+ }
1879
+ ),
1880
+ /* @__PURE__ */ jsx28("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
1881
+ ] }) }),
1882
+ /* @__PURE__ */ jsx28(
1883
+ Icon2,
1012
1884
  {
1013
- ref,
1014
- id: selectId,
1015
- "aria-invalid": !!error,
1016
- "aria-describedby": cn(error && errorId, description && descriptionId),
1885
+ icon: ChevronDown2,
1886
+ size: 16,
1017
1887
  className: cn(
1018
- selectVariants({ variant, size }),
1019
- error && "border-berget-destructive-foreground/50 bg-berget-destructive",
1020
- className
1021
- ),
1022
- children: /* @__PURE__ */ jsx17(SelectValue, { placeholder })
1888
+ "flex-shrink-0 text-berget-muted-foreground",
1889
+ "transition-transform duration-200",
1890
+ open && "rotate-180"
1891
+ )
1023
1892
  }
1024
- ),
1025
- /* @__PURE__ */ jsx17(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx17(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
1893
+ )
1026
1894
  ]
1027
1895
  }
1028
- ),
1029
- description && /* @__PURE__ */ jsx17(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1030
- error && /* @__PURE__ */ jsx17(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1896
+ ) }),
1897
+ /* @__PURE__ */ jsx28(
1898
+ PopoverContent,
1899
+ {
1900
+ align,
1901
+ sideOffset,
1902
+ className: "w-[var(--radix-popover-trigger-width)] p-0",
1903
+ children: /* @__PURE__ */ jsxs11(Command, { children: [
1904
+ /* @__PURE__ */ jsx28(CommandInput, { placeholder: "Search country..." }),
1905
+ /* @__PURE__ */ jsxs11(CommandList, { children: [
1906
+ /* @__PURE__ */ jsx28(CommandEmpty, { children: "No countries found." }),
1907
+ /* @__PURE__ */ jsx28(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs11(
1908
+ CommandItem,
1909
+ {
1910
+ value: `${country.name} ${country.code}`,
1911
+ onSelect: () => {
1912
+ onValueChange?.(country.code);
1913
+ setOpen(false);
1914
+ },
1915
+ className: cn(
1916
+ "flex items-center gap-3 px-3 py-2.5",
1917
+ "data-[selected='true']:bg-berget-brand-granite-700/40! data-[selected=true]:text-berget-foreground",
1918
+ value === country.code && "bg-berget-brand-granite-800/40"
1919
+ ),
1920
+ children: [
1921
+ /* @__PURE__ */ jsx28("span", { className: "text-xl flex-shrink-0", children: country.flag }),
1922
+ /* @__PURE__ */ jsxs11("div", { className: "flex-1 min-w-0", children: [
1923
+ /* @__PURE__ */ jsx28("div", { className: "text-sm truncate", children: country.name }),
1924
+ /* @__PURE__ */ jsx28("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
1925
+ ] }),
1926
+ value === country.code && /* @__PURE__ */ jsx28("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
1927
+ ]
1928
+ },
1929
+ country.code
1930
+ )) })
1931
+ ] })
1932
+ ] })
1933
+ }
1934
+ )
1031
1935
  ] });
1032
1936
  }
1033
1937
  );
1034
- Select2.displayName = "Select";
1938
+ CountrySelect.displayName = "CountrySelect";
1035
1939
 
1036
1940
  // src/components/text-area/TextArea.tsx
1037
- import * as React18 from "react";
1038
- import { cva as cva10 } from "class-variance-authority";
1941
+ import * as React28 from "react";
1942
+ import { cva as cva11 } from "class-variance-authority";
1039
1943
 
1040
1944
  // src/primitives/textarea.tsx
1041
- import * as React17 from "react";
1042
- import { jsx as jsx18 } from "react/jsx-runtime";
1043
- var Textarea = React17.forwardRef(
1945
+ import * as React27 from "react";
1946
+ import { jsx as jsx29 } from "react/jsx-runtime";
1947
+ var Textarea = React27.forwardRef(
1044
1948
  ({ className, ...props }, ref) => {
1045
- return /* @__PURE__ */ jsx18(
1949
+ return /* @__PURE__ */ jsx29(
1046
1950
  "textarea",
1047
1951
  {
1048
1952
  className: cn(
@@ -1058,8 +1962,8 @@ var Textarea = React17.forwardRef(
1058
1962
  Textarea.displayName = "Textarea";
1059
1963
 
1060
1964
  // src/components/text-area/TextArea.tsx
1061
- import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
1062
- var textAreaVariants = cva10(
1965
+ import { jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
1966
+ var textAreaVariants = cva11(
1063
1967
  "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",
1064
1968
  {
1065
1969
  variants: {
@@ -1081,7 +1985,7 @@ var textAreaVariants = cva10(
1081
1985
  }
1082
1986
  }
1083
1987
  );
1084
- var TextArea = React18.forwardRef(
1988
+ var TextArea = React28.forwardRef(
1085
1989
  ({
1086
1990
  className,
1087
1991
  variant,
@@ -1101,13 +2005,13 @@ var TextArea = React18.forwardRef(
1101
2005
  actionButton,
1102
2006
  ...props
1103
2007
  }, ref) => {
1104
- const generatedId = React18.useId();
2008
+ const generatedId = React28.useId();
1105
2009
  const textareaId = id || generatedId;
1106
2010
  const errorId = `${textareaId}-error`;
1107
2011
  const descriptionId = `${textareaId}-description`;
1108
2012
  const characterCount = typeof value === "string" ? value.length : 0;
1109
- return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-2", children: [
1110
- label && /* @__PURE__ */ jsx19(
2013
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-2", children: [
2014
+ label && /* @__PURE__ */ jsx30(
1111
2015
  "label",
1112
2016
  {
1113
2017
  htmlFor: textareaId,
@@ -1119,9 +2023,9 @@ var TextArea = React18.forwardRef(
1119
2023
  children: label
1120
2024
  }
1121
2025
  ),
1122
- /* @__PURE__ */ jsxs8("div", { className: "relative", children: [
1123
- icon && /* @__PURE__ */ jsx19("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
1124
- /* @__PURE__ */ jsx19(
2026
+ /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
2027
+ icon && /* @__PURE__ */ jsx30("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
2028
+ /* @__PURE__ */ jsx30(
1125
2029
  Textarea,
1126
2030
  {
1127
2031
  ref,
@@ -1146,13 +2050,13 @@ var TextArea = React18.forwardRef(
1146
2050
  ...props
1147
2051
  }
1148
2052
  ),
1149
- secondaryIcon && /* @__PURE__ */ jsx19("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
1150
- actionButton && /* @__PURE__ */ jsx19("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
2053
+ secondaryIcon && /* @__PURE__ */ jsx30("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
2054
+ actionButton && /* @__PURE__ */ jsx30("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
1151
2055
  ] }),
1152
- (description || error || showCount && maxLength) && /* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between gap-2", children: [
1153
- description && /* @__PURE__ */ jsx19(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1154
- (error || showCount && maxLength) && /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-2 ml-auto", children: [
1155
- showCount && maxLength && /* @__PURE__ */ jsxs8(
2056
+ (description || error || showCount && maxLength) && /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between gap-2", children: [
2057
+ description && /* @__PURE__ */ jsx30(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
2058
+ (error || showCount && maxLength) && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2 ml-auto", children: [
2059
+ showCount && maxLength && /* @__PURE__ */ jsxs12(
1156
2060
  Typography,
1157
2061
  {
1158
2062
  variant: "xs",
@@ -1166,7 +2070,7 @@ var TextArea = React18.forwardRef(
1166
2070
  ]
1167
2071
  }
1168
2072
  ),
1169
- error && /* @__PURE__ */ jsx19(
2073
+ error && /* @__PURE__ */ jsx30(
1170
2074
  Typography,
1171
2075
  {
1172
2076
  variant: "xs",
@@ -1183,44 +2087,22 @@ var TextArea = React18.forwardRef(
1183
2087
  TextArea.displayName = "TextArea";
1184
2088
 
1185
2089
  // src/primitives/label.tsx
1186
- import * as React19 from "react";
2090
+ import * as React29 from "react";
1187
2091
  import * as LabelPrimitive from "@radix-ui/react-label";
1188
- import { cva as cva11 } from "class-variance-authority";
1189
- import { jsx as jsx20 } from "react/jsx-runtime";
1190
- var labelVariants = cva11(
2092
+ import { cva as cva12 } from "class-variance-authority";
2093
+ import { jsx as jsx31 } from "react/jsx-runtime";
2094
+ var labelVariants = cva12(
1191
2095
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1192
2096
  );
1193
- var Label2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
2097
+ var Label2 = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
1194
2098
  Label2.displayName = LabelPrimitive.Root.displayName;
1195
2099
 
1196
2100
  // src/primitives/field.tsx
1197
- import { useMemo as useMemo2 } from "react";
1198
- import { cva as cva12 } from "class-variance-authority";
1199
-
1200
- // src/primitives/separator.tsx
1201
- import * as React20 from "react";
1202
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
1203
- import { jsx as jsx21 } from "react/jsx-runtime";
1204
- var Separator2 = React20.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx21(
1205
- SeparatorPrimitive.Root,
1206
- {
1207
- ref,
1208
- decorative,
1209
- orientation,
1210
- className: cn(
1211
- "shrink-0 bg-border",
1212
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1213
- className
1214
- ),
1215
- ...props
1216
- }
1217
- ));
1218
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1219
-
1220
- // src/primitives/field.tsx
1221
- import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2101
+ import { useMemo as useMemo3 } from "react";
2102
+ import { cva as cva13 } from "class-variance-authority";
2103
+ import { jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
1222
2104
  function FieldSet({ className, ...props }) {
1223
- return /* @__PURE__ */ jsx22(
2105
+ return /* @__PURE__ */ jsx32(
1224
2106
  "fieldset",
1225
2107
  {
1226
2108
  "data-slot": "field-set",
@@ -1238,7 +2120,7 @@ function FieldLegend({
1238
2120
  variant = "legend",
1239
2121
  ...props
1240
2122
  }) {
1241
- return /* @__PURE__ */ jsx22(
2123
+ return /* @__PURE__ */ jsx32(
1242
2124
  "legend",
1243
2125
  {
1244
2126
  "data-slot": "field-legend",
@@ -1254,7 +2136,7 @@ function FieldLegend({
1254
2136
  );
1255
2137
  }
1256
2138
  function FieldGroup({ className, ...props }) {
1257
- return /* @__PURE__ */ jsx22(
2139
+ return /* @__PURE__ */ jsx32(
1258
2140
  "div",
1259
2141
  {
1260
2142
  "data-slot": "field-group",
@@ -1266,7 +2148,7 @@ function FieldGroup({ className, ...props }) {
1266
2148
  }
1267
2149
  );
1268
2150
  }
1269
- var fieldVariants = cva12(
2151
+ var fieldVariants = cva13(
1270
2152
  "group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
1271
2153
  {
1272
2154
  variants: {
@@ -1294,7 +2176,7 @@ function Field({
1294
2176
  orientation = "vertical",
1295
2177
  ...props
1296
2178
  }) {
1297
- return /* @__PURE__ */ jsx22(
2179
+ return /* @__PURE__ */ jsx32(
1298
2180
  "div",
1299
2181
  {
1300
2182
  role: "group",
@@ -1306,7 +2188,7 @@ function Field({
1306
2188
  );
1307
2189
  }
1308
2190
  function FieldContent({ className, ...props }) {
1309
- return /* @__PURE__ */ jsx22(
2191
+ return /* @__PURE__ */ jsx32(
1310
2192
  "div",
1311
2193
  {
1312
2194
  "data-slot": "field-content",
@@ -1316,7 +2198,7 @@ function FieldContent({ className, ...props }) {
1316
2198
  );
1317
2199
  }
1318
2200
  function FieldLabel({ className, ...props }) {
1319
- return /* @__PURE__ */ jsx22(
2201
+ return /* @__PURE__ */ jsx32(
1320
2202
  Label2,
1321
2203
  {
1322
2204
  "data-slot": "field-label",
@@ -1331,7 +2213,7 @@ function FieldLabel({ className, ...props }) {
1331
2213
  );
1332
2214
  }
1333
2215
  function FieldTitle({ className, ...props }) {
1334
- return /* @__PURE__ */ jsx22(
2216
+ return /* @__PURE__ */ jsx32(
1335
2217
  "div",
1336
2218
  {
1337
2219
  "data-slot": "field-label",
@@ -1344,7 +2226,7 @@ function FieldTitle({ className, ...props }) {
1344
2226
  );
1345
2227
  }
1346
2228
  function FieldDescription({ className, ...props }) {
1347
- return /* @__PURE__ */ jsx22(
2229
+ return /* @__PURE__ */ jsx32(
1348
2230
  "p",
1349
2231
  {
1350
2232
  "data-slot": "field-description",
@@ -1363,7 +2245,7 @@ function FieldSeparator({
1363
2245
  className,
1364
2246
  ...props
1365
2247
  }) {
1366
- return /* @__PURE__ */ jsxs9(
2248
+ return /* @__PURE__ */ jsxs13(
1367
2249
  "div",
1368
2250
  {
1369
2251
  "data-slot": "field-separator",
@@ -1374,8 +2256,8 @@ function FieldSeparator({
1374
2256
  ),
1375
2257
  ...props,
1376
2258
  children: [
1377
- /* @__PURE__ */ jsx22(Separator2, { className: "absolute inset-0 top-1/2" }),
1378
- children && /* @__PURE__ */ jsx22(
2259
+ /* @__PURE__ */ jsx32(Separator, { className: "absolute inset-0 top-1/2" }),
2260
+ children && /* @__PURE__ */ jsx32(
1379
2261
  "span",
1380
2262
  {
1381
2263
  className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
@@ -1393,7 +2275,7 @@ function FieldError({
1393
2275
  errors,
1394
2276
  ...props
1395
2277
  }) {
1396
- const content = useMemo2(() => {
2278
+ const content = useMemo3(() => {
1397
2279
  if (children) {
1398
2280
  return children;
1399
2281
  }
@@ -1403,12 +2285,12 @@ function FieldError({
1403
2285
  if (errors?.length === 1 && errors[0]?.message) {
1404
2286
  return errors[0].message;
1405
2287
  }
1406
- return /* @__PURE__ */ jsx22("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx22("li", { children: error.message }, index)) });
2288
+ return /* @__PURE__ */ jsx32("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx32("li", { children: error.message }, index)) });
1407
2289
  }, [children, errors]);
1408
2290
  if (!content) {
1409
2291
  return null;
1410
2292
  }
1411
- return /* @__PURE__ */ jsx22(
2293
+ return /* @__PURE__ */ jsx32(
1412
2294
  "div",
1413
2295
  {
1414
2296
  role: "alert",
@@ -1421,47 +2303,11 @@ function FieldError({
1421
2303
  }
1422
2304
 
1423
2305
  // src/components/link/Link.tsx
1424
- import * as React22 from "react";
1425
- import { cva as cva13 } from "class-variance-authority";
1426
-
1427
- // src/components/icon/Icon.tsx
1428
- import * as React21 from "react";
1429
- import { jsx as jsx23 } from "react/jsx-runtime";
1430
- var iconStrokeMap = {
1431
- 16: 1.4,
1432
- 24: 1.6,
1433
- 32: 1.8
1434
- };
1435
- var Icon2 = React21.forwardRef(
1436
- ({
1437
- icon: IconComponent,
1438
- size,
1439
- className,
1440
- "aria-label": ariaLabel,
1441
- "aria-hidden": ariaHidden = true,
1442
- ...props
1443
- }, ref) => {
1444
- const strokeWidth = iconStrokeMap[size];
1445
- const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
1446
- const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
1447
- return /* @__PURE__ */ jsx23(
1448
- IconComponent,
1449
- {
1450
- ref,
1451
- className: cn(sizeClass, className),
1452
- strokeWidth,
1453
- ...ariaAttributes,
1454
- ...props
1455
- }
1456
- );
1457
- }
1458
- );
1459
- Icon2.displayName = "Icon";
1460
-
1461
- // src/components/link/Link.tsx
2306
+ import * as React30 from "react";
2307
+ import { cva as cva14 } from "class-variance-authority";
1462
2308
  import { ExternalLink } from "lucide-react";
1463
- import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
1464
- var linkVariants = cva13(
2309
+ import { jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
2310
+ var linkVariants = cva14(
1465
2311
  "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",
1466
2312
  {
1467
2313
  variants: {
@@ -1485,7 +2331,7 @@ var linkVariants = cva13(
1485
2331
  }
1486
2332
  }
1487
2333
  );
1488
- var Link = React22.forwardRef(
2334
+ var Link = React30.forwardRef(
1489
2335
  ({
1490
2336
  className,
1491
2337
  variant,
@@ -1498,7 +2344,7 @@ var Link = React22.forwardRef(
1498
2344
  ...props
1499
2345
  }, ref) => {
1500
2346
  const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
1501
- return /* @__PURE__ */ jsxs10(
2347
+ return /* @__PURE__ */ jsxs14(
1502
2348
  "a",
1503
2349
  {
1504
2350
  ref,
@@ -1514,8 +2360,8 @@ var Link = React22.forwardRef(
1514
2360
  },
1515
2361
  children: [
1516
2362
  children,
1517
- icon && /* @__PURE__ */ jsx24("span", { className: "inline-flex items-center", children: icon }),
1518
- showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx24("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx24(Icon2, { icon: ExternalLink, size: 16 }) })
2363
+ icon && /* @__PURE__ */ jsx33("span", { className: "inline-flex items-center", children: icon }),
2364
+ showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx33("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx33(Icon2, { icon: ExternalLink, size: 16 }) })
1519
2365
  ]
1520
2366
  }
1521
2367
  );
@@ -1524,11 +2370,11 @@ var Link = React22.forwardRef(
1524
2370
  Link.displayName = "Link";
1525
2371
 
1526
2372
  // src/components/container/Container.tsx
1527
- import * as React23 from "react";
1528
- import { Slot as Slot2 } from "@radix-ui/react-slot";
1529
- import { cva as cva14 } from "class-variance-authority";
1530
- import { jsx as jsx25 } from "react/jsx-runtime";
1531
- var containerVariants = cva14("w-full mx-auto", {
2373
+ import * as React31 from "react";
2374
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
2375
+ import { cva as cva15 } from "class-variance-authority";
2376
+ import { jsx as jsx34 } from "react/jsx-runtime";
2377
+ var containerVariants = cva15("w-full mx-auto", {
1532
2378
  variants: {
1533
2379
  size: {
1534
2380
  sm: "max-w-3xl",
@@ -1549,10 +2395,10 @@ var containerVariants = cva14("w-full mx-auto", {
1549
2395
  padding: "md"
1550
2396
  }
1551
2397
  });
1552
- var Container = React23.forwardRef(
2398
+ var Container = React31.forwardRef(
1553
2399
  ({ className, size, padding, asChild = false, children, ...props }, ref) => {
1554
- const Component = asChild ? Slot2 : "div";
1555
- return /* @__PURE__ */ jsx25(
2400
+ const Component = asChild ? Slot3 : "div";
2401
+ return /* @__PURE__ */ jsx34(
1556
2402
  Component,
1557
2403
  {
1558
2404
  ref,
@@ -1566,11 +2412,11 @@ var Container = React23.forwardRef(
1566
2412
  Container.displayName = "Container";
1567
2413
 
1568
2414
  // src/components/grid/Grid.tsx
1569
- import * as React24 from "react";
1570
- import { cva as cva15 } from "class-variance-authority";
1571
- import { Slot as Slot3 } from "@radix-ui/react-slot";
1572
- import { jsx as jsx26 } from "react/jsx-runtime";
1573
- var gridVariants = cva15("grid", {
2415
+ import * as React32 from "react";
2416
+ import { cva as cva16 } from "class-variance-authority";
2417
+ import { Slot as Slot4 } from "@radix-ui/react-slot";
2418
+ import { jsx as jsx35 } from "react/jsx-runtime";
2419
+ var gridVariants = cva16("grid", {
1574
2420
  variants: {
1575
2421
  align: {
1576
2422
  start: "items-start",
@@ -1592,10 +2438,10 @@ var gridVariants = cva15("grid", {
1592
2438
  justify: "start"
1593
2439
  }
1594
2440
  });
1595
- var Grid = React24.forwardRef(
2441
+ var Grid = React32.forwardRef(
1596
2442
  ({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
1597
- const Component = asChild ? Slot3 : "div";
1598
- return /* @__PURE__ */ jsx26(
2443
+ const Component = asChild ? Slot4 : "div";
2444
+ return /* @__PURE__ */ jsx35(
1599
2445
  Component,
1600
2446
  {
1601
2447
  ref,
@@ -1617,11 +2463,11 @@ var Grid = React24.forwardRef(
1617
2463
  Grid.displayName = "Grid";
1618
2464
 
1619
2465
  // src/components/box/Box.tsx
1620
- import * as React25 from "react";
1621
- import { cva as cva16 } from "class-variance-authority";
1622
- import { Slot as Slot4 } from "@radix-ui/react-slot";
1623
- import { jsx as jsx27 } from "react/jsx-runtime";
1624
- var boxVariants = cva16("flex", {
2466
+ import * as React33 from "react";
2467
+ import { cva as cva17 } from "class-variance-authority";
2468
+ import { Slot as Slot5 } from "@radix-ui/react-slot";
2469
+ import { jsx as jsx36 } from "react/jsx-runtime";
2470
+ var boxVariants = cva17("flex", {
1625
2471
  variants: {
1626
2472
  direction: {
1627
2473
  row: "flex-row",
@@ -1657,10 +2503,10 @@ var boxVariants = cva16("flex", {
1657
2503
  wrap: "nowrap"
1658
2504
  }
1659
2505
  });
1660
- var Box = React25.forwardRef(
2506
+ var Box = React33.forwardRef(
1661
2507
  ({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
1662
- const Component = asChild ? Slot4 : "div";
1663
- return /* @__PURE__ */ jsx27(
2508
+ const Component = asChild ? Slot5 : "div";
2509
+ return /* @__PURE__ */ jsx36(
1664
2510
  Component,
1665
2511
  {
1666
2512
  ref,
@@ -1678,16 +2524,16 @@ var Box = React25.forwardRef(
1678
2524
  Box.displayName = "Box";
1679
2525
 
1680
2526
  // src/components/berget-logo/BergetLogo.tsx
1681
- import * as React26 from "react";
1682
- import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1683
- var BergetLogo = React26.forwardRef(
2527
+ import * as React34 from "react";
2528
+ import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
2529
+ var BergetLogo = React34.forwardRef(
1684
2530
  ({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
1685
2531
  const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
1686
2532
  if (variant === "symbol") {
1687
2533
  const aspectRatio2 = 463 / 419;
1688
2534
  const width2 = size * aspectRatio2;
1689
2535
  const height2 = size;
1690
- return /* @__PURE__ */ jsx28(
2536
+ return /* @__PURE__ */ jsx37(
1691
2537
  "svg",
1692
2538
  {
1693
2539
  ref,
@@ -1700,7 +2546,7 @@ var BergetLogo = React26.forwardRef(
1700
2546
  "aria-label": "Berget symbol",
1701
2547
  className: cn("inline-block", className),
1702
2548
  ...props,
1703
- children: /* @__PURE__ */ jsx28(
2549
+ children: /* @__PURE__ */ jsx37(
1704
2550
  "path",
1705
2551
  {
1706
2552
  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",
@@ -1713,7 +2559,7 @@ var BergetLogo = React26.forwardRef(
1713
2559
  const aspectRatio = 793.63 / 204.37;
1714
2560
  const width = size * aspectRatio;
1715
2561
  const height = size;
1716
- return /* @__PURE__ */ jsxs11(
2562
+ return /* @__PURE__ */ jsxs15(
1717
2563
  "svg",
1718
2564
  {
1719
2565
  ref,
@@ -1727,59 +2573,59 @@ var BergetLogo = React26.forwardRef(
1727
2573
  className: cn("inline-block", className),
1728
2574
  ...props,
1729
2575
  children: [
1730
- /* @__PURE__ */ jsxs11("g", { style: { fill: fillColor }, children: [
1731
- /* @__PURE__ */ jsx28(
2576
+ /* @__PURE__ */ jsxs15("g", { style: { fill: fillColor }, children: [
2577
+ /* @__PURE__ */ jsx37(
1732
2578
  "path",
1733
2579
  {
1734
2580
  className: "berget-logotype-fill",
1735
2581
  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"
1736
2582
  }
1737
2583
  ),
1738
- /* @__PURE__ */ jsx28(
2584
+ /* @__PURE__ */ jsx37(
1739
2585
  "path",
1740
2586
  {
1741
2587
  className: "berget-logotype-fill",
1742
2588
  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"
1743
2589
  }
1744
2590
  ),
1745
- /* @__PURE__ */ jsx28(
2591
+ /* @__PURE__ */ jsx37(
1746
2592
  "path",
1747
2593
  {
1748
2594
  className: "berget-logotype-fill",
1749
2595
  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"
1750
2596
  }
1751
2597
  ),
1752
- /* @__PURE__ */ jsx28(
2598
+ /* @__PURE__ */ jsx37(
1753
2599
  "path",
1754
2600
  {
1755
2601
  className: "berget-logotype-fill",
1756
2602
  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"
1757
2603
  }
1758
2604
  ),
1759
- /* @__PURE__ */ jsx28(
2605
+ /* @__PURE__ */ jsx37(
1760
2606
  "path",
1761
2607
  {
1762
2608
  className: "berget-logotype-fill",
1763
2609
  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"
1764
2610
  }
1765
2611
  ),
1766
- /* @__PURE__ */ jsx28(
2612
+ /* @__PURE__ */ jsx37(
1767
2613
  "path",
1768
2614
  {
1769
2615
  className: "berget-logotype-fill",
1770
2616
  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"
1771
2617
  }
1772
2618
  ),
1773
- /* @__PURE__ */ jsx28(
2619
+ /* @__PURE__ */ jsx37(
1774
2620
  "path",
1775
2621
  {
1776
2622
  className: "berget-logotype-fill",
1777
2623
  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"
1778
2624
  }
1779
2625
  ),
1780
- /* @__PURE__ */ jsx28("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
2626
+ /* @__PURE__ */ jsx37("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
1781
2627
  ] }),
1782
- /* @__PURE__ */ jsx28(
2628
+ /* @__PURE__ */ jsx37(
1783
2629
  "path",
1784
2630
  {
1785
2631
  style: { fill: fillColor },
@@ -1794,13 +2640,13 @@ var BergetLogo = React26.forwardRef(
1794
2640
  BergetLogo.displayName = "BergetLogo";
1795
2641
 
1796
2642
  // src/components/language-select/LanguageSelect.tsx
1797
- import * as React27 from "react";
2643
+ import * as React35 from "react";
1798
2644
  import * as SelectPrimitive2 from "@radix-ui/react-select";
1799
- import { Globe } from "lucide-react";
1800
- import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
1801
- var LanguageSelect = React27.forwardRef(({ className, options, value, onValueChange }, ref) => {
1802
- return /* @__PURE__ */ jsxs12(SelectPrimitive2.Root, { value, onValueChange, children: [
1803
- /* @__PURE__ */ jsx29(
2645
+ import { Globe as Globe2 } from "lucide-react";
2646
+ import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
2647
+ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueChange }, ref) => {
2648
+ return /* @__PURE__ */ jsxs16(SelectPrimitive2.Root, { value, onValueChange, children: [
2649
+ /* @__PURE__ */ jsx38(
1804
2650
  SelectPrimitive2.Trigger,
1805
2651
  {
1806
2652
  ref,
@@ -1822,10 +2668,10 @@ var LanguageSelect = React27.forwardRef(({ className, options, value, onValueCha
1822
2668
  "disabled:cursor-not-allowed disabled:opacity-50",
1823
2669
  className
1824
2670
  ),
1825
- children: /* @__PURE__ */ jsx29(Icon2, { icon: Globe, size: 16 })
2671
+ children: /* @__PURE__ */ jsx38(Icon2, { icon: Globe2, size: 16 })
1826
2672
  }
1827
2673
  ),
1828
- /* @__PURE__ */ jsx29(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx29(
2674
+ /* @__PURE__ */ jsx38(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx38(
1829
2675
  SelectPrimitive2.Content,
1830
2676
  {
1831
2677
  className: cn(
@@ -1853,7 +2699,7 @@ var LanguageSelect = React27.forwardRef(({ className, options, value, onValueCha
1853
2699
  "origin-[--radix-select-content-transform-origin]"
1854
2700
  ),
1855
2701
  position: "popper",
1856
- children: /* @__PURE__ */ jsx29(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx29(
2702
+ children: /* @__PURE__ */ jsx38(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx38(
1857
2703
  SelectPrimitive2.Item,
1858
2704
  {
1859
2705
  value: option.value,
@@ -1870,7 +2716,7 @@ var LanguageSelect = React27.forwardRef(({ className, options, value, onValueCha
1870
2716
  // Disabled state
1871
2717
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
1872
2718
  ),
1873
- children: /* @__PURE__ */ jsx29(SelectPrimitive2.ItemText, { children: option.label })
2719
+ children: /* @__PURE__ */ jsx38(SelectPrimitive2.ItemText, { children: option.label })
1874
2720
  },
1875
2721
  option.value
1876
2722
  )) })
@@ -1881,13 +2727,13 @@ var LanguageSelect = React27.forwardRef(({ className, options, value, onValueCha
1881
2727
  LanguageSelect.displayName = "LanguageSelect";
1882
2728
 
1883
2729
  // src/components/list/List.tsx
1884
- import * as React29 from "react";
2730
+ import * as React37 from "react";
1885
2731
 
1886
2732
  // src/components/divider/Divider.tsx
1887
- import * as React28 from "react";
1888
- import { cva as cva17 } from "class-variance-authority";
1889
- import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
1890
- var dividerVariants = cva17("", {
2733
+ import * as React36 from "react";
2734
+ import { cva as cva18 } from "class-variance-authority";
2735
+ import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
2736
+ var dividerVariants = cva18("", {
1891
2737
  variants: {
1892
2738
  variant: {
1893
2739
  default: "bg-berget-separator",
@@ -1907,7 +2753,7 @@ var dividerVariants = cva17("", {
1907
2753
  size: "thin"
1908
2754
  }
1909
2755
  });
1910
- var Divider = React28.forwardRef(
2756
+ var Divider = React36.forwardRef(
1911
2757
  ({
1912
2758
  className,
1913
2759
  orientation = "horizontal",
@@ -1918,17 +2764,17 @@ var Divider = React28.forwardRef(
1918
2764
  ...props
1919
2765
  }, ref) => {
1920
2766
  if (label) {
1921
- return /* @__PURE__ */ jsxs13("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
1922
- labelPosition !== "right" && /* @__PURE__ */ jsx30(
1923
- Separator2,
2767
+ return /* @__PURE__ */ jsxs17("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
2768
+ labelPosition !== "right" && /* @__PURE__ */ jsx39(
2769
+ Separator,
1924
2770
  {
1925
2771
  orientation: "horizontal",
1926
2772
  className: cn(dividerVariants({ variant, size }), "flex-1")
1927
2773
  }
1928
2774
  ),
1929
- /* @__PURE__ */ jsx30(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
1930
- labelPosition !== "left" && /* @__PURE__ */ jsx30(
1931
- Separator2,
2775
+ /* @__PURE__ */ jsx39(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
2776
+ labelPosition !== "left" && /* @__PURE__ */ jsx39(
2777
+ Separator,
1932
2778
  {
1933
2779
  orientation: "horizontal",
1934
2780
  className: cn(dividerVariants({ variant, size }), "flex-1")
@@ -1936,8 +2782,8 @@ var Divider = React28.forwardRef(
1936
2782
  )
1937
2783
  ] });
1938
2784
  }
1939
- return /* @__PURE__ */ jsx30(
1940
- Separator2,
2785
+ return /* @__PURE__ */ jsx39(
2786
+ Separator,
1941
2787
  {
1942
2788
  ref,
1943
2789
  orientation,
@@ -1954,19 +2800,19 @@ Divider.displayName = "Divider";
1954
2800
 
1955
2801
  // src/components/list/List.tsx
1956
2802
  import { Check as Check4 } from "lucide-react";
1957
- import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
1958
- var List = React29.forwardRef(
2803
+ import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
2804
+ var List = React37.forwardRef(
1959
2805
  ({ className, children, ...props }, ref) => {
1960
- const childrenArray = React29.Children.toArray(children);
1961
- return /* @__PURE__ */ jsx31("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs14(React29.Fragment, { children: [
2806
+ const childrenArray = React37.Children.toArray(children);
2807
+ return /* @__PURE__ */ jsx40("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs18(React37.Fragment, { children: [
1962
2808
  child,
1963
- index < childrenArray.length - 1 && /* @__PURE__ */ jsx31(Divider, { variant: "subtle" })
2809
+ index < childrenArray.length - 1 && /* @__PURE__ */ jsx40(Divider, { variant: "subtle" })
1964
2810
  ] }, index)) });
1965
2811
  }
1966
2812
  );
1967
2813
  List.displayName = "List";
1968
- var ListItem = React29.forwardRef(
1969
- ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs14(
2814
+ var ListItem = React37.forwardRef(
2815
+ ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs18(
1970
2816
  "div",
1971
2817
  {
1972
2818
  ref,
@@ -1977,15 +2823,15 @@ var ListItem = React29.forwardRef(
1977
2823
  ),
1978
2824
  ...props,
1979
2825
  children: [
1980
- icon && /* @__PURE__ */ jsx31("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
1981
- /* @__PURE__ */ jsx31("div", { className: "flex-1 min-w-0", children })
2826
+ icon && /* @__PURE__ */ jsx40("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
2827
+ /* @__PURE__ */ jsx40("div", { className: "flex-1 min-w-0", children })
1982
2828
  ]
1983
2829
  }
1984
2830
  )
1985
2831
  );
1986
2832
  ListItem.displayName = "ListItem";
1987
- var ListHeader = React29.forwardRef(
1988
- ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx31(
2833
+ var ListHeader = React37.forwardRef(
2834
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx40(
1989
2835
  "div",
1990
2836
  {
1991
2837
  ref,
@@ -1996,21 +2842,21 @@ var ListHeader = React29.forwardRef(
1996
2842
  )
1997
2843
  );
1998
2844
  ListHeader.displayName = "ListHeader";
1999
- var FeatureList = React29.forwardRef(
2845
+ var FeatureList = React37.forwardRef(
2000
2846
  ({ items, variant = "bullet", className, ...props }, ref) => {
2001
- return /* @__PURE__ */ jsx31("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs14("li", { className: "flex items-start gap-fluid-md", children: [
2002
- variant === "bullet" ? /* @__PURE__ */ jsx31("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx31("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx31(Icon2, { icon: Check4, size: 24, className: "text-berget-logo-light" }) }),
2003
- /* @__PURE__ */ jsx31(Typography, { variant: "body", color: "muted", children: item })
2847
+ return /* @__PURE__ */ jsx40("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs18("li", { className: "flex items-start gap-fluid-md", children: [
2848
+ variant === "bullet" ? /* @__PURE__ */ jsx40("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx40("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx40(Icon2, { icon: Check4, size: 24, className: "text-berget-logo-light" }) }),
2849
+ /* @__PURE__ */ jsx40(Typography, { variant: "body", color: "muted", children: item })
2004
2850
  ] }, index)) });
2005
2851
  }
2006
2852
  );
2007
2853
  FeatureList.displayName = "FeatureList";
2008
2854
 
2009
2855
  // src/components/hero-block/HeroBlock.tsx
2010
- import * as React30 from "react";
2011
- import { cva as cva18 } from "class-variance-authority";
2012
- import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
2013
- var heroBlockVariants = cva18(
2856
+ import * as React38 from "react";
2857
+ import { cva as cva19 } from "class-variance-authority";
2858
+ import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
2859
+ var heroBlockVariants = cva19(
2014
2860
  "relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
2015
2861
  {
2016
2862
  variants: {
@@ -2030,7 +2876,7 @@ var heroBlockVariants = cva18(
2030
2876
  }
2031
2877
  }
2032
2878
  );
2033
- var HeroBlock = React30.forwardRef(
2879
+ var HeroBlock = React38.forwardRef(
2034
2880
  ({
2035
2881
  className,
2036
2882
  variant,
@@ -2042,26 +2888,26 @@ var HeroBlock = React30.forwardRef(
2042
2888
  actions,
2043
2889
  ...props
2044
2890
  }, ref) => {
2045
- return /* @__PURE__ */ jsx32(
2891
+ return /* @__PURE__ */ jsx41(
2046
2892
  "div",
2047
2893
  {
2048
2894
  ref,
2049
2895
  className: cn(heroBlockVariants({ variant, withPattern }), className),
2050
2896
  ...props,
2051
- children: /* @__PURE__ */ jsx32("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs15("div", { className: "mx-auto text-center max-w-4xl", children: [
2052
- tagline && /* @__PURE__ */ jsx32(
2897
+ children: /* @__PURE__ */ jsx41("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs19("div", { className: "mx-auto text-center max-w-4xl", children: [
2898
+ tagline && /* @__PURE__ */ jsx41(
2053
2899
  Badge,
2054
2900
  {
2055
2901
  variant: "default",
2056
- icon: TaglineIcon ? /* @__PURE__ */ jsx32(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
2902
+ icon: TaglineIcon ? /* @__PURE__ */ jsx41(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
2057
2903
  iconGap: 2,
2058
2904
  className: "mb-fluid-md",
2059
2905
  children: tagline
2060
2906
  }
2061
2907
  ),
2062
- /* @__PURE__ */ jsx32(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
2063
- /* @__PURE__ */ jsx32(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
2064
- actions && /* @__PURE__ */ jsx32("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
2908
+ /* @__PURE__ */ jsx41(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
2909
+ /* @__PURE__ */ jsx41(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
2910
+ actions && /* @__PURE__ */ jsx41("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
2065
2911
  ] }) })
2066
2912
  }
2067
2913
  );
@@ -2070,12 +2916,12 @@ var HeroBlock = React30.forwardRef(
2070
2916
  HeroBlock.displayName = "HeroBlock";
2071
2917
 
2072
2918
  // src/components/code-block/CodeBlock.tsx
2073
- import { useState as useState2, useEffect as useEffect2, useCallback as useCallback3 } from "react";
2919
+ import { useState as useState3, useEffect as useEffect2, useCallback as useCallback3 } from "react";
2074
2920
  import { Copy, Check as Check5 } from "lucide-react";
2075
- import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
2921
+ import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
2076
2922
  function CodeBlock({ code, language = "text", title, className }) {
2077
- const [html, setHtml] = useState2(null);
2078
- const [copied, setCopied] = useState2(false);
2923
+ const [html, setHtml] = useState3(null);
2924
+ const [copied, setCopied] = useState3(false);
2079
2925
  useEffect2(() => {
2080
2926
  getHighlighter().then((highlighter) => {
2081
2927
  const loadedLangs = highlighter.getLoadedLanguages();
@@ -2088,16 +2934,16 @@ function CodeBlock({ code, language = "text", title, className }) {
2088
2934
  setCopied(true);
2089
2935
  setTimeout(() => setCopied(false), 2e3);
2090
2936
  }, [code]);
2091
- const copyButton = /* @__PURE__ */ jsx33(
2937
+ const copyButton = /* @__PURE__ */ jsx42(
2092
2938
  "button",
2093
2939
  {
2094
2940
  onClick: handleCopy,
2095
2941
  className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
2096
2942
  "aria-label": "Copy code",
2097
- children: copied ? /* @__PURE__ */ jsx33(Check5, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx33(Copy, { className: "w-3.5 h-3.5" })
2943
+ children: copied ? /* @__PURE__ */ jsx42(Check5, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx42(Copy, { className: "w-3.5 h-3.5" })
2098
2944
  }
2099
2945
  );
2100
- return /* @__PURE__ */ jsxs16(
2946
+ return /* @__PURE__ */ jsxs20(
2101
2947
  "div",
2102
2948
  {
2103
2949
  className: cn(
@@ -2105,27 +2951,27 @@ function CodeBlock({ code, language = "text", title, className }) {
2105
2951
  className
2106
2952
  ),
2107
2953
  children: [
2108
- title && /* @__PURE__ */ jsx33("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__ */ jsx33("span", { className: "text-berget-muted-foreground", children: title }) }),
2109
- /* @__PURE__ */ jsx33("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
2110
- html ? /* @__PURE__ */ jsx33(
2954
+ title && /* @__PURE__ */ jsx42("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__ */ jsx42("span", { className: "text-berget-muted-foreground", children: title }) }),
2955
+ /* @__PURE__ */ jsx42("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
2956
+ html ? /* @__PURE__ */ jsx42(
2111
2957
  "div",
2112
2958
  {
2113
2959
  className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
2114
2960
  dangerouslySetInnerHTML: { __html: html }
2115
2961
  }
2116
- ) : /* @__PURE__ */ jsx33("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx33("code", { children: code }) })
2962
+ ) : /* @__PURE__ */ jsx42("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx42("code", { children: code }) })
2117
2963
  ]
2118
2964
  }
2119
2965
  );
2120
2966
  }
2121
2967
 
2122
2968
  // src/components/window-frame/WindowFrame.tsx
2123
- import * as React31 from "react";
2124
- import { useState as useState3 } from "react";
2125
- import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
2126
- var WindowFrame = React31.forwardRef(
2969
+ import * as React39 from "react";
2970
+ import { useState as useState4 } from "react";
2971
+ import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
2972
+ var WindowFrame = React39.forwardRef(
2127
2973
  ({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
2128
- const [internalActive, setInternalActive] = useState3(tabs?.[0]?.id ?? "");
2974
+ const [internalActive, setInternalActive] = useState4(tabs?.[0]?.id ?? "");
2129
2975
  const currentTab = activeTab ?? internalActive;
2130
2976
  const handleTabChange = (id) => {
2131
2977
  if (onTabChange) {
@@ -2134,7 +2980,7 @@ var WindowFrame = React31.forwardRef(
2134
2980
  setInternalActive(id);
2135
2981
  }
2136
2982
  };
2137
- return /* @__PURE__ */ jsxs17(
2983
+ return /* @__PURE__ */ jsxs21(
2138
2984
  "div",
2139
2985
  {
2140
2986
  ref,
@@ -2144,13 +2990,13 @@ var WindowFrame = React31.forwardRef(
2144
2990
  ),
2145
2991
  ...props,
2146
2992
  children: [
2147
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
2148
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
2149
- /* @__PURE__ */ jsx34("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
2150
- /* @__PURE__ */ jsx34("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
2151
- /* @__PURE__ */ jsx34("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
2993
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
2994
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
2995
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
2996
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
2997
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
2152
2998
  ] }),
2153
- tabs && tabs.length > 0 ? /* @__PURE__ */ jsx34("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx34(
2999
+ tabs && tabs.length > 0 ? /* @__PURE__ */ jsx43("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx43(
2154
3000
  "button",
2155
3001
  {
2156
3002
  type: "button",
@@ -2162,9 +3008,9 @@ var WindowFrame = React31.forwardRef(
2162
3008
  children: tab.label
2163
3009
  },
2164
3010
  tab.id
2165
- )) }) : /* @__PURE__ */ jsx34("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
3011
+ )) }) : /* @__PURE__ */ jsx43("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
2166
3012
  ] }),
2167
- /* @__PURE__ */ jsx34("div", { children })
3013
+ /* @__PURE__ */ jsx43("div", { children })
2168
3014
  ]
2169
3015
  }
2170
3016
  );
@@ -2179,6 +3025,7 @@ export {
2179
3025
  BergetLogo,
2180
3026
  Box,
2181
3027
  Button2 as Button,
3028
+ COUNTRIES,
2182
3029
  Card2 as Card,
2183
3030
  CardContent,
2184
3031
  CardDescription,
@@ -2188,6 +3035,18 @@ export {
2188
3035
  Checkbox2 as Checkbox,
2189
3036
  CodeBlock,
2190
3037
  Container,
3038
+ CountrySelect,
3039
+ Dialog,
3040
+ DialogClose,
3041
+ DialogContent,
3042
+ DialogDescription,
3043
+ DialogFooter,
3044
+ DialogHeader,
3045
+ DialogOverlay,
3046
+ DialogPortal,
3047
+ DialogTitle,
3048
+ DialogTrigger,
3049
+ EU_COUNTRY_CODES,
2191
3050
  FeatureList,
2192
3051
  Field,
2193
3052
  FieldContent,
@@ -2203,6 +3062,16 @@ export {
2203
3062
  HeroBlock,
2204
3063
  Icon2 as Icon,
2205
3064
  Input2 as Input,
3065
+ Item2 as Item,
3066
+ ItemActions,
3067
+ ItemContent,
3068
+ ItemDescription2 as ItemDescription,
3069
+ ItemFooter,
3070
+ ItemGroup,
3071
+ ItemHeader,
3072
+ ItemMedia2 as ItemMedia,
3073
+ ItemSeparator2 as ItemSeparator,
3074
+ ItemTitle2 as ItemTitle,
2206
3075
  Label2 as Label,
2207
3076
  LanguageSelect,
2208
3077
  Link,
@@ -2211,6 +3080,14 @@ export {
2211
3080
  ListItem,
2212
3081
  Select2 as Select,
2213
3082
  Switch,
3083
+ Table2 as Table,
3084
+ TableBody2 as TableBody,
3085
+ TableCaption2 as TableCaption,
3086
+ TableCell2 as TableCell,
3087
+ TableFooter2 as TableFooter,
3088
+ TableHead2 as TableHead,
3089
+ TableHeader2 as TableHeader,
3090
+ TableRow2 as TableRow,
2214
3091
  TextArea,
2215
3092
  ThemeProvider,
2216
3093
  ThemeToggle,
@@ -2223,7 +3100,10 @@ export {
2223
3100
  cardVariants,
2224
3101
  checkboxVariants,
2225
3102
  containerVariants,
3103
+ getCountryByCode,
3104
+ getCountryByName,
2226
3105
  gridVariants,
3106
+ isEUCountry,
2227
3107
  linkVariants,
2228
3108
  selectVariants,
2229
3109
  switchRootVariants,