Comparing version 0.0.18 to 0.1.0
@@ -100,3 +100,3 @@ "use strict" | ||
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
alias, | ||
@@ -191,4 +191,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) | ||
}) | ||
@@ -731,3 +733,3 @@ } | ||
transform: addPx, | ||
defaults: [12, 14, 16, 20, 24, 32, 48, 64] | ||
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64] | ||
}) | ||
@@ -734,0 +736,0 @@ const fontStyle = style({ |
@@ -96,3 +96,3 @@ const PX_SCALE = [0, 2, 4, 8, 16, 32, 64, 128, 256, 512] | ||
const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({ | ||
alias, | ||
@@ -187,4 +187,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) | ||
}) | ||
@@ -727,3 +729,3 @@ } | ||
transform: addPx, | ||
defaults: [12, 14, 16, 20, 24, 32, 48, 64] | ||
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64] | ||
}) | ||
@@ -730,0 +732,0 @@ const fontStyle = style({ |
{ | ||
"name": "onno", | ||
"license": "MIT", | ||
"version": "0.0.18", | ||
"version": "0.1.0", | ||
"description": "Responsive style props for building themed design systems", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/wagerfield/onno/tree/master/packages/onno#readme", | ||
}, | ||
"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
109349
3757