stone-kit 0.0.1029 → 0.0.1030
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/FilterWithSave-BWA01WwU.js +2476 -0
- package/dist/Menu-CeBSiTyP.js +513 -0
- package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.d.ts +1 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/Button/ui/Button.types.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
- package/dist/components/Flex/ui/Flex.d.ts +1 -0
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
- package/dist/components/FormModal/ui/ModalForm.js +28 -1445
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
- package/dist/components/Input/ui/Input.d.ts +2 -1
- package/dist/components/Input/ui/Input.js +325 -234
- package/dist/components/Logo/ui/Logo.d.ts +1 -0
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
- package/dist/components/LotCard/hooks/useLotCard.js +24 -6
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
- package/dist/components/LotCard/ui/LotCard.js +10 -213
- package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
- package/dist/components/LotCard/utils/formatPrice.js +2 -1
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
- package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.js +74 -74
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.js +37 -34
- package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
- package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
- package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
- package/dist/components/RoundButton/ui/RoundButton.js +2 -2
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
- package/dist/components/Select/model/selectMode.d.ts +1 -0
- package/dist/components/Select/model/selectMode.js +30 -30
- package/dist/components/Select/ui/Category.d.ts +1 -0
- package/dist/components/Select/ui/Category.js +3 -3
- package/dist/components/Select/ui/Option.d.ts +1 -0
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +1 -0
- package/dist/components/Select/ui/Select.js +115 -115
- package/dist/components/SliderNavigation/index.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
- package/dist/components/SortSelect/ui/SortSelect.js +26 -108
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.js +5 -5
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.js +91 -91
- package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
- package/dist/components/Text/ui/Text.d.ts +1 -0
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/Text/ui/Text.types.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
- package/dist/index-DmANy9jd.js +890 -0
- package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
- package/dist/index-rKuIKazb.js +45 -0
- package/dist/layout/Layout.d.ts +1 -0
- package/dist/layout/components/Header/Header.js +71 -48
- package/dist/layout/components/Menu.js +26 -107
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +61 -44
- package/dist/pages/FormsPage/FormsPage.js +50 -26
- package/dist/pages/IconsPage/IconsPage.js +31 -9
- package/dist/pages/InputPage/InputPage.js +32 -10
- package/dist/pages/LogoPage/LogoPage.js +35 -13
- package/dist/pages/LotsPage/LotsPage.js +17 -18
- package/dist/pages/LotsPage/const.d.ts +1 -0
- package/dist/pages/ModalsPage/ModalPage.js +66 -46
- package/dist/pages/SelectPage/SelectPage.js +58 -58
- package/dist/pages/TabsPage/TabsPage.js +20 -19
- package/dist/pages/TagsPage/TagsPage.js +44 -23
- package/dist/shared/checkLargeOffice.d.ts +1 -0
- package/dist/shared/checkLargeOffice.js +1 -1
- package/dist/shared/mlnRound.js +2 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
- package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
- 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 +2 -2
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
- 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 +2 -2
- 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 +2 -2
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/style.css +1 -0
- package/dist/useSortSelect-BTCEVMVn.js +80 -0
- package/package.json +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/stone-kit.css +0 -1
- package/dist/useLotCard-CYcRSogE.js +0 -186
- package/dist/useSortSelect-Cy3od4ig.js +0 -80
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
5
|
-
nameWrapper:
|
|
6
|
-
large:
|
|
7
|
-
clearBtn:
|
|
8
|
-
checkboxWrapper:
|
|
9
|
-
checkboxItem:
|
|
10
|
-
checkboxItemActive:
|
|
11
|
-
checkboxItemDisabled:
|
|
12
|
-
checkBoxLarge:
|
|
13
|
-
},
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../../index-rKuIKazb.js";
|
|
3
|
+
const d = "_root_19qpl_1", I = "_nameWrapper_19qpl_8", h = "_large_19qpl_18", b = "_clearBtn_19qpl_25", q = "_checkboxWrapper_19qpl_40", v = "_checkboxItem_19qpl_46", g = "_checkboxItemActive_19qpl_64", B = "_checkboxItemDisabled_19qpl_76", W = "_checkBoxLarge_19qpl_81", a = {
|
|
4
|
+
root: d,
|
|
5
|
+
nameWrapper: I,
|
|
6
|
+
large: h,
|
|
7
|
+
clearBtn: b,
|
|
8
|
+
checkboxWrapper: q,
|
|
9
|
+
checkboxItem: v,
|
|
10
|
+
checkboxItemActive: g,
|
|
11
|
+
checkboxItemDisabled: B,
|
|
12
|
+
checkBoxLarge: W
|
|
13
|
+
}, t = _.bind(a), N = ({
|
|
14
14
|
label: s = "Тип квартиры",
|
|
15
|
-
checkboxes:
|
|
16
|
-
addClassname:
|
|
15
|
+
checkboxes: l,
|
|
16
|
+
addClassname: o,
|
|
17
17
|
isNeedClear: p = !0,
|
|
18
|
-
isPromotion:
|
|
18
|
+
isPromotion: c
|
|
19
19
|
}) => {
|
|
20
20
|
const i = () => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
l == null || l.forEach((e) => {
|
|
22
|
+
e != null && e.isSelected && (e == null || e.setValue());
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
p && /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ n("div", { className: t(a.root, o), children: [
|
|
26
|
+
/* @__PURE__ */ n("div", { className: t(a.nameWrapper, { [a.large]: c }), children: [
|
|
27
|
+
/* @__PURE__ */ r("div", { children: s }),
|
|
28
|
+
p && /* @__PURE__ */ r(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
31
|
+
className: a.clearBtn,
|
|
32
32
|
onClick: i,
|
|
33
33
|
children: "Очистить"
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ r("div", { className: a.checkboxWrapper, children: l == null ? void 0 : l.map((e) => /* @__PURE__ */ r(
|
|
38
38
|
"button",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
41
|
-
|
|
42
|
-
{ [
|
|
43
|
-
{ [
|
|
44
|
-
{ [
|
|
40
|
+
className: t(
|
|
41
|
+
a.checkboxItem,
|
|
42
|
+
{ [a.checkboxItemActive]: e == null ? void 0 : e.isSelected },
|
|
43
|
+
{ [a.checkboxItemDisabled]: e == null ? void 0 : e.disabled },
|
|
44
|
+
{ [a.checkBoxLarge]: c }
|
|
45
45
|
),
|
|
46
|
-
onClick: () =>
|
|
47
|
-
disabled:
|
|
48
|
-
children:
|
|
46
|
+
onClick: () => e == null ? void 0 : e.setValue(),
|
|
47
|
+
disabled: e == null ? void 0 : e.disabled,
|
|
48
|
+
children: e == null ? void 0 : e.label
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
e == null ? void 0 : e.label
|
|
51
51
|
)) })
|
|
52
52
|
] });
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
N as CheckboxSelect
|
|
56
56
|
};
|
|
@@ -1,52 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
const h = "_root_19awq_1", b = "_lotImageWrapper_19awq_17", q = "_lotNameWrapper_19awq_23", I = "_lotName_19awq_23", v = "_lotNumber_19awq_38", x = "_priceWrapper_19awq_47", R = "_rootRow_19awq_52", o = {
|
|
8
|
-
root: h,
|
|
9
|
-
lotImageWrapper: b,
|
|
10
|
-
lotNameWrapper: q,
|
|
11
|
-
lotName: I,
|
|
12
|
-
lotNumber: v,
|
|
13
|
-
priceWrapper: x,
|
|
14
|
-
rootRow: R
|
|
15
|
-
}, P = g.bind(o), L = ({
|
|
16
|
-
lot: e,
|
|
17
|
-
imgNode: m,
|
|
18
|
-
onPriceClickHandler: p,
|
|
19
|
-
addClassname: s,
|
|
20
|
-
isVertical: a = !1
|
|
21
|
-
}) => {
|
|
22
|
-
const { interiorPlanImg: c, floorPlanImg: l, area: i, subTypeName: n, number: _ } = e || {}, N = n + ", " + w(i) + "м²", d = c ?? l ?? "";
|
|
23
|
-
return e ? /* @__PURE__ */ t("div", { className: P(o.root, s, { [o.rootRow]: !a }), children: [
|
|
24
|
-
/* @__PURE__ */ r("div", { className: o.lotImageWrapper, children: m || /* @__PURE__ */ r(
|
|
25
|
-
"img",
|
|
26
|
-
{
|
|
27
|
-
loading: "lazy",
|
|
28
|
-
src: d,
|
|
29
|
-
width: 295,
|
|
30
|
-
height: 213,
|
|
31
|
-
alt: "logo_image"
|
|
32
|
-
}
|
|
33
|
-
) }),
|
|
34
|
-
/* @__PURE__ */ t("div", { className: o.lotNameWrapper, children: [
|
|
35
|
-
/* @__PURE__ */ r("p", { className: o.lotName, children: N }),
|
|
36
|
-
/* @__PURE__ */ r("p", { className: o.lotNumber, children: _ }),
|
|
37
|
-
/* @__PURE__ */ r(f, { lot: e }),
|
|
38
|
-
/* @__PURE__ */ r(u, { lot: e })
|
|
39
|
-
] }),
|
|
40
|
-
/* @__PURE__ */ r("div", { className: o.priceWrapper, children: /* @__PURE__ */ r(
|
|
41
|
-
W,
|
|
42
|
-
{
|
|
43
|
-
lot: e,
|
|
44
|
-
isVertical: a,
|
|
45
|
-
onPriceClickHandler: p
|
|
46
|
-
}
|
|
47
|
-
) })
|
|
48
|
-
] }) : null;
|
|
49
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../index-rKuIKazb.js";
|
|
3
|
+
import "../../shared/fmtNumber.js";
|
|
4
|
+
import "./components/Price/Price.js";
|
|
5
|
+
import { C } from "../../FilterWithSave-BWA01WwU.js";
|
|
6
|
+
import "./components/Tags/Tags.js";
|
|
50
7
|
export {
|
|
51
|
-
|
|
8
|
+
C as CommercialLotCard
|
|
52
9
|
};
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { formatPrice as g } from "../../utils/formatPrice.js";
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../../../index-rKuIKazb.js";
|
|
4
3
|
import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { formatPrice as N } from "../../utils/formatPrice.js";
|
|
5
|
+
const w = "_root_z3d8u_1", z = "_price_z3d8u_7", b = "_paymentWrapper_z3d8u_19", x = "_rootVertical_z3d8u_36", r = {
|
|
6
|
+
root: w,
|
|
7
|
+
price: z,
|
|
8
8
|
paymentWrapper: b,
|
|
9
9
|
rootVertical: x
|
|
10
|
-
}, V =
|
|
10
|
+
}, V = g.bind(r), T = ({ lot: s, onPriceClickHandler: t, isVertical: m }) => {
|
|
11
|
+
var l;
|
|
11
12
|
const {
|
|
12
|
-
project:
|
|
13
|
-
sellingPriceBeforeDiscount:
|
|
14
|
-
showPriceFlg:
|
|
15
|
-
direction:
|
|
16
|
-
specialProgram:
|
|
17
|
-
sellingPrice:
|
|
18
|
-
} =
|
|
19
|
-
return /* @__PURE__ */ o("div", { className: V(r.root, { [r.rootVertical]:
|
|
20
|
-
|
|
13
|
+
project: c,
|
|
14
|
+
sellingPriceBeforeDiscount: d,
|
|
15
|
+
showPriceFlg: _,
|
|
16
|
+
direction: f,
|
|
17
|
+
specialProgram: h,
|
|
18
|
+
sellingPrice: u
|
|
19
|
+
} = s || {}, P = !!((l = c == null ? void 0 : c.showPriceSubType) != null && l.some((e) => Number(e.filter) === s.subType)), a = !!h, n = d ?? u, p = n && _ && !a && P;
|
|
20
|
+
return /* @__PURE__ */ o("div", { className: V(r.root, { [r.rootVertical]: m }), children: [
|
|
21
|
+
p && /* @__PURE__ */ o("p", { className: r.price, children: [
|
|
21
22
|
" ",
|
|
22
|
-
|
|
23
|
+
N(n, !1, f)
|
|
23
24
|
] }),
|
|
24
|
-
!
|
|
25
|
+
!p && /* @__PURE__ */ o(
|
|
25
26
|
"p",
|
|
26
27
|
{
|
|
27
28
|
className: r.price,
|
|
28
29
|
onClick: (e) => {
|
|
29
|
-
e.preventDefault(), e.stopPropagation(),
|
|
30
|
+
e.preventDefault(), e.stopPropagation(), t && t();
|
|
30
31
|
},
|
|
31
32
|
children: [
|
|
32
33
|
"Цена ",
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ i("span", { children: "по запросу" })
|
|
34
35
|
]
|
|
35
36
|
}
|
|
36
37
|
),
|
|
37
38
|
/* @__PURE__ */ o("div", { className: r.paymentWrapper, children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ i("span", { children: a ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
40
|
+
/* @__PURE__ */ i(
|
|
40
41
|
y,
|
|
41
42
|
{
|
|
42
43
|
name: "arrowRight",
|
|
@@ -47,5 +48,5 @@ const N = "_root_u8cpd_1", w = "_price_u8cpd_7", b = "_paymentWrapper_u8cpd_19",
|
|
|
47
48
|
] });
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
T as Price
|
|
51
52
|
};
|
|
@@ -1,100 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
n.push(e), l += e.length;
|
|
28
|
-
else
|
|
29
|
-
return n;
|
|
30
|
-
}
|
|
31
|
-
if (c) {
|
|
32
|
-
const e = c.filter((p) => p && p.trim() !== "");
|
|
33
|
-
let s = 0, a = l;
|
|
34
|
-
for (let p = 0; p < e.length; p++) {
|
|
35
|
-
const m = e[p], _ = s > 0 ? " " + m : m;
|
|
36
|
-
if (a + _.length <= i)
|
|
37
|
-
n.push(m), a += _.length, s++;
|
|
38
|
-
else {
|
|
39
|
-
if (s === 0) {
|
|
40
|
-
const v = i - a;
|
|
41
|
-
if (v > 3) {
|
|
42
|
-
const b = m.substring(0, v - 3) + "...";
|
|
43
|
-
n.push(b), a = i;
|
|
44
|
-
} else
|
|
45
|
-
n.push("..."), a += 3;
|
|
46
|
-
}
|
|
47
|
-
d.push(...e.slice(p));
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
l = a;
|
|
52
|
-
}
|
|
53
|
-
return /* @__PURE__ */ f("div", { className: t.retailSnippets, children: [
|
|
54
|
-
/* @__PURE__ */ o("ul", { className: t.shownSnippets, children: n?.map((e, s) => /* @__PURE__ */ o("li", { className: t.snippets, children: e }, s)) }),
|
|
55
|
-
d?.length > 0 && /* @__PURE__ */ f(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
className: L(t.addSnippets, { [t.addSnippetsActive]: u }),
|
|
59
|
-
onClick: (e) => {
|
|
60
|
-
r || (e.stopPropagation(), e.preventDefault(), h((s) => !s));
|
|
61
|
-
},
|
|
62
|
-
onMouseEnter: () => {
|
|
63
|
-
r && h(!0);
|
|
64
|
-
},
|
|
65
|
-
onMouseLeave: () => {
|
|
66
|
-
r && h(!1);
|
|
67
|
-
},
|
|
68
|
-
children: [
|
|
69
|
-
"+" + d?.length,
|
|
70
|
-
u && /* @__PURE__ */ f("ul", { className: t.addSnippetsList, children: [
|
|
71
|
-
d.map((e, s) => /* @__PURE__ */ o("li", { children: e }, s)),
|
|
72
|
-
/* @__PURE__ */ o("div", { className: t.closeSnippetBtn, children: /* @__PURE__ */ o(
|
|
73
|
-
C,
|
|
74
|
-
{
|
|
75
|
-
name: "close",
|
|
76
|
-
size: "16",
|
|
77
|
-
color: "#ffffff"
|
|
78
|
-
}
|
|
79
|
-
) })
|
|
80
|
-
] })
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] });
|
|
85
|
-
}
|
|
86
|
-
return S.length ? /* @__PURE__ */ o("div", { className: t.snippets, children: S.map((l, i) => {
|
|
87
|
-
const n = i === S.length - 1;
|
|
88
|
-
return /* @__PURE__ */ o(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
className: L(t.snippet, n ? "" : t.snippetLast),
|
|
92
|
-
children: l.text
|
|
93
|
-
},
|
|
94
|
-
i
|
|
95
|
-
);
|
|
96
|
-
}) }) : null;
|
|
97
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../Button/ui/Button.js";
|
|
4
|
+
import "../../../mobileButton/ui/MobileButton.js";
|
|
5
|
+
import "../../../NewIcon/ui/NewIcon.js";
|
|
6
|
+
import "../../../DestinationTab/ui/DestinationTab.js";
|
|
7
|
+
import "../../../RoundButton/ui/RoundButton.js";
|
|
8
|
+
import "../../../Tag/ui/Tag.js";
|
|
9
|
+
import "../../../Switcher/ui/Switcher.js";
|
|
10
|
+
import "../../../Text/ui/Text.js";
|
|
11
|
+
import "../../../Flex/ui/Flex.js";
|
|
12
|
+
import "../../../Input/ui/Input.js";
|
|
13
|
+
import "react-dom";
|
|
14
|
+
import { a as A } from "../../../../FilterWithSave-BWA01WwU.js";
|
|
15
|
+
import "../../../GroupedInput/ui/GroupedInputs.js";
|
|
16
|
+
import "../../../../index-rKuIKazb.js";
|
|
17
|
+
import "../../../MetroTag/ui/MetroTag.js";
|
|
18
|
+
import "../../../Select/ui/Select.js";
|
|
19
|
+
import "../../../../shared/useClientWidth.js";
|
|
20
|
+
import "../../../SliderNavigation/ui/SliderNavigation.js";
|
|
21
|
+
import "../../../LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
22
|
+
import "../../../TabSelect/ui/TabSelect.js";
|
|
23
|
+
import "../../../CheckBox/CheckBox.js";
|
|
24
|
+
import "../../../CheckBoxNew/CheckBoxNew.js";
|
|
25
|
+
import "../../../CheckboxSelect/ui/CheckboxSelect.js";
|
|
26
|
+
import "../../utils/getTagsFeatures.js";
|
|
98
27
|
export {
|
|
99
|
-
|
|
28
|
+
A as Snippets
|
|
100
29
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import { Tag as
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
5
|
-
},
|
|
6
|
-
const { housing:
|
|
7
|
-
return /* @__PURE__ */ u("div", { className:
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as u, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Tag as s } from "../../../Tag/ui/Tag.js";
|
|
3
|
+
const x = "_root_xiuq1_1", y = {
|
|
4
|
+
root: x
|
|
5
|
+
}, p = ({ lot: g }) => {
|
|
6
|
+
const { housing: e, floor: r, endFloor: t, floorsNumber: o, type: d, project: i } = g || {}, a = d === 11, l = r && o ? (t && t !== r ? r + "-" + t : r) + " этаж из " + o : "", c = () => a ? o ? "Кол-во этажей: " + o : "" : l || "";
|
|
7
|
+
return /* @__PURE__ */ u("div", { className: y.root, children: [
|
|
8
|
+
(i == null ? void 0 : i.buildingYear) && /* @__PURE__ */ n(
|
|
9
|
+
s,
|
|
10
10
|
{
|
|
11
11
|
variant: "gray",
|
|
12
12
|
size: "tiny-12px",
|
|
13
|
-
children:
|
|
13
|
+
children: i.buildingYear
|
|
14
14
|
}
|
|
15
15
|
),
|
|
16
|
-
!a &&
|
|
17
|
-
|
|
16
|
+
!a && e && /* @__PURE__ */ n(
|
|
17
|
+
s,
|
|
18
18
|
{
|
|
19
19
|
variant: "gray",
|
|
20
20
|
size: "tiny-12px",
|
|
21
|
-
children:
|
|
21
|
+
children: e
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
c() && /* @__PURE__ */ n(
|
|
25
|
+
s,
|
|
26
26
|
{
|
|
27
27
|
variant: "gray",
|
|
28
28
|
size: "tiny-12px",
|
|
29
|
-
children:
|
|
29
|
+
children: c()
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] });
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
p as Tags
|
|
36
36
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ILot } from '../types/LotCard';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, 'loggia' | 'isDoubleLevel' | 'isPenthouse' | 'terrace' | 'isCorner' | 'cornerKitchenLiving'>) => {
|
|
3
4
|
text: string;
|
|
4
5
|
}[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './DestinationTab.types';
|
|
3
|
+
|
|
3
4
|
export declare const DestinationTab: ({ size, size_m, size_l, destination, variant, width, routes, checked, onChange, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
destination:
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as N } from "../../../index-rKuIKazb.js";
|
|
3
|
+
const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", _ = {
|
|
4
|
+
destination: x,
|
|
5
5
|
"auto-width": "_auto-width_1c7de_29",
|
|
6
6
|
"full-width": "_full-width_1c7de_33",
|
|
7
7
|
"medium-size": "_medium-size_1c7de_37",
|
|
8
|
-
destinationName:
|
|
8
|
+
destinationName: n,
|
|
9
9
|
routeText: w,
|
|
10
10
|
"large-size": "_large-size_1c7de_51",
|
|
11
11
|
whiteStroke: g,
|
|
@@ -14,58 +14,58 @@ const N = "_destination_1c7de_1", x = "_destinationName_1c7de_40", w = "_routeTe
|
|
|
14
14
|
"large-size_m": "_large-size_m_1c7de_122",
|
|
15
15
|
"medium-size_l": "_medium-size_l_1c7de_137",
|
|
16
16
|
"large-size_l": "_large-size_l_1c7de_150"
|
|
17
|
-
}, b =
|
|
18
|
-
size:
|
|
19
|
-
size_m:
|
|
20
|
-
size_l:
|
|
21
|
-
destination:
|
|
22
|
-
variant:
|
|
23
|
-
width:
|
|
24
|
-
routes:
|
|
25
|
-
checked:
|
|
26
|
-
onChange:
|
|
27
|
-
additionalClass:
|
|
28
|
-
...
|
|
29
|
-
}) => /* @__PURE__ */
|
|
17
|
+
}, b = N.bind(_), f = ({
|
|
18
|
+
size: m = "medium",
|
|
19
|
+
size_m: c,
|
|
20
|
+
size_l: a,
|
|
21
|
+
destination: e = { destName: "", color: "" },
|
|
22
|
+
variant: d = "whiteStroke",
|
|
23
|
+
width: i = "auto",
|
|
24
|
+
routes: l = [],
|
|
25
|
+
checked: o,
|
|
26
|
+
onChange: u,
|
|
27
|
+
additionalClass: p = "",
|
|
28
|
+
...h
|
|
29
|
+
}) => /* @__PURE__ */ t(
|
|
30
30
|
"label",
|
|
31
31
|
{
|
|
32
32
|
className: b(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
_.destination,
|
|
34
|
+
_[`${m}-size`],
|
|
35
|
+
_[`${c}-size_m`],
|
|
36
|
+
_[`${a}-size_l`],
|
|
37
|
+
_[`${d}`],
|
|
38
|
+
_[`${i}-width`],
|
|
39
|
+
p
|
|
40
40
|
),
|
|
41
|
-
...
|
|
42
|
-
htmlFor:
|
|
41
|
+
...h,
|
|
42
|
+
htmlFor: e.destName,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ r(
|
|
45
45
|
"input",
|
|
46
46
|
{
|
|
47
|
-
id:
|
|
48
|
-
checked:
|
|
49
|
-
onChange:
|
|
47
|
+
id: e.destName,
|
|
48
|
+
checked: o,
|
|
49
|
+
onChange: u,
|
|
50
50
|
type: "checkbox",
|
|
51
|
-
name:
|
|
52
|
-
value:
|
|
51
|
+
name: e.destName,
|
|
52
|
+
value: e.destName
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
/* @__PURE__ */ t("div", { className: _.destination, children: [
|
|
56
|
+
(e == null ? void 0 : e.color) && /* @__PURE__ */ r("span", { style: { background: (e == null ? void 0 : e.color) ?? "" } }),
|
|
57
|
+
e.destName
|
|
58
58
|
] }),
|
|
59
|
-
|
|
59
|
+
l.map((s, z) => /* @__PURE__ */ t(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
|
-
className:
|
|
62
|
+
className: _.routeWrapper,
|
|
63
63
|
children: [
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */
|
|
64
|
+
s.type,
|
|
65
|
+
/* @__PURE__ */ r("div", { className: _.routeText, children: s.text })
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
z
|
|
69
69
|
))
|
|
70
70
|
]
|
|
71
71
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TOption } from '../../Select/ui/Select.types';
|
|
2
|
+
|
|
2
3
|
interface IuseFilterWithSave {
|
|
3
4
|
selectOptions?: TOption[];
|
|
4
5
|
disabledOptions?: TOption[];
|
|
@@ -38,6 +39,6 @@ export declare const useFilterWithSave: ({ selectedTabs, selectedValues, onClick
|
|
|
38
39
|
value: string;
|
|
39
40
|
state: boolean;
|
|
40
41
|
}[]>>;
|
|
41
|
-
containerRef: import('react').
|
|
42
|
+
containerRef: import('react').MutableRefObject<HTMLDivElement | null>;
|
|
42
43
|
};
|
|
43
44
|
export {};
|