{"_id":"@dlazar/polaris-view-components","name":"@dlazar/polaris-view-components","dist-tags":{"latest":"0.9.1"},"versions":{"0.9.1":{"name":"@dlazar/polaris-view-components","version":"0.9.1","description":"ViewComponents for Polaris Design System","main":"app/assets/javascripts/polaris_view_components.js","module":"app/assets/javascripts/polaris_view_components/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/baoagency/polaris_view_components.git"},"author":{"name":"By Association Only"},"contributors":[{"name":"Dan Gamble","email":"dan@dangamble.co.uk"},{"name":"Kirill Platonov","email":"mail@kirillplatonov.com"}],"publishConfig":{"access":"public"},"license":"MIT","peerDependencies":{"@hotwired/stimulus":"^3.0.0","@rails/request.js":"^0.0.6"},"scripts":{"build":"rollup --config rollup.config.js","build:css":"postcss ./app/assets/stylesheets/polaris_view_components.postcss.css -o ./app/assets/stylesheets/polaris_view_components.css","prerelease":"yarn build && yarn build:css && git --no-pager diff && echo && npm pack --dry-run && echo && read -n 1 -p \"Look OK? Press any key to publish and commit v$npm_package_version\" && echo","release":"npm publish"},"devDependencies":{"@popperjs/core":"^2.11.2","@rollup/plugin-node-resolve":"^13.1.3","@shopify/polaris":"7.6.0","postcss":"^8.4.5","postcss-cli":"^9.1.0","postcss-import":"^14.0.2","postcss-nested":"^5.0.6","rollup":"^2.70.1","rollup-plugin-terser":"^7.0.2"},"dependencies":{"@hotwired/stimulus":"^3.0.1","@rails/request.js":"^0.0.6"},"gitHead":"826e5385451d1ba29917c326691f9a9ad42caa93","bugs":{"url":"https://github.com/baoagency/polaris_view_components/issues"},"homepage":"https://github.com/baoagency/polaris_view_components#readme","_id":"@dlazar/polaris-view-components@0.9.1","_nodeVersion":"17.7.2","_npmVersion":"8.5.2","dist":{"integrity":"sha512-HoltoiasN2BYpxeosYsfUhuqMSZlai5oFNKBRqY5vl6KXR4t23P4Z8BIHXIpfQuyrY+yCD0clFAhyzceCYwhUQ==","shasum":"e21f0b9c100aeed99ef6a3acc0b73c3e0e085ee5","tarball":"https://registry.npmjs.org/@dlazar/polaris-view-components/-/polaris-view-components-0.9.1.tgz","fileCount":4,"unpackedSize":91112,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMRdr7ShSAhrX3gzkPk2CNbXcPuIJRIhoOZgFwLupsfAIhAJCzao/6R1PCr3J6kIwHzT6uAbj3YRwgl9o8DOEzMHIY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUH6OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLtw//SHaKcSS6qvC0L4jsCoPn+jSNyH5Zx71pfGfJO6TVcvtzwMYF\r\n3a5TrMsV3LrhgFFSmqmBOCC7iTKzqiGK45lX08K9aKc6hVUA3y6+m6cPYXMo\r\nwkmiIhEhO8MJVWcOtKQNJd4dL+exXIxmVsD0eSN/jNS3uC+gu16SWOmddSZs\r\nEa97Q/DbB2xQKxTVUvj5+5DZ/WFRSljkNFjDpVOIQmEAhIK57pdgTG5yP/08\r\n9x0DyUU2JNhUBNamLDNAVWYRh49dqZ2aF1M5CmzdRYYqnjV1H14rhSV7HQwk\r\nKe5aNI2B9sUOeXlmldobjurMJxY33C2DLi+pwY7WTmE9Y+sbi+FiyUKWh8wd\r\n1DzuRx3j9ocqvvcNh8GNWWISR1cLCFe7KdB3mPSiRhRkg825rp6J+zk1ZNbw\r\nhZfsFGu4O1YNMPf/7J5Idxb2XJJj+u25ddxMvIA6ZPyWkXXDE9taQhhq6TFn\r\npEGC1R7c7GYOQT9NICpMmDxuHdUsL1/rEkQvjHl3ujdgHEH5L7VE5F8cHlFZ\r\ncx46sGBK2Zw2R0+2SmayvnFL6B3pFQqj8TybZtkbDnUIcrfIFOtEh/74Gtkg\r\nG0u3kfDKTCfQ8nn3VTz8Z13vfwOkveQlfLDMIFao/hvNbAuXwT1vBa+0EO8J\r\n6AbWwxjHUwYa1EDJG6tmBdNaDGeKVkZCTzc=\r\n=Kc/Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dlazar","email":"dlazar@resistorsoftware.com"},"directories":{},"maintainers":[{"name":"dlazar","email":"dlazar@resistorsoftware.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/polaris-view-components_0.9.1_1649442446586_0.07425573107824146"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-08T18:27:26.524Z","0.9.1":"2022-04-08T18:27:26.836Z","modified":"2022-04-08T18:27:26.970Z"},"maintainers":[{"name":"dlazar","email":"dlazar@resistorsoftware.com"}],"description":"ViewComponents for Polaris Design System","homepage":"https://github.com/baoagency/polaris_view_components#readme","repository":{"type":"git","url":"git+ssh://git@github.com/baoagency/polaris_view_components.git"},"contributors":[{"name":"Dan Gamble","email":"dan@dangamble.co.uk"},{"name":"Kirill Platonov","email":"mail@kirillplatonov.com"}],"author":{"name":"By Association Only"},"bugs":{"url":"https://github.com/baoagency/polaris_view_components/issues"},"license":"MIT","readme":"# Polaris ViewComponents\n\nPolaris ViewComponents is an implementation of the Polaris Design System using [ViewComponent](https://github.com/github/view_component).\n\n![Polaris ViewComponents](.github/assets/preview.png)\n\n> **This library is under active development. Breaking changes are likely until stable release.**\n\n## Preview\n\nhttps://polarisviewcomponents.org\n\n## Usage\n\nRender Polaris ViewComponents:\n\n```erb\n<%= polaris_card(title: \"Title\") do %>\n  <p>Card example</p>\n<% end %>\n```\n\n## Installation\n\nIn `Gemfile`, add:\n\n```ruby\ngem 'polaris_view_components'\n```\n\nRun install generator:\n```bash\nrails generate polaris_view_components:install\n```\n\nSetup Polaris styles in your layouts `<head>` tag:\n\n```erb\n<%= stylesheet_link_tag 'polaris_view_components' %>\n```\n\nDefine Polaris style on your `<body>` tag:\n\n```erb\n<body style=\"<%= polaris_body_styles %>\">\n```\n\n### Importmaps\n\nInstall dependencies:\n```\nbin/importmap pin @rails/request.js --download\n```\n\nIf you use sprockets make sure the vendor folder is loaded in `app/assets/config/manifest.js`:\n```js\n//= link_tree ../../../vendor/assets/javascripts .js\n```\n\nAdd to `config/importmap.rb`:\n\n```rb\npin \"polaris-view-components\", to: \"polaris_view_components.js\"\n```\n\nAdd to `app/javascript/controllers/index.js`:\n```javascript\n// ...\n\nimport { registerPolarisControllers } from \"polaris-view-components\"\nregisterPolarisControllers(Stimulus)\n```\n\n### NPM\n\nInstall NPM package:\n```bash\nyarn add polaris-view-components @rails/request.js\n```\n\nAdd to `app/javascript/controllers/index.js`:\n```javascript\n// ...\n\nimport { registerPolarisControllers } from \"polaris-view-components\"\nregisterPolarisControllers(Stimulus)\n```\n\n## Dependencies\n\nIn addition to the dependencies declared in the `gemspec`, Polaris ViewComponents assumes the presence of Polaris CSS.\n\n## Development\n\nTo get started:\n\n1. Run: `bundle install`\n2. Run: `bin/dev`\n\nIt will open demo app with component previews on `localhost:4000`. You can change components and they will be updated on page reload. Component previews located in `demo/test/components/previews`.\n\nTo release gem run:\n```bash\nscript/release\n```\n\nTo release npm package run:\n```bash\nyarn release\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","readmeFilename":"README.md"}