@leitware/composables 1.0.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leitware/composables",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,49 +65,49 @@ Use this catalog to choose public exports. The `Source module` column is for mai
65
65
 
66
66
  ### Layout
67
67
 
68
- | Module | Source module | Import from | Public values | Public types | Description |
69
- | -------------- | ---------------------------- | ----------------------- | ---------------------------------------------------------- | ----------------- | ----------------------------------------------------------- |
70
- | `stack` | `./opinionated/stack` | `@leitware/composables` | `Stack` | - | Flex-based vertical or horizontal stack layout |
71
- | `grid` | `./opinionated/grid` | `@leitware/composables` | `Grid` | - | Responsive CSS grid layout component |
72
- | `container` | `./opinionated/container` | `@leitware/composables` | `Container` | - | Centered max-width content wrapper |
73
- | `spacer` | `./opinionated/spacer` | `@leitware/composables` | `Spacer` | - | Flexible whitespace component for spacing |
74
- | `separator` | `./opinionated/separator` | `@leitware/composables` | `Separator` | - | Visual divider line between content sections |
75
- | `layout` | `./opinionated/layout` | `@leitware/composables` | `NewspaperCell`, `NewspaperGrid`, `Section` | - | Rigid layout primitives: Section, FlexSpacer, NewspaperGrid |
76
- | `layout-bento` | `./opinionated/layout-bento` | `@leitware/composables` | `BentoCell`, `BentoGrid` | - | Bento grid layout with BentoGrid, BentoCell, and composites |
77
- | `resizable` | `./opinionated/resizable` | `@leitware/composables` | `ResizableHandle`, `ResizablePanel`, `ResizablePanelGroup` | - | Resizable split pane panels |
78
- | `scroll-area` | `./opinionated/scroll-area` | `@leitware/composables` | `ScrollArea`, `ScrollBar` | `ScrollAreaProps` | Custom scrollbar container with overflow handling |
68
+ | Module | Source module | Import from | Public values | Public types | Description |
69
+ | -------------- | ---------------------------- | ----------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------- |
70
+ | `stack` | `./opinionated/stack` | `@leitware/composables` | `Stack` | `StackProps` | Flex-based vertical or horizontal stack layout |
71
+ | `grid` | `./opinionated/grid` | `@leitware/composables` | `Grid` | `GridProps` | Responsive CSS grid layout component |
72
+ | `container` | `./opinionated/container` | `@leitware/composables` | `Container` | `ContainerProps` | Centered max-width content wrapper |
73
+ | `spacer` | `./opinionated/spacer` | `@leitware/composables` | `Spacer` | `SpacerProps` | Flexible whitespace component for spacing |
74
+ | `separator` | `./opinionated/separator` | `@leitware/composables` | `Separator` | - | Visual divider line between content sections |
75
+ | `layout` | `./opinionated/layout` | `@leitware/composables` | `NewspaperCell`, `NewspaperGrid`, `Section` | `NewspaperCellProps`, `NewspaperGridProps`, `SectionProps` | Rigid layout primitives: Section, FlexSpacer, NewspaperGrid |
76
+ | `layout-bento` | `./opinionated/layout-bento` | `@leitware/composables` | `BentoCell`, `BentoGrid` | - | Bento grid layout with BentoGrid, BentoCell, and composites |
77
+ | `resizable` | `./opinionated/resizable` | `@leitware/composables` | `ResizableHandle`, `ResizablePanel`, `ResizablePanelGroup` | - | Resizable split pane panels |
78
+ | `scroll-area` | `./opinionated/scroll-area` | `@leitware/composables` | `ScrollArea`, `ScrollBar` | `ScrollAreaProps` | Custom scrollbar container with overflow handling |
79
79
 
80
80
  ### Typography & Display
81
81
 
82
- | Module | Source module | Import from | Public values | Public types | Description |
83
- | ------------ | -------------------------- | ----------------------- | ---------------------------------------------------------------------------------- | --------------------------- | ------------------------------------------------------------------- |
84
- | `typography` | `./opinionated/typography` | `@leitware/composables` | `Typography` | - | Polymorphic text component with typographic scale variants |
85
- | `badge` | `./opinionated/badge` | `@leitware/composables` | `Badge` | `BadgeProps` | Small status label with color variants |
86
- | `avatar` | `./opinionated/avatar` | `@leitware/composables` | `Avatar`, `AvatarFallback`, `AvatarImage` | `AvatarProps` | Circular image element with automatic initials fallback |
87
- | `icon` | `./opinionated/icon` | `@leitware/composables` | `Icon` | - | Icon wrapper with size and color variants |
88
- | `kbd` | `./opinionated/kbd` | `@leitware/composables` | `Kbd`, `KbdGroup` | `KbdGroupProps`, `KbdProps` | Keyboard shortcut key and key group display |
89
- | `skeleton` | `./opinionated/skeleton` | `@leitware/composables` | `Skeleton`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonInput`, `SkeletonText` | `SkeletonProps` | Animated placeholder for loading content |
90
- | `progress` | `./opinionated/progress` | `@leitware/composables` | `Progress`, `ProgressIndicator`, `ProgressLabel`, `ProgressTrack`, `ProgressValue` | `ProgressProps` | Horizontal progress bar indicator |
91
- | `divider` | `./opinionated/divider` | `@leitware/composables` | `Divider` | - | Horizontal or vertical divider with solid, dots, and pills variants |
82
+ | Module | Source module | Import from | Public values | Public types | Description |
83
+ | ------------ | -------------------------- | ----------------------- | ---------------------------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------------- |
84
+ | `typography` | `./opinionated/typography` | `@leitware/composables` | `Typography` | `TypographyProps`, `TypographyVariant` | Polymorphic text component with typographic scale variants |
85
+ | `badge` | `./opinionated/badge` | `@leitware/composables` | `Badge` | `BadgeProps` | Small status label with color variants |
86
+ | `avatar` | `./opinionated/avatar` | `@leitware/composables` | `Avatar`, `AvatarFallback`, `AvatarImage` | `AvatarProps` | Circular image element with automatic initials fallback |
87
+ | `icon` | `./opinionated/icon` | `@leitware/composables` | `Icon` | - | Icon wrapper with size and color variants |
88
+ | `kbd` | `./opinionated/kbd` | `@leitware/composables` | `Kbd`, `KbdGroup` | `KbdGroupProps`, `KbdProps` | Keyboard shortcut key and key group display |
89
+ | `skeleton` | `./opinionated/skeleton` | `@leitware/composables` | `Skeleton`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonInput`, `SkeletonText` | `SkeletonProps` | Animated placeholder for loading content |
90
+ | `progress` | `./opinionated/progress` | `@leitware/composables` | `Progress`, `ProgressIndicator`, `ProgressLabel`, `ProgressTrack`, `ProgressValue` | `ProgressProps` | Horizontal progress bar indicator |
91
+ | `divider` | `./opinionated/divider` | `@leitware/composables` | `Divider` | `DividerProps` | Horizontal or vertical divider with solid, dots, and pills variants |
92
92
 
93
93
  ### Feedback & Overlay
94
94
 
95
- | Module | Source module | Import from | Public values | Public types | Description |
96
- | -------------- | ---------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | ---------------------------------------------------------- |
97
- | `alert` | `./opinionated/alert` | `@leitware/composables` | `Alert`, `AlertAction`, `AlertDescription`, `AlertTitle` | `AlertProps`, `AlertType` | Contextual feedback messages with type-based icon mapping |
98
- | `dialog` | `./opinionated/dialog` | `@leitware/composables` | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogTitle`, `DialogTrigger` | `DialogProps` | Modal dialog overlay with trigger, title, and footer props |
99
- | `alert-dialog` | `./opinionated/alert-dialog` | `@leitware/composables` | `AlertDialog`, `AlertDialogAction`, `AlertDialogCancel`, `AlertDialogContent`, `AlertDialogDescription`, `AlertDialogTitle`, `AlertDialogTrigger` | `AlertDialogProps` | Modal dialog for important confirmations |
100
- | `sheet` | `./opinionated/sheet` | `@leitware/composables` | `Sheet`, `SheetClose`, `SheetContent`, `SheetDescription`, `SheetFooter`, `SheetHeader`, `SheetTitle`, `SheetTrigger` | `SheetProps` | Slide-out panel from screen edge |
101
- | `popover` | `./opinionated/popover` | `@leitware/composables` | `Popover`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger` | `PopoverProps` | Floating content panel anchored to a trigger |
102
- | `tooltip` | `./opinionated/tooltip` | `@leitware/composables` | `Tooltip`, `TooltipContent`, `TooltipTrigger` | `TooltipProps` | Informational popup on hover or focus |
103
- | `hover-card` | `./opinionated/hover-card` | `@leitware/composables` | `HoverCard`, `HoverCardContent`, `HoverCardTrigger` | `HoverCardProps` | Preview card shown on hover |
104
- | `sonner` | `./opinionated/sonner` | `@leitware/composables` | `Toaster` | - | Toast notification system powered by Sonner |
95
+ | Module | Source module | Import from | Public values | Public types | Description |
96
+ | -------------- | ---------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------------------------------------------------- |
97
+ | `alert` | `./opinionated/alert` | `@leitware/composables` | `Alert`, `AlertAction`, `AlertDescription`, `AlertTitle` | `AlertProps`, `AlertType`, `AlertVariant` | Contextual feedback messages with type-based icon mapping |
98
+ | `dialog` | `./opinionated/dialog` | `@leitware/composables` | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogTitle`, `DialogTrigger` | `DialogProps` | Modal dialog overlay with trigger, title, and footer props |
99
+ | `alert-dialog` | `./opinionated/alert-dialog` | `@leitware/composables` | `AlertDialog`, `AlertDialogAction`, `AlertDialogCancel`, `AlertDialogContent`, `AlertDialogDescription`, `AlertDialogTitle`, `AlertDialogTrigger` | `AlertDialogProps` | Modal dialog for important confirmations |
100
+ | `sheet` | `./opinionated/sheet` | `@leitware/composables` | `Sheet`, `SheetClose`, `SheetContent`, `SheetDescription`, `SheetFooter`, `SheetHeader`, `SheetTitle`, `SheetTrigger` | `SheetProps` | Slide-out panel from screen edge |
101
+ | `popover` | `./opinionated/popover` | `@leitware/composables` | `Popover`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger` | `PopoverProps` | Floating content panel anchored to a trigger |
102
+ | `tooltip` | `./opinionated/tooltip` | `@leitware/composables` | `Tooltip`, `TooltipContent`, `TooltipTrigger` | `TooltipProps` | Informational popup on hover or focus |
103
+ | `hover-card` | `./opinionated/hover-card` | `@leitware/composables` | `HoverCard`, `HoverCardContent`, `HoverCardTrigger` | `HoverCardProps` | Preview card shown on hover |
104
+ | `sonner` | `./opinionated/sonner` | `@leitware/composables` | `Toaster` | - | Toast notification system powered by Sonner |
105
105
 
106
106
  ### Navigation
107
107
 
108
108
  | Module | Source module | Import from | Public values | Public types | Description |
109
109
  | --------------- | ----------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------- | ------------------------------------------------------ |
110
- | `tabs` | `./opinionated/tabs` | `@leitware/composables` | `Tabs`, `TabsContent` | `TabItem` | Tabbed content navigation with items array API |
110
+ | `tabs` | `./opinionated/tabs` | `@leitware/composables` | `Tabs`, `TabsContent` | `TabItem`, `TabsProps`, `TabsVariant` | Tabbed content navigation with items array API |
111
111
  | `breadcrumb` | `./opinionated/breadcrumb` | `@leitware/composables` | `Breadcrumb`, `BreadcrumbEllipsis`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbList`, `BreadcrumbPage`, `BreadcrumbSeparator` | `BreadcrumbItemData`, `BreadcrumbProps` | Navigation trail with items array API |
112
112
  | `pagination` | `./opinionated/pagination` | `@leitware/composables` | `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious` | `PaginationProps` | Page navigation with currentPage and totalPages API |
113
113
  | `sidebar` | `./opinionated/sidebar` | `@leitware/composables` | `Sidebar`, `SidebarContent`, `SidebarFooter`, `SidebarGroup`, `SidebarGroupAction`, `SidebarGroupContent`, `SidebarGroupLabel`, `SidebarHeader`, `SidebarInput`, `SidebarInset`, `SidebarMenu`, `SidebarMenuAction`, `SidebarMenuBadge`, `SidebarMenuButton`, `SidebarMenuItem`, `SidebarMenuSkeleton`, `SidebarMenuSub`, `SidebarMenuSubButton`, `SidebarMenuSubItem`, `SidebarProvider`, `SidebarRail`, `SidebarSeparator`, `SidebarTrigger`, `useSidebar` | - | Application sidebar with collapsible navigation groups |
@@ -115,20 +115,20 @@ Use this catalog to choose public exports. The `Source module` column is for mai
115
115
 
116
116
  ### Data Display
117
117
 
118
- | Module | Source module | Import from | Public values | Public types | Description |
119
- | ------------- | --------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | ---------------------------------------------------------------------------- |
120
- | `table` | `./opinionated/table` | `@leitware/composables` | `Table`, `TableBody`, `TableCaption`, `TableCell`, `TableFooter`, `TableHead`, `TableHeader`, `TableRow` | - | Semantic HTML table with styled rows and cells |
121
- | `card` | `./opinionated/card` | `@leitware/composables` | `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle` | `CardProps` | Bordered content container with title, description, action, and footer props |
122
- | `accordion` | `./opinionated/accordion` | `@leitware/composables` | `Accordion`, `AccordionContent`, `AccordionItem`, `AccordionTrigger` | `AccordionItemData`, `AccordionProps` | Vertically collapsible content sections with items array API |
123
- | `collapsible` | `./opinionated/collapsible` | `@leitware/composables` | `Collapsible`, `CollapsibleContent`, `CollapsibleTrigger` | `CollapsibleProps` | Expandable and collapsible content panel with trigger prop |
124
- | `item` | `./opinionated/item` | `@leitware/composables` | `Item`, `ItemActions`, `ItemContent`, `ItemDescription`, `ItemFooter`, `ItemGroup`, `ItemHeader`, `ItemMedia`, `ItemSeparator`, `ItemTitle` | `ItemProps` | Flexible list item with title, description, icon, and actions |
125
- | `message` | `./opinionated/message` | `@leitware/composables` | `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader` | - | Message row primitives for chat, activity, and assistant UIs |
126
- | `bubble` | `./opinionated/bubble` | `@leitware/composables` | `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions` | `BubbleProps` | Message bubble primitives with semantic variants |
127
- | `marker` | `./opinionated/marker` | `@leitware/composables` | `Marker`, `MarkerContent`, `MarkerIcon` | `MarkerProps` | Inline metadata marker with icon, separator, and border variants |
128
- | `empty` | `./opinionated/empty` | `@leitware/composables` | `Empty`, `EmptyContent`, `EmptyDescription`, `EmptyHeader`, `EmptyMedia`, `EmptyTableState`, `EmptyTitle` | `EmptyProps`, `EmptyTableStateProps` | Empty state placeholder with icon, title, and description |
129
- | `carousel` | `./opinionated/carousel` | `@leitware/composables` | `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselNext`, `CarouselPrevious` | `CarouselProps` | Horizontally scrollable content slider with items array API |
130
- | `code-block` | `./opinionated/code-block` | `@leitware/composables` | `CodeBlock` | - | Monospace code display with line numbers |
131
- | `list` | `./opinionated/list` | `@leitware/composables` | `List`, `ListArrowItem`, `ListBulletItem` | `ListItemData`, `ListProps`, `ListVariant` | Variant list renderer: arrow, bullet |
118
+ | Module | Source module | Import from | Public values | Public types | Description |
119
+ | ------------- | --------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------- |
120
+ | `table` | `./opinionated/table` | `@leitware/composables` | `Table`, `TableBody`, `TableCaption`, `TableCell`, `TableFooter`, `TableHead`, `TableHeader`, `TableRow` | - | Semantic HTML table with styled rows and cells |
121
+ | `card` | `./opinionated/card` | `@leitware/composables` | `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle` | `CardProps` | Bordered content container with title, description, action, and footer props |
122
+ | `accordion` | `./opinionated/accordion` | `@leitware/composables` | `Accordion`, `AccordionContent`, `AccordionItem`, `AccordionTrigger` | `AccordionItemData`, `AccordionProps`, `AccordionVariant` | Vertically collapsible content sections with items array API |
123
+ | `collapsible` | `./opinionated/collapsible` | `@leitware/composables` | `Collapsible`, `CollapsibleContent`, `CollapsibleTrigger` | `CollapsibleProps` | Expandable and collapsible content panel with trigger prop |
124
+ | `item` | `./opinionated/item` | `@leitware/composables` | `Item`, `ItemActions`, `ItemContent`, `ItemDescription`, `ItemFooter`, `ItemGroup`, `ItemHeader`, `ItemMedia`, `ItemSeparator`, `ItemTitle` | `ItemProps`, `ItemVariants` | Flexible list item with title, description, icon, and actions |
125
+ | `message` | `./opinionated/message` | `@leitware/composables` | `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader` | - | Message row primitives for chat, activity, and assistant UIs |
126
+ | `bubble` | `./opinionated/bubble` | `@leitware/composables` | `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions` | `BubbleProps` | Message bubble primitives with semantic variants |
127
+ | `marker` | `./opinionated/marker` | `@leitware/composables` | `Marker`, `MarkerContent`, `MarkerIcon` | `MarkerProps` | Inline metadata marker with icon, separator, and border variants |
128
+ | `empty` | `./opinionated/empty` | `@leitware/composables` | `Empty`, `EmptyContent`, `EmptyDescription`, `EmptyHeader`, `EmptyMedia`, `EmptyTableState`, `EmptyTitle` | `EmptyProps`, `EmptyTableStateProps` | Empty state placeholder with icon, title, and description |
129
+ | `carousel` | `./opinionated/carousel` | `@leitware/composables` | `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselNext`, `CarouselPrevious` | `CarouselProps` | Horizontally scrollable content slider with items array API |
130
+ | `code-block` | `./opinionated/code-block` | `@leitware/composables` | `CodeBlock` | `CodeBlockProps` | Monospace code display with line numbers |
131
+ | `list` | `./opinionated/list` | `@leitware/composables` | `List`, `ListArrowItem`, `ListBulletItem` | `ListItemData`, `ListProps`, `ListVariant` | Variant list renderer: arrow, bullet |
132
132
 
133
133
  ### Form Components
134
134
 
@@ -152,19 +152,19 @@ Use this catalog to choose public exports. The `Source module` column is for mai
152
152
 
153
153
  ### Interactive
154
154
 
155
- | Module | Source module | Import from | Public values | Public types | Description |
156
- | -------------- | ---------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | ------------------------------------------------------- |
157
- | `button` | `./opinionated/button` | `@leitware/composables` | `Button` | `ButtonProps` | Clickable button with loading spinner support |
158
- | `toggle` | `./opinionated/toggle` | `@leitware/composables` | `Toggle` | `ToggleProps` | Pressable toggle button with left and right icon slots |
159
- | `toggle-group` | `./opinionated/toggle-group` | `@leitware/composables` | `ToggleGroup`, `ToggleGroupItem` | `ToggleGroupOption`, `ToggleGroupProps` | Grouped toggle buttons for single or multiple selection |
160
- | `switch` | `./opinionated/switch` | `@leitware/composables` | `Switch` | - | Toggle switch for on/off states |
161
- | `slider` | `./opinionated/slider` | `@leitware/composables` | `Slider` | - | Draggable range slider input |
162
- | `checkbox` | `./opinionated/checkbox` | `@leitware/composables` | `Checkbox` | - | Toggle checkbox input with checked state |
163
- | `radio-group` | `./opinionated/radio-group` | `@leitware/composables` | `RadioGroup`, `RadioGroupItem` | - | Group of mutually exclusive radio options |
164
- | `combobox` | `./opinionated/combobox` | `@leitware/composables` | `Combobox`, `ComboboxChip`, `ComboboxChips`, `ComboboxChipsInput`, `ComboboxCollection`, `ComboboxContent`, `ComboboxEmpty`, `ComboboxGroup`, `ComboboxInput`, `ComboboxItem`, `ComboboxLabel`, `ComboboxList`, `ComboboxSeparator`, `ComboboxTrigger`, `ComboboxValue` | `ComboboxOption`, `ComboboxProps` | Searchable select dropdown with autocomplete |
165
- | `select` | `./opinionated/select` | `@leitware/composables` | `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectTrigger`, `SelectValue` | `SelectOption`, `SelectProps` | Dropdown select menu with scrollable options |
166
- | `calendar` | `./opinionated/calendar` | `@leitware/composables` | `Calendar`, `CalendarDayButton` | - | Date picker calendar powered by react-day-picker |
167
- | `dropzone` | `./opinionated/dropzone` | `@leitware/composables` | `ACCEPT_PRESETS`, `DropZone`, `DropZoneFile` | - | Drag-and-drop file upload area |
155
+ | Module | Source module | Import from | Public values | Public types | Description |
156
+ | -------------- | ---------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------- |
157
+ | `button` | `./opinionated/button` | `@leitware/composables` | `Button` | `ButtonProps` | Clickable button with loading spinner support |
158
+ | `toggle` | `./opinionated/toggle` | `@leitware/composables` | `Toggle` | `ToggleProps` | Pressable toggle button with left and right icon slots |
159
+ | `toggle-group` | `./opinionated/toggle-group` | `@leitware/composables` | `ToggleGroup`, `ToggleGroupItem` | `ToggleGroupOption`, `ToggleGroupProps` | Grouped toggle buttons for single or multiple selection |
160
+ | `switch` | `./opinionated/switch` | `@leitware/composables` | `Switch` | - | Toggle switch for on/off states |
161
+ | `slider` | `./opinionated/slider` | `@leitware/composables` | `Slider` | - | Draggable range slider input |
162
+ | `checkbox` | `./opinionated/checkbox` | `@leitware/composables` | `Checkbox` | - | Toggle checkbox input with checked state |
163
+ | `radio-group` | `./opinionated/radio-group` | `@leitware/composables` | `RadioGroup`, `RadioGroupItem` | - | Group of mutually exclusive radio options |
164
+ | `combobox` | `./opinionated/combobox` | `@leitware/composables` | `Combobox`, `ComboboxChip`, `ComboboxChips`, `ComboboxChipsInput`, `ComboboxCollection`, `ComboboxContent`, `ComboboxEmpty`, `ComboboxGroup`, `ComboboxInput`, `ComboboxItem`, `ComboboxLabel`, `ComboboxList`, `ComboboxSeparator`, `ComboboxTrigger`, `ComboboxValue` | `ComboboxOption`, `ComboboxProps` | Searchable select dropdown with autocomplete |
165
+ | `select` | `./opinionated/select` | `@leitware/composables` | `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectTrigger`, `SelectValue` | `SelectOption`, `SelectProps` | Dropdown select menu with scrollable options |
166
+ | `calendar` | `./opinionated/calendar` | `@leitware/composables` | `Calendar`, `CalendarDayButton` | - | Date picker calendar powered by react-day-picker |
167
+ | `dropzone` | `./opinionated/dropzone` | `@leitware/composables` | `ACCEPT_PRESETS`, `DropZone`, `DropZoneFile` | `Accept`, `DropZoneFileProps`, `DropZoneProps`, `FileRejection` | Drag-and-drop file upload area |
168
168
 
169
169
  ### Tooling Components
170
170
 
@@ -7,7 +7,7 @@ This is the exact installed-package entrypoint and export-name contract. Import
7
7
  ## `@leitware/composables`
8
8
 
9
9
  - Values (275): `ACCEPT_PRESETS`, `Accordion`, `AccordionContent`, `AccordionItem`, `AccordionTrigger`, `Alert`, `AlertAction`, `AlertDescription`, `AlertDialog`, `AlertDialogAction`, `AlertDialogCancel`, `AlertDialogContent`, `AlertDialogDescription`, `AlertDialogTitle`, `AlertDialogTrigger`, `AlertTitle`, `AspectRatio`, `Avatar`, `AvatarFallback`, `AvatarImage`, `Badge`, `BentoCell`, `BentoGrid`, `Breadcrumb`, `BreadcrumbEllipsis`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbList`, `BreadcrumbPage`, `BreadcrumbSeparator`, `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions`, `Button`, `Calendar`, `CalendarDayButton`, `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`, `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselNext`, `CarouselPrevious`, `Checkbox`, `cn`, `CodeBlock`, `Collapsible`, `CollapsibleContent`, `CollapsibleTrigger`, `Combobox`, `ComboboxChip`, `ComboboxChips`, `ComboboxChipsInput`, `ComboboxCollection`, `ComboboxContent`, `ComboboxEmpty`, `ComboboxGroup`, `ComboboxInput`, `ComboboxItem`, `ComboboxLabel`, `ComboboxList`, `ComboboxSeparator`, `ComboboxTrigger`, `ComboboxValue`, `Container`, `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogTitle`, `DialogTrigger`, `DirectionProvider`, `DISABLED_OPACITY`, `Divider`, `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`, `DropZone`, `DropZoneFile`, `Empty`, `EmptyContent`, `EmptyDescription`, `EmptyHeader`, `EmptyMedia`, `EmptyTableState`, `EmptyTitle`, `Field`, `FieldContent`, `FieldDescription`, `FieldError`, `FieldGroup`, `FieldLabel`, `FieldLegend`, `FieldSeparator`, `FieldSet`, `FieldTitle`, `FOCUS_RING`, `FOCUS_RING_DESTRUCTIVE`, `formatNumericValue`, `FormCalendarPopover`, `FormCheckbox`, `FormCombobox`, `FormDateOfBirth`, `FormDropZone`, `FormInput`, `FormInputGroup`, `FormMultiCombobox`, `FormMultiDropZone`, `FormRadioGroup`, `FormSelect`, `FormSlider`, `FormSwitch`, `FormTextarea`, `Grid`, `GridOverlay`, `HoverCard`, `HoverCardContent`, `HoverCardTrigger`, `Icon`, `Input`, `InputGroup`, `InputGroupAddon`, `InputGroupButton`, `InputGroupInput`, `InputGroupTextarea`, `Item`, `ItemActions`, `ItemContent`, `ItemDescription`, `ItemFooter`, `ItemGroup`, `ItemHeader`, `ItemMedia`, `ItemSeparator`, `ItemTitle`, `Kbd`, `KbdGroup`, `Label`, `leftPad`, `List`, `ListArrowItem`, `ListBulletItem`, `Marker`, `MarkerContent`, `MarkerIcon`, `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader`, `NativeSelect`, `NativeSelectOptGroup`, `NativeSelectOption`, `NewspaperCell`, `NewspaperGrid`, `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `parseNumericValue`, `Popover`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger`, `Progress`, `ProgressIndicator`, `ProgressLabel`, `ProgressTrack`, `ProgressValue`, `RadioGroup`, `RadioGroupItem`, `ResizableHandle`, `ResizablePanel`, `ResizablePanelGroup`, `sanitizeNumericInput`, `ScrollArea`, `ScrollBar`, `Section`, `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectTrigger`, `SelectValue`, `Separator`, `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`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonInput`, `SkeletonText`, `Slider`, `Spacer`, `Stack`, `Switch`, `Table`, `TableBody`, `TableCaption`, `TableCell`, `TableFooter`, `TableHead`, `TableHeader`, `TableRow`, `Tabs`, `TabsContent`, `Textarea`, `ThemeInjector`, `Toaster`, `Toggle`, `ToggleGroup`, `ToggleGroupItem`, `TokenConfigPanel`, `Tooltip`, `TooltipContent`, `TooltipTrigger`, `Typography`, `useDirection`, `useIsMobile`, `useNumericInput`, `useSidebar`
10
- - Types (71): `AccordionItemData`, `AccordionProps`, `AlertDialogProps`, `AlertProps`, `AlertType`, `AvatarProps`, `BadgeProps`, `BreadcrumbItemData`, `BreadcrumbProps`, `BubbleProps`, `ButtonProps`, `CardProps`, `CarouselProps`, `CollapsibleProps`, `ComboboxOption`, `ComboboxProps`, `DateOfBirthValue`, `DialogProps`, `DirectionProviderProps`, `DropdownMenuItemData`, `DropdownMenuProps`, `EmptyProps`, `EmptyTableStateProps`, `FormCalendarPopoverProps`, `FormCheckboxProps`, `FormComboboxOption`, `FormComboboxProps`, `FormDateOfBirthProps`, `FormDropZoneProps`, `FormInputGroupInputProps`, `FormInputGroupProps`, `FormInputProps`, `FormMultiComboboxOption`, `FormMultiComboboxProps`, `FormMultiDropZoneProps`, `FormRadioGroupOption`, `FormRadioGroupProps`, `FormSelectOption`, `FormSelectProps`, `FormSliderProps`, `FormSwitchProps`, `FormTextareaProps`, `GridOverlayProps`, `HoverCardProps`, `ItemProps`, `KbdGroupProps`, `KbdProps`, `ListItemData`, `ListProps`, `ListVariant`, `MarkerProps`, `NativeSelectOptionData`, `NativeSelectProps`, `NumericInputOptions`, `NumericMode`, `PaginationProps`, `PopoverProps`, `ProgressProps`, `ScrollAreaProps`, `SelectOption`, `SelectProps`, `SheetProps`, `SkeletonProps`, `TabItem`, `TextDirection`, `ToggleGroupOption`, `ToggleGroupProps`, `ToggleProps`, `TooltipProps`, `UseNumericInputOptions`, `UseNumericInputReturn`
10
+ - Types (91): `Accept`, `AccordionItemData`, `AccordionProps`, `AccordionVariant`, `AlertDialogProps`, `AlertProps`, `AlertType`, `AlertVariant`, `AvatarProps`, `BadgeProps`, `BreadcrumbItemData`, `BreadcrumbProps`, `BubbleProps`, `ButtonProps`, `CardProps`, `CarouselProps`, `CodeBlockProps`, `CollapsibleProps`, `ComboboxOption`, `ComboboxProps`, `ContainerProps`, `DateOfBirthValue`, `DialogProps`, `DirectionProviderProps`, `DividerProps`, `DropdownMenuItemData`, `DropdownMenuProps`, `DropZoneFileProps`, `DropZoneProps`, `EmptyProps`, `EmptyTableStateProps`, `FileRejection`, `FormCalendarPopoverProps`, `FormCheckboxProps`, `FormComboboxOption`, `FormComboboxProps`, `FormDateOfBirthProps`, `FormDropZoneProps`, `FormInputGroupInputProps`, `FormInputGroupProps`, `FormInputProps`, `FormMultiComboboxOption`, `FormMultiComboboxProps`, `FormMultiDropZoneProps`, `FormRadioGroupOption`, `FormRadioGroupProps`, `FormSelectOption`, `FormSelectProps`, `FormSliderProps`, `FormSwitchProps`, `FormTextareaProps`, `GridOverlayProps`, `GridProps`, `HoverCardProps`, `ItemProps`, `ItemVariants`, `KbdGroupProps`, `KbdProps`, `ListItemData`, `ListProps`, `ListVariant`, `MarkerProps`, `NativeSelectOptionData`, `NativeSelectProps`, `NewspaperCellProps`, `NewspaperGridProps`, `NumericInputOptions`, `NumericMode`, `PaginationProps`, `PopoverProps`, `ProgressProps`, `ScrollAreaProps`, `SectionProps`, `SelectOption`, `SelectProps`, `SheetProps`, `SkeletonProps`, `SpacerProps`, `StackProps`, `TabItem`, `TabsProps`, `TabsVariant`, `TextDirection`, `ToggleGroupOption`, `ToggleGroupProps`, `ToggleProps`, `TooltipProps`, `TypographyProps`, `TypographyVariant`, `UseNumericInputOptions`, `UseNumericInputReturn`
11
11
 
12
12
  ## `@leitware/composables/ai`
13
13
 
@@ -85,4 +85,4 @@ function AlertAction({ className, ...props }: React.ComponentProps<'div'>) {
85
85
  )
86
86
  }
87
87
 
88
- export { Alert, AlertTitle, AlertDescription, AlertAction }
88
+ export { Alert, AlertTitle, AlertDescription, AlertAction, alertVariants }
@@ -8,7 +8,7 @@ const BADGE_LINK_HOVER =
8
8
  '[a]:hover:ring-[length:var(--hover-ring-width)] [a]:hover:ring-[color:var(--hover-ring-color)]/30'
9
9
 
10
10
  const badgeVariants = cva(
11
- `${FOCUS_RING} h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-2xs font-medium transition-[opacity,box-shadow] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none overflow-hidden group/badge`,
11
+ `${FOCUS_RING} h-5 gap-1 rounded-(--badge-radius) border border-transparent px-2 py-0.5 text-2xs font-medium transition-[opacity,box-shadow] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none overflow-hidden group/badge`,
12
12
  {
13
13
  variants: {
14
14
  variant: {
@@ -28,9 +28,16 @@ const badgeVariants = cva(
28
28
  emphasis: 'bg-surface-emphasis text-emphasis border-stroke-emphasis',
29
29
  link: 'text-primary underline-offset-4 hover:underline',
30
30
  },
31
+ // Declared after `variant` so the pill class wins when tailwind-merge
32
+ // resolves conflicts.
33
+ shape: {
34
+ default: '',
35
+ pill: 'rounded-full',
36
+ },
31
37
  },
32
38
  defaultVariants: {
33
39
  variant: 'default',
40
+ shape: 'default',
34
41
  },
35
42
  },
36
43
  )
@@ -38,6 +45,7 @@ const badgeVariants = cva(
38
45
  function Badge({
39
46
  className,
40
47
  variant = 'default',
48
+ shape = 'default',
41
49
  render,
42
50
  ...props
43
51
  }: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>) {
@@ -45,7 +53,7 @@ function Badge({
45
53
  defaultTagName: 'span',
46
54
  props: mergeProps<'span'>(
47
55
  {
48
- className: cn(badgeVariants({ className, variant })),
56
+ className: cn(badgeVariants({ className, variant, shape })),
49
57
  },
50
58
  props,
51
59
  ),
@@ -2,8 +2,12 @@ import { Button as ButtonPrimitive } from '@base-ui/react/button'
2
2
  import { cva, type VariantProps } from 'class-variance-authority'
3
3
  import { cn, FOCUS_RING, FOCUS_RING_DESTRUCTIVE, HOVER_RING } from '../lib/utils'
4
4
 
5
+ // Every variant carries the same (usually transparent) border so hover/focus
6
+ // border repaints never shift layout, and the background paints UNDER the
7
+ // border (no bg-clip-padding) so filled and outlined buttons read as the same
8
+ // size regardless of --border-width-base.
5
9
  const buttonVariants = cva(
6
- `${FOCUS_RING} ${HOVER_RING} rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-[opacity,box-shadow,transform] active:scale-[var(--active-scale)] disabled:pointer-events-none disabled:opacity-disabled [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none`,
10
+ `${FOCUS_RING} ${HOVER_RING} rounded-(--button-radius) border border-transparent text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-[opacity,box-shadow,transform] active:scale-[var(--active-scale)] disabled:pointer-events-none disabled:opacity-disabled [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none`,
7
11
  {
8
12
  variants: {
9
13
  variant: {
@@ -28,18 +32,25 @@ const buttonVariants = cva(
28
32
  size: {
29
33
  default:
30
34
  "h-7 gap-1 px-3 text-xs/relaxed has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&_svg:not([class*='size-'])]:size-3.5",
31
- xs: "h-5 gap-1 rounded-sm px-2.5 text-2xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-2.5",
35
+ xs: "h-5 gap-1 px-2.5 text-2xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-2.5",
32
36
  sm: "h-6 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
33
37
  lg: "h-8 gap-1 px-3.5 text-xs/relaxed has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-4",
34
38
  icon: "size-7 [&_svg:not([class*='size-'])]:size-3.5",
35
- 'icon-xs': "size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5",
39
+ 'icon-xs': "size-5 [&_svg:not([class*='size-'])]:size-2.5",
36
40
  'icon-sm': "size-6 [&_svg:not([class*='size-'])]:size-3",
37
41
  'icon-lg': "size-8 [&_svg:not([class*='size-'])]:size-4",
38
42
  },
43
+ // Declared after `size` so the pill class wins any size-level radius
44
+ // when tailwind-merge resolves conflicts.
45
+ shape: {
46
+ default: '',
47
+ pill: 'rounded-full',
48
+ },
39
49
  },
40
50
  defaultVariants: {
41
51
  variant: 'default',
42
52
  size: 'default',
53
+ shape: 'default',
43
54
  },
44
55
  },
45
56
  )
@@ -48,12 +59,13 @@ function Button({
48
59
  className,
49
60
  variant = 'default',
50
61
  size = 'default',
62
+ shape = 'default',
51
63
  ...props
52
64
  }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
53
65
  return (
54
66
  <ButtonPrimitive
55
67
  data-slot="button"
56
- className={cn(buttonVariants({ variant, size, className }))}
68
+ className={cn(buttonVariants({ variant, size, shape, className }))}
57
69
  {...props}
58
70
  />
59
71
  )
@@ -50,7 +50,9 @@ function ToggleGroup<Value extends string = string>({
50
50
  data-orientation={orientation}
51
51
  orientation={orientation}
52
52
  className={cn(
53
- 'inline-flex w-fit items-center data-[orientation=vertical]:flex-col',
53
+ // Vertical groups stretch items so every toggle matches the width
54
+ // of the widest item instead of hugging its own content.
55
+ 'inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',
54
56
  spacingClassName[spacing],
55
57
  className,
56
58
  )}
@@ -86,7 +88,7 @@ function ToggleGroupItem<Value extends string = string>({
86
88
  variant={resolvedVariant}
87
89
  size={resolvedSize}
88
90
  className={cn(
89
- 'shrink-0 focus:z-10 focus-visible:z-10',
91
+ 'shrink-0 focus:z-10 focus-visible:z-10 data-[orientation=vertical]:w-full',
90
92
  context.spacing === 'none' &&
91
93
  'rounded-none data-[orientation=horizontal]:first:rounded-l-md data-[orientation=horizontal]:last:rounded-r-md data-[orientation=horizontal]:data-[variant=outline]:border-l-0 data-[orientation=horizontal]:first:data-[variant=outline]:border-l data-[orientation=vertical]:first:rounded-t-md data-[orientation=vertical]:last:rounded-b-md data-[orientation=vertical]:data-[variant=outline]:border-t-0 data-[orientation=vertical]:first:data-[variant=outline]:border-t',
92
94
  className,
package/src/index.ts CHANGED
@@ -30,6 +30,7 @@ export {
30
30
  AccordionTrigger,
31
31
  type AccordionItemData,
32
32
  type AccordionProps,
33
+ type AccordionVariant,
33
34
  } from './opinionated/accordion'
34
35
 
35
36
  export {
@@ -48,6 +49,7 @@ export {
48
49
  AlertAction,
49
50
  AlertDescription,
50
51
  AlertTitle,
52
+ type AlertVariant,
51
53
  type AlertType,
52
54
  type AlertProps,
53
55
  } from './opinionated/alert'
@@ -102,7 +104,7 @@ export {
102
104
  } from './opinionated/carousel'
103
105
 
104
106
  export { Checkbox } from './opinionated/checkbox'
105
- export { CodeBlock } from './opinionated/code-block'
107
+ export { CodeBlock, type CodeBlockProps } from './opinionated/code-block'
106
108
 
107
109
  export {
108
110
  Collapsible,
@@ -131,7 +133,7 @@ export {
131
133
  type ComboboxProps,
132
134
  } from './opinionated/combobox'
133
135
 
134
- export { Container } from './opinionated/container'
136
+ export { Container, type ContainerProps } from './opinionated/container'
135
137
 
136
138
  export {
137
139
  Dialog,
@@ -145,7 +147,7 @@ export {
145
147
  type DialogProps,
146
148
  } from './opinionated/dialog'
147
149
 
148
- export { Divider } from './opinionated/divider'
150
+ export { Divider, type DividerProps } from './opinionated/divider'
149
151
 
150
152
  export {
151
153
  DirectionProvider,
@@ -172,7 +174,14 @@ export {
172
174
  type DropdownMenuProps,
173
175
  } from './opinionated/dropdown-menu'
174
176
 
175
- export { DropZone, DropZoneFile } from './opinionated/dropzone'
177
+ export {
178
+ DropZone,
179
+ DropZoneFile,
180
+ type Accept,
181
+ type DropZoneFileProps,
182
+ type DropZoneProps,
183
+ type FileRejection,
184
+ } from './opinionated/dropzone'
176
185
 
177
186
  export {
178
187
  Empty,
@@ -237,7 +246,7 @@ export { FormSlider, type FormSliderProps } from './opinionated/form-slider'
237
246
  export { FormSwitch, type FormSwitchProps } from './opinionated/form-switch'
238
247
  export { FormTextarea, type FormTextareaProps } from './opinionated/form-textarea'
239
248
 
240
- export { Grid } from './opinionated/grid'
249
+ export { Grid, type GridProps } from './opinionated/grid'
241
250
  export { GridOverlay, type GridOverlayProps } from './opinionated/grid-overlay'
242
251
 
243
252
  export {
@@ -272,11 +281,19 @@ export {
272
281
  ItemSeparator,
273
282
  ItemTitle,
274
283
  type ItemProps,
284
+ type ItemVariants,
275
285
  } from './opinionated/item'
276
286
 
277
287
  export { Label } from './opinionated/label'
278
288
 
279
- export { Section, NewspaperGrid, NewspaperCell } from './opinionated/layout'
289
+ export {
290
+ Section,
291
+ NewspaperGrid,
292
+ NewspaperCell,
293
+ type NewspaperCellProps,
294
+ type NewspaperGridProps,
295
+ type SectionProps,
296
+ } from './opinionated/layout'
280
297
 
281
298
  export { BentoGrid, BentoCell } from './opinionated/layout-bento'
282
299
 
@@ -408,8 +425,8 @@ export {
408
425
 
409
426
  export { Slider } from './opinionated/slider'
410
427
  export { Toaster } from './opinionated/sonner'
411
- export { Spacer } from './opinionated/spacer'
412
- export { Stack } from './opinionated/stack'
428
+ export { Spacer, type SpacerProps } from './opinionated/spacer'
429
+ export { Stack, type StackProps } from './opinionated/stack'
413
430
  export { Switch } from './opinionated/switch'
414
431
 
415
432
  export {
@@ -423,7 +440,13 @@ export {
423
440
  TableRow,
424
441
  } from './opinionated/table'
425
442
 
426
- export { Tabs, TabsContent, type TabItem } from './opinionated/tabs'
443
+ export {
444
+ Tabs,
445
+ TabsContent,
446
+ type TabItem,
447
+ type TabsProps,
448
+ type TabsVariant,
449
+ } from './opinionated/tabs'
427
450
 
428
451
  export { Textarea } from './opinionated/textarea'
429
452
  export { ThemeInjector } from './opinionated/theme-injector'
@@ -437,7 +460,7 @@ export {
437
460
 
438
461
  export { Tooltip, TooltipContent, TooltipTrigger, type TooltipProps } from './opinionated/tooltip'
439
462
 
440
- export { Typography } from './opinionated/typography'
463
+ export { Typography, type TypographyProps, type TypographyVariant } from './opinionated/typography'
441
464
 
442
465
  // Token config panel (advanced)
443
466
  export { TokenConfigPanel } from './opinionated/token-config-panel'
@@ -1,4 +1,5 @@
1
1
  import type { Accordion as AccordionPrimitiveBase } from '@base-ui/react/accordion'
2
+ import type { VariantProps } from 'class-variance-authority'
2
3
  import type * as React from 'react'
3
4
 
4
5
  import {
@@ -6,8 +7,12 @@ import {
6
7
  AccordionItem,
7
8
  Accordion as AccordionPrimitive,
8
9
  AccordionTrigger,
10
+ type accordionVariants,
9
11
  } from '../_internal/accordion'
10
12
 
13
+ /** Visual style variants available for the Accordion. */
14
+ export type AccordionVariant = NonNullable<VariantProps<typeof accordionVariants>['variant']>
15
+
11
16
  /** A single panel in an Accordion. */
12
17
  export interface AccordionItemData {
13
18
  /** Unique identifier for this panel (used for controlled open state). */
@@ -31,11 +36,13 @@ export interface AccordionItemData {
31
36
  * <Accordion items={[
32
37
  * { value: 'faq-1', trigger: 'What is this?', content: 'A component library.' },
33
38
  * { value: 'faq-2', trigger: 'How do I install it?', content: '...', defaultOpen: true },
34
- * ]} />
39
+ * ]} variant="separated" />
35
40
  * ```
36
41
  */
37
42
  export interface AccordionProps extends Omit<AccordionPrimitiveBase.Root.Props, 'children'> {
38
43
  className?: string
44
+ /** Visual style of the accordion. @default 'default' */
45
+ variant?: AccordionVariant
39
46
  /** Panels to render. When provided, `children` is ignored. */
40
47
  items?: AccordionItemData[]
41
48
  children?: React.ReactNode
@@ -46,6 +53,7 @@ function Accordion({
46
53
  items,
47
54
  children,
48
55
  defaultValue,
56
+ variant = 'default',
49
57
  ...accordionProps
50
58
  }: AccordionProps) {
51
59
  // If items prop is provided, use opinionated API
@@ -59,6 +67,7 @@ function Accordion({
59
67
  <AccordionPrimitive
60
68
  className={className}
61
69
  defaultValue={computedDefaultValue}
70
+ variant={variant}
62
71
  {...accordionProps}
63
72
  >
64
73
  {items.map((item) => (
@@ -74,7 +83,12 @@ function Accordion({
74
83
  // Fallback to children-based API for advanced use cases
75
84
  if (children) {
76
85
  return (
77
- <AccordionPrimitive className={className} defaultValue={defaultValue} {...accordionProps}>
86
+ <AccordionPrimitive
87
+ className={className}
88
+ defaultValue={defaultValue}
89
+ variant={variant}
90
+ {...accordionProps}
91
+ >
78
92
  {children}
79
93
  </AccordionPrimitive>
80
94
  )
@@ -82,7 +96,12 @@ function Accordion({
82
96
 
83
97
  // If neither items nor children provided, return empty accordion
84
98
  return (
85
- <AccordionPrimitive className={className} defaultValue={defaultValue} {...accordionProps}>
99
+ <AccordionPrimitive
100
+ className={className}
101
+ defaultValue={defaultValue}
102
+ variant={variant}
103
+ {...accordionProps}
104
+ >
86
105
  {null}
87
106
  </AccordionPrimitive>
88
107
  )