@bergetai/ui 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +479 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +460 -360
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ __export(index_exports, {
|
|
|
100
100
|
HeroBlock: () => HeroBlock,
|
|
101
101
|
Icon: () => Icon2,
|
|
102
102
|
Input: () => Input2,
|
|
103
|
-
Item: () =>
|
|
103
|
+
Item: () => Item4,
|
|
104
104
|
ItemActions: () => ItemActions,
|
|
105
105
|
ItemContent: () => ItemContent,
|
|
106
106
|
ItemDescription: () => ItemDescription2,
|
|
@@ -112,10 +112,18 @@ __export(index_exports, {
|
|
|
112
112
|
ItemTitle: () => ItemTitle2,
|
|
113
113
|
Label: () => Label3,
|
|
114
114
|
LanguageSelect: () => LanguageSelect,
|
|
115
|
-
Link: () =>
|
|
116
|
-
List: () =>
|
|
115
|
+
Link: () => Link2,
|
|
116
|
+
List: () => List2,
|
|
117
117
|
ListHeader: () => ListHeader,
|
|
118
118
|
ListItem: () => ListItem,
|
|
119
|
+
NavigationMenu: () => NavigationMenu,
|
|
120
|
+
NavigationMenuContent: () => NavigationMenuContent,
|
|
121
|
+
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
122
|
+
NavigationMenuItem: () => NavigationMenuItem,
|
|
123
|
+
NavigationMenuLink: () => NavigationMenuLink,
|
|
124
|
+
NavigationMenuList: () => NavigationMenuList,
|
|
125
|
+
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
126
|
+
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
119
127
|
Select: () => Select2,
|
|
120
128
|
Switch: () => Switch,
|
|
121
129
|
Table: () => Table2,
|
|
@@ -143,6 +151,7 @@ __export(index_exports, {
|
|
|
143
151
|
gridVariants: () => gridVariants,
|
|
144
152
|
isEUCountry: () => isEUCountry,
|
|
145
153
|
linkVariants: () => linkVariants,
|
|
154
|
+
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
146
155
|
selectVariants: () => selectVariants,
|
|
147
156
|
switchRootVariants: () => switchRootVariants,
|
|
148
157
|
switchThumbVariants: () => switchThumbVariants,
|
|
@@ -921,21 +930,112 @@ var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
|
921
930
|
};
|
|
922
931
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
923
932
|
|
|
933
|
+
// src/components/navigation-menu/NavigationMenu.tsx
|
|
934
|
+
var React13 = __toESM(require("react"), 1);
|
|
935
|
+
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
936
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
937
|
+
var import_lucide_react3 = require("lucide-react");
|
|
938
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
939
|
+
var NavigationMenu = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
940
|
+
NavigationMenuPrimitive.Root,
|
|
941
|
+
{
|
|
942
|
+
ref,
|
|
943
|
+
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
|
|
944
|
+
...props,
|
|
945
|
+
children: [
|
|
946
|
+
children,
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(NavigationMenuViewport, {})
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
));
|
|
951
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
952
|
+
var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
953
|
+
NavigationMenuPrimitive.List,
|
|
954
|
+
{
|
|
955
|
+
ref,
|
|
956
|
+
className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
|
|
957
|
+
...props
|
|
958
|
+
}
|
|
959
|
+
));
|
|
960
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
961
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
962
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority7.cva)(
|
|
963
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-berget-xs px-4 py-2 text-sm font-medium transition-colors hover:bg-berget-surface-02 hover:text-berget-foreground focus:bg-berget-surface-02 focus:text-berget-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-berget-foreground data-[state=open]:bg-berget-border data-[state=open]:hover:bg-berget-border data-[state=open]:focus:bg-berget-border"
|
|
964
|
+
);
|
|
965
|
+
var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
966
|
+
NavigationMenuPrimitive.Trigger,
|
|
967
|
+
{
|
|
968
|
+
ref,
|
|
969
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
970
|
+
...props,
|
|
971
|
+
children: [
|
|
972
|
+
children,
|
|
973
|
+
" ",
|
|
974
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
975
|
+
import_lucide_react3.ChevronDown,
|
|
976
|
+
{
|
|
977
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
978
|
+
"aria-hidden": "true"
|
|
979
|
+
}
|
|
980
|
+
)
|
|
981
|
+
]
|
|
982
|
+
}
|
|
983
|
+
));
|
|
984
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
985
|
+
var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
986
|
+
NavigationMenuPrimitive.Content,
|
|
987
|
+
{
|
|
988
|
+
ref,
|
|
989
|
+
className: cn(
|
|
990
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
991
|
+
className
|
|
992
|
+
),
|
|
993
|
+
...props
|
|
994
|
+
}
|
|
995
|
+
));
|
|
996
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
997
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
998
|
+
var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
999
|
+
NavigationMenuPrimitive.Viewport,
|
|
1000
|
+
{
|
|
1001
|
+
className: cn(
|
|
1002
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1003
|
+
className
|
|
1004
|
+
),
|
|
1005
|
+
ref,
|
|
1006
|
+
...props
|
|
1007
|
+
}
|
|
1008
|
+
) }));
|
|
1009
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1010
|
+
var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1011
|
+
NavigationMenuPrimitive.Indicator,
|
|
1012
|
+
{
|
|
1013
|
+
ref,
|
|
1014
|
+
className: cn(
|
|
1015
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
1016
|
+
className
|
|
1017
|
+
),
|
|
1018
|
+
...props,
|
|
1019
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
|
|
1020
|
+
}
|
|
1021
|
+
));
|
|
1022
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1023
|
+
|
|
924
1024
|
// src/components/table/Table.tsx
|
|
925
|
-
var
|
|
1025
|
+
var React15 = __toESM(require("react"), 1);
|
|
926
1026
|
|
|
927
1027
|
// src/primitives/table.tsx
|
|
928
|
-
var
|
|
929
|
-
var
|
|
930
|
-
var Table =
|
|
931
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1028
|
+
var React14 = __toESM(require("react"), 1);
|
|
1029
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1030
|
+
var Table = React14.forwardRef(
|
|
1031
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
932
1032
|
);
|
|
933
1033
|
Table.displayName = "Table";
|
|
934
|
-
var TableHeader =
|
|
1034
|
+
var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
935
1035
|
TableHeader.displayName = "TableHeader";
|
|
936
|
-
var TableBody =
|
|
1036
|
+
var TableBody = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
937
1037
|
TableBody.displayName = "TableBody";
|
|
938
|
-
var TableFooter =
|
|
1038
|
+
var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
939
1039
|
"tfoot",
|
|
940
1040
|
{
|
|
941
1041
|
ref,
|
|
@@ -944,8 +1044,8 @@ var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
944
1044
|
}
|
|
945
1045
|
));
|
|
946
1046
|
TableFooter.displayName = "TableFooter";
|
|
947
|
-
var TableRow =
|
|
948
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1047
|
+
var TableRow = React14.forwardRef(
|
|
1048
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
949
1049
|
"tr",
|
|
950
1050
|
{
|
|
951
1051
|
ref,
|
|
@@ -958,7 +1058,7 @@ var TableRow = React13.forwardRef(
|
|
|
958
1058
|
)
|
|
959
1059
|
);
|
|
960
1060
|
TableRow.displayName = "TableRow";
|
|
961
|
-
var TableHead =
|
|
1061
|
+
var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
962
1062
|
"th",
|
|
963
1063
|
{
|
|
964
1064
|
ref,
|
|
@@ -970,7 +1070,7 @@ var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
970
1070
|
}
|
|
971
1071
|
));
|
|
972
1072
|
TableHead.displayName = "TableHead";
|
|
973
|
-
var TableCell =
|
|
1073
|
+
var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
974
1074
|
"td",
|
|
975
1075
|
{
|
|
976
1076
|
ref,
|
|
@@ -979,16 +1079,16 @@ var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
979
1079
|
}
|
|
980
1080
|
));
|
|
981
1081
|
TableCell.displayName = "TableCell";
|
|
982
|
-
var TableCaption =
|
|
1082
|
+
var TableCaption = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
983
1083
|
TableCaption.displayName = "TableCaption";
|
|
984
1084
|
|
|
985
1085
|
// src/components/table/Table.tsx
|
|
986
|
-
var
|
|
987
|
-
var Table2 =
|
|
988
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1086
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1087
|
+
var Table2 = React15.forwardRef(
|
|
1088
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Table, { ref, className, ...props })
|
|
989
1089
|
);
|
|
990
1090
|
Table2.displayName = "Table";
|
|
991
|
-
var TableHeader2 =
|
|
1091
|
+
var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
992
1092
|
TableHeader,
|
|
993
1093
|
{
|
|
994
1094
|
ref,
|
|
@@ -997,7 +1097,7 @@ var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
997
1097
|
}
|
|
998
1098
|
));
|
|
999
1099
|
TableHeader2.displayName = "TableHeader";
|
|
1000
|
-
var TableBody2 =
|
|
1100
|
+
var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1001
1101
|
TableBody,
|
|
1002
1102
|
{
|
|
1003
1103
|
ref,
|
|
@@ -1006,7 +1106,7 @@ var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1006
1106
|
}
|
|
1007
1107
|
));
|
|
1008
1108
|
TableBody2.displayName = "TableBody";
|
|
1009
|
-
var TableFooter2 =
|
|
1109
|
+
var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1010
1110
|
TableFooter,
|
|
1011
1111
|
{
|
|
1012
1112
|
ref,
|
|
@@ -1018,8 +1118,8 @@ var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1018
1118
|
}
|
|
1019
1119
|
));
|
|
1020
1120
|
TableFooter2.displayName = "TableFooter";
|
|
1021
|
-
var TableRow2 =
|
|
1022
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1121
|
+
var TableRow2 = React15.forwardRef(
|
|
1122
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1023
1123
|
TableRow,
|
|
1024
1124
|
{
|
|
1025
1125
|
ref,
|
|
@@ -1032,7 +1132,7 @@ var TableRow2 = React14.forwardRef(
|
|
|
1032
1132
|
)
|
|
1033
1133
|
);
|
|
1034
1134
|
TableRow2.displayName = "TableRow";
|
|
1035
|
-
var TableHead2 =
|
|
1135
|
+
var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1036
1136
|
TableHead,
|
|
1037
1137
|
{
|
|
1038
1138
|
ref,
|
|
@@ -1044,7 +1144,7 @@ var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1044
1144
|
}
|
|
1045
1145
|
));
|
|
1046
1146
|
TableHead2.displayName = "TableHead";
|
|
1047
|
-
var TableCell2 =
|
|
1147
|
+
var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1048
1148
|
TableCell,
|
|
1049
1149
|
{
|
|
1050
1150
|
ref,
|
|
@@ -1053,7 +1153,7 @@ var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1053
1153
|
}
|
|
1054
1154
|
));
|
|
1055
1155
|
TableCell2.displayName = "TableCell";
|
|
1056
|
-
var TableCaption2 =
|
|
1156
|
+
var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1057
1157
|
TableCaption,
|
|
1058
1158
|
{
|
|
1059
1159
|
ref,
|
|
@@ -1064,17 +1164,17 @@ var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1064
1164
|
TableCaption2.displayName = "TableCaption";
|
|
1065
1165
|
|
|
1066
1166
|
// src/components/item/Item.tsx
|
|
1067
|
-
var
|
|
1167
|
+
var React17 = __toESM(require("react"), 1);
|
|
1068
1168
|
|
|
1069
1169
|
// src/primitives/item.tsx
|
|
1070
1170
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1071
|
-
var
|
|
1171
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1072
1172
|
|
|
1073
1173
|
// src/primitives/separator.tsx
|
|
1074
|
-
var
|
|
1174
|
+
var React16 = __toESM(require("react"), 1);
|
|
1075
1175
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
1076
|
-
var
|
|
1077
|
-
var Separator2 =
|
|
1176
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1177
|
+
var Separator2 = React16.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1078
1178
|
SeparatorPrimitive.Root,
|
|
1079
1179
|
{
|
|
1080
1180
|
ref,
|
|
@@ -1091,9 +1191,9 @@ var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", de
|
|
|
1091
1191
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1092
1192
|
|
|
1093
1193
|
// src/primitives/item.tsx
|
|
1094
|
-
var
|
|
1194
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1095
1195
|
function ItemGroup({ className, ...props }) {
|
|
1096
|
-
return /* @__PURE__ */ (0,
|
|
1196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1097
1197
|
"div",
|
|
1098
1198
|
{
|
|
1099
1199
|
role: "list",
|
|
@@ -1104,7 +1204,7 @@ function ItemGroup({ className, ...props }) {
|
|
|
1104
1204
|
);
|
|
1105
1205
|
}
|
|
1106
1206
|
function ItemSeparator({ className, ...props }) {
|
|
1107
|
-
return /* @__PURE__ */ (0,
|
|
1207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1108
1208
|
Separator2,
|
|
1109
1209
|
{
|
|
1110
1210
|
"data-slot": "item-separator",
|
|
@@ -1114,7 +1214,7 @@ function ItemSeparator({ className, ...props }) {
|
|
|
1114
1214
|
}
|
|
1115
1215
|
);
|
|
1116
1216
|
}
|
|
1117
|
-
var itemVariants = (0,
|
|
1217
|
+
var itemVariants = (0, import_class_variance_authority8.cva)(
|
|
1118
1218
|
"group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
|
|
1119
1219
|
{
|
|
1120
1220
|
variants: {
|
|
@@ -1134,7 +1234,7 @@ var itemVariants = (0, import_class_variance_authority7.cva)(
|
|
|
1134
1234
|
}
|
|
1135
1235
|
}
|
|
1136
1236
|
);
|
|
1137
|
-
function
|
|
1237
|
+
function Item3({
|
|
1138
1238
|
className,
|
|
1139
1239
|
variant = "default",
|
|
1140
1240
|
size = "default",
|
|
@@ -1142,7 +1242,7 @@ function Item2({
|
|
|
1142
1242
|
...props
|
|
1143
1243
|
}) {
|
|
1144
1244
|
const Comp = asChild ? import_react_slot2.Slot : "div";
|
|
1145
|
-
return /* @__PURE__ */ (0,
|
|
1245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1146
1246
|
Comp,
|
|
1147
1247
|
{
|
|
1148
1248
|
"data-slot": "item",
|
|
@@ -1153,7 +1253,7 @@ function Item2({
|
|
|
1153
1253
|
}
|
|
1154
1254
|
);
|
|
1155
1255
|
}
|
|
1156
|
-
var itemMediaVariants = (0,
|
|
1256
|
+
var itemMediaVariants = (0, import_class_variance_authority8.cva)(
|
|
1157
1257
|
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
1158
1258
|
{
|
|
1159
1259
|
variants: {
|
|
@@ -1173,7 +1273,7 @@ function ItemMedia({
|
|
|
1173
1273
|
variant = "default",
|
|
1174
1274
|
...props
|
|
1175
1275
|
}) {
|
|
1176
|
-
return /* @__PURE__ */ (0,
|
|
1276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1177
1277
|
"div",
|
|
1178
1278
|
{
|
|
1179
1279
|
"data-slot": "item-media",
|
|
@@ -1184,7 +1284,7 @@ function ItemMedia({
|
|
|
1184
1284
|
);
|
|
1185
1285
|
}
|
|
1186
1286
|
function ItemContent({ className, ...props }) {
|
|
1187
|
-
return /* @__PURE__ */ (0,
|
|
1287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1188
1288
|
"div",
|
|
1189
1289
|
{
|
|
1190
1290
|
"data-slot": "item-content",
|
|
@@ -1194,7 +1294,7 @@ function ItemContent({ className, ...props }) {
|
|
|
1194
1294
|
);
|
|
1195
1295
|
}
|
|
1196
1296
|
function ItemTitle({ className, ...props }) {
|
|
1197
|
-
return /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1198
1298
|
"div",
|
|
1199
1299
|
{
|
|
1200
1300
|
"data-slot": "item-title",
|
|
@@ -1204,7 +1304,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
1204
1304
|
);
|
|
1205
1305
|
}
|
|
1206
1306
|
function ItemDescription({ className, ...props }) {
|
|
1207
|
-
return /* @__PURE__ */ (0,
|
|
1307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1208
1308
|
"p",
|
|
1209
1309
|
{
|
|
1210
1310
|
"data-slot": "item-description",
|
|
@@ -1218,10 +1318,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
1218
1318
|
);
|
|
1219
1319
|
}
|
|
1220
1320
|
function ItemActions({ className, ...props }) {
|
|
1221
|
-
return /* @__PURE__ */ (0,
|
|
1321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
1222
1322
|
}
|
|
1223
1323
|
function ItemHeader({ className, ...props }) {
|
|
1224
|
-
return /* @__PURE__ */ (0,
|
|
1324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1225
1325
|
"div",
|
|
1226
1326
|
{
|
|
1227
1327
|
"data-slot": "item-header",
|
|
@@ -1231,7 +1331,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
1231
1331
|
);
|
|
1232
1332
|
}
|
|
1233
1333
|
function ItemFooter({ className, ...props }) {
|
|
1234
|
-
return /* @__PURE__ */ (0,
|
|
1334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1235
1335
|
"div",
|
|
1236
1336
|
{
|
|
1237
1337
|
"data-slot": "item-footer",
|
|
@@ -1242,10 +1342,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
1242
1342
|
}
|
|
1243
1343
|
|
|
1244
1344
|
// src/components/item/Item.tsx
|
|
1245
|
-
var
|
|
1246
|
-
function
|
|
1247
|
-
return /* @__PURE__ */ (0,
|
|
1248
|
-
|
|
1345
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1346
|
+
function Item4({ className, asChild, ...props }) {
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1348
|
+
Item3,
|
|
1249
1349
|
{
|
|
1250
1350
|
asChild,
|
|
1251
1351
|
className: cn(
|
|
@@ -1262,8 +1362,8 @@ function Item3({ className, asChild, ...props }) {
|
|
|
1262
1362
|
}
|
|
1263
1363
|
);
|
|
1264
1364
|
}
|
|
1265
|
-
var ItemMedia2 =
|
|
1266
|
-
return /* @__PURE__ */ (0,
|
|
1365
|
+
var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1267
1367
|
ItemMedia,
|
|
1268
1368
|
{
|
|
1269
1369
|
ref,
|
|
@@ -1273,8 +1373,8 @@ var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1273
1373
|
);
|
|
1274
1374
|
});
|
|
1275
1375
|
ItemMedia2.displayName = "ItemMedia";
|
|
1276
|
-
var ItemTitle2 =
|
|
1277
|
-
return /* @__PURE__ */ (0,
|
|
1376
|
+
var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1278
1378
|
ItemTitle,
|
|
1279
1379
|
{
|
|
1280
1380
|
ref,
|
|
@@ -1284,8 +1384,8 @@ var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1284
1384
|
);
|
|
1285
1385
|
});
|
|
1286
1386
|
ItemTitle2.displayName = "ItemTitle";
|
|
1287
|
-
var ItemDescription2 =
|
|
1288
|
-
return /* @__PURE__ */ (0,
|
|
1387
|
+
var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1289
1389
|
ItemDescription,
|
|
1290
1390
|
{
|
|
1291
1391
|
ref,
|
|
@@ -1295,8 +1395,8 @@ var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1295
1395
|
);
|
|
1296
1396
|
});
|
|
1297
1397
|
ItemDescription2.displayName = "ItemDescription";
|
|
1298
|
-
var ItemSeparator2 =
|
|
1299
|
-
return /* @__PURE__ */ (0,
|
|
1398
|
+
var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1300
1400
|
ItemSeparator,
|
|
1301
1401
|
{
|
|
1302
1402
|
ref,
|
|
@@ -1308,14 +1408,14 @@ var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1308
1408
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
1309
1409
|
|
|
1310
1410
|
// src/components/input/Input.tsx
|
|
1311
|
-
var
|
|
1411
|
+
var React19 = __toESM(require("react"), 1);
|
|
1312
1412
|
|
|
1313
1413
|
// src/primitives/input.tsx
|
|
1314
|
-
var
|
|
1315
|
-
var
|
|
1316
|
-
var Input =
|
|
1414
|
+
var React18 = __toESM(require("react"), 1);
|
|
1415
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1416
|
+
var Input = React18.forwardRef(
|
|
1317
1417
|
({ className, type, ...props }, ref) => {
|
|
1318
|
-
return /* @__PURE__ */ (0,
|
|
1418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1319
1419
|
"input",
|
|
1320
1420
|
{
|
|
1321
1421
|
type,
|
|
@@ -1332,14 +1432,14 @@ var Input = React17.forwardRef(
|
|
|
1332
1432
|
Input.displayName = "Input";
|
|
1333
1433
|
|
|
1334
1434
|
// src/components/input/Input.tsx
|
|
1335
|
-
var
|
|
1336
|
-
var Input2 =
|
|
1435
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1436
|
+
var Input2 = React19.forwardRef(
|
|
1337
1437
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1338
|
-
const generatedId =
|
|
1438
|
+
const generatedId = React19.useId();
|
|
1339
1439
|
const inputId = id || generatedId;
|
|
1340
1440
|
const errorId = `${inputId}-error`;
|
|
1341
1441
|
const descriptionId = `${inputId}-description`;
|
|
1342
|
-
const inputElement = /* @__PURE__ */ (0,
|
|
1442
|
+
const inputElement = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1343
1443
|
Input,
|
|
1344
1444
|
{
|
|
1345
1445
|
ref,
|
|
@@ -1359,8 +1459,8 @@ var Input2 = React18.forwardRef(
|
|
|
1359
1459
|
}
|
|
1360
1460
|
);
|
|
1361
1461
|
if (!icon && !actionButton) {
|
|
1362
|
-
return /* @__PURE__ */ (0,
|
|
1363
|
-
label && /* @__PURE__ */ (0,
|
|
1462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1463
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1364
1464
|
"label",
|
|
1365
1465
|
{
|
|
1366
1466
|
htmlFor: inputId,
|
|
@@ -1373,9 +1473,9 @@ var Input2 = React18.forwardRef(
|
|
|
1373
1473
|
}
|
|
1374
1474
|
),
|
|
1375
1475
|
inputElement,
|
|
1376
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1377
|
-
description && /* @__PURE__ */ (0,
|
|
1378
|
-
error && /* @__PURE__ */ (0,
|
|
1476
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1477
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1478
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1379
1479
|
Typography,
|
|
1380
1480
|
{
|
|
1381
1481
|
variant: "xs",
|
|
@@ -1387,8 +1487,8 @@ var Input2 = React18.forwardRef(
|
|
|
1387
1487
|
] })
|
|
1388
1488
|
] });
|
|
1389
1489
|
}
|
|
1390
|
-
return /* @__PURE__ */ (0,
|
|
1391
|
-
label && /* @__PURE__ */ (0,
|
|
1490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1491
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1392
1492
|
"label",
|
|
1393
1493
|
{
|
|
1394
1494
|
htmlFor: inputId,
|
|
@@ -1400,14 +1500,14 @@ var Input2 = React18.forwardRef(
|
|
|
1400
1500
|
children: label
|
|
1401
1501
|
}
|
|
1402
1502
|
),
|
|
1403
|
-
/* @__PURE__ */ (0,
|
|
1404
|
-
icon && /* @__PURE__ */ (0,
|
|
1503
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative w-full", children: [
|
|
1504
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1405
1505
|
inputElement,
|
|
1406
|
-
actionButton && /* @__PURE__ */ (0,
|
|
1506
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1407
1507
|
] }),
|
|
1408
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
1409
|
-
description && /* @__PURE__ */ (0,
|
|
1410
|
-
error && /* @__PURE__ */ (0,
|
|
1508
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1509
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1510
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1411
1511
|
] })
|
|
1412
1512
|
] });
|
|
1413
1513
|
}
|
|
@@ -1415,17 +1515,17 @@ var Input2 = React18.forwardRef(
|
|
|
1415
1515
|
Input2.displayName = "Input";
|
|
1416
1516
|
|
|
1417
1517
|
// src/components/checkbox/Checkbox.tsx
|
|
1418
|
-
var
|
|
1518
|
+
var React21 = __toESM(require("react"), 1);
|
|
1419
1519
|
var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1420
|
-
var
|
|
1421
|
-
var
|
|
1520
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1521
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1422
1522
|
|
|
1423
1523
|
// src/primitives/checkbox.tsx
|
|
1424
|
-
var
|
|
1524
|
+
var React20 = __toESM(require("react"), 1);
|
|
1425
1525
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1426
|
-
var
|
|
1427
|
-
var
|
|
1428
|
-
var Checkbox =
|
|
1526
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1527
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1528
|
+
var Checkbox = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1429
1529
|
CheckboxPrimitive.Root,
|
|
1430
1530
|
{
|
|
1431
1531
|
ref,
|
|
@@ -1434,24 +1534,24 @@ var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1434
1534
|
className
|
|
1435
1535
|
),
|
|
1436
1536
|
...props,
|
|
1437
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1537
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" }) })
|
|
1438
1538
|
}
|
|
1439
1539
|
));
|
|
1440
1540
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1441
|
-
var CheckboxIndicator =
|
|
1541
|
+
var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1442
1542
|
CheckboxPrimitive.Indicator,
|
|
1443
1543
|
{
|
|
1444
1544
|
ref,
|
|
1445
1545
|
className: cn("grid place-content-center", className),
|
|
1446
1546
|
...props,
|
|
1447
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1547
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" })
|
|
1448
1548
|
}
|
|
1449
1549
|
));
|
|
1450
1550
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1451
1551
|
|
|
1452
1552
|
// src/components/checkbox/Checkbox.tsx
|
|
1453
|
-
var
|
|
1454
|
-
var checkboxVariants = (0,
|
|
1553
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1554
|
+
var checkboxVariants = (0, import_class_variance_authority9.cva)(
|
|
1455
1555
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1456
1556
|
{
|
|
1457
1557
|
variants: {
|
|
@@ -1472,7 +1572,7 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
|
1472
1572
|
}
|
|
1473
1573
|
}
|
|
1474
1574
|
);
|
|
1475
|
-
var Checkbox2 =
|
|
1575
|
+
var Checkbox2 = React21.forwardRef(
|
|
1476
1576
|
({
|
|
1477
1577
|
"aria-label": ariaLabel,
|
|
1478
1578
|
className,
|
|
@@ -1485,11 +1585,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1485
1585
|
disabled,
|
|
1486
1586
|
...props
|
|
1487
1587
|
}, ref) => {
|
|
1488
|
-
const generatedId =
|
|
1588
|
+
const generatedId = React21.useId();
|
|
1489
1589
|
const checkboxId = id || generatedId;
|
|
1490
1590
|
const errorId = `${checkboxId}-error`;
|
|
1491
|
-
return /* @__PURE__ */ (0,
|
|
1492
|
-
/* @__PURE__ */ (0,
|
|
1591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1493
1593
|
Checkbox,
|
|
1494
1594
|
{
|
|
1495
1595
|
ref,
|
|
@@ -1505,8 +1605,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1505
1605
|
className
|
|
1506
1606
|
),
|
|
1507
1607
|
...props,
|
|
1508
|
-
children: /* @__PURE__ */ (0,
|
|
1509
|
-
|
|
1608
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1609
|
+
import_lucide_react5.Check,
|
|
1510
1610
|
{
|
|
1511
1611
|
className: "h-4 w-4 text-current stroke-current",
|
|
1512
1612
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1514,8 +1614,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1514
1614
|
) })
|
|
1515
1615
|
}
|
|
1516
1616
|
) }),
|
|
1517
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1518
|
-
label && /* @__PURE__ */ (0,
|
|
1617
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1618
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1519
1619
|
"label",
|
|
1520
1620
|
{
|
|
1521
1621
|
htmlFor: checkboxId,
|
|
@@ -1527,8 +1627,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1527
1627
|
children: label
|
|
1528
1628
|
}
|
|
1529
1629
|
),
|
|
1530
|
-
description && /* @__PURE__ */ (0,
|
|
1531
|
-
error && /* @__PURE__ */ (0,
|
|
1630
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1631
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1532
1632
|
] })
|
|
1533
1633
|
] });
|
|
1534
1634
|
}
|
|
@@ -1536,11 +1636,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
1536
1636
|
Checkbox2.displayName = "Checkbox";
|
|
1537
1637
|
|
|
1538
1638
|
// src/components/switch/Switch.tsx
|
|
1539
|
-
var
|
|
1639
|
+
var React22 = __toESM(require("react"), 1);
|
|
1540
1640
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
1541
|
-
var
|
|
1542
|
-
var
|
|
1543
|
-
var switchRootVariants = (0,
|
|
1641
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
1642
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1643
|
+
var switchRootVariants = (0, import_class_variance_authority10.cva)(
|
|
1544
1644
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-berget-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
1545
1645
|
{
|
|
1546
1646
|
variants: {
|
|
@@ -1561,7 +1661,7 @@ var switchRootVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1561
1661
|
}
|
|
1562
1662
|
}
|
|
1563
1663
|
);
|
|
1564
|
-
var switchThumbVariants = (0,
|
|
1664
|
+
var switchThumbVariants = (0, import_class_variance_authority10.cva)(
|
|
1565
1665
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
1566
1666
|
{
|
|
1567
1667
|
variants: {
|
|
@@ -1576,7 +1676,7 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1576
1676
|
}
|
|
1577
1677
|
}
|
|
1578
1678
|
);
|
|
1579
|
-
var Switch =
|
|
1679
|
+
var Switch = React22.forwardRef(
|
|
1580
1680
|
({
|
|
1581
1681
|
"aria-label": ariaLabel,
|
|
1582
1682
|
className,
|
|
@@ -1589,11 +1689,11 @@ var Switch = React21.forwardRef(
|
|
|
1589
1689
|
disabled,
|
|
1590
1690
|
...props
|
|
1591
1691
|
}, ref) => {
|
|
1592
|
-
const generatedId =
|
|
1692
|
+
const generatedId = React22.useId();
|
|
1593
1693
|
const switchId = id || generatedId;
|
|
1594
1694
|
const errorId = `${switchId}-error`;
|
|
1595
|
-
return /* @__PURE__ */ (0,
|
|
1596
|
-
/* @__PURE__ */ (0,
|
|
1695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1597
1697
|
SwitchPrimitives.Root,
|
|
1598
1698
|
{
|
|
1599
1699
|
ref,
|
|
@@ -1608,11 +1708,11 @@ var Switch = React21.forwardRef(
|
|
|
1608
1708
|
className
|
|
1609
1709
|
),
|
|
1610
1710
|
...props,
|
|
1611
|
-
children: /* @__PURE__ */ (0,
|
|
1711
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1612
1712
|
}
|
|
1613
1713
|
),
|
|
1614
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
1615
|
-
label && /* @__PURE__ */ (0,
|
|
1714
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1715
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1616
1716
|
"label",
|
|
1617
1717
|
{
|
|
1618
1718
|
htmlFor: switchId,
|
|
@@ -1623,8 +1723,8 @@ var Switch = React21.forwardRef(
|
|
|
1623
1723
|
children: label
|
|
1624
1724
|
}
|
|
1625
1725
|
),
|
|
1626
|
-
description && /* @__PURE__ */ (0,
|
|
1627
|
-
error && /* @__PURE__ */ (0,
|
|
1726
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1727
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1628
1728
|
] })
|
|
1629
1729
|
] });
|
|
1630
1730
|
}
|
|
@@ -1632,17 +1732,17 @@ var Switch = React21.forwardRef(
|
|
|
1632
1732
|
Switch.displayName = "Switch";
|
|
1633
1733
|
|
|
1634
1734
|
// src/components/select/Select.tsx
|
|
1635
|
-
var
|
|
1636
|
-
var
|
|
1735
|
+
var React24 = __toESM(require("react"), 1);
|
|
1736
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
1637
1737
|
|
|
1638
1738
|
// src/primitives/select.tsx
|
|
1639
|
-
var
|
|
1739
|
+
var React23 = __toESM(require("react"), 1);
|
|
1640
1740
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
1641
|
-
var
|
|
1642
|
-
var
|
|
1741
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1742
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1643
1743
|
var Select = SelectPrimitive.Root;
|
|
1644
1744
|
var SelectValue = SelectPrimitive.Value;
|
|
1645
|
-
var SelectTrigger =
|
|
1745
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1646
1746
|
SelectPrimitive.Trigger,
|
|
1647
1747
|
{
|
|
1648
1748
|
ref,
|
|
@@ -1653,32 +1753,32 @@ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref)
|
|
|
1653
1753
|
...props,
|
|
1654
1754
|
children: [
|
|
1655
1755
|
children,
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
1657
1757
|
]
|
|
1658
1758
|
}
|
|
1659
1759
|
));
|
|
1660
1760
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1661
|
-
var SelectScrollUpButton =
|
|
1761
|
+
var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1662
1762
|
SelectPrimitive.ScrollUpButton,
|
|
1663
1763
|
{
|
|
1664
1764
|
ref,
|
|
1665
1765
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1666
1766
|
...props,
|
|
1667
|
-
children: /* @__PURE__ */ (0,
|
|
1767
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronUp, { className: "h-4 w-4" })
|
|
1668
1768
|
}
|
|
1669
1769
|
));
|
|
1670
1770
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1671
|
-
var SelectScrollDownButton =
|
|
1771
|
+
var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1672
1772
|
SelectPrimitive.ScrollDownButton,
|
|
1673
1773
|
{
|
|
1674
1774
|
ref,
|
|
1675
1775
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1676
1776
|
...props,
|
|
1677
|
-
children: /* @__PURE__ */ (0,
|
|
1777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4" })
|
|
1678
1778
|
}
|
|
1679
1779
|
));
|
|
1680
1780
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1681
|
-
var SelectContent =
|
|
1781
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1682
1782
|
SelectPrimitive.Content,
|
|
1683
1783
|
{
|
|
1684
1784
|
ref,
|
|
@@ -1690,8 +1790,8 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
1690
1790
|
position,
|
|
1691
1791
|
...props,
|
|
1692
1792
|
children: [
|
|
1693
|
-
/* @__PURE__ */ (0,
|
|
1694
|
-
/* @__PURE__ */ (0,
|
|
1793
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1695
1795
|
SelectPrimitive.Viewport,
|
|
1696
1796
|
{
|
|
1697
1797
|
className: cn(
|
|
@@ -1701,12 +1801,12 @@ var SelectContent = React22.forwardRef(({ className, children, position = "poppe
|
|
|
1701
1801
|
children
|
|
1702
1802
|
}
|
|
1703
1803
|
),
|
|
1704
|
-
/* @__PURE__ */ (0,
|
|
1804
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
|
|
1705
1805
|
]
|
|
1706
1806
|
}
|
|
1707
1807
|
) }));
|
|
1708
1808
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1709
|
-
var SelectLabel =
|
|
1809
|
+
var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1710
1810
|
SelectPrimitive.Label,
|
|
1711
1811
|
{
|
|
1712
1812
|
ref,
|
|
@@ -1715,7 +1815,7 @@ var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1715
1815
|
}
|
|
1716
1816
|
));
|
|
1717
1817
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1718
|
-
var SelectItem =
|
|
1818
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1719
1819
|
SelectPrimitive.Item,
|
|
1720
1820
|
{
|
|
1721
1821
|
ref,
|
|
@@ -1725,13 +1825,13 @@ var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1725
1825
|
),
|
|
1726
1826
|
...props,
|
|
1727
1827
|
children: [
|
|
1728
|
-
/* @__PURE__ */ (0,
|
|
1729
|
-
/* @__PURE__ */ (0,
|
|
1828
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" }) }) }),
|
|
1829
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectPrimitive.ItemText, { children })
|
|
1730
1830
|
]
|
|
1731
1831
|
}
|
|
1732
1832
|
));
|
|
1733
1833
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1734
|
-
var SelectSeparator =
|
|
1834
|
+
var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1735
1835
|
SelectPrimitive.Separator,
|
|
1736
1836
|
{
|
|
1737
1837
|
ref,
|
|
@@ -1742,8 +1842,8 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1742
1842
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1743
1843
|
|
|
1744
1844
|
// src/components/select/Select.tsx
|
|
1745
|
-
var
|
|
1746
|
-
var selectVariants = (0,
|
|
1845
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1846
|
+
var selectVariants = (0, import_class_variance_authority11.cva)(
|
|
1747
1847
|
"flex w-full items-center justify-between rounded-berget-xs border bg-card px-4 py-3 text-sm transition-colors duration-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border disabled:cursor-not-allowed disabled:opacity-50",
|
|
1748
1848
|
{
|
|
1749
1849
|
variants: {
|
|
@@ -1765,7 +1865,7 @@ var selectVariants = (0, import_class_variance_authority10.cva)(
|
|
|
1765
1865
|
}
|
|
1766
1866
|
}
|
|
1767
1867
|
);
|
|
1768
|
-
var Select2 =
|
|
1868
|
+
var Select2 = React24.forwardRef(
|
|
1769
1869
|
({
|
|
1770
1870
|
className,
|
|
1771
1871
|
variant,
|
|
@@ -1783,12 +1883,12 @@ var Select2 = React23.forwardRef(
|
|
|
1783
1883
|
name,
|
|
1784
1884
|
required
|
|
1785
1885
|
}, ref) => {
|
|
1786
|
-
const generatedId =
|
|
1886
|
+
const generatedId = React24.useId();
|
|
1787
1887
|
const selectId = id || generatedId;
|
|
1788
1888
|
const errorId = `${selectId}-error`;
|
|
1789
1889
|
const descriptionId = `${selectId}-description`;
|
|
1790
|
-
return /* @__PURE__ */ (0,
|
|
1791
|
-
label && /* @__PURE__ */ (0,
|
|
1890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1891
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1792
1892
|
"label",
|
|
1793
1893
|
{
|
|
1794
1894
|
htmlFor: selectId,
|
|
@@ -1800,7 +1900,7 @@ var Select2 = React23.forwardRef(
|
|
|
1800
1900
|
children: label
|
|
1801
1901
|
}
|
|
1802
1902
|
),
|
|
1803
|
-
/* @__PURE__ */ (0,
|
|
1903
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1804
1904
|
Select,
|
|
1805
1905
|
{
|
|
1806
1906
|
value,
|
|
@@ -1810,7 +1910,7 @@ var Select2 = React23.forwardRef(
|
|
|
1810
1910
|
name,
|
|
1811
1911
|
required,
|
|
1812
1912
|
children: [
|
|
1813
|
-
/* @__PURE__ */ (0,
|
|
1913
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1814
1914
|
SelectTrigger,
|
|
1815
1915
|
{
|
|
1816
1916
|
ref,
|
|
@@ -1822,33 +1922,33 @@ var Select2 = React23.forwardRef(
|
|
|
1822
1922
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1823
1923
|
className
|
|
1824
1924
|
),
|
|
1825
|
-
children: /* @__PURE__ */ (0,
|
|
1925
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectValue, { placeholder })
|
|
1826
1926
|
}
|
|
1827
1927
|
),
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1829
1929
|
]
|
|
1830
1930
|
}
|
|
1831
1931
|
),
|
|
1832
|
-
description && /* @__PURE__ */ (0,
|
|
1833
|
-
error && /* @__PURE__ */ (0,
|
|
1932
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1933
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1834
1934
|
] });
|
|
1835
1935
|
}
|
|
1836
1936
|
);
|
|
1837
1937
|
Select2.displayName = "Select";
|
|
1838
1938
|
|
|
1839
1939
|
// src/components/country-select/CountrySelect.tsx
|
|
1840
|
-
var
|
|
1841
|
-
var
|
|
1940
|
+
var React29 = __toESM(require("react"), 1);
|
|
1941
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1842
1942
|
|
|
1843
1943
|
// src/components/icon/Icon.tsx
|
|
1844
|
-
var
|
|
1845
|
-
var
|
|
1944
|
+
var React25 = __toESM(require("react"), 1);
|
|
1945
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1846
1946
|
var iconStrokeMap = {
|
|
1847
1947
|
16: 1.4,
|
|
1848
1948
|
24: 1.6,
|
|
1849
1949
|
32: 1.8
|
|
1850
1950
|
};
|
|
1851
|
-
var Icon2 =
|
|
1951
|
+
var Icon2 = React25.forwardRef(
|
|
1852
1952
|
({
|
|
1853
1953
|
icon: IconComponent,
|
|
1854
1954
|
size,
|
|
@@ -1860,7 +1960,7 @@ var Icon2 = React24.forwardRef(
|
|
|
1860
1960
|
const strokeWidth = iconStrokeMap[size];
|
|
1861
1961
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1862
1962
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1863
|
-
return /* @__PURE__ */ (0,
|
|
1963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1864
1964
|
IconComponent,
|
|
1865
1965
|
{
|
|
1866
1966
|
ref,
|
|
@@ -1875,12 +1975,12 @@ var Icon2 = React24.forwardRef(
|
|
|
1875
1975
|
Icon2.displayName = "Icon";
|
|
1876
1976
|
|
|
1877
1977
|
// src/primitives/popover.tsx
|
|
1878
|
-
var
|
|
1978
|
+
var React26 = __toESM(require("react"), 1);
|
|
1879
1979
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1880
|
-
var
|
|
1980
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1881
1981
|
var Popover = PopoverPrimitive.Root;
|
|
1882
1982
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1883
|
-
var PopoverContent =
|
|
1983
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1884
1984
|
PopoverPrimitive.Content,
|
|
1885
1985
|
{
|
|
1886
1986
|
ref,
|
|
@@ -1896,17 +1996,17 @@ var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffs
|
|
|
1896
1996
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1897
1997
|
|
|
1898
1998
|
// src/primitives/command.tsx
|
|
1899
|
-
var
|
|
1999
|
+
var React28 = __toESM(require("react"), 1);
|
|
1900
2000
|
var import_cmdk = require("cmdk");
|
|
1901
|
-
var
|
|
2001
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1902
2002
|
|
|
1903
2003
|
// src/primitives/dialog.tsx
|
|
1904
|
-
var
|
|
2004
|
+
var React27 = __toESM(require("react"), 1);
|
|
1905
2005
|
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1906
|
-
var
|
|
1907
|
-
var
|
|
2006
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2007
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1908
2008
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1909
|
-
var DialogOverlay2 =
|
|
2009
|
+
var DialogOverlay2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1910
2010
|
DialogPrimitive2.Overlay,
|
|
1911
2011
|
{
|
|
1912
2012
|
ref,
|
|
@@ -1918,9 +2018,9 @@ var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1918
2018
|
}
|
|
1919
2019
|
));
|
|
1920
2020
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1921
|
-
var DialogContent2 =
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
1923
|
-
/* @__PURE__ */ (0,
|
|
2021
|
+
var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(DialogPortal2, { children: [
|
|
2022
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogOverlay2, {}),
|
|
2023
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1924
2024
|
DialogPrimitive2.Content,
|
|
1925
2025
|
{
|
|
1926
2026
|
ref,
|
|
@@ -1931,18 +2031,18 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
1931
2031
|
...props,
|
|
1932
2032
|
children: [
|
|
1933
2033
|
children,
|
|
1934
|
-
/* @__PURE__ */ (0,
|
|
1935
|
-
/* @__PURE__ */ (0,
|
|
1936
|
-
/* @__PURE__ */ (0,
|
|
2034
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2035
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.X, { className: "h-4 w-4" }),
|
|
2036
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1937
2037
|
] })
|
|
1938
2038
|
]
|
|
1939
2039
|
}
|
|
1940
2040
|
)
|
|
1941
2041
|
] }));
|
|
1942
2042
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1943
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2043
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1944
2044
|
DialogHeader2.displayName = "DialogHeader";
|
|
1945
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
2045
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1946
2046
|
"div",
|
|
1947
2047
|
{
|
|
1948
2048
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1950,7 +2050,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_
|
|
|
1950
2050
|
}
|
|
1951
2051
|
);
|
|
1952
2052
|
DialogFooter2.displayName = "DialogFooter";
|
|
1953
|
-
var DialogTitle2 =
|
|
2053
|
+
var DialogTitle2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1954
2054
|
DialogPrimitive2.Title,
|
|
1955
2055
|
{
|
|
1956
2056
|
ref,
|
|
@@ -1959,7 +2059,7 @@ var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1959
2059
|
}
|
|
1960
2060
|
));
|
|
1961
2061
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1962
|
-
var DialogDescription2 =
|
|
2062
|
+
var DialogDescription2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1963
2063
|
DialogPrimitive2.Description,
|
|
1964
2064
|
{
|
|
1965
2065
|
ref,
|
|
@@ -1970,8 +2070,8 @@ var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1970
2070
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1971
2071
|
|
|
1972
2072
|
// src/primitives/command.tsx
|
|
1973
|
-
var
|
|
1974
|
-
var Command =
|
|
2073
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2074
|
+
var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1975
2075
|
import_cmdk.Command,
|
|
1976
2076
|
{
|
|
1977
2077
|
ref,
|
|
@@ -1983,9 +2083,9 @@ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1983
2083
|
}
|
|
1984
2084
|
));
|
|
1985
2085
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1986
|
-
var CommandInput =
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
1988
|
-
/* @__PURE__ */ (0,
|
|
2086
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2088
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1989
2089
|
import_cmdk.Command.Input,
|
|
1990
2090
|
{
|
|
1991
2091
|
ref,
|
|
@@ -1998,7 +2098,7 @@ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1998
2098
|
)
|
|
1999
2099
|
] }));
|
|
2000
2100
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
2001
|
-
var CommandList =
|
|
2101
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2002
2102
|
import_cmdk.Command.List,
|
|
2003
2103
|
{
|
|
2004
2104
|
ref,
|
|
@@ -2007,9 +2107,9 @@ var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2007
2107
|
}
|
|
2008
2108
|
));
|
|
2009
2109
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
2010
|
-
var CommandEmpty =
|
|
2110
|
+
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
2011
2111
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
2012
|
-
var CommandGroup =
|
|
2112
|
+
var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2013
2113
|
import_cmdk.Command.Group,
|
|
2014
2114
|
{
|
|
2015
2115
|
ref,
|
|
@@ -2021,7 +2121,7 @@ var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2021
2121
|
}
|
|
2022
2122
|
));
|
|
2023
2123
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
2024
|
-
var CommandSeparator =
|
|
2124
|
+
var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2025
2125
|
import_cmdk.Command.Separator,
|
|
2026
2126
|
{
|
|
2027
2127
|
ref,
|
|
@@ -2030,7 +2130,7 @@ var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2030
2130
|
}
|
|
2031
2131
|
));
|
|
2032
2132
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
2033
|
-
var CommandItem =
|
|
2133
|
+
var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2034
2134
|
import_cmdk.Command.Item,
|
|
2035
2135
|
{
|
|
2036
2136
|
ref,
|
|
@@ -2043,7 +2143,7 @@ var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2043
2143
|
));
|
|
2044
2144
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
2045
2145
|
var CommandShortcut = ({ className, ...props }) => {
|
|
2046
|
-
return /* @__PURE__ */ (0,
|
|
2146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2047
2147
|
"span",
|
|
2048
2148
|
{
|
|
2049
2149
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -2194,8 +2294,8 @@ var isEUCountry = (countryCode) => {
|
|
|
2194
2294
|
};
|
|
2195
2295
|
|
|
2196
2296
|
// src/components/country-select/CountrySelect.tsx
|
|
2197
|
-
var
|
|
2198
|
-
var CountrySelect =
|
|
2297
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2298
|
+
var CountrySelect = React29.forwardRef(
|
|
2199
2299
|
({
|
|
2200
2300
|
value,
|
|
2201
2301
|
onValueChange,
|
|
@@ -2205,10 +2305,10 @@ var CountrySelect = React28.forwardRef(
|
|
|
2205
2305
|
align = "center",
|
|
2206
2306
|
sideOffset = 4
|
|
2207
2307
|
}, ref) => {
|
|
2208
|
-
const [open, setOpen] =
|
|
2209
|
-
const selectedCountry =
|
|
2210
|
-
return /* @__PURE__ */ (0,
|
|
2211
|
-
/* @__PURE__ */ (0,
|
|
2308
|
+
const [open, setOpen] = React29.useState(false);
|
|
2309
|
+
const selectedCountry = React29.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
2311
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2212
2312
|
"button",
|
|
2213
2313
|
{
|
|
2214
2314
|
ref,
|
|
@@ -2229,29 +2329,29 @@ var CountrySelect = React28.forwardRef(
|
|
|
2229
2329
|
className
|
|
2230
2330
|
),
|
|
2231
2331
|
children: [
|
|
2232
|
-
/* @__PURE__ */ (0,
|
|
2233
|
-
/* @__PURE__ */ (0,
|
|
2234
|
-
/* @__PURE__ */ (0,
|
|
2235
|
-
/* @__PURE__ */ (0,
|
|
2332
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2333
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2334
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
2335
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
2236
2336
|
"(",
|
|
2237
2337
|
selectedCountry.code,
|
|
2238
2338
|
")"
|
|
2239
2339
|
] })
|
|
2240
|
-
] }) : /* @__PURE__ */ (0,
|
|
2241
|
-
/* @__PURE__ */ (0,
|
|
2340
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2242
2342
|
Icon2,
|
|
2243
2343
|
{
|
|
2244
|
-
icon:
|
|
2344
|
+
icon: import_lucide_react9.Globe,
|
|
2245
2345
|
size: 16,
|
|
2246
2346
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
2247
2347
|
}
|
|
2248
2348
|
),
|
|
2249
|
-
/* @__PURE__ */ (0,
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
2250
2350
|
] }) }),
|
|
2251
|
-
/* @__PURE__ */ (0,
|
|
2351
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2252
2352
|
Icon2,
|
|
2253
2353
|
{
|
|
2254
|
-
icon:
|
|
2354
|
+
icon: import_lucide_react9.ChevronDown,
|
|
2255
2355
|
size: 16,
|
|
2256
2356
|
className: cn(
|
|
2257
2357
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -2263,17 +2363,17 @@ var CountrySelect = React28.forwardRef(
|
|
|
2263
2363
|
]
|
|
2264
2364
|
}
|
|
2265
2365
|
) }),
|
|
2266
|
-
/* @__PURE__ */ (0,
|
|
2366
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2267
2367
|
PopoverContent,
|
|
2268
2368
|
{
|
|
2269
2369
|
align,
|
|
2270
2370
|
sideOffset,
|
|
2271
2371
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
2272
|
-
children: /* @__PURE__ */ (0,
|
|
2273
|
-
/* @__PURE__ */ (0,
|
|
2274
|
-
/* @__PURE__ */ (0,
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
2276
|
-
/* @__PURE__ */ (0,
|
|
2372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Command, { children: [
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CommandList, { children: [
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2277
2377
|
CommandItem,
|
|
2278
2378
|
{
|
|
2279
2379
|
value: `${country.name} ${country.code}`,
|
|
@@ -2287,12 +2387,12 @@ var CountrySelect = React28.forwardRef(
|
|
|
2287
2387
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
2288
2388
|
),
|
|
2289
2389
|
children: [
|
|
2290
|
-
/* @__PURE__ */ (0,
|
|
2291
|
-
/* @__PURE__ */ (0,
|
|
2292
|
-
/* @__PURE__ */ (0,
|
|
2293
|
-
/* @__PURE__ */ (0,
|
|
2390
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2391
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2392
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
2294
2394
|
] }),
|
|
2295
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
2395
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
2296
2396
|
]
|
|
2297
2397
|
},
|
|
2298
2398
|
country.code
|
|
@@ -2307,15 +2407,15 @@ var CountrySelect = React28.forwardRef(
|
|
|
2307
2407
|
CountrySelect.displayName = "CountrySelect";
|
|
2308
2408
|
|
|
2309
2409
|
// src/components/text-area/TextArea.tsx
|
|
2310
|
-
var
|
|
2311
|
-
var
|
|
2410
|
+
var React31 = __toESM(require("react"), 1);
|
|
2411
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
2312
2412
|
|
|
2313
2413
|
// src/primitives/textarea.tsx
|
|
2314
|
-
var
|
|
2315
|
-
var
|
|
2316
|
-
var Textarea =
|
|
2414
|
+
var React30 = __toESM(require("react"), 1);
|
|
2415
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2416
|
+
var Textarea = React30.forwardRef(
|
|
2317
2417
|
({ className, ...props }, ref) => {
|
|
2318
|
-
return /* @__PURE__ */ (0,
|
|
2418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2319
2419
|
"textarea",
|
|
2320
2420
|
{
|
|
2321
2421
|
className: cn(
|
|
@@ -2331,8 +2431,8 @@ var Textarea = React29.forwardRef(
|
|
|
2331
2431
|
Textarea.displayName = "Textarea";
|
|
2332
2432
|
|
|
2333
2433
|
// src/components/text-area/TextArea.tsx
|
|
2334
|
-
var
|
|
2335
|
-
var textAreaVariants = (0,
|
|
2434
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2435
|
+
var textAreaVariants = (0, import_class_variance_authority12.cva)(
|
|
2336
2436
|
"rounded-berget-xs bg-card px-4 py-3 transition-colors duration-200 focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",
|
|
2337
2437
|
{
|
|
2338
2438
|
variants: {
|
|
@@ -2354,7 +2454,7 @@ var textAreaVariants = (0, import_class_variance_authority11.cva)(
|
|
|
2354
2454
|
}
|
|
2355
2455
|
}
|
|
2356
2456
|
);
|
|
2357
|
-
var TextArea =
|
|
2457
|
+
var TextArea = React31.forwardRef(
|
|
2358
2458
|
({
|
|
2359
2459
|
className,
|
|
2360
2460
|
variant,
|
|
@@ -2374,13 +2474,13 @@ var TextArea = React30.forwardRef(
|
|
|
2374
2474
|
actionButton,
|
|
2375
2475
|
...props
|
|
2376
2476
|
}, ref) => {
|
|
2377
|
-
const generatedId =
|
|
2477
|
+
const generatedId = React31.useId();
|
|
2378
2478
|
const textareaId = id || generatedId;
|
|
2379
2479
|
const errorId = `${textareaId}-error`;
|
|
2380
2480
|
const descriptionId = `${textareaId}-description`;
|
|
2381
2481
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2382
|
-
return /* @__PURE__ */ (0,
|
|
2383
|
-
label && /* @__PURE__ */ (0,
|
|
2482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2483
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2384
2484
|
"label",
|
|
2385
2485
|
{
|
|
2386
2486
|
htmlFor: textareaId,
|
|
@@ -2392,9 +2492,9 @@ var TextArea = React30.forwardRef(
|
|
|
2392
2492
|
children: label
|
|
2393
2493
|
}
|
|
2394
2494
|
),
|
|
2395
|
-
/* @__PURE__ */ (0,
|
|
2396
|
-
icon && /* @__PURE__ */ (0,
|
|
2397
|
-
/* @__PURE__ */ (0,
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
|
|
2496
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2398
2498
|
Textarea,
|
|
2399
2499
|
{
|
|
2400
2500
|
ref,
|
|
@@ -2419,13 +2519,13 @@ var TextArea = React30.forwardRef(
|
|
|
2419
2519
|
...props
|
|
2420
2520
|
}
|
|
2421
2521
|
),
|
|
2422
|
-
secondaryIcon && /* @__PURE__ */ (0,
|
|
2423
|
-
actionButton && /* @__PURE__ */ (0,
|
|
2522
|
+
secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2523
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2424
2524
|
] }),
|
|
2425
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2426
|
-
description && /* @__PURE__ */ (0,
|
|
2427
|
-
(error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
2428
|
-
showCount && maxLength && /* @__PURE__ */ (0,
|
|
2525
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2526
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2527
|
+
(error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2528
|
+
showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2429
2529
|
Typography,
|
|
2430
2530
|
{
|
|
2431
2531
|
variant: "xs",
|
|
@@ -2439,7 +2539,7 @@ var TextArea = React30.forwardRef(
|
|
|
2439
2539
|
]
|
|
2440
2540
|
}
|
|
2441
2541
|
),
|
|
2442
|
-
error && /* @__PURE__ */ (0,
|
|
2542
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2443
2543
|
Typography,
|
|
2444
2544
|
{
|
|
2445
2545
|
variant: "xs",
|
|
@@ -2456,22 +2556,22 @@ var TextArea = React30.forwardRef(
|
|
|
2456
2556
|
TextArea.displayName = "TextArea";
|
|
2457
2557
|
|
|
2458
2558
|
// src/primitives/label.tsx
|
|
2459
|
-
var
|
|
2559
|
+
var React32 = __toESM(require("react"), 1);
|
|
2460
2560
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
2461
|
-
var
|
|
2462
|
-
var
|
|
2463
|
-
var labelVariants = (0,
|
|
2561
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
2562
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2563
|
+
var labelVariants = (0, import_class_variance_authority13.cva)(
|
|
2464
2564
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2465
2565
|
);
|
|
2466
|
-
var Label3 =
|
|
2566
|
+
var Label3 = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2467
2567
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2468
2568
|
|
|
2469
2569
|
// src/primitives/field.tsx
|
|
2470
2570
|
var import_react = require("react");
|
|
2471
|
-
var
|
|
2472
|
-
var
|
|
2571
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
2572
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2473
2573
|
function FieldSet({ className, ...props }) {
|
|
2474
|
-
return /* @__PURE__ */ (0,
|
|
2574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2475
2575
|
"fieldset",
|
|
2476
2576
|
{
|
|
2477
2577
|
"data-slot": "field-set",
|
|
@@ -2489,7 +2589,7 @@ function FieldLegend({
|
|
|
2489
2589
|
variant = "legend",
|
|
2490
2590
|
...props
|
|
2491
2591
|
}) {
|
|
2492
|
-
return /* @__PURE__ */ (0,
|
|
2592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2493
2593
|
"legend",
|
|
2494
2594
|
{
|
|
2495
2595
|
"data-slot": "field-legend",
|
|
@@ -2505,7 +2605,7 @@ function FieldLegend({
|
|
|
2505
2605
|
);
|
|
2506
2606
|
}
|
|
2507
2607
|
function FieldGroup({ className, ...props }) {
|
|
2508
|
-
return /* @__PURE__ */ (0,
|
|
2608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2509
2609
|
"div",
|
|
2510
2610
|
{
|
|
2511
2611
|
"data-slot": "field-group",
|
|
@@ -2517,7 +2617,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
2517
2617
|
}
|
|
2518
2618
|
);
|
|
2519
2619
|
}
|
|
2520
|
-
var fieldVariants = (0,
|
|
2620
|
+
var fieldVariants = (0, import_class_variance_authority14.cva)(
|
|
2521
2621
|
"group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
|
|
2522
2622
|
{
|
|
2523
2623
|
variants: {
|
|
@@ -2545,7 +2645,7 @@ function Field({
|
|
|
2545
2645
|
orientation = "vertical",
|
|
2546
2646
|
...props
|
|
2547
2647
|
}) {
|
|
2548
|
-
return /* @__PURE__ */ (0,
|
|
2648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2549
2649
|
"div",
|
|
2550
2650
|
{
|
|
2551
2651
|
role: "group",
|
|
@@ -2557,7 +2657,7 @@ function Field({
|
|
|
2557
2657
|
);
|
|
2558
2658
|
}
|
|
2559
2659
|
function FieldContent({ className, ...props }) {
|
|
2560
|
-
return /* @__PURE__ */ (0,
|
|
2660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2561
2661
|
"div",
|
|
2562
2662
|
{
|
|
2563
2663
|
"data-slot": "field-content",
|
|
@@ -2567,7 +2667,7 @@ function FieldContent({ className, ...props }) {
|
|
|
2567
2667
|
);
|
|
2568
2668
|
}
|
|
2569
2669
|
function FieldLabel({ className, ...props }) {
|
|
2570
|
-
return /* @__PURE__ */ (0,
|
|
2670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2571
2671
|
Label3,
|
|
2572
2672
|
{
|
|
2573
2673
|
"data-slot": "field-label",
|
|
@@ -2582,7 +2682,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2582
2682
|
);
|
|
2583
2683
|
}
|
|
2584
2684
|
function FieldTitle({ className, ...props }) {
|
|
2585
|
-
return /* @__PURE__ */ (0,
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2586
2686
|
"div",
|
|
2587
2687
|
{
|
|
2588
2688
|
"data-slot": "field-label",
|
|
@@ -2595,7 +2695,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2595
2695
|
);
|
|
2596
2696
|
}
|
|
2597
2697
|
function FieldDescription({ className, ...props }) {
|
|
2598
|
-
return /* @__PURE__ */ (0,
|
|
2698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2599
2699
|
"p",
|
|
2600
2700
|
{
|
|
2601
2701
|
"data-slot": "field-description",
|
|
@@ -2614,7 +2714,7 @@ function FieldSeparator({
|
|
|
2614
2714
|
className,
|
|
2615
2715
|
...props
|
|
2616
2716
|
}) {
|
|
2617
|
-
return /* @__PURE__ */ (0,
|
|
2717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2618
2718
|
"div",
|
|
2619
2719
|
{
|
|
2620
2720
|
"data-slot": "field-separator",
|
|
@@ -2625,8 +2725,8 @@ function FieldSeparator({
|
|
|
2625
2725
|
),
|
|
2626
2726
|
...props,
|
|
2627
2727
|
children: [
|
|
2628
|
-
/* @__PURE__ */ (0,
|
|
2629
|
-
children && /* @__PURE__ */ (0,
|
|
2728
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2729
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2630
2730
|
"span",
|
|
2631
2731
|
{
|
|
2632
2732
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2654,12 +2754,12 @@ function FieldError({
|
|
|
2654
2754
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2655
2755
|
return errors[0].message;
|
|
2656
2756
|
}
|
|
2657
|
-
return /* @__PURE__ */ (0,
|
|
2757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("li", { children: error.message }, index)) });
|
|
2658
2758
|
}, [children, errors]);
|
|
2659
2759
|
if (!content) {
|
|
2660
2760
|
return null;
|
|
2661
2761
|
}
|
|
2662
|
-
return /* @__PURE__ */ (0,
|
|
2762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2663
2763
|
"div",
|
|
2664
2764
|
{
|
|
2665
2765
|
role: "alert",
|
|
@@ -2672,11 +2772,11 @@ function FieldError({
|
|
|
2672
2772
|
}
|
|
2673
2773
|
|
|
2674
2774
|
// src/components/link/Link.tsx
|
|
2675
|
-
var
|
|
2676
|
-
var
|
|
2677
|
-
var
|
|
2678
|
-
var
|
|
2679
|
-
var linkVariants = (0,
|
|
2775
|
+
var React33 = __toESM(require("react"), 1);
|
|
2776
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
2777
|
+
var import_lucide_react10 = require("lucide-react");
|
|
2778
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2779
|
+
var linkVariants = (0, import_class_variance_authority15.cva)(
|
|
2680
2780
|
"inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
2681
2781
|
{
|
|
2682
2782
|
variants: {
|
|
@@ -2700,7 +2800,7 @@ var linkVariants = (0, import_class_variance_authority14.cva)(
|
|
|
2700
2800
|
}
|
|
2701
2801
|
}
|
|
2702
2802
|
);
|
|
2703
|
-
var
|
|
2803
|
+
var Link2 = React33.forwardRef(
|
|
2704
2804
|
({
|
|
2705
2805
|
className,
|
|
2706
2806
|
variant,
|
|
@@ -2713,7 +2813,7 @@ var Link = React32.forwardRef(
|
|
|
2713
2813
|
...props
|
|
2714
2814
|
}, ref) => {
|
|
2715
2815
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2716
|
-
return /* @__PURE__ */ (0,
|
|
2816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2717
2817
|
"a",
|
|
2718
2818
|
{
|
|
2719
2819
|
ref,
|
|
@@ -2729,21 +2829,21 @@ var Link = React32.forwardRef(
|
|
|
2729
2829
|
},
|
|
2730
2830
|
children: [
|
|
2731
2831
|
children,
|
|
2732
|
-
icon && /* @__PURE__ */ (0,
|
|
2733
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
2832
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
2833
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon2, { icon: import_lucide_react10.ExternalLink, size: 16 }) })
|
|
2734
2834
|
]
|
|
2735
2835
|
}
|
|
2736
2836
|
);
|
|
2737
2837
|
}
|
|
2738
2838
|
);
|
|
2739
|
-
|
|
2839
|
+
Link2.displayName = "Link";
|
|
2740
2840
|
|
|
2741
2841
|
// src/components/container/Container.tsx
|
|
2742
|
-
var
|
|
2842
|
+
var React34 = __toESM(require("react"), 1);
|
|
2743
2843
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
2744
|
-
var
|
|
2745
|
-
var
|
|
2746
|
-
var containerVariants = (0,
|
|
2844
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
2845
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2846
|
+
var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-auto", {
|
|
2747
2847
|
variants: {
|
|
2748
2848
|
size: {
|
|
2749
2849
|
sm: "max-w-3xl",
|
|
@@ -2764,10 +2864,10 @@ var containerVariants = (0, import_class_variance_authority15.cva)("w-full mx-au
|
|
|
2764
2864
|
padding: "md"
|
|
2765
2865
|
}
|
|
2766
2866
|
});
|
|
2767
|
-
var Container =
|
|
2867
|
+
var Container = React34.forwardRef(
|
|
2768
2868
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2769
2869
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
2770
|
-
return /* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2771
2871
|
Component,
|
|
2772
2872
|
{
|
|
2773
2873
|
ref,
|
|
@@ -2781,11 +2881,11 @@ var Container = React33.forwardRef(
|
|
|
2781
2881
|
Container.displayName = "Container";
|
|
2782
2882
|
|
|
2783
2883
|
// src/components/grid/Grid.tsx
|
|
2784
|
-
var
|
|
2785
|
-
var
|
|
2884
|
+
var React35 = __toESM(require("react"), 1);
|
|
2885
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2786
2886
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2787
|
-
var
|
|
2788
|
-
var gridVariants = (0,
|
|
2887
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2888
|
+
var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
|
|
2789
2889
|
variants: {
|
|
2790
2890
|
align: {
|
|
2791
2891
|
start: "items-start",
|
|
@@ -2807,10 +2907,10 @@ var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
|
2807
2907
|
justify: "start"
|
|
2808
2908
|
}
|
|
2809
2909
|
});
|
|
2810
|
-
var Grid =
|
|
2910
|
+
var Grid = React35.forwardRef(
|
|
2811
2911
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2812
2912
|
const Component = asChild ? import_react_slot4.Slot : "div";
|
|
2813
|
-
return /* @__PURE__ */ (0,
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2814
2914
|
Component,
|
|
2815
2915
|
{
|
|
2816
2916
|
ref,
|
|
@@ -2832,11 +2932,11 @@ var Grid = React34.forwardRef(
|
|
|
2832
2932
|
Grid.displayName = "Grid";
|
|
2833
2933
|
|
|
2834
2934
|
// src/components/box/Box.tsx
|
|
2835
|
-
var
|
|
2836
|
-
var
|
|
2935
|
+
var React36 = __toESM(require("react"), 1);
|
|
2936
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2837
2937
|
var import_react_slot5 = require("@radix-ui/react-slot");
|
|
2838
|
-
var
|
|
2839
|
-
var boxVariants = (0,
|
|
2938
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2939
|
+
var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
|
|
2840
2940
|
variants: {
|
|
2841
2941
|
direction: {
|
|
2842
2942
|
row: "flex-row",
|
|
@@ -2872,10 +2972,10 @@ var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
|
2872
2972
|
wrap: "nowrap"
|
|
2873
2973
|
}
|
|
2874
2974
|
});
|
|
2875
|
-
var Box =
|
|
2975
|
+
var Box = React36.forwardRef(
|
|
2876
2976
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2877
2977
|
const Component = asChild ? import_react_slot5.Slot : "div";
|
|
2878
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2879
2979
|
Component,
|
|
2880
2980
|
{
|
|
2881
2981
|
ref,
|
|
@@ -2893,16 +2993,16 @@ var Box = React35.forwardRef(
|
|
|
2893
2993
|
Box.displayName = "Box";
|
|
2894
2994
|
|
|
2895
2995
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2896
|
-
var
|
|
2897
|
-
var
|
|
2898
|
-
var BergetLogo =
|
|
2996
|
+
var React37 = __toESM(require("react"), 1);
|
|
2997
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2998
|
+
var BergetLogo = React37.forwardRef(
|
|
2899
2999
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2900
3000
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2901
3001
|
if (variant === "symbol") {
|
|
2902
3002
|
const aspectRatio2 = 463 / 419;
|
|
2903
3003
|
const width2 = size * aspectRatio2;
|
|
2904
3004
|
const height2 = size;
|
|
2905
|
-
return /* @__PURE__ */ (0,
|
|
3005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2906
3006
|
"svg",
|
|
2907
3007
|
{
|
|
2908
3008
|
ref,
|
|
@@ -2915,7 +3015,7 @@ var BergetLogo = React36.forwardRef(
|
|
|
2915
3015
|
"aria-label": "Berget symbol",
|
|
2916
3016
|
className: cn("inline-block", className),
|
|
2917
3017
|
...props,
|
|
2918
|
-
children: /* @__PURE__ */ (0,
|
|
3018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2919
3019
|
"path",
|
|
2920
3020
|
{
|
|
2921
3021
|
d: "M208.739 17L255.261 17L446 403L398 403L313.5 255L261.5 176L233.163 96.1677L237.815 98.6522H226.185L230.837 96.1677L113 331L64.5 403L18 403L208.739 17Z",
|
|
@@ -2928,7 +3028,7 @@ var BergetLogo = React36.forwardRef(
|
|
|
2928
3028
|
const aspectRatio = 793.63 / 204.37;
|
|
2929
3029
|
const width = size * aspectRatio;
|
|
2930
3030
|
const height = size;
|
|
2931
|
-
return /* @__PURE__ */ (0,
|
|
3031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2932
3032
|
"svg",
|
|
2933
3033
|
{
|
|
2934
3034
|
ref,
|
|
@@ -2942,59 +3042,59 @@ var BergetLogo = React36.forwardRef(
|
|
|
2942
3042
|
className: cn("inline-block", className),
|
|
2943
3043
|
...props,
|
|
2944
3044
|
children: [
|
|
2945
|
-
/* @__PURE__ */ (0,
|
|
2946
|
-
/* @__PURE__ */ (0,
|
|
3045
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("g", { style: { fill: fillColor }, children: [
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2947
3047
|
"path",
|
|
2948
3048
|
{
|
|
2949
3049
|
className: "berget-logotype-fill",
|
|
2950
3050
|
d: "M268.78,172.54v-96.04h37.74c10.39,0,18.26,2.33,23.6,7,5.33,4.67,8.01,10.52,8.01,17.56,0,6.13-1.72,11-5.15,14.61-3.43,3.61-7.58,6.06-12.44,7.34,3.81.73,7.22,2.2,10.22,4.39,3.01,2.2,5.36,4.94,7.08,8.23,1.72,3.29,2.58,6.86,2.58,10.7,0,4.94-1.27,9.4-3.79,13.38-2.53,3.98-6.22,7.11-11.08,9.4-4.86,2.29-10.82,3.43-17.87,3.43h-38.89ZM283.93,117.66h20.74c5.81,0,10.24-1.3,13.29-3.91,3.05-2.61,4.58-6.19,4.58-10.77s-1.51-8.05-4.51-10.7c-3-2.65-7.55-3.98-13.65-3.98h-20.45v29.36ZM283.93,160.61h21.74c6.1,0,10.84-1.37,14.22-4.11,3.38-2.75,5.08-6.59,5.08-11.53s-1.76-8.85-5.29-11.73-8.29-4.32-14.3-4.32h-21.45v31.69Z"
|
|
2951
3051
|
}
|
|
2952
3052
|
),
|
|
2953
|
-
/* @__PURE__ */ (0,
|
|
3053
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2954
3054
|
"path",
|
|
2955
3055
|
{
|
|
2956
3056
|
className: "berget-logotype-fill",
|
|
2957
3057
|
d: "M382.45,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81,2.91-1.88,5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM382.45,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2958
3058
|
}
|
|
2959
3059
|
),
|
|
2960
|
-
/* @__PURE__ */ (0,
|
|
3060
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2961
3061
|
"path",
|
|
2962
3062
|
{
|
|
2963
3063
|
className: "berget-logotype-fill",
|
|
2964
3064
|
d: "M425.62,172.54v-68.05h13.59l1.29,12.9c2.47-4.48,5.93-8.03,10.37-10.63,4.43-2.61,9.79-3.91,16.08-3.91v15.23h-4.15c-4.19,0-7.93.67-11.22,1.99-3.29,1.33-5.91,3.57-7.86,6.72-1.96,3.16-2.93,7.53-2.93,13.1v32.65h-15.16Z"
|
|
2965
3065
|
}
|
|
2966
3066
|
),
|
|
2967
|
-
/* @__PURE__ */ (0,
|
|
3067
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2968
3068
|
"path",
|
|
2969
3069
|
{
|
|
2970
3070
|
className: "berget-logotype-fill",
|
|
2971
3071
|
d: "M500.25,151.69c-3.72,0-7.14-.41-10.29-1.24l-6.15,5.76c1.05.64,2.34,1.19,3.86,1.65,1.52.46,3.66.87,6.43,1.23,2.76.37,6.53.73,11.29,1.1,9.43.82,16.25,3,20.44,6.52,4.2,3.52,6.29,8.21,6.29,14.06,0,4.02-1.12,7.84-3.35,11.45-2.24,3.61-5.72,6.54-10.44,8.78s-10.74,3.36-18.09,3.36c-9.91,0-17.94-1.8-24.09-5.42-6.15-3.62-9.22-9.08-9.22-16.4,0-2.84.78-5.65,2.35-8.44,1.57-2.79,4.08-5.42,7.51-7.89-2-.83-3.74-1.72-5.22-2.68-1.48-.96-2.79-1.94-3.94-2.95v-3.29l12.3-12.07c-5.53-4.57-8.29-10.56-8.29-17.97,0-4.48,1.12-8.58,3.36-12.28,2.24-3.7,5.5-6.65,9.79-8.85,4.29-2.2,9.43-3.29,15.44-3.29,4.01,0,7.72.55,11.15,1.64h26.45v9.6l-12.58.69c2.28,3.75,3.43,7.91,3.43,12.49s-1.13,8.69-3.36,12.35c-2.24,3.66-5.48,6.59-9.72,8.78-4.25,2.2-9.37,3.29-15.37,3.29ZM481.24,181.19c0,3.93,1.81,6.88,5.44,8.85,3.62,1.97,8.15,2.95,13.58,2.95s9.48-1.07,12.72-3.22c3.24-2.15,4.86-5,4.86-8.57,0-2.65-1.09-4.92-3.29-6.79-2.19-1.87-6.34-3.04-12.44-3.5-4.57-.27-8.63-.68-12.15-1.23-3.34,1.74-5.63,3.61-6.86,5.63-1.25,2.01-1.86,3.98-1.86,5.9ZM500.25,140.3c4.38,0,7.93-1.12,10.66-3.36,2.71-2.24,4.07-5.42,4.07-9.53s-1.36-7.41-4.07-9.6c-2.72-2.2-6.27-3.29-10.66-3.29s-8.08,1.1-10.79,3.29c-2.71,2.2-4.08,5.4-4.08,9.6s1.36,7.3,4.08,9.53c2.71,2.24,6.31,3.36,10.79,3.36Z"
|
|
2972
3072
|
}
|
|
2973
3073
|
),
|
|
2974
|
-
/* @__PURE__ */ (0,
|
|
3074
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2975
3075
|
"path",
|
|
2976
3076
|
{
|
|
2977
3077
|
className: "berget-logotype-fill",
|
|
2978
3078
|
d: "M574.61,174.19c-6.96,0-13.13-1.49-18.52-4.46-5.39-2.97-9.6-7.11-12.65-12.42-3.05-5.3-4.57-11.48-4.57-18.52s1.5-13.4,4.5-18.79c3-5.4,7.19-9.61,12.58-12.62c5.39-3.02,11.65-4.53,18.81-4.53s13,1.48,18.15,4.46c5.15,2.97,9.16,6.93,12.01,11.87,2.86,4.94,4.29,10.38,4.29,16.33,0,.92-.02,1.9-.07,2.95-.05,1.05-.12,2.22-.22,3.5h-55.19c.48,6.59,2.75,11.59,6.79,15.02,4.05,3.43,8.75,5.14,14.09,5.14,4.29,0,7.89-.93,10.79-2.81s5.08-4.41,6.51-7.61h15.16c-1.91,6.4-5.7,11.75-11.37,16.05-5.68,4.3-12.71,6.45-21.09,6.45ZM574.61,114.78c-5.05,0-9.54,1.44-13.44,4.32-3.91,2.88-6.29,7.2-7.15,12.97h40.04c-.29-5.3-2.24-9.51-5.87-12.62-3.62-3.11-8.15-4.67-13.58-4.67Z"
|
|
2979
3079
|
}
|
|
2980
3080
|
),
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
3081
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2982
3082
|
"path",
|
|
2983
3083
|
{
|
|
2984
3084
|
className: "berget-logotype-fill",
|
|
2985
3085
|
d: "M646.23,172.54c-6.96,0-12.49-1.62-16.59-4.87-4.1-3.25-6.15-9.03-6.15-17.36v-33.61h-12.16v-12.21h12.16l1.86-17.29h13.29v17.29h20.02v12.21h-20.02v33.61c0,3.75.84,6.33,2.51,7.75,1.67,1.42,4.55,2.13,8.65,2.13h8.14v12.35h-11.72Z"
|
|
2986
3086
|
}
|
|
2987
3087
|
),
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2989
3089
|
"path",
|
|
2990
3090
|
{
|
|
2991
3091
|
className: "berget-logotype-fill",
|
|
2992
3092
|
d: "M684.4,172.54l36.89-96.04h16.59l36.6,96.04h-16.01l-8.58-23.46h-40.88l-8.58,23.46h-16.01ZM713.28,137.56h32.31l-16.16-43.77-16.16,43.77Z"
|
|
2993
3093
|
}
|
|
2994
3094
|
),
|
|
2995
|
-
/* @__PURE__ */ (0,
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2996
3096
|
] }),
|
|
2997
|
-
/* @__PURE__ */ (0,
|
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2998
3098
|
"path",
|
|
2999
3099
|
{
|
|
3000
3100
|
style: { fill: fillColor },
|
|
@@ -3009,13 +3109,13 @@ var BergetLogo = React36.forwardRef(
|
|
|
3009
3109
|
BergetLogo.displayName = "BergetLogo";
|
|
3010
3110
|
|
|
3011
3111
|
// src/components/language-select/LanguageSelect.tsx
|
|
3012
|
-
var
|
|
3112
|
+
var React38 = __toESM(require("react"), 1);
|
|
3013
3113
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
3014
|
-
var
|
|
3015
|
-
var
|
|
3016
|
-
var LanguageSelect =
|
|
3017
|
-
return /* @__PURE__ */ (0,
|
|
3018
|
-
/* @__PURE__ */ (0,
|
|
3114
|
+
var import_lucide_react11 = require("lucide-react");
|
|
3115
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3116
|
+
var LanguageSelect = React38.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
3117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3019
3119
|
SelectPrimitive2.Trigger,
|
|
3020
3120
|
{
|
|
3021
3121
|
ref,
|
|
@@ -3038,12 +3138,12 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
3038
3138
|
className
|
|
3039
3139
|
),
|
|
3040
3140
|
children: [
|
|
3041
|
-
/* @__PURE__ */ (0,
|
|
3042
|
-
/* @__PURE__ */ (0,
|
|
3141
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
3142
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2, { icon: import_lucide_react11.Globe, size: 16, "aria-hidden": true })
|
|
3043
3143
|
]
|
|
3044
3144
|
}
|
|
3045
3145
|
),
|
|
3046
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3047
3147
|
SelectPrimitive2.Content,
|
|
3048
3148
|
{
|
|
3049
3149
|
className: cn(
|
|
@@ -3071,7 +3171,7 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
3071
3171
|
"origin-[--radix-select-content-transform-origin]"
|
|
3072
3172
|
),
|
|
3073
3173
|
position: "popper",
|
|
3074
|
-
children: /* @__PURE__ */ (0,
|
|
3174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3075
3175
|
SelectPrimitive2.Item,
|
|
3076
3176
|
{
|
|
3077
3177
|
value: option.value,
|
|
@@ -3088,7 +3188,7 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
3088
3188
|
// Disabled state
|
|
3089
3189
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
3090
3190
|
),
|
|
3091
|
-
children: /* @__PURE__ */ (0,
|
|
3191
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.ItemText, { children: option.label })
|
|
3092
3192
|
},
|
|
3093
3193
|
option.value
|
|
3094
3194
|
)) })
|
|
@@ -3099,13 +3199,13 @@ var LanguageSelect = React37.forwardRef(({ className, options, value, onValueCha
|
|
|
3099
3199
|
LanguageSelect.displayName = "LanguageSelect";
|
|
3100
3200
|
|
|
3101
3201
|
// src/components/list/List.tsx
|
|
3102
|
-
var
|
|
3202
|
+
var React40 = __toESM(require("react"), 1);
|
|
3103
3203
|
|
|
3104
3204
|
// src/components/divider/Divider.tsx
|
|
3105
|
-
var
|
|
3106
|
-
var
|
|
3107
|
-
var
|
|
3108
|
-
var dividerVariants = (0,
|
|
3205
|
+
var React39 = __toESM(require("react"), 1);
|
|
3206
|
+
var import_class_variance_authority19 = require("class-variance-authority");
|
|
3207
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3208
|
+
var dividerVariants = (0, import_class_variance_authority19.cva)("", {
|
|
3109
3209
|
variants: {
|
|
3110
3210
|
variant: {
|
|
3111
3211
|
default: "bg-berget-separator",
|
|
@@ -3125,7 +3225,7 @@ var dividerVariants = (0, import_class_variance_authority18.cva)("", {
|
|
|
3125
3225
|
size: "thin"
|
|
3126
3226
|
}
|
|
3127
3227
|
});
|
|
3128
|
-
var Divider =
|
|
3228
|
+
var Divider = React39.forwardRef(
|
|
3129
3229
|
({
|
|
3130
3230
|
className,
|
|
3131
3231
|
orientation = "horizontal",
|
|
@@ -3136,16 +3236,16 @@ var Divider = React38.forwardRef(
|
|
|
3136
3236
|
...props
|
|
3137
3237
|
}, ref) => {
|
|
3138
3238
|
if (label) {
|
|
3139
|
-
return /* @__PURE__ */ (0,
|
|
3140
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
3239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3240
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3141
3241
|
Separator2,
|
|
3142
3242
|
{
|
|
3143
3243
|
orientation: "horizontal",
|
|
3144
3244
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
3145
3245
|
}
|
|
3146
3246
|
),
|
|
3147
|
-
/* @__PURE__ */ (0,
|
|
3148
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
3247
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3248
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3149
3249
|
Separator2,
|
|
3150
3250
|
{
|
|
3151
3251
|
orientation: "horizontal",
|
|
@@ -3154,7 +3254,7 @@ var Divider = React38.forwardRef(
|
|
|
3154
3254
|
)
|
|
3155
3255
|
] });
|
|
3156
3256
|
}
|
|
3157
|
-
return /* @__PURE__ */ (0,
|
|
3257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3158
3258
|
Separator2,
|
|
3159
3259
|
{
|
|
3160
3260
|
ref,
|
|
@@ -3171,20 +3271,20 @@ var Divider = React38.forwardRef(
|
|
|
3171
3271
|
Divider.displayName = "Divider";
|
|
3172
3272
|
|
|
3173
3273
|
// src/components/list/List.tsx
|
|
3174
|
-
var
|
|
3175
|
-
var
|
|
3176
|
-
var
|
|
3274
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3275
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3276
|
+
var List2 = React40.forwardRef(
|
|
3177
3277
|
({ className, children, ...props }, ref) => {
|
|
3178
|
-
const childrenArray =
|
|
3179
|
-
return /* @__PURE__ */ (0,
|
|
3278
|
+
const childrenArray = React40.Children.toArray(children);
|
|
3279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(React40.Fragment, { children: [
|
|
3180
3280
|
child,
|
|
3181
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
3281
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Divider, { variant: "subtle" })
|
|
3182
3282
|
] }, index)) });
|
|
3183
3283
|
}
|
|
3184
3284
|
);
|
|
3185
|
-
|
|
3186
|
-
var ListItem =
|
|
3187
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3285
|
+
List2.displayName = "List";
|
|
3286
|
+
var ListItem = React40.forwardRef(
|
|
3287
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3188
3288
|
"div",
|
|
3189
3289
|
{
|
|
3190
3290
|
ref,
|
|
@@ -3195,15 +3295,15 @@ var ListItem = React39.forwardRef(
|
|
|
3195
3295
|
),
|
|
3196
3296
|
...props,
|
|
3197
3297
|
children: [
|
|
3198
|
-
icon && /* @__PURE__ */ (0,
|
|
3199
|
-
/* @__PURE__ */ (0,
|
|
3298
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
3200
3300
|
]
|
|
3201
3301
|
}
|
|
3202
3302
|
)
|
|
3203
3303
|
);
|
|
3204
3304
|
ListItem.displayName = "ListItem";
|
|
3205
|
-
var ListHeader =
|
|
3206
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3305
|
+
var ListHeader = React40.forwardRef(
|
|
3306
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3207
3307
|
"div",
|
|
3208
3308
|
{
|
|
3209
3309
|
ref,
|
|
@@ -3214,21 +3314,21 @@ var ListHeader = React39.forwardRef(
|
|
|
3214
3314
|
)
|
|
3215
3315
|
);
|
|
3216
3316
|
ListHeader.displayName = "ListHeader";
|
|
3217
|
-
var FeatureList =
|
|
3317
|
+
var FeatureList = React40.forwardRef(
|
|
3218
3318
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
3219
|
-
return /* @__PURE__ */ (0,
|
|
3220
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
3221
|
-
/* @__PURE__ */ (0,
|
|
3319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
3320
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon2, { icon: import_lucide_react12.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
3222
3322
|
] }, index)) });
|
|
3223
3323
|
}
|
|
3224
3324
|
);
|
|
3225
3325
|
FeatureList.displayName = "FeatureList";
|
|
3226
3326
|
|
|
3227
3327
|
// src/components/hero-block/HeroBlock.tsx
|
|
3228
|
-
var
|
|
3229
|
-
var
|
|
3230
|
-
var
|
|
3231
|
-
var heroBlockVariants = (0,
|
|
3328
|
+
var React41 = __toESM(require("react"), 1);
|
|
3329
|
+
var import_class_variance_authority20 = require("class-variance-authority");
|
|
3330
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3331
|
+
var heroBlockVariants = (0, import_class_variance_authority20.cva)(
|
|
3232
3332
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3233
3333
|
{
|
|
3234
3334
|
variants: {
|
|
@@ -3248,7 +3348,7 @@ var heroBlockVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3248
3348
|
}
|
|
3249
3349
|
}
|
|
3250
3350
|
);
|
|
3251
|
-
var HeroBlock =
|
|
3351
|
+
var HeroBlock = React41.forwardRef(
|
|
3252
3352
|
({
|
|
3253
3353
|
className,
|
|
3254
3354
|
variant,
|
|
@@ -3260,26 +3360,26 @@ var HeroBlock = React40.forwardRef(
|
|
|
3260
3360
|
actions,
|
|
3261
3361
|
...props
|
|
3262
3362
|
}, ref) => {
|
|
3263
|
-
return /* @__PURE__ */ (0,
|
|
3363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3264
3364
|
"div",
|
|
3265
3365
|
{
|
|
3266
3366
|
ref,
|
|
3267
3367
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
3268
3368
|
...props,
|
|
3269
|
-
children: /* @__PURE__ */ (0,
|
|
3270
|
-
tagline && /* @__PURE__ */ (0,
|
|
3369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3370
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3271
3371
|
Badge,
|
|
3272
3372
|
{
|
|
3273
3373
|
variant: "default",
|
|
3274
|
-
icon: TaglineIcon ? /* @__PURE__ */ (0,
|
|
3374
|
+
icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
3275
3375
|
iconGap: 2,
|
|
3276
3376
|
className: "mb-fluid-md",
|
|
3277
3377
|
children: tagline
|
|
3278
3378
|
}
|
|
3279
3379
|
),
|
|
3280
|
-
/* @__PURE__ */ (0,
|
|
3281
|
-
/* @__PURE__ */ (0,
|
|
3282
|
-
actions && /* @__PURE__ */ (0,
|
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3382
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
3283
3383
|
] }) })
|
|
3284
3384
|
}
|
|
3285
3385
|
);
|
|
@@ -3289,7 +3389,7 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
3289
3389
|
|
|
3290
3390
|
// src/components/code-block/CodeBlock.tsx
|
|
3291
3391
|
var import_react2 = require("react");
|
|
3292
|
-
var
|
|
3392
|
+
var import_lucide_react13 = require("lucide-react");
|
|
3293
3393
|
|
|
3294
3394
|
// src/lib/shiki.ts
|
|
3295
3395
|
var import_core2 = require("shiki/core");
|
|
@@ -3330,7 +3430,7 @@ function getHighlighter() {
|
|
|
3330
3430
|
}
|
|
3331
3431
|
|
|
3332
3432
|
// src/components/code-block/CodeBlock.tsx
|
|
3333
|
-
var
|
|
3433
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3334
3434
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
3335
3435
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
3336
3436
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -3346,16 +3446,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3346
3446
|
setCopied(true);
|
|
3347
3447
|
setTimeout(() => setCopied(false), 2e3);
|
|
3348
3448
|
}, [code]);
|
|
3349
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
3449
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3350
3450
|
"button",
|
|
3351
3451
|
{
|
|
3352
3452
|
onClick: handleCopy,
|
|
3353
3453
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
3354
3454
|
"aria-label": "Copy code",
|
|
3355
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
3455
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react13.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react13.Copy, { className: "w-3.5 h-3.5" })
|
|
3356
3456
|
}
|
|
3357
3457
|
);
|
|
3358
|
-
return /* @__PURE__ */ (0,
|
|
3458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3359
3459
|
"div",
|
|
3360
3460
|
{
|
|
3361
3461
|
className: cn(
|
|
@@ -3363,25 +3463,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
3363
3463
|
className
|
|
3364
3464
|
),
|
|
3365
3465
|
children: [
|
|
3366
|
-
title && /* @__PURE__ */ (0,
|
|
3367
|
-
/* @__PURE__ */ (0,
|
|
3368
|
-
html ? /* @__PURE__ */ (0,
|
|
3466
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3468
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3369
3469
|
"div",
|
|
3370
3470
|
{
|
|
3371
3471
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
3372
3472
|
dangerouslySetInnerHTML: { __html: html }
|
|
3373
3473
|
}
|
|
3374
|
-
) : /* @__PURE__ */ (0,
|
|
3474
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("code", { children: code }) })
|
|
3375
3475
|
]
|
|
3376
3476
|
}
|
|
3377
3477
|
);
|
|
3378
3478
|
}
|
|
3379
3479
|
|
|
3380
3480
|
// src/components/window-frame/WindowFrame.tsx
|
|
3381
|
-
var
|
|
3481
|
+
var React42 = __toESM(require("react"), 1);
|
|
3382
3482
|
var import_react3 = require("react");
|
|
3383
|
-
var
|
|
3384
|
-
var WindowFrame =
|
|
3483
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3484
|
+
var WindowFrame = React42.forwardRef(
|
|
3385
3485
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3386
3486
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
3387
3487
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3392,7 +3492,7 @@ var WindowFrame = React41.forwardRef(
|
|
|
3392
3492
|
setInternalActive(id);
|
|
3393
3493
|
}
|
|
3394
3494
|
};
|
|
3395
|
-
return /* @__PURE__ */ (0,
|
|
3495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3396
3496
|
"div",
|
|
3397
3497
|
{
|
|
3398
3498
|
ref,
|
|
@@ -3402,13 +3502,13 @@ var WindowFrame = React41.forwardRef(
|
|
|
3402
3502
|
),
|
|
3403
3503
|
...props,
|
|
3404
3504
|
children: [
|
|
3405
|
-
/* @__PURE__ */ (0,
|
|
3406
|
-
/* @__PURE__ */ (0,
|
|
3407
|
-
/* @__PURE__ */ (0,
|
|
3408
|
-
/* @__PURE__ */ (0,
|
|
3409
|
-
/* @__PURE__ */ (0,
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3509
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3410
3510
|
] }),
|
|
3411
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
3511
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3412
3512
|
"button",
|
|
3413
3513
|
{
|
|
3414
3514
|
type: "button",
|
|
@@ -3420,9 +3520,9 @@ var WindowFrame = React41.forwardRef(
|
|
|
3420
3520
|
children: tab.label
|
|
3421
3521
|
},
|
|
3422
3522
|
tab.id
|
|
3423
|
-
)) }) : /* @__PURE__ */ (0,
|
|
3523
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3424
3524
|
] }),
|
|
3425
|
-
/* @__PURE__ */ (0,
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { children })
|
|
3426
3526
|
]
|
|
3427
3527
|
}
|
|
3428
3528
|
);
|
|
@@ -3517,6 +3617,14 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3517
3617
|
List,
|
|
3518
3618
|
ListHeader,
|
|
3519
3619
|
ListItem,
|
|
3620
|
+
NavigationMenu,
|
|
3621
|
+
NavigationMenuContent,
|
|
3622
|
+
NavigationMenuIndicator,
|
|
3623
|
+
NavigationMenuItem,
|
|
3624
|
+
NavigationMenuLink,
|
|
3625
|
+
NavigationMenuList,
|
|
3626
|
+
NavigationMenuTrigger,
|
|
3627
|
+
NavigationMenuViewport,
|
|
3520
3628
|
Select,
|
|
3521
3629
|
Switch,
|
|
3522
3630
|
Table,
|
|
@@ -3544,6 +3652,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3544
3652
|
gridVariants,
|
|
3545
3653
|
isEUCountry,
|
|
3546
3654
|
linkVariants,
|
|
3655
|
+
navigationMenuTriggerStyle,
|
|
3547
3656
|
selectVariants,
|
|
3548
3657
|
switchRootVariants,
|
|
3549
3658
|
switchThumbVariants,
|