ecomlab-components-next 0.1.294 → 0.1.296

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.
@@ -26,10 +26,12 @@ var CardsV2 = function CardsV2(_ref) {
26
26
  var title = _ref.title,
27
27
  _ref$list = _ref.list,
28
28
  list = _ref$list === void 0 ? DEFAULT_LIST : _ref$list,
29
- child = _ref.child;
29
+ child = _ref.child,
30
+ _ref$violet = _ref.violet,
31
+ violet = _ref$violet === void 0 ? false : _ref$violet;
30
32
  (0, _useReveal["default"])();
31
33
  return /*#__PURE__*/_react["default"].createElement("section", {
32
- className: "cards-v2"
34
+ className: "cards-v2 ".concat(violet ? 'cards-v2--violet' : '')
33
35
  }, /*#__PURE__*/_react["default"].createElement("div", {
34
36
  className: "cards-v2__inner"
35
37
  }, title && /*#__PURE__*/_react["default"].createElement("h2", {
@@ -62,6 +62,10 @@
62
62
  }
63
63
  }
64
64
 
65
+ &--violet &__item::before {
66
+ background: rgb(139, 92, 246);
67
+ }
68
+
65
69
  &__card-title {
66
70
  font-size: 40px;
67
71
  font-weight: 800;
@@ -75,6 +79,13 @@
75
79
  background-clip: text;
76
80
  }
77
81
 
82
+ &--violet &__card-title {
83
+ background: linear-gradient(135deg, rgb(139, 92, 246) 0%, rgb(139, 92, 246) 100%);
84
+ -webkit-background-clip: text;
85
+ -webkit-text-fill-color: transparent;
86
+ background-clip: text;
87
+ }
88
+
78
89
  &__description {
79
90
  font-size: 14px;
80
91
  font-weight: 500;
@@ -229,7 +229,9 @@ var MainContainerTest = exports.MainContainerTest = function MainContainerTest()
229
229
  }), /*#__PURE__*/_react["default"].createElement(_PointsListV["default"], {
230
230
  list: point_list,
231
231
  title: 'Возможности нашего сервиса',
232
- className: 'max-items-3'
232
+ columns: 5,
233
+ align: 'center',
234
+ violet: true
233
235
  }), /*#__PURE__*/_react["default"].createElement(_LogosStrip["default"], null), /*#__PURE__*/_react["default"].createElement(_VideoBlockV["default"], {
234
236
  src: "https://dl.ecomru.ru:9001/redactor-videos/ecomru_1.mp4"
235
237
  }));
@@ -17,7 +17,8 @@ var PointsListV2 = function PointsListV2(_ref) {
17
17
  className = _ref$className === void 0 ? '' : _ref$className,
18
18
  _ref$columns = _ref.columns,
19
19
  columns = _ref$columns === void 0 ? 3 : _ref$columns,
20
- align = _ref.align;
20
+ align = _ref.align,
21
+ violet = _ref.violet;
21
22
  (0, _useReveal["default"])();
22
23
 
23
24
  // Создаем CSS-переменную для количества колонок
@@ -44,6 +45,9 @@ var PointsListV2 = function PointsListV2(_ref) {
44
45
  '--index': index
45
46
  }
46
47
  }, icon && /*#__PURE__*/_react["default"].createElement("div", {
48
+ style: {
49
+ background: violet ? '#efe8fd' : ''
50
+ },
47
51
  className: "points-list-v2__item-icon"
48
52
  }, /*#__PURE__*/_react["default"].createElement(_image["default"], {
49
53
  src: icon,
@@ -33,7 +33,9 @@ var StepsV2 = function StepsV2(_ref) {
33
33
  _ref$onClick = _ref.onClick,
34
34
  _onClick = _ref$onClick === void 0 ? false : _ref$onClick,
35
35
  _ref$btnText = _ref.btnText,
36
- btnText = _ref$btnText === void 0 ? 'Попробовать бесплатно' : _ref$btnText;
36
+ btnText = _ref$btnText === void 0 ? 'Попробовать бесплатно' : _ref$btnText,
37
+ _ref$violet = _ref.violet,
38
+ violet = _ref$violet === void 0 ? false : _ref$violet;
37
39
  var current_query = typeof window !== 'undefined' ? (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.search : '';
38
40
  var _useState = (0, _react.useState)(false),
39
41
  _useState2 = _slicedToArray(_useState, 2),
@@ -51,7 +53,7 @@ var StepsV2 = function StepsV2(_ref) {
51
53
  };
52
54
  }, []);
53
55
  return /*#__PURE__*/_react["default"].createElement("section", {
54
- className: "steps-v2 ".concat(className)
56
+ className: "steps-v2 ".concat(className, " ").concat(violet ? 'steps-v2--violet' : '')
55
57
  }, title && /*#__PURE__*/_react["default"].createElement("h3", {
56
58
  className: "steps-v2__title reveal"
57
59
  }, title), /*#__PURE__*/_react["default"].createElement("div", {
@@ -90,7 +92,8 @@ var StepsV2 = function StepsV2(_ref) {
90
92
  }
91
93
  },
92
94
  size: '52px',
93
- green: true,
95
+ green: !violet,
96
+ violet: violet,
94
97
  text: 'Попробовать бесплатно'
95
98
  }));
96
99
  };
@@ -45,6 +45,10 @@
45
45
  z-index: 0;
46
46
  }
47
47
 
48
+ &--violet &__items::before {
49
+ background: linear-gradient(90deg, $bg, rgb(139, 92, 246), $bg);
50
+ }
51
+
48
52
  &__item {
49
53
  display: flex;
50
54
  flex-direction: column;
@@ -76,11 +80,22 @@
76
80
  flex-shrink: 0;
77
81
  }
78
82
 
83
+ &--violet &__count {
84
+ border-color: rgb(139, 92, 246);
85
+ color: rgb(139, 92, 246);
86
+ }
87
+
79
88
  &__item:first-child &__count {
80
89
  background: $green;
81
90
  color: $white;
82
91
  }
83
92
 
93
+ &--violet &__item:first-child &__count {
94
+ background: rgb(139, 92, 246);
95
+ color: $white;
96
+ border-color: rgb(139, 92, 246);
97
+ }
98
+
84
99
  &__step-title {
85
100
  color: $text;
86
101
  font-size: 15px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.294",
3
+ "version": "0.1.296",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [