@instructure/ui-tag 8.12.1-snapshot.44 → 8.12.1-snapshot.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Tag/index.js CHANGED
@@ -42,8 +42,8 @@ category: components
42
42
  **/
43
43
 
44
44
  let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Tag extends Component {
45
- constructor(...args) {
46
- super(...args);
45
+ constructor() {
46
+ super(...arguments);
47
47
 
48
48
  this.focus = () => {
49
49
  this._container && this._container.focus();
package/es/Tag/theme.js CHANGED
@@ -48,17 +48,16 @@ const generateComponentTheme = theme => {
48
48
  }
49
49
  };
50
50
 
51
- const tagVariant = function (style, {
52
- borderColor,
53
- borderRadius,
54
- borderStyle,
55
- borderWidth,
56
- hoverColor,
57
- iconColor,
58
- iconHoverColor,
59
- mainColor,
60
- textColor
61
- }) {
51
+ const tagVariant = function (style, _ref) {
52
+ let borderColor = _ref.borderColor,
53
+ borderRadius = _ref.borderRadius,
54
+ borderStyle = _ref.borderStyle,
55
+ borderWidth = _ref.borderWidth,
56
+ hoverColor = _ref.hoverColor,
57
+ iconColor = _ref.iconColor,
58
+ iconHoverColor = _ref.iconHoverColor,
59
+ mainColor = _ref.mainColor,
60
+ textColor = _ref.textColor;
62
61
  return {
63
62
  [`${style}BackgroundHover`]: hoverColor || darken(mainColor, 5),
64
63
  [`${style}Background`]: mainColor,
package/lib/Tag/index.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Tag = exports.default = void 0;
8
+ exports.default = exports.Tag = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
@@ -35,8 +35,8 @@ category: components
35
35
  ---
36
36
  **/
37
37
  let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Tag extends _react.Component {
38
- constructor(...args) {
39
- super(...args);
38
+ constructor() {
39
+ super(...arguments);
40
40
 
41
41
  this.focus = () => {
42
42
  this._container && this._container.focus();
package/lib/Tag/props.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
package/lib/Tag/theme.js CHANGED
@@ -56,17 +56,16 @@ const generateComponentTheme = theme => {
56
56
  }
57
57
  };
58
58
 
59
- const tagVariant = function (style, {
60
- borderColor,
61
- borderRadius,
62
- borderStyle,
63
- borderWidth,
64
- hoverColor,
65
- iconColor,
66
- iconHoverColor,
67
- mainColor,
68
- textColor
69
- }) {
59
+ const tagVariant = function (style, _ref) {
60
+ let borderColor = _ref.borderColor,
61
+ borderRadius = _ref.borderRadius,
62
+ borderStyle = _ref.borderStyle,
63
+ borderWidth = _ref.borderWidth,
64
+ hoverColor = _ref.hoverColor,
65
+ iconColor = _ref.iconColor,
66
+ iconHoverColor = _ref.iconHoverColor,
67
+ mainColor = _ref.mainColor,
68
+ textColor = _ref.textColor;
70
69
  return {
71
70
  [`${style}BackgroundHover`]: hoverColor || (0, _darken.darken)(mainColor, 5),
72
71
  [`${style}Background`]: mainColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.12.1-snapshot.44+6f00103af",
3
+ "version": "8.12.1-snapshot.50+3786369ec",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.12.1-snapshot.44+6f00103af",
29
- "@instructure/emotion": "8.12.1-snapshot.44+6f00103af",
30
- "@instructure/shared-types": "8.12.1-snapshot.44+6f00103af",
31
- "@instructure/ui-color-utils": "8.12.1-snapshot.44+6f00103af",
32
- "@instructure/ui-dom-utils": "8.12.1-snapshot.44+6f00103af",
33
- "@instructure/ui-icons": "8.12.1-snapshot.44+6f00103af",
34
- "@instructure/ui-react-utils": "8.12.1-snapshot.44+6f00103af",
35
- "@instructure/ui-testable": "8.12.1-snapshot.44+6f00103af",
36
- "@instructure/ui-view": "8.12.1-snapshot.44+6f00103af",
28
+ "@instructure/console": "8.12.1-snapshot.50+3786369ec",
29
+ "@instructure/emotion": "8.12.1-snapshot.50+3786369ec",
30
+ "@instructure/shared-types": "8.12.1-snapshot.50+3786369ec",
31
+ "@instructure/ui-color-utils": "8.12.1-snapshot.50+3786369ec",
32
+ "@instructure/ui-dom-utils": "8.12.1-snapshot.50+3786369ec",
33
+ "@instructure/ui-icons": "8.12.1-snapshot.50+3786369ec",
34
+ "@instructure/ui-react-utils": "8.12.1-snapshot.50+3786369ec",
35
+ "@instructure/ui-testable": "8.12.1-snapshot.50+3786369ec",
36
+ "@instructure/ui-view": "8.12.1-snapshot.50+3786369ec",
37
37
  "prop-types": "^15"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-babel-preset": "8.12.1-snapshot.44+6f00103af",
41
- "@instructure/ui-test-locator": "8.12.1-snapshot.44+6f00103af",
42
- "@instructure/ui-test-utils": "8.12.1-snapshot.44+6f00103af",
43
- "@instructure/ui-themes": "8.12.1-snapshot.44+6f00103af"
40
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.50+3786369ec",
41
+ "@instructure/ui-test-locator": "8.12.1-snapshot.50+3786369ec",
42
+ "@instructure/ui-test-utils": "8.12.1-snapshot.50+3786369ec",
43
+ "@instructure/ui-themes": "8.12.1-snapshot.50+3786369ec"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "sideEffects": false,
52
- "gitHead": "6f00103af2fc970bbdcc8c2505413e42257afef4"
52
+ "gitHead": "3786369ec892bc0f716844828cc2729447adb8be"
53
53
  }