stone-kit 0.0.539 → 0.0.540
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-B58Qdx_-.js → FilterWithSave-CFM70Jf0.js} +38 -38
- 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
|
@@ -39,13 +39,13 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
39
39
|
isDisabled: ft,
|
|
40
40
|
grayRow: yt
|
|
41
41
|
}, j = G.bind(p), vt = ({
|
|
42
|
-
children:
|
|
42
|
+
children: o,
|
|
43
43
|
variant: s = "whiteRow",
|
|
44
|
-
isApart:
|
|
44
|
+
isApart: a = !1,
|
|
45
45
|
addClassName: h = "",
|
|
46
46
|
col: u = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]:
|
|
48
|
-
const { isTablet:
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: j(p.root, p[s], h, { [p.rootCol]: u, [p.apart]: a }), children: o }), J = tt((o, s) => {
|
|
48
|
+
const { isTablet: a, isDesktop: h } = D(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: i,
|
|
@@ -54,11 +54,11 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
54
54
|
itemsLength: k = 0,
|
|
55
55
|
isLongOn: N = !0,
|
|
56
56
|
width: m,
|
|
57
|
-
width_m:
|
|
57
|
+
width_m: l,
|
|
58
58
|
width_l: _,
|
|
59
59
|
mini: S = !1,
|
|
60
60
|
...C
|
|
61
|
-
} =
|
|
61
|
+
} = o, x = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && N, g = (y, W) => y && l ? l : W && _ ? _ : m, f = !m && !l && !_ && x;
|
|
62
62
|
return /* @__PURE__ */ b("label", { className: j({ [p.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
@@ -72,7 +72,7 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width: g(
|
|
75
|
+
style: { width: g(a, h) },
|
|
76
76
|
className: j(
|
|
77
77
|
j(
|
|
78
78
|
p.item,
|
|
@@ -91,9 +91,9 @@ const st = "_root_2bilg_1", nt = "_text_2bilg_18", ot = "_textMini_2bilg_26", at
|
|
|
91
91
|
});
|
|
92
92
|
J.displayName = "TabSwitcherItem";
|
|
93
93
|
const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
94
|
-
options:
|
|
94
|
+
options: o,
|
|
95
95
|
selectedOption: s,
|
|
96
|
-
placeholder:
|
|
96
|
+
placeholder: a = "",
|
|
97
97
|
error: h,
|
|
98
98
|
disabled: u,
|
|
99
99
|
additionalClass: t = "",
|
|
@@ -104,16 +104,16 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
104
104
|
onClickItem: N,
|
|
105
105
|
onCLickSelect: m
|
|
106
106
|
}) => {
|
|
107
|
-
const [
|
|
107
|
+
const [l, _] = B(!1), S = q(null), { isMobile: C } = D(), { handleBlur: x, getInputValue: g, getOption: f, handleDocumentClick: y } = it(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: N,
|
|
111
111
|
setSelectedOption: i,
|
|
112
112
|
setIsOpen: _,
|
|
113
113
|
containerRef: S,
|
|
114
|
-
isOpen:
|
|
114
|
+
isOpen: l,
|
|
115
115
|
isMobile: C,
|
|
116
|
-
placeholder:
|
|
116
|
+
placeholder: a,
|
|
117
117
|
onChange: i,
|
|
118
118
|
onBlur: d
|
|
119
119
|
}
|
|
@@ -148,7 +148,7 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
148
148
|
{ [c.selectOptionsDisabled]: u },
|
|
149
149
|
{ [c.selectionOptionMini]: O }
|
|
150
150
|
),
|
|
151
|
-
onClick: () => _(!
|
|
151
|
+
onClick: () => _(!l)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -160,10 +160,10 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
|
|
163
|
+
l && C && /* @__PURE__ */ b(
|
|
164
164
|
H,
|
|
165
165
|
{
|
|
166
|
-
isOpen:
|
|
166
|
+
isOpen: l,
|
|
167
167
|
emitIsOpen: _,
|
|
168
168
|
additionalClassModalBody: c.modalAddBody,
|
|
169
169
|
additionalClass: c.selectModal,
|
|
@@ -180,11 +180,11 @@ const P = Object.assign(vt, { Item: J }), M = G.bind(c), bt = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className: c.mobileOptionList, children:
|
|
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 && !C && /* @__PURE__ */ e("div", { className: M(c.optionsList, { [c.optionListOnTop]: k }), children: o == null ? void 0 : o.map((W) => f(W)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
@@ -215,10 +215,10 @@ 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(o) {
|
|
219
219
|
(function() {
|
|
220
220
|
var s = {}.hasOwnProperty;
|
|
221
|
-
function
|
|
221
|
+
function a() {
|
|
222
222
|
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
223
223
|
var d = arguments[i];
|
|
224
224
|
d && (t = u(t, h.call(this, d)));
|
|
@@ -231,7 +231,7 @@ var K = { exports: {} };
|
|
|
231
231
|
if (typeof t != "object")
|
|
232
232
|
return "";
|
|
233
233
|
if (Array.isArray(t))
|
|
234
|
-
return
|
|
234
|
+
return a.apply(this, t);
|
|
235
235
|
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
236
236
|
return t.toString();
|
|
237
237
|
var i = "";
|
|
@@ -242,14 +242,14 @@ var K = { exports: {} };
|
|
|
242
242
|
function u(t, i) {
|
|
243
243
|
return i ? t ? t + " " + i : t + i : t;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
o.exports ? (a.default = a, o.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
247
|
})(K);
|
|
248
248
|
var Et = K.exports;
|
|
249
249
|
const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
250
|
-
disabledOptions:
|
|
250
|
+
disabledOptions: o = [],
|
|
251
251
|
tabs: s = [],
|
|
252
|
-
selectOptions:
|
|
252
|
+
selectOptions: a = [],
|
|
253
253
|
onChange: h,
|
|
254
254
|
selectedValues: u = [],
|
|
255
255
|
setSelectedTabs: t,
|
|
@@ -258,28 +258,28 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
258
258
|
onCLickSelect: O,
|
|
259
259
|
btnName: k = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: N } = D(), [m,
|
|
262
|
-
if (d && d(
|
|
261
|
+
const { isMobile: N } = D(), [m, l] = B(!1), _ = q(null), [S, C] = B(i), [x] = B(u), [g, f] = B(S), [y, W] = B(x), Q = (n) => {
|
|
262
|
+
if (d && d(n), o.some((v) => v.value === n.value))
|
|
263
263
|
return;
|
|
264
|
-
const w = y.some((v) => v.value ===
|
|
264
|
+
const w = y.some((v) => v.value === n.value) ? y.filter((v) => v.value !== n.value) : [...y, n];
|
|
265
265
|
W(w);
|
|
266
266
|
}, U = () => {
|
|
267
267
|
C(s), W([]), h && (h([]), t == null || t(s));
|
|
268
268
|
}, X = () => {
|
|
269
269
|
W(u), f(i);
|
|
270
270
|
}, Y = () => {
|
|
271
|
-
X(),
|
|
271
|
+
X(), l(!1);
|
|
272
272
|
}, Z = () => {
|
|
273
|
-
h && (t == null || t(g), h(y)),
|
|
273
|
+
h && (t == null || t(g), h(y)), l(!1);
|
|
274
274
|
};
|
|
275
275
|
A(() => {
|
|
276
276
|
m && f(i);
|
|
277
277
|
}, [m]);
|
|
278
|
-
const E = (
|
|
278
|
+
const E = (n) => {
|
|
279
279
|
if (!m || N)
|
|
280
280
|
return;
|
|
281
|
-
const w =
|
|
282
|
-
_.current && !_.current.contains(w) &&
|
|
281
|
+
const w = n.target;
|
|
282
|
+
_.current && !_.current.contains(w) && (n.target, _.current);
|
|
283
283
|
};
|
|
284
284
|
A(() => (m && !N && document.addEventListener("click", E), () => {
|
|
285
285
|
document.removeEventListener("click", E);
|
|
@@ -308,9 +308,9 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
308
308
|
variant: "grayRow",
|
|
309
309
|
addClassName: r.tabs,
|
|
310
310
|
isApart: !0,
|
|
311
|
-
children: s == null ? void 0 : s.map((
|
|
311
|
+
children: s == null ? void 0 : s.map((n, w) => {
|
|
312
312
|
var $;
|
|
313
|
-
const v =
|
|
313
|
+
const v = n.value;
|
|
314
314
|
return /* @__PURE__ */ e(
|
|
315
315
|
P.Item,
|
|
316
316
|
{
|
|
@@ -335,14 +335,14 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
335
335
|
}
|
|
336
336
|
) })
|
|
337
337
|
] }),
|
|
338
|
-
/* @__PURE__ */ e("div", { className: r.selectWrapper, children:
|
|
338
|
+
/* @__PURE__ */ e("div", { className: r.selectWrapper, children: a == null ? void 0 : a.map((n, w) => /* @__PURE__ */ e(
|
|
339
339
|
rt,
|
|
340
340
|
{
|
|
341
341
|
addClassName: r.filterOption,
|
|
342
342
|
disabledOptions: [],
|
|
343
343
|
clickableOptions: [],
|
|
344
344
|
selectedOptions: y,
|
|
345
|
-
option:
|
|
345
|
+
option: n,
|
|
346
346
|
handleOptionClick: Q
|
|
347
347
|
},
|
|
348
348
|
w
|
|
@@ -375,7 +375,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
375
375
|
{
|
|
376
376
|
className: r.root,
|
|
377
377
|
onClick: () => {
|
|
378
|
-
O && O(),
|
|
378
|
+
O && O(), l(N ? (n) => !n : !0);
|
|
379
379
|
},
|
|
380
380
|
children: [
|
|
381
381
|
/* @__PURE__ */ e("div", { className: r.btnName, children: k }),
|
|
@@ -391,7 +391,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
391
391
|
{
|
|
392
392
|
ref: _,
|
|
393
393
|
className: $t(r.desktopWrapper, { [r.desktopWrapperOpen]: m }),
|
|
394
|
-
onClick: (
|
|
394
|
+
onClick: (n) => n.stopPropagation(),
|
|
395
395
|
children: /* @__PURE__ */ e(T, {})
|
|
396
396
|
}
|
|
397
397
|
)
|
|
@@ -402,7 +402,7 @@ const Tt = /* @__PURE__ */ et(Et), $t = Tt.bind(r), pe = ({
|
|
|
402
402
|
H,
|
|
403
403
|
{
|
|
404
404
|
isOpen: m,
|
|
405
|
-
emitIsOpen:
|
|
405
|
+
emitIsOpen: l,
|
|
406
406
|
isTransparentBack: !0,
|
|
407
407
|
additionalClassModalBody: r.modalAddBody,
|
|
408
408
|
additionalClass: r.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-CFM70Jf0.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-CFM70Jf0.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-CFM70Jf0.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-CFM70Jf0.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-CFM70Jf0.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";
|