@theme-ui/theme-provider
Advanced tools
Comparing version 0.4.0-alpha.0 to 0.4.0-highlight.0
@@ -51,2 +51,4 @@ import { jsx, useThemeUI, ThemeProvider } from '@theme-ui/core'; | ||
borderColor: 'colors', | ||
caretColor: 'colors', | ||
opacity: 'opacities', | ||
margin: 'space', | ||
@@ -124,2 +126,8 @@ marginTop: 'space', | ||
if (typeof value !== 'number' || value >= 0) { | ||
if (typeof value === 'string' && value.startsWith('-')) { | ||
var valueWithoutMinus = value.substring(1); | ||
var n$1 = get(scale, valueWithoutMinus, valueWithoutMinus); | ||
return "-" + n$1; | ||
} | ||
return get(scale, value, value); | ||
@@ -126,0 +134,0 @@ } |
@@ -51,2 +51,4 @@ var core = require('@theme-ui/core'); | ||
borderColor: 'colors', | ||
caretColor: 'colors', | ||
opacity: 'opacities', | ||
margin: 'space', | ||
@@ -124,2 +126,8 @@ marginTop: 'space', | ||
if (typeof value !== 'number' || value >= 0) { | ||
if (typeof value === 'string' && value.startsWith('-')) { | ||
var valueWithoutMinus = value.substring(1); | ||
var n$1 = get(scale, valueWithoutMinus, valueWithoutMinus); | ||
return "-" + n$1; | ||
} | ||
return get(scale, value, value); | ||
@@ -126,0 +134,0 @@ } |
@@ -51,2 +51,4 @@ (function (global, factory) { | ||
borderColor: 'colors', | ||
caretColor: 'colors', | ||
opacity: 'opacities', | ||
margin: 'space', | ||
@@ -124,2 +126,8 @@ marginTop: 'space', | ||
if (typeof value !== 'number' || value >= 0) { | ||
if (typeof value === 'string' && value.startsWith('-')) { | ||
var valueWithoutMinus = value.substring(1); | ||
var n$1 = get(scale, valueWithoutMinus, valueWithoutMinus); | ||
return "-" + n$1; | ||
} | ||
return get(scale, value, value); | ||
@@ -126,0 +134,0 @@ } |
{ | ||
"name": "@theme-ui/theme-provider", | ||
"version": "0.4.0-alpha.0", | ||
"version": "0.4.0-highlight.0", | ||
"main": "dist/index.js", | ||
@@ -13,5 +13,5 @@ "module": "dist/index.esm.js", | ||
"@emotion/core": "^10.0.0", | ||
"@theme-ui/color-modes": "^0.4.0-alpha.0", | ||
"@theme-ui/core": "^0.4.0-alpha.0", | ||
"@theme-ui/mdx": "^0.4.0-alpha.0" | ||
"@theme-ui/color-modes": "^0.4.0-highlight.0", | ||
"@theme-ui/core": "^0.4.0-highlight.0", | ||
"@theme-ui/mdx": "^0.4.0-highlight.0" | ||
}, | ||
@@ -24,3 +24,3 @@ "repository": "system-ui/theme-ui", | ||
}, | ||
"gitHead": "fbdd88ea280c0d9880d39a114cb6d19f0d4da2ca" | ||
"gitHead": "cff2e5f6d9ce1658de5ba1a81d10fdd5bbcf9d1e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
77755
975