{"_id":"@d1g1t/formik","_rev":"1-29662c64fc2689e0425d5881a7579401","name":"@d1g1t/formik","dist-tags":{"latest":"3.0.5"},"versions":{"3.0.5":{"name":"@d1g1t/formik","private":false,"publishConfig":{"access":"public"},"description":"Forms in React, without tears","version":"3.0.5","license":"MIT","author":{"name":"Jared Palmer","email":"jared@palmer.net"},"repository":{"type":"git","url":"git+https://github.com/d1g1tinc/formik.git"},"keywords":["formik","react","react-dom","form","hooks","validation","forms","higher order component","hoc"],"main":"dist/index.js","umd:main":"dist/formik.umd.production.js","module":"dist/formik.esm.js","typings":"dist/index.d.ts","peerDependencies":{"react":">=16.3.0"},"scripts":{"test":"tsdx test --env=jsdom","test:watch":"npm run test -- --watchAll","start":"cross-env NODE_ENV=development tsdx watch --verbose","prebuild":"rimraf dist","build":"cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd","prepublish":"npm run build","format":"prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md' '/docs/**/*.md'","precommit":"lint-staged","addc":"all-contributors add","gen-docs":"all-contributors generate && doctoc README.md","size":"size-limit","lint":"tsdx lint"},"dependencies":{"deepmerge":"^2.1.1","hoist-non-react-statics":"^3.3.0","lodash":"^4.17.14","lodash-es":"^4.17.14","react-fast-compare":"^2.0.1","scheduler":"^0.18.0","tiny-warning":"^1.0.2","tslib":"^1.10.0"},"resolutions":{"@types/react":"16.9.17","@types/react-dom":"16.9.4"},"devDependencies":{"@types/hoist-non-react-statics":"^3.3.1","@types/jest":"^24.0.5","@types/lodash":"^4.14.119","@types/react":"^16.9.17","@types/react-dom":"^16.9.4","@types/warning":"^3.0.0","@types/yup":"^0.24.9","all-contributors-cli":"^4.4.0","cp-cli":"^1.1.2","cross-env":"5.0.5","doctoc":"^1.3.0","husky":"0.14.3","just-debounce-it":"^1.1.0","lint-staged":"4.0.2","prettier":"^1.19.1","react":"^16.12.0","react-dom":"^16.12.0","react-testing-library":"^7.0.0","rimraf":"^2.6.2","tsdx":"0.12.3","typescript":"^3.7.4","yup":"^0.28.1"},"lint-staged":{"**/*.{ts,tsx}":["prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md' '/docs/**/*.md'","tsdx lint","git add"]},"prettier":{"trailingComma":"es5","singleQuote":true,"semi":true},"jest":{"globals":{"__DEV__":"boolean"},"collectCoverageFrom":["src/**/*.{ts,tsx}"],"setupFilesAfterEnv":["react-testing-library/cleanup-after-each.js","<rootDir>/test/setupTests.ts"]},"size-limit":[{"path":"./dist/index.js","limit":"14 kB"},{"path":"./dist/formik.esm.js","limit":"14 kB"},{"path":"./dist/formik.umd.production.js","limit":"14 kB"}],"gitHead":"d36033bcdcef5ae906f158690765430f1b834b71","bugs":{"url":"https://github.com/d1g1tinc/formik/issues"},"homepage":"https://github.com/d1g1tinc/formik#readme","_id":"@d1g1t/formik@3.0.5","_nodeVersion":"12.16.1","_npmVersion":"lerna/3.19.0/node@v12.16.1+x64 (linux)","dist":{"integrity":"sha512-q6KYJDUFpPocTWdHHcQQTGfmrIPuhLwb6oi2ZvadY4/lZclm8oLwjhByog82E0sosPhsw8BlJRuYZTPkXOfocw==","shasum":"4112266b15564f3c9b073d3c8658fb98b09dedff","tarball":"https://registry.npmjs.org/@d1g1t/formik/-/formik-3.0.5.tgz","fileCount":27,"unpackedSize":417079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeamYkCRA9TVsSAnZWagAAOeIQAJM5URwGSNnDKoXRVj7w\nDW8M9/wd7edAb7ewMXbZ52QiXHVhA40z6Wr2oQIuaYM6KGuKi96GfcI2oWNf\nQ09E1FrP/vdS8SiYRrZp4s/9yLaNmm446fhfeXJ4ZOMRstzA+P9vfnIRwV8A\nJZqML5GxsPhwzKTVU68gms3tAUFY/zX566IQCrzSn/guD4VCZxH6xiabgjzO\nzX0fyYbQD/yXuSiGMnnysoLOLFljcXry9iNKZl8gJG+X+dxGVAkwVCAJ4ryx\nMzWmDB/OEueObdR6+iW68dWJSpQjXN87YjMZczKv8QDu4Vf/RA9xTPJXgF8r\nekziDgxBvy5Giyb8Si1Ona74c/JSzUlLyLuyeHpaPuUw4brJbPmSw4SA8PFC\n0o00pJP/wOW4roT31zTDIdQb+MtCFI0iLXrsHE75n5bLawNgAgKxhcjcZVpY\nG9VNfah5Bl11k6L2Rx7J6Tqyk924is+a9gpmqJoEyUoqm9/EVm96adHcWC68\nsvYvso+mOiUBS7R+2Dgx5893PLP6UoZMDxjd0KqjUkNoCnQanvNJ6UasHLSg\nKhebvfhBNe35mDIVucw6uaG8t6J+5NDhqY8mLWiuq81+V3hoXBzv6X3LXoIy\nJCZ5KgphHDfnj5Cjw0PltKqeimXkRZT0YIdz1DQlsIBPQ5j4815J1Bkpz8wp\nSOo9\r\n=kc3l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVR9szSAiJLV052CqgQ6VmmKABwLcB+OE2RhiqUR8udAiBrJ7vLjfHq+a0UY4CipQdq3Dw6spVH1lB3wgknJXZ97A=="}]},"maintainers":[{"name":"azmenak","email":"adam.zmenak@gmail.com"}],"_npmUser":{"name":"azmenak","email":"adam.zmenak@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formik_3.0.5_1584031268326_0.02729049920385762"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-12T16:41:08.116Z","3.0.5":"2020-03-12T16:41:08.463Z","modified":"2022-04-05T02:29:18.760Z"},"maintainers":[{"name":"azmenak","email":"adam.zmenak@gmail.com"}],"description":"Forms in React, without tears","homepage":"https://github.com/d1g1tinc/formik#readme","keywords":["formik","react","react-dom","form","hooks","validation","forms","higher order component","hoc"],"repository":{"type":"git","url":"git+https://github.com/d1g1tinc/formik.git"},"author":{"name":"Jared Palmer","email":"jared@palmer.net"},"bugs":{"url":"https://github.com/d1g1tinc/formik/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <img src=\"https://user-images.githubusercontent.com/4060187/61057426-4e5a4600-a3c3-11e9-9114-630743e05814.png\" width=\"211\" height=\"182\" alt=\"Formik.js\" />\n</p>\n\n<h3 align=\"center\">\n  Build forms in React, without the tears.\n</h3>\n\n<br>\n\n[![Stable Release](https://img.shields.io/npm/v/formik.svg)](https://npm.im/formik)\n[![Blazing Fast](https://badgen.now.sh/badge/speed/blazing%20%F0%9F%94%A5/green)](https://npm.im/formik)\n[![gzip size](http://img.badgesize.io/https://unpkg.com/formik@latest/dist/formik.umd.production.min.js?compression=gzip)](https://unpkg.com/formik@latest/dist/formik.umd.production.min.js)\n[![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE)\n[![Discord](https://img.shields.io/discord/102860784329052160.svg?style=flat-square)](https://discord.gg/cU6MCve)\n[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/palmer)\n\n**Visit [https://jaredpalmer.com/formik](https://jaredpalmer.com/formik) to get started with Formik.**\n\n---\n\n**The below readme is the documentation for the `canary` (prerelease) version of Formik. To view the documentation for the latest stable Formik version visit [jaredpalmer.com/formik/docs](https://jaredpalmer.com/formik/docs/overview)**\n\n---\n\nLet's face it, forms are really verbose in\n[React](https://github.com/facebook/react). To make matters worse, most form\nhelpers do wayyyy too much magic and often have a significant performance cost\nassociated with them. Formik is a small library that helps you with the 3 most\nannoying parts:\n\n1.  Getting values in and out of form state\n2.  Validation and error messages\n3.  Handling form submission\n\nBy colocating all of the above in one place, Formik will keep things\norganized--making testing, refactoring, and reasoning about your forms a breeze.\n\n<div id=\"handleblur-e-any--void\"></div>\n<div id=\"handlechange-e-any--void\"></div>\n\n## Docs\n\n- [Get Started](https://jaredpalmer.com/formik/docs/overview)\n- [API Reference](https://jaredpalmer.com/formik/docs/api/formik)\n- [Articles / Tutorials](https://jaredpalmer.com/formik/docs/resources)\n- [Get Help](https://jaredpalmer.com/formik/help)\n- [Release Notes](https://github.com/jaredpalmer/formik/releases)\n\n## In-browser Playgrounds\n\nYou can play with Formik in your web browser with these live online playgrounds.\n\n- CodeSandbox (ReactDOM) https://codesandbox.io/s/zKrK5YLDZ\n- Expo Snack (React Native) https://snack.expo.io/@jaredpalmer/basic-formik-x-react-native-example\n\n## Examples\n\n- [Basics](https://codesandbox.io/s/zKrK5YLDZ)\n- [Sync Validation](https://codesandbox.io/s/q8yRqQMp)\n- [Building your own input primitives](https://codesandbox.io/s/qJR4ykJk)\n- Working with 3rd-party inputs:\n  - [react-select-v1](https://codesandbox.io/s/jRzE53pqR)\n  - [react-select-v2](https://codesandbox.io/s/73jj9zom96)\n  - [Draft.js](https://codesandbox.io/s/QW1rqjBLl)\n- [Accessing React lifecycle functions](https://codesandbox.io/s/pgD4DLypy)\n- [React Native](https://snack.expo.io/@ferrannp/react-native-x-formik)\n- [TypeScript](https://codesandbox.io/s/8y578o8152)\n- [Handling API Errors](https://codesandbox.io/s/nw193yq32l)\n\n## Organizations and projects using Formik\n\n[List of organizations and projects using Formik](https://github.com/jaredpalmer/formik/issues/87)\n\n## Authors\n\n- Jared Palmer [@jaredpalmer](https://twitter.com/jaredpalmer)\n- Ian White [@eonwhite](https://twitter.com/eonwhite)\n\n## Contributors\n\nFormik is made with <3 thanks to these wonderful people\n([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore -->\n| [<img src=\"https://avatars2.githubusercontent.com/u/4060187?v=4\" width=\"100px;\"/><br /><sub><b>Jared Palmer</b></sub>](http://jaredpalmer.com)<br />[💬](#question-jaredpalmer \"Answering Questions\") [💻](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer \"Code\") [🎨](#design-jaredpalmer \"Design\") [📖](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer \"Documentation\") [💡](#example-jaredpalmer \"Examples\") [🤔](#ideas-jaredpalmer \"Ideas, Planning, & Feedback\") [👀](#review-jaredpalmer \"Reviewed Pull Requests\") [⚠️](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer \"Tests\") | [<img src=\"https://avatars0.githubusercontent.com/u/109324?v=4\" width=\"100px;\"/><br /><sub><b>Ian White</b></sub>](https://www.stardog.io)<br />[💬](#question-eonwhite \"Answering Questions\") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Aeonwhite \"Bug reports\") [💻](https://github.com/jaredpalmer/formik/commits?author=eonwhite \"Code\") [📖](https://github.com/jaredpalmer/formik/commits?author=eonwhite \"Documentation\") [🤔](#ideas-eonwhite \"Ideas, Planning, & Feedback\") [👀](#review-eonwhite \"Reviewed Pull Requests\") | [<img src=\"https://avatars0.githubusercontent.com/u/829963?v=4\" width=\"100px;\"/><br /><sub><b>Andrej Badin</b></sub>](http://andrejbadin.com)<br />[💬](#question-Andreyco \"Answering Questions\") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AAndreyco \"Bug reports\") [📖](https://github.com/jaredpalmer/formik/commits?author=Andreyco \"Documentation\") | [<img src=\"https://avatars2.githubusercontent.com/u/91115?v=4\" width=\"100px;\"/><br /><sub><b>Adam Howard</b></sub>](http://adz.co.de)<br />[💬](#question-skattyadz \"Answering Questions\") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Askattyadz \"Bug reports\") [🤔](#ideas-skattyadz \"Ideas, Planning, & Feedback\") [👀](#review-skattyadz \"Reviewed Pull Requests\") | [<img src=\"https://avatars1.githubusercontent.com/u/6711845?v=4\" width=\"100px;\"/><br /><sub><b>Vlad Shcherbin</b></sub>](https://github.com/VladShcherbin)<br />[💬](#question-VladShcherbin \"Answering Questions\") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AVladShcherbin \"Bug reports\") [🤔](#ideas-VladShcherbin \"Ideas, Planning, & Feedback\") | [<img src=\"https://avatars3.githubusercontent.com/u/383212?v=4\" width=\"100px;\"/><br /><sub><b>Brikou CARRE</b></sub>](https://github.com/brikou)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Abrikou \"Bug reports\") [📖](https://github.com/jaredpalmer/formik/commits?author=brikou \"Documentation\") | [<img src=\"https://avatars0.githubusercontent.com/u/5314713?v=4\" width=\"100px;\"/><br /><sub><b>Sam Kvale</b></sub>](http://skvale.github.io)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Askvale \"Bug reports\") [💻](https://github.com/jaredpalmer/formik/commits?author=skvale \"Code\") [⚠️](https://github.com/jaredpalmer/formik/commits?author=skvale \"Tests\") |\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| [<img src=\"https://avatars0.githubusercontent.com/u/13765558?v=4\" width=\"100px;\"/><br /><sub><b>Jon Tansey</b></sub>](http://jon.tansey.info)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Ajontansey \"Bug reports\") [💻](https://github.com/jaredpalmer/formik/commits?author=jontansey \"Code\") | [<img src=\"https://avatars0.githubusercontent.com/u/6819171?v=4\" width=\"100px;\"/><br /><sub><b>Tyler Martinez</b></sub>](http://slightlytyler.com)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Aslightlytyler \"Bug reports\") [📖](https://github.com/jaredpalmer/formik/commits?author=slightlytyler \"Documentation\") | [<img src=\"https://avatars0.githubusercontent.com/u/1285032?v=4\" width=\"100px;\"/><br /><sub><b>Tobias Lohse</b></sub>](http://MrLoh.se)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AMrLoh \"Bug reports\") [💻](https://github.com/jaredpalmer/formik/commits?author=MrLoh \"Code\") |\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the\n[all-contributors](https://github.com/kentcdodds/all-contributors)\nspecification. Contributions of any kind welcome!\n\n## Related\n\n- [TSDX](https://github.com/jaredpalmer/tsdx) - Zero-config CLI for TypeScript used by this repo.\n\n---\n\n[MIT License.](https://github.com/jaredpalmer/formik/blob/master/LICENSE)\n","readmeFilename":"README.md"}