Socket
Socket
Sign inDemoInstall

mjml-text

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-text - npm Package Compare versions

Comparing version 3.1.1-beta.3 to 3.1.1

8

lib/index.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc