@sima-land/moleculas 12.3.1 → 13.1.0
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/common/components/adult-block/{adult-block.d.ts → index.d.ts} +1 -2
- package/common/components/adult-block/{adult-block.js → index.js} +2 -1
- package/common/components/badge-list/index.d.ts +2 -6
- package/common/components/badge-list/index.js +26 -5
- package/common/components/product-info/index.d.ts +11 -49
- package/common/components/product-info/index.js +24 -35
- package/common/components/product-info/parts.d.ts +41 -0
- package/common/components/product-info/parts.js +176 -0
- package/common/components/product-info/product-info.module.scss +154 -31
- package/common/components/product-info/types.d.ts +5 -0
- package/common/components/product-info/types.js +2 -0
- package/common/components/product-info/utils.d.ts +3 -0
- package/{mobile/components/product-slider → common/components/product-info}/utils.js +2 -2
- package/common/icons/eighteen-plus.svg +3 -1
- package/desktop/components/item-image/index.d.ts +1 -1
- package/desktop/components/item-image/index.js +5 -3
- package/desktop/components/person-modal/index.d.ts +0 -1
- package/desktop/components/person-modal/index.js +0 -1
- package/desktop/components/product-card/index.d.ts +11 -24
- package/desktop/components/product-card/index.js +47 -31
- package/desktop/components/product-card/product-card.module.scss +7 -48
- package/desktop/components/product-carousel/hover-card.d.ts +1 -4
- package/desktop/components/product-carousel/hover-card.js +18 -6
- package/desktop/components/product-carousel/index.d.ts +5 -9
- package/desktop/components/product-carousel/index.js +28 -25
- package/desktop/components/product-carousel/utils.js +4 -1
- package/desktop/components/promotion-card/estimate.js +3 -1
- package/mobile/components/garland-calculator-button/garland-calculator-button.module.scss +32 -3
- package/mobile/components/garland-calculator-button/index.d.ts +2 -3
- package/mobile/components/garland-calculator-button/index.js +9 -14
- package/mobile/components/item-image/index.d.ts +4 -4
- package/mobile/components/item-image/index.js +9 -10
- package/mobile/components/person-screen/index.d.ts +3 -3
- package/mobile/components/person-screen/index.js +16 -14
- package/mobile/components/product-actions-alert/index.d.ts +2 -5
- package/mobile/components/product-actions-alert/index.js +2 -5
- package/mobile/components/product-slider/index.d.ts +6 -9
- package/mobile/components/product-slider/index.js +14 -11
- package/mobile/components/product-slider/{item.module.scss → product-slider.module.scss} +1 -12
- package/mobile/components/pseudo-input/index.d.ts +5 -8
- package/mobile/components/pseudo-input/index.js +21 -10
- package/mobile/components/pseudo-input/pseudo-input.module.scss +6 -9
- package/mobile/components/select-screen/index.d.ts +11 -2
- package/mobile/components/select-screen/index.js +46 -12
- package/mobile/components/select-screen/select-screen.module.scss +3 -1
- package/package.json +3 -3
- package/common/__fixtures__/list-item.d.ts +0 -53
- package/common/__fixtures__/list-item.js +0 -107
- package/common/helpers/get-contained-items.d.ts +0 -7
- package/common/helpers/get-contained-items.js +0 -18
- package/common/icons/filled-rate.svg +0 -3
- package/common/icons/full-left-arrow.svg +0 -1
- package/common/icons/full-right-arrow.svg +0 -1
- package/common/icons/grid-small.svg +0 -11
- package/common/icons/grid.svg +0 -6
- package/common/icons/list.svg +0 -5
- package/common/icons/page.svg +0 -1
- package/common/icons/step-arrows.svg +0 -4
- package/common/icons/triple-dots.svg +0 -3
- package/common/icons/white-spinner.svg +0 -3
- package/desktop/components/breadcrumbs/items.d.ts +0 -3
- package/desktop/components/breadcrumbs/items.js +0 -157
- package/mobile/components/garland-calculator-button/tree-in-circle.svg +0 -6
- package/mobile/components/product-slider/item.d.ts +0 -18
- package/mobile/components/product-slider/item.js +0 -58
- package/mobile/components/product-slider/utils.d.ts +0 -4
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
22
|
-
var t = {};
|
|
23
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
24
|
-
t[p] = s[p];
|
|
25
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
26
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
27
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
28
|
-
t[p[i]] = s[p[i]];
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
};
|
|
32
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ProductSliderItem = void 0;
|
|
37
|
-
const react_1 = __importStar(require("react"));
|
|
38
|
-
const bind_1 = __importDefault(require("classnames/bind"));
|
|
39
|
-
const wish_button_1 = require("../../../common/components/wish-button");
|
|
40
|
-
const utils_1 = require("./utils");
|
|
41
|
-
const product_info_1 = require("../../../common/components/product-info");
|
|
42
|
-
const item_module_scss_1 = __importDefault(require("./item.module.scss"));
|
|
43
|
-
const cx = bind_1.default.bind(item_module_scss_1.default);
|
|
44
|
-
/**
|
|
45
|
-
* Компонент элемента карусели рекомендаций.
|
|
46
|
-
* @param props Свойства компонента.
|
|
47
|
-
* @return Элемент.
|
|
48
|
-
*/
|
|
49
|
-
const ProductSliderItem = (_a) => {
|
|
50
|
-
var { data, favorite, footer, onFavoriteClick } = _a, restProps = __rest(_a, ["data", "favorite", "footer", "onFavoriteClick"]);
|
|
51
|
-
const { needLoadImages } = (0, react_1.useContext)(utils_1.SliderContext);
|
|
52
|
-
return (react_1.default.createElement("div", { className: cx('root') },
|
|
53
|
-
react_1.default.createElement(product_info_1.ProductInfo, Object.assign({}, restProps, { data: Object.assign(Object.assign({}, data), { imageSrc: needLoadImages ? data.imageSrc : undefined }) }),
|
|
54
|
-
react_1.default.createElement(product_info_1.ProductInfo.OnImage, null,
|
|
55
|
-
react_1.default.createElement(wish_button_1.WishButton, { checked: favorite, onClick: onFavoriteClick, className: cx('favorite-button') }))),
|
|
56
|
-
footer && react_1.default.createElement("div", { className: cx('footer') }, footer)));
|
|
57
|
-
};
|
|
58
|
-
exports.ProductSliderItem = ProductSliderItem;
|