stone-kit 0.0.550 → 0.0.551
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/dist/{FilterWithSave-CbevT66T.js → FilterWithSave-Dnz0rRe1.js} +87 -85
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as et, useState as B, useRef as H, useEffect as A } from "react";
|
|
3
3
|
import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as V } from "./Modal-BZv6nlLe.js";
|
|
5
5
|
import { Text as G } from "./components/Text/ui/Text.js";
|
|
6
|
-
import { c as J, g as
|
|
6
|
+
import { c as J, g as it } from "./index-rKuIKazb.js";
|
|
7
7
|
import { Button as F } from "./components/Button/ui/Button.js";
|
|
8
8
|
import "./components/mobileButton/ui/MobileButton.js";
|
|
9
9
|
import "./components/DestinationTab/ui/DestinationTab.js";
|
|
@@ -17,38 +17,38 @@ import "./components/MetroTag/ui/MetroTag.js";
|
|
|
17
17
|
import "./components/LotCard/ui/LotCard.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
19
|
import { useClientWidth as D } from "./shared/useClientWidth.js";
|
|
20
|
-
import { s as c, u as
|
|
20
|
+
import { s as c, u as ot } from "./useSortSelect-CjZXLFOG.js";
|
|
21
21
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
24
24
|
import "./components/FormModal/ui/ModalForm.js";
|
|
25
|
-
import { O as
|
|
26
|
-
const
|
|
27
|
-
root:
|
|
28
|
-
text:
|
|
29
|
-
textMini:
|
|
30
|
-
rootCol:
|
|
31
|
-
item:
|
|
32
|
-
whiteRow:
|
|
33
|
-
firstItem:
|
|
34
|
-
lastItem:
|
|
35
|
-
apart:
|
|
36
|
-
isLong:
|
|
37
|
-
autoWidth:
|
|
38
|
-
mini:
|
|
39
|
-
isDisabled:
|
|
40
|
-
grayRow:
|
|
41
|
-
}, j = J.bind(p),
|
|
25
|
+
import { O as rt } from "./Option-CyYM1iBJ.js";
|
|
26
|
+
const st = "_root_2bilg_1", nt = "_text_2bilg_18", at = "_textMini_2bilg_26", lt = "_rootCol_2bilg_32", ct = "_item_2bilg_38", dt = "_whiteRow_2bilg_57", pt = "_firstItem_2bilg_68", mt = "_lastItem_2bilg_72", _t = "_apart_2bilg_103", ht = "_isLong_2bilg_103", ut = "_autoWidth_2bilg_128", ft = "_mini_2bilg_132", yt = "_isDisabled_2bilg_140", vt = "_grayRow_2bilg_164", p = {
|
|
27
|
+
root: st,
|
|
28
|
+
text: nt,
|
|
29
|
+
textMini: at,
|
|
30
|
+
rootCol: lt,
|
|
31
|
+
item: ct,
|
|
32
|
+
whiteRow: dt,
|
|
33
|
+
firstItem: pt,
|
|
34
|
+
lastItem: mt,
|
|
35
|
+
apart: _t,
|
|
36
|
+
isLong: ht,
|
|
37
|
+
autoWidth: ut,
|
|
38
|
+
mini: ft,
|
|
39
|
+
isDisabled: yt,
|
|
40
|
+
grayRow: vt
|
|
41
|
+
}, j = J.bind(p), gt = ({
|
|
42
42
|
children: n,
|
|
43
43
|
variant: s = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
45
|
addClassName: _ = "",
|
|
46
46
|
col: h = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], _, { [p.rootCol]: h, [p.apart]: a }), children: n }), K =
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], _, { [p.rootCol]: h, [p.apart]: a }), children: n }), K = et((n, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: _ } = D(), {
|
|
49
49
|
index: h,
|
|
50
50
|
children: t,
|
|
51
|
-
addItemClassName:
|
|
51
|
+
addItemClassName: o,
|
|
52
52
|
addTextClass: d,
|
|
53
53
|
disabled: w = !1,
|
|
54
54
|
itemsLength: k = 0,
|
|
@@ -82,7 +82,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
82
82
|
{ [p.autoWidth]: f },
|
|
83
83
|
{ [p.mini]: S }
|
|
84
84
|
),
|
|
85
|
-
|
|
85
|
+
o
|
|
86
86
|
),
|
|
87
87
|
children: /* @__PURE__ */ e(G, { className: j(p.text, { [p.textMini]: S }, d), children: t })
|
|
88
88
|
}
|
|
@@ -90,31 +90,31 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
K.displayName = "TabSwitcherItem";
|
|
93
|
-
const q = Object.assign(
|
|
93
|
+
const q = Object.assign(gt, { Item: K }), M = J.bind(c), bt = ({
|
|
94
94
|
options: n,
|
|
95
95
|
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
97
97
|
error: _,
|
|
98
98
|
disabled: h,
|
|
99
99
|
additionalClass: t = "",
|
|
100
|
-
onChange:
|
|
100
|
+
onChange: o,
|
|
101
101
|
onBlur: d,
|
|
102
102
|
mini: w,
|
|
103
103
|
openOnTop: k = !1,
|
|
104
104
|
onClickItem: O,
|
|
105
105
|
onCLickSelect: u
|
|
106
106
|
}) => {
|
|
107
|
-
const [l, m] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: y } =
|
|
107
|
+
const [l, m] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: y } = ot(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: O,
|
|
111
|
-
setSelectedOption:
|
|
111
|
+
setSelectedOption: o,
|
|
112
112
|
setIsOpen: m,
|
|
113
113
|
containerRef: S,
|
|
114
114
|
isOpen: l,
|
|
115
115
|
isMobile: C,
|
|
116
116
|
placeholder: a,
|
|
117
|
-
onChange:
|
|
117
|
+
onChange: o,
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
120
120
|
);
|
|
@@ -189,25 +189,25 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), gt = ({
|
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
root:
|
|
195
|
-
filterWithSaveModal:
|
|
196
|
-
modalAddBody:
|
|
197
|
-
closeBtn:
|
|
198
|
-
btnName:
|
|
199
|
-
modalTitle:
|
|
200
|
-
tabSWitcherWrapper:
|
|
201
|
-
switcherTitle:
|
|
202
|
-
switcherScroll:
|
|
203
|
-
tabs:
|
|
204
|
-
selectWrapper:
|
|
205
|
-
filterOption:
|
|
206
|
-
btnWrapper:
|
|
207
|
-
resetBtn:
|
|
208
|
-
saveBtn:
|
|
209
|
-
desktopWrapper:
|
|
210
|
-
desktopWrapperOpen:
|
|
192
|
+
bt.displayName = "SortSelect";
|
|
193
|
+
const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", wt = "_modalAddBody_j0tyy_20", Ot = "_closeBtn_j0tyy_29", St = "_btnName_j0tyy_35", Ct = "_modalTitle_j0tyy_39", kt = "_tabSWitcherWrapper_j0tyy_48", xt = "_switcherTitle_j0tyy_56", Bt = "_switcherScroll_j0tyy_63", jt = "_tabs_j0tyy_67", It = "_selectWrapper_j0tyy_72", Mt = "_filterOption_j0tyy_76", Rt = "_btnWrapper_j0tyy_83", Lt = "_resetBtn_j0tyy_89", At = "_saveBtn_j0tyy_90", Dt = "_desktopWrapper_j0tyy_94", Et = "_desktopWrapperOpen_j0tyy_116", r = {
|
|
194
|
+
root: Wt,
|
|
195
|
+
filterWithSaveModal: Nt,
|
|
196
|
+
modalAddBody: wt,
|
|
197
|
+
closeBtn: Ot,
|
|
198
|
+
btnName: St,
|
|
199
|
+
modalTitle: Ct,
|
|
200
|
+
tabSWitcherWrapper: kt,
|
|
201
|
+
switcherTitle: xt,
|
|
202
|
+
switcherScroll: Bt,
|
|
203
|
+
tabs: jt,
|
|
204
|
+
selectWrapper: It,
|
|
205
|
+
filterOption: Mt,
|
|
206
|
+
btnWrapper: Rt,
|
|
207
|
+
resetBtn: Lt,
|
|
208
|
+
saveBtn: At,
|
|
209
|
+
desktopWrapper: Dt,
|
|
210
|
+
desktopWrapperOpen: Et
|
|
211
211
|
};
|
|
212
212
|
var Q = { exports: {} };
|
|
213
213
|
/*!
|
|
@@ -219,8 +219,8 @@ var Q = { exports: {} };
|
|
|
219
219
|
(function() {
|
|
220
220
|
var s = {}.hasOwnProperty;
|
|
221
221
|
function a() {
|
|
222
|
-
for (var t = "",
|
|
223
|
-
var d = arguments[
|
|
222
|
+
for (var t = "", o = 0; o < arguments.length; o++) {
|
|
223
|
+
var d = arguments[o];
|
|
224
224
|
d && (t = h(t, _.call(this, d)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -234,57 +234,59 @@ var Q = { exports: {} };
|
|
|
234
234
|
return a.apply(this, t);
|
|
235
235
|
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
236
236
|
return t.toString();
|
|
237
|
-
var
|
|
237
|
+
var o = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
s.call(t, d) && t[d] && (
|
|
240
|
-
return
|
|
239
|
+
s.call(t, d) && t[d] && (o = h(o, this && this[d] || d));
|
|
240
|
+
return o;
|
|
241
241
|
}
|
|
242
|
-
function h(t,
|
|
243
|
-
return
|
|
242
|
+
function h(t, o) {
|
|
243
|
+
return o ? t ? t + " " + o : t + o : t;
|
|
244
244
|
}
|
|
245
245
|
n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
247
|
})(Q);
|
|
248
|
-
var
|
|
249
|
-
const Tt = /* @__PURE__ */
|
|
248
|
+
var Pt = Q.exports;
|
|
249
|
+
const Tt = /* @__PURE__ */ it(Pt), $t = Tt.bind(r), me = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
251
|
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
253
|
onChange: _,
|
|
254
254
|
selectedValues: h = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
|
-
selectedTabs:
|
|
256
|
+
selectedTabs: o = [],
|
|
257
257
|
onClickItem: d,
|
|
258
258
|
onCLickSelect: w,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: O } = D(), [u, l] = B(!1), m = H(null), [S, C] = B(
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: O } = D(), [u, l] = B(!1), m = H(null), [S, C] = B(o), [x] = B(h), [N, f] = B(S), [y, W] = B(x), U = (i) => {
|
|
262
|
+
if (d && d(i), n.some((g) => g.value === i.value))
|
|
263
263
|
return;
|
|
264
|
-
const v = y.some((g) => g.value ===
|
|
264
|
+
const v = y.some((g) => g.value === i.value) ? y.filter((g) => g.value !== i.value) : [...y, i];
|
|
265
265
|
W(v);
|
|
266
266
|
}, X = () => {
|
|
267
267
|
C(s), W([]), _ && (_([]), t == null || t(s));
|
|
268
268
|
}, Y = () => {
|
|
269
|
-
W(h), f(
|
|
269
|
+
W(h), f(o);
|
|
270
270
|
}, E = () => {
|
|
271
271
|
Y(), l(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
273
|
_ && (t == null || t(N), _(y)), l(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
|
-
u && f(
|
|
276
|
+
u && f(o);
|
|
277
277
|
}, [u]);
|
|
278
|
-
const
|
|
279
|
-
if (console.log("Клик по:",
|
|
278
|
+
const P = (i) => {
|
|
279
|
+
if (console.log("Клик по:", i.target), !u || O)
|
|
280
280
|
return;
|
|
281
|
-
const v =
|
|
282
|
-
m.current && !m.current.contains(v) &&
|
|
281
|
+
const v = i.target;
|
|
282
|
+
m.current && !m.current.contains(v) && i.target !== m.current && (console.log("Закрытие модалки"), E());
|
|
283
|
+
}, tt = (i) => {
|
|
284
|
+
i.stopPropagation(), U(i);
|
|
283
285
|
};
|
|
284
|
-
A(() => (console.log("Добавляю обработчик клика на document"), document.addEventListener("click",
|
|
285
|
-
console.log("Удаляю обработчик клика с document"), document.removeEventListener("click",
|
|
286
|
+
A(() => (console.log("Добавляю обработчик клика на document"), document.addEventListener("click", P), () => {
|
|
287
|
+
console.log("Удаляю обработчик клика с document"), document.removeEventListener("click", P);
|
|
286
288
|
}), [u]);
|
|
287
|
-
const
|
|
289
|
+
const T = () => /* @__PURE__ */ b(z, { children: [
|
|
288
290
|
/* @__PURE__ */ e(
|
|
289
291
|
"div",
|
|
290
292
|
{
|
|
@@ -308,9 +310,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
308
310
|
variant: "grayRow",
|
|
309
311
|
addClassName: r.tabs,
|
|
310
312
|
isApart: !0,
|
|
311
|
-
children: s == null ? void 0 : s.map((
|
|
312
|
-
var
|
|
313
|
-
const g =
|
|
313
|
+
children: s == null ? void 0 : s.map((i, v) => {
|
|
314
|
+
var $;
|
|
315
|
+
const g = i.value;
|
|
314
316
|
return /* @__PURE__ */ e(
|
|
315
317
|
q.Item,
|
|
316
318
|
{
|
|
@@ -319,7 +321,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
319
321
|
value: g,
|
|
320
322
|
onClick: () => {
|
|
321
323
|
},
|
|
322
|
-
checked: ((
|
|
324
|
+
checked: (($ = N == null ? void 0 : N.find((L) => L.value === g)) == null ? void 0 : $.state) ?? !1,
|
|
323
325
|
onChange: () => {
|
|
324
326
|
f == null || f(
|
|
325
327
|
(L) => L.map((I) => I.value === g ? { ...I, state: !I.state } : I)
|
|
@@ -339,16 +341,16 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
339
341
|
"div",
|
|
340
342
|
{
|
|
341
343
|
className: r.selectWrapper,
|
|
342
|
-
onClick: (
|
|
343
|
-
children: a == null ? void 0 : a.map((
|
|
344
|
-
|
|
344
|
+
onClick: (i) => i.stopPropagation(),
|
|
345
|
+
children: a == null ? void 0 : a.map((i, v) => /* @__PURE__ */ e(
|
|
346
|
+
rt,
|
|
345
347
|
{
|
|
346
348
|
addClassName: r.filterOption,
|
|
347
349
|
disabledOptions: [],
|
|
348
350
|
clickableOptions: [],
|
|
349
351
|
selectedOptions: y,
|
|
350
|
-
option:
|
|
351
|
-
handleOptionClick:
|
|
352
|
+
option: i,
|
|
353
|
+
handleOptionClick: tt
|
|
352
354
|
},
|
|
353
355
|
v
|
|
354
356
|
))
|
|
@@ -381,8 +383,8 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
381
383
|
"div",
|
|
382
384
|
{
|
|
383
385
|
className: r.root,
|
|
384
|
-
onClick: (
|
|
385
|
-
|
|
386
|
+
onClick: (i) => {
|
|
387
|
+
i.stopPropagation(), w && w(), l(O ? (v) => !v : !0);
|
|
386
388
|
},
|
|
387
389
|
children: [
|
|
388
390
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
@@ -398,8 +400,8 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
398
400
|
{
|
|
399
401
|
ref: m,
|
|
400
402
|
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
|
|
401
|
-
onClick: (
|
|
402
|
-
children: /* @__PURE__ */ e(
|
|
403
|
+
onClick: (i) => i.stopPropagation(),
|
|
404
|
+
children: /* @__PURE__ */ e(T, {})
|
|
403
405
|
}
|
|
404
406
|
)
|
|
405
407
|
]
|
|
@@ -413,13 +415,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
413
415
|
isTransparentBack: !0,
|
|
414
416
|
additionalClassModalBody: r.modalAddBody,
|
|
415
417
|
additionalClass: r.filterWithSaveModal,
|
|
416
|
-
children: /* @__PURE__ */ e(
|
|
418
|
+
children: /* @__PURE__ */ e(T, {})
|
|
417
419
|
}
|
|
418
420
|
)
|
|
419
421
|
] });
|
|
420
422
|
};
|
|
421
423
|
export {
|
|
422
|
-
|
|
424
|
+
me as F,
|
|
423
425
|
q as S,
|
|
424
|
-
|
|
426
|
+
bt as a
|
|
425
427
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../NewIcon/ui/NewIcon.js";
|
|
4
|
-
import { F as w } from "../../../FilterWithSave-
|
|
4
|
+
import { F as w } from "../../../FilterWithSave-Dnz0rRe1.js";
|
|
5
5
|
import "../../../Modal-BZv6nlLe.js";
|
|
6
6
|
import "../../../Option-CyYM1iBJ.js";
|
|
7
7
|
import "../../Button/ui/Button.js";
|
|
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
|
|
|
13
13
|
import "../../Flex/ui/Flex.js";
|
|
14
14
|
import "../../Input/ui/Input.js";
|
|
15
15
|
import "../../../Modal-BZv6nlLe.js";
|
|
16
|
-
import { a as z } from "../../../FilterWithSave-
|
|
16
|
+
import { a as z } from "../../../FilterWithSave-Dnz0rRe1.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../LotCard/ui/LotCard.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as v } from "../../../FilterWithSave-
|
|
3
|
+
import { S as v } from "../../../FilterWithSave-Dnz0rRe1.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import "../../../FilterWithSave-
|
|
14
|
+
import "../../../FilterWithSave-Dnz0rRe1.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Flex as T } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as F } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { M as g } from "./Modal-BZv6nlLe.js";
|
|
12
12
|
import { FieldInput as I } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { F as B, a as L, S as k } from "./FilterWithSave-
|
|
13
|
+
import { F as B, a as L, S as k } from "./FilterWithSave-Dnz0rRe1.js";
|
|
14
14
|
import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as j } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as D } from "./components/MetroTag/ui/MetroTag.js";
|