onno-react
Advanced tools
Comparing version 0.0.18 to 0.1.0
@@ -102,3 +102,3 @@ "use strict" | ||
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
alias, | ||
@@ -193,4 +193,6 @@ value: index * 360 | ||
const breakpoint = get(index, breakpoints) | ||
const isZero = parseInt(breakpoint, 10) === 0 | ||
const query = isZero ? null : mq(breakpoint) | ||
const styleValue = resolve([index, value.alias], propsValue) | ||
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint)) | ||
if (!isNil(styleValue)) pushStyle(styleValue, query) | ||
}) | ||
@@ -733,3 +735,3 @@ } | ||
transform: addPx, | ||
defaults: [12, 14, 16, 20, 24, 32, 48, 64] | ||
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64] | ||
}) | ||
@@ -736,0 +738,0 @@ const fontStyle = style({ |
@@ -98,3 +98,3 @@ import { oneOfType, number, string, objectOf, arrayOf } from "prop-types" | ||
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
alias, | ||
@@ -189,4 +189,6 @@ value: index * 360 | ||
const breakpoint = get(index, breakpoints) | ||
const isZero = parseInt(breakpoint, 10) === 0 | ||
const query = isZero ? null : mq(breakpoint) | ||
const styleValue = resolve([index, value.alias], propsValue) | ||
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint)) | ||
if (!isNil(styleValue)) pushStyle(styleValue, query) | ||
}) | ||
@@ -729,3 +731,3 @@ } | ||
transform: addPx, | ||
defaults: [12, 14, 16, 20, 24, 32, 48, 64] | ||
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64] | ||
}) | ||
@@ -732,0 +734,0 @@ const fontStyle = style({ |
{ | ||
"name": "onno-react", | ||
"license": "MIT", | ||
"version": "0.0.18", | ||
"version": "0.1.0", | ||
"description": "Onno propTypes for React", | ||
@@ -30,6 +30,6 @@ "homepage": "https://github.com/wagerfield/onno/tree/master/packages/onno-react#readme", | ||
"@types/prop-types": "15.7.1", | ||
"onno": "0.0.18", | ||
"onno": "0.1.0", | ||
"prop-types": "15.7.2" | ||
}, | ||
"gitHead": "7a5145c7f092640a61ecd97aeb5570e782c63659" | ||
"gitHead": "e930b2abbf3ee93c4a272aa65e180564ab8fa77b" | ||
} |
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
54490
2008
+ Addedonno@0.1.0(transitive)
- Removedonno@0.0.18(transitive)
Updatedonno@0.1.0