vrfi-design-system 1.0.24 → 1.0.26
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 +60 -0
- package/dist/main.es.js +20578 -20352
- package/dist/main.umd.js +138 -135
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,9 @@ import { TitleHeaderStatus } from '../../enums/titleHeaderStatus.enum';
|
|
|
78
78
|
import { TitleHeaderStatus as TitleHeaderStatus_2 } from '../../../enums/titleHeaderStatus.enum';
|
|
79
79
|
import { tooltipPosition } from '../../../enums/tooltipPosition';
|
|
80
80
|
import { UploadFile } from 'antd/lib/upload/interface';
|
|
81
|
+
import { UploadFile as UploadFile_2 } from 'antd';
|
|
82
|
+
import { UploadProps } from 'antd';
|
|
83
|
+
import { UploadProps as UploadProps_2 } from 'antd/lib';
|
|
81
84
|
import { UseFormProps } from 'react-hook-form';
|
|
82
85
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
83
86
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
@@ -170,6 +173,28 @@ export declare type CustomAvatarProps = {
|
|
|
170
173
|
isExtra?: boolean;
|
|
171
174
|
};
|
|
172
175
|
|
|
176
|
+
declare interface CustomDropDownFileUploadProps extends Omit<UploadProps_2, 'onChange'> {
|
|
177
|
+
value?: UploadFile_2[];
|
|
178
|
+
onChange: (fileList: UploadFile_2[]) => void | boolean;
|
|
179
|
+
uploadIcon?: ReactNode;
|
|
180
|
+
uploadHint?: ReactNode;
|
|
181
|
+
fileTypes?: string;
|
|
182
|
+
actionURL?: string;
|
|
183
|
+
multiple?: boolean;
|
|
184
|
+
maxCount?: number;
|
|
185
|
+
uploadTitle?: string;
|
|
186
|
+
supportedFileType?: string[];
|
|
187
|
+
maxFileSize?: number;
|
|
188
|
+
className?: string;
|
|
189
|
+
dropdownOptions: {
|
|
190
|
+
[key: string]: string | number;
|
|
191
|
+
}[];
|
|
192
|
+
dropdownName: string;
|
|
193
|
+
selectLabel: string;
|
|
194
|
+
required?: boolean;
|
|
195
|
+
loading?: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
173
198
|
export declare interface CustomInputProps {
|
|
174
199
|
label: string;
|
|
175
200
|
name: string;
|
|
@@ -180,6 +205,23 @@ export declare interface CustomInputProps {
|
|
|
180
205
|
customOnChange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
181
206
|
}
|
|
182
207
|
|
|
208
|
+
declare interface CustomUploadProps extends Omit<UploadProps, 'onChange'> {
|
|
209
|
+
value?: UploadFile_2[];
|
|
210
|
+
onChange: (fileList: UploadFile_2[]) => void | boolean;
|
|
211
|
+
uploadIcon?: ReactNode;
|
|
212
|
+
uploadHint?: ReactNode;
|
|
213
|
+
fileTypes?: string;
|
|
214
|
+
actionURL?: string;
|
|
215
|
+
multiple?: boolean;
|
|
216
|
+
maxCount?: number;
|
|
217
|
+
uploadTitle?: string;
|
|
218
|
+
supportedFileType?: string[];
|
|
219
|
+
maxFileSize?: number;
|
|
220
|
+
className?: string;
|
|
221
|
+
required?: boolean;
|
|
222
|
+
loading?: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
183
225
|
export declare const DatePicker: (props: CustomInputProps & DatePickerProps) => default_2.JSX.Element;
|
|
184
226
|
|
|
185
227
|
export { DatePickerAntd }
|
|
@@ -553,6 +595,24 @@ declare interface TooltipProps {
|
|
|
553
595
|
children: JSX_2.Element;
|
|
554
596
|
}
|
|
555
597
|
|
|
598
|
+
export declare const Upload: ({ name, onChange, ...rest }: UploadBaseProps) => default_2.JSX.Element;
|
|
599
|
+
|
|
600
|
+
export declare interface UploadBaseProps extends CustomUploadProps {
|
|
601
|
+
name: string;
|
|
602
|
+
required?: boolean;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export declare interface UploadBasePropsForDropdown extends CustomDropDownFileUploadProps {
|
|
606
|
+
name: string;
|
|
607
|
+
dropdownOptions: {
|
|
608
|
+
[key: string]: string | number;
|
|
609
|
+
}[];
|
|
610
|
+
dropdownName: string;
|
|
611
|
+
required?: boolean;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export declare const UploadWithDropdown: ({ name, onChange, ...rest }: UploadBasePropsForDropdown) => default_2.JSX.Element;
|
|
615
|
+
|
|
556
616
|
export declare interface ValidationRuleProps {
|
|
557
617
|
test: (val: string) => boolean;
|
|
558
618
|
message: string;
|