@definable/ui 0.1.9 → 0.1.12
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/card.esm.js +13 -13
- package/dist/components/card.esm.js.map +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/command.d.ts +13 -13
- package/dist/components/modal.esm.js +64 -46
- 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/sheet.esm.js +22 -22
- package/dist/components/sheet.esm.js.map +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sheet.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/components/tooltip.esm.js +25 -49
- package/dist/components/tooltip.esm.js.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/index.d.ts +432 -1
- package/dist/index.esm.js +193 -135
- 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/package.json +1 -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,42 @@ 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
|
+
|
|
36
100
|
declare interface Assistant {
|
|
37
101
|
provider: string;
|
|
38
102
|
name: string;
|
|
@@ -54,7 +118,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
54
118
|
}
|
|
55
119
|
|
|
56
120
|
export declare const badgeVariants: (props?: ({
|
|
57
|
-
variant?: "default" | "
|
|
121
|
+
variant?: "default" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
58
122
|
} & ClassProp) | undefined) => string;
|
|
59
123
|
|
|
60
124
|
export declare function BarChart({ data }: BarChartProps): JSX_2.Element;
|
|
@@ -75,6 +139,24 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
75
139
|
children?: default_2.ReactNode;
|
|
76
140
|
}
|
|
77
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
|
+
|
|
78
160
|
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
79
161
|
|
|
80
162
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -232,6 +314,8 @@ declare interface CollapseProps {
|
|
|
232
314
|
contentClassName?: string;
|
|
233
315
|
}
|
|
234
316
|
|
|
317
|
+
export declare const colorize: (text: string, color: string) => string;
|
|
318
|
+
|
|
235
319
|
export declare interface Column<T> {
|
|
236
320
|
id: string;
|
|
237
321
|
header: string;
|
|
@@ -242,6 +326,100 @@ export declare interface Column<T> {
|
|
|
242
326
|
truncate?: boolean;
|
|
243
327
|
}
|
|
244
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
|
+
|
|
245
423
|
export declare function ConfirmationModal({ isOpen, onClose, onConfirm, title, description, confirmText, cancelText, type }: ConfirmationModalProps): JSX_2.Element;
|
|
246
424
|
|
|
247
425
|
declare interface ConfirmationModalProps {
|
|
@@ -255,6 +433,43 @@ declare interface ConfirmationModalProps {
|
|
|
255
433
|
type?: 'danger' | 'warning';
|
|
256
434
|
}
|
|
257
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
|
+
|
|
258
473
|
export declare const Dialog: ({ ...props }: {
|
|
259
474
|
[x: string]: any;
|
|
260
475
|
}) => JSX_2.Element;
|
|
@@ -301,6 +516,17 @@ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Dr
|
|
|
301
516
|
|
|
302
517
|
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
303
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
|
+
|
|
304
530
|
export declare const getAssistantIcon: (assistant: Assistant, props?: Props) => JSX_2.Element;
|
|
305
531
|
|
|
306
532
|
export declare const getLLMIcon: (provider: string, props?: Props) => JSX_2.Element;
|
|
@@ -319,6 +545,29 @@ export declare const Icons: {
|
|
|
319
545
|
gemini: (props: IconProps) => JSX_2.Element;
|
|
320
546
|
};
|
|
321
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
|
+
|
|
322
571
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
323
572
|
|
|
324
573
|
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -326,6 +575,8 @@ export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInpu
|
|
|
326
575
|
|
|
327
576
|
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
328
577
|
|
|
578
|
+
export declare const languageOptions: Record<MonacoEditorLanguage, editor.IEditorOptions>;
|
|
579
|
+
|
|
329
580
|
export declare function LineChart({ data }: LineChartProps): JSX_2.Element;
|
|
330
581
|
|
|
331
582
|
declare interface LineChartProps {
|
|
@@ -352,6 +603,14 @@ declare interface LoadingPlaceholderProps {
|
|
|
352
603
|
variant?: 'pulse' | 'shimmer';
|
|
353
604
|
}
|
|
354
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
|
+
|
|
355
614
|
export declare const Markdown: default_2.FC<MarkdownProps>;
|
|
356
615
|
|
|
357
616
|
declare interface MarkdownProps {
|
|
@@ -361,6 +620,31 @@ declare interface MarkdownProps {
|
|
|
361
620
|
isDark?: boolean;
|
|
362
621
|
}
|
|
363
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
|
+
|
|
364
648
|
export declare function Modal({ isOpen, onClose, title, description, icon, children, footer, size, showClose, className, isContentScrollable, mainClassName, contentClassName, header, zIndexClassName }: ModalProps): ReactPortal;
|
|
365
649
|
|
|
366
650
|
export declare interface ModalProps {
|
|
@@ -382,18 +666,53 @@ export declare interface ModalProps {
|
|
|
382
666
|
zIndexClassName?: string;
|
|
383
667
|
}
|
|
384
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
|
+
|
|
385
690
|
export declare function NotificationContainer({ isDark }?: NotificationContainerProps): JSX_2.Element;
|
|
386
691
|
|
|
387
692
|
declare interface NotificationContainerProps {
|
|
388
693
|
isDark?: boolean;
|
|
389
694
|
}
|
|
390
695
|
|
|
696
|
+
export declare interface ObjectProperty {
|
|
697
|
+
name: string;
|
|
698
|
+
type: string;
|
|
699
|
+
documentation?: string;
|
|
700
|
+
}
|
|
701
|
+
|
|
391
702
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
392
703
|
|
|
393
704
|
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
394
705
|
|
|
395
706
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
396
707
|
|
|
708
|
+
export declare interface PredefinedVariable {
|
|
709
|
+
name: string;
|
|
710
|
+
type: string;
|
|
711
|
+
documentation?: string;
|
|
712
|
+
properties?: ObjectProperty[];
|
|
713
|
+
isObject?: boolean;
|
|
714
|
+
}
|
|
715
|
+
|
|
397
716
|
export declare const Progress: React_2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
398
717
|
|
|
399
718
|
declare interface Props {
|
|
@@ -450,6 +769,11 @@ export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimit
|
|
|
450
769
|
|
|
451
770
|
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
452
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
|
+
|
|
453
777
|
export declare function Sheet({ isOpen, onClose, children, header, footer, className, enableFullscreen, position, headerClassName }: SheetProps): ReactPortal | null;
|
|
454
778
|
|
|
455
779
|
declare interface SheetProps {
|
|
@@ -464,8 +788,59 @@ declare interface SheetProps {
|
|
|
464
788
|
headerClassName?: string;
|
|
465
789
|
}
|
|
466
790
|
|
|
791
|
+
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
792
|
+
|
|
467
793
|
export declare const Slider: React_2.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
468
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
|
+
|
|
469
844
|
export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
470
845
|
|
|
471
846
|
export declare function Table<T extends {
|
|
@@ -482,6 +857,10 @@ declare interface TableEmptyProps {
|
|
|
482
857
|
icon?: React.ReactNode;
|
|
483
858
|
}
|
|
484
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
|
+
|
|
485
864
|
export declare interface TableProps<T> {
|
|
486
865
|
data: T[];
|
|
487
866
|
columns: Column<T>[];
|
|
@@ -515,6 +894,23 @@ export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps &
|
|
|
515
894
|
export declare interface TextareaProps extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
516
895
|
}
|
|
517
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
|
+
|
|
518
914
|
export declare function Tooltip({ content, side, align, isVisible }: TooltipProps): JSX_2.Element;
|
|
519
915
|
|
|
520
916
|
declare interface TooltipProps {
|
|
@@ -524,4 +920,39 @@ declare interface TooltipProps {
|
|
|
524
920
|
isVisible: boolean;
|
|
525
921
|
}
|
|
526
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
|
+
|
|
527
958
|
export { }
|