trepur_components 0.3.35 → 0.3.38

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
 
@@ -74,16 +76,17 @@ const Image = _ref => {
74
76
  'h-40': imageProps.height === 10,
75
77
  'h-44': imageProps.height === 11
76
78
  });
79
+ const rounded = imageProps !== null && imageProps !== void 0 && imageProps.rounded ? 'rounded-full' : '';
77
80
  const classList = (0, _classnames.default)({
78
81
  [imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes,
79
- 'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
82
+ [rounded]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
80
83
  }, widthClassList, heightClassList);
81
84
  return /*#__PURE__*/_react.default.createElement("div", {
82
85
  className: classList
83
86
  }, (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')
87
+ 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
88
  }), (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'),
89
+ 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
90
  onMouseEnter: () => setIsHovering(true),
88
91
  onMouseLeave: () => setIsHovering(false)
89
92
  }, /*#__PURE__*/_react.default.createElement("p", {
@@ -92,7 +95,7 @@ const Image = _ref => {
92
95
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
93
96
  }, {
94
97
  src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image,
95
- className: classList
98
+ className: "".concat(widthClassList, " ").concat(heightClassList, " ").concat(rounded)
96
99
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
97
100
  alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
98
101
  }, (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.38",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",