{"_id":"styled-by","_rev":"10-6f8d2efc7e9a048de0a8dfbd2f58818b","name":"styled-by","description":"Simple and powerful lib to handle styled props in your components","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.0":{"name":"styled-by","version":"0.0.0","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"ava":"^0.20.0","codecov":"^2.2.0","nyc":"^11.0.0","xo":"^0.18.2"},"nyc":{"reporter":["lcov","text"]},"gitHead":"28bf0a930a6441aa8b252e7d9f652778483c2f3e","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.0.0","_shasum":"8fa88a438e9e4d3fc0b9fc9fe41511245ef4e4cb","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"8fa88a438e9e4d3fc0b9fc9fe41511245ef4e4cb","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.0.0.tgz","integrity":"sha512-yM5ExMx86CW51vgWHU6WZBvQpl37ohRKhkBd7FK8YAZTD7fmCsfUDgsGUpToVUpkJWi/ArYENMJ4JuLi9mn/Zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbGrs1zB4zws96kGklEnVBB0nsJoEFAJa5iwsuVOQvJgIhAPBLxw90nSw8RRu4xCrmfD06bCPv7ncdDBBA5duyVmj6"}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.0.0.tgz_1501605316781_0.6695539043284953"}},"0.1.0":{"name":"styled-by","version":"0.1.0","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","postrelease":"git push --follow-tags origin master; npm publish"},"files":["index.js"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false},"nyc":{"reporter":["lcov","text"]},"gitHead":"d8b0da1b2ea26210bea1a65469b8110daa273854","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.1.0","_shasum":"7792fa8fb05d74d3eab4300611b5c7254d2a588b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"7792fa8fb05d74d3eab4300611b5c7254d2a588b","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.1.0.tgz","integrity":"sha512-xMSISZiXQPbA+VSbpICB+cY0M0/LPj5LbscHUgQnyZgGBtnY8XC2HUTWmV8LusX/jj2dSgqmF1TMAA0WVQX9Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1Q2jUaFdU0HX5dahjSTYjrecnB1Ee2Of54jcTZbORmAIhAKSciSxp9DP93V9lskhOTUaBd0u8IziegSBq5hEtvK3/"}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.1.0.tgz_1501615687580_0.5613961468916386"}},"0.2.0":{"name":"styled-by","version":"0.2.0","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.es.js","module":"build/styled-by.es.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","test":"xo && nyc ava","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","postrelease":"git push --follow-tags origin master; npm publish","prepublish":"yarn build"},"files":["index.js"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false},"nyc":{"reporter":["lcov","text"]},"gitHead":"a8f8ee04c6bfdd65e8dbad5d15e2604b9a0ea094","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.0","_shasum":"2cb8457fc2955e85b473bc949587ed50a3f5333d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"2cb8457fc2955e85b473bc949587ed50a3f5333d","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.0.tgz","integrity":"sha512-E+gEWhZftSAVHxjintQ+lbCgfAfjbDpXlmbDcsFZwDpanDvdjcwO60GPMv6oQk8BVYu/ol+EthCen0W507RoLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBSAmx+OkXvMX7T61v5OUPlEFcBHWoTl7D4OSvPxr+eAIgIFFZCZWQx0uQ7+xPm0Ww2wGW0LW3W2cyZI9VnHoC0uo="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.0.tgz_1501633797594_0.09117634943686426"}},"0.2.1":{"name":"styled-by","version":"0.2.1","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.es.js","module":"build/styled-by.es.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","test":"xo && nyc ava","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","postrelease":"git push --follow-tags origin master; npm publish","prepublish":"yarn build"},"files":["index.js"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false},"nyc":{"reporter":["lcov","text"]},"gitHead":"5de1f841d9a92ecbe2ba5375183967bb7312a9eb","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.1","_shasum":"f9100f3254ce0a2b4c1e2edfdce9b66674580a09","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"f9100f3254ce0a2b4c1e2edfdce9b66674580a09","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.1.tgz","integrity":"sha512-VfShuQmBtnQDQVm3x0BQddIngQGH4l1VJHcx5BDzj20nVFRjB+/r5pM8VcQXqyFi6MGuNbYBPKXavTCry3A3OQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4gtKd49GpE8ByZnbc64QNWlrYF6RvGz8acA9hC6liTQIgGSlsbaT+5Wd1uoN/gx1J+BHTmi8mSJi2g15heqh5pc0="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.1.tgz_1501680734860_0.9867158231791109"}},"0.2.2":{"name":"styled-by","version":"0.2.2","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.min.js","module":"build/styled-by.min.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","test":"xo && nyc ava","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","postrelease":"git push --follow-tags origin master; npm publish","prepublish":"yarn build"},"files":["index.js"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false},"nyc":{"reporter":["lcov","text"]},"gitHead":"581a9f21c39a46152364a1e2d1a036c03d838c56","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.2","_shasum":"67d07e6edb92fa6dfd05147ccab0e9545ff532f9","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"67d07e6edb92fa6dfd05147ccab0e9545ff532f9","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.2.tgz","integrity":"sha512-vqsp87bKwuwGZaf/8uKPVssPe/C+sU2V7g3Mtle/8kXbES2EcDh519kkHj1pgZ7DYegOWCTnphGZMhm/GRDE2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF3GVVVElf+0lPWAg5g41uXDy1Ph10828bKSzSXyKU2QIhAMyEKFFxMnHZhXZhp83bMP9z9lWiosEHNYnMNUHTc1om"}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.2.tgz_1501785414202_0.37636114936321974"}},"0.2.3":{"name":"styled-by","version":"0.2.3","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.min.js","module":"build/styled-by.min.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","test":"xo && nyc ava","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","postrelease":"git push --follow-tags origin master; npm publish","prepublish":"yarn build"},"files":["build/","lib/"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false},"nyc":{"reporter":["lcov","text"]},"gitHead":"befa7d6b6606f4b869ab5691dd936f8b45971b99","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.3","_shasum":"8e5373771135374681dafcfc1291896b7557ea17","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"8e5373771135374681dafcfc1291896b7557ea17","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.3.tgz","integrity":"sha512-h0RstzPSkDiNcg0Zez7ucyzxNUioWZe5ndmcsMWXjFkK9ssI6IkIncqHggbMuG9VBRaL46blrw6p1juUqAm1+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpZrjXWIlZjpFkwh7uqs9PDOgRw8HWzsFwsScohuhijAiA9c6OM7LY0c+EtjlsJWqs1bpHr5TkEZOTiYecVU5dy7g=="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.3.tgz_1501785928136_0.9692738184239715"}},"0.2.4":{"name":"styled-by","version":"0.2.4","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.min.js","module":"build/styled-by.min.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","lint":"xo","test":"xo && nyc ava","precommit":"yarn lint","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","prepublish":"yarn build"},"files":["build/","lib/"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false,"rules":{"operator-linebreak":"off"}},"nyc":{"reporter":["lcov","text"]},"gitHead":"9506727a0c19a087692062d9394091b1261dfe6f","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.4","_shasum":"3893e95a66607049fd1d43657454d6c4c80db664","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"3893e95a66607049fd1d43657454d6c4c80db664","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.4.tgz","integrity":"sha512-hSFZD9FVuYkGmEOyTxswsNsvotsg6+lOoctBUZiEwq8rlR65OqzxlmZTB8lcF7dpxCxJkRArPuD+2obl8r5A3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZBoy1P/LDoF55yH8GHhiRXG4ZTpbDOf9brMvNPYlf3wIgf/j89dXPmrvbzry7AIgo8wlXpvACZYLzzFzgXxq9s1o="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.4.tgz_1501854606434_0.38953718822449446"}},"0.2.5":{"name":"styled-by","version":"0.2.5","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.min.js","module":"build/styled-by.min.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","lint":"xo","test":"xo && nyc ava","precommit":"yarn lint","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","prepublish":"yarn build"},"files":["build/","lib/"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.20.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false,"rules":{"operator-linebreak":"off"}},"nyc":{"reporter":["lcov","text"]},"gitHead":"fc03b9a3729149f7198b7ee902aa2f47b345eda5","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.2.5","_shasum":"d3ea967347b09dde5fbd0db436f462808479f4ef","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"d3ea967347b09dde5fbd0db436f462808479f4ef","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.2.5.tgz","integrity":"sha512-Bd8Ga9uzf22njpqJbUEGIka/oEIgZOuuK1qxBQkuBK8J6ewm/V+SWBJbpnG/AsZMrSijicCk+vie3bvbOBXEvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiCGtb7gLFU6ByFuPfN09HTJ/bgqyvWV6+996e4rZfgAiEA6tBJmN0fzkAgz93QSJzSxNwtqrkkP3ab5GVY6jt5Xss="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.2.5.tgz_1501855475598_0.7736568162217736"}},"0.3.0":{"name":"styled-by","version":"0.3.0","description":"Simple and powerful lib to handle styled props in your components","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"engines":{"node":">=4"},"main":"lib/index.js","jsnext:main":"build/styled-by.min.js","module":"build/styled-by.min.js","scripts":{"build":"yarn build:lib && yarn build:build","prebuild:lib":"rimraf lib/*","build:lib":"babel --out-dir lib --ignore \"test.js\" src","prebuild:build":"rimraf build/*","build:build":"rollup -c ","lint":"xo","test":"xo && nyc ava","precommit":"yarn lint","prepush":"yarn run test","commitmsg":"validate-commit-msg","release":"standard-version --no-verify","prepublish":"yarn build"},"files":["build/","lib/"],"keywords":["react","css","css-in-js","styled-components","props"],"dependencies":{},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-1":"^6.24.1","codecov":"^2.2.0","husky":"^0.14.3","nyc":"^11.0.0","rimraf":"^2.6.1","rollup":"^0.45.2","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^2.0.1","standard-version":"^4.2.0","validate-commit-msg":"^2.14.0","xo":"^0.18.2"},"xo":{"semicolon":false,"rules":{"operator-linebreak":"off"}},"nyc":{"reporter":["lcov","text"]},"ava":{"require":["babel-register"]},"gitHead":"06cd0709eff7a448a33166307e8c2c96ccd1720b","bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"homepage":"https://github.com/brunobertolini/styled-by#readme","_id":"styled-by@0.3.0","_shasum":"ae2feedebb4b2ee56ce3fb505d25daaa94eaed2a","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"brunobertolini","email":"dev@brunobertolini.com"},"dist":{"shasum":"ae2feedebb4b2ee56ce3fb505d25daaa94eaed2a","tarball":"https://registry.npmjs.org/styled-by/-/styled-by-0.3.0.tgz","integrity":"sha512-3lwJpSFW3LFR5dqtCKqpvfIFkVKnZrMLXgU/4F4BRMYaz+oDcsYvNT7hkBO5yprm9REEdY8nGVnyNIfQPC9Sjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWCYiVeTt23sZFFSyY+h7Z8mF6jbsA4wEBrF//fvzXUAiEAnNBYP0G/nAatv8UcX2OuD9FzEeksEvPp1qquJPITK8M="}]},"maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styled-by-0.3.0.tgz_1506614698122_0.27046922664158046"}}},"readme":"# styled-by [![Build Status](https://travis-ci.org/brunobertolini/styled-by.svg?branch=master)](https://travis-ci.org/brunobertolini/styled-by) [![codecov](https://codecov.io/gh/brunobertolini/styled-by/badge.svg?branch=master)](https://codecov.io/gh/brunobertolini/styled-by?branch=master)\n\n> Simple and powerful lib to handle styled props in your components\n\n## Install\n\n```\nyarn add styled-by\n```\n\n## Basic usage\n\n```js\nimport React from 'react';\nimport styled from 'styled-components';\nimport styledBy from 'styled-by';\n\nconst Button = styled.button`\n\tbackground: ${styledBy('background')};\n\tcolor: ${styledBy('color')};\n\tpadding: 10px;\n\tborder-radius: 10px;  \n`;\n\nexport default function App() {\n\treturn (\n\t\t<Button background=\"#FFF\" color=\"rgba(0,0,0,0.5)\">\n\t\t\tOk\n\t\t</Button>\n\t);\n}\n```\n\n## Options\n\nBasicaly, if you use `styledBy('prop')`, it returns prop value. But, if you want do more, use options.\n\nOptions can be:\n- string;\n- function;\n- object (and object value can be string or function)\n\n### String\n\nOption as string, will be applied when prop is present.\n\n```js\nconst Button = styled.button`\n\t${styledBy('disabled', 'background: #CCC;')}\n`;  \n\n<Button disabled />\n```\n\n### Function\n\nOption as function, always will be called passing props, even if props is undefined\n\n```js\n\tconst Button = styled.button`\n\t${styledBy('disabled', props => `background: ${props.disabled ? '#CCC' : '#FFF'};`)}\n`;  \n\n<Button disabled />\n```\n\n### Object String\n\nOption as object string, will be handled by prop value\n\n```js\nconst Button = styled.button`\n\t${styledBy('corner', {\n\t\trounded: `border-radius: 5px;`,\n\t\tcircle: `border-radius: 100px;`\n\t})}  \n`;  \n\n<Button corner=\"rounded\" />\n```\n\nWhen option is a object, and styledBy don't find passed option, and if `_` option is defined as a function, call it.\n\n```js\nconst Button = styled.button`\n\t${styledBy('corner', {\n\t\t_: ({ corner }) => {}\n\t\trounded: `border-radius: 5px;`,\n\t\tcircle: `border-radius: 100px;`\n\t})}  \n`;  \n\n<Button corner=\"square\" />\n```\n\n### Object Function\n\nOption as object function, will be handled by prop value, and call function as prop param\n\n```js\nconst Button = styled.button`\n\t${styledBy('kind', {\n\t\tdefault: ({ theme, color }) => `\n\t\t\tbackground: ${theme.colors[color].base};\n\t\t\tcolor: ${theme.colors[color].contrast};\n\t\t\tborder: none;\n\t\t`,\n\t\toutline: ({ theme, color }) => `\n\t\t\tbackground: transparent;\n\t\t\tcolor: ${theme.colors[color].base};\n\t\t\tborder: 1px solid ${theme.colors[color].base};\n\t\t`,\n\t\tclean: ({ theme, color }) => `\n\t\t\tbackground: transparent;\n\t\t\tcolor: ${theme.colors[color].base};\n\t\t\tborder: none;\n\t\t`\n\t})}  \n`;  \n\n<Button color=\"primary\" kind=\"outline\" />\n```\n\n### Options list\n\nInstead of prop name in firts param, you can pass many options as a object\n\n```js\nconst Button = styled.button`\n\t${styledBy({\n\t\tdisabled: `background: #CCC;`,\n\t\tcorner: {\n\t\t\tsquare: 'border-radius: 0;',\n\t\t\trounded: 'border-radius: 5px;',\n\t\t\tcircle: 'border-radius: 50px;'\n\t\t}\n\t})}  \n`;  \n\n```\n\nThis works like many styledBy props declarations\n\n## License\n\nMIT © [Bruno Bertolini](http://brunobertolini.com)\n","maintainers":[{"name":"brunobertolini","email":"dev@brunobertolini.com"}],"time":{"modified":"2022-06-27T01:31:11.962Z","created":"2017-08-01T16:35:16.953Z","0.0.0":"2017-08-01T16:35:16.953Z","0.1.0":"2017-08-01T19:28:07.666Z","0.2.0":"2017-08-02T00:29:57.683Z","0.2.1":"2017-08-02T13:32:14.934Z","0.2.2":"2017-08-03T18:36:54.332Z","0.2.3":"2017-08-03T18:45:28.224Z","0.2.4":"2017-08-04T13:50:06.555Z","0.2.5":"2017-08-04T14:04:35.708Z","0.3.0":"2017-09-28T16:04:58.189Z"},"homepage":"https://github.com/brunobertolini/styled-by#readme","keywords":["react","css","css-in-js","styled-components","props"],"repository":{"type":"git","url":"git+https://github.com/brunobertolini/styled-by.git"},"author":{"name":"Bruno Bertolini","email":"dev@brunobertolini.com","url":"brunobertolini.com"},"bugs":{"url":"https://github.com/brunobertolini/styled-by/issues"},"license":"MIT","readmeFilename":"readme.md"}