stone-kit 0.0.1106 → 0.0.1107

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 (271) hide show
  1. package/README.md +30 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/App.js +10 -0
  4. package/dist/Option-DmDx_xOt.js +99 -0
  5. package/dist/PinTrans-D6OZq76b.js +10 -0
  6. package/dist/Router.d.ts +2 -0
  7. package/dist/Router.js +103 -0
  8. package/dist/SmallFilter-C-VKnbkP.js +10 -0
  9. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  10. package/dist/components/Button/ui/Button.d.ts +1 -2
  11. package/dist/components/Button/ui/Button.js +74 -67
  12. package/dist/components/Button/ui/Button.types.d.ts +7 -5
  13. package/dist/components/Button/ui/Button.types.js +5 -3
  14. package/dist/components/CheckBox/CheckBox.d.ts +2 -0
  15. package/dist/components/CheckBox/CheckBox.js +84 -0
  16. package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
  17. package/dist/components/CheckBox/CheckBox.types.js +1 -0
  18. package/dist/components/CheckBox/index.d.ts +2 -0
  19. package/dist/components/CheckBox/index.js +4 -0
  20. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +16 -0
  21. package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
  22. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +11 -0
  23. package/dist/components/CheckBoxNew/CheckBoxNew.js +45 -0
  24. package/dist/components/CheckboxSelect/index.d.ts +1 -0
  25. package/dist/components/CheckboxSelect/index.js +4 -0
  26. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +18 -0
  27. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +57 -0
  28. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +2 -0
  29. package/dist/components/CommercialLotCard/CommercialLotCard.js +81 -0
  30. package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +6 -0
  31. package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
  32. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +9 -0
  33. package/dist/components/CommercialLotCard/components/Price/Price.js +39 -0
  34. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +6 -0
  35. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +100 -0
  36. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +7 -0
  37. package/dist/components/CommercialLotCard/components/Tags/Tags.js +37 -0
  38. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +10 -0
  39. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.js +1 -0
  40. package/dist/components/CommercialLotCard/types/LotCard.d.ts +386 -0
  41. package/dist/components/CommercialLotCard/types/LotCard.js +1 -0
  42. package/dist/components/CommercialLotCard/utils/formatPrice.d.ts +1 -0
  43. package/dist/components/CommercialLotCard/utils/formatPrice.js +8 -0
  44. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +4 -0
  45. package/dist/components/CommercialLotCard/utils/getTagsFeatures.js +13 -0
  46. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
  47. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  48. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
  49. package/dist/components/FavoriteIcon/FavoriteIcon.d.ts +7 -0
  50. package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
  51. package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
  52. package/dist/components/FavoriteIcon/Heart.js +24 -0
  53. package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
  54. package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
  55. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -2
  56. package/dist/components/FieldInput/ui/FieldInput.js +28 -7
  57. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +3 -1
  58. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +43 -0
  59. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +56 -0
  60. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -0
  61. package/dist/components/FilterWithSave/ui/FilterWithSave.js +325 -0
  62. package/dist/components/Flex/ui/Flex.d.ts +0 -1
  63. package/dist/components/Flex/ui/Flex.js +1 -1
  64. package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
  65. package/dist/components/FormModal/ui/ModalForm.d.ts +60 -0
  66. package/dist/components/FormModal/ui/ModalForm.js +1518 -0
  67. package/dist/components/FormModal/utils/reg.d.ts +4 -0
  68. package/dist/components/FormModal/utils/reg.js +6 -0
  69. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
  70. package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -5
  71. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
  72. package/dist/components/Input/ui/Input.d.ts +28 -0
  73. package/dist/components/Input/ui/Input.js +3247 -49
  74. package/dist/components/Input/ui/Input.types.d.ts +0 -23
  75. package/dist/components/Input/ui/Input.types.js +1 -7
  76. package/dist/components/Logo/ui/Logo.d.ts +1 -2
  77. package/dist/components/Logo/ui/Logo.js +58 -33
  78. package/dist/components/Logo/ui/Logo.types.d.ts +13 -1
  79. package/dist/components/Logo/ui/Logo.types.js +14 -1
  80. package/dist/components/LotCard/hooks/useLotCard.d.ts +25 -0
  81. package/dist/components/LotCard/hooks/useLotCard.js +13 -0
  82. package/dist/components/LotCard/ui/LotCard.d.ts +1 -2
  83. package/dist/components/LotCard/ui/LotCard.js +203 -104
  84. package/dist/components/LotCard/ui/LotCard.types.d.ts +234 -75
  85. package/dist/components/LotCard/utils/checkBedroomsCount.js +2 -2
  86. package/dist/components/LotCard/utils/const.d.ts +8 -0
  87. package/dist/components/LotCard/utils/const.js +11 -0
  88. package/dist/components/LotCard/utils/formatPrice.d.ts +1 -1
  89. package/dist/components/LotCard/utils/formatPrice.js +5 -6
  90. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +4 -0
  91. package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
  92. package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
  93. package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
  94. package/dist/components/LotCardSkeleton/index.d.ts +1 -0
  95. package/dist/components/LotCardSkeleton/index.js +4 -0
  96. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +5 -0
  97. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
  98. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
  99. package/dist/components/MetroLabel/ui/MetroLabel.js +19 -19
  100. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
  101. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -2
  102. package/dist/components/MetroTag/ui/MetroTag.js +121 -25
  103. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +21 -6
  104. package/dist/components/Modal/ui/Modal.d.ts +2 -17
  105. package/dist/components/Modal/ui/Modal.js +63 -19594
  106. package/dist/components/Modal/ui/Modal.types.d.ts +21 -0
  107. package/dist/components/ModalSuccess/ModalSuccess.d.ts +2 -0
  108. package/dist/components/ModalSuccess/ModalSuccess.js +60 -0
  109. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +8 -0
  110. package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
  111. package/dist/components/ModalSuccess/index.d.ts +1 -0
  112. package/dist/components/ModalSuccess/index.js +4 -0
  113. package/dist/components/NewIcon/icons/PinTrans.d.ts +3 -0
  114. package/dist/components/NewIcon/icons/PinTrans.js +6 -0
  115. package/dist/components/NewIcon/icons/SmallFilter.d.ts +3 -0
  116. package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
  117. package/dist/components/NewIcon/index.d.ts +1 -1
  118. package/dist/components/NewIcon/index.js +3 -2
  119. package/dist/components/NewIcon/ui/NewIcon.d.ts +2 -2
  120. package/dist/components/NewIcon/ui/NewIcon.js +204 -99
  121. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
  122. package/dist/components/NewIcon/ui/iconTypes.d.ts +3 -0
  123. package/dist/components/NewIcon/ui/iconTypes.js +60 -0
  124. package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
  125. package/dist/components/ProjectCardSkeleton/index.js +4 -0
  126. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
  127. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +32 -0
  128. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -2
  129. package/dist/components/RoundButton/ui/RoundButton.js +56 -45
  130. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +10 -2
  131. package/dist/components/RoundButton/ui/RoundButton.types.js +13 -6
  132. package/dist/components/Select/model/selectMode.d.ts +16 -0
  133. package/dist/components/Select/model/selectMode.js +64 -0
  134. package/dist/components/Select/ui/Category.d.ts +13 -0
  135. package/dist/components/Select/ui/Category.js +79 -0
  136. package/dist/components/Select/ui/Option.d.ts +15 -0
  137. package/dist/components/Select/ui/Option.js +7 -0
  138. package/dist/components/Select/ui/Select.d.ts +1 -3
  139. package/dist/components/Select/ui/Select.js +196 -79
  140. package/dist/components/Select/ui/Select.types.d.ts +62 -8
  141. package/dist/components/SliderNavigation/index.d.ts +0 -1
  142. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -2
  143. package/dist/components/SliderNavigation/ui/SliderNavigation.js +45 -32
  144. package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +7 -0
  145. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +5 -4
  146. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  147. package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
  148. package/dist/components/SortSelect/ui/SortSelect.js +67 -56
  149. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +9 -2
  150. package/dist/components/SummarySelect/index.d.ts +1 -0
  151. package/dist/components/SummarySelect/index.js +4 -0
  152. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +15 -0
  153. package/dist/components/SummarySelect/ui/SummarySelect.js +172 -0
  154. package/dist/components/Switcher/ui/Switcher.d.ts +1 -2
  155. package/dist/components/Switcher/ui/Switcher.js +45 -30
  156. package/dist/components/Switcher/ui/Switcher.types.d.ts +3 -1
  157. package/dist/components/TabSelect/index.d.ts +1 -0
  158. package/dist/components/TabSelect/index.js +4 -0
  159. package/dist/components/TabSelect/ui/TabSelect.d.ts +32 -0
  160. package/dist/components/TabSelect/ui/TabSelect.js +64 -0
  161. package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
  162. package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
  163. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -4
  164. package/dist/components/TabSwitcher/ui/TabSwitcher.js +114 -34
  165. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +23 -4
  166. package/dist/components/Tag/ui/Tag.d.ts +1 -2
  167. package/dist/components/Tag/ui/Tag.js +96 -44
  168. package/dist/components/Tag/ui/Tag.types.d.ts +22 -2
  169. package/dist/components/Tag/ui/Tag.types.js +20 -3
  170. package/dist/components/Text/ui/Text.d.ts +1 -2
  171. package/dist/components/Text/ui/Text.js +20 -27
  172. package/dist/components/Text/ui/Text.types.d.ts +0 -1
  173. package/dist/components/TextArea/TextArea.d.ts +8 -0
  174. package/dist/components/TextArea/TextArea.js +25 -0
  175. package/dist/components/ZoomControls/index.d.ts +1 -0
  176. package/dist/components/ZoomControls/index.js +4 -0
  177. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +2 -0
  178. package/dist/components/ZoomControls/ui/ZoomControls.js +33 -0
  179. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +6 -0
  180. package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
  181. package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
  182. package/dist/components/mobileButton/ui/MobileButton.js +38 -38
  183. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
  184. package/dist/index-BJwl9stn.js +33872 -0
  185. package/dist/index-YnD2EP-S.js +43 -0
  186. package/dist/layout/Layout.d.ts +5 -0
  187. package/dist/layout/Layout.js +11 -0
  188. package/dist/layout/components/Header/Header.d.ts +1 -0
  189. package/dist/layout/components/Header/Header.js +141 -0
  190. package/dist/layout/components/Menu.d.ts +1 -0
  191. package/dist/layout/components/Menu.js +109 -0
  192. package/dist/main.d.ts +14 -0
  193. package/dist/main.js +70 -42
  194. package/dist/pages/ButtonsPage/Buttons.d.ts +1 -0
  195. package/dist/pages/ButtonsPage/Buttons.js +106 -0
  196. package/dist/pages/CheckboxPage/CheckboxPage.d.ts +1 -0
  197. package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
  198. package/dist/pages/FormsPage/FormsPage.d.ts +2 -0
  199. package/dist/pages/FormsPage/FormsPage.js +58 -0
  200. package/dist/pages/HomePage/HomePage.d.ts +2 -0
  201. package/dist/pages/HomePage/HomePage.js +7 -0
  202. package/dist/pages/IconsPage/IconsPage.d.ts +1 -0
  203. package/dist/pages/IconsPage/IconsPage.js +19 -0
  204. package/dist/pages/InputPage/InputPage.d.ts +1 -0
  205. package/dist/pages/InputPage/InputPage.js +13 -0
  206. package/dist/pages/LogoPage/LogoPage.d.ts +1 -0
  207. package/dist/pages/LogoPage/LogoPage.js +16 -0
  208. package/dist/pages/LotsPage/LotsPage.d.ts +1 -0
  209. package/dist/pages/LotsPage/LotsPage.js +74 -0
  210. package/dist/pages/LotsPage/const.d.ts +4 -0
  211. package/dist/pages/LotsPage/const.js +678 -0
  212. package/dist/pages/ModalsPage/ModalPage.d.ts +2 -0
  213. package/dist/pages/ModalsPage/ModalPage.js +110 -0
  214. package/dist/pages/SelectPage/SelectPage.d.ts +1 -0
  215. package/dist/pages/SelectPage/SelectPage.js +211 -0
  216. package/dist/pages/SelectPage/const.d.ts +13 -0
  217. package/dist/pages/SelectPage/const.js +35 -0
  218. package/dist/pages/TabsPage/TabsPage.d.ts +2 -0
  219. package/dist/pages/TabsPage/TabsPage.js +168 -0
  220. package/dist/pages/TagsPage/TagsPage.d.ts +1 -0
  221. package/dist/pages/TagsPage/TagsPage.js +64 -0
  222. package/dist/shared/checkLargeOffice.d.ts +2 -0
  223. package/dist/shared/checkLargeOffice.js +4 -0
  224. package/dist/shared/deepEqual.d.ts +1 -0
  225. package/dist/shared/deepEqual.js +16 -0
  226. package/dist/shared/fmtNumber.d.ts +1 -0
  227. package/dist/shared/fmtNumber.js +4 -0
  228. package/dist/shared/mlnRound.d.ts +1 -0
  229. package/dist/shared/mlnRound.js +8 -0
  230. package/dist/shared/useClientWidth.d.ts +2 -0
  231. package/dist/shared/useClientWidth.js +6 -6
  232. package/dist/stone-kit.css +1 -0
  233. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +166 -0
  234. package/dist/stories/entities/index.js +4 -0
  235. package/dist/stories/shared/ui/Button/Button.stories.js +118 -0
  236. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +71 -0
  237. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +45 -0
  238. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +114 -0
  239. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +89 -0
  240. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +31 -0
  241. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +44 -0
  242. package/dist/stories/shared/ui/Flex/Flex.stories.js +74 -0
  243. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +65 -0
  244. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +68 -0
  245. package/dist/stories/shared/ui/Input/Input.stories.js +82 -0
  246. package/dist/stories/shared/ui/Logo/Logo.stories.js +75 -0
  247. package/dist/stories/shared/ui/MetroLabel/MetroLabel.stories.js +91 -0
  248. package/dist/stories/shared/ui/MetroTag/MetroTag.stories.js +96 -0
  249. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +77 -0
  250. package/dist/stories/shared/ui/Modal/Modal.stories.js +77 -0
  251. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +34 -0
  252. package/dist/stories/shared/ui/NewIcon/NewIcon.stories.js +38 -0
  253. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +83 -0
  254. package/dist/stories/shared/ui/Select/Select.stories.js +81 -0
  255. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +82 -0
  256. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +87 -0
  257. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +85 -0
  258. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +77 -0
  259. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +76 -0
  260. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +76 -0
  261. package/dist/stories/shared/ui/Tag/Tag.stories.js +51 -0
  262. package/dist/stories/shared/ui/Text/Text.stories.js +22 -0
  263. package/dist/stories/shared/ui/TextArea/TextArea.stories.js +37 -0
  264. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +91 -0
  265. package/dist/stories/shared/ui/index.js +62 -0
  266. package/dist/useLotCard-D-gK4J_o.js +186 -0
  267. package/dist/useSortSelect-IeonkD5d.js +79 -0
  268. package/package.json +39 -30
  269. package/dist/index-DIxK0V-G.js +0 -44
  270. package/dist/style.css +0 -1
  271. package/dist/useSortSelect-A7A_pNcU.js +0 -76
@@ -0,0 +1,186 @@
1
+ import { jsxs as _, jsx as t, Fragment as J } from "react/jsx-runtime";
2
+ import { useState as K } from "react";
3
+ import { getTagsFeatures as Q } from "./components/LotCard/utils/getTagsFeatures.js";
4
+ import { c as U } from "./index-YnD2EP-S.js";
5
+ import { checkBedroomsCount as X } from "./components/LotCard/utils/checkBedroomsCount.js";
6
+ import { formatPayment as Y } from "./components/LotCard/utils/monthlyPayment.js";
7
+ import { useClientWidth as Z } from "./shared/useClientWidth.js";
8
+ import { Text as tt } from "./components/Text/ui/Text.js";
9
+ import { NewIcon as et } from "./components/NewIcon/ui/NewIcon.js";
10
+ const ot = "_root_1tkvz_1", rt = "_lotBtn_1tkvz_12", nt = "_rootDisable_1tkvz_26", st = "_lotImageWrapper_1tkvz_26", it = "_lotInfoWrapper_1tkvz_27", pt = "_infoHeader_1tkvz_48", ct = "_monthlyWrapper_1tkvz_57", lt = "_price_1tkvz_67", at = "_monthlyPayment_1tkvz_74", _t = "_decor_1tkvz_80", dt = "_lotPropertyListMobile_1tkvz_87", mt = "_lotPropertyItem_1tkvz_95", ut = "_lotPropertyListDesktop_1tkvz_112", ht = "_lotPriceWrapper_1tkvz_116", vt = "_discountWrapper_1tkvz_122", ft = "_discountPrice_1tkvz_133", kt = "_priceWrap_1tkvz_145", zt = "_snippetLast_1tkvz_155", Pt = "_snippet_1tkvz_155", gt = "_tagsMobile_1tkvz_170", St = "_discountTag_1tkvz_185", Wt = "_lotPricePerMetr_1tkvz_189", yt = "_btnWrapper_1tkvz_194", bt = "_title_1tkvz_201", Lt = "_snippets_1tkvz_205", wt = "_retailSnippets_1tkvz_210", It = "_shownSnippets_1tkvz_215", Mt = "_addSnippets_1tkvz_240", Nt = "_addSnippetsActive_1tkvz_256", Tt = "_addSnippetsList_1tkvz_261", Bt = "_closeSnippetBtn_1tkvz_305", Ct = "_rootRow_1tkvz_317", Rt = "_rowTablet_1tkvz_328", xt = "_rootRightSide_1tkvz_369", Dt = "_topWrapper_1tkvz_385", Ft = "_botWrapper_1tkvz_390", jt = "_lotPriceWrapperRow_1tkvz_421", Ht = "_fullscreenBtn_1tkvz_431", At = "_projectLotPricePerMetr_1tkvz_450", Vt = "_paymentClass_1tkvz_490", e = {
11
+ root: ot,
12
+ lotBtn: rt,
13
+ rootDisable: nt,
14
+ lotImageWrapper: st,
15
+ lotInfoWrapper: it,
16
+ infoHeader: pt,
17
+ monthlyWrapper: ct,
18
+ price: lt,
19
+ monthlyPayment: at,
20
+ decor: _t,
21
+ lotPropertyListMobile: dt,
22
+ lotPropertyItem: mt,
23
+ lotPropertyListDesktop: ut,
24
+ lotPriceWrapper: ht,
25
+ discountWrapper: vt,
26
+ discountPrice: ft,
27
+ priceWrap: kt,
28
+ snippetLast: zt,
29
+ snippet: Pt,
30
+ tagsMobile: gt,
31
+ discountTag: St,
32
+ lotPricePerMetr: Wt,
33
+ btnWrapper: yt,
34
+ title: bt,
35
+ snippets: Lt,
36
+ retailSnippets: wt,
37
+ shownSnippets: It,
38
+ addSnippets: Mt,
39
+ addSnippetsActive: Nt,
40
+ addSnippetsList: Tt,
41
+ closeSnippetBtn: Bt,
42
+ rootRow: Ct,
43
+ rowTablet: Rt,
44
+ rootRightSide: xt,
45
+ topWrapper: Dt,
46
+ botWrapper: Ft,
47
+ lotPriceWrapperRow: jt,
48
+ fullscreenBtn: Ht,
49
+ projectLotPricePerMetr: At,
50
+ paymentClass: Vt
51
+ }, d = U.bind(e), Yt = ({ lot: y, rowConditions: b }) => {
52
+ const {
53
+ status: R,
54
+ direction: x,
55
+ area: L,
56
+ floor: u,
57
+ endFloor: g,
58
+ floorsNumber: c,
59
+ type: S,
60
+ isCorner: D,
61
+ windowViews: h,
62
+ subTypeName: w,
63
+ number: I,
64
+ bedroomsCount: F,
65
+ mortgageMonthlyPayment: M
66
+ } = y, [W, v] = K(!1), j = R === 2, H = x === 1, f = S === 11, A = L ? L + " м²" : "", m = u && c ? (g && g !== u ? u + "-" + g : u) + " из " + c : "", k = Q({ ...y }), { isTablet: N, isDesktop: l, isMobile: T, currentClientWidth: V } = Z(), $ = typeof b < "u" ? b : l || N, E = () => f ? c ? "Кол-во этажей: " + c : "" : m ? "Этаж: " + m : "", O = () => f ? c ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
67
+ /* @__PURE__ */ t("div", { children: "Количество этажей" }),
68
+ /* @__PURE__ */ t("div", { children: c })
69
+ ] }) : null : m ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
70
+ /* @__PURE__ */ t("div", { children: "Этаж" }),
71
+ /* @__PURE__ */ t("div", { children: m })
72
+ ] }) : null, q = () => {
73
+ if (S === 3) {
74
+ if (T && (!h || h.length === 0))
75
+ return null;
76
+ let n = 0;
77
+ const r = l ? 36 : 28, i = [], z = [];
78
+ if (D) {
79
+ const o = "Угловая";
80
+ if (n + o.length <= r)
81
+ i.push(o), n += o.length;
82
+ else
83
+ return i;
84
+ }
85
+ if (h) {
86
+ const o = h.filter((p) => p && p.trim() !== "");
87
+ let s = 0, a = n;
88
+ for (let p = 0; p < o.length; p++) {
89
+ const P = o[p], B = s > 0 ? " " + P : P;
90
+ if (a + B.length <= r)
91
+ i.push(P), a += B.length, s++;
92
+ else {
93
+ if (s === 0) {
94
+ const C = r - a;
95
+ if (C > 3) {
96
+ const G = P.substring(0, C - 3) + "...";
97
+ i.push(G), a = r;
98
+ } else
99
+ i.push("..."), a += 3;
100
+ }
101
+ z.push(...o.slice(p));
102
+ break;
103
+ }
104
+ }
105
+ n = a;
106
+ }
107
+ return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
108
+ /* @__PURE__ */ t("ul", { className: e.shownSnippets, children: i?.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)) }),
109
+ z?.length > 0 && /* @__PURE__ */ _(
110
+ "div",
111
+ {
112
+ className: d(e.addSnippets, { [e.addSnippetsActive]: W }),
113
+ onClick: (o) => {
114
+ l || (o.stopPropagation(), o.preventDefault(), v((s) => !s));
115
+ },
116
+ onMouseEnter: () => {
117
+ l && v(!0);
118
+ },
119
+ onMouseLeave: () => {
120
+ l && v(!1);
121
+ },
122
+ children: [
123
+ "+" + z?.length,
124
+ W && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
125
+ z.map((o, s) => /* @__PURE__ */ t("li", { children: o }, s)),
126
+ /* @__PURE__ */ t("div", { className: e.closeSnippetBtn, children: /* @__PURE__ */ t(
127
+ et,
128
+ {
129
+ name: "close",
130
+ size: "16",
131
+ color: "#ffffff"
132
+ }
133
+ ) })
134
+ ] })
135
+ ]
136
+ }
137
+ )
138
+ ] });
139
+ }
140
+ return k.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: k.map((n, r) => {
141
+ const i = r === k.length - 1;
142
+ return /* @__PURE__ */ t(
143
+ "div",
144
+ {
145
+ className: d(e.snippet, i ? "" : e.snippetLast),
146
+ children: n.text
147
+ },
148
+ r
149
+ );
150
+ }) }) : null;
151
+ };
152
+ return {
153
+ currentClientWidth: V,
154
+ isBuilding: f,
155
+ LotCardInfo: () => {
156
+ const n = H && S && w ? w : X(F), r = f ? n : `${n}${I ? `, ${I}` : ""}`;
157
+ return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
158
+ r && /* @__PURE__ */ t(
159
+ tt,
160
+ {
161
+ className: d(e.infoHeader),
162
+ html: r
163
+ }
164
+ ),
165
+ M && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(M) }),
166
+ /* @__PURE__ */ t(q, {})
167
+ ] }) });
168
+ },
169
+ tagFeatures: k,
170
+ FloorByType: O,
171
+ isTablet: N,
172
+ isDesktop: l,
173
+ getFloorStr: E,
174
+ isReserved: j,
175
+ isMobile: T,
176
+ areaStr: A,
177
+ floorStr: m,
178
+ isShowSnippet: W,
179
+ setIsShowSnippet: v,
180
+ rowConditionsVar: $
181
+ };
182
+ };
183
+ export {
184
+ e as s,
185
+ Yt as u
186
+ };
@@ -0,0 +1,79 @@
1
+ import { jsxs as k, jsx as s } from "react/jsx-runtime";
2
+ import { c as q } from "./index-YnD2EP-S.js";
3
+ const O = "_sortSelectWrapper_1b2qn_1", v = "_selectedOptions_1b2qn_11", x = "_selectionOptionMini_1b2qn_34", B = "_selectedOptionsOpened_1b2qn_38", S = "_selectOptionsDisabled_1b2qn_42", f = "_optionsList_1b2qn_49", C = "_mobileOptionList_1b2qn_64", L = "_mobileSortHeader_1b2qn_72", W = "_modalAddBody_1b2qn_86", g = "_inputWrapper_1b2qn_92", T = "_option_1b2qn_49", D = "_icon_1b2qn_120", N = "_checkBox_1b2qn_127", y = "_checkBoxChecked_1b2qn_134", A = "_innerCheck_1b2qn_141", H = "_sortSelectWrapperTop_1b2qn_172", M = "_optionListOnTop_1b2qn_175", t = {
4
+ sortSelectWrapper: O,
5
+ selectedOptions: v,
6
+ selectionOptionMini: x,
7
+ selectedOptionsOpened: B,
8
+ selectOptionsDisabled: S,
9
+ optionsList: f,
10
+ mobileOptionList: C,
11
+ mobileSortHeader: L,
12
+ modalAddBody: W,
13
+ inputWrapper: g,
14
+ option: T,
15
+ icon: D,
16
+ checkBox: N,
17
+ checkBoxChecked: y,
18
+ innerCheck: A,
19
+ sortSelectWrapperTop: H,
20
+ optionListOnTop: M
21
+ }, _ = q.bind(t), z = ({
22
+ selectedOption: n,
23
+ setSelectedOption: i,
24
+ setIsOpen: d,
25
+ containerRef: r,
26
+ onBlur: l,
27
+ onChange: a,
28
+ onClickOption: p,
29
+ isMobile: u,
30
+ placeholder: b
31
+ }) => {
32
+ const h = (e) => (o) => {
33
+ o.stopPropagation(), p && p(e);
34
+ const c = n?.value === e.value ? null : e;
35
+ if (c && (i && i(c), a)) {
36
+ const m = {
37
+ ...o,
38
+ target: { value: c }
39
+ };
40
+ a(m);
41
+ }
42
+ };
43
+ return { handleDocumentClick: (e) => {
44
+ r.current && !r.current.contains(e.target) && d(!1);
45
+ }, handleBlur: (e) => {
46
+ if (l) {
47
+ const o = {
48
+ ...e,
49
+ target: { value: n }
50
+ };
51
+ l(o);
52
+ }
53
+ }, getInputValue: () => u ? "" : n ? n.label : b, getOption: (e) => /* @__PURE__ */ k(
54
+ "div",
55
+ {
56
+ className: _(t.option, {
57
+ [t.selected]: n?.value === e.value
58
+ }),
59
+ onClick: h(e),
60
+ children: [
61
+ /* @__PURE__ */ s("div", { children: e.label }),
62
+ /* @__PURE__ */ s(
63
+ "div",
64
+ {
65
+ className: _(t.checkBox, {
66
+ [t.checkBoxChecked]: n?.value === e.value
67
+ }),
68
+ children: n?.value === e.value && /* @__PURE__ */ s("div", { className: t.innerCheck })
69
+ }
70
+ )
71
+ ]
72
+ },
73
+ e.value
74
+ ) };
75
+ };
76
+ export {
77
+ t as s,
78
+ z as u
79
+ };
package/package.json CHANGED
@@ -2,45 +2,52 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.1106",
5
+ "version": "0.0.1107",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",
9
9
  "scripts": {
10
- "clean:lib": "node scripts/cleanLib.js",
11
- "copy:src": "node scripts/copySrcToLib.js",
12
- "prepare": "npm run clean:lib && npm run copy:src",
13
- "build": "npm run prepare && tsc && vite build",
10
+ "build": "vite build && tsc",
14
11
  "dev": "vite",
15
12
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
16
13
  "preview": "vite preview",
17
- "prepublishOnly": "npm run build",
18
- "release": "node scripts/versionUpdate.js && npm publish"
14
+ "version-update": "node scripts/versionUpdate.js",
15
+ "commit-and-push": "node scripts/commitAndPush.js",
16
+ "release": "npm run build && npm run version-update && npm run commit-and-push && npm publish --tag latest",
17
+ "storybook": "npx kill-port 6006 && storybook dev -p 6006",
18
+ "build-storybook": "storybook build"
19
19
  },
20
20
  "dependencies": {
21
- "classnames": "^2.5.1"
21
+ "react": "^19.2.0",
22
+ "react-dom": "^19.2.0",
23
+ "react-imask": "^7.6.1",
24
+ "react-router-dom": "^7.9.6"
22
25
  },
23
26
  "devDependencies": {
24
- "@types/node": "^20.12.12",
25
- "@types/react": "^18.2.66",
26
- "@types/react-dom": "^18.2.22",
27
- "@typescript-eslint/eslint-plugin": "^7.2.0",
28
- "@typescript-eslint/parser": "^7.2.0",
29
- "@vitejs/plugin-react": "^4.2.1",
30
- "c8": "^9.1.0",
31
- "eslint": "^8.57.0",
27
+ "@eslint/js": "^9.39.1",
28
+ "@storybook/addon-docs": "^9.1.2",
29
+ "@storybook/addon-onboarding": "^9.1.2",
30
+ "@storybook/react-vite": "^9.1.2",
31
+ "@types/node": "^24.10.0",
32
+ "@types/react": "^19",
33
+ "@types/react-dom": "^19",
34
+ "@vitejs/plugin-react": "^5.1.0",
35
+ "classnames": "^2.5.1",
36
+ "eslint": "^9",
32
37
  "eslint-plugin-react": "^7.34.1",
33
- "eslint-plugin-react-hooks": "^4.6.0",
34
- "eslint-plugin-react-refresh": "^0.4.6",
38
+ "eslint-plugin-react-hooks": "^7.0.1",
39
+ "eslint-plugin-react-refresh": "^0.4.24",
40
+ "eslint-plugin-storybook": "^9.1.2",
35
41
  "glob": "^10.3.16",
36
- "react": "^18.2.0",
37
- "react-dom": "^18.2.0",
38
- "sass": "^1.77.2",
39
- "typescript": "^5.2.2",
40
- "vite": "^5.2.0",
41
- "vite-plugin-dts": "^3.9.1",
42
- "vite-plugin-lib-inject-css": "^2.1.1",
43
- "vite-plugin-svgr": "^4.2.0"
42
+ "globals": "^16.5.0",
43
+ "react-hook-form": "^7.52.2",
44
+ "sass": "^1.94.0",
45
+ "storybook": "^9.1.2",
46
+ "typescript": "^5",
47
+ "typescript-eslint": "^8.46.3",
48
+ "vite": "^7.2.2",
49
+ "vite-plugin-dts": "^4.5.4",
50
+ "vite-plugin-svgr": "^4.5.0"
44
51
  },
45
52
  "main": "dist/main.js",
46
53
  "types": "dist/main.d.ts",
@@ -55,15 +62,17 @@
55
62
  },
56
63
  "repository": {
57
64
  "type": "git",
58
- "url": "git+https://github.com/Mollycodd1e/viteKit.git"
65
+ "url": "git+https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit.git"
59
66
  },
60
67
  "keywords": [
61
68
  "kit",
62
69
  "stone",
63
- "ui"
70
+ "ui",
71
+ "stone-kit",
72
+ "stonehedge"
64
73
  ],
65
74
  "bugs": {
66
- "url": "https://github.com/Mollycodd1e/viteKit/issues"
75
+ "url": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit/issues"
67
76
  },
68
- "homepage": "https://github.com/Mollycodd1e/viteKit#readme"
77
+ "homepage": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit#readme"
69
78
  }
@@ -1,44 +0,0 @@
1
- function u(e) {
2
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
- }
4
- var f = { exports: {} };
5
- /*!
6
- Copyright (c) 2018 Jed Watson.
7
- Licensed under the MIT License (MIT), see
8
- http://jedwatson.github.io/classnames
9
- */
10
- (function(e) {
11
- (function() {
12
- var i = {}.hasOwnProperty;
13
- function s() {
14
- for (var t = "", r = 0; r < arguments.length; r++) {
15
- var n = arguments[r];
16
- n && (t = o(t, a(n)));
17
- }
18
- return t;
19
- }
20
- function a(t) {
21
- if (typeof t == "string" || typeof t == "number")
22
- return t;
23
- if (typeof t != "object")
24
- return "";
25
- if (Array.isArray(t))
26
- return s.apply(null, t);
27
- if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
28
- return t.toString();
29
- var r = "";
30
- for (var n in t)
31
- i.call(t, n) && t[n] && (r = o(r, n));
32
- return r;
33
- }
34
- function o(t, r) {
35
- return r ? t ? t + " " + r : t + r : t;
36
- }
37
- e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
38
- })();
39
- })(f);
40
- var c = f.exports;
41
- const p = /* @__PURE__ */ u(c);
42
- export {
43
- p as c
44
- };
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- ._root_wkh0k_1{white-space:pre-wrap}._root_j8jt6_1{display:flex;width:100%}._root_j8jt6_1 input{position:absolute;z-index:-1000;width:0;height:0;opacity:0}._root_j8jt6_1 label{flex:1 0 0;width:auto}._item_j8jt6_17{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:11px 15px;border:1px solid #E6E8EC;border-left:none;box-sizing:border-box}._firstItem_j8jt6_29{border-radius:48px 0 0 48px;border-left:1px solid #E6E8EC}._lastItem_j8jt6_34{border-radius:0 48px 48px 0}._text_j8jt6_38{width:max-content;font-size:16px;line-height:24px;font-weight:500;font-family:inherit}._rootCol_j8jt6_46{flex-wrap:wrap}._rootCol_j8jt6_46 label{min-width:50%}._rootCol_j8jt6_46 label:nth-child(1) ._item_j8jt6_17{border-radius:48px 0 0}._rootCol_j8jt6_46 label:nth-child(2) ._item_j8jt6_17{border-radius:0 48px 0 0}._rootCol_j8jt6_46 label:nth-child(3) ._item_j8jt6_17{border-top:none;border-left:1px solid #E6E8EC;border-radius:0 0 0 48px}._rootCol_j8jt6_46 label:nth-child(4) ._item_j8jt6_17{border-top:none;border-radius:0 0 48px}._rootCol_j8jt6_46 label:nth-child(n+5) ._item_j8jt6_17{display:none}._whiteRow_j8jt6_71 input:not(:checked)~._item_j8jt6_17{color:#141416}._whiteRow_j8jt6_71 input:checked~._item_j8jt6_17{background-color:#141416;color:#fff}@media (min-width: 1024px){._whiteRow_j8jt6_71 input:not(:checked)~._item_j8jt6_17:hover{background-color:#141416;color:#fff;opacity:.9}._whiteRow_j8jt6_71 input:checked~._item_j8jt6_17:hover{opacity:.9}._whiteRow_j8jt6_71 input:disabled~._item_j8jt6_17{opacity:.7}}@keyframes _swiperForward_iju0r_1{0%{background:#b1b5c3;border:1px solid #b1b5c3}50%{background:#777e90;border:1px solid #777e90}to{background:#015ff9;border:1px solid #015ff9}}@keyframes _swiperBackward_iju0r_1{0%{background:#015ff9;border:1px solid #015ff9}50%{background:#024ac0;border:1px solid #024AC0}to{background:#b1b5c3;border:1px solid #b1b5c3}}._switcherWrapper_iju0r_29{display:flex;justify-content:space-between;align-items:center;outline:none}._swiper_iju0r_36{position:relative;width:36px;height:20px;padding:1px;border-radius:50px;border:1px solid #b1b5c3;background:#b1b5c3;box-sizing:border-box;cursor:pointer;outline:none;color:green}._swiperActive_iju0r_50{animation:_swiperForward_iju0r_1 .3s ease;animation-fill-mode:forwards}._swiperInactive_iju0r_55{animation:_swiperBackward_iju0r_1 .3s ease;animation-fill-mode:forwards}._swiperPoint_iju0r_60{position:relative;left:0;width:16px;height:16px;border-radius:50%;background:#fff;box-sizing:border-box;transition:all .3s ease;box-shadow:0 4px 4px #1414163d}._swiperPointActive_iju0r_72{left:16px}._sortSelectWrapper_1l3mx_1{position:relative;width:max-content;-webkit-user-select:none;user-select:none;max-width:178px}._selectedOptions_1l3mx_8{display:flex;flex:1;min-width:92px;max-width:92px;width:100%;padding-right:1.5rem;justify-content:space-between;align-items:center;font-family:inherit;font-size:16px;line-height:24px;font-weight:400;padding:11px 40px 11px 15px;border-radius:48px;border:1px solid #B1B5C3;background:#fff;box-sizing:border-box;outline:none;overflow:hidden}._selectedOptions_1l3mx_8:hover{border:1px solid #777E90}._selectedOptionsOpened_1l3mx_33{border:1px solid #141416}._selectOptionsDisabled_1l3mx_37{pointer-events:none;background:#f4f5f6;border:1px solid #E6E8EC;color:#b1b5c3}._optionsList_1l3mx_44{position:absolute;top:52px;width:inherit;padding:12px 24px 24px;border:1px solid #e6e8ec;border-radius:24px;background:#fff;box-shadow:0 5px 12px #0000001f,0 21px 21px #0000001a;z-index:120;box-sizing:border-box;max-height:241px;overflow-y:scroll}._mobileOptionList_1l3mx_59{width:100%;padding:24px;background:#fff;box-sizing:border-box}._mobileSortHeader_1l3mx_66{display:flex;justify-content:space-between;align-items:center;font-size:18px;line-height:24px;font-weight:400;font-family:inherit;padding:24px;border-radius:24px 24px 0 0;border-bottom:1px solid #E6E8EC;background:#fff}._modalAddBody_1l3mx_80{bottom:0;left:0;width:100%}._inputWrapper_1l3mx_86{display:flex;align-items:center}._inputWrapper_1l3mx_86 input{cursor:pointer}._option_1l3mx_44{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-size:16px;line-height:24px;font-weight:500;cursor:pointer}._option_1l3mx_44:not(:last-child){border-bottom:1px solid #F4F5F6}._option_1l3mx_44:hover{opacity:.7}._icon_1l3mx_111{position:absolute;left:50%;transform:translate(-50%);pointer-events:none}._checkBox_1l3mx_118{width:24px;height:24px;border-radius:50%;border:1px solid #B1B5C3}._checkBoxChecked_1l3mx_125{display:flex;align-items:center;justify-content:center;border:1px solid #015FF9}._innerCheck_1l3mx_132{width:12px;height:12px;border-radius:50%;border:1px solid #015FF9;background:#015ff9}@media (min-width: 1024px){._selectedOptions_1l3mx_8{display:flex;flex:1;max-width:unset}._optionsList_1l3mx_44{top:52px;min-width:375px;right:0}._icon_1l3mx_111{left:unset;right:16px;transform:translate(0)}}._multiSelectWrapper_1hlrv_1{position:relative;width:100%;-webkit-user-select:none;user-select:none}._selectedOptions_1hlrv_7{display:flex;flex:1;padding-right:2.5rem;justify-content:space-between;align-items:center;font-family:inherit;font-size:16px;line-height:24px;font-weight:400;padding:11px 12px 11px 24px;border-radius:48px;border:1px solid #B1B5C3;background:#fff;box-sizing:border-box;outline:none}._selectedOptions_1hlrv_7:hover{border:1px solid #777E90}._selectedOptionsOpened_1hlrv_28{border:1px solid #141416}._selectOptionsDisabled_1hlrv_32{pointer-events:none;background:#f4f5f6;border:1px solid #E6E8EC;color:#b1b5c3}._optionsList_1hlrv_39{position:absolute;top:52px;width:inherit;padding:12px 24px;border:1px solid #e6e8ec;border-radius:24px;background:#fff;box-shadow:0 5px 12px #0000001f,0 21px 21px #0000001a;z-index:120;box-sizing:border-box;max-height:262px;overflow-y:scroll}._inputWrapper_1hlrv_54{display:flex;align-items:center}._inputWrapper_1hlrv_54 input{cursor:pointer}._option_1hlrv_39{display:flex;justify-content:space-between;align-items:center;padding:12px 0;cursor:pointer}._option_1hlrv_39:not(:last-child){border-bottom:1px solid #F4F5F6}._option_1hlrv_39:hover{opacity:.7}._icon_1hlrv_76{position:absolute;right:12px;pointer-events:none}._btnRound_7sz3m_1{display:flex;justify-content:center;align-items:center;border-radius:50%;padding:7px;box-sizing:border-box;cursor:pointer}._btnRound_7sz3m_1:disabled{opacity:.2}._btnRound_7sz3m_1:focus{outline:0}._small-size_7sz3m_17{width:32px;height:32px}._medium-size_7sz3m_22{width:40px;height:40px;padding:9px}._large-size_7sz3m_28{width:48px;height:48px;padding:11px}._whiteStroke_7sz3m_34{border:1px solid #e6e8ec;background-color:#fff}._whiteStroke_7sz3m_34:hover{border:1px solid #b1b5c3}._whiteStroke_7sz3m_34:active{border:1px solid #141416}@media (min-width: 1024px){._small-size_m_7sz3m_46{width:32px;height:32px}._medium-size_m_7sz3m_50{width:40px;height:40px;padding:9px}._large-size_m_7sz3m_55{width:48px;height:48px;padding:11px}}@media (min-width: 1440px){._small-size_l_7sz3m_62{width:32px;height:32px}._medium-size_l_7sz3m_66{width:40px;height:40px;padding:9px}._large-size_l_7sz3m_71{width:48px;height:48px;padding:11px}}._btnCommon_1cazw_1{position:relative;font-family:inherit;font-weight:500;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;text-decoration:none;cursor:pointer}._btnCommon_1cazw_1:disabled{opacity:.2}._btnLoading_1cazw_19{pointer-events:none}._isHidden_1cazw_23{visibility:hidden}._auto-width_1cazw_27{width:max-content}._full-width_1cazw_31{width:100%}._tiny-size_1cazw_35{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}._small-size_1cazw_43{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}._medium-size_1cazw_51{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._large-size_1cazw_59{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}._blue_1cazw_67{background:#015ff9;border:1px solid #015ff9;color:#fff}._blue_1cazw_67:hover{background:#024ac0;border:1px solid #024ac0}._blue_1cazw_67:active{background:#0645aa;border:1px solid #0645aa}._sokolniki_1cazw_81{background:#60663e;border:1px solid #60663e;color:#fff}._sokolniki_1cazw_81:hover{background:#494f29;border:1px solid #494f29}._sokolniki_1cazw_81:active{background:#303519;border:1px solid #303519}._black_1cazw_95{background:#141416;border:1px solid #141416;color:#fff}._black_1cazw_95:hover{background:#23262f;border:1px solid #353945}._black_1cazw_95:active{background:#353945;border:1px solid #777e90}._gray_1cazw_109{background:#f4f5f6;border:1px solid #f4f5f6;color:#777e90}._gray_1cazw_109:hover{background:#f4f5f6;border:1px solid #b1b5c3}._gray_1cazw_109:active{background:#e6e8ec;border:1px solid #b1b5c3}._whiteStroke_1cazw_123{background:#fff;border:1px solid #e6e8ec;color:#141416}._whiteStroke_1cazw_123:hover{border:1px solid #b1b5c3}._whiteStroke_1cazw_123:active{border:1px solid #141416}._whiteFilled_1cazw_135{background:#fff;border:1px solid #ffffff;color:#141416}._whiteFilled_1cazw_135:hover{background:#fcfcfd;border:1px solid #f4f5f6}._whiteFilled_1cazw_135:active{background:#f4f5f6;border:1px solid #f4f5f6}._shade_1cazw_149{background:#23262f;border:1px solid #23262F;color:#fff}@keyframes _LoaderSpin_1cazw_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._volodiyaLight_1cazw_163{background:#353945;border:1px solid #353945;color:#fff}._loader_1cazw_169{position:absolute;animation:_LoaderSpin_1cazw_1 1.4s infinite linear}@media (min-width: 1024px){._tiny-size_m_1cazw_175{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}._small-size_m_1cazw_182{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}._medium-size_m_1cazw_189{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._large-size_m_1cazw_196{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}}@media (min-width: 1440px){._tiny-size_l_1cazw_205{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}._small-size_l_1cazw_212{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}._medium-size_l_1cazw_219{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._large-size_l_1cazw_226{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}}._btnCommon_1act6_1{font-family:inherit;font-weight:500;display:flex;flex-direction:column;justify-content:space-between;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;cursor:pointer}._btnCommon_1act6_1:disabled{opacity:.2}._auto-width_1act6_18{width:auto}._full-width_1act6_22{width:100%}._small-size_1act6_26{font-size:10px;line-height:12px;min-height:56px;padding:7px 11px;gap:4px}._whiteFilled_1act6_34{background:#fff;border:1px solid #ffffff;color:#777e90}._whiteFilled_1act6_34:hover{background:#fcfcfd;border:1px solid #f4f5f6}._whiteFilled_1act6_34:active{background:#f4f5f6;border:1px solid #f4f5f6}._destination_1c7de_1{display:flex;justify-content:space-between;align-items:center;gap:8px;border-radius:110px;cursor:pointer}._destination_1c7de_1 input{border:0;clip:rect(0 0 0 0);clip-path:inset(100%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._destination_1c7de_1 span{display:block;width:8px;height:8px;border-radius:50%}._auto-width_1c7de_29{width:max-content}._full-width_1c7de_33{width:100%}._medium-size_1c7de_37{padding:9px 23px}._medium-size_1c7de_37 ._destinationName_1c7de_40{font-size:14px;line-height:20px;font-weight:500}._medium-size_1c7de_37 ._routeText_1c7de_45{font-size:12px;line-height:16px;font-weight:500}._large-size_1c7de_51{padding:11px 31px}._large-size_1c7de_51 ._destinationName_1c7de_40{font-size:16px;line-height:24px;font-weight:500}._large-size_1c7de_51 ._routeText_1c7de_45{font-size:14px;line-height:20px;font-weight:500}._whiteStroke_1c7de_65{color:#353945;border:1px solid #f4f5f6}._whiteStroke_1c7de_65:hover{border:1px solid #b1b5c3}._whiteStroke_1c7de_65:active{background-color:#e6e8ec}._whiteStroke_1c7de_65 ._routeText_1c7de_45,._whiteStroke_1c7de_65 ._routeWrapper_1c7de_78{color:#777e90}._whiteStroke_1c7de_65:has(input:checked){border:1px solid #141416;background-color:#141416;color:#fff}._whiteStroke_1c7de_65:has(input:checked):hover{border:1px solid #353945;background-color:#23262f}._whiteStroke_1c7de_65:has(input:checked):active{background-color:#353945;border:1px solid #777E90}._whiteStroke_1c7de_65:has(input:checked) ._routeText_1c7de_45{color:#b1b5c3}._whiteStroke_1c7de_65:has(input:checked) ._routeWrapper_1c7de_78{color:#b1b5c3}._routeWrapper_1c7de_78{display:flex;gap:4px;justify-content:space-between;align-items:center}@media (min-width: 1024px){._medium-size_m_1c7de_109{padding:9px 23px}._medium-size_m_1c7de_109 ._destinationName_1c7de_40{font-size:14px;line-height:20px;font-weight:500}._medium-size_m_1c7de_109 ._routeText_1c7de_45{font-size:12px;line-height:16px;font-weight:500}._large-size_m_1c7de_122{padding:11px 31px}._large-size_m_1c7de_122 ._destinationName_1c7de_40{font-size:16px;line-height:24px;font-weight:500}._large-size_m_1c7de_122 ._routeText_1c7de_45{font-size:14px;line-height:20px;font-weight:500}}@media (min-width: 1440px){._medium-size_l_1c7de_137{padding:9px 23px}._medium-size_l_1c7de_137 ._destinationName_1c7de_40{font-size:14px;line-height:20px;font-weight:500}._medium-size_l_1c7de_137 ._routeText_1c7de_45{font-size:12px;line-height:16px;font-weight:500}._large-size_l_1c7de_150{padding:11px 31px}._large-size_l_1c7de_150 ._destinationName_1c7de_40{font-size:16px;line-height:24px;font-weight:500}._large-size_l_1c7de_150 ._routeText_1c7de_45{font-size:14px;line-height:20px;font-weight:500}}._tagCommon_16jzf_1{font-family:inherit;font-weight:400;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px}._tagCommon_16jzf_1:disabled{opacity:.2}._auto-width_16jzf_16{width:max-content}._full-width_16jzf_20{width:100%}._medium-size_16jzf_24{font-size:14px;line-height:20px;min-height:40px;padding:10px 16px;gap:8px}._tiny-size_16jzf_32{font-size:10px;line-height:12px;min-height:24px;padding:5px;gap:4px}._small-size_16jzf_40{font-size:12px;line-height:16px;min-height:32px;padding:8px 16px;gap:4px}._preLarge-size_16jzf_48{font-size:14px;line-height:20px;min-height:44px;padding:12px 24px;gap:10px}._large-size_16jzf_56{font-size:16px;line-height:24px;min-height:48px;padding:12px 24px;gap:8px}._red_16jzf_64{background:#ec5353;border:1px solid #ec5353;color:#fff}._gray_16jzf_70{background:#f4f5f6;border:none;color:#353945}._shade_16jzf_76{background:#141416cc;border:none;color:#fff}._blackGrey_16jzf_82{background-color:#23262f;border:none;color:#e6e8ec}._chineseBlack_16jzf_88{background-color:#141416;border:none;color:#fff}._white_16jzf_94{background-color:#fff;border:solid 1px #E6E8EC;color:#141416;font-weight:500}@media (min-width: 1024px){._tiny-size_m_16jzf_102{font-size:10px;line-height:12px;min-height:24px;padding:5px;gap:4px}._medium-size_m_16jzf_109{font-size:14px;line-height:20px;min-height:40px;padding:10px 16px;gap:8px}._small-size_m_16jzf_116{font-size:12px;line-height:16px;min-height:32px;padding:8px 16px;gap:4px}._preLarge_size_m_16jzf_123{font-size:14px;line-height:20px;min-height:44px;padding:12px 24px;gap:10px}._large-size_m_16jzf_130{font-size:16px;line-height:24px;min-height:48px;padding:12px 24px;gap:8px}}@media (min-width: 1440px){._tiny-size_l_16jzf_139{font-size:10px;line-height:12px;min-height:24px;padding:5px;gap:4px}._medium-size_l_16jzf_146{font-size:14px;line-height:20px;min-height:40px;padding:10px 16px;gap:8px}._small-size_l_16jzf_153{font-size:12px;line-height:16px;min-height:32px;padding:8px 16px;gap:4px}._preLarge-size_l_16jzf_160{font-size:14px;line-height:20px;min-height:44px;padding:12px 24px;gap:10px}._large-size_l_16jzf_167{font-size:16px;line-height:24px;min-height:48px;padding:12px 24px;gap:8px}}._root_fi64k_1{display:flex}._gap-1_fi64k_5{gap:4px}._gap-2_fi64k_9{gap:8px}._gap-3_fi64k_13{gap:12px}._gap-4_fi64k_17{gap:16px}._gap-5_fi64k_21{gap:20px}._gap-6_fi64k_25{gap:24px}._gap-7_fi64k_29{gap:28px}._gap-8_fi64k_33{gap:32px}._gap-9_fi64k_37{gap:36px}._gap-10_fi64k_41{gap:40px}._gap-11_fi64k_45{gap:44px}._gap-12_fi64k_49{gap:48px}._gap-13_fi64k_53{gap:52px}._gap-14_fi64k_57{gap:56px}._gap-15_fi64k_61{gap:60px}._gap-16_fi64k_65{gap:64px}._fd-row_fi64k_69{flex-direction:row}._fd-row-reverse_fi64k_73{flex-direction:row-reverse}._fd-column_fi64k_77{flex-direction:column}._fd-column-reverse_fi64k_81{flex-direction:column-reverse}._w-nowrap_fi64k_85{flex-wrap:nowrap}._w-wrap_fi64k_89{flex-wrap:wrap}._w-wrap-reverse_fi64k_93{flex-wrap:wrap-reverse}._jc-flex-start_fi64k_97{justify-content:flex-start}._jc-flex-end_fi64k_101{justify-content:flex-end}._jc-center_fi64k_105{justify-content:center}._jc-space-between_fi64k_109{justify-content:space-between}._jc-space-around_fi64k_113{justify-content:space-around}._jc-space-evenly_fi64k_117{justify-content:space-evenly}._ai-stretch_fi64k_121{align-items:stretch}._ai-flex-start_fi64k_125{align-items:flex-start}._ai-flex-end_fi64k_129{align-items:flex-end}._ai-center_fi64k_133{align-items:center}._ai-baseline_fi64k_137{align-items:baseline}._auto-width_qoqna_1{width:max-content;min-width:100px}._full-width_qoqna_6{width:100%}._inputWrapper_qoqna_10{display:flex;gap:4px;border-radius:48px;padding:10px 23px;border:1px solid #b1b5c3;box-sizing:border-box}._inputWrapper_qoqna_10 input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}._inputWrapper_qoqna_10 input{min-width:50px;width:100%;border:none;background:transparent;font-size:16px;line-height:24px;box-sizing:border-box}._inputWrapper_qoqna_10 input:focus{outline:none}._inputWrapperPost_qoqna_34,._inputWrapperPre_qoqna_35{font-size:16px;line-height:24px;font-weight:400;padding:10px 12px 10px 23px}._inputWrapperPost_qoqna_34 input,._inputWrapperPre_qoqna_35 input{font-size:16px;line-height:24px}._light_qoqna_47{background:#fff;border:1px solid #b1b5c3}._light_qoqna_47 input{color:#141416}._light_qoqna_47 input::placeholder{color:#b1b5c3}._light_qoqna_47 span{color:#b1b5c3}._light_qoqna_47:hover{border:1px solid #777e90}._light_qoqna_47:has(input:focus){border:1px solid #141416}._light_qoqna_47:has(input:disabled){background:#f4f5f6;border:1px solid #e6e8ec}._light_qoqna_47:has(input:disabled) input{color:#b1b5c3}._light_qoqna_47:has(input:disabled) input::placeholder{color:#b1b5c3}._light_qoqna_47:has(input:disabled) span{color:#b1b5c3}._dark_qoqna_80{background:#23262f;border:1px solid #353945}._dark_qoqna_80 input{color:#fff}._dark_qoqna_80 input::placeholder{color:#777e90}._dark_qoqna_80 span{color:#777e90}._dark_qoqna_80:hover{border:1px solid #777e90}._dark_qoqna_80:has(input:focus){border:1px solid #ffffff}._dark_qoqna_80:has(input:disabled){background:#141416;border:1px solid #353945}._dark_qoqna_80:has(input:disabled) input{color:#353945}._dark_qoqna_80:has(input:disabled) input::placeholder{color:#353945}._dark_qoqna_80:has(input:disabled) span{color:#353945}._dark_qoqna_80:has(input:invalid){border:1px solid #ec5353}._inputWrapperError_qoqna_116{border:1px solid #ec5353}._fieldInputWrapper_14ghj_1{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%}._fieldInputWrapper_14ghj_1 label{font-family:inherit;font-size:12px;line-height:16px;font-weight:400;color:#141416}._root_oqb5i_1{display:flex;width:100%}._root_oqb5i_1>div:not(:first-of-type){border-left-width:.5px;border-top-left-radius:0;border-bottom-left-radius:0}._root_oqb5i_1>div:not(:last-of-type){border-right-width:.5px;border-top-right-radius:0;border-bottom-right-radius:0}._root_1x0xv_1{display:flex;padding:16px 0;gap:8px;width:max-content;box-sizing:border-box}._root_1x0xv_1 span{display:block;width:8px;height:8px;border-radius:50%}._metroColor_1x0xv_15{display:flex;align-items:center;font-size:14px;line-height:20px;font-weight:500;gap:8px;color:#353945}._route_1x0xv_25{display:flex;align-items:center;gap:4px;font-size:12px;line-height:16px;font-weight:500;color:#777e90}._auto_1x0xv_35{width:max-content}._full_1x0xv_39{width:100%}@media (min-width: 1024px){._root_1x0xv_1{padding:10px 24px;border-radius:110px;background:#f4f5f6}}._root_1ml5t_1{display:flex;padding:16px 0;gap:8px;width:max-content;box-sizing:border-box}._root_1ml5t_1 span{display:block;width:8px;height:8px;border-radius:50%}._metroColor_1ml5t_15{display:flex;align-items:center;font-size:16px;line-height:24px;font-weight:500;gap:8px;color:#353945}._route_1ml5t_25{display:flex;align-items:center;gap:4px;font-size:12px;line-height:16px;font-weight:500;color:#777e90}._auto_1ml5t_35{width:max-content}._full_1ml5t_39{width:100%}._root_1tlck_1{display:flex;flex-direction:column;padding:32px 24px 24px;border:1px solid #e6e8ec;border-radius:24px;box-sizing:border-box}._lotImageWrapper_1tlck_10{display:flex;justify-content:center}._lotInfoWrapper_1tlck_15{display:flex;flex-direction:column;gap:16px;margin:32px 0 0}._infoHeader_1tlck_22{font-family:inherit;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em;color:#141416}._decor_1tlck_31{display:none}._decor_1tlck_31 span{display:block}._lotPropertyListMobile_1tlck_38{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}._lotPropertyItem_1tlck_46{display:flex;justify-content:space-between;font-family:inherit;font-size:14px;line-height:20px;padding:8px 0;border-bottom:1px solid #F4F5F6}._lotPropertyItem_1tlck_46 div:first-child{font-weight:400;color:#353945}._lotPropertyItem_1tlck_46 div:last-child{font-weight:500;color:#141416}._lotPropertyListDesktop_1tlck_64{display:none}._lotPriceWrapper_1tlck_68{font-family:inherit;font-size:18px;line-height:24px;margin:16px 0 0}._discountWrapper_1tlck_75{display:flex;justify-content:space-between;align-items:center}._discountWrapper_1tlck_75>div:last-child{font-weight:500;color:#141416}._discountPrice_1tlck_85{display:flex;align-items:center;font-weight:400;gap:8px;color:#b1b5c3}._discountPrice_1tlck_85 span{text-decoration:line-through;text-decoration-color:#ec5353}._lotPricePerMetr_1tlck_97{width:max-content;display:none}._btnWrapper_1tlck_102{display:flex;gap:8px;margin:24px 0 0}._btnWrapper_1tlck_102>button:first-child{display:none}@media (min-width: 1024px){._root_1tlck_1{flex-direction:row;gap:32px;padding:31px 30px 31px 32px}._lotImageWrapper_1tlck_10 img{width:148px;height:106px}._lotInfoWrapper_1tlck_15{display:flex;flex-direction:column;gap:0;margin:0}._decor_1tlck_31{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-family:inherit;font-size:16px;line-height:24px;font-weight:500;color:#777e90}._lotPropertyListMobile_1tlck_38{display:none}._lotPropertyListDesktop_1tlck_64{display:flex;gap:8px;margin:16px 0 0}._lotPriceWrapper_1tlck_68{font-size:24px;line-height:32px;margin:0 0 0 auto}._discountWrapper_1tlck_75{gap:12px}._discountPrice_1tlck_85{font-size:14px;line-height:20px;gap:12px}._lotPricePerMetr_1tlck_97{display:block;margin:0 0 0 auto;font-size:14px;line-height:20px;font-weight:400;color:#353945}._btnWrapper_1tlck_102{justify-content:flex-end}._btnWrapper_1tlck_102>button:first-child{display:block}._btnWrapper_1tlck_102>button:last-child{width:max-content}}._wrapper_nzllw_1{display:flex;align-items:center;gap:8px}._logo_nzllw_7{width:81px;height:16px}._wrapperBetween_nzllw_12{width:100%;justify-content:space-between}._uk_nzllw_17{font-size:8px;line-height:8px;font-weight:600;letter-spacing:.11em;text-transform:uppercase}._uk_black_nzllw_24{color:#141416}._uk_white_nzllw_27{color:#fff}@media (min-width: 1024px){._logo_nzllw_7{width:101px;height:20px}._uk_nzllw_17{font-size:9px;line-height:10px}}._root_1cpat_1{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:102;overflow:auto;box-sizing:border-box}._modalBody_1cpat_15{position:absolute}._modalOverlay_1cpat_19{position:absolute;width:100%;height:100vh;background:#00000080}._isTransparentBack_1cpat_26{opacity:.5}
@@ -1,76 +0,0 @@
1
- import { jsxs as k, jsx as l } from "react/jsx-runtime";
2
- import { c as p } from "./index-DIxK0V-G.js";
3
- const v = "_sortSelectWrapper_1l3mx_1", b = "_selectedOptions_1l3mx_8", B = "_selectedOptionsOpened_1l3mx_33", C = "_selectOptionsDisabled_1l3mx_37", S = "_optionsList_1l3mx_44", f = "_mobileOptionList_1l3mx_59", g = "_mobileSortHeader_1l3mx_66", L = "_modalAddBody_1l3mx_80", W = "_inputWrapper_1l3mx_86", D = "_option_1l3mx_44", N = "_icon_1l3mx_111", y = "_checkBox_1l3mx_118", A = "_checkBoxChecked_1l3mx_125", H = "_innerCheck_1l3mx_132", o = {
4
- sortSelectWrapper: v,
5
- selectedOptions: b,
6
- selectedOptionsOpened: B,
7
- selectOptionsDisabled: C,
8
- optionsList: S,
9
- mobileOptionList: f,
10
- mobileSortHeader: g,
11
- modalAddBody: L,
12
- inputWrapper: W,
13
- option: D,
14
- icon: N,
15
- checkBox: y,
16
- checkBoxChecked: A,
17
- innerCheck: H
18
- }, i = p.bind(o), q = ({
19
- selectedOption: e,
20
- setSelectedOption: m,
21
- setIsOpen: s,
22
- containerRef: t,
23
- onBlur: r,
24
- onChange: a,
25
- isMobile: u,
26
- placeholder: x
27
- }) => {
28
- const d = (c) => (n) => {
29
- n.stopPropagation();
30
- const _ = (e == null ? void 0 : e.value) === c.value ? null : c;
31
- if (m(_), a) {
32
- const h = {
33
- ...n,
34
- target: { value: _ }
35
- };
36
- a(h);
37
- }
38
- s(!1);
39
- };
40
- return { handleDocumentClick: (c) => {
41
- t.current && !t.current.contains(c.target) && s(!1);
42
- }, handleBlur: (c) => {
43
- if (r) {
44
- const n = {
45
- ...c,
46
- target: { value: e }
47
- };
48
- r(n);
49
- }
50
- }, getInputValue: () => u ? "" : e ? e.label : x, getOption: (c) => /* @__PURE__ */ k(
51
- "div",
52
- {
53
- className: i(o.option, {
54
- [o.selected]: (e == null ? void 0 : e.value) === c.value
55
- }),
56
- onClick: d(c),
57
- children: [
58
- /* @__PURE__ */ l("div", { children: c.label }),
59
- /* @__PURE__ */ l(
60
- "div",
61
- {
62
- className: i(o.checkBox, {
63
- [o.checkBoxChecked]: (e == null ? void 0 : e.value) === c.value
64
- }),
65
- children: (e == null ? void 0 : e.value) === c.value && /* @__PURE__ */ l("div", { className: o.innerCheck })
66
- }
67
- )
68
- ]
69
- },
70
- c.value
71
- ) };
72
- };
73
- export {
74
- o as s,
75
- q as u
76
- };