stone-kit 0.0.569 → 0.0.570
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-B0JEzFbi.js → FilterWithSave-BNlzox9b.js} +26 -31
- 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
|
@@ -38,7 +38,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
38
38
|
mini: ht,
|
|
39
39
|
isDisabled: ut,
|
|
40
40
|
grayRow: ft
|
|
41
|
-
}, I = G.bind(p),
|
|
41
|
+
}, I = G.bind(p), vt = ({
|
|
42
42
|
children: n,
|
|
43
43
|
variant: r = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
@@ -53,12 +53,12 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
53
53
|
disabled: O = !1,
|
|
54
54
|
itemsLength: x = 0,
|
|
55
55
|
isLongOn: S = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: f,
|
|
57
57
|
width_m: c,
|
|
58
58
|
width_l: h,
|
|
59
59
|
mini: C = !1,
|
|
60
60
|
...k
|
|
61
|
-
} = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (
|
|
61
|
+
} = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N && h ? h : f, u = !f && !c && !h && y;
|
|
62
62
|
return /* @__PURE__ */ b("label", { className: I({ [p.isLong]: y }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -90,7 +90,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
|
-
const T = Object.assign(
|
|
93
|
+
const T = Object.assign(vt, { Item: J }), R = G.bind(l), gt = ({
|
|
94
94
|
options: n,
|
|
95
95
|
selectedOption: r,
|
|
96
96
|
placeholder: a = "",
|
|
@@ -102,9 +102,9 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
|
|
|
102
102
|
mini: O,
|
|
103
103
|
openOnTop: x = !1,
|
|
104
104
|
onClickItem: S,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: f
|
|
106
106
|
}) => {
|
|
107
|
-
const [c, h] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: u, handleDocumentClick:
|
|
107
|
+
const [c, h] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: u, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: r,
|
|
110
110
|
onClickOption: S,
|
|
@@ -118,8 +118,8 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
|
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
return L(() => (document.addEventListener("click",
|
|
122
|
-
document.removeEventListener("click",
|
|
121
|
+
return L(() => (document.addEventListener("click", v), () => {
|
|
122
|
+
document.removeEventListener("click", v);
|
|
123
123
|
}), []), /* @__PURE__ */ b(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
@@ -133,7 +133,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
|
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: y,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
f && f();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ b("div", { className: R(l.inputWrapper), children: [
|
|
@@ -189,7 +189,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(l), vt = ({
|
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
gt.displayName = "SortSelect";
|
|
193
193
|
const Wt = "_root_1occg_1", bt = "_filterWithSaveModal_1occg_15", Nt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", Ct = "_tabSWitcherWrapper_1occg_48", kt = "_switcherTitle_1occg_56", xt = "_switcherScroll_1occg_63", yt = "_tabs_1occg_67", Bt = "_selectWrapper_1occg_72", It = "_filterOption_1occg_76", Mt = "_btnWrapper_1occg_83", Rt = "_resetBtn_1occg_89", Lt = "_saveBtn_1occg_90", At = "_desktopWrapper_1occg_94", Dt = "_desktopWrapperOpen_1occg_116", o = {
|
|
194
194
|
root: Wt,
|
|
195
195
|
filterWithSaveModal: bt,
|
|
@@ -258,10 +258,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: x = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [
|
|
262
|
-
if (d && d(s), n.some((
|
|
261
|
+
const { isMobile: S } = E(), [f, c] = B(!1), h = q(null), [C, k] = B(i), [y] = B(_), [w, u] = B(C), [v, N] = B(y), Q = (s) => {
|
|
262
|
+
if (d && d(s), n.some((W) => W.value === s.value))
|
|
263
263
|
return;
|
|
264
|
-
const g =
|
|
264
|
+
const g = v.some((W) => W.value === s.value) ? v.filter((W) => W.value !== s.value) : [...v, s];
|
|
265
265
|
N(g);
|
|
266
266
|
}, U = () => {
|
|
267
267
|
k(r), u(r), N([]), m && (m([]), t == null || t(r));
|
|
@@ -270,20 +270,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
270
270
|
}, j = () => {
|
|
271
271
|
X(), c(!1);
|
|
272
272
|
}, Y = () => {
|
|
273
|
-
m && (t == null || t(w), m(
|
|
273
|
+
m && (t == null || t(w), m(v)), c(!1);
|
|
274
274
|
};
|
|
275
275
|
L(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
276
|
+
f || u(i);
|
|
277
|
+
}, [f]), L(() => {
|
|
278
278
|
u(i);
|
|
279
279
|
}, [i]), L(() => {
|
|
280
280
|
const s = (g) => {
|
|
281
|
-
|
|
282
|
-
if (h.current && !h.current.contains(g.target)) {
|
|
283
|
-
if (f.closest("svg"))
|
|
284
|
-
return;
|
|
285
|
-
j();
|
|
286
|
-
}
|
|
281
|
+
h.current && !h.current.contains(g.target) && j();
|
|
287
282
|
};
|
|
288
283
|
return document.addEventListener("click", s), () => {
|
|
289
284
|
document.removeEventListener("click", s);
|
|
@@ -315,24 +310,24 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
315
310
|
isApart: !0,
|
|
316
311
|
children: r == null ? void 0 : r.map((s, g) => {
|
|
317
312
|
var z;
|
|
318
|
-
const
|
|
313
|
+
const W = s.value;
|
|
319
314
|
return /* @__PURE__ */ e(
|
|
320
315
|
T.Item,
|
|
321
316
|
{
|
|
322
317
|
itemsLength: r == null ? void 0 : r.length,
|
|
323
318
|
mini: !0,
|
|
324
|
-
value:
|
|
319
|
+
value: W,
|
|
325
320
|
onClick: () => {
|
|
326
321
|
},
|
|
327
|
-
checked: ((z = w == null ? void 0 : w.find((D) => D.value ===
|
|
322
|
+
checked: ((z = w == null ? void 0 : w.find((D) => D.value === W)) == null ? void 0 : z.state) ?? !1,
|
|
328
323
|
onChange: () => {
|
|
329
324
|
u == null || u(
|
|
330
|
-
(D) => D.map((M) => M.value ===
|
|
325
|
+
(D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
|
|
331
326
|
);
|
|
332
327
|
},
|
|
333
328
|
index: g,
|
|
334
329
|
addItemClassName: o.tabSwitcher,
|
|
335
|
-
children:
|
|
330
|
+
children: W
|
|
336
331
|
},
|
|
337
332
|
g
|
|
338
333
|
);
|
|
@@ -346,7 +341,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
346
341
|
addClassName: o.filterOption,
|
|
347
342
|
disabledOptions: [],
|
|
348
343
|
clickableOptions: [],
|
|
349
|
-
selectedOptions:
|
|
344
|
+
selectedOptions: v,
|
|
350
345
|
option: s,
|
|
351
346
|
handleOptionClick: Q
|
|
352
347
|
},
|
|
@@ -396,7 +391,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
396
391
|
"div",
|
|
397
392
|
{
|
|
398
393
|
ref: h,
|
|
399
|
-
className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]:
|
|
394
|
+
className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: f }),
|
|
400
395
|
onClick: (s) => s.stopPropagation(),
|
|
401
396
|
children: /* @__PURE__ */ e($, {})
|
|
402
397
|
}
|
|
@@ -407,7 +402,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
407
402
|
S && /* @__PURE__ */ e(
|
|
408
403
|
H,
|
|
409
404
|
{
|
|
410
|
-
isOpen:
|
|
405
|
+
isOpen: f,
|
|
411
406
|
emitIsOpen: c,
|
|
412
407
|
isTransparentBack: !0,
|
|
413
408
|
additionalClassModalBody: o.modalAddBody,
|
|
@@ -420,5 +415,5 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
420
415
|
export {
|
|
421
416
|
de as F,
|
|
422
417
|
T as S,
|
|
423
|
-
|
|
418
|
+
gt as a
|
|
424
419
|
};
|
|
@@ -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-BNlzox9b.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-BNlzox9b.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-BNlzox9b.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-BNlzox9b.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-BNlzox9b.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";
|