stone-kit 0.0.608 → 0.0.609
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-NPMSeeOG.js → FilterWithSave-B_5JOpz1.js} +50 -50
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Z, useState as B, useRef as J, useEffect as
|
|
2
|
+
import { forwardRef as Z, useState as B, useRef as J, useEffect as E } from "react";
|
|
3
3
|
import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as q } from "./Modal-BZv6nlLe.js";
|
|
5
5
|
import { Text as H } from "./components/Text/ui/Text.js";
|
|
@@ -16,14 +16,14 @@ import "./components/GroupedInput/ui/GroupedInputs.js";
|
|
|
16
16
|
import "./components/MetroTag/ui/MetroTag.js";
|
|
17
17
|
import "./components/LotCard/ui/LotCard.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
|
-
import { useClientWidth as
|
|
19
|
+
import { useClientWidth as j } from "./shared/useClientWidth.js";
|
|
20
20
|
import { s as c, u as et } from "./useSortSelect-CjZXLFOG.js";
|
|
21
21
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
24
24
|
import "./components/FormModal/ui/ModalForm.js";
|
|
25
25
|
import { O as it } from "./Option-CyYM1iBJ.js";
|
|
26
|
-
const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132",
|
|
26
|
+
const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", ht = "_grayRow_2bilg_164", m = {
|
|
27
27
|
root: rt,
|
|
28
28
|
text: st,
|
|
29
29
|
textMini: nt,
|
|
@@ -36,29 +36,29 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
|
|
|
36
36
|
isLong: mt,
|
|
37
37
|
autoWidth: _t,
|
|
38
38
|
mini: ut,
|
|
39
|
-
isDisabled:
|
|
40
|
-
grayRow:
|
|
39
|
+
isDisabled: ft,
|
|
40
|
+
grayRow: ht
|
|
41
41
|
}, I = V.bind(m), vt = ({
|
|
42
42
|
children: a,
|
|
43
43
|
variant: n = "whiteRow",
|
|
44
44
|
isApart: l = !1,
|
|
45
|
-
addClassName:
|
|
46
|
-
col:
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[n],
|
|
48
|
-
const { isTablet: l, isDesktop:
|
|
49
|
-
index:
|
|
45
|
+
addClassName: u = "",
|
|
46
|
+
col: f = !1
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], u, { [m.rootCol]: f, [m.apart]: l }), children: a }), G = Z((a, n) => {
|
|
48
|
+
const { isTablet: l, isDesktop: u } = j(), {
|
|
49
|
+
index: f,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
53
|
disabled: b = !1,
|
|
54
54
|
itemsLength: C = 0,
|
|
55
55
|
isLongOn: O = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: _,
|
|
57
57
|
width_m: o,
|
|
58
58
|
width_l: p,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...k
|
|
61
|
-
} = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w, W) => w && o ? o : W && p ? p :
|
|
61
|
+
} = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (w, W) => w && o ? o : W && p ? p : _, h = !_ && !o && !p && x;
|
|
62
62
|
return /* @__PURE__ */ v("label", { className: I({ [m.isLong]: x }), 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", ot
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width: N(l,
|
|
75
|
+
style: { width: N(l, u) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
78
|
m.item,
|
|
79
|
-
{ [m.firstItem]:
|
|
80
|
-
{ [m.lastItem]:
|
|
79
|
+
{ [m.firstItem]: f === 0 },
|
|
80
|
+
{ [m.lastItem]: f === C - 1 },
|
|
81
81
|
{ [m.isDisabled]: b },
|
|
82
|
-
{ [m.autoWidth]:
|
|
82
|
+
{ [m.autoWidth]: h },
|
|
83
83
|
{ [m.mini]: S }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
@@ -94,17 +94,17 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
94
94
|
options: a,
|
|
95
95
|
selectedOption: n,
|
|
96
96
|
placeholder: l = "",
|
|
97
|
-
error:
|
|
98
|
-
disabled:
|
|
97
|
+
error: u,
|
|
98
|
+
disabled: f,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
102
|
mini: b,
|
|
103
103
|
openOnTop: C = !1,
|
|
104
104
|
onClickItem: O,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: _
|
|
106
106
|
}) => {
|
|
107
|
-
const [o, p] = B(!1), S = J(null), { isMobile: k } =
|
|
107
|
+
const [o, p] = B(!1), S = J(null), { isMobile: k } = j(), { handleBlur: x, getInputValue: N, getOption: h, handleDocumentClick: w } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
110
|
onClickOption: O,
|
|
@@ -118,7 +118,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
return
|
|
121
|
+
return E(() => (document.addEventListener("click", w), () => {
|
|
122
122
|
document.removeEventListener("click", w);
|
|
123
123
|
}), []), /* @__PURE__ */ v(
|
|
124
124
|
"div",
|
|
@@ -126,14 +126,14 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
126
126
|
ref: S,
|
|
127
127
|
className: L(
|
|
128
128
|
c.sortSelectWrapper,
|
|
129
|
-
{ [c.sortSelectWrapperError]:
|
|
129
|
+
{ [c.sortSelectWrapperError]: u },
|
|
130
130
|
{ [c.sortSelectWrapperTop]: C },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: x,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
_ && _();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ v("div", { className: L(c.inputWrapper), children: [
|
|
@@ -145,7 +145,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
145
145
|
value: N(),
|
|
146
146
|
className: L(
|
|
147
147
|
c.selectedOptions,
|
|
148
|
-
{ [c.selectOptionsDisabled]:
|
|
148
|
+
{ [c.selectOptionsDisabled]: f },
|
|
149
149
|
{ [c.selectionOptionMini]: b }
|
|
150
150
|
),
|
|
151
151
|
onClick: () => p(!o)
|
|
@@ -180,11 +180,11 @@ 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: a == null ? void 0 : a.map((W) =>
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: a == null ? void 0 : a.map((W) => h(W)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
o && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: a == null ? void 0 : a.map((W) =>
|
|
187
|
+
o && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: a == null ? void 0 : a.map((W) => h(W)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -221,11 +221,11 @@ var K = { exports: {} };
|
|
|
221
221
|
function l() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
224
|
-
d && (t =
|
|
224
|
+
d && (t = f(t, u.call(this, d)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function u(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 K = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
n.call(t, d) && t[d] && (i =
|
|
239
|
+
n.call(t, d) && t[d] && (i = f(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function f(t, i) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
245
|
a.exports ? (l.default = l, a.exports = l) : window.classNames = l;
|
|
@@ -250,51 +250,51 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
250
250
|
disabledOptions: a = [],
|
|
251
251
|
tabs: n = [],
|
|
252
252
|
selectOptions: l = [],
|
|
253
|
-
onChange:
|
|
254
|
-
selectedValues:
|
|
253
|
+
onChange: u,
|
|
254
|
+
selectedValues: f = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
258
|
onCLickSelect: b,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: O } =
|
|
261
|
+
const { isMobile: O } = j(), [_, o] = B(!1), p = J(null), [S, k] = B(i), [x] = B(f), [N, h] = B(S), [w, W] = B(x), Q = (r) => {
|
|
262
262
|
if (d && d(r), a.some((g) => g.value === r.value))
|
|
263
263
|
return;
|
|
264
264
|
const y = w.some((g) => g.value === r.value) ? w.filter((g) => g.value !== r.value) : [...w, r];
|
|
265
265
|
W(y);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
k(n),
|
|
267
|
+
k(n), h(n), W([]), u && (u([]), t == null || t(n));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
W(
|
|
270
|
-
},
|
|
269
|
+
W(f), h(i);
|
|
270
|
+
}, A = () => {
|
|
271
271
|
X(), o(!1);
|
|
272
272
|
}, Y = (r) => {
|
|
273
|
-
r.stopPropagation(),
|
|
273
|
+
r.stopPropagation(), u && (t == null || t(N), u(w)), o(!1);
|
|
274
274
|
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}, [
|
|
275
|
+
E(() => {
|
|
276
|
+
_ || h((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
277
|
+
}, [_, i]), E(() => {
|
|
278
278
|
const r = (y) => {
|
|
279
279
|
if (p.current) {
|
|
280
280
|
if (console.log(y.target), console.log(p), p.current.contains(y.target)) {
|
|
281
281
|
y.target === p.current && o(!1);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
A();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
return
|
|
287
|
+
return _ ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
|
|
288
288
|
document.removeEventListener("click", r, { capture: !0 });
|
|
289
289
|
};
|
|
290
|
-
}, [
|
|
290
|
+
}, [_]);
|
|
291
291
|
const $ = () => /* @__PURE__ */ v(F, { children: [
|
|
292
292
|
/* @__PURE__ */ e(
|
|
293
293
|
"div",
|
|
294
294
|
{
|
|
295
295
|
className: s.closeBtn,
|
|
296
296
|
onClick: () => {
|
|
297
|
-
|
|
297
|
+
A();
|
|
298
298
|
},
|
|
299
299
|
children: /* @__PURE__ */ e(
|
|
300
300
|
R,
|
|
@@ -325,10 +325,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
325
325
|
value: g,
|
|
326
326
|
onClick: () => {
|
|
327
327
|
},
|
|
328
|
-
checked: ((z = N == null ? void 0 : N.find((
|
|
328
|
+
checked: ((z = N == null ? void 0 : N.find((D) => D.value === g)) == null ? void 0 : z.state) ?? !1,
|
|
329
329
|
onChange: () => {
|
|
330
|
-
|
|
331
|
-
(
|
|
330
|
+
h == null || h(
|
|
331
|
+
(D) => D.map((M) => M.value === g ? { ...M, state: !M.state } : M)
|
|
332
332
|
);
|
|
333
333
|
},
|
|
334
334
|
index: y,
|
|
@@ -382,7 +382,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
382
382
|
{
|
|
383
383
|
className: s.root,
|
|
384
384
|
onClick: () => {
|
|
385
|
-
b && b(), O
|
|
385
|
+
b && b(), O ? o((r) => !r) : _ ? A() : o(!0);
|
|
386
386
|
},
|
|
387
387
|
children: [
|
|
388
388
|
/* @__PURE__ */ e("div", { className: s.btnName, children: C }),
|
|
@@ -400,7 +400,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
400
400
|
"div",
|
|
401
401
|
{
|
|
402
402
|
ref: p,
|
|
403
|
-
className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]:
|
|
403
|
+
className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: _ }),
|
|
404
404
|
children: /* @__PURE__ */ e($, {})
|
|
405
405
|
}
|
|
406
406
|
)
|
|
@@ -408,7 +408,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
408
408
|
O && /* @__PURE__ */ e(
|
|
409
409
|
q,
|
|
410
410
|
{
|
|
411
|
-
isOpen:
|
|
411
|
+
isOpen: _,
|
|
412
412
|
emitIsOpen: o,
|
|
413
413
|
isTransparentBack: !0,
|
|
414
414
|
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-B_5JOpz1.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-B_5JOpz1.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-B_5JOpz1.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-B_5JOpz1.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-B_5JOpz1.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";
|