stone-kit 0.0.620 → 0.0.621
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-CAABaZ7q.js → FilterWithSave-BPpYpkP5.js} +48 -48
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- 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
|
@@ -17,7 +17,7 @@ import "./components/MetroTag/ui/MetroTag.js";
|
|
|
17
17
|
import "./components/LotCard/ui/LotCard.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
19
|
import { useClientWidth as F } from "./shared/useClientWidth.js";
|
|
20
|
-
import { s as
|
|
20
|
+
import { s as m, u as X } from "./useSortSelect-CjZXLFOG.js";
|
|
21
21
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
@@ -53,12 +53,12 @@ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et =
|
|
|
53
53
|
disabled: v = !1,
|
|
54
54
|
itemsLength: b = 0,
|
|
55
55
|
isLongOn: y = !0,
|
|
56
|
-
width:
|
|
57
|
-
width_m:
|
|
58
|
-
width_l:
|
|
56
|
+
width: p,
|
|
57
|
+
width_m: h,
|
|
58
|
+
width_l: u,
|
|
59
59
|
mini: k = !1,
|
|
60
60
|
...N
|
|
61
|
-
} = s, W = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && y, w = (x, B) => x &&
|
|
61
|
+
} = s, W = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && y, w = (x, B) => x && h ? h : B && u ? u : p, g = !p && !h && !u && W;
|
|
62
62
|
return /* @__PURE__ */ _("label", { className: L({ [f.isLong]: W }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -90,7 +90,7 @@ const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et =
|
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
G.displayName = "TabSwitcherItem";
|
|
93
|
-
const j = Object.assign(pt, { Item: G }), $ = V.bind(
|
|
93
|
+
const j = Object.assign(pt, { Item: G }), $ = V.bind(m), ht = ({
|
|
94
94
|
options: s,
|
|
95
95
|
selectedOption: n,
|
|
96
96
|
placeholder: o = "",
|
|
@@ -102,16 +102,16 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
102
102
|
mini: v,
|
|
103
103
|
openOnTop: b = !1,
|
|
104
104
|
onClickItem: y,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: p
|
|
106
106
|
}) => {
|
|
107
|
-
const [
|
|
107
|
+
const [h, u] = R(!1), k = q(null), { isMobile: N } = F(), { handleBlur: W, getInputValue: w, getOption: g, handleDocumentClick: x } = X(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
110
|
onClickOption: y,
|
|
111
111
|
setSelectedOption: r,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: u,
|
|
113
113
|
containerRef: k,
|
|
114
|
-
isOpen:
|
|
114
|
+
isOpen: h,
|
|
115
115
|
isMobile: N,
|
|
116
116
|
placeholder: o,
|
|
117
117
|
onChange: r,
|
|
@@ -125,18 +125,18 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
125
125
|
{
|
|
126
126
|
ref: k,
|
|
127
127
|
className: $(
|
|
128
|
-
|
|
129
|
-
{ [
|
|
130
|
-
{ [
|
|
128
|
+
m.sortSelectWrapper,
|
|
129
|
+
{ [m.sortSelectWrapperError]: O },
|
|
130
|
+
{ [m.sortSelectWrapperTop]: b },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: W,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
p && p();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */ _("div", { className: $(
|
|
139
|
+
/* @__PURE__ */ _("div", { className: $(m.inputWrapper), children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
"input",
|
|
142
142
|
{
|
|
@@ -144,11 +144,11 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
144
144
|
readOnly: !0,
|
|
145
145
|
value: w(),
|
|
146
146
|
className: $(
|
|
147
|
-
|
|
148
|
-
{ [
|
|
149
|
-
{ [
|
|
147
|
+
m.selectedOptions,
|
|
148
|
+
{ [m.selectOptionsDisabled]: l },
|
|
149
|
+
{ [m.selectionOptionMini]: v }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => u(!h)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -156,23 +156,23 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
156
156
|
{
|
|
157
157
|
name: "twoArrows",
|
|
158
158
|
size: "24",
|
|
159
|
-
additionalClass:
|
|
159
|
+
additionalClass: m.icon
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
|
|
163
|
+
h && N && /* @__PURE__ */ _(
|
|
164
164
|
J,
|
|
165
165
|
{
|
|
166
|
-
isOpen:
|
|
167
|
-
emitIsOpen:
|
|
168
|
-
additionalClassModalBody:
|
|
169
|
-
additionalClass:
|
|
166
|
+
isOpen: h,
|
|
167
|
+
emitIsOpen: u,
|
|
168
|
+
additionalClassModalBody: m.modalAddBody,
|
|
169
|
+
additionalClass: m.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */ _("div", { className:
|
|
173
|
+
/* @__PURE__ */ _("div", { className: m.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
A,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -180,11 +180,11 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: m.mobileOptionList, children: s == null ? void 0 : s.map((B) => g(B)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
|
|
187
|
+
h && !N && /* @__PURE__ */ e("div", { className: $(m.optionsList, { [m.optionListOnTop]: b }), children: s == null ? void 0 : s.map((B) => g(B)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -255,13 +255,13 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
255
255
|
onChange: t,
|
|
256
256
|
setSelectedTabs: r
|
|
257
257
|
}) => {
|
|
258
|
-
const { isMobile: c } = F(), [v, b] = R(!1), y = q(null), [
|
|
259
|
-
if (o && o(a), O.some((
|
|
258
|
+
const { isMobile: c } = F(), [v, b] = R(!1), y = q(null), [p, h] = R(s), [u] = R(n), [k, N] = R(p), [W, w] = R(u), g = (a) => {
|
|
259
|
+
if (o && o(a), O.some((d) => d.value === a.value))
|
|
260
260
|
return;
|
|
261
|
-
const C = W.some((
|
|
261
|
+
const C = W.some((d) => d.value === a.value) ? W.filter((d) => d.value !== a.value) : [...W, a];
|
|
262
262
|
w(C);
|
|
263
263
|
}, x = () => {
|
|
264
|
-
|
|
264
|
+
h(l), N(l), w([]), t && (t([]), r == null || r(l));
|
|
265
265
|
}, B = () => {
|
|
266
266
|
w(n), N(s);
|
|
267
267
|
}, D = () => {
|
|
@@ -275,9 +275,9 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
275
275
|
const a = (C) => {
|
|
276
276
|
if (!y.current)
|
|
277
277
|
return;
|
|
278
|
-
const
|
|
279
|
-
if (y.current.contains(
|
|
280
|
-
return
|
|
278
|
+
const d = C.target;
|
|
279
|
+
if (console.log(d), y.current.contains(d))
|
|
280
|
+
return d.closest("svg"), void 0;
|
|
281
281
|
D();
|
|
282
282
|
};
|
|
283
283
|
return v ? document.addEventListener("click", a) : document.removeEventListener("click", a), () => {
|
|
@@ -311,9 +311,9 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
311
311
|
}) => {
|
|
312
312
|
const {
|
|
313
313
|
handleCloseModal: y,
|
|
314
|
-
localSelectedTabs:
|
|
315
|
-
selectedOptions:
|
|
316
|
-
isMobile:
|
|
314
|
+
localSelectedTabs: p,
|
|
315
|
+
selectedOptions: h,
|
|
316
|
+
isMobile: u,
|
|
317
317
|
handleOptionClick: k,
|
|
318
318
|
handleClearClick: N,
|
|
319
319
|
handleSaveClick: W,
|
|
@@ -356,7 +356,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
356
356
|
addClassName: i.tabs,
|
|
357
357
|
isApart: !0,
|
|
358
358
|
children: n == null ? void 0 : n.map((S, a) => {
|
|
359
|
-
var
|
|
359
|
+
var d;
|
|
360
360
|
const C = S.value;
|
|
361
361
|
return /* @__PURE__ */ e(
|
|
362
362
|
j.Item,
|
|
@@ -366,7 +366,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
366
366
|
value: C,
|
|
367
367
|
onClick: () => {
|
|
368
368
|
},
|
|
369
|
-
checked: ((
|
|
369
|
+
checked: ((d = p == null ? void 0 : p.find((M) => M.value === C)) == null ? void 0 : d.state) ?? !1,
|
|
370
370
|
onChange: () => {
|
|
371
371
|
g == null || g(
|
|
372
372
|
(M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
|
|
@@ -388,7 +388,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
388
388
|
addClassName: i.filterOption,
|
|
389
389
|
disabledOptions: [],
|
|
390
390
|
clickableOptions: [],
|
|
391
|
-
selectedOptions:
|
|
391
|
+
selectedOptions: h,
|
|
392
392
|
option: S,
|
|
393
393
|
handleOptionClick: k
|
|
394
394
|
},
|
|
@@ -423,7 +423,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
423
423
|
{
|
|
424
424
|
className: i.root,
|
|
425
425
|
onClick: () => {
|
|
426
|
-
v && v(),
|
|
426
|
+
v && v(), u ? x((S) => !S) : w || x(!0);
|
|
427
427
|
},
|
|
428
428
|
children: [
|
|
429
429
|
/* @__PURE__ */ e("div", { className: i.btnName, children: b }),
|
|
@@ -437,7 +437,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
437
437
|
]
|
|
438
438
|
}
|
|
439
439
|
),
|
|
440
|
-
!
|
|
440
|
+
!u && /* @__PURE__ */ _(
|
|
441
441
|
"div",
|
|
442
442
|
{
|
|
443
443
|
ref: B,
|
|
@@ -469,7 +469,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
469
469
|
addClassName: i.tabs,
|
|
470
470
|
isApart: !0,
|
|
471
471
|
children: n == null ? void 0 : n.map((S, a) => {
|
|
472
|
-
var
|
|
472
|
+
var d;
|
|
473
473
|
const C = S.value;
|
|
474
474
|
return /* @__PURE__ */ e(
|
|
475
475
|
j.Item,
|
|
@@ -479,7 +479,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
479
479
|
value: C,
|
|
480
480
|
onClick: () => {
|
|
481
481
|
},
|
|
482
|
-
checked: ((
|
|
482
|
+
checked: ((d = p == null ? void 0 : p.find((M) => M.value === C)) == null ? void 0 : d.state) ?? !1,
|
|
483
483
|
onChange: () => {
|
|
484
484
|
g == null || g(
|
|
485
485
|
(M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
|
|
@@ -501,7 +501,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
501
501
|
addClassName: i.filterOption,
|
|
502
502
|
disabledOptions: [],
|
|
503
503
|
clickableOptions: [],
|
|
504
|
-
selectedOptions:
|
|
504
|
+
selectedOptions: h,
|
|
505
505
|
option: S,
|
|
506
506
|
handleOptionClick: k
|
|
507
507
|
},
|
|
@@ -532,7 +532,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
532
532
|
}
|
|
533
533
|
)
|
|
534
534
|
] }),
|
|
535
|
-
|
|
535
|
+
u && /* @__PURE__ */ e(
|
|
536
536
|
J,
|
|
537
537
|
{
|
|
538
538
|
isOpen: w,
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import { u as q } from "../../../FilterWithSave-
|
|
14
|
+
import { u as q } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
4
4
|
import "../../../Modal-BZv6nlLe.js";
|
|
5
5
|
import "../../../Option-8X0Ft_zQ.js";
|
|
6
6
|
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-BPpYpkP5.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-BPpYpkP5.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-BPpYpkP5.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-BPpYpkP5.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";
|