terra-heading
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -7,2 +7,7 @@ Changelog | ||
1.2.0 - (July 26, 2017) | ||
------------------ | ||
### Changed | ||
* Converted component to use CSS modules | ||
1.1.0 - (July 18, 2017) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -17,10 +17,12 @@ 'use strict'; | ||
var _classnames = require('classnames'); | ||
var _bind = require('classnames/bind'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _bind2 = _interopRequireDefault(_bind); | ||
require('terra-base/lib/baseStyles'); | ||
require('./Heading.scss'); | ||
var _Heading = require('./Heading.scss'); | ||
var _Heading2 = _interopRequireDefault(_Heading); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -32,2 +34,4 @@ | ||
var cx = _bind2.default.bind(_Heading2.default); | ||
var propTypes = { | ||
@@ -82,3 +86,3 @@ /** | ||
var attributes = _extends({}, customProps); | ||
var TextClassNames = (0, _classnames2.default)(['terra-Heading', { 'terra-Heading--italic': isItalic }, { 'terra-Heading--visually-hidden': isVisuallyHidden }, _defineProperty({}, 'terra-Heading--level-' + level, level), _defineProperty({}, 'terra-Heading--size-' + size, size), _defineProperty({}, 'terra-Heading--weight-' + weight, weight), attributes.className]); | ||
var TextClassNames = cx(['heading', { italic: isItalic }, { 'visually-hidden': isVisuallyHidden }, _defineProperty({}, 'level-' + level, level), _defineProperty({}, 'size-' + size, size), _defineProperty({}, 'weight-' + weight, weight), attributes.className]); | ||
@@ -85,0 +89,0 @@ var headingStyles = { |
{ | ||
"name": "terra-heading", | ||
"main": "lib/Heading.js", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Terra includes styling for all standard headings `h1` through `h6`, as well as styles that match the size of their respective heading.", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23443
77
1