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.
@@ -1,48 +1,48 @@
1
1
  import { jsxs as _, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as k, useState as R, useRef as D, useEffect as T } from "react";
3
- import { c as O } from "./index-rKuIKazb.js";
4
- import { s as t, u as B } from "./useSortSelect-sd5ks-20.js";
5
- import { NewIcon as v } from "./components/NewIcon/ui/NewIcon.js";
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 C } from "./components/Text/ui/Text.js";
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 L } from "./shared/useClientWidth.js";
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 j = "_root_131pc_1", E = "_text_131pc_17", A = "_rootCol_131pc_25", z = "_item_131pc_31", $ = "_whiteRow_131pc_50", q = "_firstItem_131pc_61", H = "_lastItem_131pc_65", P = "_apart_131pc_89", V = "_isLong_131pc_89", F = "_autoWidth_131pc_114", G = "_isDisabled_131pc_121", J = "_grayRow_131pc_143", e = {
26
- root: j,
27
- text: E,
28
- rootCol: A,
29
- item: z,
30
- whiteRow: $,
31
- firstItem: q,
32
- lastItem: H,
33
- apart: P,
34
- isLong: V,
35
- autoWidth: F,
36
- isDisabled: G,
37
- grayRow: J
38
- }, b = O.bind(e), K = ({
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 }), W = k((o, l) => {
45
- const { isTablet: n, isDesktop: m } = L(), {
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(C, { className: e.text, children: i })
76
+ children: /* @__PURE__ */ s(W, { className: e.text, children: i })
77
77
  }
78
78
  )
79
79
  ] });
80
80
  });
81
- W.displayName = "TabSwitcherItem";
82
- const It = Object.assign(K, { Item: W }), w = O.bind(t), Q = ({
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] = R(!1), h = D(null), { isMobile: p, isDesktop: N } = L(), { handleBlur: g, getInputValue: x, getOption: f } = B({
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 T(() => (document.addEventListener("click", handleDocumentClick), () => {
106
- document.removeEventListener("click", handleDocumentClick);
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
- v,
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
- M,
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(C, { children: "Сортировка" }),
154
+ /* @__PURE__ */ s(W, { children: "Сортировка" }),
155
155
  /* @__PURE__ */ s("div", { onClick: () => a(!1), children: /* @__PURE__ */ s(
156
- v,
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
- Q.displayName = "SortSelect";
172
+ U.displayName = "SortSelect";
173
173
  export {
174
- It as S,
175
- Q as a
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-J9a__cB7.js";
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";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../SortSelect-J9a__cB7.js";
1
+ import { a as r } from "../../SortSelect-DnZXZWmG.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-DbD1tgiF.js";
16
- import { a as z } from "../../../SortSelect-J9a__cB7.js";
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,4 +1,4 @@
1
- import { S as e } from "../../SortSelect-J9a__cB7.js";
1
+ import { S as e } from "../../SortSelect-DnZXZWmG.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-J9a__cB7.js";
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-J9a__cB7.js";
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";
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.274",
5
+ "version": "0.0.275",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",