vrfi-design-system 1.0.90 → 1.0.91

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
@@ -10,7 +10,9 @@ import { BadgeType } from '../../enums/badgeType.enum';
10
10
  import { BadgeType as BadgeType_2 } from '../../../enums/badgeType.enum';
11
11
  import { ButtonType } from '../../enums/buttonType';
12
12
  import { ButtonType as ButtonType_2 } from 'antd/lib/button';
13
+ import { CheckboxChangeEvent } from 'antd/es/checkbox';
13
14
  import { CheckboxGroupProps as CheckboxGroupProps_2 } from 'antd/lib/checkbox';
15
+ import { CheckboxGroupProps as CheckboxGroupProps_3 } from 'antd/es/checkbox';
14
16
  import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
15
17
  import { default as Col } from 'antd/lib/col';
16
18
  import { Colors } from '../../enums/colors.enum';
@@ -104,7 +106,6 @@ import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
104
106
  import { TableType } from '../../enums/tableType.enum';
105
107
  import { TableType as TableType_2 } from '../../../enums/tableType.enum';
106
108
  import { TabsProps as TabsProps_2 } from 'antd';
107
- import { TabsType } from 'antd/es/tabs';
108
109
  import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
109
110
  import { TimePickerProps } from 'antd';
110
111
  import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
@@ -248,25 +249,17 @@ export declare interface CheckboxProps {
248
249
  maxRows?: number;
249
250
  }
250
251
 
251
- export declare const CheckboxSelectField: ({ name, label, options, selectedOptions, handleCheckboxChange, className, size, type, required, customInput, ...props }: CheckboxSelectFieldProps) => default_2.JSX.Element;
252
-
253
- export declare interface CheckboxSelectFieldProps extends SelectPropsBase {
254
- selectedOptions?: (string | number)[];
255
- handleCheckboxChange?: (value: string) => void;
256
- }
257
-
258
- export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, singleSelectionMode, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
252
+ export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
259
253
 
260
254
  declare interface CheckBoxWithFormWrapperProps {
261
255
  children?: default_2.ReactNode;
262
256
  disabled?: boolean;
263
257
  indeterminate?: boolean;
264
258
  group?: boolean;
265
- onCheckboxChange?: (event: string | number | boolean | (string | number)[] | null) => void;
259
+ onCheckboxChange?: (event: CheckboxChangeEvent | CheckboxGroupProps_3[] | boolean) => void;
266
260
  options?: (CheckboxOptionType | string | number)[];
267
261
  name: string;
268
262
  className?: string;
269
- singleSelectionMode?: boolean;
270
263
  }
271
264
 
272
265
  export { Col }
@@ -346,6 +339,9 @@ declare interface CustomUploadProps extends Omit<UploadProps, "onChange"> {
346
339
  loading?: boolean;
347
340
  fileNamePrefix?: string;
348
341
  uploadInputType?: UploadInputTypes;
342
+ showFileNameFormat?: boolean;
343
+ docNamingConvention?: string;
344
+ documentTypes?: string;
349
345
  }
350
346
 
351
347
  export declare const DashboardCard: (props: DashboardCardProps) => default_2.JSX.Element;
@@ -544,12 +540,11 @@ export declare interface ListingTableHeaderProps {
544
540
  className?: string;
545
541
  }
546
542
 
547
- export declare const ListItem: ({ text, iconName, className, children, name, ...props }: ListItemProps) => default_2.JSX.Element;
543
+ export declare const ListItem: ({ text, iconName, className, ...props }: ListItemProps) => default_2.JSX.Element;
548
544
 
549
545
  declare interface ListItemProps extends HTMLAttributes<HTMLSpanElement> {
550
- text?: string;
546
+ text: string;
551
547
  iconName: Icons_2;
552
- name?: string;
553
548
  }
554
549
 
555
550
  export declare const Loader: default_2.FC<LoaderProps>;
@@ -575,16 +570,14 @@ export declare interface ModalProps extends ModalProps_2 {
575
570
  title?: string;
576
571
  confirmLoading?: boolean;
577
572
  modalTitleIcon?: string;
578
- modalType?: ModalTypeEnum;
579
- className?: string;
573
+ modalType: ModalTypeEnum;
580
574
  }
581
575
 
582
576
  export declare enum ModalTypeEnum {
583
577
  SUCCESS = "success",
584
578
  DANGER = "danger",
585
579
  BASIC = "basic",
586
- WARNING = "warning",
587
- DEFAULT = "default"
580
+ WARNING = "warning"
588
581
  }
589
582
 
590
583
  export declare const NoData: ({ headingText, subHeading, noDataIcon, buttonOnClick, buttonText, }: NoDataProps) => default_2.JSX.Element;
@@ -619,17 +612,8 @@ declare interface OfflineProps {
619
612
 
620
613
  declare type OutlineType = "primary" | "danger" | "success";
621
614
 
622
- export declare const Pagination: default_2.FC<PaginationProps>;
623
-
624
615
  export { PaginationMeta }
625
616
 
626
- declare interface PaginationProps {
627
- total: number;
628
- pageSize?: number;
629
- currentPage: number;
630
- onPageChange: (page: number) => void;
631
- }
632
-
633
617
  declare const PasswordField: default_2.ForwardRefExoticComponent<CustomInputProps & PasswordProps & default_2.RefAttributes<InputRef_2>>;
634
618
  export { PasswordField as Password }
635
619
  export { PasswordField }
@@ -675,6 +659,7 @@ declare interface PreviewCardProps {
675
659
  isCandidateDocCard?: boolean;
676
660
  onDelete?: () => void;
677
661
  expiryDate?: string;
662
+ showDownloadIcon?: boolean;
678
663
  }
679
664
 
680
665
  export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
@@ -704,18 +689,18 @@ export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX
704
689
  export { ProfileDetailFooterTypes }
705
690
 
706
691
  export declare interface ProfileDetailProps {
707
- name?: string;
692
+ name: string;
708
693
  phoneNumber?: string;
709
- email?: string;
694
+ email: string;
710
695
  address?: string;
711
- gender?: GenderProfileEnum_2;
696
+ gender: GenderProfileEnum_2;
712
697
  jobType?: JobTypeEnum_2;
713
698
  jobTitle?: string[];
714
699
  skills?: string[];
715
700
  yearsOfExperience?: number | string;
716
- userId?: string;
701
+ userId: string;
717
702
  imageUrl?: string;
718
- verified?: boolean;
703
+ verified: boolean;
719
704
  sinNumber?: number;
720
705
  footerDetails?: boolean;
721
706
  agencyName?: string;
@@ -761,7 +746,7 @@ export declare interface SearchComponentProps {
761
746
 
762
747
  export declare const SearchField: FC<SearchComponentProps>;
763
748
 
764
- export declare const Select: ({ name, label, required, customOnChange, options, size, type, customInput, className, ...props }: SelectPropsBase) => default_2.JSX.Element;
749
+ export declare const Select: ({ name, label, required, customOnChange, options, size, type, customInput, className, selectedOptions, handleCheckboxChange, ...props }: SelectPropsBase) => default_2.JSX.Element;
765
750
 
766
751
  declare interface SelectPropsBase extends SelectProps {
767
752
  name: string;
@@ -771,6 +756,8 @@ declare interface SelectPropsBase extends SelectProps {
771
756
  type?: SelectType_2;
772
757
  customInput?: boolean;
773
758
  customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
759
+ selectedOptions?: (string | number)[];
760
+ handleCheckboxChange?: (value: string) => void;
774
761
  }
775
762
 
776
763
  export { SelectType }
@@ -876,12 +863,11 @@ declare interface TabsProps extends TabsProps_2 {
876
863
  tabBarGutter?: number;
877
864
  tabBarStyle?: CSSProperties;
878
865
  tabPosition?: "top" | "bottom" | "right" | "left";
879
- type?: TabsType;
866
+ type?: "line" | "card" | "editable-card";
880
867
  onEdit?: () => void;
881
868
  isRemovable?: boolean;
882
869
  onRemove?: (key: string) => void;
883
870
  onDoubleClickHandler?: (key: string) => void;
884
- isSticky?: boolean;
885
871
  }
886
872
 
887
873
  export declare const TextArea: ({ className, label, value, required, ...props }: TextAreaProps) => default_2.JSX.Element;
@@ -892,7 +878,7 @@ export declare interface TextAreaProps extends Omit<TextAreaProps_2, "value"> {
892
878
  required?: boolean;
893
879
  }
894
880
 
895
- export declare const TextAreaWithController: ({ label, type, placeholder, required, name, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
881
+ export declare const TextAreaWithController: ({ label, type, placeholder, required, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
896
882
 
897
883
  export declare type TextAreaWithControllerProps = CustomInputProps & TextAreaProps_2;
898
884