{"_id":"@chck/vue-grid-styled","_rev":"1-43a037bfe25f0d1db9e12b4fda59c0f6","name":"@chck/vue-grid-styled","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@chck/vue-grid-styled","description":"Vue.js port of @jxnblk's React library, grid-styled","version":"0.2.0","license":"MIT","main":"dist/vue-grid-styled.common.js","module":"dist/vue-grid-styled.esm.js","unpkg":"dist/vue-grid-styled.js","jsdelivr":"dist/vue-grid-styled.js","author":{"name":"chck","email":"deadline.is.today@gmail.com"},"repository":{"type":"git","url":"https://github.com/chck/vue-grid-styled.git"},"bugs":{"url":"https://github.com/mattrothenberg/vue-grid-styled/issues"},"homepage":"https://github.com/mattrothenberg/vue-grid-styled#readme","keywords":["vue","vue-component","vue-library"],"engines":{"node":">=8.9.0"},"scripts":{"build":"npm run build:cjs && npm run build:es && npm run build:umd:dev && npm run build:umd:prod","build:cjs":"rollup -c --environment TARGET:cjs","build:es":"rollup -c --environment TARGET:esm","build:umd:dev":"rollup -c --environment TARGET:umd-dev","build:umd:prod":"rollup -c --environment TARGET:umd-prod","storybook":"start-storybook -p 9001 -c .storybook","storybook:build":"build-storybook -c .storybook -o docs/dist/stories","precommit":"lint-staged","cz":"git-cz","commitmsg":"commitlint -e $GIT_PARAMS","lint":"eslint --ext .js,.vue .","lint:fix":"eslint --ext .js,.vue . --fix","prepublishOnly":"npm run build"},"devDependencies":{"@commitlint/cli":"^6.0.2","@commitlint/config-conventional":"^5.2.3","@storybook/vue":"^3.3.3","babel-core":"^6.26.0","babel-eslint":"^8.1.2","babel-plugin-dynamic-import-node":"^1.2.0","babel-plugin-module-resolver":"^3.0.0","babel-preset-vue-app":"^2.0.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.14.0","eslint-config-prettier":"^2.9.0","eslint-import-resolver-babel-module":"^4.0.0","eslint-plugin-html":"^4.0.1","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"2.4.0","eslint-plugin-vue":"^4.0.1","husky":"^0.14.3","lint-staged":"^6.0.0","lodash":"^4.17.4","prettier":"^1.9.2","rollup":"^0.54.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-filesize":"^1.5.0","rollup-plugin-json":"^2.3.0","rollup-plugin-license":"^0.5.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^2.0.1","rollup-plugin-vue":"^3.0.0","uglify-es":"^3.3.4","vue":"^2.5.13","vue-loader":"^13.6.2","vue-storybook":"^0.4.0","vue-template-compiler":"^2.5.13"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"lint-staged":{"*.{js,vue}":["eslint --fix","git add"]},"dependencies":{"styled-system":"^2.2.5","vue-styled-components":"^1.2.3"},"licenseText":"Copyright 2017 Matt Rothenberg <mattrothenberg@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@chck/vue-grid-styled@0.2.0","dist":{"shasum":"25cd0542ca2ed9abf66ceb9cb6ddc14f1853d3ee","integrity":"sha512-pgc1engAyCyJDUeNBRUYtBZ9asGpQ0C594enzH18n6ENWvlu0Ql362X4JQmpYqzpnffHYl5eoVfNNTooqCY5WA==","tarball":"https://registry.npmjs.org/@chck/vue-grid-styled/-/vue-grid-styled-0.2.0.tgz","fileCount":17,"unpackedSize":264553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxtIDCRA9TVsSAnZWagAAidoQAILkmBRzNLTCSIXNwP+w\nL154NrkxS7xRSQWydOxT6KEE62K5/1pYwGH3lDmy8FZW3Abq+5A2nFDwpJ37\nEi34wVMr+bBbgbZKgEZv9rN0orbn+gDdkJ5radwjRGx5hhJA9RFDeba05r+m\nbhT21aZQRcdzdtPWKmpZfAlBs0npplm/Am/WGx8Gwose14C6xr30dgCfS73d\nB67M4vkj9vfmSWpUlzPtm7ndn0jIRy/T+TiUnY234Vi5kHjbm97FyO/8TF7U\nUlCJ1m+ipkPnLqnAld4FuwJJYIb4T4FK6mEeaH/Q+VEgHc35QcQoOvAj7V+m\nYIcVgLZC01zFWNNTYxLtApHdkuOvZNsOThZUyvDjmajjr8T8o22SFuE0Wjnm\nJnHlIXXas80g0KNqSWgIO0IQYKMwHcZBSE+egIbDA12iY/BlCLIuVtG0V4LD\npDThXQ8iKHzW1zzneoCNdSqIv3Nn7MeFegLMwqh1rc35tHFjNiuBwbjApJoY\nQOoR/UQrcu0Z9hiesuGx7VS9jNe5LMkAX1zELgGAKU9FCEbum6BafSaJN4B1\nUQT886NqpHTwIn+ArdsFxfowOwGF9AKNjFPeOs4dpAK7dRxI4tqNz2yeJpIS\nIDU7UU7L8jepz44Fcwe3WwdUYvMH3JESZRQPUvN2SlNm1eLE7Sc4mRlsR8yc\nnKzs\r\n=X51o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwmuPW0yrXozwOaZeTKtKJpjS+eYB09ZsTvzvPOpYuewIgFX5/0IURQy25A2CzE95yHs/reNIDA6vbUo14ztAXQqU="}]},"maintainers":[{"name":"chck","email":"deadline.is.today@gmail.com"}],"_npmUser":{"name":"chck","email":"deadline.is.today@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-grid-styled_0.2.0_1539756547257_0.19125067148334618"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-17T06:09:07.099Z","0.2.0":"2018-10-17T06:09:07.414Z","modified":"2022-04-04T22:34:31.239Z"},"maintainers":[{"name":"chck","email":"deadline.is.today@gmail.com"}],"description":"Vue.js port of @jxnblk's React library, grid-styled","homepage":"https://github.com/mattrothenberg/vue-grid-styled#readme","keywords":["vue","vue-component","vue-library"],"repository":{"type":"git","url":"https://github.com/chck/vue-grid-styled.git"},"author":{"name":"chck","email":"deadline.is.today@gmail.com"},"bugs":{"url":"https://github.com/mattrothenberg/vue-grid-styled/issues"},"license":"MIT","readme":"# vue-grid-styled\n\n![Npm badge](https://img.shields.io/npm/v/vue-grid-styled.svg)\n\n> Vue.js port of @jxnblk's React library, [grid-styled](https://github.com/jxnblk/grid-styled)\n\n## Installation\n\n```shell\nyarn add vue-grid-styled\n```\n\n## Default Theme\n\n```js\n// Breakpoints\nconst breakpoints = [\"40em\", \"52em\", \"64em\"];\n// @media screen and (min-width: 40em)\n// @media screen and (min-width: 52em)\n// @media screen and (min-width: 64em)\n\n// Typographic Scale (numbers are converted to px values)\nconst fontSizes = [12, 14, 16, 20, 24, 32, 48, 64, 72];\n\n// Spacing Scale (used for margin and padding)\nconst space = [0, 4, 8, 16, 32, 64, 128, 256, 512];\n```\n\n## Import & Install\n\n```js\nimport VueGridStyled from \"vue-grid-styled\";\n// OR\nimport { Box, Flex } from \"vue-grid-styled\";\n\n// OPTIONAL: Pass a custom theme\nconst theme = {\n  colors: {\n    red: \"#F22613\"\n  }\n};\n\nVue.use(VueGridStyled, { theme });\n// OR\nVue.component(\"v-box\", Box);\nVue.component(\"v-flex\", Flex);\n```\n\n## Component Usage\n\n`vue-grid-styled` tries to emulate the [grid-styled API](https://github.com/jxnblk/grid-styled#box-) as closely as possible. Check it out for comprehensive documentation.\n\nOne exception is that the `<v-box>` component exposes a `tag` prop that you can use to programatically assign a HTML tag (e.g., \"div\", \"section\").\n\nIn a nutshell, replace the JSX syntax with Vue \"binding\" syntax and you should be good to go! Here are a few clarifying examples.\n\n#### Examples\n\n```jsx\n// Grid-Styled JSX: Pixel Width\n<Box width={256} />\n```\n\n```html\n<!-- VUE: Pixel Width -->\n<v-box :width=\"256\" tag=\"section\" />\n```\n\n```jsx\n// JSX: Responsive Widths\n<Box width={[1 / 2, 1 / 3, 1 / 4, 1 / 6]} />\n```\n\n```html\n<!-- VUE: Responsive widths -->\n<v-box\n  tag=\"main\"\n  :width=\"[\n    1/2,\n    1/3,\n    1/4,\n    1/6\n  ]\"\n/>\n```\n\n```html\n<!-- Altogther now! -->\n<v-flex flexWrap=\"wrap\" maxWidth=\"960px\" mx=\"auto\">\n  <v-box :width=\"[1, 1/2]\" :px=\"[0, 1]\" :mb=\"2\">\n    <v-box bg=\"aliceblue\" :py=\"4\"/>\n  </v-box>\n  <v-box :width=\"[1, 1/2]\" :px=\"[0, 1]\" :mb=\"2\">\n    <v-box bg=\"aliceblue\" :py=\"4\"/>\n  </v-box>\n</v-flex>\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](.github/CONTRIBUTING.md).\n","readmeFilename":"README.md"}