stone-kit 0.0.271 → 0.0.273
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-C_Ue6qxA.js → SortSelect-CRHnyLwh.js} +48 -50
- 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,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { s as t, u as
|
|
2
|
+
import { forwardRef as L, useState as D, useRef as T } from "react";
|
|
3
|
+
import { c as W } from "./index-rKuIKazb.js";
|
|
4
|
+
import { s as t, u as k } from "./useSortSelect-C7leD2tv.js";
|
|
5
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";
|
|
@@ -9,57 +9,57 @@ 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 R } 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 as
|
|
15
|
+
import { M as B } from "./Modal-258KOiTO.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 v } from "./shared/useClientWidth.js";
|
|
20
20
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
21
21
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
22
22
|
import "./index-CbZmuQco.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 M = "_root_131pc_1", j = "_text_131pc_17", A = "_rootCol_131pc_25", z = "_item_131pc_31", $ = "_whiteRow_131pc_50", q = "_firstItem_131pc_61", E = "_lastItem_131pc_65", H = "_apart_131pc_89", P = "_isLong_131pc_89", V = "_autoWidth_131pc_114", F = "_isDisabled_131pc_121", G = "_grayRow_131pc_143", e = {
|
|
26
|
+
root: M,
|
|
27
|
+
text: j,
|
|
28
|
+
rootCol: A,
|
|
29
|
+
item: z,
|
|
30
|
+
whiteRow: $,
|
|
31
|
+
firstItem: q,
|
|
32
|
+
lastItem: E,
|
|
33
|
+
apart: H,
|
|
34
|
+
isLong: P,
|
|
35
|
+
autoWidth: V,
|
|
36
|
+
isDisabled: F,
|
|
37
|
+
grayRow: G
|
|
38
|
+
}, b = W.bind(e), J = ({
|
|
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 }), C = L((o, l) => {
|
|
45
|
+
const { isTablet: n, isDesktop: m } = v(), {
|
|
46
46
|
index: c,
|
|
47
47
|
children: i,
|
|
48
|
-
addItemClassName:
|
|
48
|
+
addItemClassName: h,
|
|
49
49
|
disabled: S = !1,
|
|
50
50
|
itemsLength: I = 0,
|
|
51
|
-
width:
|
|
51
|
+
width: p,
|
|
52
52
|
width_m: r,
|
|
53
53
|
width_l: a,
|
|
54
|
-
...
|
|
55
|
-
} = o,
|
|
56
|
-
return /* @__PURE__ */ _("label", { className: b({ [e.isLong]:
|
|
54
|
+
...u
|
|
55
|
+
} = o, d = i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1, N = (x, f) => x && r ? r : f && a ? a : p, g = !p && !r && !a && d;
|
|
56
|
+
return /* @__PURE__ */ _("label", { className: b({ [e.isLong]: d }), children: [
|
|
57
57
|
/* @__PURE__ */ s(
|
|
58
58
|
"input",
|
|
59
59
|
{
|
|
60
60
|
ref: l,
|
|
61
61
|
type: "checkbox",
|
|
62
|
-
...
|
|
62
|
+
...u
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
/* @__PURE__ */ s(
|
|
@@ -72,46 +72,44 @@ const E = "_root_131pc_1", A = "_text_131pc_17", z = "_rootCol_131pc_25", $ = "_
|
|
|
72
72
|
{ [e.lastItem]: c === I - 1 },
|
|
73
73
|
{ [e.isDisabled]: S },
|
|
74
74
|
{ [e.autoWidth]: g }
|
|
75
|
-
),
|
|
76
|
-
children: /* @__PURE__ */ s(
|
|
75
|
+
), h),
|
|
76
|
+
children: /* @__PURE__ */ s(R, { className: e.text, children: i })
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
] });
|
|
80
80
|
});
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
C.displayName = "TabSwitcherItem";
|
|
82
|
+
const St = Object.assign(J, { Item: C }), w = W.bind(t), K = ({
|
|
83
83
|
options: o,
|
|
84
84
|
selectedOption: l,
|
|
85
85
|
placeholder: n = "",
|
|
86
86
|
error: m,
|
|
87
87
|
disabled: c,
|
|
88
88
|
additionalClass: i = "",
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: h,
|
|
90
90
|
onBlur: S,
|
|
91
91
|
mini: I,
|
|
92
|
-
openOnTop:
|
|
92
|
+
openOnTop: p = !1
|
|
93
93
|
}) => {
|
|
94
|
-
const [r, a] = D(!1),
|
|
94
|
+
const [r, a] = D(!1), u = T(null), { isMobile: d, isDesktop: N } = v(), { handleBlur: g, getInputValue: x, getOption: f } = k({
|
|
95
95
|
selectedOption: l,
|
|
96
|
-
setSelectedOption:
|
|
96
|
+
setSelectedOption: h,
|
|
97
97
|
setIsOpen: a,
|
|
98
|
-
containerRef:
|
|
98
|
+
containerRef: u,
|
|
99
99
|
isOpen: r,
|
|
100
100
|
isDesktop: N,
|
|
101
101
|
placeholder: n,
|
|
102
|
-
onChange:
|
|
102
|
+
onChange: h,
|
|
103
103
|
onBlur: S
|
|
104
104
|
});
|
|
105
|
-
return
|
|
106
|
-
document.removeEventListener("click", v);
|
|
107
|
-
}), []), /* @__PURE__ */ _(
|
|
105
|
+
return /* @__PURE__ */ _(
|
|
108
106
|
"div",
|
|
109
107
|
{
|
|
110
|
-
ref:
|
|
108
|
+
ref: u,
|
|
111
109
|
className: w(
|
|
112
110
|
t.sortSelectWrapper,
|
|
113
111
|
{ [t.sortSelectWrapperError]: m },
|
|
114
|
-
{ [t.sortSelectWrapperTop]:
|
|
112
|
+
{ [t.sortSelectWrapperTop]: p },
|
|
115
113
|
i
|
|
116
114
|
),
|
|
117
115
|
tabIndex: 0,
|
|
@@ -141,8 +139,8 @@ const Nt = Object.assign(Q, { Item: R }), w = L.bind(t), U = ({
|
|
|
141
139
|
}
|
|
142
140
|
)
|
|
143
141
|
] }),
|
|
144
|
-
r &&
|
|
145
|
-
|
|
142
|
+
r && d && /* @__PURE__ */ _(
|
|
143
|
+
B,
|
|
146
144
|
{
|
|
147
145
|
isOpen: r,
|
|
148
146
|
emitIsOpen: a,
|
|
@@ -151,7 +149,7 @@ const Nt = Object.assign(Q, { Item: R }), w = L.bind(t), U = ({
|
|
|
151
149
|
isTransparentBack: !0,
|
|
152
150
|
children: [
|
|
153
151
|
/* @__PURE__ */ _("div", { className: t.mobileSortHeader, children: [
|
|
154
|
-
/* @__PURE__ */ s(
|
|
152
|
+
/* @__PURE__ */ s(R, { children: "Сортировка" }),
|
|
155
153
|
/* @__PURE__ */ s("div", { onClick: () => a(!1), children: /* @__PURE__ */ s(
|
|
156
154
|
O,
|
|
157
155
|
{
|
|
@@ -164,13 +162,13 @@ const Nt = Object.assign(Q, { Item: R }), w = L.bind(t), U = ({
|
|
|
164
162
|
]
|
|
165
163
|
}
|
|
166
164
|
),
|
|
167
|
-
r && !
|
|
165
|
+
r && !d && /* @__PURE__ */ s("div", { className: w(t.optionsList, { [t.optionListOnTop]: p }), children: o == null ? void 0 : o.map((y) => f(y)) })
|
|
168
166
|
]
|
|
169
167
|
}
|
|
170
168
|
);
|
|
171
169
|
};
|
|
172
|
-
|
|
170
|
+
K.displayName = "SortSelect";
|
|
173
171
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
St as S,
|
|
173
|
+
K as a
|
|
176
174
|
};
|
|
@@ -13,7 +13,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
13
13
|
import "../../Input/ui/Input.js";
|
|
14
14
|
import "react";
|
|
15
15
|
import "../../../Modal-258KOiTO.js";
|
|
16
|
-
import "../../../SortSelect-
|
|
16
|
+
import "../../../SortSelect-CRHnyLwh.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-258KOiTO.js";
|
|
16
|
-
import { a as z } from "../../../SortSelect-
|
|
16
|
+
import { a as z } from "../../../SortSelect-CRHnyLwh.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-CRHnyLwh.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-258KOiTO.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-CRHnyLwh.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";
|