@bergetai/ui 0.1.78
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/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/chunk-YEGBDRHW.js +127 -0
- package/dist/chunk-YEGBDRHW.js.map +1 -0
- package/dist/index.cjs +2717 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +547 -0
- package/dist/index.d.ts +547 -0
- package/dist/index.js +2496 -0
- package/dist/index.js.map +1 -0
- package/dist/shiki.cjs +165 -0
- package/dist/shiki.cjs.map +1 -0
- package/dist/shiki.d.cts +10 -0
- package/dist/shiki.d.ts +10 -0
- package/dist/shiki.js +11 -0
- package/dist/shiki.js.map +1 -0
- package/dist/styles/index.css +919 -0
- package/package.json +64 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
6
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
9
|
+
|
|
10
|
+
declare const buttonVariants: (props?: ({
|
|
11
|
+
variant?: "default" | "destructive" | "secondary" | "icon" | "primary" | "highlight" | null | undefined;
|
|
12
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
13
|
+
width?: "default" | "full" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
+
type BaseButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'aria-label' | 'role'> & {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
size?: VariantProps<typeof buttonVariants>['size'];
|
|
19
|
+
width?: VariantProps<typeof buttonVariants>['width'];
|
|
20
|
+
};
|
|
21
|
+
type IconButtonProps = BaseButtonProps & {
|
|
22
|
+
variant: 'icon';
|
|
23
|
+
'aria-label': string;
|
|
24
|
+
};
|
|
25
|
+
type RegularButtonProps = BaseButtonProps & {
|
|
26
|
+
variant?: Exclude<VariantProps<typeof buttonVariants>['variant'], 'icon'>;
|
|
27
|
+
'aria-label'?: string;
|
|
28
|
+
};
|
|
29
|
+
type ButtonProps = IconButtonProps | RegularButtonProps;
|
|
30
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
|
|
32
|
+
declare const typographyVariants: (props?: ({
|
|
33
|
+
variant?: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "body" | "xs" | "mono" | "code" | null | undefined;
|
|
34
|
+
color?: "default" | "muted" | "dim" | null | undefined;
|
|
35
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
36
|
+
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariants> {
|
|
37
|
+
as?: React$1.ElementType;
|
|
38
|
+
}
|
|
39
|
+
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
|
|
40
|
+
|
|
41
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
43
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
|
|
47
|
+
declare const cardVariants: (props?: ({
|
|
48
|
+
variant?: "outlined" | "filled" | null | undefined;
|
|
49
|
+
padding?: "sm" | "lg" | "none" | "md" | null | undefined;
|
|
50
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
51
|
+
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
52
|
+
}
|
|
53
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
|
|
55
|
+
declare const badgeVariants: (props?: ({
|
|
56
|
+
variant?: "default" | "tag" | "semantic" | null | undefined;
|
|
57
|
+
status?: "default" | "error" | "active" | "tagDefault" | "tagActive" | "tagGhost" | "info" | "success" | "warning" | null | undefined;
|
|
58
|
+
size?: "sm" | "md" | null | undefined;
|
|
59
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
61
|
+
icon?: React$1.ReactNode;
|
|
62
|
+
iconGap?: number;
|
|
63
|
+
}
|
|
64
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
|
|
66
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
67
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
68
|
+
|
|
69
|
+
declare const alertVariants: (props?: ({
|
|
70
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
71
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
|
+
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
73
|
+
}
|
|
74
|
+
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
type AlertTitleProps = React$1.HTMLAttributes<HTMLHeadingElement>;
|
|
76
|
+
type AlertDescriptionProps = React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
77
|
+
|
|
78
|
+
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
79
|
+
icon?: React$1.ReactNode;
|
|
80
|
+
actionButton?: React$1.ReactNode;
|
|
81
|
+
label?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
error?: string;
|
|
84
|
+
}
|
|
85
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
86
|
+
|
|
87
|
+
declare const checkboxVariants: (props?: ({
|
|
88
|
+
variant?: "default" | "error" | "success" | null | undefined;
|
|
89
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
90
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
91
|
+
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, 'className'>, VariantProps<typeof checkboxVariants> {
|
|
92
|
+
label?: string;
|
|
93
|
+
description?: string;
|
|
94
|
+
error?: string;
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
|
+
|
|
99
|
+
declare const switchRootVariants: (props?: ({
|
|
100
|
+
variant?: "default" | "primary" | "subtle" | null | undefined;
|
|
101
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
102
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
+
declare const switchThumbVariants: (props?: ({
|
|
104
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
105
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
106
|
+
interface SwitchProps extends Omit<React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, 'className'>, VariantProps<typeof switchRootVariants> {
|
|
107
|
+
label?: string;
|
|
108
|
+
description?: string;
|
|
109
|
+
error?: string;
|
|
110
|
+
className?: string;
|
|
111
|
+
}
|
|
112
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
113
|
+
|
|
114
|
+
declare const selectVariants: (props?: ({
|
|
115
|
+
variant?: "default" | "primary" | "muted" | "subtle" | null | undefined;
|
|
116
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
118
|
+
interface SelectOption {
|
|
119
|
+
value: string;
|
|
120
|
+
label: string;
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
}
|
|
123
|
+
interface SelectProps extends VariantProps<typeof selectVariants> {
|
|
124
|
+
label?: string;
|
|
125
|
+
description?: string;
|
|
126
|
+
error?: string;
|
|
127
|
+
placeholder?: string;
|
|
128
|
+
options: SelectOption[];
|
|
129
|
+
id?: string;
|
|
130
|
+
disabled?: boolean;
|
|
131
|
+
value?: string;
|
|
132
|
+
defaultValue?: string;
|
|
133
|
+
onValueChange?: (value: string) => void;
|
|
134
|
+
name?: string;
|
|
135
|
+
required?: boolean;
|
|
136
|
+
className?: string;
|
|
137
|
+
}
|
|
138
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
139
|
+
|
|
140
|
+
declare const textAreaVariants: (props?: ({
|
|
141
|
+
variant?: "default" | "primary" | "muted" | "subtle" | null | undefined;
|
|
142
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
143
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
144
|
+
interface TextAreaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
145
|
+
label?: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
error?: string;
|
|
148
|
+
placeholder?: string;
|
|
149
|
+
maxLength?: number;
|
|
150
|
+
showCount?: boolean;
|
|
151
|
+
rows?: number;
|
|
152
|
+
icon?: React$1.ReactNode;
|
|
153
|
+
secondaryIcon?: React$1.ReactNode;
|
|
154
|
+
actionButton?: React$1.ReactNode;
|
|
155
|
+
}
|
|
156
|
+
declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
157
|
+
|
|
158
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
159
|
+
|
|
160
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): react_jsx_runtime.JSX.Element;
|
|
161
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
162
|
+
variant?: 'legend' | 'label';
|
|
163
|
+
}): react_jsx_runtime.JSX.Element;
|
|
164
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare const fieldVariants: (props?: ({
|
|
166
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
167
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
168
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
|
|
169
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
171
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
172
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
173
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
|
|
174
|
+
children?: React.ReactNode;
|
|
175
|
+
}): react_jsx_runtime.JSX.Element;
|
|
176
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
|
|
177
|
+
errors?: Array<{
|
|
178
|
+
message?: string;
|
|
179
|
+
} | undefined>;
|
|
180
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
181
|
+
|
|
182
|
+
declare const linkVariants: (props?: ({
|
|
183
|
+
variant?: "default" | "secondary" | "ghost" | "primary" | "code" | "muted" | null | undefined;
|
|
184
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
185
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
186
|
+
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
187
|
+
children: React$1.ReactNode;
|
|
188
|
+
external?: boolean;
|
|
189
|
+
icon?: React$1.ReactNode;
|
|
190
|
+
showExternalIcon?: boolean;
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
}
|
|
193
|
+
declare const Link: React$1.ForwardRefExoticComponent<LinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
194
|
+
|
|
195
|
+
declare const sectionVariants: (props?: ({
|
|
196
|
+
padding?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
197
|
+
background?: "muted" | "transparent" | null | undefined;
|
|
198
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
199
|
+
interface SectionProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
|
|
200
|
+
children: React$1.ReactNode;
|
|
201
|
+
}
|
|
202
|
+
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
203
|
+
|
|
204
|
+
interface SectionHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
205
|
+
title: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
descriptionVariant?: 'h2' | 'h3' | 'h4' | 'large' | 'body';
|
|
208
|
+
tagline?: string;
|
|
209
|
+
action?: React$1.ReactNode;
|
|
210
|
+
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
211
|
+
id?: string;
|
|
212
|
+
}
|
|
213
|
+
declare const SectionHeader: React$1.ForwardRefExoticComponent<SectionHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
|
|
215
|
+
declare const containerVariants: (props?: ({
|
|
216
|
+
size?: "sm" | "lg" | "full" | "md" | "xl" | null | undefined;
|
|
217
|
+
padding?: "sm" | "lg" | "none" | "md" | null | undefined;
|
|
218
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
219
|
+
interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
|
|
220
|
+
children: React$1.ReactNode;
|
|
221
|
+
asChild?: boolean;
|
|
222
|
+
}
|
|
223
|
+
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
224
|
+
|
|
225
|
+
declare const gridVariants: (props?: ({
|
|
226
|
+
align?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
227
|
+
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
228
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
229
|
+
type SpacingScale$1 = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
230
|
+
type GridColsScale = 1 | 2 | 3 | 4 | 6 | 12;
|
|
231
|
+
type GridRowsScale = 1 | 2 | 3 | 4 | 5 | 6;
|
|
232
|
+
interface GridProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof gridVariants> {
|
|
233
|
+
children: React$1.ReactNode;
|
|
234
|
+
cols?: GridColsScale;
|
|
235
|
+
rows?: GridRowsScale;
|
|
236
|
+
gap?: SpacingScale$1;
|
|
237
|
+
gapX?: SpacingScale$1;
|
|
238
|
+
gapY?: SpacingScale$1;
|
|
239
|
+
asChild?: boolean;
|
|
240
|
+
}
|
|
241
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLElement>>;
|
|
242
|
+
|
|
243
|
+
declare const boxVariants: (props?: ({
|
|
244
|
+
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
245
|
+
align?: "end" | "start" | "baseline" | "center" | "stretch" | null | undefined;
|
|
246
|
+
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
247
|
+
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
248
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
249
|
+
type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
250
|
+
interface BoxProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof boxVariants> {
|
|
251
|
+
children: React$1.ReactNode;
|
|
252
|
+
gap?: SpacingScale;
|
|
253
|
+
asChild?: boolean;
|
|
254
|
+
}
|
|
255
|
+
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLElement>>;
|
|
256
|
+
|
|
257
|
+
interface BergetLogoProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
258
|
+
/** Shape variant */
|
|
259
|
+
variant?: 'logotype' | 'symbol';
|
|
260
|
+
/** Fill color */
|
|
261
|
+
color?: 'white' | 'black';
|
|
262
|
+
/** Size (height) in pixels */
|
|
263
|
+
size?: number;
|
|
264
|
+
}
|
|
265
|
+
declare const BergetLogo: React$1.ForwardRefExoticComponent<BergetLogoProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
266
|
+
|
|
267
|
+
interface IconProps extends Omit<LucideProps, 'size'> {
|
|
268
|
+
icon: LucideIcon;
|
|
269
|
+
size: 16 | 24 | 32;
|
|
270
|
+
className?: string;
|
|
271
|
+
'aria-label'?: string;
|
|
272
|
+
'aria-hidden'?: boolean;
|
|
273
|
+
}
|
|
274
|
+
declare const Icon: React$1.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
275
|
+
|
|
276
|
+
interface LanguageSelectOption {
|
|
277
|
+
value: string;
|
|
278
|
+
label: string;
|
|
279
|
+
disabled?: boolean;
|
|
280
|
+
}
|
|
281
|
+
interface LanguageSelectProps {
|
|
282
|
+
options: LanguageSelectOption[];
|
|
283
|
+
value?: string;
|
|
284
|
+
onValueChange?: (value: string) => void;
|
|
285
|
+
className?: string;
|
|
286
|
+
}
|
|
287
|
+
declare const LanguageSelect: React$1.ForwardRefExoticComponent<LanguageSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
288
|
+
|
|
289
|
+
declare const headerVariants: (props?: ({
|
|
290
|
+
variant?: "default" | "transparent" | null | undefined;
|
|
291
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
292
|
+
interface HeaderLink {
|
|
293
|
+
label: string;
|
|
294
|
+
href: string;
|
|
295
|
+
icon?: LucideIcon;
|
|
296
|
+
active?: boolean;
|
|
297
|
+
}
|
|
298
|
+
interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
299
|
+
logo?: React$1.ReactNode;
|
|
300
|
+
links: HeaderLink[];
|
|
301
|
+
languageOptions: LanguageSelectOption[];
|
|
302
|
+
loginButton?: React$1.ReactNode;
|
|
303
|
+
ctaButton?: React$1.ReactNode;
|
|
304
|
+
currentLanguage?: string;
|
|
305
|
+
onLanguageChange?: (value: string) => void;
|
|
306
|
+
}
|
|
307
|
+
declare const Header: React$1.ForwardRefExoticComponent<HeaderProps & React$1.RefAttributes<HTMLElement>>;
|
|
308
|
+
|
|
309
|
+
declare const featureCardVariants: (props?: ({
|
|
310
|
+
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
311
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
312
|
+
interface FeatureCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof featureCardVariants> {
|
|
313
|
+
/**
|
|
314
|
+
* Icon to display
|
|
315
|
+
*/
|
|
316
|
+
icon?: LucideIcon;
|
|
317
|
+
/**
|
|
318
|
+
* Custom color for the icon (e.g., "#52B788" or "text-[#52B788]")
|
|
319
|
+
*/
|
|
320
|
+
iconColor?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Title of the feature
|
|
323
|
+
*/
|
|
324
|
+
title: string;
|
|
325
|
+
/**
|
|
326
|
+
* Description of the feature
|
|
327
|
+
*/
|
|
328
|
+
description: string;
|
|
329
|
+
/**
|
|
330
|
+
* Optional badge text
|
|
331
|
+
*/
|
|
332
|
+
badge?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Optional link text
|
|
335
|
+
*/
|
|
336
|
+
linkText?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Optional link href
|
|
339
|
+
*/
|
|
340
|
+
linkHref?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Optional list items to display below description
|
|
343
|
+
*/
|
|
344
|
+
items?: string[];
|
|
345
|
+
/**
|
|
346
|
+
* Number of columns in the grid
|
|
347
|
+
* @default 3
|
|
348
|
+
*/
|
|
349
|
+
columns?: 1 | 2 | 3 | 4;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Feature Card Component
|
|
353
|
+
*
|
|
354
|
+
* Feature card with icon, badge, title, description, and optional list items.
|
|
355
|
+
* Based on Card highlight variant.
|
|
356
|
+
*
|
|
357
|
+
* **Use Cases:**
|
|
358
|
+
* - Feature showcases
|
|
359
|
+
* - Product highlights
|
|
360
|
+
* - Service descriptions
|
|
361
|
+
* - Benefits sections
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* ```tsx
|
|
365
|
+
* <FeatureCard
|
|
366
|
+
* icon={Cpu}
|
|
367
|
+
* title="Dedicated Inference"
|
|
368
|
+
* description="Run and scale any model, including your own fine-tuned models on dedicated capacity."
|
|
369
|
+
* badge="Coming Soon"
|
|
370
|
+
* items={[
|
|
371
|
+
* "Customizable instances",
|
|
372
|
+
* "High-demand workloads",
|
|
373
|
+
* "Dedicated resources"
|
|
374
|
+
* ]}
|
|
375
|
+
* />
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
378
|
+
declare const FeatureCard: React$1.ForwardRefExoticComponent<FeatureCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
379
|
+
interface FeatureCardsProps {
|
|
380
|
+
/**
|
|
381
|
+
* Array of feature cards to display
|
|
382
|
+
*/
|
|
383
|
+
features: FeatureCardProps[];
|
|
384
|
+
/**
|
|
385
|
+
* Number of columns in the grid
|
|
386
|
+
* @default 3
|
|
387
|
+
*/
|
|
388
|
+
columns?: 1 | 2 | 3 | 4;
|
|
389
|
+
/**
|
|
390
|
+
* Additional CSS classes
|
|
391
|
+
*/
|
|
392
|
+
className?: string;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Feature Cards Component
|
|
396
|
+
*
|
|
397
|
+
* Displays multiple feature cards in a responsive grid layout.
|
|
398
|
+
* Perfect for feature showcases, product highlights, and benefits sections.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```tsx
|
|
402
|
+
* const features = [
|
|
403
|
+
* {
|
|
404
|
+
* icon: Cpu,
|
|
405
|
+
* title: "Dedicated Inference",
|
|
406
|
+
* description: "Run and scale any model on dedicated capacity.",
|
|
407
|
+
* badge: "Coming Soon",
|
|
408
|
+
* items: ["Customizable instances", "High-demand workloads", "Dedicated resources"]
|
|
409
|
+
* },
|
|
410
|
+
* {
|
|
411
|
+
* icon: Zap,
|
|
412
|
+
* title: "Lightning Fast",
|
|
413
|
+
* description: "Optimized for speed and performance.",
|
|
414
|
+
* badge: "New"
|
|
415
|
+
* },
|
|
416
|
+
* ]
|
|
417
|
+
*
|
|
418
|
+
* <FeatureCards features={features} columns={3} />
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
declare const FeatureCards: React$1.ForwardRefExoticComponent<FeatureCardsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
422
|
+
|
|
423
|
+
interface ListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
424
|
+
children: React$1.ReactNode;
|
|
425
|
+
}
|
|
426
|
+
declare const List: React$1.ForwardRefExoticComponent<ListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
427
|
+
interface ListItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
428
|
+
icon?: React$1.ReactNode;
|
|
429
|
+
children: React$1.ReactNode;
|
|
430
|
+
interactive?: boolean;
|
|
431
|
+
}
|
|
432
|
+
declare const ListItem: React$1.ForwardRefExoticComponent<ListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
433
|
+
interface ListHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
434
|
+
children: React$1.ReactNode;
|
|
435
|
+
}
|
|
436
|
+
declare const ListHeader: React$1.ForwardRefExoticComponent<ListHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
437
|
+
interface FeatureListProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
438
|
+
items: string[];
|
|
439
|
+
variant?: 'bullet' | 'checkmark';
|
|
440
|
+
}
|
|
441
|
+
declare const FeatureList: React$1.ForwardRefExoticComponent<FeatureListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
442
|
+
|
|
443
|
+
declare const heroBlockVariants: (props?: ({
|
|
444
|
+
variant?: "default" | "moss" | "gradient" | null | undefined;
|
|
445
|
+
withPattern?: boolean | null | undefined;
|
|
446
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
447
|
+
interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof heroBlockVariants> {
|
|
448
|
+
/**
|
|
449
|
+
* Optional icon for the tagline badge
|
|
450
|
+
*/
|
|
451
|
+
taglineIcon?: LucideIcon;
|
|
452
|
+
/**
|
|
453
|
+
* Tagline text (appears in badge)
|
|
454
|
+
*/
|
|
455
|
+
tagline?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Main hero title
|
|
458
|
+
*/
|
|
459
|
+
title: string;
|
|
460
|
+
/**
|
|
461
|
+
* Hero description
|
|
462
|
+
*/
|
|
463
|
+
description: string;
|
|
464
|
+
/**
|
|
465
|
+
* Call-to-action buttons
|
|
466
|
+
*/
|
|
467
|
+
actions?: React$1.ReactNode;
|
|
468
|
+
/**
|
|
469
|
+
* Show pattern background
|
|
470
|
+
* @default true
|
|
471
|
+
*/
|
|
472
|
+
withPattern?: boolean;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Hero Block Component
|
|
476
|
+
*
|
|
477
|
+
* Full-width hero section with optional grid background, tagline, title, description, and CTAs.
|
|
478
|
+
* Based on the pattern from why-berget and other landing pages.
|
|
479
|
+
*
|
|
480
|
+
* **Variants:**
|
|
481
|
+
* - `default` - Simple gradient
|
|
482
|
+
* - `moss` - Green gradient overlay
|
|
483
|
+
* - `gradient` - Diagonal gradient
|
|
484
|
+
*
|
|
485
|
+
* **Features:**
|
|
486
|
+
* - Optional grid background
|
|
487
|
+
* - Tagline badge with optional icon
|
|
488
|
+
* - Responsive sizing
|
|
489
|
+
* - CTA button slots
|
|
490
|
+
*
|
|
491
|
+
* **Use Cases:**
|
|
492
|
+
* - Page heroes
|
|
493
|
+
* - Landing page intros
|
|
494
|
+
* - Feature announcements
|
|
495
|
+
* - Product showcases
|
|
496
|
+
*
|
|
497
|
+
* @example
|
|
498
|
+
* ```tsx
|
|
499
|
+
* <HeroBlock
|
|
500
|
+
* tagline="Built for Europe"
|
|
501
|
+
* taglineIcon={Shield}
|
|
502
|
+
* title="European AI Infrastructure"
|
|
503
|
+
* description="Deploy and scale AI models with data residency in Europe"
|
|
504
|
+
* variant="moss"
|
|
505
|
+
* actions={
|
|
506
|
+
* <>
|
|
507
|
+
* <Button size="lg">Get Started</Button>
|
|
508
|
+
* <Button size="lg" variant="outline">Learn More</Button>
|
|
509
|
+
* </>
|
|
510
|
+
* }
|
|
511
|
+
* />
|
|
512
|
+
* ```
|
|
513
|
+
*/
|
|
514
|
+
declare const HeroBlock: React$1.ForwardRefExoticComponent<HeroBlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
515
|
+
|
|
516
|
+
declare const statCardVariants: (props?: ({
|
|
517
|
+
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
518
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
519
|
+
interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statCardVariants> {
|
|
520
|
+
icon?: LucideIcon;
|
|
521
|
+
iconColor?: string;
|
|
522
|
+
title: string;
|
|
523
|
+
description: string;
|
|
524
|
+
stats: string;
|
|
525
|
+
badge?: string;
|
|
526
|
+
}
|
|
527
|
+
declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
529
|
+
interface CodeBlockProps {
|
|
530
|
+
code: string;
|
|
531
|
+
language?: string;
|
|
532
|
+
title?: string;
|
|
533
|
+
className?: string;
|
|
534
|
+
}
|
|
535
|
+
declare function CodeBlock({ code, language, title, className }: CodeBlockProps): react_jsx_runtime.JSX.Element;
|
|
536
|
+
|
|
537
|
+
interface TerminalExample {
|
|
538
|
+
title: string;
|
|
539
|
+
description: string;
|
|
540
|
+
commands: {
|
|
541
|
+
command: string;
|
|
542
|
+
output?: string[];
|
|
543
|
+
delay?: number;
|
|
544
|
+
}[];
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, BergetLogo as BergetLogotype, type BergetLogoProps as BergetLogotypeProps, BergetLogo as BergetSymbol, type BergetLogoProps as BergetSymbolProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, FeatureCard, type FeatureCardProps, FeatureCards, type FeatureCardsProps, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Header, type HeaderLink, type HeaderProps, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps, StatCard, type StatCardProps, Switch, type SwitchProps, type TerminalExample, TextArea, type TextAreaProps, Typography, type TypographyProps, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, gridVariants, linkVariants, sectionVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants };
|