stone-kit 0.0.556 → 0.0.557
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-C0qUzXu0.js → FilterWithSave-DhpeDpga.js} +27 -27
- 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
|
@@ -50,15 +50,15 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: O = !1,
|
|
54
54
|
itemsLength: k = 0,
|
|
55
|
-
isLongOn:
|
|
55
|
+
isLongOn: N = !0,
|
|
56
56
|
width: h,
|
|
57
57
|
width_m: n,
|
|
58
58
|
width_l: u,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...C
|
|
61
|
-
} = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) &&
|
|
61
|
+
} = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, g = (y, W) => y && n ? n : W && u ? u : h, f = !h && !n && !u && x;
|
|
62
62
|
return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -66,19 +66,19 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
66
66
|
ref: o,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...C,
|
|
69
|
-
disabled:
|
|
69
|
+
disabled: O
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width:
|
|
75
|
+
style: { width: g(l, m) },
|
|
76
76
|
className: j(
|
|
77
77
|
j(
|
|
78
78
|
p.item,
|
|
79
79
|
{ [p.firstItem]: _ === 0 },
|
|
80
80
|
{ [p.lastItem]: _ === k - 1 },
|
|
81
|
-
{ [p.isDisabled]:
|
|
81
|
+
{ [p.isDisabled]: O },
|
|
82
82
|
{ [p.autoWidth]: f },
|
|
83
83
|
{ [p.mini]: S }
|
|
84
84
|
),
|
|
@@ -99,15 +99,15 @@ const F = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
|
-
mini:
|
|
102
|
+
mini: O,
|
|
103
103
|
openOnTop: k = !1,
|
|
104
|
-
onClickItem:
|
|
104
|
+
onClickItem: N,
|
|
105
105
|
onCLickSelect: h
|
|
106
106
|
}) => {
|
|
107
|
-
const [n, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue:
|
|
107
|
+
const [n, u] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: o,
|
|
110
|
-
onClickOption:
|
|
110
|
+
onClickOption: N,
|
|
111
111
|
setSelectedOption: i,
|
|
112
112
|
setIsOpen: u,
|
|
113
113
|
containerRef: S,
|
|
@@ -142,11 +142,11 @@ 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: g(),
|
|
146
146
|
className: M(
|
|
147
147
|
c.selectedOptions,
|
|
148
148
|
{ [c.selectOptionsDisabled]: _ },
|
|
149
|
-
{ [c.selectionOptionMini]:
|
|
149
|
+
{ [c.selectionOptionMini]: O }
|
|
150
150
|
),
|
|
151
151
|
onClick: () => u(!n)
|
|
152
152
|
}
|
|
@@ -255,14 +255,14 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
|
-
onCLickSelect:
|
|
258
|
+
onCLickSelect: O,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile:
|
|
261
|
+
const { isMobile: N } = D(), [h, n] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [g, f] = B(S), [y, W] = B(x), Q = (s) => {
|
|
262
262
|
if (d && d(s), a.some((v) => v.value === s.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
W(
|
|
264
|
+
const w = y.some((v) => v.value === s.value) ? y.filter((v) => v.value !== s.value) : [...y, s];
|
|
265
|
+
W(w);
|
|
266
266
|
}, U = () => {
|
|
267
267
|
C(o), W([]), m && (m([]), t == null || t(o));
|
|
268
268
|
}, X = () => {
|
|
@@ -270,13 +270,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
270
270
|
}, Y = () => {
|
|
271
271
|
X(), n(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
|
-
m && (t == null || t(
|
|
273
|
+
m && (t == null || t(g), m(y)), n(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
276
|
h && f(i);
|
|
277
277
|
}, [h]);
|
|
278
278
|
const E = (s) => {
|
|
279
|
-
h && !
|
|
279
|
+
h && !N && u.current && !u.current.contains(s.target) && n(!1);
|
|
280
280
|
};
|
|
281
281
|
A(() => (document.addEventListener("click", E), () => {
|
|
282
282
|
document.removeEventListener("click", E);
|
|
@@ -305,7 +305,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
305
305
|
variant: "grayRow",
|
|
306
306
|
addClassName: r.tabs,
|
|
307
307
|
isApart: !0,
|
|
308
|
-
children: o == null ? void 0 : o.map((s,
|
|
308
|
+
children: o == null ? void 0 : o.map((s, w) => {
|
|
309
309
|
var $;
|
|
310
310
|
const v = s.value;
|
|
311
311
|
return /* @__PURE__ */ e(
|
|
@@ -316,17 +316,17 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
316
316
|
value: v,
|
|
317
317
|
onClick: () => {
|
|
318
318
|
},
|
|
319
|
-
checked: (($ =
|
|
319
|
+
checked: (($ = g == null ? void 0 : g.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: w,
|
|
326
326
|
addItemClassName: r.tabSwitcher,
|
|
327
327
|
children: v
|
|
328
328
|
},
|
|
329
|
-
|
|
329
|
+
w
|
|
330
330
|
);
|
|
331
331
|
})
|
|
332
332
|
}
|
|
@@ -337,7 +337,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
337
337
|
{
|
|
338
338
|
className: r.selectWrapper,
|
|
339
339
|
onClick: (s) => s.stopPropagation(),
|
|
340
|
-
children: l == null ? void 0 : l.map((s,
|
|
340
|
+
children: l == null ? void 0 : l.map((s, w) => /* @__PURE__ */ e(
|
|
341
341
|
rt,
|
|
342
342
|
{
|
|
343
343
|
addClassName: r.filterOption,
|
|
@@ -347,7 +347,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
347
347
|
option: s,
|
|
348
348
|
handleOptionClick: Q
|
|
349
349
|
},
|
|
350
|
-
|
|
350
|
+
w
|
|
351
351
|
))
|
|
352
352
|
}
|
|
353
353
|
),
|
|
@@ -380,7 +380,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
380
380
|
className: r.root,
|
|
381
381
|
id: "modal-container",
|
|
382
382
|
onClick: (s) => {
|
|
383
|
-
s.stopPropagation(),
|
|
383
|
+
s.stopPropagation(), O && O(), n(N ? (w) => !w : !0);
|
|
384
384
|
},
|
|
385
385
|
children: [
|
|
386
386
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
@@ -391,7 +391,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
391
391
|
size: "16"
|
|
392
392
|
}
|
|
393
393
|
),
|
|
394
|
-
/* @__PURE__ */ e(
|
|
394
|
+
!N && /* @__PURE__ */ e(
|
|
395
395
|
"div",
|
|
396
396
|
{
|
|
397
397
|
ref: u,
|
|
@@ -403,7 +403,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
403
403
|
]
|
|
404
404
|
}
|
|
405
405
|
),
|
|
406
|
-
|
|
406
|
+
N && /* @__PURE__ */ e(
|
|
407
407
|
H,
|
|
408
408
|
{
|
|
409
409
|
isOpen: h,
|
|
@@ -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-DhpeDpga.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-DhpeDpga.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-DhpeDpga.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-DhpeDpga.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-DhpeDpga.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";
|