vrfi-design-system 1.0.63 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@ import { Align } from '../../enums/align.enum';
3
3
  import { default as AuthBanner } from '../../views/Auth/AuthBanner';
4
4
  import { default as AuthForm } from '../../views/Auth/AuthForm';
5
5
  import { AuthFormProps } from './../../views/Auth/AuthForm/index';
6
- import { AvatarSize } from '../../../enums/avatarSize.enum';
6
+ import { AvatarSize } from '../../enums/avatarSize.enum';
7
+ import { AvatarSize as AvatarSize_2 } from '../../../enums/avatarSize.enum';
7
8
  import { BaseOptionType } from 'rc-select/lib/Select';
8
9
  import { default as Button } from 'antd/lib/button';
9
10
  import { ButtonType } from '../../enums/buttonType';
@@ -72,10 +73,12 @@ import { RegisterOptions } from 'react-hook-form';
72
73
  import { default as Row } from 'antd/lib/row';
73
74
  import { RowProps } from 'antd/lib/row';
74
75
  import { SelectProps } from 'antd';
75
- import { SelectType } from '../../../../enums/selectType.enum';
76
+ import { SelectType } from './../../enums/selectType.enum';
77
+ import { SelectType as SelectType_2 } from '../../../../enums/selectType.enum';
76
78
  import { SidebarMenuProps } from '../types/SidebarRouteProps';
77
79
  import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
78
80
  import { Size } from '../../enums/size.enum';
81
+ import { Size as Size_2 } from '../../../enums/size.enum';
79
82
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
80
83
  import { SizeType as SizeType_2 } from 'antd/es/config-provider/SizeContext';
81
84
  import { SkeletonProps } from 'antd';
@@ -142,6 +145,8 @@ export declare interface AvatarProps {
142
145
  names: string[];
143
146
  }
144
147
 
148
+ export { AvatarSize }
149
+
145
150
  export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2.JSX.Element;
146
151
 
147
152
  export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
@@ -213,7 +218,7 @@ export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAva
213
218
 
214
219
  export declare type CustomAvatarProps = {
215
220
  name: string;
216
- size: AvatarSize;
221
+ size: AvatarSize_2;
217
222
  imageUrl?: string;
218
223
  isExtra?: boolean;
219
224
  };
@@ -361,18 +366,6 @@ export declare interface FileUploadProps {
361
366
 
362
367
  export declare const FileUploadWithDropdown: ({ loading, required, selectLabel, dropdownName, dropdownOptions, className, value, onChange, maxFileSize, uploadHint, uploadTitle, uploadIcon, supportedFileType, ...propsDragDrop }: CustomDropDownFileUploadProps) => default_2.JSX.Element;
363
368
 
364
- export declare const FiltersListing: (props: FiltersListingProps) => default_2.JSX.Element;
365
-
366
- export declare interface FiltersListingProps {
367
- filterData: Meta[];
368
- searchPlaceholder?: string;
369
- loading?: boolean;
370
- onSelectedChange?: (selectedIds: number[]) => void;
371
- onClose: () => void;
372
- noDataText?: string;
373
- noDataSubText?: string;
374
- }
375
-
376
369
  export { FilterValue }
377
370
 
378
371
  export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
@@ -455,16 +448,10 @@ export declare const Loader: default_2.FC<LoaderProps>;
455
448
 
456
449
  export declare interface LoaderProps {
457
450
  icon?: ReactElement;
458
- size?: LoaderSizes.SMALL | LoaderSizes.LARGE | LoaderSizes.DEFAULT;
451
+ size?: LoaderSizes;
459
452
  tip?: string;
460
453
  }
461
454
 
462
- declare type Meta = {
463
- id: number;
464
- code: string;
465
- label: string;
466
- };
467
-
468
455
  export { MobileInputValue }
469
456
 
470
457
  export declare const Modal: default_2.FC<ModalProps>;
@@ -623,17 +610,19 @@ export declare interface SearchComponentProps {
623
610
 
624
611
  export declare const SearchField: FC<SearchComponentProps>;
625
612
 
626
- export declare const Select: ({ name, label, required, customOnChange, options, size, type, ...props }: SelectPropsBase) => default_2.JSX.Element;
613
+ export declare const Select: ({ name, label, required, customOnChange, options, size, type, className, ...props }: SelectPropsBase) => default_2.JSX.Element;
627
614
 
628
615
  declare interface SelectPropsBase extends SelectProps {
629
616
  name: string;
630
617
  label: string;
631
618
  required?: boolean;
632
619
  size?: SizeType_2;
633
- type?: SelectType;
620
+ type?: SelectType_2;
634
621
  customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
635
622
  }
636
623
 
624
+ export { SelectType }
625
+
637
626
  export declare const Sidebar: default_2.FC<SidebarProps>;
638
627
 
639
628
  export { SidebarMenuProps }
@@ -687,16 +676,14 @@ export { Switch }
687
676
 
688
677
  export { SwitchProps }
689
678
 
690
- export declare type tabItems = {
679
+ declare interface TabItems {
691
680
  closeIcon?: ReactNode;
692
681
  disabled?: boolean;
693
682
  forceRender?: boolean;
694
683
  key: string;
695
684
  label: ReactNode;
696
685
  children: ReactNode;
697
- };
698
-
699
- export declare const Table: <T extends object>(props: TableProps<T>) => default_2.JSX.Element;
686
+ }
700
687
 
701
688
  export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onTableRowEvents, onRow, onChange, loadingCount, size, type, scroll, rowHoverable, rowClassName, noDataComponent, hoverColumn: HoverColumn, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
702
689
 
@@ -727,18 +714,18 @@ export { TableType }
727
714
 
728
715
  export declare const Tabs: FC<TabsProps>;
729
716
 
730
- export declare interface TabsProps extends TabsProps_2 {
717
+ declare interface TabsProps extends TabsProps_2 {
731
718
  activeKey?: string;
732
719
  addIcon?: ReactNode;
733
720
  centered?: boolean;
734
721
  defaultActiveKey?: string;
735
722
  hideAdd?: boolean;
736
- items: tabItems[];
723
+ items: TabItems[];
737
724
  moreIcon?: ReactNode;
738
725
  tabBarGutter?: number;
739
726
  tabBarStyle?: CSSProperties;
740
- tabPosition?: 'top' | 'bottom' | 'right' | 'left';
741
- type?: 'line' | 'card' | 'editable-card';
727
+ tabPosition?: "top" | "bottom" | "right" | "left";
728
+ type?: "line" | "card" | "editable-card";
742
729
  onEdit?: () => void;
743
730
  }
744
731
 
@@ -764,6 +751,7 @@ export declare interface TitleHeaderProps {
764
751
  active?: TitleHeaderStatus_2;
765
752
  prefix?: ReactNode;
766
753
  suffix?: ReactNode;
754
+ fontSize?: Size_2;
767
755
  }
768
756
 
769
757
  export { TitleHeaderStatus }