Corbin Crutchley
54652ee674
feat: Add Yup and Zod validator support ( #462 )
...
* chore: first pass
* chore: onto something I think
* chore: closer but no cigar
* chore: infer validator
* chore: infer zod
* feat: add validation transformer logic
* chore: fix typings for react adapter
* chore: fix issue with `this` not being defined properly
* chore: mostly update FieldInfo types from Vue
* chore: work on fixing type inferencing
* fix: make ValidatorType optional
* chore: make TName restriction easier to grok
* chore: fix React types
* chore: fix Vue types
* chore: fix typing issues
* chore: fix various linting items
* chore: fix ESlint and validation logic
* chore: fix inferencing from formdata
* chore: fix form inferencing
* chore: fix React TS types to match form validator logic
* chore: fix Vue types
* chore: migrate zod validation to dedicated package
* chore: add first integration test for zod adapter
* chore: enable non-validator types to be passed to validator
* feat: add yup 1.x adapter
* chore: add functionality and tests for form-wide validators
* chore: fix typings of async validation types
* fix: async validation should now run as-expected more often
* chore: add async tests for Yup validator
* chore: rename packages to match naming schema better
* chore: add Zod examples for React and Vue
* chore: add React and Vue Yup support
* chore: fix formatting
* chore: fix CI types
* chore: initial work to drastically improve docs
* docs: improve docs for validation
* docs: add adapter validation docs
2023-10-18 02:22:05 -07:00
Enyel Sequeira
b2b9b0aae1
docs: form-api-docs updated and removed some old docs ( #433 )
...
* docs: form-api-docs updated and removed some old docs
* chore: updated docs removed mentioning the types and tried to explain what they do instead
---------
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev >
2023-10-17 23:19:19 -07:00
Tanner Linsley
1fb28c53eb
fix: refactor to flat generics with consistent names & patterns
2023-09-13 14:46:16 -06:00
Ray Liu
c2f9957046
feat(form-core): Change from touched error message and error message to error map and array of errors ( #442 )
...
* feature(FieldAPI): Change from touched error message and error message to error map and array of errors
BREAKING CHANGE: The touched Error and error field has been removed will be replaced with touched errors array and errors map.
* feat: update documentation for updated fields
* chore: update Vue adapter as well
* fix: update getErrorMapKey to return onChange when change is the validation cause
* chore: remove console.log
---------
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev >
2023-09-08 11:14:54 -07:00
Corbin Crutchley
7980336d03
feat: remove getInputProps to support React Native
2023-09-03 16:48:51 -07:00
Enyel Sequeira
bd1bd3d0d4
docs: updating docs-field-api removing old doc and updating to new pr… ( #423 )
...
* docs: updating docs-field-api removing old doc and updating to new properties
* docs: field-api removing disclaimer about API shift
2023-08-31 14:55:51 -07:00
Corbin Crutchley
c392c6100d
docs: improve docs, add disclaimer where docs are outdated ( #412 )
2023-08-29 15:08:25 -07:00
Brandon Bayer
a3f9709dde
fix: several type and build errors and fix example type inference ( #399 )
...
* fix few type errors and fix example
* couple fixes
* fix babel
2023-06-13 15:36:42 -06:00
Tanner Linsley
62a82fe48f
fix: array-field mode and utilities
2023-05-03 15:16:56 -07:00
Tanner Linsley
c444704ae3
fix: complete form factory functionality, docs
2023-05-01 10:59:37 -06:00
Tanner Linsley
f4d9159415
docs: udpate
2023-04-28 01:09:50 -06:00
Tanner Linsley
5b7c6ce55d
fix: UserChange/InputProps
2023-04-27 13:27:20 -06:00