stone-kit 0.0.1032 → 0.0.1033
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 +114 -94
- 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
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as k, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as q } from "./index-
|
|
2
|
+
import { c as q } from "./index-YnD2EP-S.js";
|
|
3
3
|
const O = "_sortSelectWrapper_1b2qn_1", v = "_selectedOptions_1b2qn_11", x = "_selectionOptionMini_1b2qn_34", B = "_selectedOptionsOpened_1b2qn_38", S = "_selectOptionsDisabled_1b2qn_42", f = "_optionsList_1b2qn_49", C = "_mobileOptionList_1b2qn_64", L = "_mobileSortHeader_1b2qn_72", W = "_modalAddBody_1b2qn_86", g = "_inputWrapper_1b2qn_92", T = "_option_1b2qn_49", D = "_icon_1b2qn_120", N = "_checkBox_1b2qn_127", y = "_checkBoxChecked_1b2qn_134", A = "_innerCheck_1b2qn_141", H = "_sortSelectWrapperTop_1b2qn_172", M = "_optionListOnTop_1b2qn_175", t = {
|
|
4
4
|
sortSelectWrapper: O,
|
|
5
5
|
selectedOptions: v,
|
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.
|
|
5
|
+
"version": "0.0.1033",
|
|
6
6
|
"author": "Mollycodd1e",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"type": "module",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@storybook/addon-onboarding": "^9.1.2",
|
|
30
30
|
"@storybook/react-vite": "^9.1.2",
|
|
31
31
|
"@types/node": "^24.10.0",
|
|
32
|
-
"@types/react": "^19
|
|
33
|
-
"@types/react-dom": "^19
|
|
32
|
+
"@types/react": "^19",
|
|
33
|
+
"@types/react-dom": "^19",
|
|
34
34
|
"@vitejs/plugin-react": "^5.1.0",
|
|
35
35
|
"classnames": "^2.5.1",
|
|
36
|
-
"eslint": "^9
|
|
36
|
+
"eslint": "^9",
|
|
37
37
|
"eslint-plugin-react": "^7.34.1",
|
|
38
38
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
39
39
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-hook-form": "^7.52.2",
|
|
44
44
|
"sass": "^1.94.0",
|
|
45
45
|
"storybook": "^9.1.2",
|
|
46
|
-
"typescript": "
|
|
46
|
+
"typescript": "^5",
|
|
47
47
|
"typescript-eslint": "^8.46.3",
|
|
48
48
|
"vite": "^7.2.2",
|
|
49
49
|
"vite-plugin-dts": "^4.5.4",
|