@react-pdf/stylesheet
Advanced tools
Comparing version 2.0.0-beta.17 to 2.0.0-beta.18
@@ -14,5 +14,5 @@ "use strict"; | ||
var BOX_MODEL_REGEX = /\d+(px|in|mm|cm|pt|%|vw|vh|px)?/g; | ||
var OBJECT_POSITION_REGEX = /\d+(px|in|mm|cm|pt|%|vw|vh|px)?/g; | ||
var BORDER_SHORTHAND_REGEX = /(\d+(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/; | ||
var BOX_MODEL_REGEX = /\d+(\.\d+)?(px|in|mm|cm|pt|%|vw|vh|px)?/g; | ||
var OBJECT_POSITION_REGEX = /\d+(\.\d+)?(px|in|mm|cm|pt|%|vw|vh|px)?/g; | ||
var BORDER_SHORTHAND_REGEX = /(\d+(\.\d+)?(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/; | ||
var TRANSFORM_ORIGIN_REGEX = /(-?\d+(px|in|mm|cm|pt|%|vw|vh|px)?)|top|right|bottom|left|center/g; | ||
@@ -85,7 +85,7 @@ var FONT_WEIGHTS = { | ||
if (key.match(/Color$/)) { | ||
return match[4] || value; | ||
return match[5] || value; | ||
} | ||
if (key.match(/Style$/)) { | ||
return match[3] || value; | ||
return match[4] || value; | ||
} | ||
@@ -92,0 +92,0 @@ |
@@ -38,3 +38,4 @@ "use strict"; | ||
var resolveStyles = function resolveStyles(container, style) { | ||
return R.compose((0, _units.default)(container), _colors.default, _expand.default, (0, _mediaQueries.default)(container), filterNoneValues, _flatten.default)(style); | ||
return R.compose((0, _units.default)(container), _colors.default, // R.tap(console.log), | ||
_expand.default, (0, _mediaQueries.default)(container), filterNoneValues, _flatten.default)(style); | ||
}; | ||
@@ -41,0 +42,0 @@ |
{ | ||
"name": "@react-pdf/stylesheet", | ||
"version": "2.0.0-beta.17", | ||
"version": "2.0.0-beta.18", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "author": "Diego Muracciole <diegomuracciole@gmail.com>", | ||
"dependencies": { | ||
"@react-pdf/types": "^2.0.0-beta.17", | ||
"@react-pdf/types": "^2.0.0-beta.18", | ||
"color-string": "^1.5.3", | ||
@@ -25,3 +25,3 @@ "hsl-to-hex": "^1.0.0", | ||
], | ||
"gitHead": "db65b560de8295a41a5117e2b97ce68198e334c6" | ||
"gitHead": "001b9f0769b75b6abc49cade7237a39b22a1d481" | ||
} |
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
19186
440