vrfi-design-system 1.0.14 → 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 +128 -43
- package/dist/main.es.js +32313 -29399
- package/dist/main.umd.js +201 -162
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { default as Col } from 'antd/lib/col';
|
|
|
11
11
|
import { ColProps } from 'antd/lib/col';
|
|
12
12
|
import { ComponentProps } from 'react';
|
|
13
13
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
14
|
-
import { DatePickerProps
|
|
14
|
+
import { DatePickerProps } from 'antd';
|
|
15
15
|
import { default as default_2 } from 'react';
|
|
16
16
|
import { default as default_3 } from 'dayjs';
|
|
17
17
|
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
@@ -20,27 +20,31 @@ import { FC } from 'react';
|
|
|
20
20
|
import { FieldValues } from 'react-hook-form';
|
|
21
21
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
22
22
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
23
|
-
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
24
23
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
24
|
+
import { Icons } from '../../enums/icons.enum';
|
|
25
25
|
import { InputProps } from 'antd/lib';
|
|
26
|
+
import { InputProps as InputProps_2 } from 'antd';
|
|
26
27
|
import { JSX as JSX_2 } from 'react';
|
|
27
28
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
28
|
-
import { MenuItemType } from 'antd/lib/menu/interface';
|
|
29
29
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
30
30
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
31
|
+
import { PasswordProps } from 'antd/es/input';
|
|
32
|
+
import { PropsWithChildren } from 'react';
|
|
31
33
|
import { Radio as Radio_2 } from 'antd';
|
|
34
|
+
import { RadioProps as RadioProps_2 } from 'antd';
|
|
32
35
|
import { ReactElement } from 'react';
|
|
33
36
|
import { ReactNode } from 'react';
|
|
34
37
|
import { default as Row } from 'antd/lib/row';
|
|
35
38
|
import { RowProps } from 'antd/lib/row';
|
|
36
39
|
import { SelectProps } from 'antd';
|
|
37
40
|
import { SidebarMenuProps } from '../types/SidebarRouteProps';
|
|
38
|
-
import { SidebarMenuProps as SidebarMenuProps_2 } from '../..//types/SidebarRouteProps';
|
|
39
41
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
40
42
|
import { SkeletonProps } from 'antd';
|
|
41
43
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
42
44
|
import { StepProps } from 'antd';
|
|
43
45
|
import { StepsProps } from 'antd';
|
|
46
|
+
import { default as Switch } from 'antd/lib/switch';
|
|
47
|
+
import { SwitchProps } from 'antd/lib/switch';
|
|
44
48
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
45
49
|
import { TablePaginationConfig } from 'antd';
|
|
46
50
|
import { TableProps } from 'antd/lib/table';
|
|
@@ -49,6 +53,14 @@ import { TableProps as TableProps_3 } from 'antd';
|
|
|
49
53
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
50
54
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
51
55
|
|
|
56
|
+
export declare interface AssignedEmployerProps {
|
|
57
|
+
data?: EmployerDataType[];
|
|
58
|
+
noDataHeading?: string;
|
|
59
|
+
noDataSubheading?: string;
|
|
60
|
+
noDataIcon: ReactElement;
|
|
61
|
+
profileAssignedHeading: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
export { AuthBanner }
|
|
53
65
|
|
|
54
66
|
export { AuthForm }
|
|
@@ -85,7 +97,7 @@ export declare interface ButtonProps {
|
|
|
85
97
|
moduleClassName?: string;
|
|
86
98
|
icon?: any;
|
|
87
99
|
disabled?: boolean;
|
|
88
|
-
size?: "small" | "medium";
|
|
100
|
+
size?: "small" | "medium" | "large";
|
|
89
101
|
loading?: boolean;
|
|
90
102
|
name?: string;
|
|
91
103
|
target?: string;
|
|
@@ -94,6 +106,14 @@ export declare interface ButtonProps {
|
|
|
94
106
|
|
|
95
107
|
export { ButtonType }
|
|
96
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
|
+
|
|
97
117
|
export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, checked, }: CheckboxProps) => default_2.JSX.Element;
|
|
98
118
|
|
|
99
119
|
export declare interface CheckboxProps {
|
|
@@ -129,14 +149,11 @@ export declare interface CustomInputProps {
|
|
|
129
149
|
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
130
150
|
}
|
|
131
151
|
|
|
132
|
-
export declare const
|
|
133
|
-
({ title, ...props }: DatePickerProps & DatePickerProps_2): default_2.JSX.Element;
|
|
134
|
-
Formik: (props: DatePickerProps & DatePickerProps_2) => default_2.JSX.Element;
|
|
135
|
-
};
|
|
152
|
+
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
136
153
|
|
|
137
|
-
|
|
154
|
+
declare interface DocumentCardProps {
|
|
138
155
|
name: string;
|
|
139
|
-
|
|
156
|
+
onDownload?: () => void;
|
|
140
157
|
}
|
|
141
158
|
|
|
142
159
|
export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
|
|
@@ -175,11 +192,16 @@ export declare interface DropdownProps<ValueType, OptionType extends BaseOptionT
|
|
|
175
192
|
title?: string;
|
|
176
193
|
}
|
|
177
194
|
|
|
178
|
-
declare
|
|
195
|
+
declare type EmployerDataType = {
|
|
196
|
+
name: string;
|
|
197
|
+
startDate: string;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
declare const Error_2: FC<ErrorProps>;
|
|
179
201
|
export { Error_2 as Error }
|
|
180
202
|
|
|
181
|
-
|
|
182
|
-
|
|
203
|
+
declare interface ErrorProps {
|
|
204
|
+
fieldName: string;
|
|
183
205
|
}
|
|
184
206
|
|
|
185
207
|
export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
|
|
@@ -207,18 +229,34 @@ export declare interface FloatingLabelProps {
|
|
|
207
229
|
|
|
208
230
|
export { FooterDetailsProps }
|
|
209
231
|
|
|
232
|
+
export declare function Form({ onSubmit, initialValues, children }: PropsWithChildren<FormProps>): default_2.JSX.Element;
|
|
233
|
+
|
|
210
234
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
211
|
-
control: any;
|
|
212
235
|
rules: any;
|
|
213
236
|
name: string;
|
|
214
|
-
hasError: boolean;
|
|
215
237
|
type: string;
|
|
216
|
-
|
|
217
|
-
|
|
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
|
+
|
|
218
254
|
}
|
|
219
255
|
|
|
220
256
|
export { HtmlButtonType }
|
|
221
257
|
|
|
258
|
+
export { Icons }
|
|
259
|
+
|
|
222
260
|
export declare interface INotification {
|
|
223
261
|
message: string;
|
|
224
262
|
description: string;
|
|
@@ -227,6 +265,25 @@ export declare interface INotification {
|
|
|
227
265
|
|
|
228
266
|
export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
229
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
|
+
|
|
230
287
|
export declare const Loader: default_2.FC<LoaderProps>;
|
|
231
288
|
|
|
232
289
|
export declare interface LoaderProps {
|
|
@@ -264,9 +321,39 @@ export declare interface OfflineProps {
|
|
|
264
321
|
isOffline: boolean;
|
|
265
322
|
}
|
|
266
323
|
|
|
267
|
-
export declare const
|
|
324
|
+
export declare const Password: ({ label, type, placeholder, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
|
|
268
325
|
|
|
269
|
-
export declare
|
|
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;
|
|
270
357
|
|
|
271
358
|
declare interface RadioButtonProps {
|
|
272
359
|
label?: string;
|
|
@@ -280,37 +367,29 @@ export { RowProps }
|
|
|
280
367
|
|
|
281
368
|
export declare interface SearchComponentProps {
|
|
282
369
|
onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
283
|
-
value
|
|
284
|
-
placeholder
|
|
285
|
-
onClear
|
|
370
|
+
value?: string | number;
|
|
371
|
+
placeholder?: string;
|
|
372
|
+
onClear?: () => void;
|
|
286
373
|
}
|
|
287
374
|
|
|
288
375
|
export declare const SearchField: FC<SearchComponentProps>;
|
|
289
376
|
|
|
290
|
-
export declare const
|
|
377
|
+
export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
291
378
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
onClick: MenuItemType["onClick"];
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export declare const Skeleton: FC<SkeletonProps>;
|
|
303
|
-
|
|
304
|
-
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
|
+
}[];
|
|
305
386
|
label: string;
|
|
306
|
-
|
|
387
|
+
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
307
388
|
}
|
|
308
389
|
|
|
309
|
-
export
|
|
390
|
+
export { SidebarMenuProps }
|
|
310
391
|
|
|
311
|
-
declare
|
|
312
|
-
stats: Stats[];
|
|
313
|
-
}
|
|
392
|
+
export declare const Skeleton: FC<SkeletonProps>;
|
|
314
393
|
|
|
315
394
|
declare interface StepItem extends StepProps {
|
|
316
395
|
component?: default_2.ReactElement;
|
|
@@ -324,6 +403,12 @@ export declare interface StepperProps extends StepsProps {
|
|
|
324
403
|
destroyOnChange?: boolean;
|
|
325
404
|
}
|
|
326
405
|
|
|
406
|
+
export declare const SummaryCard: (props: PropsWithChildren) => default_2.JSX.Element;
|
|
407
|
+
|
|
408
|
+
export { Switch }
|
|
409
|
+
|
|
410
|
+
export { SwitchProps }
|
|
411
|
+
|
|
327
412
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
328
413
|
|
|
329
414
|
export declare const TableComponent: FC<TableComponentProps>;
|
|
@@ -350,7 +435,7 @@ declare const enum TableType {
|
|
|
350
435
|
|
|
351
436
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
352
437
|
|
|
353
|
-
declare interface TitleHeaderProps {
|
|
438
|
+
export declare interface TitleHeaderProps {
|
|
354
439
|
heading: string;
|
|
355
440
|
subHeading?: string;
|
|
356
441
|
icon?: JSX.Element;
|