@hai3/uikit 0.1.0-alpha.6 → 0.1.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
3
  import * as React$1 from 'react';
3
4
  import React__default from 'react';
5
+ import { VariantProps } from 'class-variance-authority';
4
6
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
5
7
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
6
- import * as class_variance_authority_types from 'class-variance-authority/types';
7
- import { VariantProps } from 'class-variance-authority';
8
8
  import { ButtonVariant, ButtonSize, TextDirection, IconButtonSize, Theme } from '@hai3/uikit-contracts';
9
9
  export { ButtonSize, ButtonVariant, IconButtonSize, Theme } from '@hai3/uikit-contracts';
10
10
  import { DayPicker, DayButton } from 'react-day-picker';
@@ -12,9 +12,16 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
12
12
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
13
13
  import { OTPInput } from 'input-otp';
14
14
  import * as LabelPrimitive from '@radix-ui/react-label';
15
+ import * as react_hook_form from 'react-hook-form';
16
+ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
17
+ import { Slot } from '@radix-ui/react-slot';
15
18
  import * as SwitchPrimitives from '@radix-ui/react-switch';
19
+ import { ColumnDef, Table as Table$1, Column } from '@tanstack/react-table';
20
+ export { Column, ColumnDef, ColumnFiltersState, Table as ReactTable, Row, SortingState, VisibilityState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
16
21
  import * as SliderPrimitive from '@radix-ui/react-slider';
17
22
  import * as ProgressPrimitive from '@radix-ui/react-progress';
23
+ import { ToasterProps } from 'sonner';
24
+ export { toast } from 'sonner';
18
25
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
19
26
  import * as PopoverPrimitive from '@radix-ui/react-popover';
20
27
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
@@ -22,6 +29,7 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
22
29
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
23
30
  import * as TabsPrimitive from '@radix-ui/react-tabs';
24
31
  import * as SheetPrimitive from '@radix-ui/react-dialog';
32
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
33
  import { Drawer as Drawer$1 } from 'vaul';
26
34
  import * as ResizablePrimitive from 'react-resizable-panels';
27
35
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
@@ -34,8 +42,25 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
34
42
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
35
43
  export { Area, AreaChart, Bar, BarChart, Brush, CartesianGrid, Cell, Label as ChartLabel, Legend as ChartLegend, Tooltip as ChartTooltip, ComposedChart, Cross, Curve, Customized, Dot, ErrorBar, Funnel, FunnelChart, LabelList, LegendProps, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Polygon, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceArea, ReferenceDot, ReferenceLine, ResponsiveContainer, Sankey, Scatter, ScatterChart, Sector, Text, TooltipProps, Treemap, XAxis, YAxis, ZAxis } from 'recharts';
36
44
 
45
+ declare const alertVariants: (props?: ({
46
+ variant?: "default" | "destructive" | null | undefined;
47
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
48
+ declare function Alert({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
49
+ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
50
+ declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
51
+
37
52
  declare function AspectRatio({ ...props }: React$1.ComponentProps<typeof AspectRatioPrimitive.Root>): react_jsx_runtime.JSX.Element;
38
53
 
54
+ declare function Empty({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
55
+ declare function EmptyHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
56
+ declare const emptyMediaVariants: (props?: ({
57
+ variant?: "default" | "icon" | null | undefined;
58
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
59
+ declare function EmptyMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime.JSX.Element;
60
+ declare function EmptyTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
61
+ declare function EmptyDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
62
+ declare function EmptyContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
63
+
39
64
  declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
40
65
  declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
41
66
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
@@ -50,7 +75,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
50
75
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
51
76
 
52
77
  declare const badgeVariants: (props?: ({
53
- variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
78
+ variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
54
79
  } & class_variance_authority_types.ClassProp) | undefined) => string;
55
80
  interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
56
81
  asChild?: boolean;
@@ -84,6 +109,48 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTML
84
109
 
85
110
  declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
86
111
 
112
+ declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
113
+ declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
114
+ variant?: "legend" | "label";
115
+ }): react_jsx_runtime.JSX.Element;
116
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
117
+ declare const fieldVariants: (props?: ({
118
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
119
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
120
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
121
+ declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
122
+ declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
123
+ declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
124
+ declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
125
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
126
+ children?: React.ReactNode;
127
+ }): react_jsx_runtime.JSX.Element;
128
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
129
+ errors?: Array<{
130
+ message?: string;
131
+ } | undefined>;
132
+ }): react_jsx_runtime.JSX.Element | null;
133
+
134
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
135
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
136
+ declare const useFormField: () => {
137
+ invalid: boolean;
138
+ isDirty: boolean;
139
+ isTouched: boolean;
140
+ isValidating: boolean;
141
+ error?: react_hook_form.FieldError | undefined;
142
+ id: string;
143
+ name: string;
144
+ formItemId: string;
145
+ formDescriptionId: string;
146
+ formMessageId: string;
147
+ };
148
+ declare function FormItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
149
+ declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
150
+ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
151
+ declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
152
+ declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
153
+
87
154
  interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
88
155
  /**
89
156
  * Enable auto-resize behavior (adjusts height based on content)
@@ -109,6 +176,55 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
109
176
 
110
177
  declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
111
178
 
179
+ declare function Table({ className, ...props }: React$1.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
180
+ declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
181
+ declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
182
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
183
+ declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
184
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
185
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
186
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
187
+
188
+ interface DataTableProps<TData, TValue> {
189
+ columns: ColumnDef<TData, TValue>[];
190
+ data: TData[];
191
+ /** External table instance - when provided, uses this instead of internal state */
192
+ table?: Table$1<TData>;
193
+ /** Optional filter input component */
194
+ filterInput?: React$1.ReactNode;
195
+ /** Optional toolbar component (rendered between filter and table) */
196
+ toolbar?: React$1.ReactNode;
197
+ /** Show pagination (default: true) */
198
+ showPagination?: boolean;
199
+ /** Initial page size (default: 10) */
200
+ pageSize?: number;
201
+ /** No results message */
202
+ noResultsMessage?: string;
203
+ }
204
+ declare function DataTable<TData, TValue>({ columns, data, table: externalTable, filterInput, toolbar, showPagination, pageSize, noResultsMessage, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
205
+
206
+ interface DataTablePaginationProps<TData> {
207
+ table: Table$1<TData>;
208
+ /** Page size options (default: [10, 20, 30, 40, 50]) */
209
+ pageSizeOptions?: number[];
210
+ }
211
+ declare function DataTablePagination<TData>({ table, pageSizeOptions, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
212
+
213
+ interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
214
+ column: Column<TData, TValue>;
215
+ title: string;
216
+ }
217
+ declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
218
+
219
+ interface DataTableViewOptionsProps<TData> {
220
+ table: Table$1<TData>;
221
+ /** Label for the dropdown menu (default: "Toggle columns") */
222
+ label?: string;
223
+ /** Button text (default: "View") */
224
+ buttonText?: string;
225
+ }
226
+ declare function DataTableViewOptions<TData>({ table, label, buttonText, }: DataTableViewOptionsProps<TData>): react_jsx_runtime.JSX.Element;
227
+
112
228
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
113
229
  /**
114
230
  * If true, skeleton inherits text color instead of using bg-muted
@@ -133,6 +249,8 @@ declare const SliderThumb: React$1.ForwardRefExoticComponent<Omit<SliderPrimitiv
133
249
 
134
250
  declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
135
251
 
252
+ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
253
+
136
254
  declare const TooltipProvider: {
137
255
  ({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
138
256
  displayName: string | undefined;
@@ -275,6 +393,18 @@ declare const DialogFooter: {
275
393
  declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
276
394
  declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
277
395
 
396
+ declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
397
+ declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
398
+ declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
399
+ declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
400
+ declare function AlertDialogContent({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
401
+ declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
402
+ declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
403
+ declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
404
+ declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
405
+ declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
406
+ declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
407
+
278
408
  declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
279
409
  declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
280
410
  declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
@@ -297,6 +427,26 @@ declare function ScrollBar({ className, orientation, ...props }: React$1.Compone
297
427
 
298
428
  declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
299
429
 
430
+ declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
431
+ declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
432
+ declare const itemVariants: (props?: ({
433
+ variant?: "default" | "muted" | "outline" | null | undefined;
434
+ size?: "default" | "sm" | null | undefined;
435
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
436
+ declare function Item({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
437
+ asChild?: boolean;
438
+ }): react_jsx_runtime.JSX.Element;
439
+ declare const itemMediaVariants: (props?: ({
440
+ variant?: "default" | "image" | "icon" | null | undefined;
441
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
442
+ declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime.JSX.Element;
443
+ declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
444
+ declare function ItemTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
445
+ declare function ItemDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
446
+ declare function ItemActions({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
447
+ declare function ItemHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
448
+ declare function ItemFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
449
+
300
450
  declare const Accordion: React$1.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & React$1.RefAttributes<HTMLDivElement>>;
301
451
  declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
302
452
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
@@ -445,6 +595,49 @@ interface DropdownButtonProps extends React__default.ButtonHTMLAttributes<HTMLBu
445
595
  }
446
596
  declare const DropdownButton: React__default.ForwardRefExoticComponent<DropdownButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
447
597
 
598
+ declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
599
+ declare const inputGroupAddonVariants: (props?: ({
600
+ align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
601
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
602
+ declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
603
+ declare const inputGroupButtonVariants: (props?: ({
604
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
605
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
606
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
607
+ declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
608
+ declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
609
+ declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
610
+
611
+ interface DatePickerProps {
612
+ children: React$1.ReactNode;
613
+ date?: Date;
614
+ onDateChange?: (date: Date | undefined) => void;
615
+ defaultDate?: Date;
616
+ open?: boolean;
617
+ onOpenChange?: (open: boolean) => void;
618
+ defaultOpen?: boolean;
619
+ formatDate?: (date: Date) => string;
620
+ }
621
+ declare function DatePicker({ children, date: controlledDate, onDateChange, defaultDate, open: controlledOpen, onOpenChange, defaultOpen, formatDate: formatDateProp, }: DatePickerProps): react_jsx_runtime.JSX.Element;
622
+ interface DatePickerTriggerProps extends Omit<React$1.ComponentProps<typeof Button>, "children"> {
623
+ placeholder?: string;
624
+ icon?: "calendar" | "chevron";
625
+ children?: React$1.ReactNode;
626
+ }
627
+ declare function DatePickerTrigger({ className, placeholder, icon, children, ...props }: DatePickerTriggerProps): react_jsx_runtime.JSX.Element;
628
+ interface DatePickerContentProps extends Omit<React$1.ComponentProps<typeof PopoverContent>, "children"> {
629
+ calendarProps?: Omit<React$1.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect">;
630
+ children?: React$1.ReactNode;
631
+ }
632
+ declare function DatePickerContent({ className, calendarProps, children, align, ...props }: DatePickerContentProps): react_jsx_runtime.JSX.Element;
633
+ interface DatePickerInputProps {
634
+ className?: string;
635
+ inputProps?: Omit<React$1.ComponentProps<typeof Input>, "value" | "onChange">;
636
+ placeholder?: string;
637
+ id?: string;
638
+ }
639
+ declare function DatePickerInput({ className, inputProps, placeholder, id, }: DatePickerInputProps): react_jsx_runtime.JSX.Element;
640
+
448
641
  declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement> & {
449
642
  collapsed?: boolean | undefined;
450
643
  }, "ref"> & React$1.RefAttributes<HTMLElement>>;
@@ -647,4 +840,4 @@ declare const ChevronUpIcon: React__default.FC<React__default.SVGProps<SVGSVGEle
647
840
  */
648
841
  declare const applyTheme: (theme: Theme, themeName?: string) => void;
649
842
 
650
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, type ChatInputProps, type ChatThread, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, type MessageBubbleProps, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, type SidebarHeaderProps, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, type ThreadListProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, type UserInfoProps, applyTheme, badgeVariants };
843
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, type ChatInputProps, type ChatThread, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, type MessageBubbleProps, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, type SidebarHeaderProps, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, type ThreadListProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, type UserInfoProps, alertVariants, applyTheme, badgeVariants, emptyMediaVariants, useFormField };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
3
  import * as React$1 from 'react';
3
4
  import React__default from 'react';
5
+ import { VariantProps } from 'class-variance-authority';
4
6
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
5
7
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
6
- import * as class_variance_authority_types from 'class-variance-authority/types';
7
- import { VariantProps } from 'class-variance-authority';
8
8
  import { ButtonVariant, ButtonSize, TextDirection, IconButtonSize, Theme } from '@hai3/uikit-contracts';
9
9
  export { ButtonSize, ButtonVariant, IconButtonSize, Theme } from '@hai3/uikit-contracts';
10
10
  import { DayPicker, DayButton } from 'react-day-picker';
@@ -12,9 +12,16 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
12
12
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
13
13
  import { OTPInput } from 'input-otp';
14
14
  import * as LabelPrimitive from '@radix-ui/react-label';
15
+ import * as react_hook_form from 'react-hook-form';
16
+ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
17
+ import { Slot } from '@radix-ui/react-slot';
15
18
  import * as SwitchPrimitives from '@radix-ui/react-switch';
19
+ import { ColumnDef, Table as Table$1, Column } from '@tanstack/react-table';
20
+ export { Column, ColumnDef, ColumnFiltersState, Table as ReactTable, Row, SortingState, VisibilityState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
16
21
  import * as SliderPrimitive from '@radix-ui/react-slider';
17
22
  import * as ProgressPrimitive from '@radix-ui/react-progress';
23
+ import { ToasterProps } from 'sonner';
24
+ export { toast } from 'sonner';
18
25
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
19
26
  import * as PopoverPrimitive from '@radix-ui/react-popover';
20
27
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
@@ -22,6 +29,7 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
22
29
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
23
30
  import * as TabsPrimitive from '@radix-ui/react-tabs';
24
31
  import * as SheetPrimitive from '@radix-ui/react-dialog';
32
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
33
  import { Drawer as Drawer$1 } from 'vaul';
26
34
  import * as ResizablePrimitive from 'react-resizable-panels';
27
35
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
@@ -34,8 +42,25 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
34
42
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
35
43
  export { Area, AreaChart, Bar, BarChart, Brush, CartesianGrid, Cell, Label as ChartLabel, Legend as ChartLegend, Tooltip as ChartTooltip, ComposedChart, Cross, Curve, Customized, Dot, ErrorBar, Funnel, FunnelChart, LabelList, LegendProps, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Polygon, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceArea, ReferenceDot, ReferenceLine, ResponsiveContainer, Sankey, Scatter, ScatterChart, Sector, Text, TooltipProps, Treemap, XAxis, YAxis, ZAxis } from 'recharts';
36
44
 
45
+ declare const alertVariants: (props?: ({
46
+ variant?: "default" | "destructive" | null | undefined;
47
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
48
+ declare function Alert({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
49
+ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
50
+ declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
51
+
37
52
  declare function AspectRatio({ ...props }: React$1.ComponentProps<typeof AspectRatioPrimitive.Root>): react_jsx_runtime.JSX.Element;
38
53
 
54
+ declare function Empty({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
55
+ declare function EmptyHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
56
+ declare const emptyMediaVariants: (props?: ({
57
+ variant?: "default" | "icon" | null | undefined;
58
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
59
+ declare function EmptyMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime.JSX.Element;
60
+ declare function EmptyTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
61
+ declare function EmptyDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
62
+ declare function EmptyContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
63
+
39
64
  declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
40
65
  declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
41
66
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
@@ -50,7 +75,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
50
75
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
51
76
 
52
77
  declare const badgeVariants: (props?: ({
53
- variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
78
+ variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
54
79
  } & class_variance_authority_types.ClassProp) | undefined) => string;
55
80
  interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
56
81
  asChild?: boolean;
@@ -84,6 +109,48 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTML
84
109
 
85
110
  declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
86
111
 
112
+ declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
113
+ declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
114
+ variant?: "legend" | "label";
115
+ }): react_jsx_runtime.JSX.Element;
116
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
117
+ declare const fieldVariants: (props?: ({
118
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
119
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
120
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
121
+ declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
122
+ declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
123
+ declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
124
+ declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
125
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
126
+ children?: React.ReactNode;
127
+ }): react_jsx_runtime.JSX.Element;
128
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
129
+ errors?: Array<{
130
+ message?: string;
131
+ } | undefined>;
132
+ }): react_jsx_runtime.JSX.Element | null;
133
+
134
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
135
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
136
+ declare const useFormField: () => {
137
+ invalid: boolean;
138
+ isDirty: boolean;
139
+ isTouched: boolean;
140
+ isValidating: boolean;
141
+ error?: react_hook_form.FieldError | undefined;
142
+ id: string;
143
+ name: string;
144
+ formItemId: string;
145
+ formDescriptionId: string;
146
+ formMessageId: string;
147
+ };
148
+ declare function FormItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
149
+ declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
150
+ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
151
+ declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
152
+ declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
153
+
87
154
  interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
88
155
  /**
89
156
  * Enable auto-resize behavior (adjusts height based on content)
@@ -109,6 +176,55 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
109
176
 
110
177
  declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
111
178
 
179
+ declare function Table({ className, ...props }: React$1.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
180
+ declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
181
+ declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
182
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
183
+ declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
184
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
185
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
186
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
187
+
188
+ interface DataTableProps<TData, TValue> {
189
+ columns: ColumnDef<TData, TValue>[];
190
+ data: TData[];
191
+ /** External table instance - when provided, uses this instead of internal state */
192
+ table?: Table$1<TData>;
193
+ /** Optional filter input component */
194
+ filterInput?: React$1.ReactNode;
195
+ /** Optional toolbar component (rendered between filter and table) */
196
+ toolbar?: React$1.ReactNode;
197
+ /** Show pagination (default: true) */
198
+ showPagination?: boolean;
199
+ /** Initial page size (default: 10) */
200
+ pageSize?: number;
201
+ /** No results message */
202
+ noResultsMessage?: string;
203
+ }
204
+ declare function DataTable<TData, TValue>({ columns, data, table: externalTable, filterInput, toolbar, showPagination, pageSize, noResultsMessage, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
205
+
206
+ interface DataTablePaginationProps<TData> {
207
+ table: Table$1<TData>;
208
+ /** Page size options (default: [10, 20, 30, 40, 50]) */
209
+ pageSizeOptions?: number[];
210
+ }
211
+ declare function DataTablePagination<TData>({ table, pageSizeOptions, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
212
+
213
+ interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
214
+ column: Column<TData, TValue>;
215
+ title: string;
216
+ }
217
+ declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
218
+
219
+ interface DataTableViewOptionsProps<TData> {
220
+ table: Table$1<TData>;
221
+ /** Label for the dropdown menu (default: "Toggle columns") */
222
+ label?: string;
223
+ /** Button text (default: "View") */
224
+ buttonText?: string;
225
+ }
226
+ declare function DataTableViewOptions<TData>({ table, label, buttonText, }: DataTableViewOptionsProps<TData>): react_jsx_runtime.JSX.Element;
227
+
112
228
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
113
229
  /**
114
230
  * If true, skeleton inherits text color instead of using bg-muted
@@ -133,6 +249,8 @@ declare const SliderThumb: React$1.ForwardRefExoticComponent<Omit<SliderPrimitiv
133
249
 
134
250
  declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
135
251
 
252
+ declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
253
+
136
254
  declare const TooltipProvider: {
137
255
  ({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
138
256
  displayName: string | undefined;
@@ -275,6 +393,18 @@ declare const DialogFooter: {
275
393
  declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
276
394
  declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
277
395
 
396
+ declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
397
+ declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
398
+ declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
399
+ declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
400
+ declare function AlertDialogContent({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
401
+ declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
402
+ declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
403
+ declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
404
+ declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
405
+ declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
406
+ declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
407
+
278
408
  declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
279
409
  declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
280
410
  declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
@@ -297,6 +427,26 @@ declare function ScrollBar({ className, orientation, ...props }: React$1.Compone
297
427
 
298
428
  declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
299
429
 
430
+ declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
431
+ declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
432
+ declare const itemVariants: (props?: ({
433
+ variant?: "default" | "muted" | "outline" | null | undefined;
434
+ size?: "default" | "sm" | null | undefined;
435
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
436
+ declare function Item({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
437
+ asChild?: boolean;
438
+ }): react_jsx_runtime.JSX.Element;
439
+ declare const itemMediaVariants: (props?: ({
440
+ variant?: "default" | "image" | "icon" | null | undefined;
441
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
442
+ declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime.JSX.Element;
443
+ declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
444
+ declare function ItemTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
445
+ declare function ItemDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
446
+ declare function ItemActions({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
447
+ declare function ItemHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
448
+ declare function ItemFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
449
+
300
450
  declare const Accordion: React$1.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & React$1.RefAttributes<HTMLDivElement>>;
301
451
  declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
302
452
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
@@ -445,6 +595,49 @@ interface DropdownButtonProps extends React__default.ButtonHTMLAttributes<HTMLBu
445
595
  }
446
596
  declare const DropdownButton: React__default.ForwardRefExoticComponent<DropdownButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
447
597
 
598
+ declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
599
+ declare const inputGroupAddonVariants: (props?: ({
600
+ align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
601
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
602
+ declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
603
+ declare const inputGroupButtonVariants: (props?: ({
604
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
605
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
606
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
607
+ declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
608
+ declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
609
+ declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
610
+
611
+ interface DatePickerProps {
612
+ children: React$1.ReactNode;
613
+ date?: Date;
614
+ onDateChange?: (date: Date | undefined) => void;
615
+ defaultDate?: Date;
616
+ open?: boolean;
617
+ onOpenChange?: (open: boolean) => void;
618
+ defaultOpen?: boolean;
619
+ formatDate?: (date: Date) => string;
620
+ }
621
+ declare function DatePicker({ children, date: controlledDate, onDateChange, defaultDate, open: controlledOpen, onOpenChange, defaultOpen, formatDate: formatDateProp, }: DatePickerProps): react_jsx_runtime.JSX.Element;
622
+ interface DatePickerTriggerProps extends Omit<React$1.ComponentProps<typeof Button>, "children"> {
623
+ placeholder?: string;
624
+ icon?: "calendar" | "chevron";
625
+ children?: React$1.ReactNode;
626
+ }
627
+ declare function DatePickerTrigger({ className, placeholder, icon, children, ...props }: DatePickerTriggerProps): react_jsx_runtime.JSX.Element;
628
+ interface DatePickerContentProps extends Omit<React$1.ComponentProps<typeof PopoverContent>, "children"> {
629
+ calendarProps?: Omit<React$1.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect">;
630
+ children?: React$1.ReactNode;
631
+ }
632
+ declare function DatePickerContent({ className, calendarProps, children, align, ...props }: DatePickerContentProps): react_jsx_runtime.JSX.Element;
633
+ interface DatePickerInputProps {
634
+ className?: string;
635
+ inputProps?: Omit<React$1.ComponentProps<typeof Input>, "value" | "onChange">;
636
+ placeholder?: string;
637
+ id?: string;
638
+ }
639
+ declare function DatePickerInput({ className, inputProps, placeholder, id, }: DatePickerInputProps): react_jsx_runtime.JSX.Element;
640
+
448
641
  declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLElement> & React$1.HTMLAttributes<HTMLElement> & {
449
642
  collapsed?: boolean | undefined;
450
643
  }, "ref"> & React$1.RefAttributes<HTMLElement>>;
@@ -647,4 +840,4 @@ declare const ChevronUpIcon: React__default.FC<React__default.SVGProps<SVGSVGEle
647
840
  */
648
841
  declare const applyTheme: (theme: Theme, themeName?: string) => void;
649
842
 
650
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, type ChatInputProps, type ChatThread, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, type MessageBubbleProps, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, type SidebarHeaderProps, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, type ThreadListProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, type UserInfoProps, applyTheme, badgeVariants };
843
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, type ChatInputProps, type ChatThread, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent, CollapsibleTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, type HeaderProps, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, type MessageBubbleProps, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, type SidebarHeaderProps, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, type ThreadListProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfo, type UserInfoProps, alertVariants, applyTheme, badgeVariants, emptyMediaVariants, useFormField };