styled-system
Advanced tools
Comparing version 3.1.10 to 3.1.11
@@ -51,3 +51,3 @@ "use strict"; | ||
return paths.join('.').split('.').reduce(function (a, b) { | ||
return a && b in a ? a[b] : null; | ||
return a && a[b] ? a[b] : null; | ||
}, obj); | ||
@@ -60,4 +60,3 @@ }; | ||
return function (props) { | ||
var getVal = get(props.theme, paths); | ||
return is(getVal) ? getVal : fallback; | ||
return get(props.theme, paths) || fallback; | ||
}; | ||
@@ -64,0 +63,0 @@ }; |
@@ -30,3 +30,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
return paths.join('.').split('.').reduce(function (a, b) { | ||
return a && b in a ? a[b] : null; | ||
return a && a[b] ? a[b] : null; | ||
}, obj); | ||
@@ -36,4 +36,3 @@ }; | ||
return function (props) { | ||
var getVal = get(props.theme, paths); | ||
return is(getVal) ? getVal : fallback; | ||
return get(props.theme, paths) || fallback; | ||
}; | ||
@@ -40,0 +39,0 @@ }; |
{ | ||
"name": "styled-system", | ||
"version": "3.1.10", | ||
"version": "3.1.11", | ||
"description": "Responsive, theme-based style props for building design systems with React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -75,2 +75,3 @@ | ||
- [Emotion](https://codesandbox.io/s/github/jxnblk/styled-system/tree/master/examples/emotion) | ||
- [Theme Aliases](https://codesandbox.io/s/github/jxnblk/styled-system/tree/master/examples/theme-aliases) | ||
@@ -77,0 +78,0 @@ ### Table of Contents |
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
48192
212
1300