stone-kit 0.0.558 → 0.0.559
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-BpebT-iv.js → FilterWithSave-7jY9EYl5.js} +53 -54
- 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,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as b, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as tt, useState as B, useRef as q, useEffect as A } from "react";
|
|
3
3
|
import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as H } from "./Modal-BZv6nlLe.js";
|
|
5
5
|
import { Text as V } from "./components/Text/ui/Text.js";
|
|
6
6
|
import { c as G, g as et } from "./index-rKuIKazb.js";
|
|
7
|
-
import { Button as
|
|
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";
|
|
10
10
|
import "./components/RoundButton/ui/RoundButton.js";
|
|
@@ -40,12 +40,12 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
40
40
|
grayRow: yt
|
|
41
41
|
}, j = G.bind(p), vt = ({
|
|
42
42
|
children: n,
|
|
43
|
-
variant:
|
|
44
|
-
isApart:
|
|
43
|
+
variant: s = "whiteRow",
|
|
44
|
+
isApart: a = !1,
|
|
45
45
|
addClassName: m = "",
|
|
46
46
|
col: _ = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[
|
|
48
|
-
const { isTablet:
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], m, { [p.rootCol]: _, [p.apart]: a }), children: n }), J = tt((n, s) => {
|
|
48
|
+
const { isTablet: a, isDesktop: m } = D(), {
|
|
49
49
|
index: _,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
@@ -58,12 +58,12 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
58
58
|
width_l: u,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...C
|
|
61
|
-
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N,
|
|
61
|
+
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (y, W) => y && o ? o : W && u ? u : h, f = !h && !o && !u && x;
|
|
62
62
|
return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: s,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...C,
|
|
69
69
|
disabled: O
|
|
@@ -72,7 +72,7 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width:
|
|
75
|
+
style: { width: w(a, m) },
|
|
76
76
|
className: j(
|
|
77
77
|
j(
|
|
78
78
|
p.item,
|
|
@@ -90,10 +90,10 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
|
-
const
|
|
93
|
+
const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
94
94
|
options: n,
|
|
95
|
-
selectedOption:
|
|
96
|
-
placeholder:
|
|
95
|
+
selectedOption: s,
|
|
96
|
+
placeholder: a = "",
|
|
97
97
|
error: m,
|
|
98
98
|
disabled: _,
|
|
99
99
|
additionalClass: t = "",
|
|
@@ -104,16 +104,16 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
104
104
|
onClickItem: N,
|
|
105
105
|
onCLickSelect: h
|
|
106
106
|
}) => {
|
|
107
|
-
const [o, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue:
|
|
107
|
+
const [o, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: y } = it(
|
|
108
108
|
{
|
|
109
|
-
selectedOption:
|
|
109
|
+
selectedOption: s,
|
|
110
110
|
onClickOption: N,
|
|
111
111
|
setSelectedOption: i,
|
|
112
112
|
setIsOpen: u,
|
|
113
113
|
containerRef: S,
|
|
114
114
|
isOpen: o,
|
|
115
115
|
isMobile: C,
|
|
116
|
-
placeholder:
|
|
116
|
+
placeholder: a,
|
|
117
117
|
onChange: i,
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
@@ -142,7 +142,7 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
142
142
|
{
|
|
143
143
|
type: "text",
|
|
144
144
|
readOnly: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: w(),
|
|
146
146
|
className: M(
|
|
147
147
|
c.selectedOptions,
|
|
148
148
|
{ [c.selectOptionsDisabled]: _ },
|
|
@@ -190,11 +190,11 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
bt.displayName = "SortSelect";
|
|
193
|
-
const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15",
|
|
193
|
+
const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", wt = "_modalAddBody_j0tyy_20", gt = "_closeBtn_j0tyy_29", Ot = "_btnName_j0tyy_35", St = "_modalTitle_j0tyy_39", Ct = "_tabSWitcherWrapper_j0tyy_48", kt = "_switcherTitle_j0tyy_56", xt = "_switcherScroll_j0tyy_63", Bt = "_tabs_j0tyy_67", jt = "_selectWrapper_j0tyy_72", It = "_filterOption_j0tyy_76", Mt = "_btnWrapper_j0tyy_83", Rt = "_resetBtn_j0tyy_89", Lt = "_saveBtn_j0tyy_90", At = "_desktopWrapper_j0tyy_94", Dt = "_desktopWrapperOpen_j0tyy_116", r = {
|
|
194
194
|
root: Wt,
|
|
195
195
|
filterWithSaveModal: Nt,
|
|
196
|
-
modalAddBody:
|
|
197
|
-
closeBtn:
|
|
196
|
+
modalAddBody: wt,
|
|
197
|
+
closeBtn: gt,
|
|
198
198
|
btnName: Ot,
|
|
199
199
|
modalTitle: St,
|
|
200
200
|
tabSWitcherWrapper: Ct,
|
|
@@ -217,8 +217,8 @@ var K = { exports: {} };
|
|
|
217
217
|
*/
|
|
218
218
|
(function(n) {
|
|
219
219
|
(function() {
|
|
220
|
-
var
|
|
221
|
-
function
|
|
220
|
+
var s = {}.hasOwnProperty;
|
|
221
|
+
function a() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
224
224
|
d && (t = _(t, m.call(this, d)));
|
|
@@ -231,25 +231,25 @@ var K = { exports: {} };
|
|
|
231
231
|
if (typeof t != "object")
|
|
232
232
|
return "";
|
|
233
233
|
if (Array.isArray(t))
|
|
234
|
-
return
|
|
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
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
|
|
239
|
+
s.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
242
|
function _(t, i) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
|
-
n.exports ? (
|
|
245
|
+
n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
249
|
const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
|
-
tabs:
|
|
252
|
-
selectOptions:
|
|
251
|
+
tabs: s = [],
|
|
252
|
+
selectOptions: a = [],
|
|
253
253
|
onChange: m,
|
|
254
254
|
selectedValues: _ = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
@@ -258,30 +258,30 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [w, f] = B(S), [y, W] = B(x), Q = (l) => {
|
|
262
|
+
if (d && d(l), n.some((v) => v.value === l.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
W(
|
|
264
|
+
const g = y.some((v) => v.value === l.value) ? y.filter((v) => v.value !== l.value) : [...y, l];
|
|
265
|
+
W(g);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
C(
|
|
267
|
+
C(s), W([]), m && (m([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
269
|
W(_), f(i);
|
|
270
270
|
}, Y = () => {
|
|
271
271
|
X(), o(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
|
-
m && (t == null || t(
|
|
273
|
+
m && (t == null || t(w), m(y)), o(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
276
|
h && f(i);
|
|
277
277
|
}, [h]);
|
|
278
|
-
const E = (
|
|
279
|
-
h && !N && u.current && !u.current.contains(
|
|
278
|
+
const E = (l) => {
|
|
279
|
+
h && !N && u.current && !u.current.contains(l.target) && o(!1);
|
|
280
280
|
};
|
|
281
281
|
A(() => (document.addEventListener("click", E), () => {
|
|
282
282
|
document.removeEventListener("click", E);
|
|
283
283
|
}), [h]);
|
|
284
|
-
const T = () => /* @__PURE__ */ b(
|
|
284
|
+
const T = () => /* @__PURE__ */ b(z, { children: [
|
|
285
285
|
/* @__PURE__ */ e(
|
|
286
286
|
"div",
|
|
287
287
|
{
|
|
@@ -300,33 +300,33 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
300
300
|
/* @__PURE__ */ b("div", { className: r.tabSWitcherWrapper, children: [
|
|
301
301
|
/* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
|
|
302
302
|
/* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
|
|
303
|
-
|
|
303
|
+
P,
|
|
304
304
|
{
|
|
305
305
|
variant: "grayRow",
|
|
306
306
|
addClassName: r.tabs,
|
|
307
307
|
isApart: !0,
|
|
308
|
-
children:
|
|
308
|
+
children: s == null ? void 0 : s.map((l, g) => {
|
|
309
309
|
var $;
|
|
310
|
-
const v =
|
|
310
|
+
const v = l.value;
|
|
311
311
|
return /* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
P.Item,
|
|
313
313
|
{
|
|
314
|
-
itemsLength:
|
|
314
|
+
itemsLength: s == null ? void 0 : s.length,
|
|
315
315
|
mini: !0,
|
|
316
316
|
value: v,
|
|
317
317
|
onClick: () => {
|
|
318
318
|
},
|
|
319
|
-
checked: (($ =
|
|
319
|
+
checked: (($ = w == null ? void 0 : w.find((L) => L.value === v)) == null ? void 0 : $.state) ?? !1,
|
|
320
320
|
onChange: () => {
|
|
321
321
|
f == null || f(
|
|
322
322
|
(L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
|
|
323
323
|
);
|
|
324
324
|
},
|
|
325
|
-
index:
|
|
325
|
+
index: g,
|
|
326
326
|
addItemClassName: r.tabSwitcher,
|
|
327
327
|
children: v
|
|
328
328
|
},
|
|
329
|
-
|
|
329
|
+
g
|
|
330
330
|
);
|
|
331
331
|
})
|
|
332
332
|
}
|
|
@@ -336,24 +336,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
336
336
|
"div",
|
|
337
337
|
{
|
|
338
338
|
className: r.selectWrapper,
|
|
339
|
-
|
|
340
|
-
children: l == null ? void 0 : l.map((s, w) => /* @__PURE__ */ e(
|
|
339
|
+
children: a == null ? void 0 : a.map((l, g) => /* @__PURE__ */ e(
|
|
341
340
|
rt,
|
|
342
341
|
{
|
|
343
342
|
addClassName: r.filterOption,
|
|
344
343
|
disabledOptions: [],
|
|
345
344
|
clickableOptions: [],
|
|
346
345
|
selectedOptions: y,
|
|
347
|
-
option:
|
|
346
|
+
option: l,
|
|
348
347
|
handleOptionClick: Q
|
|
349
348
|
},
|
|
350
|
-
|
|
349
|
+
g
|
|
351
350
|
))
|
|
352
351
|
}
|
|
353
352
|
),
|
|
354
353
|
/* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
|
|
355
354
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
355
|
+
F,
|
|
357
356
|
{
|
|
358
357
|
as: "button",
|
|
359
358
|
variant: "gray",
|
|
@@ -363,7 +362,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
363
362
|
}
|
|
364
363
|
),
|
|
365
364
|
/* @__PURE__ */ e(
|
|
366
|
-
|
|
365
|
+
F,
|
|
367
366
|
{
|
|
368
367
|
as: "button",
|
|
369
368
|
additionalClass: r.saveBtn,
|
|
@@ -373,14 +372,14 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
373
372
|
)
|
|
374
373
|
] })
|
|
375
374
|
] });
|
|
376
|
-
return /* @__PURE__ */ b(
|
|
375
|
+
return /* @__PURE__ */ b(z, { children: [
|
|
377
376
|
/* @__PURE__ */ b(
|
|
378
377
|
"div",
|
|
379
378
|
{
|
|
380
379
|
className: r.root,
|
|
381
380
|
id: "modal-container",
|
|
382
|
-
onClick: (
|
|
383
|
-
|
|
381
|
+
onClick: (l) => {
|
|
382
|
+
l.stopPropagation(), O && O(), o(N ? (g) => !g : !0);
|
|
384
383
|
},
|
|
385
384
|
children: [
|
|
386
385
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
@@ -396,7 +395,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
396
395
|
{
|
|
397
396
|
ref: u,
|
|
398
397
|
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
|
|
399
|
-
onClick: (
|
|
398
|
+
onClick: (l) => l.stopPropagation(),
|
|
400
399
|
children: /* @__PURE__ */ e(T, {})
|
|
401
400
|
}
|
|
402
401
|
)
|
|
@@ -418,6 +417,6 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
418
417
|
};
|
|
419
418
|
export {
|
|
420
419
|
pe as F,
|
|
421
|
-
|
|
420
|
+
P as S,
|
|
422
421
|
bt as a
|
|
423
422
|
};
|
|
@@ -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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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-7jY9EYl5.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";
|