{"name":"@rc-component/portal","version":"1.0.0-3","description":"React Portal Component","keywords":["react","react-component","react-portal"],"homepage":"https://github.com/react-component/portal","bugs":{"url":"https://github.com/react-component/portal/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/portal.git"},"license":"MIT","author":{"name":"smith3816@gmail.com"},"main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","deploy":"npm run docs:build && npm run docs:deploy","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","lint":"eslint src/ --ext .tsx,.ts","lint:tsc":"tsc -p tsconfig.json --noEmit","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","start":"dumi dev","test":"umi-test","test:coverage":"umi-test --coverage","watch":"father dev"},"dependencies":{"@babel/runtime":"^7.18.0","rc-util":"^5.8.0"},"devDependencies":{"@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.0.0","@types/jest":"^26.0.20","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^2.5.2","dumi":"^1.1.0","eslint":"^7.18.0","father":"^4.0.0-rc.8","gh-pages":"^3.1.0","np":"^5.0.3","prettier":"^2.1.2","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^4.6.3","umi-test":"^1.9.7"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"engines":{"node":">=8.x"},"gitHead":"a36fbfd8a80b588adf67d8a2113ce8d1868e5271","_id":"@rc-component/portal@1.0.0-3","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-PNtoczkuilOaWXbYGFC+pUuDE01cHdBUqRxqfxot35CKvFe/mO20HXVIZnI+REXjI3hXTIOc/rwIW2KQ9wzD4g==","shasum":"c377fde8864d477c129e68b6593be95a8da358e9","tarball":"http://registry-npm.ywwl.com/@rc-component/portal/download/@rc-component/portal-1.0.0-3.tgz","fileCount":27,"unpackedSize":23405,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTVjvyTKCHmCqNNMdT2gXClwfKbmASjbEcgA+texi6fAiBypXHqJ+hXr2a7snZPc7LCod9agb1ZSkN5I2FYJNk7BA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMs+IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9Qg/9FCNaYO6RTNsFNOt1Q5ZOeYtZy1qHxjrIm7uYwfLpAktRA6jW\r\n6lC2jnzEIbUi6HG/X0irWz6gEkkKege/nawbciZ05yNafP6sPoyvhzmedSgX\r\nB8w6x+6zQTUaSJEzgFjLpFqv2f9ZtU3WpdhcrecIlmB17s/A0PFhMxpNFHQQ\r\nuHwjUp5r5b1qW4aRlZ8BUHC93yCzSuniCjcx4cwU4LtDViWgAzHIiqEE94SB\r\nZ92K9S6INlF9/xkGk8vQ6xGxCrKnmO3DrQx0k3cPLsJo4H/EJxIn/dreLq6h\r\n1wAyAV82q1tWmjY7/yznxc0+4Hj5ou50W8actR7gGVsIyJBLS48NgrWyk8mY\r\nxR5ej0DSkpcxgq2Ccbj4l5TH3oWVLC+lcFIlFelr5AtKEdY/vUlratG+orwG\r\n0SUL8vqVjjj7TMz3FwEaaDPQqF5bgPryLxMbyUpAk1Z9iD5s1a0k71taG/Y6\r\n7aZS/vmzgc6Y5k3hWJ05/CJP9xZjPv/ybrXM2lDYFu9ZyNEGbvprYTRyodTG\r\nbDHxieWgYs1p9eFgMrQOqGQ2TXikGZguQrfFlXZF9YIQBaAA8ptjyn048T1V\r\nEhIV1d4naH7BrHDloRSej2g6p+G9kRVsluRnZDYajCetovGH312gzPgQ8YOR\r\nx3VY37VmdpJ6zCCemcfXLgXOifKmgQ7eESc=\r\n=untp\r\n-----END PGP SIGNATURE-----\r\n","size":5704,"noattachment":false,"key":"/@rc-component/portal/-/@rc-component/portal-1.0.0-3.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/portal_1.0.0-3_1664274312153_0.28059759112721583"},"_hasShrinkwrap":false,"readme":"# rc-portal\n\nReact 18 supported Portal Component.\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-portal.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-portal\n[github-actions-image]: https://github.com/react-component/portal/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/portal/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/portal/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/portal\n[download-image]: https://img.shields.io/npm/dm/rc-portal.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-portal\n\n## Development\n\n```bash\nnpm install\nnpm start\nopen http://localhost:8000\n```\n\n## Feature\n\n- React life cycle support portal component\n\n## Install\n\n[![rc-portal](https://nodei.co/npm/rc-portal.png)](https://npmjs.org/package/rc-portal)\n\n## Usage\n\n```js | pure\nimport Portal from 'rc-portal';\n\nconst Demo = () => {\n  return <Portal open>Hello World</Portal>;\n};\n\nexport default Demo;\n```\n\n## 🔥 API\n\nWe use typescript to create the Type definition. You can view directly in IDE. But you can still check the type definition [here](https://github.com/react-component/portal/blob/master/src/interface.ts).\n\n### Portal\n\n| Prop         | Description                        | Type                     | Default       |\n| ------------ | ---------------------------------- | ------------------------ | ------------- |\n| getContainer | Customize portal container element | Element \\| () => Element | document.body |\n| open         | Show the portal                    | boolean                  | false         |\n| autoLock     | Lock screen scroll when open       | boolean                  | false         |\n","publish_time":1664274312336,"_cnpm_publish_time":1664274312336,"dist-tags":{"latest":"2.2.1"}}