ecomlab-components-next 0.1.293 → 0.1.294

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.
@@ -14,8 +14,16 @@ var PointsListV2 = function PointsListV2(_ref) {
14
14
  var title = _ref.title,
15
15
  list = _ref.list,
16
16
  _ref$className = _ref.className,
17
- className = _ref$className === void 0 ? '' : _ref$className;
17
+ className = _ref$className === void 0 ? '' : _ref$className,
18
+ _ref$columns = _ref.columns,
19
+ columns = _ref$columns === void 0 ? 3 : _ref$columns,
20
+ align = _ref.align;
18
21
  (0, _useReveal["default"])();
22
+
23
+ // Создаем CSS-переменную для количества колонок
24
+ var gridStyle = {
25
+ '--columns': columns
26
+ };
19
27
  return /*#__PURE__*/_react["default"].createElement("section", {
20
28
  className: "points-list-v2"
21
29
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -23,7 +31,8 @@ var PointsListV2 = function PointsListV2(_ref) {
23
31
  }, /*#__PURE__*/_react["default"].createElement("h2", {
24
32
  className: "points-list-v2__title reveal"
25
33
  }, title), /*#__PURE__*/_react["default"].createElement("div", {
26
- className: "points-list-v2__content"
34
+ className: "points-list-v2__content",
35
+ style: gridStyle
27
36
  }, list === null || list === void 0 ? void 0 : list.map(function (_ref2, index) {
28
37
  var title = _ref2.title,
29
38
  description = _ref2.description,
@@ -42,8 +51,14 @@ var PointsListV2 = function PointsListV2(_ref) {
42
51
  width: 44,
43
52
  height: 44
44
53
  })), /*#__PURE__*/_react["default"].createElement("h4", {
54
+ style: {
55
+ textAlign: align ? align : ''
56
+ },
45
57
  className: "points-list-v2__item-title"
46
58
  }, title), /*#__PURE__*/_react["default"].createElement("p", {
59
+ style: {
60
+ textAlign: align ? align : ''
61
+ },
47
62
  className: "points-list-v2__item-text"
48
63
  }, description));
49
64
  }))));
@@ -27,7 +27,7 @@
27
27
 
28
28
  &__content {
29
29
  display: grid;
30
- grid-template-columns: repeat(3, 1fr);
30
+ grid-template-columns: repeat(var(--columns, 3), 1fr);
31
31
  gap: 24px;
32
32
  }
33
33
 
@@ -125,7 +125,7 @@
125
125
  @media (max-width: 900px) {
126
126
  .points-list-v2 {
127
127
  &__content {
128
- grid-template-columns: repeat(2, 1fr);
128
+ grid-template-columns: repeat(2, 1fr) !important;
129
129
  }
130
130
  }
131
131
  }
@@ -134,7 +134,7 @@
134
134
  .points-list-v2 {
135
135
 
136
136
  &__content {
137
- grid-template-columns: 1fr;
137
+ grid-template-columns: 1fr !important;
138
138
  gap: 16px;
139
139
  }
140
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.293",
3
+ "version": "0.1.294",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [