├── .babelrc ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .npmignore ├── .npmrc ├── .travis.yml ├── LICENSE ├── README.md ├── docs ├── .nojekyll ├── _coverpage.md ├── _media │ └── logo.png ├── _sidebar.md ├── api.md ├── binding.md ├── collect-values.md ├── customize-add.md ├── customize-error-text.md ├── customize-reuse.md ├── diy.md ├── faq.md ├── howto.md ├── index.html ├── index.md ├── initial-state.md ├── more-examples.md ├── rules.md └── schema.md ├── example.js ├── example ├── App.js ├── BaseInput.js ├── README.md ├── RadioButtons.js ├── SubmitButton.js ├── TextInput.css └── TextInput.js ├── package.json ├── playGround.js ├── src ├── VeasyClass.js ├── VeasyForm.jsx ├── flowTypes.js ├── helpers │ ├── collectValuesUtils.js │ ├── helpers.js │ ├── initializationUtils.js │ ├── validationUtils.js │ └── veasyClassUtils.js ├── index.js └── ruleHandlers │ ├── generalRules.js │ ├── matchers.js │ ├── numberRules.js │ └── stringRules.js └── tests ├── VeasyClass.test.js ├── VeasyForm.test.js ├── __snapshots__ └── VeasyForm.test.js.snap ├── generalRules.test.js ├── helpers.test.js ├── index.test.js ├── integration ├── Veasy.intergration.test.js └── components │ ├── MyForm.jsx │ └── TextInput.jsx ├── numberRules.test.js ├── specialRules.test.js ├── stringRules.test.js └── workflow.test.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.eslintrc -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.flowconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/README.md -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_coverpage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/_coverpage.md -------------------------------------------------------------------------------- /docs/_media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/_media/logo.png -------------------------------------------------------------------------------- /docs/_sidebar.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/_sidebar.md -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/api.md -------------------------------------------------------------------------------- /docs/binding.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/binding.md -------------------------------------------------------------------------------- /docs/collect-values.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/collect-values.md -------------------------------------------------------------------------------- /docs/customize-add.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/customize-add.md -------------------------------------------------------------------------------- /docs/customize-error-text.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/customize-error-text.md -------------------------------------------------------------------------------- /docs/customize-reuse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/customize-reuse.md -------------------------------------------------------------------------------- /docs/diy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/diy.md -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/faq.md -------------------------------------------------------------------------------- /docs/howto.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/howto.md -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/initial-state.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/initial-state.md -------------------------------------------------------------------------------- /docs/more-examples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/more-examples.md -------------------------------------------------------------------------------- /docs/rules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/rules.md -------------------------------------------------------------------------------- /docs/schema.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/docs/schema.md -------------------------------------------------------------------------------- /example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example.js -------------------------------------------------------------------------------- /example/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/App.js -------------------------------------------------------------------------------- /example/BaseInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/BaseInput.js -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/README.md -------------------------------------------------------------------------------- /example/RadioButtons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/RadioButtons.js -------------------------------------------------------------------------------- /example/SubmitButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/SubmitButton.js -------------------------------------------------------------------------------- /example/TextInput.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/TextInput.css -------------------------------------------------------------------------------- /example/TextInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/example/TextInput.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/package.json -------------------------------------------------------------------------------- /playGround.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/playGround.js -------------------------------------------------------------------------------- /src/VeasyClass.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/VeasyClass.js -------------------------------------------------------------------------------- /src/VeasyForm.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/VeasyForm.jsx -------------------------------------------------------------------------------- /src/flowTypes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/flowTypes.js -------------------------------------------------------------------------------- /src/helpers/collectValuesUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/helpers/collectValuesUtils.js -------------------------------------------------------------------------------- /src/helpers/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/helpers/helpers.js -------------------------------------------------------------------------------- /src/helpers/initializationUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/helpers/initializationUtils.js -------------------------------------------------------------------------------- /src/helpers/validationUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/helpers/validationUtils.js -------------------------------------------------------------------------------- /src/helpers/veasyClassUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/helpers/veasyClassUtils.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/index.js -------------------------------------------------------------------------------- /src/ruleHandlers/generalRules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/ruleHandlers/generalRules.js -------------------------------------------------------------------------------- /src/ruleHandlers/matchers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/ruleHandlers/matchers.js -------------------------------------------------------------------------------- /src/ruleHandlers/numberRules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/ruleHandlers/numberRules.js -------------------------------------------------------------------------------- /src/ruleHandlers/stringRules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/src/ruleHandlers/stringRules.js -------------------------------------------------------------------------------- /tests/VeasyClass.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/VeasyClass.test.js -------------------------------------------------------------------------------- /tests/VeasyForm.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/VeasyForm.test.js -------------------------------------------------------------------------------- /tests/__snapshots__/VeasyForm.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/__snapshots__/VeasyForm.test.js.snap -------------------------------------------------------------------------------- /tests/generalRules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/generalRules.test.js -------------------------------------------------------------------------------- /tests/helpers.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/helpers.test.js -------------------------------------------------------------------------------- /tests/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/index.test.js -------------------------------------------------------------------------------- /tests/integration/Veasy.intergration.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/integration/Veasy.intergration.test.js -------------------------------------------------------------------------------- /tests/integration/components/MyForm.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/integration/components/MyForm.jsx -------------------------------------------------------------------------------- /tests/integration/components/TextInput.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/integration/components/TextInput.jsx -------------------------------------------------------------------------------- /tests/numberRules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/numberRules.test.js -------------------------------------------------------------------------------- /tests/specialRules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/specialRules.test.js -------------------------------------------------------------------------------- /tests/stringRules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/stringRules.test.js -------------------------------------------------------------------------------- /tests/workflow.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Albert-Gao/veasy/HEAD/tests/workflow.test.js --------------------------------------------------------------------------------