@nicorp/nui 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +11 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +92 -3
- package/dist/index.es.js +5889 -7998
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
29
29
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
30
30
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
31
31
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
32
|
+
import { toast } from 'sonner';
|
|
32
33
|
import { Toaster as Toaster_2 } from 'sonner';
|
|
33
34
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
34
35
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
@@ -45,6 +46,15 @@ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<Accor
|
|
|
45
46
|
|
|
46
47
|
export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
47
48
|
|
|
49
|
+
export declare const AILoading: React_2.ForwardRefExoticComponent<AILoadingProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export declare interface AILoadingProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
52
|
+
/** Visual variant @default "dots" */
|
|
53
|
+
variant?: "dots" | "text";
|
|
54
|
+
/** Text shown for the "text" variant @default "Thinking" */
|
|
55
|
+
text?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
48
58
|
export declare const Alert: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
49
59
|
variant?: "default" | "destructive" | null | undefined;
|
|
50
60
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -208,18 +218,67 @@ export declare const ChartLegend: typeof Legend;
|
|
|
208
218
|
|
|
209
219
|
export declare const ChartTooltip: typeof Tooltip_2;
|
|
210
220
|
|
|
221
|
+
export declare const ChatBubble: React_2.ForwardRefExoticComponent<ChatBubbleProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
222
|
+
|
|
223
|
+
export declare const ChatBubbleAvatar: React_2.ForwardRefExoticComponent<ChatBubbleAvatarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
224
|
+
|
|
225
|
+
export declare interface ChatBubbleAvatarProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
226
|
+
src?: string;
|
|
227
|
+
fallback?: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export declare const ChatBubbleMessage: React_2.ForwardRefExoticComponent<ChatBubbleMessageProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
231
|
+
|
|
232
|
+
export declare interface ChatBubbleMessageProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
233
|
+
variant?: "sent" | "received";
|
|
234
|
+
isLoading?: boolean;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export declare interface ChatBubbleProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
238
|
+
variant?: "sent" | "received";
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare const ChatBubbleTimestamp: React_2.ForwardRefExoticComponent<ChatBubbleTimestampProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
242
|
+
|
|
243
|
+
export declare interface ChatBubbleTimestampProps extends React_2.HTMLAttributes<HTMLSpanElement> {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export declare const ChatContainer: React_2.ForwardRefExoticComponent<ChatContainerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
247
|
+
|
|
248
|
+
export declare interface ChatContainerProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export declare const ChatInput: React_2.ForwardRefExoticComponent<ChatInputProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
252
|
+
|
|
253
|
+
export declare interface ChatInputProps {
|
|
254
|
+
onSend?: (message: string) => void;
|
|
255
|
+
placeholder?: string;
|
|
256
|
+
disabled?: boolean;
|
|
257
|
+
isLoading?: boolean;
|
|
258
|
+
showAttach?: boolean;
|
|
259
|
+
className?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export declare const ChatList: React_2.ForwardRefExoticComponent<ChatListProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
263
|
+
|
|
264
|
+
export declare interface ChatListProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
265
|
+
/** Auto-scroll to bottom when children change @default true */
|
|
266
|
+
autoScroll?: boolean;
|
|
267
|
+
}
|
|
268
|
+
|
|
211
269
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
212
270
|
|
|
213
271
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
214
272
|
|
|
215
273
|
export declare function Code({ className, ...props }: CodeProps): JSX_2.Element;
|
|
216
274
|
|
|
217
|
-
export declare function CodeBlock({ code, language, showLineNumbers, className, }: CodeBlockProps): JSX_2.Element;
|
|
275
|
+
export declare function CodeBlock({ code, language, showLineNumbers, showCopy, className, }: CodeBlockProps): JSX_2.Element;
|
|
218
276
|
|
|
219
277
|
export declare interface CodeBlockProps {
|
|
220
278
|
code: string;
|
|
221
279
|
language?: string;
|
|
222
280
|
showLineNumbers?: boolean;
|
|
281
|
+
showCopy?: boolean;
|
|
223
282
|
className?: string;
|
|
224
283
|
}
|
|
225
284
|
|
|
@@ -580,6 +639,15 @@ export declare interface LeadProps extends React_2.HTMLAttributes<HTMLParagraphE
|
|
|
580
639
|
|
|
581
640
|
export declare const Main: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLElement> & React_2.RefAttributes<HTMLElement>>;
|
|
582
641
|
|
|
642
|
+
export declare const MarkdownRenderer: React_2.ForwardRefExoticComponent<MarkdownRendererProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
643
|
+
|
|
644
|
+
export declare interface MarkdownRendererProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
645
|
+
/** Raw Markdown string */
|
|
646
|
+
content: string;
|
|
647
|
+
/** Streaming mode — suppresses layout shift by avoiding final trim @default false */
|
|
648
|
+
streaming?: boolean;
|
|
649
|
+
}
|
|
650
|
+
|
|
583
651
|
export declare function MetricCard({ title, value, description, trend, trendLabel, icon, className, ...props }: MetricCardProps): JSX_2.Element;
|
|
584
652
|
|
|
585
653
|
declare interface MetricCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -705,11 +773,30 @@ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPr
|
|
|
705
773
|
|
|
706
774
|
export declare const Progress: React_2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
707
775
|
|
|
776
|
+
export declare interface PromptSuggestion {
|
|
777
|
+
title: string;
|
|
778
|
+
description?: string;
|
|
779
|
+
prompt: string;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
export declare const PromptSuggestions: React_2.ForwardRefExoticComponent<PromptSuggestionsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
783
|
+
|
|
784
|
+
export declare interface PromptSuggestionsProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
785
|
+
suggestions: PromptSuggestion[];
|
|
786
|
+
onSelect?: (prompt: string) => void;
|
|
787
|
+
/** Number of grid columns @default 2 */
|
|
788
|
+
columns?: 1 | 2 | 3 | 4;
|
|
789
|
+
}
|
|
790
|
+
|
|
708
791
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
709
792
|
|
|
710
793
|
export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
711
794
|
|
|
712
|
-
export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> &
|
|
795
|
+
export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
796
|
+
orientation?: ScrollAreaOrientation;
|
|
797
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
798
|
+
|
|
799
|
+
declare type ScrollAreaOrientation = "vertical" | "horizontal" | "both";
|
|
713
800
|
|
|
714
801
|
export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
715
802
|
|
|
@@ -936,7 +1023,9 @@ export declare interface TimePickerProps {
|
|
|
936
1023
|
className?: string;
|
|
937
1024
|
}
|
|
938
1025
|
|
|
939
|
-
export
|
|
1026
|
+
export { toast }
|
|
1027
|
+
|
|
1028
|
+
export declare const Toaster: ({ theme: themeProp, ...props }: ToasterProps) => JSX_2.Element;
|
|
940
1029
|
|
|
941
1030
|
declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
|
|
942
1031
|
|