stone-kit 0.0.887 → 0.0.889

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 (146) hide show
  1. package/dist/App.js +10 -0
  2. package/dist/ButtonState.module-DtW3aevR.js +8 -0
  3. package/dist/FilterWithSave-Bp6rH8Pe.js +2230 -0
  4. package/dist/Menu-CgCfinVZ.js +513 -0
  5. package/dist/Option-BVIm7wOW.js +83 -0
  6. package/dist/PinTrans-D6OZq76b.js +10 -0
  7. package/dist/Router.js +103 -0
  8. package/dist/SmallFilter-C-VKnbkP.js +10 -0
  9. package/dist/components/Button/index.js +4 -0
  10. package/dist/components/Button/ui/Button.js +94 -0
  11. package/dist/components/Button/ui/Button.types.js +15 -0
  12. package/dist/components/CheckBox/CheckBox.js +84 -0
  13. package/dist/components/CheckBox/CheckBox.types.js +1 -0
  14. package/dist/components/CheckBox/index.js +4 -0
  15. package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
  16. package/dist/components/CheckBoxNew/CheckBoxNew.js +45 -0
  17. package/dist/components/CheckboxSelect/index.js +4 -0
  18. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +51 -0
  19. package/dist/components/DestinationTab/index.js +4 -0
  20. package/dist/components/DestinationTab/ui/DestinationTab.js +75 -0
  21. package/dist/components/DestinationTab/ui/DestinationTab.types.js +6 -0
  22. package/dist/components/FieldInput/index.js +4 -0
  23. package/dist/components/FieldInput/ui/FieldInput.js +22 -0
  24. package/dist/components/FieldInput/ui/FieldInput.types.js +1 -0
  25. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +28 -0
  26. package/dist/components/FilterWithSave/ui/FilterWithSave.js +9 -0
  27. package/dist/components/Flex/index.js +4 -0
  28. package/dist/components/Flex/ui/Flex.js +68 -0
  29. package/dist/components/Flex/ui/Flex.types.js +1 -0
  30. package/dist/components/FormModal/ui/ModalForm.js +30 -0
  31. package/dist/components/FormModal/utils/reg.js +6 -0
  32. package/dist/components/GroupedInput/index.js +4 -0
  33. package/dist/components/GroupedInput/ui/GroupedInputs.js +8 -0
  34. package/dist/components/GroupedInput/ui/GroupedInputs.types.js +1 -0
  35. package/dist/components/Input/index.js +4 -0
  36. package/dist/components/Input/ui/Input.js +3346 -0
  37. package/dist/components/Input/ui/Input.types.js +1 -0
  38. package/dist/components/Logo/index.js +4 -0
  39. package/dist/components/Logo/ui/Logo.js +63 -0
  40. package/dist/components/Logo/ui/Logo.types.js +13 -0
  41. package/dist/components/LotCard/hooks/useLotCard.js +31 -0
  42. package/dist/components/LotCard/index.js +4 -0
  43. package/dist/components/LotCard/ui/LotCard.js +11 -0
  44. package/dist/components/LotCard/ui/LotCard.types.d.ts +163 -70
  45. package/dist/components/LotCard/ui/LotCard.types.js +1 -0
  46. package/dist/components/LotCard/utils/checkBedroomsCount.js +20 -0
  47. package/dist/components/LotCard/utils/const.js +11 -0
  48. package/dist/components/LotCard/utils/formatPrice.js +11 -0
  49. package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
  50. package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
  51. package/dist/components/LotCardSkeleton/index.js +4 -0
  52. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
  53. package/dist/components/MetroLabel/ui/MetroLabel.js +44 -0
  54. package/dist/components/MetroLabel/ui/MetroLabel.types.js +1 -0
  55. package/dist/components/MetroTag/index.js +4 -0
  56. package/dist/components/MetroTag/ui/MetroTag.js +142 -0
  57. package/dist/components/MetroTag/ui/MetroTag.types.js +1 -0
  58. package/dist/components/Modal/index.js +4 -0
  59. package/dist/components/Modal/ui/Modal.js +77 -0
  60. package/dist/components/Modal/ui/Modal.types.js +1 -0
  61. package/dist/components/ModalSuccess/ModalSuccess.js +61 -0
  62. package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
  63. package/dist/components/NewIcon/icons/PinTrans.js +6 -0
  64. package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
  65. package/dist/components/NewIcon/index.js +4 -0
  66. package/dist/components/NewIcon/ui/NewIcon.js +319 -0
  67. package/dist/components/NewIcon/ui/NewIcon.types.js +1 -0
  68. package/dist/components/NewIcon/ui/iconTypes.js +60 -0
  69. package/dist/components/ProjectCardSkeleton/index.js +4 -0
  70. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +34 -0
  71. package/dist/components/RoundButton/index.js +4 -0
  72. package/dist/components/RoundButton/ui/RoundButton.js +73 -0
  73. package/dist/components/RoundButton/ui/RoundButton.types.js +16 -0
  74. package/dist/components/Select/index.js +4 -0
  75. package/dist/components/Select/model/selectMode.js +49 -0
  76. package/dist/components/Select/ui/Category.js +76 -0
  77. package/dist/components/Select/ui/Option.js +7 -0
  78. package/dist/components/Select/ui/Select.js +179 -0
  79. package/dist/components/Select/ui/Select.types.js +1 -0
  80. package/dist/components/SliderNavigation/index.js +4 -0
  81. package/dist/components/SliderNavigation/ui/SliderNavigation.js +65 -0
  82. package/dist/components/SliderNavigation/ui/SliderNavigation.types.js +1 -0
  83. package/dist/components/SortSelect/hooks/useSortSelect.js +6 -0
  84. package/dist/components/SortSelect/index.js +4 -0
  85. package/dist/components/SortSelect/ui/SortSelect.js +29 -0
  86. package/dist/components/SortSelect/ui/SortSelect.types.js +1 -0
  87. package/dist/components/SummarySelect/index.js +4 -0
  88. package/dist/components/SummarySelect/ui/SummarySelect.js +128 -0
  89. package/dist/components/Switcher/index.js +4 -0
  90. package/dist/components/Switcher/ui/Switcher.js +49 -0
  91. package/dist/components/Switcher/ui/Switcher.types.js +1 -0
  92. package/dist/components/TabSelect/index.js +4 -0
  93. package/dist/components/TabSelect/ui/TabSelect.js +49 -0
  94. package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
  95. package/dist/components/TabSwitcher/index.js +4 -0
  96. package/dist/components/TabSwitcher/ui/TabSwitcher.js +28 -0
  97. package/dist/components/TabSwitcher/ui/TabSwitcher.types.js +1 -0
  98. package/dist/components/Tag/index.js +4 -0
  99. package/dist/components/Tag/ui/Tag.js +79 -0
  100. package/dist/components/Tag/ui/Tag.types.js +20 -0
  101. package/dist/components/Text/index.js +4 -0
  102. package/dist/components/Text/ui/Text.js +22 -0
  103. package/dist/components/Text/ui/Text.types.js +1 -0
  104. package/dist/components/TextArea/TextArea.js +19 -0
  105. package/dist/components/TextArea/TextArea.types.js +1 -0
  106. package/dist/components/ZoomControls/index.js +4 -0
  107. package/dist/components/ZoomControls/ui/ZoomControls.js +31 -0
  108. package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
  109. package/dist/components/mobileButton/index.js +4 -0
  110. package/dist/components/mobileButton/ui/MobileButton.js +64 -0
  111. package/dist/components/mobileButton/ui/MobileButton.types.js +6 -0
  112. package/dist/index-DQgqDqGf.js +34046 -0
  113. package/dist/index-DmANy9jd.js +890 -0
  114. package/dist/index-rKuIKazb.js +45 -0
  115. package/dist/layout/Layout.js +11 -0
  116. package/dist/layout/components/Header/Header.js +164 -0
  117. package/dist/layout/components/Menu.js +28 -0
  118. package/dist/main.js +62 -7727
  119. package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +121 -0
  120. package/dist/pages/ButtonsPage/Buttons.js +134 -0
  121. package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
  122. package/dist/pages/FormsPage/FormsPage.js +81 -0
  123. package/dist/pages/HomePage/HomePage.js +7 -0
  124. package/dist/pages/IconsPage/IconsPage.js +41 -0
  125. package/dist/pages/InputPage/InputPage.js +35 -0
  126. package/dist/pages/LogoPage/LogoPage.js +38 -0
  127. package/dist/pages/LotsPage/LotsPage.js +75 -0
  128. package/dist/pages/LotsPage/const.d.ts +4 -0
  129. package/dist/pages/LotsPage/const.js +210 -0
  130. package/dist/pages/ModalsPage/ModalPage.js +130 -0
  131. package/dist/pages/SelectPage/SelectPage.js +175 -0
  132. package/dist/pages/SelectPage/const.js +35 -0
  133. package/dist/pages/TabsPage/TabsPage.js +155 -0
  134. package/dist/pages/TagsPage/TagsPage.js +75 -0
  135. package/dist/shared/checkLargeOffice.js +12 -0
  136. package/dist/shared/deepEqual.js +16 -0
  137. package/dist/shared/useClientWidth.js +14 -0
  138. package/dist/stories/Button.js +23 -0
  139. package/dist/stories/Button.stories.js +50 -0
  140. package/dist/stories/Header.js +44 -0
  141. package/dist/stories/Header.stories.js +28 -0
  142. package/dist/stories/Page.js +58 -0
  143. package/dist/stories/Page.stories.js +22 -0
  144. package/dist/style.css +1 -1
  145. package/dist/useSortSelect-CjZXLFOG.js +80 -0
  146. package/package.json +1 -2
@@ -0,0 +1,4 @@
1
+ import { S as e } from "../../FilterWithSave-Bp6rH8Pe.js";
2
+ export {
3
+ e as TabSwitcher
4
+ };
@@ -0,0 +1,28 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { S as y } from "../../../FilterWithSave-Bp6rH8Pe.js";
4
+ import "../../Text/ui/Text.js";
5
+ import "../../../index-rKuIKazb.js";
6
+ import "../../Button/ui/Button.js";
7
+ import "../../mobileButton/ui/MobileButton.js";
8
+ import "../../NewIcon/ui/NewIcon.js";
9
+ import "../../DestinationTab/ui/DestinationTab.js";
10
+ import "../../RoundButton/ui/RoundButton.js";
11
+ import "../../Tag/ui/Tag.js";
12
+ import "../../Switcher/ui/Switcher.js";
13
+ import "../../Flex/ui/Flex.js";
14
+ import "../../Input/ui/Input.js";
15
+ import "react-dom";
16
+ import "../../GroupedInput/ui/GroupedInputs.js";
17
+ import "../../MetroTag/ui/MetroTag.js";
18
+ import "../../Select/ui/Select.js";
19
+ import "../../../shared/useClientWidth.js";
20
+ import "../../SliderNavigation/ui/SliderNavigation.js";
21
+ import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
22
+ import "../../TabSelect/ui/TabSelect.js";
23
+ import "../../CheckBox/CheckBox.js";
24
+ import "../../CheckBoxNew/CheckBoxNew.js";
25
+ import "../../CheckboxSelect/ui/CheckboxSelect.js";
26
+ export {
27
+ y as TabSwitcher
28
+ };
@@ -0,0 +1,4 @@
1
+ import { Tag as a } from "./ui/Tag.js";
2
+ export {
3
+ a as Tag
4
+ };
@@ -0,0 +1,79 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as r } from "../../../index-rKuIKazb.js";
3
+ const o = "_tagCommon_2s5ss_1", h = "_red_2s5ss_108", p = "_gray_2s5ss_114", c = "_shade_2s5ss_120", y = "_blackGrey_2s5ss_126", g = "_chineseBlack_2s5ss_132", x = "_white_2s5ss_139", d = "_fullWhite_2s5ss_146", u = "_shadeWhite_2s5ss_153", k = "_transparent_2s5ss_161", w = "_transWhite_2s5ss_168", G = "_whiteGrayStroke_2s5ss_176", W = "_whiteGray_2s5ss_176", b = "_lightGray_2s5ss_190", f = "_blackStroke_2s5ss_196", L = "_lightBlue_2s5ss_203", B = "_preLarge_size_m_2s5ss_238", s = {
4
+ tagCommon: o,
5
+ "auto-width": "_auto-width_2s5ss_20",
6
+ "full-width": "_full-width_2s5ss_24",
7
+ "medium-size": "_medium-size_2s5ss_28",
8
+ "mini-size": "_mini-size_2s5ss_36",
9
+ "tiny-size": "_tiny-size_2s5ss_44",
10
+ "small-size": "_small-size_2s5ss_52",
11
+ "preLarge-size": "_preLarge-size_2s5ss_60",
12
+ "large-size": "_large-size_2s5ss_68",
13
+ "tiny-7px-size": "_tiny-7px-size_2s5ss_76",
14
+ "tiny-10px-size": "_tiny-10px-size_2s5ss_84",
15
+ "small-10px-size": "_small-10px-size_2s5ss_92",
16
+ "small-13px-size": "_small-13px-size_2s5ss_100",
17
+ red: h,
18
+ gray: p,
19
+ shade: c,
20
+ blackGrey: y,
21
+ chineseBlack: g,
22
+ white: x,
23
+ fullWhite: d,
24
+ shadeWhite: u,
25
+ transparent: k,
26
+ transWhite: w,
27
+ whiteGrayStroke: G,
28
+ whiteGray: W,
29
+ lightGray: b,
30
+ blackStroke: f,
31
+ lightBlue: L,
32
+ "mini-size_m": "_mini-size_m_2s5ss_210",
33
+ "tiny-size_m": "_tiny-size_m_2s5ss_217",
34
+ "medium-size_m": "_medium-size_m_2s5ss_224",
35
+ "small-size_m": "_small-size_m_2s5ss_231",
36
+ preLarge_size_m: B,
37
+ "large-size_m": "_large-size_m_2s5ss_245",
38
+ "tiny-7px-size_m": "_tiny-7px-size_m_2s5ss_252",
39
+ "tiny-10px-size_m": "_tiny-10px-size_m_2s5ss_259",
40
+ "small-10px-size_m": "_small-10px-size_m_2s5ss_266",
41
+ "small-13px-size_m": "_small-13px-size_m_2s5ss_273",
42
+ "mini-size_l": "_mini-size_l_2s5ss_282",
43
+ "tiny-size_l": "_tiny-size_l_2s5ss_289",
44
+ "medium-size_l": "_medium-size_l_2s5ss_296",
45
+ "small-size_l": "_small-size_l_2s5ss_303",
46
+ "preLarge-size_l": "_preLarge-size_l_2s5ss_310",
47
+ "large-size_l": "_large-size_l_2s5ss_317",
48
+ "tiny-7px-size_l": "_tiny-7px-size_l_2s5ss_324",
49
+ "tiny-10px-size_l": "_tiny-10px-size_l_2s5ss_331",
50
+ "small-10px-size_l": "_small-10px-size_l_2s5ss_338",
51
+ "small-13px-size_l": "_small-13px-size_l_2s5ss_345"
52
+ }, S = r.bind(s), N = ({
53
+ size: _ = "medium",
54
+ size_m: e,
55
+ size_l: i,
56
+ children: l = "",
57
+ variant: t = "gray",
58
+ width: a = "auto",
59
+ additionalClass: m = "",
60
+ ...z
61
+ }) => /* @__PURE__ */ n(
62
+ "div",
63
+ {
64
+ className: S(
65
+ s.tagCommon,
66
+ s[`${_}-size`],
67
+ s[`${e}-size_m`],
68
+ s[`${i}-size_l`],
69
+ s[`${t}`],
70
+ s[`${a}-width`],
71
+ m
72
+ ),
73
+ ...z,
74
+ children: l
75
+ }
76
+ );
77
+ export {
78
+ N as Tag
79
+ };
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ red: "red",
3
+ gray: "gray",
4
+ white: "white",
5
+ shade: "shade",
6
+ blackGrey: "blackGrey",
7
+ chineseBlack: "chineseBlack",
8
+ fullWhite: "fullWhite",
9
+ transparent: "transparent",
10
+ shadeWhite: "shadeWhite",
11
+ transWhite: "transWhite",
12
+ whiteGrayStroke: "whiteGrayStroke",
13
+ blackStroke: "blackStroke",
14
+ lightBlue: "lightBlue",
15
+ lightGray: "lightGray",
16
+ whiteGray: "whiteGray"
17
+ };
18
+ export {
19
+ e as TAG_VARIANTS
20
+ };
@@ -0,0 +1,4 @@
1
+ import { Text as r } from "./ui/Text.js";
2
+ export {
3
+ r as Text
4
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as _ } from "../../../index-rKuIKazb.js";
3
+ const i = "_root_wkh0k_1", o = {
4
+ root: i
5
+ }, e = _.bind(o), f = ({ children: m, className: r, additionalClass: t = "", html: s, ...n }) => s ? /* @__PURE__ */ c(
6
+ "div",
7
+ {
8
+ className: e(o.root, r, t),
9
+ ...n,
10
+ dangerouslySetInnerHTML: { __html: s }
11
+ }
12
+ ) : /* @__PURE__ */ c(
13
+ "div",
14
+ {
15
+ className: e(o.root, r, t),
16
+ ...n,
17
+ children: m
18
+ }
19
+ );
20
+ export {
21
+ f as Text
22
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { c as m } from "../../index-rKuIKazb.js";
4
+ const _ = "_root_v6f19_12", t = {
5
+ "auto-width": "_auto-width_v6f19_1",
6
+ "full-width": "_full-width_v6f19_6",
7
+ root: _
8
+ }, c = m.bind(t), d = f(
9
+ ({
10
+ width: o = "auto",
11
+ additionalClass: r = "",
12
+ children: e = "",
13
+ ...a
14
+ }, s) => /* @__PURE__ */ i("textarea", { className: c(t.root, t[`${o}-width`], r), ref: s, style: { resize: "none" }, ...a, children: e })
15
+ );
16
+ d.displayName = "TextArea";
17
+ export {
18
+ d as TextArea
19
+ };
@@ -0,0 +1,4 @@
1
+ import { ZoomControls as m } from "./ui/ZoomControls.js";
2
+ export {
3
+ m as ZoomControls
4
+ };
@@ -0,0 +1,31 @@
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import { RoundButton as s } from "../../RoundButton/ui/RoundButton.js";
3
+ const r = "_root_1gn8f_1", u = "_plusBtn_1gn8f_6", c = "_minusBtn_1gn8f_11", o = {
4
+ root: r,
5
+ plusBtn: u,
6
+ minusBtn: c
7
+ }, _ = ({ size: n = "medium", zoomIn: i, zoomOut: l }) => /* @__PURE__ */ m("div", { className: o.root, children: [
8
+ /* @__PURE__ */ t(
9
+ s,
10
+ {
11
+ iconName: "plus",
12
+ size: n,
13
+ color: "#141416",
14
+ additionalClass: o.plusBtn,
15
+ onClick: i
16
+ }
17
+ ),
18
+ /* @__PURE__ */ t(
19
+ s,
20
+ {
21
+ iconName: "minus",
22
+ size: n,
23
+ color: "#141416",
24
+ additionalClass: o.minusBtn,
25
+ onClick: l
26
+ }
27
+ )
28
+ ] });
29
+ export {
30
+ _ as ZoomControls
31
+ };
@@ -0,0 +1,4 @@
1
+ import { MobileButton as e } from "./ui/MobileButton.js";
2
+ export {
3
+ e as MobileButton
4
+ };
@@ -0,0 +1,64 @@
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
+ import { c as u } from "../../../index-rKuIKazb.js";
3
+ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", t = {
4
+ btnCommon: w,
5
+ "auto-width": "_auto-width_1act6_18",
6
+ "full-width": "_full-width_1act6_22",
7
+ "small-size": "_small-size_1act6_26",
8
+ whiteFilled: r
9
+ }, _ = u.bind(t), F = ({
10
+ size: m = "small",
11
+ pre: n = !1,
12
+ children: o = "",
13
+ post: i = !1,
14
+ variant: s = "whiteFilled",
15
+ width: c = "auto",
16
+ additionalClass: a = "",
17
+ ...e
18
+ }) => {
19
+ if (e.as === "link") {
20
+ const { as: C, ...b } = e;
21
+ return /* @__PURE__ */ d(
22
+ "a",
23
+ {
24
+ className: _(
25
+ t.btnCommon,
26
+ t[`${m}-size`],
27
+ t[`${s}`],
28
+ { [t.btnCommonInline]: n || i },
29
+ t[`${c}-width`],
30
+ a
31
+ ),
32
+ ...b,
33
+ children: [
34
+ n && /* @__PURE__ */ l("div", { children: n }),
35
+ o,
36
+ i && /* @__PURE__ */ l("div", { children: i })
37
+ ]
38
+ }
39
+ );
40
+ }
41
+ const { as: f, ...h } = e;
42
+ return /* @__PURE__ */ d(
43
+ "button",
44
+ {
45
+ className: _(
46
+ t.btnCommon,
47
+ t[`${m}-size`],
48
+ t[`${s}`],
49
+ { [t.btnCommonInline]: n || i },
50
+ t[`${c}-width`],
51
+ a
52
+ ),
53
+ ...h,
54
+ children: [
55
+ n && /* @__PURE__ */ l("div", { children: n }),
56
+ o,
57
+ i && /* @__PURE__ */ l("div", { children: i })
58
+ ]
59
+ }
60
+ );
61
+ };
62
+ export {
63
+ F as MobileButton
64
+ };
@@ -0,0 +1,6 @@
1
+ const e = {
2
+ whiteFilled: "whiteFilled"
3
+ };
4
+ export {
5
+ e as MOBILE_BUTTON_VARIANTS
6
+ };