@ansible/ansible-ui-framework 2.4.1812 → 2.4.1813
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.
@@ -1,9 +1,12 @@
|
|
1
1
|
import { FileUploadProps } from '@patternfly/react-core';
|
2
|
+
import { ReactNode } from 'react';
|
2
3
|
import { FieldPathByValue, FieldValues } from 'react-hook-form';
|
3
4
|
import { PageFormGroupProps } from './PageFormGroup';
|
4
5
|
export type PageFormFileUploadProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, File> = FieldPathByValue<TFieldValues, File>> = {
|
5
6
|
name: TFieldName;
|
6
7
|
placeholder?: string;
|
7
8
|
validate?: (value: File) => string | undefined;
|
9
|
+
onInputChange?: (file: File) => Promise<void>;
|
10
|
+
additionalHelperText?: ReactNode;
|
8
11
|
} & PageFormGroupProps & Omit<FileUploadProps, 'id'>;
|
9
12
|
export declare function PageFormFileUpload<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, File> = FieldPathByValue<TFieldValues, File>>(props: PageFormFileUploadProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|