vrfi-design-system 1.0.19 → 1.0.20
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 +78 -6
- package/dist/main.es.js +13203 -13061
- package/dist/main.umd.js +127 -127
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ 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';
|
|
48
49
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
49
50
|
import { ReactElement } from 'react';
|
|
50
51
|
import { ReactNode } from 'react';
|
|
@@ -71,6 +72,9 @@ import { TableType } from '../../enums/tableType.enum';
|
|
|
71
72
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
72
73
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
73
74
|
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';
|
|
74
78
|
import { UseFormProps } from 'react-hook-form';
|
|
75
79
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
76
80
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
@@ -168,13 +172,50 @@ export declare type CustomAvatarProps = {
|
|
|
168
172
|
isExtra?: boolean;
|
|
169
173
|
};
|
|
170
174
|
|
|
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
|
+
|
|
171
195
|
export declare interface CustomInputProps {
|
|
172
196
|
label: string;
|
|
173
197
|
name: string;
|
|
174
198
|
placeholder?: string;
|
|
175
199
|
type?: InputTypes_2;
|
|
176
200
|
prefix?: ReactNode;
|
|
177
|
-
|
|
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
|
+
|
|
178
219
|
}
|
|
179
220
|
|
|
180
221
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
@@ -233,21 +274,25 @@ declare interface ErrorProps {
|
|
|
233
274
|
fieldName: string;
|
|
234
275
|
}
|
|
235
276
|
|
|
236
|
-
export declare const FileUpload: ({
|
|
277
|
+
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
|
|
237
278
|
|
|
238
279
|
export declare interface FileUploadProps {
|
|
239
280
|
children?: default_2.ReactNode;
|
|
240
281
|
dragdrop?: boolean;
|
|
241
282
|
uploadIcon?: ReactNode;
|
|
242
283
|
uploadHint?: ReactNode;
|
|
284
|
+
uploadTitle?: string;
|
|
243
285
|
fileTypes?: string;
|
|
244
286
|
actionURL?: string;
|
|
245
287
|
multiple?: boolean;
|
|
246
288
|
maxCount?: number;
|
|
289
|
+
maxFileSize?: number;
|
|
247
290
|
supportedFileType?: string;
|
|
248
291
|
handleChange: (file: FileList | UploadFile) => void;
|
|
249
292
|
}
|
|
250
293
|
|
|
294
|
+
export declare const FileUploadWithDropdown: ({ name, ...rest }: UploadBaseProps_2) => default_2.JSX.Element;
|
|
295
|
+
|
|
251
296
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
252
297
|
|
|
253
298
|
export declare interface FloatingLabelProps {
|
|
@@ -262,10 +307,9 @@ export { FooterDetailsProps }
|
|
|
262
307
|
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
263
308
|
|
|
264
309
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
265
|
-
rules: any;
|
|
266
310
|
name: string;
|
|
267
|
-
type
|
|
268
|
-
|
|
311
|
+
type?: string;
|
|
312
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
269
313
|
}
|
|
270
314
|
|
|
271
315
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
@@ -426,8 +470,19 @@ declare interface RadioButtonProps {
|
|
|
426
470
|
label?: string;
|
|
427
471
|
}
|
|
428
472
|
|
|
473
|
+
export declare function RadioGroup({ options, name, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
|
|
474
|
+
|
|
429
475
|
export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
430
476
|
|
|
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
|
+
|
|
431
486
|
export { Row }
|
|
432
487
|
|
|
433
488
|
export { RowProps }
|
|
@@ -450,7 +505,7 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
450
505
|
label: string;
|
|
451
506
|
}[];
|
|
452
507
|
label: string;
|
|
453
|
-
|
|
508
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
454
509
|
}
|
|
455
510
|
|
|
456
511
|
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
@@ -557,6 +612,23 @@ declare interface TooltipProps {
|
|
|
557
612
|
children: JSX_2.Element;
|
|
558
613
|
}
|
|
559
614
|
|
|
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
|
+
|
|
560
632
|
export declare interface ValidationRuleProps {
|
|
561
633
|
test: (val: string) => boolean;
|
|
562
634
|
message: string;
|