@refraction-ui/react 0.18.4 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3416 -2768
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3382 -2735
- package/dist/index.js.map +1 -1
- package/dist/internal/analytics/index.d.cts +6 -0
- package/dist/internal/analytics/index.d.ts +6 -0
- package/dist/internal/calendar/index.d.cts +5 -3
- package/dist/internal/calendar/index.d.ts +5 -3
- package/dist/internal/call-controls/index.d.ts +1 -3
- package/dist/internal/conversation/index.d.cts +2 -0
- package/dist/internal/conversation/index.d.ts +2 -0
- package/dist/internal/date-picker/index.d.cts +2 -0
- package/dist/internal/date-picker/index.d.ts +2 -0
- package/dist/internal/device-frame/index.d.cts +1 -3
- package/dist/internal/device-frame/index.d.ts +1 -3
- package/dist/internal/emoji-picker/index.d.cts +1 -3
- package/dist/internal/emoji-picker/index.d.ts +1 -3
- package/dist/internal/file-tree/index.d.cts +125 -0
- package/dist/internal/file-tree/index.d.ts +125 -0
- package/dist/internal/footer/index.d.cts +2 -0
- package/dist/internal/footer/index.d.ts +2 -0
- package/dist/internal/logger/index.d.cts +4 -0
- package/dist/internal/logger/index.d.ts +4 -0
- package/dist/internal/presence-indicator/index.d.cts +1 -3
- package/dist/internal/presence-indicator/index.d.ts +1 -3
- package/dist/internal/react-app-shell/index.d.cts +7 -51
- package/dist/internal/react-app-shell/index.d.ts +7 -51
- package/dist/internal/react-avatar-group/index.d.cts +1 -21
- package/dist/internal/react-avatar-group/index.d.ts +1 -21
- package/dist/internal/react-calendar/index.d.cts +2 -27
- package/dist/internal/react-calendar/index.d.ts +2 -27
- package/dist/internal/react-charts/index.d.cts +20 -10
- package/dist/internal/react-charts/index.d.ts +20 -10
- package/dist/internal/react-command/index.d.cts +1 -1
- package/dist/internal/react-command/index.d.ts +1 -1
- package/dist/internal/react-conversation/index.d.cts +2 -6
- package/dist/internal/react-conversation/index.d.ts +2 -6
- package/dist/internal/react-cookie-consent/index.d.cts +1 -6
- package/dist/internal/react-cookie-consent/index.d.ts +1 -6
- package/dist/internal/react-device-frame/index.d.cts +1 -25
- package/dist/internal/react-device-frame/index.d.ts +1 -25
- package/dist/internal/react-dropdown-menu/index.d.cts +1 -1
- package/dist/internal/react-dropdown-menu/index.d.ts +1 -1
- package/dist/internal/react-emoji-picker/index.d.cts +1 -5
- package/dist/internal/react-emoji-picker/index.d.ts +1 -5
- package/dist/internal/react-file-tree/index.d.cts +30 -3
- package/dist/internal/react-file-tree/index.d.ts +30 -3
- package/dist/internal/react-file-upload/index.d.cts +1 -6
- package/dist/internal/react-file-upload/index.d.ts +1 -6
- package/dist/internal/react-inline-editor/index.d.cts +1 -6
- package/dist/internal/react-inline-editor/index.d.ts +1 -6
- package/dist/internal/react-keyboard-shortcut/index.d.cts +1 -1
- package/dist/internal/react-keyboard-shortcut/index.d.ts +1 -1
- package/dist/internal/react-language-selector/index.d.cts +2 -13
- package/dist/internal/react-language-selector/index.d.ts +2 -13
- package/dist/internal/react-location-selector/index.d.cts +1 -3
- package/dist/internal/react-location-selector/index.d.ts +1 -3
- package/dist/internal/react-pagination/index.d.ts +22 -1
- package/dist/internal/react-presence-indicator/index.d.cts +1 -21
- package/dist/internal/react-presence-indicator/index.d.ts +1 -21
- package/dist/internal/react-radio/index.d.ts +2 -17
- package/dist/internal/react-reaction-bar/index.d.cts +1 -21
- package/dist/internal/react-reaction-bar/index.d.ts +1 -21
- package/dist/internal/react-search-bar/index.d.cts +1 -12
- package/dist/internal/react-search-bar/index.d.ts +1 -12
- package/dist/internal/react-slider/index.d.cts +22 -1
- package/dist/internal/react-slider/index.d.ts +22 -1
- package/dist/internal/react-status-indicator/index.d.cts +1 -5
- package/dist/internal/react-status-indicator/index.d.ts +1 -5
- package/dist/internal/react-tabs/index.d.cts +2 -8
- package/dist/internal/react-tabs/index.d.ts +2 -8
- package/dist/internal/react-thread-view/index.d.cts +1 -21
- package/dist/internal/react-thread-view/index.d.ts +1 -21
- package/dist/internal/react-version-selector/index.d.cts +2 -12
- package/dist/internal/react-version-selector/index.d.ts +2 -12
- package/dist/internal/reaction-bar/index.d.cts +1 -3
- package/dist/internal/reaction-bar/index.d.ts +1 -3
- package/dist/internal/status-indicator/index.d.cts +1 -3
- package/dist/internal/status-indicator/index.d.ts +1 -3
- package/dist/internal/thread-view/index.d.cts +3 -5
- package/dist/internal/thread-view/index.d.ts +3 -5
- package/dist/internal/toast/index.d.cts +7 -1
- package/dist/internal/toast/index.d.ts +7 -1
- package/dist/internal/voice-pill/index.d.cts +2 -2
- package/dist/internal/voice-pill/index.d.ts +2 -2
- package/package.json +1 -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
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 };
|
|
@@ -8,30 +8,6 @@ interface DeviceFrameProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
12
|
-
role?: string | undefined;
|
|
13
|
-
tabIndex?: number | undefined;
|
|
14
|
-
'aria-label'?: string | undefined;
|
|
15
|
-
'aria-labelledby'?: string | undefined;
|
|
16
|
-
'aria-describedby'?: string | undefined;
|
|
17
|
-
'aria-controls'?: string | undefined;
|
|
18
|
-
'aria-expanded'?: boolean | undefined;
|
|
19
|
-
'aria-selected'?: boolean | undefined;
|
|
20
|
-
'aria-hidden'?: boolean | undefined;
|
|
21
|
-
'aria-disabled'?: boolean | undefined;
|
|
22
|
-
'aria-pressed'?: boolean | "mixed" | undefined;
|
|
23
|
-
'aria-checked'?: boolean | "mixed" | undefined;
|
|
24
|
-
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
25
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
26
|
-
'aria-atomic'?: boolean | undefined;
|
|
27
|
-
className: string;
|
|
28
|
-
style: {
|
|
29
|
-
width: string;
|
|
30
|
-
height: string;
|
|
31
|
-
};
|
|
32
|
-
}, HTMLElement>;
|
|
33
|
-
declare namespace DeviceFrame {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
11
|
+
declare const DeviceFrame: React.ForwardRefExoticComponent<DeviceFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
12
|
|
|
37
13
|
export { DeviceFrame, type DeviceFrameProps };
|
|
@@ -8,30 +8,6 @@ interface DeviceFrameProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
12
|
-
role?: string | undefined;
|
|
13
|
-
tabIndex?: number | undefined;
|
|
14
|
-
'aria-label'?: string | undefined;
|
|
15
|
-
'aria-labelledby'?: string | undefined;
|
|
16
|
-
'aria-describedby'?: string | undefined;
|
|
17
|
-
'aria-controls'?: string | undefined;
|
|
18
|
-
'aria-expanded'?: boolean | undefined;
|
|
19
|
-
'aria-selected'?: boolean | undefined;
|
|
20
|
-
'aria-hidden'?: boolean | undefined;
|
|
21
|
-
'aria-disabled'?: boolean | undefined;
|
|
22
|
-
'aria-pressed'?: boolean | "mixed" | undefined;
|
|
23
|
-
'aria-checked'?: boolean | "mixed" | undefined;
|
|
24
|
-
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
25
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
26
|
-
'aria-atomic'?: boolean | undefined;
|
|
27
|
-
className: string;
|
|
28
|
-
style: {
|
|
29
|
-
width: string;
|
|
30
|
-
height: string;
|
|
31
|
-
};
|
|
32
|
-
}, HTMLElement>;
|
|
33
|
-
declare namespace DeviceFrame {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
11
|
+
declare const DeviceFrame: React.ForwardRefExoticComponent<DeviceFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
12
|
|
|
37
13
|
export { DeviceFrame, type DeviceFrameProps };
|
|
@@ -27,7 +27,7 @@ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuT
|
|
|
27
27
|
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
28
28
|
}
|
|
29
29
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
interface DropdownMenuItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
onSelect?: () => void;
|
|
33
33
|
}
|
|
@@ -27,7 +27,7 @@ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuT
|
|
|
27
27
|
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
28
28
|
}
|
|
29
29
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
interface DropdownMenuItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
onSelect?: () => void;
|
|
33
33
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { EmojiEntry, StickerItem, StickerSet } from '../emoji-picker/index.cjs';
|
|
4
3
|
export { CATEGORY_LABELS, EmojiPickerProps as CoreEmojiPickerProps, DEFAULT_TWEMOJI_BASE_URL, EMOJI_CATEGORIES, EMOJI_COUNT_TOTAL, EMOJI_DATA, EmojiCategory, EmojiEntry, EmojiPickerAPI, EmojiPickerState, SHORTCODE_ALIASES, STARTER_STICKER_SET, StickerItem, StickerKind, StickerSet, buildShortcodeMap, emojiPickerContainerStyles, emojiPickerEmojiButtonStyles, emojiPickerGridStyles, getAllEmojis, resolveShortcode, searchEmojis, twemojiAssetUrl, twemojiFilename } from '../emoji-picker/index.cjs';
|
|
@@ -49,9 +48,6 @@ interface EmojiPickerProps {
|
|
|
49
48
|
/** Sticker render seam. Default: `defaultStickerRenderer`. */
|
|
50
49
|
stickerRenderer?: StickerRenderer;
|
|
51
50
|
}
|
|
52
|
-
declare
|
|
53
|
-
declare namespace EmojiPicker {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
51
|
+
declare const EmojiPicker: React.ForwardRefExoticComponent<EmojiPickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
52
|
|
|
57
53
|
export { EmojiPicker, type EmojiPickerProps, type EmojiRenderer, type StickerRenderer, createTwemojiRenderer, defaultStickerRenderer, nativeEmojiRenderer, twemojiRenderer };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { EmojiEntry, StickerItem, StickerSet } from '../emoji-picker/index.js';
|
|
4
3
|
export { CATEGORY_LABELS, EmojiPickerProps as CoreEmojiPickerProps, DEFAULT_TWEMOJI_BASE_URL, EMOJI_CATEGORIES, EMOJI_COUNT_TOTAL, EMOJI_DATA, EmojiCategory, EmojiEntry, EmojiPickerAPI, EmojiPickerState, SHORTCODE_ALIASES, STARTER_STICKER_SET, StickerItem, StickerKind, StickerSet, buildShortcodeMap, emojiPickerContainerStyles, emojiPickerEmojiButtonStyles, emojiPickerGridStyles, getAllEmojis, resolveShortcode, searchEmojis, twemojiAssetUrl, twemojiFilename } from '../emoji-picker/index.js';
|
|
@@ -49,9 +48,6 @@ interface EmojiPickerProps {
|
|
|
49
48
|
/** Sticker render seam. Default: `defaultStickerRenderer`. */
|
|
50
49
|
stickerRenderer?: StickerRenderer;
|
|
51
50
|
}
|
|
52
|
-
declare
|
|
53
|
-
declare namespace EmojiPicker {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
51
|
+
declare const EmojiPicker: React.ForwardRefExoticComponent<EmojiPickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
52
|
|
|
57
53
|
export { EmojiPicker, type EmojiPickerProps, type EmojiRenderer, type StickerRenderer, createTwemojiRenderer, defaultStickerRenderer, nativeEmojiRenderer, twemojiRenderer };
|