stone-kit 0.0.1029 → 0.0.1030

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/FilterWithSave-BWA01WwU.js +2476 -0
  3. package/dist/Menu-CeBSiTyP.js +513 -0
  4. package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
  5. package/dist/Router.js +1 -1
  6. package/dist/components/Button/ui/Button.d.ts +1 -0
  7. package/dist/components/Button/ui/Button.js +1 -1
  8. package/dist/components/Button/ui/Button.types.d.ts +1 -0
  9. package/dist/components/CheckBox/CheckBox.d.ts +1 -0
  10. package/dist/components/CheckBox/CheckBox.js +1 -1
  11. package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
  12. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
  13. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
  14. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
  16. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  17. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
  18. package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
  19. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
  20. package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
  22. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
  24. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  25. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
  26. package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
  27. package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
  28. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
  30. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  31. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
  32. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
  33. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
  35. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
  37. package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
  38. package/dist/components/Flex/ui/Flex.d.ts +1 -0
  39. package/dist/components/Flex/ui/Flex.js +1 -1
  40. package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
  41. package/dist/components/FormModal/ui/ModalForm.js +28 -1445
  42. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
  43. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  44. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
  45. package/dist/components/Input/ui/Input.d.ts +2 -1
  46. package/dist/components/Input/ui/Input.js +325 -234
  47. package/dist/components/Logo/ui/Logo.d.ts +1 -0
  48. package/dist/components/Logo/ui/Logo.js +6 -6
  49. package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
  50. package/dist/components/LotCard/hooks/useLotCard.js +24 -6
  51. package/dist/components/LotCard/index.js +2 -2
  52. package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
  53. package/dist/components/LotCard/ui/LotCard.js +10 -213
  54. package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
  55. package/dist/components/LotCard/utils/formatPrice.js +2 -1
  56. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
  57. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
  59. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  60. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
  61. package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
  62. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  63. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
  64. package/dist/components/Modal/ui/Modal.d.ts +1 -0
  65. package/dist/components/Modal/ui/Modal.js +37 -34
  66. package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
  67. package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
  68. package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
  69. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
  70. package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
  71. package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
  72. package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
  73. package/dist/components/NewIcon/ui/NewIcon.js +1 -1
  74. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
  75. package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
  76. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
  77. package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
  78. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  79. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  80. package/dist/components/Select/model/selectMode.d.ts +1 -0
  81. package/dist/components/Select/model/selectMode.js +30 -30
  82. package/dist/components/Select/ui/Category.d.ts +1 -0
  83. package/dist/components/Select/ui/Category.js +3 -3
  84. package/dist/components/Select/ui/Option.d.ts +1 -0
  85. package/dist/components/Select/ui/Option.js +2 -2
  86. package/dist/components/Select/ui/Select.d.ts +1 -0
  87. package/dist/components/Select/ui/Select.js +115 -115
  88. package/dist/components/SliderNavigation/index.d.ts +1 -0
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
  90. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  91. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
  92. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  93. package/dist/components/SortSelect/index.js +1 -1
  94. package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
  95. package/dist/components/SortSelect/ui/SortSelect.js +26 -108
  96. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
  97. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  98. package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
  99. package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
  100. package/dist/components/Switcher/ui/Switcher.js +1 -1
  101. package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
  102. package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
  103. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  104. package/dist/components/TabSwitcher/index.js +2 -2
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
  107. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
  108. package/dist/components/Tag/ui/Tag.d.ts +1 -0
  109. package/dist/components/Tag/ui/Tag.js +91 -91
  110. package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
  111. package/dist/components/Text/ui/Text.d.ts +1 -0
  112. package/dist/components/Text/ui/Text.js +1 -1
  113. package/dist/components/Text/ui/Text.types.d.ts +1 -0
  114. package/dist/components/TextArea/TextArea.d.ts +1 -0
  115. package/dist/components/TextArea/TextArea.js +1 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
  117. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
  118. package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
  119. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  120. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
  121. package/dist/index-DmANy9jd.js +890 -0
  122. package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
  123. package/dist/index-rKuIKazb.js +45 -0
  124. package/dist/layout/Layout.d.ts +1 -0
  125. package/dist/layout/components/Header/Header.js +71 -48
  126. package/dist/layout/components/Menu.js +26 -107
  127. package/dist/main.js +65 -70
  128. package/dist/pages/ButtonsPage/Buttons.js +61 -44
  129. package/dist/pages/FormsPage/FormsPage.js +50 -26
  130. package/dist/pages/IconsPage/IconsPage.js +31 -9
  131. package/dist/pages/InputPage/InputPage.js +32 -10
  132. package/dist/pages/LogoPage/LogoPage.js +35 -13
  133. package/dist/pages/LotsPage/LotsPage.js +17 -18
  134. package/dist/pages/LotsPage/const.d.ts +1 -0
  135. package/dist/pages/ModalsPage/ModalPage.js +66 -46
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +20 -19
  138. package/dist/pages/TagsPage/TagsPage.js +44 -23
  139. package/dist/shared/checkLargeOffice.d.ts +1 -0
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +2 -1
  142. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  143. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  144. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  145. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  147. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  148. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  149. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  150. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  151. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  152. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  153. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  154. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  155. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  156. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  157. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  158. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  159. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  160. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  161. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  162. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  164. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  165. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  166. package/dist/style.css +1 -0
  167. package/dist/useSortSelect-BTCEVMVn.js +80 -0
  168. package/package.json +1 -1
  169. package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
  170. package/dist/index-YnD2EP-S.js +0 -43
  171. package/dist/stone-kit.css +0 -1
  172. package/dist/useLotCard-CYcRSogE.js +0 -186
  173. package/dist/useSortSelect-Cy3od4ig.js +0 -80
@@ -1,56 +1,56 @@
1
- import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
- import { c as h } from "../../../index-YnD2EP-S.js";
3
- const _ = "_root_19qpl_1", b = "_nameWrapper_19qpl_8", d = "_large_19qpl_18", x = "_clearBtn_19qpl_25", k = "_checkboxWrapper_19qpl_40", m = "_checkboxItem_19qpl_46", I = "_checkboxItemActive_19qpl_64", q = "_checkboxItemDisabled_19qpl_76", v = "_checkBoxLarge_19qpl_81", e = {
4
- root: _,
5
- nameWrapper: b,
6
- large: d,
7
- clearBtn: x,
8
- checkboxWrapper: k,
9
- checkboxItem: m,
10
- checkboxItemActive: I,
11
- checkboxItemDisabled: q,
12
- checkBoxLarge: v
13
- }, l = h.bind(e), W = ({
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { c as _ } from "../../../index-rKuIKazb.js";
3
+ const d = "_root_19qpl_1", I = "_nameWrapper_19qpl_8", h = "_large_19qpl_18", b = "_clearBtn_19qpl_25", q = "_checkboxWrapper_19qpl_40", v = "_checkboxItem_19qpl_46", g = "_checkboxItemActive_19qpl_64", B = "_checkboxItemDisabled_19qpl_76", W = "_checkBoxLarge_19qpl_81", a = {
4
+ root: d,
5
+ nameWrapper: I,
6
+ large: h,
7
+ clearBtn: b,
8
+ checkboxWrapper: q,
9
+ checkboxItem: v,
10
+ checkboxItemActive: g,
11
+ checkboxItemDisabled: B,
12
+ checkBoxLarge: W
13
+ }, t = _.bind(a), N = ({
14
14
  label: s = "Тип квартиры",
15
- checkboxes: r,
16
- addClassname: n,
15
+ checkboxes: l,
16
+ addClassname: o,
17
17
  isNeedClear: p = !0,
18
- isPromotion: t
18
+ isPromotion: c
19
19
  }) => {
20
20
  const i = () => {
21
- r?.forEach((c) => {
22
- c?.isSelected && c?.setValue();
21
+ l == null || l.forEach((e) => {
22
+ e != null && e.isSelected && (e == null || e.setValue());
23
23
  });
24
24
  };
25
- return /* @__PURE__ */ o("div", { className: l(e.root, n), children: [
26
- /* @__PURE__ */ o("div", { className: l(e.nameWrapper, { [e.large]: t }), children: [
27
- /* @__PURE__ */ a("div", { children: s }),
28
- p && /* @__PURE__ */ a(
25
+ return /* @__PURE__ */ n("div", { className: t(a.root, o), children: [
26
+ /* @__PURE__ */ n("div", { className: t(a.nameWrapper, { [a.large]: c }), children: [
27
+ /* @__PURE__ */ r("div", { children: s }),
28
+ p && /* @__PURE__ */ r(
29
29
  "div",
30
30
  {
31
- className: e.clearBtn,
31
+ className: a.clearBtn,
32
32
  onClick: i,
33
33
  children: "Очистить"
34
34
  }
35
35
  )
36
36
  ] }),
37
- /* @__PURE__ */ a("div", { className: e.checkboxWrapper, children: r?.map((c) => /* @__PURE__ */ a(
37
+ /* @__PURE__ */ r("div", { className: a.checkboxWrapper, children: l == null ? void 0 : l.map((e) => /* @__PURE__ */ r(
38
38
  "button",
39
39
  {
40
- className: l(
41
- e.checkboxItem,
42
- { [e.checkboxItemActive]: c?.isSelected },
43
- { [e.checkboxItemDisabled]: c?.disabled },
44
- { [e.checkBoxLarge]: t }
40
+ className: t(
41
+ a.checkboxItem,
42
+ { [a.checkboxItemActive]: e == null ? void 0 : e.isSelected },
43
+ { [a.checkboxItemDisabled]: e == null ? void 0 : e.disabled },
44
+ { [a.checkBoxLarge]: c }
45
45
  ),
46
- onClick: () => c?.setValue(),
47
- disabled: c?.disabled,
48
- children: c?.label
46
+ onClick: () => e == null ? void 0 : e.setValue(),
47
+ disabled: e == null ? void 0 : e.disabled,
48
+ children: e == null ? void 0 : e.label
49
49
  },
50
- c?.label
50
+ e == null ? void 0 : e.label
51
51
  )) })
52
52
  ] });
53
53
  };
54
54
  export {
55
- W as CheckboxSelect
55
+ N as CheckboxSelect
56
56
  };
@@ -1,2 +1,3 @@
1
1
  import { ICommercialLotCard } from './types/CommercialLotCard.types';
2
+
2
3
  export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,52 +1,9 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { c as g } from "../../index-YnD2EP-S.js";
3
- import { fmtNumber as w } from "../../shared/fmtNumber.js";
4
- import { Price as W } from "./components/Price/Price.js";
5
- import { Snippets as f } from "./components/Snippets/Snippets.js";
6
- import { Tags as u } from "./components/Tags/Tags.js";
7
- const h = "_root_19awq_1", b = "_lotImageWrapper_19awq_17", q = "_lotNameWrapper_19awq_23", I = "_lotName_19awq_23", v = "_lotNumber_19awq_38", x = "_priceWrapper_19awq_47", R = "_rootRow_19awq_52", o = {
8
- root: h,
9
- lotImageWrapper: b,
10
- lotNameWrapper: q,
11
- lotName: I,
12
- lotNumber: v,
13
- priceWrapper: x,
14
- rootRow: R
15
- }, P = g.bind(o), L = ({
16
- lot: e,
17
- imgNode: m,
18
- onPriceClickHandler: p,
19
- addClassname: s,
20
- isVertical: a = !1
21
- }) => {
22
- const { interiorPlanImg: c, floorPlanImg: l, area: i, subTypeName: n, number: _ } = e || {}, N = n + ", " + w(i) + "м²", d = c ?? l ?? "";
23
- return e ? /* @__PURE__ */ t("div", { className: P(o.root, s, { [o.rootRow]: !a }), children: [
24
- /* @__PURE__ */ r("div", { className: o.lotImageWrapper, children: m || /* @__PURE__ */ r(
25
- "img",
26
- {
27
- loading: "lazy",
28
- src: d,
29
- width: 295,
30
- height: 213,
31
- alt: "logo_image"
32
- }
33
- ) }),
34
- /* @__PURE__ */ t("div", { className: o.lotNameWrapper, children: [
35
- /* @__PURE__ */ r("p", { className: o.lotName, children: N }),
36
- /* @__PURE__ */ r("p", { className: o.lotNumber, children: _ }),
37
- /* @__PURE__ */ r(f, { lot: e }),
38
- /* @__PURE__ */ r(u, { lot: e })
39
- ] }),
40
- /* @__PURE__ */ r("div", { className: o.priceWrapper, children: /* @__PURE__ */ r(
41
- W,
42
- {
43
- lot: e,
44
- isVertical: a,
45
- onPriceClickHandler: p
46
- }
47
- ) })
48
- ] }) : null;
49
- };
1
+ import "react/jsx-runtime";
2
+ import "../../index-rKuIKazb.js";
3
+ import "../../shared/fmtNumber.js";
4
+ import "./components/Price/Price.js";
5
+ import { C } from "../../FilterWithSave-BWA01WwU.js";
6
+ import "./components/Tags/Tags.js";
50
7
  export {
51
- L as CommercialLotCard
8
+ C as CommercialLotCard
52
9
  };
@@ -1,4 +1,5 @@
1
1
  import { ILot } from '../../types/LotCard';
2
+
2
3
  interface IPrice {
3
4
  lot: ILot;
4
5
  isVertical?: boolean;
@@ -1,42 +1,43 @@
1
- import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
- import { c as P } from "../../../../index-YnD2EP-S.js";
3
- import { formatPrice as g } from "../../utils/formatPrice.js";
1
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
+ import { c as g } from "../../../../index-rKuIKazb.js";
4
3
  import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
5
- const N = "_root_u8cpd_1", w = "_price_u8cpd_7", b = "_paymentWrapper_u8cpd_19", x = "_rootVertical_u8cpd_39", r = {
6
- root: N,
7
- price: w,
4
+ import { formatPrice as N } from "../../utils/formatPrice.js";
5
+ const w = "_root_z3d8u_1", z = "_price_z3d8u_7", b = "_paymentWrapper_z3d8u_19", x = "_rootVertical_z3d8u_36", r = {
6
+ root: w,
7
+ price: z,
8
8
  paymentWrapper: b,
9
9
  rootVertical: x
10
- }, V = P.bind(r), S = ({ lot: i, onPriceClickHandler: s, isVertical: n }) => {
10
+ }, V = g.bind(r), T = ({ lot: s, onPriceClickHandler: t, isVertical: m }) => {
11
+ var l;
11
12
  const {
12
- project: l,
13
- sellingPriceBeforeDiscount: m,
14
- showPriceFlg: d,
15
- direction: _,
16
- specialProgram: f,
17
- sellingPrice: h
18
- } = i || {}, u = !!l?.showPriceSubType?.some((e) => Number(e.filter) === i.subType), t = !!f, p = m ?? h, a = p && d && !t && u;
19
- return /* @__PURE__ */ o("div", { className: V(r.root, { [r.rootVertical]: n }), children: [
20
- a && /* @__PURE__ */ o("p", { className: r.price, children: [
13
+ project: c,
14
+ sellingPriceBeforeDiscount: d,
15
+ showPriceFlg: _,
16
+ direction: f,
17
+ specialProgram: h,
18
+ sellingPrice: u
19
+ } = s || {}, P = !!((l = c == null ? void 0 : c.showPriceSubType) != null && l.some((e) => Number(e.filter) === s.subType)), a = !!h, n = d ?? u, p = n && _ && !a && P;
20
+ return /* @__PURE__ */ o("div", { className: V(r.root, { [r.rootVertical]: m }), children: [
21
+ p && /* @__PURE__ */ o("p", { className: r.price, children: [
21
22
  " ",
22
- g(p, !1, _)
23
+ N(n, !1, f)
23
24
  ] }),
24
- !a && /* @__PURE__ */ o(
25
+ !p && /* @__PURE__ */ o(
25
26
  "p",
26
27
  {
27
28
  className: r.price,
28
29
  onClick: (e) => {
29
- e.preventDefault(), e.stopPropagation(), s && s();
30
+ e.preventDefault(), e.stopPropagation(), t && t();
30
31
  },
31
32
  children: [
32
33
  "Цена ",
33
- /* @__PURE__ */ c("span", { children: "по запросу" })
34
+ /* @__PURE__ */ i("span", { children: "по запросу" })
34
35
  ]
35
36
  }
36
37
  ),
37
38
  /* @__PURE__ */ o("div", { className: r.paymentWrapper, children: [
38
- /* @__PURE__ */ c("span", { children: t ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
39
- /* @__PURE__ */ c(
39
+ /* @__PURE__ */ i("span", { children: a ? "Узнать подробности" : "Доступно несколько способов оплаты" }),
40
+ /* @__PURE__ */ i(
40
41
  y,
41
42
  {
42
43
  name: "arrowRight",
@@ -47,5 +48,5 @@ const N = "_root_u8cpd_1", w = "_price_u8cpd_7", b = "_paymentWrapper_u8cpd_19",
47
48
  ] });
48
49
  };
49
50
  export {
50
- S as Price
51
+ T as Price
51
52
  };
@@ -1,4 +1,5 @@
1
1
  import { ILot } from '../../types/LotCard';
2
+
2
3
  interface ISnippets {
3
4
  lot: ILot;
4
5
  }
@@ -1,100 +1,29 @@
1
- import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import { useState as A } from "react";
3
- import { getTagsFeatures as B } from "../../utils/getTagsFeatures.js";
4
- import { c as I } from "../../../../index-YnD2EP-S.js";
5
- import { useClientWidth as k } from "../../../../shared/useClientWidth.js";
6
- import { NewIcon as C } from "../../../NewIcon/ui/NewIcon.js";
7
- const M = "_snippet_1vgdm_1", W = "_snippetLast_1vgdm_9", j = "_snippets_1vgdm_25", D = "_retailSnippets_1vgdm_30", E = "_shownSnippets_1vgdm_35", F = "_addSnippets_1vgdm_64", T = "_addSnippetsActive_1vgdm_80", V = "_addSnippetsList_1vgdm_85", y = "_closeSnippetBtn_1vgdm_129", t = {
8
- snippet: M,
9
- snippetLast: W,
10
- snippets: j,
11
- retailSnippets: D,
12
- shownSnippets: E,
13
- addSnippets: F,
14
- addSnippetsActive: T,
15
- addSnippetsList: V,
16
- closeSnippetBtn: y
17
- }, L = I.bind(t), K = ({ lot: g }) => {
18
- const { type: w, windowViews: c, isCorner: N } = g || {}, [u, h] = A(!1), S = B({ ...g }), { isDesktop: r, isMobile: x } = k();
19
- if (w === 3) {
20
- if (x && (!c || c.length === 0))
21
- return null;
22
- let l = 0;
23
- const i = r ? 36 : 28, n = [], d = [];
24
- if (N) {
25
- const e = "Угловая";
26
- if (l + e.length <= i)
27
- n.push(e), l += e.length;
28
- else
29
- return n;
30
- }
31
- if (c) {
32
- const e = c.filter((p) => p && p.trim() !== "");
33
- let s = 0, a = l;
34
- for (let p = 0; p < e.length; p++) {
35
- const m = e[p], _ = s > 0 ? " " + m : m;
36
- if (a + _.length <= i)
37
- n.push(m), a += _.length, s++;
38
- else {
39
- if (s === 0) {
40
- const v = i - a;
41
- if (v > 3) {
42
- const b = m.substring(0, v - 3) + "...";
43
- n.push(b), a = i;
44
- } else
45
- n.push("..."), a += 3;
46
- }
47
- d.push(...e.slice(p));
48
- break;
49
- }
50
- }
51
- l = a;
52
- }
53
- return /* @__PURE__ */ f("div", { className: t.retailSnippets, children: [
54
- /* @__PURE__ */ o("ul", { className: t.shownSnippets, children: n?.map((e, s) => /* @__PURE__ */ o("li", { className: t.snippets, children: e }, s)) }),
55
- d?.length > 0 && /* @__PURE__ */ f(
56
- "div",
57
- {
58
- className: L(t.addSnippets, { [t.addSnippetsActive]: u }),
59
- onClick: (e) => {
60
- r || (e.stopPropagation(), e.preventDefault(), h((s) => !s));
61
- },
62
- onMouseEnter: () => {
63
- r && h(!0);
64
- },
65
- onMouseLeave: () => {
66
- r && h(!1);
67
- },
68
- children: [
69
- "+" + d?.length,
70
- u && /* @__PURE__ */ f("ul", { className: t.addSnippetsList, children: [
71
- d.map((e, s) => /* @__PURE__ */ o("li", { children: e }, s)),
72
- /* @__PURE__ */ o("div", { className: t.closeSnippetBtn, children: /* @__PURE__ */ o(
73
- C,
74
- {
75
- name: "close",
76
- size: "16",
77
- color: "#ffffff"
78
- }
79
- ) })
80
- ] })
81
- ]
82
- }
83
- )
84
- ] });
85
- }
86
- return S.length ? /* @__PURE__ */ o("div", { className: t.snippets, children: S.map((l, i) => {
87
- const n = i === S.length - 1;
88
- return /* @__PURE__ */ o(
89
- "div",
90
- {
91
- className: L(t.snippet, n ? "" : t.snippetLast),
92
- children: l.text
93
- },
94
- i
95
- );
96
- }) }) : null;
97
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../../Button/ui/Button.js";
4
+ import "../../../mobileButton/ui/MobileButton.js";
5
+ import "../../../NewIcon/ui/NewIcon.js";
6
+ import "../../../DestinationTab/ui/DestinationTab.js";
7
+ import "../../../RoundButton/ui/RoundButton.js";
8
+ import "../../../Tag/ui/Tag.js";
9
+ import "../../../Switcher/ui/Switcher.js";
10
+ import "../../../Text/ui/Text.js";
11
+ import "../../../Flex/ui/Flex.js";
12
+ import "../../../Input/ui/Input.js";
13
+ import "react-dom";
14
+ import { a as A } from "../../../../FilterWithSave-BWA01WwU.js";
15
+ import "../../../GroupedInput/ui/GroupedInputs.js";
16
+ import "../../../../index-rKuIKazb.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
+ import "../../utils/getTagsFeatures.js";
98
27
  export {
99
- K as Snippets
28
+ A as Snippets
100
29
  };
@@ -1,4 +1,5 @@
1
1
  import { ILot } from '../../types/LotCard';
2
+
2
3
  interface ITags {
3
4
  lot: ILot;
4
5
  }
@@ -1,36 +1,36 @@
1
- import { jsxs as u, jsx as i } from "react/jsx-runtime";
2
- import { Tag as n } from "../../../Tag/ui/Tag.js";
3
- const p = "_root_xiuq1_1", x = {
4
- root: p
5
- }, m = ({ lot: g }) => {
6
- const { housing: s, floor: r, endFloor: t, floorsNumber: o, type: d, project: e } = g || {}, a = d === 11, c = r && o ? (t && t !== r ? r + "-" + t : r) + " этаж из " + o : "", l = () => a ? o ? "Кол-во этажей: " + o : "" : c || "";
7
- return /* @__PURE__ */ u("div", { className: x.root, children: [
8
- e?.buildingYear && /* @__PURE__ */ i(
9
- n,
1
+ import { jsxs as u, jsx as n } from "react/jsx-runtime";
2
+ import { Tag as s } from "../../../Tag/ui/Tag.js";
3
+ const x = "_root_xiuq1_1", y = {
4
+ root: x
5
+ }, p = ({ lot: g }) => {
6
+ const { housing: e, floor: r, endFloor: t, floorsNumber: o, type: d, project: i } = g || {}, a = d === 11, l = r && o ? (t && t !== r ? r + "-" + t : r) + " этаж из " + o : "", c = () => a ? o ? "Кол-во этажей: " + o : "" : l || "";
7
+ return /* @__PURE__ */ u("div", { className: y.root, children: [
8
+ (i == null ? void 0 : i.buildingYear) && /* @__PURE__ */ n(
9
+ s,
10
10
  {
11
11
  variant: "gray",
12
12
  size: "tiny-12px",
13
- children: e.buildingYear
13
+ children: i.buildingYear
14
14
  }
15
15
  ),
16
- !a && s && /* @__PURE__ */ i(
17
- n,
16
+ !a && e && /* @__PURE__ */ n(
17
+ s,
18
18
  {
19
19
  variant: "gray",
20
20
  size: "tiny-12px",
21
- children: s
21
+ children: e
22
22
  }
23
23
  ),
24
- l() && /* @__PURE__ */ i(
25
- n,
24
+ c() && /* @__PURE__ */ n(
25
+ s,
26
26
  {
27
27
  variant: "gray",
28
28
  size: "tiny-12px",
29
- children: l()
29
+ children: c()
30
30
  }
31
31
  )
32
32
  ] });
33
33
  };
34
34
  export {
35
- m as Tags
35
+ p as Tags
36
36
  };
@@ -1,4 +1,5 @@
1
1
  import { ILot } from './LotCard';
2
+
2
3
  export interface ICommercialLotCard {
3
4
  lot: ILot;
4
5
  imgNode?: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface LotPromo {
2
3
  /** Промо текст */
3
4
  val: string;
@@ -1,5 +1,6 @@
1
1
  const e = (r, t, o) => {
2
- if (!r && o === 2 || !r) return "Цена по запросу";
2
+ if (!r && o === 2 || !r)
3
+ return "Цена по запросу";
3
4
  const n = t ? " ₽/м²" : " ₽";
4
5
  return Number(r).toLocaleString() + n;
5
6
  };
@@ -1,4 +1,5 @@
1
1
  import { ILot } from '../types/LotCard';
2
- export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, "loggia" | "isDoubleLevel" | "isPenthouse" | "terrace" | "isCorner" | "cornerKitchenLiving">) => {
2
+
3
+ export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, 'loggia' | 'isDoubleLevel' | 'isPenthouse' | 'terrace' | 'isCorner' | 'cornerKitchenLiving'>) => {
3
4
  text: string;
4
5
  }[];
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './DestinationTab.types';
3
+
3
4
  export declare const DestinationTab: ({ size, size_m, size_l, destination, variant, width, routes, checked, onChange, additionalClass, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
- import { c as z } from "../../../index-YnD2EP-S.js";
3
- const N = "_destination_1c7de_1", x = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", e = {
4
- destination: N,
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { c as N } from "../../../index-rKuIKazb.js";
3
+ const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", _ = {
4
+ destination: x,
5
5
  "auto-width": "_auto-width_1c7de_29",
6
6
  "full-width": "_full-width_1c7de_33",
7
7
  "medium-size": "_medium-size_1c7de_37",
8
- destinationName: x,
8
+ destinationName: n,
9
9
  routeText: w,
10
10
  "large-size": "_large-size_1c7de_51",
11
11
  whiteStroke: g,
@@ -14,58 +14,58 @@ const N = "_destination_1c7de_1", x = "_destinationName_1c7de_40", w = "_routeTe
14
14
  "large-size_m": "_large-size_m_1c7de_122",
15
15
  "medium-size_l": "_medium-size_l_1c7de_137",
16
16
  "large-size_l": "_large-size_l_1c7de_150"
17
- }, b = z.bind(e), f = ({
18
- size: a = "medium",
19
- size_m: d,
20
- size_l: r,
21
- destination: t = { destName: "", color: "" },
22
- variant: m = "whiteStroke",
23
- width: o = "auto",
24
- routes: c = [],
25
- checked: l,
26
- onChange: n,
27
- additionalClass: u = "",
28
- ...p
29
- }) => /* @__PURE__ */ s(
17
+ }, b = N.bind(_), f = ({
18
+ size: m = "medium",
19
+ size_m: c,
20
+ size_l: a,
21
+ destination: e = { destName: "", color: "" },
22
+ variant: d = "whiteStroke",
23
+ width: i = "auto",
24
+ routes: l = [],
25
+ checked: o,
26
+ onChange: u,
27
+ additionalClass: p = "",
28
+ ...h
29
+ }) => /* @__PURE__ */ t(
30
30
  "label",
31
31
  {
32
32
  className: b(
33
- e.destination,
34
- e[`${a}-size`],
35
- e[`${d}-size_m`],
36
- e[`${r}-size_l`],
37
- e[`${m}`],
38
- e[`${o}-width`],
39
- u
33
+ _.destination,
34
+ _[`${m}-size`],
35
+ _[`${c}-size_m`],
36
+ _[`${a}-size_l`],
37
+ _[`${d}`],
38
+ _[`${i}-width`],
39
+ p
40
40
  ),
41
- ...p,
42
- htmlFor: t.destName,
41
+ ...h,
42
+ htmlFor: e.destName,
43
43
  children: [
44
- /* @__PURE__ */ i(
44
+ /* @__PURE__ */ r(
45
45
  "input",
46
46
  {
47
- id: t.destName,
48
- checked: l,
49
- onChange: n,
47
+ id: e.destName,
48
+ checked: o,
49
+ onChange: u,
50
50
  type: "checkbox",
51
- name: t.destName,
52
- value: t.destName
51
+ name: e.destName,
52
+ value: e.destName
53
53
  }
54
54
  ),
55
- /* @__PURE__ */ s("div", { className: e.destination, children: [
56
- t?.color && /* @__PURE__ */ i("span", { style: { background: t?.color ?? "" } }),
57
- t.destName
55
+ /* @__PURE__ */ t("div", { className: _.destination, children: [
56
+ (e == null ? void 0 : e.color) && /* @__PURE__ */ r("span", { style: { background: (e == null ? void 0 : e.color) ?? "" } }),
57
+ e.destName
58
58
  ] }),
59
- c.map((_, h) => /* @__PURE__ */ s(
59
+ l.map((s, z) => /* @__PURE__ */ t(
60
60
  "div",
61
61
  {
62
- className: e.routeWrapper,
62
+ className: _.routeWrapper,
63
63
  children: [
64
- _.type,
65
- /* @__PURE__ */ i("div", { className: e.routeText, children: _.text })
64
+ s.type,
65
+ /* @__PURE__ */ r("div", { className: _.routeText, children: s.text })
66
66
  ]
67
67
  },
68
- h
68
+ z
69
69
  ))
70
70
  ]
71
71
  }
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type destinationSizesWidth = 'auto' | 'full';
3
4
  export declare const DESTINATIONS_VARIANTS: {
4
5
  whiteStroke: string;
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './FieldInput.types';
3
+
3
4
  export declare const FieldInput: ({ label, handleClear, isShowClear, children }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+
2
3
  interface InputProps {
3
4
  label: string;
4
5
  handleClear?: () => void;
@@ -1,4 +1,5 @@
1
1
  import { TOption } from '../../Select/ui/Select.types';
2
+
2
3
  interface IuseFilterWithSave {
3
4
  selectOptions?: TOption[];
4
5
  disabledOptions?: TOption[];
@@ -38,6 +39,6 @@ export declare const useFilterWithSave: ({ selectedTabs, selectedValues, onClick
38
39
  value: string;
39
40
  state: boolean;
40
41
  }[]>>;
41
- containerRef: import('react').RefObject<HTMLDivElement | null>;
42
+ containerRef: import('react').MutableRefObject<HTMLDivElement | null>;
42
43
  };
43
44
  export {};