laif-ds 0.2.74 → 0.2.75

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 (151) hide show
  1. package/dist/CHANGELOG.md +431 -0
  2. package/dist/agent-docs/adoption-report.json +614 -0
  3. package/dist/agent-docs/components/Accordion.md +46 -16
  4. package/dist/agent-docs/components/Alert.md +90 -95
  5. package/dist/agent-docs/components/AlertDialog.md +132 -126
  6. package/dist/agent-docs/components/AppEditor.md +90 -90
  7. package/dist/agent-docs/components/AppRadioGroup.md +18 -18
  8. package/dist/agent-docs/components/AppSidebar.md +129 -122
  9. package/dist/agent-docs/components/AppStepper.md +81 -77
  10. package/dist/agent-docs/components/AspectRatio.md +70 -62
  11. package/dist/agent-docs/components/AudioVisualizer.md +5 -5
  12. package/dist/agent-docs/components/Avatar.md +112 -113
  13. package/dist/agent-docs/components/Badge.md +123 -118
  14. package/dist/agent-docs/components/Breadcrumb.md +8 -1
  15. package/dist/agent-docs/components/Button.md +131 -129
  16. package/dist/agent-docs/components/Card.md +172 -147
  17. package/dist/agent-docs/components/Carousel.md +148 -129
  18. package/dist/agent-docs/components/Chat.md +121 -109
  19. package/dist/agent-docs/components/ChatMessage.md +72 -61
  20. package/dist/agent-docs/components/Checkbox.md +150 -135
  21. package/dist/agent-docs/components/CircularProgress.md +53 -49
  22. package/dist/agent-docs/components/CodeHighlighter.md +4 -4
  23. package/dist/agent-docs/components/Collapsible.md +114 -95
  24. package/dist/agent-docs/components/Command.md +141 -142
  25. package/dist/agent-docs/components/Confirmer.md +182 -175
  26. package/dist/agent-docs/components/ContextMenu.md +196 -191
  27. package/dist/agent-docs/components/DataCrossTable.md +114 -94
  28. package/dist/agent-docs/components/DataTable.md +29 -24
  29. package/dist/agent-docs/components/Dialog.md +130 -125
  30. package/dist/agent-docs/components/Drawer.md +141 -127
  31. package/dist/agent-docs/components/FilePreviewer.md +138 -139
  32. package/dist/agent-docs/components/FileUploader.md +143 -129
  33. package/dist/agent-docs/components/Form.md +3 -1
  34. package/dist/agent-docs/components/FormComposer.md +163 -137
  35. package/dist/agent-docs/components/GanttChart.md +125 -122
  36. package/dist/agent-docs/components/HoverCard.md +1 -1
  37. package/dist/agent-docs/components/Icon.md +98 -99
  38. package/dist/agent-docs/components/Input.md +173 -138
  39. package/dist/agent-docs/components/InputOtp.md +6 -1
  40. package/dist/agent-docs/components/InputSelector.md +94 -97
  41. package/dist/agent-docs/components/InterruptPrompt.md +4 -4
  42. package/dist/agent-docs/components/MarkdownRenderer.md +5 -2
  43. package/dist/agent-docs/components/Menubar.md +60 -57
  44. package/dist/agent-docs/components/MessageInput.md +134 -131
  45. package/dist/agent-docs/components/MessageList.md +110 -96
  46. package/dist/agent-docs/components/MultipleSelector.md +147 -146
  47. package/dist/agent-docs/components/NavigationMenu.md +6 -2
  48. package/dist/agent-docs/components/Popover.md +112 -103
  49. package/dist/agent-docs/components/PromptSuggestions.md +5 -5
  50. package/dist/agent-docs/components/RadioGroup.md +97 -90
  51. package/dist/agent-docs/components/Resizable.md +4 -1
  52. package/dist/agent-docs/components/ResizePrompt.md +12 -13
  53. package/dist/agent-docs/components/ScrollArea.md +6 -2
  54. package/dist/agent-docs/components/SecurePdfViewer.md +10 -6
  55. package/dist/agent-docs/components/Select.md +131 -132
  56. package/dist/agent-docs/components/Sheet.md +8 -1
  57. package/dist/agent-docs/components/ShikiHighlighter.md +5 -5
  58. package/dist/agent-docs/components/Sidebar.md +94 -85
  59. package/dist/agent-docs/components/Slider.md +62 -58
  60. package/dist/agent-docs/components/Sonner.md +1 -0
  61. package/dist/agent-docs/components/Spinner.md +14 -14
  62. package/dist/agent-docs/components/Stepper.md +93 -67
  63. package/dist/agent-docs/components/Switch.md +41 -42
  64. package/dist/agent-docs/components/TableSkeleton.md +8 -8
  65. package/dist/agent-docs/components/Tabs.md +106 -86
  66. package/dist/agent-docs/components/TextArea.md +51 -52
  67. package/dist/agent-docs/components/ThemeSwitcher.md +72 -69
  68. package/dist/agent-docs/components/Toaster.md +1 -0
  69. package/dist/agent-docs/components/Tooltip.md +102 -91
  70. package/dist/agent-docs/components/Typo.md +68 -65
  71. package/dist/agent-docs/components/WeeklyCalendar.md +63 -64
  72. package/dist/agent-docs/manifest.json +5979 -0
  73. package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
  74. package/dist/components/editor/plugins/actions/counter-character-plugin.js +6 -6
  75. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +18 -18
  76. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +10 -10
  77. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +9 -9
  78. package/dist/components/ui/app-checkbox.js +1 -1
  79. package/dist/components/ui/app-dialog.js +70 -64
  80. package/dist/components/ui/app-editor.js +51 -51
  81. package/dist/components/ui/app-form.js +81 -81
  82. package/dist/components/ui/app-multiple-select-dropdown.js +36 -36
  83. package/dist/components/ui/app-select.js +109 -104
  84. package/dist/components/ui/app-sidebar.js +41 -41
  85. package/dist/components/ui/app-stepper.js +1 -1
  86. package/dist/components/ui/app-time-picker.js +18 -18
  87. package/dist/components/ui/app-tooltip.js +1 -1
  88. package/dist/components/ui/async-select.js +5 -5
  89. package/dist/components/ui/audio-visualizer.js +61 -58
  90. package/dist/components/ui/card.js +1 -1
  91. package/dist/components/ui/carousel.js +2 -2
  92. package/dist/components/ui/chart.js +1 -1
  93. package/dist/components/ui/chat-message.js +8 -8
  94. package/dist/components/ui/chat.js +86 -88
  95. package/dist/components/ui/command.js +2 -2
  96. package/dist/components/ui/copy-button.js +4 -4
  97. package/dist/components/ui/date-picker.js +20 -20
  98. package/dist/components/ui/file-preview/index.js +13 -13
  99. package/dist/components/ui/file-previewer.js +12 -11
  100. package/dist/components/ui/form.js +2 -2
  101. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +56 -56
  102. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +12 -12
  103. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +1 -1
  104. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +4 -4
  105. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +2 -2
  106. package/dist/components/ui/gantt/components/Chart/Chart.js +23 -23
  107. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +1 -1
  108. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +34 -34
  109. package/dist/components/ui/gantt/components/Controls/Controls.js +5 -5
  110. package/dist/components/ui/gantt/components/Gantt/Gantt.js +4 -4
  111. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +25 -18
  112. package/dist/components/ui/input-selector.js +1 -1
  113. package/dist/components/ui/input.js +23 -23
  114. package/dist/components/ui/kanban.js +8 -9
  115. package/dist/components/ui/markdown-renderer.js +41 -35
  116. package/dist/components/ui/message-input.js +45 -44
  117. package/dist/components/ui/multiple-selector.js +91 -82
  118. package/dist/components/ui/secure-pdf-viewer.js +19 -7
  119. package/dist/components/ui/sidebar.js +1 -1
  120. package/dist/components/ui/slider.js +1 -1
  121. package/dist/components/ui/spinner.js +4 -4
  122. package/dist/components/ui/stepper.js +157 -138
  123. package/dist/components/ui/tables/data-cross-table/data-cross-table-buttons.js +29 -29
  124. package/dist/components/ui/tables/data-cross-table/data-cross-table.js +258 -246
  125. package/dist/components/ui/tables/data-table/components/data-table-advanced-filter.js +4 -1
  126. package/dist/components/ui/tables/data-table/components/data-table-body.js +204 -368
  127. package/dist/components/ui/tables/data-table/components/data-table-filter-inputs.js +114 -112
  128. package/dist/components/ui/tables/data-table/components/data-table-filters.js +116 -96
  129. package/dist/components/ui/tables/data-table/components/data-table-header.js +210 -0
  130. package/dist/components/ui/tables/data-table/components/data-table-searchbar.js +8 -8
  131. package/dist/components/ui/tables/data-table/components/data-table-skeleton-rows.js +33 -0
  132. package/dist/components/ui/tables/data-table/data-table.js +256 -250
  133. package/dist/components/ui/tables/data-table/data-table.service.js +112 -97
  134. package/dist/components/ui/tables/data-table/data-table.utils.js +2 -0
  135. package/dist/components/ui/textarea.js +2 -2
  136. package/dist/components/ui/theme-switcher.js +1 -1
  137. package/dist/components/ui/toggle-group.js +2 -2
  138. package/dist/components/ui/weekly-calendar/appointment-card.js +16 -16
  139. package/dist/components/ui/weekly-calendar/calendar-context.js +6 -6
  140. package/dist/components/ui/weekly-calendar/calendar-header.js +12 -12
  141. package/dist/components/ui/weekly-calendar/day-column.js +16 -16
  142. package/dist/components/ui/weekly-calendar/time-column.js +4 -4
  143. package/dist/components/ui/weekly-calendar/weekly-calendar.js +4 -4
  144. package/dist/hooks/use-audio-recording.js +1 -1
  145. package/dist/hooks/use-auto-scroll.js +18 -18
  146. package/dist/hooks/use-autosize-textarea.js +12 -13
  147. package/dist/index.d.ts +67 -43
  148. package/dist/index.js +229 -229
  149. package/dist/lib/utils.js +6 -6
  150. package/dist/styles.v3.css +1 -1
  151. package/package.json +14 -4
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
3
  import u from "react";
4
- import { useCalendar as b } from "./calendar-context.js";
5
- import { Badge as p } from "../badge.js";
4
+ import { Badge as b } from "../badge.js";
5
+ import { useCalendar as p } from "./calendar-context.js";
6
6
  const N = () => {
7
7
  const {
8
8
  calendarStartHour: t = 6,
9
9
  calendarEndHour: d = 18,
10
10
  enableGrouping: s,
11
11
  groupLabel: i
12
- } = b(), c = u.useMemo(() => {
12
+ } = p(), c = u.useMemo(() => {
13
13
  const e = d - t + 1;
14
14
  return Array.from({ length: e }, (n, m) => {
15
15
  const o = m + t, l = o < 12 ? "AM" : "PM";
@@ -21,7 +21,7 @@ const N = () => {
21
21
  }, [t, d]);
22
22
  return /* @__PURE__ */ a("div", { className: "border-d-border bg-d-card z-20 flex-shrink-0 border-r px-2", children: [
23
23
  /* @__PURE__ */ r("div", { className: "border-d-border h-14 border-b" }),
24
- s && /* @__PURE__ */ r("div", { className: "border-d-border flex min-h-[2.5rem] items-center justify-center border-b", children: /* @__PURE__ */ r(p, { variant: "outline", children: i }) }),
24
+ s && /* @__PURE__ */ r("div", { className: "border-d-border flex min-h-[2.5rem] items-center justify-center border-b", children: /* @__PURE__ */ r(b, { variant: "outline", children: i }) }),
25
25
  /* @__PURE__ */ r("div", { className: "relative", children: c.map(({ label: e, ampm: n }) => /* @__PURE__ */ a(
26
26
  "div",
27
27
  {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as f, jsxs as y } from "react/jsx-runtime";
3
- import d from "react";
4
3
  import a from "../../../_virtual/dayjs.min.js";
5
4
  import N from "../../../_virtual/isoWeek.js";
5
+ import d from "react";
6
6
  import { CalendarProvider as h } from "./calendar-context.js";
7
7
  import { CalendarHeader as B } from "./calendar-header.js";
8
- import { TimeColumn as C } from "./time-column.js";
8
+ import { CurrentTimeLine as C } from "./current-timeline.js";
9
9
  import { DayColumn as V } from "./day-column.js";
10
- import { CurrentTimeLine as z } from "./current-timeline.js";
10
+ import { TimeColumn as z } from "./time-column.js";
11
11
  a.extend(N);
12
12
  const L = [
13
13
  { key: "monday", label: "Lunedì", dayjs: 1 },
@@ -102,8 +102,8 @@ function Q({
102
102
  }, children: /* @__PURE__ */ y("div", { className: "flex h-full flex-col", children: [
103
103
  /* @__PURE__ */ f(B, {}),
104
104
  /* @__PURE__ */ y("div", { className: "border-d-border relative flex flex-1 border-t border-l", children: [
105
- /* @__PURE__ */ f(C, {}),
106
105
  /* @__PURE__ */ f(z, {}),
106
+ /* @__PURE__ */ f(C, {}),
107
107
  /* @__PURE__ */ f("div", { className: "flex flex-1 overflow-x-auto", children: k.map((e, t) => /* @__PURE__ */ f(
108
108
  V,
109
109
  {
@@ -17,7 +17,7 @@ function w({
17
17
  try {
18
18
  f.stop();
19
19
  const e = await a.current;
20
- if (t) {
20
+ if (t && e) {
21
21
  const s = await t(e);
22
22
  d?.(s);
23
23
  }
@@ -1,35 +1,35 @@
1
1
  "use client";
2
- import { useRef as l, useState as h, useEffect as s } from "react";
2
+ import { useRef as l, useState as w, useCallback as h, useEffect as s } from "react";
3
3
  const H = 50, m = 10;
4
- function D(u) {
5
- const e = l(null), t = l(null), [n, r] = h(!0), c = () => {
4
+ function D() {
5
+ const e = l(null), t = l(null), [r, n] = w(!0), c = h(() => {
6
6
  typeof window > "u" || e.current && (e.current.scrollTop = e.current.scrollHeight);
7
- }, i = () => {
7
+ }, []), u = () => {
8
8
  if (!(typeof window > "u") && e.current) {
9
- const { scrollTop: o, scrollHeight: d, clientHeight: p } = e.current, S = Math.abs(
10
- d - o - p
11
- ), a = t.current ? o < t.current : !1, T = t.current ? t.current - o : 0;
12
- if (a && T > m)
13
- r(!1);
9
+ const { scrollTop: o, scrollHeight: f, clientHeight: d } = e.current, a = Math.abs(
10
+ f - o - d
11
+ ), p = t.current ? o < t.current : !1, S = t.current ? t.current - o : 0;
12
+ if (p && S > m)
13
+ n(!1);
14
14
  else {
15
- const w = S < H;
16
- r(w);
15
+ const T = a < H;
16
+ n(T);
17
17
  }
18
18
  t.current = o;
19
19
  }
20
- }, f = () => {
21
- typeof window > "u" || r(!1);
20
+ }, i = () => {
21
+ typeof window > "u" || n(!1);
22
22
  };
23
23
  return s(() => {
24
24
  typeof window > "u" || e.current && (t.current = e.current.scrollTop);
25
25
  }, []), s(() => {
26
- typeof window > "u" || n && c();
27
- }, u), {
26
+ typeof window > "u" || r && c();
27
+ }, [r, c]), {
28
28
  containerRef: e,
29
29
  scrollToBottom: c,
30
- handleScroll: i,
31
- shouldAutoScroll: n,
32
- handleTouchStart: f
30
+ handleScroll: u,
31
+ shouldAutoScroll: r,
32
+ handleTouchStart: i
33
33
  };
34
34
  }
35
35
  export {
@@ -1,22 +1,21 @@
1
1
  "use client";
2
- import { useRef as f, useLayoutEffect as a } from "react";
3
- const d = typeof window < "u" ? a : () => {
2
+ import { useRef as l, useLayoutEffect as f } from "react";
3
+ const a = typeof window < "u" ? f : () => {
4
4
  };
5
- function m({
5
+ function h({
6
6
  ref: t,
7
7
  maxHeight: o = Number.MAX_SAFE_INTEGER,
8
- borderWidth: u = 0,
9
- dependencies: c
8
+ borderWidth: r = 0
10
9
  }) {
11
- const n = f(null);
12
- d(() => {
10
+ const n = l(null);
11
+ a(() => {
13
12
  if (typeof window > "u" || !t.current) return;
14
- const e = t.current, r = u * 2;
15
- n.current === null && (n.current = e.scrollHeight - r), e.style.removeProperty("height");
16
- const s = e.scrollHeight, i = Math.min(s, o), l = Math.max(i, n.current);
17
- e.style.height = `${l + r}px`;
18
- }, [o, t, ...c]);
13
+ const e = t.current, u = r * 2;
14
+ n.current === null && (n.current = e.scrollHeight - u), e.style.removeProperty("height");
15
+ const c = e.scrollHeight, s = Math.min(c, o), i = Math.max(s, n.current);
16
+ e.style.height = `${i + u}px`;
17
+ }, [o, t, r]);
19
18
  }
20
19
  export {
21
- m as useAutosizeTextArea
20
+ h as useAutosizeTextArea
22
21
  };
package/dist/index.d.ts CHANGED
@@ -67,6 +67,15 @@ import { VariantProps } from 'class-variance-authority';
67
67
 
68
68
  declare type AcceptItem = "pdf" | "doc" | "docx" | "xls" | "xlsx" | "ppt" | "pptx" | "txt" | "csv" | "jpg" | "jpeg" | "png" | "gif" | "image" | "video" | "audio";
69
69
 
70
+ /**
71
+ * Distributive helper: for a given key K, creates a config where cell gets the resolved value type.
72
+ * By distributing over each key individually, TypeScript narrows the value type based on the literal accessorKey.
73
+ */
74
+ declare type AccessorColumnConfigForKey<TData, K extends string> = BaseColumnFields & {
75
+ accessorKey: K;
76
+ cell?: (value: DeepValue<TData, K>, row: TData, tableRow: Row<TData>) => React.ReactNode;
77
+ };
78
+
70
79
  export declare function Accordion({ ...props }: AccordionProps): JSX.Element;
71
80
 
72
81
  export declare function AccordionContent({ className, children, ...props }: AccordionContentProps): JSX.Element;
@@ -221,9 +230,9 @@ declare interface AppEditorProps {
221
230
 
222
231
  declare type AppEditorToolbar = "block-format" | "font-format" | "history";
223
232
 
224
- export declare const AppForm: ({ items, cols, form, submitText, onSubmit, isSubmitting, showSubmitButton, }: AppFormProps) => JSX.Element;
233
+ export declare const AppForm: <TFormValues extends FieldValues = FieldValues, TAsyncOption = unknown>({ items, cols, form, submitText, onSubmit, isSubmitting, showSubmitButton, }: AppFormProps<TFormValues, TAsyncOption>) => JSX.Element;
225
234
 
226
- export declare interface AppFormItem {
235
+ export declare interface AppFormItem<TAsyncOption = unknown> {
227
236
  label: string;
228
237
  component: "input" | "select" | "textarea" | "checkbox" | "multiselect" | "datepicker" | "radio" | "switch" | "slider" | "async" | "async-multiple";
229
238
  name: string;
@@ -237,11 +246,11 @@ export declare interface AppFormItem {
237
246
  min?: number;
238
247
  max?: number;
239
248
  step?: number;
240
- fetcher?: (query?: string) => Promise<any[]>;
241
- renderOptionItem?: (option: any) => React.ReactNode;
242
- resolveOptionValue?: (option: any) => string;
243
- renderSelectedValue?: (option: any) => React.ReactNode;
244
- initialOptions?: any[];
249
+ fetcher?: (query?: string) => Promise<TAsyncOption[]>;
250
+ renderOptionItem?: (option: TAsyncOption) => React.ReactNode;
251
+ resolveOptionValue?: (option: TAsyncOption) => string;
252
+ renderSelectedValue?: (option: TAsyncOption) => React.ReactNode;
253
+ initialOptions?: TAsyncOption[];
245
254
  notFound?: React.ReactNode;
246
255
  noResultsMessage?: string;
247
256
  debounce?: number;
@@ -249,17 +258,17 @@ export declare interface AppFormItem {
249
258
  datePickerProps?: Partial<ComponentProps<typeof DatePicker>>;
250
259
  }
251
260
 
252
- declare interface AppFormProps {
261
+ declare interface AppFormProps<TFormValues extends FieldValues = FieldValues, TAsyncOption = unknown> {
253
262
  cols?: "1" | "2" | "3";
254
- items: AppFormItem[];
255
- form: UseFormReturn<any>;
263
+ items: AppFormItem<TAsyncOption>[];
264
+ form: UseFormReturn<TFormValues>;
256
265
  submitText?: string;
257
- onSubmit?: (data: any) => void;
266
+ onSubmit?: (data: TFormValues) => void;
258
267
  isSubmitting?: boolean;
259
268
  showSubmitButton?: boolean;
260
269
  }
261
270
 
262
- export declare function AppKanban<T = any>({ columns, initialTasks, onTaskMove, onTaskEdit, onTaskCreate, taskActions, renderTaskContent, className, allowTaskCreate, }: AppKanbanConfig<T>): JSX.Element;
271
+ export declare function AppKanban<T = unknown>({ columns, initialTasks, onTaskMove, onTaskEdit, onTaskCreate, taskActions, renderTaskContent, className, allowTaskCreate, }: AppKanbanConfig<T>): JSX.Element;
263
272
 
264
273
  export declare type AppKanbanColumn = {
265
274
  id: string;
@@ -275,7 +284,7 @@ export declare type AppKanbanColumn = {
275
284
  disableOnDragOut?: boolean;
276
285
  };
277
286
 
278
- export declare type AppKanbanConfig<T = any> = {
287
+ export declare type AppKanbanConfig<T = unknown> = {
279
288
  columns: AppKanbanColumn[];
280
289
  initialTasks: Record<string, AppKanbanTask<T>[]>;
281
290
  onTaskMove?: (taskId: string, fromColumn: string, toColumn: string) => void;
@@ -288,7 +297,7 @@ export declare type AppKanbanConfig<T = any> = {
288
297
  createTaskLabel?: string;
289
298
  };
290
299
 
291
- export declare type AppKanbanTask<T = any> = {
300
+ export declare type AppKanbanTask<T = unknown> = {
292
301
  id: string;
293
302
  title: string;
294
303
  description?: string;
@@ -355,7 +364,7 @@ export declare interface AppSelectOption {
355
364
 
356
365
  export declare type AppSelectProps = SingleSelectProps | MultiSelectProps;
357
366
 
358
- export declare function AppSidebar({ navigation, navigationFooter, versions, defaultVersion, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
367
+ export declare function AppSidebar({ navigation, navigationFooter, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
359
368
 
360
369
  declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar> {
361
370
  navigation: NavGroup[];
@@ -365,8 +374,10 @@ declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar>
365
374
  headerContent?: React_2.ReactNode;
366
375
  footerContent?: React_2.ReactNode;
367
376
  showRail?: boolean;
368
- linkComponent?: React_2.ComponentType<any>;
369
- linkProps?: Record<string, any>;
377
+ linkComponent?: React_2.ComponentType<React_2.AnchorHTMLAttributes<HTMLAnchorElement> & {
378
+ href: string;
379
+ }>;
380
+ linkProps?: Record<string, unknown>;
370
381
  }
371
382
 
372
383
  export declare interface AppStep {
@@ -584,14 +595,16 @@ export declare const badgeVariants: (props?: ({
584
595
 
585
596
  declare type BarItemDataType = RepeatDataType | NoRepeatDataType;
586
597
 
587
- export declare type BaseColumnConfig<TData> = {
598
+ /** Base configuration for all column types — discriminated on accessorKey presence */
599
+ export declare type BaseColumnConfig<TData> = DistributedAccessorConfig<TData> | DisplayColumnConfig<TData>;
600
+
601
+ /** Common fields shared by all column configs */
602
+ declare type BaseColumnFields = {
588
603
  id?: string;
589
- accessorKey?: DeepKeys<TData>;
590
604
  sortable?: boolean;
591
605
  filterable?: boolean;
592
606
  searchable?: boolean;
593
607
  pinned?: "left" | "right";
594
- cell?: (value: any, row: TData, tableRow: Row<TData>) => React.ReactNode;
595
608
  } & HeaderConfig;
596
609
 
597
610
  declare type BaseProps = {
@@ -776,18 +789,18 @@ export declare function ChartTooltipContent({ active, payload, className, indica
776
789
  payload?: Array<{
777
790
  dataKey?: string;
778
791
  name?: string;
779
- value?: any;
792
+ value?: unknown;
780
793
  color?: string;
781
- payload?: any;
794
+ payload?: Record<string, unknown>;
782
795
  }>;
783
796
  label?: string | number;
784
797
  className?: string;
785
798
  indicator?: "line" | "dot" | "dashed";
786
799
  hideLabel?: boolean;
787
800
  hideIndicator?: boolean;
788
- labelFormatter?: (value: any, payload: any) => React_2.ReactNode;
801
+ labelFormatter?: (value: unknown, payload: unknown) => React_2.ReactNode;
789
802
  labelClassName?: string;
790
- formatter?: (value: any, name: any, item: any, index: number, payload: any) => React_2.ReactNode;
803
+ formatter?: (value: unknown, name: unknown, item: unknown, index: number, payload: unknown) => React_2.ReactNode;
791
804
  color?: string;
792
805
  nameKey?: string;
793
806
  labelKey?: string;
@@ -833,9 +846,7 @@ export declare interface ChatMessageProps extends Message {
833
846
  onMessageSave?: (messageId: string, content: string) => void;
834
847
  }
835
848
 
836
- export declare function ChatMessages({ messages, children, }: React.PropsWithChildren<{
837
- messages: Message[];
838
- }>): JSX.Element;
849
+ export declare function ChatMessages({ children }: React.PropsWithChildren): JSX.Element;
839
850
 
840
851
  declare type ChatProps = ChatPropsWithoutSuggestions | ChatPropsWithSuggestions;
841
852
 
@@ -943,7 +954,7 @@ export declare interface ConfirmedCell {
943
954
  fromId: string;
944
955
  toId: string;
945
956
  id?: string;
946
- value: any;
957
+ value: unknown;
947
958
  }
948
959
 
949
960
  export declare interface ConfirmedCellsData {
@@ -1322,19 +1333,19 @@ export declare interface DataCrossTableButtonsGroupProps {
1322
1333
 
1323
1334
  declare interface DataCrossTableContextType {
1324
1335
  editedCells: Record<string, {
1325
- value: any;
1336
+ value: unknown;
1326
1337
  cell: CrossTableCell;
1327
1338
  }>;
1328
1339
  setEditedCells: default_2.Dispatch<default_2.SetStateAction<Record<string, {
1329
- value: any;
1340
+ value: unknown;
1330
1341
  cell: CrossTableCell;
1331
1342
  }>>>;
1332
1343
  toDefaultCells: Record<string, {
1333
- value: any;
1344
+ value: unknown;
1334
1345
  cell: CrossTableCell;
1335
1346
  }>;
1336
1347
  setToDefaultCells: default_2.Dispatch<default_2.SetStateAction<Record<string, {
1337
- value: any;
1348
+ value: unknown;
1338
1349
  cell: CrossTableCell;
1339
1350
  }>>>;
1340
1351
  editMode: boolean;
@@ -1592,6 +1603,7 @@ export declare interface DataTableProps<TData, TValue> {
1592
1603
  export declare interface DataTableServerConfig {
1593
1604
  totalItems: number;
1594
1605
  onStateChange: (state: ServerState) => void;
1606
+ serverDebounceTime?: number;
1595
1607
  }
1596
1608
 
1597
1609
  export declare interface DataTableSorting {
@@ -1703,6 +1715,12 @@ declare type DeepKeys<T> = T extends object ? {
1703
1715
  [K in keyof T & string]: NonNullable<T[K]> extends object ? NonNullable<T[K]> extends any[] ? `${K}` : `${K}` | `${K}.${DeepKeys<NonNullable<T[K]>>}` : `${K}`;
1704
1716
  }[keyof T & string] : never;
1705
1717
 
1718
+ /**
1719
+ * Type helper to resolve the actual value type from a dot-notation accessor path
1720
+ * e.g. DeepValue<{ user: { name: string } }, "user.name"> = string
1721
+ */
1722
+ declare type DeepValue<T, K extends string> = K extends `${infer First}.${infer Rest}` ? First extends keyof T ? DeepValue<NonNullable<T[First]>, Rest> : never : K extends keyof T ? T[K] : never;
1723
+
1706
1724
  export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
1707
1725
 
1708
1726
  export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>): JSX.Element;
@@ -1723,6 +1741,15 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
1723
1741
 
1724
1742
  export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element;
1725
1743
 
1744
+ /** Column config without accessorKey — cell receives undefined as value */
1745
+ declare type DisplayColumnConfig<TData> = BaseColumnFields & {
1746
+ accessorKey?: undefined;
1747
+ cell?: (value: undefined, row: TData, tableRow: Row<TData>) => React.ReactNode;
1748
+ };
1749
+
1750
+ /** Distributes AccessorColumnConfig over each key in the DeepKeys union */
1751
+ declare type DistributedAccessorConfig<TData> = DeepKeys<TData> extends infer K ? K extends string ? AccessorColumnConfigForKey<TData, K> : never : never;
1752
+
1726
1753
  export declare const downloadFile: (url: string, filename?: string) => void;
1727
1754
 
1728
1755
  export declare enum DragStepSizes {
@@ -2071,7 +2098,7 @@ declare interface IconProps {
2071
2098
  /** Colore dell'icona (sovrascrive la classe) */
2072
2099
  color?: string;
2073
2100
  /** Attributi aggiuntivi */
2074
- [key: string]: any;
2101
+ [key: string]: unknown;
2075
2102
  }
2076
2103
 
2077
2104
  declare type IconSize = keyof typeof sizeMap;
@@ -2450,9 +2477,9 @@ declare type NoRepeatDataType = {
2450
2477
  monthdays?: never;
2451
2478
  };
2452
2479
 
2453
- declare type OnBarChangeType<T extends Record<string, unknown> = any> = (barData: GanttItemDataType<T>, data: (GanttItemDataType<T> & T)[]) => any;
2480
+ declare type OnBarChangeType<T extends Record<string, unknown> = Record<string, unknown>> = (barData: GanttItemDataType<T>, data: (GanttItemDataType<T> & T)[]) => void;
2454
2481
 
2455
- declare type OnBarDoubleClickType<T extends Record<string, unknown> = any> = (barData: GanttItemDataType<T>) => any;
2482
+ declare type OnBarDoubleClickType<T extends Record<string, unknown> = Record<string, unknown>> = (barData: GanttItemDataType<T>) => void;
2456
2483
 
2457
2484
  declare interface Option_2 {
2458
2485
  value: string;
@@ -2928,14 +2955,12 @@ export declare const toggleVariants: (props?: ({
2928
2955
  size?: "default" | "sm" | "lg" | null | undefined;
2929
2956
  } & ClassProp) | undefined) => string;
2930
2957
 
2931
- declare function ToolCall({ toolInvocations, }: Pick<ChatMessageProps, "toolInvocations">): JSX.Element | null;
2932
-
2933
- declare interface ToolCall {
2958
+ declare interface ToolCallData {
2934
2959
  state: "call";
2935
2960
  toolName: string;
2936
2961
  }
2937
2962
 
2938
- declare type ToolInvocation = PartialToolCall | ToolCall | ToolResult;
2963
+ declare type ToolInvocation = PartialToolCall | ToolCallData | ToolResult;
2939
2964
 
2940
2965
  declare interface ToolInvocationPart {
2941
2966
  type: "tool-invocation";
@@ -2947,7 +2972,7 @@ declare interface ToolResult {
2947
2972
  toolName: string;
2948
2973
  result: {
2949
2974
  __cancelled?: boolean;
2950
- [key: string]: any;
2975
+ [key: string]: unknown;
2951
2976
  };
2952
2977
  }
2953
2978
 
@@ -3024,7 +3049,7 @@ declare interface UseAudioRecordingOptions {
3024
3049
  onTranscriptionComplete?: (text: string) => void;
3025
3050
  }
3026
3051
 
3027
- export declare function useAutoScroll(dependencies: React.DependencyList): {
3052
+ export declare function useAutoScroll(): {
3028
3053
  containerRef: RefObject<HTMLDivElement | null>;
3029
3054
  scrollToBottom: () => void;
3030
3055
  handleScroll: () => void;
@@ -3032,13 +3057,12 @@ export declare function useAutoScroll(dependencies: React.DependencyList): {
3032
3057
  handleTouchStart: () => void;
3033
3058
  };
3034
3059
 
3035
- export declare function useAutosizeTextArea({ ref, maxHeight, borderWidth, dependencies, }: UseAutosizeTextAreaProps): void;
3060
+ export declare function useAutosizeTextArea({ ref, maxHeight, borderWidth, }: UseAutosizeTextAreaProps): void;
3036
3061
 
3037
3062
  declare interface UseAutosizeTextAreaProps {
3038
3063
  ref: React.RefObject<HTMLTextAreaElement>;
3039
3064
  maxHeight?: number;
3040
3065
  borderWidth?: number;
3041
- dependencies: React.DependencyList;
3042
3066
  }
3043
3067
 
3044
3068
  declare type UseCarouselParameters = Parameters<typeof default_3>;