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.
Files changed (172) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/{Menu-CeBSiTyP.js → Menu-CdJTzN7T.js} +157 -176
  3. package/dist/{Option-DU8cvBnA.js → Option-rFBMQAPk.js} +1 -1
  4. package/dist/Router.js +1 -1
  5. package/dist/components/Button/ui/Button.d.ts +0 -1
  6. package/dist/components/Button/ui/Button.js +1 -1
  7. package/dist/components/Button/ui/Button.types.d.ts +0 -1
  8. package/dist/components/CheckBox/CheckBox.d.ts +0 -1
  9. package/dist/components/CheckBox/CheckBox.js +1 -1
  10. package/dist/components/CheckBox/CheckBox.types.d.ts +0 -1
  11. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -1
  12. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -1
  13. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  14. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -1
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  16. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +0 -1
  17. package/dist/components/CommercialLotCard/CommercialLotCard.js +50 -7
  18. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +0 -1
  19. package/dist/components/CommercialLotCard/components/Price/Price.js +25 -26
  20. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +0 -1
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +98 -27
  22. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +0 -1
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  24. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -1
  25. package/dist/components/CommercialLotCard/types/LotCard.d.ts +0 -1
  26. package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -2
  27. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +1 -2
  28. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  30. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
  31. package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -1
  32. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -1
  33. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -1
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +54 -26
  35. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -1
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.js +328 -7
  37. package/dist/components/Flex/ui/Flex.d.ts +0 -1
  38. package/dist/components/Flex/ui/Flex.js +1 -1
  39. package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
  40. package/dist/components/FormModal/ui/ModalForm.js +1430 -28
  41. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
  42. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  43. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
  44. package/dist/components/Input/ui/Input.d.ts +1 -2
  45. package/dist/components/Input/ui/Input.js +234 -304
  46. package/dist/components/Logo/ui/Logo.d.ts +0 -1
  47. package/dist/components/Logo/ui/Logo.js +6 -6
  48. package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -1
  49. package/dist/components/LotCard/hooks/useLotCard.js +6 -24
  50. package/dist/components/LotCard/index.js +2 -2
  51. package/dist/components/LotCard/ui/LotCard.d.ts +0 -1
  52. package/dist/components/LotCard/ui/LotCard.js +213 -10
  53. package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -1
  54. package/dist/components/LotCard/utils/formatPrice.js +1 -2
  55. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +1 -2
  56. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  57. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  59. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
  60. package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -1
  61. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  62. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -1
  63. package/dist/components/Modal/ui/Modal.d.ts +0 -1
  64. package/dist/components/Modal/ui/Modal.js +34 -37
  65. package/dist/components/Modal/ui/Modal.types.d.ts +0 -1
  66. package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -1
  67. package/dist/components/ModalSuccess/ModalSuccess.js +18 -19
  68. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -1
  69. package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -1
  70. package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -1
  71. package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -1
  72. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  73. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
  74. package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -1
  75. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +9 -11
  76. package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -1
  77. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  78. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -1
  79. package/dist/components/Select/model/selectMode.d.ts +0 -1
  80. package/dist/components/Select/model/selectMode.js +30 -30
  81. package/dist/components/Select/ui/Category.d.ts +0 -1
  82. package/dist/components/Select/ui/Category.js +3 -3
  83. package/dist/components/Select/ui/Option.d.ts +0 -1
  84. package/dist/components/Select/ui/Option.js +2 -2
  85. package/dist/components/Select/ui/Select.d.ts +0 -1
  86. package/dist/components/Select/ui/Select.js +115 -115
  87. package/dist/components/SliderNavigation/index.d.ts +0 -1
  88. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -1
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  90. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -1
  91. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  92. package/dist/components/SortSelect/index.js +1 -1
  93. package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
  94. package/dist/components/SortSelect/ui/SortSelect.js +108 -26
  95. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -1
  96. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +0 -1
  97. package/dist/components/SummarySelect/ui/SummarySelect.js +59 -65
  98. package/dist/components/Switcher/ui/Switcher.d.ts +0 -1
  99. package/dist/components/Switcher/ui/Switcher.js +1 -1
  100. package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -1
  101. package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -1
  102. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  103. package/dist/components/TabSwitcher/index.js +2 -2
  104. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +0 -1
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.js +120 -26
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -1
  107. package/dist/components/Tag/ui/Tag.d.ts +0 -1
  108. package/dist/components/Tag/ui/Tag.js +91 -91
  109. package/dist/components/Tag/ui/Tag.types.d.ts +0 -1
  110. package/dist/components/Text/ui/Text.d.ts +0 -1
  111. package/dist/components/Text/ui/Text.js +1 -1
  112. package/dist/components/Text/ui/Text.types.d.ts +0 -1
  113. package/dist/components/TextArea/TextArea.d.ts +0 -1
  114. package/dist/components/TextArea/TextArea.js +1 -1
  115. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -1
  117. package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
  118. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  119. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
  120. package/dist/{index-DvCs2JPX.js → index-3E04UaC2.js} +9529 -9629
  121. package/dist/index-B2JRaoNz.js +48 -0
  122. package/dist/{index-DmANy9jd.js → index-CBdtKu-u.js} +272 -271
  123. package/dist/layout/Layout.d.ts +0 -1
  124. package/dist/layout/components/Header/Header.js +48 -71
  125. package/dist/layout/components/Menu.js +2 -24
  126. package/dist/main.js +70 -65
  127. package/dist/pages/ButtonsPage/Buttons.js +44 -61
  128. package/dist/pages/FormsPage/FormsPage.js +26 -50
  129. package/dist/pages/IconsPage/IconsPage.js +9 -31
  130. package/dist/pages/InputPage/InputPage.js +10 -32
  131. package/dist/pages/LogoPage/LogoPage.js +13 -35
  132. package/dist/pages/LotsPage/LotsPage.js +18 -17
  133. package/dist/pages/LotsPage/const.d.ts +0 -1
  134. package/dist/pages/ModalsPage/ModalPage.js +46 -66
  135. package/dist/pages/SelectPage/SelectPage.js +58 -58
  136. package/dist/pages/TabsPage/TabsPage.js +19 -20
  137. package/dist/pages/TagsPage/TagsPage.js +23 -44
  138. package/dist/shared/checkLargeOffice.d.ts +0 -1
  139. package/dist/shared/checkLargeOffice.js +1 -1
  140. package/dist/shared/mlnRound.js +1 -2
  141. package/dist/stone-kit.css +1 -0
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/useLotCard-DG9doKCX.js +186 -0
  167. package/dist/useSortSelect-B8HOGdOt.js +79 -0
  168. package/package.json +1 -1
  169. package/dist/FilterWithSave-BWA01WwU.js +0 -2476
  170. package/dist/index-rKuIKazb.js +0 -45
  171. package/dist/style.css +0 -1
  172. package/dist/useSortSelect-BTCEVMVn.js +0 -80
@@ -1,142 +1,142 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { c as w } from "../../../index-rKuIKazb.js";
3
- import { NewIcon as t } from "../../NewIcon/ui/NewIcon.js";
4
- const N = "_root_16fjr_1", W = "_iconsWrapper_16fjr_17", x = "_metroColor_16fjr_27", B = "_route_16fjr_37", T = "_auto_16fjr_47", $ = "_full_16fjr_51", C = "_transparent_16fjr_55", b = "_long_16fjr_60", v = "_mini_16fjr_64", y = "_metroColorMini_16fjr_68", I = "_routeMini_16fjr_77", z = "_withBg_16fjr_90", E = "_withWhiteBg_16fjr_94", n = {
5
- root: N,
6
- iconsWrapper: W,
7
- metroColor: x,
8
- route: B,
9
- auto: T,
10
- full: $,
11
- transparent: C,
12
- long: b,
13
- mini: v,
14
- metroColorMini: y,
15
- routeMini: I,
16
- withBg: z,
17
- withWhiteBg: E
18
- }, e = w.bind(n), q = ({
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: j,
22
- metro: o,
23
- separatorColor: M = "#F4F5F6",
21
+ addClassNameTimeTo: g,
22
+ metro: r,
23
+ separatorColor: j = "#F4F5F6",
24
24
  width: u = "auto",
25
- variant: l = "default",
25
+ variant: s = "default",
26
26
  isBetween: f = !1,
27
27
  withBg: d = !1,
28
- withWhiteBg: p = !1,
29
- ...h
28
+ withWhiteBg: m = !1,
29
+ ...p
30
30
  }) => {
31
- const g = ["pedestrian", "auto"];
32
- return Array.isArray(o) ? /* @__PURE__ */ c(
31
+ const h = ["pedestrian", "auto"];
32
+ return Array.isArray(r) ? /* @__PURE__ */ e(
33
33
  "div",
34
34
  {
35
- className: e(
36
- n.root,
37
- n[l],
38
- n[f ? "long" : ""],
39
- n[d ? "withBg" : ""],
40
- n[p ? "withWhiteBg" : ""],
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
- n[u]
42
+ o[u]
43
43
  ),
44
- ...h,
44
+ ...p,
45
45
  children: [
46
- /* @__PURE__ */ c("div", { className: e(n.metroColor, _), children: [
47
- /* @__PURE__ */ r("div", { className: n.iconsWrapper, children: o.map((i, s) => i.icon ? /* @__PURE__ */ r(
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: n.icon,
51
- children: (i == null ? void 0 : i.icon) && /* @__PURE__ */ r(
52
- t,
50
+ className: o.icon,
51
+ children: n?.icon && /* @__PURE__ */ i(
52
+ l,
53
53
  {
54
54
  size: "20",
55
- name: i.icon,
55
+ name: n.icon,
56
56
  color: "#777E90"
57
57
  }
58
58
  )
59
59
  },
60
- `metro + ${i.name} + ${s}`
61
- ) : /* @__PURE__ */ r(
60
+ `metro + ${n.name} + ${t}`
61
+ ) : /* @__PURE__ */ i(
62
62
  "span",
63
63
  {
64
64
  style: {
65
- background: (i == null ? void 0 : i.color) ?? "",
66
- border: s > 0 ? `1px solid ${M}` : ""
65
+ background: n?.color ?? "",
66
+ border: t > 0 ? `1px solid ${j}` : ""
67
67
  }
68
68
  },
69
- `color + ${i.name} + ${s}`
69
+ `color + ${n.name} + ${t}`
70
70
  )) }),
71
- o.map((i) => i.name).join(", ")
71
+ r.map((n) => n.name).join(", ")
72
72
  ] }),
73
- o == null ? void 0 : o.map((i, s) => !i.mode || !i.timeTo ? null : /* @__PURE__ */ c(
73
+ r?.map((n, t) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ e(
74
74
  "div",
75
75
  {
76
- className: n.route,
76
+ className: o.route,
77
77
  children: [
78
- g.includes(i.mode) && /* @__PURE__ */ r(
79
- t,
78
+ h.includes(n.mode) && /* @__PURE__ */ i(
79
+ l,
80
80
  {
81
81
  size: "20",
82
- name: i.mode,
82
+ name: n.mode,
83
83
  color: "#777E90"
84
84
  }
85
85
  ),
86
- i.timeTo + " " + (i.selfIconText ?? "мин")
86
+ n.timeTo + " " + (n.selfIconText ?? "мин")
87
87
  ]
88
88
  },
89
- `route - ${i.name} - ${s}`
89
+ `route - ${n.name} - ${t}`
90
90
  ))
91
91
  ]
92
92
  }
93
- ) : /* @__PURE__ */ c(
93
+ ) : /* @__PURE__ */ e(
94
94
  "div",
95
95
  {
96
- className: e(
97
- n.root,
98
- n[l],
99
- n[f ? "long" : ""],
100
- n[d ? "withBg" : ""],
101
- n[p ? "withWhiteBg" : ""],
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
- n[u]
103
+ o[u]
104
104
  ),
105
- ...h,
105
+ ...p,
106
106
  children: [
107
- /* @__PURE__ */ c(
107
+ /* @__PURE__ */ e(
108
108
  "div",
109
109
  {
110
- className: e(n.metroColor, _, { [n.metroColorMini]: l === "mini" }),
110
+ className: c(o.metroColor, _, { [o.metroColorMini]: s === "mini" }),
111
111
  children: [
112
- (o == null ? void 0 : o.icon) && /* @__PURE__ */ r(
112
+ r?.icon && /* @__PURE__ */ i(
113
113
  "img",
114
114
  {
115
- src: o.icon,
115
+ src: r.icon,
116
116
  width: 20,
117
117
  height: 20
118
118
  }
119
119
  ),
120
- (o == null ? void 0 : o.color) && !(o != null && o.icon) && /* @__PURE__ */ r("span", { style: { background: (o == null ? void 0 : o.color) ?? "" } }),
121
- o.name
120
+ r?.color && !r?.icon && /* @__PURE__ */ i("span", { style: { background: r?.color ?? "" } }),
121
+ r.name
122
122
  ]
123
123
  }
124
124
  ),
125
- o.timeTo && /* @__PURE__ */ c("div", { className: e(n.route, j, { [n.routeMini]: l === "mini" }), children: [
126
- o.mode && g.includes(o.mode) && /* @__PURE__ */ r(
127
- t,
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: o.mode,
130
+ name: r.mode,
131
131
  color: "#777E90"
132
132
  }
133
133
  ),
134
- o.timeTo + " " + (o.selfIconText ?? "мин")
134
+ r.timeTo + " " + (r.selfIconText ?? "мин")
135
135
  ] })
136
136
  ]
137
137
  }
138
138
  );
139
139
  };
140
140
  export {
141
- q as MetroTag
141
+ A as MetroTag
142
142
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type TagWidth = 'full' | 'auto';
3
2
  export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
4
3
  metro: {
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { IModalProps } from './Modal.types';
3
-
4
3
  export declare const Modal: FC<IModalProps>;
@@ -1,76 +1,73 @@
1
- import { jsxs as B, jsx as a } from "react/jsx-runtime";
2
- import { useEffect as $ } from "react";
3
- import { createPortal as k } from "react-dom";
4
- const N = "_root_1vbbc_11", C = "_modalBody_1vbbc_25", L = "_modalOverlay_1vbbc_30", x = "_isTransparentBack_1vbbc_41", I = "_fadeInUp_1vbbc_1", s = {
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
- fadeInUp: I
10
- }, g = ({
11
- isOpen: d,
12
- emitIsOpen: c,
13
- isTransparentBack: e = !1,
14
- isClickOutside: r = !0,
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: v = !1,
23
- children: y,
24
- modalBodyRef: _,
25
- additionalStylesModalBody: b
21
+ notDisableScroll: y = !1,
22
+ children: b,
23
+ modalBodyRef: v,
24
+ additionalStylesModalBody: _
26
25
  }) => {
27
- const p = () => {
28
- r && c(!1);
26
+ const B = () => {
27
+ c && t(!1);
29
28
  };
30
- $(() => {
31
- if (!v) {
32
- if (d) {
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 (t)
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
- }, [d]);
44
- const n = /* @__PURE__ */ B(
40
+ }, [e]);
41
+ const a = /* @__PURE__ */ $(
45
42
  "div",
46
43
  {
47
44
  className: `${s.root} ${i}`,
48
45
  children: [
49
- /* @__PURE__ */ a(
46
+ /* @__PURE__ */ r(
50
47
  "div",
51
48
  {
52
- onClick: p,
53
- className: `${s.modalOverlay} ${m} ${e ? s.isTransparentBack : ""}`,
49
+ onClick: B,
50
+ className: `${s.modalOverlay} ${m} ${d ? s.isTransparentBack : ""}`,
54
51
  style: {
55
- opacity: e ? u : void 0,
52
+ opacity: d ? u : void 0,
56
53
  backgroundColor: l || void 0
57
54
  }
58
55
  }
59
56
  ),
60
- /* @__PURE__ */ a(
57
+ /* @__PURE__ */ r(
61
58
  "div",
62
59
  {
63
60
  className: `${s.modalBody} ${f}`,
64
- ref: _,
65
- style: b,
66
- children: y
61
+ ref: v,
62
+ style: _,
63
+ children: b
67
64
  }
68
65
  )
69
66
  ]
70
67
  }
71
68
  );
72
- return d ? o != null && o.domNode && o.domNode.isConnected ? k(n, o.domNode, o.key) : n : null;
69
+ return e ? o?.domNode && o.domNode.isConnected ? p(a, o.domNode, o.key) : a : null;
73
70
  };
74
71
  export {
75
- g as Modal
72
+ h as Modal
76
73
  };
@@ -1,5 +1,4 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
-
3
2
  export interface IModalProps {
4
3
  isOpen: boolean;
5
4
  emitIsOpen: Dispatch<SetStateAction<boolean>>;
@@ -1,3 +1,2 @@
1
1
  import { IModalSuccess } from './ModalSuccess.types.ts';
2
-
3
2
  export declare const ModalSuccess: ({ isSuccessOpen, setIsSuccess, createPortalObj }: IModalSuccess) => import("react/jsx-runtime").JSX.Element;
@@ -1,32 +1,31 @@
1
- import { jsx as c, jsxs as t } from "react/jsx-runtime";
2
- import { Modal as a } from "../Modal/ui/Modal.js";
3
- import { Button as n } from "../Button/ui/Button.js";
4
- import { NewIcon as s } from "../NewIcon/ui/NewIcon.js";
5
- const d = "_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", g = "_title_1og3m_67", o = {
6
- modal: d,
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
- title: g
15
- }, v = ({ isSuccessOpen: i, setIsSuccess: e, createPortalObj: l }) => /* @__PURE__ */ c(
16
- a,
13
+ successTitle: k
14
+ }, y = ({ isSuccessOpen: t, setIsSuccess: e, createPortalObj: a }) => /* @__PURE__ */ c(
15
+ l,
17
16
  {
18
- createPortalObj: l,
17
+ createPortalObj: a,
19
18
  emitIsOpen: e,
20
- isOpen: i,
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__ */ t("div", { className: o.root, children: [
26
- /* @__PURE__ */ t("div", { className: o.check, children: [
27
- /* @__PURE__ */ c(s, { name: "circle", size: "80", additionalClass: o.iconCircle, color: "#57C27D" }),
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
- s,
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__ */ t("div", { className: o.text, children: [
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
- n,
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
- v as ModalSuccess
59
+ y as ModalSuccess
61
60
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IModalSuccess {
3
2
  isSuccessOpen: boolean;
4
3
  setIsSuccess: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,4 +1,3 @@
1
1
  import { ReactSVGComponent } from '../ui/NewIcon.types';
2
-
3
2
  declare const PinTrans: ReactSVGComponent;
4
3
  export default PinTrans;
@@ -1,4 +1,3 @@
1
1
  import { ReactSVGComponent } from '../ui/NewIcon.types';
2
-
3
2
  declare const SmallFilter: ReactSVGComponent;
4
3
  export default SmallFilter;
@@ -1,5 +1,4 @@
1
1
  import { ReactSVGComponent } from './NewIcon.types';
2
-
3
2
  type IconComponentProps = {
4
3
  name: keyof typeof iconTypes;
5
4
  size?: string;
@@ -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-rKuIKazb.js";
6
+ import { c as d } from "../../../index-B2JRaoNz.js";
7
7
  const C = ({
8
8
  title: t,
9
9
  titleId: l,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ReactSVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
3
2
  title?: string;
4
3
  }>;
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  declare const iconTypes: Record<string, React.LazyExoticComponent<React.FC<React.SVGProps<SVGSVGElement>>>>;
4
3
  export default iconTypes;
@@ -1,17 +1,15 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { LotCardSkeleton as c } from "../../LotCardSkeleton/ui/LotCardSkeleton.js";
3
- const a = "_root_eu55e_12", s = "_projectHeader_eu55e_20", i = "_projectTitleWrapper_eu55e_28", l = "_projectBtn_eu55e_33", n = "_pulsing_eu55e_1", _ = "_projectTitle_eu55e_28", j = "_projectYearMobile_eu55e_49", d = "_metroWrapper_eu55e_58", m = "_filterBtnWrapper_eu55e_71", u = "_projectYearDesktop_eu55e_113", e = {
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
- pulsing: n,
9
- projectTitle: _,
10
- projectYearMobile: j,
11
- metroWrapper: d,
12
- filterBtnWrapper: m,
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((p) => /* @__PURE__ */ r(c, {}, p))
27
+ o.map((c) => /* @__PURE__ */ r(p, {}, c))
30
28
  ] });
31
29
  };
32
30
  export {
33
- N as ProjectCardSkeleton
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-rKuIKazb.js";
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,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export declare const ROUND_BUTTON_VARIANTS: {
4
3
  whiteStroke: string;
5
4
  blackFill: string;
@@ -1,6 +1,5 @@
1
1
  import { TCategory, TModeSelect, TOption } from '../ui/Select.types.ts';
2
2
  import { SetStateAction } from 'react';
3
-
4
3
  export type TClickOptionProps = {
5
4
  option: TOption | TOption[];
6
5
  disabledOptions: TOption[];
@@ -1,49 +1,49 @@
1
- const m = ({
1
+ const v = ({
2
2
  option: e,
3
- setSelectedOptions: s,
4
- selectedOptions: u,
5
- disabledOptions: y,
6
- onChange: f,
7
- mode: S,
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 (y.includes(e))
11
+ if (n.includes(e))
12
12
  return;
13
- let i = u.some((l) => l.value === e.value) ? e.value === "selectAll" && r ? [] : u.some((l) => l.value === "selectAll") ? u.filter((l) => l.value !== e.value && l.value !== "selectAll") : u.filter((l) => l.value !== e.value) : e.value === "selectAll" && r ? [...r] : [...u, e];
14
- if (S === "single") {
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
- s(l), f && f(l);
16
+ c(l), s && s(l);
17
17
  return;
18
18
  }
19
- if (S === "double") {
20
- "options" in e && (u.map((v) => JSON.stringify(v)).includes(JSON.stringify(e)) ? i = i.filter(
21
- (v) => !e.options.map((a) => JSON.stringify(a)).includes(JSON.stringify(v))
22
- ) : Array.isArray(e.options) && (i = [...i, ...e.options]));
23
- const l = r == null ? void 0 : r.filter((t) => "options" in t && t.options.includes(e))[0];
24
- !(l && u.map((t) => JSON.stringify(t)).includes(JSON.stringify(l))) && l && i.push(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
- s(i), f && f(i);
26
+ c(u), s && s(u);
27
27
  }
28
- }, w = ({
28
+ }, A = ({
29
29
  option: e,
30
- setSelectedOptions: s,
31
- selectedOptions: u,
32
- disabledOptions: y,
33
- onChange: f
30
+ setSelectedOptions: c,
31
+ selectedOptions: i,
32
+ disabledOptions: n,
33
+ onChange: s
34
34
  }) => {
35
35
  if (Array.isArray(e)) {
36
- const S = e.filter((r) => !(y != null && y.includes(r)));
37
- if (S.every((r) => u.map((c) => c).includes(r))) {
38
- const r = u.filter((c) => !e.includes(c));
39
- s(r), f && f(r);
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 = S.filter((i) => !u.includes(i)), c = [...u, ...r];
42
- s(c), f && f(c);
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
- w as handleClickModeCategory,
48
- m as handleClickModeOption
47
+ A as handleClickModeCategory,
48
+ v as handleClickModeOption
49
49
  };
@@ -1,5 +1,4 @@
1
1
  import { TCategory, TModeSelect, TOption } from './Select.types.ts';
2
-
3
2
  export interface IOption {
4
3
  category: TCategory;
5
4
  selectedValues?: TOption[];