@theme-ui/css
Advanced tools
Comparing version 0.5.0-alpha.1 to 0.6.0-alpha.0
@@ -1,2 +0,2 @@ | ||
import { Theme } from './types'; | ||
export declare const makeTheme: <T extends Theme>(t: T) => T; | ||
import { BaseTheme } from './types'; | ||
export declare const makeTheme: <T extends BaseTheme>(t: T) => T; |
@@ -276,3 +276,3 @@ import '@emotion/react'; | ||
if (obj['variant']) { | ||
if (obj && obj['variant']) { | ||
obj = _extends({}, get(theme, obj['variant']), obj); | ||
@@ -279,0 +279,0 @@ delete obj['variant']; |
@@ -276,3 +276,3 @@ require('@emotion/react'); | ||
if (obj['variant']) { | ||
if (obj && obj['variant']) { | ||
obj = _extends({}, get(theme, obj['variant']), obj); | ||
@@ -279,0 +279,0 @@ delete obj['variant']; |
@@ -259,3 +259,3 @@ import '@emotion/react'; | ||
if (obj['variant']) { | ||
if (obj && obj['variant']) { | ||
obj = _extends({}, get(theme, obj['variant']), obj); | ||
@@ -262,0 +262,0 @@ delete obj['variant']; |
@@ -279,3 +279,3 @@ (function (global, factory) { | ||
if (obj['variant']) { | ||
if (obj && obj['variant']) { | ||
obj = _extends({}, get(theme, obj['variant']), obj); | ||
@@ -282,0 +282,0 @@ delete obj['variant']; |
{ | ||
"name": "@theme-ui/css", | ||
"version": "0.5.0-alpha.1", | ||
"version": "0.6.0-alpha.0", | ||
"source": "src/index.ts", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "1cfd0b163d630d8cad9b9a691c7b7c294f57729b" | ||
"gitHead": "5bd90fa370721ffe25fdd3f760404a6413d6fc09" | ||
} |
@@ -284,3 +284,3 @@ import { | ||
// insert variant props before responsive styles, so they can be merged | ||
if (obj['variant']) { | ||
if (obj && obj['variant']) { | ||
obj = { ...get(theme, obj['variant']), ...obj } | ||
@@ -287,0 +287,0 @@ delete obj['variant']; |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"strict": true | ||
}, | ||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"] | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
349692
38
6813