stone-kit 0.0.1032 → 0.0.1033

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 (91) hide show
  1. package/dist/App.js +4 -4
  2. package/dist/Option-D-8xnCui.js +94 -0
  3. package/dist/Router.js +1 -1
  4. package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
  5. package/dist/components/Button/ui/Button.js +1 -1
  6. package/dist/components/CheckBoxNew/CheckBoxNew.js +1 -1
  7. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +4 -0
  8. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +20 -19
  9. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
  10. package/dist/components/CommercialLotCard/CommercialLotCard.js +62 -41
  11. package/dist/components/CommercialLotCard/components/Price/Price.js +1 -1
  12. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +1 -1
  13. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +2 -0
  14. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  15. package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -1
  16. package/dist/components/FieldInput/ui/FieldInput.js +21 -12
  17. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
  18. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +1 -1
  19. package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -7
  20. package/dist/components/Flex/ui/Flex.js +1 -1
  21. package/dist/components/FormModal/ui/ModalForm.d.ts +10 -1
  22. package/dist/components/FormModal/ui/ModalForm.js +803 -719
  23. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  24. package/dist/components/Input/ui/Input.js +1 -22
  25. package/dist/components/Logo/ui/Logo.js +1 -1
  26. package/dist/components/LotCard/hooks/useLotCard.js +2 -2
  27. package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
  28. package/dist/components/LotCard/ui/LotCard.js +114 -94
  29. package/dist/components/LotCard/ui/LotCard.types.d.ts +2 -0
  30. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  31. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  32. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  33. package/dist/components/NewIcon/ui/NewIcon.js +119 -114
  34. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  35. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
  36. package/dist/components/Select/ui/Category.js +2 -2
  37. package/dist/components/Select/ui/Option.d.ts +2 -1
  38. package/dist/components/Select/ui/Option.js +2 -2
  39. package/dist/components/Select/ui/Select.d.ts +1 -1
  40. package/dist/components/Select/ui/Select.js +88 -82
  41. package/dist/components/Select/ui/Select.types.d.ts +5 -0
  42. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  43. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  44. package/dist/components/SortSelect/ui/SortSelect.js +2 -2
  45. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
  46. package/dist/components/SummarySelect/ui/SummarySelect.js +60 -57
  47. package/dist/components/Switcher/ui/Switcher.js +1 -1
  48. package/dist/components/TabSelect/ui/TabSelect.js +1 -1
  49. package/dist/components/TabSwitcher/ui/TabSwitcher.js +91 -90
  50. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
  51. package/dist/components/Tag/ui/Tag.js +1 -1
  52. package/dist/components/Text/ui/Text.js +1 -1
  53. package/dist/components/TextArea/TextArea.js +1 -1
  54. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  55. package/dist/{index-3E04UaC2.js → index-BJwl9stn.js} +785 -784
  56. package/dist/{index-B2JRaoNz.js → index-YnD2EP-S.js} +0 -5
  57. package/dist/layout/components/Header/Header.js +1 -1
  58. package/dist/layout/components/Menu.js +107 -4
  59. package/dist/pages/FormsPage/FormsPage.js +1 -0
  60. package/dist/pages/TabsPage/TabsPage.js +56 -42
  61. package/dist/stone-kit.css +1 -1
  62. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
  63. package/dist/stories/shared/ui/Button/Button.stories.js +1 -1
  64. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  65. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  66. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  67. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  68. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  69. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
  70. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +1 -1
  71. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  72. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  73. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  74. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  75. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  76. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  77. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  78. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  79. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
  80. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  81. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  82. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  83. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
  84. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  85. package/dist/useLotCard-I7_rgnqj.js +187 -0
  86. package/dist/{useSortSelect-B8HOGdOt.js → useSortSelect-IeonkD5d.js} +1 -1
  87. package/package.json +5 -5
  88. package/dist/Menu-CdJTzN7T.js +0 -494
  89. package/dist/Option-rFBMQAPk.js +0 -87
  90. package/dist/index-CBdtKu-u.js +0 -891
  91. package/dist/useLotCard-DG9doKCX.js +0 -186
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as m, Fragment as r } from "react/jsx-runtime";
2
- import { c as k } from "../../../index-B2JRaoNz.js";
2
+ import { c as k } from "../../../index-YnD2EP-S.js";
3
3
  import { NewIcon as y } from "../../NewIcon/ui/NewIcon.js";
4
4
  const w = "_btnCommon_1n16j_1", f = "_btnLoading_1n16j_20", C = "_pre_1n16j_24", N = "_post_1n16j_25", p = "_isHidden_1n16j_29", v = "_blue_1n16j_73", H = "_lightBlue_1n16j_87", S = "_sokolniki_1n16j_102", B = "_black_1n16j_116", L = "_gray_1n16j_130", $ = "_whiteStroke_1n16j_144", x = "_whiteFilled_1n16j_156", F = "_shade_1n16j_170", I = "_transparent_1n16j_176", q = "_volodiyaLight_1n16j_197", A = "_loader_1n16j_203", D = "_LoaderSpin_1n16j_1", e = {
5
5
  btnCommon: w,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _, jsx as o } from "react/jsx-runtime";
2
- import { c as m } from "../../index-B2JRaoNz.js";
2
+ import { c as m } from "../../index-YnD2EP-S.js";
3
3
  import { forwardRef as h } from "react";
4
4
  import { Input as p } from "../Input/ui/Input.js";
5
5
  import { NewIcon as d } from "../NewIcon/ui/NewIcon.js";
@@ -8,6 +8,10 @@ interface ICheckboxSelectProps {
8
8
  }[];
9
9
  addClassname?: string;
10
10
  isNeedClear?: boolean;
11
+ labelSize?: 'medium' | 'large';
12
+ /**
13
+ * @deprecated Используйте labelSize='large' вместо isPromotion={true}
14
+ */
11
15
  isPromotion?: boolean;
12
16
  }
13
17
  export declare const CheckboxSelect: React.FC<ICheckboxSelectProps>;
@@ -1,35 +1,36 @@
1
1
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
- import { c as h } from "../../../index-B2JRaoNz.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 = ({
2
+ import { c as b } from "../../../index-YnD2EP-S.js";
3
+ const d = "_root_19qpl_1", m = "_nameWrapper_19qpl_8", x = "_large_19qpl_18", k = "_clearBtn_19qpl_25", I = "_checkboxWrapper_19qpl_40", g = "_checkboxItem_19qpl_46", q = "_checkboxItemActive_19qpl_64", v = "_checkboxItemDisabled_19qpl_76", B = "_checkBoxLarge_19qpl_81", e = {
4
+ root: d,
5
+ nameWrapper: m,
6
+ large: x,
7
+ clearBtn: k,
8
+ checkboxWrapper: I,
9
+ checkboxItem: g,
10
+ checkboxItemActive: q,
11
+ checkboxItemDisabled: v,
12
+ checkBoxLarge: B
13
+ }, l = b.bind(e), N = ({
14
14
  label: s = "Тип квартиры",
15
15
  checkboxes: r,
16
16
  addClassname: n,
17
- isNeedClear: p = !0,
18
- isPromotion: t
17
+ isNeedClear: i = !0,
18
+ labelSize: p = "medium",
19
+ isPromotion: h
19
20
  }) => {
20
- const i = () => {
21
+ const _ = () => {
21
22
  r?.forEach((c) => {
22
23
  c?.isSelected && c?.setValue();
23
24
  });
24
- };
25
+ }, t = p === "large" || h;
25
26
  return /* @__PURE__ */ o("div", { className: l(e.root, n), children: [
26
27
  /* @__PURE__ */ o("div", { className: l(e.nameWrapper, { [e.large]: t }), children: [
27
28
  /* @__PURE__ */ a("div", { children: s }),
28
- p && /* @__PURE__ */ a(
29
+ i && /* @__PURE__ */ a(
29
30
  "div",
30
31
  {
31
32
  className: e.clearBtn,
32
- onClick: i,
33
+ onClick: _,
33
34
  children: "Очистить"
34
35
  }
35
36
  )
@@ -52,5 +53,5 @@ const _ = "_root_19qpl_1", b = "_nameWrapper_19qpl_8", d = "_large_19qpl_18", x
52
53
  ] });
53
54
  };
54
55
  export {
55
- W as CheckboxSelect
56
+ N as CheckboxSelect
56
57
  };
@@ -1,2 +1,2 @@
1
1
  import { ICommercialLotCard } from './types/CommercialLotCard.types';
2
- export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const CommercialLotCard: ({ lot, imgNode, onPriceClickHandler, addClassname, isVertical, isFavorite, favoriteClickHandler, }: ICommercialLotCard) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,52 +1,73 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { c as g } from "../../index-B2JRaoNz.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 = ({
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { c as u } from "../../index-YnD2EP-S.js";
3
+ import { fmtNumber as g } from "../../shared/fmtNumber.js";
4
+ import { Price as z } from "./components/Price/Price.js";
5
+ import { Snippets as W } from "./components/Snippets/Snippets.js";
6
+ import { Tags as y } from "./components/Tags/Tags.js";
7
+ import { RoundButton as b } from "../RoundButton/ui/RoundButton.js";
8
+ const v = "_root_hyzjj_1", I = "_lotImageWrapper_hyzjj_17", w = "_favoriteBtn_hyzjj_24", B = "_lotNameWrapper_hyzjj_30", R = "_lotName_hyzjj_30", x = "_lotNumber_hyzjj_45", P = "_priceWrapper_hyzjj_54", C = "_rootRow_hyzjj_59", r = {
9
+ root: v,
10
+ lotImageWrapper: I,
11
+ favoriteBtn: w,
12
+ lotNameWrapper: B,
13
+ lotName: R,
14
+ lotNumber: x,
15
+ priceWrapper: P,
16
+ rootRow: C
17
+ }, F = u.bind(r), D = ({
16
18
  lot: e,
17
- imgNode: m,
18
- onPriceClickHandler: p,
19
- addClassname: s,
20
- isVertical: a = !1
19
+ imgNode: i,
20
+ onPriceClickHandler: s,
21
+ addClassname: l,
22
+ isVertical: t = !1,
23
+ isFavorite: p,
24
+ favoriteClickHandler: m
21
25
  }) => {
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 })
26
+ const { interiorPlanImg: n, floorPlanImg: c, area: _, subTypeName: N, number: d } = e || {}, h = N + ", " + g(_) + "м²", j = n ?? c ?? "";
27
+ return e ? /* @__PURE__ */ a("div", { className: F(r.root, l, { [r.rootRow]: !t }), children: [
28
+ /* @__PURE__ */ a("div", { className: r.lotImageWrapper, children: [
29
+ i || /* @__PURE__ */ o(
30
+ "img",
31
+ {
32
+ loading: "lazy",
33
+ src: j,
34
+ width: 295,
35
+ height: 213,
36
+ alt: "logo_image"
37
+ }
38
+ ),
39
+ /* @__PURE__ */ o(
40
+ b,
41
+ {
42
+ iconName: p ? "heartFilled" : "heart",
43
+ size: "medium",
44
+ size_m: "small",
45
+ size_l: "medium",
46
+ variant: "fullGray",
47
+ color: "#015FF9",
48
+ additionalClass: r.favoriteBtn,
49
+ onClick: (f) => {
50
+ m && m(e), f.stopPropagation();
51
+ }
52
+ }
53
+ )
54
+ ] }),
55
+ /* @__PURE__ */ a("div", { className: r.lotNameWrapper, children: [
56
+ /* @__PURE__ */ o("p", { className: r.lotName, children: h }),
57
+ /* @__PURE__ */ o("p", { className: r.lotNumber, children: d }),
58
+ /* @__PURE__ */ o(W, { lot: e }),
59
+ /* @__PURE__ */ o(y, { lot: e })
39
60
  ] }),
40
- /* @__PURE__ */ r("div", { className: o.priceWrapper, children: /* @__PURE__ */ r(
41
- W,
61
+ /* @__PURE__ */ o("div", { className: r.priceWrapper, children: /* @__PURE__ */ o(
62
+ z,
42
63
  {
43
64
  lot: e,
44
- isVertical: a,
45
- onPriceClickHandler: p
65
+ isVertical: t,
66
+ onPriceClickHandler: s
46
67
  }
47
68
  ) })
48
69
  ] }) : null;
49
70
  };
50
71
  export {
51
- L as CommercialLotCard
72
+ D as CommercialLotCard
52
73
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
- import { c as P } from "../../../../index-B2JRaoNz.js";
2
+ import { c as P } from "../../../../index-YnD2EP-S.js";
3
3
  import { formatPrice as g } from "../../utils/formatPrice.js";
4
4
  import { NewIcon as y } from "../../../NewIcon/ui/NewIcon.js";
5
5
  const N = "_root_z3d8u_1", w = "_price_z3d8u_7", z = "_paymentWrapper_z3d8u_19", b = "_rootVertical_z3d8u_36", r = {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as A } from "react";
3
3
  import { getTagsFeatures as B } from "../../utils/getTagsFeatures.js";
4
- import { c as I } from "../../../../index-B2JRaoNz.js";
4
+ import { c as I } from "../../../../index-YnD2EP-S.js";
5
5
  import { useClientWidth as k } from "../../../../shared/useClientWidth.js";
6
6
  import { NewIcon as C } from "../../../NewIcon/ui/NewIcon.js";
7
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 = {
@@ -5,4 +5,6 @@ export interface ICommercialLotCard {
5
5
  addClassname?: string;
6
6
  isVertical?: boolean;
7
7
  onPriceClickHandler?: () => void;
8
+ isFavorite?: boolean;
9
+ favoriteClickHandler?: (lot: ILot) => void;
8
10
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
- import { c as z } from "../../../index-B2JRaoNz.js";
2
+ import { c as z } from "../../../index-YnD2EP-S.js";
3
3
  const N = "_destination_1c7de_1", x = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", e = {
4
4
  destination: N,
5
5
  "auto-width": "_auto-width_1c7de_29",
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './FieldInput.types';
3
- export declare const FieldInput: ({ label, handleClear, isShowClear, children }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const FieldInput: ({ label, handleClear, isShowClear, children, labelSize, }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,31 @@
1
- import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
- const s = "_fieldInputWrapper_1y5f8_1", t = "_clearBtn_1y5f8_16", i = "_nameWrapper_1y5f8_31", e = {
3
- fieldInputWrapper: s,
4
- clearBtn: t,
5
- nameWrapper: i
6
- }, m = ({ label: n, handleClear: p, isShowClear: l, children: c }) => /* @__PURE__ */ r("div", { className: e.fieldInputWrapper, children: [
7
- /* @__PURE__ */ r("div", { className: e.nameWrapper, children: [
8
- /* @__PURE__ */ a("label", { className: e.label, children: n }),
9
- l && /* @__PURE__ */ a(
1
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
+ import { c as t } from "../../../index-YnD2EP-S.js";
3
+ const i = "_fieldInputWrapper_1l9b5_1", m = "_clearBtn_1l9b5_9", _ = "_nameWrapper_1l9b5_24", d = "_label_1l9b5_32", o = "_large_1l9b5_40", e = {
4
+ fieldInputWrapper: i,
5
+ clearBtn: m,
6
+ nameWrapper: _,
7
+ label: d,
8
+ large: o
9
+ }, u = ({
10
+ label: r,
11
+ handleClear: n,
12
+ isShowClear: p,
13
+ children: s,
14
+ labelSize: c = "medium"
15
+ }) => /* @__PURE__ */ l("div", { className: e.fieldInputWrapper, children: [
16
+ /* @__PURE__ */ l("div", { className: t(e.nameWrapper, { [e.large]: c === "large" }), children: [
17
+ /* @__PURE__ */ a("label", { className: e.label, children: r }),
18
+ p && /* @__PURE__ */ a(
10
19
  "div",
11
20
  {
12
21
  className: e.clearBtn,
13
- onClick: p,
22
+ onClick: n,
14
23
  children: "Очистить"
15
24
  }
16
25
  )
17
26
  ] }),
18
- c
27
+ s
19
28
  ] });
20
29
  export {
21
- m as FieldInput
30
+ u as FieldInput
22
31
  };
@@ -4,6 +4,7 @@ interface InputProps {
4
4
  handleClear?: () => void;
5
5
  children?: ReactNode;
6
6
  isShowClear?: boolean;
7
+ labelSize?: 'medium' | 'large';
7
8
  }
8
9
  export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
9
10
  export {};
@@ -38,6 +38,6 @@ export declare const useFilterWithSave: ({ selectedTabs, selectedValues, onClick
38
38
  value: string;
39
39
  state: boolean;
40
40
  }[]>>;
41
- containerRef: import('react').MutableRefObject<HTMLDivElement | null>;
41
+ containerRef: import('react').RefObject<HTMLDivElement | null>;
42
42
  };
43
43
  export {};
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, Fragment as I, jsx as t } from "react/jsx-runtime";
2
- import { O as M } from "../../../Option-rFBMQAPk.js";
3
- import { g as D } from "../../../index-B2JRaoNz.js";
2
+ import { O as M } from "../../../Option-D-8xnCui.js";
3
+ import { g as D } from "../../../index-YnD2EP-S.js";
4
4
  import { useFilterWithSave as P } from "../hooks/useFilterWithSave.js";
5
5
  import { NewIcon as S } from "../../NewIcon/ui/NewIcon.js";
6
6
  import { TabSwitcher as _ } from "../../TabSwitcher/ui/TabSwitcher.js";
@@ -26,11 +26,6 @@ const G = "_root_1v1y9_1", H = "_filterWithSaveModal_1v1y9_15", J = "_modalAddBo
26
26
  desktopWrapperOpen: le
27
27
  };
28
28
  var N = { exports: {} };
29
- /*!
30
- Copyright (c) 2018 Jed Watson.
31
- Licensed under the MIT License (MIT), see
32
- http://jedwatson.github.io/classnames
33
- */
34
29
  var A;
35
30
  function oe() {
36
31
  return A || (A = 1, (function(v) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { c as t } from "../../../index-B2JRaoNz.js";
2
+ import { c as t } from "../../../index-YnD2EP-S.js";
3
3
  const o = "_root_fi64k_1", _ = {
4
4
  root: o,
5
5
  "gap-1": "_gap-1_fi64k_5",
@@ -36,9 +36,11 @@ interface IModalFormProps {
36
36
  domNode: HTMLElement | null;
37
37
  key?: string | null | undefined;
38
38
  };
39
+ policiesMap: Record<DocumentSlug, string>;
39
40
  emitCheckBox?: () => void;
40
41
  emitAdvCheckBox?: () => void;
41
42
  }
43
+ type DocumentSlug = string;
42
44
  type IFormPageInputs = {
43
45
  phone: string;
44
46
  name: string;
@@ -46,6 +48,13 @@ type IFormPageInputs = {
46
48
  personalCheckBox: boolean;
47
49
  advCheckBox?: boolean;
48
50
  textarea?: string;
51
+ 'policy-slug': string;
49
52
  };
50
- export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj, telegramClickHandler, blurHandler, handlerButton, block_name, emitCheckBox, emitAdvCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
53
+ export declare enum POLICY_TYPE {
54
+ PRIVACY_POLICY = "privacy-policy",
55
+ PERSONAL_DATA = "personal-data",
56
+ MAILING = "mailing",
57
+ STONE_VALUE = "stone-value"
58
+ }
59
+ export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj, telegramClickHandler, blurHandler, handlerButton, block_name, policiesMap, emitCheckBox, emitAdvCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
51
60
  export {};