stone-kit 0.0.985 → 0.0.986

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,33 +1,35 @@
1
- import { jsxs as r, jsx as c } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
2
  import { NewIcon as _ } from "../../../NewIcon/ui/NewIcon.js";
3
- import { formatPrice as d } from "../../utils/formatPrice.js";
4
- const g = "_root_tmyym_1", W = "_price_tmyym_7", N = "_paymentWrapper_tmyym_19", P = "_pamentWrapperLargeOffice_tmyym_29", e = {
5
- root: g,
3
+ import { formatPrice as g } from "../../utils/formatPrice.js";
4
+ const d = "_root_tmyym_1", W = "_price_tmyym_7", u = "_paymentWrapper_tmyym_19", N = "_pamentWrapperLargeOffice_tmyym_29", e = {
5
+ root: d,
6
6
  price: W,
7
- paymentWrapper: N,
8
- pamentWrapperLargeOffice: P
9
- }, O = ({ lot: a, onPriceClickHandler: m }) => {
10
- var t;
11
- const { project: p, sellingPriceBeforeDiscount: s, showPriceFlg: l, direction: f, subType: o } = a || {}, y = !!((t = p == null ? void 0 : p.showPriceSubType) != null && t.some((h) => Number(h.filter) === a.subType)), i = o === 8 || o === 11, n = s && l && !i && y;
12
- return /* @__PURE__ */ r("div", { className: e.root, children: [
13
- n && /* @__PURE__ */ r("p", { className: e.price, children: [
7
+ paymentWrapper: u,
8
+ pamentWrapperLargeOffice: N
9
+ }, O = ({ lot: s, onPriceClickHandler: i }) => {
10
+ var f;
11
+ const { project: c, sellingPriceBeforeDiscount: t, showPriceFlg: l, direction: y, subType: n } = s || {}, h = !!((f = c == null ? void 0 : c.showPriceSubType) != null && f.some((r) => Number(r.filter) === s.subType)), o = n === 8 || n === 11, m = t && l && !o && h;
12
+ return /* @__PURE__ */ p("div", { className: e.root, children: [
13
+ m && /* @__PURE__ */ p("p", { className: e.price, children: [
14
14
  " ",
15
- d(s, !1, f)
15
+ g(t, !1, y)
16
16
  ] }),
17
- !n && /* @__PURE__ */ r(
17
+ !m && /* @__PURE__ */ p(
18
18
  "p",
19
19
  {
20
20
  className: e.price,
21
- onClick: m,
21
+ onClick: (r) => {
22
+ r.preventDefault(), r.stopPropagation(), i && i();
23
+ },
22
24
  children: [
23
25
  "Цена ",
24
- /* @__PURE__ */ c("span", { children: "по запросу" })
26
+ /* @__PURE__ */ a("span", { children: "по запросу" })
25
27
  ]
26
28
  }
27
29
  ),
28
- !i && /* @__PURE__ */ r("p", { className: e.paymentWrapper, children: [
29
- /* @__PURE__ */ c("span", { children: "Доступно несколько способов оплаты" }),
30
- /* @__PURE__ */ c(
30
+ !o && /* @__PURE__ */ p("p", { className: e.paymentWrapper, children: [
31
+ /* @__PURE__ */ a("span", { children: "Доступно несколько способов оплаты" }),
32
+ /* @__PURE__ */ a(
31
33
  _,
32
34
  {
33
35
  name: "arrowRight",
@@ -35,7 +37,7 @@ const g = "_root_tmyym_1", W = "_price_tmyym_7", N = "_paymentWrapper_tmyym_19",
35
37
  }
36
38
  )
37
39
  ] }),
38
- i && /* @__PURE__ */ c("p", { className: e.pamentWrapperLargeOffice, children: "Рассрочка до окончания строительства" })
40
+ o && /* @__PURE__ */ a("p", { className: e.pamentWrapperLargeOffice, children: "Рассрочка до окончания строительства" })
39
41
  ] });
40
42
  };
41
43
  export {
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.985",
5
+ "version": "0.0.986",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",