@bergetai/ui 0.1.90 → 0.1.92
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/chunk-3LBFYXI6.js +42 -0
- package/dist/chunk-3LBFYXI6.js.map +1 -0
- package/dist/index.cjs +373 -760
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -163
- package/dist/index.d.ts +42 -163
- package/dist/index.js +341 -646
- package/dist/index.js.map +1 -1
- package/dist/shiki.cjs +7 -92
- package/dist/shiki.cjs.map +1 -1
- package/dist/shiki.d.cts +3 -3
- package/dist/shiki.d.ts +3 -3
- package/dist/shiki.js +1 -1
- package/dist/styles/index.css +52 -12
- package/package.json +3 -2
- package/dist/chunk-SJTRISLQ.js +0 -127
- package/dist/chunk-SJTRISLQ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -35,8 +35,6 @@ __export(index_exports, {
|
|
|
35
35
|
AlertTitle: () => AlertTitle,
|
|
36
36
|
Badge: () => Badge,
|
|
37
37
|
BergetLogo: () => BergetLogo,
|
|
38
|
-
BergetLogotype: () => BergetLogo,
|
|
39
|
-
BergetSymbol: () => BergetLogo,
|
|
40
38
|
Box: () => Box,
|
|
41
39
|
Button: () => Button2,
|
|
42
40
|
Card: () => Card2,
|
|
@@ -48,8 +46,16 @@ __export(index_exports, {
|
|
|
48
46
|
Checkbox: () => Checkbox2,
|
|
49
47
|
CodeBlock: () => CodeBlock,
|
|
50
48
|
Container: () => Container,
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
Dialog: () => Dialog,
|
|
50
|
+
DialogClose: () => DialogClose,
|
|
51
|
+
DialogContent: () => DialogContent,
|
|
52
|
+
DialogDescription: () => DialogDescription,
|
|
53
|
+
DialogFooter: () => DialogFooter,
|
|
54
|
+
DialogHeader: () => DialogHeader,
|
|
55
|
+
DialogOverlay: () => DialogOverlay,
|
|
56
|
+
DialogPortal: () => DialogPortal,
|
|
57
|
+
DialogTitle: () => DialogTitle,
|
|
58
|
+
DialogTrigger: () => DialogTrigger,
|
|
53
59
|
FeatureList: () => FeatureList,
|
|
54
60
|
Field: () => Field,
|
|
55
61
|
FieldContent: () => FieldContent,
|
|
@@ -62,7 +68,6 @@ __export(index_exports, {
|
|
|
62
68
|
FieldSet: () => FieldSet,
|
|
63
69
|
FieldTitle: () => FieldTitle,
|
|
64
70
|
Grid: () => Grid,
|
|
65
|
-
Header: () => Header,
|
|
66
71
|
HeroBlock: () => HeroBlock,
|
|
67
72
|
Icon: () => Icon2,
|
|
68
73
|
Input: () => Input2,
|
|
@@ -72,14 +77,13 @@ __export(index_exports, {
|
|
|
72
77
|
List: () => List,
|
|
73
78
|
ListHeader: () => ListHeader,
|
|
74
79
|
ListItem: () => ListItem,
|
|
75
|
-
Section: () => Section,
|
|
76
|
-
SectionHeader: () => SectionHeader,
|
|
77
80
|
Select: () => Select2,
|
|
78
81
|
Switch: () => Switch,
|
|
79
82
|
TextArea: () => TextArea,
|
|
80
83
|
ThemeProvider: () => ThemeProvider,
|
|
81
84
|
ThemeToggle: () => ThemeToggle,
|
|
82
85
|
Typography: () => Typography,
|
|
86
|
+
WindowFrame: () => WindowFrame,
|
|
83
87
|
alertVariants: () => alertVariants2,
|
|
84
88
|
badgeVariants: () => badgeVariants,
|
|
85
89
|
boxVariants: () => boxVariants,
|
|
@@ -89,7 +93,6 @@ __export(index_exports, {
|
|
|
89
93
|
containerVariants: () => containerVariants,
|
|
90
94
|
gridVariants: () => gridVariants,
|
|
91
95
|
linkVariants: () => linkVariants,
|
|
92
|
-
sectionVariants: () => sectionVariants,
|
|
93
96
|
selectVariants: () => selectVariants,
|
|
94
97
|
switchRootVariants: () => switchRootVariants,
|
|
95
98
|
switchThumbVariants: () => switchThumbVariants,
|
|
@@ -293,9 +296,6 @@ var ThemeToggle = React2.forwardRef(
|
|
|
293
296
|
);
|
|
294
297
|
ThemeToggle.displayName = "ThemeToggle";
|
|
295
298
|
|
|
296
|
-
// src/components/button/Button.tsx
|
|
297
|
-
var React4 = __toESM(require("react"), 1);
|
|
298
|
-
|
|
299
299
|
// src/primitives/button.tsx
|
|
300
300
|
var React3 = __toESM(require("react"), 1);
|
|
301
301
|
var import_class_variance_authority = require("class-variance-authority");
|
|
@@ -339,7 +339,6 @@ var Button = React3.forwardRef(
|
|
|
339
339
|
Button.displayName = "Button";
|
|
340
340
|
|
|
341
341
|
// src/components/button/Button.tsx
|
|
342
|
-
var import_lucide_react = require("lucide-react");
|
|
343
342
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
344
343
|
function brandVariantClasses(variant) {
|
|
345
344
|
switch (variant) {
|
|
@@ -367,65 +366,34 @@ function primitiveVariant(variant) {
|
|
|
367
366
|
return variant;
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Button,
|
|
396
|
-
{
|
|
397
|
-
className: baseClass,
|
|
398
|
-
ref,
|
|
399
|
-
asChild: true,
|
|
400
|
-
type,
|
|
401
|
-
"aria-disabled": isLoading || void 0,
|
|
402
|
-
"aria-busy": isLoading || void 0,
|
|
403
|
-
...props,
|
|
404
|
-
children
|
|
405
|
-
}
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
409
|
-
Button,
|
|
410
|
-
{
|
|
411
|
-
className: baseClass,
|
|
412
|
-
ref,
|
|
413
|
-
type,
|
|
414
|
-
"aria-disabled": isLoading || void 0,
|
|
415
|
-
"aria-busy": isLoading || void 0,
|
|
416
|
-
...props,
|
|
417
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
418
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Loader2, { className: "animate-spin", size: 16, "aria-hidden": "true" }),
|
|
419
|
-
!isIcon && children
|
|
420
|
-
] }) : children })
|
|
421
|
-
}
|
|
422
|
-
);
|
|
423
|
-
}
|
|
424
|
-
);
|
|
425
|
-
Button2.displayName = "Button";
|
|
369
|
+
function Button2({
|
|
370
|
+
className,
|
|
371
|
+
variant = "default",
|
|
372
|
+
size,
|
|
373
|
+
asChild = false,
|
|
374
|
+
width = "default",
|
|
375
|
+
type = "button",
|
|
376
|
+
ref,
|
|
377
|
+
children,
|
|
378
|
+
...props
|
|
379
|
+
}) {
|
|
380
|
+
const isIcon = typeof size === "string" && size.startsWith("icon");
|
|
381
|
+
const isLink = variant === "link";
|
|
382
|
+
const baseClass = cn(
|
|
383
|
+
!isLink && buttonVariants({ variant: primitiveVariant(variant), size }),
|
|
384
|
+
// Berget brand overrides
|
|
385
|
+
!isLink && "rounded-full",
|
|
386
|
+
brandVariantClasses(variant),
|
|
387
|
+
!isLink && width === "full" && "w-full",
|
|
388
|
+
isIcon && "rounded-full shadow-[0px_1px_3px_rgba(0,0,0,0.1),0px_1px_2px_-1px_rgba(0,0,0,0.1)]",
|
|
389
|
+
className
|
|
390
|
+
);
|
|
391
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children });
|
|
392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { className: baseClass, ref, asChild, type, ...props, children: asChild ? children : content });
|
|
393
|
+
}
|
|
426
394
|
|
|
427
395
|
// src/components/typography/Typography.tsx
|
|
428
|
-
var
|
|
396
|
+
var React4 = __toESM(require("react"), 1);
|
|
429
397
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
430
398
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
431
399
|
var typographyVariants = (0, import_class_variance_authority2.cva)("", {
|
|
@@ -472,7 +440,7 @@ var defaultElementMap = {
|
|
|
472
440
|
mono: "p",
|
|
473
441
|
code: "span"
|
|
474
442
|
};
|
|
475
|
-
var Typography =
|
|
443
|
+
var Typography = React4.forwardRef(
|
|
476
444
|
({ className, variant = "body", color = "default", as, children, ...props }, ref) => {
|
|
477
445
|
const Component = as ?? defaultElementMap[variant ?? "body"] ?? "p";
|
|
478
446
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -489,13 +457,13 @@ var Typography = React5.forwardRef(
|
|
|
489
457
|
Typography.displayName = "Typography";
|
|
490
458
|
|
|
491
459
|
// src/components/card/Card.tsx
|
|
492
|
-
var
|
|
460
|
+
var React6 = __toESM(require("react"), 1);
|
|
493
461
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
494
462
|
|
|
495
463
|
// src/primitives/card.tsx
|
|
496
|
-
var
|
|
464
|
+
var React5 = __toESM(require("react"), 1);
|
|
497
465
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
498
|
-
var Card =
|
|
466
|
+
var Card = React5.forwardRef(
|
|
499
467
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
500
468
|
"div",
|
|
501
469
|
{
|
|
@@ -506,23 +474,23 @@ var Card = React6.forwardRef(
|
|
|
506
474
|
)
|
|
507
475
|
);
|
|
508
476
|
Card.displayName = "Card";
|
|
509
|
-
var CardHeader =
|
|
477
|
+
var CardHeader = React5.forwardRef(
|
|
510
478
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
511
479
|
);
|
|
512
480
|
CardHeader.displayName = "CardHeader";
|
|
513
|
-
var CardTitle =
|
|
481
|
+
var CardTitle = React5.forwardRef(
|
|
514
482
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { ref, className: cn("text-2xl leading-none tracking-tight", className), ...props })
|
|
515
483
|
);
|
|
516
484
|
CardTitle.displayName = "CardTitle";
|
|
517
|
-
var CardDescription =
|
|
485
|
+
var CardDescription = React5.forwardRef(
|
|
518
486
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
519
487
|
);
|
|
520
488
|
CardDescription.displayName = "CardDescription";
|
|
521
|
-
var CardContent =
|
|
489
|
+
var CardContent = React5.forwardRef(
|
|
522
490
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
523
491
|
);
|
|
524
492
|
CardContent.displayName = "CardContent";
|
|
525
|
-
var CardFooter =
|
|
493
|
+
var CardFooter = React5.forwardRef(
|
|
526
494
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
527
495
|
);
|
|
528
496
|
CardFooter.displayName = "CardFooter";
|
|
@@ -547,7 +515,7 @@ var cardVariants = (0, import_class_variance_authority3.cva)("rounded-berget-sm"
|
|
|
547
515
|
padding: "md"
|
|
548
516
|
}
|
|
549
517
|
});
|
|
550
|
-
var Card2 =
|
|
518
|
+
var Card2 = React6.forwardRef(
|
|
551
519
|
({ className, variant, padding, children, ...props }, ref) => {
|
|
552
520
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
553
521
|
Card,
|
|
@@ -563,7 +531,7 @@ var Card2 = React7.forwardRef(
|
|
|
563
531
|
Card2.displayName = "Card";
|
|
564
532
|
|
|
565
533
|
// src/components/badge/Badge.tsx
|
|
566
|
-
var
|
|
534
|
+
var React7 = __toESM(require("react"), 1);
|
|
567
535
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
568
536
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
569
537
|
var badgeVariants = (0, import_class_variance_authority4.cva)(
|
|
@@ -598,7 +566,7 @@ var badgeVariants = (0, import_class_variance_authority4.cva)(
|
|
|
598
566
|
}
|
|
599
567
|
}
|
|
600
568
|
);
|
|
601
|
-
var Badge =
|
|
569
|
+
var Badge = React7.forwardRef(
|
|
602
570
|
({ className, variant, status, size, icon, iconGap = 2, children, ...props }, ref) => {
|
|
603
571
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: cn(badgeVariants({ variant, status, size }), className), ref, ...props, children: [
|
|
604
572
|
icon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: { marginRight: children ? `${iconGap * 0.25}rem` : "0" }, children: icon }),
|
|
@@ -609,11 +577,11 @@ var Badge = React8.forwardRef(
|
|
|
609
577
|
Badge.displayName = "Badge";
|
|
610
578
|
|
|
611
579
|
// src/components/alert/Alert.tsx
|
|
612
|
-
var
|
|
580
|
+
var React9 = __toESM(require("react"), 1);
|
|
613
581
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
614
582
|
|
|
615
583
|
// src/primitives/alert.tsx
|
|
616
|
-
var
|
|
584
|
+
var React8 = __toESM(require("react"), 1);
|
|
617
585
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
618
586
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
619
587
|
var alertVariants = (0, import_class_variance_authority5.cva)(
|
|
@@ -630,13 +598,13 @@ var alertVariants = (0, import_class_variance_authority5.cva)(
|
|
|
630
598
|
}
|
|
631
599
|
}
|
|
632
600
|
);
|
|
633
|
-
var Alert =
|
|
601
|
+
var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
634
602
|
Alert.displayName = "Alert";
|
|
635
|
-
var AlertTitle =
|
|
603
|
+
var AlertTitle = React8.forwardRef(
|
|
636
604
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h5", { ref, className: cn("mb-1 leading-none tracking-tight", className), ...props })
|
|
637
605
|
);
|
|
638
606
|
AlertTitle.displayName = "AlertTitle";
|
|
639
|
-
var AlertDescription =
|
|
607
|
+
var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
|
|
640
608
|
AlertDescription.displayName = "AlertDescription";
|
|
641
609
|
|
|
642
610
|
// src/components/alert/Alert.tsx
|
|
@@ -655,20 +623,78 @@ var alertVariants2 = (0, import_class_variance_authority6.cva)("", {
|
|
|
655
623
|
variant: "default"
|
|
656
624
|
}
|
|
657
625
|
});
|
|
658
|
-
var Alert2 =
|
|
626
|
+
var Alert2 = React9.forwardRef(
|
|
659
627
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Alert, { ref, className: cn(alertVariants2({ variant }), className), ...props })
|
|
660
628
|
);
|
|
661
629
|
Alert2.displayName = "Alert";
|
|
662
630
|
|
|
631
|
+
// src/components/dialog/Dialog.tsx
|
|
632
|
+
var React10 = __toESM(require("react"), 1);
|
|
633
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
634
|
+
var import_lucide_react = require("lucide-react");
|
|
635
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
636
|
+
var Dialog = DialogPrimitive.Root;
|
|
637
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
638
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
639
|
+
var DialogClose = DialogPrimitive.Close;
|
|
640
|
+
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
641
|
+
DialogPrimitive.Overlay,
|
|
642
|
+
{
|
|
643
|
+
ref,
|
|
644
|
+
className: cn(
|
|
645
|
+
"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",
|
|
646
|
+
className
|
|
647
|
+
),
|
|
648
|
+
...props
|
|
649
|
+
}
|
|
650
|
+
));
|
|
651
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
652
|
+
var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogPortal, { children: [
|
|
653
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogOverlay, {}),
|
|
654
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
655
|
+
DialogPrimitive.Content,
|
|
656
|
+
{
|
|
657
|
+
ref,
|
|
658
|
+
className: cn(
|
|
659
|
+
"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%]",
|
|
660
|
+
className
|
|
661
|
+
),
|
|
662
|
+
...props,
|
|
663
|
+
children: [
|
|
664
|
+
children,
|
|
665
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-berget-muted data-[state=open]:text-berget-muted-foreground", children: [
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react.X, { className: "size-4" }),
|
|
667
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: "Close" })
|
|
668
|
+
] })
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
)
|
|
672
|
+
] }));
|
|
673
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
674
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
675
|
+
DialogHeader.displayName = "DialogHeader";
|
|
676
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
677
|
+
"div",
|
|
678
|
+
{
|
|
679
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
680
|
+
...props
|
|
681
|
+
}
|
|
682
|
+
);
|
|
683
|
+
DialogFooter.displayName = "DialogFooter";
|
|
684
|
+
var DialogTitle = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
|
|
685
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
686
|
+
var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
687
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
688
|
+
|
|
663
689
|
// src/components/input/Input.tsx
|
|
664
690
|
var React12 = __toESM(require("react"), 1);
|
|
665
691
|
|
|
666
692
|
// src/primitives/input.tsx
|
|
667
693
|
var React11 = __toESM(require("react"), 1);
|
|
668
|
-
var
|
|
694
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
669
695
|
var Input = React11.forwardRef(
|
|
670
696
|
({ className, type, ...props }, ref) => {
|
|
671
|
-
return /* @__PURE__ */ (0,
|
|
697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
672
698
|
"input",
|
|
673
699
|
{
|
|
674
700
|
type,
|
|
@@ -685,14 +711,14 @@ var Input = React11.forwardRef(
|
|
|
685
711
|
Input.displayName = "Input";
|
|
686
712
|
|
|
687
713
|
// src/components/input/Input.tsx
|
|
688
|
-
var
|
|
714
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
689
715
|
var Input2 = React12.forwardRef(
|
|
690
716
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
691
717
|
const generatedId = React12.useId();
|
|
692
718
|
const inputId = id || generatedId;
|
|
693
719
|
const errorId = `${inputId}-error`;
|
|
694
720
|
const descriptionId = `${inputId}-description`;
|
|
695
|
-
const inputElement = /* @__PURE__ */ (0,
|
|
721
|
+
const inputElement = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
696
722
|
Input,
|
|
697
723
|
{
|
|
698
724
|
ref,
|
|
@@ -712,8 +738,8 @@ var Input2 = React12.forwardRef(
|
|
|
712
738
|
}
|
|
713
739
|
);
|
|
714
740
|
if (!icon && !actionButton) {
|
|
715
|
-
return /* @__PURE__ */ (0,
|
|
716
|
-
label && /* @__PURE__ */ (0,
|
|
741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
742
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
717
743
|
"label",
|
|
718
744
|
{
|
|
719
745
|
htmlFor: inputId,
|
|
@@ -726,9 +752,9 @@ var Input2 = React12.forwardRef(
|
|
|
726
752
|
}
|
|
727
753
|
),
|
|
728
754
|
inputElement,
|
|
729
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
730
|
-
description && /* @__PURE__ */ (0,
|
|
731
|
-
error && /* @__PURE__ */ (0,
|
|
755
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
756
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
757
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
732
758
|
Typography,
|
|
733
759
|
{
|
|
734
760
|
variant: "xs",
|
|
@@ -740,8 +766,8 @@ var Input2 = React12.forwardRef(
|
|
|
740
766
|
] })
|
|
741
767
|
] });
|
|
742
768
|
}
|
|
743
|
-
return /* @__PURE__ */ (0,
|
|
744
|
-
label && /* @__PURE__ */ (0,
|
|
769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
770
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
745
771
|
"label",
|
|
746
772
|
{
|
|
747
773
|
htmlFor: inputId,
|
|
@@ -753,14 +779,14 @@ var Input2 = React12.forwardRef(
|
|
|
753
779
|
children: label
|
|
754
780
|
}
|
|
755
781
|
),
|
|
756
|
-
/* @__PURE__ */ (0,
|
|
757
|
-
icon && /* @__PURE__ */ (0,
|
|
782
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "relative w-full", children: [
|
|
783
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
758
784
|
inputElement,
|
|
759
|
-
actionButton && /* @__PURE__ */ (0,
|
|
785
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
760
786
|
] }),
|
|
761
|
-
(description || error) && /* @__PURE__ */ (0,
|
|
762
|
-
description && /* @__PURE__ */ (0,
|
|
763
|
-
error && /* @__PURE__ */ (0,
|
|
787
|
+
(description || error) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
788
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
789
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
764
790
|
] })
|
|
765
791
|
] });
|
|
766
792
|
}
|
|
@@ -777,8 +803,8 @@ var import_class_variance_authority7 = require("class-variance-authority");
|
|
|
777
803
|
var React13 = __toESM(require("react"), 1);
|
|
778
804
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
779
805
|
var import_lucide_react2 = require("lucide-react");
|
|
780
|
-
var
|
|
781
|
-
var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
806
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
807
|
+
var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
782
808
|
CheckboxPrimitive.Root,
|
|
783
809
|
{
|
|
784
810
|
ref,
|
|
@@ -787,23 +813,23 @@ var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
787
813
|
className
|
|
788
814
|
),
|
|
789
815
|
...props,
|
|
790
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
816
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react2.Check, { className: "h-4 w-4" }) })
|
|
791
817
|
}
|
|
792
818
|
));
|
|
793
819
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
794
|
-
var CheckboxIndicator = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
820
|
+
var CheckboxIndicator = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
795
821
|
CheckboxPrimitive.Indicator,
|
|
796
822
|
{
|
|
797
823
|
ref,
|
|
798
824
|
className: cn("grid place-content-center", className),
|
|
799
825
|
...props,
|
|
800
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
826
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react2.Check, { className: "h-4 w-4" })
|
|
801
827
|
}
|
|
802
828
|
));
|
|
803
829
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
804
830
|
|
|
805
831
|
// src/components/checkbox/Checkbox.tsx
|
|
806
|
-
var
|
|
832
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
807
833
|
var checkboxVariants = (0, import_class_variance_authority7.cva)(
|
|
808
834
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
809
835
|
{
|
|
@@ -830,8 +856,8 @@ var Checkbox2 = React14.forwardRef(
|
|
|
830
856
|
const generatedId = React14.useId();
|
|
831
857
|
const checkboxId = id || generatedId;
|
|
832
858
|
const errorId = `${checkboxId}-error`;
|
|
833
|
-
return /* @__PURE__ */ (0,
|
|
834
|
-
/* @__PURE__ */ (0,
|
|
859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
860
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
835
861
|
Checkbox,
|
|
836
862
|
{
|
|
837
863
|
ref,
|
|
@@ -846,7 +872,7 @@ var Checkbox2 = React14.forwardRef(
|
|
|
846
872
|
className
|
|
847
873
|
),
|
|
848
874
|
...props,
|
|
849
|
-
children: /* @__PURE__ */ (0,
|
|
875
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
850
876
|
import_lucide_react3.Check,
|
|
851
877
|
{
|
|
852
878
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -855,8 +881,8 @@ var Checkbox2 = React14.forwardRef(
|
|
|
855
881
|
) })
|
|
856
882
|
}
|
|
857
883
|
) }),
|
|
858
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
859
|
-
label && /* @__PURE__ */ (0,
|
|
884
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
885
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
860
886
|
"label",
|
|
861
887
|
{
|
|
862
888
|
htmlFor: checkboxId,
|
|
@@ -868,8 +894,8 @@ var Checkbox2 = React14.forwardRef(
|
|
|
868
894
|
children: label
|
|
869
895
|
}
|
|
870
896
|
),
|
|
871
|
-
description && /* @__PURE__ */ (0,
|
|
872
|
-
error && /* @__PURE__ */ (0,
|
|
897
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
898
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
873
899
|
] })
|
|
874
900
|
] });
|
|
875
901
|
}
|
|
@@ -880,7 +906,7 @@ Checkbox2.displayName = "Checkbox";
|
|
|
880
906
|
var React15 = __toESM(require("react"), 1);
|
|
881
907
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
882
908
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
883
|
-
var
|
|
909
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
884
910
|
var switchRootVariants = (0, import_class_variance_authority8.cva)(
|
|
885
911
|
"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",
|
|
886
912
|
{
|
|
@@ -922,8 +948,8 @@ var Switch = React15.forwardRef(
|
|
|
922
948
|
const generatedId = React15.useId();
|
|
923
949
|
const switchId = id || generatedId;
|
|
924
950
|
const errorId = `${switchId}-error`;
|
|
925
|
-
return /* @__PURE__ */ (0,
|
|
926
|
-
/* @__PURE__ */ (0,
|
|
951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
952
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
927
953
|
SwitchPrimitives.Root,
|
|
928
954
|
{
|
|
929
955
|
ref,
|
|
@@ -937,11 +963,11 @@ var Switch = React15.forwardRef(
|
|
|
937
963
|
className
|
|
938
964
|
),
|
|
939
965
|
...props,
|
|
940
|
-
children: /* @__PURE__ */ (0,
|
|
966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
941
967
|
}
|
|
942
968
|
),
|
|
943
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
944
|
-
label && /* @__PURE__ */ (0,
|
|
969
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
970
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
945
971
|
"label",
|
|
946
972
|
{
|
|
947
973
|
htmlFor: switchId,
|
|
@@ -952,8 +978,8 @@ var Switch = React15.forwardRef(
|
|
|
952
978
|
children: label
|
|
953
979
|
}
|
|
954
980
|
),
|
|
955
|
-
description && /* @__PURE__ */ (0,
|
|
956
|
-
error && /* @__PURE__ */ (0,
|
|
981
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
982
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
957
983
|
] })
|
|
958
984
|
] });
|
|
959
985
|
}
|
|
@@ -968,10 +994,10 @@ var import_class_variance_authority9 = require("class-variance-authority");
|
|
|
968
994
|
var React16 = __toESM(require("react"), 1);
|
|
969
995
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
970
996
|
var import_lucide_react4 = require("lucide-react");
|
|
971
|
-
var
|
|
997
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
972
998
|
var Select = SelectPrimitive.Root;
|
|
973
999
|
var SelectValue = SelectPrimitive.Value;
|
|
974
|
-
var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1000
|
+
var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
975
1001
|
SelectPrimitive.Trigger,
|
|
976
1002
|
{
|
|
977
1003
|
ref,
|
|
@@ -982,32 +1008,32 @@ var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref)
|
|
|
982
1008
|
...props,
|
|
983
1009
|
children: [
|
|
984
1010
|
children,
|
|
985
|
-
/* @__PURE__ */ (0,
|
|
1011
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
986
1012
|
]
|
|
987
1013
|
}
|
|
988
1014
|
));
|
|
989
1015
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
990
|
-
var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1016
|
+
var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
991
1017
|
SelectPrimitive.ScrollUpButton,
|
|
992
1018
|
{
|
|
993
1019
|
ref,
|
|
994
1020
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
995
1021
|
...props,
|
|
996
|
-
children: /* @__PURE__ */ (0,
|
|
1022
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ChevronUp, { className: "h-4 w-4" })
|
|
997
1023
|
}
|
|
998
1024
|
));
|
|
999
1025
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1000
|
-
var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1026
|
+
var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1001
1027
|
SelectPrimitive.ScrollDownButton,
|
|
1002
1028
|
{
|
|
1003
1029
|
ref,
|
|
1004
1030
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1005
1031
|
...props,
|
|
1006
|
-
children: /* @__PURE__ */ (0,
|
|
1032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4" })
|
|
1007
1033
|
}
|
|
1008
1034
|
));
|
|
1009
1035
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1010
|
-
var SelectContent = React16.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0,
|
|
1036
|
+
var SelectContent = React16.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1011
1037
|
SelectPrimitive.Content,
|
|
1012
1038
|
{
|
|
1013
1039
|
ref,
|
|
@@ -1019,8 +1045,8 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
1019
1045
|
position,
|
|
1020
1046
|
...props,
|
|
1021
1047
|
children: [
|
|
1022
|
-
/* @__PURE__ */ (0,
|
|
1023
|
-
/* @__PURE__ */ (0,
|
|
1048
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectScrollUpButton, {}),
|
|
1049
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1024
1050
|
SelectPrimitive.Viewport,
|
|
1025
1051
|
{
|
|
1026
1052
|
className: cn(
|
|
@@ -1030,12 +1056,12 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
1030
1056
|
children
|
|
1031
1057
|
}
|
|
1032
1058
|
),
|
|
1033
|
-
/* @__PURE__ */ (0,
|
|
1059
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectScrollDownButton, {})
|
|
1034
1060
|
]
|
|
1035
1061
|
}
|
|
1036
1062
|
) }));
|
|
1037
1063
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1038
|
-
var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1064
|
+
var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1039
1065
|
SelectPrimitive.Label,
|
|
1040
1066
|
{
|
|
1041
1067
|
ref,
|
|
@@ -1044,7 +1070,7 @@ var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1044
1070
|
}
|
|
1045
1071
|
));
|
|
1046
1072
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1047
|
-
var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1073
|
+
var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1048
1074
|
SelectPrimitive.Item,
|
|
1049
1075
|
{
|
|
1050
1076
|
ref,
|
|
@@ -1054,13 +1080,13 @@ var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1054
1080
|
),
|
|
1055
1081
|
...props,
|
|
1056
1082
|
children: [
|
|
1057
|
-
/* @__PURE__ */ (0,
|
|
1058
|
-
/* @__PURE__ */ (0,
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.Check, { className: "h-4 w-4" }) }) }),
|
|
1084
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectPrimitive.ItemText, { children })
|
|
1059
1085
|
]
|
|
1060
1086
|
}
|
|
1061
1087
|
));
|
|
1062
1088
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1063
|
-
var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1089
|
+
var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1064
1090
|
SelectPrimitive.Separator,
|
|
1065
1091
|
{
|
|
1066
1092
|
ref,
|
|
@@ -1071,7 +1097,7 @@ var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1071
1097
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1072
1098
|
|
|
1073
1099
|
// src/components/select/Select.tsx
|
|
1074
|
-
var
|
|
1100
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1075
1101
|
var selectVariants = (0, import_class_variance_authority9.cva)(
|
|
1076
1102
|
"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",
|
|
1077
1103
|
{
|
|
@@ -1116,8 +1142,8 @@ var Select2 = React17.forwardRef(
|
|
|
1116
1142
|
const selectId = id || generatedId;
|
|
1117
1143
|
const errorId = `${selectId}-error`;
|
|
1118
1144
|
const descriptionId = `${selectId}-description`;
|
|
1119
|
-
return /* @__PURE__ */ (0,
|
|
1120
|
-
label && /* @__PURE__ */ (0,
|
|
1145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1146
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1121
1147
|
"label",
|
|
1122
1148
|
{
|
|
1123
1149
|
htmlFor: selectId,
|
|
@@ -1129,7 +1155,7 @@ var Select2 = React17.forwardRef(
|
|
|
1129
1155
|
children: label
|
|
1130
1156
|
}
|
|
1131
1157
|
),
|
|
1132
|
-
/* @__PURE__ */ (0,
|
|
1158
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1133
1159
|
Select,
|
|
1134
1160
|
{
|
|
1135
1161
|
value,
|
|
@@ -1139,7 +1165,7 @@ var Select2 = React17.forwardRef(
|
|
|
1139
1165
|
name,
|
|
1140
1166
|
required,
|
|
1141
1167
|
children: [
|
|
1142
|
-
/* @__PURE__ */ (0,
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1143
1169
|
SelectTrigger,
|
|
1144
1170
|
{
|
|
1145
1171
|
ref,
|
|
@@ -1151,15 +1177,15 @@ var Select2 = React17.forwardRef(
|
|
|
1151
1177
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1152
1178
|
className
|
|
1153
1179
|
),
|
|
1154
|
-
children: /* @__PURE__ */ (0,
|
|
1180
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectValue, { placeholder })
|
|
1155
1181
|
}
|
|
1156
1182
|
),
|
|
1157
|
-
/* @__PURE__ */ (0,
|
|
1183
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1158
1184
|
]
|
|
1159
1185
|
}
|
|
1160
1186
|
),
|
|
1161
|
-
description && /* @__PURE__ */ (0,
|
|
1162
|
-
error && /* @__PURE__ */ (0,
|
|
1187
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1188
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1163
1189
|
] });
|
|
1164
1190
|
}
|
|
1165
1191
|
);
|
|
@@ -1171,10 +1197,10 @@ var import_class_variance_authority10 = require("class-variance-authority");
|
|
|
1171
1197
|
|
|
1172
1198
|
// src/primitives/textarea.tsx
|
|
1173
1199
|
var React18 = __toESM(require("react"), 1);
|
|
1174
|
-
var
|
|
1200
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1175
1201
|
var Textarea = React18.forwardRef(
|
|
1176
1202
|
({ className, ...props }, ref) => {
|
|
1177
|
-
return /* @__PURE__ */ (0,
|
|
1203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1178
1204
|
"textarea",
|
|
1179
1205
|
{
|
|
1180
1206
|
className: cn(
|
|
@@ -1190,7 +1216,7 @@ var Textarea = React18.forwardRef(
|
|
|
1190
1216
|
Textarea.displayName = "Textarea";
|
|
1191
1217
|
|
|
1192
1218
|
// src/components/text-area/TextArea.tsx
|
|
1193
|
-
var
|
|
1219
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1194
1220
|
var textAreaVariants = (0, import_class_variance_authority10.cva)(
|
|
1195
1221
|
"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",
|
|
1196
1222
|
{
|
|
@@ -1238,8 +1264,8 @@ var TextArea = React19.forwardRef(
|
|
|
1238
1264
|
const errorId = `${textareaId}-error`;
|
|
1239
1265
|
const descriptionId = `${textareaId}-description`;
|
|
1240
1266
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
1241
|
-
return /* @__PURE__ */ (0,
|
|
1242
|
-
label && /* @__PURE__ */ (0,
|
|
1267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1268
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1243
1269
|
"label",
|
|
1244
1270
|
{
|
|
1245
1271
|
htmlFor: textareaId,
|
|
@@ -1251,9 +1277,9 @@ var TextArea = React19.forwardRef(
|
|
|
1251
1277
|
children: label
|
|
1252
1278
|
}
|
|
1253
1279
|
),
|
|
1254
|
-
/* @__PURE__ */ (0,
|
|
1255
|
-
icon && /* @__PURE__ */ (0,
|
|
1256
|
-
/* @__PURE__ */ (0,
|
|
1280
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative", children: [
|
|
1281
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
1282
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1257
1283
|
Textarea,
|
|
1258
1284
|
{
|
|
1259
1285
|
ref,
|
|
@@ -1278,13 +1304,13 @@ var TextArea = React19.forwardRef(
|
|
|
1278
1304
|
...props
|
|
1279
1305
|
}
|
|
1280
1306
|
),
|
|
1281
|
-
secondaryIcon && /* @__PURE__ */ (0,
|
|
1282
|
-
actionButton && /* @__PURE__ */ (0,
|
|
1307
|
+
secondaryIcon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
1308
|
+
actionButton && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1283
1309
|
] }),
|
|
1284
|
-
(description || error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
1285
|
-
description && /* @__PURE__ */ (0,
|
|
1286
|
-
(error || showCount && maxLength) && /* @__PURE__ */ (0,
|
|
1287
|
-
showCount && maxLength && /* @__PURE__ */ (0,
|
|
1310
|
+
(description || error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1311
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1312
|
+
(error || showCount && maxLength) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
1313
|
+
showCount && maxLength && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1288
1314
|
Typography,
|
|
1289
1315
|
{
|
|
1290
1316
|
variant: "xs",
|
|
@@ -1298,7 +1324,7 @@ var TextArea = React19.forwardRef(
|
|
|
1298
1324
|
]
|
|
1299
1325
|
}
|
|
1300
1326
|
),
|
|
1301
|
-
error && /* @__PURE__ */ (0,
|
|
1327
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1302
1328
|
Typography,
|
|
1303
1329
|
{
|
|
1304
1330
|
variant: "xs",
|
|
@@ -1318,11 +1344,11 @@ TextArea.displayName = "TextArea";
|
|
|
1318
1344
|
var React20 = __toESM(require("react"), 1);
|
|
1319
1345
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
1320
1346
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
1321
|
-
var
|
|
1347
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1322
1348
|
var labelVariants = (0, import_class_variance_authority11.cva)(
|
|
1323
1349
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1324
1350
|
);
|
|
1325
|
-
var Label2 = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1351
|
+
var Label2 = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
1326
1352
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
1327
1353
|
|
|
1328
1354
|
// src/primitives/field.tsx
|
|
@@ -1332,8 +1358,8 @@ var import_class_variance_authority12 = require("class-variance-authority");
|
|
|
1332
1358
|
// src/primitives/separator.tsx
|
|
1333
1359
|
var React21 = __toESM(require("react"), 1);
|
|
1334
1360
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
1335
|
-
var
|
|
1336
|
-
var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1361
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1362
|
+
var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1337
1363
|
SeparatorPrimitive.Root,
|
|
1338
1364
|
{
|
|
1339
1365
|
ref,
|
|
@@ -1350,9 +1376,9 @@ var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", de
|
|
|
1350
1376
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1351
1377
|
|
|
1352
1378
|
// src/primitives/field.tsx
|
|
1353
|
-
var
|
|
1379
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1354
1380
|
function FieldSet({ className, ...props }) {
|
|
1355
|
-
return /* @__PURE__ */ (0,
|
|
1381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1356
1382
|
"fieldset",
|
|
1357
1383
|
{
|
|
1358
1384
|
"data-slot": "field-set",
|
|
@@ -1370,7 +1396,7 @@ function FieldLegend({
|
|
|
1370
1396
|
variant = "legend",
|
|
1371
1397
|
...props
|
|
1372
1398
|
}) {
|
|
1373
|
-
return /* @__PURE__ */ (0,
|
|
1399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1374
1400
|
"legend",
|
|
1375
1401
|
{
|
|
1376
1402
|
"data-slot": "field-legend",
|
|
@@ -1386,7 +1412,7 @@ function FieldLegend({
|
|
|
1386
1412
|
);
|
|
1387
1413
|
}
|
|
1388
1414
|
function FieldGroup({ className, ...props }) {
|
|
1389
|
-
return /* @__PURE__ */ (0,
|
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1390
1416
|
"div",
|
|
1391
1417
|
{
|
|
1392
1418
|
"data-slot": "field-group",
|
|
@@ -1426,7 +1452,7 @@ function Field({
|
|
|
1426
1452
|
orientation = "vertical",
|
|
1427
1453
|
...props
|
|
1428
1454
|
}) {
|
|
1429
|
-
return /* @__PURE__ */ (0,
|
|
1455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1430
1456
|
"div",
|
|
1431
1457
|
{
|
|
1432
1458
|
role: "group",
|
|
@@ -1438,7 +1464,7 @@ function Field({
|
|
|
1438
1464
|
);
|
|
1439
1465
|
}
|
|
1440
1466
|
function FieldContent({ className, ...props }) {
|
|
1441
|
-
return /* @__PURE__ */ (0,
|
|
1467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1442
1468
|
"div",
|
|
1443
1469
|
{
|
|
1444
1470
|
"data-slot": "field-content",
|
|
@@ -1448,7 +1474,7 @@ function FieldContent({ className, ...props }) {
|
|
|
1448
1474
|
);
|
|
1449
1475
|
}
|
|
1450
1476
|
function FieldLabel({ className, ...props }) {
|
|
1451
|
-
return /* @__PURE__ */ (0,
|
|
1477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1452
1478
|
Label2,
|
|
1453
1479
|
{
|
|
1454
1480
|
"data-slot": "field-label",
|
|
@@ -1463,7 +1489,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
1463
1489
|
);
|
|
1464
1490
|
}
|
|
1465
1491
|
function FieldTitle({ className, ...props }) {
|
|
1466
|
-
return /* @__PURE__ */ (0,
|
|
1492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1467
1493
|
"div",
|
|
1468
1494
|
{
|
|
1469
1495
|
"data-slot": "field-label",
|
|
@@ -1476,7 +1502,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
1476
1502
|
);
|
|
1477
1503
|
}
|
|
1478
1504
|
function FieldDescription({ className, ...props }) {
|
|
1479
|
-
return /* @__PURE__ */ (0,
|
|
1505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1480
1506
|
"p",
|
|
1481
1507
|
{
|
|
1482
1508
|
"data-slot": "field-description",
|
|
@@ -1495,7 +1521,7 @@ function FieldSeparator({
|
|
|
1495
1521
|
className,
|
|
1496
1522
|
...props
|
|
1497
1523
|
}) {
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1499
1525
|
"div",
|
|
1500
1526
|
{
|
|
1501
1527
|
"data-slot": "field-separator",
|
|
@@ -1506,8 +1532,8 @@ function FieldSeparator({
|
|
|
1506
1532
|
),
|
|
1507
1533
|
...props,
|
|
1508
1534
|
children: [
|
|
1509
|
-
/* @__PURE__ */ (0,
|
|
1510
|
-
children && /* @__PURE__ */ (0,
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
1536
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1511
1537
|
"span",
|
|
1512
1538
|
{
|
|
1513
1539
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -1535,12 +1561,12 @@ function FieldError({
|
|
|
1535
1561
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
1536
1562
|
return errors[0].message;
|
|
1537
1563
|
}
|
|
1538
|
-
return /* @__PURE__ */ (0,
|
|
1564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", { children: error.message }, index)) });
|
|
1539
1565
|
}, [children, errors]);
|
|
1540
1566
|
if (!content) {
|
|
1541
1567
|
return null;
|
|
1542
1568
|
}
|
|
1543
|
-
return /* @__PURE__ */ (0,
|
|
1569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1544
1570
|
"div",
|
|
1545
1571
|
{
|
|
1546
1572
|
role: "alert",
|
|
@@ -1558,7 +1584,7 @@ var import_class_variance_authority13 = require("class-variance-authority");
|
|
|
1558
1584
|
|
|
1559
1585
|
// src/components/icon/Icon.tsx
|
|
1560
1586
|
var React22 = __toESM(require("react"), 1);
|
|
1561
|
-
var
|
|
1587
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1562
1588
|
var iconStrokeMap = {
|
|
1563
1589
|
16: 1.4,
|
|
1564
1590
|
24: 1.6,
|
|
@@ -1576,7 +1602,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1576
1602
|
const strokeWidth = iconStrokeMap[size];
|
|
1577
1603
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1578
1604
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1579
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1580
1606
|
IconComponent,
|
|
1581
1607
|
{
|
|
1582
1608
|
ref,
|
|
@@ -1592,7 +1618,7 @@ Icon2.displayName = "Icon";
|
|
|
1592
1618
|
|
|
1593
1619
|
// src/components/link/Link.tsx
|
|
1594
1620
|
var import_lucide_react5 = require("lucide-react");
|
|
1595
|
-
var
|
|
1621
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1596
1622
|
var linkVariants = (0, import_class_variance_authority13.cva)(
|
|
1597
1623
|
"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",
|
|
1598
1624
|
{
|
|
@@ -1630,7 +1656,7 @@ var Link = React23.forwardRef(
|
|
|
1630
1656
|
...props
|
|
1631
1657
|
}, ref) => {
|
|
1632
1658
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
1633
|
-
return /* @__PURE__ */ (0,
|
|
1659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1634
1660
|
"a",
|
|
1635
1661
|
{
|
|
1636
1662
|
ref,
|
|
@@ -1646,8 +1672,8 @@ var Link = React23.forwardRef(
|
|
|
1646
1672
|
},
|
|
1647
1673
|
children: [
|
|
1648
1674
|
children,
|
|
1649
|
-
icon && /* @__PURE__ */ (0,
|
|
1650
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
1675
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
1676
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon2, { icon: import_lucide_react5.ExternalLink, size: 16 }) })
|
|
1651
1677
|
]
|
|
1652
1678
|
}
|
|
1653
1679
|
);
|
|
@@ -1655,15 +1681,11 @@ var Link = React23.forwardRef(
|
|
|
1655
1681
|
);
|
|
1656
1682
|
Link.displayName = "Link";
|
|
1657
1683
|
|
|
1658
|
-
// src/components/section/Section.tsx
|
|
1659
|
-
var React25 = __toESM(require("react"), 1);
|
|
1660
|
-
var import_class_variance_authority15 = require("class-variance-authority");
|
|
1661
|
-
|
|
1662
1684
|
// src/components/container/Container.tsx
|
|
1663
1685
|
var React24 = __toESM(require("react"), 1);
|
|
1664
1686
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1665
1687
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
1666
|
-
var
|
|
1688
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1667
1689
|
var containerVariants = (0, import_class_variance_authority14.cva)("w-full mx-auto", {
|
|
1668
1690
|
variants: {
|
|
1669
1691
|
size: {
|
|
@@ -1688,7 +1710,7 @@ var containerVariants = (0, import_class_variance_authority14.cva)("w-full mx-au
|
|
|
1688
1710
|
var Container = React24.forwardRef(
|
|
1689
1711
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
1690
1712
|
const Component = asChild ? import_react_slot2.Slot : "div";
|
|
1691
|
-
return /* @__PURE__ */ (0,
|
|
1713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1692
1714
|
Component,
|
|
1693
1715
|
{
|
|
1694
1716
|
ref,
|
|
@@ -1701,86 +1723,12 @@ var Container = React24.forwardRef(
|
|
|
1701
1723
|
);
|
|
1702
1724
|
Container.displayName = "Container";
|
|
1703
1725
|
|
|
1704
|
-
// src/components/section/Section.tsx
|
|
1705
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1706
|
-
var sectionVariants = (0, import_class_variance_authority15.cva)("relative", {
|
|
1707
|
-
variants: {
|
|
1708
|
-
padding: {
|
|
1709
|
-
none: "",
|
|
1710
|
-
sm: "py-12",
|
|
1711
|
-
md: "py-16",
|
|
1712
|
-
lg: "py-24",
|
|
1713
|
-
xl: "py-32"
|
|
1714
|
-
},
|
|
1715
|
-
background: {
|
|
1716
|
-
transparent: "",
|
|
1717
|
-
muted: "bg-berget-section-muted-bg"
|
|
1718
|
-
}
|
|
1719
|
-
},
|
|
1720
|
-
defaultVariants: {
|
|
1721
|
-
padding: "lg",
|
|
1722
|
-
background: "transparent"
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
var Section = React25.forwardRef(
|
|
1726
|
-
({ className, padding, background, children, ...props }, ref) => {
|
|
1727
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1728
|
-
"section",
|
|
1729
|
-
{
|
|
1730
|
-
ref,
|
|
1731
|
-
className: cn(sectionVariants({ padding, background }), className),
|
|
1732
|
-
...props,
|
|
1733
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Container, { children })
|
|
1734
|
-
}
|
|
1735
|
-
);
|
|
1736
|
-
}
|
|
1737
|
-
);
|
|
1738
|
-
Section.displayName = "Section";
|
|
1739
|
-
|
|
1740
|
-
// src/components/section-header/SectionHeader.tsx
|
|
1741
|
-
var React26 = __toESM(require("react"), 1);
|
|
1742
|
-
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1743
|
-
var SectionHeader = React26.forwardRef(
|
|
1744
|
-
({
|
|
1745
|
-
className,
|
|
1746
|
-
title,
|
|
1747
|
-
description,
|
|
1748
|
-
descriptionVariant = "large",
|
|
1749
|
-
tagline,
|
|
1750
|
-
action,
|
|
1751
|
-
headingLevel = "h2",
|
|
1752
|
-
id,
|
|
1753
|
-
...props
|
|
1754
|
-
}, ref) => {
|
|
1755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1756
|
-
"div",
|
|
1757
|
-
{
|
|
1758
|
-
id,
|
|
1759
|
-
ref,
|
|
1760
|
-
className: cn("w-full px-fluid-md py-fluid-xl text-center", className),
|
|
1761
|
-
...props,
|
|
1762
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col items-center gap-fluid-lg", children: [
|
|
1763
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "max-w-3xl mx-auto flex flex-col items-center gap-fluid-lg", children: [
|
|
1764
|
-
tagline && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Badge, { variant: "default", className: "text-sm", children: tagline }),
|
|
1765
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col items-center gap-fluid-sm", children: [
|
|
1766
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typography, { variant: headingLevel, children: title }),
|
|
1767
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typography, { variant: descriptionVariant, color: "muted", children: description })
|
|
1768
|
-
] })
|
|
1769
|
-
] }),
|
|
1770
|
-
action && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "mt-4", children: action })
|
|
1771
|
-
] })
|
|
1772
|
-
}
|
|
1773
|
-
);
|
|
1774
|
-
}
|
|
1775
|
-
);
|
|
1776
|
-
SectionHeader.displayName = "SectionHeader";
|
|
1777
|
-
|
|
1778
1726
|
// src/components/grid/Grid.tsx
|
|
1779
|
-
var
|
|
1780
|
-
var
|
|
1727
|
+
var React25 = __toESM(require("react"), 1);
|
|
1728
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
1781
1729
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
1782
|
-
var
|
|
1783
|
-
var gridVariants = (0,
|
|
1730
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1731
|
+
var gridVariants = (0, import_class_variance_authority15.cva)("grid", {
|
|
1784
1732
|
variants: {
|
|
1785
1733
|
align: {
|
|
1786
1734
|
start: "items-start",
|
|
@@ -1802,10 +1750,10 @@ var gridVariants = (0, import_class_variance_authority16.cva)("grid", {
|
|
|
1802
1750
|
justify: "start"
|
|
1803
1751
|
}
|
|
1804
1752
|
});
|
|
1805
|
-
var Grid =
|
|
1753
|
+
var Grid = React25.forwardRef(
|
|
1806
1754
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
1807
1755
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
1808
|
-
return /* @__PURE__ */ (0,
|
|
1756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1809
1757
|
Component,
|
|
1810
1758
|
{
|
|
1811
1759
|
ref,
|
|
@@ -1827,11 +1775,11 @@ var Grid = React27.forwardRef(
|
|
|
1827
1775
|
Grid.displayName = "Grid";
|
|
1828
1776
|
|
|
1829
1777
|
// src/components/box/Box.tsx
|
|
1830
|
-
var
|
|
1831
|
-
var
|
|
1778
|
+
var React26 = __toESM(require("react"), 1);
|
|
1779
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
1832
1780
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
1833
|
-
var
|
|
1834
|
-
var boxVariants = (0,
|
|
1781
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1782
|
+
var boxVariants = (0, import_class_variance_authority16.cva)("flex", {
|
|
1835
1783
|
variants: {
|
|
1836
1784
|
direction: {
|
|
1837
1785
|
row: "flex-row",
|
|
@@ -1867,10 +1815,10 @@ var boxVariants = (0, import_class_variance_authority17.cva)("flex", {
|
|
|
1867
1815
|
wrap: "nowrap"
|
|
1868
1816
|
}
|
|
1869
1817
|
});
|
|
1870
|
-
var Box =
|
|
1818
|
+
var Box = React26.forwardRef(
|
|
1871
1819
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
1872
1820
|
const Component = asChild ? import_react_slot4.Slot : "div";
|
|
1873
|
-
return /* @__PURE__ */ (0,
|
|
1821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1874
1822
|
Component,
|
|
1875
1823
|
{
|
|
1876
1824
|
ref,
|
|
@@ -1888,16 +1836,16 @@ var Box = React28.forwardRef(
|
|
|
1888
1836
|
Box.displayName = "Box";
|
|
1889
1837
|
|
|
1890
1838
|
// src/components/berget-logo/BergetLogo.tsx
|
|
1891
|
-
var
|
|
1892
|
-
var
|
|
1893
|
-
var BergetLogo =
|
|
1839
|
+
var React27 = __toESM(require("react"), 1);
|
|
1840
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1841
|
+
var BergetLogo = React27.forwardRef(
|
|
1894
1842
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
1895
1843
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
1896
1844
|
if (variant === "symbol") {
|
|
1897
1845
|
const aspectRatio2 = 463 / 419;
|
|
1898
1846
|
const width2 = size * aspectRatio2;
|
|
1899
1847
|
const height2 = size;
|
|
1900
|
-
return /* @__PURE__ */ (0,
|
|
1848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1901
1849
|
"svg",
|
|
1902
1850
|
{
|
|
1903
1851
|
ref,
|
|
@@ -1910,7 +1858,7 @@ var BergetLogo = React29.forwardRef(
|
|
|
1910
1858
|
"aria-label": "Berget symbol",
|
|
1911
1859
|
className: cn("inline-block", className),
|
|
1912
1860
|
...props,
|
|
1913
|
-
children: /* @__PURE__ */ (0,
|
|
1861
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1914
1862
|
"path",
|
|
1915
1863
|
{
|
|
1916
1864
|
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",
|
|
@@ -1923,7 +1871,7 @@ var BergetLogo = React29.forwardRef(
|
|
|
1923
1871
|
const aspectRatio = 793.63 / 204.37;
|
|
1924
1872
|
const width = size * aspectRatio;
|
|
1925
1873
|
const height = size;
|
|
1926
|
-
return /* @__PURE__ */ (0,
|
|
1874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1927
1875
|
"svg",
|
|
1928
1876
|
{
|
|
1929
1877
|
ref,
|
|
@@ -1937,59 +1885,59 @@ var BergetLogo = React29.forwardRef(
|
|
|
1937
1885
|
className: cn("inline-block", className),
|
|
1938
1886
|
...props,
|
|
1939
1887
|
children: [
|
|
1940
|
-
/* @__PURE__ */ (0,
|
|
1941
|
-
/* @__PURE__ */ (0,
|
|
1888
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("g", { style: { fill: fillColor }, children: [
|
|
1889
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1942
1890
|
"path",
|
|
1943
1891
|
{
|
|
1944
1892
|
className: "berget-logotype-fill",
|
|
1945
1893
|
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"
|
|
1946
1894
|
}
|
|
1947
1895
|
),
|
|
1948
|
-
/* @__PURE__ */ (0,
|
|
1896
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1949
1897
|
"path",
|
|
1950
1898
|
{
|
|
1951
1899
|
className: "berget-logotype-fill",
|
|
1952
1900
|
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"
|
|
1953
1901
|
}
|
|
1954
1902
|
),
|
|
1955
|
-
/* @__PURE__ */ (0,
|
|
1903
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1956
1904
|
"path",
|
|
1957
1905
|
{
|
|
1958
1906
|
className: "berget-logotype-fill",
|
|
1959
1907
|
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"
|
|
1960
1908
|
}
|
|
1961
1909
|
),
|
|
1962
|
-
/* @__PURE__ */ (0,
|
|
1910
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1963
1911
|
"path",
|
|
1964
1912
|
{
|
|
1965
1913
|
className: "berget-logotype-fill",
|
|
1966
1914
|
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"
|
|
1967
1915
|
}
|
|
1968
1916
|
),
|
|
1969
|
-
/* @__PURE__ */ (0,
|
|
1917
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1970
1918
|
"path",
|
|
1971
1919
|
{
|
|
1972
1920
|
className: "berget-logotype-fill",
|
|
1973
1921
|
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"
|
|
1974
1922
|
}
|
|
1975
1923
|
),
|
|
1976
|
-
/* @__PURE__ */ (0,
|
|
1924
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1977
1925
|
"path",
|
|
1978
1926
|
{
|
|
1979
1927
|
className: "berget-logotype-fill",
|
|
1980
1928
|
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"
|
|
1981
1929
|
}
|
|
1982
1930
|
),
|
|
1983
|
-
/* @__PURE__ */ (0,
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1984
1932
|
"path",
|
|
1985
1933
|
{
|
|
1986
1934
|
className: "berget-logotype-fill",
|
|
1987
1935
|
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"
|
|
1988
1936
|
}
|
|
1989
1937
|
),
|
|
1990
|
-
/* @__PURE__ */ (0,
|
|
1938
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
1991
1939
|
] }),
|
|
1992
|
-
/* @__PURE__ */ (0,
|
|
1940
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1993
1941
|
"path",
|
|
1994
1942
|
{
|
|
1995
1943
|
style: { fill: fillColor },
|
|
@@ -2003,19 +1951,14 @@ var BergetLogo = React29.forwardRef(
|
|
|
2003
1951
|
);
|
|
2004
1952
|
BergetLogo.displayName = "BergetLogo";
|
|
2005
1953
|
|
|
2006
|
-
// src/components/header/Header.tsx
|
|
2007
|
-
var React31 = __toESM(require("react"), 1);
|
|
2008
|
-
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2009
|
-
var import_lucide_react7 = require("lucide-react");
|
|
2010
|
-
|
|
2011
1954
|
// src/components/language-select/LanguageSelect.tsx
|
|
2012
|
-
var
|
|
1955
|
+
var React28 = __toESM(require("react"), 1);
|
|
2013
1956
|
var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
|
|
2014
1957
|
var import_lucide_react6 = require("lucide-react");
|
|
2015
|
-
var
|
|
2016
|
-
var LanguageSelect =
|
|
2017
|
-
return /* @__PURE__ */ (0,
|
|
2018
|
-
/* @__PURE__ */ (0,
|
|
1958
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1959
|
+
var LanguageSelect = React28.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
1960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
1961
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2019
1962
|
SelectPrimitive2.Trigger,
|
|
2020
1963
|
{
|
|
2021
1964
|
ref,
|
|
@@ -2037,10 +1980,10 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
2037
1980
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2038
1981
|
className
|
|
2039
1982
|
),
|
|
2040
|
-
children: /* @__PURE__ */ (0,
|
|
1983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { icon: import_lucide_react6.Globe, size: 16 })
|
|
2041
1984
|
}
|
|
2042
1985
|
),
|
|
2043
|
-
/* @__PURE__ */ (0,
|
|
1986
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2044
1987
|
SelectPrimitive2.Content,
|
|
2045
1988
|
{
|
|
2046
1989
|
className: cn(
|
|
@@ -2068,7 +2011,7 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
2068
2011
|
"origin-[--radix-select-content-transform-origin]"
|
|
2069
2012
|
),
|
|
2070
2013
|
position: "popper",
|
|
2071
|
-
children: /* @__PURE__ */ (0,
|
|
2014
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2072
2015
|
SelectPrimitive2.Item,
|
|
2073
2016
|
{
|
|
2074
2017
|
value: option.value,
|
|
@@ -2085,7 +2028,7 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
2085
2028
|
// Disabled state
|
|
2086
2029
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
2087
2030
|
),
|
|
2088
|
-
children: /* @__PURE__ */ (0,
|
|
2031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectPrimitive2.ItemText, { children: option.label })
|
|
2089
2032
|
},
|
|
2090
2033
|
option.value
|
|
2091
2034
|
)) })
|
|
@@ -2095,225 +2038,14 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
2095
2038
|
});
|
|
2096
2039
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2097
2040
|
|
|
2098
|
-
// src/components/header/Header.tsx
|
|
2099
|
-
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2100
|
-
var headerVariants = (0, import_class_variance_authority18.cva)(
|
|
2101
|
-
"sticky top-0 z-50 header-backdrop backdrop-blur-xl border-b border-berget-border transition-all duration-200",
|
|
2102
|
-
{
|
|
2103
|
-
variants: {
|
|
2104
|
-
variant: {
|
|
2105
|
-
default: "",
|
|
2106
|
-
transparent: "border-transparent bg-transparent backdrop-blur-none"
|
|
2107
|
-
}
|
|
2108
|
-
},
|
|
2109
|
-
defaultVariants: {
|
|
2110
|
-
variant: "default"
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
);
|
|
2114
|
-
var HeaderContext = React31.createContext({
|
|
2115
|
-
isMobileMenuOpen: false,
|
|
2116
|
-
setIsMobileMenuOpen: () => {
|
|
2117
|
-
}
|
|
2118
|
-
});
|
|
2119
|
-
var useHeaderContext = () => React31.useContext(HeaderContext);
|
|
2120
|
-
var HeaderLogo = React31.forwardRef(
|
|
2121
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: cn("flex items-center", className), ...props, children })
|
|
2122
|
-
);
|
|
2123
|
-
HeaderLogo.displayName = "HeaderLogo";
|
|
2124
|
-
var HeaderNav = React31.forwardRef(({ className, links, ...props }, ref) => {
|
|
2125
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("nav", { ref, className: cn("hidden md:flex items-center gap-fluid-lg", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { className: "flex items-center gap-fluid-lg", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2126
|
-
Link,
|
|
2127
|
-
{
|
|
2128
|
-
href: link.href,
|
|
2129
|
-
variant: link.active ? "primary" : "default",
|
|
2130
|
-
size: "sm",
|
|
2131
|
-
className: cn("relative transition-all duration-200", link.active && "font-medium"),
|
|
2132
|
-
children: [
|
|
2133
|
-
link.icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex items-center mr-2", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { icon: link.icon, size: 16 }) }),
|
|
2134
|
-
link.label
|
|
2135
|
-
]
|
|
2136
|
-
}
|
|
2137
|
-
) }, link.href)) }) });
|
|
2138
|
-
});
|
|
2139
|
-
HeaderNav.displayName = "HeaderNav";
|
|
2140
|
-
var HeaderActions = React31.forwardRef(
|
|
2141
|
-
({
|
|
2142
|
-
className,
|
|
2143
|
-
languageOptions,
|
|
2144
|
-
currentLanguage,
|
|
2145
|
-
onLanguageChange,
|
|
2146
|
-
loginButton,
|
|
2147
|
-
ctaButton,
|
|
2148
|
-
...props
|
|
2149
|
-
}, ref) => {
|
|
2150
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ref, className: cn("hidden md:flex items-center gap-2", className), ...props, children: [
|
|
2151
|
-
languageOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2152
|
-
LanguageSelect,
|
|
2153
|
-
{
|
|
2154
|
-
options: languageOptions,
|
|
2155
|
-
value: currentLanguage,
|
|
2156
|
-
onValueChange: onLanguageChange
|
|
2157
|
-
}
|
|
2158
|
-
),
|
|
2159
|
-
loginButton,
|
|
2160
|
-
ctaButton
|
|
2161
|
-
] });
|
|
2162
|
-
}
|
|
2163
|
-
);
|
|
2164
|
-
HeaderActions.displayName = "HeaderActions";
|
|
2165
|
-
var MobileMenuButton = React31.forwardRef(({ className, ...props }, ref) => {
|
|
2166
|
-
const { isMobileMenuOpen, setIsMobileMenuOpen } = useHeaderContext();
|
|
2167
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2168
|
-
"button",
|
|
2169
|
-
{
|
|
2170
|
-
ref,
|
|
2171
|
-
className: cn(
|
|
2172
|
-
"md:hidden flex items-center justify-center w-8 h-8 rounded-full",
|
|
2173
|
-
"cursor-pointer transition-all duration-200",
|
|
2174
|
-
"hover:bg-berget-surface-hover",
|
|
2175
|
-
className
|
|
2176
|
-
),
|
|
2177
|
-
onClick: () => setIsMobileMenuOpen(!isMobileMenuOpen),
|
|
2178
|
-
"aria-label": isMobileMenuOpen ? "Close menu" : "Open menu",
|
|
2179
|
-
"aria-expanded": isMobileMenuOpen,
|
|
2180
|
-
"aria-controls": "mobile-menu",
|
|
2181
|
-
...props,
|
|
2182
|
-
children: isMobileMenuOpen ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { icon: import_lucide_react7.X, size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { icon: import_lucide_react7.Menu, size: 16 })
|
|
2183
|
-
}
|
|
2184
|
-
);
|
|
2185
|
-
});
|
|
2186
|
-
MobileMenuButton.displayName = "MobileMenuButton";
|
|
2187
|
-
var MobileMenu = React31.forwardRef(
|
|
2188
|
-
({
|
|
2189
|
-
className,
|
|
2190
|
-
links,
|
|
2191
|
-
languageOptions,
|
|
2192
|
-
currentLanguage,
|
|
2193
|
-
onLanguageChange,
|
|
2194
|
-
loginButton,
|
|
2195
|
-
ctaButton,
|
|
2196
|
-
...props
|
|
2197
|
-
}, ref) => {
|
|
2198
|
-
const { isMobileMenuOpen, setIsMobileMenuOpen } = useHeaderContext();
|
|
2199
|
-
if (!isMobileMenuOpen) return null;
|
|
2200
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2201
|
-
"nav",
|
|
2202
|
-
{
|
|
2203
|
-
ref,
|
|
2204
|
-
id: "mobile-menu",
|
|
2205
|
-
"aria-label": "Mobile navigation menu",
|
|
2206
|
-
className: cn(
|
|
2207
|
-
"md:hidden absolute top-full left-0 right-0 bg-berget-background border-b border-berget-border shadow-berget-lg",
|
|
2208
|
-
className
|
|
2209
|
-
),
|
|
2210
|
-
...props,
|
|
2211
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box, { direction: "column", gap: 0, className: "py-fluid-md", children: [
|
|
2212
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { className: "px-fluid-md pb-fluid-md border-b border-berget-border/50", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2213
|
-
Link,
|
|
2214
|
-
{
|
|
2215
|
-
href: link.href,
|
|
2216
|
-
variant: link.active ? "primary" : "default",
|
|
2217
|
-
className: cn(
|
|
2218
|
-
"w-full py-3 px-4 rounded-lg transition-all duration-200 hover:bg-berget-surface-hover",
|
|
2219
|
-
link.active && "bg-berget-primary-tint font-medium"
|
|
2220
|
-
),
|
|
2221
|
-
onClick: () => setIsMobileMenuOpen(false),
|
|
2222
|
-
children: [
|
|
2223
|
-
link.icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex items-center mr-2", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { icon: link.icon, size: 16 }) }),
|
|
2224
|
-
link.label
|
|
2225
|
-
]
|
|
2226
|
-
}
|
|
2227
|
-
) }, link.href)) }),
|
|
2228
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "px-fluid-md py-fluid-md", children: [
|
|
2229
|
-
languageOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "mb-fluid-md", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2230
|
-
LanguageSelect,
|
|
2231
|
-
{
|
|
2232
|
-
options: languageOptions,
|
|
2233
|
-
value: currentLanguage,
|
|
2234
|
-
onValueChange: onLanguageChange
|
|
2235
|
-
}
|
|
2236
|
-
) }),
|
|
2237
|
-
loginButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "mb-fluid-md w-full", children: loginButton }),
|
|
2238
|
-
ctaButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-full", children: ctaButton })
|
|
2239
|
-
] })
|
|
2240
|
-
] })
|
|
2241
|
-
}
|
|
2242
|
-
);
|
|
2243
|
-
}
|
|
2244
|
-
);
|
|
2245
|
-
MobileMenu.displayName = "MobileMenu";
|
|
2246
|
-
var Header = React31.forwardRef(
|
|
2247
|
-
({
|
|
2248
|
-
className,
|
|
2249
|
-
variant,
|
|
2250
|
-
logo,
|
|
2251
|
-
links,
|
|
2252
|
-
languageOptions,
|
|
2253
|
-
loginButton,
|
|
2254
|
-
ctaButton,
|
|
2255
|
-
currentLanguage,
|
|
2256
|
-
onLanguageChange,
|
|
2257
|
-
...props
|
|
2258
|
-
}, ref) => {
|
|
2259
|
-
const [isMobileMenuOpen, setIsMobileMenuOpen] = React31.useState(false);
|
|
2260
|
-
React31.useEffect(() => {
|
|
2261
|
-
if (isMobileMenuOpen) {
|
|
2262
|
-
document.body.style.overflow = "hidden";
|
|
2263
|
-
} else {
|
|
2264
|
-
document.body.style.overflow = "unset";
|
|
2265
|
-
}
|
|
2266
|
-
return () => {
|
|
2267
|
-
document.body.style.overflow = "unset";
|
|
2268
|
-
};
|
|
2269
|
-
}, [isMobileMenuOpen]);
|
|
2270
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HeaderContext.Provider, { value: { isMobileMenuOpen, setIsMobileMenuOpen }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("header", { ref, className: cn(headerVariants({ variant }), className), ...props, children: [
|
|
2271
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Container, { size: "xl", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box, { direction: "row", align: "center", justify: "between", className: "h-16", children: [
|
|
2272
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HeaderLogo, { children: logo || /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BergetLogo, { variant: "logotype", color: "auto", size: 32 }) }),
|
|
2273
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HeaderNav, { links }),
|
|
2274
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Box, { direction: "row", align: "center", gap: 3, children: [
|
|
2275
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2276
|
-
HeaderActions,
|
|
2277
|
-
{
|
|
2278
|
-
languageOptions,
|
|
2279
|
-
currentLanguage,
|
|
2280
|
-
onLanguageChange,
|
|
2281
|
-
loginButton,
|
|
2282
|
-
ctaButton
|
|
2283
|
-
}
|
|
2284
|
-
),
|
|
2285
|
-
ctaButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "md:hidden", children: ctaButton }),
|
|
2286
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MobileMenuButton, {})
|
|
2287
|
-
] })
|
|
2288
|
-
] }) }),
|
|
2289
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2290
|
-
MobileMenu,
|
|
2291
|
-
{
|
|
2292
|
-
links,
|
|
2293
|
-
languageOptions,
|
|
2294
|
-
currentLanguage,
|
|
2295
|
-
onLanguageChange,
|
|
2296
|
-
loginButton,
|
|
2297
|
-
ctaButton
|
|
2298
|
-
}
|
|
2299
|
-
)
|
|
2300
|
-
] }) });
|
|
2301
|
-
}
|
|
2302
|
-
);
|
|
2303
|
-
Header.displayName = "Header";
|
|
2304
|
-
|
|
2305
|
-
// src/components/feature-cards/FeatureCards.tsx
|
|
2306
|
-
var React34 = __toESM(require("react"), 1);
|
|
2307
|
-
var import_class_variance_authority20 = require("class-variance-authority");
|
|
2308
|
-
|
|
2309
2041
|
// src/components/list/List.tsx
|
|
2310
|
-
var
|
|
2042
|
+
var React30 = __toESM(require("react"), 1);
|
|
2311
2043
|
|
|
2312
2044
|
// src/components/divider/Divider.tsx
|
|
2313
|
-
var
|
|
2314
|
-
var
|
|
2315
|
-
var
|
|
2316
|
-
var dividerVariants = (0,
|
|
2045
|
+
var React29 = __toESM(require("react"), 1);
|
|
2046
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
2047
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2048
|
+
var dividerVariants = (0, import_class_variance_authority17.cva)("", {
|
|
2317
2049
|
variants: {
|
|
2318
2050
|
variant: {
|
|
2319
2051
|
default: "bg-berget-separator",
|
|
@@ -2333,7 +2065,7 @@ var dividerVariants = (0, import_class_variance_authority19.cva)("", {
|
|
|
2333
2065
|
size: "thin"
|
|
2334
2066
|
}
|
|
2335
2067
|
});
|
|
2336
|
-
var Divider =
|
|
2068
|
+
var Divider = React29.forwardRef(
|
|
2337
2069
|
({
|
|
2338
2070
|
className,
|
|
2339
2071
|
orientation = "horizontal",
|
|
@@ -2344,16 +2076,16 @@ var Divider = React32.forwardRef(
|
|
|
2344
2076
|
...props
|
|
2345
2077
|
}, ref) => {
|
|
2346
2078
|
if (label) {
|
|
2347
|
-
return /* @__PURE__ */ (0,
|
|
2348
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
2079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
2080
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2349
2081
|
Separator2,
|
|
2350
2082
|
{
|
|
2351
2083
|
orientation: "horizontal",
|
|
2352
2084
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2353
2085
|
}
|
|
2354
2086
|
),
|
|
2355
|
-
/* @__PURE__ */ (0,
|
|
2356
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
2088
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2357
2089
|
Separator2,
|
|
2358
2090
|
{
|
|
2359
2091
|
orientation: "horizontal",
|
|
@@ -2362,7 +2094,7 @@ var Divider = React32.forwardRef(
|
|
|
2362
2094
|
)
|
|
2363
2095
|
] });
|
|
2364
2096
|
}
|
|
2365
|
-
return /* @__PURE__ */ (0,
|
|
2097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2366
2098
|
Separator2,
|
|
2367
2099
|
{
|
|
2368
2100
|
ref,
|
|
@@ -2379,20 +2111,20 @@ var Divider = React32.forwardRef(
|
|
|
2379
2111
|
Divider.displayName = "Divider";
|
|
2380
2112
|
|
|
2381
2113
|
// src/components/list/List.tsx
|
|
2382
|
-
var
|
|
2383
|
-
var
|
|
2384
|
-
var List =
|
|
2114
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2115
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2116
|
+
var List = React30.forwardRef(
|
|
2385
2117
|
({ className, children, ...props }, ref) => {
|
|
2386
|
-
const childrenArray =
|
|
2387
|
-
return /* @__PURE__ */ (0,
|
|
2118
|
+
const childrenArray = React30.Children.toArray(children);
|
|
2119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(React30.Fragment, { children: [
|
|
2388
2120
|
child,
|
|
2389
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
2121
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Divider, { variant: "subtle" })
|
|
2390
2122
|
] }, index)) });
|
|
2391
2123
|
}
|
|
2392
2124
|
);
|
|
2393
2125
|
List.displayName = "List";
|
|
2394
|
-
var ListItem =
|
|
2395
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2126
|
+
var ListItem = React30.forwardRef(
|
|
2127
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2396
2128
|
"div",
|
|
2397
2129
|
{
|
|
2398
2130
|
ref,
|
|
@@ -2403,15 +2135,15 @@ var ListItem = React33.forwardRef(
|
|
|
2403
2135
|
),
|
|
2404
2136
|
...props,
|
|
2405
2137
|
children: [
|
|
2406
|
-
icon && /* @__PURE__ */ (0,
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2138
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
2408
2140
|
]
|
|
2409
2141
|
}
|
|
2410
2142
|
)
|
|
2411
2143
|
);
|
|
2412
2144
|
ListItem.displayName = "ListItem";
|
|
2413
|
-
var ListHeader =
|
|
2414
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2145
|
+
var ListHeader = React30.forwardRef(
|
|
2146
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2415
2147
|
"div",
|
|
2416
2148
|
{
|
|
2417
2149
|
ref,
|
|
@@ -2422,111 +2154,21 @@ var ListHeader = React33.forwardRef(
|
|
|
2422
2154
|
)
|
|
2423
2155
|
);
|
|
2424
2156
|
ListHeader.displayName = "ListHeader";
|
|
2425
|
-
var FeatureList =
|
|
2157
|
+
var FeatureList = React30.forwardRef(
|
|
2426
2158
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
2427
|
-
return /* @__PURE__ */ (0,
|
|
2428
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
2429
|
-
/* @__PURE__ */ (0,
|
|
2159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
2160
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { icon: import_lucide_react7.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
2161
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
2430
2162
|
] }, index)) });
|
|
2431
2163
|
}
|
|
2432
2164
|
);
|
|
2433
2165
|
FeatureList.displayName = "FeatureList";
|
|
2434
2166
|
|
|
2435
|
-
// src/components/feature-cards/FeatureCards.tsx
|
|
2436
|
-
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2437
|
-
var featureCardVariants = (0, import_class_variance_authority20.cva)("", {
|
|
2438
|
-
variants: {
|
|
2439
|
-
variant: {
|
|
2440
|
-
highlight: "",
|
|
2441
|
-
glass: "",
|
|
2442
|
-
solid: ""
|
|
2443
|
-
}
|
|
2444
|
-
},
|
|
2445
|
-
defaultVariants: {
|
|
2446
|
-
variant: "highlight"
|
|
2447
|
-
}
|
|
2448
|
-
});
|
|
2449
|
-
var FeatureCard = React34.forwardRef(
|
|
2450
|
-
({
|
|
2451
|
-
className,
|
|
2452
|
-
variant = "highlight",
|
|
2453
|
-
icon: Icon3,
|
|
2454
|
-
iconColor,
|
|
2455
|
-
title,
|
|
2456
|
-
description,
|
|
2457
|
-
badge,
|
|
2458
|
-
linkText,
|
|
2459
|
-
linkHref,
|
|
2460
|
-
items,
|
|
2461
|
-
columns: _columns,
|
|
2462
|
-
...props
|
|
2463
|
-
}, ref) => {
|
|
2464
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2465
|
-
Card2,
|
|
2466
|
-
{
|
|
2467
|
-
ref,
|
|
2468
|
-
variant,
|
|
2469
|
-
className: cn("w-full py-fluid-lg px-fluid-md", className),
|
|
2470
|
-
...props,
|
|
2471
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col items-start gap-fluid-md", children: [
|
|
2472
|
-
(Icon3 || badge) && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
|
|
2473
|
-
Icon3 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex h-7 w-7 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2474
|
-
Icon3,
|
|
2475
|
-
{
|
|
2476
|
-
className: cn("h-7 w-7", iconColor || "text-foreground"),
|
|
2477
|
-
strokeWidth: 1.5
|
|
2478
|
-
}
|
|
2479
|
-
) }),
|
|
2480
|
-
badge && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex h-6 items-center justify-start px-6 bg-berget-feature-card-badge-bg rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2481
|
-
Typography,
|
|
2482
|
-
{
|
|
2483
|
-
variant: "body",
|
|
2484
|
-
as: "span",
|
|
2485
|
-
className: "text-berget-feature-card-badge-fg",
|
|
2486
|
-
children: badge
|
|
2487
|
-
}
|
|
2488
|
-
) })
|
|
2489
|
-
] }),
|
|
2490
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "h3", className: "text-foreground", children: title }),
|
|
2491
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "body", className: "text-foreground/80", children: description }),
|
|
2492
|
-
items && items.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(FeatureList, { items, variant: "bullet" }),
|
|
2493
|
-
linkText && linkHref && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("a", { href: linkHref, className: "text-p font-p leading-p text-berget-accent", children: [
|
|
2494
|
-
linkText,
|
|
2495
|
-
" \u2192"
|
|
2496
|
-
] })
|
|
2497
|
-
] })
|
|
2498
|
-
}
|
|
2499
|
-
);
|
|
2500
|
-
}
|
|
2501
|
-
);
|
|
2502
|
-
FeatureCard.displayName = "FeatureCard";
|
|
2503
|
-
var FeatureCards = React34.forwardRef(
|
|
2504
|
-
({ features, columns = 3, className }, ref) => {
|
|
2505
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2506
|
-
"div",
|
|
2507
|
-
{
|
|
2508
|
-
ref,
|
|
2509
|
-
className: cn(
|
|
2510
|
-
"grid gap-fluid-lg p-fluid-md",
|
|
2511
|
-
// Explicit classes so Tailwind compiles them
|
|
2512
|
-
columns === 1 && "grid-cols-1 max-w-md mx-auto",
|
|
2513
|
-
columns === 2 && "grid-cols-1 md:grid-cols-2",
|
|
2514
|
-
columns === 3 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
2515
|
-
columns === 4 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
2516
|
-
className
|
|
2517
|
-
),
|
|
2518
|
-
children: features.map((feature, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(FeatureCard, { ...feature }, index))
|
|
2519
|
-
}
|
|
2520
|
-
);
|
|
2521
|
-
}
|
|
2522
|
-
);
|
|
2523
|
-
FeatureCards.displayName = "FeatureCards";
|
|
2524
|
-
|
|
2525
2167
|
// src/components/hero-block/HeroBlock.tsx
|
|
2526
|
-
var
|
|
2527
|
-
var
|
|
2528
|
-
var
|
|
2529
|
-
var heroBlockVariants = (0,
|
|
2168
|
+
var React31 = __toESM(require("react"), 1);
|
|
2169
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
2170
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2171
|
+
var heroBlockVariants = (0, import_class_variance_authority18.cva)(
|
|
2530
2172
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
2531
2173
|
{
|
|
2532
2174
|
variants: {
|
|
@@ -2546,7 +2188,7 @@ var heroBlockVariants = (0, import_class_variance_authority21.cva)(
|
|
|
2546
2188
|
}
|
|
2547
2189
|
}
|
|
2548
2190
|
);
|
|
2549
|
-
var HeroBlock =
|
|
2191
|
+
var HeroBlock = React31.forwardRef(
|
|
2550
2192
|
({
|
|
2551
2193
|
className,
|
|
2552
2194
|
variant,
|
|
@@ -2558,26 +2200,26 @@ var HeroBlock = React35.forwardRef(
|
|
|
2558
2200
|
actions,
|
|
2559
2201
|
...props
|
|
2560
2202
|
}, ref) => {
|
|
2561
|
-
return /* @__PURE__ */ (0,
|
|
2203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2562
2204
|
"div",
|
|
2563
2205
|
{
|
|
2564
2206
|
ref,
|
|
2565
2207
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
2566
2208
|
...props,
|
|
2567
|
-
children: /* @__PURE__ */ (0,
|
|
2568
|
-
tagline && /* @__PURE__ */ (0,
|
|
2209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
2210
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2569
2211
|
Badge,
|
|
2570
2212
|
{
|
|
2571
2213
|
variant: "default",
|
|
2572
|
-
icon: TaglineIcon ? /* @__PURE__ */ (0,
|
|
2214
|
+
icon: TaglineIcon ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
2573
2215
|
iconGap: 2,
|
|
2574
2216
|
className: "mb-fluid-md",
|
|
2575
2217
|
children: tagline
|
|
2576
2218
|
}
|
|
2577
2219
|
),
|
|
2578
|
-
/* @__PURE__ */ (0,
|
|
2579
|
-
/* @__PURE__ */ (0,
|
|
2580
|
-
actions && /* @__PURE__ */ (0,
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
2221
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
2222
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
2581
2223
|
] }) })
|
|
2582
2224
|
}
|
|
2583
2225
|
);
|
|
@@ -2587,104 +2229,19 @@ HeroBlock.displayName = "HeroBlock";
|
|
|
2587
2229
|
|
|
2588
2230
|
// src/components/code-block/CodeBlock.tsx
|
|
2589
2231
|
var import_react2 = require("react");
|
|
2590
|
-
var
|
|
2232
|
+
var import_lucide_react8 = require("lucide-react");
|
|
2591
2233
|
|
|
2592
2234
|
// src/lib/shiki.ts
|
|
2593
|
-
var
|
|
2235
|
+
var import_core2 = require("shiki/core");
|
|
2594
2236
|
var import_oniguruma = require("shiki/engine/oniguruma");
|
|
2595
2237
|
|
|
2596
2238
|
// src/lib/shiki-theme.ts
|
|
2597
|
-
var
|
|
2239
|
+
var import_core = require("shiki/core");
|
|
2240
|
+
var bergetShikiTheme = (0, import_core.createCssVariablesTheme)({
|
|
2598
2241
|
name: "berget",
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
"editor.foreground": "#e7e0d9"
|
|
2603
|
-
},
|
|
2604
|
-
settings: [
|
|
2605
|
-
{
|
|
2606
|
-
settings: {
|
|
2607
|
-
foreground: "#e7e0d9"
|
|
2608
|
-
// sandstone-100
|
|
2609
|
-
}
|
|
2610
|
-
},
|
|
2611
|
-
{
|
|
2612
|
-
scope: ["comment", "punctuation.definition.comment"],
|
|
2613
|
-
settings: {
|
|
2614
|
-
foreground: "#b4b0ad",
|
|
2615
|
-
fontStyle: "italic"
|
|
2616
|
-
}
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
scope: ["keyword", "keyword.control", "keyword.operator.new", "storage", "storage.type"],
|
|
2620
|
-
settings: {
|
|
2621
|
-
foreground: "#57a57f"
|
|
2622
|
-
// moss-400
|
|
2623
|
-
}
|
|
2624
|
-
},
|
|
2625
|
-
{
|
|
2626
|
-
scope: ["string", "string.quoted", "string.template"],
|
|
2627
|
-
settings: {
|
|
2628
|
-
foreground: "#86c0a2"
|
|
2629
|
-
// moss-300
|
|
2630
|
-
}
|
|
2631
|
-
},
|
|
2632
|
-
{
|
|
2633
|
-
scope: ["entity.name.function", "support.function", "meta.function-call"],
|
|
2634
|
-
settings: {
|
|
2635
|
-
foreground: "#5b9ac1"
|
|
2636
|
-
// fjord-400
|
|
2637
|
-
}
|
|
2638
|
-
},
|
|
2639
|
-
{
|
|
2640
|
-
scope: ["entity.name.type", "entity.name.class", "support.type", "support.class"],
|
|
2641
|
-
settings: {
|
|
2642
|
-
foreground: "#e3a500"
|
|
2643
|
-
// chanterelle-300
|
|
2644
|
-
}
|
|
2645
|
-
},
|
|
2646
|
-
{
|
|
2647
|
-
scope: ["constant.numeric", "constant.language"],
|
|
2648
|
-
settings: {
|
|
2649
|
-
foreground: "#86c0a2"
|
|
2650
|
-
// moss-300
|
|
2651
|
-
}
|
|
2652
|
-
},
|
|
2653
|
-
{
|
|
2654
|
-
scope: ["variable", "variable.other"],
|
|
2655
|
-
settings: {
|
|
2656
|
-
foreground: "#e7e0d9"
|
|
2657
|
-
// sandstone-100
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
scope: ["variable.parameter"],
|
|
2662
|
-
settings: {
|
|
2663
|
-
foreground: "#e7e0d9e6"
|
|
2664
|
-
}
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
scope: ["punctuation", "keyword.operator", "keyword.operator.assignment"],
|
|
2668
|
-
settings: {
|
|
2669
|
-
foreground: "#e7e0d9b3"
|
|
2670
|
-
}
|
|
2671
|
-
},
|
|
2672
|
-
{
|
|
2673
|
-
scope: ["entity.name.tag", "support.type.property-name"],
|
|
2674
|
-
settings: {
|
|
2675
|
-
foreground: "#57a57f"
|
|
2676
|
-
// moss-400 (for YAML keys, HTML tags)
|
|
2677
|
-
}
|
|
2678
|
-
},
|
|
2679
|
-
{
|
|
2680
|
-
scope: ["meta.object-literal.key"],
|
|
2681
|
-
settings: {
|
|
2682
|
-
foreground: "#5b9ac1"
|
|
2683
|
-
// fjord-400
|
|
2684
|
-
}
|
|
2685
|
-
}
|
|
2686
|
-
]
|
|
2687
|
-
};
|
|
2242
|
+
variablePrefix: "--berget-shiki-",
|
|
2243
|
+
fontStyle: true
|
|
2244
|
+
});
|
|
2688
2245
|
|
|
2689
2246
|
// src/lib/shiki.ts
|
|
2690
2247
|
var defaultLanguages = [
|
|
@@ -2703,7 +2260,7 @@ var defaultLanguages = [
|
|
|
2703
2260
|
var highlighterPromise = null;
|
|
2704
2261
|
function getHighlighter() {
|
|
2705
2262
|
if (!highlighterPromise) {
|
|
2706
|
-
highlighterPromise = (0,
|
|
2263
|
+
highlighterPromise = (0, import_core2.createHighlighterCore)({
|
|
2707
2264
|
themes: [bergetShikiTheme],
|
|
2708
2265
|
langs: defaultLanguages,
|
|
2709
2266
|
engine: (0, import_oniguruma.createOnigurumaEngine)(import("shiki/wasm"))
|
|
@@ -2713,7 +2270,7 @@ function getHighlighter() {
|
|
|
2713
2270
|
}
|
|
2714
2271
|
|
|
2715
2272
|
// src/components/code-block/CodeBlock.tsx
|
|
2716
|
-
var
|
|
2273
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2717
2274
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
2718
2275
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
2719
2276
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -2729,16 +2286,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2729
2286
|
setCopied(true);
|
|
2730
2287
|
setTimeout(() => setCopied(false), 2e3);
|
|
2731
2288
|
}, [code]);
|
|
2732
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
2289
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2733
2290
|
"button",
|
|
2734
2291
|
{
|
|
2735
2292
|
onClick: handleCopy,
|
|
2736
2293
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
2737
2294
|
"aria-label": "Copy code",
|
|
2738
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
2295
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react8.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react8.Copy, { className: "w-3.5 h-3.5" })
|
|
2739
2296
|
}
|
|
2740
2297
|
);
|
|
2741
|
-
return /* @__PURE__ */ (0,
|
|
2298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
2742
2299
|
"div",
|
|
2743
2300
|
{
|
|
2744
2301
|
className: cn(
|
|
@@ -2746,19 +2303,72 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2746
2303
|
className
|
|
2747
2304
|
),
|
|
2748
2305
|
children: [
|
|
2749
|
-
title && /* @__PURE__ */ (0,
|
|
2750
|
-
/* @__PURE__ */ (0,
|
|
2751
|
-
html ? /* @__PURE__ */ (0,
|
|
2306
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
2307
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
2308
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2752
2309
|
"div",
|
|
2753
2310
|
{
|
|
2754
2311
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
2755
2312
|
dangerouslySetInnerHTML: { __html: html }
|
|
2756
2313
|
}
|
|
2757
|
-
) : /* @__PURE__ */ (0,
|
|
2314
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { children: code }) })
|
|
2758
2315
|
]
|
|
2759
2316
|
}
|
|
2760
2317
|
);
|
|
2761
2318
|
}
|
|
2319
|
+
|
|
2320
|
+
// src/components/window-frame/WindowFrame.tsx
|
|
2321
|
+
var React32 = __toESM(require("react"), 1);
|
|
2322
|
+
var import_react3 = require("react");
|
|
2323
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2324
|
+
var WindowFrame = React32.forwardRef(
|
|
2325
|
+
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
2326
|
+
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
2327
|
+
const currentTab = activeTab ?? internalActive;
|
|
2328
|
+
const handleTabChange = (id) => {
|
|
2329
|
+
if (onTabChange) {
|
|
2330
|
+
onTabChange(id);
|
|
2331
|
+
} else {
|
|
2332
|
+
setInternalActive(id);
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2336
|
+
"div",
|
|
2337
|
+
{
|
|
2338
|
+
ref,
|
|
2339
|
+
className: cn(
|
|
2340
|
+
"rounded-berget-sm overflow-hidden shadow-berget-md border border-berget-brand-granite-700 bg-berget-brand-granite-800",
|
|
2341
|
+
className
|
|
2342
|
+
),
|
|
2343
|
+
...props,
|
|
2344
|
+
children: [
|
|
2345
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
2346
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
2347
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
2350
|
+
] }),
|
|
2351
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2352
|
+
"button",
|
|
2353
|
+
{
|
|
2354
|
+
type: "button",
|
|
2355
|
+
onClick: () => handleTabChange(tab.id),
|
|
2356
|
+
className: cn(
|
|
2357
|
+
"px-3 py-1 text-sm transition-colors cursor-pointer",
|
|
2358
|
+
currentTab === tab.id ? "rounded-lg bg-white/10 text-berget-foreground font-medium" : "rounded text-berget-muted-foreground hover:text-berget-foreground font-medium"
|
|
2359
|
+
),
|
|
2360
|
+
children: tab.label
|
|
2361
|
+
},
|
|
2362
|
+
tab.id
|
|
2363
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
2364
|
+
] }),
|
|
2365
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children })
|
|
2366
|
+
]
|
|
2367
|
+
}
|
|
2368
|
+
);
|
|
2369
|
+
}
|
|
2370
|
+
);
|
|
2371
|
+
WindowFrame.displayName = "WindowFrame";
|
|
2762
2372
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2763
2373
|
0 && (module.exports = {
|
|
2764
2374
|
Alert,
|
|
@@ -2766,8 +2376,6 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2766
2376
|
AlertTitle,
|
|
2767
2377
|
Badge,
|
|
2768
2378
|
BergetLogo,
|
|
2769
|
-
BergetLogotype,
|
|
2770
|
-
BergetSymbol,
|
|
2771
2379
|
Box,
|
|
2772
2380
|
Button,
|
|
2773
2381
|
Card,
|
|
@@ -2779,8 +2387,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2779
2387
|
Checkbox,
|
|
2780
2388
|
CodeBlock,
|
|
2781
2389
|
Container,
|
|
2782
|
-
|
|
2783
|
-
|
|
2390
|
+
Dialog,
|
|
2391
|
+
DialogClose,
|
|
2392
|
+
DialogContent,
|
|
2393
|
+
DialogDescription,
|
|
2394
|
+
DialogFooter,
|
|
2395
|
+
DialogHeader,
|
|
2396
|
+
DialogOverlay,
|
|
2397
|
+
DialogPortal,
|
|
2398
|
+
DialogTitle,
|
|
2399
|
+
DialogTrigger,
|
|
2784
2400
|
FeatureList,
|
|
2785
2401
|
Field,
|
|
2786
2402
|
FieldContent,
|
|
@@ -2793,7 +2409,6 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2793
2409
|
FieldSet,
|
|
2794
2410
|
FieldTitle,
|
|
2795
2411
|
Grid,
|
|
2796
|
-
Header,
|
|
2797
2412
|
HeroBlock,
|
|
2798
2413
|
Icon,
|
|
2799
2414
|
Input,
|
|
@@ -2803,14 +2418,13 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2803
2418
|
List,
|
|
2804
2419
|
ListHeader,
|
|
2805
2420
|
ListItem,
|
|
2806
|
-
Section,
|
|
2807
|
-
SectionHeader,
|
|
2808
2421
|
Select,
|
|
2809
2422
|
Switch,
|
|
2810
2423
|
TextArea,
|
|
2811
2424
|
ThemeProvider,
|
|
2812
2425
|
ThemeToggle,
|
|
2813
2426
|
Typography,
|
|
2427
|
+
WindowFrame,
|
|
2814
2428
|
alertVariants,
|
|
2815
2429
|
badgeVariants,
|
|
2816
2430
|
boxVariants,
|
|
@@ -2820,7 +2434,6 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2820
2434
|
containerVariants,
|
|
2821
2435
|
gridVariants,
|
|
2822
2436
|
linkVariants,
|
|
2823
|
-
sectionVariants,
|
|
2824
2437
|
selectVariants,
|
|
2825
2438
|
switchRootVariants,
|
|
2826
2439
|
switchThumbVariants,
|