stone-kit 0.0.610 → 0.0.612
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-DLDqIO4A.js → FilterWithSave-CbnTkW4F.js} +26 -26
- 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
|
@@ -58,7 +58,7 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
|
|
|
58
58
|
width_l: h,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...k
|
|
61
|
-
} = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w,
|
|
61
|
+
} = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w, g) => w && l ? l : g && h ? h : m, f = !m && !l && !h && x;
|
|
62
62
|
return /* @__PURE__ */ v("label", { className: I({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -180,21 +180,21 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((g) => f(g)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((
|
|
187
|
+
l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((g) => f(g)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
wt.displayName = "SortSelect";
|
|
193
|
-
const yt = "_root_1wv7y_1", Wt = "_filterWithSaveModal_1wv7y_15",
|
|
193
|
+
const yt = "_root_1wv7y_1", Wt = "_filterWithSaveModal_1wv7y_15", gt = "_modalAddBody_1wv7y_20", Nt = "_closeBtn_1wv7y_29", bt = "_btnName_1wv7y_35", Ot = "_modalTitle_1wv7y_39", St = "_tabSWitcherWrapper_1wv7y_48", kt = "_switcherTitle_1wv7y_56", Ct = "_switcherScroll_1wv7y_63", xt = "_tabs_1wv7y_67", Bt = "_selectWrapper_1wv7y_72", It = "_filterOption_1wv7y_76", Mt = "_btnWrapper_1wv7y_83", Lt = "_resetBtn_1wv7y_89", Rt = "_saveBtn_1wv7y_90", At = "_desktopWrapper_1wv7y_94", Dt = "_desktopWrapperOpen_1wv7y_117", s = {
|
|
194
194
|
root: yt,
|
|
195
195
|
filterWithSaveModal: Wt,
|
|
196
|
-
modalAddBody:
|
|
197
|
-
closeBtn:
|
|
196
|
+
modalAddBody: gt,
|
|
197
|
+
closeBtn: Nt,
|
|
198
198
|
btnName: bt,
|
|
199
199
|
modalTitle: Ot,
|
|
200
200
|
tabSWitcherWrapper: St,
|
|
@@ -258,15 +258,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
258
258
|
onCLickSelect: b,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: O } = j(), [m, l] = B(!1), h = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [w,
|
|
262
|
-
if (d && d(r), o.some((
|
|
261
|
+
const { isMobile: O } = j(), [m, l] = B(!1), h = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [w, g] = B(x), Q = (r) => {
|
|
262
|
+
if (d && d(r), o.some((W) => W.value === r.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
|
|
264
|
+
const y = w.some((W) => W.value === r.value) ? w.filter((W) => W.value !== r.value) : [...w, r];
|
|
265
|
+
g(y);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
k(n), f(n),
|
|
267
|
+
k(n), f(n), g([]), _ && (_([]), t == null || t(n));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
|
|
269
|
+
g(u), f(i);
|
|
270
270
|
}, A = () => {
|
|
271
271
|
X(), l(!1);
|
|
272
272
|
}, Y = (r) => {
|
|
@@ -275,8 +275,8 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
275
275
|
E(() => {
|
|
276
276
|
m || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
277
277
|
}, [m, i]), E(() => {
|
|
278
|
-
const r = (
|
|
279
|
-
h.current && (h.current.contains(
|
|
278
|
+
const r = (y) => {
|
|
279
|
+
h.current && (h.current.contains(y.target) || (console.log("я тут"), A()));
|
|
280
280
|
};
|
|
281
281
|
return m ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
|
|
282
282
|
document.removeEventListener("click", r, { capture: !0 });
|
|
@@ -308,34 +308,34 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
308
308
|
variant: "grayRow",
|
|
309
309
|
addClassName: s.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
|
-
children: n == null ? void 0 : n.map((r,
|
|
311
|
+
children: n == null ? void 0 : n.map((r, y) => {
|
|
312
312
|
var z;
|
|
313
|
-
const
|
|
313
|
+
const W = r.value;
|
|
314
314
|
return /* @__PURE__ */ e(
|
|
315
315
|
T.Item,
|
|
316
316
|
{
|
|
317
317
|
itemsLength: n == null ? void 0 : n.length,
|
|
318
318
|
mini: !0,
|
|
319
|
-
value:
|
|
319
|
+
value: W,
|
|
320
320
|
onClick: () => {
|
|
321
321
|
},
|
|
322
|
-
checked: ((z = N == null ? void 0 : N.find((D) => D.value ===
|
|
322
|
+
checked: ((z = N == null ? void 0 : N.find((D) => D.value === W)) == null ? void 0 : z.state) ?? !1,
|
|
323
323
|
onChange: () => {
|
|
324
324
|
f == null || f(
|
|
325
|
-
(D) => D.map((M) => M.value ===
|
|
325
|
+
(D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
|
|
326
326
|
);
|
|
327
327
|
},
|
|
328
|
-
index:
|
|
328
|
+
index: y,
|
|
329
329
|
addItemClassName: s.tabSwitcher,
|
|
330
|
-
children:
|
|
330
|
+
children: W
|
|
331
331
|
},
|
|
332
|
-
|
|
332
|
+
y
|
|
333
333
|
);
|
|
334
334
|
})
|
|
335
335
|
}
|
|
336
336
|
) })
|
|
337
337
|
] }),
|
|
338
|
-
/* @__PURE__ */ e("div", { className: s.selectWrapper, children: a == null ? void 0 : a.map((r,
|
|
338
|
+
/* @__PURE__ */ e("div", { className: s.selectWrapper, children: a == null ? void 0 : a.map((r, y) => /* @__PURE__ */ e(
|
|
339
339
|
it,
|
|
340
340
|
{
|
|
341
341
|
addClassName: s.filterOption,
|
|
@@ -345,7 +345,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
345
345
|
option: r,
|
|
346
346
|
handleOptionClick: Q
|
|
347
347
|
},
|
|
348
|
-
|
|
348
|
+
y
|
|
349
349
|
)) }),
|
|
350
350
|
/* @__PURE__ */ v("div", { className: s.btnWrapper, children: [
|
|
351
351
|
/* @__PURE__ */ e(
|
|
@@ -375,8 +375,8 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
375
375
|
"div",
|
|
376
376
|
{
|
|
377
377
|
className: s.root,
|
|
378
|
-
onClick: () => {
|
|
379
|
-
b && b(), O ? l((
|
|
378
|
+
onClick: (r) => {
|
|
379
|
+
r.stopPropagation(), b && b(), O ? l((y) => !y) : m ? (console.log("я тут 1111"), A()) : l(!0);
|
|
380
380
|
},
|
|
381
381
|
children: [
|
|
382
382
|
/* @__PURE__ */ e("div", { className: s.btnName, children: C }),
|
|
@@ -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-CbnTkW4F.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-CbnTkW4F.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-CbnTkW4F.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-CbnTkW4F.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-CbnTkW4F.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";
|