Skip to content

Commit 8520e16

Browse files
committed
Remove FormTextArea, FormInput & FormSelect
1 parent fb59e9a commit 8520e16

File tree

8 files changed

+6
-333
lines changed

8 files changed

+6
-333
lines changed

src/elements/Field.tsx renamed to src/Field.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { FormState } from "../form";
1+
import { FormState } from "./form";
22
import React, { useCallback } from "react";
3-
import { useListener } from "../hooks";
3+
import { useListener } from "./hooks";
44

55
export type ElementProps<C extends React.FunctionComponent<any> | keyof JSX.IntrinsicElements> = C extends React.FunctionComponent<infer P>
66
? P

src/elements/FieldError.tsx renamed to src/FieldError.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
2-
import { DefaultError, DefaultState, FormState } from "../form";
3-
import { useListener } from "../hooks";
2+
import { DefaultError, DefaultState, FormState } from "./form";
3+
import { useListener } from "./hooks";
44
import { ElementProps } from "./Field";
55

66
export function FieldError<

src/elements/FormInput.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/elements/FormSelect.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/elements/FormTextArea.tsx

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/elements/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/elements/serializer.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from "./form";
22
export * from "./hooks";
33
export * from "./Components";
4-
export * from "./elements";
4+
export * from "./Field";
5+
export * from "./FieldError";

0 commit comments

Comments
 (0)