ecomlab-components-next 0.1.283 → 0.1.284

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.
@@ -71,10 +71,9 @@ var SliderCarousel = function SliderCarousel(_ref) {
71
71
  width: "calc(".concat(100 / ((_currentImgArr2 = currentImgArr()) === null || _currentImgArr2 === void 0 ? void 0 : _currentImgArr2.length) + '%', ")")
72
72
  }
73
73
  }, value ? /*#__PURE__*/_react["default"].createElement("button", {
74
- className: "slider-carousel__img-button",
75
- onClick: function onClick() {
76
- return value && window.open(value, '_blank');
77
- },
74
+ className: "slider-carousel__img-button"
75
+ // onClick={() => value && window.open(value, '_blank')}
76
+ ,
78
77
  "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 ".concat(alt, " \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435")
79
78
  }, /*#__PURE__*/_react["default"].createElement("img", {
80
79
  decoding: "async",
@@ -100,11 +100,7 @@ var LongTileArticleBox = function LongTileArticleBox(_ref) {
100
100
  }, /*#__PURE__*/React.createElement("div", {
101
101
  className: "article-min"
102
102
  }, /*#__PURE__*/React.createElement("div", {
103
- className: "img-content",
104
- onClick: function onClick(e) {
105
- e.preventDefault();
106
- e.stopPropagation();
107
- }
103
+ className: "img-content"
108
104
  }, /*#__PURE__*/React.createElement("div", {
109
105
  className: "img-box"
110
106
  }, /*#__PURE__*/React.createElement(_SliderCarousel["default"], {
@@ -75,10 +75,6 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
75
75
  }, /*#__PURE__*/React.createElement(_link["default"], {
76
76
  target: linkString ? '_blank' : '',
77
77
  onClick: function onClick(e) {
78
- if (e.target.closest('.img-content')) {
79
- e.preventDefault();
80
- return;
81
- }
82
78
  if (stopRedirect) {
83
79
  e.preventDefault();
84
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.283",
3
+ "version": "0.1.284",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [