stone-kit 0.0.604 → 0.0.605
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-BxcOK4VO.js → FilterWithSave-DJlty46m.js} +22 -22
- 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,7 +23,7 @@ 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", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_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",
|
|
26
|
+
const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot = "_rootCol_2bilg_32", at = "_item_2bilg_38", lt = "_whiteRow_2bilg_57", ct = "_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", m = {
|
|
27
27
|
root: rt,
|
|
28
28
|
text: nt,
|
|
29
29
|
textMini: st,
|
|
@@ -38,13 +38,13 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
|
|
|
38
38
|
mini: ut,
|
|
39
39
|
isDisabled: ht,
|
|
40
40
|
grayRow: ft
|
|
41
|
-
}, I = V.bind(
|
|
41
|
+
}, I = V.bind(m), vt = ({
|
|
42
42
|
children: o,
|
|
43
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(m.root, m[s], _, { [m.rootCol]: u, [m.apart]: a }), children: o }), G = Z((o, s) => {
|
|
48
48
|
const { isTablet: a, isDesktop: _ } = E(), {
|
|
49
49
|
index: u,
|
|
50
50
|
children: t,
|
|
@@ -55,11 +55,11 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
|
|
|
55
55
|
isLongOn: O = !0,
|
|
56
56
|
width: h,
|
|
57
57
|
width_m: l,
|
|
58
|
-
width_l:
|
|
58
|
+
width_l: p,
|
|
59
59
|
mini: S = !1,
|
|
60
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 &&
|
|
62
|
-
return /* @__PURE__ */ y("label", { className: I({ [
|
|
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 && p ? p : h, f = !h && !l && !p && x;
|
|
62
|
+
return /* @__PURE__ */ y("label", { className: I({ [m.isLong]: x }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
@@ -75,16 +75,16 @@ const rt = "_root_2bilg_1", nt = "_text_2bilg_18", st = "_textMini_2bilg_26", ot
|
|
|
75
75
|
style: { width: N(a, _) },
|
|
76
76
|
className: I(
|
|
77
77
|
I(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
m.item,
|
|
79
|
+
{ [m.firstItem]: u === 0 },
|
|
80
|
+
{ [m.lastItem]: u === C - 1 },
|
|
81
|
+
{ [m.isDisabled]: g },
|
|
82
|
+
{ [m.autoWidth]: f },
|
|
83
|
+
{ [m.mini]: S }
|
|
84
84
|
),
|
|
85
85
|
i
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: I(
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: I(m.text, { [m.textMini]: S }, d), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
@@ -104,12 +104,12 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
104
104
|
onClickItem: O,
|
|
105
105
|
onCLickSelect: h
|
|
106
106
|
}) => {
|
|
107
|
-
const [l,
|
|
107
|
+
const [l, p] = B(!1), S = J(null), { isMobile: k } = E(), { handleBlur: x, getInputValue: N, getOption: f, handleDocumentClick: v } = et(
|
|
108
108
|
{
|
|
109
109
|
selectedOption: s,
|
|
110
110
|
onClickOption: O,
|
|
111
111
|
setSelectedOption: i,
|
|
112
|
-
setIsOpen:
|
|
112
|
+
setIsOpen: p,
|
|
113
113
|
containerRef: S,
|
|
114
114
|
isOpen: l,
|
|
115
115
|
isMobile: k,
|
|
@@ -148,7 +148,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
148
148
|
{ [c.selectOptionsDisabled]: u },
|
|
149
149
|
{ [c.selectionOptionMini]: g }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => p(!l)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -164,7 +164,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
164
164
|
q,
|
|
165
165
|
{
|
|
166
166
|
isOpen: l,
|
|
167
|
-
emitIsOpen:
|
|
167
|
+
emitIsOpen: p,
|
|
168
168
|
additionalClassModalBody: c.modalAddBody,
|
|
169
169
|
additionalClass: c.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
@@ -172,7 +172,7 @@ const T = Object.assign(vt, { Item: G }), L = V.bind(c), wt = ({
|
|
|
172
172
|
children: [
|
|
173
173
|
/* @__PURE__ */ y("div", { className: c.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => p(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
R,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -258,7 +258,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
|
|
|
258
258
|
onCLickSelect: g,
|
|
259
259
|
btnName: C = "Фильтр"
|
|
260
260
|
}) => {
|
|
261
|
-
const { isMobile: O } = E(), [h, l] = B(!1),
|
|
261
|
+
const { isMobile: O } = E(), [h, l] = B(!1), p = J(null), [S, k] = B(i), [x] = B(u), [N, f] = B(S), [v, W] = B(x), Q = (r) => {
|
|
262
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];
|
|
@@ -276,7 +276,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
|
|
|
276
276
|
h || f((r) => JSON.stringify(r) !== JSON.stringify(i) ? i : r);
|
|
277
277
|
}, [h, i]), D(() => {
|
|
278
278
|
const r = (b) => {
|
|
279
|
-
|
|
279
|
+
p.current && (p.current && !p.current.contains(b.target) || j());
|
|
280
280
|
};
|
|
281
281
|
return h ? document.addEventListener("click", r, { capture: !0 }) : document.removeEventListener("click", r, { capture: !0 }), () => {
|
|
282
282
|
document.removeEventListener("click", r, { capture: !0 });
|
|
@@ -373,7 +373,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
|
|
|
373
373
|
/* @__PURE__ */ y(
|
|
374
374
|
"div",
|
|
375
375
|
{
|
|
376
|
-
ref:
|
|
376
|
+
ref: p,
|
|
377
377
|
className: n.root,
|
|
378
378
|
onClick: () => {
|
|
379
379
|
g && g(), l(O ? (r) => !r : !0);
|
|
@@ -387,7 +387,7 @@ const jt = /* @__PURE__ */ tt(Et), $t = jt.bind(n), de = ({
|
|
|
387
387
|
size: "16"
|
|
388
388
|
}
|
|
389
389
|
),
|
|
390
|
-
!O && /* @__PURE__ */ e("div", { className: $t(n.desktopWrapper, { [n.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
|
|
390
|
+
!O && /* @__PURE__ */ e("div", { ref: p, className: $t(n.desktopWrapper, { [n.desktopWrapperOpen]: h }), children: /* @__PURE__ */ e($, {}) })
|
|
391
391
|
]
|
|
392
392
|
}
|
|
393
393
|
),
|
|
@@ -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-DJlty46m.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-DJlty46m.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-DJlty46m.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-DJlty46m.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-DJlty46m.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";
|