@instructure/ui-tag 8.17.1-snapshot.82 → 8.18.1-snapshot.1

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,6 +3,10 @@
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.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-tag
9
+
6
10
  # [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07)
7
11
 
8
12
  ### Bug Fixes
package/es/Tag/index.js CHANGED
@@ -75,11 +75,15 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
75
75
  }
76
76
 
77
77
  componentDidMount() {
78
- this.props.makeStyles?.();
78
+ var _this$props$makeStyle, _this$props2;
79
+
80
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
79
81
  }
80
82
 
81
83
  componentDidUpdate() {
82
- this.props.makeStyles?.();
84
+ var _this$props$makeStyle2, _this$props3;
85
+
86
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
83
87
  }
84
88
 
85
89
  get focused() {
@@ -87,20 +91,20 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
87
91
  }
88
92
 
89
93
  render() {
90
- const _this$props2 = this.props,
91
- className = _this$props2.className,
92
- dismissible = _this$props2.dismissible,
93
- disabled = _this$props2.disabled,
94
- readOnly = _this$props2.readOnly,
95
- text = _this$props2.text,
96
- title = _this$props2.title,
97
- onClick = _this$props2.onClick,
98
- margin = _this$props2.margin,
99
- styles = _this$props2.styles;
94
+ const _this$props4 = this.props,
95
+ className = _this$props4.className,
96
+ dismissible = _this$props4.dismissible,
97
+ disabled = _this$props4.disabled,
98
+ readOnly = _this$props4.readOnly,
99
+ text = _this$props4.text,
100
+ title = _this$props4.title,
101
+ onClick = _this$props4.onClick,
102
+ margin = _this$props4.margin,
103
+ styles = _this$props4.styles;
100
104
  const passthroughProps = View.omitViewProps(omitProps(this.props, Tag.allowedProps), Tag);
101
105
  return jsx(View, Object.assign({}, passthroughProps, {
102
106
  elementRef: this.handleRef,
103
- css: styles?.tag,
107
+ css: styles === null || styles === void 0 ? void 0 : styles.tag,
104
108
  className: className,
105
109
  as: onClick ? 'button' : 'span',
106
110
  margin: margin,
@@ -110,9 +114,9 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
110
114
  display: void 0,
111
115
  title: title || (typeof text === 'string' ? text : void 0)
112
116
  }), jsx("span", {
113
- css: styles?.text
117
+ css: styles === null || styles === void 0 ? void 0 : styles.text
114
118
  }, text), onClick && dismissible ? jsx(IconXLine, {
115
- css: styles?.icon
119
+ css: styles === null || styles === void 0 ? void 0 : styles.icon
116
120
  }) : null);
117
121
  }
118
122
 
package/lib/Tag/index.js CHANGED
@@ -70,11 +70,15 @@ let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
70
70
  }
71
71
 
72
72
  componentDidMount() {
73
- this.props.makeStyles?.();
73
+ var _this$props$makeStyle, _this$props2;
74
+
75
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
74
76
  }
75
77
 
76
78
  componentDidUpdate() {
77
- this.props.makeStyles?.();
79
+ var _this$props$makeStyle2, _this$props3;
80
+
81
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
78
82
  }
79
83
 
80
84
  get focused() {
@@ -82,22 +86,22 @@ let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
82
86
  }
83
87
 
84
88
  render() {
85
- const _this$props2 = this.props,
86
- className = _this$props2.className,
87
- dismissible = _this$props2.dismissible,
88
- disabled = _this$props2.disabled,
89
- readOnly = _this$props2.readOnly,
90
- text = _this$props2.text,
91
- title = _this$props2.title,
92
- onClick = _this$props2.onClick,
93
- margin = _this$props2.margin,
94
- styles = _this$props2.styles;
89
+ const _this$props4 = this.props,
90
+ className = _this$props4.className,
91
+ dismissible = _this$props4.dismissible,
92
+ disabled = _this$props4.disabled,
93
+ readOnly = _this$props4.readOnly,
94
+ text = _this$props4.text,
95
+ title = _this$props4.title,
96
+ onClick = _this$props4.onClick,
97
+ margin = _this$props4.margin,
98
+ styles = _this$props4.styles;
95
99
 
96
100
  const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Tag.allowedProps), Tag);
97
101
 
98
102
  return (0, _emotion.jsx)(_View.View, Object.assign({}, passthroughProps, {
99
103
  elementRef: this.handleRef,
100
- css: styles?.tag,
104
+ css: styles === null || styles === void 0 ? void 0 : styles.tag,
101
105
  className: className,
102
106
  as: onClick ? 'button' : 'span',
103
107
  margin: margin,
@@ -107,9 +111,9 @@ let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
107
111
  display: void 0,
108
112
  title: title || (typeof text === 'string' ? text : void 0)
109
113
  }), (0, _emotion.jsx)("span", {
110
- css: styles?.text
114
+ css: styles === null || styles === void 0 ? void 0 : styles.text
111
115
  }, text), onClick && dismissible ? (0, _emotion.jsx)(_IconXLine.IconXLine, {
112
- css: styles?.icon
116
+ css: styles === null || styles === void 0 ? void 0 : styles.icon
113
117
  }) : null);
114
118
  }
115
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.17.1-snapshot.82+96244a097",
3
+ "version": "8.18.1-snapshot.1+669aa5892",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,22 +24,22 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/console": "8.17.1-snapshot.82+96244a097",
28
- "@instructure/emotion": "8.17.1-snapshot.82+96244a097",
29
- "@instructure/shared-types": "8.17.1-snapshot.82+96244a097",
30
- "@instructure/ui-color-utils": "8.17.1-snapshot.82+96244a097",
31
- "@instructure/ui-dom-utils": "8.17.1-snapshot.82+96244a097",
32
- "@instructure/ui-icons": "8.17.1-snapshot.82+96244a097",
33
- "@instructure/ui-react-utils": "8.17.1-snapshot.82+96244a097",
34
- "@instructure/ui-testable": "8.17.1-snapshot.82+96244a097",
35
- "@instructure/ui-view": "8.17.1-snapshot.82+96244a097",
27
+ "@instructure/console": "8.18.1-snapshot.1+669aa5892",
28
+ "@instructure/emotion": "8.18.1-snapshot.1+669aa5892",
29
+ "@instructure/shared-types": "8.18.1-snapshot.1+669aa5892",
30
+ "@instructure/ui-color-utils": "8.18.1-snapshot.1+669aa5892",
31
+ "@instructure/ui-dom-utils": "8.18.1-snapshot.1+669aa5892",
32
+ "@instructure/ui-icons": "8.18.1-snapshot.1+669aa5892",
33
+ "@instructure/ui-react-utils": "8.18.1-snapshot.1+669aa5892",
34
+ "@instructure/ui-testable": "8.18.1-snapshot.1+669aa5892",
35
+ "@instructure/ui-view": "8.18.1-snapshot.1+669aa5892",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.17.1-snapshot.82+96244a097",
40
- "@instructure/ui-test-locator": "8.17.1-snapshot.82+96244a097",
41
- "@instructure/ui-test-utils": "8.17.1-snapshot.82+96244a097",
42
- "@instructure/ui-themes": "8.17.1-snapshot.82+96244a097"
39
+ "@instructure/ui-babel-preset": "8.18.1-snapshot.1+669aa5892",
40
+ "@instructure/ui-test-locator": "8.18.1-snapshot.1+669aa5892",
41
+ "@instructure/ui-test-utils": "8.18.1-snapshot.1+669aa5892",
42
+ "@instructure/ui-themes": "8.18.1-snapshot.1+669aa5892"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8 <=17"
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "sideEffects": false,
51
- "gitHead": "96244a097dffef5f10bbe7979c580581c787083e"
51
+ "gitHead": "669aa58926b123028bcb9e39427d36910b78b0d1"
52
52
  }