stone-kit 0.0.1030 → 0.0.1032
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/{Menu-CeBSiTyP.js → Menu-CdJTzN7T.js} +157 -176
- package/dist/{Option-DU8cvBnA.js → Option-rFBMQAPk.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.d.ts +0 -1
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/Button/ui/Button.types.d.ts +0 -1
- package/dist/components/CheckBox/CheckBox.d.ts +0 -1
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.types.d.ts +0 -1
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -1
- package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -1
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +0 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +50 -7
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +25 -26
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +98 -27
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +0 -1
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -1
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +0 -1
- package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -2
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +1 -2
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
- package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -1
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +54 -26
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +328 -7
- package/dist/components/Flex/ui/Flex.d.ts +0 -1
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
- package/dist/components/FormModal/ui/ModalForm.js +1430 -28
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
- package/dist/components/Input/ui/Input.d.ts +1 -2
- package/dist/components/Input/ui/Input.js +234 -304
- package/dist/components/Logo/ui/Logo.d.ts +0 -1
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -1
- package/dist/components/LotCard/hooks/useLotCard.js +6 -24
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +0 -1
- package/dist/components/LotCard/ui/LotCard.js +213 -10
- package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -1
- package/dist/components/LotCard/utils/formatPrice.js +1 -2
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +1 -2
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.js +74 -74
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -1
- package/dist/components/Modal/ui/Modal.d.ts +0 -1
- package/dist/components/Modal/ui/Modal.js +34 -37
- package/dist/components/Modal/ui/Modal.types.d.ts +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -1
- package/dist/components/ModalSuccess/ModalSuccess.js +18 -19
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -1
- package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -1
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -1
- package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -1
- package/dist/components/NewIcon/ui/NewIcon.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
- package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -1
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +9 -11
- package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -1
- package/dist/components/RoundButton/ui/RoundButton.js +2 -2
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -1
- package/dist/components/Select/model/selectMode.d.ts +0 -1
- package/dist/components/Select/model/selectMode.js +30 -30
- package/dist/components/Select/ui/Category.d.ts +0 -1
- package/dist/components/Select/ui/Category.js +3 -3
- package/dist/components/Select/ui/Option.d.ts +0 -1
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +0 -1
- package/dist/components/Select/ui/Select.js +115 -115
- package/dist/components/SliderNavigation/index.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -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 +0 -1
- package/dist/components/SortSelect/ui/SortSelect.js +108 -26
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -1
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +0 -1
- package/dist/components/SummarySelect/ui/SummarySelect.js +59 -65
- package/dist/components/Switcher/ui/Switcher.d.ts +0 -1
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -1
- package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -1
- 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 +0 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +120 -26
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -1
- package/dist/components/Tag/ui/Tag.d.ts +0 -1
- package/dist/components/Tag/ui/Tag.js +91 -91
- package/dist/components/Tag/ui/Tag.types.d.ts +0 -1
- package/dist/components/Text/ui/Text.d.ts +0 -1
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/Text/ui/Text.types.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +0 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -1
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
- package/dist/{index-DvCs2JPX.js → index-3E04UaC2.js} +9529 -9629
- package/dist/index-B2JRaoNz.js +48 -0
- package/dist/{index-DmANy9jd.js → index-CBdtKu-u.js} +272 -271
- package/dist/layout/Layout.d.ts +0 -1
- package/dist/layout/components/Header/Header.js +48 -71
- package/dist/layout/components/Menu.js +2 -24
- package/dist/main.js +70 -65
- package/dist/pages/ButtonsPage/Buttons.js +44 -61
- package/dist/pages/FormsPage/FormsPage.js +26 -50
- package/dist/pages/IconsPage/IconsPage.js +9 -31
- package/dist/pages/InputPage/InputPage.js +10 -32
- package/dist/pages/LogoPage/LogoPage.js +13 -35
- package/dist/pages/LotsPage/LotsPage.js +18 -17
- package/dist/pages/LotsPage/const.d.ts +0 -1
- package/dist/pages/ModalsPage/ModalPage.js +46 -66
- package/dist/pages/SelectPage/SelectPage.js +58 -58
- package/dist/pages/TabsPage/TabsPage.js +19 -20
- package/dist/pages/TagsPage/TagsPage.js +23 -44
- package/dist/shared/checkLargeOffice.d.ts +0 -1
- package/dist/shared/checkLargeOffice.js +1 -1
- package/dist/shared/mlnRound.js +1 -2
- package/dist/stone-kit.css +1 -0
- 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/useLotCard-DG9doKCX.js +186 -0
- package/dist/useSortSelect-B8HOGdOt.js +79 -0
- package/package.json +1 -1
- package/dist/FilterWithSave-BWA01WwU.js +0 -2476
- package/dist/index-rKuIKazb.js +0 -45
- package/dist/style.css +0 -1
- package/dist/useSortSelect-BTCEVMVn.js +0 -80
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as O, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "./index-B2JRaoNz.js";
|
|
2
3
|
import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { c as g } from "./index-rKuIKazb.js";
|
|
4
4
|
const C = "_multiSelectWrapper_1vjmo_1", b = "_selectedOptions_1vjmo_8", h = "_selectedText_1vjmo_26", f = "_selectedOptionsBtn_1vjmo_34", k = "_selectedOptionsOpened_1vjmo_60", y = "_selectedOptionsNotEmpty_1vjmo_64", D = "_selectOptionsDisabled_1vjmo_69", x = "_optionsOuterContainer_1vjmo_76", S = "_optionsList_1vjmo_89", B = "_lastList_1vjmo_118", L = "_listRight_1vjmo_123", N = "_inputWrapper_1vjmo_127", W = "_option_1vjmo_76", A = "_category_1vjmo_149", w = "_leftSide_1vjmo_155", E = "_optionCategory_1vjmo_160", R = "_optionDisabled_1vjmo_166", T = "_optionClickable_1vjmo_170", U = "_icon_1vjmo_174", $ = "_iconArrow_1vjmo_180", q = "_iconBtn_1vjmo_186", t = {
|
|
5
5
|
multiSelectWrapper: C,
|
|
6
6
|
selectedOptions: b,
|
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-CBdtKu-u.js";
|
|
15
15
|
const H = () => /* @__PURE__ */ o(c, { children: [
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
t,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './Button.types';
|
|
3
|
-
|
|
4
3
|
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-B2JRaoNz.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"]
|
|
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 { c as m } from "../../index-B2JRaoNz.js";
|
|
3
|
+
import { forwardRef as h } from "react";
|
|
4
|
+
import { Input as p } from "../Input/ui/Input.js";
|
|
5
|
+
import { NewIcon as d } from "../NewIcon/ui/NewIcon.js";
|
|
6
|
+
const i = "_checkboxLabel_14vcp_1", k = "_labelText_14vcp_36", T = "_labelTextModal_14vcp_44", f = "_error_14vcp_49", v = "_checkIcon_14vcp_58", e = {
|
|
7
|
+
checkboxLabel: i,
|
|
8
|
+
labelText: k,
|
|
9
|
+
labelTextModal: T,
|
|
10
10
|
error: f,
|
|
11
|
-
checkIcon:
|
|
12
|
-
}, t =
|
|
13
|
-
({ text: c, isChecked:
|
|
11
|
+
checkIcon: v
|
|
12
|
+
}, t = m.bind(e), w = h(
|
|
13
|
+
({ text: c, isChecked: l, error: r, children: n, emitIsChecked: a, modalFontSize: s, ...b }, x) => /* @__PURE__ */ _("label", { className: t(e.checkboxLabel, { [e.error]: r }), children: [
|
|
14
14
|
/* @__PURE__ */ o(
|
|
15
|
-
|
|
15
|
+
p,
|
|
16
16
|
{
|
|
17
17
|
type: "checkbox",
|
|
18
18
|
...b,
|
|
19
|
-
onChange: () =>
|
|
19
|
+
onChange: () => a && a(!l),
|
|
20
20
|
ref: x
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
l && /* @__PURE__ */ o(
|
|
24
|
+
d,
|
|
25
25
|
{
|
|
26
26
|
additionalClass: e.checkIcon,
|
|
27
27
|
color: "#B1B5C3",
|
|
@@ -33,7 +33,7 @@ const k = "_checkboxLabel_115at_1", T = "_labelText_115at_36", p = "_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]: r }),
|
|
37
37
|
dangerouslySetInnerHTML: c ? { __html: c } : void 0,
|
|
38
38
|
children: n
|
|
39
39
|
}
|
|
@@ -41,5 +41,5 @@ const k = "_checkboxLabel_115at_1", T = "_labelText_115at_36", p = "_labelTextMo
|
|
|
41
41
|
] })
|
|
42
42
|
);
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
w 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 o, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as h } from "../../../index-B2JRaoNz.js";
|
|
3
|
+
const _ = "_root_19qpl_1", b = "_nameWrapper_19qpl_8", d = "_large_19qpl_18", x = "_clearBtn_19qpl_25", k = "_checkboxWrapper_19qpl_40", m = "_checkboxItem_19qpl_46", I = "_checkboxItemActive_19qpl_64", q = "_checkboxItemDisabled_19qpl_76", v = "_checkBoxLarge_19qpl_81", e = {
|
|
4
|
+
root: _,
|
|
5
|
+
nameWrapper: b,
|
|
6
|
+
large: d,
|
|
7
|
+
clearBtn: x,
|
|
8
|
+
checkboxWrapper: k,
|
|
9
|
+
checkboxItem: m,
|
|
10
|
+
checkboxItemActive: I,
|
|
11
|
+
checkboxItemDisabled: q,
|
|
12
|
+
checkBoxLarge: v
|
|
13
|
+
}, l = h.bind(e), W = ({
|
|
14
14
|
label: s = "Тип квартиры",
|
|
15
|
-
checkboxes:
|
|
16
|
-
addClassname:
|
|
15
|
+
checkboxes: r,
|
|
16
|
+
addClassname: n,
|
|
17
17
|
isNeedClear: p = !0,
|
|
18
|
-
isPromotion:
|
|
18
|
+
isPromotion: t
|
|
19
19
|
}) => {
|
|
20
20
|
const i = () => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
r?.forEach((c) => {
|
|
22
|
+
c?.isSelected && c?.setValue();
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
p && /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ o("div", { className: l(e.root, n), children: [
|
|
26
|
+
/* @__PURE__ */ o("div", { className: l(e.nameWrapper, { [e.large]: t }), children: [
|
|
27
|
+
/* @__PURE__ */ a("div", { children: s }),
|
|
28
|
+
p && /* @__PURE__ */ a(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
31
|
+
className: e.clearBtn,
|
|
32
32
|
onClick: i,
|
|
33
33
|
children: "Очистить"
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ a("div", { className: e.checkboxWrapper, children: r?.map((c) => /* @__PURE__ */ a(
|
|
38
38
|
"button",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
41
|
-
|
|
42
|
-
{ [
|
|
43
|
-
{ [
|
|
44
|
-
{ [
|
|
40
|
+
className: l(
|
|
41
|
+
e.checkboxItem,
|
|
42
|
+
{ [e.checkboxItemActive]: c?.isSelected },
|
|
43
|
+
{ [e.checkboxItemDisabled]: c?.disabled },
|
|
44
|
+
{ [e.checkBoxLarge]: t }
|
|
45
45
|
),
|
|
46
|
-
onClick: () =>
|
|
47
|
-
disabled:
|
|
48
|
-
children:
|
|
46
|
+
onClick: () => c?.setValue(),
|
|
47
|
+
disabled: c?.disabled,
|
|
48
|
+
children: c?.label
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
c?.label
|
|
51
51
|
)) })
|
|
52
52
|
] });
|
|
53
53
|
};
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
W as CheckboxSelect
|
|
56
56
|
};
|
|
@@ -1,9 +1,52 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import "../../shared/fmtNumber.js";
|
|
4
|
-
import "./components/Price/Price.js";
|
|
5
|
-
import {
|
|
6
|
-
import "./components/Tags/Tags.js";
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../index-B2JRaoNz.js";
|
|
3
|
+
import { fmtNumber as w } from "../../shared/fmtNumber.js";
|
|
4
|
+
import { Price as W } from "./components/Price/Price.js";
|
|
5
|
+
import { Snippets as f } from "./components/Snippets/Snippets.js";
|
|
6
|
+
import { Tags as u } from "./components/Tags/Tags.js";
|
|
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
|
+
};
|
|
7
50
|
export {
|
|
8
|
-
|
|
51
|
+
L as CommercialLotCard
|
|
9
52
|
};
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as P } from "../../../../index-B2JRaoNz.js";
|
|
3
|
+
import { formatPrice as g } from "../../utils/formatPrice.js";
|
|
3
4
|
import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, V = g.bind(r), T = ({ lot: s, onPriceClickHandler: t, isVertical: m }) => {
|
|
11
|
-
var l;
|
|
5
|
+
const N = "_root_z3d8u_1", w = "_price_z3d8u_7", z = "_paymentWrapper_z3d8u_19", b = "_rootVertical_z3d8u_36", r = {
|
|
6
|
+
root: N,
|
|
7
|
+
price: w,
|
|
8
|
+
paymentWrapper: z,
|
|
9
|
+
rootVertical: b
|
|
10
|
+
}, x = P.bind(r), B = ({ lot: i, onPriceClickHandler: s, isVertical: p }) => {
|
|
12
11
|
const {
|
|
13
|
-
project:
|
|
14
|
-
sellingPriceBeforeDiscount:
|
|
15
|
-
showPriceFlg:
|
|
16
|
-
direction:
|
|
17
|
-
specialProgram:
|
|
18
|
-
sellingPrice:
|
|
19
|
-
} =
|
|
20
|
-
return /* @__PURE__ */ o("div", { className:
|
|
21
|
-
|
|
12
|
+
project: l,
|
|
13
|
+
sellingPriceBeforeDiscount: m,
|
|
14
|
+
showPriceFlg: d,
|
|
15
|
+
direction: _,
|
|
16
|
+
specialProgram: f,
|
|
17
|
+
sellingPrice: h
|
|
18
|
+
} = i || {}, u = !!l?.showPriceSubType?.some((e) => Number(e.filter) === i.subType), t = !!f, a = m ?? h, n = a && d && !t && u;
|
|
19
|
+
return /* @__PURE__ */ o("div", { className: x(r.root, { [r.rootVertical]: p }), children: [
|
|
20
|
+
n && /* @__PURE__ */ o("p", { className: r.price, children: [
|
|
22
21
|
" ",
|
|
23
|
-
|
|
22
|
+
g(a, !1, _)
|
|
24
23
|
] }),
|
|
25
|
-
!
|
|
24
|
+
!n && /* @__PURE__ */ o(
|
|
26
25
|
"p",
|
|
27
26
|
{
|
|
28
27
|
className: r.price,
|
|
29
28
|
onClick: (e) => {
|
|
30
|
-
e.preventDefault(), e.stopPropagation(),
|
|
29
|
+
e.preventDefault(), e.stopPropagation(), s && s();
|
|
31
30
|
},
|
|
32
31
|
children: [
|
|
33
32
|
"Цена ",
|
|
34
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ c("span", { children: "по запросу" })
|
|
35
34
|
]
|
|
36
35
|
}
|
|
37
36
|
),
|
|
38
37
|
/* @__PURE__ */ o("div", { className: r.paymentWrapper, children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ c("span", { children: t ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
|
|
39
|
+
/* @__PURE__ */ c(
|
|
41
40
|
y,
|
|
42
41
|
{
|
|
43
42
|
name: "arrowRight",
|
|
@@ -48,5 +47,5 @@ const w = "_root_z3d8u_1", z = "_price_z3d8u_7", b = "_paymentWrapper_z3d8u_19",
|
|
|
48
47
|
] });
|
|
49
48
|
};
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
B as Price
|
|
52
51
|
};
|
|
@@ -1,29 +1,100 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
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
|
-
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A } from "react";
|
|
3
|
+
import { getTagsFeatures as B } from "../../utils/getTagsFeatures.js";
|
|
4
|
+
import { c as I } from "../../../../index-B2JRaoNz.js";
|
|
5
|
+
import { useClientWidth as k } from "../../../../shared/useClientWidth.js";
|
|
6
|
+
import { NewIcon as C } from "../../../NewIcon/ui/NewIcon.js";
|
|
7
|
+
const M = "_snippet_1vgdm_1", W = "_snippetLast_1vgdm_9", j = "_snippets_1vgdm_25", D = "_retailSnippets_1vgdm_30", E = "_shownSnippets_1vgdm_35", F = "_addSnippets_1vgdm_64", T = "_addSnippetsActive_1vgdm_80", V = "_addSnippetsList_1vgdm_85", y = "_closeSnippetBtn_1vgdm_129", t = {
|
|
8
|
+
snippet: M,
|
|
9
|
+
snippetLast: W,
|
|
10
|
+
snippets: j,
|
|
11
|
+
retailSnippets: D,
|
|
12
|
+
shownSnippets: E,
|
|
13
|
+
addSnippets: F,
|
|
14
|
+
addSnippetsActive: T,
|
|
15
|
+
addSnippetsList: V,
|
|
16
|
+
closeSnippetBtn: y
|
|
17
|
+
}, L = I.bind(t), K = ({ lot: g }) => {
|
|
18
|
+
const { type: w, windowViews: c, isCorner: N } = g || {}, [u, h] = A(!1), S = B({ ...g }), { isDesktop: r, isMobile: x } = k();
|
|
19
|
+
if (w === 3) {
|
|
20
|
+
if (x && (!c || c.length === 0))
|
|
21
|
+
return null;
|
|
22
|
+
let l = 0;
|
|
23
|
+
const i = r ? 36 : 28, n = [], d = [];
|
|
24
|
+
if (N) {
|
|
25
|
+
const e = "Угловая";
|
|
26
|
+
if (l + e.length <= i)
|
|
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
|
+
};
|
|
27
98
|
export {
|
|
28
|
-
|
|
99
|
+
K as Snippets
|
|
29
100
|
};
|
|
@@ -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 i } from "react/jsx-runtime";
|
|
2
|
+
import { Tag as n } from "../../../Tag/ui/Tag.js";
|
|
3
|
+
const p = "_root_xiuq1_1", x = {
|
|
4
|
+
root: p
|
|
5
|
+
}, m = ({ lot: g }) => {
|
|
6
|
+
const { housing: s, floor: r, endFloor: t, floorsNumber: o, type: d, project: e } = g || {}, a = d === 11, c = r && o ? (t && t !== r ? r + "-" + t : r) + " этаж из " + o : "", l = () => a ? o ? "Кол-во этажей: " + o : "" : c || "";
|
|
7
|
+
return /* @__PURE__ */ u("div", { className: x.root, children: [
|
|
8
|
+
e?.buildingYear && /* @__PURE__ */ i(
|
|
9
|
+
n,
|
|
10
10
|
{
|
|
11
11
|
variant: "gray",
|
|
12
12
|
size: "tiny-12px",
|
|
13
|
-
children:
|
|
13
|
+
children: e.buildingYear
|
|
14
14
|
}
|
|
15
15
|
),
|
|
16
|
-
!a &&
|
|
17
|
-
|
|
16
|
+
!a && s && /* @__PURE__ */ i(
|
|
17
|
+
n,
|
|
18
18
|
{
|
|
19
19
|
variant: "gray",
|
|
20
20
|
size: "tiny-12px",
|
|
21
|
-
children:
|
|
21
|
+
children: s
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
l() && /* @__PURE__ */ i(
|
|
25
|
+
n,
|
|
26
26
|
{
|
|
27
27
|
variant: "gray",
|
|
28
28
|
size: "tiny-12px",
|
|
29
|
-
children:
|
|
29
|
+
children: l()
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] });
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
m as Tags
|
|
36
36
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ILot } from '../types/LotCard';
|
|
2
|
-
|
|
3
|
-
export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, 'loggia' | 'isDoubleLevel' | 'isPenthouse' | 'terrace' | 'isCorner' | 'cornerKitchenLiving'>) => {
|
|
2
|
+
export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, "loggia" | "isDoubleLevel" | "isPenthouse" | "terrace" | "isCorner" | "cornerKitchenLiving">) => {
|
|
4
3
|
text: string;
|
|
5
4
|
}[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './DestinationTab.types';
|
|
3
|
-
|
|
4
3
|
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;
|