@bergetai/ui 0.5.0 → 0.7.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.d.cts CHANGED
@@ -92,6 +92,87 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
92
92
  }
93
93
  declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
94
94
 
95
+ /**
96
+ * Model families with a bundled brand mark, keyed by the `owned_by` values
97
+ * returned by `GET /v1/models` (normalized: lowercase, aliases below).
98
+ */
99
+ type ModelLogoProvider = 'qwen' | 'mistral' | 'kimi' | 'google' | 'zai' | 'berget';
100
+ /** Fallback model categories for models without a brand mark, matching
101
+ * the `model_type` values in `GET /v1/models` (plus `vision`, which lives
102
+ * in per-model capabilities). */
103
+ type ModelCategory = 'text' | 'speech-to-text' | 'embedding' | 'rerank' | 'system-one' | 'vision';
104
+ declare const categoryLabels: Record<ModelCategory, string>;
105
+ interface ModelLogoProps extends React$1.SVGAttributes<SVGSVGElement> {
106
+ /**
107
+ * Model family to render a brand mark for. Accepts the `owned_by` values
108
+ * from `GET /v1/models` (e.g. `'moonshotai'`) case-insensitively.
109
+ */
110
+ provider?: string;
111
+ /** Fallback category when `provider` is missing or unknown. */
112
+ category?: ModelCategory;
113
+ /** Size (width and height) in pixels. */
114
+ size?: number;
115
+ }
116
+ /**
117
+ * ModelLogo — brand mark for a supported model family, falling back to a
118
+ * category icon for everything else. Renders nothing if no `provider` and
119
+ * no `category` match.
120
+ */
121
+ declare const ModelLogo: React$1.ForwardRefExoticComponent<ModelLogoProps & React$1.RefAttributes<SVGSVGElement>>;
122
+
123
+ /**
124
+ * ModelCard — a whole-card link tile for presenting AI models in a grid:
125
+ * provider mark, category eyebrow, model name, optional lifecycle tab,
126
+ * per-unit price columns, and fine-print capability facts.
127
+ *
128
+ * Presentational only: all copy is passed in as props; the card itself
129
+ * owns no strings and no domain types.
130
+ */
131
+ /** Lifecycle status shown as a corner tab on the card. */
132
+ type ModelLifecycle = 'preview' | 'active' | 'deprecated';
133
+
134
+ interface ModelCardProps extends Omit<React$1.ComponentProps<'a'>, 'title' | 'children'> {
135
+ /** Provider mark, rendered in a bordered square at the top of the card. */
136
+ icon?: React$1.ReactNode;
137
+ /**
138
+ * Model family for the icon square — resolved to a bundled brand mark
139
+ * (e.g. `'mistralai'`, `'moonshotai'`, `'berget'`). Ignored when `icon`
140
+ * is set.
141
+ */
142
+ provider?: string;
143
+ /** Fallback category for the icon square when no brand mark exists
144
+ * (maps to the `model_type` values from `GET /v1/models`). */
145
+ category?: ModelCategory;
146
+ /** Small category label above the title (rendered uppercase). */
147
+ eyebrow?: string;
148
+ /** The model name — rendered as an `h3` and truncated when too long. */
149
+ title: React$1.ReactNode;
150
+ /**
151
+ * Lifecycle status rendered as a corner tab: `preview` (yellow),
152
+ * `active` (green), `deprecated` (gray).
153
+ */
154
+ lifecycle?: ModelLifecycle;
155
+ /** Secondary line under the title, e.g. the provider name. */
156
+ description?: React$1.ReactNode;
157
+ /** Label-above-value columns, e.g. per-million-token input/output prices. */
158
+ columns?: {
159
+ label: React$1.ReactNode;
160
+ value: React$1.ReactNode;
161
+ }[];
162
+ /**
163
+ * Fine-print capability facts rendered in one uppercase row with
164
+ * square separators drawn by the card, e.g. ['Vision', '262K context'].
165
+ */
166
+ meta?: React$1.ReactNode[];
167
+ /** Link target for the whole card. */
168
+ href: string;
169
+ /** Opens the link in a new tab (adds `target`/`rel`). */
170
+ external?: boolean;
171
+ /** Extra content rendered at the bottom of the card. */
172
+ children?: React$1.ReactNode;
173
+ }
174
+ declare const ModelCard: React$1.ForwardRefExoticComponent<Omit<ModelCardProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
175
+
95
176
  declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
96
177
  declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
97
178
 
@@ -664,4 +745,4 @@ interface FogIllustrationProps {
664
745
  }
665
746
  declare const FogIllustration: ({ palette, speed, className }: FogIllustrationProps) => react_jsx_runtime.JSX.Element;
666
747
 
667
- export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, 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, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
748
+ export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, ModelCard, type ModelCardProps, type ModelCategory, type ModelLifecycle, ModelLogo, type ModelLogoProps, type ModelLogoProvider, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, 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, categoryLabels, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
package/dist/index.d.ts CHANGED
@@ -92,6 +92,87 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
92
92
  }
93
93
  declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
94
94
 
95
+ /**
96
+ * Model families with a bundled brand mark, keyed by the `owned_by` values
97
+ * returned by `GET /v1/models` (normalized: lowercase, aliases below).
98
+ */
99
+ type ModelLogoProvider = 'qwen' | 'mistral' | 'kimi' | 'google' | 'zai' | 'berget';
100
+ /** Fallback model categories for models without a brand mark, matching
101
+ * the `model_type` values in `GET /v1/models` (plus `vision`, which lives
102
+ * in per-model capabilities). */
103
+ type ModelCategory = 'text' | 'speech-to-text' | 'embedding' | 'rerank' | 'system-one' | 'vision';
104
+ declare const categoryLabels: Record<ModelCategory, string>;
105
+ interface ModelLogoProps extends React$1.SVGAttributes<SVGSVGElement> {
106
+ /**
107
+ * Model family to render a brand mark for. Accepts the `owned_by` values
108
+ * from `GET /v1/models` (e.g. `'moonshotai'`) case-insensitively.
109
+ */
110
+ provider?: string;
111
+ /** Fallback category when `provider` is missing or unknown. */
112
+ category?: ModelCategory;
113
+ /** Size (width and height) in pixels. */
114
+ size?: number;
115
+ }
116
+ /**
117
+ * ModelLogo — brand mark for a supported model family, falling back to a
118
+ * category icon for everything else. Renders nothing if no `provider` and
119
+ * no `category` match.
120
+ */
121
+ declare const ModelLogo: React$1.ForwardRefExoticComponent<ModelLogoProps & React$1.RefAttributes<SVGSVGElement>>;
122
+
123
+ /**
124
+ * ModelCard — a whole-card link tile for presenting AI models in a grid:
125
+ * provider mark, category eyebrow, model name, optional lifecycle tab,
126
+ * per-unit price columns, and fine-print capability facts.
127
+ *
128
+ * Presentational only: all copy is passed in as props; the card itself
129
+ * owns no strings and no domain types.
130
+ */
131
+ /** Lifecycle status shown as a corner tab on the card. */
132
+ type ModelLifecycle = 'preview' | 'active' | 'deprecated';
133
+
134
+ interface ModelCardProps extends Omit<React$1.ComponentProps<'a'>, 'title' | 'children'> {
135
+ /** Provider mark, rendered in a bordered square at the top of the card. */
136
+ icon?: React$1.ReactNode;
137
+ /**
138
+ * Model family for the icon square — resolved to a bundled brand mark
139
+ * (e.g. `'mistralai'`, `'moonshotai'`, `'berget'`). Ignored when `icon`
140
+ * is set.
141
+ */
142
+ provider?: string;
143
+ /** Fallback category for the icon square when no brand mark exists
144
+ * (maps to the `model_type` values from `GET /v1/models`). */
145
+ category?: ModelCategory;
146
+ /** Small category label above the title (rendered uppercase). */
147
+ eyebrow?: string;
148
+ /** The model name — rendered as an `h3` and truncated when too long. */
149
+ title: React$1.ReactNode;
150
+ /**
151
+ * Lifecycle status rendered as a corner tab: `preview` (yellow),
152
+ * `active` (green), `deprecated` (gray).
153
+ */
154
+ lifecycle?: ModelLifecycle;
155
+ /** Secondary line under the title, e.g. the provider name. */
156
+ description?: React$1.ReactNode;
157
+ /** Label-above-value columns, e.g. per-million-token input/output prices. */
158
+ columns?: {
159
+ label: React$1.ReactNode;
160
+ value: React$1.ReactNode;
161
+ }[];
162
+ /**
163
+ * Fine-print capability facts rendered in one uppercase row with
164
+ * square separators drawn by the card, e.g. ['Vision', '262K context'].
165
+ */
166
+ meta?: React$1.ReactNode[];
167
+ /** Link target for the whole card. */
168
+ href: string;
169
+ /** Opens the link in a new tab (adds `target`/`rel`). */
170
+ external?: boolean;
171
+ /** Extra content rendered at the bottom of the card. */
172
+ children?: React$1.ReactNode;
173
+ }
174
+ declare const ModelCard: React$1.ForwardRefExoticComponent<Omit<ModelCardProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
175
+
95
176
  declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
96
177
  declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
97
178
 
@@ -664,4 +745,4 @@ interface FogIllustrationProps {
664
745
  }
665
746
  declare const FogIllustration: ({ palette, speed, className }: FogIllustrationProps) => react_jsx_runtime.JSX.Element;
666
747
 
667
- export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, 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, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
748
+ export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FOG_BRAND_PALETTE, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FogIllustration, type FogIllustrationProps, type FogPalette, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, ModelCard, type ModelCardProps, type ModelCategory, type ModelLifecycle, ModelLogo, type ModelLogoProps, type ModelLogoProvider, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, 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, categoryLabels, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };