stone-kit 0.0.580 → 0.0.581
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-67AAGPax.js → FilterWithSave-DKQEWGp7.js} +54 -54
- 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,28 +23,28 @@ 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
|
|
27
|
-
root:
|
|
28
|
-
text:
|
|
26
|
+
const rt = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", st = "_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", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", ht = "_grayRow_2bilg_164", m = {
|
|
27
|
+
root: rt,
|
|
28
|
+
text: ot,
|
|
29
29
|
textMini: nt,
|
|
30
30
|
rootCol: st,
|
|
31
31
|
item: at,
|
|
32
32
|
whiteRow: ct,
|
|
33
33
|
firstItem: lt,
|
|
34
34
|
lastItem: dt,
|
|
35
|
-
apart:
|
|
36
|
-
isLong:
|
|
35
|
+
apart: pt,
|
|
36
|
+
isLong: mt,
|
|
37
37
|
autoWidth: _t,
|
|
38
38
|
mini: ut,
|
|
39
39
|
isDisabled: ft,
|
|
40
40
|
grayRow: ht
|
|
41
|
-
}, I = V.bind(
|
|
41
|
+
}, I = V.bind(m), gt = ({
|
|
42
42
|
children: s,
|
|
43
43
|
variant: n = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
45
|
addClassName: _ = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], _, { [m.rootCol]: u, [m.apart]: a }), children: s }), G = Z((s, n) => {
|
|
48
48
|
const { isTablet: a, isDesktop: _ } = E(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -55,11 +55,11 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
|
|
|
55
55
|
isLongOn: S = !0,
|
|
56
56
|
width: f,
|
|
57
57
|
width_m: c,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: p,
|
|
59
59
|
mini: k = !1,
|
|
60
60
|
...y
|
|
61
|
-
} = s, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, b) => v && c ? c : b &&
|
|
62
|
-
return /* @__PURE__ */ N("label", { className: I({ [
|
|
61
|
+
} = s, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, b) => v && c ? c : b && p ? p : f, h = !f && !c && !p && x;
|
|
62
|
+
return /* @__PURE__ */ N("label", { className: I({ [m.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
@@ -75,16 +75,16 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
|
|
|
75
75
|
style: { width: w(a, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
m.item,
|
|
79
|
+
{ [m.firstItem]: u === 0 },
|
|
80
|
+
{ [m.lastItem]: u === C - 1 },
|
|
81
|
+
{ [m.isDisabled]: O },
|
|
82
|
+
{ [m.autoWidth]: h },
|
|
83
|
+
{ [m.mini]: k }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: I(m.text, { [m.textMini]: k }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
@@ -104,12 +104,12 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
104
104
|
onClickItem: S,
|
|
105
105
|
onCLickSelect: f
|
|
106
106
|
}) => {
|
|
107
|
-
const [c,
|
|
107
|
+
const [c, p] = B(!1), k = J(null), { isMobile: y } = E(), { handleBlur: x, getInputValue: w, getOption: h, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
110
|
onClickOption: S,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: p,
|
|
113
113
|
containerRef: k,
|
|
114
114
|
isOpen: c,
|
|
115
115
|
isMobile: y,
|
|
@@ -148,7 +148,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
148
148
|
{ [l.selectOptionsDisabled]: u },
|
|
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(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
164
164
|
q,
|
|
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(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ N("div", { className: l.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => p(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -190,7 +190,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
vt.displayName = "SortSelect";
|
|
193
|
-
const Wt = "_root_1occg_1", Nt = "_filterWithSaveModal_1occg_15", bt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", kt = "_tabSWitcherWrapper_1occg_48", yt = "_switcherTitle_1occg_56", Ct = "_switcherScroll_1occg_63", xt = "_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",
|
|
193
|
+
const Wt = "_root_1occg_1", Nt = "_filterWithSaveModal_1occg_15", bt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", kt = "_tabSWitcherWrapper_1occg_48", yt = "_switcherTitle_1occg_56", Ct = "_switcherScroll_1occg_63", xt = "_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: Nt,
|
|
196
196
|
modalAddBody: bt,
|
|
@@ -246,7 +246,7 @@ var K = { exports: {} };
|
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
|
-
const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(
|
|
249
|
+
const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
250
250
|
disabledOptions: s = [],
|
|
251
251
|
tabs: n = [],
|
|
252
252
|
selectOptions: a = [],
|
|
@@ -258,10 +258,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [f, c] = B(!1),
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: S } = E(), [f, c] = B(!1), p = J(null), [k, y] = B(i), [x] = B(u), [w, h] = B(k), [v, b] = B(x), Q = (o) => {
|
|
262
|
+
if (d && d(o), s.some((W) => W.value === o.value))
|
|
263
263
|
return;
|
|
264
|
-
const g = v.some((W) => W.value ===
|
|
264
|
+
const g = v.some((W) => W.value === o.value) ? v.filter((W) => W.value !== o.value) : [...v, o];
|
|
265
265
|
b(g);
|
|
266
266
|
}, U = () => {
|
|
267
267
|
y(n), h(n), b([]), _ && (_([]), t == null || t(n));
|
|
@@ -273,20 +273,20 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
273
273
|
_ && (t == null || t(w), _(v)), c(!1);
|
|
274
274
|
};
|
|
275
275
|
D(() => {
|
|
276
|
-
f || h((
|
|
276
|
+
f || h((o) => JSON.stringify(o) !== JSON.stringify(i) ? i : o);
|
|
277
277
|
}, [f, i]), D(() => {
|
|
278
|
-
const
|
|
279
|
-
g.stopPropagation(), g.stopImmediatePropagation(), console.log("gdfgdfgdfg"),
|
|
278
|
+
const o = (g) => {
|
|
279
|
+
g.stopPropagation(), g.stopImmediatePropagation(), console.log("gdfgdfgdfg"), p.current && console.log(p.current.contains(g.target)), !(p.current && p.current.contains(g.target)) && j();
|
|
280
280
|
};
|
|
281
|
-
return f ? document.addEventListener("click",
|
|
282
|
-
document.removeEventListener("click",
|
|
281
|
+
return f ? document.addEventListener("click", o, { capture: !0 }) : document.removeEventListener("click", o, { capture: !0 }), () => {
|
|
282
|
+
document.removeEventListener("click", o);
|
|
283
283
|
};
|
|
284
284
|
}, [f]);
|
|
285
285
|
const $ = () => /* @__PURE__ */ N(F, { children: [
|
|
286
286
|
/* @__PURE__ */ e(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
|
-
className:
|
|
289
|
+
className: r.closeBtn,
|
|
290
290
|
onClick: () => {
|
|
291
291
|
j();
|
|
292
292
|
},
|
|
@@ -299,18 +299,18 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
299
299
|
)
|
|
300
300
|
}
|
|
301
301
|
),
|
|
302
|
-
/* @__PURE__ */ e("div", { className:
|
|
303
|
-
/* @__PURE__ */ N("div", { className:
|
|
304
|
-
/* @__PURE__ */ e("div", { className:
|
|
305
|
-
/* @__PURE__ */ e("div", { className:
|
|
302
|
+
/* @__PURE__ */ e("div", { className: r.modalTitle, children: "Фильтры" }),
|
|
303
|
+
/* @__PURE__ */ N("div", { className: r.tabSWitcherWrapper, children: [
|
|
304
|
+
/* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
|
|
305
|
+
/* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
|
|
306
306
|
T,
|
|
307
307
|
{
|
|
308
308
|
variant: "grayRow",
|
|
309
|
-
addClassName:
|
|
309
|
+
addClassName: r.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
|
-
children: n == null ? void 0 : n.map((
|
|
311
|
+
children: n == null ? void 0 : n.map((o, g) => {
|
|
312
312
|
var z;
|
|
313
|
-
const W =
|
|
313
|
+
const W = o.value;
|
|
314
314
|
return /* @__PURE__ */ e(
|
|
315
315
|
T.Item,
|
|
316
316
|
{
|
|
@@ -326,7 +326,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
326
326
|
);
|
|
327
327
|
},
|
|
328
328
|
index: g,
|
|
329
|
-
addItemClassName:
|
|
329
|
+
addItemClassName: r.tabSwitcher,
|
|
330
330
|
children: W
|
|
331
331
|
},
|
|
332
332
|
g
|
|
@@ -335,25 +335,25 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
335
335
|
}
|
|
336
336
|
) })
|
|
337
337
|
] }),
|
|
338
|
-
/* @__PURE__ */ e("div", { className:
|
|
338
|
+
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((o, g) => /* @__PURE__ */ e(
|
|
339
339
|
it,
|
|
340
340
|
{
|
|
341
|
-
addClassName:
|
|
341
|
+
addClassName: r.filterOption,
|
|
342
342
|
disabledOptions: [],
|
|
343
343
|
clickableOptions: [],
|
|
344
344
|
selectedOptions: v,
|
|
345
|
-
option:
|
|
345
|
+
option: o,
|
|
346
346
|
handleOptionClick: Q
|
|
347
347
|
},
|
|
348
348
|
g
|
|
349
349
|
)) }),
|
|
350
|
-
/* @__PURE__ */ N("div", { className:
|
|
350
|
+
/* @__PURE__ */ N("div", { className: r.btnWrapper, children: [
|
|
351
351
|
/* @__PURE__ */ e(
|
|
352
352
|
P,
|
|
353
353
|
{
|
|
354
354
|
as: "button",
|
|
355
355
|
variant: "gray",
|
|
356
|
-
additionalClass:
|
|
356
|
+
additionalClass: r.resetBtn,
|
|
357
357
|
onClick: U,
|
|
358
358
|
children: "Сбросить"
|
|
359
359
|
}
|
|
@@ -362,7 +362,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
362
362
|
P,
|
|
363
363
|
{
|
|
364
364
|
as: "button",
|
|
365
|
-
additionalClass:
|
|
365
|
+
additionalClass: r.saveBtn,
|
|
366
366
|
onClick: Y,
|
|
367
367
|
children: "Сохранить"
|
|
368
368
|
}
|
|
@@ -373,14 +373,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
373
373
|
/* @__PURE__ */ N(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
376
|
-
ref:
|
|
377
|
-
className:
|
|
376
|
+
ref: p,
|
|
377
|
+
className: r.root,
|
|
378
378
|
id: "modal-container",
|
|
379
379
|
onClick: () => {
|
|
380
|
-
O && O(), c(S ? (
|
|
380
|
+
O && O(), c(S ? (o) => !o : !0);
|
|
381
381
|
},
|
|
382
382
|
children: [
|
|
383
|
-
/* @__PURE__ */ e("div", { className:
|
|
383
|
+
/* @__PURE__ */ e("div", { className: r.btnName, children: C }),
|
|
384
384
|
/* @__PURE__ */ e(
|
|
385
385
|
R,
|
|
386
386
|
{
|
|
@@ -388,7 +388,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
388
388
|
size: "16"
|
|
389
389
|
}
|
|
390
390
|
),
|
|
391
|
-
!S && /* @__PURE__ */ e("div", { className: $t(
|
|
391
|
+
!S && /* @__PURE__ */ e("div", { className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: f }), children: /* @__PURE__ */ e($, {}) })
|
|
392
392
|
]
|
|
393
393
|
}
|
|
394
394
|
),
|
|
@@ -398,8 +398,8 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
398
398
|
isOpen: f,
|
|
399
399
|
emitIsOpen: c,
|
|
400
400
|
isTransparentBack: !0,
|
|
401
|
-
additionalClassModalBody:
|
|
402
|
-
additionalClass:
|
|
401
|
+
additionalClassModalBody: r.modalAddBody,
|
|
402
|
+
additionalClass: r.filterWithSaveModal,
|
|
403
403
|
children: /* @__PURE__ */ e($, {})
|
|
404
404
|
}
|
|
405
405
|
)
|
|
@@ -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-DKQEWGp7.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-DKQEWGp7.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-DKQEWGp7.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-DKQEWGp7.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-DKQEWGp7.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";
|