@instructure/ui-tag 8.17.1-snapshot.81 → 8.18.1-snapshot.0
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 +4 -0
- package/es/Tag/index.js +19 -15
- package/lib/Tag/index.js +19 -15
- package/package.json +15 -15
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
|
-
|
|
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
|
-
|
|
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$
|
|
91
|
-
className = _this$
|
|
92
|
-
dismissible = _this$
|
|
93
|
-
disabled = _this$
|
|
94
|
-
readOnly = _this$
|
|
95
|
-
text = _this$
|
|
96
|
-
title = _this$
|
|
97
|
-
onClick = _this$
|
|
98
|
-
margin = _this$
|
|
99
|
-
styles = _this$
|
|
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
|
|
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
|
|
117
|
+
css: styles === null || styles === void 0 ? void 0 : styles.text
|
|
114
118
|
}, text), onClick && dismissible ? jsx(IconXLine, {
|
|
115
|
-
css: styles
|
|
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
|
-
|
|
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
|
-
|
|
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$
|
|
86
|
-
className = _this$
|
|
87
|
-
dismissible = _this$
|
|
88
|
-
disabled = _this$
|
|
89
|
-
readOnly = _this$
|
|
90
|
-
text = _this$
|
|
91
|
-
title = _this$
|
|
92
|
-
onClick = _this$
|
|
93
|
-
margin = _this$
|
|
94
|
-
styles = _this$
|
|
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
|
|
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
|
|
114
|
+
css: styles === null || styles === void 0 ? void 0 : styles.text
|
|
111
115
|
}, text), onClick && dismissible ? (0, _emotion.jsx)(_IconXLine.IconXLine, {
|
|
112
|
-
css: styles
|
|
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.
|
|
3
|
+
"version": "8.18.1-snapshot.0+435c9ae79",
|
|
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.
|
|
28
|
-
"@instructure/emotion": "8.
|
|
29
|
-
"@instructure/shared-types": "8.
|
|
30
|
-
"@instructure/ui-color-utils": "8.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.
|
|
32
|
-
"@instructure/ui-icons": "8.
|
|
33
|
-
"@instructure/ui-react-utils": "8.
|
|
34
|
-
"@instructure/ui-testable": "8.
|
|
35
|
-
"@instructure/ui-view": "8.
|
|
27
|
+
"@instructure/console": "8.18.1-snapshot.0+435c9ae79",
|
|
28
|
+
"@instructure/emotion": "8.18.1-snapshot.0+435c9ae79",
|
|
29
|
+
"@instructure/shared-types": "8.18.1-snapshot.0+435c9ae79",
|
|
30
|
+
"@instructure/ui-color-utils": "8.18.1-snapshot.0+435c9ae79",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.18.1-snapshot.0+435c9ae79",
|
|
32
|
+
"@instructure/ui-icons": "8.18.1-snapshot.0+435c9ae79",
|
|
33
|
+
"@instructure/ui-react-utils": "8.18.1-snapshot.0+435c9ae79",
|
|
34
|
+
"@instructure/ui-testable": "8.18.1-snapshot.0+435c9ae79",
|
|
35
|
+
"@instructure/ui-view": "8.18.1-snapshot.0+435c9ae79",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.
|
|
40
|
-
"@instructure/ui-test-locator": "8.
|
|
41
|
-
"@instructure/ui-test-utils": "8.
|
|
42
|
-
"@instructure/ui-themes": "8.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.18.1-snapshot.0+435c9ae79",
|
|
40
|
+
"@instructure/ui-test-locator": "8.18.1-snapshot.0+435c9ae79",
|
|
41
|
+
"@instructure/ui-test-utils": "8.18.1-snapshot.0+435c9ae79",
|
|
42
|
+
"@instructure/ui-themes": "8.18.1-snapshot.0+435c9ae79"
|
|
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": "
|
|
51
|
+
"gitHead": "435c9ae794c15e2bd103f700f8c4e946d91c1b59"
|
|
52
52
|
}
|