stone-kit 0.0.1027 → 0.0.1029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +4 -4
- package/dist/{Option-DU8cvBnA.js → Option-CtwUzW8a.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- 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 -2
- 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 +1 -2
- 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 +323 -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 +1445 -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 -325
- 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 +43 -33
- 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 +1 -2
- 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 +12 -8
- 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 +4 -4
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +120 -26
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -2
- 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 +8 -0
- package/dist/components/TextArea/TextArea.js +18 -12
- 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-BJwl9stn.js} +9596 -9695
- package/dist/index-YnD2EP-S.js +43 -0
- package/dist/layout/Layout.d.ts +0 -1
- package/dist/layout/components/Header/Header.js +48 -71
- package/dist/layout/components/Menu.js +107 -26
- package/dist/main.js +70 -65
- package/dist/pages/ButtonsPage/Buttons.js +49 -77
- 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-CYcRSogE.js +186 -0
- package/dist/useSortSelect-Cy3od4ig.js +80 -0
- package/package.json +22 -31
- package/dist/ButtonState.module-DtW3aevR.js +0 -8
- package/dist/FilterWithSave-DkVYQ7W8.js +0 -2473
- package/dist/Menu-DKuZheFD.js +0 -513
- package/dist/components/TextArea/TextArea.types.d.ts +0 -11
- package/dist/components/TextArea/TextArea.types.js +0 -1
- package/dist/index-DmANy9jd.js +0 -890
- package/dist/index-rKuIKazb.js +0 -45
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -7
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +0 -121
- package/dist/style.css +0 -1
- package/dist/useSortSelect-CjZXLFOG.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-YnD2EP-S.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
|
};
|