@definable/ui 0.1.8 → 0.1.10
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/MonacoEditor-COZcVMEj.cjs +8 -0
- package/dist/MonacoEditor-COZcVMEj.cjs.map +1 -0
- package/dist/MonacoEditor-D3QSSKa4.js +295 -0
- package/dist/MonacoEditor-D3QSSKa4.js.map +1 -0
- package/dist/alert.d.ts +7 -0
- package/dist/badge.d.ts +1 -1
- package/dist/command.d.ts +13 -13
- package/dist/components/alert.d.ts +7 -0
- package/dist/components/alert.esm.js +35 -22
- package/dist/components/alert.esm.js.map +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/command.d.ts +13 -13
- package/dist/components/modal.esm.js +55 -44
- package/dist/components/modal.esm.js.map +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.js.map +1 -1
- package/dist/components/monaco-editor.esm.js +6 -292
- package/dist/components/monaco-editor.esm.js.map +1 -1
- package/dist/components/monaco-editor.js +1 -7
- package/dist/components/monaco-editor.js.map +1 -1
- package/dist/components/selection-bar.esm.js +7 -7
- package/dist/components/selection-bar.esm.js.map +1 -1
- package/dist/components/selection-bar.js +1 -1
- package/dist/components/selection-bar.js.map +1 -1
- package/dist/components/stepper.esm.js +4 -211
- package/dist/components/stepper.esm.js.map +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/stepper.js.map +1 -1
- package/dist/index.d.ts +464 -1
- package/dist/index.esm.js +455 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stepper-modal-CPlBpxWy.cjs +2 -0
- package/dist/stepper-modal-CPlBpxWy.cjs.map +1 -0
- package/dist/stepper-modal-SYU9mbXs.js +214 -0
- package/dist/stepper-modal-SYU9mbXs.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/utils-DSKoFOjv.cjs.map +1 -1
- package/dist/utils-qaFjX9_3.js.map +1 -1
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,18 +4,24 @@ import { ClassValue } from 'clsx';
|
|
|
4
4
|
import { default as default_2 } from 'react';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
8
|
+
import { editor } from 'monaco-editor';
|
|
7
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
8
10
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
9
11
|
import { LucideIcon } from 'lucide-react';
|
|
12
|
+
import { Monaco } from '@monaco-editor/react';
|
|
10
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
14
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
12
15
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
|
+
import * as RadixContextMenu from '@radix-ui/react-context-menu';
|
|
13
17
|
import * as React_2 from 'react';
|
|
18
|
+
import { ReactNode } from 'react';
|
|
14
19
|
import { ReactPortal } from 'react';
|
|
15
20
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
16
21
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
17
22
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
18
23
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
24
|
+
import { SuggestionDataItem } from 'react-mentions';
|
|
19
25
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
20
26
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
21
27
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -24,7 +30,29 @@ export declare const Alert: React_2.ForwardRefExoticComponent<AlertProps & React
|
|
|
24
30
|
|
|
25
31
|
export declare const AlertDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
26
32
|
|
|
33
|
+
export declare const AlertDialog: React_2.FC<AlertDialogProps>;
|
|
34
|
+
|
|
35
|
+
declare interface AlertDialogProps {
|
|
36
|
+
open?: boolean;
|
|
37
|
+
onOpenChange?: (open: boolean) => void;
|
|
38
|
+
title?: React_2.ReactNode;
|
|
39
|
+
description?: React_2.ReactNode;
|
|
40
|
+
cancelText?: string;
|
|
41
|
+
actionText?: string;
|
|
42
|
+
onCancel?: () => void;
|
|
43
|
+
onAction?: () => void;
|
|
44
|
+
actionVariant?: "default" | "destructive";
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
27
48
|
export declare interface AlertProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
49
|
+
isOpen?: boolean;
|
|
50
|
+
onClose?: () => void;
|
|
51
|
+
onConfirm?: () => void;
|
|
52
|
+
title?: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
confirmText?: string;
|
|
55
|
+
cancelText?: string;
|
|
28
56
|
}
|
|
29
57
|
|
|
30
58
|
export declare const AlertTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -33,6 +61,51 @@ declare const alertVariants: (props?: ({
|
|
|
33
61
|
variant?: "default" | "destructive" | null | undefined;
|
|
34
62
|
} & ClassProp) | undefined) => string;
|
|
35
63
|
|
|
64
|
+
export declare const ANSI: {
|
|
65
|
+
readonly RESET: "\u001B[0m";
|
|
66
|
+
readonly BOLD: "\u001B[1m";
|
|
67
|
+
readonly DIM: "\u001B[2m";
|
|
68
|
+
readonly ITALIC: "\u001B[3m";
|
|
69
|
+
readonly UNDERLINE: "\u001B[4m";
|
|
70
|
+
readonly BLINK: "\u001B[5m";
|
|
71
|
+
readonly REVERSE: "\u001B[7m";
|
|
72
|
+
readonly STRIKETHROUGH: "\u001B[9m";
|
|
73
|
+
readonly BLACK: "\u001B[30m";
|
|
74
|
+
readonly RED: "\u001B[31m";
|
|
75
|
+
readonly GREEN: "\u001B[32m";
|
|
76
|
+
readonly YELLOW: "\u001B[33m";
|
|
77
|
+
readonly BLUE: "\u001B[34m";
|
|
78
|
+
readonly MAGENTA: "\u001B[35m";
|
|
79
|
+
readonly CYAN: "\u001B[36m";
|
|
80
|
+
readonly WHITE: "\u001B[37m";
|
|
81
|
+
readonly GRAY: "\u001B[90m";
|
|
82
|
+
readonly BRIGHT_BLACK: "\u001B[90m";
|
|
83
|
+
readonly BRIGHT_RED: "\u001B[91m";
|
|
84
|
+
readonly BRIGHT_GREEN: "\u001B[92m";
|
|
85
|
+
readonly BRIGHT_YELLOW: "\u001B[93m";
|
|
86
|
+
readonly BRIGHT_BLUE: "\u001B[94m";
|
|
87
|
+
readonly BRIGHT_MAGENTA: "\u001B[95m";
|
|
88
|
+
readonly BRIGHT_CYAN: "\u001B[96m";
|
|
89
|
+
readonly BRIGHT_WHITE: "\u001B[97m";
|
|
90
|
+
readonly BG_BLACK: "\u001B[40m";
|
|
91
|
+
readonly BG_RED: "\u001B[41m";
|
|
92
|
+
readonly BG_GREEN: "\u001B[42m";
|
|
93
|
+
readonly BG_YELLOW: "\u001B[43m";
|
|
94
|
+
readonly BG_BLUE: "\u001B[44m";
|
|
95
|
+
readonly BG_MAGENTA: "\u001B[45m";
|
|
96
|
+
readonly BG_CYAN: "\u001B[46m";
|
|
97
|
+
readonly BG_WHITE: "\u001B[47m";
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
declare interface Assistant {
|
|
101
|
+
provider: string;
|
|
102
|
+
name: string;
|
|
103
|
+
image?: string;
|
|
104
|
+
type: AssistantType;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare type AssistantType = "core" | "agent";
|
|
108
|
+
|
|
36
109
|
export declare const Avatar: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
37
110
|
|
|
38
111
|
export declare const AvatarFallback: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -45,7 +118,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
45
118
|
}
|
|
46
119
|
|
|
47
120
|
export declare const badgeVariants: (props?: ({
|
|
48
|
-
variant?: "default" | "
|
|
121
|
+
variant?: "default" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
49
122
|
} & ClassProp) | undefined) => string;
|
|
50
123
|
|
|
51
124
|
export declare function BarChart({ data }: BarChartProps): JSX_2.Element;
|
|
@@ -66,6 +139,24 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
66
139
|
children?: default_2.ReactNode;
|
|
67
140
|
}
|
|
68
141
|
|
|
142
|
+
export declare const Calendar: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & {
|
|
143
|
+
mode?: "single" | "multiple" | "range";
|
|
144
|
+
selected?: Date | Date[] | null;
|
|
145
|
+
onSelect?: (date: Date | null) => void;
|
|
146
|
+
disabled?: (date: Date) => boolean;
|
|
147
|
+
fromDate?: Date;
|
|
148
|
+
toDate?: Date;
|
|
149
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
150
|
+
|
|
151
|
+
export declare type CalendarProps = React_2.HTMLAttributes<HTMLDivElement> & {
|
|
152
|
+
mode?: "single" | "multiple" | "range";
|
|
153
|
+
selected?: Date | Date[] | null;
|
|
154
|
+
onSelect?: (date: Date | null) => void;
|
|
155
|
+
disabled?: (date: Date) => boolean;
|
|
156
|
+
fromDate?: Date;
|
|
157
|
+
toDate?: Date;
|
|
158
|
+
};
|
|
159
|
+
|
|
69
160
|
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
70
161
|
|
|
71
162
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -223,6 +314,8 @@ declare interface CollapseProps {
|
|
|
223
314
|
contentClassName?: string;
|
|
224
315
|
}
|
|
225
316
|
|
|
317
|
+
export declare const colorize: (text: string, color: string) => string;
|
|
318
|
+
|
|
226
319
|
export declare interface Column<T> {
|
|
227
320
|
id: string;
|
|
228
321
|
header: string;
|
|
@@ -233,6 +326,100 @@ export declare interface Column<T> {
|
|
|
233
326
|
truncate?: boolean;
|
|
234
327
|
}
|
|
235
328
|
|
|
329
|
+
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
330
|
+
children?: React_2.ReactNode;
|
|
331
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
332
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
333
|
+
} & {
|
|
334
|
+
asChild?: boolean;
|
|
335
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
336
|
+
label?: string;
|
|
337
|
+
shouldFilter?: boolean;
|
|
338
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
339
|
+
defaultValue?: string;
|
|
340
|
+
value?: string;
|
|
341
|
+
onValueChange?: (value: string) => void;
|
|
342
|
+
loop?: boolean;
|
|
343
|
+
disablePointerSelection?: boolean;
|
|
344
|
+
vimBindings?: boolean;
|
|
345
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
346
|
+
|
|
347
|
+
export declare const CommandDialog: ({ children, open, onOpenChange, }: {
|
|
348
|
+
children: React_2.ReactNode;
|
|
349
|
+
open: boolean;
|
|
350
|
+
onOpenChange: (open: boolean) => void;
|
|
351
|
+
}) => JSX_2.Element;
|
|
352
|
+
|
|
353
|
+
export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
354
|
+
children?: React_2.ReactNode;
|
|
355
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
356
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
357
|
+
} & {
|
|
358
|
+
asChild?: boolean;
|
|
359
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
360
|
+
|
|
361
|
+
export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
362
|
+
children?: React_2.ReactNode;
|
|
363
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
364
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
365
|
+
} & {
|
|
366
|
+
asChild?: boolean;
|
|
367
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
368
|
+
heading?: React_2.ReactNode;
|
|
369
|
+
value?: string;
|
|
370
|
+
forceMount?: boolean;
|
|
371
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
372
|
+
|
|
373
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>> & {
|
|
374
|
+
ref?: React_2.Ref<HTMLInputElement>;
|
|
375
|
+
} & {
|
|
376
|
+
asChild?: boolean;
|
|
377
|
+
}, "key" | "asChild" | keyof React_2.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
378
|
+
value?: string;
|
|
379
|
+
onValueChange?: (search: string) => void;
|
|
380
|
+
} & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
381
|
+
|
|
382
|
+
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
383
|
+
children?: React_2.ReactNode;
|
|
384
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
385
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
386
|
+
} & {
|
|
387
|
+
asChild?: boolean;
|
|
388
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
389
|
+
disabled?: boolean;
|
|
390
|
+
onSelect?: (value: string) => void;
|
|
391
|
+
value?: string;
|
|
392
|
+
keywords?: string[];
|
|
393
|
+
forceMount?: boolean;
|
|
394
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
395
|
+
|
|
396
|
+
export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
|
|
397
|
+
children?: React_2.ReactNode;
|
|
398
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
399
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
400
|
+
} & {
|
|
401
|
+
asChild?: boolean;
|
|
402
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
403
|
+
label?: string;
|
|
404
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
405
|
+
|
|
406
|
+
export declare function CommandMenu({ open, onOpenChange }: CommandMenuProps): JSX_2.Element;
|
|
407
|
+
|
|
408
|
+
export declare function CommandMenuDemo(): JSX_2.Element;
|
|
409
|
+
|
|
410
|
+
declare type CommandMenuProps = {
|
|
411
|
+
open: boolean;
|
|
412
|
+
onOpenChange: (open: boolean) => void;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
416
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
417
|
+
} & {
|
|
418
|
+
asChild?: boolean;
|
|
419
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
420
|
+
alwaysRender?: boolean;
|
|
421
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
422
|
+
|
|
236
423
|
export declare function ConfirmationModal({ isOpen, onClose, onConfirm, title, description, confirmText, cancelText, type }: ConfirmationModalProps): JSX_2.Element;
|
|
237
424
|
|
|
238
425
|
declare interface ConfirmationModalProps {
|
|
@@ -246,6 +433,43 @@ declare interface ConfirmationModalProps {
|
|
|
246
433
|
type?: 'danger' | 'warning';
|
|
247
434
|
}
|
|
248
435
|
|
|
436
|
+
export declare function ContextMenu({ children, menuContent, className, disabled, onContextMenuOpen, onContextMenuClose }: ContextMenuProps): JSX_2.Element;
|
|
437
|
+
|
|
438
|
+
export declare const ContextMenuCheckboxItem: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuCheckboxItemProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
439
|
+
|
|
440
|
+
export declare const ContextMenuGroup: default_2.ForwardRefExoticComponent<RadixContextMenu.ContextMenuGroupProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
441
|
+
|
|
442
|
+
export declare const ContextMenuItem: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuItemProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
443
|
+
|
|
444
|
+
export declare const ContextMenuLabel: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuLabelProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
445
|
+
inset?: boolean;
|
|
446
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
447
|
+
|
|
448
|
+
declare interface ContextMenuProps {
|
|
449
|
+
children: ReactNode;
|
|
450
|
+
menuContent: ReactNode;
|
|
451
|
+
className?: string;
|
|
452
|
+
disabled?: boolean;
|
|
453
|
+
onContextMenuOpen?: () => void;
|
|
454
|
+
onContextMenuClose?: () => void;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export declare const ContextMenuRadioGroup: default_2.ForwardRefExoticComponent<RadixContextMenu.ContextMenuRadioGroupProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
458
|
+
|
|
459
|
+
export declare const ContextMenuRadioItem: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuRadioItemProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
460
|
+
|
|
461
|
+
export declare const ContextMenuSeparator: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuSeparatorProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
462
|
+
|
|
463
|
+
export declare const ContextMenuSub: default_2.FC<RadixContextMenu.ContextMenuSubProps>;
|
|
464
|
+
|
|
465
|
+
export declare const ContextMenuSubContent: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuSubContentProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
|
|
467
|
+
export declare const ContextMenuSubTrigger: default_2.ForwardRefExoticComponent<Omit<RadixContextMenu.ContextMenuSubTriggerProps & default_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
468
|
+
inset?: boolean;
|
|
469
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
470
|
+
|
|
471
|
+
export declare const defaultOptions: editor.IEditorOptions;
|
|
472
|
+
|
|
249
473
|
export declare const Dialog: ({ ...props }: {
|
|
250
474
|
[x: string]: any;
|
|
251
475
|
}) => JSX_2.Element;
|
|
@@ -292,6 +516,58 @@ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Dr
|
|
|
292
516
|
|
|
293
517
|
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
294
518
|
|
|
519
|
+
export declare function Dropzone({ onDrop, children, className, overlayClassName, dropzoneOptions, showOverlay, }: DropzoneProps): JSX_2.Element;
|
|
520
|
+
|
|
521
|
+
declare interface DropzoneProps {
|
|
522
|
+
onDrop: (acceptedFiles: File[]) => void;
|
|
523
|
+
children: ReactNode;
|
|
524
|
+
className?: string;
|
|
525
|
+
overlayClassName?: string;
|
|
526
|
+
dropzoneOptions?: Omit<DropzoneOptions, 'onDrop'>;
|
|
527
|
+
showOverlay?: boolean;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export declare const getAssistantIcon: (assistant: Assistant, props?: Props) => JSX_2.Element;
|
|
531
|
+
|
|
532
|
+
export declare const getLLMIcon: (provider: string, props?: Props) => JSX_2.Element;
|
|
533
|
+
|
|
534
|
+
declare interface IconProps {
|
|
535
|
+
className?: string;
|
|
536
|
+
size?: number;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export declare const Icons: {
|
|
540
|
+
claude: (props: IconProps) => JSX_2.Element;
|
|
541
|
+
anthropic: (props: IconProps) => JSX_2.Element;
|
|
542
|
+
openai: (props: IconProps) => JSX_2.Element;
|
|
543
|
+
deepseek: (props: IconProps) => JSX_2.Element;
|
|
544
|
+
grok: (props: IconProps) => JSX_2.Element;
|
|
545
|
+
gemini: (props: IconProps) => JSX_2.Element;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
export declare function ImageCropper({ value, onChange, size, className, placeholder, title, outputSize }: ImageCropperProps): JSX_2.Element;
|
|
549
|
+
|
|
550
|
+
export declare function ImageCropperModal({ isOpen, onClose, imageSrc, onCrop, title, outputSize }: ImageCropperModalProps): JSX_2.Element | null;
|
|
551
|
+
|
|
552
|
+
declare interface ImageCropperModalProps {
|
|
553
|
+
isOpen: boolean;
|
|
554
|
+
onClose: () => void;
|
|
555
|
+
imageSrc: string | null;
|
|
556
|
+
onCrop: (croppedImage: string) => void;
|
|
557
|
+
title?: string;
|
|
558
|
+
outputSize?: number;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare interface ImageCropperProps {
|
|
562
|
+
value?: string | null;
|
|
563
|
+
onChange: (croppedImage: string | null) => void;
|
|
564
|
+
size?: number;
|
|
565
|
+
className?: string;
|
|
566
|
+
placeholder?: string;
|
|
567
|
+
title?: string;
|
|
568
|
+
outputSize?: number;
|
|
569
|
+
}
|
|
570
|
+
|
|
295
571
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
296
572
|
|
|
297
573
|
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -299,6 +575,8 @@ export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInpu
|
|
|
299
575
|
|
|
300
576
|
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
301
577
|
|
|
578
|
+
export declare const languageOptions: Record<MonacoEditorLanguage, editor.IEditorOptions>;
|
|
579
|
+
|
|
302
580
|
export declare function LineChart({ data }: LineChartProps): JSX_2.Element;
|
|
303
581
|
|
|
304
582
|
declare interface LineChartProps {
|
|
@@ -325,6 +603,14 @@ declare interface LoadingPlaceholderProps {
|
|
|
325
603
|
variant?: 'pulse' | 'shimmer';
|
|
326
604
|
}
|
|
327
605
|
|
|
606
|
+
export declare const LOG_COLORS: {
|
|
607
|
+
readonly error: "\u001B[31m";
|
|
608
|
+
readonly warning: "\u001B[33m";
|
|
609
|
+
readonly success: "\u001B[32m";
|
|
610
|
+
readonly info: "\u001B[34m";
|
|
611
|
+
readonly debug: "\u001B[90m";
|
|
612
|
+
};
|
|
613
|
+
|
|
328
614
|
export declare const Markdown: default_2.FC<MarkdownProps>;
|
|
329
615
|
|
|
330
616
|
declare interface MarkdownProps {
|
|
@@ -334,6 +620,31 @@ declare interface MarkdownProps {
|
|
|
334
620
|
isDark?: boolean;
|
|
335
621
|
}
|
|
336
622
|
|
|
623
|
+
export declare const Mention: default_2.ForwardRefExoticComponent<MentionProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
624
|
+
|
|
625
|
+
export declare interface MentionProps {
|
|
626
|
+
value: string;
|
|
627
|
+
onChange: (event: {
|
|
628
|
+
target: {
|
|
629
|
+
value: string;
|
|
630
|
+
};
|
|
631
|
+
}) => void;
|
|
632
|
+
placeholder?: string;
|
|
633
|
+
data: MentionUserData[];
|
|
634
|
+
disabled?: boolean;
|
|
635
|
+
className?: string;
|
|
636
|
+
inputClassName?: string;
|
|
637
|
+
suggestionItemClassName?: string;
|
|
638
|
+
trigger?: string;
|
|
639
|
+
displayTransform?: (id: string, display: string) => string;
|
|
640
|
+
onKeyDown?: (e: default_2.KeyboardEvent) => void;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export declare interface MentionUserData extends SuggestionDataItem {
|
|
644
|
+
avatar?: string;
|
|
645
|
+
subtitle?: string;
|
|
646
|
+
}
|
|
647
|
+
|
|
337
648
|
export declare function Modal({ isOpen, onClose, title, description, icon, children, footer, size, showClose, className, isContentScrollable, mainClassName, contentClassName, header, zIndexClassName }: ModalProps): ReactPortal;
|
|
338
649
|
|
|
339
650
|
export declare interface ModalProps {
|
|
@@ -355,20 +666,60 @@ export declare interface ModalProps {
|
|
|
355
666
|
zIndexClassName?: string;
|
|
356
667
|
}
|
|
357
668
|
|
|
669
|
+
export declare function MonacoEditor({ value, onChange, language, height, className, options, onMount, title, variables, variablePrefix, variableSuffix, predefinedVariables, allowFullscreen, isDark, }: MonacoEditorProps): JSX_2.Element;
|
|
670
|
+
|
|
671
|
+
export declare type MonacoEditorLanguage = 'javascript' | 'typescript' | 'python' | 'json' | 'html' | 'css' | 'markdown' | 'plaintext';
|
|
672
|
+
|
|
673
|
+
export declare interface MonacoEditorProps {
|
|
674
|
+
value: string;
|
|
675
|
+
onChange?: (value: string) => void;
|
|
676
|
+
language?: MonacoEditorLanguage;
|
|
677
|
+
height?: string | number;
|
|
678
|
+
className?: string;
|
|
679
|
+
options?: editor.IEditorOptions;
|
|
680
|
+
onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
|
681
|
+
title?: string;
|
|
682
|
+
variables?: VariableSuggestion[];
|
|
683
|
+
variablePrefix?: string;
|
|
684
|
+
variableSuffix?: string;
|
|
685
|
+
predefinedVariables?: PredefinedVariable[];
|
|
686
|
+
allowFullscreen?: boolean;
|
|
687
|
+
isDark?: boolean;
|
|
688
|
+
}
|
|
689
|
+
|
|
358
690
|
export declare function NotificationContainer({ isDark }?: NotificationContainerProps): JSX_2.Element;
|
|
359
691
|
|
|
360
692
|
declare interface NotificationContainerProps {
|
|
361
693
|
isDark?: boolean;
|
|
362
694
|
}
|
|
363
695
|
|
|
696
|
+
export declare interface ObjectProperty {
|
|
697
|
+
name: string;
|
|
698
|
+
type: string;
|
|
699
|
+
documentation?: string;
|
|
700
|
+
}
|
|
701
|
+
|
|
364
702
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
365
703
|
|
|
366
704
|
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
367
705
|
|
|
368
706
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
369
707
|
|
|
708
|
+
export declare interface PredefinedVariable {
|
|
709
|
+
name: string;
|
|
710
|
+
type: string;
|
|
711
|
+
documentation?: string;
|
|
712
|
+
properties?: ObjectProperty[];
|
|
713
|
+
isObject?: boolean;
|
|
714
|
+
}
|
|
715
|
+
|
|
370
716
|
export declare const Progress: React_2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
371
717
|
|
|
718
|
+
declare interface Props {
|
|
719
|
+
className?: string;
|
|
720
|
+
size?: number;
|
|
721
|
+
}
|
|
722
|
+
|
|
372
723
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
373
724
|
|
|
374
725
|
export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -418,6 +769,11 @@ export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimit
|
|
|
418
769
|
|
|
419
770
|
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
420
771
|
|
|
772
|
+
/**
|
|
773
|
+
* Setup variable suggestions for Monaco editor
|
|
774
|
+
*/
|
|
775
|
+
export declare function setupVariableSuggestions(editor: editor.IStandaloneCodeEditor, monaco: Monaco, variables: VariableSuggestion[], config: VariableSuggestionProviderConfig): () => void;
|
|
776
|
+
|
|
421
777
|
export declare function Sheet({ isOpen, onClose, children, header, footer, className, enableFullscreen, position, headerClassName }: SheetProps): ReactPortal | null;
|
|
422
778
|
|
|
423
779
|
declare interface SheetProps {
|
|
@@ -432,8 +788,59 @@ declare interface SheetProps {
|
|
|
432
788
|
headerClassName?: string;
|
|
433
789
|
}
|
|
434
790
|
|
|
791
|
+
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
792
|
+
|
|
435
793
|
export declare const Slider: React_2.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
436
794
|
|
|
795
|
+
export declare interface Step {
|
|
796
|
+
title: string;
|
|
797
|
+
description: string;
|
|
798
|
+
isCompleted: boolean;
|
|
799
|
+
isCurrent: boolean;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export declare function StepLayout({ children, title, sidebar, subclassName, }: StepLayoutProps): JSX_2.Element;
|
|
803
|
+
|
|
804
|
+
declare interface StepLayoutProps {
|
|
805
|
+
children: React.ReactNode;
|
|
806
|
+
title?: string;
|
|
807
|
+
sidebar?: React.ReactNode;
|
|
808
|
+
subclassName?: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export declare function Stepper({ steps, className }: StepperProps): JSX_2.Element;
|
|
812
|
+
|
|
813
|
+
export declare function StepperModal({ isOpen, onClose, title, description, icon: Icon, currentStep, totalSteps, onBack, onNext, onComplete, sidebar, children, continueText, completeText, isNextDisabled, isNextLoading, size, stepLayoutSubclassName, isShowBackButton, isModelContentScrollable }: StepperModalProps): JSX_2.Element;
|
|
814
|
+
|
|
815
|
+
declare interface StepperModalProps {
|
|
816
|
+
isOpen: boolean;
|
|
817
|
+
onClose: () => void;
|
|
818
|
+
title: string;
|
|
819
|
+
description?: string;
|
|
820
|
+
icon?: React.ComponentType<any>;
|
|
821
|
+
currentStep: number;
|
|
822
|
+
totalSteps: number;
|
|
823
|
+
onBack: () => void;
|
|
824
|
+
onNext: () => void;
|
|
825
|
+
onComplete: () => void;
|
|
826
|
+
sidebar: React.ReactNode;
|
|
827
|
+
children: React.ReactNode;
|
|
828
|
+
continueText?: string;
|
|
829
|
+
completeText?: string;
|
|
830
|
+
isNextDisabled?: boolean;
|
|
831
|
+
isNextLoading?: boolean;
|
|
832
|
+
size?: ModalProps['size'];
|
|
833
|
+
stepLayoutSubclassName?: string;
|
|
834
|
+
isShowClose?: boolean;
|
|
835
|
+
isShowBackButton?: boolean;
|
|
836
|
+
isModelContentScrollable?: boolean;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare interface StepperProps {
|
|
840
|
+
steps: Step[];
|
|
841
|
+
className?: string;
|
|
842
|
+
}
|
|
843
|
+
|
|
437
844
|
export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
438
845
|
|
|
439
846
|
export declare function Table<T extends {
|
|
@@ -450,6 +857,10 @@ declare interface TableEmptyProps {
|
|
|
450
857
|
icon?: React.ReactNode;
|
|
451
858
|
}
|
|
452
859
|
|
|
860
|
+
export declare function TableMobile<T extends {
|
|
861
|
+
id: string;
|
|
862
|
+
}>({ data, columns, showCheckbox, onRowClick, selectedItems, onSelect, isLoading, loadingRows }: TableProps<T>): JSX_2.Element | null;
|
|
863
|
+
|
|
453
864
|
export declare interface TableProps<T> {
|
|
454
865
|
data: T[];
|
|
455
866
|
columns: Column<T>[];
|
|
@@ -483,6 +894,23 @@ export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps &
|
|
|
483
894
|
export declare interface TextareaProps extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
484
895
|
}
|
|
485
896
|
|
|
897
|
+
declare type Toast = ToastProps & {
|
|
898
|
+
id: string;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
export declare const toast: (props: ToastProps) => {
|
|
902
|
+
dismiss: () => void;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
export declare const ToastContainer: () => JSX_2.Element | null;
|
|
906
|
+
|
|
907
|
+
declare type ToastProps = {
|
|
908
|
+
title: string;
|
|
909
|
+
description?: string;
|
|
910
|
+
type?: 'default' | 'success' | 'error' | 'warning';
|
|
911
|
+
duration?: number;
|
|
912
|
+
};
|
|
913
|
+
|
|
486
914
|
export declare function Tooltip({ content, side, align, isVisible }: TooltipProps): JSX_2.Element;
|
|
487
915
|
|
|
488
916
|
declare interface TooltipProps {
|
|
@@ -492,4 +920,39 @@ declare interface TooltipProps {
|
|
|
492
920
|
isVisible: boolean;
|
|
493
921
|
}
|
|
494
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Update variables for an existing provider
|
|
925
|
+
* Creates a new provider with the updated variables
|
|
926
|
+
*/
|
|
927
|
+
export declare function updateVariableSuggestions(editor: editor.IStandaloneCodeEditor, monaco: Monaco, variables: VariableSuggestion[], config: VariableSuggestionProviderConfig): void;
|
|
928
|
+
|
|
929
|
+
export declare const useToast: () => {
|
|
930
|
+
toast: (props: ToastProps) => {
|
|
931
|
+
dismiss: () => void;
|
|
932
|
+
};
|
|
933
|
+
toasts: Toast[];
|
|
934
|
+
dismiss: (id: string) => void;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
export declare interface VariableSuggestion {
|
|
938
|
+
name: string;
|
|
939
|
+
type?: string;
|
|
940
|
+
description?: string;
|
|
941
|
+
value?: string;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare type VariableSuggestionProviderConfig = {
|
|
945
|
+
language: string;
|
|
946
|
+
variablePrefix: string;
|
|
947
|
+
variableSuffix: string;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export declare interface VariableSuggestionsProps {
|
|
951
|
+
variables: VariableSuggestion[];
|
|
952
|
+
variablePrefix: string;
|
|
953
|
+
variableSuffix: string;
|
|
954
|
+
onClose: () => void;
|
|
955
|
+
onSelect: (variable: VariableSuggestion) => void;
|
|
956
|
+
}
|
|
957
|
+
|
|
495
958
|
export { }
|