stone-kit 0.0.567 → 0.0.568
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-IcoKTZvl.js → FilterWithSave-DDBfBUsk.js} +48 -48
- 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
|
@@ -42,23 +42,23 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
42
42
|
children: s,
|
|
43
43
|
variant: r = "whiteRow",
|
|
44
44
|
isApart: n = !1,
|
|
45
|
-
addClassName:
|
|
46
|
-
col:
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(p.root, p[r],
|
|
48
|
-
const { isTablet: n, isDesktop:
|
|
49
|
-
index:
|
|
45
|
+
addClassName: _ = "",
|
|
46
|
+
col: h = !1
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(p.root, p[r], _, { [p.rootCol]: h, [p.apart]: n }), children: s }), K = tt((s, r) => {
|
|
48
|
+
const { isTablet: n, isDesktop: _ } = E(), {
|
|
49
|
+
index: h,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
53
|
disabled: S = !1,
|
|
54
54
|
itemsLength: x = 0,
|
|
55
55
|
isLongOn: w = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: u,
|
|
57
57
|
width_m: a,
|
|
58
58
|
width_l: g,
|
|
59
59
|
mini: C = !1,
|
|
60
60
|
...k
|
|
61
|
-
} = s, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && w, O = (v, N) => v && a ? a : N && g ? g :
|
|
61
|
+
} = s, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && w, O = (v, N) => v && a ? a : N && g ? g : u, f = !u && !a && !g && y;
|
|
62
62
|
return /* @__PURE__ */ b("label", { className: I({ [p.isLong]: y }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -72,14 +72,14 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width: O(n,
|
|
75
|
+
style: { width: O(n, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
78
|
p.item,
|
|
79
|
-
{ [p.firstItem]:
|
|
80
|
-
{ [p.lastItem]:
|
|
79
|
+
{ [p.firstItem]: h === 0 },
|
|
80
|
+
{ [p.lastItem]: h === x - 1 },
|
|
81
81
|
{ [p.isDisabled]: S },
|
|
82
|
-
{ [p.autoWidth]:
|
|
82
|
+
{ [p.autoWidth]: f },
|
|
83
83
|
{ [p.mini]: C }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
@@ -94,17 +94,17 @@ const q = Object.assign(vt, { Item: K }), R = J.bind(c), Wt = ({
|
|
|
94
94
|
options: s,
|
|
95
95
|
selectedOption: r,
|
|
96
96
|
placeholder: n = "",
|
|
97
|
-
error:
|
|
98
|
-
disabled:
|
|
97
|
+
error: _,
|
|
98
|
+
disabled: h,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
102
|
mini: S,
|
|
103
103
|
openOnTop: x = !1,
|
|
104
104
|
onClickItem: w,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: u
|
|
106
106
|
}) => {
|
|
107
|
-
const [a, g] = B(!1), C = H(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: O, getOption:
|
|
107
|
+
const [a, g] = B(!1), C = H(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: O, getOption: f, handleDocumentClick: v } = it(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: r,
|
|
110
110
|
onClickOption: w,
|
|
@@ -126,14 +126,14 @@ const q = Object.assign(vt, { Item: K }), R = J.bind(c), Wt = ({
|
|
|
126
126
|
ref: C,
|
|
127
127
|
className: R(
|
|
128
128
|
c.sortSelectWrapper,
|
|
129
|
-
{ [c.sortSelectWrapperError]:
|
|
129
|
+
{ [c.sortSelectWrapperError]: _ },
|
|
130
130
|
{ [c.sortSelectWrapperTop]: x },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: y,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
u && u();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ b("div", { className: R(c.inputWrapper), children: [
|
|
@@ -145,7 +145,7 @@ const q = Object.assign(vt, { Item: K }), R = J.bind(c), Wt = ({
|
|
|
145
145
|
value: O(),
|
|
146
146
|
className: R(
|
|
147
147
|
c.selectedOptions,
|
|
148
|
-
{ [c.selectOptionsDisabled]:
|
|
148
|
+
{ [c.selectOptionsDisabled]: h },
|
|
149
149
|
{ [c.selectionOptionMini]: S }
|
|
150
150
|
),
|
|
151
151
|
onClick: () => g(!a)
|
|
@@ -180,11 +180,11 @@ const q = Object.assign(vt, { Item: K }), R = J.bind(c), Wt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: s == null ? void 0 : s.map((N) =>
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: s == null ? void 0 : s.map((N) => f(N)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
a && !k && /* @__PURE__ */ e("div", { className: R(c.optionsList, { [c.optionListOnTop]: x }), children: s == null ? void 0 : s.map((N) =>
|
|
187
|
+
a && !k && /* @__PURE__ */ e("div", { className: R(c.optionsList, { [c.optionListOnTop]: x }), children: s == null ? void 0 : s.map((N) => f(N)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -221,11 +221,11 @@ var Q = { exports: {} };
|
|
|
221
221
|
function n() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
224
|
-
d && (t =
|
|
224
|
+
d && (t = h(t, _.call(this, d)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function _(t) {
|
|
229
229
|
if (typeof t == "string" || typeof t == "number")
|
|
230
230
|
return this && this[t] || t;
|
|
231
231
|
if (typeof t != "object")
|
|
@@ -236,10 +236,10 @@ var Q = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
r.call(t, d) && t[d] && (i =
|
|
239
|
+
r.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function h(t, i) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
245
|
s.exports ? (n.default = n, s.exports = n) : window.classNames = n;
|
|
@@ -250,42 +250,42 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
250
250
|
disabledOptions: s = [],
|
|
251
251
|
tabs: r = [],
|
|
252
252
|
selectOptions: n = [],
|
|
253
|
-
onChange:
|
|
254
|
-
selectedValues:
|
|
253
|
+
onChange: _,
|
|
254
|
+
selectedValues: h = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
258
|
onCLickSelect: S,
|
|
259
259
|
btnName: x = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: w } = E(), [
|
|
261
|
+
const { isMobile: w } = E(), [u, a] = B(!1), g = H(null), [C, k] = B(i), [y] = B(h), [O, f] = B(C), [v, N] = B(y), U = (l) => {
|
|
262
262
|
if (d && d(l), s.some((W) => W.value === l.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
N(
|
|
264
|
+
const m = v.some((W) => W.value === l.value) ? v.filter((W) => W.value !== l.value) : [...v, l];
|
|
265
|
+
N(m);
|
|
266
266
|
}, X = () => {
|
|
267
|
-
k(r),
|
|
267
|
+
k(r), f(r), N([]), _ && (_([]), t == null || t(r));
|
|
268
268
|
}, Y = () => {
|
|
269
|
-
N(
|
|
269
|
+
N(h), f(i);
|
|
270
270
|
}, j = () => {
|
|
271
271
|
Y(), a(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
|
-
|
|
273
|
+
_ && (t == null || t(O), _(v)), a(!1);
|
|
274
274
|
};
|
|
275
275
|
L(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
278
|
-
|
|
276
|
+
u || f(i);
|
|
277
|
+
}, [u]), L(() => {
|
|
278
|
+
f(i);
|
|
279
279
|
}, [i]);
|
|
280
280
|
const $ = (l) => {
|
|
281
|
-
if (!
|
|
281
|
+
if (!u || w)
|
|
282
282
|
return;
|
|
283
|
-
const
|
|
284
|
-
console.log("Target:",
|
|
283
|
+
const m = l.target;
|
|
284
|
+
console.log("Target:", m), console.log("родитель ", m.parentElement), console.log("Closest to modal-container:", m.closest("#modal-container")), m.closest("#modal-container") || (console.log("Закрываем модалку"), j());
|
|
285
285
|
};
|
|
286
286
|
L(() => (document.addEventListener("click", $), () => {
|
|
287
287
|
document.removeEventListener("click", $);
|
|
288
|
-
}), [
|
|
288
|
+
}), [u]);
|
|
289
289
|
const T = () => /* @__PURE__ */ b(F, { children: [
|
|
290
290
|
/* @__PURE__ */ e(
|
|
291
291
|
"div",
|
|
@@ -310,7 +310,7 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
310
310
|
variant: "grayRow",
|
|
311
311
|
addClassName: o.tabs,
|
|
312
312
|
isApart: !0,
|
|
313
|
-
children: r == null ? void 0 : r.map((l,
|
|
313
|
+
children: r == null ? void 0 : r.map((l, m) => {
|
|
314
314
|
var z;
|
|
315
315
|
const W = l.value;
|
|
316
316
|
return /* @__PURE__ */ e(
|
|
@@ -323,21 +323,21 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
323
323
|
},
|
|
324
324
|
checked: ((z = O == null ? void 0 : O.find((D) => D.value === W)) == null ? void 0 : z.state) ?? !1,
|
|
325
325
|
onChange: () => {
|
|
326
|
-
|
|
326
|
+
f == null || f(
|
|
327
327
|
(D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
|
|
328
328
|
);
|
|
329
329
|
},
|
|
330
|
-
index:
|
|
330
|
+
index: m,
|
|
331
331
|
addItemClassName: o.tabSwitcher,
|
|
332
332
|
children: W
|
|
333
333
|
},
|
|
334
|
-
|
|
334
|
+
m
|
|
335
335
|
);
|
|
336
336
|
})
|
|
337
337
|
}
|
|
338
338
|
) })
|
|
339
339
|
] }),
|
|
340
|
-
/* @__PURE__ */ e("div", { className: o.selectWrapper, children: n == null ? void 0 : n.map((l,
|
|
340
|
+
/* @__PURE__ */ e("div", { className: o.selectWrapper, children: n == null ? void 0 : n.map((l, m) => /* @__PURE__ */ e(
|
|
341
341
|
ot,
|
|
342
342
|
{
|
|
343
343
|
addClassName: o.filterOption,
|
|
@@ -347,7 +347,7 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
347
347
|
option: l,
|
|
348
348
|
handleOptionClick: U
|
|
349
349
|
},
|
|
350
|
-
|
|
350
|
+
m
|
|
351
351
|
)) }),
|
|
352
352
|
/* @__PURE__ */ b("div", { className: o.btnWrapper, children: [
|
|
353
353
|
/* @__PURE__ */ e(
|
|
@@ -378,7 +378,7 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
378
378
|
className: o.root,
|
|
379
379
|
id: "modal-container",
|
|
380
380
|
onClick: (l) => {
|
|
381
|
-
l.stopPropagation(), S && S(), a(w ? (
|
|
381
|
+
l.stopPropagation(), S && S(), a(w ? (m) => !m : !0);
|
|
382
382
|
},
|
|
383
383
|
children: [
|
|
384
384
|
/* @__PURE__ */ e("div", { className: o.btnName, children: x }),
|
|
@@ -393,7 +393,7 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
393
393
|
"div",
|
|
394
394
|
{
|
|
395
395
|
ref: g,
|
|
396
|
-
className: Tt(o.desktopWrapper, { [o.desktopWrapperOpen]:
|
|
396
|
+
className: Tt(o.desktopWrapper, { [o.desktopWrapperOpen]: u }),
|
|
397
397
|
onClick: (l) => l.stopPropagation(),
|
|
398
398
|
children: /* @__PURE__ */ e(T, {})
|
|
399
399
|
}
|
|
@@ -404,7 +404,7 @@ const $t = /* @__PURE__ */ et(jt), Tt = $t.bind(o), pe = ({
|
|
|
404
404
|
w && /* @__PURE__ */ e(
|
|
405
405
|
V,
|
|
406
406
|
{
|
|
407
|
-
isOpen:
|
|
407
|
+
isOpen: u,
|
|
408
408
|
emitIsOpen: a,
|
|
409
409
|
isTransparentBack: !0,
|
|
410
410
|
additionalClassModalBody: o.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-DDBfBUsk.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-DDBfBUsk.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-DDBfBUsk.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-DDBfBUsk.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-DDBfBUsk.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";
|