vrfi-design-system 1.0.15 → 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 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,9 +47,11 @@ 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';
54
+ import { default as Space } from 'antd/lib/space';
44
55
  import { StepProps } from 'antd';
45
56
  import { StepsProps } from 'antd';
46
57
  import { default as Switch } from 'antd/lib/switch';
@@ -50,8 +61,12 @@ import { TablePaginationConfig } from 'antd';
50
61
  import { TableProps } from 'antd/lib/table';
51
62
  import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
52
63
  import { TableProps as TableProps_3 } from 'antd';
64
+ import { TableType } from '../../enums/tableType.enum';
65
+ import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
53
66
  import { tooltipPosition } from '../../../enums/tooltipPosition';
54
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';
55
70
 
56
71
  export declare interface AssignedEmployerProps {
57
72
  data?: EmployerDataType[];
@@ -86,7 +101,7 @@ export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2
86
101
 
87
102
  export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
88
103
 
89
- export declare const Button: FC<ButtonProps>;
104
+ export { Button }
90
105
 
91
106
  export declare interface ButtonProps {
92
107
  clickHandler?: (event: MouseEvent_2) => void;
@@ -97,11 +112,12 @@ export declare interface ButtonProps {
97
112
  moduleClassName?: string;
98
113
  icon?: any;
99
114
  disabled?: boolean;
100
- size?: "small" | "medium" | "large";
115
+ size?: SizeType;
101
116
  loading?: boolean;
102
117
  name?: string;
103
118
  target?: string;
104
119
  href?: string;
120
+ block?: boolean;
105
121
  }
106
122
 
107
123
  export { ButtonType }
@@ -146,11 +162,16 @@ export declare interface CustomInputProps {
146
162
  rules?: Record<string, any>;
147
163
  placeholder?: string;
148
164
  type: string;
165
+ prefix?: ReactNode;
149
166
  customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
150
167
  }
151
168
 
152
169
  export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
153
170
 
171
+ export { DatePickerAntd }
172
+
173
+ export declare const DocumentCard: ({ name, onDownload }: DocumentCardProps) => default_2.JSX.Element;
174
+
154
175
  declare interface DocumentCardProps {
155
176
  name: string;
156
177
  onDownload?: () => void;
@@ -158,13 +179,10 @@ declare interface DocumentCardProps {
158
179
 
159
180
  export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
160
181
 
161
- declare enum DocumentStatusEnum {
162
- PENDING = "pending",
163
- UPLOADED = "uploaded"
164
- }
182
+ export { DocumentStatusEnum }
165
183
 
166
184
  export declare type DocumentStatusTypes = {
167
- documentType: DocumentStatusEnum;
185
+ documentType: DocumentStatusEnum_2;
168
186
  };
169
187
 
170
188
  export declare const Drawer: FC<DrawerProps>;
@@ -225,6 +243,7 @@ export declare interface FloatingLabelProps {
225
243
  children: ReactNode;
226
244
  label?: string;
227
245
  value: string;
246
+ prefix?: boolean;
228
247
  }
229
248
 
230
249
  export { FooterDetailsProps }
@@ -245,7 +264,9 @@ declare interface FormProps {
245
264
  };
246
265
  }
247
266
 
248
- declare enum GenderProfileEnum{
267
+ export { GenderProfileEnum }
268
+
269
+ declare enum GenderProfileEnum_2{
249
270
  MALE='Male',
250
271
  FEMALE='Female',
251
272
  PREFER_NOT_TO_SAY='Prefer not to say',
@@ -263,11 +284,15 @@ export declare interface INotification {
263
284
  type: string;
264
285
  }
265
286
 
266
- 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 }
267
290
 
268
291
  export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
269
292
 
270
- declare enum JobTypeEnum{
293
+ export { JobTypeEnum }
294
+
295
+ declare enum JobTypeEnum_2{
271
296
  PART_TIME='Part time',
272
297
  FULL_TIME='Full time',
273
298
 
@@ -315,6 +340,8 @@ declare enum ModalTypeEnum {
315
340
  declare const Notification_2: ({ message, description, type }: INotification) => unknown;
316
341
  export { Notification_2 as Notification }
317
342
 
343
+ export { NotificationTypes }
344
+
318
345
  export declare const Offline: ({ isOffline }: OfflineProps) => default_2.JSX.Element | null;
319
346
 
320
347
  export declare interface OfflineProps {
@@ -333,19 +360,22 @@ export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, n
333
360
 
334
361
  export declare interface ProfileAttachmentProps {
335
362
  data?: DocumentCardProps[];
363
+ title?: string;
336
364
  }
337
365
 
338
- export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
366
+ export declare const ProfileAttachments: ({ data, title }: ProfileAttachmentProps) => default_2.JSX.Element;
339
367
 
340
368
  export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
341
369
 
370
+ export { ProfileDetailFooterTypes }
371
+
342
372
  export declare interface ProfileDetailProps {
343
373
  name: string;
344
374
  phoneNumber: string;
345
375
  email: string;
346
376
  address: string;
347
- gender: GenderProfileEnum;
348
- jobType?: JobTypeEnum;
377
+ gender: GenderProfileEnum_2;
378
+ jobType?: JobTypeEnum_2;
349
379
  jobTitle?: string;
350
380
  skills?: string[];
351
381
  yearsOfExperience?: number | string;
@@ -389,8 +419,23 @@ declare interface SelectPropsBase extends SelectProps {
389
419
 
390
420
  export { SidebarMenuProps }
391
421
 
422
+ export { Size }
423
+
392
424
  export declare const Skeleton: FC<SkeletonProps>;
393
425
 
426
+ export { Space }
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
+
394
439
  declare interface StepItem extends StepProps {
395
440
  component?: default_2.ReactElement;
396
441
  }
@@ -415,7 +460,7 @@ export declare const TableComponent: FC<TableComponentProps>;
415
460
 
416
461
  export declare interface TableComponentProps extends TableProps<any> {
417
462
  dataSource: any[] | undefined;
418
- type?: TableType;
463
+ type?: TableType_2;
419
464
  pagination?: false | TablePaginationConfig | undefined;
420
465
  loading?: boolean;
421
466
  onRow?: any;
@@ -428,7 +473,9 @@ export declare interface TableComponentProps extends TableProps<any> {
428
473
  size?: SizeType;
429
474
  }
430
475
 
431
- declare const enum TableType {
476
+ export { TableType }
477
+
478
+ declare const enum TableType_2 {
432
479
  DEFAULT = "default",
433
480
  NO_DESIGN = "noDesign",
434
481
  }
@@ -440,6 +487,16 @@ export declare interface TitleHeaderProps {
440
487
  subHeading?: string;
441
488
  icon?: JSX.Element;
442
489
  description?: string;
490
+ active?: TitleHeaderStatus_2;
491
+ prefix?: ReactNode;
492
+ suffix?: ReactNode;
493
+ }
494
+
495
+ export { TitleHeaderStatus }
496
+
497
+ declare enum TitleHeaderStatus_2{
498
+ ACTIVE='active',
499
+ INACTIVE='inactive',
443
500
  }
444
501
 
445
502
  export declare const Tooltip: FC<TooltipProps>;
@@ -457,13 +514,9 @@ declare interface TooltipProps {
457
514
  export declare function VerificationStatus(props: VerificationStatusProps): default_2.JSX.Element;
458
515
 
459
516
  export declare type VerificationStatusProps = {
460
- verificationStatus: VerificationTypes;
517
+ verificationStatus: VerificationTypes_2;
461
518
  };
462
519
 
463
- declare enum VerificationTypes {
464
- NEW = "new",
465
- VERIFIED = "verified",
466
- REJECTED = "rejected"
467
- }
520
+ export { VerificationTypes }
468
521
 
469
522
  export { }