laif-ds 0.2.13 → 0.2.15
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/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/components/ui/app-select.js +61 -57
- package/dist/components/ui/carousel.js +4 -4
- package/dist/components/ui/chart.js +4 -4
- package/dist/components/ui/file-previewer.js +170 -0
- package/dist/components/ui/navigation-menu.js +7 -7
- package/dist/components/ui/textarea.js +24 -15
- package/dist/index.d.ts +30 -2
- package/dist/index.js +128 -124
- package/dist/lib/file-preview.js +33 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import { Toaster as Toaster_2 } from 'sonner';
|
|
|
56
56
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
57
57
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
58
58
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
59
|
+
import { UseAskResult } from 'use-ask';
|
|
59
60
|
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
60
61
|
import { VariantProps } from 'class-variance-authority';
|
|
61
62
|
|
|
@@ -814,7 +815,7 @@ declare interface DatePickerProps {
|
|
|
814
815
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
815
816
|
|
|
816
817
|
export declare function DialogContent({ className, children, size, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
817
|
-
size?: "sm" | "default" | "lg";
|
|
818
|
+
size?: "sm" | "default" | "lg" | "xl";
|
|
818
819
|
}): JSX.Element;
|
|
819
820
|
|
|
820
821
|
export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Description>): JSX.Element;
|
|
@@ -878,6 +879,8 @@ export declare enum ELogicalFilterOperator {
|
|
|
878
879
|
|
|
879
880
|
export declare const FilePreview: default_2.ForwardRefExoticComponent<FilePreviewProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
880
881
|
|
|
882
|
+
export declare const FilePreviewer: () => JSX.Element;
|
|
883
|
+
|
|
881
884
|
declare interface FilePreviewProps {
|
|
882
885
|
file: IFilePreviewCallbackReturn;
|
|
883
886
|
onRemove?: (url: string) => void;
|
|
@@ -1139,6 +1142,14 @@ export declare interface IServerOptionsProps {
|
|
|
1139
1142
|
|
|
1140
1143
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1141
1144
|
|
|
1145
|
+
declare type LoaderReturn = string | File | {
|
|
1146
|
+
url?: string;
|
|
1147
|
+
file?: File;
|
|
1148
|
+
filename?: string;
|
|
1149
|
+
mimeType?: string;
|
|
1150
|
+
title?: React.ReactNode;
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1142
1153
|
export declare function MarkdownRenderer({ children }: MarkdownRendererProps): JSX.Element;
|
|
1143
1154
|
|
|
1144
1155
|
declare interface MarkdownRendererProps {
|
|
@@ -1429,8 +1440,21 @@ export declare function PopoverContent({ className, align, sideOffset, container
|
|
|
1429
1440
|
|
|
1430
1441
|
export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
|
|
1431
1442
|
|
|
1443
|
+
declare type PreviewArg = string | File | PreviewOptions | (() => Promise<LoaderReturn>) | Promise<LoaderReturn>;
|
|
1444
|
+
|
|
1432
1445
|
export declare const previewFile: (url: string, filename?: string) => void;
|
|
1433
1446
|
|
|
1447
|
+
export declare function previewFileModal(arg: PreviewArg): Promise<void>;
|
|
1448
|
+
|
|
1449
|
+
declare interface PreviewOptions {
|
|
1450
|
+
url?: string;
|
|
1451
|
+
file?: File;
|
|
1452
|
+
filename?: string;
|
|
1453
|
+
mimeType?: string;
|
|
1454
|
+
title?: React.ReactNode;
|
|
1455
|
+
loader?: (() => Promise<LoaderReturn>) | Promise<LoaderReturn>;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1434
1458
|
export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element;
|
|
1435
1459
|
|
|
1436
1460
|
export declare function PromptSuggestions({ label, append, suggestions, }: PromptSuggestionsProps): JSX.Element;
|
|
@@ -1522,6 +1546,8 @@ export declare function ResizablePanel({ ...props }: React_2.ComponentProps<type
|
|
|
1522
1546
|
|
|
1523
1547
|
export declare function ResizablePanelGroup({ className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element;
|
|
1524
1548
|
|
|
1549
|
+
export declare function safePreviewFileModal(arg: PreviewArg): Promise<UseAskResult<void, unknown>>;
|
|
1550
|
+
|
|
1525
1551
|
export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
|
|
1526
1552
|
|
|
1527
1553
|
export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
|
|
@@ -1727,7 +1753,9 @@ export declare function TabsList({ className, ...props }: React_2.ComponentProps
|
|
|
1727
1753
|
|
|
1728
1754
|
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
|
|
1729
1755
|
|
|
1730
|
-
export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">
|
|
1756
|
+
export declare function Textarea({ className, label, ...props }: React_2.ComponentProps<"textarea"> & {
|
|
1757
|
+
label?: React_2.ReactNode;
|
|
1758
|
+
}): JSX.Element;
|
|
1731
1759
|
|
|
1732
1760
|
declare interface TextPart {
|
|
1733
1761
|
type: "text";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { default as o } from "./components/ui/gantt/components/Gantt/Gantt.js";
|
|
3
3
|
import { AspectRatio as a } from "./components/ui/aspect-ratio.js";
|
|
4
|
-
import { Avatar as i, AvatarFallback as p, AvatarImage as
|
|
4
|
+
import { Avatar as i, AvatarFallback as p, AvatarImage as l } from "./components/ui/avatar.js";
|
|
5
5
|
import { Badge as u, badgeVariants as x } from "./components/ui/badge.js";
|
|
6
6
|
import { Button as g, buttonVariants as C } from "./components/ui/button.js";
|
|
7
7
|
import { Checkbox as f } from "./components/ui/checkbox.js";
|
|
8
8
|
import { Collapsible as S, CollapsibleContent as M, CollapsibleTrigger as c } from "./components/ui/collapsible.js";
|
|
9
9
|
import { CopyButton as D } from "./components/ui/copy-button.js";
|
|
10
10
|
import { Icon as I } from "./components/ui/icon.js";
|
|
11
|
-
import { Input as
|
|
11
|
+
import { Input as h } from "./components/ui/input.js";
|
|
12
12
|
import { InputOTP as F, InputOTPGroup as w, InputOTPSlot as G } from "./components/ui/input-otp.js";
|
|
13
13
|
import { Label as B } from "./components/ui/label.js";
|
|
14
14
|
import { Progress as H } from "./components/ui/progress.js";
|
|
@@ -21,79 +21,80 @@ import { Toggle as K, toggleVariants as Q } from "./components/ui/toggle.js";
|
|
|
21
21
|
import { Tooltip as Y, TooltipContent as Z, TooltipProvider as _, TooltipTrigger as $ } from "./components/ui/tooltip.js";
|
|
22
22
|
import { TypingIndicator as re } from "./components/ui/typing-indicator.js";
|
|
23
23
|
import { Toaster as te } from "./components/ui/toaster.js";
|
|
24
|
-
import { Accordion as ne, AccordionContent as ie, AccordionItem as pe, AccordionTrigger as
|
|
24
|
+
import { Accordion as ne, AccordionContent as ie, AccordionItem as pe, AccordionTrigger as le } from "./components/ui/accordion.js";
|
|
25
25
|
import { Alert as ue, AlertDescription as xe, AlertTitle as de } from "./components/ui/alert.js";
|
|
26
26
|
import { AlertDialog as Ce, AlertDialogAction as be, AlertDialogCancel as fe, AlertDialogContent as se, AlertDialogDescription as Se, AlertDialogFooter as Me, AlertDialogHeader as ce, AlertDialogTitle as Te, AlertDialogTrigger as De } from "./components/ui/alert-dialog.js";
|
|
27
27
|
import { AsyncSelect as Ie } from "./components/ui/async-select.js";
|
|
28
|
-
import { Calendar as
|
|
28
|
+
import { Calendar as he } from "./components/ui/calendar.js";
|
|
29
29
|
import { Card as Fe, CardContent as we, CardDescription as Ge, CardFooter as Le, CardHeader as Be, CardTitle as Re } from "./components/ui/card.js";
|
|
30
30
|
import { Typo as ke } from "./components/ui/typo.js";
|
|
31
31
|
import { Command as Ne, CommandDialog as ze, CommandEmpty as Ee, CommandGroup as Ve, CommandInput as Oe, CommandItem as Ue, CommandList as We, CommandSeparator as je, CommandShortcut as qe } from "./components/ui/command.js";
|
|
32
32
|
import { ContextMenu as Ke, ContextMenuCheckboxItem as Qe, ContextMenuContent as Xe, ContextMenuGroup as Ye, ContextMenuItem as Ze, ContextMenuLabel as _e, ContextMenuPortal as $e, ContextMenuRadioGroup as er, ContextMenuRadioItem as rr, ContextMenuSeparator as or, ContextMenuShortcut as tr, ContextMenuSub as ar, ContextMenuSubContent as nr, ContextMenuSubTrigger as ir, ContextMenuTrigger as pr } from "./components/ui/context-menu.js";
|
|
33
|
-
import { DatePicker as
|
|
33
|
+
import { DatePicker as mr } from "./components/ui/date-picker.js";
|
|
34
34
|
import { InputSelector as xr } from "./components/ui/input-selector.js";
|
|
35
35
|
import { Dialog as gr, DialogContent as Cr, DialogDescription as br, DialogFooter as fr, DialogHeader as sr, DialogTitle as Sr, DialogTrigger as Mr } from "./components/ui/dialog.js";
|
|
36
|
-
import { Drawer as Tr, DrawerContent as Dr, DrawerDescription as Ar, DrawerFooter as Ir, DrawerHeader as
|
|
36
|
+
import { Drawer as Tr, DrawerContent as Dr, DrawerDescription as Ar, DrawerFooter as Ir, DrawerHeader as Pr, DrawerTitle as hr, DrawerTrigger as vr } from "./components/ui/drawer.js";
|
|
37
37
|
import { Form as wr, FormControl as Gr, FormDescription as Lr, FormField as Br, FormItem as Rr, FormLabel as Hr, FormMessage as kr, useFormField as yr } from "./components/ui/form.js";
|
|
38
38
|
import { HoverCard as zr, HoverCardContent as Er, HoverCardTrigger as Vr } from "./components/ui/hover-card.js";
|
|
39
39
|
import { Menubar as Ur, MenubarCheckboxItem as Wr, MenubarContent as jr, MenubarGroup as qr, MenubarItem as Jr, MenubarLabel as Kr, MenubarMenu as Qr, MenubarPortal as Xr, MenubarRadioGroup as Yr, MenubarRadioItem as Zr, MenubarSeparator as _r, MenubarShortcut as $r, MenubarSub as eo, MenubarSubContent as ro, MenubarSubTrigger as oo, MenubarTrigger as to } from "./components/ui/menubar.js";
|
|
40
40
|
import { MultipleSelector as no } from "./components/ui/multiple-selector.js";
|
|
41
|
-
import { Pagination as po, PaginationContent as
|
|
41
|
+
import { Pagination as po, PaginationContent as lo, PaginationEllipsis as mo, PaginationItem as uo, PaginationLink as xo, PaginationNext as go, PaginationPrevious as Co } from "./components/ui/pagination.js";
|
|
42
42
|
import { Popover as fo, PopoverContent as so, PopoverTrigger as So } from "./components/ui/popover.js";
|
|
43
43
|
import { PromptSuggestions as co } from "./components/ui/prompt-suggestions.js";
|
|
44
44
|
import { ResizableHandle as Do, ResizablePanel as Ao, ResizablePanelGroup as Io } from "./components/ui/resizable.js";
|
|
45
|
-
import { ScrollArea as
|
|
45
|
+
import { ScrollArea as ho, ScrollBar as vo } from "./components/ui/scroll-area.js";
|
|
46
46
|
import { Select as wo, SelectContent as Go, SelectGroup as Lo, SelectItem as Bo, SelectLabel as Ro, SelectSeparator as Ho, SelectTrigger as ko, SelectValue as yo } from "./components/ui/select.js";
|
|
47
47
|
import { Sheet as zo, SheetContent as Eo, SheetDescription as Vo, SheetFooter as Oo, SheetHeader as Uo, SheetTitle as Wo, SheetTrigger as jo } from "./components/ui/sheet.js";
|
|
48
48
|
import { Table as Jo, TableBody as Ko, TableCaption as Qo, TableCell as Xo, TableFooter as Yo, TableHead as Zo, TableHeader as _o, TableRow as $o } from "./components/ui/table.js";
|
|
49
49
|
import { Tabs as rt, TabsContent as ot, TabsList as tt, TabsTrigger as at } from "./components/ui/tabs.js";
|
|
50
50
|
import { ToggleGroup as it, ToggleGroupItem as pt } from "./components/ui/toggle-group.js";
|
|
51
|
-
import { Breadcrumb as
|
|
51
|
+
import { Breadcrumb as mt, BreadcrumbEllipsis as ut, BreadcrumbItem as xt, BreadcrumbLink as dt, BreadcrumbList as gt, BreadcrumbPage as Ct, BreadcrumbSeparator as bt } from "./components/ui/breadcrumb.js";
|
|
52
52
|
import { Slider as st } from "./components/ui/slider.js";
|
|
53
53
|
import { CircularProgress as Mt } from "./components/ui/charts/circular.js";
|
|
54
54
|
import { ThemeSwitcher as Tt } from "./components/ui/theme-switcher.js";
|
|
55
|
-
import { DropdownMenu as At, DropdownMenuContent as It, DropdownMenuItem as
|
|
55
|
+
import { DropdownMenu as At, DropdownMenuContent as It, DropdownMenuItem as Pt, DropdownMenuLabel as ht, DropdownMenuSeparator as vt, DropdownMenuTrigger as Ft } from "./components/ui/dropdown-menu.js";
|
|
56
56
|
import { FileUploader as Gt } from "./components/ui/file-uploader.js";
|
|
57
57
|
import { FilePreview as Bt } from "./components/ui/file-preview.js";
|
|
58
58
|
import { AudioVisualizer as Ht } from "./components/ui/audio-visualizer.js";
|
|
59
59
|
import { Carousel as yt, CarouselContent as Nt, CarouselItem as zt, CarouselNext as Et, CarouselPrevious as Vt } from "./components/ui/carousel.js";
|
|
60
60
|
import { ChartContainer as Ut, ChartLegend as Wt, ChartLegendContent as jt, ChartStyle as qt, ChartTooltip as Jt, ChartTooltipContent as Kt } from "./components/ui/chart.js";
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import { DataTable as
|
|
70
|
-
import { ELogicalFilterOperator as
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { DragStepSizes as
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
61
|
+
import { useEditorModal as Xt } from "./components/editor/editor-hooks/use-modal.js";
|
|
62
|
+
import { AppEditor as Zt } from "./components/ui/app-editor.js";
|
|
63
|
+
import { AppMultipleSelectDropdown as $t } from "./components/ui/app-multiple-select-dropdown.js";
|
|
64
|
+
import { AppSelect as ra } from "./components/ui/app-select.js";
|
|
65
|
+
import { AppSidebar as ta } from "./components/ui/app-sidebar.js";
|
|
66
|
+
import { Chat as na, ChatContainer as ia, ChatForm as pa, ChatMessages as la } from "./components/ui/chat.js";
|
|
67
|
+
import { ChatMessage as ua } from "./components/ui/chat-message.js";
|
|
68
|
+
import { Confirmer as da, confirm as ga } from "./components/ui/confirmer.js";
|
|
69
|
+
import { DataTable as ba } from "./components/ui/data-table.js";
|
|
70
|
+
import { ELogicalFilterOperator as sa } from "./components/ui/data-table.service.js";
|
|
71
|
+
import { FilePreviewer as Ma, previewFileModal as ca, safePreviewFileModal as Ta } from "./components/ui/file-previewer.js";
|
|
72
|
+
import { DataRepeatTypes as Aa } from "./components/ui/gantt/enums/DataRepeatTimes.js";
|
|
73
|
+
import { DragStepSizes as Pa } from "./components/ui/gantt/enums/DragStepSizes.js";
|
|
74
|
+
import { GanttConsts as va } from "./components/ui/gantt/constants/GanttConsts.js";
|
|
75
|
+
import { GanttDimensions as wa } from "./components/ui/gantt/enums/GanttDimensions.js";
|
|
76
|
+
import { InterruptPrompt as La } from "./components/ui/interrupt-prompt.js";
|
|
77
|
+
import { MarkdownRenderer as Ra } from "./components/ui/markdown-renderer.js";
|
|
78
|
+
import { MessageInput as ka } from "./components/ui/message-input.js";
|
|
79
|
+
import { MessageList as Na } from "./components/ui/message-list.js";
|
|
80
|
+
import { NavigationMenu as Ea, NavigationMenuContent as Va, NavigationMenuIndicator as Oa, NavigationMenuItem as Ua, NavigationMenuLink as Wa, NavigationMenuList as ja, NavigationMenuTrigger as qa, NavigationMenuViewport as Ja } from "./components/ui/navigation-menu.js";
|
|
81
|
+
import { Sidebar as Qa, SidebarContent as Xa, SidebarFooter as Ya, SidebarGroup as Za, SidebarGroupAction as _a, SidebarGroupContent as $a, SidebarGroupLabel as en, SidebarHeader as rn, SidebarInput as on, SidebarInset as tn, SidebarMenu as an, SidebarMenuAction as nn, SidebarMenuBadge as pn, SidebarMenuButton as ln, SidebarMenuItem as mn, SidebarMenuSkeleton as un, SidebarMenuSub as xn, SidebarMenuSubButton as dn, SidebarMenuSubItem as gn, SidebarProvider as Cn, SidebarRail as bn, SidebarSeparator as fn, SidebarTrigger as sn, useSidebar as Sn } from "./components/ui/sidebar.js";
|
|
82
|
+
import { DataCrossTable as cn } from "./components/ui/tables/data-cross-table/data-cross-table.js";
|
|
83
|
+
import { DataCrossTableButtonsGroup as Dn } from "./components/ui/tables/data-cross-table/data-cross-table-buttons.js";
|
|
84
|
+
import { DataCrossTableProvider as In } from "./components/ui/tables/data-cross-table/data-cross-table-context.js";
|
|
85
|
+
import { WeeklyCalendar as hn } from "./components/ui/weekly-calendar/weekly-calendar.js";
|
|
86
|
+
import { cn as Fn, downloadFile as wn, hexContrast as Gn, hexToRgba as Ln, previewFile as Bn, stringToHexColor as Rn } from "./lib/utils.js";
|
|
87
|
+
import { useAudioRecording as kn } from "./hooks/use-audio-recording.js";
|
|
88
|
+
import { useAutoScroll as Nn } from "./hooks/use-auto-scroll.js";
|
|
89
|
+
import { useAutosizeTextArea as En } from "./hooks/use-autosize-textarea.js";
|
|
90
|
+
import { useCopyToClipboard as On } from "./hooks/use-copy-to-clipboard.js";
|
|
91
|
+
import { useDebounce as Wn } from "./hooks/use-debounce.js";
|
|
92
|
+
import { useIsMobile as qn } from "./hooks/use-mobile.js";
|
|
92
93
|
export {
|
|
93
94
|
ne as Accordion,
|
|
94
95
|
ie as AccordionContent,
|
|
95
96
|
pe as AccordionItem,
|
|
96
|
-
|
|
97
|
+
le as AccordionTrigger,
|
|
97
98
|
ue as Alert,
|
|
98
99
|
xe as AlertDescription,
|
|
99
100
|
Ce as AlertDialog,
|
|
@@ -106,18 +107,18 @@ export {
|
|
|
106
107
|
Te as AlertDialogTitle,
|
|
107
108
|
De as AlertDialogTrigger,
|
|
108
109
|
de as AlertTitle,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
Zt as AppEditor,
|
|
111
|
+
$t as AppMultipleSelectDropdown,
|
|
112
|
+
ra as AppSelect,
|
|
113
|
+
ta as AppSidebar,
|
|
113
114
|
a as AspectRatio,
|
|
114
115
|
Ie as AsyncSelect,
|
|
115
116
|
Ht as AudioVisualizer,
|
|
116
117
|
i as Avatar,
|
|
117
118
|
p as AvatarFallback,
|
|
118
|
-
|
|
119
|
+
l as AvatarImage,
|
|
119
120
|
u as Badge,
|
|
120
|
-
|
|
121
|
+
mt as Breadcrumb,
|
|
121
122
|
ut as BreadcrumbEllipsis,
|
|
122
123
|
xt as BreadcrumbItem,
|
|
123
124
|
dt as BreadcrumbLink,
|
|
@@ -125,7 +126,7 @@ export {
|
|
|
125
126
|
Ct as BreadcrumbPage,
|
|
126
127
|
bt as BreadcrumbSeparator,
|
|
127
128
|
g as Button,
|
|
128
|
-
|
|
129
|
+
he as Calendar,
|
|
129
130
|
Fe as Card,
|
|
130
131
|
we as CardContent,
|
|
131
132
|
Ge as CardDescription,
|
|
@@ -143,11 +144,11 @@ export {
|
|
|
143
144
|
qt as ChartStyle,
|
|
144
145
|
Jt as ChartTooltip,
|
|
145
146
|
Kt as ChartTooltipContent,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
na as Chat,
|
|
148
|
+
ia as ChatContainer,
|
|
149
|
+
pa as ChatForm,
|
|
150
|
+
ua as ChatMessage,
|
|
151
|
+
la as ChatMessages,
|
|
151
152
|
f as Checkbox,
|
|
152
153
|
Mt as CircularProgress,
|
|
153
154
|
S as Collapsible,
|
|
@@ -162,7 +163,7 @@ export {
|
|
|
162
163
|
We as CommandList,
|
|
163
164
|
je as CommandSeparator,
|
|
164
165
|
qe as CommandShortcut,
|
|
165
|
-
|
|
166
|
+
da as Confirmer,
|
|
166
167
|
Ke as ContextMenu,
|
|
167
168
|
Qe as ContextMenuCheckboxItem,
|
|
168
169
|
Xe as ContextMenuContent,
|
|
@@ -179,12 +180,12 @@ export {
|
|
|
179
180
|
ir as ContextMenuSubTrigger,
|
|
180
181
|
pr as ContextMenuTrigger,
|
|
181
182
|
D as CopyButton,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
cn as DataCrossTable,
|
|
184
|
+
Dn as DataCrossTableButtonsGroup,
|
|
185
|
+
In as DataCrossTableProvider,
|
|
186
|
+
Aa as DataRepeatTypes,
|
|
187
|
+
ba as DataTable,
|
|
188
|
+
mr as DatePicker,
|
|
188
189
|
gr as Dialog,
|
|
189
190
|
Cr as DialogContent,
|
|
190
191
|
br as DialogDescription,
|
|
@@ -192,22 +193,23 @@ export {
|
|
|
192
193
|
sr as DialogHeader,
|
|
193
194
|
Sr as DialogTitle,
|
|
194
195
|
Mr as DialogTrigger,
|
|
195
|
-
|
|
196
|
+
Pa as DragStepSizes,
|
|
196
197
|
Tr as Drawer,
|
|
197
198
|
Dr as DrawerContent,
|
|
198
199
|
Ar as DrawerDescription,
|
|
199
200
|
Ir as DrawerFooter,
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
Pr as DrawerHeader,
|
|
202
|
+
hr as DrawerTitle,
|
|
202
203
|
vr as DrawerTrigger,
|
|
203
204
|
At as DropdownMenu,
|
|
204
205
|
It as DropdownMenuContent,
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
Pt as DropdownMenuItem,
|
|
207
|
+
ht as DropdownMenuLabel,
|
|
207
208
|
vt as DropdownMenuSeparator,
|
|
208
209
|
Ft as DropdownMenuTrigger,
|
|
209
|
-
|
|
210
|
+
sa as ELogicalFilterOperator,
|
|
210
211
|
Bt as FilePreview,
|
|
212
|
+
Ma as FilePreviewer,
|
|
211
213
|
Gt as FileUploader,
|
|
212
214
|
wr as Form,
|
|
213
215
|
Gr as FormControl,
|
|
@@ -217,20 +219,20 @@ export {
|
|
|
217
219
|
Hr as FormLabel,
|
|
218
220
|
kr as FormMessage,
|
|
219
221
|
o as Gantt,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
va as GanttConsts,
|
|
223
|
+
wa as GanttDimensions,
|
|
222
224
|
zr as HoverCard,
|
|
223
225
|
Er as HoverCardContent,
|
|
224
226
|
Vr as HoverCardTrigger,
|
|
225
227
|
I as Icon,
|
|
226
|
-
|
|
228
|
+
h as Input,
|
|
227
229
|
F as InputOTP,
|
|
228
230
|
w as InputOTPGroup,
|
|
229
231
|
G as InputOTPSlot,
|
|
230
232
|
xr as InputSelector,
|
|
231
|
-
|
|
233
|
+
La as InterruptPrompt,
|
|
232
234
|
B as Label,
|
|
233
|
-
|
|
235
|
+
Ra as MarkdownRenderer,
|
|
234
236
|
Ur as Menubar,
|
|
235
237
|
Wr as MenubarCheckboxItem,
|
|
236
238
|
jr as MenubarContent,
|
|
@@ -247,20 +249,20 @@ export {
|
|
|
247
249
|
ro as MenubarSubContent,
|
|
248
250
|
oo as MenubarSubTrigger,
|
|
249
251
|
to as MenubarTrigger,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
ka as MessageInput,
|
|
253
|
+
Na as MessageList,
|
|
252
254
|
no as MultipleSelector,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
Ea as NavigationMenu,
|
|
256
|
+
Va as NavigationMenuContent,
|
|
257
|
+
Oa as NavigationMenuIndicator,
|
|
258
|
+
Ua as NavigationMenuItem,
|
|
259
|
+
Wa as NavigationMenuLink,
|
|
260
|
+
ja as NavigationMenuList,
|
|
261
|
+
qa as NavigationMenuTrigger,
|
|
262
|
+
Ja as NavigationMenuViewport,
|
|
261
263
|
po as Pagination,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
lo as PaginationContent,
|
|
265
|
+
mo as PaginationEllipsis,
|
|
264
266
|
uo as PaginationItem,
|
|
265
267
|
xo as PaginationLink,
|
|
266
268
|
go as PaginationNext,
|
|
@@ -275,7 +277,7 @@ export {
|
|
|
275
277
|
Do as ResizableHandle,
|
|
276
278
|
Ao as ResizablePanel,
|
|
277
279
|
Io as ResizablePanelGroup,
|
|
278
|
-
|
|
280
|
+
ho as ScrollArea,
|
|
279
281
|
vo as ScrollBar,
|
|
280
282
|
wo as Select,
|
|
281
283
|
Go as SelectContent,
|
|
@@ -293,29 +295,29 @@ export {
|
|
|
293
295
|
Uo as SheetHeader,
|
|
294
296
|
Wo as SheetTitle,
|
|
295
297
|
jo as SheetTrigger,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
298
|
+
Qa as Sidebar,
|
|
299
|
+
Xa as SidebarContent,
|
|
300
|
+
Ya as SidebarFooter,
|
|
301
|
+
Za as SidebarGroup,
|
|
302
|
+
_a as SidebarGroupAction,
|
|
303
|
+
$a as SidebarGroupContent,
|
|
304
|
+
en as SidebarGroupLabel,
|
|
305
|
+
rn as SidebarHeader,
|
|
306
|
+
on as SidebarInput,
|
|
307
|
+
tn as SidebarInset,
|
|
308
|
+
an as SidebarMenu,
|
|
309
|
+
nn as SidebarMenuAction,
|
|
310
|
+
pn as SidebarMenuBadge,
|
|
311
|
+
ln as SidebarMenuButton,
|
|
312
|
+
mn as SidebarMenuItem,
|
|
313
|
+
un as SidebarMenuSkeleton,
|
|
314
|
+
xn as SidebarMenuSub,
|
|
315
|
+
dn as SidebarMenuSubButton,
|
|
316
|
+
gn as SidebarMenuSubItem,
|
|
317
|
+
Cn as SidebarProvider,
|
|
318
|
+
bn as SidebarRail,
|
|
319
|
+
fn as SidebarSeparator,
|
|
320
|
+
sn as SidebarTrigger,
|
|
319
321
|
O as Skeleton,
|
|
320
322
|
st as Slider,
|
|
321
323
|
W as Switch,
|
|
@@ -343,24 +345,26 @@ export {
|
|
|
343
345
|
$ as TooltipTrigger,
|
|
344
346
|
re as TypingIndicator,
|
|
345
347
|
ke as Typo,
|
|
346
|
-
|
|
348
|
+
hn as WeeklyCalendar,
|
|
347
349
|
x as badgeVariants,
|
|
348
350
|
C as buttonVariants,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
351
|
+
Fn as cn,
|
|
352
|
+
ga as confirm,
|
|
353
|
+
wn as downloadFile,
|
|
354
|
+
Gn as hexContrast,
|
|
355
|
+
Ln as hexToRgba,
|
|
356
|
+
Bn as previewFile,
|
|
357
|
+
ca as previewFileModal,
|
|
358
|
+
Ta as safePreviewFileModal,
|
|
359
|
+
Rn as stringToHexColor,
|
|
356
360
|
Q as toggleVariants,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
kn as useAudioRecording,
|
|
362
|
+
Nn as useAutoScroll,
|
|
363
|
+
En as useAutosizeTextArea,
|
|
364
|
+
On as useCopyToClipboard,
|
|
365
|
+
Wn as useDebounce,
|
|
366
|
+
Xt as useEditorModal,
|
|
363
367
|
yr as useFormField,
|
|
364
|
-
|
|
365
|
-
|
|
368
|
+
qn as useIsMobile,
|
|
369
|
+
Sn as useSidebar
|
|
366
370
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function o(t) {
|
|
3
|
+
if (!t) return "";
|
|
4
|
+
const e = t.split(/[?#]/)[0].split("/").pop() || "", s = e.lastIndexOf(".");
|
|
5
|
+
return s >= 0 ? e.substring(s + 1).toLowerCase() : "";
|
|
6
|
+
}
|
|
7
|
+
const i = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "webp", "bmp", "svg", "tiff"]), c = /* @__PURE__ */ new Set(["pdf"]), r = /* @__PURE__ */ new Set(["txt", "md", "csv", "log", "json"]), a = /* @__PURE__ */ new Set(["mp3", "wav", "ogg", "m4a", "aac"]), f = /* @__PURE__ */ new Set(["mp4", "webm", "ogv", "mov"]), p = /* @__PURE__ */ new Set(["doc", "docx", "xls", "xlsx", "ppt", "pptx"]);
|
|
8
|
+
function u(t) {
|
|
9
|
+
return !!t && /^(https?:)?\/\//i.test(t);
|
|
10
|
+
}
|
|
11
|
+
function x(t) {
|
|
12
|
+
return `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(t)}`;
|
|
13
|
+
}
|
|
14
|
+
function d({
|
|
15
|
+
mimeType: t,
|
|
16
|
+
filename: n,
|
|
17
|
+
url: e
|
|
18
|
+
}) {
|
|
19
|
+
const s = o(n || e);
|
|
20
|
+
return t?.startsWith("image/") || i.has(s) ? "image" : t === "application/pdf" || c.has(s) ? "pdf" : t?.startsWith("audio/") || a.has(s) ? "audio" : t?.startsWith("video/") || f.has(s) ? "video" : r.has(s) || t?.startsWith("text/") ? "text" : p.has(s) ? "office" : "unknown";
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
a as audioExts,
|
|
24
|
+
o as getExt,
|
|
25
|
+
x as getOfficeEmbedUrl,
|
|
26
|
+
d as guessKind,
|
|
27
|
+
i as imageExts,
|
|
28
|
+
u as isHttpUrl,
|
|
29
|
+
p as officeExts,
|
|
30
|
+
c as pdfExts,
|
|
31
|
+
r as textExts,
|
|
32
|
+
f as videoExts
|
|
33
|
+
};
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index4.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index5.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|