stone-kit 0.0.274 → 0.0.275
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/{SortSelect-J9a__cB7.js → SortSelect-DnZXZWmG.js} +36 -36
- package/dist/components/LotCard/ui/LotCard.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/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as k, useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { s as t, u as
|
|
5
|
-
import { NewIcon as
|
|
2
|
+
import { forwardRef as k, useState as D, useRef as T, useEffect as B } from "react";
|
|
3
|
+
import { c as L } from "./index-rKuIKazb.js";
|
|
4
|
+
import { s as t, u as M } from "./useSortSelect-sd5ks-20.js";
|
|
5
|
+
import { NewIcon as O } from "./components/NewIcon/ui/NewIcon.js";
|
|
6
6
|
import "./components/Button/ui/Button.js";
|
|
7
7
|
import "./components/mobileButton/ui/MobileButton.js";
|
|
8
8
|
import "./components/DestinationTab/ui/DestinationTab.js";
|
|
9
9
|
import "./components/RoundButton/ui/RoundButton.js";
|
|
10
10
|
import "./components/Tag/ui/Tag.js";
|
|
11
11
|
import "./components/Switcher/ui/Switcher.js";
|
|
12
|
-
import { Text as
|
|
12
|
+
import { Text as W } from "./components/Text/ui/Text.js";
|
|
13
13
|
import "./components/Flex/ui/Flex.js";
|
|
14
14
|
import "./components/Input/ui/Input.js";
|
|
15
|
-
import { M } from "./Modal-DbD1tgiF.js";
|
|
15
|
+
import { M as j } from "./Modal-DbD1tgiF.js";
|
|
16
16
|
import "./components/GroupedInput/ui/GroupedInputs.js";
|
|
17
17
|
import "./components/MetroTag/ui/MetroTag.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
|
-
import { useClientWidth as
|
|
19
|
+
import { useClientWidth as C } from "./shared/useClientWidth.js";
|
|
20
20
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
21
21
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
22
22
|
import "./index-BaVdWc7x.js";
|
|
23
23
|
import "./components/CheckBox/CheckBox.js";
|
|
24
24
|
import "./components/TextArea/TextArea.js";
|
|
25
|
-
const
|
|
26
|
-
root:
|
|
27
|
-
text:
|
|
28
|
-
rootCol:
|
|
29
|
-
item:
|
|
30
|
-
whiteRow:
|
|
31
|
-
firstItem:
|
|
32
|
-
lastItem:
|
|
33
|
-
apart:
|
|
34
|
-
isLong:
|
|
35
|
-
autoWidth:
|
|
36
|
-
isDisabled:
|
|
37
|
-
grayRow:
|
|
38
|
-
}, b =
|
|
25
|
+
const E = "_root_131pc_1", A = "_text_131pc_17", z = "_rootCol_131pc_25", $ = "_item_131pc_31", q = "_whiteRow_131pc_50", H = "_firstItem_131pc_61", P = "_lastItem_131pc_65", V = "_apart_131pc_89", F = "_isLong_131pc_89", G = "_autoWidth_131pc_114", J = "_isDisabled_131pc_121", K = "_grayRow_131pc_143", e = {
|
|
26
|
+
root: E,
|
|
27
|
+
text: A,
|
|
28
|
+
rootCol: z,
|
|
29
|
+
item: $,
|
|
30
|
+
whiteRow: q,
|
|
31
|
+
firstItem: H,
|
|
32
|
+
lastItem: P,
|
|
33
|
+
apart: V,
|
|
34
|
+
isLong: F,
|
|
35
|
+
autoWidth: G,
|
|
36
|
+
isDisabled: J,
|
|
37
|
+
grayRow: K
|
|
38
|
+
}, b = L.bind(e), Q = ({
|
|
39
39
|
children: o,
|
|
40
40
|
variant: l = "whiteRow",
|
|
41
41
|
isApart: n = !1,
|
|
42
42
|
addClassName: m = "",
|
|
43
43
|
col: c = !1
|
|
44
|
-
}) => /* @__PURE__ */ s("div", { className: b(e.root, e[l], m, { [e.rootCol]: c, [e.apart]: n }), children: o }),
|
|
45
|
-
const { isTablet: n, isDesktop: m } =
|
|
44
|
+
}) => /* @__PURE__ */ s("div", { className: b(e.root, e[l], m, { [e.rootCol]: c, [e.apart]: n }), children: o }), R = k((o, l) => {
|
|
45
|
+
const { isTablet: n, isDesktop: m } = C(), {
|
|
46
46
|
index: c,
|
|
47
47
|
children: i,
|
|
48
48
|
addItemClassName: u,
|
|
@@ -73,13 +73,13 @@ const j = "_root_131pc_1", E = "_text_131pc_17", A = "_rootCol_131pc_25", z = "_
|
|
|
73
73
|
{ [e.isDisabled]: S },
|
|
74
74
|
{ [e.autoWidth]: g }
|
|
75
75
|
), u),
|
|
76
|
-
children: /* @__PURE__ */ s(
|
|
76
|
+
children: /* @__PURE__ */ s(W, { className: e.text, children: i })
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
] });
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
R.displayName = "TabSwitcherItem";
|
|
82
|
+
const Nt = Object.assign(Q, { Item: R }), w = L.bind(t), U = ({
|
|
83
83
|
options: o,
|
|
84
84
|
selectedOption: l,
|
|
85
85
|
placeholder: n = "",
|
|
@@ -91,7 +91,7 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
91
91
|
mini: I,
|
|
92
92
|
openOnTop: d = !1
|
|
93
93
|
}) => {
|
|
94
|
-
const [r, a] =
|
|
94
|
+
const [r, a] = D(!1), h = T(null), { isMobile: p, isDesktop: N } = C(), { handleBlur: g, getInputValue: x, getOption: f, handleDocumentClick: v } = M({
|
|
95
95
|
selectedOption: l,
|
|
96
96
|
setSelectedOption: u,
|
|
97
97
|
setIsOpen: a,
|
|
@@ -102,8 +102,8 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
102
102
|
onChange: u,
|
|
103
103
|
onBlur: S
|
|
104
104
|
});
|
|
105
|
-
return
|
|
106
|
-
document.removeEventListener("click",
|
|
105
|
+
return B(() => (document.addEventListener("click", v), () => {
|
|
106
|
+
document.removeEventListener("click", v);
|
|
107
107
|
}), []), /* @__PURE__ */ _(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
@@ -133,7 +133,7 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
135
|
/* @__PURE__ */ s(
|
|
136
|
-
|
|
136
|
+
O,
|
|
137
137
|
{
|
|
138
138
|
name: "twoArrows",
|
|
139
139
|
size: "24",
|
|
@@ -142,7 +142,7 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
142
142
|
)
|
|
143
143
|
] }),
|
|
144
144
|
r && p && /* @__PURE__ */ _(
|
|
145
|
-
|
|
145
|
+
j,
|
|
146
146
|
{
|
|
147
147
|
isOpen: r,
|
|
148
148
|
emitIsOpen: a,
|
|
@@ -151,9 +151,9 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
151
151
|
isTransparentBack: !0,
|
|
152
152
|
children: [
|
|
153
153
|
/* @__PURE__ */ _("div", { className: t.mobileSortHeader, children: [
|
|
154
|
-
/* @__PURE__ */ s(
|
|
154
|
+
/* @__PURE__ */ s(W, { children: "Сортировка" }),
|
|
155
155
|
/* @__PURE__ */ s("div", { onClick: () => a(!1), children: /* @__PURE__ */ s(
|
|
156
|
-
|
|
156
|
+
O,
|
|
157
157
|
{
|
|
158
158
|
name: "close",
|
|
159
159
|
size: "20"
|
|
@@ -169,8 +169,8 @@ const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
|
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
U.displayName = "SortSelect";
|
|
173
173
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
Nt as S,
|
|
175
|
+
U as a
|
|
176
176
|
};
|
|
@@ -13,7 +13,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
13
13
|
import "../../Input/ui/Input.js";
|
|
14
14
|
import "react";
|
|
15
15
|
import "../../../Modal-DbD1tgiF.js";
|
|
16
|
-
import "../../../SortSelect-
|
|
16
|
+
import "../../../SortSelect-DnZXZWmG.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../../index-rKuIKazb.js";
|
|
19
19
|
import "../../MetroTag/ui/MetroTag.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-DbD1tgiF.js";
|
|
16
|
-
import { a as z } from "../../../SortSelect-
|
|
16
|
+
import { a as z } from "../../../SortSelect-DnZXZWmG.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../Select/ui/Select.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as u } from "../../../SortSelect-
|
|
3
|
+
import { S as u } from "../../../SortSelect-DnZXZWmG.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.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 b } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { M as I } from "./Modal-DbD1tgiF.js";
|
|
12
12
|
import { FieldInput as w } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { a as F, S as L } from "./SortSelect-
|
|
13
|
+
import { a as F, S as L } from "./SortSelect-DnZXZWmG.js";
|
|
14
14
|
import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as v } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as G } from "./components/MetroTag/ui/MetroTag.js";
|