stone-kit 0.0.574 → 0.0.575
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-usSqjx95.js → FilterWithSave-BqHoaJ28.js} +34 -32
- 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
|
|
1
|
+
import { jsxs as b, jsx as e, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useState as B, useRef as q, useEffect as L } from "react";
|
|
3
3
|
import { NewIcon as A } 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 tt } from "./index-rKuIKazb.js";
|
|
7
|
-
import { Button as
|
|
7
|
+
import { Button as F } 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";
|
|
@@ -40,11 +40,11 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
40
40
|
grayRow: ft
|
|
41
41
|
}, I = G.bind(m), gt = ({
|
|
42
42
|
children: n,
|
|
43
|
-
variant:
|
|
43
|
+
variant: s = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
45
|
addClassName: h = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[s], h, { [m.rootCol]: u, [m.apart]: a }), children: n }), J = Z((n, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: h } = E(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -63,7 +63,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: s,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...k,
|
|
69
69
|
disabled: O
|
|
@@ -92,7 +92,7 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
93
|
const T = Object.assign(gt, { Item: J }), R = G.bind(c), vt = ({
|
|
94
94
|
options: n,
|
|
95
|
-
selectedOption:
|
|
95
|
+
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
97
97
|
error: h,
|
|
98
98
|
disabled: u,
|
|
@@ -106,7 +106,7 @@ const T = Object.assign(gt, { Item: J }), R = G.bind(c), vt = ({
|
|
|
106
106
|
}) => {
|
|
107
107
|
const [l, f] = B(!1), C = q(null), { isMobile: k } = E(), { handleBlur: y, getInputValue: w, getOption: g, handleDocumentClick: W } = et(
|
|
108
108
|
{
|
|
109
|
-
selectedOption:
|
|
109
|
+
selectedOption: s,
|
|
110
110
|
onClickOption: S,
|
|
111
111
|
setSelectedOption: i,
|
|
112
112
|
setIsOpen: f,
|
|
@@ -217,7 +217,7 @@ var K = { exports: {} };
|
|
|
217
217
|
*/
|
|
218
218
|
(function(n) {
|
|
219
219
|
(function() {
|
|
220
|
-
var
|
|
220
|
+
var s = {}.hasOwnProperty;
|
|
221
221
|
function a() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
@@ -236,7 +236,7 @@ var K = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
|
|
239
|
+
s.call(t, d) && t[d] && (i = u(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
242
|
function u(t, i) {
|
|
@@ -248,7 +248,7 @@ var K = { exports: {} };
|
|
|
248
248
|
var Et = K.exports;
|
|
249
249
|
const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
250
250
|
disabledOptions: n = [],
|
|
251
|
-
tabs:
|
|
251
|
+
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
253
|
onChange: h,
|
|
254
254
|
selectedValues: u = [],
|
|
@@ -258,13 +258,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: x = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [v, l] = B(!1), f = q(null), [C, k] = B(i), [y] = B(u), [w, g] = B(C), [W, N] = B(y), Q = (
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: S } = E(), [v, l] = B(!1), f = q(null), [C, k] = B(i), [y] = B(u), [w, g] = B(C), [W, N] = B(y), Q = (r) => {
|
|
262
|
+
if (d && d(r), n.some((_) => _.value === r.value))
|
|
263
263
|
return;
|
|
264
|
-
const p = W.some((_) => _.value ===
|
|
264
|
+
const p = W.some((_) => _.value === r.value) ? W.filter((_) => _.value !== r.value) : [...W, r];
|
|
265
265
|
N(p);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
k(
|
|
267
|
+
k(s), g(s), N([]), h && (h([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
269
|
N(u), g(i);
|
|
270
270
|
}, j = () => {
|
|
@@ -277,20 +277,22 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
277
277
|
}, [v]), L(() => {
|
|
278
278
|
g(i);
|
|
279
279
|
}, [i]), L(() => {
|
|
280
|
-
const
|
|
280
|
+
const r = (p) => {
|
|
281
281
|
var _;
|
|
282
282
|
console.log(p.target.closest("div")), console.log((_ = p == null ? void 0 : p.target) == null ? void 0 : _.closest("#id")), f.current && !f.current.contains(p.target) && j();
|
|
283
283
|
};
|
|
284
|
-
return document.addEventListener("click",
|
|
285
|
-
document.removeEventListener("click",
|
|
284
|
+
return document.addEventListener("click", r), () => {
|
|
285
|
+
document.removeEventListener("click", r);
|
|
286
286
|
};
|
|
287
287
|
}, [v]);
|
|
288
|
-
const $ = () => /* @__PURE__ */ b(
|
|
288
|
+
const $ = () => /* @__PURE__ */ b(z, { children: [
|
|
289
289
|
/* @__PURE__ */ e(
|
|
290
290
|
"div",
|
|
291
291
|
{
|
|
292
292
|
className: o.closeBtn,
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: (r) => {
|
|
294
|
+
r.stopPropagation(), j();
|
|
295
|
+
},
|
|
294
296
|
children: /* @__PURE__ */ e(
|
|
295
297
|
A,
|
|
296
298
|
{
|
|
@@ -309,18 +311,18 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
309
311
|
variant: "grayRow",
|
|
310
312
|
addClassName: o.tabs,
|
|
311
313
|
isApart: !0,
|
|
312
|
-
children:
|
|
313
|
-
var
|
|
314
|
-
const _ =
|
|
314
|
+
children: s == null ? void 0 : s.map((r, p) => {
|
|
315
|
+
var P;
|
|
316
|
+
const _ = r.value;
|
|
315
317
|
return /* @__PURE__ */ e(
|
|
316
318
|
T.Item,
|
|
317
319
|
{
|
|
318
|
-
itemsLength:
|
|
320
|
+
itemsLength: s == null ? void 0 : s.length,
|
|
319
321
|
mini: !0,
|
|
320
322
|
value: _,
|
|
321
323
|
onClick: () => {
|
|
322
324
|
},
|
|
323
|
-
checked: ((
|
|
325
|
+
checked: ((P = w == null ? void 0 : w.find((D) => D.value === _)) == null ? void 0 : P.state) ?? !1,
|
|
324
326
|
onChange: () => {
|
|
325
327
|
g == null || g(
|
|
326
328
|
(D) => D.map((M) => M.value === _ ? { ...M, state: !M.state } : M)
|
|
@@ -336,21 +338,21 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
336
338
|
}
|
|
337
339
|
) })
|
|
338
340
|
] }),
|
|
339
|
-
/* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((
|
|
341
|
+
/* @__PURE__ */ e("div", { className: o.selectWrapper, children: a == null ? void 0 : a.map((r, p) => /* @__PURE__ */ e(
|
|
340
342
|
it,
|
|
341
343
|
{
|
|
342
344
|
addClassName: o.filterOption,
|
|
343
345
|
disabledOptions: [],
|
|
344
346
|
clickableOptions: [],
|
|
345
347
|
selectedOptions: W,
|
|
346
|
-
option:
|
|
348
|
+
option: r,
|
|
347
349
|
handleOptionClick: Q
|
|
348
350
|
},
|
|
349
351
|
p
|
|
350
352
|
)) }),
|
|
351
353
|
/* @__PURE__ */ b("div", { className: o.btnWrapper, children: [
|
|
352
354
|
/* @__PURE__ */ e(
|
|
353
|
-
|
|
355
|
+
F,
|
|
354
356
|
{
|
|
355
357
|
as: "button",
|
|
356
358
|
variant: "gray",
|
|
@@ -360,7 +362,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
360
362
|
}
|
|
361
363
|
),
|
|
362
364
|
/* @__PURE__ */ e(
|
|
363
|
-
|
|
365
|
+
F,
|
|
364
366
|
{
|
|
365
367
|
as: "button",
|
|
366
368
|
additionalClass: o.saveBtn,
|
|
@@ -370,15 +372,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
370
372
|
)
|
|
371
373
|
] })
|
|
372
374
|
] });
|
|
373
|
-
return /* @__PURE__ */ b(
|
|
375
|
+
return /* @__PURE__ */ b(z, { children: [
|
|
374
376
|
/* @__PURE__ */ b(
|
|
375
377
|
"div",
|
|
376
378
|
{
|
|
377
379
|
ref: f,
|
|
378
380
|
className: o.root,
|
|
379
381
|
id: "modal-container",
|
|
380
|
-
onClick: (
|
|
381
|
-
|
|
382
|
+
onClick: (r) => {
|
|
383
|
+
r.stopPropagation(), O && O(), l(S ? (p) => !p : !0);
|
|
382
384
|
},
|
|
383
385
|
children: [
|
|
384
386
|
/* @__PURE__ */ e("div", { className: o.btnName, children: x }),
|
|
@@ -393,7 +395,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(o), de = ({
|
|
|
393
395
|
"div",
|
|
394
396
|
{
|
|
395
397
|
className: $t(o.desktopWrapper, { [o.desktopWrapperOpen]: v }),
|
|
396
|
-
onClick: (
|
|
398
|
+
onClick: (r) => r.stopPropagation(),
|
|
397
399
|
children: /* @__PURE__ */ e($, {})
|
|
398
400
|
}
|
|
399
401
|
)
|
|
@@ -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-BqHoaJ28.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-BqHoaJ28.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-BqHoaJ28.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-BqHoaJ28.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-BqHoaJ28.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";
|