stone-kit 0.0.576 → 0.0.578
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-mnIFUia7.js → FilterWithSave-B36pjJJU.js} +57 -57
- 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
|
@@ -23,7 +23,7 @@ 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 ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt = "_rootCol_2bilg_32", at = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", lt = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164",
|
|
26
|
+
const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt = "_rootCol_2bilg_32", at = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", lt = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", m = {
|
|
27
27
|
root: ot,
|
|
28
28
|
text: rt,
|
|
29
29
|
textMini: st,
|
|
@@ -38,28 +38,28 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
38
38
|
mini: ht,
|
|
39
39
|
isDisabled: ut,
|
|
40
40
|
grayRow: ft
|
|
41
|
-
}, I = G.bind(
|
|
41
|
+
}, I = G.bind(m), gt = ({
|
|
42
42
|
children: n,
|
|
43
43
|
variant: s = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
|
-
addClassName:
|
|
46
|
-
col:
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(
|
|
48
|
-
const { isTablet: a, isDesktop:
|
|
49
|
-
index:
|
|
45
|
+
addClassName: _ = "",
|
|
46
|
+
col: h = !1
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[s], _, { [m.rootCol]: h, [m.apart]: a }), children: n }), J = Z((n, s) => {
|
|
48
|
+
const { isTablet: a, isDesktop: _ } = E(), {
|
|
49
|
+
index: h,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
53
|
disabled: O = !1,
|
|
54
54
|
itemsLength: x = 0,
|
|
55
55
|
isLongOn: S = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: u,
|
|
57
57
|
width_m: c,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: p,
|
|
59
59
|
mini: k = !1,
|
|
60
60
|
...C
|
|
61
|
-
} = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N &&
|
|
62
|
-
return /* @__PURE__ */ b("label", { className: I({ [
|
|
61
|
+
} = n, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N && p ? p : u, f = !u && !c && !p && y;
|
|
62
|
+
return /* @__PURE__ */ b("label", { className: I({ [m.isLong]: y }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
@@ -72,44 +72,44 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width: w(a,
|
|
75
|
+
style: { width: w(a, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
m.item,
|
|
79
|
+
{ [m.firstItem]: h === 0 },
|
|
80
|
+
{ [m.lastItem]: h === x - 1 },
|
|
81
|
+
{ [m.isDisabled]: O },
|
|
82
|
+
{ [m.autoWidth]: f },
|
|
83
|
+
{ [m.mini]: k }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(V, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(V, { className: I(m.text, { [m.textMini]: k }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
|
-
const T = Object.assign(
|
|
93
|
+
const T = Object.assign(gt, { Item: J }), L = G.bind(l), vt = ({
|
|
94
94
|
options: n,
|
|
95
95
|
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
97
|
-
error:
|
|
98
|
-
disabled:
|
|
97
|
+
error: _,
|
|
98
|
+
disabled: h,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
102
|
mini: O,
|
|
103
103
|
openOnTop: x = !1,
|
|
104
104
|
onClickItem: S,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: u
|
|
106
106
|
}) => {
|
|
107
|
-
const [c,
|
|
107
|
+
const [c, p] = B(!1), k = q(null), { isMobile: C } = E(), { handleBlur: y, getInputValue: w, getOption: f, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: S,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: p,
|
|
113
113
|
containerRef: k,
|
|
114
114
|
isOpen: c,
|
|
115
115
|
isMobile: C,
|
|
@@ -126,14 +126,14 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
126
126
|
ref: k,
|
|
127
127
|
className: L(
|
|
128
128
|
l.sortSelectWrapper,
|
|
129
|
-
{ [l.sortSelectWrapperError]:
|
|
129
|
+
{ [l.sortSelectWrapperError]: _ },
|
|
130
130
|
{ [l.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: L(l.inputWrapper), children: [
|
|
@@ -145,10 +145,10 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
145
145
|
value: w(),
|
|
146
146
|
className: L(
|
|
147
147
|
l.selectedOptions,
|
|
148
|
-
{ [l.selectOptionsDisabled]:
|
|
148
|
+
{ [l.selectOptionsDisabled]: h },
|
|
149
149
|
{ [l.selectionOptionMini]: O }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => p(!c)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -164,7 +164,7 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
164
164
|
H,
|
|
165
165
|
{
|
|
166
166
|
isOpen: c,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: p,
|
|
168
168
|
additionalClassModalBody: l.modalAddBody,
|
|
169
169
|
additionalClass: l.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
@@ -172,7 +172,7 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ b("div", { className: l.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(V, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => p(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
A,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -189,7 +189,7 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
vt.displayName = "SortSelect";
|
|
193
193
|
const Wt = "_root_1occg_1", bt = "_filterWithSaveModal_1occg_15", Nt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", kt = "_tabSWitcherWrapper_1occg_48", Ct = "_switcherTitle_1occg_56", xt = "_switcherScroll_1occg_63", yt = "_tabs_1occg_67", Bt = "_selectWrapper_1occg_72", It = "_filterOption_1occg_76", Mt = "_btnWrapper_1occg_83", Lt = "_resetBtn_1occg_89", Rt = "_saveBtn_1occg_90", At = "_desktopWrapper_1occg_94", Dt = "_desktopWrapperOpen_1occg_116", r = {
|
|
194
194
|
root: Wt,
|
|
195
195
|
filterWithSaveModal: bt,
|
|
@@ -221,11 +221,11 @@ var K = { exports: {} };
|
|
|
221
221
|
function a() {
|
|
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,55 +236,55 @@ var K = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
s.call(t, d) && t[d] && (i =
|
|
239
|
+
s.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
|
n.exports ? (a.default = a, n.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
|
-
const jt = /* @__PURE__ */ tt(Et),
|
|
249
|
+
const jt = /* @__PURE__ */ tt(Et), Pt = jt.bind(r), de = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
251
|
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
|
-
onChange:
|
|
254
|
-
selectedValues:
|
|
253
|
+
onChange: _,
|
|
254
|
+
selectedValues: h = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: x = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [
|
|
261
|
+
const { isMobile: S } = E(), [u, c] = B(!1), p = q(null), [k, C] = B(i), [y] = B(h), [w, f] = B(k), [v, N] = B(y), Q = (o) => {
|
|
262
262
|
if (d && d(o), n.some((W) => W.value === o.value))
|
|
263
263
|
return;
|
|
264
264
|
const g = v.some((W) => W.value === o.value) ? v.filter((W) => W.value !== o.value) : [...v, o];
|
|
265
265
|
N(g);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
C(s), f(s), N([]),
|
|
267
|
+
C(s), f(s), N([]), _ && (_([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
N(
|
|
269
|
+
N(h), f(i);
|
|
270
270
|
}, j = () => {
|
|
271
271
|
X(), c(!1);
|
|
272
272
|
}, Y = () => {
|
|
273
|
-
|
|
273
|
+
_ && (t == null || t(w), _(v)), c(!1);
|
|
274
274
|
};
|
|
275
275
|
R(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
276
|
+
u || f(i);
|
|
277
|
+
}, [u]), R(() => {
|
|
278
278
|
f(i);
|
|
279
279
|
}, [i]), R(() => {
|
|
280
280
|
const o = (g) => {
|
|
281
|
-
|
|
281
|
+
g.stopImmediatePropagation(), p.current && console.log(p.current.contains(g.target)), !(p.current && p.current.contains(g.target)) && j();
|
|
282
282
|
};
|
|
283
|
-
return
|
|
283
|
+
return u ? document.addEventListener("click", o) : document.removeEventListener("click", o), () => {
|
|
284
284
|
document.removeEventListener("click", o);
|
|
285
285
|
};
|
|
286
|
-
}, [
|
|
287
|
-
const
|
|
286
|
+
}, [u]);
|
|
287
|
+
const P = () => /* @__PURE__ */ b(z, { children: [
|
|
288
288
|
/* @__PURE__ */ e(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
@@ -311,7 +311,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
311
311
|
addClassName: r.tabs,
|
|
312
312
|
isApart: !0,
|
|
313
313
|
children: s == null ? void 0 : s.map((o, g) => {
|
|
314
|
-
var
|
|
314
|
+
var $;
|
|
315
315
|
const W = o.value;
|
|
316
316
|
return /* @__PURE__ */ e(
|
|
317
317
|
T.Item,
|
|
@@ -321,7 +321,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
321
321
|
value: W,
|
|
322
322
|
onClick: () => {
|
|
323
323
|
},
|
|
324
|
-
checked: ((
|
|
324
|
+
checked: (($ = w == null ? void 0 : w.find((D) => D.value === W)) == null ? void 0 : $.state) ?? !1,
|
|
325
325
|
onChange: () => {
|
|
326
326
|
f == null || f(
|
|
327
327
|
(D) => D.map((M) => M.value === W ? { ...M, state: !M.state } : M)
|
|
@@ -375,7 +375,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
375
375
|
/* @__PURE__ */ b(
|
|
376
376
|
"div",
|
|
377
377
|
{
|
|
378
|
-
ref:
|
|
378
|
+
ref: p,
|
|
379
379
|
className: r.root,
|
|
380
380
|
id: "modal-container",
|
|
381
381
|
onClick: (o) => {
|
|
@@ -393,9 +393,9 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
393
393
|
!S && /* @__PURE__ */ e(
|
|
394
394
|
"div",
|
|
395
395
|
{
|
|
396
|
-
className:
|
|
396
|
+
className: Pt(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
|
|
397
397
|
onClick: (o) => o.stopPropagation(),
|
|
398
|
-
children: /* @__PURE__ */ e(
|
|
398
|
+
children: /* @__PURE__ */ e(P, {})
|
|
399
399
|
}
|
|
400
400
|
)
|
|
401
401
|
]
|
|
@@ -404,12 +404,12 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
404
404
|
S && /* @__PURE__ */ e(
|
|
405
405
|
H,
|
|
406
406
|
{
|
|
407
|
-
isOpen:
|
|
407
|
+
isOpen: u,
|
|
408
408
|
emitIsOpen: c,
|
|
409
409
|
isTransparentBack: !0,
|
|
410
410
|
additionalClassModalBody: r.modalAddBody,
|
|
411
411
|
additionalClass: r.filterWithSaveModal,
|
|
412
|
-
children: /* @__PURE__ */ e(
|
|
412
|
+
children: /* @__PURE__ */ e(P, {})
|
|
413
413
|
}
|
|
414
414
|
)
|
|
415
415
|
] });
|
|
@@ -417,5 +417,5 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
417
417
|
export {
|
|
418
418
|
de as F,
|
|
419
419
|
T as S,
|
|
420
|
-
|
|
420
|
+
vt as a
|
|
421
421
|
};
|
|
@@ -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-B36pjJJU.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-B36pjJJU.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-B36pjJJU.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-B36pjJJU.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-B36pjJJU.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";
|