@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 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-10](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-10) (2022-06-20)
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
- static displayName = "Img";
48
- static componentId = 'Img';
49
- static propTypes = propTypes;
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
- if (typeof elementRef === 'function') {
63
- elementRef(el);
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
- }) || _class) || _class);
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
- static displayName = "Img";
40
- static componentId = 'Img';
41
- static propTypes = _props.propTypes;
42
- static allowedProps = _props.allowedProps;
43
- static defaultProps = {
44
- alt: '',
45
- display: 'inline-block',
46
- withGrayscale: false,
47
- withBlur: false
48
- };
49
- ref = null;
50
- handleRef = el => {
51
- const elementRef = this.props.elementRef;
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
- }) || _class) || _class);
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-10",
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-10",
28
- "@instructure/emotion": "8.25.1-snapshot-10",
29
- "@instructure/shared-types": "8.25.1-snapshot-10",
30
- "@instructure/ui-dom-utils": "8.25.1-snapshot-10",
31
- "@instructure/ui-react-utils": "8.25.1-snapshot-10",
32
- "@instructure/ui-testable": "8.25.1-snapshot-10",
33
- "@instructure/ui-view": "8.25.1-snapshot-10",
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-10",
38
- "@instructure/ui-test-locator": "8.25.1-snapshot-10",
39
- "@instructure/ui-test-utils": "8.25.1-snapshot-10"
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"