@sima-land/moleculas 12.3.0 → 13.0.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/components/quick-view-button/index.js +1 -1
- package/common/components/wish-button/index.js +1 -1
- package/common/icons/eighteen-plus.svg +3 -1
- package/desktop/components/breadcrumbs/index.js +5 -5
- package/desktop/components/gallery-modal/components/all-round-view.js +11 -11
- package/desktop/components/gallery-modal/components/gallery-modal.js +7 -7
- package/desktop/components/gallery-modal/components/image-overlay.js +1 -1
- package/desktop/components/gallery-modal/components/review-info.js +1 -1
- package/desktop/components/gallery-modal/utils.js +5 -5
- package/desktop/components/item-image/index.d.ts +1 -1
- package/desktop/components/item-image/index.js +8 -6
- package/desktop/components/modifiers/button/index.js +2 -2
- package/desktop/components/modifiers/group/index.js +12 -12
- package/desktop/components/modifiers/widget/index.js +2 -2
- package/desktop/components/person-modal/index.d.ts +0 -1
- package/desktop/components/person-modal/index.js +1 -2
- package/desktop/components/product-card/index.d.ts +11 -24
- package/desktop/components/product-card/index.js +43 -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 +22 -10
- package/desktop/components/product-carousel/index.d.ts +5 -9
- package/desktop/components/product-carousel/index.js +29 -28
- package/desktop/components/product-carousel/utils.js +10 -10
- package/desktop/components/promotion-card/banner-title.js +5 -5
- package/desktop/components/promotion-card/estimate.js +5 -3
- package/desktop/components/promotion-card/index.d.ts +3 -1
- package/desktop/components/promotion-card/index.js +6 -6
- package/desktop/components/promotion-card/placeholder.js +4 -4
- 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 +10 -11
- package/mobile/components/modifiers-list/modifier-item/index.js +7 -7
- 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 +17 -14
- 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/search-bar/index.js +25 -25
- package/mobile/components/select-screen/index.d.ts +2 -2
- package/mobile/components/select-screen/index.js +7 -18
- package/package.json +30 -30
- package/README.md +0 -86
- 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,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductInfoProps } from '../../../common/components/product-info';
|
|
3
|
-
export interface ProductSliderItemProps extends ProductInfoProps {
|
|
4
|
-
/** Обработчик клика по товару. */
|
|
5
|
-
onLinkClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
6
|
-
/** Сработает при клике на сердечко. */
|
|
7
|
-
onFavoriteClick?: React.MouseEventHandler<SVGSVGElement>;
|
|
8
|
-
/** Должна вернуть содержимое для футера. */
|
|
9
|
-
footer?: React.ReactNode;
|
|
10
|
-
/** Нужно ли отображать кнопку-сердечко как нажатую. */
|
|
11
|
-
favorite?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Компонент элемента карусели рекомендаций.
|
|
15
|
-
* @param props Свойства компонента.
|
|
16
|
-
* @return Элемент.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ProductSliderItem: ({ data, favorite, footer, onFavoriteClick, ...restProps }: ProductSliderItemProps) => JSX.Element;
|
|
@@ -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 } = 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;
|