@desynova-digital/components 9.0.22 → 9.0.24

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.
@@ -64,10 +64,10 @@ var ThumbnailStyles = _styledComponents2.default.div(_templateObject2, function
64
64
  return 'url(' + thumbnail + ') no-repeat 50%';
65
65
  }, function (_ref2) {
66
66
  var data_type = _ref2.data_type;
67
- return assetStyles[data_type].backgroundColor || 'inherit';
67
+ return assetStyles[data_type] && assetStyles[data_type].backgroundColor ? assetStyles[data_type].backgroundColor : 'inherit';
68
68
  }, function (_ref3) {
69
69
  var data_type = _ref3.data_type;
70
- return assetStyles[data_type].backgroundSize || 'cover';
70
+ return assetStyles[data_type] && assetStyles[data_type].backgroundSize ? assetStyles[data_type].backgroundSize : 'cover';
71
71
  }, function (_ref4) {
72
72
  var width = _ref4.width;
73
73
  return width === 'sm' ? '90px' : width === 'md' ? '125px' : '222px';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.0.22",
3
+ "version": "9.0.24",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.0.22",
10
+ "@desynova-digital/tokens": "9.0.24",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },