@dnanpm/styleguide 2.2.1 → 2.2.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.
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import 'lazysizes';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Component will be deprecated and removed
|
|
5
|
-
* TODO: Deprecate component https://jira.dna.fi/browse/STYLE-364
|
|
6
|
-
*/
|
|
7
3
|
interface ImageProps {
|
|
8
4
|
defaultImageStyles: object;
|
|
9
5
|
imgSrc: string;
|
|
@@ -18,5 +14,8 @@ interface SourceSet {
|
|
|
18
14
|
srcSet: string;
|
|
19
15
|
sizes: string;
|
|
20
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated With no replacement
|
|
19
|
+
*/
|
|
21
20
|
declare const Image: React.SFC<ImageProps>;
|
|
22
21
|
export default Image;
|
|
@@ -11,6 +11,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var ProgressiveImage__default = /*#__PURE__*/_interopDefaultLegacy(ProgressiveImage);
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated With no replacement
|
|
16
|
+
*/
|
|
14
17
|
const Image = ({ defaultImageStyles, imgSrc, srcSet, placeholder, dataTestId, defaultSrc, defaultSrcSet, imageTitle, }) => {
|
|
15
18
|
const brokenImage = (ev) => {
|
|
16
19
|
ev.target.src = defaultSrc;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import 'lazysizes';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Component will be deprecated and removed
|
|
5
|
-
* TODO: Deprecate component https://jira.dna.fi/browse/STYLE-364
|
|
6
|
-
*/
|
|
7
3
|
interface ImageProps {
|
|
8
4
|
defaultImageStyles: object;
|
|
9
5
|
imgSrc: string;
|
|
@@ -18,5 +14,8 @@ interface SourceSet {
|
|
|
18
14
|
srcSet: string;
|
|
19
15
|
sizes: string;
|
|
20
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated With no replacement
|
|
19
|
+
*/
|
|
21
20
|
declare const Image: React.SFC<ImageProps>;
|
|
22
21
|
export default Image;
|
|
@@ -2,6 +2,9 @@ import 'lazysizes';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ProgressiveImage from 'react-progressive-image';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated With no replacement
|
|
7
|
+
*/
|
|
5
8
|
const Image = ({ defaultImageStyles, imgSrc, srcSet, placeholder, dataTestId, defaultSrc, defaultSrcSet, imageTitle, }) => {
|
|
6
9
|
const brokenImage = (ev) => {
|
|
7
10
|
ev.target.src = defaultSrc;
|