index.js 651 B

123456789101112131415161718
  1. import * as React from 'react';
  2. import Field from "./Field";
  3. import List from "./List";
  4. import useForm from "./useForm";
  5. import FieldForm from "./Form";
  6. import { FormProvider } from "./FormContext";
  7. import FieldContext from "./FieldContext";
  8. import ListContext from "./ListContext";
  9. import useWatch from "./useWatch";
  10. var InternalForm = /*#__PURE__*/React.forwardRef(FieldForm);
  11. var RefForm = InternalForm;
  12. RefForm.FormProvider = FormProvider;
  13. RefForm.Field = Field;
  14. RefForm.List = List;
  15. RefForm.useForm = useForm;
  16. RefForm.useWatch = useWatch;
  17. export { Field, List, useForm, FormProvider, FieldContext, ListContext, useWatch };
  18. export default RefForm;