trepur_components 0.3.37 → 0.3.40

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.
@@ -76,9 +76,10 @@ const Image = _ref => {
76
76
  'h-40': imageProps.height === 10,
77
77
  'h-44': imageProps.height === 11
78
78
  });
79
+ const rounded = imageProps !== null && imageProps !== void 0 && imageProps.rounded ? 'rounded-full' : '';
79
80
  const classList = (0, _classnames.default)({
80
81
  [imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes,
81
- 'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
82
+ [rounded]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
82
83
  }, widthClassList, heightClassList);
83
84
  return /*#__PURE__*/_react.default.createElement("div", {
84
85
  className: classList
@@ -93,8 +94,8 @@ const Image = _ref => {
93
94
  }, imageProps === null || imageProps === void 0 ? void 0 : imageProps.imageName)), /*#__PURE__*/_react.default.createElement("img", _extends({}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.id) && {
94
95
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
95
96
  }, {
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' : '')
97
+ className: "".concat(widthClassList, " ").concat(heightClassList, " ").concat(rounded),
98
+ src: imageProps === null || imageProps === void 0 ? void 0 : imageProps.image
98
99
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText) && {
99
100
  alt: imageProps === null || imageProps === void 0 ? void 0 : imageProps.altText
100
101
  }, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.title) && {
@@ -103,7 +103,6 @@ const SocialBlock = _ref => {
103
103
 
104
104
  const handleChange = e => {
105
105
  let id = e.target.id;
106
- console.log('id', id);
107
106
  id = id.split('-')[id.split('-').length - 1];
108
107
  setComponentData(_objectSpread(_objectSpread({}, componentData), {}, {
109
108
  [id]: {
@@ -198,7 +198,8 @@ const Timeline = _ref => {
198
198
  classes: imageClassList,
199
199
  title: item.logoTitle,
200
200
  image: item.logo,
201
- altText: "".concat(item.logoAltText, " center logo")
201
+ altText: "".concat(item.logoAltText, " center logo"),
202
+ rounded: true
202
203
  }
203
204
  })) : /*#__PURE__*/_react.default.createElement("p", {
204
205
  id: circlePos,
@@ -236,7 +237,8 @@ const Timeline = _ref => {
236
237
  classes: imageClassList,
237
238
  title: item.logoTitle,
238
239
  image: item.logo,
239
- altText: "".concat(item.logoAltText, " center logo")
240
+ altText: "".concat(item.logoAltText, " center logo"),
241
+ rounded: true
240
242
  }
241
243
  }), /*#__PURE__*/_react.default.createElement("span", {
242
244
  style: verticalCircleStylesAfter
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.37",
5
+ "version": "0.3.40",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",