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
@@ -2,11 +2,6 @@ function c(e) {
2
2
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
3
  }
4
4
  var o = { exports: {} };
5
- /*!
6
- Copyright (c) 2018 Jed Watson.
7
- Licensed under the MIT License (MIT), see
8
- http://jedwatson.github.io/classnames
9
- */
10
5
  var i;
11
6
  function p() {
12
7
  return i || (i = 1, (function(e) {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { M as w } from "../../../Menu-CdJTzN7T.js";
2
+ import { Menu as w } from "../Menu.js";
3
3
  import { useState as r } from "react";
4
4
  import { NewIcon as a } from "../../../components/NewIcon/ui/NewIcon.js";
5
5
  const m = "_root_15wfn_1", _ = "_wrap_15wfn_12", g = "_search_15wfn_32", x = "_searchInp_15wfn_47", y = "_searchIcon_15wfn_67", I = "_closeBtn_15wfn_73", t = {
@@ -1,6 +1,109 @@
1
- import "react/jsx-runtime";
2
- import { M as t } from "../../Menu-CdJTzN7T.js";
3
- import "../../components/NewIcon/ui/NewIcon.js";
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { L as r } from "../../chunk-4WY6JWTD-BeveLKf_.js";
3
+ import { NewIcon as s } from "../../components/NewIcon/ui/NewIcon.js";
4
+ const c = "_root_9577c_1", a = "_linkWrap_9577c_8", i = {
5
+ root: c,
6
+ linkWrap: a
7
+ }, _ = () => {
8
+ const o = ({ to: l, title: n }) => /* @__PURE__ */ e(
9
+ r,
10
+ {
11
+ to: l,
12
+ className: i.linkWrap,
13
+ children: [
14
+ n,
15
+ /* @__PURE__ */ t(
16
+ s,
17
+ {
18
+ size: "24",
19
+ name: "play2",
20
+ deg: "90",
21
+ color: "white"
22
+ }
23
+ )
24
+ ]
25
+ }
26
+ );
27
+ return /* @__PURE__ */ e("div", { className: i.root, children: [
28
+ /* @__PURE__ */ t(
29
+ o,
30
+ {
31
+ to: "/buttons",
32
+ title: "КНОПКИ"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ t(
36
+ o,
37
+ {
38
+ to: "/modals",
39
+ title: "МОДАЛКИ"
40
+ }
41
+ ),
42
+ /* @__PURE__ */ t(
43
+ o,
44
+ {
45
+ to: "/tabs",
46
+ title: "ТАБЫ"
47
+ }
48
+ ),
49
+ /* @__PURE__ */ t(
50
+ o,
51
+ {
52
+ to: "/icons",
53
+ title: "ИКОНКИ"
54
+ }
55
+ ),
56
+ /* @__PURE__ */ t(
57
+ o,
58
+ {
59
+ to: "/lots",
60
+ title: "ЛОТЫ"
61
+ }
62
+ ),
63
+ /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ to: "/tags",
67
+ title: "ТЭГИ"
68
+ }
69
+ ),
70
+ /* @__PURE__ */ t(
71
+ o,
72
+ {
73
+ to: "/select",
74
+ title: "СЕЛЕКТ"
75
+ }
76
+ ),
77
+ /* @__PURE__ */ t(
78
+ o,
79
+ {
80
+ to: "/forms",
81
+ title: "ФОРМЫ"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ t(
85
+ o,
86
+ {
87
+ to: "/logo",
88
+ title: "ЛОГО"
89
+ }
90
+ ),
91
+ /* @__PURE__ */ t(
92
+ o,
93
+ {
94
+ to: "/input",
95
+ title: "ИНПУТЫ"
96
+ }
97
+ ),
98
+ /* @__PURE__ */ t(
99
+ o,
100
+ {
101
+ to: "/checkbox",
102
+ title: "ЧЕКБОКСЫ"
103
+ }
104
+ )
105
+ ] });
106
+ };
4
107
  export {
5
- t as Menu
108
+ _ as Menu
6
109
  };
@@ -27,6 +27,7 @@ const m = "_root_kl5jx_1", d = {
27
27
  /* @__PURE__ */ o(
28
28
  u,
29
29
  {
30
+ policiesMap: {},
30
31
  submitHandler: (n) => {
31
32
  console.log(n);
32
33
  },
@@ -1,41 +1,41 @@
1
- import { jsxs as o, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as p } from "react";
3
3
  import { TabSwitcher as i } from "../../components/TabSwitcher/ui/TabSwitcher.js";
4
- import { FieldInput as d } from "../../components/FieldInput/ui/FieldInput.js";
5
- import { TabSelect as l } from "../../components/TabSelect/ui/TabSelect.js";
6
- const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", w = "_tabSelectWrapper_idppf_11", v = "_whiteRow_apart_idppf_22", g = "_row_apart_idppf_26", n = {
4
+ import { FieldInput as l } from "../../components/FieldInput/ui/FieldInput.js";
5
+ import { TabSelect as d } from "../../components/TabSelect/ui/TabSelect.js";
6
+ const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", g = "_tabSelectWrapper_idppf_11", v = "_whiteRow_apart_idppf_22", w = "_row_apart_idppf_26", n = {
7
7
  root: m,
8
8
  tabsShort: _,
9
- tabSelectWrapper: w,
9
+ tabSelectWrapper: g,
10
10
  whiteRow_apart: v,
11
- row_apart: g
11
+ row_apart: w
12
12
  }, I = () => {
13
13
  const [s, h] = p("C мебелью"), c = ["C мебелью", "C размерами", "План этажа", "Ген. план"], r = ["Студия", "1", "2", "3", "4+"];
14
14
  return /* @__PURE__ */ o("div", { className: n.root, children: [
15
- /* @__PURE__ */ a(i, { children: r.map((t, e) => /* @__PURE__ */ a(
15
+ /* @__PURE__ */ t(i, { children: r.map((a, e) => /* @__PURE__ */ t(
16
16
  i.Item,
17
17
  {
18
18
  itemsLength: r.length,
19
19
  size_s: "medium",
20
20
  size_l: "large",
21
21
  index: e,
22
- value: t,
22
+ value: a,
23
23
  disabled: e === 2 || e === 1,
24
- children: t
24
+ children: a
25
25
  },
26
26
  e
27
27
  )) }),
28
- /* @__PURE__ */ a("div", { className: n.tabsShort, children: /* @__PURE__ */ a(d, { label: "Количество спален", children: /* @__PURE__ */ a(i, { children: r.map((t, e) => /* @__PURE__ */ a(
28
+ /* @__PURE__ */ t("div", { className: n.tabsShort, children: /* @__PURE__ */ t(l, { label: "Количество спален", children: /* @__PURE__ */ t(i, { children: r.map((a, e) => /* @__PURE__ */ t(
29
29
  i.Item,
30
30
  {
31
31
  itemsLength: r.length,
32
32
  index: e,
33
- value: t,
33
+ value: a,
34
34
  addItemClassName: e === 0 ? n.gg : "",
35
- children: t
35
+ children: a
36
36
  }
37
37
  )) }) }) }),
38
- /* @__PURE__ */ a("div", { className: n.tabsShort, children: /* @__PURE__ */ a(d, { label: "Количество спален", children: /* @__PURE__ */ a(i, { variant: "whiteRowGrayLabel", children: r.map((t, e) => /* @__PURE__ */ a(
38
+ /* @__PURE__ */ t("div", { className: n.tabsShort, children: /* @__PURE__ */ t(l, { label: "Количество спален", children: /* @__PURE__ */ t(i, { variant: "whiteRowGrayLabel", children: r.map((a, e) => /* @__PURE__ */ t(
39
39
  i.Item,
40
40
  {
41
41
  size_s: "tiny",
@@ -43,13 +43,13 @@ const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", w = "_tabSelectWrapper_idpp
43
43
  size_l: "tiny",
44
44
  itemsLength: r.length,
45
45
  index: e,
46
- value: t,
46
+ value: a,
47
47
  addItemClassName: e === 0 ? n.gg : "",
48
- children: t
48
+ children: a
49
49
  },
50
50
  e
51
51
  )) }) }) }),
52
- /* @__PURE__ */ a(d, { label: "Количество спален", children: /* @__PURE__ */ a(i, { variant: "whiteRowGrayLabel", children: r.map((t, e) => /* @__PURE__ */ a(
52
+ /* @__PURE__ */ t("div", { className: n.tabsShort, children: /* @__PURE__ */ t(l, { label: "Количество спален", children: /* @__PURE__ */ t(i, { variant: "outlined", children: r.map((a, e) => /* @__PURE__ */ t(
53
53
  i.Item,
54
54
  {
55
55
  size_s: "tiny",
@@ -57,39 +57,53 @@ const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", w = "_tabSelectWrapper_idpp
57
57
  size_l: "tiny",
58
58
  itemsLength: r.length,
59
59
  index: e,
60
- value: t,
60
+ value: a,
61
61
  addItemClassName: e === 0 ? n.gg : "",
62
- children: t
62
+ children: a
63
+ },
64
+ e
65
+ )) }) }) }),
66
+ /* @__PURE__ */ t(l, { label: "Количество спален", children: /* @__PURE__ */ t(i, { variant: "whiteRowGrayLabel", children: r.map((a, e) => /* @__PURE__ */ t(
67
+ i.Item,
68
+ {
69
+ size_s: "tiny",
70
+ size_m: "tiny",
71
+ size_l: "tiny",
72
+ itemsLength: r.length,
73
+ index: e,
74
+ value: a,
75
+ addItemClassName: e === 0 ? n.gg : "",
76
+ children: a
63
77
  },
64
78
  e
65
79
  )) }) }),
66
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(i, { col: !0, children: r.map((t, e) => /* @__PURE__ */ a(
80
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(i, { col: !0, children: r.map((a, e) => /* @__PURE__ */ t(
67
81
  i.Item,
68
82
  {
69
83
  itemsLength: r.length,
70
84
  index: e,
71
- value: t,
72
- children: t
85
+ value: a,
86
+ children: a
73
87
  },
74
88
  e
75
89
  )) }) }),
76
- /* @__PURE__ */ a("div", { className: n.tabsShort, children: /* @__PURE__ */ a(i, { col: !0, children: r.map((t, e) => /* @__PURE__ */ a(
90
+ /* @__PURE__ */ t("div", { className: n.tabsShort, children: /* @__PURE__ */ t(i, { col: !0, children: r.map((a, e) => /* @__PURE__ */ t(
77
91
  i.Item,
78
92
  {
79
93
  itemsLength: r.length,
80
94
  index: e,
81
- value: t,
82
- children: t
95
+ value: a,
96
+ children: a
83
97
  },
84
98
  e
85
99
  )) }) }),
86
- /* @__PURE__ */ a("div", { className: n.whiteRow_apart, children: /* @__PURE__ */ a(
100
+ /* @__PURE__ */ t("div", { className: n.whiteRow_apart, children: /* @__PURE__ */ t(
87
101
  i,
88
102
  {
89
103
  variant: "whiteRow",
90
104
  isApart: !0,
91
105
  addClassName: n.row_apart,
92
- children: r.map((t, e) => /* @__PURE__ */ a(
106
+ children: r.map((a, e) => /* @__PURE__ */ t(
93
107
  i.Item,
94
108
  {
95
109
  width: e === 0 ? "135px" : void 0,
@@ -97,19 +111,19 @@ const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", w = "_tabSelectWrapper_idpp
97
111
  width_l: e === 0 ? "155px" : void 0,
98
112
  itemsLength: r.length,
99
113
  index: e,
100
- children: t
114
+ children: a
101
115
  },
102
116
  e
103
117
  ))
104
118
  }
105
119
  ) }),
106
- /* @__PURE__ */ a("div", { className: n.whiteRow_apart, children: /* @__PURE__ */ a(
120
+ /* @__PURE__ */ t("div", { className: n.whiteRow_apart, children: /* @__PURE__ */ t(
107
121
  i,
108
122
  {
109
123
  variant: "grayRow",
110
124
  isApart: !0,
111
125
  addClassName: n.row_apart,
112
- children: r.map((t, e) => /* @__PURE__ */ a(
126
+ children: r.map((a, e) => /* @__PURE__ */ t(
113
127
  i.Item,
114
128
  {
115
129
  width: e === 0 ? "135px" : void 0,
@@ -117,33 +131,33 @@ const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", w = "_tabSelectWrapper_idpp
117
131
  width_l: e === 0 ? "155px" : void 0,
118
132
  itemsLength: r.length,
119
133
  index: e,
120
- children: t
134
+ children: a
121
135
  },
122
136
  e
123
137
  ))
124
138
  }
125
139
  ) }),
126
- /* @__PURE__ */ a("div", { className: n.tabSelectWrapper, children: /* @__PURE__ */ a(l, { variant: "grayDesign", children: c.map((t, e) => /* @__PURE__ */ a(
127
- l.Item,
140
+ /* @__PURE__ */ t("div", { className: n.tabSelectWrapper, children: /* @__PURE__ */ t(d, { variant: "grayDesign", children: c.map((a, e) => /* @__PURE__ */ t(
141
+ d.Item,
128
142
  {
129
143
  name: "type",
130
- checked: s === t,
131
- onChange: () => h(t),
132
- value: t,
133
- children: t
144
+ checked: s === a,
145
+ onChange: () => h(a),
146
+ value: a,
147
+ children: a
134
148
  },
135
149
  e
136
150
  )) }) }),
137
- /* @__PURE__ */ a("div", { className: n.tabSelectWrapper, children: /* @__PURE__ */ a(l, { variant: "whiteStroke", children: ["для коммерции", "для жилых"].map((t, e) => /* @__PURE__ */ a(
138
- l.Item,
151
+ /* @__PURE__ */ t("div", { className: n.tabSelectWrapper, children: /* @__PURE__ */ t(d, { variant: "whiteStroke", children: ["для коммерции", "для жилых"].map((a, e) => /* @__PURE__ */ t(
152
+ d.Item,
139
153
  {
140
154
  name: "type",
141
155
  width: "160px",
142
156
  withPadding: !0,
143
- checked: s === t,
144
- onChange: () => h(t),
145
- value: t,
146
- children: t
157
+ checked: s === a,
158
+ onChange: () => h(a),
159
+ value: a,
160
+ children: a
147
161
  },
148
162
  e
149
163
  )) }) })