stone-kit 0.0.1030 → 0.0.1031
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,142 +1,142 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { NewIcon as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
iconsWrapper:
|
|
7
|
-
metroColor:
|
|
8
|
-
route:
|
|
9
|
-
auto:
|
|
10
|
-
full:
|
|
11
|
-
transparent:
|
|
12
|
-
long:
|
|
13
|
-
mini:
|
|
14
|
-
metroColorMini:
|
|
15
|
-
routeMini:
|
|
16
|
-
withBg:
|
|
17
|
-
withWhiteBg:
|
|
18
|
-
},
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as M } from "../../../index-B2JRaoNz.js";
|
|
3
|
+
import { NewIcon as l } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", z = "_withWhiteBg_16fjr_94", o = {
|
|
5
|
+
root: w,
|
|
6
|
+
iconsWrapper: N,
|
|
7
|
+
metroColor: W,
|
|
8
|
+
route: x,
|
|
9
|
+
auto: B,
|
|
10
|
+
full: T,
|
|
11
|
+
transparent: $,
|
|
12
|
+
long: C,
|
|
13
|
+
mini: b,
|
|
14
|
+
metroColorMini: v,
|
|
15
|
+
routeMini: y,
|
|
16
|
+
withBg: I,
|
|
17
|
+
withWhiteBg: z
|
|
18
|
+
}, c = M.bind(o), A = ({
|
|
19
19
|
addClassName: a,
|
|
20
20
|
addClassNameColor: _,
|
|
21
|
-
addClassNameTimeTo:
|
|
22
|
-
metro:
|
|
23
|
-
separatorColor:
|
|
21
|
+
addClassNameTimeTo: g,
|
|
22
|
+
metro: r,
|
|
23
|
+
separatorColor: j = "#F4F5F6",
|
|
24
24
|
width: u = "auto",
|
|
25
|
-
variant:
|
|
25
|
+
variant: s = "default",
|
|
26
26
|
isBetween: f = !1,
|
|
27
27
|
withBg: d = !1,
|
|
28
|
-
withWhiteBg:
|
|
29
|
-
...
|
|
28
|
+
withWhiteBg: m = !1,
|
|
29
|
+
...p
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
return Array.isArray(
|
|
31
|
+
const h = ["pedestrian", "auto"];
|
|
32
|
+
return Array.isArray(r) ? /* @__PURE__ */ e(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
className: c(
|
|
36
|
+
o.root,
|
|
37
|
+
o[s],
|
|
38
|
+
o[f ? "long" : ""],
|
|
39
|
+
o[d ? "withBg" : ""],
|
|
40
|
+
o[m ? "withWhiteBg" : ""],
|
|
41
41
|
a,
|
|
42
|
-
|
|
42
|
+
o[u]
|
|
43
43
|
),
|
|
44
|
-
...
|
|
44
|
+
...p,
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ e("div", { className: c(o.metroColor, _), children: [
|
|
47
|
+
/* @__PURE__ */ i("div", { className: o.iconsWrapper, children: r.map((n, t) => n.icon ? /* @__PURE__ */ i(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
|
-
className:
|
|
51
|
-
children:
|
|
52
|
-
|
|
50
|
+
className: o.icon,
|
|
51
|
+
children: n?.icon && /* @__PURE__ */ i(
|
|
52
|
+
l,
|
|
53
53
|
{
|
|
54
54
|
size: "20",
|
|
55
|
-
name:
|
|
55
|
+
name: n.icon,
|
|
56
56
|
color: "#777E90"
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
},
|
|
60
|
-
`metro + ${
|
|
61
|
-
) : /* @__PURE__ */
|
|
60
|
+
`metro + ${n.name} + ${t}`
|
|
61
|
+
) : /* @__PURE__ */ i(
|
|
62
62
|
"span",
|
|
63
63
|
{
|
|
64
64
|
style: {
|
|
65
|
-
background:
|
|
66
|
-
border:
|
|
65
|
+
background: n?.color ?? "",
|
|
66
|
+
border: t > 0 ? `1px solid ${j}` : ""
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
`color + ${
|
|
69
|
+
`color + ${n.name} + ${t}`
|
|
70
70
|
)) }),
|
|
71
|
-
|
|
71
|
+
r.map((n) => n.name).join(", ")
|
|
72
72
|
] }),
|
|
73
|
-
|
|
73
|
+
r?.map((n, t) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ e(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
className:
|
|
76
|
+
className: o.route,
|
|
77
77
|
children: [
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
h.includes(n.mode) && /* @__PURE__ */ i(
|
|
79
|
+
l,
|
|
80
80
|
{
|
|
81
81
|
size: "20",
|
|
82
|
-
name:
|
|
82
|
+
name: n.mode,
|
|
83
83
|
color: "#777E90"
|
|
84
84
|
}
|
|
85
85
|
),
|
|
86
|
-
|
|
86
|
+
n.timeTo + " " + (n.selfIconText ?? "мин")
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
`route - ${
|
|
89
|
+
`route - ${n.name} - ${t}`
|
|
90
90
|
))
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
|
-
) : /* @__PURE__ */
|
|
93
|
+
) : /* @__PURE__ */ e(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
|
-
className:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
className: c(
|
|
97
|
+
o.root,
|
|
98
|
+
o[s],
|
|
99
|
+
o[f ? "long" : ""],
|
|
100
|
+
o[d ? "withBg" : ""],
|
|
101
|
+
o[m ? "withWhiteBg" : ""],
|
|
102
102
|
a,
|
|
103
|
-
|
|
103
|
+
o[u]
|
|
104
104
|
),
|
|
105
|
-
...
|
|
105
|
+
...p,
|
|
106
106
|
children: [
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: c(o.metroColor, _, { [o.metroColorMini]: s === "mini" }),
|
|
111
111
|
children: [
|
|
112
|
-
|
|
112
|
+
r?.icon && /* @__PURE__ */ i(
|
|
113
113
|
"img",
|
|
114
114
|
{
|
|
115
|
-
src:
|
|
115
|
+
src: r.icon,
|
|
116
116
|
width: 20,
|
|
117
117
|
height: 20
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
r?.color && !r?.icon && /* @__PURE__ */ i("span", { style: { background: r?.color ?? "" } }),
|
|
121
|
+
r.name
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
r.timeTo && /* @__PURE__ */ e("div", { className: c(o.route, g, { [o.routeMini]: s === "mini" }), children: [
|
|
126
|
+
r.mode && h.includes(r.mode) && /* @__PURE__ */ i(
|
|
127
|
+
l,
|
|
128
128
|
{
|
|
129
129
|
size: "20",
|
|
130
|
-
name:
|
|
130
|
+
name: r.mode,
|
|
131
131
|
color: "#777E90"
|
|
132
132
|
}
|
|
133
133
|
),
|
|
134
|
-
|
|
134
|
+
r.timeTo + " " + (r.selfIconText ?? "мин")
|
|
135
135
|
] })
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
};
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
A as MetroTag
|
|
142
142
|
};
|
|
@@ -1,76 +1,73 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const N = "_root_1vbbc_11", C = "_modalBody_1vbbc_25", L = "_modalOverlay_1vbbc_30", x = "_isTransparentBack_1vbbc_41",
|
|
1
|
+
import { jsxs as $, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as k } from "react";
|
|
3
|
+
import { createPortal as p } from "react-dom";
|
|
4
|
+
const N = "_root_1vbbc_11", C = "_modalBody_1vbbc_25", L = "_modalOverlay_1vbbc_30", x = "_isTransparentBack_1vbbc_41", s = {
|
|
5
5
|
root: N,
|
|
6
6
|
modalBody: C,
|
|
7
7
|
modalOverlay: L,
|
|
8
|
-
isTransparentBack: x
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
leaveDisableScroll: t = !1,
|
|
8
|
+
isTransparentBack: x
|
|
9
|
+
}, h = ({
|
|
10
|
+
isOpen: e,
|
|
11
|
+
emitIsOpen: t,
|
|
12
|
+
isTransparentBack: d = !1,
|
|
13
|
+
isClickOutside: c = !0,
|
|
14
|
+
leaveDisableScroll: n = !1,
|
|
16
15
|
createPortalObj: o,
|
|
17
16
|
additionalClass: i,
|
|
18
17
|
additionalClassOverlay: m,
|
|
19
18
|
additionalClassModalBody: f,
|
|
20
19
|
opacity: u = 0.7,
|
|
21
20
|
colorOverlay: l,
|
|
22
|
-
notDisableScroll:
|
|
23
|
-
children:
|
|
24
|
-
modalBodyRef:
|
|
25
|
-
additionalStylesModalBody:
|
|
21
|
+
notDisableScroll: y = !1,
|
|
22
|
+
children: b,
|
|
23
|
+
modalBodyRef: v,
|
|
24
|
+
additionalStylesModalBody: _
|
|
26
25
|
}) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
const B = () => {
|
|
27
|
+
c && t(!1);
|
|
29
28
|
};
|
|
30
|
-
|
|
31
|
-
if (!
|
|
32
|
-
if (
|
|
33
|
-
if (document.body.classList.contains("disable-scroll"))
|
|
34
|
-
return;
|
|
29
|
+
k(() => {
|
|
30
|
+
if (!y) {
|
|
31
|
+
if (e) {
|
|
32
|
+
if (document.body.classList.contains("disable-scroll")) return;
|
|
35
33
|
document.body.classList.add("disable-scroll");
|
|
36
34
|
} else {
|
|
37
|
-
if (
|
|
38
|
-
return;
|
|
35
|
+
if (n) return;
|
|
39
36
|
document.body.classList.remove("disable-scroll");
|
|
40
37
|
}
|
|
41
38
|
return () => document.body.classList.remove("disable-scroll");
|
|
42
39
|
}
|
|
43
|
-
}, [
|
|
44
|
-
const
|
|
40
|
+
}, [e]);
|
|
41
|
+
const a = /* @__PURE__ */ $(
|
|
45
42
|
"div",
|
|
46
43
|
{
|
|
47
44
|
className: `${s.root} ${i}`,
|
|
48
45
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ r(
|
|
50
47
|
"div",
|
|
51
48
|
{
|
|
52
|
-
onClick:
|
|
53
|
-
className: `${s.modalOverlay} ${m} ${
|
|
49
|
+
onClick: B,
|
|
50
|
+
className: `${s.modalOverlay} ${m} ${d ? s.isTransparentBack : ""}`,
|
|
54
51
|
style: {
|
|
55
|
-
opacity:
|
|
52
|
+
opacity: d ? u : void 0,
|
|
56
53
|
backgroundColor: l || void 0
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
),
|
|
60
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ r(
|
|
61
58
|
"div",
|
|
62
59
|
{
|
|
63
60
|
className: `${s.modalBody} ${f}`,
|
|
64
|
-
ref:
|
|
65
|
-
style:
|
|
66
|
-
children:
|
|
61
|
+
ref: v,
|
|
62
|
+
style: _,
|
|
63
|
+
children: b
|
|
67
64
|
}
|
|
68
65
|
)
|
|
69
66
|
]
|
|
70
67
|
}
|
|
71
68
|
);
|
|
72
|
-
return
|
|
69
|
+
return e ? o?.domNode && o.domNode.isConnected ? p(a, o.domNode, o.key) : a : null;
|
|
73
70
|
};
|
|
74
71
|
export {
|
|
75
|
-
|
|
72
|
+
h as Modal
|
|
76
73
|
};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { Modal as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
modal:
|
|
1
|
+
import { jsx as c, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as l } from "../Modal/ui/Modal.js";
|
|
3
|
+
import { NewIcon as i } from "../NewIcon/ui/NewIcon.js";
|
|
4
|
+
import { Button as d } from "../Button/ui/Button.js";
|
|
5
|
+
const n = "_modal_1og3m_1", m = "_modalBody_1og3m_9", r = "_root_1og3m_14", _ = "_check_1og3m_26", h = "_iconCircle_1og3m_32", C = "_iconCheck_1og3m_38", u = "_text_1og3m_44", k = "_successTitle_1og3m_52", o = {
|
|
6
|
+
modal: n,
|
|
7
7
|
modalBody: m,
|
|
8
8
|
root: r,
|
|
9
9
|
check: _,
|
|
10
10
|
iconCircle: h,
|
|
11
11
|
iconCheck: C,
|
|
12
12
|
text: u,
|
|
13
|
-
successTitle: k
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
a,
|
|
13
|
+
successTitle: k
|
|
14
|
+
}, y = ({ isSuccessOpen: t, setIsSuccess: e, createPortalObj: a }) => /* @__PURE__ */ c(
|
|
15
|
+
l,
|
|
17
16
|
{
|
|
18
|
-
createPortalObj:
|
|
17
|
+
createPortalObj: a,
|
|
19
18
|
emitIsOpen: e,
|
|
20
|
-
isOpen:
|
|
19
|
+
isOpen: t,
|
|
21
20
|
additionalClassModalBody: o.modalBody,
|
|
22
21
|
additionalClass: o.modal,
|
|
23
22
|
opacity: 0.7,
|
|
24
23
|
isTransparentBack: !0,
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ c(
|
|
24
|
+
children: /* @__PURE__ */ s("div", { className: o.root, children: [
|
|
25
|
+
/* @__PURE__ */ s("div", { className: o.check, children: [
|
|
26
|
+
/* @__PURE__ */ c(i, { name: "circle", size: "80", additionalClass: o.iconCircle, color: "#57C27D" }),
|
|
28
27
|
/* @__PURE__ */ c(
|
|
29
|
-
|
|
28
|
+
i,
|
|
30
29
|
{
|
|
31
30
|
additionalClass: o.iconCheck,
|
|
32
31
|
size: "32",
|
|
@@ -35,12 +34,12 @@ const d = "_modal_1og3m_1", m = "_modalBody_1og3m_9", r = "_root_1og3m_14", _ =
|
|
|
35
34
|
}
|
|
36
35
|
)
|
|
37
36
|
] }),
|
|
38
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ s("div", { className: o.text, children: [
|
|
39
38
|
/* @__PURE__ */ c("div", { className: o.successTitle, children: "Запрос принят" }),
|
|
40
39
|
/* @__PURE__ */ c("div", { className: o.successText, children: "Наш менеджер свяжется с вами в ближайшее время" })
|
|
41
40
|
] }),
|
|
42
41
|
/* @__PURE__ */ c(
|
|
43
|
-
|
|
42
|
+
d,
|
|
44
43
|
{
|
|
45
44
|
"data-testid": "modal_submit",
|
|
46
45
|
variant: "blue",
|
|
@@ -57,5 +56,5 @@ const d = "_modal_1og3m_1", m = "_modalBody_1og3m_9", r = "_root_1og3m_14", _ =
|
|
|
57
56
|
}
|
|
58
57
|
);
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
y as ModalSuccess
|
|
61
60
|
};
|
|
@@ -3,7 +3,7 @@ import * as e from "react";
|
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
4
|
import { F as m } from "../../../PinTrans-D6OZq76b.js";
|
|
5
5
|
import { F as h } from "../../../SmallFilter-C-VKnbkP.js";
|
|
6
|
-
import { c as d } from "../../../index-
|
|
6
|
+
import { c as d } from "../../../index-B2JRaoNz.js";
|
|
7
7
|
const C = ({
|
|
8
8
|
title: t,
|
|
9
9
|
titleId: l,
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { LotCardSkeleton as
|
|
3
|
-
const a = "_root_eu55e_12", s = "_projectHeader_eu55e_20", i = "_projectTitleWrapper_eu55e_28", l = "_projectBtn_eu55e_33",
|
|
2
|
+
import { LotCardSkeleton as p } from "../../LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
3
|
+
const a = "_root_eu55e_12", s = "_projectHeader_eu55e_20", i = "_projectTitleWrapper_eu55e_28", l = "_projectBtn_eu55e_33", j = "_projectTitle_eu55e_28", n = "_projectYearMobile_eu55e_49", _ = "_metroWrapper_eu55e_58", d = "_projectYearDesktop_eu55e_113", e = {
|
|
4
4
|
root: a,
|
|
5
5
|
projectHeader: s,
|
|
6
6
|
projectTitleWrapper: i,
|
|
7
7
|
projectBtn: l,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
projectYearDesktop: u
|
|
14
|
-
}, N = () => {
|
|
8
|
+
projectTitle: j,
|
|
9
|
+
projectYearMobile: n,
|
|
10
|
+
metroWrapper: _,
|
|
11
|
+
projectYearDesktop: d
|
|
12
|
+
}, v = () => {
|
|
15
13
|
const o = [1, 2, 3, 4, 5];
|
|
16
14
|
return /* @__PURE__ */ t("div", { className: e.root, children: [
|
|
17
15
|
/* @__PURE__ */ t("div", { className: e.projectHeader, children: [
|
|
@@ -26,9 +24,9 @@ const a = "_root_eu55e_12", s = "_projectHeader_eu55e_20", i = "_projectTitleWra
|
|
|
26
24
|
] }),
|
|
27
25
|
/* @__PURE__ */ r("div", { className: e.projectYearMobile })
|
|
28
26
|
] }),
|
|
29
|
-
o.map((
|
|
27
|
+
o.map((c) => /* @__PURE__ */ r(p, {}, c))
|
|
30
28
|
] });
|
|
31
29
|
};
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
v as ProjectCardSkeleton
|
|
34
32
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ComponentProps } from './RoundButton.types';
|
|
3
|
-
|
|
4
3
|
export declare const RoundButton: ({ size, size_m, size_l, children, iconName, variant, additionalClass, additionalClassIcon, deg, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as S } from "react";
|
|
3
|
-
import { c as y } from "../../../index-
|
|
4
|
-
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
3
|
+
import { c as y } from "../../../index-B2JRaoNz.js";
|
|
5
4
|
import { sizeMap as i } from "./RoundButton.types.js";
|
|
5
|
+
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
6
6
|
const g = "_btnRound_z7oq7_1", F = "_whiteStroke_z7oq7_43", R = "_whiteFilled_z7oq7_48", $ = "_whiteTransparent_z7oq7_53", v = "_blackFill_z7oq7_58", x = "_blackStroke_z7oq7_63", E = "_fullGray_z7oq7_71", G = "_blue_z7oq7_79", e = {
|
|
7
7
|
btnRound: g,
|
|
8
8
|
"tiny-size": "_tiny-size_z7oq7_20",
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
const
|
|
1
|
+
const v = ({
|
|
2
2
|
option: e,
|
|
3
|
-
setSelectedOptions:
|
|
4
|
-
selectedOptions:
|
|
5
|
-
disabledOptions:
|
|
6
|
-
onChange:
|
|
7
|
-
mode:
|
|
3
|
+
setSelectedOptions: c,
|
|
4
|
+
selectedOptions: i,
|
|
5
|
+
disabledOptions: n,
|
|
6
|
+
onChange: s,
|
|
7
|
+
mode: t,
|
|
8
8
|
optionsParentArr: r
|
|
9
9
|
}) => {
|
|
10
10
|
if (!Array.isArray(e)) {
|
|
11
|
-
if (
|
|
11
|
+
if (n.includes(e))
|
|
12
12
|
return;
|
|
13
|
-
let
|
|
14
|
-
if (
|
|
13
|
+
let u = i.some((l) => l.value === e.value) ? e.value === "selectAll" && r ? [] : i.some((l) => l.value === "selectAll") ? i.filter((l) => l.value !== e.value && l.value !== "selectAll") : i.filter((l) => l.value !== e.value) : e.value === "selectAll" && r ? [...r] : [...i, e];
|
|
14
|
+
if (t === "single") {
|
|
15
15
|
const l = [e];
|
|
16
|
-
|
|
16
|
+
c(l), s && s(l);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
if (
|
|
20
|
-
"options" in e && (
|
|
21
|
-
(
|
|
22
|
-
) : Array.isArray(e.options) && (
|
|
23
|
-
const l = r
|
|
24
|
-
!(l &&
|
|
19
|
+
if (t === "double") {
|
|
20
|
+
"options" in e && (i.map((y) => JSON.stringify(y)).includes(JSON.stringify(e)) ? u = u.filter(
|
|
21
|
+
(y) => !e.options.map((S) => JSON.stringify(S)).includes(JSON.stringify(y))
|
|
22
|
+
) : Array.isArray(e.options) && (u = [...u, ...e.options]));
|
|
23
|
+
const l = r?.filter((a) => "options" in a && a.options.includes(e))[0];
|
|
24
|
+
!(l && i.map((a) => JSON.stringify(a)).includes(JSON.stringify(l))) && l && u.push(l);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
c(u), s && s(u);
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, A = ({
|
|
29
29
|
option: e,
|
|
30
|
-
setSelectedOptions:
|
|
31
|
-
selectedOptions:
|
|
32
|
-
disabledOptions:
|
|
33
|
-
onChange:
|
|
30
|
+
setSelectedOptions: c,
|
|
31
|
+
selectedOptions: i,
|
|
32
|
+
disabledOptions: n,
|
|
33
|
+
onChange: s
|
|
34
34
|
}) => {
|
|
35
35
|
if (Array.isArray(e)) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const r =
|
|
39
|
-
|
|
36
|
+
const t = e.filter((r) => !n?.includes(r));
|
|
37
|
+
if (t.every((r) => i.map((f) => f).includes(r))) {
|
|
38
|
+
const r = i.filter((f) => !e.includes(f));
|
|
39
|
+
c(r), s && s(r);
|
|
40
40
|
} else {
|
|
41
|
-
const r =
|
|
42
|
-
|
|
41
|
+
const r = t.filter((u) => !i.includes(u)), f = [...i, ...r];
|
|
42
|
+
c(f), s && s(f);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
A as handleClickModeCategory,
|
|
48
|
+
v as handleClickModeOption
|
|
49
49
|
};
|