@react-pdf/stylesheet
Advanced tools
Comparing version 2.0.0-beta.11 to 2.0.0-beta.12
@@ -39,11 +39,18 @@ "use strict"; | ||
const isNumber = R.is(Number); | ||
const FONT_WEIGHT_REGEX = /^fontWeight/; | ||
const isFontWeightStyle = key => key.match(/^fontWeight/); | ||
const isFontWeightStyle = key => key.match(FONT_WEIGHT_REGEX); | ||
const isBorderStyle = (key, value) => key.match(/^border(Top|Right|Bottom|Left)(Color|Width|Style)/) && typeof value === 'string'; | ||
const BORDER_STYLE_REGEX = /^border(Top|Right|Bottom|Left)(Color|Width|Style)/; | ||
const isBoxModelStyle = (key, value) => key.match(/^(margin)|(padding)/) && typeof value === 'string'; | ||
const isBorderStyle = (key, value) => key.match(BORDER_STYLE_REGEX) && typeof value === 'string'; | ||
const isObjectPositionStyle = (key, value) => key.match(/^objectPosition/) && typeof value === 'string'; | ||
const BOX_MODEL_STYLE_REGEX = /^(margin)|(padding)/; | ||
const isBoxModelStyle = (key, value) => key.match(BOX_MODEL_STYLE_REGEX) && typeof value === 'string'; | ||
const OBJECT_POSITION_STYLE_REGEX = /^objectPosition/; | ||
const isObjectPositionStyle = (key, value) => key.match(OBJECT_POSITION_STYLE_REGEX) && typeof value === 'string'; | ||
const isTransformOriginStyle = (key, value) => key.match(/^transformOrigin/) && typeof value === 'string'; | ||
@@ -50,0 +57,0 @@ |
{ | ||
"name": "@react-pdf/stylesheet", | ||
"version": "2.0.0-beta.11", | ||
"version": "2.0.0-beta.12", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "author": "Diego Muracciole <diegomuracciole@gmail.com>", | ||
"dependencies": { | ||
"@react-pdf/types": "^2.0.0-beta.11", | ||
"@react-pdf/types": "^2.0.0-beta.12", | ||
"color-string": "^1.5.3", | ||
@@ -25,3 +25,3 @@ "hsl-to-hex": "^1.0.0", | ||
], | ||
"gitHead": "39cea536737e9a863db7f83890d207b667fedd1d" | ||
"gitHead": "81e76f3958da57b65d1f18740c1887a4efa91fce" | ||
} |
@@ -0,1 +1,5 @@ | ||
<p align="center"> | ||
<img src="https://user-images.githubusercontent.com/5600341/27505816-c8bc37aa-587f-11e7-9a86-08a2d081a8b9.png" height="280px"> | ||
</p> | ||
# @react-pdf/stylesheet | ||
@@ -2,0 +6,0 @@ |
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
18188
410
69