stone-kit 0.0.1036 → 0.0.1038
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.
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as g } from "../../index-YnD2EP-S.js";
|
|
3
3
|
import { fmtNumber as W } from "../../shared/fmtNumber.js";
|
|
4
4
|
import { Price as h } from "./components/Price/Price.js";
|
|
5
5
|
import { Snippets as v } from "./components/Snippets/Snippets.js";
|
|
6
6
|
import { Tags as I } from "./components/Tags/Tags.js";
|
|
7
7
|
import { RoundButton as w } from "../RoundButton/ui/RoundButton.js";
|
|
8
|
-
const B = "_root_m40b0_1", R = "_lotImageWrapper_m40b0_17", x = "_favoriteBtn_m40b0_24", z = "_lotNameWrapper_m40b0_30", P = "_lotName_m40b0_30", y = "_lotNumber_m40b0_45",
|
|
8
|
+
const B = "_root_m40b0_1", R = "_lotImageWrapper_m40b0_17", x = "_favoriteBtn_m40b0_24", z = "_lotNameWrapper_m40b0_30", P = "_lotName_m40b0_30", y = "_lotNumber_m40b0_45", F = "_priceWrapper_m40b0_54", S = "_rootRow_m40b0_59", r = {
|
|
9
9
|
root: B,
|
|
10
10
|
lotImageWrapper: R,
|
|
11
11
|
favoriteBtn: x,
|
|
12
12
|
lotNameWrapper: z,
|
|
13
13
|
lotName: P,
|
|
14
14
|
lotNumber: y,
|
|
15
|
-
priceWrapper:
|
|
16
|
-
rootRow:
|
|
17
|
-
},
|
|
15
|
+
priceWrapper: F,
|
|
16
|
+
rootRow: S
|
|
17
|
+
}, j = g.bind(r), E = ({
|
|
18
18
|
lot: e,
|
|
19
19
|
imgNode: s,
|
|
20
|
-
onPriceClickHandler:
|
|
21
|
-
addClassname:
|
|
22
|
-
isVertical:
|
|
20
|
+
onPriceClickHandler: p,
|
|
21
|
+
addClassname: l,
|
|
22
|
+
isVertical: m = !1,
|
|
23
23
|
isFavorite: n,
|
|
24
|
-
favoriteClickHandler:
|
|
24
|
+
favoriteClickHandler: a
|
|
25
25
|
}) => {
|
|
26
|
-
const { interiorPlanImg: c, floorPlanImg: _, area: N, subTypeName: d, number:
|
|
27
|
-
return e ? /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
26
|
+
const { interiorPlanImg: c, floorPlanImg: _, area: N, subTypeName: d, number: b } = e || {}, f = d + ", " + W(N) + "м²", u = c ?? _ ?? "";
|
|
27
|
+
return e ? /* @__PURE__ */ t("div", { className: j(r.root, l, { [r.rootRow]: !m }), children: [
|
|
28
|
+
/* @__PURE__ */ t("div", { className: r.lotImageWrapper, children: [
|
|
29
29
|
s || /* @__PURE__ */ o(
|
|
30
30
|
"img",
|
|
31
31
|
{
|
|
@@ -36,7 +36,7 @@ const B = "_root_m40b0_1", R = "_lotImageWrapper_m40b0_17", x = "_favoriteBtn_m4
|
|
|
36
36
|
alt: "logo_image"
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */ o(
|
|
39
|
+
a && /* @__PURE__ */ o(
|
|
40
40
|
w,
|
|
41
41
|
{
|
|
42
42
|
iconName: n ? "heartFilled" : "heart",
|
|
@@ -47,14 +47,14 @@ const B = "_root_m40b0_1", R = "_lotImageWrapper_m40b0_17", x = "_favoriteBtn_m4
|
|
|
47
47
|
color: "#015FF9",
|
|
48
48
|
additionalClass: r.favoriteBtn,
|
|
49
49
|
onClick: (i) => {
|
|
50
|
-
|
|
50
|
+
a && a(e), i.preventDefault(), i.stopPropagation();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
] }),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ o("p", { className: r.lotName, children:
|
|
57
|
-
/* @__PURE__ */ o("p", { className: r.lotNumber, children:
|
|
55
|
+
/* @__PURE__ */ t("div", { className: r.lotNameWrapper, children: [
|
|
56
|
+
/* @__PURE__ */ o("p", { className: r.lotName, children: f }),
|
|
57
|
+
/* @__PURE__ */ o("p", { className: r.lotNumber, children: b }),
|
|
58
58
|
/* @__PURE__ */ o(v, { lot: e }),
|
|
59
59
|
/* @__PURE__ */ o(I, { lot: e })
|
|
60
60
|
] }),
|
|
@@ -62,12 +62,12 @@ const B = "_root_m40b0_1", R = "_lotImageWrapper_m40b0_17", x = "_favoriteBtn_m4
|
|
|
62
62
|
h,
|
|
63
63
|
{
|
|
64
64
|
lot: e,
|
|
65
|
-
isVertical:
|
|
66
|
-
onPriceClickHandler:
|
|
65
|
+
isVertical: m,
|
|
66
|
+
onPriceClickHandler: p
|
|
67
67
|
}
|
|
68
68
|
) })
|
|
69
69
|
] }) : null;
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
E as CommercialLotCard
|
|
73
73
|
};
|
|
@@ -16,6 +16,6 @@ export interface IModalProps {
|
|
|
16
16
|
};
|
|
17
17
|
opacity?: number;
|
|
18
18
|
colorOverlay?: string;
|
|
19
|
-
modalBodyRef?: React.RefObject<HTMLDivElement> | null;
|
|
19
|
+
modalBodyRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
20
20
|
additionalStylesModalBody?: React.CSSProperties;
|
|
21
21
|
}
|