@hig/text-area
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -1621,38 +1621,60 @@ import Input from '@hig/input'; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var variantTypes = ["line", "box"]; | ||
var TextArea = function TextArea(props) { | ||
var variant = props.variant, | ||
stylesheet = props.stylesheet, | ||
textAreaRef = props.textAreaRef, | ||
otherProps = _objectWithoutProperties(props, ["variant", "stylesheet", "textAreaRef"]); | ||
var TextArea = function (_Component) { | ||
_inherits(TextArea, _Component); | ||
var className = otherProps.className; | ||
function TextArea() { | ||
_classCallCheck(this, TextArea); | ||
var textareaClassName = className && className.split(" ").reduce(function (acc, cur) { | ||
return cx(acc, cur.trim() + "-textarea"); | ||
}, ""); | ||
return _possibleConstructorReturn(this, (TextArea.__proto__ || Object.getPrototypeOf(TextArea)).apply(this, arguments)); | ||
} | ||
var textareaStylesheet = function textareaStylesheet(styles, themeData) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData) : textareaStyles; | ||
}; | ||
_createClass(TextArea, [{ | ||
key: "render", | ||
value: function render() { | ||
var _props = this.props, | ||
variant = _props.variant, | ||
stylesheet = _props.stylesheet, | ||
textAreaRef = _props.textAreaRef, | ||
otherProps = _objectWithoutProperties(_props, ["variant", "stylesheet", "textAreaRef"]); | ||
return React.createElement( | ||
"div", | ||
{ style: { position: "relative" }, className: className }, | ||
React.createElement(Input, _extends$1({}, otherProps, { | ||
className: textareaClassName, | ||
inputRef: textAreaRef, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
variant: variant | ||
})) | ||
); | ||
}; | ||
var className = otherProps.className; | ||
TextArea.displayName = "TextArea"; | ||
var textareaClassName = className && className.split(" ").reduce(function (acc, cur) { | ||
return cx(acc, cur.trim() + "-textarea"); | ||
}, ""); | ||
var textareaStylesheet = function textareaStylesheet(styles, props, themeData) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData) : textareaStyles; | ||
}; | ||
return React.createElement( | ||
"div", | ||
{ style: { position: "relative" }, className: className }, | ||
React.createElement(Input, _extends$1({}, otherProps, { | ||
className: textareaClassName, | ||
inputRef: textAreaRef, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
variant: variant | ||
})) | ||
); | ||
} | ||
}]); | ||
return TextArea; | ||
}(Component); | ||
TextArea.propTypes = { | ||
@@ -1685,3 +1707,2 @@ onBlur: PropTypes.func, | ||
}; | ||
TextArea.defaultProps = { | ||
@@ -1688,0 +1709,0 @@ variant: "line" |
@@ -7,3 +7,4 @@ 'use strict'; | ||
var React = _interopDefault(require('react')); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var PropTypes = _interopDefault(require('prop-types')); | ||
@@ -1628,38 +1629,60 @@ var Input = _interopDefault(require('@hig/input')); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var variantTypes = ["line", "box"]; | ||
var TextArea = function TextArea(props) { | ||
var variant = props.variant, | ||
stylesheet = props.stylesheet, | ||
textAreaRef = props.textAreaRef, | ||
otherProps = _objectWithoutProperties(props, ["variant", "stylesheet", "textAreaRef"]); | ||
var TextArea = function (_Component) { | ||
_inherits(TextArea, _Component); | ||
var className = otherProps.className; | ||
function TextArea() { | ||
_classCallCheck(this, TextArea); | ||
var textareaClassName = className && className.split(" ").reduce(function (acc, cur) { | ||
return cx(acc, cur.trim() + "-textarea"); | ||
}, ""); | ||
return _possibleConstructorReturn(this, (TextArea.__proto__ || Object.getPrototypeOf(TextArea)).apply(this, arguments)); | ||
} | ||
var textareaStylesheet = function textareaStylesheet(styles, themeData) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData) : textareaStyles; | ||
}; | ||
_createClass(TextArea, [{ | ||
key: "render", | ||
value: function render() { | ||
var _props = this.props, | ||
variant = _props.variant, | ||
stylesheet = _props.stylesheet, | ||
textAreaRef = _props.textAreaRef, | ||
otherProps = _objectWithoutProperties(_props, ["variant", "stylesheet", "textAreaRef"]); | ||
return React.createElement( | ||
"div", | ||
{ style: { position: "relative" }, className: className }, | ||
React.createElement(Input, _extends$1({}, otherProps, { | ||
className: textareaClassName, | ||
inputRef: textAreaRef, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
variant: variant | ||
})) | ||
); | ||
}; | ||
var className = otherProps.className; | ||
TextArea.displayName = "TextArea"; | ||
var textareaClassName = className && className.split(" ").reduce(function (acc, cur) { | ||
return cx(acc, cur.trim() + "-textarea"); | ||
}, ""); | ||
var textareaStylesheet = function textareaStylesheet(styles, props, themeData) { | ||
var textareaStyles = stylesheetOverride(styles, props, themeData); | ||
return stylesheet ? stylesheet(textareaStyles, props, themeData) : textareaStyles; | ||
}; | ||
return React__default.createElement( | ||
"div", | ||
{ style: { position: "relative" }, className: className }, | ||
React__default.createElement(Input, _extends$1({}, otherProps, { | ||
className: textareaClassName, | ||
inputRef: textAreaRef, | ||
stylesheet: textareaStylesheet, | ||
tagName: "textarea", | ||
variant: variant | ||
})) | ||
); | ||
} | ||
}]); | ||
return TextArea; | ||
}(React.Component); | ||
TextArea.propTypes = { | ||
@@ -1692,3 +1715,2 @@ onBlur: PropTypes.func, | ||
}; | ||
TextArea.defaultProps = { | ||
@@ -1695,0 +1717,0 @@ variant: "line" |
@@ -0,1 +1,13 @@ | ||
# [@hig/text-area-v1.3.2](https://github.com/Autodesk/hig/compare/@hig/text-area@1.3.1...@hig/text-area@1.3.2) (2022-01-12) | ||
### Bug Fixes | ||
* Forcing semantic release by editing readmes ([d39b61f](https://github.com/Autodesk/hig/commit/d39b61f)) | ||
### Reverts | ||
* "Revert "Revert "feat : Migrate all repository to React v17.0 """ ([bf78986](https://github.com/Autodesk/hig/commit/bf78986)) | ||
# [@hig/text-area-v1.3.1](https://github.com/Autodesk/hig/compare/@hig/text-area@1.3.0...@hig/text-area@1.3.1) (2022-01-12) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "@hig/text-area", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "HIG Text Area", | ||
@@ -20,9 +20,9 @@ "author": "Autodesk Inc.", | ||
"dependencies": { | ||
"@hig/input": "^1.3.1", | ||
"@hig/input": "^1.3.2", | ||
"prop-types": "^15.7.1" | ||
}, | ||
"peerDependencies": { | ||
"@hig/theme-context": "^3.0.2", | ||
"@hig/theme-data": "^2.22.0", | ||
"react": "^17.0.0" | ||
"@hig/theme-context": "^3.0.3", | ||
"@hig/theme-data": "^2.22.1", | ||
"react": "^15.4.1 || ^16.3.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -7,2 +7,3 @@ # Text Area | ||
## Getting started | ||
@@ -9,0 +10,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
110032
2934
32
- Removedreact@17.0.2(transitive)
Updated@hig/input@^1.3.2