stone-kit 0.0.560 → 0.0.561
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-JB10JJkz.js → FilterWithSave-BQJdyJS3.js} +45 -50
- 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
|
|
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 q, useEffect as R } from "react";
|
|
3
3
|
import { NewIcon as L } from "./components/NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { M as H } from "./Modal-BZv6nlLe.js";
|
|
5
5
|
import { Text as V } from "./components/Text/ui/Text.js";
|
|
6
6
|
import { c as G, g as et } from "./index-rKuIKazb.js";
|
|
7
|
-
import { Button as
|
|
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";
|
|
@@ -58,8 +58,8 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
58
58
|
width_l: u,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...C
|
|
61
|
-
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (y,
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, w = (y, b) => y && o ? o : b && u ? u : h, f = !h && !o && !u && x;
|
|
62
|
+
return /* @__PURE__ */ W("label", { className: j({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
@@ -90,7 +90,7 @@ const st = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", at
|
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
|
-
const
|
|
93
|
+
const T = Object.assign(vt, { Item: J }), M = G.bind(c), Wt = ({
|
|
94
94
|
options: n,
|
|
95
95
|
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
@@ -120,7 +120,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
120
120
|
);
|
|
121
121
|
return R(() => (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,7 +136,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
136
136
|
h && h();
|
|
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
|
{
|
|
@@ -160,7 +160,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
o && C && /* @__PURE__ */
|
|
163
|
+
o && C && /* @__PURE__ */ W(
|
|
164
164
|
H,
|
|
165
165
|
{
|
|
166
166
|
isOpen: o,
|
|
@@ -170,7 +170,7 @@ const P = Object.assign(vt, { Item: J }), M = G.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(V, { children: "Сортировка" }),
|
|
175
175
|
/* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
L,
|
|
@@ -180,18 +180,18 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: n == null ? void 0 : n.map((
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: n == null ? void 0 : n.map((b) => f(b)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
o && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: n == null ? void 0 : n.map((
|
|
187
|
+
o && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: n == null ? void 0 : n.map((b) => f(b)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
root:
|
|
192
|
+
Wt.displayName = "SortSelect";
|
|
193
|
+
const bt = "_root_j0tyy_1", Nt = "_filterWithSaveModal_j0tyy_15", wt = "_modalAddBody_j0tyy_20", gt = "_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
|
+
root: bt,
|
|
195
195
|
filterWithSaveModal: Nt,
|
|
196
196
|
modalAddBody: wt,
|
|
197
197
|
closeBtn: gt,
|
|
@@ -246,7 +246,7 @@ var K = { exports: {} };
|
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
|
-
const $t = /* @__PURE__ */ et(Et),
|
|
249
|
+
const $t = /* @__PURE__ */ et(Et), zt = $t.bind(r), pe = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
251
|
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
@@ -258,15 +258,15 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [w, f] = B(S), [y,
|
|
261
|
+
const { isMobile: N } = D(), [h, o] = B(!1), u = q(null), [S, C] = B(i), [x] = B(_), [w, f] = B(S), [y, b] = B(x), Q = (l) => {
|
|
262
262
|
if (d && d(l), n.some((v) => v.value === l.value))
|
|
263
263
|
return;
|
|
264
264
|
const g = y.some((v) => v.value === l.value) ? y.filter((v) => v.value !== l.value) : [...y, l];
|
|
265
|
-
|
|
265
|
+
b(g);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
C(s),
|
|
267
|
+
C(s), b([]), m && (m([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
|
|
269
|
+
b(_), f(i);
|
|
270
270
|
}, Y = () => {
|
|
271
271
|
X(), o(!1);
|
|
272
272
|
}, Z = () => {
|
|
@@ -275,6 +275,7 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
275
275
|
R(() => {
|
|
276
276
|
h && f(i);
|
|
277
277
|
}, [h]), R(() => {
|
|
278
|
+
f(i);
|
|
278
279
|
}, [i]);
|
|
279
280
|
const E = (l) => {
|
|
280
281
|
h && !N && u.current && !u.current.contains(l.target) && o(!1);
|
|
@@ -282,7 +283,7 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
282
283
|
R(() => (document.addEventListener("click", E), () => {
|
|
283
284
|
document.removeEventListener("click", E);
|
|
284
285
|
}), [h]);
|
|
285
|
-
const $ = () => /* @__PURE__ */
|
|
286
|
+
const $ = () => /* @__PURE__ */ W(F, { children: [
|
|
286
287
|
/* @__PURE__ */ e(
|
|
287
288
|
"div",
|
|
288
289
|
{
|
|
@@ -298,26 +299,26 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
298
299
|
}
|
|
299
300
|
),
|
|
300
301
|
/* @__PURE__ */ e("div", { className: r.modalTitle, children: "Фильтры" }),
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ W("div", { className: r.tabSWitcherWrapper, children: [
|
|
302
303
|
/* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
|
|
303
304
|
/* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
|
|
304
|
-
|
|
305
|
+
T,
|
|
305
306
|
{
|
|
306
307
|
variant: "grayRow",
|
|
307
308
|
addClassName: r.tabs,
|
|
308
309
|
isApart: !0,
|
|
309
310
|
children: s == null ? void 0 : s.map((l, g) => {
|
|
310
|
-
var
|
|
311
|
+
var z;
|
|
311
312
|
const v = l.value;
|
|
312
313
|
return /* @__PURE__ */ e(
|
|
313
|
-
|
|
314
|
+
T.Item,
|
|
314
315
|
{
|
|
315
316
|
itemsLength: s == null ? void 0 : s.length,
|
|
316
317
|
mini: !0,
|
|
317
318
|
value: v,
|
|
318
319
|
onClick: () => {
|
|
319
320
|
},
|
|
320
|
-
checked: ((
|
|
321
|
+
checked: ((z = w == null ? void 0 : w.find((A) => A.value === v)) == null ? void 0 : z.state) ?? !1,
|
|
321
322
|
onChange: () => {
|
|
322
323
|
f == null || f(
|
|
323
324
|
(A) => A.map((I) => I.value === v ? { ...I, state: !I.state } : I)
|
|
@@ -333,27 +334,21 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
333
334
|
}
|
|
334
335
|
) })
|
|
335
336
|
] }),
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
|
|
337
|
+
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((l, g) => /* @__PURE__ */ e(
|
|
338
|
+
rt,
|
|
338
339
|
{
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
},
|
|
350
|
-
g
|
|
351
|
-
))
|
|
352
|
-
}
|
|
353
|
-
),
|
|
354
|
-
/* @__PURE__ */ b("div", { className: r.btnWrapper, children: [
|
|
340
|
+
addClassName: r.filterOption,
|
|
341
|
+
disabledOptions: [],
|
|
342
|
+
clickableOptions: [],
|
|
343
|
+
selectedOptions: y,
|
|
344
|
+
option: l,
|
|
345
|
+
handleOptionClick: Q
|
|
346
|
+
},
|
|
347
|
+
g
|
|
348
|
+
)) }),
|
|
349
|
+
/* @__PURE__ */ W("div", { className: r.btnWrapper, children: [
|
|
355
350
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
351
|
+
P,
|
|
357
352
|
{
|
|
358
353
|
as: "button",
|
|
359
354
|
variant: "gray",
|
|
@@ -363,7 +358,7 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
363
358
|
}
|
|
364
359
|
),
|
|
365
360
|
/* @__PURE__ */ e(
|
|
366
|
-
|
|
361
|
+
P,
|
|
367
362
|
{
|
|
368
363
|
as: "button",
|
|
369
364
|
additionalClass: r.saveBtn,
|
|
@@ -373,8 +368,8 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
373
368
|
)
|
|
374
369
|
] })
|
|
375
370
|
] });
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
/* @__PURE__ */
|
|
371
|
+
return /* @__PURE__ */ W(F, { children: [
|
|
372
|
+
/* @__PURE__ */ W(
|
|
378
373
|
"div",
|
|
379
374
|
{
|
|
380
375
|
className: r.root,
|
|
@@ -395,7 +390,7 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
395
390
|
"div",
|
|
396
391
|
{
|
|
397
392
|
ref: u,
|
|
398
|
-
className:
|
|
393
|
+
className: zt(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
|
|
399
394
|
onClick: (l) => l.stopPropagation(),
|
|
400
395
|
children: /* @__PURE__ */ e($, {})
|
|
401
396
|
}
|
|
@@ -418,6 +413,6 @@ const $t = /* @__PURE__ */ et(Et), Tt = $t.bind(r), pe = ({
|
|
|
418
413
|
};
|
|
419
414
|
export {
|
|
420
415
|
pe as F,
|
|
421
|
-
|
|
422
|
-
|
|
416
|
+
T as S,
|
|
417
|
+
Wt as a
|
|
423
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-BQJdyJS3.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-BQJdyJS3.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-BQJdyJS3.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-BQJdyJS3.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-BQJdyJS3.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";
|