@instructure/ui-img 8.25.1-snapshot-10 → 8.25.1-snapshot-13
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 +1 -1
- package/es/Img/index.js +20 -21
- package/lib/Img/index.js +21 -22
- package/package.json +11 -11
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.25.1-snapshot-
|
|
6
|
+
## [8.25.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-13) (2022-06-22)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-img
|
|
9
9
|
|
package/es/Img/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["src", "alt", "margin", "display", "overlay", "withGrayscale", "withBlur", "constrain", "width", "height", "elementRef", "styles"];
|
|
3
3
|
|
|
4
|
-
var _dec, _dec2, _class;
|
|
4
|
+
var _dec, _dec2, _class, _class2;
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* The MIT License (MIT)
|
|
@@ -43,26 +43,20 @@ category: components
|
|
|
43
43
|
---
|
|
44
44
|
@tsProps
|
|
45
45
|
**/
|
|
46
|
-
let Img = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = class Img extends Component {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
static allowedProps = allowedProps;
|
|
51
|
-
static defaultProps = {
|
|
52
|
-
alt: '',
|
|
53
|
-
display: 'inline-block',
|
|
54
|
-
withGrayscale: false,
|
|
55
|
-
withBlur: false
|
|
56
|
-
};
|
|
57
|
-
ref = null;
|
|
58
|
-
handleRef = el => {
|
|
59
|
-
const elementRef = this.props.elementRef;
|
|
60
|
-
this.ref = el;
|
|
46
|
+
let Img = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Img extends Component {
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
|
+
this.ref = null;
|
|
61
50
|
|
|
62
|
-
|
|
63
|
-
elementRef
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
this.handleRef = el => {
|
|
52
|
+
const elementRef = this.props.elementRef;
|
|
53
|
+
this.ref = el;
|
|
54
|
+
|
|
55
|
+
if (typeof elementRef === 'function') {
|
|
56
|
+
elementRef(el);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
66
60
|
|
|
67
61
|
componentDidMount() {
|
|
68
62
|
var _this$props$makeStyle, _this$props;
|
|
@@ -125,6 +119,11 @@ let Img = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
|
|
|
125
119
|
}
|
|
126
120
|
}
|
|
127
121
|
|
|
128
|
-
}
|
|
122
|
+
}, _class2.displayName = "Img", _class2.componentId = 'Img', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
|
|
123
|
+
alt: '',
|
|
124
|
+
display: 'inline-block',
|
|
125
|
+
withGrayscale: false,
|
|
126
|
+
withBlur: false
|
|
127
|
+
}, _class2)) || _class) || _class);
|
|
129
128
|
export default Img;
|
|
130
129
|
export { Img };
|
package/lib/Img/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var _props = require("./props");
|
|
|
27
27
|
|
|
28
28
|
const _excluded = ["src", "alt", "margin", "display", "overlay", "withGrayscale", "withBlur", "constrain", "width", "height", "elementRef", "styles"];
|
|
29
29
|
|
|
30
|
-
var _dec, _dec2, _class;
|
|
30
|
+
var _dec, _dec2, _class, _class2;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
---
|
|
@@ -35,26 +35,20 @@ category: components
|
|
|
35
35
|
---
|
|
36
36
|
@tsProps
|
|
37
37
|
**/
|
|
38
|
-
let Img = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = class Img extends _react.Component {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.ref = el;
|
|
53
|
-
|
|
54
|
-
if (typeof elementRef === 'function') {
|
|
55
|
-
elementRef(el);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
38
|
+
let Img = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Img extends _react.Component {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.ref = null;
|
|
42
|
+
|
|
43
|
+
this.handleRef = el => {
|
|
44
|
+
const elementRef = this.props.elementRef;
|
|
45
|
+
this.ref = el;
|
|
46
|
+
|
|
47
|
+
if (typeof elementRef === 'function') {
|
|
48
|
+
elementRef(el);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
58
52
|
|
|
59
53
|
componentDidMount() {
|
|
60
54
|
var _this$props$makeStyle, _this$props;
|
|
@@ -116,7 +110,12 @@ let Img = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
|
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
112
|
|
|
119
|
-
}
|
|
113
|
+
}, _class2.displayName = "Img", _class2.componentId = 'Img', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
114
|
+
alt: '',
|
|
115
|
+
display: 'inline-block',
|
|
116
|
+
withGrayscale: false,
|
|
117
|
+
withBlur: false
|
|
118
|
+
}, _class2)) || _class) || _class);
|
|
120
119
|
exports.Img = Img;
|
|
121
120
|
var _default = Img;
|
|
122
121
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-img",
|
|
3
|
-
"version": "8.25.1-snapshot-
|
|
3
|
+
"version": "8.25.1-snapshot-13",
|
|
4
4
|
"description": "An accessible image component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/console": "8.25.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.25.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.25.1-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "8.25.1-snapshot-
|
|
31
|
-
"@instructure/ui-react-utils": "8.25.1-snapshot-
|
|
32
|
-
"@instructure/ui-testable": "8.25.1-snapshot-
|
|
33
|
-
"@instructure/ui-view": "8.25.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.25.1-snapshot-13",
|
|
28
|
+
"@instructure/emotion": "8.25.1-snapshot-13",
|
|
29
|
+
"@instructure/shared-types": "8.25.1-snapshot-13",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.25.1-snapshot-13",
|
|
31
|
+
"@instructure/ui-react-utils": "8.25.1-snapshot-13",
|
|
32
|
+
"@instructure/ui-testable": "8.25.1-snapshot-13",
|
|
33
|
+
"@instructure/ui-view": "8.25.1-snapshot-13",
|
|
34
34
|
"prop-types": "^15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-babel-preset": "8.25.1-snapshot-
|
|
38
|
-
"@instructure/ui-test-locator": "8.25.1-snapshot-
|
|
39
|
-
"@instructure/ui-test-utils": "8.25.1-snapshot-
|
|
37
|
+
"@instructure/ui-babel-preset": "8.25.1-snapshot-13",
|
|
38
|
+
"@instructure/ui-test-locator": "8.25.1-snapshot-13",
|
|
39
|
+
"@instructure/ui-test-utils": "8.25.1-snapshot-13"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8 <=17"
|