stone-kit 0.0.489 → 0.0.490

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 u, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as R, useState as k, useRef as D, useEffect as T } from "react";
3
3
  import { c as v } from "./index-rKuIKazb.js";
4
- import { s as t, u as M } from "./useSortSelect-D7XQTmb4.js";
4
+ import { s as t, u as M } from "./useSortSelect-D7K1wk0E.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";
@@ -12,7 +12,7 @@ import "./components/Switcher/ui/Switcher.js";
12
12
  import { Text as L } 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 B } from "./Modal-DOTfWTlW.js";
15
+ import { M as B } from "./Modal-C48pfGFo.js";
16
16
  import "./components/GroupedInput/ui/GroupedInputs.js";
17
17
  import "./components/MetroTag/ui/MetroTag.js";
18
18
  import "./components/LotCard/ui/LotCard.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as ye, jsxs as Ve } from "react/jsx-runtime";
2
2
  import { g as _r, c as kr } from "../../../index-rKuIKazb.js";
3
3
  import we from "react";
4
- import { r as rr, M as Sr } from "../../../Modal-DOTfWTlW.js";
4
+ import { r as rr, M as Sr } from "../../../Modal-C48pfGFo.js";
5
5
  import { Flex as Pr } from "../../Flex/ui/Flex.js";
6
6
  import { Input as st } from "../../Input/ui/Input.js";
7
7
  import { Button as Tt } from "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { M as r } from "../../Modal-DOTfWTlW.js";
1
+ import { M as r } from "../../Modal-C48pfGFo.js";
2
2
  export {
3
3
  r as Modal
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { M as t } from "../../../Modal-DOTfWTlW.js";
3
+ import { M as t } from "../../../Modal-C48pfGFo.js";
4
4
  export {
5
5
  t as Modal
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import { M as i } from "../../Modal-DOTfWTlW.js";
2
+ import { M as i } from "../../Modal-C48pfGFo.js";
3
3
  import { Button as l } from "../Button/ui/Button.js";
4
4
  import { NewIcon as t } from "../NewIcon/ui/NewIcon.js";
5
5
  const n = "_modal_3era2_1", d = "_modalBody_3era2_8", r = "_root_3era2_13", m = "_check_3era2_25", _ = "_iconCircle_3era2_31", h = "_iconCheck_3era2_37", C = "_text_3era2_43", u = "_successTitle_3era2_50", k = "_title_3era2_65", e = {
@@ -5,7 +5,7 @@ interface IUseSortSelect {
5
5
  selectedOption: Option | null;
6
6
  setSelectedOption?: (event: Option | null) => void;
7
7
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
8
- containerRef: React.RefObject<HTMLDivElement | null>;
8
+ containerRef: React.RefObject<HTMLDivElement>;
9
9
  isOpen: boolean;
10
10
  isMobile: boolean;
11
11
  placeholder: string;
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { u as m } from "../../../useSortSelect-D7XQTmb4.js";
2
+ import { u as m } from "../../../useSortSelect-D7K1wk0E.js";
3
3
  import "../../../index-rKuIKazb.js";
4
4
  export {
5
5
  m as useSortSelect
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../SortSelect-BlclOJLJ.js";
1
+ import { a as r } from "../../SortSelect-CQHzI2M-.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../index-rKuIKazb.js";
4
- import "../../../useSortSelect-D7XQTmb4.js";
4
+ import "../../../useSortSelect-D7K1wk0E.js";
5
5
  import "../../NewIcon/ui/NewIcon.js";
6
6
  import "../../Button/ui/Button.js";
7
7
  import "../../mobileButton/ui/MobileButton.js";
@@ -12,8 +12,8 @@ import "../../Switcher/ui/Switcher.js";
12
12
  import "../../Text/ui/Text.js";
13
13
  import "../../Flex/ui/Flex.js";
14
14
  import "../../Input/ui/Input.js";
15
- import "../../../Modal-DOTfWTlW.js";
16
- import { a as z } from "../../../SortSelect-BlclOJLJ.js";
15
+ import "../../../Modal-C48pfGFo.js";
16
+ import { a as z } from "../../../SortSelect-CQHzI2M-.js";
17
17
  import "../../GroupedInput/ui/GroupedInputs.js";
18
18
  import "../../MetroTag/ui/MetroTag.js";
19
19
  import "../../LotCard/ui/LotCard.js";
@@ -1,5 +1,4 @@
1
- import { JSX } from 'react';
2
-
1
+ /// <reference types="react" />
3
2
  type TBtn = {
4
3
  isLong?: boolean;
5
4
  additionalClassName?: string;
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../SortSelect-BlclOJLJ.js";
1
+ import { S as e } from "../../SortSelect-CQHzI2M-.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 v } from "../../../SortSelect-BlclOJLJ.js";
3
+ import { S as v } from "../../../SortSelect-CQHzI2M-.js";
4
4
  import "../../Text/ui/Text.js";
5
5
  import "../../../index-rKuIKazb.js";
6
6
  import "../../Button/ui/Button.js";
@@ -12,7 +12,7 @@ import "../../Tag/ui/Tag.js";
12
12
  import "../../Switcher/ui/Switcher.js";
13
13
  import "../../Flex/ui/Flex.js";
14
14
  import "../../Input/ui/Input.js";
15
- import "../../../Modal-DOTfWTlW.js";
15
+ import "../../../Modal-C48pfGFo.js";
16
16
  import "../../GroupedInput/ui/GroupedInputs.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
18
18
  import "../../LotCard/ui/LotCard.js";
@@ -10,8 +10,8 @@ import "../../Text/ui/Text.js";
10
10
  import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react";
13
- import "../../../Modal-DOTfWTlW.js";
14
- import "../../../SortSelect-BlclOJLJ.js";
13
+ import "../../../Modal-C48pfGFo.js";
14
+ import "../../../SortSelect-CQHzI2M-.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
package/dist/main.js CHANGED
@@ -8,9 +8,9 @@ import { Switcher as u } from "./components/Switcher/ui/Switcher.js";
8
8
  import { Text as s } from "./components/Text/ui/Text.js";
9
9
  import { Flex as T } from "./components/Flex/ui/Flex.js";
10
10
  import { Input as b } from "./components/Input/ui/Input.js";
11
- import { M as I } from "./Modal-DOTfWTlW.js";
11
+ import { M as I } from "./Modal-C48pfGFo.js";
12
12
  import { FieldInput as w } from "./components/FieldInput/ui/FieldInput.js";
13
- import { a as F, S as L } from "./SortSelect-BlclOJLJ.js";
13
+ import { a as F, S as L } from "./SortSelect-CQHzI2M-.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 D } from "./components/MetroTag/ui/MetroTag.js";
@@ -1,4 +1,4 @@
1
- import { jsxs as g, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as s } from "react/jsx-runtime";
2
2
  import { c as h } from "./index-rKuIKazb.js";
3
3
  const m = "_sortSelectWrapper_gj2vk_1", j = "_selectedOptions_gj2vk_11", b = "_selectModal_gj2vk_34", x = "_selectionOptionMini_gj2vk_38", B = "_selectedOptionsOpened_gj2vk_42", C = "_selectOptionsDisabled_gj2vk_46", S = "_optionsList_gj2vk_53", L = "_mobileOptionList_gj2vk_68", W = "_mobileSortHeader_gj2vk_76", f = "_modalAddBody_gj2vk_90", M = "_inputWrapper_gj2vk_96", T = "_option_gj2vk_53", D = "_icon_gj2vk_124", N = "_checkBox_gj2vk_131", y = "_checkBoxChecked_gj2vk_138", A = "_innerCheck_gj2vk_145", H = "_sortSelectWrapperTop_gj2vk_176", E = "_optionListOnTop_gj2vk_179", t = {
4
4
  sortSelectWrapper: m,
@@ -21,9 +21,9 @@ const m = "_sortSelectWrapper_gj2vk_1", j = "_selectedOptions_gj2vk_11", b = "_s
21
21
  optionListOnTop: E
22
22
  }, l = h.bind(t), z = ({
23
23
  selectedOption: o,
24
- setSelectedOption: i,
24
+ setSelectedOption: r,
25
25
  setIsOpen: k,
26
- containerRef: c,
26
+ containerRef: i,
27
27
  onBlur: a,
28
28
  onChange: _,
29
29
  isMobile: p,
@@ -31,17 +31,17 @@ const m = "_sortSelectWrapper_gj2vk_1", j = "_selectedOptions_gj2vk_11", b = "_s
31
31
  }) => {
32
32
  const v = (e) => (n) => {
33
33
  n.stopPropagation();
34
- const s = (o == null ? void 0 : o.value) === e.value ? null : e;
35
- if (s && (i && i(s), _)) {
34
+ const c = (o == null ? void 0 : o.value) === e.value ? null : e;
35
+ if (c && (r && r(c), _)) {
36
36
  const d = {
37
37
  ...n,
38
- target: { value: s }
38
+ target: { value: c }
39
39
  };
40
40
  _(d);
41
41
  }
42
42
  };
43
43
  return { handleDocumentClick: (e) => {
44
- c && c.current && !c.current.contains(e.target) && k(!1);
44
+ i.current && !i.current.contains(e.target) && k(!1);
45
45
  }, handleBlur: (e) => {
46
46
  if (a) {
47
47
  const n = {
@@ -58,14 +58,14 @@ const m = "_sortSelectWrapper_gj2vk_1", j = "_selectedOptions_gj2vk_11", b = "_s
58
58
  }),
59
59
  onClick: v(e),
60
60
  children: [
61
- /* @__PURE__ */ r("div", { children: e.label }),
62
- /* @__PURE__ */ r(
61
+ /* @__PURE__ */ s("div", { children: e.label }),
62
+ /* @__PURE__ */ s(
63
63
  "div",
64
64
  {
65
65
  className: l(t.checkBox, {
66
66
  [t.checkBoxChecked]: (o == null ? void 0 : o.value) === e.value
67
67
  }),
68
- children: (o == null ? void 0 : o.value) === e.value && /* @__PURE__ */ r("div", { className: t.innerCheck })
68
+ children: (o == null ? void 0 : o.value) === e.value && /* @__PURE__ */ s("div", { className: t.innerCheck })
69
69
  }
70
70
  )
71
71
  ]
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.489",
5
+ "version": "0.0.490",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.12.12",
29
- "@types/react": "19.0.7",
30
- "@types/react-dom": "19.0.3",
29
+ "@types/react": "^18.2.66",
30
+ "@types/react-dom": "^18.2.22",
31
31
  "@types/react-input-mask": "^3.0.5",
32
32
  "@typescript-eslint/eslint-plugin": "^7.2.0",
33
33
  "@typescript-eslint/parser": "^7.2.0",
@@ -38,8 +38,8 @@
38
38
  "eslint-plugin-react-hooks": "^4.6.0",
39
39
  "eslint-plugin-react-refresh": "^0.4.6",
40
40
  "glob": "^10.3.16",
41
- "react": "19.0.0",
42
- "react-dom": "19.0.0",
41
+ "react": "^18.2.0",
42
+ "react-dom": "^18.2.0",
43
43
  "react-router-dom": "^6.26.0",
44
44
  "sass": "^1.77.2",
45
45
  "typescript": "^5.2.2",