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
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
2
3
|
type AlertProps = {
|
|
4
|
+
visible?: Control<boolean> | boolean;
|
|
5
|
+
onClose?: () => void;
|
|
3
6
|
variant?: 'info' | 'success' | 'warning' | 'danger';
|
|
4
7
|
closable?: boolean;
|
|
5
8
|
className?: string;
|
|
6
9
|
children: ReactNode;
|
|
7
10
|
};
|
|
8
|
-
export default function Alert({ variant, closable, className, children, }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default function Alert({ visible: visibleControl, onClose, variant, closable, className, children, }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
12
|
export type { AlertProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ApprovalCardProps = {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
onApprove?: () => void;
|
|
6
|
+
onDeny?: () => void;
|
|
7
|
+
approveText?: string;
|
|
8
|
+
denyText?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export default function ApprovalCard({ title, description, onApprove, onDeny, approveText, denyText, children, className, }: ApprovalCardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { ApprovalCardProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type AspectRatioProps = {
|
|
3
|
+
ratio?: number;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function AspectRatio({ ratio, children, className }: AspectRatioProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { AspectRatioProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type BannerProps = {
|
|
4
|
+
visible?: Control<boolean> | boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
variant?: 'info' | 'success' | 'warning' | 'danger';
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function Banner({ visible: visibleControl, onClose, variant, children, className, }: BannerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export type { BannerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type BottomSheetProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function BottomSheet({ open: openControl, onClose, children, className, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export type { BottomSheetProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ChatContainerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
autoScroll?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function ChatContainer({ children, autoScroll, className, }: ChatContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { ChatContainerProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type ChatInputProps = {
|
|
3
|
+
value?: Control<string> | string;
|
|
4
|
+
onSend?: (message: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function ChatInput({ value: valueControl, onSend, placeholder, disabled, maxLength, className, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { ChatInputProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ChatMessageRole = 'user' | 'assistant' | 'system';
|
|
3
|
+
type ChatMessageProps = {
|
|
4
|
+
role: ChatMessageRole;
|
|
5
|
+
avatar?: ReactNode;
|
|
6
|
+
name?: ReactNode;
|
|
7
|
+
timestamp?: ReactNode;
|
|
8
|
+
status?: 'sending' | 'sent' | 'error';
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export default function ChatMessage({ role, avatar, name, timestamp, status, children, className, }: ChatMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { ChatMessageProps, ChatMessageRole };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ChipProps = {
|
|
3
|
+
variant?: 'solid' | 'outline';
|
|
4
|
+
color?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export default function Chip({ variant, color, icon, onClose, className, children, }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { ChipProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type CodeBlockProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
language?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function CodeBlock({ children, language, className }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { CodeBlockProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type CollapsibleProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function Collapsible({ open: openControl, defaultOpen, children, className, }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type CollapsibleTriggerProps = {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function CollapsibleTrigger({ children, className }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
type CollapsibleContentProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function CollapsibleContent({ children, className }: CollapsibleContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type ColorPickerProps = {
|
|
3
|
+
value?: Control<string> | string;
|
|
4
|
+
presets?: string[];
|
|
5
|
+
onChange?: (color: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function ColorPicker({ value: valueControl, presets, onChange, className, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { ColorPickerProps };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Control } from 'react-use-control';
|
|
2
2
|
type ComboboxProps = {
|
|
3
3
|
value?: Control<string> | string;
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
4
5
|
options: {
|
|
5
6
|
value: string;
|
|
6
7
|
label: string;
|
|
@@ -8,5 +9,5 @@ type ComboboxProps = {
|
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
className?: string;
|
|
10
11
|
};
|
|
11
|
-
export default function Combobox({ value: valueControl, options, placeholder, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function Combobox({ value: valueControl, open: openControl, options, placeholder, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export type { ComboboxProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type CommandProps = {
|
|
4
|
+
query?: Control<string> | string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function Command({ query: queryControl, children, className }: CommandProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type CommandInputProps = {
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function CommandInput({ placeholder, className }: CommandInputProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type CommandListProps = {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function CommandList({ children, className }: CommandListProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
type CommandItemProps = {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
onSelect?: () => void;
|
|
23
|
+
};
|
|
24
|
+
export declare function CommandItem({ children, className, onSelect }: CommandItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export type { CommandProps, CommandInputProps, CommandListProps, CommandItemProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type ConfirmDialogProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
onConfirm?: () => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
variant?: 'default' | 'danger';
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export default function ConfirmDialog({ open: openControl, onClose, onConfirm, onCancel, title, children, confirmText, cancelText, variant, className, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
export type { ConfirmDialogProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function Container({ size, children, className }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { ContainerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type ContextMenuProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function ContextMenu({ open: openControl, onOpenChange, children, className, }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { ContextMenuProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ContextMenuContentProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export default function ContextMenuContent({ children, className }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export type { ContextMenuContentProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type ContextMenuContextValue = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
setPosition: (x: number, y: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const ContextMenuProvider: import("react").Provider<ContextMenuContextValue | undefined>;
|
|
10
|
+
export declare function useContextMenuContext(): ContextMenuContextValue;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ContextMenuItemProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function ContextMenuItem({ children, onClick, disabled, className }: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { ContextMenuItemProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ContextMenuTriggerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export default function ContextMenuTrigger({ children, className }: ContextMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { ContextMenuTriggerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as ContextMenu } from './ContextMenu';
|
|
2
|
+
export { default as ContextMenuTrigger } from './ContextMenuTrigger';
|
|
3
|
+
export { default as ContextMenuContent } from './ContextMenuContent';
|
|
4
|
+
export { default as ContextMenuItem } from './ContextMenuItem';
|
|
5
|
+
export { default as ContextMenuSeparator } from './ContextMenuSeparator';
|
|
6
|
+
export type { ContextMenuProps } from './ContextMenu';
|
|
7
|
+
export type { ContextMenuTriggerProps } from './ContextMenuTrigger';
|
|
8
|
+
export type { ContextMenuContentProps } from './ContextMenuContent';
|
|
9
|
+
export type { ContextMenuItemProps } from './ContextMenuItem';
|
|
10
|
+
export type { ContextMenuSeparatorProps } from './ContextMenuSeparator';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ConversationItemProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
end?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function ConversationItem({ title, subtitle, active, onClick, end, className, }: ConversationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { ConversationItemProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ConversationListProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export default function ConversationList({ children, className }: ConversationListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { ConversationListProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type DateRangePickerProps = {
|
|
4
|
+
startDate?: Control<string> | string;
|
|
5
|
+
endDate?: Control<string> | string;
|
|
6
|
+
onStartChange?: (value: string) => void;
|
|
7
|
+
onEndChange?: (value: string) => void;
|
|
8
|
+
separator?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function DateRangePicker({ startDate: startDateControl, endDate: endDateControl, onStartChange, onEndChange, separator, className, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type { DateRangePickerProps };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Control } from 'react-use-control';
|
|
2
2
|
type DatepickerProps = {
|
|
3
3
|
value?: Control<string> | string;
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
4
5
|
min?: string;
|
|
5
6
|
max?: string;
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
className?: string;
|
|
8
9
|
};
|
|
9
|
-
export default function Datepicker({ value: valueControl, min, max, placeholder, className, }: DatepickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function Datepicker({ value: valueControl, open: openControl, min, max, placeholder, className, }: DatepickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export type { DatepickerProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type DiffLine = {
|
|
2
|
+
type: 'added' | 'removed' | 'unchanged';
|
|
3
|
+
content: string;
|
|
4
|
+
oldLine?: number;
|
|
5
|
+
newLine?: number;
|
|
6
|
+
};
|
|
7
|
+
type DiffViewerProps = {
|
|
8
|
+
oldValue: string;
|
|
9
|
+
newValue: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export default function DiffViewer({ oldValue, newValue, className }: DiffViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { DiffViewerProps, DiffLine };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type DrawerProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export default function Drawer({ open: openControl, placement, onClose, className, children, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { DrawerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type DropdownMenuProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function DropdownMenu({ open: openControl, onOpenChange, children, className, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { DropdownMenuProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type DropdownMenuContentProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
align?: 'start' | 'center' | 'end';
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function DropdownMenuContent({ children, align, className }: DropdownMenuContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export type { DropdownMenuContentProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type DropdownMenuContextValue = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const DropdownMenuProvider: import("react").Provider<DropdownMenuContextValue | undefined>;
|
|
7
|
+
export declare function useDropdownMenuContext(): DropdownMenuContextValue;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type DropdownMenuItemProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function DropdownMenuItem({ children, onClick, disabled, className }: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { DropdownMenuItemProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type DropdownMenuTriggerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export default function DropdownMenuTrigger({ children, className }: DropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { DropdownMenuTriggerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as DropdownMenu } from './DropdownMenu';
|
|
2
|
+
export { default as DropdownMenuTrigger } from './DropdownMenuTrigger';
|
|
3
|
+
export { default as DropdownMenuContent } from './DropdownMenuContent';
|
|
4
|
+
export { default as DropdownMenuItem } from './DropdownMenuItem';
|
|
5
|
+
export { default as DropdownMenuSeparator } from './DropdownMenuSeparator';
|
|
6
|
+
export type { DropdownMenuProps } from './DropdownMenu';
|
|
7
|
+
export type { DropdownMenuTriggerProps } from './DropdownMenuTrigger';
|
|
8
|
+
export type { DropdownMenuContentProps } from './DropdownMenuContent';
|
|
9
|
+
export type { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
10
|
+
export type { DropdownMenuSeparatorProps } from './DropdownMenuSeparator';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type EmptyProps = {
|
|
3
|
+
description?: string;
|
|
4
|
+
image?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Empty({ description, image, className, children, }: EmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { EmptyProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type GridProps = {
|
|
3
|
+
columns?: number;
|
|
4
|
+
gap?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Grid({ columns, gap, className, children, }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { GridProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type GridItemProps = {
|
|
3
|
+
span?: number;
|
|
4
|
+
start?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function GridItem({ span, start, className, children, }: GridItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { GridItemProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Control } from 'react-use-control';
|
|
2
|
+
type InlineEditProps = {
|
|
3
|
+
value?: Control<string> | string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function InlineEdit({ value: valueControl, onChange, placeholder, disabled, className, }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { InlineEditProps };
|