laif-ds 0.2.46 → 0.2.48

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 (34) hide show
  1. package/dist/_virtual/index6.js +2 -2
  2. package/dist/_virtual/index7.js +2 -2
  3. package/dist/agent-docs/components/AppForm.md +88 -10
  4. package/dist/agent-docs/components/AsyncSelect.md +94 -103
  5. package/dist/components/kanban.js +540 -0
  6. package/dist/components/ui/app-form.js +105 -72
  7. package/dist/components/ui/app-kanban.js +137 -0
  8. package/dist/components/ui/app-select.js +100 -87
  9. package/dist/components/ui/async-select.js +264 -278
  10. package/dist/index.d.ts +83 -29
  11. package/dist/index.js +77 -75
  12. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +1 -1
  13. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
  14. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +1 -1
  15. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  16. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +1 -1
  17. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  18. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +1 -1
  19. package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  20. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +1 -1
  21. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  22. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  23. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  24. package/dist/node_modules/@radix-ui/react-select/dist/index.js +1 -1
  25. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  26. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -44
  27. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +1 -1
  28. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
  29. package/dist/node_modules/eventemitter3/index2.js +1 -1
  30. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  31. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +536 -502
  32. package/dist/styles.css +1 -1
  33. package/dist/styles.v3.css +1 -1
  34. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { ClassValue } from 'clsx';
8
8
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
9
9
  import { ColumnDef } from '@tanstack/react-table';
10
10
  import { Command as Command_2 } from 'cmdk';
11
+ import { ComponentProps } from 'react';
11
12
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
12
13
  import { ControllerProps } from 'react-hook-form';
13
14
  import { DayPicker } from 'react-day-picker';
@@ -150,8 +151,9 @@ export declare const AppForm: ({ items, cols, form, submitText, onSubmit, isSubm
150
151
 
151
152
  export declare interface AppFormItem {
152
153
  label: string;
153
- component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider";
154
+ component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider" | "async" | "async-multiple";
154
155
  name: string;
156
+ inputType?: ComponentProps<"input">["type"];
155
157
  defaultValue?: string | boolean | number | string[] | Date | number[];
156
158
  options?: AppSelectOption[];
157
159
  disabled?: boolean;
@@ -161,6 +163,15 @@ export declare interface AppFormItem {
161
163
  min?: number;
162
164
  max?: number;
163
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;
164
175
  }
165
176
 
166
177
  declare interface AppFormProps {
@@ -173,6 +184,33 @@ declare interface AppFormProps {
173
184
  showSubmitButton?: boolean;
174
185
  }
175
186
 
187
+ export declare function AppKanban<T = any>({ columns, initialTasks, onTaskMove, onTaskEdit, onTaskCreate, taskActions, renderTaskContent, className, allowTaskCreate, }: 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
+ };
205
+
206
+ export declare type AppKanbanTask<T = any> = {
207
+ id: string;
208
+ title: string;
209
+ description?: string;
210
+ data?: T;
211
+ meta?: KanbanBoardCardMetaItem[];
212
+ };
213
+
176
214
  /**
177
215
  * @deprecated This component is deprecated. Please use AppSelect component instead.
178
216
  */
@@ -269,26 +307,24 @@ export declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element
269
307
 
270
308
  declare type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
271
309
 
272
- export declare function AsyncSelect<T>({ fetcher, preload, filterFn, renderOption, getOptionValue, getDisplayValue, notFound, loadingSkeleton, label, labelClassName, placeholder, value, onChange, disabled, width, triggerClassName, noResultsMessage, clearable, multiple, size, }: AsyncSelectProps<T>): JSX.Element;
310
+ 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;
273
311
 
274
312
  declare interface AsyncSelectMultipleProps<T> extends VariantProps<typeof selectTriggerVariants> {
275
- multiple: true;
313
+ multiple: boolean;
276
314
  fetcher: (query?: string) => Promise<T[]>;
277
- preload?: boolean;
278
- filterFn?: (option: T, query: string) => boolean;
279
- renderOption: (option: T) => React_2.ReactNode;
280
- getOptionValue: (option: T) => string;
281
- getDisplayValue: (option: T) => React_2.ReactNode;
315
+ initialOptions?: T[];
316
+ debounce?: number;
317
+ renderOptionItem: (option: T) => React_2.ReactNode;
318
+ resolveOptionValue: (option: T) => string;
319
+ renderSelectedValue: (option: T) => React_2.ReactNode;
282
320
  notFound?: React_2.ReactNode;
283
- loadingSkeleton?: React_2.ReactNode;
284
321
  value?: string[];
285
322
  onChange?: (value: string[]) => void;
286
323
  label?: string | React_2.ReactNode;
287
- labelClassName?: string;
288
324
  placeholder?: string;
289
325
  disabled?: boolean;
290
- width?: string | number | "auto";
291
- triggerClassName?: string;
326
+ className?: string;
327
+ wrpClassName?: string;
292
328
  noResultsMessage?: string;
293
329
  clearable?: boolean;
294
330
  }
@@ -298,21 +334,19 @@ declare type AsyncSelectProps<T> = AsyncSelectSingleProps<T> | AsyncSelectMultip
298
334
  declare interface AsyncSelectSingleProps<T> extends VariantProps<typeof selectTriggerVariants> {
299
335
  multiple?: false;
300
336
  fetcher: (query?: string) => Promise<T[]>;
301
- preload?: boolean;
302
- filterFn?: (option: T, query: string) => boolean;
303
- renderOption: (option: T) => React_2.ReactNode;
304
- getOptionValue: (option: T) => string;
305
- getDisplayValue: (option: T) => React_2.ReactNode;
337
+ initialOptions?: T[];
338
+ debounce?: number;
339
+ renderOptionItem: (option: T) => React_2.ReactNode;
340
+ resolveOptionValue: (option: T) => string;
341
+ renderSelectedValue: (option: T) => React_2.ReactNode;
306
342
  notFound?: React_2.ReactNode;
307
- loadingSkeleton?: React_2.ReactNode;
308
343
  value?: string;
309
344
  onChange?: (value: string) => void;
310
345
  label?: string | React_2.ReactNode;
311
- labelClassName?: string;
312
346
  placeholder?: string;
313
347
  disabled?: boolean;
314
- width?: string | number | "auto";
315
- triggerClassName?: string;
348
+ className?: string;
349
+ wrpClassName?: string;
316
350
  noResultsMessage?: string;
317
351
  clearable?: boolean;
318
352
  }
@@ -1763,6 +1797,18 @@ declare interface InterruptPromptProps {
1763
1797
  */
1764
1798
  export declare function isValidOperatorForType(operator: FilterOperator, columnType: IColumnType): boolean;
1765
1799
 
1800
+ declare type KanbanBoardCardAction = {
1801
+ label: string;
1802
+ icon?: ReactNode;
1803
+ onClick: () => void;
1804
+ variant?: "default" | "destructive";
1805
+ };
1806
+
1807
+ declare type KanbanBoardCardMetaItem = {
1808
+ name: ReactNode;
1809
+ value?: ReactNode;
1810
+ };
1811
+
1766
1812
  export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
1767
1813
 
1768
1814
  declare interface ListColumnConfig<TData> extends BaseColumnConfig<TData> {
@@ -1896,10 +1942,10 @@ export declare const MultipleSelector: React_2.ForwardRefExoticComponent<Multipl
1896
1942
  * @deprecated This component is deprecated. Please use AppSelect component instead.
1897
1943
  */
1898
1944
  declare interface MultipleSelectorProps {
1899
- value?: Option_2[];
1900
- defaultOptions?: Option_2[];
1945
+ value?: Option_3[];
1946
+ defaultOptions?: Option_3[];
1901
1947
  /** manually controlled options */
1902
- options?: Option_2[];
1948
+ options?: Option_3[];
1903
1949
  placeholder?: string;
1904
1950
  /** Loading component. */
1905
1951
  loadingIndicator?: React_2.ReactNode;
@@ -1913,14 +1959,14 @@ declare interface MultipleSelectorProps {
1913
1959
  **/
1914
1960
  triggerSearchOnFocus?: boolean;
1915
1961
  /** async search */
1916
- onSearch?: (value: string) => Promise<Option_2[]>;
1962
+ onSearch?: (value: string) => Promise<Option_3[]>;
1917
1963
  /**
1918
1964
  * sync search. This search will not showing loadingIndicator.
1919
1965
  * The rest props are the same as async search.
1920
1966
  * i.e.: creatable, groupBy, delay.
1921
1967
  **/
1922
- onSearchSync?: (value: string) => Option_2[];
1923
- onChange?: (options: Option_2[]) => void;
1968
+ onSearchSync?: (value: string) => Option_3[];
1969
+ onChange?: (options: Option_3[]) => void;
1924
1970
  /** Limit the maximum number of selected options. */
1925
1971
  maxSelected?: number;
1926
1972
  /** When the number of selected options exceeds the limit, the onMaxSelected will be called. */
@@ -1954,7 +2000,7 @@ declare interface MultipleSelectorProps {
1954
2000
  * @deprecated This interface is deprecated. Please use AppSelect component instead.
1955
2001
  */
1956
2002
  export declare interface MultipleSelectorRef {
1957
- selectedValue: Option_2[];
2003
+ selectedValue: Option_3[];
1958
2004
  input: HTMLInputElement;
1959
2005
  focus: () => void;
1960
2006
  reset: () => void;
@@ -2030,10 +2076,18 @@ declare type OnBarChangeType<T extends Record<string, unknown> = any> = (barData
2030
2076
 
2031
2077
  declare type OnBarDoubleClickType<T extends Record<string, unknown> = any> = (barData: GanttItemDataType<T>) => any;
2032
2078
 
2079
+ declare interface Option_2 {
2080
+ value: string;
2081
+ label: string;
2082
+ disabled?: boolean;
2083
+ description?: string;
2084
+ icon?: React_2.ReactNode;
2085
+ }
2086
+
2033
2087
  /**
2034
2088
  * @deprecated This interface is deprecated. Please use AppSelect component instead.
2035
2089
  */
2036
- declare interface Option_2 {
2090
+ declare interface Option_3 {
2037
2091
  value: string;
2038
2092
  label: string;
2039
2093
  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 U } from "./components/ui/spinner.js";
19
- import { Switch as q } from "./components/ui/switch.js";
20
- import { Textarea as K } from "./components/ui/textarea.js";
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 Ue, CommandItem as We, CommandList as qe, CommandSeparator as Je, CommandShortcut as Ke } from "./components/ui/command.js";
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 Wr, MenubarCheckboxItem as qr, MenubarContent as Jr, MenubarGroup as Kr, 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";
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 Uo, SheetHeader as Wo, SheetTitle as qo, SheetTrigger as Jo } from "./components/ui/sheet.js";
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 Ut, CarouselPrevious as Wt } from "./components/ui/carousel.js";
62
- import { ChartContainer as Jt, ChartLegend as Kt, ChartLegendContent as Qt, ChartStyle as Xt, ChartTooltip as Yt, ChartTooltipContent as Zt } from "./components/ui/chart.js";
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 Ua, NavigationMenuItem as Wa, NavigationMenuLink as qa, NavigationMenuList as Ja, NavigationMenuTrigger as Ka, NavigationMenuViewport as Qa } from "./components/ui/navigation-menu.js";
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 { AppStepper as Un } from "./components/ui/app-stepper.js";
92
- import { createActionColumn as qn, createBooleanColumn as Jn, createBooleanFilter as Kn, createComputedColumn as Qn, createDateColumn as Xn, createDateFilter as Yn, createDateTimeColumn as Zn, createDateTimeFilter as _n, createDisplayColumn as $n, createFilterBadge as ei, createFilterBadges as ri, createInitialState as oi, createListFilter as ti, createMultiSelectColumn as ai, createNumberColumn as ni, createNumberFilter as ii, createSingleSelectColumn as pi, createSorting as li, createStringColumn as mi, createStringFilter as ui, getColumnIds as xi, isValidOperatorForType as di, pinColumns as Ci, toSelectOptions as gi, toSelectOptionsFromObjects as fi, updateColumnListOptions as bi } from "./components/ui/tables/data-table/data-table.utils.js";
93
- import { useAudioRecording as ci } from "./hooks/use-audio-recording.js";
94
- import { useAutoScroll as Mi } from "./hooks/use-auto-scroll.js";
95
- import { useAutosizeTextArea as Di } from "./hooks/use-autosize-textarea.js";
96
- import { useCopyToClipboard as Fi } from "./hooks/use-copy-to-clipboard.js";
97
- import { useDebounce as Pi } from "./hooks/use-debounce.js";
98
- import { useIsMobile as vi } from "./hooks/use-mobile.js";
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
- Un as AppStepper,
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
- Ut as CarouselNext,
149
- Wt as CarouselPrevious,
150
- Jt as ChartContainer,
151
- Kt as ChartLegend,
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
- Ue as CommandInput,
171
- We as CommandItem,
172
- qe as CommandList,
173
- Je as CommandSeparator,
174
- Ke as CommandShortcut,
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
- Wr as Menubar,
246
- qr as MenubarCheckboxItem,
247
- Jr as MenubarContent,
248
- Kr as MenubarGroup,
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
- Ua as NavigationMenuIndicator,
267
- Wa as NavigationMenuItem,
268
- qa as NavigationMenuLink,
269
- Ja as NavigationMenuList,
270
- Ka as NavigationMenuTrigger,
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
- Uo as SheetFooter,
305
- Wo as SheetHeader,
306
- qo as SheetTitle,
307
- Jo as SheetTrigger,
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
- U as Spinner,
334
- q as Switch,
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
- K as Textarea,
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
- qn as createActionColumn,
365
- Jn as createBooleanColumn,
366
- Kn as createBooleanFilter,
367
- Qn as createComputedColumn,
368
- Xn as createDateColumn,
369
- Yn as createDateFilter,
370
- Zn as createDateTimeColumn,
371
- _n as createDateTimeFilter,
372
- $n as createDisplayColumn,
373
- ei as createFilterBadge,
374
- ri as createFilterBadges,
375
- oi as createInitialState,
376
- ti as createListFilter,
377
- ai as createMultiSelectColumn,
378
- ni as createNumberColumn,
379
- ii as createNumberFilter,
380
- pi as createSingleSelectColumn,
381
- li as createSorting,
382
- mi as createStringColumn,
383
- ui as createStringFilter,
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
- xi as getColumnIds,
387
+ Ci as getColumnIds,
386
388
  On as hexContrast,
387
389
  Vn as hexToRgba,
388
- di as isValidOperatorForType,
389
- Ci as pinColumns,
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
- gi as toSelectOptions,
395
- fi as toSelectOptionsFromObjects,
396
+ bi as toSelectOptions,
397
+ si as toSelectOptionsFromObjects,
396
398
  _ as toggleVariants,
397
- bi as updateColumnListOptions,
398
- ci as useAudioRecording,
399
- Mi as useAutoScroll,
400
- Di as useAutosizeTextArea,
401
- Fi as useCopyToClipboard,
402
- Pi as useDebounce,
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
- vi as useIsMobile,
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 "../../react-slot/dist/index.js";
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 "../../react-slot/dist/index.js";
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(
@@ -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 "../../react-slot/dist/index.js";
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 {
@@ -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 "../../react-slot/dist/index.js";
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";