stone-kit 0.0.1105 → 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 -6
  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,43 @@
1
+ function c(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ var o = { exports: {} };
5
+ var i;
6
+ function p() {
7
+ return i || (i = 1, (function(e) {
8
+ (function() {
9
+ var u = {}.hasOwnProperty;
10
+ function s() {
11
+ for (var t = "", r = 0; r < arguments.length; r++) {
12
+ var n = arguments[r];
13
+ n && (t = a(t, f(n)));
14
+ }
15
+ return t;
16
+ }
17
+ function f(t) {
18
+ if (typeof t == "string" || typeof t == "number")
19
+ return t;
20
+ if (typeof t != "object")
21
+ return "";
22
+ if (Array.isArray(t))
23
+ return s.apply(null, t);
24
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
25
+ return t.toString();
26
+ var r = "";
27
+ for (var n in t)
28
+ u.call(t, n) && t[n] && (r = a(r, n));
29
+ return r;
30
+ }
31
+ function a(t, r) {
32
+ return r ? t ? t + " " + r : t + r : t;
33
+ }
34
+ e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
35
+ })();
36
+ })(o)), o.exports;
37
+ }
38
+ var l = p();
39
+ const m = /* @__PURE__ */ c(l);
40
+ export {
41
+ m as c,
42
+ c as g
43
+ };
@@ -0,0 +1,5 @@
1
+ interface IMain {
2
+ children?: React.ReactNode;
3
+ }
4
+ declare const Layout: ({ children }: IMain) => import("react/jsx-runtime").JSX.Element;
5
+ export default Layout;
@@ -0,0 +1,11 @@
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { Header as s } from "./components/Header/Header.js";
3
+ const r = "_layout_lznvu_1", l = {
4
+ layout: r
5
+ }, n = ({ children: t }) => /* @__PURE__ */ a("div", { className: l.layout, children: [
6
+ /* @__PURE__ */ o(s, {}),
7
+ /* @__PURE__ */ o("main", { children: t })
8
+ ] });
9
+ export {
10
+ n as default
11
+ };
@@ -0,0 +1 @@
1
+ export declare const Header: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,141 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { Menu as w } from "../Menu.js";
3
+ import { useState as r } from "react";
4
+ import { NewIcon as a } from "../../../components/NewIcon/ui/NewIcon.js";
5
+ const m = "_root_15wfn_1", _ = "_wrap_15wfn_12", g = "_search_15wfn_32", x = "_searchInp_15wfn_47", y = "_searchIcon_15wfn_67", I = "_closeBtn_15wfn_73", t = {
6
+ root: m,
7
+ wrap: _,
8
+ search: g,
9
+ searchInp: x,
10
+ searchIcon: y,
11
+ closeBtn: I
12
+ }, C = () => {
13
+ const [l, o] = r(!1), [i, c] = r(""), h = (n) => {
14
+ c(n.target.value);
15
+ }, u = (n) => {
16
+ n.key === "Enter" && (window.location.href = "https://test.stone.ru");
17
+ }, d = () => {
18
+ o(!0);
19
+ }, f = () => {
20
+ setTimeout(() => {
21
+ document?.activeElement?.classList.contains("close-button") || o(!1);
22
+ }, 0);
23
+ }, p = () => {
24
+ c(""), o(!1);
25
+ };
26
+ return /* @__PURE__ */ s("nav", { className: t.root, children: [
27
+ /* @__PURE__ */ s("div", { className: t.wrap, children: [
28
+ /* @__PURE__ */ s(
29
+ "svg",
30
+ {
31
+ xmlns: "http://www.w3.org/2000/svg",
32
+ width: "200",
33
+ height: "60",
34
+ children: [
35
+ /* @__PURE__ */ e(
36
+ "rect",
37
+ {
38
+ width: "200",
39
+ height: "60",
40
+ fill: "transparent"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e(
44
+ "text",
45
+ {
46
+ x: "0",
47
+ y: "42",
48
+ fontFamily: "Arial, sans-serif",
49
+ fontSize: "40",
50
+ fill: "white",
51
+ children: "Stone"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ e(
55
+ "rect",
56
+ {
57
+ x: "110",
58
+ y: "10",
59
+ width: "85",
60
+ height: "40",
61
+ rx: "8",
62
+ ry: "8",
63
+ fill: "#f90"
64
+ }
65
+ ),
66
+ /* @__PURE__ */ e(
67
+ "text",
68
+ {
69
+ x: "115",
70
+ y: "42",
71
+ fontFamily: "Arial, sans-serif",
72
+ fontWeight: "bold",
73
+ fontSize: "40",
74
+ fill: "black",
75
+ children: "Hub"
76
+ }
77
+ )
78
+ ]
79
+ }
80
+ ),
81
+ /* @__PURE__ */ s("search", { className: t.search, children: [
82
+ /* @__PURE__ */ e(
83
+ "button",
84
+ {
85
+ style: {
86
+ margin: "unset",
87
+ border: "unset",
88
+ background: "unset",
89
+ padding: "unset",
90
+ cursor: "pointer"
91
+ },
92
+ onClick: (n) => {
93
+ n.preventDefault(), window.location.href = "https://test.stone.ru";
94
+ },
95
+ children: /* @__PURE__ */ e(
96
+ a,
97
+ {
98
+ additionalClass: t.searchIcon,
99
+ size: "24",
100
+ name: "search"
101
+ }
102
+ )
103
+ }
104
+ ),
105
+ /* @__PURE__ */ e(
106
+ "input",
107
+ {
108
+ type: "text",
109
+ value: i,
110
+ onChange: h,
111
+ onKeyDown: u,
112
+ onFocus: d,
113
+ onBlur: f,
114
+ className: t.searchInp,
115
+ placeholder: "Изучить stone-kit"
116
+ }
117
+ ),
118
+ l && /* @__PURE__ */ e(
119
+ "button",
120
+ {
121
+ onClick: p,
122
+ className: `${t.closeBtn} close-button`,
123
+ children: /* @__PURE__ */ e(
124
+ a,
125
+ {
126
+ strokeWidth: "2.5",
127
+ color: "#252525",
128
+ size: "18",
129
+ name: "close"
130
+ }
131
+ )
132
+ }
133
+ )
134
+ ] })
135
+ ] }),
136
+ /* @__PURE__ */ e(w, {})
137
+ ] });
138
+ };
139
+ export {
140
+ C as Header
141
+ };
@@ -0,0 +1 @@
1
+ export declare const Menu: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,109 @@
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { L as r } from "../../chunk-4WY6JWTD-BeveLKf_.js";
3
+ import { NewIcon as s } from "../../components/NewIcon/ui/NewIcon.js";
4
+ const c = "_root_9577c_1", a = "_linkWrap_9577c_8", i = {
5
+ root: c,
6
+ linkWrap: a
7
+ }, _ = () => {
8
+ const o = ({ to: l, title: n }) => /* @__PURE__ */ e(
9
+ r,
10
+ {
11
+ to: l,
12
+ className: i.linkWrap,
13
+ children: [
14
+ n,
15
+ /* @__PURE__ */ t(
16
+ s,
17
+ {
18
+ size: "24",
19
+ name: "play2",
20
+ deg: "90",
21
+ color: "white"
22
+ }
23
+ )
24
+ ]
25
+ }
26
+ );
27
+ return /* @__PURE__ */ e("div", { className: i.root, children: [
28
+ /* @__PURE__ */ t(
29
+ o,
30
+ {
31
+ to: "/buttons",
32
+ title: "КНОПКИ"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ t(
36
+ o,
37
+ {
38
+ to: "/modals",
39
+ title: "МОДАЛКИ"
40
+ }
41
+ ),
42
+ /* @__PURE__ */ t(
43
+ o,
44
+ {
45
+ to: "/tabs",
46
+ title: "ТАБЫ"
47
+ }
48
+ ),
49
+ /* @__PURE__ */ t(
50
+ o,
51
+ {
52
+ to: "/icons",
53
+ title: "ИКОНКИ"
54
+ }
55
+ ),
56
+ /* @__PURE__ */ t(
57
+ o,
58
+ {
59
+ to: "/lots",
60
+ title: "ЛОТЫ"
61
+ }
62
+ ),
63
+ /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ to: "/tags",
67
+ title: "ТЭГИ"
68
+ }
69
+ ),
70
+ /* @__PURE__ */ t(
71
+ o,
72
+ {
73
+ to: "/select",
74
+ title: "СЕЛЕКТ"
75
+ }
76
+ ),
77
+ /* @__PURE__ */ t(
78
+ o,
79
+ {
80
+ to: "/forms",
81
+ title: "ФОРМЫ"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ t(
85
+ o,
86
+ {
87
+ to: "/logo",
88
+ title: "ЛОГО"
89
+ }
90
+ ),
91
+ /* @__PURE__ */ t(
92
+ o,
93
+ {
94
+ to: "/input",
95
+ title: "ИНПУТЫ"
96
+ }
97
+ ),
98
+ /* @__PURE__ */ t(
99
+ o,
100
+ {
101
+ to: "/checkbox",
102
+ title: "ЧЕКБОКСЫ"
103
+ }
104
+ )
105
+ ] });
106
+ };
107
+ export {
108
+ _ as Menu
109
+ };
package/dist/main.d.ts CHANGED
@@ -17,5 +17,19 @@ export { MetroTag } from './components/MetroTag';
17
17
  export { LotCard } from './components/LotCard';
18
18
  export { Select } from './components/Select';
19
19
  export { useClientWidth } from './shared/useClientWidth';
20
+ export { deepEqual } from './shared/deepEqual.ts';
20
21
  export { SortSelect } from './components/SortSelect';
21
22
  export { SliderNavigation } from './components/SliderNavigation';
23
+ export { LotCardSkeleton } from './components/LotCardSkeleton';
24
+ export { ProjectCardSkeleton } from './components/ProjectCardSkeleton';
25
+ export { TabSelect } from './components/TabSelect';
26
+ export { ZoomControls } from './components/ZoomControls';
27
+ export { ModalForm } from './components/FormModal/ui/ModalForm.tsx';
28
+ export { CommercialLotCard } from './components/CommercialLotCard/CommercialLotCard.tsx';
29
+ export { ModalSuccess } from './components/ModalSuccess/ModalSuccess.tsx';
30
+ export { SummarySelect } from './components/SummarySelect';
31
+ export { FilterWithSave } from './components/FilterWithSave/ui/FilterWithSave.tsx';
32
+ export { CheckBox } from './components/CheckBox/CheckBox.tsx';
33
+ export { CheckBoxNew } from './components/CheckBoxNew/CheckBoxNew.tsx';
34
+ export { CheckboxSelect } from './components/CheckboxSelect/ui/CheckboxSelect.tsx';
35
+ export { sclMillion } from './shared/mlnRound.ts';
package/dist/main.js CHANGED
@@ -1,44 +1,72 @@
1
- import { Button as t } from "./components/Button/ui/Button.js";
2
- import { MobileButton as p } from "./components/mobileButton/ui/MobileButton.js";
3
- import { NewIcon as f } from "./components/NewIcon/ui/NewIcon.js";
4
- import { DestinationTab as n } from "./components/DestinationTab/ui/DestinationTab.js";
5
- import { RoundButton as a } from "./components/RoundButton/ui/RoundButton.js";
6
- import { Tag as l } from "./components/Tag/ui/Tag.js";
7
- import { Switcher as S } from "./components/Switcher/ui/Switcher.js";
8
- import { Text as T } from "./components/Text/ui/Text.js";
9
- import { Flex as I } from "./components/Flex/ui/Flex.js";
10
- import { Input as h } from "./components/Input/ui/Input.js";
11
- import { Modal as w } from "./components/Modal/ui/Modal.js";
12
- import { FieldInput as M } from "./components/FieldInput/ui/FieldInput.js";
13
- import { TabSwitcher as F } from "./components/TabSwitcher/ui/TabSwitcher.js";
14
- import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
15
- import { Logo as D } from "./components/Logo/ui/Logo.js";
16
- import { MetroTag as R } from "./components/MetroTag/ui/MetroTag.js";
17
- import { LotCard as j } from "./components/LotCard/ui/LotCard.js";
18
- import { Select as q } from "./components/Select/ui/Select.js";
19
- import { useClientWidth as z } from "./shared/useClientWidth.js";
20
- import { SortSelect as E } from "./components/SortSelect/ui/SortSelect.js";
21
- import { SliderNavigation as J } from "./components/SliderNavigation/ui/SliderNavigation.js";
1
+ import { useClientWidth as e } from "./shared/useClientWidth.js";
2
+ import { deepEqual as m } from "./shared/deepEqual.js";
3
+ import { ModalForm as x } from "./components/FormModal/ui/ModalForm.js";
4
+ import { CommercialLotCard as l } from "./components/CommercialLotCard/CommercialLotCard.js";
5
+ import { ModalSuccess as c } from "./components/ModalSuccess/ModalSuccess.js";
6
+ import { FilterWithSave as n } from "./components/FilterWithSave/ui/FilterWithSave.js";
7
+ import { CheckBox as d } from "./components/CheckBox/CheckBox.js";
8
+ import { CheckBoxNew as C } from "./components/CheckBoxNew/CheckBoxNew.js";
9
+ import { CheckboxSelect as s } from "./components/CheckboxSelect/ui/CheckboxSelect.js";
10
+ import { sclMillion as T } from "./shared/mlnRound.js";
11
+ import { Button as k } from "./components/Button/ui/Button.js";
12
+ import { MobileButton as g } from "./components/mobileButton/ui/MobileButton.js";
13
+ import { NewIcon as F } from "./components/NewIcon/ui/NewIcon.js";
14
+ import { DestinationTab as L } from "./components/DestinationTab/ui/DestinationTab.js";
15
+ import { RoundButton as v } from "./components/RoundButton/ui/RoundButton.js";
16
+ import { Tag as j } from "./components/Tag/ui/Tag.js";
17
+ import { Switcher as y } from "./components/Switcher/ui/Switcher.js";
18
+ import { Text as E } from "./components/Text/ui/Text.js";
19
+ import { Flex as P } from "./components/Flex/ui/Flex.js";
20
+ import { Input as Z } from "./components/Input/ui/Input.js";
21
+ import { Modal as A } from "./components/Modal/ui/Modal.js";
22
+ import { FieldInput as J } from "./components/FieldInput/ui/FieldInput.js";
23
+ import { TabSwitcher as O } from "./components/TabSwitcher/ui/TabSwitcher.js";
24
+ import { GroupedInputs as U } from "./components/GroupedInput/ui/GroupedInputs.js";
25
+ import { Logo as X } from "./components/Logo/ui/Logo.js";
26
+ import { MetroTag as _ } from "./components/MetroTag/ui/MetroTag.js";
27
+ import { LotCard as oo } from "./components/LotCard/ui/LotCard.js";
28
+ import { Select as eo } from "./components/Select/ui/Select.js";
29
+ import { SortSelect as mo } from "./components/SortSelect/ui/SortSelect.js";
30
+ import { SliderNavigation as xo } from "./components/SliderNavigation/ui/SliderNavigation.js";
31
+ import { LotCardSkeleton as lo } from "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
32
+ import { ProjectCardSkeleton as co } from "./components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js";
33
+ import { TabSelect as no } from "./components/TabSelect/ui/TabSelect.js";
34
+ import { ZoomControls as uo } from "./components/ZoomControls/ui/ZoomControls.js";
35
+ import { SummarySelect as ho } from "./components/SummarySelect/ui/SummarySelect.js";
22
36
  export {
23
- t as Button,
24
- n as DestinationTab,
25
- M as FieldInput,
26
- I as Flex,
27
- N as GroupedInputs,
28
- h as Input,
29
- D as Logo,
30
- j as LotCard,
31
- R as MetroTag,
32
- p as MobileButton,
33
- w as Modal,
34
- f as NewIcon,
35
- a as RoundButton,
36
- q as Select,
37
- J as SliderNavigation,
38
- E as SortSelect,
39
- S as Switcher,
40
- F as TabSwitcher,
41
- l as Tag,
42
- T as Text,
43
- z as useClientWidth
37
+ k as Button,
38
+ d as CheckBox,
39
+ C as CheckBoxNew,
40
+ s as CheckboxSelect,
41
+ l as CommercialLotCard,
42
+ L as DestinationTab,
43
+ J as FieldInput,
44
+ n as FilterWithSave,
45
+ P as Flex,
46
+ U as GroupedInputs,
47
+ Z as Input,
48
+ X as Logo,
49
+ oo as LotCard,
50
+ lo as LotCardSkeleton,
51
+ _ as MetroTag,
52
+ g as MobileButton,
53
+ A as Modal,
54
+ x as ModalForm,
55
+ c as ModalSuccess,
56
+ F as NewIcon,
57
+ co as ProjectCardSkeleton,
58
+ v as RoundButton,
59
+ eo as Select,
60
+ xo as SliderNavigation,
61
+ mo as SortSelect,
62
+ ho as SummarySelect,
63
+ y as Switcher,
64
+ no as TabSelect,
65
+ O as TabSwitcher,
66
+ j as Tag,
67
+ E as Text,
68
+ uo as ZoomControls,
69
+ m as deepEqual,
70
+ T as sclMillion,
71
+ e as useClientWidth
44
72
  };
@@ -0,0 +1 @@
1
+ export declare const ButtonsPage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,106 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { useState as s } from "react";
3
+ import { Button as m } from "../../components/Button/ui/Button.js";
4
+ import { RoundButton as c } from "../../components/RoundButton/ui/RoundButton.js";
5
+ import { NewIcon as d } from "../../components/NewIcon/ui/NewIcon.js";
6
+ import { ZoomControls as h } from "../../components/ZoomControls/ui/ZoomControls.js";
7
+ import { SliderNavigation as p } from "../../components/SliderNavigation/ui/SliderNavigation.js";
8
+ import { Switcher as l } from "../../components/Switcher/ui/Switcher.js";
9
+ const u = "_root_iex42_1", v = "_buttonsWrapper_iex42_11", t = {
10
+ root: u,
11
+ buttonsWrapper: v
12
+ }, S = () => {
13
+ const [i, r] = s(!0), [n, a] = s(!1);
14
+ return /* @__PURE__ */ o("div", { className: t.root, children: [
15
+ /* @__PURE__ */ o("div", { className: t.clearButton, children: [
16
+ /* @__PURE__ */ e("h2", { children: "Обычная" }),
17
+ /* @__PURE__ */ e("div", { className: t.buttonsWrapper, children: /* @__PURE__ */ e(
18
+ m,
19
+ {
20
+ as: "button",
21
+ size: "large",
22
+ variant: "blue",
23
+ children: "Приветики"
24
+ }
25
+ ) })
26
+ ] }),
27
+ /* @__PURE__ */ o("div", { className: t.clearButton, children: [
28
+ /* @__PURE__ */ e("h2", { children: "Круглая" }),
29
+ /* @__PURE__ */ o("div", { className: t.buttonsWrapper, children: [
30
+ /* @__PURE__ */ e(
31
+ c,
32
+ {
33
+ variant: i ? "blackFill" : "whiteStroke",
34
+ size: "tiny",
35
+ onClick: () => r(!i),
36
+ children: /* @__PURE__ */ e(
37
+ d,
38
+ {
39
+ name: "close",
40
+ size: "12",
41
+ color: i ? "#fff" : "#000"
42
+ }
43
+ )
44
+ }
45
+ ),
46
+ /* @__PURE__ */ e(
47
+ c,
48
+ {
49
+ iconName: "close",
50
+ variant: i ? "blackFill" : "whiteStroke",
51
+ deg: "90",
52
+ size: "tiny",
53
+ size_l: "small",
54
+ onClick: () => r(!i)
55
+ }
56
+ )
57
+ ] })
58
+ ] }),
59
+ /* @__PURE__ */ o("div", { children: [
60
+ /* @__PURE__ */ e("h2", { children: "Зум" }),
61
+ /* @__PURE__ */ e(
62
+ h,
63
+ {
64
+ size: "medium",
65
+ zoomIn: () => {
66
+ },
67
+ zoomOut: () => {
68
+ }
69
+ }
70
+ )
71
+ ] }),
72
+ /* @__PURE__ */ o("div", { children: [
73
+ /* @__PURE__ */ e("h2", { children: "Слайдер" }),
74
+ /* @__PURE__ */ e(
75
+ p,
76
+ {
77
+ goNext: () => {
78
+ },
79
+ arr: [1, 2, 3],
80
+ indexSlide: 0,
81
+ goPrev: () => {
82
+ }
83
+ }
84
+ )
85
+ ] }),
86
+ /* @__PURE__ */ e(
87
+ l,
88
+ {
89
+ isActive: i,
90
+ onClick: () => r(!i),
91
+ children: "В продаже"
92
+ }
93
+ ),
94
+ /* @__PURE__ */ e(
95
+ l,
96
+ {
97
+ isActive: n,
98
+ onClick: () => a(!n),
99
+ children: "В продаже"
100
+ }
101
+ )
102
+ ] });
103
+ };
104
+ export {
105
+ S as ButtonsPage
106
+ };
@@ -0,0 +1 @@
1
+ export declare const CheckBoxPage: () => import("react/jsx-runtime").JSX.Element;