laif-ds 0.1.5 → 0.1.6

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.
Files changed (42) hide show
  1. package/dist/components/ui/data-table.js +122 -0
  2. package/dist/components/ui/toaster.js +26 -0
  3. package/dist/dist/_virtual/jsx-runtime.js +6 -0
  4. package/dist/dist/_virtual/jsx-runtime2.js +5 -0
  5. package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
  6. package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
  7. package/dist/dist/components/ui/checkbox.js +32 -0
  8. package/dist/dist/components/ui/scroll-area.js +61 -0
  9. package/dist/dist/components/ui/table.js +87 -0
  10. package/dist/dist/lib/utils.js +9 -0
  11. package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  12. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  13. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
  14. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  15. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  16. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  17. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
  18. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  19. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
  20. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  21. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
  22. package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
  23. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  24. package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
  25. package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  26. package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
  27. package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
  28. package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
  29. package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  30. package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  31. package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
  32. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  33. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  34. package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
  35. package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
  36. package/dist/index.d.ts +23 -1
  37. package/dist/index.js +164 -162
  38. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
  39. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
  40. package/dist/styles.css +1 -1
  41. package/package.json +9 -7
  42. package/dist/components/ui/sonner.js +0 -23
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
5
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
6
6
  import { ClassProp } from 'class-variance-authority/types';
7
7
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
8
+ import { ColumnDef } from '@tanstack/react-table';
8
9
  import { Command as Command_2 } from 'cmdk';
9
10
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
10
11
  import { ControllerProps } from 'react-hook-form';
@@ -25,12 +26,14 @@ import * as LabelPrimitive from '@radix-ui/react-label';
25
26
  import * as LucideIcons from 'lucide-react';
26
27
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
27
28
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
29
+ import { OnChangeFn } from '@tanstack/react-table';
28
30
  import { OTPInput } from 'input-otp';
29
31
  import * as PopoverPrimitive from '@radix-ui/react-popover';
30
32
  import * as ProgressPrimitive from '@radix-ui/react-progress';
31
33
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
32
34
  import * as React_2 from 'react';
33
35
  import { ReactElement } from 'react';
36
+ import { ReactNode } from 'react';
34
37
  import * as RechartsPrimitive from 'recharts';
35
38
  import { RefAttributes } from 'react';
36
39
  import { RefObject } from 'react';
@@ -41,7 +44,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
41
44
  import { Slot } from '@radix-ui/react-slot';
42
45
  import * as SwitchPrimitive from '@radix-ui/react-switch';
43
46
  import * as TabsPrimitive from '@radix-ui/react-tabs';
44
- import { ToasterProps } from 'sonner';
47
+ import { Toaster as Toaster_2 } from 'sonner';
45
48
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
46
49
  import * as TogglePrimitive from '@radix-ui/react-toggle';
47
50
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -442,6 +445,23 @@ declare type CopyButtonProps = {
442
445
  copyMessage?: string;
443
446
  };
444
447
 
448
+ export declare function DataTable<TData, TValue>({ columns, data, loading, loadingComponent, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, loadingMessage }: DataTableProps<TData, TValue>): JSX.Element;
449
+
450
+ declare interface DataTableProps<TData, TValue> {
451
+ columns: ColumnDef<TData, TValue>[];
452
+ data: TData[];
453
+ loading?: boolean;
454
+ loadingComponent?: ReactNode;
455
+ emptyComponent?: ReactNode;
456
+ className?: string;
457
+ rowSelection?: Record<string, boolean>;
458
+ onRowSelectionChange?: OnChangeFn<Record<string, boolean>>;
459
+ checkable?: boolean;
460
+ onCheckedRowsChange?: (checkedRows: TData[]) => void;
461
+ notFoundMessage?: string;
462
+ loadingMessage?: string;
463
+ }
464
+
445
465
  export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, }: DatePickerProps): JSX.Element;
446
466
 
447
467
  declare interface DatePickerProps {
@@ -1014,6 +1034,8 @@ declare const THEMES: {
1014
1034
 
1015
1035
  export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
1016
1036
 
1037
+ declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
1038
+
1017
1039
  export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
1018
1040
 
1019
1041
  export declare function ToggleGroup({ className, variant, size, children, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
package/dist/index.js CHANGED
@@ -19,31 +19,31 @@ import { Textarea as q } from "./components/ui/textarea.js";
19
19
  import { Toggle as K, toggleVariants as Q } from "./components/ui/toggle.js";
20
20
  import { Tooltip as W, TooltipContent as X, TooltipProvider as Y, TooltipTrigger as Z } from "./components/ui/tooltip.js";
21
21
  import { TypingIndicator as $ } from "./components/ui/typing-indicator.js";
22
- import { Accordion as oe, AccordionContent as re, AccordionItem as te, AccordionTrigger as ae } from "./components/ui/accordion.js";
23
- import { Alert as ie, AlertDescription as pe, AlertTitle as le } from "./components/ui/alert.js";
24
- import { AlertDialog as me, AlertDialogAction as ge, AlertDialogCancel as xe, AlertDialogContent as Ce, AlertDialogDescription as be, AlertDialogFooter as de, AlertDialogHeader as Se, AlertDialogTitle as fe, AlertDialogTrigger as se } from "./components/ui/alert-dialog.js";
25
- import { AsyncSelect as Te } from "./components/ui/async-select.js";
26
- import { Calendar as De } from "./components/ui/calendar.js";
27
- import { Card as Ae, CardContent as Pe, CardDescription as he, CardFooter as ve, CardHeader as Fe, CardTitle as Ge } from "./components/ui/card.js";
28
- import { Typo as Re } from "./components/ui/typo.js";
29
- import { Command as He, CommandDialog as ke, CommandEmpty as Ne, CommandGroup as ye, CommandInput as Be, CommandItem as Ve, CommandList as ze, CommandSeparator as Oe, CommandShortcut as Ee } from "./components/ui/command.js";
30
- import { ContextMenu as qe, ContextMenuCheckboxItem as Je, ContextMenuContent as Ke, ContextMenuGroup as Qe, ContextMenuItem as Ue, ContextMenuLabel as We, ContextMenuPortal as Xe, ContextMenuRadioGroup as Ye, ContextMenuRadioItem as Ze, ContextMenuSeparator as _e, ContextMenuShortcut as $e, ContextMenuSub as eo, ContextMenuSubContent as oo, ContextMenuSubTrigger as ro, ContextMenuTrigger as to } from "./components/ui/context-menu.js";
31
- import { DatePicker as no } from "./components/ui/date-picker.js";
32
- import { InputSelector as po } from "./components/ui/input-selector.js";
33
- import { Dialog as uo, DialogContent as mo, DialogDescription as go, DialogFooter as xo, DialogHeader as Co, DialogTitle as bo, DialogTrigger as So } from "./components/ui/dialog.js";
34
- import { Drawer as so, DrawerContent as Mo, DrawerDescription as To, DrawerFooter as co, DrawerHeader as Do, DrawerTitle as Io, DrawerTrigger as Ao } from "./components/ui/drawer.js";
35
- import { Form as ho, FormControl as vo, FormDescription as Fo, FormField as Go, FormItem as Lo, FormLabel as Ro, FormMessage as wo, useFormField as Ho } from "./components/ui/form.js";
36
- import { HoverCard as No, HoverCardContent as yo, HoverCardTrigger as Bo } from "./components/ui/hover-card.js";
37
- import { Menubar as zo, MenubarCheckboxItem as Oo, MenubarContent as Eo, MenubarGroup as jo, MenubarItem as qo, MenubarLabel as Jo, MenubarMenu as Ko, MenubarPortal as Qo, MenubarRadioGroup as Uo, MenubarRadioItem as Wo, MenubarSeparator as Xo, MenubarShortcut as Yo, MenubarSub as Zo, MenubarSubContent as _o, MenubarSubTrigger as $o, MenubarTrigger as er } from "./components/ui/menubar.js";
38
- import { MultipleSelector as rr } from "./components/ui/multiple-selector.js";
39
- import { Pagination as ar, PaginationContent as nr, PaginationEllipsis as ir, PaginationItem as pr, PaginationLink as lr, PaginationNext as ur, PaginationPrevious as mr } from "./components/ui/pagination.js";
40
- import { Popover as xr, PopoverContent as Cr, PopoverTrigger as br } from "./components/ui/popover.js";
41
- import { PromptSuggestions as Sr } from "./components/ui/prompt-suggestions.js";
42
- import { ResizableHandle as sr, ResizablePanel as Mr, ResizablePanelGroup as Tr } from "./components/ui/resizable.js";
43
- import { ScrollArea as Dr, ScrollBar as Ir } from "./components/ui/scroll-area.js";
44
- import { Select as Pr, SelectContent as hr, SelectGroup as vr, SelectItem as Fr, SelectLabel as Gr, SelectSeparator as Lr, SelectTrigger as Rr, SelectValue as wr } from "./components/ui/select.js";
45
- import { Sheet as kr, SheetContent as Nr, SheetDescription as yr, SheetFooter as Br, SheetHeader as Vr, SheetTitle as zr, SheetTrigger as Or } from "./components/ui/sheet.js";
46
- import { Toaster as jr } from "./components/ui/sonner.js";
22
+ import { Toaster as oe } from "./components/ui/toaster.js";
23
+ import { Accordion as te, AccordionContent as ae, AccordionItem as ne, AccordionTrigger as ie } from "./components/ui/accordion.js";
24
+ import { Alert as le, AlertDescription as ue, AlertTitle as me } from "./components/ui/alert.js";
25
+ import { AlertDialog as xe, AlertDialogAction as Ce, AlertDialogCancel as be, AlertDialogContent as de, AlertDialogDescription as Se, AlertDialogFooter as fe, AlertDialogHeader as se, AlertDialogTitle as Me, AlertDialogTrigger as Te } from "./components/ui/alert-dialog.js";
26
+ import { AsyncSelect as De } from "./components/ui/async-select.js";
27
+ import { Calendar as Ae } from "./components/ui/calendar.js";
28
+ import { Card as he, CardContent as ve, CardDescription as Fe, CardFooter as Ge, CardHeader as Le, CardTitle as Re } from "./components/ui/card.js";
29
+ import { Typo as He } from "./components/ui/typo.js";
30
+ import { Command as Ne, CommandDialog as ye, CommandEmpty as Be, CommandGroup as Ve, CommandInput as ze, CommandItem as Oe, CommandList as Ee, CommandSeparator as je, CommandShortcut as qe } from "./components/ui/command.js";
31
+ import { ContextMenu as Ke, ContextMenuCheckboxItem as Qe, ContextMenuContent as Ue, ContextMenuGroup as We, ContextMenuItem as Xe, ContextMenuLabel as Ye, ContextMenuPortal as Ze, ContextMenuRadioGroup as _e, ContextMenuRadioItem as $e, ContextMenuSeparator as eo, ContextMenuShortcut as oo, ContextMenuSub as ro, ContextMenuSubContent as to, ContextMenuSubTrigger as ao, ContextMenuTrigger as no } from "./components/ui/context-menu.js";
32
+ import { DatePicker as po } from "./components/ui/date-picker.js";
33
+ import { InputSelector as uo } from "./components/ui/input-selector.js";
34
+ import { Dialog as go, DialogContent as xo, DialogDescription as Co, DialogFooter as bo, DialogHeader as So, DialogTitle as fo, DialogTrigger as so } from "./components/ui/dialog.js";
35
+ import { Drawer as To, DrawerContent as co, DrawerDescription as Do, DrawerFooter as Io, DrawerHeader as Ao, DrawerTitle as Po, DrawerTrigger as ho } from "./components/ui/drawer.js";
36
+ import { Form as Fo, FormControl as Go, FormDescription as Lo, FormField as Ro, FormItem as wo, FormLabel as Ho, FormMessage as ko, useFormField as No } from "./components/ui/form.js";
37
+ import { HoverCard as Bo, HoverCardContent as Vo, HoverCardTrigger as zo } from "./components/ui/hover-card.js";
38
+ import { Menubar as Eo, MenubarCheckboxItem as jo, MenubarContent as qo, MenubarGroup as Jo, MenubarItem as Ko, MenubarLabel as Qo, MenubarMenu as Uo, MenubarPortal as Wo, MenubarRadioGroup as Xo, MenubarRadioItem as Yo, MenubarSeparator as Zo, MenubarShortcut as _o, MenubarSub as $o, MenubarSubContent as er, MenubarSubTrigger as or, MenubarTrigger as rr } from "./components/ui/menubar.js";
39
+ import { MultipleSelector as ar } from "./components/ui/multiple-selector.js";
40
+ import { Pagination as ir, PaginationContent as pr, PaginationEllipsis as lr, PaginationItem as ur, PaginationLink as mr, PaginationNext as gr, PaginationPrevious as xr } from "./components/ui/pagination.js";
41
+ import { Popover as br, PopoverContent as dr, PopoverTrigger as Sr } from "./components/ui/popover.js";
42
+ import { PromptSuggestions as sr } from "./components/ui/prompt-suggestions.js";
43
+ import { ResizableHandle as Tr, ResizablePanel as cr, ResizablePanelGroup as Dr } from "./components/ui/resizable.js";
44
+ import { ScrollArea as Ar, ScrollBar as Pr } from "./components/ui/scroll-area.js";
45
+ import { Select as vr, SelectContent as Fr, SelectGroup as Gr, SelectItem as Lr, SelectLabel as Rr, SelectSeparator as wr, SelectTrigger as Hr, SelectValue as kr } from "./components/ui/select.js";
46
+ import { Sheet as yr, SheetContent as Br, SheetDescription as Vr, SheetFooter as zr, SheetHeader as Or, SheetTitle as Er, SheetTrigger as jr } from "./components/ui/sheet.js";
47
47
  import { Table as Jr, TableBody as Kr, TableCaption as Qr, TableCell as Ur, TableFooter as Wr, TableHead as Xr, TableHeader as Yr, TableRow as Zr } from "./components/ui/table.js";
48
48
  import { Tabs as $r, TabsContent as et, TabsList as ot, TabsTrigger as rt } from "./components/ui/tabs.js";
49
49
  import { ToggleGroup as at, ToggleGroupItem as nt } from "./components/ui/toggle-group.js";
@@ -59,44 +59,45 @@ import { MessageInput as Nt } from "./components/ui/message-input.js";
59
59
  import { MessageList as Bt } from "./components/ui/message-list.js";
60
60
  import { NavigationMenu as zt, NavigationMenuContent as Ot, NavigationMenuIndicator as Et, NavigationMenuItem as jt, NavigationMenuLink as qt, NavigationMenuList as Jt, NavigationMenuTrigger as Kt, NavigationMenuViewport as Qt } from "./components/ui/navigation-menu.js";
61
61
  import { Sidebar as Wt, SidebarContent as Xt, SidebarFooter as Yt, SidebarGroup as Zt, SidebarGroupAction as _t, SidebarGroupContent as $t, SidebarGroupLabel as ea, SidebarHeader as oa, SidebarInput as ra, SidebarInset as ta, SidebarMenu as aa, SidebarMenuAction as na, SidebarMenuBadge as ia, SidebarMenuButton as pa, SidebarMenuItem as la, SidebarMenuSkeleton as ua, SidebarMenuSub as ma, SidebarMenuSubButton as ga, SidebarMenuSubItem as xa, SidebarProvider as Ca, SidebarRail as ba, SidebarSeparator as da, SidebarTrigger as Sa, useSidebar as fa } from "./components/ui/sidebar.js";
62
- import { useAudioRecording as Ma } from "./hooks/use-audio-recording.js";
63
- import { useAutoScroll as ca } from "./hooks/use-auto-scroll.js";
64
- import { useAutosizeTextArea as Ia } from "./hooks/use-autosize-textarea.js";
65
- import { useCopyToClipboard as Pa } from "./hooks/use-copy-to-clipboard.js";
66
- import { useDebounce as va } from "./hooks/use-debounce.js";
67
- import { useIsMobile as Ga } from "./hooks/use-mobile.js";
62
+ import { DataTable as Ma } from "./components/ui/data-table.js";
63
+ import { useAudioRecording as ca } from "./hooks/use-audio-recording.js";
64
+ import { useAutoScroll as Ia } from "./hooks/use-auto-scroll.js";
65
+ import { useAutosizeTextArea as Pa } from "./hooks/use-autosize-textarea.js";
66
+ import { useCopyToClipboard as va } from "./hooks/use-copy-to-clipboard.js";
67
+ import { useDebounce as Ga } from "./hooks/use-debounce.js";
68
+ import { useIsMobile as Ra } from "./hooks/use-mobile.js";
68
69
  export {
69
- oe as Accordion,
70
- re as AccordionContent,
71
- te as AccordionItem,
72
- ae as AccordionTrigger,
73
- ie as Alert,
74
- pe as AlertDescription,
75
- me as AlertDialog,
76
- ge as AlertDialogAction,
77
- xe as AlertDialogCancel,
78
- Ce as AlertDialogContent,
79
- be as AlertDialogDescription,
80
- de as AlertDialogFooter,
81
- Se as AlertDialogHeader,
82
- fe as AlertDialogTitle,
83
- se as AlertDialogTrigger,
84
- le as AlertTitle,
70
+ te as Accordion,
71
+ ae as AccordionContent,
72
+ ne as AccordionItem,
73
+ ie as AccordionTrigger,
74
+ le as Alert,
75
+ ue as AlertDescription,
76
+ xe as AlertDialog,
77
+ Ce as AlertDialogAction,
78
+ be as AlertDialogCancel,
79
+ de as AlertDialogContent,
80
+ Se as AlertDialogDescription,
81
+ fe as AlertDialogFooter,
82
+ se as AlertDialogHeader,
83
+ Me as AlertDialogTitle,
84
+ Te as AlertDialogTrigger,
85
+ me as AlertTitle,
85
86
  r as AspectRatio,
86
- Te as AsyncSelect,
87
+ De as AsyncSelect,
87
88
  pt as AudioVisualizer,
88
89
  a as Avatar,
89
90
  n as AvatarFallback,
90
91
  i as AvatarImage,
91
92
  l as Badge,
92
93
  g as Button,
93
- De as Calendar,
94
- Ae as Card,
95
- Pe as CardContent,
96
- he as CardDescription,
97
- ve as CardFooter,
98
- Fe as CardHeader,
99
- Ge as CardTitle,
94
+ Ae as Calendar,
95
+ he as Card,
96
+ ve as CardContent,
97
+ Fe as CardDescription,
98
+ Ge as CardFooter,
99
+ Le as CardHeader,
100
+ Re as CardTitle,
100
101
  ut as Carousel,
101
102
  mt as CarouselContent,
102
103
  gt as CarouselItem,
@@ -117,85 +118,86 @@ export {
117
118
  S as Collapsible,
118
119
  f as CollapsibleContent,
119
120
  s as CollapsibleTrigger,
120
- He as Command,
121
- ke as CommandDialog,
122
- Ne as CommandEmpty,
123
- ye as CommandGroup,
124
- Be as CommandInput,
125
- Ve as CommandItem,
126
- ze as CommandList,
127
- Oe as CommandSeparator,
128
- Ee as CommandShortcut,
129
- qe as ContextMenu,
130
- Je as ContextMenuCheckboxItem,
131
- Ke as ContextMenuContent,
132
- Qe as ContextMenuGroup,
133
- Ue as ContextMenuItem,
134
- We as ContextMenuLabel,
135
- Xe as ContextMenuPortal,
136
- Ye as ContextMenuRadioGroup,
137
- Ze as ContextMenuRadioItem,
138
- _e as ContextMenuSeparator,
139
- $e as ContextMenuShortcut,
140
- eo as ContextMenuSub,
141
- oo as ContextMenuSubContent,
142
- ro as ContextMenuSubTrigger,
143
- to as ContextMenuTrigger,
121
+ Ne as Command,
122
+ ye as CommandDialog,
123
+ Be as CommandEmpty,
124
+ Ve as CommandGroup,
125
+ ze as CommandInput,
126
+ Oe as CommandItem,
127
+ Ee as CommandList,
128
+ je as CommandSeparator,
129
+ qe as CommandShortcut,
130
+ Ke as ContextMenu,
131
+ Qe as ContextMenuCheckboxItem,
132
+ Ue as ContextMenuContent,
133
+ We as ContextMenuGroup,
134
+ Xe as ContextMenuItem,
135
+ Ye as ContextMenuLabel,
136
+ Ze as ContextMenuPortal,
137
+ _e as ContextMenuRadioGroup,
138
+ $e as ContextMenuRadioItem,
139
+ eo as ContextMenuSeparator,
140
+ oo as ContextMenuShortcut,
141
+ ro as ContextMenuSub,
142
+ to as ContextMenuSubContent,
143
+ ao as ContextMenuSubTrigger,
144
+ no as ContextMenuTrigger,
144
145
  T as CopyButton,
145
- no as DatePicker,
146
- uo as Dialog,
147
- mo as DialogContent,
148
- go as DialogDescription,
149
- xo as DialogFooter,
150
- Co as DialogHeader,
151
- bo as DialogTitle,
152
- So as DialogTrigger,
153
- so as Drawer,
154
- Mo as DrawerContent,
155
- To as DrawerDescription,
156
- co as DrawerFooter,
157
- Do as DrawerHeader,
158
- Io as DrawerTitle,
159
- Ao as DrawerTrigger,
146
+ Ma as DataTable,
147
+ po as DatePicker,
148
+ go as Dialog,
149
+ xo as DialogContent,
150
+ Co as DialogDescription,
151
+ bo as DialogFooter,
152
+ So as DialogHeader,
153
+ fo as DialogTitle,
154
+ so as DialogTrigger,
155
+ To as Drawer,
156
+ co as DrawerContent,
157
+ Do as DrawerDescription,
158
+ Io as DrawerFooter,
159
+ Ao as DrawerHeader,
160
+ Po as DrawerTitle,
161
+ ho as DrawerTrigger,
160
162
  Gt as FilePreview,
161
- ho as Form,
162
- vo as FormControl,
163
- Fo as FormDescription,
164
- Go as FormField,
165
- Lo as FormItem,
166
- Ro as FormLabel,
167
- wo as FormMessage,
168
- No as HoverCard,
169
- yo as HoverCardContent,
170
- Bo as HoverCardTrigger,
163
+ Fo as Form,
164
+ Go as FormControl,
165
+ Lo as FormDescription,
166
+ Ro as FormField,
167
+ wo as FormItem,
168
+ Ho as FormLabel,
169
+ ko as FormMessage,
170
+ Bo as HoverCard,
171
+ Vo as HoverCardContent,
172
+ zo as HoverCardTrigger,
171
173
  D as Icon,
172
174
  A as Input,
173
175
  h as InputOTP,
174
176
  v as InputOTPGroup,
175
177
  F as InputOTPSlot,
176
- po as InputSelector,
178
+ uo as InputSelector,
177
179
  Rt as InterruptPrompt,
178
180
  L as Label,
179
181
  Ht as MarkdownRenderer,
180
- zo as Menubar,
181
- Oo as MenubarCheckboxItem,
182
- Eo as MenubarContent,
183
- jo as MenubarGroup,
184
- qo as MenubarItem,
185
- Jo as MenubarLabel,
186
- Ko as MenubarMenu,
187
- Qo as MenubarPortal,
188
- Uo as MenubarRadioGroup,
189
- Wo as MenubarRadioItem,
190
- Xo as MenubarSeparator,
191
- Yo as MenubarShortcut,
192
- Zo as MenubarSub,
193
- _o as MenubarSubContent,
194
- $o as MenubarSubTrigger,
195
- er as MenubarTrigger,
182
+ Eo as Menubar,
183
+ jo as MenubarCheckboxItem,
184
+ qo as MenubarContent,
185
+ Jo as MenubarGroup,
186
+ Ko as MenubarItem,
187
+ Qo as MenubarLabel,
188
+ Uo as MenubarMenu,
189
+ Wo as MenubarPortal,
190
+ Xo as MenubarRadioGroup,
191
+ Yo as MenubarRadioItem,
192
+ Zo as MenubarSeparator,
193
+ _o as MenubarShortcut,
194
+ $o as MenubarSub,
195
+ er as MenubarSubContent,
196
+ or as MenubarSubTrigger,
197
+ rr as MenubarTrigger,
196
198
  Nt as MessageInput,
197
199
  Bt as MessageList,
198
- rr as MultipleSelector,
200
+ ar as MultipleSelector,
199
201
  zt as NavigationMenu,
200
202
  Ot as NavigationMenuContent,
201
203
  Et as NavigationMenuIndicator,
@@ -204,41 +206,41 @@ export {
204
206
  Jt as NavigationMenuList,
205
207
  Kt as NavigationMenuTrigger,
206
208
  Qt as NavigationMenuViewport,
207
- ar as Pagination,
208
- nr as PaginationContent,
209
- ir as PaginationEllipsis,
210
- pr as PaginationItem,
211
- lr as PaginationLink,
212
- ur as PaginationNext,
213
- mr as PaginationPrevious,
214
- xr as Popover,
215
- Cr as PopoverContent,
216
- br as PopoverTrigger,
209
+ ir as Pagination,
210
+ pr as PaginationContent,
211
+ lr as PaginationEllipsis,
212
+ ur as PaginationItem,
213
+ mr as PaginationLink,
214
+ gr as PaginationNext,
215
+ xr as PaginationPrevious,
216
+ br as Popover,
217
+ dr as PopoverContent,
218
+ Sr as PopoverTrigger,
217
219
  w as Progress,
218
- Sr as PromptSuggestions,
220
+ sr as PromptSuggestions,
219
221
  k as RadioGroup,
220
222
  N as RadioGroupItem,
221
- sr as ResizableHandle,
222
- Mr as ResizablePanel,
223
- Tr as ResizablePanelGroup,
224
- Dr as ScrollArea,
225
- Ir as ScrollBar,
226
- Pr as Select,
227
- hr as SelectContent,
228
- vr as SelectGroup,
229
- Fr as SelectItem,
230
- Gr as SelectLabel,
231
- Lr as SelectSeparator,
232
- Rr as SelectTrigger,
233
- wr as SelectValue,
223
+ Tr as ResizableHandle,
224
+ cr as ResizablePanel,
225
+ Dr as ResizablePanelGroup,
226
+ Ar as ScrollArea,
227
+ Pr as ScrollBar,
228
+ vr as Select,
229
+ Fr as SelectContent,
230
+ Gr as SelectGroup,
231
+ Lr as SelectItem,
232
+ Rr as SelectLabel,
233
+ wr as SelectSeparator,
234
+ Hr as SelectTrigger,
235
+ kr as SelectValue,
234
236
  B as Separator,
235
- kr as Sheet,
236
- Nr as SheetContent,
237
- yr as SheetDescription,
238
- Br as SheetFooter,
239
- Vr as SheetHeader,
240
- zr as SheetTitle,
241
- Or as SheetTrigger,
237
+ yr as Sheet,
238
+ Br as SheetContent,
239
+ Vr as SheetDescription,
240
+ zr as SheetFooter,
241
+ Or as SheetHeader,
242
+ Er as SheetTitle,
243
+ jr as SheetTrigger,
242
244
  Wt as Sidebar,
243
245
  Xt as SidebarContent,
244
246
  Yt as SidebarFooter,
@@ -277,7 +279,7 @@ export {
277
279
  ot as TabsList,
278
280
  rt as TabsTrigger,
279
281
  q as Textarea,
280
- jr as Toaster,
282
+ oe as Toaster,
281
283
  K as Toggle,
282
284
  at as ToggleGroup,
283
285
  nt as ToggleGroupItem,
@@ -286,16 +288,16 @@ export {
286
288
  Y as TooltipProvider,
287
289
  Z as TooltipTrigger,
288
290
  $ as TypingIndicator,
289
- Re as Typo,
291
+ He as Typo,
290
292
  u as badgeVariants,
291
293
  x as buttonVariants,
292
294
  Q as toggleVariants,
293
- Ma as useAudioRecording,
294
- ca as useAutoScroll,
295
- Ia as useAutosizeTextArea,
296
- Pa as useCopyToClipboard,
297
- va as useDebounce,
298
- Ho as useFormField,
299
- Ga as useIsMobile,
295
+ ca as useAudioRecording,
296
+ Ia as useAutoScroll,
297
+ Pa as useAutosizeTextArea,
298
+ va as useCopyToClipboard,
299
+ Ga as useDebounce,
300
+ No as useFormField,
301
+ Ra as useIsMobile,
300
302
  fa as useSidebar
301
303
  };
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import * as o from "react";
3
+ import { createTable as u } from "../../../table-core/build/lib/index.js";
4
+ import { ColumnFaceting as C, ColumnFiltering as S, ColumnGrouping as w, ColumnOrdering as b, ColumnPinning as y, ColumnSizing as F, ColumnVisibility as h, GlobalFaceting as x, GlobalFiltering as O, Headers as M, RowExpanding as P, RowPagination as v, RowPinning as E, RowSelection as G, RowSorting as $, _getVisibleLeafColumns as A, aggregationFns as V, buildHeaderGroups as j, createCell as k, createColumn as z, createRow as H, defaultColumnSizing as N, expandRows as T, filterFns as U, flattenBy as _, functionalUpdate as B, getCoreRowModel as L, getFilteredRowModel as q, getMemoOptions as D, getPaginationRowModel as I, getSortedRowModel as J, isFunction as K, isNumberArray as Q, isRowSelected as W, isSubRowSelected as X, makeStateUpdater as Y, memo as Z, orderColumns as ee, passiveEventSupported as te, reSplitAlphaNumeric as ne, selectRowsFn as oe, shouldAutoRemoveFilter as re, sortingFns as ie } from "../../../table-core/build/lib/index.js";
5
+ /**
6
+ * react-table
7
+ *
8
+ * Copyright (c) TanStack
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE.md file in the root directory of this source tree.
12
+ *
13
+ * @license MIT
14
+ */
15
+ function d(e, t) {
16
+ return e ? s(e) ? /* @__PURE__ */ o.createElement(e, t) : e : null;
17
+ }
18
+ function s(e) {
19
+ return c(e) || typeof e == "function" || g(e);
20
+ }
21
+ function c(e) {
22
+ return typeof e == "function" && (() => {
23
+ const t = Object.getPrototypeOf(e);
24
+ return t.prototype && t.prototype.isReactComponent;
25
+ })();
26
+ }
27
+ function g(e) {
28
+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
29
+ }
30
+ function m(e) {
31
+ const t = {
32
+ state: {},
33
+ // Dummy state
34
+ onStateChange: () => {
35
+ },
36
+ // noop
37
+ renderFallbackValue: null,
38
+ ...e
39
+ }, [n] = o.useState(() => ({
40
+ current: u(t)
41
+ })), [i, a] = o.useState(() => n.current.initialState);
42
+ return n.current.setOptions((l) => ({
43
+ ...l,
44
+ ...e,
45
+ state: {
46
+ ...i,
47
+ ...e.state
48
+ },
49
+ // Similarly, we'll maintain both our internal state and any user-provided
50
+ // state.
51
+ onStateChange: (r) => {
52
+ a(r), e.onStateChange == null || e.onStateChange(r);
53
+ }
54
+ })), n.current;
55
+ }
56
+ export {
57
+ C as ColumnFaceting,
58
+ S as ColumnFiltering,
59
+ w as ColumnGrouping,
60
+ b as ColumnOrdering,
61
+ y as ColumnPinning,
62
+ F as ColumnSizing,
63
+ h as ColumnVisibility,
64
+ x as GlobalFaceting,
65
+ O as GlobalFiltering,
66
+ M as Headers,
67
+ P as RowExpanding,
68
+ v as RowPagination,
69
+ E as RowPinning,
70
+ G as RowSelection,
71
+ $ as RowSorting,
72
+ A as _getVisibleLeafColumns,
73
+ V as aggregationFns,
74
+ j as buildHeaderGroups,
75
+ k as createCell,
76
+ z as createColumn,
77
+ H as createRow,
78
+ u as createTable,
79
+ N as defaultColumnSizing,
80
+ T as expandRows,
81
+ U as filterFns,
82
+ _ as flattenBy,
83
+ d as flexRender,
84
+ B as functionalUpdate,
85
+ L as getCoreRowModel,
86
+ q as getFilteredRowModel,
87
+ D as getMemoOptions,
88
+ I as getPaginationRowModel,
89
+ J as getSortedRowModel,
90
+ K as isFunction,
91
+ Q as isNumberArray,
92
+ W as isRowSelected,
93
+ X as isSubRowSelected,
94
+ Y as makeStateUpdater,
95
+ Z as memo,
96
+ ee as orderColumns,
97
+ te as passiveEventSupported,
98
+ ne as reSplitAlphaNumeric,
99
+ oe as selectRowsFn,
100
+ re as shouldAutoRemoveFilter,
101
+ ie as sortingFns,
102
+ m as useReactTable
103
+ };