stone-kit 0.0.588 → 0.0.589
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-3eZynMTN.js → FilterWithSave-B9pmfYVO.js} +55 -55
- 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 E } from "./shared/useClientWidth.js";
|
|
20
|
-
import { s as
|
|
20
|
+
import { s as c, u as et } 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";
|
|
@@ -49,23 +49,23 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
|
|
|
49
49
|
index: _,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
|
-
addTextClass:
|
|
52
|
+
addTextClass: d,
|
|
53
53
|
disabled: g = !1,
|
|
54
|
-
itemsLength:
|
|
55
|
-
isLongOn:
|
|
54
|
+
itemsLength: C = 0,
|
|
55
|
+
isLongOn: O = !0,
|
|
56
56
|
width: u,
|
|
57
|
-
width_m:
|
|
57
|
+
width_m: l,
|
|
58
58
|
width_l: h,
|
|
59
|
-
mini:
|
|
60
|
-
...
|
|
61
|
-
} = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) &&
|
|
59
|
+
mini: S = !1,
|
|
60
|
+
...k
|
|
61
|
+
} = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && O, N = (v, W) => v && l ? l : W && h ? h : u, f = !u && !l && !h && x;
|
|
62
62
|
return /* @__PURE__ */ y("label", { className: I({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
66
|
ref: n,
|
|
67
67
|
type: "checkbox",
|
|
68
|
-
...
|
|
68
|
+
...k,
|
|
69
69
|
disabled: g
|
|
70
70
|
}
|
|
71
71
|
),
|
|
@@ -77,20 +77,20 @@ const rt = "_root_2bilg_1", st = "_text_2bilg_18", nt = "_textMini_2bilg_26", ot
|
|
|
77
77
|
I(
|
|
78
78
|
p.item,
|
|
79
79
|
{ [p.firstItem]: _ === 0 },
|
|
80
|
-
{ [p.lastItem]: _ ===
|
|
80
|
+
{ [p.lastItem]: _ === C - 1 },
|
|
81
81
|
{ [p.isDisabled]: g },
|
|
82
82
|
{ [p.autoWidth]: f },
|
|
83
|
-
{ [p.mini]:
|
|
83
|
+
{ [p.mini]: S }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]:
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: S }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
G.displayName = "TabSwitcherItem";
|
|
93
|
-
const T = Object.assign(vt, { Item: G }), L = V.bind(
|
|
93
|
+
const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
94
94
|
options: o,
|
|
95
95
|
selectedOption: n,
|
|
96
96
|
placeholder: a = "",
|
|
@@ -98,24 +98,24 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
98
98
|
disabled: _,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
|
-
onBlur:
|
|
101
|
+
onBlur: d,
|
|
102
102
|
mini: g,
|
|
103
|
-
openOnTop:
|
|
104
|
-
onClickItem:
|
|
103
|
+
openOnTop: C = !1,
|
|
104
|
+
onClickItem: O,
|
|
105
105
|
onCLickSelect: u
|
|
106
106
|
}) => {
|
|
107
|
-
const [
|
|
107
|
+
const [l, h] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: n,
|
|
110
|
-
onClickOption:
|
|
110
|
+
onClickOption: O,
|
|
111
111
|
setSelectedOption: i,
|
|
112
112
|
setIsOpen: h,
|
|
113
|
-
containerRef:
|
|
114
|
-
isOpen:
|
|
115
|
-
isMobile:
|
|
113
|
+
containerRef: S,
|
|
114
|
+
isOpen: l,
|
|
115
|
+
isMobile: k,
|
|
116
116
|
placeholder: a,
|
|
117
117
|
onChange: i,
|
|
118
|
-
onBlur:
|
|
118
|
+
onBlur: d
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
return D(() => (document.addEventListener("click", v), () => {
|
|
@@ -123,11 +123,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
123
123
|
}), []), /* @__PURE__ */ y(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
|
-
ref:
|
|
126
|
+
ref: S,
|
|
127
127
|
className: L(
|
|
128
|
-
|
|
129
|
-
{ [
|
|
130
|
-
{ [
|
|
128
|
+
c.sortSelectWrapper,
|
|
129
|
+
{ [c.sortSelectWrapperError]: m },
|
|
130
|
+
{ [c.sortSelectWrapperTop]: C },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
@@ -136,7 +136,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
136
136
|
u && u();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */ y("div", { className: L(
|
|
139
|
+
/* @__PURE__ */ y("div", { className: L(c.inputWrapper), children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
"input",
|
|
142
142
|
{
|
|
@@ -144,11 +144,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
144
144
|
readOnly: !0,
|
|
145
145
|
value: N(),
|
|
146
146
|
className: L(
|
|
147
|
-
|
|
148
|
-
{ [
|
|
149
|
-
{ [
|
|
147
|
+
c.selectedOptions,
|
|
148
|
+
{ [c.selectOptionsDisabled]: _ },
|
|
149
|
+
{ [c.selectionOptionMini]: g }
|
|
150
150
|
),
|
|
151
|
-
onClick: () => h(!
|
|
151
|
+
onClick: () => h(!l)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -156,21 +156,21 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
156
156
|
{
|
|
157
157
|
name: "twoArrows",
|
|
158
158
|
size: "24",
|
|
159
|
-
additionalClass:
|
|
159
|
+
additionalClass: c.icon
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
|
|
163
|
+
l && k && /* @__PURE__ */ y(
|
|
164
164
|
q,
|
|
165
165
|
{
|
|
166
|
-
isOpen:
|
|
166
|
+
isOpen: l,
|
|
167
167
|
emitIsOpen: h,
|
|
168
|
-
additionalClassModalBody:
|
|
169
|
-
additionalClass:
|
|
168
|
+
additionalClassModalBody: c.modalAddBody,
|
|
169
|
+
additionalClass: c.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */ y("div", { className:
|
|
173
|
+
/* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
175
|
/* @__PURE__ */ e("div", { onClick: () => h(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
@@ -180,11 +180,11 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(l), wt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children: o == null ? void 0 : o.map((W) => f(W)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
|
|
187
|
+
l && !k && /* @__PURE__ */ e("div", { className: L(c.optionsList, { [c.optionListOnTop]: C }), children: o == null ? void 0 : o.map((W) => f(W)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -220,8 +220,8 @@ var K = { exports: {} };
|
|
|
220
220
|
var n = {}.hasOwnProperty;
|
|
221
221
|
function a() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var d = arguments[i];
|
|
224
|
+
d && (t = _(t, m.call(this, d)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
@@ -235,8 +235,8 @@ var K = { exports: {} };
|
|
|
235
235
|
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
|
-
for (var
|
|
239
|
-
n.call(t,
|
|
238
|
+
for (var d in t)
|
|
239
|
+
n.call(t, d) && t[d] && (i = _(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
242
|
function _(t, i) {
|
|
@@ -254,23 +254,23 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
254
254
|
selectedValues: _ = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
|
-
onClickItem:
|
|
257
|
+
onClickItem: d,
|
|
258
258
|
onCLickSelect: g,
|
|
259
|
-
btnName:
|
|
259
|
+
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile:
|
|
262
|
-
if (
|
|
261
|
+
const { isMobile: O } = E(), [u, l] = B(!1), h = J(null), [S, k] = B(i), [x] = B(_), [N, f] = B(S), [v, W] = B(x), Q = (r) => {
|
|
262
|
+
if (d && d(r), o.some((w) => w.value === r.value))
|
|
263
263
|
return;
|
|
264
264
|
const b = v.some((w) => w.value === r.value) ? v.filter((w) => w.value !== r.value) : [...v, r];
|
|
265
265
|
W(b);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
|
|
267
|
+
k(n), f(n), W([]), m && (m([]), t == null || t(n));
|
|
268
268
|
}, X = () => {
|
|
269
269
|
W(_), f(i);
|
|
270
270
|
}, j = () => {
|
|
271
|
-
X(),
|
|
271
|
+
X(), l(!1);
|
|
272
272
|
}, Y = (r) => {
|
|
273
|
-
r.stopPropagation(), m && (t == null || t(N), m(v)),
|
|
273
|
+
r.stopPropagation(), m && (t == null || t(N), m(v)), l(!1);
|
|
274
274
|
};
|
|
275
275
|
D(() => {
|
|
276
276
|
u || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
@@ -376,10 +376,10 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
376
376
|
ref: h,
|
|
377
377
|
className: s.root,
|
|
378
378
|
onClick: () => {
|
|
379
|
-
g && g(),
|
|
379
|
+
g && g(), l(O ? (r) => !r : !0);
|
|
380
380
|
},
|
|
381
381
|
children: [
|
|
382
|
-
/* @__PURE__ */ e("div", { className: s.btnName, children:
|
|
382
|
+
/* @__PURE__ */ e("div", { className: s.btnName, children: C }),
|
|
383
383
|
/* @__PURE__ */ e(
|
|
384
384
|
R,
|
|
385
385
|
{
|
|
@@ -387,15 +387,15 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(s), de = ({
|
|
|
387
387
|
size: "16"
|
|
388
388
|
}
|
|
389
389
|
),
|
|
390
|
-
!
|
|
390
|
+
!O && /* @__PURE__ */ e("div", { className: $t(s.desktopWrapper, { [s.desktopWrapperOpen]: u }), children: /* @__PURE__ */ e($, {}) })
|
|
391
391
|
]
|
|
392
392
|
}
|
|
393
393
|
),
|
|
394
|
-
|
|
394
|
+
O && /* @__PURE__ */ e(
|
|
395
395
|
q,
|
|
396
396
|
{
|
|
397
397
|
isOpen: u,
|
|
398
|
-
emitIsOpen:
|
|
398
|
+
emitIsOpen: l,
|
|
399
399
|
isTransparentBack: !0,
|
|
400
400
|
additionalClassModalBody: s.modalAddBody,
|
|
401
401
|
additionalClass: s.filterWithSaveModal,
|
|
@@ -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-B9pmfYVO.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-B9pmfYVO.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-B9pmfYVO.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-B9pmfYVO.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-B9pmfYVO.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";
|