stone-kit 0.0.985 → 0.0.987

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,34 +1,36 @@
1
- import { jsxs as r, jsx as c } from "react/jsx-runtime";
2
- import { NewIcon as _ } from "../../../NewIcon/ui/NewIcon.js";
1
+ import { jsxs as p, jsx as c } from "react/jsx-runtime";
2
+ import { NewIcon as g } from "../../../NewIcon/ui/NewIcon.js";
3
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,
4
+ const P = "_root_tmyym_1", W = "_price_tmyym_7", u = "_paymentWrapper_tmyym_19", N = "_pamentWrapperLargeOffice_tmyym_29", e = {
5
+ root: P,
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
+ }, b = ({ lot: s, onPriceClickHandler: o }) => {
10
+ var l;
11
+ const { project: a, sellingPriceBeforeDiscount: t, showPriceFlg: f, direction: y, subType: n, sellingPrice: h } = s || {}, _ = !!((l = a == null ? void 0 : a.showPriceSubType) != null && l.some((r) => Number(r.filter) === s.subType)), i = n === 8 || n === 11, m = (t ?? h) && f && !i && _;
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
+ d(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(), o && o();
23
+ },
22
24
  children: [
23
25
  "Цена ",
24
26
  /* @__PURE__ */ c("span", { children: "по запросу" })
25
27
  ]
26
28
  }
27
29
  ),
28
- !i && /* @__PURE__ */ r("p", { className: e.paymentWrapper, children: [
30
+ !i && /* @__PURE__ */ p("p", { className: e.paymentWrapper, children: [
29
31
  /* @__PURE__ */ c("span", { children: "Доступно несколько способов оплаты" }),
30
32
  /* @__PURE__ */ c(
31
- _,
33
+ g,
32
34
  {
33
35
  name: "arrowRight",
34
36
  size: "16"
@@ -39,5 +41,5 @@ const g = "_root_tmyym_1", W = "_price_tmyym_7", N = "_paymentWrapper_tmyym_19",
39
41
  ] });
40
42
  };
41
43
  export {
42
- O as Price
44
+ b as Price
43
45
  };
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.987",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",