@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.cjs
CHANGED
|
@@ -32,6 +32,17 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
Alert: () => Alert2,
|
|
34
34
|
AlertDescription: () => AlertDescription,
|
|
35
|
+
AlertDialog: () => AlertDialog,
|
|
36
|
+
AlertDialogAction: () => AlertDialogAction,
|
|
37
|
+
AlertDialogCancel: () => AlertDialogCancel,
|
|
38
|
+
AlertDialogContent: () => AlertDialogContent,
|
|
39
|
+
AlertDialogDescription: () => AlertDialogDescription,
|
|
40
|
+
AlertDialogFooter: () => AlertDialogFooter,
|
|
41
|
+
AlertDialogHeader: () => AlertDialogHeader,
|
|
42
|
+
AlertDialogOverlay: () => AlertDialogOverlay,
|
|
43
|
+
AlertDialogPortal: () => AlertDialogPortal,
|
|
44
|
+
AlertDialogTitle: () => AlertDialogTitle,
|
|
45
|
+
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
35
46
|
AlertTitle: () => AlertTitle,
|
|
36
47
|
Badge: () => Badge,
|
|
37
48
|
BergetLogo: () => BergetLogo,
|
|
@@ -58,6 +69,21 @@ __export(index_exports, {
|
|
|
58
69
|
DialogPortal: () => DialogPortal,
|
|
59
70
|
DialogTitle: () => DialogTitle,
|
|
60
71
|
DialogTrigger: () => DialogTrigger,
|
|
72
|
+
DropdownMenu: () => DropdownMenu,
|
|
73
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
74
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
75
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
76
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
77
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
78
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
79
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
80
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
81
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
82
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
83
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
84
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
85
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
86
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
61
87
|
EU_COUNTRY_CODES: () => EU_COUNTRY_CODES,
|
|
62
88
|
FeatureList: () => FeatureList,
|
|
63
89
|
Field: () => Field,
|
|
@@ -74,7 +100,7 @@ __export(index_exports, {
|
|
|
74
100
|
HeroBlock: () => HeroBlock,
|
|
75
101
|
Icon: () => Icon2,
|
|
76
102
|
Input: () => Input2,
|
|
77
|
-
Item: () =>
|
|
103
|
+
Item: () => Item3,
|
|
78
104
|
ItemActions: () => ItemActions,
|
|
79
105
|
ItemContent: () => ItemContent,
|
|
80
106
|
ItemDescription: () => ItemDescription2,
|
|
@@ -84,7 +110,7 @@ __export(index_exports, {
|
|
|
84
110
|
ItemMedia: () => ItemMedia2,
|
|
85
111
|
ItemSeparator: () => ItemSeparator2,
|
|
86
112
|
ItemTitle: () => ItemTitle2,
|
|
87
|
-
Label: () =>
|
|
113
|
+
Label: () => Label3,
|
|
88
114
|
LanguageSelect: () => LanguageSelect,
|
|
89
115
|
Link: () => Link,
|
|
90
116
|
List: () => List,
|
|
@@ -710,21 +736,206 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
710
736
|
var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
711
737
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
712
738
|
|
|
713
|
-
// src/components/
|
|
739
|
+
// src/components/alert-dialog/AlertDialog.tsx
|
|
740
|
+
var React11 = __toESM(require("react"), 1);
|
|
741
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
742
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
743
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
744
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
745
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
746
|
+
var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
747
|
+
AlertDialogPrimitive.Overlay,
|
|
748
|
+
{
|
|
749
|
+
ref,
|
|
750
|
+
className: cn(
|
|
751
|
+
"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",
|
|
752
|
+
className
|
|
753
|
+
),
|
|
754
|
+
...props
|
|
755
|
+
}
|
|
756
|
+
));
|
|
757
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
758
|
+
var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogPortal, { children: [
|
|
759
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogOverlay, {}),
|
|
760
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
761
|
+
AlertDialogPrimitive.Content,
|
|
762
|
+
{
|
|
763
|
+
ref,
|
|
764
|
+
className: cn(
|
|
765
|
+
"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%]",
|
|
766
|
+
className
|
|
767
|
+
),
|
|
768
|
+
...props
|
|
769
|
+
}
|
|
770
|
+
)
|
|
771
|
+
] }));
|
|
772
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
773
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
774
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
775
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
776
|
+
"div",
|
|
777
|
+
{
|
|
778
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
779
|
+
...props
|
|
780
|
+
}
|
|
781
|
+
);
|
|
782
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
783
|
+
var AlertDialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
|
|
784
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
785
|
+
var AlertDialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
786
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
787
|
+
var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
|
|
788
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
789
|
+
var AlertDialogCancel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Cancel, { ref, className: cn("mt-2 sm:mt-0", className), ...props }));
|
|
790
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
791
|
+
|
|
792
|
+
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
714
793
|
var React12 = __toESM(require("react"), 1);
|
|
794
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
795
|
+
var import_lucide_react2 = require("lucide-react");
|
|
796
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
797
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
798
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
799
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
800
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
801
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
802
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
803
|
+
var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
804
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
805
|
+
{
|
|
806
|
+
ref,
|
|
807
|
+
className: cn(
|
|
808
|
+
"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",
|
|
809
|
+
inset && "pl-8",
|
|
810
|
+
className
|
|
811
|
+
),
|
|
812
|
+
...props,
|
|
813
|
+
children: [
|
|
814
|
+
children,
|
|
815
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.ChevronRight, { className: "ml-auto" })
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
));
|
|
819
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
820
|
+
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
821
|
+
DropdownMenuPrimitive.SubContent,
|
|
822
|
+
{
|
|
823
|
+
ref,
|
|
824
|
+
className: cn(
|
|
825
|
+
"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]",
|
|
826
|
+
className
|
|
827
|
+
),
|
|
828
|
+
...props
|
|
829
|
+
}
|
|
830
|
+
));
|
|
831
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
832
|
+
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
833
|
+
DropdownMenuPrimitive.Content,
|
|
834
|
+
{
|
|
835
|
+
ref,
|
|
836
|
+
sideOffset,
|
|
837
|
+
className: cn(
|
|
838
|
+
"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]",
|
|
839
|
+
className
|
|
840
|
+
),
|
|
841
|
+
...props
|
|
842
|
+
}
|
|
843
|
+
) }));
|
|
844
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
845
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
846
|
+
DropdownMenuPrimitive.Item,
|
|
847
|
+
{
|
|
848
|
+
ref,
|
|
849
|
+
className: cn(
|
|
850
|
+
"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",
|
|
851
|
+
inset && "pl-8",
|
|
852
|
+
className
|
|
853
|
+
),
|
|
854
|
+
...props
|
|
855
|
+
}
|
|
856
|
+
));
|
|
857
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
858
|
+
var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
859
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
860
|
+
{
|
|
861
|
+
ref,
|
|
862
|
+
className: cn(
|
|
863
|
+
"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",
|
|
864
|
+
className
|
|
865
|
+
),
|
|
866
|
+
checked,
|
|
867
|
+
...props,
|
|
868
|
+
children: [
|
|
869
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Check, { className: "size-4" }) }) }),
|
|
870
|
+
children
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
));
|
|
874
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
875
|
+
var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
876
|
+
DropdownMenuPrimitive.RadioItem,
|
|
877
|
+
{
|
|
878
|
+
ref,
|
|
879
|
+
className: cn(
|
|
880
|
+
"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",
|
|
881
|
+
className
|
|
882
|
+
),
|
|
883
|
+
...props,
|
|
884
|
+
children: [
|
|
885
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Circle, { className: "size-2 fill-current" }) }) }),
|
|
886
|
+
children
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
));
|
|
890
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
891
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
892
|
+
DropdownMenuPrimitive.Label,
|
|
893
|
+
{
|
|
894
|
+
ref,
|
|
895
|
+
className: cn(
|
|
896
|
+
"px-2 py-1.5 text-sm font-semibold text-berget-foreground",
|
|
897
|
+
inset && "pl-8",
|
|
898
|
+
className
|
|
899
|
+
),
|
|
900
|
+
...props
|
|
901
|
+
}
|
|
902
|
+
));
|
|
903
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
904
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
905
|
+
DropdownMenuPrimitive.Separator,
|
|
906
|
+
{
|
|
907
|
+
ref,
|
|
908
|
+
className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
|
|
909
|
+
...props
|
|
910
|
+
}
|
|
911
|
+
));
|
|
912
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
913
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
915
|
+
"span",
|
|
916
|
+
{
|
|
917
|
+
className: cn("ml-auto text-xs tracking-widest text-berget-muted-foreground", className),
|
|
918
|
+
...props
|
|
919
|
+
}
|
|
920
|
+
);
|
|
921
|
+
};
|
|
922
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
923
|
+
|
|
924
|
+
// src/components/table/Table.tsx
|
|
925
|
+
var React14 = __toESM(require("react"), 1);
|
|
715
926
|
|
|
716
927
|
// src/primitives/table.tsx
|
|
717
|
-
var
|
|
718
|
-
var
|
|
719
|
-
var Table =
|
|
720
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
928
|
+
var React13 = __toESM(require("react"), 1);
|
|
929
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
930
|
+
var Table = React13.forwardRef(
|
|
931
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
721
932
|
);
|
|
722
933
|
Table.displayName = "Table";
|
|
723
|
-
var TableHeader =
|
|
934
|
+
var TableHeader = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
724
935
|
TableHeader.displayName = "TableHeader";
|
|
725
|
-
var TableBody =
|
|
936
|
+
var TableBody = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
726
937
|
TableBody.displayName = "TableBody";
|
|
727
|
-
var TableFooter =
|
|
938
|
+
var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
728
939
|
"tfoot",
|
|
729
940
|
{
|
|
730
941
|
ref,
|
|
@@ -733,8 +944,8 @@ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
733
944
|
}
|
|
734
945
|
));
|
|
735
946
|
TableFooter.displayName = "TableFooter";
|
|
736
|
-
var TableRow =
|
|
737
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
947
|
+
var TableRow = React13.forwardRef(
|
|
948
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
738
949
|
"tr",
|
|
739
950
|
{
|
|
740
951
|
ref,
|
|
@@ -747,7 +958,7 @@ var TableRow = React11.forwardRef(
|
|
|
747
958
|
)
|
|
748
959
|
);
|
|
749
960
|
TableRow.displayName = "TableRow";
|
|
750
|
-
var TableHead =
|
|
961
|
+
var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
751
962
|
"th",
|
|
752
963
|
{
|
|
753
964
|
ref,
|
|
@@ -759,7 +970,7 @@ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
759
970
|
}
|
|
760
971
|
));
|
|
761
972
|
TableHead.displayName = "TableHead";
|
|
762
|
-
var TableCell =
|
|
973
|
+
var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
763
974
|
"td",
|
|
764
975
|
{
|
|
765
976
|
ref,
|
|
@@ -768,18 +979,25 @@ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
768
979
|
}
|
|
769
980
|
));
|
|
770
981
|
TableCell.displayName = "TableCell";
|
|
771
|
-
var TableCaption =
|
|
982
|
+
var TableCaption = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
772
983
|
TableCaption.displayName = "TableCaption";
|
|
773
984
|
|
|
774
985
|
// src/components/table/Table.tsx
|
|
775
|
-
var
|
|
776
|
-
var Table2 =
|
|
777
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
986
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
987
|
+
var Table2 = React14.forwardRef(
|
|
988
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Table, { ref, className, ...props })
|
|
778
989
|
);
|
|
779
990
|
Table2.displayName = "Table";
|
|
780
|
-
var TableHeader2 =
|
|
991
|
+
var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
992
|
+
TableHeader,
|
|
993
|
+
{
|
|
994
|
+
ref,
|
|
995
|
+
className: cn("[&_tr]:border-b border-berget-table-border", className),
|
|
996
|
+
...props
|
|
997
|
+
}
|
|
998
|
+
));
|
|
781
999
|
TableHeader2.displayName = "TableHeader";
|
|
782
|
-
var TableBody2 =
|
|
1000
|
+
var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
783
1001
|
TableBody,
|
|
784
1002
|
{
|
|
785
1003
|
ref,
|
|
@@ -788,22 +1006,25 @@ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
788
1006
|
}
|
|
789
1007
|
));
|
|
790
1008
|
TableBody2.displayName = "TableBody";
|
|
791
|
-
var TableFooter2 =
|
|
1009
|
+
var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
792
1010
|
TableFooter,
|
|
793
1011
|
{
|
|
794
1012
|
ref,
|
|
795
|
-
className: cn(
|
|
1013
|
+
className: cn(
|
|
1014
|
+
"border-t border-berget-table-border bg-berget-table-footer-bg font-medium [&>tr]:last:border-0",
|
|
1015
|
+
className
|
|
1016
|
+
),
|
|
796
1017
|
...props
|
|
797
1018
|
}
|
|
798
1019
|
));
|
|
799
1020
|
TableFooter2.displayName = "TableFooter";
|
|
800
|
-
var TableRow2 =
|
|
801
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1021
|
+
var TableRow2 = React14.forwardRef(
|
|
1022
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
802
1023
|
TableRow,
|
|
803
1024
|
{
|
|
804
1025
|
ref,
|
|
805
1026
|
className: cn(
|
|
806
|
-
"border-b transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
1027
|
+
"border-b border-berget-table-border transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
807
1028
|
className
|
|
808
1029
|
),
|
|
809
1030
|
...props
|
|
@@ -811,7 +1032,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
811
1032
|
)
|
|
812
1033
|
);
|
|
813
1034
|
TableRow2.displayName = "TableRow";
|
|
814
|
-
var TableHead2 =
|
|
1035
|
+
var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
815
1036
|
TableHead,
|
|
816
1037
|
{
|
|
817
1038
|
ref,
|
|
@@ -823,7 +1044,7 @@ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
823
1044
|
}
|
|
824
1045
|
));
|
|
825
1046
|
TableHead2.displayName = "TableHead";
|
|
826
|
-
var TableCell2 =
|
|
1047
|
+
var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
827
1048
|
TableCell,
|
|
828
1049
|
{
|
|
829
1050
|
ref,
|
|
@@ -832,7 +1053,7 @@ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
832
1053
|
}
|
|
833
1054
|
));
|
|
834
1055
|
TableCell2.displayName = "TableCell";
|
|
835
|
-
var TableCaption2 =
|
|
1056
|
+
var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
836
1057
|
TableCaption,
|
|
837
1058
|
{
|
|
838
1059
|
ref,
|
|
@@ -843,17 +1064,17 @@ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
843
1064
|
TableCaption2.displayName = "TableCaption";
|
|
844
1065
|
|
|
845
1066
|
// src/components/item/Item.tsx
|
|
846
|
-
var
|
|
1067
|
+
var React16 = __toESM(require("react"), 1);
|
|
847
1068
|
|
|
848
1069
|
// src/primitives/item.tsx
|
|
849
1070
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
850
1071
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
851
1072
|
|
|
852
1073
|
// src/primitives/separator.tsx
|
|
853
|
-
var
|
|
1074
|
+
var React15 = __toESM(require("react"), 1);
|
|
854
1075
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
855
|
-
var
|
|
856
|
-
var
|
|
1076
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1077
|
+
var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
857
1078
|
SeparatorPrimitive.Root,
|
|
858
1079
|
{
|
|
859
1080
|
ref,
|
|
@@ -867,12 +1088,12 @@ var Separator = React13.forwardRef(({ className, orientation = "horizontal", dec
|
|
|
867
1088
|
...props
|
|
868
1089
|
}
|
|
869
1090
|
));
|
|
870
|
-
|
|
1091
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
871
1092
|
|
|
872
1093
|
// src/primitives/item.tsx
|
|
873
|
-
var
|
|
1094
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
874
1095
|
function ItemGroup({ className, ...props }) {
|
|
875
|
-
return /* @__PURE__ */ (0,
|
|
1096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
876
1097
|
"div",
|
|
877
1098
|
{
|
|
878
1099
|
role: "list",
|
|
@@ -883,8 +1104,8 @@ function ItemGroup({ className, ...props }) {
|
|
|
883
1104
|
);
|
|
884
1105
|
}
|
|
885
1106
|
function ItemSeparator({ className, ...props }) {
|
|
886
|
-
return /* @__PURE__ */ (0,
|
|
887
|
-
|
|
1107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1108
|
+
Separator2,
|
|
888
1109
|
{
|
|
889
1110
|
"data-slot": "item-separator",
|
|
890
1111
|
orientation: "horizontal",
|
|
@@ -913,7 +1134,7 @@ var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
|
913
1134
|
}
|
|
914
1135
|
}
|
|
915
1136
|
);
|
|
916
|
-
function
|
|
1137
|
+
function Item2({
|
|
917
1138
|
className,
|
|
918
1139
|
variant = "default",
|
|
919
1140
|
size = "default",
|
|
@@ -921,7 +1142,7 @@ function Item({
|
|
|
921
1142
|
...props
|
|
922
1143
|
}) {
|
|
923
1144
|
const Comp = asChild ? import_react_slot2.Slot : "div";
|
|
924
|
-
return /* @__PURE__ */ (0,
|
|
1145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
925
1146
|
Comp,
|
|
926
1147
|
{
|
|
927
1148
|
"data-slot": "item",
|
|
@@ -952,7 +1173,7 @@ function ItemMedia({
|
|
|
952
1173
|
variant = "default",
|
|
953
1174
|
...props
|
|
954
1175
|
}) {
|
|
955
|
-
return /* @__PURE__ */ (0,
|
|
1176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
956
1177
|
"div",
|
|
957
1178
|
{
|
|
958
1179
|
"data-slot": "item-media",
|
|
@@ -963,7 +1184,7 @@ function ItemMedia({
|
|
|
963
1184
|
);
|
|
964
1185
|
}
|
|
965
1186
|
function ItemContent({ className, ...props }) {
|
|
966
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
967
1188
|
"div",
|
|
968
1189
|
{
|
|
969
1190
|
"data-slot": "item-content",
|
|
@@ -973,7 +1194,7 @@ function ItemContent({ className, ...props }) {
|
|
|
973
1194
|
);
|
|
974
1195
|
}
|
|
975
1196
|
function ItemTitle({ className, ...props }) {
|
|
976
|
-
return /* @__PURE__ */ (0,
|
|
1197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
977
1198
|
"div",
|
|
978
1199
|
{
|
|
979
1200
|
"data-slot": "item-title",
|
|
@@ -983,7 +1204,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
983
1204
|
);
|
|
984
1205
|
}
|
|
985
1206
|
function ItemDescription({ className, ...props }) {
|
|
986
|
-
return /* @__PURE__ */ (0,
|
|
1207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
987
1208
|
"p",
|
|
988
1209
|
{
|
|
989
1210
|
"data-slot": "item-description",
|
|
@@ -997,10 +1218,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
997
1218
|
);
|
|
998
1219
|
}
|
|
999
1220
|
function ItemActions({ className, ...props }) {
|
|
1000
|
-
return /* @__PURE__ */ (0,
|
|
1221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
1001
1222
|
}
|
|
1002
1223
|
function ItemHeader({ className, ...props }) {
|
|
1003
|
-
return /* @__PURE__ */ (0,
|
|
1224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1004
1225
|
"div",
|
|
1005
1226
|
{
|
|
1006
1227
|
"data-slot": "item-header",
|
|
@@ -1010,7 +1231,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
1010
1231
|
);
|
|
1011
1232
|
}
|
|
1012
1233
|
function ItemFooter({ className, ...props }) {
|
|
1013
|
-
return /* @__PURE__ */ (0,
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1014
1235
|
"div",
|
|
1015
1236
|
{
|
|
1016
1237
|
"data-slot": "item-footer",
|
|
@@ -1021,10 +1242,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
1021
1242
|
}
|
|
1022
1243
|
|
|
1023
1244
|
// src/components/item/Item.tsx
|
|
1024
|
-
var
|
|
1025
|
-
function
|
|
1026
|
-
return /* @__PURE__ */ (0,
|
|
1027
|
-
|
|
1245
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1246
|
+
function Item3({ className, asChild, ...props }) {
|
|
1247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1248
|
+
Item2,
|
|
1028
1249
|
{
|
|
1029
1250
|
asChild,
|
|
1030
1251
|
className: cn(
|
|
@@ -1041,8 +1262,8 @@ function Item2({ className, asChild, ...props }) {
|
|
|
1041
1262
|
}
|
|
1042
1263
|
);
|
|
1043
1264
|
}
|
|
1044
|
-
var ItemMedia2 =
|
|
1045
|
-
return /* @__PURE__ */ (0,
|
|
1265
|
+
var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1046
1267
|
ItemMedia,
|
|
1047
1268
|
{
|
|
1048
1269
|
ref,
|
|
@@ -1052,8 +1273,8 @@ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1052
1273
|
);
|
|
1053
1274
|
});
|
|
1054
1275
|
ItemMedia2.displayName = "ItemMedia";
|
|
1055
|
-
var ItemTitle2 =
|
|
1056
|
-
return /* @__PURE__ */ (0,
|
|
1276
|
+
var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1057
1278
|
ItemTitle,
|
|
1058
1279
|
{
|
|
1059
1280
|
ref,
|
|
@@ -1063,8 +1284,8 @@ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1063
1284
|
);
|
|
1064
1285
|
});
|
|
1065
1286
|
ItemTitle2.displayName = "ItemTitle";
|
|
1066
|
-
var ItemDescription2 =
|
|
1067
|
-
return /* @__PURE__ */ (0,
|
|
1287
|
+
var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1068
1289
|
ItemDescription,
|
|
1069
1290
|
{
|
|
1070
1291
|
ref,
|
|
@@ -1074,8 +1295,8 @@ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1074
1295
|
);
|
|
1075
1296
|
});
|
|
1076
1297
|
ItemDescription2.displayName = "ItemDescription";
|
|
1077
|
-
var ItemSeparator2 =
|
|
1078
|
-
return /* @__PURE__ */ (0,
|
|
1298
|
+
var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1079
1300
|
ItemSeparator,
|
|
1080
1301
|
{
|
|
1081
1302
|
ref,
|
|
@@ -1087,14 +1308,14 @@ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1087
1308
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
1088
1309
|
|
|
1089
1310
|
// src/components/input/Input.tsx
|
|
1090
|
-
var
|
|
1311
|
+
var React18 = __toESM(require("react"), 1);
|
|
1091
1312
|
|
|
1092
1313
|
// src/primitives/input.tsx
|
|
1093
|
-
var
|
|
1094
|
-
var
|
|
1095
|
-
var Input =
|
|
1314
|
+
var React17 = __toESM(require("react"), 1);
|
|
1315
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1316
|
+
var Input = React17.forwardRef(
|
|
1096
1317
|
({ className, type, ...props }, ref) => {
|
|
1097
|
-
return /* @__PURE__ */ (0,
|
|
1318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1098
1319
|
"input",
|
|
1099
1320
|
{
|
|
1100
1321
|
type,
|
|
@@ -1111,14 +1332,14 @@ var Input = React15.forwardRef(
|
|
|
1111
1332
|
Input.displayName = "Input";
|
|
1112
1333
|
|
|
1113
1334
|
// src/components/input/Input.tsx
|
|
1114
|
-
var
|
|
1115
|
-
var Input2 =
|
|
1335
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1336
|
+
var Input2 = React18.forwardRef(
|
|
1116
1337
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1117
|
-
const generatedId =
|
|
1338
|
+
const generatedId = React18.useId();
|
|
1118
1339
|
const inputId = id || generatedId;
|
|
1119
1340
|
const errorId = `${inputId}-error`;
|
|
1120
1341
|
const descriptionId = `${inputId}-description`;
|
|
1121
|
-
const inputElement = /* @__PURE__ */ (0,
|
|
1342
|
+
const inputElement = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1122
1343
|
Input,
|
|
1123
1344
|
{
|
|
1124
1345
|
ref,
|
|
@@ -1138,8 +1359,8 @@ var Input2 = React16.forwardRef(
|
|
|
1138
1359
|
}
|
|
1139
1360
|
);
|
|
1140
1361
|
if (!icon && !actionButton) {
|
|
1141
|
-
return /* @__PURE__ */ (0,
|
|
1142
|
-
label && /* @__PURE__ */ (0,
|
|
1362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1363
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1143
1364
|
"label",
|
|
1144
1365
|
{
|
|
1145
1366
|
htmlFor: inputId,
|
|
@@ -1152,9 +1373,9 @@ var Input2 = React16.forwardRef(
|
|
|
1152
1373
|
}
|
|
1153
1374
|
),
|
|
1154
1375
|
inputElement,
|
|
1155
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1156
|
-
description && /* @__PURE__ */ (0,
|
|
1157
|
-
error && /* @__PURE__ */ (0,
|
|
1376
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1377
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1378
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1158
1379
|
Typography,
|
|
1159
1380
|
{
|
|
1160
1381
|
variant: "xs",
|
|
@@ -1166,8 +1387,8 @@ var Input2 = React16.forwardRef(
|
|
|
1166
1387
|
] })
|
|
1167
1388
|
] });
|
|
1168
1389
|
}
|
|
1169
|
-
return /* @__PURE__ */ (0,
|
|
1170
|
-
label && /* @__PURE__ */ (0,
|
|
1390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1391
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1171
1392
|
"label",
|
|
1172
1393
|
{
|
|
1173
1394
|
htmlFor: inputId,
|
|
@@ -1179,14 +1400,14 @@ var Input2 = React16.forwardRef(
|
|
|
1179
1400
|
children: label
|
|
1180
1401
|
}
|
|
1181
1402
|
),
|
|
1182
|
-
/* @__PURE__ */ (0,
|
|
1183
|
-
icon && /* @__PURE__ */ (0,
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative w-full", children: [
|
|
1404
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1184
1405
|
inputElement,
|
|
1185
|
-
actionButton && /* @__PURE__ */ (0,
|
|
1406
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1186
1407
|
] }),
|
|
1187
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1188
|
-
description && /* @__PURE__ */ (0,
|
|
1189
|
-
error && /* @__PURE__ */ (0,
|
|
1408
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1409
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1410
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1190
1411
|
] })
|
|
1191
1412
|
] });
|
|
1192
1413
|
}
|
|
@@ -1194,17 +1415,17 @@ var Input2 = React16.forwardRef(
|
|
|
1194
1415
|
Input2.displayName = "Input";
|
|
1195
1416
|
|
|
1196
1417
|
// src/components/checkbox/Checkbox.tsx
|
|
1197
|
-
var
|
|
1418
|
+
var React20 = __toESM(require("react"), 1);
|
|
1198
1419
|
var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1199
|
-
var
|
|
1420
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1200
1421
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1201
1422
|
|
|
1202
1423
|
// src/primitives/checkbox.tsx
|
|
1203
|
-
var
|
|
1424
|
+
var React19 = __toESM(require("react"), 1);
|
|
1204
1425
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1205
|
-
var
|
|
1206
|
-
var
|
|
1207
|
-
var Checkbox =
|
|
1426
|
+
var import_lucide_react3 = require("lucide-react");
|
|
1427
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1428
|
+
var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1208
1429
|
CheckboxPrimitive.Root,
|
|
1209
1430
|
{
|
|
1210
1431
|
ref,
|
|
@@ -1213,23 +1434,23 @@ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1213
1434
|
className
|
|
1214
1435
|
),
|
|
1215
1436
|
...props,
|
|
1216
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1437
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" }) })
|
|
1217
1438
|
}
|
|
1218
1439
|
));
|
|
1219
1440
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1220
|
-
var CheckboxIndicator =
|
|
1441
|
+
var CheckboxIndicator = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1221
1442
|
CheckboxPrimitive.Indicator,
|
|
1222
1443
|
{
|
|
1223
1444
|
ref,
|
|
1224
1445
|
className: cn("grid place-content-center", className),
|
|
1225
1446
|
...props,
|
|
1226
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1447
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" })
|
|
1227
1448
|
}
|
|
1228
1449
|
));
|
|
1229
1450
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1230
1451
|
|
|
1231
1452
|
// src/components/checkbox/Checkbox.tsx
|
|
1232
|
-
var
|
|
1453
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1233
1454
|
var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
1234
1455
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1235
1456
|
{
|
|
@@ -1251,7 +1472,7 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
|
1251
1472
|
}
|
|
1252
1473
|
}
|
|
1253
1474
|
);
|
|
1254
|
-
var Checkbox2 =
|
|
1475
|
+
var Checkbox2 = React20.forwardRef(
|
|
1255
1476
|
({
|
|
1256
1477
|
"aria-label": ariaLabel,
|
|
1257
1478
|
className,
|
|
@@ -1264,11 +1485,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1264
1485
|
disabled,
|
|
1265
1486
|
...props
|
|
1266
1487
|
}, ref) => {
|
|
1267
|
-
const generatedId =
|
|
1488
|
+
const generatedId = React20.useId();
|
|
1268
1489
|
const checkboxId = id || generatedId;
|
|
1269
1490
|
const errorId = `${checkboxId}-error`;
|
|
1270
|
-
return /* @__PURE__ */ (0,
|
|
1271
|
-
/* @__PURE__ */ (0,
|
|
1491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
1492
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1272
1493
|
Checkbox,
|
|
1273
1494
|
{
|
|
1274
1495
|
ref,
|
|
@@ -1284,8 +1505,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1284
1505
|
className
|
|
1285
1506
|
),
|
|
1286
1507
|
...props,
|
|
1287
|
-
children: /* @__PURE__ */ (0,
|
|
1288
|
-
|
|
1508
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1509
|
+
import_lucide_react4.Check,
|
|
1289
1510
|
{
|
|
1290
1511
|
className: "h-4 w-4 text-current stroke-current",
|
|
1291
1512
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1293,8 +1514,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1293
1514
|
) })
|
|
1294
1515
|
}
|
|
1295
1516
|
) }),
|
|
1296
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1297
|
-
label && /* @__PURE__ */ (0,
|
|
1517
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1518
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1298
1519
|
"label",
|
|
1299
1520
|
{
|
|
1300
1521
|
htmlFor: checkboxId,
|
|
@@ -1306,8 +1527,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1306
1527
|
children: label
|
|
1307
1528
|
}
|
|
1308
1529
|
),
|
|
1309
|
-
description && /* @__PURE__ */ (0,
|
|
1310
|
-
error && /* @__PURE__ */ (0,
|
|
1530
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1531
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1311
1532
|
] })
|
|
1312
1533
|
] });
|
|
1313
1534
|
}
|
|
@@ -1315,10 +1536,10 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1315
1536
|
Checkbox2.displayName = "Checkbox";
|
|
1316
1537
|
|
|
1317
1538
|
// src/components/switch/Switch.tsx
|
|
1318
|
-
var
|
|
1539
|
+
var React21 = __toESM(require("react"), 1);
|
|
1319
1540
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
1320
1541
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1321
|
-
var
|
|
1542
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1322
1543
|
var switchRootVariants = (0, import_class_variance_authority9.cva)(
|
|
1323
1544
|
"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",
|
|
1324
1545
|
{
|
|
@@ -1355,7 +1576,7 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1355
1576
|
}
|
|
1356
1577
|
}
|
|
1357
1578
|
);
|
|
1358
|
-
var Switch =
|
|
1579
|
+
var Switch = React21.forwardRef(
|
|
1359
1580
|
({
|
|
1360
1581
|
"aria-label": ariaLabel,
|
|
1361
1582
|
className,
|
|
@@ -1368,11 +1589,11 @@ var Switch = React19.forwardRef(
|
|
|
1368
1589
|
disabled,
|
|
1369
1590
|
...props
|
|
1370
1591
|
}, ref) => {
|
|
1371
|
-
const generatedId =
|
|
1592
|
+
const generatedId = React21.useId();
|
|
1372
1593
|
const switchId = id || generatedId;
|
|
1373
1594
|
const errorId = `${switchId}-error`;
|
|
1374
|
-
return /* @__PURE__ */ (0,
|
|
1375
|
-
/* @__PURE__ */ (0,
|
|
1595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1376
1597
|
SwitchPrimitives.Root,
|
|
1377
1598
|
{
|
|
1378
1599
|
ref,
|
|
@@ -1387,11 +1608,11 @@ var Switch = React19.forwardRef(
|
|
|
1387
1608
|
className
|
|
1388
1609
|
),
|
|
1389
1610
|
...props,
|
|
1390
|
-
children: /* @__PURE__ */ (0,
|
|
1611
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1391
1612
|
}
|
|
1392
1613
|
),
|
|
1393
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1394
|
-
label && /* @__PURE__ */ (0,
|
|
1614
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1615
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1395
1616
|
"label",
|
|
1396
1617
|
{
|
|
1397
1618
|
htmlFor: switchId,
|
|
@@ -1402,8 +1623,8 @@ var Switch = React19.forwardRef(
|
|
|
1402
1623
|
children: label
|
|
1403
1624
|
}
|
|
1404
1625
|
),
|
|
1405
|
-
description && /* @__PURE__ */ (0,
|
|
1406
|
-
error && /* @__PURE__ */ (0,
|
|
1626
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1627
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1407
1628
|
] })
|
|
1408
1629
|
] });
|
|
1409
1630
|
}
|
|
@@ -1411,17 +1632,17 @@ var Switch = React19.forwardRef(
|
|
|
1411
1632
|
Switch.displayName = "Switch";
|
|
1412
1633
|
|
|
1413
1634
|
// src/components/select/Select.tsx
|
|
1414
|
-
var
|
|
1635
|
+
var React23 = __toESM(require("react"), 1);
|
|
1415
1636
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
1416
1637
|
|
|
1417
1638
|
// src/primitives/select.tsx
|
|
1418
|
-
var
|
|
1639
|
+
var React22 = __toESM(require("react"), 1);
|
|
1419
1640
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
1420
|
-
var
|
|
1421
|
-
var
|
|
1641
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1642
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1422
1643
|
var Select = SelectPrimitive.Root;
|
|
1423
1644
|
var SelectValue = SelectPrimitive.Value;
|
|
1424
|
-
var SelectTrigger =
|
|
1645
|
+
var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1425
1646
|
SelectPrimitive.Trigger,
|
|
1426
1647
|
{
|
|
1427
1648
|
ref,
|
|
@@ -1432,32 +1653,32 @@ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
1432
1653
|
...props,
|
|
1433
1654
|
children: [
|
|
1434
1655
|
children,
|
|
1435
|
-
/* @__PURE__ */ (0,
|
|
1656
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1436
1657
|
]
|
|
1437
1658
|
}
|
|
1438
1659
|
));
|
|
1439
1660
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1440
|
-
var SelectScrollUpButton =
|
|
1661
|
+
var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1441
1662
|
SelectPrimitive.ScrollUpButton,
|
|
1442
1663
|
{
|
|
1443
1664
|
ref,
|
|
1444
1665
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1445
1666
|
...props,
|
|
1446
|
-
children: /* @__PURE__ */ (0,
|
|
1667
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronUp, { className: "h-4 w-4" })
|
|
1447
1668
|
}
|
|
1448
1669
|
));
|
|
1449
1670
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1450
|
-
var SelectScrollDownButton =
|
|
1671
|
+
var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1451
1672
|
SelectPrimitive.ScrollDownButton,
|
|
1452
1673
|
{
|
|
1453
1674
|
ref,
|
|
1454
1675
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1455
1676
|
...props,
|
|
1456
|
-
children: /* @__PURE__ */ (0,
|
|
1677
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronDown, { className: "h-4 w-4" })
|
|
1457
1678
|
}
|
|
1458
1679
|
));
|
|
1459
1680
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1460
|
-
var SelectContent =
|
|
1681
|
+
var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1461
1682
|
SelectPrimitive.Content,
|
|
1462
1683
|
{
|
|
1463
1684
|
ref,
|
|
@@ -1469,8 +1690,8 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1469
1690
|
position,
|
|
1470
1691
|
...props,
|
|
1471
1692
|
children: [
|
|
1472
|
-
/* @__PURE__ */ (0,
|
|
1473
|
-
/* @__PURE__ */ (0,
|
|
1693
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollUpButton, {}),
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1474
1695
|
SelectPrimitive.Viewport,
|
|
1475
1696
|
{
|
|
1476
1697
|
className: cn(
|
|
@@ -1480,12 +1701,12 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1480
1701
|
children
|
|
1481
1702
|
}
|
|
1482
1703
|
),
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollDownButton, {})
|
|
1484
1705
|
]
|
|
1485
1706
|
}
|
|
1486
1707
|
) }));
|
|
1487
1708
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1488
|
-
var SelectLabel =
|
|
1709
|
+
var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1489
1710
|
SelectPrimitive.Label,
|
|
1490
1711
|
{
|
|
1491
1712
|
ref,
|
|
@@ -1494,7 +1715,7 @@ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1494
1715
|
}
|
|
1495
1716
|
));
|
|
1496
1717
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1497
|
-
var SelectItem =
|
|
1718
|
+
var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1498
1719
|
SelectPrimitive.Item,
|
|
1499
1720
|
{
|
|
1500
1721
|
ref,
|
|
@@ -1504,13 +1725,13 @@ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1504
1725
|
),
|
|
1505
1726
|
...props,
|
|
1506
1727
|
children: [
|
|
1507
|
-
/* @__PURE__ */ (0,
|
|
1508
|
-
/* @__PURE__ */ (0,
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" }) }) }),
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemText, { children })
|
|
1509
1730
|
]
|
|
1510
1731
|
}
|
|
1511
1732
|
));
|
|
1512
1733
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1513
|
-
var SelectSeparator =
|
|
1734
|
+
var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1514
1735
|
SelectPrimitive.Separator,
|
|
1515
1736
|
{
|
|
1516
1737
|
ref,
|
|
@@ -1521,7 +1742,7 @@ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1521
1742
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1522
1743
|
|
|
1523
1744
|
// src/components/select/Select.tsx
|
|
1524
|
-
var
|
|
1745
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1525
1746
|
var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
1526
1747
|
"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",
|
|
1527
1748
|
{
|
|
@@ -1544,7 +1765,7 @@ var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
|
1544
1765
|
}
|
|
1545
1766
|
}
|
|
1546
1767
|
);
|
|
1547
|
-
var Select2 =
|
|
1768
|
+
var Select2 = React23.forwardRef(
|
|
1548
1769
|
({
|
|
1549
1770
|
className,
|
|
1550
1771
|
variant,
|
|
@@ -1562,12 +1783,12 @@ var Select2 = React21.forwardRef(
|
|
|
1562
1783
|
name,
|
|
1563
1784
|
required
|
|
1564
1785
|
}, ref) => {
|
|
1565
|
-
const generatedId =
|
|
1786
|
+
const generatedId = React23.useId();
|
|
1566
1787
|
const selectId = id || generatedId;
|
|
1567
1788
|
const errorId = `${selectId}-error`;
|
|
1568
1789
|
const descriptionId = `${selectId}-description`;
|
|
1569
|
-
return /* @__PURE__ */ (0,
|
|
1570
|
-
label && /* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1791
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1571
1792
|
"label",
|
|
1572
1793
|
{
|
|
1573
1794
|
htmlFor: selectId,
|
|
@@ -1579,7 +1800,7 @@ var Select2 = React21.forwardRef(
|
|
|
1579
1800
|
children: label
|
|
1580
1801
|
}
|
|
1581
1802
|
),
|
|
1582
|
-
/* @__PURE__ */ (0,
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1583
1804
|
Select,
|
|
1584
1805
|
{
|
|
1585
1806
|
value,
|
|
@@ -1589,7 +1810,7 @@ var Select2 = React21.forwardRef(
|
|
|
1589
1810
|
name,
|
|
1590
1811
|
required,
|
|
1591
1812
|
children: [
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1813
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1593
1814
|
SelectTrigger,
|
|
1594
1815
|
{
|
|
1595
1816
|
ref,
|
|
@@ -1601,33 +1822,33 @@ var Select2 = React21.forwardRef(
|
|
|
1601
1822
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1602
1823
|
className
|
|
1603
1824
|
),
|
|
1604
|
-
children: /* @__PURE__ */ (0,
|
|
1825
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue, { placeholder })
|
|
1605
1826
|
}
|
|
1606
1827
|
),
|
|
1607
|
-
/* @__PURE__ */ (0,
|
|
1828
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1608
1829
|
]
|
|
1609
1830
|
}
|
|
1610
1831
|
),
|
|
1611
|
-
description && /* @__PURE__ */ (0,
|
|
1612
|
-
error && /* @__PURE__ */ (0,
|
|
1832
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1833
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1613
1834
|
] });
|
|
1614
1835
|
}
|
|
1615
1836
|
);
|
|
1616
1837
|
Select2.displayName = "Select";
|
|
1617
1838
|
|
|
1618
1839
|
// src/components/country-select/CountrySelect.tsx
|
|
1619
|
-
var
|
|
1620
|
-
var
|
|
1840
|
+
var React28 = __toESM(require("react"), 1);
|
|
1841
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1621
1842
|
|
|
1622
1843
|
// src/components/icon/Icon.tsx
|
|
1623
|
-
var
|
|
1624
|
-
var
|
|
1844
|
+
var React24 = __toESM(require("react"), 1);
|
|
1845
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1625
1846
|
var iconStrokeMap = {
|
|
1626
1847
|
16: 1.4,
|
|
1627
1848
|
24: 1.6,
|
|
1628
1849
|
32: 1.8
|
|
1629
1850
|
};
|
|
1630
|
-
var Icon2 =
|
|
1851
|
+
var Icon2 = React24.forwardRef(
|
|
1631
1852
|
({
|
|
1632
1853
|
icon: IconComponent,
|
|
1633
1854
|
size,
|
|
@@ -1639,7 +1860,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1639
1860
|
const strokeWidth = iconStrokeMap[size];
|
|
1640
1861
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1641
1862
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1642
|
-
return /* @__PURE__ */ (0,
|
|
1863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1643
1864
|
IconComponent,
|
|
1644
1865
|
{
|
|
1645
1866
|
ref,
|
|
@@ -1654,12 +1875,12 @@ var Icon2 = React22.forwardRef(
|
|
|
1654
1875
|
Icon2.displayName = "Icon";
|
|
1655
1876
|
|
|
1656
1877
|
// src/primitives/popover.tsx
|
|
1657
|
-
var
|
|
1878
|
+
var React25 = __toESM(require("react"), 1);
|
|
1658
1879
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1659
|
-
var
|
|
1880
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1660
1881
|
var Popover = PopoverPrimitive.Root;
|
|
1661
1882
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1662
|
-
var PopoverContent =
|
|
1883
|
+
var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1663
1884
|
PopoverPrimitive.Content,
|
|
1664
1885
|
{
|
|
1665
1886
|
ref,
|
|
@@ -1675,17 +1896,17 @@ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffs
|
|
|
1675
1896
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1676
1897
|
|
|
1677
1898
|
// src/primitives/command.tsx
|
|
1678
|
-
var
|
|
1899
|
+
var React27 = __toESM(require("react"), 1);
|
|
1679
1900
|
var import_cmdk = require("cmdk");
|
|
1680
|
-
var
|
|
1901
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1681
1902
|
|
|
1682
1903
|
// src/primitives/dialog.tsx
|
|
1683
|
-
var
|
|
1904
|
+
var React26 = __toESM(require("react"), 1);
|
|
1684
1905
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1685
|
-
var
|
|
1686
|
-
var
|
|
1906
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1907
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1687
1908
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1688
|
-
var DialogOverlay2 =
|
|
1909
|
+
var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1689
1910
|
DialogPrimitive2.Overlay,
|
|
1690
1911
|
{
|
|
1691
1912
|
ref,
|
|
@@ -1697,9 +1918,9 @@ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1697
1918
|
}
|
|
1698
1919
|
));
|
|
1699
1920
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1700
|
-
var DialogContent2 =
|
|
1701
|
-
/* @__PURE__ */ (0,
|
|
1702
|
-
/* @__PURE__ */ (0,
|
|
1921
|
+
var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogPortal2, { children: [
|
|
1922
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogOverlay2, {}),
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1703
1924
|
DialogPrimitive2.Content,
|
|
1704
1925
|
{
|
|
1705
1926
|
ref,
|
|
@@ -1710,18 +1931,18 @@ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1710
1931
|
...props,
|
|
1711
1932
|
children: [
|
|
1712
1933
|
children,
|
|
1713
|
-
/* @__PURE__ */ (0,
|
|
1714
|
-
/* @__PURE__ */ (0,
|
|
1715
|
-
/* @__PURE__ */ (0,
|
|
1934
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(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: [
|
|
1935
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
|
|
1936
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1716
1937
|
] })
|
|
1717
1938
|
]
|
|
1718
1939
|
}
|
|
1719
1940
|
)
|
|
1720
1941
|
] }));
|
|
1721
1942
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1722
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1943
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1723
1944
|
DialogHeader2.displayName = "DialogHeader";
|
|
1724
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1945
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1725
1946
|
"div",
|
|
1726
1947
|
{
|
|
1727
1948
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1729,7 +1950,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_
|
|
|
1729
1950
|
}
|
|
1730
1951
|
);
|
|
1731
1952
|
DialogFooter2.displayName = "DialogFooter";
|
|
1732
|
-
var DialogTitle2 =
|
|
1953
|
+
var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1733
1954
|
DialogPrimitive2.Title,
|
|
1734
1955
|
{
|
|
1735
1956
|
ref,
|
|
@@ -1738,7 +1959,7 @@ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1738
1959
|
}
|
|
1739
1960
|
));
|
|
1740
1961
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1741
|
-
var DialogDescription2 =
|
|
1962
|
+
var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1742
1963
|
DialogPrimitive2.Description,
|
|
1743
1964
|
{
|
|
1744
1965
|
ref,
|
|
@@ -1749,8 +1970,8 @@ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1749
1970
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1750
1971
|
|
|
1751
1972
|
// src/primitives/command.tsx
|
|
1752
|
-
var
|
|
1753
|
-
var Command =
|
|
1973
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1974
|
+
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1754
1975
|
import_cmdk.Command,
|
|
1755
1976
|
{
|
|
1756
1977
|
ref,
|
|
@@ -1762,9 +1983,9 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1762
1983
|
}
|
|
1763
1984
|
));
|
|
1764
1985
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1765
|
-
var CommandInput =
|
|
1766
|
-
/* @__PURE__ */ (0,
|
|
1767
|
-
/* @__PURE__ */ (0,
|
|
1986
|
+
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1987
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1768
1989
|
import_cmdk.Command.Input,
|
|
1769
1990
|
{
|
|
1770
1991
|
ref,
|
|
@@ -1777,7 +1998,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1777
1998
|
)
|
|
1778
1999
|
] }));
|
|
1779
2000
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1780
|
-
var CommandList =
|
|
2001
|
+
var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1781
2002
|
import_cmdk.Command.List,
|
|
1782
2003
|
{
|
|
1783
2004
|
ref,
|
|
@@ -1786,9 +2007,9 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1786
2007
|
}
|
|
1787
2008
|
));
|
|
1788
2009
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1789
|
-
var CommandEmpty =
|
|
2010
|
+
var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1790
2011
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1791
|
-
var CommandGroup =
|
|
2012
|
+
var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1792
2013
|
import_cmdk.Command.Group,
|
|
1793
2014
|
{
|
|
1794
2015
|
ref,
|
|
@@ -1800,7 +2021,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1800
2021
|
}
|
|
1801
2022
|
));
|
|
1802
2023
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1803
|
-
var CommandSeparator =
|
|
2024
|
+
var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1804
2025
|
import_cmdk.Command.Separator,
|
|
1805
2026
|
{
|
|
1806
2027
|
ref,
|
|
@@ -1809,7 +2030,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1809
2030
|
}
|
|
1810
2031
|
));
|
|
1811
2032
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1812
|
-
var CommandItem =
|
|
2033
|
+
var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1813
2034
|
import_cmdk.Command.Item,
|
|
1814
2035
|
{
|
|
1815
2036
|
ref,
|
|
@@ -1822,7 +2043,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1822
2043
|
));
|
|
1823
2044
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1824
2045
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1825
|
-
return /* @__PURE__ */ (0,
|
|
2046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1826
2047
|
"span",
|
|
1827
2048
|
{
|
|
1828
2049
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1973,8 +2194,8 @@ var isEUCountry = (countryCode) => {
|
|
|
1973
2194
|
};
|
|
1974
2195
|
|
|
1975
2196
|
// src/components/country-select/CountrySelect.tsx
|
|
1976
|
-
var
|
|
1977
|
-
var CountrySelect =
|
|
2197
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2198
|
+
var CountrySelect = React28.forwardRef(
|
|
1978
2199
|
({
|
|
1979
2200
|
value,
|
|
1980
2201
|
onValueChange,
|
|
@@ -1984,10 +2205,10 @@ var CountrySelect = React26.forwardRef(
|
|
|
1984
2205
|
align = "center",
|
|
1985
2206
|
sideOffset = 4
|
|
1986
2207
|
}, ref) => {
|
|
1987
|
-
const [open, setOpen] =
|
|
1988
|
-
const selectedCountry =
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
1990
|
-
/* @__PURE__ */ (0,
|
|
2208
|
+
const [open, setOpen] = React28.useState(false);
|
|
2209
|
+
const selectedCountry = React28.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1991
2212
|
"button",
|
|
1992
2213
|
{
|
|
1993
2214
|
ref,
|
|
@@ -2008,29 +2229,29 @@ var CountrySelect = React26.forwardRef(
|
|
|
2008
2229
|
className
|
|
2009
2230
|
),
|
|
2010
2231
|
children: [
|
|
2011
|
-
/* @__PURE__ */ (0,
|
|
2012
|
-
/* @__PURE__ */ (0,
|
|
2013
|
-
/* @__PURE__ */ (0,
|
|
2014
|
-
/* @__PURE__ */ (0,
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
2235
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
2015
2236
|
"(",
|
|
2016
2237
|
selectedCountry.code,
|
|
2017
2238
|
")"
|
|
2018
2239
|
] })
|
|
2019
|
-
] }) : /* @__PURE__ */ (0,
|
|
2020
|
-
/* @__PURE__ */ (0,
|
|
2240
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
2241
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2021
2242
|
Icon2,
|
|
2022
2243
|
{
|
|
2023
|
-
icon:
|
|
2244
|
+
icon: import_lucide_react8.Globe,
|
|
2024
2245
|
size: 16,
|
|
2025
2246
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
2026
2247
|
}
|
|
2027
2248
|
),
|
|
2028
|
-
/* @__PURE__ */ (0,
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
2029
2250
|
] }) }),
|
|
2030
|
-
/* @__PURE__ */ (0,
|
|
2251
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2031
2252
|
Icon2,
|
|
2032
2253
|
{
|
|
2033
|
-
icon:
|
|
2254
|
+
icon: import_lucide_react8.ChevronDown,
|
|
2034
2255
|
size: 16,
|
|
2035
2256
|
className: cn(
|
|
2036
2257
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -2042,17 +2263,17 @@ var CountrySelect = React26.forwardRef(
|
|
|
2042
2263
|
]
|
|
2043
2264
|
}
|
|
2044
2265
|
) }),
|
|
2045
|
-
/* @__PURE__ */ (0,
|
|
2266
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2046
2267
|
PopoverContent,
|
|
2047
2268
|
{
|
|
2048
2269
|
align,
|
|
2049
2270
|
sideOffset,
|
|
2050
2271
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2051
|
-
children: /* @__PURE__ */ (0,
|
|
2052
|
-
/* @__PURE__ */ (0,
|
|
2053
|
-
/* @__PURE__ */ (0,
|
|
2054
|
-
/* @__PURE__ */ (0,
|
|
2055
|
-
/* @__PURE__ */ (0,
|
|
2272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Command, { children: [
|
|
2273
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(CommandList, { children: [
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
2276
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2056
2277
|
CommandItem,
|
|
2057
2278
|
{
|
|
2058
2279
|
value: `${country.name} ${country.code}`,
|
|
@@ -2066,12 +2287,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
2066
2287
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
2067
2288
|
),
|
|
2068
2289
|
children: [
|
|
2069
|
-
/* @__PURE__ */ (0,
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2071
|
-
/* @__PURE__ */ (0,
|
|
2072
|
-
/* @__PURE__ */ (0,
|
|
2290
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2291
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2292
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
2073
2294
|
] }),
|
|
2074
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
2295
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
2075
2296
|
]
|
|
2076
2297
|
},
|
|
2077
2298
|
country.code
|
|
@@ -2086,15 +2307,15 @@ var CountrySelect = React26.forwardRef(
|
|
|
2086
2307
|
CountrySelect.displayName = "CountrySelect";
|
|
2087
2308
|
|
|
2088
2309
|
// src/components/text-area/TextArea.tsx
|
|
2089
|
-
var
|
|
2310
|
+
var React30 = __toESM(require("react"), 1);
|
|
2090
2311
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
2091
2312
|
|
|
2092
2313
|
// src/primitives/textarea.tsx
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2095
|
-
var Textarea =
|
|
2314
|
+
var React29 = __toESM(require("react"), 1);
|
|
2315
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2316
|
+
var Textarea = React29.forwardRef(
|
|
2096
2317
|
({ className, ...props }, ref) => {
|
|
2097
|
-
return /* @__PURE__ */ (0,
|
|
2318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2098
2319
|
"textarea",
|
|
2099
2320
|
{
|
|
2100
2321
|
className: cn(
|
|
@@ -2110,7 +2331,7 @@ var Textarea = React27.forwardRef(
|
|
|
2110
2331
|
Textarea.displayName = "Textarea";
|
|
2111
2332
|
|
|
2112
2333
|
// src/components/text-area/TextArea.tsx
|
|
2113
|
-
var
|
|
2334
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2114
2335
|
var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
2115
2336
|
"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",
|
|
2116
2337
|
{
|
|
@@ -2133,7 +2354,7 @@ var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
|
2133
2354
|
}
|
|
2134
2355
|
}
|
|
2135
2356
|
);
|
|
2136
|
-
var TextArea =
|
|
2357
|
+
var TextArea = React30.forwardRef(
|
|
2137
2358
|
({
|
|
2138
2359
|
className,
|
|
2139
2360
|
variant,
|
|
@@ -2153,13 +2374,13 @@ var TextArea = React28.forwardRef(
|
|
|
2153
2374
|
actionButton,
|
|
2154
2375
|
...props
|
|
2155
2376
|
}, ref) => {
|
|
2156
|
-
const generatedId =
|
|
2377
|
+
const generatedId = React30.useId();
|
|
2157
2378
|
const textareaId = id || generatedId;
|
|
2158
2379
|
const errorId = `${textareaId}-error`;
|
|
2159
2380
|
const descriptionId = `${textareaId}-description`;
|
|
2160
2381
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2161
|
-
return /* @__PURE__ */ (0,
|
|
2162
|
-
label && /* @__PURE__ */ (0,
|
|
2382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2383
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2163
2384
|
"label",
|
|
2164
2385
|
{
|
|
2165
2386
|
htmlFor: textareaId,
|
|
@@ -2171,9 +2392,9 @@ var TextArea = React28.forwardRef(
|
|
|
2171
2392
|
children: label
|
|
2172
2393
|
}
|
|
2173
2394
|
),
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2175
|
-
icon && /* @__PURE__ */ (0,
|
|
2176
|
-
/* @__PURE__ */ (0,
|
|
2395
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
|
|
2396
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2397
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2177
2398
|
Textarea,
|
|
2178
2399
|
{
|
|
2179
2400
|
ref,
|
|
@@ -2198,13 +2419,13 @@ var TextArea = React28.forwardRef(
|
|
|
2198
2419
|
...props
|
|
2199
2420
|
}
|
|
2200
2421
|
),
|
|
2201
|
-
secondaryIcon && /* @__PURE__ */ (0,
|
|
2202
|
-
actionButton && /* @__PURE__ */ (0,
|
|
2422
|
+
secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2423
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2203
2424
|
] }),
|
|
2204
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2205
|
-
description && /* @__PURE__ */ (0,
|
|
2206
|
-
(error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2207
|
-
showCount && maxLength && /* @__PURE__ */ (0,
|
|
2425
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2426
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2427
|
+
(error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2428
|
+
showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2208
2429
|
Typography,
|
|
2209
2430
|
{
|
|
2210
2431
|
variant: "xs",
|
|
@@ -2218,7 +2439,7 @@ var TextArea = React28.forwardRef(
|
|
|
2218
2439
|
]
|
|
2219
2440
|
}
|
|
2220
2441
|
),
|
|
2221
|
-
error && /* @__PURE__ */ (0,
|
|
2442
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2222
2443
|
Typography,
|
|
2223
2444
|
{
|
|
2224
2445
|
variant: "xs",
|
|
@@ -2235,22 +2456,22 @@ var TextArea = React28.forwardRef(
|
|
|
2235
2456
|
TextArea.displayName = "TextArea";
|
|
2236
2457
|
|
|
2237
2458
|
// src/primitives/label.tsx
|
|
2238
|
-
var
|
|
2459
|
+
var React31 = __toESM(require("react"), 1);
|
|
2239
2460
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
2240
2461
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
2241
|
-
var
|
|
2462
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2242
2463
|
var labelVariants = (0, import_class_variance_authority12.cva)(
|
|
2243
2464
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2244
2465
|
);
|
|
2245
|
-
var
|
|
2246
|
-
|
|
2466
|
+
var Label3 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2467
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2247
2468
|
|
|
2248
2469
|
// src/primitives/field.tsx
|
|
2249
2470
|
var import_react = require("react");
|
|
2250
2471
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
2251
|
-
var
|
|
2472
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2252
2473
|
function FieldSet({ className, ...props }) {
|
|
2253
|
-
return /* @__PURE__ */ (0,
|
|
2474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2254
2475
|
"fieldset",
|
|
2255
2476
|
{
|
|
2256
2477
|
"data-slot": "field-set",
|
|
@@ -2268,7 +2489,7 @@ function FieldLegend({
|
|
|
2268
2489
|
variant = "legend",
|
|
2269
2490
|
...props
|
|
2270
2491
|
}) {
|
|
2271
|
-
return /* @__PURE__ */ (0,
|
|
2492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2272
2493
|
"legend",
|
|
2273
2494
|
{
|
|
2274
2495
|
"data-slot": "field-legend",
|
|
@@ -2284,7 +2505,7 @@ function FieldLegend({
|
|
|
2284
2505
|
);
|
|
2285
2506
|
}
|
|
2286
2507
|
function FieldGroup({ className, ...props }) {
|
|
2287
|
-
return /* @__PURE__ */ (0,
|
|
2508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2288
2509
|
"div",
|
|
2289
2510
|
{
|
|
2290
2511
|
"data-slot": "field-group",
|
|
@@ -2324,7 +2545,7 @@ function Field({
|
|
|
2324
2545
|
orientation = "vertical",
|
|
2325
2546
|
...props
|
|
2326
2547
|
}) {
|
|
2327
|
-
return /* @__PURE__ */ (0,
|
|
2548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2328
2549
|
"div",
|
|
2329
2550
|
{
|
|
2330
2551
|
role: "group",
|
|
@@ -2336,7 +2557,7 @@ function Field({
|
|
|
2336
2557
|
);
|
|
2337
2558
|
}
|
|
2338
2559
|
function FieldContent({ className, ...props }) {
|
|
2339
|
-
return /* @__PURE__ */ (0,
|
|
2560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2340
2561
|
"div",
|
|
2341
2562
|
{
|
|
2342
2563
|
"data-slot": "field-content",
|
|
@@ -2346,8 +2567,8 @@ function FieldContent({ className, ...props }) {
|
|
|
2346
2567
|
);
|
|
2347
2568
|
}
|
|
2348
2569
|
function FieldLabel({ className, ...props }) {
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2350
|
-
|
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2571
|
+
Label3,
|
|
2351
2572
|
{
|
|
2352
2573
|
"data-slot": "field-label",
|
|
2353
2574
|
className: cn(
|
|
@@ -2361,7 +2582,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2361
2582
|
);
|
|
2362
2583
|
}
|
|
2363
2584
|
function FieldTitle({ className, ...props }) {
|
|
2364
|
-
return /* @__PURE__ */ (0,
|
|
2585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2365
2586
|
"div",
|
|
2366
2587
|
{
|
|
2367
2588
|
"data-slot": "field-label",
|
|
@@ -2374,7 +2595,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2374
2595
|
);
|
|
2375
2596
|
}
|
|
2376
2597
|
function FieldDescription({ className, ...props }) {
|
|
2377
|
-
return /* @__PURE__ */ (0,
|
|
2598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2378
2599
|
"p",
|
|
2379
2600
|
{
|
|
2380
2601
|
"data-slot": "field-description",
|
|
@@ -2393,7 +2614,7 @@ function FieldSeparator({
|
|
|
2393
2614
|
className,
|
|
2394
2615
|
...props
|
|
2395
2616
|
}) {
|
|
2396
|
-
return /* @__PURE__ */ (0,
|
|
2617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2397
2618
|
"div",
|
|
2398
2619
|
{
|
|
2399
2620
|
"data-slot": "field-separator",
|
|
@@ -2404,8 +2625,8 @@ function FieldSeparator({
|
|
|
2404
2625
|
),
|
|
2405
2626
|
...props,
|
|
2406
2627
|
children: [
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2408
|
-
children && /* @__PURE__ */ (0,
|
|
2628
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2629
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2409
2630
|
"span",
|
|
2410
2631
|
{
|
|
2411
2632
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2433,12 +2654,12 @@ function FieldError({
|
|
|
2433
2654
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2434
2655
|
return errors[0].message;
|
|
2435
2656
|
}
|
|
2436
|
-
return /* @__PURE__ */ (0,
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { children: error.message }, index)) });
|
|
2437
2658
|
}, [children, errors]);
|
|
2438
2659
|
if (!content) {
|
|
2439
2660
|
return null;
|
|
2440
2661
|
}
|
|
2441
|
-
return /* @__PURE__ */ (0,
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2442
2663
|
"div",
|
|
2443
2664
|
{
|
|
2444
2665
|
role: "alert",
|
|
@@ -2451,10 +2672,10 @@ function FieldError({
|
|
|
2451
2672
|
}
|
|
2452
2673
|
|
|
2453
2674
|
// src/components/link/Link.tsx
|
|
2454
|
-
var
|
|
2675
|
+
var React32 = __toESM(require("react"), 1);
|
|
2455
2676
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
2456
|
-
var
|
|
2457
|
-
var
|
|
2677
|
+
var import_lucide_react9 = require("lucide-react");
|
|
2678
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2458
2679
|
var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
2459
2680
|
"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",
|
|
2460
2681
|
{
|
|
@@ -2479,7 +2700,7 @@ var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
|
2479
2700
|
}
|
|
2480
2701
|
}
|
|
2481
2702
|
);
|
|
2482
|
-
var Link =
|
|
2703
|
+
var Link = React32.forwardRef(
|
|
2483
2704
|
({
|
|
2484
2705
|
className,
|
|
2485
2706
|
variant,
|
|
@@ -2492,7 +2713,7 @@ var Link = React30.forwardRef(
|
|
|
2492
2713
|
...props
|
|
2493
2714
|
}, ref) => {
|
|
2494
2715
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2495
|
-
return /* @__PURE__ */ (0,
|
|
2716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2496
2717
|
"a",
|
|
2497
2718
|
{
|
|
2498
2719
|
ref,
|
|
@@ -2508,8 +2729,8 @@ var Link = React30.forwardRef(
|
|
|
2508
2729
|
},
|
|
2509
2730
|
children: [
|
|
2510
2731
|
children,
|
|
2511
|
-
icon && /* @__PURE__ */ (0,
|
|
2512
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
2732
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
2733
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon2, { icon: import_lucide_react9.ExternalLink, size: 16 }) })
|
|
2513
2734
|
]
|
|
2514
2735
|
}
|
|
2515
2736
|
);
|
|
@@ -2518,10 +2739,10 @@ var Link = React30.forwardRef(
|
|
|
2518
2739
|
Link.displayName = "Link";
|
|
2519
2740
|
|
|
2520
2741
|
// src/components/container/Container.tsx
|
|
2521
|
-
var
|
|
2742
|
+
var React33 = __toESM(require("react"), 1);
|
|
2522
2743
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
2523
2744
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
2524
|
-
var
|
|
2745
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2525
2746
|
var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-auto", {
|
|
2526
2747
|
variants: {
|
|
2527
2748
|
size: {
|
|
@@ -2543,10 +2764,10 @@ var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-au
|
|
|
2543
2764
|
padding: "md"
|
|
2544
2765
|
}
|
|
2545
2766
|
});
|
|
2546
|
-
var Container =
|
|
2767
|
+
var Container = React33.forwardRef(
|
|
2547
2768
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2548
2769
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
2549
|
-
return /* @__PURE__ */ (0,
|
|
2770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2550
2771
|
Component,
|
|
2551
2772
|
{
|
|
2552
2773
|
ref,
|
|
@@ -2560,10 +2781,10 @@ var Container = React31.forwardRef(
|
|
|
2560
2781
|
Container.displayName = "Container";
|
|
2561
2782
|
|
|
2562
2783
|
// src/components/grid/Grid.tsx
|
|
2563
|
-
var
|
|
2784
|
+
var React34 = __toESM(require("react"), 1);
|
|
2564
2785
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
2565
2786
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2566
|
-
var
|
|
2787
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2567
2788
|
var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
2568
2789
|
variants: {
|
|
2569
2790
|
align: {
|
|
@@ -2586,10 +2807,10 @@ var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
|
2586
2807
|
justify: "start"
|
|
2587
2808
|
}
|
|
2588
2809
|
});
|
|
2589
|
-
var Grid =
|
|
2810
|
+
var Grid = React34.forwardRef(
|
|
2590
2811
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2591
2812
|
const Component = asChild ? import_react_slot4.Slot : "div";
|
|
2592
|
-
return /* @__PURE__ */ (0,
|
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2593
2814
|
Component,
|
|
2594
2815
|
{
|
|
2595
2816
|
ref,
|
|
@@ -2611,10 +2832,10 @@ var Grid = React32.forwardRef(
|
|
|
2611
2832
|
Grid.displayName = "Grid";
|
|
2612
2833
|
|
|
2613
2834
|
// src/components/box/Box.tsx
|
|
2614
|
-
var
|
|
2835
|
+
var React35 = __toESM(require("react"), 1);
|
|
2615
2836
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2616
2837
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
2617
|
-
var
|
|
2838
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2618
2839
|
var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
2619
2840
|
variants: {
|
|
2620
2841
|
direction: {
|
|
@@ -2651,10 +2872,10 @@ var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
|
2651
2872
|
wrap: "nowrap"
|
|
2652
2873
|
}
|
|
2653
2874
|
});
|
|
2654
|
-
var Box =
|
|
2875
|
+
var Box = React35.forwardRef(
|
|
2655
2876
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2656
2877
|
const Component = asChild ? import_react_slot5.Slot : "div";
|
|
2657
|
-
return /* @__PURE__ */ (0,
|
|
2878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2658
2879
|
Component,
|
|
2659
2880
|
{
|
|
2660
2881
|
ref,
|
|
@@ -2672,16 +2893,16 @@ var Box = React33.forwardRef(
|
|
|
2672
2893
|
Box.displayName = "Box";
|
|
2673
2894
|
|
|
2674
2895
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2675
|
-
var
|
|
2676
|
-
var
|
|
2677
|
-
var BergetLogo =
|
|
2896
|
+
var React36 = __toESM(require("react"), 1);
|
|
2897
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2898
|
+
var BergetLogo = React36.forwardRef(
|
|
2678
2899
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2679
2900
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2680
2901
|
if (variant === "symbol") {
|
|
2681
2902
|
const aspectRatio2 = 463 / 419;
|
|
2682
2903
|
const width2 = size * aspectRatio2;
|
|
2683
2904
|
const height2 = size;
|
|
2684
|
-
return /* @__PURE__ */ (0,
|
|
2905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2685
2906
|
"svg",
|
|
2686
2907
|
{
|
|
2687
2908
|
ref,
|
|
@@ -2694,7 +2915,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2694
2915
|
"aria-label": "Berget symbol",
|
|
2695
2916
|
className: cn("inline-block", className),
|
|
2696
2917
|
...props,
|
|
2697
|
-
children: /* @__PURE__ */ (0,
|
|
2918
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2698
2919
|
"path",
|
|
2699
2920
|
{
|
|
2700
2921
|
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",
|
|
@@ -2707,7 +2928,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2707
2928
|
const aspectRatio = 793.63 / 204.37;
|
|
2708
2929
|
const width = size * aspectRatio;
|
|
2709
2930
|
const height = size;
|
|
2710
|
-
return /* @__PURE__ */ (0,
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2711
2932
|
"svg",
|
|
2712
2933
|
{
|
|
2713
2934
|
ref,
|
|
@@ -2721,59 +2942,59 @@ var BergetLogo = React34.forwardRef(
|
|
|
2721
2942
|
className: cn("inline-block", className),
|
|
2722
2943
|
...props,
|
|
2723
2944
|
children: [
|
|
2724
|
-
/* @__PURE__ */ (0,
|
|
2725
|
-
/* @__PURE__ */ (0,
|
|
2945
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("g", { style: { fill: fillColor }, children: [
|
|
2946
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2726
2947
|
"path",
|
|
2727
2948
|
{
|
|
2728
2949
|
className: "berget-logotype-fill",
|
|
2729
2950
|
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"
|
|
2730
2951
|
}
|
|
2731
2952
|
),
|
|
2732
|
-
/* @__PURE__ */ (0,
|
|
2953
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2733
2954
|
"path",
|
|
2734
2955
|
{
|
|
2735
2956
|
className: "berget-logotype-fill",
|
|
2736
2957
|
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"
|
|
2737
2958
|
}
|
|
2738
2959
|
),
|
|
2739
|
-
/* @__PURE__ */ (0,
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2740
2961
|
"path",
|
|
2741
2962
|
{
|
|
2742
2963
|
className: "berget-logotype-fill",
|
|
2743
2964
|
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"
|
|
2744
2965
|
}
|
|
2745
2966
|
),
|
|
2746
|
-
/* @__PURE__ */ (0,
|
|
2967
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2747
2968
|
"path",
|
|
2748
2969
|
{
|
|
2749
2970
|
className: "berget-logotype-fill",
|
|
2750
2971
|
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"
|
|
2751
2972
|
}
|
|
2752
2973
|
),
|
|
2753
|
-
/* @__PURE__ */ (0,
|
|
2974
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2754
2975
|
"path",
|
|
2755
2976
|
{
|
|
2756
2977
|
className: "berget-logotype-fill",
|
|
2757
2978
|
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"
|
|
2758
2979
|
}
|
|
2759
2980
|
),
|
|
2760
|
-
/* @__PURE__ */ (0,
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2761
2982
|
"path",
|
|
2762
2983
|
{
|
|
2763
2984
|
className: "berget-logotype-fill",
|
|
2764
2985
|
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"
|
|
2765
2986
|
}
|
|
2766
2987
|
),
|
|
2767
|
-
/* @__PURE__ */ (0,
|
|
2988
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2768
2989
|
"path",
|
|
2769
2990
|
{
|
|
2770
2991
|
className: "berget-logotype-fill",
|
|
2771
2992
|
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"
|
|
2772
2993
|
}
|
|
2773
2994
|
),
|
|
2774
|
-
/* @__PURE__ */ (0,
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2775
2996
|
] }),
|
|
2776
|
-
/* @__PURE__ */ (0,
|
|
2997
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2777
2998
|
"path",
|
|
2778
2999
|
{
|
|
2779
3000
|
style: { fill: fillColor },
|
|
@@ -2788,13 +3009,13 @@ var BergetLogo = React34.forwardRef(
|
|
|
2788
3009
|
BergetLogo.displayName = "BergetLogo";
|
|
2789
3010
|
|
|
2790
3011
|
// src/components/language-select/LanguageSelect.tsx
|
|
2791
|
-
var
|
|
3012
|
+
var React37 = __toESM(require("react"), 1);
|
|
2792
3013
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
2793
|
-
var
|
|
2794
|
-
var
|
|
2795
|
-
var LanguageSelect =
|
|
2796
|
-
return /* @__PURE__ */ (0,
|
|
2797
|
-
/* @__PURE__ */ (0,
|
|
3014
|
+
var import_lucide_react10 = require("lucide-react");
|
|
3015
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3016
|
+
var LanguageSelect = React37.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
3017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
3018
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2798
3019
|
SelectPrimitive2.Trigger,
|
|
2799
3020
|
{
|
|
2800
3021
|
ref,
|
|
@@ -2817,12 +3038,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2817
3038
|
className
|
|
2818
3039
|
),
|
|
2819
3040
|
children: [
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
2821
|
-
/* @__PURE__ */ (0,
|
|
3041
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
3042
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon2, { icon: import_lucide_react10.Globe, size: 16, "aria-hidden": true })
|
|
2822
3043
|
]
|
|
2823
3044
|
}
|
|
2824
3045
|
),
|
|
2825
|
-
/* @__PURE__ */ (0,
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2826
3047
|
SelectPrimitive2.Content,
|
|
2827
3048
|
{
|
|
2828
3049
|
className: cn(
|
|
@@ -2850,7 +3071,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2850
3071
|
"origin-[--radix-select-content-transform-origin]"
|
|
2851
3072
|
),
|
|
2852
3073
|
position: "popper",
|
|
2853
|
-
children: /* @__PURE__ */ (0,
|
|
3074
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2854
3075
|
SelectPrimitive2.Item,
|
|
2855
3076
|
{
|
|
2856
3077
|
value: option.value,
|
|
@@ -2867,7 +3088,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2867
3088
|
// Disabled state
|
|
2868
3089
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2869
3090
|
),
|
|
2870
|
-
children: /* @__PURE__ */ (0,
|
|
3091
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.ItemText, { children: option.label })
|
|
2871
3092
|
},
|
|
2872
3093
|
option.value
|
|
2873
3094
|
)) })
|
|
@@ -2878,12 +3099,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2878
3099
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2879
3100
|
|
|
2880
3101
|
// src/components/list/List.tsx
|
|
2881
|
-
var
|
|
3102
|
+
var React39 = __toESM(require("react"), 1);
|
|
2882
3103
|
|
|
2883
3104
|
// src/components/divider/Divider.tsx
|
|
2884
|
-
var
|
|
3105
|
+
var React38 = __toESM(require("react"), 1);
|
|
2885
3106
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2886
|
-
var
|
|
3107
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2887
3108
|
var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
2888
3109
|
variants: {
|
|
2889
3110
|
variant: {
|
|
@@ -2904,7 +3125,7 @@ var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
|
2904
3125
|
size: "thin"
|
|
2905
3126
|
}
|
|
2906
3127
|
});
|
|
2907
|
-
var Divider =
|
|
3128
|
+
var Divider = React38.forwardRef(
|
|
2908
3129
|
({
|
|
2909
3130
|
className,
|
|
2910
3131
|
orientation = "horizontal",
|
|
@@ -2915,17 +3136,17 @@ var Divider = React36.forwardRef(
|
|
|
2915
3136
|
...props
|
|
2916
3137
|
}, ref) => {
|
|
2917
3138
|
if (label) {
|
|
2918
|
-
return /* @__PURE__ */ (0,
|
|
2919
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
2920
|
-
|
|
3139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3140
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3141
|
+
Separator2,
|
|
2921
3142
|
{
|
|
2922
3143
|
orientation: "horizontal",
|
|
2923
3144
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2924
3145
|
}
|
|
2925
3146
|
),
|
|
2926
|
-
/* @__PURE__ */ (0,
|
|
2927
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
2928
|
-
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3148
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3149
|
+
Separator2,
|
|
2929
3150
|
{
|
|
2930
3151
|
orientation: "horizontal",
|
|
2931
3152
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
@@ -2933,8 +3154,8 @@ var Divider = React36.forwardRef(
|
|
|
2933
3154
|
)
|
|
2934
3155
|
] });
|
|
2935
3156
|
}
|
|
2936
|
-
return /* @__PURE__ */ (0,
|
|
2937
|
-
|
|
3157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3158
|
+
Separator2,
|
|
2938
3159
|
{
|
|
2939
3160
|
ref,
|
|
2940
3161
|
orientation,
|
|
@@ -2950,20 +3171,20 @@ var Divider = React36.forwardRef(
|
|
|
2950
3171
|
Divider.displayName = "Divider";
|
|
2951
3172
|
|
|
2952
3173
|
// src/components/list/List.tsx
|
|
2953
|
-
var
|
|
2954
|
-
var
|
|
2955
|
-
var List =
|
|
3174
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3175
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3176
|
+
var List = React39.forwardRef(
|
|
2956
3177
|
({ className, children, ...props }, ref) => {
|
|
2957
|
-
const childrenArray =
|
|
2958
|
-
return /* @__PURE__ */ (0,
|
|
3178
|
+
const childrenArray = React39.Children.toArray(children);
|
|
3179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(React39.Fragment, { children: [
|
|
2959
3180
|
child,
|
|
2960
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
3181
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Divider, { variant: "subtle" })
|
|
2961
3182
|
] }, index)) });
|
|
2962
3183
|
}
|
|
2963
3184
|
);
|
|
2964
3185
|
List.displayName = "List";
|
|
2965
|
-
var ListItem =
|
|
2966
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3186
|
+
var ListItem = React39.forwardRef(
|
|
3187
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2967
3188
|
"div",
|
|
2968
3189
|
{
|
|
2969
3190
|
ref,
|
|
@@ -2974,15 +3195,15 @@ var ListItem = React37.forwardRef(
|
|
|
2974
3195
|
),
|
|
2975
3196
|
...props,
|
|
2976
3197
|
children: [
|
|
2977
|
-
icon && /* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
3198
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
2979
3200
|
]
|
|
2980
3201
|
}
|
|
2981
3202
|
)
|
|
2982
3203
|
);
|
|
2983
3204
|
ListItem.displayName = "ListItem";
|
|
2984
|
-
var ListHeader =
|
|
2985
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3205
|
+
var ListHeader = React39.forwardRef(
|
|
3206
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2986
3207
|
"div",
|
|
2987
3208
|
{
|
|
2988
3209
|
ref,
|
|
@@ -2993,20 +3214,20 @@ var ListHeader = React37.forwardRef(
|
|
|
2993
3214
|
)
|
|
2994
3215
|
);
|
|
2995
3216
|
ListHeader.displayName = "ListHeader";
|
|
2996
|
-
var FeatureList =
|
|
3217
|
+
var FeatureList = React39.forwardRef(
|
|
2997
3218
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
2998
|
-
return /* @__PURE__ */ (0,
|
|
2999
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3220
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2, { icon: import_lucide_react11.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
3001
3222
|
] }, index)) });
|
|
3002
3223
|
}
|
|
3003
3224
|
);
|
|
3004
3225
|
FeatureList.displayName = "FeatureList";
|
|
3005
3226
|
|
|
3006
3227
|
// src/components/hero-block/HeroBlock.tsx
|
|
3007
|
-
var
|
|
3228
|
+
var React40 = __toESM(require("react"), 1);
|
|
3008
3229
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
3009
|
-
var
|
|
3230
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3010
3231
|
var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
3011
3232
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3012
3233
|
{
|
|
@@ -3027,7 +3248,7 @@ var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3027
3248
|
}
|
|
3028
3249
|
}
|
|
3029
3250
|
);
|
|
3030
|
-
var HeroBlock =
|
|
3251
|
+
var HeroBlock = React40.forwardRef(
|
|
3031
3252
|
({
|
|
3032
3253
|
className,
|
|
3033
3254
|
variant,
|
|
@@ -3039,26 +3260,26 @@ var HeroBlock = React38.forwardRef(
|
|
|
3039
3260
|
actions,
|
|
3040
3261
|
...props
|
|
3041
3262
|
}, ref) => {
|
|
3042
|
-
return /* @__PURE__ */ (0,
|
|
3263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3043
3264
|
"div",
|
|
3044
3265
|
{
|
|
3045
3266
|
ref,
|
|
3046
3267
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
3047
3268
|
...props,
|
|
3048
|
-
children: /* @__PURE__ */ (0,
|
|
3049
|
-
tagline && /* @__PURE__ */ (0,
|
|
3269
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3270
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3050
3271
|
Badge,
|
|
3051
3272
|
{
|
|
3052
3273
|
variant: "default",
|
|
3053
|
-
icon: TaglineIcon ? /* @__PURE__ */ (0,
|
|
3274
|
+
icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
3054
3275
|
iconGap: 2,
|
|
3055
3276
|
className: "mb-fluid-md",
|
|
3056
3277
|
children: tagline
|
|
3057
3278
|
}
|
|
3058
3279
|
),
|
|
3059
|
-
/* @__PURE__ */ (0,
|
|
3060
|
-
/* @__PURE__ */ (0,
|
|
3061
|
-
actions && /* @__PURE__ */ (0,
|
|
3280
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3281
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3282
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
3062
3283
|
] }) })
|
|
3063
3284
|
}
|
|
3064
3285
|
);
|
|
@@ -3068,7 +3289,7 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
3068
3289
|
|
|
3069
3290
|
// src/components/code-block/CodeBlock.tsx
|
|
3070
3291
|
var import_react2 = require("react");
|
|
3071
|
-
var
|
|
3292
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3072
3293
|
|
|
3073
3294
|
// src/lib/shiki.ts
|
|
3074
3295
|
var import_core2 = require("shiki/core");
|
|
@@ -3109,7 +3330,7 @@ function getHighlighter() {
|
|
|
3109
3330
|
}
|
|
3110
3331
|
|
|
3111
3332
|
// src/components/code-block/CodeBlock.tsx
|
|
3112
|
-
var
|
|
3333
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3113
3334
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
3114
3335
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
3115
3336
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -3125,16 +3346,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3125
3346
|
setCopied(true);
|
|
3126
3347
|
setTimeout(() => setCopied(false), 2e3);
|
|
3127
3348
|
}, [code]);
|
|
3128
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
3349
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3129
3350
|
"button",
|
|
3130
3351
|
{
|
|
3131
3352
|
onClick: handleCopy,
|
|
3132
3353
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
3133
3354
|
"aria-label": "Copy code",
|
|
3134
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
3355
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react12.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react12.Copy, { className: "w-3.5 h-3.5" })
|
|
3135
3356
|
}
|
|
3136
3357
|
);
|
|
3137
|
-
return /* @__PURE__ */ (0,
|
|
3358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3138
3359
|
"div",
|
|
3139
3360
|
{
|
|
3140
3361
|
className: cn(
|
|
@@ -3142,25 +3363,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3142
3363
|
className
|
|
3143
3364
|
),
|
|
3144
3365
|
children: [
|
|
3145
|
-
title && /* @__PURE__ */ (0,
|
|
3146
|
-
/* @__PURE__ */ (0,
|
|
3147
|
-
html ? /* @__PURE__ */ (0,
|
|
3366
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3367
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3368
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3148
3369
|
"div",
|
|
3149
3370
|
{
|
|
3150
3371
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
3151
3372
|
dangerouslySetInnerHTML: { __html: html }
|
|
3152
3373
|
}
|
|
3153
|
-
) : /* @__PURE__ */ (0,
|
|
3374
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("code", { children: code }) })
|
|
3154
3375
|
]
|
|
3155
3376
|
}
|
|
3156
3377
|
);
|
|
3157
3378
|
}
|
|
3158
3379
|
|
|
3159
3380
|
// src/components/window-frame/WindowFrame.tsx
|
|
3160
|
-
var
|
|
3381
|
+
var React41 = __toESM(require("react"), 1);
|
|
3161
3382
|
var import_react3 = require("react");
|
|
3162
|
-
var
|
|
3163
|
-
var WindowFrame =
|
|
3383
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3384
|
+
var WindowFrame = React41.forwardRef(
|
|
3164
3385
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3165
3386
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
3166
3387
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3171,7 +3392,7 @@ var WindowFrame = React39.forwardRef(
|
|
|
3171
3392
|
setInternalActive(id);
|
|
3172
3393
|
}
|
|
3173
3394
|
};
|
|
3174
|
-
return /* @__PURE__ */ (0,
|
|
3395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3175
3396
|
"div",
|
|
3176
3397
|
{
|
|
3177
3398
|
ref,
|
|
@@ -3181,13 +3402,13 @@ var WindowFrame = React39.forwardRef(
|
|
|
3181
3402
|
),
|
|
3182
3403
|
...props,
|
|
3183
3404
|
children: [
|
|
3184
|
-
/* @__PURE__ */ (0,
|
|
3185
|
-
/* @__PURE__ */ (0,
|
|
3186
|
-
/* @__PURE__ */ (0,
|
|
3187
|
-
/* @__PURE__ */ (0,
|
|
3188
|
-
/* @__PURE__ */ (0,
|
|
3405
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3406
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3408
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3189
3410
|
] }),
|
|
3190
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
3411
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3191
3412
|
"button",
|
|
3192
3413
|
{
|
|
3193
3414
|
type: "button",
|
|
@@ -3199,9 +3420,9 @@ var WindowFrame = React39.forwardRef(
|
|
|
3199
3420
|
children: tab.label
|
|
3200
3421
|
},
|
|
3201
3422
|
tab.id
|
|
3202
|
-
)) }) : /* @__PURE__ */ (0,
|
|
3423
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3203
3424
|
] }),
|
|
3204
|
-
/* @__PURE__ */ (0,
|
|
3425
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children })
|
|
3205
3426
|
]
|
|
3206
3427
|
}
|
|
3207
3428
|
);
|
|
@@ -3212,6 +3433,17 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3212
3433
|
0 && (module.exports = {
|
|
3213
3434
|
Alert,
|
|
3214
3435
|
AlertDescription,
|
|
3436
|
+
AlertDialog,
|
|
3437
|
+
AlertDialogAction,
|
|
3438
|
+
AlertDialogCancel,
|
|
3439
|
+
AlertDialogContent,
|
|
3440
|
+
AlertDialogDescription,
|
|
3441
|
+
AlertDialogFooter,
|
|
3442
|
+
AlertDialogHeader,
|
|
3443
|
+
AlertDialogOverlay,
|
|
3444
|
+
AlertDialogPortal,
|
|
3445
|
+
AlertDialogTitle,
|
|
3446
|
+
AlertDialogTrigger,
|
|
3215
3447
|
AlertTitle,
|
|
3216
3448
|
Badge,
|
|
3217
3449
|
BergetLogo,
|
|
@@ -3238,6 +3470,21 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3238
3470
|
DialogPortal,
|
|
3239
3471
|
DialogTitle,
|
|
3240
3472
|
DialogTrigger,
|
|
3473
|
+
DropdownMenu,
|
|
3474
|
+
DropdownMenuCheckboxItem,
|
|
3475
|
+
DropdownMenuContent,
|
|
3476
|
+
DropdownMenuGroup,
|
|
3477
|
+
DropdownMenuItem,
|
|
3478
|
+
DropdownMenuLabel,
|
|
3479
|
+
DropdownMenuPortal,
|
|
3480
|
+
DropdownMenuRadioGroup,
|
|
3481
|
+
DropdownMenuRadioItem,
|
|
3482
|
+
DropdownMenuSeparator,
|
|
3483
|
+
DropdownMenuShortcut,
|
|
3484
|
+
DropdownMenuSub,
|
|
3485
|
+
DropdownMenuSubContent,
|
|
3486
|
+
DropdownMenuSubTrigger,
|
|
3487
|
+
DropdownMenuTrigger,
|
|
3241
3488
|
EU_COUNTRY_CODES,
|
|
3242
3489
|
FeatureList,
|
|
3243
3490
|
Field,
|