vrfi-design-system 1.0.18 → 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 +90 -9
- package/dist/main.es.js +18545 -17977
- package/dist/main.umd.js +149 -151
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Align } from '../../enums/align.enum';
|
|
2
|
-
import { default as AntdRadio } from 'antd/lib/radio';
|
|
3
2
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
4
3
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
5
4
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
@@ -46,6 +45,7 @@ import { PasswordProps } from 'antd/es/input';
|
|
|
46
45
|
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
47
46
|
import { PropsWithChildren } from 'react';
|
|
48
47
|
import { Radio as Radio_2 } from 'antd';
|
|
48
|
+
import { RadioChangeEvent } from 'antd';
|
|
49
49
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
50
50
|
import { ReactElement } from 'react';
|
|
51
51
|
import { ReactNode } from 'react';
|
|
@@ -72,6 +72,9 @@ import { TableType } from '../../enums/tableType.enum';
|
|
|
72
72
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
73
73
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
74
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';
|
|
75
78
|
import { UseFormProps } from 'react-hook-form';
|
|
76
79
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
77
80
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
@@ -79,8 +82,6 @@ import * as Yup from 'yup';
|
|
|
79
82
|
|
|
80
83
|
export { Align }
|
|
81
84
|
|
|
82
|
-
export { AntdRadio }
|
|
83
|
-
|
|
84
85
|
export declare interface AssignedEmployerProps {
|
|
85
86
|
data?: EmployerDataType[];
|
|
86
87
|
noDataHeading?: string;
|
|
@@ -171,13 +172,50 @@ export declare type CustomAvatarProps = {
|
|
|
171
172
|
isExtra?: boolean;
|
|
172
173
|
};
|
|
173
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
|
+
|
|
174
195
|
export declare interface CustomInputProps {
|
|
175
196
|
label: string;
|
|
176
197
|
name: string;
|
|
177
198
|
placeholder?: string;
|
|
178
199
|
type?: InputTypes_2;
|
|
179
200
|
prefix?: ReactNode;
|
|
180
|
-
|
|
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
|
+
|
|
181
219
|
}
|
|
182
220
|
|
|
183
221
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
@@ -236,21 +274,25 @@ declare interface ErrorProps {
|
|
|
236
274
|
fieldName: string;
|
|
237
275
|
}
|
|
238
276
|
|
|
239
|
-
export declare const FileUpload: ({
|
|
277
|
+
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
|
|
240
278
|
|
|
241
279
|
export declare interface FileUploadProps {
|
|
242
280
|
children?: default_2.ReactNode;
|
|
243
281
|
dragdrop?: boolean;
|
|
244
282
|
uploadIcon?: ReactNode;
|
|
245
283
|
uploadHint?: ReactNode;
|
|
284
|
+
uploadTitle?: string;
|
|
246
285
|
fileTypes?: string;
|
|
247
286
|
actionURL?: string;
|
|
248
287
|
multiple?: boolean;
|
|
249
288
|
maxCount?: number;
|
|
289
|
+
maxFileSize?: number;
|
|
250
290
|
supportedFileType?: string;
|
|
251
291
|
handleChange: (file: FileList | UploadFile) => void;
|
|
252
292
|
}
|
|
253
293
|
|
|
294
|
+
export declare const FileUploadWithDropdown: ({ name, ...rest }: UploadBaseProps_2) => default_2.JSX.Element;
|
|
295
|
+
|
|
254
296
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
255
297
|
|
|
256
298
|
export declare interface FloatingLabelProps {
|
|
@@ -265,10 +307,9 @@ export { FooterDetailsProps }
|
|
|
265
307
|
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
266
308
|
|
|
267
309
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
268
|
-
rules: any;
|
|
269
310
|
name: string;
|
|
270
|
-
type
|
|
271
|
-
|
|
311
|
+
type?: string;
|
|
312
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
272
313
|
}
|
|
273
314
|
|
|
274
315
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
@@ -383,6 +424,13 @@ export declare interface OfflineProps {
|
|
|
383
424
|
|
|
384
425
|
export declare const Password: ({ label, type, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
385
426
|
|
|
427
|
+
export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
|
|
428
|
+
|
|
429
|
+
export declare interface PasswordValidationProps {
|
|
430
|
+
fieldName: string;
|
|
431
|
+
validationRules: ValidationRuleProps[];
|
|
432
|
+
}
|
|
433
|
+
|
|
386
434
|
export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
|
|
387
435
|
|
|
388
436
|
export declare interface ProfileAssignedCardProps {
|
|
@@ -422,8 +470,19 @@ declare interface RadioButtonProps {
|
|
|
422
470
|
label?: string;
|
|
423
471
|
}
|
|
424
472
|
|
|
473
|
+
export declare function RadioGroup({ options, name, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
|
|
474
|
+
|
|
425
475
|
export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
426
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
|
+
|
|
427
486
|
export { Row }
|
|
428
487
|
|
|
429
488
|
export { RowProps }
|
|
@@ -446,7 +505,7 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
446
505
|
label: string;
|
|
447
506
|
}[];
|
|
448
507
|
label: string;
|
|
449
|
-
|
|
508
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
450
509
|
}
|
|
451
510
|
|
|
452
511
|
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
@@ -553,6 +612,28 @@ declare interface TooltipProps {
|
|
|
553
612
|
children: JSX_2.Element;
|
|
554
613
|
}
|
|
555
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
|
+
|
|
632
|
+
export declare interface ValidationRuleProps {
|
|
633
|
+
test: (val: string) => boolean;
|
|
634
|
+
message: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
556
637
|
export declare function VerificationStatus(props: VerificationStatusProps): default_2.JSX.Element;
|
|
557
638
|
|
|
558
639
|
export declare type VerificationStatusProps = {
|