stone-kit 0.0.1028 → 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 +1 -1
- package/dist/FilterWithSave-BWA01WwU.js +2476 -0
- package/dist/{Menu-CdJTzN7T.js → Menu-CeBSiTyP.js} +176 -157
- package/dist/{Option-rFBMQAPk.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 +1 -0
- 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 -328
- 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 -1430
- 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 +304 -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 +3 -3
- 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 +2 -1
- 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 +13 -7
- package/dist/components/TabSelect/ui/TabSelect.js +42 -37
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +5 -3
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -118
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +2 -1
- 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 +9 -0
- package/dist/components/TextArea/TextArea.js +18 -12
- 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-CBdtKu-u.js → index-DmANy9jd.js} +271 -272
- package/dist/{index-3E04UaC2.js → index-DvCs2JPX.js} +9629 -9529
- 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 +24 -2
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +63 -57
- 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 +22 -31
- package/dist/ButtonState.module-DtW3aevR.js +0 -8
- package/dist/components/TextArea/TextArea.types.d.ts +0 -10
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/index-B2JRaoNz.js +0 -48
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -6
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
- package/dist/stone-kit.css +0 -1
- package/dist/useLotCard-DG9doKCX.js +0 -186
- package/dist/useSortSelect-C72ddcYI.js +0 -80
package/dist/Router.js
CHANGED
|
@@ -11,7 +11,7 @@ import f from "./pages/FormsPage/FormsPage.js";
|
|
|
11
11
|
import { LogoPage as g } from "./pages/LogoPage/LogoPage.js";
|
|
12
12
|
import { InputPage as h } from "./pages/InputPage/InputPage.js";
|
|
13
13
|
import { CheckBoxPage as P } from "./pages/CheckboxPage/CheckboxPage.js";
|
|
14
|
-
import { R as c, a as t } from "./index-
|
|
14
|
+
import { R as c, a as t } from "./index-DmANy9jd.js";
|
|
15
15
|
const H = () => /* @__PURE__ */ o(c, { children: [
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
t,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './Button.types';
|
|
3
|
+
|
|
3
4
|
export declare const Button: ({ size, size_m, size_l, onCLick, pre, children, post, variant, width, additionalClass, isLoading, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as m, Fragment as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as k } from "../../../index-
|
|
2
|
+
import { c as k } from "../../../index-rKuIKazb.js";
|
|
3
3
|
import { NewIcon as y } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
const w = "_btnCommon_1n16j_1", f = "_btnLoading_1n16j_20", C = "_pre_1n16j_24", N = "_post_1n16j_25", p = "_isHidden_1n16j_29", v = "_blue_1n16j_73", H = "_lightBlue_1n16j_87", S = "_sokolniki_1n16j_102", B = "_black_1n16j_116", L = "_gray_1n16j_130", $ = "_whiteStroke_1n16j_144", x = "_whiteFilled_1n16j_156", F = "_shade_1n16j_170", I = "_transparent_1n16j_176", q = "_volodiyaLight_1n16j_197", A = "_loader_1n16j_203", D = "_LoaderSpin_1n16j_1", e = {
|
|
5
5
|
btnCommon: w,
|
|
@@ -30,7 +30,7 @@ const p = "_checkbox_vuhc0_1", $ = "_checkbox__text_vuhc0_5", I = "_checkbox__el
|
|
|
30
30
|
}, d) => {
|
|
31
31
|
const z = m.map((f) => e[f]).filter(Boolean).join(" ");
|
|
32
32
|
let o = "", c = "20";
|
|
33
|
-
return u ? (o = e["large-size"], c = "20") : k ? (o = e["small-size"], c = "12") : (o = e["medium-size"], c = "16"), /* @__PURE__ */ i(
|
|
33
|
+
return u ? (o = e["large-size"] || "", c = "20") : k ? (o = e["small-size"] || "", c = "12") : (o = e["medium-size"] || "", c = "16"), /* @__PURE__ */ i(
|
|
34
34
|
"label",
|
|
35
35
|
{
|
|
36
36
|
className: `
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { NewIcon as
|
|
6
|
-
const
|
|
7
|
-
checkboxLabel:
|
|
8
|
-
labelText:
|
|
9
|
-
labelTextModal:
|
|
2
|
+
import { Input as m } from "../Input/ui/Input.js";
|
|
3
|
+
import { c as h } from "../../index-rKuIKazb.js";
|
|
4
|
+
import { forwardRef as d } from "react";
|
|
5
|
+
import { NewIcon as i } from "../NewIcon/ui/NewIcon.js";
|
|
6
|
+
const k = "_checkboxLabel_115at_1", T = "_labelText_115at_36", p = "_labelTextModal_115at_44", f = "_error_115at_49", I = "_checkIcon_115at_58", e = {
|
|
7
|
+
checkboxLabel: k,
|
|
8
|
+
labelText: T,
|
|
9
|
+
labelTextModal: p,
|
|
10
10
|
error: f,
|
|
11
|
-
checkIcon:
|
|
12
|
-
}, t =
|
|
13
|
-
({ text: c, isChecked:
|
|
11
|
+
checkIcon: I
|
|
12
|
+
}, t = h.bind(e), B = d(
|
|
13
|
+
({ text: c, isChecked: a, error: l, children: n, emitIsChecked: r, modalFontSize: s, ...b }, x) => /* @__PURE__ */ _("label", { className: t(e.checkboxLabel, { [e.error]: l }), children: [
|
|
14
14
|
/* @__PURE__ */ o(
|
|
15
|
-
|
|
15
|
+
m,
|
|
16
16
|
{
|
|
17
17
|
type: "checkbox",
|
|
18
18
|
...b,
|
|
19
|
-
onChange: () =>
|
|
19
|
+
onChange: () => r && r(!a),
|
|
20
20
|
ref: x
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
a && /* @__PURE__ */ o(
|
|
24
|
+
i,
|
|
25
25
|
{
|
|
26
26
|
additionalClass: e.checkIcon,
|
|
27
27
|
color: "#B1B5C3",
|
|
@@ -33,7 +33,7 @@ const i = "_checkboxLabel_14vcp_1", k = "_labelText_14vcp_36", T = "_labelTextMo
|
|
|
33
33
|
/* @__PURE__ */ o(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
|
-
className: t(e.labelText, { [e.labelTextModal]: s }, { [e.error]:
|
|
36
|
+
className: t(e.labelText, { [e.labelTextModal]: s }, { [e.error]: l }),
|
|
37
37
|
dangerouslySetInnerHTML: c ? { __html: c } : void 0,
|
|
38
38
|
children: n
|
|
39
39
|
}
|
|
@@ -41,5 +41,5 @@ const i = "_checkboxLabel_14vcp_1", k = "_labelText_14vcp_36", T = "_labelTextMo
|
|
|
41
41
|
] })
|
|
42
42
|
);
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
B as CheckBoxNew
|
|
45
45
|
};
|
|
@@ -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;
|