@sima-land/moleculas 12.2.0 → 12.2.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.
|
@@ -92,9 +92,9 @@ const ProductCarousel = ({ className, itemSize, onInViewport, onNeedRequest, wit
|
|
|
92
92
|
// длительность прокрутки в Carousel - 320, делаем слегка с запасом
|
|
93
93
|
// @todo после восстановления проверить позицию курсора чтобы показать карточку (если будет критично)
|
|
94
94
|
onChangeTargetIndex: () => cardShow.disallowFor(360) })),
|
|
95
|
-
withHoverCard && activeItemIndex !== null && (react_1.default.createElement(hover_card_1.HoverCard, { targetRef: targetItemRef, onMouseLeave: () => setActiveItemIndex(null),
|
|
95
|
+
withHoverCard && activeItemIndex !== null && [items[activeItemIndex]].map(item => (react_1.default.createElement(hover_card_1.HoverCard, { key: activeItemIndex, targetRef: targetItemRef, onMouseLeave: () => setActiveItemIndex(null),
|
|
96
96
|
// данные элемента карусели
|
|
97
|
-
data:
|
|
97
|
+
data: item.data, onLinkClick: item.onLinkClick, onQuickViewClick: item.onQuickViewClick, renderCartControl: item.renderCartControl }))))) : (react_1.default.createElement("div", { ref: stubRef }));
|
|
98
98
|
};
|
|
99
99
|
exports.ProductCarousel = ProductCarousel;
|
|
100
100
|
exports.ProductCarousel.Item = Item;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sima-land/moleculas",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"repository": "ssh://git@github.com:sima-land/moleculas.git",
|
|
5
5
|
"author": "www.sima-land.ru team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"storybook:build": "build-storybook --no-dll --quiet --loglevel error -o build-storybook"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@sima-land/ui-nucleons": "^
|
|
26
|
+
"@sima-land/ui-nucleons": "^40.0.0",
|
|
27
27
|
"@sima-land/ui-quarks": "^2.0.1",
|
|
28
28
|
"classnames": "^2.3.1",
|
|
29
29
|
"lodash": "^4.17.21",
|