@instructure/ui-tag 8.12.1-snapshot.45 → 8.12.1-snapshot.51
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 +2 -2
- package/es/Tag/theme.js +10 -11
- package/lib/Tag/index.js +3 -3
- package/lib/Tag/props.js +1 -1
- package/lib/Tag/theme.js +10 -11
- package/package.json +15 -15
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(
|
|
46
|
-
super(...
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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.
|
|
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(
|
|
39
|
-
super(...
|
|
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.
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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.
|
|
3
|
+
"version": "8.12.1-snapshot.51+4d3697334",
|
|
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.
|
|
29
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/ui-dom-utils": "8.12.1-snapshot.
|
|
33
|
-
"@instructure/ui-icons": "8.12.1-snapshot.
|
|
34
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
36
|
-
"@instructure/ui-view": "8.12.1-snapshot.
|
|
28
|
+
"@instructure/console": "8.12.1-snapshot.51+4d3697334",
|
|
29
|
+
"@instructure/emotion": "8.12.1-snapshot.51+4d3697334",
|
|
30
|
+
"@instructure/shared-types": "8.12.1-snapshot.51+4d3697334",
|
|
31
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.51+4d3697334",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
|
|
33
|
+
"@instructure/ui-icons": "8.12.1-snapshot.51+4d3697334",
|
|
34
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
|
|
35
|
+
"@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
|
|
36
|
+
"@instructure/ui-view": "8.12.1-snapshot.51+4d3697334",
|
|
37
37
|
"prop-types": "^15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-themes": "8.12.1-snapshot.
|
|
40
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334",
|
|
41
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.51+4d3697334",
|
|
42
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334",
|
|
43
|
+
"@instructure/ui-themes": "8.12.1-snapshot.51+4d3697334"
|
|
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": "
|
|
52
|
+
"gitHead": "4d369733414715a70bae0628378e8d82214eab3e"
|
|
53
53
|
}
|