@dccs/react-formik-mui
Version:
Simple Formik <-> MaterialUI wrappers
349 lines (348 loc) • 10.9 kB
TypeScript
/// <reference types="react" />
import { FilePickerProps } from "@dccs/react-filepicker-mui";
import { FormHelperTextProps } from "@material-ui/core/FormHelperText";
interface IBaseProps {
name: string;
helperText?: string;
error?: boolean;
useField?: boolean;
formHelperTextProps?: FormHelperTextProps;
fieldProps?: {};
validate?: any;
}
export declare type FormikFormikFilePicker = IBaseProps & Omit<FilePickerProps, "value" | "onChange">;
export declare function FormikFilePicker(props: FormikFormikFilePicker): JSX.Element;
export declare namespace FormikFilePicker {
var displayName: string;
var __docgenInfo: {
"description": string;
"displayName": string;
"props": {
"name": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"helperText": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"error": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"useField": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"formHelperTextProps": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"fieldProps": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"validate": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onDragEnter": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onDragLeave": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onDragOver": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"disabled": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"multiple": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"accept": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"minSize": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"maxSize": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"preventDropOnDocument": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"noClick": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"noKeyboard": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"noDrag": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"noDragEventsBubbling": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onDropAccepted": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onDropRejected": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"getFilesFromEvent": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onFileDialogCancel": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"getFile": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"uploadFile": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"isLoading": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onUploadFileError": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"onGetFileError": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"fileListItemProps": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"renderFileListItem": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"fileListProps": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"optionContainerStyle": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"disableDeleteAllOption": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"disableAddOption": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
"disableOptions": {
"defaultValue": null;
"description": string;
"name": string;
"required": boolean;
"type": {
"name": string;
};
};
};
};
}
export {};