@bergetai/ui 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +724 -378
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +684 -373
- package/dist/index.js.map +1 -1
- package/package.json +4 -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: () => Item4,
|
|
78
104
|
ItemActions: () => ItemActions,
|
|
79
105
|
ItemContent: () => ItemContent,
|
|
80
106
|
ItemDescription: () => ItemDescription2,
|
|
@@ -84,12 +110,20 @@ __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
|
-
Link: () =>
|
|
90
|
-
List: () =>
|
|
115
|
+
Link: () => Link2,
|
|
116
|
+
List: () => List2,
|
|
91
117
|
ListHeader: () => ListHeader,
|
|
92
118
|
ListItem: () => ListItem,
|
|
119
|
+
NavigationMenu: () => NavigationMenu,
|
|
120
|
+
NavigationMenuContent: () => NavigationMenuContent,
|
|
121
|
+
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
122
|
+
NavigationMenuItem: () => NavigationMenuItem,
|
|
123
|
+
NavigationMenuLink: () => NavigationMenuLink,
|
|
124
|
+
NavigationMenuList: () => NavigationMenuList,
|
|
125
|
+
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
126
|
+
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
93
127
|
Select: () => Select2,
|
|
94
128
|
Switch: () => Switch,
|
|
95
129
|
Table: () => Table2,
|
|
@@ -117,6 +151,7 @@ __export(index_exports, {
|
|
|
117
151
|
gridVariants: () => gridVariants,
|
|
118
152
|
isEUCountry: () => isEUCountry,
|
|
119
153
|
linkVariants: () => linkVariants,
|
|
154
|
+
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
120
155
|
selectVariants: () => selectVariants,
|
|
121
156
|
switchRootVariants: () => switchRootVariants,
|
|
122
157
|
switchThumbVariants: () => switchThumbVariants,
|
|
@@ -710,21 +745,297 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
710
745
|
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
746
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
712
747
|
|
|
713
|
-
// src/components/
|
|
748
|
+
// src/components/alert-dialog/AlertDialog.tsx
|
|
749
|
+
var React11 = __toESM(require("react"), 1);
|
|
750
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
751
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
752
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
753
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
754
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
755
|
+
var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
756
|
+
AlertDialogPrimitive.Overlay,
|
|
757
|
+
{
|
|
758
|
+
ref,
|
|
759
|
+
className: cn(
|
|
760
|
+
"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",
|
|
761
|
+
className
|
|
762
|
+
),
|
|
763
|
+
...props
|
|
764
|
+
}
|
|
765
|
+
));
|
|
766
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
767
|
+
var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogPortal, { children: [
|
|
768
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogOverlay, {}),
|
|
769
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
770
|
+
AlertDialogPrimitive.Content,
|
|
771
|
+
{
|
|
772
|
+
ref,
|
|
773
|
+
className: cn(
|
|
774
|
+
"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%]",
|
|
775
|
+
className
|
|
776
|
+
),
|
|
777
|
+
...props
|
|
778
|
+
}
|
|
779
|
+
)
|
|
780
|
+
] }));
|
|
781
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
782
|
+
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 });
|
|
783
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
784
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
785
|
+
"div",
|
|
786
|
+
{
|
|
787
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
788
|
+
...props
|
|
789
|
+
}
|
|
790
|
+
);
|
|
791
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
792
|
+
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 }) }));
|
|
793
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
794
|
+
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 }) }));
|
|
795
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
796
|
+
var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
|
|
797
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
798
|
+
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 }));
|
|
799
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
800
|
+
|
|
801
|
+
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
714
802
|
var React12 = __toESM(require("react"), 1);
|
|
803
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
804
|
+
var import_lucide_react2 = require("lucide-react");
|
|
805
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
806
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
807
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
808
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
809
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
810
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
811
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
812
|
+
var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
813
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
814
|
+
{
|
|
815
|
+
ref,
|
|
816
|
+
className: cn(
|
|
817
|
+
"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",
|
|
818
|
+
inset && "pl-8",
|
|
819
|
+
className
|
|
820
|
+
),
|
|
821
|
+
...props,
|
|
822
|
+
children: [
|
|
823
|
+
children,
|
|
824
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.ChevronRight, { className: "ml-auto" })
|
|
825
|
+
]
|
|
826
|
+
}
|
|
827
|
+
));
|
|
828
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
829
|
+
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
830
|
+
DropdownMenuPrimitive.SubContent,
|
|
831
|
+
{
|
|
832
|
+
ref,
|
|
833
|
+
className: cn(
|
|
834
|
+
"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]",
|
|
835
|
+
className
|
|
836
|
+
),
|
|
837
|
+
...props
|
|
838
|
+
}
|
|
839
|
+
));
|
|
840
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
841
|
+
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
842
|
+
DropdownMenuPrimitive.Content,
|
|
843
|
+
{
|
|
844
|
+
ref,
|
|
845
|
+
sideOffset,
|
|
846
|
+
className: cn(
|
|
847
|
+
"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]",
|
|
848
|
+
className
|
|
849
|
+
),
|
|
850
|
+
...props
|
|
851
|
+
}
|
|
852
|
+
) }));
|
|
853
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
854
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
855
|
+
DropdownMenuPrimitive.Item,
|
|
856
|
+
{
|
|
857
|
+
ref,
|
|
858
|
+
className: cn(
|
|
859
|
+
"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",
|
|
860
|
+
inset && "pl-8",
|
|
861
|
+
className
|
|
862
|
+
),
|
|
863
|
+
...props
|
|
864
|
+
}
|
|
865
|
+
));
|
|
866
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
867
|
+
var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
868
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
869
|
+
{
|
|
870
|
+
ref,
|
|
871
|
+
className: cn(
|
|
872
|
+
"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",
|
|
873
|
+
className
|
|
874
|
+
),
|
|
875
|
+
checked,
|
|
876
|
+
...props,
|
|
877
|
+
children: [
|
|
878
|
+
/* @__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" }) }) }),
|
|
879
|
+
children
|
|
880
|
+
]
|
|
881
|
+
}
|
|
882
|
+
));
|
|
883
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
884
|
+
var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
885
|
+
DropdownMenuPrimitive.RadioItem,
|
|
886
|
+
{
|
|
887
|
+
ref,
|
|
888
|
+
className: cn(
|
|
889
|
+
"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",
|
|
890
|
+
className
|
|
891
|
+
),
|
|
892
|
+
...props,
|
|
893
|
+
children: [
|
|
894
|
+
/* @__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" }) }) }),
|
|
895
|
+
children
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
));
|
|
899
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
900
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
901
|
+
DropdownMenuPrimitive.Label,
|
|
902
|
+
{
|
|
903
|
+
ref,
|
|
904
|
+
className: cn(
|
|
905
|
+
"px-2 py-1.5 text-sm font-semibold text-berget-foreground",
|
|
906
|
+
inset && "pl-8",
|
|
907
|
+
className
|
|
908
|
+
),
|
|
909
|
+
...props
|
|
910
|
+
}
|
|
911
|
+
));
|
|
912
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
913
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
914
|
+
DropdownMenuPrimitive.Separator,
|
|
915
|
+
{
|
|
916
|
+
ref,
|
|
917
|
+
className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
|
|
918
|
+
...props
|
|
919
|
+
}
|
|
920
|
+
));
|
|
921
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
922
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
924
|
+
"span",
|
|
925
|
+
{
|
|
926
|
+
className: cn("ml-auto text-xs tracking-widest text-berget-muted-foreground", className),
|
|
927
|
+
...props
|
|
928
|
+
}
|
|
929
|
+
);
|
|
930
|
+
};
|
|
931
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
932
|
+
|
|
933
|
+
// src/components/navigation-menu/NavigationMenu.tsx
|
|
934
|
+
var React13 = __toESM(require("react"), 1);
|
|
935
|
+
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
936
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
937
|
+
var import_lucide_react3 = require("lucide-react");
|
|
938
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
939
|
+
var NavigationMenu = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
940
|
+
NavigationMenuPrimitive.Root,
|
|
941
|
+
{
|
|
942
|
+
ref,
|
|
943
|
+
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
|
|
944
|
+
...props,
|
|
945
|
+
children: [
|
|
946
|
+
children,
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(NavigationMenuViewport, {})
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
));
|
|
951
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
952
|
+
var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
953
|
+
NavigationMenuPrimitive.List,
|
|
954
|
+
{
|
|
955
|
+
ref,
|
|
956
|
+
className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
|
|
957
|
+
...props
|
|
958
|
+
}
|
|
959
|
+
));
|
|
960
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
961
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
962
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority7.cva)(
|
|
963
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-berget-xs px-4 py-2 text-sm font-medium transition-colors hover:bg-berget-surface-02 hover:text-berget-foreground focus:bg-berget-surface-02 focus:text-berget-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-berget-foreground data-[state=open]:bg-berget-border data-[state=open]:hover:bg-berget-border data-[state=open]:focus:bg-berget-border"
|
|
964
|
+
);
|
|
965
|
+
var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
966
|
+
NavigationMenuPrimitive.Trigger,
|
|
967
|
+
{
|
|
968
|
+
ref,
|
|
969
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
970
|
+
...props,
|
|
971
|
+
children: [
|
|
972
|
+
children,
|
|
973
|
+
" ",
|
|
974
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
975
|
+
import_lucide_react3.ChevronDown,
|
|
976
|
+
{
|
|
977
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
978
|
+
"aria-hidden": "true"
|
|
979
|
+
}
|
|
980
|
+
)
|
|
981
|
+
]
|
|
982
|
+
}
|
|
983
|
+
));
|
|
984
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
985
|
+
var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
986
|
+
NavigationMenuPrimitive.Content,
|
|
987
|
+
{
|
|
988
|
+
ref,
|
|
989
|
+
className: cn(
|
|
990
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
991
|
+
className
|
|
992
|
+
),
|
|
993
|
+
...props
|
|
994
|
+
}
|
|
995
|
+
));
|
|
996
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
997
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
998
|
+
var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
999
|
+
NavigationMenuPrimitive.Viewport,
|
|
1000
|
+
{
|
|
1001
|
+
className: cn(
|
|
1002
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1003
|
+
className
|
|
1004
|
+
),
|
|
1005
|
+
ref,
|
|
1006
|
+
...props
|
|
1007
|
+
}
|
|
1008
|
+
) }));
|
|
1009
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1010
|
+
var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1011
|
+
NavigationMenuPrimitive.Indicator,
|
|
1012
|
+
{
|
|
1013
|
+
ref,
|
|
1014
|
+
className: cn(
|
|
1015
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
1016
|
+
className
|
|
1017
|
+
),
|
|
1018
|
+
...props,
|
|
1019
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
|
|
1020
|
+
}
|
|
1021
|
+
));
|
|
1022
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1023
|
+
|
|
1024
|
+
// src/components/table/Table.tsx
|
|
1025
|
+
var React15 = __toESM(require("react"), 1);
|
|
715
1026
|
|
|
716
1027
|
// src/primitives/table.tsx
|
|
717
|
-
var
|
|
718
|
-
var
|
|
719
|
-
var Table =
|
|
720
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1028
|
+
var React14 = __toESM(require("react"), 1);
|
|
1029
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1030
|
+
var Table = React14.forwardRef(
|
|
1031
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
721
1032
|
);
|
|
722
1033
|
Table.displayName = "Table";
|
|
723
|
-
var TableHeader =
|
|
1034
|
+
var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
724
1035
|
TableHeader.displayName = "TableHeader";
|
|
725
|
-
var TableBody =
|
|
1036
|
+
var TableBody = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
726
1037
|
TableBody.displayName = "TableBody";
|
|
727
|
-
var TableFooter =
|
|
1038
|
+
var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
728
1039
|
"tfoot",
|
|
729
1040
|
{
|
|
730
1041
|
ref,
|
|
@@ -733,8 +1044,8 @@ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
733
1044
|
}
|
|
734
1045
|
));
|
|
735
1046
|
TableFooter.displayName = "TableFooter";
|
|
736
|
-
var TableRow =
|
|
737
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1047
|
+
var TableRow = React14.forwardRef(
|
|
1048
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
738
1049
|
"tr",
|
|
739
1050
|
{
|
|
740
1051
|
ref,
|
|
@@ -747,7 +1058,7 @@ var TableRow = React11.forwardRef(
|
|
|
747
1058
|
)
|
|
748
1059
|
);
|
|
749
1060
|
TableRow.displayName = "TableRow";
|
|
750
|
-
var TableHead =
|
|
1061
|
+
var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
751
1062
|
"th",
|
|
752
1063
|
{
|
|
753
1064
|
ref,
|
|
@@ -759,7 +1070,7 @@ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
759
1070
|
}
|
|
760
1071
|
));
|
|
761
1072
|
TableHead.displayName = "TableHead";
|
|
762
|
-
var TableCell =
|
|
1073
|
+
var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
763
1074
|
"td",
|
|
764
1075
|
{
|
|
765
1076
|
ref,
|
|
@@ -768,16 +1079,16 @@ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
768
1079
|
}
|
|
769
1080
|
));
|
|
770
1081
|
TableCell.displayName = "TableCell";
|
|
771
|
-
var TableCaption =
|
|
1082
|
+
var TableCaption = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
772
1083
|
TableCaption.displayName = "TableCaption";
|
|
773
1084
|
|
|
774
1085
|
// src/components/table/Table.tsx
|
|
775
|
-
var
|
|
776
|
-
var Table2 =
|
|
777
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1086
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1087
|
+
var Table2 = React15.forwardRef(
|
|
1088
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Table, { ref, className, ...props })
|
|
778
1089
|
);
|
|
779
1090
|
Table2.displayName = "Table";
|
|
780
|
-
var TableHeader2 =
|
|
1091
|
+
var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
781
1092
|
TableHeader,
|
|
782
1093
|
{
|
|
783
1094
|
ref,
|
|
@@ -786,7 +1097,7 @@ var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
786
1097
|
}
|
|
787
1098
|
));
|
|
788
1099
|
TableHeader2.displayName = "TableHeader";
|
|
789
|
-
var TableBody2 =
|
|
1100
|
+
var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
790
1101
|
TableBody,
|
|
791
1102
|
{
|
|
792
1103
|
ref,
|
|
@@ -795,7 +1106,7 @@ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
795
1106
|
}
|
|
796
1107
|
));
|
|
797
1108
|
TableBody2.displayName = "TableBody";
|
|
798
|
-
var TableFooter2 =
|
|
1109
|
+
var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
799
1110
|
TableFooter,
|
|
800
1111
|
{
|
|
801
1112
|
ref,
|
|
@@ -807,8 +1118,8 @@ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
807
1118
|
}
|
|
808
1119
|
));
|
|
809
1120
|
TableFooter2.displayName = "TableFooter";
|
|
810
|
-
var TableRow2 =
|
|
811
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1121
|
+
var TableRow2 = React15.forwardRef(
|
|
1122
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
812
1123
|
TableRow,
|
|
813
1124
|
{
|
|
814
1125
|
ref,
|
|
@@ -821,7 +1132,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
821
1132
|
)
|
|
822
1133
|
);
|
|
823
1134
|
TableRow2.displayName = "TableRow";
|
|
824
|
-
var TableHead2 =
|
|
1135
|
+
var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
825
1136
|
TableHead,
|
|
826
1137
|
{
|
|
827
1138
|
ref,
|
|
@@ -833,7 +1144,7 @@ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
833
1144
|
}
|
|
834
1145
|
));
|
|
835
1146
|
TableHead2.displayName = "TableHead";
|
|
836
|
-
var TableCell2 =
|
|
1147
|
+
var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
837
1148
|
TableCell,
|
|
838
1149
|
{
|
|
839
1150
|
ref,
|
|
@@ -842,7 +1153,7 @@ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
842
1153
|
}
|
|
843
1154
|
));
|
|
844
1155
|
TableCell2.displayName = "TableCell";
|
|
845
|
-
var TableCaption2 =
|
|
1156
|
+
var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
846
1157
|
TableCaption,
|
|
847
1158
|
{
|
|
848
1159
|
ref,
|
|
@@ -853,17 +1164,17 @@ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
853
1164
|
TableCaption2.displayName = "TableCaption";
|
|
854
1165
|
|
|
855
1166
|
// src/components/item/Item.tsx
|
|
856
|
-
var
|
|
1167
|
+
var React17 = __toESM(require("react"), 1);
|
|
857
1168
|
|
|
858
1169
|
// src/primitives/item.tsx
|
|
859
1170
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
860
|
-
var
|
|
1171
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
861
1172
|
|
|
862
1173
|
// src/primitives/separator.tsx
|
|
863
|
-
var
|
|
1174
|
+
var React16 = __toESM(require("react"), 1);
|
|
864
1175
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
865
|
-
var
|
|
866
|
-
var
|
|
1176
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1177
|
+
var Separator2 = React16.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
867
1178
|
SeparatorPrimitive.Root,
|
|
868
1179
|
{
|
|
869
1180
|
ref,
|
|
@@ -877,12 +1188,12 @@ var Separator = React13.forwardRef(({ className, orientation = "horizontal", dec
|
|
|
877
1188
|
...props
|
|
878
1189
|
}
|
|
879
1190
|
));
|
|
880
|
-
|
|
1191
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
881
1192
|
|
|
882
1193
|
// src/primitives/item.tsx
|
|
883
|
-
var
|
|
1194
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
884
1195
|
function ItemGroup({ className, ...props }) {
|
|
885
|
-
return /* @__PURE__ */ (0,
|
|
1196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
886
1197
|
"div",
|
|
887
1198
|
{
|
|
888
1199
|
role: "list",
|
|
@@ -893,8 +1204,8 @@ function ItemGroup({ className, ...props }) {
|
|
|
893
1204
|
);
|
|
894
1205
|
}
|
|
895
1206
|
function ItemSeparator({ className, ...props }) {
|
|
896
|
-
return /* @__PURE__ */ (0,
|
|
897
|
-
|
|
1207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1208
|
+
Separator2,
|
|
898
1209
|
{
|
|
899
1210
|
"data-slot": "item-separator",
|
|
900
1211
|
orientation: "horizontal",
|
|
@@ -903,7 +1214,7 @@ function ItemSeparator({ className, ...props }) {
|
|
|
903
1214
|
}
|
|
904
1215
|
);
|
|
905
1216
|
}
|
|
906
|
-
var itemVariants = (0,
|
|
1217
|
+
var itemVariants = (0, import_class_variance_authority8.cva)(
|
|
907
1218
|
"group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
|
|
908
1219
|
{
|
|
909
1220
|
variants: {
|
|
@@ -923,7 +1234,7 @@ var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
|
923
1234
|
}
|
|
924
1235
|
}
|
|
925
1236
|
);
|
|
926
|
-
function
|
|
1237
|
+
function Item3({
|
|
927
1238
|
className,
|
|
928
1239
|
variant = "default",
|
|
929
1240
|
size = "default",
|
|
@@ -931,7 +1242,7 @@ function Item({
|
|
|
931
1242
|
...props
|
|
932
1243
|
}) {
|
|
933
1244
|
const Comp = asChild ? import_react_slot2.Slot : "div";
|
|
934
|
-
return /* @__PURE__ */ (0,
|
|
1245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
935
1246
|
Comp,
|
|
936
1247
|
{
|
|
937
1248
|
"data-slot": "item",
|
|
@@ -942,7 +1253,7 @@ function Item({
|
|
|
942
1253
|
}
|
|
943
1254
|
);
|
|
944
1255
|
}
|
|
945
|
-
var itemMediaVariants = (0,
|
|
1256
|
+
var itemMediaVariants = (0, import_class_variance_authority8.cva)(
|
|
946
1257
|
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
947
1258
|
{
|
|
948
1259
|
variants: {
|
|
@@ -962,7 +1273,7 @@ function ItemMedia({
|
|
|
962
1273
|
variant = "default",
|
|
963
1274
|
...props
|
|
964
1275
|
}) {
|
|
965
|
-
return /* @__PURE__ */ (0,
|
|
1276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
966
1277
|
"div",
|
|
967
1278
|
{
|
|
968
1279
|
"data-slot": "item-media",
|
|
@@ -973,7 +1284,7 @@ function ItemMedia({
|
|
|
973
1284
|
);
|
|
974
1285
|
}
|
|
975
1286
|
function ItemContent({ className, ...props }) {
|
|
976
|
-
return /* @__PURE__ */ (0,
|
|
1287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
977
1288
|
"div",
|
|
978
1289
|
{
|
|
979
1290
|
"data-slot": "item-content",
|
|
@@ -983,7 +1294,7 @@ function ItemContent({ className, ...props }) {
|
|
|
983
1294
|
);
|
|
984
1295
|
}
|
|
985
1296
|
function ItemTitle({ className, ...props }) {
|
|
986
|
-
return /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
987
1298
|
"div",
|
|
988
1299
|
{
|
|
989
1300
|
"data-slot": "item-title",
|
|
@@ -993,7 +1304,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
993
1304
|
);
|
|
994
1305
|
}
|
|
995
1306
|
function ItemDescription({ className, ...props }) {
|
|
996
|
-
return /* @__PURE__ */ (0,
|
|
1307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
997
1308
|
"p",
|
|
998
1309
|
{
|
|
999
1310
|
"data-slot": "item-description",
|
|
@@ -1007,10 +1318,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
1007
1318
|
);
|
|
1008
1319
|
}
|
|
1009
1320
|
function ItemActions({ className, ...props }) {
|
|
1010
|
-
return /* @__PURE__ */ (0,
|
|
1321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
1011
1322
|
}
|
|
1012
1323
|
function ItemHeader({ className, ...props }) {
|
|
1013
|
-
return /* @__PURE__ */ (0,
|
|
1324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1014
1325
|
"div",
|
|
1015
1326
|
{
|
|
1016
1327
|
"data-slot": "item-header",
|
|
@@ -1020,7 +1331,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
1020
1331
|
);
|
|
1021
1332
|
}
|
|
1022
1333
|
function ItemFooter({ className, ...props }) {
|
|
1023
|
-
return /* @__PURE__ */ (0,
|
|
1334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1024
1335
|
"div",
|
|
1025
1336
|
{
|
|
1026
1337
|
"data-slot": "item-footer",
|
|
@@ -1031,10 +1342,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
1031
1342
|
}
|
|
1032
1343
|
|
|
1033
1344
|
// src/components/item/Item.tsx
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
return /* @__PURE__ */ (0,
|
|
1037
|
-
|
|
1345
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1346
|
+
function Item4({ className, asChild, ...props }) {
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1348
|
+
Item3,
|
|
1038
1349
|
{
|
|
1039
1350
|
asChild,
|
|
1040
1351
|
className: cn(
|
|
@@ -1051,8 +1362,8 @@ function Item2({ className, asChild, ...props }) {
|
|
|
1051
1362
|
}
|
|
1052
1363
|
);
|
|
1053
1364
|
}
|
|
1054
|
-
var ItemMedia2 =
|
|
1055
|
-
return /* @__PURE__ */ (0,
|
|
1365
|
+
var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1056
1367
|
ItemMedia,
|
|
1057
1368
|
{
|
|
1058
1369
|
ref,
|
|
@@ -1062,8 +1373,8 @@ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1062
1373
|
);
|
|
1063
1374
|
});
|
|
1064
1375
|
ItemMedia2.displayName = "ItemMedia";
|
|
1065
|
-
var ItemTitle2 =
|
|
1066
|
-
return /* @__PURE__ */ (0,
|
|
1376
|
+
var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1067
1378
|
ItemTitle,
|
|
1068
1379
|
{
|
|
1069
1380
|
ref,
|
|
@@ -1073,8 +1384,8 @@ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1073
1384
|
);
|
|
1074
1385
|
});
|
|
1075
1386
|
ItemTitle2.displayName = "ItemTitle";
|
|
1076
|
-
var ItemDescription2 =
|
|
1077
|
-
return /* @__PURE__ */ (0,
|
|
1387
|
+
var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1078
1389
|
ItemDescription,
|
|
1079
1390
|
{
|
|
1080
1391
|
ref,
|
|
@@ -1084,8 +1395,8 @@ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1084
1395
|
);
|
|
1085
1396
|
});
|
|
1086
1397
|
ItemDescription2.displayName = "ItemDescription";
|
|
1087
|
-
var ItemSeparator2 =
|
|
1088
|
-
return /* @__PURE__ */ (0,
|
|
1398
|
+
var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1089
1400
|
ItemSeparator,
|
|
1090
1401
|
{
|
|
1091
1402
|
ref,
|
|
@@ -1097,14 +1408,14 @@ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1097
1408
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
1098
1409
|
|
|
1099
1410
|
// src/components/input/Input.tsx
|
|
1100
|
-
var
|
|
1411
|
+
var React19 = __toESM(require("react"), 1);
|
|
1101
1412
|
|
|
1102
1413
|
// src/primitives/input.tsx
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1105
|
-
var Input =
|
|
1414
|
+
var React18 = __toESM(require("react"), 1);
|
|
1415
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1416
|
+
var Input = React18.forwardRef(
|
|
1106
1417
|
({ className, type, ...props }, ref) => {
|
|
1107
|
-
return /* @__PURE__ */ (0,
|
|
1418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1108
1419
|
"input",
|
|
1109
1420
|
{
|
|
1110
1421
|
type,
|
|
@@ -1121,14 +1432,14 @@ var Input = React15.forwardRef(
|
|
|
1121
1432
|
Input.displayName = "Input";
|
|
1122
1433
|
|
|
1123
1434
|
// src/components/input/Input.tsx
|
|
1124
|
-
var
|
|
1125
|
-
var Input2 =
|
|
1435
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1436
|
+
var Input2 = React19.forwardRef(
|
|
1126
1437
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1127
|
-
const generatedId =
|
|
1438
|
+
const generatedId = React19.useId();
|
|
1128
1439
|
const inputId = id || generatedId;
|
|
1129
1440
|
const errorId = `${inputId}-error`;
|
|
1130
1441
|
const descriptionId = `${inputId}-description`;
|
|
1131
|
-
const inputElement = /* @__PURE__ */ (0,
|
|
1442
|
+
const inputElement = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1132
1443
|
Input,
|
|
1133
1444
|
{
|
|
1134
1445
|
ref,
|
|
@@ -1148,8 +1459,8 @@ var Input2 = React16.forwardRef(
|
|
|
1148
1459
|
}
|
|
1149
1460
|
);
|
|
1150
1461
|
if (!icon && !actionButton) {
|
|
1151
|
-
return /* @__PURE__ */ (0,
|
|
1152
|
-
label && /* @__PURE__ */ (0,
|
|
1462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1463
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1153
1464
|
"label",
|
|
1154
1465
|
{
|
|
1155
1466
|
htmlFor: inputId,
|
|
@@ -1162,9 +1473,9 @@ var Input2 = React16.forwardRef(
|
|
|
1162
1473
|
}
|
|
1163
1474
|
),
|
|
1164
1475
|
inputElement,
|
|
1165
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1166
|
-
description && /* @__PURE__ */ (0,
|
|
1167
|
-
error && /* @__PURE__ */ (0,
|
|
1476
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1477
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1478
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1168
1479
|
Typography,
|
|
1169
1480
|
{
|
|
1170
1481
|
variant: "xs",
|
|
@@ -1176,8 +1487,8 @@ var Input2 = React16.forwardRef(
|
|
|
1176
1487
|
] })
|
|
1177
1488
|
] });
|
|
1178
1489
|
}
|
|
1179
|
-
return /* @__PURE__ */ (0,
|
|
1180
|
-
label && /* @__PURE__ */ (0,
|
|
1490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1491
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1181
1492
|
"label",
|
|
1182
1493
|
{
|
|
1183
1494
|
htmlFor: inputId,
|
|
@@ -1189,14 +1500,14 @@ var Input2 = React16.forwardRef(
|
|
|
1189
1500
|
children: label
|
|
1190
1501
|
}
|
|
1191
1502
|
),
|
|
1192
|
-
/* @__PURE__ */ (0,
|
|
1193
|
-
icon && /* @__PURE__ */ (0,
|
|
1503
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative w-full", children: [
|
|
1504
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1194
1505
|
inputElement,
|
|
1195
|
-
actionButton && /* @__PURE__ */ (0,
|
|
1506
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1196
1507
|
] }),
|
|
1197
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1198
|
-
description && /* @__PURE__ */ (0,
|
|
1199
|
-
error && /* @__PURE__ */ (0,
|
|
1508
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1509
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1510
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1200
1511
|
] })
|
|
1201
1512
|
] });
|
|
1202
1513
|
}
|
|
@@ -1204,17 +1515,17 @@ var Input2 = React16.forwardRef(
|
|
|
1204
1515
|
Input2.displayName = "Input";
|
|
1205
1516
|
|
|
1206
1517
|
// src/components/checkbox/Checkbox.tsx
|
|
1207
|
-
var
|
|
1518
|
+
var React21 = __toESM(require("react"), 1);
|
|
1208
1519
|
var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1209
|
-
var
|
|
1210
|
-
var
|
|
1520
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1521
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1211
1522
|
|
|
1212
1523
|
// src/primitives/checkbox.tsx
|
|
1213
|
-
var
|
|
1524
|
+
var React20 = __toESM(require("react"), 1);
|
|
1214
1525
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1215
|
-
var
|
|
1216
|
-
var
|
|
1217
|
-
var Checkbox =
|
|
1526
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1527
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1528
|
+
var Checkbox = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1218
1529
|
CheckboxPrimitive.Root,
|
|
1219
1530
|
{
|
|
1220
1531
|
ref,
|
|
@@ -1223,24 +1534,24 @@ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1223
1534
|
className
|
|
1224
1535
|
),
|
|
1225
1536
|
...props,
|
|
1226
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1537
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" }) })
|
|
1227
1538
|
}
|
|
1228
1539
|
));
|
|
1229
1540
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1230
|
-
var CheckboxIndicator =
|
|
1541
|
+
var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1231
1542
|
CheckboxPrimitive.Indicator,
|
|
1232
1543
|
{
|
|
1233
1544
|
ref,
|
|
1234
1545
|
className: cn("grid place-content-center", className),
|
|
1235
1546
|
...props,
|
|
1236
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1547
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" })
|
|
1237
1548
|
}
|
|
1238
1549
|
));
|
|
1239
1550
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1240
1551
|
|
|
1241
1552
|
// src/components/checkbox/Checkbox.tsx
|
|
1242
|
-
var
|
|
1243
|
-
var checkboxVariants = (0,
|
|
1553
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1554
|
+
var checkboxVariants = (0, import_class_variance_authority9.cva)(
|
|
1244
1555
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1245
1556
|
{
|
|
1246
1557
|
variants: {
|
|
@@ -1261,7 +1572,7 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
|
1261
1572
|
}
|
|
1262
1573
|
}
|
|
1263
1574
|
);
|
|
1264
|
-
var Checkbox2 =
|
|
1575
|
+
var Checkbox2 = React21.forwardRef(
|
|
1265
1576
|
({
|
|
1266
1577
|
"aria-label": ariaLabel,
|
|
1267
1578
|
className,
|
|
@@ -1274,11 +1585,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1274
1585
|
disabled,
|
|
1275
1586
|
...props
|
|
1276
1587
|
}, ref) => {
|
|
1277
|
-
const generatedId =
|
|
1588
|
+
const generatedId = React21.useId();
|
|
1278
1589
|
const checkboxId = id || generatedId;
|
|
1279
1590
|
const errorId = `${checkboxId}-error`;
|
|
1280
|
-
return /* @__PURE__ */ (0,
|
|
1281
|
-
/* @__PURE__ */ (0,
|
|
1591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1282
1593
|
Checkbox,
|
|
1283
1594
|
{
|
|
1284
1595
|
ref,
|
|
@@ -1294,8 +1605,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1294
1605
|
className
|
|
1295
1606
|
),
|
|
1296
1607
|
...props,
|
|
1297
|
-
children: /* @__PURE__ */ (0,
|
|
1298
|
-
|
|
1608
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1609
|
+
import_lucide_react5.Check,
|
|
1299
1610
|
{
|
|
1300
1611
|
className: "h-4 w-4 text-current stroke-current",
|
|
1301
1612
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1303,8 +1614,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1303
1614
|
) })
|
|
1304
1615
|
}
|
|
1305
1616
|
) }),
|
|
1306
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1307
|
-
label && /* @__PURE__ */ (0,
|
|
1617
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1618
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1308
1619
|
"label",
|
|
1309
1620
|
{
|
|
1310
1621
|
htmlFor: checkboxId,
|
|
@@ -1316,8 +1627,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1316
1627
|
children: label
|
|
1317
1628
|
}
|
|
1318
1629
|
),
|
|
1319
|
-
description && /* @__PURE__ */ (0,
|
|
1320
|
-
error && /* @__PURE__ */ (0,
|
|
1630
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1631
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1321
1632
|
] })
|
|
1322
1633
|
] });
|
|
1323
1634
|
}
|
|
@@ -1325,11 +1636,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1325
1636
|
Checkbox2.displayName = "Checkbox";
|
|
1326
1637
|
|
|
1327
1638
|
// src/components/switch/Switch.tsx
|
|
1328
|
-
var
|
|
1639
|
+
var React22 = __toESM(require("react"), 1);
|
|
1329
1640
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
1330
|
-
var
|
|
1331
|
-
var
|
|
1332
|
-
var switchRootVariants = (0,
|
|
1641
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
1642
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1643
|
+
var switchRootVariants = (0, import_class_variance_authority10.cva)(
|
|
1333
1644
|
"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",
|
|
1334
1645
|
{
|
|
1335
1646
|
variants: {
|
|
@@ -1350,7 +1661,7 @@ var switchRootVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1350
1661
|
}
|
|
1351
1662
|
}
|
|
1352
1663
|
);
|
|
1353
|
-
var switchThumbVariants = (0,
|
|
1664
|
+
var switchThumbVariants = (0, import_class_variance_authority10.cva)(
|
|
1354
1665
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
1355
1666
|
{
|
|
1356
1667
|
variants: {
|
|
@@ -1365,7 +1676,7 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1365
1676
|
}
|
|
1366
1677
|
}
|
|
1367
1678
|
);
|
|
1368
|
-
var Switch =
|
|
1679
|
+
var Switch = React22.forwardRef(
|
|
1369
1680
|
({
|
|
1370
1681
|
"aria-label": ariaLabel,
|
|
1371
1682
|
className,
|
|
@@ -1378,11 +1689,11 @@ var Switch = React19.forwardRef(
|
|
|
1378
1689
|
disabled,
|
|
1379
1690
|
...props
|
|
1380
1691
|
}, ref) => {
|
|
1381
|
-
const generatedId =
|
|
1692
|
+
const generatedId = React22.useId();
|
|
1382
1693
|
const switchId = id || generatedId;
|
|
1383
1694
|
const errorId = `${switchId}-error`;
|
|
1384
|
-
return /* @__PURE__ */ (0,
|
|
1385
|
-
/* @__PURE__ */ (0,
|
|
1695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1386
1697
|
SwitchPrimitives.Root,
|
|
1387
1698
|
{
|
|
1388
1699
|
ref,
|
|
@@ -1397,11 +1708,11 @@ var Switch = React19.forwardRef(
|
|
|
1397
1708
|
className
|
|
1398
1709
|
),
|
|
1399
1710
|
...props,
|
|
1400
|
-
children: /* @__PURE__ */ (0,
|
|
1711
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1401
1712
|
}
|
|
1402
1713
|
),
|
|
1403
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1404
|
-
label && /* @__PURE__ */ (0,
|
|
1714
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1715
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1405
1716
|
"label",
|
|
1406
1717
|
{
|
|
1407
1718
|
htmlFor: switchId,
|
|
@@ -1412,8 +1723,8 @@ var Switch = React19.forwardRef(
|
|
|
1412
1723
|
children: label
|
|
1413
1724
|
}
|
|
1414
1725
|
),
|
|
1415
|
-
description && /* @__PURE__ */ (0,
|
|
1416
|
-
error && /* @__PURE__ */ (0,
|
|
1726
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1727
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1417
1728
|
] })
|
|
1418
1729
|
] });
|
|
1419
1730
|
}
|
|
@@ -1421,17 +1732,17 @@ var Switch = React19.forwardRef(
|
|
|
1421
1732
|
Switch.displayName = "Switch";
|
|
1422
1733
|
|
|
1423
1734
|
// src/components/select/Select.tsx
|
|
1424
|
-
var
|
|
1425
|
-
var
|
|
1735
|
+
var React24 = __toESM(require("react"), 1);
|
|
1736
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
1426
1737
|
|
|
1427
1738
|
// src/primitives/select.tsx
|
|
1428
|
-
var
|
|
1739
|
+
var React23 = __toESM(require("react"), 1);
|
|
1429
1740
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
1430
|
-
var
|
|
1431
|
-
var
|
|
1741
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1742
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1432
1743
|
var Select = SelectPrimitive.Root;
|
|
1433
1744
|
var SelectValue = SelectPrimitive.Value;
|
|
1434
|
-
var SelectTrigger =
|
|
1745
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1435
1746
|
SelectPrimitive.Trigger,
|
|
1436
1747
|
{
|
|
1437
1748
|
ref,
|
|
@@ -1442,32 +1753,32 @@ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
1442
1753
|
...props,
|
|
1443
1754
|
children: [
|
|
1444
1755
|
children,
|
|
1445
|
-
/* @__PURE__ */ (0,
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1446
1757
|
]
|
|
1447
1758
|
}
|
|
1448
1759
|
));
|
|
1449
1760
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1450
|
-
var SelectScrollUpButton =
|
|
1761
|
+
var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1451
1762
|
SelectPrimitive.ScrollUpButton,
|
|
1452
1763
|
{
|
|
1453
1764
|
ref,
|
|
1454
1765
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1455
1766
|
...props,
|
|
1456
|
-
children: /* @__PURE__ */ (0,
|
|
1767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronUp, { className: "h-4 w-4" })
|
|
1457
1768
|
}
|
|
1458
1769
|
));
|
|
1459
1770
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1460
|
-
var SelectScrollDownButton =
|
|
1771
|
+
var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1461
1772
|
SelectPrimitive.ScrollDownButton,
|
|
1462
1773
|
{
|
|
1463
1774
|
ref,
|
|
1464
1775
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1465
1776
|
...props,
|
|
1466
|
-
children: /* @__PURE__ */ (0,
|
|
1777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4" })
|
|
1467
1778
|
}
|
|
1468
1779
|
));
|
|
1469
1780
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1470
|
-
var SelectContent =
|
|
1781
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1471
1782
|
SelectPrimitive.Content,
|
|
1472
1783
|
{
|
|
1473
1784
|
ref,
|
|
@@ -1479,8 +1790,8 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1479
1790
|
position,
|
|
1480
1791
|
...props,
|
|
1481
1792
|
children: [
|
|
1482
|
-
/* @__PURE__ */ (0,
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1793
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1484
1795
|
SelectPrimitive.Viewport,
|
|
1485
1796
|
{
|
|
1486
1797
|
className: cn(
|
|
@@ -1490,12 +1801,12 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1490
1801
|
children
|
|
1491
1802
|
}
|
|
1492
1803
|
),
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1804
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
|
|
1494
1805
|
]
|
|
1495
1806
|
}
|
|
1496
1807
|
) }));
|
|
1497
1808
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1498
|
-
var SelectLabel =
|
|
1809
|
+
var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1499
1810
|
SelectPrimitive.Label,
|
|
1500
1811
|
{
|
|
1501
1812
|
ref,
|
|
@@ -1504,7 +1815,7 @@ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1504
1815
|
}
|
|
1505
1816
|
));
|
|
1506
1817
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1507
|
-
var SelectItem =
|
|
1818
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1508
1819
|
SelectPrimitive.Item,
|
|
1509
1820
|
{
|
|
1510
1821
|
ref,
|
|
@@ -1514,13 +1825,13 @@ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1514
1825
|
),
|
|
1515
1826
|
...props,
|
|
1516
1827
|
children: [
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1518
|
-
/* @__PURE__ */ (0,
|
|
1828
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" }) }) }),
|
|
1829
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemText, { children })
|
|
1519
1830
|
]
|
|
1520
1831
|
}
|
|
1521
1832
|
));
|
|
1522
1833
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1523
|
-
var SelectSeparator =
|
|
1834
|
+
var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1524
1835
|
SelectPrimitive.Separator,
|
|
1525
1836
|
{
|
|
1526
1837
|
ref,
|
|
@@ -1531,8 +1842,8 @@ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1531
1842
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1532
1843
|
|
|
1533
1844
|
// src/components/select/Select.tsx
|
|
1534
|
-
var
|
|
1535
|
-
var selectVariants = (0,
|
|
1845
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1846
|
+
var selectVariants = (0, import_class_variance_authority11.cva)(
|
|
1536
1847
|
"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",
|
|
1537
1848
|
{
|
|
1538
1849
|
variants: {
|
|
@@ -1554,7 +1865,7 @@ var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
|
1554
1865
|
}
|
|
1555
1866
|
}
|
|
1556
1867
|
);
|
|
1557
|
-
var Select2 =
|
|
1868
|
+
var Select2 = React24.forwardRef(
|
|
1558
1869
|
({
|
|
1559
1870
|
className,
|
|
1560
1871
|
variant,
|
|
@@ -1572,12 +1883,12 @@ var Select2 = React21.forwardRef(
|
|
|
1572
1883
|
name,
|
|
1573
1884
|
required
|
|
1574
1885
|
}, ref) => {
|
|
1575
|
-
const generatedId =
|
|
1886
|
+
const generatedId = React24.useId();
|
|
1576
1887
|
const selectId = id || generatedId;
|
|
1577
1888
|
const errorId = `${selectId}-error`;
|
|
1578
1889
|
const descriptionId = `${selectId}-description`;
|
|
1579
|
-
return /* @__PURE__ */ (0,
|
|
1580
|
-
label && /* @__PURE__ */ (0,
|
|
1890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1891
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1581
1892
|
"label",
|
|
1582
1893
|
{
|
|
1583
1894
|
htmlFor: selectId,
|
|
@@ -1589,7 +1900,7 @@ var Select2 = React21.forwardRef(
|
|
|
1589
1900
|
children: label
|
|
1590
1901
|
}
|
|
1591
1902
|
),
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1903
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1593
1904
|
Select,
|
|
1594
1905
|
{
|
|
1595
1906
|
value,
|
|
@@ -1599,7 +1910,7 @@ var Select2 = React21.forwardRef(
|
|
|
1599
1910
|
name,
|
|
1600
1911
|
required,
|
|
1601
1912
|
children: [
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1603
1914
|
SelectTrigger,
|
|
1604
1915
|
{
|
|
1605
1916
|
ref,
|
|
@@ -1611,33 +1922,33 @@ var Select2 = React21.forwardRef(
|
|
|
1611
1922
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1612
1923
|
className
|
|
1613
1924
|
),
|
|
1614
|
-
children: /* @__PURE__ */ (0,
|
|
1925
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectValue, { placeholder })
|
|
1615
1926
|
}
|
|
1616
1927
|
),
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1618
1929
|
]
|
|
1619
1930
|
}
|
|
1620
1931
|
),
|
|
1621
|
-
description && /* @__PURE__ */ (0,
|
|
1622
|
-
error && /* @__PURE__ */ (0,
|
|
1932
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1933
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1623
1934
|
] });
|
|
1624
1935
|
}
|
|
1625
1936
|
);
|
|
1626
1937
|
Select2.displayName = "Select";
|
|
1627
1938
|
|
|
1628
1939
|
// src/components/country-select/CountrySelect.tsx
|
|
1629
|
-
var
|
|
1630
|
-
var
|
|
1940
|
+
var React29 = __toESM(require("react"), 1);
|
|
1941
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1631
1942
|
|
|
1632
1943
|
// src/components/icon/Icon.tsx
|
|
1633
|
-
var
|
|
1634
|
-
var
|
|
1944
|
+
var React25 = __toESM(require("react"), 1);
|
|
1945
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1635
1946
|
var iconStrokeMap = {
|
|
1636
1947
|
16: 1.4,
|
|
1637
1948
|
24: 1.6,
|
|
1638
1949
|
32: 1.8
|
|
1639
1950
|
};
|
|
1640
|
-
var Icon2 =
|
|
1951
|
+
var Icon2 = React25.forwardRef(
|
|
1641
1952
|
({
|
|
1642
1953
|
icon: IconComponent,
|
|
1643
1954
|
size,
|
|
@@ -1649,7 +1960,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1649
1960
|
const strokeWidth = iconStrokeMap[size];
|
|
1650
1961
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1651
1962
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1652
|
-
return /* @__PURE__ */ (0,
|
|
1963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1653
1964
|
IconComponent,
|
|
1654
1965
|
{
|
|
1655
1966
|
ref,
|
|
@@ -1664,12 +1975,12 @@ var Icon2 = React22.forwardRef(
|
|
|
1664
1975
|
Icon2.displayName = "Icon";
|
|
1665
1976
|
|
|
1666
1977
|
// src/primitives/popover.tsx
|
|
1667
|
-
var
|
|
1978
|
+
var React26 = __toESM(require("react"), 1);
|
|
1668
1979
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1669
|
-
var
|
|
1980
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1670
1981
|
var Popover = PopoverPrimitive.Root;
|
|
1671
1982
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1672
|
-
var PopoverContent =
|
|
1983
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1673
1984
|
PopoverPrimitive.Content,
|
|
1674
1985
|
{
|
|
1675
1986
|
ref,
|
|
@@ -1685,17 +1996,17 @@ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffs
|
|
|
1685
1996
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1686
1997
|
|
|
1687
1998
|
// src/primitives/command.tsx
|
|
1688
|
-
var
|
|
1999
|
+
var React28 = __toESM(require("react"), 1);
|
|
1689
2000
|
var import_cmdk = require("cmdk");
|
|
1690
|
-
var
|
|
2001
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1691
2002
|
|
|
1692
2003
|
// src/primitives/dialog.tsx
|
|
1693
|
-
var
|
|
2004
|
+
var React27 = __toESM(require("react"), 1);
|
|
1694
2005
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
2006
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2007
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1697
2008
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1698
|
-
var DialogOverlay2 =
|
|
2009
|
+
var DialogOverlay2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1699
2010
|
DialogPrimitive2.Overlay,
|
|
1700
2011
|
{
|
|
1701
2012
|
ref,
|
|
@@ -1707,9 +2018,9 @@ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1707
2018
|
}
|
|
1708
2019
|
));
|
|
1709
2020
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1710
|
-
var DialogContent2 =
|
|
1711
|
-
/* @__PURE__ */ (0,
|
|
1712
|
-
/* @__PURE__ */ (0,
|
|
2021
|
+
var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(DialogPortal2, { children: [
|
|
2022
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogOverlay2, {}),
|
|
2023
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1713
2024
|
DialogPrimitive2.Content,
|
|
1714
2025
|
{
|
|
1715
2026
|
ref,
|
|
@@ -1720,18 +2031,18 @@ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1720
2031
|
...props,
|
|
1721
2032
|
children: [
|
|
1722
2033
|
children,
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1725
|
-
/* @__PURE__ */ (0,
|
|
2034
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.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: [
|
|
2035
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.X, { className: "h-4 w-4" }),
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1726
2037
|
] })
|
|
1727
2038
|
]
|
|
1728
2039
|
}
|
|
1729
2040
|
)
|
|
1730
2041
|
] }));
|
|
1731
2042
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1732
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2043
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1733
2044
|
DialogHeader2.displayName = "DialogHeader";
|
|
1734
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2045
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1735
2046
|
"div",
|
|
1736
2047
|
{
|
|
1737
2048
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1739,7 +2050,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_
|
|
|
1739
2050
|
}
|
|
1740
2051
|
);
|
|
1741
2052
|
DialogFooter2.displayName = "DialogFooter";
|
|
1742
|
-
var DialogTitle2 =
|
|
2053
|
+
var DialogTitle2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1743
2054
|
DialogPrimitive2.Title,
|
|
1744
2055
|
{
|
|
1745
2056
|
ref,
|
|
@@ -1748,7 +2059,7 @@ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1748
2059
|
}
|
|
1749
2060
|
));
|
|
1750
2061
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1751
|
-
var DialogDescription2 =
|
|
2062
|
+
var DialogDescription2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1752
2063
|
DialogPrimitive2.Description,
|
|
1753
2064
|
{
|
|
1754
2065
|
ref,
|
|
@@ -1759,8 +2070,8 @@ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1759
2070
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1760
2071
|
|
|
1761
2072
|
// src/primitives/command.tsx
|
|
1762
|
-
var
|
|
1763
|
-
var Command =
|
|
2073
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2074
|
+
var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1764
2075
|
import_cmdk.Command,
|
|
1765
2076
|
{
|
|
1766
2077
|
ref,
|
|
@@ -1772,9 +2083,9 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1772
2083
|
}
|
|
1773
2084
|
));
|
|
1774
2085
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1775
|
-
var CommandInput =
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1777
|
-
/* @__PURE__ */ (0,
|
|
2086
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2088
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1778
2089
|
import_cmdk.Command.Input,
|
|
1779
2090
|
{
|
|
1780
2091
|
ref,
|
|
@@ -1787,7 +2098,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1787
2098
|
)
|
|
1788
2099
|
] }));
|
|
1789
2100
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1790
|
-
var CommandList =
|
|
2101
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1791
2102
|
import_cmdk.Command.List,
|
|
1792
2103
|
{
|
|
1793
2104
|
ref,
|
|
@@ -1796,9 +2107,9 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1796
2107
|
}
|
|
1797
2108
|
));
|
|
1798
2109
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1799
|
-
var CommandEmpty =
|
|
2110
|
+
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1800
2111
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1801
|
-
var CommandGroup =
|
|
2112
|
+
var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1802
2113
|
import_cmdk.Command.Group,
|
|
1803
2114
|
{
|
|
1804
2115
|
ref,
|
|
@@ -1810,7 +2121,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1810
2121
|
}
|
|
1811
2122
|
));
|
|
1812
2123
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1813
|
-
var CommandSeparator =
|
|
2124
|
+
var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1814
2125
|
import_cmdk.Command.Separator,
|
|
1815
2126
|
{
|
|
1816
2127
|
ref,
|
|
@@ -1819,7 +2130,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1819
2130
|
}
|
|
1820
2131
|
));
|
|
1821
2132
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1822
|
-
var CommandItem =
|
|
2133
|
+
var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1823
2134
|
import_cmdk.Command.Item,
|
|
1824
2135
|
{
|
|
1825
2136
|
ref,
|
|
@@ -1832,7 +2143,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1832
2143
|
));
|
|
1833
2144
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1834
2145
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1835
|
-
return /* @__PURE__ */ (0,
|
|
2146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1836
2147
|
"span",
|
|
1837
2148
|
{
|
|
1838
2149
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1983,8 +2294,8 @@ var isEUCountry = (countryCode) => {
|
|
|
1983
2294
|
};
|
|
1984
2295
|
|
|
1985
2296
|
// src/components/country-select/CountrySelect.tsx
|
|
1986
|
-
var
|
|
1987
|
-
var CountrySelect =
|
|
2297
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2298
|
+
var CountrySelect = React29.forwardRef(
|
|
1988
2299
|
({
|
|
1989
2300
|
value,
|
|
1990
2301
|
onValueChange,
|
|
@@ -1994,10 +2305,10 @@ var CountrySelect = React26.forwardRef(
|
|
|
1994
2305
|
align = "center",
|
|
1995
2306
|
sideOffset = 4
|
|
1996
2307
|
}, ref) => {
|
|
1997
|
-
const [open, setOpen] =
|
|
1998
|
-
const selectedCountry =
|
|
1999
|
-
return /* @__PURE__ */ (0,
|
|
2000
|
-
/* @__PURE__ */ (0,
|
|
2308
|
+
const [open, setOpen] = React29.useState(false);
|
|
2309
|
+
const selectedCountry = React29.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
2311
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2001
2312
|
"button",
|
|
2002
2313
|
{
|
|
2003
2314
|
ref,
|
|
@@ -2018,29 +2329,29 @@ var CountrySelect = React26.forwardRef(
|
|
|
2018
2329
|
className
|
|
2019
2330
|
),
|
|
2020
2331
|
children: [
|
|
2021
|
-
/* @__PURE__ */ (0,
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2024
|
-
/* @__PURE__ */ (0,
|
|
2332
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2333
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2334
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
2335
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
2025
2336
|
"(",
|
|
2026
2337
|
selectedCountry.code,
|
|
2027
2338
|
")"
|
|
2028
2339
|
] })
|
|
2029
|
-
] }) : /* @__PURE__ */ (0,
|
|
2030
|
-
/* @__PURE__ */ (0,
|
|
2340
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2031
2342
|
Icon2,
|
|
2032
2343
|
{
|
|
2033
|
-
icon:
|
|
2344
|
+
icon: import_lucide_react9.Globe,
|
|
2034
2345
|
size: 16,
|
|
2035
2346
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
2036
2347
|
}
|
|
2037
2348
|
),
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
2039
2350
|
] }) }),
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2351
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2041
2352
|
Icon2,
|
|
2042
2353
|
{
|
|
2043
|
-
icon:
|
|
2354
|
+
icon: import_lucide_react9.ChevronDown,
|
|
2044
2355
|
size: 16,
|
|
2045
2356
|
className: cn(
|
|
2046
2357
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -2052,17 +2363,17 @@ var CountrySelect = React26.forwardRef(
|
|
|
2052
2363
|
]
|
|
2053
2364
|
}
|
|
2054
2365
|
) }),
|
|
2055
|
-
/* @__PURE__ */ (0,
|
|
2366
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2056
2367
|
PopoverContent,
|
|
2057
2368
|
{
|
|
2058
2369
|
align,
|
|
2059
2370
|
sideOffset,
|
|
2060
2371
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2061
|
-
children: /* @__PURE__ */ (0,
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2063
|
-
/* @__PURE__ */ (0,
|
|
2064
|
-
/* @__PURE__ */ (0,
|
|
2065
|
-
/* @__PURE__ */ (0,
|
|
2372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Command, { children: [
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CommandList, { children: [
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2066
2377
|
CommandItem,
|
|
2067
2378
|
{
|
|
2068
2379
|
value: `${country.name} ${country.code}`,
|
|
@@ -2076,12 +2387,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
2076
2387
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
2077
2388
|
),
|
|
2078
2389
|
children: [
|
|
2079
|
-
/* @__PURE__ */ (0,
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2082
|
-
/* @__PURE__ */ (0,
|
|
2390
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2391
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2392
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
2083
2394
|
] }),
|
|
2084
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
2395
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
2085
2396
|
]
|
|
2086
2397
|
},
|
|
2087
2398
|
country.code
|
|
@@ -2096,15 +2407,15 @@ var CountrySelect = React26.forwardRef(
|
|
|
2096
2407
|
CountrySelect.displayName = "CountrySelect";
|
|
2097
2408
|
|
|
2098
2409
|
// src/components/text-area/TextArea.tsx
|
|
2099
|
-
var
|
|
2100
|
-
var
|
|
2410
|
+
var React31 = __toESM(require("react"), 1);
|
|
2411
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
2101
2412
|
|
|
2102
2413
|
// src/primitives/textarea.tsx
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var Textarea =
|
|
2414
|
+
var React30 = __toESM(require("react"), 1);
|
|
2415
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2416
|
+
var Textarea = React30.forwardRef(
|
|
2106
2417
|
({ className, ...props }, ref) => {
|
|
2107
|
-
return /* @__PURE__ */ (0,
|
|
2418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2108
2419
|
"textarea",
|
|
2109
2420
|
{
|
|
2110
2421
|
className: cn(
|
|
@@ -2120,8 +2431,8 @@ var Textarea = React27.forwardRef(
|
|
|
2120
2431
|
Textarea.displayName = "Textarea";
|
|
2121
2432
|
|
|
2122
2433
|
// src/components/text-area/TextArea.tsx
|
|
2123
|
-
var
|
|
2124
|
-
var textAreaVariants = (0,
|
|
2434
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2435
|
+
var textAreaVariants = (0, import_class_variance_authority12.cva)(
|
|
2125
2436
|
"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",
|
|
2126
2437
|
{
|
|
2127
2438
|
variants: {
|
|
@@ -2143,7 +2454,7 @@ var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
|
2143
2454
|
}
|
|
2144
2455
|
}
|
|
2145
2456
|
);
|
|
2146
|
-
var TextArea =
|
|
2457
|
+
var TextArea = React31.forwardRef(
|
|
2147
2458
|
({
|
|
2148
2459
|
className,
|
|
2149
2460
|
variant,
|
|
@@ -2163,13 +2474,13 @@ var TextArea = React28.forwardRef(
|
|
|
2163
2474
|
actionButton,
|
|
2164
2475
|
...props
|
|
2165
2476
|
}, ref) => {
|
|
2166
|
-
const generatedId =
|
|
2477
|
+
const generatedId = React31.useId();
|
|
2167
2478
|
const textareaId = id || generatedId;
|
|
2168
2479
|
const errorId = `${textareaId}-error`;
|
|
2169
2480
|
const descriptionId = `${textareaId}-description`;
|
|
2170
2481
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2171
|
-
return /* @__PURE__ */ (0,
|
|
2172
|
-
label && /* @__PURE__ */ (0,
|
|
2482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2483
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2173
2484
|
"label",
|
|
2174
2485
|
{
|
|
2175
2486
|
htmlFor: textareaId,
|
|
@@ -2181,9 +2492,9 @@ var TextArea = React28.forwardRef(
|
|
|
2181
2492
|
children: label
|
|
2182
2493
|
}
|
|
2183
2494
|
),
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2185
|
-
icon && /* @__PURE__ */ (0,
|
|
2186
|
-
/* @__PURE__ */ (0,
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
|
|
2496
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2187
2498
|
Textarea,
|
|
2188
2499
|
{
|
|
2189
2500
|
ref,
|
|
@@ -2208,13 +2519,13 @@ var TextArea = React28.forwardRef(
|
|
|
2208
2519
|
...props
|
|
2209
2520
|
}
|
|
2210
2521
|
),
|
|
2211
|
-
secondaryIcon && /* @__PURE__ */ (0,
|
|
2212
|
-
actionButton && /* @__PURE__ */ (0,
|
|
2522
|
+
secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2523
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2213
2524
|
] }),
|
|
2214
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2215
|
-
description && /* @__PURE__ */ (0,
|
|
2216
|
-
(error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2217
|
-
showCount && maxLength && /* @__PURE__ */ (0,
|
|
2525
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2526
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2527
|
+
(error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2528
|
+
showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2218
2529
|
Typography,
|
|
2219
2530
|
{
|
|
2220
2531
|
variant: "xs",
|
|
@@ -2228,7 +2539,7 @@ var TextArea = React28.forwardRef(
|
|
|
2228
2539
|
]
|
|
2229
2540
|
}
|
|
2230
2541
|
),
|
|
2231
|
-
error && /* @__PURE__ */ (0,
|
|
2542
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2232
2543
|
Typography,
|
|
2233
2544
|
{
|
|
2234
2545
|
variant: "xs",
|
|
@@ -2245,22 +2556,22 @@ var TextArea = React28.forwardRef(
|
|
|
2245
2556
|
TextArea.displayName = "TextArea";
|
|
2246
2557
|
|
|
2247
2558
|
// src/primitives/label.tsx
|
|
2248
|
-
var
|
|
2559
|
+
var React32 = __toESM(require("react"), 1);
|
|
2249
2560
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
2250
|
-
var
|
|
2251
|
-
var
|
|
2252
|
-
var labelVariants = (0,
|
|
2561
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
2562
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2563
|
+
var labelVariants = (0, import_class_variance_authority13.cva)(
|
|
2253
2564
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2254
2565
|
);
|
|
2255
|
-
var
|
|
2256
|
-
|
|
2566
|
+
var Label3 = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2567
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2257
2568
|
|
|
2258
2569
|
// src/primitives/field.tsx
|
|
2259
2570
|
var import_react = require("react");
|
|
2260
|
-
var
|
|
2261
|
-
var
|
|
2571
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
2572
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2262
2573
|
function FieldSet({ className, ...props }) {
|
|
2263
|
-
return /* @__PURE__ */ (0,
|
|
2574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2264
2575
|
"fieldset",
|
|
2265
2576
|
{
|
|
2266
2577
|
"data-slot": "field-set",
|
|
@@ -2278,7 +2589,7 @@ function FieldLegend({
|
|
|
2278
2589
|
variant = "legend",
|
|
2279
2590
|
...props
|
|
2280
2591
|
}) {
|
|
2281
|
-
return /* @__PURE__ */ (0,
|
|
2592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2282
2593
|
"legend",
|
|
2283
2594
|
{
|
|
2284
2595
|
"data-slot": "field-legend",
|
|
@@ -2294,7 +2605,7 @@ function FieldLegend({
|
|
|
2294
2605
|
);
|
|
2295
2606
|
}
|
|
2296
2607
|
function FieldGroup({ className, ...props }) {
|
|
2297
|
-
return /* @__PURE__ */ (0,
|
|
2608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2298
2609
|
"div",
|
|
2299
2610
|
{
|
|
2300
2611
|
"data-slot": "field-group",
|
|
@@ -2306,7 +2617,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
2306
2617
|
}
|
|
2307
2618
|
);
|
|
2308
2619
|
}
|
|
2309
|
-
var fieldVariants = (0,
|
|
2620
|
+
var fieldVariants = (0, import_class_variance_authority14.cva)(
|
|
2310
2621
|
"group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
|
|
2311
2622
|
{
|
|
2312
2623
|
variants: {
|
|
@@ -2334,7 +2645,7 @@ function Field({
|
|
|
2334
2645
|
orientation = "vertical",
|
|
2335
2646
|
...props
|
|
2336
2647
|
}) {
|
|
2337
|
-
return /* @__PURE__ */ (0,
|
|
2648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2338
2649
|
"div",
|
|
2339
2650
|
{
|
|
2340
2651
|
role: "group",
|
|
@@ -2346,7 +2657,7 @@ function Field({
|
|
|
2346
2657
|
);
|
|
2347
2658
|
}
|
|
2348
2659
|
function FieldContent({ className, ...props }) {
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2350
2661
|
"div",
|
|
2351
2662
|
{
|
|
2352
2663
|
"data-slot": "field-content",
|
|
@@ -2356,8 +2667,8 @@ function FieldContent({ className, ...props }) {
|
|
|
2356
2667
|
);
|
|
2357
2668
|
}
|
|
2358
2669
|
function FieldLabel({ className, ...props }) {
|
|
2359
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
-
|
|
2670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2671
|
+
Label3,
|
|
2361
2672
|
{
|
|
2362
2673
|
"data-slot": "field-label",
|
|
2363
2674
|
className: cn(
|
|
@@ -2371,7 +2682,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2371
2682
|
);
|
|
2372
2683
|
}
|
|
2373
2684
|
function FieldTitle({ className, ...props }) {
|
|
2374
|
-
return /* @__PURE__ */ (0,
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2375
2686
|
"div",
|
|
2376
2687
|
{
|
|
2377
2688
|
"data-slot": "field-label",
|
|
@@ -2384,7 +2695,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2384
2695
|
);
|
|
2385
2696
|
}
|
|
2386
2697
|
function FieldDescription({ className, ...props }) {
|
|
2387
|
-
return /* @__PURE__ */ (0,
|
|
2698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2388
2699
|
"p",
|
|
2389
2700
|
{
|
|
2390
2701
|
"data-slot": "field-description",
|
|
@@ -2403,7 +2714,7 @@ function FieldSeparator({
|
|
|
2403
2714
|
className,
|
|
2404
2715
|
...props
|
|
2405
2716
|
}) {
|
|
2406
|
-
return /* @__PURE__ */ (0,
|
|
2717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2407
2718
|
"div",
|
|
2408
2719
|
{
|
|
2409
2720
|
"data-slot": "field-separator",
|
|
@@ -2414,8 +2725,8 @@ function FieldSeparator({
|
|
|
2414
2725
|
),
|
|
2415
2726
|
...props,
|
|
2416
2727
|
children: [
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2418
|
-
children && /* @__PURE__ */ (0,
|
|
2728
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2729
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2419
2730
|
"span",
|
|
2420
2731
|
{
|
|
2421
2732
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2443,12 +2754,12 @@ function FieldError({
|
|
|
2443
2754
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2444
2755
|
return errors[0].message;
|
|
2445
2756
|
}
|
|
2446
|
-
return /* @__PURE__ */ (0,
|
|
2757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("li", { children: error.message }, index)) });
|
|
2447
2758
|
}, [children, errors]);
|
|
2448
2759
|
if (!content) {
|
|
2449
2760
|
return null;
|
|
2450
2761
|
}
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2452
2763
|
"div",
|
|
2453
2764
|
{
|
|
2454
2765
|
role: "alert",
|
|
@@ -2461,11 +2772,11 @@ function FieldError({
|
|
|
2461
2772
|
}
|
|
2462
2773
|
|
|
2463
2774
|
// src/components/link/Link.tsx
|
|
2464
|
-
var
|
|
2465
|
-
var
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2468
|
-
var linkVariants = (0,
|
|
2775
|
+
var React33 = __toESM(require("react"), 1);
|
|
2776
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
2777
|
+
var import_lucide_react10 = require("lucide-react");
|
|
2778
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2779
|
+
var linkVariants = (0, import_class_variance_authority15.cva)(
|
|
2469
2780
|
"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",
|
|
2470
2781
|
{
|
|
2471
2782
|
variants: {
|
|
@@ -2489,7 +2800,7 @@ var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
|
2489
2800
|
}
|
|
2490
2801
|
}
|
|
2491
2802
|
);
|
|
2492
|
-
var
|
|
2803
|
+
var Link2 = React33.forwardRef(
|
|
2493
2804
|
({
|
|
2494
2805
|
className,
|
|
2495
2806
|
variant,
|
|
@@ -2502,7 +2813,7 @@ var Link = React30.forwardRef(
|
|
|
2502
2813
|
...props
|
|
2503
2814
|
}, ref) => {
|
|
2504
2815
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2505
|
-
return /* @__PURE__ */ (0,
|
|
2816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2506
2817
|
"a",
|
|
2507
2818
|
{
|
|
2508
2819
|
ref,
|
|
@@ -2518,21 +2829,21 @@ var Link = React30.forwardRef(
|
|
|
2518
2829
|
},
|
|
2519
2830
|
children: [
|
|
2520
2831
|
children,
|
|
2521
|
-
icon && /* @__PURE__ */ (0,
|
|
2522
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
2832
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
2833
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon2, { icon: import_lucide_react10.ExternalLink, size: 16 }) })
|
|
2523
2834
|
]
|
|
2524
2835
|
}
|
|
2525
2836
|
);
|
|
2526
2837
|
}
|
|
2527
2838
|
);
|
|
2528
|
-
|
|
2839
|
+
Link2.displayName = "Link";
|
|
2529
2840
|
|
|
2530
2841
|
// src/components/container/Container.tsx
|
|
2531
|
-
var
|
|
2842
|
+
var React34 = __toESM(require("react"), 1);
|
|
2532
2843
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
2533
|
-
var
|
|
2534
|
-
var
|
|
2535
|
-
var containerVariants = (0,
|
|
2844
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
2845
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2846
|
+
var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-auto", {
|
|
2536
2847
|
variants: {
|
|
2537
2848
|
size: {
|
|
2538
2849
|
sm: "max-w-3xl",
|
|
@@ -2553,10 +2864,10 @@ var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-au
|
|
|
2553
2864
|
padding: "md"
|
|
2554
2865
|
}
|
|
2555
2866
|
});
|
|
2556
|
-
var Container =
|
|
2867
|
+
var Container = React34.forwardRef(
|
|
2557
2868
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2558
2869
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
2559
|
-
return /* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2560
2871
|
Component,
|
|
2561
2872
|
{
|
|
2562
2873
|
ref,
|
|
@@ -2570,11 +2881,11 @@ var Container = React31.forwardRef(
|
|
|
2570
2881
|
Container.displayName = "Container";
|
|
2571
2882
|
|
|
2572
2883
|
// src/components/grid/Grid.tsx
|
|
2573
|
-
var
|
|
2574
|
-
var
|
|
2884
|
+
var React35 = __toESM(require("react"), 1);
|
|
2885
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2575
2886
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2576
|
-
var
|
|
2577
|
-
var gridVariants = (0,
|
|
2887
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2888
|
+
var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
|
|
2578
2889
|
variants: {
|
|
2579
2890
|
align: {
|
|
2580
2891
|
start: "items-start",
|
|
@@ -2596,10 +2907,10 @@ var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
|
2596
2907
|
justify: "start"
|
|
2597
2908
|
}
|
|
2598
2909
|
});
|
|
2599
|
-
var Grid =
|
|
2910
|
+
var Grid = React35.forwardRef(
|
|
2600
2911
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2601
2912
|
const Component = asChild ? import_react_slot4.Slot : "div";
|
|
2602
|
-
return /* @__PURE__ */ (0,
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2603
2914
|
Component,
|
|
2604
2915
|
{
|
|
2605
2916
|
ref,
|
|
@@ -2621,11 +2932,11 @@ var Grid = React32.forwardRef(
|
|
|
2621
2932
|
Grid.displayName = "Grid";
|
|
2622
2933
|
|
|
2623
2934
|
// src/components/box/Box.tsx
|
|
2624
|
-
var
|
|
2625
|
-
var
|
|
2935
|
+
var React36 = __toESM(require("react"), 1);
|
|
2936
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2626
2937
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
2627
|
-
var
|
|
2628
|
-
var boxVariants = (0,
|
|
2938
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2939
|
+
var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
|
|
2629
2940
|
variants: {
|
|
2630
2941
|
direction: {
|
|
2631
2942
|
row: "flex-row",
|
|
@@ -2661,10 +2972,10 @@ var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
|
2661
2972
|
wrap: "nowrap"
|
|
2662
2973
|
}
|
|
2663
2974
|
});
|
|
2664
|
-
var Box =
|
|
2975
|
+
var Box = React36.forwardRef(
|
|
2665
2976
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2666
2977
|
const Component = asChild ? import_react_slot5.Slot : "div";
|
|
2667
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2668
2979
|
Component,
|
|
2669
2980
|
{
|
|
2670
2981
|
ref,
|
|
@@ -2682,16 +2993,16 @@ var Box = React33.forwardRef(
|
|
|
2682
2993
|
Box.displayName = "Box";
|
|
2683
2994
|
|
|
2684
2995
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2685
|
-
var
|
|
2686
|
-
var
|
|
2687
|
-
var BergetLogo =
|
|
2996
|
+
var React37 = __toESM(require("react"), 1);
|
|
2997
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2998
|
+
var BergetLogo = React37.forwardRef(
|
|
2688
2999
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2689
3000
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2690
3001
|
if (variant === "symbol") {
|
|
2691
3002
|
const aspectRatio2 = 463 / 419;
|
|
2692
3003
|
const width2 = size * aspectRatio2;
|
|
2693
3004
|
const height2 = size;
|
|
2694
|
-
return /* @__PURE__ */ (0,
|
|
3005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2695
3006
|
"svg",
|
|
2696
3007
|
{
|
|
2697
3008
|
ref,
|
|
@@ -2704,7 +3015,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2704
3015
|
"aria-label": "Berget symbol",
|
|
2705
3016
|
className: cn("inline-block", className),
|
|
2706
3017
|
...props,
|
|
2707
|
-
children: /* @__PURE__ */ (0,
|
|
3018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2708
3019
|
"path",
|
|
2709
3020
|
{
|
|
2710
3021
|
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",
|
|
@@ -2717,7 +3028,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2717
3028
|
const aspectRatio = 793.63 / 204.37;
|
|
2718
3029
|
const width = size * aspectRatio;
|
|
2719
3030
|
const height = size;
|
|
2720
|
-
return /* @__PURE__ */ (0,
|
|
3031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2721
3032
|
"svg",
|
|
2722
3033
|
{
|
|
2723
3034
|
ref,
|
|
@@ -2731,59 +3042,59 @@ var BergetLogo = React34.forwardRef(
|
|
|
2731
3042
|
className: cn("inline-block", className),
|
|
2732
3043
|
...props,
|
|
2733
3044
|
children: [
|
|
2734
|
-
/* @__PURE__ */ (0,
|
|
2735
|
-
/* @__PURE__ */ (0,
|
|
3045
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("g", { style: { fill: fillColor }, children: [
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2736
3047
|
"path",
|
|
2737
3048
|
{
|
|
2738
3049
|
className: "berget-logotype-fill",
|
|
2739
3050
|
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"
|
|
2740
3051
|
}
|
|
2741
3052
|
),
|
|
2742
|
-
/* @__PURE__ */ (0,
|
|
3053
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2743
3054
|
"path",
|
|
2744
3055
|
{
|
|
2745
3056
|
className: "berget-logotype-fill",
|
|
2746
3057
|
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"
|
|
2747
3058
|
}
|
|
2748
3059
|
),
|
|
2749
|
-
/* @__PURE__ */ (0,
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2750
3061
|
"path",
|
|
2751
3062
|
{
|
|
2752
3063
|
className: "berget-logotype-fill",
|
|
2753
3064
|
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"
|
|
2754
3065
|
}
|
|
2755
3066
|
),
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
3067
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2757
3068
|
"path",
|
|
2758
3069
|
{
|
|
2759
3070
|
className: "berget-logotype-fill",
|
|
2760
3071
|
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"
|
|
2761
3072
|
}
|
|
2762
3073
|
),
|
|
2763
|
-
/* @__PURE__ */ (0,
|
|
3074
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2764
3075
|
"path",
|
|
2765
3076
|
{
|
|
2766
3077
|
className: "berget-logotype-fill",
|
|
2767
3078
|
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"
|
|
2768
3079
|
}
|
|
2769
3080
|
),
|
|
2770
|
-
/* @__PURE__ */ (0,
|
|
3081
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2771
3082
|
"path",
|
|
2772
3083
|
{
|
|
2773
3084
|
className: "berget-logotype-fill",
|
|
2774
3085
|
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"
|
|
2775
3086
|
}
|
|
2776
3087
|
),
|
|
2777
|
-
/* @__PURE__ */ (0,
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2778
3089
|
"path",
|
|
2779
3090
|
{
|
|
2780
3091
|
className: "berget-logotype-fill",
|
|
2781
3092
|
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"
|
|
2782
3093
|
}
|
|
2783
3094
|
),
|
|
2784
|
-
/* @__PURE__ */ (0,
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2785
3096
|
] }),
|
|
2786
|
-
/* @__PURE__ */ (0,
|
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2787
3098
|
"path",
|
|
2788
3099
|
{
|
|
2789
3100
|
style: { fill: fillColor },
|
|
@@ -2798,13 +3109,13 @@ var BergetLogo = React34.forwardRef(
|
|
|
2798
3109
|
BergetLogo.displayName = "BergetLogo";
|
|
2799
3110
|
|
|
2800
3111
|
// src/components/language-select/LanguageSelect.tsx
|
|
2801
|
-
var
|
|
3112
|
+
var React38 = __toESM(require("react"), 1);
|
|
2802
3113
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
2803
|
-
var
|
|
2804
|
-
var
|
|
2805
|
-
var LanguageSelect =
|
|
2806
|
-
return /* @__PURE__ */ (0,
|
|
2807
|
-
/* @__PURE__ */ (0,
|
|
3114
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3115
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3116
|
+
var LanguageSelect = React38.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
3117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2808
3119
|
SelectPrimitive2.Trigger,
|
|
2809
3120
|
{
|
|
2810
3121
|
ref,
|
|
@@ -2827,12 +3138,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2827
3138
|
className
|
|
2828
3139
|
),
|
|
2829
3140
|
children: [
|
|
2830
|
-
/* @__PURE__ */ (0,
|
|
2831
|
-
/* @__PURE__ */ (0,
|
|
3141
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
3142
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2, { icon: import_lucide_react11.Globe, size: 16, "aria-hidden": true })
|
|
2832
3143
|
]
|
|
2833
3144
|
}
|
|
2834
3145
|
),
|
|
2835
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2836
3147
|
SelectPrimitive2.Content,
|
|
2837
3148
|
{
|
|
2838
3149
|
className: cn(
|
|
@@ -2860,7 +3171,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2860
3171
|
"origin-[--radix-select-content-transform-origin]"
|
|
2861
3172
|
),
|
|
2862
3173
|
position: "popper",
|
|
2863
|
-
children: /* @__PURE__ */ (0,
|
|
3174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2864
3175
|
SelectPrimitive2.Item,
|
|
2865
3176
|
{
|
|
2866
3177
|
value: option.value,
|
|
@@ -2877,7 +3188,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2877
3188
|
// Disabled state
|
|
2878
3189
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2879
3190
|
),
|
|
2880
|
-
children: /* @__PURE__ */ (0,
|
|
3191
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.ItemText, { children: option.label })
|
|
2881
3192
|
},
|
|
2882
3193
|
option.value
|
|
2883
3194
|
)) })
|
|
@@ -2888,13 +3199,13 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2888
3199
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2889
3200
|
|
|
2890
3201
|
// src/components/list/List.tsx
|
|
2891
|
-
var
|
|
3202
|
+
var React40 = __toESM(require("react"), 1);
|
|
2892
3203
|
|
|
2893
3204
|
// src/components/divider/Divider.tsx
|
|
2894
|
-
var
|
|
2895
|
-
var
|
|
2896
|
-
var
|
|
2897
|
-
var dividerVariants = (0,
|
|
3205
|
+
var React39 = __toESM(require("react"), 1);
|
|
3206
|
+
var import_class_variance_authority19 = require("class-variance-authority");
|
|
3207
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3208
|
+
var dividerVariants = (0, import_class_variance_authority19.cva)("", {
|
|
2898
3209
|
variants: {
|
|
2899
3210
|
variant: {
|
|
2900
3211
|
default: "bg-berget-separator",
|
|
@@ -2914,7 +3225,7 @@ var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
|
2914
3225
|
size: "thin"
|
|
2915
3226
|
}
|
|
2916
3227
|
});
|
|
2917
|
-
var Divider =
|
|
3228
|
+
var Divider = React39.forwardRef(
|
|
2918
3229
|
({
|
|
2919
3230
|
className,
|
|
2920
3231
|
orientation = "horizontal",
|
|
@@ -2925,17 +3236,17 @@ var Divider = React36.forwardRef(
|
|
|
2925
3236
|
...props
|
|
2926
3237
|
}, ref) => {
|
|
2927
3238
|
if (label) {
|
|
2928
|
-
return /* @__PURE__ */ (0,
|
|
2929
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
2930
|
-
|
|
3239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3240
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3241
|
+
Separator2,
|
|
2931
3242
|
{
|
|
2932
3243
|
orientation: "horizontal",
|
|
2933
3244
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2934
3245
|
}
|
|
2935
3246
|
),
|
|
2936
|
-
/* @__PURE__ */ (0,
|
|
2937
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
2938
|
-
|
|
3247
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3248
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3249
|
+
Separator2,
|
|
2939
3250
|
{
|
|
2940
3251
|
orientation: "horizontal",
|
|
2941
3252
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
@@ -2943,8 +3254,8 @@ var Divider = React36.forwardRef(
|
|
|
2943
3254
|
)
|
|
2944
3255
|
] });
|
|
2945
3256
|
}
|
|
2946
|
-
return /* @__PURE__ */ (0,
|
|
2947
|
-
|
|
3257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3258
|
+
Separator2,
|
|
2948
3259
|
{
|
|
2949
3260
|
ref,
|
|
2950
3261
|
orientation,
|
|
@@ -2960,20 +3271,20 @@ var Divider = React36.forwardRef(
|
|
|
2960
3271
|
Divider.displayName = "Divider";
|
|
2961
3272
|
|
|
2962
3273
|
// src/components/list/List.tsx
|
|
2963
|
-
var
|
|
2964
|
-
var
|
|
2965
|
-
var
|
|
3274
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3275
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3276
|
+
var List2 = React40.forwardRef(
|
|
2966
3277
|
({ className, children, ...props }, ref) => {
|
|
2967
|
-
const childrenArray =
|
|
2968
|
-
return /* @__PURE__ */ (0,
|
|
3278
|
+
const childrenArray = React40.Children.toArray(children);
|
|
3279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(React40.Fragment, { children: [
|
|
2969
3280
|
child,
|
|
2970
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
3281
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Divider, { variant: "subtle" })
|
|
2971
3282
|
] }, index)) });
|
|
2972
3283
|
}
|
|
2973
3284
|
);
|
|
2974
|
-
|
|
2975
|
-
var ListItem =
|
|
2976
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3285
|
+
List2.displayName = "List";
|
|
3286
|
+
var ListItem = React40.forwardRef(
|
|
3287
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
2977
3288
|
"div",
|
|
2978
3289
|
{
|
|
2979
3290
|
ref,
|
|
@@ -2984,15 +3295,15 @@ var ListItem = React37.forwardRef(
|
|
|
2984
3295
|
),
|
|
2985
3296
|
...props,
|
|
2986
3297
|
children: [
|
|
2987
|
-
icon && /* @__PURE__ */ (0,
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
3298
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
2989
3300
|
]
|
|
2990
3301
|
}
|
|
2991
3302
|
)
|
|
2992
3303
|
);
|
|
2993
3304
|
ListItem.displayName = "ListItem";
|
|
2994
|
-
var ListHeader =
|
|
2995
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3305
|
+
var ListHeader = React40.forwardRef(
|
|
3306
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2996
3307
|
"div",
|
|
2997
3308
|
{
|
|
2998
3309
|
ref,
|
|
@@ -3003,21 +3314,21 @@ var ListHeader = React37.forwardRef(
|
|
|
3003
3314
|
)
|
|
3004
3315
|
);
|
|
3005
3316
|
ListHeader.displayName = "ListHeader";
|
|
3006
|
-
var FeatureList =
|
|
3317
|
+
var FeatureList = React40.forwardRef(
|
|
3007
3318
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
3008
|
-
return /* @__PURE__ */ (0,
|
|
3009
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
3010
|
-
/* @__PURE__ */ (0,
|
|
3319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3320
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon2, { icon: import_lucide_react12.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
3011
3322
|
] }, index)) });
|
|
3012
3323
|
}
|
|
3013
3324
|
);
|
|
3014
3325
|
FeatureList.displayName = "FeatureList";
|
|
3015
3326
|
|
|
3016
3327
|
// src/components/hero-block/HeroBlock.tsx
|
|
3017
|
-
var
|
|
3018
|
-
var
|
|
3019
|
-
var
|
|
3020
|
-
var heroBlockVariants = (0,
|
|
3328
|
+
var React41 = __toESM(require("react"), 1);
|
|
3329
|
+
var import_class_variance_authority20 = require("class-variance-authority");
|
|
3330
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3331
|
+
var heroBlockVariants = (0, import_class_variance_authority20.cva)(
|
|
3021
3332
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3022
3333
|
{
|
|
3023
3334
|
variants: {
|
|
@@ -3037,7 +3348,7 @@ var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3037
3348
|
}
|
|
3038
3349
|
}
|
|
3039
3350
|
);
|
|
3040
|
-
var HeroBlock =
|
|
3351
|
+
var HeroBlock = React41.forwardRef(
|
|
3041
3352
|
({
|
|
3042
3353
|
className,
|
|
3043
3354
|
variant,
|
|
@@ -3049,26 +3360,26 @@ var HeroBlock = React38.forwardRef(
|
|
|
3049
3360
|
actions,
|
|
3050
3361
|
...props
|
|
3051
3362
|
}, ref) => {
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
3363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3053
3364
|
"div",
|
|
3054
3365
|
{
|
|
3055
3366
|
ref,
|
|
3056
3367
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
3057
3368
|
...props,
|
|
3058
|
-
children: /* @__PURE__ */ (0,
|
|
3059
|
-
tagline && /* @__PURE__ */ (0,
|
|
3369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3370
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3060
3371
|
Badge,
|
|
3061
3372
|
{
|
|
3062
3373
|
variant: "default",
|
|
3063
|
-
icon: TaglineIcon ? /* @__PURE__ */ (0,
|
|
3374
|
+
icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
3064
3375
|
iconGap: 2,
|
|
3065
3376
|
className: "mb-fluid-md",
|
|
3066
3377
|
children: tagline
|
|
3067
3378
|
}
|
|
3068
3379
|
),
|
|
3069
|
-
/* @__PURE__ */ (0,
|
|
3070
|
-
/* @__PURE__ */ (0,
|
|
3071
|
-
actions && /* @__PURE__ */ (0,
|
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3382
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
3072
3383
|
] }) })
|
|
3073
3384
|
}
|
|
3074
3385
|
);
|
|
@@ -3078,7 +3389,7 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
3078
3389
|
|
|
3079
3390
|
// src/components/code-block/CodeBlock.tsx
|
|
3080
3391
|
var import_react2 = require("react");
|
|
3081
|
-
var
|
|
3392
|
+
var import_lucide_react13 = require("lucide-react");
|
|
3082
3393
|
|
|
3083
3394
|
// src/lib/shiki.ts
|
|
3084
3395
|
var import_core2 = require("shiki/core");
|
|
@@ -3119,7 +3430,7 @@ function getHighlighter() {
|
|
|
3119
3430
|
}
|
|
3120
3431
|
|
|
3121
3432
|
// src/components/code-block/CodeBlock.tsx
|
|
3122
|
-
var
|
|
3433
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3123
3434
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
3124
3435
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
3125
3436
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -3135,16 +3446,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3135
3446
|
setCopied(true);
|
|
3136
3447
|
setTimeout(() => setCopied(false), 2e3);
|
|
3137
3448
|
}, [code]);
|
|
3138
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
3449
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3139
3450
|
"button",
|
|
3140
3451
|
{
|
|
3141
3452
|
onClick: handleCopy,
|
|
3142
3453
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
3143
3454
|
"aria-label": "Copy code",
|
|
3144
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
3455
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react13.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react13.Copy, { className: "w-3.5 h-3.5" })
|
|
3145
3456
|
}
|
|
3146
3457
|
);
|
|
3147
|
-
return /* @__PURE__ */ (0,
|
|
3458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3148
3459
|
"div",
|
|
3149
3460
|
{
|
|
3150
3461
|
className: cn(
|
|
@@ -3152,25 +3463,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3152
3463
|
className
|
|
3153
3464
|
),
|
|
3154
3465
|
children: [
|
|
3155
|
-
title && /* @__PURE__ */ (0,
|
|
3156
|
-
/* @__PURE__ */ (0,
|
|
3157
|
-
html ? /* @__PURE__ */ (0,
|
|
3466
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime45.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_runtime45.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3468
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3158
3469
|
"div",
|
|
3159
3470
|
{
|
|
3160
3471
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
3161
3472
|
dangerouslySetInnerHTML: { __html: html }
|
|
3162
3473
|
}
|
|
3163
|
-
) : /* @__PURE__ */ (0,
|
|
3474
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("code", { children: code }) })
|
|
3164
3475
|
]
|
|
3165
3476
|
}
|
|
3166
3477
|
);
|
|
3167
3478
|
}
|
|
3168
3479
|
|
|
3169
3480
|
// src/components/window-frame/WindowFrame.tsx
|
|
3170
|
-
var
|
|
3481
|
+
var React42 = __toESM(require("react"), 1);
|
|
3171
3482
|
var import_react3 = require("react");
|
|
3172
|
-
var
|
|
3173
|
-
var WindowFrame =
|
|
3483
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3484
|
+
var WindowFrame = React42.forwardRef(
|
|
3174
3485
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3175
3486
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
3176
3487
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3181,7 +3492,7 @@ var WindowFrame = React39.forwardRef(
|
|
|
3181
3492
|
setInternalActive(id);
|
|
3182
3493
|
}
|
|
3183
3494
|
};
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3185
3496
|
"div",
|
|
3186
3497
|
{
|
|
3187
3498
|
ref,
|
|
@@ -3191,13 +3502,13 @@ var WindowFrame = React39.forwardRef(
|
|
|
3191
3502
|
),
|
|
3192
3503
|
...props,
|
|
3193
3504
|
children: [
|
|
3194
|
-
/* @__PURE__ */ (0,
|
|
3195
|
-
/* @__PURE__ */ (0,
|
|
3196
|
-
/* @__PURE__ */ (0,
|
|
3197
|
-
/* @__PURE__ */ (0,
|
|
3198
|
-
/* @__PURE__ */ (0,
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.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: [
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3509
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3199
3510
|
] }),
|
|
3200
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
3511
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3201
3512
|
"button",
|
|
3202
3513
|
{
|
|
3203
3514
|
type: "button",
|
|
@@ -3209,9 +3520,9 @@ var WindowFrame = React39.forwardRef(
|
|
|
3209
3520
|
children: tab.label
|
|
3210
3521
|
},
|
|
3211
3522
|
tab.id
|
|
3212
|
-
)) }) : /* @__PURE__ */ (0,
|
|
3523
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3213
3524
|
] }),
|
|
3214
|
-
/* @__PURE__ */ (0,
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { children })
|
|
3215
3526
|
]
|
|
3216
3527
|
}
|
|
3217
3528
|
);
|
|
@@ -3222,6 +3533,17 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3222
3533
|
0 && (module.exports = {
|
|
3223
3534
|
Alert,
|
|
3224
3535
|
AlertDescription,
|
|
3536
|
+
AlertDialog,
|
|
3537
|
+
AlertDialogAction,
|
|
3538
|
+
AlertDialogCancel,
|
|
3539
|
+
AlertDialogContent,
|
|
3540
|
+
AlertDialogDescription,
|
|
3541
|
+
AlertDialogFooter,
|
|
3542
|
+
AlertDialogHeader,
|
|
3543
|
+
AlertDialogOverlay,
|
|
3544
|
+
AlertDialogPortal,
|
|
3545
|
+
AlertDialogTitle,
|
|
3546
|
+
AlertDialogTrigger,
|
|
3225
3547
|
AlertTitle,
|
|
3226
3548
|
Badge,
|
|
3227
3549
|
BergetLogo,
|
|
@@ -3248,6 +3570,21 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3248
3570
|
DialogPortal,
|
|
3249
3571
|
DialogTitle,
|
|
3250
3572
|
DialogTrigger,
|
|
3573
|
+
DropdownMenu,
|
|
3574
|
+
DropdownMenuCheckboxItem,
|
|
3575
|
+
DropdownMenuContent,
|
|
3576
|
+
DropdownMenuGroup,
|
|
3577
|
+
DropdownMenuItem,
|
|
3578
|
+
DropdownMenuLabel,
|
|
3579
|
+
DropdownMenuPortal,
|
|
3580
|
+
DropdownMenuRadioGroup,
|
|
3581
|
+
DropdownMenuRadioItem,
|
|
3582
|
+
DropdownMenuSeparator,
|
|
3583
|
+
DropdownMenuShortcut,
|
|
3584
|
+
DropdownMenuSub,
|
|
3585
|
+
DropdownMenuSubContent,
|
|
3586
|
+
DropdownMenuSubTrigger,
|
|
3587
|
+
DropdownMenuTrigger,
|
|
3251
3588
|
EU_COUNTRY_CODES,
|
|
3252
3589
|
FeatureList,
|
|
3253
3590
|
Field,
|
|
@@ -3280,6 +3617,14 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3280
3617
|
List,
|
|
3281
3618
|
ListHeader,
|
|
3282
3619
|
ListItem,
|
|
3620
|
+
NavigationMenu,
|
|
3621
|
+
NavigationMenuContent,
|
|
3622
|
+
NavigationMenuIndicator,
|
|
3623
|
+
NavigationMenuItem,
|
|
3624
|
+
NavigationMenuLink,
|
|
3625
|
+
NavigationMenuList,
|
|
3626
|
+
NavigationMenuTrigger,
|
|
3627
|
+
NavigationMenuViewport,
|
|
3283
3628
|
Select,
|
|
3284
3629
|
Switch,
|
|
3285
3630
|
Table,
|
|
@@ -3307,6 +3652,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3307
3652
|
gridVariants,
|
|
3308
3653
|
isEUCountry,
|
|
3309
3654
|
linkVariants,
|
|
3655
|
+
navigationMenuTriggerStyle,
|
|
3310
3656
|
selectVariants,
|
|
3311
3657
|
switchRootVariants,
|
|
3312
3658
|
switchThumbVariants,
|