vrfi-design-system 1.0.13 → 1.0.15

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,13 +2,16 @@ 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 { ButtonType } from 'antd/lib/button';
5
+ import { ButtonType } from '../../enums/buttonType';
6
+ import { ButtonType as ButtonType_2 } from 'antd/lib/button';
6
7
  import { CheckboxChangeEvent } from 'antd/es/checkbox';
7
8
  import { CheckboxGroupProps } from 'antd/es/checkbox';
8
9
  import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
10
+ import { default as Col } from 'antd/lib/col';
11
+ import { ColProps } from 'antd/lib/col';
9
12
  import { ComponentProps } from 'react';
10
13
  import { ControllerRenderProps } from 'react-hook-form';
11
- import { DatePickerProps as DatePickerProps_2 } from 'antd';
14
+ import { DatePickerProps } from 'antd';
12
15
  import { default as default_2 } from 'react';
13
16
  import { default as default_3 } from 'dayjs';
14
17
  import { DefaultOptionType } from 'rc-select/lib/Select';
@@ -17,24 +20,31 @@ import { FC } from 'react';
17
20
  import { FieldValues } from 'react-hook-form';
18
21
  import { FilterValue } from 'antd/lib/table/interface';
19
22
  import { FooterDetailsProps } from '../types/footerDetails';
20
- import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
23
+ import { HtmlButtonType } from '../../enums/buttonType';
24
+ import { Icons } from '../../enums/icons.enum';
21
25
  import { InputProps } from 'antd/lib';
26
+ import { InputProps as InputProps_2 } from 'antd';
22
27
  import { JSX as JSX_2 } from 'react';
23
28
  import { LoaderSizes } from '../../../enums/LoaderSizes';
24
- import { MenuItemType } from 'antd/lib/menu/interface';
25
29
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
26
30
  import { MouseEvent as MouseEvent_2 } from 'react';
31
+ import { PasswordProps } from 'antd/es/input';
32
+ import { PropsWithChildren } from 'react';
27
33
  import { Radio as Radio_2 } from 'antd';
34
+ import { RadioProps as RadioProps_2 } from 'antd';
28
35
  import { ReactElement } from 'react';
29
36
  import { ReactNode } from 'react';
37
+ import { default as Row } from 'antd/lib/row';
38
+ import { RowProps } from 'antd/lib/row';
30
39
  import { SelectProps } from 'antd';
31
40
  import { SidebarMenuProps } from '../types/SidebarRouteProps';
32
- import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
33
41
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
34
42
  import { SkeletonProps } from 'antd';
35
43
  import { SorterResult } from 'antd/lib/table/interface';
36
44
  import { StepProps } from 'antd';
37
45
  import { StepsProps } from 'antd';
46
+ import { default as Switch } from 'antd/lib/switch';
47
+ import { SwitchProps } from 'antd/lib/switch';
38
48
  import { TableCurrentDataSource } from 'antd/lib/table/interface';
39
49
  import { TablePaginationConfig } from 'antd';
40
50
  import { TableProps } from 'antd/lib/table';
@@ -43,6 +53,14 @@ import { TableProps as TableProps_3 } from 'antd';
43
53
  import { tooltipPosition } from '../../../enums/tooltipPosition';
44
54
  import { UploadFile } from 'antd/lib/upload/interface';
45
55
 
56
+ export declare interface AssignedEmployerProps {
57
+ data?: EmployerDataType[];
58
+ noDataHeading?: string;
59
+ noDataSubheading?: string;
60
+ noDataIcon: ReactElement;
61
+ profileAssignedHeading: string;
62
+ }
63
+
46
64
  export { AuthBanner }
47
65
 
48
66
  export { AuthForm }
@@ -74,18 +92,28 @@ export declare interface ButtonProps {
74
92
  clickHandler?: (event: MouseEvent_2) => void;
75
93
  children: ReactNode;
76
94
  htmlType?: "reset" | "submit" | "button";
77
- type?: ButtonType;
95
+ type?: ButtonType_2;
78
96
  className?: string;
79
97
  moduleClassName?: string;
80
98
  icon?: any;
81
99
  disabled?: boolean;
82
- size?: "small" | "medium";
100
+ size?: "small" | "medium" | "large";
83
101
  loading?: boolean;
84
102
  name?: string;
85
103
  target?: string;
86
104
  href?: string;
87
105
  }
88
106
 
107
+ export { ButtonType }
108
+
109
+ export declare function CardWithIconAndText({ icon, heading, subHeading }: CardWithIconAndTextProps): default_2.JSX.Element;
110
+
111
+ export declare interface CardWithIconAndTextProps {
112
+ icon: ReactNode;
113
+ heading: string;
114
+ subHeading: string;
115
+ }
116
+
89
117
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
90
118
 
91
119
  export declare interface CheckboxProps {
@@ -99,6 +127,10 @@ export declare interface CheckboxProps {
99
127
  checked?: boolean;
100
128
  }
101
129
 
130
+ export { Col }
131
+
132
+ export { ColProps }
133
+
102
134
  export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
103
135
 
104
136
  export declare type CustomAvatarProps = {
@@ -117,14 +149,11 @@ export declare interface CustomInputProps {
117
149
  customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
118
150
  }
119
151
 
120
- export declare const DatePickerField: {
121
- ({ title, ...props }: DatePickerProps & DatePickerProps_2): default_2.JSX.Element;
122
- Formik: (props: DatePickerProps & DatePickerProps_2) => default_2.JSX.Element;
123
- };
152
+ export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
124
153
 
125
- export declare interface DatePickerProps {
154
+ declare interface DocumentCardProps {
126
155
  name: string;
127
- title?: string;
156
+ onDownload?: () => void;
128
157
  }
129
158
 
130
159
  export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
@@ -163,11 +192,16 @@ export declare interface DropdownProps<ValueType, OptionType extends BaseOptionT
163
192
  title?: string;
164
193
  }
165
194
 
166
- declare const Error_2: FC<ErrorMessageProps>;
195
+ declare type EmployerDataType = {
196
+ name: string;
197
+ startDate: string;
198
+ };
199
+
200
+ declare const Error_2: FC<ErrorProps>;
167
201
  export { Error_2 as Error }
168
202
 
169
- export declare interface ErrorMessageProps {
170
- message: string;
203
+ declare interface ErrorProps {
204
+ fieldName: string;
171
205
  }
172
206
 
173
207
  export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
@@ -195,16 +229,34 @@ export declare interface FloatingLabelProps {
195
229
 
196
230
  export { FooterDetailsProps }
197
231
 
232
+ export declare function Form({ onSubmit, initialValues, children }: PropsWithChildren<FormProps>): default_2.JSX.Element;
233
+
198
234
  declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
199
- control: any;
200
235
  rules: any;
201
236
  name: string;
202
- hasError: boolean;
203
237
  type: string;
204
- error: string;
205
- customOnChange: (event: default_2.ChangeEvent<HTMLInputElement>, field: any) => void;
238
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
239
+ }
240
+
241
+ declare interface FormProps {
242
+ onSubmit: (data: FieldValues) => void;
243
+ initialValues: {
244
+ [key: string]: string | number;
245
+ };
246
+ }
247
+
248
+ declare enum GenderProfileEnum{
249
+ MALE='Male',
250
+ FEMALE='Female',
251
+ PREFER_NOT_TO_SAY='Prefer not to say',
252
+ OTHER='Other',
253
+
206
254
  }
207
255
 
256
+ export { HtmlButtonType }
257
+
258
+ export { Icons }
259
+
208
260
  export declare interface INotification {
209
261
  message: string;
210
262
  description: string;
@@ -213,6 +265,25 @@ export declare interface INotification {
213
265
 
214
266
  export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
215
267
 
268
+ export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
269
+
270
+ declare enum JobTypeEnum{
271
+ PART_TIME='Part time',
272
+ FULL_TIME='Full time',
273
+
274
+ }
275
+
276
+ export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
277
+
278
+ export declare interface ListingTableHeaderProps {
279
+ onSearch?: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
280
+ onFilter?: () => void;
281
+ onClear?: () => void;
282
+ searchPlaceholder?: string;
283
+ searchValue?: string;
284
+ actionButtons?: ReactNode;
285
+ }
286
+
216
287
  export declare const Loader: default_2.FC<LoaderProps>;
217
288
 
218
289
  export declare interface LoaderProps {
@@ -250,9 +321,39 @@ export declare interface OfflineProps {
250
321
  isOffline: boolean;
251
322
  }
252
323
 
253
- export declare const PasswordValidation: default_2.FC;
324
+ export declare const Password: ({ label, type, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
254
325
 
255
- export declare const Radio: ({ label, ...props }: RadioProps) => default_2.JSX.Element;
326
+ export declare function ProfileAssignedCard({ name }: ProfileAssignedCardProps): default_2.JSX.Element;
327
+
328
+ export declare interface ProfileAssignedCardProps {
329
+ name: string;
330
+ }
331
+
332
+ export declare const ProfileAssignedEmployer: ({ data, profileAssignedHeading, noDataHeading, noDataSubheading, noDataIcon }: AssignedEmployerProps) => default_2.JSX.Element;
333
+
334
+ export declare interface ProfileAttachmentProps {
335
+ data?: DocumentCardProps[];
336
+ }
337
+
338
+ export declare const ProfileAttachments: ({ data }: ProfileAttachmentProps) => default_2.JSX.Element;
339
+
340
+ export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX.Element;
341
+
342
+ export declare interface ProfileDetailProps {
343
+ name: string;
344
+ phoneNumber: string;
345
+ email: string;
346
+ address: string;
347
+ gender: GenderProfileEnum;
348
+ jobType?: JobTypeEnum;
349
+ jobTitle?: string;
350
+ skills?: string[];
351
+ yearsOfExperience?: number | string;
352
+ userId: string;
353
+ imageUrl?: string;
354
+ }
355
+
356
+ export declare const Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
256
357
 
257
358
  declare interface RadioButtonProps {
258
359
  label?: string;
@@ -260,39 +361,35 @@ declare interface RadioButtonProps {
260
361
 
261
362
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
262
363
 
364
+ export { Row }
365
+
366
+ export { RowProps }
367
+
263
368
  export declare interface SearchComponentProps {
264
369
  onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
265
- value: string | number;
266
- placeholder: string;
267
- onClear: () => void;
370
+ value?: string | number;
371
+ placeholder?: string;
372
+ onClear?: () => void;
268
373
  }
269
374
 
270
375
  export declare const SearchField: FC<SearchComponentProps>;
271
376
 
272
- export declare const Sidebar: default_2.FC<SidebarProps>;
377
+ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
273
378
 
274
- export { SidebarMenuProps }
275
-
276
- declare interface SidebarProps {
277
- activeMenu: string;
278
- menus: SidebarMenuProps_2[];
279
- footerDetails: FooterDetailsProps_2;
280
- popoverContent: default_2.ReactNode;
281
- onClick: MenuItemType["onClick"];
282
- }
283
-
284
- export declare const Skeleton: FC<SkeletonProps>;
285
-
286
- declare interface Stats {
379
+ declare interface SelectPropsBase extends SelectProps {
380
+ name: string;
381
+ rules: Record<string, any>;
382
+ options: {
383
+ value: string;
384
+ label: string;
385
+ }[];
287
386
  label: string;
288
- value: string | number;
387
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
289
388
  }
290
389
 
291
- export declare const StatsBanner: default_2.FC<StatsBannerProps>;
390
+ export { SidebarMenuProps }
292
391
 
293
- declare interface StatsBannerProps {
294
- stats: Stats[];
295
- }
392
+ export declare const Skeleton: FC<SkeletonProps>;
296
393
 
297
394
  declare interface StepItem extends StepProps {
298
395
  component?: default_2.ReactElement;
@@ -306,6 +403,12 @@ export declare interface StepperProps extends StepsProps {
306
403
  destroyOnChange?: boolean;
307
404
  }
308
405
 
406
+ export declare const SummaryCard: (props: PropsWithChildren) => default_2.JSX.Element;
407
+
408
+ export { Switch }
409
+
410
+ export { SwitchProps }
411
+
309
412
  export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
310
413
 
311
414
  export declare const TableComponent: FC<TableComponentProps>;
@@ -330,6 +433,15 @@ declare const enum TableType {
330
433
  NO_DESIGN = "noDesign",
331
434
  }
332
435
 
436
+ export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
437
+
438
+ export declare interface TitleHeaderProps {
439
+ heading: string;
440
+ subHeading?: string;
441
+ icon?: JSX.Element;
442
+ description?: string;
443
+ }
444
+
333
445
  export declare const Tooltip: FC<TooltipProps>;
334
446
 
335
447
  declare interface TooltipProps {