@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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getHighlighter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3LBFYXI6.js";
|
|
4
4
|
|
|
5
5
|
// src/components/theme-provider/ThemeProvider.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -196,9 +196,6 @@ var ThemeToggle = React2.forwardRef(
|
|
|
196
196
|
);
|
|
197
197
|
ThemeToggle.displayName = "ThemeToggle";
|
|
198
198
|
|
|
199
|
-
// src/components/button/Button.tsx
|
|
200
|
-
import * as React4 from "react";
|
|
201
|
-
|
|
202
199
|
// src/primitives/button.tsx
|
|
203
200
|
import * as React3 from "react";
|
|
204
201
|
import { cva } from "class-variance-authority";
|
|
@@ -242,8 +239,7 @@ var Button = React3.forwardRef(
|
|
|
242
239
|
Button.displayName = "Button";
|
|
243
240
|
|
|
244
241
|
// src/components/button/Button.tsx
|
|
245
|
-
import {
|
|
246
|
-
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
242
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
247
243
|
function brandVariantClasses(variant) {
|
|
248
244
|
switch (variant) {
|
|
249
245
|
case "primary":
|
|
@@ -270,65 +266,34 @@ function primitiveVariant(variant) {
|
|
|
270
266
|
return variant;
|
|
271
267
|
}
|
|
272
268
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
Button,
|
|
299
|
-
{
|
|
300
|
-
className: baseClass,
|
|
301
|
-
ref,
|
|
302
|
-
asChild: true,
|
|
303
|
-
type,
|
|
304
|
-
"aria-disabled": isLoading || void 0,
|
|
305
|
-
"aria-busy": isLoading || void 0,
|
|
306
|
-
...props,
|
|
307
|
-
children
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
|
-
return /* @__PURE__ */ jsx4(
|
|
312
|
-
Button,
|
|
313
|
-
{
|
|
314
|
-
className: baseClass,
|
|
315
|
-
ref,
|
|
316
|
-
type,
|
|
317
|
-
"aria-disabled": isLoading || void 0,
|
|
318
|
-
"aria-busy": isLoading || void 0,
|
|
319
|
-
...props,
|
|
320
|
-
children: /* @__PURE__ */ jsx4("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children: isLoading ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
321
|
-
/* @__PURE__ */ jsx4(Loader2, { className: "animate-spin", size: 16, "aria-hidden": "true" }),
|
|
322
|
-
!isIcon && children
|
|
323
|
-
] }) : children })
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
Button2.displayName = "Button";
|
|
269
|
+
function Button2({
|
|
270
|
+
className,
|
|
271
|
+
variant = "default",
|
|
272
|
+
size,
|
|
273
|
+
asChild = false,
|
|
274
|
+
width = "default",
|
|
275
|
+
type = "button",
|
|
276
|
+
ref,
|
|
277
|
+
children,
|
|
278
|
+
...props
|
|
279
|
+
}) {
|
|
280
|
+
const isIcon = typeof size === "string" && size.startsWith("icon");
|
|
281
|
+
const isLink = variant === "link";
|
|
282
|
+
const baseClass = cn(
|
|
283
|
+
!isLink && buttonVariants({ variant: primitiveVariant(variant), size }),
|
|
284
|
+
// Berget brand overrides
|
|
285
|
+
!isLink && "rounded-full",
|
|
286
|
+
brandVariantClasses(variant),
|
|
287
|
+
!isLink && width === "full" && "w-full",
|
|
288
|
+
isIcon && "rounded-full shadow-[0px_1px_3px_rgba(0,0,0,0.1),0px_1px_2px_-1px_rgba(0,0,0,0.1)]",
|
|
289
|
+
className
|
|
290
|
+
);
|
|
291
|
+
const content = /* @__PURE__ */ jsx4("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children });
|
|
292
|
+
return /* @__PURE__ */ jsx4(Button, { className: baseClass, ref, asChild, type, ...props, children: asChild ? children : content });
|
|
293
|
+
}
|
|
329
294
|
|
|
330
295
|
// src/components/typography/Typography.tsx
|
|
331
|
-
import * as
|
|
296
|
+
import * as React4 from "react";
|
|
332
297
|
import { cva as cva2 } from "class-variance-authority";
|
|
333
298
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
334
299
|
var typographyVariants = cva2("", {
|
|
@@ -375,7 +340,7 @@ var defaultElementMap = {
|
|
|
375
340
|
mono: "p",
|
|
376
341
|
code: "span"
|
|
377
342
|
};
|
|
378
|
-
var Typography =
|
|
343
|
+
var Typography = React4.forwardRef(
|
|
379
344
|
({ className, variant = "body", color = "default", as, children, ...props }, ref) => {
|
|
380
345
|
const Component = as ?? defaultElementMap[variant ?? "body"] ?? "p";
|
|
381
346
|
return /* @__PURE__ */ jsx5(
|
|
@@ -392,13 +357,13 @@ var Typography = React5.forwardRef(
|
|
|
392
357
|
Typography.displayName = "Typography";
|
|
393
358
|
|
|
394
359
|
// src/components/card/Card.tsx
|
|
395
|
-
import * as
|
|
360
|
+
import * as React6 from "react";
|
|
396
361
|
import { cva as cva3 } from "class-variance-authority";
|
|
397
362
|
|
|
398
363
|
// src/primitives/card.tsx
|
|
399
|
-
import * as
|
|
364
|
+
import * as React5 from "react";
|
|
400
365
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
401
|
-
var Card =
|
|
366
|
+
var Card = React5.forwardRef(
|
|
402
367
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
403
368
|
"div",
|
|
404
369
|
{
|
|
@@ -409,23 +374,23 @@ var Card = React6.forwardRef(
|
|
|
409
374
|
)
|
|
410
375
|
);
|
|
411
376
|
Card.displayName = "Card";
|
|
412
|
-
var CardHeader =
|
|
377
|
+
var CardHeader = React5.forwardRef(
|
|
413
378
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
414
379
|
);
|
|
415
380
|
CardHeader.displayName = "CardHeader";
|
|
416
|
-
var CardTitle =
|
|
381
|
+
var CardTitle = React5.forwardRef(
|
|
417
382
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6("h2", { ref, className: cn("text-2xl leading-none tracking-tight", className), ...props })
|
|
418
383
|
);
|
|
419
384
|
CardTitle.displayName = "CardTitle";
|
|
420
|
-
var CardDescription =
|
|
385
|
+
var CardDescription = React5.forwardRef(
|
|
421
386
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
422
387
|
);
|
|
423
388
|
CardDescription.displayName = "CardDescription";
|
|
424
|
-
var CardContent =
|
|
389
|
+
var CardContent = React5.forwardRef(
|
|
425
390
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
426
391
|
);
|
|
427
392
|
CardContent.displayName = "CardContent";
|
|
428
|
-
var CardFooter =
|
|
393
|
+
var CardFooter = React5.forwardRef(
|
|
429
394
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx6("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
430
395
|
);
|
|
431
396
|
CardFooter.displayName = "CardFooter";
|
|
@@ -450,7 +415,7 @@ var cardVariants = cva3("rounded-berget-sm", {
|
|
|
450
415
|
padding: "md"
|
|
451
416
|
}
|
|
452
417
|
});
|
|
453
|
-
var Card2 =
|
|
418
|
+
var Card2 = React6.forwardRef(
|
|
454
419
|
({ className, variant, padding, children, ...props }, ref) => {
|
|
455
420
|
return /* @__PURE__ */ jsx7(
|
|
456
421
|
Card,
|
|
@@ -466,9 +431,9 @@ var Card2 = React7.forwardRef(
|
|
|
466
431
|
Card2.displayName = "Card";
|
|
467
432
|
|
|
468
433
|
// src/components/badge/Badge.tsx
|
|
469
|
-
import * as
|
|
434
|
+
import * as React7 from "react";
|
|
470
435
|
import { cva as cva4 } from "class-variance-authority";
|
|
471
|
-
import { jsx as jsx8, jsxs as
|
|
436
|
+
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
472
437
|
var badgeVariants = cva4(
|
|
473
438
|
"inline-flex items-center whitespace-nowrap rounded-full transition-colors focus:outline-none focus:ring-1 focus:ring-ring focus:ring-offset-2",
|
|
474
439
|
{
|
|
@@ -501,9 +466,9 @@ var badgeVariants = cva4(
|
|
|
501
466
|
}
|
|
502
467
|
}
|
|
503
468
|
);
|
|
504
|
-
var Badge =
|
|
469
|
+
var Badge = React7.forwardRef(
|
|
505
470
|
({ className, variant, status, size, icon, iconGap = 2, children, ...props }, ref) => {
|
|
506
|
-
return /* @__PURE__ */
|
|
471
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn(badgeVariants({ variant, status, size }), className), ref, ...props, children: [
|
|
507
472
|
icon && /* @__PURE__ */ jsx8("div", { style: { marginRight: children ? `${iconGap * 0.25}rem` : "0" }, children: icon }),
|
|
508
473
|
children
|
|
509
474
|
] });
|
|
@@ -512,11 +477,11 @@ var Badge = React8.forwardRef(
|
|
|
512
477
|
Badge.displayName = "Badge";
|
|
513
478
|
|
|
514
479
|
// src/components/alert/Alert.tsx
|
|
515
|
-
import * as
|
|
480
|
+
import * as React9 from "react";
|
|
516
481
|
import { cva as cva6 } from "class-variance-authority";
|
|
517
482
|
|
|
518
483
|
// src/primitives/alert.tsx
|
|
519
|
-
import * as
|
|
484
|
+
import * as React8 from "react";
|
|
520
485
|
import { cva as cva5 } from "class-variance-authority";
|
|
521
486
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
522
487
|
var alertVariants = cva5(
|
|
@@ -533,13 +498,13 @@ var alertVariants = cva5(
|
|
|
533
498
|
}
|
|
534
499
|
}
|
|
535
500
|
);
|
|
536
|
-
var Alert =
|
|
501
|
+
var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
537
502
|
Alert.displayName = "Alert";
|
|
538
|
-
var AlertTitle =
|
|
503
|
+
var AlertTitle = React8.forwardRef(
|
|
539
504
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("h5", { ref, className: cn("mb-1 leading-none tracking-tight", className), ...props })
|
|
540
505
|
);
|
|
541
506
|
AlertTitle.displayName = "AlertTitle";
|
|
542
|
-
var AlertDescription =
|
|
507
|
+
var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props }));
|
|
543
508
|
AlertDescription.displayName = "AlertDescription";
|
|
544
509
|
|
|
545
510
|
// src/components/alert/Alert.tsx
|
|
@@ -558,20 +523,78 @@ var alertVariants2 = cva6("", {
|
|
|
558
523
|
variant: "default"
|
|
559
524
|
}
|
|
560
525
|
});
|
|
561
|
-
var Alert2 =
|
|
526
|
+
var Alert2 = React9.forwardRef(
|
|
562
527
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx10(Alert, { ref, className: cn(alertVariants2({ variant }), className), ...props })
|
|
563
528
|
);
|
|
564
529
|
Alert2.displayName = "Alert";
|
|
565
530
|
|
|
531
|
+
// src/components/dialog/Dialog.tsx
|
|
532
|
+
import * as React10 from "react";
|
|
533
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
534
|
+
import { X } from "lucide-react";
|
|
535
|
+
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
536
|
+
var Dialog = DialogPrimitive.Root;
|
|
537
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
538
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
539
|
+
var DialogClose = DialogPrimitive.Close;
|
|
540
|
+
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
541
|
+
DialogPrimitive.Overlay,
|
|
542
|
+
{
|
|
543
|
+
ref,
|
|
544
|
+
className: cn(
|
|
545
|
+
"fixed inset-0 z-50 bg-berget-dialog-overlay-bg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
546
|
+
className
|
|
547
|
+
),
|
|
548
|
+
...props
|
|
549
|
+
}
|
|
550
|
+
));
|
|
551
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
552
|
+
var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
|
|
553
|
+
/* @__PURE__ */ jsx11(DialogOverlay, {}),
|
|
554
|
+
/* @__PURE__ */ jsxs3(
|
|
555
|
+
DialogPrimitive.Content,
|
|
556
|
+
{
|
|
557
|
+
ref,
|
|
558
|
+
className: cn(
|
|
559
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-berget-dialog-bg border-berget-dialog-border rounded-berget-sm p-6 shadow-berget-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
560
|
+
className
|
|
561
|
+
),
|
|
562
|
+
...props,
|
|
563
|
+
children: [
|
|
564
|
+
children,
|
|
565
|
+
/* @__PURE__ */ jsxs3(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-berget-muted data-[state=open]:text-berget-muted-foreground", children: [
|
|
566
|
+
/* @__PURE__ */ jsx11(X, { className: "size-4" }),
|
|
567
|
+
/* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
|
|
568
|
+
] })
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
)
|
|
572
|
+
] }));
|
|
573
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
574
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx11("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
575
|
+
DialogHeader.displayName = "DialogHeader";
|
|
576
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx11(
|
|
577
|
+
"div",
|
|
578
|
+
{
|
|
579
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
580
|
+
...props
|
|
581
|
+
}
|
|
582
|
+
);
|
|
583
|
+
DialogFooter.displayName = "DialogFooter";
|
|
584
|
+
var DialogTitle = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "h5", color: "default", as: "h2", className, children }) }));
|
|
585
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
586
|
+
var DialogDescription = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx11(Typography, { variant: "small", color: "muted", className, children }) }));
|
|
587
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
588
|
+
|
|
566
589
|
// src/components/input/Input.tsx
|
|
567
590
|
import * as React12 from "react";
|
|
568
591
|
|
|
569
592
|
// src/primitives/input.tsx
|
|
570
593
|
import * as React11 from "react";
|
|
571
|
-
import { jsx as
|
|
594
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
572
595
|
var Input = React11.forwardRef(
|
|
573
596
|
({ className, type, ...props }, ref) => {
|
|
574
|
-
return /* @__PURE__ */
|
|
597
|
+
return /* @__PURE__ */ jsx12(
|
|
575
598
|
"input",
|
|
576
599
|
{
|
|
577
600
|
type,
|
|
@@ -588,14 +611,14 @@ var Input = React11.forwardRef(
|
|
|
588
611
|
Input.displayName = "Input";
|
|
589
612
|
|
|
590
613
|
// src/components/input/Input.tsx
|
|
591
|
-
import { jsx as
|
|
614
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
592
615
|
var Input2 = React12.forwardRef(
|
|
593
616
|
({ className, icon, actionButton, label, description, error, id, disabled, ...props }, ref) => {
|
|
594
617
|
const generatedId = React12.useId();
|
|
595
618
|
const inputId = id || generatedId;
|
|
596
619
|
const errorId = `${inputId}-error`;
|
|
597
620
|
const descriptionId = `${inputId}-description`;
|
|
598
|
-
const inputElement = /* @__PURE__ */
|
|
621
|
+
const inputElement = /* @__PURE__ */ jsx13(
|
|
599
622
|
Input,
|
|
600
623
|
{
|
|
601
624
|
ref,
|
|
@@ -616,7 +639,7 @@ var Input2 = React12.forwardRef(
|
|
|
616
639
|
);
|
|
617
640
|
if (!icon && !actionButton) {
|
|
618
641
|
return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2", children: [
|
|
619
|
-
label && /* @__PURE__ */
|
|
642
|
+
label && /* @__PURE__ */ jsx13(
|
|
620
643
|
"label",
|
|
621
644
|
{
|
|
622
645
|
htmlFor: inputId,
|
|
@@ -630,8 +653,8 @@ var Input2 = React12.forwardRef(
|
|
|
630
653
|
),
|
|
631
654
|
inputElement,
|
|
632
655
|
(description || error) && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
|
|
633
|
-
description && /* @__PURE__ */
|
|
634
|
-
error && /* @__PURE__ */
|
|
656
|
+
description && /* @__PURE__ */ jsx13(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
657
|
+
error && /* @__PURE__ */ jsx13(
|
|
635
658
|
Typography,
|
|
636
659
|
{
|
|
637
660
|
variant: "xs",
|
|
@@ -644,7 +667,7 @@ var Input2 = React12.forwardRef(
|
|
|
644
667
|
] });
|
|
645
668
|
}
|
|
646
669
|
return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2", children: [
|
|
647
|
-
label && /* @__PURE__ */
|
|
670
|
+
label && /* @__PURE__ */ jsx13(
|
|
648
671
|
"label",
|
|
649
672
|
{
|
|
650
673
|
htmlFor: inputId,
|
|
@@ -657,13 +680,13 @@ var Input2 = React12.forwardRef(
|
|
|
657
680
|
}
|
|
658
681
|
),
|
|
659
682
|
/* @__PURE__ */ jsxs4("div", { className: "relative w-full", children: [
|
|
660
|
-
icon && /* @__PURE__ */
|
|
683
|
+
icon && /* @__PURE__ */ jsx13("div", { className: "absolute left-3 top-1/2 -translate-y-1/2", children: icon }),
|
|
661
684
|
inputElement,
|
|
662
|
-
actionButton && /* @__PURE__ */
|
|
685
|
+
actionButton && /* @__PURE__ */ jsx13("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
663
686
|
] }),
|
|
664
687
|
(description || error) && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
|
|
665
|
-
description && /* @__PURE__ */
|
|
666
|
-
error && /* @__PURE__ */
|
|
688
|
+
description && /* @__PURE__ */ jsx13(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
689
|
+
error && /* @__PURE__ */ jsx13(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
667
690
|
] })
|
|
668
691
|
] });
|
|
669
692
|
}
|
|
@@ -680,8 +703,8 @@ import { cva as cva7 } from "class-variance-authority";
|
|
|
680
703
|
import * as React13 from "react";
|
|
681
704
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
682
705
|
import { Check } from "lucide-react";
|
|
683
|
-
import { jsx as
|
|
684
|
-
var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
706
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
707
|
+
var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
685
708
|
CheckboxPrimitive.Root,
|
|
686
709
|
{
|
|
687
710
|
ref,
|
|
@@ -690,23 +713,23 @@ var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
690
713
|
className
|
|
691
714
|
),
|
|
692
715
|
...props,
|
|
693
|
-
children: children ?? /* @__PURE__ */
|
|
716
|
+
children: children ?? /* @__PURE__ */ jsx14(CheckboxPrimitive.Indicator, { className: cn("grid place-content-center"), children: /* @__PURE__ */ jsx14(Check, { className: "h-4 w-4" }) })
|
|
694
717
|
}
|
|
695
718
|
));
|
|
696
719
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
697
|
-
var CheckboxIndicator = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
720
|
+
var CheckboxIndicator = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
698
721
|
CheckboxPrimitive.Indicator,
|
|
699
722
|
{
|
|
700
723
|
ref,
|
|
701
724
|
className: cn("grid place-content-center", className),
|
|
702
725
|
...props,
|
|
703
|
-
children: children ?? /* @__PURE__ */
|
|
726
|
+
children: children ?? /* @__PURE__ */ jsx14(Check, { className: "h-4 w-4" })
|
|
704
727
|
}
|
|
705
728
|
));
|
|
706
729
|
CheckboxIndicator.displayName = CheckboxPrimitive.Indicator.displayName;
|
|
707
730
|
|
|
708
731
|
// src/components/checkbox/Checkbox.tsx
|
|
709
|
-
import { jsx as
|
|
732
|
+
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
710
733
|
var checkboxVariants = cva7(
|
|
711
734
|
"inline-flex items-center justify-center rounded-md transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
712
735
|
{
|
|
@@ -734,7 +757,7 @@ var Checkbox2 = React14.forwardRef(
|
|
|
734
757
|
const checkboxId = id || generatedId;
|
|
735
758
|
const errorId = `${checkboxId}-error`;
|
|
736
759
|
return /* @__PURE__ */ jsxs5("div", { className: "flex items-start gap-3", children: [
|
|
737
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ jsx15("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx15(
|
|
738
761
|
Checkbox,
|
|
739
762
|
{
|
|
740
763
|
ref,
|
|
@@ -749,7 +772,7 @@ var Checkbox2 = React14.forwardRef(
|
|
|
749
772
|
className
|
|
750
773
|
),
|
|
751
774
|
...props,
|
|
752
|
-
children: /* @__PURE__ */
|
|
775
|
+
children: /* @__PURE__ */ jsx15(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx15(
|
|
753
776
|
Check2,
|
|
754
777
|
{
|
|
755
778
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -759,7 +782,7 @@ var Checkbox2 = React14.forwardRef(
|
|
|
759
782
|
}
|
|
760
783
|
) }),
|
|
761
784
|
(label || description || error) && /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-1", children: [
|
|
762
|
-
label && /* @__PURE__ */
|
|
785
|
+
label && /* @__PURE__ */ jsx15(
|
|
763
786
|
"label",
|
|
764
787
|
{
|
|
765
788
|
htmlFor: checkboxId,
|
|
@@ -771,8 +794,8 @@ var Checkbox2 = React14.forwardRef(
|
|
|
771
794
|
children: label
|
|
772
795
|
}
|
|
773
796
|
),
|
|
774
|
-
description && /* @__PURE__ */
|
|
775
|
-
error && /* @__PURE__ */
|
|
797
|
+
description && /* @__PURE__ */ jsx15(Typography, { variant: "xs", color: "muted", children: description }),
|
|
798
|
+
error && /* @__PURE__ */ jsx15(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
776
799
|
] })
|
|
777
800
|
] });
|
|
778
801
|
}
|
|
@@ -783,7 +806,7 @@ Checkbox2.displayName = "Checkbox";
|
|
|
783
806
|
import * as React15 from "react";
|
|
784
807
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
785
808
|
import { cva as cva8 } from "class-variance-authority";
|
|
786
|
-
import { jsx as
|
|
809
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
787
810
|
var switchRootVariants = cva8(
|
|
788
811
|
"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",
|
|
789
812
|
{
|
|
@@ -826,7 +849,7 @@ var Switch = React15.forwardRef(
|
|
|
826
849
|
const switchId = id || generatedId;
|
|
827
850
|
const errorId = `${switchId}-error`;
|
|
828
851
|
return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
|
|
829
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ jsx16(
|
|
830
853
|
SwitchPrimitives.Root,
|
|
831
854
|
{
|
|
832
855
|
ref,
|
|
@@ -840,11 +863,11 @@ var Switch = React15.forwardRef(
|
|
|
840
863
|
className
|
|
841
864
|
),
|
|
842
865
|
...props,
|
|
843
|
-
children: /* @__PURE__ */
|
|
866
|
+
children: /* @__PURE__ */ jsx16(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
844
867
|
}
|
|
845
868
|
),
|
|
846
869
|
(label || description || error) && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
|
|
847
|
-
label && /* @__PURE__ */
|
|
870
|
+
label && /* @__PURE__ */ jsx16(
|
|
848
871
|
"label",
|
|
849
872
|
{
|
|
850
873
|
htmlFor: switchId,
|
|
@@ -855,8 +878,8 @@ var Switch = React15.forwardRef(
|
|
|
855
878
|
children: label
|
|
856
879
|
}
|
|
857
880
|
),
|
|
858
|
-
description && /* @__PURE__ */
|
|
859
|
-
error && /* @__PURE__ */
|
|
881
|
+
description && /* @__PURE__ */ jsx16(Typography, { variant: "xs", color: "muted", children: description }),
|
|
882
|
+
error && /* @__PURE__ */ jsx16(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
860
883
|
] })
|
|
861
884
|
] });
|
|
862
885
|
}
|
|
@@ -871,7 +894,7 @@ import { cva as cva9 } from "class-variance-authority";
|
|
|
871
894
|
import * as React16 from "react";
|
|
872
895
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
873
896
|
import { Check as Check3, ChevronDown, ChevronUp } from "lucide-react";
|
|
874
|
-
import { jsx as
|
|
897
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
875
898
|
var Select = SelectPrimitive.Root;
|
|
876
899
|
var SelectValue = SelectPrimitive.Value;
|
|
877
900
|
var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
|
|
@@ -885,32 +908,32 @@ var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref)
|
|
|
885
908
|
...props,
|
|
886
909
|
children: [
|
|
887
910
|
children,
|
|
888
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx17(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
889
912
|
]
|
|
890
913
|
}
|
|
891
914
|
));
|
|
892
915
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
893
|
-
var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
916
|
+
var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
894
917
|
SelectPrimitive.ScrollUpButton,
|
|
895
918
|
{
|
|
896
919
|
ref,
|
|
897
920
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
898
921
|
...props,
|
|
899
|
-
children: /* @__PURE__ */
|
|
922
|
+
children: /* @__PURE__ */ jsx17(ChevronUp, { className: "h-4 w-4" })
|
|
900
923
|
}
|
|
901
924
|
));
|
|
902
925
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
903
|
-
var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
926
|
+
var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
904
927
|
SelectPrimitive.ScrollDownButton,
|
|
905
928
|
{
|
|
906
929
|
ref,
|
|
907
930
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
908
931
|
...props,
|
|
909
|
-
children: /* @__PURE__ */
|
|
932
|
+
children: /* @__PURE__ */ jsx17(ChevronDown, { className: "h-4 w-4" })
|
|
910
933
|
}
|
|
911
934
|
));
|
|
912
935
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
913
|
-
var SelectContent = React16.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */
|
|
936
|
+
var SelectContent = React16.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx17(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs7(
|
|
914
937
|
SelectPrimitive.Content,
|
|
915
938
|
{
|
|
916
939
|
ref,
|
|
@@ -922,8 +945,8 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
922
945
|
position,
|
|
923
946
|
...props,
|
|
924
947
|
children: [
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ jsx17(SelectScrollUpButton, {}),
|
|
949
|
+
/* @__PURE__ */ jsx17(
|
|
927
950
|
SelectPrimitive.Viewport,
|
|
928
951
|
{
|
|
929
952
|
className: cn(
|
|
@@ -933,12 +956,12 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
933
956
|
children
|
|
934
957
|
}
|
|
935
958
|
),
|
|
936
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ jsx17(SelectScrollDownButton, {})
|
|
937
960
|
]
|
|
938
961
|
}
|
|
939
962
|
) }));
|
|
940
963
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
941
|
-
var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
964
|
+
var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
942
965
|
SelectPrimitive.Label,
|
|
943
966
|
{
|
|
944
967
|
ref,
|
|
@@ -957,13 +980,13 @@ var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
957
980
|
),
|
|
958
981
|
...props,
|
|
959
982
|
children: [
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ jsx17("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(Check3, { className: "h-4 w-4" }) }) }),
|
|
984
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.ItemText, { children })
|
|
962
985
|
]
|
|
963
986
|
}
|
|
964
987
|
));
|
|
965
988
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
966
|
-
var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
989
|
+
var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
967
990
|
SelectPrimitive.Separator,
|
|
968
991
|
{
|
|
969
992
|
ref,
|
|
@@ -974,7 +997,7 @@ var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
974
997
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
975
998
|
|
|
976
999
|
// src/components/select/Select.tsx
|
|
977
|
-
import { jsx as
|
|
1000
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
978
1001
|
var selectVariants = cva9(
|
|
979
1002
|
"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",
|
|
980
1003
|
{
|
|
@@ -1020,7 +1043,7 @@ var Select2 = React17.forwardRef(
|
|
|
1020
1043
|
const errorId = `${selectId}-error`;
|
|
1021
1044
|
const descriptionId = `${selectId}-description`;
|
|
1022
1045
|
return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-2", children: [
|
|
1023
|
-
label && /* @__PURE__ */
|
|
1046
|
+
label && /* @__PURE__ */ jsx18(
|
|
1024
1047
|
"label",
|
|
1025
1048
|
{
|
|
1026
1049
|
htmlFor: selectId,
|
|
@@ -1042,7 +1065,7 @@ var Select2 = React17.forwardRef(
|
|
|
1042
1065
|
name,
|
|
1043
1066
|
required,
|
|
1044
1067
|
children: [
|
|
1045
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ jsx18(
|
|
1046
1069
|
SelectTrigger,
|
|
1047
1070
|
{
|
|
1048
1071
|
ref,
|
|
@@ -1054,15 +1077,15 @@ var Select2 = React17.forwardRef(
|
|
|
1054
1077
|
error && "border-berget-destructive-foreground/50 bg-berget-destructive",
|
|
1055
1078
|
className
|
|
1056
1079
|
),
|
|
1057
|
-
children: /* @__PURE__ */
|
|
1080
|
+
children: /* @__PURE__ */ jsx18(SelectValue, { placeholder })
|
|
1058
1081
|
}
|
|
1059
1082
|
),
|
|
1060
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ jsx18(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx18(SelectItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) })
|
|
1061
1084
|
]
|
|
1062
1085
|
}
|
|
1063
1086
|
),
|
|
1064
|
-
description && /* @__PURE__ */
|
|
1065
|
-
error && /* @__PURE__ */
|
|
1087
|
+
description && /* @__PURE__ */ jsx18(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1088
|
+
error && /* @__PURE__ */ jsx18(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
1066
1089
|
] });
|
|
1067
1090
|
}
|
|
1068
1091
|
);
|
|
@@ -1074,10 +1097,10 @@ import { cva as cva10 } from "class-variance-authority";
|
|
|
1074
1097
|
|
|
1075
1098
|
// src/primitives/textarea.tsx
|
|
1076
1099
|
import * as React18 from "react";
|
|
1077
|
-
import { jsx as
|
|
1100
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1078
1101
|
var Textarea = React18.forwardRef(
|
|
1079
1102
|
({ className, ...props }, ref) => {
|
|
1080
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsx19(
|
|
1081
1104
|
"textarea",
|
|
1082
1105
|
{
|
|
1083
1106
|
className: cn(
|
|
@@ -1093,7 +1116,7 @@ var Textarea = React18.forwardRef(
|
|
|
1093
1116
|
Textarea.displayName = "Textarea";
|
|
1094
1117
|
|
|
1095
1118
|
// src/components/text-area/TextArea.tsx
|
|
1096
|
-
import { jsx as
|
|
1119
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1097
1120
|
var textAreaVariants = cva10(
|
|
1098
1121
|
"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",
|
|
1099
1122
|
{
|
|
@@ -1142,7 +1165,7 @@ var TextArea = React19.forwardRef(
|
|
|
1142
1165
|
const descriptionId = `${textareaId}-description`;
|
|
1143
1166
|
const characterCount = typeof value === "string" ? value.length : 0;
|
|
1144
1167
|
return /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-2", children: [
|
|
1145
|
-
label && /* @__PURE__ */
|
|
1168
|
+
label && /* @__PURE__ */ jsx20(
|
|
1146
1169
|
"label",
|
|
1147
1170
|
{
|
|
1148
1171
|
htmlFor: textareaId,
|
|
@@ -1155,8 +1178,8 @@ var TextArea = React19.forwardRef(
|
|
|
1155
1178
|
}
|
|
1156
1179
|
),
|
|
1157
1180
|
/* @__PURE__ */ jsxs9("div", { className: "relative", children: [
|
|
1158
|
-
icon && /* @__PURE__ */
|
|
1159
|
-
/* @__PURE__ */
|
|
1181
|
+
icon && /* @__PURE__ */ jsx20("div", { className: "absolute left-2 top-1/2 -translate-y-1/2", children: icon }),
|
|
1182
|
+
/* @__PURE__ */ jsx20(
|
|
1160
1183
|
Textarea,
|
|
1161
1184
|
{
|
|
1162
1185
|
ref,
|
|
@@ -1181,11 +1204,11 @@ var TextArea = React19.forwardRef(
|
|
|
1181
1204
|
...props
|
|
1182
1205
|
}
|
|
1183
1206
|
),
|
|
1184
|
-
secondaryIcon && /* @__PURE__ */
|
|
1185
|
-
actionButton && /* @__PURE__ */
|
|
1207
|
+
secondaryIcon && /* @__PURE__ */ jsx20("div", { className: "absolute right-12 top-1/2 -translate-y-1/2", children: secondaryIcon }),
|
|
1208
|
+
actionButton && /* @__PURE__ */ jsx20("div", { className: "absolute right-2 top-1/2 -translate-y-1/2", children: actionButton })
|
|
1186
1209
|
] }),
|
|
1187
1210
|
(description || error || showCount && maxLength) && /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1188
|
-
description && /* @__PURE__ */
|
|
1211
|
+
description && /* @__PURE__ */ jsx20(Typography, { variant: "xs", color: "muted", id: descriptionId, children: description }),
|
|
1189
1212
|
(error || showCount && maxLength) && /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2 ml-auto", children: [
|
|
1190
1213
|
showCount && maxLength && /* @__PURE__ */ jsxs9(
|
|
1191
1214
|
Typography,
|
|
@@ -1201,7 +1224,7 @@ var TextArea = React19.forwardRef(
|
|
|
1201
1224
|
]
|
|
1202
1225
|
}
|
|
1203
1226
|
),
|
|
1204
|
-
error && /* @__PURE__ */
|
|
1227
|
+
error && /* @__PURE__ */ jsx20(
|
|
1205
1228
|
Typography,
|
|
1206
1229
|
{
|
|
1207
1230
|
variant: "xs",
|
|
@@ -1221,11 +1244,11 @@ TextArea.displayName = "TextArea";
|
|
|
1221
1244
|
import * as React20 from "react";
|
|
1222
1245
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
1223
1246
|
import { cva as cva11 } from "class-variance-authority";
|
|
1224
|
-
import { jsx as
|
|
1247
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1225
1248
|
var labelVariants = cva11(
|
|
1226
1249
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1227
1250
|
);
|
|
1228
|
-
var Label2 = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1251
|
+
var Label2 = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
1229
1252
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
1230
1253
|
|
|
1231
1254
|
// src/primitives/field.tsx
|
|
@@ -1235,8 +1258,8 @@ import { cva as cva12 } from "class-variance-authority";
|
|
|
1235
1258
|
// src/primitives/separator.tsx
|
|
1236
1259
|
import * as React21 from "react";
|
|
1237
1260
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1238
|
-
import { jsx as
|
|
1239
|
-
var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
1261
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1262
|
+
var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1240
1263
|
SeparatorPrimitive.Root,
|
|
1241
1264
|
{
|
|
1242
1265
|
ref,
|
|
@@ -1253,9 +1276,9 @@ var Separator2 = React21.forwardRef(({ className, orientation = "horizontal", de
|
|
|
1253
1276
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1254
1277
|
|
|
1255
1278
|
// src/primitives/field.tsx
|
|
1256
|
-
import { jsx as
|
|
1279
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1257
1280
|
function FieldSet({ className, ...props }) {
|
|
1258
|
-
return /* @__PURE__ */
|
|
1281
|
+
return /* @__PURE__ */ jsx23(
|
|
1259
1282
|
"fieldset",
|
|
1260
1283
|
{
|
|
1261
1284
|
"data-slot": "field-set",
|
|
@@ -1273,7 +1296,7 @@ function FieldLegend({
|
|
|
1273
1296
|
variant = "legend",
|
|
1274
1297
|
...props
|
|
1275
1298
|
}) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1299
|
+
return /* @__PURE__ */ jsx23(
|
|
1277
1300
|
"legend",
|
|
1278
1301
|
{
|
|
1279
1302
|
"data-slot": "field-legend",
|
|
@@ -1289,7 +1312,7 @@ function FieldLegend({
|
|
|
1289
1312
|
);
|
|
1290
1313
|
}
|
|
1291
1314
|
function FieldGroup({ className, ...props }) {
|
|
1292
|
-
return /* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ jsx23(
|
|
1293
1316
|
"div",
|
|
1294
1317
|
{
|
|
1295
1318
|
"data-slot": "field-group",
|
|
@@ -1329,7 +1352,7 @@ function Field({
|
|
|
1329
1352
|
orientation = "vertical",
|
|
1330
1353
|
...props
|
|
1331
1354
|
}) {
|
|
1332
|
-
return /* @__PURE__ */
|
|
1355
|
+
return /* @__PURE__ */ jsx23(
|
|
1333
1356
|
"div",
|
|
1334
1357
|
{
|
|
1335
1358
|
role: "group",
|
|
@@ -1341,7 +1364,7 @@ function Field({
|
|
|
1341
1364
|
);
|
|
1342
1365
|
}
|
|
1343
1366
|
function FieldContent({ className, ...props }) {
|
|
1344
|
-
return /* @__PURE__ */
|
|
1367
|
+
return /* @__PURE__ */ jsx23(
|
|
1345
1368
|
"div",
|
|
1346
1369
|
{
|
|
1347
1370
|
"data-slot": "field-content",
|
|
@@ -1351,7 +1374,7 @@ function FieldContent({ className, ...props }) {
|
|
|
1351
1374
|
);
|
|
1352
1375
|
}
|
|
1353
1376
|
function FieldLabel({ className, ...props }) {
|
|
1354
|
-
return /* @__PURE__ */
|
|
1377
|
+
return /* @__PURE__ */ jsx23(
|
|
1355
1378
|
Label2,
|
|
1356
1379
|
{
|
|
1357
1380
|
"data-slot": "field-label",
|
|
@@ -1366,7 +1389,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
1366
1389
|
);
|
|
1367
1390
|
}
|
|
1368
1391
|
function FieldTitle({ className, ...props }) {
|
|
1369
|
-
return /* @__PURE__ */
|
|
1392
|
+
return /* @__PURE__ */ jsx23(
|
|
1370
1393
|
"div",
|
|
1371
1394
|
{
|
|
1372
1395
|
"data-slot": "field-label",
|
|
@@ -1379,7 +1402,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
1379
1402
|
);
|
|
1380
1403
|
}
|
|
1381
1404
|
function FieldDescription({ className, ...props }) {
|
|
1382
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ jsx23(
|
|
1383
1406
|
"p",
|
|
1384
1407
|
{
|
|
1385
1408
|
"data-slot": "field-description",
|
|
@@ -1409,8 +1432,8 @@ function FieldSeparator({
|
|
|
1409
1432
|
),
|
|
1410
1433
|
...props,
|
|
1411
1434
|
children: [
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
children && /* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ jsx23(Separator2, { className: "absolute inset-0 top-1/2" }),
|
|
1436
|
+
children && /* @__PURE__ */ jsx23(
|
|
1414
1437
|
"span",
|
|
1415
1438
|
{
|
|
1416
1439
|
className: "bg-berget-background text-berget-muted-foreground relative mx-auto block w-fit px-2",
|
|
@@ -1438,12 +1461,12 @@ function FieldError({
|
|
|
1438
1461
|
if (errors?.length === 1 && errors[0]?.message) {
|
|
1439
1462
|
return errors[0].message;
|
|
1440
1463
|
}
|
|
1441
|
-
return /* @__PURE__ */
|
|
1464
|
+
return /* @__PURE__ */ jsx23("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsx23("li", { children: error.message }, index)) });
|
|
1442
1465
|
}, [children, errors]);
|
|
1443
1466
|
if (!content) {
|
|
1444
1467
|
return null;
|
|
1445
1468
|
}
|
|
1446
|
-
return /* @__PURE__ */
|
|
1469
|
+
return /* @__PURE__ */ jsx23(
|
|
1447
1470
|
"div",
|
|
1448
1471
|
{
|
|
1449
1472
|
role: "alert",
|
|
@@ -1461,7 +1484,7 @@ import { cva as cva13 } from "class-variance-authority";
|
|
|
1461
1484
|
|
|
1462
1485
|
// src/components/icon/Icon.tsx
|
|
1463
1486
|
import * as React22 from "react";
|
|
1464
|
-
import { jsx as
|
|
1487
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1465
1488
|
var iconStrokeMap = {
|
|
1466
1489
|
16: 1.4,
|
|
1467
1490
|
24: 1.6,
|
|
@@ -1479,7 +1502,7 @@ var Icon2 = React22.forwardRef(
|
|
|
1479
1502
|
const strokeWidth = iconStrokeMap[size];
|
|
1480
1503
|
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
1481
1504
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
1482
|
-
return /* @__PURE__ */
|
|
1505
|
+
return /* @__PURE__ */ jsx24(
|
|
1483
1506
|
IconComponent,
|
|
1484
1507
|
{
|
|
1485
1508
|
ref,
|
|
@@ -1495,7 +1518,7 @@ Icon2.displayName = "Icon";
|
|
|
1495
1518
|
|
|
1496
1519
|
// src/components/link/Link.tsx
|
|
1497
1520
|
import { ExternalLink } from "lucide-react";
|
|
1498
|
-
import { jsx as
|
|
1521
|
+
import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1499
1522
|
var linkVariants = cva13(
|
|
1500
1523
|
"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",
|
|
1501
1524
|
{
|
|
@@ -1549,8 +1572,8 @@ var Link = React23.forwardRef(
|
|
|
1549
1572
|
},
|
|
1550
1573
|
children: [
|
|
1551
1574
|
children,
|
|
1552
|
-
icon && /* @__PURE__ */
|
|
1553
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
1575
|
+
icon && /* @__PURE__ */ jsx25("span", { className: "inline-flex items-center", children: icon }),
|
|
1576
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx25("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx25(Icon2, { icon: ExternalLink, size: 16 }) })
|
|
1554
1577
|
]
|
|
1555
1578
|
}
|
|
1556
1579
|
);
|
|
@@ -1558,15 +1581,11 @@ var Link = React23.forwardRef(
|
|
|
1558
1581
|
);
|
|
1559
1582
|
Link.displayName = "Link";
|
|
1560
1583
|
|
|
1561
|
-
// src/components/section/Section.tsx
|
|
1562
|
-
import * as React25 from "react";
|
|
1563
|
-
import { cva as cva15 } from "class-variance-authority";
|
|
1564
|
-
|
|
1565
1584
|
// src/components/container/Container.tsx
|
|
1566
1585
|
import * as React24 from "react";
|
|
1567
1586
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1568
1587
|
import { cva as cva14 } from "class-variance-authority";
|
|
1569
|
-
import { jsx as
|
|
1588
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1570
1589
|
var containerVariants = cva14("w-full mx-auto", {
|
|
1571
1590
|
variants: {
|
|
1572
1591
|
size: {
|
|
@@ -1591,7 +1610,7 @@ var containerVariants = cva14("w-full mx-auto", {
|
|
|
1591
1610
|
var Container = React24.forwardRef(
|
|
1592
1611
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
1593
1612
|
const Component = asChild ? Slot2 : "div";
|
|
1594
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx26(
|
|
1595
1614
|
Component,
|
|
1596
1615
|
{
|
|
1597
1616
|
ref,
|
|
@@ -1604,86 +1623,12 @@ var Container = React24.forwardRef(
|
|
|
1604
1623
|
);
|
|
1605
1624
|
Container.displayName = "Container";
|
|
1606
1625
|
|
|
1607
|
-
// src/components/section/Section.tsx
|
|
1608
|
-
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1609
|
-
var sectionVariants = cva15("relative", {
|
|
1610
|
-
variants: {
|
|
1611
|
-
padding: {
|
|
1612
|
-
none: "",
|
|
1613
|
-
sm: "py-12",
|
|
1614
|
-
md: "py-16",
|
|
1615
|
-
lg: "py-24",
|
|
1616
|
-
xl: "py-32"
|
|
1617
|
-
},
|
|
1618
|
-
background: {
|
|
1619
|
-
transparent: "",
|
|
1620
|
-
muted: "bg-berget-section-muted-bg"
|
|
1621
|
-
}
|
|
1622
|
-
},
|
|
1623
|
-
defaultVariants: {
|
|
1624
|
-
padding: "lg",
|
|
1625
|
-
background: "transparent"
|
|
1626
|
-
}
|
|
1627
|
-
});
|
|
1628
|
-
var Section = React25.forwardRef(
|
|
1629
|
-
({ className, padding, background, children, ...props }, ref) => {
|
|
1630
|
-
return /* @__PURE__ */ jsx26(
|
|
1631
|
-
"section",
|
|
1632
|
-
{
|
|
1633
|
-
ref,
|
|
1634
|
-
className: cn(sectionVariants({ padding, background }), className),
|
|
1635
|
-
...props,
|
|
1636
|
-
children: /* @__PURE__ */ jsx26(Container, { children })
|
|
1637
|
-
}
|
|
1638
|
-
);
|
|
1639
|
-
}
|
|
1640
|
-
);
|
|
1641
|
-
Section.displayName = "Section";
|
|
1642
|
-
|
|
1643
|
-
// src/components/section-header/SectionHeader.tsx
|
|
1644
|
-
import * as React26 from "react";
|
|
1645
|
-
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1646
|
-
var SectionHeader = React26.forwardRef(
|
|
1647
|
-
({
|
|
1648
|
-
className,
|
|
1649
|
-
title,
|
|
1650
|
-
description,
|
|
1651
|
-
descriptionVariant = "large",
|
|
1652
|
-
tagline,
|
|
1653
|
-
action,
|
|
1654
|
-
headingLevel = "h2",
|
|
1655
|
-
id,
|
|
1656
|
-
...props
|
|
1657
|
-
}, ref) => {
|
|
1658
|
-
return /* @__PURE__ */ jsx27(
|
|
1659
|
-
"div",
|
|
1660
|
-
{
|
|
1661
|
-
id,
|
|
1662
|
-
ref,
|
|
1663
|
-
className: cn("w-full px-fluid-md py-fluid-xl text-center", className),
|
|
1664
|
-
...props,
|
|
1665
|
-
children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center gap-fluid-lg", children: [
|
|
1666
|
-
/* @__PURE__ */ jsxs12("div", { className: "max-w-3xl mx-auto flex flex-col items-center gap-fluid-lg", children: [
|
|
1667
|
-
tagline && /* @__PURE__ */ jsx27(Badge, { variant: "default", className: "text-sm", children: tagline }),
|
|
1668
|
-
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center gap-fluid-sm", children: [
|
|
1669
|
-
/* @__PURE__ */ jsx27(Typography, { variant: headingLevel, children: title }),
|
|
1670
|
-
description && /* @__PURE__ */ jsx27(Typography, { variant: descriptionVariant, color: "muted", children: description })
|
|
1671
|
-
] })
|
|
1672
|
-
] }),
|
|
1673
|
-
action && /* @__PURE__ */ jsx27("div", { className: "mt-4", children: action })
|
|
1674
|
-
] })
|
|
1675
|
-
}
|
|
1676
|
-
);
|
|
1677
|
-
}
|
|
1678
|
-
);
|
|
1679
|
-
SectionHeader.displayName = "SectionHeader";
|
|
1680
|
-
|
|
1681
1626
|
// src/components/grid/Grid.tsx
|
|
1682
|
-
import * as
|
|
1683
|
-
import { cva as
|
|
1627
|
+
import * as React25 from "react";
|
|
1628
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
1684
1629
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1685
|
-
import { jsx as
|
|
1686
|
-
var gridVariants =
|
|
1630
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1631
|
+
var gridVariants = cva15("grid", {
|
|
1687
1632
|
variants: {
|
|
1688
1633
|
align: {
|
|
1689
1634
|
start: "items-start",
|
|
@@ -1705,10 +1650,10 @@ var gridVariants = cva16("grid", {
|
|
|
1705
1650
|
justify: "start"
|
|
1706
1651
|
}
|
|
1707
1652
|
});
|
|
1708
|
-
var Grid =
|
|
1653
|
+
var Grid = React25.forwardRef(
|
|
1709
1654
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
1710
1655
|
const Component = asChild ? Slot3 : "div";
|
|
1711
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ jsx27(
|
|
1712
1657
|
Component,
|
|
1713
1658
|
{
|
|
1714
1659
|
ref,
|
|
@@ -1730,11 +1675,11 @@ var Grid = React27.forwardRef(
|
|
|
1730
1675
|
Grid.displayName = "Grid";
|
|
1731
1676
|
|
|
1732
1677
|
// src/components/box/Box.tsx
|
|
1733
|
-
import * as
|
|
1734
|
-
import { cva as
|
|
1678
|
+
import * as React26 from "react";
|
|
1679
|
+
import { cva as cva16 } from "class-variance-authority";
|
|
1735
1680
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
1736
|
-
import { jsx as
|
|
1737
|
-
var boxVariants =
|
|
1681
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1682
|
+
var boxVariants = cva16("flex", {
|
|
1738
1683
|
variants: {
|
|
1739
1684
|
direction: {
|
|
1740
1685
|
row: "flex-row",
|
|
@@ -1770,10 +1715,10 @@ var boxVariants = cva17("flex", {
|
|
|
1770
1715
|
wrap: "nowrap"
|
|
1771
1716
|
}
|
|
1772
1717
|
});
|
|
1773
|
-
var Box =
|
|
1718
|
+
var Box = React26.forwardRef(
|
|
1774
1719
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
1775
1720
|
const Component = asChild ? Slot4 : "div";
|
|
1776
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ jsx28(
|
|
1777
1722
|
Component,
|
|
1778
1723
|
{
|
|
1779
1724
|
ref,
|
|
@@ -1791,16 +1736,16 @@ var Box = React28.forwardRef(
|
|
|
1791
1736
|
Box.displayName = "Box";
|
|
1792
1737
|
|
|
1793
1738
|
// src/components/berget-logo/BergetLogo.tsx
|
|
1794
|
-
import * as
|
|
1795
|
-
import { jsx as
|
|
1796
|
-
var BergetLogo =
|
|
1739
|
+
import * as React27 from "react";
|
|
1740
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1741
|
+
var BergetLogo = React27.forwardRef(
|
|
1797
1742
|
({ variant = "logotype", color = "auto", size = 48, className, ...props }, ref) => {
|
|
1798
1743
|
const fillColor = color === "auto" ? "var(--berget-logo-light)" : color === "white" ? "var(--berget-logo-light)" : "var(--berget-logo-dark)";
|
|
1799
1744
|
if (variant === "symbol") {
|
|
1800
1745
|
const aspectRatio2 = 463 / 419;
|
|
1801
1746
|
const width2 = size * aspectRatio2;
|
|
1802
1747
|
const height2 = size;
|
|
1803
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ jsx29(
|
|
1804
1749
|
"svg",
|
|
1805
1750
|
{
|
|
1806
1751
|
ref,
|
|
@@ -1813,7 +1758,7 @@ var BergetLogo = React29.forwardRef(
|
|
|
1813
1758
|
"aria-label": "Berget symbol",
|
|
1814
1759
|
className: cn("inline-block", className),
|
|
1815
1760
|
...props,
|
|
1816
|
-
children: /* @__PURE__ */
|
|
1761
|
+
children: /* @__PURE__ */ jsx29(
|
|
1817
1762
|
"path",
|
|
1818
1763
|
{
|
|
1819
1764
|
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",
|
|
@@ -1826,7 +1771,7 @@ var BergetLogo = React29.forwardRef(
|
|
|
1826
1771
|
const aspectRatio = 793.63 / 204.37;
|
|
1827
1772
|
const width = size * aspectRatio;
|
|
1828
1773
|
const height = size;
|
|
1829
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ jsxs12(
|
|
1830
1775
|
"svg",
|
|
1831
1776
|
{
|
|
1832
1777
|
ref,
|
|
@@ -1840,59 +1785,59 @@ var BergetLogo = React29.forwardRef(
|
|
|
1840
1785
|
className: cn("inline-block", className),
|
|
1841
1786
|
...props,
|
|
1842
1787
|
children: [
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsxs12("g", { style: { fill: fillColor }, children: [
|
|
1789
|
+
/* @__PURE__ */ jsx29(
|
|
1845
1790
|
"path",
|
|
1846
1791
|
{
|
|
1847
1792
|
className: "berget-logotype-fill",
|
|
1848
1793
|
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"
|
|
1849
1794
|
}
|
|
1850
1795
|
),
|
|
1851
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ jsx29(
|
|
1852
1797
|
"path",
|
|
1853
1798
|
{
|
|
1854
1799
|
className: "berget-logotype-fill",
|
|
1855
1800
|
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"
|
|
1856
1801
|
}
|
|
1857
1802
|
),
|
|
1858
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx29(
|
|
1859
1804
|
"path",
|
|
1860
1805
|
{
|
|
1861
1806
|
className: "berget-logotype-fill",
|
|
1862
1807
|
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"
|
|
1863
1808
|
}
|
|
1864
1809
|
),
|
|
1865
|
-
/* @__PURE__ */
|
|
1810
|
+
/* @__PURE__ */ jsx29(
|
|
1866
1811
|
"path",
|
|
1867
1812
|
{
|
|
1868
1813
|
className: "berget-logotype-fill",
|
|
1869
1814
|
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"
|
|
1870
1815
|
}
|
|
1871
1816
|
),
|
|
1872
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ jsx29(
|
|
1873
1818
|
"path",
|
|
1874
1819
|
{
|
|
1875
1820
|
className: "berget-logotype-fill",
|
|
1876
1821
|
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"
|
|
1877
1822
|
}
|
|
1878
1823
|
),
|
|
1879
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ jsx29(
|
|
1880
1825
|
"path",
|
|
1881
1826
|
{
|
|
1882
1827
|
className: "berget-logotype-fill",
|
|
1883
1828
|
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"
|
|
1884
1829
|
}
|
|
1885
1830
|
),
|
|
1886
|
-
/* @__PURE__ */
|
|
1831
|
+
/* @__PURE__ */ jsx29(
|
|
1887
1832
|
"path",
|
|
1888
1833
|
{
|
|
1889
1834
|
className: "berget-logotype-fill",
|
|
1890
1835
|
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"
|
|
1891
1836
|
}
|
|
1892
1837
|
),
|
|
1893
|
-
/* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ jsx29("path", { className: "berget-logotype-fill", d: "M778.48,172.54v-96.04h15.15v96.04h-15.15Z" })
|
|
1894
1839
|
] }),
|
|
1895
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ jsx29(
|
|
1896
1841
|
"path",
|
|
1897
1842
|
{
|
|
1898
1843
|
style: { fill: fillColor },
|
|
@@ -1906,19 +1851,14 @@ var BergetLogo = React29.forwardRef(
|
|
|
1906
1851
|
);
|
|
1907
1852
|
BergetLogo.displayName = "BergetLogo";
|
|
1908
1853
|
|
|
1909
|
-
// src/components/header/Header.tsx
|
|
1910
|
-
import * as React31 from "react";
|
|
1911
|
-
import { cva as cva18 } from "class-variance-authority";
|
|
1912
|
-
import { Menu, X } from "lucide-react";
|
|
1913
|
-
|
|
1914
1854
|
// src/components/language-select/LanguageSelect.tsx
|
|
1915
|
-
import * as
|
|
1855
|
+
import * as React28 from "react";
|
|
1916
1856
|
import * as SelectPrimitive2 from "@radix-ui/react-select";
|
|
1917
1857
|
import { Globe } from "lucide-react";
|
|
1918
|
-
import { jsx as
|
|
1919
|
-
var LanguageSelect =
|
|
1920
|
-
return /* @__PURE__ */
|
|
1921
|
-
/* @__PURE__ */
|
|
1858
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1859
|
+
var LanguageSelect = React28.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
1860
|
+
return /* @__PURE__ */ jsxs13(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
1861
|
+
/* @__PURE__ */ jsx30(
|
|
1922
1862
|
SelectPrimitive2.Trigger,
|
|
1923
1863
|
{
|
|
1924
1864
|
ref,
|
|
@@ -1940,10 +1880,10 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
1940
1880
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1941
1881
|
className
|
|
1942
1882
|
),
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1883
|
+
children: /* @__PURE__ */ jsx30(Icon2, { icon: Globe, size: 16 })
|
|
1944
1884
|
}
|
|
1945
1885
|
),
|
|
1946
|
-
/* @__PURE__ */
|
|
1886
|
+
/* @__PURE__ */ jsx30(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx30(
|
|
1947
1887
|
SelectPrimitive2.Content,
|
|
1948
1888
|
{
|
|
1949
1889
|
className: cn(
|
|
@@ -1971,7 +1911,7 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
1971
1911
|
"origin-[--radix-select-content-transform-origin]"
|
|
1972
1912
|
),
|
|
1973
1913
|
position: "popper",
|
|
1974
|
-
children: /* @__PURE__ */
|
|
1914
|
+
children: /* @__PURE__ */ jsx30(SelectPrimitive2.Viewport, { className: "p-1", children: options.map((option) => /* @__PURE__ */ jsx30(
|
|
1975
1915
|
SelectPrimitive2.Item,
|
|
1976
1916
|
{
|
|
1977
1917
|
value: option.value,
|
|
@@ -1988,7 +1928,7 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
1988
1928
|
// Disabled state
|
|
1989
1929
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
1990
1930
|
),
|
|
1991
|
-
children: /* @__PURE__ */
|
|
1931
|
+
children: /* @__PURE__ */ jsx30(SelectPrimitive2.ItemText, { children: option.label })
|
|
1992
1932
|
},
|
|
1993
1933
|
option.value
|
|
1994
1934
|
)) })
|
|
@@ -1998,225 +1938,14 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
1998
1938
|
});
|
|
1999
1939
|
LanguageSelect.displayName = "LanguageSelect";
|
|
2000
1940
|
|
|
2001
|
-
// src/components/header/Header.tsx
|
|
2002
|
-
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2003
|
-
var headerVariants = cva18(
|
|
2004
|
-
"sticky top-0 z-50 header-backdrop backdrop-blur-xl border-b border-berget-border transition-all duration-200",
|
|
2005
|
-
{
|
|
2006
|
-
variants: {
|
|
2007
|
-
variant: {
|
|
2008
|
-
default: "",
|
|
2009
|
-
transparent: "border-transparent bg-transparent backdrop-blur-none"
|
|
2010
|
-
}
|
|
2011
|
-
},
|
|
2012
|
-
defaultVariants: {
|
|
2013
|
-
variant: "default"
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
);
|
|
2017
|
-
var HeaderContext = React31.createContext({
|
|
2018
|
-
isMobileMenuOpen: false,
|
|
2019
|
-
setIsMobileMenuOpen: () => {
|
|
2020
|
-
}
|
|
2021
|
-
});
|
|
2022
|
-
var useHeaderContext = () => React31.useContext(HeaderContext);
|
|
2023
|
-
var HeaderLogo = React31.forwardRef(
|
|
2024
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx32("div", { ref, className: cn("flex items-center", className), ...props, children })
|
|
2025
|
-
);
|
|
2026
|
-
HeaderLogo.displayName = "HeaderLogo";
|
|
2027
|
-
var HeaderNav = React31.forwardRef(({ className, links, ...props }, ref) => {
|
|
2028
|
-
return /* @__PURE__ */ jsx32("nav", { ref, className: cn("hidden md:flex items-center gap-fluid-lg", className), ...props, children: /* @__PURE__ */ jsx32("ul", { className: "flex items-center gap-fluid-lg", children: links.map((link) => /* @__PURE__ */ jsx32("li", { children: /* @__PURE__ */ jsxs15(
|
|
2029
|
-
Link,
|
|
2030
|
-
{
|
|
2031
|
-
href: link.href,
|
|
2032
|
-
variant: link.active ? "primary" : "default",
|
|
2033
|
-
size: "sm",
|
|
2034
|
-
className: cn("relative transition-all duration-200", link.active && "font-medium"),
|
|
2035
|
-
children: [
|
|
2036
|
-
link.icon && /* @__PURE__ */ jsx32("span", { className: "inline-flex items-center mr-2", children: /* @__PURE__ */ jsx32(Icon2, { icon: link.icon, size: 16 }) }),
|
|
2037
|
-
link.label
|
|
2038
|
-
]
|
|
2039
|
-
}
|
|
2040
|
-
) }, link.href)) }) });
|
|
2041
|
-
});
|
|
2042
|
-
HeaderNav.displayName = "HeaderNav";
|
|
2043
|
-
var HeaderActions = React31.forwardRef(
|
|
2044
|
-
({
|
|
2045
|
-
className,
|
|
2046
|
-
languageOptions,
|
|
2047
|
-
currentLanguage,
|
|
2048
|
-
onLanguageChange,
|
|
2049
|
-
loginButton,
|
|
2050
|
-
ctaButton,
|
|
2051
|
-
...props
|
|
2052
|
-
}, ref) => {
|
|
2053
|
-
return /* @__PURE__ */ jsxs15("div", { ref, className: cn("hidden md:flex items-center gap-2", className), ...props, children: [
|
|
2054
|
-
languageOptions.length > 0 && /* @__PURE__ */ jsx32(
|
|
2055
|
-
LanguageSelect,
|
|
2056
|
-
{
|
|
2057
|
-
options: languageOptions,
|
|
2058
|
-
value: currentLanguage,
|
|
2059
|
-
onValueChange: onLanguageChange
|
|
2060
|
-
}
|
|
2061
|
-
),
|
|
2062
|
-
loginButton,
|
|
2063
|
-
ctaButton
|
|
2064
|
-
] });
|
|
2065
|
-
}
|
|
2066
|
-
);
|
|
2067
|
-
HeaderActions.displayName = "HeaderActions";
|
|
2068
|
-
var MobileMenuButton = React31.forwardRef(({ className, ...props }, ref) => {
|
|
2069
|
-
const { isMobileMenuOpen, setIsMobileMenuOpen } = useHeaderContext();
|
|
2070
|
-
return /* @__PURE__ */ jsx32(
|
|
2071
|
-
"button",
|
|
2072
|
-
{
|
|
2073
|
-
ref,
|
|
2074
|
-
className: cn(
|
|
2075
|
-
"md:hidden flex items-center justify-center w-8 h-8 rounded-full",
|
|
2076
|
-
"cursor-pointer transition-all duration-200",
|
|
2077
|
-
"hover:bg-berget-surface-hover",
|
|
2078
|
-
className
|
|
2079
|
-
),
|
|
2080
|
-
onClick: () => setIsMobileMenuOpen(!isMobileMenuOpen),
|
|
2081
|
-
"aria-label": isMobileMenuOpen ? "Close menu" : "Open menu",
|
|
2082
|
-
"aria-expanded": isMobileMenuOpen,
|
|
2083
|
-
"aria-controls": "mobile-menu",
|
|
2084
|
-
...props,
|
|
2085
|
-
children: isMobileMenuOpen ? /* @__PURE__ */ jsx32(Icon2, { icon: X, size: 16 }) : /* @__PURE__ */ jsx32(Icon2, { icon: Menu, size: 16 })
|
|
2086
|
-
}
|
|
2087
|
-
);
|
|
2088
|
-
});
|
|
2089
|
-
MobileMenuButton.displayName = "MobileMenuButton";
|
|
2090
|
-
var MobileMenu = React31.forwardRef(
|
|
2091
|
-
({
|
|
2092
|
-
className,
|
|
2093
|
-
links,
|
|
2094
|
-
languageOptions,
|
|
2095
|
-
currentLanguage,
|
|
2096
|
-
onLanguageChange,
|
|
2097
|
-
loginButton,
|
|
2098
|
-
ctaButton,
|
|
2099
|
-
...props
|
|
2100
|
-
}, ref) => {
|
|
2101
|
-
const { isMobileMenuOpen, setIsMobileMenuOpen } = useHeaderContext();
|
|
2102
|
-
if (!isMobileMenuOpen) return null;
|
|
2103
|
-
return /* @__PURE__ */ jsx32(
|
|
2104
|
-
"nav",
|
|
2105
|
-
{
|
|
2106
|
-
ref,
|
|
2107
|
-
id: "mobile-menu",
|
|
2108
|
-
"aria-label": "Mobile navigation menu",
|
|
2109
|
-
className: cn(
|
|
2110
|
-
"md:hidden absolute top-full left-0 right-0 bg-berget-background border-b border-berget-border shadow-berget-lg",
|
|
2111
|
-
className
|
|
2112
|
-
),
|
|
2113
|
-
...props,
|
|
2114
|
-
children: /* @__PURE__ */ jsxs15(Box, { direction: "column", gap: 0, className: "py-fluid-md", children: [
|
|
2115
|
-
/* @__PURE__ */ jsx32("ul", { className: "px-fluid-md pb-fluid-md border-b border-berget-border/50", children: links.map((link) => /* @__PURE__ */ jsx32("li", { children: /* @__PURE__ */ jsxs15(
|
|
2116
|
-
Link,
|
|
2117
|
-
{
|
|
2118
|
-
href: link.href,
|
|
2119
|
-
variant: link.active ? "primary" : "default",
|
|
2120
|
-
className: cn(
|
|
2121
|
-
"w-full py-3 px-4 rounded-lg transition-all duration-200 hover:bg-berget-surface-hover",
|
|
2122
|
-
link.active && "bg-berget-primary-tint font-medium"
|
|
2123
|
-
),
|
|
2124
|
-
onClick: () => setIsMobileMenuOpen(false),
|
|
2125
|
-
children: [
|
|
2126
|
-
link.icon && /* @__PURE__ */ jsx32("span", { className: "inline-flex items-center mr-2", children: /* @__PURE__ */ jsx32(Icon2, { icon: link.icon, size: 16 }) }),
|
|
2127
|
-
link.label
|
|
2128
|
-
]
|
|
2129
|
-
}
|
|
2130
|
-
) }, link.href)) }),
|
|
2131
|
-
/* @__PURE__ */ jsxs15("div", { className: "px-fluid-md py-fluid-md", children: [
|
|
2132
|
-
languageOptions.length > 0 && /* @__PURE__ */ jsx32("div", { className: "mb-fluid-md", children: /* @__PURE__ */ jsx32(
|
|
2133
|
-
LanguageSelect,
|
|
2134
|
-
{
|
|
2135
|
-
options: languageOptions,
|
|
2136
|
-
value: currentLanguage,
|
|
2137
|
-
onValueChange: onLanguageChange
|
|
2138
|
-
}
|
|
2139
|
-
) }),
|
|
2140
|
-
loginButton && /* @__PURE__ */ jsx32("div", { className: "mb-fluid-md w-full", children: loginButton }),
|
|
2141
|
-
ctaButton && /* @__PURE__ */ jsx32("div", { className: "w-full", children: ctaButton })
|
|
2142
|
-
] })
|
|
2143
|
-
] })
|
|
2144
|
-
}
|
|
2145
|
-
);
|
|
2146
|
-
}
|
|
2147
|
-
);
|
|
2148
|
-
MobileMenu.displayName = "MobileMenu";
|
|
2149
|
-
var Header = React31.forwardRef(
|
|
2150
|
-
({
|
|
2151
|
-
className,
|
|
2152
|
-
variant,
|
|
2153
|
-
logo,
|
|
2154
|
-
links,
|
|
2155
|
-
languageOptions,
|
|
2156
|
-
loginButton,
|
|
2157
|
-
ctaButton,
|
|
2158
|
-
currentLanguage,
|
|
2159
|
-
onLanguageChange,
|
|
2160
|
-
...props
|
|
2161
|
-
}, ref) => {
|
|
2162
|
-
const [isMobileMenuOpen, setIsMobileMenuOpen] = React31.useState(false);
|
|
2163
|
-
React31.useEffect(() => {
|
|
2164
|
-
if (isMobileMenuOpen) {
|
|
2165
|
-
document.body.style.overflow = "hidden";
|
|
2166
|
-
} else {
|
|
2167
|
-
document.body.style.overflow = "unset";
|
|
2168
|
-
}
|
|
2169
|
-
return () => {
|
|
2170
|
-
document.body.style.overflow = "unset";
|
|
2171
|
-
};
|
|
2172
|
-
}, [isMobileMenuOpen]);
|
|
2173
|
-
return /* @__PURE__ */ jsx32(HeaderContext.Provider, { value: { isMobileMenuOpen, setIsMobileMenuOpen }, children: /* @__PURE__ */ jsxs15("header", { ref, className: cn(headerVariants({ variant }), className), ...props, children: [
|
|
2174
|
-
/* @__PURE__ */ jsx32(Container, { size: "xl", children: /* @__PURE__ */ jsxs15(Box, { direction: "row", align: "center", justify: "between", className: "h-16", children: [
|
|
2175
|
-
/* @__PURE__ */ jsx32(HeaderLogo, { children: logo || /* @__PURE__ */ jsx32(BergetLogo, { variant: "logotype", color: "auto", size: 32 }) }),
|
|
2176
|
-
/* @__PURE__ */ jsx32(HeaderNav, { links }),
|
|
2177
|
-
/* @__PURE__ */ jsxs15(Box, { direction: "row", align: "center", gap: 3, children: [
|
|
2178
|
-
/* @__PURE__ */ jsx32(
|
|
2179
|
-
HeaderActions,
|
|
2180
|
-
{
|
|
2181
|
-
languageOptions,
|
|
2182
|
-
currentLanguage,
|
|
2183
|
-
onLanguageChange,
|
|
2184
|
-
loginButton,
|
|
2185
|
-
ctaButton
|
|
2186
|
-
}
|
|
2187
|
-
),
|
|
2188
|
-
ctaButton && /* @__PURE__ */ jsx32("div", { className: "md:hidden", children: ctaButton }),
|
|
2189
|
-
/* @__PURE__ */ jsx32(MobileMenuButton, {})
|
|
2190
|
-
] })
|
|
2191
|
-
] }) }),
|
|
2192
|
-
/* @__PURE__ */ jsx32(
|
|
2193
|
-
MobileMenu,
|
|
2194
|
-
{
|
|
2195
|
-
links,
|
|
2196
|
-
languageOptions,
|
|
2197
|
-
currentLanguage,
|
|
2198
|
-
onLanguageChange,
|
|
2199
|
-
loginButton,
|
|
2200
|
-
ctaButton
|
|
2201
|
-
}
|
|
2202
|
-
)
|
|
2203
|
-
] }) });
|
|
2204
|
-
}
|
|
2205
|
-
);
|
|
2206
|
-
Header.displayName = "Header";
|
|
2207
|
-
|
|
2208
|
-
// src/components/feature-cards/FeatureCards.tsx
|
|
2209
|
-
import * as React34 from "react";
|
|
2210
|
-
import { cva as cva20 } from "class-variance-authority";
|
|
2211
|
-
|
|
2212
1941
|
// src/components/list/List.tsx
|
|
2213
|
-
import * as
|
|
1942
|
+
import * as React30 from "react";
|
|
2214
1943
|
|
|
2215
1944
|
// src/components/divider/Divider.tsx
|
|
2216
|
-
import * as
|
|
2217
|
-
import { cva as
|
|
2218
|
-
import { jsx as
|
|
2219
|
-
var dividerVariants =
|
|
1945
|
+
import * as React29 from "react";
|
|
1946
|
+
import { cva as cva17 } from "class-variance-authority";
|
|
1947
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1948
|
+
var dividerVariants = cva17("", {
|
|
2220
1949
|
variants: {
|
|
2221
1950
|
variant: {
|
|
2222
1951
|
default: "bg-berget-separator",
|
|
@@ -2236,7 +1965,7 @@ var dividerVariants = cva19("", {
|
|
|
2236
1965
|
size: "thin"
|
|
2237
1966
|
}
|
|
2238
1967
|
});
|
|
2239
|
-
var Divider =
|
|
1968
|
+
var Divider = React29.forwardRef(
|
|
2240
1969
|
({
|
|
2241
1970
|
className,
|
|
2242
1971
|
orientation = "horizontal",
|
|
@@ -2247,16 +1976,16 @@ var Divider = React32.forwardRef(
|
|
|
2247
1976
|
...props
|
|
2248
1977
|
}, ref) => {
|
|
2249
1978
|
if (label) {
|
|
2250
|
-
return /* @__PURE__ */
|
|
2251
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsxs14("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
1980
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx31(
|
|
2252
1981
|
Separator2,
|
|
2253
1982
|
{
|
|
2254
1983
|
orientation: "horizontal",
|
|
2255
1984
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
2256
1985
|
}
|
|
2257
1986
|
),
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx31(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
1988
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx31(
|
|
2260
1989
|
Separator2,
|
|
2261
1990
|
{
|
|
2262
1991
|
orientation: "horizontal",
|
|
@@ -2265,7 +1994,7 @@ var Divider = React32.forwardRef(
|
|
|
2265
1994
|
)
|
|
2266
1995
|
] });
|
|
2267
1996
|
}
|
|
2268
|
-
return /* @__PURE__ */
|
|
1997
|
+
return /* @__PURE__ */ jsx31(
|
|
2269
1998
|
Separator2,
|
|
2270
1999
|
{
|
|
2271
2000
|
ref,
|
|
@@ -2283,19 +2012,19 @@ Divider.displayName = "Divider";
|
|
|
2283
2012
|
|
|
2284
2013
|
// src/components/list/List.tsx
|
|
2285
2014
|
import { Check as Check4 } from "lucide-react";
|
|
2286
|
-
import { jsx as
|
|
2287
|
-
var List =
|
|
2015
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2016
|
+
var List = React30.forwardRef(
|
|
2288
2017
|
({ className, children, ...props }, ref) => {
|
|
2289
|
-
const childrenArray =
|
|
2290
|
-
return /* @__PURE__ */
|
|
2018
|
+
const childrenArray = React30.Children.toArray(children);
|
|
2019
|
+
return /* @__PURE__ */ jsx32("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs15(React30.Fragment, { children: [
|
|
2291
2020
|
child,
|
|
2292
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
2021
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx32(Divider, { variant: "subtle" })
|
|
2293
2022
|
] }, index)) });
|
|
2294
2023
|
}
|
|
2295
2024
|
);
|
|
2296
2025
|
List.displayName = "List";
|
|
2297
|
-
var ListItem =
|
|
2298
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */
|
|
2026
|
+
var ListItem = React30.forwardRef(
|
|
2027
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
2299
2028
|
"div",
|
|
2300
2029
|
{
|
|
2301
2030
|
ref,
|
|
@@ -2306,15 +2035,15 @@ var ListItem = React33.forwardRef(
|
|
|
2306
2035
|
),
|
|
2307
2036
|
...props,
|
|
2308
2037
|
children: [
|
|
2309
|
-
icon && /* @__PURE__ */
|
|
2310
|
-
/* @__PURE__ */
|
|
2038
|
+
icon && /* @__PURE__ */ jsx32("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
2039
|
+
/* @__PURE__ */ jsx32("div", { className: "flex-1 min-w-0", children })
|
|
2311
2040
|
]
|
|
2312
2041
|
}
|
|
2313
2042
|
)
|
|
2314
2043
|
);
|
|
2315
2044
|
ListItem.displayName = "ListItem";
|
|
2316
|
-
var ListHeader =
|
|
2317
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2045
|
+
var ListHeader = React30.forwardRef(
|
|
2046
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2318
2047
|
"div",
|
|
2319
2048
|
{
|
|
2320
2049
|
ref,
|
|
@@ -2325,111 +2054,21 @@ var ListHeader = React33.forwardRef(
|
|
|
2325
2054
|
)
|
|
2326
2055
|
);
|
|
2327
2056
|
ListHeader.displayName = "ListHeader";
|
|
2328
|
-
var FeatureList =
|
|
2057
|
+
var FeatureList = React30.forwardRef(
|
|
2329
2058
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
2330
|
-
return /* @__PURE__ */
|
|
2331
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2059
|
+
return /* @__PURE__ */ jsx32("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs15("li", { className: "flex items-start gap-fluid-md", children: [
|
|
2060
|
+
variant === "bullet" ? /* @__PURE__ */ jsx32("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx32("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx32(Icon2, { icon: Check4, size: 24, className: "text-berget-logo-light" }) }),
|
|
2061
|
+
/* @__PURE__ */ jsx32(Typography, { variant: "body", color: "muted", children: item })
|
|
2333
2062
|
] }, index)) });
|
|
2334
2063
|
}
|
|
2335
2064
|
);
|
|
2336
2065
|
FeatureList.displayName = "FeatureList";
|
|
2337
2066
|
|
|
2338
|
-
// src/components/feature-cards/FeatureCards.tsx
|
|
2339
|
-
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2340
|
-
var featureCardVariants = cva20("", {
|
|
2341
|
-
variants: {
|
|
2342
|
-
variant: {
|
|
2343
|
-
highlight: "",
|
|
2344
|
-
glass: "",
|
|
2345
|
-
solid: ""
|
|
2346
|
-
}
|
|
2347
|
-
},
|
|
2348
|
-
defaultVariants: {
|
|
2349
|
-
variant: "highlight"
|
|
2350
|
-
}
|
|
2351
|
-
});
|
|
2352
|
-
var FeatureCard = React34.forwardRef(
|
|
2353
|
-
({
|
|
2354
|
-
className,
|
|
2355
|
-
variant = "highlight",
|
|
2356
|
-
icon: Icon3,
|
|
2357
|
-
iconColor,
|
|
2358
|
-
title,
|
|
2359
|
-
description,
|
|
2360
|
-
badge,
|
|
2361
|
-
linkText,
|
|
2362
|
-
linkHref,
|
|
2363
|
-
items,
|
|
2364
|
-
columns: _columns,
|
|
2365
|
-
...props
|
|
2366
|
-
}, ref) => {
|
|
2367
|
-
return /* @__PURE__ */ jsx35(
|
|
2368
|
-
Card2,
|
|
2369
|
-
{
|
|
2370
|
-
ref,
|
|
2371
|
-
variant,
|
|
2372
|
-
className: cn("w-full py-fluid-lg px-fluid-md", className),
|
|
2373
|
-
...props,
|
|
2374
|
-
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col items-start gap-fluid-md", children: [
|
|
2375
|
-
(Icon3 || badge) && /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between w-full", children: [
|
|
2376
|
-
Icon3 && /* @__PURE__ */ jsx35("div", { className: "flex h-7 w-7 items-center justify-center", children: /* @__PURE__ */ jsx35(
|
|
2377
|
-
Icon3,
|
|
2378
|
-
{
|
|
2379
|
-
className: cn("h-7 w-7", iconColor || "text-foreground"),
|
|
2380
|
-
strokeWidth: 1.5
|
|
2381
|
-
}
|
|
2382
|
-
) }),
|
|
2383
|
-
badge && /* @__PURE__ */ jsx35("div", { className: "flex h-6 items-center justify-start px-6 bg-berget-feature-card-badge-bg rounded-full", children: /* @__PURE__ */ jsx35(
|
|
2384
|
-
Typography,
|
|
2385
|
-
{
|
|
2386
|
-
variant: "body",
|
|
2387
|
-
as: "span",
|
|
2388
|
-
className: "text-berget-feature-card-badge-fg",
|
|
2389
|
-
children: badge
|
|
2390
|
-
}
|
|
2391
|
-
) })
|
|
2392
|
-
] }),
|
|
2393
|
-
/* @__PURE__ */ jsx35(Typography, { variant: "h3", className: "text-foreground", children: title }),
|
|
2394
|
-
/* @__PURE__ */ jsx35(Typography, { variant: "body", className: "text-foreground/80", children: description }),
|
|
2395
|
-
items && items.length > 0 && /* @__PURE__ */ jsx35(FeatureList, { items, variant: "bullet" }),
|
|
2396
|
-
linkText && linkHref && /* @__PURE__ */ jsxs18("a", { href: linkHref, className: "text-p font-p leading-p text-berget-accent", children: [
|
|
2397
|
-
linkText,
|
|
2398
|
-
" \u2192"
|
|
2399
|
-
] })
|
|
2400
|
-
] })
|
|
2401
|
-
}
|
|
2402
|
-
);
|
|
2403
|
-
}
|
|
2404
|
-
);
|
|
2405
|
-
FeatureCard.displayName = "FeatureCard";
|
|
2406
|
-
var FeatureCards = React34.forwardRef(
|
|
2407
|
-
({ features, columns = 3, className }, ref) => {
|
|
2408
|
-
return /* @__PURE__ */ jsx35(
|
|
2409
|
-
"div",
|
|
2410
|
-
{
|
|
2411
|
-
ref,
|
|
2412
|
-
className: cn(
|
|
2413
|
-
"grid gap-fluid-lg p-fluid-md",
|
|
2414
|
-
// Explicit classes so Tailwind compiles them
|
|
2415
|
-
columns === 1 && "grid-cols-1 max-w-md mx-auto",
|
|
2416
|
-
columns === 2 && "grid-cols-1 md:grid-cols-2",
|
|
2417
|
-
columns === 3 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
2418
|
-
columns === 4 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
|
|
2419
|
-
className
|
|
2420
|
-
),
|
|
2421
|
-
children: features.map((feature, index) => /* @__PURE__ */ jsx35(FeatureCard, { ...feature }, index))
|
|
2422
|
-
}
|
|
2423
|
-
);
|
|
2424
|
-
}
|
|
2425
|
-
);
|
|
2426
|
-
FeatureCards.displayName = "FeatureCards";
|
|
2427
|
-
|
|
2428
2067
|
// src/components/hero-block/HeroBlock.tsx
|
|
2429
|
-
import * as
|
|
2430
|
-
import { cva as
|
|
2431
|
-
import { jsx as
|
|
2432
|
-
var heroBlockVariants =
|
|
2068
|
+
import * as React31 from "react";
|
|
2069
|
+
import { cva as cva18 } from "class-variance-authority";
|
|
2070
|
+
import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2071
|
+
var heroBlockVariants = cva18(
|
|
2433
2072
|
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
2434
2073
|
{
|
|
2435
2074
|
variants: {
|
|
@@ -2449,7 +2088,7 @@ var heroBlockVariants = cva21(
|
|
|
2449
2088
|
}
|
|
2450
2089
|
}
|
|
2451
2090
|
);
|
|
2452
|
-
var HeroBlock =
|
|
2091
|
+
var HeroBlock = React31.forwardRef(
|
|
2453
2092
|
({
|
|
2454
2093
|
className,
|
|
2455
2094
|
variant,
|
|
@@ -2461,26 +2100,26 @@ var HeroBlock = React35.forwardRef(
|
|
|
2461
2100
|
actions,
|
|
2462
2101
|
...props
|
|
2463
2102
|
}, ref) => {
|
|
2464
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ jsx33(
|
|
2465
2104
|
"div",
|
|
2466
2105
|
{
|
|
2467
2106
|
ref,
|
|
2468
2107
|
className: cn(heroBlockVariants({ variant, withPattern }), className),
|
|
2469
2108
|
...props,
|
|
2470
|
-
children: /* @__PURE__ */
|
|
2471
|
-
tagline && /* @__PURE__ */
|
|
2109
|
+
children: /* @__PURE__ */ jsx33("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs16("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
2110
|
+
tagline && /* @__PURE__ */ jsx33(
|
|
2472
2111
|
Badge,
|
|
2473
2112
|
{
|
|
2474
2113
|
variant: "default",
|
|
2475
|
-
icon: TaglineIcon ? /* @__PURE__ */
|
|
2114
|
+
icon: TaglineIcon ? /* @__PURE__ */ jsx33(Icon2, { icon: TaglineIcon, size: 16 }) : void 0,
|
|
2476
2115
|
iconGap: 2,
|
|
2477
2116
|
className: "mb-fluid-md",
|
|
2478
2117
|
children: tagline
|
|
2479
2118
|
}
|
|
2480
2119
|
),
|
|
2481
|
-
/* @__PURE__ */
|
|
2482
|
-
/* @__PURE__ */
|
|
2483
|
-
actions && /* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ jsx33(Typography, { variant: "h1", className: "mb-fluid-md", children: title }),
|
|
2121
|
+
/* @__PURE__ */ jsx33(Typography, { variant: "h3", color: "muted", className: "mb-fluid-lg", children: description }),
|
|
2122
|
+
actions && /* @__PURE__ */ jsx33("div", { className: "flex flex-wrap gap-fluid-md justify-center", children: actions })
|
|
2484
2123
|
] }) })
|
|
2485
2124
|
}
|
|
2486
2125
|
);
|
|
@@ -2489,13 +2128,13 @@ var HeroBlock = React35.forwardRef(
|
|
|
2489
2128
|
HeroBlock.displayName = "HeroBlock";
|
|
2490
2129
|
|
|
2491
2130
|
// src/components/code-block/CodeBlock.tsx
|
|
2492
|
-
import { useState as
|
|
2131
|
+
import { useState as useState2, useEffect as useEffect2, useCallback as useCallback3 } from "react";
|
|
2493
2132
|
import { Copy, Check as Check5 } from "lucide-react";
|
|
2494
|
-
import { jsx as
|
|
2133
|
+
import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2495
2134
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
2496
|
-
const [html, setHtml] =
|
|
2497
|
-
const [copied, setCopied] =
|
|
2498
|
-
|
|
2135
|
+
const [html, setHtml] = useState2(null);
|
|
2136
|
+
const [copied, setCopied] = useState2(false);
|
|
2137
|
+
useEffect2(() => {
|
|
2499
2138
|
getHighlighter().then((highlighter) => {
|
|
2500
2139
|
const loadedLangs = highlighter.getLoadedLanguages();
|
|
2501
2140
|
const lang = loadedLangs.includes(language) ? language : "text";
|
|
@@ -2507,16 +2146,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2507
2146
|
setCopied(true);
|
|
2508
2147
|
setTimeout(() => setCopied(false), 2e3);
|
|
2509
2148
|
}, [code]);
|
|
2510
|
-
const copyButton = /* @__PURE__ */
|
|
2149
|
+
const copyButton = /* @__PURE__ */ jsx34(
|
|
2511
2150
|
"button",
|
|
2512
2151
|
{
|
|
2513
2152
|
onClick: handleCopy,
|
|
2514
2153
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
2515
2154
|
"aria-label": "Copy code",
|
|
2516
|
-
children: copied ? /* @__PURE__ */
|
|
2155
|
+
children: copied ? /* @__PURE__ */ jsx34(Check5, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx34(Copy, { className: "w-3.5 h-3.5" })
|
|
2517
2156
|
}
|
|
2518
2157
|
);
|
|
2519
|
-
return /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ jsxs17(
|
|
2520
2159
|
"div",
|
|
2521
2160
|
{
|
|
2522
2161
|
className: cn(
|
|
@@ -2524,27 +2163,78 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2524
2163
|
className
|
|
2525
2164
|
),
|
|
2526
2165
|
children: [
|
|
2527
|
-
title && /* @__PURE__ */
|
|
2528
|
-
/* @__PURE__ */
|
|
2529
|
-
html ? /* @__PURE__ */
|
|
2166
|
+
title && /* @__PURE__ */ jsx34("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__ */ jsx34("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
2167
|
+
/* @__PURE__ */ jsx34("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
2168
|
+
html ? /* @__PURE__ */ jsx34(
|
|
2530
2169
|
"div",
|
|
2531
2170
|
{
|
|
2532
2171
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
2533
2172
|
dangerouslySetInnerHTML: { __html: html }
|
|
2534
2173
|
}
|
|
2535
|
-
) : /* @__PURE__ */
|
|
2174
|
+
) : /* @__PURE__ */ jsx34("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx34("code", { children: code }) })
|
|
2536
2175
|
]
|
|
2537
2176
|
}
|
|
2538
2177
|
);
|
|
2539
2178
|
}
|
|
2179
|
+
|
|
2180
|
+
// src/components/window-frame/WindowFrame.tsx
|
|
2181
|
+
import * as React32 from "react";
|
|
2182
|
+
import { useState as useState3 } from "react";
|
|
2183
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2184
|
+
var WindowFrame = React32.forwardRef(
|
|
2185
|
+
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
2186
|
+
const [internalActive, setInternalActive] = useState3(tabs?.[0]?.id ?? "");
|
|
2187
|
+
const currentTab = activeTab ?? internalActive;
|
|
2188
|
+
const handleTabChange = (id) => {
|
|
2189
|
+
if (onTabChange) {
|
|
2190
|
+
onTabChange(id);
|
|
2191
|
+
} else {
|
|
2192
|
+
setInternalActive(id);
|
|
2193
|
+
}
|
|
2194
|
+
};
|
|
2195
|
+
return /* @__PURE__ */ jsxs18(
|
|
2196
|
+
"div",
|
|
2197
|
+
{
|
|
2198
|
+
ref,
|
|
2199
|
+
className: cn(
|
|
2200
|
+
"rounded-berget-sm overflow-hidden shadow-berget-md border border-berget-brand-granite-700 bg-berget-brand-granite-800",
|
|
2201
|
+
className
|
|
2202
|
+
),
|
|
2203
|
+
...props,
|
|
2204
|
+
children: [
|
|
2205
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
2206
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
2207
|
+
/* @__PURE__ */ jsx35("div", { className: "w-3 h-3 rounded-full bg-[#FF5F56]" }),
|
|
2208
|
+
/* @__PURE__ */ jsx35("div", { className: "w-3 h-3 rounded-full bg-[#FFBD2E]" }),
|
|
2209
|
+
/* @__PURE__ */ jsx35("div", { className: "w-3 h-3 rounded-full bg-[#27C93F]" })
|
|
2210
|
+
] }),
|
|
2211
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx35("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx35(
|
|
2212
|
+
"button",
|
|
2213
|
+
{
|
|
2214
|
+
type: "button",
|
|
2215
|
+
onClick: () => handleTabChange(tab.id),
|
|
2216
|
+
className: cn(
|
|
2217
|
+
"px-3 py-1 text-sm transition-colors cursor-pointer",
|
|
2218
|
+
currentTab === tab.id ? "rounded-lg bg-white/10 text-berget-foreground font-medium" : "rounded text-berget-muted-foreground hover:text-berget-foreground font-medium"
|
|
2219
|
+
),
|
|
2220
|
+
children: tab.label
|
|
2221
|
+
},
|
|
2222
|
+
tab.id
|
|
2223
|
+
)) }) : /* @__PURE__ */ jsx35("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
2224
|
+
] }),
|
|
2225
|
+
/* @__PURE__ */ jsx35("div", { children })
|
|
2226
|
+
]
|
|
2227
|
+
}
|
|
2228
|
+
);
|
|
2229
|
+
}
|
|
2230
|
+
);
|
|
2231
|
+
WindowFrame.displayName = "WindowFrame";
|
|
2540
2232
|
export {
|
|
2541
2233
|
Alert2 as Alert,
|
|
2542
2234
|
AlertDescription,
|
|
2543
2235
|
AlertTitle,
|
|
2544
2236
|
Badge,
|
|
2545
2237
|
BergetLogo,
|
|
2546
|
-
BergetLogo as BergetLogotype,
|
|
2547
|
-
BergetLogo as BergetSymbol,
|
|
2548
2238
|
Box,
|
|
2549
2239
|
Button2 as Button,
|
|
2550
2240
|
Card2 as Card,
|
|
@@ -2556,8 +2246,16 @@ export {
|
|
|
2556
2246
|
Checkbox2 as Checkbox,
|
|
2557
2247
|
CodeBlock,
|
|
2558
2248
|
Container,
|
|
2559
|
-
|
|
2560
|
-
|
|
2249
|
+
Dialog,
|
|
2250
|
+
DialogClose,
|
|
2251
|
+
DialogContent,
|
|
2252
|
+
DialogDescription,
|
|
2253
|
+
DialogFooter,
|
|
2254
|
+
DialogHeader,
|
|
2255
|
+
DialogOverlay,
|
|
2256
|
+
DialogPortal,
|
|
2257
|
+
DialogTitle,
|
|
2258
|
+
DialogTrigger,
|
|
2561
2259
|
FeatureList,
|
|
2562
2260
|
Field,
|
|
2563
2261
|
FieldContent,
|
|
@@ -2570,7 +2268,6 @@ export {
|
|
|
2570
2268
|
FieldSet,
|
|
2571
2269
|
FieldTitle,
|
|
2572
2270
|
Grid,
|
|
2573
|
-
Header,
|
|
2574
2271
|
HeroBlock,
|
|
2575
2272
|
Icon2 as Icon,
|
|
2576
2273
|
Input2 as Input,
|
|
@@ -2580,14 +2277,13 @@ export {
|
|
|
2580
2277
|
List,
|
|
2581
2278
|
ListHeader,
|
|
2582
2279
|
ListItem,
|
|
2583
|
-
Section,
|
|
2584
|
-
SectionHeader,
|
|
2585
2280
|
Select2 as Select,
|
|
2586
2281
|
Switch,
|
|
2587
2282
|
TextArea,
|
|
2588
2283
|
ThemeProvider,
|
|
2589
2284
|
ThemeToggle,
|
|
2590
2285
|
Typography,
|
|
2286
|
+
WindowFrame,
|
|
2591
2287
|
alertVariants2 as alertVariants,
|
|
2592
2288
|
badgeVariants,
|
|
2593
2289
|
boxVariants,
|
|
@@ -2597,7 +2293,6 @@ export {
|
|
|
2597
2293
|
containerVariants,
|
|
2598
2294
|
gridVariants,
|
|
2599
2295
|
linkVariants,
|
|
2600
|
-
sectionVariants,
|
|
2601
2296
|
selectVariants,
|
|
2602
2297
|
switchRootVariants,
|
|
2603
2298
|
switchThumbVariants,
|