styled-components
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -7,10 +7,8 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.default = function (keys) { | ||
exports.default = function (key, fallback) { | ||
return function (props, theme) { | ||
return keys.split(' ').map(function (k) { | ||
return theme[k]; | ||
}).join('\n'); | ||
return theme[key] || fallback; | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
module.exports = exports["default"]; |
@@ -74,3 +74,3 @@ 'use strict'; | ||
}).forEach(function (propName) { | ||
propsForElement[propName] = _this2.props.propName; | ||
propsForElement[propName] = _this2.props[propName]; | ||
}); | ||
@@ -77,0 +77,0 @@ propsForElement.className = [className, this.generatedClassName].filter(function (x) { |
{ | ||
"name": "styled-components", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -36,2 +36,3 @@ "main": "lib/index.js", | ||
"react": "^15.3.2", | ||
"source-map": "^0.5.6", | ||
"supports-color": "^3.1.2" | ||
@@ -38,0 +39,0 @@ }, |
@@ -1,3 +0,3 @@ | ||
export default keys => (props, theme) => ( | ||
keys.split(' ').map(k => theme[k]).join('\n') | ||
export default (key, fallback) => (props, theme) => ( | ||
theme[key] || fallback | ||
) |
@@ -36,3 +36,3 @@ // @flow | ||
)).forEach(propName => { | ||
propsForElement[propName] = this.props.propName | ||
propsForElement[propName] = this.props[propName] | ||
}) | ||
@@ -39,0 +39,0 @@ propsForElement.className = [className, this.generatedClassName].filter(x => x).join(' ') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
439304
7
11442
+ Addedsource-map@^0.5.6
+ Addedsource-map@0.5.7(transitive)