stone-kit 0.0.591 → 0.0.593
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-B2cioBBd.js → FilterWithSave-B3AIQIH9.js} +68 -62
- 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,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useState as B, useRef as J, useEffect as D } from "react";
|
|
3
3
|
import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as q } from "./Modal-BZv6nlLe.js";
|
|
@@ -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 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",
|
|
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", p = {
|
|
27
27
|
root: rt,
|
|
28
28
|
text: st,
|
|
29
29
|
textMini: nt,
|
|
@@ -38,53 +38,53 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
|
|
|
38
38
|
mini: ut,
|
|
39
39
|
isDisabled: ft,
|
|
40
40
|
grayRow: ht
|
|
41
|
-
}, I = V.bind(
|
|
41
|
+
}, I = V.bind(p), vt = ({
|
|
42
42
|
children: a,
|
|
43
43
|
variant: n = "whiteRow",
|
|
44
44
|
isApart: l = !1,
|
|
45
45
|
addClassName: _ = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(p.root, p[n], _, { [p.rootCol]: u, [p.apart]: l }), children: a }), G = Z((a, n) => {
|
|
48
48
|
const { isTablet: l, isDesktop: _ } = E(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: g = !1,
|
|
54
54
|
itemsLength: C = 0,
|
|
55
55
|
isLongOn: O = !0,
|
|
56
56
|
width: f,
|
|
57
57
|
width_m: o,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: m,
|
|
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,
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
} = a, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, b = (v, W) => v && o ? o : W && m ? m : f, h = !f && !o && !m && x;
|
|
62
|
+
return /* @__PURE__ */ y("label", { className: I({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
66
|
ref: n,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...k,
|
|
69
|
-
disabled:
|
|
69
|
+
disabled: g
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width:
|
|
75
|
+
style: { width: b(l, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
p.item,
|
|
79
|
+
{ [p.firstItem]: u === 0 },
|
|
80
|
+
{ [p.lastItem]: u === C - 1 },
|
|
81
|
+
{ [p.isDisabled]: g },
|
|
82
|
+
{ [p.autoWidth]: h },
|
|
83
|
+
{ [p.mini]: S }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: S }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
@@ -99,17 +99,17 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
|
-
mini:
|
|
102
|
+
mini: g,
|
|
103
103
|
openOnTop: C = !1,
|
|
104
104
|
onClickItem: O,
|
|
105
105
|
onCLickSelect: f
|
|
106
106
|
}) => {
|
|
107
|
-
const [o,
|
|
107
|
+
const [o, m] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: b, getOption: h, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
110
|
onClickOption: O,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: m,
|
|
113
113
|
containerRef: S,
|
|
114
114
|
isOpen: o,
|
|
115
115
|
isMobile: k,
|
|
@@ -120,7 +120,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
120
120
|
);
|
|
121
121
|
return D(() => (document.addEventListener("click", v), () => {
|
|
122
122
|
document.removeEventListener("click", v);
|
|
123
|
-
}), []), /* @__PURE__ */
|
|
123
|
+
}), []), /* @__PURE__ */ y(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
126
|
ref: S,
|
|
@@ -136,19 +136,19 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
136
136
|
f && f();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ y("div", { className: L(c.inputWrapper), children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
"input",
|
|
142
142
|
{
|
|
143
143
|
type: "text",
|
|
144
144
|
readOnly: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: b(),
|
|
146
146
|
className: L(
|
|
147
147
|
c.selectedOptions,
|
|
148
148
|
{ [c.selectOptionsDisabled]: u },
|
|
149
|
-
{ [c.selectionOptionMini]:
|
|
149
|
+
{ [c.selectionOptionMini]: g }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => m(!o)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -160,19 +160,19 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
o && k && /* @__PURE__ */
|
|
163
|
+
o && k && /* @__PURE__ */ y(
|
|
164
164
|
q,
|
|
165
165
|
{
|
|
166
166
|
isOpen: o,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: m,
|
|
168
168
|
additionalClassModalBody: c.modalAddBody,
|
|
169
169
|
additionalClass: c.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => m(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -190,12 +190,12 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
wt.displayName = "SortSelect";
|
|
193
|
-
const yt = "_root_1wv7y_1",
|
|
193
|
+
const yt = "_root_1wv7y_1", Wt = "_filterWithSaveModal_1wv7y_15", Nt = "_modalAddBody_1wv7y_20", bt = "_closeBtn_1wv7y_29", gt = "_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
|
-
filterWithSaveModal:
|
|
196
|
-
modalAddBody:
|
|
197
|
-
closeBtn:
|
|
198
|
-
btnName:
|
|
195
|
+
filterWithSaveModal: Wt,
|
|
196
|
+
modalAddBody: Nt,
|
|
197
|
+
closeBtn: bt,
|
|
198
|
+
btnName: gt,
|
|
199
199
|
modalTitle: Ot,
|
|
200
200
|
tabSWitcherWrapper: St,
|
|
201
201
|
switcherTitle: kt,
|
|
@@ -255,14 +255,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
|
-
onCLickSelect:
|
|
258
|
+
onCLickSelect: g,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: O } = E(), [f, o] = B(!1),
|
|
262
|
-
if (d && d(r), a.some((
|
|
261
|
+
const { isMobile: O } = E(), [f, o] = B(!1), m = J(null), [S, k] = B(i), [x] = B(u), [b, h] = B(S), [v, W] = B(x), Q = (r) => {
|
|
262
|
+
if (d && d(r), a.some((w) => w.value === r.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
W(
|
|
264
|
+
const N = v.some((w) => w.value === r.value) ? v.filter((w) => w.value !== r.value) : [...v, r];
|
|
265
|
+
W(N);
|
|
266
266
|
}, U = () => {
|
|
267
267
|
k(n), h(n), W([]), _ && (_([]), t == null || t(n));
|
|
268
268
|
}, X = () => {
|
|
@@ -270,15 +270,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
270
270
|
}, j = () => {
|
|
271
271
|
X(), o(!1);
|
|
272
272
|
}, Y = (r) => {
|
|
273
|
-
r.stopPropagation(), _ && (t == null || t(
|
|
273
|
+
r.stopPropagation(), _ && (t == null || t(b), _(v)), o(!1);
|
|
274
274
|
};
|
|
275
275
|
D(() => {
|
|
276
276
|
f || h((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
277
277
|
}, [f, i]), D(() => {
|
|
278
|
-
const r = (
|
|
279
|
-
if (
|
|
280
|
-
if (
|
|
281
|
-
|
|
278
|
+
const r = (N) => {
|
|
279
|
+
if (m.current) {
|
|
280
|
+
if (m.current.contains(N.target)) {
|
|
281
|
+
N.target === m.current && o(!1);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
j();
|
|
@@ -288,7 +288,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
288
288
|
document.removeEventListener("click", r, { capture: !0 });
|
|
289
289
|
};
|
|
290
290
|
}, [f]);
|
|
291
|
-
const $ = () => /* @__PURE__ */
|
|
291
|
+
const $ = () => /* @__PURE__ */ y(F, { children: [
|
|
292
292
|
/* @__PURE__ */ e(
|
|
293
293
|
"div",
|
|
294
294
|
{
|
|
@@ -306,7 +306,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
308
|
/* @__PURE__ */ e("div", { className: s.modalTitle, children: "Фильтры" }),
|
|
309
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ y("div", { className: s.tabSWitcherWrapper, children: [
|
|
310
310
|
/* @__PURE__ */ e("div", { className: s.switcherTitle, children: "Готовность" }),
|
|
311
311
|
/* @__PURE__ */ e("div", { className: s.switcherScroll, children: /* @__PURE__ */ e(
|
|
312
312
|
T,
|
|
@@ -314,34 +314,34 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
314
314
|
variant: "grayRow",
|
|
315
315
|
addClassName: s.tabs,
|
|
316
316
|
isApart: !0,
|
|
317
|
-
children: n == null ? void 0 : n.map((r,
|
|
317
|
+
children: n == null ? void 0 : n.map((r, N) => {
|
|
318
318
|
var z;
|
|
319
|
-
const
|
|
319
|
+
const w = r.value;
|
|
320
320
|
return /* @__PURE__ */ e(
|
|
321
321
|
T.Item,
|
|
322
322
|
{
|
|
323
323
|
itemsLength: n == null ? void 0 : n.length,
|
|
324
324
|
mini: !0,
|
|
325
|
-
value:
|
|
325
|
+
value: w,
|
|
326
326
|
onClick: () => {
|
|
327
327
|
},
|
|
328
|
-
checked: ((z =
|
|
328
|
+
checked: ((z = b == null ? void 0 : b.find((A) => A.value === w)) == null ? void 0 : z.state) ?? !1,
|
|
329
329
|
onChange: () => {
|
|
330
330
|
h == null || h(
|
|
331
|
-
(A) => A.map((M) => M.value ===
|
|
331
|
+
(A) => A.map((M) => M.value === w ? { ...M, state: !M.state } : M)
|
|
332
332
|
);
|
|
333
333
|
},
|
|
334
|
-
index:
|
|
334
|
+
index: N,
|
|
335
335
|
addItemClassName: s.tabSwitcher,
|
|
336
|
-
children:
|
|
336
|
+
children: w
|
|
337
337
|
},
|
|
338
|
-
|
|
338
|
+
N
|
|
339
339
|
);
|
|
340
340
|
})
|
|
341
341
|
}
|
|
342
342
|
) })
|
|
343
343
|
] }),
|
|
344
|
-
/* @__PURE__ */ e("div", { className: s.selectWrapper, children: l == null ? void 0 : l.map((r,
|
|
344
|
+
/* @__PURE__ */ e("div", { className: s.selectWrapper, children: l == null ? void 0 : l.map((r, N) => /* @__PURE__ */ e(
|
|
345
345
|
it,
|
|
346
346
|
{
|
|
347
347
|
addClassName: s.filterOption,
|
|
@@ -351,9 +351,9 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
351
351
|
option: r,
|
|
352
352
|
handleOptionClick: Q
|
|
353
353
|
},
|
|
354
|
-
|
|
354
|
+
N
|
|
355
355
|
)) }),
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ y("div", { className: s.btnWrapper, children: [
|
|
357
357
|
/* @__PURE__ */ e(
|
|
358
358
|
P,
|
|
359
359
|
{
|
|
@@ -375,14 +375,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
375
375
|
)
|
|
376
376
|
] })
|
|
377
377
|
] });
|
|
378
|
-
return /* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ y(F, { children: [
|
|
379
|
+
/* @__PURE__ */ y(
|
|
380
380
|
"div",
|
|
381
381
|
{
|
|
382
|
-
ref: p,
|
|
383
382
|
className: s.root,
|
|
384
383
|
onClick: () => {
|
|
385
|
-
|
|
384
|
+
g && g(), o(O ? (r) => !r : !0);
|
|
386
385
|
},
|
|
387
386
|
children: [
|
|
388
387
|
/* @__PURE__ */ e("div", { className: s.btnName, children: C }),
|
|
@@ -393,7 +392,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
393
392
|
size: "16"
|
|
394
393
|
}
|
|
395
394
|
),
|
|
396
|
-
!O && /* @__PURE__ */ e(
|
|
395
|
+
!O && /* @__PURE__ */ e(
|
|
396
|
+
"div",
|
|
397
|
+
{
|
|
398
|
+
ref: m,
|
|
399
|
+
className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: f }),
|
|
400
|
+
children: /* @__PURE__ */ e($, {})
|
|
401
|
+
}
|
|
402
|
+
)
|
|
397
403
|
]
|
|
398
404
|
}
|
|
399
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-B3AIQIH9.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-B3AIQIH9.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-B3AIQIH9.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-B3AIQIH9.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-B3AIQIH9.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";
|