Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nputs into alpha
  • Loading branch information
JoseVSeb committed Oct 1, 2023
2 parents d10b577 + 1a7845b commit b4d80a9
Show file tree
Hide file tree
Showing 9 changed files with 3,332 additions and 1 deletion.
13 changes: 13 additions & 0 deletions dist/mui/TextFieldController.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// <reference types="react" />
import { TextFieldProps } from "@mui/material/TextField";
import { ControllerRenderProps, FieldPath, FieldValues, UseControllerProps } from "react-hook-form";
type TextFieldRenderProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Pick<ControllerRenderProps<TFieldValues, TName>, "name" | "onBlur" | "onChange" | "value" | "disabled"> & Required<Pick<TextFieldProps, "inputRef" | "error">> & Pick<TextFieldProps, "helperText">;
type UseTextFieldControllerReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
textFieldProps: TextFieldRenderProps<TFieldValues, TName>;
};
export declare const useTextFieldController: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: UseControllerProps<TFieldValues, TName>) => UseTextFieldControllerReturn<TFieldValues, TName>;
export declare const TextFieldController: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ children, ...props }: UseControllerProps<TFieldValues, TName> & {
children: (props: UseTextFieldControllerReturn<TFieldValues, TName>) => React.ReactElement;
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export {};
//# sourceMappingURL=TextFieldController.d.ts.map
1 change: 1 addition & 0 deletions dist/mui/TextFieldController.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,310 changes: 3,310 additions & 0 deletions dist/mui/TextFieldController.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/mui/TextFieldController.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/mui/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./TextFieldController";
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/mui/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/mui/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/mui/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hookform/inputs",
"version": "0.0.0-development",
"version": "1.0.0-alpha.1",
"description": "",
"keywords": [
"react",
Expand Down

0 comments on commit b4d80a9

Please sign in to comment.