@instructure/ui-tag 8.38.2-snapshot-5 → 8.38.2-snapshot-7

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.38.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-5) (2023-07-14)
6
+ ## [8.38.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-7) (2023-07-21)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-tag
9
9
 
package/es/Tag/index.js CHANGED
@@ -41,8 +41,8 @@ category: components
41
41
  @tsProps
42
42
  **/
43
43
  let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Tag extends Component {
44
- constructor() {
45
- super(...arguments);
44
+ constructor(...args) {
45
+ super(...args);
46
46
  this.ref = null;
47
47
  this.focus = () => {
48
48
  this.ref && this.ref.focus();
package/es/Tag/theme.js CHANGED
@@ -47,16 +47,17 @@ const generateComponentTheme = theme => {
47
47
  defaultColor: theme['ic-brand-font-color-dark']
48
48
  }
49
49
  };
50
- const tagVariant = function (style, _ref) {
51
- let borderColor = _ref.borderColor,
52
- borderRadius = _ref.borderRadius,
53
- borderStyle = _ref.borderStyle,
54
- borderWidth = _ref.borderWidth,
55
- hoverColor = _ref.hoverColor,
56
- iconColor = _ref.iconColor,
57
- iconHoverColor = _ref.iconHoverColor,
58
- mainColor = _ref.mainColor,
59
- textColor = _ref.textColor;
50
+ const tagVariant = function (style, {
51
+ borderColor,
52
+ borderRadius,
53
+ borderStyle,
54
+ borderWidth,
55
+ hoverColor,
56
+ iconColor,
57
+ iconHoverColor,
58
+ mainColor,
59
+ textColor
60
+ }) {
60
61
  return {
61
62
  [`${style}BackgroundHover`]: hoverColor || darken(mainColor, 5),
62
63
  [`${style}Background`]: mainColor,
package/lib/Tag/index.js CHANGED
@@ -48,8 +48,8 @@ category: components
48
48
  @tsProps
49
49
  **/
50
50
  let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Tag extends _react.Component {
51
- constructor() {
52
- super(...arguments);
51
+ constructor(...args) {
52
+ super(...args);
53
53
  this.ref = null;
54
54
  this.focus = () => {
55
55
  this.ref && this.ref.focus();
package/lib/Tag/theme.js CHANGED
@@ -53,16 +53,17 @@ const generateComponentTheme = theme => {
53
53
  defaultColor: theme['ic-brand-font-color-dark']
54
54
  }
55
55
  };
56
- const tagVariant = function (style, _ref) {
57
- let borderColor = _ref.borderColor,
58
- borderRadius = _ref.borderRadius,
59
- borderStyle = _ref.borderStyle,
60
- borderWidth = _ref.borderWidth,
61
- hoverColor = _ref.hoverColor,
62
- iconColor = _ref.iconColor,
63
- iconHoverColor = _ref.iconHoverColor,
64
- mainColor = _ref.mainColor,
65
- textColor = _ref.textColor;
56
+ const tagVariant = function (style, {
57
+ borderColor,
58
+ borderRadius,
59
+ borderStyle,
60
+ borderWidth,
61
+ hoverColor,
62
+ iconColor,
63
+ iconHoverColor,
64
+ mainColor,
65
+ textColor
66
+ }) {
66
67
  return {
67
68
  [`${style}BackgroundHover`]: hoverColor || (0, _darken.darken)(mainColor, 5),
68
69
  [`${style}Background`]: mainColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.38.2-snapshot-5",
3
+ "version": "8.38.2-snapshot-7",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,23 +23,23 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.22.5",
27
- "@instructure/console": "8.38.2-snapshot-5",
28
- "@instructure/emotion": "8.38.2-snapshot-5",
29
- "@instructure/shared-types": "8.38.2-snapshot-5",
30
- "@instructure/ui-color-utils": "8.38.2-snapshot-5",
31
- "@instructure/ui-dom-utils": "8.38.2-snapshot-5",
32
- "@instructure/ui-icons": "8.38.2-snapshot-5",
33
- "@instructure/ui-react-utils": "8.38.2-snapshot-5",
34
- "@instructure/ui-testable": "8.38.2-snapshot-5",
35
- "@instructure/ui-view": "8.38.2-snapshot-5",
26
+ "@babel/runtime": "^7.22.6",
27
+ "@instructure/console": "8.38.2-snapshot-7",
28
+ "@instructure/emotion": "8.38.2-snapshot-7",
29
+ "@instructure/shared-types": "8.38.2-snapshot-7",
30
+ "@instructure/ui-color-utils": "8.38.2-snapshot-7",
31
+ "@instructure/ui-dom-utils": "8.38.2-snapshot-7",
32
+ "@instructure/ui-icons": "8.38.2-snapshot-7",
33
+ "@instructure/ui-react-utils": "8.38.2-snapshot-7",
34
+ "@instructure/ui-testable": "8.38.2-snapshot-7",
35
+ "@instructure/ui-view": "8.38.2-snapshot-7",
36
36
  "prop-types": "^15.8.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.38.2-snapshot-5",
40
- "@instructure/ui-test-locator": "8.38.2-snapshot-5",
41
- "@instructure/ui-test-utils": "8.38.2-snapshot-5",
42
- "@instructure/ui-themes": "8.38.2-snapshot-5"
39
+ "@instructure/ui-babel-preset": "8.38.2-snapshot-7",
40
+ "@instructure/ui-test-locator": "8.38.2-snapshot-7",
41
+ "@instructure/ui-test-utils": "8.38.2-snapshot-7",
42
+ "@instructure/ui-themes": "8.38.2-snapshot-7"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8 <=18"