stone-kit 0.0.581 → 0.0.582
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-DKQEWGp7.js → FilterWithSave-PvaQSnmC.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
|
@@ -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 rt = "_root_2bilg_1", ot = "_text_2bilg_18",
|
|
26
|
+
const rt = "_root_2bilg_1", ot = "_text_2bilg_18", st = "_textMini_2bilg_26", nt = "_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", ut = "_mini_2bilg_132", ht = "_isDisabled_2bilg_140", ft = "_grayRow_2bilg_164", p = {
|
|
27
27
|
root: rt,
|
|
28
28
|
text: ot,
|
|
29
|
-
textMini:
|
|
30
|
-
rootCol:
|
|
29
|
+
textMini: st,
|
|
30
|
+
rootCol: nt,
|
|
31
31
|
item: at,
|
|
32
32
|
whiteRow: ct,
|
|
33
33
|
firstItem: lt,
|
|
@@ -36,15 +36,15 @@ const rt = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
|
|
|
36
36
|
isLong: mt,
|
|
37
37
|
autoWidth: _t,
|
|
38
38
|
mini: ut,
|
|
39
|
-
isDisabled:
|
|
40
|
-
grayRow:
|
|
41
|
-
}, I = V.bind(
|
|
42
|
-
children:
|
|
43
|
-
variant:
|
|
39
|
+
isDisabled: ht,
|
|
40
|
+
grayRow: ft
|
|
41
|
+
}, I = V.bind(p), gt = ({
|
|
42
|
+
children: n,
|
|
43
|
+
variant: s = "whiteRow",
|
|
44
44
|
isApart: a = !1,
|
|
45
45
|
addClassName: _ = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: I(
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: I(p.root, p[s], _, { [p.rootCol]: u, [p.apart]: a }), children: n }), G = Z((n, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: _ } = E(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -53,17 +53,17 @@ const rt = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
|
|
|
53
53
|
disabled: O = !1,
|
|
54
54
|
itemsLength: C = 0,
|
|
55
55
|
isLongOn: S = !0,
|
|
56
|
-
width:
|
|
56
|
+
width: h,
|
|
57
57
|
width_m: c,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: m,
|
|
59
59
|
mini: k = !1,
|
|
60
60
|
...y
|
|
61
|
-
} =
|
|
62
|
-
return /* @__PURE__ */ N("label", { className: I({ [
|
|
61
|
+
} = n, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && S, w = (v, b) => v && c ? c : b && m ? m : h, f = !h && !c && !m && x;
|
|
62
|
+
return /* @__PURE__ */ N("label", { className: I({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: s,
|
|
67
67
|
type: "checkbox",
|
|
68
68
|
...y,
|
|
69
69
|
disabled: O
|
|
@@ -75,24 +75,24 @@ const rt = "_root_2bilg_1", ot = "_text_2bilg_18", nt = "_textMini_2bilg_26", st
|
|
|
75
75
|
style: { width: w(a, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
p.item,
|
|
79
|
+
{ [p.firstItem]: u === 0 },
|
|
80
|
+
{ [p.lastItem]: u === C - 1 },
|
|
81
|
+
{ [p.isDisabled]: O },
|
|
82
|
+
{ [p.autoWidth]: f },
|
|
83
|
+
{ [p.mini]: k }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: I(p.text, { [p.textMini]: k }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
G.displayName = "TabSwitcherItem";
|
|
93
93
|
const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
94
|
-
options:
|
|
95
|
-
selectedOption:
|
|
94
|
+
options: n,
|
|
95
|
+
selectedOption: s,
|
|
96
96
|
placeholder: a = "",
|
|
97
97
|
error: _,
|
|
98
98
|
disabled: u,
|
|
@@ -102,14 +102,14 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
102
102
|
mini: O,
|
|
103
103
|
openOnTop: C = !1,
|
|
104
104
|
onClickItem: S,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: h
|
|
106
106
|
}) => {
|
|
107
|
-
const [c,
|
|
107
|
+
const [c, m] = B(!1), k = J(null), { isMobile: y } = E(), { handleBlur: x, getInputValue: w, getOption: f, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
|
-
selectedOption:
|
|
109
|
+
selectedOption: s,
|
|
110
110
|
onClickOption: S,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: m,
|
|
113
113
|
containerRef: k,
|
|
114
114
|
isOpen: c,
|
|
115
115
|
isMobile: y,
|
|
@@ -133,7 +133,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
133
133
|
tabIndex: 0,
|
|
134
134
|
onBlur: x,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
h && h();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ N("div", { className: L(l.inputWrapper), children: [
|
|
@@ -148,7 +148,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
148
148
|
{ [l.selectOptionsDisabled]: u },
|
|
149
149
|
{ [l.selectionOptionMini]: O }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => m(!c)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -164,7 +164,7 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
164
164
|
q,
|
|
165
165
|
{
|
|
166
166
|
isOpen: c,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: m,
|
|
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(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ N("div", { className: l.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => m(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -180,11 +180,11 @@ const T = Object.assign(gt, { Item: G }), L = V.bind(l), vt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: l.mobileOptionList, children:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: l.mobileOptionList, children: n == null ? void 0 : n.map((b) => f(b)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
c && !y && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: C }), children:
|
|
187
|
+
c && !y && /* @__PURE__ */ e("div", { className: L(l.optionsList, { [l.optionListOnTop]: C }), children: n == null ? void 0 : n.map((b) => f(b)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -215,9 +215,9 @@ 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(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,19 +236,19 @@ 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) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
n.exports ? (a.default = a, n.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: n = [],
|
|
251
|
+
tabs: s = [],
|
|
252
252
|
selectOptions: a = [],
|
|
253
253
|
onChange: _,
|
|
254
254
|
selectedValues: u = [],
|
|
@@ -258,30 +258,30 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: S } = E(), [
|
|
262
|
-
if (d && d(o),
|
|
261
|
+
const { isMobile: S } = E(), [h, c] = B(!1), m = J(null), [k, y] = B(i), [x] = B(u), [w, f] = B(k), [v, b] = B(x), Q = (o) => {
|
|
262
|
+
if (d && d(o), n.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
|
b(g);
|
|
266
266
|
}, U = () => {
|
|
267
|
-
y(
|
|
267
|
+
y(s), f(s), b([]), _ && (_([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
|
-
b(u),
|
|
269
|
+
b(u), 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
|
D(() => {
|
|
276
|
-
|
|
277
|
-
}, [
|
|
276
|
+
h || f((o) => JSON.stringify(o) !== JSON.stringify(i) ? i : o);
|
|
277
|
+
}, [h, i]), D(() => {
|
|
278
278
|
const o = (g) => {
|
|
279
|
-
g.stopPropagation(), g.stopImmediatePropagation(),
|
|
279
|
+
g.stopPropagation(), g.stopImmediatePropagation(), !(m.current && m.current.contains(g.target) && g.target !== m.current) && j();
|
|
280
280
|
};
|
|
281
|
-
return
|
|
282
|
-
document.removeEventListener("click", o);
|
|
281
|
+
return h ? document.addEventListener("click", o, { capture: !0 }) : document.removeEventListener("click", o, { capture: !0 }), () => {
|
|
282
|
+
document.removeEventListener("click", o, { capture: !0 });
|
|
283
283
|
};
|
|
284
|
-
}, [
|
|
284
|
+
}, [h]);
|
|
285
285
|
const $ = () => /* @__PURE__ */ N(F, { children: [
|
|
286
286
|
/* @__PURE__ */ e(
|
|
287
287
|
"div",
|
|
@@ -308,20 +308,20 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
308
308
|
variant: "grayRow",
|
|
309
309
|
addClassName: r.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
|
-
children:
|
|
311
|
+
children: s == null ? void 0 : s.map((o, g) => {
|
|
312
312
|
var z;
|
|
313
313
|
const W = o.value;
|
|
314
314
|
return /* @__PURE__ */ e(
|
|
315
315
|
T.Item,
|
|
316
316
|
{
|
|
317
|
-
itemsLength:
|
|
317
|
+
itemsLength: s == null ? void 0 : s.length,
|
|
318
318
|
mini: !0,
|
|
319
319
|
value: W,
|
|
320
320
|
onClick: () => {
|
|
321
321
|
},
|
|
322
322
|
checked: ((z = w == null ? void 0 : w.find((A) => A.value === W)) == null ? void 0 : z.state) ?? !1,
|
|
323
323
|
onChange: () => {
|
|
324
|
-
|
|
324
|
+
f == null || f(
|
|
325
325
|
(A) => A.map((M) => M.value === W ? { ...M, state: !M.state } : M)
|
|
326
326
|
);
|
|
327
327
|
},
|
|
@@ -373,7 +373,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
373
373
|
/* @__PURE__ */ N(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
376
|
-
ref:
|
|
376
|
+
ref: m,
|
|
377
377
|
className: r.root,
|
|
378
378
|
id: "modal-container",
|
|
379
379
|
onClick: () => {
|
|
@@ -388,14 +388,14 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(r), de = ({
|
|
|
388
388
|
size: "16"
|
|
389
389
|
}
|
|
390
390
|
),
|
|
391
|
-
!S && /* @__PURE__ */ e("div", { className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]:
|
|
391
|
+
!S && /* @__PURE__ */ e("div", { className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
|
|
392
392
|
]
|
|
393
393
|
}
|
|
394
394
|
),
|
|
395
395
|
S && /* @__PURE__ */ e(
|
|
396
396
|
q,
|
|
397
397
|
{
|
|
398
|
-
isOpen:
|
|
398
|
+
isOpen: h,
|
|
399
399
|
emitIsOpen: c,
|
|
400
400
|
isTransparentBack: !0,
|
|
401
401
|
additionalClassModalBody: r.modalAddBody,
|
|
@@ -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-PvaQSnmC.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-PvaQSnmC.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-PvaQSnmC.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-PvaQSnmC.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-PvaQSnmC.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";
|