vrfi-design-system 1.0.90 → 1.0.92
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 +71 -176
- package/dist/main.es.js +32164 -27609
- package/dist/main.umd.js +199 -159
- package/dist/style.css +1 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ActionType } from '../../enums/trigger';
|
|
2
2
|
import { Align } from '../../enums/align.enum';
|
|
3
3
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
4
|
-
import { AuthBannerTextType } from '../../views/Auth/AuthBanner/authBanner.constants';
|
|
5
4
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
6
5
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
7
6
|
import { AvatarSize } from '../../enums/avatarSize.enum';
|
|
8
7
|
import { AvatarSize as AvatarSize_2 } from '../../../enums/avatarSize.enum';
|
|
9
8
|
import { BadgeType } from '../../enums/badgeType.enum';
|
|
10
9
|
import { BadgeType as BadgeType_2 } from '../../../enums/badgeType.enum';
|
|
10
|
+
import { BaseOptionType } from 'rc-select/lib/Select';
|
|
11
11
|
import { ButtonType } from '../../enums/buttonType';
|
|
12
12
|
import { ButtonType as ButtonType_2 } from 'antd/lib/button';
|
|
13
|
-
import {
|
|
13
|
+
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
14
|
+
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
14
15
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
15
16
|
import { default as Col } from 'antd/lib/col';
|
|
16
17
|
import { Colors } from '../../enums/colors.enum';
|
|
@@ -18,6 +19,7 @@ import { ColProps } from 'antd/lib/col';
|
|
|
18
19
|
import { ColumnSortOrder } from './../../enums/columnSortOrder.enum';
|
|
19
20
|
import { ColumnsType } from 'antd/es/table/InternalTable';
|
|
20
21
|
import { ColumnType } from 'antd/lib/table';
|
|
22
|
+
import { ComponentProps } from 'react';
|
|
21
23
|
import { Control } from 'react-hook-form';
|
|
22
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
23
25
|
import { CSSProperties } from 'react';
|
|
@@ -25,6 +27,7 @@ import { default as DatePickerAntd } from 'antd/lib/date-picker';
|
|
|
25
27
|
import { DatePickerProps } from 'antd';
|
|
26
28
|
import { default as default_2 } from 'react';
|
|
27
29
|
import { default as default_3 } from 'dayjs';
|
|
30
|
+
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
28
31
|
import { DocumentStatusEnum } from '../../enums/documentStatus.enum';
|
|
29
32
|
import { DocumentStatusEnum as DocumentStatusEnum_2 } from '../../../enums/documentStatus.enum';
|
|
30
33
|
import { DOM_ELEMENT_ROLE } from './../../enums/domElementRole.enum';
|
|
@@ -47,7 +50,6 @@ import { InputRef } from 'antd';
|
|
|
47
50
|
import { InputRef as InputRef_2 } from 'antd/lib/input';
|
|
48
51
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
49
52
|
import { InputTypes as InputTypes_2 } from '../../../enums/inputType.enum';
|
|
50
|
-
import { JobStatus } from '../../../enums/jobStatus.enum';
|
|
51
53
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
52
54
|
import { JobTypeEnum as JobTypeEnum_2 } from '../../../enums/jobType.enum';
|
|
53
55
|
import { JSX as JSX_2 } from 'react';
|
|
@@ -57,12 +59,14 @@ import { LabelType as LabelType_2 } from '../../../enums/labelType.enum';
|
|
|
57
59
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
58
60
|
import { MenuProps } from 'antd/lib';
|
|
59
61
|
import { Meta } from '../../models/Meta/meta.model';
|
|
62
|
+
import { Meta as Meta_2 } from '../../../models/Meta/meta.model';
|
|
60
63
|
import { MobileInputValue } from '../types/mobileInputValue.type';
|
|
61
64
|
import { MobileInputValue as MobileInputValue_2 } from '../../../types/mobileInputValue.type';
|
|
62
65
|
import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
|
|
63
66
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
64
67
|
import { NotificationTypes } from '../../enums/notificationTypes';
|
|
65
68
|
import { PaginationMeta } from '../../models/PaginationMeta/paginationMeta.model';
|
|
69
|
+
import { PaginationMeta as PaginationMeta_2 } from '../../../models/PaginationMeta/paginationMeta.model';
|
|
66
70
|
import { PasswordProps } from 'antd/es/input';
|
|
67
71
|
import { Placement } from '../../enums/placement';
|
|
68
72
|
import { default as Popover } from 'antd/lib/popover';
|
|
@@ -70,6 +74,7 @@ import { PopoverProps } from 'antd';
|
|
|
70
74
|
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
71
75
|
import { PropsWithChildren } from 'react';
|
|
72
76
|
import { QueryParams } from '../../models/QueryParams/queryParams.model';
|
|
77
|
+
import { QueryParams as QueryParams_2 } from '../../../models/QueryParams/queryParams.model';
|
|
73
78
|
import { RadioChangeEvent } from 'antd';
|
|
74
79
|
import { RadioGroupProps } from 'antd';
|
|
75
80
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
@@ -87,15 +92,17 @@ import { Size } from '../../enums/size.enum';
|
|
|
87
92
|
import { Size as Size_2 } from '../../../enums/size.enum';
|
|
88
93
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
89
94
|
import { SizeType as SizeType_2 } from 'antd/es/config-provider/SizeContext';
|
|
95
|
+
import { SkeletonProps } from 'antd';
|
|
90
96
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
91
97
|
import { SortOrder } from 'antd/lib/table/interface';
|
|
92
98
|
import { SortOrderKeys } from './../../enums/sortOrderKeys.enum';
|
|
93
99
|
import { default as Space } from 'antd/lib/space';
|
|
94
100
|
import { StatusTypes } from '../../enums/statusTypes.enum';
|
|
95
101
|
import { StatusTypes as StatusTypes_2 } from '../../../enums/statusTypes.enum';
|
|
102
|
+
import { StepProps } from 'antd';
|
|
103
|
+
import { StepsProps } from 'antd';
|
|
96
104
|
import { default as Switch } from 'antd/lib/switch';
|
|
97
105
|
import { SwitchProps } from 'antd/lib/switch';
|
|
98
|
-
import { SwitchProps as SwitchProps_2 } from 'antd';
|
|
99
106
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
100
107
|
import { TablePaginationConfig } from 'antd/lib/table/interface';
|
|
101
108
|
import { TablePaginationConfig as TablePaginationConfig_2 } from 'antd';
|
|
@@ -104,9 +111,7 @@ import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
|
104
111
|
import { TableType } from '../../enums/tableType.enum';
|
|
105
112
|
import { TableType as TableType_2 } from '../../../enums/tableType.enum';
|
|
106
113
|
import { TabsProps as TabsProps_2 } from 'antd';
|
|
107
|
-
import { TabsType } from 'antd/es/tabs';
|
|
108
114
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
|
109
|
-
import { TimePickerProps } from 'antd';
|
|
110
115
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
111
116
|
import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
|
|
112
117
|
import { TooltipProps } from 'antd/es/tooltip';
|
|
@@ -114,32 +119,19 @@ import { Typography } from 'antd';
|
|
|
114
119
|
import { TypographyProps } from 'antd';
|
|
115
120
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
116
121
|
import { UploadFile as UploadFile_2 } from 'antd';
|
|
117
|
-
import { UploadInputTypes } from '../../../../enums/uploadInputTypes.enum';
|
|
118
122
|
import { UploadProps } from 'antd';
|
|
119
123
|
import { UploadProps as UploadProps_2 } from 'antd/lib';
|
|
120
124
|
import { default as useForm } from '../hooks/useForm';
|
|
121
125
|
import { UseFormProps } from 'react-hook-form';
|
|
122
126
|
import { useFormProps } from '../hooks/useForm';
|
|
123
127
|
import { UseFormReturn } from 'react-hook-form';
|
|
128
|
+
import { UseInfiniteQueryOptions } from '@tanstack/react-query';
|
|
124
129
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
125
130
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
126
131
|
import * as Yup from 'yup';
|
|
127
132
|
|
|
128
133
|
export { ActionType }
|
|
129
134
|
|
|
130
|
-
export declare const AgencyJobCard: FC<AgencyJobCardProps>;
|
|
131
|
-
|
|
132
|
-
declare interface AgencyJobCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
133
|
-
assignedNames?: string[];
|
|
134
|
-
badges: BadgeProps[];
|
|
135
|
-
bodyList: ListItemProps[];
|
|
136
|
-
createdBy: Omit<CustomAvatarProps, "size">;
|
|
137
|
-
headerExtra?: default_2.ReactNode;
|
|
138
|
-
status: JobStatus;
|
|
139
|
-
title: string;
|
|
140
|
-
footerExtra?: default_2.ReactNode;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
135
|
export { Align }
|
|
144
136
|
|
|
145
137
|
export declare interface AssignedEmployerProps {
|
|
@@ -152,8 +144,6 @@ export declare interface AssignedEmployerProps {
|
|
|
152
144
|
|
|
153
145
|
export { AuthBanner }
|
|
154
146
|
|
|
155
|
-
export { AuthBannerTextType }
|
|
156
|
-
|
|
157
147
|
export { AuthForm }
|
|
158
148
|
|
|
159
149
|
export { AuthFormProps }
|
|
@@ -164,8 +154,6 @@ export declare interface AvatarCardProps {
|
|
|
164
154
|
email: string;
|
|
165
155
|
textMaxWidth?: number;
|
|
166
156
|
className?: string;
|
|
167
|
-
copyEmail?: boolean;
|
|
168
|
-
userId?: string;
|
|
169
157
|
}
|
|
170
158
|
|
|
171
159
|
export declare interface AvatarProps {
|
|
@@ -188,12 +176,6 @@ export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
188
176
|
|
|
189
177
|
export { BadgeType }
|
|
190
178
|
|
|
191
|
-
export declare const Bookmark: (props: BookmarkProps) => default_2.JSX.Element;
|
|
192
|
-
|
|
193
|
-
export declare interface BookmarkProps {
|
|
194
|
-
onClick: () => boolean;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
179
|
export declare const Button: FC<ButtonProps>;
|
|
198
180
|
|
|
199
181
|
export declare interface ButtonProps {
|
|
@@ -226,14 +208,6 @@ export declare interface CardWithIconAndTextProps {
|
|
|
226
208
|
|
|
227
209
|
export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, label, isBlock, checked, maxRows }: CheckboxProps) => default_2.JSX.Element;
|
|
228
210
|
|
|
229
|
-
export declare const CheckboxGroup: ({ label, name, isBlock, className, options, maxRows, ...props }: CheckboxGroupProps) => default_2.JSX.Element;
|
|
230
|
-
|
|
231
|
-
declare interface CheckboxGroupProps extends CheckboxGroupProps_2 {
|
|
232
|
-
label?: string;
|
|
233
|
-
isBlock?: boolean;
|
|
234
|
-
maxRows?: number;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
211
|
export declare interface CheckboxProps {
|
|
238
212
|
children?: string | number;
|
|
239
213
|
disabled?: boolean;
|
|
@@ -248,25 +222,17 @@ export declare interface CheckboxProps {
|
|
|
248
222
|
maxRows?: number;
|
|
249
223
|
}
|
|
250
224
|
|
|
251
|
-
export declare const
|
|
252
|
-
|
|
253
|
-
export declare interface CheckboxSelectFieldProps extends SelectPropsBase {
|
|
254
|
-
selectedOptions?: (string | number)[];
|
|
255
|
-
handleCheckboxChange?: (value: string) => void;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, singleSelectionMode, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
|
|
225
|
+
export declare const CheckBoxWithFormWrapper: ({ name, onCheckboxChange, group, children, ...props }: CheckBoxWithFormWrapperProps) => default_2.JSX.Element;
|
|
259
226
|
|
|
260
227
|
declare interface CheckBoxWithFormWrapperProps {
|
|
261
228
|
children?: default_2.ReactNode;
|
|
262
229
|
disabled?: boolean;
|
|
263
230
|
indeterminate?: boolean;
|
|
264
231
|
group?: boolean;
|
|
265
|
-
onCheckboxChange?: (event:
|
|
232
|
+
onCheckboxChange?: (event: CheckboxChangeEvent | CheckboxGroupProps[] | boolean) => void;
|
|
266
233
|
options?: (CheckboxOptionType | string | number)[];
|
|
267
234
|
name: string;
|
|
268
235
|
className?: string;
|
|
269
|
-
singleSelectionMode?: boolean;
|
|
270
236
|
}
|
|
271
237
|
|
|
272
238
|
export { Col }
|
|
@@ -321,7 +287,6 @@ export declare interface CustomInputProps {
|
|
|
321
287
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
322
288
|
control?: Control<FieldValues>;
|
|
323
289
|
rules?: RegisterOptions;
|
|
324
|
-
customInput?: boolean;
|
|
325
290
|
}
|
|
326
291
|
|
|
327
292
|
export declare interface CustomTooltipProps extends Omit<TooltipProps, 'title'> {
|
|
@@ -345,20 +310,16 @@ declare interface CustomUploadProps extends Omit<UploadProps, "onChange"> {
|
|
|
345
310
|
required?: boolean;
|
|
346
311
|
loading?: boolean;
|
|
347
312
|
fileNamePrefix?: string;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
export declare const DashboardCard: (props: DashboardCardProps) => default_2.JSX.Element;
|
|
352
|
-
|
|
353
|
-
export declare interface DashboardCardProps {
|
|
354
|
-
data: Stats[];
|
|
313
|
+
showFileNameFormat?: boolean;
|
|
314
|
+
docNamingConvention?: string;
|
|
315
|
+
documentTypes?: string;
|
|
355
316
|
}
|
|
356
317
|
|
|
357
318
|
export declare const DatePicker: default_2.FC<DatePickerComponentProps>;
|
|
358
319
|
|
|
359
320
|
export { DatePickerAntd }
|
|
360
321
|
|
|
361
|
-
declare type DatePickerComponentProps = CustomInputProps & Omit<DatePickerProps,
|
|
322
|
+
declare type DatePickerComponentProps = CustomInputProps & Omit<DatePickerProps, 'name' | 'value'> & {
|
|
362
323
|
value?: string;
|
|
363
324
|
format?: string;
|
|
364
325
|
};
|
|
@@ -403,14 +364,21 @@ export declare interface DrawerProps extends DrawerProps_2 {
|
|
|
403
364
|
subHeading?: string;
|
|
404
365
|
}
|
|
405
366
|
|
|
367
|
+
declare const Dropdown: <ValueType, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>({ title, ...props }: DropdownProps<ValueType, OptionType>) => default_2.JSX.Element;
|
|
368
|
+
|
|
369
|
+
export declare const DropdownField: (props: FormDropdown) => default_2.JSX.Element;
|
|
370
|
+
|
|
371
|
+
export declare interface DropdownProps<ValueType, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends SelectProps<ValueType, OptionType> {
|
|
372
|
+
name: string;
|
|
373
|
+
title?: string;
|
|
374
|
+
}
|
|
375
|
+
|
|
406
376
|
export declare const EllipsisWithTooltip: default_2.FC<EllipsisWithTooltipProps>;
|
|
407
377
|
|
|
408
378
|
export declare interface EllipsisWithTooltipProps {
|
|
409
379
|
text: string;
|
|
410
380
|
maxWidth?: number;
|
|
411
381
|
textClassName?: string;
|
|
412
|
-
copyText?: boolean;
|
|
413
|
-
userId?: string;
|
|
414
382
|
}
|
|
415
383
|
|
|
416
384
|
declare type EmployerDataType = {
|
|
@@ -423,7 +391,6 @@ export { Error_2 as Error }
|
|
|
423
391
|
|
|
424
392
|
declare interface ErrorProps {
|
|
425
393
|
fieldName: string;
|
|
426
|
-
customInput?: boolean;
|
|
427
394
|
}
|
|
428
395
|
|
|
429
396
|
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
|
|
@@ -457,13 +424,18 @@ export declare interface FloatingLabelProps {
|
|
|
457
424
|
required?: boolean;
|
|
458
425
|
placeholder?: string;
|
|
459
426
|
type?: LabelType_2;
|
|
460
|
-
customInput?: boolean;
|
|
461
427
|
}
|
|
462
428
|
|
|
463
429
|
export { FooterDetailsProps }
|
|
464
430
|
|
|
465
431
|
export declare function Form<T extends FieldValues>({ onSubmit, children, methods, ...rest }: FormProps<T>): default_2.JSX.Element;
|
|
466
432
|
|
|
433
|
+
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
434
|
+
name: string;
|
|
435
|
+
type?: string;
|
|
436
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
437
|
+
}
|
|
438
|
+
|
|
467
439
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
468
440
|
children: ReactNode | ((methods: UseFormReturn<T>) => ReactNode | default_2.JSX.Element);
|
|
469
441
|
onSubmit: (data: T, methods: UseFormReturn<T>) => void;
|
|
@@ -496,35 +468,6 @@ declare interface InputWithCountryFlagProps extends Omit<CustomInputProps, "cust
|
|
|
496
468
|
onChange?: (value: MobileInputValue_2) => void;
|
|
497
469
|
}
|
|
498
470
|
|
|
499
|
-
export declare const JobCard: FC<JobCardProps>;
|
|
500
|
-
|
|
501
|
-
declare interface JobCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
502
|
-
assignedNames?: string[];
|
|
503
|
-
badges?: BadgeProps[];
|
|
504
|
-
bodyList: ListItemProps[];
|
|
505
|
-
createdBy?: Omit<CustomAvatarProps, "size">;
|
|
506
|
-
headerExtra?: default_2.ReactNode;
|
|
507
|
-
footerExtra?: default_2.ReactNode;
|
|
508
|
-
isOngoing?: boolean;
|
|
509
|
-
isCheckedIn?: boolean;
|
|
510
|
-
checkedInDetails?: {
|
|
511
|
-
statusDescription?: string;
|
|
512
|
-
checkInTime: string;
|
|
513
|
-
location: string;
|
|
514
|
-
};
|
|
515
|
-
status?: JobStatus;
|
|
516
|
-
jobTrackId?: string;
|
|
517
|
-
title: string;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export declare const JobTrackingCard: (props: JobTrackingCardProps) => default_2.JSX.Element;
|
|
521
|
-
|
|
522
|
-
export declare interface JobTrackingCardProps {
|
|
523
|
-
title: string;
|
|
524
|
-
identifier: string | number;
|
|
525
|
-
date: string;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
471
|
export { JobTypeEnum }
|
|
529
472
|
|
|
530
473
|
export { Justify }
|
|
@@ -537,19 +480,17 @@ export declare interface ListingTableHeaderProps {
|
|
|
537
480
|
onSearch?: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
538
481
|
onFilter?: () => void;
|
|
539
482
|
onClear?: () => void;
|
|
540
|
-
onSettings?: () => void;
|
|
541
483
|
searchPlaceholder?: string;
|
|
542
484
|
searchValue?: string;
|
|
543
485
|
actionButtons?: ReactNode;
|
|
544
486
|
className?: string;
|
|
545
487
|
}
|
|
546
488
|
|
|
547
|
-
export declare const ListItem: ({ text, iconName, className,
|
|
489
|
+
export declare const ListItem: ({ text, iconName, className, ...props }: ListItemProps) => default_2.JSX.Element;
|
|
548
490
|
|
|
549
491
|
declare interface ListItemProps extends HTMLAttributes<HTMLSpanElement> {
|
|
550
|
-
text
|
|
492
|
+
text: string;
|
|
551
493
|
iconName: Icons_2;
|
|
552
|
-
name?: string;
|
|
553
494
|
}
|
|
554
495
|
|
|
555
496
|
export declare const Loader: default_2.FC<LoaderProps>;
|
|
@@ -575,16 +516,14 @@ export declare interface ModalProps extends ModalProps_2 {
|
|
|
575
516
|
title?: string;
|
|
576
517
|
confirmLoading?: boolean;
|
|
577
518
|
modalTitleIcon?: string;
|
|
578
|
-
modalType
|
|
579
|
-
className?: string;
|
|
519
|
+
modalType: ModalTypeEnum;
|
|
580
520
|
}
|
|
581
521
|
|
|
582
522
|
export declare enum ModalTypeEnum {
|
|
583
523
|
SUCCESS = "success",
|
|
584
524
|
DANGER = "danger",
|
|
585
525
|
BASIC = "basic",
|
|
586
|
-
WARNING = "warning"
|
|
587
|
-
DEFAULT = "default"
|
|
526
|
+
WARNING = "warning"
|
|
588
527
|
}
|
|
589
528
|
|
|
590
529
|
export declare const NoData: ({ headingText, subHeading, noDataIcon, buttonOnClick, buttonText, }: NoDataProps) => default_2.JSX.Element;
|
|
@@ -619,17 +558,15 @@ declare interface OfflineProps {
|
|
|
619
558
|
|
|
620
559
|
declare type OutlineType = "primary" | "danger" | "success";
|
|
621
560
|
|
|
622
|
-
export declare const
|
|
561
|
+
export declare const PaginatedDropdown: <T extends Meta_2>({ enabled, onPageUpdate, queryKey, params, onSearch, ...props }: PaginatedDropdownProps<T>) => default_2.JSX.Element;
|
|
623
562
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
total: number;
|
|
628
|
-
pageSize?: number;
|
|
629
|
-
currentPage: number;
|
|
630
|
-
onPageChange: (page: number) => void;
|
|
563
|
+
declare interface PaginatedDropdownProps<T> extends Omit<ComponentProps<typeof Select>, "options">, Pick<UseInfiniteQueryOptions<Response_2<T>>, "queryKey" | "enabled"> {
|
|
564
|
+
onPageUpdate: (params: QueryParams_2) => Promise<Response_2<T>>;
|
|
565
|
+
params?: QueryParams_2;
|
|
631
566
|
}
|
|
632
567
|
|
|
568
|
+
export { PaginationMeta }
|
|
569
|
+
|
|
633
570
|
declare const PasswordField: default_2.ForwardRefExoticComponent<CustomInputProps & PasswordProps & default_2.RefAttributes<InputRef_2>>;
|
|
634
571
|
export { PasswordField as Password }
|
|
635
572
|
export { PasswordField }
|
|
@@ -652,16 +589,6 @@ export { Placement }
|
|
|
652
589
|
|
|
653
590
|
export { Popover }
|
|
654
591
|
|
|
655
|
-
export declare const PopoverIconCard: (props: PopoverIconCardProps) => default_2.JSX.Element;
|
|
656
|
-
|
|
657
|
-
export declare interface PopoverIconCardProps {
|
|
658
|
-
title: string;
|
|
659
|
-
text: string;
|
|
660
|
-
editIconClick?: () => void;
|
|
661
|
-
deleteIconClick?: () => void;
|
|
662
|
-
icon?: Icons_2;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
592
|
export { PopoverProps }
|
|
666
593
|
|
|
667
594
|
export declare const PreviewCard: default_2.FC<PreviewCardProps>;
|
|
@@ -671,10 +598,7 @@ declare interface PreviewCardProps {
|
|
|
671
598
|
url?: string;
|
|
672
599
|
showPreviewIcon?: boolean;
|
|
673
600
|
className?: string;
|
|
674
|
-
|
|
675
|
-
isCandidateDocCard?: boolean;
|
|
676
|
-
onDelete?: () => void;
|
|
677
|
-
expiryDate?: string;
|
|
601
|
+
showDownloadIcon?: boolean;
|
|
678
602
|
}
|
|
679
603
|
|
|
680
604
|
export declare const PreviewDocumentsCard: default_2.FC<PreviewDocumentsCardProps>;
|
|
@@ -704,24 +628,19 @@ export declare const ProfileDetail: (props: ProfileDetailProps) => default_2.JSX
|
|
|
704
628
|
export { ProfileDetailFooterTypes }
|
|
705
629
|
|
|
706
630
|
export declare interface ProfileDetailProps {
|
|
707
|
-
name
|
|
708
|
-
phoneNumber
|
|
709
|
-
email
|
|
710
|
-
address
|
|
711
|
-
gender
|
|
631
|
+
name: string;
|
|
632
|
+
phoneNumber: string;
|
|
633
|
+
email: string;
|
|
634
|
+
address: string;
|
|
635
|
+
gender: GenderProfileEnum_2;
|
|
712
636
|
jobType?: JobTypeEnum_2;
|
|
713
637
|
jobTitle?: string[];
|
|
714
638
|
skills?: string[];
|
|
715
639
|
yearsOfExperience?: number | string;
|
|
716
|
-
userId
|
|
640
|
+
userId: string;
|
|
717
641
|
imageUrl?: string;
|
|
718
|
-
verified
|
|
642
|
+
verified: boolean;
|
|
719
643
|
sinNumber?: number;
|
|
720
|
-
footerDetails?: boolean;
|
|
721
|
-
agencyName?: string;
|
|
722
|
-
verificationType?: string;
|
|
723
|
-
verificationDocument?: string;
|
|
724
|
-
verificationExpiryDate?: string;
|
|
725
644
|
}
|
|
726
645
|
|
|
727
646
|
export { QueryParams }
|
|
@@ -735,17 +654,9 @@ declare interface RadioProps extends RadioProps_2, Pick<RadioGroupProps, 'option
|
|
|
735
654
|
customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
736
655
|
}
|
|
737
656
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
roles: RoleManagementRole[];
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
export declare interface RoleManagementRole {
|
|
745
|
-
roleName: string;
|
|
746
|
-
id: number;
|
|
747
|
-
content: default_2.ReactNode;
|
|
748
|
-
roleDescription: string;
|
|
657
|
+
declare interface Response_2<T> {
|
|
658
|
+
data: T[];
|
|
659
|
+
meta: PaginationMeta_2;
|
|
749
660
|
}
|
|
750
661
|
|
|
751
662
|
export { Row }
|
|
@@ -761,7 +672,7 @@ export declare interface SearchComponentProps {
|
|
|
761
672
|
|
|
762
673
|
export declare const SearchField: FC<SearchComponentProps>;
|
|
763
674
|
|
|
764
|
-
export declare const Select: ({ name, label, required, customOnChange, options, size, type,
|
|
675
|
+
export declare const Select: ({ name, label, required, customOnChange, options, size, type, className, ...props }: SelectPropsBase) => default_2.JSX.Element;
|
|
765
676
|
|
|
766
677
|
declare interface SelectPropsBase extends SelectProps {
|
|
767
678
|
name: string;
|
|
@@ -769,7 +680,6 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
769
680
|
required?: boolean;
|
|
770
681
|
size?: SizeType_2;
|
|
771
682
|
type?: SelectType_2;
|
|
772
|
-
customInput?: boolean;
|
|
773
683
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
774
684
|
}
|
|
775
685
|
|
|
@@ -789,6 +699,8 @@ export declare interface SidebarProps {
|
|
|
789
699
|
|
|
790
700
|
export { Size }
|
|
791
701
|
|
|
702
|
+
export declare const Skeleton: FC<SkeletonProps>;
|
|
703
|
+
|
|
792
704
|
export { SorterResult }
|
|
793
705
|
|
|
794
706
|
export { SortOrder }
|
|
@@ -810,21 +722,22 @@ export declare interface StatsBannerProps {
|
|
|
810
722
|
|
|
811
723
|
export { StatusTypes }
|
|
812
724
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
declare interface SummaryCardProps extends PropsWithChildren {
|
|
816
|
-
className?: string;
|
|
725
|
+
declare interface StepItem extends StepProps {
|
|
726
|
+
component?: default_2.ReactElement;
|
|
817
727
|
}
|
|
818
728
|
|
|
819
|
-
export
|
|
820
|
-
|
|
821
|
-
export declare const SwitchComponent: default_2.FC<SwitchComponentProps>;
|
|
729
|
+
export declare const Stepper: FC<StepperProps>;
|
|
822
730
|
|
|
823
|
-
export declare interface
|
|
824
|
-
|
|
825
|
-
|
|
731
|
+
export declare interface StepperProps extends StepsProps {
|
|
732
|
+
items: StepItem[];
|
|
733
|
+
title?: string;
|
|
734
|
+
destroyOnChange?: boolean;
|
|
826
735
|
}
|
|
827
736
|
|
|
737
|
+
export declare const SummaryCard: (props: PropsWithChildren) => default_2.JSX.Element;
|
|
738
|
+
|
|
739
|
+
export { Switch }
|
|
740
|
+
|
|
828
741
|
export { SwitchProps }
|
|
829
742
|
|
|
830
743
|
declare interface TabItems {
|
|
@@ -876,12 +789,8 @@ declare interface TabsProps extends TabsProps_2 {
|
|
|
876
789
|
tabBarGutter?: number;
|
|
877
790
|
tabBarStyle?: CSSProperties;
|
|
878
791
|
tabPosition?: "top" | "bottom" | "right" | "left";
|
|
879
|
-
type?:
|
|
792
|
+
type?: "line" | "card" | "editable-card";
|
|
880
793
|
onEdit?: () => void;
|
|
881
|
-
isRemovable?: boolean;
|
|
882
|
-
onRemove?: (key: string) => void;
|
|
883
|
-
onDoubleClickHandler?: (key: string) => void;
|
|
884
|
-
isSticky?: boolean;
|
|
885
794
|
}
|
|
886
795
|
|
|
887
796
|
export declare const TextArea: ({ className, label, value, required, ...props }: TextAreaProps) => default_2.JSX.Element;
|
|
@@ -892,23 +801,10 @@ export declare interface TextAreaProps extends Omit<TextAreaProps_2, "value"> {
|
|
|
892
801
|
required?: boolean;
|
|
893
802
|
}
|
|
894
803
|
|
|
895
|
-
export declare const TextAreaWithController: ({ label, type, placeholder, required,
|
|
804
|
+
export declare const TextAreaWithController: ({ label, type, placeholder, required, ...rest }: TextAreaWithControllerProps) => default_2.JSX.Element;
|
|
896
805
|
|
|
897
806
|
export declare type TextAreaWithControllerProps = CustomInputProps & TextAreaProps_2;
|
|
898
807
|
|
|
899
|
-
declare type TimePickerComponentProps = CustomInputProps & Omit<TimePickerProps, "ref"> & {
|
|
900
|
-
format?: string;
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
export declare const Timer: (props: TimerProps) => default_2.JSX.Element;
|
|
904
|
-
|
|
905
|
-
export declare const TImerPicker: default_2.FC<TimePickerComponentProps>;
|
|
906
|
-
|
|
907
|
-
export declare interface TimerProps {
|
|
908
|
-
hours: number;
|
|
909
|
-
minutes: number;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
808
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
913
809
|
|
|
914
810
|
export declare interface TitleHeaderProps {
|
|
@@ -930,13 +826,12 @@ export { Typography }
|
|
|
930
826
|
|
|
931
827
|
export { TypographyProps }
|
|
932
828
|
|
|
933
|
-
export declare const Upload: ({ name, onChange, showUploadList,
|
|
829
|
+
export declare const Upload: ({ name, onChange, showUploadList, ...rest }: UploadBaseProps) => default_2.JSX.Element;
|
|
934
830
|
|
|
935
831
|
export declare interface UploadBaseProps extends CustomUploadProps {
|
|
936
832
|
name: string;
|
|
937
833
|
required?: boolean;
|
|
938
834
|
showUploadList?: boolean;
|
|
939
|
-
uploadInputType?: UploadInputTypes;
|
|
940
835
|
}
|
|
941
836
|
|
|
942
837
|
export declare interface UploadBasePropsForDropdown extends CustomDropDownFileUploadProps {
|