stone-kit 0.0.541 → 0.0.544
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-B2sMXKEL.js → FilterWithSave-CWIwvpXZ.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as W, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as tt, useState as B, useRef as H, useEffect as A } from "react";
|
|
3
3
|
import { NewIcon as R } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as V } from "./Modal-BZv6nlLe.js";
|
|
@@ -23,10 +23,10 @@ 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 rt } from "./Option-CyYM1iBJ.js";
|
|
26
|
-
const st = "_root_2bilg_1",
|
|
26
|
+
const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at = "_rootCol_2bilg_32", lt = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", dt = "_firstItem_2bilg_68", pt = "_lastItem_2bilg_72", mt = "_apart_2bilg_103", _t = "_isLong_2bilg_103", ht = "_autoWidth_2bilg_128", ut = "_mini_2bilg_132", ft = "_isDisabled_2bilg_140", yt = "_grayRow_2bilg_164", p = {
|
|
27
27
|
root: st,
|
|
28
|
-
text:
|
|
29
|
-
textMini:
|
|
28
|
+
text: ot,
|
|
29
|
+
textMini: nt,
|
|
30
30
|
rootCol: at,
|
|
31
31
|
item: lt,
|
|
32
32
|
whiteRow: ct,
|
|
@@ -39,12 +39,12 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
39
39
|
isDisabled: ft,
|
|
40
40
|
grayRow: yt
|
|
41
41
|
}, j = J.bind(p), vt = ({
|
|
42
|
-
children:
|
|
42
|
+
children: n,
|
|
43
43
|
variant: s = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
45
|
addClassName: h = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children:
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children: n }), K = tt((n, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: h } = D(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -58,8 +58,8 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
58
58
|
width_l: _,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...C
|
|
61
|
-
} =
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (y, g) => y && l ? l : g && _ ? _ : m, f = !m && !l && !_ && x;
|
|
62
|
+
return /* @__PURE__ */ W("label", { className: j({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
@@ -72,7 +72,7 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width:
|
|
75
|
+
style: { width: w(a, h) },
|
|
76
76
|
className: j(
|
|
77
77
|
j(
|
|
78
78
|
p.item,
|
|
@@ -91,7 +91,7 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
91
91
|
});
|
|
92
92
|
K.displayName = "TabSwitcherItem";
|
|
93
93
|
const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
94
|
-
options:
|
|
94
|
+
options: n,
|
|
95
95
|
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
97
97
|
error: h,
|
|
@@ -104,7 +104,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
104
104
|
onClickItem: N,
|
|
105
105
|
onCLickSelect: m
|
|
106
106
|
}) => {
|
|
107
|
-
const [l, _] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue:
|
|
107
|
+
const [l, _] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: y } = it(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: N,
|
|
@@ -120,7 +120,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
120
120
|
);
|
|
121
121
|
return A(() => (document.addEventListener("click", y), () => {
|
|
122
122
|
document.removeEventListener("click", y);
|
|
123
|
-
}), []), /* @__PURE__ */
|
|
123
|
+
}), []), /* @__PURE__ */ W(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
126
|
ref: S,
|
|
@@ -136,13 +136,13 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
136
136
|
m && m();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ W("div", { className: M(c.inputWrapper), children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
"input",
|
|
142
142
|
{
|
|
143
143
|
type: "text",
|
|
144
144
|
readOnly: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: w(),
|
|
146
146
|
className: M(
|
|
147
147
|
c.selectedOptions,
|
|
148
148
|
{ [c.selectOptionsDisabled]: u },
|
|
@@ -160,7 +160,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
l && C && /* @__PURE__ */
|
|
163
|
+
l && C && /* @__PURE__ */ W(
|
|
164
164
|
V,
|
|
165
165
|
{
|
|
166
166
|
isOpen: l,
|
|
@@ -170,7 +170,7 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ W("div", { className: c.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(G, { children: "Сортировка" }),
|
|
175
175
|
/* @__PURE__ */ e("div", { onClick: () => _(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
@@ -180,20 +180,20 @@ const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: n == null ? void 0 : n.map((g) => f(g)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
l && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children:
|
|
187
|
+
l && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: n == null ? void 0 : n.map((g) => f(g)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
bt.displayName = "SortSelect";
|
|
193
|
-
const Wt = "_root_j0tyy_1",
|
|
193
|
+
const Wt = "_root_j0tyy_1", gt = "_filterWithSaveModal_j0tyy_15", Nt = "_modalAddBody_j0tyy_20", wt = "_closeBtn_j0tyy_29", Ot = "_btnName_j0tyy_35", St = "_modalTitle_j0tyy_39", Ct = "_tabSWitcherWrapper_j0tyy_48", kt = "_switcherTitle_j0tyy_56", xt = "_switcherScroll_j0tyy_63", Bt = "_tabs_j0tyy_67", jt = "_selectWrapper_j0tyy_72", It = "_filterOption_j0tyy_76", Mt = "_btnWrapper_j0tyy_83", Rt = "_resetBtn_j0tyy_89", Lt = "_saveBtn_j0tyy_90", At = "_desktopWrapper_j0tyy_94", Dt = "_desktopWrapperOpen_j0tyy_116", r = {
|
|
194
194
|
root: Wt,
|
|
195
|
-
filterWithSaveModal:
|
|
196
|
-
modalAddBody:
|
|
195
|
+
filterWithSaveModal: gt,
|
|
196
|
+
modalAddBody: Nt,
|
|
197
197
|
closeBtn: wt,
|
|
198
198
|
btnName: Ot,
|
|
199
199
|
modalTitle: St,
|
|
@@ -215,7 +215,7 @@ var Q = { exports: {} };
|
|
|
215
215
|
Licensed under the MIT License (MIT), see
|
|
216
216
|
http://jedwatson.github.io/classnames
|
|
217
217
|
*/
|
|
218
|
-
(function(
|
|
218
|
+
(function(n) {
|
|
219
219
|
(function() {
|
|
220
220
|
var s = {}.hasOwnProperty;
|
|
221
221
|
function a() {
|
|
@@ -242,12 +242,12 @@ var Q = { exports: {} };
|
|
|
242
242
|
function u(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
|
})(Q);
|
|
248
248
|
var Et = Q.exports;
|
|
249
249
|
const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
250
|
-
disabledOptions:
|
|
250
|
+
disabledOptions: n = [],
|
|
251
251
|
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
253
|
onChange: h,
|
|
@@ -258,33 +258,33 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: N } = D(), [m, l] = B(!1), _ = H(null), [S, C] = B(i), [x] = B(u), [
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: N } = D(), [m, l] = B(!1), _ = H(null), [S, C] = B(i), [x] = B(u), [w, f] = B(S), [y, g] = B(x), U = (o) => {
|
|
262
|
+
if (d && d(o), n.some((b) => b.value === o.value))
|
|
263
263
|
return;
|
|
264
|
-
const
|
|
265
|
-
|
|
264
|
+
const v = y.some((b) => b.value === o.value) ? y.filter((b) => b.value !== o.value) : [...y, o];
|
|
265
|
+
g(v);
|
|
266
266
|
}, X = () => {
|
|
267
|
-
C(s),
|
|
267
|
+
C(s), g([]), h && (h([]), t == null || t(s));
|
|
268
268
|
}, Y = () => {
|
|
269
|
-
|
|
269
|
+
g(u), f(i);
|
|
270
270
|
}, E = () => {
|
|
271
271
|
Y(), l(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
|
-
h && (t == null || t(
|
|
273
|
+
h && (t == null || t(w), h(y)), l(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
276
|
m && f(i);
|
|
277
277
|
}, [m]);
|
|
278
|
-
const T = (
|
|
278
|
+
const T = (o) => {
|
|
279
279
|
if (!m || N)
|
|
280
280
|
return;
|
|
281
|
-
const
|
|
282
|
-
_.current && !_.current.contains(
|
|
281
|
+
const v = o.target;
|
|
282
|
+
_.current && !_.current.contains(v) && o.target !== _.current && E();
|
|
283
283
|
};
|
|
284
284
|
A(() => (m && !N && document.addEventListener("click", T), () => {
|
|
285
285
|
document.removeEventListener("click", T);
|
|
286
286
|
}), [m]);
|
|
287
|
-
const $ = () => /* @__PURE__ */
|
|
287
|
+
const $ = () => /* @__PURE__ */ W(F, { children: [
|
|
288
288
|
/* @__PURE__ */ e(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
@@ -300,7 +300,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
300
300
|
}
|
|
301
301
|
),
|
|
302
302
|
/* @__PURE__ */ e("div", { className: r.modalTitle, children: "Фильтры" }),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ W("div", { className: r.tabSWitcherWrapper, children: [
|
|
304
304
|
/* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
|
|
305
305
|
/* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
|
|
306
306
|
q,
|
|
@@ -308,46 +308,46 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
308
308
|
variant: "grayRow",
|
|
309
309
|
addClassName: r.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
|
-
children: s == null ? void 0 : s.map((
|
|
311
|
+
children: s == null ? void 0 : s.map((o, v) => {
|
|
312
312
|
var z;
|
|
313
|
-
const
|
|
313
|
+
const b = o.value;
|
|
314
314
|
return /* @__PURE__ */ e(
|
|
315
315
|
q.Item,
|
|
316
316
|
{
|
|
317
317
|
itemsLength: s == null ? void 0 : s.length,
|
|
318
318
|
mini: !0,
|
|
319
|
-
value:
|
|
319
|
+
value: b,
|
|
320
320
|
onClick: () => {
|
|
321
321
|
},
|
|
322
|
-
checked: ((z =
|
|
322
|
+
checked: ((z = w == null ? void 0 : w.find((L) => L.value === b)) == null ? void 0 : z.state) ?? !1,
|
|
323
323
|
onChange: () => {
|
|
324
324
|
f == null || f(
|
|
325
|
-
(L) => L.map((I) => I.value ===
|
|
325
|
+
(L) => L.map((I) => I.value === b ? { ...I, state: !I.state } : I)
|
|
326
326
|
);
|
|
327
327
|
},
|
|
328
|
-
index:
|
|
328
|
+
index: v,
|
|
329
329
|
addItemClassName: r.tabSwitcher,
|
|
330
|
-
children:
|
|
330
|
+
children: b
|
|
331
331
|
},
|
|
332
|
-
|
|
332
|
+
v
|
|
333
333
|
);
|
|
334
334
|
})
|
|
335
335
|
}
|
|
336
336
|
) })
|
|
337
337
|
] }),
|
|
338
|
-
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((
|
|
338
|
+
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((o, v) => /* @__PURE__ */ e(
|
|
339
339
|
rt,
|
|
340
340
|
{
|
|
341
341
|
addClassName: r.filterOption,
|
|
342
342
|
disabledOptions: [],
|
|
343
343
|
clickableOptions: [],
|
|
344
344
|
selectedOptions: y,
|
|
345
|
-
option:
|
|
345
|
+
option: o,
|
|
346
346
|
handleOptionClick: U
|
|
347
347
|
},
|
|
348
|
-
|
|
348
|
+
v
|
|
349
349
|
)) }),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ W("div", { className: r.btnWrapper, children: [
|
|
351
351
|
/* @__PURE__ */ e(
|
|
352
352
|
P,
|
|
353
353
|
{
|
|
@@ -369,14 +369,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
369
369
|
)
|
|
370
370
|
] })
|
|
371
371
|
] });
|
|
372
|
-
return /* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
372
|
+
return /* @__PURE__ */ W(F, { children: [
|
|
373
|
+
/* @__PURE__ */ W(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
376
376
|
className: r.root,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
O && O(), l(N ? (n) => !n : !0);
|
|
377
|
+
onClick: (o) => {
|
|
378
|
+
o.stopPropagation(), O && O(), l(N ? (v) => !v : !0);
|
|
380
379
|
},
|
|
381
380
|
children: [
|
|
382
381
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
@@ -390,8 +389,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
390
389
|
/* @__PURE__ */ e(
|
|
391
390
|
"div",
|
|
392
391
|
{
|
|
392
|
+
ref: _,
|
|
393
393
|
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: m }),
|
|
394
|
-
onClick: (
|
|
394
|
+
onClick: (o) => o.stopPropagation(),
|
|
395
395
|
children: /* @__PURE__ */ e($, {})
|
|
396
396
|
}
|
|
397
397
|
)
|
|
@@ -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-CWIwvpXZ.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-CWIwvpXZ.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-CWIwvpXZ.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-CWIwvpXZ.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-CWIwvpXZ.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";
|