{"_id":"@austral-ui/render-if","_rev":"4-ac43a73d6b3d9ab0032dbce7bbf72c8b","time":{"created":"2022-05-23T19:24:21.218Z","0.0.1":"2022-05-23T19:00:09.217Z","modified":"2022-05-23T19:36:34.892Z","1.0.0":"2022-05-23T19:24:21.361Z","1.0.1":"2022-05-23T19:36:34.810Z"},"name":"@austral-ui/render-if","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@austral-ui/render-if","version":"1.0.0","author":{"name":"Oscar Cornejo Aguila"},"description":"RenderIf is a function that receives a validation as a parameter, and if that validation is true, the content passed as children will be displayed. Try it!","private":false,"license":"MIT","repository":{"type":"git","url":"git+https://github.com/oscarcornejo/render-if.git"},"keywords":["react","hooks","hook","react-hooks","window","resize","viewport","viewport-sizes","sizes","dimensions","typescript","render","validation"],"publishConfig":{"access":"public"},"main":"./index.umd.js","module":"./index.esm.js","typings":"./index.d.ts","dependencies":{},"peerDependencies":{"react":"18.1.0","react-dom":"18.1.0"},"gitHead":"902d7a8896c3a1afc12986793f97415e0bfc0b23","bugs":{"url":"https://github.com/oscarcornejo/render-if/issues"},"homepage":"https://github.com/oscarcornejo/render-if#readme","_id":"@austral-ui/render-if@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.5.3","dist":{"integrity":"sha512-cE60E+4EIBcRuZ7K60s4j+2Mj51a5c/pi1FEbow6yGI2e0CPZSj0Z0STQl3uNMFLWZNQULQ58eaAwOrLiulsrQ==","shasum":"4f92a6edf8fe767538028e61a85cf9c095a018be","tarball":"https://registry.npmjs.org/@austral-ui/render-if/-/render-if-1.0.0.tgz","fileCount":6,"unpackedSize":3119,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYqlqpNZa4P2mVunFHl/t/jJNOFShfE/N6fscV3sraRQIhAJLwBlUFrFoI+3KrKkgP51hBXgWnZOs59/P7R22qowtr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii99lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO9g/9HLXIMXAV7DLbFJOh92YBYk77NoMW6N7YgNa+AQ7JUfuABpeX\r\nSwNGqokFo65ZjFbvwgNVB8tDrK6HyklTBVsdve2bJCxZjEdE5PdVOM5gj4rj\r\nVEp+ST1/zKChQZIGtv0KDY6i7NgR+CWyAOiATgZw+ekFqRo2AjdJXYeSmnpe\r\nvxW4LYe4Z4AJkrOYBZVbeEpJZHdDcr3VW8F1h5bPvNm5bf92OJN3tUB1wZMb\r\nnJRN2VVr8debe8m+9ApytiFgOLadOQjwbeUKUSY/zER2sJVmwUaFIHcGsdt1\r\nU3/a4BaYBFIl29+TU1yY+AoiPBDYkyj9yUsGgDK2RClHCatS44nrZ/zQFjrM\r\nzuhI++OkcBl6qnvBXwPgJWzN+Oa8hEv46HtK8xaFQL5B7KqZjVfvMJTkCwW1\r\ngAWKOCdsiI8vCShtsqfh7uhx+2KqzWLKCucEKn/KLh1UMUeKo2YOEMgN/P8B\r\n7H+EH3B8VQXx00Y5fV1Mfe/RMuxAp1Pg21OaEkttXX0Gu69tJlXw21lBWxq2\r\n78eMYHBCEjAeE7zlPnEyCrI1Dtsk6qHoj2l9KHz43HKCrVbkIKZ5ZG1eA3ka\r\nxhfG8gQYqG0K9UY78Wv9mCWRUw5aVKwskL6lFNcTDgZGAcV4wkV9a6iUtaIA\r\nXfNPExUh30AU5+7rw+OOZnp9QGJA0WtDaaY=\r\n=gUY8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"oscarcornejo","email":"oscarcornejo10@gmail.com"},"directories":{},"maintainers":[{"name":"oscarcornejo","email":"oscarcornejo10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/render-if_1.0.0_1653333861267_0.3545779968428888"},"_hasShrinkwrap":false},"1.0.1":{"name":"@austral-ui/render-if","version":"1.0.1","author":{"name":"Oscar Cornejo Aguila"},"description":"RenderIf is a function that receives a validation as a parameter, and if that validation is true, the content passed as children will be displayed. Try it!","private":false,"license":"MIT","repository":{"type":"git","url":"git+https://github.com/oscarcornejo/render-if.git"},"keywords":["react","hooks","hook","react-hooks","window","resize","viewport","viewport-sizes","sizes","dimensions","typescript","render","validation"],"publishConfig":{"access":"public"},"main":"./index.umd.js","module":"./index.esm.js","typings":"./index.d.ts","dependencies":{},"peerDependencies":{"react":"18.1.0","react-dom":"18.1.0"},"gitHead":"902d7a8896c3a1afc12986793f97415e0bfc0b23","bugs":{"url":"https://github.com/oscarcornejo/render-if/issues"},"homepage":"https://github.com/oscarcornejo/render-if#readme","_id":"@austral-ui/render-if@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.5.3","dist":{"integrity":"sha512-WRn1p0Ecs4IegSYsBPW3MrfXxNSoTjRzFMXn+zDzi2g30uL8MSGsZbEm21dtPPSgI95icqzaCUbstycBhgETcQ==","shasum":"0c526457f33f4d183ac2f699761b661eda19e44c","tarball":"https://registry.npmjs.org/@austral-ui/render-if/-/render-if-1.0.1.tgz","fileCount":6,"unpackedSize":3116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpz8/oQh6gpaEnCL+8MzkS1N8lUEw/Of8T+Qnn6vIi7wIhAJIAfSDyzAtpczgSWxo0zQs5P+u6rBMC7V9MOZ80/Mlg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii+JCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRmQ//RiIJysgOQNjZro6Z80/eTE3XPrWqy2EPyu46tB0Wte0OWa+j\r\nnZyO04JEp3/YUmEOlbma7xJ0qKGPnx1AH74Qh/ZY63neFRrLjwKwWOpGTttl\r\n+IlAotMtnoYmWvnT1m1P570Q0X3Eko3Y4I+Bzy+2Yg5tJbRcAGkn8LvJsEas\r\nAe2i0vLmFY6mA+fq6x/NDbOUboqrqPF8BVT4QHN8ruplI44H43K+nqzwnl4W\r\nL0W38n9q3jw1L9mz7T02nHIiKUGlPPd9K7cdyEW4L9CZqsIif8JJ+OCmus4b\r\nTMOkOMypcB5cqtUWc7PIK2fmed+HNehGS8dZFOwi0nS6+rRd0B/3BkF0n9o0\r\nxcG0HAgoMVeoO+Z55VVzV6nfWKIA7n/lRUxgwnF1U3km3m6f+7rcR72qWyio\r\nCtAq19Qi9rje7PauLakqwHZiR8EpUSO49ttahbYtpyuSrM5S9a+313gvqmQ0\r\nKSjierAMcvrAVQbpaXqM1FO9ff6tNNfBgYIOwvjICAmDDcx2kvaCijwe3aTL\r\n6AuOVMDCDm/ARSqs9QpNumUEpDdXEYM3ORrcxvOhaTpZFCWkppXVGu0lWW7n\r\nSYXa6CWRSFsIpsJOi3zc+f9jpq6vkRwbliSwcDJKnUDpxZWQlziPWw6OGSGQ\r\n55pi/CAvKdU0x+8qIQzhev4QGpcMb6cOdmE=\r\n=w/bQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"oscarcornejo","email":"oscarcornejo10@gmail.com"},"directories":{},"maintainers":[{"name":"oscarcornejo","email":"oscarcornejo10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/render-if_1.0.1_1653334594633_0.6459830725908147"},"_hasShrinkwrap":false}},"maintainers":[{"name":"oscarcornejo","email":"oscarcornejo10@gmail.com"}],"description":"RenderIf is a function that receives a validation as a parameter, and if that validation is true, the content passed as children will be displayed. Try it!","homepage":"https://github.com/oscarcornejo/render-if#readme","keywords":["react","hooks","hook","react-hooks","window","resize","viewport","viewport-sizes","sizes","dimensions","typescript","render","validation"],"repository":{"type":"git","url":"git+https://github.com/oscarcornejo/render-if.git"},"author":{"name":"Oscar Cornejo Aguila"},"bugs":{"url":"https://github.com/oscarcornejo/render-if/issues"},"license":"MIT","readme":"# RenderIf\n\n![npm](https://img.shields.io/badge/npm-austral--ui%2Frender--if-blue)\n![GitHub issues](https://img.shields.io/github/issues-raw/oscarcornejo/render-if)\n![NPM](https://img.shields.io/npm/dw/@austral-ui/render-if)\n\nRenderIf is a function that receives a validation as a parameter, and if that validation is true, the content passed as children will be displayed. Try it!\n\n## Installation\n\n```\nnpm install @austral-ui/render-if\n```\n\n## Usage\n\n### **See it in Action**\n\n```\nimport React from 'react';\nimport { RenderIf } from '@austral-ui/render-if';\n\nexport function App() {\n\n  const widthSize = window.innerWidth;\n\n  return (\n    <div>\n        <RenderIf isTrue={widthSize > 600}>\n          <span>You are using a large screen</span>\n        </RenderIf>\n    </div>\n  );\n}\n\nexport default App;\n```\n\n## Support\n\nIf you have read the examples and have any issues which you know are glitches, or would like to request something changed, please feel free to [post an issue on Github](https://github.com/oscarcornejo/render-if/issues/new).\n\nOtherwise, if this was useful and you'd like to show your support, no donations necessary, but please consider [checking out the repo](https://github.com/oscarcornejo/render-if) and giving it a star (⭐).\n\n## License\n\n- Open Source **[MIT license](http://opensource.org/licenses/mit-license.php)**\n","readmeFilename":"README.md"}