@bergetai/ui 0.2.6 → 0.3.1

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.js CHANGED
@@ -85,9 +85,10 @@ function useTheme() {
85
85
  }
86
86
 
87
87
  // src/components/theme-provider/ThemeToggle.tsx
88
- import * as React2 from "react";
88
+ import * as React3 from "react";
89
89
 
90
90
  // src/lib/utils.ts
91
+ import * as React2 from "react";
91
92
  import { clsx } from "clsx";
92
93
  import { extendTailwindMerge } from "tailwind-merge";
93
94
  var twMerge = extendTailwindMerge({
@@ -108,13 +109,17 @@ var twMerge = extendTailwindMerge({
108
109
  function cn(...inputs) {
109
110
  return twMerge(clsx(inputs));
110
111
  }
112
+ function asChildRender(asChild, children) {
113
+ if (!asChild) return void 0;
114
+ return React2.Children.only(children);
115
+ }
111
116
 
112
117
  // src/components/theme-provider/ThemeToggle.tsx
113
118
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
114
- var ThemeToggle = React2.forwardRef(
119
+ var ThemeToggle = React3.forwardRef(
115
120
  ({ className, label = "Toggle theme", size = "md", ...props }, ref) => {
116
121
  const { theme, resolvedTheme, setTheme } = useTheme();
117
- const toggle = React2.useCallback(() => {
122
+ const toggle = React3.useCallback(() => {
118
123
  setTheme(theme === "dark" ? "light" : "dark");
119
124
  }, [theme, setTheme]);
120
125
  return /* @__PURE__ */ jsxs(
@@ -197,9 +202,9 @@ var ThemeToggle = React2.forwardRef(
197
202
  ThemeToggle.displayName = "ThemeToggle";
198
203
 
199
204
  // src/primitives/button.tsx
200
- import * as React3 from "react";
205
+ import * as React4 from "react";
201
206
  import { cva } from "class-variance-authority";
202
- import { Slot } from "@radix-ui/react-slot";
207
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
203
208
  import { jsx as jsx3 } from "react/jsx-runtime";
204
209
  var buttonVariants = cva(
205
210
  "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",
@@ -230,10 +235,19 @@ var buttonVariants = cva(
230
235
  }
231
236
  }
232
237
  );
233
- var Button = React3.forwardRef(
234
- ({ className, variant, size, asChild = false, ...props }, ref) => {
235
- const Comp = asChild ? Slot : "button";
236
- return /* @__PURE__ */ jsx3(Comp, { className: cn(buttonVariants({ variant, size }), className), ref, ...props });
238
+ var Button = React4.forwardRef(
239
+ ({ className, variant, size, asChild = false, children, ...props }, ref) => {
240
+ const Comp = ButtonPrimitive;
241
+ return /* @__PURE__ */ jsx3(
242
+ Comp,
243
+ {
244
+ ref,
245
+ className: cn(buttonVariants({ variant, size }), className),
246
+ render: asChild ? children : void 0,
247
+ ...props,
248
+ children: asChild ? void 0 : children
249
+ }
250
+ );
237
251
  }
238
252
  );
239
253
  Button.displayName = "Button";
@@ -293,7 +307,7 @@ function Button2({
293
307
  }
294
308
 
295
309
  // src/components/typography/Typography.tsx
296
- import * as React4 from "react";
310
+ import * as React5 from "react";
297
311
  import { cva as cva2 } from "class-variance-authority";
298
312
  import { jsx as jsx5 } from "react/jsx-runtime";
299
313
  var typographyVariants = cva2("", {
@@ -340,7 +354,7 @@ var defaultElementMap = {
340
354
  mono: "p",
341
355
  code: "span"
342
356
  };
343
- var Typography = React4.forwardRef(
357
+ var Typography = React5.forwardRef(
344
358
  ({ className, variant = "body", color = "default", as, children, ...props }, ref) => {
345
359
  const Component = as ?? defaultElementMap[variant ?? "body"] ?? "p";
346
360
  return /* @__PURE__ */ jsx5(
@@ -357,13 +371,13 @@ var Typography = React4.forwardRef(
357
371
  Typography.displayName = "Typography";
358
372
 
359
373
  // src/components/card/Card.tsx
360
- import * as React6 from "react";
374
+ import * as React7 from "react";
361
375
  import { cva as cva3 } from "class-variance-authority";
362
376
 
363
377
  // src/primitives/card.tsx
364
- import * as React5 from "react";
378
+ import * as React6 from "react";
365
379
  import { jsx as jsx6 } from "react/jsx-runtime";
366
- var Card = React5.forwardRef(
380
+ var Card = React6.forwardRef(
367
381
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
368
382
  "div",
369
383
  {
@@ -374,23 +388,23 @@ var Card = React5.forwardRef(
374
388
  )
375
389
  );
376
390
  Card.displayName = "Card";
377
- var CardHeader = React5.forwardRef(
391
+ var CardHeader = React6.forwardRef(
378
392
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
379
393
  );
380
394
  CardHeader.displayName = "CardHeader";
381
- var CardTitle = React5.forwardRef(
395
+ var CardTitle = React6.forwardRef(
382
396
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6("h2", { ref, className: cn("text-2xl leading-none tracking-tight", className), ...props })
383
397
  );
384
398
  CardTitle.displayName = "CardTitle";
385
- var CardDescription = React5.forwardRef(
399
+ var CardDescription = React6.forwardRef(
386
400
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
387
401
  );
388
402
  CardDescription.displayName = "CardDescription";
389
- var CardContent = React5.forwardRef(
403
+ var CardContent = React6.forwardRef(
390
404
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("p-6 pt-0", className), ...props })
391
405
  );
392
406
  CardContent.displayName = "CardContent";
393
- var CardFooter = React5.forwardRef(
407
+ var CardFooter = React6.forwardRef(
394
408
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
395
409
  );
396
410
  CardFooter.displayName = "CardFooter";
@@ -415,7 +429,7 @@ var cardVariants = cva3("rounded-berget-sm", {
415
429
  padding: "md"
416
430
  }
417
431
  });
418
- var Card2 = React6.forwardRef(
432
+ var Card2 = React7.forwardRef(
419
433
  ({ className, variant, padding, children, ...props }, ref) => {
420
434
  return /* @__PURE__ */ jsx7(
421
435
  Card,
@@ -431,7 +445,7 @@ var Card2 = React6.forwardRef(
431
445
  Card2.displayName = "Card";
432
446
 
433
447
  // src/components/badge/Badge.tsx
434
- import * as React7 from "react";
448
+ import * as React8 from "react";
435
449
  import { cva as cva4 } from "class-variance-authority";
436
450
  import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
437
451
  var badgeVariants = cva4(
@@ -466,7 +480,7 @@ var badgeVariants = cva4(
466
480
  }
467
481
  }
468
482
  );
469
- var Badge = React7.forwardRef(
483
+ var Badge = React8.forwardRef(
470
484
  ({ className, variant, status, size, icon, iconGap = 2, children, ...props }, ref) => {
471
485
  return /* @__PURE__ */ jsxs2("div", { className: cn(badgeVariants({ variant, status, size }), className), ref, ...props, children: [
472
486
  icon && /* @__PURE__ */ jsx8("div", { style: { marginRight: children ? `${iconGap * 0.25}rem` : "0" }, children: icon }),
@@ -477,11 +491,11 @@ var Badge = React7.forwardRef(
477
491
  Badge.displayName = "Badge";
478
492
 
479
493
  // src/components/alert/Alert.tsx
480
- import * as React9 from "react";
494
+ import * as React10 from "react";
481
495
  import { cva as cva6 } from "class-variance-authority";
482
496
 
483
497
  // src/primitives/alert.tsx
484
- import * as React8 from "react";
498
+ import * as React9 from "react";
485
499
  import { cva as cva5 } from "class-variance-authority";
486
500
  import { jsx as jsx9 } from "react/jsx-runtime";
487
501
  var alertVariants = cva5(
@@ -498,13 +512,13 @@ var alertVariants = cva5(
498
512
  }
499
513
  }
500
514
  );
501
- var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
515
+ var Alert = React9.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
502
516
  Alert.displayName = "Alert";
503
- var AlertTitle = React8.forwardRef(
517
+ var AlertTitle = React9.forwardRef(
504
518
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx9("h5", { ref, className: cn("mb-1 leading-none tracking-tight", className), ...props })
505
519
  );
506
520
  AlertTitle.displayName = "AlertTitle";
507
- var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
521
+ var AlertDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
508
522
  AlertDescription.displayName = "AlertDescription";
509
523
 
510
524
  // src/components/alert/Alert.tsx
@@ -523,46 +537,49 @@ var alertVariants2 = cva6("", {
523
537
  variant: "default"
524
538
  }
525
539
  });
526
- var Alert2 = React9.forwardRef(
540
+ var Alert2 = React10.forwardRef(
527
541
  ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx10(Alert, { ref, className: cn(alertVariants2({ variant }), className), ...props })
528
542
  );
529
543
  Alert2.displayName = "Alert";
530
544
 
531
545
  // src/components/dialog/Dialog.tsx
532
- import * as React10 from "react";
533
- import * as DialogPrimitive from "@radix-ui/react-dialog";
546
+ import * as React11 from "react";
547
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
534
548
  import { X } from "lucide-react";
535
549
  import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
536
550
  var Dialog = DialogPrimitive.Root;
537
- var DialogTrigger = DialogPrimitive.Trigger;
551
+ var DialogTrigger = React11.forwardRef(
552
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
553
+ );
554
+ DialogTrigger.displayName = "DialogTrigger";
538
555
  var DialogPortal = DialogPrimitive.Portal;
539
556
  var DialogClose = DialogPrimitive.Close;
540
- var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
541
- DialogPrimitive.Overlay,
557
+ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
558
+ DialogPrimitive.Backdrop,
542
559
  {
543
560
  ref,
544
561
  className: cn(
545
- "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",
562
+ "fixed inset-0 z-50 bg-berget-dialog-overlay-bg transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
546
563
  className
547
564
  ),
548
565
  ...props
549
566
  }
550
567
  ));
551
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
552
- var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
568
+ DialogOverlay.displayName = "DialogOverlay";
569
+ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
553
570
  /* @__PURE__ */ jsx11(DialogOverlay, {}),
554
571
  /* @__PURE__ */ jsxs3(
555
- DialogPrimitive.Content,
572
+ DialogPrimitive.Popup,
556
573
  {
557
574
  ref,
558
575
  className: cn(
559
- "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%]",
576
+ "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",
560
577
  className
561
578
  ),
562
579
  ...props,
563
580
  children: [
564
581
  children,
565
- /* @__PURE__ */ jsxs3(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: [
582
+ /* @__PURE__ */ jsxs3(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-open:bg-berget-muted data-open:text-berget-muted-foreground", children: [
566
583
  /* @__PURE__ */ jsx11(X, { className: "size-4" }),
567
584
  /* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
568
585
  ] })
@@ -570,7 +587,7 @@ var DialogContent = React10.forwardRef(({ className, children, ...props }, ref)
570
587
  }
571
588
  )
572
589
  ] }));
573
- DialogContent.displayName = DialogPrimitive.Content.displayName;
590
+ DialogContent.displayName = "DialogContent";
574
591
  var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx11("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
575
592
  DialogHeader.displayName = "DialogHeader";
576
593
  var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx11(
@@ -581,45 +598,64 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx11(
581
598
  }
582
599
  );
583
600
  DialogFooter.displayName = "DialogFooter";
584
- var DialogTitle = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
585
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
586
- var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "small", color: "muted", className, children }) }));
587
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
601
+ var DialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(
602
+ DialogPrimitive.Title,
603
+ {
604
+ ref,
605
+ render: /* @__PURE__ */ jsx11(Typography, { variant: "h5", color: "default", as: "h2", className }),
606
+ ...props,
607
+ children
608
+ }
609
+ ));
610
+ DialogTitle.displayName = "DialogTitle";
611
+ var DialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(
612
+ DialogPrimitive.Description,
613
+ {
614
+ ref,
615
+ render: /* @__PURE__ */ jsx11(Typography, { variant: "small", color: "muted", className }),
616
+ ...props,
617
+ children
618
+ }
619
+ ));
620
+ DialogDescription.displayName = "DialogDescription";
588
621
 
589
622
  // src/components/alert-dialog/AlertDialog.tsx
590
- import * as React11 from "react";
591
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
623
+ import * as React12 from "react";
624
+ import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
592
625
  import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
593
626
  var AlertDialog = AlertDialogPrimitive.Root;
594
- var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
627
+ var AlertDialogTrigger = React12.forwardRef(
628
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
629
+ );
630
+ AlertDialogTrigger.displayName = "AlertDialogTrigger";
595
631
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
596
- var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
597
- AlertDialogPrimitive.Overlay,
632
+ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
633
+ AlertDialogPrimitive.Backdrop,
598
634
  {
599
635
  ref,
600
636
  className: cn(
601
- "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",
637
+ "fixed inset-0 z-50 bg-berget-dialog-overlay-bg transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
602
638
  className
603
639
  ),
604
640
  ...props
605
641
  }
606
642
  ));
607
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
608
- var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(AlertDialogPortal, { children: [
643
+ AlertDialogOverlay.displayName = "AlertDialogOverlay";
644
+ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(AlertDialogPortal, { children: [
609
645
  /* @__PURE__ */ jsx12(AlertDialogOverlay, {}),
610
646
  /* @__PURE__ */ jsx12(
611
- AlertDialogPrimitive.Content,
647
+ AlertDialogPrimitive.Popup,
612
648
  {
613
649
  ref,
614
650
  className: cn(
615
- "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%]",
651
+ "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",
616
652
  className
617
653
  ),
618
654
  ...props
619
655
  }
620
656
  )
621
657
  ] }));
622
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
658
+ AlertDialogContent.displayName = "AlertDialogContent";
623
659
  var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx12("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
624
660
  AlertDialogHeader.displayName = "AlertDialogHeader";
625
661
  var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
@@ -630,116 +666,181 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
630
666
  }
631
667
  );
632
668
  AlertDialogFooter.displayName = "AlertDialogFooter";
633
- var AlertDialogTitle = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx12(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
634
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
635
- var AlertDialogDescription = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx12(Typography, { variant: "small", color: "muted", className, children }) }));
636
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
637
- var AlertDialogAction = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Action, { ref, className: cn(className), ...props }));
638
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
639
- var AlertDialogCancel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(AlertDialogPrimitive.Cancel, { ref, className: cn("mt-2 sm:mt-0", className), ...props }));
640
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
669
+ var AlertDialogTitle = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(
670
+ AlertDialogPrimitive.Title,
671
+ {
672
+ ref,
673
+ render: /* @__PURE__ */ jsx12(Typography, { variant: "h5", color: "default", as: "h2", className }),
674
+ ...props,
675
+ children
676
+ }
677
+ ));
678
+ AlertDialogTitle.displayName = "AlertDialogTitle";
679
+ var AlertDialogDescription = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx12(
680
+ AlertDialogPrimitive.Description,
681
+ {
682
+ ref,
683
+ render: /* @__PURE__ */ jsx12(Typography, { variant: "small", color: "muted", className }),
684
+ ...props,
685
+ children
686
+ }
687
+ ));
688
+ AlertDialogDescription.displayName = "AlertDialogDescription";
689
+ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx12(
690
+ AlertDialogPrimitive.Close,
691
+ {
692
+ ref,
693
+ className: cn(className),
694
+ render: asChildRender(asChild, children),
695
+ ...props,
696
+ children: asChild ? void 0 : children
697
+ }
698
+ ));
699
+ AlertDialogAction.displayName = "AlertDialogAction";
700
+ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx12(
701
+ AlertDialogPrimitive.Close,
702
+ {
703
+ ref,
704
+ className: cn("mt-2 sm:mt-0", className),
705
+ render: asChildRender(asChild, children),
706
+ ...props,
707
+ children: asChild ? void 0 : children
708
+ }
709
+ ));
710
+ AlertDialogCancel.displayName = "AlertDialogCancel";
641
711
 
642
712
  // src/components/dropdown-menu/DropdownMenu.tsx
643
- import * as React12 from "react";
644
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
713
+ import * as React13 from "react";
714
+ import { Menu as DropdownMenuPrimitive } from "@base-ui/react/menu";
645
715
  import { Check, ChevronRight, Circle } from "lucide-react";
646
- import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
716
+ import { Fragment, jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
647
717
  var DropdownMenu = DropdownMenuPrimitive.Root;
648
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
718
+ var DropdownMenuTrigger = React13.forwardRef(
719
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
720
+ );
721
+ DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
649
722
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
650
723
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
651
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
724
+ var DropdownMenuSub = DropdownMenuPrimitive.SubmenuRoot;
652
725
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
653
- var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
654
- DropdownMenuPrimitive.SubTrigger,
726
+ var DropdownMenuSubTrigger = React13.forwardRef(({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx13(
727
+ DropdownMenuPrimitive.SubmenuTrigger,
655
728
  {
656
729
  ref,
657
730
  className: cn(
658
- "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",
731
+ "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",
659
732
  inset && "pl-8",
660
733
  className
661
734
  ),
735
+ render: asChildRender(asChild, children),
662
736
  ...props,
663
- children: [
737
+ children: asChild ? void 0 : /* @__PURE__ */ jsxs5(Fragment, { children: [
664
738
  children,
665
739
  /* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto" })
666
- ]
667
- }
668
- ));
669
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
670
- var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
671
- DropdownMenuPrimitive.SubContent,
672
- {
673
- ref,
674
- className: cn(
675
- "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]",
676
- className
677
- ),
678
- ...props
740
+ ] })
679
741
  }
680
742
  ));
681
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
682
- var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
683
- DropdownMenuPrimitive.Content,
743
+ DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
744
+ var DropdownMenuSubContent = React13.forwardRef(
745
+ ({ className, side = "right", align = "start", alignOffset = -3, sideOffset = 0, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
746
+ DropdownMenuPrimitive.Positioner,
747
+ {
748
+ side,
749
+ align,
750
+ alignOffset,
751
+ sideOffset,
752
+ className: "isolate z-50 outline-none",
753
+ children: /* @__PURE__ */ jsx13(
754
+ DropdownMenuPrimitive.Popup,
755
+ {
756
+ ref,
757
+ className: cn(
758
+ "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]",
759
+ className
760
+ ),
761
+ ...props
762
+ }
763
+ )
764
+ }
765
+ ) })
766
+ );
767
+ DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
768
+ var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, align = "center", side, alignOffset, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
769
+ DropdownMenuPrimitive.Positioner,
684
770
  {
685
- ref,
771
+ side,
772
+ align,
773
+ alignOffset,
686
774
  sideOffset,
687
- className: cn(
688
- "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]",
689
- className
690
- ),
691
- ...props
775
+ className: "isolate z-50 outline-none",
776
+ children: /* @__PURE__ */ jsx13(
777
+ DropdownMenuPrimitive.Popup,
778
+ {
779
+ ref,
780
+ className: cn(
781
+ "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]",
782
+ className
783
+ ),
784
+ ...props
785
+ }
786
+ )
692
787
  }
693
788
  ) }));
694
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
695
- var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
789
+ DropdownMenuContent.displayName = "DropdownMenuContent";
790
+ var DropdownMenuItem = React13.forwardRef(({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ jsx13(
696
791
  DropdownMenuPrimitive.Item,
697
792
  {
698
793
  ref,
794
+ label: textValue,
699
795
  className: cn(
700
- "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",
796
+ "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",
701
797
  inset && "pl-8",
702
798
  className
703
799
  ),
704
- ...props
800
+ render: asChildRender(asChild, children),
801
+ ...props,
802
+ children: asChild ? void 0 : children
705
803
  }
706
804
  ));
707
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
708
- var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs5(
805
+ DropdownMenuItem.displayName = "DropdownMenuItem";
806
+ var DropdownMenuCheckboxItem = React13.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsxs5(
709
807
  DropdownMenuPrimitive.CheckboxItem,
710
808
  {
711
809
  ref,
810
+ label: textValue,
712
811
  className: cn(
713
- "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",
812
+ "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",
714
813
  className
715
814
  ),
716
- checked,
815
+ render: asChildRender(asChild, children),
717
816
  ...props,
718
817
  children: [
719
- /* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Check, { className: "size-4" }) }) }),
720
- children
818
+ /* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx13(Check, { className: "size-4" }) }) }),
819
+ asChild ? void 0 : children
721
820
  ]
722
821
  }
723
822
  ));
724
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
725
- var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
823
+ DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
824
+ var DropdownMenuRadioItem = React13.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsxs5(
726
825
  DropdownMenuPrimitive.RadioItem,
727
826
  {
728
827
  ref,
828
+ label: textValue,
729
829
  className: cn(
730
- "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",
830
+ "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",
731
831
  className
732
832
  ),
833
+ render: asChildRender(asChild, children),
733
834
  ...props,
734
835
  children: [
735
- /* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Circle, { className: "size-2 fill-current" }) }) }),
736
- children
836
+ /* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx13(Circle, { className: "size-2 fill-current" }) }) }),
837
+ asChild ? void 0 : children
737
838
  ]
738
839
  }
739
840
  ));
740
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
741
- var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
742
- DropdownMenuPrimitive.Label,
841
+ DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
842
+ var DropdownMenuLabel = React13.forwardRef(({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx13(
843
+ DropdownMenuPrimitive.GroupLabel,
743
844
  {
744
845
  ref,
745
846
  className: cn(
@@ -747,11 +848,13 @@ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
747
848
  inset && "pl-8",
748
849
  className
749
850
  ),
750
- ...props
851
+ render: asChildRender(asChild, children),
852
+ ...props,
853
+ children: asChild ? void 0 : children
751
854
  }
752
855
  ));
753
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
754
- var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
856
+ DropdownMenuLabel.displayName = "DropdownMenuLabel";
857
+ var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
755
858
  DropdownMenuPrimitive.Separator,
756
859
  {
757
860
  ref,
@@ -759,7 +862,7 @@ var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) =>
759
862
  ...props
760
863
  }
761
864
  ));
762
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
865
+ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
763
866
  var DropdownMenuShortcut = ({ className, ...props }) => {
764
867
  return /* @__PURE__ */ jsx13(
765
868
  "span",
@@ -771,21 +874,128 @@ var DropdownMenuShortcut = ({ className, ...props }) => {
771
874
  };
772
875
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
773
876
 
774
- // src/components/table/Table.tsx
877
+ // src/components/navigation-menu/NavigationMenu.tsx
775
878
  import * as React14 from "react";
879
+ import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
880
+ import { cva as cva7 } from "class-variance-authority";
881
+ import { ChevronDown } from "lucide-react";
882
+ import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
883
+ var NavigationMenu = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
884
+ NavigationMenuPrimitive.Root,
885
+ {
886
+ ref,
887
+ className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
888
+ ...props,
889
+ children: [
890
+ children,
891
+ /* @__PURE__ */ jsx14(NavigationMenuViewport, {})
892
+ ]
893
+ }
894
+ ));
895
+ NavigationMenu.displayName = "NavigationMenu";
896
+ var NavigationMenuList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
897
+ NavigationMenuPrimitive.List,
898
+ {
899
+ ref,
900
+ className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
901
+ ...props
902
+ }
903
+ ));
904
+ NavigationMenuList.displayName = "NavigationMenuList";
905
+ var NavigationMenuItem = NavigationMenuPrimitive.Item;
906
+ var navigationMenuTriggerStyle = cva7(
907
+ "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"
908
+ );
909
+ var NavigationMenuTrigger = React14.forwardRef(({ className, children, asChild, ...props }, ref) => /* @__PURE__ */ jsx14(
910
+ NavigationMenuPrimitive.Trigger,
911
+ {
912
+ ref,
913
+ className: cn(navigationMenuTriggerStyle(), "group", className),
914
+ render: asChildRender(asChild, children),
915
+ ...props,
916
+ children: asChild ? void 0 : /* @__PURE__ */ jsxs6(Fragment2, { children: [
917
+ children,
918
+ " ",
919
+ /* @__PURE__ */ jsx14(
920
+ ChevronDown,
921
+ {
922
+ className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[data-popup-open]:rotate-180",
923
+ "aria-hidden": "true"
924
+ }
925
+ )
926
+ ] })
927
+ }
928
+ ));
929
+ NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
930
+ var NavigationMenuContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
931
+ NavigationMenuPrimitive.Content,
932
+ {
933
+ ref,
934
+ className: cn(
935
+ "left-0 top-0 w-full data-[activation-direction=left]:fade-in data-[activation-direction=right]:fade-out md:absolute md:w-auto",
936
+ className
937
+ ),
938
+ ...props
939
+ }
940
+ ));
941
+ NavigationMenuContent.displayName = "NavigationMenuContent";
942
+ var NavigationMenuLink = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx14(
943
+ NavigationMenuPrimitive.Link,
944
+ {
945
+ ref,
946
+ className,
947
+ render: asChildRender(asChild, children),
948
+ ...props,
949
+ children: asChild ? void 0 : children
950
+ }
951
+ ));
952
+ NavigationMenuLink.displayName = "NavigationMenuLink";
953
+ var NavigationMenuViewport = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(NavigationMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx14(NavigationMenuPrimitive.Positioner, { className: "isolate z-50 outline-none", children: /* @__PURE__ */ jsx14(
954
+ NavigationMenuPrimitive.Popup,
955
+ {
956
+ ref,
957
+ className: cn(
958
+ "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)]",
959
+ className
960
+ ),
961
+ ...props,
962
+ children: /* @__PURE__ */ jsx14(NavigationMenuPrimitive.Viewport, {})
963
+ }
964
+ ) }) }));
965
+ NavigationMenuViewport.displayName = "NavigationMenuViewport";
966
+ var NavigationMenuIndicator = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
967
+ NavigationMenuPrimitive.Icon,
968
+ {
969
+ ref,
970
+ className: cn(
971
+ "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",
972
+ className
973
+ ),
974
+ render: asChildRender(asChild, children),
975
+ ...props,
976
+ children: [
977
+ asChild ? void 0 : children,
978
+ /* @__PURE__ */ jsx14("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
979
+ ]
980
+ }
981
+ ));
982
+ NavigationMenuIndicator.displayName = "NavigationMenuIndicator";
983
+
984
+ // src/components/table/Table.tsx
985
+ import * as React16 from "react";
776
986
 
777
987
  // src/primitives/table.tsx
778
- import * as React13 from "react";
779
- import { jsx as jsx14 } from "react/jsx-runtime";
780
- var Table = React13.forwardRef(
781
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx14("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx14("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
988
+ import * as React15 from "react";
989
+ import { jsx as jsx15 } from "react/jsx-runtime";
990
+ var Table = React15.forwardRef(
991
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx15("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx15("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
782
992
  );
783
993
  Table.displayName = "Table";
784
- var TableHeader = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
994
+ var TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
785
995
  TableHeader.displayName = "TableHeader";
786
- var TableBody = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
996
+ var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
787
997
  TableBody.displayName = "TableBody";
788
- var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
998
+ var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
789
999
  "tfoot",
790
1000
  {
791
1001
  ref,
@@ -794,8 +1004,8 @@ var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
794
1004
  }
795
1005
  ));
796
1006
  TableFooter.displayName = "TableFooter";
797
- var TableRow = React13.forwardRef(
798
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1007
+ var TableRow = React15.forwardRef(
1008
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
799
1009
  "tr",
800
1010
  {
801
1011
  ref,
@@ -808,7 +1018,7 @@ var TableRow = React13.forwardRef(
808
1018
  )
809
1019
  );
810
1020
  TableRow.displayName = "TableRow";
811
- var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1021
+ var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
812
1022
  "th",
813
1023
  {
814
1024
  ref,
@@ -820,7 +1030,7 @@ var TableHead = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
820
1030
  }
821
1031
  ));
822
1032
  TableHead.displayName = "TableHead";
823
- var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1033
+ var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
824
1034
  "td",
825
1035
  {
826
1036
  ref,
@@ -829,16 +1039,16 @@ var TableCell = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE_
829
1039
  }
830
1040
  ));
831
1041
  TableCell.displayName = "TableCell";
832
- var TableCaption = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
1042
+ var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
833
1043
  TableCaption.displayName = "TableCaption";
834
1044
 
835
1045
  // src/components/table/Table.tsx
836
- import { jsx as jsx15 } from "react/jsx-runtime";
837
- var Table2 = React14.forwardRef(
838
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx15(Table, { ref, className, ...props })
1046
+ import { jsx as jsx16 } from "react/jsx-runtime";
1047
+ var Table2 = React16.forwardRef(
1048
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx16(Table, { ref, className, ...props })
839
1049
  );
840
1050
  Table2.displayName = "Table";
841
- var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1051
+ var TableHeader2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
842
1052
  TableHeader,
843
1053
  {
844
1054
  ref,
@@ -847,7 +1057,7 @@ var TableHeader2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
847
1057
  }
848
1058
  ));
849
1059
  TableHeader2.displayName = "TableHeader";
850
- var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1060
+ var TableBody2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
851
1061
  TableBody,
852
1062
  {
853
1063
  ref,
@@ -856,7 +1066,7 @@ var TableBody2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
856
1066
  }
857
1067
  ));
858
1068
  TableBody2.displayName = "TableBody";
859
- var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1069
+ var TableFooter2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
860
1070
  TableFooter,
861
1071
  {
862
1072
  ref,
@@ -868,8 +1078,8 @@ var TableFooter2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
868
1078
  }
869
1079
  ));
870
1080
  TableFooter2.displayName = "TableFooter";
871
- var TableRow2 = React14.forwardRef(
872
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1081
+ var TableRow2 = React16.forwardRef(
1082
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
873
1083
  TableRow,
874
1084
  {
875
1085
  ref,
@@ -882,7 +1092,7 @@ var TableRow2 = React14.forwardRef(
882
1092
  )
883
1093
  );
884
1094
  TableRow2.displayName = "TableRow";
885
- var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1095
+ var TableHead2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
886
1096
  TableHead,
887
1097
  {
888
1098
  ref,
@@ -894,7 +1104,7 @@ var TableHead2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
894
1104
  }
895
1105
  ));
896
1106
  TableHead2.displayName = "TableHead";
897
- var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1107
+ var TableCell2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
898
1108
  TableCell,
899
1109
  {
900
1110
  ref,
@@ -903,7 +1113,7 @@ var TableCell2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE
903
1113
  }
904
1114
  ));
905
1115
  TableCell2.displayName = "TableCell";
906
- var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1116
+ var TableCaption2 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
907
1117
  TableCaption,
908
1118
  {
909
1119
  ref,
@@ -914,21 +1124,21 @@ var TableCaption2 = React14.forwardRef(({ className, ...props }, ref) => /* @__P
914
1124
  TableCaption2.displayName = "TableCaption";
915
1125
 
916
1126
  // src/components/item/Item.tsx
917
- import * as React16 from "react";
1127
+ import * as React18 from "react";
918
1128
 
919
1129
  // src/primitives/item.tsx
920
- import { Slot as Slot2 } from "@radix-ui/react-slot";
921
- import { cva as cva7 } from "class-variance-authority";
1130
+ import { cva as cva8 } from "class-variance-authority";
1131
+ import { mergeProps } from "@base-ui/react/merge-props";
1132
+ import { useRender } from "@base-ui/react/use-render";
922
1133
 
923
1134
  // src/primitives/separator.tsx
924
- import * as React15 from "react";
925
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
926
- import { jsx as jsx16 } from "react/jsx-runtime";
927
- var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx16(
928
- SeparatorPrimitive.Root,
1135
+ import * as React17 from "react";
1136
+ import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
1137
+ import { jsx as jsx17 } from "react/jsx-runtime";
1138
+ var Separator = React17.forwardRef(({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ jsx17(
1139
+ SeparatorPrimitive,
929
1140
  {
930
1141
  ref,
931
- decorative,
932
1142
  orientation,
933
1143
  className: cn(
934
1144
  "shrink-0 bg-border",
@@ -938,12 +1148,12 @@ var Separator2 = React15.forwardRef(({ className, orientation = "horizontal", de
938
1148
  ...props
939
1149
  }
940
1150
  ));
941
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1151
+ Separator.displayName = "Separator";
942
1152
 
943
1153
  // src/primitives/item.tsx
944
- import { jsx as jsx17 } from "react/jsx-runtime";
1154
+ import { jsx as jsx18 } from "react/jsx-runtime";
945
1155
  function ItemGroup({ className, ...props }) {
946
- return /* @__PURE__ */ jsx17(
1156
+ return /* @__PURE__ */ jsx18(
947
1157
  "div",
948
1158
  {
949
1159
  role: "list",
@@ -954,8 +1164,8 @@ function ItemGroup({ className, ...props }) {
954
1164
  );
955
1165
  }
956
1166
  function ItemSeparator({ className, ...props }) {
957
- return /* @__PURE__ */ jsx17(
958
- Separator2,
1167
+ return /* @__PURE__ */ jsx18(
1168
+ Separator,
959
1169
  {
960
1170
  "data-slot": "item-separator",
961
1171
  orientation: "horizontal",
@@ -964,7 +1174,7 @@ function ItemSeparator({ className, ...props }) {
964
1174
  }
965
1175
  );
966
1176
  }
967
- var itemVariants = cva7(
1177
+ var itemVariants = cva8(
968
1178
  "group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",
969
1179
  {
970
1180
  variants: {
@@ -984,26 +1194,28 @@ var itemVariants = cva7(
984
1194
  }
985
1195
  }
986
1196
  );
987
- function Item2({
1197
+ function Item({
988
1198
  className,
989
1199
  variant = "default",
990
1200
  size = "default",
991
- asChild = false,
1201
+ render,
992
1202
  ...props
993
1203
  }) {
994
- const Comp = asChild ? Slot2 : "div";
995
- return /* @__PURE__ */ jsx17(
996
- Comp,
997
- {
998
- "data-slot": "item",
999
- "data-variant": variant,
1000
- "data-size": size,
1001
- className: cn(itemVariants({ variant, size, className })),
1002
- ...props
1003
- }
1004
- );
1204
+ return useRender({
1205
+ defaultTagName: "div",
1206
+ render,
1207
+ props: mergeProps(
1208
+ {
1209
+ "data-slot": "item",
1210
+ "data-variant": variant,
1211
+ "data-size": size,
1212
+ className: cn(itemVariants({ variant, size, className }))
1213
+ },
1214
+ props
1215
+ )
1216
+ });
1005
1217
  }
1006
- var itemMediaVariants = cva7(
1218
+ var itemMediaVariants = cva8(
1007
1219
  "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",
1008
1220
  {
1009
1221
  variants: {
@@ -1023,7 +1235,7 @@ function ItemMedia({
1023
1235
  variant = "default",
1024
1236
  ...props
1025
1237
  }) {
1026
- return /* @__PURE__ */ jsx17(
1238
+ return /* @__PURE__ */ jsx18(
1027
1239
  "div",
1028
1240
  {
1029
1241
  "data-slot": "item-media",
@@ -1034,7 +1246,7 @@ function ItemMedia({
1034
1246
  );
1035
1247
  }
1036
1248
  function ItemContent({ className, ...props }) {
1037
- return /* @__PURE__ */ jsx17(
1249
+ return /* @__PURE__ */ jsx18(
1038
1250
  "div",
1039
1251
  {
1040
1252
  "data-slot": "item-content",
@@ -1044,7 +1256,7 @@ function ItemContent({ className, ...props }) {
1044
1256
  );
1045
1257
  }
1046
1258
  function ItemTitle({ className, ...props }) {
1047
- return /* @__PURE__ */ jsx17(
1259
+ return /* @__PURE__ */ jsx18(
1048
1260
  "div",
1049
1261
  {
1050
1262
  "data-slot": "item-title",
@@ -1054,7 +1266,7 @@ function ItemTitle({ className, ...props }) {
1054
1266
  );
1055
1267
  }
1056
1268
  function ItemDescription({ className, ...props }) {
1057
- return /* @__PURE__ */ jsx17(
1269
+ return /* @__PURE__ */ jsx18(
1058
1270
  "p",
1059
1271
  {
1060
1272
  "data-slot": "item-description",
@@ -1068,10 +1280,10 @@ function ItemDescription({ className, ...props }) {
1068
1280
  );
1069
1281
  }
1070
1282
  function ItemActions({ className, ...props }) {
1071
- return /* @__PURE__ */ jsx17("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
1283
+ return /* @__PURE__ */ jsx18("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
1072
1284
  }
1073
1285
  function ItemHeader({ className, ...props }) {
1074
- return /* @__PURE__ */ jsx17(
1286
+ return /* @__PURE__ */ jsx18(
1075
1287
  "div",
1076
1288
  {
1077
1289
  "data-slot": "item-header",
@@ -1081,7 +1293,7 @@ function ItemHeader({ className, ...props }) {
1081
1293
  );
1082
1294
  }
1083
1295
  function ItemFooter({ className, ...props }) {
1084
- return /* @__PURE__ */ jsx17(
1296
+ return /* @__PURE__ */ jsx18(
1085
1297
  "div",
1086
1298
  {
1087
1299
  "data-slot": "item-footer",
@@ -1092,12 +1304,12 @@ function ItemFooter({ className, ...props }) {
1092
1304
  }
1093
1305
 
1094
1306
  // src/components/item/Item.tsx
1095
- import { jsx as jsx18 } from "react/jsx-runtime";
1096
- function Item3({ className, asChild, ...props }) {
1097
- return /* @__PURE__ */ jsx18(
1098
- Item2,
1307
+ import { jsx as jsx19 } from "react/jsx-runtime";
1308
+ function Item2({ className, asChild, children, ...props }) {
1309
+ return /* @__PURE__ */ jsx19(
1310
+ Item,
1099
1311
  {
1100
- asChild,
1312
+ render: asChild ? children : void 0,
1101
1313
  className: cn(
1102
1314
  /* Variant colours — override primitive defaults */
1103
1315
  "data-[variant=outline]:border-berget-item-outline-border",
@@ -1108,12 +1320,13 @@ function Item3({ className, asChild, ...props }) {
1108
1320
  "focus-visible:border-berget-item-focus-ring focus-visible:ring-berget-item-focus-ring/50",
1109
1321
  className
1110
1322
  ),
1111
- ...props
1323
+ ...props,
1324
+ children: asChild ? void 0 : children
1112
1325
  }
1113
1326
  );
1114
1327
  }
1115
- var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
1116
- return /* @__PURE__ */ jsx18(
1328
+ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
1329
+ return /* @__PURE__ */ jsx19(
1117
1330
  ItemMedia,
1118
1331
  {
1119
1332
  ref,
@@ -1123,8 +1336,8 @@ var ItemMedia2 = React16.forwardRef(({ className, ...props }, ref) => {
1123
1336
  );
1124
1337
  });
1125
1338
  ItemMedia2.displayName = "ItemMedia";
1126
- var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
1127
- return /* @__PURE__ */ jsx18(
1339
+ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
1340
+ return /* @__PURE__ */ jsx19(
1128
1341
  ItemTitle,
1129
1342
  {
1130
1343
  ref,
@@ -1134,8 +1347,8 @@ var ItemTitle2 = React16.forwardRef(({ className, ...props }, ref) => {
1134
1347
  );
1135
1348
  });
1136
1349
  ItemTitle2.displayName = "ItemTitle";
1137
- var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
1138
- return /* @__PURE__ */ jsx18(
1350
+ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
1351
+ return /* @__PURE__ */ jsx19(
1139
1352
  ItemDescription,
1140
1353
  {
1141
1354
  ref,
@@ -1145,8 +1358,8 @@ var ItemDescription2 = React16.forwardRef(({ className, ...props }, ref) => {
1145
1358
  );
1146
1359
  });
1147
1360
  ItemDescription2.displayName = "ItemDescription";
1148
- var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
1149
- return /* @__PURE__ */ jsx18(
1361
+ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
1362
+ return /* @__PURE__ */ jsx19(
1150
1363
  ItemSeparator,
1151
1364
  {
1152
1365
  ref,
@@ -1158,14 +1371,14 @@ var ItemSeparator2 = React16.forwardRef(({ className, ...props }, ref) => {
1158
1371
  ItemSeparator2.displayName = "ItemSeparator";
1159
1372
 
1160
1373
  // src/components/input/Input.tsx
1161
- import * as React18 from "react";
1374
+ import * as React20 from "react";
1162
1375
 
1163
1376
  // src/primitives/input.tsx
1164
- import * as React17 from "react";
1165
- import { jsx as jsx19 } from "react/jsx-runtime";
1166
- var Input = React17.forwardRef(
1377
+ import * as React19 from "react";
1378
+ import { jsx as jsx20 } from "react/jsx-runtime";
1379
+ var Input = React19.forwardRef(
1167
1380
  ({ className, type, ...props }, ref) => {
1168
- return /* @__PURE__ */ jsx19(
1381
+ return /* @__PURE__ */ jsx20(
1169
1382
  "input",
1170
1383
  {
1171
1384
  type,
@@ -1182,14 +1395,14 @@ var Input = React17.forwardRef(
1182
1395
  Input.displayName = "Input";
1183
1396
 
1184
1397
  // src/components/input/Input.tsx
1185
- import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
1186
- var Input2 = React18.forwardRef(
1398
+ import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
1399
+ var Input2 = React20.forwardRef(
1187
1400
  ({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
1188
- const generatedId = React18.useId();
1401
+ const generatedId = React20.useId();
1189
1402
  const inputId = id || generatedId;
1190
1403
  const errorId = `${inputId}-error`;
1191
1404
  const descriptionId = `${inputId}-description`;
1192
- const inputElement = /* @__PURE__ */ jsx20(
1405
+ const inputElement = /* @__PURE__ */ jsx21(
1193
1406
  Input,
1194
1407
  {
1195
1408
  ref,
@@ -1209,8 +1422,8 @@ var Input2 = React18.forwardRef(
1209
1422
  }
1210
1423
  );
1211
1424
  if (!icon && !actionButton) {
1212
- return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
1213
- label && /* @__PURE__ */ jsx20(
1425
+ return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
1426
+ label && /* @__PURE__ */ jsx21(
1214
1427
  "label",
1215
1428
  {
1216
1429
  htmlFor: inputId,
@@ -1223,9 +1436,9 @@ var Input2 = React18.forwardRef(
1223
1436
  }
1224
1437
  ),
1225
1438
  inputElement,
1226
- (description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
1227
- description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1228
- error && /* @__PURE__ */ jsx20(
1439
+ (description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
1440
+ description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1441
+ error && /* @__PURE__ */ jsx21(
1229
1442
  Typography,
1230
1443
  {
1231
1444
  variant: "xs",
@@ -1237,8 +1450,8 @@ var Input2 = React18.forwardRef(
1237
1450
  ] })
1238
1451
  ] });
1239
1452
  }
1240
- return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
1241
- label && /* @__PURE__ */ jsx20(
1453
+ return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
1454
+ label && /* @__PURE__ */ jsx21(
1242
1455
  "label",
1243
1456
  {
1244
1457
  htmlFor: inputId,
@@ -1250,14 +1463,14 @@ var Input2 = React18.forwardRef(
1250
1463
  children: label
1251
1464
  }
1252
1465
  ),
1253
- /* @__PURE__ */ jsxs6("div", { className: "relative w-full", children: [
1254
- icon && /* @__PURE__ */ jsx20("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
1466
+ /* @__PURE__ */ jsxs7("div", { className: "relative w-full", children: [
1467
+ icon && /* @__PURE__ */ jsx21("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
1255
1468
  inputElement,
1256
- actionButton && /* @__PURE__ */ jsx20("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
1469
+ actionButton && /* @__PURE__ */ jsx21("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
1257
1470
  ] }),
1258
- (description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
1259
- description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1260
- error && /* @__PURE__ */ jsx20(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1471
+ (description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
1472
+ description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1473
+ error && /* @__PURE__ */ jsx21(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1261
1474
  ] })
1262
1475
  ] });
1263
1476
  }
@@ -1265,43 +1478,43 @@ var Input2 = React18.forwardRef(
1265
1478
  Input2.displayName = "Input";
1266
1479
 
1267
1480
  // src/components/checkbox/Checkbox.tsx
1268
- import * as React20 from "react";
1269
- import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
1481
+ import * as React22 from "react";
1482
+ import { Checkbox as CheckboxPrimitive2 } from "@base-ui/react/checkbox";
1270
1483
  import { Check as Check3 } from "lucide-react";
1271
- import { cva as cva8 } from "class-variance-authority";
1484
+ import { cva as cva9 } from "class-variance-authority";
1272
1485
 
1273
1486
  // src/primitives/checkbox.tsx
1274
- import * as React19 from "react";
1275
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
1487
+ import * as React21 from "react";
1488
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
1276
1489
  import { Check as Check2 } from "lucide-react";
1277
- import { jsx as jsx21 } from "react/jsx-runtime";
1278
- var Checkbox = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx21(
1490
+ import { jsx as jsx22 } from "react/jsx-runtime";
1491
+ var Checkbox = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
1279
1492
  CheckboxPrimitive.Root,
1280
1493
  {
1281
1494
  ref,
1282
1495
  className: cn(
1283
- "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",
1496
+ "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",
1284
1497
  className
1285
1498
  ),
1286
1499
  ...props,
1287
- children: children ?? /* @__PURE__ */ jsx21(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx21(Check2, { className: "h-4 w-4" }) })
1500
+ children: children ?? /* @__PURE__ */ jsx22(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" }) })
1288
1501
  }
1289
1502
  ));
1290
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1291
- var CheckboxIndicator = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx21(
1503
+ Checkbox.displayName = "Checkbox";
1504
+ var CheckboxIndicator = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
1292
1505
  CheckboxPrimitive.Indicator,
1293
1506
  {
1294
1507
  ref,
1295
1508
  className: cn("grid place-content-center", className),
1296
1509
  ...props,
1297
- children: children ?? /* @__PURE__ */ jsx21(Check2, { className: "h-4 w-4" })
1510
+ children: children ?? /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" })
1298
1511
  }
1299
1512
  ));
1300
- CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
1513
+ CheckboxIndicator.displayName = "CheckboxIndicator";
1301
1514
 
1302
1515
  // src/components/checkbox/Checkbox.tsx
1303
- import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
1304
- var checkboxVariants = cva8(
1516
+ import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
1517
+ var checkboxVariants = cva9(
1305
1518
  "inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
1306
1519
  {
1307
1520
  variants: {
@@ -1322,7 +1535,7 @@ var checkboxVariants = cva8(
1322
1535
  }
1323
1536
  }
1324
1537
  );
1325
- var Checkbox2 = React20.forwardRef(
1538
+ var Checkbox2 = React22.forwardRef(
1326
1539
  ({
1327
1540
  "aria-label": ariaLabel,
1328
1541
  className,
@@ -1335,16 +1548,17 @@ var Checkbox2 = React20.forwardRef(
1335
1548
  disabled,
1336
1549
  ...props
1337
1550
  }, ref) => {
1338
- const generatedId = React20.useId();
1551
+ const generatedId = React22.useId();
1339
1552
  const checkboxId = id || generatedId;
1340
1553
  const errorId = `${checkboxId}-error`;
1341
- return /* @__PURE__ */ jsxs7("div", { className: "flex items-start gap-3", children: [
1342
- /* @__PURE__ */ jsx22("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx22(
1554
+ return /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-3", children: [
1555
+ /* @__PURE__ */ jsx23("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx23(
1343
1556
  Checkbox,
1344
1557
  {
1345
1558
  ref,
1346
1559
  id: checkboxId,
1347
1560
  disabled,
1561
+ nativeButton: true,
1348
1562
  "aria-invalid": !!error,
1349
1563
  "aria-describedby": error ? errorId : void 0,
1350
1564
  "aria-label": ariaLabel || label || void 0,
@@ -1355,7 +1569,7 @@ var Checkbox2 = React20.forwardRef(
1355
1569
  className
1356
1570
  ),
1357
1571
  ...props,
1358
- children: /* @__PURE__ */ jsx22(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx22(
1572
+ children: /* @__PURE__ */ jsx23(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx23(
1359
1573
  Check3,
1360
1574
  {
1361
1575
  className: "h-4 w-4 text-current stroke-current",
@@ -1364,8 +1578,8 @@ var Checkbox2 = React20.forwardRef(
1364
1578
  ) })
1365
1579
  }
1366
1580
  ) }),
1367
- (label || description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
1368
- label && /* @__PURE__ */ jsx22(
1581
+ (label || description || error) && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
1582
+ label && /* @__PURE__ */ jsx23(
1369
1583
  "label",
1370
1584
  {
1371
1585
  htmlFor: checkboxId,
@@ -1377,8 +1591,8 @@ var Checkbox2 = React20.forwardRef(
1377
1591
  children: label
1378
1592
  }
1379
1593
  ),
1380
- description && /* @__PURE__ */ jsx22(Typography, { variant: "xs", color: "muted", children: description }),
1381
- error && /* @__PURE__ */ jsx22(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1594
+ description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", children: description }),
1595
+ error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1382
1596
  ] })
1383
1597
  ] });
1384
1598
  }
@@ -1386,18 +1600,18 @@ var Checkbox2 = React20.forwardRef(
1386
1600
  Checkbox2.displayName = "Checkbox";
1387
1601
 
1388
1602
  // src/components/switch/Switch.tsx
1389
- import * as React21 from "react";
1390
- import * as SwitchPrimitives from "@radix-ui/react-switch";
1391
- import { cva as cva9 } from "class-variance-authority";
1392
- import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
1393
- var switchRootVariants = cva9(
1603
+ import * as React23 from "react";
1604
+ import { Switch as SwitchPrimitives } from "@base-ui/react/switch";
1605
+ import { cva as cva10 } from "class-variance-authority";
1606
+ import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
1607
+ var switchRootVariants = cva10(
1394
1608
  "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-berget-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
1395
1609
  {
1396
1610
  variants: {
1397
1611
  variant: {
1398
- default: "data-[state=unchecked]:bg-berget-border data-[state=checked]:bg-berget-secondary",
1399
- primary: "data-[state=unchecked]:bg-berget-border-subtle data-[state=checked]:bg-berget-switch-primary-checked",
1400
- subtle: "data-[state=unchecked]:bg-berget-border-subtle data-[state=checked]:bg-berget-switch-subtle-checked"
1612
+ default: "data-unchecked:bg-berget-border data-checked:bg-berget-secondary",
1613
+ primary: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-primary-checked",
1614
+ subtle: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-subtle-checked"
1401
1615
  },
1402
1616
  size: {
1403
1617
  sm: "h-5 w-9",
@@ -1411,14 +1625,14 @@ var switchRootVariants = cva9(
1411
1625
  }
1412
1626
  }
1413
1627
  );
1414
- var switchThumbVariants = cva9(
1628
+ var switchThumbVariants = cva10(
1415
1629
  "pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
1416
1630
  {
1417
1631
  variants: {
1418
1632
  size: {
1419
- sm: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
1420
- default: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
1421
- lg: "h-6 w-6 data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-0"
1633
+ sm: "h-4 w-4 data-checked:translate-x-4 data-unchecked:translate-x-0",
1634
+ default: "h-5 w-5 data-checked:translate-x-5 data-unchecked:translate-x-0",
1635
+ lg: "h-6 w-6 data-checked:translate-x-6 data-unchecked:translate-x-0"
1422
1636
  }
1423
1637
  },
1424
1638
  defaultVariants: {
@@ -1426,7 +1640,7 @@ var switchThumbVariants = cva9(
1426
1640
  }
1427
1641
  }
1428
1642
  );
1429
- var Switch = React21.forwardRef(
1643
+ var Switch = React23.forwardRef(
1430
1644
  ({
1431
1645
  "aria-label": ariaLabel,
1432
1646
  className,
@@ -1439,16 +1653,17 @@ var Switch = React21.forwardRef(
1439
1653
  disabled,
1440
1654
  ...props
1441
1655
  }, ref) => {
1442
- const generatedId = React21.useId();
1656
+ const generatedId = React23.useId();
1443
1657
  const switchId = id || generatedId;
1444
1658
  const errorId = `${switchId}-error`;
1445
- return /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-3", children: [
1446
- /* @__PURE__ */ jsx23(
1659
+ return /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-3", children: [
1660
+ /* @__PURE__ */ jsx24(
1447
1661
  SwitchPrimitives.Root,
1448
1662
  {
1449
1663
  ref,
1450
1664
  id: switchId,
1451
1665
  disabled,
1666
+ nativeButton: true,
1452
1667
  "aria-invalid": !!error,
1453
1668
  "aria-describedby": error ? errorId : void 0,
1454
1669
  "aria-label": ariaLabel || label || void 0,
@@ -1458,11 +1673,11 @@ var Switch = React21.forwardRef(
1458
1673
  className
1459
1674
  ),
1460
1675
  ...props,
1461
- children: /* @__PURE__ */ jsx23(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
1676
+ children: /* @__PURE__ */ jsx24(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
1462
1677
  }
1463
1678
  ),
1464
- (label || description || error) && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
1465
- label && /* @__PURE__ */ jsx23(
1679
+ (label || description || error) && /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-1", children: [
1680
+ label && /* @__PURE__ */ jsx24(
1466
1681
  "label",
1467
1682
  {
1468
1683
  htmlFor: switchId,
@@ -1473,8 +1688,8 @@ var Switch = React21.forwardRef(
1473
1688
  children: label
1474
1689
  }
1475
1690
  ),
1476
- description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", children: description }),
1477
- error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1691
+ description && /* @__PURE__ */ jsx24(Typography, { variant: "xs", color: "muted", children: description }),
1692
+ error && /* @__PURE__ */ jsx24(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1478
1693
  ] })
1479
1694
  ] });
1480
1695
  }
@@ -1482,17 +1697,18 @@ var Switch = React21.forwardRef(
1482
1697
  Switch.displayName = "Switch";
1483
1698
 
1484
1699
  // src/components/select/Select.tsx
1485
- import * as React23 from "react";
1486
- import { cva as cva10 } from "class-variance-authority";
1700
+ import * as React25 from "react";
1701
+ import { cva as cva11 } from "class-variance-authority";
1487
1702
 
1488
1703
  // src/primitives/select.tsx
1489
- import * as React22 from "react";
1490
- import * as SelectPrimitive from "@radix-ui/react-select";
1491
- import { Check as Check4, ChevronDown, ChevronUp } from "lucide-react";
1492
- import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
1704
+ import * as React24 from "react";
1705
+ import { Select as SelectPrimitive } from "@base-ui/react/select";
1706
+ import { Check as Check4, ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
1707
+ import { Fragment as Fragment3, jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
1493
1708
  var Select = SelectPrimitive.Root;
1709
+ var SelectGroup = SelectPrimitive.Group;
1494
1710
  var SelectValue = SelectPrimitive.Value;
1495
- var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
1711
+ var SelectTrigger = React24.forwardRef(({ className, children, asChild, ...props }, ref) => /* @__PURE__ */ jsxs10(
1496
1712
  SelectPrimitive.Trigger,
1497
1713
  {
1498
1714
  ref,
@@ -1500,88 +1716,104 @@ var SelectTrigger = React22.forwardRef(({ className, children, ...props }, ref)
1500
1716
  "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",
1501
1717
  className
1502
1718
  ),
1719
+ render: asChildRender(asChild, children),
1503
1720
  ...props,
1504
1721
  children: [
1505
- children,
1506
- /* @__PURE__ */ jsx24(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
1722
+ asChild ? void 0 : children,
1723
+ asChild ? null : /* @__PURE__ */ jsx25(SelectPrimitive.Icon, { render: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4 opacity-50" }) })
1507
1724
  ]
1508
1725
  }
1509
1726
  ));
1510
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1511
- var SelectScrollUpButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1512
- SelectPrimitive.ScrollUpButton,
1727
+ SelectTrigger.displayName = "SelectTrigger";
1728
+ var SelectScrollUpButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1729
+ SelectPrimitive.ScrollUpArrow,
1513
1730
  {
1514
1731
  ref,
1515
1732
  className: cn("flex cursor-default items-center justify-center py-1", className),
1516
1733
  ...props,
1517
- children: /* @__PURE__ */ jsx24(ChevronUp, { className: "h-4 w-4" })
1734
+ children: /* @__PURE__ */ jsx25(ChevronUp, { className: "h-4 w-4" })
1518
1735
  }
1519
1736
  ));
1520
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1521
- var SelectScrollDownButton = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1522
- SelectPrimitive.ScrollDownButton,
1737
+ SelectScrollUpButton.displayName = "SelectScrollUpButton";
1738
+ var SelectScrollDownButton = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1739
+ SelectPrimitive.ScrollDownArrow,
1523
1740
  {
1524
1741
  ref,
1525
1742
  className: cn("flex cursor-default items-center justify-center py-1", className),
1526
1743
  ...props,
1527
- children: /* @__PURE__ */ jsx24(ChevronDown, { className: "h-4 w-4" })
1744
+ children: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4" })
1528
1745
  }
1529
1746
  ));
1530
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
1531
- var SelectContent = React22.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx24(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs9(
1532
- SelectPrimitive.Content,
1533
- {
1534
- ref,
1535
- className: cn(
1536
- "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]",
1537
- 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",
1538
- className
1539
- ),
1540
- position,
1541
- ...props,
1542
- children: [
1543
- /* @__PURE__ */ jsx24(SelectScrollUpButton, {}),
1544
- /* @__PURE__ */ jsx24(
1545
- SelectPrimitive.Viewport,
1747
+ SelectScrollDownButton.displayName = "SelectScrollDownButton";
1748
+ var SelectContent = React24.forwardRef(
1749
+ ({
1750
+ className,
1751
+ children,
1752
+ alignItemWithTrigger = true,
1753
+ sideOffset = 4,
1754
+ align,
1755
+ side,
1756
+ alignOffset,
1757
+ ...props
1758
+ }, ref) => /* @__PURE__ */ jsx25(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
1759
+ SelectPrimitive.Positioner,
1760
+ {
1761
+ alignItemWithTrigger,
1762
+ side,
1763
+ align,
1764
+ alignOffset,
1765
+ sideOffset,
1766
+ className: "isolate z-50",
1767
+ children: /* @__PURE__ */ jsxs10(
1768
+ SelectPrimitive.Popup,
1546
1769
  {
1770
+ ref,
1547
1771
  className: cn(
1548
- "p-1",
1549
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1772
+ "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]",
1773
+ className
1550
1774
  ),
1551
- children
1775
+ ...props,
1776
+ children: [
1777
+ /* @__PURE__ */ jsx25(SelectScrollUpButton, {}),
1778
+ /* @__PURE__ */ jsx25(SelectPrimitive.List, { className: cn("p-1"), children }),
1779
+ /* @__PURE__ */ jsx25(SelectScrollDownButton, {})
1780
+ ]
1552
1781
  }
1553
- ),
1554
- /* @__PURE__ */ jsx24(SelectScrollDownButton, {})
1555
- ]
1556
- }
1557
- ) }));
1558
- SelectContent.displayName = SelectPrimitive.Content.displayName;
1559
- var SelectLabel = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1560
- SelectPrimitive.Label,
1782
+ )
1783
+ }
1784
+ ) })
1785
+ );
1786
+ SelectContent.displayName = "SelectContent";
1787
+ var SelectLabel = React24.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx25(
1788
+ SelectPrimitive.GroupLabel,
1561
1789
  {
1562
1790
  ref,
1563
1791
  className: cn("py-1.5 pl-8 pr-2 text-sm ", className),
1564
- ...props
1792
+ render: asChildRender(asChild, children),
1793
+ ...props,
1794
+ children: asChild ? void 0 : children
1565
1795
  }
1566
1796
  ));
1567
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
1568
- var SelectItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
1797
+ SelectLabel.displayName = "SelectLabel";
1798
+ var SelectItem = React24.forwardRef(({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsx25(
1569
1799
  SelectPrimitive.Item,
1570
1800
  {
1571
1801
  ref,
1802
+ label: textValue,
1572
1803
  className: cn(
1573
- "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",
1804
+ "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",
1574
1805
  className
1575
1806
  ),
1807
+ render: asChildRender(asChild, children),
1576
1808
  ...props,
1577
- children: [
1578
- /* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Check4, { className: "h-4 w-4" }) }) }),
1579
- /* @__PURE__ */ jsx24(SelectPrimitive.ItemText, { children })
1580
- ]
1809
+ children: asChild ? void 0 : /* @__PURE__ */ jsxs10(Fragment3, { children: [
1810
+ /* @__PURE__ */ jsx25("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Check4, { className: "h-4 w-4" }) }) }),
1811
+ /* @__PURE__ */ jsx25(SelectPrimitive.ItemText, { children })
1812
+ ] })
1581
1813
  }
1582
1814
  ));
1583
- SelectItem.displayName = SelectPrimitive.Item.displayName;
1584
- var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1815
+ SelectItem.displayName = "SelectItem";
1816
+ var SelectSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1585
1817
  SelectPrimitive.Separator,
1586
1818
  {
1587
1819
  ref,
@@ -1589,11 +1821,11 @@ var SelectSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @_
1589
1821
  ...props
1590
1822
  }
1591
1823
  ));
1592
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1824
+ SelectSeparator.displayName = "SelectSeparator";
1593
1825
 
1594
1826
  // src/components/select/Select.tsx
1595
- import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
1596
- var selectVariants = cva10(
1827
+ import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
1828
+ var selectVariants = cva11(
1597
1829
  "flex w-full items-center justify-between rounded-berget-xs border bg-card px-4 py-3 text-sm transition-colors duration-200 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-berget-form-focus-border disabled:cursor-not-allowed disabled:opacity-50",
1598
1830
  {
1599
1831
  variants: {
@@ -1615,7 +1847,7 @@ var selectVariants = cva10(
1615
1847
  }
1616
1848
  }
1617
1849
  );
1618
- var Select2 = React23.forwardRef(
1850
+ var Select2 = React25.forwardRef(
1619
1851
  ({
1620
1852
  className,
1621
1853
  variant,
@@ -1633,12 +1865,12 @@ var Select2 = React23.forwardRef(
1633
1865
  name,
1634
1866
  required
1635
1867
  }, ref) => {
1636
- const generatedId = React23.useId();
1868
+ const generatedId = React25.useId();
1637
1869
  const selectId = id || generatedId;
1638
1870
  const errorId = `${selectId}-error`;
1639
1871
  const descriptionId = `${selectId}-description`;
1640
- return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2", children: [
1641
- label && /* @__PURE__ */ jsx25(
1872
+ return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-2", children: [
1873
+ label && /* @__PURE__ */ jsx26(
1642
1874
  "label",
1643
1875
  {
1644
1876
  htmlFor: selectId,
@@ -1650,17 +1882,18 @@ var Select2 = React23.forwardRef(
1650
1882
  children: label
1651
1883
  }
1652
1884
  ),
1653
- /* @__PURE__ */ jsxs10(
1885
+ /* @__PURE__ */ jsxs11(
1654
1886
  Select,
1655
1887
  {
1656
1888
  value,
1657
1889
  defaultValue,
1658
- onValueChange,
1890
+ onValueChange: onValueChange ? (value2) => onValueChange(value2 ?? "") : void 0,
1659
1891
  disabled,
1660
1892
  name,
1661
1893
  required,
1894
+ items: options,
1662
1895
  children: [
1663
- /* @__PURE__ */ jsx25(
1896
+ /* @__PURE__ */ jsx26(
1664
1897
  SelectTrigger,
1665
1898
  {
1666
1899
  ref,
@@ -1672,33 +1905,33 @@ var Select2 = React23.forwardRef(
1672
1905
  error && "border-berget-destructive-foreground/50 bg-berget-destructive",
1673
1906
  className
1674
1907
  ),
1675
- children: /* @__PURE__ */ jsx25(SelectValue, { placeholder })
1908
+ children: /* @__PURE__ */ jsx26(SelectValue, { placeholder })
1676
1909
  }
1677
1910
  ),
1678
- /* @__PURE__ */ jsx25(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx25(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
1911
+ /* @__PURE__ */ jsx26(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx26(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
1679
1912
  ]
1680
1913
  }
1681
1914
  ),
1682
- description && /* @__PURE__ */ jsx25(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1683
- error && /* @__PURE__ */ jsx25(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1915
+ description && /* @__PURE__ */ jsx26(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
1916
+ error && /* @__PURE__ */ jsx26(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
1684
1917
  ] });
1685
1918
  }
1686
1919
  );
1687
1920
  Select2.displayName = "Select";
1688
1921
 
1689
1922
  // src/components/country-select/CountrySelect.tsx
1690
- import * as React28 from "react";
1691
- import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
1923
+ import * as React30 from "react";
1924
+ import { ChevronDown as ChevronDown3, Globe } from "lucide-react";
1692
1925
 
1693
1926
  // src/components/icon/Icon.tsx
1694
- import * as React24 from "react";
1695
- import { jsx as jsx26 } from "react/jsx-runtime";
1927
+ import * as React26 from "react";
1928
+ import { jsx as jsx27 } from "react/jsx-runtime";
1696
1929
  var iconStrokeMap = {
1697
1930
  16: 1.4,
1698
1931
  24: 1.6,
1699
1932
  32: 1.8
1700
1933
  };
1701
- var Icon2 = React24.forwardRef(
1934
+ var Icon = React26.forwardRef(
1702
1935
  ({
1703
1936
  icon: IconComponent,
1704
1937
  size,
@@ -1710,7 +1943,7 @@ var Icon2 = React24.forwardRef(
1710
1943
  const strokeWidth = iconStrokeMap[size];
1711
1944
  const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
1712
1945
  const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
1713
- return /* @__PURE__ */ jsx26(
1946
+ return /* @__PURE__ */ jsx27(
1714
1947
  IconComponent,
1715
1948
  {
1716
1949
  ref,
@@ -1722,77 +1955,87 @@ var Icon2 = React24.forwardRef(
1722
1955
  );
1723
1956
  }
1724
1957
  );
1725
- Icon2.displayName = "Icon";
1958
+ Icon.displayName = "Icon";
1726
1959
 
1727
1960
  // src/primitives/popover.tsx
1728
- import * as React25 from "react";
1729
- import * as PopoverPrimitive from "@radix-ui/react-popover";
1730
- import { jsx as jsx27 } from "react/jsx-runtime";
1961
+ import * as React27 from "react";
1962
+ import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
1963
+ import { jsx as jsx28 } from "react/jsx-runtime";
1731
1964
  var Popover = PopoverPrimitive.Root;
1732
- var PopoverTrigger = PopoverPrimitive.Trigger;
1733
- var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx27(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
1734
- PopoverPrimitive.Content,
1965
+ var PopoverTrigger = React27.forwardRef(
1966
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx28(PopoverPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
1967
+ );
1968
+ PopoverTrigger.displayName = "PopoverTrigger";
1969
+ var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx28(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx28(PopoverPrimitive.Positioner, { align, sideOffset, className: "isolate z-50", children: /* @__PURE__ */ jsx28(
1970
+ PopoverPrimitive.Popup,
1735
1971
  {
1736
1972
  ref,
1737
- align,
1738
- sideOffset,
1739
1973
  className: cn(
1740
- "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]",
1974
+ "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]",
1741
1975
  className
1742
1976
  ),
1743
1977
  ...props
1744
1978
  }
1745
- ) }));
1746
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1979
+ ) }) }));
1980
+ PopoverContent.displayName = "PopoverContent";
1747
1981
 
1748
1982
  // src/primitives/command.tsx
1749
- import * as React27 from "react";
1983
+ import * as React29 from "react";
1750
1984
  import { Command as CommandPrimitive } from "cmdk";
1751
1985
  import { Search } from "lucide-react";
1752
1986
 
1753
1987
  // src/primitives/dialog.tsx
1754
- import * as React26 from "react";
1755
- import * as DialogPrimitive2 from "@radix-ui/react-dialog";
1988
+ import * as React28 from "react";
1989
+ import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
1756
1990
  import { X as X2 } from "lucide-react";
1757
- import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1991
+ import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
1992
+ var Dialog2 = DialogPrimitive2.Root;
1993
+ var DialogTrigger2 = React28.forwardRef(
1994
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx29(DialogPrimitive2.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
1995
+ );
1996
+ DialogTrigger2.displayName = "DialogTrigger";
1758
1997
  var DialogPortal2 = DialogPrimitive2.Portal;
1759
- var DialogOverlay2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
1760
- DialogPrimitive2.Overlay,
1998
+ var DialogClose2 = React28.forwardRef(
1999
+ ({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx29(DialogPrimitive2.Close, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
2000
+ );
2001
+ DialogClose2.displayName = "DialogClose";
2002
+ var DialogOverlay2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2003
+ DialogPrimitive2.Backdrop,
1761
2004
  {
1762
2005
  ref,
1763
2006
  className: cn(
1764
- "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",
2007
+ "fixed inset-0 z-50 bg-black/80 transition-[opacity] duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0",
1765
2008
  className
1766
2009
  ),
1767
2010
  ...props
1768
2011
  }
1769
2012
  ));
1770
- DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
1771
- var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(DialogPortal2, { children: [
1772
- /* @__PURE__ */ jsx28(DialogOverlay2, {}),
1773
- /* @__PURE__ */ jsxs11(
1774
- DialogPrimitive2.Content,
2013
+ DialogOverlay2.displayName = "DialogOverlay";
2014
+ var DialogContent2 = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(DialogPortal2, { children: [
2015
+ /* @__PURE__ */ jsx29(DialogOverlay2, {}),
2016
+ /* @__PURE__ */ jsxs12(
2017
+ DialogPrimitive2.Popup,
1775
2018
  {
1776
2019
  ref,
1777
2020
  className: cn(
1778
- "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",
2021
+ "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",
1779
2022
  className
1780
2023
  ),
1781
2024
  ...props,
1782
2025
  children: [
1783
2026
  children,
1784
- /* @__PURE__ */ jsxs11(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: [
1785
- /* @__PURE__ */ jsx28(X2, { className: "h-4 w-4" }),
1786
- /* @__PURE__ */ jsx28("span", { className: "sr-only", children: "Close" })
2027
+ /* @__PURE__ */ jsxs12(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-open:bg-accent data-open:text-muted-foreground", children: [
2028
+ /* @__PURE__ */ jsx29(X2, { className: "h-4 w-4" }),
2029
+ /* @__PURE__ */ jsx29("span", { className: "sr-only", children: "Close" })
1787
2030
  ] })
1788
2031
  ]
1789
2032
  }
1790
2033
  )
1791
2034
  ] }));
1792
- DialogContent2.displayName = DialogPrimitive2.Content.displayName;
1793
- var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx28("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
2035
+ DialogContent2.displayName = "DialogContent";
2036
+ var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx29("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
1794
2037
  DialogHeader2.displayName = "DialogHeader";
1795
- var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx28(
2038
+ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx29(
1796
2039
  "div",
1797
2040
  {
1798
2041
  className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
@@ -1800,7 +2043,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx28(
1800
2043
  }
1801
2044
  );
1802
2045
  DialogFooter2.displayName = "DialogFooter";
1803
- var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
2046
+ var DialogTitle2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
1804
2047
  DialogPrimitive2.Title,
1805
2048
  {
1806
2049
  ref,
@@ -1808,8 +2051,8 @@ var DialogTitle2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
1808
2051
  ...props
1809
2052
  }
1810
2053
  ));
1811
- DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
1812
- var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
2054
+ DialogTitle2.displayName = "DialogTitle";
2055
+ var DialogDescription2 = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
1813
2056
  DialogPrimitive2.Description,
1814
2057
  {
1815
2058
  ref,
@@ -1817,11 +2060,11 @@ var DialogDescription2 = React26.forwardRef(({ className, ...props }, ref) => /*
1817
2060
  ...props
1818
2061
  }
1819
2062
  ));
1820
- DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
2063
+ DialogDescription2.displayName = "DialogDescription";
1821
2064
 
1822
2065
  // src/primitives/command.tsx
1823
- import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
1824
- var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2066
+ import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
2067
+ var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
1825
2068
  CommandPrimitive,
1826
2069
  {
1827
2070
  ref,
@@ -1833,9 +2076,9 @@ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1833
2076
  }
1834
2077
  ));
1835
2078
  Command.displayName = CommandPrimitive.displayName;
1836
- var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs12("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1837
- /* @__PURE__ */ jsx29(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1838
- /* @__PURE__ */ jsx29(
2079
+ var CommandInput = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
2080
+ /* @__PURE__ */ jsx30(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
2081
+ /* @__PURE__ */ jsx30(
1839
2082
  CommandPrimitive.Input,
1840
2083
  {
1841
2084
  ref,
@@ -1848,7 +2091,7 @@ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
1848
2091
  )
1849
2092
  ] }));
1850
2093
  CommandInput.displayName = CommandPrimitive.Input.displayName;
1851
- var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2094
+ var CommandList = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
1852
2095
  CommandPrimitive.List,
1853
2096
  {
1854
2097
  ref,
@@ -1857,9 +2100,9 @@ var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
1857
2100
  }
1858
2101
  ));
1859
2102
  CommandList.displayName = CommandPrimitive.List.displayName;
1860
- var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ jsx29(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
2103
+ var CommandEmpty = React29.forwardRef((props, ref) => /* @__PURE__ */ jsx30(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
1861
2104
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1862
- var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2105
+ var CommandGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
1863
2106
  CommandPrimitive.Group,
1864
2107
  {
1865
2108
  ref,
@@ -1871,7 +2114,7 @@ var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
1871
2114
  }
1872
2115
  ));
1873
2116
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
1874
- var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2117
+ var CommandSeparator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
1875
2118
  CommandPrimitive.Separator,
1876
2119
  {
1877
2120
  ref,
@@ -1880,7 +2123,7 @@ var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @
1880
2123
  }
1881
2124
  ));
1882
2125
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1883
- var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
2126
+ var CommandItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
1884
2127
  CommandPrimitive.Item,
1885
2128
  {
1886
2129
  ref,
@@ -1893,7 +2136,7 @@ var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
1893
2136
  ));
1894
2137
  CommandItem.displayName = CommandPrimitive.Item.displayName;
1895
2138
  var CommandShortcut = ({ className, ...props }) => {
1896
- return /* @__PURE__ */ jsx29(
2139
+ return /* @__PURE__ */ jsx30(
1897
2140
  "span",
1898
2141
  {
1899
2142
  className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
@@ -2044,8 +2287,8 @@ var isEUCountry = (countryCode) => {
2044
2287
  };
2045
2288
 
2046
2289
  // src/components/country-select/CountrySelect.tsx
2047
- import { Fragment, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
2048
- var CountrySelect = React28.forwardRef(
2290
+ import { Fragment as Fragment4, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
2291
+ var CountrySelect = React30.forwardRef(
2049
2292
  ({
2050
2293
  value,
2051
2294
  onValueChange,
@@ -2055,10 +2298,10 @@ var CountrySelect = React28.forwardRef(
2055
2298
  align = "center",
2056
2299
  sideOffset = 4
2057
2300
  }, ref) => {
2058
- const [open, setOpen] = React28.useState(false);
2059
- const selectedCountry = React28.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
2060
- return /* @__PURE__ */ jsxs13(Popover, { open, onOpenChange: setOpen, children: [
2061
- /* @__PURE__ */ jsx30(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs13(
2301
+ const [open, setOpen] = React30.useState(false);
2302
+ const selectedCountry = React30.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
2303
+ return /* @__PURE__ */ jsxs14(Popover, { open, onOpenChange: setOpen, children: [
2304
+ /* @__PURE__ */ jsx31(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(
2062
2305
  "button",
2063
2306
  {
2064
2307
  ref,
@@ -2079,29 +2322,29 @@ var CountrySelect = React28.forwardRef(
2079
2322
  className
2080
2323
  ),
2081
2324
  children: [
2082
- /* @__PURE__ */ jsx30("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs13(Fragment, { children: [
2083
- /* @__PURE__ */ jsx30("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
2084
- /* @__PURE__ */ jsx30("span", { className: "truncate", children: selectedCountry.name }),
2085
- /* @__PURE__ */ jsxs13("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
2325
+ /* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs14(Fragment4, { children: [
2326
+ /* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
2327
+ /* @__PURE__ */ jsx31("span", { className: "truncate", children: selectedCountry.name }),
2328
+ /* @__PURE__ */ jsxs14("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
2086
2329
  "(",
2087
2330
  selectedCountry.code,
2088
2331
  ")"
2089
2332
  ] })
2090
- ] }) : /* @__PURE__ */ jsxs13(Fragment, { children: [
2091
- /* @__PURE__ */ jsx30(
2092
- Icon2,
2333
+ ] }) : /* @__PURE__ */ jsxs14(Fragment4, { children: [
2334
+ /* @__PURE__ */ jsx31(
2335
+ Icon,
2093
2336
  {
2094
2337
  icon: Globe,
2095
2338
  size: 16,
2096
2339
  className: "flex-shrink-0 text-berget-muted-foreground"
2097
2340
  }
2098
2341
  ),
2099
- /* @__PURE__ */ jsx30("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
2342
+ /* @__PURE__ */ jsx31("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
2100
2343
  ] }) }),
2101
- /* @__PURE__ */ jsx30(
2102
- Icon2,
2344
+ /* @__PURE__ */ jsx31(
2345
+ Icon,
2103
2346
  {
2104
- icon: ChevronDown2,
2347
+ icon: ChevronDown3,
2105
2348
  size: 16,
2106
2349
  className: cn(
2107
2350
  "flex-shrink-0 text-berget-muted-foreground",
@@ -2113,17 +2356,17 @@ var CountrySelect = React28.forwardRef(
2113
2356
  ]
2114
2357
  }
2115
2358
  ) }),
2116
- /* @__PURE__ */ jsx30(
2359
+ /* @__PURE__ */ jsx31(
2117
2360
  PopoverContent,
2118
2361
  {
2119
2362
  align,
2120
2363
  sideOffset,
2121
2364
  className: "w-[var(--radix-popover-trigger-width)] p-0",
2122
- children: /* @__PURE__ */ jsxs13(Command, { children: [
2123
- /* @__PURE__ */ jsx30(CommandInput, { placeholder: "Search country..." }),
2124
- /* @__PURE__ */ jsxs13(CommandList, { children: [
2125
- /* @__PURE__ */ jsx30(CommandEmpty, { children: "No countries found." }),
2126
- /* @__PURE__ */ jsx30(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs13(
2365
+ children: /* @__PURE__ */ jsxs14(Command, { children: [
2366
+ /* @__PURE__ */ jsx31(CommandInput, { placeholder: "Search country..." }),
2367
+ /* @__PURE__ */ jsxs14(CommandList, { children: [
2368
+ /* @__PURE__ */ jsx31(CommandEmpty, { children: "No countries found." }),
2369
+ /* @__PURE__ */ jsx31(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs14(
2127
2370
  CommandItem,
2128
2371
  {
2129
2372
  value: `${country.name} ${country.code}`,
@@ -2137,12 +2380,12 @@ var CountrySelect = React28.forwardRef(
2137
2380
  value === country.code && "bg-berget-brand-granite-800/40"
2138
2381
  ),
2139
2382
  children: [
2140
- /* @__PURE__ */ jsx30("span", { className: "text-xl flex-shrink-0", children: country.flag }),
2141
- /* @__PURE__ */ jsxs13("div", { className: "flex-1 min-w-0", children: [
2142
- /* @__PURE__ */ jsx30("div", { className: "text-sm truncate", children: country.name }),
2143
- /* @__PURE__ */ jsx30("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
2383
+ /* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: country.flag }),
2384
+ /* @__PURE__ */ jsxs14("div", { className: "flex-1 min-w-0", children: [
2385
+ /* @__PURE__ */ jsx31("div", { className: "text-sm truncate", children: country.name }),
2386
+ /* @__PURE__ */ jsx31("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
2144
2387
  ] }),
2145
- value === country.code && /* @__PURE__ */ jsx30("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
2388
+ value === country.code && /* @__PURE__ */ jsx31("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
2146
2389
  ]
2147
2390
  },
2148
2391
  country.code
@@ -2157,15 +2400,15 @@ var CountrySelect = React28.forwardRef(
2157
2400
  CountrySelect.displayName = "CountrySelect";
2158
2401
 
2159
2402
  // src/components/text-area/TextArea.tsx
2160
- import * as React30 from "react";
2161
- import { cva as cva11 } from "class-variance-authority";
2403
+ import * as React32 from "react";
2404
+ import { cva as cva12 } from "class-variance-authority";
2162
2405
 
2163
2406
  // src/primitives/textarea.tsx
2164
- import * as React29 from "react";
2165
- import { jsx as jsx31 } from "react/jsx-runtime";
2166
- var Textarea = React29.forwardRef(
2407
+ import * as React31 from "react";
2408
+ import { jsx as jsx32 } from "react/jsx-runtime";
2409
+ var Textarea = React31.forwardRef(
2167
2410
  ({ className, ...props }, ref) => {
2168
- return /* @__PURE__ */ jsx31(
2411
+ return /* @__PURE__ */ jsx32(
2169
2412
  "textarea",
2170
2413
  {
2171
2414
  className: cn(
@@ -2181,8 +2424,8 @@ var Textarea = React29.forwardRef(
2181
2424
  Textarea.displayName = "Textarea";
2182
2425
 
2183
2426
  // src/components/text-area/TextArea.tsx
2184
- import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
2185
- var textAreaVariants = cva11(
2427
+ import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
2428
+ var textAreaVariants = cva12(
2186
2429
  "rounded-berget-xs bg-card px-4 py-3 transition-colors duration-200 focus-visible:border-berget-form-focus-border focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",
2187
2430
  {
2188
2431
  variants: {
@@ -2204,7 +2447,7 @@ var textAreaVariants = cva11(
2204
2447
  }
2205
2448
  }
2206
2449
  );
2207
- var TextArea = React30.forwardRef(
2450
+ var TextArea = React32.forwardRef(
2208
2451
  ({
2209
2452
  className,
2210
2453
  variant,
@@ -2224,13 +2467,13 @@ var TextArea = React30.forwardRef(
2224
2467
  actionButton,
2225
2468
  ...props
2226
2469
  }, ref) => {
2227
- const generatedId = React30.useId();
2470
+ const generatedId = React32.useId();
2228
2471
  const textareaId = id || generatedId;
2229
2472
  const errorId = `${textareaId}-error`;
2230
2473
  const descriptionId = `${textareaId}-description`;
2231
2474
  const characterCount = typeof value === "string" ? value.length : 0;
2232
- return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
2233
- label && /* @__PURE__ */ jsx32(
2475
+ return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-2", children: [
2476
+ label && /* @__PURE__ */ jsx33(
2234
2477
  "label",
2235
2478
  {
2236
2479
  htmlFor: textareaId,
@@ -2242,9 +2485,9 @@ var TextArea = React30.forwardRef(
2242
2485
  children: label
2243
2486
  }
2244
2487
  ),
2245
- /* @__PURE__ */ jsxs14("div", { className: "relative", children: [
2246
- icon && /* @__PURE__ */ jsx32("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
2247
- /* @__PURE__ */ jsx32(
2488
+ /* @__PURE__ */ jsxs15("div", { className: "relative", children: [
2489
+ icon && /* @__PURE__ */ jsx33("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
2490
+ /* @__PURE__ */ jsx33(
2248
2491
  Textarea,
2249
2492
  {
2250
2493
  ref,
@@ -2269,13 +2512,13 @@ var TextArea = React30.forwardRef(
2269
2512
  ...props
2270
2513
  }
2271
2514
  ),
2272
- secondaryIcon && /* @__PURE__ */ jsx32("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
2273
- actionButton && /* @__PURE__ */ jsx32("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
2515
+ secondaryIcon && /* @__PURE__ */ jsx33("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
2516
+ actionButton && /* @__PURE__ */ jsx33("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
2274
2517
  ] }),
2275
- (description || error || showCount && maxLength) && /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between gap-2", children: [
2276
- description && /* @__PURE__ */ jsx32(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
2277
- (error || showCount && maxLength) && /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2 ml-auto", children: [
2278
- showCount && maxLength && /* @__PURE__ */ jsxs14(
2518
+ (description || error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between gap-2", children: [
2519
+ description && /* @__PURE__ */ jsx33(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
2520
+ (error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2 ml-auto", children: [
2521
+ showCount && maxLength && /* @__PURE__ */ jsxs15(
2279
2522
  Typography,
2280
2523
  {
2281
2524
  variant: "xs",
@@ -2289,7 +2532,7 @@ var TextArea = React30.forwardRef(
2289
2532
  ]
2290
2533
  }
2291
2534
  ),
2292
- error && /* @__PURE__ */ jsx32(
2535
+ error && /* @__PURE__ */ jsx33(
2293
2536
  Typography,
2294
2537
  {
2295
2538
  variant: "xs",
@@ -2306,22 +2549,21 @@ var TextArea = React30.forwardRef(
2306
2549
  TextArea.displayName = "TextArea";
2307
2550
 
2308
2551
  // src/primitives/label.tsx
2309
- import * as React31 from "react";
2310
- import * as LabelPrimitive from "@radix-ui/react-label";
2311
- import { cva as cva12 } from "class-variance-authority";
2312
- import { jsx as jsx33 } from "react/jsx-runtime";
2313
- var labelVariants = cva12(
2552
+ import * as React33 from "react";
2553
+ import { cva as cva13 } from "class-variance-authority";
2554
+ import { jsx as jsx34 } from "react/jsx-runtime";
2555
+ var labelVariants = cva13(
2314
2556
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2315
2557
  );
2316
- var Label3 = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
2317
- Label3.displayName = LabelPrimitive.Root.displayName;
2558
+ var Label = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("label", { ref, className: cn(labelVariants(), className), ...props }));
2559
+ Label.displayName = "Label";
2318
2560
 
2319
2561
  // src/primitives/field.tsx
2320
2562
  import { useMemo as useMemo3 } from "react";
2321
- import { cva as cva13 } from "class-variance-authority";
2322
- import { jsx as jsx34, jsxs as jsxs15 } from "react/jsx-runtime";
2563
+ import { cva as cva14 } from "class-variance-authority";
2564
+ import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
2323
2565
  function FieldSet({ className, ...props }) {
2324
- return /* @__PURE__ */ jsx34(
2566
+ return /* @__PURE__ */ jsx35(
2325
2567
  "fieldset",
2326
2568
  {
2327
2569
  "data-slot": "field-set",
@@ -2339,7 +2581,7 @@ function FieldLegend({
2339
2581
  variant = "legend",
2340
2582
  ...props
2341
2583
  }) {
2342
- return /* @__PURE__ */ jsx34(
2584
+ return /* @__PURE__ */ jsx35(
2343
2585
  "legend",
2344
2586
  {
2345
2587
  "data-slot": "field-legend",
@@ -2355,7 +2597,7 @@ function FieldLegend({
2355
2597
  );
2356
2598
  }
2357
2599
  function FieldGroup({ className, ...props }) {
2358
- return /* @__PURE__ */ jsx34(
2600
+ return /* @__PURE__ */ jsx35(
2359
2601
  "div",
2360
2602
  {
2361
2603
  "data-slot": "field-group",
@@ -2367,7 +2609,7 @@ function FieldGroup({ className, ...props }) {
2367
2609
  }
2368
2610
  );
2369
2611
  }
2370
- var fieldVariants = cva13(
2612
+ var fieldVariants = cva14(
2371
2613
  "group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
2372
2614
  {
2373
2615
  variants: {
@@ -2395,7 +2637,7 @@ function Field({
2395
2637
  orientation = "vertical",
2396
2638
  ...props
2397
2639
  }) {
2398
- return /* @__PURE__ */ jsx34(
2640
+ return /* @__PURE__ */ jsx35(
2399
2641
  "div",
2400
2642
  {
2401
2643
  role: "group",
@@ -2407,7 +2649,7 @@ function Field({
2407
2649
  );
2408
2650
  }
2409
2651
  function FieldContent({ className, ...props }) {
2410
- return /* @__PURE__ */ jsx34(
2652
+ return /* @__PURE__ */ jsx35(
2411
2653
  "div",
2412
2654
  {
2413
2655
  "data-slot": "field-content",
@@ -2417,8 +2659,8 @@ function FieldContent({ className, ...props }) {
2417
2659
  );
2418
2660
  }
2419
2661
  function FieldLabel({ className, ...props }) {
2420
- return /* @__PURE__ */ jsx34(
2421
- Label3,
2662
+ return /* @__PURE__ */ jsx35(
2663
+ Label,
2422
2664
  {
2423
2665
  "data-slot": "field-label",
2424
2666
  className: cn(
@@ -2432,7 +2674,7 @@ function FieldLabel({ className, ...props }) {
2432
2674
  );
2433
2675
  }
2434
2676
  function FieldTitle({ className, ...props }) {
2435
- return /* @__PURE__ */ jsx34(
2677
+ return /* @__PURE__ */ jsx35(
2436
2678
  "div",
2437
2679
  {
2438
2680
  "data-slot": "field-label",
@@ -2445,7 +2687,7 @@ function FieldTitle({ className, ...props }) {
2445
2687
  );
2446
2688
  }
2447
2689
  function FieldDescription({ className, ...props }) {
2448
- return /* @__PURE__ */ jsx34(
2690
+ return /* @__PURE__ */ jsx35(
2449
2691
  "p",
2450
2692
  {
2451
2693
  "data-slot": "field-description",
@@ -2464,7 +2706,7 @@ function FieldSeparator({
2464
2706
  className,
2465
2707
  ...props
2466
2708
  }) {
2467
- return /* @__PURE__ */ jsxs15(
2709
+ return /* @__PURE__ */ jsxs16(
2468
2710
  "div",
2469
2711
  {
2470
2712
  "data-slot": "field-separator",
@@ -2475,8 +2717,8 @@ function FieldSeparator({
2475
2717
  ),
2476
2718
  ...props,
2477
2719
  children: [
2478
- /* @__PURE__ */ jsx34(Separator2, { className: "absolute inset-0 top-1/2" }),
2479
- children && /* @__PURE__ */ jsx34(
2720
+ /* @__PURE__ */ jsx35(Separator, { className: "absolute inset-0 top-1/2" }),
2721
+ children && /* @__PURE__ */ jsx35(
2480
2722
  "span",
2481
2723
  {
2482
2724
  className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
@@ -2504,12 +2746,12 @@ function FieldError({
2504
2746
  if (errors?.length === 1 && errors[0]?.message) {
2505
2747
  return errors[0].message;
2506
2748
  }
2507
- return /* @__PURE__ */ jsx34("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx34("li", { children: error.message }, index)) });
2749
+ return /* @__PURE__ */ jsx35("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx35("li", { children: error.message }, index)) });
2508
2750
  }, [children, errors]);
2509
2751
  if (!content) {
2510
2752
  return null;
2511
2753
  }
2512
- return /* @__PURE__ */ jsx34(
2754
+ return /* @__PURE__ */ jsx35(
2513
2755
  "div",
2514
2756
  {
2515
2757
  role: "alert",
@@ -2522,11 +2764,11 @@ function FieldError({
2522
2764
  }
2523
2765
 
2524
2766
  // src/components/link/Link.tsx
2525
- import * as React32 from "react";
2526
- import { cva as cva14 } from "class-variance-authority";
2767
+ import * as React34 from "react";
2768
+ import { cva as cva15 } from "class-variance-authority";
2527
2769
  import { ExternalLink } from "lucide-react";
2528
- import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
2529
- var linkVariants = cva14(
2770
+ import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
2771
+ var linkVariants = cva15(
2530
2772
  "inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
2531
2773
  {
2532
2774
  variants: {
@@ -2550,7 +2792,7 @@ var linkVariants = cva14(
2550
2792
  }
2551
2793
  }
2552
2794
  );
2553
- var Link = React32.forwardRef(
2795
+ var Link = React34.forwardRef(
2554
2796
  ({
2555
2797
  className,
2556
2798
  variant,
@@ -2563,7 +2805,7 @@ var Link = React32.forwardRef(
2563
2805
  ...props
2564
2806
  }, ref) => {
2565
2807
  const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
2566
- return /* @__PURE__ */ jsxs16(
2808
+ return /* @__PURE__ */ jsxs17(
2567
2809
  "a",
2568
2810
  {
2569
2811
  ref,
@@ -2579,8 +2821,8 @@ var Link = React32.forwardRef(
2579
2821
  },
2580
2822
  children: [
2581
2823
  children,
2582
- icon && /* @__PURE__ */ jsx35("span", { className: "inline-flex items-center", children: icon }),
2583
- showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx35("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx35(Icon2, { icon: ExternalLink, size: 16 }) })
2824
+ icon && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center", children: icon }),
2825
+ showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx36(Icon, { icon: ExternalLink, size: 16 }) })
2584
2826
  ]
2585
2827
  }
2586
2828
  );
@@ -2589,11 +2831,11 @@ var Link = React32.forwardRef(
2589
2831
  Link.displayName = "Link";
2590
2832
 
2591
2833
  // src/components/container/Container.tsx
2592
- import * as React33 from "react";
2593
- import { Slot as Slot3 } from "@radix-ui/react-slot";
2594
- import { cva as cva15 } from "class-variance-authority";
2595
- import { jsx as jsx36 } from "react/jsx-runtime";
2596
- var containerVariants = cva15("w-full mx-auto", {
2834
+ import * as React35 from "react";
2835
+ import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
2836
+ import { useRender as useRender2 } from "@base-ui/react/use-render";
2837
+ import { cva as cva16 } from "class-variance-authority";
2838
+ var containerVariants = cva16("w-full mx-auto", {
2597
2839
  variants: {
2598
2840
  size: {
2599
2841
  sm: "max-w-3xl",
@@ -2614,28 +2856,30 @@ var containerVariants = cva15("w-full mx-auto", {
2614
2856
  padding: "md"
2615
2857
  }
2616
2858
  });
2617
- var Container = React33.forwardRef(
2859
+ var Container = React35.forwardRef(
2618
2860
  ({ className, size, padding, asChild = false, children, ...props }, ref) => {
2619
- const Component = asChild ? Slot3 : "div";
2620
- return /* @__PURE__ */ jsx36(
2621
- Component,
2622
- {
2623
- ref,
2624
- className: cn(containerVariants({ size, padding }), className),
2625
- ...props,
2626
- children
2627
- }
2628
- );
2861
+ return useRender2({
2862
+ ref,
2863
+ defaultTagName: "div",
2864
+ render: asChild ? children : void 0,
2865
+ props: mergeProps2(
2866
+ {
2867
+ className: cn(containerVariants({ size, padding }), className),
2868
+ children: asChild ? void 0 : children
2869
+ },
2870
+ props
2871
+ )
2872
+ });
2629
2873
  }
2630
2874
  );
2631
2875
  Container.displayName = "Container";
2632
2876
 
2633
2877
  // src/components/grid/Grid.tsx
2634
- import * as React34 from "react";
2635
- import { cva as cva16 } from "class-variance-authority";
2636
- import { Slot as Slot4 } from "@radix-ui/react-slot";
2637
- import { jsx as jsx37 } from "react/jsx-runtime";
2638
- var gridVariants = cva16("grid", {
2878
+ import * as React36 from "react";
2879
+ import { cva as cva17 } from "class-variance-authority";
2880
+ import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
2881
+ import { useRender as useRender3 } from "@base-ui/react/use-render";
2882
+ var gridVariants = cva17("grid", {
2639
2883
  variants: {
2640
2884
  align: {
2641
2885
  start: "items-start",
@@ -2657,36 +2901,38 @@ var gridVariants = cva16("grid", {
2657
2901
  justify: "start"
2658
2902
  }
2659
2903
  });
2660
- var Grid = React34.forwardRef(
2904
+ var Grid = React36.forwardRef(
2661
2905
  ({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
2662
- const Component = asChild ? Slot4 : "div";
2663
- return /* @__PURE__ */ jsx37(
2664
- Component,
2665
- {
2666
- ref,
2667
- className: cn(
2668
- gridVariants({ align, justify }),
2669
- cols !== void 0 && `grid-cols-${cols}`,
2670
- rows !== void 0 && `grid-rows-${rows}`,
2671
- gap !== void 0 && `gap-${gap}`,
2672
- gapX !== void 0 && `gap-x-${gapX}`,
2673
- gapY !== void 0 && `gap-y-${gapY}`,
2674
- className
2675
- ),
2676
- ...props,
2677
- children
2678
- }
2679
- );
2906
+ return useRender3({
2907
+ ref,
2908
+ defaultTagName: "div",
2909
+ render: asChild ? children : void 0,
2910
+ props: mergeProps3(
2911
+ {
2912
+ className: cn(
2913
+ gridVariants({ align, justify }),
2914
+ cols !== void 0 && `grid-cols-${cols}`,
2915
+ rows !== void 0 && `grid-rows-${rows}`,
2916
+ gap !== void 0 && `gap-${gap}`,
2917
+ gapX !== void 0 && `gap-x-${gapX}`,
2918
+ gapY !== void 0 && `gap-y-${gapY}`,
2919
+ className
2920
+ ),
2921
+ children: asChild ? void 0 : children
2922
+ },
2923
+ props
2924
+ )
2925
+ });
2680
2926
  }
2681
2927
  );
2682
2928
  Grid.displayName = "Grid";
2683
2929
 
2684
2930
  // src/components/box/Box.tsx
2685
- import * as React35 from "react";
2686
- import { cva as cva17 } from "class-variance-authority";
2687
- import { Slot as Slot5 } from "@radix-ui/react-slot";
2688
- import { jsx as jsx38 } from "react/jsx-runtime";
2689
- var boxVariants = cva17("flex", {
2931
+ import * as React37 from "react";
2932
+ import { cva as cva18 } from "class-variance-authority";
2933
+ import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
2934
+ import { useRender as useRender4 } from "@base-ui/react/use-render";
2935
+ var boxVariants = cva18("flex", {
2690
2936
  variants: {
2691
2937
  direction: {
2692
2938
  row: "flex-row",
@@ -2722,37 +2968,39 @@ var boxVariants = cva17("flex", {
2722
2968
  wrap: "nowrap"
2723
2969
  }
2724
2970
  });
2725
- var Box = React35.forwardRef(
2971
+ var Box = React37.forwardRef(
2726
2972
  ({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
2727
- const Component = asChild ? Slot5 : "div";
2728
- return /* @__PURE__ */ jsx38(
2729
- Component,
2730
- {
2731
- ref,
2732
- className: cn(
2733
- boxVariants({ direction, align, justify, wrap }),
2734
- gap !== void 0 && `gap-${gap}`,
2735
- className
2736
- ),
2737
- ...props,
2738
- children
2739
- }
2740
- );
2973
+ return useRender4({
2974
+ ref,
2975
+ defaultTagName: "div",
2976
+ render: asChild ? children : void 0,
2977
+ props: mergeProps4(
2978
+ {
2979
+ className: cn(
2980
+ boxVariants({ direction, align, justify, wrap }),
2981
+ gap !== void 0 && `gap-${gap}`,
2982
+ className
2983
+ ),
2984
+ children: asChild ? void 0 : children
2985
+ },
2986
+ props
2987
+ )
2988
+ });
2741
2989
  }
2742
2990
  );
2743
2991
  Box.displayName = "Box";
2744
2992
 
2745
2993
  // src/components/berget-logo/BergetLogo.tsx
2746
- import * as React36 from "react";
2747
- import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
2748
- var BergetLogo = React36.forwardRef(
2994
+ import * as React38 from "react";
2995
+ import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
2996
+ var BergetLogo = React38.forwardRef(
2749
2997
  ({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
2750
2998
  const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
2751
2999
  if (variant === "symbol") {
2752
3000
  const aspectRatio2 = 463 / 419;
2753
3001
  const width2 = size * aspectRatio2;
2754
3002
  const height2 = size;
2755
- return /* @__PURE__ */ jsx39(
3003
+ return /* @__PURE__ */ jsx37(
2756
3004
  "svg",
2757
3005
  {
2758
3006
  ref,
@@ -2765,7 +3013,7 @@ var BergetLogo = React36.forwardRef(
2765
3013
  "aria-label": "Berget symbol",
2766
3014
  className: cn("inline-block", className),
2767
3015
  ...props,
2768
- children: /* @__PURE__ */ jsx39(
3016
+ children: /* @__PURE__ */ jsx37(
2769
3017
  "path",
2770
3018
  {
2771
3019
  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",
@@ -2778,7 +3026,7 @@ var BergetLogo = React36.forwardRef(
2778
3026
  const aspectRatio = 793.63 / 204.37;
2779
3027
  const width = size * aspectRatio;
2780
3028
  const height = size;
2781
- return /* @__PURE__ */ jsxs17(
3029
+ return /* @__PURE__ */ jsxs18(
2782
3030
  "svg",
2783
3031
  {
2784
3032
  ref,
@@ -2792,59 +3040,59 @@ var BergetLogo = React36.forwardRef(
2792
3040
  className: cn("inline-block", className),
2793
3041
  ...props,
2794
3042
  children: [
2795
- /* @__PURE__ */ jsxs17("g", { style: { fill: fillColor }, children: [
2796
- /* @__PURE__ */ jsx39(
3043
+ /* @__PURE__ */ jsxs18("g", { style: { fill: fillColor }, children: [
3044
+ /* @__PURE__ */ jsx37(
2797
3045
  "path",
2798
3046
  {
2799
3047
  className: "berget-logotype-fill",
2800
3048
  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"
2801
3049
  }
2802
3050
  ),
2803
- /* @__PURE__ */ jsx39(
3051
+ /* @__PURE__ */ jsx37(
2804
3052
  "path",
2805
3053
  {
2806
3054
  className: "berget-logotype-fill",
2807
3055
  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"
2808
3056
  }
2809
3057
  ),
2810
- /* @__PURE__ */ jsx39(
3058
+ /* @__PURE__ */ jsx37(
2811
3059
  "path",
2812
3060
  {
2813
3061
  className: "berget-logotype-fill",
2814
3062
  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"
2815
3063
  }
2816
3064
  ),
2817
- /* @__PURE__ */ jsx39(
3065
+ /* @__PURE__ */ jsx37(
2818
3066
  "path",
2819
3067
  {
2820
3068
  className: "berget-logotype-fill",
2821
3069
  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"
2822
3070
  }
2823
3071
  ),
2824
- /* @__PURE__ */ jsx39(
3072
+ /* @__PURE__ */ jsx37(
2825
3073
  "path",
2826
3074
  {
2827
3075
  className: "berget-logotype-fill",
2828
3076
  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"
2829
3077
  }
2830
3078
  ),
2831
- /* @__PURE__ */ jsx39(
3079
+ /* @__PURE__ */ jsx37(
2832
3080
  "path",
2833
3081
  {
2834
3082
  className: "berget-logotype-fill",
2835
3083
  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"
2836
3084
  }
2837
3085
  ),
2838
- /* @__PURE__ */ jsx39(
3086
+ /* @__PURE__ */ jsx37(
2839
3087
  "path",
2840
3088
  {
2841
3089
  className: "berget-logotype-fill",
2842
3090
  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"
2843
3091
  }
2844
3092
  ),
2845
- /* @__PURE__ */ jsx39("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
3093
+ /* @__PURE__ */ jsx37("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
2846
3094
  ] }),
2847
- /* @__PURE__ */ jsx39(
3095
+ /* @__PURE__ */ jsx37(
2848
3096
  "path",
2849
3097
  {
2850
3098
  style: { fill: fillColor },
@@ -2859,103 +3107,110 @@ var BergetLogo = React36.forwardRef(
2859
3107
  BergetLogo.displayName = "BergetLogo";
2860
3108
 
2861
3109
  // src/components/language-select/LanguageSelect.tsx
2862
- import * as React37 from "react";
2863
- import * as SelectPrimitive2 from "@radix-ui/react-select";
3110
+ import * as React39 from "react";
3111
+ import { Select as SelectPrimitive2 } from "@base-ui/react/select";
2864
3112
  import { Globe as Globe2 } from "lucide-react";
2865
- import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
2866
- var LanguageSelect = React37.forwardRef(({ className, options, value, onValueChange }, ref) => {
2867
- return /* @__PURE__ */ jsxs18(SelectPrimitive2.Root, { value, onValueChange, children: [
2868
- /* @__PURE__ */ jsxs18(
2869
- SelectPrimitive2.Trigger,
3113
+ import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
3114
+ var LanguageSelect = React39.forwardRef(
3115
+ ({ className, options, value, onValueChange }, ref) => {
3116
+ return /* @__PURE__ */ jsxs19(
3117
+ SelectPrimitive2.Root,
2870
3118
  {
2871
- ref,
2872
- "aria-label": "Select language",
2873
- className: cn(
2874
- // Base styles
2875
- "h-8 w-8 p-0 rounded-full",
2876
- "flex items-center justify-center",
2877
- // Border and background
2878
- "border border-berget-border-subtle",
2879
- "bg-transparent",
2880
- // Hover effect
2881
- "hover:bg-berget-surface-hover",
2882
- // Transitions
2883
- "transition-all duration-200",
2884
- // Focus styles - remove all focus rings
2885
- "focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",
2886
- // Disabled state
2887
- "disabled:cursor-not-allowed disabled:opacity-50",
2888
- className
2889
- ),
3119
+ value,
3120
+ onValueChange: onValueChange ? (v) => onValueChange(v ?? "") : void 0,
2890
3121
  children: [
2891
- /* @__PURE__ */ jsx40("span", { className: "sr-only", children: "Select language" }),
2892
- /* @__PURE__ */ jsx40(Icon2, { icon: Globe2, size: 16, "aria-hidden": true })
3122
+ /* @__PURE__ */ jsxs19(
3123
+ SelectPrimitive2.Trigger,
3124
+ {
3125
+ ref,
3126
+ "aria-label": "Select language",
3127
+ className: cn(
3128
+ // Base styles
3129
+ "h-8 w-8 p-0 rounded-full",
3130
+ "flex items-center justify-center",
3131
+ // Border and background
3132
+ "border border-berget-border-subtle",
3133
+ "bg-transparent",
3134
+ // Hover effect
3135
+ "hover:bg-berget-surface-hover",
3136
+ // Transitions
3137
+ "transition-all duration-200",
3138
+ // Focus styles - remove all focus rings
3139
+ "focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",
3140
+ // Disabled state
3141
+ "disabled:cursor-not-allowed disabled:opacity-50",
3142
+ className
3143
+ ),
3144
+ children: [
3145
+ /* @__PURE__ */ jsx38("span", { className: "sr-only", children: "Select language" }),
3146
+ /* @__PURE__ */ jsx38(Icon, { icon: Globe2, size: 16, "aria-hidden": true })
3147
+ ]
3148
+ }
3149
+ ),
3150
+ /* @__PURE__ */ jsx38(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx38(SelectPrimitive2.Positioner, { alignItemWithTrigger: false, className: "isolate z-50", children: /* @__PURE__ */ jsx38(
3151
+ SelectPrimitive2.Popup,
3152
+ {
3153
+ className: cn(
3154
+ // Positioning and z-index
3155
+ "z-50 min-w-[8rem]",
3156
+ // Overflow handling
3157
+ "overflow-y-auto overflow-x-hidden",
3158
+ // Border and background
3159
+ "border border-berget-border bg-berget-background",
3160
+ "text-berget-foreground",
3161
+ // Shadow
3162
+ "shadow-berget-lg",
3163
+ // Rounded corners
3164
+ "rounded-md",
3165
+ // Animations
3166
+ "transition-[opacity,transform]",
3167
+ "data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95",
3168
+ // Position-based animations
3169
+ "data-[side=bottom]:slide-in-from-top-2",
3170
+ "data-[side=left]:slide-in-from-right-2",
3171
+ "data-[side=right]:slide-in-from-left-2",
3172
+ "data-[side=top]:slide-in-from-bottom-2",
3173
+ // Origin for transforms
3174
+ "origin-[--transform-origin]"
3175
+ ),
3176
+ children: /* @__PURE__ */ jsx38(SelectPrimitive2.List, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx38(
3177
+ SelectPrimitive2.Item,
3178
+ {
3179
+ value: option.value,
3180
+ disabled: option.disabled,
3181
+ className: cn(
3182
+ // Layout
3183
+ "relative flex w-full cursor-default",
3184
+ "select-none items-center rounded-sm py-2 px-3",
3185
+ // Text
3186
+ "text-sm outline-none",
3187
+ // Focus/hover styles
3188
+ "focus:bg-berget-primary-tint focus:text-berget-foreground",
3189
+ "hover:bg-berget-primary-tint",
3190
+ // Disabled state
3191
+ "data-disabled:pointer-events-none data-disabled:opacity-50"
3192
+ ),
3193
+ children: /* @__PURE__ */ jsx38(SelectPrimitive2.ItemText, { children: option.label })
3194
+ },
3195
+ option.value
3196
+ )) })
3197
+ }
3198
+ ) }) })
2893
3199
  ]
2894
3200
  }
2895
- ),
2896
- /* @__PURE__ */ jsx40(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx40(
2897
- SelectPrimitive2.Content,
2898
- {
2899
- className: cn(
2900
- // Positioning and z-index
2901
- "relative z-50 min-w-[8rem]",
2902
- // Overflow handling
2903
- "overflow-y-auto overflow-x-hidden",
2904
- // Border and background
2905
- "border border-berget-border bg-berget-background",
2906
- "text-berget-foreground",
2907
- // Shadow
2908
- "shadow-berget-lg",
2909
- // Rounded corners
2910
- "rounded-md",
2911
- // Animations
2912
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
2913
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2914
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
2915
- // Position-based animations
2916
- "data-[side=bottom]:slide-in-from-top-2",
2917
- "data-[side=left]:slide-in-from-right-2",
2918
- "data-[side=right]:slide-in-from-left-2",
2919
- "data-[side=top]:slide-in-from-bottom-2",
2920
- // Origin for transforms
2921
- "origin-[--radix-select-content-transform-origin]"
2922
- ),
2923
- position: "popper",
2924
- children: /* @__PURE__ */ jsx40(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx40(
2925
- SelectPrimitive2.Item,
2926
- {
2927
- value: option.value,
2928
- disabled: option.disabled,
2929
- className: cn(
2930
- // Layout
2931
- "relative flex w-full cursor-default",
2932
- "select-none items-center rounded-sm py-2 px-3",
2933
- // Text
2934
- "text-sm outline-none",
2935
- // Focus/hover styles
2936
- "focus:bg-berget-primary-tint focus:text-berget-foreground",
2937
- "hover:bg-berget-primary-tint",
2938
- // Disabled state
2939
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
2940
- ),
2941
- children: /* @__PURE__ */ jsx40(SelectPrimitive2.ItemText, { children: option.label })
2942
- },
2943
- option.value
2944
- )) })
2945
- }
2946
- ) })
2947
- ] });
2948
- });
3201
+ );
3202
+ }
3203
+ );
2949
3204
  LanguageSelect.displayName = "LanguageSelect";
2950
3205
 
2951
3206
  // src/components/list/List.tsx
2952
- import * as React39 from "react";
3207
+ import * as React41 from "react";
2953
3208
 
2954
3209
  // src/components/divider/Divider.tsx
2955
- import * as React38 from "react";
2956
- import { cva as cva18 } from "class-variance-authority";
2957
- import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
2958
- var dividerVariants = cva18("", {
3210
+ import * as React40 from "react";
3211
+ import { cva as cva19 } from "class-variance-authority";
3212
+ import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
3213
+ var dividerVariants = cva19("", {
2959
3214
  variants: {
2960
3215
  variant: {
2961
3216
  default: "bg-berget-separator",
@@ -2975,7 +3230,7 @@ var dividerVariants = cva18("", {
2975
3230
  size: "thin"
2976
3231
  }
2977
3232
  });
2978
- var Divider = React38.forwardRef(
3233
+ var Divider = React40.forwardRef(
2979
3234
  ({
2980
3235
  className,
2981
3236
  orientation = "horizontal",
@@ -2986,17 +3241,17 @@ var Divider = React38.forwardRef(
2986
3241
  ...props
2987
3242
  }, ref) => {
2988
3243
  if (label) {
2989
- return /* @__PURE__ */ jsxs19("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
2990
- labelPosition !== "right" && /* @__PURE__ */ jsx41(
2991
- Separator2,
3244
+ return /* @__PURE__ */ jsxs20("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
3245
+ labelPosition !== "right" && /* @__PURE__ */ jsx39(
3246
+ Separator,
2992
3247
  {
2993
3248
  orientation: "horizontal",
2994
3249
  className: cn(dividerVariants({ variant, size }), "flex-1")
2995
3250
  }
2996
3251
  ),
2997
- /* @__PURE__ */ jsx41(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
2998
- labelPosition !== "left" && /* @__PURE__ */ jsx41(
2999
- Separator2,
3252
+ /* @__PURE__ */ jsx39(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
3253
+ labelPosition !== "left" && /* @__PURE__ */ jsx39(
3254
+ Separator,
3000
3255
  {
3001
3256
  orientation: "horizontal",
3002
3257
  className: cn(dividerVariants({ variant, size }), "flex-1")
@@ -3004,8 +3259,8 @@ var Divider = React38.forwardRef(
3004
3259
  )
3005
3260
  ] });
3006
3261
  }
3007
- return /* @__PURE__ */ jsx41(
3008
- Separator2,
3262
+ return /* @__PURE__ */ jsx39(
3263
+ Separator,
3009
3264
  {
3010
3265
  ref,
3011
3266
  orientation,
@@ -3022,19 +3277,19 @@ Divider.displayName = "Divider";
3022
3277
 
3023
3278
  // src/components/list/List.tsx
3024
3279
  import { Check as Check5 } from "lucide-react";
3025
- import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
3026
- var List = React39.forwardRef(
3280
+ import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
3281
+ var List = React41.forwardRef(
3027
3282
  ({ className, children, ...props }, ref) => {
3028
- const childrenArray = React39.Children.toArray(children);
3029
- return /* @__PURE__ */ jsx42("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs20(React39.Fragment, { children: [
3283
+ const childrenArray = React41.Children.toArray(children);
3284
+ return /* @__PURE__ */ jsx40("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs21(React41.Fragment, { children: [
3030
3285
  child,
3031
- index < childrenArray.length - 1 && /* @__PURE__ */ jsx42(Divider, { variant: "subtle" })
3286
+ index < childrenArray.length - 1 && /* @__PURE__ */ jsx40(Divider, { variant: "subtle" })
3032
3287
  ] }, index)) });
3033
3288
  }
3034
3289
  );
3035
3290
  List.displayName = "List";
3036
- var ListItem = React39.forwardRef(
3037
- ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs20(
3291
+ var ListItem = React41.forwardRef(
3292
+ ({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs21(
3038
3293
  "div",
3039
3294
  {
3040
3295
  ref,
@@ -3045,15 +3300,15 @@ var ListItem = React39.forwardRef(
3045
3300
  ),
3046
3301
  ...props,
3047
3302
  children: [
3048
- icon && /* @__PURE__ */ jsx42("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
3049
- /* @__PURE__ */ jsx42("div", { className: "flex-1 min-w-0", children })
3303
+ icon && /* @__PURE__ */ jsx40("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
3304
+ /* @__PURE__ */ jsx40("div", { className: "flex-1 min-w-0", children })
3050
3305
  ]
3051
3306
  }
3052
3307
  )
3053
3308
  );
3054
3309
  ListItem.displayName = "ListItem";
3055
- var ListHeader = React39.forwardRef(
3056
- ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx42(
3310
+ var ListHeader = React41.forwardRef(
3311
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx40(
3057
3312
  "div",
3058
3313
  {
3059
3314
  ref,
@@ -3064,21 +3319,21 @@ var ListHeader = React39.forwardRef(
3064
3319
  )
3065
3320
  );
3066
3321
  ListHeader.displayName = "ListHeader";
3067
- var FeatureList = React39.forwardRef(
3322
+ var FeatureList = React41.forwardRef(
3068
3323
  ({ items, variant = "bullet", className, ...props }, ref) => {
3069
- return /* @__PURE__ */ jsx42("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs20("li", { className: "flex items-start gap-fluid-md", children: [
3070
- variant === "bullet" ? /* @__PURE__ */ jsx42("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx42("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx42(Icon2, { icon: Check5, size: 24, className: "text-berget-logo-light" }) }),
3071
- /* @__PURE__ */ jsx42(Typography, { variant: "body", color: "muted", children: item })
3324
+ return /* @__PURE__ */ jsx40("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs21("li", { className: "flex items-start gap-fluid-md", children: [
3325
+ variant === "bullet" ? /* @__PURE__ */ jsx40("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx40("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx40(Icon, { icon: Check5, size: 24, className: "text-berget-logo-light" }) }),
3326
+ /* @__PURE__ */ jsx40(Typography, { variant: "body", color: "muted", children: item })
3072
3327
  ] }, index)) });
3073
3328
  }
3074
3329
  );
3075
3330
  FeatureList.displayName = "FeatureList";
3076
3331
 
3077
3332
  // src/components/hero-block/HeroBlock.tsx
3078
- import * as React40 from "react";
3079
- import { cva as cva19 } from "class-variance-authority";
3080
- import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
3081
- var heroBlockVariants = cva19(
3333
+ import * as React42 from "react";
3334
+ import { cva as cva20 } from "class-variance-authority";
3335
+ import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
3336
+ var heroBlockVariants = cva20(
3082
3337
  "relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
3083
3338
  {
3084
3339
  variants: {
@@ -3098,7 +3353,7 @@ var heroBlockVariants = cva19(
3098
3353
  }
3099
3354
  }
3100
3355
  );
3101
- var HeroBlock = React40.forwardRef(
3356
+ var HeroBlock = React42.forwardRef(
3102
3357
  ({
3103
3358
  className,
3104
3359
  variant,
@@ -3110,26 +3365,26 @@ var HeroBlock = React40.forwardRef(
3110
3365
  actions,
3111
3366
  ...props
3112
3367
  }, ref) => {
3113
- return /* @__PURE__ */ jsx43(
3368
+ return /* @__PURE__ */ jsx41(
3114
3369
  "div",
3115
3370
  {
3116
3371
  ref,
3117
3372
  className: cn(heroBlockVariants({ variant, withPattern }), className),
3118
3373
  ...props,
3119
- children: /* @__PURE__ */ jsx43("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs21("div", { className: "mx-auto text-center max-w-4xl", children: [
3120
- tagline && /* @__PURE__ */ jsx43(
3374
+ children: /* @__PURE__ */ jsx41("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs22("div", { className: "mx-auto text-center max-w-4xl", children: [
3375
+ tagline && /* @__PURE__ */ jsx41(
3121
3376
  Badge,
3122
3377
  {
3123
3378
  variant: "default",
3124
- icon: TaglineIcon ? /* @__PURE__ */ jsx43(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
3379
+ icon: TaglineIcon ? /* @__PURE__ */ jsx41(Icon, { icon: TaglineIcon, size: 16 }) : void 0,
3125
3380
  iconGap: 2,
3126
3381
  className: "mb-fluid-md",
3127
3382
  children: tagline
3128
3383
  }
3129
3384
  ),
3130
- /* @__PURE__ */ jsx43(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
3131
- /* @__PURE__ */ jsx43(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
3132
- actions && /* @__PURE__ */ jsx43("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
3385
+ /* @__PURE__ */ jsx41(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
3386
+ /* @__PURE__ */ jsx41(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
3387
+ actions && /* @__PURE__ */ jsx41("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
3133
3388
  ] }) })
3134
3389
  }
3135
3390
  );
@@ -3140,7 +3395,7 @@ HeroBlock.displayName = "HeroBlock";
3140
3395
  // src/components/code-block/CodeBlock.tsx
3141
3396
  import { useState as useState3, useEffect as useEffect2, useCallback as useCallback3 } from "react";
3142
3397
  import { Copy, Check as Check6 } from "lucide-react";
3143
- import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
3398
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
3144
3399
  function CodeBlock({ code, language = "text", title, className }) {
3145
3400
  const [html, setHtml] = useState3(null);
3146
3401
  const [copied, setCopied] = useState3(false);
@@ -3156,16 +3411,16 @@ function CodeBlock({ code, language = "text", title, className }) {
3156
3411
  setCopied(true);
3157
3412
  setTimeout(() => setCopied(false), 2e3);
3158
3413
  }, [code]);
3159
- const copyButton = /* @__PURE__ */ jsx44(
3414
+ const copyButton = /* @__PURE__ */ jsx42(
3160
3415
  "button",
3161
3416
  {
3162
3417
  onClick: handleCopy,
3163
3418
  className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
3164
3419
  "aria-label": "Copy code",
3165
- children: copied ? /* @__PURE__ */ jsx44(Check6, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx44(Copy, { className: "w-3.5 h-3.5" })
3420
+ children: copied ? /* @__PURE__ */ jsx42(Check6, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx42(Copy, { className: "w-3.5 h-3.5" })
3166
3421
  }
3167
3422
  );
3168
- return /* @__PURE__ */ jsxs22(
3423
+ return /* @__PURE__ */ jsxs23(
3169
3424
  "div",
3170
3425
  {
3171
3426
  className: cn(
@@ -3173,25 +3428,25 @@ function CodeBlock({ code, language = "text", title, className }) {
3173
3428
  className
3174
3429
  ),
3175
3430
  children: [
3176
- title && /* @__PURE__ */ jsx44("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__ */ jsx44("span", { className: "text-berget-muted-foreground", children: title }) }),
3177
- /* @__PURE__ */ jsx44("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
3178
- html ? /* @__PURE__ */ jsx44(
3431
+ title && /* @__PURE__ */ jsx42("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__ */ jsx42("span", { className: "text-berget-muted-foreground", children: title }) }),
3432
+ /* @__PURE__ */ jsx42("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
3433
+ html ? /* @__PURE__ */ jsx42(
3179
3434
  "div",
3180
3435
  {
3181
3436
  className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
3182
3437
  dangerouslySetInnerHTML: { __html: html }
3183
3438
  }
3184
- ) : /* @__PURE__ */ jsx44("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx44("code", { children: code }) })
3439
+ ) : /* @__PURE__ */ jsx42("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx42("code", { children: code }) })
3185
3440
  ]
3186
3441
  }
3187
3442
  );
3188
3443
  }
3189
3444
 
3190
3445
  // src/components/window-frame/WindowFrame.tsx
3191
- import * as React41 from "react";
3446
+ import * as React43 from "react";
3192
3447
  import { useState as useState4 } from "react";
3193
- import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
3194
- var WindowFrame = React41.forwardRef(
3448
+ import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
3449
+ var WindowFrame = React43.forwardRef(
3195
3450
  ({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
3196
3451
  const [internalActive, setInternalActive] = useState4(tabs?.[0]?.id ?? "");
3197
3452
  const currentTab = activeTab ?? internalActive;
@@ -3202,7 +3457,7 @@ var WindowFrame = React41.forwardRef(
3202
3457
  setInternalActive(id);
3203
3458
  }
3204
3459
  };
3205
- return /* @__PURE__ */ jsxs23(
3460
+ return /* @__PURE__ */ jsxs24(
3206
3461
  "div",
3207
3462
  {
3208
3463
  ref,
@@ -3212,13 +3467,13 @@ var WindowFrame = React41.forwardRef(
3212
3467
  ),
3213
3468
  ...props,
3214
3469
  children: [
3215
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
3216
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
3217
- /* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
3218
- /* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
3219
- /* @__PURE__ */ jsx45("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
3470
+ /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
3471
+ /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
3472
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
3473
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
3474
+ /* @__PURE__ */ jsx43("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
3220
3475
  ] }),
3221
- tabs && tabs.length > 0 ? /* @__PURE__ */ jsx45("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx45(
3476
+ tabs && tabs.length > 0 ? /* @__PURE__ */ jsx43("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx43(
3222
3477
  "button",
3223
3478
  {
3224
3479
  type: "button",
@@ -3230,9 +3485,9 @@ var WindowFrame = React41.forwardRef(
3230
3485
  children: tab.label
3231
3486
  },
3232
3487
  tab.id
3233
- )) }) : /* @__PURE__ */ jsx45("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
3488
+ )) }) : /* @__PURE__ */ jsx43("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
3234
3489
  ] }),
3235
- /* @__PURE__ */ jsx45("div", { children })
3490
+ /* @__PURE__ */ jsx43("div", { children })
3236
3491
  ]
3237
3492
  }
3238
3493
  );
@@ -3308,9 +3563,9 @@ export {
3308
3563
  FieldTitle,
3309
3564
  Grid,
3310
3565
  HeroBlock,
3311
- Icon2 as Icon,
3566
+ Icon,
3312
3567
  Input2 as Input,
3313
- Item3 as Item,
3568
+ Item2 as Item,
3314
3569
  ItemActions,
3315
3570
  ItemContent,
3316
3571
  ItemDescription2 as ItemDescription,
@@ -3320,12 +3575,20 @@ export {
3320
3575
  ItemMedia2 as ItemMedia,
3321
3576
  ItemSeparator2 as ItemSeparator,
3322
3577
  ItemTitle2 as ItemTitle,
3323
- Label3 as Label,
3578
+ Label,
3324
3579
  LanguageSelect,
3325
3580
  Link,
3326
3581
  List,
3327
3582
  ListHeader,
3328
3583
  ListItem,
3584
+ NavigationMenu,
3585
+ NavigationMenuContent,
3586
+ NavigationMenuIndicator,
3587
+ NavigationMenuItem,
3588
+ NavigationMenuLink,
3589
+ NavigationMenuList,
3590
+ NavigationMenuTrigger,
3591
+ NavigationMenuViewport,
3329
3592
  Select2 as Select,
3330
3593
  Switch,
3331
3594
  Table2 as Table,
@@ -3353,6 +3616,7 @@ export {
3353
3616
  gridVariants,
3354
3617
  isEUCountry,
3355
3618
  linkVariants,
3619
+ navigationMenuTriggerStyle,
3356
3620
  selectVariants,
3357
3621
  switchRootVariants,
3358
3622
  switchThumbVariants,