@uncinc/uncinc-react-kitchen-sink 2.7.3 → 2.7.5

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.
@@ -5,20 +5,14 @@ declare namespace Image {
5
5
  onLoad: PropTypes.Requireable<(...args: any[]) => any>;
6
6
  alt: PropTypes.Requireable<string>;
7
7
  src: PropTypes.Validator<{}>;
8
- dimensions: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
9
- width: PropTypes.Requireable<number>;
10
- height: PropTypes.Requireable<number>;
11
- aspectRatio: PropTypes.Requireable<number>;
12
- }> | (PropTypes.InferProps<{
13
- width: PropTypes.Requireable<number>;
14
- height: PropTypes.Requireable<number>;
15
- aspectRatio: PropTypes.Requireable<number>;
16
- }> | null | undefined)[] | null | undefined>>;
17
8
  lazyload: PropTypes.Requireable<boolean>;
9
+ aspectRatio: PropTypes.Requireable<number>;
10
+ objectFit: PropTypes.Requireable<string>;
18
11
  };
19
12
  namespace defaultProps {
20
13
  let lazyload: boolean;
21
- let dimensions: {};
14
+ let aspectRatio: null;
15
+ let objectFit: null;
22
16
  }
23
17
  }
24
18
  import React from 'react';
@@ -27,19 +27,16 @@ var Image = function Image(props) {
27
27
  }
28
28
  return /*#__PURE__*/_react.default.createElement(PictureComponent, props);
29
29
  };
30
- var dimensionsPropType = _propTypes.default.shape({
31
- width: _propTypes.default.number,
32
- height: _propTypes.default.number,
33
- aspectRatio: _propTypes.default.number
34
- });
35
30
  Image.propTypes = _objectSpread({
36
31
  src: _propTypes.default.oneOfType([_propTypes.default.string, _reactImmutableProptypes.default.map, _propTypes.default.arrayOf(_propTypes.default.string)]).isRequired,
37
- dimensions: _propTypes.default.oneOfType([dimensionsPropType, _propTypes.default.arrayOf(dimensionsPropType)]),
38
- lazyload: _propTypes.default.bool
32
+ lazyload: _propTypes.default.bool,
33
+ aspectRatio: _propTypes.default.number,
34
+ objectFit: _propTypes.default.oneOf(['fill', 'contain', 'cover', 'none', 'scale-down'])
39
35
  }, _Picture.default.propTypes);
40
36
  Image.defaultProps = {
41
37
  lazyload: true,
42
- dimensions: {}
38
+ aspectRatio: null,
39
+ objectFit: null
43
40
  };
44
41
  var _default = Image;
45
42
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",