stone-kit 0.0.601 → 0.0.602
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-hd-yVqUH.js → FilterWithSave-CWyPofPQ.js} +16 -16
- 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
|
@@ -53,12 +53,12 @@ const nt = "_root_2bilg_1", ot = "_text_2bilg_18", at = "_textMini_2bilg_26", lt
|
|
|
53
53
|
disabled: g = !1,
|
|
54
54
|
itemsLength: k = 0,
|
|
55
55
|
isLongOn: N = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: w,
|
|
57
57
|
width_m: d,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: f,
|
|
59
59
|
mini: O = !1,
|
|
60
60
|
...h
|
|
61
|
-
} = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, u) => W && d ? d : u &&
|
|
61
|
+
} = o, C = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, B = (W, u) => W && d ? d : u && f ? f : w, x = !w && !d && !f && C;
|
|
62
62
|
return /* @__PURE__ */ v("label", { className: M({ [p.isLong]: C }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -102,14 +102,14 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
|
|
|
102
102
|
mini: g,
|
|
103
103
|
openOnTop: k = !1,
|
|
104
104
|
onClickItem: N,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: w
|
|
106
106
|
}) => {
|
|
107
|
-
const [d,
|
|
107
|
+
const [d, f] = S(!1), O = q(null), { isMobile: h } = $(), { handleBlur: C, getInputValue: B, getOption: x, handleDocumentClick: W } = rt(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
110
|
onClickOption: N,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: f,
|
|
113
113
|
containerRef: O,
|
|
114
114
|
isOpen: d,
|
|
115
115
|
isMobile: h,
|
|
@@ -133,7 +133,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
|
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: C,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
w && w();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ v("div", { className: R(l.inputWrapper), children: [
|
|
@@ -148,7 +148,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
|
|
|
148
148
|
{ [l.selectOptionsDisabled]: _ },
|
|
149
149
|
{ [l.selectionOptionMini]: g }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => f(!d)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -164,7 +164,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
|
|
|
164
164
|
H,
|
|
165
165
|
{
|
|
166
166
|
isOpen: d,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: f,
|
|
168
168
|
additionalClassModalBody: l.modalAddBody,
|
|
169
169
|
additionalClass: l.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
@@ -172,7 +172,7 @@ const J = Object.assign(yt, { Item: K }), R = G.bind(l), Wt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ v("div", { className: l.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(V, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => f(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
D,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -258,7 +258,7 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
|
|
|
258
258
|
onCLickSelect: g,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: N } = $(), [
|
|
261
|
+
const { isMobile: N } = $(), [w, d] = S(!1), [f, O] = S(!1), h = q(null), [C, B] = S(i), [x] = S(_), [W, u] = S(C), [I, A] = S(x), U = (r) => {
|
|
262
262
|
if (c && c(r), o.some((y) => y.value === r.value))
|
|
263
263
|
return;
|
|
264
264
|
const b = I.some((y) => y.value === r.value) ? I.filter((y) => y.value !== r.value) : [...I, r];
|
|
@@ -273,12 +273,12 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
|
|
|
273
273
|
r.stopPropagation(), m && (t == null || t(W), m(I)), d(!1);
|
|
274
274
|
};
|
|
275
275
|
j(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
276
|
+
w || u((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
277
|
+
}, [w, i]), j(() => {
|
|
278
278
|
const r = (b) => {
|
|
279
279
|
h.current && (h.current && !h.current.contains(b.target) || O(!1));
|
|
280
280
|
};
|
|
281
|
-
return
|
|
281
|
+
return w ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
|
|
282
282
|
document.removeEventListener("click", r, { capture: !0 });
|
|
283
283
|
};
|
|
284
284
|
}, [f]);
|
|
@@ -395,7 +395,7 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
|
|
|
395
395
|
"div",
|
|
396
396
|
{
|
|
397
397
|
ref: h,
|
|
398
|
-
className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]:
|
|
398
|
+
className: Ft(s.desktopWrapper, { [s.desktopWrapperOpen]: f }),
|
|
399
399
|
children: /* @__PURE__ */ e(z, {})
|
|
400
400
|
}
|
|
401
401
|
)
|
|
@@ -403,7 +403,7 @@ const zt = /* @__PURE__ */ it($t), Ft = zt.bind(s), me = ({
|
|
|
403
403
|
N && /* @__PURE__ */ e(
|
|
404
404
|
H,
|
|
405
405
|
{
|
|
406
|
-
isOpen:
|
|
406
|
+
isOpen: w,
|
|
407
407
|
emitIsOpen: d,
|
|
408
408
|
isTransparentBack: !0,
|
|
409
409
|
additionalClassModalBody: s.modalAddBody,
|
|
@@ -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-CWyPofPQ.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-CWyPofPQ.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-CWyPofPQ.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-CWyPofPQ.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-CWyPofPQ.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";
|