stone-kit 0.0.1045 → 0.0.1048
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/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +32 -31
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +11 -11
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ICommercialLotCard } from './types/CommercialLotCard.types';
|
|
2
|
-
export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, isFavorite, favoriteClickHandler, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, isFavorite, favoriteClickHandler, isMoreDetails }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { fmtNumber as
|
|
4
|
-
import { Price as
|
|
5
|
-
import { Snippets as
|
|
2
|
+
import { c as W } from "../../index-YnD2EP-S.js";
|
|
3
|
+
import { fmtNumber as b } from "../../shared/fmtNumber.js";
|
|
4
|
+
import { Price as v } from "./components/Price/Price.js";
|
|
5
|
+
import { Snippets as y } from "./components/Snippets/Snippets.js";
|
|
6
6
|
import { Tags as m } from "./components/Tags/Tags.js";
|
|
7
|
-
import { FavoriteIcon as
|
|
8
|
-
import { PaymentLink as
|
|
9
|
-
const
|
|
10
|
-
root:
|
|
11
|
-
lotImageWrapper:
|
|
12
|
-
lotNameContent:
|
|
13
|
-
lotNameWrapper:
|
|
14
|
-
lotName:
|
|
15
|
-
lotNumber:
|
|
16
|
-
content:
|
|
17
|
-
featuresWrapper:
|
|
18
|
-
tags:
|
|
19
|
-
rootRow:
|
|
20
|
-
price:
|
|
21
|
-
paymentLink:
|
|
22
|
-
},
|
|
7
|
+
import { FavoriteIcon as I } from "../FavoriteIcon/FavoriteIcon.js";
|
|
8
|
+
import { PaymentLink as P } from "./components/PaymentLink/PaymentLink.js";
|
|
9
|
+
const L = "_root_uzpph_1", w = "_lotImageWrapper_uzpph_17", C = "_lotNameContent_uzpph_24", k = "_lotNameWrapper_uzpph_30", x = "_lotName_uzpph_24", R = "_lotNumber_uzpph_45", S = "_content_uzpph_54", j = "_featuresWrapper_uzpph_60", F = "_tags_uzpph_65", T = "_rootRow_uzpph_70", D = "_price_uzpph_105", q = "_paymentLink_uzpph_108", e = {
|
|
10
|
+
root: L,
|
|
11
|
+
lotImageWrapper: w,
|
|
12
|
+
lotNameContent: C,
|
|
13
|
+
lotNameWrapper: k,
|
|
14
|
+
lotName: x,
|
|
15
|
+
lotNumber: R,
|
|
16
|
+
content: S,
|
|
17
|
+
featuresWrapper: j,
|
|
18
|
+
tags: F,
|
|
19
|
+
rootRow: T,
|
|
20
|
+
price: D,
|
|
21
|
+
paymentLink: q
|
|
22
|
+
}, A = W.bind(e), U = ({
|
|
23
23
|
lot: o,
|
|
24
24
|
imgNode: s,
|
|
25
25
|
onPriceClickHandler: c,
|
|
26
26
|
addClassname: i,
|
|
27
27
|
isVertical: p = !1,
|
|
28
28
|
isFavorite: l,
|
|
29
|
-
favoriteClickHandler: r
|
|
29
|
+
favoriteClickHandler: r,
|
|
30
|
+
isMoreDetails: _
|
|
30
31
|
}) => {
|
|
31
|
-
const { interiorPlanImg:
|
|
32
|
-
return o ? /* @__PURE__ */ a("div", { className:
|
|
32
|
+
const { interiorPlanImg: u, floorPlanImg: N, area: h, subTypeName: g, number: d } = o || {}, f = g + ", " + b(h) + "м²", z = u ?? N ?? "";
|
|
33
|
+
return o ? /* @__PURE__ */ a("div", { className: A(e.root, i, { [e.rootRow]: !p }), children: [
|
|
33
34
|
/* @__PURE__ */ a("div", { className: e.lotImageWrapper, children: [
|
|
34
35
|
s || /* @__PURE__ */ t(
|
|
35
36
|
"img",
|
|
36
37
|
{
|
|
37
38
|
loading: "lazy",
|
|
38
|
-
src:
|
|
39
|
+
src: z,
|
|
39
40
|
width: 295,
|
|
40
41
|
height: 213,
|
|
41
42
|
alt: "logo_image"
|
|
42
43
|
}
|
|
43
44
|
),
|
|
44
45
|
r && /* @__PURE__ */ t(
|
|
45
|
-
|
|
46
|
+
I,
|
|
46
47
|
{
|
|
47
48
|
handleClickFavorite: (n) => {
|
|
48
49
|
r && r(o), n.preventDefault(), n.stopPropagation();
|
|
@@ -54,13 +55,13 @@ const P = "_root_uzpph_1", L = "_lotImageWrapper_uzpph_17", w = "_lotNameContent
|
|
|
54
55
|
/* @__PURE__ */ a("div", { className: e.content, children: [
|
|
55
56
|
/* @__PURE__ */ a("div", { className: e.lotNameWrapper, children: [
|
|
56
57
|
/* @__PURE__ */ a("div", { className: e.lotNameContent, children: [
|
|
57
|
-
/* @__PURE__ */ t("p", { className: e.lotName, children:
|
|
58
|
-
/* @__PURE__ */ t("p", { className: e.lotNumber, children:
|
|
59
|
-
/* @__PURE__ */ t(
|
|
58
|
+
/* @__PURE__ */ t("p", { className: e.lotName, children: f }),
|
|
59
|
+
/* @__PURE__ */ t("p", { className: e.lotNumber, children: d }),
|
|
60
|
+
/* @__PURE__ */ t(y, { lot: o }),
|
|
60
61
|
/* @__PURE__ */ t(m, { lot: o, classname: e.tags })
|
|
61
62
|
] }),
|
|
62
63
|
/* @__PURE__ */ t(
|
|
63
|
-
|
|
64
|
+
v,
|
|
64
65
|
{
|
|
65
66
|
lot: o,
|
|
66
67
|
isVertical: p,
|
|
@@ -71,11 +72,11 @@ const P = "_root_uzpph_1", L = "_lotImageWrapper_uzpph_17", w = "_lotNameContent
|
|
|
71
72
|
] }),
|
|
72
73
|
/* @__PURE__ */ a("div", { className: e.featuresWrapper, children: [
|
|
73
74
|
/* @__PURE__ */ t(m, { lot: o, classname: e.tags }),
|
|
74
|
-
/* @__PURE__ */ t(
|
|
75
|
+
/* @__PURE__ */ t(P, { specialProgram: o.specialProgram, classname: e.paymentLink, isMoreDetails: _ })
|
|
75
76
|
] })
|
|
76
77
|
] })
|
|
77
78
|
] }) : null;
|
|
78
79
|
};
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
U as CommercialLotCard
|
|
81
82
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface IPaymentLink {
|
|
2
2
|
specialProgram?: boolean | null;
|
|
3
3
|
classname?: string;
|
|
4
|
+
isMoreDetails?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const PaymentLink: ({ specialProgram, classname }: IPaymentLink) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const PaymentLink: ({ specialProgram, classname, isMoreDetails }: IPaymentLink) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { NewIcon as
|
|
4
|
-
const
|
|
5
|
-
paymentWrapper:
|
|
6
|
-
},
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ r("span", { children: n ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../../../index-YnD2EP-S.js";
|
|
3
|
+
import { NewIcon as t } from "../../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
const m = "_paymentWrapper_1ywol_1", c = {
|
|
5
|
+
paymentWrapper: m
|
|
6
|
+
}, f = ({ specialProgram: e, classname: a, isMoreDetails: n }) => {
|
|
7
|
+
const p = !!e;
|
|
8
|
+
return /* @__PURE__ */ s("div", { className: o(c.paymentWrapper, a), children: [
|
|
9
|
+
/* @__PURE__ */ r("span", { children: p || n ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
10
10
|
/* @__PURE__ */ r(
|
|
11
|
-
|
|
11
|
+
t,
|
|
12
12
|
{
|
|
13
13
|
name: "arrowRight",
|
|
14
14
|
size: "20"
|
|
@@ -17,5 +17,5 @@ const t = "_paymentWrapper_1ywol_1", m = {
|
|
|
17
17
|
] });
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as PaymentLink
|
|
21
21
|
};
|