@bergetai/ui 0.2.7 → 0.3.2

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 CHANGED
@@ -98,9 +98,9 @@ __export(index_exports, {
98
98
  FieldTitle: () => FieldTitle,
99
99
  Grid: () => Grid,
100
100
  HeroBlock: () => HeroBlock,
101
- Icon: () => Icon2,
101
+ Icon: () => Icon,
102
102
  Input: () => Input2,
103
- Item: () => Item4,
103
+ Item: () => Item2,
104
104
  ItemActions: () => ItemActions,
105
105
  ItemContent: () => ItemContent,
106
106
  ItemDescription: () => ItemDescription2,
@@ -110,10 +110,10 @@ __export(index_exports, {
110
110
  ItemMedia: () => ItemMedia2,
111
111
  ItemSeparator: () => ItemSeparator2,
112
112
  ItemTitle: () => ItemTitle2,
113
- Label: () => Label3,
113
+ Label: () => Label,
114
114
  LanguageSelect: () => LanguageSelect,
115
- Link: () => Link2,
116
- List: () => List2,
115
+ Link: () => Link,
116
+ List: () => List,
117
117
  ListHeader: () => ListHeader,
118
118
  ListItem: () => ListItem,
119
119
  NavigationMenu: () => NavigationMenu,
@@ -244,9 +244,10 @@ function useTheme() {
244
244
  }
245
245
 
246
246
  // src/components/theme-provider/ThemeToggle.tsx
247
- var React2 = __toESM(require("react"), 1);
247
+ var React3 = __toESM(require("react"), 1);
248
248
 
249
249
  // src/lib/utils.ts
250
+ var React2 = __toESM(require("react"), 1);
250
251
  var import_clsx = require("clsx");
251
252
  var import_tailwind_merge = require("tailwind-merge");
252
253
  var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
@@ -267,13 +268,17 @@ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
267
268
  function cn(...inputs) {
268
269
  return twMerge((0, import_clsx.clsx)(inputs));
269
270
  }
271
+ function asChildRender(asChild, children) {
272
+ if (!asChild) return void 0;
273
+ return React2.Children.only(children);
274
+ }
270
275
 
271
276
  // src/components/theme-provider/ThemeToggle.tsx
272
277
  var import_jsx_runtime2 = require("react/jsx-runtime");
273
- var ThemeToggle = React2.forwardRef(
278
+ var ThemeToggle = React3.forwardRef(
274
279
  ({ className, label = "Toggle theme", size = "md", ...props }, ref) => {
275
280
  const { theme, resolvedTheme, setTheme } = useTheme();
276
- const toggle = React2.useCallback(() => {
281
+ const toggle = React3.useCallback(() => {
277
282
  setTheme(theme === "dark" ? "light" : "dark");
278
283
  }, [theme, setTheme]);
279
284
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
@@ -356,9 +361,9 @@ var ThemeToggle = React2.forwardRef(
356
361
  ThemeToggle.displayName = "ThemeToggle";
357
362
 
358
363
  // src/primitives/button.tsx
359
- var React3 = __toESM(require("react"), 1);
364
+ var React4 = __toESM(require("react"), 1);
360
365
  var import_class_variance_authority = require("class-variance-authority");
361
- var import_react_slot = require("@radix-ui/react-slot");
366
+ var import_button = require("@base-ui/react/button");
362
367
  var import_jsx_runtime3 = require("react/jsx-runtime");
363
368
  var buttonVariants = (0, import_class_variance_authority.cva)(
364
369
  "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -389,10 +394,19 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
389
394
  }
390
395
  }
391
396
  );
392
- var Button = React3.forwardRef(
393
- ({ className, variant, size, asChild = false, ...props }, ref) => {
394
- const Comp = asChild ? import_react_slot.Slot : "button";
395
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Comp, { className: cn(buttonVariants({ variant, size }), className), ref, ...props });
397
+ var Button = React4.forwardRef(
398
+ ({ className, variant, size, asChild = false, children, ...props }, ref) => {
399
+ const Comp = import_button.Button;
400
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
401
+ Comp,
402
+ {
403
+ ref,
404
+ className: cn(buttonVariants({ variant, size }), className),
405
+ render: asChild ? children : void 0,
406
+ ...props,
407
+ children: asChild ? void 0 : children
408
+ }
409
+ );
396
410
  }
397
411
  );
398
412
  Button.displayName = "Button";
@@ -452,7 +466,7 @@ function Button2({
452
466
  }
453
467
 
454
468
  // src/components/typography/Typography.tsx
455
- var React4 = __toESM(require("react"), 1);
469
+ var React5 = __toESM(require("react"), 1);
456
470
  var import_class_variance_authority2 = require("class-variance-authority");
457
471
  var import_jsx_runtime5 = require("react/jsx-runtime");
458
472
  var typographyVariants = (0, import_class_variance_authority2.cva)("", {
@@ -499,7 +513,7 @@ var defaultElementMap = {
499
513
  mono: "p",
500
514
  code: "span"
501
515
  };
502
- var Typography = React4.forwardRef(
516
+ var Typography = React5.forwardRef(
503
517
  ({ className, variant = "body", color = "default", as, children, ...props }, ref) => {
504
518
  const Component = as ?? defaultElementMap[variant ?? "body"] ?? "p";
505
519
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -516,13 +530,13 @@ var Typography = React4.forwardRef(
516
530
  Typography.displayName = "Typography";
517
531
 
518
532
  // src/components/card/Card.tsx
519
- var React6 = __toESM(require("react"), 1);
533
+ var React7 = __toESM(require("react"), 1);
520
534
  var import_class_variance_authority3 = require("class-variance-authority");
521
535
 
522
536
  // src/primitives/card.tsx
523
- var React5 = __toESM(require("react"), 1);
537
+ var React6 = __toESM(require("react"), 1);
524
538
  var import_jsx_runtime6 = require("react/jsx-runtime");
525
- var Card = React5.forwardRef(
539
+ var Card = React6.forwardRef(
526
540
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
527
541
  "div",
528
542
  {
@@ -533,23 +547,23 @@ var Card = React5.forwardRef(
533
547
  )
534
548
  );
535
549
  Card.displayName = "Card";
536
- var CardHeader = React5.forwardRef(
550
+ var CardHeader = React6.forwardRef(
537
551
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
538
552
  );
539
553
  CardHeader.displayName = "CardHeader";
540
- var CardTitle = React5.forwardRef(
554
+ var CardTitle = React6.forwardRef(
541
555
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { ref, className: cn("text-2xl leading-none tracking-tight", className), ...props })
542
556
  );
543
557
  CardTitle.displayName = "CardTitle";
544
- var CardDescription = React5.forwardRef(
558
+ var CardDescription = React6.forwardRef(
545
559
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
546
560
  );
547
561
  CardDescription.displayName = "CardDescription";
548
- var CardContent = React5.forwardRef(
562
+ var CardContent = React6.forwardRef(
549
563
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
550
564
  );
551
565
  CardContent.displayName = "CardContent";
552
- var CardFooter = React5.forwardRef(
566
+ var CardFooter = React6.forwardRef(
553
567
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
554
568
  );
555
569
  CardFooter.displayName = "CardFooter";
@@ -574,7 +588,7 @@ var cardVariants = (0, import_class_variance_authority3.cva)("rounded-berget-sm"
574
588
  padding: "md"
575
589
  }
576
590
  });
577
- var Card2 = React6.forwardRef(
591
+ var Card2 = React7.forwardRef(
578
592
  ({ className, variant, padding, children, ...props }, ref) => {
579
593
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
580
594
  Card,
@@ -590,7 +604,7 @@ var Card2 = React6.forwardRef(
590
604
  Card2.displayName = "Card";
591
605
 
592
606
  // src/components/badge/Badge.tsx
593
- var React7 = __toESM(require("react"), 1);
607
+ var React8 = __toESM(require("react"), 1);
594
608
  var import_class_variance_authority4 = require("class-variance-authority");
595
609
  var import_jsx_runtime8 = require("react/jsx-runtime");
596
610
  var badgeVariants = (0, import_class_variance_authority4.cva)(
@@ -625,7 +639,7 @@ var badgeVariants = (0, import_class_variance_authority4.cva)(
625
639
  }
626
640
  }
627
641
  );
628
- var Badge = React7.forwardRef(
642
+ var Badge = React8.forwardRef(
629
643
  ({ className, variant, status, size, icon, iconGap = 2, children, ...props }, ref) => {
630
644
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: cn(badgeVariants({ variant, status, size }), className), ref, ...props, children: [
631
645
  icon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { marginRight: children ? `${iconGap * 0.25}rem` : "0" }, children: icon }),
@@ -636,11 +650,11 @@ var Badge = React7.forwardRef(
636
650
  Badge.displayName = "Badge";
637
651
 
638
652
  // src/components/alert/Alert.tsx
639
- var React9 = __toESM(require("react"), 1);
653
+ var React10 = __toESM(require("react"), 1);
640
654
  var import_class_variance_authority6 = require("class-variance-authority");
641
655
 
642
656
  // src/primitives/alert.tsx
643
- var React8 = __toESM(require("react"), 1);
657
+ var React9 = __toESM(require("react"), 1);
644
658
  var import_class_variance_authority5 = require("class-variance-authority");
645
659
  var import_jsx_runtime9 = require("react/jsx-runtime");
646
660
  var alertVariants = (0, import_class_variance_authority5.cva)(
@@ -657,13 +671,13 @@ var alertVariants = (0, import_class_variance_authority5.cva)(
657
671
  }
658
672
  }
659
673
  );
660
- var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
674
+ var Alert = React9.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
661
675
  Alert.displayName = "Alert";
662
- var AlertTitle = React8.forwardRef(
676
+ var AlertTitle = React9.forwardRef(
663
677
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h5", { ref, className: cn("mb-1 leading-none tracking-tight", className), ...props })
664
678
  );
665
679
  AlertTitle.displayName = "AlertTitle";
666
- var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
680
+ var AlertDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
667
681
  AlertDescription.displayName = "AlertDescription";
668
682
 
669
683
  // src/components/alert/Alert.tsx
@@ -682,46 +696,49 @@ var alertVariants2 = (0, import_class_variance_authority6.cva)("", {
682
696
  variant: "default"
683
697
  }
684
698
  });
685
- var Alert2 = React9.forwardRef(
699
+ var Alert2 = React10.forwardRef(
686
700
  ({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Alert, { ref, className: cn(alertVariants2({ variant }), className), ...props })
687
701
  );
688
702
  Alert2.displayName = "Alert";
689
703
 
690
704
  // src/components/dialog/Dialog.tsx
691
- var React10 = __toESM(require("react"), 1);
692
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
705
+ var React11 = __toESM(require("react"), 1);
706
+ var import_dialog = require("@base-ui/react/dialog");
693
707
  var import_lucide_react = require("lucide-react");
694
708
  var import_jsx_runtime11 = require("react/jsx-runtime");
695
- var Dialog = DialogPrimitive.Root;
696
- var DialogTrigger = DialogPrimitive.Trigger;
697
- var DialogPortal = DialogPrimitive.Portal;
698
- var DialogClose = DialogPrimitive.Close;
699
- var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
700
- DialogPrimitive.Overlay,
709
+ var Dialog = import_dialog.Dialog.Root;
710
+ var DialogTrigger = React11.forwardRef(
711
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_dialog.Dialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
712
+ );
713
+ DialogTrigger.displayName = "DialogTrigger";
714
+ var DialogPortal = import_dialog.Dialog.Portal;
715
+ var DialogClose = import_dialog.Dialog.Close;
716
+ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
717
+ import_dialog.Dialog.Backdrop,
701
718
  {
702
719
  ref,
703
720
  className: cn(
704
- "fixed inset-0 z-50 bg-berget-dialog-overlay-bg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
721
+ "fixed inset-0 z-50 bg-berget-dialog-overlay-bg transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
705
722
  className
706
723
  ),
707
724
  ...props
708
725
  }
709
726
  ));
710
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
711
- var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogPortal, { children: [
727
+ DialogOverlay.displayName = "DialogOverlay";
728
+ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogPortal, { children: [
712
729
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogOverlay, {}),
713
730
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
714
- DialogPrimitive.Content,
731
+ import_dialog.Dialog.Popup,
715
732
  {
716
733
  ref,
717
734
  className: cn(
718
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
735
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg transition-[opacity,transform] duration-200 data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95",
719
736
  className
720
737
  ),
721
738
  ...props,
722
739
  children: [
723
740
  children,
724
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-berget-muted data-[state=open]:text-berget-muted-foreground", children: [
741
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_dialog.Dialog.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-open:bg-berget-muted data-open:text-berget-muted-foreground", children: [
725
742
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react.X, { className: "size-4" }),
726
743
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "Close" })
727
744
  ] })
@@ -729,7 +746,7 @@ var DialogContent = React10.forwardRef(({ className, children, ...props }, ref)
729
746
  }
730
747
  )
731
748
  ] }));
732
- DialogContent.displayName = DialogPrimitive.Content.displayName;
749
+ DialogContent.displayName = "DialogContent";
733
750
  var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
734
751
  DialogHeader.displayName = "DialogHeader";
735
752
  var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -740,45 +757,64 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
740
757
  }
741
758
  );
742
759
  DialogFooter.displayName = "DialogFooter";
743
- var DialogTitle = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
744
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
745
- var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
746
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
760
+ var DialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
761
+ import_dialog.Dialog.Title,
762
+ {
763
+ ref,
764
+ render: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
765
+ ...props,
766
+ children
767
+ }
768
+ ));
769
+ DialogTitle.displayName = "DialogTitle";
770
+ var DialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
771
+ import_dialog.Dialog.Description,
772
+ {
773
+ ref,
774
+ render: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "small", color: "muted", className }),
775
+ ...props,
776
+ children
777
+ }
778
+ ));
779
+ DialogDescription.displayName = "DialogDescription";
747
780
 
748
781
  // src/components/alert-dialog/AlertDialog.tsx
749
- var React11 = __toESM(require("react"), 1);
750
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
782
+ var React12 = __toESM(require("react"), 1);
783
+ var import_alert_dialog = require("@base-ui/react/alert-dialog");
751
784
  var import_jsx_runtime12 = require("react/jsx-runtime");
752
- var AlertDialog = AlertDialogPrimitive.Root;
753
- var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
754
- var AlertDialogPortal = AlertDialogPrimitive.Portal;
755
- var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
756
- AlertDialogPrimitive.Overlay,
785
+ var AlertDialog = import_alert_dialog.AlertDialog.Root;
786
+ var AlertDialogTrigger = React12.forwardRef(
787
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_alert_dialog.AlertDialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
788
+ );
789
+ AlertDialogTrigger.displayName = "AlertDialogTrigger";
790
+ var AlertDialogPortal = import_alert_dialog.AlertDialog.Portal;
791
+ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
792
+ import_alert_dialog.AlertDialog.Backdrop,
757
793
  {
758
794
  ref,
759
795
  className: cn(
760
- "fixed inset-0 z-50 bg-berget-dialog-overlay-bg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
796
+ "fixed inset-0 z-50 bg-berget-dialog-overlay-bg transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
761
797
  className
762
798
  ),
763
799
  ...props
764
800
  }
765
801
  ));
766
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
767
- var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogPortal, { children: [
802
+ AlertDialogOverlay.displayName = "AlertDialogOverlay";
803
+ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogPortal, { children: [
768
804
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogOverlay, {}),
769
805
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
770
- AlertDialogPrimitive.Content,
806
+ import_alert_dialog.AlertDialog.Popup,
771
807
  {
772
808
  ref,
773
809
  className: cn(
774
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
810
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg transition-[opacity,transform] duration-200 data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95",
775
811
  className
776
812
  ),
777
813
  ...props
778
814
  }
779
815
  )
780
816
  ] }));
781
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
817
+ AlertDialogContent.displayName = "AlertDialogContent";
782
818
  var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
783
819
  AlertDialogHeader.displayName = "AlertDialogHeader";
784
820
  var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -789,116 +825,181 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_
789
825
  }
790
826
  );
791
827
  AlertDialogFooter.displayName = "AlertDialogFooter";
792
- var AlertDialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
793
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
794
- var AlertDialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
795
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
796
- var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
797
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
798
- var AlertDialogCancel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogPrimitive.Cancel, { ref, className: cn("mt-2 sm:mt-0", className), ...props }));
799
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
828
+ var AlertDialogTitle = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
829
+ import_alert_dialog.AlertDialog.Title,
830
+ {
831
+ ref,
832
+ render: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
833
+ ...props,
834
+ children
835
+ }
836
+ ));
837
+ AlertDialogTitle.displayName = "AlertDialogTitle";
838
+ var AlertDialogDescription = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
839
+ import_alert_dialog.AlertDialog.Description,
840
+ {
841
+ ref,
842
+ render: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typography, { variant: "small", color: "muted", className }),
843
+ ...props,
844
+ children
845
+ }
846
+ ));
847
+ AlertDialogDescription.displayName = "AlertDialogDescription";
848
+ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
849
+ import_alert_dialog.AlertDialog.Close,
850
+ {
851
+ ref,
852
+ className: cn(className),
853
+ render: asChildRender(asChild, children),
854
+ ...props,
855
+ children: asChild ? void 0 : children
856
+ }
857
+ ));
858
+ AlertDialogAction.displayName = "AlertDialogAction";
859
+ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
860
+ import_alert_dialog.AlertDialog.Close,
861
+ {
862
+ ref,
863
+ className: cn("mt-2 sm:mt-0", className),
864
+ render: asChildRender(asChild, children),
865
+ ...props,
866
+ children: asChild ? void 0 : children
867
+ }
868
+ ));
869
+ AlertDialogCancel.displayName = "AlertDialogCancel";
800
870
 
801
871
  // src/components/dropdown-menu/DropdownMenu.tsx
802
- var React12 = __toESM(require("react"), 1);
803
- var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
872
+ var React13 = __toESM(require("react"), 1);
873
+ var import_menu = require("@base-ui/react/menu");
804
874
  var import_lucide_react2 = require("lucide-react");
805
875
  var import_jsx_runtime13 = require("react/jsx-runtime");
806
- var DropdownMenu = DropdownMenuPrimitive.Root;
807
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
808
- var DropdownMenuGroup = DropdownMenuPrimitive.Group;
809
- var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
810
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
811
- var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
812
- var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
813
- DropdownMenuPrimitive.SubTrigger,
876
+ var DropdownMenu = import_menu.Menu.Root;
877
+ var DropdownMenuTrigger = React13.forwardRef(
878
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_menu.Menu.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
879
+ );
880
+ DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
881
+ var DropdownMenuGroup = import_menu.Menu.Group;
882
+ var DropdownMenuPortal = import_menu.Menu.Portal;
883
+ var DropdownMenuSub = import_menu.Menu.SubmenuRoot;
884
+ var DropdownMenuRadioGroup = import_menu.Menu.RadioGroup;
885
+ var DropdownMenuSubTrigger = React13.forwardRef(({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
886
+ import_menu.Menu.SubmenuTrigger,
814
887
  {
815
888
  ref,
816
889
  className: cn(
817
- "flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[state=open]:bg-berget-surface-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
890
+ "flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-popup-open:bg-berget-surface-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
818
891
  inset && "pl-8",
819
892
  className
820
893
  ),
894
+ render: asChildRender(asChild, children),
821
895
  ...props,
822
- children: [
896
+ children: asChild ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
823
897
  children,
824
898
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.ChevronRight, { className: "ml-auto" })
825
- ]
826
- }
827
- ));
828
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
829
- var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
830
- DropdownMenuPrimitive.SubContent,
831
- {
832
- ref,
833
- className: cn(
834
- "z-50 min-w-[8rem] overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
835
- className
836
- ),
837
- ...props
899
+ ] })
838
900
  }
839
901
  ));
840
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
841
- var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
842
- DropdownMenuPrimitive.Content,
902
+ DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
903
+ var DropdownMenuSubContent = React13.forwardRef(
904
+ ({ className, side = "right", align = "start", alignOffset = -3, sideOffset = 0, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
905
+ import_menu.Menu.Positioner,
906
+ {
907
+ side,
908
+ align,
909
+ alignOffset,
910
+ sideOffset,
911
+ className: "isolate z-50 outline-none",
912
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
913
+ import_menu.Menu.Popup,
914
+ {
915
+ ref,
916
+ className: cn(
917
+ "z-50 min-w-[8rem] overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-lg transition-[opacity,transform] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--transform-origin]",
918
+ className
919
+ ),
920
+ ...props
921
+ }
922
+ )
923
+ }
924
+ ) })
925
+ );
926
+ DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
927
+ var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, align = "center", side, alignOffset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
928
+ import_menu.Menu.Positioner,
843
929
  {
844
- ref,
930
+ side,
931
+ align,
932
+ alignOffset,
845
933
  sideOffset,
846
- className: cn(
847
- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
848
- className
849
- ),
850
- ...props
934
+ className: "isolate z-50 outline-none",
935
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
936
+ import_menu.Menu.Popup,
937
+ {
938
+ ref,
939
+ className: cn(
940
+ "z-50 max-h-[var(--available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-berget-xs border border-berget-border bg-berget-popover p-1 text-berget-popover-foreground shadow-berget-md transition-[opacity,transform] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--transform-origin]",
941
+ className
942
+ ),
943
+ ...props
944
+ }
945
+ )
851
946
  }
852
947
  ) }));
853
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
854
- var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
855
- DropdownMenuPrimitive.Item,
948
+ DropdownMenuContent.displayName = "DropdownMenuContent";
949
+ var DropdownMenuItem = React13.forwardRef(({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
950
+ import_menu.Menu.Item,
856
951
  {
857
952
  ref,
953
+ label: textValue,
858
954
  className: cn(
859
- "relative flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
955
+ "relative flex cursor-default select-none items-center gap-2 rounded-berget-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
860
956
  inset && "pl-8",
861
957
  className
862
958
  ),
863
- ...props
959
+ render: asChildRender(asChild, children),
960
+ ...props,
961
+ children: asChild ? void 0 : children
864
962
  }
865
963
  ));
866
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
867
- var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
868
- DropdownMenuPrimitive.CheckboxItem,
964
+ DropdownMenuItem.displayName = "DropdownMenuItem";
965
+ var DropdownMenuCheckboxItem = React13.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
966
+ import_menu.Menu.CheckboxItem,
869
967
  {
870
968
  ref,
969
+ label: textValue,
871
970
  className: cn(
872
- "relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
971
+ "relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-disabled:pointer-events-none data-disabled:opacity-50",
873
972
  className
874
973
  ),
875
- checked,
974
+ render: asChildRender(asChild, children),
876
975
  ...props,
877
976
  children: [
878
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Check, { className: "size-4" }) }) }),
879
- children
977
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Check, { className: "size-4" }) }) }),
978
+ asChild ? void 0 : children
880
979
  ]
881
980
  }
882
981
  ));
883
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
884
- var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
885
- DropdownMenuPrimitive.RadioItem,
982
+ DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
983
+ var DropdownMenuRadioItem = React13.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
984
+ import_menu.Menu.RadioItem,
886
985
  {
887
986
  ref,
987
+ label: textValue,
888
988
  className: cn(
889
- "relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
989
+ "relative flex cursor-default select-none items-center rounded-berget-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-berget-surface-hover data-disabled:pointer-events-none data-disabled:opacity-50",
890
990
  className
891
991
  ),
992
+ render: asChildRender(asChild, children),
892
993
  ...props,
893
994
  children: [
894
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Circle, { className: "size-2 fill-current" }) }) }),
895
- children
995
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Circle, { className: "size-2 fill-current" }) }) }),
996
+ asChild ? void 0 : children
896
997
  ]
897
998
  }
898
999
  ));
899
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
900
- var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
901
- DropdownMenuPrimitive.Label,
1000
+ DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
1001
+ var DropdownMenuLabel = React13.forwardRef(({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1002
+ import_menu.Menu.GroupLabel,
902
1003
  {
903
1004
  ref,
904
1005
  className: cn(
@@ -906,19 +1007,21 @@ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
906
1007
  inset && "pl-8",
907
1008
  className
908
1009
  ),
909
- ...props
1010
+ render: asChildRender(asChild, children),
1011
+ ...props,
1012
+ children: asChild ? void 0 : children
910
1013
  }
911
1014
  ));
912
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
913
- var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
914
- DropdownMenuPrimitive.Separator,
1015
+ DropdownMenuLabel.displayName = "DropdownMenuLabel";
1016
+ var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1017
+ import_menu.Menu.Separator,
915
1018
  {
916
1019
  ref,
917
1020
  className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
918
1021
  ...props
919
1022
  }
920
1023
  ));
921
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
1024
+ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
922
1025
  var DropdownMenuShortcut = ({ className, ...props }) => {
923
1026
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
924
1027
  "span",
@@ -931,13 +1034,13 @@ var DropdownMenuShortcut = ({ className, ...props }) => {
931
1034
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
932
1035
 
933
1036
  // src/components/navigation-menu/NavigationMenu.tsx
934
- var React13 = __toESM(require("react"), 1);
935
- var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
1037
+ var React14 = __toESM(require("react"), 1);
1038
+ var import_navigation_menu = require("@base-ui/react/navigation-menu");
936
1039
  var import_class_variance_authority7 = require("class-variance-authority");
937
1040
  var import_lucide_react3 = require("lucide-react");
938
1041
  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,
1042
+ var NavigationMenu = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1043
+ import_navigation_menu.NavigationMenu.Root,
941
1044
  {
942
1045
  ref,
943
1046
  className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
@@ -948,94 +1051,110 @@ var NavigationMenu = React13.forwardRef(({ className, children, ...props }, ref)
948
1051
  ]
949
1052
  }
950
1053
  ));
951
- NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
952
- var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
953
- NavigationMenuPrimitive.List,
1054
+ NavigationMenu.displayName = "NavigationMenu";
1055
+ var NavigationMenuList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1056
+ import_navigation_menu.NavigationMenu.List,
954
1057
  {
955
1058
  ref,
956
1059
  className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
957
1060
  ...props
958
1061
  }
959
1062
  ));
960
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
961
- var NavigationMenuItem = NavigationMenuPrimitive.Item;
1063
+ NavigationMenuList.displayName = "NavigationMenuList";
1064
+ var NavigationMenuItem = import_navigation_menu.NavigationMenu.Item;
962
1065
  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"
1066
+ "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-popup-open:text-berget-foreground data-popup-open:bg-berget-border data-popup-open:hover:bg-berget-border data-popup-open:focus:bg-berget-border"
964
1067
  );
965
- var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
966
- NavigationMenuPrimitive.Trigger,
1068
+ var NavigationMenuTrigger = React14.forwardRef(({ className, children, asChild, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1069
+ import_navigation_menu.NavigationMenu.Trigger,
967
1070
  {
968
1071
  ref,
969
1072
  className: cn(navigationMenuTriggerStyle(), "group", className),
1073
+ render: asChildRender(asChild, children),
970
1074
  ...props,
971
- children: [
1075
+ children: asChild ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
972
1076
  children,
973
1077
  " ",
974
1078
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
975
1079
  import_lucide_react3.ChevronDown,
976
1080
  {
977
- className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180",
1081
+ className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[data-popup-open]:rotate-180",
978
1082
  "aria-hidden": "true"
979
1083
  }
980
1084
  )
981
- ]
1085
+ ] })
982
1086
  }
983
1087
  ));
984
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
985
- var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
986
- NavigationMenuPrimitive.Content,
1088
+ NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
1089
+ var NavigationMenuContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1090
+ import_navigation_menu.NavigationMenu.Content,
987
1091
  {
988
1092
  ref,
989
1093
  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",
1094
+ "left-0 top-0 w-full data-[activation-direction=left]:fade-in data-[activation-direction=right]:fade-out md:absolute md:w-auto",
991
1095
  className
992
1096
  ),
993
1097
  ...props
994
1098
  }
995
1099
  ));
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,
1100
+ NavigationMenuContent.displayName = "NavigationMenuContent";
1101
+ var NavigationMenuLink = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1102
+ import_navigation_menu.NavigationMenu.Link,
1103
+ {
1104
+ ref,
1105
+ className,
1106
+ render: asChildRender(asChild, children),
1107
+ ...props,
1108
+ children: asChild ? void 0 : children
1109
+ }
1110
+ ));
1111
+ NavigationMenuLink.displayName = "NavigationMenuLink";
1112
+ var NavigationMenuViewport = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_navigation_menu.NavigationMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_navigation_menu.NavigationMenu.Positioner, { className: "isolate z-50 outline-none", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1113
+ import_navigation_menu.NavigationMenu.Popup,
1000
1114
  {
1115
+ ref,
1001
1116
  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)]",
1117
+ "origin-top-center relative mt-1.5 h-[var(--popup-height)] w-full overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover text-berget-popover-foreground shadow-berget-lg transition-[opacity,transform] data-starting-style:opacity-0 data-starting-style:scale-90 data-ending-style:opacity-0 data-ending-style:scale-90 md:w-[var(--popup-width)]",
1003
1118
  className
1004
1119
  ),
1005
- ref,
1006
- ...props
1120
+ ...props,
1121
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_navigation_menu.NavigationMenu.Viewport, {})
1007
1122
  }
1008
- ) }));
1009
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
1010
- var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1011
- NavigationMenuPrimitive.Indicator,
1123
+ ) }) }));
1124
+ NavigationMenuViewport.displayName = "NavigationMenuViewport";
1125
+ var NavigationMenuIndicator = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1126
+ import_navigation_menu.NavigationMenu.Icon,
1012
1127
  {
1013
1128
  ref,
1014
1129
  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",
1130
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden transition-[opacity] data-starting-style:opacity-0 data-ending-style:opacity-0",
1016
1131
  className
1017
1132
  ),
1133
+ render: asChildRender(asChild, children),
1018
1134
  ...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" })
1135
+ children: [
1136
+ asChild ? void 0 : children,
1137
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
1138
+ ]
1020
1139
  }
1021
1140
  ));
1022
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
1141
+ NavigationMenuIndicator.displayName = "NavigationMenuIndicator";
1023
1142
 
1024
1143
  // src/components/table/Table.tsx
1025
- var React15 = __toESM(require("react"), 1);
1144
+ var React16 = __toESM(require("react"), 1);
1026
1145
 
1027
1146
  // src/primitives/table.tsx
1028
- var React14 = __toESM(require("react"), 1);
1147
+ var React15 = __toESM(require("react"), 1);
1029
1148
  var import_jsx_runtime15 = require("react/jsx-runtime");
1030
- var Table = React14.forwardRef(
1149
+ var Table = React15.forwardRef(
1031
1150
  ({ 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 }) })
1032
1151
  );
1033
1152
  Table.displayName = "Table";
1034
- var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
1153
+ var TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
1035
1154
  TableHeader.displayName = "TableHeader";
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 }));
1155
+ var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
1037
1156
  TableBody.displayName = "TableBody";
1038
- var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1157
+ var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1039
1158
  "tfoot",
1040
1159
  {
1041
1160
  ref,
@@ -1044,7 +1163,7 @@ var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
1044
1163
  }
1045
1164
  ));
1046
1165
  TableFooter.displayName = "TableFooter";
1047
- var TableRow = React14.forwardRef(
1166
+ var TableRow = React15.forwardRef(
1048
1167
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1049
1168
  "tr",
1050
1169
  {
@@ -1058,7 +1177,7 @@ var TableRow = React14.forwardRef(
1058
1177
  )
1059
1178
  );
1060
1179
  TableRow.displayName = "TableRow";
1061
- var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1180
+ var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1062
1181
  "th",
1063
1182
  {
1064
1183
  ref,
@@ -1070,7 +1189,7 @@ var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1070
1189
  }
1071
1190
  ));
1072
1191
  TableHead.displayName = "TableHead";
1073
- var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1192
+ var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1074
1193
  "td",
1075
1194
  {
1076
1195
  ref,
@@ -1079,16 +1198,16 @@ var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE_
1079
1198
  }
1080
1199
  ));
1081
1200
  TableCell.displayName = "TableCell";
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 }));
1201
+ var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
1083
1202
  TableCaption.displayName = "TableCaption";
1084
1203
 
1085
1204
  // src/components/table/Table.tsx
1086
1205
  var import_jsx_runtime16 = require("react/jsx-runtime");
1087
- var Table2 = React15.forwardRef(
1206
+ var Table2 = React16.forwardRef(
1088
1207
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Table, { ref, className, ...props })
1089
1208
  );
1090
1209
  Table2.displayName = "Table";
1091
- var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1210
+ var TableHeader2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1092
1211
  TableHeader,
1093
1212
  {
1094
1213
  ref,
@@ -1097,7 +1216,7 @@ var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
1097
1216
  }
1098
1217
  ));
1099
1218
  TableHeader2.displayName = "TableHeader";
1100
- var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1219
+ var TableBody2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1101
1220
  TableBody,
1102
1221
  {
1103
1222
  ref,
@@ -1106,7 +1225,7 @@ var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
1106
1225
  }
1107
1226
  ));
1108
1227
  TableBody2.displayName = "TableBody";
1109
- var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1228
+ var TableFooter2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1110
1229
  TableFooter,
1111
1230
  {
1112
1231
  ref,
@@ -1118,7 +1237,7 @@ var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
1118
1237
  }
1119
1238
  ));
1120
1239
  TableFooter2.displayName = "TableFooter";
1121
- var TableRow2 = React15.forwardRef(
1240
+ var TableRow2 = React16.forwardRef(
1122
1241
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1123
1242
  TableRow,
1124
1243
  {
@@ -1132,7 +1251,7 @@ var TableRow2 = React15.forwardRef(
1132
1251
  )
1133
1252
  );
1134
1253
  TableRow2.displayName = "TableRow";
1135
- var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1254
+ var TableHead2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1136
1255
  TableHead,
1137
1256
  {
1138
1257
  ref,
@@ -1144,7 +1263,7 @@ var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
1144
1263
  }
1145
1264
  ));
1146
1265
  TableHead2.displayName = "TableHead";
1147
- var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1266
+ var TableCell2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1148
1267
  TableCell,
1149
1268
  {
1150
1269
  ref,
@@ -1153,7 +1272,7 @@ var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
1153
1272
  }
1154
1273
  ));
1155
1274
  TableCell2.displayName = "TableCell";
1156
- var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1275
+ var TableCaption2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1157
1276
  TableCaption,
1158
1277
  {
1159
1278
  ref,
@@ -1164,21 +1283,21 @@ var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__P
1164
1283
  TableCaption2.displayName = "TableCaption";
1165
1284
 
1166
1285
  // src/components/item/Item.tsx
1167
- var React17 = __toESM(require("react"), 1);
1286
+ var React18 = __toESM(require("react"), 1);
1168
1287
 
1169
1288
  // src/primitives/item.tsx
1170
- var import_react_slot2 = require("@radix-ui/react-slot");
1171
1289
  var import_class_variance_authority8 = require("class-variance-authority");
1290
+ var import_merge_props = require("@base-ui/react/merge-props");
1291
+ var import_use_render = require("@base-ui/react/use-render");
1172
1292
 
1173
1293
  // src/primitives/separator.tsx
1174
- var React16 = __toESM(require("react"), 1);
1175
- var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
1294
+ var React17 = __toESM(require("react"), 1);
1295
+ var import_separator = require("@base-ui/react/separator");
1176
1296
  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)(
1178
- SeparatorPrimitive.Root,
1297
+ var Separator = React17.forwardRef(({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1298
+ import_separator.Separator,
1179
1299
  {
1180
1300
  ref,
1181
- decorative,
1182
1301
  orientation,
1183
1302
  className: cn(
1184
1303
  "shrink-0 bg-border",
@@ -1188,7 +1307,7 @@ var Separator2 = React16.forwardRef(({ className, orientation = "horizontal", de
1188
1307
  ...props
1189
1308
  }
1190
1309
  ));
1191
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1310
+ Separator.displayName = "Separator";
1192
1311
 
1193
1312
  // src/primitives/item.tsx
1194
1313
  var import_jsx_runtime18 = require("react/jsx-runtime");
@@ -1205,7 +1324,7 @@ function ItemGroup({ className, ...props }) {
1205
1324
  }
1206
1325
  function ItemSeparator({ className, ...props }) {
1207
1326
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1208
- Separator2,
1327
+ Separator,
1209
1328
  {
1210
1329
  "data-slot": "item-separator",
1211
1330
  orientation: "horizontal",
@@ -1234,24 +1353,26 @@ var itemVariants = (0, import_class_variance_authority8.cva)(
1234
1353
  }
1235
1354
  }
1236
1355
  );
1237
- function Item3({
1356
+ function Item({
1238
1357
  className,
1239
1358
  variant = "default",
1240
1359
  size = "default",
1241
- asChild = false,
1360
+ render,
1242
1361
  ...props
1243
1362
  }) {
1244
- const Comp = asChild ? import_react_slot2.Slot : "div";
1245
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1246
- Comp,
1247
- {
1248
- "data-slot": "item",
1249
- "data-variant": variant,
1250
- "data-size": size,
1251
- className: cn(itemVariants({ variant, size, className })),
1252
- ...props
1253
- }
1254
- );
1363
+ return (0, import_use_render.useRender)({
1364
+ defaultTagName: "div",
1365
+ render,
1366
+ props: (0, import_merge_props.mergeProps)(
1367
+ {
1368
+ "data-slot": "item",
1369
+ "data-variant": variant,
1370
+ "data-size": size,
1371
+ className: cn(itemVariants({ variant, size, className }))
1372
+ },
1373
+ props
1374
+ )
1375
+ });
1255
1376
  }
1256
1377
  var itemMediaVariants = (0, import_class_variance_authority8.cva)(
1257
1378
  "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",
@@ -1343,11 +1464,11 @@ function ItemFooter({ className, ...props }) {
1343
1464
 
1344
1465
  // src/components/item/Item.tsx
1345
1466
  var import_jsx_runtime19 = require("react/jsx-runtime");
1346
- function Item4({ className, asChild, ...props }) {
1467
+ function Item2({ className, asChild, children, ...props }) {
1347
1468
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1348
- Item3,
1469
+ Item,
1349
1470
  {
1350
- asChild,
1471
+ render: asChild ? children : void 0,
1351
1472
  className: cn(
1352
1473
  /* Variant colours — override primitive defaults */
1353
1474
  "data-[variant=outline]:border-berget-item-outline-border",
@@ -1358,11 +1479,12 @@ function Item4({ className, asChild, ...props }) {
1358
1479
  "focus-visible:border-berget-item-focus-ring focus-visible:ring-berget-item-focus-ring/50",
1359
1480
  className
1360
1481
  ),
1361
- ...props
1482
+ ...props,
1483
+ children: asChild ? void 0 : children
1362
1484
  }
1363
1485
  );
1364
1486
  }
1365
- var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
1487
+ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
1366
1488
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1367
1489
  ItemMedia,
1368
1490
  {
@@ -1373,7 +1495,7 @@ var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
1373
1495
  );
1374
1496
  });
1375
1497
  ItemMedia2.displayName = "ItemMedia";
1376
- var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
1498
+ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
1377
1499
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1378
1500
  ItemTitle,
1379
1501
  {
@@ -1384,7 +1506,7 @@ var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
1384
1506
  );
1385
1507
  });
1386
1508
  ItemTitle2.displayName = "ItemTitle";
1387
- var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
1509
+ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
1388
1510
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1389
1511
  ItemDescription,
1390
1512
  {
@@ -1395,7 +1517,7 @@ var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
1395
1517
  );
1396
1518
  });
1397
1519
  ItemDescription2.displayName = "ItemDescription";
1398
- var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
1520
+ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
1399
1521
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1400
1522
  ItemSeparator,
1401
1523
  {
@@ -1408,12 +1530,12 @@ var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
1408
1530
  ItemSeparator2.displayName = "ItemSeparator";
1409
1531
 
1410
1532
  // src/components/input/Input.tsx
1411
- var React19 = __toESM(require("react"), 1);
1533
+ var React20 = __toESM(require("react"), 1);
1412
1534
 
1413
1535
  // src/primitives/input.tsx
1414
- var React18 = __toESM(require("react"), 1);
1536
+ var React19 = __toESM(require("react"), 1);
1415
1537
  var import_jsx_runtime20 = require("react/jsx-runtime");
1416
- var Input = React18.forwardRef(
1538
+ var Input = React19.forwardRef(
1417
1539
  ({ className, type, ...props }, ref) => {
1418
1540
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1419
1541
  "input",
@@ -1433,9 +1555,9 @@ Input.displayName = "Input";
1433
1555
 
1434
1556
  // src/components/input/Input.tsx
1435
1557
  var import_jsx_runtime21 = require("react/jsx-runtime");
1436
- var Input2 = React19.forwardRef(
1558
+ var Input2 = React20.forwardRef(
1437
1559
  ({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
1438
- const generatedId = React19.useId();
1560
+ const generatedId = React20.useId();
1439
1561
  const inputId = id || generatedId;
1440
1562
  const errorId = `${inputId}-error`;
1441
1563
  const descriptionId = `${inputId}-description`;
@@ -1515,31 +1637,31 @@ var Input2 = React19.forwardRef(
1515
1637
  Input2.displayName = "Input";
1516
1638
 
1517
1639
  // src/components/checkbox/Checkbox.tsx
1518
- var React21 = __toESM(require("react"), 1);
1519
- var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"), 1);
1640
+ var React22 = __toESM(require("react"), 1);
1641
+ var import_checkbox2 = require("@base-ui/react/checkbox");
1520
1642
  var import_lucide_react5 = require("lucide-react");
1521
1643
  var import_class_variance_authority9 = require("class-variance-authority");
1522
1644
 
1523
1645
  // src/primitives/checkbox.tsx
1524
- var React20 = __toESM(require("react"), 1);
1525
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
1646
+ var React21 = __toESM(require("react"), 1);
1647
+ var import_checkbox = require("@base-ui/react/checkbox");
1526
1648
  var import_lucide_react4 = require("lucide-react");
1527
1649
  var import_jsx_runtime22 = require("react/jsx-runtime");
1528
- var Checkbox = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1529
- CheckboxPrimitive.Root,
1650
+ var Checkbox = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1651
+ import_checkbox.Checkbox.Root,
1530
1652
  {
1531
1653
  ref,
1532
1654
  className: cn(
1533
- "peer cursor-pointer ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1655
+ "peer cursor-pointer ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:opacity-50",
1534
1656
  className
1535
1657
  ),
1536
1658
  ...props,
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" }) })
1659
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_checkbox.Checkbox.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" }) })
1538
1660
  }
1539
1661
  ));
1540
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1541
- var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1542
- CheckboxPrimitive.Indicator,
1662
+ Checkbox.displayName = "Checkbox";
1663
+ var CheckboxIndicator = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1664
+ import_checkbox.Checkbox.Indicator,
1543
1665
  {
1544
1666
  ref,
1545
1667
  className: cn("grid place-content-center", className),
@@ -1547,7 +1669,7 @@ var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, r
1547
1669
  children: children ?? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" })
1548
1670
  }
1549
1671
  ));
1550
- CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
1672
+ CheckboxIndicator.displayName = "CheckboxIndicator";
1551
1673
 
1552
1674
  // src/components/checkbox/Checkbox.tsx
1553
1675
  var import_jsx_runtime23 = require("react/jsx-runtime");
@@ -1572,7 +1694,7 @@ var checkboxVariants = (0, import_class_variance_authority9.cva)(
1572
1694
  }
1573
1695
  }
1574
1696
  );
1575
- var Checkbox2 = React21.forwardRef(
1697
+ var Checkbox2 = React22.forwardRef(
1576
1698
  ({
1577
1699
  "aria-label": ariaLabel,
1578
1700
  className,
@@ -1585,7 +1707,7 @@ var Checkbox2 = React21.forwardRef(
1585
1707
  disabled,
1586
1708
  ...props
1587
1709
  }, ref) => {
1588
- const generatedId = React21.useId();
1710
+ const generatedId = React22.useId();
1589
1711
  const checkboxId = id || generatedId;
1590
1712
  const errorId = `${checkboxId}-error`;
1591
1713
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-start gap-3", children: [
@@ -1595,6 +1717,7 @@ var Checkbox2 = React21.forwardRef(
1595
1717
  ref,
1596
1718
  id: checkboxId,
1597
1719
  disabled,
1720
+ nativeButton: true,
1598
1721
  "aria-invalid": !!error,
1599
1722
  "aria-describedby": error ? errorId : void 0,
1600
1723
  "aria-label": ariaLabel || label || void 0,
@@ -1605,7 +1728,7 @@ var Checkbox2 = React21.forwardRef(
1605
1728
  className
1606
1729
  ),
1607
1730
  ...props,
1608
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1731
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1609
1732
  import_lucide_react5.Check,
1610
1733
  {
1611
1734
  className: "h-4 w-4 text-current stroke-current",
@@ -1636,8 +1759,8 @@ var Checkbox2 = React21.forwardRef(
1636
1759
  Checkbox2.displayName = "Checkbox";
1637
1760
 
1638
1761
  // src/components/switch/Switch.tsx
1639
- var React22 = __toESM(require("react"), 1);
1640
- var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
1762
+ var React23 = __toESM(require("react"), 1);
1763
+ var import_switch = require("@base-ui/react/switch");
1641
1764
  var import_class_variance_authority10 = require("class-variance-authority");
1642
1765
  var import_jsx_runtime24 = require("react/jsx-runtime");
1643
1766
  var switchRootVariants = (0, import_class_variance_authority10.cva)(
@@ -1645,9 +1768,9 @@ var switchRootVariants = (0, import_class_variance_authority10.cva)(
1645
1768
  {
1646
1769
  variants: {
1647
1770
  variant: {
1648
- default: "data-[state=unchecked]:bg-berget-border data-[state=checked]:bg-berget-secondary",
1649
- primary: "data-[state=unchecked]:bg-berget-border-subtle data-[state=checked]:bg-berget-switch-primary-checked",
1650
- subtle: "data-[state=unchecked]:bg-berget-border-subtle data-[state=checked]:bg-berget-switch-subtle-checked"
1771
+ default: "data-unchecked:bg-berget-border data-checked:bg-berget-secondary",
1772
+ primary: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-primary-checked",
1773
+ subtle: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-subtle-checked"
1651
1774
  },
1652
1775
  size: {
1653
1776
  sm: "h-5 w-9",
@@ -1666,9 +1789,9 @@ var switchThumbVariants = (0, import_class_variance_authority10.cva)(
1666
1789
  {
1667
1790
  variants: {
1668
1791
  size: {
1669
- sm: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
1670
- default: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
1671
- lg: "h-6 w-6 data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-0"
1792
+ sm: "h-4 w-4 data-checked:translate-x-4 data-unchecked:translate-x-0",
1793
+ default: "h-5 w-5 data-checked:translate-x-5 data-unchecked:translate-x-0",
1794
+ lg: "h-6 w-6 data-checked:translate-x-6 data-unchecked:translate-x-0"
1672
1795
  }
1673
1796
  },
1674
1797
  defaultVariants: {
@@ -1676,7 +1799,7 @@ var switchThumbVariants = (0, import_class_variance_authority10.cva)(
1676
1799
  }
1677
1800
  }
1678
1801
  );
1679
- var Switch = React22.forwardRef(
1802
+ var Switch = React23.forwardRef(
1680
1803
  ({
1681
1804
  "aria-label": ariaLabel,
1682
1805
  className,
@@ -1689,16 +1812,17 @@ var Switch = React22.forwardRef(
1689
1812
  disabled,
1690
1813
  ...props
1691
1814
  }, ref) => {
1692
- const generatedId = React22.useId();
1815
+ const generatedId = React23.useId();
1693
1816
  const switchId = id || generatedId;
1694
1817
  const errorId = `${switchId}-error`;
1695
1818
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center gap-3", children: [
1696
1819
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1697
- SwitchPrimitives.Root,
1820
+ import_switch.Switch.Root,
1698
1821
  {
1699
1822
  ref,
1700
1823
  id: switchId,
1701
1824
  disabled,
1825
+ nativeButton: true,
1702
1826
  "aria-invalid": !!error,
1703
1827
  "aria-describedby": error ? errorId : void 0,
1704
1828
  "aria-label": ariaLabel || label || void 0,
@@ -1708,7 +1832,7 @@ var Switch = React22.forwardRef(
1708
1832
  className
1709
1833
  ),
1710
1834
  ...props,
1711
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
1835
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_switch.Switch.Thumb, { className: cn(switchThumbVariants({ size })) })
1712
1836
  }
1713
1837
  ),
1714
1838
  (label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-1", children: [
@@ -1732,34 +1856,36 @@ var Switch = React22.forwardRef(
1732
1856
  Switch.displayName = "Switch";
1733
1857
 
1734
1858
  // src/components/select/Select.tsx
1735
- var React24 = __toESM(require("react"), 1);
1859
+ var React25 = __toESM(require("react"), 1);
1736
1860
  var import_class_variance_authority11 = require("class-variance-authority");
1737
1861
 
1738
1862
  // src/primitives/select.tsx
1739
- var React23 = __toESM(require("react"), 1);
1740
- var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
1863
+ var React24 = __toESM(require("react"), 1);
1864
+ var import_select = require("@base-ui/react/select");
1741
1865
  var import_lucide_react6 = require("lucide-react");
1742
1866
  var import_jsx_runtime25 = require("react/jsx-runtime");
1743
- var Select = SelectPrimitive.Root;
1744
- var SelectValue = SelectPrimitive.Value;
1745
- var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1746
- SelectPrimitive.Trigger,
1867
+ var Select = import_select.Select.Root;
1868
+ var SelectGroup = import_select.Select.Group;
1869
+ var SelectValue = import_select.Select.Value;
1870
+ var SelectTrigger = React24.forwardRef(({ className, children, asChild, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1871
+ import_select.Select.Trigger,
1747
1872
  {
1748
1873
  ref,
1749
1874
  className: cn(
1750
1875
  "flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
1751
1876
  className
1752
1877
  ),
1878
+ render: asChildRender(asChild, children),
1753
1879
  ...props,
1754
1880
  children: [
1755
- children,
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" }) })
1881
+ asChild ? void 0 : children,
1882
+ asChild ? null : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_select.Select.Icon, { render: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
1757
1883
  ]
1758
1884
  }
1759
1885
  ));
1760
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1761
- var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1762
- SelectPrimitive.ScrollUpButton,
1886
+ SelectTrigger.displayName = "SelectTrigger";
1887
+ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1888
+ import_select.Select.ScrollUpArrow,
1763
1889
  {
1764
1890
  ref,
1765
1891
  className: cn("flex cursor-default items-center justify-center py-1", className),
@@ -1767,9 +1893,9 @@ var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) =>
1767
1893
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronUp, { className: "h-4 w-4" })
1768
1894
  }
1769
1895
  ));
1770
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1771
- var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1772
- SelectPrimitive.ScrollDownButton,
1896
+ SelectScrollUpButton.displayName = "SelectScrollUpButton";
1897
+ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1898
+ import_select.Select.ScrollDownArrow,
1773
1899
  {
1774
1900
  ref,
1775
1901
  className: cn("flex cursor-default items-center justify-center py-1", className),
@@ -1777,69 +1903,84 @@ var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) =
1777
1903
  children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4" })
1778
1904
  }
1779
1905
  ));
1780
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
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)(
1782
- SelectPrimitive.Content,
1783
- {
1784
- ref,
1785
- className: cn(
1786
- "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
1787
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1788
- className
1789
- ),
1790
- position,
1791
- ...props,
1792
- children: [
1793
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
1794
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1795
- SelectPrimitive.Viewport,
1906
+ SelectScrollDownButton.displayName = "SelectScrollDownButton";
1907
+ var SelectContent = React24.forwardRef(
1908
+ ({
1909
+ className,
1910
+ children,
1911
+ alignItemWithTrigger = true,
1912
+ sideOffset = 4,
1913
+ align,
1914
+ side,
1915
+ alignOffset,
1916
+ ...props
1917
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1918
+ import_select.Select.Positioner,
1919
+ {
1920
+ alignItemWithTrigger,
1921
+ side,
1922
+ align,
1923
+ alignOffset,
1924
+ sideOffset,
1925
+ className: "isolate z-50",
1926
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1927
+ import_select.Select.Popup,
1796
1928
  {
1929
+ ref,
1797
1930
  className: cn(
1798
- "p-1",
1799
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1931
+ "z-50 max-h-[var(--available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md transition-[opacity,transform] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--transform-origin]",
1932
+ className
1800
1933
  ),
1801
- children
1934
+ ...props,
1935
+ children: [
1936
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollUpButton, {}),
1937
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_select.Select.List, { className: cn("p-1"), children }),
1938
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
1939
+ ]
1802
1940
  }
1803
- ),
1804
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectScrollDownButton, {})
1805
- ]
1806
- }
1807
- ) }));
1808
- SelectContent.displayName = SelectPrimitive.Content.displayName;
1809
- var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1810
- SelectPrimitive.Label,
1941
+ )
1942
+ }
1943
+ ) })
1944
+ );
1945
+ SelectContent.displayName = "SelectContent";
1946
+ var SelectLabel = React24.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1947
+ import_select.Select.GroupLabel,
1811
1948
  {
1812
1949
  ref,
1813
1950
  className: cn("py-1.5 pl-8 pr-2 text-sm ", className),
1814
- ...props
1951
+ render: asChildRender(asChild, children),
1952
+ ...props,
1953
+ children: asChild ? void 0 : children
1815
1954
  }
1816
1955
  ));
1817
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
1818
- var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1819
- SelectPrimitive.Item,
1956
+ SelectLabel.displayName = "SelectLabel";
1957
+ var SelectItem = React24.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1958
+ import_select.Select.Item,
1820
1959
  {
1821
1960
  ref,
1961
+ label: textValue,
1822
1962
  className: cn(
1823
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1963
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
1824
1964
  className
1825
1965
  ),
1966
+ render: asChildRender(asChild, children),
1826
1967
  ...props,
1827
- children: [
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 })
1830
- ]
1968
+ children: asChild ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1969
+ /* @__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)(import_select.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" }) }) }),
1970
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_select.Select.ItemText, { children })
1971
+ ] })
1831
1972
  }
1832
1973
  ));
1833
- SelectItem.displayName = SelectPrimitive.Item.displayName;
1834
- var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1835
- SelectPrimitive.Separator,
1974
+ SelectItem.displayName = "SelectItem";
1975
+ var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1976
+ import_select.Select.Separator,
1836
1977
  {
1837
1978
  ref,
1838
1979
  className: cn("-mx-1 my-1 h-px bg-muted", className),
1839
1980
  ...props
1840
1981
  }
1841
1982
  ));
1842
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1983
+ SelectSeparator.displayName = "SelectSeparator";
1843
1984
 
1844
1985
  // src/components/select/Select.tsx
1845
1986
  var import_jsx_runtime26 = require("react/jsx-runtime");
@@ -1865,7 +2006,7 @@ var selectVariants = (0, import_class_variance_authority11.cva)(
1865
2006
  }
1866
2007
  }
1867
2008
  );
1868
- var Select2 = React24.forwardRef(
2009
+ var Select2 = React25.forwardRef(
1869
2010
  ({
1870
2011
  className,
1871
2012
  variant,
@@ -1883,7 +2024,7 @@ var Select2 = React24.forwardRef(
1883
2024
  name,
1884
2025
  required
1885
2026
  }, ref) => {
1886
- const generatedId = React24.useId();
2027
+ const generatedId = React25.useId();
1887
2028
  const selectId = id || generatedId;
1888
2029
  const errorId = `${selectId}-error`;
1889
2030
  const descriptionId = `${selectId}-description`;
@@ -1905,10 +2046,11 @@ var Select2 = React24.forwardRef(
1905
2046
  {
1906
2047
  value,
1907
2048
  defaultValue,
1908
- onValueChange,
2049
+ onValueChange: onValueChange ? (value2) => onValueChange(value2 ?? "") : void 0,
1909
2050
  disabled,
1910
2051
  name,
1911
2052
  required,
2053
+ items: options,
1912
2054
  children: [
1913
2055
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1914
2056
  SelectTrigger,
@@ -1937,18 +2079,18 @@ var Select2 = React24.forwardRef(
1937
2079
  Select2.displayName = "Select";
1938
2080
 
1939
2081
  // src/components/country-select/CountrySelect.tsx
1940
- var React29 = __toESM(require("react"), 1);
2082
+ var React30 = __toESM(require("react"), 1);
1941
2083
  var import_lucide_react9 = require("lucide-react");
1942
2084
 
1943
2085
  // src/components/icon/Icon.tsx
1944
- var React25 = __toESM(require("react"), 1);
2086
+ var React26 = __toESM(require("react"), 1);
1945
2087
  var import_jsx_runtime27 = require("react/jsx-runtime");
1946
2088
  var iconStrokeMap = {
1947
2089
  16: 1.4,
1948
2090
  24: 1.6,
1949
2091
  32: 1.8
1950
2092
  };
1951
- var Icon2 = React25.forwardRef(
2093
+ var Icon = React26.forwardRef(
1952
2094
  ({
1953
2095
  icon: IconComponent,
1954
2096
  size,
@@ -1972,66 +2114,76 @@ var Icon2 = React25.forwardRef(
1972
2114
  );
1973
2115
  }
1974
2116
  );
1975
- Icon2.displayName = "Icon";
2117
+ Icon.displayName = "Icon";
1976
2118
 
1977
2119
  // src/primitives/popover.tsx
1978
- var React26 = __toESM(require("react"), 1);
1979
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
2120
+ var React27 = __toESM(require("react"), 1);
2121
+ var import_popover = require("@base-ui/react/popover");
1980
2122
  var import_jsx_runtime28 = require("react/jsx-runtime");
1981
- var Popover = PopoverPrimitive.Root;
1982
- var PopoverTrigger = PopoverPrimitive.Trigger;
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)(
1984
- PopoverPrimitive.Content,
2123
+ var Popover = import_popover.Popover.Root;
2124
+ var PopoverTrigger = React27.forwardRef(
2125
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_popover.Popover.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
2126
+ );
2127
+ PopoverTrigger.displayName = "PopoverTrigger";
2128
+ var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_popover.Popover.Positioner, { align, sideOffset, className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2129
+ import_popover.Popover.Popup,
1985
2130
  {
1986
2131
  ref,
1987
- align,
1988
- sideOffset,
1989
2132
  className: cn(
1990
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
2133
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none transition-[opacity,transform] data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 origin-[--transform-origin]",
1991
2134
  className
1992
2135
  ),
1993
2136
  ...props
1994
2137
  }
1995
- ) }));
1996
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2138
+ ) }) }));
2139
+ PopoverContent.displayName = "PopoverContent";
1997
2140
 
1998
2141
  // src/primitives/command.tsx
1999
- var React28 = __toESM(require("react"), 1);
2142
+ var React29 = __toESM(require("react"), 1);
2000
2143
  var import_cmdk = require("cmdk");
2001
2144
  var import_lucide_react8 = require("lucide-react");
2002
2145
 
2003
2146
  // src/primitives/dialog.tsx
2004
- var React27 = __toESM(require("react"), 1);
2005
- var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
2147
+ var React28 = __toESM(require("react"), 1);
2148
+ var import_dialog2 = require("@base-ui/react/dialog");
2006
2149
  var import_lucide_react7 = require("lucide-react");
2007
2150
  var import_jsx_runtime29 = require("react/jsx-runtime");
2008
- var DialogPortal2 = DialogPrimitive2.Portal;
2009
- var DialogOverlay2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2010
- DialogPrimitive2.Overlay,
2151
+ var Dialog2 = import_dialog2.Dialog.Root;
2152
+ var DialogTrigger2 = React28.forwardRef(
2153
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_dialog2.Dialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
2154
+ );
2155
+ DialogTrigger2.displayName = "DialogTrigger";
2156
+ var DialogPortal2 = import_dialog2.Dialog.Portal;
2157
+ var DialogClose2 = React28.forwardRef(
2158
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_dialog2.Dialog.Close, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
2159
+ );
2160
+ DialogClose2.displayName = "DialogClose";
2161
+ var DialogOverlay2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2162
+ import_dialog2.Dialog.Backdrop,
2011
2163
  {
2012
2164
  ref,
2013
2165
  className: cn(
2014
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2166
+ "fixed inset-0 z-50 bg-black/80 transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
2015
2167
  className
2016
2168
  ),
2017
2169
  ...props
2018
2170
  }
2019
2171
  ));
2020
- DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
2021
- var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(DialogPortal2, { children: [
2172
+ DialogOverlay2.displayName = "DialogOverlay";
2173
+ var DialogContent2 = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(DialogPortal2, { children: [
2022
2174
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DialogOverlay2, {}),
2023
2175
  /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2024
- DialogPrimitive2.Content,
2176
+ import_dialog2.Dialog.Popup,
2025
2177
  {
2026
2178
  ref,
2027
2179
  className: cn(
2028
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
2180
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg transition-[opacity,transform] duration-200 data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95 sm:rounded-lg",
2029
2181
  className
2030
2182
  ),
2031
2183
  ...props,
2032
2184
  children: [
2033
2185
  children,
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: [
2186
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_dialog2.Dialog.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-open:bg-accent data-open:text-muted-foreground", children: [
2035
2187
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.X, { className: "h-4 w-4" }),
2036
2188
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Close" })
2037
2189
  ] })
@@ -2039,7 +2191,7 @@ var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref)
2039
2191
  }
2040
2192
  )
2041
2193
  ] }));
2042
- DialogContent2.displayName = DialogPrimitive2.Content.displayName;
2194
+ DialogContent2.displayName = "DialogContent";
2043
2195
  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 });
2044
2196
  DialogHeader2.displayName = "DialogHeader";
2045
2197
  var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
@@ -2050,28 +2202,28 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_
2050
2202
  }
2051
2203
  );
2052
2204
  DialogFooter2.displayName = "DialogFooter";
2053
- var DialogTitle2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2054
- DialogPrimitive2.Title,
2205
+ var DialogTitle2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2206
+ import_dialog2.Dialog.Title,
2055
2207
  {
2056
2208
  ref,
2057
2209
  className: cn("text-lg font-semibold leading-none tracking-tight", className),
2058
2210
  ...props
2059
2211
  }
2060
2212
  ));
2061
- DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
2062
- var DialogDescription2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2063
- DialogPrimitive2.Description,
2213
+ DialogTitle2.displayName = "DialogTitle";
2214
+ var DialogDescription2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2215
+ import_dialog2.Dialog.Description,
2064
2216
  {
2065
2217
  ref,
2066
2218
  className: cn("text-sm text-muted-foreground", className),
2067
2219
  ...props
2068
2220
  }
2069
2221
  ));
2070
- DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
2222
+ DialogDescription2.displayName = "DialogDescription";
2071
2223
 
2072
2224
  // src/primitives/command.tsx
2073
2225
  var import_jsx_runtime30 = require("react/jsx-runtime");
2074
- var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2226
+ var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2075
2227
  import_cmdk.Command,
2076
2228
  {
2077
2229
  ref,
@@ -2083,7 +2235,7 @@ var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__
2083
2235
  }
2084
2236
  ));
2085
2237
  Command.displayName = import_cmdk.Command.displayName;
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: [
2238
+ var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2087
2239
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2088
2240
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2089
2241
  import_cmdk.Command.Input,
@@ -2098,7 +2250,7 @@ var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PU
2098
2250
  )
2099
2251
  ] }));
2100
2252
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
2101
- var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2253
+ var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2102
2254
  import_cmdk.Command.List,
2103
2255
  {
2104
2256
  ref,
@@ -2107,9 +2259,9 @@ var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
2107
2259
  }
2108
2260
  ));
2109
2261
  CommandList.displayName = import_cmdk.Command.List.displayName;
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 }));
2262
+ var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
2111
2263
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
2112
- var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2264
+ var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2113
2265
  import_cmdk.Command.Group,
2114
2266
  {
2115
2267
  ref,
@@ -2121,7 +2273,7 @@ var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PU
2121
2273
  }
2122
2274
  ));
2123
2275
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
2124
- var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2276
+ var CommandSeparator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2125
2277
  import_cmdk.Command.Separator,
2126
2278
  {
2127
2279
  ref,
@@ -2130,7 +2282,7 @@ var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @
2130
2282
  }
2131
2283
  ));
2132
2284
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
2133
- var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2285
+ var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2134
2286
  import_cmdk.Command.Item,
2135
2287
  {
2136
2288
  ref,
@@ -2295,7 +2447,7 @@ var isEUCountry = (countryCode) => {
2295
2447
 
2296
2448
  // src/components/country-select/CountrySelect.tsx
2297
2449
  var import_jsx_runtime31 = require("react/jsx-runtime");
2298
- var CountrySelect = React29.forwardRef(
2450
+ var CountrySelect = React30.forwardRef(
2299
2451
  ({
2300
2452
  value,
2301
2453
  onValueChange,
@@ -2305,8 +2457,8 @@ var CountrySelect = React29.forwardRef(
2305
2457
  align = "center",
2306
2458
  sideOffset = 4
2307
2459
  }, ref) => {
2308
- const [open, setOpen] = React29.useState(false);
2309
- const selectedCountry = React29.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
2460
+ const [open, setOpen] = React30.useState(false);
2461
+ const selectedCountry = React30.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
2310
2462
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
2311
2463
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2312
2464
  "button",
@@ -2339,7 +2491,7 @@ var CountrySelect = React29.forwardRef(
2339
2491
  ] })
2340
2492
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
2341
2493
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2342
- Icon2,
2494
+ Icon,
2343
2495
  {
2344
2496
  icon: import_lucide_react9.Globe,
2345
2497
  size: 16,
@@ -2349,7 +2501,7 @@ var CountrySelect = React29.forwardRef(
2349
2501
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
2350
2502
  ] }) }),
2351
2503
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2352
- Icon2,
2504
+ Icon,
2353
2505
  {
2354
2506
  icon: import_lucide_react9.ChevronDown,
2355
2507
  size: 16,
@@ -2407,13 +2559,13 @@ var CountrySelect = React29.forwardRef(
2407
2559
  CountrySelect.displayName = "CountrySelect";
2408
2560
 
2409
2561
  // src/components/text-area/TextArea.tsx
2410
- var React31 = __toESM(require("react"), 1);
2562
+ var React32 = __toESM(require("react"), 1);
2411
2563
  var import_class_variance_authority12 = require("class-variance-authority");
2412
2564
 
2413
2565
  // src/primitives/textarea.tsx
2414
- var React30 = __toESM(require("react"), 1);
2566
+ var React31 = __toESM(require("react"), 1);
2415
2567
  var import_jsx_runtime32 = require("react/jsx-runtime");
2416
- var Textarea = React30.forwardRef(
2568
+ var Textarea = React31.forwardRef(
2417
2569
  ({ className, ...props }, ref) => {
2418
2570
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2419
2571
  "textarea",
@@ -2454,7 +2606,7 @@ var textAreaVariants = (0, import_class_variance_authority12.cva)(
2454
2606
  }
2455
2607
  }
2456
2608
  );
2457
- var TextArea = React31.forwardRef(
2609
+ var TextArea = React32.forwardRef(
2458
2610
  ({
2459
2611
  className,
2460
2612
  variant,
@@ -2474,7 +2626,7 @@ var TextArea = React31.forwardRef(
2474
2626
  actionButton,
2475
2627
  ...props
2476
2628
  }, ref) => {
2477
- const generatedId = React31.useId();
2629
+ const generatedId = React32.useId();
2478
2630
  const textareaId = id || generatedId;
2479
2631
  const errorId = `${textareaId}-error`;
2480
2632
  const descriptionId = `${textareaId}-description`;
@@ -2556,15 +2708,14 @@ var TextArea = React31.forwardRef(
2556
2708
  TextArea.displayName = "TextArea";
2557
2709
 
2558
2710
  // src/primitives/label.tsx
2559
- var React32 = __toESM(require("react"), 1);
2560
- var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
2711
+ var React33 = __toESM(require("react"), 1);
2561
2712
  var import_class_variance_authority13 = require("class-variance-authority");
2562
2713
  var import_jsx_runtime34 = require("react/jsx-runtime");
2563
2714
  var labelVariants = (0, import_class_variance_authority13.cva)(
2564
2715
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2565
2716
  );
2566
- var Label3 = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
2567
- Label3.displayName = LabelPrimitive.Root.displayName;
2717
+ var Label = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { ref, className: cn(labelVariants(), className), ...props }));
2718
+ Label.displayName = "Label";
2568
2719
 
2569
2720
  // src/primitives/field.tsx
2570
2721
  var import_react = require("react");
@@ -2668,7 +2819,7 @@ function FieldContent({ className, ...props }) {
2668
2819
  }
2669
2820
  function FieldLabel({ className, ...props }) {
2670
2821
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2671
- Label3,
2822
+ Label,
2672
2823
  {
2673
2824
  "data-slot": "field-label",
2674
2825
  className: cn(
@@ -2725,7 +2876,7 @@ function FieldSeparator({
2725
2876
  ),
2726
2877
  ...props,
2727
2878
  children: [
2728
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
2879
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
2729
2880
  children && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2730
2881
  "span",
2731
2882
  {
@@ -2772,7 +2923,7 @@ function FieldError({
2772
2923
  }
2773
2924
 
2774
2925
  // src/components/link/Link.tsx
2775
- var React33 = __toESM(require("react"), 1);
2926
+ var React34 = __toESM(require("react"), 1);
2776
2927
  var import_class_variance_authority15 = require("class-variance-authority");
2777
2928
  var import_lucide_react10 = require("lucide-react");
2778
2929
  var import_jsx_runtime36 = require("react/jsx-runtime");
@@ -2800,7 +2951,7 @@ var linkVariants = (0, import_class_variance_authority15.cva)(
2800
2951
  }
2801
2952
  }
2802
2953
  );
2803
- var Link2 = React33.forwardRef(
2954
+ var Link = React34.forwardRef(
2804
2955
  ({
2805
2956
  className,
2806
2957
  variant,
@@ -2830,19 +2981,19 @@ var Link2 = React33.forwardRef(
2830
2981
  children: [
2831
2982
  children,
2832
2983
  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 }) })
2984
+ 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)(Icon, { icon: import_lucide_react10.ExternalLink, size: 16 }) })
2834
2985
  ]
2835
2986
  }
2836
2987
  );
2837
2988
  }
2838
2989
  );
2839
- Link2.displayName = "Link";
2990
+ Link.displayName = "Link";
2840
2991
 
2841
2992
  // src/components/container/Container.tsx
2842
- var React34 = __toESM(require("react"), 1);
2843
- var import_react_slot3 = require("@radix-ui/react-slot");
2993
+ var React35 = __toESM(require("react"), 1);
2994
+ var import_merge_props2 = require("@base-ui/react/merge-props");
2995
+ var import_use_render2 = require("@base-ui/react/use-render");
2844
2996
  var import_class_variance_authority16 = require("class-variance-authority");
2845
- var import_jsx_runtime37 = require("react/jsx-runtime");
2846
2997
  var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-auto", {
2847
2998
  variants: {
2848
2999
  size: {
@@ -2864,27 +3015,29 @@ var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-au
2864
3015
  padding: "md"
2865
3016
  }
2866
3017
  });
2867
- var Container = React34.forwardRef(
3018
+ var Container = React35.forwardRef(
2868
3019
  ({ className, size, padding, asChild = false, children, ...props }, ref) => {
2869
- const Component = asChild ? import_react_slot3.Slot : "div";
2870
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2871
- Component,
2872
- {
2873
- ref,
2874
- className: cn(containerVariants({ size, padding }), className),
2875
- ...props,
2876
- children
2877
- }
2878
- );
3020
+ return (0, import_use_render2.useRender)({
3021
+ ref,
3022
+ defaultTagName: "div",
3023
+ render: asChild ? children : void 0,
3024
+ props: (0, import_merge_props2.mergeProps)(
3025
+ {
3026
+ className: cn(containerVariants({ size, padding }), className),
3027
+ children: asChild ? void 0 : children
3028
+ },
3029
+ props
3030
+ )
3031
+ });
2879
3032
  }
2880
3033
  );
2881
3034
  Container.displayName = "Container";
2882
3035
 
2883
3036
  // src/components/grid/Grid.tsx
2884
- var React35 = __toESM(require("react"), 1);
3037
+ var React36 = __toESM(require("react"), 1);
2885
3038
  var import_class_variance_authority17 = require("class-variance-authority");
2886
- var import_react_slot4 = require("@radix-ui/react-slot");
2887
- var import_jsx_runtime38 = require("react/jsx-runtime");
3039
+ var import_merge_props3 = require("@base-ui/react/merge-props");
3040
+ var import_use_render3 = require("@base-ui/react/use-render");
2888
3041
  var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
2889
3042
  variants: {
2890
3043
  align: {
@@ -2907,35 +3060,37 @@ var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
2907
3060
  justify: "start"
2908
3061
  }
2909
3062
  });
2910
- var Grid = React35.forwardRef(
3063
+ var Grid = React36.forwardRef(
2911
3064
  ({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
2912
- const Component = asChild ? import_react_slot4.Slot : "div";
2913
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2914
- Component,
2915
- {
2916
- ref,
2917
- className: cn(
2918
- gridVariants({ align, justify }),
2919
- cols !== void 0 && `grid-cols-${cols}`,
2920
- rows !== void 0 && `grid-rows-${rows}`,
2921
- gap !== void 0 && `gap-${gap}`,
2922
- gapX !== void 0 && `gap-x-${gapX}`,
2923
- gapY !== void 0 && `gap-y-${gapY}`,
2924
- className
2925
- ),
2926
- ...props,
2927
- children
2928
- }
2929
- );
3065
+ return (0, import_use_render3.useRender)({
3066
+ ref,
3067
+ defaultTagName: "div",
3068
+ render: asChild ? children : void 0,
3069
+ props: (0, import_merge_props3.mergeProps)(
3070
+ {
3071
+ className: cn(
3072
+ gridVariants({ align, justify }),
3073
+ cols !== void 0 && `grid-cols-${cols}`,
3074
+ rows !== void 0 && `grid-rows-${rows}`,
3075
+ gap !== void 0 && `gap-${gap}`,
3076
+ gapX !== void 0 && `gap-x-${gapX}`,
3077
+ gapY !== void 0 && `gap-y-${gapY}`,
3078
+ className
3079
+ ),
3080
+ children: asChild ? void 0 : children
3081
+ },
3082
+ props
3083
+ )
3084
+ });
2930
3085
  }
2931
3086
  );
2932
3087
  Grid.displayName = "Grid";
2933
3088
 
2934
3089
  // src/components/box/Box.tsx
2935
- var React36 = __toESM(require("react"), 1);
3090
+ var React37 = __toESM(require("react"), 1);
2936
3091
  var import_class_variance_authority18 = require("class-variance-authority");
2937
- var import_react_slot5 = require("@radix-ui/react-slot");
2938
- var import_jsx_runtime39 = require("react/jsx-runtime");
3092
+ var import_merge_props4 = require("@base-ui/react/merge-props");
3093
+ var import_use_render4 = require("@base-ui/react/use-render");
2939
3094
  var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
2940
3095
  variants: {
2941
3096
  direction: {
@@ -2972,37 +3127,39 @@ var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
2972
3127
  wrap: "nowrap"
2973
3128
  }
2974
3129
  });
2975
- var Box = React36.forwardRef(
3130
+ var Box = React37.forwardRef(
2976
3131
  ({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
2977
- const Component = asChild ? import_react_slot5.Slot : "div";
2978
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2979
- Component,
2980
- {
2981
- ref,
2982
- className: cn(
2983
- boxVariants({ direction, align, justify, wrap }),
2984
- gap !== void 0 && `gap-${gap}`,
2985
- className
2986
- ),
2987
- ...props,
2988
- children
2989
- }
2990
- );
3132
+ return (0, import_use_render4.useRender)({
3133
+ ref,
3134
+ defaultTagName: "div",
3135
+ render: asChild ? children : void 0,
3136
+ props: (0, import_merge_props4.mergeProps)(
3137
+ {
3138
+ className: cn(
3139
+ boxVariants({ direction, align, justify, wrap }),
3140
+ gap !== void 0 && `gap-${gap}`,
3141
+ className
3142
+ ),
3143
+ children: asChild ? void 0 : children
3144
+ },
3145
+ props
3146
+ )
3147
+ });
2991
3148
  }
2992
3149
  );
2993
3150
  Box.displayName = "Box";
2994
3151
 
2995
3152
  // src/components/berget-logo/BergetLogo.tsx
2996
- var React37 = __toESM(require("react"), 1);
2997
- var import_jsx_runtime40 = require("react/jsx-runtime");
2998
- var BergetLogo = React37.forwardRef(
3153
+ var React38 = __toESM(require("react"), 1);
3154
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3155
+ var BergetLogo = React38.forwardRef(
2999
3156
  ({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
3000
3157
  const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
3001
3158
  if (variant === "symbol") {
3002
3159
  const aspectRatio2 = 463 / 419;
3003
3160
  const width2 = size * aspectRatio2;
3004
3161
  const height2 = size;
3005
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3162
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3006
3163
  "svg",
3007
3164
  {
3008
3165
  ref,
@@ -3015,7 +3172,7 @@ var BergetLogo = React37.forwardRef(
3015
3172
  "aria-label": "Berget symbol",
3016
3173
  className: cn("inline-block", className),
3017
3174
  ...props,
3018
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3175
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3019
3176
  "path",
3020
3177
  {
3021
3178
  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",
@@ -3028,7 +3185,7 @@ var BergetLogo = React37.forwardRef(
3028
3185
  const aspectRatio = 793.63 / 204.37;
3029
3186
  const width = size * aspectRatio;
3030
3187
  const height = size;
3031
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3188
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3032
3189
  "svg",
3033
3190
  {
3034
3191
  ref,
@@ -3042,59 +3199,59 @@ var BergetLogo = React37.forwardRef(
3042
3199
  className: cn("inline-block", className),
3043
3200
  ...props,
3044
3201
  children: [
3045
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("g", { style: { fill: fillColor }, children: [
3046
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3202
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("g", { style: { fill: fillColor }, children: [
3203
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3047
3204
  "path",
3048
3205
  {
3049
3206
  className: "berget-logotype-fill",
3050
3207
  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"
3051
3208
  }
3052
3209
  ),
3053
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3210
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3054
3211
  "path",
3055
3212
  {
3056
3213
  className: "berget-logotype-fill",
3057
3214
  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"
3058
3215
  }
3059
3216
  ),
3060
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3217
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3061
3218
  "path",
3062
3219
  {
3063
3220
  className: "berget-logotype-fill",
3064
3221
  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"
3065
3222
  }
3066
3223
  ),
3067
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3224
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3068
3225
  "path",
3069
3226
  {
3070
3227
  className: "berget-logotype-fill",
3071
3228
  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"
3072
3229
  }
3073
3230
  ),
3074
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3231
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3075
3232
  "path",
3076
3233
  {
3077
3234
  className: "berget-logotype-fill",
3078
3235
  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"
3079
3236
  }
3080
3237
  ),
3081
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3238
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3082
3239
  "path",
3083
3240
  {
3084
3241
  className: "berget-logotype-fill",
3085
3242
  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"
3086
3243
  }
3087
3244
  ),
3088
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3245
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3089
3246
  "path",
3090
3247
  {
3091
3248
  className: "berget-logotype-fill",
3092
3249
  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"
3093
3250
  }
3094
3251
  ),
3095
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
3252
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
3096
3253
  ] }),
3097
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3254
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3098
3255
  "path",
3099
3256
  {
3100
3257
  style: { fill: fillColor },
@@ -3109,102 +3266,109 @@ var BergetLogo = React37.forwardRef(
3109
3266
  BergetLogo.displayName = "BergetLogo";
3110
3267
 
3111
3268
  // src/components/language-select/LanguageSelect.tsx
3112
- var React38 = __toESM(require("react"), 1);
3113
- var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
3269
+ var React39 = __toESM(require("react"), 1);
3270
+ var import_select3 = require("@base-ui/react/select");
3114
3271
  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)(
3119
- SelectPrimitive2.Trigger,
3272
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3273
+ var LanguageSelect = React39.forwardRef(
3274
+ ({ className, options, value, onValueChange }, ref) => {
3275
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3276
+ import_select3.Select.Root,
3120
3277
  {
3121
- ref,
3122
- "aria-label": "Select language",
3123
- className: cn(
3124
- // Base styles
3125
- "h-8 w-8 p-0 rounded-full",
3126
- "flex items-center justify-center",
3127
- // Border and background
3128
- "border border-berget-border-subtle",
3129
- "bg-transparent",
3130
- // Hover effect
3131
- "hover:bg-berget-surface-hover",
3132
- // Transitions
3133
- "transition-all duration-200",
3134
- // Focus styles - remove all focus rings
3135
- "focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",
3136
- // Disabled state
3137
- "disabled:cursor-not-allowed disabled:opacity-50",
3138
- className
3139
- ),
3278
+ value,
3279
+ onValueChange: onValueChange ? (v) => onValueChange(v ?? "") : void 0,
3140
3280
  children: [
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 })
3281
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3282
+ import_select3.Select.Trigger,
3283
+ {
3284
+ ref,
3285
+ "aria-label": "Select language",
3286
+ className: cn(
3287
+ // Base styles
3288
+ "h-8 w-8 p-0 rounded-full",
3289
+ "flex items-center justify-center",
3290
+ // Border and background
3291
+ "border border-berget-border-subtle",
3292
+ "bg-transparent",
3293
+ // Hover effect
3294
+ "hover:bg-berget-surface-hover",
3295
+ // Transitions
3296
+ "transition-all duration-200",
3297
+ // Focus styles - remove all focus rings
3298
+ "focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",
3299
+ // Disabled state
3300
+ "disabled:cursor-not-allowed disabled:opacity-50",
3301
+ className
3302
+ ),
3303
+ children: [
3304
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "Select language" }),
3305
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { icon: import_lucide_react11.Globe, size: 16, "aria-hidden": true })
3306
+ ]
3307
+ }
3308
+ ),
3309
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_select3.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_select3.Select.Positioner, { alignItemWithTrigger: false, className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3310
+ import_select3.Select.Popup,
3311
+ {
3312
+ className: cn(
3313
+ // Positioning and z-index
3314
+ "z-50 min-w-[8rem]",
3315
+ // Overflow handling
3316
+ "overflow-y-auto overflow-x-hidden",
3317
+ // Border and background
3318
+ "border border-berget-border bg-berget-background",
3319
+ "text-berget-foreground",
3320
+ // Shadow
3321
+ "shadow-berget-lg",
3322
+ // Rounded corners
3323
+ "rounded-md",
3324
+ // Animations
3325
+ "transition-[opacity,transform]",
3326
+ "data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95",
3327
+ // Position-based animations
3328
+ "data-[side=bottom]:slide-in-from-top-2",
3329
+ "data-[side=left]:slide-in-from-right-2",
3330
+ "data-[side=right]:slide-in-from-left-2",
3331
+ "data-[side=top]:slide-in-from-bottom-2",
3332
+ // Origin for transforms
3333
+ "origin-[--transform-origin]"
3334
+ ),
3335
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_select3.Select.List, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3336
+ import_select3.Select.Item,
3337
+ {
3338
+ value: option.value,
3339
+ disabled: option.disabled,
3340
+ className: cn(
3341
+ // Layout
3342
+ "relative flex w-full cursor-default",
3343
+ "select-none items-center rounded-sm py-2 px-3",
3344
+ // Text
3345
+ "text-sm outline-none",
3346
+ // Focus/hover styles
3347
+ "focus:bg-berget-primary-tint focus:text-berget-foreground",
3348
+ "hover:bg-berget-primary-tint",
3349
+ // Disabled state
3350
+ "data-disabled:pointer-events-none data-disabled:opacity-50"
3351
+ ),
3352
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_select3.Select.ItemText, { children: option.label })
3353
+ },
3354
+ option.value
3355
+ )) })
3356
+ }
3357
+ ) }) })
3143
3358
  ]
3144
3359
  }
3145
- ),
3146
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3147
- SelectPrimitive2.Content,
3148
- {
3149
- className: cn(
3150
- // Positioning and z-index
3151
- "relative z-50 min-w-[8rem]",
3152
- // Overflow handling
3153
- "overflow-y-auto overflow-x-hidden",
3154
- // Border and background
3155
- "border border-berget-border bg-berget-background",
3156
- "text-berget-foreground",
3157
- // Shadow
3158
- "shadow-berget-lg",
3159
- // Rounded corners
3160
- "rounded-md",
3161
- // Animations
3162
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
3163
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
3164
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
3165
- // Position-based animations
3166
- "data-[side=bottom]:slide-in-from-top-2",
3167
- "data-[side=left]:slide-in-from-right-2",
3168
- "data-[side=right]:slide-in-from-left-2",
3169
- "data-[side=top]:slide-in-from-bottom-2",
3170
- // Origin for transforms
3171
- "origin-[--radix-select-content-transform-origin]"
3172
- ),
3173
- position: "popper",
3174
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3175
- SelectPrimitive2.Item,
3176
- {
3177
- value: option.value,
3178
- disabled: option.disabled,
3179
- className: cn(
3180
- // Layout
3181
- "relative flex w-full cursor-default",
3182
- "select-none items-center rounded-sm py-2 px-3",
3183
- // Text
3184
- "text-sm outline-none",
3185
- // Focus/hover styles
3186
- "focus:bg-berget-primary-tint focus:text-berget-foreground",
3187
- "hover:bg-berget-primary-tint",
3188
- // Disabled state
3189
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
3190
- ),
3191
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive2.ItemText, { children: option.label })
3192
- },
3193
- option.value
3194
- )) })
3195
- }
3196
- ) })
3197
- ] });
3198
- });
3360
+ );
3361
+ }
3362
+ );
3199
3363
  LanguageSelect.displayName = "LanguageSelect";
3200
3364
 
3201
3365
  // src/components/list/List.tsx
3202
- var React40 = __toESM(require("react"), 1);
3366
+ var React41 = __toESM(require("react"), 1);
3203
3367
 
3204
3368
  // src/components/divider/Divider.tsx
3205
- var React39 = __toESM(require("react"), 1);
3369
+ var React40 = __toESM(require("react"), 1);
3206
3370
  var import_class_variance_authority19 = require("class-variance-authority");
3207
- var import_jsx_runtime42 = require("react/jsx-runtime");
3371
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3208
3372
  var dividerVariants = (0, import_class_variance_authority19.cva)("", {
3209
3373
  variants: {
3210
3374
  variant: {
@@ -3225,7 +3389,7 @@ var dividerVariants = (0, import_class_variance_authority19.cva)("", {
3225
3389
  size: "thin"
3226
3390
  }
3227
3391
  });
3228
- var Divider = React39.forwardRef(
3392
+ var Divider = React40.forwardRef(
3229
3393
  ({
3230
3394
  className,
3231
3395
  orientation = "horizontal",
@@ -3236,17 +3400,17 @@ var Divider = React39.forwardRef(
3236
3400
  ...props
3237
3401
  }, ref) => {
3238
3402
  if (label) {
3239
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
3240
- labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3241
- Separator2,
3403
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
3404
+ labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3405
+ Separator,
3242
3406
  {
3243
3407
  orientation: "horizontal",
3244
3408
  className: cn(dividerVariants({ variant, size }), "flex-1")
3245
3409
  }
3246
3410
  ),
3247
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
3248
- labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3249
- Separator2,
3411
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
3412
+ labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3413
+ Separator,
3250
3414
  {
3251
3415
  orientation: "horizontal",
3252
3416
  className: cn(dividerVariants({ variant, size }), "flex-1")
@@ -3254,8 +3418,8 @@ var Divider = React39.forwardRef(
3254
3418
  )
3255
3419
  ] });
3256
3420
  }
3257
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3258
- Separator2,
3421
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3422
+ Separator,
3259
3423
  {
3260
3424
  ref,
3261
3425
  orientation,
@@ -3272,19 +3436,19 @@ Divider.displayName = "Divider";
3272
3436
 
3273
3437
  // src/components/list/List.tsx
3274
3438
  var import_lucide_react12 = require("lucide-react");
3275
- var import_jsx_runtime43 = require("react/jsx-runtime");
3276
- var List2 = React40.forwardRef(
3439
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3440
+ var List = React41.forwardRef(
3277
3441
  ({ className, children, ...props }, ref) => {
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: [
3442
+ const childrenArray = React41.Children.toArray(children);
3443
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(React41.Fragment, { children: [
3280
3444
  child,
3281
- index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Divider, { variant: "subtle" })
3445
+ index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Divider, { variant: "subtle" })
3282
3446
  ] }, index)) });
3283
3447
  }
3284
3448
  );
3285
- List2.displayName = "List";
3286
- var ListItem = React40.forwardRef(
3287
- ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3449
+ List.displayName = "List";
3450
+ var ListItem = React41.forwardRef(
3451
+ ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3288
3452
  "div",
3289
3453
  {
3290
3454
  ref,
@@ -3295,15 +3459,15 @@ var ListItem = React40.forwardRef(
3295
3459
  ),
3296
3460
  ...props,
3297
3461
  children: [
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 })
3462
+ icon && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
3463
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex-1 min-w-0", children })
3300
3464
  ]
3301
3465
  }
3302
3466
  )
3303
3467
  );
3304
3468
  ListItem.displayName = "ListItem";
3305
- var ListHeader = React40.forwardRef(
3306
- ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3469
+ var ListHeader = React41.forwardRef(
3470
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3307
3471
  "div",
3308
3472
  {
3309
3473
  ref,
@@ -3314,20 +3478,20 @@ var ListHeader = React40.forwardRef(
3314
3478
  )
3315
3479
  );
3316
3480
  ListHeader.displayName = "ListHeader";
3317
- var FeatureList = React40.forwardRef(
3481
+ var FeatureList = React41.forwardRef(
3318
3482
  ({ items, variant = "bullet", className, ...props }, ref) => {
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 })
3483
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
3484
+ variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: import_lucide_react12.Check, size: 24, className: "text-berget-logo-light" }) }),
3485
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, { variant: "body", color: "muted", children: item })
3322
3486
  ] }, index)) });
3323
3487
  }
3324
3488
  );
3325
3489
  FeatureList.displayName = "FeatureList";
3326
3490
 
3327
3491
  // src/components/hero-block/HeroBlock.tsx
3328
- var React41 = __toESM(require("react"), 1);
3492
+ var React42 = __toESM(require("react"), 1);
3329
3493
  var import_class_variance_authority20 = require("class-variance-authority");
3330
- var import_jsx_runtime44 = require("react/jsx-runtime");
3494
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3331
3495
  var heroBlockVariants = (0, import_class_variance_authority20.cva)(
3332
3496
  "relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
3333
3497
  {
@@ -3348,7 +3512,7 @@ var heroBlockVariants = (0, import_class_variance_authority20.cva)(
3348
3512
  }
3349
3513
  }
3350
3514
  );
3351
- var HeroBlock = React41.forwardRef(
3515
+ var HeroBlock = React42.forwardRef(
3352
3516
  ({
3353
3517
  className,
3354
3518
  variant,
@@ -3360,26 +3524,26 @@ var HeroBlock = React41.forwardRef(
3360
3524
  actions,
3361
3525
  ...props
3362
3526
  }, ref) => {
3363
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3527
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3364
3528
  "div",
3365
3529
  {
3366
3530
  ref,
3367
3531
  className: cn(heroBlockVariants({ variant, withPattern }), className),
3368
3532
  ...props,
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)(
3533
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
3534
+ tagline && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3371
3535
  Badge,
3372
3536
  {
3373
3537
  variant: "default",
3374
- icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
3538
+ icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon: TaglineIcon, size: 16 }) : void 0,
3375
3539
  iconGap: 2,
3376
3540
  className: "mb-fluid-md",
3377
3541
  children: tagline
3378
3542
  }
3379
3543
  ),
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 })
3544
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
3545
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
3546
+ actions && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
3383
3547
  ] }) })
3384
3548
  }
3385
3549
  );
@@ -3430,7 +3594,7 @@ function getHighlighter() {
3430
3594
  }
3431
3595
 
3432
3596
  // src/components/code-block/CodeBlock.tsx
3433
- var import_jsx_runtime45 = require("react/jsx-runtime");
3597
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3434
3598
  function CodeBlock({ code, language = "text", title, className }) {
3435
3599
  const [html, setHtml] = (0, import_react2.useState)(null);
3436
3600
  const [copied, setCopied] = (0, import_react2.useState)(false);
@@ -3446,16 +3610,16 @@ function CodeBlock({ code, language = "text", title, className }) {
3446
3610
  setCopied(true);
3447
3611
  setTimeout(() => setCopied(false), 2e3);
3448
3612
  }, [code]);
3449
- const copyButton = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3613
+ const copyButton = /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3450
3614
  "button",
3451
3615
  {
3452
3616
  onClick: handleCopy,
3453
3617
  className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
3454
3618
  "aria-label": "Copy code",
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" })
3619
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react13.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react13.Copy, { className: "w-3.5 h-3.5" })
3456
3620
  }
3457
3621
  );
3458
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
3622
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3459
3623
  "div",
3460
3624
  {
3461
3625
  className: cn(
@@ -3463,25 +3627,25 @@ function CodeBlock({ code, language = "text", title, className }) {
3463
3627
  className
3464
3628
  ),
3465
3629
  children: [
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)(
3630
+ title && /* @__PURE__ */ (0, import_jsx_runtime42.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_runtime42.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
3631
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
3632
+ html ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3469
3633
  "div",
3470
3634
  {
3471
3635
  className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
3472
3636
  dangerouslySetInnerHTML: { __html: html }
3473
3637
  }
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 }) })
3638
+ ) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("code", { children: code }) })
3475
3639
  ]
3476
3640
  }
3477
3641
  );
3478
3642
  }
3479
3643
 
3480
3644
  // src/components/window-frame/WindowFrame.tsx
3481
- var React42 = __toESM(require("react"), 1);
3645
+ var React43 = __toESM(require("react"), 1);
3482
3646
  var import_react3 = require("react");
3483
- var import_jsx_runtime46 = require("react/jsx-runtime");
3484
- var WindowFrame = React42.forwardRef(
3647
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3648
+ var WindowFrame = React43.forwardRef(
3485
3649
  ({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
3486
3650
  const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
3487
3651
  const currentTab = activeTab ?? internalActive;
@@ -3492,7 +3656,7 @@ var WindowFrame = React42.forwardRef(
3492
3656
  setInternalActive(id);
3493
3657
  }
3494
3658
  };
3495
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
3659
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3496
3660
  "div",
3497
3661
  {
3498
3662
  ref,
@@ -3502,13 +3666,13 @@ var WindowFrame = React42.forwardRef(
3502
3666
  ),
3503
3667
  ...props,
3504
3668
  children: [
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]" })
3669
+ /* @__PURE__ */ (0, import_jsx_runtime43.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: [
3670
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
3671
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
3672
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
3673
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
3510
3674
  ] }),
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)(
3675
+ tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3512
3676
  "button",
3513
3677
  {
3514
3678
  type: "button",
@@ -3520,9 +3684,9 @@ var WindowFrame = React42.forwardRef(
3520
3684
  children: tab.label
3521
3685
  },
3522
3686
  tab.id
3523
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
3687
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
3524
3688
  ] }),
3525
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { children })
3689
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children })
3526
3690
  ]
3527
3691
  }
3528
3692
  );