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