stone-kit 0.0.559 → 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-7jY9EYl5.js → FilterWithSave-BQJdyJS3.js} +59 -63
- 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
|
|
2
|
-
import { forwardRef as tt, useState as B, useRef as q, useEffect as
|
|
3
|
-
import { NewIcon as
|
|
1
|
+
import { jsxs as W, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as tt, useState as B, useRef as q, useEffect as R } from "react";
|
|
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 = "",
|
|
@@ -118,9 +118,9 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
return
|
|
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
|
{
|
|
@@ -152,7 +152,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
L,
|
|
156
156
|
{
|
|
157
157
|
name: "twoArrows",
|
|
158
158
|
size: "24",
|
|
@@ -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,28 +170,28 @@ 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,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
179
179
|
size: "20"
|
|
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
|
|
249
|
+
const $t = /* @__PURE__ */ et(Et), zt = $t.bind(r), pe = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
251
|
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
@@ -258,37 +258,39 @@ 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(), [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 = () => {
|
|
273
273
|
m && (t == null || t(w), m(y)), o(!1);
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
R(() => {
|
|
276
276
|
h && f(i);
|
|
277
|
-
}, [h])
|
|
277
|
+
}, [h]), R(() => {
|
|
278
|
+
f(i);
|
|
279
|
+
}, [i]);
|
|
278
280
|
const E = (l) => {
|
|
279
281
|
h && !N && u.current && !u.current.contains(l.target) && o(!1);
|
|
280
282
|
};
|
|
281
|
-
|
|
283
|
+
R(() => (document.addEventListener("click", E), () => {
|
|
282
284
|
document.removeEventListener("click", E);
|
|
283
285
|
}), [h]);
|
|
284
|
-
const
|
|
286
|
+
const $ = () => /* @__PURE__ */ W(F, { children: [
|
|
285
287
|
/* @__PURE__ */ e(
|
|
286
288
|
"div",
|
|
287
289
|
{
|
|
288
290
|
className: r.closeBtn,
|
|
289
291
|
onClick: Y,
|
|
290
292
|
children: /* @__PURE__ */ e(
|
|
291
|
-
|
|
293
|
+
L,
|
|
292
294
|
{
|
|
293
295
|
name: "close",
|
|
294
296
|
size: "24"
|
|
@@ -297,29 +299,29 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
297
299
|
}
|
|
298
300
|
),
|
|
299
301
|
/* @__PURE__ */ e("div", { className: r.modalTitle, children: "Фильтры" }),
|
|
300
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ W("div", { className: r.tabSWitcherWrapper, children: [
|
|
301
303
|
/* @__PURE__ */ e("div", { className: r.switcherTitle, children: "Готовность" }),
|
|
302
304
|
/* @__PURE__ */ e("div", { className: r.switcherScroll, children: /* @__PURE__ */ e(
|
|
303
|
-
|
|
305
|
+
T,
|
|
304
306
|
{
|
|
305
307
|
variant: "grayRow",
|
|
306
308
|
addClassName: r.tabs,
|
|
307
309
|
isApart: !0,
|
|
308
310
|
children: s == null ? void 0 : s.map((l, g) => {
|
|
309
|
-
var
|
|
311
|
+
var z;
|
|
310
312
|
const v = l.value;
|
|
311
313
|
return /* @__PURE__ */ e(
|
|
312
|
-
|
|
314
|
+
T.Item,
|
|
313
315
|
{
|
|
314
316
|
itemsLength: s == null ? void 0 : s.length,
|
|
315
317
|
mini: !0,
|
|
316
318
|
value: v,
|
|
317
319
|
onClick: () => {
|
|
318
320
|
},
|
|
319
|
-
checked: ((
|
|
321
|
+
checked: ((z = w == null ? void 0 : w.find((A) => A.value === v)) == null ? void 0 : z.state) ?? !1,
|
|
320
322
|
onChange: () => {
|
|
321
323
|
f == null || f(
|
|
322
|
-
(
|
|
324
|
+
(A) => A.map((I) => I.value === v ? { ...I, state: !I.state } : I)
|
|
323
325
|
);
|
|
324
326
|
},
|
|
325
327
|
index: g,
|
|
@@ -332,27 +334,21 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
332
334
|
}
|
|
333
335
|
) })
|
|
334
336
|
] }),
|
|
335
|
-
/* @__PURE__ */ e(
|
|
336
|
-
|
|
337
|
+
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((l, g) => /* @__PURE__ */ e(
|
|
338
|
+
rt,
|
|
337
339
|
{
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
},
|
|
349
|
-
g
|
|
350
|
-
))
|
|
351
|
-
}
|
|
352
|
-
),
|
|
353
|
-
/* @__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: [
|
|
354
350
|
/* @__PURE__ */ e(
|
|
355
|
-
|
|
351
|
+
P,
|
|
356
352
|
{
|
|
357
353
|
as: "button",
|
|
358
354
|
variant: "gray",
|
|
@@ -362,7 +358,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
362
358
|
}
|
|
363
359
|
),
|
|
364
360
|
/* @__PURE__ */ e(
|
|
365
|
-
|
|
361
|
+
P,
|
|
366
362
|
{
|
|
367
363
|
as: "button",
|
|
368
364
|
additionalClass: r.saveBtn,
|
|
@@ -372,8 +368,8 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
372
368
|
)
|
|
373
369
|
] })
|
|
374
370
|
] });
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */
|
|
371
|
+
return /* @__PURE__ */ W(F, { children: [
|
|
372
|
+
/* @__PURE__ */ W(
|
|
377
373
|
"div",
|
|
378
374
|
{
|
|
379
375
|
className: r.root,
|
|
@@ -384,7 +380,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
384
380
|
children: [
|
|
385
381
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
386
382
|
/* @__PURE__ */ e(
|
|
387
|
-
|
|
383
|
+
L,
|
|
388
384
|
{
|
|
389
385
|
name: "filter",
|
|
390
386
|
size: "16"
|
|
@@ -394,9 +390,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
394
390
|
"div",
|
|
395
391
|
{
|
|
396
392
|
ref: u,
|
|
397
|
-
className:
|
|
393
|
+
className: zt(r.desktopWrapper, { [r.desktopWrapperOpen]: h }),
|
|
398
394
|
onClick: (l) => l.stopPropagation(),
|
|
399
|
-
children: /* @__PURE__ */ e(
|
|
395
|
+
children: /* @__PURE__ */ e($, {})
|
|
400
396
|
}
|
|
401
397
|
)
|
|
402
398
|
]
|
|
@@ -410,13 +406,13 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
410
406
|
isTransparentBack: !0,
|
|
411
407
|
additionalClassModalBody: r.modalAddBody,
|
|
412
408
|
additionalClass: r.filterWithSaveModal,
|
|
413
|
-
children: /* @__PURE__ */ e(
|
|
409
|
+
children: /* @__PURE__ */ e($, {})
|
|
414
410
|
}
|
|
415
411
|
)
|
|
416
412
|
] });
|
|
417
413
|
};
|
|
418
414
|
export {
|
|
419
415
|
pe as F,
|
|
420
|
-
|
|
421
|
-
|
|
416
|
+
T as S,
|
|
417
|
+
Wt as a
|
|
422
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";
|