vrfi-design-system 1.0.16 → 1.0.18
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 +111 -29
- package/dist/main.es.js +36896 -26759
- package/dist/main.umd.js +234 -128
- package/dist/style.css +1 -1
- package/package.json +18 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Align } from '../../enums/align.enum';
|
|
2
|
+
import { default as AntdRadio } from 'antd/lib/radio';
|
|
1
3
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
2
4
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
3
5
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
4
6
|
import { BaseOptionType } from 'rc-select/lib/Select';
|
|
7
|
+
import { default as Button } from 'antd/lib/button';
|
|
5
8
|
import { ButtonType } from '../../enums/buttonType';
|
|
6
9
|
import { ButtonType as ButtonType_2 } from 'antd/lib/button';
|
|
7
10
|
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
@@ -9,26 +12,38 @@ import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
|
9
12
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
10
13
|
import { default as Col } from 'antd/lib/col';
|
|
11
14
|
import { ColProps } from 'antd/lib/col';
|
|
15
|
+
import { ColumnType } from 'antd/lib/table';
|
|
12
16
|
import { ComponentProps } from 'react';
|
|
13
17
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
18
|
+
import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
14
19
|
import { DatePickerProps } from 'antd';
|
|
15
20
|
import { default as default_2 } from 'react';
|
|
16
21
|
import { default as default_3 } from 'dayjs';
|
|
17
22
|
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
23
|
+
import { DocumentStatusEnum } from '../../enums/documentStatus.enum';
|
|
24
|
+
import { DocumentStatusEnum as DocumentStatusEnum_2 } from '../../../enums/documentStatus.enum';
|
|
18
25
|
import { DrawerProps as DrawerProps_2 } from 'antd';
|
|
19
26
|
import { FC } from 'react';
|
|
20
27
|
import { FieldValues } from 'react-hook-form';
|
|
21
28
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
22
29
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
30
|
+
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
31
|
+
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
23
32
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
24
33
|
import { Icons } from '../../enums/icons.enum';
|
|
25
34
|
import { InputProps } from 'antd/lib';
|
|
26
35
|
import { InputProps as InputProps_2 } from 'antd';
|
|
36
|
+
import { InputTypes } from '../../enums/inputType.enum';
|
|
37
|
+
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
27
38
|
import { JSX as JSX_2 } from 'react';
|
|
39
|
+
import { Justify } from '../../enums/justify.enum';
|
|
28
40
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
41
|
+
import { MenuItemType } from 'antd/lib/menu/interface';
|
|
29
42
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
30
43
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
44
|
+
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
31
45
|
import { PasswordProps } from 'antd/es/input';
|
|
46
|
+
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
32
47
|
import { PropsWithChildren } from 'react';
|
|
33
48
|
import { Radio as Radio_2 } from 'antd';
|
|
34
49
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
@@ -38,6 +53,8 @@ import { default as Row } from 'antd/lib/row';
|
|
|
38
53
|
import { RowProps } from 'antd/lib/row';
|
|
39
54
|
import { SelectProps } from 'antd';
|
|
40
55
|
import { SidebarMenuProps } from '../types/SidebarRouteProps';
|
|
56
|
+
import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
|
|
57
|
+
import { Size } from '../../enums/size.enum';
|
|
41
58
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
42
59
|
import { SkeletonProps } from 'antd';
|
|
43
60
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
@@ -51,9 +68,18 @@ import { TablePaginationConfig } from 'antd';
|
|
|
51
68
|
import { TableProps } from 'antd/lib/table';
|
|
52
69
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
53
70
|
import { TableProps as TableProps_3 } from 'antd';
|
|
71
|
+
import { TableType } from '../../enums/tableType.enum';
|
|
54
72
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
55
73
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
56
74
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
75
|
+
import { UseFormProps } from 'react-hook-form';
|
|
76
|
+
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
77
|
+
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
78
|
+
import * as Yup from 'yup';
|
|
79
|
+
|
|
80
|
+
export { Align }
|
|
81
|
+
|
|
82
|
+
export { AntdRadio }
|
|
57
83
|
|
|
58
84
|
export declare interface AssignedEmployerProps {
|
|
59
85
|
data?: EmployerDataType[];
|
|
@@ -88,7 +114,7 @@ export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2
|
|
|
88
114
|
|
|
89
115
|
export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
|
|
90
116
|
|
|
91
|
-
export
|
|
117
|
+
export { Button }
|
|
92
118
|
|
|
93
119
|
export declare interface ButtonProps {
|
|
94
120
|
clickHandler?: (event: MouseEvent_2) => void;
|
|
@@ -134,6 +160,8 @@ export { Col }
|
|
|
134
160
|
|
|
135
161
|
export { ColProps }
|
|
136
162
|
|
|
163
|
+
export { ColumnType }
|
|
164
|
+
|
|
137
165
|
export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
|
|
138
166
|
|
|
139
167
|
export declare type CustomAvatarProps = {
|
|
@@ -146,14 +174,18 @@ export declare type CustomAvatarProps = {
|
|
|
146
174
|
export declare interface CustomInputProps {
|
|
147
175
|
label: string;
|
|
148
176
|
name: string;
|
|
149
|
-
rules?: Record<string, any>;
|
|
150
177
|
placeholder?: string;
|
|
151
|
-
type
|
|
178
|
+
type?: InputTypes_2;
|
|
179
|
+
prefix?: ReactNode;
|
|
152
180
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
153
181
|
}
|
|
154
182
|
|
|
155
183
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
156
184
|
|
|
185
|
+
export { DatePickerAntd }
|
|
186
|
+
|
|
187
|
+
export declare const DocumentCard: ({ name, onDownload }: DocumentCardProps) => default_2.JSX.Element;
|
|
188
|
+
|
|
157
189
|
declare interface DocumentCardProps {
|
|
158
190
|
name: string;
|
|
159
191
|
onDownload?: () => void;
|
|
@@ -161,13 +193,10 @@ declare interface DocumentCardProps {
|
|
|
161
193
|
|
|
162
194
|
export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
|
|
163
195
|
|
|
164
|
-
|
|
165
|
-
PENDING = "pending",
|
|
166
|
-
UPLOADED = "uploaded"
|
|
167
|
-
}
|
|
196
|
+
export { DocumentStatusEnum }
|
|
168
197
|
|
|
169
198
|
export declare type DocumentStatusTypes = {
|
|
170
|
-
documentType:
|
|
199
|
+
documentType: DocumentStatusEnum_2;
|
|
171
200
|
};
|
|
172
201
|
|
|
173
202
|
export declare const Drawer: FC<DrawerProps>;
|
|
@@ -228,11 +257,12 @@ export declare interface FloatingLabelProps {
|
|
|
228
257
|
children: ReactNode;
|
|
229
258
|
label?: string;
|
|
230
259
|
value: string;
|
|
260
|
+
prefix?: ReactNode;
|
|
231
261
|
}
|
|
232
262
|
|
|
233
263
|
export { FooterDetailsProps }
|
|
234
264
|
|
|
235
|
-
export declare function Form({ onSubmit,
|
|
265
|
+
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
236
266
|
|
|
237
267
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
238
268
|
rules: any;
|
|
@@ -241,14 +271,14 @@ declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "on
|
|
|
241
271
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
242
272
|
}
|
|
243
273
|
|
|
244
|
-
declare interface FormProps {
|
|
245
|
-
onSubmit: (data:
|
|
246
|
-
|
|
247
|
-
[key: string]: string | number;
|
|
248
|
-
};
|
|
274
|
+
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
275
|
+
onSubmit: (data: T) => void;
|
|
276
|
+
validationSchema?: Yup.ObjectSchema<T>;
|
|
249
277
|
}
|
|
250
278
|
|
|
251
|
-
|
|
279
|
+
export { GenderProfileEnum }
|
|
280
|
+
|
|
281
|
+
declare enum GenderProfileEnum_2{
|
|
252
282
|
MALE='Male',
|
|
253
283
|
FEMALE='Female',
|
|
254
284
|
PREFER_NOT_TO_SAY='Prefer not to say',
|
|
@@ -266,16 +296,31 @@ export declare interface INotification {
|
|
|
266
296
|
type: string;
|
|
267
297
|
}
|
|
268
298
|
|
|
269
|
-
export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
299
|
+
export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
300
|
+
|
|
301
|
+
export { InputTypes }
|
|
302
|
+
|
|
303
|
+
declare enum InputTypes_2 {
|
|
304
|
+
TEXT='text',
|
|
305
|
+
NUMBER='number',
|
|
306
|
+
TEXTAREA='textarea',
|
|
307
|
+
PASSWORD='password',
|
|
308
|
+
EMAIL='email',
|
|
309
|
+
DATE='date'
|
|
310
|
+
}
|
|
270
311
|
|
|
271
312
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
272
313
|
|
|
273
|
-
|
|
314
|
+
export { JobTypeEnum }
|
|
315
|
+
|
|
316
|
+
declare enum JobTypeEnum_2{
|
|
274
317
|
PART_TIME='Part time',
|
|
275
318
|
FULL_TIME='Full time',
|
|
276
319
|
|
|
277
320
|
}
|
|
278
321
|
|
|
322
|
+
export { Justify }
|
|
323
|
+
|
|
279
324
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
280
325
|
|
|
281
326
|
export declare interface ListingTableHeaderProps {
|
|
@@ -315,9 +360,21 @@ declare enum ModalTypeEnum {
|
|
|
315
360
|
BASIC = "basic"
|
|
316
361
|
}
|
|
317
362
|
|
|
363
|
+
export declare const NoData: ({ headingText, subHeading, noDataIcon, buttonOnClick, buttonText }: NoDataProps) => default_2.JSX.Element;
|
|
364
|
+
|
|
365
|
+
export declare interface NoDataProps {
|
|
366
|
+
subHeading?: string;
|
|
367
|
+
buttonText?: string;
|
|
368
|
+
buttonOnClick?: () => void;
|
|
369
|
+
noDataIcon?: ReactElement;
|
|
370
|
+
headingText?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
318
373
|
declare const Notification_2: ({ message, description, type }: INotification) => unknown;
|
|
319
374
|
export { Notification_2 as Notification }
|
|
320
375
|
|
|
376
|
+
export { NotificationTypes }
|
|
377
|
+
|
|
321
378
|
export declare const Offline: ({ isOffline }: OfflineProps) => default_2.JSX.Element | null;
|
|
322
379
|
|
|
323
380
|
export declare interface OfflineProps {
|
|
@@ -336,19 +393,22 @@ export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, n
|
|
|
336
393
|
|
|
337
394
|
export declare interface ProfileAttachmentProps {
|
|
338
395
|
data?: DocumentCardProps[];
|
|
396
|
+
title?: string;
|
|
339
397
|
}
|
|
340
398
|
|
|
341
|
-
export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
|
|
399
|
+
export declare const ProfileAttachments: ({ data, title }: ProfileAttachmentProps) => default_2.JSX.Element;
|
|
342
400
|
|
|
343
401
|
export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
|
|
344
402
|
|
|
403
|
+
export { ProfileDetailFooterTypes }
|
|
404
|
+
|
|
345
405
|
export declare interface ProfileDetailProps {
|
|
346
406
|
name: string;
|
|
347
407
|
phoneNumber: string;
|
|
348
408
|
email: string;
|
|
349
409
|
address: string;
|
|
350
|
-
gender:
|
|
351
|
-
jobType?:
|
|
410
|
+
gender: GenderProfileEnum_2;
|
|
411
|
+
jobType?: JobTypeEnum_2;
|
|
352
412
|
jobTitle?: string;
|
|
353
413
|
skills?: string[];
|
|
354
414
|
yearsOfExperience?: number | string;
|
|
@@ -381,7 +441,6 @@ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
|
381
441
|
|
|
382
442
|
declare interface SelectPropsBase extends SelectProps {
|
|
383
443
|
name: string;
|
|
384
|
-
rules: Record<string, any>;
|
|
385
444
|
options: {
|
|
386
445
|
value: string;
|
|
387
446
|
label: string;
|
|
@@ -390,12 +449,35 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
390
449
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
391
450
|
}
|
|
392
451
|
|
|
452
|
+
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
453
|
+
|
|
393
454
|
export { SidebarMenuProps }
|
|
394
455
|
|
|
456
|
+
export declare interface SidebarProps {
|
|
457
|
+
activeMenu: string;
|
|
458
|
+
menus: SidebarMenuProps_2[];
|
|
459
|
+
footerDetails: FooterDetailsProps_2;
|
|
460
|
+
popoverContent: default_2.ReactNode;
|
|
461
|
+
onClick: MenuItemType["onClick"];
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export { Size }
|
|
465
|
+
|
|
395
466
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
396
467
|
|
|
397
468
|
export { Space }
|
|
398
469
|
|
|
470
|
+
declare interface Stats {
|
|
471
|
+
label: string;
|
|
472
|
+
value: string | number;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export declare const StatsBanner: default_2.FC<StatsBannerProps>;
|
|
476
|
+
|
|
477
|
+
export declare interface StatsBannerProps {
|
|
478
|
+
stats: Stats[];
|
|
479
|
+
}
|
|
480
|
+
|
|
399
481
|
declare interface StepItem extends StepProps {
|
|
400
482
|
component?: default_2.ReactElement;
|
|
401
483
|
}
|
|
@@ -420,7 +502,7 @@ export declare const TableComponent: FC<TableComponentProps>;
|
|
|
420
502
|
|
|
421
503
|
export declare interface TableComponentProps extends TableProps<any> {
|
|
422
504
|
dataSource: any[] | undefined;
|
|
423
|
-
type?:
|
|
505
|
+
type?: TableType_2;
|
|
424
506
|
pagination?: false | TablePaginationConfig | undefined;
|
|
425
507
|
loading?: boolean;
|
|
426
508
|
onRow?: any;
|
|
@@ -433,7 +515,9 @@ export declare interface TableComponentProps extends TableProps<any> {
|
|
|
433
515
|
size?: SizeType;
|
|
434
516
|
}
|
|
435
517
|
|
|
436
|
-
|
|
518
|
+
export { TableType }
|
|
519
|
+
|
|
520
|
+
declare const enum TableType_2 {
|
|
437
521
|
DEFAULT = "default",
|
|
438
522
|
NO_DESIGN = "noDesign",
|
|
439
523
|
}
|
|
@@ -446,6 +530,8 @@ export declare interface TitleHeaderProps {
|
|
|
446
530
|
icon?: JSX.Element;
|
|
447
531
|
description?: string;
|
|
448
532
|
active?: TitleHeaderStatus_2;
|
|
533
|
+
prefix?: ReactNode;
|
|
534
|
+
suffix?: ReactNode;
|
|
449
535
|
}
|
|
450
536
|
|
|
451
537
|
export { TitleHeaderStatus }
|
|
@@ -470,13 +556,9 @@ declare interface TooltipProps {
|
|
|
470
556
|
export declare function VerificationStatus(props: VerificationStatusProps): default_2.JSX.Element;
|
|
471
557
|
|
|
472
558
|
export declare type VerificationStatusProps = {
|
|
473
|
-
verificationStatus:
|
|
559
|
+
verificationStatus: VerificationTypes_2;
|
|
474
560
|
};
|
|
475
561
|
|
|
476
|
-
|
|
477
|
-
NEW = "new",
|
|
478
|
-
VERIFIED = "verified",
|
|
479
|
-
REJECTED = "rejected"
|
|
480
|
-
}
|
|
562
|
+
export { VerificationTypes }
|
|
481
563
|
|
|
482
564
|
export { }
|