@hex-core/components 1.3.0 → 1.4.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/README.md +183 -9
- package/dist/accordion.d.ts +13 -0
- package/dist/accordion.js +62 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert-dialog.d.ts +34 -0
- package/dist/alert-dialog.js +125 -0
- package/dist/alert-dialog.js.map +1 -0
- package/dist/alert.d.ts +17 -0
- package/dist/alert.js +54 -0
- package/dist/alert.js.map +1 -0
- package/dist/aspect-ratio.d.ts +7 -0
- package/dist/aspect-ratio.js +8 -0
- package/dist/aspect-ratio.js.map +1 -0
- package/dist/avatar.d.ts +11 -0
- package/dist/avatar.js +44 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.d.ts +22 -0
- package/dist/badge.js +36 -0
- package/dist/badge.js.map +1 -0
- package/dist/breadcrumb.d.ts +27 -0
- package/dist/breadcrumb.js +120 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/button-variants-Bx6gCUFp.d.ts +19 -0
- package/dist/button.d.ts +13 -0
- package/dist/button.js +113 -0
- package/dist/button.js.map +1 -0
- package/dist/calendar.d.ts +17 -0
- package/dist/calendar.js +126 -0
- package/dist/calendar.js.map +1 -0
- package/dist/card.d.ts +16 -0
- package/dist/card.js +68 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.d.ts +11 -0
- package/dist/checkbox.js +65 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/cluster.d.ts +34 -0
- package/dist/cluster.js +50 -0
- package/dist/cluster.js.map +1 -0
- package/dist/collapsible.d.ts +11 -0
- package/dist/collapsible.js +10 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/color-picker.d.ts +44 -0
- package/dist/color-picker.js +321 -0
- package/dist/color-picker.js.map +1 -0
- package/dist/combobox.d.ts +45 -0
- package/dist/combobox.js +226 -0
- package/dist/combobox.js.map +1 -0
- package/dist/command.d.ts +111 -0
- package/dist/command.js +232 -0
- package/dist/command.js.map +1 -0
- package/dist/container.d.ts +41 -0
- package/dist/container.js +39 -0
- package/dist/container.js.map +1 -0
- package/dist/context-menu.d.ts +37 -0
- package/dist/context-menu.js +130 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/data-table.d.ts +33 -0
- package/dist/data-table.js +103 -0
- package/dist/data-table.js.map +1 -0
- package/dist/date-picker.d.ts +43 -0
- package/dist/date-picker.js +221 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/dialog.d.ts +46 -0
- package/dist/dialog.js +125 -0
- package/dist/dialog.js.map +1 -0
- package/dist/drawer.d.ts +41 -0
- package/dist/drawer.js +82 -0
- package/dist/drawer.js.map +1 -0
- package/dist/dropdown-menu.d.ts +39 -0
- package/dist/dropdown-menu.js +133 -0
- package/dist/dropdown-menu.js.map +1 -0
- package/dist/dropzone.d.ts +54 -0
- package/dist/dropzone.js +194 -0
- package/dist/dropzone.js.map +1 -0
- package/dist/file-tree.d.ts +53 -0
- package/dist/file-tree.js +322 -0
- package/dist/file-tree.js.map +1 -0
- package/dist/form.d.ts +45 -0
- package/dist/form.js +114 -0
- package/dist/form.js.map +1 -0
- package/dist/grid.d.ts +50 -0
- package/dist/grid.js +58 -0
- package/dist/grid.js.map +1 -0
- package/dist/hover-card.d.ts +11 -0
- package/dist/hover-card.js +34 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/index.d.ts +98 -1564
- package/dist/index.js +527 -5536
- package/dist/index.js.map +1 -1
- package/dist/input-otp.d.ts +19 -0
- package/dist/input-otp.js +71 -0
- package/dist/input-otp.js.map +1 -0
- package/dist/input.d.ts +6 -0
- package/dist/input.js +40 -0
- package/dist/input.js.map +1 -0
- package/dist/label.d.ts +11 -0
- package/dist/label.js +22 -0
- package/dist/label.js.map +1 -0
- package/dist/menubar.d.ts +35 -0
- package/dist/menubar.js +106 -0
- package/dist/menubar.js.map +1 -0
- package/dist/multi-combobox.d.ts +51 -0
- package/dist/multi-combobox.js +258 -0
- package/dist/multi-combobox.js.map +1 -0
- package/dist/navigation-menu.d.ts +23 -0
- package/dist/navigation-menu.js +108 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/pagination.d.ts +40 -0
- package/dist/pagination.js +195 -0
- package/dist/pagination.js.map +1 -0
- package/dist/popover.d.ts +13 -0
- package/dist/popover.js +35 -0
- package/dist/popover.js.map +1 -0
- package/dist/progress.d.ts +10 -0
- package/dist/progress.js +38 -0
- package/dist/progress.js.map +1 -0
- package/dist/radio-group.d.ts +9 -0
- package/dist/radio-group.js +44 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/resizable.d.ts +28 -0
- package/dist/resizable.js +66 -0
- package/dist/resizable.js.map +1 -0
- package/dist/schemas.d.ts +121 -0
- package/dist/schemas.js +4643 -0
- package/dist/schemas.js.map +1 -0
- package/dist/scroll-area.d.ts +18 -0
- package/dist/scroll-area.js +55 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/select.d.ts +21 -0
- package/dist/select.js +136 -0
- package/dist/select.js.map +1 -0
- package/dist/separator.d.ts +11 -0
- package/dist/separator.js +29 -0
- package/dist/separator.js.map +1 -0
- package/dist/sheet.d.ts +39 -0
- package/dist/sheet.js +140 -0
- package/dist/sheet.js.map +1 -0
- package/dist/sidebar.d.ts +75 -0
- package/dist/sidebar.js +201 -0
- package/dist/sidebar.js.map +1 -0
- package/dist/skeleton.d.ts +11 -0
- package/dist/skeleton.js +21 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/slider.d.ts +20 -0
- package/dist/slider.js +55 -0
- package/dist/slider.js.map +1 -0
- package/dist/sonner.d.ts +14 -0
- package/dist/sonner.js +27 -0
- package/dist/sonner.js.map +1 -0
- package/dist/spacer.d.ts +38 -0
- package/dist/spacer.js +43 -0
- package/dist/spacer.js.map +1 -0
- package/dist/stack.d.ts +34 -0
- package/dist/stack.js +49 -0
- package/dist/stack.js.map +1 -0
- package/dist/stepper.d.ts +48 -0
- package/dist/stepper.js +226 -0
- package/dist/stepper.js.map +1 -0
- package/dist/switch.d.ts +11 -0
- package/dist/switch.js +47 -0
- package/dist/switch.js.map +1 -0
- package/dist/table.d.ts +24 -0
- package/dist/table.js +85 -0
- package/dist/table.js.map +1 -0
- package/dist/tabs.d.ts +13 -0
- package/dist/tabs.js +57 -0
- package/dist/tabs.js.map +1 -0
- package/dist/textarea.d.ts +10 -0
- package/dist/textarea.js +36 -0
- package/dist/textarea.js.map +1 -0
- package/dist/time-picker.d.ts +34 -0
- package/dist/time-picker.js +50 -0
- package/dist/time-picker.js.map +1 -0
- package/dist/timeline.d.ts +42 -0
- package/dist/timeline.js +84 -0
- package/dist/timeline.js.map +1 -0
- package/dist/toggle-group.d.ts +17 -0
- package/dist/toggle-group.js +83 -0
- package/dist/toggle-group.js.map +1 -0
- package/dist/toggle.d.ts +19 -0
- package/dist/toggle.js +49 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.d.ts +13 -0
- package/dist/tooltip.js +33 -0
- package/dist/tooltip.js.map +1 -0
- package/package.json +68 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,1031 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
export { Button, ButtonProps } from './button.js';
|
|
2
|
+
export { Input, InputProps } from './input.js';
|
|
3
|
+
export { Label, LabelProps } from './label.js';
|
|
4
|
+
export { Textarea, TextareaProps } from './textarea.js';
|
|
5
|
+
export { Checkbox, CheckboxProps } from './checkbox.js';
|
|
6
|
+
export { Switch, SwitchProps } from './switch.js';
|
|
7
|
+
export { Badge, BadgeProps, badgeVariants } from './badge.js';
|
|
8
|
+
export { Separator, SeparatorProps } from './separator.js';
|
|
9
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from './select.js';
|
|
10
|
+
export { RadioGroup, RadioGroupItem } from './radio-group.js';
|
|
11
|
+
export { Slider } from './slider.js';
|
|
12
|
+
export { Toggle, toggleVariants } from './toggle.js';
|
|
13
|
+
export { ToggleGroup, ToggleGroupItem } from './toggle-group.js';
|
|
14
|
+
export { Avatar, AvatarFallback, AvatarImage } from './avatar.js';
|
|
15
|
+
export { Skeleton } from './skeleton.js';
|
|
16
|
+
export { Progress } from './progress.js';
|
|
17
|
+
export { ScrollArea, ScrollBar } from './scroll-area.js';
|
|
18
|
+
export { AspectRatio } from './aspect-ratio.js';
|
|
19
|
+
export { Container, ContainerProps, containerVariants } from './container.js';
|
|
20
|
+
export { Stack, StackProps, stackVariants } from './stack.js';
|
|
21
|
+
export { Cluster, ClusterProps, clusterVariants } from './cluster.js';
|
|
22
|
+
export { Grid, GridProps, gridVariants } from './grid.js';
|
|
23
|
+
export { Spacer, SpacerProps, spacerVariants } from './spacer.js';
|
|
24
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './card.js';
|
|
25
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from './tabs.js';
|
|
26
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './accordion.js';
|
|
27
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.js';
|
|
28
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './alert-dialog.js';
|
|
29
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger } from './dropdown-menu.js';
|
|
30
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './popover.js';
|
|
31
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip.js';
|
|
32
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './form.js';
|
|
33
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants } from './alert.js';
|
|
34
|
+
export { Toaster } from './sonner.js';
|
|
35
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible.js';
|
|
36
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './hover-card.js';
|
|
37
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger } from './context-menu.js';
|
|
38
|
+
export { Menubar, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarSeparator, MenubarShortcut, MenubarTrigger } from './menubar.js';
|
|
39
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from './navigation-menu.js';
|
|
40
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './breadcrumb.js';
|
|
41
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './table.js';
|
|
42
|
+
export { DataTable, DataTableProps } from './data-table.js';
|
|
43
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from './pagination.js';
|
|
44
|
+
export { Calendar } from './calendar.js';
|
|
45
|
+
export { DatePicker, DatePickerProps } from './date-picker.js';
|
|
46
|
+
export { InputOTP, InputOTPGroup, InputOTPProps, InputOTPSeparator, InputOTPSlot } from './input-otp.js';
|
|
47
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './command.js';
|
|
48
|
+
export { Combobox, ComboboxOption, ComboboxProps } from './combobox.js';
|
|
49
|
+
export { ColorPicker, ColorPickerProps } from './color-picker.js';
|
|
50
|
+
export { MultiCombobox, MultiComboboxOption, MultiComboboxProps } from './multi-combobox.js';
|
|
51
|
+
export { StepStatus, Stepper, StepperProps, StepperStep } from './stepper.js';
|
|
52
|
+
export { Timeline, TimelineEvent, TimelineProps, TimelineStatus } from './timeline.js';
|
|
53
|
+
export { Dropzone, DropzoneProps, DropzoneRenderState } from './dropzone.js';
|
|
54
|
+
export { TimePicker, TimePickerProps } from './time-picker.js';
|
|
55
|
+
export { FileTree, FileTreeNode, FileTreeProps } from './file-tree.js';
|
|
56
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from './sheet.js';
|
|
57
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './drawer.js';
|
|
58
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './resizable.js';
|
|
59
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarItem, SidebarProvider, SidebarTrigger, useSidebar } from './sidebar.js';
|
|
42
60
|
import { ClassValue } from 'clsx';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
82
|
-
|
|
83
|
-
declare const badgeVariants: (props?: ({
|
|
84
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
85
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
86
|
-
/**
|
|
87
|
-
* A small status indicator badge with multiple style variants.
|
|
88
|
-
* Used for tags, statuses, counts, and categorization.
|
|
89
|
-
*/
|
|
90
|
-
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Renders an inline badge element with variant-based styling.
|
|
94
|
-
* @param props - Badge props including variant and className
|
|
95
|
-
* @returns A styled div element
|
|
96
|
-
*/
|
|
97
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* A visual divider between content sections.
|
|
101
|
-
* Built on Radix UI Separator for proper accessibility semantics.
|
|
102
|
-
*/
|
|
103
|
-
type SeparatorProps = React$1.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;
|
|
104
|
-
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
105
|
-
|
|
106
|
-
/** Root container controlling the select's state. */
|
|
107
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
108
|
-
/** Groups a set of related SelectItem elements. */
|
|
109
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
110
|
-
/** Renders the selected value (or placeholder) inside the trigger. */
|
|
111
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
112
|
-
/** The button users click to open the dropdown. */
|
|
113
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
114
|
-
/** The dropdown panel containing selectable options. */
|
|
115
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
116
|
-
/** A non-interactive label within a SelectGroup. */
|
|
117
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
118
|
-
/** A selectable option. */
|
|
119
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
120
|
-
/** Horizontal divider between groups inside SelectContent. */
|
|
121
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
122
|
-
|
|
123
|
-
/** Root container for a radio group. Pair with one or more RadioGroupItem. */
|
|
124
|
-
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
125
|
-
/** A single radio option within a RadioGroup. */
|
|
126
|
-
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
127
|
-
|
|
128
|
-
interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
129
|
-
/**
|
|
130
|
-
* Per-thumb accessible labels. When the slider has multiple thumbs, pass
|
|
131
|
-
* one entry per thumb (e.g. ["Minimum", "Maximum"]). For a single-thumb
|
|
132
|
-
* slider, the Root's `aria-label` / `aria-labelledby` is mirrored onto
|
|
133
|
-
* the thumb automatically — pass `thumbLabels` only when those defaults
|
|
134
|
-
* are insufficient.
|
|
135
|
-
*/
|
|
136
|
-
thumbLabels?: string[];
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* A range input with one or more draggable thumbs.
|
|
140
|
-
* Built on Radix UI Slider with keyboard controls (arrows, Home, End, PageUp/Down).
|
|
141
|
-
*/
|
|
142
|
-
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
143
|
-
|
|
144
|
-
declare const toggleVariants: (props?: ({
|
|
145
|
-
variant?: "default" | "outline" | null | undefined;
|
|
146
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
147
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
148
|
-
/**
|
|
149
|
-
* A two-state button. Stays pressed when toggled on.
|
|
150
|
-
* @returns A styled Radix Toggle root
|
|
151
|
-
*/
|
|
152
|
-
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
153
|
-
variant?: "default" | "outline" | null | undefined;
|
|
154
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
155
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
156
|
-
|
|
157
|
-
/** Root container for a set of toggles (single-select or multi-select). */
|
|
158
|
-
declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
159
|
-
variant?: "default" | "outline" | null | undefined;
|
|
160
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
161
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
|
|
162
|
-
/** A single toggle option within a ToggleGroup. Inherits variant/size from context. */
|
|
163
|
-
declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
164
|
-
variant?: "default" | "outline" | null | undefined;
|
|
165
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
166
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
167
|
-
|
|
168
|
-
/** Root container for an avatar (image + fallback). */
|
|
169
|
-
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
170
|
-
/** Avatar image. AvatarFallback renders in its place when the image is missing or errors. */
|
|
171
|
-
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
172
|
-
/** Fallback content (usually initials or an icon) shown when the image is missing or fails. Supports delayMs to avoid flashing for fast-loading images. */
|
|
173
|
-
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* A placeholder shimmer element shown while content is loading.
|
|
177
|
-
* Pair with explicit width/height via className.
|
|
178
|
-
* @returns A div with pulsing muted background
|
|
179
|
-
*/
|
|
180
|
-
declare function Skeleton({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* A horizontal progress bar from 0–100%.
|
|
184
|
-
* Built on Radix UI Progress for aria-valuenow/max wiring.
|
|
185
|
-
*/
|
|
186
|
-
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
187
|
-
|
|
188
|
-
interface ScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
|
|
189
|
-
/**
|
|
190
|
-
* tabIndex applied to the scroll viewport so keyboard users can scroll
|
|
191
|
-
* without a pointer. Defaults to `0` (focusable) — pass `-1` to skip the
|
|
192
|
-
* viewport in the tab order when ScrollArea wraps purely decorative or
|
|
193
|
-
* already-keyboard-reachable content.
|
|
194
|
-
*/
|
|
195
|
-
viewportTabIndex?: number;
|
|
196
|
-
}
|
|
197
|
-
/** A scrollable area with custom-styled scrollbars. Content must be explicitly sized. */
|
|
198
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
199
|
-
/** Styled scrollbar track + thumb. Rendered inside ScrollArea automatically. */
|
|
200
|
-
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
201
|
-
|
|
202
|
-
/** A container that maintains a specified width-to-height ratio for its children. */
|
|
203
|
-
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* CVA variants for Container — max-width wrapper bound to `--container-*` tokens.
|
|
207
|
-
* Variant names match token names (`sm`/`md`/`lg`/`xl`/`full`); `full` removes the clamp.
|
|
208
|
-
* Padding maps to `--space-*` tokens.
|
|
209
|
-
*/
|
|
210
|
-
declare const containerVariants: (props?: ({
|
|
211
|
-
size?: "sm" | "lg" | "md" | "xl" | "full" | null | undefined;
|
|
212
|
-
padding?: "sm" | "lg" | "none" | "md" | null | undefined;
|
|
213
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
214
|
-
/** Props for the Container component. */
|
|
215
|
-
interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
|
|
216
|
-
/**
|
|
217
|
-
* Render as a different element via Radix `Slot`. Pass `<Container asChild><main>...</main></Container>`
|
|
218
|
-
* to render the layout as a `<main>` (or `<section>`, `<article>`, etc.) and inherit landmark semantics.
|
|
219
|
-
*/
|
|
220
|
-
asChild?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* A centered max-width wrapper for page content. Use to constrain reading-width sections.
|
|
224
|
-
* Pass `asChild` to render as a semantic landmark (`<main>`, `<section>`, etc.) instead of a plain `<div>`.
|
|
225
|
-
*
|
|
226
|
-
* @param props - Container props including `size`, `padding`, and optional `asChild`.
|
|
227
|
-
* @returns A wrapper element with `mx-auto`, max-width clamp, and optional horizontal padding.
|
|
228
|
-
* @example
|
|
229
|
-
* ```tsx
|
|
230
|
-
* <Container size="lg" padding="md" asChild>
|
|
231
|
-
* <main>
|
|
232
|
-
* <h1>Article title</h1>
|
|
233
|
-
* <p>Reading-width content...</p>
|
|
234
|
-
* </main>
|
|
235
|
-
* </Container>
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
declare function Container({ className, size, padding, asChild, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* CVA variants for Stack — vertical flex flow. `gap`, `align`, and `justify`
|
|
242
|
-
* pull from the shared layout-variant maps so any change to the gap scale
|
|
243
|
-
* propagates to Cluster and Grid simultaneously.
|
|
244
|
-
*/
|
|
245
|
-
declare const stackVariants: (props?: ({
|
|
246
|
-
gap?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
247
|
-
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
248
|
-
justify?: "center" | "start" | "end" | "between" | null | undefined;
|
|
249
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
250
|
-
/** Props for the Stack component. */
|
|
251
|
-
interface StackProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Vertical flex flow with token-bound gap. Children stack top-to-bottom.
|
|
255
|
-
* @param props - Stack props including `gap`, `align`, and `justify` variant keys.
|
|
256
|
-
* @returns A flex column with consistent vertical spacing.
|
|
257
|
-
* @example
|
|
258
|
-
* ```tsx
|
|
259
|
-
* <Stack gap="lg">
|
|
260
|
-
* <h2>Section title</h2>
|
|
261
|
-
* <p>Paragraph one.</p>
|
|
262
|
-
* <p>Paragraph two.</p>
|
|
263
|
-
* </Stack>
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
|
-
declare function Stack({ className, gap, align, justify, ...props }: StackProps): react_jsx_runtime.JSX.Element;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* CVA variants for Cluster — horizontal flex flow with wrap.
|
|
270
|
-
* `gap` and `justify` pull from shared layout-variant maps; `align` adds
|
|
271
|
-
* `baseline` (text-baseline alignment for mixed-size siblings).
|
|
272
|
-
*/
|
|
273
|
-
declare const clusterVariants: (props?: ({
|
|
274
|
-
gap?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
275
|
-
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
276
|
-
justify?: "center" | "start" | "end" | "between" | null | undefined;
|
|
277
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
278
|
-
/** Props for the Cluster component. */
|
|
279
|
-
interface ClusterProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof clusterVariants> {
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Horizontal flex flow with wrap. Children flow left-to-right and wrap to next line as needed.
|
|
283
|
-
* @param props - Cluster props including `gap`, `align`, and `justify` variant keys.
|
|
284
|
-
* @returns A flex row that wraps with consistent gap.
|
|
285
|
-
* @example
|
|
286
|
-
* ```tsx
|
|
287
|
-
* <Cluster gap="sm">
|
|
288
|
-
* <Badge>react</Badge>
|
|
289
|
-
* <Badge>typescript</Badge>
|
|
290
|
-
* <Badge>tailwind</Badge>
|
|
291
|
-
* </Cluster>
|
|
292
|
-
* ```
|
|
293
|
-
*/
|
|
294
|
-
declare function Cluster({ className, gap, align, justify, ...props }: ClusterProps): react_jsx_runtime.JSX.Element;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* CVA variants for Grid — CSS grid with column-count presets and shared `gap`.
|
|
298
|
-
* `cols` accepts 1/2/3/4/6 fixed columns or `"auto-fit"` for responsive auto-sizing
|
|
299
|
-
* (in which case the consumer should pass `minColWidth` for the min track size).
|
|
300
|
-
*
|
|
301
|
-
* `cols` keys are TypeScript numeric literals (`cols={3}`) at the type level;
|
|
302
|
-
* the schema's `enumValues` serializes them as strings for JSON-shape parity.
|
|
303
|
-
*/
|
|
304
|
-
declare const gridVariants: (props?: ({
|
|
305
|
-
cols?: 1 | 2 | 3 | 4 | 6 | "auto-fit" | null | undefined;
|
|
306
|
-
gap?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
307
|
-
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
308
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
309
|
-
/** Props for the Grid component. */
|
|
310
|
-
interface GridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
311
|
-
/**
|
|
312
|
-
* Minimum column width for `cols="auto-fit"`. Tracks repeat to fill the container,
|
|
313
|
-
* never shrinking below this value. Ignored when `cols` is a fixed integer.
|
|
314
|
-
* @default "16rem"
|
|
315
|
-
*/
|
|
316
|
-
minColWidth?: string;
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* CSS grid with column-count presets and consistent gap. Use for card grids,
|
|
320
|
-
* dashboards, image galleries, and any layout where children should align to
|
|
321
|
-
* shared row/column tracks.
|
|
322
|
-
*
|
|
323
|
-
* Pass `cols="auto-fit"` and `minColWidth` for responsive grids that fit as
|
|
324
|
-
* many columns as the viewport allows without media queries.
|
|
325
|
-
*
|
|
326
|
-
* @param props - Grid props including `cols`, `gap`, `align`, and `minColWidth`.
|
|
327
|
-
* @returns A CSS grid container.
|
|
328
|
-
* @example
|
|
329
|
-
* ```tsx
|
|
330
|
-
* <Grid cols={3} gap="md">
|
|
331
|
-
* {items.map((i) => <Card key={i.id}>{i.title}</Card>)}
|
|
332
|
-
* </Grid>
|
|
333
|
-
* <Grid cols="auto-fit" minColWidth="20rem" gap="lg">
|
|
334
|
-
* {responsiveItems.map(...)}
|
|
335
|
-
* </Grid>
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
declare function Grid({ className, cols, gap, align, minColWidth, style, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* CVA variants for Spacer — declarative whitespace.
|
|
342
|
-
* `size` sets `--spacer-size` to a `--space-*` token (with inline fallback);
|
|
343
|
-
* `axis` consumes that var via the bracket form used everywhere else in the
|
|
344
|
-
* package, so the height or width can never collapse to zero if the size
|
|
345
|
-
* variant is dropped.
|
|
346
|
-
*/
|
|
347
|
-
declare const spacerVariants: (props?: ({
|
|
348
|
-
size?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
349
|
-
axis?: "both" | "horizontal" | "vertical" | null | undefined;
|
|
350
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
351
|
-
/** Props for the Spacer component. */
|
|
352
|
-
interface SpacerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof spacerVariants> {
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* A declarative whitespace block. Use when you want to insert space between two
|
|
356
|
-
* siblings without relying on margin or gap (e.g. inside a flex container that
|
|
357
|
-
* doesn't own the spacing decision).
|
|
358
|
-
*
|
|
359
|
-
* Renders an empty `<div>` with `aria-hidden` since it has no semantic content.
|
|
360
|
-
*
|
|
361
|
-
* @param props - Spacer props including `size` and `axis` variant keys.
|
|
362
|
-
* @returns An empty div with the requested dimension.
|
|
363
|
-
* @example
|
|
364
|
-
* ```tsx
|
|
365
|
-
* <h1>Title</h1>
|
|
366
|
-
* <Spacer size="lg" />
|
|
367
|
-
* <p>Body</p>
|
|
368
|
-
* ```
|
|
369
|
-
*/
|
|
370
|
-
declare function Spacer({ className, size, axis, ...props }: SpacerProps): react_jsx_runtime.JSX.Element;
|
|
371
|
-
|
|
372
|
-
/** A container card with subtle shadow and border. */
|
|
373
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
374
|
-
/** The header section of a Card. */
|
|
375
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
376
|
-
/** The title element inside a CardHeader. */
|
|
377
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
378
|
-
/** A description element inside a CardHeader. */
|
|
379
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
380
|
-
/** The main content area of a Card. */
|
|
381
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
382
|
-
/** The footer section of a Card. */
|
|
383
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
384
|
-
|
|
385
|
-
/** Root container for a tabbed interface. */
|
|
386
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
387
|
-
/** A horizontal list of tab triggers. */
|
|
388
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
389
|
-
/** A clickable tab trigger that activates its associated content panel. */
|
|
390
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
391
|
-
/** The content panel associated with a tab trigger. */
|
|
392
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
393
|
-
|
|
394
|
-
/** Root container for accordion items. Supports single or multiple open items. */
|
|
395
|
-
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
|
-
/** A single collapsible item within an Accordion. */
|
|
397
|
-
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
398
|
-
/** The clickable header that toggles an AccordionItem open/closed. */
|
|
399
|
-
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
400
|
-
/** The collapsible content panel of an AccordionItem. */
|
|
401
|
-
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
402
|
-
|
|
403
|
-
/** Root container controlling open state of a modal dialog. */
|
|
404
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
405
|
-
/** The element (usually a button) that opens the dialog when clicked. */
|
|
406
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
407
|
-
/** Portals the dialog overlay and content into the body. */
|
|
408
|
-
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
409
|
-
/** Closes the dialog when rendered inside DialogContent. */
|
|
410
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
411
|
-
/** Dimmed backdrop rendered behind the dialog content. */
|
|
412
|
-
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
413
|
-
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
414
|
-
/**
|
|
415
|
-
* When `true` (the default), DialogContent caps its height at viewport-2rem
|
|
416
|
-
* and renders children inside a padded inner scroll container. The Close
|
|
417
|
-
* button stays anchored to the (non-scrolling) outer panel so it remains
|
|
418
|
-
* visible even when the user scrolls long content.
|
|
419
|
-
*
|
|
420
|
-
* Pass `scrollable={false}` to opt out — useful when the consumer manages
|
|
421
|
-
* its own scroll surface (e.g. CommandDialog defers scroll to cmdk's
|
|
422
|
-
* internal CommandList).
|
|
423
|
-
*/
|
|
424
|
-
scrollable?: boolean;
|
|
425
|
-
}
|
|
426
|
-
/** The dialog content panel, centered on the overlay. Includes a close button by default. */
|
|
427
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<DialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Header container inside DialogContent; stacks title and description.
|
|
431
|
-
* @returns A div wrapping title/description with vertical rhythm
|
|
432
|
-
*/
|
|
433
|
-
declare function DialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
434
|
-
/**
|
|
435
|
-
* Footer container inside DialogContent; aligns action buttons.
|
|
436
|
-
* @returns A div that stacks buttons on mobile and right-aligns on desktop
|
|
437
|
-
*/
|
|
438
|
-
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
439
|
-
/** Accessible dialog title; Radix wires it to aria-labelledby automatically. */
|
|
440
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
441
|
-
/** Accessible dialog description; Radix wires it to aria-describedby automatically. */
|
|
442
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
443
|
-
|
|
444
|
-
/** Root container for a destructive-action confirmation dialog. */
|
|
445
|
-
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
446
|
-
/** The element that opens the alert dialog. */
|
|
447
|
-
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
448
|
-
/** Portals alert dialog content into the body. */
|
|
449
|
-
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
450
|
-
/** Dimmed backdrop behind the alert dialog. */
|
|
451
|
-
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
452
|
-
/** Content panel for the alert dialog. No close button — user must choose action or cancel. */
|
|
453
|
-
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
454
|
-
/**
|
|
455
|
-
* Header container for title + description.
|
|
456
|
-
* @returns A div wrapping title/description with vertical rhythm
|
|
457
|
-
*/
|
|
458
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
459
|
-
/**
|
|
460
|
-
* Footer container for Cancel/Action buttons.
|
|
461
|
-
* @returns A div stacking buttons on mobile and right-aligning on desktop
|
|
462
|
-
*/
|
|
463
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
464
|
-
/** Accessible title for the alert dialog. */
|
|
465
|
-
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
466
|
-
/** Accessible description for the alert dialog. */
|
|
467
|
-
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
468
|
-
/** The destructive action button (e.g. Delete). Receives focus by default. */
|
|
469
|
-
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
470
|
-
/** The cancel button. Closes the dialog. */
|
|
471
|
-
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
472
|
-
|
|
473
|
-
/** Root container for a dropdown menu. */
|
|
474
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
475
|
-
/** The element (button) that opens the dropdown. */
|
|
476
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
477
|
-
/** Groups related menu items for a11y. */
|
|
478
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
479
|
-
/** Portals dropdown content into the body. */
|
|
480
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
481
|
-
/** Nested submenu root. */
|
|
482
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
483
|
-
/** Group for checkable radio items (one selected at a time). */
|
|
484
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
485
|
-
/** The visible dropdown panel. */
|
|
486
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
487
|
-
/** A clickable menu item. */
|
|
488
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
489
|
-
inset?: boolean;
|
|
490
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
491
|
-
/** A menu item with a checkbox state. */
|
|
492
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
493
|
-
/** A menu item in a radio group. */
|
|
494
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
495
|
-
/** A non-interactive section heading inside the menu. */
|
|
496
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
497
|
-
inset?: boolean;
|
|
498
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
499
|
-
/** Horizontal divider between menu items. */
|
|
500
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
501
|
-
/**
|
|
502
|
-
* Right-aligned shortcut text (e.g. ⌘K) shown next to a menu item.
|
|
503
|
-
* @returns A span with muted, tracked typography
|
|
504
|
-
*/
|
|
505
|
-
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
506
|
-
|
|
507
|
-
/** Root container for a popover. */
|
|
508
|
-
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
509
|
-
/** The element that anchors and opens the popover. */
|
|
510
|
-
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
511
|
-
/** Helper to explicitly anchor the popover to a different element. */
|
|
512
|
-
declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
513
|
-
/** The floating popover content panel. */
|
|
514
|
-
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
515
|
-
|
|
516
|
-
/** Provider required at the root of the app or tree where tooltips are used. */
|
|
517
|
-
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
518
|
-
/** Root container for a single tooltip. */
|
|
519
|
-
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
520
|
-
/** The element that shows the tooltip on hover/focus. */
|
|
521
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
522
|
-
/** The floating tooltip content (small, hover-reveal info). */
|
|
523
|
-
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
524
|
-
|
|
525
|
-
/** Root form provider. Wraps react-hook-form's FormProvider. */
|
|
526
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
527
|
-
/**
|
|
528
|
-
* Binds a field name to a react-hook-form Controller.
|
|
529
|
-
* Provides context so FormItem children can access field state.
|
|
530
|
-
* @param props - Controller props including name, control, render
|
|
531
|
-
* @returns A Controller with FormFieldContext
|
|
532
|
-
*/
|
|
533
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
534
|
-
/**
|
|
535
|
-
* Hook that returns the current field's id, name, error, and derived aria ids.
|
|
536
|
-
* Must be called inside a FormField + FormItem subtree.
|
|
537
|
-
* @returns Field state + aria descriptors
|
|
538
|
-
*/
|
|
539
|
-
declare function useFormField(): {
|
|
540
|
-
invalid: boolean;
|
|
541
|
-
isDirty: boolean;
|
|
542
|
-
isTouched: boolean;
|
|
543
|
-
isValidating: boolean;
|
|
544
|
-
error?: react_hook_form.FieldError;
|
|
545
|
-
id: string;
|
|
546
|
-
name: string;
|
|
547
|
-
formItemId: string;
|
|
548
|
-
formDescriptionId: string;
|
|
549
|
-
formMessageId: string;
|
|
550
|
-
};
|
|
551
|
-
/** Wraps a single form field (label + control + description + message). */
|
|
552
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
553
|
-
/** Accessible label wired to the FormItem's control. Turns red on error. */
|
|
554
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
555
|
-
/** Wraps the form control and wires id + aria-describedby + aria-invalid. */
|
|
556
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
557
|
-
/** Optional helper text below the control. */
|
|
558
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
559
|
-
/** Validation error message. Renders the error string when the field is invalid. */
|
|
560
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
561
|
-
|
|
562
|
-
declare const alertVariants: (props?: ({
|
|
563
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
564
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
565
|
-
/** An inline notification banner for important messages. */
|
|
566
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
567
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
568
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
569
|
-
/** The alert title heading. */
|
|
570
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
571
|
-
/** The alert description. Renders a div so paragraph children can be styled via [&_p]. */
|
|
572
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
573
|
-
|
|
574
|
-
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
575
|
-
/**
|
|
576
|
-
* The global toast container. Render once in your app root.
|
|
577
|
-
* Re-export of Sonner's Toaster styled to use Hex UI theme tokens.
|
|
578
|
-
* @param props - Sonner Toaster props (position, richColors, etc.)
|
|
579
|
-
* @returns A styled portal container for toast notifications
|
|
580
|
-
*/
|
|
581
|
-
declare function Toaster({ ...props }: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
582
|
-
|
|
583
|
-
/** Root container controlling the expanded state of the content. */
|
|
584
|
-
declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
585
|
-
/** The element that toggles the Collapsible open/closed. */
|
|
586
|
-
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
587
|
-
/** The collapsible content shown/hidden by the trigger. */
|
|
588
|
-
declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
589
|
-
|
|
590
|
-
/** Root container for a hover-card. */
|
|
591
|
-
declare const HoverCard: React$1.FC<HoverCardPrimitive.HoverCardProps>;
|
|
592
|
-
/** The element that reveals the card on hover/focus. */
|
|
593
|
-
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
594
|
-
/** The floating hover-card content panel. Richer than a tooltip. */
|
|
595
|
-
declare const HoverCardContent: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
596
|
-
|
|
597
|
-
/** Root container for a context menu (right-click menu). */
|
|
598
|
-
declare const ContextMenu: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
599
|
-
/** The element that triggers the context menu on right-click. */
|
|
600
|
-
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
601
|
-
/** Groups related items for a11y. */
|
|
602
|
-
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
603
|
-
/** Portals content into the body. */
|
|
604
|
-
declare const ContextMenuPortal: React$1.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
605
|
-
/** Group for checkable radio items. */
|
|
606
|
-
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
607
|
-
/** The menu panel shown when the trigger is right-clicked. */
|
|
608
|
-
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
609
|
-
/** A clickable menu item. */
|
|
610
|
-
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
611
|
-
inset?: boolean;
|
|
612
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
613
|
-
/** A checkable menu item. */
|
|
614
|
-
declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
615
|
-
/** A radio menu item. */
|
|
616
|
-
declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
617
|
-
/** A non-interactive heading label. */
|
|
618
|
-
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
619
|
-
inset?: boolean;
|
|
620
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
621
|
-
/** Horizontal divider. */
|
|
622
|
-
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
623
|
-
/**
|
|
624
|
-
* Right-aligned shortcut text (e.g. ⌘⇧N).
|
|
625
|
-
* @returns A span with muted typography
|
|
626
|
-
*/
|
|
627
|
-
declare function ContextMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
628
|
-
|
|
629
|
-
/** Top-level menu bar (File / Edit / View style). */
|
|
630
|
-
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
631
|
-
/** A top-level menu in the bar (e.g. "File"). */
|
|
632
|
-
declare const MenubarMenu: typeof MenubarPrimitive.Menu;
|
|
633
|
-
/** Groups related items inside a menu content. */
|
|
634
|
-
declare const MenubarGroup: typeof MenubarPrimitive.Group;
|
|
635
|
-
/** Portals menu content into the body. */
|
|
636
|
-
declare const MenubarPortal: typeof MenubarPrimitive.Portal;
|
|
637
|
-
/** Group for checkable radio items. */
|
|
638
|
-
declare const MenubarRadioGroup: typeof MenubarPrimitive.RadioGroup;
|
|
639
|
-
/** The clickable menu label in the bar. */
|
|
640
|
-
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
641
|
-
/** The menu panel shown when a trigger opens. */
|
|
642
|
-
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
643
|
-
/** A clickable menu item. */
|
|
644
|
-
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
645
|
-
inset?: boolean;
|
|
646
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
647
|
-
/** A non-interactive heading label. */
|
|
648
|
-
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
649
|
-
inset?: boolean;
|
|
650
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
651
|
-
/** Horizontal divider. */
|
|
652
|
-
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
653
|
-
/**
|
|
654
|
-
* Right-aligned keyboard shortcut text.
|
|
655
|
-
* @returns A span with muted typography
|
|
656
|
-
*/
|
|
657
|
-
declare function MenubarShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
658
|
-
|
|
659
|
-
/** Root container for a navigation menu. Renders a viewport for content panels. */
|
|
660
|
-
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
661
|
-
/** List of top-level NavigationMenu items. */
|
|
662
|
-
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
663
|
-
/** A single top-level item (wraps trigger + content). */
|
|
664
|
-
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
665
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
666
|
-
/** The clickable trigger that opens a nav-menu content panel. */
|
|
667
|
-
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
668
|
-
/** The content panel (e.g. mega-menu). */
|
|
669
|
-
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
670
|
-
/** A direct link (no content panel). */
|
|
671
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
672
|
-
/** The viewport that hosts the active content panel. Rendered inside NavigationMenu. */
|
|
673
|
-
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
674
|
-
/** Visual indicator (arrow) pointing at the active trigger. */
|
|
675
|
-
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
676
|
-
|
|
677
|
-
/** Root nav landmark for breadcrumb navigation. */
|
|
678
|
-
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
679
|
-
/** Ordered list of breadcrumb items. */
|
|
680
|
-
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
681
|
-
/** A single breadcrumb list item. */
|
|
682
|
-
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
683
|
-
/** A link inside a breadcrumb item. Use asChild to render e.g. Next.js Link. */
|
|
684
|
-
declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
685
|
-
asChild?: boolean;
|
|
686
|
-
} & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
687
|
-
/** The final breadcrumb (current page). Not interactive. */
|
|
688
|
-
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
689
|
-
/**
|
|
690
|
-
* Visual separator between breadcrumb items (chevron by default).
|
|
691
|
-
* @returns An li rendering a decorative chevron icon
|
|
692
|
-
*/
|
|
693
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
694
|
-
/**
|
|
695
|
-
* Ellipsis for truncated breadcrumb trails.
|
|
696
|
-
* @returns A span containing a decorative SVG (aria-hidden) plus a sr-only "More pages" label for AT.
|
|
697
|
-
*/
|
|
698
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
699
|
-
|
|
700
|
-
/** A responsive container + styled HTML table. */
|
|
701
|
-
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
702
|
-
/** `<thead>` wrapper with bottom border. */
|
|
703
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
704
|
-
/** `<tbody>` wrapper removing bottom border on last row. */
|
|
705
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
706
|
-
/** `<tfoot>` wrapper with muted background. */
|
|
707
|
-
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
708
|
-
/** `<tr>` with hover + selected states. */
|
|
709
|
-
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
710
|
-
/** `<th>` with left-aligned muted text. */
|
|
711
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
712
|
-
/** `<td>` with consistent padding. */
|
|
713
|
-
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
714
|
-
/**
|
|
715
|
-
* Visible `<caption>` rendered below the table. The parent `<Table>` sets
|
|
716
|
-
* `caption-bottom`, so the caption is announced first by screen readers when
|
|
717
|
-
* entering the table, then visually placed below the rows.
|
|
718
|
-
*/
|
|
719
|
-
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Generic DataTable wrapper that renders a TanStack Table model using Hex UI's
|
|
723
|
-
* Table primitives. Pass columns + data; use TanStack hooks for sorting,
|
|
724
|
-
* filtering, pagination, row-selection as needed.
|
|
725
|
-
* @template TData - Row data type. Cell value types are inferred per column by TanStack.
|
|
726
|
-
*/
|
|
727
|
-
interface DataTableProps<TData> {
|
|
728
|
-
columns: ColumnDef<TData, unknown>[];
|
|
729
|
-
data: TData[];
|
|
730
|
-
/**
|
|
731
|
-
* Visible caption rendered below the table. Announced by screen readers
|
|
732
|
-
* when the user enters the table. Provide either `caption` or `aria-label`.
|
|
733
|
-
*/
|
|
734
|
-
caption?: React$1.ReactNode;
|
|
735
|
-
/**
|
|
736
|
-
* Accessible label for the table when no visible caption is shown.
|
|
737
|
-
* Forwarded as `aria-label` on the underlying `<table>` element. Kebab-case
|
|
738
|
-
* to match the canonical ARIA prop convention used elsewhere in Hex UI.
|
|
739
|
-
*/
|
|
740
|
-
"aria-label"?: string;
|
|
741
|
-
}
|
|
742
|
-
/**
|
|
743
|
-
* Render a data-driven table from TanStack column definitions.
|
|
744
|
-
* @param props - Columns, data, and optional accessible labelling (`caption` or `aria-label`)
|
|
745
|
-
* @returns A styled Table rendered from the TanStack row model
|
|
746
|
-
*/
|
|
747
|
-
declare function DataTable<TData>({ columns, data, caption, "aria-label": ariaLabel, }: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Root nav landmark for pagination controls.
|
|
751
|
-
* @returns A centered nav element with aria-label='pagination'
|
|
752
|
-
*/
|
|
753
|
-
declare function Pagination({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
754
|
-
/** Ordered list wrapper for pagination links. */
|
|
755
|
-
declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
756
|
-
/** A pagination list item wrapper. */
|
|
757
|
-
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
758
|
-
type PaginationLinkProps = {
|
|
759
|
-
isActive?: boolean;
|
|
760
|
-
} & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
|
|
761
|
-
/**
|
|
762
|
-
* A pagination link styled as a button. Mark the current page with isActive.
|
|
763
|
-
* @returns An anchor element styled via buttonVariants
|
|
764
|
-
*/
|
|
765
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
766
|
-
/**
|
|
767
|
-
* Previous-page link with chevron-left icon.
|
|
768
|
-
* @returns A PaginationLink with aria-label='Go to previous page'
|
|
769
|
-
*/
|
|
770
|
-
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
771
|
-
/**
|
|
772
|
-
* Next-page link with chevron-right icon.
|
|
773
|
-
* @returns A PaginationLink with aria-label='Go to next page'
|
|
774
|
-
*/
|
|
775
|
-
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
776
|
-
/**
|
|
777
|
-
* Ellipsis placeholder for truncated page ranges (e.g. 1 … 5 6 7 … 99).
|
|
778
|
-
* @returns A span containing a decorative SVG (aria-hidden) plus a sr-only "More pages" label for AT.
|
|
779
|
-
*/
|
|
780
|
-
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
781
|
-
|
|
782
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: React$1.ComponentProps<typeof DayPicker>): react_jsx_runtime.JSX.Element;
|
|
783
|
-
declare namespace Calendar {
|
|
784
|
-
var displayName: string;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
interface DatePickerProps {
|
|
788
|
-
/** Controlled selected date. */
|
|
789
|
-
value?: Date;
|
|
790
|
-
/** Fired when the user picks a date in the calendar. */
|
|
791
|
-
onChange?: (date: Date | undefined) => void;
|
|
792
|
-
/** Placeholder shown when no date is selected. */
|
|
793
|
-
placeholder?: string;
|
|
794
|
-
/** date-fns format string for the trigger label. */
|
|
795
|
-
dateFormat?: string;
|
|
796
|
-
/** Disable the trigger. */
|
|
797
|
-
disabled?: boolean;
|
|
798
|
-
/** Extra class names on the trigger button. */
|
|
799
|
-
className?: string;
|
|
800
|
-
/** Accessible label for the trigger (required when no visible label is adjacent). */
|
|
801
|
-
"aria-label"?: string;
|
|
802
|
-
/**
|
|
803
|
-
* Caption layout forwarded to react-day-picker. Use `"dropdown"` (or
|
|
804
|
-
* `"dropdown-years"` / `"dropdown-months"`) to render native `<select>`
|
|
805
|
-
* navigation — useful for birth-date pickers and far-out years.
|
|
806
|
-
*
|
|
807
|
-
* Always pair `dropdown` layouts with explicit `startMonth` and `endMonth`;
|
|
808
|
-
* the RDP default span is ±100 years.
|
|
809
|
-
*/
|
|
810
|
-
captionLayout?: "label" | "dropdown" | "dropdown-months" | "dropdown-years";
|
|
811
|
-
/** Earliest month/year navigable in the calendar. Forwarded to react-day-picker. */
|
|
812
|
-
startMonth?: Date;
|
|
813
|
-
/** Latest month/year navigable in the calendar. Forwarded to react-day-picker. */
|
|
814
|
-
endMonth?: Date;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* Date picker composed from Popover + Calendar + a styled trigger button.
|
|
818
|
-
*
|
|
819
|
-
* This is a minimal single-date picker. For multi/range, compose Calendar + Popover yourself.
|
|
820
|
-
* @returns A button that opens a single-date calendar popover.
|
|
821
|
-
*/
|
|
822
|
-
declare function DatePicker({ value, onChange, placeholder, dateFormat, disabled, className, "aria-label": ariaLabel, captionLayout, startMonth, endMonth, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
823
|
-
declare namespace DatePicker {
|
|
824
|
-
var displayName: string;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
/** Props for the root InputOTP component (mirrors input-otp's OTPInput). */
|
|
828
|
-
type InputOTPProps = React$1.ComponentPropsWithoutRef<typeof OTPInput>;
|
|
829
|
-
/** Root OTP input. Wraps input-otp's OTPInput and exposes slot context to children. */
|
|
830
|
-
declare const InputOTP: React$1.ForwardRefExoticComponent<InputOTPProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
831
|
-
/** Groups slots together; place between runs of slots to add visual dividers. */
|
|
832
|
-
declare const InputOTPGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
833
|
-
interface InputOTPSlotProps extends React$1.ComponentPropsWithoutRef<"div"> {
|
|
834
|
-
/** Index of the slot in the underlying OTP value. */
|
|
835
|
-
index: number;
|
|
836
|
-
}
|
|
837
|
-
/** A single character slot. Reads its state from OTPInputContext. */
|
|
838
|
-
declare const InputOTPSlot: React$1.ForwardRefExoticComponent<InputOTPSlotProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
839
|
-
/** Visual separator between slot groups (a bullet by default). */
|
|
840
|
-
declare const InputOTPSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
841
|
-
|
|
842
|
-
/** Root Command container — drives search, filtering, and keyboard navigation over items. */
|
|
843
|
-
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
844
|
-
children?: React$1.ReactNode;
|
|
845
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
846
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
847
|
-
} & {
|
|
848
|
-
asChild?: boolean;
|
|
849
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
850
|
-
label?: string;
|
|
851
|
-
shouldFilter?: boolean;
|
|
852
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
853
|
-
defaultValue?: string;
|
|
854
|
-
value?: string;
|
|
855
|
-
onValueChange?: (value: string) => void;
|
|
856
|
-
loop?: boolean;
|
|
857
|
-
disablePointerSelection?: boolean;
|
|
858
|
-
vimBindings?: boolean;
|
|
859
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
860
|
-
interface CommandDialogProps extends React$1.ComponentPropsWithoutRef<typeof Dialog> {
|
|
861
|
-
/** Command children (CommandInput + CommandList + CommandItem, etc.) */
|
|
862
|
-
children: React$1.ReactNode;
|
|
863
|
-
/** Accessible title for the dialog (screen-reader only by default). */
|
|
864
|
-
title?: string;
|
|
865
|
-
/** Accessible description for the dialog (screen-reader only by default). */
|
|
866
|
-
description?: string;
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Command menu rendered inside a Dialog — a ⌘K-style launcher.
|
|
870
|
-
* @param props - Forwarded to the underlying Dialog (open, onOpenChange, etc.)
|
|
871
|
-
* @returns A Dialog containing a Command menu.
|
|
872
|
-
*/
|
|
873
|
-
declare function CommandDialog({ title, description, children, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
874
|
-
/** Search input for the Command menu. Fires onValueChange as the user types. */
|
|
875
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
876
|
-
ref?: React$1.Ref<HTMLInputElement>;
|
|
877
|
-
} & {
|
|
878
|
-
asChild?: boolean;
|
|
879
|
-
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
880
|
-
value?: string;
|
|
881
|
-
onValueChange?: (search: string) => void;
|
|
882
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
883
|
-
/** Scrollable list that contains CommandGroup / CommandItem / CommandEmpty. */
|
|
884
|
-
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
885
|
-
children?: React$1.ReactNode;
|
|
886
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
887
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
888
|
-
} & {
|
|
889
|
-
asChild?: boolean;
|
|
890
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
891
|
-
label?: string;
|
|
892
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
893
|
-
/** Rendered when no items match the current search. */
|
|
894
|
-
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
895
|
-
children?: React$1.ReactNode;
|
|
896
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
897
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
898
|
-
} & {
|
|
899
|
-
asChild?: boolean;
|
|
900
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
901
|
-
/** Logical group of items — renders a heading and filters as a unit. */
|
|
902
|
-
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
903
|
-
children?: React$1.ReactNode;
|
|
904
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
905
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
906
|
-
} & {
|
|
907
|
-
asChild?: boolean;
|
|
908
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
909
|
-
heading?: React$1.ReactNode;
|
|
910
|
-
value?: string;
|
|
911
|
-
forceMount?: boolean;
|
|
912
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
913
|
-
/**
|
|
914
|
-
* Horizontal rule between groups. Renders as a presentational `<div>` (no role)
|
|
915
|
-
* so it can sit inside CommandList (role=listbox) without violating ARIA's
|
|
916
|
-
* required-children rule for listbox. The line is purely decorative — cmdk's
|
|
917
|
-
* built-in Separator hardcodes `role="separator"`, which axe rejects in this
|
|
918
|
-
* context, so we render the divider directly.
|
|
919
|
-
*
|
|
920
|
-
* The `data-cmdk-separator` attribute is preserved so existing CSS / test
|
|
921
|
-
* selectors that target cmdk's separator continue to match.
|
|
922
|
-
*/
|
|
923
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
924
|
-
/** Selectable item. onSelect fires on Enter or click. */
|
|
925
|
-
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
926
|
-
children?: React$1.ReactNode;
|
|
927
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
928
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
929
|
-
} & {
|
|
930
|
-
asChild?: boolean;
|
|
931
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
932
|
-
disabled?: boolean;
|
|
933
|
-
onSelect?: (value: string) => void;
|
|
934
|
-
value?: string;
|
|
935
|
-
keywords?: string[];
|
|
936
|
-
forceMount?: boolean;
|
|
937
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
938
|
-
/**
|
|
939
|
-
* Keyboard shortcut hint (e.g. '⌘K') aligned to the right of an item.
|
|
940
|
-
* @returns A muted inline span rendered at the end of a CommandItem.
|
|
941
|
-
*/
|
|
942
|
-
declare function CommandShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
943
|
-
declare namespace CommandShortcut {
|
|
944
|
-
var displayName: string;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
interface ComboboxOption {
|
|
948
|
-
/** The value returned from onChange (stable, unique). */
|
|
949
|
-
value: string;
|
|
950
|
-
/** The display label shown in the list and the trigger. */
|
|
951
|
-
label: string;
|
|
952
|
-
/** Mark as non-selectable. */
|
|
953
|
-
disabled?: boolean;
|
|
954
|
-
}
|
|
955
|
-
interface ComboboxProps {
|
|
956
|
-
/** The list of selectable options. */
|
|
957
|
-
options: ComboboxOption[];
|
|
958
|
-
/** Controlled selected value. */
|
|
959
|
-
value?: string;
|
|
960
|
-
/** Fired when the user picks an option: (value: string) => void */
|
|
961
|
-
onChange?: (value: string) => void;
|
|
962
|
-
/** Text shown on the trigger when nothing is selected. */
|
|
963
|
-
placeholder?: string;
|
|
964
|
-
/** Input placeholder inside the popover list. */
|
|
965
|
-
searchPlaceholder?: string;
|
|
966
|
-
/** Text shown when no options match the search. */
|
|
967
|
-
emptyText?: string;
|
|
968
|
-
/** Disable the trigger. */
|
|
969
|
-
disabled?: boolean;
|
|
970
|
-
/** Extra class names on the trigger button. */
|
|
971
|
-
className?: string;
|
|
972
|
-
/** Accessible label for the trigger (required when no adjacent visible label). */
|
|
973
|
-
"aria-label"?: string;
|
|
974
|
-
/** Id of an external visible label that names this combobox. */
|
|
975
|
-
"aria-labelledby"?: string;
|
|
976
|
-
}
|
|
977
|
-
/**
|
|
978
|
-
* Searchable select input built on Command + Popover.
|
|
979
|
-
*
|
|
980
|
-
* Pass `options` with `{ value, label }` shape. The selected label is shown on
|
|
981
|
-
* the trigger; the popover contains a CommandInput and filtered CommandList.
|
|
982
|
-
* @returns A trigger button that opens a filtered option list.
|
|
983
|
-
*/
|
|
984
|
-
declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, disabled, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
985
|
-
declare namespace Combobox {
|
|
986
|
-
var displayName: string;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
/** Props for the ColorPicker component. */
|
|
990
|
-
interface ColorPickerProps {
|
|
991
|
-
/**
|
|
992
|
-
* Current color as an HSL triplet string (`"<H> <S>% <L>%"`, e.g. `"240 5.9% 10%"`).
|
|
993
|
-
* Match the format used by `@hex-core/tokens`; round-trip safe.
|
|
994
|
-
*/
|
|
995
|
-
value: string;
|
|
996
|
-
/**
|
|
997
|
-
* Called with the next HSL triplet whenever the user drags a slider or commits a valid hex value.
|
|
998
|
-
* Not called for invalid hex input — the picker keeps the prior value until the input parses cleanly.
|
|
999
|
-
*/
|
|
1000
|
-
onChange: (value: string) => void;
|
|
1001
|
-
/**
|
|
1002
|
-
* Disable interaction. Native `disabled` attribute is set on the trigger so the
|
|
1003
|
-
* popover doesn't open via mouse or keyboard activation. Tab focus still lands
|
|
1004
|
-
* on the trigger per browser defaults; if you want to fully remove it from the
|
|
1005
|
-
* tab order, wrap in a parent that handles `tabIndex` accordingly.
|
|
1006
|
-
*/
|
|
1007
|
-
disabled?: boolean;
|
|
1008
|
-
/** Accessible name for the trigger button (defaults to "Pick color"). */
|
|
1009
|
-
"aria-label"?: string;
|
|
1010
|
-
/** Additional class names merged onto the trigger. */
|
|
1011
|
-
className?: string;
|
|
1012
|
-
}
|
|
1013
|
-
/**
|
|
1014
|
-
* HSL-native color picker. Edits an HSL triplet directly via three sliders
|
|
1015
|
-
* (H/S/L), with a hex input as a display adapter.
|
|
1016
|
-
*
|
|
1017
|
-
* Round-trip safe: triplet → hex → triplet preserves the slider state because
|
|
1018
|
-
* sliders are the source of truth and hex updates them only when valid.
|
|
1019
|
-
*
|
|
1020
|
-
* @param props - Controlled component; `value` and `onChange` are required.
|
|
1021
|
-
* @returns A trigger button that opens a popover with H/S/L sliders + hex input.
|
|
1022
|
-
* @example
|
|
1023
|
-
* ```tsx
|
|
1024
|
-
* const [color, setColor] = React.useState("240 5.9% 10%");
|
|
1025
|
-
* <ColorPicker value={color} onChange={setColor} aria-label="Primary color" />
|
|
1026
|
-
* ```
|
|
1027
|
-
*/
|
|
1028
|
-
declare function ColorPicker({ value, onChange, disabled, "aria-label": ariaLabel, className, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
61
|
+
export { b as buttonVariants } from './button-variants-Bx6gCUFp.js';
|
|
62
|
+
export { toast } from 'sonner';
|
|
63
|
+
import 'react';
|
|
64
|
+
import 'class-variance-authority/types';
|
|
65
|
+
import '@radix-ui/react-label';
|
|
66
|
+
import 'class-variance-authority';
|
|
67
|
+
import '@radix-ui/react-checkbox';
|
|
68
|
+
import '@radix-ui/react-switch';
|
|
69
|
+
import 'react/jsx-runtime';
|
|
70
|
+
import '@radix-ui/react-separator';
|
|
71
|
+
import '@radix-ui/react-select';
|
|
72
|
+
import '@radix-ui/react-radio-group';
|
|
73
|
+
import '@radix-ui/react-slider';
|
|
74
|
+
import '@radix-ui/react-toggle';
|
|
75
|
+
import '@radix-ui/react-toggle-group';
|
|
76
|
+
import '@radix-ui/react-avatar';
|
|
77
|
+
import '@radix-ui/react-progress';
|
|
78
|
+
import '@radix-ui/react-scroll-area';
|
|
79
|
+
import '@radix-ui/react-aspect-ratio';
|
|
80
|
+
import '@radix-ui/react-tabs';
|
|
81
|
+
import '@radix-ui/react-accordion';
|
|
82
|
+
import '@radix-ui/react-dialog';
|
|
83
|
+
import '@radix-ui/react-alert-dialog';
|
|
84
|
+
import '@radix-ui/react-dropdown-menu';
|
|
85
|
+
import '@radix-ui/react-popover';
|
|
86
|
+
import '@radix-ui/react-tooltip';
|
|
87
|
+
import '@radix-ui/react-slot';
|
|
88
|
+
import 'react-hook-form';
|
|
89
|
+
import '@radix-ui/react-collapsible';
|
|
90
|
+
import '@radix-ui/react-hover-card';
|
|
91
|
+
import '@radix-ui/react-context-menu';
|
|
92
|
+
import '@radix-ui/react-menubar';
|
|
93
|
+
import '@radix-ui/react-navigation-menu';
|
|
94
|
+
import '@tanstack/react-table';
|
|
95
|
+
import 'react-day-picker';
|
|
96
|
+
import 'input-otp';
|
|
97
|
+
import 'vaul';
|
|
98
|
+
import 'react-resizable-panels';
|
|
1029
99
|
|
|
1030
100
|
/**
|
|
1031
101
|
* Color conversion utilities for the HSL-triplet token format used across
|
|
@@ -1099,542 +169,6 @@ declare function hslTripletToHex(triplet: string): string;
|
|
|
1099
169
|
*/
|
|
1100
170
|
declare function hexToHslTriplet(hex: string): string | null;
|
|
1101
171
|
|
|
1102
|
-
interface MultiComboboxOption {
|
|
1103
|
-
/** The value returned in the onChange array (stable, unique). */
|
|
1104
|
-
value: string;
|
|
1105
|
-
/** The display label shown in the list and the trigger. */
|
|
1106
|
-
label: string;
|
|
1107
|
-
/** Mark as non-selectable. */
|
|
1108
|
-
disabled?: boolean;
|
|
1109
|
-
}
|
|
1110
|
-
interface MultiComboboxProps {
|
|
1111
|
-
/** The list of selectable options. */
|
|
1112
|
-
options: MultiComboboxOption[];
|
|
1113
|
-
/** Controlled selected values. */
|
|
1114
|
-
value?: string[];
|
|
1115
|
-
/** Fired when the user toggles an option: (values: string[]) => void */
|
|
1116
|
-
onChange?: (values: string[]) => void;
|
|
1117
|
-
/** Text shown on the trigger when nothing is selected. */
|
|
1118
|
-
placeholder?: string;
|
|
1119
|
-
/** Input placeholder inside the popover list. */
|
|
1120
|
-
searchPlaceholder?: string;
|
|
1121
|
-
/** Text shown when no options match the search. */
|
|
1122
|
-
emptyText?: string;
|
|
1123
|
-
/** Soft cap on selections. Once reached, unselected options become non-selectable. */
|
|
1124
|
-
maxSelected?: number;
|
|
1125
|
-
/** Close the popover after every pick. Default false (multi-select UX expects staying open). */
|
|
1126
|
-
closeOnSelect?: boolean;
|
|
1127
|
-
/** Disable the trigger. */
|
|
1128
|
-
disabled?: boolean;
|
|
1129
|
-
/** Extra class names on the trigger button. */
|
|
1130
|
-
className?: string;
|
|
1131
|
-
/** Accessible label for the trigger (required when no adjacent visible label). */
|
|
1132
|
-
"aria-label"?: string;
|
|
1133
|
-
/** Id of an external visible label that names this combobox. */
|
|
1134
|
-
"aria-labelledby"?: string;
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Searchable multi-select input built on Command + Popover.
|
|
1138
|
-
*
|
|
1139
|
-
* Pass `options` with `{ value, label }` and bind `value` (string[]) +
|
|
1140
|
-
* `onChange`. The trigger shows "{n} selected" once any option is picked, with
|
|
1141
|
-
* the comma-separated label list mirrored into the `title` attribute for
|
|
1142
|
-
* pointer/screen-reader fallback. Each option is announced with `aria-selected`.
|
|
1143
|
-
* @returns A trigger button that opens a multi-select option list.
|
|
1144
|
-
*/
|
|
1145
|
-
declare function MultiCombobox({ options, value, onChange, placeholder, searchPlaceholder, emptyText, maxSelected, closeOnSelect, disabled, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: MultiComboboxProps): react_jsx_runtime.JSX.Element;
|
|
1146
|
-
declare namespace MultiCombobox {
|
|
1147
|
-
var displayName: string;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
type StepStatus = "complete" | "current" | "upcoming" | "error";
|
|
1151
|
-
interface StepperStep {
|
|
1152
|
-
/** Stable unique id used as the React key. */
|
|
1153
|
-
id: string;
|
|
1154
|
-
/** Step name shown next to the indicator. */
|
|
1155
|
-
label: string;
|
|
1156
|
-
/** Optional secondary text under the label. */
|
|
1157
|
-
description?: string;
|
|
1158
|
-
/** Disable the step (only applies when onStepClick is provided). */
|
|
1159
|
-
disabled?: boolean;
|
|
1160
|
-
/**
|
|
1161
|
-
* Override the index-derived status. Use `"error"` to mark a failed step
|
|
1162
|
-
* (e.g. validation failure in a form wizard); `"complete"` / `"current"` /
|
|
1163
|
-
* `"upcoming"` are derived from `current` by default.
|
|
1164
|
-
*/
|
|
1165
|
-
status?: StepStatus;
|
|
1166
|
-
}
|
|
1167
|
-
interface StepperProps extends Omit<React$1.HTMLAttributes<HTMLOListElement>, "aria-label" | "onClick"> {
|
|
1168
|
-
/** Ordered list of steps. */
|
|
1169
|
-
steps: StepperStep[];
|
|
1170
|
-
/** Index of the current step (controlled). */
|
|
1171
|
-
current: number;
|
|
1172
|
-
/** Layout direction. */
|
|
1173
|
-
orientation?: "horizontal" | "vertical";
|
|
1174
|
-
/** Indicator size. */
|
|
1175
|
-
size?: "sm" | "md";
|
|
1176
|
-
/** When provided, each step is rendered as a clickable button. */
|
|
1177
|
-
onStepClick?: (index: number) => void;
|
|
1178
|
-
/** Required accessible name for the ordered list. */
|
|
1179
|
-
"aria-label": string;
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Linear progress indicator for multi-step flows (form wizards, onboarding,
|
|
1183
|
-
* checkout). Pure semantic HTML — `<ol>` of `<li>` with `aria-current="step"`
|
|
1184
|
-
* on the current item; per-step `status` overrides allow marking "error".
|
|
1185
|
-
*
|
|
1186
|
-
* Pass `onStepClick` to make completed/non-disabled steps interactive.
|
|
1187
|
-
* @returns An accessible ordered step list.
|
|
1188
|
-
*/
|
|
1189
|
-
declare function Stepper({ steps, current, orientation, size, onStepClick, "aria-label": ariaLabel, className, ...rest }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1190
|
-
declare namespace Stepper {
|
|
1191
|
-
var displayName: string;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
type TimelineStatus = "default" | "success" | "warning" | "error" | "info";
|
|
1195
|
-
interface TimelineEvent {
|
|
1196
|
-
/** Stable unique id used as the React key. */
|
|
1197
|
-
id: string;
|
|
1198
|
-
/** Headline for the event. */
|
|
1199
|
-
title: string;
|
|
1200
|
-
/** Optional timestamp/metadata (e.g. "2 hours ago", "2026-04-27 14:30"). */
|
|
1201
|
-
timestamp?: React$1.ReactNode;
|
|
1202
|
-
/** Optional secondary text/body. */
|
|
1203
|
-
description?: React$1.ReactNode;
|
|
1204
|
-
/** Optional icon override for the indicator. Replaces the default dot. */
|
|
1205
|
-
icon?: React$1.ReactNode;
|
|
1206
|
-
/** Color variant for the indicator. */
|
|
1207
|
-
status?: TimelineStatus;
|
|
1208
|
-
}
|
|
1209
|
-
interface TimelineProps extends Omit<React$1.HTMLAttributes<HTMLOListElement>, "aria-label"> {
|
|
1210
|
-
/** Ordered list of chronological events. */
|
|
1211
|
-
events: TimelineEvent[];
|
|
1212
|
-
/** Indicator size — `"md"` by default. */
|
|
1213
|
-
size?: "sm" | "md";
|
|
1214
|
-
/** Required accessible name for the ordered list. */
|
|
1215
|
-
"aria-label": string;
|
|
1216
|
-
}
|
|
1217
|
-
/**
|
|
1218
|
-
* Vertical chronological event feed (activity log, audit trail, release notes).
|
|
1219
|
-
* Pure semantic HTML — `<ol>` of `<li>`. Events expose an optional icon, a
|
|
1220
|
-
* status color, a timestamp, and a description; status is purely visual, no
|
|
1221
|
-
* aria-current is set since events are historical, not navigational.
|
|
1222
|
-
*
|
|
1223
|
-
* For Gantt-style project timelines, build a custom layout — Timeline is for
|
|
1224
|
-
* event feeds, not scheduling.
|
|
1225
|
-
* @returns An accessible vertical event list.
|
|
1226
|
-
*/
|
|
1227
|
-
declare function Timeline({ events, size, "aria-label": ariaLabel, className, ...rest }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1228
|
-
declare namespace Timeline {
|
|
1229
|
-
var displayName: string;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
interface DropzoneProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "onDrop" | "children"> {
|
|
1233
|
-
/** Fired with the accepted file list every time the user picks or drops files. */
|
|
1234
|
-
onFilesSelected?: (files: File[]) => void;
|
|
1235
|
-
/**
|
|
1236
|
-
* Fired when files are dropped/picked but ALL of them are filtered out by
|
|
1237
|
-
* `accept` / `maxSize` / `maxFiles`. Useful for surfacing "file too large"
|
|
1238
|
-
* or "wrong type" toasts to the user. Receives the rejected File[].
|
|
1239
|
-
*/
|
|
1240
|
-
onFilesRejected?: (files: File[]) => void;
|
|
1241
|
-
/** `accept` attribute forwarded to the hidden file input (e.g. "image/*", ".csv"). */
|
|
1242
|
-
accept?: string;
|
|
1243
|
-
/** Allow multiple files. Default true. */
|
|
1244
|
-
multiple?: boolean;
|
|
1245
|
-
/** Maximum total file count (after dedupe). Excess files are dropped silently — surface in your handler. */
|
|
1246
|
-
maxFiles?: number;
|
|
1247
|
-
/** Maximum size per file in bytes. Files over the cap are filtered before onFilesSelected fires. */
|
|
1248
|
-
maxSize?: number;
|
|
1249
|
-
/** Disable interaction. */
|
|
1250
|
-
disabled?: boolean;
|
|
1251
|
-
/** Optional render override for the dropzone body. Receives drag state. */
|
|
1252
|
-
children?: React$1.ReactNode | ((state: DropzoneRenderState) => React$1.ReactNode);
|
|
1253
|
-
/** Required accessible name for the drop area. */
|
|
1254
|
-
"aria-label": string;
|
|
1255
|
-
}
|
|
1256
|
-
interface DropzoneRenderState {
|
|
1257
|
-
isDragOver: boolean;
|
|
1258
|
-
isDisabled: boolean;
|
|
1259
|
-
openFileDialog: () => void;
|
|
1260
|
-
}
|
|
1261
|
-
/**
|
|
1262
|
-
* Drag-and-drop file input built on the native HTML5 drag-drop API plus a
|
|
1263
|
-
* visually-hidden (sr-only) `<input type="file">` for screen-reader and
|
|
1264
|
-
* keyboard access.
|
|
1265
|
-
*
|
|
1266
|
-
* Two interaction surfaces:
|
|
1267
|
-
* - The visible drop area is a `role="button"` div with `tabIndex=0` and the
|
|
1268
|
-
* required `aria-label`. Click, Enter, or Space proxies through to click the
|
|
1269
|
-
* hidden input, opening the system file dialog.
|
|
1270
|
-
* - The hidden input itself remains in the accessibility tree (sr-only, NOT
|
|
1271
|
-
* `aria-hidden`) so AT-driven file pickers can find it directly.
|
|
1272
|
-
*
|
|
1273
|
-
* Pass `children` as a node (default placeholder) or a function receiving
|
|
1274
|
-
* `{ isDragOver, isDisabled, openFileDialog }` for full layout control.
|
|
1275
|
-
* @returns A drop area + hidden file input pair that yields a File[].
|
|
1276
|
-
*/
|
|
1277
|
-
declare function Dropzone({ onFilesSelected, onFilesRejected, accept, multiple, maxFiles, maxSize, disabled, children, className, "aria-label": ariaLabel, ...rest }: DropzoneProps): react_jsx_runtime.JSX.Element;
|
|
1278
|
-
declare namespace Dropzone {
|
|
1279
|
-
var displayName: string;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
interface TimePickerProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange" | "size"> {
|
|
1283
|
-
/** Controlled time value as `"HH:MM"` or `"HH:MM:SS"` (24-hour). */
|
|
1284
|
-
value?: string;
|
|
1285
|
-
/** Fired with the new `"HH:MM"` (or `"HH:MM:SS"`) string when the user picks a time. */
|
|
1286
|
-
onChange?: (value: string) => void;
|
|
1287
|
-
/**
|
|
1288
|
-
* Step in seconds — `60` shows HH:MM only (default), `1` shows HH:MM:SS.
|
|
1289
|
-
* Smaller values change the spinner increment in supported browsers.
|
|
1290
|
-
*/
|
|
1291
|
-
step?: number;
|
|
1292
|
-
/** Earliest selectable time as `"HH:MM"`. */
|
|
1293
|
-
min?: string;
|
|
1294
|
-
/** Latest selectable time as `"HH:MM"`. */
|
|
1295
|
-
max?: string;
|
|
1296
|
-
/** Disable the input. */
|
|
1297
|
-
disabled?: boolean;
|
|
1298
|
-
/** Accessible label for the trigger (required when no adjacent visible <label>). */
|
|
1299
|
-
"aria-label"?: string;
|
|
1300
|
-
}
|
|
1301
|
-
/**
|
|
1302
|
-
* Time input — styled wrapper around the native `<input type="time">` so the
|
|
1303
|
-
* browser handles 12/24-hour locale, keyboard arrow stepping, and screen-reader
|
|
1304
|
-
* announcement. Value is a `"HH:MM"` (or `"HH:MM:SS"` when `step={1}`) string.
|
|
1305
|
-
*
|
|
1306
|
-
* For free-form composite hour/minute fields with explicit AM/PM segments,
|
|
1307
|
-
* compose Input + Select yourself — the native input covers ~95% of TimePicker
|
|
1308
|
-
* use cases with full a11y, including keyboard-driven hour/minute spinning.
|
|
1309
|
-
* @returns A token-styled native time input.
|
|
1310
|
-
*/
|
|
1311
|
-
declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1312
|
-
|
|
1313
|
-
interface FileTreeNode {
|
|
1314
|
-
/** Stable unique id used as React key + ARIA target. */
|
|
1315
|
-
id: string;
|
|
1316
|
-
/** Display name (file or folder). */
|
|
1317
|
-
name: string;
|
|
1318
|
-
/** Nested children. Presence (even if empty array) marks the node as a folder. */
|
|
1319
|
-
children?: FileTreeNode[];
|
|
1320
|
-
/** Optional icon override. Default chooses folder/file based on `children`. */
|
|
1321
|
-
icon?: React$1.ReactNode;
|
|
1322
|
-
/** Disable selection + expand toggle. */
|
|
1323
|
-
disabled?: boolean;
|
|
1324
|
-
}
|
|
1325
|
-
interface FileTreeProps {
|
|
1326
|
-
/** Root nodes. */
|
|
1327
|
-
nodes: FileTreeNode[];
|
|
1328
|
-
/** Uncontrolled initial expanded ids. */
|
|
1329
|
-
defaultExpanded?: string[];
|
|
1330
|
-
/** Controlled expanded ids. */
|
|
1331
|
-
expanded?: string[];
|
|
1332
|
-
/** Fired when expanded set changes (array of ids). */
|
|
1333
|
-
onExpandedChange?: (ids: string[]) => void;
|
|
1334
|
-
/** Controlled selected node id. */
|
|
1335
|
-
selected?: string;
|
|
1336
|
-
/** Fired when the user activates a node (click, Enter, or Space). */
|
|
1337
|
-
onSelect?: (id: string) => void;
|
|
1338
|
-
/** Required accessible name for the tree container. */
|
|
1339
|
-
"aria-label": string;
|
|
1340
|
-
/** Extra class names on the root tree element. */
|
|
1341
|
-
className?: string;
|
|
1342
|
-
}
|
|
1343
|
-
/**
|
|
1344
|
-
* Hierarchical tree view for files, folders, settings sections, or any nested
|
|
1345
|
-
* navigation. Built on the WAI-ARIA tree pattern: `role="tree"` root,
|
|
1346
|
-
* `role="treeitem"` per node, `role="group"` per child group, with
|
|
1347
|
-
* `aria-level` / `aria-expanded` / `aria-selected` reflecting state.
|
|
1348
|
-
*
|
|
1349
|
-
* Keyboard: Up/Down move between visible items; Right expands a folder or
|
|
1350
|
-
* moves to the first child; Left collapses or moves to the parent;
|
|
1351
|
-
* Enter/Space activate the focused node; Home/End jump to the first/last.
|
|
1352
|
-
*
|
|
1353
|
-
* Expanded state is uncontrolled by default (`defaultExpanded`). Pass
|
|
1354
|
-
* `expanded` + `onExpandedChange` for controlled mode.
|
|
1355
|
-
* @returns A keyboard-accessible nested tree.
|
|
1356
|
-
*/
|
|
1357
|
-
declare function FileTree({ nodes, defaultExpanded, expanded: expandedProp, onExpandedChange, selected, onSelect, "aria-label": ariaLabel, className, }: FileTreeProps): react_jsx_runtime.JSX.Element;
|
|
1358
|
-
declare namespace FileTree {
|
|
1359
|
-
var displayName: string;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/** Root container controlling open state of a side sheet. */
|
|
1363
|
-
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
1364
|
-
/** The element (usually a button) that opens the sheet. */
|
|
1365
|
-
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1366
|
-
/** Closes the sheet when rendered inside SheetContent. */
|
|
1367
|
-
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1368
|
-
/** Portals the sheet overlay and content into the body. */
|
|
1369
|
-
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1370
|
-
/** Dimmed backdrop rendered behind the sheet content. */
|
|
1371
|
-
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1372
|
-
declare const sheetVariants: (props?: ({
|
|
1373
|
-
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
1374
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1375
|
-
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1376
|
-
}
|
|
1377
|
-
/** The sheet content panel that slides in from a side of the viewport. */
|
|
1378
|
-
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1379
|
-
/**
|
|
1380
|
-
* Header container inside SheetContent; stacks title and description.
|
|
1381
|
-
* @returns A div with vertical rhythm.
|
|
1382
|
-
*/
|
|
1383
|
-
declare function SheetHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1384
|
-
/**
|
|
1385
|
-
* Footer container inside SheetContent; aligns action buttons.
|
|
1386
|
-
* @returns A div that stacks buttons on mobile and right-aligns on desktop.
|
|
1387
|
-
*/
|
|
1388
|
-
declare function SheetFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1389
|
-
/** Accessible sheet title; Radix wires it to aria-labelledby automatically. */
|
|
1390
|
-
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1391
|
-
/** Accessible sheet description; Radix wires it to aria-describedby automatically. */
|
|
1392
|
-
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1393
|
-
|
|
1394
|
-
type DrawerRootProps = React$1.ComponentPropsWithoutRef<typeof Drawer$1.Root>;
|
|
1395
|
-
/**
|
|
1396
|
-
* Root container for a bottom drawer (vaul). Manages open state, drag, and snap points.
|
|
1397
|
-
* @returns A drawer root that coordinates overlay, content, and dismiss behavior.
|
|
1398
|
-
*/
|
|
1399
|
-
declare function Drawer({ shouldScaleBackground, ...props }: DrawerRootProps): react_jsx_runtime.JSX.Element;
|
|
1400
|
-
declare namespace Drawer {
|
|
1401
|
-
var displayName: string;
|
|
1402
|
-
}
|
|
1403
|
-
/** The element that opens the drawer when clicked. */
|
|
1404
|
-
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1405
|
-
/** Portals drawer overlay and content into the body. */
|
|
1406
|
-
declare const DrawerPortal: typeof vaul.Portal;
|
|
1407
|
-
/** Closes the drawer when rendered inside DrawerContent. */
|
|
1408
|
-
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1409
|
-
/** Dimmed backdrop behind the drawer content. */
|
|
1410
|
-
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1411
|
-
/** The drawer content panel. Slides up from the bottom and can be dragged down to dismiss. */
|
|
1412
|
-
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1413
|
-
/**
|
|
1414
|
-
* Header container inside DrawerContent; stacks title and description.
|
|
1415
|
-
* @returns A div with vertical rhythm.
|
|
1416
|
-
*/
|
|
1417
|
-
declare function DrawerHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1418
|
-
/**
|
|
1419
|
-
* Footer container inside DrawerContent; stacks action buttons.
|
|
1420
|
-
* @returns A div that stacks buttons vertically with consistent gutters.
|
|
1421
|
-
*/
|
|
1422
|
-
declare function DrawerFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1423
|
-
/** Accessible drawer title; vaul wires it to aria-labelledby automatically. */
|
|
1424
|
-
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1425
|
-
/** Accessible drawer description; vaul wires it to aria-describedby automatically. */
|
|
1426
|
-
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* Root container for a group of resizable panels.
|
|
1430
|
-
* @returns A flex container that coordinates panel sizing.
|
|
1431
|
-
*/
|
|
1432
|
-
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentPropsWithoutRef<typeof Group>): react_jsx_runtime.JSX.Element;
|
|
1433
|
-
declare namespace ResizablePanelGroup {
|
|
1434
|
-
var displayName: string;
|
|
1435
|
-
}
|
|
1436
|
-
/** A single resizable panel. Configure via defaultSize, minSize, maxSize. */
|
|
1437
|
-
declare const ResizablePanel: typeof Panel;
|
|
1438
|
-
interface ResizableHandleProps extends React$1.ComponentPropsWithoutRef<typeof Separator$1> {
|
|
1439
|
-
/** Show a grab-grip on the handle for affordance. */
|
|
1440
|
-
withHandle?: boolean;
|
|
1441
|
-
}
|
|
1442
|
-
/**
|
|
1443
|
-
* Draggable separator between panels. Optionally renders a grab-grip dot.
|
|
1444
|
-
* @returns A slim, focusable resize handle.
|
|
1445
|
-
*/
|
|
1446
|
-
declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): react_jsx_runtime.JSX.Element;
|
|
1447
|
-
declare namespace ResizableHandle {
|
|
1448
|
-
var displayName: string;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
interface SidebarContextValue {
|
|
1452
|
-
/** Current open/collapsed state. */
|
|
1453
|
-
open: boolean;
|
|
1454
|
-
/** Toggle or set open state. */
|
|
1455
|
-
setOpen: (open: boolean) => void;
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* Reads sidebar state from context. Throws if used outside SidebarProvider.
|
|
1459
|
-
* @returns `{ open, setOpen }` bound to the nearest SidebarProvider.
|
|
1460
|
-
*/
|
|
1461
|
-
declare function useSidebar(): SidebarContextValue;
|
|
1462
|
-
interface SidebarProviderProps {
|
|
1463
|
-
/** Controlled open state. */
|
|
1464
|
-
open?: boolean;
|
|
1465
|
-
/** Uncontrolled initial open state (defaults to true). */
|
|
1466
|
-
defaultOpen?: boolean;
|
|
1467
|
-
/** Callback fired when open state changes. */
|
|
1468
|
-
onOpenChange?: (open: boolean) => void;
|
|
1469
|
-
/** Children — typically a Sidebar + app content sibling. */
|
|
1470
|
-
children: React$1.ReactNode;
|
|
1471
|
-
/** Extra class names on the provider wrapper. */
|
|
1472
|
-
className?: string;
|
|
1473
|
-
}
|
|
1474
|
-
/**
|
|
1475
|
-
* Hosts sidebar state. Wrap your app shell (Sidebar + main content) in this.
|
|
1476
|
-
* @returns A flex container with a SidebarContext provider.
|
|
1477
|
-
*/
|
|
1478
|
-
declare function SidebarProvider({ open: openProp, defaultOpen, onOpenChange, children, className, }: SidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
1479
|
-
declare namespace SidebarProvider {
|
|
1480
|
-
var displayName: string;
|
|
1481
|
-
}
|
|
1482
|
-
declare const sidebarVariants: (props?: ({
|
|
1483
|
-
side?: "right" | "left" | null | undefined;
|
|
1484
|
-
state?: "closed" | "open" | null | undefined;
|
|
1485
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1486
|
-
interface SidebarProps extends React$1.HTMLAttributes<HTMLElement>, Pick<VariantProps<typeof sidebarVariants>, "side"> {
|
|
1487
|
-
}
|
|
1488
|
-
/**
|
|
1489
|
-
* App-shell sidebar. Reads open state from SidebarProvider and animates width.
|
|
1490
|
-
* @returns An aside element that expands/collapses.
|
|
1491
|
-
*/
|
|
1492
|
-
declare const Sidebar: React$1.ForwardRefExoticComponent<SidebarProps & React$1.RefAttributes<HTMLElement>>;
|
|
1493
|
-
interface SidebarTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1494
|
-
/** Render as the child element (Button, etc.) using Radix Slot. */
|
|
1495
|
-
asChild?: boolean;
|
|
1496
|
-
}
|
|
1497
|
-
/**
|
|
1498
|
-
* Toggles the sidebar open/closed. Renders a button by default; use asChild to style.
|
|
1499
|
-
* @returns A button that flips SidebarProvider state.
|
|
1500
|
-
*/
|
|
1501
|
-
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<SidebarTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1502
|
-
/** Header container at the top of the sidebar. */
|
|
1503
|
-
declare const SidebarHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1504
|
-
/** Scrollable main area of the sidebar. */
|
|
1505
|
-
declare const SidebarContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1506
|
-
/** Footer container at the bottom of the sidebar. */
|
|
1507
|
-
declare const SidebarFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1508
|
-
interface SidebarItemProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1509
|
-
/** Render as the child element (next/link, etc.) via Slot. */
|
|
1510
|
-
asChild?: boolean;
|
|
1511
|
-
/** Mark as the current/selected item. */
|
|
1512
|
-
active?: boolean;
|
|
1513
|
-
}
|
|
1514
|
-
/**
|
|
1515
|
-
* Single selectable row inside SidebarContent. Compose icon + label in children.
|
|
1516
|
-
* @returns An accessible button (or Slot) styled as a sidebar row.
|
|
1517
|
-
*/
|
|
1518
|
-
declare const SidebarItem: React$1.ForwardRefExoticComponent<SidebarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1519
|
-
|
|
1520
|
-
declare const buttonSchema: ComponentSchemaDefinition;
|
|
1521
|
-
|
|
1522
|
-
declare const inputSchema: ComponentSchemaDefinition;
|
|
1523
|
-
|
|
1524
|
-
declare const labelSchema: ComponentSchemaDefinition;
|
|
1525
|
-
|
|
1526
|
-
declare const textareaSchema: ComponentSchemaDefinition;
|
|
1527
|
-
|
|
1528
|
-
declare const checkboxSchema: ComponentSchemaDefinition;
|
|
1529
|
-
|
|
1530
|
-
declare const switchSchema: ComponentSchemaDefinition;
|
|
1531
|
-
|
|
1532
|
-
declare const badgeSchema: ComponentSchemaDefinition;
|
|
1533
|
-
|
|
1534
|
-
declare const separatorSchema: ComponentSchemaDefinition;
|
|
1535
|
-
|
|
1536
|
-
declare const cardSchema: ComponentSchemaDefinition;
|
|
1537
|
-
|
|
1538
|
-
declare const tabsSchema: ComponentSchemaDefinition;
|
|
1539
|
-
|
|
1540
|
-
declare const accordionSchema: ComponentSchemaDefinition;
|
|
1541
|
-
|
|
1542
|
-
declare const dialogSchema: ComponentSchemaDefinition;
|
|
1543
|
-
|
|
1544
|
-
declare const alertDialogSchema: ComponentSchemaDefinition;
|
|
1545
|
-
|
|
1546
|
-
declare const dropdownMenuSchema: ComponentSchemaDefinition;
|
|
1547
|
-
|
|
1548
|
-
declare const popoverSchema: ComponentSchemaDefinition;
|
|
1549
|
-
|
|
1550
|
-
declare const tooltipSchema: ComponentSchemaDefinition;
|
|
1551
|
-
|
|
1552
|
-
declare const selectSchema: ComponentSchemaDefinition;
|
|
1553
|
-
|
|
1554
|
-
declare const radioGroupSchema: ComponentSchemaDefinition;
|
|
1555
|
-
|
|
1556
|
-
declare const sliderSchema: ComponentSchemaDefinition;
|
|
1557
|
-
|
|
1558
|
-
declare const toggleSchema: ComponentSchemaDefinition;
|
|
1559
|
-
|
|
1560
|
-
declare const toggleGroupSchema: ComponentSchemaDefinition;
|
|
1561
|
-
|
|
1562
|
-
declare const formSchema: ComponentSchemaDefinition;
|
|
1563
|
-
|
|
1564
|
-
declare const avatarSchema: ComponentSchemaDefinition;
|
|
1565
|
-
|
|
1566
|
-
declare const skeletonSchema: ComponentSchemaDefinition;
|
|
1567
|
-
|
|
1568
|
-
declare const progressSchema: ComponentSchemaDefinition;
|
|
1569
|
-
|
|
1570
|
-
declare const scrollAreaSchema: ComponentSchemaDefinition;
|
|
1571
|
-
|
|
1572
|
-
declare const aspectRatioSchema: ComponentSchemaDefinition;
|
|
1573
|
-
|
|
1574
|
-
declare const containerSchema: ComponentSchemaDefinition;
|
|
1575
|
-
|
|
1576
|
-
declare const stackSchema: ComponentSchemaDefinition;
|
|
1577
|
-
|
|
1578
|
-
declare const clusterSchema: ComponentSchemaDefinition;
|
|
1579
|
-
|
|
1580
|
-
declare const gridSchema: ComponentSchemaDefinition;
|
|
1581
|
-
|
|
1582
|
-
declare const spacerSchema: ComponentSchemaDefinition;
|
|
1583
|
-
|
|
1584
|
-
declare const collapsibleSchema: ComponentSchemaDefinition;
|
|
1585
|
-
|
|
1586
|
-
declare const hoverCardSchema: ComponentSchemaDefinition;
|
|
1587
|
-
|
|
1588
|
-
declare const contextMenuSchema: ComponentSchemaDefinition;
|
|
1589
|
-
|
|
1590
|
-
declare const menubarSchema: ComponentSchemaDefinition;
|
|
1591
|
-
|
|
1592
|
-
declare const navigationMenuSchema: ComponentSchemaDefinition;
|
|
1593
|
-
|
|
1594
|
-
declare const breadcrumbSchema: ComponentSchemaDefinition;
|
|
1595
|
-
|
|
1596
|
-
declare const alertSchema: ComponentSchemaDefinition;
|
|
1597
|
-
|
|
1598
|
-
declare const sonnerSchema: ComponentSchemaDefinition;
|
|
1599
|
-
|
|
1600
|
-
declare const tableSchema: ComponentSchemaDefinition;
|
|
1601
|
-
|
|
1602
|
-
declare const dataTableSchema: ComponentSchemaDefinition;
|
|
1603
|
-
|
|
1604
|
-
declare const paginationSchema: ComponentSchemaDefinition;
|
|
1605
|
-
|
|
1606
|
-
declare const calendarSchema: ComponentSchemaDefinition;
|
|
1607
|
-
|
|
1608
|
-
declare const datePickerSchema: ComponentSchemaDefinition;
|
|
1609
|
-
|
|
1610
|
-
declare const inputOTPSchema: ComponentSchemaDefinition;
|
|
1611
|
-
|
|
1612
|
-
declare const commandSchema: ComponentSchemaDefinition;
|
|
1613
|
-
|
|
1614
|
-
declare const comboboxSchema: ComponentSchemaDefinition;
|
|
1615
|
-
|
|
1616
|
-
declare const multiComboboxSchema: ComponentSchemaDefinition;
|
|
1617
|
-
|
|
1618
|
-
declare const stepperSchema: ComponentSchemaDefinition;
|
|
1619
|
-
|
|
1620
|
-
declare const timelineSchema: ComponentSchemaDefinition;
|
|
1621
|
-
|
|
1622
|
-
declare const dropzoneSchema: ComponentSchemaDefinition;
|
|
1623
|
-
|
|
1624
|
-
declare const timePickerSchema: ComponentSchemaDefinition;
|
|
1625
|
-
|
|
1626
|
-
declare const fileTreeSchema: ComponentSchemaDefinition;
|
|
1627
|
-
|
|
1628
|
-
declare const colorPickerSchema: ComponentSchemaDefinition;
|
|
1629
|
-
|
|
1630
|
-
declare const sheetSchema: ComponentSchemaDefinition;
|
|
1631
|
-
|
|
1632
|
-
declare const drawerSchema: ComponentSchemaDefinition;
|
|
1633
|
-
|
|
1634
|
-
declare const resizableSchema: ComponentSchemaDefinition;
|
|
1635
|
-
|
|
1636
|
-
declare const sidebarSchema: ComponentSchemaDefinition;
|
|
1637
|
-
|
|
1638
172
|
/**
|
|
1639
173
|
* Merge class names with Tailwind CSS conflict resolution.
|
|
1640
174
|
* @param inputs - Class values (strings, arrays, objects) to merge
|
|
@@ -1642,4 +176,4 @@ declare const sidebarSchema: ComponentSchemaDefinition;
|
|
|
1642
176
|
*/
|
|
1643
177
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1644
178
|
|
|
1645
|
-
export {
|
|
179
|
+
export { type HslTriplet, type RgbColor, cn, formatHslTriplet, hexToHslTriplet, hslToRgb, hslTripletToHex, parseHslTriplet, rgbToHsl };
|