@cbrl/design 0.3.0 → 0.5.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.
@@ -33,6 +33,15 @@ export type AppShellProps = {
33
33
  collapsible?: React.ComponentProps<typeof Sidebar>['collapsible'];
34
34
  /** Accessible label for the nav landmark. Defaults to `Navegação principal`. */
35
35
  navLabel?: string;
36
+ /** Whether the sidebar starts expanded (uncontrolled). Defaults to `true`. */
37
+ defaultOpen?: boolean;
38
+ /**
39
+ * Expanded state, controlled by the app together with `onOpenChange` — e.g.
40
+ * to remember the user's choice across reloads (persistence is the app's).
41
+ */
42
+ open?: boolean;
43
+ /** Fired with the new expanded state on every toggle. */
44
+ onOpenChange?: (open: boolean) => void;
36
45
  children: React.ReactNode;
37
46
  };
38
- export declare function AppShell({ brand, sections, pathname, renderNavLink, footer, account, headerStart, headerEnd, collapsible, navLabel, children }: AppShellProps): React.JSX.Element;
47
+ export declare function AppShell({ brand, sections, pathname, renderNavLink, footer, account, headerStart, headerEnd, collapsible, navLabel, defaultOpen, open, onOpenChange, children }: AppShellProps): React.JSX.Element;
@@ -6,34 +6,39 @@ import { TooltipProvider } from "./tooltip.js";
6
6
  import "react";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  // src/components/app-shell.tsx
9
- function AppShell({ brand, sections, pathname, renderNavLink, footer, account, headerStart, headerEnd, collapsible = "icon", navLabel = "Navegação principal", children }) {
9
+ function AppShell({ brand, sections, pathname, renderNavLink, footer, account, headerStart, headerEnd, collapsible = "icon", navLabel = "Navegação principal", defaultOpen = true, open, onOpenChange, children }) {
10
10
  return /* @__PURE__ */ jsx(TooltipProvider, {
11
11
  delayDuration: 0,
12
- children: /* @__PURE__ */ jsxs(SidebarProvider, { children: [/* @__PURE__ */ jsxs(Sidebar, {
13
- collapsible,
14
- children: [
15
- /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx("div", {
16
- className: "flex items-center gap-2 px-2 py-1.5",
17
- children: brand
18
- }) }),
19
- /* @__PURE__ */ jsx(SidebarContent, { children: /* @__PURE__ */ jsx(ShellNav, {
20
- sections,
21
- pathname,
22
- renderNavLink,
23
- navLabel
24
- }) }),
25
- footer ? /* @__PURE__ */ jsx(SidebarFooter, { children: footer }) : null,
26
- /* @__PURE__ */ jsx(SidebarRail, {})
27
- ]
28
- }), /* @__PURE__ */ jsxs(SidebarInset, { children: [/* @__PURE__ */ jsx(ShellHeader, {
29
- account,
30
- headerStart,
31
- headerEnd
32
- }), /* @__PURE__ */ jsx("div", {
33
- "data-slot": "app-scroll",
34
- className: "min-h-0 flex-1 overflow-y-auto overscroll-contain",
35
- children
36
- })] })] })
12
+ children: /* @__PURE__ */ jsxs(SidebarProvider, {
13
+ defaultOpen,
14
+ open,
15
+ onOpenChange,
16
+ children: [/* @__PURE__ */ jsxs(Sidebar, {
17
+ collapsible,
18
+ children: [
19
+ /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx("div", {
20
+ className: "flex items-center gap-2 px-2 py-1.5",
21
+ children: brand
22
+ }) }),
23
+ /* @__PURE__ */ jsx(SidebarContent, { children: /* @__PURE__ */ jsx(ShellNav, {
24
+ sections,
25
+ pathname,
26
+ renderNavLink,
27
+ navLabel
28
+ }) }),
29
+ footer ? /* @__PURE__ */ jsx(SidebarFooter, { children: footer }) : null,
30
+ /* @__PURE__ */ jsx(SidebarRail, {})
31
+ ]
32
+ }), /* @__PURE__ */ jsxs(SidebarInset, { children: [/* @__PURE__ */ jsx(ShellHeader, {
33
+ account,
34
+ headerStart,
35
+ headerEnd
36
+ }), /* @__PURE__ */ jsx("div", {
37
+ "data-slot": "app-scroll",
38
+ className: "min-h-0 flex-1 overflow-y-auto overscroll-contain",
39
+ children
40
+ })] })]
41
+ })
37
42
  });
38
43
  }
39
44
  function ShellHeader({ account, headerStart, headerEnd }) {
@@ -23,9 +23,9 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
23
23
  root: cn("w-fit", defaultClassNames.root),
24
24
  months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
25
25
  month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
26
- nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
27
- button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
28
- button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
26
+ nav: cn("pointer-events-none absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
27
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "pointer-events-auto size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
28
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "pointer-events-auto size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
29
29
  month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
30
30
  dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
31
31
  dropdown_root: cn("relative", defaultClassNames.dropdown_root),
@@ -258,7 +258,7 @@ function List({ items, getKey, renderItem, linkComponent, loading = false, loadi
258
258
  onClick: descriptor.onClick,
259
259
  "data-slot": "list-item",
260
260
  "data-interactive": true,
261
- className: interactiveClass,
261
+ className: cn(interactiveClass, "w-full text-left"),
262
262
  children: inner
263
263
  });
264
264
  else row = /* @__PURE__ */ jsx("div", {
@@ -1,7 +1,26 @@
1
1
  import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
2
3
  import { Tabs as Tabs$1 } from "radix-ui";
3
4
  declare function Tabs({ className, ...props }: React.ComponentProps<typeof Tabs$1.Root>): React.JSX.Element;
4
- declare function TabsList({ className, ...props }: React.ComponentProps<typeof Tabs$1.List>): React.JSX.Element;
5
+ /**
6
+ * `default`: segmented pill on a muted track (few short options).
7
+ * `line`: underlined tabs on a bottom border (shadcn line), full width and scrolling
8
+ * sideways when they do not fit — for widgets and sections whose tabs carry
9
+ * counts or longer labels.
10
+ */
11
+ declare const tabsListVariants: (props?: ({
12
+ variant?: "default" | "line" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof Tabs$1.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
5
15
  declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof Tabs$1.Trigger>): React.JSX.Element;
16
+ /**
17
+ * Count beside a tab label (items in that tab). `tone="destructive"` flags
18
+ * what needs attention (e.g. overdue). Plain text, so the tab reads as
19
+ * "Atrasadas 2".
20
+ */
21
+ declare const tabsCountVariants: (props?: ({
22
+ tone?: "default" | "destructive" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ declare function TabsCount({ className, tone, ...props }: React.ComponentProps<'span'> & VariantProps<typeof tabsCountVariants>): React.JSX.Element;
6
25
  declare function TabsContent({ className, ...props }: React.ComponentProps<typeof Tabs$1.Content>): React.JSX.Element;
7
- export { Tabs, TabsContent, TabsList, TabsTrigger };
26
+ export { Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, tabsListVariants };
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.js";
3
3
  import "react";
4
+ import { cva } from "class-variance-authority";
4
5
  import { Tabs as Tabs$1 } from "radix-ui";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  // src/components/tabs.tsx
@@ -11,17 +12,50 @@ function Tabs({ className, ...props }) {
11
12
  ...props
12
13
  });
13
14
  }
14
- function TabsList({ className, ...props }) {
15
+ /**
16
+ * `default`: segmented pill on a muted track (few short options).
17
+ * `line`: underlined tabs on a bottom border (shadcn line), full width and scrolling
18
+ * sideways when they do not fit — for widgets and sections whose tabs carry
19
+ * counts or longer labels.
20
+ */
21
+ const tabsListVariants = cva("group/tabs-list text-muted-foreground inline-flex items-center", {
22
+ variants: { variant: {
23
+ default: "bg-muted h-9 w-fit justify-center rounded-lg p-1",
24
+ line: "border-border h-9 w-full justify-start gap-4 overflow-x-auto overflow-y-hidden border-b [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
25
+ } },
26
+ defaultVariants: { variant: "default" }
27
+ });
28
+ function TabsList({ className, variant = "default", ...props }) {
15
29
  return /* @__PURE__ */ jsx(Tabs$1.List, {
16
30
  "data-slot": "tabs-list",
17
- className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1", className),
31
+ "data-variant": variant,
32
+ className: cn(tabsListVariants({ variant }), className),
18
33
  ...props
19
34
  });
20
35
  }
21
36
  function TabsTrigger({ className, ...props }) {
22
37
  return /* @__PURE__ */ jsx(Tabs$1.Trigger, {
23
38
  "data-slot": "tabs-trigger",
24
- className: cn("text-foreground focus-visible:ring-ring/50 data-[state=active]:bg-background inline-flex items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-[3px] focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
39
+ className: cn("relative inline-flex shrink-0 items-center justify-center gap-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=default]/tabs-list:text-foreground group-data-[variant=default]/tabs-list:focus-visible:ring-ring/50 group-data-[variant=default]/tabs-list:data-[state=active]:bg-background group-data-[variant=default]/tabs-list:rounded-md group-data-[variant=default]/tabs-list:px-2 group-data-[variant=default]/tabs-list:py-1 group-data-[variant=default]/tabs-list:focus-visible:ring-[3px] group-data-[variant=default]/tabs-list:data-[state=active]:shadow", "after:bg-foreground group-data-[variant=line]/tabs-list:hover:text-foreground group-data-[variant=line]/tabs-list:focus-visible:text-foreground group-data-[variant=line]/tabs-list:data-[state=active]:text-foreground h-full after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:rounded-full after:opacity-0 after:transition-opacity group-data-[variant=default]/tabs-list:after:hidden group-data-[variant=line]/tabs-list:focus-visible:after:opacity-40 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", className),
40
+ ...props
41
+ });
42
+ }
43
+ /**
44
+ * Count beside a tab label (items in that tab). `tone="destructive"` flags
45
+ * what needs attention (e.g. overdue). Plain text, so the tab reads as
46
+ * "Atrasadas 2".
47
+ */
48
+ const tabsCountVariants = cva("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-medium tabular-nums", {
49
+ variants: { tone: {
50
+ default: "bg-muted text-muted-foreground",
51
+ destructive: "bg-destructive/10 text-destructive"
52
+ } },
53
+ defaultVariants: { tone: "default" }
54
+ });
55
+ function TabsCount({ className, tone = "default", ...props }) {
56
+ return /* @__PURE__ */ jsx("span", {
57
+ "data-slot": "tabs-count",
58
+ className: cn(tabsCountVariants({ tone }), className),
25
59
  ...props
26
60
  });
27
61
  }
@@ -32,4 +66,4 @@ function TabsContent({ className, ...props }) {
32
66
  ...props
33
67
  });
34
68
  }
35
- export { Tabs, TabsContent, TabsList, TabsTrigger };
69
+ export { Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, tabsListVariants };
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ import { Toaster } from "./components/sonner.js";
36
36
  import { Stepper } from "./components/stepper.js";
37
37
  import { Switch } from "./components/switch.js";
38
38
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.js";
39
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
39
+ import { Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, tabsListVariants } from "./components/tabs.js";
40
40
  import { Textarea } from "./components/textarea.js";
41
41
  import { ThemeProvider } from "./components/theme-provider.js";
42
42
  import { Typography, typographyVariants } from "./components/typography.js";
@@ -50,4 +50,4 @@ import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHe
50
50
  import "./components/sidebar.js";
51
51
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.js";
52
52
  import { useIsMobile } from "./hooks/use-mobile.js";
53
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppShell, type AppShellNavLink, type AppShellProps, AuthSplitScreen, type AuthSplitScreenProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BrandIconProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DateField, type DateFieldProps, 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, EmptyState, type EmptyStateProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GoogleIcon, HighlightedTextarea, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, List, type ListEmptyContent, type ListFilterConfig, ListItem, ListItemActions, ListItemContent, ListItemDescription, type ListItemDescriptor, ListItemLeading, ListItemMedia, ListItemMeta, ListItemTitle, ListItemTrailing, type ListPaginationConfig, type ListProps, type ListSearchConfig, Main, type NavItem, type NavMatch, type NavSection, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingRow, SettingRowGroup, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UserMenu, type UserMenuProps, WhatsappIcon, badgeVariants, buttonVariants, cn, hasActiveChild as hasActiveNavChild, initials, isActive as isNavItemActive, listItemVariants, listVariants, mainVariants, typographyVariants, useIsMobile, useSidebar, userMenuInitials };
53
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppShell, type AppShellNavLink, type AppShellProps, AuthSplitScreen, type AuthSplitScreenProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BrandIconProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DateField, type DateFieldProps, 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, EmptyState, type EmptyStateProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GoogleIcon, HighlightedTextarea, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, List, type ListEmptyContent, type ListFilterConfig, ListItem, ListItemActions, ListItemContent, ListItemDescription, type ListItemDescriptor, ListItemLeading, ListItemMedia, ListItemMeta, ListItemTitle, ListItemTrailing, type ListPaginationConfig, type ListProps, type ListSearchConfig, Main, type NavItem, type NavMatch, type NavSection, Pagination, type PaginationProps, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingRow, SettingRowGroup, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UserMenu, type UserMenuProps, WhatsappIcon, badgeVariants, buttonVariants, cn, hasActiveChild as hasActiveNavChild, initials, isActive as isNavItemActive, listItemVariants, listVariants, mainVariants, tabsListVariants, typographyVariants, useIsMobile, useSidebar, userMenuInitials };
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import { Toaster } from "./components/sonner.js";
33
33
  import { Stepper } from "./components/stepper.js";
34
34
  import { Switch } from "./components/switch.js";
35
35
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.js";
36
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
36
+ import { Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, tabsListVariants } from "./components/tabs.js";
37
37
  import { Textarea } from "./components/textarea.js";
38
38
  import { ThemeProvider } from "./components/theme-provider.js";
39
39
  import { Typography, typographyVariants } from "./components/typography.js";
@@ -48,4 +48,4 @@ import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarInput, Si
48
48
  import { SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem } from "./components/sidebar-menu.js";
49
49
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.js";
50
50
  import { useIsMobile } from "./hooks/use-mobile.js";
51
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppShell, AuthSplitScreen, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DateField, 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, EmptyState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GoogleIcon, HighlightedTextarea, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, List, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemLeading, ListItemMedia, ListItemMeta, ListItemTitle, ListItemTrailing, Main, Pagination, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingRow, SettingRowGroup, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UserMenu, WhatsappIcon, badgeVariants, buttonVariants, cn, hasActiveChild as hasActiveNavChild, initials, isActive as isNavItemActive, listItemVariants, listVariants, mainVariants, typographyVariants, useIsMobile, useSidebar, userMenuInitials };
51
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppShell, AuthSplitScreen, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DateField, 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, EmptyState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, GoogleIcon, HighlightedTextarea, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, List, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemLeading, ListItemMedia, ListItemMeta, ListItemTitle, ListItemTrailing, Main, Pagination, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingRow, SettingRowGroup, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsCount, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UserMenu, WhatsappIcon, badgeVariants, buttonVariants, cn, hasActiveChild as hasActiveNavChild, initials, isActive as isNavItemActive, listItemVariants, listVariants, mainVariants, tabsListVariants, typographyVariants, useIsMobile, useSidebar, userMenuInitials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbrl/design",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Design system on Radix + Tailwind v4: shadcn-style components, layout shells and design tokens with an overridable brand accent.",
5
5
  "license": "MIT",
6
6
  "author": "Kayron Cabral",
@@ -37,11 +37,11 @@
37
37
  "dependencies": {
38
38
  "class-variance-authority": "^0.7.1",
39
39
  "clsx": "^2.1.1",
40
- "lucide-react": "^1.75.0",
40
+ "lucide-react": "^1.77.0",
41
41
  "radix-ui": "^1.4.3",
42
42
  "react-day-picker": "^10.0.2",
43
43
  "sonner": "^2.0.7",
44
- "tailwind-merge": "^3.6.0",
44
+ "tailwind-merge": "^3.7.1",
45
45
  "tw-animate-css": "^1.4.0"
46
46
  },
47
47
  "peerDependencies": {
@@ -54,14 +54,14 @@
54
54
  "@arethetypeswrong/cli": "^0.18.5",
55
55
  "@testing-library/jest-dom": "^7.0.1",
56
56
  "@testing-library/react": "^16.3.2",
57
- "@testing-library/user-event": "^14.6.1",
57
+ "@testing-library/user-event": "^14.6.13",
58
58
  "@types/node": "^26.6.6",
59
59
  "@types/react": "^19.2.14",
60
60
  "@types/react-dom": "^19.2.3",
61
61
  "@vitejs/plugin-react": "^6.0.2",
62
62
  "@vitest/coverage-v8": "^5.1.1",
63
63
  "eslint": "^9.39.4",
64
- "jsdom": "^29.1.1",
64
+ "jsdom": "^31.0.1",
65
65
  "next-themes": "^0.4.6",
66
66
  "publint": "^0.3.25",
67
67
  "react": "^19.2.6",
@@ -71,8 +71,8 @@
71
71
  "tsdown": "^0.23.7",
72
72
  "typescript": "^6.0.3",
73
73
  "vitest": "^5.1.1",
74
- "@cbrl/eslint-config": "0.2.1",
75
- "@cbrl/testing": "0.3.0",
74
+ "@cbrl/eslint-config": "0.3.0",
75
+ "@cbrl/testing": "0.4.0",
76
76
  "@cbrl/tsconfig": "0.1.1"
77
77
  },
78
78
  "publishConfig": {