Commit Graph

30 Commits

Author SHA1 Message Date
Aesop Wolf 42e39cbc8f Chore/tweaks for v1 (#473)
* Rename HOC/Wrapper export to `withFormsy`

This is more in alignment with community practices.

* Migrate from npm to yarn

* Update package.json

Use order listed on https://yarnpkg.com/en/docs/package-json

* Update README.md

New examples, and small copy/whitespace changes

* Remove CHANGES.md

We will use github release from now on

* Fix test suite

Replace all references to  with

* Add ESLint

* Update dependencies

* Upgrade babel dependencies

* Upgrade jsdom

* Upgrade nodeunit and sinon

* Upgrade webpack and webpack-dev-server

* Fix examples

* Convert to ES6 classes

* Fix ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Move runRules to utils.js

* Fix more ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Use less complex regex's for url and email

* Change grammar in README

* Change export pattern

* Use ES6 export for utils and validationRules

* Fix login example

* Reorder methods alphabetically and remove "magical" `validate` feature

* Remove `validate` from API docs (and general cleanup of file)

* Update examples (removes `validate` feature)

* Rename webpack file and remove json loader

* Fix code samples in README

* Update reset-values example (WIP)

* Cleanup reset-values example

* Fix prop type for Wrapper value

* Handle onReset event

* Update reset-value example to support `<button type="reset">`

* Update dynamic form fields example
2017-08-29 16:35:17 -07:00
Tom B b413f9db77 A few changes to API for better Wrapped component support (#472)
* Add propTypes to API docs; move innerRef doc to match location in table of contents

* Change HOC to Wrapper (be consistent everywhere)

* Inject defaultProps.value from wrapped component into Formsy.Wrapper

This way users can provide a default value for their form field.
Previously, this was possible because mixins were on the same level as the actual component.

* Add optional parameter to setState to disable validation

* Update prepublish script to clean `lib`; rebuild release folder
2017-08-11 11:53:00 -07:00
Tom B 98525a4b64 Major update/cleanup to Formsy API; React v15+; No more mixins (#470)
* Up node to 8.2.1; only allow React v15+

* Update HOC to ES6 component; kill Mixin and decorator

* Update all tests; ES6ify everything!

* Update examples to ES6 classes

* Update API docs

* Fix broken/commented test case

* Move peer dep to regular dep since peer is deprecated
2017-08-08 22:09:11 -07:00
Tim Brayshaw d68586180a Remove stray sentence. (#415) 2017-01-12 09:37:57 -08:00
Aesop Wolf f395839e2c Update API.md
Add note about xregexp
2016-12-29 15:11:36 -08:00
Scott Silvi 84cdcb117c docs: Removing unnecessary single quote (#410) 2016-12-08 22:51:17 -08:00
Aesop Wolf 2b249113d8 feat: expose inner element when using HOC (#399)
Use `innerRef={(c) => { this.myInput = c; }}` on your HOC to access the internal element
2016-12-08 22:24:19 -08:00
Mani Nilchiani 42ba9616d2 Nit-picky typo
This is some *great* documentation work. I read it so carefully that this nit-picky typo came to my attention.
2016-07-13 12:57:29 -04:00
Semigradsky 24a6b6217d Fixed #335: getErrorMessages is undocumented in API 2016-07-05 11:49:29 +03:00
Semigradsky 89a2d4287b Update documentation 2016-04-21 13:16:00 +03:00
Dmitry Semigradsky 4931256105 Fix link 2015-12-12 16:19:38 +03:00
Dmitry Semigradsky b39fd2ed74 Fix link 2015-12-10 09:22:53 +03:00
Semigradsky 18467a94a1 Added `updateInputsWithError` to documentation. 2015-12-10 09:21:53 +03:00
Semigradsky 5b5bd0fb67 Add `getModel()` to documentation. 2015-12-08 12:00:49 +03:00
Christian Alfoni 2846f0fadd Refactored tests and made React 0.14 friendly 2015-10-04 17:40:58 +02:00
Kale bf77058a87 make server validation more obvious in docs 2015-09-21 07:17:27 -06:00
Semigradsky a96f5246e7 Added new validation rules: `isAlphanumeric`, `isInt`, `isFloat` 2015-09-11 11:02:35 +03:00
David Blurton c0fa87f5cb Merge branch 'master' into react-0.14
Conflicts:
	package.json
2015-08-31 13:01:27 +00:00
Matija Marohnić dcac01159a Add example use case for require="isFalse" 2015-07-26 16:44:58 +02:00
christianalfoni dda96c46f6 updated docs 2015-07-26 15:09:23 +02:00
Gregory Ostermayr 701e2308a4 fix typo 2015-07-06 17:09:48 -04:00
Dmitry Semigradsky 07f2a51a30 Update API.md 2015-06-25 23:42:46 +03:00
christianalfoni a1cf2236df Prepared new release 2015-05-22 14:46:45 +02:00
Semigradsky 7ef6c51f1f Updated API 2015-04-29 16:36:09 +03:00
Dmitry Semigradsky 750fe1508f API corrected 2015-04-27 00:19:03 +03:00
christianalfoni 9b2d9598e8 added pull request and created tests and documentation 2015-04-25 12:20:39 +02:00
christianalfoni accc0815db Merge branch 'master' of https://github.com/christianalfoni/formsy-react 2015-04-25 12:14:26 +02:00
christianalfoni 8acaeadaee Fixed value bug and configured deploy new version script 2015-04-25 12:14:15 +02:00
Michael Contento cf1550d4f2 Fix code example in API.md 2015-04-24 18:43:35 +02:00
Semigradsky 6c3d9a0315 Moved API to separate file 2015-04-17 15:03:05 +03:00