@bergetai/ui 0.1.89 → 0.1.91
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 +244 -709
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -163
- package/dist/index.d.ts +24 -163
- package/dist/index.js +255 -628
- 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 +37 -12
- package/package.json +2 -2
- package/dist/chunk-SJTRISLQ.js +0 -127
- package/dist/chunk-SJTRISLQ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
6
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
6
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
9
9
|
|
|
10
10
|
type Theme = 'dark' | 'light' | 'system';
|
|
@@ -41,18 +41,17 @@ interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
41
41
|
}
|
|
42
42
|
declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
/** Custom variants that extend the upstream shadcn primitive. */
|
|
44
|
+
/** Variants exposed by the Berget wrapper. */
|
|
46
45
|
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
47
|
-
|
|
46
|
+
/** Props for the Berget Button wrapper. */
|
|
47
|
+
interface ButtonProps extends Omit<React$1.ComponentProps<typeof Button$1>, 'variant' | 'ref'> {
|
|
48
48
|
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
49
|
variant?: CustomVariant;
|
|
50
|
-
/** Show a loading spinner. Hides text content on icon-only buttons. */
|
|
51
|
-
isLoading?: boolean;
|
|
52
50
|
/** Full width or auto width. */
|
|
53
51
|
width?: 'default' | 'full';
|
|
52
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
54
53
|
}
|
|
55
|
-
declare
|
|
54
|
+
declare function Button({ className, variant, size, asChild, width, type, ref, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
56
55
|
|
|
57
56
|
declare const typographyVariants: (props?: ({
|
|
58
57
|
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
@@ -205,7 +204,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
205
204
|
}): react_jsx_runtime.JSX.Element | null;
|
|
206
205
|
|
|
207
206
|
declare const linkVariants: (props?: ({
|
|
208
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
207
|
+
variant?: "default" | "secondary" | "ghost" | "primary" | "code" | "muted" | null | undefined;
|
|
209
208
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
210
209
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
211
210
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -217,26 +216,6 @@ interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, Var
|
|
|
217
216
|
}
|
|
218
217
|
declare const Link: React$1.ForwardRefExoticComponent<LinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
219
218
|
|
|
220
|
-
declare const sectionVariants: (props?: ({
|
|
221
|
-
padding?: "sm" | "md" | "lg" | "none" | "xl" | null | undefined;
|
|
222
|
-
background?: "muted" | "transparent" | null | undefined;
|
|
223
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
224
|
-
interface SectionProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
|
|
225
|
-
children: React$1.ReactNode;
|
|
226
|
-
}
|
|
227
|
-
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
228
|
-
|
|
229
|
-
interface SectionHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
230
|
-
title: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
descriptionVariant?: 'h2' | 'h3' | 'h4' | 'large' | 'body';
|
|
233
|
-
tagline?: string;
|
|
234
|
-
action?: React$1.ReactNode;
|
|
235
|
-
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
236
|
-
id?: string;
|
|
237
|
-
}
|
|
238
|
-
declare const SectionHeader: React$1.ForwardRefExoticComponent<SectionHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
239
|
-
|
|
240
219
|
declare const containerVariants: (props?: ({
|
|
241
220
|
size?: "sm" | "md" | "lg" | "full" | "xl" | null | undefined;
|
|
242
221
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
@@ -311,140 +290,6 @@ interface LanguageSelectProps {
|
|
|
311
290
|
}
|
|
312
291
|
declare const LanguageSelect: React$1.ForwardRefExoticComponent<LanguageSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
313
292
|
|
|
314
|
-
declare const headerVariants: (props?: ({
|
|
315
|
-
variant?: "default" | "transparent" | null | undefined;
|
|
316
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
317
|
-
interface HeaderLink {
|
|
318
|
-
label: string;
|
|
319
|
-
href: string;
|
|
320
|
-
icon?: LucideIcon;
|
|
321
|
-
active?: boolean;
|
|
322
|
-
}
|
|
323
|
-
interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
324
|
-
logo?: React$1.ReactNode;
|
|
325
|
-
links: HeaderLink[];
|
|
326
|
-
languageOptions: LanguageSelectOption[];
|
|
327
|
-
loginButton?: React$1.ReactNode;
|
|
328
|
-
ctaButton?: React$1.ReactNode;
|
|
329
|
-
currentLanguage?: string;
|
|
330
|
-
onLanguageChange?: (value: string) => void;
|
|
331
|
-
}
|
|
332
|
-
declare const Header: React$1.ForwardRefExoticComponent<HeaderProps & React$1.RefAttributes<HTMLElement>>;
|
|
333
|
-
|
|
334
|
-
declare const featureCardVariants: (props?: ({
|
|
335
|
-
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
336
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
337
|
-
interface FeatureCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof featureCardVariants> {
|
|
338
|
-
/**
|
|
339
|
-
* Icon to display
|
|
340
|
-
*/
|
|
341
|
-
icon?: LucideIcon;
|
|
342
|
-
/**
|
|
343
|
-
* Custom color for the icon (e.g., "#52B788" or "text-[#52B788]")
|
|
344
|
-
*/
|
|
345
|
-
iconColor?: string;
|
|
346
|
-
/**
|
|
347
|
-
* Title of the feature
|
|
348
|
-
*/
|
|
349
|
-
title: string;
|
|
350
|
-
/**
|
|
351
|
-
* Description of the feature
|
|
352
|
-
*/
|
|
353
|
-
description: string;
|
|
354
|
-
/**
|
|
355
|
-
* Optional badge text
|
|
356
|
-
*/
|
|
357
|
-
badge?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Optional link text
|
|
360
|
-
*/
|
|
361
|
-
linkText?: string;
|
|
362
|
-
/**
|
|
363
|
-
* Optional link href
|
|
364
|
-
*/
|
|
365
|
-
linkHref?: string;
|
|
366
|
-
/**
|
|
367
|
-
* Optional list items to display below description
|
|
368
|
-
*/
|
|
369
|
-
items?: string[];
|
|
370
|
-
/**
|
|
371
|
-
* Number of columns in the grid
|
|
372
|
-
* @default 3
|
|
373
|
-
*/
|
|
374
|
-
columns?: 1 | 2 | 3 | 4;
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* Feature Card Component
|
|
378
|
-
*
|
|
379
|
-
* Feature card with icon, badge, title, description, and optional list items.
|
|
380
|
-
* Based on Card highlight variant.
|
|
381
|
-
*
|
|
382
|
-
* **Use Cases:**
|
|
383
|
-
* - Feature showcases
|
|
384
|
-
* - Product highlights
|
|
385
|
-
* - Service descriptions
|
|
386
|
-
* - Benefits sections
|
|
387
|
-
*
|
|
388
|
-
* @example
|
|
389
|
-
* ```tsx
|
|
390
|
-
* <FeatureCard
|
|
391
|
-
* icon={Cpu}
|
|
392
|
-
* title="Dedicated Inference"
|
|
393
|
-
* description="Run and scale any model, including your own fine-tuned models on dedicated capacity."
|
|
394
|
-
* badge="Coming Soon"
|
|
395
|
-
* items={[
|
|
396
|
-
* "Customizable instances",
|
|
397
|
-
* "High-demand workloads",
|
|
398
|
-
* "Dedicated resources"
|
|
399
|
-
* ]}
|
|
400
|
-
* />
|
|
401
|
-
* ```
|
|
402
|
-
*/
|
|
403
|
-
declare const FeatureCard: React$1.ForwardRefExoticComponent<FeatureCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
404
|
-
interface FeatureCardsProps {
|
|
405
|
-
/**
|
|
406
|
-
* Array of feature cards to display
|
|
407
|
-
*/
|
|
408
|
-
features: FeatureCardProps[];
|
|
409
|
-
/**
|
|
410
|
-
* Number of columns in the grid
|
|
411
|
-
* @default 3
|
|
412
|
-
*/
|
|
413
|
-
columns?: 1 | 2 | 3 | 4;
|
|
414
|
-
/**
|
|
415
|
-
* Additional CSS classes
|
|
416
|
-
*/
|
|
417
|
-
className?: string;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Feature Cards Component
|
|
421
|
-
*
|
|
422
|
-
* Displays multiple feature cards in a responsive grid layout.
|
|
423
|
-
* Perfect for feature showcases, product highlights, and benefits sections.
|
|
424
|
-
*
|
|
425
|
-
* @example
|
|
426
|
-
* ```tsx
|
|
427
|
-
* const features = [
|
|
428
|
-
* {
|
|
429
|
-
* icon: Cpu,
|
|
430
|
-
* title: "Dedicated Inference",
|
|
431
|
-
* description: "Run and scale any model on dedicated capacity.",
|
|
432
|
-
* badge: "Coming Soon",
|
|
433
|
-
* items: ["Customizable instances", "High-demand workloads", "Dedicated resources"]
|
|
434
|
-
* },
|
|
435
|
-
* {
|
|
436
|
-
* icon: Zap,
|
|
437
|
-
* title: "Lightning Fast",
|
|
438
|
-
* description: "Optimized for speed and performance.",
|
|
439
|
-
* badge: "New"
|
|
440
|
-
* },
|
|
441
|
-
* ]
|
|
442
|
-
*
|
|
443
|
-
* <FeatureCards features={features} columns={3} />
|
|
444
|
-
* ```
|
|
445
|
-
*/
|
|
446
|
-
declare const FeatureCards: React$1.ForwardRefExoticComponent<FeatureCardsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
447
|
-
|
|
448
293
|
interface ListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
449
294
|
children: React$1.ReactNode;
|
|
450
295
|
}
|
|
@@ -556,4 +401,20 @@ interface TerminalExample {
|
|
|
556
401
|
}[];
|
|
557
402
|
}
|
|
558
403
|
|
|
559
|
-
|
|
404
|
+
interface WindowTab {
|
|
405
|
+
id: string;
|
|
406
|
+
label: string;
|
|
407
|
+
}
|
|
408
|
+
interface WindowFrameProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
409
|
+
/** Window title shown in the title bar when no tabs are provided */
|
|
410
|
+
title?: string;
|
|
411
|
+
/** Optional tabs for switching content */
|
|
412
|
+
tabs?: WindowTab[];
|
|
413
|
+
/** Controlled active tab ID */
|
|
414
|
+
activeTab?: string;
|
|
415
|
+
/** Callback when a tab is selected */
|
|
416
|
+
onTabChange?: (tabId: string) => void;
|
|
417
|
+
}
|
|
418
|
+
declare const WindowFrame: React$1.ForwardRefExoticComponent<WindowFrameProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
419
|
+
|
|
420
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, 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, 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, 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, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, type TerminalExample, TextArea, type TextAreaProps, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, gridVariants, linkVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
6
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
6
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
9
9
|
|
|
10
10
|
type Theme = 'dark' | 'light' | 'system';
|
|
@@ -41,18 +41,17 @@ interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
41
41
|
}
|
|
42
42
|
declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
/** Custom variants that extend the upstream shadcn primitive. */
|
|
44
|
+
/** Variants exposed by the Berget wrapper. */
|
|
46
45
|
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
47
|
-
|
|
46
|
+
/** Props for the Berget Button wrapper. */
|
|
47
|
+
interface ButtonProps extends Omit<React$1.ComponentProps<typeof Button$1>, 'variant' | 'ref'> {
|
|
48
48
|
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
49
|
variant?: CustomVariant;
|
|
50
|
-
/** Show a loading spinner. Hides text content on icon-only buttons. */
|
|
51
|
-
isLoading?: boolean;
|
|
52
50
|
/** Full width or auto width. */
|
|
53
51
|
width?: 'default' | 'full';
|
|
52
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
54
53
|
}
|
|
55
|
-
declare
|
|
54
|
+
declare function Button({ className, variant, size, asChild, width, type, ref, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
56
55
|
|
|
57
56
|
declare const typographyVariants: (props?: ({
|
|
58
57
|
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
@@ -205,7 +204,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
205
204
|
}): react_jsx_runtime.JSX.Element | null;
|
|
206
205
|
|
|
207
206
|
declare const linkVariants: (props?: ({
|
|
208
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
207
|
+
variant?: "default" | "secondary" | "ghost" | "primary" | "code" | "muted" | null | undefined;
|
|
209
208
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
210
209
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
211
210
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -217,26 +216,6 @@ interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, Var
|
|
|
217
216
|
}
|
|
218
217
|
declare const Link: React$1.ForwardRefExoticComponent<LinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
219
218
|
|
|
220
|
-
declare const sectionVariants: (props?: ({
|
|
221
|
-
padding?: "sm" | "md" | "lg" | "none" | "xl" | null | undefined;
|
|
222
|
-
background?: "muted" | "transparent" | null | undefined;
|
|
223
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
224
|
-
interface SectionProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof sectionVariants> {
|
|
225
|
-
children: React$1.ReactNode;
|
|
226
|
-
}
|
|
227
|
-
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
228
|
-
|
|
229
|
-
interface SectionHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
230
|
-
title: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
descriptionVariant?: 'h2' | 'h3' | 'h4' | 'large' | 'body';
|
|
233
|
-
tagline?: string;
|
|
234
|
-
action?: React$1.ReactNode;
|
|
235
|
-
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
236
|
-
id?: string;
|
|
237
|
-
}
|
|
238
|
-
declare const SectionHeader: React$1.ForwardRefExoticComponent<SectionHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
239
|
-
|
|
240
219
|
declare const containerVariants: (props?: ({
|
|
241
220
|
size?: "sm" | "md" | "lg" | "full" | "xl" | null | undefined;
|
|
242
221
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
@@ -311,140 +290,6 @@ interface LanguageSelectProps {
|
|
|
311
290
|
}
|
|
312
291
|
declare const LanguageSelect: React$1.ForwardRefExoticComponent<LanguageSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
313
292
|
|
|
314
|
-
declare const headerVariants: (props?: ({
|
|
315
|
-
variant?: "default" | "transparent" | null | undefined;
|
|
316
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
317
|
-
interface HeaderLink {
|
|
318
|
-
label: string;
|
|
319
|
-
href: string;
|
|
320
|
-
icon?: LucideIcon;
|
|
321
|
-
active?: boolean;
|
|
322
|
-
}
|
|
323
|
-
interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
324
|
-
logo?: React$1.ReactNode;
|
|
325
|
-
links: HeaderLink[];
|
|
326
|
-
languageOptions: LanguageSelectOption[];
|
|
327
|
-
loginButton?: React$1.ReactNode;
|
|
328
|
-
ctaButton?: React$1.ReactNode;
|
|
329
|
-
currentLanguage?: string;
|
|
330
|
-
onLanguageChange?: (value: string) => void;
|
|
331
|
-
}
|
|
332
|
-
declare const Header: React$1.ForwardRefExoticComponent<HeaderProps & React$1.RefAttributes<HTMLElement>>;
|
|
333
|
-
|
|
334
|
-
declare const featureCardVariants: (props?: ({
|
|
335
|
-
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
336
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
337
|
-
interface FeatureCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof featureCardVariants> {
|
|
338
|
-
/**
|
|
339
|
-
* Icon to display
|
|
340
|
-
*/
|
|
341
|
-
icon?: LucideIcon;
|
|
342
|
-
/**
|
|
343
|
-
* Custom color for the icon (e.g., "#52B788" or "text-[#52B788]")
|
|
344
|
-
*/
|
|
345
|
-
iconColor?: string;
|
|
346
|
-
/**
|
|
347
|
-
* Title of the feature
|
|
348
|
-
*/
|
|
349
|
-
title: string;
|
|
350
|
-
/**
|
|
351
|
-
* Description of the feature
|
|
352
|
-
*/
|
|
353
|
-
description: string;
|
|
354
|
-
/**
|
|
355
|
-
* Optional badge text
|
|
356
|
-
*/
|
|
357
|
-
badge?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Optional link text
|
|
360
|
-
*/
|
|
361
|
-
linkText?: string;
|
|
362
|
-
/**
|
|
363
|
-
* Optional link href
|
|
364
|
-
*/
|
|
365
|
-
linkHref?: string;
|
|
366
|
-
/**
|
|
367
|
-
* Optional list items to display below description
|
|
368
|
-
*/
|
|
369
|
-
items?: string[];
|
|
370
|
-
/**
|
|
371
|
-
* Number of columns in the grid
|
|
372
|
-
* @default 3
|
|
373
|
-
*/
|
|
374
|
-
columns?: 1 | 2 | 3 | 4;
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* Feature Card Component
|
|
378
|
-
*
|
|
379
|
-
* Feature card with icon, badge, title, description, and optional list items.
|
|
380
|
-
* Based on Card highlight variant.
|
|
381
|
-
*
|
|
382
|
-
* **Use Cases:**
|
|
383
|
-
* - Feature showcases
|
|
384
|
-
* - Product highlights
|
|
385
|
-
* - Service descriptions
|
|
386
|
-
* - Benefits sections
|
|
387
|
-
*
|
|
388
|
-
* @example
|
|
389
|
-
* ```tsx
|
|
390
|
-
* <FeatureCard
|
|
391
|
-
* icon={Cpu}
|
|
392
|
-
* title="Dedicated Inference"
|
|
393
|
-
* description="Run and scale any model, including your own fine-tuned models on dedicated capacity."
|
|
394
|
-
* badge="Coming Soon"
|
|
395
|
-
* items={[
|
|
396
|
-
* "Customizable instances",
|
|
397
|
-
* "High-demand workloads",
|
|
398
|
-
* "Dedicated resources"
|
|
399
|
-
* ]}
|
|
400
|
-
* />
|
|
401
|
-
* ```
|
|
402
|
-
*/
|
|
403
|
-
declare const FeatureCard: React$1.ForwardRefExoticComponent<FeatureCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
404
|
-
interface FeatureCardsProps {
|
|
405
|
-
/**
|
|
406
|
-
* Array of feature cards to display
|
|
407
|
-
*/
|
|
408
|
-
features: FeatureCardProps[];
|
|
409
|
-
/**
|
|
410
|
-
* Number of columns in the grid
|
|
411
|
-
* @default 3
|
|
412
|
-
*/
|
|
413
|
-
columns?: 1 | 2 | 3 | 4;
|
|
414
|
-
/**
|
|
415
|
-
* Additional CSS classes
|
|
416
|
-
*/
|
|
417
|
-
className?: string;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Feature Cards Component
|
|
421
|
-
*
|
|
422
|
-
* Displays multiple feature cards in a responsive grid layout.
|
|
423
|
-
* Perfect for feature showcases, product highlights, and benefits sections.
|
|
424
|
-
*
|
|
425
|
-
* @example
|
|
426
|
-
* ```tsx
|
|
427
|
-
* const features = [
|
|
428
|
-
* {
|
|
429
|
-
* icon: Cpu,
|
|
430
|
-
* title: "Dedicated Inference",
|
|
431
|
-
* description: "Run and scale any model on dedicated capacity.",
|
|
432
|
-
* badge: "Coming Soon",
|
|
433
|
-
* items: ["Customizable instances", "High-demand workloads", "Dedicated resources"]
|
|
434
|
-
* },
|
|
435
|
-
* {
|
|
436
|
-
* icon: Zap,
|
|
437
|
-
* title: "Lightning Fast",
|
|
438
|
-
* description: "Optimized for speed and performance.",
|
|
439
|
-
* badge: "New"
|
|
440
|
-
* },
|
|
441
|
-
* ]
|
|
442
|
-
*
|
|
443
|
-
* <FeatureCards features={features} columns={3} />
|
|
444
|
-
* ```
|
|
445
|
-
*/
|
|
446
|
-
declare const FeatureCards: React$1.ForwardRefExoticComponent<FeatureCardsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
447
|
-
|
|
448
293
|
interface ListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
449
294
|
children: React$1.ReactNode;
|
|
450
295
|
}
|
|
@@ -556,4 +401,20 @@ interface TerminalExample {
|
|
|
556
401
|
}[];
|
|
557
402
|
}
|
|
558
403
|
|
|
559
|
-
|
|
404
|
+
interface WindowTab {
|
|
405
|
+
id: string;
|
|
406
|
+
label: string;
|
|
407
|
+
}
|
|
408
|
+
interface WindowFrameProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
409
|
+
/** Window title shown in the title bar when no tabs are provided */
|
|
410
|
+
title?: string;
|
|
411
|
+
/** Optional tabs for switching content */
|
|
412
|
+
tabs?: WindowTab[];
|
|
413
|
+
/** Controlled active tab ID */
|
|
414
|
+
activeTab?: string;
|
|
415
|
+
/** Callback when a tab is selected */
|
|
416
|
+
onTabChange?: (tabId: string) => void;
|
|
417
|
+
}
|
|
418
|
+
declare const WindowFrame: React$1.ForwardRefExoticComponent<WindowFrameProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
419
|
+
|
|
420
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, 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, 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, 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, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, type TerminalExample, TextArea, type TextAreaProps, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, gridVariants, linkVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
|