vrfi-design-system 1.0.27 → 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 +22 -28
- package/dist/main.es.js +19919 -19994
- 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';
|
|
@@ -48,11 +51,10 @@ import { PasswordProps } from 'antd/es/input';
|
|
|
48
51
|
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
49
52
|
import { PropsWithChildren } from 'react';
|
|
50
53
|
import { Radio as Radio_2 } from 'antd';
|
|
51
|
-
import {
|
|
52
|
-
import { RadioGroupProps } from 'antd';
|
|
53
|
-
import { RadioProps } from 'antd';
|
|
54
|
+
import { RadioProps as RadioProps_2 } from 'antd';
|
|
54
55
|
import { ReactElement } from 'react';
|
|
55
56
|
import { ReactNode } from 'react';
|
|
57
|
+
import { RegisterOptions } from 'react-hook-form';
|
|
56
58
|
import { default as Row } from 'antd/lib/row';
|
|
57
59
|
import { RowProps } from 'antd/lib/row';
|
|
58
60
|
import { SelectProps } from 'antd';
|
|
@@ -64,6 +66,8 @@ import { SkeletonProps } from 'antd';
|
|
|
64
66
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
65
67
|
import { SortOrder } from 'antd/lib/table/interface';
|
|
66
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';
|
|
67
71
|
import { StepProps } from 'antd';
|
|
68
72
|
import { StepsProps } from 'antd';
|
|
69
73
|
import { default as Switch } from 'antd/lib/switch';
|
|
@@ -90,8 +94,6 @@ import * as Yup from 'yup';
|
|
|
90
94
|
|
|
91
95
|
export { Align }
|
|
92
96
|
|
|
93
|
-
export declare type AntdRadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
94
|
-
|
|
95
97
|
export declare interface AssignedEmployerProps {
|
|
96
98
|
data?: EmployerDataType[];
|
|
97
99
|
noDataHeading?: string;
|
|
@@ -207,11 +209,8 @@ export declare interface CustomInputProps {
|
|
|
207
209
|
prefix?: ReactNode;
|
|
208
210
|
required?: boolean;
|
|
209
211
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
export declare interface CustomRadioProps extends RadioProps, Pick<RadioGroupProps, 'options'> {
|
|
213
|
-
name: string;
|
|
214
|
-
customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
212
|
+
control?: Control<FieldValues>;
|
|
213
|
+
rules?: RegisterOptions;
|
|
215
214
|
}
|
|
216
215
|
|
|
217
216
|
declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
|
|
@@ -340,14 +339,6 @@ declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
|
340
339
|
|
|
341
340
|
export { GenderProfileEnum }
|
|
342
341
|
|
|
343
|
-
declare enum GenderProfileEnum_2{
|
|
344
|
-
MALE='Male',
|
|
345
|
-
FEMALE='Female',
|
|
346
|
-
PREFER_NOT_TO_SAY='Prefer not to say',
|
|
347
|
-
OTHER='Other',
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
342
|
export { HtmlButtonType }
|
|
352
343
|
|
|
353
344
|
export { Icons }
|
|
@@ -358,7 +349,7 @@ export declare interface INotification {
|
|
|
358
349
|
type: string;
|
|
359
350
|
}
|
|
360
351
|
|
|
361
|
-
export declare const InputField: ({ label, type, placeholder, prefix,
|
|
352
|
+
export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
362
353
|
|
|
363
354
|
export { InputTypes }
|
|
364
355
|
|
|
@@ -366,12 +357,6 @@ export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputPro
|
|
|
366
357
|
|
|
367
358
|
export { JobTypeEnum }
|
|
368
359
|
|
|
369
|
-
declare enum JobTypeEnum_2{
|
|
370
|
-
PART_TIME='Part time',
|
|
371
|
-
FULL_TIME='Full time',
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
|
|
375
360
|
export { Justify }
|
|
376
361
|
|
|
377
362
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
@@ -434,7 +419,7 @@ export declare interface OfflineProps {
|
|
|
434
419
|
isOffline: boolean;
|
|
435
420
|
}
|
|
436
421
|
|
|
437
|
-
export declare const Password: ({ label,
|
|
422
|
+
export declare const Password: ({ label, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
438
423
|
|
|
439
424
|
export declare const PasswordValidation: default_2.FC<PasswordValidationProps>;
|
|
440
425
|
|
|
@@ -474,15 +459,16 @@ export declare interface ProfileDetailProps {
|
|
|
474
459
|
yearsOfExperience?: number | string;
|
|
475
460
|
userId: string;
|
|
476
461
|
imageUrl?: string;
|
|
462
|
+
verified: boolean;
|
|
477
463
|
}
|
|
478
464
|
|
|
479
|
-
export declare const Radio: (props: CustomInputProps &
|
|
465
|
+
export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
|
|
480
466
|
|
|
481
467
|
declare interface RadioButtonProps {
|
|
482
468
|
label?: string;
|
|
483
469
|
}
|
|
484
470
|
|
|
485
|
-
export declare
|
|
471
|
+
export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
486
472
|
|
|
487
473
|
export { Row }
|
|
488
474
|
|
|
@@ -538,6 +524,8 @@ export declare interface StatsBannerProps {
|
|
|
538
524
|
stats: Stats[];
|
|
539
525
|
}
|
|
540
526
|
|
|
527
|
+
export { StatusTypes }
|
|
528
|
+
|
|
541
529
|
declare interface StepItem extends StepProps {
|
|
542
530
|
component?: default_2.ReactElement;
|
|
543
531
|
}
|
|
@@ -624,6 +612,12 @@ export declare interface UploadBasePropsForDropdown extends CustomDropDownFileUp
|
|
|
624
612
|
|
|
625
613
|
export declare const UploadWithDropdown: ({ name, onChange, ...rest }: UploadBasePropsForDropdown) => default_2.JSX.Element;
|
|
626
614
|
|
|
615
|
+
export declare function UserStatus(props: UserStatusProps): default_2.JSX.Element;
|
|
616
|
+
|
|
617
|
+
export declare type UserStatusProps = {
|
|
618
|
+
userStatus: StatusTypes_2;
|
|
619
|
+
};
|
|
620
|
+
|
|
627
621
|
export declare interface ValidationRuleProps {
|
|
628
622
|
test: (val: string) => boolean;
|
|
629
623
|
message: string;
|