@bergetai/ui 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +583 -346
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +550 -339
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -32,6 +32,17 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
Alert: () => Alert2,
|
|
34
34
|
AlertDescription: () => AlertDescription,
|
|
35
|
+
AlertDialog: () => AlertDialog,
|
|
36
|
+
AlertDialogAction: () => AlertDialogAction,
|
|
37
|
+
AlertDialogCancel: () => AlertDialogCancel,
|
|
38
|
+
AlertDialogContent: () => AlertDialogContent,
|
|
39
|
+
AlertDialogDescription: () => AlertDialogDescription,
|
|
40
|
+
AlertDialogFooter: () => AlertDialogFooter,
|
|
41
|
+
AlertDialogHeader: () => AlertDialogHeader,
|
|
42
|
+
AlertDialogOverlay: () => AlertDialogOverlay,
|
|
43
|
+
AlertDialogPortal: () => AlertDialogPortal,
|
|
44
|
+
AlertDialogTitle: () => AlertDialogTitle,
|
|
45
|
+
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
35
46
|
AlertTitle: () => AlertTitle,
|
|
36
47
|
Badge: () => Badge,
|
|
37
48
|
BergetLogo: () => BergetLogo,
|
|
@@ -58,6 +69,21 @@ __export(index_exports, {
|
|
|
58
69
|
DialogPortal: () => DialogPortal,
|
|
59
70
|
DialogTitle: () => DialogTitle,
|
|
60
71
|
DialogTrigger: () => DialogTrigger,
|
|
72
|
+
DropdownMenu: () => DropdownMenu,
|
|
73
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
74
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
75
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
76
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
77
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
78
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
79
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
80
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
81
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
82
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
83
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
84
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
85
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
86
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
61
87
|
EU_COUNTRY_CODES: () => EU_COUNTRY_CODES,
|
|
62
88
|
FeatureList: () => FeatureList,
|
|
63
89
|
Field: () => Field,
|
|
@@ -74,7 +100,7 @@ __export(index_exports, {
|
|
|
74
100
|
HeroBlock: () => HeroBlock,
|
|
75
101
|
Icon: () => Icon2,
|
|
76
102
|
Input: () => Input2,
|
|
77
|
-
Item: () =>
|
|
103
|
+
Item: () => Item3,
|
|
78
104
|
ItemActions: () => ItemActions,
|
|
79
105
|
ItemContent: () => ItemContent,
|
|
80
106
|
ItemDescription: () => ItemDescription2,
|
|
@@ -84,7 +110,7 @@ __export(index_exports, {
|
|
|
84
110
|
ItemMedia: () => ItemMedia2,
|
|
85
111
|
ItemSeparator: () => ItemSeparator2,
|
|
86
112
|
ItemTitle: () => ItemTitle2,
|
|
87
|
-
Label: () =>
|
|
113
|
+
Label: () => Label3,
|
|
88
114
|
LanguageSelect: () => LanguageSelect,
|
|
89
115
|
Link: () => Link,
|
|
90
116
|
List: () => List,
|
|
@@ -710,21 +736,206 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
710
736
|
var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
711
737
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
712
738
|
|
|
713
|
-
// src/components/
|
|
739
|
+
// src/components/alert-dialog/AlertDialog.tsx
|
|
740
|
+
var React11 = __toESM(require("react"), 1);
|
|
741
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
742
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
743
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
744
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
745
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
746
|
+
var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
747
|
+
AlertDialogPrimitive.Overlay,
|
|
748
|
+
{
|
|
749
|
+
ref,
|
|
750
|
+
className: cn(
|
|
751
|
+
"fixed inset-0 z-50 bg-berget-dialog-overlay-bg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
752
|
+
className
|
|
753
|
+
),
|
|
754
|
+
...props
|
|
755
|
+
}
|
|
756
|
+
));
|
|
757
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
758
|
+
var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogPortal, { children: [
|
|
759
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogOverlay, {}),
|
|
760
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
761
|
+
AlertDialogPrimitive.Content,
|
|
762
|
+
{
|
|
763
|
+
ref,
|
|
764
|
+
className: cn(
|
|
765
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
766
|
+
className
|
|
767
|
+
),
|
|
768
|
+
...props
|
|
769
|
+
}
|
|
770
|
+
)
|
|
771
|
+
] }));
|
|
772
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
773
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
774
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
775
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
776
|
+
"div",
|
|
777
|
+
{
|
|
778
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
779
|
+
...props
|
|
780
|
+
}
|
|
781
|
+
);
|
|
782
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
783
|
+
var AlertDialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
|
|
784
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
785
|
+
var AlertDialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
786
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
787
|
+
var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
|
|
788
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
789
|
+
var AlertDialogCancel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Cancel, { ref, className: cn("mt-2 sm:mt-0", className), ...props }));
|
|
790
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
791
|
+
|
|
792
|
+
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
714
793
|
var React12 = __toESM(require("react"), 1);
|
|
794
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
795
|
+
var import_lucide_react2 = require("lucide-react");
|
|
796
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
797
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
798
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
799
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
800
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
801
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
802
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
803
|
+
var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
804
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
805
|
+
{
|
|
806
|
+
ref,
|
|
807
|
+
className: cn(
|
|
808
|
+
"flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[state=open]:bg-berget-surface-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
809
|
+
inset && "pl-8",
|
|
810
|
+
className
|
|
811
|
+
),
|
|
812
|
+
...props,
|
|
813
|
+
children: [
|
|
814
|
+
children,
|
|
815
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.ChevronRight, { className: "ml-auto" })
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
));
|
|
819
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
820
|
+
var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
821
|
+
DropdownMenuPrimitive.SubContent,
|
|
822
|
+
{
|
|
823
|
+
ref,
|
|
824
|
+
className: cn(
|
|
825
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
826
|
+
className
|
|
827
|
+
),
|
|
828
|
+
...props
|
|
829
|
+
}
|
|
830
|
+
));
|
|
831
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
832
|
+
var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
833
|
+
DropdownMenuPrimitive.Content,
|
|
834
|
+
{
|
|
835
|
+
ref,
|
|
836
|
+
sideOffset,
|
|
837
|
+
className: cn(
|
|
838
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
839
|
+
className
|
|
840
|
+
),
|
|
841
|
+
...props
|
|
842
|
+
}
|
|
843
|
+
) }));
|
|
844
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
845
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
846
|
+
DropdownMenuPrimitive.Item,
|
|
847
|
+
{
|
|
848
|
+
ref,
|
|
849
|
+
className: cn(
|
|
850
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
851
|
+
inset && "pl-8",
|
|
852
|
+
className
|
|
853
|
+
),
|
|
854
|
+
...props
|
|
855
|
+
}
|
|
856
|
+
));
|
|
857
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
858
|
+
var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
859
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
860
|
+
{
|
|
861
|
+
ref,
|
|
862
|
+
className: cn(
|
|
863
|
+
"relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
864
|
+
className
|
|
865
|
+
),
|
|
866
|
+
checked,
|
|
867
|
+
...props,
|
|
868
|
+
children: [
|
|
869
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Check, { className: "size-4" }) }) }),
|
|
870
|
+
children
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
));
|
|
874
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
875
|
+
var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
876
|
+
DropdownMenuPrimitive.RadioItem,
|
|
877
|
+
{
|
|
878
|
+
ref,
|
|
879
|
+
className: cn(
|
|
880
|
+
"relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
881
|
+
className
|
|
882
|
+
),
|
|
883
|
+
...props,
|
|
884
|
+
children: [
|
|
885
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Circle, { className: "size-2 fill-current" }) }) }),
|
|
886
|
+
children
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
));
|
|
890
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
891
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
892
|
+
DropdownMenuPrimitive.Label,
|
|
893
|
+
{
|
|
894
|
+
ref,
|
|
895
|
+
className: cn(
|
|
896
|
+
"px-2 py-1.5 text-sm font-semibold text-berget-foreground",
|
|
897
|
+
inset && "pl-8",
|
|
898
|
+
className
|
|
899
|
+
),
|
|
900
|
+
...props
|
|
901
|
+
}
|
|
902
|
+
));
|
|
903
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
904
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
905
|
+
DropdownMenuPrimitive.Separator,
|
|
906
|
+
{
|
|
907
|
+
ref,
|
|
908
|
+
className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
|
|
909
|
+
...props
|
|
910
|
+
}
|
|
911
|
+
));
|
|
912
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
913
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
915
|
+
"span",
|
|
916
|
+
{
|
|
917
|
+
className: cn("ml-auto text-xs tracking-widest text-berget-muted-foreground", className),
|
|
918
|
+
...props
|
|
919
|
+
}
|
|
920
|
+
);
|
|
921
|
+
};
|
|
922
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
923
|
+
|
|
924
|
+
// src/components/table/Table.tsx
|
|
925
|
+
var React14 = __toESM(require("react"), 1);
|
|
715
926
|
|
|
716
927
|
// src/primitives/table.tsx
|
|
717
|
-
var
|
|
718
|
-
var
|
|
719
|
-
var Table =
|
|
720
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
928
|
+
var React13 = __toESM(require("react"), 1);
|
|
929
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
930
|
+
var Table = React13.forwardRef(
|
|
931
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
721
932
|
);
|
|
722
933
|
Table.displayName = "Table";
|
|
723
|
-
var TableHeader =
|
|
934
|
+
var TableHeader = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
724
935
|
TableHeader.displayName = "TableHeader";
|
|
725
|
-
var TableBody =
|
|
936
|
+
var TableBody = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
726
937
|
TableBody.displayName = "TableBody";
|
|
727
|
-
var TableFooter =
|
|
938
|
+
var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
728
939
|
"tfoot",
|
|
729
940
|
{
|
|
730
941
|
ref,
|
|
@@ -733,8 +944,8 @@ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
733
944
|
}
|
|
734
945
|
));
|
|
735
946
|
TableFooter.displayName = "TableFooter";
|
|
736
|
-
var TableRow =
|
|
737
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
947
|
+
var TableRow = React13.forwardRef(
|
|
948
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
738
949
|
"tr",
|
|
739
950
|
{
|
|
740
951
|
ref,
|
|
@@ -747,7 +958,7 @@ var TableRow = React11.forwardRef(
|
|
|
747
958
|
)
|
|
748
959
|
);
|
|
749
960
|
TableRow.displayName = "TableRow";
|
|
750
|
-
var TableHead =
|
|
961
|
+
var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
751
962
|
"th",
|
|
752
963
|
{
|
|
753
964
|
ref,
|
|
@@ -759,7 +970,7 @@ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
759
970
|
}
|
|
760
971
|
));
|
|
761
972
|
TableHead.displayName = "TableHead";
|
|
762
|
-
var TableCell =
|
|
973
|
+
var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
763
974
|
"td",
|
|
764
975
|
{
|
|
765
976
|
ref,
|
|
@@ -768,16 +979,16 @@ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
768
979
|
}
|
|
769
980
|
));
|
|
770
981
|
TableCell.displayName = "TableCell";
|
|
771
|
-
var TableCaption =
|
|
982
|
+
var TableCaption = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
772
983
|
TableCaption.displayName = "TableCaption";
|
|
773
984
|
|
|
774
985
|
// src/components/table/Table.tsx
|
|
775
|
-
var
|
|
776
|
-
var Table2 =
|
|
777
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
986
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
987
|
+
var Table2 = React14.forwardRef(
|
|
988
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Table, { ref, className, ...props })
|
|
778
989
|
);
|
|
779
990
|
Table2.displayName = "Table";
|
|
780
|
-
var TableHeader2 =
|
|
991
|
+
var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
781
992
|
TableHeader,
|
|
782
993
|
{
|
|
783
994
|
ref,
|
|
@@ -786,7 +997,7 @@ var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
786
997
|
}
|
|
787
998
|
));
|
|
788
999
|
TableHeader2.displayName = "TableHeader";
|
|
789
|
-
var TableBody2 =
|
|
1000
|
+
var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
790
1001
|
TableBody,
|
|
791
1002
|
{
|
|
792
1003
|
ref,
|
|
@@ -795,7 +1006,7 @@ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
795
1006
|
}
|
|
796
1007
|
));
|
|
797
1008
|
TableBody2.displayName = "TableBody";
|
|
798
|
-
var TableFooter2 =
|
|
1009
|
+
var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
799
1010
|
TableFooter,
|
|
800
1011
|
{
|
|
801
1012
|
ref,
|
|
@@ -807,8 +1018,8 @@ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
807
1018
|
}
|
|
808
1019
|
));
|
|
809
1020
|
TableFooter2.displayName = "TableFooter";
|
|
810
|
-
var TableRow2 =
|
|
811
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1021
|
+
var TableRow2 = React14.forwardRef(
|
|
1022
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
812
1023
|
TableRow,
|
|
813
1024
|
{
|
|
814
1025
|
ref,
|
|
@@ -821,7 +1032,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
821
1032
|
)
|
|
822
1033
|
);
|
|
823
1034
|
TableRow2.displayName = "TableRow";
|
|
824
|
-
var TableHead2 =
|
|
1035
|
+
var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
825
1036
|
TableHead,
|
|
826
1037
|
{
|
|
827
1038
|
ref,
|
|
@@ -833,7 +1044,7 @@ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
833
1044
|
}
|
|
834
1045
|
));
|
|
835
1046
|
TableHead2.displayName = "TableHead";
|
|
836
|
-
var TableCell2 =
|
|
1047
|
+
var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
837
1048
|
TableCell,
|
|
838
1049
|
{
|
|
839
1050
|
ref,
|
|
@@ -842,7 +1053,7 @@ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
842
1053
|
}
|
|
843
1054
|
));
|
|
844
1055
|
TableCell2.displayName = "TableCell";
|
|
845
|
-
var TableCaption2 =
|
|
1056
|
+
var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
846
1057
|
TableCaption,
|
|
847
1058
|
{
|
|
848
1059
|
ref,
|
|
@@ -853,17 +1064,17 @@ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
853
1064
|
TableCaption2.displayName = "TableCaption";
|
|
854
1065
|
|
|
855
1066
|
// src/components/item/Item.tsx
|
|
856
|
-
var
|
|
1067
|
+
var React16 = __toESM(require("react"), 1);
|
|
857
1068
|
|
|
858
1069
|
// src/primitives/item.tsx
|
|
859
1070
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
860
1071
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
861
1072
|
|
|
862
1073
|
// src/primitives/separator.tsx
|
|
863
|
-
var
|
|
1074
|
+
var React15 = __toESM(require("react"), 1);
|
|
864
1075
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
865
|
-
var
|
|
866
|
-
var
|
|
1076
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1077
|
+
var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
867
1078
|
SeparatorPrimitive.Root,
|
|
868
1079
|
{
|
|
869
1080
|
ref,
|
|
@@ -877,12 +1088,12 @@ var Separator = React13.forwardRef(({ className, orientation = "horizontal", dec
|
|
|
877
1088
|
...props
|
|
878
1089
|
}
|
|
879
1090
|
));
|
|
880
|
-
|
|
1091
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
881
1092
|
|
|
882
1093
|
// src/primitives/item.tsx
|
|
883
|
-
var
|
|
1094
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
884
1095
|
function ItemGroup({ className, ...props }) {
|
|
885
|
-
return /* @__PURE__ */ (0,
|
|
1096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
886
1097
|
"div",
|
|
887
1098
|
{
|
|
888
1099
|
role: "list",
|
|
@@ -893,8 +1104,8 @@ function ItemGroup({ className, ...props }) {
|
|
|
893
1104
|
);
|
|
894
1105
|
}
|
|
895
1106
|
function ItemSeparator({ className, ...props }) {
|
|
896
|
-
return /* @__PURE__ */ (0,
|
|
897
|
-
|
|
1107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1108
|
+
Separator2,
|
|
898
1109
|
{
|
|
899
1110
|
"data-slot": "item-separator",
|
|
900
1111
|
orientation: "horizontal",
|
|
@@ -923,7 +1134,7 @@ var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
|
923
1134
|
}
|
|
924
1135
|
}
|
|
925
1136
|
);
|
|
926
|
-
function
|
|
1137
|
+
function Item2({
|
|
927
1138
|
className,
|
|
928
1139
|
variant = "default",
|
|
929
1140
|
size = "default",
|
|
@@ -931,7 +1142,7 @@ function Item({
|
|
|
931
1142
|
...props
|
|
932
1143
|
}) {
|
|
933
1144
|
const Comp = asChild ? import_react_slot2.Slot : "div";
|
|
934
|
-
return /* @__PURE__ */ (0,
|
|
1145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
935
1146
|
Comp,
|
|
936
1147
|
{
|
|
937
1148
|
"data-slot": "item",
|
|
@@ -962,7 +1173,7 @@ function ItemMedia({
|
|
|
962
1173
|
variant = "default",
|
|
963
1174
|
...props
|
|
964
1175
|
}) {
|
|
965
|
-
return /* @__PURE__ */ (0,
|
|
1176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
966
1177
|
"div",
|
|
967
1178
|
{
|
|
968
1179
|
"data-slot": "item-media",
|
|
@@ -973,7 +1184,7 @@ function ItemMedia({
|
|
|
973
1184
|
);
|
|
974
1185
|
}
|
|
975
1186
|
function ItemContent({ className, ...props }) {
|
|
976
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
977
1188
|
"div",
|
|
978
1189
|
{
|
|
979
1190
|
"data-slot": "item-content",
|
|
@@ -983,7 +1194,7 @@ function ItemContent({ className, ...props }) {
|
|
|
983
1194
|
);
|
|
984
1195
|
}
|
|
985
1196
|
function ItemTitle({ className, ...props }) {
|
|
986
|
-
return /* @__PURE__ */ (0,
|
|
1197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
987
1198
|
"div",
|
|
988
1199
|
{
|
|
989
1200
|
"data-slot": "item-title",
|
|
@@ -993,7 +1204,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
993
1204
|
);
|
|
994
1205
|
}
|
|
995
1206
|
function ItemDescription({ className, ...props }) {
|
|
996
|
-
return /* @__PURE__ */ (0,
|
|
1207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
997
1208
|
"p",
|
|
998
1209
|
{
|
|
999
1210
|
"data-slot": "item-description",
|
|
@@ -1007,10 +1218,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
1007
1218
|
);
|
|
1008
1219
|
}
|
|
1009
1220
|
function ItemActions({ className, ...props }) {
|
|
1010
|
-
return /* @__PURE__ */ (0,
|
|
1221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
1011
1222
|
}
|
|
1012
1223
|
function ItemHeader({ className, ...props }) {
|
|
1013
|
-
return /* @__PURE__ */ (0,
|
|
1224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1014
1225
|
"div",
|
|
1015
1226
|
{
|
|
1016
1227
|
"data-slot": "item-header",
|
|
@@ -1020,7 +1231,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
1020
1231
|
);
|
|
1021
1232
|
}
|
|
1022
1233
|
function ItemFooter({ className, ...props }) {
|
|
1023
|
-
return /* @__PURE__ */ (0,
|
|
1234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1024
1235
|
"div",
|
|
1025
1236
|
{
|
|
1026
1237
|
"data-slot": "item-footer",
|
|
@@ -1031,10 +1242,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
1031
1242
|
}
|
|
1032
1243
|
|
|
1033
1244
|
// src/components/item/Item.tsx
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
return /* @__PURE__ */ (0,
|
|
1037
|
-
|
|
1245
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1246
|
+
function Item3({ className, asChild, ...props }) {
|
|
1247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1248
|
+
Item2,
|
|
1038
1249
|
{
|
|
1039
1250
|
asChild,
|
|
1040
1251
|
className: cn(
|
|
@@ -1051,8 +1262,8 @@ function Item2({ className, asChild, ...props }) {
|
|
|
1051
1262
|
}
|
|
1052
1263
|
);
|
|
1053
1264
|
}
|
|
1054
|
-
var ItemMedia2 =
|
|
1055
|
-
return /* @__PURE__ */ (0,
|
|
1265
|
+
var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1056
1267
|
ItemMedia,
|
|
1057
1268
|
{
|
|
1058
1269
|
ref,
|
|
@@ -1062,8 +1273,8 @@ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1062
1273
|
);
|
|
1063
1274
|
});
|
|
1064
1275
|
ItemMedia2.displayName = "ItemMedia";
|
|
1065
|
-
var ItemTitle2 =
|
|
1066
|
-
return /* @__PURE__ */ (0,
|
|
1276
|
+
var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1067
1278
|
ItemTitle,
|
|
1068
1279
|
{
|
|
1069
1280
|
ref,
|
|
@@ -1073,8 +1284,8 @@ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1073
1284
|
);
|
|
1074
1285
|
});
|
|
1075
1286
|
ItemTitle2.displayName = "ItemTitle";
|
|
1076
|
-
var ItemDescription2 =
|
|
1077
|
-
return /* @__PURE__ */ (0,
|
|
1287
|
+
var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1078
1289
|
ItemDescription,
|
|
1079
1290
|
{
|
|
1080
1291
|
ref,
|
|
@@ -1084,8 +1295,8 @@ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1084
1295
|
);
|
|
1085
1296
|
});
|
|
1086
1297
|
ItemDescription2.displayName = "ItemDescription";
|
|
1087
|
-
var ItemSeparator2 =
|
|
1088
|
-
return /* @__PURE__ */ (0,
|
|
1298
|
+
var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
1299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1089
1300
|
ItemSeparator,
|
|
1090
1301
|
{
|
|
1091
1302
|
ref,
|
|
@@ -1097,14 +1308,14 @@ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
1097
1308
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
1098
1309
|
|
|
1099
1310
|
// src/components/input/Input.tsx
|
|
1100
|
-
var
|
|
1311
|
+
var React18 = __toESM(require("react"), 1);
|
|
1101
1312
|
|
|
1102
1313
|
// src/primitives/input.tsx
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1105
|
-
var Input =
|
|
1314
|
+
var React17 = __toESM(require("react"), 1);
|
|
1315
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1316
|
+
var Input = React17.forwardRef(
|
|
1106
1317
|
({ className, type, ...props }, ref) => {
|
|
1107
|
-
return /* @__PURE__ */ (0,
|
|
1318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1108
1319
|
"input",
|
|
1109
1320
|
{
|
|
1110
1321
|
type,
|
|
@@ -1121,14 +1332,14 @@ var Input = React15.forwardRef(
|
|
|
1121
1332
|
Input.displayName = "Input";
|
|
1122
1333
|
|
|
1123
1334
|
// src/components/input/Input.tsx
|
|
1124
|
-
var
|
|
1125
|
-
var Input2 =
|
|
1335
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1336
|
+
var Input2 = React18.forwardRef(
|
|
1126
1337
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1127
|
-
const generatedId =
|
|
1338
|
+
const generatedId = React18.useId();
|
|
1128
1339
|
const inputId = id || generatedId;
|
|
1129
1340
|
const errorId = `${inputId}-error`;
|
|
1130
1341
|
const descriptionId = `${inputId}-description`;
|
|
1131
|
-
const inputElement = /* @__PURE__ */ (0,
|
|
1342
|
+
const inputElement = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1132
1343
|
Input,
|
|
1133
1344
|
{
|
|
1134
1345
|
ref,
|
|
@@ -1148,8 +1359,8 @@ var Input2 = React16.forwardRef(
|
|
|
1148
1359
|
}
|
|
1149
1360
|
);
|
|
1150
1361
|
if (!icon && !actionButton) {
|
|
1151
|
-
return /* @__PURE__ */ (0,
|
|
1152
|
-
label && /* @__PURE__ */ (0,
|
|
1362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1363
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1153
1364
|
"label",
|
|
1154
1365
|
{
|
|
1155
1366
|
htmlFor: inputId,
|
|
@@ -1162,9 +1373,9 @@ var Input2 = React16.forwardRef(
|
|
|
1162
1373
|
}
|
|
1163
1374
|
),
|
|
1164
1375
|
inputElement,
|
|
1165
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1166
|
-
description && /* @__PURE__ */ (0,
|
|
1167
|
-
error && /* @__PURE__ */ (0,
|
|
1376
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1377
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1378
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1168
1379
|
Typography,
|
|
1169
1380
|
{
|
|
1170
1381
|
variant: "xs",
|
|
@@ -1176,8 +1387,8 @@ var Input2 = React16.forwardRef(
|
|
|
1176
1387
|
] })
|
|
1177
1388
|
] });
|
|
1178
1389
|
}
|
|
1179
|
-
return /* @__PURE__ */ (0,
|
|
1180
|
-
label && /* @__PURE__ */ (0,
|
|
1390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1391
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1181
1392
|
"label",
|
|
1182
1393
|
{
|
|
1183
1394
|
htmlFor: inputId,
|
|
@@ -1189,14 +1400,14 @@ var Input2 = React16.forwardRef(
|
|
|
1189
1400
|
children: label
|
|
1190
1401
|
}
|
|
1191
1402
|
),
|
|
1192
|
-
/* @__PURE__ */ (0,
|
|
1193
|
-
icon && /* @__PURE__ */ (0,
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative w-full", children: [
|
|
1404
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1194
1405
|
inputElement,
|
|
1195
|
-
actionButton && /* @__PURE__ */ (0,
|
|
1406
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1196
1407
|
] }),
|
|
1197
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1198
|
-
description && /* @__PURE__ */ (0,
|
|
1199
|
-
error && /* @__PURE__ */ (0,
|
|
1408
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1409
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1410
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1200
1411
|
] })
|
|
1201
1412
|
] });
|
|
1202
1413
|
}
|
|
@@ -1204,17 +1415,17 @@ var Input2 = React16.forwardRef(
|
|
|
1204
1415
|
Input2.displayName = "Input";
|
|
1205
1416
|
|
|
1206
1417
|
// src/components/checkbox/Checkbox.tsx
|
|
1207
|
-
var
|
|
1418
|
+
var React20 = __toESM(require("react"), 1);
|
|
1208
1419
|
var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1209
|
-
var
|
|
1420
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1210
1421
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1211
1422
|
|
|
1212
1423
|
// src/primitives/checkbox.tsx
|
|
1213
|
-
var
|
|
1424
|
+
var React19 = __toESM(require("react"), 1);
|
|
1214
1425
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1215
|
-
var
|
|
1216
|
-
var
|
|
1217
|
-
var Checkbox =
|
|
1426
|
+
var import_lucide_react3 = require("lucide-react");
|
|
1427
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1428
|
+
var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1218
1429
|
CheckboxPrimitive.Root,
|
|
1219
1430
|
{
|
|
1220
1431
|
ref,
|
|
@@ -1223,23 +1434,23 @@ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1223
1434
|
className
|
|
1224
1435
|
),
|
|
1225
1436
|
...props,
|
|
1226
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1437
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" }) })
|
|
1227
1438
|
}
|
|
1228
1439
|
));
|
|
1229
1440
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1230
|
-
var CheckboxIndicator =
|
|
1441
|
+
var CheckboxIndicator = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1231
1442
|
CheckboxPrimitive.Indicator,
|
|
1232
1443
|
{
|
|
1233
1444
|
ref,
|
|
1234
1445
|
className: cn("grid place-content-center", className),
|
|
1235
1446
|
...props,
|
|
1236
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1447
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" })
|
|
1237
1448
|
}
|
|
1238
1449
|
));
|
|
1239
1450
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1240
1451
|
|
|
1241
1452
|
// src/components/checkbox/Checkbox.tsx
|
|
1242
|
-
var
|
|
1453
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1243
1454
|
var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
1244
1455
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1245
1456
|
{
|
|
@@ -1261,7 +1472,7 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
|
1261
1472
|
}
|
|
1262
1473
|
}
|
|
1263
1474
|
);
|
|
1264
|
-
var Checkbox2 =
|
|
1475
|
+
var Checkbox2 = React20.forwardRef(
|
|
1265
1476
|
({
|
|
1266
1477
|
"aria-label": ariaLabel,
|
|
1267
1478
|
className,
|
|
@@ -1274,11 +1485,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1274
1485
|
disabled,
|
|
1275
1486
|
...props
|
|
1276
1487
|
}, ref) => {
|
|
1277
|
-
const generatedId =
|
|
1488
|
+
const generatedId = React20.useId();
|
|
1278
1489
|
const checkboxId = id || generatedId;
|
|
1279
1490
|
const errorId = `${checkboxId}-error`;
|
|
1280
|
-
return /* @__PURE__ */ (0,
|
|
1281
|
-
/* @__PURE__ */ (0,
|
|
1491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
1492
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1282
1493
|
Checkbox,
|
|
1283
1494
|
{
|
|
1284
1495
|
ref,
|
|
@@ -1294,8 +1505,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1294
1505
|
className
|
|
1295
1506
|
),
|
|
1296
1507
|
...props,
|
|
1297
|
-
children: /* @__PURE__ */ (0,
|
|
1298
|
-
|
|
1508
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1509
|
+
import_lucide_react4.Check,
|
|
1299
1510
|
{
|
|
1300
1511
|
className: "h-4 w-4 text-current stroke-current",
|
|
1301
1512
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1303,8 +1514,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1303
1514
|
) })
|
|
1304
1515
|
}
|
|
1305
1516
|
) }),
|
|
1306
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1307
|
-
label && /* @__PURE__ */ (0,
|
|
1517
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1518
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1308
1519
|
"label",
|
|
1309
1520
|
{
|
|
1310
1521
|
htmlFor: checkboxId,
|
|
@@ -1316,8 +1527,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1316
1527
|
children: label
|
|
1317
1528
|
}
|
|
1318
1529
|
),
|
|
1319
|
-
description && /* @__PURE__ */ (0,
|
|
1320
|
-
error && /* @__PURE__ */ (0,
|
|
1530
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1531
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1321
1532
|
] })
|
|
1322
1533
|
] });
|
|
1323
1534
|
}
|
|
@@ -1325,10 +1536,10 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1325
1536
|
Checkbox2.displayName = "Checkbox";
|
|
1326
1537
|
|
|
1327
1538
|
// src/components/switch/Switch.tsx
|
|
1328
|
-
var
|
|
1539
|
+
var React21 = __toESM(require("react"), 1);
|
|
1329
1540
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
1330
1541
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1331
|
-
var
|
|
1542
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1332
1543
|
var switchRootVariants = (0, import_class_variance_authority9.cva)(
|
|
1333
1544
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-berget-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
1334
1545
|
{
|
|
@@ -1365,7 +1576,7 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1365
1576
|
}
|
|
1366
1577
|
}
|
|
1367
1578
|
);
|
|
1368
|
-
var Switch =
|
|
1579
|
+
var Switch = React21.forwardRef(
|
|
1369
1580
|
({
|
|
1370
1581
|
"aria-label": ariaLabel,
|
|
1371
1582
|
className,
|
|
@@ -1378,11 +1589,11 @@ var Switch = React19.forwardRef(
|
|
|
1378
1589
|
disabled,
|
|
1379
1590
|
...props
|
|
1380
1591
|
}, ref) => {
|
|
1381
|
-
const generatedId =
|
|
1592
|
+
const generatedId = React21.useId();
|
|
1382
1593
|
const switchId = id || generatedId;
|
|
1383
1594
|
const errorId = `${switchId}-error`;
|
|
1384
|
-
return /* @__PURE__ */ (0,
|
|
1385
|
-
/* @__PURE__ */ (0,
|
|
1595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1386
1597
|
SwitchPrimitives.Root,
|
|
1387
1598
|
{
|
|
1388
1599
|
ref,
|
|
@@ -1397,11 +1608,11 @@ var Switch = React19.forwardRef(
|
|
|
1397
1608
|
className
|
|
1398
1609
|
),
|
|
1399
1610
|
...props,
|
|
1400
|
-
children: /* @__PURE__ */ (0,
|
|
1611
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1401
1612
|
}
|
|
1402
1613
|
),
|
|
1403
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1404
|
-
label && /* @__PURE__ */ (0,
|
|
1614
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1615
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1405
1616
|
"label",
|
|
1406
1617
|
{
|
|
1407
1618
|
htmlFor: switchId,
|
|
@@ -1412,8 +1623,8 @@ var Switch = React19.forwardRef(
|
|
|
1412
1623
|
children: label
|
|
1413
1624
|
}
|
|
1414
1625
|
),
|
|
1415
|
-
description && /* @__PURE__ */ (0,
|
|
1416
|
-
error && /* @__PURE__ */ (0,
|
|
1626
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1627
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1417
1628
|
] })
|
|
1418
1629
|
] });
|
|
1419
1630
|
}
|
|
@@ -1421,17 +1632,17 @@ var Switch = React19.forwardRef(
|
|
|
1421
1632
|
Switch.displayName = "Switch";
|
|
1422
1633
|
|
|
1423
1634
|
// src/components/select/Select.tsx
|
|
1424
|
-
var
|
|
1635
|
+
var React23 = __toESM(require("react"), 1);
|
|
1425
1636
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
1426
1637
|
|
|
1427
1638
|
// src/primitives/select.tsx
|
|
1428
|
-
var
|
|
1639
|
+
var React22 = __toESM(require("react"), 1);
|
|
1429
1640
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
1430
|
-
var
|
|
1431
|
-
var
|
|
1641
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1642
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1432
1643
|
var Select = SelectPrimitive.Root;
|
|
1433
1644
|
var SelectValue = SelectPrimitive.Value;
|
|
1434
|
-
var SelectTrigger =
|
|
1645
|
+
var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1435
1646
|
SelectPrimitive.Trigger,
|
|
1436
1647
|
{
|
|
1437
1648
|
ref,
|
|
@@ -1442,32 +1653,32 @@ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
1442
1653
|
...props,
|
|
1443
1654
|
children: [
|
|
1444
1655
|
children,
|
|
1445
|
-
/* @__PURE__ */ (0,
|
|
1656
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1446
1657
|
]
|
|
1447
1658
|
}
|
|
1448
1659
|
));
|
|
1449
1660
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1450
|
-
var SelectScrollUpButton =
|
|
1661
|
+
var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1451
1662
|
SelectPrimitive.ScrollUpButton,
|
|
1452
1663
|
{
|
|
1453
1664
|
ref,
|
|
1454
1665
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1455
1666
|
...props,
|
|
1456
|
-
children: /* @__PURE__ */ (0,
|
|
1667
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronUp, { className: "h-4 w-4" })
|
|
1457
1668
|
}
|
|
1458
1669
|
));
|
|
1459
1670
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1460
|
-
var SelectScrollDownButton =
|
|
1671
|
+
var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1461
1672
|
SelectPrimitive.ScrollDownButton,
|
|
1462
1673
|
{
|
|
1463
1674
|
ref,
|
|
1464
1675
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1465
1676
|
...props,
|
|
1466
|
-
children: /* @__PURE__ */ (0,
|
|
1677
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronDown, { className: "h-4 w-4" })
|
|
1467
1678
|
}
|
|
1468
1679
|
));
|
|
1469
1680
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1470
|
-
var SelectContent =
|
|
1681
|
+
var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1471
1682
|
SelectPrimitive.Content,
|
|
1472
1683
|
{
|
|
1473
1684
|
ref,
|
|
@@ -1479,8 +1690,8 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1479
1690
|
position,
|
|
1480
1691
|
...props,
|
|
1481
1692
|
children: [
|
|
1482
|
-
/* @__PURE__ */ (0,
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1693
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollUpButton, {}),
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1484
1695
|
SelectPrimitive.Viewport,
|
|
1485
1696
|
{
|
|
1486
1697
|
className: cn(
|
|
@@ -1490,12 +1701,12 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1490
1701
|
children
|
|
1491
1702
|
}
|
|
1492
1703
|
),
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectScrollDownButton, {})
|
|
1494
1705
|
]
|
|
1495
1706
|
}
|
|
1496
1707
|
) }));
|
|
1497
1708
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1498
|
-
var SelectLabel =
|
|
1709
|
+
var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1499
1710
|
SelectPrimitive.Label,
|
|
1500
1711
|
{
|
|
1501
1712
|
ref,
|
|
@@ -1504,7 +1715,7 @@ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1504
1715
|
}
|
|
1505
1716
|
));
|
|
1506
1717
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1507
|
-
var SelectItem =
|
|
1718
|
+
var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1508
1719
|
SelectPrimitive.Item,
|
|
1509
1720
|
{
|
|
1510
1721
|
ref,
|
|
@@ -1514,13 +1725,13 @@ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1514
1725
|
),
|
|
1515
1726
|
...props,
|
|
1516
1727
|
children: [
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1518
|
-
/* @__PURE__ */ (0,
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" }) }) }),
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemText, { children })
|
|
1519
1730
|
]
|
|
1520
1731
|
}
|
|
1521
1732
|
));
|
|
1522
1733
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1523
|
-
var SelectSeparator =
|
|
1734
|
+
var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1524
1735
|
SelectPrimitive.Separator,
|
|
1525
1736
|
{
|
|
1526
1737
|
ref,
|
|
@@ -1531,7 +1742,7 @@ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1531
1742
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1532
1743
|
|
|
1533
1744
|
// src/components/select/Select.tsx
|
|
1534
|
-
var
|
|
1745
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1535
1746
|
var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
1536
1747
|
"flex w-full items-center justify-between rounded-berget-xs border bg-card px-4 py-3 text-sm transition-colors duration-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border disabled:cursor-not-allowed disabled:opacity-50",
|
|
1537
1748
|
{
|
|
@@ -1554,7 +1765,7 @@ var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
|
1554
1765
|
}
|
|
1555
1766
|
}
|
|
1556
1767
|
);
|
|
1557
|
-
var Select2 =
|
|
1768
|
+
var Select2 = React23.forwardRef(
|
|
1558
1769
|
({
|
|
1559
1770
|
className,
|
|
1560
1771
|
variant,
|
|
@@ -1572,12 +1783,12 @@ var Select2 = React21.forwardRef(
|
|
|
1572
1783
|
name,
|
|
1573
1784
|
required
|
|
1574
1785
|
}, ref) => {
|
|
1575
|
-
const generatedId =
|
|
1786
|
+
const generatedId = React23.useId();
|
|
1576
1787
|
const selectId = id || generatedId;
|
|
1577
1788
|
const errorId = `${selectId}-error`;
|
|
1578
1789
|
const descriptionId = `${selectId}-description`;
|
|
1579
|
-
return /* @__PURE__ */ (0,
|
|
1580
|
-
label && /* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1791
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1581
1792
|
"label",
|
|
1582
1793
|
{
|
|
1583
1794
|
htmlFor: selectId,
|
|
@@ -1589,7 +1800,7 @@ var Select2 = React21.forwardRef(
|
|
|
1589
1800
|
children: label
|
|
1590
1801
|
}
|
|
1591
1802
|
),
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1593
1804
|
Select,
|
|
1594
1805
|
{
|
|
1595
1806
|
value,
|
|
@@ -1599,7 +1810,7 @@ var Select2 = React21.forwardRef(
|
|
|
1599
1810
|
name,
|
|
1600
1811
|
required,
|
|
1601
1812
|
children: [
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1813
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1603
1814
|
SelectTrigger,
|
|
1604
1815
|
{
|
|
1605
1816
|
ref,
|
|
@@ -1611,33 +1822,33 @@ var Select2 = React21.forwardRef(
|
|
|
1611
1822
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1612
1823
|
className
|
|
1613
1824
|
),
|
|
1614
|
-
children: /* @__PURE__ */ (0,
|
|
1825
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue, { placeholder })
|
|
1615
1826
|
}
|
|
1616
1827
|
),
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1828
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1618
1829
|
]
|
|
1619
1830
|
}
|
|
1620
1831
|
),
|
|
1621
|
-
description && /* @__PURE__ */ (0,
|
|
1622
|
-
error && /* @__PURE__ */ (0,
|
|
1832
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1833
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1623
1834
|
] });
|
|
1624
1835
|
}
|
|
1625
1836
|
);
|
|
1626
1837
|
Select2.displayName = "Select";
|
|
1627
1838
|
|
|
1628
1839
|
// src/components/country-select/CountrySelect.tsx
|
|
1629
|
-
var
|
|
1630
|
-
var
|
|
1840
|
+
var React28 = __toESM(require("react"), 1);
|
|
1841
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1631
1842
|
|
|
1632
1843
|
// src/components/icon/Icon.tsx
|
|
1633
|
-
var
|
|
1634
|
-
var
|
|
1844
|
+
var React24 = __toESM(require("react"), 1);
|
|
1845
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1635
1846
|
var iconStrokeMap = {
|
|
1636
1847
|
16: 1.4,
|
|
1637
1848
|
24: 1.6,
|
|
1638
1849
|
32: 1.8
|
|
1639
1850
|
};
|
|
1640
|
-
var Icon2 =
|
|
1851
|
+
var Icon2 = React24.forwardRef(
|
|
1641
1852
|
({
|
|
1642
1853
|
icon: IconComponent,
|
|
1643
1854
|
size,
|
|
@@ -1649,7 +1860,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1649
1860
|
const strokeWidth = iconStrokeMap[size];
|
|
1650
1861
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1651
1862
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1652
|
-
return /* @__PURE__ */ (0,
|
|
1863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1653
1864
|
IconComponent,
|
|
1654
1865
|
{
|
|
1655
1866
|
ref,
|
|
@@ -1664,12 +1875,12 @@ var Icon2 = React22.forwardRef(
|
|
|
1664
1875
|
Icon2.displayName = "Icon";
|
|
1665
1876
|
|
|
1666
1877
|
// src/primitives/popover.tsx
|
|
1667
|
-
var
|
|
1878
|
+
var React25 = __toESM(require("react"), 1);
|
|
1668
1879
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1669
|
-
var
|
|
1880
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1670
1881
|
var Popover = PopoverPrimitive.Root;
|
|
1671
1882
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1672
|
-
var PopoverContent =
|
|
1883
|
+
var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1673
1884
|
PopoverPrimitive.Content,
|
|
1674
1885
|
{
|
|
1675
1886
|
ref,
|
|
@@ -1685,17 +1896,17 @@ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffs
|
|
|
1685
1896
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1686
1897
|
|
|
1687
1898
|
// src/primitives/command.tsx
|
|
1688
|
-
var
|
|
1899
|
+
var React27 = __toESM(require("react"), 1);
|
|
1689
1900
|
var import_cmdk = require("cmdk");
|
|
1690
|
-
var
|
|
1901
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1691
1902
|
|
|
1692
1903
|
// src/primitives/dialog.tsx
|
|
1693
|
-
var
|
|
1904
|
+
var React26 = __toESM(require("react"), 1);
|
|
1694
1905
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
1906
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1907
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1697
1908
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1698
|
-
var DialogOverlay2 =
|
|
1909
|
+
var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1699
1910
|
DialogPrimitive2.Overlay,
|
|
1700
1911
|
{
|
|
1701
1912
|
ref,
|
|
@@ -1707,9 +1918,9 @@ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1707
1918
|
}
|
|
1708
1919
|
));
|
|
1709
1920
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1710
|
-
var DialogContent2 =
|
|
1711
|
-
/* @__PURE__ */ (0,
|
|
1712
|
-
/* @__PURE__ */ (0,
|
|
1921
|
+
var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogPortal2, { children: [
|
|
1922
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogOverlay2, {}),
|
|
1923
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1713
1924
|
DialogPrimitive2.Content,
|
|
1714
1925
|
{
|
|
1715
1926
|
ref,
|
|
@@ -1720,18 +1931,18 @@ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1720
1931
|
...props,
|
|
1721
1932
|
children: [
|
|
1722
1933
|
children,
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1725
|
-
/* @__PURE__ */ (0,
|
|
1934
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1935
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
|
|
1936
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1726
1937
|
] })
|
|
1727
1938
|
]
|
|
1728
1939
|
}
|
|
1729
1940
|
)
|
|
1730
1941
|
] }));
|
|
1731
1942
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1732
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1943
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1733
1944
|
DialogHeader2.displayName = "DialogHeader";
|
|
1734
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1945
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1735
1946
|
"div",
|
|
1736
1947
|
{
|
|
1737
1948
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1739,7 +1950,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_
|
|
|
1739
1950
|
}
|
|
1740
1951
|
);
|
|
1741
1952
|
DialogFooter2.displayName = "DialogFooter";
|
|
1742
|
-
var DialogTitle2 =
|
|
1953
|
+
var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1743
1954
|
DialogPrimitive2.Title,
|
|
1744
1955
|
{
|
|
1745
1956
|
ref,
|
|
@@ -1748,7 +1959,7 @@ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1748
1959
|
}
|
|
1749
1960
|
));
|
|
1750
1961
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1751
|
-
var DialogDescription2 =
|
|
1962
|
+
var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1752
1963
|
DialogPrimitive2.Description,
|
|
1753
1964
|
{
|
|
1754
1965
|
ref,
|
|
@@ -1759,8 +1970,8 @@ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1759
1970
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1760
1971
|
|
|
1761
1972
|
// src/primitives/command.tsx
|
|
1762
|
-
var
|
|
1763
|
-
var Command =
|
|
1973
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1974
|
+
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1764
1975
|
import_cmdk.Command,
|
|
1765
1976
|
{
|
|
1766
1977
|
ref,
|
|
@@ -1772,9 +1983,9 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1772
1983
|
}
|
|
1773
1984
|
));
|
|
1774
1985
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1775
|
-
var CommandInput =
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1777
|
-
/* @__PURE__ */ (0,
|
|
1986
|
+
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1987
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1778
1989
|
import_cmdk.Command.Input,
|
|
1779
1990
|
{
|
|
1780
1991
|
ref,
|
|
@@ -1787,7 +1998,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1787
1998
|
)
|
|
1788
1999
|
] }));
|
|
1789
2000
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1790
|
-
var CommandList =
|
|
2001
|
+
var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1791
2002
|
import_cmdk.Command.List,
|
|
1792
2003
|
{
|
|
1793
2004
|
ref,
|
|
@@ -1796,9 +2007,9 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1796
2007
|
}
|
|
1797
2008
|
));
|
|
1798
2009
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1799
|
-
var CommandEmpty =
|
|
2010
|
+
var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1800
2011
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1801
|
-
var CommandGroup =
|
|
2012
|
+
var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1802
2013
|
import_cmdk.Command.Group,
|
|
1803
2014
|
{
|
|
1804
2015
|
ref,
|
|
@@ -1810,7 +2021,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1810
2021
|
}
|
|
1811
2022
|
));
|
|
1812
2023
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1813
|
-
var CommandSeparator =
|
|
2024
|
+
var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1814
2025
|
import_cmdk.Command.Separator,
|
|
1815
2026
|
{
|
|
1816
2027
|
ref,
|
|
@@ -1819,7 +2030,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1819
2030
|
}
|
|
1820
2031
|
));
|
|
1821
2032
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1822
|
-
var CommandItem =
|
|
2033
|
+
var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1823
2034
|
import_cmdk.Command.Item,
|
|
1824
2035
|
{
|
|
1825
2036
|
ref,
|
|
@@ -1832,7 +2043,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1832
2043
|
));
|
|
1833
2044
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1834
2045
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1835
|
-
return /* @__PURE__ */ (0,
|
|
2046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1836
2047
|
"span",
|
|
1837
2048
|
{
|
|
1838
2049
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1983,8 +2194,8 @@ var isEUCountry = (countryCode) => {
|
|
|
1983
2194
|
};
|
|
1984
2195
|
|
|
1985
2196
|
// src/components/country-select/CountrySelect.tsx
|
|
1986
|
-
var
|
|
1987
|
-
var CountrySelect =
|
|
2197
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2198
|
+
var CountrySelect = React28.forwardRef(
|
|
1988
2199
|
({
|
|
1989
2200
|
value,
|
|
1990
2201
|
onValueChange,
|
|
@@ -1994,10 +2205,10 @@ var CountrySelect = React26.forwardRef(
|
|
|
1994
2205
|
align = "center",
|
|
1995
2206
|
sideOffset = 4
|
|
1996
2207
|
}, ref) => {
|
|
1997
|
-
const [open, setOpen] =
|
|
1998
|
-
const selectedCountry =
|
|
1999
|
-
return /* @__PURE__ */ (0,
|
|
2000
|
-
/* @__PURE__ */ (0,
|
|
2208
|
+
const [open, setOpen] = React28.useState(false);
|
|
2209
|
+
const selectedCountry = React28.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2001
2212
|
"button",
|
|
2002
2213
|
{
|
|
2003
2214
|
ref,
|
|
@@ -2018,29 +2229,29 @@ var CountrySelect = React26.forwardRef(
|
|
|
2018
2229
|
className
|
|
2019
2230
|
),
|
|
2020
2231
|
children: [
|
|
2021
|
-
/* @__PURE__ */ (0,
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2024
|
-
/* @__PURE__ */ (0,
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2234
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
2235
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
2025
2236
|
"(",
|
|
2026
2237
|
selectedCountry.code,
|
|
2027
2238
|
")"
|
|
2028
2239
|
] })
|
|
2029
|
-
] }) : /* @__PURE__ */ (0,
|
|
2030
|
-
/* @__PURE__ */ (0,
|
|
2240
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
2241
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2031
2242
|
Icon2,
|
|
2032
2243
|
{
|
|
2033
|
-
icon:
|
|
2244
|
+
icon: import_lucide_react8.Globe,
|
|
2034
2245
|
size: 16,
|
|
2035
2246
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
2036
2247
|
}
|
|
2037
2248
|
),
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
2039
2250
|
] }) }),
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2251
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2041
2252
|
Icon2,
|
|
2042
2253
|
{
|
|
2043
|
-
icon:
|
|
2254
|
+
icon: import_lucide_react8.ChevronDown,
|
|
2044
2255
|
size: 16,
|
|
2045
2256
|
className: cn(
|
|
2046
2257
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -2052,17 +2263,17 @@ var CountrySelect = React26.forwardRef(
|
|
|
2052
2263
|
]
|
|
2053
2264
|
}
|
|
2054
2265
|
) }),
|
|
2055
|
-
/* @__PURE__ */ (0,
|
|
2266
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2056
2267
|
PopoverContent,
|
|
2057
2268
|
{
|
|
2058
2269
|
align,
|
|
2059
2270
|
sideOffset,
|
|
2060
2271
|
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,
|
|
2272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Command, { children: [
|
|
2273
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(CommandList, { children: [
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
2276
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2066
2277
|
CommandItem,
|
|
2067
2278
|
{
|
|
2068
2279
|
value: `${country.name} ${country.code}`,
|
|
@@ -2076,12 +2287,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
2076
2287
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
2077
2288
|
),
|
|
2078
2289
|
children: [
|
|
2079
|
-
/* @__PURE__ */ (0,
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2082
|
-
/* @__PURE__ */ (0,
|
|
2290
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2291
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2292
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
2083
2294
|
] }),
|
|
2084
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
2295
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
2085
2296
|
]
|
|
2086
2297
|
},
|
|
2087
2298
|
country.code
|
|
@@ -2096,15 +2307,15 @@ var CountrySelect = React26.forwardRef(
|
|
|
2096
2307
|
CountrySelect.displayName = "CountrySelect";
|
|
2097
2308
|
|
|
2098
2309
|
// src/components/text-area/TextArea.tsx
|
|
2099
|
-
var
|
|
2310
|
+
var React30 = __toESM(require("react"), 1);
|
|
2100
2311
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
2101
2312
|
|
|
2102
2313
|
// src/primitives/textarea.tsx
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var Textarea =
|
|
2314
|
+
var React29 = __toESM(require("react"), 1);
|
|
2315
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2316
|
+
var Textarea = React29.forwardRef(
|
|
2106
2317
|
({ className, ...props }, ref) => {
|
|
2107
|
-
return /* @__PURE__ */ (0,
|
|
2318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2108
2319
|
"textarea",
|
|
2109
2320
|
{
|
|
2110
2321
|
className: cn(
|
|
@@ -2120,7 +2331,7 @@ var Textarea = React27.forwardRef(
|
|
|
2120
2331
|
Textarea.displayName = "Textarea";
|
|
2121
2332
|
|
|
2122
2333
|
// src/components/text-area/TextArea.tsx
|
|
2123
|
-
var
|
|
2334
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2124
2335
|
var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
2125
2336
|
"rounded-berget-xs bg-card px-4 py-3 transition-colors duration-200 focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",
|
|
2126
2337
|
{
|
|
@@ -2143,7 +2354,7 @@ var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
|
2143
2354
|
}
|
|
2144
2355
|
}
|
|
2145
2356
|
);
|
|
2146
|
-
var TextArea =
|
|
2357
|
+
var TextArea = React30.forwardRef(
|
|
2147
2358
|
({
|
|
2148
2359
|
className,
|
|
2149
2360
|
variant,
|
|
@@ -2163,13 +2374,13 @@ var TextArea = React28.forwardRef(
|
|
|
2163
2374
|
actionButton,
|
|
2164
2375
|
...props
|
|
2165
2376
|
}, ref) => {
|
|
2166
|
-
const generatedId =
|
|
2377
|
+
const generatedId = React30.useId();
|
|
2167
2378
|
const textareaId = id || generatedId;
|
|
2168
2379
|
const errorId = `${textareaId}-error`;
|
|
2169
2380
|
const descriptionId = `${textareaId}-description`;
|
|
2170
2381
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2171
|
-
return /* @__PURE__ */ (0,
|
|
2172
|
-
label && /* @__PURE__ */ (0,
|
|
2382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2383
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2173
2384
|
"label",
|
|
2174
2385
|
{
|
|
2175
2386
|
htmlFor: textareaId,
|
|
@@ -2181,9 +2392,9 @@ var TextArea = React28.forwardRef(
|
|
|
2181
2392
|
children: label
|
|
2182
2393
|
}
|
|
2183
2394
|
),
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2185
|
-
icon && /* @__PURE__ */ (0,
|
|
2186
|
-
/* @__PURE__ */ (0,
|
|
2395
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
|
|
2396
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2397
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2187
2398
|
Textarea,
|
|
2188
2399
|
{
|
|
2189
2400
|
ref,
|
|
@@ -2208,13 +2419,13 @@ var TextArea = React28.forwardRef(
|
|
|
2208
2419
|
...props
|
|
2209
2420
|
}
|
|
2210
2421
|
),
|
|
2211
|
-
secondaryIcon && /* @__PURE__ */ (0,
|
|
2212
|
-
actionButton && /* @__PURE__ */ (0,
|
|
2422
|
+
secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2423
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2213
2424
|
] }),
|
|
2214
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2215
|
-
description && /* @__PURE__ */ (0,
|
|
2216
|
-
(error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2217
|
-
showCount && maxLength && /* @__PURE__ */ (0,
|
|
2425
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2426
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2427
|
+
(error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2428
|
+
showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2218
2429
|
Typography,
|
|
2219
2430
|
{
|
|
2220
2431
|
variant: "xs",
|
|
@@ -2228,7 +2439,7 @@ var TextArea = React28.forwardRef(
|
|
|
2228
2439
|
]
|
|
2229
2440
|
}
|
|
2230
2441
|
),
|
|
2231
|
-
error && /* @__PURE__ */ (0,
|
|
2442
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2232
2443
|
Typography,
|
|
2233
2444
|
{
|
|
2234
2445
|
variant: "xs",
|
|
@@ -2245,22 +2456,22 @@ var TextArea = React28.forwardRef(
|
|
|
2245
2456
|
TextArea.displayName = "TextArea";
|
|
2246
2457
|
|
|
2247
2458
|
// src/primitives/label.tsx
|
|
2248
|
-
var
|
|
2459
|
+
var React31 = __toESM(require("react"), 1);
|
|
2249
2460
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
2250
2461
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
2251
|
-
var
|
|
2462
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2252
2463
|
var labelVariants = (0, import_class_variance_authority12.cva)(
|
|
2253
2464
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2254
2465
|
);
|
|
2255
|
-
var
|
|
2256
|
-
|
|
2466
|
+
var Label3 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2467
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2257
2468
|
|
|
2258
2469
|
// src/primitives/field.tsx
|
|
2259
2470
|
var import_react = require("react");
|
|
2260
2471
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
2261
|
-
var
|
|
2472
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2262
2473
|
function FieldSet({ className, ...props }) {
|
|
2263
|
-
return /* @__PURE__ */ (0,
|
|
2474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2264
2475
|
"fieldset",
|
|
2265
2476
|
{
|
|
2266
2477
|
"data-slot": "field-set",
|
|
@@ -2278,7 +2489,7 @@ function FieldLegend({
|
|
|
2278
2489
|
variant = "legend",
|
|
2279
2490
|
...props
|
|
2280
2491
|
}) {
|
|
2281
|
-
return /* @__PURE__ */ (0,
|
|
2492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2282
2493
|
"legend",
|
|
2283
2494
|
{
|
|
2284
2495
|
"data-slot": "field-legend",
|
|
@@ -2294,7 +2505,7 @@ function FieldLegend({
|
|
|
2294
2505
|
);
|
|
2295
2506
|
}
|
|
2296
2507
|
function FieldGroup({ className, ...props }) {
|
|
2297
|
-
return /* @__PURE__ */ (0,
|
|
2508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2298
2509
|
"div",
|
|
2299
2510
|
{
|
|
2300
2511
|
"data-slot": "field-group",
|
|
@@ -2334,7 +2545,7 @@ function Field({
|
|
|
2334
2545
|
orientation = "vertical",
|
|
2335
2546
|
...props
|
|
2336
2547
|
}) {
|
|
2337
|
-
return /* @__PURE__ */ (0,
|
|
2548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2338
2549
|
"div",
|
|
2339
2550
|
{
|
|
2340
2551
|
role: "group",
|
|
@@ -2346,7 +2557,7 @@ function Field({
|
|
|
2346
2557
|
);
|
|
2347
2558
|
}
|
|
2348
2559
|
function FieldContent({ className, ...props }) {
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2350
2561
|
"div",
|
|
2351
2562
|
{
|
|
2352
2563
|
"data-slot": "field-content",
|
|
@@ -2356,8 +2567,8 @@ function FieldContent({ className, ...props }) {
|
|
|
2356
2567
|
);
|
|
2357
2568
|
}
|
|
2358
2569
|
function FieldLabel({ className, ...props }) {
|
|
2359
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
-
|
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2571
|
+
Label3,
|
|
2361
2572
|
{
|
|
2362
2573
|
"data-slot": "field-label",
|
|
2363
2574
|
className: cn(
|
|
@@ -2371,7 +2582,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2371
2582
|
);
|
|
2372
2583
|
}
|
|
2373
2584
|
function FieldTitle({ className, ...props }) {
|
|
2374
|
-
return /* @__PURE__ */ (0,
|
|
2585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2375
2586
|
"div",
|
|
2376
2587
|
{
|
|
2377
2588
|
"data-slot": "field-label",
|
|
@@ -2384,7 +2595,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2384
2595
|
);
|
|
2385
2596
|
}
|
|
2386
2597
|
function FieldDescription({ className, ...props }) {
|
|
2387
|
-
return /* @__PURE__ */ (0,
|
|
2598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2388
2599
|
"p",
|
|
2389
2600
|
{
|
|
2390
2601
|
"data-slot": "field-description",
|
|
@@ -2403,7 +2614,7 @@ function FieldSeparator({
|
|
|
2403
2614
|
className,
|
|
2404
2615
|
...props
|
|
2405
2616
|
}) {
|
|
2406
|
-
return /* @__PURE__ */ (0,
|
|
2617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2407
2618
|
"div",
|
|
2408
2619
|
{
|
|
2409
2620
|
"data-slot": "field-separator",
|
|
@@ -2414,8 +2625,8 @@ function FieldSeparator({
|
|
|
2414
2625
|
),
|
|
2415
2626
|
...props,
|
|
2416
2627
|
children: [
|
|
2417
|
-
/* @__PURE__ */ (0,
|
|
2418
|
-
children && /* @__PURE__ */ (0,
|
|
2628
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2629
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2419
2630
|
"span",
|
|
2420
2631
|
{
|
|
2421
2632
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2443,12 +2654,12 @@ function FieldError({
|
|
|
2443
2654
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2444
2655
|
return errors[0].message;
|
|
2445
2656
|
}
|
|
2446
|
-
return /* @__PURE__ */ (0,
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { children: error.message }, index)) });
|
|
2447
2658
|
}, [children, errors]);
|
|
2448
2659
|
if (!content) {
|
|
2449
2660
|
return null;
|
|
2450
2661
|
}
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2452
2663
|
"div",
|
|
2453
2664
|
{
|
|
2454
2665
|
role: "alert",
|
|
@@ -2461,10 +2672,10 @@ function FieldError({
|
|
|
2461
2672
|
}
|
|
2462
2673
|
|
|
2463
2674
|
// src/components/link/Link.tsx
|
|
2464
|
-
var
|
|
2675
|
+
var React32 = __toESM(require("react"), 1);
|
|
2465
2676
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2677
|
+
var import_lucide_react9 = require("lucide-react");
|
|
2678
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2468
2679
|
var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
2469
2680
|
"inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
2470
2681
|
{
|
|
@@ -2489,7 +2700,7 @@ var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
|
2489
2700
|
}
|
|
2490
2701
|
}
|
|
2491
2702
|
);
|
|
2492
|
-
var Link =
|
|
2703
|
+
var Link = React32.forwardRef(
|
|
2493
2704
|
({
|
|
2494
2705
|
className,
|
|
2495
2706
|
variant,
|
|
@@ -2502,7 +2713,7 @@ var Link = React30.forwardRef(
|
|
|
2502
2713
|
...props
|
|
2503
2714
|
}, ref) => {
|
|
2504
2715
|
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,
|
|
2716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2506
2717
|
"a",
|
|
2507
2718
|
{
|
|
2508
2719
|
ref,
|
|
@@ -2518,8 +2729,8 @@ var Link = React30.forwardRef(
|
|
|
2518
2729
|
},
|
|
2519
2730
|
children: [
|
|
2520
2731
|
children,
|
|
2521
|
-
icon && /* @__PURE__ */ (0,
|
|
2522
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
2732
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
2733
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon2, { icon: import_lucide_react9.ExternalLink, size: 16 }) })
|
|
2523
2734
|
]
|
|
2524
2735
|
}
|
|
2525
2736
|
);
|
|
@@ -2528,10 +2739,10 @@ var Link = React30.forwardRef(
|
|
|
2528
2739
|
Link.displayName = "Link";
|
|
2529
2740
|
|
|
2530
2741
|
// src/components/container/Container.tsx
|
|
2531
|
-
var
|
|
2742
|
+
var React33 = __toESM(require("react"), 1);
|
|
2532
2743
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
2533
2744
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
2534
|
-
var
|
|
2745
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2535
2746
|
var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-auto", {
|
|
2536
2747
|
variants: {
|
|
2537
2748
|
size: {
|
|
@@ -2553,10 +2764,10 @@ var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-au
|
|
|
2553
2764
|
padding: "md"
|
|
2554
2765
|
}
|
|
2555
2766
|
});
|
|
2556
|
-
var Container =
|
|
2767
|
+
var Container = React33.forwardRef(
|
|
2557
2768
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2558
2769
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
2559
|
-
return /* @__PURE__ */ (0,
|
|
2770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2560
2771
|
Component,
|
|
2561
2772
|
{
|
|
2562
2773
|
ref,
|
|
@@ -2570,10 +2781,10 @@ var Container = React31.forwardRef(
|
|
|
2570
2781
|
Container.displayName = "Container";
|
|
2571
2782
|
|
|
2572
2783
|
// src/components/grid/Grid.tsx
|
|
2573
|
-
var
|
|
2784
|
+
var React34 = __toESM(require("react"), 1);
|
|
2574
2785
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
2575
2786
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2576
|
-
var
|
|
2787
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2577
2788
|
var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
2578
2789
|
variants: {
|
|
2579
2790
|
align: {
|
|
@@ -2596,10 +2807,10 @@ var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
|
2596
2807
|
justify: "start"
|
|
2597
2808
|
}
|
|
2598
2809
|
});
|
|
2599
|
-
var Grid =
|
|
2810
|
+
var Grid = React34.forwardRef(
|
|
2600
2811
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2601
2812
|
const Component = asChild ? import_react_slot4.Slot : "div";
|
|
2602
|
-
return /* @__PURE__ */ (0,
|
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2603
2814
|
Component,
|
|
2604
2815
|
{
|
|
2605
2816
|
ref,
|
|
@@ -2621,10 +2832,10 @@ var Grid = React32.forwardRef(
|
|
|
2621
2832
|
Grid.displayName = "Grid";
|
|
2622
2833
|
|
|
2623
2834
|
// src/components/box/Box.tsx
|
|
2624
|
-
var
|
|
2835
|
+
var React35 = __toESM(require("react"), 1);
|
|
2625
2836
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2626
2837
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
2627
|
-
var
|
|
2838
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2628
2839
|
var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
2629
2840
|
variants: {
|
|
2630
2841
|
direction: {
|
|
@@ -2661,10 +2872,10 @@ var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
|
2661
2872
|
wrap: "nowrap"
|
|
2662
2873
|
}
|
|
2663
2874
|
});
|
|
2664
|
-
var Box =
|
|
2875
|
+
var Box = React35.forwardRef(
|
|
2665
2876
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2666
2877
|
const Component = asChild ? import_react_slot5.Slot : "div";
|
|
2667
|
-
return /* @__PURE__ */ (0,
|
|
2878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2668
2879
|
Component,
|
|
2669
2880
|
{
|
|
2670
2881
|
ref,
|
|
@@ -2682,16 +2893,16 @@ var Box = React33.forwardRef(
|
|
|
2682
2893
|
Box.displayName = "Box";
|
|
2683
2894
|
|
|
2684
2895
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2685
|
-
var
|
|
2686
|
-
var
|
|
2687
|
-
var BergetLogo =
|
|
2896
|
+
var React36 = __toESM(require("react"), 1);
|
|
2897
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2898
|
+
var BergetLogo = React36.forwardRef(
|
|
2688
2899
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2689
2900
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2690
2901
|
if (variant === "symbol") {
|
|
2691
2902
|
const aspectRatio2 = 463 / 419;
|
|
2692
2903
|
const width2 = size * aspectRatio2;
|
|
2693
2904
|
const height2 = size;
|
|
2694
|
-
return /* @__PURE__ */ (0,
|
|
2905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2695
2906
|
"svg",
|
|
2696
2907
|
{
|
|
2697
2908
|
ref,
|
|
@@ -2704,7 +2915,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2704
2915
|
"aria-label": "Berget symbol",
|
|
2705
2916
|
className: cn("inline-block", className),
|
|
2706
2917
|
...props,
|
|
2707
|
-
children: /* @__PURE__ */ (0,
|
|
2918
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2708
2919
|
"path",
|
|
2709
2920
|
{
|
|
2710
2921
|
d: "M208.739 17L255.261 17L446 403L398 403L313.5 255L261.5 176L233.163 96.1677L237.815 98.6522H226.185L230.837 96.1677L113 331L64.5 403L18 403L208.739 17Z",
|
|
@@ -2717,7 +2928,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2717
2928
|
const aspectRatio = 793.63 / 204.37;
|
|
2718
2929
|
const width = size * aspectRatio;
|
|
2719
2930
|
const height = size;
|
|
2720
|
-
return /* @__PURE__ */ (0,
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2721
2932
|
"svg",
|
|
2722
2933
|
{
|
|
2723
2934
|
ref,
|
|
@@ -2731,59 +2942,59 @@ var BergetLogo = React34.forwardRef(
|
|
|
2731
2942
|
className: cn("inline-block", className),
|
|
2732
2943
|
...props,
|
|
2733
2944
|
children: [
|
|
2734
|
-
/* @__PURE__ */ (0,
|
|
2735
|
-
/* @__PURE__ */ (0,
|
|
2945
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("g", { style: { fill: fillColor }, children: [
|
|
2946
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2736
2947
|
"path",
|
|
2737
2948
|
{
|
|
2738
2949
|
className: "berget-logotype-fill",
|
|
2739
2950
|
d: "M268.78,172.54v-96.04h37.74c10.39,0,18.26,2.33,23.6,7,5.33,4.67,8.01,10.52,8.01,17.56,0,6.13-1.72,11-5.15,14.61-3.43,3.61-7.58,6.06-12.44,7.34,3.81.73,7.22,2.2,10.22,4.39,3.01,2.2,5.36,4.94,7.08,8.23,1.72,3.29,2.58,6.86,2.58,10.7,0,4.94-1.27,9.4-3.79,13.38-2.53,3.98-6.22,7.11-11.08,9.4-4.86,2.29-10.82,3.43-17.87,3.43h-38.89ZM283.93,117.66h20.74c5.81,0,10.24-1.3,13.29-3.91,3.05-2.61,4.58-6.19,4.58-10.77s-1.51-8.05-4.51-10.7c-3-2.65-7.55-3.98-13.65-3.98h-20.45v29.36ZM283.93,160.61h21.74c6.1,0,10.84-1.37,14.22-4.11,3.38-2.75,5.08-6.59,5.08-11.53s-1.76-8.85-5.29-11.73-8.29-4.32-14.3-4.32h-21.45v31.69Z"
|
|
2740
2951
|
}
|
|
2741
2952
|
),
|
|
2742
|
-
/* @__PURE__ */ (0,
|
|
2953
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2743
2954
|
"path",
|
|
2744
2955
|
{
|
|
2745
2956
|
className: "berget-logotype-fill",
|
|
2746
2957
|
d: "M382.45,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81,2.91-1.88,5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM382.45,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2747
2958
|
}
|
|
2748
2959
|
),
|
|
2749
|
-
/* @__PURE__ */ (0,
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2750
2961
|
"path",
|
|
2751
2962
|
{
|
|
2752
2963
|
className: "berget-logotype-fill",
|
|
2753
2964
|
d: "M425.62,172.54v-68.05h13.59l1.29,12.9c2.47-4.48,5.93-8.03,10.37-10.63,4.43-2.61,9.79-3.91,16.08-3.91v15.23h-4.15c-4.19,0-7.93.67-11.22,1.99-3.29,1.33-5.91,3.57-7.86,6.72-1.96,3.16-2.93,7.53-2.93,13.1v32.65h-15.16Z"
|
|
2754
2965
|
}
|
|
2755
2966
|
),
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
2967
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2757
2968
|
"path",
|
|
2758
2969
|
{
|
|
2759
2970
|
className: "berget-logotype-fill",
|
|
2760
2971
|
d: "M500.25,151.69c-3.72,0-7.14-.41-10.29-1.24l-6.15,5.76c1.05.64,2.34,1.19,3.86,1.65,1.52.46,3.66.87,6.43,1.23,2.76.37,6.53.73,11.29,1.1,9.43.82,16.25,3,20.44,6.52,4.2,3.52,6.29,8.21,6.29,14.06,0,4.02-1.12,7.84-3.35,11.45-2.24,3.61-5.72,6.54-10.44,8.78s-10.74,3.36-18.09,3.36c-9.91,0-17.94-1.8-24.09-5.42-6.15-3.62-9.22-9.08-9.22-16.4,0-2.84.78-5.65,2.35-8.44,1.57-2.79,4.08-5.42,7.51-7.89-2-.83-3.74-1.72-5.22-2.68-1.48-.96-2.79-1.94-3.94-2.95v-3.29l12.3-12.07c-5.53-4.57-8.29-10.56-8.29-17.97,0-4.48,1.12-8.58,3.36-12.28,2.24-3.7,5.5-6.65,9.79-8.85,4.29-2.2,9.43-3.29,15.44-3.29,4.01,0,7.72.55,11.15,1.64h26.45v9.6l-12.58.69c2.28,3.75,3.43,7.91,3.43,12.49s-1.13,8.69-3.36,12.35c-2.24,3.66-5.48,6.59-9.72,8.78-4.25,2.2-9.37,3.29-15.37,3.29ZM481.24,181.19c0,3.93,1.81,6.88,5.44,8.85,3.62,1.97,8.15,2.95,13.58,2.95s9.48-1.07,12.72-3.22c3.24-2.15,4.86-5,4.86-8.57,0-2.65-1.09-4.92-3.29-6.79-2.19-1.87-6.34-3.04-12.44-3.5-4.57-.27-8.63-.68-12.15-1.23-3.34,1.74-5.63,3.61-6.86,5.63-1.25,2.01-1.86,3.98-1.86,5.9ZM500.25,140.3c4.38,0,7.93-1.12,10.66-3.36,2.71-2.24,4.07-5.42,4.07-9.53s-1.36-7.41-4.07-9.6c-2.72-2.2-6.27-3.29-10.66-3.29s-8.08,1.1-10.79,3.29c-2.71,2.2-4.08,5.4-4.08,9.6s1.36,7.3,4.08,9.53c2.71,2.24,6.31,3.36,10.79,3.36Z"
|
|
2761
2972
|
}
|
|
2762
2973
|
),
|
|
2763
|
-
/* @__PURE__ */ (0,
|
|
2974
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2764
2975
|
"path",
|
|
2765
2976
|
{
|
|
2766
2977
|
className: "berget-logotype-fill",
|
|
2767
2978
|
d: "M574.61,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79c3-5.4,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81s5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM574.61,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2768
2979
|
}
|
|
2769
2980
|
),
|
|
2770
|
-
/* @__PURE__ */ (0,
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2771
2982
|
"path",
|
|
2772
2983
|
{
|
|
2773
2984
|
className: "berget-logotype-fill",
|
|
2774
2985
|
d: "M646.23,172.54c-6.96,0-12.49-1.62-16.59-4.87-4.1-3.25-6.15-9.03-6.15-17.36v-33.61h-12.16v-12.21h12.16l1.86-17.29h13.29v17.29h20.02v12.21h-20.02v33.61c0,3.75.84,6.33,2.51,7.75,1.67,1.42,4.55,2.13,8.65,2.13h8.14v12.35h-11.72Z"
|
|
2775
2986
|
}
|
|
2776
2987
|
),
|
|
2777
|
-
/* @__PURE__ */ (0,
|
|
2988
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2778
2989
|
"path",
|
|
2779
2990
|
{
|
|
2780
2991
|
className: "berget-logotype-fill",
|
|
2781
2992
|
d: "M684.4,172.54l36.89-96.04h16.59l36.6,96.04h-16.01l-8.58-23.46h-40.88l-8.58,23.46h-16.01ZM713.28,137.56h32.31l-16.16-43.77-16.16,43.77Z"
|
|
2782
2993
|
}
|
|
2783
2994
|
),
|
|
2784
|
-
/* @__PURE__ */ (0,
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2785
2996
|
] }),
|
|
2786
|
-
/* @__PURE__ */ (0,
|
|
2997
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2787
2998
|
"path",
|
|
2788
2999
|
{
|
|
2789
3000
|
style: { fill: fillColor },
|
|
@@ -2798,13 +3009,13 @@ var BergetLogo = React34.forwardRef(
|
|
|
2798
3009
|
BergetLogo.displayName = "BergetLogo";
|
|
2799
3010
|
|
|
2800
3011
|
// src/components/language-select/LanguageSelect.tsx
|
|
2801
|
-
var
|
|
3012
|
+
var React37 = __toESM(require("react"), 1);
|
|
2802
3013
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
2803
|
-
var
|
|
2804
|
-
var
|
|
2805
|
-
var LanguageSelect =
|
|
2806
|
-
return /* @__PURE__ */ (0,
|
|
2807
|
-
/* @__PURE__ */ (0,
|
|
3014
|
+
var import_lucide_react10 = require("lucide-react");
|
|
3015
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3016
|
+
var LanguageSelect = React37.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
3017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
3018
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2808
3019
|
SelectPrimitive2.Trigger,
|
|
2809
3020
|
{
|
|
2810
3021
|
ref,
|
|
@@ -2827,12 +3038,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2827
3038
|
className
|
|
2828
3039
|
),
|
|
2829
3040
|
children: [
|
|
2830
|
-
/* @__PURE__ */ (0,
|
|
2831
|
-
/* @__PURE__ */ (0,
|
|
3041
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
3042
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon2, { icon: import_lucide_react10.Globe, size: 16, "aria-hidden": true })
|
|
2832
3043
|
]
|
|
2833
3044
|
}
|
|
2834
3045
|
),
|
|
2835
|
-
/* @__PURE__ */ (0,
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2836
3047
|
SelectPrimitive2.Content,
|
|
2837
3048
|
{
|
|
2838
3049
|
className: cn(
|
|
@@ -2860,7 +3071,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2860
3071
|
"origin-[--radix-select-content-transform-origin]"
|
|
2861
3072
|
),
|
|
2862
3073
|
position: "popper",
|
|
2863
|
-
children: /* @__PURE__ */ (0,
|
|
3074
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2864
3075
|
SelectPrimitive2.Item,
|
|
2865
3076
|
{
|
|
2866
3077
|
value: option.value,
|
|
@@ -2877,7 +3088,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2877
3088
|
// Disabled state
|
|
2878
3089
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2879
3090
|
),
|
|
2880
|
-
children: /* @__PURE__ */ (0,
|
|
3091
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectPrimitive2.ItemText, { children: option.label })
|
|
2881
3092
|
},
|
|
2882
3093
|
option.value
|
|
2883
3094
|
)) })
|
|
@@ -2888,12 +3099,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2888
3099
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2889
3100
|
|
|
2890
3101
|
// src/components/list/List.tsx
|
|
2891
|
-
var
|
|
3102
|
+
var React39 = __toESM(require("react"), 1);
|
|
2892
3103
|
|
|
2893
3104
|
// src/components/divider/Divider.tsx
|
|
2894
|
-
var
|
|
3105
|
+
var React38 = __toESM(require("react"), 1);
|
|
2895
3106
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2896
|
-
var
|
|
3107
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2897
3108
|
var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
2898
3109
|
variants: {
|
|
2899
3110
|
variant: {
|
|
@@ -2914,7 +3125,7 @@ var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
|
2914
3125
|
size: "thin"
|
|
2915
3126
|
}
|
|
2916
3127
|
});
|
|
2917
|
-
var Divider =
|
|
3128
|
+
var Divider = React38.forwardRef(
|
|
2918
3129
|
({
|
|
2919
3130
|
className,
|
|
2920
3131
|
orientation = "horizontal",
|
|
@@ -2925,17 +3136,17 @@ var Divider = React36.forwardRef(
|
|
|
2925
3136
|
...props
|
|
2926
3137
|
}, ref) => {
|
|
2927
3138
|
if (label) {
|
|
2928
|
-
return /* @__PURE__ */ (0,
|
|
2929
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
2930
|
-
|
|
3139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3140
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3141
|
+
Separator2,
|
|
2931
3142
|
{
|
|
2932
3143
|
orientation: "horizontal",
|
|
2933
3144
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2934
3145
|
}
|
|
2935
3146
|
),
|
|
2936
|
-
/* @__PURE__ */ (0,
|
|
2937
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
2938
|
-
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3148
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3149
|
+
Separator2,
|
|
2939
3150
|
{
|
|
2940
3151
|
orientation: "horizontal",
|
|
2941
3152
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
@@ -2943,8 +3154,8 @@ var Divider = React36.forwardRef(
|
|
|
2943
3154
|
)
|
|
2944
3155
|
] });
|
|
2945
3156
|
}
|
|
2946
|
-
return /* @__PURE__ */ (0,
|
|
2947
|
-
|
|
3157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3158
|
+
Separator2,
|
|
2948
3159
|
{
|
|
2949
3160
|
ref,
|
|
2950
3161
|
orientation,
|
|
@@ -2960,20 +3171,20 @@ var Divider = React36.forwardRef(
|
|
|
2960
3171
|
Divider.displayName = "Divider";
|
|
2961
3172
|
|
|
2962
3173
|
// src/components/list/List.tsx
|
|
2963
|
-
var
|
|
2964
|
-
var
|
|
2965
|
-
var List =
|
|
3174
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3175
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3176
|
+
var List = React39.forwardRef(
|
|
2966
3177
|
({ className, children, ...props }, ref) => {
|
|
2967
|
-
const childrenArray =
|
|
2968
|
-
return /* @__PURE__ */ (0,
|
|
3178
|
+
const childrenArray = React39.Children.toArray(children);
|
|
3179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(React39.Fragment, { children: [
|
|
2969
3180
|
child,
|
|
2970
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
3181
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Divider, { variant: "subtle" })
|
|
2971
3182
|
] }, index)) });
|
|
2972
3183
|
}
|
|
2973
3184
|
);
|
|
2974
3185
|
List.displayName = "List";
|
|
2975
|
-
var ListItem =
|
|
2976
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3186
|
+
var ListItem = React39.forwardRef(
|
|
3187
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2977
3188
|
"div",
|
|
2978
3189
|
{
|
|
2979
3190
|
ref,
|
|
@@ -2984,15 +3195,15 @@ var ListItem = React37.forwardRef(
|
|
|
2984
3195
|
),
|
|
2985
3196
|
...props,
|
|
2986
3197
|
children: [
|
|
2987
|
-
icon && /* @__PURE__ */ (0,
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
3198
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
2989
3200
|
]
|
|
2990
3201
|
}
|
|
2991
3202
|
)
|
|
2992
3203
|
);
|
|
2993
3204
|
ListItem.displayName = "ListItem";
|
|
2994
|
-
var ListHeader =
|
|
2995
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3205
|
+
var ListHeader = React39.forwardRef(
|
|
3206
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2996
3207
|
"div",
|
|
2997
3208
|
{
|
|
2998
3209
|
ref,
|
|
@@ -3003,20 +3214,20 @@ var ListHeader = React37.forwardRef(
|
|
|
3003
3214
|
)
|
|
3004
3215
|
);
|
|
3005
3216
|
ListHeader.displayName = "ListHeader";
|
|
3006
|
-
var FeatureList =
|
|
3217
|
+
var FeatureList = React39.forwardRef(
|
|
3007
3218
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
3008
|
-
return /* @__PURE__ */ (0,
|
|
3009
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
3010
|
-
/* @__PURE__ */ (0,
|
|
3219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3220
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2, { icon: import_lucide_react11.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
3011
3222
|
] }, index)) });
|
|
3012
3223
|
}
|
|
3013
3224
|
);
|
|
3014
3225
|
FeatureList.displayName = "FeatureList";
|
|
3015
3226
|
|
|
3016
3227
|
// src/components/hero-block/HeroBlock.tsx
|
|
3017
|
-
var
|
|
3228
|
+
var React40 = __toESM(require("react"), 1);
|
|
3018
3229
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
3019
|
-
var
|
|
3230
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3020
3231
|
var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
3021
3232
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3022
3233
|
{
|
|
@@ -3037,7 +3248,7 @@ var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3037
3248
|
}
|
|
3038
3249
|
}
|
|
3039
3250
|
);
|
|
3040
|
-
var HeroBlock =
|
|
3251
|
+
var HeroBlock = React40.forwardRef(
|
|
3041
3252
|
({
|
|
3042
3253
|
className,
|
|
3043
3254
|
variant,
|
|
@@ -3049,26 +3260,26 @@ var HeroBlock = React38.forwardRef(
|
|
|
3049
3260
|
actions,
|
|
3050
3261
|
...props
|
|
3051
3262
|
}, ref) => {
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
3263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3053
3264
|
"div",
|
|
3054
3265
|
{
|
|
3055
3266
|
ref,
|
|
3056
3267
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
3057
3268
|
...props,
|
|
3058
|
-
children: /* @__PURE__ */ (0,
|
|
3059
|
-
tagline && /* @__PURE__ */ (0,
|
|
3269
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3270
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3060
3271
|
Badge,
|
|
3061
3272
|
{
|
|
3062
3273
|
variant: "default",
|
|
3063
|
-
icon: TaglineIcon ? /* @__PURE__ */ (0,
|
|
3274
|
+
icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
3064
3275
|
iconGap: 2,
|
|
3065
3276
|
className: "mb-fluid-md",
|
|
3066
3277
|
children: tagline
|
|
3067
3278
|
}
|
|
3068
3279
|
),
|
|
3069
|
-
/* @__PURE__ */ (0,
|
|
3070
|
-
/* @__PURE__ */ (0,
|
|
3071
|
-
actions && /* @__PURE__ */ (0,
|
|
3280
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3281
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3282
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
3072
3283
|
] }) })
|
|
3073
3284
|
}
|
|
3074
3285
|
);
|
|
@@ -3078,7 +3289,7 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
3078
3289
|
|
|
3079
3290
|
// src/components/code-block/CodeBlock.tsx
|
|
3080
3291
|
var import_react2 = require("react");
|
|
3081
|
-
var
|
|
3292
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3082
3293
|
|
|
3083
3294
|
// src/lib/shiki.ts
|
|
3084
3295
|
var import_core2 = require("shiki/core");
|
|
@@ -3119,7 +3330,7 @@ function getHighlighter() {
|
|
|
3119
3330
|
}
|
|
3120
3331
|
|
|
3121
3332
|
// src/components/code-block/CodeBlock.tsx
|
|
3122
|
-
var
|
|
3333
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3123
3334
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
3124
3335
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
3125
3336
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -3135,16 +3346,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3135
3346
|
setCopied(true);
|
|
3136
3347
|
setTimeout(() => setCopied(false), 2e3);
|
|
3137
3348
|
}, [code]);
|
|
3138
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
3349
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3139
3350
|
"button",
|
|
3140
3351
|
{
|
|
3141
3352
|
onClick: handleCopy,
|
|
3142
3353
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
3143
3354
|
"aria-label": "Copy code",
|
|
3144
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
3355
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react12.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react12.Copy, { className: "w-3.5 h-3.5" })
|
|
3145
3356
|
}
|
|
3146
3357
|
);
|
|
3147
|
-
return /* @__PURE__ */ (0,
|
|
3358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3148
3359
|
"div",
|
|
3149
3360
|
{
|
|
3150
3361
|
className: cn(
|
|
@@ -3152,25 +3363,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3152
3363
|
className
|
|
3153
3364
|
),
|
|
3154
3365
|
children: [
|
|
3155
|
-
title && /* @__PURE__ */ (0,
|
|
3156
|
-
/* @__PURE__ */ (0,
|
|
3157
|
-
html ? /* @__PURE__ */ (0,
|
|
3366
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3367
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3368
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3158
3369
|
"div",
|
|
3159
3370
|
{
|
|
3160
3371
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
3161
3372
|
dangerouslySetInnerHTML: { __html: html }
|
|
3162
3373
|
}
|
|
3163
|
-
) : /* @__PURE__ */ (0,
|
|
3374
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("code", { children: code }) })
|
|
3164
3375
|
]
|
|
3165
3376
|
}
|
|
3166
3377
|
);
|
|
3167
3378
|
}
|
|
3168
3379
|
|
|
3169
3380
|
// src/components/window-frame/WindowFrame.tsx
|
|
3170
|
-
var
|
|
3381
|
+
var React41 = __toESM(require("react"), 1);
|
|
3171
3382
|
var import_react3 = require("react");
|
|
3172
|
-
var
|
|
3173
|
-
var WindowFrame =
|
|
3383
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3384
|
+
var WindowFrame = React41.forwardRef(
|
|
3174
3385
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3175
3386
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
3176
3387
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3181,7 +3392,7 @@ var WindowFrame = React39.forwardRef(
|
|
|
3181
3392
|
setInternalActive(id);
|
|
3182
3393
|
}
|
|
3183
3394
|
};
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3185
3396
|
"div",
|
|
3186
3397
|
{
|
|
3187
3398
|
ref,
|
|
@@ -3191,13 +3402,13 @@ var WindowFrame = React39.forwardRef(
|
|
|
3191
3402
|
),
|
|
3192
3403
|
...props,
|
|
3193
3404
|
children: [
|
|
3194
|
-
/* @__PURE__ */ (0,
|
|
3195
|
-
/* @__PURE__ */ (0,
|
|
3196
|
-
/* @__PURE__ */ (0,
|
|
3197
|
-
/* @__PURE__ */ (0,
|
|
3198
|
-
/* @__PURE__ */ (0,
|
|
3405
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3406
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3408
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3199
3410
|
] }),
|
|
3200
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
3411
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3201
3412
|
"button",
|
|
3202
3413
|
{
|
|
3203
3414
|
type: "button",
|
|
@@ -3209,9 +3420,9 @@ var WindowFrame = React39.forwardRef(
|
|
|
3209
3420
|
children: tab.label
|
|
3210
3421
|
},
|
|
3211
3422
|
tab.id
|
|
3212
|
-
)) }) : /* @__PURE__ */ (0,
|
|
3423
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3213
3424
|
] }),
|
|
3214
|
-
/* @__PURE__ */ (0,
|
|
3425
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children })
|
|
3215
3426
|
]
|
|
3216
3427
|
}
|
|
3217
3428
|
);
|
|
@@ -3222,6 +3433,17 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3222
3433
|
0 && (module.exports = {
|
|
3223
3434
|
Alert,
|
|
3224
3435
|
AlertDescription,
|
|
3436
|
+
AlertDialog,
|
|
3437
|
+
AlertDialogAction,
|
|
3438
|
+
AlertDialogCancel,
|
|
3439
|
+
AlertDialogContent,
|
|
3440
|
+
AlertDialogDescription,
|
|
3441
|
+
AlertDialogFooter,
|
|
3442
|
+
AlertDialogHeader,
|
|
3443
|
+
AlertDialogOverlay,
|
|
3444
|
+
AlertDialogPortal,
|
|
3445
|
+
AlertDialogTitle,
|
|
3446
|
+
AlertDialogTrigger,
|
|
3225
3447
|
AlertTitle,
|
|
3226
3448
|
Badge,
|
|
3227
3449
|
BergetLogo,
|
|
@@ -3248,6 +3470,21 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3248
3470
|
DialogPortal,
|
|
3249
3471
|
DialogTitle,
|
|
3250
3472
|
DialogTrigger,
|
|
3473
|
+
DropdownMenu,
|
|
3474
|
+
DropdownMenuCheckboxItem,
|
|
3475
|
+
DropdownMenuContent,
|
|
3476
|
+
DropdownMenuGroup,
|
|
3477
|
+
DropdownMenuItem,
|
|
3478
|
+
DropdownMenuLabel,
|
|
3479
|
+
DropdownMenuPortal,
|
|
3480
|
+
DropdownMenuRadioGroup,
|
|
3481
|
+
DropdownMenuRadioItem,
|
|
3482
|
+
DropdownMenuSeparator,
|
|
3483
|
+
DropdownMenuShortcut,
|
|
3484
|
+
DropdownMenuSub,
|
|
3485
|
+
DropdownMenuSubContent,
|
|
3486
|
+
DropdownMenuSubTrigger,
|
|
3487
|
+
DropdownMenuTrigger,
|
|
3251
3488
|
EU_COUNTRY_CODES,
|
|
3252
3489
|
FeatureList,
|
|
3253
3490
|
Field,
|