haze-ui 1.5.6 → 1.6.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/components/Affix/Affix.js +22 -0
- package/dist/components/Alert/Alert.js +14 -10
- package/dist/components/ApprovalCard/ApprovalCard.js +42 -0
- package/dist/components/AspectRatio/AspectRatio.js +17 -0
- package/dist/components/BackToTop/BackToTop.js +28 -0
- package/dist/components/Banner/Banner.js +36 -0
- package/dist/components/BottomSheet/BottomSheet.js +22 -0
- package/dist/components/ChatContainer/ChatContainer.js +25 -0
- package/dist/components/ChatInput/ChatInput.js +45 -0
- package/dist/components/ChatMessage/ChatMessage.js +45 -0
- package/dist/components/Chip/Chip.js +42 -0
- package/dist/components/CodeBlock/CodeBlock.js +19 -0
- package/dist/components/Collapsible/Collapsible.js +46 -0
- package/dist/components/ColorPicker/ColorPicker.js +45 -0
- package/dist/components/Combobox/Combobox.js +23 -23
- package/dist/components/Command/Command.js +58 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.js +51 -0
- package/dist/components/Container/Container.js +23 -0
- package/dist/components/ContextMenu/ContextMenu.js +42 -0
- package/dist/components/ContextMenu/ContextMenuContent.js +19 -0
- package/dist/components/ContextMenu/ContextMenuContext.js +10 -0
- package/dist/components/ContextMenu/ContextMenuItem.js +20 -0
- package/dist/components/ContextMenu/ContextMenuSeparator.js +13 -0
- package/dist/components/ContextMenu/ContextMenuTrigger.js +18 -0
- package/dist/components/ConversationList/ConversationItem.js +32 -0
- package/dist/components/ConversationList/ConversationList.js +13 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +38 -0
- package/dist/components/Datepicker/Datepicker.js +9 -9
- package/dist/components/DiffViewer/DiffViewer.js +81 -0
- package/dist/components/Divider/Divider.js +25 -0
- package/dist/components/Drawer/Drawer.js +35 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +37 -0
- package/dist/components/DropdownMenu/DropdownMenuContent.js +23 -0
- package/dist/components/DropdownMenu/DropdownMenuContext.js +10 -0
- package/dist/components/DropdownMenu/DropdownMenuItem.js +20 -0
- package/dist/components/DropdownMenu/DropdownMenuSeparator.js +13 -0
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +17 -0
- package/dist/components/Empty/Empty.js +67 -0
- package/dist/components/Grid/Grid.js +17 -0
- package/dist/components/Grid/GridItem.js +11 -0
- package/dist/components/InlineEdit/InlineEdit.js +45 -0
- package/dist/components/LogViewer/LogViewer.js +65 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.js +24 -0
- package/dist/components/ModelPicker/ModelPicker.js +26 -0
- package/dist/components/NavigationBar/NavLink.js +22 -0
- package/dist/components/NavigationBar/NavigationBar.js +26 -0
- package/dist/components/OTPInput/OTPInput.js +50 -0
- package/dist/components/Pagination/Pagination.js +58 -0
- package/dist/components/PasswordInput/PasswordInput.js +32 -0
- package/dist/components/Progress/Progress.js +83 -0
- package/dist/components/Rating/Rating.js +49 -0
- package/dist/components/Resizable/Resizable.js +56 -0
- package/dist/components/ScrollArea/ScrollArea.js +14 -0
- package/dist/components/Segmented/Segmented.js +42 -0
- package/dist/components/Spinner/Spinner.js +39 -0
- package/dist/components/Stat/Stat.js +52 -0
- package/dist/components/StepTimeline/StepTimeline.js +36 -0
- package/dist/components/Stepper/Step.js +38 -0
- package/dist/components/Stepper/Stepper.js +25 -0
- package/dist/components/Stepper/StepperContext.js +10 -0
- package/dist/components/StreamingText/StreamingText.js +34 -0
- package/dist/components/SwipeAction/SwipeAction.js +45 -0
- package/dist/components/Table/Table.js +14 -11
- package/dist/components/TagGroup/TagGroup.js +14 -0
- package/dist/components/TagGroup/TagGroupItem.js +19 -0
- package/dist/components/TagInput/TagInput.js +51 -0
- package/dist/components/ThinkingIndicator/ThinkingIndicator.js +20 -0
- package/dist/components/TimePicker/TimePicker.js +22 -0
- package/dist/components/Timeline/Timeline.js +47 -0
- package/dist/components/TokenCounter/TokenCounter.js +30 -0
- package/dist/components/ToolCallCard/ToolCallCard.js +57 -0
- package/dist/components/Transfer/Transfer.js +93 -0
- package/dist/components/Typography/Typography.js +49 -0
- package/dist/components/Upload/Upload.js +58 -0
- package/dist/components/VirtualList/VirtualList.js +36 -0
- package/dist/haze-ui.css +1 -1
- package/dist/index.js +70 -2
- package/dist/types/components/Affix/Affix.d.ts +10 -0
- package/dist/types/components/Affix/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +4 -1
- package/dist/types/components/ApprovalCard/ApprovalCard.d.ts +13 -0
- package/dist/types/components/ApprovalCard/index.d.ts +2 -0
- package/dist/types/components/AspectRatio/AspectRatio.d.ts +8 -0
- package/dist/types/components/AspectRatio/index.d.ts +2 -0
- package/dist/types/components/BackToTop/BackToTop.d.ts +7 -0
- package/dist/types/components/BackToTop/index.d.ts +2 -0
- package/dist/types/components/Banner/Banner.d.ts +11 -0
- package/dist/types/components/Banner/index.d.ts +2 -0
- package/dist/types/components/BottomSheet/BottomSheet.d.ts +10 -0
- package/dist/types/components/BottomSheet/index.d.ts +2 -0
- package/dist/types/components/ChatContainer/ChatContainer.d.ts +8 -0
- package/dist/types/components/ChatContainer/index.d.ts +2 -0
- package/dist/types/components/ChatInput/ChatInput.d.ts +11 -0
- package/dist/types/components/ChatInput/index.d.ts +2 -0
- package/dist/types/components/ChatMessage/ChatMessage.d.ts +13 -0
- package/dist/types/components/ChatMessage/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +11 -0
- package/dist/types/components/Chip/index.d.ts +2 -0
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +8 -0
- package/dist/types/components/CodeBlock/index.d.ts +2 -0
- package/dist/types/components/Collapsible/Collapsible.d.ts +20 -0
- package/dist/types/components/Collapsible/index.d.ts +2 -0
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +9 -0
- package/dist/types/components/ColorPicker/index.d.ts +2 -0
- package/dist/types/components/Combobox/Combobox.d.ts +2 -1
- package/dist/types/components/Command/Command.d.ts +25 -0
- package/dist/types/components/Command/index.d.ts +2 -0
- package/dist/types/components/ConfirmDialog/ConfirmDialog.d.ts +16 -0
- package/dist/types/components/ConfirmDialog/index.d.ts +2 -0
- package/dist/types/components/Container/Container.d.ts +8 -0
- package/dist/types/components/Container/index.d.ts +2 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +10 -0
- package/dist/types/components/ContextMenu/ContextMenuContent.d.ts +7 -0
- package/dist/types/components/ContextMenu/ContextMenuContext.d.ts +11 -0
- package/dist/types/components/ContextMenu/ContextMenuItem.d.ts +9 -0
- package/dist/types/components/ContextMenu/ContextMenuSeparator.d.ts +5 -0
- package/dist/types/components/ContextMenu/ContextMenuTrigger.d.ts +7 -0
- package/dist/types/components/ContextMenu/index.d.ts +10 -0
- package/dist/types/components/ConversationList/ConversationItem.d.ts +11 -0
- package/dist/types/components/ConversationList/ConversationList.d.ts +7 -0
- package/dist/types/components/ConversationList/index.d.ts +4 -0
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +12 -0
- package/dist/types/components/DateRangePicker/index.d.ts +2 -0
- package/dist/types/components/Datepicker/Datepicker.d.ts +2 -1
- package/dist/types/components/DiffViewer/DiffViewer.d.ts +13 -0
- package/dist/types/components/DiffViewer/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +6 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Drawer/Drawer.d.ts +11 -0
- package/dist/types/components/Drawer/index.d.ts +2 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +10 -0
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +8 -0
- package/dist/types/components/DropdownMenu/DropdownMenuContext.d.ts +8 -0
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +9 -0
- package/dist/types/components/DropdownMenu/DropdownMenuSeparator.d.ts +5 -0
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +7 -0
- package/dist/types/components/DropdownMenu/index.d.ts +10 -0
- package/dist/types/components/Empty/Empty.d.ts +9 -0
- package/dist/types/components/Empty/index.d.ts +2 -0
- package/dist/types/components/Grid/Grid.d.ts +9 -0
- package/dist/types/components/Grid/GridItem.d.ts +9 -0
- package/dist/types/components/Grid/index.d.ts +4 -0
- package/dist/types/components/InlineEdit/InlineEdit.d.ts +10 -0
- package/dist/types/components/InlineEdit/index.d.ts +2 -0
- package/dist/types/components/LogViewer/LogViewer.d.ts +14 -0
- package/dist/types/components/LogViewer/index.d.ts +2 -0
- package/dist/types/components/MarkdownRenderer/MarkdownRenderer.d.ts +6 -0
- package/dist/types/components/MarkdownRenderer/index.d.ts +2 -0
- package/dist/types/components/ModelPicker/ModelPicker.d.ts +16 -0
- package/dist/types/components/ModelPicker/index.d.ts +2 -0
- package/dist/types/components/NavigationBar/NavLink.d.ts +10 -0
- package/dist/types/components/NavigationBar/NavigationBar.d.ts +9 -0
- package/dist/types/components/NavigationBar/index.d.ts +4 -0
- package/dist/types/components/OTPInput/OTPInput.d.ts +9 -0
- package/dist/types/components/OTPInput/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination.d.ts +11 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/PasswordInput/PasswordInput.d.ts +10 -0
- package/dist/types/components/PasswordInput/index.d.ts +2 -0
- package/dist/types/components/Progress/Progress.d.ts +9 -0
- package/dist/types/components/Progress/index.d.ts +2 -0
- package/dist/types/components/Rating/Rating.d.ts +10 -0
- package/dist/types/components/Rating/index.d.ts +2 -0
- package/dist/types/components/Resizable/Resizable.d.ts +18 -0
- package/dist/types/components/Resizable/index.d.ts +2 -0
- package/dist/types/components/ScrollArea/ScrollArea.d.ts +8 -0
- package/dist/types/components/ScrollArea/index.d.ts +2 -0
- package/dist/types/components/Segmented/Segmented.d.ts +16 -0
- package/dist/types/components/Segmented/index.d.ts +2 -0
- package/dist/types/components/Spinner/Spinner.d.ts +6 -0
- package/dist/types/components/Spinner/index.d.ts +2 -0
- package/dist/types/components/Stat/Stat.d.ts +18 -0
- package/dist/types/components/Stat/index.d.ts +2 -0
- package/dist/types/components/StepTimeline/StepTimeline.d.ts +17 -0
- package/dist/types/components/StepTimeline/index.d.ts +2 -0
- package/dist/types/components/Stepper/Step.d.ts +8 -0
- package/dist/types/components/Stepper/Stepper.d.ts +9 -0
- package/dist/types/components/Stepper/StepperContext.d.ts +9 -0
- package/dist/types/components/Stepper/index.d.ts +4 -0
- package/dist/types/components/StreamingText/StreamingText.d.ts +9 -0
- package/dist/types/components/StreamingText/index.d.ts +2 -0
- package/dist/types/components/SwipeAction/SwipeAction.d.ts +12 -0
- package/dist/types/components/SwipeAction/index.d.ts +2 -0
- package/dist/types/components/TagGroup/TagGroup.d.ts +7 -0
- package/dist/types/components/TagGroup/TagGroupItem.d.ts +8 -0
- package/dist/types/components/TagGroup/index.d.ts +4 -0
- package/dist/types/components/TagInput/TagInput.d.ts +11 -0
- package/dist/types/components/TagInput/index.d.ts +2 -0
- package/dist/types/components/ThinkingIndicator/ThinkingIndicator.d.ts +6 -0
- package/dist/types/components/ThinkingIndicator/index.d.ts +2 -0
- package/dist/types/components/TimePicker/TimePicker.d.ts +10 -0
- package/dist/types/components/TimePicker/index.d.ts +2 -0
- package/dist/types/components/Timeline/Timeline.d.ts +15 -0
- package/dist/types/components/Timeline/index.d.ts +2 -0
- package/dist/types/components/TokenCounter/TokenCounter.d.ts +8 -0
- package/dist/types/components/TokenCounter/index.d.ts +2 -0
- package/dist/types/components/ToolCallCard/ToolCallCard.d.ts +11 -0
- package/dist/types/components/ToolCallCard/index.d.ts +2 -0
- package/dist/types/components/Transfer/Transfer.d.ts +14 -0
- package/dist/types/components/Transfer/index.d.ts +2 -0
- package/dist/types/components/Typography/Typography.d.ts +22 -0
- package/dist/types/components/Typography/index.d.ts +2 -0
- package/dist/types/components/Upload/Upload.d.ts +10 -0
- package/dist/types/components/Upload/index.d.ts +2 -0
- package/dist/types/components/VirtualList/VirtualList.d.ts +10 -0
- package/dist/types/components/VirtualList/index.d.ts +2 -0
- package/dist/types/index.d.ts +110 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
3
|
+
type LogEntry = {
|
|
4
|
+
level: LogLevel;
|
|
5
|
+
message: string;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
};
|
|
8
|
+
type LogViewerProps = {
|
|
9
|
+
logs: LogEntry[];
|
|
10
|
+
filter?: Control<LogLevel | null> | LogLevel | null;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export default function LogViewer({ logs, filter: filterControl, className }: LogViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type { LogViewerProps, LogEntry, LogLevel };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type ModelOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
contextLength?: string;
|
|
7
|
+
};
|
|
8
|
+
type ModelPickerProps = {
|
|
9
|
+
value?: Control<string> | string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
options: ModelOption[];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export default function ModelPicker({ value: valueControl, onChange, options, disabled, className, }: ModelPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type { ModelPickerProps, ModelOption };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type NavLinkProps = {
|
|
3
|
+
href?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function NavLink({ href, active, children, onClick, className }: NavLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { NavLinkProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type NavigationBarProps = {
|
|
3
|
+
brand?: ReactNode;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
end?: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function NavigationBar({ brand: brandNode, children, end, className }: NavigationBarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { NavigationBarProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type OTPInputProps = {
|
|
3
|
+
length?: number;
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function OTPInput({ length, value: valueControl, onChange, className, }: OTPInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { OTPInputProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type PaginationProps = {
|
|
4
|
+
page?: Control<number> | number;
|
|
5
|
+
total: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
className?: string;
|
|
9
|
+
} & Omit<ComponentPropsWithoutRef<'nav'>, 'onChange'>;
|
|
10
|
+
export default function Pagination({ page: pageControl, total, pageSize, size, className, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { PaginationProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type PasswordInputProps = {
|
|
3
|
+
value?: Control<string> | string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function PasswordInput({ value: valueControl, onChange, placeholder, disabled, className, }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { PasswordInputProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type ProgressProps = {
|
|
2
|
+
value?: number;
|
|
3
|
+
variant?: 'bar' | 'circle';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
color?: 'primary' | 'success' | 'warning' | 'danger';
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function Progress({ value, variant, size, color, className, }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { ProgressProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type RatingProps = {
|
|
3
|
+
value?: Control<number> | number;
|
|
4
|
+
count?: number;
|
|
5
|
+
allowHalf?: boolean;
|
|
6
|
+
onChange?: (value: number) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function Rating({ value: valueControl, count, allowHalf, onChange, className, }: RatingProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { RatingProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ResizableGroupProps = {
|
|
3
|
+
direction?: 'horizontal' | 'vertical';
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function ResizableGroup({ direction, children, className, }: ResizableGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
type ResizablePanelProps = {
|
|
9
|
+
defaultSize?: number;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function ResizablePanel({ defaultSize, children, className, }: ResizablePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type ResizableHandleProps = {
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function ResizableHandle({ className }: ResizableHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export type { ResizableGroupProps, ResizablePanelProps, ResizableHandleProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ScrollAreaProps = {
|
|
3
|
+
maxHeight?: number | string;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function ScrollArea({ maxHeight, className, children, }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { ScrollAreaProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type SegmentedOption = string | {
|
|
4
|
+
value: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type SegmentedProps = {
|
|
9
|
+
options: SegmentedOption[];
|
|
10
|
+
value?: Control<string> | string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export default function Segmented({ options, value: valueControl, onChange, size, className, }: SegmentedProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type { SegmentedProps, SegmentedOption };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type StatProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
description?: string;
|
|
6
|
+
trend?: 'up' | 'down' | 'neutral';
|
|
7
|
+
trendValue?: string;
|
|
8
|
+
prefix?: ReactNode;
|
|
9
|
+
suffix?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function Stat({ title, value, description, trend, trendValue, prefix, suffix, className, }: StatProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
type StatGroupProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function StatGroup({ children, className }: StatGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export type { StatProps, StatGroupProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type StepStatus = 'pending' | 'active' | 'done' | 'error';
|
|
3
|
+
type StepTimelineProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
type StepTimelineItemProps = {
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
status?: StepStatus;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
declare function StepTimelineItem({ label, description, status, className }: StepTimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function StepTimeline({ children, className }: StepTimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default StepTimeline;
|
|
16
|
+
export { StepTimelineItem };
|
|
17
|
+
export type { StepTimelineProps, StepTimelineItemProps, StepStatus };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type StepperProps = {
|
|
4
|
+
activeStep?: Control<number> | number;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function Stepper({ activeStep: activeStepControl, children, className, }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { StepperProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type StepperContextValue = {
|
|
3
|
+
activeStep: number;
|
|
4
|
+
setActiveStep: Dispatch<SetStateAction<number>>;
|
|
5
|
+
totalSteps: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const StepperProvider: import("react").Provider<StepperContextValue | undefined>;
|
|
8
|
+
export declare function useStepperContext(): StepperContextValue;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type StreamingTextProps = {
|
|
2
|
+
text: string;
|
|
3
|
+
speed?: number;
|
|
4
|
+
onComplete?: () => void;
|
|
5
|
+
showCursor?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function StreamingText({ text, speed, onComplete, showCursor, className, }: StreamingTextProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { StreamingTextProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type SwipeActionProps = {
|
|
3
|
+
left?: ReactNode;
|
|
4
|
+
right?: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onSwipeLeft?: () => void;
|
|
7
|
+
onSwipeRight?: () => void;
|
|
8
|
+
threshold?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function SwipeAction({ left, right, children, onSwipeLeft, onSwipeRight, threshold, className, }: SwipeActionProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type { SwipeActionProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TagGroupItemProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function TagGroupItem({ children, onClose, className }: TagGroupItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { TagGroupItemProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type TagInputProps = {
|
|
3
|
+
value?: Control<string[]> | string[];
|
|
4
|
+
onChange?: (value: string[]) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
maxTags?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function TagInput({ value: valueControl, onChange, placeholder, maxTags, disabled, className, }: TagInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { TagInputProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type TimePickerProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'onChange' | 'type' | 'placeholder'>;
|
|
9
|
+
export default function TimePicker({ value: valueControl, onChange, placeholder, className, ...rest }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { TimePickerProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TimelineProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function Timeline({ children, className }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type TimelineItemProps = {
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
time?: string;
|
|
11
|
+
color?: 'primary' | 'success' | 'warning' | 'danger' | 'default';
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function TimelineItem({ title, description, time, color, className, }: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type { TimelineProps, TimelineItemProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TokenCounterProps = {
|
|
2
|
+
used: number;
|
|
3
|
+
max: number;
|
|
4
|
+
label?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function TokenCounter({ used, max, label, className }: TokenCounterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { TokenCounterProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ToolCallStatus = 'pending' | 'running' | 'done' | 'error';
|
|
3
|
+
type ToolCallCardProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
input?: ReactNode;
|
|
6
|
+
output?: ReactNode;
|
|
7
|
+
status?: ToolCallStatus;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function ToolCallCard({ name, input, output, status, className, }: ToolCallCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { ToolCallCardProps, ToolCallStatus };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type TransferItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type TransferProps = {
|
|
8
|
+
dataSource: TransferItem[];
|
|
9
|
+
targetKeys?: Control<string[]> | string[];
|
|
10
|
+
onChange?: (targetKeys: string[], direction: 'left' | 'right', moveKeys: string[]) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export default function Transfer({ dataSource, targetKeys: targetKeysControl, onChange, className, }: TransferProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type { TransferProps, TransferItem };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TitleProps = {
|
|
3
|
+
level?: 1 | 2 | 3 | 4 | 5;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare function Title({ level, className, children }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
type TextProps = {
|
|
9
|
+
type?: 'default' | 'secondary' | 'muted';
|
|
10
|
+
strong?: boolean;
|
|
11
|
+
code?: boolean;
|
|
12
|
+
mark?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare function Text({ type, strong, code, mark, className, children, }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type ParagraphProps = {
|
|
18
|
+
className?: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export declare function Paragraph({ className, children }: ParagraphProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type { TitleProps, TextProps, ParagraphProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type UploadProps = {
|
|
3
|
+
accept?: string;
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
onChange?: (files: File[]) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function Upload({ accept, multiple, onChange, className, children, }: UploadProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { UploadProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type VirtualListProps<T> = {
|
|
2
|
+
items: T[];
|
|
3
|
+
height: number;
|
|
4
|
+
itemHeight: number;
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
overscan?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function VirtualList<T>({ items, height, itemHeight, renderItem, overscan, className, }: VirtualListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { VirtualListProps };
|