@bergetai/ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +595 -348
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +562 -341
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -586,21 +586,206 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
586
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
587
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
588
588
|
|
|
589
|
-
// src/components/
|
|
589
|
+
// src/components/alert-dialog/AlertDialog.tsx
|
|
590
|
+
import * as React11 from "react";
|
|
591
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
592
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
593
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
594
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
595
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
596
|
+
var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
597
|
+
AlertDialogPrimitive.Overlay,
|
|
598
|
+
{
|
|
599
|
+
ref,
|
|
600
|
+
className: cn(
|
|
601
|
+
"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",
|
|
602
|
+
className
|
|
603
|
+
),
|
|
604
|
+
...props
|
|
605
|
+
}
|
|
606
|
+
));
|
|
607
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
608
|
+
var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(AlertDialogPortal, { children: [
|
|
609
|
+
/* @__PURE__ */ jsx12(AlertDialogOverlay, {}),
|
|
610
|
+
/* @__PURE__ */ jsx12(
|
|
611
|
+
AlertDialogPrimitive.Content,
|
|
612
|
+
{
|
|
613
|
+
ref,
|
|
614
|
+
className: cn(
|
|
615
|
+
"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%]",
|
|
616
|
+
className
|
|
617
|
+
),
|
|
618
|
+
...props
|
|
619
|
+
}
|
|
620
|
+
)
|
|
621
|
+
] }));
|
|
622
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
623
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx12("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
624
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
625
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
|
|
626
|
+
"div",
|
|
627
|
+
{
|
|
628
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
629
|
+
...props
|
|
630
|
+
}
|
|
631
|
+
);
|
|
632
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
633
|
+
var AlertDialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx12(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
|
|
634
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
635
|
+
var AlertDialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx12(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
636
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
637
|
+
var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
|
|
638
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
639
|
+
var AlertDialogCancel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Cancel, { ref, className: cn("mt-2 sm:mt-0", className), ...props }));
|
|
640
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
641
|
+
|
|
642
|
+
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
590
643
|
import * as React12 from "react";
|
|
644
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
645
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
646
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
647
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
648
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
649
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
650
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
651
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
652
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
653
|
+
var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
654
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
655
|
+
{
|
|
656
|
+
ref,
|
|
657
|
+
className: cn(
|
|
658
|
+
"flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[state=open]:bg-berget-surface-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
659
|
+
inset && "pl-8",
|
|
660
|
+
className
|
|
661
|
+
),
|
|
662
|
+
...props,
|
|
663
|
+
children: [
|
|
664
|
+
children,
|
|
665
|
+
/* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto" })
|
|
666
|
+
]
|
|
667
|
+
}
|
|
668
|
+
));
|
|
669
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
670
|
+
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
671
|
+
DropdownMenuPrimitive.SubContent,
|
|
672
|
+
{
|
|
673
|
+
ref,
|
|
674
|
+
className: cn(
|
|
675
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-lg 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-dropdown-menu-content-transform-origin]",
|
|
676
|
+
className
|
|
677
|
+
),
|
|
678
|
+
...props
|
|
679
|
+
}
|
|
680
|
+
));
|
|
681
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
682
|
+
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
|
|
683
|
+
DropdownMenuPrimitive.Content,
|
|
684
|
+
{
|
|
685
|
+
ref,
|
|
686
|
+
sideOffset,
|
|
687
|
+
className: cn(
|
|
688
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-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-dropdown-menu-content-transform-origin]",
|
|
689
|
+
className
|
|
690
|
+
),
|
|
691
|
+
...props
|
|
692
|
+
}
|
|
693
|
+
) }));
|
|
694
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
695
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
696
|
+
DropdownMenuPrimitive.Item,
|
|
697
|
+
{
|
|
698
|
+
ref,
|
|
699
|
+
className: cn(
|
|
700
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
701
|
+
inset && "pl-8",
|
|
702
|
+
className
|
|
703
|
+
),
|
|
704
|
+
...props
|
|
705
|
+
}
|
|
706
|
+
));
|
|
707
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
708
|
+
var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
709
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
710
|
+
{
|
|
711
|
+
ref,
|
|
712
|
+
className: cn(
|
|
713
|
+
"relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
714
|
+
className
|
|
715
|
+
),
|
|
716
|
+
checked,
|
|
717
|
+
...props,
|
|
718
|
+
children: [
|
|
719
|
+
/* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Check, { className: "size-4" }) }) }),
|
|
720
|
+
children
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
));
|
|
724
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
725
|
+
var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
726
|
+
DropdownMenuPrimitive.RadioItem,
|
|
727
|
+
{
|
|
728
|
+
ref,
|
|
729
|
+
className: cn(
|
|
730
|
+
"relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
731
|
+
className
|
|
732
|
+
),
|
|
733
|
+
...props,
|
|
734
|
+
children: [
|
|
735
|
+
/* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Circle, { className: "size-2 fill-current" }) }) }),
|
|
736
|
+
children
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
));
|
|
740
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
741
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
742
|
+
DropdownMenuPrimitive.Label,
|
|
743
|
+
{
|
|
744
|
+
ref,
|
|
745
|
+
className: cn(
|
|
746
|
+
"px-2 py-1.5 text-sm font-semibold text-berget-foreground",
|
|
747
|
+
inset && "pl-8",
|
|
748
|
+
className
|
|
749
|
+
),
|
|
750
|
+
...props
|
|
751
|
+
}
|
|
752
|
+
));
|
|
753
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
754
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
755
|
+
DropdownMenuPrimitive.Separator,
|
|
756
|
+
{
|
|
757
|
+
ref,
|
|
758
|
+
className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
|
|
759
|
+
...props
|
|
760
|
+
}
|
|
761
|
+
));
|
|
762
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
763
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
764
|
+
return /* @__PURE__ */ jsx13(
|
|
765
|
+
"span",
|
|
766
|
+
{
|
|
767
|
+
className: cn("ml-auto text-xs tracking-widest text-berget-muted-foreground", className),
|
|
768
|
+
...props
|
|
769
|
+
}
|
|
770
|
+
);
|
|
771
|
+
};
|
|
772
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
773
|
+
|
|
774
|
+
// src/components/table/Table.tsx
|
|
775
|
+
import * as React14 from "react";
|
|
591
776
|
|
|
592
777
|
// src/primitives/table.tsx
|
|
593
|
-
import * as
|
|
594
|
-
import { jsx as
|
|
595
|
-
var Table =
|
|
596
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
778
|
+
import * as React13 from "react";
|
|
779
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
780
|
+
var Table = React13.forwardRef(
|
|
781
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx14("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx14("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
597
782
|
);
|
|
598
783
|
Table.displayName = "Table";
|
|
599
|
-
var TableHeader =
|
|
784
|
+
var TableHeader = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
600
785
|
TableHeader.displayName = "TableHeader";
|
|
601
|
-
var TableBody =
|
|
786
|
+
var TableBody = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
602
787
|
TableBody.displayName = "TableBody";
|
|
603
|
-
var TableFooter =
|
|
788
|
+
var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
604
789
|
"tfoot",
|
|
605
790
|
{
|
|
606
791
|
ref,
|
|
@@ -609,8 +794,8 @@ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
609
794
|
}
|
|
610
795
|
));
|
|
611
796
|
TableFooter.displayName = "TableFooter";
|
|
612
|
-
var TableRow =
|
|
613
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
797
|
+
var TableRow = React13.forwardRef(
|
|
798
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
614
799
|
"tr",
|
|
615
800
|
{
|
|
616
801
|
ref,
|
|
@@ -623,7 +808,7 @@ var TableRow = React11.forwardRef(
|
|
|
623
808
|
)
|
|
624
809
|
);
|
|
625
810
|
TableRow.displayName = "TableRow";
|
|
626
|
-
var TableHead =
|
|
811
|
+
var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
627
812
|
"th",
|
|
628
813
|
{
|
|
629
814
|
ref,
|
|
@@ -635,7 +820,7 @@ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
635
820
|
}
|
|
636
821
|
));
|
|
637
822
|
TableHead.displayName = "TableHead";
|
|
638
|
-
var TableCell =
|
|
823
|
+
var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
639
824
|
"td",
|
|
640
825
|
{
|
|
641
826
|
ref,
|
|
@@ -644,18 +829,25 @@ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
644
829
|
}
|
|
645
830
|
));
|
|
646
831
|
TableCell.displayName = "TableCell";
|
|
647
|
-
var TableCaption =
|
|
832
|
+
var TableCaption = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
648
833
|
TableCaption.displayName = "TableCaption";
|
|
649
834
|
|
|
650
835
|
// src/components/table/Table.tsx
|
|
651
|
-
import { jsx as
|
|
652
|
-
var Table2 =
|
|
653
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
836
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
837
|
+
var Table2 = React14.forwardRef(
|
|
838
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(Table, { ref, className, ...props })
|
|
654
839
|
);
|
|
655
840
|
Table2.displayName = "Table";
|
|
656
|
-
var TableHeader2 =
|
|
841
|
+
var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
842
|
+
TableHeader,
|
|
843
|
+
{
|
|
844
|
+
ref,
|
|
845
|
+
className: cn("[&_tr]:border-b border-berget-table-border", className),
|
|
846
|
+
...props
|
|
847
|
+
}
|
|
848
|
+
));
|
|
657
849
|
TableHeader2.displayName = "TableHeader";
|
|
658
|
-
var TableBody2 =
|
|
850
|
+
var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
659
851
|
TableBody,
|
|
660
852
|
{
|
|
661
853
|
ref,
|
|
@@ -664,22 +856,25 @@ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
664
856
|
}
|
|
665
857
|
));
|
|
666
858
|
TableBody2.displayName = "TableBody";
|
|
667
|
-
var TableFooter2 =
|
|
859
|
+
var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
668
860
|
TableFooter,
|
|
669
861
|
{
|
|
670
862
|
ref,
|
|
671
|
-
className: cn(
|
|
863
|
+
className: cn(
|
|
864
|
+
"border-t border-berget-table-border bg-berget-table-footer-bg font-medium [&>tr]:last:border-0",
|
|
865
|
+
className
|
|
866
|
+
),
|
|
672
867
|
...props
|
|
673
868
|
}
|
|
674
869
|
));
|
|
675
870
|
TableFooter2.displayName = "TableFooter";
|
|
676
|
-
var TableRow2 =
|
|
677
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
871
|
+
var TableRow2 = React14.forwardRef(
|
|
872
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
678
873
|
TableRow,
|
|
679
874
|
{
|
|
680
875
|
ref,
|
|
681
876
|
className: cn(
|
|
682
|
-
"border-b transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
877
|
+
"border-b border-berget-table-border transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
683
878
|
className
|
|
684
879
|
),
|
|
685
880
|
...props
|
|
@@ -687,7 +882,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
687
882
|
)
|
|
688
883
|
);
|
|
689
884
|
TableRow2.displayName = "TableRow";
|
|
690
|
-
var TableHead2 =
|
|
885
|
+
var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
691
886
|
TableHead,
|
|
692
887
|
{
|
|
693
888
|
ref,
|
|
@@ -699,7 +894,7 @@ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
699
894
|
}
|
|
700
895
|
));
|
|
701
896
|
TableHead2.displayName = "TableHead";
|
|
702
|
-
var TableCell2 =
|
|
897
|
+
var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
703
898
|
TableCell,
|
|
704
899
|
{
|
|
705
900
|
ref,
|
|
@@ -708,7 +903,7 @@ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
708
903
|
}
|
|
709
904
|
));
|
|
710
905
|
TableCell2.displayName = "TableCell";
|
|
711
|
-
var TableCaption2 =
|
|
906
|
+
var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
712
907
|
TableCaption,
|
|
713
908
|
{
|
|
714
909
|
ref,
|
|
@@ -719,17 +914,17 @@ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
719
914
|
TableCaption2.displayName = "TableCaption";
|
|
720
915
|
|
|
721
916
|
// src/components/item/Item.tsx
|
|
722
|
-
import * as
|
|
917
|
+
import * as React16 from "react";
|
|
723
918
|
|
|
724
919
|
// src/primitives/item.tsx
|
|
725
920
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
726
921
|
import { cva as cva7 } from "class-variance-authority";
|
|
727
922
|
|
|
728
923
|
// src/primitives/separator.tsx
|
|
729
|
-
import * as
|
|
924
|
+
import * as React15 from "react";
|
|
730
925
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
731
|
-
import { jsx as
|
|
732
|
-
var
|
|
926
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
927
|
+
var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
733
928
|
SeparatorPrimitive.Root,
|
|
734
929
|
{
|
|
735
930
|
ref,
|
|
@@ -743,12 +938,12 @@ var Separator = React13.forwardRef(({ className, orientation = "horizontal", dec
|
|
|
743
938
|
...props
|
|
744
939
|
}
|
|
745
940
|
));
|
|
746
|
-
|
|
941
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
747
942
|
|
|
748
943
|
// src/primitives/item.tsx
|
|
749
|
-
import { jsx as
|
|
944
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
750
945
|
function ItemGroup({ className, ...props }) {
|
|
751
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ jsx17(
|
|
752
947
|
"div",
|
|
753
948
|
{
|
|
754
949
|
role: "list",
|
|
@@ -759,8 +954,8 @@ function ItemGroup({ className, ...props }) {
|
|
|
759
954
|
);
|
|
760
955
|
}
|
|
761
956
|
function ItemSeparator({ className, ...props }) {
|
|
762
|
-
return /* @__PURE__ */
|
|
763
|
-
|
|
957
|
+
return /* @__PURE__ */ jsx17(
|
|
958
|
+
Separator2,
|
|
764
959
|
{
|
|
765
960
|
"data-slot": "item-separator",
|
|
766
961
|
orientation: "horizontal",
|
|
@@ -789,7 +984,7 @@ var itemVariants = cva7(
|
|
|
789
984
|
}
|
|
790
985
|
}
|
|
791
986
|
);
|
|
792
|
-
function
|
|
987
|
+
function Item2({
|
|
793
988
|
className,
|
|
794
989
|
variant = "default",
|
|
795
990
|
size = "default",
|
|
@@ -797,7 +992,7 @@ function Item({
|
|
|
797
992
|
...props
|
|
798
993
|
}) {
|
|
799
994
|
const Comp = asChild ? Slot2 : "div";
|
|
800
|
-
return /* @__PURE__ */
|
|
995
|
+
return /* @__PURE__ */ jsx17(
|
|
801
996
|
Comp,
|
|
802
997
|
{
|
|
803
998
|
"data-slot": "item",
|
|
@@ -828,7 +1023,7 @@ function ItemMedia({
|
|
|
828
1023
|
variant = "default",
|
|
829
1024
|
...props
|
|
830
1025
|
}) {
|
|
831
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ jsx17(
|
|
832
1027
|
"div",
|
|
833
1028
|
{
|
|
834
1029
|
"data-slot": "item-media",
|
|
@@ -839,7 +1034,7 @@ function ItemMedia({
|
|
|
839
1034
|
);
|
|
840
1035
|
}
|
|
841
1036
|
function ItemContent({ className, ...props }) {
|
|
842
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ jsx17(
|
|
843
1038
|
"div",
|
|
844
1039
|
{
|
|
845
1040
|
"data-slot": "item-content",
|
|
@@ -849,7 +1044,7 @@ function ItemContent({ className, ...props }) {
|
|
|
849
1044
|
);
|
|
850
1045
|
}
|
|
851
1046
|
function ItemTitle({ className, ...props }) {
|
|
852
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx17(
|
|
853
1048
|
"div",
|
|
854
1049
|
{
|
|
855
1050
|
"data-slot": "item-title",
|
|
@@ -859,7 +1054,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
859
1054
|
);
|
|
860
1055
|
}
|
|
861
1056
|
function ItemDescription({ className, ...props }) {
|
|
862
|
-
return /* @__PURE__ */
|
|
1057
|
+
return /* @__PURE__ */ jsx17(
|
|
863
1058
|
"p",
|
|
864
1059
|
{
|
|
865
1060
|
"data-slot": "item-description",
|
|
@@ -873,10 +1068,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
873
1068
|
);
|
|
874
1069
|
}
|
|
875
1070
|
function ItemActions({ className, ...props }) {
|
|
876
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ jsx17("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
877
1072
|
}
|
|
878
1073
|
function ItemHeader({ className, ...props }) {
|
|
879
|
-
return /* @__PURE__ */
|
|
1074
|
+
return /* @__PURE__ */ jsx17(
|
|
880
1075
|
"div",
|
|
881
1076
|
{
|
|
882
1077
|
"data-slot": "item-header",
|
|
@@ -886,7 +1081,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
886
1081
|
);
|
|
887
1082
|
}
|
|
888
1083
|
function ItemFooter({ className, ...props }) {
|
|
889
|
-
return /* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ jsx17(
|
|
890
1085
|
"div",
|
|
891
1086
|
{
|
|
892
1087
|
"data-slot": "item-footer",
|
|
@@ -897,10 +1092,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
897
1092
|
}
|
|
898
1093
|
|
|
899
1094
|
// src/components/item/Item.tsx
|
|
900
|
-
import { jsx as
|
|
901
|
-
function
|
|
902
|
-
return /* @__PURE__ */
|
|
903
|
-
|
|
1095
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1096
|
+
function Item3({ className, asChild, ...props }) {
|
|
1097
|
+
return /* @__PURE__ */ jsx18(
|
|
1098
|
+
Item2,
|
|
904
1099
|
{
|
|
905
1100
|
asChild,
|
|
906
1101
|
className: cn(
|
|
@@ -917,8 +1112,8 @@ function Item2({ className, asChild, ...props }) {
|
|
|
917
1112
|
}
|
|
918
1113
|
);
|
|
919
1114
|
}
|
|
920
|
-
var ItemMedia2 =
|
|
921
|
-
return /* @__PURE__ */
|
|
1115
|
+
var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1116
|
+
return /* @__PURE__ */ jsx18(
|
|
922
1117
|
ItemMedia,
|
|
923
1118
|
{
|
|
924
1119
|
ref,
|
|
@@ -928,8 +1123,8 @@ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
928
1123
|
);
|
|
929
1124
|
});
|
|
930
1125
|
ItemMedia2.displayName = "ItemMedia";
|
|
931
|
-
var ItemTitle2 =
|
|
932
|
-
return /* @__PURE__ */
|
|
1126
|
+
var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1127
|
+
return /* @__PURE__ */ jsx18(
|
|
933
1128
|
ItemTitle,
|
|
934
1129
|
{
|
|
935
1130
|
ref,
|
|
@@ -939,8 +1134,8 @@ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
939
1134
|
);
|
|
940
1135
|
});
|
|
941
1136
|
ItemTitle2.displayName = "ItemTitle";
|
|
942
|
-
var ItemDescription2 =
|
|
943
|
-
return /* @__PURE__ */
|
|
1137
|
+
var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1138
|
+
return /* @__PURE__ */ jsx18(
|
|
944
1139
|
ItemDescription,
|
|
945
1140
|
{
|
|
946
1141
|
ref,
|
|
@@ -950,8 +1145,8 @@ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
950
1145
|
);
|
|
951
1146
|
});
|
|
952
1147
|
ItemDescription2.displayName = "ItemDescription";
|
|
953
|
-
var ItemSeparator2 =
|
|
954
|
-
return /* @__PURE__ */
|
|
1148
|
+
var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1149
|
+
return /* @__PURE__ */ jsx18(
|
|
955
1150
|
ItemSeparator,
|
|
956
1151
|
{
|
|
957
1152
|
ref,
|
|
@@ -963,14 +1158,14 @@ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
963
1158
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
964
1159
|
|
|
965
1160
|
// src/components/input/Input.tsx
|
|
966
|
-
import * as
|
|
1161
|
+
import * as React18 from "react";
|
|
967
1162
|
|
|
968
1163
|
// src/primitives/input.tsx
|
|
969
|
-
import * as
|
|
970
|
-
import { jsx as
|
|
971
|
-
var Input =
|
|
1164
|
+
import * as React17 from "react";
|
|
1165
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1166
|
+
var Input = React17.forwardRef(
|
|
972
1167
|
({ className, type, ...props }, ref) => {
|
|
973
|
-
return /* @__PURE__ */
|
|
1168
|
+
return /* @__PURE__ */ jsx19(
|
|
974
1169
|
"input",
|
|
975
1170
|
{
|
|
976
1171
|
type,
|
|
@@ -987,14 +1182,14 @@ var Input = React15.forwardRef(
|
|
|
987
1182
|
Input.displayName = "Input";
|
|
988
1183
|
|
|
989
1184
|
// src/components/input/Input.tsx
|
|
990
|
-
import { jsx as
|
|
991
|
-
var Input2 =
|
|
1185
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1186
|
+
var Input2 = React18.forwardRef(
|
|
992
1187
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
993
|
-
const generatedId =
|
|
1188
|
+
const generatedId = React18.useId();
|
|
994
1189
|
const inputId = id || generatedId;
|
|
995
1190
|
const errorId = `${inputId}-error`;
|
|
996
1191
|
const descriptionId = `${inputId}-description`;
|
|
997
|
-
const inputElement = /* @__PURE__ */
|
|
1192
|
+
const inputElement = /* @__PURE__ */ jsx20(
|
|
998
1193
|
Input,
|
|
999
1194
|
{
|
|
1000
1195
|
ref,
|
|
@@ -1014,8 +1209,8 @@ var Input2 = React16.forwardRef(
|
|
|
1014
1209
|
}
|
|
1015
1210
|
);
|
|
1016
1211
|
if (!icon && !actionButton) {
|
|
1017
|
-
return /* @__PURE__ */
|
|
1018
|
-
label && /* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
|
|
1213
|
+
label && /* @__PURE__ */ jsx20(
|
|
1019
1214
|
"label",
|
|
1020
1215
|
{
|
|
1021
1216
|
htmlFor: inputId,
|
|
@@ -1028,9 +1223,9 @@ var Input2 = React16.forwardRef(
|
|
|
1028
1223
|
}
|
|
1029
1224
|
),
|
|
1030
1225
|
inputElement,
|
|
1031
|
-
(description || error) && /* @__PURE__ */
|
|
1032
|
-
description && /* @__PURE__ */
|
|
1033
|
-
error && /* @__PURE__ */
|
|
1226
|
+
(description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
|
|
1227
|
+
description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1228
|
+
error && /* @__PURE__ */ jsx20(
|
|
1034
1229
|
Typography,
|
|
1035
1230
|
{
|
|
1036
1231
|
variant: "xs",
|
|
@@ -1042,8 +1237,8 @@ var Input2 = React16.forwardRef(
|
|
|
1042
1237
|
] })
|
|
1043
1238
|
] });
|
|
1044
1239
|
}
|
|
1045
|
-
return /* @__PURE__ */
|
|
1046
|
-
label && /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
|
|
1241
|
+
label && /* @__PURE__ */ jsx20(
|
|
1047
1242
|
"label",
|
|
1048
1243
|
{
|
|
1049
1244
|
htmlFor: inputId,
|
|
@@ -1055,14 +1250,14 @@ var Input2 = React16.forwardRef(
|
|
|
1055
1250
|
children: label
|
|
1056
1251
|
}
|
|
1057
1252
|
),
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
icon && /* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ jsxs6("div", { className: "relative w-full", children: [
|
|
1254
|
+
icon && /* @__PURE__ */ jsx20("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1060
1255
|
inputElement,
|
|
1061
|
-
actionButton && /* @__PURE__ */
|
|
1256
|
+
actionButton && /* @__PURE__ */ jsx20("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1062
1257
|
] }),
|
|
1063
|
-
(description || error) && /* @__PURE__ */
|
|
1064
|
-
description && /* @__PURE__ */
|
|
1065
|
-
error && /* @__PURE__ */
|
|
1258
|
+
(description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
|
|
1259
|
+
description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1260
|
+
error && /* @__PURE__ */ jsx20(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1066
1261
|
] })
|
|
1067
1262
|
] });
|
|
1068
1263
|
}
|
|
@@ -1070,17 +1265,17 @@ var Input2 = React16.forwardRef(
|
|
|
1070
1265
|
Input2.displayName = "Input";
|
|
1071
1266
|
|
|
1072
1267
|
// src/components/checkbox/Checkbox.tsx
|
|
1073
|
-
import * as
|
|
1268
|
+
import * as React20 from "react";
|
|
1074
1269
|
import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
|
|
1075
|
-
import { Check as
|
|
1270
|
+
import { Check as Check3 } from "lucide-react";
|
|
1076
1271
|
import { cva as cva8 } from "class-variance-authority";
|
|
1077
1272
|
|
|
1078
1273
|
// src/primitives/checkbox.tsx
|
|
1079
|
-
import * as
|
|
1274
|
+
import * as React19 from "react";
|
|
1080
1275
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1081
|
-
import { Check } from "lucide-react";
|
|
1082
|
-
import { jsx as
|
|
1083
|
-
var Checkbox =
|
|
1276
|
+
import { Check as Check2 } from "lucide-react";
|
|
1277
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1278
|
+
var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1084
1279
|
CheckboxPrimitive.Root,
|
|
1085
1280
|
{
|
|
1086
1281
|
ref,
|
|
@@ -1089,23 +1284,23 @@ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1089
1284
|
className
|
|
1090
1285
|
),
|
|
1091
1286
|
...props,
|
|
1092
|
-
children: children ?? /* @__PURE__ */
|
|
1287
|
+
children: children ?? /* @__PURE__ */ jsx21(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx21(Check2, { className: "h-4 w-4" }) })
|
|
1093
1288
|
}
|
|
1094
1289
|
));
|
|
1095
1290
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1096
|
-
var CheckboxIndicator =
|
|
1291
|
+
var CheckboxIndicator = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1097
1292
|
CheckboxPrimitive.Indicator,
|
|
1098
1293
|
{
|
|
1099
1294
|
ref,
|
|
1100
1295
|
className: cn("grid place-content-center", className),
|
|
1101
1296
|
...props,
|
|
1102
|
-
children: children ?? /* @__PURE__ */
|
|
1297
|
+
children: children ?? /* @__PURE__ */ jsx21(Check2, { className: "h-4 w-4" })
|
|
1103
1298
|
}
|
|
1104
1299
|
));
|
|
1105
1300
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1106
1301
|
|
|
1107
1302
|
// src/components/checkbox/Checkbox.tsx
|
|
1108
|
-
import { jsx as
|
|
1303
|
+
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1109
1304
|
var checkboxVariants = cva8(
|
|
1110
1305
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1111
1306
|
{
|
|
@@ -1127,7 +1322,7 @@ var checkboxVariants = cva8(
|
|
|
1127
1322
|
}
|
|
1128
1323
|
}
|
|
1129
1324
|
);
|
|
1130
|
-
var Checkbox2 =
|
|
1325
|
+
var Checkbox2 = React20.forwardRef(
|
|
1131
1326
|
({
|
|
1132
1327
|
"aria-label": ariaLabel,
|
|
1133
1328
|
className,
|
|
@@ -1140,11 +1335,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1140
1335
|
disabled,
|
|
1141
1336
|
...props
|
|
1142
1337
|
}, ref) => {
|
|
1143
|
-
const generatedId =
|
|
1338
|
+
const generatedId = React20.useId();
|
|
1144
1339
|
const checkboxId = id || generatedId;
|
|
1145
1340
|
const errorId = `${checkboxId}-error`;
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
/* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex items-start gap-3", children: [
|
|
1342
|
+
/* @__PURE__ */ jsx22("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx22(
|
|
1148
1343
|
Checkbox,
|
|
1149
1344
|
{
|
|
1150
1345
|
ref,
|
|
@@ -1160,8 +1355,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1160
1355
|
className
|
|
1161
1356
|
),
|
|
1162
1357
|
...props,
|
|
1163
|
-
children: /* @__PURE__ */
|
|
1164
|
-
|
|
1358
|
+
children: /* @__PURE__ */ jsx22(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx22(
|
|
1359
|
+
Check3,
|
|
1165
1360
|
{
|
|
1166
1361
|
className: "h-4 w-4 text-current stroke-current",
|
|
1167
1362
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1169,8 +1364,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1169
1364
|
) })
|
|
1170
1365
|
}
|
|
1171
1366
|
) }),
|
|
1172
|
-
(label || description || error) && /* @__PURE__ */
|
|
1173
|
-
label && /* @__PURE__ */
|
|
1367
|
+
(label || description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1368
|
+
label && /* @__PURE__ */ jsx22(
|
|
1174
1369
|
"label",
|
|
1175
1370
|
{
|
|
1176
1371
|
htmlFor: checkboxId,
|
|
@@ -1182,8 +1377,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1182
1377
|
children: label
|
|
1183
1378
|
}
|
|
1184
1379
|
),
|
|
1185
|
-
description && /* @__PURE__ */
|
|
1186
|
-
error && /* @__PURE__ */
|
|
1380
|
+
description && /* @__PURE__ */ jsx22(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1381
|
+
error && /* @__PURE__ */ jsx22(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1187
1382
|
] })
|
|
1188
1383
|
] });
|
|
1189
1384
|
}
|
|
@@ -1191,10 +1386,10 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1191
1386
|
Checkbox2.displayName = "Checkbox";
|
|
1192
1387
|
|
|
1193
1388
|
// src/components/switch/Switch.tsx
|
|
1194
|
-
import * as
|
|
1389
|
+
import * as React21 from "react";
|
|
1195
1390
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1196
1391
|
import { cva as cva9 } from "class-variance-authority";
|
|
1197
|
-
import { jsx as
|
|
1392
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1198
1393
|
var switchRootVariants = cva9(
|
|
1199
1394
|
"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",
|
|
1200
1395
|
{
|
|
@@ -1231,7 +1426,7 @@ var switchThumbVariants = cva9(
|
|
|
1231
1426
|
}
|
|
1232
1427
|
}
|
|
1233
1428
|
);
|
|
1234
|
-
var Switch =
|
|
1429
|
+
var Switch = React21.forwardRef(
|
|
1235
1430
|
({
|
|
1236
1431
|
"aria-label": ariaLabel,
|
|
1237
1432
|
className,
|
|
@@ -1244,11 +1439,11 @@ var Switch = React19.forwardRef(
|
|
|
1244
1439
|
disabled,
|
|
1245
1440
|
...props
|
|
1246
1441
|
}, ref) => {
|
|
1247
|
-
const generatedId =
|
|
1442
|
+
const generatedId = React21.useId();
|
|
1248
1443
|
const switchId = id || generatedId;
|
|
1249
1444
|
const errorId = `${switchId}-error`;
|
|
1250
|
-
return /* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
1445
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-3", children: [
|
|
1446
|
+
/* @__PURE__ */ jsx23(
|
|
1252
1447
|
SwitchPrimitives.Root,
|
|
1253
1448
|
{
|
|
1254
1449
|
ref,
|
|
@@ -1263,11 +1458,11 @@ var Switch = React19.forwardRef(
|
|
|
1263
1458
|
className
|
|
1264
1459
|
),
|
|
1265
1460
|
...props,
|
|
1266
|
-
children: /* @__PURE__ */
|
|
1461
|
+
children: /* @__PURE__ */ jsx23(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1267
1462
|
}
|
|
1268
1463
|
),
|
|
1269
|
-
(label || description || error) && /* @__PURE__ */
|
|
1270
|
-
label && /* @__PURE__ */
|
|
1464
|
+
(label || description || error) && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
|
|
1465
|
+
label && /* @__PURE__ */ jsx23(
|
|
1271
1466
|
"label",
|
|
1272
1467
|
{
|
|
1273
1468
|
htmlFor: switchId,
|
|
@@ -1278,8 +1473,8 @@ var Switch = React19.forwardRef(
|
|
|
1278
1473
|
children: label
|
|
1279
1474
|
}
|
|
1280
1475
|
),
|
|
1281
|
-
description && /* @__PURE__ */
|
|
1282
|
-
error && /* @__PURE__ */
|
|
1476
|
+
description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1477
|
+
error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1283
1478
|
] })
|
|
1284
1479
|
] });
|
|
1285
1480
|
}
|
|
@@ -1287,17 +1482,17 @@ var Switch = React19.forwardRef(
|
|
|
1287
1482
|
Switch.displayName = "Switch";
|
|
1288
1483
|
|
|
1289
1484
|
// src/components/select/Select.tsx
|
|
1290
|
-
import * as
|
|
1485
|
+
import * as React23 from "react";
|
|
1291
1486
|
import { cva as cva10 } from "class-variance-authority";
|
|
1292
1487
|
|
|
1293
1488
|
// src/primitives/select.tsx
|
|
1294
|
-
import * as
|
|
1489
|
+
import * as React22 from "react";
|
|
1295
1490
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1296
|
-
import { Check as
|
|
1297
|
-
import { jsx as
|
|
1491
|
+
import { Check as Check4, ChevronDown, ChevronUp } from "lucide-react";
|
|
1492
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1298
1493
|
var Select = SelectPrimitive.Root;
|
|
1299
1494
|
var SelectValue = SelectPrimitive.Value;
|
|
1300
|
-
var SelectTrigger =
|
|
1495
|
+
var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
1301
1496
|
SelectPrimitive.Trigger,
|
|
1302
1497
|
{
|
|
1303
1498
|
ref,
|
|
@@ -1308,32 +1503,32 @@ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
1308
1503
|
...props,
|
|
1309
1504
|
children: [
|
|
1310
1505
|
children,
|
|
1311
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx24(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1312
1507
|
]
|
|
1313
1508
|
}
|
|
1314
1509
|
));
|
|
1315
1510
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1316
|
-
var SelectScrollUpButton =
|
|
1511
|
+
var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1317
1512
|
SelectPrimitive.ScrollUpButton,
|
|
1318
1513
|
{
|
|
1319
1514
|
ref,
|
|
1320
1515
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1321
1516
|
...props,
|
|
1322
|
-
children: /* @__PURE__ */
|
|
1517
|
+
children: /* @__PURE__ */ jsx24(ChevronUp, { className: "h-4 w-4" })
|
|
1323
1518
|
}
|
|
1324
1519
|
));
|
|
1325
1520
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1326
|
-
var SelectScrollDownButton =
|
|
1521
|
+
var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1327
1522
|
SelectPrimitive.ScrollDownButton,
|
|
1328
1523
|
{
|
|
1329
1524
|
ref,
|
|
1330
1525
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1331
1526
|
...props,
|
|
1332
|
-
children: /* @__PURE__ */
|
|
1527
|
+
children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4" })
|
|
1333
1528
|
}
|
|
1334
1529
|
));
|
|
1335
1530
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1336
|
-
var SelectContent =
|
|
1531
|
+
var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx24(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs9(
|
|
1337
1532
|
SelectPrimitive.Content,
|
|
1338
1533
|
{
|
|
1339
1534
|
ref,
|
|
@@ -1345,8 +1540,8 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1345
1540
|
position,
|
|
1346
1541
|
...props,
|
|
1347
1542
|
children: [
|
|
1348
|
-
/* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ jsx24(SelectScrollUpButton, {}),
|
|
1544
|
+
/* @__PURE__ */ jsx24(
|
|
1350
1545
|
SelectPrimitive.Viewport,
|
|
1351
1546
|
{
|
|
1352
1547
|
className: cn(
|
|
@@ -1356,12 +1551,12 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1356
1551
|
children
|
|
1357
1552
|
}
|
|
1358
1553
|
),
|
|
1359
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ jsx24(SelectScrollDownButton, {})
|
|
1360
1555
|
]
|
|
1361
1556
|
}
|
|
1362
1557
|
) }));
|
|
1363
1558
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1364
|
-
var SelectLabel =
|
|
1559
|
+
var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1365
1560
|
SelectPrimitive.Label,
|
|
1366
1561
|
{
|
|
1367
1562
|
ref,
|
|
@@ -1370,7 +1565,7 @@ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1370
1565
|
}
|
|
1371
1566
|
));
|
|
1372
1567
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1373
|
-
var SelectItem =
|
|
1568
|
+
var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
1374
1569
|
SelectPrimitive.Item,
|
|
1375
1570
|
{
|
|
1376
1571
|
ref,
|
|
@@ -1380,13 +1575,13 @@ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1380
1575
|
),
|
|
1381
1576
|
...props,
|
|
1382
1577
|
children: [
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1578
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Check4, { className: "h-4 w-4" }) }) }),
|
|
1579
|
+
/* @__PURE__ */ jsx24(SelectPrimitive.ItemText, { children })
|
|
1385
1580
|
]
|
|
1386
1581
|
}
|
|
1387
1582
|
));
|
|
1388
1583
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1389
|
-
var SelectSeparator =
|
|
1584
|
+
var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1390
1585
|
SelectPrimitive.Separator,
|
|
1391
1586
|
{
|
|
1392
1587
|
ref,
|
|
@@ -1397,7 +1592,7 @@ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1397
1592
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1398
1593
|
|
|
1399
1594
|
// src/components/select/Select.tsx
|
|
1400
|
-
import { jsx as
|
|
1595
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1401
1596
|
var selectVariants = cva10(
|
|
1402
1597
|
"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",
|
|
1403
1598
|
{
|
|
@@ -1420,7 +1615,7 @@ var selectVariants = cva10(
|
|
|
1420
1615
|
}
|
|
1421
1616
|
}
|
|
1422
1617
|
);
|
|
1423
|
-
var Select2 =
|
|
1618
|
+
var Select2 = React23.forwardRef(
|
|
1424
1619
|
({
|
|
1425
1620
|
className,
|
|
1426
1621
|
variant,
|
|
@@ -1438,12 +1633,12 @@ var Select2 = React21.forwardRef(
|
|
|
1438
1633
|
name,
|
|
1439
1634
|
required
|
|
1440
1635
|
}, ref) => {
|
|
1441
|
-
const generatedId =
|
|
1636
|
+
const generatedId = React23.useId();
|
|
1442
1637
|
const selectId = id || generatedId;
|
|
1443
1638
|
const errorId = `${selectId}-error`;
|
|
1444
1639
|
const descriptionId = `${selectId}-description`;
|
|
1445
|
-
return /* @__PURE__ */
|
|
1446
|
-
label && /* @__PURE__ */
|
|
1640
|
+
return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2", children: [
|
|
1641
|
+
label && /* @__PURE__ */ jsx25(
|
|
1447
1642
|
"label",
|
|
1448
1643
|
{
|
|
1449
1644
|
htmlFor: selectId,
|
|
@@ -1455,7 +1650,7 @@ var Select2 = React21.forwardRef(
|
|
|
1455
1650
|
children: label
|
|
1456
1651
|
}
|
|
1457
1652
|
),
|
|
1458
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsxs10(
|
|
1459
1654
|
Select,
|
|
1460
1655
|
{
|
|
1461
1656
|
value,
|
|
@@ -1465,7 +1660,7 @@ var Select2 = React21.forwardRef(
|
|
|
1465
1660
|
name,
|
|
1466
1661
|
required,
|
|
1467
1662
|
children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1663
|
+
/* @__PURE__ */ jsx25(
|
|
1469
1664
|
SelectTrigger,
|
|
1470
1665
|
{
|
|
1471
1666
|
ref,
|
|
@@ -1477,33 +1672,33 @@ var Select2 = React21.forwardRef(
|
|
|
1477
1672
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1478
1673
|
className
|
|
1479
1674
|
),
|
|
1480
|
-
children: /* @__PURE__ */
|
|
1675
|
+
children: /* @__PURE__ */ jsx25(SelectValue, { placeholder })
|
|
1481
1676
|
}
|
|
1482
1677
|
),
|
|
1483
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ jsx25(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx25(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1484
1679
|
]
|
|
1485
1680
|
}
|
|
1486
1681
|
),
|
|
1487
|
-
description && /* @__PURE__ */
|
|
1488
|
-
error && /* @__PURE__ */
|
|
1682
|
+
description && /* @__PURE__ */ jsx25(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1683
|
+
error && /* @__PURE__ */ jsx25(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1489
1684
|
] });
|
|
1490
1685
|
}
|
|
1491
1686
|
);
|
|
1492
1687
|
Select2.displayName = "Select";
|
|
1493
1688
|
|
|
1494
1689
|
// src/components/country-select/CountrySelect.tsx
|
|
1495
|
-
import * as
|
|
1690
|
+
import * as React28 from "react";
|
|
1496
1691
|
import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
|
|
1497
1692
|
|
|
1498
1693
|
// src/components/icon/Icon.tsx
|
|
1499
|
-
import * as
|
|
1500
|
-
import { jsx as
|
|
1694
|
+
import * as React24 from "react";
|
|
1695
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1501
1696
|
var iconStrokeMap = {
|
|
1502
1697
|
16: 1.4,
|
|
1503
1698
|
24: 1.6,
|
|
1504
1699
|
32: 1.8
|
|
1505
1700
|
};
|
|
1506
|
-
var Icon2 =
|
|
1701
|
+
var Icon2 = React24.forwardRef(
|
|
1507
1702
|
({
|
|
1508
1703
|
icon: IconComponent,
|
|
1509
1704
|
size,
|
|
@@ -1515,7 +1710,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1515
1710
|
const strokeWidth = iconStrokeMap[size];
|
|
1516
1711
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1517
1712
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1518
|
-
return /* @__PURE__ */
|
|
1713
|
+
return /* @__PURE__ */ jsx26(
|
|
1519
1714
|
IconComponent,
|
|
1520
1715
|
{
|
|
1521
1716
|
ref,
|
|
@@ -1530,12 +1725,12 @@ var Icon2 = React22.forwardRef(
|
|
|
1530
1725
|
Icon2.displayName = "Icon";
|
|
1531
1726
|
|
|
1532
1727
|
// src/primitives/popover.tsx
|
|
1533
|
-
import * as
|
|
1728
|
+
import * as React25 from "react";
|
|
1534
1729
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1535
|
-
import { jsx as
|
|
1730
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1536
1731
|
var Popover = PopoverPrimitive.Root;
|
|
1537
1732
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1538
|
-
var PopoverContent =
|
|
1733
|
+
var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
|
|
1539
1734
|
PopoverPrimitive.Content,
|
|
1540
1735
|
{
|
|
1541
1736
|
ref,
|
|
@@ -1551,17 +1746,17 @@ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffs
|
|
|
1551
1746
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1552
1747
|
|
|
1553
1748
|
// src/primitives/command.tsx
|
|
1554
|
-
import * as
|
|
1749
|
+
import * as React27 from "react";
|
|
1555
1750
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1556
1751
|
import { Search } from "lucide-react";
|
|
1557
1752
|
|
|
1558
1753
|
// src/primitives/dialog.tsx
|
|
1559
|
-
import * as
|
|
1754
|
+
import * as React26 from "react";
|
|
1560
1755
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1561
1756
|
import { X as X2 } from "lucide-react";
|
|
1562
|
-
import { jsx as
|
|
1757
|
+
import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1563
1758
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1564
|
-
var DialogOverlay2 =
|
|
1759
|
+
var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1565
1760
|
DialogPrimitive2.Overlay,
|
|
1566
1761
|
{
|
|
1567
1762
|
ref,
|
|
@@ -1573,9 +1768,9 @@ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1573
1768
|
}
|
|
1574
1769
|
));
|
|
1575
1770
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1576
|
-
var DialogContent2 =
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */
|
|
1771
|
+
var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(DialogPortal2, { children: [
|
|
1772
|
+
/* @__PURE__ */ jsx28(DialogOverlay2, {}),
|
|
1773
|
+
/* @__PURE__ */ jsxs11(
|
|
1579
1774
|
DialogPrimitive2.Content,
|
|
1580
1775
|
{
|
|
1581
1776
|
ref,
|
|
@@ -1586,18 +1781,18 @@ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1586
1781
|
...props,
|
|
1587
1782
|
children: [
|
|
1588
1783
|
children,
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
/* @__PURE__ */
|
|
1591
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ jsxs11(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: [
|
|
1785
|
+
/* @__PURE__ */ jsx28(X2, { className: "h-4 w-4" }),
|
|
1786
|
+
/* @__PURE__ */ jsx28("span", { className: "sr-only", children: "Close" })
|
|
1592
1787
|
] })
|
|
1593
1788
|
]
|
|
1594
1789
|
}
|
|
1595
1790
|
)
|
|
1596
1791
|
] }));
|
|
1597
1792
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1598
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1793
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx28("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1599
1794
|
DialogHeader2.displayName = "DialogHeader";
|
|
1600
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1795
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx28(
|
|
1601
1796
|
"div",
|
|
1602
1797
|
{
|
|
1603
1798
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1605,7 +1800,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx26(
|
|
|
1605
1800
|
}
|
|
1606
1801
|
);
|
|
1607
1802
|
DialogFooter2.displayName = "DialogFooter";
|
|
1608
|
-
var DialogTitle2 =
|
|
1803
|
+
var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1609
1804
|
DialogPrimitive2.Title,
|
|
1610
1805
|
{
|
|
1611
1806
|
ref,
|
|
@@ -1614,7 +1809,7 @@ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1614
1809
|
}
|
|
1615
1810
|
));
|
|
1616
1811
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1617
|
-
var DialogDescription2 =
|
|
1812
|
+
var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1618
1813
|
DialogPrimitive2.Description,
|
|
1619
1814
|
{
|
|
1620
1815
|
ref,
|
|
@@ -1625,8 +1820,8 @@ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1625
1820
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1626
1821
|
|
|
1627
1822
|
// src/primitives/command.tsx
|
|
1628
|
-
import { jsx as
|
|
1629
|
-
var Command =
|
|
1823
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1824
|
+
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1630
1825
|
CommandPrimitive,
|
|
1631
1826
|
{
|
|
1632
1827
|
ref,
|
|
@@ -1638,9 +1833,9 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1638
1833
|
}
|
|
1639
1834
|
));
|
|
1640
1835
|
Command.displayName = CommandPrimitive.displayName;
|
|
1641
|
-
var CommandInput =
|
|
1642
|
-
/* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1836
|
+
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs12("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1837
|
+
/* @__PURE__ */ jsx29(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1838
|
+
/* @__PURE__ */ jsx29(
|
|
1644
1839
|
CommandPrimitive.Input,
|
|
1645
1840
|
{
|
|
1646
1841
|
ref,
|
|
@@ -1653,7 +1848,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1653
1848
|
)
|
|
1654
1849
|
] }));
|
|
1655
1850
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1656
|
-
var CommandList =
|
|
1851
|
+
var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1657
1852
|
CommandPrimitive.List,
|
|
1658
1853
|
{
|
|
1659
1854
|
ref,
|
|
@@ -1662,9 +1857,9 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1662
1857
|
}
|
|
1663
1858
|
));
|
|
1664
1859
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1665
|
-
var CommandEmpty =
|
|
1860
|
+
var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ jsx29(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1666
1861
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1667
|
-
var CommandGroup =
|
|
1862
|
+
var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1668
1863
|
CommandPrimitive.Group,
|
|
1669
1864
|
{
|
|
1670
1865
|
ref,
|
|
@@ -1676,7 +1871,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1676
1871
|
}
|
|
1677
1872
|
));
|
|
1678
1873
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1679
|
-
var CommandSeparator =
|
|
1874
|
+
var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1680
1875
|
CommandPrimitive.Separator,
|
|
1681
1876
|
{
|
|
1682
1877
|
ref,
|
|
@@ -1685,7 +1880,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1685
1880
|
}
|
|
1686
1881
|
));
|
|
1687
1882
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1688
|
-
var CommandItem =
|
|
1883
|
+
var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1689
1884
|
CommandPrimitive.Item,
|
|
1690
1885
|
{
|
|
1691
1886
|
ref,
|
|
@@ -1698,7 +1893,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1698
1893
|
));
|
|
1699
1894
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1700
1895
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1701
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ jsx29(
|
|
1702
1897
|
"span",
|
|
1703
1898
|
{
|
|
1704
1899
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1849,8 +2044,8 @@ var isEUCountry = (countryCode) => {
|
|
|
1849
2044
|
};
|
|
1850
2045
|
|
|
1851
2046
|
// src/components/country-select/CountrySelect.tsx
|
|
1852
|
-
import { Fragment, jsx as
|
|
1853
|
-
var CountrySelect =
|
|
2047
|
+
import { Fragment, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2048
|
+
var CountrySelect = React28.forwardRef(
|
|
1854
2049
|
({
|
|
1855
2050
|
value,
|
|
1856
2051
|
onValueChange,
|
|
@@ -1860,10 +2055,10 @@ var CountrySelect = React26.forwardRef(
|
|
|
1860
2055
|
align = "center",
|
|
1861
2056
|
sideOffset = 4
|
|
1862
2057
|
}, ref) => {
|
|
1863
|
-
const [open, setOpen] =
|
|
1864
|
-
const selectedCountry =
|
|
1865
|
-
return /* @__PURE__ */
|
|
1866
|
-
/* @__PURE__ */
|
|
2058
|
+
const [open, setOpen] = React28.useState(false);
|
|
2059
|
+
const selectedCountry = React28.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2060
|
+
return /* @__PURE__ */ jsxs13(Popover, { open, onOpenChange: setOpen, children: [
|
|
2061
|
+
/* @__PURE__ */ jsx30(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs13(
|
|
1867
2062
|
"button",
|
|
1868
2063
|
{
|
|
1869
2064
|
ref,
|
|
@@ -1884,16 +2079,16 @@ var CountrySelect = React26.forwardRef(
|
|
|
1884
2079
|
className
|
|
1885
2080
|
),
|
|
1886
2081
|
children: [
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ jsx30("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs13(Fragment, { children: [
|
|
2083
|
+
/* @__PURE__ */ jsx30("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2084
|
+
/* @__PURE__ */ jsx30("span", { className: "truncate", children: selectedCountry.name }),
|
|
2085
|
+
/* @__PURE__ */ jsxs13("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
1891
2086
|
"(",
|
|
1892
2087
|
selectedCountry.code,
|
|
1893
2088
|
")"
|
|
1894
2089
|
] })
|
|
1895
|
-
] }) : /* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
2090
|
+
] }) : /* @__PURE__ */ jsxs13(Fragment, { children: [
|
|
2091
|
+
/* @__PURE__ */ jsx30(
|
|
1897
2092
|
Icon2,
|
|
1898
2093
|
{
|
|
1899
2094
|
icon: Globe,
|
|
@@ -1901,9 +2096,9 @@ var CountrySelect = React26.forwardRef(
|
|
|
1901
2096
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
1902
2097
|
}
|
|
1903
2098
|
),
|
|
1904
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ jsx30("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
1905
2100
|
] }) }),
|
|
1906
|
-
/* @__PURE__ */
|
|
2101
|
+
/* @__PURE__ */ jsx30(
|
|
1907
2102
|
Icon2,
|
|
1908
2103
|
{
|
|
1909
2104
|
icon: ChevronDown2,
|
|
@@ -1918,17 +2113,17 @@ var CountrySelect = React26.forwardRef(
|
|
|
1918
2113
|
]
|
|
1919
2114
|
}
|
|
1920
2115
|
) }),
|
|
1921
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx30(
|
|
1922
2117
|
PopoverContent,
|
|
1923
2118
|
{
|
|
1924
2119
|
align,
|
|
1925
2120
|
sideOffset,
|
|
1926
2121
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
1927
|
-
children: /* @__PURE__ */
|
|
1928
|
-
/* @__PURE__ */
|
|
1929
|
-
/* @__PURE__ */
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
2122
|
+
children: /* @__PURE__ */ jsxs13(Command, { children: [
|
|
2123
|
+
/* @__PURE__ */ jsx30(CommandInput, { placeholder: "Search country..." }),
|
|
2124
|
+
/* @__PURE__ */ jsxs13(CommandList, { children: [
|
|
2125
|
+
/* @__PURE__ */ jsx30(CommandEmpty, { children: "No countries found." }),
|
|
2126
|
+
/* @__PURE__ */ jsx30(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs13(
|
|
1932
2127
|
CommandItem,
|
|
1933
2128
|
{
|
|
1934
2129
|
value: `${country.name} ${country.code}`,
|
|
@@ -1942,12 +2137,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
1942
2137
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
1943
2138
|
),
|
|
1944
2139
|
children: [
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ jsx30("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2141
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex-1 min-w-0", children: [
|
|
2142
|
+
/* @__PURE__ */ jsx30("div", { className: "text-sm truncate", children: country.name }),
|
|
2143
|
+
/* @__PURE__ */ jsx30("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
1949
2144
|
] }),
|
|
1950
|
-
value === country.code && /* @__PURE__ */
|
|
2145
|
+
value === country.code && /* @__PURE__ */ jsx30("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
1951
2146
|
]
|
|
1952
2147
|
},
|
|
1953
2148
|
country.code
|
|
@@ -1962,15 +2157,15 @@ var CountrySelect = React26.forwardRef(
|
|
|
1962
2157
|
CountrySelect.displayName = "CountrySelect";
|
|
1963
2158
|
|
|
1964
2159
|
// src/components/text-area/TextArea.tsx
|
|
1965
|
-
import * as
|
|
2160
|
+
import * as React30 from "react";
|
|
1966
2161
|
import { cva as cva11 } from "class-variance-authority";
|
|
1967
2162
|
|
|
1968
2163
|
// src/primitives/textarea.tsx
|
|
1969
|
-
import * as
|
|
1970
|
-
import { jsx as
|
|
1971
|
-
var Textarea =
|
|
2164
|
+
import * as React29 from "react";
|
|
2165
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2166
|
+
var Textarea = React29.forwardRef(
|
|
1972
2167
|
({ className, ...props }, ref) => {
|
|
1973
|
-
return /* @__PURE__ */
|
|
2168
|
+
return /* @__PURE__ */ jsx31(
|
|
1974
2169
|
"textarea",
|
|
1975
2170
|
{
|
|
1976
2171
|
className: cn(
|
|
@@ -1986,7 +2181,7 @@ var Textarea = React27.forwardRef(
|
|
|
1986
2181
|
Textarea.displayName = "Textarea";
|
|
1987
2182
|
|
|
1988
2183
|
// src/components/text-area/TextArea.tsx
|
|
1989
|
-
import { jsx as
|
|
2184
|
+
import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1990
2185
|
var textAreaVariants = cva11(
|
|
1991
2186
|
"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",
|
|
1992
2187
|
{
|
|
@@ -2009,7 +2204,7 @@ var textAreaVariants = cva11(
|
|
|
2009
2204
|
}
|
|
2010
2205
|
}
|
|
2011
2206
|
);
|
|
2012
|
-
var TextArea =
|
|
2207
|
+
var TextArea = React30.forwardRef(
|
|
2013
2208
|
({
|
|
2014
2209
|
className,
|
|
2015
2210
|
variant,
|
|
@@ -2029,13 +2224,13 @@ var TextArea = React28.forwardRef(
|
|
|
2029
2224
|
actionButton,
|
|
2030
2225
|
...props
|
|
2031
2226
|
}, ref) => {
|
|
2032
|
-
const generatedId =
|
|
2227
|
+
const generatedId = React30.useId();
|
|
2033
2228
|
const textareaId = id || generatedId;
|
|
2034
2229
|
const errorId = `${textareaId}-error`;
|
|
2035
2230
|
const descriptionId = `${textareaId}-description`;
|
|
2036
2231
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2037
|
-
return /* @__PURE__ */
|
|
2038
|
-
label && /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
|
|
2233
|
+
label && /* @__PURE__ */ jsx32(
|
|
2039
2234
|
"label",
|
|
2040
2235
|
{
|
|
2041
2236
|
htmlFor: textareaId,
|
|
@@ -2047,9 +2242,9 @@ var TextArea = React28.forwardRef(
|
|
|
2047
2242
|
children: label
|
|
2048
2243
|
}
|
|
2049
2244
|
),
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
icon && /* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsxs14("div", { className: "relative", children: [
|
|
2246
|
+
icon && /* @__PURE__ */ jsx32("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2247
|
+
/* @__PURE__ */ jsx32(
|
|
2053
2248
|
Textarea,
|
|
2054
2249
|
{
|
|
2055
2250
|
ref,
|
|
@@ -2074,13 +2269,13 @@ var TextArea = React28.forwardRef(
|
|
|
2074
2269
|
...props
|
|
2075
2270
|
}
|
|
2076
2271
|
),
|
|
2077
|
-
secondaryIcon && /* @__PURE__ */
|
|
2078
|
-
actionButton && /* @__PURE__ */
|
|
2272
|
+
secondaryIcon && /* @__PURE__ */ jsx32("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2273
|
+
actionButton && /* @__PURE__ */ jsx32("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2079
2274
|
] }),
|
|
2080
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */
|
|
2081
|
-
description && /* @__PURE__ */
|
|
2082
|
-
(error || showCount && maxLength) && /* @__PURE__ */
|
|
2083
|
-
showCount && maxLength && /* @__PURE__ */
|
|
2275
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2276
|
+
description && /* @__PURE__ */ jsx32(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2277
|
+
(error || showCount && maxLength) && /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2278
|
+
showCount && maxLength && /* @__PURE__ */ jsxs14(
|
|
2084
2279
|
Typography,
|
|
2085
2280
|
{
|
|
2086
2281
|
variant: "xs",
|
|
@@ -2094,7 +2289,7 @@ var TextArea = React28.forwardRef(
|
|
|
2094
2289
|
]
|
|
2095
2290
|
}
|
|
2096
2291
|
),
|
|
2097
|
-
error && /* @__PURE__ */
|
|
2292
|
+
error && /* @__PURE__ */ jsx32(
|
|
2098
2293
|
Typography,
|
|
2099
2294
|
{
|
|
2100
2295
|
variant: "xs",
|
|
@@ -2111,22 +2306,22 @@ var TextArea = React28.forwardRef(
|
|
|
2111
2306
|
TextArea.displayName = "TextArea";
|
|
2112
2307
|
|
|
2113
2308
|
// src/primitives/label.tsx
|
|
2114
|
-
import * as
|
|
2309
|
+
import * as React31 from "react";
|
|
2115
2310
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2116
2311
|
import { cva as cva12 } from "class-variance-authority";
|
|
2117
|
-
import { jsx as
|
|
2312
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2118
2313
|
var labelVariants = cva12(
|
|
2119
2314
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2120
2315
|
);
|
|
2121
|
-
var
|
|
2122
|
-
|
|
2316
|
+
var Label3 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2317
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2123
2318
|
|
|
2124
2319
|
// src/primitives/field.tsx
|
|
2125
2320
|
import { useMemo as useMemo3 } from "react";
|
|
2126
2321
|
import { cva as cva13 } from "class-variance-authority";
|
|
2127
|
-
import { jsx as
|
|
2322
|
+
import { jsx as jsx34, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2128
2323
|
function FieldSet({ className, ...props }) {
|
|
2129
|
-
return /* @__PURE__ */
|
|
2324
|
+
return /* @__PURE__ */ jsx34(
|
|
2130
2325
|
"fieldset",
|
|
2131
2326
|
{
|
|
2132
2327
|
"data-slot": "field-set",
|
|
@@ -2144,7 +2339,7 @@ function FieldLegend({
|
|
|
2144
2339
|
variant = "legend",
|
|
2145
2340
|
...props
|
|
2146
2341
|
}) {
|
|
2147
|
-
return /* @__PURE__ */
|
|
2342
|
+
return /* @__PURE__ */ jsx34(
|
|
2148
2343
|
"legend",
|
|
2149
2344
|
{
|
|
2150
2345
|
"data-slot": "field-legend",
|
|
@@ -2160,7 +2355,7 @@ function FieldLegend({
|
|
|
2160
2355
|
);
|
|
2161
2356
|
}
|
|
2162
2357
|
function FieldGroup({ className, ...props }) {
|
|
2163
|
-
return /* @__PURE__ */
|
|
2358
|
+
return /* @__PURE__ */ jsx34(
|
|
2164
2359
|
"div",
|
|
2165
2360
|
{
|
|
2166
2361
|
"data-slot": "field-group",
|
|
@@ -2200,7 +2395,7 @@ function Field({
|
|
|
2200
2395
|
orientation = "vertical",
|
|
2201
2396
|
...props
|
|
2202
2397
|
}) {
|
|
2203
|
-
return /* @__PURE__ */
|
|
2398
|
+
return /* @__PURE__ */ jsx34(
|
|
2204
2399
|
"div",
|
|
2205
2400
|
{
|
|
2206
2401
|
role: "group",
|
|
@@ -2212,7 +2407,7 @@ function Field({
|
|
|
2212
2407
|
);
|
|
2213
2408
|
}
|
|
2214
2409
|
function FieldContent({ className, ...props }) {
|
|
2215
|
-
return /* @__PURE__ */
|
|
2410
|
+
return /* @__PURE__ */ jsx34(
|
|
2216
2411
|
"div",
|
|
2217
2412
|
{
|
|
2218
2413
|
"data-slot": "field-content",
|
|
@@ -2222,8 +2417,8 @@ function FieldContent({ className, ...props }) {
|
|
|
2222
2417
|
);
|
|
2223
2418
|
}
|
|
2224
2419
|
function FieldLabel({ className, ...props }) {
|
|
2225
|
-
return /* @__PURE__ */
|
|
2226
|
-
|
|
2420
|
+
return /* @__PURE__ */ jsx34(
|
|
2421
|
+
Label3,
|
|
2227
2422
|
{
|
|
2228
2423
|
"data-slot": "field-label",
|
|
2229
2424
|
className: cn(
|
|
@@ -2237,7 +2432,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2237
2432
|
);
|
|
2238
2433
|
}
|
|
2239
2434
|
function FieldTitle({ className, ...props }) {
|
|
2240
|
-
return /* @__PURE__ */
|
|
2435
|
+
return /* @__PURE__ */ jsx34(
|
|
2241
2436
|
"div",
|
|
2242
2437
|
{
|
|
2243
2438
|
"data-slot": "field-label",
|
|
@@ -2250,7 +2445,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2250
2445
|
);
|
|
2251
2446
|
}
|
|
2252
2447
|
function FieldDescription({ className, ...props }) {
|
|
2253
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ jsx34(
|
|
2254
2449
|
"p",
|
|
2255
2450
|
{
|
|
2256
2451
|
"data-slot": "field-description",
|
|
@@ -2269,7 +2464,7 @@ function FieldSeparator({
|
|
|
2269
2464
|
className,
|
|
2270
2465
|
...props
|
|
2271
2466
|
}) {
|
|
2272
|
-
return /* @__PURE__ */
|
|
2467
|
+
return /* @__PURE__ */ jsxs15(
|
|
2273
2468
|
"div",
|
|
2274
2469
|
{
|
|
2275
2470
|
"data-slot": "field-separator",
|
|
@@ -2280,8 +2475,8 @@ function FieldSeparator({
|
|
|
2280
2475
|
),
|
|
2281
2476
|
...props,
|
|
2282
2477
|
children: [
|
|
2283
|
-
/* @__PURE__ */
|
|
2284
|
-
children && /* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ jsx34(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2479
|
+
children && /* @__PURE__ */ jsx34(
|
|
2285
2480
|
"span",
|
|
2286
2481
|
{
|
|
2287
2482
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2309,12 +2504,12 @@ function FieldError({
|
|
|
2309
2504
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2310
2505
|
return errors[0].message;
|
|
2311
2506
|
}
|
|
2312
|
-
return /* @__PURE__ */
|
|
2507
|
+
return /* @__PURE__ */ jsx34("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx34("li", { children: error.message }, index)) });
|
|
2313
2508
|
}, [children, errors]);
|
|
2314
2509
|
if (!content) {
|
|
2315
2510
|
return null;
|
|
2316
2511
|
}
|
|
2317
|
-
return /* @__PURE__ */
|
|
2512
|
+
return /* @__PURE__ */ jsx34(
|
|
2318
2513
|
"div",
|
|
2319
2514
|
{
|
|
2320
2515
|
role: "alert",
|
|
@@ -2327,10 +2522,10 @@ function FieldError({
|
|
|
2327
2522
|
}
|
|
2328
2523
|
|
|
2329
2524
|
// src/components/link/Link.tsx
|
|
2330
|
-
import * as
|
|
2525
|
+
import * as React32 from "react";
|
|
2331
2526
|
import { cva as cva14 } from "class-variance-authority";
|
|
2332
2527
|
import { ExternalLink } from "lucide-react";
|
|
2333
|
-
import { jsx as
|
|
2528
|
+
import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2334
2529
|
var linkVariants = cva14(
|
|
2335
2530
|
"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",
|
|
2336
2531
|
{
|
|
@@ -2355,7 +2550,7 @@ var linkVariants = cva14(
|
|
|
2355
2550
|
}
|
|
2356
2551
|
}
|
|
2357
2552
|
);
|
|
2358
|
-
var Link =
|
|
2553
|
+
var Link = React32.forwardRef(
|
|
2359
2554
|
({
|
|
2360
2555
|
className,
|
|
2361
2556
|
variant,
|
|
@@ -2368,7 +2563,7 @@ var Link = React30.forwardRef(
|
|
|
2368
2563
|
...props
|
|
2369
2564
|
}, ref) => {
|
|
2370
2565
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2371
|
-
return /* @__PURE__ */
|
|
2566
|
+
return /* @__PURE__ */ jsxs16(
|
|
2372
2567
|
"a",
|
|
2373
2568
|
{
|
|
2374
2569
|
ref,
|
|
@@ -2384,8 +2579,8 @@ var Link = React30.forwardRef(
|
|
|
2384
2579
|
},
|
|
2385
2580
|
children: [
|
|
2386
2581
|
children,
|
|
2387
|
-
icon && /* @__PURE__ */
|
|
2388
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
2582
|
+
icon && /* @__PURE__ */ jsx35("span", { className: "inline-flex items-center", children: icon }),
|
|
2583
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx35("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx35(Icon2, { icon: ExternalLink, size: 16 }) })
|
|
2389
2584
|
]
|
|
2390
2585
|
}
|
|
2391
2586
|
);
|
|
@@ -2394,10 +2589,10 @@ var Link = React30.forwardRef(
|
|
|
2394
2589
|
Link.displayName = "Link";
|
|
2395
2590
|
|
|
2396
2591
|
// src/components/container/Container.tsx
|
|
2397
|
-
import * as
|
|
2592
|
+
import * as React33 from "react";
|
|
2398
2593
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2399
2594
|
import { cva as cva15 } from "class-variance-authority";
|
|
2400
|
-
import { jsx as
|
|
2595
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2401
2596
|
var containerVariants = cva15("w-full mx-auto", {
|
|
2402
2597
|
variants: {
|
|
2403
2598
|
size: {
|
|
@@ -2419,10 +2614,10 @@ var containerVariants = cva15("w-full mx-auto", {
|
|
|
2419
2614
|
padding: "md"
|
|
2420
2615
|
}
|
|
2421
2616
|
});
|
|
2422
|
-
var Container =
|
|
2617
|
+
var Container = React33.forwardRef(
|
|
2423
2618
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2424
2619
|
const Component = asChild ? Slot3 : "div";
|
|
2425
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ jsx36(
|
|
2426
2621
|
Component,
|
|
2427
2622
|
{
|
|
2428
2623
|
ref,
|
|
@@ -2436,10 +2631,10 @@ var Container = React31.forwardRef(
|
|
|
2436
2631
|
Container.displayName = "Container";
|
|
2437
2632
|
|
|
2438
2633
|
// src/components/grid/Grid.tsx
|
|
2439
|
-
import * as
|
|
2634
|
+
import * as React34 from "react";
|
|
2440
2635
|
import { cva as cva16 } from "class-variance-authority";
|
|
2441
2636
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2442
|
-
import { jsx as
|
|
2637
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2443
2638
|
var gridVariants = cva16("grid", {
|
|
2444
2639
|
variants: {
|
|
2445
2640
|
align: {
|
|
@@ -2462,10 +2657,10 @@ var gridVariants = cva16("grid", {
|
|
|
2462
2657
|
justify: "start"
|
|
2463
2658
|
}
|
|
2464
2659
|
});
|
|
2465
|
-
var Grid =
|
|
2660
|
+
var Grid = React34.forwardRef(
|
|
2466
2661
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2467
2662
|
const Component = asChild ? Slot4 : "div";
|
|
2468
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ jsx37(
|
|
2469
2664
|
Component,
|
|
2470
2665
|
{
|
|
2471
2666
|
ref,
|
|
@@ -2487,10 +2682,10 @@ var Grid = React32.forwardRef(
|
|
|
2487
2682
|
Grid.displayName = "Grid";
|
|
2488
2683
|
|
|
2489
2684
|
// src/components/box/Box.tsx
|
|
2490
|
-
import * as
|
|
2685
|
+
import * as React35 from "react";
|
|
2491
2686
|
import { cva as cva17 } from "class-variance-authority";
|
|
2492
2687
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
2493
|
-
import { jsx as
|
|
2688
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2494
2689
|
var boxVariants = cva17("flex", {
|
|
2495
2690
|
variants: {
|
|
2496
2691
|
direction: {
|
|
@@ -2527,10 +2722,10 @@ var boxVariants = cva17("flex", {
|
|
|
2527
2722
|
wrap: "nowrap"
|
|
2528
2723
|
}
|
|
2529
2724
|
});
|
|
2530
|
-
var Box =
|
|
2725
|
+
var Box = React35.forwardRef(
|
|
2531
2726
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2532
2727
|
const Component = asChild ? Slot5 : "div";
|
|
2533
|
-
return /* @__PURE__ */
|
|
2728
|
+
return /* @__PURE__ */ jsx38(
|
|
2534
2729
|
Component,
|
|
2535
2730
|
{
|
|
2536
2731
|
ref,
|
|
@@ -2548,16 +2743,16 @@ var Box = React33.forwardRef(
|
|
|
2548
2743
|
Box.displayName = "Box";
|
|
2549
2744
|
|
|
2550
2745
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2551
|
-
import * as
|
|
2552
|
-
import { jsx as
|
|
2553
|
-
var BergetLogo =
|
|
2746
|
+
import * as React36 from "react";
|
|
2747
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2748
|
+
var BergetLogo = React36.forwardRef(
|
|
2554
2749
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2555
2750
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2556
2751
|
if (variant === "symbol") {
|
|
2557
2752
|
const aspectRatio2 = 463 / 419;
|
|
2558
2753
|
const width2 = size * aspectRatio2;
|
|
2559
2754
|
const height2 = size;
|
|
2560
|
-
return /* @__PURE__ */
|
|
2755
|
+
return /* @__PURE__ */ jsx39(
|
|
2561
2756
|
"svg",
|
|
2562
2757
|
{
|
|
2563
2758
|
ref,
|
|
@@ -2570,7 +2765,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2570
2765
|
"aria-label": "Berget symbol",
|
|
2571
2766
|
className: cn("inline-block", className),
|
|
2572
2767
|
...props,
|
|
2573
|
-
children: /* @__PURE__ */
|
|
2768
|
+
children: /* @__PURE__ */ jsx39(
|
|
2574
2769
|
"path",
|
|
2575
2770
|
{
|
|
2576
2771
|
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",
|
|
@@ -2583,7 +2778,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2583
2778
|
const aspectRatio = 793.63 / 204.37;
|
|
2584
2779
|
const width = size * aspectRatio;
|
|
2585
2780
|
const height = size;
|
|
2586
|
-
return /* @__PURE__ */
|
|
2781
|
+
return /* @__PURE__ */ jsxs17(
|
|
2587
2782
|
"svg",
|
|
2588
2783
|
{
|
|
2589
2784
|
ref,
|
|
@@ -2597,59 +2792,59 @@ var BergetLogo = React34.forwardRef(
|
|
|
2597
2792
|
className: cn("inline-block", className),
|
|
2598
2793
|
...props,
|
|
2599
2794
|
children: [
|
|
2600
|
-
/* @__PURE__ */
|
|
2601
|
-
/* @__PURE__ */
|
|
2795
|
+
/* @__PURE__ */ jsxs17("g", { style: { fill: fillColor }, children: [
|
|
2796
|
+
/* @__PURE__ */ jsx39(
|
|
2602
2797
|
"path",
|
|
2603
2798
|
{
|
|
2604
2799
|
className: "berget-logotype-fill",
|
|
2605
2800
|
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"
|
|
2606
2801
|
}
|
|
2607
2802
|
),
|
|
2608
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx39(
|
|
2609
2804
|
"path",
|
|
2610
2805
|
{
|
|
2611
2806
|
className: "berget-logotype-fill",
|
|
2612
2807
|
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"
|
|
2613
2808
|
}
|
|
2614
2809
|
),
|
|
2615
|
-
/* @__PURE__ */
|
|
2810
|
+
/* @__PURE__ */ jsx39(
|
|
2616
2811
|
"path",
|
|
2617
2812
|
{
|
|
2618
2813
|
className: "berget-logotype-fill",
|
|
2619
2814
|
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"
|
|
2620
2815
|
}
|
|
2621
2816
|
),
|
|
2622
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ jsx39(
|
|
2623
2818
|
"path",
|
|
2624
2819
|
{
|
|
2625
2820
|
className: "berget-logotype-fill",
|
|
2626
2821
|
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"
|
|
2627
2822
|
}
|
|
2628
2823
|
),
|
|
2629
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ jsx39(
|
|
2630
2825
|
"path",
|
|
2631
2826
|
{
|
|
2632
2827
|
className: "berget-logotype-fill",
|
|
2633
2828
|
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"
|
|
2634
2829
|
}
|
|
2635
2830
|
),
|
|
2636
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ jsx39(
|
|
2637
2832
|
"path",
|
|
2638
2833
|
{
|
|
2639
2834
|
className: "berget-logotype-fill",
|
|
2640
2835
|
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"
|
|
2641
2836
|
}
|
|
2642
2837
|
),
|
|
2643
|
-
/* @__PURE__ */
|
|
2838
|
+
/* @__PURE__ */ jsx39(
|
|
2644
2839
|
"path",
|
|
2645
2840
|
{
|
|
2646
2841
|
className: "berget-logotype-fill",
|
|
2647
2842
|
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"
|
|
2648
2843
|
}
|
|
2649
2844
|
),
|
|
2650
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ jsx39("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2651
2846
|
] }),
|
|
2652
|
-
/* @__PURE__ */
|
|
2847
|
+
/* @__PURE__ */ jsx39(
|
|
2653
2848
|
"path",
|
|
2654
2849
|
{
|
|
2655
2850
|
style: { fill: fillColor },
|
|
@@ -2664,13 +2859,13 @@ var BergetLogo = React34.forwardRef(
|
|
|
2664
2859
|
BergetLogo.displayName = "BergetLogo";
|
|
2665
2860
|
|
|
2666
2861
|
// src/components/language-select/LanguageSelect.tsx
|
|
2667
|
-
import * as
|
|
2862
|
+
import * as React37 from "react";
|
|
2668
2863
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
2669
2864
|
import { Globe as Globe2 } from "lucide-react";
|
|
2670
|
-
import { jsx as
|
|
2671
|
-
var LanguageSelect =
|
|
2672
|
-
return /* @__PURE__ */
|
|
2673
|
-
/* @__PURE__ */
|
|
2865
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2866
|
+
var LanguageSelect = React37.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
2867
|
+
return /* @__PURE__ */ jsxs18(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
2868
|
+
/* @__PURE__ */ jsxs18(
|
|
2674
2869
|
SelectPrimitive2.Trigger,
|
|
2675
2870
|
{
|
|
2676
2871
|
ref,
|
|
@@ -2693,12 +2888,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2693
2888
|
className
|
|
2694
2889
|
),
|
|
2695
2890
|
children: [
|
|
2696
|
-
/* @__PURE__ */
|
|
2697
|
-
/* @__PURE__ */
|
|
2891
|
+
/* @__PURE__ */ jsx40("span", { className: "sr-only", children: "Select language" }),
|
|
2892
|
+
/* @__PURE__ */ jsx40(Icon2, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
2698
2893
|
]
|
|
2699
2894
|
}
|
|
2700
2895
|
),
|
|
2701
|
-
/* @__PURE__ */
|
|
2896
|
+
/* @__PURE__ */ jsx40(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx40(
|
|
2702
2897
|
SelectPrimitive2.Content,
|
|
2703
2898
|
{
|
|
2704
2899
|
className: cn(
|
|
@@ -2726,7 +2921,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2726
2921
|
"origin-[--radix-select-content-transform-origin]"
|
|
2727
2922
|
),
|
|
2728
2923
|
position: "popper",
|
|
2729
|
-
children: /* @__PURE__ */
|
|
2924
|
+
children: /* @__PURE__ */ jsx40(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx40(
|
|
2730
2925
|
SelectPrimitive2.Item,
|
|
2731
2926
|
{
|
|
2732
2927
|
value: option.value,
|
|
@@ -2743,7 +2938,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2743
2938
|
// Disabled state
|
|
2744
2939
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2745
2940
|
),
|
|
2746
|
-
children: /* @__PURE__ */
|
|
2941
|
+
children: /* @__PURE__ */ jsx40(SelectPrimitive2.ItemText, { children: option.label })
|
|
2747
2942
|
},
|
|
2748
2943
|
option.value
|
|
2749
2944
|
)) })
|
|
@@ -2754,12 +2949,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2754
2949
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2755
2950
|
|
|
2756
2951
|
// src/components/list/List.tsx
|
|
2757
|
-
import * as
|
|
2952
|
+
import * as React39 from "react";
|
|
2758
2953
|
|
|
2759
2954
|
// src/components/divider/Divider.tsx
|
|
2760
|
-
import * as
|
|
2955
|
+
import * as React38 from "react";
|
|
2761
2956
|
import { cva as cva18 } from "class-variance-authority";
|
|
2762
|
-
import { jsx as
|
|
2957
|
+
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2763
2958
|
var dividerVariants = cva18("", {
|
|
2764
2959
|
variants: {
|
|
2765
2960
|
variant: {
|
|
@@ -2780,7 +2975,7 @@ var dividerVariants = cva18("", {
|
|
|
2780
2975
|
size: "thin"
|
|
2781
2976
|
}
|
|
2782
2977
|
});
|
|
2783
|
-
var Divider =
|
|
2978
|
+
var Divider = React38.forwardRef(
|
|
2784
2979
|
({
|
|
2785
2980
|
className,
|
|
2786
2981
|
orientation = "horizontal",
|
|
@@ -2791,17 +2986,17 @@ var Divider = React36.forwardRef(
|
|
|
2791
2986
|
...props
|
|
2792
2987
|
}, ref) => {
|
|
2793
2988
|
if (label) {
|
|
2794
|
-
return /* @__PURE__ */
|
|
2795
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
2796
|
-
|
|
2989
|
+
return /* @__PURE__ */ jsxs19("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
2990
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx41(
|
|
2991
|
+
Separator2,
|
|
2797
2992
|
{
|
|
2798
2993
|
orientation: "horizontal",
|
|
2799
2994
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2800
2995
|
}
|
|
2801
2996
|
),
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
2804
|
-
|
|
2997
|
+
/* @__PURE__ */ jsx41(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
2998
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx41(
|
|
2999
|
+
Separator2,
|
|
2805
3000
|
{
|
|
2806
3001
|
orientation: "horizontal",
|
|
2807
3002
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
@@ -2809,8 +3004,8 @@ var Divider = React36.forwardRef(
|
|
|
2809
3004
|
)
|
|
2810
3005
|
] });
|
|
2811
3006
|
}
|
|
2812
|
-
return /* @__PURE__ */
|
|
2813
|
-
|
|
3007
|
+
return /* @__PURE__ */ jsx41(
|
|
3008
|
+
Separator2,
|
|
2814
3009
|
{
|
|
2815
3010
|
ref,
|
|
2816
3011
|
orientation,
|
|
@@ -2826,20 +3021,20 @@ var Divider = React36.forwardRef(
|
|
|
2826
3021
|
Divider.displayName = "Divider";
|
|
2827
3022
|
|
|
2828
3023
|
// src/components/list/List.tsx
|
|
2829
|
-
import { Check as
|
|
2830
|
-
import { jsx as
|
|
2831
|
-
var List =
|
|
3024
|
+
import { Check as Check5 } from "lucide-react";
|
|
3025
|
+
import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3026
|
+
var List = React39.forwardRef(
|
|
2832
3027
|
({ className, children, ...props }, ref) => {
|
|
2833
|
-
const childrenArray =
|
|
2834
|
-
return /* @__PURE__ */
|
|
3028
|
+
const childrenArray = React39.Children.toArray(children);
|
|
3029
|
+
return /* @__PURE__ */ jsx42("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs20(React39.Fragment, { children: [
|
|
2835
3030
|
child,
|
|
2836
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
3031
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx42(Divider, { variant: "subtle" })
|
|
2837
3032
|
] }, index)) });
|
|
2838
3033
|
}
|
|
2839
3034
|
);
|
|
2840
3035
|
List.displayName = "List";
|
|
2841
|
-
var ListItem =
|
|
2842
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */
|
|
3036
|
+
var ListItem = React39.forwardRef(
|
|
3037
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
2843
3038
|
"div",
|
|
2844
3039
|
{
|
|
2845
3040
|
ref,
|
|
@@ -2850,15 +3045,15 @@ var ListItem = React37.forwardRef(
|
|
|
2850
3045
|
),
|
|
2851
3046
|
...props,
|
|
2852
3047
|
children: [
|
|
2853
|
-
icon && /* @__PURE__ */
|
|
2854
|
-
/* @__PURE__ */
|
|
3048
|
+
icon && /* @__PURE__ */ jsx42("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3049
|
+
/* @__PURE__ */ jsx42("div", { className: "flex-1 min-w-0", children })
|
|
2855
3050
|
]
|
|
2856
3051
|
}
|
|
2857
3052
|
)
|
|
2858
3053
|
);
|
|
2859
3054
|
ListItem.displayName = "ListItem";
|
|
2860
|
-
var ListHeader =
|
|
2861
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
3055
|
+
var ListHeader = React39.forwardRef(
|
|
3056
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
2862
3057
|
"div",
|
|
2863
3058
|
{
|
|
2864
3059
|
ref,
|
|
@@ -2869,20 +3064,20 @@ var ListHeader = React37.forwardRef(
|
|
|
2869
3064
|
)
|
|
2870
3065
|
);
|
|
2871
3066
|
ListHeader.displayName = "ListHeader";
|
|
2872
|
-
var FeatureList =
|
|
3067
|
+
var FeatureList = React39.forwardRef(
|
|
2873
3068
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
2874
|
-
return /* @__PURE__ */
|
|
2875
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ jsx42("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs20("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3070
|
+
variant === "bullet" ? /* @__PURE__ */ jsx42("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx42("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx42(Icon2, { icon: Check5, size: 24, className: "text-berget-logo-light" }) }),
|
|
3071
|
+
/* @__PURE__ */ jsx42(Typography, { variant: "body", color: "muted", children: item })
|
|
2877
3072
|
] }, index)) });
|
|
2878
3073
|
}
|
|
2879
3074
|
);
|
|
2880
3075
|
FeatureList.displayName = "FeatureList";
|
|
2881
3076
|
|
|
2882
3077
|
// src/components/hero-block/HeroBlock.tsx
|
|
2883
|
-
import * as
|
|
3078
|
+
import * as React40 from "react";
|
|
2884
3079
|
import { cva as cva19 } from "class-variance-authority";
|
|
2885
|
-
import { jsx as
|
|
3080
|
+
import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2886
3081
|
var heroBlockVariants = cva19(
|
|
2887
3082
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
2888
3083
|
{
|
|
@@ -2903,7 +3098,7 @@ var heroBlockVariants = cva19(
|
|
|
2903
3098
|
}
|
|
2904
3099
|
}
|
|
2905
3100
|
);
|
|
2906
|
-
var HeroBlock =
|
|
3101
|
+
var HeroBlock = React40.forwardRef(
|
|
2907
3102
|
({
|
|
2908
3103
|
className,
|
|
2909
3104
|
variant,
|
|
@@ -2915,26 +3110,26 @@ var HeroBlock = React38.forwardRef(
|
|
|
2915
3110
|
actions,
|
|
2916
3111
|
...props
|
|
2917
3112
|
}, ref) => {
|
|
2918
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsx43(
|
|
2919
3114
|
"div",
|
|
2920
3115
|
{
|
|
2921
3116
|
ref,
|
|
2922
3117
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
2923
3118
|
...props,
|
|
2924
|
-
children: /* @__PURE__ */
|
|
2925
|
-
tagline && /* @__PURE__ */
|
|
3119
|
+
children: /* @__PURE__ */ jsx43("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs21("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3120
|
+
tagline && /* @__PURE__ */ jsx43(
|
|
2926
3121
|
Badge,
|
|
2927
3122
|
{
|
|
2928
3123
|
variant: "default",
|
|
2929
|
-
icon: TaglineIcon ? /* @__PURE__ */
|
|
3124
|
+
icon: TaglineIcon ? /* @__PURE__ */ jsx43(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
2930
3125
|
iconGap: 2,
|
|
2931
3126
|
className: "mb-fluid-md",
|
|
2932
3127
|
children: tagline
|
|
2933
3128
|
}
|
|
2934
3129
|
),
|
|
2935
|
-
/* @__PURE__ */
|
|
2936
|
-
/* @__PURE__ */
|
|
2937
|
-
actions && /* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ jsx43(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3131
|
+
/* @__PURE__ */ jsx43(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3132
|
+
actions && /* @__PURE__ */ jsx43("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
2938
3133
|
] }) })
|
|
2939
3134
|
}
|
|
2940
3135
|
);
|
|
@@ -2944,8 +3139,8 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
2944
3139
|
|
|
2945
3140
|
// src/components/code-block/CodeBlock.tsx
|
|
2946
3141
|
import { useState as useState3, useEffect as useEffect2, useCallback as useCallback3 } from "react";
|
|
2947
|
-
import { Copy, Check as
|
|
2948
|
-
import { jsx as
|
|
3142
|
+
import { Copy, Check as Check6 } from "lucide-react";
|
|
3143
|
+
import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2949
3144
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
2950
3145
|
const [html, setHtml] = useState3(null);
|
|
2951
3146
|
const [copied, setCopied] = useState3(false);
|
|
@@ -2961,16 +3156,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2961
3156
|
setCopied(true);
|
|
2962
3157
|
setTimeout(() => setCopied(false), 2e3);
|
|
2963
3158
|
}, [code]);
|
|
2964
|
-
const copyButton = /* @__PURE__ */
|
|
3159
|
+
const copyButton = /* @__PURE__ */ jsx44(
|
|
2965
3160
|
"button",
|
|
2966
3161
|
{
|
|
2967
3162
|
onClick: handleCopy,
|
|
2968
3163
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
2969
3164
|
"aria-label": "Copy code",
|
|
2970
|
-
children: copied ? /* @__PURE__ */
|
|
3165
|
+
children: copied ? /* @__PURE__ */ jsx44(Check6, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx44(Copy, { className: "w-3.5 h-3.5" })
|
|
2971
3166
|
}
|
|
2972
3167
|
);
|
|
2973
|
-
return /* @__PURE__ */
|
|
3168
|
+
return /* @__PURE__ */ jsxs22(
|
|
2974
3169
|
"div",
|
|
2975
3170
|
{
|
|
2976
3171
|
className: cn(
|
|
@@ -2978,25 +3173,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2978
3173
|
className
|
|
2979
3174
|
),
|
|
2980
3175
|
children: [
|
|
2981
|
-
title && /* @__PURE__ */
|
|
2982
|
-
/* @__PURE__ */
|
|
2983
|
-
html ? /* @__PURE__ */
|
|
3176
|
+
title && /* @__PURE__ */ jsx44("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__ */ jsx44("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3177
|
+
/* @__PURE__ */ jsx44("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3178
|
+
html ? /* @__PURE__ */ jsx44(
|
|
2984
3179
|
"div",
|
|
2985
3180
|
{
|
|
2986
3181
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
2987
3182
|
dangerouslySetInnerHTML: { __html: html }
|
|
2988
3183
|
}
|
|
2989
|
-
) : /* @__PURE__ */
|
|
3184
|
+
) : /* @__PURE__ */ jsx44("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx44("code", { children: code }) })
|
|
2990
3185
|
]
|
|
2991
3186
|
}
|
|
2992
3187
|
);
|
|
2993
3188
|
}
|
|
2994
3189
|
|
|
2995
3190
|
// src/components/window-frame/WindowFrame.tsx
|
|
2996
|
-
import * as
|
|
3191
|
+
import * as React41 from "react";
|
|
2997
3192
|
import { useState as useState4 } from "react";
|
|
2998
|
-
import { jsx as
|
|
2999
|
-
var WindowFrame =
|
|
3193
|
+
import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3194
|
+
var WindowFrame = React41.forwardRef(
|
|
3000
3195
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3001
3196
|
const [internalActive, setInternalActive] = useState4(tabs?.[0]?.id ?? "");
|
|
3002
3197
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3007,7 +3202,7 @@ var WindowFrame = React39.forwardRef(
|
|
|
3007
3202
|
setInternalActive(id);
|
|
3008
3203
|
}
|
|
3009
3204
|
};
|
|
3010
|
-
return /* @__PURE__ */
|
|
3205
|
+
return /* @__PURE__ */ jsxs23(
|
|
3011
3206
|
"div",
|
|
3012
3207
|
{
|
|
3013
3208
|
ref,
|
|
@@ -3017,13 +3212,13 @@ var WindowFrame = React39.forwardRef(
|
|
|
3017
3212
|
),
|
|
3018
3213
|
...props,
|
|
3019
3214
|
children: [
|
|
3020
|
-
/* @__PURE__ */
|
|
3021
|
-
/* @__PURE__ */
|
|
3022
|
-
/* @__PURE__ */
|
|
3023
|
-
/* @__PURE__ */
|
|
3024
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3216
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3217
|
+
/* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3218
|
+
/* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3219
|
+
/* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3025
3220
|
] }),
|
|
3026
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */
|
|
3221
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx45("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx45(
|
|
3027
3222
|
"button",
|
|
3028
3223
|
{
|
|
3029
3224
|
type: "button",
|
|
@@ -3035,9 +3230,9 @@ var WindowFrame = React39.forwardRef(
|
|
|
3035
3230
|
children: tab.label
|
|
3036
3231
|
},
|
|
3037
3232
|
tab.id
|
|
3038
|
-
)) }) : /* @__PURE__ */
|
|
3233
|
+
)) }) : /* @__PURE__ */ jsx45("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3039
3234
|
] }),
|
|
3040
|
-
/* @__PURE__ */
|
|
3235
|
+
/* @__PURE__ */ jsx45("div", { children })
|
|
3041
3236
|
]
|
|
3042
3237
|
}
|
|
3043
3238
|
);
|
|
@@ -3047,6 +3242,17 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3047
3242
|
export {
|
|
3048
3243
|
Alert2 as Alert,
|
|
3049
3244
|
AlertDescription,
|
|
3245
|
+
AlertDialog,
|
|
3246
|
+
AlertDialogAction,
|
|
3247
|
+
AlertDialogCancel,
|
|
3248
|
+
AlertDialogContent,
|
|
3249
|
+
AlertDialogDescription,
|
|
3250
|
+
AlertDialogFooter,
|
|
3251
|
+
AlertDialogHeader,
|
|
3252
|
+
AlertDialogOverlay,
|
|
3253
|
+
AlertDialogPortal,
|
|
3254
|
+
AlertDialogTitle,
|
|
3255
|
+
AlertDialogTrigger,
|
|
3050
3256
|
AlertTitle,
|
|
3051
3257
|
Badge,
|
|
3052
3258
|
BergetLogo,
|
|
@@ -3073,6 +3279,21 @@ export {
|
|
|
3073
3279
|
DialogPortal,
|
|
3074
3280
|
DialogTitle,
|
|
3075
3281
|
DialogTrigger,
|
|
3282
|
+
DropdownMenu,
|
|
3283
|
+
DropdownMenuCheckboxItem,
|
|
3284
|
+
DropdownMenuContent,
|
|
3285
|
+
DropdownMenuGroup,
|
|
3286
|
+
DropdownMenuItem,
|
|
3287
|
+
DropdownMenuLabel,
|
|
3288
|
+
DropdownMenuPortal,
|
|
3289
|
+
DropdownMenuRadioGroup,
|
|
3290
|
+
DropdownMenuRadioItem,
|
|
3291
|
+
DropdownMenuSeparator,
|
|
3292
|
+
DropdownMenuShortcut,
|
|
3293
|
+
DropdownMenuSub,
|
|
3294
|
+
DropdownMenuSubContent,
|
|
3295
|
+
DropdownMenuSubTrigger,
|
|
3296
|
+
DropdownMenuTrigger,
|
|
3076
3297
|
EU_COUNTRY_CODES,
|
|
3077
3298
|
FeatureList,
|
|
3078
3299
|
Field,
|
|
@@ -3089,7 +3310,7 @@ export {
|
|
|
3089
3310
|
HeroBlock,
|
|
3090
3311
|
Icon2 as Icon,
|
|
3091
3312
|
Input2 as Input,
|
|
3092
|
-
|
|
3313
|
+
Item3 as Item,
|
|
3093
3314
|
ItemActions,
|
|
3094
3315
|
ItemContent,
|
|
3095
3316
|
ItemDescription2 as ItemDescription,
|
|
@@ -3099,7 +3320,7 @@ export {
|
|
|
3099
3320
|
ItemMedia2 as ItemMedia,
|
|
3100
3321
|
ItemSeparator2 as ItemSeparator,
|
|
3101
3322
|
ItemTitle2 as ItemTitle,
|
|
3102
|
-
|
|
3323
|
+
Label3 as Label,
|
|
3103
3324
|
LanguageSelect,
|
|
3104
3325
|
Link,
|
|
3105
3326
|
List,
|