vrfi-design-system 1.0.21 → 1.0.22
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 +21 -30
- package/dist/main.es.js +10349 -10377
- package/dist/main.umd.js +108 -108
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
|
11
11
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
12
12
|
import { default as Col } from 'antd/lib/col';
|
|
13
13
|
import { ColProps } from 'antd/lib/col';
|
|
14
|
-
import { ColumnsType } from 'antd/es/table/InternalTable';
|
|
15
14
|
import { ColumnType } from 'antd/lib/table';
|
|
16
15
|
import { ComponentProps } from 'react';
|
|
17
16
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
@@ -58,20 +57,17 @@ import { Size } from '../../enums/size.enum';
|
|
|
58
57
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
59
58
|
import { SkeletonProps } from 'antd';
|
|
60
59
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
61
|
-
import { SortOrder } from 'antd/lib/table/interface';
|
|
62
60
|
import { default as Space } from 'antd/lib/space';
|
|
63
61
|
import { StepProps } from 'antd';
|
|
64
62
|
import { StepsProps } from 'antd';
|
|
65
63
|
import { default as Switch } from 'antd/lib/switch';
|
|
66
64
|
import { SwitchProps } from 'antd/lib/switch';
|
|
67
65
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
68
|
-
import { TablePaginationConfig } from 'antd
|
|
69
|
-
import { TablePaginationConfig as TablePaginationConfig_2 } from 'antd';
|
|
66
|
+
import { TablePaginationConfig } from 'antd';
|
|
70
67
|
import { TableProps } from 'antd/lib/table';
|
|
71
68
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
72
69
|
import { TableProps as TableProps_3 } from 'antd';
|
|
73
70
|
import { TableType } from '../../enums/tableType.enum';
|
|
74
|
-
import { TableType as TableType_2 } from '../../../enums/tableType.enum';
|
|
75
71
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
76
72
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
77
73
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
@@ -178,7 +174,7 @@ export declare interface CustomInputProps {
|
|
|
178
174
|
placeholder?: string;
|
|
179
175
|
type?: InputTypes_2;
|
|
180
176
|
prefix?: ReactNode;
|
|
181
|
-
|
|
177
|
+
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
180
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
@@ -237,25 +233,21 @@ declare interface ErrorProps {
|
|
|
237
233
|
fieldName: string;
|
|
238
234
|
}
|
|
239
235
|
|
|
240
|
-
export declare const FileUpload: ({ actionURL, uploadIcon, fileTypes, multiple, maxCount, handleChange,
|
|
236
|
+
export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
|
|
241
237
|
|
|
242
238
|
export declare interface FileUploadProps {
|
|
243
239
|
children?: default_2.ReactNode;
|
|
244
240
|
dragdrop?: boolean;
|
|
245
241
|
uploadIcon?: ReactNode;
|
|
246
242
|
uploadHint?: ReactNode;
|
|
247
|
-
uploadTitle?: string;
|
|
248
243
|
fileTypes?: string;
|
|
249
244
|
actionURL?: string;
|
|
250
245
|
multiple?: boolean;
|
|
251
246
|
maxCount?: number;
|
|
252
|
-
maxFileSize?: number;
|
|
253
247
|
supportedFileType?: string;
|
|
254
248
|
handleChange: (file: FileList | UploadFile) => void;
|
|
255
249
|
}
|
|
256
250
|
|
|
257
|
-
export { FilterValue }
|
|
258
|
-
|
|
259
251
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
260
252
|
|
|
261
253
|
export declare interface FloatingLabelProps {
|
|
@@ -270,9 +262,10 @@ export { FooterDetailsProps }
|
|
|
270
262
|
export declare function Form<T extends FieldValues>({ onSubmit, validationSchema, children, ...rest }: PropsWithChildren<FormProps<T>>): default_2.JSX.Element;
|
|
271
263
|
|
|
272
264
|
declare interface FormDropdown extends Omit<ComponentProps<typeof Dropdown>, "onChange"> {
|
|
265
|
+
rules: any;
|
|
273
266
|
name: string;
|
|
274
|
-
type
|
|
275
|
-
|
|
267
|
+
type: string;
|
|
268
|
+
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement> | string | number | unknown, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
276
269
|
}
|
|
277
270
|
|
|
278
271
|
declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
|
@@ -420,7 +413,7 @@ export declare interface ProfileDetailProps {
|
|
|
420
413
|
address: string;
|
|
421
414
|
gender: GenderProfileEnum_2;
|
|
422
415
|
jobType?: JobTypeEnum_2;
|
|
423
|
-
jobTitle?: string
|
|
416
|
+
jobTitle?: string;
|
|
424
417
|
skills?: string[];
|
|
425
418
|
yearsOfExperience?: number | string;
|
|
426
419
|
userId: string;
|
|
@@ -457,7 +450,7 @@ declare interface SelectPropsBase extends SelectProps {
|
|
|
457
450
|
label: string;
|
|
458
451
|
}[];
|
|
459
452
|
label: string;
|
|
460
|
-
|
|
453
|
+
customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | string | number, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
461
454
|
}
|
|
462
455
|
|
|
463
456
|
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
@@ -476,10 +469,6 @@ export { Size }
|
|
|
476
469
|
|
|
477
470
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
478
471
|
|
|
479
|
-
export { SorterResult }
|
|
480
|
-
|
|
481
|
-
export { SortOrder }
|
|
482
|
-
|
|
483
472
|
export { Space }
|
|
484
473
|
|
|
485
474
|
declare interface Stats {
|
|
@@ -513,28 +502,30 @@ export { SwitchProps }
|
|
|
513
502
|
|
|
514
503
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
515
504
|
|
|
516
|
-
export declare const TableComponent: <
|
|
505
|
+
export declare const TableComponent: FC<TableComponentProps>;
|
|
517
506
|
|
|
518
|
-
export declare interface TableComponentProps
|
|
519
|
-
dataSource
|
|
520
|
-
columns: ColumnsType<T>;
|
|
507
|
+
export declare interface TableComponentProps extends TableProps<any> {
|
|
508
|
+
dataSource: any[] | undefined;
|
|
521
509
|
type?: TableType_2;
|
|
522
|
-
pagination?: false |
|
|
510
|
+
pagination?: false | TablePaginationConfig | undefined;
|
|
523
511
|
loading?: boolean;
|
|
524
|
-
onRow?:
|
|
525
|
-
rowClassName?: (record:
|
|
526
|
-
scroll?: TableProps_2<
|
|
512
|
+
onRow?: any;
|
|
513
|
+
rowClassName?: (record: any) => string;
|
|
514
|
+
scroll?: TableProps_2<any>['scroll'] & {
|
|
527
515
|
scrollToFirstRowOnChange?: boolean;
|
|
528
516
|
};
|
|
529
|
-
onChange?: (pagination?:
|
|
517
|
+
onChange?: (pagination?: TablePaginationConfig, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<any> | SorterResult<any>[], extra?: TableCurrentDataSource<any>) => void;
|
|
530
518
|
loadingCount?: number;
|
|
531
519
|
size?: SizeType;
|
|
532
520
|
}
|
|
533
521
|
|
|
534
|
-
export { TablePaginationConfig }
|
|
535
|
-
|
|
536
522
|
export { TableType }
|
|
537
523
|
|
|
524
|
+
declare const enum TableType_2 {
|
|
525
|
+
DEFAULT = "default",
|
|
526
|
+
NO_DESIGN = "noDesign",
|
|
527
|
+
}
|
|
528
|
+
|
|
538
529
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
539
530
|
|
|
540
531
|
export declare interface TitleHeaderProps {
|