vrfi-design-system 1.0.26 → 1.0.28
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 +21 -16
- package/dist/main.es.js +19953 -20001
- package/dist/main.umd.js +145 -148
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { ColProps } from 'antd/lib/col';
|
|
|
15
15
|
import { ColumnsType } from 'antd/es/table/InternalTable';
|
|
16
16
|
import { ColumnType } from 'antd/lib/table';
|
|
17
17
|
import { ComponentProps } from 'react';
|
|
18
|
+
import { Control } from 'react-hook-form';
|
|
18
19
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
19
20
|
import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
20
21
|
import { DatePickerProps } from 'antd';
|
|
@@ -30,6 +31,7 @@ import { FilterValue } from 'antd/lib/table/interface';
|
|
|
30
31
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
31
32
|
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
32
33
|
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
34
|
+
import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
|
|
33
35
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
34
36
|
import { Icons } from '../../enums/icons.enum';
|
|
35
37
|
import { InputProps } from 'antd/lib';
|
|
@@ -37,6 +39,7 @@ import { InputProps as InputProps_2 } from 'antd';
|
|
|
37
39
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
38
40
|
import { InputTypes as InputTypes_2 } from '../../../enums/inputType.enum';
|
|
39
41
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
42
|
+
import { JobTypeEnum as JobTypeEnum_2 } from '../../../enums/jobType.enum';
|
|
40
43
|
import { JSX as JSX_2 } from 'react';
|
|
41
44
|
import { Justify } from '../../enums/justify.enum';
|
|
42
45
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
@@ -51,6 +54,7 @@ import { Radio as Radio_2 } from 'antd';
|
|
|
51
54
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
52
55
|
import { ReactElement } from 'react';
|
|
53
56
|
import { ReactNode } from 'react';
|
|
57
|
+
import { RegisterOptions } from 'react-hook-form';
|
|
54
58
|
import { default as Row } from 'antd/lib/row';
|
|
55
59
|
import { RowProps } from 'antd/lib/row';
|
|
56
60
|
import { SelectProps } from 'antd';
|
|
@@ -62,6 +66,8 @@ import { SkeletonProps } from 'antd';
|
|
|
62
66
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
63
67
|
import { SortOrder } from 'antd/lib/table/interface';
|
|
64
68
|
import { default as Space } from 'antd/lib/space';
|
|
69
|
+
import { StatusTypes } from '../../enums/statusTypes.enum';
|
|
70
|
+
import { StatusTypes as StatusTypes_2 } from '../../../enums/statusTypes.enum';
|
|
65
71
|
import { StepProps } from 'antd';
|
|
66
72
|
import { StepsProps } from 'antd';
|
|
67
73
|
import { default as Switch } from 'antd/lib/switch';
|
|
@@ -203,6 +209,8 @@ export declare interface CustomInputProps {
|
|
|
203
209
|
prefix?: ReactNode;
|
|
204
210
|
required?: boolean;
|
|
205
211
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
212
|
+
control?: Control<FieldValues>;
|
|
213
|
+
rules?: RegisterOptions;
|
|
206
214
|
}
|
|
207
215
|
|
|
208
216
|
declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
|
|
@@ -301,6 +309,8 @@ export declare interface FileUploadProps {
|
|
|
301
309
|
handleChange: (file: FileList | UploadFile) => void;
|
|
302
310
|
}
|
|
303
311
|
|
|
312
|
+
export declare const FileUploadWithDropdown: ({ loading, required, selectLabel, dropdownName, dropdownOptions, className, value, onChange, maxFileSize, uploadHint, uploadTitle, uploadIcon, supportedFileType, ...propsDragDrop }: CustomDropDownFileUploadProps) => default_2.JSX.Element;
|
|
313
|
+
|
|
304
314
|
export { FilterValue }
|
|
305
315
|
|
|
306
316
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
@@ -329,14 +339,6 @@ declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
|
329
339
|
|
|
330
340
|
export { GenderProfileEnum }
|
|
331
341
|
|
|
332
|
-
declare enum GenderProfileEnum_2{
|
|
333
|
-
MALE='Male',
|
|
334
|
-
FEMALE='Female',
|
|
335
|
-
PREFER_NOT_TO_SAY='Prefer not to say',
|
|
336
|
-
OTHER='Other',
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
|
|
340
342
|
export { HtmlButtonType }
|
|
341
343
|
|
|
342
344
|
export { Icons }
|
|
@@ -347,7 +349,7 @@ export declare interface INotification {
|
|
|
347
349
|
type: string;
|
|
348
350
|
}
|
|
349
351
|
|
|
350
|
-
export declare const InputField: ({ label, type, placeholder, prefix,
|
|
352
|
+
export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
351
353
|
|
|
352
354
|
export { InputTypes }
|
|
353
355
|
|
|
@@ -355,12 +357,6 @@ export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputPro
|
|
|
355
357
|
|
|
356
358
|
export { JobTypeEnum }
|
|
357
359
|
|
|
358
|
-
declare enum JobTypeEnum_2{
|
|
359
|
-
PART_TIME='Part time',
|
|
360
|
-
FULL_TIME='Full time',
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
|
|
364
360
|
export { Justify }
|
|
365
361
|
|
|
366
362
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
@@ -423,7 +419,7 @@ export declare interface OfflineProps {
|
|
|
423
419
|
isOffline: boolean;
|
|
424
420
|
}
|
|
425
421
|
|
|
426
|
-
export declare const Password: ({ label,
|
|
422
|
+
export declare const Password: ({ label, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
427
423
|
|
|
428
424
|
export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
|
|
429
425
|
|
|
@@ -463,6 +459,7 @@ export declare interface ProfileDetailProps {
|
|
|
463
459
|
yearsOfExperience?: number | string;
|
|
464
460
|
userId: string;
|
|
465
461
|
imageUrl?: string;
|
|
462
|
+
verified: boolean;
|
|
466
463
|
}
|
|
467
464
|
|
|
468
465
|
export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
|
|
@@ -527,6 +524,8 @@ export declare interface StatsBannerProps {
|
|
|
527
524
|
stats: Stats[];
|
|
528
525
|
}
|
|
529
526
|
|
|
527
|
+
export { StatusTypes }
|
|
528
|
+
|
|
530
529
|
declare interface StepItem extends StepProps {
|
|
531
530
|
component?: default_2.ReactElement;
|
|
532
531
|
}
|
|
@@ -613,6 +612,12 @@ export declare interface UploadBasePropsForDropdown extends CustomDropDownFileUp
|
|
|
613
612
|
|
|
614
613
|
export declare const UploadWithDropdown: ({ name, onChange, ...rest }: UploadBasePropsForDropdown) => default_2.JSX.Element;
|
|
615
614
|
|
|
615
|
+
export declare function UserStatus(props: UserStatusProps): default_2.JSX.Element;
|
|
616
|
+
|
|
617
|
+
export declare type UserStatusProps = {
|
|
618
|
+
userStatus: StatusTypes_2;
|
|
619
|
+
};
|
|
620
|
+
|
|
616
621
|
export declare interface ValidationRuleProps {
|
|
617
622
|
test: (val: string) => boolean;
|
|
618
623
|
message: string;
|