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 { Price as g } from "./components/Price/Price.js";
3
- import { b as _ } from "../../FilterWithSave-GT-QRkmD.js";
4
- import { Tags as N } from "./components/Tags/Tags.js";
5
- const d = "_root_6jgy2_1", W = "_lotImageWrapper_6jgy2_16", h = "_lotNameWrapper_6jgy2_22", f = "_lotName_6jgy2_22", j = "_priceWrapper_6jgy2_50", a = {
6
- root: d,
7
- lotImageWrapper: W,
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: f,
10
- priceWrapper: j
11
- }, b = ({ lot: e, imgNode: p, onPriceClickHandler: t }) => {
12
- const { interiorPlanImg: m, floorPlanImg: i, area: s, subTypeName: c } = e || {}, l = c + ", " + fmtNumber(s) + "м²", n = m ?? i ?? "";
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: p || /* @__PURE__ */ r(
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(_, { lot: e }),
27
- /* @__PURE__ */ r(N, { lot: e })
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
- g,
31
+ _,
31
32
  {
32
33
  lot: e,
33
- onPriceClickHandler: t
34
+ onPriceClickHandler: p
34
35
  }
35
36
  ) })
36
37
  ] }) : null;
37
38
  };
38
39
  export {
39
- b as CommercialLotCard
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 ? "Этаж: " + 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;
@@ -1 +1,4 @@
1
-
1
+ const r = (e) => e ? Number(e).toFixed(1).replace(/\d(?=(\d{3})+\.)/g, "$& ") : "";
2
+ export {
3
+ r as fmtNumber
4
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.992",
5
+ "version": "0.0.994",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",