vrfi-design-system 1.0.20 → 1.0.22

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
@@ -45,7 +45,6 @@ import { PasswordProps } from 'antd/es/input';
45
45
  import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
46
46
  import { PropsWithChildren } from 'react';
47
47
  import { Radio as Radio_2 } from 'antd';
48
- import { RadioChangeEvent } from 'antd';
49
48
  import { RadioProps as RadioProps_2 } from 'antd';
50
49
  import { ReactElement } from 'react';
51
50
  import { ReactNode } from 'react';
@@ -72,9 +71,6 @@ import { TableType } from '../../enums/tableType.enum';
72
71
  import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
73
72
  import { tooltipPosition } from '../../../enums/tooltipPosition';
74
73
  import { UploadFile } from 'antd/lib/upload/interface';
75
- import { UploadFile as UploadFile_2 } from 'antd';
76
- import { UploadProps } from 'antd';
77
- import { UploadProps as UploadProps_2 } from 'antd/lib';
78
74
  import { UseFormProps } from 'react-hook-form';
79
75
  import { VerificationTypes } from '../../enums/verificationTypes.enum';
80
76
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
@@ -172,50 +168,13 @@ export declare type CustomAvatarProps = {
172
168
  isExtra?: boolean;
173
169
  };
174
170
 
175
- declare interface CustomDropDownFileUploadProps extends Omit<UploadProps_2,'onChange'>{
176
- value?: UploadFile_2[];
177
- onChange: (fileList: UploadFile_2[]) => void;
178
- uploadIcon?: ReactNode;
179
- uploadHint?: ReactNode;
180
- fileTypes?: string;
181
- actionURL?: string;
182
- multiple?: boolean;
183
- maxCount?: number;
184
- uploadTitle?: string;
185
- supportedFileType?: string[];
186
- maxFileSize?: number;
187
- className?: string;
188
- dropdownOptions:{label:string,value:string}[]
189
- dropdownName:string;
190
- selectLabel:string;
191
- required?:boolean;
192
-
193
- }
194
-
195
171
  export declare interface CustomInputProps {
196
172
  label: string;
197
173
  name: string;
198
174
  placeholder?: string;
199
175
  type?: InputTypes_2;
200
176
  prefix?: ReactNode;
201
- customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
202
- }
203
-
204
- declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
205
- value?: UploadFile_2[];
206
- onChange: (fileList: UploadFile_2[]) => void;
207
- uploadIcon?: ReactNode;
208
- uploadHint?: ReactNode;
209
- fileTypes?: string;
210
- actionURL?: string;
211
- multiple?: boolean;
212
- maxCount?: number;
213
- uploadTitle?: string;
214
- supportedFileType?: string[];
215
- maxFileSize?: number;
216
- className?: string;
217
- required?: boolean;
218
-
177
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
219
178
  }
220
179
 
221
180
  export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
@@ -274,25 +233,21 @@ declare interface ErrorProps {
274
233
  fieldName: string;
275
234
  }
276
235
 
277
- export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
236
+ export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
278
237
 
279
238
  export declare interface FileUploadProps {
280
239
  children?: default_2.ReactNode;
281
240
  dragdrop?: boolean;
282
241
  uploadIcon?: ReactNode;
283
242
  uploadHint?: ReactNode;
284
- uploadTitle?: string;
285
243
  fileTypes?: string;
286
244
  actionURL?: string;
287
245
  multiple?: boolean;
288
246
  maxCount?: number;
289
- maxFileSize?: number;
290
247
  supportedFileType?: string;
291
248
  handleChange: (file: FileList | UploadFile) => void;
292
249
  }
293
250
 
294
- export declare const FileUploadWithDropdown: ({ name, ...rest }: UploadBaseProps_2) => default_2.JSX.Element;
295
-
296
251
  export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
297
252
 
298
253
  export declare interface FloatingLabelProps {
@@ -307,9 +262,10 @@ export { FooterDetailsProps }
307
262
  export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
308
263
 
309
264
  declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
265
+ rules: any;
310
266
  name: string;
311
- type?: string;
312
- customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
267
+ type: string;
268
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
313
269
  }
314
270
 
315
271
  declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
@@ -470,19 +426,8 @@ declare interface RadioButtonProps {
470
426
  label?: string;
471
427
  }
472
428
 
473
- export declare function RadioGroup({ options, name, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
474
-
475
429
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
476
430
 
477
- declare interface RadioProps_3 extends RadioProps_2 {
478
- options: {
479
- label: string;
480
- value: string;
481
- }[];
482
- name: string;
483
- customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
484
- }
485
-
486
431
  export { Row }
487
432
 
488
433
  export { RowProps }
@@ -505,7 +450,7 @@ declare interface SelectPropsBase extends SelectProps {
505
450
  label: string;
506
451
  }[];
507
452
  label: string;
508
- customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
453
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
509
454
  }
510
455
 
511
456
  export declare const Sidebar: default_2.FC<SidebarProps>;
@@ -612,23 +557,6 @@ declare interface TooltipProps {
612
557
  children: JSX_2.Element;
613
558
  }
614
559
 
615
- export declare const Upload: ({ name, ...rest }: UploadBaseProps) => default_2.JSX.Element;
616
-
617
- declare interface UploadBaseProps extends Omit<CustomUploadProps, 'onChange'> {
618
- name: string;
619
- required?: boolean;
620
- }
621
-
622
- declare interface UploadBaseProps_2 extends Omit<CustomDropDownFileUploadProps, 'onChange'> {
623
- name: string;
624
- dropdownOptions: {
625
- label: string;
626
- value: string;
627
- }[];
628
- dropdownName: string;
629
- required?: boolean;
630
- }
631
-
632
560
  export declare interface ValidationRuleProps {
633
561
  test: (val: string) => boolean;
634
562
  message: string;