vrfi-design-system 1.0.16 → 1.0.17
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 +60 -20
- package/dist/main.es.js +35298 -26264
- package/dist/main.umd.js +212 -124
- package/dist/style.css +1 -1
- package/package.json +17 -13
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
|
2
2
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
3
3
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
4
4
|
import { BaseOptionType } from 'rc-select/lib/Select';
|
|
5
|
+
import { default as Button } from 'antd/lib/button';
|
|
5
6
|
import { ButtonType } from '../../enums/buttonType';
|
|
6
7
|
import { ButtonType as ButtonType_2 } from 'antd/lib/button';
|
|
7
8
|
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
@@ -11,24 +12,32 @@ import { default as Col } from 'antd/lib/col';
|
|
|
11
12
|
import { ColProps } from 'antd/lib/col';
|
|
12
13
|
import { ComponentProps } from 'react';
|
|
13
14
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
15
|
+
import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
14
16
|
import { DatePickerProps } from 'antd';
|
|
15
17
|
import { default as default_2 } from 'react';
|
|
16
18
|
import { default as default_3 } from 'dayjs';
|
|
17
19
|
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
20
|
+
import { DocumentStatusEnum } from '../../enums/documentStatus.enum';
|
|
21
|
+
import { DocumentStatusEnum as DocumentStatusEnum_2 } from '../../../enums/documentStatus.enum';
|
|
18
22
|
import { DrawerProps as DrawerProps_2 } from 'antd';
|
|
19
23
|
import { FC } from 'react';
|
|
20
24
|
import { FieldValues } from 'react-hook-form';
|
|
21
25
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
22
26
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
27
|
+
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
23
28
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
24
29
|
import { Icons } from '../../enums/icons.enum';
|
|
25
30
|
import { InputProps } from 'antd/lib';
|
|
26
31
|
import { InputProps as InputProps_2 } from 'antd';
|
|
32
|
+
import { InputTypes } from '../../enums/inputType.enum';
|
|
33
|
+
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
27
34
|
import { JSX as JSX_2 } from 'react';
|
|
28
35
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
29
36
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
30
37
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
38
|
+
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
31
39
|
import { PasswordProps } from 'antd/es/input';
|
|
40
|
+
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
32
41
|
import { PropsWithChildren } from 'react';
|
|
33
42
|
import { Radio as Radio_2 } from 'antd';
|
|
34
43
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
@@ -38,6 +47,7 @@ import { default as Row } from 'antd/lib/row';
|
|
|
38
47
|
import { RowProps } from 'antd/lib/row';
|
|
39
48
|
import { SelectProps } from 'antd';
|
|
40
49
|
import { SidebarMenuProps } from '../types/SidebarRouteProps';
|
|
50
|
+
import { Size } from '../../enums/size.enum';
|
|
41
51
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
42
52
|
import { SkeletonProps } from 'antd';
|
|
43
53
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
@@ -51,9 +61,12 @@ import { TablePaginationConfig } from 'antd';
|
|
|
51
61
|
import { TableProps } from 'antd/lib/table';
|
|
52
62
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
53
63
|
import { TableProps as TableProps_3 } from 'antd';
|
|
64
|
+
import { TableType } from '../../enums/tableType.enum';
|
|
54
65
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
55
66
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
56
67
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
68
|
+
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
69
|
+
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
57
70
|
|
|
58
71
|
export declare interface AssignedEmployerProps {
|
|
59
72
|
data?: EmployerDataType[];
|
|
@@ -88,7 +101,7 @@ export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2
|
|
|
88
101
|
|
|
89
102
|
export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
|
|
90
103
|
|
|
91
|
-
export
|
|
104
|
+
export { Button }
|
|
92
105
|
|
|
93
106
|
export declare interface ButtonProps {
|
|
94
107
|
clickHandler?: (event: MouseEvent_2) => void;
|
|
@@ -149,11 +162,16 @@ export declare interface CustomInputProps {
|
|
|
149
162
|
rules?: Record<string, any>;
|
|
150
163
|
placeholder?: string;
|
|
151
164
|
type: string;
|
|
165
|
+
prefix?: ReactNode;
|
|
152
166
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
153
167
|
}
|
|
154
168
|
|
|
155
169
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
156
170
|
|
|
171
|
+
export { DatePickerAntd }
|
|
172
|
+
|
|
173
|
+
export declare const DocumentCard: ({ name, onDownload }: DocumentCardProps) => default_2.JSX.Element;
|
|
174
|
+
|
|
157
175
|
declare interface DocumentCardProps {
|
|
158
176
|
name: string;
|
|
159
177
|
onDownload?: () => void;
|
|
@@ -161,13 +179,10 @@ declare interface DocumentCardProps {
|
|
|
161
179
|
|
|
162
180
|
export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
|
|
163
181
|
|
|
164
|
-
|
|
165
|
-
PENDING = "pending",
|
|
166
|
-
UPLOADED = "uploaded"
|
|
167
|
-
}
|
|
182
|
+
export { DocumentStatusEnum }
|
|
168
183
|
|
|
169
184
|
export declare type DocumentStatusTypes = {
|
|
170
|
-
documentType:
|
|
185
|
+
documentType: DocumentStatusEnum_2;
|
|
171
186
|
};
|
|
172
187
|
|
|
173
188
|
export declare const Drawer: FC<DrawerProps>;
|
|
@@ -228,6 +243,7 @@ export declare interface FloatingLabelProps {
|
|
|
228
243
|
children: ReactNode;
|
|
229
244
|
label?: string;
|
|
230
245
|
value: string;
|
|
246
|
+
prefix?: boolean;
|
|
231
247
|
}
|
|
232
248
|
|
|
233
249
|
export { FooterDetailsProps }
|
|
@@ -248,7 +264,9 @@ declare interface FormProps {
|
|
|
248
264
|
};
|
|
249
265
|
}
|
|
250
266
|
|
|
251
|
-
|
|
267
|
+
export { GenderProfileEnum }
|
|
268
|
+
|
|
269
|
+
declare enum GenderProfileEnum_2{
|
|
252
270
|
MALE='Male',
|
|
253
271
|
FEMALE='Female',
|
|
254
272
|
PREFER_NOT_TO_SAY='Prefer not to say',
|
|
@@ -266,11 +284,15 @@ export declare interface INotification {
|
|
|
266
284
|
type: string;
|
|
267
285
|
}
|
|
268
286
|
|
|
269
|
-
export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
287
|
+
export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
288
|
+
|
|
289
|
+
export { InputTypes }
|
|
270
290
|
|
|
271
291
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
272
292
|
|
|
273
|
-
|
|
293
|
+
export { JobTypeEnum }
|
|
294
|
+
|
|
295
|
+
declare enum JobTypeEnum_2{
|
|
274
296
|
PART_TIME='Part time',
|
|
275
297
|
FULL_TIME='Full time',
|
|
276
298
|
|
|
@@ -318,6 +340,8 @@ declare enum ModalTypeEnum {
|
|
|
318
340
|
declare const Notification_2: ({ message, description, type }: INotification) => unknown;
|
|
319
341
|
export { Notification_2 as Notification }
|
|
320
342
|
|
|
343
|
+
export { NotificationTypes }
|
|
344
|
+
|
|
321
345
|
export declare const Offline: ({ isOffline }: OfflineProps) => default_2.JSX.Element | null;
|
|
322
346
|
|
|
323
347
|
export declare interface OfflineProps {
|
|
@@ -336,19 +360,22 @@ export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, n
|
|
|
336
360
|
|
|
337
361
|
export declare interface ProfileAttachmentProps {
|
|
338
362
|
data?: DocumentCardProps[];
|
|
363
|
+
title?: string;
|
|
339
364
|
}
|
|
340
365
|
|
|
341
|
-
export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
|
|
366
|
+
export declare const ProfileAttachments: ({ data, title }: ProfileAttachmentProps) => default_2.JSX.Element;
|
|
342
367
|
|
|
343
368
|
export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
|
|
344
369
|
|
|
370
|
+
export { ProfileDetailFooterTypes }
|
|
371
|
+
|
|
345
372
|
export declare interface ProfileDetailProps {
|
|
346
373
|
name: string;
|
|
347
374
|
phoneNumber: string;
|
|
348
375
|
email: string;
|
|
349
376
|
address: string;
|
|
350
|
-
gender:
|
|
351
|
-
jobType?:
|
|
377
|
+
gender: GenderProfileEnum_2;
|
|
378
|
+
jobType?: JobTypeEnum_2;
|
|
352
379
|
jobTitle?: string;
|
|
353
380
|
skills?: string[];
|
|
354
381
|
yearsOfExperience?: number | string;
|
|
@@ -392,10 +419,23 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
392
419
|
|
|
393
420
|
export { SidebarMenuProps }
|
|
394
421
|
|
|
422
|
+
export { Size }
|
|
423
|
+
|
|
395
424
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
396
425
|
|
|
397
426
|
export { Space }
|
|
398
427
|
|
|
428
|
+
declare interface Stats {
|
|
429
|
+
label: string;
|
|
430
|
+
value: string | number;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export declare const StatsBanner: default_2.FC<StatsBannerProps>;
|
|
434
|
+
|
|
435
|
+
export declare interface StatsBannerProps {
|
|
436
|
+
stats: Stats[];
|
|
437
|
+
}
|
|
438
|
+
|
|
399
439
|
declare interface StepItem extends StepProps {
|
|
400
440
|
component?: default_2.ReactElement;
|
|
401
441
|
}
|
|
@@ -420,7 +460,7 @@ export declare const TableComponent: FC<TableComponentProps>;
|
|
|
420
460
|
|
|
421
461
|
export declare interface TableComponentProps extends TableProps<any> {
|
|
422
462
|
dataSource: any[] | undefined;
|
|
423
|
-
type?:
|
|
463
|
+
type?: TableType_2;
|
|
424
464
|
pagination?: false | TablePaginationConfig | undefined;
|
|
425
465
|
loading?: boolean;
|
|
426
466
|
onRow?: any;
|
|
@@ -433,7 +473,9 @@ export declare interface TableComponentProps extends TableProps<any> {
|
|
|
433
473
|
size?: SizeType;
|
|
434
474
|
}
|
|
435
475
|
|
|
436
|
-
|
|
476
|
+
export { TableType }
|
|
477
|
+
|
|
478
|
+
declare const enum TableType_2 {
|
|
437
479
|
DEFAULT = "default",
|
|
438
480
|
NO_DESIGN = "noDesign",
|
|
439
481
|
}
|
|
@@ -446,6 +488,8 @@ export declare interface TitleHeaderProps {
|
|
|
446
488
|
icon?: JSX.Element;
|
|
447
489
|
description?: string;
|
|
448
490
|
active?: TitleHeaderStatus_2;
|
|
491
|
+
prefix?: ReactNode;
|
|
492
|
+
suffix?: ReactNode;
|
|
449
493
|
}
|
|
450
494
|
|
|
451
495
|
export { TitleHeaderStatus }
|
|
@@ -470,13 +514,9 @@ declare interface TooltipProps {
|
|
|
470
514
|
export declare function VerificationStatus(props: VerificationStatusProps): default_2.JSX.Element;
|
|
471
515
|
|
|
472
516
|
export declare type VerificationStatusProps = {
|
|
473
|
-
verificationStatus:
|
|
517
|
+
verificationStatus: VerificationTypes_2;
|
|
474
518
|
};
|
|
475
519
|
|
|
476
|
-
|
|
477
|
-
NEW = "new",
|
|
478
|
-
VERIFIED = "verified",
|
|
479
|
-
REJECTED = "rejected"
|
|
480
|
-
}
|
|
520
|
+
export { VerificationTypes }
|
|
481
521
|
|
|
482
522
|
export { }
|