@megafon/ui-shared 6.1.0 → 6.1.1
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.
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [6.1.1](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@6.1.0...@megafon/ui-shared@6.1.1) (2024-08-20)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **instructions:** fix tag render for items with mobile numeration ([b5ff10d](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/b5ff10d77907e77e2fbba6a93802bc85e5208082))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
# [6.1.0](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@6.0.0...@megafon/ui-shared@6.1.0) (2024-08-19)
|
7
18
|
|
8
19
|
|
@@ -250,7 +250,7 @@ var Instructions = function Instructions(_ref) {
|
|
250
250
|
className: cn('articles-item-dot-number')
|
251
251
|
}, i + 1)), /*#__PURE__*/React.createElement("div", {
|
252
252
|
className: cn('articles-item-title', [desktopItemTitle])
|
253
|
-
}, itemTitle))
|
253
|
+
}, convert(itemTitle, textConvertConfig)))
|
254
254
|
);
|
255
255
|
}));
|
256
256
|
}, [desktopInstructionItem, desktopItemTitle, getActiveCustomClass, handleArticleClick, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, instructionItem, instructionItems, slideIndex, text]);
|
@@ -267,14 +267,15 @@ var Instructions = function Instructions(_ref) {
|
|
267
267
|
})
|
268
268
|
}, instructionItems.map(function (_ref6, i) {
|
269
269
|
var itemTitle = _ref6.title;
|
270
|
-
return slideIndex === i && /*#__PURE__*/React.createElement("div",
|
270
|
+
return slideIndex === i && /*#__PURE__*/React.createElement("div", {
|
271
271
|
key: i,
|
272
|
-
"data-index": i
|
273
|
-
|
274
|
-
|
275
|
-
}), showMobileNumeration && /*#__PURE__*/React.createElement("span", {
|
272
|
+
"data-index": i,
|
273
|
+
className: cn('articles-title')
|
274
|
+
}, showMobileNumeration && /*#__PURE__*/React.createElement("span", {
|
276
275
|
className: cn('articles-num')
|
277
|
-
}, i + 1),
|
276
|
+
}, i + 1), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
|
277
|
+
className: cn('articles-title-text', [mobileItemTitle])
|
278
|
+
}), convert(itemTitle, textConvertConfig)));
|
278
279
|
})));
|
279
280
|
}, [dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, instructionItems, mobileItemTitle, slideIndex, isMobileReversed, showMobileNumeration]);
|
280
281
|
var renderArrows = React.useCallback(function () {
|
@@ -285,7 +285,7 @@ var Instructions = function Instructions(_ref) {
|
|
285
285
|
className: cn('articles-item-dot-number')
|
286
286
|
}, i + 1)), /*#__PURE__*/_react["default"].createElement("div", {
|
287
287
|
className: cn('articles-item-title', [desktopItemTitle])
|
288
|
-
}, itemTitle))
|
288
|
+
}, (0, _uiHelpers.convert)(itemTitle, _uiHelpers.textConvertConfig)))
|
289
289
|
);
|
290
290
|
}));
|
291
291
|
}, [desktopInstructionItem, desktopItemTitle, getActiveCustomClass, handleArticleClick, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.item, instructionItem, instructionItems, slideIndex, text]);
|
@@ -303,14 +303,15 @@ var Instructions = function Instructions(_ref) {
|
|
303
303
|
})
|
304
304
|
}, instructionItems.map(function (_ref6, i) {
|
305
305
|
var itemTitle = _ref6.title;
|
306
|
-
return slideIndex === i && /*#__PURE__*/_react["default"].createElement("div",
|
306
|
+
return slideIndex === i && /*#__PURE__*/_react["default"].createElement("div", {
|
307
307
|
key: i,
|
308
|
-
"data-index": i
|
309
|
-
|
310
|
-
|
311
|
-
}), showMobileNumeration && /*#__PURE__*/_react["default"].createElement("span", {
|
308
|
+
"data-index": i,
|
309
|
+
className: cn('articles-title')
|
310
|
+
}, showMobileNumeration && /*#__PURE__*/_react["default"].createElement("span", {
|
312
311
|
className: cn('articles-num')
|
313
|
-
}, i + 1),
|
312
|
+
}, i + 1), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, i + 1), {
|
313
|
+
className: cn('articles-title-text', [mobileItemTitle])
|
314
|
+
}), (0, _uiHelpers.convert)(itemTitle, _uiHelpers.textConvertConfig)));
|
314
315
|
})));
|
315
316
|
}, [dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.mobileItemText, instructionItems, mobileItemTitle, slideIndex, isMobileReversed, showMobileNumeration]);
|
316
317
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@megafon/ui-shared",
|
3
|
-
"version": "6.1.
|
3
|
+
"version": "6.1.1",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -90,5 +90,5 @@
|
|
90
90
|
"prop-types": "^15.7.2",
|
91
91
|
"swiper": "^6.5.6"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "e6cc92756fe3c9cb7157b8985ab4032c510e07a6"
|
94
94
|
}
|