stone-kit 0.0.189 → 0.0.190
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/components/CheckBox/CheckBox.js +17 -16
- package/dist/components/FormModal/ui/ModalForm.d.ts +3 -2
- package/dist/components/FormModal/ui/ModalForm.js +699 -2246
- package/dist/components/NewIcon/ui/NewIcon.js +8 -7
- package/dist/components/RoundButton/ui/RoundButton.js +39 -39
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +21 -21
- package/dist/components/SortSelect/ui/SortSelect.js +8 -6
- package/dist/index-DB-VhohW.js +1559 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +12 -10
- package/dist/style.css +1 -1
- package/package.json +2 -6
|
@@ -65,11 +65,11 @@ const m = ({
|
|
|
65
65
|
title: t,
|
|
66
66
|
titleId: l,
|
|
67
67
|
...r
|
|
68
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12H19", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M12.0001 5L12.0001 19", stroke: "currentColor" })),
|
|
68
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12H19", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M12.0001 5L12.0001 19", stroke: "currentColor" })), j = o(U), W = ({
|
|
69
69
|
title: t,
|
|
70
70
|
titleId: l,
|
|
71
71
|
...r
|
|
72
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M9.52381 17.6V12.3111M9.52381 12.3111V6.40002H13.0444C14.6768 6.40002 16 7.72327 16 9.35558V9.35558C16 10.9879 14.6768 12.3111 13.0444 12.3111H9.52381ZM9.52381 12.3111H8", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M8 15.2001L12.5714 15.2001", stroke: "currentColor" })), G = o(
|
|
72
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M9.52381 17.6V12.3111M9.52381 12.3111V6.40002H13.0444C14.6768 6.40002 16 7.72327 16 9.35558V9.35558C16 10.9879 14.6768 12.3111 13.0444 12.3111H9.52381ZM9.52381 12.3111H8", stroke: "currentColor" }), /* @__PURE__ */ e.createElement("path", { d: "M8 15.2001L12.5714 15.2001", stroke: "currentColor" })), G = o(W), O = ({
|
|
73
73
|
title: t,
|
|
74
74
|
titleId: l,
|
|
75
75
|
...r
|
|
@@ -173,11 +173,11 @@ const m = ({
|
|
|
173
173
|
title: t,
|
|
174
174
|
titleId: l,
|
|
175
175
|
...r
|
|
176
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("rect", { x: 0.5, y: 0.5, width: 19, height: 19, rx: 3.5, fill: "#E6E8EC", stroke: "#B1B5C4" })),
|
|
176
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("rect", { x: 0.5, y: 0.5, width: 19, height: 19, rx: 3.5, fill: "#E6E8EC", stroke: "#B1B5C4" })), j1 = o(U1), W1 = ({
|
|
177
177
|
title: t,
|
|
178
178
|
titleId: l,
|
|
179
179
|
...r
|
|
180
|
-
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "m18 10-6 6-6-6", stroke: "currentColor" })), G1 = o(
|
|
180
|
+
}, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "m18 10-6 6-6-6", stroke: "currentColor" })), G1 = o(W1), O1 = ({
|
|
181
181
|
title: t,
|
|
182
182
|
titleId: l,
|
|
183
183
|
...r
|
|
@@ -202,7 +202,7 @@ const m = ({
|
|
|
202
202
|
minus: () => /* @__PURE__ */ n(V, {}),
|
|
203
203
|
moon: () => /* @__PURE__ */ n(Z, {}),
|
|
204
204
|
play: () => /* @__PURE__ */ n(q, {}),
|
|
205
|
-
plus: () => /* @__PURE__ */ n(
|
|
205
|
+
plus: () => /* @__PURE__ */ n(j, {}),
|
|
206
206
|
ruble: () => /* @__PURE__ */ n(G, {}),
|
|
207
207
|
share: () => /* @__PURE__ */ n(_, {}),
|
|
208
208
|
sun: () => /* @__PURE__ */ n(N, {}),
|
|
@@ -229,7 +229,7 @@ const m = ({
|
|
|
229
229
|
withoutDecor: () => /* @__PURE__ */ n(V1, {}),
|
|
230
230
|
play2: () => /* @__PURE__ */ n(Z1, {}),
|
|
231
231
|
selectChecked: () => /* @__PURE__ */ n(q1, {}),
|
|
232
|
-
selectUnchecked: () => /* @__PURE__ */ n(
|
|
232
|
+
selectUnchecked: () => /* @__PURE__ */ n(j1, {}),
|
|
233
233
|
arrowShort: () => /* @__PURE__ */ n(G1, {}),
|
|
234
234
|
search: () => /* @__PURE__ */ n(_1, {})
|
|
235
235
|
}, X1 = ({
|
|
@@ -248,7 +248,8 @@ const m = ({
|
|
|
248
248
|
width: l + "px",
|
|
249
249
|
height: l + "px",
|
|
250
250
|
transform: `rotate(${s}deg)`,
|
|
251
|
-
color: r
|
|
251
|
+
color: r,
|
|
252
|
+
strokeWidth: a
|
|
252
253
|
},
|
|
253
254
|
className: c ?? "",
|
|
254
255
|
children: /* @__PURE__ */ n(
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { jsx as m, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { NewIcon as
|
|
5
|
-
import { sizeMap as
|
|
6
|
-
const
|
|
7
|
-
btnRound:
|
|
8
|
-
"small-size": "_small-
|
|
9
|
-
"medium-size": "_medium-
|
|
10
|
-
"large-size": "_large-
|
|
11
|
-
whiteStroke:
|
|
12
|
-
blackFill:
|
|
13
|
-
"small-size_m": "_small-
|
|
14
|
-
"medium-size_m": "_medium-
|
|
15
|
-
"large-size_m": "_large-
|
|
16
|
-
"small-size_l": "_small-
|
|
17
|
-
"medium-size_l": "_medium-
|
|
18
|
-
"large-size_l": "_large-
|
|
19
|
-
},
|
|
20
|
-
size:
|
|
21
|
-
size_m:
|
|
22
|
-
size_l:
|
|
1
|
+
import { jsx as m, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useEffect as f } from "react";
|
|
3
|
+
import { c as g } from "../../../index-rKuIKazb.js";
|
|
4
|
+
import { NewIcon as S } from "../../NewIcon/ui/NewIcon.js";
|
|
5
|
+
import { sizeMap as i } from "./RoundButton.types.js";
|
|
6
|
+
const R = "_btnRound_1ixxk_1", p = "_whiteStroke_1ixxk_36", F = "_blackFill_1ixxk_44", e = {
|
|
7
|
+
btnRound: R,
|
|
8
|
+
"small-size": "_small-size_1ixxk_19",
|
|
9
|
+
"medium-size": "_medium-size_1ixxk_24",
|
|
10
|
+
"large-size": "_large-size_1ixxk_30",
|
|
11
|
+
whiteStroke: p,
|
|
12
|
+
blackFill: F,
|
|
13
|
+
"small-size_m": "_small-size_m_1ixxk_53",
|
|
14
|
+
"medium-size_m": "_medium-size_m_1ixxk_57",
|
|
15
|
+
"large-size_m": "_large-size_m_1ixxk_62",
|
|
16
|
+
"small-size_l": "_small-size_l_1ixxk_83",
|
|
17
|
+
"medium-size_l": "_medium-size_l_1ixxk_87",
|
|
18
|
+
"large-size_l": "_large-size_l_1ixxk_92"
|
|
19
|
+
}, $ = g.bind(e), j = ({
|
|
20
|
+
size: l = "small",
|
|
21
|
+
size_m: s,
|
|
22
|
+
size_l: t,
|
|
23
23
|
children: a = "",
|
|
24
24
|
iconName: o = "",
|
|
25
|
-
variant:
|
|
25
|
+
variant: x = "whiteStroke",
|
|
26
26
|
additionalClass: c = "",
|
|
27
27
|
deg: d,
|
|
28
28
|
...r
|
|
29
29
|
}) => {
|
|
30
|
-
const [
|
|
31
|
-
return
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
|
|
30
|
+
const [z, k] = h(i.small), { color: u = "#141416" } = r;
|
|
31
|
+
return f(() => {
|
|
32
|
+
const _ = () => {
|
|
33
|
+
const n = window.innerWidth, w = n > 1440 && t ? i[t] : n >= 1024 && n <= 1440 && s ? i[s] : i[l] || i.small;
|
|
34
|
+
k(w);
|
|
35
35
|
};
|
|
36
|
-
return window.addEventListener("resize",
|
|
37
|
-
window.removeEventListener("resize",
|
|
36
|
+
return window.addEventListener("resize", _), _(), () => {
|
|
37
|
+
window.removeEventListener("resize", _);
|
|
38
38
|
};
|
|
39
|
-
}, [
|
|
39
|
+
}, [l, s, t]), /* @__PURE__ */ m(
|
|
40
40
|
"button",
|
|
41
41
|
{
|
|
42
|
-
className:
|
|
42
|
+
className: $(
|
|
43
43
|
e.btnRound,
|
|
44
|
-
e[`${
|
|
45
|
-
e[`${
|
|
46
|
-
e[`${
|
|
47
|
-
e[`${
|
|
44
|
+
e[`${l}-size`],
|
|
45
|
+
e[`${s}-size_m`],
|
|
46
|
+
e[`${t}-size_l`],
|
|
47
|
+
e[`${x}`],
|
|
48
48
|
c
|
|
49
49
|
),
|
|
50
50
|
...r,
|
|
51
|
-
children: /* @__PURE__ */ m(
|
|
52
|
-
|
|
51
|
+
children: /* @__PURE__ */ m(b, { children: o ? /* @__PURE__ */ m(
|
|
52
|
+
S,
|
|
53
53
|
{
|
|
54
54
|
name: o,
|
|
55
|
-
size:
|
|
55
|
+
size: z,
|
|
56
56
|
deg: d,
|
|
57
57
|
color: u
|
|
58
58
|
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as g, jsx as
|
|
1
|
+
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { RoundButton as r } from "../../RoundButton/ui/RoundButton.js";
|
|
3
|
-
import { Tag as
|
|
4
|
-
import { useClientWidth as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
sliderTag:
|
|
8
|
-
}, C =
|
|
3
|
+
import { Tag as p } from "../../Tag/ui/Tag.js";
|
|
4
|
+
import { useClientWidth as u } from "../../../shared/useClientWidth.js";
|
|
5
|
+
import { c as f } from "../../../index-rKuIKazb.js";
|
|
6
|
+
const h = "_sliderTag_1fxi7_1", t = {
|
|
7
|
+
sliderTag: h
|
|
8
|
+
}, C = f.bind(t), z = ({
|
|
9
9
|
indexSlide: i,
|
|
10
|
-
goPrev:
|
|
11
|
-
goNext:
|
|
10
|
+
goPrev: d,
|
|
11
|
+
goNext: n,
|
|
12
12
|
arr: o,
|
|
13
13
|
isNeedTag: l = !0,
|
|
14
14
|
additionalClassTag: m = "",
|
|
15
15
|
navigationClassName: c = "",
|
|
16
16
|
additionalClassNavButton: a = ""
|
|
17
17
|
}) => {
|
|
18
|
-
const {
|
|
18
|
+
const { isDesktop: s } = u();
|
|
19
19
|
return /* @__PURE__ */ g("div", { className: c, children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ e(
|
|
21
21
|
r,
|
|
22
22
|
{
|
|
23
|
-
size:
|
|
23
|
+
size: s ? "large" : "medium",
|
|
24
24
|
iconName: "directionDown",
|
|
25
25
|
deg: "90",
|
|
26
26
|
disabled: i === 0,
|
|
27
27
|
additionalClass: a,
|
|
28
|
-
onClick:
|
|
28
|
+
onClick: d
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
l && /* @__PURE__ */
|
|
32
|
-
|
|
31
|
+
l && /* @__PURE__ */ e(
|
|
32
|
+
p,
|
|
33
33
|
{
|
|
34
|
-
additionalClass: C(
|
|
34
|
+
additionalClass: C(t.sliderTag, m),
|
|
35
35
|
variant: "shade",
|
|
36
|
-
size:
|
|
36
|
+
size: s ? "large" : "medium",
|
|
37
37
|
children: `${i + 1} из ${o.length}`
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
41
|
r,
|
|
42
42
|
{
|
|
43
43
|
disabled: i === o.length - 1,
|
|
44
|
-
size:
|
|
44
|
+
size: s ? "large" : "medium",
|
|
45
45
|
iconName: "directionDown",
|
|
46
46
|
deg: "-90",
|
|
47
47
|
additionalClass: a,
|
|
48
|
-
onClick:
|
|
48
|
+
onClick: n
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
] });
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
z as SliderNavigation
|
|
55
55
|
};
|
|
@@ -20,6 +20,8 @@ import "../../Select/ui/Select.js";
|
|
|
20
20
|
import { useClientWidth as w } from "../../../shared/useClientWidth.js";
|
|
21
21
|
import "../../SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "../../TabSelect/ui/TabSelect.js";
|
|
23
|
+
import "../../../index-DB-VhohW.js";
|
|
24
|
+
import "../../CheckBox/CheckBox.js";
|
|
23
25
|
const l = M.bind(e), D = ({
|
|
24
26
|
options: r,
|
|
25
27
|
selectedOption: S,
|
|
@@ -27,20 +29,20 @@ const l = M.bind(e), D = ({
|
|
|
27
29
|
error: h,
|
|
28
30
|
disabled: v,
|
|
29
31
|
additionalClass: N = "",
|
|
30
|
-
onChange:
|
|
32
|
+
onChange: m,
|
|
31
33
|
onBlur: b,
|
|
32
34
|
mini: k,
|
|
33
|
-
openOnTop:
|
|
35
|
+
openOnTop: c = !1
|
|
34
36
|
}) => {
|
|
35
37
|
const [i, o] = C(!1), n = I(null), { isMobile: d, isDesktop: x } = w(), { handleBlur: y, getInputValue: B, getOption: p, handleDocumentClick: u } = W({
|
|
36
38
|
selectedOption: S,
|
|
37
|
-
setSelectedOption:
|
|
39
|
+
setSelectedOption: m,
|
|
38
40
|
setIsOpen: o,
|
|
39
41
|
containerRef: n,
|
|
40
42
|
isOpen: i,
|
|
41
43
|
isDesktop: x,
|
|
42
44
|
placeholder: O,
|
|
43
|
-
onChange:
|
|
45
|
+
onChange: m,
|
|
44
46
|
onBlur: b
|
|
45
47
|
});
|
|
46
48
|
return L(() => (document.addEventListener("click", u), () => {
|
|
@@ -52,7 +54,7 @@ const l = M.bind(e), D = ({
|
|
|
52
54
|
className: l(
|
|
53
55
|
e.sortSelectWrapper,
|
|
54
56
|
{ [e.sortSelectWrapperError]: h },
|
|
55
|
-
{ [e.sortSelectWrapperTop]:
|
|
57
|
+
{ [e.sortSelectWrapperTop]: c },
|
|
56
58
|
N
|
|
57
59
|
),
|
|
58
60
|
tabIndex: 0,
|
|
@@ -105,7 +107,7 @@ const l = M.bind(e), D = ({
|
|
|
105
107
|
]
|
|
106
108
|
}
|
|
107
109
|
),
|
|
108
|
-
i && !d && /* @__PURE__ */ t("div", { className: l(e.optionsList, { [e.optionListOnTop]:
|
|
110
|
+
i && !d && /* @__PURE__ */ t("div", { className: l(e.optionsList, { [e.optionListOnTop]: c }), children: r == null ? void 0 : r.map((a) => p(a)) })
|
|
109
111
|
]
|
|
110
112
|
}
|
|
111
113
|
);
|