stone-kit 0.0.992 → 0.0.994
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,17 +1,18 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { fmtNumber as g } from "../../shared/fmtNumber.js";
|
|
3
|
+
import { Price as _ } from "./components/Price/Price.js";
|
|
4
|
+
import { b as N } from "../../FilterWithSave-GT-QRkmD.js";
|
|
5
|
+
import { Tags as d } from "./components/Tags/Tags.js";
|
|
6
|
+
const W = "_root_6jgy2_1", f = "_lotImageWrapper_6jgy2_16", h = "_lotNameWrapper_6jgy2_22", j = "_lotName_6jgy2_22", y = "_priceWrapper_6jgy2_50", a = {
|
|
7
|
+
root: W,
|
|
8
|
+
lotImageWrapper: f,
|
|
8
9
|
lotNameWrapper: h,
|
|
9
|
-
lotName:
|
|
10
|
-
priceWrapper:
|
|
11
|
-
},
|
|
12
|
-
const { interiorPlanImg:
|
|
10
|
+
lotName: j,
|
|
11
|
+
priceWrapper: y
|
|
12
|
+
}, P = ({ lot: e, imgNode: m, onPriceClickHandler: p }) => {
|
|
13
|
+
const { interiorPlanImg: t, floorPlanImg: i, area: s, subTypeName: c } = e || {}, l = c + ", " + g(s) + "м²", n = t ?? i ?? "";
|
|
13
14
|
return e ? /* @__PURE__ */ o("div", { className: a.root, children: [
|
|
14
|
-
/* @__PURE__ */ r("div", { className: a.lotImageWrapper, children:
|
|
15
|
+
/* @__PURE__ */ r("div", { className: a.lotImageWrapper, children: m || /* @__PURE__ */ r(
|
|
15
16
|
"img",
|
|
16
17
|
{
|
|
17
18
|
loading: "lazy",
|
|
@@ -23,18 +24,18 @@ const d = "_root_6jgy2_1", W = "_lotImageWrapper_6jgy2_16", h = "_lotNameWrapper
|
|
|
23
24
|
) }),
|
|
24
25
|
/* @__PURE__ */ o("div", { className: a.lotNameWrapper, children: [
|
|
25
26
|
/* @__PURE__ */ r("p", { className: a.lotName, children: l }),
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
/* @__PURE__ */ r(
|
|
27
|
+
/* @__PURE__ */ r(N, { lot: e }),
|
|
28
|
+
/* @__PURE__ */ r(d, { lot: e })
|
|
28
29
|
] }),
|
|
29
30
|
/* @__PURE__ */ r("div", { className: a.priceWrapper, children: /* @__PURE__ */ r(
|
|
30
|
-
|
|
31
|
+
_,
|
|
31
32
|
{
|
|
32
33
|
lot: e,
|
|
33
|
-
onPriceClickHandler:
|
|
34
|
+
onPriceClickHandler: p
|
|
34
35
|
}
|
|
35
36
|
) })
|
|
36
37
|
] }) : null;
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
P as CommercialLotCard
|
|
40
41
|
};
|
|
@@ -3,7 +3,7 @@ import { Tag as l } from "../../../Tag/ui/Tag.js";
|
|
|
3
3
|
const d = "_root_z4l4u_1", f = {
|
|
4
4
|
root: d
|
|
5
5
|
}, h = ({ lot: a }) => {
|
|
6
|
-
const { housing: n, floor: o, endFloor: t, floorsNumber: r, type: g } = a || {}, s = g === 11, i = o && r ? (t && t !== o ? o + "-" + t : o) + " из " + r : "", e = () => s ? r ? "Кол-во этажей: " + r : "" : i ?
|
|
6
|
+
const { housing: n, floor: o, endFloor: t, floorsNumber: r, type: g } = a || {}, s = g === 11, i = o && r ? (t && t !== o ? o + "-" + t : o) + " этаж из " + r : "", e = () => s ? r ? "Кол-во этажей: " + r : "" : i ? +i : "";
|
|
7
7
|
return /* @__PURE__ */ u("div", { className: f.root, children: [
|
|
8
8
|
!s && n && /* @__PURE__ */ c(
|
|
9
9
|
l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
declare const fmtNumber: (num: string | null) => string;
|
|
1
|
+
export declare const fmtNumber: (num: string | null) => string;
|
package/dist/shared/fmtNumber.js
CHANGED