@hig/typography
Advanced tools
Comparing version 1.0.3 to 1.0.4
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { css } from 'emotion'; | ||
import { cx, css } from 'emotion'; | ||
import ThemeContext from '@hig/theme-context'; | ||
@@ -85,2 +85,5 @@ | ||
var className = otherProps.className; | ||
return React.createElement( | ||
@@ -98,3 +101,5 @@ ThemeContext.Consumer, | ||
ElementType, | ||
_extends({ className: css(styles.typography) }, otherProps), | ||
_extends({}, otherProps, { | ||
className: cx(css(styles.typography), className) | ||
}), | ||
children | ||
@@ -101,0 +106,0 @@ ); |
@@ -92,2 +92,5 @@ 'use strict'; | ||
var className = otherProps.className; | ||
return React__default.createElement( | ||
@@ -105,3 +108,5 @@ ThemeContext.Consumer, | ||
ElementType, | ||
_extends({ className: emotion.css(styles.typography) }, otherProps), | ||
_extends({}, otherProps, { | ||
className: emotion.cx(emotion.css(styles.typography), className) | ||
}), | ||
children | ||
@@ -108,0 +113,0 @@ ); |
@@ -0,1 +1,9 @@ | ||
# [@hig/typography-v1.0.4](https://github.com/Autodesk/hig/compare/@hig/typography@1.0.3...@hig/typography@1.0.4) (2019-06-06) | ||
### Bug Fixes | ||
* break out className from otherProps ([7a38584](https://github.com/Autodesk/hig/commit/7a38584)) | ||
* enable passing className prop ([25cd959](https://github.com/Autodesk/hig/commit/25cd959)) | ||
# [@hig/typography-v1.0.3](https://github.com/Autodesk/hig/compare/@hig/typography@1.0.2...@hig/typography@1.0.3) (2019-03-13) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "@hig/typography", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "HIG Typography components", | ||
@@ -32,4 +32,4 @@ "author": "Autodesk Inc.", | ||
"peerDependencies": { | ||
"@hig/theme-context": "^2.1.3", | ||
"@hig/theme-data": "^2.3.3", | ||
"@hig/theme-context": "^3.0.0", | ||
"@hig/theme-data": "^2.7.0", | ||
"react": "^15.4.1 || ^16.3.2" | ||
@@ -36,0 +36,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
20920
328