@bergetai/ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -19
- package/dist/index.d.ts +3 -19
- package/dist/index.js +18 -46
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +60 -148
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -605,11 +605,7 @@ interface FeatureListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
|
605
605
|
}
|
|
606
606
|
declare const FeatureList: React$1.ForwardRefExoticComponent<FeatureListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
607
607
|
|
|
608
|
-
|
|
609
|
-
variant?: "default" | "moss" | "gradient" | null | undefined;
|
|
610
|
-
withPattern?: boolean | null | undefined;
|
|
611
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
612
|
-
interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof heroBlockVariants> {
|
|
608
|
+
interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
613
609
|
/**
|
|
614
610
|
* Optional icon for the tagline badge
|
|
615
611
|
*/
|
|
@@ -630,25 +626,14 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
630
626
|
* Call-to-action buttons
|
|
631
627
|
*/
|
|
632
628
|
actions?: React$1.ReactNode;
|
|
633
|
-
/**
|
|
634
|
-
* Show pattern background
|
|
635
|
-
* @default true
|
|
636
|
-
*/
|
|
637
|
-
withPattern?: boolean;
|
|
638
629
|
}
|
|
639
630
|
/**
|
|
640
631
|
* Hero Block Component
|
|
641
632
|
*
|
|
642
|
-
* Full-width hero section with optional
|
|
633
|
+
* Full-width hero section with optional tagline, title, description, and CTAs.
|
|
643
634
|
* Based on the pattern from why-berget and other landing pages.
|
|
644
635
|
*
|
|
645
|
-
* **Variants:**
|
|
646
|
-
* - `default` - Simple gradient
|
|
647
|
-
* - `moss` - Green gradient overlay
|
|
648
|
-
* - `gradient` - Diagonal gradient
|
|
649
|
-
*
|
|
650
636
|
* **Features:**
|
|
651
|
-
* - Optional grid background
|
|
652
637
|
* - Tagline badge with optional icon
|
|
653
638
|
* - Responsive sizing
|
|
654
639
|
* - CTA button slots
|
|
@@ -666,10 +651,9 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
666
651
|
* taglineIcon={Shield}
|
|
667
652
|
* title="European AI Infrastructure"
|
|
668
653
|
* description="Deploy and scale AI models with data residency in Europe"
|
|
669
|
-
* variant="moss"
|
|
670
654
|
* actions={
|
|
671
655
|
* <>
|
|
672
|
-
* <Button size="lg">Get Started</Button>
|
|
656
|
+
* <Button size="lg" variant="primary">Get Started</Button>
|
|
673
657
|
* <Button size="lg" variant="outline">Learn More</Button>
|
|
674
658
|
* </>
|
|
675
659
|
* }
|
package/dist/index.d.ts
CHANGED
|
@@ -605,11 +605,7 @@ interface FeatureListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
|
605
605
|
}
|
|
606
606
|
declare const FeatureList: React$1.ForwardRefExoticComponent<FeatureListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
607
607
|
|
|
608
|
-
|
|
609
|
-
variant?: "default" | "moss" | "gradient" | null | undefined;
|
|
610
|
-
withPattern?: boolean | null | undefined;
|
|
611
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
612
|
-
interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof heroBlockVariants> {
|
|
608
|
+
interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
613
609
|
/**
|
|
614
610
|
* Optional icon for the tagline badge
|
|
615
611
|
*/
|
|
@@ -630,25 +626,14 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
630
626
|
* Call-to-action buttons
|
|
631
627
|
*/
|
|
632
628
|
actions?: React$1.ReactNode;
|
|
633
|
-
/**
|
|
634
|
-
* Show pattern background
|
|
635
|
-
* @default true
|
|
636
|
-
*/
|
|
637
|
-
withPattern?: boolean;
|
|
638
629
|
}
|
|
639
630
|
/**
|
|
640
631
|
* Hero Block Component
|
|
641
632
|
*
|
|
642
|
-
* Full-width hero section with optional
|
|
633
|
+
* Full-width hero section with optional tagline, title, description, and CTAs.
|
|
643
634
|
* Based on the pattern from why-berget and other landing pages.
|
|
644
635
|
*
|
|
645
|
-
* **Variants:**
|
|
646
|
-
* - `default` - Simple gradient
|
|
647
|
-
* - `moss` - Green gradient overlay
|
|
648
|
-
* - `gradient` - Diagonal gradient
|
|
649
|
-
*
|
|
650
636
|
* **Features:**
|
|
651
|
-
* - Optional grid background
|
|
652
637
|
* - Tagline badge with optional icon
|
|
653
638
|
* - Responsive sizing
|
|
654
639
|
* - CTA button slots
|
|
@@ -666,10 +651,9 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
666
651
|
* taglineIcon={Shield}
|
|
667
652
|
* title="European AI Infrastructure"
|
|
668
653
|
* description="Deploy and scale AI models with data residency in Europe"
|
|
669
|
-
* variant="moss"
|
|
670
654
|
* actions={
|
|
671
655
|
* <>
|
|
672
|
-
* <Button size="lg">Get Started</Button>
|
|
656
|
+
* <Button size="lg" variant="primary">Get Started</Button>
|
|
673
657
|
* <Button size="lg" variant="outline">Learn More</Button>
|
|
674
658
|
* </>
|
|
675
659
|
* }
|
package/dist/index.js
CHANGED
|
@@ -256,9 +256,9 @@ import { jsx as jsx4 } from "react/jsx-runtime";
|
|
|
256
256
|
function brandVariantClasses(variant) {
|
|
257
257
|
switch (variant) {
|
|
258
258
|
case "primary":
|
|
259
|
-
return "bg-berget-button-primary-bg text-berget-button-primary-fg shadow-lg hover:bg-berget-button-primary-
|
|
259
|
+
return "bg-berget-button-primary-bg text-berget-button-primary-fg shadow-berget-lg hover:bg-berget-button-primary-hover hover:shadow-berget-lg";
|
|
260
260
|
case "destructive":
|
|
261
|
-
return "bg-berget-button-destructive-bg text-berget-button-destructive-fg shadow-sm hover:bg-berget-button-destructive-bg/80 hover:shadow dark:hover:bg-berget-button-destructive-bg/80 dark:hover:text-berget-button-destructive-fg";
|
|
261
|
+
return "bg-berget-button-destructive-bg text-berget-button-destructive-fg shadow-berget-sm hover:bg-berget-button-destructive-bg/80 hover:shadow-berget-sm dark:hover:bg-berget-button-destructive-bg/80 dark:hover:text-berget-button-destructive-fg";
|
|
262
262
|
case "outline":
|
|
263
263
|
return "border-berget-border-interactive bg-transparent text-berget-foreground hover:bg-berget-surface-hover hover:text-berget-foreground hover:border-berget-border-interactive-elevated";
|
|
264
264
|
case "ghost":
|
|
@@ -267,7 +267,7 @@ function brandVariantClasses(variant) {
|
|
|
267
267
|
return "bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent text-berget-button-link-fg underline-offset-4 hover:underline";
|
|
268
268
|
case "default":
|
|
269
269
|
default:
|
|
270
|
-
return "bg-berget-button-default-bg text-berget-button-default-fg shadow-lg hover:bg-berget-button-default-bg/90 hover:shadow-
|
|
270
|
+
return "bg-berget-button-default-bg text-berget-button-default-fg shadow-berget-lg hover:bg-berget-button-default-bg/90 hover:shadow-berget-lg";
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
function primitiveVariant(variant) {
|
|
@@ -818,7 +818,7 @@ var ModelCard = React9.forwardRef(
|
|
|
818
818
|
children: lifecycleLabels[lifecycle]
|
|
819
819
|
}
|
|
820
820
|
) }),
|
|
821
|
-
(icon || provider || category) && /* @__PURE__ */ jsx11("div", { className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-
|
|
821
|
+
(icon || provider || category) && /* @__PURE__ */ jsx11("div", { className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-berget-xs border border-berget-border bg-white/5 text-berget-foreground", children: icon ?? /* @__PURE__ */ jsx11(ModelLogo, { provider, category }) }),
|
|
822
822
|
/* @__PURE__ */ jsxs5("header", { children: [
|
|
823
823
|
eyebrow && /* @__PURE__ */ jsx11(
|
|
824
824
|
Typography,
|
|
@@ -2076,7 +2076,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2076
2076
|
// src/components/checkbox/Checkbox.tsx
|
|
2077
2077
|
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2078
2078
|
var checkboxVariants = cva10(
|
|
2079
|
-
"inline-flex items-center justify-center rounded-
|
|
2079
|
+
"inline-flex items-center justify-center rounded-berget-xs transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
2080
2080
|
{
|
|
2081
2081
|
variants: {
|
|
2082
2082
|
variant: {
|
|
@@ -2170,7 +2170,7 @@ var switchRootVariants = cva11(
|
|
|
2170
2170
|
{
|
|
2171
2171
|
variants: {
|
|
2172
2172
|
variant: {
|
|
2173
|
-
default: "data-unchecked:bg-berget-border data-checked:bg-berget-
|
|
2173
|
+
default: "data-unchecked:bg-berget-border data-checked:bg-berget-primary",
|
|
2174
2174
|
primary: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-primary-checked",
|
|
2175
2175
|
subtle: "data-unchecked:bg-berget-border-subtle data-checked:bg-berget-switch-subtle-checked"
|
|
2176
2176
|
},
|
|
@@ -3410,11 +3410,11 @@ var linkVariants = cva16(
|
|
|
3410
3410
|
variants: {
|
|
3411
3411
|
variant: {
|
|
3412
3412
|
default: "text-foreground hover:text-foreground/80",
|
|
3413
|
-
primary: "text-berget-
|
|
3413
|
+
primary: "text-berget-brand-moss-400 hover:text-berget-brand-moss-500",
|
|
3414
3414
|
secondary: "text-berget-accent hover:text-berget-accent/80",
|
|
3415
3415
|
ghost: "text-muted-foreground hover:text-foreground",
|
|
3416
3416
|
muted: "text-muted-foreground hover:text-muted-foreground/80",
|
|
3417
|
-
code: "text-berget-
|
|
3417
|
+
code: "text-berget-brand-moss-400 hover:text-berget-brand-moss-500 font-mono text-sm bg-berget-primary-tint px-2 py-1 rounded hover:bg-berget-primary-tint-hover"
|
|
3418
3418
|
},
|
|
3419
3419
|
size: {
|
|
3420
3420
|
sm: "text-sm",
|
|
@@ -3681,7 +3681,7 @@ var LanguageSelect = React27.forwardRef(
|
|
|
3681
3681
|
// Shadow
|
|
3682
3682
|
"shadow-berget-lg",
|
|
3683
3683
|
// Rounded corners
|
|
3684
|
-
"rounded-
|
|
3684
|
+
"rounded-berget-xs",
|
|
3685
3685
|
// Animations
|
|
3686
3686
|
"transition-[opacity,transform]",
|
|
3687
3687
|
"data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95",
|
|
@@ -3851,45 +3851,17 @@ FeatureList.displayName = "FeatureList";
|
|
|
3851
3851
|
|
|
3852
3852
|
// src/components/hero-block/HeroBlock.tsx
|
|
3853
3853
|
import * as React30 from "react";
|
|
3854
|
-
import { cva as cva21 } from "class-variance-authority";
|
|
3855
3854
|
import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3856
|
-
var heroBlockVariants = cva21(
|
|
3857
|
-
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3858
|
-
{
|
|
3859
|
-
variants: {
|
|
3860
|
-
variant: {
|
|
3861
|
-
default: "",
|
|
3862
|
-
moss: "",
|
|
3863
|
-
gradient: ""
|
|
3864
|
-
},
|
|
3865
|
-
withPattern: {
|
|
3866
|
-
true: "",
|
|
3867
|
-
false: ""
|
|
3868
|
-
}
|
|
3869
|
-
},
|
|
3870
|
-
defaultVariants: {
|
|
3871
|
-
variant: "default",
|
|
3872
|
-
withPattern: false
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
);
|
|
3876
3855
|
var HeroBlock = React30.forwardRef(
|
|
3877
|
-
({
|
|
3878
|
-
className,
|
|
3879
|
-
variant,
|
|
3880
|
-
withPattern,
|
|
3881
|
-
taglineIcon: TaglineIcon,
|
|
3882
|
-
tagline,
|
|
3883
|
-
title,
|
|
3884
|
-
description,
|
|
3885
|
-
actions,
|
|
3886
|
-
...props
|
|
3887
|
-
}, ref) => {
|
|
3856
|
+
({ className, taglineIcon: TaglineIcon, tagline, title, description, actions, ...props }, ref) => {
|
|
3888
3857
|
return /* @__PURE__ */ jsx45(
|
|
3889
3858
|
"div",
|
|
3890
3859
|
{
|
|
3891
3860
|
ref,
|
|
3892
|
-
className: cn(
|
|
3861
|
+
className: cn(
|
|
3862
|
+
"relative overflow-hidden min-h-[40dvh] flex items-center py-fluid-2xl",
|
|
3863
|
+
className
|
|
3864
|
+
),
|
|
3893
3865
|
...props,
|
|
3894
3866
|
children: /* @__PURE__ */ jsx45("div", { className: "mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs25("div", { className: "mx-auto text-center max-w-4xl", children: [
|
|
3895
3867
|
tagline && /* @__PURE__ */ jsx45(
|
|
@@ -3989,9 +3961,9 @@ var WindowFrame = React31.forwardRef(
|
|
|
3989
3961
|
children: [
|
|
3990
3962
|
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
3991
3963
|
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
3992
|
-
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-
|
|
3993
|
-
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-
|
|
3994
|
-
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-
|
|
3964
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
3965
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
3966
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
3995
3967
|
] }),
|
|
3996
3968
|
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx47("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx47(
|
|
3997
3969
|
"button",
|
|
@@ -4000,7 +3972,7 @@ var WindowFrame = React31.forwardRef(
|
|
|
4000
3972
|
onClick: () => handleTabChange(tab.id),
|
|
4001
3973
|
className: cn(
|
|
4002
3974
|
"px-3 py-1 text-sm transition-colors cursor-pointer",
|
|
4003
|
-
currentTab === tab.id ? "rounded-
|
|
3975
|
+
currentTab === tab.id ? "rounded-berget-xs bg-white/10 text-berget-foreground font-medium" : "rounded text-berget-muted-foreground hover:text-berget-foreground font-medium"
|
|
4004
3976
|
),
|
|
4005
3977
|
children: tab.label
|
|
4006
3978
|
},
|