@hig/text-area
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -1666,3 +1666,4 @@ import React, { Component } from 'react'; | ||
variant = _props.variant, | ||
otherProps = _objectWithoutProperties(_props, ["variant"]); | ||
stylesheet = _props.stylesheet, | ||
otherProps = _objectWithoutProperties(_props, ["variant", "stylesheet"]); | ||
@@ -1675,2 +1676,7 @@ var className = otherProps.className; | ||
var textareaStylesheet = function textareaStylesheet(styles, props, themeData, theme) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData, theme); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData, theme) : textareaStyles; | ||
}; | ||
return React.createElement( | ||
@@ -1681,3 +1687,3 @@ "div", | ||
className: textareaClassName, | ||
stylesheet: stylesheetOverride, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
@@ -1710,3 +1716,7 @@ variant: variant | ||
*/ | ||
variant: PropTypes.oneOf(variantTypes) | ||
variant: PropTypes.oneOf(variantTypes), | ||
/** | ||
* Adds custom/overriding styles | ||
*/ | ||
stylesheet: PropTypes.func | ||
}; | ||
@@ -1765,2 +1775,9 @@ TextArea.defaultProps = { | ||
} | ||
}, | ||
"stylesheet": { | ||
"type": { | ||
"name": "func" | ||
}, | ||
"required": false, | ||
"description": "Adds custom/overriding styles" | ||
} | ||
@@ -1767,0 +1784,0 @@ } |
@@ -1673,3 +1673,4 @@ 'use strict'; | ||
variant = _props.variant, | ||
otherProps = _objectWithoutProperties(_props, ["variant"]); | ||
stylesheet = _props.stylesheet, | ||
otherProps = _objectWithoutProperties(_props, ["variant", "stylesheet"]); | ||
@@ -1682,2 +1683,7 @@ var className = otherProps.className; | ||
var textareaStylesheet = function textareaStylesheet(styles, props, themeData, theme) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData, theme); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData, theme) : textareaStyles; | ||
}; | ||
return React__default.createElement( | ||
@@ -1688,3 +1694,3 @@ "div", | ||
className: textareaClassName, | ||
stylesheet: stylesheetOverride, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
@@ -1717,3 +1723,7 @@ variant: variant | ||
*/ | ||
variant: PropTypes.oneOf(variantTypes) | ||
variant: PropTypes.oneOf(variantTypes), | ||
/** | ||
* Adds custom/overriding styles | ||
*/ | ||
stylesheet: PropTypes.func | ||
}; | ||
@@ -1772,2 +1782,9 @@ TextArea.defaultProps = { | ||
} | ||
}, | ||
"stylesheet": { | ||
"type": { | ||
"name": "func" | ||
}, | ||
"required": false, | ||
"description": "Adds custom/overriding styles" | ||
} | ||
@@ -1774,0 +1791,0 @@ } |
@@ -0,1 +1,8 @@ | ||
# [@hig/text-area-v1.2.0](https://github.com/Autodesk/hig/compare/@hig/text-area@1.1.4...@hig/text-area@1.2.0) (2019-07-09) | ||
### Features | ||
* add stylesheet prop to TextArea ([0f14579](https://github.com/Autodesk/hig/commit/0f14579)) | ||
# [@hig/text-area-v1.1.4](https://github.com/Autodesk/hig/compare/@hig/text-area@1.1.3...@hig/text-area@1.1.4) (2019-07-01) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hig/text-area", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "HIG Text Area", | ||
@@ -5,0 +5,0 @@ "author": "Autodesk Inc.", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
109150
2942
0