@xstyled/core
Advanced tools
Comparing version 1.12.5 to 1.12.6
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.12.6](https://github.com/smooth-code/xstyled/compare/v1.12.5...v1.12.6) (2019-09-26) | ||
### Bug Fixes | ||
* **color-mode:** fix document undefined on SSR ([606ecac](https://github.com/smooth-code/xstyled/commit/606ecac)) | ||
## [1.12.5](https://github.com/smooth-code/xstyled/compare/v1.12.4...v1.12.5) (2019-09-23) | ||
@@ -8,0 +19,0 @@ |
@@ -421,4 +421,3 @@ 'use strict'; | ||
var _ref5 = _temp2 === void 0 ? {} : _temp2, | ||
_ref5$target = _ref5.target, | ||
target = _ref5$target === void 0 ? document.body : _ref5$target; | ||
target = _ref5.target; | ||
@@ -465,5 +464,6 @@ var systemMode = useSystemMode(theme); | ||
var className = getColorModeClassName(mode); | ||
target.classList.add(className); | ||
var usedTarget = target || document.body; | ||
usedTarget.classList.add(className); | ||
return function () { | ||
target.classList.remove(className); | ||
usedTarget.classList.remove(className); | ||
}; | ||
@@ -470,0 +470,0 @@ }, [customPropertiesEnabled, target, mode, initialColorMode]); |
@@ -415,4 +415,3 @@ import { system, getColor, getBorderStyle, getShadow, getFont, getFontSize, getLineHeight, getFontWeight, getLetterSpacing, getTransition, getSpace, getBorder, getBorderWidth, getSize, getRadius, getZIndex } from '@xstyled/system'; | ||
var _ref5 = _temp2 === void 0 ? {} : _temp2, | ||
_ref5$target = _ref5.target, | ||
target = _ref5$target === void 0 ? document.body : _ref5$target; | ||
target = _ref5.target; | ||
@@ -459,5 +458,6 @@ var systemMode = useSystemMode(theme); | ||
var className = getColorModeClassName(mode); | ||
target.classList.add(className); | ||
var usedTarget = target || document.body; | ||
usedTarget.classList.add(className); | ||
return function () { | ||
target.classList.remove(className); | ||
usedTarget.classList.remove(className); | ||
}; | ||
@@ -464,0 +464,0 @@ }, [customPropertiesEnabled, target, mode, initialColorMode]); |
{ | ||
"name": "@xstyled/core", | ||
"description": "xstyled core utilities", | ||
"version": "1.12.5", | ||
"version": "1.12.6", | ||
"sideEffects": false, | ||
@@ -22,3 +22,3 @@ "main": "dist/xstyled-core.cjs.js", | ||
}, | ||
"gitHead": "c95d7d1db324be409cc1e3c179a93b2d359818b7" | ||
"gitHead": "3b79478b1653f44b90b37f72e0e9b8de75eaa0cc" | ||
} |
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
39538