stone-kit 0.0.540 → 0.0.542
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-CFM70Jf0.js → FilterWithSave-kue5QxiL.js} +41 -41
- 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,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as b, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as tt, useState as B, useRef as
|
|
1
|
+
import { jsxs as b, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
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
|
-
import { M as
|
|
5
|
-
import { Text as
|
|
6
|
-
import { c as
|
|
7
|
-
import { Button as
|
|
4
|
+
import { M as V } from "./Modal-BZv6nlLe.js";
|
|
5
|
+
import { Text as G } from "./components/Text/ui/Text.js";
|
|
6
|
+
import { c as J, g as et } from "./index-rKuIKazb.js";
|
|
7
|
+
import { Button as P } from "./components/Button/ui/Button.js";
|
|
8
8
|
import "./components/mobileButton/ui/MobileButton.js";
|
|
9
9
|
import "./components/DestinationTab/ui/DestinationTab.js";
|
|
10
10
|
import "./components/RoundButton/ui/RoundButton.js";
|
|
@@ -38,13 +38,13 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
38
38
|
mini: ut,
|
|
39
39
|
isDisabled: ft,
|
|
40
40
|
grayRow: yt
|
|
41
|
-
}, j =
|
|
41
|
+
}, j = J.bind(p), vt = ({
|
|
42
42
|
children: o,
|
|
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: o }),
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children: o }), K = tt((o, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: h } = D(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -84,13 +84,13 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(
|
|
87
|
+
children: /* @__PURE__ */ e(G, { className: j(p.text, { [p.textMini]: S }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
const
|
|
92
|
+
K.displayName = "TabSwitcherItem";
|
|
93
|
+
const q = Object.assign(vt, { Item: K }), M = J.bind(c), bt = ({
|
|
94
94
|
options: o,
|
|
95
95
|
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
@@ -104,7 +104,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
104
104
|
onClickItem: N,
|
|
105
105
|
onCLickSelect: m
|
|
106
106
|
}) => {
|
|
107
|
-
const [l, _] = B(!1), S =
|
|
107
|
+
const [l, _] = B(!1), S = H(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: N,
|
|
@@ -161,7 +161,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
163
|
l && C && /* @__PURE__ */ b(
|
|
164
|
-
|
|
164
|
+
V,
|
|
165
165
|
{
|
|
166
166
|
isOpen: l,
|
|
167
167
|
emitIsOpen: _,
|
|
@@ -171,7 +171,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ b("div", { className: c.mobileSortHeader, children: [
|
|
174
|
-
/* @__PURE__ */ e(
|
|
174
|
+
/* @__PURE__ */ e(G, { children: "Сортировка" }),
|
|
175
175
|
/* @__PURE__ */ e("div", { onClick: () => _(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
177
177
|
{
|
|
@@ -209,7 +209,7 @@ const Wt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", gt = "_modalAd
|
|
|
209
209
|
desktopWrapper: At,
|
|
210
210
|
desktopWrapperOpen: Dt
|
|
211
211
|
};
|
|
212
|
-
var
|
|
212
|
+
var Q = { exports: {} };
|
|
213
213
|
/*!
|
|
214
214
|
Copyright (c) 2018 Jed Watson.
|
|
215
215
|
Licensed under the MIT License (MIT), see
|
|
@@ -244,8 +244,8 @@ var K = { exports: {} };
|
|
|
244
244
|
}
|
|
245
245
|
o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
|
-
})(
|
|
248
|
-
var Et =
|
|
247
|
+
})(Q);
|
|
248
|
+
var Et = Q.exports;
|
|
249
249
|
const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
250
250
|
disabledOptions: o = [],
|
|
251
251
|
tabs: s = [],
|
|
@@ -258,38 +258,38 @@ 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), _ =
|
|
261
|
+
const { isMobile: N } = D(), [m, l] = B(!1), _ = H(null), [S, C] = B(i), [x] = B(u), [g, f] = B(S), [y, W] = B(x), U = (n) => {
|
|
262
262
|
if (d && d(n), o.some((v) => v.value === n.value))
|
|
263
263
|
return;
|
|
264
264
|
const w = y.some((v) => v.value === n.value) ? y.filter((v) => v.value !== n.value) : [...y, n];
|
|
265
265
|
W(w);
|
|
266
|
-
}, U = () => {
|
|
267
|
-
C(s), W([]), h && (h([]), t == null || t(s));
|
|
268
266
|
}, X = () => {
|
|
269
|
-
W(
|
|
267
|
+
C(s), W([]), h && (h([]), t == null || t(s));
|
|
270
268
|
}, Y = () => {
|
|
271
|
-
|
|
269
|
+
W(u), f(i);
|
|
270
|
+
}, E = () => {
|
|
271
|
+
Y(), l(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
273
|
h && (t == null || t(g), h(y)), l(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
276
|
m && f(i);
|
|
277
277
|
}, [m]);
|
|
278
|
-
const
|
|
278
|
+
const T = (n) => {
|
|
279
279
|
if (!m || N)
|
|
280
280
|
return;
|
|
281
281
|
const w = n.target;
|
|
282
|
-
_.current && !_.current.contains(w) &&
|
|
282
|
+
_.current && !_.current.contains(w) && n.target !== _.current && E();
|
|
283
283
|
};
|
|
284
|
-
A(() => (m && !N && document.addEventListener("click",
|
|
285
|
-
document.removeEventListener("click",
|
|
284
|
+
A(() => (m && !N && document.addEventListener("click", T), () => {
|
|
285
|
+
document.removeEventListener("click", T);
|
|
286
286
|
}), [m]);
|
|
287
|
-
const
|
|
287
|
+
const $ = () => /* @__PURE__ */ b(F, { children: [
|
|
288
288
|
/* @__PURE__ */ e(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
291
291
|
className: r.closeBtn,
|
|
292
|
-
onClick:
|
|
292
|
+
onClick: E,
|
|
293
293
|
children: /* @__PURE__ */ e(
|
|
294
294
|
R,
|
|
295
295
|
{
|
|
@@ -303,23 +303,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
303
303
|
/* @__PURE__ */ b("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,
|
|
307
307
|
{
|
|
308
308
|
variant: "grayRow",
|
|
309
309
|
addClassName: r.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
311
|
children: s == null ? void 0 : s.map((n, w) => {
|
|
312
|
-
var
|
|
312
|
+
var z;
|
|
313
313
|
const v = n.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
319
|
value: v,
|
|
320
320
|
onClick: () => {
|
|
321
321
|
},
|
|
322
|
-
checked: ((
|
|
322
|
+
checked: ((z = g == null ? void 0 : g.find((L) => L.value === v)) == null ? void 0 : z.state) ?? !1,
|
|
323
323
|
onChange: () => {
|
|
324
324
|
f == null || f(
|
|
325
325
|
(L) => L.map((I) => I.value === v ? { ...I, state: !I.state } : I)
|
|
@@ -343,23 +343,23 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
343
343
|
clickableOptions: [],
|
|
344
344
|
selectedOptions: y,
|
|
345
345
|
option: n,
|
|
346
|
-
handleOptionClick:
|
|
346
|
+
handleOptionClick: U
|
|
347
347
|
},
|
|
348
348
|
w
|
|
349
349
|
)) }),
|
|
350
350
|
/* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
|
|
351
351
|
/* @__PURE__ */ e(
|
|
352
|
-
|
|
352
|
+
P,
|
|
353
353
|
{
|
|
354
354
|
as: "button",
|
|
355
355
|
variant: "gray",
|
|
356
356
|
additionalClass: r.resetBtn,
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: X,
|
|
358
358
|
children: "Сбросить"
|
|
359
359
|
}
|
|
360
360
|
),
|
|
361
361
|
/* @__PURE__ */ e(
|
|
362
|
-
|
|
362
|
+
P,
|
|
363
363
|
{
|
|
364
364
|
as: "button",
|
|
365
365
|
additionalClass: r.saveBtn,
|
|
@@ -369,7 +369,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
369
369
|
)
|
|
370
370
|
] })
|
|
371
371
|
] });
|
|
372
|
-
return /* @__PURE__ */ b(
|
|
372
|
+
return /* @__PURE__ */ b(F, { children: [
|
|
373
373
|
/* @__PURE__ */ b(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
@@ -392,27 +392,27 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
392
392
|
ref: _,
|
|
393
393
|
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: m }),
|
|
394
394
|
onClick: (n) => n.stopPropagation(),
|
|
395
|
-
children: /* @__PURE__ */ e(
|
|
395
|
+
children: /* @__PURE__ */ e($, {})
|
|
396
396
|
}
|
|
397
397
|
)
|
|
398
398
|
]
|
|
399
399
|
}
|
|
400
400
|
),
|
|
401
401
|
N && /* @__PURE__ */ e(
|
|
402
|
-
|
|
402
|
+
V,
|
|
403
403
|
{
|
|
404
404
|
isOpen: m,
|
|
405
405
|
emitIsOpen: l,
|
|
406
406
|
isTransparentBack: !0,
|
|
407
407
|
additionalClassModalBody: r.modalAddBody,
|
|
408
408
|
additionalClass: r.filterWithSaveModal,
|
|
409
|
-
children: /* @__PURE__ */ e(
|
|
409
|
+
children: /* @__PURE__ */ e($, {})
|
|
410
410
|
}
|
|
411
411
|
)
|
|
412
412
|
] });
|
|
413
413
|
};
|
|
414
414
|
export {
|
|
415
415
|
pe as F,
|
|
416
|
-
|
|
416
|
+
q as S,
|
|
417
417
|
bt as a
|
|
418
418
|
};
|
|
@@ -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-kue5QxiL.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-kue5QxiL.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-kue5QxiL.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-kue5QxiL.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-kue5QxiL.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";
|