stone-kit 0.0.1073 → 0.0.1075
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.
- package/README.md +88 -88
- package/dist/FilterWithSave-DfzlSC-v.js +2718 -0
- package/dist/components/Button/ui/Button.types.d.ts +1 -0
- package/dist/components/Button/ui/Button.types.js +4 -3
- package/dist/components/CheckBoxNew/CheckBoxNew.js +5 -5
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +10 -81
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +4 -4
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +1 -1
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +2 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
- package/dist/components/FormModal/ui/ModalForm.js +29 -1516
- package/dist/components/Icons/TooltipIcon.d.ts +2 -0
- package/dist/components/Icons/TooltipIcon.js +29 -0
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.js +24 -6
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -1
- package/dist/components/LotCard/ui/LotCard.js +12 -240
- package/dist/components/LotCard/ui/LotCard.types.d.ts +2 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +1 -1
- package/dist/components/RoundButton/ui/RoundButton.js +1 -1
- package/dist/components/Select/ui/Category.js +2 -2
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.js +2 -2
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +26 -108
- package/dist/components/SummarySelect/ui/SummarySelect.js +1 -1
- package/dist/components/TabSelect/ui/TabSelect.js +4 -4
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -121
- package/dist/components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/components/Tooltip/Tooltip.js +1945 -0
- package/dist/layout/components/Header/Header.js +65 -44
- package/dist/layout/components/Menu.js +37 -15
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +61 -44
- package/dist/pages/FormsPage/FormsPage.js +42 -22
- package/dist/pages/IconsPage/IconsPage.js +31 -9
- package/dist/pages/InputPage/InputPage.js +32 -10
- package/dist/pages/LogoPage/LogoPage.js +36 -13
- package/dist/pages/LotsPage/LotsPage.js +24 -24
- package/dist/pages/ModalsPage/ModalPage.js +66 -46
- package/dist/pages/SelectPage/SelectPage.js +40 -41
- package/dist/pages/TabsPage/TabsPage.js +1 -1
- package/dist/pages/TagsPage/TagsPage.js +44 -23
- package/dist/stone-kit.css +1 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +1 -1
- package/dist/stories/shared/ui/Button/Button.stories.js +4 -4
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +1 -1
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +7 -7
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +1 -1
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/package.json +2 -1
- package/dist/useLotCard-D-gK4J_o.js +0 -186
- package/dist/{Option-DmDx_xOt.js → Option-DdjBe9yb.js} +1 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { SummarySelect as u } from "../../components/SummarySelect/ui/SummarySelect.js";
|
|
4
|
+
import { F as m, S as y } from "../../FilterWithSave-DfzlSC-v.js";
|
|
4
5
|
import { defaultOption as i, defaultCategory as a } from "./const.js";
|
|
5
|
-
import { CheckboxSelect as
|
|
6
|
-
import { CheckBox as
|
|
7
|
-
import {
|
|
8
|
-
import { Switcher as v } from "../../components/Switcher/ui/Switcher.js";
|
|
9
|
-
import { SummarySelect as p } from "../../components/SummarySelect/ui/SummarySelect.js";
|
|
6
|
+
import { CheckboxSelect as v } from "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
7
|
+
import { CheckBox as k } from "../../components/CheckBox/CheckBox.js";
|
|
8
|
+
import { Switcher as S } from "../../components/Switcher/ui/Switcher.js";
|
|
10
9
|
import { Select as c } from "../../components/Select/ui/Select.js";
|
|
11
10
|
const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
12
11
|
sort: x,
|
|
13
12
|
filterWithSave: V
|
|
14
|
-
},
|
|
15
|
-
const [
|
|
13
|
+
}, F = () => {
|
|
14
|
+
const [p, g] = n(i[0]), [t, b] = n([]), [o, h] = n("options"), f = [
|
|
16
15
|
{
|
|
17
16
|
label: "sdfsdfsdf",
|
|
18
17
|
setValue: () => {
|
|
@@ -53,10 +52,10 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
53
52
|
}, d = (l) => {
|
|
54
53
|
l && b(l);
|
|
55
54
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ s("div", { className: r.root, children: [
|
|
56
|
+
/* @__PURE__ */ s("div", { children: [
|
|
58
57
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
59
|
-
|
|
58
|
+
m,
|
|
60
59
|
{
|
|
61
60
|
onClick: () => console.log("filter"),
|
|
62
61
|
onSaveClick: () => console.log("save"),
|
|
@@ -73,18 +72,18 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
73
72
|
]
|
|
74
73
|
}
|
|
75
74
|
) }),
|
|
76
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ s("div", { children: [
|
|
77
76
|
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(v, { checkboxes: f })
|
|
79
78
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ s("div", { children: [
|
|
81
80
|
/* @__PURE__ */ e("h2", { children: " Селектор с чекбоксами" }),
|
|
82
|
-
/* @__PURE__ */ e(
|
|
81
|
+
/* @__PURE__ */ e(v, { checkboxes: f, isPromotion: !0 })
|
|
83
82
|
] }),
|
|
84
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ s("div", { children: [
|
|
85
84
|
/* @__PURE__ */ e("h2", { children: "старый чекбокс" }),
|
|
86
85
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
86
|
+
k,
|
|
88
87
|
{
|
|
89
88
|
isChecked: !1,
|
|
90
89
|
emitIsChecked: () => {
|
|
@@ -93,95 +92,95 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
93
92
|
}
|
|
94
93
|
)
|
|
95
94
|
] }),
|
|
96
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ s("div", { children: [
|
|
97
96
|
/* @__PURE__ */ e("h2", { children: " Фильтрация с сохранением" }),
|
|
98
|
-
/* @__PURE__ */ e("div", { className: r.filterWithSave, children: /* @__PURE__ */ e(
|
|
97
|
+
/* @__PURE__ */ e("div", { className: r.filterWithSave, children: /* @__PURE__ */ e(m, {}) })
|
|
99
98
|
] }),
|
|
100
99
|
/* @__PURE__ */ e("h2", { children: "Сорт селект" }),
|
|
101
100
|
/* @__PURE__ */ e("div", { className: r.sort, children: /* @__PURE__ */ e(
|
|
102
|
-
|
|
101
|
+
y,
|
|
103
102
|
{
|
|
104
103
|
mini: !0,
|
|
105
|
-
selectedOption:
|
|
104
|
+
selectedOption: p,
|
|
106
105
|
options: i,
|
|
107
106
|
onChange: (l) => C(l)
|
|
108
107
|
}
|
|
109
108
|
) })
|
|
110
109
|
] }),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s("div", { className: r.summarySelect, children: [
|
|
111
|
+
/* @__PURE__ */ s("div", { style: { display: "flex", gap: "20px" }, children: [
|
|
113
112
|
/* @__PURE__ */ e("h2", { children: "SummarySelect" }),
|
|
114
113
|
/* @__PURE__ */ e(
|
|
115
|
-
|
|
114
|
+
S,
|
|
116
115
|
{
|
|
117
116
|
isActive: o === "category",
|
|
118
|
-
onClick: () =>
|
|
117
|
+
onClick: () => h(o === "options" ? "category" : "options"),
|
|
119
118
|
children: "mode category"
|
|
120
119
|
}
|
|
121
120
|
),
|
|
122
121
|
/* @__PURE__ */ e(
|
|
123
|
-
|
|
122
|
+
S,
|
|
124
123
|
{
|
|
125
124
|
isActive: o === "double",
|
|
126
|
-
onClick: () =>
|
|
125
|
+
onClick: () => h(o === "options" ? "double" : "options"),
|
|
127
126
|
children: "mode double"
|
|
128
127
|
}
|
|
129
128
|
)
|
|
130
129
|
] }),
|
|
131
130
|
/* @__PURE__ */ e(
|
|
132
|
-
|
|
131
|
+
u,
|
|
133
132
|
{
|
|
134
133
|
mode: o,
|
|
135
134
|
label: "Проект",
|
|
136
135
|
isShowReset: !0,
|
|
137
|
-
selectedValues:
|
|
136
|
+
selectedValues: t,
|
|
138
137
|
options: o === "category" ? a : i,
|
|
139
138
|
onChange: (l) => d(l),
|
|
140
139
|
selectAll: { enabled: !0 }
|
|
141
140
|
}
|
|
142
141
|
),
|
|
143
142
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
143
|
+
u,
|
|
145
144
|
{
|
|
146
145
|
mode: "single",
|
|
147
146
|
label: "Проект",
|
|
148
147
|
isShowReset: !0,
|
|
149
|
-
selectedValues:
|
|
148
|
+
selectedValues: t,
|
|
150
149
|
options: i,
|
|
151
150
|
onChange: (l) => d(l)
|
|
152
151
|
}
|
|
153
152
|
)
|
|
154
153
|
] }),
|
|
155
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ s("div", { children: [
|
|
156
155
|
/* @__PURE__ */ e("h2", { children: "Селект mode option" }),
|
|
157
156
|
/* @__PURE__ */ e(
|
|
158
157
|
c,
|
|
159
158
|
{
|
|
160
|
-
selectedValues:
|
|
159
|
+
selectedValues: t,
|
|
161
160
|
options: a,
|
|
162
161
|
onChange: (l) => d(l)
|
|
163
162
|
}
|
|
164
163
|
)
|
|
165
164
|
] }),
|
|
166
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ s("div", { children: [
|
|
167
166
|
/* @__PURE__ */ e("h2", { children: "Селект mode category" }),
|
|
168
167
|
/* @__PURE__ */ e(
|
|
169
168
|
c,
|
|
170
169
|
{
|
|
171
170
|
mode: "category",
|
|
172
|
-
selectedValues:
|
|
171
|
+
selectedValues: t,
|
|
173
172
|
options: a,
|
|
174
173
|
onChange: (l) => d(l)
|
|
175
174
|
}
|
|
176
175
|
)
|
|
177
176
|
] }),
|
|
178
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ s("div", { children: [
|
|
179
178
|
/* @__PURE__ */ e("h2", { children: "Селект mode double" }),
|
|
180
179
|
/* @__PURE__ */ e(
|
|
181
180
|
c,
|
|
182
181
|
{
|
|
183
182
|
selectAll: { enabled: !0 },
|
|
184
|
-
selectedValues:
|
|
183
|
+
selectedValues: t,
|
|
185
184
|
options: a,
|
|
186
185
|
mode: "double",
|
|
187
186
|
clickableOptions: ["Category1", "options1", "options3"],
|
|
@@ -189,7 +188,7 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
189
188
|
}
|
|
190
189
|
)
|
|
191
190
|
] }),
|
|
192
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ s("div", { children: [
|
|
193
192
|
/* @__PURE__ */ e("h2", { children: "Селект кнопка" }),
|
|
194
193
|
/* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ e(
|
|
195
194
|
c,
|
|
@@ -198,7 +197,7 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
198
197
|
size_s: "small",
|
|
199
198
|
size_l: "medium",
|
|
200
199
|
isListRight: !0,
|
|
201
|
-
selectedValues:
|
|
200
|
+
selectedValues: t,
|
|
202
201
|
options: i,
|
|
203
202
|
onChange: (l) => d(l)
|
|
204
203
|
}
|
|
@@ -207,5 +206,5 @@ const x = "_sort_1szg2_1", V = "_filterWithSave_1szg2_14", r = {
|
|
|
207
206
|
] });
|
|
208
207
|
};
|
|
209
208
|
export {
|
|
210
|
-
|
|
209
|
+
F as SelectPage
|
|
211
210
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { T as i } from "../../FilterWithSave-DfzlSC-v.js";
|
|
4
4
|
import { FieldInput as l } from "../../components/FieldInput/ui/FieldInput.js";
|
|
5
5
|
import { TabSelect as d } from "../../components/TabSelect/ui/TabSelect.js";
|
|
6
6
|
const m = "_root_idppf_1", _ = "_tabsShort_idppf_7", g = "_tabSelectWrapper_idppf_11", v = "_whiteRow_apart_idppf_22", w = "_row_apart_idppf_26", n = {
|
|
@@ -1,34 +1,55 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "../../components/Button/ui/Button.js";
|
|
3
|
+
import "../../components/mobileButton/ui/MobileButton.js";
|
|
4
|
+
import "../../components/NewIcon/ui/NewIcon.js";
|
|
5
|
+
import "../../components/DestinationTab/ui/DestinationTab.js";
|
|
6
|
+
import "../../components/RoundButton/ui/RoundButton.js";
|
|
7
|
+
import { Tag as r } from "../../components/Tag/ui/Tag.js";
|
|
8
|
+
import "../../components/Switcher/ui/Switcher.js";
|
|
9
|
+
import "../../components/Text/ui/Text.js";
|
|
10
|
+
import "../../components/Flex/ui/Flex.js";
|
|
11
|
+
import "../../components/Input/ui/Input.js";
|
|
12
|
+
import "react";
|
|
13
|
+
import "react-dom";
|
|
14
|
+
import "../../index-YnD2EP-S.js";
|
|
15
|
+
import "../../FilterWithSave-DfzlSC-v.js";
|
|
16
|
+
import "../../components/GroupedInput/ui/GroupedInputs.js";
|
|
17
|
+
import { MetroTag as o } from "../../components/MetroTag/ui/MetroTag.js";
|
|
18
|
+
import "../../components/Select/ui/Select.js";
|
|
19
|
+
import "../../components/SliderNavigation/ui/SliderNavigation.js";
|
|
20
|
+
import "../../components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
21
|
+
import "../../components/TabSelect/ui/TabSelect.js";
|
|
22
|
+
import "../../components/CheckBox/CheckBox.js";
|
|
23
|
+
import "../../components/CheckBoxNew/CheckBoxNew.js";
|
|
24
|
+
import "../../components/CheckboxSelect/ui/CheckboxSelect.js";
|
|
25
|
+
const s = "_root_1tmts_1", a = {
|
|
26
|
+
root: s
|
|
27
|
+
}, P = () => {
|
|
28
|
+
const i = { name: "sokolnuyaki", color: "red", timeTo: 10, mode: "auto" }, m = [
|
|
8
29
|
{ name: "Сокольники", color: "red", timeTo: 10, mode: "auto" },
|
|
9
30
|
{ name: "Электрозаводская", color: "blue", timeTo: 10, mode: "auto" }
|
|
10
31
|
];
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
32
|
+
return /* @__PURE__ */ e("div", { className: a.root, children: [
|
|
33
|
+
/* @__PURE__ */ t(o, { metro: m }),
|
|
34
|
+
/* @__PURE__ */ t(o, { metro: i }),
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
o,
|
|
16
37
|
{
|
|
17
|
-
metro:
|
|
38
|
+
metro: i,
|
|
18
39
|
withBg: !0
|
|
19
40
|
}
|
|
20
41
|
),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
o,
|
|
23
44
|
{
|
|
24
|
-
metro:
|
|
45
|
+
metro: i,
|
|
25
46
|
withBg: !0,
|
|
26
47
|
isBetween: !0,
|
|
27
48
|
width: "full"
|
|
28
49
|
}
|
|
29
50
|
),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
51
|
+
/* @__PURE__ */ t(
|
|
52
|
+
r,
|
|
32
53
|
{
|
|
33
54
|
variant: "shadeWhite",
|
|
34
55
|
size: "medium",
|
|
@@ -37,8 +58,8 @@ const m = "_root_1tmts_1", a = {
|
|
|
37
58
|
children: "От 285 000 ₽/м2"
|
|
38
59
|
}
|
|
39
60
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
r,
|
|
42
63
|
{
|
|
43
64
|
variant: "chineseBlack",
|
|
44
65
|
size: "small",
|
|
@@ -47,8 +68,8 @@ const m = "_root_1tmts_1", a = {
|
|
|
47
68
|
children: "От 285 000 ₽/м2"
|
|
48
69
|
}
|
|
49
70
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
r,
|
|
52
73
|
{
|
|
53
74
|
variant: "transWhite",
|
|
54
75
|
size: "small",
|
|
@@ -60,5 +81,5 @@ const m = "_root_1tmts_1", a = {
|
|
|
60
81
|
] });
|
|
61
82
|
};
|
|
62
83
|
export {
|
|
63
|
-
|
|
84
|
+
P as TagsPage
|
|
64
85
|
};
|