@bergetai/ui 0.11.4 → 0.12.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
@@ -9,6 +9,8 @@ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
9
9
  import { Menu } from '@base-ui/react/menu';
10
10
  import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
11
11
  import { useRender } from '@base-ui/react/use-render';
12
+ import { Separator as Separator$1 } from '@base-ui/react/separator';
13
+ import { Tooltip } from '@base-ui/react/tooltip';
12
14
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
13
15
  import { Switch as Switch$1 } from '@base-ui/react/switch';
14
16
  import { LucideProps, LucideIcon } from 'lucide-react';
@@ -327,6 +329,119 @@ declare function NavigationMenuTrigger({ className, children, ...props }: Naviga
327
329
  declare function NavigationMenuLink({ className, ...props }: NavigationMenu$1.Link.Props): react_jsx_runtime.JSX.Element;
328
330
  declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenu$1.Positioner.Props): react_jsx_runtime.JSX.Element;
329
331
 
332
+ declare function Input$1({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
333
+
334
+ declare function Separator({ className, orientation, ...props }: Separator$1.Props): react_jsx_runtime.JSX.Element;
335
+
336
+ declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
337
+
338
+ type SidebarContextProps = {
339
+ state: "expanded" | "collapsed";
340
+ open: boolean;
341
+ setOpen: (open: boolean) => void;
342
+ openMobile: boolean;
343
+ setOpenMobile: (open: boolean) => void;
344
+ isMobile: boolean;
345
+ toggleSidebar: () => void;
346
+ };
347
+ declare function useSidebar(): SidebarContextProps;
348
+ declare function SidebarProvider$1({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<"div"> & {
349
+ defaultOpen?: boolean;
350
+ open?: boolean;
351
+ onOpenChange?: (open: boolean) => void;
352
+ }): react_jsx_runtime.JSX.Element;
353
+ declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<"div"> & {
354
+ side?: "left" | "right";
355
+ variant?: "sidebar" | "floating" | "inset";
356
+ collapsible?: "offcanvas" | "icon" | "none";
357
+ }): react_jsx_runtime.JSX.Element;
358
+ declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button$1>): react_jsx_runtime.JSX.Element;
359
+ declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
360
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
361
+ declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input$1>): react_jsx_runtime.JSX.Element;
362
+ declare function SidebarHeader$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
363
+ declare function SidebarFooter$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
364
+ declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
365
+ declare function SidebarContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
366
+ declare function SidebarGroup$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
367
+ declare function SidebarGroupLabel$1({ className, render, ...props }: useRender.ComponentProps<"div"> & React$1.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
368
+ declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
369
+ declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
370
+ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
371
+ declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
372
+ declare const sidebarMenuButtonVariants: (props?: ({
373
+ variant?: "default" | "outline" | null | undefined;
374
+ size?: "sm" | "lg" | "default" | null | undefined;
375
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
376
+ declare function SidebarMenuButton$1({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
377
+ isActive?: boolean;
378
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
379
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
380
+ declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
381
+ showOnHover?: boolean;
382
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
383
+ declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
384
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<"div"> & {
385
+ showIcon?: boolean;
386
+ }): react_jsx_runtime.JSX.Element;
387
+ declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
388
+ declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
389
+ declare function SidebarMenuSubButton$1({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React$1.ComponentProps<"a"> & {
390
+ size?: "sm" | "md";
391
+ isActive?: boolean;
392
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
393
+
394
+ /** Group label, indented to line up with the menu-button icons
395
+ * (group p-2 + label px-3 = same 20px as group p-2 + button px-3) and
396
+ * set in small uppercase type with wide tracking. */
397
+ declare function SidebarGroupLabel({ className, ...props }: React$1.ComponentProps<typeof SidebarGroupLabel$1>): react_jsx_runtime.JSX.Element;
398
+ /** Provider with the Berget icon-rail width (60px = 10px gutters + 40px
399
+ * buttons). Consumers can still override via `style`. */
400
+ declare function SidebarProvider({ className, style, ...props }: React$1.ComponentProps<typeof SidebarProvider$1>): react_jsx_runtime.JSX.Element;
401
+ /** Group with 10px horizontal gutters in icon mode (10 + 40 + 10 = 60px). */
402
+ declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<typeof SidebarGroup$1>): react_jsx_runtime.JSX.Element;
403
+ /** Footer with a top border mirroring the sidebar header's bottom border, and
404
+ * the same 10px icon-mode gutters as SidebarGroup (its menu sits outside a
405
+ * group). */
406
+ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<typeof SidebarFooter$1>): react_jsx_runtime.JSX.Element;
407
+ /** Header without the primitive's block padding (its p-2 becomes py-0) and
408
+ * with a bottom border matching the default page-header border; vertical
409
+ * rhythm is consumer-controlled (e.g. a h-20 brand bar). Horizontal padding
410
+ * is dropped in icon mode so rail content (logo slots etc.) can center
411
+ * against the full 60px rail width. */
412
+ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<typeof SidebarHeader$1>): react_jsx_runtime.JSX.Element;
413
+ /** Berget brand slot for the sidebar header. Fades between the full logo
414
+ * (expanded) and the symbol pinned to the icon-rail slot (collapsed).
415
+ *
416
+ * Implementation notes — all load-bearing:
417
+ * - The symbol is pinned to the rail slot (60px, px-3) so it appears in its
418
+ * final position the moment collapse starts — its glyph lines up with the
419
+ * leading glyph of the full logo, which fades away beneath it. px-3 on both
420
+ * layers keeps the logo's left inset identical in both states (12px), so
421
+ * the mark never shifts when toggling.
422
+ * - Both layers stay mounted: display isn't animatable, so unmounting the
423
+ * symbol on expand would blink it off in one frame while the logotype is
424
+ * still fading in. visibility+opacity handle hiding instead; visibility is
425
+ * discretely animatable, deferring its flip until the fade completes,
426
+ * and removing the hidden layer from the accessibility tree.
427
+ * - The row is overflow-hidden and the logo shrink-0: when the rail narrows,
428
+ * the fading full logo is clipped at the moving edge instead of being
429
+ * squeezed (the SVG viewBox would otherwise scale it down).
430
+ *
431
+ * Renders its own SidebarHeader (px-0 — the row owns all horizontal padding,
432
+ * so its position can't jump when the header's icon-mode padding lands).
433
+ */
434
+ declare function SidebarLogo(): react_jsx_runtime.JSX.Element;
435
+ /** Page header for use inside <SidebarInset>. Its height (60px content + 1px)
436
+ * keeps the bottom border on the same line as the sidebar header's border —
437
+ * both occupy the 60-61px row, making the collapsed brand cell a 60x60
438
+ * square. Compose the SidebarTrigger and a title inside. */
439
+ declare function SidebarPageHeader({ className, ...props }: React$1.ComponentProps<'header'>): react_jsx_runtime.JSX.Element;
440
+ type SidebarMenuButtonProps = React$1.ComponentProps<typeof SidebarMenuButton$1>;
441
+ type SidebarMenuSubButtonProps = React$1.ComponentProps<typeof SidebarMenuSubButton$1>;
442
+ declare function SidebarMenuButton({ className, ...props }: SidebarMenuButtonProps): react_jsx_runtime.JSX.Element;
443
+ declare function SidebarMenuSubButton({ className, ...props }: SidebarMenuSubButtonProps): react_jsx_runtime.JSX.Element;
444
+
330
445
  declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
331
446
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
332
447
  declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
@@ -540,7 +655,7 @@ interface GridProps extends useRender.ComponentProps<'div'>, VariantProps<typeof
540
655
  declare const Grid: React$1.ForwardRefExoticComponent<Omit<GridProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
541
656
 
542
657
  declare const boxVariants: (props?: ({
543
- direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
658
+ direction?: "row" | "column" | "column-reverse" | "row-reverse" | null | undefined;
544
659
  align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
545
660
  justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
546
661
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
@@ -673,4 +788,4 @@ interface FogIllustrationProps {
673
788
  }
674
789
  declare const FogIllustration: ({ palette, speed, className }: FogIllustrationProps) => react_jsx_runtime.JSX.Element;
675
790
 
676
- 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, CardAction, 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, 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 };
791
+ 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, CardAction, 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, 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, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLogo, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPageHeader, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, 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, useSidebar, useTheme };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
9
9
  import { Menu } from '@base-ui/react/menu';
10
10
  import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
11
11
  import { useRender } from '@base-ui/react/use-render';
12
+ import { Separator as Separator$1 } from '@base-ui/react/separator';
13
+ import { Tooltip } from '@base-ui/react/tooltip';
12
14
  import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
13
15
  import { Switch as Switch$1 } from '@base-ui/react/switch';
14
16
  import { LucideProps, LucideIcon } from 'lucide-react';
@@ -327,6 +329,119 @@ declare function NavigationMenuTrigger({ className, children, ...props }: Naviga
327
329
  declare function NavigationMenuLink({ className, ...props }: NavigationMenu$1.Link.Props): react_jsx_runtime.JSX.Element;
328
330
  declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenu$1.Positioner.Props): react_jsx_runtime.JSX.Element;
329
331
 
332
+ declare function Input$1({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
333
+
334
+ declare function Separator({ className, orientation, ...props }: Separator$1.Props): react_jsx_runtime.JSX.Element;
335
+
336
+ declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
337
+
338
+ type SidebarContextProps = {
339
+ state: "expanded" | "collapsed";
340
+ open: boolean;
341
+ setOpen: (open: boolean) => void;
342
+ openMobile: boolean;
343
+ setOpenMobile: (open: boolean) => void;
344
+ isMobile: boolean;
345
+ toggleSidebar: () => void;
346
+ };
347
+ declare function useSidebar(): SidebarContextProps;
348
+ declare function SidebarProvider$1({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<"div"> & {
349
+ defaultOpen?: boolean;
350
+ open?: boolean;
351
+ onOpenChange?: (open: boolean) => void;
352
+ }): react_jsx_runtime.JSX.Element;
353
+ declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<"div"> & {
354
+ side?: "left" | "right";
355
+ variant?: "sidebar" | "floating" | "inset";
356
+ collapsible?: "offcanvas" | "icon" | "none";
357
+ }): react_jsx_runtime.JSX.Element;
358
+ declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button$1>): react_jsx_runtime.JSX.Element;
359
+ declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
360
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
361
+ declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input$1>): react_jsx_runtime.JSX.Element;
362
+ declare function SidebarHeader$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
363
+ declare function SidebarFooter$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
364
+ declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
365
+ declare function SidebarContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
366
+ declare function SidebarGroup$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
367
+ declare function SidebarGroupLabel$1({ className, render, ...props }: useRender.ComponentProps<"div"> & React$1.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
368
+ declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
369
+ declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
370
+ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
371
+ declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
372
+ declare const sidebarMenuButtonVariants: (props?: ({
373
+ variant?: "default" | "outline" | null | undefined;
374
+ size?: "sm" | "lg" | "default" | null | undefined;
375
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
376
+ declare function SidebarMenuButton$1({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
377
+ isActive?: boolean;
378
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
379
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
380
+ declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
381
+ showOnHover?: boolean;
382
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
383
+ declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
384
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<"div"> & {
385
+ showIcon?: boolean;
386
+ }): react_jsx_runtime.JSX.Element;
387
+ declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
388
+ declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
389
+ declare function SidebarMenuSubButton$1({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React$1.ComponentProps<"a"> & {
390
+ size?: "sm" | "md";
391
+ isActive?: boolean;
392
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
393
+
394
+ /** Group label, indented to line up with the menu-button icons
395
+ * (group p-2 + label px-3 = same 20px as group p-2 + button px-3) and
396
+ * set in small uppercase type with wide tracking. */
397
+ declare function SidebarGroupLabel({ className, ...props }: React$1.ComponentProps<typeof SidebarGroupLabel$1>): react_jsx_runtime.JSX.Element;
398
+ /** Provider with the Berget icon-rail width (60px = 10px gutters + 40px
399
+ * buttons). Consumers can still override via `style`. */
400
+ declare function SidebarProvider({ className, style, ...props }: React$1.ComponentProps<typeof SidebarProvider$1>): react_jsx_runtime.JSX.Element;
401
+ /** Group with 10px horizontal gutters in icon mode (10 + 40 + 10 = 60px). */
402
+ declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<typeof SidebarGroup$1>): react_jsx_runtime.JSX.Element;
403
+ /** Footer with a top border mirroring the sidebar header's bottom border, and
404
+ * the same 10px icon-mode gutters as SidebarGroup (its menu sits outside a
405
+ * group). */
406
+ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<typeof SidebarFooter$1>): react_jsx_runtime.JSX.Element;
407
+ /** Header without the primitive's block padding (its p-2 becomes py-0) and
408
+ * with a bottom border matching the default page-header border; vertical
409
+ * rhythm is consumer-controlled (e.g. a h-20 brand bar). Horizontal padding
410
+ * is dropped in icon mode so rail content (logo slots etc.) can center
411
+ * against the full 60px rail width. */
412
+ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<typeof SidebarHeader$1>): react_jsx_runtime.JSX.Element;
413
+ /** Berget brand slot for the sidebar header. Fades between the full logo
414
+ * (expanded) and the symbol pinned to the icon-rail slot (collapsed).
415
+ *
416
+ * Implementation notes — all load-bearing:
417
+ * - The symbol is pinned to the rail slot (60px, px-3) so it appears in its
418
+ * final position the moment collapse starts — its glyph lines up with the
419
+ * leading glyph of the full logo, which fades away beneath it. px-3 on both
420
+ * layers keeps the logo's left inset identical in both states (12px), so
421
+ * the mark never shifts when toggling.
422
+ * - Both layers stay mounted: display isn't animatable, so unmounting the
423
+ * symbol on expand would blink it off in one frame while the logotype is
424
+ * still fading in. visibility+opacity handle hiding instead; visibility is
425
+ * discretely animatable, deferring its flip until the fade completes,
426
+ * and removing the hidden layer from the accessibility tree.
427
+ * - The row is overflow-hidden and the logo shrink-0: when the rail narrows,
428
+ * the fading full logo is clipped at the moving edge instead of being
429
+ * squeezed (the SVG viewBox would otherwise scale it down).
430
+ *
431
+ * Renders its own SidebarHeader (px-0 — the row owns all horizontal padding,
432
+ * so its position can't jump when the header's icon-mode padding lands).
433
+ */
434
+ declare function SidebarLogo(): react_jsx_runtime.JSX.Element;
435
+ /** Page header for use inside <SidebarInset>. Its height (60px content + 1px)
436
+ * keeps the bottom border on the same line as the sidebar header's border —
437
+ * both occupy the 60-61px row, making the collapsed brand cell a 60x60
438
+ * square. Compose the SidebarTrigger and a title inside. */
439
+ declare function SidebarPageHeader({ className, ...props }: React$1.ComponentProps<'header'>): react_jsx_runtime.JSX.Element;
440
+ type SidebarMenuButtonProps = React$1.ComponentProps<typeof SidebarMenuButton$1>;
441
+ type SidebarMenuSubButtonProps = React$1.ComponentProps<typeof SidebarMenuSubButton$1>;
442
+ declare function SidebarMenuButton({ className, ...props }: SidebarMenuButtonProps): react_jsx_runtime.JSX.Element;
443
+ declare function SidebarMenuSubButton({ className, ...props }: SidebarMenuSubButtonProps): react_jsx_runtime.JSX.Element;
444
+
330
445
  declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
331
446
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
332
447
  declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
@@ -540,7 +655,7 @@ interface GridProps extends useRender.ComponentProps<'div'>, VariantProps<typeof
540
655
  declare const Grid: React$1.ForwardRefExoticComponent<Omit<GridProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
541
656
 
542
657
  declare const boxVariants: (props?: ({
543
- direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
658
+ direction?: "row" | "column" | "column-reverse" | "row-reverse" | null | undefined;
544
659
  align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
545
660
  justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
546
661
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
@@ -673,4 +788,4 @@ interface FogIllustrationProps {
673
788
  }
674
789
  declare const FogIllustration: ({ palette, speed, className }: FogIllustrationProps) => react_jsx_runtime.JSX.Element;
675
790
 
676
- 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, CardAction, 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, 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 };
791
+ 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, CardAction, 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, 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, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLogo, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarPageHeader, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, 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, useSidebar, useTheme };