@instructure/ui-tag 8.18.0 → 8.18.1-snapshot.2
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/LICENSE.md +27 -0
- package/es/Tag/index.js +19 -15
- package/lib/Tag/index.js +19 -15
- package/package.json +16 -15
package/LICENSE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: The MIT License (MIT)
|
|
3
|
+
category: Getting Started
|
|
4
|
+
order: 9
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# The MIT License (MIT)
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
+
|
|
11
|
+
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions.**
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
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.18.
|
|
3
|
+
"version": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
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.18.
|
|
28
|
-
"@instructure/emotion": "8.18.
|
|
29
|
-
"@instructure/shared-types": "8.18.
|
|
30
|
-
"@instructure/ui-color-utils": "8.18.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.18.
|
|
32
|
-
"@instructure/ui-icons": "8.18.
|
|
33
|
-
"@instructure/ui-react-utils": "8.18.
|
|
34
|
-
"@instructure/ui-testable": "8.18.
|
|
35
|
-
"@instructure/ui-view": "8.18.
|
|
27
|
+
"@instructure/console": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
28
|
+
"@instructure/emotion": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
29
|
+
"@instructure/shared-types": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
30
|
+
"@instructure/ui-color-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
32
|
+
"@instructure/ui-icons": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
33
|
+
"@instructure/ui-react-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
34
|
+
"@instructure/ui-testable": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
35
|
+
"@instructure/ui-view": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.18.
|
|
40
|
-
"@instructure/ui-test-locator": "8.18.
|
|
41
|
-
"@instructure/ui-test-utils": "8.18.
|
|
42
|
-
"@instructure/ui-themes": "8.18.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
40
|
+
"@instructure/ui-test-locator": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
41
|
+
"@instructure/ui-test-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
42
|
+
"@instructure/ui-themes": "8.18.1-snapshot.2+ca4c1ff9d"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8 <=17"
|
|
@@ -47,5 +47,6 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"sideEffects": false
|
|
50
|
+
"sideEffects": false,
|
|
51
|
+
"gitHead": "ca4c1ff9d3985151ae0758fb596de41652dbb58b"
|
|
51
52
|
}
|