@instructure/ui-img 7.12.0 → 7.15.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 +16 -0
- package/package.json +10 -10
- package/src/Img/README.md +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
# [7.15.0](https://github.com/instructure/instructure-ui/compare/v7.14.1...v7.15.0) (2022-02-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-img
|
|
9
|
+
|
|
10
|
+
## [7.14.1](https://github.com/instructure/instructure-ui/compare/v7.14.0...v7.14.1) (2021-12-06)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @instructure/ui-img
|
|
13
|
+
|
|
14
|
+
# [7.14.0](https://github.com/instructure/instructure-ui/compare/v7.13.0...v7.14.0) (2021-12-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @instructure/ui-img
|
|
17
|
+
|
|
18
|
+
# [7.13.0](https://github.com/instructure/instructure-ui/compare/v7.12.0...v7.13.0) (2021-11-18)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @instructure/ui-img
|
|
21
|
+
|
|
6
22
|
# [7.12.0](https://github.com/instructure/instructure-ui/compare/v7.11.0...v7.12.0) (2021-10-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @instructure/ui-img
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-img",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"description": "An accessible image component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.9.2",
|
|
27
|
-
"@instructure/console": "^7.
|
|
28
|
-
"@instructure/ui-dom-utils": "^7.
|
|
29
|
-
"@instructure/ui-react-utils": "^7.
|
|
30
|
-
"@instructure/ui-testable": "^7.
|
|
31
|
-
"@instructure/ui-themeable": "^7.
|
|
32
|
-
"@instructure/ui-view": "^7.
|
|
27
|
+
"@instructure/console": "^7.15.0",
|
|
28
|
+
"@instructure/ui-dom-utils": "^7.15.0",
|
|
29
|
+
"@instructure/ui-react-utils": "^7.15.0",
|
|
30
|
+
"@instructure/ui-testable": "^7.15.0",
|
|
31
|
+
"@instructure/ui-themeable": "^7.15.0",
|
|
32
|
+
"@instructure/ui-view": "^7.15.0",
|
|
33
33
|
"classnames": "^2",
|
|
34
34
|
"prop-types": "^15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-babel-preset": "^7.
|
|
38
|
-
"@instructure/ui-test-locator": "^7.
|
|
39
|
-
"@instructure/ui-test-utils": "^7.
|
|
37
|
+
"@instructure/ui-babel-preset": "^7.15.0",
|
|
38
|
+
"@instructure/ui-test-locator": "^7.15.0",
|
|
39
|
+
"@instructure/ui-test-utils": "^7.15.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^16.8"
|
package/src/Img/README.md
CHANGED
|
@@ -58,19 +58,19 @@ example: true
|
|
|
58
58
|
<View textAlign="center" as="div">
|
|
59
59
|
<Img
|
|
60
60
|
src={placeholderImage(200, 200)}
|
|
61
|
-
overlay={{color: '#
|
|
61
|
+
overlay={{color: '#0374B5', opacity: 9, blend: 'overlay'}}
|
|
62
62
|
alt="A placeholder image"
|
|
63
63
|
margin="x-small"
|
|
64
64
|
/>
|
|
65
65
|
<Img
|
|
66
66
|
src={placeholderImage(200, 200)}
|
|
67
|
-
overlay={{color: '#
|
|
67
|
+
overlay={{color: '#0374B5', opacity: 6, blend: 'multiply'}}
|
|
68
68
|
alt="A placeholder image"
|
|
69
69
|
margin="x-small"
|
|
70
70
|
/>
|
|
71
71
|
<Img
|
|
72
72
|
src={placeholderImage(200, 200)}
|
|
73
|
-
overlay={{color: '#
|
|
73
|
+
overlay={{color: '#0374B5', opacity: 3}}
|
|
74
74
|
alt="A placeholder image"
|
|
75
75
|
margin="x-small"
|
|
76
76
|
/>
|
|
@@ -79,7 +79,7 @@ example: true
|
|
|
79
79
|
|
|
80
80
|
### Cover
|
|
81
81
|
|
|
82
|
-
When the `constrain` prop is set to `cover` the image fills the
|
|
82
|
+
When the `constrain` prop is set to `cover` the image fills the _full_ width and height of its
|
|
83
83
|
containing element, while maintaining the aspect ratio of the source image.
|
|
84
84
|
|
|
85
85
|
```js
|