@sis-cc/dotstatsuite-visions 7.8.2 → 7.8.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright © OECD 2019-2021
3
+ Copyright © OECD 2019-2022
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/es/Logo/Logo.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import cx from 'classnames';
3
4
  import { makeStyles } from '@material-ui/core/styles';
4
5
 
5
6
  var useStyles = makeStyles(function () {
@@ -13,7 +14,12 @@ var useStyles = makeStyles(function () {
13
14
  maxHeight: function maxHeight(_ref) {
14
15
  var _maxHeight = _ref.maxHeight;
15
16
  return _maxHeight;
16
- }
17
+ },
18
+ imageRendering: 'crisp-edges'
19
+ },
20
+ // https://caniuse.com/mdn-css_properties_image-rendering_crisp-edges
21
+ alternativeBrowserLogo: {
22
+ imageRendering: '-webkit-optimize-contrast'
17
23
  }
18
24
  };
19
25
  });
@@ -28,7 +34,7 @@ var Logo = function Logo(_ref2) {
28
34
  return React.createElement(
29
35
  'div',
30
36
  { className: classes.container },
31
- React.createElement('img', { className: classes.logo, src: logo, alt: 'logo' }),
37
+ React.createElement('img', { className: cx(classes.logo, classes.alternativeBrowserLogo), src: logo, alt: 'logo' }),
32
38
  children
33
39
  );
34
40
  };
package/lib/Logo/Logo.js CHANGED
@@ -10,6 +10,10 @@ var _propTypes = require('prop-types');
10
10
 
11
11
  var _propTypes2 = _interopRequireDefault(_propTypes);
12
12
 
13
+ var _classnames = require('classnames');
14
+
15
+ var _classnames2 = _interopRequireDefault(_classnames);
16
+
13
17
  var _styles = require('@material-ui/core/styles');
14
18
 
15
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -25,7 +29,12 @@ var useStyles = (0, _styles.makeStyles)(function () {
25
29
  maxHeight: function maxHeight(_ref) {
26
30
  var _maxHeight = _ref.maxHeight;
27
31
  return _maxHeight;
28
- }
32
+ },
33
+ imageRendering: 'crisp-edges'
34
+ },
35
+ // https://caniuse.com/mdn-css_properties_image-rendering_crisp-edges
36
+ alternativeBrowserLogo: {
37
+ imageRendering: '-webkit-optimize-contrast'
29
38
  }
30
39
  };
31
40
  });
@@ -40,7 +49,7 @@ var Logo = function Logo(_ref2) {
40
49
  return _react2.default.createElement(
41
50
  'div',
42
51
  { className: classes.container },
43
- _react2.default.createElement('img', { className: classes.logo, src: logo, alt: 'logo' }),
52
+ _react2.default.createElement('img', { className: (0, _classnames2.default)(classes.logo, classes.alternativeBrowserLogo), src: logo, alt: 'logo' }),
44
53
  children
45
54
  );
46
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.8.2",
3
+ "version": "7.8.3",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",