stone-kit 0.0.576 → 0.0.577
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-mnIFUia7.js → FilterWithSave-Ba5mkwB9.js} +69 -69
- 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
|
@@ -23,11 +23,11 @@ import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
24
24
|
import "./components/FormModal/ui/ModalForm.js";
|
|
25
25
|
import { O as it } from "./Option-CyYM1iBJ.js";
|
|
26
|
-
const ot = "_root_2bilg_1", rt = "_text_2bilg_18",
|
|
26
|
+
const ot = "_root_2bilg_1", rt = "_text_2bilg_18", nt = "_textMini_2bilg_26", st = "_rootCol_2bilg_32", at = "_item_2bilg_38", ct = "_whiteRow_2bilg_57", lt = "_firstItem_2bilg_68", dt = "_lastItem_2bilg_72", pt = "_apart_2bilg_103", mt = "_isLong_2bilg_103", _t = "_autoWidth_2bilg_128", ht = "_mini_2bilg_132", ut = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", m = {
|
|
27
27
|
root: ot,
|
|
28
28
|
text: rt,
|
|
29
|
-
textMini:
|
|
30
|
-
rootCol:
|
|
29
|
+
textMini: nt,
|
|
30
|
+
rootCol: st,
|
|
31
31
|
item: at,
|
|
32
32
|
whiteRow: ct,
|
|
33
33
|
firstItem: lt,
|
|
@@ -38,32 +38,32 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
38
38
|
mini: ht,
|
|
39
39
|
isDisabled: ut,
|
|
40
40
|
grayRow: ft
|
|
41
|
-
}, I = G.bind(
|
|
42
|
-
children:
|
|
43
|
-
variant:
|
|
41
|
+
}, I = G.bind(m), gt = ({
|
|
42
|
+
children: s,
|
|
43
|
+
variant: n = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
|
-
addClassName:
|
|
46
|
-
col:
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(
|
|
48
|
-
const { isTablet: a, isDesktop:
|
|
49
|
-
index:
|
|
45
|
+
addClassName: _ = "",
|
|
46
|
+
col: h = !1
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(m.root, m[n], _, { [m.rootCol]: h, [m.apart]: a }), children: s }), J = Z((s, n) => {
|
|
48
|
+
const { isTablet: a, isDesktop: _ } = E(), {
|
|
49
|
+
index: h,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
52
52
|
addTextClass: d,
|
|
53
53
|
disabled: O = !1,
|
|
54
54
|
itemsLength: x = 0,
|
|
55
55
|
isLongOn: S = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: u,
|
|
57
57
|
width_m: c,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: p,
|
|
59
59
|
mini: k = !1,
|
|
60
60
|
...C
|
|
61
|
-
} =
|
|
62
|
-
return /* @__PURE__ */ b("label", { className: I({ [
|
|
61
|
+
} = s, y = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, N) => v && c ? c : N && p ? p : u, f = !u && !c && !p && y;
|
|
62
|
+
return /* @__PURE__ */ b("label", { className: I({ [m.isLong]: y }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: n,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...C,
|
|
69
69
|
disabled: O
|
|
@@ -72,44 +72,44 @@ const ot = "_root_2bilg_1", rt = "_text_2bilg_18", st = "_textMini_2bilg_26", nt
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width: w(a,
|
|
75
|
+
style: { width: w(a, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
m.item,
|
|
79
|
+
{ [m.firstItem]: h === 0 },
|
|
80
|
+
{ [m.lastItem]: h === x - 1 },
|
|
81
|
+
{ [m.isDisabled]: O },
|
|
82
|
+
{ [m.autoWidth]: f },
|
|
83
|
+
{ [m.mini]: k }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(V, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(V, { className: I(m.text, { [m.textMini]: k }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
|
-
const T = Object.assign(
|
|
94
|
-
options:
|
|
95
|
-
selectedOption:
|
|
93
|
+
const T = Object.assign(gt, { Item: J }), L = G.bind(l), vt = ({
|
|
94
|
+
options: s,
|
|
95
|
+
selectedOption: n,
|
|
96
96
|
placeholder: a = "",
|
|
97
|
-
error:
|
|
98
|
-
disabled:
|
|
97
|
+
error: _,
|
|
98
|
+
disabled: h,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: i,
|
|
101
101
|
onBlur: d,
|
|
102
102
|
mini: O,
|
|
103
103
|
openOnTop: x = !1,
|
|
104
104
|
onClickItem: S,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: u
|
|
106
106
|
}) => {
|
|
107
|
-
const [c,
|
|
107
|
+
const [c, p] = B(!1), k = q(null), { isMobile: C } = E(), { handleBlur: y, getInputValue: w, getOption: f, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
|
-
selectedOption:
|
|
109
|
+
selectedOption: n,
|
|
110
110
|
onClickOption: S,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: p,
|
|
113
113
|
containerRef: k,
|
|
114
114
|
isOpen: c,
|
|
115
115
|
isMobile: C,
|
|
@@ -126,14 +126,14 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
126
126
|
ref: k,
|
|
127
127
|
className: L(
|
|
128
128
|
l.sortSelectWrapper,
|
|
129
|
-
{ [l.sortSelectWrapperError]:
|
|
129
|
+
{ [l.sortSelectWrapperError]: _ },
|
|
130
130
|
{ [l.sortSelectWrapperTop]: x },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: y,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
u && u();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ b("div", { className: L(l.inputWrapper), children: [
|
|
@@ -145,10 +145,10 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
145
145
|
value: w(),
|
|
146
146
|
className: L(
|
|
147
147
|
l.selectedOptions,
|
|
148
|
-
{ [l.selectOptionsDisabled]:
|
|
148
|
+
{ [l.selectOptionsDisabled]: h },
|
|
149
149
|
{ [l.selectionOptionMini]: O }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => p(!c)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -164,7 +164,7 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
164
164
|
H,
|
|
165
165
|
{
|
|
166
166
|
isOpen: c,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: p,
|
|
168
168
|
additionalClassModalBody: l.modalAddBody,
|
|
169
169
|
additionalClass: l.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
@@ -172,7 +172,7 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ b("div", { className: l.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(V, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => p(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
A,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -180,16 +180,16 @@ const T = Object.assign(vt, { Item: J }), L = G.bind(l), gt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: l.mobileOptionList, children:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: l.mobileOptionList, children: s == null ? void 0 : s.map((N) => f(N)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
c && !C && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: x }), children:
|
|
187
|
+
c && !C && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: x }), children: s == null ? void 0 : s.map((N) => f(N)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
192
|
+
vt.displayName = "SortSelect";
|
|
193
193
|
const Wt = "_root_1occg_1", bt = "_filterWithSaveModal_1occg_15", Nt = "_modalAddBody_1occg_20", wt = "_closeBtn_1occg_29", Ot = "_btnName_1occg_35", St = "_modalTitle_1occg_39", kt = "_tabSWitcherWrapper_1occg_48", Ct = "_switcherTitle_1occg_56", xt = "_switcherScroll_1occg_63", yt = "_tabs_1occg_67", Bt = "_selectWrapper_1occg_72", It = "_filterOption_1occg_76", Mt = "_btnWrapper_1occg_83", Lt = "_resetBtn_1occg_89", Rt = "_saveBtn_1occg_90", At = "_desktopWrapper_1occg_94", Dt = "_desktopWrapperOpen_1occg_116", r = {
|
|
194
194
|
root: Wt,
|
|
195
195
|
filterWithSaveModal: bt,
|
|
@@ -215,17 +215,17 @@ var K = { exports: {} };
|
|
|
215
215
|
Licensed under the MIT License (MIT), see
|
|
216
216
|
http://jedwatson.github.io/classnames
|
|
217
217
|
*/
|
|
218
|
-
(function(
|
|
218
|
+
(function(s) {
|
|
219
219
|
(function() {
|
|
220
|
-
var
|
|
220
|
+
var n = {}.hasOwnProperty;
|
|
221
221
|
function a() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
224
|
-
d && (t =
|
|
224
|
+
d && (t = h(t, _.call(this, d)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function _(t) {
|
|
229
229
|
if (typeof t == "string" || typeof t == "number")
|
|
230
230
|
return this && this[t] || t;
|
|
231
231
|
if (typeof t != "object")
|
|
@@ -236,54 +236,54 @@ var K = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
238
238
|
for (var d in t)
|
|
239
|
-
|
|
239
|
+
n.call(t, d) && t[d] && (i = h(i, this && this[d] || d));
|
|
240
240
|
return i;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function h(t, i) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
s.exports ? (a.default = a, s.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
249
|
const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
250
|
-
disabledOptions:
|
|
251
|
-
tabs:
|
|
250
|
+
disabledOptions: s = [],
|
|
251
|
+
tabs: n = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
|
-
onChange:
|
|
254
|
-
selectedValues:
|
|
253
|
+
onChange: _,
|
|
254
|
+
selectedValues: h = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
256
256
|
selectedTabs: i = [],
|
|
257
257
|
onClickItem: d,
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: x = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [
|
|
262
|
-
if (d && d(o),
|
|
261
|
+
const { isMobile: S } = E(), [u, c] = B(!1), p = q(null), [k, C] = B(i), [y] = B(h), [w, f] = B(k), [v, N] = B(y), Q = (o) => {
|
|
262
|
+
if (d && d(o), s.some((W) => W.value === o.value))
|
|
263
263
|
return;
|
|
264
264
|
const g = v.some((W) => W.value === o.value) ? v.filter((W) => W.value !== o.value) : [...v, o];
|
|
265
265
|
N(g);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
C(
|
|
267
|
+
C(n), f(n), N([]), _ && (_([]), t == null || t(n));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
N(
|
|
269
|
+
N(h), f(i);
|
|
270
270
|
}, j = () => {
|
|
271
271
|
X(), c(!1);
|
|
272
272
|
}, Y = () => {
|
|
273
|
-
|
|
273
|
+
_ && (t == null || t(w), _(v)), c(!1);
|
|
274
274
|
};
|
|
275
275
|
R(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
276
|
+
u || f(i);
|
|
277
|
+
}, [u]), R(() => {
|
|
278
278
|
f(i);
|
|
279
279
|
}, [i]), R(() => {
|
|
280
280
|
const o = (g) => {
|
|
281
|
-
|
|
281
|
+
p.current && console.log(p.current.contains(g.target)), !(p.current && p.current.contains(g.target)) && j();
|
|
282
282
|
};
|
|
283
|
-
return
|
|
283
|
+
return u ? document.addEventListener("click", o) : document.removeEventListener("click", o), () => {
|
|
284
284
|
document.removeEventListener("click", o);
|
|
285
285
|
};
|
|
286
|
-
}, [
|
|
286
|
+
}, [u]);
|
|
287
287
|
const $ = () => /* @__PURE__ */ b(z, { children: [
|
|
288
288
|
/* @__PURE__ */ e(
|
|
289
289
|
"div",
|
|
@@ -310,13 +310,13 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
310
310
|
variant: "grayRow",
|
|
311
311
|
addClassName: r.tabs,
|
|
312
312
|
isApart: !0,
|
|
313
|
-
children:
|
|
313
|
+
children: n == null ? void 0 : n.map((o, g) => {
|
|
314
314
|
var P;
|
|
315
315
|
const W = o.value;
|
|
316
316
|
return /* @__PURE__ */ e(
|
|
317
317
|
T.Item,
|
|
318
318
|
{
|
|
319
|
-
itemsLength:
|
|
319
|
+
itemsLength: n == null ? void 0 : n.length,
|
|
320
320
|
mini: !0,
|
|
321
321
|
value: W,
|
|
322
322
|
onClick: () => {
|
|
@@ -375,7 +375,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
375
375
|
/* @__PURE__ */ b(
|
|
376
376
|
"div",
|
|
377
377
|
{
|
|
378
|
-
ref:
|
|
378
|
+
ref: p,
|
|
379
379
|
className: r.root,
|
|
380
380
|
id: "modal-container",
|
|
381
381
|
onClick: (o) => {
|
|
@@ -393,7 +393,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
393
393
|
!S && /* @__PURE__ */ e(
|
|
394
394
|
"div",
|
|
395
395
|
{
|
|
396
|
-
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]:
|
|
396
|
+
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: u }),
|
|
397
397
|
onClick: (o) => o.stopPropagation(),
|
|
398
398
|
children: /* @__PURE__ */ e($, {})
|
|
399
399
|
}
|
|
@@ -404,7 +404,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
404
404
|
S && /* @__PURE__ */ e(
|
|
405
405
|
H,
|
|
406
406
|
{
|
|
407
|
-
isOpen:
|
|
407
|
+
isOpen: u,
|
|
408
408
|
emitIsOpen: c,
|
|
409
409
|
isTransparentBack: !0,
|
|
410
410
|
additionalClassModalBody: r.modalAddBody,
|
|
@@ -417,5 +417,5 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
417
417
|
export {
|
|
418
418
|
de as F,
|
|
419
419
|
T as S,
|
|
420
|
-
|
|
420
|
+
vt as a
|
|
421
421
|
};
|
|
@@ -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-Ba5mkwB9.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-Ba5mkwB9.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-Ba5mkwB9.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-Ba5mkwB9.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-Ba5mkwB9.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";
|