vrfi-design-system 1.0.22 → 1.0.24
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 -45
- package/dist/main.es.js +11012 -10975
- package/dist/main.umd.js +109 -109
- package/dist/style.css +1 -1
- package/package.json +2 -3
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';
|
|
@@ -33,6 +35,7 @@ import { Icons } from '../../enums/icons.enum';
|
|
|
33
35
|
import { InputProps } from 'antd/lib';
|
|
34
36
|
import { InputProps as InputProps_2 } from 'antd';
|
|
35
37
|
import { InputTypes } from '../../enums/inputType.enum';
|
|
38
|
+
import { InputTypes as InputTypes_2 } from '../../../enums/inputType.enum';
|
|
36
39
|
import { JobTypeEnum } from '../../enums/jobType.enum';
|
|
37
40
|
import { JSX as JSX_2 } from 'react';
|
|
38
41
|
import { Justify } from '../../enums/justify.enum';
|
|
@@ -57,18 +60,22 @@ import { Size } from '../../enums/size.enum';
|
|
|
57
60
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
58
61
|
import { SkeletonProps } from 'antd';
|
|
59
62
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
63
|
+
import { SortOrder } from 'antd/lib/table/interface';
|
|
60
64
|
import { default as Space } from 'antd/lib/space';
|
|
61
65
|
import { StepProps } from 'antd';
|
|
62
66
|
import { StepsProps } from 'antd';
|
|
63
67
|
import { default as Switch } from 'antd/lib/switch';
|
|
64
68
|
import { SwitchProps } from 'antd/lib/switch';
|
|
65
69
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
66
|
-
import { TablePaginationConfig } from 'antd';
|
|
70
|
+
import { TablePaginationConfig } from 'antd/lib/table/interface';
|
|
71
|
+
import { TablePaginationConfig as TablePaginationConfig_2 } from 'antd';
|
|
67
72
|
import { TableProps } from 'antd/lib/table';
|
|
68
73
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
69
74
|
import { TableProps as TableProps_3 } from 'antd';
|
|
70
75
|
import { TableType } from '../../enums/tableType.enum';
|
|
76
|
+
import { TableType as TableType_2 } from '../../../enums/tableType.enum';
|
|
71
77
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
78
|
+
import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
|
|
72
79
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
73
80
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
74
81
|
import { UseFormProps } from 'react-hook-form';
|
|
@@ -102,11 +109,6 @@ export declare interface AvatarProps {
|
|
|
102
109
|
names: string[];
|
|
103
110
|
}
|
|
104
111
|
|
|
105
|
-
declare const enum AvatarSize {
|
|
106
|
-
SMALL = 'small',
|
|
107
|
-
LARGE = 'large'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
112
|
export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2.JSX.Element;
|
|
111
113
|
|
|
112
114
|
export declare const AvatarWithInitials: ({ names }: AvatarProps) => default_2.JSX.Element;
|
|
@@ -174,13 +176,20 @@ export declare interface CustomInputProps {
|
|
|
174
176
|
placeholder?: string;
|
|
175
177
|
type?: InputTypes_2;
|
|
176
178
|
prefix?: ReactNode;
|
|
177
|
-
|
|
179
|
+
required?: boolean;
|
|
180
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
181
184
|
|
|
182
185
|
export { DatePickerAntd }
|
|
183
186
|
|
|
187
|
+
export declare const Disclaimer: FC<DisclaimerProps>;
|
|
188
|
+
|
|
189
|
+
declare interface DisclaimerProps {
|
|
190
|
+
content?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
184
193
|
export declare const DocumentCard: ({ name, onDownload }: DocumentCardProps) => default_2.JSX.Element;
|
|
185
194
|
|
|
186
195
|
declare interface DocumentCardProps {
|
|
@@ -233,21 +242,25 @@ declare interface ErrorProps {
|
|
|
233
242
|
fieldName: string;
|
|
234
243
|
}
|
|
235
244
|
|
|
236
|
-
export declare const FileUpload: ({
|
|
245
|
+
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange, maxFileSize, supportedFileType, uploadTitle }: FileUploadProps) => default_2.JSX.Element;
|
|
237
246
|
|
|
238
247
|
export declare interface FileUploadProps {
|
|
239
248
|
children?: default_2.ReactNode;
|
|
240
249
|
dragdrop?: boolean;
|
|
241
250
|
uploadIcon?: ReactNode;
|
|
242
251
|
uploadHint?: ReactNode;
|
|
252
|
+
uploadTitle?: string;
|
|
243
253
|
fileTypes?: string;
|
|
244
254
|
actionURL?: string;
|
|
245
255
|
multiple?: boolean;
|
|
246
256
|
maxCount?: number;
|
|
257
|
+
maxFileSize?: number;
|
|
247
258
|
supportedFileType?: string;
|
|
248
259
|
handleChange: (file: FileList | UploadFile) => void;
|
|
249
260
|
}
|
|
250
261
|
|
|
262
|
+
export { FilterValue }
|
|
263
|
+
|
|
251
264
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
252
265
|
|
|
253
266
|
export declare interface FloatingLabelProps {
|
|
@@ -262,10 +275,9 @@ export { FooterDetailsProps }
|
|
|
262
275
|
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
263
276
|
|
|
264
277
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
265
|
-
rules: any;
|
|
266
278
|
name: string;
|
|
267
|
-
type
|
|
268
|
-
|
|
279
|
+
type?: string;
|
|
280
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
@@ -293,19 +305,10 @@ export declare interface INotification {
|
|
|
293
305
|
type: string;
|
|
294
306
|
}
|
|
295
307
|
|
|
296
|
-
export declare const InputField: ({ label, type, placeholder, prefix, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
308
|
+
export declare const InputField: ({ label, type, placeholder, prefix, required, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
|
|
297
309
|
|
|
298
310
|
export { InputTypes }
|
|
299
311
|
|
|
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
312
|
export declare const InputWithCountry: ({ label, type, ...rest }: CustomInputProps & InputProps_2) => default_2.JSX.Element;
|
|
310
313
|
|
|
311
314
|
export { JobTypeEnum }
|
|
@@ -413,7 +416,7 @@ export declare interface ProfileDetailProps {
|
|
|
413
416
|
address: string;
|
|
414
417
|
gender: GenderProfileEnum_2;
|
|
415
418
|
jobType?: JobTypeEnum_2;
|
|
416
|
-
jobTitle?: string;
|
|
419
|
+
jobTitle?: string[];
|
|
417
420
|
skills?: string[];
|
|
418
421
|
yearsOfExperience?: number | string;
|
|
419
422
|
userId: string;
|
|
@@ -445,12 +448,8 @@ export declare const Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
|
445
448
|
|
|
446
449
|
declare interface SelectPropsBase extends SelectProps {
|
|
447
450
|
name: string;
|
|
448
|
-
options: {
|
|
449
|
-
value: string;
|
|
450
|
-
label: string;
|
|
451
|
-
}[];
|
|
452
451
|
label: string;
|
|
453
|
-
|
|
452
|
+
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
454
453
|
}
|
|
455
454
|
|
|
456
455
|
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
@@ -469,6 +468,10 @@ export { Size }
|
|
|
469
468
|
|
|
470
469
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
471
470
|
|
|
471
|
+
export { SorterResult }
|
|
472
|
+
|
|
473
|
+
export { SortOrder }
|
|
474
|
+
|
|
472
475
|
export { Space }
|
|
473
476
|
|
|
474
477
|
declare interface Stats {
|
|
@@ -502,29 +505,27 @@ export { SwitchProps }
|
|
|
502
505
|
|
|
503
506
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
504
507
|
|
|
505
|
-
export declare const TableComponent:
|
|
508
|
+
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
509
|
|
|
507
|
-
export declare interface TableComponentProps extends TableProps<
|
|
508
|
-
dataSource
|
|
510
|
+
export declare interface TableComponentProps<T> extends Omit<TableProps<T>, "onRow"> {
|
|
511
|
+
dataSource?: T[];
|
|
512
|
+
columns: ColumnsType<T>;
|
|
509
513
|
type?: TableType_2;
|
|
510
|
-
pagination?: false |
|
|
514
|
+
pagination?: false | TablePaginationConfig_2;
|
|
511
515
|
loading?: boolean;
|
|
512
|
-
onRow?:
|
|
513
|
-
rowClassName?: (record:
|
|
514
|
-
scroll?: TableProps_2<
|
|
516
|
+
onRow?: (record: T) => void;
|
|
517
|
+
rowClassName?: (record: T) => string;
|
|
518
|
+
scroll?: TableProps_2<T>["scroll"] & {
|
|
515
519
|
scrollToFirstRowOnChange?: boolean;
|
|
516
520
|
};
|
|
517
|
-
onChange?: (pagination?:
|
|
521
|
+
onChange?: (pagination?: TablePaginationConfig_2, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<T> | SorterResult<T>[], extra?: TableCurrentDataSource<T>) => void;
|
|
518
522
|
loadingCount?: number;
|
|
519
523
|
size?: SizeType;
|
|
520
524
|
}
|
|
521
525
|
|
|
522
|
-
export {
|
|
526
|
+
export { TablePaginationConfig }
|
|
523
527
|
|
|
524
|
-
|
|
525
|
-
DEFAULT = "default",
|
|
526
|
-
NO_DESIGN = "noDesign",
|
|
527
|
-
}
|
|
528
|
+
export { TableType }
|
|
528
529
|
|
|
529
530
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
530
531
|
|
|
@@ -540,11 +541,6 @@ export declare interface TitleHeaderProps {
|
|
|
540
541
|
|
|
541
542
|
export { TitleHeaderStatus }
|
|
542
543
|
|
|
543
|
-
declare enum TitleHeaderStatus_2{
|
|
544
|
-
ACTIVE='active',
|
|
545
|
-
INACTIVE='inactive',
|
|
546
|
-
}
|
|
547
|
-
|
|
548
544
|
export declare const Tooltip: FC<TooltipProps>;
|
|
549
545
|
|
|
550
546
|
declare interface TooltipProps {
|