stone-kit 0.0.1045 → 0.0.1048

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,2 +1,2 @@
1
1
  import { ICommercialLotCard } from './types/CommercialLotCard.types';
2
- export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, isFavorite, favoriteClickHandler, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, isFavorite, favoriteClickHandler, isMoreDetails }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,48 +1,49 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { c as z } from "../../index-YnD2EP-S.js";
3
- import { fmtNumber as W } from "../../shared/fmtNumber.js";
4
- import { Price as b } from "./components/Price/Price.js";
5
- import { Snippets as v } from "./components/Snippets/Snippets.js";
2
+ import { c as W } from "../../index-YnD2EP-S.js";
3
+ import { fmtNumber as b } from "../../shared/fmtNumber.js";
4
+ import { Price as v } from "./components/Price/Price.js";
5
+ import { Snippets as y } from "./components/Snippets/Snippets.js";
6
6
  import { Tags as m } from "./components/Tags/Tags.js";
7
- import { FavoriteIcon as y } from "../FavoriteIcon/FavoriteIcon.js";
8
- import { PaymentLink as I } from "./components/PaymentLink/PaymentLink.js";
9
- const P = "_root_uzpph_1", L = "_lotImageWrapper_uzpph_17", w = "_lotNameContent_uzpph_24", C = "_lotNameWrapper_uzpph_30", k = "_lotName_uzpph_24", x = "_lotNumber_uzpph_45", R = "_content_uzpph_54", S = "_featuresWrapper_uzpph_60", j = "_tags_uzpph_65", F = "_rootRow_uzpph_70", T = "_price_uzpph_105", D = "_paymentLink_uzpph_108", e = {
10
- root: P,
11
- lotImageWrapper: L,
12
- lotNameContent: w,
13
- lotNameWrapper: C,
14
- lotName: k,
15
- lotNumber: x,
16
- content: R,
17
- featuresWrapper: S,
18
- tags: j,
19
- rootRow: F,
20
- price: T,
21
- paymentLink: D
22
- }, q = z.bind(e), Q = ({
7
+ import { FavoriteIcon as I } from "../FavoriteIcon/FavoriteIcon.js";
8
+ import { PaymentLink as P } from "./components/PaymentLink/PaymentLink.js";
9
+ const L = "_root_uzpph_1", w = "_lotImageWrapper_uzpph_17", C = "_lotNameContent_uzpph_24", k = "_lotNameWrapper_uzpph_30", x = "_lotName_uzpph_24", R = "_lotNumber_uzpph_45", S = "_content_uzpph_54", j = "_featuresWrapper_uzpph_60", F = "_tags_uzpph_65", T = "_rootRow_uzpph_70", D = "_price_uzpph_105", q = "_paymentLink_uzpph_108", e = {
10
+ root: L,
11
+ lotImageWrapper: w,
12
+ lotNameContent: C,
13
+ lotNameWrapper: k,
14
+ lotName: x,
15
+ lotNumber: R,
16
+ content: S,
17
+ featuresWrapper: j,
18
+ tags: F,
19
+ rootRow: T,
20
+ price: D,
21
+ paymentLink: q
22
+ }, A = W.bind(e), U = ({
23
23
  lot: o,
24
24
  imgNode: s,
25
25
  onPriceClickHandler: c,
26
26
  addClassname: i,
27
27
  isVertical: p = !1,
28
28
  isFavorite: l,
29
- favoriteClickHandler: r
29
+ favoriteClickHandler: r,
30
+ isMoreDetails: _
30
31
  }) => {
31
- const { interiorPlanImg: _, floorPlanImg: u, area: N, subTypeName: h, number: g } = o || {}, d = h + ", " + W(N) + "м²", f = _ ?? u ?? "";
32
- return o ? /* @__PURE__ */ a("div", { className: q(e.root, i, { [e.rootRow]: !p }), children: [
32
+ const { interiorPlanImg: u, floorPlanImg: N, area: h, subTypeName: g, number: d } = o || {}, f = g + ", " + b(h) + "м²", z = u ?? N ?? "";
33
+ return o ? /* @__PURE__ */ a("div", { className: A(e.root, i, { [e.rootRow]: !p }), children: [
33
34
  /* @__PURE__ */ a("div", { className: e.lotImageWrapper, children: [
34
35
  s || /* @__PURE__ */ t(
35
36
  "img",
36
37
  {
37
38
  loading: "lazy",
38
- src: f,
39
+ src: z,
39
40
  width: 295,
40
41
  height: 213,
41
42
  alt: "logo_image"
42
43
  }
43
44
  ),
44
45
  r && /* @__PURE__ */ t(
45
- y,
46
+ I,
46
47
  {
47
48
  handleClickFavorite: (n) => {
48
49
  r && r(o), n.preventDefault(), n.stopPropagation();
@@ -54,13 +55,13 @@ const P = "_root_uzpph_1", L = "_lotImageWrapper_uzpph_17", w = "_lotNameContent
54
55
  /* @__PURE__ */ a("div", { className: e.content, children: [
55
56
  /* @__PURE__ */ a("div", { className: e.lotNameWrapper, children: [
56
57
  /* @__PURE__ */ a("div", { className: e.lotNameContent, children: [
57
- /* @__PURE__ */ t("p", { className: e.lotName, children: d }),
58
- /* @__PURE__ */ t("p", { className: e.lotNumber, children: g }),
59
- /* @__PURE__ */ t(v, { lot: o }),
58
+ /* @__PURE__ */ t("p", { className: e.lotName, children: f }),
59
+ /* @__PURE__ */ t("p", { className: e.lotNumber, children: d }),
60
+ /* @__PURE__ */ t(y, { lot: o }),
60
61
  /* @__PURE__ */ t(m, { lot: o, classname: e.tags })
61
62
  ] }),
62
63
  /* @__PURE__ */ t(
63
- b,
64
+ v,
64
65
  {
65
66
  lot: o,
66
67
  isVertical: p,
@@ -71,11 +72,11 @@ const P = "_root_uzpph_1", L = "_lotImageWrapper_uzpph_17", w = "_lotNameContent
71
72
  ] }),
72
73
  /* @__PURE__ */ a("div", { className: e.featuresWrapper, children: [
73
74
  /* @__PURE__ */ t(m, { lot: o, classname: e.tags }),
74
- /* @__PURE__ */ t(I, { specialProgram: o.specialProgram, classname: e.paymentLink })
75
+ /* @__PURE__ */ t(P, { specialProgram: o.specialProgram, classname: e.paymentLink, isMoreDetails: _ })
75
76
  ] })
76
77
  ] })
77
78
  ] }) : null;
78
79
  };
79
80
  export {
80
- Q as CommercialLotCard
81
+ U as CommercialLotCard
81
82
  };
@@ -1,6 +1,7 @@
1
1
  interface IPaymentLink {
2
2
  specialProgram?: boolean | null;
3
3
  classname?: string;
4
+ isMoreDetails?: boolean;
4
5
  }
5
- export declare const PaymentLink: ({ specialProgram, classname }: IPaymentLink) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const PaymentLink: ({ specialProgram, classname, isMoreDetails }: IPaymentLink) => import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -1,14 +1,14 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { c as s } from "../../../../index-YnD2EP-S.js";
3
- import { NewIcon as o } from "../../../NewIcon/ui/NewIcon.js";
4
- const t = "_paymentWrapper_1ywol_1", m = {
5
- paymentWrapper: t
6
- }, y = ({ specialProgram: e, classname: a }) => {
7
- const n = !!e;
8
- return /* @__PURE__ */ p("div", { className: s(m.paymentWrapper, a), children: [
9
- /* @__PURE__ */ r("span", { children: n ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import { c as o } from "../../../../index-YnD2EP-S.js";
3
+ import { NewIcon as t } from "../../../NewIcon/ui/NewIcon.js";
4
+ const m = "_paymentWrapper_1ywol_1", c = {
5
+ paymentWrapper: m
6
+ }, f = ({ specialProgram: e, classname: a, isMoreDetails: n }) => {
7
+ const p = !!e;
8
+ return /* @__PURE__ */ s("div", { className: o(c.paymentWrapper, a), children: [
9
+ /* @__PURE__ */ r("span", { children: p || n ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
10
10
  /* @__PURE__ */ r(
11
- o,
11
+ t,
12
12
  {
13
13
  name: "arrowRight",
14
14
  size: "20"
@@ -17,5 +17,5 @@ const t = "_paymentWrapper_1ywol_1", m = {
17
17
  ] });
18
18
  };
19
19
  export {
20
- y as PaymentLink
20
+ f as PaymentLink
21
21
  };
@@ -6,5 +6,6 @@ export interface ICommercialLotCard {
6
6
  isVertical?: boolean;
7
7
  onPriceClickHandler?: () => void;
8
8
  isFavorite?: boolean;
9
+ isMoreDetails?: boolean;
9
10
  favoriteClickHandler?: (lot: ILot) => void;
10
11
  }
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.1045",
5
+ "version": "0.0.1048",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",