trepur_components 0.3.35 → 0.3.36

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.
@@ -39,7 +39,9 @@ const imageProps = {
39
39
  height: _propTypes.default.number,
40
40
  width: _propTypes.default.number,
41
41
  overlayColour: _propTypes.default.string,
42
- overlayTextColour: _propTypes.default.string
42
+ overlayTextColour: _propTypes.default.string,
43
+ overlayOpacity: _propTypes.default.string,
44
+ overlayTextOpacity: _propTypes.default.string
43
45
  };
44
46
  exports.imageProps = imageProps;
45
47
 
@@ -81,9 +83,9 @@ const Image = _ref => {
81
83
  return /*#__PURE__*/_react.default.createElement("div", {
82
84
  className: classList
83
85
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName) && /*#__PURE__*/_react.default.createElement("div", {
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')
86
+ className: "absolute ".concat(widthClassList, " ").concat(heightClassList, " z-10 ").concat(imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayColour, " transition-opacity duration-700 ").concat(isHovering ? imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayOpacity : 'opacity-0')
85
87
  }), (imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName) && /*#__PURE__*/_react.default.createElement("div", {
86
- className: "flex absolute ".concat(widthClassList, " ").concat(heightClassList, " z-20 transition-opacity duration-700 ").concat(isHovering ? 'opacity-100' : 'opacity-0'),
88
+ className: "flex absolute ".concat(widthClassList, " ").concat(heightClassList, " z-20 transition-opacity duration-700 ").concat(isHovering ? imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayTextOpacity : 'opacity-0'),
87
89
  onMouseEnter: () => setIsHovering(true),
88
90
  onMouseLeave: () => setIsHovering(false)
89
91
  }, /*#__PURE__*/_react.default.createElement("p", {
@@ -92,7 +94,7 @@ const Image = _ref => {
92
94
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
93
95
  }, {
94
96
  src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image,
95
- className: classList
97
+ className: "".concat(widthClassList, " ").concat(heightClassList)
96
98
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
97
99
  alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
98
100
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.title) && {
@@ -51,7 +51,7 @@ const Timeline = _ref => {
51
51
  }, 'status-flow-item relative flex flex-auto flex-row leading-tight');
52
52
  const imageClassList = (0, _classnames.default)({
53
53
  [imageClasses]: imageClasses
54
- }, ' my-16 text-center mx-auto rounded-full border bg-black');
54
+ }, 'text-center mx-auto rounded-full border bg-black');
55
55
  const circle = (0, _classnames.default)({
56
56
  'horizontal collapse': isHorizontal && isSm,
57
57
  'horizontal': isHorizontal && !isSm,
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.35",
5
+ "version": "0.3.36",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",