{"name":"react-modal","version":"3.13.1","description":"Accessible modal dialog component for React.JS","main":"./lib/index.js","module":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/reactjs/react-modal.git"},"homepage":"https://github.com/reactjs/react-modal","bugs":{"url":"https://github.com/reactjs/react-modal/issues"},"directories":{"example":"examples"},"scripts":{"start":"npx webpack-dev-server --config ./scripts/webpack.config.js --inline --host 127.0.0.1 --content-base examples/","test":"cross-env NODE_ENV=test karma start","lint":"eslint src/"},"authors":["Ryan Florence"],"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.25.0","babel-eslint":"^8.0.1","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-preset-stage-2":"^6.24.1","coveralls":"^3.0.7","cross-env":"^5.0.1","eslint":"^4.8.0","eslint-config-prettier":"^2.6.0","eslint-import-resolver-webpack":"^0.9.0","eslint-plugin-import":"^2.10.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prettier":"^2.3.1","eslint-plugin-react":"^7.17.0","istanbul-instrumenter-loader":"^3.0.0","karma":"^5.1.1","karma-chrome-launcher":"2.2.0","karma-coverage":"^2.0.3","karma-firefox-launcher":"1.0.1","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.1","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^2.0.4","mocha":"^8.1.1","npm-run-all":"^4.1.1","prettier":"^1.7.4","react":"^17.0.0","react-dom":"^17.0.0","react-router":"^4.2.0","react-router-dom":"^4.2.2","should":"^13.1.0","sinon":"next","uglify-js":"3.1.1","webpack":"^4.41.2","webpack-cli":"^3.3.9","webpack-dev-server":"^3.11.0"},"dependencies":{"exenv":"^1.2.0","prop-types":"^15.5.10","react-lifecycles-compat":"^3.0.0","warning":"^4.0.3"},"peerDependencies":{"react":"^0.14.0 || ^15.0.0 || ^16 || ^17","react-dom":"^0.14.0 || ^15.0.0 || ^16 || ^17"},"tags":["react","modal","dialog"],"keywords":["react","react-component","modal","dialog"],"engines":{"node":">=8"},"gitHead":"952368313e7e22d54aae351c913ec5e5b9f87db7","_id":"react-modal@3.13.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-m6yXK7I4YKssQnsjHK7xITSXy2O81BSOHOsg0/uWAsdKtuT9HF2tdoYhRuxNNQg2V+LgepsoHUPJKS8m6no+eg==","shasum":"a02dce63bbfee7582936f1e9835d518ef8f56453","tarball":"http://registry-npm.ywwl.com/react-modal/download/react-modal-3.13.1.tgz","fileCount":19,"unpackedSize":173640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgddMmCRA9TVsSAnZWagAARr0P/Ai3r42WcNdqrmqbB1rC\nix2ji0Wtcc75z8K5NylhP5j2gp9XpDrR89HO3TmjC4TgFlwI7glrgL6q2Cdm\nKdC9RapfDMgxMYJii07/6kmLyx3+dsb/BvjiicSYnUezbsBMPZHFB4Qy+U04\nRZdLoIiXbH9CLbfsMcn+qpcFD2DfFFq6nrFfM7hwTrwDgZ62hPOWhottmlHN\n5SP+cXySs1VSdR5cDhDkO4NvjIZVmavC2Dow+nQYNEqcV5pePnd8M0kAjTul\nkn5grJd+FiWjC/L3d37qSuk+YNbhMnbfXySLq2lziG/0inN8wkyPtxZDA1LU\npMgcP8SosL0NOF3FMcahORu3MZvfM+mLyLzfNzLvDtiFmB1T5Vj8IouS8Vrk\n2Rdo1S/DVyALzkAH6jyD9a2iQufXnLv/Uot1PHw8pTqNpUs6isHpwXkTnRe/\nunJA9gnKt9xa38eo+xD+U60gkT8fJtiDnpRAWvjphuYsWx+RzBeL7OQb9/ox\nkozqepC9RayN/cSloCieEBDKG4Sa+4OAn1urZuXWQMnRRiIKfFAJB2hRWKeh\n74H0cd75S+7LbvQZapjnoCxrFgFWmgj9W7cLhNJZmJxPag8Fji2W8naFx0Bq\nusWt/16uos83dHq9c0YyV2OTvIAmTvz5riB4/fFGBSz4WFO0rByfEffUp+Bj\nmGEE\r\n=hyho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxPzS4eAAN5Z1bPbkgf6aqBkSy6l7ZfuJOA7S/B35Y0QIhAOyq3UnuYXuTDFgbXMdqw+8yujKQ/bb8mj2mP1PATMPT"}],"size":47594,"noattachment":false,"key":"/react-modal/-/react-modal-3.13.1.tgz"},"_npmUser":{"name":"diasbruno","email":"dias.h.bruno@gmail.com"},"maintainers":[{"name":"diasbruno","email":"dias.h.bruno@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-modal_3.13.1_1618334502199_0.7601324676523813"},"_hasShrinkwrap":false,"readme":"# react-modal\n\n# NOTE\n\nNeed feedback to push a new version of `react-modal` forward. See issue [#881](https://github.com/reactjs/react-modal/issues/881). \n\n\nAccessible modal dialog component for React.JS\n\n[![Build Status](https://api.travis-ci.org/reactjs/react-modal.svg)](https://travis-ci.org/reactjs/react-modal)\n[![Coverage Status](https://coveralls.io/repos/github/reactjs/react-modal/badge.svg?branch=master)](https://coveralls.io/github/reactjs/react-modal?branch=master)\n![gzip size](http://img.badgesize.io/https://unpkg.com/react-modal/dist/react-modal.min.js?compression=gzip)\n[![Join the chat at https://gitter.im/react-modal/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/react-modal/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n## Table of Contents\n\n* [Installation](#installation)\n* [API documentation](#api-documentation)\n* [Examples](#examples)\n* [Demos](#demos)\n\n## Installation\n\nTo install, you can use [npm](https://npmjs.org/) or [yarn](https://yarnpkg.com):\n\n\n    $ npm install --save react-modal\n    $ yarn add react-modal\n    \nTo install react-modal in React CDN app:\n\n   - Add this CDN script tag after React CDN scripts and before your JS files (for example from [cdnjs](https://cdnjs.com/)): \n\n            <script src=\"https://cdnjs.cloudflare.com/ajax/libs/react-modal/3.14.3/react-modal.min.js\"\n            integrity=\"sha512-MY2jfK3DBnVzdS2V8MXo5lRtr0mNRroUI9hoLVv2/yL3vrJTam3VzASuKQ96fLEpyYIT4a8o7YgtUs5lPjiLVQ==\"\n            crossorigin=\"anonymous\"\n            referrerpolicy=\"no-referrer\"></script>\n\n   - Use `<ReactModal>` tag inside your React CDN app.\n\n\n## API documentation\n\nThe primary documentation for react-modal is the\n[reference book](https://reactjs.github.io/react-modal), which describes the API\nand gives examples of its usage.\n\n## Examples\n\nHere is a simple example of react-modal being used in an app with some custom\nstyles and focusable input elements within the modal content:\n\n```jsx\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport Modal from 'react-modal';\n\nconst customStyles = {\n  content: {\n    top: '50%',\n    left: '50%',\n    right: 'auto',\n    bottom: 'auto',\n    marginRight: '-50%',\n    transform: 'translate(-50%, -50%)',\n  },\n};\n\n// Make sure to bind modal to your appElement (https://reactcommunity.org/react-modal/accessibility/)\nModal.setAppElement('#yourAppElement');\n\nfunction App() {\n  let subtitle;\n  const [modalIsOpen, setIsOpen] = React.useState(false);\n\n  function openModal() {\n    setIsOpen(true);\n  }\n\n  function afterOpenModal() {\n    // references are now sync'd and can be accessed.\n    subtitle.style.color = '#f00';\n  }\n\n  function closeModal() {\n    setIsOpen(false);\n  }\n\n  return (\n    <div>\n      <button onClick={openModal}>Open Modal</button>\n      <Modal\n        isOpen={modalIsOpen}\n        onAfterOpen={afterOpenModal}\n        onRequestClose={closeModal}\n        style={customStyles}\n        contentLabel=\"Example Modal\"\n      >\n        <h2 ref={(_subtitle) => (subtitle = _subtitle)}>Hello</h2>\n        <button onClick={closeModal}>close</button>\n        <div>I am a modal</div>\n        <form>\n          <input />\n          <button>tab navigation</button>\n          <button>stays</button>\n          <button>inside</button>\n          <button>the modal</button>\n        </form>\n      </Modal>\n    </div>\n  );\n}\n\nReactDOM.render(<App />, appElement);\n```\n\nYou can find more examples in the `examples` directory, which you can run in a\nlocal development server using `npm start` or `yarn run start`.\n\n## Demos\n\nThere are several demos hosted on [CodePen](https://codepen.io) which\ndemonstrate various features of react-modal:\n\n* [Minimal example](https://codepen.io/claydiffrient/pen/KNxgav)\n* [Using setAppElement](https://codepen.io/claydiffrient/pen/ENegGJ)\n* [Using onRequestClose](https://codepen.io/claydiffrient/pen/KNjVBx)\n* [Using shouldCloseOnOverlayClick](https://codepen.io/claydiffrient/pen/woLzwo)\n* [Using inline styles](https://codepen.io/claydiffrient/pen/ZBmyKz)\n* [Using CSS classes for styling](https://codepen.io/claydiffrient/pen/KNjVrG)\n* [Customizing the default styles](https://codepen.io/claydiffrient/pen/pNXgqQ)\n","publish_time":1618334502465,"_cnpm_publish_time":1618334502465,"dist-tags":{"latest":"3.16.3","next":"3.0.0-rc2"}}