trepur_components 0.3.34 → 0.3.37

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,13 @@ 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,
43
+ overlayOpacity: _propTypes.default.string,
44
+ overlayTextOpacity: _propTypes.default.string
39
45
  };
40
46
  exports.imageProps = imageProps;
41
47
 
@@ -73,21 +79,22 @@ const Image = _ref => {
73
79
  const classList = (0, _classnames.default)({
74
80
  [imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes,
75
81
  'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
76
- }, widthClassList, heightClassList, 'ml-16');
82
+ }, widthClassList, heightClassList);
77
83
  return /*#__PURE__*/_react.default.createElement("div", {
78
84
  className: classList
79
85
  }, (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')
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')
81
87
  }), (imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName) && /*#__PURE__*/_react.default.createElement("div", {
82
- 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'),
83
89
  onMouseEnter: () => setIsHovering(true),
84
90
  onMouseLeave: () => setIsHovering(false)
85
91
  }, /*#__PURE__*/_react.default.createElement("p", {
86
- className: "m-auto text-center"
92
+ className: "m-auto text-center ".concat(imageProps === null || imageProps === void 0 ? void 0 : imageProps.overlayTextColour)
87
93
  }, 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
94
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
89
95
  }, {
90
- src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image
96
+ src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image,
97
+ className: "".concat(widthClassList, " ").concat(heightClassList, " ").concat(imageProps !== null && imageProps !== void 0 && imageProps.rounded ? 'rounded-full' : '')
91
98
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
92
99
  alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
93
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.34",
5
+ "version": "0.3.37",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",