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.
Files changed (208) hide show
  1. package/dist/components/Affix/Affix.js +22 -0
  2. package/dist/components/Alert/Alert.js +14 -10
  3. package/dist/components/ApprovalCard/ApprovalCard.js +42 -0
  4. package/dist/components/AspectRatio/AspectRatio.js +17 -0
  5. package/dist/components/BackToTop/BackToTop.js +28 -0
  6. package/dist/components/Banner/Banner.js +36 -0
  7. package/dist/components/BottomSheet/BottomSheet.js +22 -0
  8. package/dist/components/ChatContainer/ChatContainer.js +25 -0
  9. package/dist/components/ChatInput/ChatInput.js +45 -0
  10. package/dist/components/ChatMessage/ChatMessage.js +45 -0
  11. package/dist/components/Chip/Chip.js +42 -0
  12. package/dist/components/CodeBlock/CodeBlock.js +19 -0
  13. package/dist/components/Collapsible/Collapsible.js +46 -0
  14. package/dist/components/ColorPicker/ColorPicker.js +45 -0
  15. package/dist/components/Combobox/Combobox.js +23 -23
  16. package/dist/components/Command/Command.js +58 -0
  17. package/dist/components/ConfirmDialog/ConfirmDialog.js +51 -0
  18. package/dist/components/Container/Container.js +23 -0
  19. package/dist/components/ContextMenu/ContextMenu.js +42 -0
  20. package/dist/components/ContextMenu/ContextMenuContent.js +19 -0
  21. package/dist/components/ContextMenu/ContextMenuContext.js +10 -0
  22. package/dist/components/ContextMenu/ContextMenuItem.js +20 -0
  23. package/dist/components/ContextMenu/ContextMenuSeparator.js +13 -0
  24. package/dist/components/ContextMenu/ContextMenuTrigger.js +18 -0
  25. package/dist/components/ConversationList/ConversationItem.js +32 -0
  26. package/dist/components/ConversationList/ConversationList.js +13 -0
  27. package/dist/components/DateRangePicker/DateRangePicker.js +38 -0
  28. package/dist/components/Datepicker/Datepicker.js +9 -9
  29. package/dist/components/DiffViewer/DiffViewer.js +81 -0
  30. package/dist/components/Divider/Divider.js +25 -0
  31. package/dist/components/Drawer/Drawer.js +35 -0
  32. package/dist/components/DropdownMenu/DropdownMenu.js +37 -0
  33. package/dist/components/DropdownMenu/DropdownMenuContent.js +23 -0
  34. package/dist/components/DropdownMenu/DropdownMenuContext.js +10 -0
  35. package/dist/components/DropdownMenu/DropdownMenuItem.js +20 -0
  36. package/dist/components/DropdownMenu/DropdownMenuSeparator.js +13 -0
  37. package/dist/components/DropdownMenu/DropdownMenuTrigger.js +17 -0
  38. package/dist/components/Empty/Empty.js +67 -0
  39. package/dist/components/Grid/Grid.js +17 -0
  40. package/dist/components/Grid/GridItem.js +11 -0
  41. package/dist/components/InlineEdit/InlineEdit.js +45 -0
  42. package/dist/components/LogViewer/LogViewer.js +65 -0
  43. package/dist/components/MarkdownRenderer/MarkdownRenderer.js +24 -0
  44. package/dist/components/ModelPicker/ModelPicker.js +26 -0
  45. package/dist/components/NavigationBar/NavLink.js +22 -0
  46. package/dist/components/NavigationBar/NavigationBar.js +26 -0
  47. package/dist/components/OTPInput/OTPInput.js +50 -0
  48. package/dist/components/Pagination/Pagination.js +58 -0
  49. package/dist/components/PasswordInput/PasswordInput.js +32 -0
  50. package/dist/components/Progress/Progress.js +83 -0
  51. package/dist/components/Rating/Rating.js +49 -0
  52. package/dist/components/Resizable/Resizable.js +56 -0
  53. package/dist/components/ScrollArea/ScrollArea.js +14 -0
  54. package/dist/components/Segmented/Segmented.js +42 -0
  55. package/dist/components/Spinner/Spinner.js +39 -0
  56. package/dist/components/Stat/Stat.js +52 -0
  57. package/dist/components/StepTimeline/StepTimeline.js +36 -0
  58. package/dist/components/Stepper/Step.js +38 -0
  59. package/dist/components/Stepper/Stepper.js +25 -0
  60. package/dist/components/Stepper/StepperContext.js +10 -0
  61. package/dist/components/StreamingText/StreamingText.js +34 -0
  62. package/dist/components/SwipeAction/SwipeAction.js +45 -0
  63. package/dist/components/Table/Table.js +14 -11
  64. package/dist/components/TagGroup/TagGroup.js +14 -0
  65. package/dist/components/TagGroup/TagGroupItem.js +19 -0
  66. package/dist/components/TagInput/TagInput.js +51 -0
  67. package/dist/components/ThinkingIndicator/ThinkingIndicator.js +20 -0
  68. package/dist/components/TimePicker/TimePicker.js +22 -0
  69. package/dist/components/Timeline/Timeline.js +47 -0
  70. package/dist/components/TokenCounter/TokenCounter.js +30 -0
  71. package/dist/components/ToolCallCard/ToolCallCard.js +57 -0
  72. package/dist/components/Transfer/Transfer.js +93 -0
  73. package/dist/components/Typography/Typography.js +49 -0
  74. package/dist/components/Upload/Upload.js +58 -0
  75. package/dist/components/VirtualList/VirtualList.js +36 -0
  76. package/dist/haze-ui.css +1 -1
  77. package/dist/index.js +70 -2
  78. package/dist/types/components/Affix/Affix.d.ts +10 -0
  79. package/dist/types/components/Affix/index.d.ts +2 -0
  80. package/dist/types/components/Alert/Alert.d.ts +4 -1
  81. package/dist/types/components/ApprovalCard/ApprovalCard.d.ts +13 -0
  82. package/dist/types/components/ApprovalCard/index.d.ts +2 -0
  83. package/dist/types/components/AspectRatio/AspectRatio.d.ts +8 -0
  84. package/dist/types/components/AspectRatio/index.d.ts +2 -0
  85. package/dist/types/components/BackToTop/BackToTop.d.ts +7 -0
  86. package/dist/types/components/BackToTop/index.d.ts +2 -0
  87. package/dist/types/components/Banner/Banner.d.ts +11 -0
  88. package/dist/types/components/Banner/index.d.ts +2 -0
  89. package/dist/types/components/BottomSheet/BottomSheet.d.ts +10 -0
  90. package/dist/types/components/BottomSheet/index.d.ts +2 -0
  91. package/dist/types/components/ChatContainer/ChatContainer.d.ts +8 -0
  92. package/dist/types/components/ChatContainer/index.d.ts +2 -0
  93. package/dist/types/components/ChatInput/ChatInput.d.ts +11 -0
  94. package/dist/types/components/ChatInput/index.d.ts +2 -0
  95. package/dist/types/components/ChatMessage/ChatMessage.d.ts +13 -0
  96. package/dist/types/components/ChatMessage/index.d.ts +2 -0
  97. package/dist/types/components/Chip/Chip.d.ts +11 -0
  98. package/dist/types/components/Chip/index.d.ts +2 -0
  99. package/dist/types/components/CodeBlock/CodeBlock.d.ts +8 -0
  100. package/dist/types/components/CodeBlock/index.d.ts +2 -0
  101. package/dist/types/components/Collapsible/Collapsible.d.ts +20 -0
  102. package/dist/types/components/Collapsible/index.d.ts +2 -0
  103. package/dist/types/components/ColorPicker/ColorPicker.d.ts +9 -0
  104. package/dist/types/components/ColorPicker/index.d.ts +2 -0
  105. package/dist/types/components/Combobox/Combobox.d.ts +2 -1
  106. package/dist/types/components/Command/Command.d.ts +25 -0
  107. package/dist/types/components/Command/index.d.ts +2 -0
  108. package/dist/types/components/ConfirmDialog/ConfirmDialog.d.ts +16 -0
  109. package/dist/types/components/ConfirmDialog/index.d.ts +2 -0
  110. package/dist/types/components/Container/Container.d.ts +8 -0
  111. package/dist/types/components/Container/index.d.ts +2 -0
  112. package/dist/types/components/ContextMenu/ContextMenu.d.ts +10 -0
  113. package/dist/types/components/ContextMenu/ContextMenuContent.d.ts +7 -0
  114. package/dist/types/components/ContextMenu/ContextMenuContext.d.ts +11 -0
  115. package/dist/types/components/ContextMenu/ContextMenuItem.d.ts +9 -0
  116. package/dist/types/components/ContextMenu/ContextMenuSeparator.d.ts +5 -0
  117. package/dist/types/components/ContextMenu/ContextMenuTrigger.d.ts +7 -0
  118. package/dist/types/components/ContextMenu/index.d.ts +10 -0
  119. package/dist/types/components/ConversationList/ConversationItem.d.ts +11 -0
  120. package/dist/types/components/ConversationList/ConversationList.d.ts +7 -0
  121. package/dist/types/components/ConversationList/index.d.ts +4 -0
  122. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +12 -0
  123. package/dist/types/components/DateRangePicker/index.d.ts +2 -0
  124. package/dist/types/components/Datepicker/Datepicker.d.ts +2 -1
  125. package/dist/types/components/DiffViewer/DiffViewer.d.ts +13 -0
  126. package/dist/types/components/DiffViewer/index.d.ts +2 -0
  127. package/dist/types/components/Divider/Divider.d.ts +6 -0
  128. package/dist/types/components/Divider/index.d.ts +2 -0
  129. package/dist/types/components/Drawer/Drawer.d.ts +11 -0
  130. package/dist/types/components/Drawer/index.d.ts +2 -0
  131. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +10 -0
  132. package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +8 -0
  133. package/dist/types/components/DropdownMenu/DropdownMenuContext.d.ts +8 -0
  134. package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +9 -0
  135. package/dist/types/components/DropdownMenu/DropdownMenuSeparator.d.ts +5 -0
  136. package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +7 -0
  137. package/dist/types/components/DropdownMenu/index.d.ts +10 -0
  138. package/dist/types/components/Empty/Empty.d.ts +9 -0
  139. package/dist/types/components/Empty/index.d.ts +2 -0
  140. package/dist/types/components/Grid/Grid.d.ts +9 -0
  141. package/dist/types/components/Grid/GridItem.d.ts +9 -0
  142. package/dist/types/components/Grid/index.d.ts +4 -0
  143. package/dist/types/components/InlineEdit/InlineEdit.d.ts +10 -0
  144. package/dist/types/components/InlineEdit/index.d.ts +2 -0
  145. package/dist/types/components/LogViewer/LogViewer.d.ts +14 -0
  146. package/dist/types/components/LogViewer/index.d.ts +2 -0
  147. package/dist/types/components/MarkdownRenderer/MarkdownRenderer.d.ts +6 -0
  148. package/dist/types/components/MarkdownRenderer/index.d.ts +2 -0
  149. package/dist/types/components/ModelPicker/ModelPicker.d.ts +16 -0
  150. package/dist/types/components/ModelPicker/index.d.ts +2 -0
  151. package/dist/types/components/NavigationBar/NavLink.d.ts +10 -0
  152. package/dist/types/components/NavigationBar/NavigationBar.d.ts +9 -0
  153. package/dist/types/components/NavigationBar/index.d.ts +4 -0
  154. package/dist/types/components/OTPInput/OTPInput.d.ts +9 -0
  155. package/dist/types/components/OTPInput/index.d.ts +2 -0
  156. package/dist/types/components/Pagination/Pagination.d.ts +11 -0
  157. package/dist/types/components/Pagination/index.d.ts +2 -0
  158. package/dist/types/components/PasswordInput/PasswordInput.d.ts +10 -0
  159. package/dist/types/components/PasswordInput/index.d.ts +2 -0
  160. package/dist/types/components/Progress/Progress.d.ts +9 -0
  161. package/dist/types/components/Progress/index.d.ts +2 -0
  162. package/dist/types/components/Rating/Rating.d.ts +10 -0
  163. package/dist/types/components/Rating/index.d.ts +2 -0
  164. package/dist/types/components/Resizable/Resizable.d.ts +18 -0
  165. package/dist/types/components/Resizable/index.d.ts +2 -0
  166. package/dist/types/components/ScrollArea/ScrollArea.d.ts +8 -0
  167. package/dist/types/components/ScrollArea/index.d.ts +2 -0
  168. package/dist/types/components/Segmented/Segmented.d.ts +16 -0
  169. package/dist/types/components/Segmented/index.d.ts +2 -0
  170. package/dist/types/components/Spinner/Spinner.d.ts +6 -0
  171. package/dist/types/components/Spinner/index.d.ts +2 -0
  172. package/dist/types/components/Stat/Stat.d.ts +18 -0
  173. package/dist/types/components/Stat/index.d.ts +2 -0
  174. package/dist/types/components/StepTimeline/StepTimeline.d.ts +17 -0
  175. package/dist/types/components/StepTimeline/index.d.ts +2 -0
  176. package/dist/types/components/Stepper/Step.d.ts +8 -0
  177. package/dist/types/components/Stepper/Stepper.d.ts +9 -0
  178. package/dist/types/components/Stepper/StepperContext.d.ts +9 -0
  179. package/dist/types/components/Stepper/index.d.ts +4 -0
  180. package/dist/types/components/StreamingText/StreamingText.d.ts +9 -0
  181. package/dist/types/components/StreamingText/index.d.ts +2 -0
  182. package/dist/types/components/SwipeAction/SwipeAction.d.ts +12 -0
  183. package/dist/types/components/SwipeAction/index.d.ts +2 -0
  184. package/dist/types/components/TagGroup/TagGroup.d.ts +7 -0
  185. package/dist/types/components/TagGroup/TagGroupItem.d.ts +8 -0
  186. package/dist/types/components/TagGroup/index.d.ts +4 -0
  187. package/dist/types/components/TagInput/TagInput.d.ts +11 -0
  188. package/dist/types/components/TagInput/index.d.ts +2 -0
  189. package/dist/types/components/ThinkingIndicator/ThinkingIndicator.d.ts +6 -0
  190. package/dist/types/components/ThinkingIndicator/index.d.ts +2 -0
  191. package/dist/types/components/TimePicker/TimePicker.d.ts +10 -0
  192. package/dist/types/components/TimePicker/index.d.ts +2 -0
  193. package/dist/types/components/Timeline/Timeline.d.ts +15 -0
  194. package/dist/types/components/Timeline/index.d.ts +2 -0
  195. package/dist/types/components/TokenCounter/TokenCounter.d.ts +8 -0
  196. package/dist/types/components/TokenCounter/index.d.ts +2 -0
  197. package/dist/types/components/ToolCallCard/ToolCallCard.d.ts +11 -0
  198. package/dist/types/components/ToolCallCard/index.d.ts +2 -0
  199. package/dist/types/components/Transfer/Transfer.d.ts +14 -0
  200. package/dist/types/components/Transfer/index.d.ts +2 -0
  201. package/dist/types/components/Typography/Typography.d.ts +22 -0
  202. package/dist/types/components/Typography/index.d.ts +2 -0
  203. package/dist/types/components/Upload/Upload.d.ts +10 -0
  204. package/dist/types/components/Upload/index.d.ts +2 -0
  205. package/dist/types/components/VirtualList/VirtualList.d.ts +10 -0
  206. package/dist/types/components/VirtualList/index.d.ts +2 -0
  207. package/dist/types/index.d.ts +110 -0
  208. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export { default as Affix } from './Affix';
2
+ export type { AffixProps } from './Affix';
@@ -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,2 @@
1
+ export { default as ApprovalCard } from './ApprovalCard';
2
+ export type { ApprovalCardProps } from './ApprovalCard';
@@ -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,2 @@
1
+ export { default as AspectRatio } from './AspectRatio';
2
+ export type { AspectRatioProps } from './AspectRatio';
@@ -0,0 +1,7 @@
1
+ type BackToTopProps = {
2
+ threshold?: number;
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ };
6
+ export default function BackToTop({ threshold, children, className }: BackToTopProps): import("react/jsx-runtime").JSX.Element;
7
+ export type { BackToTopProps };
@@ -0,0 +1,2 @@
1
+ export { default as BackToTop } from './BackToTop';
2
+ export type { BackToTopProps } from './BackToTop';
@@ -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,2 @@
1
+ export { default as Banner } from './Banner';
2
+ export type { BannerProps } from './Banner';
@@ -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,2 @@
1
+ export { default as BottomSheet } from './BottomSheet';
2
+ export type { BottomSheetProps } from './BottomSheet';
@@ -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,2 @@
1
+ export { default as ChatContainer } from './ChatContainer';
2
+ export type { ChatContainerProps } from './ChatContainer';
@@ -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,2 @@
1
+ export { default as ChatInput } from './ChatInput';
2
+ export type { ChatInputProps } from './ChatInput';
@@ -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,2 @@
1
+ export { default as ChatMessage } from './ChatMessage';
2
+ export type { ChatMessageProps, ChatMessageRole } from './ChatMessage';
@@ -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,2 @@
1
+ export { default as Chip } from './Chip';
2
+ export type { ChipProps } from './Chip';
@@ -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,2 @@
1
+ export { default as CodeBlock } from './CodeBlock';
2
+ export type { CodeBlockProps } from './CodeBlock';
@@ -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,2 @@
1
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './Collapsible';
2
+ export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps } from './Collapsible';
@@ -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 };
@@ -0,0 +1,2 @@
1
+ export { default as ColorPicker } from './ColorPicker';
2
+ export type { ColorPickerProps } from './ColorPicker';
@@ -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,2 @@
1
+ export { default as Command, CommandInput, CommandList, CommandItem } from './Command';
2
+ export type { CommandProps, CommandInputProps, CommandListProps, CommandItemProps } from './Command';
@@ -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,2 @@
1
+ export { default as ConfirmDialog } from './ConfirmDialog';
2
+ export type { ConfirmDialogProps } from './ConfirmDialog';
@@ -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,2 @@
1
+ export { default as Container } from './Container';
2
+ export type { ContainerProps } from './Container';
@@ -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,5 @@
1
+ type ContextMenuSeparatorProps = {
2
+ className?: string;
3
+ };
4
+ export default function ContextMenuSeparator({ className }: ContextMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
5
+ export type { ContextMenuSeparatorProps };
@@ -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,4 @@
1
+ export { default as ConversationList } from './ConversationList';
2
+ export { default as ConversationItem } from './ConversationItem';
3
+ export type { ConversationListProps } from './ConversationList';
4
+ export type { ConversationItemProps } from './ConversationItem';
@@ -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 };
@@ -0,0 +1,2 @@
1
+ export { default as DateRangePicker } from './DateRangePicker';
2
+ export type { DateRangePickerProps } from './DateRangePicker';
@@ -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,2 @@
1
+ export { default as DiffViewer } from './DiffViewer';
2
+ export type { DiffViewerProps, DiffLine } from './DiffViewer';
@@ -0,0 +1,6 @@
1
+ type DividerProps = {
2
+ orientation?: 'horizontal' | 'vertical';
3
+ className?: string;
4
+ };
5
+ export default function Divider({ orientation, className, }: DividerProps): import("react/jsx-runtime").JSX.Element;
6
+ export type { DividerProps };
@@ -0,0 +1,2 @@
1
+ export { default as Divider } from './Divider';
2
+ export type { DividerProps } from './Divider';
@@ -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,2 @@
1
+ export { default as Drawer } from './Drawer';
2
+ export type { DrawerProps } from './Drawer';
@@ -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,5 @@
1
+ type DropdownMenuSeparatorProps = {
2
+ className?: string;
3
+ };
4
+ export default function DropdownMenuSeparator({ className }: DropdownMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
5
+ export type { DropdownMenuSeparatorProps };
@@ -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,2 @@
1
+ export { default as Empty } from './Empty';
2
+ export type { EmptyProps } from './Empty';
@@ -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,4 @@
1
+ export { default as Grid } from './Grid';
2
+ export type { GridProps } from './Grid';
3
+ export { default as GridItem } from './GridItem';
4
+ export type { GridItemProps } from './GridItem';
@@ -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 };
@@ -0,0 +1,2 @@
1
+ export { default as InlineEdit } from './InlineEdit';
2
+ export type { InlineEditProps } from './InlineEdit';