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.
- package/dist/components/ui/data-table.js +122 -0
- package/dist/components/ui/toaster.js +26 -0
- package/dist/dist/_virtual/jsx-runtime.js +6 -0
- package/dist/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
- package/dist/dist/components/ui/checkbox.js +32 -0
- package/dist/dist/components/ui/scroll-area.js +61 -0
- package/dist/dist/components/ui/table.js +87 -0
- package/dist/dist/lib/utils.js +9 -0
- package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
- package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
- package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
- package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
- package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
- package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
- package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
- package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
- package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
- package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
- package/dist/index.d.ts +23 -1
- package/dist/index.js +164 -162
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
- package/dist/styles.css +1 -1
- package/package.json +9 -7
- 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 {
|
|
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 {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
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 {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
so as
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
178
|
+
uo as InputSelector,
|
|
177
179
|
Rt as InterruptPrompt,
|
|
178
180
|
L as Label,
|
|
179
181
|
Ht as MarkdownRenderer,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
220
|
+
sr as PromptSuggestions,
|
|
219
221
|
k as RadioGroup,
|
|
220
222
|
N as RadioGroupItem,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
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
|
-
|
|
291
|
+
He as Typo,
|
|
290
292
|
u as badgeVariants,
|
|
291
293
|
x as buttonVariants,
|
|
292
294
|
Q as toggleVariants,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|
+
};
|