Skip to content

Commit

Permalink
chore(release): 1.0.0-alpha.1 [skip ci]
Browse files Browse the repository at this point in the history
# 1.0.0-alpha.1 (2023-10-01)

### Bug Fixes

* Update TextFieldController return type ([7dcd2e3](7dcd2e3))
  • Loading branch information
semantic-release-bot committed Oct 1, 2023
1 parent 0457c7b commit 1a7845b
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 1a7845b

Please sign in to comment.