stone-kit 0.0.1029 → 0.0.1030

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/FilterWithSave-BWA01WwU.js +2476 -0
  3. package/dist/Menu-CeBSiTyP.js +513 -0
  4. package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
  5. package/dist/Router.js +1 -1
  6. package/dist/components/Button/ui/Button.d.ts +1 -0
  7. package/dist/components/Button/ui/Button.js +1 -1
  8. package/dist/components/Button/ui/Button.types.d.ts +1 -0
  9. package/dist/components/CheckBox/CheckBox.d.ts +1 -0
  10. package/dist/components/CheckBox/CheckBox.js +1 -1
  11. package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
  12. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
  13. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
  14. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
  16. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  17. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
  18. package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
  19. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
  20. package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
  22. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
  24. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  25. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
  26. package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
  27. package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
  28. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
  30. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  31. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
  32. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
  33. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
  35. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
  37. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
  38. package/dist/components/Flex/ui/Flex.d.ts +1 -0
  39. package/dist/components/Flex/ui/Flex.js +1 -1
  40. package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
  41. package/dist/components/FormModal/ui/ModalForm.js +28 -1445
  42. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
  43. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  44. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
  45. package/dist/components/Input/ui/Input.d.ts +2 -1
  46. package/dist/components/Input/ui/Input.js +325 -234
  47. package/dist/components/Logo/ui/Logo.d.ts +1 -0
  48. package/dist/components/Logo/ui/Logo.js +6 -6
  49. package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
  50. package/dist/components/LotCard/hooks/useLotCard.js +24 -6
  51. package/dist/components/LotCard/index.js +2 -2
  52. package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
  53. package/dist/components/LotCard/ui/LotCard.js +10 -213
  54. package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
  55. package/dist/components/LotCard/utils/formatPrice.js +2 -1
  56. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
  57. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
  59. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  60. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
  61. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
  62. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  63. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
  64. package/dist/components/Modal/ui/Modal.d.ts +1 -0
  65. package/dist/components/Modal/ui/Modal.js +37 -34
  66. package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
  67. package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
  68. package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
  69. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
  70. package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
  71. package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
  72. package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
  73. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  74. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
  75. package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
  76. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
  77. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
  78. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  79. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  80. package/dist/components/Select/model/selectMode.d.ts +1 -0
  81. package/dist/components/Select/model/selectMode.js +30 -30
  82. package/dist/components/Select/ui/Category.d.ts +1 -0
  83. package/dist/components/Select/ui/Category.js +3 -3
  84. package/dist/components/Select/ui/Option.d.ts +1 -0
  85. package/dist/components/Select/ui/Option.js +2 -2
  86. package/dist/components/Select/ui/Select.d.ts +1 -0
  87. package/dist/components/Select/ui/Select.js +115 -115
  88. package/dist/components/SliderNavigation/index.d.ts +1 -0
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
  90. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  91. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
  92. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  93. package/dist/components/SortSelect/index.js +1 -1
  94. package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
  95. package/dist/components/SortSelect/ui/SortSelect.js +26 -108
  96. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
  97. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  98. package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
  99. package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
  100. package/dist/components/Switcher/ui/Switcher.js +1 -1
  101. package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
  102. package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
  103. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  104. package/dist/components/TabSwitcher/index.js +2 -2
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
  107. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
  108. package/dist/components/Tag/ui/Tag.d.ts +1 -0
  109. package/dist/components/Tag/ui/Tag.js +91 -91
  110. package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
  111. package/dist/components/Text/ui/Text.d.ts +1 -0
  112. package/dist/components/Text/ui/Text.js +1 -1
  113. package/dist/components/Text/ui/Text.types.d.ts +1 -0
  114. package/dist/components/TextArea/TextArea.d.ts +1 -0
  115. package/dist/components/TextArea/TextArea.js +1 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
  117. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
  118. package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
  119. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  120. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
  121. package/dist/index-DmANy9jd.js +890 -0
  122. package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
  123. package/dist/index-rKuIKazb.js +45 -0
  124. package/dist/layout/Layout.d.ts +1 -0
  125. package/dist/layout/components/Header/Header.js +71 -48
  126. package/dist/layout/components/Menu.js +26 -107
  127. package/dist/main.js +65 -70
  128. package/dist/pages/ButtonsPage/Buttons.js +61 -44
  129. package/dist/pages/FormsPage/FormsPage.js +50 -26
  130. package/dist/pages/IconsPage/IconsPage.js +31 -9
  131. package/dist/pages/InputPage/InputPage.js +32 -10
  132. package/dist/pages/LogoPage/LogoPage.js +35 -13
  133. package/dist/pages/LotsPage/LotsPage.js +17 -18
  134. package/dist/pages/LotsPage/const.d.ts +1 -0
  135. package/dist/pages/ModalsPage/ModalPage.js +66 -46
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +20 -19
  138. package/dist/pages/TagsPage/TagsPage.js +44 -23
  139. package/dist/shared/checkLargeOffice.d.ts +1 -0
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +2 -1
  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/style.css +1 -0
  167. package/dist/useSortSelect-BTCEVMVn.js +80 -0
  168. package/package.json +1 -1
  169. package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
  170. package/dist/index-YnD2EP-S.js +0 -43
  171. package/dist/stone-kit.css +0 -1
  172. package/dist/useLotCard-CYcRSogE.js +0 -186
  173. package/dist/useSortSelect-Cy3od4ig.js +0 -80
@@ -1,142 +1,142 @@
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 = ({
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 = ({
19
19
  addClassName: a,
20
20
  addClassNameColor: _,
21
- addClassNameTimeTo: g,
22
- metro: r,
23
- separatorColor: j = "#F4F5F6",
21
+ addClassNameTimeTo: j,
22
+ metro: o,
23
+ separatorColor: M = "#F4F5F6",
24
24
  width: u = "auto",
25
- variant: s = "default",
25
+ variant: l = "default",
26
26
  isBetween: f = !1,
27
27
  withBg: d = !1,
28
- withWhiteBg: m = !1,
29
- ...p
28
+ withWhiteBg: p = !1,
29
+ ...h
30
30
  }) => {
31
- const h = ["pedestrian", "auto"];
32
- return Array.isArray(r) ? /* @__PURE__ */ e(
31
+ const g = ["pedestrian", "auto"];
32
+ return Array.isArray(o) ? /* @__PURE__ */ c(
33
33
  "div",
34
34
  {
35
- className: c(
36
- o.root,
37
- o[s],
38
- o[f ? "long" : ""],
39
- o[d ? "withBg" : ""],
40
- o[m ? "withWhiteBg" : ""],
35
+ className: e(
36
+ n.root,
37
+ n[l],
38
+ n[f ? "long" : ""],
39
+ n[d ? "withBg" : ""],
40
+ n[p ? "withWhiteBg" : ""],
41
41
  a,
42
- o[u]
42
+ n[u]
43
43
  ),
44
- ...p,
44
+ ...h,
45
45
  children: [
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(
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(
48
48
  "div",
49
49
  {
50
- className: o.icon,
51
- children: n?.icon && /* @__PURE__ */ i(
52
- l,
50
+ className: n.icon,
51
+ children: (i == null ? void 0 : i.icon) && /* @__PURE__ */ r(
52
+ t,
53
53
  {
54
54
  size: "20",
55
- name: n.icon,
55
+ name: i.icon,
56
56
  color: "#777E90"
57
57
  }
58
58
  )
59
59
  },
60
- `metro + ${n.name} + ${t}`
61
- ) : /* @__PURE__ */ i(
60
+ `metro + ${i.name} + ${s}`
61
+ ) : /* @__PURE__ */ r(
62
62
  "span",
63
63
  {
64
64
  style: {
65
- background: n?.color ?? "",
66
- border: t > 0 ? `1px solid ${j}` : ""
65
+ background: (i == null ? void 0 : i.color) ?? "",
66
+ border: s > 0 ? `1px solid ${M}` : ""
67
67
  }
68
68
  },
69
- `color + ${n.name} + ${t}`
69
+ `color + ${i.name} + ${s}`
70
70
  )) }),
71
- r.map((n) => n.name).join(", ")
71
+ o.map((i) => i.name).join(", ")
72
72
  ] }),
73
- r?.map((n, t) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ e(
73
+ o == null ? void 0 : o.map((i, s) => !i.mode || !i.timeTo ? null : /* @__PURE__ */ c(
74
74
  "div",
75
75
  {
76
- className: o.route,
76
+ className: n.route,
77
77
  children: [
78
- h.includes(n.mode) && /* @__PURE__ */ i(
79
- l,
78
+ g.includes(i.mode) && /* @__PURE__ */ r(
79
+ t,
80
80
  {
81
81
  size: "20",
82
- name: n.mode,
82
+ name: i.mode,
83
83
  color: "#777E90"
84
84
  }
85
85
  ),
86
- n.timeTo + " " + (n.selfIconText ?? "мин")
86
+ i.timeTo + " " + (i.selfIconText ?? "мин")
87
87
  ]
88
88
  },
89
- `route - ${n.name} - ${t}`
89
+ `route - ${i.name} - ${s}`
90
90
  ))
91
91
  ]
92
92
  }
93
- ) : /* @__PURE__ */ e(
93
+ ) : /* @__PURE__ */ c(
94
94
  "div",
95
95
  {
96
- className: c(
97
- o.root,
98
- o[s],
99
- o[f ? "long" : ""],
100
- o[d ? "withBg" : ""],
101
- o[m ? "withWhiteBg" : ""],
96
+ className: e(
97
+ n.root,
98
+ n[l],
99
+ n[f ? "long" : ""],
100
+ n[d ? "withBg" : ""],
101
+ n[p ? "withWhiteBg" : ""],
102
102
  a,
103
- o[u]
103
+ n[u]
104
104
  ),
105
- ...p,
105
+ ...h,
106
106
  children: [
107
- /* @__PURE__ */ e(
107
+ /* @__PURE__ */ c(
108
108
  "div",
109
109
  {
110
- className: c(o.metroColor, _, { [o.metroColorMini]: s === "mini" }),
110
+ className: e(n.metroColor, _, { [n.metroColorMini]: l === "mini" }),
111
111
  children: [
112
- r?.icon && /* @__PURE__ */ i(
112
+ (o == null ? void 0 : o.icon) && /* @__PURE__ */ r(
113
113
  "img",
114
114
  {
115
- src: r.icon,
115
+ src: o.icon,
116
116
  width: 20,
117
117
  height: 20
118
118
  }
119
119
  ),
120
- r?.color && !r?.icon && /* @__PURE__ */ i("span", { style: { background: r?.color ?? "" } }),
121
- r.name
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
122
122
  ]
123
123
  }
124
124
  ),
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,
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,
128
128
  {
129
129
  size: "20",
130
- name: r.mode,
130
+ name: o.mode,
131
131
  color: "#777E90"
132
132
  }
133
133
  ),
134
- r.timeTo + " " + (r.selfIconText ?? "мин")
134
+ o.timeTo + " " + (o.selfIconText ?? "мин")
135
135
  ] })
136
136
  ]
137
137
  }
138
138
  );
139
139
  };
140
140
  export {
141
- A as MetroTag
141
+ q as MetroTag
142
142
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type TagWidth = 'full' | 'auto';
2
3
  export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  metro: {
@@ -1,3 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { IModalProps } from './Modal.types';
3
+
3
4
  export declare const Modal: FC<IModalProps>;
@@ -1,73 +1,76 @@
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 = {
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 = {
5
5
  root: N,
6
6
  modalBody: C,
7
7
  modalOverlay: L,
8
- isTransparentBack: x
9
- }, h = ({
10
- isOpen: e,
11
- emitIsOpen: t,
12
- isTransparentBack: d = !1,
13
- isClickOutside: c = !0,
14
- leaveDisableScroll: n = !1,
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,
15
16
  createPortalObj: o,
16
17
  additionalClass: i,
17
18
  additionalClassOverlay: m,
18
19
  additionalClassModalBody: f,
19
20
  opacity: u = 0.7,
20
21
  colorOverlay: l,
21
- notDisableScroll: y = !1,
22
- children: b,
23
- modalBodyRef: v,
24
- additionalStylesModalBody: _
22
+ notDisableScroll: v = !1,
23
+ children: y,
24
+ modalBodyRef: _,
25
+ additionalStylesModalBody: b
25
26
  }) => {
26
- const B = () => {
27
- c && t(!1);
27
+ const p = () => {
28
+ r && c(!1);
28
29
  };
29
- k(() => {
30
- if (!y) {
31
- if (e) {
32
- if (document.body.classList.contains("disable-scroll")) return;
30
+ $(() => {
31
+ if (!v) {
32
+ if (d) {
33
+ if (document.body.classList.contains("disable-scroll"))
34
+ return;
33
35
  document.body.classList.add("disable-scroll");
34
36
  } else {
35
- if (n) return;
37
+ if (t)
38
+ return;
36
39
  document.body.classList.remove("disable-scroll");
37
40
  }
38
41
  return () => document.body.classList.remove("disable-scroll");
39
42
  }
40
- }, [e]);
41
- const a = /* @__PURE__ */ $(
43
+ }, [d]);
44
+ const n = /* @__PURE__ */ B(
42
45
  "div",
43
46
  {
44
47
  className: `${s.root} ${i}`,
45
48
  children: [
46
- /* @__PURE__ */ r(
49
+ /* @__PURE__ */ a(
47
50
  "div",
48
51
  {
49
- onClick: B,
50
- className: `${s.modalOverlay} ${m} ${d ? s.isTransparentBack : ""}`,
52
+ onClick: p,
53
+ className: `${s.modalOverlay} ${m} ${e ? s.isTransparentBack : ""}`,
51
54
  style: {
52
- opacity: d ? u : void 0,
55
+ opacity: e ? u : void 0,
53
56
  backgroundColor: l || void 0
54
57
  }
55
58
  }
56
59
  ),
57
- /* @__PURE__ */ r(
60
+ /* @__PURE__ */ a(
58
61
  "div",
59
62
  {
60
63
  className: `${s.modalBody} ${f}`,
61
- ref: v,
62
- style: _,
63
- children: b
64
+ ref: _,
65
+ style: b,
66
+ children: y
64
67
  }
65
68
  )
66
69
  ]
67
70
  }
68
71
  );
69
- return e ? o?.domNode && o.domNode.isConnected ? p(a, o.domNode, o.key) : a : null;
72
+ return d ? o != null && o.domNode && o.domNode.isConnected ? k(n, o.domNode, o.key) : n : null;
70
73
  };
71
74
  export {
72
- h as Modal
75
+ g as Modal
73
76
  };
@@ -1,4 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
+
2
3
  export interface IModalProps {
3
4
  isOpen: boolean;
4
5
  emitIsOpen: Dispatch<SetStateAction<boolean>>;
@@ -1,2 +1,3 @@
1
1
  import { IModalSuccess } from './ModalSuccess.types.ts';
2
+
2
3
  export declare const ModalSuccess: ({ isSuccessOpen, setIsSuccess, createPortalObj }: IModalSuccess) => import("react/jsx-runtime").JSX.Element;
@@ -1,31 +1,32 @@
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,
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,
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
- }, y = ({ isSuccessOpen: t, setIsSuccess: e, createPortalObj: a }) => /* @__PURE__ */ c(
15
- l,
13
+ successTitle: k,
14
+ title: g
15
+ }, v = ({ isSuccessOpen: i, setIsSuccess: e, createPortalObj: l }) => /* @__PURE__ */ c(
16
+ a,
16
17
  {
17
- createPortalObj: a,
18
+ createPortalObj: l,
18
19
  emitIsOpen: e,
19
- isOpen: t,
20
+ isOpen: i,
20
21
  additionalClassModalBody: o.modalBody,
21
22
  additionalClass: o.modal,
22
23
  opacity: 0.7,
23
24
  isTransparentBack: !0,
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" }),
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" }),
27
28
  /* @__PURE__ */ c(
28
- i,
29
+ s,
29
30
  {
30
31
  additionalClass: o.iconCheck,
31
32
  size: "32",
@@ -34,12 +35,12 @@ const n = "_modal_1og3m_1", m = "_modalBody_1og3m_9", r = "_root_1og3m_14", _ =
34
35
  }
35
36
  )
36
37
  ] }),
37
- /* @__PURE__ */ s("div", { className: o.text, children: [
38
+ /* @__PURE__ */ t("div", { className: o.text, children: [
38
39
  /* @__PURE__ */ c("div", { className: o.successTitle, children: "Запрос принят" }),
39
40
  /* @__PURE__ */ c("div", { className: o.successText, children: "Наш менеджер свяжется с вами в ближайшее время" })
40
41
  ] }),
41
42
  /* @__PURE__ */ c(
42
- d,
43
+ n,
43
44
  {
44
45
  "data-testid": "modal_submit",
45
46
  variant: "blue",
@@ -56,5 +57,5 @@ const n = "_modal_1og3m_1", m = "_modalBody_1og3m_9", r = "_root_1og3m_14", _ =
56
57
  }
57
58
  );
58
59
  export {
59
- y as ModalSuccess
60
+ v as ModalSuccess
60
61
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface IModalSuccess {
2
3
  isSuccessOpen: boolean;
3
4
  setIsSuccess: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,3 +1,4 @@
1
1
  import { ReactSVGComponent } from '../ui/NewIcon.types';
2
+
2
3
  declare const PinTrans: ReactSVGComponent;
3
4
  export default PinTrans;
@@ -1,3 +1,4 @@
1
1
  import { ReactSVGComponent } from '../ui/NewIcon.types';
2
+
2
3
  declare const SmallFilter: ReactSVGComponent;
3
4
  export default SmallFilter;
@@ -1,4 +1,5 @@
1
1
  import { ReactSVGComponent } from './NewIcon.types';
2
+
2
3
  type IconComponentProps = {
3
4
  name: keyof typeof iconTypes;
4
5
  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-YnD2EP-S.js";
6
+ import { c as d } from "../../../index-rKuIKazb.js";
7
7
  const C = ({
8
8
  title: t,
9
9
  titleId: l,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ReactSVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
2
3
  title?: string;
3
4
  }>;
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
+
2
3
  declare const iconTypes: Record<string, React.LazyExoticComponent<React.FC<React.SVGProps<SVGSVGElement>>>>;
3
4
  export default iconTypes;
@@ -1,15 +1,17 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
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 = {
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 = {
4
4
  root: a,
5
5
  projectHeader: s,
6
6
  projectTitleWrapper: i,
7
7
  projectBtn: l,
8
- projectTitle: j,
9
- projectYearMobile: n,
10
- metroWrapper: _,
11
- projectYearDesktop: d
12
- }, v = () => {
8
+ pulsing: n,
9
+ projectTitle: _,
10
+ projectYearMobile: j,
11
+ metroWrapper: d,
12
+ filterBtnWrapper: m,
13
+ projectYearDesktop: u
14
+ }, N = () => {
13
15
  const o = [1, 2, 3, 4, 5];
14
16
  return /* @__PURE__ */ t("div", { className: e.root, children: [
15
17
  /* @__PURE__ */ t("div", { className: e.projectHeader, children: [
@@ -24,9 +26,9 @@ const a = "_root_eu55e_12", s = "_projectHeader_eu55e_20", i = "_projectTitleWra
24
26
  ] }),
25
27
  /* @__PURE__ */ r("div", { className: e.projectYearMobile })
26
28
  ] }),
27
- o.map((c) => /* @__PURE__ */ r(p, {}, c))
29
+ o.map((p) => /* @__PURE__ */ r(c, {}, p))
28
30
  ] });
29
31
  };
30
32
  export {
31
- v as ProjectCardSkeleton
33
+ N as ProjectCardSkeleton
32
34
  };
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './RoundButton.types';
3
+
3
4
  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-YnD2EP-S.js";
4
- import { sizeMap as i } from "./RoundButton.types.js";
3
+ import { c as y } from "../../../index-rKuIKazb.js";
5
4
  import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
5
+ import { sizeMap as i } from "./RoundButton.types.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,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export declare const ROUND_BUTTON_VARIANTS: {
3
4
  whiteStroke: string;
4
5
  blackFill: string;
@@ -1,5 +1,6 @@
1
1
  import { TCategory, TModeSelect, TOption } from '../ui/Select.types.ts';
2
2
  import { SetStateAction } from 'react';
3
+
3
4
  export type TClickOptionProps = {
4
5
  option: TOption | TOption[];
5
6
  disabledOptions: TOption[];
@@ -1,49 +1,49 @@
1
- const v = ({
1
+ const m = ({
2
2
  option: e,
3
- setSelectedOptions: c,
4
- selectedOptions: i,
5
- disabledOptions: n,
6
- onChange: s,
7
- mode: t,
3
+ setSelectedOptions: s,
4
+ selectedOptions: u,
5
+ disabledOptions: y,
6
+ onChange: f,
7
+ mode: S,
8
8
  optionsParentArr: r
9
9
  }) => {
10
10
  if (!Array.isArray(e)) {
11
- if (n.includes(e))
11
+ if (y.includes(e))
12
12
  return;
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") {
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") {
15
15
  const l = [e];
16
- c(l), s && s(l);
16
+ s(l), f && f(l);
17
17
  return;
18
18
  }
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);
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);
25
25
  }
26
- c(u), s && s(u);
26
+ s(i), f && f(i);
27
27
  }
28
- }, A = ({
28
+ }, w = ({
29
29
  option: e,
30
- setSelectedOptions: c,
31
- selectedOptions: i,
32
- disabledOptions: n,
33
- onChange: s
30
+ setSelectedOptions: s,
31
+ selectedOptions: u,
32
+ disabledOptions: y,
33
+ onChange: f
34
34
  }) => {
35
35
  if (Array.isArray(e)) {
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);
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);
40
40
  } else {
41
- const r = t.filter((u) => !i.includes(u)), f = [...i, ...r];
42
- c(f), s && s(f);
41
+ const r = S.filter((i) => !u.includes(i)), c = [...u, ...r];
42
+ s(c), f && f(c);
43
43
  }
44
44
  }
45
45
  };
46
46
  export {
47
- A as handleClickModeCategory,
48
- v as handleClickModeOption
47
+ w as handleClickModeCategory,
48
+ m as handleClickModeOption
49
49
  };
@@ -1,4 +1,5 @@
1
1
  import { TCategory, TModeSelect, TOption } from './Select.types.ts';
2
+
2
3
  export interface IOption {
3
4
  category: TCategory;
4
5
  selectedValues?: TOption[];