@bergetai/ui 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +724 -378
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +684 -373
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -586,21 +586,297 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
|
586
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
587
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
588
588
|
|
|
589
|
-
// src/components/
|
|
589
|
+
// src/components/alert-dialog/AlertDialog.tsx
|
|
590
|
+
import * as React11 from "react";
|
|
591
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
592
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
593
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
594
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
595
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
596
|
+
var AlertDialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
597
|
+
AlertDialogPrimitive.Overlay,
|
|
598
|
+
{
|
|
599
|
+
ref,
|
|
600
|
+
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",
|
|
602
|
+
className
|
|
603
|
+
),
|
|
604
|
+
...props
|
|
605
|
+
}
|
|
606
|
+
));
|
|
607
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
608
|
+
var AlertDialogContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(AlertDialogPortal, { children: [
|
|
609
|
+
/* @__PURE__ */ jsx12(AlertDialogOverlay, {}),
|
|
610
|
+
/* @__PURE__ */ jsx12(
|
|
611
|
+
AlertDialogPrimitive.Content,
|
|
612
|
+
{
|
|
613
|
+
ref,
|
|
614
|
+
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%]",
|
|
616
|
+
className
|
|
617
|
+
),
|
|
618
|
+
...props
|
|
619
|
+
}
|
|
620
|
+
)
|
|
621
|
+
] }));
|
|
622
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
623
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx12("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
624
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
625
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
|
|
626
|
+
"div",
|
|
627
|
+
{
|
|
628
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
629
|
+
...props
|
|
630
|
+
}
|
|
631
|
+
);
|
|
632
|
+
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;
|
|
641
|
+
|
|
642
|
+
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
590
643
|
import * as React12 from "react";
|
|
644
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
645
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
646
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
647
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
648
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
649
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
650
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
651
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
652
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
653
|
+
var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
654
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
655
|
+
{
|
|
656
|
+
ref,
|
|
657
|
+
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",
|
|
659
|
+
inset && "pl-8",
|
|
660
|
+
className
|
|
661
|
+
),
|
|
662
|
+
...props,
|
|
663
|
+
children: [
|
|
664
|
+
children,
|
|
665
|
+
/* @__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
|
|
679
|
+
}
|
|
680
|
+
));
|
|
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,
|
|
684
|
+
{
|
|
685
|
+
ref,
|
|
686
|
+
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
|
|
692
|
+
}
|
|
693
|
+
) }));
|
|
694
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
695
|
+
var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
696
|
+
DropdownMenuPrimitive.Item,
|
|
697
|
+
{
|
|
698
|
+
ref,
|
|
699
|
+
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",
|
|
701
|
+
inset && "pl-8",
|
|
702
|
+
className
|
|
703
|
+
),
|
|
704
|
+
...props
|
|
705
|
+
}
|
|
706
|
+
));
|
|
707
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
708
|
+
var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
709
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
710
|
+
{
|
|
711
|
+
ref,
|
|
712
|
+
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",
|
|
714
|
+
className
|
|
715
|
+
),
|
|
716
|
+
checked,
|
|
717
|
+
...props,
|
|
718
|
+
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
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
));
|
|
724
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
725
|
+
var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
726
|
+
DropdownMenuPrimitive.RadioItem,
|
|
727
|
+
{
|
|
728
|
+
ref,
|
|
729
|
+
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",
|
|
731
|
+
className
|
|
732
|
+
),
|
|
733
|
+
...props,
|
|
734
|
+
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
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
));
|
|
740
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
741
|
+
var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
742
|
+
DropdownMenuPrimitive.Label,
|
|
743
|
+
{
|
|
744
|
+
ref,
|
|
745
|
+
className: cn(
|
|
746
|
+
"px-2 py-1.5 text-sm font-semibold text-berget-foreground",
|
|
747
|
+
inset && "pl-8",
|
|
748
|
+
className
|
|
749
|
+
),
|
|
750
|
+
...props
|
|
751
|
+
}
|
|
752
|
+
));
|
|
753
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
754
|
+
var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
755
|
+
DropdownMenuPrimitive.Separator,
|
|
756
|
+
{
|
|
757
|
+
ref,
|
|
758
|
+
className: cn("-mx-1 my-1 h-px bg-berget-separator", className),
|
|
759
|
+
...props
|
|
760
|
+
}
|
|
761
|
+
));
|
|
762
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
763
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
764
|
+
return /* @__PURE__ */ jsx13(
|
|
765
|
+
"span",
|
|
766
|
+
{
|
|
767
|
+
className: cn("ml-auto text-xs tracking-widest text-berget-muted-foreground", className),
|
|
768
|
+
...props
|
|
769
|
+
}
|
|
770
|
+
);
|
|
771
|
+
};
|
|
772
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
773
|
+
|
|
774
|
+
// src/components/navigation-menu/NavigationMenu.tsx
|
|
775
|
+
import * as React13 from "react";
|
|
776
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
777
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
778
|
+
import { ChevronDown } from "lucide-react";
|
|
779
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
780
|
+
var NavigationMenu = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
781
|
+
NavigationMenuPrimitive.Root,
|
|
782
|
+
{
|
|
783
|
+
ref,
|
|
784
|
+
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
|
|
785
|
+
...props,
|
|
786
|
+
children: [
|
|
787
|
+
children,
|
|
788
|
+
/* @__PURE__ */ jsx14(NavigationMenuViewport, {})
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
));
|
|
792
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
793
|
+
var NavigationMenuList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
794
|
+
NavigationMenuPrimitive.List,
|
|
795
|
+
{
|
|
796
|
+
ref,
|
|
797
|
+
className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
|
|
798
|
+
...props
|
|
799
|
+
}
|
|
800
|
+
));
|
|
801
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
802
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
803
|
+
var navigationMenuTriggerStyle = cva7(
|
|
804
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-berget-xs px-4 py-2 text-sm font-medium transition-colors hover:bg-berget-surface-02 hover:text-berget-foreground focus:bg-berget-surface-02 focus:text-berget-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-berget-foreground data-[state=open]:bg-berget-border data-[state=open]:hover:bg-berget-border data-[state=open]:focus:bg-berget-border"
|
|
805
|
+
);
|
|
806
|
+
var NavigationMenuTrigger = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
807
|
+
NavigationMenuPrimitive.Trigger,
|
|
808
|
+
{
|
|
809
|
+
ref,
|
|
810
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
811
|
+
...props,
|
|
812
|
+
children: [
|
|
813
|
+
children,
|
|
814
|
+
" ",
|
|
815
|
+
/* @__PURE__ */ jsx14(
|
|
816
|
+
ChevronDown,
|
|
817
|
+
{
|
|
818
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
819
|
+
"aria-hidden": "true"
|
|
820
|
+
}
|
|
821
|
+
)
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
));
|
|
825
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
826
|
+
var NavigationMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
827
|
+
NavigationMenuPrimitive.Content,
|
|
828
|
+
{
|
|
829
|
+
ref,
|
|
830
|
+
className: cn(
|
|
831
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
832
|
+
className
|
|
833
|
+
),
|
|
834
|
+
...props
|
|
835
|
+
}
|
|
836
|
+
));
|
|
837
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
838
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
839
|
+
var NavigationMenuViewport = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx14(
|
|
840
|
+
NavigationMenuPrimitive.Viewport,
|
|
841
|
+
{
|
|
842
|
+
className: cn(
|
|
843
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-berget-xs border border-berget-border bg-berget-popover text-berget-popover-foreground shadow-berget-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
844
|
+
className
|
|
845
|
+
),
|
|
846
|
+
ref,
|
|
847
|
+
...props
|
|
848
|
+
}
|
|
849
|
+
) }));
|
|
850
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
851
|
+
var NavigationMenuIndicator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
852
|
+
NavigationMenuPrimitive.Indicator,
|
|
853
|
+
{
|
|
854
|
+
ref,
|
|
855
|
+
className: cn(
|
|
856
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
857
|
+
className
|
|
858
|
+
),
|
|
859
|
+
...props,
|
|
860
|
+
children: /* @__PURE__ */ jsx14("div", { className: "relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-berget-border shadow-md" })
|
|
861
|
+
}
|
|
862
|
+
));
|
|
863
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
864
|
+
|
|
865
|
+
// src/components/table/Table.tsx
|
|
866
|
+
import * as React15 from "react";
|
|
591
867
|
|
|
592
868
|
// src/primitives/table.tsx
|
|
593
|
-
import * as
|
|
594
|
-
import { jsx as
|
|
595
|
-
var Table =
|
|
596
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
869
|
+
import * as React14 from "react";
|
|
870
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
871
|
+
var Table = React14.forwardRef(
|
|
872
|
+
({ 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 }) })
|
|
597
873
|
);
|
|
598
874
|
Table.displayName = "Table";
|
|
599
|
-
var TableHeader =
|
|
875
|
+
var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
600
876
|
TableHeader.displayName = "TableHeader";
|
|
601
|
-
var TableBody =
|
|
877
|
+
var TableBody = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
602
878
|
TableBody.displayName = "TableBody";
|
|
603
|
-
var TableFooter =
|
|
879
|
+
var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
604
880
|
"tfoot",
|
|
605
881
|
{
|
|
606
882
|
ref,
|
|
@@ -609,8 +885,8 @@ var TableFooter = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
609
885
|
}
|
|
610
886
|
));
|
|
611
887
|
TableFooter.displayName = "TableFooter";
|
|
612
|
-
var TableRow =
|
|
613
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
888
|
+
var TableRow = React14.forwardRef(
|
|
889
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
614
890
|
"tr",
|
|
615
891
|
{
|
|
616
892
|
ref,
|
|
@@ -623,7 +899,7 @@ var TableRow = React11.forwardRef(
|
|
|
623
899
|
)
|
|
624
900
|
);
|
|
625
901
|
TableRow.displayName = "TableRow";
|
|
626
|
-
var TableHead =
|
|
902
|
+
var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
627
903
|
"th",
|
|
628
904
|
{
|
|
629
905
|
ref,
|
|
@@ -635,7 +911,7 @@ var TableHead = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
635
911
|
}
|
|
636
912
|
));
|
|
637
913
|
TableHead.displayName = "TableHead";
|
|
638
|
-
var TableCell =
|
|
914
|
+
var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
639
915
|
"td",
|
|
640
916
|
{
|
|
641
917
|
ref,
|
|
@@ -644,16 +920,16 @@ var TableCell = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
644
920
|
}
|
|
645
921
|
));
|
|
646
922
|
TableCell.displayName = "TableCell";
|
|
647
|
-
var TableCaption =
|
|
923
|
+
var TableCaption = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
648
924
|
TableCaption.displayName = "TableCaption";
|
|
649
925
|
|
|
650
926
|
// src/components/table/Table.tsx
|
|
651
|
-
import { jsx as
|
|
652
|
-
var Table2 =
|
|
653
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
927
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
928
|
+
var Table2 = React15.forwardRef(
|
|
929
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx16(Table, { ref, className, ...props })
|
|
654
930
|
);
|
|
655
931
|
Table2.displayName = "Table";
|
|
656
|
-
var TableHeader2 =
|
|
932
|
+
var TableHeader2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
657
933
|
TableHeader,
|
|
658
934
|
{
|
|
659
935
|
ref,
|
|
@@ -662,7 +938,7 @@ var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
662
938
|
}
|
|
663
939
|
));
|
|
664
940
|
TableHeader2.displayName = "TableHeader";
|
|
665
|
-
var TableBody2 =
|
|
941
|
+
var TableBody2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
666
942
|
TableBody,
|
|
667
943
|
{
|
|
668
944
|
ref,
|
|
@@ -671,7 +947,7 @@ var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
671
947
|
}
|
|
672
948
|
));
|
|
673
949
|
TableBody2.displayName = "TableBody";
|
|
674
|
-
var TableFooter2 =
|
|
950
|
+
var TableFooter2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
675
951
|
TableFooter,
|
|
676
952
|
{
|
|
677
953
|
ref,
|
|
@@ -683,8 +959,8 @@ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
683
959
|
}
|
|
684
960
|
));
|
|
685
961
|
TableFooter2.displayName = "TableFooter";
|
|
686
|
-
var TableRow2 =
|
|
687
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
962
|
+
var TableRow2 = React15.forwardRef(
|
|
963
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
688
964
|
TableRow,
|
|
689
965
|
{
|
|
690
966
|
ref,
|
|
@@ -697,7 +973,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
697
973
|
)
|
|
698
974
|
);
|
|
699
975
|
TableRow2.displayName = "TableRow";
|
|
700
|
-
var TableHead2 =
|
|
976
|
+
var TableHead2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
701
977
|
TableHead,
|
|
702
978
|
{
|
|
703
979
|
ref,
|
|
@@ -709,7 +985,7 @@ var TableHead2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
709
985
|
}
|
|
710
986
|
));
|
|
711
987
|
TableHead2.displayName = "TableHead";
|
|
712
|
-
var TableCell2 =
|
|
988
|
+
var TableCell2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
713
989
|
TableCell,
|
|
714
990
|
{
|
|
715
991
|
ref,
|
|
@@ -718,7 +994,7 @@ var TableCell2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
718
994
|
}
|
|
719
995
|
));
|
|
720
996
|
TableCell2.displayName = "TableCell";
|
|
721
|
-
var TableCaption2 =
|
|
997
|
+
var TableCaption2 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
722
998
|
TableCaption,
|
|
723
999
|
{
|
|
724
1000
|
ref,
|
|
@@ -729,17 +1005,17 @@ var TableCaption2 = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
729
1005
|
TableCaption2.displayName = "TableCaption";
|
|
730
1006
|
|
|
731
1007
|
// src/components/item/Item.tsx
|
|
732
|
-
import * as
|
|
1008
|
+
import * as React17 from "react";
|
|
733
1009
|
|
|
734
1010
|
// src/primitives/item.tsx
|
|
735
1011
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
736
|
-
import { cva as
|
|
1012
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
737
1013
|
|
|
738
1014
|
// src/primitives/separator.tsx
|
|
739
|
-
import * as
|
|
1015
|
+
import * as React16 from "react";
|
|
740
1016
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
741
|
-
import { jsx as
|
|
742
|
-
var
|
|
1017
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1018
|
+
var Separator2 = React16.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
743
1019
|
SeparatorPrimitive.Root,
|
|
744
1020
|
{
|
|
745
1021
|
ref,
|
|
@@ -753,12 +1029,12 @@ var Separator = React13.forwardRef(({ className, orientation = "horizontal", dec
|
|
|
753
1029
|
...props
|
|
754
1030
|
}
|
|
755
1031
|
));
|
|
756
|
-
|
|
1032
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
757
1033
|
|
|
758
1034
|
// src/primitives/item.tsx
|
|
759
|
-
import { jsx as
|
|
1035
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
760
1036
|
function ItemGroup({ className, ...props }) {
|
|
761
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ jsx18(
|
|
762
1038
|
"div",
|
|
763
1039
|
{
|
|
764
1040
|
role: "list",
|
|
@@ -769,8 +1045,8 @@ function ItemGroup({ className, ...props }) {
|
|
|
769
1045
|
);
|
|
770
1046
|
}
|
|
771
1047
|
function ItemSeparator({ className, ...props }) {
|
|
772
|
-
return /* @__PURE__ */
|
|
773
|
-
|
|
1048
|
+
return /* @__PURE__ */ jsx18(
|
|
1049
|
+
Separator2,
|
|
774
1050
|
{
|
|
775
1051
|
"data-slot": "item-separator",
|
|
776
1052
|
orientation: "horizontal",
|
|
@@ -779,7 +1055,7 @@ function ItemSeparator({ className, ...props }) {
|
|
|
779
1055
|
}
|
|
780
1056
|
);
|
|
781
1057
|
}
|
|
782
|
-
var itemVariants =
|
|
1058
|
+
var itemVariants = cva8(
|
|
783
1059
|
"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]",
|
|
784
1060
|
{
|
|
785
1061
|
variants: {
|
|
@@ -799,7 +1075,7 @@ var itemVariants = cva7(
|
|
|
799
1075
|
}
|
|
800
1076
|
}
|
|
801
1077
|
);
|
|
802
|
-
function
|
|
1078
|
+
function Item3({
|
|
803
1079
|
className,
|
|
804
1080
|
variant = "default",
|
|
805
1081
|
size = "default",
|
|
@@ -807,7 +1083,7 @@ function Item({
|
|
|
807
1083
|
...props
|
|
808
1084
|
}) {
|
|
809
1085
|
const Comp = asChild ? Slot2 : "div";
|
|
810
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsx18(
|
|
811
1087
|
Comp,
|
|
812
1088
|
{
|
|
813
1089
|
"data-slot": "item",
|
|
@@ -818,7 +1094,7 @@ function Item({
|
|
|
818
1094
|
}
|
|
819
1095
|
);
|
|
820
1096
|
}
|
|
821
|
-
var itemMediaVariants =
|
|
1097
|
+
var itemMediaVariants = cva8(
|
|
822
1098
|
"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",
|
|
823
1099
|
{
|
|
824
1100
|
variants: {
|
|
@@ -838,7 +1114,7 @@ function ItemMedia({
|
|
|
838
1114
|
variant = "default",
|
|
839
1115
|
...props
|
|
840
1116
|
}) {
|
|
841
|
-
return /* @__PURE__ */
|
|
1117
|
+
return /* @__PURE__ */ jsx18(
|
|
842
1118
|
"div",
|
|
843
1119
|
{
|
|
844
1120
|
"data-slot": "item-media",
|
|
@@ -849,7 +1125,7 @@ function ItemMedia({
|
|
|
849
1125
|
);
|
|
850
1126
|
}
|
|
851
1127
|
function ItemContent({ className, ...props }) {
|
|
852
|
-
return /* @__PURE__ */
|
|
1128
|
+
return /* @__PURE__ */ jsx18(
|
|
853
1129
|
"div",
|
|
854
1130
|
{
|
|
855
1131
|
"data-slot": "item-content",
|
|
@@ -859,7 +1135,7 @@ function ItemContent({ className, ...props }) {
|
|
|
859
1135
|
);
|
|
860
1136
|
}
|
|
861
1137
|
function ItemTitle({ className, ...props }) {
|
|
862
|
-
return /* @__PURE__ */
|
|
1138
|
+
return /* @__PURE__ */ jsx18(
|
|
863
1139
|
"div",
|
|
864
1140
|
{
|
|
865
1141
|
"data-slot": "item-title",
|
|
@@ -869,7 +1145,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
869
1145
|
);
|
|
870
1146
|
}
|
|
871
1147
|
function ItemDescription({ className, ...props }) {
|
|
872
|
-
return /* @__PURE__ */
|
|
1148
|
+
return /* @__PURE__ */ jsx18(
|
|
873
1149
|
"p",
|
|
874
1150
|
{
|
|
875
1151
|
"data-slot": "item-description",
|
|
@@ -883,10 +1159,10 @@ function ItemDescription({ className, ...props }) {
|
|
|
883
1159
|
);
|
|
884
1160
|
}
|
|
885
1161
|
function ItemActions({ className, ...props }) {
|
|
886
|
-
return /* @__PURE__ */
|
|
1162
|
+
return /* @__PURE__ */ jsx18("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
887
1163
|
}
|
|
888
1164
|
function ItemHeader({ className, ...props }) {
|
|
889
|
-
return /* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ jsx18(
|
|
890
1166
|
"div",
|
|
891
1167
|
{
|
|
892
1168
|
"data-slot": "item-header",
|
|
@@ -896,7 +1172,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
896
1172
|
);
|
|
897
1173
|
}
|
|
898
1174
|
function ItemFooter({ className, ...props }) {
|
|
899
|
-
return /* @__PURE__ */
|
|
1175
|
+
return /* @__PURE__ */ jsx18(
|
|
900
1176
|
"div",
|
|
901
1177
|
{
|
|
902
1178
|
"data-slot": "item-footer",
|
|
@@ -907,10 +1183,10 @@ function ItemFooter({ className, ...props }) {
|
|
|
907
1183
|
}
|
|
908
1184
|
|
|
909
1185
|
// src/components/item/Item.tsx
|
|
910
|
-
import { jsx as
|
|
911
|
-
function
|
|
912
|
-
return /* @__PURE__ */
|
|
913
|
-
|
|
1186
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1187
|
+
function Item4({ className, asChild, ...props }) {
|
|
1188
|
+
return /* @__PURE__ */ jsx19(
|
|
1189
|
+
Item3,
|
|
914
1190
|
{
|
|
915
1191
|
asChild,
|
|
916
1192
|
className: cn(
|
|
@@ -927,8 +1203,8 @@ function Item2({ className, asChild, ...props }) {
|
|
|
927
1203
|
}
|
|
928
1204
|
);
|
|
929
1205
|
}
|
|
930
|
-
var ItemMedia2 =
|
|
931
|
-
return /* @__PURE__ */
|
|
1206
|
+
var ItemMedia2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1207
|
+
return /* @__PURE__ */ jsx19(
|
|
932
1208
|
ItemMedia,
|
|
933
1209
|
{
|
|
934
1210
|
ref,
|
|
@@ -938,8 +1214,8 @@ var ItemMedia2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
938
1214
|
);
|
|
939
1215
|
});
|
|
940
1216
|
ItemMedia2.displayName = "ItemMedia";
|
|
941
|
-
var ItemTitle2 =
|
|
942
|
-
return /* @__PURE__ */
|
|
1217
|
+
var ItemTitle2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1218
|
+
return /* @__PURE__ */ jsx19(
|
|
943
1219
|
ItemTitle,
|
|
944
1220
|
{
|
|
945
1221
|
ref,
|
|
@@ -949,8 +1225,8 @@ var ItemTitle2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
949
1225
|
);
|
|
950
1226
|
});
|
|
951
1227
|
ItemTitle2.displayName = "ItemTitle";
|
|
952
|
-
var ItemDescription2 =
|
|
953
|
-
return /* @__PURE__ */
|
|
1228
|
+
var ItemDescription2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1229
|
+
return /* @__PURE__ */ jsx19(
|
|
954
1230
|
ItemDescription,
|
|
955
1231
|
{
|
|
956
1232
|
ref,
|
|
@@ -960,8 +1236,8 @@ var ItemDescription2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
960
1236
|
);
|
|
961
1237
|
});
|
|
962
1238
|
ItemDescription2.displayName = "ItemDescription";
|
|
963
|
-
var ItemSeparator2 =
|
|
964
|
-
return /* @__PURE__ */
|
|
1239
|
+
var ItemSeparator2 = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1240
|
+
return /* @__PURE__ */ jsx19(
|
|
965
1241
|
ItemSeparator,
|
|
966
1242
|
{
|
|
967
1243
|
ref,
|
|
@@ -973,14 +1249,14 @@ var ItemSeparator2 = React14.forwardRef(({ className, ...props }, ref) => {
|
|
|
973
1249
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
974
1250
|
|
|
975
1251
|
// src/components/input/Input.tsx
|
|
976
|
-
import * as
|
|
1252
|
+
import * as React19 from "react";
|
|
977
1253
|
|
|
978
1254
|
// src/primitives/input.tsx
|
|
979
|
-
import * as
|
|
980
|
-
import { jsx as
|
|
981
|
-
var Input =
|
|
1255
|
+
import * as React18 from "react";
|
|
1256
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1257
|
+
var Input = React18.forwardRef(
|
|
982
1258
|
({ className, type, ...props }, ref) => {
|
|
983
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ jsx20(
|
|
984
1260
|
"input",
|
|
985
1261
|
{
|
|
986
1262
|
type,
|
|
@@ -997,14 +1273,14 @@ var Input = React15.forwardRef(
|
|
|
997
1273
|
Input.displayName = "Input";
|
|
998
1274
|
|
|
999
1275
|
// src/components/input/Input.tsx
|
|
1000
|
-
import { jsx as
|
|
1001
|
-
var Input2 =
|
|
1276
|
+
import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1277
|
+
var Input2 = React19.forwardRef(
|
|
1002
1278
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
1003
|
-
const generatedId =
|
|
1279
|
+
const generatedId = React19.useId();
|
|
1004
1280
|
const inputId = id || generatedId;
|
|
1005
1281
|
const errorId = `${inputId}-error`;
|
|
1006
1282
|
const descriptionId = `${inputId}-description`;
|
|
1007
|
-
const inputElement = /* @__PURE__ */
|
|
1283
|
+
const inputElement = /* @__PURE__ */ jsx21(
|
|
1008
1284
|
Input,
|
|
1009
1285
|
{
|
|
1010
1286
|
ref,
|
|
@@ -1024,8 +1300,8 @@ var Input2 = React16.forwardRef(
|
|
|
1024
1300
|
}
|
|
1025
1301
|
);
|
|
1026
1302
|
if (!icon && !actionButton) {
|
|
1027
|
-
return /* @__PURE__ */
|
|
1028
|
-
label && /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
|
|
1304
|
+
label && /* @__PURE__ */ jsx21(
|
|
1029
1305
|
"label",
|
|
1030
1306
|
{
|
|
1031
1307
|
htmlFor: inputId,
|
|
@@ -1038,9 +1314,9 @@ var Input2 = React16.forwardRef(
|
|
|
1038
1314
|
}
|
|
1039
1315
|
),
|
|
1040
1316
|
inputElement,
|
|
1041
|
-
(description || error) && /* @__PURE__ */
|
|
1042
|
-
description && /* @__PURE__ */
|
|
1043
|
-
error && /* @__PURE__ */
|
|
1317
|
+
(description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1318
|
+
description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1319
|
+
error && /* @__PURE__ */ jsx21(
|
|
1044
1320
|
Typography,
|
|
1045
1321
|
{
|
|
1046
1322
|
variant: "xs",
|
|
@@ -1052,8 +1328,8 @@ var Input2 = React16.forwardRef(
|
|
|
1052
1328
|
] })
|
|
1053
1329
|
] });
|
|
1054
1330
|
}
|
|
1055
|
-
return /* @__PURE__ */
|
|
1056
|
-
label && /* @__PURE__ */
|
|
1331
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
|
|
1332
|
+
label && /* @__PURE__ */ jsx21(
|
|
1057
1333
|
"label",
|
|
1058
1334
|
{
|
|
1059
1335
|
htmlFor: inputId,
|
|
@@ -1065,14 +1341,14 @@ var Input2 = React16.forwardRef(
|
|
|
1065
1341
|
children: label
|
|
1066
1342
|
}
|
|
1067
1343
|
),
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
icon && /* @__PURE__ */
|
|
1344
|
+
/* @__PURE__ */ jsxs7("div", { className: "relative w-full", children: [
|
|
1345
|
+
icon && /* @__PURE__ */ jsx21("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
1070
1346
|
inputElement,
|
|
1071
|
-
actionButton && /* @__PURE__ */
|
|
1347
|
+
actionButton && /* @__PURE__ */ jsx21("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1072
1348
|
] }),
|
|
1073
|
-
(description || error) && /* @__PURE__ */
|
|
1074
|
-
description && /* @__PURE__ */
|
|
1075
|
-
error && /* @__PURE__ */
|
|
1349
|
+
(description || error) && /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
|
|
1350
|
+
description && /* @__PURE__ */ jsx21(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1351
|
+
error && /* @__PURE__ */ jsx21(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1076
1352
|
] })
|
|
1077
1353
|
] });
|
|
1078
1354
|
}
|
|
@@ -1080,17 +1356,17 @@ var Input2 = React16.forwardRef(
|
|
|
1080
1356
|
Input2.displayName = "Input";
|
|
1081
1357
|
|
|
1082
1358
|
// src/components/checkbox/Checkbox.tsx
|
|
1083
|
-
import * as
|
|
1359
|
+
import * as React21 from "react";
|
|
1084
1360
|
import * as CheckboxPrimitive2 from "@radix-ui/react-checkbox";
|
|
1085
|
-
import { Check as
|
|
1086
|
-
import { cva as
|
|
1361
|
+
import { Check as Check3 } from "lucide-react";
|
|
1362
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1087
1363
|
|
|
1088
1364
|
// src/primitives/checkbox.tsx
|
|
1089
|
-
import * as
|
|
1365
|
+
import * as React20 from "react";
|
|
1090
1366
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1091
|
-
import { Check } from "lucide-react";
|
|
1092
|
-
import { jsx as
|
|
1093
|
-
var Checkbox =
|
|
1367
|
+
import { Check as Check2 } from "lucide-react";
|
|
1368
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1369
|
+
var Checkbox = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1094
1370
|
CheckboxPrimitive.Root,
|
|
1095
1371
|
{
|
|
1096
1372
|
ref,
|
|
@@ -1099,24 +1375,24 @@ var Checkbox = React17.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
1099
1375
|
className
|
|
1100
1376
|
),
|
|
1101
1377
|
...props,
|
|
1102
|
-
children: children ?? /* @__PURE__ */
|
|
1378
|
+
children: children ?? /* @__PURE__ */ jsx22(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" }) })
|
|
1103
1379
|
}
|
|
1104
1380
|
));
|
|
1105
1381
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1106
|
-
var CheckboxIndicator =
|
|
1382
|
+
var CheckboxIndicator = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1107
1383
|
CheckboxPrimitive.Indicator,
|
|
1108
1384
|
{
|
|
1109
1385
|
ref,
|
|
1110
1386
|
className: cn("grid place-content-center", className),
|
|
1111
1387
|
...props,
|
|
1112
|
-
children: children ?? /* @__PURE__ */
|
|
1388
|
+
children: children ?? /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" })
|
|
1113
1389
|
}
|
|
1114
1390
|
));
|
|
1115
1391
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
1116
1392
|
|
|
1117
1393
|
// src/components/checkbox/Checkbox.tsx
|
|
1118
|
-
import { jsx as
|
|
1119
|
-
var checkboxVariants =
|
|
1394
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1395
|
+
var checkboxVariants = cva9(
|
|
1120
1396
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1121
1397
|
{
|
|
1122
1398
|
variants: {
|
|
@@ -1137,7 +1413,7 @@ var checkboxVariants = cva8(
|
|
|
1137
1413
|
}
|
|
1138
1414
|
}
|
|
1139
1415
|
);
|
|
1140
|
-
var Checkbox2 =
|
|
1416
|
+
var Checkbox2 = React21.forwardRef(
|
|
1141
1417
|
({
|
|
1142
1418
|
"aria-label": ariaLabel,
|
|
1143
1419
|
className,
|
|
@@ -1150,11 +1426,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1150
1426
|
disabled,
|
|
1151
1427
|
...props
|
|
1152
1428
|
}, ref) => {
|
|
1153
|
-
const generatedId =
|
|
1429
|
+
const generatedId = React21.useId();
|
|
1154
1430
|
const checkboxId = id || generatedId;
|
|
1155
1431
|
const errorId = `${checkboxId}-error`;
|
|
1156
|
-
return /* @__PURE__ */
|
|
1157
|
-
/* @__PURE__ */
|
|
1432
|
+
return /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-3", children: [
|
|
1433
|
+
/* @__PURE__ */ jsx23("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx23(
|
|
1158
1434
|
Checkbox,
|
|
1159
1435
|
{
|
|
1160
1436
|
ref,
|
|
@@ -1170,8 +1446,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1170
1446
|
className
|
|
1171
1447
|
),
|
|
1172
1448
|
...props,
|
|
1173
|
-
children: /* @__PURE__ */
|
|
1174
|
-
|
|
1449
|
+
children: /* @__PURE__ */ jsx23(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx23(
|
|
1450
|
+
Check3,
|
|
1175
1451
|
{
|
|
1176
1452
|
className: "h-4 w-4 text-current stroke-current",
|
|
1177
1453
|
style: { color: "currentColor", stroke: "currentColor" }
|
|
@@ -1179,8 +1455,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1179
1455
|
) })
|
|
1180
1456
|
}
|
|
1181
1457
|
) }),
|
|
1182
|
-
(label || description || error) && /* @__PURE__ */
|
|
1183
|
-
label && /* @__PURE__ */
|
|
1458
|
+
(label || description || error) && /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1", children: [
|
|
1459
|
+
label && /* @__PURE__ */ jsx23(
|
|
1184
1460
|
"label",
|
|
1185
1461
|
{
|
|
1186
1462
|
htmlFor: checkboxId,
|
|
@@ -1192,8 +1468,8 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1192
1468
|
children: label
|
|
1193
1469
|
}
|
|
1194
1470
|
),
|
|
1195
|
-
description && /* @__PURE__ */
|
|
1196
|
-
error && /* @__PURE__ */
|
|
1471
|
+
description && /* @__PURE__ */ jsx23(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1472
|
+
error && /* @__PURE__ */ jsx23(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1197
1473
|
] })
|
|
1198
1474
|
] });
|
|
1199
1475
|
}
|
|
@@ -1201,11 +1477,11 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1201
1477
|
Checkbox2.displayName = "Checkbox";
|
|
1202
1478
|
|
|
1203
1479
|
// src/components/switch/Switch.tsx
|
|
1204
|
-
import * as
|
|
1480
|
+
import * as React22 from "react";
|
|
1205
1481
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1206
|
-
import { cva as
|
|
1207
|
-
import { jsx as
|
|
1208
|
-
var switchRootVariants =
|
|
1482
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
1483
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1484
|
+
var switchRootVariants = cva10(
|
|
1209
1485
|
"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",
|
|
1210
1486
|
{
|
|
1211
1487
|
variants: {
|
|
@@ -1226,7 +1502,7 @@ var switchRootVariants = cva9(
|
|
|
1226
1502
|
}
|
|
1227
1503
|
}
|
|
1228
1504
|
);
|
|
1229
|
-
var switchThumbVariants =
|
|
1505
|
+
var switchThumbVariants = cva10(
|
|
1230
1506
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
1231
1507
|
{
|
|
1232
1508
|
variants: {
|
|
@@ -1241,7 +1517,7 @@ var switchThumbVariants = cva9(
|
|
|
1241
1517
|
}
|
|
1242
1518
|
}
|
|
1243
1519
|
);
|
|
1244
|
-
var Switch =
|
|
1520
|
+
var Switch = React22.forwardRef(
|
|
1245
1521
|
({
|
|
1246
1522
|
"aria-label": ariaLabel,
|
|
1247
1523
|
className,
|
|
@@ -1254,11 +1530,11 @@ var Switch = React19.forwardRef(
|
|
|
1254
1530
|
disabled,
|
|
1255
1531
|
...props
|
|
1256
1532
|
}, ref) => {
|
|
1257
|
-
const generatedId =
|
|
1533
|
+
const generatedId = React22.useId();
|
|
1258
1534
|
const switchId = id || generatedId;
|
|
1259
1535
|
const errorId = `${switchId}-error`;
|
|
1260
|
-
return /* @__PURE__ */
|
|
1261
|
-
/* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-3", children: [
|
|
1537
|
+
/* @__PURE__ */ jsx24(
|
|
1262
1538
|
SwitchPrimitives.Root,
|
|
1263
1539
|
{
|
|
1264
1540
|
ref,
|
|
@@ -1273,11 +1549,11 @@ var Switch = React19.forwardRef(
|
|
|
1273
1549
|
className
|
|
1274
1550
|
),
|
|
1275
1551
|
...props,
|
|
1276
|
-
children: /* @__PURE__ */
|
|
1552
|
+
children: /* @__PURE__ */ jsx24(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
1277
1553
|
}
|
|
1278
1554
|
),
|
|
1279
|
-
(label || description || error) && /* @__PURE__ */
|
|
1280
|
-
label && /* @__PURE__ */
|
|
1555
|
+
(label || description || error) && /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-1", children: [
|
|
1556
|
+
label && /* @__PURE__ */ jsx24(
|
|
1281
1557
|
"label",
|
|
1282
1558
|
{
|
|
1283
1559
|
htmlFor: switchId,
|
|
@@ -1288,8 +1564,8 @@ var Switch = React19.forwardRef(
|
|
|
1288
1564
|
children: label
|
|
1289
1565
|
}
|
|
1290
1566
|
),
|
|
1291
|
-
description && /* @__PURE__ */
|
|
1292
|
-
error && /* @__PURE__ */
|
|
1567
|
+
description && /* @__PURE__ */ jsx24(Typography, { variant: "xs", color: "muted", children: description }),
|
|
1568
|
+
error && /* @__PURE__ */ jsx24(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1293
1569
|
] })
|
|
1294
1570
|
] });
|
|
1295
1571
|
}
|
|
@@ -1297,17 +1573,17 @@ var Switch = React19.forwardRef(
|
|
|
1297
1573
|
Switch.displayName = "Switch";
|
|
1298
1574
|
|
|
1299
1575
|
// src/components/select/Select.tsx
|
|
1300
|
-
import * as
|
|
1301
|
-
import { cva as
|
|
1576
|
+
import * as React24 from "react";
|
|
1577
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
1302
1578
|
|
|
1303
1579
|
// src/primitives/select.tsx
|
|
1304
|
-
import * as
|
|
1580
|
+
import * as React23 from "react";
|
|
1305
1581
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1306
|
-
import { Check as
|
|
1307
|
-
import { jsx as
|
|
1582
|
+
import { Check as Check4, ChevronDown as ChevronDown2, ChevronUp } from "lucide-react";
|
|
1583
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1308
1584
|
var Select = SelectPrimitive.Root;
|
|
1309
1585
|
var SelectValue = SelectPrimitive.Value;
|
|
1310
|
-
var SelectTrigger =
|
|
1586
|
+
var SelectTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1311
1587
|
SelectPrimitive.Trigger,
|
|
1312
1588
|
{
|
|
1313
1589
|
ref,
|
|
@@ -1318,32 +1594,32 @@ var SelectTrigger = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
1318
1594
|
...props,
|
|
1319
1595
|
children: [
|
|
1320
1596
|
children,
|
|
1321
|
-
/* @__PURE__ */
|
|
1597
|
+
/* @__PURE__ */ jsx25(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4 opacity-50" }) })
|
|
1322
1598
|
]
|
|
1323
1599
|
}
|
|
1324
1600
|
));
|
|
1325
1601
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1326
|
-
var SelectScrollUpButton =
|
|
1602
|
+
var SelectScrollUpButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1327
1603
|
SelectPrimitive.ScrollUpButton,
|
|
1328
1604
|
{
|
|
1329
1605
|
ref,
|
|
1330
1606
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1331
1607
|
...props,
|
|
1332
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ jsx25(ChevronUp, { className: "h-4 w-4" })
|
|
1333
1609
|
}
|
|
1334
1610
|
));
|
|
1335
1611
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1336
|
-
var SelectScrollDownButton =
|
|
1612
|
+
var SelectScrollDownButton = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1337
1613
|
SelectPrimitive.ScrollDownButton,
|
|
1338
1614
|
{
|
|
1339
1615
|
ref,
|
|
1340
1616
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1341
1617
|
...props,
|
|
1342
|
-
children: /* @__PURE__ */
|
|
1618
|
+
children: /* @__PURE__ */ jsx25(ChevronDown2, { className: "h-4 w-4" })
|
|
1343
1619
|
}
|
|
1344
1620
|
));
|
|
1345
1621
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1346
|
-
var SelectContent =
|
|
1622
|
+
var SelectContent = React23.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx25(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs10(
|
|
1347
1623
|
SelectPrimitive.Content,
|
|
1348
1624
|
{
|
|
1349
1625
|
ref,
|
|
@@ -1355,8 +1631,8 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1355
1631
|
position,
|
|
1356
1632
|
...props,
|
|
1357
1633
|
children: [
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */
|
|
1634
|
+
/* @__PURE__ */ jsx25(SelectScrollUpButton, {}),
|
|
1635
|
+
/* @__PURE__ */ jsx25(
|
|
1360
1636
|
SelectPrimitive.Viewport,
|
|
1361
1637
|
{
|
|
1362
1638
|
className: cn(
|
|
@@ -1366,12 +1642,12 @@ var SelectContent = React20.forwardRef(({ className, children, position = "poppe
|
|
|
1366
1642
|
children
|
|
1367
1643
|
}
|
|
1368
1644
|
),
|
|
1369
|
-
/* @__PURE__ */
|
|
1645
|
+
/* @__PURE__ */ jsx25(SelectScrollDownButton, {})
|
|
1370
1646
|
]
|
|
1371
1647
|
}
|
|
1372
1648
|
) }));
|
|
1373
1649
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1374
|
-
var SelectLabel =
|
|
1650
|
+
var SelectLabel = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1375
1651
|
SelectPrimitive.Label,
|
|
1376
1652
|
{
|
|
1377
1653
|
ref,
|
|
@@ -1380,7 +1656,7 @@ var SelectLabel = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1380
1656
|
}
|
|
1381
1657
|
));
|
|
1382
1658
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1383
|
-
var SelectItem =
|
|
1659
|
+
var SelectItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1384
1660
|
SelectPrimitive.Item,
|
|
1385
1661
|
{
|
|
1386
1662
|
ref,
|
|
@@ -1390,13 +1666,13 @@ var SelectItem = React20.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1390
1666
|
),
|
|
1391
1667
|
...props,
|
|
1392
1668
|
children: [
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__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" }) }) }),
|
|
1670
|
+
/* @__PURE__ */ jsx25(SelectPrimitive.ItemText, { children })
|
|
1395
1671
|
]
|
|
1396
1672
|
}
|
|
1397
1673
|
));
|
|
1398
1674
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1399
|
-
var SelectSeparator =
|
|
1675
|
+
var SelectSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1400
1676
|
SelectPrimitive.Separator,
|
|
1401
1677
|
{
|
|
1402
1678
|
ref,
|
|
@@ -1407,8 +1683,8 @@ var SelectSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1407
1683
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1408
1684
|
|
|
1409
1685
|
// src/components/select/Select.tsx
|
|
1410
|
-
import { jsx as
|
|
1411
|
-
var selectVariants =
|
|
1686
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1687
|
+
var selectVariants = cva11(
|
|
1412
1688
|
"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",
|
|
1413
1689
|
{
|
|
1414
1690
|
variants: {
|
|
@@ -1430,7 +1706,7 @@ var selectVariants = cva10(
|
|
|
1430
1706
|
}
|
|
1431
1707
|
}
|
|
1432
1708
|
);
|
|
1433
|
-
var Select2 =
|
|
1709
|
+
var Select2 = React24.forwardRef(
|
|
1434
1710
|
({
|
|
1435
1711
|
className,
|
|
1436
1712
|
variant,
|
|
@@ -1448,12 +1724,12 @@ var Select2 = React21.forwardRef(
|
|
|
1448
1724
|
name,
|
|
1449
1725
|
required
|
|
1450
1726
|
}, ref) => {
|
|
1451
|
-
const generatedId =
|
|
1727
|
+
const generatedId = React24.useId();
|
|
1452
1728
|
const selectId = id || generatedId;
|
|
1453
1729
|
const errorId = `${selectId}-error`;
|
|
1454
1730
|
const descriptionId = `${selectId}-description`;
|
|
1455
|
-
return /* @__PURE__ */
|
|
1456
|
-
label && /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-2", children: [
|
|
1732
|
+
label && /* @__PURE__ */ jsx26(
|
|
1457
1733
|
"label",
|
|
1458
1734
|
{
|
|
1459
1735
|
htmlFor: selectId,
|
|
@@ -1465,7 +1741,7 @@ var Select2 = React21.forwardRef(
|
|
|
1465
1741
|
children: label
|
|
1466
1742
|
}
|
|
1467
1743
|
),
|
|
1468
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsxs11(
|
|
1469
1745
|
Select,
|
|
1470
1746
|
{
|
|
1471
1747
|
value,
|
|
@@ -1475,7 +1751,7 @@ var Select2 = React21.forwardRef(
|
|
|
1475
1751
|
name,
|
|
1476
1752
|
required,
|
|
1477
1753
|
children: [
|
|
1478
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx26(
|
|
1479
1755
|
SelectTrigger,
|
|
1480
1756
|
{
|
|
1481
1757
|
ref,
|
|
@@ -1487,33 +1763,33 @@ var Select2 = React21.forwardRef(
|
|
|
1487
1763
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1488
1764
|
className
|
|
1489
1765
|
),
|
|
1490
|
-
children: /* @__PURE__ */
|
|
1766
|
+
children: /* @__PURE__ */ jsx26(SelectValue, { placeholder })
|
|
1491
1767
|
}
|
|
1492
1768
|
),
|
|
1493
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ jsx26(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx26(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1494
1770
|
]
|
|
1495
1771
|
}
|
|
1496
1772
|
),
|
|
1497
|
-
description && /* @__PURE__ */
|
|
1498
|
-
error && /* @__PURE__ */
|
|
1773
|
+
description && /* @__PURE__ */ jsx26(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1774
|
+
error && /* @__PURE__ */ jsx26(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1499
1775
|
] });
|
|
1500
1776
|
}
|
|
1501
1777
|
);
|
|
1502
1778
|
Select2.displayName = "Select";
|
|
1503
1779
|
|
|
1504
1780
|
// src/components/country-select/CountrySelect.tsx
|
|
1505
|
-
import * as
|
|
1506
|
-
import { ChevronDown as
|
|
1781
|
+
import * as React29 from "react";
|
|
1782
|
+
import { ChevronDown as ChevronDown3, Globe } from "lucide-react";
|
|
1507
1783
|
|
|
1508
1784
|
// src/components/icon/Icon.tsx
|
|
1509
|
-
import * as
|
|
1510
|
-
import { jsx as
|
|
1785
|
+
import * as React25 from "react";
|
|
1786
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1511
1787
|
var iconStrokeMap = {
|
|
1512
1788
|
16: 1.4,
|
|
1513
1789
|
24: 1.6,
|
|
1514
1790
|
32: 1.8
|
|
1515
1791
|
};
|
|
1516
|
-
var Icon2 =
|
|
1792
|
+
var Icon2 = React25.forwardRef(
|
|
1517
1793
|
({
|
|
1518
1794
|
icon: IconComponent,
|
|
1519
1795
|
size,
|
|
@@ -1525,7 +1801,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1525
1801
|
const strokeWidth = iconStrokeMap[size];
|
|
1526
1802
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1527
1803
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1528
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ jsx27(
|
|
1529
1805
|
IconComponent,
|
|
1530
1806
|
{
|
|
1531
1807
|
ref,
|
|
@@ -1540,12 +1816,12 @@ var Icon2 = React22.forwardRef(
|
|
|
1540
1816
|
Icon2.displayName = "Icon";
|
|
1541
1817
|
|
|
1542
1818
|
// src/primitives/popover.tsx
|
|
1543
|
-
import * as
|
|
1819
|
+
import * as React26 from "react";
|
|
1544
1820
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1545
|
-
import { jsx as
|
|
1821
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1546
1822
|
var Popover = PopoverPrimitive.Root;
|
|
1547
1823
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1548
|
-
var PopoverContent =
|
|
1824
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx28(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1549
1825
|
PopoverPrimitive.Content,
|
|
1550
1826
|
{
|
|
1551
1827
|
ref,
|
|
@@ -1561,17 +1837,17 @@ var PopoverContent = React23.forwardRef(({ className, align = "center", sideOffs
|
|
|
1561
1837
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1562
1838
|
|
|
1563
1839
|
// src/primitives/command.tsx
|
|
1564
|
-
import * as
|
|
1840
|
+
import * as React28 from "react";
|
|
1565
1841
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1566
1842
|
import { Search } from "lucide-react";
|
|
1567
1843
|
|
|
1568
1844
|
// src/primitives/dialog.tsx
|
|
1569
|
-
import * as
|
|
1845
|
+
import * as React27 from "react";
|
|
1570
1846
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1571
1847
|
import { X as X2 } from "lucide-react";
|
|
1572
|
-
import { jsx as
|
|
1848
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1573
1849
|
var DialogPortal2 = DialogPrimitive2.Portal;
|
|
1574
|
-
var DialogOverlay2 =
|
|
1850
|
+
var DialogOverlay2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1575
1851
|
DialogPrimitive2.Overlay,
|
|
1576
1852
|
{
|
|
1577
1853
|
ref,
|
|
@@ -1583,9 +1859,9 @@ var DialogOverlay2 = React24.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1583
1859
|
}
|
|
1584
1860
|
));
|
|
1585
1861
|
DialogOverlay2.displayName = DialogPrimitive2.Overlay.displayName;
|
|
1586
|
-
var DialogContent2 =
|
|
1587
|
-
/* @__PURE__ */
|
|
1588
|
-
/* @__PURE__ */
|
|
1862
|
+
var DialogContent2 = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(DialogPortal2, { children: [
|
|
1863
|
+
/* @__PURE__ */ jsx29(DialogOverlay2, {}),
|
|
1864
|
+
/* @__PURE__ */ jsxs12(
|
|
1589
1865
|
DialogPrimitive2.Content,
|
|
1590
1866
|
{
|
|
1591
1867
|
ref,
|
|
@@ -1596,18 +1872,18 @@ var DialogContent2 = React24.forwardRef(({ className, children, ...props }, ref)
|
|
|
1596
1872
|
...props,
|
|
1597
1873
|
children: [
|
|
1598
1874
|
children,
|
|
1599
|
-
/* @__PURE__ */
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
/* @__PURE__ */
|
|
1875
|
+
/* @__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-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1876
|
+
/* @__PURE__ */ jsx29(X2, { className: "h-4 w-4" }),
|
|
1877
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "Close" })
|
|
1602
1878
|
] })
|
|
1603
1879
|
]
|
|
1604
1880
|
}
|
|
1605
1881
|
)
|
|
1606
1882
|
] }));
|
|
1607
1883
|
DialogContent2.displayName = DialogPrimitive2.Content.displayName;
|
|
1608
|
-
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1884
|
+
var DialogHeader2 = ({ className, ...props }) => /* @__PURE__ */ jsx29("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1609
1885
|
DialogHeader2.displayName = "DialogHeader";
|
|
1610
|
-
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */
|
|
1886
|
+
var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx29(
|
|
1611
1887
|
"div",
|
|
1612
1888
|
{
|
|
1613
1889
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1615,7 +1891,7 @@ var DialogFooter2 = ({ className, ...props }) => /* @__PURE__ */ jsx26(
|
|
|
1615
1891
|
}
|
|
1616
1892
|
);
|
|
1617
1893
|
DialogFooter2.displayName = "DialogFooter";
|
|
1618
|
-
var DialogTitle2 =
|
|
1894
|
+
var DialogTitle2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1619
1895
|
DialogPrimitive2.Title,
|
|
1620
1896
|
{
|
|
1621
1897
|
ref,
|
|
@@ -1624,7 +1900,7 @@ var DialogTitle2 = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1624
1900
|
}
|
|
1625
1901
|
));
|
|
1626
1902
|
DialogTitle2.displayName = DialogPrimitive2.Title.displayName;
|
|
1627
|
-
var DialogDescription2 =
|
|
1903
|
+
var DialogDescription2 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1628
1904
|
DialogPrimitive2.Description,
|
|
1629
1905
|
{
|
|
1630
1906
|
ref,
|
|
@@ -1635,8 +1911,8 @@ var DialogDescription2 = React24.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1635
1911
|
DialogDescription2.displayName = DialogPrimitive2.Description.displayName;
|
|
1636
1912
|
|
|
1637
1913
|
// src/primitives/command.tsx
|
|
1638
|
-
import { jsx as
|
|
1639
|
-
var Command =
|
|
1914
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1915
|
+
var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1640
1916
|
CommandPrimitive,
|
|
1641
1917
|
{
|
|
1642
1918
|
ref,
|
|
@@ -1648,9 +1924,9 @@ var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1648
1924
|
}
|
|
1649
1925
|
));
|
|
1650
1926
|
Command.displayName = CommandPrimitive.displayName;
|
|
1651
|
-
var CommandInput =
|
|
1652
|
-
/* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1927
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1928
|
+
/* @__PURE__ */ jsx30(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1929
|
+
/* @__PURE__ */ jsx30(
|
|
1654
1930
|
CommandPrimitive.Input,
|
|
1655
1931
|
{
|
|
1656
1932
|
ref,
|
|
@@ -1663,7 +1939,7 @@ var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1663
1939
|
)
|
|
1664
1940
|
] }));
|
|
1665
1941
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1666
|
-
var CommandList =
|
|
1942
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1667
1943
|
CommandPrimitive.List,
|
|
1668
1944
|
{
|
|
1669
1945
|
ref,
|
|
@@ -1672,9 +1948,9 @@ var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1672
1948
|
}
|
|
1673
1949
|
));
|
|
1674
1950
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1675
|
-
var CommandEmpty =
|
|
1951
|
+
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ jsx30(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1676
1952
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1677
|
-
var CommandGroup =
|
|
1953
|
+
var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1678
1954
|
CommandPrimitive.Group,
|
|
1679
1955
|
{
|
|
1680
1956
|
ref,
|
|
@@ -1686,7 +1962,7 @@ var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1686
1962
|
}
|
|
1687
1963
|
));
|
|
1688
1964
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1689
|
-
var CommandSeparator =
|
|
1965
|
+
var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1690
1966
|
CommandPrimitive.Separator,
|
|
1691
1967
|
{
|
|
1692
1968
|
ref,
|
|
@@ -1695,7 +1971,7 @@ var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1695
1971
|
}
|
|
1696
1972
|
));
|
|
1697
1973
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1698
|
-
var CommandItem =
|
|
1974
|
+
var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1699
1975
|
CommandPrimitive.Item,
|
|
1700
1976
|
{
|
|
1701
1977
|
ref,
|
|
@@ -1708,7 +1984,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1708
1984
|
));
|
|
1709
1985
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1710
1986
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1711
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ jsx30(
|
|
1712
1988
|
"span",
|
|
1713
1989
|
{
|
|
1714
1990
|
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
|
|
@@ -1859,8 +2135,8 @@ var isEUCountry = (countryCode) => {
|
|
|
1859
2135
|
};
|
|
1860
2136
|
|
|
1861
2137
|
// src/components/country-select/CountrySelect.tsx
|
|
1862
|
-
import { Fragment, jsx as
|
|
1863
|
-
var CountrySelect =
|
|
2138
|
+
import { Fragment, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2139
|
+
var CountrySelect = React29.forwardRef(
|
|
1864
2140
|
({
|
|
1865
2141
|
value,
|
|
1866
2142
|
onValueChange,
|
|
@@ -1870,10 +2146,10 @@ var CountrySelect = React26.forwardRef(
|
|
|
1870
2146
|
align = "center",
|
|
1871
2147
|
sideOffset = 4
|
|
1872
2148
|
}, ref) => {
|
|
1873
|
-
const [open, setOpen] =
|
|
1874
|
-
const selectedCountry =
|
|
1875
|
-
return /* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
2149
|
+
const [open, setOpen] = React29.useState(false);
|
|
2150
|
+
const selectedCountry = React29.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
2151
|
+
return /* @__PURE__ */ jsxs14(Popover, { open, onOpenChange: setOpen, children: [
|
|
2152
|
+
/* @__PURE__ */ jsx31(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
1877
2153
|
"button",
|
|
1878
2154
|
{
|
|
1879
2155
|
ref,
|
|
@@ -1894,16 +2170,16 @@ var CountrySelect = React26.forwardRef(
|
|
|
1894
2170
|
className
|
|
1895
2171
|
),
|
|
1896
2172
|
children: [
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
/* @__PURE__ */
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
2174
|
+
/* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
2175
|
+
/* @__PURE__ */ jsx31("span", { className: "truncate", children: selectedCountry.name }),
|
|
2176
|
+
/* @__PURE__ */ jsxs14("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
1901
2177
|
"(",
|
|
1902
2178
|
selectedCountry.code,
|
|
1903
2179
|
")"
|
|
1904
2180
|
] })
|
|
1905
|
-
] }) : /* @__PURE__ */
|
|
1906
|
-
/* @__PURE__ */
|
|
2181
|
+
] }) : /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
2182
|
+
/* @__PURE__ */ jsx31(
|
|
1907
2183
|
Icon2,
|
|
1908
2184
|
{
|
|
1909
2185
|
icon: Globe,
|
|
@@ -1911,12 +2187,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
1911
2187
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
1912
2188
|
}
|
|
1913
2189
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ jsx31("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
1915
2191
|
] }) }),
|
|
1916
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ jsx31(
|
|
1917
2193
|
Icon2,
|
|
1918
2194
|
{
|
|
1919
|
-
icon:
|
|
2195
|
+
icon: ChevronDown3,
|
|
1920
2196
|
size: 16,
|
|
1921
2197
|
className: cn(
|
|
1922
2198
|
"flex-shrink-0 text-berget-muted-foreground",
|
|
@@ -1928,17 +2204,17 @@ var CountrySelect = React26.forwardRef(
|
|
|
1928
2204
|
]
|
|
1929
2205
|
}
|
|
1930
2206
|
) }),
|
|
1931
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ jsx31(
|
|
1932
2208
|
PopoverContent,
|
|
1933
2209
|
{
|
|
1934
2210
|
align,
|
|
1935
2211
|
sideOffset,
|
|
1936
2212
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
1937
|
-
children: /* @__PURE__ */
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
/* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */
|
|
2213
|
+
children: /* @__PURE__ */ jsxs14(Command, { children: [
|
|
2214
|
+
/* @__PURE__ */ jsx31(CommandInput, { placeholder: "Search country..." }),
|
|
2215
|
+
/* @__PURE__ */ jsxs14(CommandList, { children: [
|
|
2216
|
+
/* @__PURE__ */ jsx31(CommandEmpty, { children: "No countries found." }),
|
|
2217
|
+
/* @__PURE__ */ jsx31(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs14(
|
|
1942
2218
|
CommandItem,
|
|
1943
2219
|
{
|
|
1944
2220
|
value: `${country.name} ${country.code}`,
|
|
@@ -1952,12 +2228,12 @@ var CountrySelect = React26.forwardRef(
|
|
|
1952
2228
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
1953
2229
|
),
|
|
1954
2230
|
children: [
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
-
/* @__PURE__ */
|
|
1958
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ jsx31("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
2232
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex-1 min-w-0", children: [
|
|
2233
|
+
/* @__PURE__ */ jsx31("div", { className: "text-sm truncate", children: country.name }),
|
|
2234
|
+
/* @__PURE__ */ jsx31("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
1959
2235
|
] }),
|
|
1960
|
-
value === country.code && /* @__PURE__ */
|
|
2236
|
+
value === country.code && /* @__PURE__ */ jsx31("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
1961
2237
|
]
|
|
1962
2238
|
},
|
|
1963
2239
|
country.code
|
|
@@ -1972,15 +2248,15 @@ var CountrySelect = React26.forwardRef(
|
|
|
1972
2248
|
CountrySelect.displayName = "CountrySelect";
|
|
1973
2249
|
|
|
1974
2250
|
// src/components/text-area/TextArea.tsx
|
|
1975
|
-
import * as
|
|
1976
|
-
import { cva as
|
|
2251
|
+
import * as React31 from "react";
|
|
2252
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
1977
2253
|
|
|
1978
2254
|
// src/primitives/textarea.tsx
|
|
1979
|
-
import * as
|
|
1980
|
-
import { jsx as
|
|
1981
|
-
var Textarea =
|
|
2255
|
+
import * as React30 from "react";
|
|
2256
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2257
|
+
var Textarea = React30.forwardRef(
|
|
1982
2258
|
({ className, ...props }, ref) => {
|
|
1983
|
-
return /* @__PURE__ */
|
|
2259
|
+
return /* @__PURE__ */ jsx32(
|
|
1984
2260
|
"textarea",
|
|
1985
2261
|
{
|
|
1986
2262
|
className: cn(
|
|
@@ -1996,8 +2272,8 @@ var Textarea = React27.forwardRef(
|
|
|
1996
2272
|
Textarea.displayName = "Textarea";
|
|
1997
2273
|
|
|
1998
2274
|
// src/components/text-area/TextArea.tsx
|
|
1999
|
-
import { jsx as
|
|
2000
|
-
var textAreaVariants =
|
|
2275
|
+
import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2276
|
+
var textAreaVariants = cva12(
|
|
2001
2277
|
"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",
|
|
2002
2278
|
{
|
|
2003
2279
|
variants: {
|
|
@@ -2019,7 +2295,7 @@ var textAreaVariants = cva11(
|
|
|
2019
2295
|
}
|
|
2020
2296
|
}
|
|
2021
2297
|
);
|
|
2022
|
-
var TextArea =
|
|
2298
|
+
var TextArea = React31.forwardRef(
|
|
2023
2299
|
({
|
|
2024
2300
|
className,
|
|
2025
2301
|
variant,
|
|
@@ -2039,13 +2315,13 @@ var TextArea = React28.forwardRef(
|
|
|
2039
2315
|
actionButton,
|
|
2040
2316
|
...props
|
|
2041
2317
|
}, ref) => {
|
|
2042
|
-
const generatedId =
|
|
2318
|
+
const generatedId = React31.useId();
|
|
2043
2319
|
const textareaId = id || generatedId;
|
|
2044
2320
|
const errorId = `${textareaId}-error`;
|
|
2045
2321
|
const descriptionId = `${textareaId}-description`;
|
|
2046
2322
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
2047
|
-
return /* @__PURE__ */
|
|
2048
|
-
label && /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-2", children: [
|
|
2324
|
+
label && /* @__PURE__ */ jsx33(
|
|
2049
2325
|
"label",
|
|
2050
2326
|
{
|
|
2051
2327
|
htmlFor: textareaId,
|
|
@@ -2057,9 +2333,9 @@ var TextArea = React28.forwardRef(
|
|
|
2057
2333
|
children: label
|
|
2058
2334
|
}
|
|
2059
2335
|
),
|
|
2060
|
-
/* @__PURE__ */
|
|
2061
|
-
icon && /* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ jsxs15("div", { className: "relative", children: [
|
|
2337
|
+
icon && /* @__PURE__ */ jsx33("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
2338
|
+
/* @__PURE__ */ jsx33(
|
|
2063
2339
|
Textarea,
|
|
2064
2340
|
{
|
|
2065
2341
|
ref,
|
|
@@ -2084,13 +2360,13 @@ var TextArea = React28.forwardRef(
|
|
|
2084
2360
|
...props
|
|
2085
2361
|
}
|
|
2086
2362
|
),
|
|
2087
|
-
secondaryIcon && /* @__PURE__ */
|
|
2088
|
-
actionButton && /* @__PURE__ */
|
|
2363
|
+
secondaryIcon && /* @__PURE__ */ jsx33("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
2364
|
+
actionButton && /* @__PURE__ */ jsx33("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
2089
2365
|
] }),
|
|
2090
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */
|
|
2091
|
-
description && /* @__PURE__ */
|
|
2092
|
-
(error || showCount && maxLength) && /* @__PURE__ */
|
|
2093
|
-
showCount && maxLength && /* @__PURE__ */
|
|
2366
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2367
|
+
description && /* @__PURE__ */ jsx33(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
2368
|
+
(error || showCount && maxLength) && /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
2369
|
+
showCount && maxLength && /* @__PURE__ */ jsxs15(
|
|
2094
2370
|
Typography,
|
|
2095
2371
|
{
|
|
2096
2372
|
variant: "xs",
|
|
@@ -2104,7 +2380,7 @@ var TextArea = React28.forwardRef(
|
|
|
2104
2380
|
]
|
|
2105
2381
|
}
|
|
2106
2382
|
),
|
|
2107
|
-
error && /* @__PURE__ */
|
|
2383
|
+
error && /* @__PURE__ */ jsx33(
|
|
2108
2384
|
Typography,
|
|
2109
2385
|
{
|
|
2110
2386
|
variant: "xs",
|
|
@@ -2121,22 +2397,22 @@ var TextArea = React28.forwardRef(
|
|
|
2121
2397
|
TextArea.displayName = "TextArea";
|
|
2122
2398
|
|
|
2123
2399
|
// src/primitives/label.tsx
|
|
2124
|
-
import * as
|
|
2400
|
+
import * as React32 from "react";
|
|
2125
2401
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2126
|
-
import { cva as
|
|
2127
|
-
import { jsx as
|
|
2128
|
-
var labelVariants =
|
|
2402
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
2403
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2404
|
+
var labelVariants = cva13(
|
|
2129
2405
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2130
2406
|
);
|
|
2131
|
-
var
|
|
2132
|
-
|
|
2407
|
+
var Label3 = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2408
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2133
2409
|
|
|
2134
2410
|
// src/primitives/field.tsx
|
|
2135
2411
|
import { useMemo as useMemo3 } from "react";
|
|
2136
|
-
import { cva as
|
|
2137
|
-
import { jsx as
|
|
2412
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
2413
|
+
import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2138
2414
|
function FieldSet({ className, ...props }) {
|
|
2139
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx35(
|
|
2140
2416
|
"fieldset",
|
|
2141
2417
|
{
|
|
2142
2418
|
"data-slot": "field-set",
|
|
@@ -2154,7 +2430,7 @@ function FieldLegend({
|
|
|
2154
2430
|
variant = "legend",
|
|
2155
2431
|
...props
|
|
2156
2432
|
}) {
|
|
2157
|
-
return /* @__PURE__ */
|
|
2433
|
+
return /* @__PURE__ */ jsx35(
|
|
2158
2434
|
"legend",
|
|
2159
2435
|
{
|
|
2160
2436
|
"data-slot": "field-legend",
|
|
@@ -2170,7 +2446,7 @@ function FieldLegend({
|
|
|
2170
2446
|
);
|
|
2171
2447
|
}
|
|
2172
2448
|
function FieldGroup({ className, ...props }) {
|
|
2173
|
-
return /* @__PURE__ */
|
|
2449
|
+
return /* @__PURE__ */ jsx35(
|
|
2174
2450
|
"div",
|
|
2175
2451
|
{
|
|
2176
2452
|
"data-slot": "field-group",
|
|
@@ -2182,7 +2458,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
2182
2458
|
}
|
|
2183
2459
|
);
|
|
2184
2460
|
}
|
|
2185
|
-
var fieldVariants =
|
|
2461
|
+
var fieldVariants = cva14(
|
|
2186
2462
|
"group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
|
|
2187
2463
|
{
|
|
2188
2464
|
variants: {
|
|
@@ -2210,7 +2486,7 @@ function Field({
|
|
|
2210
2486
|
orientation = "vertical",
|
|
2211
2487
|
...props
|
|
2212
2488
|
}) {
|
|
2213
|
-
return /* @__PURE__ */
|
|
2489
|
+
return /* @__PURE__ */ jsx35(
|
|
2214
2490
|
"div",
|
|
2215
2491
|
{
|
|
2216
2492
|
role: "group",
|
|
@@ -2222,7 +2498,7 @@ function Field({
|
|
|
2222
2498
|
);
|
|
2223
2499
|
}
|
|
2224
2500
|
function FieldContent({ className, ...props }) {
|
|
2225
|
-
return /* @__PURE__ */
|
|
2501
|
+
return /* @__PURE__ */ jsx35(
|
|
2226
2502
|
"div",
|
|
2227
2503
|
{
|
|
2228
2504
|
"data-slot": "field-content",
|
|
@@ -2232,8 +2508,8 @@ function FieldContent({ className, ...props }) {
|
|
|
2232
2508
|
);
|
|
2233
2509
|
}
|
|
2234
2510
|
function FieldLabel({ className, ...props }) {
|
|
2235
|
-
return /* @__PURE__ */
|
|
2236
|
-
|
|
2511
|
+
return /* @__PURE__ */ jsx35(
|
|
2512
|
+
Label3,
|
|
2237
2513
|
{
|
|
2238
2514
|
"data-slot": "field-label",
|
|
2239
2515
|
className: cn(
|
|
@@ -2247,7 +2523,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
2247
2523
|
);
|
|
2248
2524
|
}
|
|
2249
2525
|
function FieldTitle({ className, ...props }) {
|
|
2250
|
-
return /* @__PURE__ */
|
|
2526
|
+
return /* @__PURE__ */ jsx35(
|
|
2251
2527
|
"div",
|
|
2252
2528
|
{
|
|
2253
2529
|
"data-slot": "field-label",
|
|
@@ -2260,7 +2536,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
2260
2536
|
);
|
|
2261
2537
|
}
|
|
2262
2538
|
function FieldDescription({ className, ...props }) {
|
|
2263
|
-
return /* @__PURE__ */
|
|
2539
|
+
return /* @__PURE__ */ jsx35(
|
|
2264
2540
|
"p",
|
|
2265
2541
|
{
|
|
2266
2542
|
"data-slot": "field-description",
|
|
@@ -2279,7 +2555,7 @@ function FieldSeparator({
|
|
|
2279
2555
|
className,
|
|
2280
2556
|
...props
|
|
2281
2557
|
}) {
|
|
2282
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsxs16(
|
|
2283
2559
|
"div",
|
|
2284
2560
|
{
|
|
2285
2561
|
"data-slot": "field-separator",
|
|
@@ -2290,8 +2566,8 @@ function FieldSeparator({
|
|
|
2290
2566
|
),
|
|
2291
2567
|
...props,
|
|
2292
2568
|
children: [
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
children && /* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ jsx35(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
2570
|
+
children && /* @__PURE__ */ jsx35(
|
|
2295
2571
|
"span",
|
|
2296
2572
|
{
|
|
2297
2573
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -2319,12 +2595,12 @@ function FieldError({
|
|
|
2319
2595
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
2320
2596
|
return errors[0].message;
|
|
2321
2597
|
}
|
|
2322
|
-
return /* @__PURE__ */
|
|
2598
|
+
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)) });
|
|
2323
2599
|
}, [children, errors]);
|
|
2324
2600
|
if (!content) {
|
|
2325
2601
|
return null;
|
|
2326
2602
|
}
|
|
2327
|
-
return /* @__PURE__ */
|
|
2603
|
+
return /* @__PURE__ */ jsx35(
|
|
2328
2604
|
"div",
|
|
2329
2605
|
{
|
|
2330
2606
|
role: "alert",
|
|
@@ -2337,11 +2613,11 @@ function FieldError({
|
|
|
2337
2613
|
}
|
|
2338
2614
|
|
|
2339
2615
|
// src/components/link/Link.tsx
|
|
2340
|
-
import * as
|
|
2341
|
-
import { cva as
|
|
2616
|
+
import * as React33 from "react";
|
|
2617
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
2342
2618
|
import { ExternalLink } from "lucide-react";
|
|
2343
|
-
import { jsx as
|
|
2344
|
-
var linkVariants =
|
|
2619
|
+
import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2620
|
+
var linkVariants = cva15(
|
|
2345
2621
|
"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",
|
|
2346
2622
|
{
|
|
2347
2623
|
variants: {
|
|
@@ -2365,7 +2641,7 @@ var linkVariants = cva14(
|
|
|
2365
2641
|
}
|
|
2366
2642
|
}
|
|
2367
2643
|
);
|
|
2368
|
-
var
|
|
2644
|
+
var Link2 = React33.forwardRef(
|
|
2369
2645
|
({
|
|
2370
2646
|
className,
|
|
2371
2647
|
variant,
|
|
@@ -2378,7 +2654,7 @@ var Link = React30.forwardRef(
|
|
|
2378
2654
|
...props
|
|
2379
2655
|
}, ref) => {
|
|
2380
2656
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
2381
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ jsxs17(
|
|
2382
2658
|
"a",
|
|
2383
2659
|
{
|
|
2384
2660
|
ref,
|
|
@@ -2394,21 +2670,21 @@ var Link = React30.forwardRef(
|
|
|
2394
2670
|
},
|
|
2395
2671
|
children: [
|
|
2396
2672
|
children,
|
|
2397
|
-
icon && /* @__PURE__ */
|
|
2398
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
2673
|
+
icon && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center", children: icon }),
|
|
2674
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx36("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx36(Icon2, { icon: ExternalLink, size: 16 }) })
|
|
2399
2675
|
]
|
|
2400
2676
|
}
|
|
2401
2677
|
);
|
|
2402
2678
|
}
|
|
2403
2679
|
);
|
|
2404
|
-
|
|
2680
|
+
Link2.displayName = "Link";
|
|
2405
2681
|
|
|
2406
2682
|
// src/components/container/Container.tsx
|
|
2407
|
-
import * as
|
|
2683
|
+
import * as React34 from "react";
|
|
2408
2684
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2409
|
-
import { cva as
|
|
2410
|
-
import { jsx as
|
|
2411
|
-
var containerVariants =
|
|
2685
|
+
import { cva as cva16 } from "class-variance-authority";
|
|
2686
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2687
|
+
var containerVariants = cva16("w-full mx-auto", {
|
|
2412
2688
|
variants: {
|
|
2413
2689
|
size: {
|
|
2414
2690
|
sm: "max-w-3xl",
|
|
@@ -2429,10 +2705,10 @@ var containerVariants = cva15("w-full mx-auto", {
|
|
|
2429
2705
|
padding: "md"
|
|
2430
2706
|
}
|
|
2431
2707
|
});
|
|
2432
|
-
var Container =
|
|
2708
|
+
var Container = React34.forwardRef(
|
|
2433
2709
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
2434
2710
|
const Component = asChild ? Slot3 : "div";
|
|
2435
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ jsx37(
|
|
2436
2712
|
Component,
|
|
2437
2713
|
{
|
|
2438
2714
|
ref,
|
|
@@ -2446,11 +2722,11 @@ var Container = React31.forwardRef(
|
|
|
2446
2722
|
Container.displayName = "Container";
|
|
2447
2723
|
|
|
2448
2724
|
// src/components/grid/Grid.tsx
|
|
2449
|
-
import * as
|
|
2450
|
-
import { cva as
|
|
2725
|
+
import * as React35 from "react";
|
|
2726
|
+
import { cva as cva17 } from "class-variance-authority";
|
|
2451
2727
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
2452
|
-
import { jsx as
|
|
2453
|
-
var gridVariants =
|
|
2728
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2729
|
+
var gridVariants = cva17("grid", {
|
|
2454
2730
|
variants: {
|
|
2455
2731
|
align: {
|
|
2456
2732
|
start: "items-start",
|
|
@@ -2472,10 +2748,10 @@ var gridVariants = cva16("grid", {
|
|
|
2472
2748
|
justify: "start"
|
|
2473
2749
|
}
|
|
2474
2750
|
});
|
|
2475
|
-
var Grid =
|
|
2751
|
+
var Grid = React35.forwardRef(
|
|
2476
2752
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
2477
2753
|
const Component = asChild ? Slot4 : "div";
|
|
2478
|
-
return /* @__PURE__ */
|
|
2754
|
+
return /* @__PURE__ */ jsx38(
|
|
2479
2755
|
Component,
|
|
2480
2756
|
{
|
|
2481
2757
|
ref,
|
|
@@ -2497,11 +2773,11 @@ var Grid = React32.forwardRef(
|
|
|
2497
2773
|
Grid.displayName = "Grid";
|
|
2498
2774
|
|
|
2499
2775
|
// src/components/box/Box.tsx
|
|
2500
|
-
import * as
|
|
2501
|
-
import { cva as
|
|
2776
|
+
import * as React36 from "react";
|
|
2777
|
+
import { cva as cva18 } from "class-variance-authority";
|
|
2502
2778
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
2503
|
-
import { jsx as
|
|
2504
|
-
var boxVariants =
|
|
2779
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2780
|
+
var boxVariants = cva18("flex", {
|
|
2505
2781
|
variants: {
|
|
2506
2782
|
direction: {
|
|
2507
2783
|
row: "flex-row",
|
|
@@ -2537,10 +2813,10 @@ var boxVariants = cva17("flex", {
|
|
|
2537
2813
|
wrap: "nowrap"
|
|
2538
2814
|
}
|
|
2539
2815
|
});
|
|
2540
|
-
var Box =
|
|
2816
|
+
var Box = React36.forwardRef(
|
|
2541
2817
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
2542
2818
|
const Component = asChild ? Slot5 : "div";
|
|
2543
|
-
return /* @__PURE__ */
|
|
2819
|
+
return /* @__PURE__ */ jsx39(
|
|
2544
2820
|
Component,
|
|
2545
2821
|
{
|
|
2546
2822
|
ref,
|
|
@@ -2558,16 +2834,16 @@ var Box = React33.forwardRef(
|
|
|
2558
2834
|
Box.displayName = "Box";
|
|
2559
2835
|
|
|
2560
2836
|
// src/components/berget-logo/BergetLogo.tsx
|
|
2561
|
-
import * as
|
|
2562
|
-
import { jsx as
|
|
2563
|
-
var BergetLogo =
|
|
2837
|
+
import * as React37 from "react";
|
|
2838
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2839
|
+
var BergetLogo = React37.forwardRef(
|
|
2564
2840
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
2565
2841
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
2566
2842
|
if (variant === "symbol") {
|
|
2567
2843
|
const aspectRatio2 = 463 / 419;
|
|
2568
2844
|
const width2 = size * aspectRatio2;
|
|
2569
2845
|
const height2 = size;
|
|
2570
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ jsx40(
|
|
2571
2847
|
"svg",
|
|
2572
2848
|
{
|
|
2573
2849
|
ref,
|
|
@@ -2580,7 +2856,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2580
2856
|
"aria-label": "Berget symbol",
|
|
2581
2857
|
className: cn("inline-block", className),
|
|
2582
2858
|
...props,
|
|
2583
|
-
children: /* @__PURE__ */
|
|
2859
|
+
children: /* @__PURE__ */ jsx40(
|
|
2584
2860
|
"path",
|
|
2585
2861
|
{
|
|
2586
2862
|
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",
|
|
@@ -2593,7 +2869,7 @@ var BergetLogo = React34.forwardRef(
|
|
|
2593
2869
|
const aspectRatio = 793.63 / 204.37;
|
|
2594
2870
|
const width = size * aspectRatio;
|
|
2595
2871
|
const height = size;
|
|
2596
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ jsxs18(
|
|
2597
2873
|
"svg",
|
|
2598
2874
|
{
|
|
2599
2875
|
ref,
|
|
@@ -2607,59 +2883,59 @@ var BergetLogo = React34.forwardRef(
|
|
|
2607
2883
|
className: cn("inline-block", className),
|
|
2608
2884
|
...props,
|
|
2609
2885
|
children: [
|
|
2610
|
-
/* @__PURE__ */
|
|
2611
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ jsxs18("g", { style: { fill: fillColor }, children: [
|
|
2887
|
+
/* @__PURE__ */ jsx40(
|
|
2612
2888
|
"path",
|
|
2613
2889
|
{
|
|
2614
2890
|
className: "berget-logotype-fill",
|
|
2615
2891
|
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"
|
|
2616
2892
|
}
|
|
2617
2893
|
),
|
|
2618
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ jsx40(
|
|
2619
2895
|
"path",
|
|
2620
2896
|
{
|
|
2621
2897
|
className: "berget-logotype-fill",
|
|
2622
2898
|
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"
|
|
2623
2899
|
}
|
|
2624
2900
|
),
|
|
2625
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ jsx40(
|
|
2626
2902
|
"path",
|
|
2627
2903
|
{
|
|
2628
2904
|
className: "berget-logotype-fill",
|
|
2629
2905
|
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"
|
|
2630
2906
|
}
|
|
2631
2907
|
),
|
|
2632
|
-
/* @__PURE__ */
|
|
2908
|
+
/* @__PURE__ */ jsx40(
|
|
2633
2909
|
"path",
|
|
2634
2910
|
{
|
|
2635
2911
|
className: "berget-logotype-fill",
|
|
2636
2912
|
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"
|
|
2637
2913
|
}
|
|
2638
2914
|
),
|
|
2639
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx40(
|
|
2640
2916
|
"path",
|
|
2641
2917
|
{
|
|
2642
2918
|
className: "berget-logotype-fill",
|
|
2643
2919
|
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"
|
|
2644
2920
|
}
|
|
2645
2921
|
),
|
|
2646
|
-
/* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx40(
|
|
2647
2923
|
"path",
|
|
2648
2924
|
{
|
|
2649
2925
|
className: "berget-logotype-fill",
|
|
2650
2926
|
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"
|
|
2651
2927
|
}
|
|
2652
2928
|
),
|
|
2653
|
-
/* @__PURE__ */
|
|
2929
|
+
/* @__PURE__ */ jsx40(
|
|
2654
2930
|
"path",
|
|
2655
2931
|
{
|
|
2656
2932
|
className: "berget-logotype-fill",
|
|
2657
2933
|
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"
|
|
2658
2934
|
}
|
|
2659
2935
|
),
|
|
2660
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsx40("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
2661
2937
|
] }),
|
|
2662
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ jsx40(
|
|
2663
2939
|
"path",
|
|
2664
2940
|
{
|
|
2665
2941
|
style: { fill: fillColor },
|
|
@@ -2674,13 +2950,13 @@ var BergetLogo = React34.forwardRef(
|
|
|
2674
2950
|
BergetLogo.displayName = "BergetLogo";
|
|
2675
2951
|
|
|
2676
2952
|
// src/components/language-select/LanguageSelect.tsx
|
|
2677
|
-
import * as
|
|
2953
|
+
import * as React38 from "react";
|
|
2678
2954
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
2679
2955
|
import { Globe as Globe2 } from "lucide-react";
|
|
2680
|
-
import { jsx as
|
|
2681
|
-
var LanguageSelect =
|
|
2682
|
-
return /* @__PURE__ */
|
|
2683
|
-
/* @__PURE__ */
|
|
2956
|
+
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2957
|
+
var LanguageSelect = React38.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
2958
|
+
return /* @__PURE__ */ jsxs19(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
2959
|
+
/* @__PURE__ */ jsxs19(
|
|
2684
2960
|
SelectPrimitive2.Trigger,
|
|
2685
2961
|
{
|
|
2686
2962
|
ref,
|
|
@@ -2703,12 +2979,12 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2703
2979
|
className
|
|
2704
2980
|
),
|
|
2705
2981
|
children: [
|
|
2706
|
-
/* @__PURE__ */
|
|
2707
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Select language" }),
|
|
2983
|
+
/* @__PURE__ */ jsx41(Icon2, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
2708
2984
|
]
|
|
2709
2985
|
}
|
|
2710
2986
|
),
|
|
2711
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ jsx41(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx41(
|
|
2712
2988
|
SelectPrimitive2.Content,
|
|
2713
2989
|
{
|
|
2714
2990
|
className: cn(
|
|
@@ -2736,7 +3012,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2736
3012
|
"origin-[--radix-select-content-transform-origin]"
|
|
2737
3013
|
),
|
|
2738
3014
|
position: "popper",
|
|
2739
|
-
children: /* @__PURE__ */
|
|
3015
|
+
children: /* @__PURE__ */ jsx41(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx41(
|
|
2740
3016
|
SelectPrimitive2.Item,
|
|
2741
3017
|
{
|
|
2742
3018
|
value: option.value,
|
|
@@ -2753,7 +3029,7 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2753
3029
|
// Disabled state
|
|
2754
3030
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2755
3031
|
),
|
|
2756
|
-
children: /* @__PURE__ */
|
|
3032
|
+
children: /* @__PURE__ */ jsx41(SelectPrimitive2.ItemText, { children: option.label })
|
|
2757
3033
|
},
|
|
2758
3034
|
option.value
|
|
2759
3035
|
)) })
|
|
@@ -2764,13 +3040,13 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2764
3040
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2765
3041
|
|
|
2766
3042
|
// src/components/list/List.tsx
|
|
2767
|
-
import * as
|
|
3043
|
+
import * as React40 from "react";
|
|
2768
3044
|
|
|
2769
3045
|
// src/components/divider/Divider.tsx
|
|
2770
|
-
import * as
|
|
2771
|
-
import { cva as
|
|
2772
|
-
import { jsx as
|
|
2773
|
-
var dividerVariants =
|
|
3046
|
+
import * as React39 from "react";
|
|
3047
|
+
import { cva as cva19 } from "class-variance-authority";
|
|
3048
|
+
import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3049
|
+
var dividerVariants = cva19("", {
|
|
2774
3050
|
variants: {
|
|
2775
3051
|
variant: {
|
|
2776
3052
|
default: "bg-berget-separator",
|
|
@@ -2790,7 +3066,7 @@ var dividerVariants = cva18("", {
|
|
|
2790
3066
|
size: "thin"
|
|
2791
3067
|
}
|
|
2792
3068
|
});
|
|
2793
|
-
var Divider =
|
|
3069
|
+
var Divider = React39.forwardRef(
|
|
2794
3070
|
({
|
|
2795
3071
|
className,
|
|
2796
3072
|
orientation = "horizontal",
|
|
@@ -2801,17 +3077,17 @@ var Divider = React36.forwardRef(
|
|
|
2801
3077
|
...props
|
|
2802
3078
|
}, ref) => {
|
|
2803
3079
|
if (label) {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2805
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
2806
|
-
|
|
3080
|
+
return /* @__PURE__ */ jsxs20("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
3081
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx42(
|
|
3082
|
+
Separator2,
|
|
2807
3083
|
{
|
|
2808
3084
|
orientation: "horizontal",
|
|
2809
3085
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2810
3086
|
}
|
|
2811
3087
|
),
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
2814
|
-
|
|
3088
|
+
/* @__PURE__ */ jsx42(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
3089
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx42(
|
|
3090
|
+
Separator2,
|
|
2815
3091
|
{
|
|
2816
3092
|
orientation: "horizontal",
|
|
2817
3093
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
@@ -2819,8 +3095,8 @@ var Divider = React36.forwardRef(
|
|
|
2819
3095
|
)
|
|
2820
3096
|
] });
|
|
2821
3097
|
}
|
|
2822
|
-
return /* @__PURE__ */
|
|
2823
|
-
|
|
3098
|
+
return /* @__PURE__ */ jsx42(
|
|
3099
|
+
Separator2,
|
|
2824
3100
|
{
|
|
2825
3101
|
ref,
|
|
2826
3102
|
orientation,
|
|
@@ -2836,20 +3112,20 @@ var Divider = React36.forwardRef(
|
|
|
2836
3112
|
Divider.displayName = "Divider";
|
|
2837
3113
|
|
|
2838
3114
|
// src/components/list/List.tsx
|
|
2839
|
-
import { Check as
|
|
2840
|
-
import { jsx as
|
|
2841
|
-
var
|
|
3115
|
+
import { Check as Check5 } from "lucide-react";
|
|
3116
|
+
import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3117
|
+
var List2 = React40.forwardRef(
|
|
2842
3118
|
({ className, children, ...props }, ref) => {
|
|
2843
|
-
const childrenArray =
|
|
2844
|
-
return /* @__PURE__ */
|
|
3119
|
+
const childrenArray = React40.Children.toArray(children);
|
|
3120
|
+
return /* @__PURE__ */ jsx43("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs21(React40.Fragment, { children: [
|
|
2845
3121
|
child,
|
|
2846
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
3122
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx43(Divider, { variant: "subtle" })
|
|
2847
3123
|
] }, index)) });
|
|
2848
3124
|
}
|
|
2849
3125
|
);
|
|
2850
|
-
|
|
2851
|
-
var ListItem =
|
|
2852
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */
|
|
3126
|
+
List2.displayName = "List";
|
|
3127
|
+
var ListItem = React40.forwardRef(
|
|
3128
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
2853
3129
|
"div",
|
|
2854
3130
|
{
|
|
2855
3131
|
ref,
|
|
@@ -2860,15 +3136,15 @@ var ListItem = React37.forwardRef(
|
|
|
2860
3136
|
),
|
|
2861
3137
|
...props,
|
|
2862
3138
|
children: [
|
|
2863
|
-
icon && /* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
3139
|
+
icon && /* @__PURE__ */ jsx43("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
3140
|
+
/* @__PURE__ */ jsx43("div", { className: "flex-1 min-w-0", children })
|
|
2865
3141
|
]
|
|
2866
3142
|
}
|
|
2867
3143
|
)
|
|
2868
3144
|
);
|
|
2869
3145
|
ListItem.displayName = "ListItem";
|
|
2870
|
-
var ListHeader =
|
|
2871
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
3146
|
+
var ListHeader = React40.forwardRef(
|
|
3147
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
2872
3148
|
"div",
|
|
2873
3149
|
{
|
|
2874
3150
|
ref,
|
|
@@ -2879,21 +3155,21 @@ var ListHeader = React37.forwardRef(
|
|
|
2879
3155
|
)
|
|
2880
3156
|
);
|
|
2881
3157
|
ListHeader.displayName = "ListHeader";
|
|
2882
|
-
var FeatureList =
|
|
3158
|
+
var FeatureList = React40.forwardRef(
|
|
2883
3159
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
2884
|
-
return /* @__PURE__ */
|
|
2885
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
2886
|
-
/* @__PURE__ */
|
|
3160
|
+
return /* @__PURE__ */ jsx43("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: [
|
|
3161
|
+
variant === "bullet" ? /* @__PURE__ */ jsx43("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx43("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx43(Icon2, { icon: Check5, size: 24, className: "text-berget-logo-light" }) }),
|
|
3162
|
+
/* @__PURE__ */ jsx43(Typography, { variant: "body", color: "muted", children: item })
|
|
2887
3163
|
] }, index)) });
|
|
2888
3164
|
}
|
|
2889
3165
|
);
|
|
2890
3166
|
FeatureList.displayName = "FeatureList";
|
|
2891
3167
|
|
|
2892
3168
|
// src/components/hero-block/HeroBlock.tsx
|
|
2893
|
-
import * as
|
|
2894
|
-
import { cva as
|
|
2895
|
-
import { jsx as
|
|
2896
|
-
var heroBlockVariants =
|
|
3169
|
+
import * as React41 from "react";
|
|
3170
|
+
import { cva as cva20 } from "class-variance-authority";
|
|
3171
|
+
import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3172
|
+
var heroBlockVariants = cva20(
|
|
2897
3173
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
2898
3174
|
{
|
|
2899
3175
|
variants: {
|
|
@@ -2913,7 +3189,7 @@ var heroBlockVariants = cva19(
|
|
|
2913
3189
|
}
|
|
2914
3190
|
}
|
|
2915
3191
|
);
|
|
2916
|
-
var HeroBlock =
|
|
3192
|
+
var HeroBlock = React41.forwardRef(
|
|
2917
3193
|
({
|
|
2918
3194
|
className,
|
|
2919
3195
|
variant,
|
|
@@ -2925,26 +3201,26 @@ var HeroBlock = React38.forwardRef(
|
|
|
2925
3201
|
actions,
|
|
2926
3202
|
...props
|
|
2927
3203
|
}, ref) => {
|
|
2928
|
-
return /* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsx44(
|
|
2929
3205
|
"div",
|
|
2930
3206
|
{
|
|
2931
3207
|
ref,
|
|
2932
3208
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
2933
3209
|
...props,
|
|
2934
|
-
children: /* @__PURE__ */
|
|
2935
|
-
tagline && /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ jsx44("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: [
|
|
3211
|
+
tagline && /* @__PURE__ */ jsx44(
|
|
2936
3212
|
Badge,
|
|
2937
3213
|
{
|
|
2938
3214
|
variant: "default",
|
|
2939
|
-
icon: TaglineIcon ? /* @__PURE__ */
|
|
3215
|
+
icon: TaglineIcon ? /* @__PURE__ */ jsx44(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
2940
3216
|
iconGap: 2,
|
|
2941
3217
|
className: "mb-fluid-md",
|
|
2942
3218
|
children: tagline
|
|
2943
3219
|
}
|
|
2944
3220
|
),
|
|
2945
|
-
/* @__PURE__ */
|
|
2946
|
-
/* @__PURE__ */
|
|
2947
|
-
actions && /* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx44(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
3222
|
+
/* @__PURE__ */ jsx44(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
3223
|
+
actions && /* @__PURE__ */ jsx44("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
2948
3224
|
] }) })
|
|
2949
3225
|
}
|
|
2950
3226
|
);
|
|
@@ -2954,8 +3230,8 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
2954
3230
|
|
|
2955
3231
|
// src/components/code-block/CodeBlock.tsx
|
|
2956
3232
|
import { useState as useState3, useEffect as useEffect2, useCallback as useCallback3 } from "react";
|
|
2957
|
-
import { Copy, Check as
|
|
2958
|
-
import { jsx as
|
|
3233
|
+
import { Copy, Check as Check6 } from "lucide-react";
|
|
3234
|
+
import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2959
3235
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
2960
3236
|
const [html, setHtml] = useState3(null);
|
|
2961
3237
|
const [copied, setCopied] = useState3(false);
|
|
@@ -2971,16 +3247,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2971
3247
|
setCopied(true);
|
|
2972
3248
|
setTimeout(() => setCopied(false), 2e3);
|
|
2973
3249
|
}, [code]);
|
|
2974
|
-
const copyButton = /* @__PURE__ */
|
|
3250
|
+
const copyButton = /* @__PURE__ */ jsx45(
|
|
2975
3251
|
"button",
|
|
2976
3252
|
{
|
|
2977
3253
|
onClick: handleCopy,
|
|
2978
3254
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
2979
3255
|
"aria-label": "Copy code",
|
|
2980
|
-
children: copied ? /* @__PURE__ */
|
|
3256
|
+
children: copied ? /* @__PURE__ */ jsx45(Check6, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx45(Copy, { className: "w-3.5 h-3.5" })
|
|
2981
3257
|
}
|
|
2982
3258
|
);
|
|
2983
|
-
return /* @__PURE__ */
|
|
3259
|
+
return /* @__PURE__ */ jsxs23(
|
|
2984
3260
|
"div",
|
|
2985
3261
|
{
|
|
2986
3262
|
className: cn(
|
|
@@ -2988,25 +3264,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2988
3264
|
className
|
|
2989
3265
|
),
|
|
2990
3266
|
children: [
|
|
2991
|
-
title && /* @__PURE__ */
|
|
2992
|
-
/* @__PURE__ */
|
|
2993
|
-
html ? /* @__PURE__ */
|
|
3267
|
+
title && /* @__PURE__ */ jsx45("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__ */ jsx45("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
3268
|
+
/* @__PURE__ */ jsx45("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
3269
|
+
html ? /* @__PURE__ */ jsx45(
|
|
2994
3270
|
"div",
|
|
2995
3271
|
{
|
|
2996
3272
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
2997
3273
|
dangerouslySetInnerHTML: { __html: html }
|
|
2998
3274
|
}
|
|
2999
|
-
) : /* @__PURE__ */
|
|
3275
|
+
) : /* @__PURE__ */ jsx45("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx45("code", { children: code }) })
|
|
3000
3276
|
]
|
|
3001
3277
|
}
|
|
3002
3278
|
);
|
|
3003
3279
|
}
|
|
3004
3280
|
|
|
3005
3281
|
// src/components/window-frame/WindowFrame.tsx
|
|
3006
|
-
import * as
|
|
3282
|
+
import * as React42 from "react";
|
|
3007
3283
|
import { useState as useState4 } from "react";
|
|
3008
|
-
import { jsx as
|
|
3009
|
-
var WindowFrame =
|
|
3284
|
+
import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3285
|
+
var WindowFrame = React42.forwardRef(
|
|
3010
3286
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
3011
3287
|
const [internalActive, setInternalActive] = useState4(tabs?.[0]?.id ?? "");
|
|
3012
3288
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -3017,7 +3293,7 @@ var WindowFrame = React39.forwardRef(
|
|
|
3017
3293
|
setInternalActive(id);
|
|
3018
3294
|
}
|
|
3019
3295
|
};
|
|
3020
|
-
return /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsxs24(
|
|
3021
3297
|
"div",
|
|
3022
3298
|
{
|
|
3023
3299
|
ref,
|
|
@@ -3027,13 +3303,13 @@ var WindowFrame = React39.forwardRef(
|
|
|
3027
3303
|
),
|
|
3028
3304
|
...props,
|
|
3029
3305
|
children: [
|
|
3030
|
-
/* @__PURE__ */
|
|
3031
|
-
/* @__PURE__ */
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__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: [
|
|
3307
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3308
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
3309
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
3310
|
+
/* @__PURE__ */ jsx46("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
3035
3311
|
] }),
|
|
3036
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */
|
|
3312
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx46("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx46(
|
|
3037
3313
|
"button",
|
|
3038
3314
|
{
|
|
3039
3315
|
type: "button",
|
|
@@ -3045,9 +3321,9 @@ var WindowFrame = React39.forwardRef(
|
|
|
3045
3321
|
children: tab.label
|
|
3046
3322
|
},
|
|
3047
3323
|
tab.id
|
|
3048
|
-
)) }) : /* @__PURE__ */
|
|
3324
|
+
)) }) : /* @__PURE__ */ jsx46("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
3049
3325
|
] }),
|
|
3050
|
-
/* @__PURE__ */
|
|
3326
|
+
/* @__PURE__ */ jsx46("div", { children })
|
|
3051
3327
|
]
|
|
3052
3328
|
}
|
|
3053
3329
|
);
|
|
@@ -3057,6 +3333,17 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
3057
3333
|
export {
|
|
3058
3334
|
Alert2 as Alert,
|
|
3059
3335
|
AlertDescription,
|
|
3336
|
+
AlertDialog,
|
|
3337
|
+
AlertDialogAction,
|
|
3338
|
+
AlertDialogCancel,
|
|
3339
|
+
AlertDialogContent,
|
|
3340
|
+
AlertDialogDescription,
|
|
3341
|
+
AlertDialogFooter,
|
|
3342
|
+
AlertDialogHeader,
|
|
3343
|
+
AlertDialogOverlay,
|
|
3344
|
+
AlertDialogPortal,
|
|
3345
|
+
AlertDialogTitle,
|
|
3346
|
+
AlertDialogTrigger,
|
|
3060
3347
|
AlertTitle,
|
|
3061
3348
|
Badge,
|
|
3062
3349
|
BergetLogo,
|
|
@@ -3083,6 +3370,21 @@ export {
|
|
|
3083
3370
|
DialogPortal,
|
|
3084
3371
|
DialogTitle,
|
|
3085
3372
|
DialogTrigger,
|
|
3373
|
+
DropdownMenu,
|
|
3374
|
+
DropdownMenuCheckboxItem,
|
|
3375
|
+
DropdownMenuContent,
|
|
3376
|
+
DropdownMenuGroup,
|
|
3377
|
+
DropdownMenuItem,
|
|
3378
|
+
DropdownMenuLabel,
|
|
3379
|
+
DropdownMenuPortal,
|
|
3380
|
+
DropdownMenuRadioGroup,
|
|
3381
|
+
DropdownMenuRadioItem,
|
|
3382
|
+
DropdownMenuSeparator,
|
|
3383
|
+
DropdownMenuShortcut,
|
|
3384
|
+
DropdownMenuSub,
|
|
3385
|
+
DropdownMenuSubContent,
|
|
3386
|
+
DropdownMenuSubTrigger,
|
|
3387
|
+
DropdownMenuTrigger,
|
|
3086
3388
|
EU_COUNTRY_CODES,
|
|
3087
3389
|
FeatureList,
|
|
3088
3390
|
Field,
|
|
@@ -3099,7 +3401,7 @@ export {
|
|
|
3099
3401
|
HeroBlock,
|
|
3100
3402
|
Icon2 as Icon,
|
|
3101
3403
|
Input2 as Input,
|
|
3102
|
-
|
|
3404
|
+
Item4 as Item,
|
|
3103
3405
|
ItemActions,
|
|
3104
3406
|
ItemContent,
|
|
3105
3407
|
ItemDescription2 as ItemDescription,
|
|
@@ -3109,12 +3411,20 @@ export {
|
|
|
3109
3411
|
ItemMedia2 as ItemMedia,
|
|
3110
3412
|
ItemSeparator2 as ItemSeparator,
|
|
3111
3413
|
ItemTitle2 as ItemTitle,
|
|
3112
|
-
|
|
3414
|
+
Label3 as Label,
|
|
3113
3415
|
LanguageSelect,
|
|
3114
|
-
Link,
|
|
3115
|
-
List,
|
|
3416
|
+
Link2 as Link,
|
|
3417
|
+
List2 as List,
|
|
3116
3418
|
ListHeader,
|
|
3117
3419
|
ListItem,
|
|
3420
|
+
NavigationMenu,
|
|
3421
|
+
NavigationMenuContent,
|
|
3422
|
+
NavigationMenuIndicator,
|
|
3423
|
+
NavigationMenuItem,
|
|
3424
|
+
NavigationMenuLink,
|
|
3425
|
+
NavigationMenuList,
|
|
3426
|
+
NavigationMenuTrigger,
|
|
3427
|
+
NavigationMenuViewport,
|
|
3118
3428
|
Select2 as Select,
|
|
3119
3429
|
Switch,
|
|
3120
3430
|
Table2 as Table,
|
|
@@ -3142,6 +3452,7 @@ export {
|
|
|
3142
3452
|
gridVariants,
|
|
3143
3453
|
isEUCountry,
|
|
3144
3454
|
linkVariants,
|
|
3455
|
+
navigationMenuTriggerStyle,
|
|
3145
3456
|
selectVariants,
|
|
3146
3457
|
switchRootVariants,
|
|
3147
3458
|
switchThumbVariants,
|