laif-ds 0.2.47 → 0.2.49
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/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -2
- package/dist/agent-docs/components/AppForm.md +66 -1
- package/dist/agent-docs/components/AsyncSelect.md +94 -103
- package/dist/components/kanban.js +544 -0
- package/dist/components/ui/app-form.js +76 -44
- package/dist/components/ui/app-kanban.js +157 -0
- package/dist/components/ui/app-select.js +100 -87
- package/dist/components/ui/async-select.js +264 -278
- package/dist/index.d.ts +84 -29
- package/dist/index.js +77 -75
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -44
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +536 -502
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ export declare const AppForm: ({ items, cols, form, submitText, onSubmit, isSubm
|
|
|
151
151
|
|
|
152
152
|
export declare interface AppFormItem {
|
|
153
153
|
label: string;
|
|
154
|
-
component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider";
|
|
154
|
+
component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider" | "async" | "async-multiple";
|
|
155
155
|
name: string;
|
|
156
156
|
inputType?: ComponentProps<"input">["type"];
|
|
157
157
|
defaultValue?: string | boolean | number | string[] | Date | number[];
|
|
@@ -163,6 +163,15 @@ export declare interface AppFormItem {
|
|
|
163
163
|
min?: number;
|
|
164
164
|
max?: number;
|
|
165
165
|
step?: number;
|
|
166
|
+
fetcher?: (query?: string) => Promise<any[]>;
|
|
167
|
+
renderOptionItem?: (option: any) => React.ReactNode;
|
|
168
|
+
resolveOptionValue?: (option: any) => string;
|
|
169
|
+
renderSelectedValue?: (option: any) => React.ReactNode;
|
|
170
|
+
initialOptions?: any[];
|
|
171
|
+
notFound?: React.ReactNode;
|
|
172
|
+
noResultsMessage?: string;
|
|
173
|
+
debounce?: number;
|
|
174
|
+
clearable?: boolean;
|
|
166
175
|
}
|
|
167
176
|
|
|
168
177
|
declare interface AppFormProps {
|
|
@@ -175,6 +184,36 @@ declare interface AppFormProps {
|
|
|
175
184
|
showSubmitButton?: boolean;
|
|
176
185
|
}
|
|
177
186
|
|
|
187
|
+
export declare function AppKanban<T = any>({ columns, initialTasks, onTaskMove, onTaskEdit, onTaskCreate, taskActions, renderTaskContent, className, allowTaskCreate, createTaskLabel, }: AppKanbanConfig<T>): JSX.Element;
|
|
188
|
+
|
|
189
|
+
export declare type AppKanbanColumn = {
|
|
190
|
+
id: string;
|
|
191
|
+
label: string;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export declare type AppKanbanConfig<T = any> = {
|
|
195
|
+
columns: AppKanbanColumn[];
|
|
196
|
+
initialTasks: Record<string, AppKanbanTask<T>[]>;
|
|
197
|
+
onTaskMove?: (taskId: string, fromColumn: string, toColumn: string) => void;
|
|
198
|
+
onTaskEdit?: (task: AppKanbanTask<T>, columnId: string) => void;
|
|
199
|
+
onTaskCreate?: (columnId: string) => void;
|
|
200
|
+
taskActions?: (task: AppKanbanTask<T>, columnId: string) => KanbanBoardCardAction[];
|
|
201
|
+
renderTaskContent?: (task: AppKanbanTask<T>, columnId: string) => ReactNode;
|
|
202
|
+
className?: string;
|
|
203
|
+
allowTaskCreate?: boolean;
|
|
204
|
+
createTaskLabel?: string;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export declare type AppKanbanTask<T = any> = {
|
|
208
|
+
id: string;
|
|
209
|
+
title: string;
|
|
210
|
+
description?: string;
|
|
211
|
+
data?: T;
|
|
212
|
+
meta?: KanbanBoardCardMetaItem[];
|
|
213
|
+
icon?: IconName;
|
|
214
|
+
createTaskLabel?: string;
|
|
215
|
+
};
|
|
216
|
+
|
|
178
217
|
/**
|
|
179
218
|
* @deprecated This component is deprecated. Please use AppSelect component instead.
|
|
180
219
|
*/
|
|
@@ -271,26 +310,24 @@ export declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element
|
|
|
271
310
|
|
|
272
311
|
declare type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
|
|
273
312
|
|
|
274
|
-
export declare function AsyncSelect<T>({ fetcher,
|
|
313
|
+
export declare function AsyncSelect<T = Option_2>({ fetcher, initialOptions, debounce, renderOptionItem, resolveOptionValue, renderSelectedValue, notFound, label, placeholder, value, onChange, disabled, className, wrpClassName, noResultsMessage, clearable, multiple, size, }: AsyncSelectProps<T>): JSX.Element;
|
|
275
314
|
|
|
276
315
|
declare interface AsyncSelectMultipleProps<T> extends VariantProps<typeof selectTriggerVariants> {
|
|
277
|
-
multiple:
|
|
316
|
+
multiple: boolean;
|
|
278
317
|
fetcher: (query?: string) => Promise<T[]>;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
318
|
+
initialOptions?: T[];
|
|
319
|
+
debounce?: number;
|
|
320
|
+
renderOptionItem: (option: T) => React_2.ReactNode;
|
|
321
|
+
resolveOptionValue: (option: T) => string;
|
|
322
|
+
renderSelectedValue: (option: T) => React_2.ReactNode;
|
|
284
323
|
notFound?: React_2.ReactNode;
|
|
285
|
-
loadingSkeleton?: React_2.ReactNode;
|
|
286
324
|
value?: string[];
|
|
287
325
|
onChange?: (value: string[]) => void;
|
|
288
326
|
label?: string | React_2.ReactNode;
|
|
289
|
-
labelClassName?: string;
|
|
290
327
|
placeholder?: string;
|
|
291
328
|
disabled?: boolean;
|
|
292
|
-
|
|
293
|
-
|
|
329
|
+
className?: string;
|
|
330
|
+
wrpClassName?: string;
|
|
294
331
|
noResultsMessage?: string;
|
|
295
332
|
clearable?: boolean;
|
|
296
333
|
}
|
|
@@ -300,21 +337,19 @@ declare type AsyncSelectProps<T> = AsyncSelectSingleProps<T> | AsyncSelectMultip
|
|
|
300
337
|
declare interface AsyncSelectSingleProps<T> extends VariantProps<typeof selectTriggerVariants> {
|
|
301
338
|
multiple?: false;
|
|
302
339
|
fetcher: (query?: string) => Promise<T[]>;
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
340
|
+
initialOptions?: T[];
|
|
341
|
+
debounce?: number;
|
|
342
|
+
renderOptionItem: (option: T) => React_2.ReactNode;
|
|
343
|
+
resolveOptionValue: (option: T) => string;
|
|
344
|
+
renderSelectedValue: (option: T) => React_2.ReactNode;
|
|
308
345
|
notFound?: React_2.ReactNode;
|
|
309
|
-
loadingSkeleton?: React_2.ReactNode;
|
|
310
346
|
value?: string;
|
|
311
347
|
onChange?: (value: string) => void;
|
|
312
348
|
label?: string | React_2.ReactNode;
|
|
313
|
-
labelClassName?: string;
|
|
314
349
|
placeholder?: string;
|
|
315
350
|
disabled?: boolean;
|
|
316
|
-
|
|
317
|
-
|
|
351
|
+
className?: string;
|
|
352
|
+
wrpClassName?: string;
|
|
318
353
|
noResultsMessage?: string;
|
|
319
354
|
clearable?: boolean;
|
|
320
355
|
}
|
|
@@ -1765,6 +1800,18 @@ declare interface InterruptPromptProps {
|
|
|
1765
1800
|
*/
|
|
1766
1801
|
export declare function isValidOperatorForType(operator: FilterOperator, columnType: IColumnType): boolean;
|
|
1767
1802
|
|
|
1803
|
+
declare type KanbanBoardCardAction = {
|
|
1804
|
+
label: string;
|
|
1805
|
+
icon?: ReactNode;
|
|
1806
|
+
onClick: () => void;
|
|
1807
|
+
variant?: "default" | "destructive";
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
declare type KanbanBoardCardMetaItem = {
|
|
1811
|
+
name: ReactNode;
|
|
1812
|
+
value?: ReactNode;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1768
1815
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1769
1816
|
|
|
1770
1817
|
declare interface ListColumnConfig<TData> extends BaseColumnConfig<TData> {
|
|
@@ -1898,10 +1945,10 @@ export declare const MultipleSelector: React_2.ForwardRefExoticComponent<Multipl
|
|
|
1898
1945
|
* @deprecated This component is deprecated. Please use AppSelect component instead.
|
|
1899
1946
|
*/
|
|
1900
1947
|
declare interface MultipleSelectorProps {
|
|
1901
|
-
value?:
|
|
1902
|
-
defaultOptions?:
|
|
1948
|
+
value?: Option_3[];
|
|
1949
|
+
defaultOptions?: Option_3[];
|
|
1903
1950
|
/** manually controlled options */
|
|
1904
|
-
options?:
|
|
1951
|
+
options?: Option_3[];
|
|
1905
1952
|
placeholder?: string;
|
|
1906
1953
|
/** Loading component. */
|
|
1907
1954
|
loadingIndicator?: React_2.ReactNode;
|
|
@@ -1915,14 +1962,14 @@ declare interface MultipleSelectorProps {
|
|
|
1915
1962
|
**/
|
|
1916
1963
|
triggerSearchOnFocus?: boolean;
|
|
1917
1964
|
/** async search */
|
|
1918
|
-
onSearch?: (value: string) => Promise<
|
|
1965
|
+
onSearch?: (value: string) => Promise<Option_3[]>;
|
|
1919
1966
|
/**
|
|
1920
1967
|
* sync search. This search will not showing loadingIndicator.
|
|
1921
1968
|
* The rest props are the same as async search.
|
|
1922
1969
|
* i.e.: creatable, groupBy, delay.
|
|
1923
1970
|
**/
|
|
1924
|
-
onSearchSync?: (value: string) =>
|
|
1925
|
-
onChange?: (options:
|
|
1971
|
+
onSearchSync?: (value: string) => Option_3[];
|
|
1972
|
+
onChange?: (options: Option_3[]) => void;
|
|
1926
1973
|
/** Limit the maximum number of selected options. */
|
|
1927
1974
|
maxSelected?: number;
|
|
1928
1975
|
/** When the number of selected options exceeds the limit, the onMaxSelected will be called. */
|
|
@@ -1956,7 +2003,7 @@ declare interface MultipleSelectorProps {
|
|
|
1956
2003
|
* @deprecated This interface is deprecated. Please use AppSelect component instead.
|
|
1957
2004
|
*/
|
|
1958
2005
|
export declare interface MultipleSelectorRef {
|
|
1959
|
-
selectedValue:
|
|
2006
|
+
selectedValue: Option_3[];
|
|
1960
2007
|
input: HTMLInputElement;
|
|
1961
2008
|
focus: () => void;
|
|
1962
2009
|
reset: () => void;
|
|
@@ -2032,10 +2079,18 @@ declare type OnBarChangeType<T extends Record<string, unknown> = any> = (barData
|
|
|
2032
2079
|
|
|
2033
2080
|
declare type OnBarDoubleClickType<T extends Record<string, unknown> = any> = (barData: GanttItemDataType<T>) => any;
|
|
2034
2081
|
|
|
2082
|
+
declare interface Option_2 {
|
|
2083
|
+
value: string;
|
|
2084
|
+
label: string;
|
|
2085
|
+
disabled?: boolean;
|
|
2086
|
+
description?: string;
|
|
2087
|
+
icon?: React_2.ReactNode;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2035
2090
|
/**
|
|
2036
2091
|
* @deprecated This interface is deprecated. Please use AppSelect component instead.
|
|
2037
2092
|
*/
|
|
2038
|
-
declare interface
|
|
2093
|
+
declare interface Option_3 {
|
|
2039
2094
|
value: string;
|
|
2040
2095
|
label: string;
|
|
2041
2096
|
disable?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -15,9 +15,9 @@ import { Progress as H } from "./components/ui/progress.js";
|
|
|
15
15
|
import { RadioGroup as y, RadioGroupItem as N } from "./components/ui/radio-group.js";
|
|
16
16
|
import { Separator as V } from "./components/ui/separator.js";
|
|
17
17
|
import { Skeleton as E } from "./components/ui/skeleton.js";
|
|
18
|
-
import { Spinner as
|
|
19
|
-
import { Switch as
|
|
20
|
-
import { Textarea as
|
|
18
|
+
import { Spinner as K } from "./components/ui/spinner.js";
|
|
19
|
+
import { Switch as W } from "./components/ui/switch.js";
|
|
20
|
+
import { Textarea as J } from "./components/ui/textarea.js";
|
|
21
21
|
import { Toaster as X } from "./components/ui/toaster.js";
|
|
22
22
|
import { Toggle as Z, toggleVariants as _ } from "./components/ui/toggle.js";
|
|
23
23
|
import { Tooltip as ee, TooltipContent as re, TooltipProvider as oe, TooltipTrigger as te } from "./components/ui/tooltip.js";
|
|
@@ -29,7 +29,7 @@ import { AsyncSelect as Pe } from "./components/ui/async-select.js";
|
|
|
29
29
|
import { Calendar as ve } from "./components/ui/calendar.js";
|
|
30
30
|
import { Card as Ge, CardContent as Be, CardDescription as Le, CardFooter as Re, CardHeader as He, CardTitle as ke } from "./components/ui/card.js";
|
|
31
31
|
import { AppForm as Ne } from "./components/ui/app-form.js";
|
|
32
|
-
import { Command as Ve, CommandDialog as ze, CommandEmpty as Ee, CommandGroup as je, CommandInput as
|
|
32
|
+
import { Command as Ve, CommandDialog as ze, CommandEmpty as Ee, CommandGroup as je, CommandInput as Ke, CommandItem as Ue, CommandList as We, CommandSeparator as qe, CommandShortcut as Je } from "./components/ui/command.js";
|
|
33
33
|
import { ContextMenu as Xe, ContextMenuCheckboxItem as Ye, ContextMenuContent as Ze, ContextMenuGroup as _e, ContextMenuItem as $e, ContextMenuLabel as er, ContextMenuPortal as rr, ContextMenuRadioGroup as or, ContextMenuRadioItem as tr, ContextMenuSeparator as ar, ContextMenuShortcut as nr, ContextMenuSub as ir, ContextMenuSubContent as pr, ContextMenuSubTrigger as lr, ContextMenuTrigger as mr } from "./components/ui/context-menu.js";
|
|
34
34
|
import { DatePicker as xr } from "./components/ui/date-picker.js";
|
|
35
35
|
import { Dialog as Cr, DialogContent as gr, DialogDescription as fr, DialogFooter as br, DialogHeader as sr, DialogTitle as cr, DialogTrigger as Sr } from "./components/ui/dialog.js";
|
|
@@ -37,7 +37,7 @@ import { Drawer as Tr, DrawerContent as Dr, DrawerDescription as Ar, DrawerFoote
|
|
|
37
37
|
import { Form as wr, FormControl as Gr, FormDescription as Br, FormField as Lr, FormItem as Rr, FormLabel as Hr, FormMessage as kr, useFormField as yr } from "./components/ui/form.js";
|
|
38
38
|
import { HoverCard as Or, HoverCardContent as Vr, HoverCardTrigger as zr } from "./components/ui/hover-card.js";
|
|
39
39
|
import { InputSelector as jr } from "./components/ui/input-selector.js";
|
|
40
|
-
import { Menubar as
|
|
40
|
+
import { Menubar as Ur, MenubarCheckboxItem as Wr, MenubarContent as qr, MenubarGroup as Jr, MenubarItem as Qr, MenubarLabel as Xr, MenubarMenu as Yr, MenubarPortal as Zr, MenubarRadioGroup as _r, MenubarRadioItem as $r, MenubarSeparator as eo, MenubarShortcut as ro, MenubarSub as oo, MenubarSubContent as to, MenubarSubTrigger as ao, MenubarTrigger as no } from "./components/ui/menubar.js";
|
|
41
41
|
import { MultipleSelector as po } from "./components/ui/multiple-selector.js";
|
|
42
42
|
import { Pagination as mo, PaginationContent as uo, PaginationEllipsis as xo, PaginationItem as Co, PaginationLink as go, PaginationNext as fo, PaginationPrevious as bo } from "./components/ui/pagination.js";
|
|
43
43
|
import { Popover as co, PopoverContent as So, PopoverTrigger as Mo } from "./components/ui/popover.js";
|
|
@@ -45,7 +45,7 @@ import { PromptSuggestions as Do } from "./components/ui/prompt-suggestions.js";
|
|
|
45
45
|
import { ResizableHandle as Fo, ResizablePanel as Io, ResizablePanelGroup as Po } from "./components/ui/resizable.js";
|
|
46
46
|
import { ScrollArea as vo, ScrollBar as wo } from "./components/ui/scroll-area.js";
|
|
47
47
|
import { Select as Bo, SelectContent as Lo, SelectGroup as Ro, SelectItem as Ho, SelectLabel as ko, SelectSeparator as yo, SelectTrigger as No, SelectValue as Oo } from "./components/ui/select.js";
|
|
48
|
-
import { Sheet as zo, SheetContent as Eo, SheetDescription as jo, SheetFooter as
|
|
48
|
+
import { Sheet as zo, SheetContent as Eo, SheetDescription as jo, SheetFooter as Ko, SheetHeader as Uo, SheetTitle as Wo, SheetTrigger as qo } from "./components/ui/sheet.js";
|
|
49
49
|
import { Table as Qo, TableBody as Xo, TableCaption as Yo, TableCell as Zo, TableFooter as _o, TableHead as $o, TableHeader as et, TableRow as rt } from "./components/ui/table.js";
|
|
50
50
|
import { Typo as tt } from "./components/ui/typo.js";
|
|
51
51
|
import { Tabs as nt, TabsContent as it, TabsList as pt, TabsTrigger as lt } from "./components/ui/tabs.js";
|
|
@@ -58,8 +58,8 @@ import { ThemeSwitcher as Lt } from "./components/ui/theme-switcher.js";
|
|
|
58
58
|
import { FilePreview as Ht } from "./components/ui/file-preview.js";
|
|
59
59
|
import { FileUploader as yt } from "./components/ui/file-uploader.js";
|
|
60
60
|
import { AudioVisualizer as Ot } from "./components/ui/audio-visualizer.js";
|
|
61
|
-
import { Carousel as zt, CarouselContent as Et, CarouselItem as jt, CarouselNext as
|
|
62
|
-
import { ChartContainer as
|
|
61
|
+
import { Carousel as zt, CarouselContent as Et, CarouselItem as jt, CarouselNext as Kt, CarouselPrevious as Ut } from "./components/ui/carousel.js";
|
|
62
|
+
import { ChartContainer as qt, ChartLegend as Jt, ChartLegendContent as Qt, ChartStyle as Xt, ChartTooltip as Yt, ChartTooltipContent as Zt } from "./components/ui/chart.js";
|
|
63
63
|
import { useEditorModal as $t } from "./components/editor/editor-hooks/use-modal.js";
|
|
64
64
|
import { AppEditor as ra } from "./components/ui/app-editor.js";
|
|
65
65
|
import { AppMultipleSelectDropdown as ta } from "./components/ui/app-multiple-select-dropdown.js";
|
|
@@ -78,7 +78,7 @@ import { InterruptPrompt as Ra } from "./components/ui/interrupt-prompt.js";
|
|
|
78
78
|
import { MarkdownRenderer as ka } from "./components/ui/markdown-renderer.js";
|
|
79
79
|
import { MessageInput as Na } from "./components/ui/message-input.js";
|
|
80
80
|
import { MessageList as Va } from "./components/ui/message-list.js";
|
|
81
|
-
import { NavigationMenu as Ea, NavigationMenuContent as ja, NavigationMenuIndicator as
|
|
81
|
+
import { NavigationMenu as Ea, NavigationMenuContent as ja, NavigationMenuIndicator as Ka, NavigationMenuItem as Ua, NavigationMenuLink as Wa, NavigationMenuList as qa, NavigationMenuTrigger as Ja, NavigationMenuViewport as Qa } from "./components/ui/navigation-menu.js";
|
|
82
82
|
import { SecurePdfViewer as Ya } from "./components/ui/secure-pdf-viewer.js";
|
|
83
83
|
import { Sidebar as _a, SidebarContent as $a, SidebarFooter as en, SidebarGroup as rn, SidebarGroupAction as on, SidebarGroupContent as tn, SidebarGroupLabel as an, SidebarHeader as nn, SidebarInput as pn, SidebarInset as ln, SidebarMenu as mn, SidebarMenuAction as un, SidebarMenuBadge as xn, SidebarMenuButton as dn, SidebarMenuItem as Cn, SidebarMenuSkeleton as gn, SidebarMenuSub as fn, SidebarMenuSubButton as bn, SidebarMenuSubItem as sn, SidebarProvider as cn, SidebarRail as Sn, SidebarSeparator as Mn, SidebarTrigger as Tn, useSidebar as Dn } from "./components/ui/sidebar.js";
|
|
84
84
|
import { DataCrossTable as Fn } from "./components/ui/tables/data-cross-table/data-cross-table.js";
|
|
@@ -88,14 +88,15 @@ import { DataTable as Gn } from "./components/ui/tables/data-table/data-table.js
|
|
|
88
88
|
import { ELogicalFilterOperator as Ln } from "./components/ui/tables/data-table/data-table-constants.js";
|
|
89
89
|
import { WeeklyCalendar as Hn } from "./components/ui/weekly-calendar/weekly-calendar.js";
|
|
90
90
|
import { cn as yn, downloadFile as Nn, hexContrast as On, hexToRgba as Vn, previewFile as zn, stringToHexColor as En } from "./lib/utils.js";
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
91
|
+
import { AppKanban as Kn } from "./components/ui/app-kanban.js";
|
|
92
|
+
import { AppStepper as Wn } from "./components/ui/app-stepper.js";
|
|
93
|
+
import { createActionColumn as Jn, createBooleanColumn as Qn, createBooleanFilter as Xn, createComputedColumn as Yn, createDateColumn as Zn, createDateFilter as _n, createDateTimeColumn as $n, createDateTimeFilter as ei, createDisplayColumn as ri, createFilterBadge as oi, createFilterBadges as ti, createInitialState as ai, createListFilter as ni, createMultiSelectColumn as ii, createNumberColumn as pi, createNumberFilter as li, createSingleSelectColumn as mi, createSorting as ui, createStringColumn as xi, createStringFilter as di, getColumnIds as Ci, isValidOperatorForType as gi, pinColumns as fi, toSelectOptions as bi, toSelectOptionsFromObjects as si, updateColumnListOptions as ci } from "./components/ui/tables/data-table/data-table.utils.js";
|
|
94
|
+
import { useAudioRecording as Mi } from "./hooks/use-audio-recording.js";
|
|
95
|
+
import { useAutoScroll as Di } from "./hooks/use-auto-scroll.js";
|
|
96
|
+
import { useAutosizeTextArea as Fi } from "./hooks/use-autosize-textarea.js";
|
|
97
|
+
import { useCopyToClipboard as Pi } from "./hooks/use-copy-to-clipboard.js";
|
|
98
|
+
import { useDebounce as vi } from "./hooks/use-debounce.js";
|
|
99
|
+
import { useIsMobile as Gi } from "./hooks/use-mobile.js";
|
|
99
100
|
export {
|
|
100
101
|
pe as Accordion,
|
|
101
102
|
le as AccordionContent,
|
|
@@ -115,11 +116,12 @@ export {
|
|
|
115
116
|
ge as AlertTitle,
|
|
116
117
|
ra as AppEditor,
|
|
117
118
|
Ne as AppForm,
|
|
119
|
+
Kn as AppKanban,
|
|
118
120
|
ta as AppMultipleSelectDropdown,
|
|
119
121
|
na as AppRadioGroup,
|
|
120
122
|
pa as AppSelect,
|
|
121
123
|
ma as AppSidebar,
|
|
122
|
-
|
|
124
|
+
Wn as AppStepper,
|
|
123
125
|
a as AspectRatio,
|
|
124
126
|
Pe as AsyncSelect,
|
|
125
127
|
Ot as AudioVisualizer,
|
|
@@ -145,10 +147,10 @@ export {
|
|
|
145
147
|
zt as Carousel,
|
|
146
148
|
Et as CarouselContent,
|
|
147
149
|
jt as CarouselItem,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
Kt as CarouselNext,
|
|
151
|
+
Ut as CarouselPrevious,
|
|
152
|
+
qt as ChartContainer,
|
|
153
|
+
Jt as ChartLegend,
|
|
152
154
|
Qt as ChartLegendContent,
|
|
153
155
|
Xt as ChartStyle,
|
|
154
156
|
Yt as ChartTooltip,
|
|
@@ -167,11 +169,11 @@ export {
|
|
|
167
169
|
ze as CommandDialog,
|
|
168
170
|
Ee as CommandEmpty,
|
|
169
171
|
je as CommandGroup,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
Ke as CommandInput,
|
|
173
|
+
Ue as CommandItem,
|
|
174
|
+
We as CommandList,
|
|
175
|
+
qe as CommandSeparator,
|
|
176
|
+
Je as CommandShortcut,
|
|
175
177
|
ca as Confirmer,
|
|
176
178
|
Xe as ContextMenu,
|
|
177
179
|
Ye as ContextMenuCheckboxItem,
|
|
@@ -242,10 +244,10 @@ export {
|
|
|
242
244
|
Ra as InterruptPrompt,
|
|
243
245
|
L as Label,
|
|
244
246
|
ka as MarkdownRenderer,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
Ur as Menubar,
|
|
248
|
+
Wr as MenubarCheckboxItem,
|
|
249
|
+
qr as MenubarContent,
|
|
250
|
+
Jr as MenubarGroup,
|
|
249
251
|
Qr as MenubarItem,
|
|
250
252
|
Xr as MenubarLabel,
|
|
251
253
|
Yr as MenubarMenu,
|
|
@@ -263,11 +265,11 @@ export {
|
|
|
263
265
|
po as MultipleSelector,
|
|
264
266
|
Ea as NavigationMenu,
|
|
265
267
|
ja as NavigationMenuContent,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
Ka as NavigationMenuIndicator,
|
|
269
|
+
Ua as NavigationMenuItem,
|
|
270
|
+
Wa as NavigationMenuLink,
|
|
271
|
+
qa as NavigationMenuList,
|
|
272
|
+
Ja as NavigationMenuTrigger,
|
|
271
273
|
Qa as NavigationMenuViewport,
|
|
272
274
|
mo as Pagination,
|
|
273
275
|
uo as PaginationContent,
|
|
@@ -301,10 +303,10 @@ export {
|
|
|
301
303
|
zo as Sheet,
|
|
302
304
|
Eo as SheetContent,
|
|
303
305
|
jo as SheetDescription,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
Ko as SheetFooter,
|
|
307
|
+
Uo as SheetHeader,
|
|
308
|
+
Wo as SheetTitle,
|
|
309
|
+
qo as SheetTrigger,
|
|
308
310
|
_a as Sidebar,
|
|
309
311
|
$a as SidebarContent,
|
|
310
312
|
en as SidebarFooter,
|
|
@@ -330,8 +332,8 @@ export {
|
|
|
330
332
|
Tn as SidebarTrigger,
|
|
331
333
|
E as Skeleton,
|
|
332
334
|
Gt as Slider,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
+
K as Spinner,
|
|
336
|
+
W as Switch,
|
|
335
337
|
Qo as Table,
|
|
336
338
|
Xo as TableBody,
|
|
337
339
|
Yo as TableCaption,
|
|
@@ -344,7 +346,7 @@ export {
|
|
|
344
346
|
it as TabsContent,
|
|
345
347
|
pt as TabsList,
|
|
346
348
|
lt as TabsTrigger,
|
|
347
|
-
|
|
349
|
+
J as Textarea,
|
|
348
350
|
Lt as ThemeSwitcher,
|
|
349
351
|
X as Toaster,
|
|
350
352
|
Z as Toggle,
|
|
@@ -361,47 +363,47 @@ export {
|
|
|
361
363
|
g as buttonVariants,
|
|
362
364
|
yn as cn,
|
|
363
365
|
Sa as confirm,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
366
|
+
Jn as createActionColumn,
|
|
367
|
+
Qn as createBooleanColumn,
|
|
368
|
+
Xn as createBooleanFilter,
|
|
369
|
+
Yn as createComputedColumn,
|
|
370
|
+
Zn as createDateColumn,
|
|
371
|
+
_n as createDateFilter,
|
|
372
|
+
$n as createDateTimeColumn,
|
|
373
|
+
ei as createDateTimeFilter,
|
|
374
|
+
ri as createDisplayColumn,
|
|
375
|
+
oi as createFilterBadge,
|
|
376
|
+
ti as createFilterBadges,
|
|
377
|
+
ai as createInitialState,
|
|
378
|
+
ni as createListFilter,
|
|
379
|
+
ii as createMultiSelectColumn,
|
|
380
|
+
pi as createNumberColumn,
|
|
381
|
+
li as createNumberFilter,
|
|
382
|
+
mi as createSingleSelectColumn,
|
|
383
|
+
ui as createSorting,
|
|
384
|
+
xi as createStringColumn,
|
|
385
|
+
di as createStringFilter,
|
|
384
386
|
Nn as downloadFile,
|
|
385
|
-
|
|
387
|
+
Ci as getColumnIds,
|
|
386
388
|
On as hexContrast,
|
|
387
389
|
Vn as hexToRgba,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
+
gi as isValidOperatorForType,
|
|
391
|
+
fi as pinColumns,
|
|
390
392
|
zn as previewFile,
|
|
391
393
|
Da as previewFileModal,
|
|
392
394
|
Aa as safePreviewFileModal,
|
|
393
395
|
En as stringToHexColor,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
+
bi as toSelectOptions,
|
|
397
|
+
si as toSelectOptionsFromObjects,
|
|
396
398
|
_ as toggleVariants,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
399
|
+
ci as updateColumnListOptions,
|
|
400
|
+
Mi as useAudioRecording,
|
|
401
|
+
Di as useAutoScroll,
|
|
402
|
+
Fi as useAutosizeTextArea,
|
|
403
|
+
Pi as useCopyToClipboard,
|
|
404
|
+
vi as useDebounce,
|
|
403
405
|
$t as useEditorModal,
|
|
404
406
|
yr as useFormField,
|
|
405
|
-
|
|
407
|
+
Gi as useIsMobile,
|
|
406
408
|
Dn as useSidebar
|
|
407
409
|
};
|
|
@@ -4,7 +4,7 @@ import { createContextScope as b } from "../../react-context/dist/index.js";
|
|
|
4
4
|
import { useComposedRefs as u } from "../../react-compose-refs/dist/index.js";
|
|
5
5
|
import { createDialogScope as v, Root as w, Close as A, WarningProvider as M, Content as x, Description as I, Title as L, Trigger as $, Portal as F, Overlay as G } from "../../react-dialog/dist/index.js";
|
|
6
6
|
import { composeEventHandlers as j } from "../../primitive/dist/index.js";
|
|
7
|
-
import { createSlottable as W } from "
|
|
7
|
+
import { createSlottable as W } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
8
8
|
import { jsx as i, jsxs as Y } from "react/jsx-runtime";
|
|
9
9
|
var f = "AlertDialog", [q] = b(f, [
|
|
10
10
|
v
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as a, Fragment as l } from "react/jsx-runtime";
|
|
4
|
+
var o = Symbol("radix.slottable");
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function m(e) {
|
|
7
|
+
const t = ({ children: r }) => /* @__PURE__ */ a(l, { children: r });
|
|
8
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = o, t;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as createSlottable
|
|
12
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { createContextScope as y } from "../../react-context/dist/index.js";
|
|
4
4
|
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
5
|
-
import { createSlot as x } from "
|
|
5
|
+
import { createSlot as x } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
6
6
|
import { jsx as d } from "react/jsx-runtime";
|
|
7
7
|
function g(s) {
|
|
8
8
|
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -13,7 +13,7 @@ import { Primitive as g } from "../../react-primitive/dist/index.js";
|
|
|
13
13
|
import { useFocusGuards as z } from "../../react-focus-guards/dist/index.js";
|
|
14
14
|
import J from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
15
15
|
import { hideOthers as Q } from "../../../aria-hidden/dist/es2015/index.js";
|
|
16
|
-
import { createSlot as X } from "
|
|
16
|
+
import { createSlot as X } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
17
17
|
import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
|
|
18
18
|
var D = "Dialog", [I, Ne] = V(D), [ee, u] = I(D), x = (e) => {
|
|
19
19
|
const {
|
package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -14,7 +14,7 @@ import { Portal as rt } from "../../react-portal/dist/index.js";
|
|
|
14
14
|
import { Presence as X } from "../../react-presence/dist/index.js";
|
|
15
15
|
import { Primitive as N, dispatchDiscreteCustomEvent as ct } from "../../react-primitive/dist/index.js";
|
|
16
16
|
import { createRovingFocusGroupScope as he, Item as at, Root as st } from "../../react-roving-focus/dist/index.js";
|
|
17
|
-
import { createSlot as ut } from "
|
|
17
|
+
import { createSlot as ut } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
18
18
|
import { useCallbackRef as q } from "../../react-use-callback-ref/dist/index.js";
|
|
19
19
|
import { hideOthers as it } from "../../../aria-hidden/dist/es2015/index.js";
|
|
20
20
|
import lt from "../../../react-remove-scroll/dist/es2015/Combination.js";
|