@elqnt/react 1.0.11 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,20 +19,8 @@ import { DropzoneOptions } from 'react-dropzone';
19
19
  import * as SliderPrimitive from '@radix-ui/react-slider';
20
20
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
21
21
  import * as LabelPrimitive from '@radix-ui/react-label';
22
- import { EntityFieldTypeTS } from '@elqnt/entity';
23
22
  import { JSONSchema } from '@elqnt/types';
24
23
 
25
- interface FilterDialogProps {
26
- open: boolean;
27
- onOpenChange: (open: boolean) => void;
28
- }
29
- interface FilterCondition {
30
- field: string;
31
- operator: string;
32
- value: any;
33
- }
34
- declare function FilterDialog({ open, onOpenChange }: FilterDialogProps): react_jsx_runtime.JSX.Element;
35
-
36
24
  declare function BackButton(): react_jsx_runtime.JSX.Element;
37
25
 
38
26
  type ActionBarButtonProps = {
@@ -356,10 +344,6 @@ interface InputProps extends InputProps$1 {
356
344
  }
357
345
  declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
358
346
 
359
- declare function KnowledgeGraphWordCloud(): react_jsx_runtime.JSX.Element | null;
360
-
361
- declare function OrgSelector(): react_jsx_runtime.JSX.Element | null;
362
-
363
347
  type Action = {
364
348
  label: string;
365
349
  type: "secondary" | "link" | "default" | "destructive" | "outline" | "ghost";
@@ -379,14 +363,6 @@ type PageHeaderProps = {
379
363
  };
380
364
  declare function PageHeader({ title, description, actions, goBackLink, showBack, backUrl, rightSideComponent, titleComponent, justify, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
381
365
 
382
- declare function LeftNav({ fullMenuItems, menuItems, pageTitle, ExpandedLogo, Logo, }: {
383
- fullMenuItems: NavItem[];
384
- menuItems?: NavItem[] | undefined;
385
- pageTitle?: String | undefined;
386
- ExpandedLogo: React.FC;
387
- Logo: React.FC;
388
- }): react_jsx_runtime.JSX.Element;
389
-
390
366
  type ProfileMenuProps = {
391
367
  children: React.ReactNode;
392
368
  pathName: string;
@@ -556,6 +532,7 @@ interface EloquentActionBarProps {
556
532
  }
557
533
  declare function EloquentActionBar({ showBack, buttons, title, }: EloquentActionBarProps): react_jsx_runtime.JSX.Element;
558
534
 
535
+ type FieldType = "string" | "stringMultiline" | "text" | "int" | "float" | "bool" | "date" | "datetime" | "email" | "phone" | "url" | "dropdown" | "multiselect" | "lookup" | "multilookup" | "currency" | "file" | "image" | "json";
559
536
  interface SchemaFieldProps {
560
537
  name: string;
561
538
  schema: JSONSchema;
@@ -563,7 +540,7 @@ interface SchemaFieldProps {
563
540
  onChange: (value: any) => void;
564
541
  label?: ReactNode;
565
542
  }
566
- declare function getFieldType(schema: JSONSchema): EntityFieldTypeTS;
543
+ declare function getFieldType(schema: JSONSchema): FieldType;
567
544
  declare function getColspanBySchema(schema: JSONSchema): "" | "col-span-2";
568
545
  declare function SchemaField(props: SchemaFieldProps): react_jsx_runtime.JSX.Element;
569
546
 
@@ -584,4 +561,4 @@ interface UploadWidgetV2Props {
584
561
  }
585
562
  declare function UploadWidgetV2({ accept, maxSize, maxFiles, onFilesUploaded, className, uploadDestination, hideUploadedFiles, }: UploadWidgetV2Props): react_jsx_runtime.JSX.Element;
586
563
 
587
- export { ActionBar, ActionBarButton, type ActionBarProps, type ActionButton, type ActionButtonColor, type Actions, Alert, type AlertProps, Avatar, type AvatarProps, BackButton, Badge, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps$1 as ButtonProps, Card, type CardProps, ChatLoading, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupProps, type CommandProps, DataTable, DateFilter, Dialog, type DialogProps, Drawer, type DrawerProps, DropdownField, DropdownMenu, type DropdownMenuProps, DurationInput, EloquentActionBar, FilterCombobox, type FilterComboboxProps, type FilterCondition, FilterDialog, type FilterOptionProps, Form, FormCombobox, type FormComboboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLayout, FormMessage, FormRow, FormWithActionButtons, IconButton, type IconButtonProps, Input, type InputProps, KnowledgeGraphWordCloud, LeftNav, MarkdownRenderer, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultiStepProcess, type NavItem, OrgSelector, PageHeader, type PageHeaderProps, Popover, type PopoverProps, ProfileMenu, RadioGroup, type RadioGroupProps, type RadioOption, SchemaField, type SchemaFieldProps, ScrollArea, type ScrollAreaProps, Select, type SelectOption, type SelectProps, SetupGuide, Sheet, type SheetPrimitiveRootProps, type SheetProps, Slider, type Step, type StepComponentProps, StringField, TagsInput, type TagsInputProps, TextField, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Tooltip, type TooltipProps, UploadWidget, UploadWidgetV2, badgeVariants, getColspanBySchema, getFieldType, getFileIcon, getFileName, useFormField };
564
+ export { ActionBar, ActionBarButton, type ActionBarProps, type ActionButton, type ActionButtonColor, type Actions, Alert, type AlertProps, Avatar, type AvatarProps, BackButton, Badge, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps$1 as ButtonProps, Card, type CardProps, ChatLoading, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupProps, type CommandProps, DataTable, DateFilter, Dialog, type DialogProps, Drawer, type DrawerProps, DropdownField, DropdownMenu, type DropdownMenuProps, DurationInput, EloquentActionBar, FilterCombobox, type FilterComboboxProps, type FilterOptionProps, Form, FormCombobox, type FormComboboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLayout, FormMessage, FormRow, FormWithActionButtons, IconButton, type IconButtonProps, Input, type InputProps, MarkdownRenderer, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultiStepProcess, type NavItem, PageHeader, type PageHeaderProps, Popover, type PopoverProps, ProfileMenu, RadioGroup, type RadioGroupProps, type RadioOption, SchemaField, type SchemaFieldProps, ScrollArea, type ScrollAreaProps, Select, type SelectOption, type SelectProps, SetupGuide, Sheet, type SheetPrimitiveRootProps, type SheetProps, Slider, type Step, type StepComponentProps, StringField, TagsInput, type TagsInputProps, TextField, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Tooltip, type TooltipProps, UploadWidget, UploadWidgetV2, badgeVariants, getColspanBySchema, getFieldType, getFileIcon, getFileName, useFormField };
@@ -19,20 +19,8 @@ import { DropzoneOptions } from 'react-dropzone';
19
19
  import * as SliderPrimitive from '@radix-ui/react-slider';
20
20
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
21
21
  import * as LabelPrimitive from '@radix-ui/react-label';
22
- import { EntityFieldTypeTS } from '@elqnt/entity';
23
22
  import { JSONSchema } from '@elqnt/types';
24
23
 
25
- interface FilterDialogProps {
26
- open: boolean;
27
- onOpenChange: (open: boolean) => void;
28
- }
29
- interface FilterCondition {
30
- field: string;
31
- operator: string;
32
- value: any;
33
- }
34
- declare function FilterDialog({ open, onOpenChange }: FilterDialogProps): react_jsx_runtime.JSX.Element;
35
-
36
24
  declare function BackButton(): react_jsx_runtime.JSX.Element;
37
25
 
38
26
  type ActionBarButtonProps = {
@@ -356,10 +344,6 @@ interface InputProps extends InputProps$1 {
356
344
  }
357
345
  declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
358
346
 
359
- declare function KnowledgeGraphWordCloud(): react_jsx_runtime.JSX.Element | null;
360
-
361
- declare function OrgSelector(): react_jsx_runtime.JSX.Element | null;
362
-
363
347
  type Action = {
364
348
  label: string;
365
349
  type: "secondary" | "link" | "default" | "destructive" | "outline" | "ghost";
@@ -379,14 +363,6 @@ type PageHeaderProps = {
379
363
  };
380
364
  declare function PageHeader({ title, description, actions, goBackLink, showBack, backUrl, rightSideComponent, titleComponent, justify, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
381
365
 
382
- declare function LeftNav({ fullMenuItems, menuItems, pageTitle, ExpandedLogo, Logo, }: {
383
- fullMenuItems: NavItem[];
384
- menuItems?: NavItem[] | undefined;
385
- pageTitle?: String | undefined;
386
- ExpandedLogo: React.FC;
387
- Logo: React.FC;
388
- }): react_jsx_runtime.JSX.Element;
389
-
390
366
  type ProfileMenuProps = {
391
367
  children: React.ReactNode;
392
368
  pathName: string;
@@ -556,6 +532,7 @@ interface EloquentActionBarProps {
556
532
  }
557
533
  declare function EloquentActionBar({ showBack, buttons, title, }: EloquentActionBarProps): react_jsx_runtime.JSX.Element;
558
534
 
535
+ type FieldType = "string" | "stringMultiline" | "text" | "int" | "float" | "bool" | "date" | "datetime" | "email" | "phone" | "url" | "dropdown" | "multiselect" | "lookup" | "multilookup" | "currency" | "file" | "image" | "json";
559
536
  interface SchemaFieldProps {
560
537
  name: string;
561
538
  schema: JSONSchema;
@@ -563,7 +540,7 @@ interface SchemaFieldProps {
563
540
  onChange: (value: any) => void;
564
541
  label?: ReactNode;
565
542
  }
566
- declare function getFieldType(schema: JSONSchema): EntityFieldTypeTS;
543
+ declare function getFieldType(schema: JSONSchema): FieldType;
567
544
  declare function getColspanBySchema(schema: JSONSchema): "" | "col-span-2";
568
545
  declare function SchemaField(props: SchemaFieldProps): react_jsx_runtime.JSX.Element;
569
546
 
@@ -584,4 +561,4 @@ interface UploadWidgetV2Props {
584
561
  }
585
562
  declare function UploadWidgetV2({ accept, maxSize, maxFiles, onFilesUploaded, className, uploadDestination, hideUploadedFiles, }: UploadWidgetV2Props): react_jsx_runtime.JSX.Element;
586
563
 
587
- export { ActionBar, ActionBarButton, type ActionBarProps, type ActionButton, type ActionButtonColor, type Actions, Alert, type AlertProps, Avatar, type AvatarProps, BackButton, Badge, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps$1 as ButtonProps, Card, type CardProps, ChatLoading, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupProps, type CommandProps, DataTable, DateFilter, Dialog, type DialogProps, Drawer, type DrawerProps, DropdownField, DropdownMenu, type DropdownMenuProps, DurationInput, EloquentActionBar, FilterCombobox, type FilterComboboxProps, type FilterCondition, FilterDialog, type FilterOptionProps, Form, FormCombobox, type FormComboboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLayout, FormMessage, FormRow, FormWithActionButtons, IconButton, type IconButtonProps, Input, type InputProps, KnowledgeGraphWordCloud, LeftNav, MarkdownRenderer, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultiStepProcess, type NavItem, OrgSelector, PageHeader, type PageHeaderProps, Popover, type PopoverProps, ProfileMenu, RadioGroup, type RadioGroupProps, type RadioOption, SchemaField, type SchemaFieldProps, ScrollArea, type ScrollAreaProps, Select, type SelectOption, type SelectProps, SetupGuide, Sheet, type SheetPrimitiveRootProps, type SheetProps, Slider, type Step, type StepComponentProps, StringField, TagsInput, type TagsInputProps, TextField, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Tooltip, type TooltipProps, UploadWidget, UploadWidgetV2, badgeVariants, getColspanBySchema, getFieldType, getFileIcon, getFileName, useFormField };
564
+ export { ActionBar, ActionBarButton, type ActionBarProps, type ActionButton, type ActionButtonColor, type Actions, Alert, type AlertProps, Avatar, type AvatarProps, BackButton, Badge, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps$1 as ButtonProps, Card, type CardProps, ChatLoading, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandGroupProps, type CommandProps, DataTable, DateFilter, Dialog, type DialogProps, Drawer, type DrawerProps, DropdownField, DropdownMenu, type DropdownMenuProps, DurationInput, EloquentActionBar, FilterCombobox, type FilterComboboxProps, type FilterOptionProps, Form, FormCombobox, type FormComboboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLayout, FormMessage, FormRow, FormWithActionButtons, IconButton, type IconButtonProps, Input, type InputProps, MarkdownRenderer, MultiSelect, type MultiSelectOption, type MultiSelectProps, MultiStepProcess, type NavItem, PageHeader, type PageHeaderProps, Popover, type PopoverProps, ProfileMenu, RadioGroup, type RadioGroupProps, type RadioOption, SchemaField, type SchemaFieldProps, ScrollArea, type ScrollAreaProps, Select, type SelectOption, type SelectProps, SetupGuide, Sheet, type SheetPrimitiveRootProps, type SheetProps, Slider, type Step, type StepComponentProps, StringField, TagsInput, type TagsInputProps, TextField, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Tooltip, type TooltipProps, UploadWidget, UploadWidgetV2, badgeVariants, getColspanBySchema, getFieldType, getFileIcon, getFileName, useFormField };