@hig/typography
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -87,3 +87,4 @@ import React, { Component } from 'react'; | ||
elementType = _props.elementType, | ||
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType"]); | ||
typographyRef = _props.typographyRef, | ||
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType", "typographyRef"]); | ||
@@ -111,3 +112,4 @@ var className = otherProps.className; | ||
_extends({}, otherProps, { | ||
className: cx(css(styles.typography), className) | ||
className: cx(css(styles.typography), className), | ||
ref: typographyRef | ||
}), | ||
@@ -146,2 +148,6 @@ children | ||
/** | ||
* A callback ref that gets passed to the root HTML element | ||
*/ | ||
typographyRef: PropTypes.func, | ||
/** | ||
* Indicates the initial Typography style | ||
@@ -191,2 +197,9 @@ */ | ||
}, | ||
"typographyRef": { | ||
"type": { | ||
"name": "func" | ||
}, | ||
"required": false, | ||
"description": "A callback ref that gets passed to the root HTML element" | ||
}, | ||
"variant": { | ||
@@ -193,0 +206,0 @@ "type": { |
@@ -94,3 +94,4 @@ 'use strict'; | ||
elementType = _props.elementType, | ||
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType"]); | ||
typographyRef = _props.typographyRef, | ||
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType", "typographyRef"]); | ||
@@ -118,3 +119,4 @@ var className = otherProps.className; | ||
_extends({}, otherProps, { | ||
className: emotion.cx(emotion.css(styles.typography), className) | ||
className: emotion.cx(emotion.css(styles.typography), className), | ||
ref: typographyRef | ||
}), | ||
@@ -153,2 +155,6 @@ children | ||
/** | ||
* A callback ref that gets passed to the root HTML element | ||
*/ | ||
typographyRef: PropTypes.func, | ||
/** | ||
* Indicates the initial Typography style | ||
@@ -198,2 +204,9 @@ */ | ||
}, | ||
"typographyRef": { | ||
"type": { | ||
"name": "func" | ||
}, | ||
"required": false, | ||
"description": "A callback ref that gets passed to the root HTML element" | ||
}, | ||
"variant": { | ||
@@ -200,0 +213,0 @@ "type": { |
@@ -0,1 +1,8 @@ | ||
# [@hig/typography-v1.2.0](https://github.com/Autodesk/hig/compare/@hig/typography@1.1.0...@hig/typography@1.2.0) (2021-01-15) | ||
### Features | ||
* pass down a callback ref to root element ([1746795](https://github.com/Autodesk/hig/commit/1746795)) | ||
# [@hig/typography-v1.1.0](https://github.com/Autodesk/hig/compare/@hig/typography@1.0.4...@hig/typography@1.1.0) (2020-10-13) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hig/typography", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "HIG Typography components", | ||
@@ -32,4 +32,4 @@ "author": "Autodesk Inc.", | ||
"peerDependencies": { | ||
"@hig/theme-context": "^3.0.0", | ||
"@hig/theme-data": "^2.18.0", | ||
"@hig/theme-context": "^3.0.1", | ||
"@hig/theme-data": "^2.19.2", | ||
"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
23900
392