vrfi-design-system 1.0.25 → 1.0.27

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
@@ -48,7 +48,9 @@ import { PasswordProps } from 'antd/es/input';
48
48
  import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
49
49
  import { PropsWithChildren } from 'react';
50
50
  import { Radio as Radio_2 } from 'antd';
51
- import { RadioProps as RadioProps_2 } from 'antd';
51
+ import { RadioChangeEvent } from 'antd';
52
+ import { RadioGroupProps } from 'antd';
53
+ import { RadioProps } from 'antd';
52
54
  import { ReactElement } from 'react';
53
55
  import { ReactNode } from 'react';
54
56
  import { default as Row } from 'antd/lib/row';
@@ -78,6 +80,9 @@ import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
78
80
  import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
79
81
  import { tooltipPosition } from '../../../enums/tooltipPosition';
80
82
  import { UploadFile } from 'antd/lib/upload/interface';
83
+ import { UploadFile as UploadFile_2 } from 'antd';
84
+ import { UploadProps } from 'antd';
85
+ import { UploadProps as UploadProps_2 } from 'antd/lib';
81
86
  import { UseFormProps } from 'react-hook-form';
82
87
  import { VerificationTypes } from '../../enums/verificationTypes.enum';
83
88
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
@@ -85,6 +90,8 @@ import * as Yup from 'yup';
85
90
 
86
91
  export { Align }
87
92
 
93
+ export declare type AntdRadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
94
+
88
95
  export declare interface AssignedEmployerProps {
89
96
  data?: EmployerDataType[];
90
97
  noDataHeading?: string;
@@ -170,6 +177,28 @@ export declare type CustomAvatarProps = {
170
177
  isExtra?: boolean;
171
178
  };
172
179
 
180
+ declare interface CustomDropDownFileUploadProps extends Omit<UploadProps_2, 'onChange'> {
181
+ value?: UploadFile_2[];
182
+ onChange: (fileList: UploadFile_2[]) => void | boolean;
183
+ uploadIcon?: ReactNode;
184
+ uploadHint?: ReactNode;
185
+ fileTypes?: string;
186
+ actionURL?: string;
187
+ multiple?: boolean;
188
+ maxCount?: number;
189
+ uploadTitle?: string;
190
+ supportedFileType?: string[];
191
+ maxFileSize?: number;
192
+ className?: string;
193
+ dropdownOptions: {
194
+ [key: string]: string | number;
195
+ }[];
196
+ dropdownName: string;
197
+ selectLabel: string;
198
+ required?: boolean;
199
+ loading?: boolean;
200
+ }
201
+
173
202
  export declare interface CustomInputProps {
174
203
  label: string;
175
204
  name: string;
@@ -180,6 +209,28 @@ export declare interface CustomInputProps {
180
209
  customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
181
210
  }
182
211
 
212
+ export declare interface CustomRadioProps extends RadioProps, Pick<RadioGroupProps, 'options'> {
213
+ name: string;
214
+ customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
215
+ }
216
+
217
+ declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
218
+ value?: UploadFile_2[];
219
+ onChange: (fileList: UploadFile_2[]) => void | boolean;
220
+ uploadIcon?: ReactNode;
221
+ uploadHint?: ReactNode;
222
+ fileTypes?: string;
223
+ actionURL?: string;
224
+ multiple?: boolean;
225
+ maxCount?: number;
226
+ uploadTitle?: string;
227
+ supportedFileType?: string[];
228
+ maxFileSize?: number;
229
+ className?: string;
230
+ required?: boolean;
231
+ loading?: boolean;
232
+ }
233
+
183
234
  export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
184
235
 
185
236
  export { DatePickerAntd }
@@ -259,6 +310,8 @@ export declare interface FileUploadProps {
259
310
  handleChange: (file: FileList | UploadFile) => void;
260
311
  }
261
312
 
313
+ export declare const FileUploadWithDropdown: ({ loading, required, selectLabel, dropdownName, dropdownOptions, className, value, onChange, maxFileSize, uploadHint, uploadTitle, uploadIcon, supportedFileType, ...propsDragDrop }: CustomDropDownFileUploadProps) => default_2.JSX.Element;
314
+
262
315
  export { FilterValue }
263
316
 
264
317
  export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
@@ -423,13 +476,13 @@ export declare interface ProfileDetailProps {
423
476
  imageUrl?: string;
424
477
  }
425
478
 
426
- export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
479
+ export declare const Radio: (props: CustomInputProps & RadioProps) => default_2.JSX.Element;
427
480
 
428
481
  declare interface RadioButtonProps {
429
482
  label?: string;
430
483
  }
431
484
 
432
- export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
485
+ export declare function RadioGroup({ name, options, customOnChange, ...rest }: CustomRadioProps): default_2.JSX.Element;
433
486
 
434
487
  export { Row }
435
488
 
@@ -553,6 +606,24 @@ declare interface TooltipProps {
553
606
  children: JSX_2.Element;
554
607
  }
555
608
 
609
+ export declare const Upload: ({ name, onChange, ...rest }: UploadBaseProps) => default_2.JSX.Element;
610
+
611
+ export declare interface UploadBaseProps extends CustomUploadProps {
612
+ name: string;
613
+ required?: boolean;
614
+ }
615
+
616
+ export declare interface UploadBasePropsForDropdown extends CustomDropDownFileUploadProps {
617
+ name: string;
618
+ dropdownOptions: {
619
+ [key: string]: string | number;
620
+ }[];
621
+ dropdownName: string;
622
+ required?: boolean;
623
+ }
624
+
625
+ export declare const UploadWithDropdown: ({ name, onChange, ...rest }: UploadBasePropsForDropdown) => default_2.JSX.Element;
626
+
556
627
  export declare interface ValidationRuleProps {
557
628
  test: (val: string) => boolean;
558
629
  message: string;