{"_id":"@cat-react/form","_rev":"12-80b856d4a88682463b73b64867c64c49","name":"@cat-react/form","description":"A simple yet powerful library which helps creating validated forms in react.","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"@cat-react/form","version":"0.0.1","description":"A simple yet powerful library which helps creating validated forms in react.","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.0.1","_shasum":"9aa72b34cb2d8e6a8257d834407d491c81ec04d5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"shasum":"9aa72b34cb2d8e6a8257d834407d491c81ec04d5","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.0.1.tgz","integrity":"sha512-Me0oE/+hX8IbO09IF98GOqfpNFfDQ+bSRY5okKWGQzQ5adR97AO5OmO4WZCPZk/V1cAoFuH/8OfRjIvCRIdLZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHL/oW+hCbmjzmYqE39yzYJ9pV9I9zQRlG3tA0/KMdAOAiAd3tchS9rQqkgLt8zY6MOgqzwDR+DDzB+p3vXt7k0rrA=="}]},"maintainers":[{"name":"dsumer","email":"domi.sumer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.0.1.tgz_1505164318424_0.030336896888911724"},"directories":{}},"0.0.2":{"name":"@cat-react/form","version":"0.0.2","description":"A simple yet powerful library which helps creating validated forms in react.","main":"dist/index.umd.min.js","jsnext:main":"dist/index.es.js","module":"dist/index.es.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.0.2","_shasum":"ce761adc43b03233edbc159533edb408fe22cd9f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"shasum":"ce761adc43b03233edbc159533edb408fe22cd9f","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.0.2.tgz","integrity":"sha512-yGHScVjC8cmGyOUHcB0ZnvJWNi8Qdgi11ba3Ohm3IzKucJ4dwv82lfIRFpoB90MKpAGZdgCW4ua3Nd3qkYgWnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAWtC7rV0fq+DnF7U9hXlNXb3vU710FLtc408IrRQ8fAiB2qGW74bjAGhKyk1Ih6fh63ja/hV2rYVqEuLz05o+wkQ=="}]},"maintainers":[{"email":"domi.sumer@gmail.com","name":"dsumer"},{"email":"admin@catalysts.cc","name":"catalysts-admin"},{"email":"jakob.englisch@catalysts.cc","name":"jenglisch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.0.2.tgz_1505674380337_0.0855730902403593"},"directories":{}},"0.0.3":{"name":"@cat-react/form","version":"0.0.3","description":"A simple yet powerful library which helps creating validated forms in react.","main":"index.umd.min.js","jsnext:main":"index.es.js","module":"index.es.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.0.3","_shasum":"50a0eb3facc240e06a5cb73f02d616f83bdb357b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"shasum":"50a0eb3facc240e06a5cb73f02d616f83bdb357b","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.0.3.tgz","integrity":"sha512-dw8umLW7ifXbZW4QAXK8dXY/KyW97DlW3dEdBVB6oOedzSqScFKVCQtJlXWiAGWuivzKy9YkqXMAS8oGhC0FJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/fpTzNzDSMpXvN1ZrBY/VayoMexkqZU1PhHpFUvQioAiEAu8As6xWFB1VjhSbjfNvTqiioyhLMb5L+C4aon9qWoGo="}]},"maintainers":[{"email":"domi.sumer@gmail.com","name":"dsumer"},{"email":"admin@catalysts.cc","name":"catalysts-admin"},{"email":"jakob.englisch@catalysts.cc","name":"jenglisch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.0.3.tgz_1505678624628_0.13727564690634608"},"directories":{}},"0.1.0":{"name":"@cat-react/form","version":"0.1.0","description":"A simple yet powerful library which helps creating validated forms in react.","main":"index.umd.min.js","jsnext:main":"index.es.js","module":"index.es.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-live":"^1.7.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1","whatwg-fetch":"^2.0.3"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.1.0","_shasum":"e558d081d32e73417ac10b2c44b61257a182b495","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"shasum":"e558d081d32e73417ac10b2c44b61257a182b495","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.1.0.tgz","integrity":"sha512-qPLyUULQjn5l/LiDYzKuVZywK5hEttgkQYBjt9yQDWguD8LekuLiwqYnHPdPE9XSrV7LTX1RjEXqF8dh6Lnn8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvNEAkJFkYYIE1ZRdUgc7BoMgM8RmTf1o/hziXLRERDAiBqnHtBSc054OwpNhXWqvwsaMInT6mHl8mHqQp+bVWo2g=="}]},"maintainers":[{"email":"domi.sumer@gmail.com","name":"dsumer"},{"email":"admin@catalysts.cc","name":"catalysts-admin"},{"email":"jakob.englisch@catalysts.cc","name":"jenglisch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.1.0.tgz_1506986657000_0.8841727576218545"},"directories":{}},"0.1.1":{"name":"@cat-react/form","version":"0.1.1","description":"A simple yet powerful library which helps creating validated forms in react.","main":"index.umd.min.js","jsnext:main":"index.es.js","module":"index.es.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-live":"^1.7.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1","whatwg-fetch":"^2.0.3"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.1.1","_shasum":"17c990db52be85a07d81cc752cd7993e26d6eee3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"shasum":"17c990db52be85a07d81cc752cd7993e26d6eee3","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.1.1.tgz","integrity":"sha512-WC0pajpovDNoenkyXAWjCNJOqjfqlOKf7QchM5oM941JiWR5veMCdXR1sK8XnmCJ7dBQgn9ThyKz4b2U0V4JtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYVe+teu1Eo8gQs0haoVZW4z91XjfXet/5XYq3Pil8BAiB5Wvwbsfp0qlP2vL6aMwab90MfGV6kHFSN6kIMlKVlRw=="}]},"maintainers":[{"email":"domi.sumer@gmail.com","name":"dsumer"},{"email":"admin@catalysts.cc","name":"catalysts-admin"},{"email":"jakob.englisch@catalysts.cc","name":"jenglisch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.1.1.tgz_1511305026344_0.7943195183761418"},"directories":{}},"0.1.2":{"name":"@cat-react/form","version":"0.1.2","description":"A simple yet powerful library which helps creating validated forms in react.","main":"index.umd.min.js","jsnext:main":"index.es.js","module":"index.es.js","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"license":"MIT","scripts":{"build":"node build.js","test":"jest","lint":"eslint src/**/*","examples":"webpack-dev-server --config examples/webpack.config.js --content-base examples --open --hot","build_examples":"webpack --config examples/webpack.config.js && cp examples/favicon.ico examples/build/ && cp examples/index.html examples/build/ && ./node_modules/.bin/replace-in-file //build//g \"\" examples/build/index.html --isRegex"},"dependencies":{"prop-types":"^15.5.10","react-autobind":"^1.0.6"},"devDependencies":{"babel-eslint":"^7.2.3","babel-jest":"^20.0.3","babel-loader":"^7.1.2","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-es2015-rollup":"^3.0.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","bootstrap":"^3.3.7","css-loader":"^0.28.7","del":"^3.0.0","enzyme":"^2.9.1","eslint":"^4.5.0","eslint-plugin-react":"^7.3.0","jest":"^20.0.4","react":"^15.6.1","react-dom":"^15.6.1","react-live":"^1.7.1","react-router-dom":"^4.2.2","react-test-renderer":"^15.6.1","replace-in-file":"^2.6.3","rollup":"^0.49.3","rollup-plugin-babel":"3.0.0","rollup-plugin-commonjs":"^8.2.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1","rollup-plugin-visualizer":"^0.3.1","style-loader":"^0.18.2","url-loader":"^0.5.9","webpack":"^3.5.5","webpack-dev-server":"^2.7.1","whatwg-fetch":"^2.0.3"},"peerDependencies":{"react":">= 15.0.0 < 17.0.0"},"jest":{"collectCoverageFrom":["src/**/*"]},"bugs":{"url":"https://github.com/cat-react/form/issues"},"homepage":"https://github.com/cat-react/form#readme","_id":"@cat-react/form@0.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.1.0","_npmUser":{"name":"dsumer","email":"domi.sumer@gmail.com"},"dist":{"integrity":"sha512-VV/j/y2mFhuMul/xk6ynZXORqN8t1uXP9zRS+jqNjHLlTGTpi8Y8ffclkqzVc4jsH1DAd3UAelCym9ckE/Vv2Q==","shasum":"379019a8b6acbc3398ad471067c7a3dbfff2047f","tarball":"https://registry.npmjs.org/@cat-react/form/-/form-0.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG43W7RJtdb/43i0eytWEgmOYHn0HSiY2xFevjRyd1B6AiB4v98SJxONMp4/K5o45lX4sPjN/kGRp5x3rqFxxW4GXw=="}]},"maintainers":[{"email":"domi.sumer@gmail.com","name":"dsumer"},{"email":"admin@catalysts.cc","name":"catalysts-admin"},{"email":"jakob.englisch@catalysts.cc","name":"jenglisch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/form-0.1.2.tgz_1517320643312_0.5528547680005431"},"directories":{}}},"readme":"<p align=\"center\">\n    <a href=\"https://github.com/cat-react\"><img src=\"https://user-images.githubusercontent.com/4418879/30520764-b86d5cc6-9bb4-11e7-9313-ced40eb4e066.png\" alt=\"cat-react\" /></a>\n</p>\n\n# [@cat-react](https://github.com/cat-react) / form ![Build Status](https://travis-ci.org/cat-react/form.svg?branch=master) [![codecov](https://codecov.io/gh/cat-react/form/branch/master/graph/badge.svg)](https://codecov.io/gh/cat-react/form) [![npm version](https://badge.fury.io/js/%40cat-react%2Fform.svg)](https://badge.fury.io/js/%40cat-react%2Fform)\nA simple yet powerful library which helps creating validated forms in react. This project is inspired by [formsy-react](https://github.com/christianalfoni/formsy-react).\n\n## Installation\n[![npm package](https://nodei.co/npm/@cat-react/form.png?compact=true)](https://www.npmjs.com/package/@cat-react/form)\n- Install the dependency `@cat-react/form` <br/>\n  (e.g. with `yarn add @cat-react/form` or `npm install @cat-react/form --save`)\n- Import the Components with `import {Form, Input} from '@cat-react/form';`\n\n## Getting Started\n| [API Documentation](/docs/api.md) | [Examples](https://cat-react.github.io/form/) |\n|---|---|\n\nAre you looking for a simple way to create validated forms with React?\n\nCongratulations! Your search is over, because **`@cat-react/form`** offers you a simple way to create either frontend- or backend-validated forms. Validations can either be processed synchronous or asynchronous and the state of the form is being refreshed in real time.\n\nTake a look at the <a href=\"https://cat-react.github.io/form/\">examples</a> to find out how to create the form of your desire.\n\n```jsx\n<Form>\n    <MyInput name=\"email\"\n             validations={{\n                 isEmail: true,\n                 isRequired: true\n             }}/>\n    <MyInput name=\"email_confirm\"\n             validations={{\n                 isRequired: true,\n                 equalsField: 'email'\n             }}\n             messages={{\n                 isRequired: 'Please confirm your email address.',\n                 equalsField: 'The email addresses do not match each other.'\n             }}/>\n</Form>\n```\n\n## Example Custom TextInput\nHere you can see an example of an custom TextInput which shows how you can implement your own Inputs:\n```jsx\nimport React from 'react';\nimport {Input} from '@cat-react/form'\n\n@Input\nexport default class BasicInput extends React.Component {\n    onChange(event) {\n        this.props.setValue(event.target.value);\n    }\n\n    getClassName() {\n        let className = 'form-control';\n        if (!this.props.isPristine()) {\n            if (this.props.isValid()) {\n                const isWarning = this.props.getMessages().length > 0;\n                if (isWarning) {\n                    className += ' warning';\n                }\n            } else {\n                className += ' error';\n            }\n        }\n        return className;\n    }\n\n    renderMessages() {\n        let messages = [];\n        if (!this.props.isPristine()) {\n            messages = this.props.getMessages();\n        }\n\n        if (!messages || messages.length <= 0) {\n            return null;\n        }\n\n        let className = 'errorText';\n        if (this.props.isValid()) {\n            className = 'warningText';\n        }\n\n        return <ul className={className}>{messages.map((message, i) => <li key={i}>{message}</li>)}</ul>;\n    }\n\n    render() {\n        return (\n            <div className=\"form-group\">\n                <label htmlFor={this.props.name}>{this.props.label} {this.props.isRequired() ? '*' : null}</label>\n                <input type={this.props.type}\n                       className={this.getClassName()}\n                       id={this.props.name}\n                       aria-describedby={this.props.name}\n                       placeholder={this.props.placeholder}\n                       value={this.props.getValue()}\n                       onChange={this.onChange.bind(this)}\n                       onBlur={this.props.touch}/>\n                {this.renderMessages()}\n            </div>\n        );\n    }\n}\n```\n\n**Note**: \nYou need the _babel-plugin-transform-decorators_ plugin to use the ``@Input`` decorator. \nIf you don't want or cannot add this plugin to you webpack config you need to use the HOC as a\nfunction (like the ``connect()`` HOC of Redux).\n\nExample: ``export default Input(BasicInput)``\n\nSee the [Babel Documentation](https://babeljs.io/docs/plugins/transform-decorators/) for a detailed guide\nabout how to add decorators to your application.\n\n## Contribution\nThe project requires at least the latest stable version of node and npm. You also need to have yarn installed globally.\n\nTwo simple steps to get the things running on your local machine:\n- Fork the repo\n- Execute `yarn`\n\nYou can run the examples with `yarn run examples` and the tests with `yarn test`.\n\n### How to build a release\n\n- update the `CHANGELOG.md` with all changes regarding the new release\n- update the release version in the `package.json`\n- push the changes\n- build the project locally with `npm run build`\n- `cd` into the `dist` folder and run `npm publish --access public`\n- draft a new release at `Github` with the contents of the `CHANGELOG.md` file\n\n## License\n[MIT License](/LICENSE)\n\nCopyright (c) 2018 [Catalysts GmbH](https://www.catalysts.cc/)\n","maintainers":[{"email":"admin@cloudflight.io","name":"cloudflight-admin"},{"email":"jakob.englisch@cloudflight.io","name":"jenglisch"}],"time":{"modified":"2022-07-12T15:36:29.369Z","created":"2017-09-11T21:11:59.405Z","0.0.1":"2017-09-11T21:11:59.405Z","0.0.2":"2017-09-17T18:53:01.635Z","0.0.3":"2017-09-17T20:03:46.703Z","0.1.0":"2017-10-02T23:24:18.287Z","0.1.1":"2017-11-21T22:57:07.801Z","0.1.2":"2018-01-30T13:57:23.454Z"},"homepage":"https://github.com/cat-react/form#readme","repository":{"type":"git","url":"git+ssh://git@github.com/cat-react/form.git"},"author":{"name":"Dominik Sumer","email":"dominik.sumer@catalysts.cc"},"bugs":{"url":"https://github.com/cat-react/form/issues"},"license":"MIT","readmeFilename":"README.md"}