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.
@@ -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" })), W = o(U), j = ({
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(j), 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" })), W1 = o(U1), j1 = ({
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(j1), O1 = ({
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(W, {}),
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(W1, {}),
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 f } from "react/jsx-runtime";
2
- import { useState as g, useEffect as k } from "react";
3
- import { c as S } from "../../../index-rKuIKazb.js";
4
- import { NewIcon as R } from "../../NewIcon/ui/NewIcon.js";
5
- import { sizeMap as l } from "./RoundButton.types.js";
6
- const p = "_btnRound_lhnwl_1", F = "_whiteStroke_lhnwl_36", $ = "_blackFill_lhnwl_44", e = {
7
- btnRound: p,
8
- "small-size": "_small-size_lhnwl_19",
9
- "medium-size": "_medium-size_lhnwl_24",
10
- "large-size": "_large-size_lhnwl_30",
11
- whiteStroke: F,
12
- blackFill: $,
13
- "small-size_m": "_small-size_m_lhnwl_53",
14
- "medium-size_m": "_medium-size_m_lhnwl_57",
15
- "large-size_m": "_large-size_m_lhnwl_62",
16
- "small-size_l": "_small-size_l_lhnwl_83",
17
- "medium-size_l": "_medium-size_l_lhnwl_87",
18
- "large-size_l": "_large-size_l_lhnwl_92"
19
- }, v = S.bind(e), j = ({
20
- size: i = "small",
21
- size_m: n,
22
- size_l: s,
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: w = "whiteStroke",
25
+ variant: x = "whiteStroke",
26
26
  additionalClass: c = "",
27
27
  deg: d,
28
28
  ...r
29
29
  }) => {
30
- const [h, z] = g(l.small), { color: u = "#141416" } = r;
31
- return k(() => {
32
- const t = () => {
33
- const _ = window.innerWidth, b = _ > 1440 && s ? l[s] : _ >= 1024 && _ <= 1440 && n ? l[n] : l[i] || l.small;
34
- z(b);
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", t), t(), () => {
37
- window.removeEventListener("resize", t);
36
+ return window.addEventListener("resize", _), _(), () => {
37
+ window.removeEventListener("resize", _);
38
38
  };
39
- }, [i, n, s]), /* @__PURE__ */ m(
39
+ }, [l, s, t]), /* @__PURE__ */ m(
40
40
  "button",
41
41
  {
42
- className: v(
42
+ className: $(
43
43
  e.btnRound,
44
- e[`${i}-size`],
45
- e[`${n}-size_m`],
46
- e[`${s}-size_l`],
47
- e[`${w}`],
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(f, { children: o ? /* @__PURE__ */ m(
52
- R,
51
+ children: /* @__PURE__ */ m(b, { children: o ? /* @__PURE__ */ m(
52
+ S,
53
53
  {
54
54
  name: o,
55
- size: h,
55
+ size: z,
56
56
  deg: d,
57
57
  color: u
58
58
  }
@@ -1,55 +1,55 @@
1
- import { jsxs as g, jsx as s } from "react/jsx-runtime";
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 u } from "../../Tag/ui/Tag.js";
4
- import { useClientWidth as f } from "../../../shared/useClientWidth.js";
5
- import { c as h } from "../../../index-rKuIKazb.js";
6
- const p = "_sliderTag_1fxi7_1", d = {
7
- sliderTag: p
8
- }, C = h.bind(d), _ = ({
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: n,
11
- goNext: t,
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 { isMobile: e } = f();
18
+ const { isDesktop: s } = u();
19
19
  return /* @__PURE__ */ g("div", { className: c, children: [
20
- /* @__PURE__ */ s(
20
+ /* @__PURE__ */ e(
21
21
  r,
22
22
  {
23
- size: e ? "medium" : "large",
23
+ size: s ? "large" : "medium",
24
24
  iconName: "directionDown",
25
25
  deg: "90",
26
26
  disabled: i === 0,
27
27
  additionalClass: a,
28
- onClick: n
28
+ onClick: d
29
29
  }
30
30
  ),
31
- l && /* @__PURE__ */ s(
32
- u,
31
+ l && /* @__PURE__ */ e(
32
+ p,
33
33
  {
34
- additionalClass: C(d.sliderTag, m),
34
+ additionalClass: C(t.sliderTag, m),
35
35
  variant: "shade",
36
- size: e ? "medium" : "large",
36
+ size: s ? "large" : "medium",
37
37
  children: `${i + 1} из ${o.length}`
38
38
  }
39
39
  ),
40
- /* @__PURE__ */ s(
40
+ /* @__PURE__ */ e(
41
41
  r,
42
42
  {
43
43
  disabled: i === o.length - 1,
44
- size: e ? "medium" : "large",
44
+ size: s ? "large" : "medium",
45
45
  iconName: "directionDown",
46
46
  deg: "-90",
47
47
  additionalClass: a,
48
- onClick: t
48
+ onClick: n
49
49
  }
50
50
  )
51
51
  ] });
52
52
  };
53
53
  export {
54
- _ as SliderNavigation
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: c,
32
+ onChange: m,
31
33
  onBlur: b,
32
34
  mini: k,
33
- openOnTop: m = !1
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: c,
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: c,
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]: m },
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]: m }), children: r == null ? void 0 : r.map((a) => p(a)) })
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
  );