@nicorp/nui 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +73 -0
- package/dist/index.es.js +4144 -3861
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
|
17
17
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
18
18
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
19
19
|
import { Legend } from 'recharts';
|
|
20
|
+
import { LucideIcon } from 'lucide-react';
|
|
20
21
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
21
22
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
22
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
@@ -218,6 +219,28 @@ export declare const ChartLegend: typeof Legend;
|
|
|
218
219
|
|
|
219
220
|
export declare const ChartTooltip: typeof Tooltip_2;
|
|
220
221
|
|
|
222
|
+
export declare const ChatActionCard: React_2.ForwardRefExoticComponent<ChatActionCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
223
|
+
|
|
224
|
+
export declare interface ChatActionCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
225
|
+
/** Card variant/type */
|
|
226
|
+
type?: "success" | "info" | "warning";
|
|
227
|
+
/** Main title text */
|
|
228
|
+
title: string;
|
|
229
|
+
/** Subtitle or description */
|
|
230
|
+
description?: string;
|
|
231
|
+
/** Custom icon (overrides type icon) */
|
|
232
|
+
icon?: LucideIcon;
|
|
233
|
+
/** Action button config */
|
|
234
|
+
action?: {
|
|
235
|
+
label: string;
|
|
236
|
+
onClick: () => void;
|
|
237
|
+
};
|
|
238
|
+
/** Allow card dismissal */
|
|
239
|
+
dismissible?: boolean;
|
|
240
|
+
/** Called when card is dismissed */
|
|
241
|
+
onDismiss?: () => void;
|
|
242
|
+
}
|
|
243
|
+
|
|
221
244
|
export declare const ChatBubble: React_2.ForwardRefExoticComponent<ChatBubbleProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
222
245
|
|
|
223
246
|
export declare const ChatBubbleActions: React_2.ForwardRefExoticComponent<ChatBubbleActionsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -257,6 +280,27 @@ export declare const ChatContainer: React_2.ForwardRefExoticComponent<ChatContai
|
|
|
257
280
|
export declare interface ChatContainerProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
258
281
|
}
|
|
259
282
|
|
|
283
|
+
export declare const ChatEntityPreview: React_2.ForwardRefExoticComponent<ChatEntityPreviewProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
|
|
285
|
+
export declare interface ChatEntityPreviewProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
286
|
+
/** Entity type */
|
|
287
|
+
type: "task" | "project" | "file" | "custom";
|
|
288
|
+
/** Entity title */
|
|
289
|
+
title: string;
|
|
290
|
+
/** Entity ID or badge text */
|
|
291
|
+
id?: string;
|
|
292
|
+
/** Status text */
|
|
293
|
+
status?: string;
|
|
294
|
+
/** Key-value properties to display */
|
|
295
|
+
properties?: Record<string, string>;
|
|
296
|
+
/** Link URL */
|
|
297
|
+
link?: string;
|
|
298
|
+
/** Custom icon (overrides type icon) */
|
|
299
|
+
icon?: LucideIcon;
|
|
300
|
+
/** Called when card is clicked (if link is not provided) */
|
|
301
|
+
onNavigate?: () => void;
|
|
302
|
+
}
|
|
303
|
+
|
|
260
304
|
export declare const ChatFollowUp: React_2.ForwardRefExoticComponent<ChatFollowUpProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
261
305
|
|
|
262
306
|
export declare interface ChatFollowUpProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
@@ -418,6 +462,35 @@ export declare interface ChatModeSelectorProps extends Omit<React_2.HTMLAttribut
|
|
|
418
462
|
size?: "sm" | "default";
|
|
419
463
|
}
|
|
420
464
|
|
|
465
|
+
export declare const ChatQuestion: React_2.ForwardRefExoticComponent<ChatQuestionProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
|
|
467
|
+
export declare interface ChatQuestionOption {
|
|
468
|
+
id: string;
|
|
469
|
+
label: string;
|
|
470
|
+
description?: string;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export declare interface ChatQuestionProps extends Omit<React_2.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
474
|
+
/** Unique identifier for this question widget */
|
|
475
|
+
id?: string;
|
|
476
|
+
/** The question text */
|
|
477
|
+
question: string;
|
|
478
|
+
/** Answer options to display */
|
|
479
|
+
options: ChatQuestionOption[];
|
|
480
|
+
/** Called when user picks an option */
|
|
481
|
+
onSelect?: (optionId: string, label: string) => void;
|
|
482
|
+
/** ID of the currently selected option (for persistence) */
|
|
483
|
+
selectedId?: string;
|
|
484
|
+
/** Disable interaction (shows selection but prevents changes) */
|
|
485
|
+
disabled?: boolean;
|
|
486
|
+
/** Allow user to type a custom answer @default false */
|
|
487
|
+
allowFreeText?: boolean;
|
|
488
|
+
/** Called when user submits free-text answer */
|
|
489
|
+
onFreeTextSubmit?: (text: string) => void;
|
|
490
|
+
/** Grid columns for options @default 1 */
|
|
491
|
+
columns?: 1 | 2;
|
|
492
|
+
}
|
|
493
|
+
|
|
421
494
|
export declare const ChatToolCall: React_2.ForwardRefExoticComponent<ChatToolCallProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
422
495
|
|
|
423
496
|
export declare interface ChatToolCallProps extends React_2.HTMLAttributes<HTMLDivElement> {
|