Skip to content

Feat/native form adapter#9

Merged
guynikan merged 3 commits intomainfrom
feat/native-form-adapter
Jan 25, 2026
Merged

Feat/native form adapter#9
guynikan merged 3 commits intomainfrom
feat/native-form-adapter

Conversation

@guynikan
Copy link
Copy Markdown
Owner

No description provided.

Edson Batista added 3 commits January 25, 2026 20:56
- Add NativeReactFormAdapter (useState-based)
- Remove form-adapter.ts (ReactHookFormAdapter) and react-hook-form dependency
- Export createNativeReactFormAdapter from index
- Add ScheptaFormContext, ScheptaFormProvider, useScheptaFormAdapter, useScheptaFieldValue
- Add DefaultFieldWrapper; remove field-wrapper.tsx; FieldWrapper injectable via registry
- use-schepta-form: native state (useState), createNativeReactFormAdapter
- form-factory: ScheptaFormProvider, pass values to context, resolve FieldWrapper from registry
- DefaultFormContainer: use useScheptaFormAdapter for submit
- Drop react-hook-form from peerDependencies
- basic-ui: Form -> Forms/NativeForm, FormModal -> Forms/ModalForm
- basic-ui: remove custom FormContainer and SubmitButton (use factory defaults)
- Add FormWithRHF and FormWithFormik with rhf/ and formik/ components
- BasicFormPage: NativeForm, ModalForm, FormWithRHF, FormWithFormik
- tsconfig: paths {} to fix rootDir with @schepta/* resolution
- chakra/material: FormContainer props alignment
- Add formik dependency; update pnpm-lock.yaml
@guynikan guynikan merged commit a784efc into main Jan 25, 2026
1 check passed
@guynikan guynikan deleted the feat/native-form-adapter branch January 25, 2026 21:02
guynikan added a commit that referenced this pull request Jan 25, 2026
* feat: replace RHF adapter with native form adapter

- Add NativeReactFormAdapter (useState-based)
- Remove form-adapter.ts (ReactHookFormAdapter) and react-hook-form dependency
- Export createNativeReactFormAdapter from index

* feat(factory-react): native form state and injectable FieldWrapper

- Add ScheptaFormContext, ScheptaFormProvider, useScheptaFormAdapter, useScheptaFieldValue
- Add DefaultFieldWrapper; remove field-wrapper.tsx; FieldWrapper injectable via registry
- use-schepta-form: native state (useState), createNativeReactFormAdapter
- form-factory: ScheptaFormProvider, pass values to context, resolve FieldWrapper from registry
- DefaultFormContainer: use useScheptaFormAdapter for submit
- Drop react-hook-form from peerDependencies

* feat(examples): reorganize forms, add RHF/Formik demos, tsconfig fix

- basic-ui: Form -> Forms/NativeForm, FormModal -> Forms/ModalForm
- basic-ui: remove custom FormContainer and SubmitButton (use factory defaults)
- Add FormWithRHF and FormWithFormik with rhf/ and formik/ components
- BasicFormPage: NativeForm, ModalForm, FormWithRHF, FormWithFormik
- tsconfig: paths {} to fix rootDir with @schepta/* resolution
- chakra/material: FormContainer props alignment
- Add formik dependency; update pnpm-lock.yaml

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant