mjml-text
Advanced tools
Comparing version 3.1.1-beta.3 to 3.1.1
@@ -75,5 +75,5 @@ 'use strict'; | ||
value: function getStyles() { | ||
var _props = this.props; | ||
var mjAttribute = _props.mjAttribute; | ||
var defaultUnit = _props.defaultUnit; | ||
var _props = this.props, | ||
mjAttribute = _props.mjAttribute, | ||
defaultUnit = _props.defaultUnit; | ||
@@ -88,3 +88,3 @@ | ||
fontWeight: mjAttribute('font-weight'), | ||
lineHeight: defaultUnit(mjAttribute('line-height'), "px"), | ||
lineHeight: mjAttribute('line-height'), | ||
textAlign: mjAttribute('align'), | ||
@@ -91,0 +91,0 @@ textDecoration: mjAttribute('text-decoration'), |
{ | ||
"name": "mjml-text", | ||
"description": "mjml-text", | ||
"version": "3.1.1-beta.3", | ||
"version": "3.1.1", | ||
"main": "lib/index.js", | ||
@@ -16,6 +16,6 @@ "repository": { | ||
"dependencies": { | ||
"lodash": "^4.16.4", | ||
"mjml-core": "~3.1.1-beta.3", | ||
"react": "^15.3.2" | ||
"lodash": "^4.17.2", | ||
"mjml-core": "~3.1.1", | ||
"react": "^15.4.1" | ||
} | ||
} |
@@ -33,18 +33,18 @@ ## mjml-text | ||
attribute | unit | description | default value | ||
------------------------------|---------------|--------------------------------|------------------------------------- | ||
color | color | text color | #000000 | ||
font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif | ||
font-size | px | text size | 13px | ||
font-style | string | normal/italic/oblique | n/a | ||
font-weight | number | text thickness | n/a | ||
line-height | px | space between the lines | 22px | ||
text-decoration | string | underline/overline/none | n/a | ||
text-transform | string | uppercase/lowercase/capitalize | n/a | ||
align | string | left/right/center | left | ||
container-background-color | color | inner element background color | n/a | ||
padding | px | supports up to 4 parameters | 10px 25px | ||
padding-top | px | top offset | n/a | ||
padding-bottom | px | bottom offset | n/a | ||
padding-left | px | left offset | n/a | ||
padding-right | px | right offset | n/a | ||
attribute | unit | description | default value | ||
------------------------------|---------------|---------------------------------------------|------------------------------------- | ||
color | color | text color | #000000 | ||
font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif | ||
font-size | px | text size | 13px | ||
font-style | string | normal/italic/oblique | n/a | ||
font-weight | number | text thickness | n/a | ||
line-height | px | space between the lines | 22px | ||
text-decoration | string | underline/overline/line-through/none | n/a | ||
text-transform | string | uppercase/lowercase/capitalize | n/a | ||
align | string | left/right/center | left | ||
container-background-color | color | inner element background color | n/a | ||
padding | px | supports up to 4 parameters | 10px 25px | ||
padding-top | px | top offset | n/a | ||
padding-bottom | px | bottom offset | n/a | ||
padding-left | px | left offset | n/a | ||
padding-right | px | right offset | n/a |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7169
0
Updatedlodash@^4.17.2
Updatedmjml-core@~3.1.1
Updatedreact@^15.4.1