vrfi-design-system 1.0.20 → 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 +22 -85
- package/dist/main.es.js +12442 -12556
- package/dist/main.umd.js +122 -122
- 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';
|
|
@@ -45,7 +46,6 @@ import { PasswordProps } from 'antd/es/input';
|
|
|
45
46
|
import { ProfileDetailFooterTypes } from '../../enums/profileDetailFooter.enum';
|
|
46
47
|
import { PropsWithChildren } from 'react';
|
|
47
48
|
import { Radio as Radio_2 } from 'antd';
|
|
48
|
-
import { RadioChangeEvent } from 'antd';
|
|
49
49
|
import { RadioProps as RadioProps_2 } from 'antd';
|
|
50
50
|
import { ReactElement } from 'react';
|
|
51
51
|
import { ReactNode } from 'react';
|
|
@@ -58,23 +58,23 @@ import { Size } from '../../enums/size.enum';
|
|
|
58
58
|
import { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
59
59
|
import { SkeletonProps } from 'antd';
|
|
60
60
|
import { SorterResult } from 'antd/lib/table/interface';
|
|
61
|
+
import { SortOrder } from 'antd/lib/table/interface';
|
|
61
62
|
import { default as Space } from 'antd/lib/space';
|
|
62
63
|
import { StepProps } from 'antd';
|
|
63
64
|
import { StepsProps } from 'antd';
|
|
64
65
|
import { default as Switch } from 'antd/lib/switch';
|
|
65
66
|
import { SwitchProps } from 'antd/lib/switch';
|
|
66
67
|
import { TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
67
|
-
import { TablePaginationConfig } from 'antd';
|
|
68
|
+
import { TablePaginationConfig } from 'antd/lib/table/interface';
|
|
69
|
+
import { TablePaginationConfig as TablePaginationConfig_2 } from 'antd';
|
|
68
70
|
import { TableProps } from 'antd/lib/table';
|
|
69
71
|
import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
|
|
70
72
|
import { TableProps as TableProps_3 } from 'antd';
|
|
71
73
|
import { TableType } from '../../enums/tableType.enum';
|
|
74
|
+
import { TableType as TableType_2 } from '../../../enums/tableType.enum';
|
|
72
75
|
import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
73
76
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
74
77
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
75
|
-
import { UploadFile as UploadFile_2 } from 'antd';
|
|
76
|
-
import { UploadProps } from 'antd';
|
|
77
|
-
import { UploadProps as UploadProps_2 } from 'antd/lib';
|
|
78
78
|
import { UseFormProps } from 'react-hook-form';
|
|
79
79
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
80
80
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
@@ -172,26 +172,6 @@ export declare type CustomAvatarProps = {
|
|
|
172
172
|
isExtra?: boolean;
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
declare interface CustomDropDownFileUploadProps extends Omit<UploadProps_2,'onChange'>{
|
|
176
|
-
value?: UploadFile_2[];
|
|
177
|
-
onChange: (fileList: UploadFile_2[]) => void;
|
|
178
|
-
uploadIcon?: ReactNode;
|
|
179
|
-
uploadHint?: ReactNode;
|
|
180
|
-
fileTypes?: string;
|
|
181
|
-
actionURL?: string;
|
|
182
|
-
multiple?: boolean;
|
|
183
|
-
maxCount?: number;
|
|
184
|
-
uploadTitle?: string;
|
|
185
|
-
supportedFileType?: string[];
|
|
186
|
-
maxFileSize?: number;
|
|
187
|
-
className?: string;
|
|
188
|
-
dropdownOptions:{label:string,value:string}[]
|
|
189
|
-
dropdownName:string;
|
|
190
|
-
selectLabel:string;
|
|
191
|
-
required?:boolean;
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
|
|
195
175
|
export declare interface CustomInputProps {
|
|
196
176
|
label: string;
|
|
197
177
|
name: string;
|
|
@@ -201,23 +181,6 @@ export declare interface CustomInputProps {
|
|
|
201
181
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
202
182
|
}
|
|
203
183
|
|
|
204
|
-
declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
|
|
205
|
-
value?: UploadFile_2[];
|
|
206
|
-
onChange: (fileList: UploadFile_2[]) => void;
|
|
207
|
-
uploadIcon?: ReactNode;
|
|
208
|
-
uploadHint?: ReactNode;
|
|
209
|
-
fileTypes?: string;
|
|
210
|
-
actionURL?: string;
|
|
211
|
-
multiple?: boolean;
|
|
212
|
-
maxCount?: number;
|
|
213
|
-
uploadTitle?: string;
|
|
214
|
-
supportedFileType?: string[];
|
|
215
|
-
maxFileSize?: number;
|
|
216
|
-
className?: string;
|
|
217
|
-
required?: boolean;
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
|
|
221
184
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
222
185
|
|
|
223
186
|
export { DatePickerAntd }
|
|
@@ -291,7 +254,7 @@ export declare interface FileUploadProps {
|
|
|
291
254
|
handleChange: (file: FileList | UploadFile) => void;
|
|
292
255
|
}
|
|
293
256
|
|
|
294
|
-
export
|
|
257
|
+
export { FilterValue }
|
|
295
258
|
|
|
296
259
|
export declare const FloatingLabel: (props: FloatingLabelProps) => default_2.JSX.Element;
|
|
297
260
|
|
|
@@ -457,7 +420,7 @@ export declare interface ProfileDetailProps {
|
|
|
457
420
|
address: string;
|
|
458
421
|
gender: GenderProfileEnum_2;
|
|
459
422
|
jobType?: JobTypeEnum_2;
|
|
460
|
-
jobTitle?: string;
|
|
423
|
+
jobTitle?: string[];
|
|
461
424
|
skills?: string[];
|
|
462
425
|
yearsOfExperience?: number | string;
|
|
463
426
|
userId: string;
|
|
@@ -470,19 +433,8 @@ declare interface RadioButtonProps {
|
|
|
470
433
|
label?: string;
|
|
471
434
|
}
|
|
472
435
|
|
|
473
|
-
export declare function RadioGroup({ options, name, customOnChange, ...rest }: RadioProps_3): default_2.JSX.Element;
|
|
474
|
-
|
|
475
436
|
export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
|
|
476
437
|
|
|
477
|
-
declare interface RadioProps_3 extends RadioProps_2 {
|
|
478
|
-
options: {
|
|
479
|
-
label: string;
|
|
480
|
-
value: string;
|
|
481
|
-
}[];
|
|
482
|
-
name: string;
|
|
483
|
-
customOnChange?: (event: RadioChangeEvent | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
438
|
export { Row }
|
|
487
439
|
|
|
488
440
|
export { RowProps }
|
|
@@ -524,6 +476,10 @@ export { Size }
|
|
|
524
476
|
|
|
525
477
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
526
478
|
|
|
479
|
+
export { SorterResult }
|
|
480
|
+
|
|
481
|
+
export { SortOrder }
|
|
482
|
+
|
|
527
483
|
export { Space }
|
|
528
484
|
|
|
529
485
|
declare interface Stats {
|
|
@@ -557,29 +513,27 @@ export { SwitchProps }
|
|
|
557
513
|
|
|
558
514
|
export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
|
|
559
515
|
|
|
560
|
-
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;
|
|
561
517
|
|
|
562
|
-
export declare interface TableComponentProps extends TableProps<
|
|
563
|
-
dataSource
|
|
518
|
+
export declare interface TableComponentProps<T> extends TableProps<T> {
|
|
519
|
+
dataSource?: T[];
|
|
520
|
+
columns: ColumnsType<T>;
|
|
564
521
|
type?: TableType_2;
|
|
565
|
-
pagination?: false |
|
|
522
|
+
pagination?: false | TablePaginationConfig_2;
|
|
566
523
|
loading?: boolean;
|
|
567
|
-
onRow?:
|
|
568
|
-
rowClassName?: (record:
|
|
569
|
-
scroll?: TableProps_2<
|
|
524
|
+
onRow?: (record: T) => default_2.HTMLAttributes<HTMLElement>;
|
|
525
|
+
rowClassName?: (record: T) => string;
|
|
526
|
+
scroll?: TableProps_2<T>["scroll"] & {
|
|
570
527
|
scrollToFirstRowOnChange?: boolean;
|
|
571
528
|
};
|
|
572
|
-
onChange?: (pagination?:
|
|
529
|
+
onChange?: (pagination?: TablePaginationConfig_2, filters?: Record<string, FilterValue | null>, sorter?: SorterResult<T> | SorterResult<T>[], extra?: TableCurrentDataSource<T>) => void;
|
|
573
530
|
loadingCount?: number;
|
|
574
531
|
size?: SizeType;
|
|
575
532
|
}
|
|
576
533
|
|
|
577
|
-
export {
|
|
534
|
+
export { TablePaginationConfig }
|
|
578
535
|
|
|
579
|
-
|
|
580
|
-
DEFAULT = "default",
|
|
581
|
-
NO_DESIGN = "noDesign",
|
|
582
|
-
}
|
|
536
|
+
export { TableType }
|
|
583
537
|
|
|
584
538
|
export declare const TitleHeader: (props: TitleHeaderProps) => default_2.JSX.Element;
|
|
585
539
|
|
|
@@ -612,23 +566,6 @@ declare interface TooltipProps {
|
|
|
612
566
|
children: JSX_2.Element;
|
|
613
567
|
}
|
|
614
568
|
|
|
615
|
-
export declare const Upload: ({ name, ...rest }: UploadBaseProps) => default_2.JSX.Element;
|
|
616
|
-
|
|
617
|
-
declare interface UploadBaseProps extends Omit<CustomUploadProps, 'onChange'> {
|
|
618
|
-
name: string;
|
|
619
|
-
required?: boolean;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
declare interface UploadBaseProps_2 extends Omit<CustomDropDownFileUploadProps, 'onChange'> {
|
|
623
|
-
name: string;
|
|
624
|
-
dropdownOptions: {
|
|
625
|
-
label: string;
|
|
626
|
-
value: string;
|
|
627
|
-
}[];
|
|
628
|
-
dropdownName: string;
|
|
629
|
-
required?: boolean;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
569
|
export declare interface ValidationRuleProps {
|
|
633
570
|
test: (val: string) => boolean;
|
|
634
571
|
message: string;
|