vrfi-design-system 1.0.50 → 1.0.52

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
@@ -97,6 +97,7 @@ import { UploadFile as UploadFile_2 } from 'antd';
97
97
  import { UploadProps } from 'antd';
98
98
  import { UploadProps as UploadProps_2 } from 'antd/lib';
99
99
  import { UseFormProps } from 'react-hook-form';
100
+ import { UseFormReturn } from 'react-hook-form';
100
101
  import { VerificationTypes } from '../../enums/verificationTypes.enum';
101
102
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
102
103
  import * as Yup from 'yup';
@@ -282,7 +283,7 @@ export declare type DocumentStatusTypes = {
282
283
 
283
284
  export declare const Drawer: FC<DrawerProps>;
284
285
 
285
- export declare interface DrawerProps {
286
+ export declare interface DrawerProps extends DrawerProps_2 {
286
287
  title: ReactNode;
287
288
  width?: number;
288
289
  closable: boolean;
@@ -363,7 +364,7 @@ export declare interface FloatingLabelProps {
363
364
 
364
365
  export { FooterDetailsProps }
365
366
 
366
- export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
367
+ export declare function Form<T extends FieldValues>({ onSubmit, children, ...rest }: FormProps<T>): default_2.JSX.Element;
367
368
 
368
369
  declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
369
370
  name: string;
@@ -372,7 +373,8 @@ declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "on
372
373
  }
373
374
 
374
375
  declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
375
- onSubmit: (data: T) => void;
376
+ children: ReactNode | ((methods: UseFormReturn<T>) => ReactNode | default_2.JSX.Element);
377
+ onSubmit: (data: T, methods: UseFormReturn<T>) => void;
376
378
  validationSchema?: Yup.ObjectSchema<T>;
377
379
  }
378
380
 
@@ -763,6 +765,7 @@ export declare interface UserBadgeProps {
763
765
  modalWidth: number;
764
766
  emailSubject?: string;
765
767
  emailBody?: string;
768
+ candidateName?: string;
766
769
  }
767
770
 
768
771
  export declare function UserStatus(props: UserStatusProps): default_2.JSX.Element;