stone-kit 0.0.1030 → 0.0.1031

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/{Menu-CeBSiTyP.js → Menu-CdJTzN7T.js} +157 -176
  3. package/dist/{Option-DU8cvBnA.js → Option-rFBMQAPk.js} +1 -1
  4. package/dist/Router.js +1 -1
  5. package/dist/components/Button/ui/Button.d.ts +0 -1
  6. package/dist/components/Button/ui/Button.js +1 -1
  7. package/dist/components/Button/ui/Button.types.d.ts +0 -1
  8. package/dist/components/CheckBox/CheckBox.d.ts +0 -1
  9. package/dist/components/CheckBox/CheckBox.js +1 -1
  10. package/dist/components/CheckBox/CheckBox.types.d.ts +0 -1
  11. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -1
  12. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -1
  13. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  14. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -1
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  16. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +0 -1
  17. package/dist/components/CommercialLotCard/CommercialLotCard.js +50 -7
  18. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +0 -1
  19. package/dist/components/CommercialLotCard/components/Price/Price.js +25 -26
  20. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +0 -1
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +98 -27
  22. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +0 -1
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  24. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -1
  25. package/dist/components/CommercialLotCard/types/LotCard.d.ts +0 -1
  26. package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -2
  27. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +1 -2
  28. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  30. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
  31. package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -1
  32. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -1
  33. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -1
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +54 -26
  35. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -1
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.js +328 -7
  37. package/dist/components/Flex/ui/Flex.d.ts +0 -1
  38. package/dist/components/Flex/ui/Flex.js +1 -1
  39. package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
  40. package/dist/components/FormModal/ui/ModalForm.js +1430 -28
  41. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
  42. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  43. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
  44. package/dist/components/Input/ui/Input.d.ts +1 -2
  45. package/dist/components/Input/ui/Input.js +234 -304
  46. package/dist/components/Logo/ui/Logo.d.ts +0 -1
  47. package/dist/components/Logo/ui/Logo.js +6 -6
  48. package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -1
  49. package/dist/components/LotCard/hooks/useLotCard.js +6 -24
  50. package/dist/components/LotCard/index.js +2 -2
  51. package/dist/components/LotCard/ui/LotCard.d.ts +0 -1
  52. package/dist/components/LotCard/ui/LotCard.js +213 -10
  53. package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -1
  54. package/dist/components/LotCard/utils/formatPrice.js +1 -2
  55. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +1 -2
  56. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  57. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  59. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
  60. package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -1
  61. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  62. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -1
  63. package/dist/components/Modal/ui/Modal.d.ts +0 -1
  64. package/dist/components/Modal/ui/Modal.js +34 -37
  65. package/dist/components/Modal/ui/Modal.types.d.ts +0 -1
  66. package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -1
  67. package/dist/components/ModalSuccess/ModalSuccess.js +18 -19
  68. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -1
  69. package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -1
  70. package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -1
  71. package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -1
  72. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  73. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
  74. package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -1
  75. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +9 -11
  76. package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -1
  77. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  78. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -1
  79. package/dist/components/Select/model/selectMode.d.ts +0 -1
  80. package/dist/components/Select/model/selectMode.js +30 -30
  81. package/dist/components/Select/ui/Category.d.ts +0 -1
  82. package/dist/components/Select/ui/Category.js +3 -3
  83. package/dist/components/Select/ui/Option.d.ts +0 -1
  84. package/dist/components/Select/ui/Option.js +2 -2
  85. package/dist/components/Select/ui/Select.d.ts +0 -1
  86. package/dist/components/Select/ui/Select.js +115 -115
  87. package/dist/components/SliderNavigation/index.d.ts +0 -1
  88. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -1
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  90. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -1
  91. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  92. package/dist/components/SortSelect/index.js +1 -1
  93. package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
  94. package/dist/components/SortSelect/ui/SortSelect.js +108 -26
  95. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -1
  96. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +0 -1
  97. package/dist/components/SummarySelect/ui/SummarySelect.js +59 -65
  98. package/dist/components/Switcher/ui/Switcher.d.ts +0 -1
  99. package/dist/components/Switcher/ui/Switcher.js +1 -1
  100. package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -1
  101. package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -1
  102. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  103. package/dist/components/TabSwitcher/index.js +2 -2
  104. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +0 -1
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.js +120 -26
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -1
  107. package/dist/components/Tag/ui/Tag.d.ts +0 -1
  108. package/dist/components/Tag/ui/Tag.js +91 -91
  109. package/dist/components/Tag/ui/Tag.types.d.ts +0 -1
  110. package/dist/components/Text/ui/Text.d.ts +0 -1
  111. package/dist/components/Text/ui/Text.js +1 -1
  112. package/dist/components/Text/ui/Text.types.d.ts +0 -1
  113. package/dist/components/TextArea/TextArea.d.ts +0 -1
  114. package/dist/components/TextArea/TextArea.js +1 -1
  115. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -1
  117. package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
  118. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  119. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
  120. package/dist/{index-DvCs2JPX.js → index-3E04UaC2.js} +9529 -9629
  121. package/dist/index-B2JRaoNz.js +48 -0
  122. package/dist/{index-DmANy9jd.js → index-CBdtKu-u.js} +272 -271
  123. package/dist/layout/Layout.d.ts +0 -1
  124. package/dist/layout/components/Header/Header.js +48 -71
  125. package/dist/layout/components/Menu.js +2 -24
  126. package/dist/main.js +70 -65
  127. package/dist/pages/ButtonsPage/Buttons.js +44 -61
  128. package/dist/pages/FormsPage/FormsPage.js +26 -50
  129. package/dist/pages/IconsPage/IconsPage.js +9 -31
  130. package/dist/pages/InputPage/InputPage.js +10 -32
  131. package/dist/pages/LogoPage/LogoPage.js +13 -35
  132. package/dist/pages/LotsPage/LotsPage.js +18 -17
  133. package/dist/pages/LotsPage/const.d.ts +0 -1
  134. package/dist/pages/ModalsPage/ModalPage.js +46 -66
  135. package/dist/pages/SelectPage/SelectPage.js +58 -58
  136. package/dist/pages/TabsPage/TabsPage.js +19 -20
  137. package/dist/pages/TagsPage/TagsPage.js +23 -44
  138. package/dist/shared/checkLargeOffice.d.ts +0 -1
  139. package/dist/shared/checkLargeOffice.js +1 -1
  140. package/dist/shared/mlnRound.js +1 -2
  141. package/dist/stone-kit.css +1 -0
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/useLotCard-DG9doKCX.js +186 -0
  167. package/dist/useSortSelect-B8HOGdOt.js +79 -0
  168. package/package.json +1 -1
  169. package/dist/FilterWithSave-BWA01WwU.js +0 -2476
  170. package/dist/index-rKuIKazb.js +0 -45
  171. package/dist/style.css +0 -1
  172. package/dist/useSortSelect-BTCEVMVn.js +0 -80
@@ -1,5 +1,5 @@
1
- import { l as a } from "../../../../index-DvCs2JPX.js";
2
- import { T as e } from "../../../../FilterWithSave-BWA01WwU.js";
1
+ import { l as a } from "../../../../index-3E04UaC2.js";
2
+ import { TabSwitcher as e } from "../../../../components/TabSwitcher/ui/TabSwitcher.js";
3
3
  const t = [
4
4
  { value: "tab1", label: "Overview" },
5
5
  { value: "tab2", label: "Details" },
@@ -1,8 +1,8 @@
1
- import { Tag as t } from "../../../../components/Tag/ui/Tag.js";
2
- import { TAG_VARIANTS as e } from "../../../../components/Tag/ui/Tag.types.js";
1
+ import { TAG_VARIANTS as t } from "../../../../components/Tag/ui/Tag.types.js";
2
+ import { Tag as e } from "../../../../components/Tag/ui/Tag.js";
3
3
  const o = {
4
4
  title: "shared/ui/Tag",
5
- component: t,
5
+ component: e,
6
6
  parameters: {
7
7
  layout: "centered"
8
8
  },
@@ -11,7 +11,7 @@ const o = {
11
11
  variant: {
12
12
  control: {
13
13
  type: "select",
14
- options: Object.keys(e)
14
+ options: Object.keys(t)
15
15
  }
16
16
  },
17
17
  size: {
@@ -1,4 +1,4 @@
1
- import { l as o } from "../../../../index-DvCs2JPX.js";
1
+ import { l as o } from "../../../../index-3E04UaC2.js";
2
2
  import { ZoomControls as m } from "../../../../components/ZoomControls/ui/ZoomControls.js";
3
3
  const a = {
4
4
  title: "shared/ui/ZoomControls",
@@ -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-B2JRaoNz.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 st = "_root_15scj_1", ot = "_lotBtn_15scj_12", rt = "_rootDisable_15scj_26", nt = "_lotImageWrapper_15scj_26", it = "_lotInfoWrapper_15scj_27", ct = "_infoHeader_15scj_47", pt = "_monthlyWrapper_15scj_56", lt = "_price_15scj_66", at = "_monthlyPayment_15scj_73", _t = "_decor_15scj_79", dt = "_lotPropertyListMobile_15scj_86", mt = "_lotPropertyItem_15scj_94", ut = "_lotPropertyListDesktop_15scj_111", ht = "_lotPriceWrapper_15scj_115", ft = "_discountWrapper_15scj_121", jt = "_discountPrice_15scj_132", Pt = "_priceWrap_15scj_144", gt = "_snippetLast_15scj_154", St = "_snippet_15scj_154", Wt = "_tagsMobile_15scj_169", yt = "_discountTag_15scj_184", bt = "_lotPricePerMetr_15scj_188", Lt = "_btnWrapper_15scj_193", wt = "_title_15scj_200", vt = "_snippets_15scj_204", It = "_retailSnippets_15scj_209", Mt = "_shownSnippets_15scj_214", Nt = "_addSnippets_15scj_239", Tt = "_addSnippetsActive_15scj_255", Bt = "_addSnippetsList_15scj_260", Ct = "_closeSnippetBtn_15scj_304", Rt = "_rootRow_15scj_316", xt = "_rowTablet_15scj_327", Dt = "_rootRightSide_15scj_368", kt = "_topWrapper_15scj_384", Ft = "_botWrapper_15scj_389", Ht = "_lotPriceWrapperRow_15scj_420", At = "_fullscreenBtn_15scj_430", Vt = "_projectLotPricePerMetr_15scj_449", $t = "_paymentClass_15scj_489", e = {
11
+ root: st,
12
+ lotBtn: ot,
13
+ rootDisable: rt,
14
+ lotImageWrapper: nt,
15
+ lotInfoWrapper: it,
16
+ infoHeader: ct,
17
+ monthlyWrapper: pt,
18
+ price: lt,
19
+ monthlyPayment: at,
20
+ decor: _t,
21
+ lotPropertyListMobile: dt,
22
+ lotPropertyItem: mt,
23
+ lotPropertyListDesktop: ut,
24
+ lotPriceWrapper: ht,
25
+ discountWrapper: ft,
26
+ discountPrice: jt,
27
+ priceWrap: Pt,
28
+ snippetLast: gt,
29
+ snippet: St,
30
+ tagsMobile: Wt,
31
+ discountTag: yt,
32
+ lotPricePerMetr: bt,
33
+ btnWrapper: Lt,
34
+ title: wt,
35
+ snippets: vt,
36
+ retailSnippets: It,
37
+ shownSnippets: Mt,
38
+ addSnippets: Nt,
39
+ addSnippetsActive: Tt,
40
+ addSnippetsList: Bt,
41
+ closeSnippetBtn: Ct,
42
+ rootRow: Rt,
43
+ rowTablet: xt,
44
+ rootRightSide: Dt,
45
+ topWrapper: kt,
46
+ botWrapper: Ft,
47
+ lotPriceWrapperRow: Ht,
48
+ fullscreenBtn: At,
49
+ projectLotPricePerMetr: Vt,
50
+ paymentClass: $t
51
+ }, d = U.bind(e), Yt = ({ lot: L, rowConditions: w }) => {
52
+ const {
53
+ status: x,
54
+ direction: D,
55
+ area: v,
56
+ floor: u,
57
+ endFloor: W,
58
+ floorsNumber: p,
59
+ type: y,
60
+ isCorner: k,
61
+ windowViews: h,
62
+ subTypeName: I,
63
+ number: M,
64
+ bedroomsCount: F,
65
+ mortgageMonthlyPayment: N
66
+ } = L, [b, f] = K(!1), H = x === 2, A = D === 1, j = y === 11, V = v ? v + " м²" : "", m = u && p ? (W && W !== u ? u + "-" + W : u) + " из " + p : "", P = Q({ ...L }), { isTablet: T, isDesktop: l, isMobile: B, currentClientWidth: $ } = Z(), E = typeof w < "u" ? w : l || T, z = () => j ? p ? "Кол-во этажей: " + p : "" : m ? "Этаж: " + m : "", O = () => j ? p ? /* @__PURE__ */ _("li", { className: d(e.lotPropertyItem), children: [
67
+ /* @__PURE__ */ t("div", { children: "Количество этажей" }),
68
+ /* @__PURE__ */ t("div", { children: p })
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 (y === 3) {
74
+ if (B && (!h || h.length === 0))
75
+ return null;
76
+ let r = 0;
77
+ const o = l ? 36 : 28, i = [], g = [];
78
+ if (k) {
79
+ const s = "Угловая";
80
+ if (r + s.length <= o)
81
+ i.push(s), r += s.length;
82
+ else
83
+ return i;
84
+ }
85
+ if (h) {
86
+ const s = h.filter((c) => c && c.trim() !== "");
87
+ let n = 0, a = r;
88
+ for (let c = 0; c < s.length; c++) {
89
+ const S = s[c], C = n > 0 ? " " + S : S;
90
+ if (a + C.length <= o)
91
+ i.push(S), a += C.length, n++;
92
+ else {
93
+ if (n === 0) {
94
+ const R = o - a;
95
+ if (R > 3) {
96
+ const G = S.substring(0, R - 3) + "...";
97
+ i.push(G), a = o;
98
+ } else
99
+ i.push("..."), a += 3;
100
+ }
101
+ g.push(...s.slice(c));
102
+ break;
103
+ }
104
+ }
105
+ r = a;
106
+ }
107
+ return /* @__PURE__ */ _("div", { className: e.retailSnippets, children: [
108
+ /* @__PURE__ */ t("ul", { className: e.shownSnippets, children: i?.map((s, n) => /* @__PURE__ */ t("li", { children: s }, n)) }),
109
+ g?.length > 0 && /* @__PURE__ */ _(
110
+ "div",
111
+ {
112
+ className: d(e.addSnippets, { [e.addSnippetsActive]: b }),
113
+ onClick: (s) => {
114
+ l || (s.stopPropagation(), s.preventDefault(), f((n) => !n));
115
+ },
116
+ onMouseEnter: () => {
117
+ l && f(!0);
118
+ },
119
+ onMouseLeave: () => {
120
+ l && f(!1);
121
+ },
122
+ children: [
123
+ "+" + g?.length,
124
+ b && /* @__PURE__ */ _("ul", { className: e.addSnippetsList, children: [
125
+ g.map((s, n) => /* @__PURE__ */ t("li", { children: s }, n)),
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 P.length ? /* @__PURE__ */ t("div", { className: e.snippets, children: P.map((r, o) => {
141
+ const i = o === P.length - 1;
142
+ return /* @__PURE__ */ t(
143
+ "div",
144
+ {
145
+ className: d(e.snippet, i ? "" : e.snippetLast),
146
+ children: r.text
147
+ },
148
+ o
149
+ );
150
+ }) }) : null;
151
+ };
152
+ return {
153
+ currentClientWidth: $,
154
+ isBuilding: j,
155
+ LotCardInfo: () => {
156
+ const r = A && y && I ? I : X(F), o = j ? r : `${r}${M ? `, ${M}` : ""}`;
157
+ return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ _("div", { className: d(e.monthlyWrapper), children: [
158
+ o && /* @__PURE__ */ t(
159
+ tt,
160
+ {
161
+ className: d(e.infoHeader),
162
+ html: o
163
+ }
164
+ ),
165
+ N && /* @__PURE__ */ t("div", { className: e.monthlyPayment, children: Y(N) }),
166
+ /* @__PURE__ */ t(q, {})
167
+ ] }) });
168
+ },
169
+ tagFeatures: P,
170
+ FloorByType: O,
171
+ isTablet: T,
172
+ isDesktop: l,
173
+ getFloorStr: z,
174
+ isReserved: H,
175
+ isMobile: B,
176
+ areaStr: V,
177
+ floorStr: m,
178
+ isShowSnippet: b,
179
+ setIsShowSnippet: f,
180
+ rowConditionsVar: E
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-B2JRaoNz.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,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.1030",
5
+ "version": "0.0.1031",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",