vrfi-design-system 1.0.22 → 1.0.23
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 +41 -58
- package/dist/main.es.js +9798 -9761
- package/dist/main.umd.js +101 -101
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Align } from '../../enums/align.enum';
|
|
|
2
2
|
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
3
3
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
4
4
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
5
|
+
import { AvatarSize } from '../../../enums/avatarSize.enum';
|
|
5
6
|
import { BaseOptionType } from 'rc-select/lib/Select';
|
|
6
7
|
import { default as Button } from 'antd/lib/button';
|
|
7
8
|
import { ButtonType } from '../../enums/buttonType';
|
|
@@ -11,6 +12,7 @@ import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
|
11
12
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
12
13
|
import { default as Col } from 'antd/lib/col';
|
|
13
14
|
import { ColProps } from 'antd/lib/col';
|
|
15
|
+
import { ColumnsType } from 'antd/es/table/InternalTable';
|
|
14
16
|
import { ColumnType } from 'antd/lib/table';
|
|
15
17
|
import { ComponentProps } from 'react';
|
|
16
18
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
@@ -28,12 +30,15 @@ import { FilterValue } from 'antd/lib/table/interface';
|
|
|
28
30
|
import { FooterDetailsProps } from '../types/footerDetails';
|
|
29
31
|
import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
|
|
30
32
|
import { GenderProfileEnum } from '../../enums/genderProfile.enum';
|
|
33
|
+
import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
|
|
31
34
|
import { HtmlButtonType } from '../../enums/buttonType';
|
|
32
35
|
import { Icons } from '../../enums/icons.enum';
|
|
33
36
|
import { InputProps } from 'antd/lib';
|
|
34
37
|
import { InputProps as InputProps_2 } from 'antd';
|
|
35
38
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
39
|
+
import { InputTypes as InputTypes_2 } from '../../../enums/inputType.enum';
|
|
36
40
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
41
|
+
import { JobTypeEnum as JobTypeEnum_2 } from '../../../enums/jobType.enum';
|
|
37
42
|
import { JSX as JSX_2 } from 'react';
|
|
38
43
|
import { Justify } from '../../enums/justify.enum';
|
|
39
44
|
import { LoaderSizes } from '../../../enums/LoaderSizes';
|
|
@@ -57,18 +62,22 @@ import { Size } from '../../enums/size.enum';
|
|
|
57
62
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
58
63
|
import { SkeletonProps } from 'antd';
|
|
59
64
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
65
|
+
import { SortOrder } from 'antd/lib/table/interface';
|
|
60
66
|
import { default as Space } from 'antd/lib/space';
|
|
61
67
|
import { StepProps } from 'antd';
|
|
62
68
|
import { StepsProps } from 'antd';
|
|
63
69
|
import { default as Switch } from 'antd/lib/switch';
|
|
64
70
|
import { SwitchProps } from 'antd/lib/switch';
|
|
65
71
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
66
|
-
import { TablePaginationConfig } from 'antd';
|
|
72
|
+
import { TablePaginationConfig } from 'antd/lib/table/interface';
|
|
73
|
+
import { TablePaginationConfig as TablePaginationConfig_2 } from 'antd';
|
|
67
74
|
import { TableProps } from 'antd/lib/table';
|
|
68
75
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
69
76
|
import { TableProps as TableProps_3 } from 'antd';
|
|
70
77
|
import { TableType } from '../../enums/tableType.enum';
|
|
78
|
+
import { TableType as TableType_2 } from '../../../enums/tableType.enum';
|
|
71
79
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
80
|
+
import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
|
|
72
81
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
73
82
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
74
83
|
import { UseFormProps } from 'react-hook-form';
|
|
@@ -102,11 +111,6 @@ export declare interface AvatarProps {
|
|
|
102
111
|
names: string[];
|
|
103
112
|
}
|
|
104
113
|
|
|
105
|
-
declare const enum AvatarSize {
|
|
106
|
-
SMALL = 'small',
|
|
107
|
-
LARGE = 'large'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
114
|
export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2.JSX.Element;
|
|
111
115
|
|
|
112
116
|
export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
|
|
@@ -174,13 +178,19 @@ export declare interface CustomInputProps {
|
|
|
174
178
|
placeholder?: string;
|
|
175
179
|
type?: InputTypes_2;
|
|
176
180
|
prefix?: ReactNode;
|
|
177
|
-
|
|
181
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
181
185
|
|
|
182
186
|
export { DatePickerAntd }
|
|
183
187
|
|
|
188
|
+
export declare const Disclaimer: FC<DisclaimerProps>;
|
|
189
|
+
|
|
190
|
+
declare interface DisclaimerProps {
|
|
191
|
+
content?: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
184
194
|
export declare const DocumentCard: ({ name, onDownload }: DocumentCardProps) => default_2.JSX.Element;
|
|
185
195
|
|
|
186
196
|
declare interface DocumentCardProps {
|
|
@@ -233,21 +243,25 @@ declare interface ErrorProps {
|
|
|
233
243
|
fieldName: string;
|
|
234
244
|
}
|
|
235
245
|
|
|
236
|
-
export declare const FileUpload: ({
|
|
246
|
+
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
|
|
237
247
|
|
|
238
248
|
export declare interface FileUploadProps {
|
|
239
249
|
children?: default_2.ReactNode;
|
|
240
250
|
dragdrop?: boolean;
|
|
241
251
|
uploadIcon?: ReactNode;
|
|
242
252
|
uploadHint?: ReactNode;
|
|
253
|
+
uploadTitle?: string;
|
|
243
254
|
fileTypes?: string;
|
|
244
255
|
actionURL?: string;
|
|
245
256
|
multiple?: boolean;
|
|
246
257
|
maxCount?: number;
|
|
258
|
+
maxFileSize?: number;
|
|
247
259
|
supportedFileType?: string;
|
|
248
260
|
handleChange: (file: FileList | UploadFile) => void;
|
|
249
261
|
}
|
|
250
262
|
|
|
263
|
+
export { FilterValue }
|
|
264
|
+
|
|
251
265
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
252
266
|
|
|
253
267
|
export declare interface FloatingLabelProps {
|
|
@@ -262,10 +276,9 @@ export { FooterDetailsProps }
|
|
|
262
276
|
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
263
277
|
|
|
264
278
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
265
|
-
rules: any;
|
|
266
279
|
name: string;
|
|
267
|
-
type
|
|
268
|
-
|
|
280
|
+
type?: string;
|
|
281
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
269
282
|
}
|
|
270
283
|
|
|
271
284
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
@@ -275,14 +288,6 @@ declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
|
275
288
|
|
|
276
289
|
export { GenderProfileEnum }
|
|
277
290
|
|
|
278
|
-
declare enum GenderProfileEnum_2{
|
|
279
|
-
MALE='Male',
|
|
280
|
-
FEMALE='Female',
|
|
281
|
-
PREFER_NOT_TO_SAY='Prefer not to say',
|
|
282
|
-
OTHER='Other',
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
291
|
export { HtmlButtonType }
|
|
287
292
|
|
|
288
293
|
export { Icons }
|
|
@@ -297,25 +302,10 @@ export declare const InputField: ({ label, type, placeholder, prefix, ...rest }:
|
|
|
297
302
|
|
|
298
303
|
export { InputTypes }
|
|
299
304
|
|
|
300
|
-
declare enum InputTypes_2 {
|
|
301
|
-
TEXT='text',
|
|
302
|
-
NUMBER='number',
|
|
303
|
-
TEXTAREA='textarea',
|
|
304
|
-
PASSWORD='password',
|
|
305
|
-
EMAIL='email',
|
|
306
|
-
DATE='date'
|
|
307
|
-
}
|
|
308
|
-
|
|
309
305
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
310
306
|
|
|
311
307
|
export { JobTypeEnum }
|
|
312
308
|
|
|
313
|
-
declare enum JobTypeEnum_2{
|
|
314
|
-
PART_TIME='Part time',
|
|
315
|
-
FULL_TIME='Full time',
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
|
|
319
309
|
export { Justify }
|
|
320
310
|
|
|
321
311
|
export declare const ListingTableHeader: (props: ListingTableHeaderProps) => default_2.JSX.Element;
|
|
@@ -413,7 +403,7 @@ export declare interface ProfileDetailProps {
|
|
|
413
403
|
address: string;
|
|
414
404
|
gender: GenderProfileEnum_2;
|
|
415
405
|
jobType?: JobTypeEnum_2;
|
|
416
|
-
jobTitle?: string;
|
|
406
|
+
jobTitle?: string[];
|
|
417
407
|
skills?: string[];
|
|
418
408
|
yearsOfExperience?: number | string;
|
|
419
409
|
userId: string;
|
|
@@ -445,12 +435,8 @@ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
|
445
435
|
|
|
446
436
|
declare interface SelectPropsBase extends SelectProps {
|
|
447
437
|
name: string;
|
|
448
|
-
options: {
|
|
449
|
-
value: string;
|
|
450
|
-
label: string;
|
|
451
|
-
}[];
|
|
452
438
|
label: string;
|
|
453
|
-
|
|
439
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
454
440
|
}
|
|
455
441
|
|
|
456
442
|
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
@@ -469,6 +455,10 @@ export { Size }
|
|
|
469
455
|
|
|
470
456
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
471
457
|
|
|
458
|
+
export { SorterResult }
|
|
459
|
+
|
|
460
|
+
export { SortOrder }
|
|
461
|
+
|
|
472
462
|
export { Space }
|
|
473
463
|
|
|
474
464
|
declare interface Stats {
|
|
@@ -502,29 +492,27 @@ export { SwitchProps }
|
|
|
502
492
|
|
|
503
493
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
504
494
|
|
|
505
|
-
export declare const TableComponent:
|
|
495
|
+
export declare const TableComponent: <T extends object>({ dataSource, columns, pagination, loading, onRow, onChange, loadingCount, size, type, scroll, rowClassName, ...restProps }: TableComponentProps<T>) => default_2.JSX.Element;
|
|
506
496
|
|
|
507
|
-
export declare interface TableComponentProps extends TableProps<
|
|
508
|
-
dataSource
|
|
497
|
+
export declare interface TableComponentProps<T> extends TableProps<T> {
|
|
498
|
+
dataSource?: T[];
|
|
499
|
+
columns: ColumnsType<T>;
|
|
509
500
|
type?: TableType_2;
|
|
510
|
-
pagination?: false |
|
|
501
|
+
pagination?: false | TablePaginationConfig_2;
|
|
511
502
|
loading?: boolean;
|
|
512
|
-
onRow?:
|
|
513
|
-
rowClassName?: (record:
|
|
514
|
-
scroll?: TableProps_2<
|
|
503
|
+
onRow?: (record: T) => default_2.HTMLAttributes<HTMLElement>;
|
|
504
|
+
rowClassName?: (record: T) => string;
|
|
505
|
+
scroll?: TableProps_2<T>["scroll"] & {
|
|
515
506
|
scrollToFirstRowOnChange?: boolean;
|
|
516
507
|
};
|
|
517
|
-
onChange?: (pagination?:
|
|
508
|
+
onChange?: (pagination?: TablePaginationConfig_2, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<T> | SorterResult<T>[], extra?: TableCurrentDataSource<T>) => void;
|
|
518
509
|
loadingCount?: number;
|
|
519
510
|
size?: SizeType;
|
|
520
511
|
}
|
|
521
512
|
|
|
522
|
-
export {
|
|
513
|
+
export { TablePaginationConfig }
|
|
523
514
|
|
|
524
|
-
|
|
525
|
-
DEFAULT = "default",
|
|
526
|
-
NO_DESIGN = "noDesign",
|
|
527
|
-
}
|
|
515
|
+
export { TableType }
|
|
528
516
|
|
|
529
517
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
530
518
|
|
|
@@ -540,11 +528,6 @@ export declare interface TitleHeaderProps {
|
|
|
540
528
|
|
|
541
529
|
export { TitleHeaderStatus }
|
|
542
530
|
|
|
543
|
-
declare enum TitleHeaderStatus_2{
|
|
544
|
-
ACTIVE='active',
|
|
545
|
-
INACTIVE='inactive',
|
|
546
|
-
}
|
|
547
|
-
|
|
548
531
|
export declare const Tooltip: FC<TooltipProps>;
|
|
549
532
|
|
|
550
533
|
declare interface TooltipProps {
|