@refraction-ui/react 0.18.4 → 0.19.1

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 (94) hide show
  1. package/dist/index.cjs +7147 -5367
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +3413 -2754
  4. package/dist/index.js.map +1 -1
  5. package/dist/internal/analytics/index.d.cts +6 -0
  6. package/dist/internal/analytics/index.d.ts +6 -0
  7. package/dist/internal/calendar/index.d.cts +5 -3
  8. package/dist/internal/calendar/index.d.ts +5 -3
  9. package/dist/internal/call-controls/index.d.ts +1 -3
  10. package/dist/internal/command-input/index.d.cts +10 -2
  11. package/dist/internal/command-input/index.d.ts +10 -2
  12. package/dist/internal/conversation/index.d.cts +2 -0
  13. package/dist/internal/conversation/index.d.ts +2 -0
  14. package/dist/internal/date-picker/index.d.cts +2 -0
  15. package/dist/internal/date-picker/index.d.ts +2 -0
  16. package/dist/internal/device-frame/index.d.cts +1 -3
  17. package/dist/internal/device-frame/index.d.ts +1 -3
  18. package/dist/internal/emoji-picker/index.d.cts +1 -3
  19. package/dist/internal/emoji-picker/index.d.ts +1 -3
  20. package/dist/internal/file-tree/index.d.cts +125 -0
  21. package/dist/internal/file-tree/index.d.ts +125 -0
  22. package/dist/internal/footer/index.d.cts +2 -0
  23. package/dist/internal/footer/index.d.ts +2 -0
  24. package/dist/internal/logger/index.d.cts +4 -0
  25. package/dist/internal/logger/index.d.ts +4 -0
  26. package/dist/internal/presence-indicator/index.d.cts +1 -3
  27. package/dist/internal/presence-indicator/index.d.ts +1 -3
  28. package/dist/internal/react-app-shell/index.d.cts +7 -51
  29. package/dist/internal/react-app-shell/index.d.ts +7 -51
  30. package/dist/internal/react-avatar-group/index.d.cts +1 -21
  31. package/dist/internal/react-avatar-group/index.d.ts +1 -21
  32. package/dist/internal/react-calendar/index.d.cts +2 -27
  33. package/dist/internal/react-calendar/index.d.ts +2 -27
  34. package/dist/internal/react-charts/index.d.cts +20 -10
  35. package/dist/internal/react-charts/index.d.ts +20 -10
  36. package/dist/internal/react-command/index.d.cts +1 -1
  37. package/dist/internal/react-command/index.d.ts +1 -1
  38. package/dist/internal/react-conversation/index.d.cts +2 -6
  39. package/dist/internal/react-conversation/index.d.ts +2 -6
  40. package/dist/internal/react-cookie-consent/index.d.cts +1 -6
  41. package/dist/internal/react-cookie-consent/index.d.ts +1 -6
  42. package/dist/internal/react-date-picker/index.d.cts +1 -0
  43. package/dist/internal/react-date-picker/index.d.ts +1 -0
  44. package/dist/internal/react-device-frame/index.d.cts +1 -25
  45. package/dist/internal/react-device-frame/index.d.ts +1 -25
  46. package/dist/internal/react-dropdown-menu/index.d.cts +1 -1
  47. package/dist/internal/react-dropdown-menu/index.d.ts +1 -1
  48. package/dist/internal/react-emoji-picker/index.d.cts +1 -5
  49. package/dist/internal/react-emoji-picker/index.d.ts +1 -5
  50. package/dist/internal/react-file-tree/index.d.cts +30 -3
  51. package/dist/internal/react-file-tree/index.d.ts +30 -3
  52. package/dist/internal/react-file-upload/index.d.cts +1 -6
  53. package/dist/internal/react-file-upload/index.d.ts +1 -6
  54. package/dist/internal/react-inline-editor/index.d.cts +1 -6
  55. package/dist/internal/react-inline-editor/index.d.ts +1 -6
  56. package/dist/internal/react-keyboard-shortcut/index.d.cts +1 -1
  57. package/dist/internal/react-keyboard-shortcut/index.d.ts +1 -1
  58. package/dist/internal/react-language-selector/index.d.cts +2 -13
  59. package/dist/internal/react-language-selector/index.d.ts +2 -13
  60. package/dist/internal/react-location-selector/index.d.cts +1 -3
  61. package/dist/internal/react-location-selector/index.d.ts +1 -3
  62. package/dist/internal/react-pagination/index.d.ts +22 -1
  63. package/dist/internal/react-presence-indicator/index.d.cts +1 -21
  64. package/dist/internal/react-presence-indicator/index.d.ts +1 -21
  65. package/dist/internal/react-radio/index.d.ts +2 -17
  66. package/dist/internal/react-reaction-bar/index.d.cts +1 -21
  67. package/dist/internal/react-reaction-bar/index.d.ts +1 -21
  68. package/dist/internal/react-search-bar/index.d.cts +1 -12
  69. package/dist/internal/react-search-bar/index.d.ts +1 -12
  70. package/dist/internal/react-slider/index.d.cts +22 -1
  71. package/dist/internal/react-slider/index.d.ts +22 -1
  72. package/dist/internal/react-status-indicator/index.d.cts +1 -5
  73. package/dist/internal/react-status-indicator/index.d.ts +1 -5
  74. package/dist/internal/react-tabs/index.d.cts +2 -8
  75. package/dist/internal/react-tabs/index.d.ts +2 -8
  76. package/dist/internal/react-thread-view/index.d.cts +1 -21
  77. package/dist/internal/react-thread-view/index.d.ts +1 -21
  78. package/dist/internal/react-version-selector/index.d.cts +2 -12
  79. package/dist/internal/react-version-selector/index.d.ts +2 -12
  80. package/dist/internal/reaction-bar/index.d.cts +1 -3
  81. package/dist/internal/reaction-bar/index.d.ts +1 -3
  82. package/dist/internal/status-indicator/index.d.cts +1 -3
  83. package/dist/internal/status-indicator/index.d.ts +1 -3
  84. package/dist/internal/thread-view/index.d.cts +3 -5
  85. package/dist/internal/thread-view/index.d.ts +3 -5
  86. package/dist/internal/toast/index.d.cts +7 -1
  87. package/dist/internal/toast/index.d.ts +7 -1
  88. package/dist/internal/voice-pill/index.d.cts +2 -2
  89. package/dist/internal/voice-pill/index.d.ts +2 -2
  90. package/dist/module-X3HTTRQK.js +6438 -0
  91. package/dist/module-X3HTTRQK.js.map +1 -0
  92. package/package.json +1 -1
  93. package/dist/module-XHEQRMQB.js +0 -5320
  94. package/dist/module-XHEQRMQB.js.map +0 -1
@@ -12,82 +12,38 @@ interface AppShellProps {
12
12
  children?: React.ReactNode;
13
13
  className?: string;
14
14
  }
15
- declare function AppShellRoot({ config, children, className }: AppShellProps): React.FunctionComponentElement<React.ProviderProps<AppShellContextValue | null>>;
16
- declare namespace AppShellRoot {
17
- var displayName: string;
18
- }
19
15
  interface AppShellSidebarProps {
20
16
  children?: React.ReactNode;
21
17
  className?: string;
22
18
  }
23
- declare function Sidebar({ children, className }: AppShellSidebarProps): React.DetailedReactHTMLElement<{
24
- className: string;
25
- 'data-collapsed': string | undefined;
26
- 'data-open': string | undefined;
27
- }, HTMLElement>;
28
- declare namespace Sidebar {
29
- var displayName: string;
30
- }
31
19
  interface AppShellMainProps {
32
20
  children?: React.ReactNode;
33
21
  className?: string;
34
22
  }
35
- declare function Main({ children, className }: AppShellMainProps): React.DetailedReactHTMLElement<{
36
- className: string;
37
- }, HTMLElement>;
38
- declare namespace Main {
39
- var displayName: string;
40
- }
41
23
  interface AppShellHeaderProps {
42
24
  children?: React.ReactNode;
43
25
  className?: string;
44
26
  }
45
- declare function Header({ children, className }: AppShellHeaderProps): React.DetailedReactHTMLElement<{
46
- className: string;
47
- }, HTMLElement>;
48
- declare namespace Header {
49
- var displayName: string;
50
- }
51
27
  interface AppShellContentProps {
52
28
  children?: React.ReactNode;
53
29
  className?: string;
54
30
  /** Tailwind max-width class suffix, e.g. '6xl' -> max-w-6xl */
55
31
  maxWidth?: string;
56
32
  }
57
- declare function Content({ children, className, maxWidth }: AppShellContentProps): React.DetailedReactHTMLElement<{
58
- className: string;
59
- }, HTMLElement>;
60
- declare namespace Content {
61
- var displayName: string;
62
- }
63
33
  interface AppShellMobileNavProps {
64
34
  children?: React.ReactNode;
65
35
  className?: string;
66
36
  }
67
- declare function MobileNav({ children, className }: AppShellMobileNavProps): React.DetailedReactHTMLElement<{
68
- className: string;
69
- }, HTMLElement> | null;
70
- declare namespace MobileNav {
71
- var displayName: string;
72
- }
73
37
  interface AppShellOverlayProps {
74
38
  className?: string;
75
39
  }
76
- declare function Overlay({ className }: AppShellOverlayProps): React.DetailedReactHTMLElement<{
77
- className: string;
78
- onClick: () => void;
79
- 'data-shell-overlay': string;
80
- }, HTMLElement> | null;
81
- declare namespace Overlay {
82
- var displayName: string;
83
- }
84
- declare const AppShell: typeof AppShellRoot & {
85
- Sidebar: typeof Sidebar;
86
- Main: typeof Main;
87
- Header: typeof Header;
88
- Content: typeof Content;
89
- MobileNav: typeof MobileNav;
90
- Overlay: typeof Overlay;
40
+ declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.RefAttributes<HTMLDivElement>> & {
41
+ Sidebar: React.ForwardRefExoticComponent<AppShellSidebarProps & React.RefAttributes<HTMLElement>>;
42
+ Main: React.ForwardRefExoticComponent<AppShellMainProps & React.RefAttributes<HTMLDivElement>>;
43
+ Header: React.ForwardRefExoticComponent<AppShellHeaderProps & React.RefAttributes<HTMLElement>>;
44
+ Content: React.ForwardRefExoticComponent<AppShellContentProps & React.RefAttributes<HTMLElement>>;
45
+ MobileNav: React.ForwardRefExoticComponent<AppShellMobileNavProps & React.RefAttributes<HTMLElement>>;
46
+ Overlay: React.ForwardRefExoticComponent<AppShellOverlayProps & React.RefAttributes<HTMLDivElement>>;
91
47
  };
92
48
 
93
49
  interface PageShellContextValue {
@@ -12,82 +12,38 @@ interface AppShellProps {
12
12
  children?: React.ReactNode;
13
13
  className?: string;
14
14
  }
15
- declare function AppShellRoot({ config, children, className }: AppShellProps): React.FunctionComponentElement<React.ProviderProps<AppShellContextValue | null>>;
16
- declare namespace AppShellRoot {
17
- var displayName: string;
18
- }
19
15
  interface AppShellSidebarProps {
20
16
  children?: React.ReactNode;
21
17
  className?: string;
22
18
  }
23
- declare function Sidebar({ children, className }: AppShellSidebarProps): React.DetailedReactHTMLElement<{
24
- className: string;
25
- 'data-collapsed': string | undefined;
26
- 'data-open': string | undefined;
27
- }, HTMLElement>;
28
- declare namespace Sidebar {
29
- var displayName: string;
30
- }
31
19
  interface AppShellMainProps {
32
20
  children?: React.ReactNode;
33
21
  className?: string;
34
22
  }
35
- declare function Main({ children, className }: AppShellMainProps): React.DetailedReactHTMLElement<{
36
- className: string;
37
- }, HTMLElement>;
38
- declare namespace Main {
39
- var displayName: string;
40
- }
41
23
  interface AppShellHeaderProps {
42
24
  children?: React.ReactNode;
43
25
  className?: string;
44
26
  }
45
- declare function Header({ children, className }: AppShellHeaderProps): React.DetailedReactHTMLElement<{
46
- className: string;
47
- }, HTMLElement>;
48
- declare namespace Header {
49
- var displayName: string;
50
- }
51
27
  interface AppShellContentProps {
52
28
  children?: React.ReactNode;
53
29
  className?: string;
54
30
  /** Tailwind max-width class suffix, e.g. '6xl' -> max-w-6xl */
55
31
  maxWidth?: string;
56
32
  }
57
- declare function Content({ children, className, maxWidth }: AppShellContentProps): React.DetailedReactHTMLElement<{
58
- className: string;
59
- }, HTMLElement>;
60
- declare namespace Content {
61
- var displayName: string;
62
- }
63
33
  interface AppShellMobileNavProps {
64
34
  children?: React.ReactNode;
65
35
  className?: string;
66
36
  }
67
- declare function MobileNav({ children, className }: AppShellMobileNavProps): React.DetailedReactHTMLElement<{
68
- className: string;
69
- }, HTMLElement> | null;
70
- declare namespace MobileNav {
71
- var displayName: string;
72
- }
73
37
  interface AppShellOverlayProps {
74
38
  className?: string;
75
39
  }
76
- declare function Overlay({ className }: AppShellOverlayProps): React.DetailedReactHTMLElement<{
77
- className: string;
78
- onClick: () => void;
79
- 'data-shell-overlay': string;
80
- }, HTMLElement> | null;
81
- declare namespace Overlay {
82
- var displayName: string;
83
- }
84
- declare const AppShell: typeof AppShellRoot & {
85
- Sidebar: typeof Sidebar;
86
- Main: typeof Main;
87
- Header: typeof Header;
88
- Content: typeof Content;
89
- MobileNav: typeof MobileNav;
90
- Overlay: typeof Overlay;
40
+ declare const AppShell: React.ForwardRefExoticComponent<AppShellProps & React.RefAttributes<HTMLDivElement>> & {
41
+ Sidebar: React.ForwardRefExoticComponent<AppShellSidebarProps & React.RefAttributes<HTMLElement>>;
42
+ Main: React.ForwardRefExoticComponent<AppShellMainProps & React.RefAttributes<HTMLDivElement>>;
43
+ Header: React.ForwardRefExoticComponent<AppShellHeaderProps & React.RefAttributes<HTMLElement>>;
44
+ Content: React.ForwardRefExoticComponent<AppShellContentProps & React.RefAttributes<HTMLElement>>;
45
+ MobileNav: React.ForwardRefExoticComponent<AppShellMobileNavProps & React.RefAttributes<HTMLElement>>;
46
+ Overlay: React.ForwardRefExoticComponent<AppShellOverlayProps & React.RefAttributes<HTMLDivElement>>;
91
47
  };
92
48
 
93
49
  interface PageShellContextValue {
@@ -8,26 +8,6 @@ interface AvatarGroupProps {
8
8
  size?: AvatarSize;
9
9
  className?: string;
10
10
  }
11
- declare function AvatarGroup({ users, max, size, className }: AvatarGroupProps): React.DetailedReactHTMLElement<{
12
- className: string;
13
- role?: string | undefined;
14
- tabIndex?: number | undefined;
15
- 'aria-label'?: string | undefined;
16
- 'aria-labelledby'?: string | undefined;
17
- 'aria-describedby'?: string | undefined;
18
- 'aria-controls'?: string | undefined;
19
- 'aria-expanded'?: boolean | undefined;
20
- 'aria-selected'?: boolean | undefined;
21
- 'aria-hidden'?: boolean | undefined;
22
- 'aria-disabled'?: boolean | undefined;
23
- 'aria-pressed'?: boolean | "mixed" | undefined;
24
- 'aria-checked'?: boolean | "mixed" | undefined;
25
- 'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
26
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
27
- 'aria-atomic'?: boolean | undefined;
28
- }, HTMLElement>;
29
- declare namespace AvatarGroup {
30
- var displayName: string;
31
- }
11
+ declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
32
12
 
33
13
  export { AvatarGroup, type AvatarGroupProps };
@@ -8,26 +8,6 @@ interface AvatarGroupProps {
8
8
  size?: AvatarSize;
9
9
  className?: string;
10
10
  }
11
- declare function AvatarGroup({ users, max, size, className }: AvatarGroupProps): React.DetailedReactHTMLElement<{
12
- className: string;
13
- role?: string | undefined;
14
- tabIndex?: number | undefined;
15
- 'aria-label'?: string | undefined;
16
- 'aria-labelledby'?: string | undefined;
17
- 'aria-describedby'?: string | undefined;
18
- 'aria-controls'?: string | undefined;
19
- 'aria-expanded'?: boolean | undefined;
20
- 'aria-selected'?: boolean | undefined;
21
- 'aria-hidden'?: boolean | undefined;
22
- 'aria-disabled'?: boolean | undefined;
23
- 'aria-pressed'?: boolean | "mixed" | undefined;
24
- 'aria-checked'?: boolean | "mixed" | undefined;
25
- 'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
26
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
27
- 'aria-atomic'?: boolean | undefined;
28
- }, HTMLElement>;
29
- declare namespace AvatarGroup {
30
- var displayName: string;
31
- }
11
+ declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
32
12
 
33
13
  export { AvatarGroup, type AvatarGroupProps };
@@ -6,27 +6,7 @@ interface CalendarProps extends CalendarProps$1 {
6
6
  className?: string;
7
7
  children?: React.ReactNode;
8
8
  }
9
- declare function Calendar({ className, value, defaultValue, onSelect, month, onMonthChange, minDate, maxDate, disabledDates, }: CalendarProps): React.DetailedReactHTMLElement<{
10
- role?: string | undefined;
11
- tabIndex?: number | undefined;
12
- 'aria-label'?: string | undefined;
13
- 'aria-labelledby'?: string | undefined;
14
- 'aria-describedby'?: string | undefined;
15
- 'aria-controls'?: string | undefined;
16
- 'aria-expanded'?: boolean | undefined;
17
- 'aria-selected'?: boolean | undefined;
18
- 'aria-hidden'?: boolean | undefined;
19
- 'aria-disabled'?: boolean | undefined;
20
- 'aria-pressed'?: boolean | "mixed" | undefined;
21
- 'aria-checked'?: boolean | "mixed" | undefined;
22
- 'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
23
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
24
- 'aria-atomic'?: boolean | undefined;
25
- className: string;
26
- }, HTMLElement>;
27
- declare namespace Calendar {
28
- var displayName: string;
29
- }
9
+ declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
30
10
  interface CalendarHeaderProps {
31
11
  label: string;
32
12
  labelId: string;
@@ -34,11 +14,6 @@ interface CalendarHeaderProps {
34
14
  onNextMonth: () => void;
35
15
  className?: string;
36
16
  }
37
- declare function CalendarHeader({ label, labelId, onPrevMonth, onNextMonth, className, }: CalendarHeaderProps): React.DetailedReactHTMLElement<{
38
- className: string;
39
- }, HTMLElement>;
40
- declare namespace CalendarHeader {
41
- var displayName: string;
42
- }
17
+ declare const CalendarHeader: React.ForwardRefExoticComponent<CalendarHeaderProps & React.RefAttributes<HTMLDivElement>>;
43
18
 
44
19
  export { Calendar, CalendarHeader, type CalendarHeaderProps, type CalendarProps };
@@ -6,27 +6,7 @@ interface CalendarProps extends CalendarProps$1 {
6
6
  className?: string;
7
7
  children?: React.ReactNode;
8
8
  }
9
- declare function Calendar({ className, value, defaultValue, onSelect, month, onMonthChange, minDate, maxDate, disabledDates, }: CalendarProps): React.DetailedReactHTMLElement<{
10
- role?: string | undefined;
11
- tabIndex?: number | undefined;
12
- 'aria-label'?: string | undefined;
13
- 'aria-labelledby'?: string | undefined;
14
- 'aria-describedby'?: string | undefined;
15
- 'aria-controls'?: string | undefined;
16
- 'aria-expanded'?: boolean | undefined;
17
- 'aria-selected'?: boolean | undefined;
18
- 'aria-hidden'?: boolean | undefined;
19
- 'aria-disabled'?: boolean | undefined;
20
- 'aria-pressed'?: boolean | "mixed" | undefined;
21
- 'aria-checked'?: boolean | "mixed" | undefined;
22
- 'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
23
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
24
- 'aria-atomic'?: boolean | undefined;
25
- className: string;
26
- }, HTMLElement>;
27
- declare namespace Calendar {
28
- var displayName: string;
29
- }
9
+ declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
30
10
  interface CalendarHeaderProps {
31
11
  label: string;
32
12
  labelId: string;
@@ -34,11 +14,6 @@ interface CalendarHeaderProps {
34
14
  onNextMonth: () => void;
35
15
  className?: string;
36
16
  }
37
- declare function CalendarHeader({ label, labelId, onPrevMonth, onNextMonth, className, }: CalendarHeaderProps): React.DetailedReactHTMLElement<{
38
- className: string;
39
- }, HTMLElement>;
40
- declare namespace CalendarHeader {
41
- var displayName: string;
42
- }
17
+ declare const CalendarHeader: React.ForwardRefExoticComponent<CalendarHeaderProps & React.RefAttributes<HTMLDivElement>>;
43
18
 
44
19
  export { Calendar, CalendarHeader, type CalendarHeaderProps, type CalendarProps };
@@ -7,16 +7,18 @@ interface ChartProps {
7
7
  height?: number;
8
8
  margin?: Partial<Margin>;
9
9
  children?: React.ReactNode;
10
+ className?: string;
10
11
  }
11
- declare function Chart({ width, height, margin, children, }: ChartProps): react_jsx_runtime.JSX.Element;
12
+ declare function Chart({ width, height, margin, children, className, }: ChartProps): react_jsx_runtime.JSX.Element;
12
13
 
13
14
  interface BarsProps<T = unknown> {
14
15
  data: T[];
15
16
  x: (d: T) => string;
16
17
  y: (d: T) => number;
17
18
  fill?: string;
19
+ className?: string;
18
20
  }
19
- declare function Bars<T>({ data, x, y, fill }: BarsProps<T>): react_jsx_runtime.JSX.Element;
21
+ declare function Bars<T>({ data, x, y, fill, className }: BarsProps<T>): react_jsx_runtime.JSX.Element;
20
22
 
21
23
  interface LineProps<T = unknown> {
22
24
  data: T[];
@@ -25,8 +27,9 @@ interface LineProps<T = unknown> {
25
27
  stroke?: string;
26
28
  strokeWidth?: number;
27
29
  fill?: string;
30
+ className?: string;
28
31
  }
29
- declare function Line<T>({ data, x, y, stroke, strokeWidth, fill, }: LineProps<T>): react_jsx_runtime.JSX.Element;
32
+ declare function Line<T>({ data, x, y, stroke, strokeWidth, fill, className, }: LineProps<T>): react_jsx_runtime.JSX.Element;
30
33
 
31
34
  interface CirclesProps<T = unknown> {
32
35
  data: T[];
@@ -34,31 +37,35 @@ interface CirclesProps<T = unknown> {
34
37
  cy: (d: T) => number;
35
38
  r?: number;
36
39
  fill?: string;
40
+ className?: string;
37
41
  }
38
- declare function Circles<T>({ data, cx, cy, r, fill, }: CirclesProps<T>): react_jsx_runtime.JSX.Element;
42
+ declare function Circles<T>({ data, cx, cy, r, fill, className, }: CirclesProps<T>): react_jsx_runtime.JSX.Element;
39
43
 
40
44
  interface XAxisProps {
41
45
  ticks: (number | string)[];
42
46
  scale: (value: number | string) => number;
43
47
  height: number;
44
48
  tickSize?: number;
49
+ className?: string;
45
50
  }
46
- declare function XAxis({ ticks, scale, height, tickSize, }: XAxisProps): react_jsx_runtime.JSX.Element;
51
+ declare function XAxis({ ticks, scale, height, tickSize, className, }: XAxisProps): react_jsx_runtime.JSX.Element;
47
52
 
48
53
  interface YAxisProps {
49
54
  ticks: (number | string)[];
50
55
  scale: (value: number | string) => number;
51
56
  tickSize?: number;
57
+ className?: string;
52
58
  }
53
- declare function YAxis({ ticks, scale, tickSize, }: YAxisProps): react_jsx_runtime.JSX.Element;
59
+ declare function YAxis({ ticks, scale, tickSize, className, }: YAxisProps): react_jsx_runtime.JSX.Element;
54
60
 
55
61
  interface GradientProps {
56
62
  id: string;
57
63
  from: string;
58
64
  to: string;
59
65
  direction?: 'vertical' | 'horizontal';
66
+ className?: string;
60
67
  }
61
- declare function Gradient({ id, from, to, direction, }: GradientProps): react_jsx_runtime.JSX.Element;
68
+ declare function Gradient({ id, from, to, direction, className, }: GradientProps): react_jsx_runtime.JSX.Element;
62
69
 
63
70
  interface HistogramProps {
64
71
  data: number[];
@@ -67,8 +74,9 @@ interface HistogramProps {
67
74
  bins?: number;
68
75
  fill?: string;
69
76
  margin?: Partial<Margin>;
77
+ className?: string;
70
78
  }
71
- declare function Histogram({ data, width, height, bins: binCount, fill, margin, }: HistogramProps): react_jsx_runtime.JSX.Element;
79
+ declare function Histogram({ data, width, height, bins: binCount, fill, margin, className, }: HistogramProps): react_jsx_runtime.JSX.Element;
72
80
 
73
81
  interface ScatterPlotProps<T = unknown> {
74
82
  data: T[];
@@ -79,8 +87,9 @@ interface ScatterPlotProps<T = unknown> {
79
87
  r?: number;
80
88
  fill?: string;
81
89
  margin?: Partial<Margin>;
90
+ className?: string;
82
91
  }
83
- declare function ScatterPlot<T>({ data, x, y, width, height, r, fill, margin, }: ScatterPlotProps<T>): react_jsx_runtime.JSX.Element;
92
+ declare function ScatterPlot<T>({ data, x, y, width, height, r, fill, margin, className, }: ScatterPlotProps<T>): react_jsx_runtime.JSX.Element;
84
93
 
85
94
  interface PieChartProps<T = unknown> {
86
95
  data: T[];
@@ -88,8 +97,9 @@ interface PieChartProps<T = unknown> {
88
97
  width?: number;
89
98
  height?: number;
90
99
  colors?: string[];
100
+ className?: string;
91
101
  }
92
- declare function PieChart<T>({ data, value, width, height, colors, }: PieChartProps<T>): react_jsx_runtime.JSX.Element;
102
+ declare function PieChart<T>({ data, value, width, height, colors, className, }: PieChartProps<T>): react_jsx_runtime.JSX.Element;
93
103
 
94
104
  interface ChartContextValue {
95
105
  dimensions: Dimensions;
@@ -7,16 +7,18 @@ interface ChartProps {
7
7
  height?: number;
8
8
  margin?: Partial<Margin>;
9
9
  children?: React.ReactNode;
10
+ className?: string;
10
11
  }
11
- declare function Chart({ width, height, margin, children, }: ChartProps): react_jsx_runtime.JSX.Element;
12
+ declare function Chart({ width, height, margin, children, className, }: ChartProps): react_jsx_runtime.JSX.Element;
12
13
 
13
14
  interface BarsProps<T = unknown> {
14
15
  data: T[];
15
16
  x: (d: T) => string;
16
17
  y: (d: T) => number;
17
18
  fill?: string;
19
+ className?: string;
18
20
  }
19
- declare function Bars<T>({ data, x, y, fill }: BarsProps<T>): react_jsx_runtime.JSX.Element;
21
+ declare function Bars<T>({ data, x, y, fill, className }: BarsProps<T>): react_jsx_runtime.JSX.Element;
20
22
 
21
23
  interface LineProps<T = unknown> {
22
24
  data: T[];
@@ -25,8 +27,9 @@ interface LineProps<T = unknown> {
25
27
  stroke?: string;
26
28
  strokeWidth?: number;
27
29
  fill?: string;
30
+ className?: string;
28
31
  }
29
- declare function Line<T>({ data, x, y, stroke, strokeWidth, fill, }: LineProps<T>): react_jsx_runtime.JSX.Element;
32
+ declare function Line<T>({ data, x, y, stroke, strokeWidth, fill, className, }: LineProps<T>): react_jsx_runtime.JSX.Element;
30
33
 
31
34
  interface CirclesProps<T = unknown> {
32
35
  data: T[];
@@ -34,31 +37,35 @@ interface CirclesProps<T = unknown> {
34
37
  cy: (d: T) => number;
35
38
  r?: number;
36
39
  fill?: string;
40
+ className?: string;
37
41
  }
38
- declare function Circles<T>({ data, cx, cy, r, fill, }: CirclesProps<T>): react_jsx_runtime.JSX.Element;
42
+ declare function Circles<T>({ data, cx, cy, r, fill, className, }: CirclesProps<T>): react_jsx_runtime.JSX.Element;
39
43
 
40
44
  interface XAxisProps {
41
45
  ticks: (number | string)[];
42
46
  scale: (value: number | string) => number;
43
47
  height: number;
44
48
  tickSize?: number;
49
+ className?: string;
45
50
  }
46
- declare function XAxis({ ticks, scale, height, tickSize, }: XAxisProps): react_jsx_runtime.JSX.Element;
51
+ declare function XAxis({ ticks, scale, height, tickSize, className, }: XAxisProps): react_jsx_runtime.JSX.Element;
47
52
 
48
53
  interface YAxisProps {
49
54
  ticks: (number | string)[];
50
55
  scale: (value: number | string) => number;
51
56
  tickSize?: number;
57
+ className?: string;
52
58
  }
53
- declare function YAxis({ ticks, scale, tickSize, }: YAxisProps): react_jsx_runtime.JSX.Element;
59
+ declare function YAxis({ ticks, scale, tickSize, className, }: YAxisProps): react_jsx_runtime.JSX.Element;
54
60
 
55
61
  interface GradientProps {
56
62
  id: string;
57
63
  from: string;
58
64
  to: string;
59
65
  direction?: 'vertical' | 'horizontal';
66
+ className?: string;
60
67
  }
61
- declare function Gradient({ id, from, to, direction, }: GradientProps): react_jsx_runtime.JSX.Element;
68
+ declare function Gradient({ id, from, to, direction, className, }: GradientProps): react_jsx_runtime.JSX.Element;
62
69
 
63
70
  interface HistogramProps {
64
71
  data: number[];
@@ -67,8 +74,9 @@ interface HistogramProps {
67
74
  bins?: number;
68
75
  fill?: string;
69
76
  margin?: Partial<Margin>;
77
+ className?: string;
70
78
  }
71
- declare function Histogram({ data, width, height, bins: binCount, fill, margin, }: HistogramProps): react_jsx_runtime.JSX.Element;
79
+ declare function Histogram({ data, width, height, bins: binCount, fill, margin, className, }: HistogramProps): react_jsx_runtime.JSX.Element;
72
80
 
73
81
  interface ScatterPlotProps<T = unknown> {
74
82
  data: T[];
@@ -79,8 +87,9 @@ interface ScatterPlotProps<T = unknown> {
79
87
  r?: number;
80
88
  fill?: string;
81
89
  margin?: Partial<Margin>;
90
+ className?: string;
82
91
  }
83
- declare function ScatterPlot<T>({ data, x, y, width, height, r, fill, margin, }: ScatterPlotProps<T>): react_jsx_runtime.JSX.Element;
92
+ declare function ScatterPlot<T>({ data, x, y, width, height, r, fill, margin, className, }: ScatterPlotProps<T>): react_jsx_runtime.JSX.Element;
84
93
 
85
94
  interface PieChartProps<T = unknown> {
86
95
  data: T[];
@@ -88,8 +97,9 @@ interface PieChartProps<T = unknown> {
88
97
  width?: number;
89
98
  height?: number;
90
99
  colors?: string[];
100
+ className?: string;
91
101
  }
92
- declare function PieChart<T>({ data, value, width, height, colors, }: PieChartProps<T>): react_jsx_runtime.JSX.Element;
102
+ declare function PieChart<T>({ data, value, width, height, colors, className, }: PieChartProps<T>): react_jsx_runtime.JSX.Element;
93
103
 
94
104
  interface ChartContextValue {
95
105
  dimensions: Dimensions;
@@ -38,7 +38,7 @@ interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
38
38
  heading?: string;
39
39
  }
40
40
  declare const CommandGroup: React.ForwardRefExoticComponent<CommandGroupProps & React.RefAttributes<HTMLDivElement>>;
41
- interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
41
+ interface CommandItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
42
42
  value?: string;
43
43
  disabled?: boolean;
44
44
  onSelect?: () => void;
@@ -38,7 +38,7 @@ interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
38
38
  heading?: string;
39
39
  }
40
40
  declare const CommandGroup: React.ForwardRefExoticComponent<CommandGroupProps & React.RefAttributes<HTMLDivElement>>;
41
- interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
41
+ interface CommandItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
42
42
  value?: string;
43
43
  disabled?: boolean;
44
44
  onSelect?: () => void;
@@ -70,9 +70,7 @@ interface ComposerProps {
70
70
  * Composer — rich message input: markdown formatting toolbar + Cmd/Ctrl shortcuts,
71
71
  * and `/` command, `@` mention, and `:` emoji autocomplete menus.
72
72
  */
73
- declare function Composer({ placeholder, busy, slashCommands, mentions, toolbar, emoji, attachments, error, onRetry, onSubmit, onStop, onSlashCommand, autoFocus, }: ComposerProps): React.DetailedReactHTMLElement<{
74
- className: string;
75
- }, HTMLElement>;
73
+ declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<HTMLDivElement>>;
76
74
 
77
75
  interface ChatProps {
78
76
  conversation: UseConversationResult;
@@ -94,8 +92,6 @@ interface ChatProps {
94
92
  * bubble. Markdown/code/gifs, reactions, edit/delete, streaming, and a composer
95
93
  * with `/` commands, `@` mentions, `:` emoji, and a formatting toolbar.
96
94
  */
97
- declare function Chat({ conversation, showConversationList, showModeToggle, placeholder, currentUserId, emptyState, className, slashCommands, mentions, onSlashCommand, composerToolbar, }: ChatProps): React.DetailedReactHTMLElement<{
98
- className: string;
99
- }, HTMLElement>;
95
+ declare const Chat: React.ForwardRefExoticComponent<ChatProps & React.RefAttributes<HTMLDivElement>>;
100
96
 
101
97
  export { Chat, type ChatProps, Composer, type ComposerProps, type Mention, type SlashCommand, type UseConversationResult, useConversation };
@@ -70,9 +70,7 @@ interface ComposerProps {
70
70
  * Composer — rich message input: markdown formatting toolbar + Cmd/Ctrl shortcuts,
71
71
  * and `/` command, `@` mention, and `:` emoji autocomplete menus.
72
72
  */
73
- declare function Composer({ placeholder, busy, slashCommands, mentions, toolbar, emoji, attachments, error, onRetry, onSubmit, onStop, onSlashCommand, autoFocus, }: ComposerProps): React.DetailedReactHTMLElement<{
74
- className: string;
75
- }, HTMLElement>;
73
+ declare const Composer: React.ForwardRefExoticComponent<ComposerProps & React.RefAttributes<HTMLDivElement>>;
76
74
 
77
75
  interface ChatProps {
78
76
  conversation: UseConversationResult;
@@ -94,8 +92,6 @@ interface ChatProps {
94
92
  * bubble. Markdown/code/gifs, reactions, edit/delete, streaming, and a composer
95
93
  * with `/` commands, `@` mentions, `:` emoji, and a formatting toolbar.
96
94
  */
97
- declare function Chat({ conversation, showConversationList, showModeToggle, placeholder, currentUserId, emptyState, className, slashCommands, mentions, onSlashCommand, composerToolbar, }: ChatProps): React.DetailedReactHTMLElement<{
98
- className: string;
99
- }, HTMLElement>;
95
+ declare const Chat: React.ForwardRefExoticComponent<ChatProps & React.RefAttributes<HTMLDivElement>>;
100
96
 
101
97
  export { Chat, type ChatProps, Composer, type ComposerProps, type Mention, type SlashCommand, type UseConversationResult, useConversation };
@@ -35,11 +35,6 @@ interface CookieConsentProps {
35
35
  * CookieConsent — batteries-included consent banner over `useCookieConsent()`.
36
36
  * Renders nothing once the user has consented.
37
37
  */
38
- declare function CookieConsent({ consent, position, title, description, policyUrl, policyLabel, className, }: CookieConsentProps): React.DetailedReactHTMLElement<{
39
- className: string;
40
- role: "dialog";
41
- 'aria-label': string;
42
- 'aria-modal': false;
43
- }, HTMLElement> | null;
38
+ declare const CookieConsent: React.ForwardRefExoticComponent<CookieConsentProps & React.RefAttributes<HTMLDivElement>>;
44
39
 
45
40
  export { CookieConsent, type CookieConsentProps, type UseCookieConsentResult, useCookieConsent };
@@ -35,11 +35,6 @@ interface CookieConsentProps {
35
35
  * CookieConsent — batteries-included consent banner over `useCookieConsent()`.
36
36
  * Renders nothing once the user has consented.
37
37
  */
38
- declare function CookieConsent({ consent, position, title, description, policyUrl, policyLabel, className, }: CookieConsentProps): React.DetailedReactHTMLElement<{
39
- className: string;
40
- role: "dialog";
41
- 'aria-label': string;
42
- 'aria-modal': false;
43
- }, HTMLElement> | null;
38
+ declare const CookieConsent: React.ForwardRefExoticComponent<CookieConsentProps & React.RefAttributes<HTMLDivElement>>;
44
39
 
45
40
  export { CookieConsent, type CookieConsentProps, type UseCookieConsentResult, useCookieConsent };
@@ -7,6 +7,7 @@ interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
7
7
  minDate?: Date;
8
8
  maxDate?: Date;
9
9
  showTime?: boolean;
10
+ /** Display format for the selected-date text shown next to the input (e.g. 'DD/MM/YYYY'). The native input value itself stays ISO (`YYYY-MM-DD`). */
10
11
  format?: string;
11
12
  placeholder?: string;
12
13
  }
@@ -7,6 +7,7 @@ interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
7
7
  minDate?: Date;
8
8
  maxDate?: Date;
9
9
  showTime?: boolean;
10
+ /** Display format for the selected-date text shown next to the input (e.g. 'DD/MM/YYYY'). The native input value itself stays ISO (`YYYY-MM-DD`). */
10
11
  format?: string;
11
12
  placeholder?: string;
12
13
  }