@codapet/design-system 0.6.0 → 0.6.3
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.mts +78 -3
- package/dist/index.mjs +1055 -609
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +142 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,8 @@ import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
|
37
37
|
import { ToasterProps } from 'sonner';
|
|
38
38
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
39
39
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
40
|
+
import { ThemeProviderProps } from 'next-themes';
|
|
41
|
+
export { ThemeProviderProps, useTheme } from 'next-themes';
|
|
40
42
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
41
43
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
42
44
|
import { ClassValue } from 'clsx';
|
|
@@ -56,6 +58,17 @@ declare function Alert({ className, variant, ...props }: React$1.ComponentProps<
|
|
|
56
58
|
declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
57
59
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
58
60
|
|
|
61
|
+
declare const alertBannerVariants: (props?: ({
|
|
62
|
+
type?: "informative" | "error" | "success" | null | undefined;
|
|
63
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
64
|
+
interface AlertBannerProps extends React$1.ComponentProps<'div'>, VariantProps<typeof alertBannerVariants> {
|
|
65
|
+
icon?: React$1.ReactNode;
|
|
66
|
+
heading?: string;
|
|
67
|
+
dismissible?: boolean;
|
|
68
|
+
onDismiss?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare function AlertBanner({ className, type, icon, heading, dismissible, onDismiss, children, ...props }: AlertBannerProps): react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
59
72
|
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
60
73
|
declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
61
74
|
declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -93,6 +106,51 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
93
106
|
asChild?: boolean;
|
|
94
107
|
}): react_jsx_runtime.JSX.Element;
|
|
95
108
|
|
|
109
|
+
declare const badgeActionableVariants: (props?: ({
|
|
110
|
+
size?: "M" | "S" | null | undefined;
|
|
111
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
112
|
+
interface BadgeActionableProps extends Omit<React$1.ComponentProps<'button'>, 'children'>, VariantProps<typeof badgeActionableVariants> {
|
|
113
|
+
icon?: React$1.ReactNode;
|
|
114
|
+
selected?: boolean;
|
|
115
|
+
onBackground?: boolean;
|
|
116
|
+
children: React$1.ReactNode;
|
|
117
|
+
}
|
|
118
|
+
declare function BadgeActionable({ className, size, icon, selected, onBackground, children, ...props }: BadgeActionableProps): react_jsx_runtime.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare const badgeInformativeVariants: (props?: ({
|
|
121
|
+
size?: "M" | "S" | null | undefined;
|
|
122
|
+
colorScheme?: "blue" | "gray" | "yellow" | null | undefined;
|
|
123
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
124
|
+
interface BadgeInformativeProps extends React$1.ComponentProps<'div'>, VariantProps<typeof badgeInformativeVariants> {
|
|
125
|
+
icon?: React$1.ReactNode;
|
|
126
|
+
linkText?: string;
|
|
127
|
+
linkHref?: string;
|
|
128
|
+
}
|
|
129
|
+
declare function BadgeInformative({ className, size, colorScheme, icon, linkText, linkHref, children, ...props }: BadgeInformativeProps): react_jsx_runtime.JSX.Element;
|
|
130
|
+
/**
|
|
131
|
+
* Container for multiple BadgeInformative items displayed side-by-side.
|
|
132
|
+
*/
|
|
133
|
+
declare function BadgeInformativeGroup({ className, size, colorScheme, children, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof badgeInformativeVariants>): react_jsx_runtime.JSX.Element;
|
|
134
|
+
/**
|
|
135
|
+
* A single item within a BadgeInformativeGroup. Use for multi-content badges.
|
|
136
|
+
*/
|
|
137
|
+
declare function BadgeInformativeItem({ className, size, colorScheme, icon, linkText, linkHref, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
138
|
+
size?: 'M' | 'S';
|
|
139
|
+
colorScheme?: 'gray' | 'blue' | 'yellow';
|
|
140
|
+
icon?: React$1.ReactNode;
|
|
141
|
+
linkText?: string;
|
|
142
|
+
linkHref?: string;
|
|
143
|
+
}): react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
declare const badgeNumberVariants: (props?: ({
|
|
146
|
+
size?: "M" | "S" | null | undefined;
|
|
147
|
+
state?: "disabled" | "active" | "resting" | null | undefined;
|
|
148
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
149
|
+
interface BadgeNumberProps extends React$1.ComponentProps<'span'>, VariantProps<typeof badgeNumberVariants> {
|
|
150
|
+
value: number;
|
|
151
|
+
}
|
|
152
|
+
declare function BadgeNumber({ className, size, state, value, ...props }: BadgeNumberProps): react_jsx_runtime.JSX.Element;
|
|
153
|
+
|
|
96
154
|
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
97
155
|
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
98
156
|
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
@@ -105,7 +163,7 @@ declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentPr
|
|
|
105
163
|
|
|
106
164
|
declare const buttonVariants: (props?: ({
|
|
107
165
|
variant?: "link" | "destructive" | "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "ghost-secondary" | "ghost-destructive" | "destructive-secondary" | "destructive-tertiary" | null | undefined;
|
|
108
|
-
size?: "
|
|
166
|
+
size?: "icon" | "md" | "sm" | "lg" | null | undefined;
|
|
109
167
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
110
168
|
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
111
169
|
asChild?: boolean;
|
|
@@ -522,6 +580,14 @@ declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentP
|
|
|
522
580
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
523
581
|
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
524
582
|
declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
583
|
+
interface RichTooltipContentProps extends Omit<React$1.ComponentProps<typeof TooltipPrimitive.Content>, 'children'> {
|
|
584
|
+
icon?: React$1.ReactNode;
|
|
585
|
+
heading?: string;
|
|
586
|
+
dismissible?: boolean;
|
|
587
|
+
onDismiss?: () => void;
|
|
588
|
+
children: React$1.ReactNode;
|
|
589
|
+
}
|
|
590
|
+
declare function RichTooltipContent({ className, sideOffset, icon, heading, dismissible, onDismiss, children, ...props }: RichTooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
525
591
|
|
|
526
592
|
type SidebarContextProps = {
|
|
527
593
|
state: 'expanded' | 'collapsed';
|
|
@@ -622,9 +688,18 @@ declare function TableCaption({ className, ...props }: React$1.ComponentProps<"c
|
|
|
622
688
|
|
|
623
689
|
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
624
690
|
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
625
|
-
declare
|
|
691
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
692
|
+
size?: "md" | "lg" | null | undefined;
|
|
693
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
694
|
+
interface TabsTriggerProps extends React$1.ComponentProps<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
|
|
695
|
+
}
|
|
696
|
+
declare function TabsTrigger({ className, size, children, ...props }: TabsTriggerProps): react_jsx_runtime.JSX.Element;
|
|
626
697
|
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
627
698
|
|
|
699
|
+
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
700
|
+
|
|
701
|
+
declare function ThemeToggle({ className, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
702
|
+
|
|
628
703
|
type TimeFormat = '12h' | '24h' | 'h:mm a' | 'h:mm A';
|
|
629
704
|
interface TimeValue {
|
|
630
705
|
hours: number;
|
|
@@ -691,4 +766,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
691
766
|
|
|
692
767
|
declare function useIsMobile(): boolean;
|
|
693
768
|
|
|
694
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AutoResizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DateFormat, DateInput, type DateInputProps, DateRangeInput, type DateRangeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayHeading, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeadingL, HeadingM, HeadingS, HeadingXL, HeadingXS, HeadingXXS, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchableSelect, SearchableSelectContent, SearchableSelectEmpty, SearchableSelectGroup, SearchableSelectItem, type SearchableSelectOption, type SearchableSelectProps, SearchableSelectTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, 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, Slider, SmartDialog, SmartDialogClose, SmartDialogContent, SmartDialogDescription, SmartDialogFooter, SmartDialogHeader, SmartDialogTitle, SmartDialogTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type TimeFormat, TimeInput, type TimeInputProps, type TimeValue, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, toggleVariants, useFormField, useIsMobile, useSidebar };
|
|
769
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertBanner, type AlertBannerProps, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AutoResizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, BadgeActionable, type BadgeActionableProps, BadgeInformative, BadgeInformativeGroup, BadgeInformativeItem, type BadgeInformativeProps, BadgeNumber, type BadgeNumberProps, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DateFormat, DateInput, type DateInputProps, DateRangeInput, type DateRangeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayHeading, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeadingL, HeadingM, HeadingS, HeadingXL, HeadingXS, HeadingXXS, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTooltipContent, type RichTooltipContentProps, ScrollArea, ScrollBar, SearchableSelect, SearchableSelectContent, SearchableSelectEmpty, SearchableSelectGroup, SearchableSelectItem, type SearchableSelectOption, type SearchableSelectProps, SearchableSelectTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, 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, Slider, SmartDialog, SmartDialogClose, SmartDialogContent, SmartDialogDescription, SmartDialogFooter, SmartDialogHeader, SmartDialogTitle, SmartDialogTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type TimeFormat, TimeInput, type TimeInputProps, type TimeValue, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertBannerVariants, badgeActionableVariants, badgeInformativeVariants, badgeNumberVariants, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, tabsTriggerVariants, toggleVariants, useFormField, useIsMobile, useSidebar };
|