ecomlab-components-next 0.1.120 → 0.1.122

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.
@@ -142,10 +142,14 @@ var CardsInfo = function CardsInfo(_ref) {
142
142
  }, /*#__PURE__*/_react["default"].createElement("div", {
143
143
  className: "block-cards-info__img-box"
144
144
  }, !img && /*#__PURE__*/_react["default"].createElement("img", {
145
+ decoding: "async",
146
+ loading: "lazy",
145
147
  alt: "icon",
146
148
  className: "block-cards-info__img-development",
147
149
  src: "https://dl.ecomru.ru:9001/dev-images/frame_1321317238.png"
148
150
  }), /*#__PURE__*/_react["default"].createElement("img", {
151
+ decoding: "async",
152
+ loading: "lazy",
149
153
  alt: "icon",
150
154
  className: "block-cards-info__img",
151
155
  src: img ? img : 'https://dl.ecomru.ru:9001/dev-images/6_2.png'
@@ -54,6 +54,8 @@
54
54
  height: auto;
55
55
  border-radius: 10px;
56
56
  object-fit: cover;
57
+ max-width: 100%;
58
+ image-rendering: -webkit-optimize-contrast;
57
59
  }
58
60
 
59
61
  &__title_card {
@@ -74,6 +74,8 @@ var SliderCarousel = function SliderCarousel(_ref) {
74
74
  href: value ? value : '#',
75
75
  target: "_blank"
76
76
  }, /*#__PURE__*/_react["default"].createElement("img", {
77
+ decoding: "async",
78
+ loading: "lazy",
77
79
  className: "slider-carousel__img",
78
80
  src: value,
79
81
  onError: function onError(e) {
@@ -81,6 +83,8 @@ var SliderCarousel = function SliderCarousel(_ref) {
81
83
  },
82
84
  alt: alt
83
85
  })) : /*#__PURE__*/_react["default"].createElement(_image["default"], {
86
+ decoding: "async",
87
+ loading: "lazy",
84
88
  className: "slider-carousel__img",
85
89
  src: _no_image["default"],
86
90
  onError: function onError(e) {
@@ -98,6 +102,8 @@ var SliderCarousel = function SliderCarousel(_ref) {
98
102
  return e.target.src = _no_image["default"];
99
103
  }
100
104
  }) : /*#__PURE__*/_react["default"].createElement(_image["default"], {
105
+ decoding: "async",
106
+ loading: "lazy",
101
107
  className: ((_currentImgArr9 = currentImgArr()) === null || _currentImgArr9 === void 0 ? void 0 : _currentImgArr9.length) > 0 ? 'img' : 'no-photo',
102
108
  src: currentImgArr() && ((_currentImgArr10 = currentImgArr()) === null || _currentImgArr10 === void 0 ? void 0 : _currentImgArr10.length) > 0 ? (_currentImgArr$curren2 = (_currentImgArr11 = currentImgArr()) === null || _currentImgArr11 === void 0 || (_currentImgArr11 = _currentImgArr11[currentImg]) === null || _currentImgArr11 === void 0 ? void 0 : _currentImgArr11.value) !== null && _currentImgArr$curren2 !== void 0 ? _currentImgArr$curren2 : _no_image["default"] : _no_image["default"],
103
109
  alt: currentImgArr() && ((_currentImgArr12 = currentImgArr()) === null || _currentImgArr12 === void 0 ? void 0 : _currentImgArr12.length) > 0 ? (_currentImgArr13 = currentImgArr()) === null || _currentImgArr13 === void 0 || (_currentImgArr13 = _currentImgArr13[currentImg]) === null || _currentImgArr13 === void 0 ? void 0 : _currentImgArr13.alt : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.120",
3
+ "version": "0.1.122",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [