stone-kit 0.0.1032 → 0.0.1034
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/App.js +4 -4
- package/dist/Option-D-8xnCui.js +94 -0
- package/dist/Router.js +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +4 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +20 -19
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +62 -41
- package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +2 -0
- package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -1
- package/dist/components/FieldInput/ui/FieldInput.js +21 -12
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -7
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +10 -1
- package/dist/components/FormModal/ui/ModalForm.js +803 -719
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/Input/ui/Input.js +1 -22
- package/dist/components/Logo/ui/Logo.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +108 -88
- package/dist/components/LotCard/ui/LotCard.types.d.ts +2 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
- package/dist/components/MetroTag/ui/MetroTag.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +119 -114
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.d.ts +2 -1
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +1 -1
- package/dist/components/Select/ui/Select.js +88 -82
- package/dist/components/Select/ui/Select.types.d.ts +5 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/ui/SortSelect.js +2 -2
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +60 -57
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +91 -90
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.js +1 -1
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
- package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
- package/dist/layout/components/Header/Header.js +1 -1
- package/dist/layout/components/Menu.js +107 -4
- package/dist/pages/FormsPage/FormsPage.js +1 -0
- package/dist/pages/TabsPage/TabsPage.js +56 -42
- package/dist/stone-kit.css +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/useLotCard-I7_rgnqj.js +187 -0
- package/dist/{useSortSelect-B8HOGdOt.js → useSortSelect-IeonkD5d.js} +1 -1
- package/package.json +5 -5
- package/dist/Menu-CdJTzN7T.js +0 -494
- package/dist/Option-rFBMQAPk.js +0 -87
- package/dist/index-CBdtKu-u.js +0 -891
- package/dist/useLotCard-DG9doKCX.js +0 -186
|
@@ -1,186 +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-B2JRaoNz.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 st = "_root_15scj_1", ot = "_lotBtn_15scj_12", rt = "_rootDisable_15scj_26", nt = "_lotImageWrapper_15scj_26", it = "_lotInfoWrapper_15scj_27", ct = "_infoHeader_15scj_47", pt = "_monthlyWrapper_15scj_56", lt = "_price_15scj_66", at = "_monthlyPayment_15scj_73", _t = "_decor_15scj_79", dt = "_lotPropertyListMobile_15scj_86", mt = "_lotPropertyItem_15scj_94", ut = "_lotPropertyListDesktop_15scj_111", ht = "_lotPriceWrapper_15scj_115", ft = "_discountWrapper_15scj_121", jt = "_discountPrice_15scj_132", Pt = "_priceWrap_15scj_144", gt = "_snippetLast_15scj_154", St = "_snippet_15scj_154", Wt = "_tagsMobile_15scj_169", yt = "_discountTag_15scj_184", bt = "_lotPricePerMetr_15scj_188", Lt = "_btnWrapper_15scj_193", wt = "_title_15scj_200", vt = "_snippets_15scj_204", It = "_retailSnippets_15scj_209", Mt = "_shownSnippets_15scj_214", Nt = "_addSnippets_15scj_239", Tt = "_addSnippetsActive_15scj_255", Bt = "_addSnippetsList_15scj_260", Ct = "_closeSnippetBtn_15scj_304", Rt = "_rootRow_15scj_316", xt = "_rowTablet_15scj_327", Dt = "_rootRightSide_15scj_368", kt = "_topWrapper_15scj_384", Ft = "_botWrapper_15scj_389", Ht = "_lotPriceWrapperRow_15scj_420", At = "_fullscreenBtn_15scj_430", Vt = "_projectLotPricePerMetr_15scj_449", $t = "_paymentClass_15scj_489", e = {
|
|
11
|
-
root: st,
|
|
12
|
-
lotBtn: ot,
|
|
13
|
-
rootDisable: rt,
|
|
14
|
-
lotImageWrapper: nt,
|
|
15
|
-
lotInfoWrapper: it,
|
|
16
|
-
infoHeader: ct,
|
|
17
|
-
monthlyWrapper: pt,
|
|
18
|
-
price: lt,
|
|
19
|
-
monthlyPayment: at,
|
|
20
|
-
decor: _t,
|
|
21
|
-
lotPropertyListMobile: dt,
|
|
22
|
-
lotPropertyItem: mt,
|
|
23
|
-
lotPropertyListDesktop: ut,
|
|
24
|
-
lotPriceWrapper: ht,
|
|
25
|
-
discountWrapper: ft,
|
|
26
|
-
discountPrice: jt,
|
|
27
|
-
priceWrap: Pt,
|
|
28
|
-
snippetLast: gt,
|
|
29
|
-
snippet: St,
|
|
30
|
-
tagsMobile: Wt,
|
|
31
|
-
discountTag: yt,
|
|
32
|
-
lotPricePerMetr: bt,
|
|
33
|
-
btnWrapper: Lt,
|
|
34
|
-
title: wt,
|
|
35
|
-
snippets: vt,
|
|
36
|
-
retailSnippets: It,
|
|
37
|
-
shownSnippets: Mt,
|
|
38
|
-
addSnippets: Nt,
|
|
39
|
-
addSnippetsActive: Tt,
|
|
40
|
-
addSnippetsList: Bt,
|
|
41
|
-
closeSnippetBtn: Ct,
|
|
42
|
-
rootRow: Rt,
|
|
43
|
-
rowTablet: xt,
|
|
44
|
-
rootRightSide: Dt,
|
|
45
|
-
topWrapper: kt,
|
|
46
|
-
botWrapper: Ft,
|
|
47
|
-
lotPriceWrapperRow: Ht,
|
|
48
|
-
fullscreenBtn: At,
|
|
49
|
-
projectLotPricePerMetr: Vt,
|
|
50
|
-
paymentClass: $t
|
|
51
|
-
}, d = U.bind(e), Yt = ({ lot: L, rowConditions: w }) => {
|
|
52
|
-
const {
|
|
53
|
-
status: x,
|
|
54
|
-
direction: D,
|
|
55
|
-
area: v,
|
|
56
|
-
floor: u,
|
|
57
|
-
endFloor: W,
|
|
58
|
-
floorsNumber: p,
|
|
59
|
-
type: y,
|
|
60
|
-
isCorner: k,
|
|
61
|
-
windowViews: h,
|
|
62
|
-
subTypeName: I,
|
|
63
|
-
number: M,
|
|
64
|
-
bedroomsCount: F,
|
|
65
|
-
mortgageMonthlyPayment: N
|
|
66
|
-
} = L, [b, f] = K(!1), H = x === 2, A = D === 1, j = y === 11, V = v ? v + " м²" : "", m = u && p ? (W && W !== u ? u + "-" + W : u) + " из " + p : "", P = Q({ ...L }), { isTablet: T, isDesktop: l, isMobile: B, currentClientWidth: $ } = Z(), E = typeof w < "u" ? w : l || T, z = () => j ? p ? "Кол-во этажей: " + p : "" : m ? "Этаж: " + m : "", O = () => j ? p ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
67
|
-
/* @__PURE__ */ t("div", { children: "Количество этажей" }),
|
|
68
|
-
/* @__PURE__ */ t("div", { children: p })
|
|
69
|
-
] }) : null : m ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
|
|
70
|
-
/* @__PURE__ */ t("div", { children: "Этаж" }),
|
|
71
|
-
/* @__PURE__ */ t("div", { children: m })
|
|
72
|
-
] }) : null, q = () => {
|
|
73
|
-
if (y === 3) {
|
|
74
|
-
if (B && (!h || h.length === 0))
|
|
75
|
-
return null;
|
|
76
|
-
let r = 0;
|
|
77
|
-
const o = l ? 36 : 28, i = [], g = [];
|
|
78
|
-
if (k) {
|
|
79
|
-
const s = "Угловая";
|
|
80
|
-
if (r + s.length <= o)
|
|
81
|
-
i.push(s), r += s.length;
|
|
82
|
-
else
|
|
83
|
-
return i;
|
|
84
|
-
}
|
|
85
|
-
if (h) {
|
|
86
|
-
const s = h.filter((c) => c && c.trim() !== "");
|
|
87
|
-
let n = 0, a = r;
|
|
88
|
-
for (let c = 0; c < s.length; c++) {
|
|
89
|
-
const S = s[c], C = n > 0 ? " " + S : S;
|
|
90
|
-
if (a + C.length <= o)
|
|
91
|
-
i.push(S), a += C.length, n++;
|
|
92
|
-
else {
|
|
93
|
-
if (n === 0) {
|
|
94
|
-
const R = o - a;
|
|
95
|
-
if (R > 3) {
|
|
96
|
-
const G = S.substring(0, R - 3) + "...";
|
|
97
|
-
i.push(G), a = o;
|
|
98
|
-
} else
|
|
99
|
-
i.push("..."), a += 3;
|
|
100
|
-
}
|
|
101
|
-
g.push(...s.slice(c));
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
r = a;
|
|
106
|
-
}
|
|
107
|
-
return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
|
|
108
|
-
/* @__PURE__ */ t("ul", { className: e.shownSnippets, children: i?.map((s, n) => /* @__PURE__ */ t("li", { children: s }, n)) }),
|
|
109
|
-
g?.length > 0 && /* @__PURE__ */ _(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
className: d(e.addSnippets, { [e.addSnippetsActive]: b }),
|
|
113
|
-
onClick: (s) => {
|
|
114
|
-
l || (s.stopPropagation(), s.preventDefault(), f((n) => !n));
|
|
115
|
-
},
|
|
116
|
-
onMouseEnter: () => {
|
|
117
|
-
l && f(!0);
|
|
118
|
-
},
|
|
119
|
-
onMouseLeave: () => {
|
|
120
|
-
l && f(!1);
|
|
121
|
-
},
|
|
122
|
-
children: [
|
|
123
|
-
"+" + g?.length,
|
|
124
|
-
b && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
|
|
125
|
-
g.map((s, n) => /* @__PURE__ */ t("li", { children: s }, n)),
|
|
126
|
-
/* @__PURE__ */ t("div", { className: e.closeSnippetBtn, children: /* @__PURE__ */ t(
|
|
127
|
-
et,
|
|
128
|
-
{
|
|
129
|
-
name: "close",
|
|
130
|
-
size: "16",
|
|
131
|
-
color: "#ffffff"
|
|
132
|
-
}
|
|
133
|
-
) })
|
|
134
|
-
] })
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
] });
|
|
139
|
-
}
|
|
140
|
-
return P.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: P.map((r, o) => {
|
|
141
|
-
const i = o === P.length - 1;
|
|
142
|
-
return /* @__PURE__ */ t(
|
|
143
|
-
"div",
|
|
144
|
-
{
|
|
145
|
-
className: d(e.snippet, i ? "" : e.snippetLast),
|
|
146
|
-
children: r.text
|
|
147
|
-
},
|
|
148
|
-
o
|
|
149
|
-
);
|
|
150
|
-
}) }) : null;
|
|
151
|
-
};
|
|
152
|
-
return {
|
|
153
|
-
currentClientWidth: $,
|
|
154
|
-
isBuilding: j,
|
|
155
|
-
LotCardInfo: () => {
|
|
156
|
-
const r = A && y && I ? I : X(F), o = j ? r : `${r}${M ? `, ${M}` : ""}`;
|
|
157
|
-
return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
|
|
158
|
-
o && /* @__PURE__ */ t(
|
|
159
|
-
tt,
|
|
160
|
-
{
|
|
161
|
-
className: d(e.infoHeader),
|
|
162
|
-
html: o
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
N && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(N) }),
|
|
166
|
-
/* @__PURE__ */ t(q, {})
|
|
167
|
-
] }) });
|
|
168
|
-
},
|
|
169
|
-
tagFeatures: P,
|
|
170
|
-
FloorByType: O,
|
|
171
|
-
isTablet: T,
|
|
172
|
-
isDesktop: l,
|
|
173
|
-
getFloorStr: z,
|
|
174
|
-
isReserved: H,
|
|
175
|
-
isMobile: B,
|
|
176
|
-
areaStr: V,
|
|
177
|
-
floorStr: m,
|
|
178
|
-
isShowSnippet: b,
|
|
179
|
-
setIsShowSnippet: f,
|
|
180
|
-
rowConditionsVar: E
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
export {
|
|
184
|
-
e as s,
|
|
185
|
-
Yt as u
|
|
186
|
-
};
|