stone-kit 0.0.1034 → 0.0.1036
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.
- package/dist/Option-DI87iJMM.js +98 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +25 -25
- package/dist/components/CommercialLotCard/components/Price/Price.js +21 -21
- package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +1 -1
- package/dist/components/FormModal/ui/ModalForm.js +278 -276
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +33 -33
- package/dist/components/LotCard/utils/formatPrice.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +48 -43
- package/dist/components/Select/ui/Category.js +27 -27
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.d.ts +1 -1
- package/dist/components/Select/ui/Select.js +128 -114
- package/dist/components/Select/ui/Select.types.d.ts +2 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +3 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +141 -101
- package/dist/stone-kit.css +1 -1
- package/dist/useLotCard-DPqIlj09.js +187 -0
- package/package.json +1 -1
- package/dist/Option-D-8xnCui.js +0 -94
- package/dist/useLotCard-I7_rgnqj.js +0 -187
package/dist/Option-D-8xnCui.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsxs as C, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as g } from "./index-YnD2EP-S.js";
|
|
3
|
-
import { NewIcon as r } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
|
-
const S = "_multiSelectWrapper_17qb6_1", h = "_selectedOptions_17qb6_8", f = "_selectedText_17qb6_26", k = "_selectedOptionsBtn_17qb6_34", w = "_selectedOptionsOpened_17qb6_60", v = "_selectedOptionsNotEmpty_17qb6_64", x = "_selectOptionsDisabled_17qb6_69", y = "_optionsOuterContainer_17qb6_76", D = "_betweenSize_small_17qb6_89", L = "_betweenSize_medium_17qb6_93", B = "_optionsList_17qb6_97", N = "_scroll_standard_17qb6_126", W = "_scroll_compact_17qb6_130", A = "_lastList_17qb6_135", E = "_listRight_17qb6_140", R = "_inputWrapper_17qb6_144", T = "_option_17qb6_76", j = "_category_17qb6_166", P = "_leftSide_17qb6_172", U = "_optionCategory_17qb6_177", $ = "_isPositionLeftCheckbox_17qb6_183", F = "_optionDisabled_17qb6_188", G = "_optionClickable_17qb6_192", H = "_icon_17qb6_196", I = "_iconArrow_17qb6_202", J = "_iconBtn_17qb6_208", t = {
|
|
5
|
-
multiSelectWrapper: S,
|
|
6
|
-
selectedOptions: h,
|
|
7
|
-
selectedText: f,
|
|
8
|
-
selectedOptionsBtn: k,
|
|
9
|
-
"small-size": "_small-size_17qb6_39",
|
|
10
|
-
"medium-size": "_medium-size_17qb6_46",
|
|
11
|
-
"large-size": "_large-size_17qb6_53",
|
|
12
|
-
selectedOptionsOpened: w,
|
|
13
|
-
selectedOptionsNotEmpty: v,
|
|
14
|
-
selectOptionsDisabled: x,
|
|
15
|
-
optionsOuterContainer: y,
|
|
16
|
-
betweenSize_small: D,
|
|
17
|
-
betweenSize_medium: L,
|
|
18
|
-
optionsList: B,
|
|
19
|
-
scroll_standard: N,
|
|
20
|
-
scroll_compact: W,
|
|
21
|
-
lastList: A,
|
|
22
|
-
listRight: E,
|
|
23
|
-
inputWrapper: R,
|
|
24
|
-
option: T,
|
|
25
|
-
category: j,
|
|
26
|
-
leftSide: P,
|
|
27
|
-
optionCategory: U,
|
|
28
|
-
isPositionLeftCheckbox: $,
|
|
29
|
-
optionDisabled: F,
|
|
30
|
-
optionClickable: G,
|
|
31
|
-
icon: H,
|
|
32
|
-
iconArrow: I,
|
|
33
|
-
iconBtn: J,
|
|
34
|
-
"small-size_m": "_small-size_m_17qb6_221",
|
|
35
|
-
"medium-size_m": "_medium-size_m_17qb6_227",
|
|
36
|
-
"large-size_m": "_large-size_m_17qb6_233",
|
|
37
|
-
"small-size_l": "_small-size_l_17qb6_248",
|
|
38
|
-
"medium-size_l": "_medium-size_l_17qb6_254",
|
|
39
|
-
"large-size_l": "_large-size_l_17qb6_260"
|
|
40
|
-
}, K = g.bind(t), X = ({
|
|
41
|
-
option: e,
|
|
42
|
-
selectedOptions: d,
|
|
43
|
-
disabledOptions: b,
|
|
44
|
-
clickableOptions: s,
|
|
45
|
-
handleOptionClick: p,
|
|
46
|
-
isOptionCategory: _,
|
|
47
|
-
isPositionLeftCheckbox: i = !1,
|
|
48
|
-
sizeIcon: c,
|
|
49
|
-
dataTestId: m,
|
|
50
|
-
isDisabledNotClickable: q,
|
|
51
|
-
addClassName: u = ""
|
|
52
|
-
}) => {
|
|
53
|
-
const z = s ? s.includes(`${e.value}`) : !0, O = e.value === "selectAll", o = d.some((l) => l.value === e.value), a = () => q && s ? !s.includes(`${e.value}`) : b.some((l) => l.value === e.value);
|
|
54
|
-
return /* @__PURE__ */ C(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
className: K(
|
|
58
|
-
t.option,
|
|
59
|
-
{
|
|
60
|
-
[t.optionDisabled]: a(),
|
|
61
|
-
[t.optionCategory]: _,
|
|
62
|
-
[t.isPositionLeftCheckbox]: i,
|
|
63
|
-
[t.optionClickable]: z || O
|
|
64
|
-
},
|
|
65
|
-
u
|
|
66
|
-
),
|
|
67
|
-
"data-testid": m,
|
|
68
|
-
onClick: () => {
|
|
69
|
-
a() && !o || p(e);
|
|
70
|
-
},
|
|
71
|
-
children: [
|
|
72
|
-
(_ || i) && /* @__PURE__ */ n(
|
|
73
|
-
r,
|
|
74
|
-
{
|
|
75
|
-
size: c ?? "20",
|
|
76
|
-
name: o ? "selectChecked" : "selectUnchecked"
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ n("div", { children: e.label }),
|
|
80
|
-
!_ && !i && /* @__PURE__ */ n(
|
|
81
|
-
r,
|
|
82
|
-
{
|
|
83
|
-
size: c ?? "20",
|
|
84
|
-
name: o ? "selectChecked" : "selectUnchecked"
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
X as O,
|
|
93
|
-
t as s
|
|
94
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { useState as K } from "react";
|
|
3
|
-
import { getTagsFeatures as Q } from "./components/LotCard/utils/getTagsFeatures.js";
|
|
4
|
-
import { c as U } from "./index-YnD2EP-S.js";
|
|
5
|
-
import { checkBedroomsCount as X } from "./components/LotCard/utils/checkBedroomsCount.js";
|
|
6
|
-
import { formatPayment as Y } from "./components/LotCard/utils/monthlyPayment.js";
|
|
7
|
-
import { useClientWidth as Z } from "./shared/useClientWidth.js";
|
|
8
|
-
import { Text as tt } from "./components/Text/ui/Text.js";
|
|
9
|
-
import { NewIcon as et } from "./components/NewIcon/ui/NewIcon.js";
|
|
10
|
-
const ot = "_root_13kvt_1", rt = "_lotBtn_13kvt_12", nt = "_rootDisable_13kvt_26", st = "_lotImageWrapper_13kvt_26", it = "_lotInfoWrapper_13kvt_27", pt = "_favoriteBtn_13kvt_41", ct = "_infoHeader_13kvt_54", lt = "_monthlyWrapper_13kvt_63", at = "_price_13kvt_73", _t = "_monthlyPayment_13kvt_80", dt = "_decor_13kvt_86", mt = "_lotPropertyListMobile_13kvt_93", vt = "_lotPropertyItem_13kvt_101", ut = "_lotPropertyListDesktop_13kvt_118", ft = "_lotPriceWrapper_13kvt_122", ht = "_discountWrapper_13kvt_128", kt = "_discountPrice_13kvt_139", Pt = "_priceWrap_13kvt_151", gt = "_snippetLast_13kvt_161", St = "_snippet_13kvt_161", Wt = "_tagsMobile_13kvt_176", yt = "_discountTag_13kvt_191", bt = "_lotPricePerMetr_13kvt_195", Lt = "_btnWrapper_13kvt_200", wt = "_title_13kvt_207", It = "_snippets_13kvt_211", Bt = "_retailSnippets_13kvt_216", Mt = "_shownSnippets_13kvt_221", Nt = "_addSnippets_13kvt_246", Tt = "_addSnippetsActive_13kvt_262", Ct = "_addSnippetsList_13kvt_267", Rt = "_closeSnippetBtn_13kvt_311", xt = "_rootRow_13kvt_323", Dt = "_rowTablet_13kvt_334", Ft = "_rootRightSide_13kvt_375", jt = "_topWrapper_13kvt_391", Ht = "_botWrapper_13kvt_396", At = "_lotPriceWrapperRow_13kvt_427", Vt = "_fullscreenBtn_13kvt_437", $t = "_projectLotPricePerMetr_13kvt_456", Et = "_paymentClass_13kvt_496", e = {
|
|
11
|
-
root: ot,
|
|
12
|
-
lotBtn: rt,
|
|
13
|
-
rootDisable: nt,
|
|
14
|
-
lotImageWrapper: st,
|
|
15
|
-
lotInfoWrapper: it,
|
|
16
|
-
favoriteBtn: pt,
|
|
17
|
-
infoHeader: ct,
|
|
18
|
-
monthlyWrapper: lt,
|
|
19
|
-
price: at,
|
|
20
|
-
monthlyPayment: _t,
|
|
21
|
-
decor: dt,
|
|
22
|
-
lotPropertyListMobile: mt,
|
|
23
|
-
lotPropertyItem: vt,
|
|
24
|
-
lotPropertyListDesktop: ut,
|
|
25
|
-
lotPriceWrapper: ft,
|
|
26
|
-
discountWrapper: ht,
|
|
27
|
-
discountPrice: kt,
|
|
28
|
-
priceWrap: Pt,
|
|
29
|
-
snippetLast: gt,
|
|
30
|
-
snippet: St,
|
|
31
|
-
tagsMobile: Wt,
|
|
32
|
-
discountTag: yt,
|
|
33
|
-
lotPricePerMetr: bt,
|
|
34
|
-
btnWrapper: Lt,
|
|
35
|
-
title: wt,
|
|
36
|
-
snippets: It,
|
|
37
|
-
retailSnippets: Bt,
|
|
38
|
-
shownSnippets: Mt,
|
|
39
|
-
addSnippets: Nt,
|
|
40
|
-
addSnippetsActive: Tt,
|
|
41
|
-
addSnippetsList: Ct,
|
|
42
|
-
closeSnippetBtn: Rt,
|
|
43
|
-
rootRow: xt,
|
|
44
|
-
rowTablet: Dt,
|
|
45
|
-
rootRightSide: Ft,
|
|
46
|
-
topWrapper: jt,
|
|
47
|
-
botWrapper: Ht,
|
|
48
|
-
lotPriceWrapperRow: At,
|
|
49
|
-
fullscreenBtn: Vt,
|
|
50
|
-
projectLotPricePerMetr: $t,
|
|
51
|
-
paymentClass: Et
|
|
52
|
-
}, d = U.bind(e), Zt = ({ lot: b, rowConditions: L }) => {
|
|
53
|
-
const {
|
|
54
|
-
status: x,
|
|
55
|
-
direction: D,
|
|
56
|
-
area: w,
|
|
57
|
-
floor: v,
|
|
58
|
-
endFloor: S,
|
|
59
|
-
floorsNumber: c,
|
|
60
|
-
type: W,
|
|
61
|
-
isCorner: F,
|
|
62
|
-
windowViews: u,
|
|
63
|
-
subTypeName: I,
|
|
64
|
-
number: B,
|
|
65
|
-
bedroomsCount: j,
|
|
66
|
-
mortgageMonthlyPayment: M
|
|
67
|
-
} = b, [y, f] = K(!1), H = x === 2, A = D === 1, h = W === 11, V = w ? w + " м²" : "", m = v && c ? (S && S !== v ? v + "-" + S : v) + " из " + c : "", k = Q({ ...b }), { isTablet: N, isDesktop: l, isMobile: T, currentClientWidth: $ } = Z(), E = typeof L < "u" ? L : l || N, z = () => h ? c ? "Кол-во этажей: " + c : "" : m ? "Этаж: " + m : "", O = () => h ? c ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
68
|
-
/* @__PURE__ */ t("div", { children: "Количество этажей" }),
|
|
69
|
-
/* @__PURE__ */ t("div", { children: c })
|
|
70
|
-
] }) : null : m ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
71
|
-
/* @__PURE__ */ t("div", { children: "Этаж" }),
|
|
72
|
-
/* @__PURE__ */ t("div", { children: m })
|
|
73
|
-
] }) : null, q = () => {
|
|
74
|
-
if (W === 3) {
|
|
75
|
-
if (T && (!u || u.length === 0))
|
|
76
|
-
return null;
|
|
77
|
-
let n = 0;
|
|
78
|
-
const r = l ? 36 : 28, i = [], P = [];
|
|
79
|
-
if (F) {
|
|
80
|
-
const o = "Угловая";
|
|
81
|
-
if (n + o.length <= r)
|
|
82
|
-
i.push(o), n += o.length;
|
|
83
|
-
else
|
|
84
|
-
return i;
|
|
85
|
-
}
|
|
86
|
-
if (u) {
|
|
87
|
-
const o = u.filter((p) => p && p.trim() !== "");
|
|
88
|
-
let s = 0, a = n;
|
|
89
|
-
for (let p = 0; p < o.length; p++) {
|
|
90
|
-
const g = o[p], C = s > 0 ? " " + g : g;
|
|
91
|
-
if (a + C.length <= r)
|
|
92
|
-
i.push(g), a += C.length, s++;
|
|
93
|
-
else {
|
|
94
|
-
if (s === 0) {
|
|
95
|
-
const R = r - a;
|
|
96
|
-
if (R > 3) {
|
|
97
|
-
const G = g.substring(0, R - 3) + "...";
|
|
98
|
-
i.push(G), a = r;
|
|
99
|
-
} else
|
|
100
|
-
i.push("..."), a += 3;
|
|
101
|
-
}
|
|
102
|
-
P.push(...o.slice(p));
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
n = a;
|
|
107
|
-
}
|
|
108
|
-
return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
|
|
109
|
-
/* @__PURE__ */ t("ul", { className: e.shownSnippets, children: i?.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)) }),
|
|
110
|
-
P?.length > 0 && /* @__PURE__ */ _(
|
|
111
|
-
"div",
|
|
112
|
-
{
|
|
113
|
-
className: d(e.addSnippets, { [e.addSnippetsActive]: y }),
|
|
114
|
-
onClick: (o) => {
|
|
115
|
-
l || (o.stopPropagation(), o.preventDefault(), f((s) => !s));
|
|
116
|
-
},
|
|
117
|
-
onMouseEnter: () => {
|
|
118
|
-
l && f(!0);
|
|
119
|
-
},
|
|
120
|
-
onMouseLeave: () => {
|
|
121
|
-
l && f(!1);
|
|
122
|
-
},
|
|
123
|
-
children: [
|
|
124
|
-
"+" + P?.length,
|
|
125
|
-
y && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
|
|
126
|
-
P.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)),
|
|
127
|
-
/* @__PURE__ */ t("div", { className: e.closeSnippetBtn, children: /* @__PURE__ */ t(
|
|
128
|
-
et,
|
|
129
|
-
{
|
|
130
|
-
name: "close",
|
|
131
|
-
size: "16",
|
|
132
|
-
color: "#ffffff"
|
|
133
|
-
}
|
|
134
|
-
) })
|
|
135
|
-
] })
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] });
|
|
140
|
-
}
|
|
141
|
-
return k.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: k.map((n, r) => {
|
|
142
|
-
const i = r === k.length - 1;
|
|
143
|
-
return /* @__PURE__ */ t(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
className: d(e.snippet, i ? "" : e.snippetLast),
|
|
147
|
-
children: n.text
|
|
148
|
-
},
|
|
149
|
-
r
|
|
150
|
-
);
|
|
151
|
-
}) }) : null;
|
|
152
|
-
};
|
|
153
|
-
return {
|
|
154
|
-
currentClientWidth: $,
|
|
155
|
-
isBuilding: h,
|
|
156
|
-
LotCardInfo: () => {
|
|
157
|
-
const n = A && W && I ? I : X(j), r = h ? n : `${n}${B ? `, ${B}` : ""}`;
|
|
158
|
-
return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
|
|
159
|
-
r && /* @__PURE__ */ t(
|
|
160
|
-
tt,
|
|
161
|
-
{
|
|
162
|
-
className: d(e.infoHeader),
|
|
163
|
-
html: r
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
M && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(M) }),
|
|
167
|
-
/* @__PURE__ */ t(q, {})
|
|
168
|
-
] }) });
|
|
169
|
-
},
|
|
170
|
-
tagFeatures: k,
|
|
171
|
-
FloorByType: O,
|
|
172
|
-
isTablet: N,
|
|
173
|
-
isDesktop: l,
|
|
174
|
-
getFloorStr: z,
|
|
175
|
-
isReserved: H,
|
|
176
|
-
isMobile: T,
|
|
177
|
-
areaStr: V,
|
|
178
|
-
floorStr: m,
|
|
179
|
-
isShowSnippet: y,
|
|
180
|
-
setIsShowSnippet: f,
|
|
181
|
-
rowConditionsVar: E
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
export {
|
|
185
|
-
e as s,
|
|
186
|
-
Zt as u
|
|
187
|
-
};
|