stone-kit 0.0.665 → 0.0.667
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-KY3P1P-V.js → FilterWithSave-DYjcT97E.js} +9 -8
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/Select/model/selectMode.js +20 -20
- package/dist/components/Select/ui/Category.js +16 -16
- 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
|
@@ -227,7 +227,7 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
|
|
|
227
227
|
);
|
|
228
228
|
};
|
|
229
229
|
pe.displayName = "SortSelect";
|
|
230
|
-
const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81", Oe = "_btnWrapper_xwd22_88", Se = "_resetBtn_xwd22_94", ye = "_saveBtn_xwd22_95", Be = "_desktopWrapper_xwd22_99",
|
|
230
|
+
const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81", Oe = "_btnWrapper_xwd22_88", Se = "_resetBtn_xwd22_94", ye = "_saveBtn_xwd22_95", Be = "_desktopWrapper_xwd22_99", Ie = "_desktopWrapperOpen_xwd22_122", i = {
|
|
231
231
|
root: ue,
|
|
232
232
|
filterWithSaveModal: he,
|
|
233
233
|
modalAddBody: fe,
|
|
@@ -244,7 +244,7 @@ const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAd
|
|
|
244
244
|
resetBtn: Se,
|
|
245
245
|
saveBtn: ye,
|
|
246
246
|
desktopWrapper: Be,
|
|
247
|
-
desktopWrapperOpen:
|
|
247
|
+
desktopWrapperOpen: Ie
|
|
248
248
|
};
|
|
249
249
|
var K = { exports: {} };
|
|
250
250
|
/*!
|
|
@@ -282,8 +282,8 @@ var K = { exports: {} };
|
|
|
282
282
|
a.exports ? (n.default = n, a.exports = n) : window.classNames = n;
|
|
283
283
|
})();
|
|
284
284
|
})(K);
|
|
285
|
-
var
|
|
286
|
-
const be = /* @__PURE__ */ U(
|
|
285
|
+
var Me = K.exports;
|
|
286
|
+
const be = /* @__PURE__ */ U(Me), Re = ({
|
|
287
287
|
selectedTabs: a = [],
|
|
288
288
|
selectedValues: r = [],
|
|
289
289
|
onClickItem: n,
|
|
@@ -402,10 +402,10 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
|
|
|
402
402
|
value: w,
|
|
403
403
|
onClick: () => {
|
|
404
404
|
},
|
|
405
|
-
checked: ((h = p == null ? void 0 : p.find((
|
|
405
|
+
checked: ((h = p == null ? void 0 : p.find((M) => M.value === w)) == null ? void 0 : h.state) ?? !1,
|
|
406
406
|
onChange: () => {
|
|
407
407
|
k == null || k(
|
|
408
|
-
(
|
|
408
|
+
(M) => M.map((I) => I.value === w ? { ...I, state: !I.state } : I)
|
|
409
409
|
);
|
|
410
410
|
},
|
|
411
411
|
index: s,
|
|
@@ -515,10 +515,10 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
|
|
|
515
515
|
value: w,
|
|
516
516
|
onClick: () => {
|
|
517
517
|
},
|
|
518
|
-
checked: ((h = p == null ? void 0 : p.find((
|
|
518
|
+
checked: ((h = p == null ? void 0 : p.find((M) => M.value === w)) == null ? void 0 : h.state) ?? !1,
|
|
519
519
|
onChange: () => {
|
|
520
520
|
k == null || k(
|
|
521
|
-
(
|
|
521
|
+
(M) => M.map((I) => I.value === w ? { ...I, state: !I.state } : I)
|
|
522
522
|
);
|
|
523
523
|
},
|
|
524
524
|
index: s,
|
|
@@ -534,6 +534,7 @@ const be = /* @__PURE__ */ U(Ie), Re = ({
|
|
|
534
534
|
/* @__PURE__ */ t("div", { className: i.selectWrapper, children: n == null ? void 0 : n.map((x, s) => /* @__PURE__ */ t(
|
|
535
535
|
T,
|
|
536
536
|
{
|
|
537
|
+
sizeIcon: "24",
|
|
537
538
|
addClassName: i.filterOption,
|
|
538
539
|
disabledOptions: [],
|
|
539
540
|
clickableOptions: [],
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import { u as q } from "../../../FilterWithSave-
|
|
14
|
+
import { u as q } from "../../../FilterWithSave-DYjcT97E.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-DYjcT97E.js";
|
|
4
4
|
import "../../../Modal-BZv6nlLe.js";
|
|
5
5
|
import "../../../Option-C4HGcCtY.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
const d = ({
|
|
2
2
|
option: e,
|
|
3
3
|
setSelectedOptions: y,
|
|
4
|
-
selectedOptions:
|
|
5
|
-
disabledOptions:
|
|
4
|
+
selectedOptions: f,
|
|
5
|
+
disabledOptions: s,
|
|
6
6
|
onChange: c,
|
|
7
7
|
mode: S,
|
|
8
|
-
optionsParentArr:
|
|
8
|
+
optionsParentArr: r
|
|
9
9
|
}) => {
|
|
10
10
|
if (!Array.isArray(e)) {
|
|
11
|
-
if (
|
|
11
|
+
if (s.includes(e))
|
|
12
12
|
return;
|
|
13
|
-
let
|
|
13
|
+
let i = f.some((l) => l.value === e.value) ? f.filter((l) => l.value !== e.value) : [...f, e];
|
|
14
14
|
if (S === "double") {
|
|
15
|
-
"options" in e &&
|
|
16
|
-
const
|
|
17
|
-
!(
|
|
15
|
+
"options" in e && (f.map((t) => JSON.stringify(t)).includes(JSON.stringify(e)) ? i = i.filter((t) => !e.options.map((a) => JSON.stringify(a)).includes(JSON.stringify(t))) : Array.isArray(e.options) && (i = [...i, ...e.options]));
|
|
16
|
+
const l = r == null ? void 0 : r.filter((u) => "options" in u && u.options.includes(e))[0];
|
|
17
|
+
!(l && f.map((u) => JSON.stringify(u)).includes(JSON.stringify(l))) && l && i.push(l);
|
|
18
18
|
}
|
|
19
|
-
y(
|
|
19
|
+
y(i), c && c(i);
|
|
20
20
|
}
|
|
21
21
|
}, m = ({
|
|
22
22
|
option: e,
|
|
23
23
|
setSelectedOptions: y,
|
|
24
|
-
selectedOptions:
|
|
25
|
-
disabledOptions:
|
|
24
|
+
selectedOptions: f,
|
|
25
|
+
disabledOptions: s,
|
|
26
26
|
onChange: c
|
|
27
27
|
}) => {
|
|
28
28
|
if (Array.isArray(e)) {
|
|
29
|
-
const S = e.filter((
|
|
30
|
-
if (S.every((
|
|
31
|
-
const
|
|
32
|
-
(
|
|
29
|
+
const S = e.filter((r) => !(s != null && s.includes(r)));
|
|
30
|
+
if (S.every((r) => f.map((i) => i).includes(r))) {
|
|
31
|
+
const r = f.filter(
|
|
32
|
+
(i) => !e.includes(i)
|
|
33
33
|
);
|
|
34
|
-
y(
|
|
34
|
+
y(r), c && c(r);
|
|
35
35
|
} else {
|
|
36
|
-
const
|
|
37
|
-
(
|
|
38
|
-
),
|
|
39
|
-
y(
|
|
36
|
+
const r = S.filter(
|
|
37
|
+
(l) => !f.includes(l)
|
|
38
|
+
), i = [...f, ...r];
|
|
39
|
+
y(i), c && c(i);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as N, jsx as
|
|
1
|
+
import { jsxs as c, Fragment as N, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { s as t, O as S } from "../../../Option-C4HGcCtY.js";
|
|
3
3
|
import { NewIcon as h } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { c as b } from "../../../index-rKuIKazb.js";
|
|
5
5
|
import { useState as w } from "react";
|
|
6
6
|
const O = b.bind(t), D = ({
|
|
7
7
|
category: o,
|
|
8
|
-
selectedOptions:
|
|
8
|
+
selectedOptions: s,
|
|
9
9
|
disabledOptions: m,
|
|
10
10
|
clickableOptions: g,
|
|
11
11
|
handleOptionClick: u,
|
|
12
|
-
sizeIcon:
|
|
12
|
+
sizeIcon: n,
|
|
13
13
|
mode: p
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
15
|
+
const [r, d] = w(!0), v = s.map((e) => JSON.stringify(e)), l = p === "category", f = p === "double", C = l && o.options.every((e) => v.includes(JSON.stringify(e))), k = l ? C ? "minusCheck" : "selectUnchecked" : f && s.some((e) => e.value === o.value) ? "minusCheck" : "selectUnchecked";
|
|
16
16
|
return /* @__PURE__ */ c(N, { children: [
|
|
17
17
|
/* @__PURE__ */ c(
|
|
18
18
|
"div",
|
|
@@ -22,47 +22,47 @@ const O = b.bind(t), D = ({
|
|
|
22
22
|
t.category,
|
|
23
23
|
t.optionClickable,
|
|
24
24
|
{
|
|
25
|
-
[t.selected]:
|
|
25
|
+
[t.selected]: s.some((e) => e.value === o.value),
|
|
26
26
|
[t.optionDisabled]: m.some(
|
|
27
27
|
(e) => e.value === o.value
|
|
28
28
|
)
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
31
|
onClick: () => {
|
|
32
|
-
f && !
|
|
32
|
+
f && !r && d(!0), u(l ? o.options : o);
|
|
33
33
|
},
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ c("div", { className: t.leftSide, children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ i(
|
|
37
37
|
h,
|
|
38
38
|
{
|
|
39
|
-
size:
|
|
39
|
+
size: n ?? "20",
|
|
40
40
|
name: k
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ i("div", { children: o.label })
|
|
44
44
|
] }),
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ i("div", { className: t.iconArrow, onClick: (e) => {
|
|
46
46
|
e.stopPropagation(), d((a) => !a);
|
|
47
|
-
}, children: /* @__PURE__ */
|
|
47
|
+
}, children: /* @__PURE__ */ i(
|
|
48
48
|
h,
|
|
49
49
|
{
|
|
50
50
|
name: "arrowShort",
|
|
51
|
-
deg:
|
|
52
|
-
size:
|
|
51
|
+
deg: r ? "180" : "0",
|
|
52
|
+
size: n ?? "24"
|
|
53
53
|
}
|
|
54
54
|
) })
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
|
|
58
|
+
r && o.options.map((e, a) => /* @__PURE__ */ i(
|
|
59
59
|
S,
|
|
60
60
|
{
|
|
61
61
|
option: e,
|
|
62
62
|
disabledOptions: m,
|
|
63
|
-
selectedOptions:
|
|
63
|
+
selectedOptions: s,
|
|
64
64
|
handleOptionClick: () => u(e),
|
|
65
|
-
sizeIcon:
|
|
65
|
+
sizeIcon: n,
|
|
66
66
|
clickableOptions: g,
|
|
67
67
|
isOptionCategory: !0
|
|
68
68
|
},
|
|
@@ -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-DYjcT97E.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-DYjcT97E.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-DYjcT97E.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-DYjcT97E.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";
|