vrfi-design-system 1.0.91 → 1.0.93

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