@elqnt/react 1.0.2 → 1.0.4
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/components/form-controls/icon.js +54 -3
- package/dist/components/form-controls/icon.js.map +1 -1
- package/dist/components/form-controls/icon.mjs +28 -3
- package/dist/components/form-controls/icon.mjs.map +1 -1
- package/dist/components/index.d.mts +587 -0
- package/dist/components/index.d.ts +587 -0
- package/dist/components/index.js +6252 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +6185 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/upload/upload-actions.js +147 -8
- package/dist/components/upload/upload-actions.js.map +1 -1
- package/dist/components/upload/upload-actions.mjs +118 -4
- package/dist/components/upload/upload-actions.mjs.map +1 -1
- package/dist/index.d.mts +21 -585
- package/dist/index.d.ts +21 -585
- package/dist/index.js +1414 -1201
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +626 -483
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -1
- package/dist/chunk-FLTEIMWJ.mjs +0 -36
- package/dist/chunk-FLTEIMWJ.mjs.map +0 -1
- package/dist/chunk-UXJQ7CBV.mjs +0 -122
- package/dist/chunk-UXJQ7CBV.mjs.map +0 -1
- package/dist/chunk-W4AIK44N.js +0 -122
- package/dist/chunk-W4AIK44N.js.map +0 -1
- package/dist/chunk-ZCBGKBZS.js +0 -36
- package/dist/chunk-ZCBGKBZS.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,589 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import { icons } from 'lucide-react';
|
|
3
|
-
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { ReactNode } from 'react';
|
|
5
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
-
import * as react_hook_form from 'react-hook-form';
|
|
9
|
-
import { Control, RegisterOptions, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
10
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
11
|
-
export { ColumnDef } from '@tanstack/react-table';
|
|
12
|
-
import { DateRange } from 'react-day-picker';
|
|
13
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
1
|
+
export { ActionBar, ActionBarButton, ActionBarProps, ActionButton, ActionButtonColor, Actions, Alert, AlertProps, Avatar, AvatarProps, BackButton, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Button, ButtonProps, Card, CardProps, ChatLoading, Checkbox, CheckboxProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupProps, CommandProps, DataTable, DateFilter, Dialog, DialogProps, Drawer, DrawerProps, DropdownField, DropdownMenu, DropdownMenuProps, DurationInput, EloquentActionBar, FilterCombobox, FilterComboboxProps, FilterCondition, FilterDialog, FilterOptionProps, Form, FormCombobox, FormComboboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLayout, FormMessage, FormRow, FormWithActionButtons, IconButton, IconButtonProps, Input, InputProps, KnowledgeGraphWordCloud, LeftNav, MarkdownRenderer, MultiSelect, MultiSelectOption, MultiSelectProps, MultiStepProcess, NavItem, OrgSelector, PageHeader, PageHeaderProps, Popover, PopoverProps, ProfileMenu, RadioGroup, RadioGroupProps, RadioOption, SchemaField, SchemaFieldProps, ScrollArea, ScrollAreaProps, Select, SelectOption, SelectProps, SetupGuide, Sheet, SheetPrimitiveRootProps, SheetProps, Slider, Step, StepComponentProps, StringField, TagsInput, TagsInputProps, TextField, Textarea, TextareaProps, TimePicker, TimePickerProps, Tooltip, TooltipProps, UploadWidget, UploadWidgetV2, badgeVariants, getColspanBySchema, getFieldType, getFileIcon, getFileName, useFormField } from './components/index.js';
|
|
14
2
|
export { Icon, IconProps } from './components/form-controls/icon.js';
|
|
15
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
|
-
import { ScrollArea as ScrollArea$1 } from '@radix-ui/react-scroll-area';
|
|
17
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
18
|
-
import { DropzoneOptions } from 'react-dropzone';
|
|
19
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
20
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
21
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
22
|
-
import { EntityFieldTypeTS } from '@elqnt/entity';
|
|
23
|
-
import { JSONSchema } from '@elqnt/types';
|
|
24
3
|
import { ClassValue } from 'clsx';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare function ActionBarButton({ label, onClick, icon, }: ActionBarButtonProps): react_jsx_runtime.JSX.Element;
|
|
45
|
-
|
|
46
|
-
type Actions = {
|
|
47
|
-
label: string;
|
|
48
|
-
icon: any;
|
|
49
|
-
onClick: () => void;
|
|
50
|
-
};
|
|
51
|
-
type ActionBarProps = {
|
|
52
|
-
actions: Actions[];
|
|
53
|
-
};
|
|
54
|
-
declare const ActionBar: ({ actions }: ActionBarProps) => react_jsx_runtime.JSX.Element;
|
|
55
|
-
|
|
56
|
-
type AlertProps = {
|
|
57
|
-
title: string;
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
|
-
declare const Alert: ({ title, description }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
61
|
-
|
|
62
|
-
type AvatarProps = {
|
|
63
|
-
image: string;
|
|
64
|
-
fallback: string;
|
|
65
|
-
};
|
|
66
|
-
declare const Avatar: ({ image, fallback }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
67
|
-
|
|
68
|
-
type BreadcrumbItem = {
|
|
69
|
-
label: string;
|
|
70
|
-
href: string;
|
|
71
|
-
};
|
|
72
|
-
type BreadcrumbProps = {
|
|
73
|
-
breadcrumb: BreadcrumbItem[];
|
|
74
|
-
};
|
|
75
|
-
declare const Breadcrumb: ({ breadcrumb }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
76
|
-
|
|
77
|
-
declare const buttonVariants: (props?: ({
|
|
78
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
79
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
80
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
81
|
-
interface ButtonProps$2 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
82
|
-
asChild?: boolean;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
type ButtonProps$1 = {
|
|
86
|
-
children: React$1.ReactNode;
|
|
87
|
-
type?: "button" | "submit" | "reset";
|
|
88
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
89
|
-
className?: string;
|
|
90
|
-
onClick?: () => void;
|
|
91
|
-
} & ButtonProps$2;
|
|
92
|
-
declare const Button: React$1.ForwardRefExoticComponent<{
|
|
93
|
-
children: React$1.ReactNode;
|
|
94
|
-
type?: "button" | "submit" | "reset";
|
|
95
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
96
|
-
className?: string;
|
|
97
|
-
onClick?: () => void;
|
|
98
|
-
} & ButtonProps$2 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
99
|
-
|
|
100
|
-
type CardProps = {
|
|
101
|
-
title: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
content: string;
|
|
104
|
-
footer?: string;
|
|
105
|
-
};
|
|
106
|
-
declare const Card: ({ title, description, content, footer }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
107
|
-
|
|
108
|
-
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
109
|
-
title?: string;
|
|
110
|
-
name?: string;
|
|
111
|
-
control?: any;
|
|
112
|
-
isFormField?: boolean;
|
|
113
|
-
}
|
|
114
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
115
|
-
|
|
116
|
-
type ComboboxOption = {
|
|
117
|
-
value: string;
|
|
118
|
-
label: string;
|
|
119
|
-
};
|
|
120
|
-
type ComboboxProps = {
|
|
121
|
-
label: string;
|
|
122
|
-
defaultValue?: string;
|
|
123
|
-
onChange?: (value: string) => void;
|
|
124
|
-
options: ComboboxOption[];
|
|
125
|
-
isFormField?: boolean;
|
|
126
|
-
control?: Control;
|
|
127
|
-
name?: string;
|
|
128
|
-
};
|
|
129
|
-
declare function Combobox({ label, options, defaultValue, onChange, isFormField, control, name, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
130
|
-
|
|
131
|
-
type CommandGroupProps = {
|
|
132
|
-
header: string;
|
|
133
|
-
items: string[];
|
|
134
|
-
};
|
|
135
|
-
type CommandProps = {
|
|
136
|
-
commandGroup: CommandGroupProps[];
|
|
137
|
-
placeholder: string;
|
|
138
|
-
className?: string;
|
|
139
|
-
};
|
|
140
|
-
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
141
|
-
children?: React$1.ReactNode;
|
|
142
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
143
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
144
|
-
} & {
|
|
145
|
-
asChild?: boolean;
|
|
146
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
147
|
-
label?: string;
|
|
148
|
-
shouldFilter?: boolean;
|
|
149
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
150
|
-
defaultValue?: string;
|
|
151
|
-
value?: string;
|
|
152
|
-
onValueChange?: (value: string) => void;
|
|
153
|
-
loop?: boolean;
|
|
154
|
-
disablePointerSelection?: boolean;
|
|
155
|
-
vimBindings?: boolean;
|
|
156
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & CommandProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
157
|
-
|
|
158
|
-
interface DataTableProps<TData, TValue> {
|
|
159
|
-
columns: ColumnDef<TData, TValue>[];
|
|
160
|
-
data: TData[];
|
|
161
|
-
filterField?: string;
|
|
162
|
-
refresh?: () => void;
|
|
163
|
-
isLoading?: boolean;
|
|
164
|
-
}
|
|
165
|
-
declare function DataTable<TData, TValue>({ data, columns, filterField, refresh, isLoading, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
166
|
-
|
|
167
|
-
type DateFilterProps = {
|
|
168
|
-
className?: string;
|
|
169
|
-
date?: DateRange | undefined;
|
|
170
|
-
setDate: (date: DateRange | undefined) => void;
|
|
171
|
-
} & React$1.HTMLAttributes<HTMLDivElement>;
|
|
172
|
-
declare function DateFilter({ className, date, setDate }: DateFilterProps): react_jsx_runtime.JSX.Element;
|
|
173
|
-
|
|
174
|
-
type DialogProps = {
|
|
175
|
-
title: string;
|
|
176
|
-
children: React.ReactNode;
|
|
177
|
-
description?: string;
|
|
178
|
-
open?: boolean;
|
|
179
|
-
trigger?: string;
|
|
180
|
-
onOpenChange?: (open: boolean) => void;
|
|
181
|
-
className?: string;
|
|
182
|
-
icon?: keyof typeof icons;
|
|
183
|
-
iconClassName?: string;
|
|
184
|
-
actions?: {
|
|
185
|
-
label: string;
|
|
186
|
-
type: "default" | "destructive" | "outline" | "secondary" | "ghost";
|
|
187
|
-
icon?: keyof typeof icons;
|
|
188
|
-
iconClassName?: string;
|
|
189
|
-
onAction: () => void;
|
|
190
|
-
disabled?: boolean;
|
|
191
|
-
}[];
|
|
192
|
-
};
|
|
193
|
-
declare const Dialog: ({ title, description, trigger, open, onOpenChange, children, className, icon, iconClassName, actions, }: DialogProps) => react_jsx_runtime.JSX.Element;
|
|
194
|
-
|
|
195
|
-
type DrawerPrimitiveRootProps = React__default.ComponentProps<typeof Drawer$1.Root>;
|
|
196
|
-
type DrawerProps = {
|
|
197
|
-
title: string;
|
|
198
|
-
openDrawer?: boolean;
|
|
199
|
-
setOpenDrawer?: (open: boolean) => void;
|
|
200
|
-
description?: string;
|
|
201
|
-
children: React__default.ReactNode;
|
|
202
|
-
trigger?: React__default.ReactNode;
|
|
203
|
-
} & DrawerPrimitiveRootProps;
|
|
204
|
-
declare const Drawer: ({ title, trigger, description, children, openDrawer, setOpenDrawer, ...props }: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
-
|
|
206
|
-
type SelectOption = {
|
|
207
|
-
value: string;
|
|
208
|
-
label: string;
|
|
209
|
-
};
|
|
210
|
-
type SelectProps = {
|
|
211
|
-
defaultValue: string;
|
|
212
|
-
placeholder: string;
|
|
213
|
-
options: SelectOption[];
|
|
214
|
-
onValueChange: (value: string) => void;
|
|
215
|
-
className?: string;
|
|
216
|
-
};
|
|
217
|
-
declare const Select: React.FC<SelectProps>;
|
|
218
|
-
|
|
219
|
-
interface DropdownMenuProps {
|
|
220
|
-
trigger: React__default.ReactNode;
|
|
221
|
-
items: SelectOption[];
|
|
222
|
-
onClick: (value: string, label: string) => void;
|
|
223
|
-
className?: string;
|
|
224
|
-
}
|
|
225
|
-
declare const DropdownMenu: React__default.FC<DropdownMenuProps>;
|
|
226
|
-
|
|
227
|
-
interface DurationInputProps {
|
|
228
|
-
value?: number | string;
|
|
229
|
-
onChange: (val: string) => void;
|
|
230
|
-
}
|
|
231
|
-
declare function DurationInput({ value, onChange }: DurationInputProps): react_jsx_runtime.JSX.Element;
|
|
232
|
-
|
|
233
|
-
type FilterOptionProps = {
|
|
234
|
-
label: string;
|
|
235
|
-
value: string;
|
|
236
|
-
icon?: keyof typeof icons;
|
|
237
|
-
};
|
|
238
|
-
type FilterComboboxProps = {
|
|
239
|
-
title: string;
|
|
240
|
-
clearLabel: string;
|
|
241
|
-
options: FilterOptionProps[];
|
|
242
|
-
};
|
|
243
|
-
declare function FilterCombobox({ title, options, clearLabel }: FilterComboboxProps): react_jsx_runtime.JSX.Element;
|
|
244
|
-
|
|
245
|
-
interface FormComboboxProps {
|
|
246
|
-
label: string;
|
|
247
|
-
title?: string;
|
|
248
|
-
name?: string;
|
|
249
|
-
control?: Control;
|
|
250
|
-
rules?: RegisterOptions;
|
|
251
|
-
data: {
|
|
252
|
-
value: string;
|
|
253
|
-
label: string;
|
|
254
|
-
}[];
|
|
255
|
-
}
|
|
256
|
-
declare function FormCombobox({ title, name, control, rules, data, label, }: FormComboboxProps): react_jsx_runtime.JSX.Element;
|
|
257
|
-
|
|
258
|
-
type FormLayoutProps = {
|
|
259
|
-
children: React.ReactNode;
|
|
260
|
-
formTitle: string;
|
|
261
|
-
formDescription: string;
|
|
262
|
-
onCanel: () => void;
|
|
263
|
-
onSave: () => void;
|
|
264
|
-
form: any;
|
|
265
|
-
PrimaryActionText: string;
|
|
266
|
-
CancelText: string;
|
|
267
|
-
className?: string;
|
|
268
|
-
};
|
|
269
|
-
declare function FormLayout({ children, formTitle, formDescription, onCanel, onSave, form, className, PrimaryActionText, CancelText, }: FormLayoutProps): react_jsx_runtime.JSX.Element;
|
|
270
|
-
|
|
271
|
-
type RowLayoutProps = {
|
|
272
|
-
children: React.ReactNode;
|
|
273
|
-
title: string;
|
|
274
|
-
description: string;
|
|
275
|
-
};
|
|
276
|
-
declare function FormRow({ children, title, description }: RowLayoutProps): react_jsx_runtime.JSX.Element;
|
|
277
|
-
|
|
278
|
-
type FormWithActionButtonsProps = {
|
|
279
|
-
children: React__default.ReactNode;
|
|
280
|
-
form: any;
|
|
281
|
-
onSubmit: (data: any) => void;
|
|
282
|
-
onCancel: () => void;
|
|
283
|
-
primaryButtonText: string;
|
|
284
|
-
secondaryButtonText: string;
|
|
285
|
-
secondaryButtonAction: () => void;
|
|
286
|
-
showSecondaryButton?: boolean;
|
|
287
|
-
};
|
|
288
|
-
declare const FormWithActionButtons: ({ children, form, onSubmit, onCancel, primaryButtonText, secondaryButtonText, secondaryButtonAction, showSecondaryButton, }: FormWithActionButtonsProps) => react_jsx_runtime.JSX.Element;
|
|
289
|
-
|
|
290
|
-
declare const getFileIcon: (fileName: string) => react_jsx_runtime.JSX.Element;
|
|
291
|
-
declare const getFileName: (url: string) => string;
|
|
292
|
-
|
|
293
|
-
type NavItem = {
|
|
294
|
-
key: string;
|
|
295
|
-
group?: string;
|
|
296
|
-
title: string;
|
|
297
|
-
logo?: string;
|
|
298
|
-
href?: string;
|
|
299
|
-
subNav?: NavItem[];
|
|
300
|
-
icon: keyof typeof icons;
|
|
301
|
-
userGroups?: string[];
|
|
302
|
-
};
|
|
303
|
-
type IconButtonProps = {
|
|
304
|
-
item: NavItem;
|
|
305
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
306
|
-
className?: string;
|
|
307
|
-
onClick?: () => void;
|
|
308
|
-
};
|
|
309
|
-
declare const IconButton: React__default.FC<IconButtonProps>;
|
|
310
|
-
|
|
311
|
-
interface InputProps$1 extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
declare const badgeVariants: (props?: ({
|
|
315
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
316
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
317
|
-
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
318
|
-
}
|
|
319
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
320
|
-
|
|
321
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
322
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
323
|
-
declare const useFormField: () => {
|
|
324
|
-
invalid: boolean;
|
|
325
|
-
isDirty: boolean;
|
|
326
|
-
isTouched: boolean;
|
|
327
|
-
isValidating: boolean;
|
|
328
|
-
error?: react_hook_form.FieldError;
|
|
329
|
-
id: string;
|
|
330
|
-
name: string;
|
|
331
|
-
formItemId: string;
|
|
332
|
-
formDescriptionId: string;
|
|
333
|
-
formMessageId: string;
|
|
334
|
-
};
|
|
335
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
336
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
337
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
338
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
339
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
340
|
-
|
|
341
|
-
interface TextareaProps$1 extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
345
|
-
|
|
346
|
-
type Variants = {
|
|
347
|
-
variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
interface InputProps extends InputProps$1 {
|
|
351
|
-
title?: string;
|
|
352
|
-
name?: string;
|
|
353
|
-
control?: Control;
|
|
354
|
-
isFormField?: boolean;
|
|
355
|
-
variant?: Variants;
|
|
356
|
-
rules?: RegisterOptions;
|
|
357
|
-
}
|
|
358
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
359
|
-
|
|
360
|
-
declare function KnowledgeGraphWordCloud(): react_jsx_runtime.JSX.Element | null;
|
|
361
|
-
|
|
362
|
-
declare function OrgSelector(): react_jsx_runtime.JSX.Element | null;
|
|
363
|
-
|
|
364
|
-
type Action = {
|
|
365
|
-
label: string;
|
|
366
|
-
type: "secondary" | "link" | "default" | "destructive" | "outline" | "ghost";
|
|
367
|
-
href?: string;
|
|
368
|
-
onAction?: () => void;
|
|
369
|
-
};
|
|
370
|
-
type PageHeaderProps = {
|
|
371
|
-
title?: string;
|
|
372
|
-
description?: string;
|
|
373
|
-
actions?: Action[];
|
|
374
|
-
goBackLink?: string;
|
|
375
|
-
showBack?: boolean;
|
|
376
|
-
backUrl?: string;
|
|
377
|
-
rightSideComponent?: React.ReactNode;
|
|
378
|
-
titleComponent?: React.ReactNode;
|
|
379
|
-
justify?: "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
380
|
-
};
|
|
381
|
-
declare function PageHeader({ title, description, actions, goBackLink, showBack, backUrl, rightSideComponent, titleComponent, justify, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
382
|
-
|
|
383
|
-
declare function LeftNav({ fullMenuItems, menuItems, pageTitle, ExpandedLogo, Logo, }: {
|
|
384
|
-
fullMenuItems: NavItem[];
|
|
385
|
-
menuItems?: NavItem[] | undefined;
|
|
386
|
-
pageTitle?: String | undefined;
|
|
387
|
-
ExpandedLogo: React.FC;
|
|
388
|
-
Logo: React.FC;
|
|
389
|
-
}): react_jsx_runtime.JSX.Element;
|
|
390
|
-
|
|
391
|
-
type ProfileMenuProps = {
|
|
392
|
-
children: React.ReactNode;
|
|
393
|
-
pathName: string;
|
|
394
|
-
};
|
|
395
|
-
declare function ProfileMenu({ children, pathName }: ProfileMenuProps): react_jsx_runtime.JSX.Element;
|
|
396
|
-
|
|
397
|
-
type MultiSelectOption = {
|
|
398
|
-
value: string;
|
|
399
|
-
label: string;
|
|
400
|
-
};
|
|
401
|
-
type MultiSelectProps = {
|
|
402
|
-
defaultValue?: string[];
|
|
403
|
-
placeholder: string;
|
|
404
|
-
options: MultiSelectOption[];
|
|
405
|
-
onValueChange: (values: string[]) => void;
|
|
406
|
-
className?: string;
|
|
407
|
-
};
|
|
408
|
-
declare const MultiSelect: React.FC<MultiSelectProps>;
|
|
409
|
-
|
|
410
|
-
interface StepComponentProps {
|
|
411
|
-
step: Step;
|
|
412
|
-
updateStep: (updates: Partial<Step>) => void;
|
|
413
|
-
}
|
|
414
|
-
interface Step {
|
|
415
|
-
id: number;
|
|
416
|
-
title: string;
|
|
417
|
-
component: React__default.ComponentType<StepComponentProps>;
|
|
418
|
-
isValid: boolean;
|
|
419
|
-
isLoading?: boolean;
|
|
420
|
-
isComplete?: boolean;
|
|
421
|
-
action?: () => Promise<void>;
|
|
422
|
-
}
|
|
423
|
-
interface MultiStepProcessProps {
|
|
424
|
-
initialSteps: Omit<Step, "isValid" | "isComplete">[];
|
|
425
|
-
onFinish: () => void;
|
|
426
|
-
finishButtonText?: string;
|
|
427
|
-
}
|
|
428
|
-
declare const MultiStepProcess: React__default.FC<MultiStepProcessProps>;
|
|
429
|
-
|
|
430
|
-
interface PopoverProps {
|
|
431
|
-
trigger: React$1.ReactNode;
|
|
432
|
-
children: React$1.ReactNode;
|
|
433
|
-
className?: string;
|
|
434
|
-
align?: "start" | "center" | "end";
|
|
435
|
-
sideOffset?: number;
|
|
436
|
-
}
|
|
437
|
-
declare const Popover: React$1.FC<PopoverProps>;
|
|
438
|
-
|
|
439
|
-
type RadioOption = {
|
|
440
|
-
value: string;
|
|
441
|
-
label: string;
|
|
442
|
-
};
|
|
443
|
-
interface RadioGroupProps extends React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
444
|
-
options: RadioOption[];
|
|
445
|
-
defaultValue?: string;
|
|
446
|
-
title?: string;
|
|
447
|
-
name?: string;
|
|
448
|
-
control?: Control;
|
|
449
|
-
isFormField?: boolean;
|
|
450
|
-
}
|
|
451
|
-
declare const RadioGroup: React$1.ForwardRefExoticComponent<RadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
452
|
-
|
|
453
|
-
interface ScrollAreaProps extends React$1.ComponentPropsWithoutRef<typeof ScrollArea$1> {
|
|
454
|
-
children: React$1.ReactNode;
|
|
455
|
-
className?: string;
|
|
456
|
-
}
|
|
457
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
458
|
-
|
|
459
|
-
interface ButtonProps {
|
|
460
|
-
content: string;
|
|
461
|
-
props: React__default.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
462
|
-
}
|
|
463
|
-
interface SetupGuideProps {
|
|
464
|
-
onDismiss: () => void;
|
|
465
|
-
onStepComplete: (id: number) => Promise<void>;
|
|
466
|
-
items: SetupItem[];
|
|
467
|
-
}
|
|
468
|
-
declare const SetupGuide: React__default.FC<SetupGuideProps>;
|
|
469
|
-
interface SetupItemProps extends SetupItem {
|
|
470
|
-
expanded: boolean;
|
|
471
|
-
setExpanded: () => void;
|
|
472
|
-
onComplete: (id: number) => Promise<void>;
|
|
473
|
-
}
|
|
474
|
-
interface SetupItem {
|
|
475
|
-
id: number;
|
|
476
|
-
title: string;
|
|
477
|
-
description: string;
|
|
478
|
-
complete: boolean;
|
|
479
|
-
image?: {
|
|
480
|
-
url: string;
|
|
481
|
-
alt: string;
|
|
482
|
-
};
|
|
483
|
-
primaryButton?: ButtonProps;
|
|
484
|
-
secondaryButton?: ButtonProps;
|
|
485
|
-
}
|
|
486
|
-
declare const SetupItem: React__default.FC<SetupItemProps>;
|
|
487
|
-
|
|
488
|
-
type SheetPrimitiveRootProps = React.ComponentProps<typeof SheetPrimitive.Root>;
|
|
489
|
-
type SheetProps = {
|
|
490
|
-
title: string;
|
|
491
|
-
children: React.ReactNode;
|
|
492
|
-
description?: string;
|
|
493
|
-
trigger?: React.ReactNode;
|
|
494
|
-
} & SheetPrimitiveRootProps;
|
|
495
|
-
declare const Sheet: ({ title, trigger, description, children, ...props }: SheetProps) => react_jsx_runtime.JSX.Element;
|
|
496
|
-
|
|
497
|
-
interface TagsInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> {
|
|
498
|
-
variant?: Variants;
|
|
499
|
-
value: string[];
|
|
500
|
-
onChange: (tags: string[]) => void;
|
|
501
|
-
}
|
|
502
|
-
declare const TagsInput: React$1.ForwardRefExoticComponent<TagsInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
503
|
-
|
|
504
|
-
interface TextareaProps extends TextareaProps$1 {
|
|
505
|
-
title?: string;
|
|
506
|
-
name?: string;
|
|
507
|
-
control?: Control;
|
|
508
|
-
isFormField?: boolean;
|
|
509
|
-
variant?: Variants;
|
|
510
|
-
rules?: RegisterOptions;
|
|
511
|
-
}
|
|
512
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
513
|
-
|
|
514
|
-
type TimePickerProps = {
|
|
515
|
-
value?: string;
|
|
516
|
-
onValueChange: (time: string) => void;
|
|
517
|
-
placeholder?: string;
|
|
518
|
-
className?: string;
|
|
519
|
-
disabled?: boolean;
|
|
520
|
-
};
|
|
521
|
-
declare const TimePicker: React.FC<TimePickerProps>;
|
|
522
|
-
|
|
523
|
-
type TooltipProps = {
|
|
524
|
-
children: ReactNode;
|
|
525
|
-
tipContent: string;
|
|
526
|
-
};
|
|
527
|
-
declare const Tooltip: ({ children, tipContent }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
528
|
-
|
|
529
|
-
interface UploadWidgetProps {
|
|
530
|
-
accept: DropzoneOptions["accept"];
|
|
531
|
-
maxSize: number;
|
|
532
|
-
maxFiles: number;
|
|
533
|
-
fileUrls: string[];
|
|
534
|
-
isUploading?: boolean;
|
|
535
|
-
onFilesSelected: (urls: File[]) => void;
|
|
536
|
-
}
|
|
537
|
-
declare function UploadWidget({ accept, maxSize, maxFiles, fileUrls, isUploading, onFilesSelected, }: UploadWidgetProps): react_jsx_runtime.JSX.Element;
|
|
538
|
-
|
|
539
|
-
declare function MarkdownRenderer({ content }: {
|
|
540
|
-
content: string;
|
|
541
|
-
}): react_jsx_runtime.JSX.Element;
|
|
542
|
-
|
|
543
|
-
declare function ChatLoading(): react_jsx_runtime.JSX.Element;
|
|
544
|
-
|
|
545
|
-
type ActionButtonColor = "red" | "blue" | "green" | "yellow" | "purple" | "gray";
|
|
546
|
-
interface ActionButton {
|
|
547
|
-
label: string;
|
|
548
|
-
icon: keyof typeof icons;
|
|
549
|
-
action: () => Promise<void>;
|
|
550
|
-
isLoading?: boolean;
|
|
551
|
-
color: ActionButtonColor;
|
|
552
|
-
}
|
|
553
|
-
interface EloquentActionBarProps {
|
|
554
|
-
showBack?: boolean;
|
|
555
|
-
buttons: ActionButton[];
|
|
556
|
-
title?: string;
|
|
557
|
-
}
|
|
558
|
-
declare function EloquentActionBar({ showBack, buttons, title, }: EloquentActionBarProps): react_jsx_runtime.JSX.Element;
|
|
559
|
-
|
|
560
|
-
interface SchemaFieldProps {
|
|
561
|
-
name: string;
|
|
562
|
-
schema: JSONSchema;
|
|
563
|
-
value?: any;
|
|
564
|
-
onChange: (value: any) => void;
|
|
565
|
-
label?: ReactNode;
|
|
566
|
-
}
|
|
567
|
-
declare function getFieldType(schema: JSONSchema): EntityFieldTypeTS;
|
|
568
|
-
declare function getColspanBySchema(schema: JSONSchema): "" | "col-span-2";
|
|
569
|
-
declare function SchemaField(props: SchemaFieldProps): react_jsx_runtime.JSX.Element;
|
|
570
|
-
|
|
571
|
-
declare function DropdownField({ schema, value, onChange }: SchemaFieldProps): react_jsx_runtime.JSX.Element;
|
|
572
|
-
|
|
573
|
-
declare function StringField({ name, schema, value, onChange, }: SchemaFieldProps): react_jsx_runtime.JSX.Element;
|
|
574
|
-
|
|
575
|
-
declare function TextField({ schema, value, onChange }: SchemaFieldProps): react_jsx_runtime.JSX.Element;
|
|
576
|
-
|
|
577
|
-
interface UploadWidgetV2Props {
|
|
578
|
-
accept: DropzoneOptions["accept"];
|
|
579
|
-
maxSize: number;
|
|
580
|
-
maxFiles?: number;
|
|
581
|
-
onFilesUploaded: (fileUrls: string[]) => void;
|
|
582
|
-
className?: string;
|
|
583
|
-
uploadDestination?: "azure" | "s3";
|
|
584
|
-
hideUploadedFiles?: boolean;
|
|
585
|
-
}
|
|
586
|
-
declare function UploadWidgetV2({ accept, maxSize, maxFiles, onFilesUploaded, className, uploadDestination, hideUploadedFiles, }: UploadWidgetV2Props): react_jsx_runtime.JSX.Element;
|
|
4
|
+
export { ColumnDef } from '@tanstack/react-table';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'lucide-react';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'class-variance-authority/types';
|
|
9
|
+
import 'class-variance-authority';
|
|
10
|
+
import '@radix-ui/react-checkbox';
|
|
11
|
+
import 'react-hook-form';
|
|
12
|
+
import 'react-day-picker';
|
|
13
|
+
import 'vaul';
|
|
14
|
+
import '@radix-ui/react-radio-group';
|
|
15
|
+
import '@radix-ui/react-scroll-area';
|
|
16
|
+
import '@radix-ui/react-dialog';
|
|
17
|
+
import 'react-dropzone';
|
|
18
|
+
import '@radix-ui/react-slider';
|
|
19
|
+
import '@radix-ui/react-slot';
|
|
20
|
+
import '@radix-ui/react-label';
|
|
21
|
+
import '@elqnt/entity';
|
|
22
|
+
import '@elqnt/types';
|
|
587
23
|
|
|
588
24
|
declare function cn(...inputs: ClassValue[]): string;
|
|
589
25
|
declare function getBadgeVariant(status: string): "default" | "secondary";
|
|
@@ -593,4 +29,4 @@ declare const useFileUpload: (formFieldName: string) => {
|
|
|
593
29
|
isUploading: boolean;
|
|
594
30
|
};
|
|
595
31
|
|
|
596
|
-
export {
|
|
32
|
+
export { cn, getBadgeVariant, useFileUpload };
|