ecomlab-components-next 0.1.150 → 0.1.152

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.
@@ -25,7 +25,9 @@ var BlocksInfo = function BlocksInfo(_ref) {
25
25
  list = _ref$list === void 0 ? [] : _ref$list,
26
26
  child = _ref.child,
27
27
  _ref$linkMain = _ref.linkMain,
28
- linkMain = _ref$linkMain === void 0 ? 'https://lk.ecomru.ru' : _ref$linkMain;
28
+ linkMain = _ref$linkMain === void 0 ? 'https://lk.ecomru.ru' : _ref$linkMain,
29
+ _ref$btnName = _ref.btnName,
30
+ btnName = _ref$btnName === void 0 ? false : _ref$btnName;
29
31
  var _useState = (0, _react.useState)(''),
30
32
  _useState2 = _slicedToArray(_useState, 2),
31
33
  refPage = _useState2[0],
@@ -76,11 +78,23 @@ var BlocksInfo = function BlocksInfo(_ref) {
76
78
  green: true,
77
79
  width: "100%",
78
80
  maxWidth: '430px',
79
- text: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C",
80
- onClick: function onClick() {
81
- var _window2;
82
- return (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.open("".concat(linkMain, "/auth").concat(refPage), '_blunk');
83
- },
81
+ text: btnName || 'Попробовать',
82
+ onClick: function (_onClick) {
83
+ function onClick() {
84
+ return _onClick.apply(this, arguments);
85
+ }
86
+ onClick.toString = function () {
87
+ return _onClick.toString();
88
+ };
89
+ return onClick;
90
+ }(function () {
91
+ if (onClick) {
92
+ onClick();
93
+ } else {
94
+ var _window2;
95
+ (_window2 = window) === null || _window2 === void 0 || _window2.open("".concat(linkMain, "/auth").concat(refPage), '_blunk');
96
+ }
97
+ }),
84
98
  size: "56px"
85
99
  })));
86
100
  })));
@@ -75,6 +75,7 @@
75
75
  overflow: hidden;
76
76
  aspect-ratio: 1.75/1;
77
77
  position: relative;
78
+ max-width: 744px;
78
79
  }
79
80
 
80
81
  &__img {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.150",
3
+ "version": "0.1.152",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [