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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as _, jsx as s } from "react/jsx-runtime";
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-C7leD2tv.js";
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 W } from "./components/Text/ui/Text.js";
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 j } from "./Modal-258KOiTO.js";
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 C } from "./shared/useClientWidth.js";
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 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 = ({
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 }), R = k((o, l) => {
45
- const { isTablet: n, isDesktop: m } = C(), {
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: u,
48
+ addItemClassName: h,
49
49
  disabled: S = !1,
50
50
  itemsLength: I = 0,
51
- width: d,
51
+ width: p,
52
52
  width_m: r,
53
53
  width_l: a,
54
- ...h
55
- } = o, p = i != null && i.toString().length ? (i == null ? void 0 : i.toString().length) > 2 : !1, N = (x, f) => x && r ? r : f && a ? a : d, g = !d && !r && !a && p;
56
- return /* @__PURE__ */ _("label", { className: b({ [e.isLong]: p }), children: [
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
- ...h
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
- ), u),
76
- children: /* @__PURE__ */ s(W, { className: e.text, children: i })
75
+ ), h),
76
+ children: /* @__PURE__ */ s(R, { className: e.text, children: i })
77
77
  }
78
78
  )
79
79
  ] });
80
80
  });
81
- R.displayName = "TabSwitcherItem";
82
- const Nt = Object.assign(Q, { Item: R }), w = L.bind(t), U = ({
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: u,
89
+ onChange: h,
90
90
  onBlur: S,
91
91
  mini: I,
92
- openOnTop: d = !1
92
+ openOnTop: p = !1
93
93
  }) => {
94
- const [r, a] = D(!1), h = T(null), { isMobile: p, isDesktop: N } = C(), { handleBlur: g, getInputValue: x, getOption: f, handleDocumentClick: v } = M({
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: u,
96
+ setSelectedOption: h,
97
97
  setIsOpen: a,
98
- containerRef: h,
98
+ containerRef: u,
99
99
  isOpen: r,
100
100
  isDesktop: N,
101
101
  placeholder: n,
102
- onChange: u,
102
+ onChange: h,
103
103
  onBlur: S
104
104
  });
105
- return B(() => (document.addEventListener("click", v), () => {
106
- document.removeEventListener("click", v);
107
- }), []), /* @__PURE__ */ _(
105
+ return /* @__PURE__ */ _(
108
106
  "div",
109
107
  {
110
- ref: h,
108
+ ref: u,
111
109
  className: w(
112
110
  t.sortSelectWrapper,
113
111
  { [t.sortSelectWrapperError]: m },
114
- { [t.sortSelectWrapperTop]: d },
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 && p && /* @__PURE__ */ _(
145
- j,
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(W, { children: "Сортировка" }),
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 && !p && /* @__PURE__ */ s("div", { className: w(t.optionsList, { [t.optionListOnTop]: d }), children: o == null ? void 0 : o.map((y) => f(y)) })
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
- U.displayName = "SortSelect";
170
+ K.displayName = "SortSelect";
173
171
  export {
174
- Nt as S,
175
- U as a
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-C_Ue6qxA.js";
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";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../SortSelect-C_Ue6qxA.js";
1
+ import { a as r } from "../../SortSelect-CRHnyLwh.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -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-C_Ue6qxA.js";
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,4 +1,4 @@
1
- import { S as e } from "../../SortSelect-C_Ue6qxA.js";
1
+ import { S as e } from "../../SortSelect-CRHnyLwh.js";
2
2
  export {
3
3
  e as TabSwitcher
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { S as u } from "../../../SortSelect-C_Ue6qxA.js";
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-C_Ue6qxA.js";
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";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.271",
5
+ "version": "0.0.273",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",