trepur_components 0.3.34 → 0.3.35

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.
@@ -35,7 +35,11 @@ const imageProps = {
35
35
  image: _propTypes.default.string,
36
36
  altText: _propTypes.default.string,
37
37
  title: _propTypes.default.string,
38
- rounded: _propTypes.default.bool
38
+ rounded: _propTypes.default.bool,
39
+ height: _propTypes.default.number,
40
+ width: _propTypes.default.number,
41
+ overlayColour: _propTypes.default.string,
42
+ overlayTextColour: _propTypes.default.string
39
43
  };
40
44
  exports.imageProps = imageProps;
41
45
 
@@ -73,21 +77,22 @@ const Image = _ref => {
73
77
  const classList = (0, _classnames.default)({
74
78
  [imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes,
75
79
  'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
76
- }, widthClassList, heightClassList, 'ml-16');
80
+ }, widthClassList, heightClassList);
77
81
  return /*#__PURE__*/_react.default.createElement("div", {
78
82
  className: classList
79
83
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName) && /*#__PURE__*/_react.default.createElement("div", {
80
- className: "absolute ".concat(widthClassList, " ").concat(heightClassList, " z-10 bg-white transition-opacity duration-700 ").concat(isHovering ? 'opacity-50' : 'opacity-0')
84
+ className: "absolute ".concat(widthClassList, " ").concat(heightClassList, " z-10 ").concat(imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayColour, " transition-opacity duration-700 ").concat(isHovering ? 'opacity-50' : 'opacity-0')
81
85
  }), (imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName) && /*#__PURE__*/_react.default.createElement("div", {
82
86
  className: "flex absolute ".concat(widthClassList, " ").concat(heightClassList, " z-20 transition-opacity duration-700 ").concat(isHovering ? 'opacity-100' : 'opacity-0'),
83
87
  onMouseEnter: () => setIsHovering(true),
84
88
  onMouseLeave: () => setIsHovering(false)
85
89
  }, /*#__PURE__*/_react.default.createElement("p", {
86
- className: "m-auto text-center"
90
+ className: "m-auto text-center ".concat(imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayTextColour)
87
91
  }, imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName)), /*#__PURE__*/_react.default.createElement("img", _extends({}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.id) && {
88
92
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
89
93
  }, {
90
- src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image
94
+ src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image,
95
+ className: classList
91
96
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
92
97
  alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
93
98
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.title) && {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "trepur_components",
3
3
  "description": "component lib",
4
4
  "author": "trepur_ttenneb",
5
- "version": "0.3.34",
5
+ "version": "0.3.35",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",